@univerjs-pro/mcp-ui 0.15.3-insiders.20260131-cbd5fac → 0.15.4

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/index.js CHANGED
@@ -1 +1 @@
1
- const _0xecf128=_0x1f2d;(function(_0x1c532b,_0x2c3c15){const _0x2ca4a3=_0x1f2d,_0x42a8bd=_0x1c532b();while(!![]){try{const _0x17127e=-parseInt(_0x2ca4a3(0x19f))/0x1*(parseInt(_0x2ca4a3(0x156))/0x2)+-parseInt(_0x2ca4a3(0x217))/0x3+-parseInt(_0x2ca4a3(0x1cc))/0x4+-parseInt(_0x2ca4a3(0x120))/0x5*(-parseInt(_0x2ca4a3(0x1e4))/0x6)+-parseInt(_0x2ca4a3(0x163))/0x7+parseInt(_0x2ca4a3(0x184))/0x8*(-parseInt(_0x2ca4a3(0x1ff))/0x9)+parseInt(_0x2ca4a3(0x1b2))/0xa;if(_0x17127e===_0x2c3c15)break;else _0x42a8bd['push'](_0x42a8bd['shift']());}catch(_0x264914){_0x42a8bd['push'](_0x42a8bd['shift']());}}}(_0x2bbb,0x23ee0));var Pe=Object['defineProperty'],Ee=(_0x31a34e,_0x2cc93d,_0x4d4a64)=>_0x2cc93d in _0x31a34e?Pe(_0x31a34e,_0x2cc93d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d4a64}):_0x31a34e[_0x2cc93d]=_0x4d4a64,x=(_0x52aa19,_0x24ce4c,_0x541af8)=>Ee(_0x52aa19,typeof _0x24ce4c!=_0xecf128(0x147)?_0x24ce4c+'':_0x24ce4c,_0x541af8);import{LocaleService as _0x4e572e,Inject as _0x1b6077,Injector as _0x1e44a4,Disposable as _0x25fd42,IConfigService as _0x339b51,ILocalStorageService as _0x5a357f,ILogService as _0x3d89df,CommandType as _0x25ab63,ICommandService as _0x35f7cb,DependentOn as _0x7385ac,Plugin as _0x9d7294,merge as _0xf36a6c}from'@univerjs/core';import{jsxs as _0x2153fc,jsx as _0x52b4f6}from'react/jsx-runtime';import{MCPConnectionStatus as _0x3ed4bf,MCPConnectionError as _0x1b13d8,MCPConnectionController as _0x1875ea,MCP_PLUGIN_CONFIG_KEY as _0x28ace7,UniverMCPPlugin as _0xf61bd8}from'@univerjs-pro/mcp';import{clsx as _0x396899,Input as _0x2e194b,Button as _0x515791,MessageType as _0xf05071,Tooltip as _0x46f327}from'@univerjs/design';import{useDependency as _0xd1ed86,useObservable as _0x17134b,ComponentManager as _0x475bc9,connectInjector as _0x15a61e,IUIPartsService as _0xddd35c,IDialogService as _0x135906,IMessageService as _0x3ce74e,BuiltInUIPart as _0x51daf9,MenuItemType as _0x348baf,RibbonStartGroup as _0x4481b1,IMenuManagerService as _0x1a9f01}from'@univerjs/ui';import{BehaviorSubject as _0x4e6612}from'rxjs';import{useRef as _0x48640f,createElement as _0x22626c,forwardRef as _0x2e2678,useState as _0x55c378,useCallback as _0x1b51ec}from'react';import{ISocketService as _0x1ce209,WebSocketService as _0x506559}from'@univerjs/network';function b({ref:_0x5a1d91,..._0x1093c9}){const _0x48bf3f=_0xecf128,{icon:_0x2de8ee,id:_0x9461d8,className:_0x3cad43,extend:_0x26797f,..._0x5a56ad}=_0x1093c9,_0xa97269=('univerjs-icon\x20univerjs-icon-'+_0x9461d8+'\x20'+(_0x3cad43||''))[_0x48bf3f(0x10b)](),_0x4a9fb5=_0x48640f('_'+We());return ae(_0x2de8ee,''+_0x9461d8,{'defIds':_0x2de8ee[_0x48bf3f(0x1b8)],'idSuffix':_0x4a9fb5[_0x48bf3f(0x211)]},{'ref':_0x5a1d91,'className':_0xa97269,..._0x5a56ad},_0x26797f);}function ae(_0x50f5b5,_0x45898b,_0xb9f8eb,_0x330e4e,_0xa73b1f){const _0x19d248=_0xecf128;return _0x22626c(_0x50f5b5[_0x19d248(0x195)],{'key':_0x45898b,...Ye(_0x50f5b5,_0xb9f8eb,_0xa73b1f),..._0x330e4e},(Ze(_0x50f5b5,_0xb9f8eb)[_0x19d248(0x186)]||[])[_0x19d248(0x22a)]((_0x30f89d,_0x18134a)=>ae(_0x30f89d,_0x45898b+'-'+_0x50f5b5[_0x19d248(0x195)]+'-'+_0x18134a,_0xb9f8eb,void 0x0,_0xa73b1f)));}function Ye(_0x5cc9f3,_0x1d6ee8,_0x1ed0c5){const _0x21293c=_0xecf128,_0x1eebc5={..._0x5cc9f3[_0x21293c(0x238)]};_0x1ed0c5!=null&&_0x1ed0c5[_0x21293c(0x13b)]&&_0x1eebc5['fill']===_0x21293c(0x13b)&&(_0x1eebc5[_0x21293c(0x20a)]=_0x1ed0c5[_0x21293c(0x13b)]),_0x5cc9f3[_0x21293c(0x195)]===_0x21293c(0x1e6)&&_0x1eebc5['id']&&(_0x1eebc5['id']=_0x1eebc5['id']+_0x1d6ee8[_0x21293c(0x21b)]),Object['entries'](_0x1eebc5)[_0x21293c(0x16a)](([_0xdc462d,_0x2303e1])=>{const _0x577e89=_0x21293c;_0xdc462d===_0x577e89(0x1e6)&&typeof _0x2303e1=='string'&&(_0x1eebc5[_0xdc462d]=_0x2303e1[_0x577e89(0x11c)](/url\(#(.*)\)/,'url(#$1'+_0x1d6ee8[_0x577e89(0x21b)]+')'));});const {defIds:_0x5aedd8}=_0x1d6ee8;return!_0x5aedd8||_0x5aedd8[_0x21293c(0x214)]===0x0||(_0x5cc9f3[_0x21293c(0x195)]===_0x21293c(0x177)&&_0x1eebc5[_0x21293c(0x1d6)]&&(_0x1eebc5[_0x21293c(0x1d6)]=_0x1eebc5[_0x21293c(0x1d6)]+_0x1d6ee8['idSuffix']),Object[_0x21293c(0x242)](_0x1eebc5)['forEach'](([_0x331b4a,_0x46ca32])=>{const _0x14ff64=_0x21293c;typeof _0x46ca32==_0x14ff64(0x223)&&(_0x1eebc5[_0x331b4a]=_0x46ca32[_0x14ff64(0x11c)](/url\(#(.*)\)/,_0x14ff64(0x1ca)+_0x1d6ee8[_0x14ff64(0x21b)]+')'));})),_0x1eebc5;}function Ze(_0x1eb198,_0x4b4626){const _0x8cbff0=_0xecf128;var _0x38f701;const {defIds:_0x2333ef}=_0x4b4626;return!_0x2333ef||_0x2333ef[_0x8cbff0(0x214)]===0x0?_0x1eb198:_0x1eb198[_0x8cbff0(0x195)]==='defs'&&((_0x38f701=_0x1eb198['children'])!=null&&_0x38f701[_0x8cbff0(0x214)])?{..._0x1eb198,'children':_0x1eb198['children'][_0x8cbff0(0x22a)](_0x14fdb2=>typeof _0x14fdb2['attrs']['id']=='string'&&_0x2333ef&&_0x2333ef[_0x8cbff0(0x107)](_0x14fdb2[_0x8cbff0(0x238)]['id'])?{..._0x14fdb2,'attrs':{..._0x14fdb2[_0x8cbff0(0x238)],'id':_0x14fdb2[_0x8cbff0(0x238)]['id']+_0x4b4626[_0x8cbff0(0x21b)]}}:_0x14fdb2)}:_0x1eb198;}function We(){const _0xbed43e=_0xecf128;return Math[_0xbed43e(0x15b)]()[_0xbed43e(0x16d)](0x24)[_0xbed43e(0x154)](0x2,0x8);}b[_0xecf128(0x226)]='UniverIcon';const qe={'tag':_0xecf128(0x23e),'attrs':{'xmlns':_0xecf128(0x23d),'fill':_0xecf128(0x1be),'viewBox':_0xecf128(0x180),'width':_0xecf128(0x203),'height':_0xecf128(0x203)},'children':[{'tag':'path','attrs':{'fill':_0xecf128(0x1c6),'d':'M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','fillRule':'evenodd','clipRule':_0xecf128(0x159)}}]},le=_0x2e2678(function(_0xc7f570,_0x4dafba){const _0xd76c5=_0xecf128;return _0x22626c(b,Object['assign']({},_0xc7f570,{'id':_0xd76c5(0x172),'ref':_0x4dafba,'icon':qe}));});le['displayName']=_0xecf128(0x1a2);const Xe={'tag':_0xecf128(0x23e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xecf128(0x180),'width':_0xecf128(0x203),'height':_0xecf128(0x203)},'children':[{'tag':_0xecf128(0x1eb),'attrs':{'fill':'currentColor','d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x2e2678(function(_0x1b8261,_0x4ee784){const _0x1a1730=_0xecf128;return _0x22626c(b,Object[_0x1a1730(0x221)]({},_0x1b8261,{'id':_0x1a1730(0x129),'ref':_0x4ee784,'icon':Xe}));});ue['displayName']='CloseIcon';const Je={'tag':_0xecf128(0x23e),'attrs':{'xmlns':_0xecf128(0x23d),'fill':_0xecf128(0x1be),'viewBox':_0xecf128(0x180),'width':_0xecf128(0x203),'height':'1em'},'children':[{'tag':_0xecf128(0x1eb),'attrs':{'fill':'currentColor','d':'M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z'}},{'tag':_0xecf128(0x1eb),'attrs':{'fill':_0xecf128(0x1c6),'d':_0xecf128(0x164)}},{'tag':_0xecf128(0x1eb),'attrs':{'fill':_0xecf128(0x1c6),'d':_0xecf128(0x18b),'fillRule':_0xecf128(0x159),'clipRule':'evenodd'}}]},ve=_0x2e2678(function(_0x2744d9,_0x31d170){const _0x4d58f5=_0xecf128;return _0x22626c(b,Object[_0x4d58f5(0x221)]({},_0x2744d9,{'id':'help-icon','ref':_0x31d170,'icon':Je}));});ve[_0xecf128(0x226)]=_0xecf128(0x11b);const Qe={'tag':_0xecf128(0x23e),'attrs':{'xmlns':_0xecf128(0x23d),'fill':'none','viewBox':_0xecf128(0x180),'width':'1em','height':_0xecf128(0x203)},'children':[{'tag':'g','attrs':{'clipPath':_0xecf128(0x1ba)},'children':[{'tag':_0xecf128(0x1eb),'attrs':{'stroke':_0xecf128(0x1c6),'d':_0xecf128(0x110),'strokeLinecap':_0xecf128(0x23a),'strokeLinejoin':_0xecf128(0x23a),'strokeWidth':1.2}}]},{'tag':_0xecf128(0x199),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xecf128(0x115)},'children':[{'tag':_0xecf128(0x1eb),'attrs':{'fill':_0xecf128(0x103),'d':_0xecf128(0x157)}}]}]}],'defIds':[_0xecf128(0x115)]},de=_0x2e2678(function(_0x58064f,_0x5d9a45){const _0x1f3e7f=_0xecf128;return _0x22626c(b,Object[_0x1f3e7f(0x221)]({},_0x58064f,{'id':_0x1f3e7f(0x140),'ref':_0x5d9a45,'icon':Qe}));});de['displayName']=_0xecf128(0x189);const en={'tag':_0xecf128(0x23e),'attrs':{'xmlns':_0xecf128(0x23d),'fill':_0xecf128(0x1be),'viewBox':'0\x200\x2017\x2016','width':_0xecf128(0x203),'height':_0xecf128(0x203)},'children':[{'tag':'g','attrs':{'clipPath':_0xecf128(0x14a)},'children':[{'tag':_0xecf128(0x1eb),'attrs':{'stroke':_0xecf128(0x1c6),'d':_0xecf128(0x1b9),'strokeLinecap':'round','strokeLinejoin':_0xecf128(0x23a),'strokeWidth':1.2}}]},{'tag':_0xecf128(0x199),'attrs':{},'children':[{'tag':_0xecf128(0x198),'attrs':{'id':_0xecf128(0x168)},'children':[{'tag':_0xecf128(0x1eb),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':_0xecf128(0x233)}}]}]}],'defIds':[_0xecf128(0x168)]},ge=_0x2e2678(function(_0x24fb18,_0x49b284){const _0x527ba8=_0xecf128;return _0x22626c(b,Object[_0x527ba8(0x221)]({},_0x24fb18,{'id':'on-line-icon','ref':_0x49b284,'icon':en}));});ge[_0xecf128(0x226)]=_0xecf128(0x1c0);function nn(_0x347774){const _0x19ecb7=_0xecf128;var _0x50cd79,_0x478539;const {mcpCoreConfig:_0x44d121,onSave:_0xcfdc7a,loading:_0x10435e=!0x1,config:_0x1b1455,connectionStatus$:_0x256e04,connectionError$:_0x3def8e,currentApiKey$:_0x185663,currentSessionId$:_0x1e3af8}=_0x347774,_0x243587=_0xd1ed86(_0x4e572e),_0x243733=_0x17134b(_0x256e04,_0x3ed4bf['DISCONNECTED']),_0x14b72f=_0x17134b(_0x3def8e,_0x1b13d8[_0x19ecb7(0x185)]),_0x4e8a87=_0x17134b(_0x1e3af8,''),_0x1ad578=_0x17134b(_0x185663,''),[_0x1acc33,_0x2329e0]=_0x55c378(_0x1ad578||''),_0x521047=!0x0,_0x4d5fa9=_0x1b1455[_0x19ecb7(0x18c)]&&_0x44d121[_0x19ecb7(0x1ed)]&&(_0x44d121[_0x19ecb7(0x1ed)][_0x19ecb7(0x107)]('univer.plus')||_0x44d121[_0x19ecb7(0x1ed)][_0x19ecb7(0x107)](_0x19ecb7(0x1f5))),_0x389561=(_0x50cd79=_0x44d121['mcpServerUrl'])==null?void 0x0:_0x50cd79[_0x19ecb7(0x107)](_0x19ecb7(0x16b)),_0x1b1271=(_0x478539=_0x44d121['mcpServerUrl'])==null?void 0x0:_0x478539[_0x19ecb7(0x107)](_0x19ecb7(0x1f5)),_0x16a7e9=_0x389561?'https://console.univer.plus':_0x19ecb7(0x1c1),_0x39d8e4=_0x1b1455[_0x19ecb7(0x18c)]&&(_0x389561||_0x1b1271),[_0xe9f5e6,_0x32ada6]=_0x55c378(!_0x1acc33[_0x19ecb7(0x10b)]()),_0x26ff72=(_0x184595,_0x269f32)=>{const _0x507e8d=_0x19ecb7;if(_0x269f32===_0x1b13d8[_0x507e8d(0x16f)])return _0x507e8d(0x181);switch(_0x184595){case _0x3ed4bf[_0x507e8d(0x219)]:return _0x507e8d(0x171);case _0x3ed4bf[_0x507e8d(0x205)]:case _0x3ed4bf['RETRYING']:return _0x507e8d(0x13c);case _0x3ed4bf['FAILED']:return _0x507e8d(0x181);default:return _0x507e8d(0x109);}},_0x17ff47=(_0x3fa1b8,_0xd22472)=>{const _0x265b7d=_0x19ecb7;if(_0xd22472===_0x1b13d8['UNAUTHORIZED'])return _0x265b7d(0x196);switch(_0x3fa1b8){case _0x3ed4bf['CONNECTED']:return'univer-bg-green-500';case _0x3ed4bf['CONNECTING']:case _0x3ed4bf[_0x265b7d(0x1d1)]:return _0x265b7d(0x1d3);case _0x3ed4bf[_0x265b7d(0x124)]:return'univer-bg-red-500';default:return _0x265b7d(0x10d);}},_0x5cef0c=_0x458066=>{const _0x2389a1=_0x19ecb7;switch(_0x458066){case _0x3ed4bf['CONNECTED']:return _0x243587['t'](_0x2389a1(0x204));case _0x3ed4bf['CONNECTING']:return _0x243587['t']('mcpConfig.connectionStatus.connecting');case _0x3ed4bf[_0x2389a1(0x124)]:return _0x243587['t'](_0x2389a1(0x19b));case _0x3ed4bf[_0x2389a1(0x1d1)]:return _0x243587['t'](_0x2389a1(0x112));default:return _0x243587['t'](_0x2389a1(0x17e));}},_0x49ef0c=_0x23a7e5=>{const _0x2d3ec6=_0x19ecb7;switch(_0x23a7e5){case _0x1b13d8[_0x2d3ec6(0x16f)]:return _0x243587['t'](_0x2d3ec6(0x241));case _0x1b13d8[_0x2d3ec6(0xfa)]:return _0x243587['t'](_0x2d3ec6(0x12a));case _0x1b13d8[_0x2d3ec6(0x160)]:return _0x243587['t'](_0x2d3ec6(0x142));case _0x1b13d8['MAX_RETRIES_EXCEEDED']:return _0x243587['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x21588c=_0x1b51ec(()=>{const _0xee3f4f=_0x19ecb7,_0x4651e7={..._0x44d121,'apiKey':_0x1acc33[_0xee3f4f(0x10b)](),'enableAuth':_0x521047};_0xcfdc7a(_0x4651e7);},[_0x44d121,_0x1acc33,_0x521047,_0xcfdc7a]),_0x2240fe=_0x1acc33[_0x19ecb7(0x10b)]()['length']>0x0;return _0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1e5),'children':[_0x52b4f6(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1ce),'children':_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0xf5),'children':[_0x52b4f6(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1e0),'children':_0x52b4f6(_0x19ecb7(0x15c),{'className':_0x19ecb7(0x123),'children':'⚙'})}),_0x52b4f6('div',{'children':_0x52b4f6('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x243587['t'](_0x19ecb7(0x182))})})]})}),_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1e9),'children':[_0x52b4f6('div',{'className':_0x396899(_0x19ecb7(0x1c4),_0x26ff72(_0x243733,_0x14b72f)),'children':_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x12c),'children':[_0x52b4f6(_0x19ecb7(0x135),{'className':_0x396899(_0x19ecb7(0x1f2),_0x17ff47(_0x243733,_0x14b72f))}),_0x52b4f6(_0x19ecb7(0x15c),{'className':_0x19ecb7(0x243),'children':_0x5cef0c(_0x243733)})]})}),_0x14b72f!==_0x1b13d8[_0x19ecb7(0x185)]&&(_0x243733===_0x3ed4bf[_0x19ecb7(0x124)]||_0x14b72f===_0x1b13d8[_0x19ecb7(0x16f)])&&_0x52b4f6('div',{'className':_0x19ecb7(0x227),'children':_0x2153fc('div',{'className':_0x19ecb7(0x13f),'children':[_0x52b4f6(_0x19ecb7(0x15c),{'className':_0x19ecb7(0x18d),'children':'⚠️'}),_0x52b4f6('p',{'className':_0x19ecb7(0x131),'children':_0x49ef0c(_0x14b72f)})]})})]}),_0x52b4f6('div',{'className':_0x19ecb7(0x134),'children':_0x2153fc('div',{'className':_0x19ecb7(0x155),'children':[_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1a1),'children':[_0x2153fc('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x52b4f6(_0x19ecb7(0x15c),{'children':'🔑'}),'\x20',_0x243587['t']('mcpConfig.apiKey'),_0x52b4f6(_0x19ecb7(0x15c),{'className':_0x19ecb7(0x1a8),'children':'*'}),_0x4d5fa9&&_0x52b4f6('a',{'className':_0x19ecb7(0x190),'title':_0x243587['t'](_0x19ecb7(0x200)),'role':_0x19ecb7(0x210),'onClick':()=>_0x32ada6(!0x0),'children':_0x52b4f6(ve,{})})]}),_0x52b4f6(_0x2e194b,{'type':_0x19ecb7(0x167),'placeholder':_0x243587['t'](_0x19ecb7(0x102)),'value':_0x1acc33,'disabled':_0x10435e,'autoComplete':'off','onChange':_0x2329e0}),_0x52b4f6('p',{'className':_0x19ecb7(0x1e2),'children':_0x243587['t']('mcpConfig.apiKeyHint')})]}),_0x4d5fa9&&_0xe9f5e6&&_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x18e),'children':[_0x52b4f6('a',{'className':_0x19ecb7(0x1d0),'role':_0x19ecb7(0x210),'onClick':()=>_0x32ada6(!0x1),'children':_0x52b4f6(ue,{'className':'univer-size-4'})}),_0x2153fc(_0x19ecb7(0x135),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x52b4f6(_0x19ecb7(0x135),{'className':_0x19ecb7(0x209),'children':_0x52b4f6(_0x19ecb7(0x15c),{'className':_0x19ecb7(0x158),'children':'🚀'})}),_0x2153fc(_0x19ecb7(0x135),{'className':'univer-flex-1','children':[_0x52b4f6('h4',{'className':_0x19ecb7(0x1cd),'children':_0x243587['t']('mcpConfig.apiApplyInfo.title')}),_0x52b4f6('p',{'className':_0x19ecb7(0x1d7),'children':_0x243587['t'](_0x19ecb7(0x23b))}),_0x52b4f6('div',{'className':_0x19ecb7(0x228),'children':_0x39d8e4&&_0x2153fc('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':_0x16a7e9,'target':_0x19ecb7(0x248),'rel':_0x19ecb7(0x121),'children':[_0x52b4f6('span',{'children':'🤖'}),_0x243587['t'](_0x19ecb7(0x1af)),_0x52b4f6(_0x19ecb7(0x15c),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x2153fc('div',{'className':_0x19ecb7(0x1ee),'children':['✨','\x20',_0x243587['t'](_0x19ecb7(0x165))]})]})]})]}),_0x1b1455[_0x19ecb7(0x18c)]&&_0x2153fc('div',{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x2153fc('h4',{'className':_0x19ecb7(0x22b),'children':[_0x52b4f6(_0x19ecb7(0x15c),{'children':'🔗'}),'\x20',_0x243587['t'](_0x19ecb7(0x218))]}),_0x2153fc(_0x19ecb7(0x135),{'className':'univer-space-y-4','children':[_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x20c),'children':[_0x52b4f6('p',{'className':_0x19ecb7(0x1fc),'children':_0x243587['t'](_0x19ecb7(0x249))}),_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1a1),'children':[_0x52b4f6('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x243587['t']('mcpConfig.configStepTitle')}),_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x191),'children':[_0x2153fc('div',{'className':_0x19ecb7(0x12c),'children':[_0x52b4f6(_0x19ecb7(0x15c),{'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'}),_0x243587['t'](_0x19ecb7(0x12b))]}),_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x12c),'children':[_0x52b4f6(_0x19ecb7(0x15c),{'className':_0x19ecb7(0x21c),'children':'2'}),_0x243587['t'](_0x19ecb7(0x1b4))]}),_0x2153fc(_0x19ecb7(0x135),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x52b4f6(_0x19ecb7(0x15c),{'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'}),_0x243587['t']('mcpConfig.configStep3')]})]})]})]}),_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1a1),'children':[_0x52b4f6(_0x19ecb7(0x135),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x19ecb7(0x1fb)}),_0x52b4f6('div',{'className':_0x19ecb7(0x14e),'children':_0x52b4f6('pre',{'className':_0x19ecb7(0x146),'children':JSON[_0x19ecb7(0x111)]({'mcpServers':{'univer':{'url':_0x19ecb7(0x150)+(_0x4e8a87||_0x19ecb7(0x166)),'type':_0x19ecb7(0xfe),'headers':{'Authorization':_0x19ecb7(0xfb)+(_0x1acc33||'<API_KEY>')}}}},null,0x2)})})]}),_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x20c),'children':[_0x52b4f6('div',{'className':_0x19ecb7(0x14f),'children':_0x243587['t']('mcpConfig.configParameters')}),_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1a1),'children':[_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x216),'children':[_0x52b4f6('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1a6),'children':[_0x52b4f6('div',{'className':_0x19ecb7(0x231),'children':'univer_session_id:'}),_0x52b4f6(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1e2),'children':_0x243587['t'](_0x19ecb7(0x1b1))})]})]}),_0x2153fc('div',{'className':_0x19ecb7(0x216),'children':[_0x52b4f6(_0x19ecb7(0x135),{'className':_0x19ecb7(0x10a)}),_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1a6),'children':[_0x52b4f6(_0x19ecb7(0x135),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),_0x52b4f6(_0x19ecb7(0x135),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x243587['t'](_0x19ecb7(0x1c7))})]})]})]})]})]})]}),_0x52b4f6(_0x515791,{'onClick':_0x21588c,'disabled':!_0x2240fe||_0x10435e,'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':_0x10435e?_0x2153fc('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x52b4f6(_0x19ecb7(0x15c),{'children':'⟲'}),_0x243587['t'](_0x19ecb7(0x127))]}):_0x2153fc(_0x19ecb7(0x15c),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x52b4f6(le,{}),_0x243587['t'](_0x19ecb7(0x136))]})}),_0x52b4f6('div',{'className':_0x19ecb7(0xf9),'children':_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1d2),'children':[_0x52b4f6('span',{'className':_0x19ecb7(0x1ab),'children':'💡'}),_0x2153fc(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1b7),'children':[_0x52b4f6(_0x19ecb7(0x135),{'className':_0x19ecb7(0x1dd),'children':_0x19ecb7(0x114)}),_0x2153fc('div',{'children':['•',_0x243587['t']('mcpConfig.note1')]}),_0x2153fc(_0x19ecb7(0x135),{'children':['•',_0x243587['t'](_0x19ecb7(0x1bf))]})]})]})})]})})]});}const y=_0xecf128(0x239),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0xecf128(0x104)],tn=(_0x39f571,_0x1d5aa1,_0x5b5bd5,_0x1a8e34)=>{const _0xb143bc=_0xecf128;for(var _0x69cc3a=_0x1a8e34>0x1?void 0x0:_0x1a8e34?rn(_0x1d5aa1,_0x5b5bd5):_0x1d5aa1,_0x7ee1d9=_0x39f571[_0xb143bc(0x214)]-0x1,_0x58acef;_0x7ee1d9>=0x0;_0x7ee1d9--)(_0x58acef=_0x39f571[_0x7ee1d9])&&(_0x69cc3a=_0x58acef(_0x69cc3a)||_0x69cc3a);return _0x69cc3a;},d=(_0x439d69,_0x1ca3f9)=>(_0x4296a0,_0x5355bd)=>_0x1ca3f9(_0x4296a0,_0x5355bd,_0x439d69);const U=_0xecf128(0x145),L='mcp-config-dialog';let I=class extends _0x25fd42{constructor(_0x1b4aff,_0x2cc6d4,_0xee3781,_0x2576ef,_0x30afc7,_0xf2cb84,_0x222493,_0x4a69c1,_0x54be44,_0x49ece0){const _0x1356ac=_0xecf128;super(),x(this,'_loading$',new _0x4e6612(!0x1)),x(this,_0x1356ac(0x1d9),new _0x4e6612({})),x(this,'_config$',new _0x4e6612({})),x(this,_0x1356ac(0x1de),new _0x4e6612('')),x(this,_0x1356ac(0x130),async _0x223e1d=>{const _0x18d5a5=_0x1356ac;var _0x37221d,_0x34a4f1;this['_loading$'][_0x18d5a5(0x21d)](!0x0);try{const _0x2aa74c=await this[_0x18d5a5(0xfd)](_0x223e1d);if(!_0x2aa74c[_0x18d5a5(0x169)]){this['_messageService']['show']({'type':_0xf05071[_0x18d5a5(0x101)],'content':_0x2aa74c[_0x18d5a5(0x1a0)]||this[_0x18d5a5(0x17c)]['t'](_0x18d5a5(0x1f6))});return;}_0x223e1d[_0x18d5a5(0x1cb)]?await this[_0x18d5a5(0x10c)][_0x18d5a5(0x17f)](U,_0x223e1d['apiKey'][_0x18d5a5(0x10b)]()):await this[_0x18d5a5(0x10c)][_0x18d5a5(0x1a9)](U),this['_apiKey$'][_0x18d5a5(0x21d)](((_0x37221d=_0x223e1d[_0x18d5a5(0x1cb)])==null?void 0x0:_0x37221d[_0x18d5a5(0x10b)]())||''),this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x18d5a5(0xfb)+((_0x34a4f1=_0x223e1d[_0x18d5a5(0x1cb)])==null?void 0x0:_0x34a4f1[_0x18d5a5(0x10b)]())}),this[_0x18d5a5(0x1f7)][_0x18d5a5(0x1e7)]({'type':_0xf05071[_0x18d5a5(0x187)],'content':this[_0x18d5a5(0x17c)]['t'](_0x18d5a5(0x141))}),setTimeout(()=>{const _0x45ecb9=_0x18d5a5;this[_0x45ecb9(0x11e)][_0x45ecb9(0x1bc)](L);},0x320);}catch(_0x16f29c){this[_0x18d5a5(0x1df)][_0x18d5a5(0x1aa)](_0x18d5a5(0xfc),_0x16f29c),this[_0x18d5a5(0x1f7)][_0x18d5a5(0x1e7)]({'type':_0xf05071[_0x18d5a5(0x101)],'content':this[_0x18d5a5(0x17c)]['t'](_0x18d5a5(0x153))});}finally{this[_0x18d5a5(0x21a)]['next'](!0x1);}}),(this[_0x1356ac(0x1c3)]=_0x1b4aff,this[_0x1356ac(0x13d)]=_0x2cc6d4,this['_configService']=_0xee3781,this[_0x1356ac(0x10c)]=_0x2576ef,this[_0x1356ac(0x11e)]=_0x30afc7,this['_messageService']=_0xf2cb84,this[_0x1356ac(0x234)]=_0x222493,this[_0x1356ac(0x17c)]=_0x4a69c1,this[_0x1356ac(0x1df)]=_0x54be44,this[_0x1356ac(0x16c)]=_0x49ece0,this['_initConfigSync'](),this[_0x1356ac(0x1d4)](),this[_0x1356ac(0x22e)]());}[_0xecf128(0x1e8)](){const _0x3fd8c2=_0xecf128,_0x4db7b0=this[_0x3fd8c2(0x1db)]['getConfig'](y);_0x4db7b0!=null&&_0x4db7b0[_0x3fd8c2(0x18c)]&&this[_0x3fd8c2(0x11e)][_0x3fd8c2(0x1e3)]({'id':L,'title':{'title':this[_0x3fd8c2(0x17c)]['t'](_0x3fd8c2(0x17a))},'children':{'label':'MCPConfigPanel'},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x23f893=_0x3fd8c2;this[_0x23f893(0x11e)][_0x23f893(0x1bc)](L);}});}[_0xecf128(0x201)](){const _0x29151a=_0xecf128;return this[_0x29151a(0x1d9)][_0x29151a(0x14d)];}[_0xecf128(0x22e)](){const _0xbeb940=_0xecf128;this['disposeWithMe'](this['_componentManager'][_0xbeb940(0x188)]('MCPConfigPanel',this[_0xbeb940(0x176)]()));}[_0xecf128(0x176)](){const _0x16bf7f=_0xecf128;return _0x15a61e(()=>{const _0x4a9130=_0x1f2d;var _0x5c6b0f,_0xe9f31b,_0x733958;return _0x52b4f6(nn,{'config':this[_0x4a9130(0x230)][_0x4a9130(0x14d)],'mcpCoreConfig':this[_0x4a9130(0x1d9)][_0x4a9130(0x14d)],'currentApiKey$':this[_0x4a9130(0x1de)],'onSave':this[_0x4a9130(0x130)],'loading':this['_loading$'][_0x4a9130(0x14d)],'connectionStatus$':(_0x5c6b0f=this[_0x4a9130(0x16c)])==null?void 0x0:_0x5c6b0f[_0x4a9130(0x192)],'connectionError$':(_0xe9f31b=this['_mcpConnectionController'])==null?void 0x0:_0xe9f31b[_0x4a9130(0x1a3)],'currentSessionId$':(_0x733958=this[_0x4a9130(0x16c)])==null?void 0x0:_0x733958['sessionId$']});},this[_0x16bf7f(0x1c3)]);}[_0xecf128(0x212)](){const _0x3b5c92=_0xecf128;this[_0x3b5c92(0x113)](this[_0x3b5c92(0x1db)][_0x3b5c92(0x1f1)](_0x28ace7)['subscribe'](_0x148dc4=>{const _0x377adb=_0x3b5c92;this[_0x377adb(0x1d9)]['next'](_0x148dc4||{});}));const _0x41c1ba=this[_0x3b5c92(0x1db)][_0x3b5c92(0x224)](_0x28ace7);this[_0x3b5c92(0x1d9)][_0x3b5c92(0x21d)](_0x41c1ba||{}),this['disposeWithMe'](this[_0x3b5c92(0x1db)]['subscribeConfigValue$'](y)[_0x3b5c92(0x197)](_0x52fc2d=>{const _0x4d0408=_0x3b5c92;this['_config$'][_0x4d0408(0x21d)](_0x52fc2d||{});}));const _0x1af57e=this[_0x3b5c92(0x1db)]['getConfig'](y);this[_0x3b5c92(0x230)][_0x3b5c92(0x21d)](_0x1af57e||{});}async[_0xecf128(0x1d4)](){const _0xd7d40f=_0xecf128,_0x6b8256=this[_0xd7d40f(0x1db)][_0xd7d40f(0x224)](y);if(!(_0x6b8256!=null&&_0x6b8256[_0xd7d40f(0x18c)]))return;const _0x4dd666=await this[_0xd7d40f(0x10c)][_0xd7d40f(0x1f4)](U);_0x4dd666&&(this[_0xd7d40f(0x16c)][_0xd7d40f(0x1d5)]({'Authorization':_0xd7d40f(0xfb)+_0x4dd666}),this[_0xd7d40f(0x1de)][_0xd7d40f(0x21d)](_0x4dd666));}async[_0xecf128(0xfd)](_0x5b9f84){const _0x3d6dd3=_0xecf128;if(!_0x5b9f84[_0x3d6dd3(0x1cb)]||_0x5b9f84[_0x3d6dd3(0x1cb)][_0x3d6dd3(0x10b)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x3d6dd3(0x17c)]['t'](_0x3d6dd3(0x117))};if(_0x5b9f84[_0x3d6dd3(0x1cb)][_0x3d6dd3(0x10b)]()[_0x3d6dd3(0x214)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x3d6dd3(0x17c)]['t'](_0x3d6dd3(0x1cf))};try{const _0x4fecef=await this[_0x3d6dd3(0x1c3)][_0x3d6dd3(0x19a)](_0x1875ea)[_0x3d6dd3(0x24a)](_0x5b9f84[_0x3d6dd3(0x1cb)][_0x3d6dd3(0x10b)]());return _0x4fecef[_0x3d6dd3(0x169)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x4fecef[_0x3d6dd3(0x1aa)]||this[_0x3d6dd3(0x17c)]['t'](_0x3d6dd3(0x149))};}catch(_0x50fd3a){return console[_0x3d6dd3(0x17b)](_0x3d6dd3(0x170),_0x50fd3a),{'isValid':!0x0};}}};I=tn([d(0x0,_0x1b6077(_0x1e44a4)),d(0x1,_0xddd35c),d(0x2,_0x339b51),d(0x3,_0x5a357f),d(0x4,_0x135906),d(0x5,_0x3ce74e),d(0x6,_0x1b6077(_0x475bc9)),d(0x7,_0x1b6077(_0x4e572e)),d(0x8,_0x3d89df),d(0x9,_0x1b6077(_0x1875ea))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x25ab63[_0xecf128(0x105)],'handler':async(_0x128376,_0x4edf31)=>(_0x128376['get'](I)['showConfigPanel'](),!0x0)};function pe(_0x198036,_0x3523ad){const _0x1b32d5=_0xecf128;switch(_0x198036){case _0x3ed4bf[_0x1b32d5(0x232)]:return _0x1b32d5(0x1dc);case _0x3ed4bf[_0x1b32d5(0x205)]:return _0x1b32d5(0x208);case _0x3ed4bf[_0x1b32d5(0x219)]:return _0x1b32d5(0x19e);case _0x3ed4bf[_0x1b32d5(0x124)]:switch(_0x3523ad){case _0x1b13d8['UNAUTHORIZED']:return _0x1b32d5(0x246);case _0x1b13d8[_0x1b32d5(0xfa)]:return _0x1b32d5(0x22f);case _0x1b13d8[_0x1b32d5(0x160)]:return'mcpStatus.networkError';case _0x1b13d8[_0x1b32d5(0x175)]:return _0x1b32d5(0x1b0);default:return _0x1b32d5(0x20d);}case _0x3ed4bf[_0x1b32d5(0x1d1)]:return _0x1b32d5(0x1da);default:return _0x1b32d5(0xf7);}}function _0x2bbb(){const _0x3e19a8=['univer-space-y-5','2hqXHBq','M0\x200H16V16H0z','univer-text-blue-600','evenodd','Max\x20Retries','random','span','_config','univer-flex\x20univer-items-center','_menuManagerService','NETWORK_ERROR','showStatus','会话\x20ID\x20已被占用,请稍后再试','1463742STFHen','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','mcpConfig.apiApplyInfo.getStarted','<SESSION_ID>','text','on-line-icon_clip0_910_349','isValid','forEach','univer.plus','_mcpConnectionController','toString','Copy\x20the\x20JSON\x20configuration\x20below','UNAUTHORIZED','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','check-mark-icon','连接失败','_commandService','MAX_RETRIES_EXCEEDED','_createConfigPanelComponent','use','点击连接\x20MCP','几秒钟内获取您的\x20API\x20密钥','mcpConfig.title','warn','_localeService','univer-text-gray-500','mcpConfig.connectionStatus.disconnected','setItem','0\x200\x2016\x2016','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mcpConfig.description','配置更改将立即生效','455688Jxjtlq','NONE','children','Success','register','OffLineIcon','registerComponent','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','showDeveloperTools','univer-shrink-0\x20univer-text-red-500','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','API\x20key\x20is\x20required','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-space-y-1\x20univer-text-xs\x20univer-text-gray-600','connectionStatus$','MCP\x20Disconnected','Get\x20your\x20API\x20key\x20in\x20seconds','tag','univer-bg-red-500','subscribe','clipPath','defs','get','mcpConfig.connectionStatus.failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','enableAutoConnect','mcpStatus.connected','276623FvPWdm','errorMessage','univer-space-y-2','CheckMarkIcon','connectionError$','MCP\x20Retrying...','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-min-w-0\x20univer-flex-1','MCP\x20Unknown\x20Status','univer-text-red-500','removeItem','error','univer-shrink-0\x20univer-text-blue-500','连接中...','bottom','配置参数:','mcpConfig.apiApplyInfo.univerAiLabel','mcpStatus.maxRetriesExceeded','mcpConfig.sessionIdDescription','10753260qEGFXT','Click\x20to\x20configure\x20MCP','mcpConfig.configStep2','API\x20密钥无效,请检查密钥是否正确','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','defIds','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','url(#off-line-icon_clip0_910_343)','MCP\x20客户端配置','close','点击配置\x20MCP','none','mcpConfig.note2','OnLineIcon','https://console.univer.ai','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_injector','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','Connection\x20Failed','currentColor','mcpConfig.authorizationDescription','has','最大重试次数','url(#$1','apiKey','162048wowILR','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.validation.apiKeyTooShort','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','RETRYING','univer-flex\x20univer-gap-3','univer-bg-blue-500','_loadStoredApiKey','__setCustomHeaders','xlink:href','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','您的\x20API\x20密钥将在此浏览器中本地存储','_mcpCoreConfig$','mcpStatus.retrying','_configService','mcpStatus.disconnected','univer-font-medium','_apiKey$','_logService','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','MCP:\x20Session\x20ID\x20Occupied','univer-text-xs\x20univer-text-gray-500','open','12vXSahQ','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mask','show','showConfigPanel','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','path','权限验证失败,请检查您的\x20API\x20密钥','mcpServerUrl','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','Configuration\x20Parameters:','Failed\x20to\x20save\x20configuration','subscribeConfigValue$','univer-size-2\x20univer-rounded-full','Invalid\x20configuration','getItem','univer.ai','mcpConfig.validation.invalidConfig','_messageService','MCP\x20已断开','_initializeCommands','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Configuration','univer-text-xs\x20univer-text-gray-600','配置保存失败','Retrying...','27pirFWO','mcpConfig.apiApplyInfo.title','getCurrentConfig','Enable\x20Authentication','1em','mcpConfig.connectionStatus.connected','CONNECTING','_connectionController','启用身份验证','mcpStatus.connecting','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','fill','push','univer-space-y-3','mcpStatus.failed','MCP\x20Connected','Univer\x20AI\x20Console','button','current','_initConfigSync','保存配置','length','OTHERS','univer-flex\x20univer-items-start\x20univer-gap-3','853764jXphAb','mcpConfig.connectionInfo','CONNECTED','_loading$','idSuffix','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','next','MCP\x20连接中...','将配置添加到您的\x20MCP\x20客户端设置文件中','MenuIcon','assign','add','string','getConfig','mcpStatus.clickToConfigure','displayName','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-flex\x20univer-flex-wrap\x20univer-gap-2','_initializeMenus','map','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','MCP\x20连接失败','HEADER_MENU','_registerComponent','mcpStatus.sessionOccupied','_config$','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','DISCONNECTED','translate(.97)','_componentManager','配置无效','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mergeMenu','attrs','mcp-ui.config','round','mcpConfig.apiApplyInfo.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.','http://www.w3.org/2000/svg','svg','BUTTON','配置步骤:','mcpConfig.connectionError.unauthorized','entries','univer-text-sm\x20univer-font-medium','MCP:\x20Unauthorized','API\x20密钥','mcpStatus.unauthorized','MCP:\x20超出最大重试次数','_blank','mcpConfig.configInstructions','validateApiKey','_initAutoConnect','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpStatus.unknown','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','SESSION_ID_OCCUPIED','Bearer\x20','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_validateConfig','http','mcpStatus.clickToConnect','什么是\x20API\x20密钥?','Error','mcpConfig.apiKeyPlaceholder','white','getOwnPropertyDescriptor','COMMAND','超出最大重试次数,请稍后再试','includes','Connected','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','trim','_localStorageService','univer-bg-gray-500','复制以下\x20JSON\x20配置','将以下配置添加到您的\x20MCP\x20客户端设置中:','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','stringify','mcpConfig.connectionStatus.retrying','disposeWithMe','Configuration\x20Notes:','off-line-icon_clip0_910_343','已连接','mcpConfig.validation.apiKeyRequired','Click\x20to\x20connect\x20MCP','Session\x20ID','pluginName','HelpIcon','replace','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_dialogService','您的\x20API\x20密钥安全存储在本地存储中','133885YZQFOz','noopener\x20noreferrer','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-text-white','FAILED','Saving...','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.saving','MCP\x20Connecting...','close-icon','mcpConfig.connectionError.sessionOccupied','mcpConfig.configStep1','univer-flex\x20univer-items-center\x20univer-gap-2','Enter\x20your\x20API\x20key','Disconnected','Save\x20Configuration','_handleConfigSave','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','\x20-\x20','MCP_UI_PLUGIN','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','div','mcpConfig.save','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Max\x20Retries\x20Exceeded','配置保存成功','Configuration\x20Steps:','colorChannel1','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','_uiPartsService','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','univer-flex\x20univer-items-start\x20univer-gap-2','off-line-icon','mcpConfig.configSaved','mcpConfig.connectionError.networkError','重连中...','MCP\x20状态未知','mcp.apiKey','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','symbol','\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','mcpConfig.validation.invalidApiKey','url(#on-line-icon_clip0_910_349)','MCP:\x20Network\x20Error','重启您的\x20MCP\x20客户端以使配置生效','value','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','https://mcp.univer.ai/mcp/?univer_session_id=','MCP:\x20网络错误','MCP\x20Client\x20Configuration','mcpConfig.configError','substring'];_0x2bbb=function(){return _0x3e19a8;};return _0x2bbb();}function on(_0x585fbc,_0x1543ea,_0x2f6b4c,_0x1993ee=!0x0){const _0x5d9ab0=_0xecf128,_0xdf96eb=pe(_0x585fbc,_0x1543ea),_0x526d1e=_0x2f6b4c['t'](_0xdf96eb);return _0x1993ee?_0x585fbc===_0x3ed4bf[_0x5d9ab0(0x232)]&&_0x1543ea===_0x1b13d8[_0x5d9ab0(0x16f)]?_0x526d1e+_0x5d9ab0(0x132)+_0x2f6b4c['t'](_0x5d9ab0(0x225)):_0x585fbc===_0x3ed4bf[_0x5d9ab0(0x219)]?''+_0x526d1e:_0x585fbc===_0x3ed4bf['DISCONNECTED']||_0x585fbc===_0x3ed4bf[_0x5d9ab0(0x124)]?_0x526d1e+'\x20-\x20'+_0x2f6b4c['t'](_0x5d9ab0(0xff)):_0x526d1e:_0x526d1e;}function _0x1f2d(_0xae5b37,_0x3c4d12){_0xae5b37=_0xae5b37-0xf5;const _0x2bbb05=_0x2bbb();let _0x1f2d82=_0x2bbb05[_0xae5b37];return _0x1f2d82;}function sn(_0x71e1a1){const _0x3e547b=_0xecf128;switch(_0x71e1a1){case _0x3ed4bf[_0x3e547b(0x219)]:return'univer-text-green-500';case _0x3ed4bf[_0x3e547b(0x205)]:case _0x3ed4bf[_0x3e547b(0x1d1)]:return'univer-text-yellow-500';case _0x3ed4bf[_0x3e547b(0x124)]:case _0x3ed4bf['DISCONNECTED']:return _0x3e547b(0x1a8);default:return _0x3e547b(0x17d);}}function cn(_0x225498){const _0xa15853=_0xecf128,{status$:_0x54684b,error$:_0x715820,onConfigure:_0x44007f,showClickable:_0x14e1e0=!0x0}=_0x225498,_0x262852=_0x17134b(_0x54684b,_0x3ed4bf['DISCONNECTED']),_0x58ee57=_0x17134b(_0x715820,_0x1b13d8[_0xa15853(0x185)]),_0x262b42=_0xd1ed86(_0x4e572e),_0x598e73=_0x262852===_0x3ed4bf[_0xa15853(0x219)];_0x262852===_0x3ed4bf[_0xa15853(0x205)]||_0x3ed4bf[_0xa15853(0x1d1)];const _0x3d7c6b=_0x262b42['t'](pe(_0x262852,_0x58ee57)),_0x92d8d4=on(_0x262852,_0x58ee57,_0x262b42,_0x14e1e0),_0x160053=sn(_0x262852),_0x43e860=_0x598e73?_0x52b4f6(ge,{}):_0x52b4f6(de,{}),_0x23eb49=_0x1b51ec(()=>{_0x14e1e0&&_0x44007f&&_0x44007f();},[_0x14e1e0,_0x44007f]);function _0x478466(){const _0x591b35=_0xa15853;return _0x2153fc(_0x591b35(0x135),{'className':_0x396899(_0x591b35(0x15e),_0x14e1e0&&_0x44007f&&_0x591b35(0x148)),'role':_0x591b35(0x210),'onClick':_0x14e1e0&&_0x44007f?_0x23eb49:void 0x0,'children':[_0x52b4f6(_0x591b35(0x135),{'className':_0x396899('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x160053),'children':_0x43e860}),_0x52b4f6('div',{'className':_0x591b35(0xf6),'children':_0x3d7c6b})]});}return _0x52b4f6(_0x46f327,{'title':_0x92d8d4,'placement':_0xa15853(0x1ad),'children':_0x478466()});}var an=Object[_0xecf128(0x104)],ln=(_0x38bc36,_0xa1c7c2,_0x318650,_0x499f86)=>{const _0x426829=_0xecf128;for(var _0x38f0b4=_0x499f86>0x1?void 0x0:_0x499f86?an(_0xa1c7c2,_0x318650):_0xa1c7c2,_0x506c8b=_0x38bc36[_0x426829(0x214)]-0x1,_0x3bd477;_0x506c8b>=0x0;_0x506c8b--)(_0x3bd477=_0x38bc36[_0x506c8b])&&(_0x38f0b4=_0x3bd477(_0x38f0b4)||_0x38f0b4);return _0x38f0b4;},M=(_0x22bca3,_0x568bf5)=>(_0x9ed6d0,_0x3dc0ef)=>_0x568bf5(_0x9ed6d0,_0x3dc0ef,_0x22bca3);let O=class extends _0x25fd42{constructor(_0x1bea88,_0x1115cd,_0xc0eb60,_0x26a248){const _0x29b22c=_0xecf128;super(),this[_0x29b22c(0x1c3)]=_0x1bea88,this[_0x29b22c(0x206)]=_0x1115cd,this[_0x29b22c(0x13d)]=_0xc0eb60,this[_0x29b22c(0x1db)]=_0x26a248,this[_0x29b22c(0x24b)](),this['_initStatusComponent']();}[_0xecf128(0x24b)](){const _0xa3876c=_0xecf128,_0x431b3b=this[_0xa3876c(0x1db)]['getConfig'](y);_0x431b3b!=null&&_0x431b3b[_0xa3876c(0x18c)]&&(this[_0xa3876c(0x206)][_0xa3876c(0x19d)]=!0x1);}['_initStatusComponent'](){const _0x36f7ab=_0xecf128,_0x5da75a=this[_0x36f7ab(0x1db)]['getConfig'](y);(_0x5da75a==null?void 0x0:_0x5da75a[_0x36f7ab(0x161)])!==!0x1&&this[_0x36f7ab(0x113)](this[_0x36f7ab(0x13d)][_0x36f7ab(0x18a)](_0x51daf9[_0x36f7ab(0x22d)],()=>{const _0x31571b=_0x36f7ab;var _0x26b19a;return _0x15a61e(un({'status$':this[_0x31571b(0x206)]['connectionStatus$'],'error$':this[_0x31571b(0x206)][_0x31571b(0x1a3)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x26b19a=_0x5da75a==null?void 0x0:_0x5da75a['showDeveloperTools'])!=null?_0x26b19a:!0x1}),this['_injector']);}));}['_handleConfigure'](){const _0x3929b2=_0xecf128;this[_0x3929b2(0x1c3)][_0x3929b2(0x19a)](I)[_0x3929b2(0x1e8)]();}};O=ln([M(0x0,_0x1b6077(_0x1e44a4)),M(0x1,_0x1b6077(_0x1875ea)),M(0x2,_0xddd35c),M(0x3,_0x339b51)],O);function un(_0x5b758f){const {status$:_0x413086,error$:_0x78cdcb,onConfigure:_0x10dcce,showClickable:_0x2fd09b}=_0x5b758f;return function(){return _0x52b4f6(cn,{'status$':_0x413086,'error$':_0x78cdcb,'onConfigure':_0x10dcce,'showClickable':_0x2fd09b});};}function vn(_0x1d6d77){const _0x367b57=_0xecf128;return{'id':V['id'],'type':_0x348baf[_0x367b57(0x23f)],'icon':_0x367b57(0x220),'title':_0x367b57(0x17a),'tooltip':_0x367b57(0x17a)};}const dn={[_0x4481b1[_0xecf128(0x215)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0xecf128(0x104)],pn=(_0x444468,_0xb6705,_0x1b7c7b,_0x3a4c20)=>{const _0x5da885=_0xecf128;for(var _0x250c0f=_0x3a4c20>0x1?void 0x0:_0x3a4c20?gn(_0xb6705,_0x1b7c7b):_0xb6705,_0x264b82=_0x444468[_0x5da885(0x214)]-0x1,_0x1f306f;_0x264b82>=0x0;_0x264b82--)(_0x1f306f=_0x444468[_0x264b82])&&(_0x250c0f=_0x1f306f(_0x250c0f)||_0x250c0f);return _0x250c0f;},re=(_0x12df06,_0x5d28f5)=>(_0x928b7f,_0xade3b4)=>_0x5d28f5(_0x928b7f,_0xade3b4,_0x12df06);let D=class extends _0x25fd42{constructor(_0x587d2f,_0x4dcb17){const _0x3e0292=_0xecf128;super(),this[_0x3e0292(0x174)]=_0x587d2f,this[_0x3e0292(0x15f)]=_0x4dcb17,this[_0x3e0292(0x1f9)](),this['_initializeMenus']();}['_initializeCommands'](){const _0x31492f=_0xecf128;[V][_0x31492f(0x16a)](_0x243fe6=>{const _0x5c2c83=_0x31492f;this[_0x5c2c83(0x113)](this[_0x5c2c83(0x174)]['registerCommand'](_0x243fe6));});}[_0xecf128(0x229)](){const _0x11f228=_0xecf128;this[_0x11f228(0x15f)][_0x11f228(0x237)](dn);}};D=pn([re(0x0,_0x35f7cb),re(0x1,_0x1a9f01)],D);const Mn={'mcpStatus':{'disconnected':_0xecf128(0x193),'connecting':_0xecf128(0x128),'connected':_0xecf128(0x20e),'failed':'MCP\x20Connection\x20Failed','retrying':_0xecf128(0x1a4),'unknown':_0xecf128(0x1a7),'unauthorized':_0xecf128(0x244),'sessionOccupied':_0xecf128(0x1e1),'networkError':_0xecf128(0x14b),'maxRetriesExceeded':_0xecf128(0x138),'clickToConnect':_0xecf128(0x118),'clickToConfigure':_0xecf128(0x1b3)},'mcpConfig':{'title':_0xecf128(0x1fb),'description':_0xecf128(0x1fa),'apiKey':'API\x20Key','apiKeyPlaceholder':_0xecf128(0x12d),'apiKeyHint':_0xecf128(0x236),'enableAuth':_0xecf128(0x202),'enableAuthHint':_0xecf128(0x126),'connectionInfo':_0xecf128(0x152),'mcpClientConfig':_0xecf128(0x152),'configInstructions':_0xecf128(0xf8),'configStepTitle':_0xecf128(0x13a),'configStep1':_0xecf128(0x16e),'configStep2':_0xecf128(0x13e),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xecf128(0x119),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0xecf128(0x1ef),'maxRetries':_0xecf128(0x15a),'save':_0xecf128(0x12f),'saving':_0xecf128(0x125),'note1':_0xecf128(0x137),'note2':_0xecf128(0x11d),'configSaved':'Configuration\x20saved\x20successfully','configError':_0xecf128(0x1f0),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0xecf128(0x23c),'univerAiLabel':_0xecf128(0x20f),'getStarted':_0xecf128(0x194)},'validation':{'apiKeyRequired':_0xecf128(0x18f),'apiKeyTooShort':_0xecf128(0x122),'invalidConfig':_0xecf128(0x1f3),'invalidApiKey':_0xecf128(0x19c)},'connectionStatus':{'disconnected':_0xecf128(0x12e),'connecting':'Connecting...','connected':_0xecf128(0x108),'failed':_0xecf128(0x1c5),'retrying':_0xecf128(0x1fe)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0xecf128(0x1ea),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0xecf128(0x1c2)}}},An={'mcpStatus':{'disconnected':_0xecf128(0x1f8),'connecting':_0xecf128(0x21e),'connected':'MCP\x20已连接','failed':_0xecf128(0x22c),'retrying':'MCP\x20重连中...','unknown':_0xecf128(0x144),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0xecf128(0x151),'maxRetriesExceeded':_0xecf128(0x247),'clickToConnect':_0xecf128(0x178),'clickToConfigure':_0xecf128(0x1bd)},'mcpConfig':{'title':'MCP\x20配置','description':_0xecf128(0x1a5),'apiKey':_0xecf128(0x245),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0xecf128(0x1d8),'enableAuth':_0xecf128(0x207),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0xecf128(0x1bb),'mcpClientConfig':_0xecf128(0x1bb),'configInstructions':_0xecf128(0x10f),'configStepTitle':_0xecf128(0x240),'configStep1':_0xecf128(0x10e),'configStep2':_0xecf128(0x21f),'configStep3':_0xecf128(0x14c),'sessionId':'会话ID','sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0xecf128(0x1b6),'configParameters':_0xecf128(0x1ae),'maxRetries':_0xecf128(0x1c9),'save':_0xecf128(0x213),'saving':'保存中...','note1':_0xecf128(0x183),'note2':_0xecf128(0x11f),'configSaved':_0xecf128(0x139),'configError':_0xecf128(0x1fd),'apiApplyInfo':{'title':_0xecf128(0x100),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0xecf128(0x179)},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0xecf128(0x235),'invalidApiKey':_0xecf128(0x1b5)},'connectionStatus':{'disconnected':'未连接','connecting':_0xecf128(0x1ac),'connected':_0xecf128(0x116),'failed':_0xecf128(0x173),'retrying':_0xecf128(0x143)},'connectionError':{'unauthorized':_0xecf128(0x1ec),'sessionOccupied':_0xecf128(0x162),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0xecf128(0x106)}}};var fn=Object['defineProperty'],hn=Object[_0xecf128(0x104)],Cn=(_0x3f2fe5,_0x5efade,_0x2a69ef)=>_0x5efade in _0x3f2fe5?fn(_0x3f2fe5,_0x5efade,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a69ef}):_0x3f2fe5[_0x5efade]=_0x2a69ef,mn=(_0x447448,_0x37e0ba,_0x1afc68,_0xc4aa6f)=>{const _0x4f2044=_0xecf128;for(var _0x8c2df2=_0xc4aa6f>0x1?void 0x0:_0xc4aa6f?hn(_0x37e0ba,_0x1afc68):_0x37e0ba,_0xba5d8b=_0x447448[_0x4f2044(0x214)]-0x1,_0x1a0e86;_0xba5d8b>=0x0;_0xba5d8b--)(_0x1a0e86=_0x447448[_0xba5d8b])&&(_0x8c2df2=_0x1a0e86(_0x8c2df2)||_0x8c2df2);return _0x8c2df2;},P=(_0x502b7a,_0x5336ad)=>(_0xa8284c,_0x1ba2bc)=>_0x5336ad(_0xa8284c,_0x1ba2bc,_0x502b7a),_n=(_0x3ea7dd,_0x362137,_0x1ecf44)=>Cn(_0x3ea7dd,_0x362137+'',_0x1ecf44);let j=class extends _0x9d7294{constructor(_0x40c3ef=ie,_0x492adf,_0x5ecc38,_0x30e788,_0x2aa060,_0xd2009b){const _0x5b1e5a=_0xecf128;super(),this[_0x5b1e5a(0x15d)]=_0x40c3ef,this['_injector']=_0x492adf,this[_0x5b1e5a(0x1db)]=_0x5ecc38,this[_0x5b1e5a(0x13d)]=_0x30e788,this['_localStorageService']=_0x2aa060,this[_0x5b1e5a(0x17c)]=_0xd2009b;const {..._0x1f3be4}=_0xf36a6c({},ie,this['_config']);this[_0x5b1e5a(0x1db)]['setConfig'](y,_0x1f3be4);}async['onStarting'](){const _0x27ecec=_0xecf128,_0x5563c6=[[O],[I],[D]];this['_injector'][_0x27ecec(0x1c8)](_0x1ce209)||_0x5563c6[_0x27ecec(0x20b)]([_0x1ce209,{'useClass':_0x506559}]),_0x5563c6[_0x27ecec(0x16a)](_0x587bb2=>this[_0x27ecec(0x1c3)][_0x27ecec(0x222)](_0x587bb2)),this[_0x27ecec(0x1c3)][_0x27ecec(0x19a)](O),this[_0x27ecec(0x1c3)][_0x27ecec(0x19a)](I),this[_0x27ecec(0x1c3)][_0x27ecec(0x19a)](D);}};_n(j,_0xecf128(0x11a),_0xecf128(0x133)),j=mn([_0x7385ac(_0xf61bd8),P(0x1,_0x1b6077(_0x1e44a4)),P(0x2,_0x339b51),P(0x3,_0xddd35c),P(0x4,_0x5a357f),P(0x5,_0x1b6077(_0x4e572e))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x3d1f73=_0x1a3e;(function(_0x353957,_0x1279a3){const _0x36a1d9=_0x1a3e,_0x5030f8=_0x353957();while(!![]){try{const _0x5254ff=-parseInt(_0x36a1d9(0x27b))/0x1*(-parseInt(_0x36a1d9(0x235))/0x2)+-parseInt(_0x36a1d9(0x17b))/0x3*(-parseInt(_0x36a1d9(0x1fb))/0x4)+-parseInt(_0x36a1d9(0x230))/0x5+-parseInt(_0x36a1d9(0x1bd))/0x6+parseInt(_0x36a1d9(0x224))/0x7*(-parseInt(_0x36a1d9(0x24b))/0x8)+-parseInt(_0x36a1d9(0x1ac))/0x9*(-parseInt(_0x36a1d9(0x247))/0xa)+parseInt(_0x36a1d9(0x1ec))/0xb;if(_0x5254ff===_0x1279a3)break;else _0x5030f8['push'](_0x5030f8['shift']());}catch(_0x250d6c){_0x5030f8['push'](_0x5030f8['shift']());}}}(_0x4331,0x6c9ab));var Pe=Object['defineProperty'],Ee=(_0x7f2a3e,_0x546c66,_0x558ea7)=>_0x546c66 in _0x7f2a3e?Pe(_0x7f2a3e,_0x546c66,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x558ea7}):_0x7f2a3e[_0x546c66]=_0x558ea7,x=(_0x3f8e5a,_0x384ffd,_0x588a1c)=>Ee(_0x3f8e5a,typeof _0x384ffd!=_0x3d1f73(0x250)?_0x384ffd+'':_0x384ffd,_0x588a1c);import{LocaleService as _0x59138c,Inject as _0x239ee7,Injector as _0x53009c,Disposable as _0x2a5236,IConfigService as _0x47eded,ILocalStorageService as _0x8ee795,ILogService as _0x4b764d,CommandType as _0xf974da,ICommandService as _0x17a58e,DependentOn as _0x3951f0,Plugin as _0x5bf17b,merge as _0x2d62e4}from'@univerjs/core';import{jsxs as _0x4b442f,jsx as _0x20a6ac}from'react/jsx-runtime';import{MCPConnectionStatus as _0x291e3f,MCPConnectionError as _0x19f996,MCPConnectionController as _0x5bc65c,MCP_PLUGIN_CONFIG_KEY as _0x3d4e37,UniverMCPPlugin as _0x38e135}from'@univerjs-pro/mcp';import{clsx as _0x52a931,Input as _0x55acfd,Button as _0x553381,MessageType as _0x1f5a43,Tooltip as _0x47833d}from'@univerjs/design';import{useDependency as _0x1671ca,useObservable as _0x1d42f3,ComponentManager as _0x2f2c61,connectInjector as _0x2e489a,IUIPartsService as _0x436320,IDialogService as _0x41daf9,IMessageService as _0x5d1b2b,BuiltInUIPart as _0x5cc78a,MenuItemType as _0xc76b71,RibbonStartGroup as _0x47099c,IMenuManagerService as _0x10488c}from'@univerjs/ui';import{BehaviorSubject as _0x109788}from'rxjs';import{useRef as _0x4f5dd4,createElement as _0x17eed1,forwardRef as _0x8d23ab,useState as _0x2889e0,useCallback as _0x2be0fd}from'react';import{ISocketService as _0x33978c,WebSocketService as _0x15ecd1}from'@univerjs/network';function b({ref:_0xfc59b5,..._0x42cefd}){const _0x5137e4=_0x3d1f73,{icon:_0x5813bd,id:_0x1e084f,className:_0x48ab86,extend:_0x22d72c,..._0x48cc21}=_0x42cefd,_0x45c966=(_0x5137e4(0x201)+_0x1e084f+'\x20'+(_0x48ab86||''))[_0x5137e4(0x1e8)](),_0x18cc15=_0x4f5dd4('_'+We());return ae(_0x5813bd,''+_0x1e084f,{'defIds':_0x5813bd[_0x5137e4(0x1dc)],'idSuffix':_0x18cc15[_0x5137e4(0x282)]},{'ref':_0xfc59b5,'className':_0x45c966,..._0x48cc21},_0x22d72c);}function ae(_0x59dc7d,_0xd13404,_0x19183c,_0x5b883f,_0x25926b){const _0x1cf8f0=_0x3d1f73;return _0x17eed1(_0x59dc7d['tag'],{'key':_0xd13404,...Ye(_0x59dc7d,_0x19183c,_0x25926b),..._0x5b883f},(Ze(_0x59dc7d,_0x19183c)['children']||[])[_0x1cf8f0(0x25f)]((_0x110942,_0x3d23d9)=>ae(_0x110942,_0xd13404+'-'+_0x59dc7d[_0x1cf8f0(0x1d6)]+'-'+_0x3d23d9,_0x19183c,void 0x0,_0x25926b)));}function Ye(_0x41f14a,_0xe353f9,_0x3f7cbf){const _0xebfe55=_0x3d1f73,_0x5342fd={..._0x41f14a[_0xebfe55(0x1d5)]};_0x3f7cbf!=null&&_0x3f7cbf[_0xebfe55(0x21f)]&&_0x5342fd['fill']===_0xebfe55(0x21f)&&(_0x5342fd[_0xebfe55(0x1af)]=_0x3f7cbf['colorChannel1']),_0x41f14a[_0xebfe55(0x1d6)]==='mask'&&_0x5342fd['id']&&(_0x5342fd['id']=_0x5342fd['id']+_0xe353f9[_0xebfe55(0x1b4)]),Object[_0xebfe55(0x23a)](_0x5342fd)[_0xebfe55(0x182)](([_0x4d82f1,_0x1a110a])=>{const _0x38d387=_0xebfe55;_0x4d82f1===_0x38d387(0x192)&&typeof _0x1a110a==_0x38d387(0x243)&&(_0x5342fd[_0x4d82f1]=_0x1a110a['replace'](/url\(#(.*)\)/,_0x38d387(0x295)+_0xe353f9[_0x38d387(0x1b4)]+')'));});const {defIds:_0x1a64ab}=_0xe353f9;return!_0x1a64ab||_0x1a64ab[_0xebfe55(0x2b5)]===0x0||(_0x41f14a[_0xebfe55(0x1d6)]==='use'&&_0x5342fd[_0xebfe55(0x195)]&&(_0x5342fd[_0xebfe55(0x195)]=_0x5342fd['xlink:href']+_0xe353f9[_0xebfe55(0x1b4)]),Object[_0xebfe55(0x23a)](_0x5342fd)[_0xebfe55(0x182)](([_0xce46c8,_0x4769f2])=>{const _0x411de1=_0xebfe55;typeof _0x4769f2==_0x411de1(0x243)&&(_0x5342fd[_0xce46c8]=_0x4769f2[_0x411de1(0x1e1)](/url\(#(.*)\)/,'url(#$1'+_0xe353f9[_0x411de1(0x1b4)]+')'));})),_0x5342fd;}function Ze(_0xde389a,_0x41b40b){const _0x1c7d28=_0x3d1f73;var _0xd7b66c;const {defIds:_0x39631b}=_0x41b40b;return!_0x39631b||_0x39631b[_0x1c7d28(0x2b5)]===0x0?_0xde389a:_0xde389a[_0x1c7d28(0x1d6)]===_0x1c7d28(0x1bf)&&((_0xd7b66c=_0xde389a[_0x1c7d28(0x25b)])!=null&&_0xd7b66c[_0x1c7d28(0x2b5)])?{..._0xde389a,'children':_0xde389a[_0x1c7d28(0x25b)][_0x1c7d28(0x25f)](_0x3894be=>typeof _0x3894be['attrs']['id']==_0x1c7d28(0x243)&&_0x39631b&&_0x39631b[_0x1c7d28(0x1ff)](_0x3894be[_0x1c7d28(0x1d5)]['id'])?{..._0x3894be,'attrs':{..._0x3894be['attrs'],'id':_0x3894be[_0x1c7d28(0x1d5)]['id']+_0x41b40b[_0x1c7d28(0x1b4)]}}:_0x3894be)}:_0xde389a;}function We(){const _0x3f5ca7=_0x3d1f73;return Math[_0x3f5ca7(0x28d)]()[_0x3f5ca7(0x20e)](0x24)['substring'](0x2,0x8);}b[_0x3d1f73(0x173)]='UniverIcon';const qe={'tag':'svg','attrs':{'xmlns':_0x3d1f73(0x263),'fill':_0x3d1f73(0x175),'viewBox':'0\x200\x2016\x2016','width':_0x3d1f73(0x21c),'height':'1em'},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x1be),'d':_0x3d1f73(0x17a),'fillRule':_0x3d1f73(0x20b),'clipRule':_0x3d1f73(0x20b)}}]},le=_0x8d23ab(function(_0xb746eb,_0x4db213){const _0x472adb=_0x3d1f73;return _0x17eed1(b,Object[_0x472adb(0x29e)]({},_0xb746eb,{'id':_0x472adb(0x264),'ref':_0x4db213,'icon':qe}));});le[_0x3d1f73(0x173)]=_0x3d1f73(0x268);const Xe={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'currentColor','d':_0x3d1f73(0x212)}}]},ue=_0x8d23ab(function(_0x2bafd5,_0x206ac1){const _0x18a97f=_0x3d1f73;return _0x17eed1(b,Object[_0x18a97f(0x29e)]({},_0x2bafd5,{'id':'close-icon','ref':_0x206ac1,'icon':Xe}));});ue[_0x3d1f73(0x173)]=_0x3d1f73(0x1cd);const Je={'tag':'svg','attrs':{'xmlns':_0x3d1f73(0x263),'fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'currentColor','d':_0x3d1f73(0x190)}},{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x1be),'d':'M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z'}},{'tag':'path','attrs':{'fill':_0x3d1f73(0x1be),'d':_0x3d1f73(0x28c),'fillRule':_0x3d1f73(0x20b),'clipRule':_0x3d1f73(0x20b)}}]},ve=_0x8d23ab(function(_0x9cd70,_0x37b108){return _0x17eed1(b,Object['assign']({},_0x9cd70,{'id':'help-icon','ref':_0x37b108,'icon':Je}));});ve[_0x3d1f73(0x173)]='HelpIcon';const Qe={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':_0x3d1f73(0x263),'fill':'none','viewBox':_0x3d1f73(0x283),'width':_0x3d1f73(0x21c),'height':_0x3d1f73(0x21c)},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1f73(0x21e)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'stroke':_0x3d1f73(0x1be),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x3d1f73(0x1cf),'strokeLinejoin':_0x3d1f73(0x1cf),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x3d1f73(0x1ad),'attrs':{'id':_0x3d1f73(0x1fe)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':'white','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3d1f73(0x1fe)]},de=_0x8d23ab(function(_0x570725,_0x5121c7){const _0x182568=_0x3d1f73;return _0x17eed1(b,Object[_0x182568(0x29e)]({},_0x570725,{'id':_0x182568(0x2b4),'ref':_0x5121c7,'icon':Qe}));});de[_0x3d1f73(0x173)]=_0x3d1f73(0x29c);const en={'tag':_0x3d1f73(0x278),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d1f73(0x175),'viewBox':_0x3d1f73(0x27e),'width':_0x3d1f73(0x21c),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3d1f73(0x16e)},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'stroke':_0x3d1f73(0x1be),'d':_0x3d1f73(0x237),'strokeLinecap':_0x3d1f73(0x1cf),'strokeLinejoin':_0x3d1f73(0x1cf),'strokeWidth':1.2}}]},{'tag':_0x3d1f73(0x1bf),'attrs':{},'children':[{'tag':_0x3d1f73(0x1ad),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x3d1f73(0x216),'attrs':{'fill':_0x3d1f73(0x211),'d':_0x3d1f73(0x206),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3d1f73(0x286)]},ge=_0x8d23ab(function(_0x11c3c6,_0x54fbc4){const _0x36278b=_0x3d1f73;return _0x17eed1(b,Object[_0x36278b(0x29e)]({},_0x11c3c6,{'id':_0x36278b(0x2bf),'ref':_0x54fbc4,'icon':en}));});ge[_0x3d1f73(0x173)]=_0x3d1f73(0x219);function nn(_0x2f1851){const _0xf7ee9=_0x3d1f73;var _0x8d553,_0x168a5a;const {mcpCoreConfig:_0x1a35f3,onSave:_0xbfe02f,loading:_0x4214aa=!0x1,config:_0xb99a9c,connectionStatus$:_0x2900d7,connectionError$:_0x1c8369,currentApiKey$:_0x3450a5,currentSessionId$:_0x32b681}=_0x2f1851,_0x3cae8c=_0x1671ca(_0x59138c),_0x3a99de=_0x1d42f3(_0x2900d7,_0x291e3f[_0xf7ee9(0x2b8)]),_0x28836c=_0x1d42f3(_0x1c8369,_0x19f996['NONE']),_0x54c4bb=_0x1d42f3(_0x32b681,''),_0x2316a3=_0x1d42f3(_0x3450a5,''),[_0x426336,_0x3b49ea]=_0x2889e0(_0x2316a3||''),_0x2c075c=!0x0,_0x5221f9=_0xb99a9c['showDeveloperTools']&&_0x1a35f3[_0xf7ee9(0x258)]&&(_0x1a35f3[_0xf7ee9(0x258)]['includes'](_0xf7ee9(0x1cc))||_0x1a35f3['mcpServerUrl']['includes'](_0xf7ee9(0x1c9))),_0x5d43e9=(_0x8d553=_0x1a35f3[_0xf7ee9(0x258)])==null?void 0x0:_0x8d553['includes'](_0xf7ee9(0x1cc)),_0x2f2ad6=(_0x168a5a=_0x1a35f3[_0xf7ee9(0x258)])==null?void 0x0:_0x168a5a[_0xf7ee9(0x1ff)](_0xf7ee9(0x1c9)),_0x1a7004=_0x5d43e9?'https://console.univer.plus':_0xf7ee9(0x270),_0x1a40a9=_0xb99a9c['showDeveloperTools']&&(_0x5d43e9||_0x2f2ad6),[_0x2f2602,_0x331754]=_0x2889e0(!_0x426336[_0xf7ee9(0x1e8)]()),_0x143b83=(_0x562724,_0x62f2e4)=>{const _0x86f0ac=_0xf7ee9;if(_0x62f2e4===_0x19f996[_0x86f0ac(0x234)])return _0x86f0ac(0x240);switch(_0x562724){case _0x291e3f['CONNECTED']:return _0x86f0ac(0x25a);case _0x291e3f[_0x86f0ac(0x21b)]:case _0x291e3f[_0x86f0ac(0x261)]:return _0x86f0ac(0x1c8);case _0x291e3f[_0x86f0ac(0x18e)]:return _0x86f0ac(0x240);default:return _0x86f0ac(0x2c4);}},_0x482bcf=(_0x4fa2fd,_0x1e986d)=>{const _0x226868=_0xf7ee9;if(_0x1e986d===_0x19f996[_0x226868(0x234)])return _0x226868(0x210);switch(_0x4fa2fd){case _0x291e3f[_0x226868(0x280)]:return _0x226868(0x1d7);case _0x291e3f[_0x226868(0x21b)]:case _0x291e3f['RETRYING']:return _0x226868(0x225);case _0x291e3f[_0x226868(0x18e)]:return _0x226868(0x210);default:return _0x226868(0x1d9);}},_0xd9fa4e=_0x12bac8=>{const _0x2fb572=_0xf7ee9;switch(_0x12bac8){case _0x291e3f['CONNECTED']:return _0x3cae8c['t']('mcpConfig.connectionStatus.connected');case _0x291e3f[_0x2fb572(0x21b)]:return _0x3cae8c['t'](_0x2fb572(0x1ce));case _0x291e3f[_0x2fb572(0x18e)]:return _0x3cae8c['t']('mcpConfig.connectionStatus.failed');case _0x291e3f['RETRYING']:return _0x3cae8c['t']('mcpConfig.connectionStatus.retrying');default:return _0x3cae8c['t'](_0x2fb572(0x256));}},_0x42cb84=_0x426ca2=>{const _0x42fbee=_0xf7ee9;switch(_0x426ca2){case _0x19f996[_0x42fbee(0x234)]:return _0x3cae8c['t'](_0x42fbee(0x267));case _0x19f996[_0x42fbee(0x24e)]:return _0x3cae8c['t'](_0x42fbee(0x194));case _0x19f996[_0x42fbee(0x244)]:return _0x3cae8c['t'](_0x42fbee(0x2b1));case _0x19f996[_0x42fbee(0x2ab)]:return _0x3cae8c['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x1824c7=_0x2be0fd(()=>{const _0xcebef4=_0xf7ee9,_0x2a7073={..._0x1a35f3,'apiKey':_0x426336[_0xcebef4(0x1e8)](),'enableAuth':_0x2c075c};_0xbfe02f(_0x2a7073);},[_0x1a35f3,_0x426336,_0x2c075c,_0xbfe02f]),_0xe4a366=_0x426336['trim']()['length']>0x0;return _0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x20a6ac('div',{'className':_0xf7ee9(0x254),'children':_0x4b442f('div',{'className':_0xf7ee9(0x220),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x16d),'children':_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x1d2),'children':'⚙'})}),_0x20a6ac(_0xf7ee9(0x1c2),{'children':_0x20a6ac('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x3cae8c['t'](_0xf7ee9(0x1e9))})})]})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x21d),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0x52a931(_0xf7ee9(0x1f7),_0x143b83(_0x3a99de,_0x28836c)),'children':_0x4b442f('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0x52a931(_0xf7ee9(0x171),_0x482bcf(_0x3a99de,_0x28836c))}),_0x20a6ac('span',{'className':_0xf7ee9(0x20f),'children':_0xd9fa4e(_0x3a99de)})]})}),_0x28836c!==_0x19f996['NONE']&&(_0x3a99de===_0x291e3f[_0xf7ee9(0x18e)]||_0x28836c===_0x19f996['UNAUTHORIZED'])&&_0x20a6ac('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x222),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x24c),'children':'⚠️'}),_0x20a6ac('p',{'className':_0xf7ee9(0x19c),'children':_0x42cb84(_0x28836c)})]})})]}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c7),'children':_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x260),'children':[_0x4b442f('div',{'className':_0xf7ee9(0x189),'children':[_0x4b442f(_0xf7ee9(0x292),{'className':_0xf7ee9(0x253),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🔑'}),'\x20',_0x3cae8c['t'](_0xf7ee9(0x1c4)),_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-text-red-500','children':'*'}),_0x5221f9&&_0x20a6ac('a',{'className':_0xf7ee9(0x203),'title':_0x3cae8c['t'](_0xf7ee9(0x1f4)),'role':_0xf7ee9(0x2b6),'onClick':()=>_0x331754(!0x0),'children':_0x20a6ac(ve,{})})]}),_0x20a6ac(_0x55acfd,{'type':_0xf7ee9(0x1a6),'placeholder':_0x3cae8c['t'](_0xf7ee9(0x2be)),'value':_0x426336,'disabled':_0x4214aa,'autoComplete':_0xf7ee9(0x2c1),'onChange':_0x3b49ea}),_0x20a6ac('p',{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t']('mcpConfig.apiKeyHint')})]}),_0x5221f9&&_0x2f2602&&_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1a8),'children':[_0x20a6ac('a',{'className':_0xf7ee9(0x2bc),'role':'button','onClick':()=>_0x331754(!0x1),'children':_0x20a6ac(ue,{'className':_0xf7ee9(0x298)})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1e6),'children':[_0x20a6ac('div',{'className':_0xf7ee9(0x191),'children':_0x20a6ac('span',{'className':'univer-text-blue-600','children':'🚀'})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex-1','children':[_0x20a6ac('h4',{'className':_0xf7ee9(0x200),'children':_0x3cae8c['t']('mcpConfig.apiApplyInfo.title')}),_0x20a6ac('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x3cae8c['t']('mcpConfig.apiApplyInfo.description')}),_0x20a6ac('div',{'className':_0xf7ee9(0x2a1),'children':_0x1a40a9&&_0x4b442f('a',{'className':_0xf7ee9(0x2a6),'href':_0x1a7004,'target':_0xf7ee9(0x213),'rel':_0xf7ee9(0x26b),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🤖'}),_0x3cae8c['t'](_0xf7ee9(0x2a0)),_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x22a),'children':['✨','\x20',_0x3cae8c['t'](_0xf7ee9(0x1a1))]})]})]})]}),_0xb99a9c[_0xf7ee9(0x27d)]&&_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x25e),'children':[_0x4b442f('h4',{'className':_0xf7ee9(0x1b2),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'🔗'}),'\x20',_0x3cae8c['t'](_0xf7ee9(0x205))]}),_0x4b442f('div',{'className':'univer-space-y-4','children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x2aa),'children':[_0x20a6ac('p',{'className':_0xf7ee9(0x2b2),'children':_0x3cae8c['t'](_0xf7ee9(0x2c3))}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-space-y-2','children':[_0x20a6ac('div',{'className':_0xf7ee9(0x275),'children':_0x3cae8c['t'](_0xf7ee9(0x281))}),_0x4b442f('div',{'className':_0xf7ee9(0x289),'children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac('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'}),_0x3cae8c['t'](_0xf7ee9(0x1f0))]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1b1),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':_0xf7ee9(0x1de),'children':'2'}),_0x3cae8c['t'](_0xf7ee9(0x287))]}),_0x4b442f('div',{'className':_0xf7ee9(0x1b1),'children':[_0x20a6ac(_0xf7ee9(0x1b8),{'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'}),_0x3cae8c['t'](_0xf7ee9(0x23b))]})]})]})]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x189),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x275),'children':'MCP\x20Configuration'}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x20a6ac(_0xf7ee9(0x2bb),{'className':_0xf7ee9(0x269),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0xf7ee9(0x23c)+(_0x54c4bb||_0xf7ee9(0x1a3)),'type':_0xf7ee9(0x242),'headers':{'Authorization':_0xf7ee9(0x1e7)+(_0x426336||_0xf7ee9(0x2a3))}}}},null,0x2)})})]}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-space-y-3','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x275),'children':_0x3cae8c['t'](_0xf7ee9(0x29f))}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x189),'children':[_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x2a7),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c1)}),_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xf7ee9(0x193)}),_0x20a6ac('div',{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t']('mcpConfig.sessionIdDescription')})]})]}),_0x4b442f('div',{'className':_0xf7ee9(0x2a7),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1c1)}),_0x4b442f(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x178),'children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x1b0),'children':_0xf7ee9(0x285)}),_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x177),'children':_0x3cae8c['t'](_0xf7ee9(0x27f))})]})]})]})]})]})]}),_0x20a6ac(_0x553381,{'onClick':_0x1824c7,'disabled':!_0xe4a366||_0x4214aa,'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':_0x4214aa?_0x4b442f('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(_0xf7ee9(0x1b8),{'children':'⟲'}),_0x3cae8c['t'](_0xf7ee9(0x262))]}):_0x4b442f(_0xf7ee9(0x1b8),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x20a6ac(le,{}),_0x3cae8c['t'](_0xf7ee9(0x184))]})}),_0x20a6ac('div',{'className':_0xf7ee9(0x26a),'children':_0x4b442f(_0xf7ee9(0x1c2),{'className':'univer-flex\x20univer-gap-3','children':[_0x20a6ac(_0xf7ee9(0x1b8),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x4b442f('div',{'className':'univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','children':[_0x20a6ac(_0xf7ee9(0x1c2),{'className':_0xf7ee9(0x296),'children':'Configuration\x20Notes:'}),_0x4b442f(_0xf7ee9(0x1c2),{'children':['•',_0x3cae8c['t'](_0xf7ee9(0x1b7))]}),_0x4b442f(_0xf7ee9(0x1c2),{'children':['•',_0x3cae8c['t']('mcpConfig.note2')]})]})]})})]})})]});}const y=_0x3d1f73(0x2b9),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x3d1f73(0x1ee)],tn=(_0x5bc31d,_0x349ccc,_0x4e676b,_0x42ff6b)=>{const _0x3bf606=_0x3d1f73;for(var _0x2a7c32=_0x42ff6b>0x1?void 0x0:_0x42ff6b?rn(_0x349ccc,_0x4e676b):_0x349ccc,_0x5ed067=_0x5bc31d[_0x3bf606(0x2b5)]-0x1,_0x23143f;_0x5ed067>=0x0;_0x5ed067--)(_0x23143f=_0x5bc31d[_0x5ed067])&&(_0x2a7c32=_0x23143f(_0x2a7c32)||_0x2a7c32);return _0x2a7c32;},d=(_0x1d9e1b,_0x27bf53)=>(_0x2216df,_0x3d6f63)=>_0x27bf53(_0x2216df,_0x3d6f63,_0x1d9e1b);const U=_0x3d1f73(0x16f),L=_0x3d1f73(0x2b3);let I=class extends _0x2a5236{constructor(_0x1a1ebc,_0x408a2e,_0x1626a1,_0x3129ea,_0x3d742c,_0x4ee375,_0x23861d,_0x160740,_0x12b67b,_0x151bb5){const _0x2d87bc=_0x3d1f73;super(),x(this,_0x2d87bc(0x23f),new _0x109788(!0x1)),x(this,_0x2d87bc(0x1b5),new _0x109788({})),x(this,_0x2d87bc(0x2ad),new _0x109788({})),x(this,_0x2d87bc(0x2ac),new _0x109788('')),x(this,_0x2d87bc(0x1ba),async _0x21f6be=>{const _0x3a72e4=_0x2d87bc;var _0x52f734,_0x38be29;this[_0x3a72e4(0x23f)][_0x3a72e4(0x2a8)](!0x0);try{const _0x37f087=await this[_0x3a72e4(0x28e)](_0x21f6be);if(!_0x37f087[_0x3a72e4(0x233)]){this['_messageService']['show']({'type':_0x1f5a43[_0x3a72e4(0x22f)],'content':_0x37f087[_0x3a72e4(0x1fa)]||this['_localeService']['t'](_0x3a72e4(0x239))});return;}_0x21f6be[_0x3a72e4(0x1ca)]?await this[_0x3a72e4(0x2ba)][_0x3a72e4(0x183)](U,_0x21f6be[_0x3a72e4(0x1ca)][_0x3a72e4(0x1e8)]()):await this[_0x3a72e4(0x2ba)][_0x3a72e4(0x1d8)](U),this[_0x3a72e4(0x2ac)]['next'](((_0x52f734=_0x21f6be['apiKey'])==null?void 0x0:_0x52f734[_0x3a72e4(0x1e8)]())||''),this['_mcpConnectionController'][_0x3a72e4(0x2c2)]({'Authorization':_0x3a72e4(0x1e7)+((_0x38be29=_0x21f6be[_0x3a72e4(0x1ca)])==null?void 0x0:_0x38be29['trim']())}),this['_messageService'][_0x3a72e4(0x1a4)]({'type':_0x1f5a43[_0x3a72e4(0x19e)],'content':this[_0x3a72e4(0x251)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x95ffbb=_0x3a72e4;this[_0x95ffbb(0x1d4)][_0x95ffbb(0x1c6)](L);},0x320);}catch(_0x39e925){this[_0x3a72e4(0x284)][_0x3a72e4(0x227)](_0x3a72e4(0x19a),_0x39e925),this['_messageService'][_0x3a72e4(0x1a4)]({'type':_0x1f5a43['Error'],'content':this[_0x3a72e4(0x251)]['t'](_0x3a72e4(0x21a))});}finally{this[_0x3a72e4(0x23f)][_0x3a72e4(0x2a8)](!0x1);}}),(this[_0x2d87bc(0x1f8)]=_0x1a1ebc,this[_0x2d87bc(0x24a)]=_0x408a2e,this[_0x2d87bc(0x1e4)]=_0x1626a1,this[_0x2d87bc(0x2ba)]=_0x3129ea,this[_0x2d87bc(0x1d4)]=_0x3d742c,this['_messageService']=_0x4ee375,this['_componentManager']=_0x23861d,this[_0x2d87bc(0x251)]=_0x160740,this['_logService']=_0x12b67b,this[_0x2d87bc(0x299)]=_0x151bb5,this[_0x2d87bc(0x186)](),this[_0x2d87bc(0x1a0)](),this[_0x2d87bc(0x2b0)]());}[_0x3d1f73(0x22e)](){const _0xa26563=_0x3d1f73,_0x185615=this['_configService'][_0xa26563(0x185)](y);_0x185615!=null&&_0x185615[_0xa26563(0x27d)]&&this[_0xa26563(0x1d4)][_0xa26563(0x1db)]({'id':L,'title':{'title':this['_localeService']['t'](_0xa26563(0x272))},'children':{'label':_0xa26563(0x1e2)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x171873=_0xa26563;this[_0x171873(0x1d4)][_0x171873(0x1c6)](L);}});}['getCurrentConfig'](){const _0x49fc50=_0x3d1f73;return this[_0x49fc50(0x1b5)]['value'];}['_registerComponent'](){const _0x13c3e3=_0x3d1f73;this['disposeWithMe'](this[_0x13c3e3(0x188)][_0x13c3e3(0x273)](_0x13c3e3(0x1e2),this['_createConfigPanelComponent']()));}[_0x3d1f73(0x187)](){return _0x2e489a(()=>{const _0x4289a9=_0x1a3e;var _0x51b745,_0x46b609,_0xd27838;return _0x20a6ac(nn,{'config':this[_0x4289a9(0x2ad)][_0x4289a9(0x23d)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x4289a9(0x23d)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x4289a9(0x1ba)],'loading':this['_loading$']['value'],'connectionStatus$':(_0x51b745=this[_0x4289a9(0x299)])==null?void 0x0:_0x51b745[_0x4289a9(0x17f)],'connectionError$':(_0x46b609=this['_mcpConnectionController'])==null?void 0x0:_0x46b609[_0x4289a9(0x27c)],'currentSessionId$':(_0xd27838=this['_mcpConnectionController'])==null?void 0x0:_0xd27838[_0x4289a9(0x2b7)]});},this['_injector']);}[_0x3d1f73(0x186)](){const _0x49dfe8=_0x3d1f73;this['disposeWithMe'](this[_0x49dfe8(0x1e4)][_0x49dfe8(0x1a5)](_0x3d4e37)[_0x49dfe8(0x26f)](_0x397b45=>{this['_mcpCoreConfig$']['next'](_0x397b45||{});}));const _0x4cd795=this[_0x49dfe8(0x1e4)][_0x49dfe8(0x185)](_0x3d4e37);this[_0x49dfe8(0x1b5)]['next'](_0x4cd795||{}),this['disposeWithMe'](this['_configService'][_0x49dfe8(0x1a5)](y)['subscribe'](_0x3c4845=>{const _0x3f81eb=_0x49dfe8;this[_0x3f81eb(0x2ad)][_0x3f81eb(0x2a8)](_0x3c4845||{});}));const _0xabb4ad=this[_0x49dfe8(0x1e4)][_0x49dfe8(0x185)](y);this['_config$']['next'](_0xabb4ad||{});}async['_loadStoredApiKey'](){const _0x37eb9d=_0x3d1f73,_0x462aaa=this[_0x37eb9d(0x1e4)][_0x37eb9d(0x185)](y);if(!(_0x462aaa!=null&&_0x462aaa[_0x37eb9d(0x27d)]))return;const _0x426adf=await this['_localStorageService'][_0x37eb9d(0x2c0)](U);_0x426adf&&(this['_mcpConnectionController']['__setCustomHeaders']({'Authorization':_0x37eb9d(0x1e7)+_0x426adf}),this[_0x37eb9d(0x2ac)][_0x37eb9d(0x2a8)](_0x426adf));}async[_0x3d1f73(0x28e)](_0x1378c9){const _0x2fd501=_0x3d1f73;if(!_0x1378c9['apiKey']||_0x1378c9['apiKey'][_0x2fd501(0x1e8)]()['length']===0x0)return{'isValid':!0x1,'errorMessage':this[_0x2fd501(0x251)]['t']('mcpConfig.validation.apiKeyRequired')};if(_0x1378c9[_0x2fd501(0x1ca)][_0x2fd501(0x1e8)]()[_0x2fd501(0x2b5)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x2fd501(0x251)]['t'](_0x2fd501(0x1e3))};try{const _0x495f38=await this[_0x2fd501(0x1f8)]['get'](_0x5bc65c)[_0x2fd501(0x23e)](_0x1378c9['apiKey']['trim']());return _0x495f38[_0x2fd501(0x233)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x495f38[_0x2fd501(0x227)]||this[_0x2fd501(0x251)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x35dbd3){return console[_0x2fd501(0x1a7)]('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x35dbd3),{'isValid':!0x0};}}};I=tn([d(0x0,_0x239ee7(_0x53009c)),d(0x1,_0x436320),d(0x2,_0x47eded),d(0x3,_0x8ee795),d(0x4,_0x41daf9),d(0x5,_0x5d1b2b),d(0x6,_0x239ee7(_0x2f2c61)),d(0x7,_0x239ee7(_0x59138c)),d(0x8,_0x4b764d),d(0x9,_0x239ee7(_0x5bc65c))],I);function _0x4331(){const _0x1689dd=['Enable\x20Authentication','mcpStatus.clickToConnect','_uiPartsService','14032gGaOrZ','univer-shrink-0\x20univer-text-red-500','push','SESSION_ID_OCCUPIED','已连接','symbol','_localeService','mcpStatus.connecting','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','配置无效','mcpConfig.connectionStatus.disconnected','Retrying...','mcpServerUrl','Max\x20Retries','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','children','MCP\x20配置','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','map','univer-space-y-5','RETRYING','mcpConfig.saving','http://www.w3.org/2000/svg','check-mark-icon','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','mcpConfig.connectionError.unauthorized','CheckMarkIcon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','noopener\x20noreferrer','API\x20key\x20is\x20required','_initAutoConnect','registerCommand','subscribe','https://console.univer.ai','disposeWithMe','mcpConfig.title','register','Copy\x20the\x20JSON\x20configuration\x20below','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','BUTTON','配置参数:','svg','MCP:\x20Max\x20Retries\x20Exceeded','最大重试次数','530WPPWWt','connectionError$','showDeveloperTools','0\x200\x2017\x2016','mcpConfig.authorizationDescription','CONNECTED','mcpConfig.configStepTitle','current','0\x200\x2016\x2016','_logService','Authorization:','on-line-icon_clip0_910_349','mcpConfig.configStep2','您的\x20API\x20密钥安全存储在本地存储中','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','您的\x20API\x20密钥将在此浏览器中本地存储','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','random','_validateConfig','OTHERS','几秒钟内获取您的\x20API\x20密钥','重启您的\x20MCP\x20客户端以使配置生效','label','What\x20is\x20API\x20Key?','MCP\x20Retrying...','url(#$1','univer-font-medium','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-size-4','_mcpConnectionController','Enable\x20authentication\x20for\x20secure\x20connections','mergeMenu','OffLineIcon','MCP\x20重连中...','assign','mcpConfig.configParameters','mcpConfig.apiApplyInfo.univerAiLabel','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Client\x20Configuration','<API_KEY>','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','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-flex\x20univer-items-start\x20univer-gap-3','next','mcpStatus.networkError','univer-space-y-3','MAX_RETRIES_EXCEEDED','_apiKey$','_config$','请输入您的\x20API\x20密钥','mcpStatus.maxRetriesExceeded','_registerComponent','mcpConfig.connectionError.networkError','univer-text-xs\x20univer-text-gray-600','mcp-config-dialog','off-line-icon','length','button','sessionId$','DISCONNECTED','mcp-ui.config','_localStorageService','pre','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','连接失败','mcpConfig.apiKeyPlaceholder','on-line-icon','getItem','off','__setCustomHeaders','mcpConfig.configInstructions','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','url(#on-line-icon_clip0_910_349)','mcp.apiKey','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-size-2\x20univer-rounded-full','MCP\x20已断开','displayName','会话\x20ID\x20已被占用,请稍后再试','none','配置\x20MCP\x20使用\x20AI\x20操作电子表格','univer-text-xs\x20univer-text-gray-500','univer-min-w-0\x20univer-flex-1','网络连接错误,请检查您的网络连接','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','138zYswXt','API\x20密钥长度至少需要\x2010\x20位','Univer\x20AI\x20Console','API\x20密钥不能为空','connectionStatus$','Configuration\x20Parameters:','保存中...','forEach','setItem','mcpConfig.save','getConfig','_initConfigSync','_createConfigPanelComponent','_componentManager','univer-space-y-2','enableAutoConnect','mcp-ui.command.openConfigPanel','get','API\x20Key','FAILED','MCP\x20Connection\x20Failed','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mask','univer_session_id:','mcpConfig.connectionError.sessionOccupied','xlink:href','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','保存配置','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connection\x20Failed','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_commandService','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','复制以下\x20JSON\x20配置','Success','_connectionController','_loadStoredApiKey','mcpConfig.apiApplyInfo.getStarted','mcpStatus.sessionOccupied','<SESSION_ID>','show','subscribeConfigValue$','text','warn','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','API\x20密钥','MCP:\x20未授权','MCP\x20Configuration','7660377WbhpxZ','clipPath','mcpStatus.retrying','fill','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','univer-flex\x20univer-items-center\x20univer-gap-2','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','配置步骤:','idSuffix','_mcpCoreConfig$','_handleConfigure','mcpConfig.note1','span','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','_handleConfigSave','API\x20密钥无效,请检查密钥是否正确','pluginName','4915884rtGHuK','currentColor','defs','启用身份验证以获得安全连接','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','div','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.apiKey','_initStatusComponent','close','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer.ai','apiKey','点击连接\x20MCP','univer.plus','CloseIcon','mcpConfig.connectionStatus.connecting','round','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Failed\x20to\x20save\x20configuration','univer-text-white','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','_dialogService','attrs','tag','univer-bg-green-500','removeItem','univer-bg-gray-500','onStarting','open','defIds','\x20-\x20','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','_initializeMenus','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','replace','MCPConfigPanel','mcpConfig.validation.apiKeyTooShort','_configService','Click\x20to\x20connect\x20MCP','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','Bearer\x20','trim','mcpConfig.description','带有\x20Bearer\x20前缀的\x20API\x20密钥。','univer-text-red-500','12536667OkDyja','mcpStatus.unauthorized','getOwnPropertyDescriptor','重连中...','mcpConfig.configStep1','API\x20key\x20with\x20Bearer\x20prefix.','mcpStatus.failed','MCP\x20Disconnected','mcpConfig.apiApplyInfo.title','启用身份验证','未连接','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','_injector','MCP\x20已连接','errorMessage','35268WlZHBa','showStatus','\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','off-line-icon_clip0_910_343','includes','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univerjs-icon\x20univerjs-icon-','Configuration\x20saved\x20successfully','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','Invalid\x20configuration','mcpConfig.connectionInfo','M0\x200H16V16H0z','MCP\x20客户端配置','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','_config','evenodd','Connecting...','HEADER_MENU','toString','univer-text-sm\x20univer-font-medium','univer-bg-red-500','white','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','_blank','MCP\x20Connected','univer-text-yellow-500','path','点击配置\x20MCP','Univer\x20AI\x20控制台','OnLineIcon','mcpConfig.configError','CONNECTING','1em','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','url(#off-line-icon_clip0_910_343)','colorChannel1','univer-flex\x20univer-items-center\x20univer-gap-3','NONE','univer-flex\x20univer-items-start\x20univer-gap-2','配置保存失败','1883uJqbJF','univer-bg-blue-500','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','error','_menuManagerService','MCP:\x20会话\x20ID\x20已被占用','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MCP\x20连接失败','Disconnected','univer-text-gray-500','showConfigPanel','Error','4036295qeWRwk','超出最大重试次数,请稍后再试','MCP\x20连接中...','isValid','UNAUTHORIZED','554RlZytX','MCP:\x20Session\x20ID\x20Occupied','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','将配置添加到您的\x20MCP\x20客户端设置文件中','mcpConfig.validation.invalidConfig','entries','mcpConfig.configStep3','https://mcp.univer.ai/mcp/?univer_session_id=','value','validateApiKey','_loading$','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','defineProperty','http','string','NETWORK_ERROR','配置更改将立即生效','MCP:\x20网络错误','10alzHnw'];_0x4331=function(){return _0x1689dd;};return _0x4331();}function _0x1a3e(_0x1159a7,_0x2225f0){_0x1159a7=_0x1159a7-0x16d;const _0x4331bc=_0x4331();let _0x1a3eed=_0x4331bc[_0x1159a7];return _0x1a3eed;}const V={'id':_0x3d1f73(0x18b),'type':_0xf974da['COMMAND'],'handler':async(_0x33e629,_0x4c0347)=>(_0x33e629[_0x3d1f73(0x18c)](I)[_0x3d1f73(0x22e)](),!0x0)};function pe(_0x431f28,_0x2b3bc0){const _0x586aa0=_0x3d1f73;switch(_0x431f28){case _0x291e3f[_0x586aa0(0x2b8)]:return'mcpStatus.disconnected';case _0x291e3f[_0x586aa0(0x21b)]:return _0x586aa0(0x252);case _0x291e3f['CONNECTED']:return'mcpStatus.connected';case _0x291e3f[_0x586aa0(0x18e)]:switch(_0x2b3bc0){case _0x19f996['UNAUTHORIZED']:return _0x586aa0(0x1ed);case _0x19f996[_0x586aa0(0x24e)]:return _0x586aa0(0x1a2);case _0x19f996['NETWORK_ERROR']:return _0x586aa0(0x2a9);case _0x19f996[_0x586aa0(0x2ab)]:return _0x586aa0(0x2af);default:return _0x586aa0(0x1f2);}case _0x291e3f[_0x586aa0(0x261)]:return _0x586aa0(0x1ae);default:return'mcpStatus.unknown';}}function on(_0x784ae1,_0x1514ab,_0x33a05c,_0x4773a7=!0x0){const _0x5b7a19=_0x3d1f73,_0x81235a=pe(_0x784ae1,_0x1514ab),_0x52c052=_0x33a05c['t'](_0x81235a);return _0x4773a7?_0x784ae1===_0x291e3f[_0x5b7a19(0x2b8)]&&_0x1514ab===_0x19f996[_0x5b7a19(0x234)]?_0x52c052+_0x5b7a19(0x1dd)+_0x33a05c['t']('mcpStatus.clickToConfigure'):_0x784ae1===_0x291e3f['CONNECTED']?''+_0x52c052:_0x784ae1===_0x291e3f['DISCONNECTED']||_0x784ae1===_0x291e3f[_0x5b7a19(0x18e)]?_0x52c052+'\x20-\x20'+_0x33a05c['t'](_0x5b7a19(0x249)):_0x52c052:_0x52c052;}function sn(_0x174c6a){const _0x2b4f22=_0x3d1f73;switch(_0x174c6a){case _0x291e3f['CONNECTED']:return'univer-text-green-500';case _0x291e3f[_0x2b4f22(0x21b)]:case _0x291e3f['RETRYING']:return _0x2b4f22(0x215);case _0x291e3f[_0x2b4f22(0x18e)]:case _0x291e3f[_0x2b4f22(0x2b8)]:return _0x2b4f22(0x1eb);default:return _0x2b4f22(0x22d);}}function cn(_0x36728e){const _0x2c36af=_0x3d1f73,{status$:_0x3184c4,error$:_0x33ea99,onConfigure:_0xebe26a,showClickable:_0x50f0de=!0x0}=_0x36728e,_0x27a9c3=_0x1d42f3(_0x3184c4,_0x291e3f[_0x2c36af(0x2b8)]),_0x21b908=_0x1d42f3(_0x33ea99,_0x19f996[_0x2c36af(0x221)]),_0x338c7e=_0x1671ca(_0x59138c),_0xd8ecd1=_0x27a9c3===_0x291e3f[_0x2c36af(0x280)];_0x27a9c3===_0x291e3f['CONNECTING']||_0x291e3f[_0x2c36af(0x261)];const _0x56c13f=_0x338c7e['t'](pe(_0x27a9c3,_0x21b908)),_0x1bb650=on(_0x27a9c3,_0x21b908,_0x338c7e,_0x50f0de),_0x14cbb8=sn(_0x27a9c3),_0x4f86b4=_0xd8ecd1?_0x20a6ac(ge,{}):_0x20a6ac(de,{}),_0x11f25b=_0x2be0fd(()=>{_0x50f0de&&_0xebe26a&&_0xebe26a();},[_0x50f0de,_0xebe26a]);function _0x562bd4(){const _0x17be3c=_0x2c36af;return _0x4b442f(_0x17be3c(0x1c2),{'className':_0x52a931('univer-flex\x20univer-items-center',_0x50f0de&&_0xebe26a&&_0x17be3c(0x1fd)),'role':_0x17be3c(0x2b6),'onClick':_0x50f0de&&_0xebe26a?_0x11f25b:void 0x0,'children':[_0x20a6ac(_0x17be3c(0x1c2),{'className':_0x52a931(_0x17be3c(0x1c3),_0x14cbb8),'children':_0x4f86b4}),_0x20a6ac(_0x17be3c(0x1c2),{'className':_0x17be3c(0x196),'children':_0x56c13f})]});}return _0x20a6ac(_0x47833d,{'title':_0x1bb650,'placement':'bottom','children':_0x562bd4()});}var an=Object[_0x3d1f73(0x1ee)],ln=(_0x5dc1da,_0x349303,_0x488f55,_0x22dfc9)=>{const _0x3d6504=_0x3d1f73;for(var _0x156a7b=_0x22dfc9>0x1?void 0x0:_0x22dfc9?an(_0x349303,_0x488f55):_0x349303,_0x682a48=_0x5dc1da[_0x3d6504(0x2b5)]-0x1,_0x10b69e;_0x682a48>=0x0;_0x682a48--)(_0x10b69e=_0x5dc1da[_0x682a48])&&(_0x156a7b=_0x10b69e(_0x156a7b)||_0x156a7b);return _0x156a7b;},M=(_0x204959,_0x57bc2c)=>(_0x1506f5,_0x55b280)=>_0x57bc2c(_0x1506f5,_0x55b280,_0x204959);let O=class extends _0x2a5236{constructor(_0x3be0ee,_0x1d7c7f,_0xc8a729,_0x302c7e){const _0x1d4406=_0x3d1f73;super(),this['_injector']=_0x3be0ee,this[_0x1d4406(0x19f)]=_0x1d7c7f,this[_0x1d4406(0x24a)]=_0xc8a729,this[_0x1d4406(0x1e4)]=_0x302c7e,this[_0x1d4406(0x26d)](),this[_0x1d4406(0x1c5)]();}[_0x3d1f73(0x26d)](){const _0x5c93fc=_0x3d1f73,_0x4b4281=this['_configService'][_0x5c93fc(0x185)](y);_0x4b4281!=null&&_0x4b4281[_0x5c93fc(0x27d)]&&(this['_connectionController'][_0x5c93fc(0x18a)]=!0x1);}['_initStatusComponent'](){const _0x3a7f0c=_0x3d1f73,_0x3d4141=this['_configService'][_0x3a7f0c(0x185)](y);(_0x3d4141==null?void 0x0:_0x3d4141[_0x3a7f0c(0x1fc)])!==!0x1&&this[_0x3a7f0c(0x271)](this[_0x3a7f0c(0x24a)]['registerComponent'](_0x5cc78a[_0x3a7f0c(0x20d)],()=>{const _0x3c6309=_0x3a7f0c;var _0x1d18b8;return _0x2e489a(un({'status$':this[_0x3c6309(0x19f)]['connectionStatus$'],'error$':this[_0x3c6309(0x19f)][_0x3c6309(0x27c)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x1d18b8=_0x3d4141==null?void 0x0:_0x3d4141['showDeveloperTools'])!=null?_0x1d18b8:!0x1}),this['_injector']);}));}[_0x3d1f73(0x1b6)](){const _0x4234d3=_0x3d1f73;this[_0x4234d3(0x1f8)][_0x4234d3(0x18c)](I)['showConfigPanel']();}};O=ln([M(0x0,_0x239ee7(_0x53009c)),M(0x1,_0x239ee7(_0x5bc65c)),M(0x2,_0x436320),M(0x3,_0x47eded)],O);function un(_0x1471a2){const {status$:_0x311ec3,error$:_0x1baee1,onConfigure:_0x2fa392,showClickable:_0x57e6ea}=_0x1471a2;return function(){return _0x20a6ac(cn,{'status$':_0x311ec3,'error$':_0x1baee1,'onConfigure':_0x2fa392,'showClickable':_0x57e6ea});};}function vn(_0x54660d){const _0x301763=_0x3d1f73;return{'id':V['id'],'type':_0xc76b71[_0x301763(0x276)],'icon':'MenuIcon','title':_0x301763(0x272),'tooltip':_0x301763(0x272)};}const dn={[_0x47099c[_0x3d1f73(0x28f)]]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x3d1f73(0x1ee)],pn=(_0x99891f,_0x473c05,_0x2243c5,_0x1aba29)=>{const _0x34c562=_0x3d1f73;for(var _0x4dd756=_0x1aba29>0x1?void 0x0:_0x1aba29?gn(_0x473c05,_0x2243c5):_0x473c05,_0x154b30=_0x99891f[_0x34c562(0x2b5)]-0x1,_0x4ab761;_0x154b30>=0x0;_0x154b30--)(_0x4ab761=_0x99891f[_0x154b30])&&(_0x4dd756=_0x4ab761(_0x4dd756)||_0x4dd756);return _0x4dd756;},re=(_0x11a3c7,_0x2aba66)=>(_0x237969,_0x372b88)=>_0x2aba66(_0x237969,_0x372b88,_0x11a3c7);let D=class extends _0x2a5236{constructor(_0x34c922,_0x20985c){const _0xdcefa9=_0x3d1f73;super(),this[_0xdcefa9(0x19b)]=_0x34c922,this[_0xdcefa9(0x228)]=_0x20985c,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x155187=_0x3d1f73;[V][_0x155187(0x182)](_0x18082f=>{const _0x307aca=_0x155187;this[_0x307aca(0x271)](this['_commandService'][_0x307aca(0x26e)](_0x18082f));});}[_0x3d1f73(0x1df)](){const _0x37c04f=_0x3d1f73;this[_0x37c04f(0x228)][_0x37c04f(0x29b)](dn);}};D=pn([re(0x0,_0x17a58e),re(0x1,_0x10488c)],D);const Mn={'mcpStatus':{'disconnected':_0x3d1f73(0x1f3),'connecting':'MCP\x20Connecting...','connected':_0x3d1f73(0x214),'failed':_0x3d1f73(0x18f),'retrying':_0x3d1f73(0x294),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x3d1f73(0x236),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3d1f73(0x279),'clickToConnect':_0x3d1f73(0x1e5),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x3d1f73(0x1ab),'description':_0x3d1f73(0x297),'apiKey':_0x3d1f73(0x18d),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3d1f73(0x1b9),'enableAuth':_0x3d1f73(0x248),'enableAuthHint':_0x3d1f73(0x29a),'connectionInfo':_0x3d1f73(0x2a2),'mcpClientConfig':_0x3d1f73(0x2a2),'configInstructions':_0x3d1f73(0x1e0),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x3d1f73(0x274),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x3d1f73(0x265),'sessionId':'Session\x20ID','sessionIdDescription':_0x3d1f73(0x2a5),'authorizationDescription':_0x3d1f73(0x1f1),'configParameters':_0x3d1f73(0x180),'maxRetries':_0x3d1f73(0x259),'save':'Save\x20Configuration','saving':_0x3d1f73(0x208),'note1':_0x3d1f73(0x2a4),'note2':_0x3d1f73(0x1d3),'configSaved':_0x3d1f73(0x202),'configError':_0x3d1f73(0x1d1),'apiApplyInfo':{'title':_0x3d1f73(0x293),'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':_0x3d1f73(0x17d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x3d1f73(0x26c),'apiKeyTooShort':_0x3d1f73(0x170),'invalidConfig':_0x3d1f73(0x204),'invalidApiKey':_0x3d1f73(0x1d0)},'connectionStatus':{'disconnected':_0x3d1f73(0x22c),'connecting':_0x3d1f73(0x20c),'connected':'Connected','failed':_0x3d1f73(0x199),'retrying':_0x3d1f73(0x257)},'connectionError':{'unauthorized':_0x3d1f73(0x209),'sessionOccupied':_0x3d1f73(0x226),'networkError':_0x3d1f73(0x198),'maxRetriesExceeded':_0x3d1f73(0x28a)}}},An={'mcpStatus':{'disconnected':_0x3d1f73(0x172),'connecting':_0x3d1f73(0x232),'connected':_0x3d1f73(0x1f9),'failed':_0x3d1f73(0x22b),'retrying':_0x3d1f73(0x29d),'unknown':'MCP\x20状态未知','unauthorized':_0x3d1f73(0x1aa),'sessionOccupied':_0x3d1f73(0x229),'networkError':_0x3d1f73(0x246),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':_0x3d1f73(0x1cb),'clickToConfigure':_0x3d1f73(0x217)},'mcpConfig':{'title':_0x3d1f73(0x25c),'description':_0x3d1f73(0x176),'apiKey':_0x3d1f73(0x1a9),'apiKeyPlaceholder':_0x3d1f73(0x2ae),'apiKeyHint':_0x3d1f73(0x28b),'enableAuth':_0x3d1f73(0x1f5),'enableAuthHint':_0x3d1f73(0x1c0),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x3d1f73(0x207),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x3d1f73(0x1b3),'configStep1':_0x3d1f73(0x19d),'configStep2':_0x3d1f73(0x238),'configStep3':_0x3d1f73(0x291),'sessionId':'会话ID','sessionIdDescription':_0x3d1f73(0x25d),'authorizationDescription':_0x3d1f73(0x1ea),'configParameters':_0x3d1f73(0x277),'maxRetries':_0x3d1f73(0x27a),'save':_0x3d1f73(0x197),'saving':_0x3d1f73(0x181),'note1':_0x3d1f73(0x245),'note2':_0x3d1f73(0x288),'configSaved':'配置保存成功','configError':_0x3d1f73(0x223),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x3d1f73(0x266),'univerAiLabel':_0x3d1f73(0x218),'getStarted':_0x3d1f73(0x290)},'validation':{'apiKeyRequired':_0x3d1f73(0x17e),'apiKeyTooShort':_0x3d1f73(0x17c),'invalidConfig':_0x3d1f73(0x255),'invalidApiKey':_0x3d1f73(0x1bb)},'connectionStatus':{'disconnected':_0x3d1f73(0x1f6),'connecting':'连接中...','connected':_0x3d1f73(0x24f),'failed':_0x3d1f73(0x2bd),'retrying':_0x3d1f73(0x1ef)},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x3d1f73(0x174),'networkError':_0x3d1f73(0x179),'maxRetriesExceeded':_0x3d1f73(0x231)}}};var fn=Object[_0x3d1f73(0x241)],hn=Object['getOwnPropertyDescriptor'],Cn=(_0x40a645,_0xe4a032,_0x42c177)=>_0xe4a032 in _0x40a645?fn(_0x40a645,_0xe4a032,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42c177}):_0x40a645[_0xe4a032]=_0x42c177,mn=(_0x2be425,_0x1e739e,_0x28c91e,_0x5248d1)=>{const _0x10d2fa=_0x3d1f73;for(var _0x58c36a=_0x5248d1>0x1?void 0x0:_0x5248d1?hn(_0x1e739e,_0x28c91e):_0x1e739e,_0x44d4d9=_0x2be425[_0x10d2fa(0x2b5)]-0x1,_0x138a3d;_0x44d4d9>=0x0;_0x44d4d9--)(_0x138a3d=_0x2be425[_0x44d4d9])&&(_0x58c36a=_0x138a3d(_0x58c36a)||_0x58c36a);return _0x58c36a;},P=(_0x582a2e,_0x26e751)=>(_0x564970,_0x4e6077)=>_0x26e751(_0x564970,_0x4e6077,_0x582a2e),_n=(_0x1fbfcc,_0x1098d2,_0x56d432)=>Cn(_0x1fbfcc,_0x1098d2+'',_0x56d432);let j=class extends _0x5bf17b{constructor(_0x2fc2cb=ie,_0x1a9aee,_0x25ca7b,_0x35ef71,_0x723f67,_0x3beb59){const _0x3f3588=_0x3d1f73;super(),this['_config']=_0x2fc2cb,this[_0x3f3588(0x1f8)]=_0x1a9aee,this['_configService']=_0x25ca7b,this[_0x3f3588(0x24a)]=_0x35ef71,this['_localStorageService']=_0x723f67,this['_localeService']=_0x3beb59;const {..._0x332faa}=_0x2d62e4({},ie,this[_0x3f3588(0x20a)]);this[_0x3f3588(0x1e4)]['setConfig'](y,_0x332faa);}async[_0x3d1f73(0x1da)](){const _0x142c83=_0x3d1f73,_0x39a90e=[[O],[I],[D]];this['_injector']['has'](_0x33978c)||_0x39a90e[_0x142c83(0x24d)]([_0x33978c,{'useClass':_0x15ecd1}]),_0x39a90e[_0x142c83(0x182)](_0x4d96d8=>this[_0x142c83(0x1f8)]['add'](_0x4d96d8)),this[_0x142c83(0x1f8)][_0x142c83(0x18c)](O),this['_injector']['get'](I),this[_0x142c83(0x1f8)][_0x142c83(0x18c)](D);}};_n(j,_0x3d1f73(0x1bc),'MCP_UI_PLUGIN'),j=mn([_0x3951f0(_0x38e135),P(0x1,_0x239ee7(_0x53009c)),P(0x2,_0x47eded),P(0x3,_0x436320),P(0x4,_0x8ee795),P(0x5,_0x239ee7(_0x59138c))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- const _0x3b1710=_0x5b0a;function _0xda85(){const _0x54c102=['MCP\x20Unknown\x20Status','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20Key','Connection\x20Failed','Configuration\x20Parameters:','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','3701780zBmJVP','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','6GzplVH','3576PfPwpB','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20is\x20required','3792896CiOWcc','Disconnected','MCP\x20Connection\x20Failed','Click\x20to\x20configure\x20MCP','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','2246301vRvicN','Copy\x20the\x20JSON\x20configuration\x20below','2106010ubNKUV','Saving...','Save\x20Configuration','926596RrEWFK','Configuration\x20Steps:','API\x20key\x20with\x20Bearer\x20prefix.','Session\x20ID','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Connected','66286hhqETb','Invalid\x20configuration','13181KLvgjf','MCP\x20Retrying...','Connecting...','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','6zLcIvi','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP:\x20Unauthorized','MCP\x20Connecting...','77BSaUOh','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20saved\x20successfully','Max\x20Retries','MCP\x20Connected','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Retrying...','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20connect\x20MCP','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Univer\x20AI\x20Console','Get\x20your\x20API\x20key\x20in\x20seconds'];_0xda85=function(){return _0x54c102;};return _0xda85();}(function(_0x43fdcf,_0x2e4168){const _0x367f74=_0x5b0a,_0x183194=_0x43fdcf();while(!![]){try{const _0x5927f5=-parseInt(_0x367f74(0xcc))/0x1+parseInt(_0x367f74(0xc6))/0x2*(parseInt(_0x367f74(0xd3))/0x3)+parseInt(_0x367f74(0xbc))/0x4+parseInt(_0x367f74(0xb5))/0x5*(parseInt(_0x367f74(0xb7))/0x6)+parseInt(_0x367f74(0xce))/0x7*(-parseInt(_0x367f74(0xb8))/0x8)+parseInt(_0x367f74(0xc1))/0x9+parseInt(_0x367f74(0xc3))/0xa*(-parseInt(_0x367f74(0xd7))/0xb);if(_0x5927f5===_0x2e4168)break;else _0x183194['push'](_0x183194['shift']());}catch(_0x2e2502){_0x183194['push'](_0x183194['shift']());}}}(_0xda85,0x75d0b));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x3b1710(0xd6),'connected':_0x3b1710(0xdb),'failed':_0x3b1710(0xbe),'retrying':_0x3b1710(0xcf),'unknown':_0x3b1710(0xaf),'unauthorized':_0x3b1710(0xd5),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x3b1710(0xab),'clickToConfigure':_0x3b1710(0xbf)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x3b1710(0xac),'apiKey':_0x3b1710(0xb1),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3b1710(0xb6),'enableAuth':_0x3b1710(0xd1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x3b1710(0xc7),'configStep1':_0x3b1710(0xc2),'configStep2':_0x3b1710(0xb4),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x3b1710(0xc9),'sessionIdDescription':_0x3b1710(0xca),'authorizationDescription':_0x3b1710(0xc8),'configParameters':_0x3b1710(0xb3),'maxRetries':_0x3b1710(0xda),'save':_0x3b1710(0xc5),'saving':_0x3b1710(0xc4),'note1':_0x3b1710(0xdc),'note2':_0x3b1710(0xd2),'configSaved':_0x3b1710(0xd9),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3b1710(0xd8),'univerAiLabel':_0x3b1710(0xad),'getStarted':_0x3b1710(0xae)},'validation':{'apiKeyRequired':_0x3b1710(0xbb),'apiKeyTooShort':_0x3b1710(0xaa),'invalidConfig':_0x3b1710(0xcd),'invalidApiKey':_0x3b1710(0xba)},'connectionStatus':{'disconnected':_0x3b1710(0xbd),'connecting':_0x3b1710(0xd0),'connected':_0x3b1710(0xcb),'failed':_0x3b1710(0xb2),'retrying':_0x3b1710(0xdd)},'connectionError':{'unauthorized':_0x3b1710(0xd4),'sessionOccupied':_0x3b1710(0xb0),'networkError':_0x3b1710(0xb9),'maxRetriesExceeded':_0x3b1710(0xc0)}}},n=e;function _0x5b0a(_0x249a40,_0x8f3699){_0x249a40=_0x249a40-0xaa;const _0xda8573=_0xda85();let _0x5b0a0b=_0xda8573[_0x249a40];return _0x5b0a0b;}export{n as default};
1
+ function _0x3c6d(_0x59f7ca,_0x289e27){_0x59f7ca=_0x59f7ca-0x17c;const _0x725e77=_0x725e();let _0x3c6d36=_0x725e77[_0x59f7ca];return _0x3c6d36;}const _0x581bf4=_0x3c6d;function _0x725e(){const _0x364ee9=['Failed\x20to\x20save\x20configuration','Invalid\x20configuration','Saving...','44EBHWlP','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','Get\x20your\x20API\x20key\x20in\x20seconds','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','Connection\x20Failed','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','MCP\x20Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Copy\x20the\x20JSON\x20configuration\x20below','Session\x20ID','Configuration\x20Steps:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Max\x20Retries','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','MCP:\x20Unauthorized','Enter\x20your\x20API\x20key','299916JzIpDo','Configuration\x20Parameters:','Retrying...','MCP\x20Client\x20Configuration','3318990hDtZHu','369ymlIif','API\x20key\x20with\x20Bearer\x20prefix.','43959320pDUMSO','MCP\x20Connection\x20Failed','MCP\x20Unknown\x20Status','5190685IWuXGX','448302vVPFQK','API\x20Key','126ztALLE','Disconnected','126424AnJgYt','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','283293BAqUHR','Save\x20Configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x725e=function(){return _0x364ee9;};return _0x725e();}(function(_0x261939,_0x24e453){const _0x207f1a=_0x3c6d,_0x36d7fd=_0x261939();while(!![]){try{const _0x446ef4=parseInt(_0x207f1a(0x18a))/0x1+-parseInt(_0x207f1a(0x17d))/0x2+-parseInt(_0x207f1a(0x184))/0x3*(parseInt(_0x207f1a(0x190))/0x4)+parseInt(_0x207f1a(0x183))/0x5+-parseInt(_0x207f1a(0x1a5))/0x6*(parseInt(_0x207f1a(0x186))/0x7)+parseInt(_0x207f1a(0x188))/0x8*(-parseInt(_0x207f1a(0x17e))/0x9)+parseInt(_0x207f1a(0x180))/0xa;if(_0x446ef4===_0x24e453)break;else _0x36d7fd['push'](_0x36d7fd['shift']());}catch(_0x4cdd56){_0x36d7fd['push'](_0x36d7fd['shift']());}}}(_0x725e,0xd3876));const e={'mcpStatus':{'disconnected':_0x581bf4(0x19a),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x581bf4(0x181),'retrying':_0x581bf4(0x198),'unknown':_0x581bf4(0x182),'unauthorized':_0x581bf4(0x1a3),'sessionOccupied':_0x581bf4(0x192),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x581bf4(0x191)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x581bf4(0x19b),'apiKey':_0x581bf4(0x185),'apiKeyPlaceholder':_0x581bf4(0x1a4),'apiKeyHint':_0x581bf4(0x189),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x581bf4(0x1a2),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x581bf4(0x17c),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x581bf4(0x19e),'configStep1':_0x581bf4(0x19c),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x581bf4(0x18c),'sessionId':_0x581bf4(0x19d),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x581bf4(0x17f),'configParameters':_0x581bf4(0x1a6),'maxRetries':_0x581bf4(0x1a0),'save':_0x581bf4(0x18b),'saving':_0x581bf4(0x18f),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x581bf4(0x18d),'apiApplyInfo':{'title':_0x581bf4(0x195),'description':_0x581bf4(0x19f),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x581bf4(0x193)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x581bf4(0x1a1),'invalidConfig':_0x581bf4(0x18e),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x581bf4(0x187),'connecting':'Connecting...','connected':'Connected','failed':_0x581bf4(0x196),'retrying':_0x581bf4(0x1a7)},'connectionError':{'unauthorized':_0x581bf4(0x199),'sessionOccupied':_0x581bf4(0x197),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x581bf4(0x194)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- function _0x321c(_0x188c01,_0x4029b7){_0x188c01=_0x188c01-0x9d;const _0x1bdc42=_0x1bdc();let _0x321c25=_0x1bdc42[_0x188c01];return _0x321c25;}const _0xf51abd=_0x321c;(function(_0xdd1627,_0x5b5dfb){const _0x3a1dca=_0x321c,_0x852254=_0xdd1627();while(!![]){try{const _0x516d1f=-parseInt(_0x3a1dca(0xaa))/0x1+parseInt(_0x3a1dca(0xca))/0x2*(-parseInt(_0x3a1dca(0xc5))/0x3)+-parseInt(_0x3a1dca(0x9f))/0x4+-parseInt(_0x3a1dca(0xd0))/0x5*(parseInt(_0x3a1dca(0xb6))/0x6)+-parseInt(_0x3a1dca(0xc0))/0x7*(-parseInt(_0x3a1dca(0xad))/0x8)+-parseInt(_0x3a1dca(0xb3))/0x9+-parseInt(_0x3a1dca(0xa1))/0xa*(-parseInt(_0x3a1dca(0xc1))/0xb);if(_0x516d1f===_0x5b5dfb)break;else _0x852254['push'](_0x852254['shift']());}catch(_0x18a989){_0x852254['push'](_0x852254['shift']());}}}(_0x1bdc,0x4bdb2));const e={'mcpStatus':{'disconnected':_0xf51abd(0xb4),'connecting':'MCP\x20Connecting...','connected':_0xf51abd(0xc9),'failed':_0xf51abd(0xa5),'retrying':_0xf51abd(0xa0),'unknown':_0xf51abd(0xcd),'unauthorized':_0xf51abd(0xaf),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0xf51abd(0xc4),'maxRetriesExceeded':_0xf51abd(0xc6),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xf51abd(0xae)},'mcpConfig':{'title':_0xf51abd(0xb7),'description':_0xf51abd(0xb2),'apiKey':_0xf51abd(0xc2),'apiKeyPlaceholder':_0xf51abd(0xc7),'apiKeyHint':_0xf51abd(0xbb),'enableAuth':_0xf51abd(0xac),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0xf51abd(0xa7),'mcpClientConfig':_0xf51abd(0xa7),'configInstructions':_0xf51abd(0xcc),'configStepTitle':_0xf51abd(0xba),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0xf51abd(0x9d),'sessionIdDescription':_0xf51abd(0xa3),'authorizationDescription':_0xf51abd(0xa6),'configParameters':_0xf51abd(0xb9),'maxRetries':_0xf51abd(0xa2),'save':_0xf51abd(0xb8),'saving':_0xf51abd(0xa4),'note1':_0xf51abd(0xb1),'note2':_0xf51abd(0xb5),'configSaved':_0xf51abd(0xb0),'configError':_0xf51abd(0xa9),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','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':'Univer\x20AI\x20Console','getStarted':_0xf51abd(0xc3)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0xf51abd(0xa8),'invalidConfig':_0xf51abd(0x9e),'invalidApiKey':_0xf51abd(0xbc)},'connectionStatus':{'disconnected':_0xf51abd(0xbe),'connecting':'Connecting...','connected':_0xf51abd(0xbf),'failed':_0xf51abd(0xc8),'retrying':_0xf51abd(0xce)},'connectionError':{'unauthorized':_0xf51abd(0xcb),'sessionOccupied':_0xf51abd(0xab),'networkError':_0xf51abd(0xcf),'maxRetriesExceeded':_0xf51abd(0xbd)}}};export{e as default};function _0x1bdc(){const _0x1b7ac2=['MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2496378vDpyKN','MCP\x20Configuration','Save\x20Configuration','Configuration\x20Parameters:','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Connected','14hGxBrl','900460YFiRVk','API\x20Key','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error','6bsGooW','MCP:\x20Max\x20Retries\x20Exceeded','Enter\x20your\x20API\x20key','Connection\x20Failed','MCP\x20Connected','114298XkPQNV','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Unknown\x20Status','Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','5XPrLws','Session\x20ID','Invalid\x20configuration','140312DZhtxP','MCP\x20Retrying...','80AAxNhT','Max\x20Retries','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Failed\x20to\x20save\x20configuration','76817dMrmFF','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enable\x20Authentication','2073416Enuciq','Click\x20to\x20configure\x20MCP','MCP:\x20Unauthorized','Configuration\x20saved\x20successfully','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','1982448yUuDCb'];_0x1bdc=function(){return _0x1b7ac2;};return _0x1bdc();}
1
+ const _0x5f28ba=_0x24ad;(function(_0x18f915,_0x5ef05b){const _0xc33219=_0x24ad,_0x3c676b=_0x18f915();while(!![]){try{const _0x55e2ce=parseInt(_0xc33219(0xb8))/0x1+parseInt(_0xc33219(0xa7))/0x2*(parseInt(_0xc33219(0xba))/0x3)+-parseInt(_0xc33219(0xb1))/0x4+-parseInt(_0xc33219(0xa6))/0x5*(parseInt(_0xc33219(0xc0))/0x6)+parseInt(_0xc33219(0xc5))/0x7+parseInt(_0xc33219(0xa4))/0x8*(-parseInt(_0xc33219(0xa2))/0x9)+parseInt(_0xc33219(0xc3))/0xa;if(_0x55e2ce===_0x5ef05b)break;else _0x3c676b['push'](_0x3c676b['shift']());}catch(_0x3df7d2){_0x3c676b['push'](_0x3c676b['shift']());}}}(_0xb738,0x52dfa));function _0x24ad(_0x3df3cd,_0x2345a0){_0x3df3cd=_0x3df3cd-0x99;const _0xb7385b=_0xb738();let _0x24adfe=_0xb7385b[_0x3df3cd];return _0x24adfe;}function _0xb738(){const _0x54dd5a=['Click\x20to\x20configure\x20MCP','1510240vREJEr','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Disconnected','MCP\x20Connected','Copy\x20the\x20JSON\x20configuration\x20below','Connected','MCP\x20Connecting...','55012HqdNXN','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','14097hDBJHp','MCP\x20Client\x20Configuration','Connection\x20Failed','Configuration\x20saved\x20successfully','Connecting...','MCP\x20Configuration','2978160QUnQSO','API\x20Key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','8860900NsAERH','MCP\x20Connection\x20Failed','2979774KCHpTq','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','Click\x20to\x20connect\x20MCP','Univer\x20AI\x20Console','Enter\x20your\x20API\x20key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Unauthorized','2353419ShCEdY','What\x20is\x20API\x20Key?','8gekyJx','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','5woirIk','46TdEZwG','API\x20key\x20is\x20required','MCP:\x20Network\x20Error','MCP:\x20Session\x20ID\x20Occupied','Saving...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets'];_0xb738=function(){return _0x54dd5a;};return _0xb738();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5f28ba(0xb7),'connected':_0x5f28ba(0xb4),'failed':_0x5f28ba(0xc4),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5f28ba(0xa1),'sessionOccupied':_0x5f28ba(0xaa),'networkError':_0x5f28ba(0xa9),'maxRetriesExceeded':_0x5f28ba(0xad),'clickToConnect':_0x5f28ba(0x99),'clickToConfigure':_0x5f28ba(0xb0)},'mcpConfig':{'title':_0x5f28ba(0xbf),'description':_0x5f28ba(0xaf),'apiKey':_0x5f28ba(0xc1),'apiKeyPlaceholder':_0x5f28ba(0x9b),'apiKeyHint':_0x5f28ba(0x9e),'enableAuth':'Enable\x20Authentication','enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5f28ba(0xbb),'mcpClientConfig':_0x5f28ba(0xbb),'configInstructions':_0x5f28ba(0xa5),'configStepTitle':_0x5f28ba(0x9d),'configStep1':_0x5f28ba(0xb5),'configStep2':_0x5f28ba(0xc2),'configStep3':_0x5f28ba(0xac),'sessionId':_0x5f28ba(0xc8),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x5f28ba(0xc6),'maxRetries':_0x5f28ba(0xae),'save':'Save\x20Configuration','saving':_0x5f28ba(0xab),'note1':_0x5f28ba(0x9c),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5f28ba(0xbd),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x5f28ba(0xa3),'description':_0x5f28ba(0xc7),'univerAiLabel':_0x5f28ba(0x9a),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5f28ba(0xa8),'apiKeyTooShort':_0x5f28ba(0xb2),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x5f28ba(0xb9)},'connectionStatus':{'disconnected':_0x5f28ba(0xb3),'connecting':_0x5f28ba(0xbe),'connected':_0x5f28ba(0xb6),'failed':_0x5f28ba(0xbc),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5f28ba(0x9f),'networkError':_0x5f28ba(0xa0),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};export{e as default};
@@ -1 +1 @@
1
- function _0x3835(){const _0x19a670=['Copy\x20the\x20JSON\x20configuration\x20below','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Session\x20ID','MCP\x20Retrying...','3273522ezyecf','Retrying...','96308UEHtVJ','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20Key','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required','Configuration\x20Parameters:','MCP\x20Connecting...','Configuration\x20saved\x20successfully','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','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.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Click\x20to\x20connect\x20MCP','Enable\x20Authentication','MCP\x20Client\x20Configuration','Saving...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Failed\x20to\x20save\x20configuration','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','4cTzaSL','Connected','994750AHVske','Connecting...','Save\x20Configuration','MCP\x20Disconnected','MCP:\x20Unauthorized','MCP\x20Configuration','Disconnected','Univer\x20AI\x20Console','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries','9130167DkpkSL','1076352LmRRhQ','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Max\x20Retries\x20Exceeded','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','10WQjWxt','Click\x20to\x20configure\x20MCP','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Connection\x20Failed','MCP\x20Connected','1747059KXUsUb','3245616gOXUmR','Invalid\x20configuration','Configuration\x20Steps:'];_0x3835=function(){return _0x19a670;};return _0x3835();}const _0x35e6f1=_0x2e52;function _0x2e52(_0x1d86b9,_0x457c40){_0x1d86b9=_0x1d86b9-0x187;const _0x3835eb=_0x3835();let _0x2e5225=_0x3835eb[_0x1d86b9];return _0x2e5225;}(function(_0x2f0df1,_0x521dd6){const _0x28c34c=_0x2e52,_0x20691b=_0x2f0df1();while(!![]){try{const _0x3bffae=parseInt(_0x28c34c(0x1aa))/0x1+-parseInt(_0x28c34c(0x189))/0x2+-parseInt(_0x28c34c(0x1a0))/0x3*(parseInt(_0x28c34c(0x187))/0x4)+parseInt(_0x28c34c(0x198))/0x5*(parseInt(_0x28c34c(0x194))/0x6)+-parseInt(_0x28c34c(0x1a8))/0x7+parseInt(_0x28c34c(0x1a1))/0x8+parseInt(_0x28c34c(0x193))/0x9;if(_0x3bffae===_0x521dd6)break;else _0x20691b['push'](_0x20691b['shift']());}catch(_0x5a3927){_0x20691b['push'](_0x20691b['shift']());}}}(_0x3835,0x500cb));const e={'mcpStatus':{'disconnected':_0x35e6f1(0x18c),'connecting':_0x35e6f1(0x1b1),'connected':_0x35e6f1(0x19f),'failed':_0x35e6f1(0x19e),'retrying':_0x35e6f1(0x1a7),'unknown':_0x35e6f1(0x1be),'unauthorized':_0x35e6f1(0x18d),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x35e6f1(0x19c),'maxRetriesExceeded':_0x35e6f1(0x196),'clickToConnect':_0x35e6f1(0x1b7),'clickToConfigure':_0x35e6f1(0x199)},'mcpConfig':{'title':_0x35e6f1(0x18e),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x35e6f1(0x1ad),'apiKeyPlaceholder':_0x35e6f1(0x1ab),'apiKeyHint':_0x35e6f1(0x1b4),'enableAuth':_0x35e6f1(0x1b8),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x35e6f1(0x1b9),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x35e6f1(0x1a3),'configStep1':_0x35e6f1(0x1a4),'configStep2':_0x35e6f1(0x197),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x35e6f1(0x1a6),'sessionIdDescription':_0x35e6f1(0x1b5),'authorizationDescription':_0x35e6f1(0x19d),'configParameters':_0x35e6f1(0x1b0),'maxRetries':_0x35e6f1(0x192),'save':_0x35e6f1(0x18b),'saving':_0x35e6f1(0x1ba),'note1':_0x35e6f1(0x1b6),'note2':_0x35e6f1(0x195),'configSaved':_0x35e6f1(0x1b2),'configError':_0x35e6f1(0x1bc),'apiApplyInfo':{'title':_0x35e6f1(0x1bd),'description':_0x35e6f1(0x1ae),'univerAiLabel':_0x35e6f1(0x190),'getStarted':_0x35e6f1(0x19b)},'validation':{'apiKeyRequired':_0x35e6f1(0x1af),'apiKeyTooShort':_0x35e6f1(0x191),'invalidConfig':_0x35e6f1(0x1a2),'invalidApiKey':_0x35e6f1(0x1ac)},'connectionStatus':{'disconnected':_0x35e6f1(0x18f),'connecting':_0x35e6f1(0x18a),'connected':_0x35e6f1(0x188),'failed':_0x35e6f1(0x19a),'retrying':_0x35e6f1(0x1a9)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x35e6f1(0x1a5),'networkError':_0x35e6f1(0x1bb),'maxRetriesExceeded':_0x35e6f1(0x1b3)}}},n=e;export{n as default};
1
+ const _0x15cd05=_0x2845;function _0x2845(_0x24728b,_0x154d0c){_0x24728b=_0x24728b-0x1d9;const _0x284580=_0x6c5b();let _0x1a3a8c=_0x284580[_0x24728b];return _0x1a3a8c;}function _0x6c5b(){const _0x2b1425=['13087305zCZvoF','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Disconnected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','3tjeujJ','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP\x20Retrying...','1373666DLDSZa','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','Enable\x20Authentication','MCP:\x20Unauthorized','API\x20Key','Save\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','3056VdKjdJ','MCP\x20Connection\x20Failed','18SexoDj','Configuration\x20saved\x20successfully','Enable\x20authentication\x20for\x20secure\x20connections','Connected','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Unknown\x20Status','Saving...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connecting...','4863123jOFjEB','Max\x20Retries','Univer\x20AI\x20Console','Failed\x20to\x20save\x20configuration','Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','API\x20key\x20is\x20required','Enter\x20your\x20API\x20key','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','537648uiFZTF','6874ARPVds','Connection\x20Failed','Session\x20ID','627352JLcmnb','20IQbRVP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Invalid\x20configuration','MCP\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Copy\x20the\x20JSON\x20configuration\x20below','609055gisYIS','Click\x20to\x20configure\x20MCP','Configuration\x20Steps:'];_0x6c5b=function(){return _0x2b1425;};return _0x6c5b();}(function(_0x1c6bcd,_0x25850f){const _0x3ad25e=_0x2845,_0x1ead33=_0x1c6bcd();while(!![]){try{const _0x4cc458=parseInt(_0x3ad25e(0x1e8))/0x1+parseInt(_0x3ad25e(0x20a))/0x2+parseInt(_0x3ad25e(0x1e4))/0x3*(-parseInt(_0x3ad25e(0x206))/0x4)+-parseInt(_0x3ad25e(0x1dd))/0x5*(parseInt(_0x3ad25e(0x1f2))/0x6)+-parseInt(_0x3ad25e(0x207))/0x7*(parseInt(_0x3ad25e(0x1f0))/0x8)+parseInt(_0x3ad25e(0x1fb))/0x9*(parseInt(_0x3ad25e(0x20b))/0xa)+-parseInt(_0x3ad25e(0x1e0))/0xb;if(_0x4cc458===_0x25850f)break;else _0x1ead33['push'](_0x1ead33['shift']());}catch(_0x4f6dbc){_0x1ead33['push'](_0x1ead33['shift']());}}}(_0x6c5b,0xabb50));const e={'mcpStatus':{'disconnected':_0x15cd05(0x1e2),'connecting':_0x15cd05(0x1fa),'connected':'MCP\x20Connected','failed':_0x15cd05(0x1f1),'retrying':_0x15cd05(0x1e7),'unknown':_0x15cd05(0x1f7),'unauthorized':_0x15cd05(0x1ec),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x15cd05(0x1f6),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x15cd05(0x1de)},'mcpConfig':{'title':_0x15cd05(0x1d9),'description':_0x15cd05(0x205),'apiKey':_0x15cd05(0x1ed),'apiKeyPlaceholder':_0x15cd05(0x204),'apiKeyHint':_0x15cd05(0x1e6),'enableAuth':_0x15cd05(0x1eb),'enableAuthHint':_0x15cd05(0x1f4),'connectionInfo':_0x15cd05(0x1ea),'mcpClientConfig':_0x15cd05(0x1ea),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x15cd05(0x1df),'configStep1':_0x15cd05(0x1dc),'configStep2':_0x15cd05(0x20c),'configStep3':_0x15cd05(0x201),'sessionId':_0x15cd05(0x209),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x15cd05(0x1db),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x15cd05(0x1fc),'save':_0x15cd05(0x1ee),'saving':_0x15cd05(0x1f8),'note1':_0x15cd05(0x1e5),'note2':_0x15cd05(0x1ef),'configSaved':_0x15cd05(0x1f3),'configError':_0x15cd05(0x1fe),'apiApplyInfo':{'title':_0x15cd05(0x1e9),'description':_0x15cd05(0x200),'univerAiLabel':_0x15cd05(0x1fd),'getStarted':_0x15cd05(0x1e1)},'validation':{'apiKeyRequired':_0x15cd05(0x203),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x15cd05(0x20d),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x15cd05(0x1ff),'connecting':'Connecting...','connected':_0x15cd05(0x1f5),'failed':_0x15cd05(0x208),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x15cd05(0x202),'sessionOccupied':_0x15cd05(0x1f9),'networkError':_0x15cd05(0x1e3),'maxRetriesExceeded':_0x15cd05(0x1da)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- function _0x142d(){const _0x8ddeda=['MCP\x20Connection\x20Failed','MCP\x20Connecting...','274796MygUXD','Retrying...','2333800UpnnuL','751548EbIGsk','Invalid\x20configuration','API\x20Key','MCP\x20Retrying...','MCP\x20Client\x20Configuration','API\x20key\x20is\x20required','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Copy\x20the\x20JSON\x20configuration\x20below','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','2069078LTpOrm','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','143uGYphB','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','3itmBFm','8fCkaPc','89nMptpn','Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1409538xpubpP','MCP:\x20Unauthorized','MCP\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','9EKzFNh','Connecting...','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enter\x20your\x20API\x20key','Enable\x20Authentication','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','290930oNbTCY','Enable\x20authentication\x20for\x20secure\x20connections','4028uHywDG','MCP\x20Disconnected','API\x20key\x20with\x20Bearer\x20prefix.','5tftnlU','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Parameters:'];_0x142d=function(){return _0x8ddeda;};return _0x142d();}function _0x251b(_0x50ab8a,_0x25f960){_0x50ab8a=_0x50ab8a-0xac;const _0x142d2f=_0x142d();let _0x251b9f=_0x142d2f[_0x50ab8a];return _0x251b9f;}const _0x4f466f=_0x251b;(function(_0x4bfd58,_0x295f27){const _0x54fb19=_0x251b,_0x3f8015=_0x4bfd58();while(!![]){try{const _0x17a9d8=parseInt(_0x54fb19(0xb8))/0x1*(-parseInt(_0x54fb19(0xcb))/0x2)+parseInt(_0x54fb19(0xb6))/0x3*(parseInt(_0x54fb19(0xd3))/0x4)+-parseInt(_0x54fb19(0xce))/0x5*(parseInt(_0x54fb19(0xbb))/0x6)+-parseInt(_0x54fb19(0xd5))/0x7*(parseInt(_0x54fb19(0xb7))/0x8)+-parseInt(_0x54fb19(0xc0))/0x9*(parseInt(_0x54fb19(0xc9))/0xa)+parseInt(_0x54fb19(0xb2))/0xb+parseInt(_0x54fb19(0xd6))/0xc*(parseInt(_0x54fb19(0xb4))/0xd);if(_0x17a9d8===_0x295f27)break;else _0x3f8015['push'](_0x3f8015['shift']());}catch(_0x4b6d67){_0x3f8015['push'](_0x3f8015['shift']());}}}(_0x142d,0x2945e));const e={'mcpStatus':{'disconnected':_0x4f466f(0xcc),'connecting':_0x4f466f(0xd2),'connected':'MCP\x20Connected','failed':_0x4f466f(0xd1),'retrying':_0x4f466f(0xd9),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4f466f(0xbc),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4f466f(0xac),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4f466f(0xbd),'description':_0x4f466f(0xde),'apiKey':_0x4f466f(0xd8),'apiKeyPlaceholder':_0x4f466f(0xc6),'apiKeyHint':_0x4f466f(0xbf),'enableAuth':_0x4f466f(0xc7),'enableAuthHint':_0x4f466f(0xca),'connectionInfo':_0x4f466f(0xda),'mcpClientConfig':_0x4f466f(0xda),'configInstructions':_0x4f466f(0xb3),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4f466f(0xdd),'configStep2':_0x4f466f(0xc4),'configStep3':_0x4f466f(0xb5),'sessionId':'Session\x20ID','sessionIdDescription':_0x4f466f(0xba),'authorizationDescription':_0x4f466f(0xcd),'configParameters':_0x4f466f(0xd0),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x4f466f(0xdc),'note2':_0x4f466f(0xb0),'configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x4f466f(0xc8),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x4f466f(0xc3)},'validation':{'apiKeyRequired':_0x4f466f(0xdb),'apiKeyTooShort':_0x4f466f(0xb1),'invalidConfig':_0x4f466f(0xd7),'invalidApiKey':_0x4f466f(0xc5)},'connectionStatus':{'disconnected':_0x4f466f(0xaf),'connecting':_0x4f466f(0xc1),'connected':_0x4f466f(0xc2),'failed':_0x4f466f(0xb9),'retrying':_0x4f466f(0xd4)},'connectionError':{'unauthorized':_0x4f466f(0xcf),'sessionOccupied':_0x4f466f(0xbe),'networkError':_0x4f466f(0xad),'maxRetriesExceeded':_0x4f466f(0xae)}}},n=e;export{n as default};
1
+ const _0x59e7bf=_0x30ac;(function(_0xa7bd93,_0x3b0af8){const _0x2a79ee=_0x30ac,_0x20b310=_0xa7bd93();while(!![]){try{const _0x5e05a4=parseInt(_0x2a79ee(0xcf))/0x1*(-parseInt(_0x2a79ee(0xdf))/0x2)+-parseInt(_0x2a79ee(0xf3))/0x3*(parseInt(_0x2a79ee(0xd5))/0x4)+-parseInt(_0x2a79ee(0xc8))/0x5*(-parseInt(_0x2a79ee(0xdc))/0x6)+parseInt(_0x2a79ee(0xc7))/0x7+parseInt(_0x2a79ee(0xcd))/0x8*(parseInt(_0x2a79ee(0xf0))/0x9)+parseInt(_0x2a79ee(0xe0))/0xa+-parseInt(_0x2a79ee(0xdd))/0xb*(-parseInt(_0x2a79ee(0xee))/0xc);if(_0x5e05a4===_0x3b0af8)break;else _0x20b310['push'](_0x20b310['shift']());}catch(_0x81293c){_0x20b310['push'](_0x20b310['shift']());}}}(_0x34c9,0x72793));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x59e7bf(0xc5),'connected':'MCP\x20Connected','failed':_0x59e7bf(0xd2),'retrying':_0x59e7bf(0xe3),'unknown':_0x59e7bf(0xe2),'unauthorized':_0x59e7bf(0xca),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x59e7bf(0xcb),'maxRetriesExceeded':_0x59e7bf(0xd0),'clickToConnect':_0x59e7bf(0xe6),'clickToConfigure':_0x59e7bf(0xed)},'mcpConfig':{'title':_0x59e7bf(0xd7),'description':_0x59e7bf(0xe4),'apiKey':_0x59e7bf(0xd3),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x59e7bf(0xc1),'enableAuth':_0x59e7bf(0xeb),'enableAuthHint':_0x59e7bf(0xd4),'connectionInfo':_0x59e7bf(0xd6),'mcpClientConfig':_0x59e7bf(0xd6),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x59e7bf(0xc3),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x59e7bf(0xf1),'configStep3':_0x59e7bf(0xe8),'sessionId':_0x59e7bf(0xea),'sessionIdDescription':_0x59e7bf(0xc6),'authorizationDescription':_0x59e7bf(0xce),'configParameters':_0x59e7bf(0xe5),'maxRetries':_0x59e7bf(0xd1),'save':'Save\x20Configuration','saving':_0x59e7bf(0xc9),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x59e7bf(0xdb),'configSaved':_0x59e7bf(0xda),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x59e7bf(0xec),'univerAiLabel':_0x59e7bf(0xde),'getStarted':_0x59e7bf(0xf2)},'validation':{'apiKeyRequired':_0x59e7bf(0xe1),'apiKeyTooShort':_0x59e7bf(0xe9),'invalidConfig':_0x59e7bf(0xd9),'invalidApiKey':_0x59e7bf(0xef)},'connectionStatus':{'disconnected':_0x59e7bf(0xcc),'connecting':_0x59e7bf(0xd8),'connected':_0x59e7bf(0xc4),'failed':_0x59e7bf(0xe7),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x59e7bf(0xf4),'networkError':_0x59e7bf(0xc2),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x30ac(_0x2ed822,_0x287bb4){_0x2ed822=_0x2ed822-0xc1;const _0x34c9cd=_0x34c9();let _0x30ac4a=_0x34c9cd[_0x2ed822];return _0x30ac4a;}export{n as default};function _0x34c9(){const _0x12f972=['Enable\x20authentication\x20for\x20secure\x20connections','37296jxwGSL','MCP\x20Client\x20Configuration','MCP\x20Configuration','Connecting...','Invalid\x20configuration','Configuration\x20saved\x20successfully','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','141234pjciPA','83787XZszAa','Univer\x20AI\x20Console','1411858BgdZIw','6507770HAYNUP','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status','MCP\x20Retrying...','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','Click\x20to\x20connect\x20MCP','Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Session\x20ID','Enable\x20Authentication','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Click\x20to\x20configure\x20MCP','564SDMnJQ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','762849FdQiKI','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Get\x20your\x20API\x20key\x20in\x20seconds','270brxuXP','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Configuration\x20Steps:','Connected','MCP\x20Connecting...','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','2553537xgkuBi','10zYGLth','Saving...','MCP:\x20Unauthorized','MCP:\x20Network\x20Error','Disconnected','56wWxNWC','API\x20key\x20with\x20Bearer\x20prefix.','1MjUZQP','MCP:\x20Max\x20Retries\x20Exceeded','Max\x20Retries','MCP\x20Connection\x20Failed','API\x20Key'];_0x34c9=function(){return _0x12f972;};return _0x34c9();}
@@ -1 +1 @@
1
- const _0x2e5bcb=_0x2343;function _0xf4fc(){const _0x4d5349=['What\x20is\x20API\x20Key?','28nrlgnq','84ZUHXRd','248633GcubZT','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','Retrying...','41770YJacbb','Failed\x20to\x20save\x20configuration','2tgfOJH','Saving...','1581110VfjPAr','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Configuration','Connection\x20Failed','MCP\x20Connection\x20Failed','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Parameters:','MCP\x20Disconnected','MCP:\x20Network\x20Error','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','291922dOOdvY','Univer\x20AI\x20Console','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','6AqeViE','Save\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Configuration\x20Steps:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','37247VTSKof','Max\x20Retries','MCP\x20Retrying...','Connected','1448024qJfxyf','MCP\x20Connecting...','Configuration\x20saved\x20successfully','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','Click\x20to\x20connect\x20MCP','85233kzSGxV','MCP\x20Connected','MCP\x20Unknown\x20Status','135gdNJTf','Disconnected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication'];_0xf4fc=function(){return _0x4d5349;};return _0xf4fc();}(function(_0x314b06,_0x2b3da5){const _0x4c82f4=_0x2343,_0x33468d=_0x314b06();while(!![]){try{const _0x39bb88=-parseInt(_0x4c82f4(0x1f8))/0x1*(parseInt(_0x4c82f4(0x1eb))/0x2)+parseInt(_0x4c82f4(0x20b))/0x3*(parseInt(_0x4c82f4(0x1e3))/0x4)+-parseInt(_0x4c82f4(0x1ed))/0x5*(-parseInt(_0x4c82f4(0x1fb))/0x6)+-parseInt(_0x4c82f4(0x201))/0x7+parseInt(_0x4c82f4(0x205))/0x8+parseInt(_0x4c82f4(0x20e))/0x9*(-parseInt(_0x4c82f4(0x1e9))/0xa)+parseInt(_0x4c82f4(0x1e5))/0xb*(-parseInt(_0x4c82f4(0x1e4))/0xc);if(_0x39bb88===_0x2b3da5)break;else _0x33468d['push'](_0x33468d['shift']());}catch(_0x44a6ae){_0x33468d['push'](_0x33468d['shift']());}}}(_0xf4fc,0x2b73f));const e={'mcpStatus':{'disconnected':_0x2e5bcb(0x1f4),'connecting':_0x2e5bcb(0x206),'connected':_0x2e5bcb(0x20c),'failed':_0x2e5bcb(0x1f1),'retrying':_0x2e5bcb(0x203),'unknown':_0x2e5bcb(0x20d),'unauthorized':_0x2e5bcb(0x208),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x2e5bcb(0x1f5),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x2e5bcb(0x20a),'clickToConfigure':_0x2e5bcb(0x209)},'mcpConfig':{'title':_0x2e5bcb(0x1ef),'description':_0x2e5bcb(0x1ff),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x2e5bcb(0x210),'enableAuth':_0x2e5bcb(0x212),'enableAuthHint':_0x2e5bcb(0x1e6),'connectionInfo':_0x2e5bcb(0x1e7),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x2e5bcb(0x1fe),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x2e5bcb(0x200),'configStep3':_0x2e5bcb(0x1f7),'sessionId':'Session\x20ID','sessionIdDescription':_0x2e5bcb(0x1f2),'authorizationDescription':_0x2e5bcb(0x1ee),'configParameters':_0x2e5bcb(0x1f3),'maxRetries':_0x2e5bcb(0x202),'save':_0x2e5bcb(0x1fc),'saving':_0x2e5bcb(0x1ec),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x2e5bcb(0x207),'configError':_0x2e5bcb(0x1ea),'apiApplyInfo':{'title':_0x2e5bcb(0x1e2),'description':_0x2e5bcb(0x1f6),'univerAiLabel':_0x2e5bcb(0x1f9),'getStarted':_0x2e5bcb(0x1fd)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x2e5bcb(0x211)},'connectionStatus':{'disconnected':_0x2e5bcb(0x20f),'connecting':'Connecting...','connected':_0x2e5bcb(0x204),'failed':_0x2e5bcb(0x1f0),'retrying':_0x2e5bcb(0x1e8)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x2e5bcb(0x1fa),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x2343(_0x103f04,_0x34c6af){_0x103f04=_0x103f04-0x1e2;const _0xf4fc0b=_0xf4fc();let _0x23430e=_0xf4fc0b[_0x103f04];return _0x23430e;}export{n as default};
1
+ function _0x5314(_0x574a78,_0x215ebe){_0x574a78=_0x574a78-0xb9;const _0x5352a3=_0x5352();let _0x53144d=_0x5352a3[_0x574a78];return _0x53144d;}function _0x5352(){const _0x5e596b=['Session\x20ID','Invalid\x20configuration','57861sUzFiF','288TLOoRX','Enable\x20Authentication','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Connecting...','MCP\x20Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Session\x20ID\x20Occupied','Max\x20Retries','MCP:\x20Unauthorized','Save\x20Configuration','98523BNIcvz','What\x20is\x20API\x20Key?','137245tsXsXN','702OTDAuY','API\x20key\x20with\x20Bearer\x20prefix.','MCP\x20Unknown\x20Status','1525446cVtkJC','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Copy\x20the\x20JSON\x20configuration\x20below','2876660EsKKpa','Enable\x20authentication\x20for\x20secure\x20connections','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','API\x20Key','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Saving...','Configuration\x20Steps:','1601481gpMrMM','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','28VsBuAj','Enter\x20your\x20API\x20key','Connection\x20Failed','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required','MCP\x20Connecting...','1072tPggbw','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP\x20Disconnected'];_0x5352=function(){return _0x5e596b;};return _0x5352();}const _0x1ca6bb=_0x5314;(function(_0x3e907c,_0x538c89){const _0x25992d=_0x5314,_0x1327a8=_0x3e907c();while(!![]){try{const _0x178dbf=-parseInt(_0x25992d(0xc3))/0x1+-parseInt(_0x25992d(0xe0))/0x2*(-parseInt(_0x25992d(0xc6))/0x3)+parseInt(_0x25992d(0xda))/0x4*(parseInt(_0x25992d(0xc5))/0x5)+-parseInt(_0x25992d(0xc9))/0x6+parseInt(_0x25992d(0xd5))/0x7+-parseInt(_0x25992d(0xe6))/0x8*(-parseInt(_0x25992d(0xe5))/0x9)+-parseInt(_0x25992d(0xce))/0xa;if(_0x178dbf===_0x538c89)break;else _0x1327a8['push'](_0x1327a8['shift']());}catch(_0x8e0309){_0x1327a8['push'](_0x1327a8['shift']());}}}(_0x5352,0x21894));const e={'mcpStatus':{'disconnected':_0x1ca6bb(0xe2),'connecting':_0x1ca6bb(0xdf),'connected':_0x1ca6bb(0xbd),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x1ca6bb(0xc8),'unauthorized':_0x1ca6bb(0xc1),'sessionOccupied':_0x1ca6bb(0xbf),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1ca6bb(0xcb)},'mcpConfig':{'title':_0x1ca6bb(0xd8),'description':_0x1ca6bb(0xe1),'apiKey':_0x1ca6bb(0xd1),'apiKeyPlaceholder':_0x1ca6bb(0xdb),'apiKeyHint':_0x1ca6bb(0xbe),'enableAuth':_0x1ca6bb(0xb9),'enableAuthHint':_0x1ca6bb(0xcf),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1ca6bb(0xd4),'configStep1':_0x1ca6bb(0xcd),'configStep2':_0x1ca6bb(0xd0),'configStep3':_0x1ca6bb(0xd7),'sessionId':_0x1ca6bb(0xe3),'sessionIdDescription':_0x1ca6bb(0xd2),'authorizationDescription':_0x1ca6bb(0xc7),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1ca6bb(0xc0),'save':_0x1ca6bb(0xc2),'saving':_0x1ca6bb(0xd3),'note1':_0x1ca6bb(0xcc),'note2':_0x1ca6bb(0xba),'configSaved':_0x1ca6bb(0xdd),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x1ca6bb(0xc4),'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':'Univer\x20AI\x20Console','getStarted':_0x1ca6bb(0xd9)},'validation':{'apiKeyRequired':_0x1ca6bb(0xde),'apiKeyTooShort':_0x1ca6bb(0xca),'invalidConfig':_0x1ca6bb(0xe4),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x1ca6bb(0xbc),'connected':'Connected','failed':_0x1ca6bb(0xdc),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x1ca6bb(0xbb),'maxRetriesExceeded':_0x1ca6bb(0xd6)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x4c5f7f=_0x2ecc;(function(_0x4bfdb2,_0x1f65a0){const _0x312c00=_0x2ecc,_0x1c52c4=_0x4bfdb2();while(!![]){try{const _0x3401d0=-parseInt(_0x312c00(0x171))/0x1*(parseInt(_0x312c00(0x156))/0x2)+-parseInt(_0x312c00(0x16a))/0x3+-parseInt(_0x312c00(0x14d))/0x4*(parseInt(_0x312c00(0x14e))/0x5)+-parseInt(_0x312c00(0x14a))/0x6*(-parseInt(_0x312c00(0x173))/0x7)+parseInt(_0x312c00(0x166))/0x8+parseInt(_0x312c00(0x174))/0x9+-parseInt(_0x312c00(0x14b))/0xa*(-parseInt(_0x312c00(0x159))/0xb);if(_0x3401d0===_0x1f65a0)break;else _0x1c52c4['push'](_0x1c52c4['shift']());}catch(_0x3df81e){_0x1c52c4['push'](_0x1c52c4['shift']());}}}(_0x54ca,0xe8f6d));function _0x54ca(){const _0xb6ec27=['最大再試行回数を超過しました。後でもう一度お試しください','設定の変更は直ちに有効になります','セッションID','MCP設定','Univer\x20AIコンソール','MCP\x20接続済み','以下のJSON設定をコピー','設定パラメータ:','29478PHnFXu','4410wIdvMO','セキュアな接続のために認証を有効にする','2551960GZSsiI','10WUNPeG','無効なAPIキーです。キーが正しいか確認してください','接続失敗','MCPを設定してAIでスプレッドシートを操作','設定の保存に失敗しました','APIキー','APIキーはこのブラウザのローカルに保存されます','ネットワーク接続エラー。インターネット接続を確認してください','25604BzmczX','MCPクライアントの設定に次の設定を追加してください:','最大再試行回数','92983kzmNgX','MCP:\x20ネットワークエラー','APIキーはローカルストレージに安全に保存されます','MCP:\x20セッションIDが使用中','MCP\x20接続中...','APIキーとは?','APIキーは必須です','保存中...','未接続','数秒でAPIキーを取得','MCPクライアントを再起動して設定を適用','設定手順:','MCPクライアントの設定ファイルに設定を追加','11940376VrajBv','MCP\x20未接続','認証を有効にする','APIキーは10文字以上である必要があります','5394093vROOdv','クリックしてMCPを設定','再試行中...','MCP:\x20認証されていません','クリックしてMCPに接続','認証に失敗しました。APIキーを確認してください','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','124AnrnpX','MCPクライアント設定','77AJWnyj','3071853MAQfqY','MCP\x20再試行中...','セッションIDが現在使用中です。後でもう一度お試しください','無効な設定','設定を保存'];_0x54ca=function(){return _0xb6ec27;};return _0x54ca();}const e={'mcpStatus':{'disconnected':_0x4c5f7f(0x167),'connecting':_0x4c5f7f(0x15d),'connected':_0x4c5f7f(0x147),'failed':'MCP\x20接続失敗','retrying':_0x4c5f7f(0x175),'unknown':'MCP\x20不明な状態','unauthorized':_0x4c5f7f(0x16d),'sessionOccupied':_0x4c5f7f(0x15c),'networkError':_0x4c5f7f(0x15a),'maxRetriesExceeded':'MCP:\x20最大再試行回数を超過','clickToConnect':_0x4c5f7f(0x16e),'clickToConfigure':_0x4c5f7f(0x16b)},'mcpConfig':{'title':_0x4c5f7f(0x145),'description':_0x4c5f7f(0x151),'apiKey':_0x4c5f7f(0x153),'apiKeyPlaceholder':'APIキーを入力してください','apiKeyHint':_0x4c5f7f(0x154),'enableAuth':_0x4c5f7f(0x168),'enableAuthHint':_0x4c5f7f(0x14c),'connectionInfo':_0x4c5f7f(0x172),'mcpClientConfig':_0x4c5f7f(0x172),'configInstructions':_0x4c5f7f(0x157),'configStepTitle':_0x4c5f7f(0x164),'configStep1':_0x4c5f7f(0x148),'configStep2':_0x4c5f7f(0x165),'configStep3':_0x4c5f7f(0x163),'sessionId':_0x4c5f7f(0x144),'sessionIdDescription':'一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','authorizationDescription':'Bearerプレフィックス付きのAPIキー。','configParameters':_0x4c5f7f(0x149),'maxRetries':_0x4c5f7f(0x158),'save':_0x4c5f7f(0x178),'saving':_0x4c5f7f(0x160),'note1':_0x4c5f7f(0x143),'note2':_0x4c5f7f(0x15b),'configSaved':'設定が正常に保存されました','configError':_0x4c5f7f(0x152),'apiApplyInfo':{'title':_0x4c5f7f(0x15e),'description':_0x4c5f7f(0x170),'univerAiLabel':_0x4c5f7f(0x146),'getStarted':_0x4c5f7f(0x162)},'validation':{'apiKeyRequired':_0x4c5f7f(0x15f),'apiKeyTooShort':_0x4c5f7f(0x169),'invalidConfig':_0x4c5f7f(0x177),'invalidApiKey':_0x4c5f7f(0x14f)},'connectionStatus':{'disconnected':_0x4c5f7f(0x161),'connecting':'接続中...','connected':'接続済み','failed':_0x4c5f7f(0x150),'retrying':_0x4c5f7f(0x16c)},'connectionError':{'unauthorized':_0x4c5f7f(0x16f),'sessionOccupied':_0x4c5f7f(0x176),'networkError':_0x4c5f7f(0x155),'maxRetriesExceeded':_0x4c5f7f(0x142)}}};function _0x2ecc(_0x5d2b04,_0x405759){_0x5d2b04=_0x5d2b04-0x142;const _0x54ca7b=_0x54ca();let _0x2ecc67=_0x54ca7b[_0x5d2b04];return _0x2ecc67;}export{e as default};
1
+ function _0x4139(){const _0x2f821a=['1074NwqZQx','MCP設定','最大再試行回数','クリックしてMCPを設定','再試行中...','数秒でAPIキーを取得','APIキーとは?','MCP:\x20最大再試行回数を超過','認証に失敗しました。APIキーを確認してください','APIキーはこのブラウザのローカルに保存されます','MCP\x20接続済み','クリックしてMCPに接続','MCP:\x20セッションIDが使用中','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','APIキーは10文字以上である必要があります','278366oOFCqm','MCP\x20再試行中...','2391344RXVSwm','Univer\x20AIコンソール','MCP:\x20ネットワークエラー','2477199hBAWaO','MCPクライアントを再起動して設定を適用','MCPクライアント設定','2lFrrmJ','セッションID','36mSCPlK','MCP\x20接続失敗','接続失敗','MCP\x20不明な状態','設定パラメータ:','最大再試行回数を超過しました。後でもう一度お試しください','MCP:\x20認証されていません','セキュアな接続のために認証を有効にする','35765CmgDfE','APIキーを入力してください','設定手順:','Bearerプレフィックス付きのAPIキー。','21739230ihwMWM','無効なAPIキーです。キーが正しいか確認してください','セッションIDが現在使用中です。後でもう一度お試しください','設定を保存','1664344cpgSqP','MCPクライアントの設定に次の設定を追加してください:','APIキーはローカルストレージに安全に保存されます','APIキー','接続中...','設定が正常に保存されました','MCP\x20未接続','9551542flAmUY','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','MCPクライアントの設定ファイルに設定を追加'];_0x4139=function(){return _0x2f821a;};return _0x4139();}const _0x2a1034=_0x29ec;function _0x29ec(_0x5601e6,_0x1ef3e5){_0x5601e6=_0x5601e6-0x8d;const _0x4139c3=_0x4139();let _0x29ec11=_0x4139c3[_0x5601e6];return _0x29ec11;}(function(_0xc9dabb,_0x353abb){const _0x95910a=_0x29ec,_0x54821d=_0xc9dabb();while(!![]){try{const _0x2d249b=parseInt(_0x95910a(0x9b))/0x1+parseInt(_0x95910a(0xa3))/0x2*(parseInt(_0x95910a(0xa0))/0x3)+-parseInt(_0x95910a(0x9d))/0x4+parseInt(_0x95910a(0xad))/0x5*(-parseInt(_0x95910a(0xbf))/0x6)+-parseInt(_0x95910a(0xbc))/0x7+-parseInt(_0x95910a(0xb5))/0x8*(-parseInt(_0x95910a(0xa5))/0x9)+parseInt(_0x95910a(0xb1))/0xa;if(_0x2d249b===_0x353abb)break;else _0x54821d['push'](_0x54821d['shift']());}catch(_0x500afa){_0x54821d['push'](_0x54821d['shift']());}}}(_0x4139,0xd3c89));const e={'mcpStatus':{'disconnected':_0x2a1034(0xbb),'connecting':'MCP\x20接続中...','connected':_0x2a1034(0x96),'failed':_0x2a1034(0xa6),'retrying':_0x2a1034(0x9c),'unknown':_0x2a1034(0xa8),'unauthorized':_0x2a1034(0xab),'sessionOccupied':_0x2a1034(0x98),'networkError':_0x2a1034(0x9f),'maxRetriesExceeded':_0x2a1034(0x93),'clickToConnect':_0x2a1034(0x97),'clickToConfigure':_0x2a1034(0x8f)},'mcpConfig':{'title':_0x2a1034(0x8d),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x2a1034(0xb8),'apiKeyPlaceholder':_0x2a1034(0xae),'apiKeyHint':_0x2a1034(0x95),'enableAuth':'認証を有効にする','enableAuthHint':_0x2a1034(0xac),'connectionInfo':_0x2a1034(0xa2),'mcpClientConfig':_0x2a1034(0xa2),'configInstructions':_0x2a1034(0xb6),'configStepTitle':_0x2a1034(0xaf),'configStep1':'以下のJSON設定をコピー','configStep2':_0x2a1034(0xbe),'configStep3':_0x2a1034(0xa1),'sessionId':_0x2a1034(0xa4),'sessionIdDescription':_0x2a1034(0xbd),'authorizationDescription':_0x2a1034(0xb0),'configParameters':_0x2a1034(0xa9),'maxRetries':_0x2a1034(0x8e),'save':_0x2a1034(0xb4),'saving':'保存中...','note1':'設定の変更は直ちに有効になります','note2':_0x2a1034(0xb7),'configSaved':_0x2a1034(0xba),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x2a1034(0x92),'description':_0x2a1034(0x99),'univerAiLabel':_0x2a1034(0x9e),'getStarted':_0x2a1034(0x91)},'validation':{'apiKeyRequired':'APIキーは必須です','apiKeyTooShort':_0x2a1034(0x9a),'invalidConfig':'無効な設定','invalidApiKey':_0x2a1034(0xb2)},'connectionStatus':{'disconnected':'未接続','connecting':_0x2a1034(0xb9),'connected':'接続済み','failed':_0x2a1034(0xa7),'retrying':_0x2a1034(0x90)},'connectionError':{'unauthorized':_0x2a1034(0x94),'sessionOccupied':_0x2a1034(0xb3),'networkError':'ネットワーク接続エラー。インターネット接続を確認してください','maxRetriesExceeded':_0x2a1034(0xaa)}}};export{e as default};