@univerjs-pro/mcp-ui 0.10.9 → 0.10.10

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 (50) 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/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/types/controllers/config.schema.d.ts +7 -0
  35. package/lib/types/controllers/mcp-connection-ui.controller.d.ts +4 -2
  36. package/lib/types/locale/en-US.d.ts +2 -4
  37. package/lib/types/locale/zh-CN.d.ts +2 -4
  38. package/lib/types/views/components/mcp-status.d.ts +2 -0
  39. package/lib/umd/index.js +1 -1
  40. package/lib/umd/locale/ca-ES.js +1 -1
  41. package/lib/umd/locale/en-US.js +1 -1
  42. package/lib/umd/locale/es-ES.js +1 -1
  43. package/lib/umd/locale/fa-IR.js +1 -1
  44. package/lib/umd/locale/fr-FR.js +1 -1
  45. package/lib/umd/locale/ko-KR.js +1 -1
  46. package/lib/umd/locale/ru-RU.js +1 -1
  47. package/lib/umd/locale/vi-VN.js +1 -1
  48. package/lib/umd/locale/zh-CN.js +1 -1
  49. package/lib/umd/locale/zh-TW.js +1 -1
  50. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x59fe35=_0x595e;(function(_0x1525d9,_0x426053){var _0x31bbba=_0x595e,_0x5ef77a=_0x1525d9();while(!![]){try{var _0x39da0f=parseInt(_0x31bbba(0x251))/0x1+-parseInt(_0x31bbba(0x2df))/0x2*(-parseInt(_0x31bbba(0x19a))/0x3)+parseInt(_0x31bbba(0x1d3))/0x4*(-parseInt(_0x31bbba(0x1ed))/0x5)+-parseInt(_0x31bbba(0x2af))/0x6+-parseInt(_0x31bbba(0x269))/0x7*(-parseInt(_0x31bbba(0x2a9))/0x8)+-parseInt(_0x31bbba(0x1f3))/0x9+-parseInt(_0x31bbba(0x26d))/0xa;if(_0x39da0f===_0x426053)break;else _0x5ef77a['push'](_0x5ef77a['shift']());}catch(_0xc64343){_0x5ef77a['push'](_0x5ef77a['shift']());}}}(_0x4eca,0x19900));var Ee=Object[_0x59fe35(0x1df)],we=(_0x1e6b67,_0x4d813d,_0x2ee2da)=>_0x4d813d in _0x1e6b67?Ee(_0x1e6b67,_0x4d813d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ee2da}):_0x1e6b67[_0x4d813d]=_0x2ee2da,x=(_0x2a5722,_0x3bf107,_0x353129)=>we(_0x2a5722,typeof _0x3bf107!=_0x59fe35(0x2d0)?_0x3bf107+'':_0x3bf107,_0x353129);import{LocaleService as _0x48ba7d,Inject as _0x50a4eb,Injector as _0x5c7687,IConfigService as _0x3974e0,ILocalStorageService as _0x3eb33c,ILogService as _0x4e3682,Disposable as _0x27ab76,CommandType as _0x1b90db,ICommandService as _0x379a79,DependentOn as _0xd7b32,Plugin as _0x434fef,merge as _0x2a78d2}from'@univerjs/core';import{jsxs as _0xb81ebb,jsx as _0x15d662}from'react/jsx-runtime';import{MCPConnectionStatus as _0x17885d,MCPConnectionError as _0x35e78f,MCPConnectionController as _0x258827,MCP_PLUGIN_CONFIG_KEY as _0x44805b,UniverMCPPlugin as _0x3301bd}from'@univerjs-pro/mcp';import{Input as _0x12981b,Button as _0x44bd29,MessageType as _0x37eb6d,Tooltip as _0x407cb9,clsx as _0x82591e}from'@univerjs/design';import{useDependency as _0x43319f,useObservable as _0x25801a,IUIPartsService as _0x3ec93b,IDialogService as _0x31eff8,IMessageService as _0x420807,ComponentManager as _0xfeb019,connectInjector as _0x166d9e,BuiltInUIPart as _0x5f0ac2,MenuItemType as _0x23e6c4,RibbonStartGroup as _0x1ebdfc,IMenuManagerService as _0x2a1ce3}from'@univerjs/ui';import{BehaviorSubject as _0x134c99}from'rxjs';import{forwardRef as _0x112614,useRef as _0x37fd82,createElement as _0x39fe0f,useState as _0x2874a3,useCallback as _0x359711}from'react';import{ISocketService as _0x25cbe5,WebSocketService as _0x4c9c0e}from'@univerjs/network';var g=function(){var _0x58aefb=_0x59fe35;return g=Object[_0x58aefb(0x264)]||function(_0x243ac2){var _0x158899=_0x58aefb;for(var _0x21bfbc,_0x37ee0b=0x1,_0x5bd049=arguments['length'];_0x37ee0b<_0x5bd049;_0x37ee0b++){_0x21bfbc=arguments[_0x37ee0b];for(var _0x4b419f in _0x21bfbc)Object[_0x158899(0x276)]['hasOwnProperty'][_0x158899(0x2d1)](_0x21bfbc,_0x4b419f)&&(_0x243ac2[_0x4b419f]=_0x21bfbc[_0x4b419f]);}return _0x243ac2;},g[_0x58aefb(0x23b)](this,arguments);},We=function(_0x496c3e,_0x34d928){var _0x442e7a=_0x59fe35,_0x2832e7={};for(var _0x240f82 in _0x496c3e)Object[_0x442e7a(0x276)][_0x442e7a(0x2d3)][_0x442e7a(0x2d1)](_0x496c3e,_0x240f82)&&_0x34d928[_0x442e7a(0x22c)](_0x240f82)<0x0&&(_0x2832e7[_0x240f82]=_0x496c3e[_0x240f82]);if(_0x496c3e!=null&&typeof Object[_0x442e7a(0x250)]==_0x442e7a(0x1ce)){for(var _0x5b92a6=0x0,_0x240f82=Object[_0x442e7a(0x250)](_0x496c3e);_0x5b92a6<_0x240f82[_0x442e7a(0x259)];_0x5b92a6++)_0x34d928['indexOf'](_0x240f82[_0x5b92a6])<0x0&&Object[_0x442e7a(0x276)][_0x442e7a(0x239)]['call'](_0x496c3e,_0x240f82[_0x5b92a6])&&(_0x2832e7[_0x240f82[_0x5b92a6]]=_0x496c3e[_0x240f82[_0x5b92a6]]);}return _0x2832e7;},b=_0x112614(function(_0x33bb41,_0x244ad0){var _0x227d3e=_0x59fe35,_0x47f0fa=_0x33bb41[_0x227d3e(0x20e)],_0x48e199=_0x33bb41['id'],_0x52b6b7=_0x33bb41['className'],_0x4c67a2=_0x33bb41['extend'],_0x488417=We(_0x33bb41,[_0x227d3e(0x20e),'id',_0x227d3e(0x2e2),_0x227d3e(0x1a8)]),_0x567cf7=_0x227d3e(0x1a7)[_0x227d3e(0x1bc)](_0x48e199,'\x20')[_0x227d3e(0x1bc)](_0x52b6b7||'')[_0x227d3e(0x1e8)](),_0x428868=_0x37fd82('_'[_0x227d3e(0x1bc)](Xe()));return le(_0x47f0fa,''[_0x227d3e(0x1bc)](_0x48e199),{'defIds':_0x47f0fa[_0x227d3e(0x24d)],'idSuffix':_0x428868[_0x227d3e(0x190)]},g({'ref':_0x244ad0,'className':_0x567cf7},_0x488417),_0x4c67a2);});function le(_0x47462c,_0x37841d,_0x5e1aa8,_0x220adc,_0x42f36e){var _0x4033b8=_0x59fe35;return _0x39fe0f(_0x47462c[_0x4033b8(0x26c)],g(g({'key':_0x37841d},qe(_0x47462c,_0x5e1aa8,_0x42f36e)),_0x220adc),(Ze(_0x47462c,_0x5e1aa8)['children']||[])[_0x4033b8(0x2ef)](function(_0x3ac96c,_0x5258fd){var _0x1ba2fc=_0x4033b8;return le(_0x3ac96c,''[_0x1ba2fc(0x1bc)](_0x37841d,'-')[_0x1ba2fc(0x1bc)](_0x47462c[_0x1ba2fc(0x26c)],'-')[_0x1ba2fc(0x1bc)](_0x5258fd),_0x5e1aa8,void 0x0,_0x42f36e);}));}function qe(_0x2a4806,_0x4ca139,_0x433f68){var _0xc59507=_0x59fe35,_0x2b4ada=g({},_0x2a4806[_0xc59507(0x1e3)]);_0x433f68!=null&&_0x433f68[_0xc59507(0x21a)]&&_0x2b4ada['fill']===_0xc59507(0x21a)&&(_0x2b4ada[_0xc59507(0x1d0)]=_0x433f68[_0xc59507(0x21a)]),_0x2a4806['tag']===_0xc59507(0x1db)&&_0x2b4ada['id']&&(_0x2b4ada['id']=_0x2b4ada['id']+_0x4ca139[_0xc59507(0x271)]),Object[_0xc59507(0x2a7)](_0x2b4ada)[_0xc59507(0x2a4)](function(_0x431ef2){var _0x5bcf74=_0xc59507,_0x568221=_0x431ef2[0x0],_0x4815e8=_0x431ef2[0x1];_0x568221===_0x5bcf74(0x1db)&&typeof _0x4815e8==_0x5bcf74(0x267)&&(_0x2b4ada[_0x568221]=_0x4815e8['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5bcf74(0x1bc)](_0x4ca139[_0x5bcf74(0x271)],')')));});var _0x3f87eb=_0x4ca139[_0xc59507(0x24d)];return!_0x3f87eb||_0x3f87eb[_0xc59507(0x259)]===0x0||(_0x2a4806[_0xc59507(0x26c)]===_0xc59507(0x1ff)&&_0x2b4ada[_0xc59507(0x1f8)]&&(_0x2b4ada[_0xc59507(0x1f8)]=_0x2b4ada[_0xc59507(0x1f8)]+_0x4ca139[_0xc59507(0x271)]),Object[_0xc59507(0x2a7)](_0x2b4ada)[_0xc59507(0x2a4)](function(_0x129c47){var _0x5f1a36=_0xc59507,_0x2a1423=_0x129c47[0x0],_0x404f02=_0x129c47[0x1];typeof _0x404f02==_0x5f1a36(0x267)&&(_0x2b4ada[_0x2a1423]=_0x404f02[_0x5f1a36(0x23f)](/url\(#(.*)\)/,_0x5f1a36(0x1c5)[_0x5f1a36(0x1bc)](_0x4ca139['idSuffix'],')')));})),_0x2b4ada;}function Ze(_0x316582,_0x53d583){var _0x23c0ee=_0x59fe35,_0x480fbb,_0x46ca46=_0x53d583[_0x23c0ee(0x24d)];return!_0x46ca46||_0x46ca46['length']===0x0?_0x316582:_0x316582[_0x23c0ee(0x26c)]===_0x23c0ee(0x2de)&&(!((_0x480fbb=_0x316582[_0x23c0ee(0x1ab)])===null||_0x480fbb===void 0x0)&&_0x480fbb['length'])?g(g({},_0x316582),{'children':_0x316582[_0x23c0ee(0x1ab)][_0x23c0ee(0x2ef)](function(_0x5fbcfb){var _0x3db069=_0x23c0ee;return typeof _0x5fbcfb[_0x3db069(0x1e3)]['id']=='string'&&_0x46ca46&&_0x46ca46['includes'](_0x5fbcfb[_0x3db069(0x1e3)]['id'])?g(g({},_0x5fbcfb),{'attrs':g(g({},_0x5fbcfb[_0x3db069(0x1e3)]),{'id':_0x5fbcfb[_0x3db069(0x1e3)]['id']+_0x53d583[_0x3db069(0x271)]})}):_0x5fbcfb;})}):_0x316582;}function Xe(){var _0x1cf28a=_0x59fe35;return Math[_0x1cf28a(0x1f5)]()['toString'](0x24)[_0x1cf28a(0x232)](0x2,0x8);}b[_0x59fe35(0x22d)]=_0x59fe35(0x211);function _0x595e(_0x2a012b,_0x1c7e2a){var _0x4ecac9=_0x4eca();return _0x595e=function(_0x595e75,_0x5e1dac){_0x595e75=_0x595e75-0x18c;var _0x5cbf08=_0x4ecac9[_0x595e75];return _0x5cbf08;},_0x595e(_0x2a012b,_0x1c7e2a);}var Je={'tag':_0x59fe35(0x1a2),'attrs':{'xmlns':_0x59fe35(0x2a2),'fill':_0x59fe35(0x21e),'viewBox':_0x59fe35(0x18c),'width':_0x59fe35(0x227),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x59fe35(0x2ce),'fillRule':_0x59fe35(0x288),'clipRule':_0x59fe35(0x288)}}]},ue=_0x112614(function(_0x48d9e6,_0x5edfb0){var _0x5c5428=_0x59fe35;return _0x39fe0f(b,Object['assign']({},_0x48d9e6,{'id':_0x5c5428(0x248),'ref':_0x5edfb0,'icon':Je}));});ue[_0x59fe35(0x22d)]=_0x59fe35(0x1ad);var Qe={'tag':_0x59fe35(0x1a2),'attrs':{'xmlns':_0x59fe35(0x2a2),'fill':_0x59fe35(0x21e),'viewBox':_0x59fe35(0x226),'width':'1em','height':_0x59fe35(0x227)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x59fe35(0x284),'strokeLinecap':_0x59fe35(0x233),'strokeLinejoin':_0x59fe35(0x233),'strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':'currentColor','d':_0x59fe35(0x2d2),'strokeLinecap':_0x59fe35(0x233),'strokeLinejoin':'round','strokeWidth':1.33}}]},ve=_0x112614(function(_0x2dd4ff,_0x2673b6){var _0xc7bf97=_0x59fe35;return _0x39fe0f(b,Object[_0xc7bf97(0x264)]({},_0x2dd4ff,{'id':_0xc7bf97(0x1b8),'ref':_0x2673b6,'icon':Qe}));});ve[_0x59fe35(0x22d)]='CloseSmallSingle';var en={'tag':_0x59fe35(0x1a2),'attrs':{'xmlns':_0x59fe35(0x2a2),'fill':'none','viewBox':_0x59fe35(0x18c),'width':_0x59fe35(0x227),'height':_0x59fe35(0x227)},'children':[{'tag':_0x59fe35(0x1bb),'attrs':{'fill':_0x59fe35(0x1e9),'d':_0x59fe35(0x206)}},{'tag':_0x59fe35(0x1bb),'attrs':{'fill':'currentColor','d':_0x59fe35(0x294)}},{'tag':'path','attrs':{'fill':_0x59fe35(0x1e9),'d':_0x59fe35(0x1d1),'fillRule':_0x59fe35(0x288),'clipRule':_0x59fe35(0x288)}}]},de=_0x112614(function(_0x97adc,_0x52a87b){var _0x7a7398=_0x59fe35;return _0x39fe0f(b,Object[_0x7a7398(0x264)]({},_0x97adc,{'id':_0x7a7398(0x2cd),'ref':_0x52a87b,'icon':en}));});de[_0x59fe35(0x22d)]='HelpSingle';var nn={'tag':_0x59fe35(0x1a2),'attrs':{'xmlns':_0x59fe35(0x2a2),'fill':_0x59fe35(0x21e),'viewBox':_0x59fe35(0x18c),'width':'1em','height':_0x59fe35(0x227)},'children':[{'tag':'g','attrs':{'clipPath':_0x59fe35(0x193)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x59fe35(0x2a6),'strokeLinecap':_0x59fe35(0x233),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x59fe35(0x223),'attrs':{'id':_0x59fe35(0x281)},'children':[{'tag':_0x59fe35(0x1bb),'attrs':{'fill':_0x59fe35(0x2e1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x59fe35(0x281)]},ge=_0x112614(function(_0x3eaa86,_0x329974){var _0x480188=_0x59fe35;return _0x39fe0f(b,Object[_0x480188(0x264)]({},_0x3eaa86,{'id':'off-line-icon','ref':_0x329974,'icon':nn}));});ge['displayName']=_0x59fe35(0x234);var rn={'tag':'svg','attrs':{'xmlns':_0x59fe35(0x2a2),'fill':'none','viewBox':_0x59fe35(0x2ea),'width':_0x59fe35(0x227),'height':_0x59fe35(0x227)},'children':[{'tag':'g','attrs':{'clipPath':_0x59fe35(0x1f4)},'children':[{'tag':_0x59fe35(0x1bb),'attrs':{'stroke':_0x59fe35(0x1e9),'d':_0x59fe35(0x2ae),'strokeLinecap':_0x59fe35(0x233),'strokeLinejoin':_0x59fe35(0x233),'strokeWidth':1.2}}]},{'tag':_0x59fe35(0x2de),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x59fe35(0x1e7)},'children':[{'tag':_0x59fe35(0x1bb),'attrs':{'fill':_0x59fe35(0x2e1),'d':_0x59fe35(0x268),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-icon_clip0_910_349']},fe=_0x112614(function(_0x8807c0,_0xd269e9){return _0x39fe0f(b,Object['assign']({},_0x8807c0,{'id':'on-line-icon','ref':_0xd269e9,'icon':rn}));});fe['displayName']=_0x59fe35(0x265);function tn(_0x544eeb){var _0x47fc2b=_0x59fe35,_0x369340,_0x515ed8;const {mcpCoreConfig:_0x34e988,onSave:_0x593454,loading:_0x26c495=!0x1,config:_0x8e43c6,connectionStatus$:_0x2e031e,connectionError$:_0x38792b,currentApiKey$:_0x2e6c30,currentSessionId$:_0x555651}=_0x544eeb,_0x208387=_0x43319f(_0x48ba7d),_0x5a044a=_0x25801a(_0x2e031e,_0x17885d[_0x47fc2b(0x1f7)]),_0x2c372a=_0x25801a(_0x38792b,_0x35e78f[_0x47fc2b(0x2c1)]),_0x21b494=_0x25801a(_0x555651,''),_0x1b5c69=_0x25801a(_0x2e6c30,''),[_0x4fb6f5,_0x28737e]=_0x2874a3(_0x1b5c69||''),_0x137da7=!0x0,_0x5f3aa8=_0x8e43c6[_0x47fc2b(0x292)]&&_0x34e988['mcpServerUrl']&&(_0x34e988[_0x47fc2b(0x1de)]['includes']('univer.plus')||_0x34e988['mcpServerUrl']['includes'](_0x47fc2b(0x1b2))),_0x661404=(_0x369340=_0x34e988[_0x47fc2b(0x1de)])==null?void 0x0:_0x369340[_0x47fc2b(0x195)](_0x47fc2b(0x2ec)),_0x2298cc=(_0x515ed8=_0x34e988[_0x47fc2b(0x1de)])==null?void 0x0:_0x515ed8['includes'](_0x47fc2b(0x1b2)),_0x1e1a2e=_0x661404?_0x47fc2b(0x1dd):_0x47fc2b(0x29a),_0x3faea5=_0x8e43c6[_0x47fc2b(0x292)]&&(_0x661404||_0x2298cc),[_0x29d7c1,_0x46dd74]=_0x2874a3(!_0x4fb6f5[_0x47fc2b(0x1e8)]()),_0x300a07=(_0x1d8c53,_0x1a1d05)=>{var _0x1ca398=_0x47fc2b;if(_0x1a1d05===_0x35e78f[_0x1ca398(0x1d2)])return _0x1ca398(0x296);switch(_0x1d8c53){case _0x17885d[_0x1ca398(0x2d9)]:return _0x1ca398(0x27d);case _0x17885d[_0x1ca398(0x2cc)]:case _0x17885d[_0x1ca398(0x1e1)]:return _0x1ca398(0x298);case _0x17885d['FAILED']:return _0x1ca398(0x296);default:return _0x1ca398(0x1ec);}},_0xd019d3=(_0x10ac0d,_0x46bfcb)=>{var _0x209669=_0x47fc2b;if(_0x46bfcb===_0x35e78f[_0x209669(0x1d2)])return'univer-bg-red-500';switch(_0x10ac0d){case _0x17885d[_0x209669(0x2d9)]:return _0x209669(0x212);case _0x17885d[_0x209669(0x2cc)]:case _0x17885d['RETRYING']:return _0x209669(0x19b);case _0x17885d['FAILED']:return _0x209669(0x1c2);default:return _0x209669(0x26b);}},_0x5e9014=_0x46ed97=>{var _0x372cd9=_0x47fc2b;switch(_0x46ed97){case _0x17885d[_0x372cd9(0x2d9)]:return _0x208387['t'](_0x372cd9(0x24b));case _0x17885d['CONNECTING']:return _0x208387['t']('mcpConfig.connectionStatus.connecting');case _0x17885d['FAILED']:return _0x208387['t']('mcpConfig.connectionStatus.failed');case _0x17885d[_0x372cd9(0x1e1)]:return _0x208387['t'](_0x372cd9(0x1e6));default:return _0x208387['t']('mcpConfig.connectionStatus.disconnected');}},_0x2174fd=_0x468059=>{var _0x34ee11=_0x47fc2b;switch(_0x468059){case _0x35e78f['INVALID_API_KEY']:return _0x208387['t'](_0x34ee11(0x217));case _0x35e78f[_0x34ee11(0x1be)]:return _0x208387['t']('mcpConfig.connectionError.sessionOccupied');case _0x35e78f['NETWORK_ERROR']:return _0x208387['t']('mcpConfig.connectionError.networkError');case _0x35e78f[_0x34ee11(0x224)]:return _0x208387['t'](_0x34ee11(0x287));default:return'';}},_0x1c419f=_0x359711(()=>{var _0x1ad818=_0x47fc2b;const _0x4bf7ea={..._0x34e988,'apiKey':_0x4fb6f5[_0x1ad818(0x1e8)](),'enableAuth':_0x137da7};_0x593454(_0x4bf7ea);},[_0x34e988,_0x4fb6f5,_0x137da7,_0x593454]),_0x5b8f18=_0x4fb6f5[_0x47fc2b(0x1e8)]()[_0x47fc2b(0x259)]>0x0;return _0xb81ebb('div',{'className':_0x47fc2b(0x26f),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x2ed),'children':_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x209),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1b0),'children':_0x15d662(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x291),'children':'⚙'})}),_0x15d662(_0x47fc2b(0x201),{'children':_0x15d662('p',{'className':_0x47fc2b(0x21b),'children':_0x208387['t'](_0x47fc2b(0x22f))})})]})}),_0xb81ebb(_0x47fc2b(0x201),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x221)+_0x300a07(_0x5a044a,_0x2c372a)+_0x47fc2b(0x29c),'children':_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x299),'children':[_0x15d662('div',{'className':_0x47fc2b(0x1a0)+_0xd019d3(_0x5a044a,_0x2c372a)+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'}),_0x15d662(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x214),'children':_0x5e9014(_0x5a044a)})]})}),_0x2c372a!==_0x35e78f['NONE']&&(_0x5a044a===_0x17885d[_0x47fc2b(0x1a9)]||_0x2c372a===_0x35e78f['INVALID_API_KEY'])&&_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x24c),'children':_0xb81ebb(_0x47fc2b(0x201),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x15d662('span',{'className':'univer-flex-shrink-0\x20univer-text-red-500','children':'⚠️'}),_0x15d662('p',{'className':_0x47fc2b(0x28f),'children':_0x2174fd(_0x2c372a)})]})})]}),_0x15d662('div',{'className':_0x47fc2b(0x26e),'children':_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x283),'children':[_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x191),'children':[_0xb81ebb(_0x47fc2b(0x1dc),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x15d662('span',{'children':'🔑'}),'\x20',_0x208387['t'](_0x47fc2b(0x1c1)),_0x15d662(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x202),'children':'*'}),_0x5f3aa8&&_0x15d662('a',{'href':_0x47fc2b(0x29b),'onClick':()=>_0x46dd74(!0x0),'className':_0x47fc2b(0x1cf),'title':_0x208387['t'](_0x47fc2b(0x2b6)),'children':_0x15d662(de,{})})]}),_0x15d662(_0x12981b,{'type':_0x47fc2b(0x2c7),'placeholder':_0x208387['t'](_0x47fc2b(0x1e0)),'value':_0x4fb6f5,'onChange':_0x28737e,'disabled':_0x26c495,'autoComplete':'off'}),_0x15d662('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x208387['t']('mcpConfig.apiKeyHint')})]}),_0x5f3aa8&&_0x29d7c1&&_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x246),'children':[_0x15d662('a',{'href':'javascript:void(0)','onClick':()=>_0x46dd74(!0x1),'className':_0x47fc2b(0x273),'title':_0x47fc2b(0x2db),'children':_0x15d662(ve,{})}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x210),'children':[_0x15d662(_0x47fc2b(0x201),{'className':'univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','children':_0x15d662('span',{'className':_0x47fc2b(0x2be),'children':'🚀'})}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1b7),'children':[_0x15d662('h4',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':_0x208387['t'](_0x47fc2b(0x2b6))}),_0x15d662('p',{'className':'univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','children':_0x208387['t'](_0x47fc2b(0x2d8))}),_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x219),'children':_0x3faea5&&_0xb81ebb('a',{'href':_0x1e1a2e,'target':_0x47fc2b(0x199),'rel':_0x47fc2b(0x2ee),'className':_0x47fc2b(0x24f),'children':[_0x15d662('span',{'children':'🤖'}),_0x208387['t'](_0x47fc2b(0x2b8)),_0x15d662(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x249),'children':'↗'})]})}),_0xb81ebb('div',{'className':_0x47fc2b(0x2a1),'children':['✨','\x20',_0x208387['t'](_0x47fc2b(0x29f))]})]})]})]}),_0x8e43c6['showDeveloperTools']&&_0xb81ebb(_0x47fc2b(0x201),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0xb81ebb('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x15d662(_0x47fc2b(0x1c4),{'children':'🔗'}),'\x20',_0x208387['t'](_0x47fc2b(0x2e7))]}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x20d),'children':[_0xb81ebb(_0x47fc2b(0x201),{'className':'univer-space-y-3','children':[_0x15d662('p',{'className':_0x47fc2b(0x2a3),'children':_0x208387['t'](_0x47fc2b(0x2d4))}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x191),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1b4),'children':_0x208387['t'](_0x47fc2b(0x1cb))}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x275),'children':[_0xb81ebb('div',{'className':_0x47fc2b(0x299),'children':[_0x15d662(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x1a5),'children':'1'}),_0x208387['t'](_0x47fc2b(0x2cf))]}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x299),'children':[_0x15d662('span',{'className':'univer-flex\x20univer-h-4\x20univer-w-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':'2'}),_0x208387['t'](_0x47fc2b(0x230))]}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x299),'children':[_0x15d662('span',{'className':_0x47fc2b(0x1a5),'children':'3'}),_0x208387['t']('mcpConfig.configStep3')]})]})]})]}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x191),'children':[_0x15d662('div',{'className':_0x47fc2b(0x1b4),'children':_0x47fc2b(0x19f)}),_0x15d662(_0x47fc2b(0x201),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x15d662(_0x47fc2b(0x18e),{'className':_0x47fc2b(0x192),'children':_0x47fc2b(0x1a1)+_0x21b494+_0x47fc2b(0x238)+(_0x4fb6f5||'<API_KEY>')+_0x47fc2b(0x277)})})]}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1bf),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1b4),'children':_0x208387['t'](_0x47fc2b(0x2ab))}),_0xb81ebb('div',{'className':_0x47fc2b(0x191),'children':[_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1c9),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x25a)}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x18d),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1c6),'children':_0x47fc2b(0x1e5)}),_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1d5),'children':_0x208387['t'](_0x47fc2b(0x2e5))})]})]}),_0xb81ebb(_0x47fc2b(0x201),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x15d662(_0x47fc2b(0x201),{'className':'univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x18d),'children':[_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x1c6),'children':'Authorization:'}),_0x15d662('div',{'className':_0x47fc2b(0x1d5),'children':_0x208387['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x15d662(_0x44bd29,{'onClick':_0x1c419f,'disabled':!_0x5b8f18||_0x26c495,'className':_0x47fc2b(0x21f),'children':_0x26c495?_0xb81ebb(_0x47fc2b(0x1c4),{'className':_0x47fc2b(0x299),'children':[_0x15d662(_0x47fc2b(0x1c4),{'children':'⟲'}),_0x208387['t'](_0x47fc2b(0x2a8))]}):_0xb81ebb('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x15d662(ue,{}),_0x208387['t'](_0x47fc2b(0x19c))]})}),_0x15d662(_0x47fc2b(0x201),{'className':_0x47fc2b(0x2d6),'children':_0xb81ebb('div',{'className':_0x47fc2b(0x1f1),'children':[_0x15d662(_0x47fc2b(0x1c4),{'className':'univer-flex-shrink-0\x20univer-text-blue-500','children':'💡'}),_0xb81ebb(_0x47fc2b(0x201),{'className':_0x47fc2b(0x247),'children':[_0x15d662(_0x47fc2b(0x201),{'className':'univer-font-medium','children':_0x47fc2b(0x236)}),_0xb81ebb(_0x47fc2b(0x201),{'children':['•',_0x208387['t'](_0x47fc2b(0x1f0))]}),_0xb81ebb(_0x47fc2b(0x201),{'children':['•',_0x208387['t'](_0x47fc2b(0x293))]})]})]})})]})})]});}const L=_0x59fe35(0x295),ie={'showDeveloperTools':!0x1};var on=Object[_0x59fe35(0x2ac)],sn=(_0x35b81f,_0x4c8558,_0x1da569,_0xded8b6)=>{var _0x3e5f57=_0x59fe35;for(var _0x3db150=_0xded8b6>0x1?void 0x0:_0xded8b6?on(_0x4c8558,_0x1da569):_0x4c8558,_0xcb90d0=_0x35b81f[_0x3e5f57(0x259)]-0x1,_0x4475c5;_0xcb90d0>=0x0;_0xcb90d0--)(_0x4475c5=_0x35b81f[_0xcb90d0])&&(_0x3db150=_0x4475c5(_0x3db150)||_0x3db150);return _0x3db150;},f=(_0x21572f,_0x2b4c01)=>(_0x5cde59,_0x56cd40)=>_0x2b4c01(_0x5cde59,_0x56cd40,_0x21572f);function _0x4eca(){var _0x48fc09=['mcpStatus.connecting','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpStatus.connected','univer-text-white','showDeveloperTools','mcpConfig.note2','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','mcp-ui.config','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','COMMAND','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-flex\x20univer-items-center\x20univer-gap-2','https://console.univer.ai','javascript:void(0)','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','get','点击配置\x20MCP','mcpConfig.apiApplyInfo.getStarted','Bearer\x20','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','http://www.w3.org/2000/svg','univer-text-xs\x20univer-text-gray-600','forEach','mcp-ui.command.openConfigPanel','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','entries','mcpConfig.saving','42584mGGGmv','subscribe','mcpConfig.configParameters','getOwnPropertyDescriptor','sessionId$','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','541092ReZYAi','mcpStatus.disconnected','MCP\x20连接中...','hover:univer-opacity-80','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','mcpConfig.validation.apiKeyTooShort','_apiKey$','mcpConfig.apiApplyInfo.title','isValid','mcpConfig.apiApplyInfo.univerAiLabel','Failed\x20to\x20save\x20configuration','_initializeCommands','mcpStatus.failed','_mcpCoreConfig$','_handleConfigure','univer-text-blue-600','配置\x20MCP\x20使用\x20AI\x20操作电子表格','enableAutoConnect','NONE','MCP\x20重连中...','_validateConfig','_loadStoredApiKey','_dialogService','请输入您的\x20API\x20密钥','text','API\x20key\x20is\x20required\x20to\x20connect','mcpStatus.retrying','warn','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','CONNECTING','help-single','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','mcpConfig.configStep1','symbol','call','M5.21243\x2012.287L11.8791\x205.62036','hasOwnProperty','mcpConfig.configInstructions','Save\x20Configuration','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','mcpStatus.clickToConfigure','mcpConfig.apiApplyInfo.description','CONNECTED','open','Close','重启您的\x20MCP\x20客户端以使配置生效','_uiPartsService','defs','2NmeRNR','API\x20密钥无效,请检查您的密钥后重试','white','className','mcpConfig.configError','API\x20Key','mcpConfig.sessionIdDescription','Connection\x20Failed','mcpConfig.connectionInfo','_localStorageService','Success','0\x200\x2017\x2016','配置无效','univer.plus','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','noopener\x20noreferrer','map','univer-text-yellow-500','MCP\x20已连接','_config','0\x200\x2016\x2016','univer-min-w-0\x20univer-flex-1','pre','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','current','univer-space-y-2','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','url(#off-line-icon_clip0_910_343)','_createConfigPanelComponent','includes','mcpStatus.clickToConnect','配置保存成功','MenuIcon','_blank','307569DqcoCn','univer-bg-blue-500','mcpConfig.save','网络连接错误,请检查您的网络连接','value','MCP\x20Configuration','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','svg','subscribeConfigValue$','Configuration\x20Parameters:','univer-flex\x20univer-h-4\x20univer-w-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','univerjs-icon\x20univerjs-icon-','extend','FAILED','setConfig','children','_logService','CheckMarkIcon','mcpConfig.validation.apiKeyRequired','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','几秒钟内获取您的\x20API\x20密钥','univer.ai','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','bottom','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','univer-flex-1','close-small-single','univer-flex\x20univer-cursor-pointer\x20univer-items-center','API\x20密钥无效,请检查密钥是否正确','path','concat','Univer\x20AI\x20Console','SESSION_ID_OCCUPIED','univer-space-y-3','error','mcpConfig.apiKey','univer-bg-red-500','带有\x20Bearer\x20前缀的\x20API\x20密钥。','span','url(#$1','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','启用身份验证以获得安全连接','univer-flex\x20univer-items-start\x20univer-gap-3','连接失败','mcpConfig.configStepTitle','_config$','univer-text-green-500','function','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','fill','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','INVALID_API_KEY','100IqxPBs','_handleConfigSave','univer-text-xs\x20univer-text-gray-500','errorMessage','apiKey','_injector','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.networkError','mask','label','https://console.univer.plus','mcpServerUrl','defineProperty','mcpConfig.apiKeyPlaceholder','RETRYING','_initStatusComponent','attrs','Enable\x20Authentication','univer_session_id:','mcpConfig.connectionStatus.retrying','on-line-icon_clip0_910_349','trim','currentColor','onStarting','超出最大重试次数,请稍后再试','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','550csdemG','setItem','What\x20is\x20API\x20Key?','mcpConfig.note1','univer-flex\x20univer-gap-3','BUTTON','256104lJYPxn','url(#on-line-icon_clip0_910_349)','random','MCP\x20配置','DISCONNECTED','xlink:href','Error','MCPConfigPanel','API\x20密钥','getCurrentConfig','已连接','close','use','Retrying...','div','univer-text-red-500','MCP\x20客户端配置','next','连接中...','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','push','重连中...','univer-flex\x20univer-items-center\x20univer-gap-3','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','API\x20key\x20with\x20Bearer\x20prefix.','univer-space-y-4','icon','Get\x20your\x20API\x20key\x20in\x20seconds','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','UniverIcon','univer-bg-green-500','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','univer-text-sm\x20univer-font-medium','API\x20密钥不能为空','配置步骤:','mcpConfig.connectionError.invalidApiKey','MCP\x20Connection\x20Failed','univer-flex\x20univer-flex-wrap\x20univer-gap-2','colorChannel1','univer-text-sm\x20univer-text-gray-500','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP:\x20会话被占用','none','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','Connecting...','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-text-gray-500','clipPath','MAX_RETRIES_EXCEEDED','会话当前被占用,请稍后再试','0\x200\x2017\x2017','1em','最大重试次数','registerComponent','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connected','indexOf','displayName','univer-mr-2\x20univer-flex\x20univer-text-xl','mcpConfig.description','mcpConfig.configStep2','MCP:\x20无效的\x20API\x20密钥','substring','round','OffLineIcon','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','Configuration\x20Notes:','register','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','propertyIsEnumerable','getItem','apply','保存中...','配置参数:','OTHERS','replace','_configService','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','复制以下\x20JSON\x20配置','getConfig','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mergeMenu','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','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','check-mark-icon','univer-text-gray-400','MCP:\x20超出最大重试次数','mcpConfig.connectionStatus.connected','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','defIds','Univer\x20AI\x20控制台','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','getOwnPropertySymbols','192662OrscIv','NETWORK_ERROR','Click\x20to\x20connect\x20MCP','MCP\x20Retrying...','MCP\x20Client\x20Configuration','MCP_UI_PLUGIN','MCP\x20Disconnected','配置保存失败','length','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_mcpConnectionController','mcpStatus.sessionOccupied','mcpConfig.title','\x20-\x20','registerCommand','配置更改将立即生效','__setCustomHeaders','has','Saving...','assign','OnLineIcon','MCP:\x20网络错误','string','M0\x200H16V16H0z','231uuWpPp','_menuManagerService','univer-bg-gray-500','tag','2447520GIlbiL','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','show','idSuffix','_messageService','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','mcpStatus.maxRetriesExceeded','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','prototype','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','_loading$','MCP\x20状态未知','_componentManager','add','showConfigPanel','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','未连接','_localeService','API\x20密钥长度至少需要\x2010\x20位','off-line-icon_clip0_910_343','_commandService','univer-space-y-5','M5.21243\x205.62036L11.8791\x2012.287','_initConfigSync','启用身份验证','mcpConfig.connectionError.maxRetriesExceeded','evenodd','disposeWithMe','_registerComponent','MCP\x20Unknown\x20Status','_connectionController','mcp-config-dialog'];_0x4eca=function(){return _0x48fc09;};return _0x4eca();}const T='mcp.apiKey',R=_0x59fe35(0x28d);let I=class extends _0x27ab76{constructor(_0x4a531a,_0x27b48d,_0x34e0ff,_0x5d39aa,_0x2aba9e,_0x934de9,_0x5d667e,_0x2445eb,_0x2012ae,_0xc2b995){var _0x5edfa2=_0x59fe35;super(),x(this,_0x5edfa2(0x278),new _0x134c99(!0x1)),x(this,'_mcpCoreConfig$',new _0x134c99({})),x(this,'_config$',new _0x134c99({})),x(this,_0x5edfa2(0x2b5),new _0x134c99('')),x(this,_0x5edfa2(0x1d4),async _0x56396f=>{var _0xa16f56=_0x5edfa2,_0x558f6a,_0x4a0450;this['_loading$']['next'](!0x0);try{const _0x13d8f1=await this[_0xa16f56(0x2c3)](_0x56396f);if(!_0x13d8f1[_0xa16f56(0x2b7)]){this[_0xa16f56(0x272)][_0xa16f56(0x270)]({'type':_0x37eb6d[_0xa16f56(0x1f9)],'content':_0x13d8f1[_0xa16f56(0x1d6)]||this['_localeService']['t']('mcpConfig.validation.invalidConfig')});return;}_0x56396f[_0xa16f56(0x1d7)]?await this[_0xa16f56(0x2e8)][_0xa16f56(0x1ee)](T,_0x56396f[_0xa16f56(0x1d7)][_0xa16f56(0x1e8)]()):await this[_0xa16f56(0x2e8)]['removeItem'](T),this[_0xa16f56(0x2b5)][_0xa16f56(0x204)](((_0x558f6a=_0x56396f[_0xa16f56(0x1d7)])==null?void 0x0:_0x558f6a['trim']())||''),this['_mcpConnectionController'][_0xa16f56(0x261)]({'Authorization':_0xa16f56(0x2a0)+((_0x4a0450=_0x56396f[_0xa16f56(0x1d7)])==null?void 0x0:_0x4a0450['trim']())}),this[_0xa16f56(0x272)]['show']({'type':_0x37eb6d[_0xa16f56(0x2e9)],'content':this[_0xa16f56(0x27f)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x4474b1=_0xa16f56;this[_0x4474b1(0x2c5)][_0x4474b1(0x1fe)](R);},0x320);}catch(_0x3ce431){this[_0xa16f56(0x1ac)][_0xa16f56(0x1c0)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3ce431),this['_messageService'][_0xa16f56(0x270)]({'type':_0x37eb6d[_0xa16f56(0x1f9)],'content':this[_0xa16f56(0x27f)]['t'](_0xa16f56(0x2e3))});}finally{this[_0xa16f56(0x278)]['next'](!0x1);}}),(this[_0x5edfa2(0x1d8)]=_0x4a531a,this[_0x5edfa2(0x2dd)]=_0x27b48d,this['_configService']=_0x34e0ff,this[_0x5edfa2(0x2e8)]=_0x5d39aa,this[_0x5edfa2(0x2c5)]=_0x2aba9e,this[_0x5edfa2(0x272)]=_0x934de9,this[_0x5edfa2(0x27a)]=_0x5d667e,this[_0x5edfa2(0x27f)]=_0x2445eb,this[_0x5edfa2(0x1ac)]=_0x2012ae,this[_0x5edfa2(0x25b)]=_0xc2b995,this[_0x5edfa2(0x285)](),this[_0x5edfa2(0x2c4)](),this['_registerComponent']());}[_0x59fe35(0x27c)](){var _0x24d589=_0x59fe35;this[_0x24d589(0x2c5)][_0x24d589(0x2da)]({'id':R,'title':{'title':this[_0x24d589(0x27f)]['t'](_0x24d589(0x25d))},'children':{'label':_0x24d589(0x1fa)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x555c37=_0x24d589;this[_0x555c37(0x2c5)][_0x555c37(0x1fe)](R);}});}[_0x59fe35(0x1fc)](){var _0x4847d8=_0x59fe35;return this[_0x4847d8(0x2bc)][_0x4847d8(0x19e)];}[_0x59fe35(0x28a)](){var _0x3a8176=_0x59fe35;this[_0x3a8176(0x289)](this[_0x3a8176(0x27a)][_0x3a8176(0x237)](_0x3a8176(0x1fa),this['_createConfigPanelComponent']()));}[_0x59fe35(0x194)](){var _0x4cb4ec=_0x59fe35;return _0x166d9e(()=>{var _0x14285c=_0x595e,_0x2932a1,_0x24efa3,_0x240d52;return _0x15d662(tn,{'config':this[_0x14285c(0x1cc)][_0x14285c(0x19e)],'mcpCoreConfig':this[_0x14285c(0x2bc)][_0x14285c(0x19e)],'currentApiKey$':this[_0x14285c(0x2b5)],'onSave':this[_0x14285c(0x1d4)],'loading':this['_loading$'][_0x14285c(0x19e)],'connectionStatus$':(_0x2932a1=this[_0x14285c(0x25b)])==null?void 0x0:_0x2932a1['connectionStatus$'],'connectionError$':(_0x24efa3=this[_0x14285c(0x25b)])==null?void 0x0:_0x24efa3['connectionError$'],'currentSessionId$':(_0x240d52=this['_mcpConnectionController'])==null?void 0x0:_0x240d52[_0x14285c(0x2ad)]});},this[_0x4cb4ec(0x1d8)]);}['_initConfigSync'](){var _0x1de37c=_0x59fe35;this[_0x1de37c(0x289)](this[_0x1de37c(0x240)][_0x1de37c(0x1a3)](_0x44805b)[_0x1de37c(0x2aa)](_0x1a651c=>{this['_mcpCoreConfig$']['next'](_0x1a651c||{});}));const _0x5a260c=this['_configService'][_0x1de37c(0x243)](_0x44805b);this[_0x1de37c(0x2bc)][_0x1de37c(0x204)](_0x5a260c||{}),this[_0x1de37c(0x289)](this['_configService'][_0x1de37c(0x1a3)](L)[_0x1de37c(0x2aa)](_0x4c6baa=>{var _0x1c3f26=_0x1de37c;this['_config$'][_0x1c3f26(0x204)](_0x4c6baa||{});}));const _0x34dd0b=this['_configService'][_0x1de37c(0x243)](L);this[_0x1de37c(0x1cc)][_0x1de37c(0x204)](_0x34dd0b||{});}async[_0x59fe35(0x2c4)](){var _0x4f1f47=_0x59fe35;const _0x20dc89=await this['_localStorageService'][_0x4f1f47(0x23a)](T);_0x20dc89&&(this['_mcpConnectionController'][_0x4f1f47(0x261)]({'Authorization':_0x4f1f47(0x2a0)+_0x20dc89}),this[_0x4f1f47(0x2b5)][_0x4f1f47(0x204)](_0x20dc89));}async[_0x59fe35(0x2c3)](_0x53c750){var _0x526e66=_0x59fe35;if(!_0x53c750[_0x526e66(0x1d7)]||_0x53c750[_0x526e66(0x1d7)][_0x526e66(0x1e8)]()[_0x526e66(0x259)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x526e66(0x1ae))};if(_0x53c750[_0x526e66(0x1d7)][_0x526e66(0x1e8)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0x526e66(0x27f)]['t'](_0x526e66(0x2b4))};try{const _0x5edcba=await this[_0x526e66(0x1d8)]['get'](_0x258827)['validateApiKey'](_0x53c750[_0x526e66(0x1d7)]['trim']());return _0x5edcba[_0x526e66(0x2b7)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x5edcba[_0x526e66(0x1c0)]||this[_0x526e66(0x27f)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x3794e9){return console[_0x526e66(0x2ca)](_0x526e66(0x235),_0x3794e9),{'isValid':!0x0};}}};I=sn([f(0x0,_0x50a4eb(_0x5c7687)),f(0x1,_0x3ec93b),f(0x2,_0x3974e0),f(0x3,_0x3eb33c),f(0x4,_0x31eff8),f(0x5,_0x420807),f(0x6,_0x50a4eb(_0xfeb019)),f(0x7,_0x50a4eb(_0x48ba7d)),f(0x8,_0x4e3682),f(0x9,_0x50a4eb(_0x258827))],I);const B={'id':_0x59fe35(0x2a5),'type':_0x1b90db[_0x59fe35(0x297)],'handler':async(_0x59a7c0,_0x3e5296)=>(_0x59a7c0[_0x59fe35(0x29d)](I)[_0x59fe35(0x27c)](),!0x0)};function pe(_0x4ec8b2,_0x478b98){var _0x102b7c=_0x59fe35;switch(_0x4ec8b2){case _0x17885d[_0x102b7c(0x1f7)]:return _0x102b7c(0x2b0);case _0x17885d['CONNECTING']:return _0x102b7c(0x28e);case _0x17885d[_0x102b7c(0x2d9)]:return _0x102b7c(0x290);case _0x17885d[_0x102b7c(0x1a9)]:switch(_0x478b98){case _0x35e78f[_0x102b7c(0x1d2)]:return'mcpStatus.invalidApiKey';case _0x35e78f[_0x102b7c(0x1be)]:return _0x102b7c(0x25c);case _0x35e78f[_0x102b7c(0x252)]:return _0x102b7c(0x1da);case _0x35e78f[_0x102b7c(0x224)]:return _0x102b7c(0x274);default:return _0x102b7c(0x2bb);}case _0x17885d[_0x102b7c(0x1e1)]:return _0x102b7c(0x2c9);default:return'mcpStatus.unknown';}}function cn(_0x21d33a,_0x5a8861,_0x570d81){var _0x45dd89=_0x59fe35;const _0x2b01cc=pe(_0x21d33a,_0x5a8861),_0x1c97f7=_0x570d81['t'](_0x2b01cc);return _0x21d33a===_0x17885d[_0x45dd89(0x1f7)]&&_0x5a8861===_0x35e78f[_0x45dd89(0x1d2)]?_0x1c97f7+_0x45dd89(0x25e)+_0x570d81['t'](_0x45dd89(0x2d7)):_0x21d33a===_0x17885d[_0x45dd89(0x2d9)]?''+_0x1c97f7:_0x21d33a===_0x17885d[_0x45dd89(0x1f7)]||_0x21d33a===_0x17885d[_0x45dd89(0x1a9)]?_0x1c97f7+_0x45dd89(0x25e)+_0x570d81['t'](_0x45dd89(0x196)):_0x1c97f7;}function an(_0x111b20){var _0x23af27=_0x59fe35;switch(_0x111b20){case _0x17885d[_0x23af27(0x2d9)]:return _0x23af27(0x1cd);case _0x17885d[_0x23af27(0x2cc)]:case _0x17885d[_0x23af27(0x1e1)]:return _0x23af27(0x2f0);case _0x17885d[_0x23af27(0x1a9)]:case _0x17885d['DISCONNECTED']:return _0x23af27(0x202);default:return _0x23af27(0x222);}}function ln(_0x3f2824){var _0x451157=_0x59fe35;const {status$:_0x80f0e9,error$:_0x48ac0b,onConfigure:_0x2aeb1f}=_0x3f2824,_0x51ac34=_0x25801a(_0x80f0e9,_0x17885d[_0x451157(0x1f7)]),_0x2480da=_0x25801a(_0x48ac0b,_0x35e78f[_0x451157(0x2c1)]),_0x4e735a=_0x43319f(_0x48ba7d),_0x42c782=_0x51ac34===_0x17885d[_0x451157(0x2d9)],_0x5d84e0=_0x51ac34===_0x17885d[_0x451157(0x2cc)]||_0x51ac34===_0x17885d[_0x451157(0x1e1)],_0x7daa60=_0x4e735a['t'](pe(_0x51ac34,_0x2480da)),_0x5b9076=cn(_0x51ac34,_0x2480da,_0x4e735a),_0x572a81=an(_0x51ac34),_0x4f3e28=_0x42c782?_0x15d662(fe,{}):_0x15d662(ge,{}),_0x53510e=_0x359711(()=>{_0x2aeb1f&&_0x2aeb1f();},[_0x42c782,_0x5d84e0,_0x2aeb1f]);function _0x1759c3(){var _0x2a9374=_0x451157;return _0xb81ebb(_0x2a9374(0x201),{'className':_0x82591e(_0x2a9374(0x1b9),_0x2aeb1f&&_0x2a9374(0x2b2)),'onClick':_0x2aeb1f?_0x53510e:void 0x0,'children':[_0x15d662('div',{'className':_0x82591e(_0x2a9374(0x22e),_0x572a81),'children':_0x4f3e28}),_0x15d662(_0x2a9374(0x201),{'className':_0x2a9374(0x1b6),'children':_0x7daa60})]});}return _0x15d662(_0x407cb9,{'title':_0x5b9076,'placement':_0x451157(0x1b5),'children':_0x1759c3()});}var un=Object['getOwnPropertyDescriptor'],vn=(_0x6c50a7,_0x3e12d2,_0x489e97,_0x5b9d60)=>{var _0x3391a9=_0x59fe35;for(var _0x550dc1=_0x5b9d60>0x1?void 0x0:_0x5b9d60?un(_0x3e12d2,_0x489e97):_0x3e12d2,_0x41bef9=_0x6c50a7[_0x3391a9(0x259)]-0x1,_0x5a7570;_0x41bef9>=0x0;_0x41bef9--)(_0x5a7570=_0x6c50a7[_0x41bef9])&&(_0x550dc1=_0x5a7570(_0x550dc1)||_0x550dc1);return _0x550dc1;},j=(_0x49d335,_0x541c30)=>(_0x5413d8,_0x2bfe84)=>_0x541c30(_0x5413d8,_0x2bfe84,_0x49d335);let A=class extends _0x27ab76{constructor(_0x1be38b,_0x2062a6,_0x409750){var _0x76c23f=_0x59fe35;super(),this[_0x76c23f(0x1d8)]=_0x1be38b,this['_connectionController']=_0x2062a6,this['_uiPartsService']=_0x409750,this['_connectionController'][_0x76c23f(0x2c0)]=!0x1,this[_0x76c23f(0x1e2)]();}[_0x59fe35(0x1e2)](){var _0x35ea6a=_0x59fe35;this[_0x35ea6a(0x289)](this[_0x35ea6a(0x2dd)][_0x35ea6a(0x229)](_0x5f0ac2['HEADER_MENU'],()=>_0x166d9e(dn({'status$':this[_0x35ea6a(0x28c)]['connectionStatus$'],'error$':this[_0x35ea6a(0x28c)]['connectionError$'],'onConfigure':()=>this[_0x35ea6a(0x2bd)]()}),this[_0x35ea6a(0x1d8)])));}[_0x59fe35(0x2bd)](){var _0x23c7ee=_0x59fe35;this[_0x23c7ee(0x1d8)]['get'](I)['showConfigPanel']();}};A=vn([j(0x0,_0x50a4eb(_0x5c7687)),j(0x1,_0x50a4eb(_0x258827)),j(0x2,_0x3ec93b)],A);function dn(_0x4d3096){const {status$:_0x123ede,error$:_0x35d086,onConfigure:_0x6fe486}=_0x4d3096;return function(){return _0x15d662(ln,{'status$':_0x123ede,'error$':_0x35d086,'onConfigure':_0x6fe486});};}function gn(_0x2ee0c2){var _0xe02393=_0x59fe35;return{'id':B['id'],'type':_0x23e6c4[_0xe02393(0x1f2)],'icon':_0xe02393(0x198),'title':_0xe02393(0x25d),'tooltip':_0xe02393(0x25d)};}const fn={[_0x1ebdfc[_0x59fe35(0x23e)]]:{[B['id']]:{'order':0xa,'menuItemFactory':gn}}};var pn=Object[_0x59fe35(0x2ac)],mn=(_0x135b59,_0x2cc4cc,_0x4bd2d7,_0x3bc69a)=>{for(var _0x5172fe=_0x3bc69a>0x1?void 0x0:_0x3bc69a?pn(_0x2cc4cc,_0x4bd2d7):_0x2cc4cc,_0x56517b=_0x135b59['length']-0x1,_0x2b1c96;_0x56517b>=0x0;_0x56517b--)(_0x2b1c96=_0x135b59[_0x56517b])&&(_0x5172fe=_0x2b1c96(_0x5172fe)||_0x5172fe);return _0x5172fe;},re=(_0xcf9184,_0x47797c)=>(_0x2c82ff,_0x24976e)=>_0x47797c(_0x2c82ff,_0x24976e,_0xcf9184);let M=class extends _0x27ab76{constructor(_0x5bcac3,_0x133ad){var _0x49c071=_0x59fe35;super(),this[_0x49c071(0x282)]=_0x5bcac3,this[_0x49c071(0x26a)]=_0x133ad,this[_0x49c071(0x2ba)](),this[_0x49c071(0x1a6)]();}[_0x59fe35(0x2ba)](){var _0xa92589=_0x59fe35;[B][_0xa92589(0x2a4)](_0x49bf2a=>{var _0x2e704d=_0xa92589;this[_0x2e704d(0x289)](this[_0x2e704d(0x282)][_0x2e704d(0x25f)](_0x49bf2a));});}[_0x59fe35(0x1a6)](){var _0x3e347c=_0x59fe35;this[_0x3e347c(0x26a)][_0x3e347c(0x245)](fn);}};M=mn([re(0x0,_0x379a79),re(0x1,_0x2a1ce3)],M);const On={'mcpStatus':{'disconnected':_0x59fe35(0x257),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x59fe35(0x218),'retrying':_0x59fe35(0x254),'unknown':_0x59fe35(0x28b),'missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x59fe35(0x20b),'clickToConnect':_0x59fe35(0x253),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x59fe35(0x19f),'description':_0x59fe35(0x20a),'apiKey':_0x59fe35(0x2e4),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x59fe35(0x1e4),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x59fe35(0x255),'mcpClientConfig':_0x59fe35(0x255),'configInstructions':_0x59fe35(0x1c7),'configStepTitle':'Configuration\x20Steps:','configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x59fe35(0x1d9),'authorizationDescription':_0x59fe35(0x20c),'configParameters':_0x59fe35(0x1a4),'maxRetries':'Max\x20Retries','save':_0x59fe35(0x2d5),'saving':_0x59fe35(0x263),'note1':_0x59fe35(0x22a),'note2':_0x59fe35(0x1b3),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x59fe35(0x2b9),'apiApplyInfo':{'title':_0x59fe35(0x1ef),'description':_0x59fe35(0x2cb),'univerAiLabel':_0x59fe35(0x1bd),'getStarted':_0x59fe35(0x20f)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x59fe35(0x21c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x59fe35(0x244)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x59fe35(0x220),'connected':_0x59fe35(0x22b),'failed':_0x59fe35(0x2e6),'retrying':_0x59fe35(0x200)},'connectionError':{'missingApiKey':_0x59fe35(0x2c8),'invalidApiKey':_0x59fe35(0x2b3),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':_0x59fe35(0x1af),'maxRetriesExceeded':_0x59fe35(0x213)}}},kn={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x59fe35(0x2b1),'connected':_0x59fe35(0x2f1),'failed':'MCP\x20连接失败','retrying':_0x59fe35(0x2c2),'unknown':_0x59fe35(0x279),'missingApiKey':'MCP:\x20缺少\x20API\x20密钥','invalidApiKey':_0x59fe35(0x231),'sessionOccupied':_0x59fe35(0x21d),'networkError':_0x59fe35(0x266),'maxRetriesExceeded':_0x59fe35(0x24a),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x59fe35(0x29e)},'mcpConfig':{'title':_0x59fe35(0x1f6),'description':_0x59fe35(0x2bf),'apiKey':_0x59fe35(0x1fb),'apiKeyPlaceholder':_0x59fe35(0x2c6),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':_0x59fe35(0x286),'enableAuthHint':_0x59fe35(0x1c8),'connectionInfo':_0x59fe35(0x203),'mcpClientConfig':'MCP\x20客户端配置','configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x59fe35(0x216),'configStep1':_0x59fe35(0x242),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x59fe35(0x2dc),'sessionId':'会话ID','sessionIdDescription':_0x59fe35(0x18f),'authorizationDescription':_0x59fe35(0x1c3),'configParameters':_0x59fe35(0x23d),'maxRetries':_0x59fe35(0x228),'save':'保存配置','saving':_0x59fe35(0x23c),'note1':_0x59fe35(0x260),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x59fe35(0x197),'configError':_0x59fe35(0x258),'apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':_0x59fe35(0x241),'univerAiLabel':_0x59fe35(0x24e),'getStarted':_0x59fe35(0x1b1)},'validation':{'apiKeyRequired':_0x59fe35(0x215),'apiKeyTooShort':_0x59fe35(0x280),'invalidConfig':_0x59fe35(0x2eb),'invalidApiKey':_0x59fe35(0x1ba)},'connectionStatus':{'disconnected':_0x59fe35(0x27e),'connecting':_0x59fe35(0x205),'connected':_0x59fe35(0x1fd),'failed':_0x59fe35(0x1ca),'retrying':_0x59fe35(0x208)},'connectionError':{'missingApiKey':'需要\x20API\x20密钥才能连接','invalidApiKey':_0x59fe35(0x2e0),'sessionOccupied':_0x59fe35(0x225),'networkError':_0x59fe35(0x19d),'maxRetriesExceeded':_0x59fe35(0x1eb)}}};var hn=Object[_0x59fe35(0x1df)],Cn=Object[_0x59fe35(0x2ac)],yn=(_0x5d2df1,_0x3018c7,_0x3ad86f)=>_0x3018c7 in _0x5d2df1?hn(_0x5d2df1,_0x3018c7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ad86f}):_0x5d2df1[_0x3018c7]=_0x3ad86f,_n=(_0x127e6c,_0xfd2019,_0x5596a6,_0xbe1f07)=>{var _0x5c693f=_0x59fe35;for(var _0x54361c=_0xbe1f07>0x1?void 0x0:_0xbe1f07?Cn(_0xfd2019,_0x5596a6):_0xfd2019,_0x1fa385=_0x127e6c[_0x5c693f(0x259)]-0x1,_0x4de59c;_0x1fa385>=0x0;_0x1fa385--)(_0x4de59c=_0x127e6c[_0x1fa385])&&(_0x54361c=_0x4de59c(_0x54361c)||_0x54361c);return _0x54361c;},E=(_0x52e021,_0x381f1c)=>(_0x5e4f4b,_0x29c285)=>_0x381f1c(_0x5e4f4b,_0x29c285,_0x52e021),xn=(_0x466e36,_0x673cee,_0x1c006e)=>yn(_0x466e36,_0x673cee+'',_0x1c006e);let U=class extends _0x434fef{constructor(_0x43ea32=ie,_0x22a1df,_0x352107,_0x444695,_0x40347d,_0x31c736){var _0x1c37c9=_0x59fe35;super(),this[_0x1c37c9(0x2f2)]=_0x43ea32,this[_0x1c37c9(0x1d8)]=_0x22a1df,this[_0x1c37c9(0x240)]=_0x352107,this[_0x1c37c9(0x2dd)]=_0x444695,this['_localStorageService']=_0x40347d,this[_0x1c37c9(0x27f)]=_0x31c736;const {..._0x4e865a}=_0x2a78d2({},ie,this[_0x1c37c9(0x2f2)]);this[_0x1c37c9(0x240)][_0x1c37c9(0x1aa)](L,_0x4e865a);}async[_0x59fe35(0x1ea)](){var _0x26eec6=_0x59fe35;const _0x2f0a2b=[[A],[I],[M]];this['_injector'][_0x26eec6(0x262)](_0x25cbe5)||_0x2f0a2b[_0x26eec6(0x207)]([_0x25cbe5,{'useClass':_0x4c9c0e}]),_0x2f0a2b[_0x26eec6(0x2a4)](_0x19c161=>this[_0x26eec6(0x1d8)][_0x26eec6(0x27b)](_0x19c161)),this['_injector']['get'](A),this[_0x26eec6(0x1d8)][_0x26eec6(0x29d)](I),this['_injector'][_0x26eec6(0x29d)](M);}};xn(U,'pluginName',_0x59fe35(0x256)),U=_n([_0xd7b32(_0x3301bd),E(0x1,_0x50a4eb(_0x5c7687)),E(0x2,_0x3974e0),E(0x3,_0x3ec93b),E(0x4,_0x3eb33c),E(0x5,_0x50a4eb(_0x48ba7d))],U);export{tn as MCPConfigPanel,I as MCPConfigUIController,A as MCPConnectionUIController,ln as MCPStatusDisplay,M as MCPUIMenuController,B as OpenMCPConfigPanelCommand,U as UniverMCPUIPlugin,On as enUS,kn as zhCN};
1
+ function _0x21af(){var _0x430bd1=['Bearer\x20','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','配置\x20MCP\x20使用\x20AI\x20操作电子表格','权限验证失败,请检查您的\x20API\x20密钥','univer-flex\x20univer-h-4\x20univer-w-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','mcpConfig.apiKey','Univer\x20AI\x20Console','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','getConfig','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_mcpConnectionController','0\x200\x2017\x2016','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP:\x20未授权','attrs','get','univer-ml-1\x20univer-flex\x20univer-h-4\x20univer-w-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','mcpConfig.connectionStatus.connected','NETWORK_ERROR','bottom','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','mcpConfig.title','help-single','10CkyJqV','_apiKey$','配置更改将立即生效','{\x0a\x20\x20\x22mcpServers\x22:\x20{\x0a\x20\x20\x20\x20\x22univer\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x22url\x22:\x20\x22https://mcp.univer.ai/mcp/?univer_session_id=','getItem','Connection\x20Failed','univer-flex\x20univer-items-center\x20univer-gap-3','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','noopener\x20noreferrer','CONNECTING','_registerComponent','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','replace','div','您的\x20API\x20密钥安全存储在本地存储中','保存配置','mcpConfig.connectionStatus.failed','CloseSmallSingle','getOwnPropertyDescriptor','UNAUTHORIZED','white','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','配置参数:','mcpConfig.note2','univer-bg-red-500','trim','open','univer-flex\x20univer-items-start\x20univer-gap-3','Connecting...','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','univer-bg-gray-500','请输入您的\x20API\x20密钥','translate(.97)','entries','univer-text-red-500','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','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','off-line-icon_clip0_910_343','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','API\x20key\x20with\x20Bearer\x20prefix.','OffLineIcon','启用身份验证以获得安全连接','apiKey','icon','_menuManagerService','defineProperty','on-line-icon_clip0_910_349','MCP\x20Unknown\x20Status','current','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','javascript:void(0)','currentColor','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','将以下配置添加到您的\x20MCP\x20客户端设置中:','disposeWithMe','mcpConfig.connectionError.maxRetriesExceeded','MCP:\x20Session\x20ID\x20Occupied','_commandService','errorMessage','validateApiKey','connectionStatus$','_validateConfig','includes','http://www.w3.org/2000/svg','带有\x20Bearer\x20前缀的\x20API\x20密钥。','12nuLSEm','mcpConfig.apiApplyInfo.description','extend','HEADER_MENU','univer-space-y-2','value','map','removeItem','1198384zZRXoz','Saving...','Success','showConfigPanel','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','0\x200\x2017\x2017','mcp-ui.command.openConfigPanel','Copy\x20the\x20JSON\x20configuration\x20below','svg','562090IwGEfG','mcpConfig.apiKeyPlaceholder','_initAutoConnect','univer_session_id:','MCP\x20连接中...','show','round','span','_initializeMenus','275391dsxnpM','_initConfigSync','MCP\x20Retrying...','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','Disconnected','30aaBXjv','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','mcpStatus.maxRetriesExceeded','registerComponent','mcpConfig.connectionStatus.connecting','649ZZKHGj','mcpConfig.apiApplyInfo.title','_mcpCoreConfig$','\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','0\x200\x2016\x2016','_localeService','__setCustomHeaders','_messageService','_componentManager','none','mcpConfig.description','24972dbFfPn','API\x20密钥长度至少需要\x2010\x20位','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','连接中...','mcpStatus.clickToConfigure','OTHERS','path','_connectionController','getCurrentConfig','_initializeCommands','MCP\x20已断开','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','API\x20key\x20is\x20required','univer-bg-green-500','配置步骤:','mcpConfig.connectionInfo','isValid','concat','_uiPartsService','univer-text-xs\x20univer-text-gray-600','toString','mergeMenu','FAILED','univer-min-w-0\x20univer-flex-1','mcpConfig.save','\x20-\x20','几秒钟内获取您的\x20API\x20密钥','mcpStatus.networkError','SESSION_ID_OCCUPIED','propertyIsEnumerable','RETRYING','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','random','超出最大重试次数,请稍后再试','_config$','mcpStatus.connected','call','Click\x20to\x20connect\x20MCP','register','配置保存失败','mcpConfig.apiApplyInfo.getStarted','univer-space-y-5','API\x20密钥','MCP\x20已连接','您的\x20API\x20密钥将在此浏览器中本地存储','mcp-config-dialog','_dialogService','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','会话ID','https://console.univer.ai','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex\x20univer-items-center','use','Click\x20to\x20configure\x20MCP','showDeveloperTools','idSuffix','univer-flex\x20univer-h-10\x20univer-w-10\x20univer-flex-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','hasOwnProperty','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','NONE','What\x20is\x20API\x20Key?','mask','17eLGAVj','mcpConfig.saving','substring','HelpSingle','MCP:\x20Unauthorized','MAX_RETRIES_EXCEEDED','error','warn','mcpServerUrl','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','text','mcpConfig.sessionIdDescription','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-h-6\x20univer-w-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','207634jEyoGG','mcpConfig.configError','mcpStatus.unknown','mcpConfig.connectionStatus.disconnected','M5.21243\x205.62036L11.8791\x2012.287','_handleConfigure','Retrying...','什么是\x20API\x20密钥?','MCP\x20Connecting...','UniverIcon','CheckMarkIcon','_logService','_createConfigPanelComponent','MCP\x20Connection\x20Failed','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','mcpConfig.note1','Save\x20Configuration','MCP_UI_PLUGIN','Error','mcpConfig.connectionError.sessionOccupied','univer-text-blue-600','mcpStatus.disconnected','xlink:href','defs','univer-flex-1','CONNECTED','DISCONNECTED','close','univer-font-medium','48788jeJtCU','_initStatusComponent','tag','Session\x20ID','evenodd','univer-flex-shrink-0\x20univer-text-red-500','_localStorageService','MCPConfigPanel','_handleConfigSave','next','length','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','univer-text-yellow-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','subscribe','prototype','univer.plus','Configuration\x20Notes:','mcpConfig.validation.invalidConfig','forEach','未连接','mcpConfig.configStepTitle','defIds','mcpConfig.apiApplyInfo.univerAiLabel','univer-text-sm\x20univer-text-gray-500','clipPath','displayName','API\x20密钥无效,请检查密钥是否正确','MCP\x20Disconnected','enableAutoConnect','\x22\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a}','univer-flex\x20univer-flex-wrap\x20univer-gap-2','off-line-icon','registerCommand','has','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','fill','univer-mt-1.5\x20univer-h-2\x20univer-w-2\x20univer-flex-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpStatus.clickToConnect','mcpConfig.connectionError.unauthorized','url(#on-line-icon_clip0_910_349)','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22type\x22:\x20\x22http\x22,\x0a\x20\x20\x20\x20\x20\x20\x22headers\x22:\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Authorization\x22:\x20\x22Bearer\x20','assign','MCP:\x20Network\x20Error','重连中...','配置保存成功','function','复制以下\x20JSON\x20配置','apply','连接失败','API\x20密钥不能为空','connectionError$','_injector','Authorization:','mcpStatus.unauthorized','univer-text-green-500','indexOf','mcpConfig.configStep3','mcp-ui.config','MCP\x20状态未知','getOwnPropertySymbols','MenuIcon','https://console.univer.plus','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.connectionError.networkError','mcpStatus.connecting','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','url(#off-line-icon_clip0_910_343)','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','colorChannel1','1em','_configService','MCP\x20Configuration','网络连接错误,请检查您的网络连接','M5.21243\x2012.287L11.8791\x205.62036','sessionId$','on-line-icon','string','Configuration\x20Parameters:','OnLineIcon','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','mcp.apiKey','MCP\x20Connected','Enable\x20Authentication','BUTTON','点击配置\x20MCP','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','会话\x20ID\x20已被占用,请稍后再试','pluginName','univer-flex-shrink-0\x20univer-text-blue-500','mcpConfig.configStep2','mcpConfig.validation.apiKeyRequired','univer-text-gray-500','add','pre','children','Enable\x20authentication\x20for\x20secure\x20connections','M0\x200H16V16H0z','label','_loading$','26016retqnF','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','保存中...','mcpStatus.retrying','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','subscribeConfigValue$','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer.ai','close-small-single','Failed\x20to\x20save\x20configuration','配置无效','univer-text-xs\x20univer-text-gray-500','MCP\x20配置','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Max\x20Retries','MCP\x20客户端配置','MCP\x20连接失败','univer-flex\x20univer-h-8\x20univer-w-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','univer-flex\x20univer-items-center\x20univer-gap-2'];_0x21af=function(){return _0x430bd1;};return _0x21af();}var _0x4a7fdc=_0x27a9;(function(_0xdfb2e,_0x1a7807){var _0x13ee99=_0x27a9,_0x1cf3e0=_0xdfb2e();while(!![]){try{var _0x91be48=parseInt(_0x13ee99(0x1b6))/0x1*(parseInt(_0x13ee99(0x244))/0x2)+-parseInt(_0x13ee99(0x2b2))/0x3*(parseInt(_0x13ee99(0x1e0))/0x4)+parseInt(_0x13ee99(0x2c3))/0x5+-parseInt(_0x13ee99(0x168))/0x6*(parseInt(_0x13ee99(0x1c3))/0x7)+parseInt(_0x13ee99(0x2ba))/0x8+parseInt(_0x13ee99(0x2cc))/0x9*(-parseInt(_0x13ee99(0x26f))/0xa)+-parseInt(_0x13ee99(0x16d))/0xb*(parseInt(_0x13ee99(0x178))/0xc);if(_0x91be48===_0x1a7807)break;else _0x1cf3e0['push'](_0x1cf3e0['shift']());}catch(_0x2a70d2){_0x1cf3e0['push'](_0x1cf3e0['shift']());}}}(_0x21af,0x2070c));var we=Object[_0x4a7fdc(0x29d)],Ee=(_0x14731c,_0x16aded,_0x54d287)=>_0x16aded in _0x14731c?we(_0x14731c,_0x16aded,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54d287}):_0x14731c[_0x16aded]=_0x54d287,S=(_0x5c3518,_0x4470b7,_0xb6cc42)=>Ee(_0x5c3518,typeof _0x4470b7!='symbol'?_0x4470b7+'':_0x4470b7,_0xb6cc42);import{LocaleService as _0x43f6c8,Inject as _0x1760ac,Injector as _0x287fae,IConfigService as _0x5c70e1,ILocalStorageService as _0x311a32,ILogService as _0x4cbf5f,Disposable as _0xa01f76,CommandType as _0x595cb9,ICommandService as _0x4b0bfa,DependentOn as _0x21b4be,Plugin as _0x2d050a,merge as _0x35d545}from'@univerjs/core';import{jsxs as _0x8e6a35,jsx as _0x30c4d5}from'react/jsx-runtime';import{MCPConnectionStatus as _0x670a53,MCPConnectionError as _0x374e8e,MCPConnectionController as _0x68dca4,MCP_PLUGIN_CONFIG_KEY as _0x181ae6,UniverMCPPlugin as _0x36760c}from'@univerjs-pro/mcp';import{Input as _0x17a88b,Button as _0x231b69,MessageType as _0x472b1c,Tooltip as _0x326603,clsx as _0x1ae4d3}from'@univerjs/design';import{useDependency as _0x2ba020,useObservable as _0x1aaeae,IUIPartsService as _0x3e6fa8,IDialogService as _0x3d3fab,IMessageService as _0x2a6379,ComponentManager as _0x248eb4,connectInjector as _0x496805,BuiltInUIPart as _0x120766,MenuItemType as _0x2fadd6,RibbonStartGroup as _0x91f210,IMenuManagerService as _0x2a8c5e}from'@univerjs/ui';import{BehaviorSubject as _0x1f1878}from'rxjs';import{forwardRef as _0x5f14d1,useRef as _0x52f675,createElement as _0x631f05,useState as _0x1e4853,useCallback as _0x1cae1e}from'react';import{ISocketService as _0x3f0dc1,WebSocketService as _0x2af37c}from'@univerjs/network';var f=function(){var _0x5cc7bd=_0x4a7fdc;return f=Object['assign']||function(_0x2e8d88){var _0xf2e7c0=_0x27a9;for(var _0x4b28eb,_0x24c050=0x1,_0x29b83b=arguments[_0xf2e7c0(0x1ea)];_0x24c050<_0x29b83b;_0x24c050++){_0x4b28eb=arguments[_0x24c050];for(var _0x5df30c in _0x4b28eb)Object[_0xf2e7c0(0x1ef)][_0xf2e7c0(0x1b1)][_0xf2e7c0(0x19c)](_0x4b28eb,_0x5df30c)&&(_0x2e8d88[_0x5df30c]=_0x4b28eb[_0x5df30c]);}return _0x2e8d88;},f[_0x5cc7bd(0x210)](this,arguments);},Ye=function(_0x284c97,_0x3b66b2){var _0x271a4d=_0x4a7fdc,_0x362997={};for(var _0xda0974 in _0x284c97)Object['prototype'][_0x271a4d(0x1b1)][_0x271a4d(0x19c)](_0x284c97,_0xda0974)&&_0x3b66b2[_0x271a4d(0x218)](_0xda0974)<0x0&&(_0x362997[_0xda0974]=_0x284c97[_0xda0974]);if(_0x284c97!=null&&typeof Object[_0x271a4d(0x21c)]==_0x271a4d(0x20e)){for(var _0x4616ff=0x0,_0xda0974=Object[_0x271a4d(0x21c)](_0x284c97);_0x4616ff<_0xda0974[_0x271a4d(0x1ea)];_0x4616ff++)_0x3b66b2[_0x271a4d(0x218)](_0xda0974[_0x4616ff])<0x0&&Object[_0x271a4d(0x1ef)][_0x271a4d(0x195)][_0x271a4d(0x19c)](_0x284c97,_0xda0974[_0x4616ff])&&(_0x362997[_0xda0974[_0x4616ff]]=_0x284c97[_0xda0974[_0x4616ff]]);}return _0x362997;},w=_0x5f14d1(function(_0x31160d,_0x1573a0){var _0x4539f6=_0x4a7fdc,_0x1ebb69=_0x31160d[_0x4539f6(0x29b)],_0xbdec98=_0x31160d['id'],_0x700b39=_0x31160d['className'],_0x104ef8=_0x31160d[_0x4539f6(0x2b4)],_0x4b9555=Ye(_0x31160d,[_0x4539f6(0x29b),'id','className',_0x4539f6(0x2b4)]),_0x3a74f6='univerjs-icon\x20univerjs-icon-'[_0x4539f6(0x189)](_0xbdec98,'\x20')[_0x4539f6(0x189)](_0x700b39||'')[_0x4539f6(0x288)](),_0x3601f9=_0x52f675('_'[_0x4539f6(0x189)](Xe()));return ue(_0x1ebb69,''[_0x4539f6(0x189)](_0xbdec98),{'defIds':_0x1ebb69[_0x4539f6(0x1f6)],'idSuffix':_0x3601f9[_0x4539f6(0x2a0)]},f({'ref':_0x1573a0,'className':_0x3a74f6},_0x4b9555),_0x104ef8);});function ue(_0x171460,_0x55a839,_0x1a464a,_0x17fd56,_0x51f9d0){var _0x3717e1=_0x4a7fdc;return _0x631f05(_0x171460[_0x3717e1(0x1e2)],f(f({'key':_0x55a839},Ze(_0x171460,_0x1a464a,_0x51f9d0)),_0x17fd56),(qe(_0x171460,_0x1a464a)[_0x3717e1(0x23f)]||[])[_0x3717e1(0x2b8)](function(_0x363c93,_0x56eb52){var _0x4ac8be=_0x3717e1;return ue(_0x363c93,''[_0x4ac8be(0x189)](_0x55a839,'-')[_0x4ac8be(0x189)](_0x171460[_0x4ac8be(0x1e2)],'-')[_0x4ac8be(0x189)](_0x56eb52),_0x1a464a,void 0x0,_0x51f9d0);}));}function Ze(_0x5bd2b2,_0x3b0edb,_0x3a3dae){var _0x40600e=_0x4a7fdc,_0x29a167=f({},_0x5bd2b2['attrs']);_0x3a3dae!=null&&_0x3a3dae[_0x40600e(0x225)]&&_0x29a167['fill']==='colorChannel1'&&(_0x29a167[_0x40600e(0x204)]=_0x3a3dae[_0x40600e(0x225)]),_0x5bd2b2[_0x40600e(0x1e2)]==='mask'&&_0x29a167['id']&&(_0x29a167['id']=_0x29a167['id']+_0x3b0edb[_0x40600e(0x1af)]),Object[_0x40600e(0x290)](_0x29a167)[_0x40600e(0x1f3)](function(_0x3f197e){var _0x134cdd=_0x40600e,_0x5b8485=_0x3f197e[0x0],_0x41f3e7=_0x3f197e[0x1];_0x5b8485===_0x134cdd(0x1b5)&&typeof _0x41f3e7==_0x134cdd(0x22d)&&(_0x29a167[_0x5b8485]=_0x41f3e7[_0x134cdd(0x27b)](/url\(#(.*)\)/,'url(#$1'[_0x134cdd(0x189)](_0x3b0edb[_0x134cdd(0x1af)],')')));});var _0xa334ba=_0x3b0edb['defIds'];return!_0xa334ba||_0xa334ba[_0x40600e(0x1ea)]===0x0||(_0x5bd2b2[_0x40600e(0x1e2)]===_0x40600e(0x1ac)&&_0x29a167[_0x40600e(0x1d9)]&&(_0x29a167[_0x40600e(0x1d9)]=_0x29a167[_0x40600e(0x1d9)]+_0x3b0edb[_0x40600e(0x1af)]),Object[_0x40600e(0x290)](_0x29a167)[_0x40600e(0x1f3)](function(_0x13ac3c){var _0x2c3cc0=_0x40600e,_0x481b3a=_0x13ac3c[0x0],_0x104a6c=_0x13ac3c[0x1];typeof _0x104a6c==_0x2c3cc0(0x22d)&&(_0x29a167[_0x481b3a]=_0x104a6c[_0x2c3cc0(0x27b)](/url\(#(.*)\)/,'url(#$1'[_0x2c3cc0(0x189)](_0x3b0edb[_0x2c3cc0(0x1af)],')')));})),_0x29a167;}function qe(_0x21d5ca,_0x5857c7){var _0x20ce80=_0x4a7fdc,_0x12d595,_0x1d55bd=_0x5857c7['defIds'];return!_0x1d55bd||_0x1d55bd['length']===0x0?_0x21d5ca:_0x21d5ca[_0x20ce80(0x1e2)]===_0x20ce80(0x1da)&&(!((_0x12d595=_0x21d5ca[_0x20ce80(0x23f)])===null||_0x12d595===void 0x0)&&_0x12d595[_0x20ce80(0x1ea)])?f(f({},_0x21d5ca),{'children':_0x21d5ca[_0x20ce80(0x23f)][_0x20ce80(0x2b8)](function(_0x59170f){var _0x4cdcc2=_0x20ce80;return typeof _0x59170f['attrs']['id']=='string'&&_0x1d55bd&&_0x1d55bd[_0x4cdcc2(0x2af)](_0x59170f[_0x4cdcc2(0x266)]['id'])?f(f({},_0x59170f),{'attrs':f(f({},_0x59170f[_0x4cdcc2(0x266)]),{'id':_0x59170f[_0x4cdcc2(0x266)]['id']+_0x5857c7['idSuffix']})}):_0x59170f;})}):_0x21d5ca;}function Xe(){var _0x2831e=_0x4a7fdc;return Math[_0x2831e(0x198)]()[_0x2831e(0x18c)](0x24)[_0x2831e(0x1b8)](0x2,0x8);}w[_0x4a7fdc(0x1fa)]=_0x4a7fdc(0x1cc);var Je={'tag':'svg','attrs':{'xmlns':_0x4a7fdc(0x2b0),'fill':_0x4a7fdc(0x176),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4a7fdc(0x226)},'children':[{'tag':'path','attrs':{'fill':'currentColor','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':_0x4a7fdc(0x1e4),'clipRule':_0x4a7fdc(0x1e4)}}]},le=_0x5f14d1(function(_0x5ccec2,_0x42aea3){var _0x44dd63=_0x4a7fdc;return _0x631f05(w,Object[_0x44dd63(0x20a)]({},_0x5ccec2,{'id':'check-mark-icon','ref':_0x42aea3,'icon':Je}));});le['displayName']=_0x4a7fdc(0x1cd);var Qe={'tag':_0x4a7fdc(0x2c2),'attrs':{'xmlns':_0x4a7fdc(0x2b0),'fill':_0x4a7fdc(0x176),'viewBox':_0x4a7fdc(0x2bf),'width':'1em','height':'1em'},'children':[{'tag':_0x4a7fdc(0x17e),'attrs':{'stroke':_0x4a7fdc(0x2a4),'d':_0x4a7fdc(0x1c7),'strokeLinecap':_0x4a7fdc(0x2c9),'strokeLinejoin':'round','strokeWidth':1.33}},{'tag':'path','attrs':{'stroke':_0x4a7fdc(0x2a4),'d':_0x4a7fdc(0x22a),'strokeLinecap':_0x4a7fdc(0x2c9),'strokeLinejoin':'round','strokeWidth':1.33}}]},ve=_0x5f14d1(function(_0x39e5e5,_0x762757){var _0xd2832=_0x4a7fdc;return _0x631f05(w,Object[_0xd2832(0x20a)]({},_0x39e5e5,{'id':_0xd2832(0x24d),'ref':_0x762757,'icon':Qe}));});ve[_0x4a7fdc(0x1fa)]=_0x4a7fdc(0x280);var en={'tag':'svg','attrs':{'xmlns':_0x4a7fdc(0x2b0),'fill':_0x4a7fdc(0x176),'viewBox':_0x4a7fdc(0x171),'width':_0x4a7fdc(0x226),'height':_0x4a7fdc(0x226)},'children':[{'tag':'path','attrs':{'fill':_0x4a7fdc(0x2a4),'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':_0x4a7fdc(0x17e),'attrs':{'fill':_0x4a7fdc(0x2a4),'d':_0x4a7fdc(0x1a7)}},{'tag':_0x4a7fdc(0x17e),'attrs':{'fill':_0x4a7fdc(0x2a4),'d':'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','fillRule':'evenodd','clipRule':_0x4a7fdc(0x1e4)}}]},de=_0x5f14d1(function(_0x464fe2,_0x3c698d){var _0x141253=_0x4a7fdc;return _0x631f05(w,Object[_0x141253(0x20a)]({},_0x464fe2,{'id':_0x141253(0x26e),'ref':_0x3c698d,'icon':en}));});de[_0x4a7fdc(0x1fa)]=_0x4a7fdc(0x1b9);var nn={'tag':_0x4a7fdc(0x2c2),'attrs':{'xmlns':_0x4a7fdc(0x2b0),'fill':_0x4a7fdc(0x176),'viewBox':_0x4a7fdc(0x171),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4a7fdc(0x223)},'children':[{'tag':'path','attrs':{'stroke':_0x4a7fdc(0x2a4),'d':_0x4a7fdc(0x166),'strokeLinecap':_0x4a7fdc(0x2c9),'strokeLinejoin':_0x4a7fdc(0x2c9),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4a7fdc(0x1f9),'attrs':{'id':_0x4a7fdc(0x295)},'children':[{'tag':'path','attrs':{'fill':_0x4a7fdc(0x283),'d':_0x4a7fdc(0x241)}}]}]}],'defIds':[_0x4a7fdc(0x295)]},fe=_0x5f14d1(function(_0x26d73,_0xd3d9c4){var _0x1522f8=_0x4a7fdc;return _0x631f05(w,Object['assign']({},_0x26d73,{'id':_0x1522f8(0x200),'ref':_0xd3d9c4,'icon':nn}));});fe[_0x4a7fdc(0x1fa)]=_0x4a7fdc(0x298);var rn={'tag':_0x4a7fdc(0x2c2),'attrs':{'xmlns':_0x4a7fdc(0x2b0),'fill':_0x4a7fdc(0x176),'viewBox':_0x4a7fdc(0x263),'width':_0x4a7fdc(0x226),'height':_0x4a7fdc(0x226)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a7fdc(0x208)},'children':[{'tag':_0x4a7fdc(0x17e),'attrs':{'stroke':'currentColor','d':_0x4a7fdc(0x1eb),'strokeLinecap':_0x4a7fdc(0x2c9),'strokeLinejoin':_0x4a7fdc(0x2c9),'strokeWidth':1.2}}]},{'tag':_0x4a7fdc(0x1da),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4a7fdc(0x29e)},'children':[{'tag':'path','attrs':{'fill':_0x4a7fdc(0x283),'d':_0x4a7fdc(0x241),'transform':_0x4a7fdc(0x28f)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},ge=_0x5f14d1(function(_0x448b67,_0x2ea719){var _0x378a9d=_0x4a7fdc;return _0x631f05(w,Object[_0x378a9d(0x20a)]({},_0x448b67,{'id':_0x378a9d(0x22c),'ref':_0x2ea719,'icon':rn}));});ge[_0x4a7fdc(0x1fa)]=_0x4a7fdc(0x22f);function tn(_0x58f66a){var _0xff6602=_0x4a7fdc,_0x43ad54,_0x276197;const {mcpCoreConfig:_0x308636,onSave:_0xfbcfcd,loading:_0x38ee61=!0x1,config:_0x4f7a76,connectionStatus$:_0x2d2a0e,connectionError$:_0x590a2d,currentApiKey$:_0x376594,currentSessionId$:_0x461c81}=_0x58f66a,_0x4c4972=_0x2ba020(_0x43f6c8),_0xd4ab36=_0x1aaeae(_0x2d2a0e,_0x670a53[_0xff6602(0x1dd)]),_0x520bf6=_0x1aaeae(_0x590a2d,_0x374e8e['NONE']),_0x1917bf=_0x1aaeae(_0x461c81,''),_0x168b07=_0x1aaeae(_0x376594,''),[_0x104d50,_0x2d1e06]=_0x1e4853(_0x168b07||''),_0x506019=!0x0,_0x4b91ed=_0x4f7a76['showDeveloperTools']&&_0x308636[_0xff6602(0x1be)]&&(_0x308636[_0xff6602(0x1be)][_0xff6602(0x2af)](_0xff6602(0x1f0))||_0x308636[_0xff6602(0x1be)][_0xff6602(0x2af)](_0xff6602(0x24c))),_0x1885a9=(_0x43ad54=_0x308636[_0xff6602(0x1be)])==null?void 0x0:_0x43ad54['includes'](_0xff6602(0x1f0)),_0x581807=(_0x276197=_0x308636[_0xff6602(0x1be)])==null?void 0x0:_0x276197['includes'](_0xff6602(0x24c)),_0x37b062=_0x1885a9?_0xff6602(0x21e):_0xff6602(0x1a9),_0x1ac1a7=_0x4f7a76[_0xff6602(0x1ae)]&&(_0x1885a9||_0x581807),[_0x398b82,_0x52a56f]=_0x1e4853(!_0x104d50[_0xff6602(0x288)]()),_0x289c2b=(_0x4c3e83,_0x334ba9)=>{var _0x314b31=_0xff6602;if(_0x334ba9===_0x374e8e[_0x314b31(0x282)])return _0x314b31(0x197);switch(_0x4c3e83){case _0x670a53[_0x314b31(0x1dc)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x670a53[_0x314b31(0x278)]:case _0x670a53[_0x314b31(0x196)]:return _0x314b31(0x276);case _0x670a53['FAILED']:return _0x314b31(0x197);default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x4a6a36=(_0xacd2cf,_0x2a94b9)=>{var _0x3e1d2f=_0xff6602;if(_0x2a94b9===_0x374e8e[_0x3e1d2f(0x282)])return _0x3e1d2f(0x287);switch(_0xacd2cf){case _0x670a53[_0x3e1d2f(0x1dc)]:return _0x3e1d2f(0x185);case _0x670a53[_0x3e1d2f(0x278)]:case _0x670a53[_0x3e1d2f(0x196)]:return'univer-bg-blue-500';case _0x670a53['FAILED']:return'univer-bg-red-500';default:return _0x3e1d2f(0x28d);}},_0xbda28e=_0x130993=>{var _0x59ed10=_0xff6602;switch(_0x130993){case _0x670a53[_0x59ed10(0x1dc)]:return _0x4c4972['t'](_0x59ed10(0x269));case _0x670a53[_0x59ed10(0x278)]:return _0x4c4972['t'](_0x59ed10(0x16c));case _0x670a53[_0x59ed10(0x18e)]:return _0x4c4972['t'](_0x59ed10(0x27f));case _0x670a53[_0x59ed10(0x196)]:return _0x4c4972['t']('mcpConfig.connectionStatus.retrying');default:return _0x4c4972['t'](_0x59ed10(0x1c6));}},_0x199166=_0x5e928a=>{var _0x294088=_0xff6602;switch(_0x5e928a){case _0x374e8e[_0x294088(0x282)]:return _0x4c4972['t'](_0x294088(0x207));case _0x374e8e[_0x294088(0x194)]:return _0x4c4972['t'](_0x294088(0x1d6));case _0x374e8e[_0x294088(0x26a)]:return _0x4c4972['t'](_0x294088(0x220));case _0x374e8e[_0x294088(0x1bb)]:return _0x4c4972['t'](_0x294088(0x2a8));default:return'';}},_0x315a56=_0x1cae1e(()=>{var _0x2ce21c=_0xff6602;const _0x3c8357={..._0x308636,'apiKey':_0x104d50[_0x2ce21c(0x288)](),'enableAuth':_0x506019};_0xfbcfcd(_0x3c8357);},[_0x308636,_0x104d50,_0x506019,_0xfbcfcd]),_0x1beeeb=_0x104d50[_0xff6602(0x288)]()[_0xff6602(0x1ea)]>0x0;return _0x8e6a35('div',{'className':_0xff6602(0x183),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x25f),'children':_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x275),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x256),'children':_0x30c4d5('span',{'className':'univer-text-white','children':'⚙'})}),_0x30c4d5(_0xff6602(0x27c),{'children':_0x30c4d5('p',{'className':_0xff6602(0x1f8),'children':_0x4c4972['t'](_0xff6602(0x177))})})]})}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x259),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x289c2b(_0xd4ab36,_0x520bf6)+_0xff6602(0x17a),'children':_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x257),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-h-2\x20univer-w-2\x20univer-rounded-full\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4a6a36(_0xd4ab36,_0x520bf6)+_0xff6602(0x261)}),_0x30c4d5(_0xff6602(0x2ca),{'className':'univer-text-sm\x20univer-font-medium','children':_0xbda28e(_0xd4ab36)})]})}),_0x520bf6!==_0x374e8e['NONE']&&(_0xd4ab36===_0x670a53['FAILED']||_0x520bf6===_0x374e8e['UNAUTHORIZED'])&&_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x28c),'children':_0x8e6a35(_0xff6602(0x27c),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x30c4d5(_0xff6602(0x2ca),{'className':_0xff6602(0x1e5),'children':'⚠️'}),_0x30c4d5('p',{'className':_0xff6602(0x24a),'children':_0x199166(_0x520bf6)})]})})]}),_0x30c4d5(_0xff6602(0x27c),{'className':'univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','children':_0x8e6a35('div',{'className':_0xff6602(0x1a1),'children':[_0x8e6a35('div',{'className':_0xff6602(0x2b6),'children':[_0x8e6a35(_0xff6602(0x242),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','children':[_0x30c4d5(_0xff6602(0x2ca),{'children':'🔑'}),'\x20',_0x4c4972['t'](_0xff6602(0x25d)),_0x30c4d5(_0xff6602(0x2ca),{'className':_0xff6602(0x291),'children':'*'}),_0x4b91ed&&_0x30c4d5('a',{'href':'javascript:void(0)','onClick':()=>_0x52a56f(!0x0),'className':_0xff6602(0x268),'title':_0x4c4972['t'](_0xff6602(0x16e)),'children':_0x30c4d5(de,{})})]}),_0x30c4d5(_0x17a88b,{'type':_0xff6602(0x1c0),'placeholder':_0x4c4972['t'](_0xff6602(0x2c4)),'value':_0x104d50,'onChange':_0x2d1e06,'disabled':_0x38ee61,'autoComplete':'off'}),_0x30c4d5('p',{'className':_0xff6602(0x250),'children':_0x4c4972['t']('mcpConfig.apiKeyHint')})]}),_0x4b91ed&&_0x398b82&&_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x2be),'children':[_0x30c4d5('a',{'href':_0xff6602(0x2a3),'onClick':()=>_0x52a56f(!0x1),'className':_0xff6602(0x1c2),'title':'Close','children':_0x30c4d5(ve,{})}),_0x8e6a35('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x30c4d5('div',{'className':_0xff6602(0x1b0),'children':_0x30c4d5('span',{'className':_0xff6602(0x1d7),'children':'🚀'})}),_0x8e6a35('div',{'className':_0xff6602(0x1db),'children':[_0x30c4d5('h4',{'className':_0xff6602(0x294),'children':_0x4c4972['t'](_0xff6602(0x16e))}),_0x30c4d5('p',{'className':_0xff6602(0x1bf),'children':_0x4c4972['t'](_0xff6602(0x2b3))}),_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x1ff),'children':_0x1ac1a7&&_0x8e6a35('a',{'href':_0x37b062,'target':'_blank','rel':_0xff6602(0x277),'className':_0xff6602(0x296),'children':[_0x30c4d5(_0xff6602(0x2ca),{'children':'🤖'}),_0x4c4972['t'](_0xff6602(0x1f7)),_0x30c4d5(_0xff6602(0x2ca),{'className':'univer-text-gray-400','children':'↗'})]})}),_0x8e6a35(_0xff6602(0x27c),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x4c4972['t'](_0xff6602(0x1a0))]})]})]})]}),_0x4f7a76[_0xff6602(0x1ae)]&&_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x1aa),'children':[_0x8e6a35('h4',{'className':_0xff6602(0x2a2),'children':[_0x30c4d5(_0xff6602(0x2ca),{'children':'🔗'}),'\x20',_0x4c4972['t'](_0xff6602(0x187))]}),_0x8e6a35(_0xff6602(0x27c),{'className':'univer-space-y-4','children':[_0x8e6a35(_0xff6602(0x27c),{'className':'univer-space-y-3','children':[_0x30c4d5('p',{'className':_0xff6602(0x18b),'children':_0x4c4972['t']('mcpConfig.configInstructions')}),_0x8e6a35('div',{'className':'univer-space-y-2','children':[_0x30c4d5('div',{'className':_0xff6602(0x1ed),'children':_0x4c4972['t'](_0xff6602(0x1f5))}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x2a1),'children':[_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x257),'children':[_0x30c4d5(_0xff6602(0x2ca),{'className':_0xff6602(0x25c),'children':'1'}),_0x4c4972['t']('mcpConfig.configStep1')]}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x257),'children':[_0x30c4d5(_0xff6602(0x2ca),{'className':_0xff6602(0x25c),'children':'2'}),_0x4c4972['t'](_0xff6602(0x23a))]}),_0x8e6a35('div',{'className':_0xff6602(0x257),'children':[_0x30c4d5('span',{'className':_0xff6602(0x25c),'children':'3'}),_0x4c4972['t'](_0xff6602(0x219))]})]})]})]}),_0x8e6a35('div',{'className':_0xff6602(0x2b6),'children':[_0x30c4d5('div',{'className':_0xff6602(0x1ed),'children':'MCP\x20Configuration'}),_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x236),'children':_0x30c4d5(_0xff6602(0x23e),{'className':_0xff6602(0x1b2),'children':_0xff6602(0x272)+_0x1917bf+_0xff6602(0x209)+(_0x104d50||'<API_KEY>')+_0xff6602(0x1fe)})})]}),_0x8e6a35('div',{'className':'univer-space-y-3','children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x1ed),'children':_0x4c4972['t']('mcpConfig.configParameters')}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x2b6),'children':[_0x8e6a35('div',{'className':_0xff6602(0x28a),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x205)}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x18f),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0xff6602(0x2c6)}),_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x250),'children':_0x4c4972['t'](_0xff6602(0x1c1))})]})]}),_0x8e6a35('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x30c4d5('div',{'className':_0xff6602(0x205)}),_0x8e6a35(_0xff6602(0x27c),{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x1d1),'children':_0xff6602(0x215)}),_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x250),'children':_0x4c4972['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x30c4d5(_0x231b69,{'onClick':_0x315a56,'disabled':!_0x1beeeb||_0x38ee61,'className':_0xff6602(0x292),'children':_0x38ee61?_0x8e6a35('span',{'className':_0xff6602(0x257),'children':[_0x30c4d5(_0xff6602(0x2ca),{'children':'⟲'}),_0x4c4972['t'](_0xff6602(0x1b7))]}):_0x8e6a35(_0xff6602(0x2ca),{'className':_0xff6602(0x257),'children':[_0x30c4d5(le,{}),_0x4c4972['t'](_0xff6602(0x190))]})}),_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x24b),'children':_0x8e6a35(_0xff6602(0x27c),{'className':'univer-flex\x20univer-gap-3','children':[_0x30c4d5(_0xff6602(0x2ca),{'className':_0xff6602(0x239),'children':'💡'}),_0x8e6a35(_0xff6602(0x27c),{'className':_0xff6602(0x252),'children':[_0x30c4d5(_0xff6602(0x27c),{'className':_0xff6602(0x1df),'children':_0xff6602(0x1f1)}),_0x8e6a35(_0xff6602(0x27c),{'children':['•',_0x4c4972['t'](_0xff6602(0x1d2))]}),_0x8e6a35(_0xff6602(0x27c),{'children':['•',_0x4c4972['t'](_0xff6602(0x286))]})]})]})})]})})]});}const x=_0x4a7fdc(0x21a),re={'showDeveloperTools':!0x1,'showStatus':!0x0};var on=Object['getOwnPropertyDescriptor'],sn=(_0x2ce44f,_0x29d693,_0x1a1d2d,_0x156618)=>{var _0x477311=_0x4a7fdc;for(var _0x370418=_0x156618>0x1?void 0x0:_0x156618?on(_0x29d693,_0x1a1d2d):_0x29d693,_0x2b2534=_0x2ce44f[_0x477311(0x1ea)]-0x1,_0x295dc4;_0x2b2534>=0x0;_0x2b2534--)(_0x295dc4=_0x2ce44f[_0x2b2534])&&(_0x370418=_0x295dc4(_0x370418)||_0x370418);return _0x370418;},g=(_0x37eac0,_0x8b827d)=>(_0x293dde,_0x26a4bd)=>_0x8b827d(_0x293dde,_0x26a4bd,_0x37eac0);const j=_0x4a7fdc(0x231),U=_0x4a7fdc(0x1a5);let I=class extends _0xa01f76{constructor(_0x26b5fd,_0x431ccf,_0x3d7dbc,_0x4241f3,_0xb5628f,_0x5814da,_0x554be9,_0x272519,_0x2501ae,_0x37e499){var _0x39da56=_0x4a7fdc;super(),S(this,'_loading$',new _0x1f1878(!0x1)),S(this,'_mcpCoreConfig$',new _0x1f1878({})),S(this,_0x39da56(0x19a),new _0x1f1878({})),S(this,_0x39da56(0x270),new _0x1f1878('')),S(this,_0x39da56(0x1e8),async _0x41e6c9=>{var _0x3687ca=_0x39da56,_0x31284f,_0xa08955;this['_loading$'][_0x3687ca(0x1e9)](!0x0);try{const _0xf6ec3a=await this['_validateConfig'](_0x41e6c9);if(!_0xf6ec3a[_0x3687ca(0x188)]){this[_0x3687ca(0x174)][_0x3687ca(0x2c8)]({'type':_0x472b1c['Error'],'content':_0xf6ec3a[_0x3687ca(0x2ab)]||this[_0x3687ca(0x172)]['t'](_0x3687ca(0x1f2))});return;}_0x41e6c9[_0x3687ca(0x29a)]?await this['_localStorageService']['setItem'](j,_0x41e6c9['apiKey'][_0x3687ca(0x288)]()):await this[_0x3687ca(0x1e6)][_0x3687ca(0x2b9)](j),this[_0x3687ca(0x270)][_0x3687ca(0x1e9)](((_0x31284f=_0x41e6c9[_0x3687ca(0x29a)])==null?void 0x0:_0x31284f[_0x3687ca(0x288)]())||''),this[_0x3687ca(0x262)][_0x3687ca(0x173)]({'Authorization':'Bearer\x20'+((_0xa08955=_0x41e6c9[_0x3687ca(0x29a)])==null?void 0x0:_0xa08955[_0x3687ca(0x288)]())}),this['_messageService']['show']({'type':_0x472b1c[_0x3687ca(0x2bc)],'content':this[_0x3687ca(0x172)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{var _0x2ef176=_0x3687ca;this[_0x2ef176(0x1a6)][_0x2ef176(0x1de)](U);},0x320);}catch(_0x3a2c8e){this[_0x3687ca(0x1ce)][_0x3687ca(0x1bc)]('[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:',_0x3a2c8e),this[_0x3687ca(0x174)][_0x3687ca(0x2c8)]({'type':_0x472b1c[_0x3687ca(0x1d5)],'content':this[_0x3687ca(0x172)]['t'](_0x3687ca(0x1c4))});}finally{this[_0x3687ca(0x243)][_0x3687ca(0x1e9)](!0x1);}}),(this['_injector']=_0x26b5fd,this[_0x39da56(0x18a)]=_0x431ccf,this[_0x39da56(0x227)]=_0x3d7dbc,this[_0x39da56(0x1e6)]=_0x4241f3,this[_0x39da56(0x1a6)]=_0xb5628f,this[_0x39da56(0x174)]=_0x5814da,this[_0x39da56(0x175)]=_0x554be9,this[_0x39da56(0x172)]=_0x272519,this['_logService']=_0x2501ae,this['_mcpConnectionController']=_0x37e499,this[_0x39da56(0x2cd)](),this['_loadStoredApiKey'](),this[_0x39da56(0x279)]());}['showConfigPanel'](){var _0x50ff4f=_0x4a7fdc;const _0x1f8270=this[_0x50ff4f(0x227)][_0x50ff4f(0x260)](x);_0x1f8270!=null&&_0x1f8270[_0x50ff4f(0x1ae)]&&this[_0x50ff4f(0x1a6)][_0x50ff4f(0x289)]({'id':U,'title':{'title':this[_0x50ff4f(0x172)]['t'](_0x50ff4f(0x26d))},'children':{'label':_0x50ff4f(0x1e7)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{var _0x15e653=_0x50ff4f;this[_0x15e653(0x1a6)][_0x15e653(0x1de)](U);}});}[_0x4a7fdc(0x180)](){var _0x42fee3=_0x4a7fdc;return this[_0x42fee3(0x16f)][_0x42fee3(0x2b7)];}[_0x4a7fdc(0x279)](){var _0x14e7ae=_0x4a7fdc;this['disposeWithMe'](this[_0x14e7ae(0x175)][_0x14e7ae(0x19e)](_0x14e7ae(0x1e7),this[_0x14e7ae(0x1cf)]()));}['_createConfigPanelComponent'](){var _0x3515f8=_0x4a7fdc;return _0x496805(()=>{var _0x51c8bc=_0x27a9,_0x4f0ea7,_0x1161c6,_0x2200ec;return _0x30c4d5(tn,{'config':this[_0x51c8bc(0x19a)][_0x51c8bc(0x2b7)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x51c8bc(0x2b7)],'currentApiKey$':this[_0x51c8bc(0x270)],'onSave':this[_0x51c8bc(0x1e8)],'loading':this[_0x51c8bc(0x243)][_0x51c8bc(0x2b7)],'connectionStatus$':(_0x4f0ea7=this[_0x51c8bc(0x262)])==null?void 0x0:_0x4f0ea7[_0x51c8bc(0x2ad)],'connectionError$':(_0x1161c6=this['_mcpConnectionController'])==null?void 0x0:_0x1161c6[_0x51c8bc(0x213)],'currentSessionId$':(_0x2200ec=this[_0x51c8bc(0x262)])==null?void 0x0:_0x2200ec[_0x51c8bc(0x22b)]});},this[_0x3515f8(0x214)]);}['_initConfigSync'](){var _0x2bcca5=_0x4a7fdc;this[_0x2bcca5(0x2a7)](this['_configService'][_0x2bcca5(0x249)](_0x181ae6)['subscribe'](_0x1a3d26=>{var _0x23043e=_0x2bcca5;this[_0x23043e(0x16f)]['next'](_0x1a3d26||{});}));const _0x3bac66=this[_0x2bcca5(0x227)]['getConfig'](_0x181ae6);this[_0x2bcca5(0x16f)][_0x2bcca5(0x1e9)](_0x3bac66||{}),this[_0x2bcca5(0x2a7)](this['_configService'][_0x2bcca5(0x249)](x)[_0x2bcca5(0x1ee)](_0x31725c=>{var _0x129ec6=_0x2bcca5;this[_0x129ec6(0x19a)][_0x129ec6(0x1e9)](_0x31725c||{});}));const _0x1f9ee4=this['_configService'][_0x2bcca5(0x260)](x);this[_0x2bcca5(0x19a)]['next'](_0x1f9ee4||{});}async['_loadStoredApiKey'](){var _0x1da37c=_0x4a7fdc;const _0x19846c=this['_configService'][_0x1da37c(0x260)](x);if(!(_0x19846c!=null&&_0x19846c[_0x1da37c(0x1ae)]))return;const _0x5c02cf=await this[_0x1da37c(0x1e6)][_0x1da37c(0x273)](j);_0x5c02cf&&(this[_0x1da37c(0x262)][_0x1da37c(0x173)]({'Authorization':_0x1da37c(0x258)+_0x5c02cf}),this['_apiKey$'][_0x1da37c(0x1e9)](_0x5c02cf));}async[_0x4a7fdc(0x2ae)](_0x4fca02){var _0x21f241=_0x4a7fdc;if(!_0x4fca02[_0x21f241(0x29a)]||_0x4fca02['apiKey']['trim']()[_0x21f241(0x1ea)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t'](_0x21f241(0x23b))};if(_0x4fca02[_0x21f241(0x29a)][_0x21f241(0x288)]()[_0x21f241(0x1ea)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x21f241(0x172)]['t']('mcpConfig.validation.apiKeyTooShort')};try{const _0x9b587a=await this['_injector'][_0x21f241(0x267)](_0x68dca4)[_0x21f241(0x2ac)](_0x4fca02[_0x21f241(0x29a)][_0x21f241(0x288)]());return _0x9b587a[_0x21f241(0x188)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x9b587a['error']||this[_0x21f241(0x172)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x3a8e11){return console[_0x21f241(0x1bd)](_0x21f241(0x248),_0x3a8e11),{'isValid':!0x0};}}};I=sn([g(0x0,_0x1760ac(_0x287fae)),g(0x1,_0x3e6fa8),g(0x2,_0x5c70e1),g(0x3,_0x311a32),g(0x4,_0x3d3fab),g(0x5,_0x2a6379),g(0x6,_0x1760ac(_0x248eb4)),g(0x7,_0x1760ac(_0x43f6c8)),g(0x8,_0x4cbf5f),g(0x9,_0x1760ac(_0x68dca4))],I);const V={'id':_0x4a7fdc(0x2c0),'type':_0x595cb9['COMMAND'],'handler':async(_0x206ee4,_0x3db400)=>(_0x206ee4[_0x4a7fdc(0x267)](I)[_0x4a7fdc(0x2bd)](),!0x0)};function pe(_0x34146a,_0x5e13bf){var _0xb018a=_0x4a7fdc;switch(_0x34146a){case _0x670a53[_0xb018a(0x1dd)]:return _0xb018a(0x1d8);case _0x670a53[_0xb018a(0x278)]:return _0xb018a(0x221);case _0x670a53[_0xb018a(0x1dc)]:return _0xb018a(0x19b);case _0x670a53[_0xb018a(0x18e)]:switch(_0x5e13bf){case _0x374e8e[_0xb018a(0x282)]:return _0xb018a(0x216);case _0x374e8e[_0xb018a(0x194)]:return'mcpStatus.sessionOccupied';case _0x374e8e[_0xb018a(0x26a)]:return _0xb018a(0x193);case _0x374e8e['MAX_RETRIES_EXCEEDED']:return _0xb018a(0x16a);default:return'mcpStatus.failed';}case _0x670a53[_0xb018a(0x196)]:return _0xb018a(0x247);default:return _0xb018a(0x1c5);}}function cn(_0x555636,_0x30ff6a,_0x2edbe2,_0x478a19=!0x0){var _0x36f082=_0x4a7fdc;const _0x10ed69=pe(_0x555636,_0x30ff6a),_0x183084=_0x2edbe2['t'](_0x10ed69);return _0x478a19?_0x555636===_0x670a53[_0x36f082(0x1dd)]&&_0x30ff6a===_0x374e8e[_0x36f082(0x282)]?_0x183084+'\x20-\x20'+_0x2edbe2['t'](_0x36f082(0x17c)):_0x555636===_0x670a53[_0x36f082(0x1dc)]?''+_0x183084:_0x555636===_0x670a53['DISCONNECTED']||_0x555636===_0x670a53[_0x36f082(0x18e)]?_0x183084+_0x36f082(0x191)+_0x2edbe2['t'](_0x36f082(0x206)):_0x183084:_0x183084;}function an(_0x38ba4c){var _0x31c336=_0x4a7fdc;switch(_0x38ba4c){case _0x670a53[_0x31c336(0x1dc)]:return _0x31c336(0x217);case _0x670a53[_0x31c336(0x278)]:case _0x670a53[_0x31c336(0x196)]:return _0x31c336(0x1ec);case _0x670a53[_0x31c336(0x18e)]:case _0x670a53[_0x31c336(0x1dd)]:return _0x31c336(0x291);default:return _0x31c336(0x23c);}}function un(_0x5a3cd0){var _0x4e7cc7=_0x4a7fdc;const {status$:_0x58416c,error$:_0x3a0b3f,onConfigure:_0x5e5080,showClickable:_0x5dcd6c=!0x0}=_0x5a3cd0,_0x4e3a43=_0x1aaeae(_0x58416c,_0x670a53[_0x4e7cc7(0x1dd)]),_0x528120=_0x1aaeae(_0x3a0b3f,_0x374e8e[_0x4e7cc7(0x1b3)]),_0x4061f9=_0x2ba020(_0x43f6c8),_0x147db2=_0x4e3a43===_0x670a53['CONNECTED'];_0x4e3a43===_0x670a53['CONNECTING']||_0x670a53['RETRYING'];const _0x591848=_0x4061f9['t'](pe(_0x4e3a43,_0x528120)),_0x2a1712=cn(_0x4e3a43,_0x528120,_0x4061f9,_0x5dcd6c),_0x414869=an(_0x4e3a43),_0x43d65a=_0x147db2?_0x30c4d5(ge,{}):_0x30c4d5(fe,{}),_0x1aaff2=_0x1cae1e(()=>{_0x5dcd6c&&_0x5e5080&&_0x5e5080();},[_0x5dcd6c,_0x5e5080]);function _0x54f318(){var _0x3a1acd=_0x4e7cc7;return _0x8e6a35(_0x3a1acd(0x27c),{'className':_0x1ae4d3(_0x3a1acd(0x1ab),_0x5dcd6c&&_0x5e5080&&_0x3a1acd(0x170)),'onClick':_0x5dcd6c&&_0x5e5080?_0x1aaff2:void 0x0,'children':[_0x30c4d5(_0x3a1acd(0x27c),{'className':_0x1ae4d3('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x414869),'children':_0x43d65a}),_0x30c4d5('div',{'className':_0x3a1acd(0x2a5),'children':_0x591848})]});}return _0x30c4d5(_0x326603,{'title':_0x2a1712,'placement':_0x4e7cc7(0x26b),'children':_0x54f318()});}var ln=Object['getOwnPropertyDescriptor'],vn=(_0x4bb1ac,_0x4ce818,_0x4d44eb,_0x4a9497)=>{for(var _0x5dfd95=_0x4a9497>0x1?void 0x0:_0x4a9497?ln(_0x4ce818,_0x4d44eb):_0x4ce818,_0x3b6812=_0x4bb1ac['length']-0x1,_0x1d36c5;_0x3b6812>=0x0;_0x3b6812--)(_0x1d36c5=_0x4bb1ac[_0x3b6812])&&(_0x5dfd95=_0x1d36c5(_0x5dfd95)||_0x5dfd95);return _0x5dfd95;},A=(_0x20ea79,_0x117e44)=>(_0x95dfa0,_0x1eb932)=>_0x117e44(_0x95dfa0,_0x1eb932,_0x20ea79);let O=class extends _0xa01f76{constructor(_0x28b9e9,_0x57b719,_0x465da8,_0x177315){var _0x2e64b4=_0x4a7fdc;super(),this[_0x2e64b4(0x214)]=_0x28b9e9,this[_0x2e64b4(0x17f)]=_0x57b719,this[_0x2e64b4(0x18a)]=_0x465da8,this[_0x2e64b4(0x227)]=_0x177315,this[_0x2e64b4(0x2c5)](),this['_initStatusComponent']();}[_0x4a7fdc(0x2c5)](){var _0x1e9caa=_0x4a7fdc;const _0x360aa6=this[_0x1e9caa(0x227)]['getConfig'](x);_0x360aa6!=null&&_0x360aa6[_0x1e9caa(0x1ae)]&&(this[_0x1e9caa(0x17f)][_0x1e9caa(0x1fd)]=!0x1);}[_0x4a7fdc(0x1e1)](){var _0x520f70=_0x4a7fdc;const _0x52e4ec=this['_configService']['getConfig'](x);(_0x52e4ec==null?void 0x0:_0x52e4ec['showStatus'])!==!0x1&&this['disposeWithMe'](this[_0x520f70(0x18a)][_0x520f70(0x16b)](_0x120766[_0x520f70(0x2b5)],()=>{var _0x52239a=_0x520f70,_0x55d715;return _0x496805(dn({'status$':this[_0x52239a(0x17f)][_0x52239a(0x2ad)],'error$':this[_0x52239a(0x17f)]['connectionError$'],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x55d715=_0x52e4ec==null?void 0x0:_0x52e4ec[_0x52239a(0x1ae)])!=null?_0x55d715:!0x1}),this[_0x52239a(0x214)]);}));}[_0x4a7fdc(0x1c8)](){var _0x1834ac=_0x4a7fdc;this[_0x1834ac(0x214)]['get'](I)[_0x1834ac(0x2bd)]();}};O=vn([A(0x0,_0x1760ac(_0x287fae)),A(0x1,_0x1760ac(_0x68dca4)),A(0x2,_0x3e6fa8),A(0x3,_0x5c70e1)],O);function dn(_0x230e28){const {status$:_0x33464c,error$:_0x43570c,onConfigure:_0x4657f7,showClickable:_0x1fb9ee}=_0x230e28;return function(){return _0x30c4d5(un,{'status$':_0x33464c,'error$':_0x43570c,'onConfigure':_0x4657f7,'showClickable':_0x1fb9ee});};}function fn(_0x341e7c){var _0x3db076=_0x4a7fdc;return{'id':V['id'],'type':_0x2fadd6[_0x3db076(0x234)],'icon':_0x3db076(0x21d),'title':'mcpConfig.title','tooltip':_0x3db076(0x26d)};}const gn={[_0x91f210[_0x4a7fdc(0x17d)]]:{[V['id']]:{'order':0xa,'menuItemFactory':fn}}};function _0x27a9(_0x17986c,_0x3c656f){var _0x21afe8=_0x21af();return _0x27a9=function(_0x27a9c9,_0x36e70a){_0x27a9c9=_0x27a9c9-0x166;var _0x5d8a04=_0x21afe8[_0x27a9c9];return _0x5d8a04;},_0x27a9(_0x17986c,_0x3c656f);}var pn=Object[_0x4a7fdc(0x281)],hn=(_0x198eba,_0x5b9adb,_0x2b20ac,_0x1ec15f)=>{var _0x2db72e=_0x4a7fdc;for(var _0x1ae0ba=_0x1ec15f>0x1?void 0x0:_0x1ec15f?pn(_0x5b9adb,_0x2b20ac):_0x5b9adb,_0x54ec84=_0x198eba[_0x2db72e(0x1ea)]-0x1,_0x464dd2;_0x54ec84>=0x0;_0x54ec84--)(_0x464dd2=_0x198eba[_0x54ec84])&&(_0x1ae0ba=_0x464dd2(_0x1ae0ba)||_0x1ae0ba);return _0x1ae0ba;},te=(_0x25e8a7,_0x2e34c8)=>(_0xd2ad77,_0x3a2436)=>_0x2e34c8(_0xd2ad77,_0x3a2436,_0x25e8a7);let k=class extends _0xa01f76{constructor(_0x417a7d,_0x47dfd4){var _0x23ff31=_0x4a7fdc;super(),this[_0x23ff31(0x2aa)]=_0x417a7d,this['_menuManagerService']=_0x47dfd4,this[_0x23ff31(0x181)](),this[_0x23ff31(0x2cb)]();}['_initializeCommands'](){[V]['forEach'](_0xba80c=>{var _0x33d8d4=_0x27a9;this[_0x33d8d4(0x2a7)](this[_0x33d8d4(0x2aa)][_0x33d8d4(0x201)](_0xba80c));});}[_0x4a7fdc(0x2cb)](){var _0x5e201a=_0x4a7fdc;this[_0x5e201a(0x29c)][_0x5e201a(0x18d)](gn);}};k=hn([te(0x0,_0x4b0bfa),te(0x1,_0x2a8c5e)],k);const On={'mcpStatus':{'disconnected':_0x4a7fdc(0x1fc),'connecting':_0x4a7fdc(0x1cb),'connected':_0x4a7fdc(0x232),'failed':_0x4a7fdc(0x1d0),'retrying':_0x4a7fdc(0x2ce),'unknown':_0x4a7fdc(0x29f),'unauthorized':_0x4a7fdc(0x1ba),'sessionOccupied':_0x4a7fdc(0x2a9),'networkError':_0x4a7fdc(0x20b),'maxRetriesExceeded':_0x4a7fdc(0x21f),'clickToConnect':_0x4a7fdc(0x19d),'clickToConfigure':_0x4a7fdc(0x1ad)},'mcpConfig':{'title':_0x4a7fdc(0x228),'description':_0x4a7fdc(0x224),'apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4a7fdc(0x233),'enableAuthHint':_0x4a7fdc(0x240),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x4a7fdc(0x2c1),'configStep2':_0x4a7fdc(0x230),'configStep3':_0x4a7fdc(0x284),'sessionId':_0x4a7fdc(0x1e3),'sessionIdDescription':_0x4a7fdc(0x169),'authorizationDescription':_0x4a7fdc(0x297),'configParameters':_0x4a7fdc(0x22e),'maxRetries':_0x4a7fdc(0x253),'save':_0x4a7fdc(0x1d3),'saving':_0x4a7fdc(0x2bb),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x4a7fdc(0x24e),'apiApplyInfo':{'title':_0x4a7fdc(0x1b4),'description':_0x4a7fdc(0x222),'univerAiLabel':_0x4a7fdc(0x25e),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4a7fdc(0x184),'apiKeyTooShort':_0x4a7fdc(0x26c),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x4a7fdc(0x264)},'connectionStatus':{'disconnected':_0x4a7fdc(0x167),'connecting':_0x4a7fdc(0x28b),'connected':'Connected','failed':_0x4a7fdc(0x274),'retrying':_0x4a7fdc(0x1c9)},'connectionError':{'unauthorized':_0x4a7fdc(0x203),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4a7fdc(0x293),'maxRetriesExceeded':_0x4a7fdc(0x245)}}},kn={'mcpStatus':{'disconnected':_0x4a7fdc(0x182),'connecting':_0x4a7fdc(0x2c7),'connected':_0x4a7fdc(0x1a3),'failed':_0x4a7fdc(0x255),'retrying':'MCP\x20重连中...','unknown':_0x4a7fdc(0x21b),'unauthorized':_0x4a7fdc(0x265),'sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':'MCP:\x20网络错误','maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x4a7fdc(0x235)},'mcpConfig':{'title':_0x4a7fdc(0x251),'description':_0x4a7fdc(0x25a),'apiKey':_0x4a7fdc(0x1a2),'apiKeyPlaceholder':_0x4a7fdc(0x28e),'apiKeyHint':_0x4a7fdc(0x1a4),'enableAuth':'启用身份验证','enableAuthHint':_0x4a7fdc(0x299),'connectionInfo':'MCP\x20客户端配置','mcpClientConfig':_0x4a7fdc(0x254),'configInstructions':_0x4a7fdc(0x2a6),'configStepTitle':_0x4a7fdc(0x186),'configStep1':_0x4a7fdc(0x20f),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':'重启您的\x20MCP\x20客户端以使配置生效','sessionId':_0x4a7fdc(0x1a8),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x4a7fdc(0x2b1),'configParameters':_0x4a7fdc(0x285),'maxRetries':'最大重试次数','save':_0x4a7fdc(0x27e),'saving':_0x4a7fdc(0x246),'note1':_0x4a7fdc(0x271),'note2':_0x4a7fdc(0x27d),'configSaved':_0x4a7fdc(0x20d),'configError':_0x4a7fdc(0x19f),'apiApplyInfo':{'title':_0x4a7fdc(0x1ca),'description':_0x4a7fdc(0x27a),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':_0x4a7fdc(0x192)},'validation':{'apiKeyRequired':_0x4a7fdc(0x212),'apiKeyTooShort':_0x4a7fdc(0x179),'invalidConfig':_0x4a7fdc(0x24f),'invalidApiKey':_0x4a7fdc(0x1fb)},'connectionStatus':{'disconnected':_0x4a7fdc(0x1f4),'connecting':_0x4a7fdc(0x17b),'connected':'已连接','failed':_0x4a7fdc(0x211),'retrying':_0x4a7fdc(0x20c)},'connectionError':{'unauthorized':_0x4a7fdc(0x25b),'sessionOccupied':_0x4a7fdc(0x237),'networkError':_0x4a7fdc(0x229),'maxRetriesExceeded':_0x4a7fdc(0x199)}}};var mn=Object['defineProperty'],Cn=Object['getOwnPropertyDescriptor'],yn=(_0x43986a,_0x48e1e9,_0x172914)=>_0x48e1e9 in _0x43986a?mn(_0x43986a,_0x48e1e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x172914}):_0x43986a[_0x48e1e9]=_0x172914,_n=(_0x465028,_0x1a360b,_0x1bbd44,_0x23083c)=>{var _0x269845=_0x4a7fdc;for(var _0x1f670a=_0x23083c>0x1?void 0x0:_0x23083c?Cn(_0x1a360b,_0x1bbd44):_0x1a360b,_0x37b9f8=_0x465028[_0x269845(0x1ea)]-0x1,_0x488161;_0x37b9f8>=0x0;_0x37b9f8--)(_0x488161=_0x465028[_0x37b9f8])&&(_0x1f670a=_0x488161(_0x1f670a)||_0x1f670a);return _0x1f670a;},E=(_0x84d8b1,_0x5b42ed)=>(_0x5a5dbe,_0x56d356)=>_0x5b42ed(_0x5a5dbe,_0x56d356,_0x84d8b1),xn=(_0x46ee07,_0x1515cd,_0x2910ed)=>yn(_0x46ee07,_0x1515cd+'',_0x2910ed);let L=class extends _0x2d050a{constructor(_0x2beb4b=re,_0x462ec1,_0x4ac1c1,_0x56c398,_0x57fc54,_0x52a7d3){var _0x4daa47=_0x4a7fdc;super(),this['_config']=_0x2beb4b,this['_injector']=_0x462ec1,this[_0x4daa47(0x227)]=_0x4ac1c1,this[_0x4daa47(0x18a)]=_0x56c398,this['_localStorageService']=_0x57fc54,this['_localeService']=_0x52a7d3;const {..._0x352673}=_0x35d545({},re,this['_config']);this[_0x4daa47(0x227)]['setConfig'](x,_0x352673);}async['onStarting'](){var _0x3e89d2=_0x4a7fdc;const _0x37be38=[[O],[I],[k]];this['_injector'][_0x3e89d2(0x202)](_0x3f0dc1)||_0x37be38['push']([_0x3f0dc1,{'useClass':_0x2af37c}]),_0x37be38['forEach'](_0x4e4a37=>this[_0x3e89d2(0x214)][_0x3e89d2(0x23d)](_0x4e4a37)),this['_injector']['get'](O),this[_0x3e89d2(0x214)][_0x3e89d2(0x267)](I),this[_0x3e89d2(0x214)]['get'](k);}};xn(L,_0x4a7fdc(0x238),_0x4a7fdc(0x1d4)),L=_n([_0x21b4be(_0x36760c),E(0x1,_0x1760ac(_0x287fae)),E(0x2,_0x5c70e1),E(0x3,_0x3e6fa8),E(0x4,_0x311a32),E(0x5,_0x1760ac(_0x43f6c8))],L);export{tn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,un as MCPStatusDisplay,k as MCPUIMenuController,V as OpenMCPConfigPanelCommand,L as UniverMCPUIPlugin,On as enUS,kn as zhCN};
@@ -1 +1 @@
1
- const _0x3e0e3e=_0x51c8;function _0x51c8(_0x35f83c,_0x1e8d14){const _0x38eaec=_0x38ea();return _0x51c8=function(_0x51c8e1,_0x1ae3f3){_0x51c8e1=_0x51c8e1-0x1d7;let _0x7cc45b=_0x38eaec[_0x51c8e1];return _0x7cc45b;},_0x51c8(_0x35f83c,_0x1e8d14);}function _0x38ea(){const _0xdedafd=['7635300yvwhYx','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Retrying...','4536993QpWjwt','Enter\x20your\x20API\x20key','Save\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','930412ebVjjA','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','Click\x20to\x20configure\x20MCP','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','160YIXwph','MCP\x20Disconnected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1797894wdyLYd','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enable\x20authentication\x20for\x20secure\x20connections','118392KzWHHG','MCP\x20Client\x20Configuration','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','MCP:\x20Max\x20Retries\x20Exceeded','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','Configuration\x20saved\x20successfully','3362010sRSULU','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','MCP\x20Configuration','MCP:\x20Invalid\x20API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Saving...','Click\x20to\x20connect\x20MCP','API\x20Key','Configuration\x20Steps:','MCP:\x20Session\x20Occupied','Configuration\x20Parameters:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','584507QtbnMk','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Enable\x20Authentication','Connection\x20Failed','Failed\x20to\x20save\x20configuration','MCP\x20Connected','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file'];_0x38ea=function(){return _0xdedafd;};return _0x38ea();}(function(_0x2cb345,_0x40a201){const _0x153e81=_0x51c8,_0x397340=_0x2cb345();while(!![]){try{const _0x18de5e=-parseInt(_0x153e81(0x1ed))/0x1+parseInt(_0x153e81(0x1f6))/0x2+parseInt(_0x153e81(0x1e9))/0x3+parseInt(_0x153e81(0x1fa))/0x4+parseInt(_0x153e81(0x1e6))/0x5+-parseInt(_0x153e81(0x201))/0x6+-parseInt(_0x153e81(0x1df))/0x7*(parseInt(_0x153e81(0x1f2))/0x8);if(_0x18de5e===_0x40a201)break;else _0x397340['push'](_0x397340['shift']());}catch(_0x3e15b2){_0x397340['push'](_0x397340['shift']());}}}(_0x38ea,0xc5101));const e={'mcpStatus':{'disconnected':_0x3e0e3e(0x1f3),'connecting':'MCP\x20Connecting...','connected':_0x3e0e3e(0x1e4),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','missingApiKey':'MCP:\x20API\x20Key\x20Missing','invalidApiKey':_0x3e0e3e(0x205),'sessionOccupied':_0x3e0e3e(0x1db),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3e0e3e(0x1fd),'clickToConnect':_0x3e0e3e(0x1d8),'clickToConfigure':_0x3e0e3e(0x1f0)},'mcpConfig':{'title':_0x3e0e3e(0x204),'description':_0x3e0e3e(0x1ee),'apiKey':_0x3e0e3e(0x1d9),'apiKeyPlaceholder':_0x3e0e3e(0x1ea),'apiKeyHint':_0x3e0e3e(0x1e7),'enableAuth':_0x3e0e3e(0x1e1),'enableAuthHint':_0x3e0e3e(0x1f9),'connectionInfo':_0x3e0e3e(0x1fb),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x3e0e3e(0x1f7),'configStepTitle':_0x3e0e3e(0x1da),'configStep1':_0x3e0e3e(0x1ec),'configStep2':_0x3e0e3e(0x1e5),'configStep3':_0x3e0e3e(0x1fe),'sessionId':_0x3e0e3e(0x1ff),'sessionIdDescription':_0x3e0e3e(0x1f8),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x3e0e3e(0x1dc),'maxRetries':'Max\x20Retries','save':_0x3e0e3e(0x1eb),'saving':_0x3e0e3e(0x1d7),'note1':_0x3e0e3e(0x202),'note2':_0x3e0e3e(0x1dd),'configSaved':_0x3e0e3e(0x200),'configError':_0x3e0e3e(0x1e3),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3e0e3e(0x1f4),'univerAiLabel':_0x3e0e3e(0x1de),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x3e0e3e(0x1f1),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x3e0e3e(0x206)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3e0e3e(0x203),'connected':_0x3e0e3e(0x1ef),'failed':_0x3e0e3e(0x1e2),'retrying':_0x3e0e3e(0x1e8)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x3e0e3e(0x1fc),'sessionOccupied':_0x3e0e3e(0x1e0),'networkError':_0x3e0e3e(0x1f5),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;export{n as default};
1
+ const _0x489517=_0x3d9c;(function(_0x145e48,_0x696e07){const _0x2809b5=_0x3d9c,_0x259421=_0x145e48();while(!![]){try{const _0x46ed91=parseInt(_0x2809b5(0x65))/0x1+-parseInt(_0x2809b5(0x99))/0x2*(-parseInt(_0x2809b5(0x6e))/0x3)+-parseInt(_0x2809b5(0x81))/0x4*(-parseInt(_0x2809b5(0x7a))/0x5)+-parseInt(_0x2809b5(0x96))/0x6*(parseInt(_0x2809b5(0x78))/0x7)+parseInt(_0x2809b5(0x73))/0x8*(parseInt(_0x2809b5(0x93))/0x9)+-parseInt(_0x2809b5(0x69))/0xa*(-parseInt(_0x2809b5(0x8c))/0xb)+parseInt(_0x2809b5(0x83))/0xc*(-parseInt(_0x2809b5(0x7f))/0xd);if(_0x46ed91===_0x696e07)break;else _0x259421['push'](_0x259421['shift']());}catch(_0x2a89fb){_0x259421['push'](_0x259421['shift']());}}}(_0x263d,0x5a04e));function _0x263d(){const _0x3e65b3=['Invalid\x20configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connection\x20Failed','Retrying...','MCP\x20Connecting...','MCP:\x20Network\x20Error','3470137CVicif','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Connected','9vNWEpb','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','1001730gbrvtg','Session\x20ID','MCP\x20Configuration','374470qFjmZv','Copy\x20the\x20JSON\x20configuration\x20below','What\x20is\x20API\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.','165272jEVxsE','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Connecting...','Failed\x20to\x20save\x20configuration','10QZweVM','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','API\x20key\x20is\x20required','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Retrying...','6bhNcCQ','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20with\x20Bearer\x20prefix.','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20saved\x20successfully','4427248QjUEAM','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','7wjedQr','Max\x20Retries','2285065tnWqHR','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Connection\x20Failed','Enable\x20Authentication','Saving...','65ZNasZS','Click\x20to\x20configure\x20MCP','4Gdoztq','Save\x20Configuration','3191892QxAQfW'];_0x263d=function(){return _0x3e65b3;};return _0x263d();}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x489517(0x8a),'connected':_0x489517(0x92),'failed':_0x489517(0x88),'retrying':_0x489517(0x6d),'unknown':_0x489517(0x77),'unauthorized':_0x489517(0x75),'sessionOccupied':_0x489517(0x74),'networkError':_0x489517(0x8b),'maxRetriesExceeded':_0x489517(0x8d),'clickToConnect':_0x489517(0x95),'clickToConfigure':_0x489517(0x80)},'mcpConfig':{'title':_0x489517(0x98),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x489517(0x94),'enableAuth':_0x489517(0x7d),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x489517(0x76),'mcpClientConfig':_0x489517(0x76),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x489517(0x8e),'configStep1':_0x489517(0x9a),'configStep2':_0x489517(0x85),'configStep3':_0x489517(0x7b),'sessionId':_0x489517(0x97),'sessionIdDescription':_0x489517(0x6a),'authorizationDescription':_0x489517(0x70),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x489517(0x79),'save':_0x489517(0x82),'saving':_0x489517(0x7e),'note1':_0x489517(0x66),'note2':_0x489517(0x8f),'configSaved':_0x489517(0x72),'configError':_0x489517(0x68),'apiApplyInfo':{'title':_0x489517(0x9b),'description':_0x489517(0x64),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x489517(0x91)},'validation':{'apiKeyRequired':_0x489517(0x6b),'apiKeyTooShort':_0x489517(0x6c),'invalidConfig':_0x489517(0x84),'invalidApiKey':_0x489517(0x6f)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x489517(0x67),'connected':'Connected','failed':_0x489517(0x7c),'retrying':_0x489517(0x89)},'connectionError':{'unauthorized':_0x489517(0x71),'sessionOccupied':_0x489517(0x86),'networkError':_0x489517(0x87),'maxRetriesExceeded':_0x489517(0x90)}}},n=e;function _0x3d9c(_0x53a3a4,_0x5bf2ad){const _0x263d55=_0x263d();return _0x3d9c=function(_0x3d9c9a,_0x43fb40){_0x3d9c9a=_0x3d9c9a-0x64;let _0x214276=_0x263d55[_0x3d9c9a];return _0x214276;},_0x3d9c(_0x53a3a4,_0x5bf2ad);}export{n as default};
@@ -1 +1 @@
1
- function _0xc1fd(){const _0xabad0e=['Univer\x20AI\x20Console','MCP:\x20Session\x20Occupied','MCP\x20Unknown\x20Status','Copy\x20the\x20JSON\x20configuration\x20below','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','Invalid\x20configuration','Disconnected','1902100YEsUJK','Click\x20to\x20configure\x20MCP','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20authentication\x20for\x20secure\x20connections','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','43432KNhFBL','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP:\x20Network\x20Error','81BASgSF','30mUlUgU','MCP\x20Disconnected','Enter\x20your\x20API\x20key','2XixiSq','Connection\x20Failed','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20saved\x20successfully','6759yOcsXA','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','229975ASuhxy','MCP:\x20Invalid\x20API\x20Key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','API\x20Key','MCP:\x20API\x20Key\x20Missing','API\x20key\x20is\x20required','43705MrxARY','Connecting...','MCP\x20Retrying...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Configuration','632758fFMJNk','Save\x20Configuration','Connected','Configuration\x20Parameters:','MCP\x20Connecting...','What\x20is\x20API\x20Key?','4nSabxN','3209283VJBTjG'];_0xc1fd=function(){return _0xabad0e;};return _0xc1fd();}const _0x4cdbea=_0x2bc7;(function(_0x156de0,_0x2ae000){const _0x57d8a4=_0x2bc7,_0x2a6d11=_0x156de0();while(!![]){try{const _0x5c0987=parseInt(_0x57d8a4(0x1d5))/0x1*(parseInt(_0x57d8a4(0x1c4))/0x2)+parseInt(_0x57d8a4(0x1c9))/0x3*(parseInt(_0x57d8a4(0x1e0))/0x4)+parseInt(_0x57d8a4(0x1cc))/0x5*(-parseInt(_0x57d8a4(0x1c1))/0x6)+-parseInt(_0x57d8a4(0x1da))/0x7+parseInt(_0x57d8a4(0x1bb))/0x8*(-parseInt(_0x57d8a4(0x1c0))/0x9)+parseInt(_0x57d8a4(0x1b4))/0xa+parseInt(_0x57d8a4(0x1e1))/0xb;if(_0x5c0987===_0x2ae000)break;else _0x2a6d11['push'](_0x2a6d11['shift']());}catch(_0x514bf3){_0x2a6d11['push'](_0x2a6d11['shift']());}}}(_0xc1fd,0x26be3));const e={'mcpStatus':{'disconnected':_0x4cdbea(0x1c2),'connecting':_0x4cdbea(0x1de),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x4cdbea(0x1d7),'unknown':_0x4cdbea(0x1ae),'missingApiKey':_0x4cdbea(0x1d3),'invalidApiKey':_0x4cdbea(0x1cd),'sessionOccupied':_0x4cdbea(0x1ad),'networkError':_0x4cdbea(0x1bf),'maxRetriesExceeded':_0x4cdbea(0x1bd),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4cdbea(0x1b5)},'mcpConfig':{'title':_0x4cdbea(0x1d9),'description':_0x4cdbea(0x1bc),'apiKey':_0x4cdbea(0x1d2),'apiKeyPlaceholder':_0x4cdbea(0x1c3),'apiKeyHint':_0x4cdbea(0x1c7),'enableAuth':_0x4cdbea(0x1d0),'enableAuthHint':_0x4cdbea(0x1b9),'connectionInfo':_0x4cdbea(0x1c6),'mcpClientConfig':_0x4cdbea(0x1c6),'configInstructions':_0x4cdbea(0x1ce),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4cdbea(0x1af),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4cdbea(0x1b0),'sessionId':_0x4cdbea(0x1cb),'sessionIdDescription':_0x4cdbea(0x1ba),'authorizationDescription':_0x4cdbea(0x1b6),'configParameters':_0x4cdbea(0x1dd),'maxRetries':_0x4cdbea(0x1b1),'save':_0x4cdbea(0x1db),'saving':'Saving...','note1':_0x4cdbea(0x1be),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x4cdbea(0x1c8),'configError':_0x4cdbea(0x1cf),'apiApplyInfo':{'title':_0x4cdbea(0x1df),'description':_0x4cdbea(0x1b8),'univerAiLabel':_0x4cdbea(0x1ac),'getStarted':_0x4cdbea(0x1d8)},'validation':{'apiKeyRequired':_0x4cdbea(0x1d4),'apiKeyTooShort':_0x4cdbea(0x1b7),'invalidConfig':_0x4cdbea(0x1b2),'invalidApiKey':_0x4cdbea(0x1ca)},'connectionStatus':{'disconnected':_0x4cdbea(0x1b3),'connecting':_0x4cdbea(0x1d6),'connected':_0x4cdbea(0x1dc),'failed':_0x4cdbea(0x1c5),'retrying':'Retrying...'},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':_0x4cdbea(0x1d1),'sessionOccupied':'Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};function _0x2bc7(_0x5ae22a,_0x3b56b1){const _0xc1fdfb=_0xc1fd();return _0x2bc7=function(_0x2bc7aa,_0x54b0b9){_0x2bc7aa=_0x2bc7aa-0x1ac;let _0x156029=_0xc1fdfb[_0x2bc7aa];return _0x156029;},_0x2bc7(_0x5ae22a,_0x3b56b1);}export{e as default};
1
+ const _0x694a50=_0x2fbd;(function(_0x566838,_0xfae1f9){const _0x403b76=_0x2fbd,_0xeea62e=_0x566838();while(!![]){try{const _0x3a95c3=-parseInt(_0x403b76(0x160))/0x1+parseInt(_0x403b76(0x165))/0x2*(parseInt(_0x403b76(0x15b))/0x3)+parseInt(_0x403b76(0x155))/0x4+-parseInt(_0x403b76(0x152))/0x5*(parseInt(_0x403b76(0x137))/0x6)+parseInt(_0x403b76(0x15a))/0x7*(parseInt(_0x403b76(0x163))/0x8)+-parseInt(_0x403b76(0x132))/0x9*(-parseInt(_0x403b76(0x139))/0xa)+-parseInt(_0x403b76(0x14e))/0xb;if(_0x3a95c3===_0xfae1f9)break;else _0xeea62e['push'](_0xeea62e['shift']());}catch(_0x5c0807){_0xeea62e['push'](_0xeea62e['shift']());}}}(_0x2f2b,0x47f36));function _0x2f2b(){const _0x1e3aff=['Failed\x20to\x20save\x20configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','6XJDldJ','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','30ZBCzUL','MCP\x20Disconnected','Enter\x20your\x20API\x20key','API\x20Key','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Configuration\x20Steps:','MCP\x20Unknown\x20Status','Saving...','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','Connected','Configuration\x20saved\x20successfully','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Max\x20Retries\x20Exceeded','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connection\x20Failed','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Retrying...','6899563xmjVlR','MCP\x20Configuration','MCP:\x20Unauthorized','Click\x20to\x20configure\x20MCP','1631710IWliKQ','Invalid\x20configuration','What\x20is\x20API\x20Key?','2077772JTDuRM','MCP\x20Client\x20Configuration','Max\x20Retries','Copy\x20the\x20JSON\x20configuration\x20below','Enable\x20authentication\x20for\x20secure\x20connections','7VyKdSy','4266kuJNrm','MCP\x20Connecting...','MCP\x20Connection\x20Failed','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','248676flvhcf','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','2928032BPEWZa','Save\x20Configuration','656GtcLSZ','Enable\x20Authentication','MCP:\x20Session\x20ID\x20Occupied','Connecting...','435294PnXHHu','Click\x20to\x20connect\x20MCP','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:'];_0x2f2b=function(){return _0x1e3aff;};return _0x2f2b();}const e={'mcpStatus':{'disconnected':_0x694a50(0x13a),'connecting':_0x694a50(0x15c),'connected':'MCP\x20Connected','failed':_0x694a50(0x15d),'retrying':_0x694a50(0x14d),'unknown':_0x694a50(0x140),'unauthorized':_0x694a50(0x150),'sessionOccupied':_0x694a50(0x167),'networkError':_0x694a50(0x162),'maxRetriesExceeded':_0x694a50(0x147),'clickToConnect':_0x694a50(0x133),'clickToConfigure':_0x694a50(0x151)},'mcpConfig':{'title':_0x694a50(0x14f),'description':_0x694a50(0x146),'apiKey':_0x694a50(0x13c),'apiKeyPlaceholder':_0x694a50(0x13b),'apiKeyHint':_0x694a50(0x13e),'enableAuth':_0x694a50(0x166),'enableAuthHint':_0x694a50(0x159),'connectionInfo':_0x694a50(0x156),'mcpClientConfig':_0x694a50(0x156),'configInstructions':_0x694a50(0x134),'configStepTitle':_0x694a50(0x13f),'configStep1':_0x694a50(0x158),'configStep2':_0x694a50(0x138),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x694a50(0x161),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x694a50(0x157),'save':_0x694a50(0x164),'saving':_0x694a50(0x141),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x694a50(0x145),'configError':_0x694a50(0x135),'apiApplyInfo':{'title':_0x694a50(0x154),'description':_0x694a50(0x142),'univerAiLabel':_0x694a50(0x15e),'getStarted':_0x694a50(0x14c)},'validation':{'apiKeyRequired':_0x694a50(0x143),'apiKeyTooShort':_0x694a50(0x13d),'invalidConfig':_0x694a50(0x153),'invalidApiKey':_0x694a50(0x14a)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x694a50(0x168),'connected':_0x694a50(0x144),'failed':_0x694a50(0x149),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x694a50(0x14b),'sessionOccupied':_0x694a50(0x136),'networkError':_0x694a50(0x15f),'maxRetriesExceeded':_0x694a50(0x148)}}};function _0x2fbd(_0x3ee6d5,_0x855be){const _0x2f2b8b=_0x2f2b();return _0x2fbd=function(_0x2fbd2c,_0x42644b){_0x2fbd2c=_0x2fbd2c-0x132;let _0x34dcdb=_0x2f2b8b[_0x2fbd2c];return _0x34dcdb;},_0x2fbd(_0x3ee6d5,_0x855be);}export{e as default};
@@ -1 +1 @@
1
- function _0xfa47(_0x4ec70e,_0x51b474){const _0x14c9d3=_0x14c9();return _0xfa47=function(_0xfa4733,_0x30fbf9){_0xfa4733=_0xfa4733-0x143;let _0x4e3aff=_0x14c9d3[_0xfa4733];return _0x4e3aff;},_0xfa47(_0x4ec70e,_0x51b474);}const _0x440491=_0xfa47;(function(_0x344965,_0x549718){const _0x352d9d=_0xfa47,_0x15cca7=_0x344965();while(!![]){try{const _0x3c448d=parseInt(_0x352d9d(0x143))/0x1*(parseInt(_0x352d9d(0x144))/0x2)+parseInt(_0x352d9d(0x176))/0x3*(parseInt(_0x352d9d(0x168))/0x4)+-parseInt(_0x352d9d(0x15c))/0x5+-parseInt(_0x352d9d(0x154))/0x6*(-parseInt(_0x352d9d(0x14f))/0x7)+parseInt(_0x352d9d(0x169))/0x8+-parseInt(_0x352d9d(0x14c))/0x9+-parseInt(_0x352d9d(0x145))/0xa;if(_0x3c448d===_0x549718)break;else _0x15cca7['push'](_0x15cca7['shift']());}catch(_0x597383){_0x15cca7['push'](_0x15cca7['shift']());}}}(_0x14c9,0xb12d4));const e={'mcpStatus':{'disconnected':_0x440491(0x16c),'connecting':_0x440491(0x172),'connected':_0x440491(0x149),'failed':_0x440491(0x166),'retrying':_0x440491(0x14a),'unknown':_0x440491(0x162),'missingApiKey':_0x440491(0x15a),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0x440491(0x152),'networkError':_0x440491(0x164),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x440491(0x150),'clickToConfigure':_0x440491(0x173)},'mcpConfig':{'title':_0x440491(0x174),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x440491(0x15e),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x440491(0x153),'enableAuth':_0x440491(0x148),'enableAuthHint':_0x440491(0x16f),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x440491(0x163),'configInstructions':_0x440491(0x15b),'configStepTitle':_0x440491(0x178),'configStep1':_0x440491(0x151),'configStep2':_0x440491(0x160),'configStep3':_0x440491(0x147),'sessionId':_0x440491(0x16a),'sessionIdDescription':_0x440491(0x177),'authorizationDescription':_0x440491(0x146),'configParameters':_0x440491(0x170),'maxRetries':_0x440491(0x156),'save':'Save\x20Configuration','saving':_0x440491(0x161),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x440491(0x175),'configSaved':_0x440491(0x16b),'configError':_0x440491(0x14e),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x440491(0x14b),'univerAiLabel':_0x440491(0x14d),'getStarted':_0x440491(0x159)},'validation':{'apiKeyRequired':_0x440491(0x15d),'apiKeyTooShort':_0x440491(0x171),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x440491(0x165)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x440491(0x16e),'failed':_0x440491(0x158),'retrying':_0x440491(0x15f)},'connectionError':{'missingApiKey':_0x440491(0x155),'invalidApiKey':_0x440491(0x157),'sessionOccupied':_0x440491(0x167),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x440491(0x16d)}}},n=e;function _0x14c9(){const _0x2aeb9e=['Univer\x20AI\x20Console','Failed\x20to\x20save\x20configuration','98861RsKnpq','Click\x20to\x20connect\x20MCP','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20Occupied','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','90QLGKxA','API\x20key\x20is\x20required\x20to\x20connect','Max\x20Retries','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20API\x20Key\x20Missing','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','1882170wwpVFs','API\x20key\x20is\x20required','API\x20Key','Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Saving...','MCP\x20Unknown\x20Status','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Connection\x20Failed','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','348NkylMG','10488992jZkZkq','Session\x20ID','Configuration\x20saved\x20successfully','MCP\x20Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connected','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connecting...','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','32646AKbxtU','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','1KDMJZx','4170VspRTH','3819730XBjJRY','API\x20key\x20with\x20Bearer\x20prefix.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20Authentication','MCP\x20Connected','MCP\x20Retrying...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','8888985yPgCSt'];_0x14c9=function(){return _0x2aeb9e;};return _0x14c9();}export{n as default};
1
+ function _0x4d3f(){const _0x3c285d=['MCP\x20Connecting...','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Network\x20Error','Connected','MCP\x20Disconnected','Max\x20Retries','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Connecting...','Enable\x20authentication\x20for\x20secure\x20connections','429kktOLi','928590jKdkuK','665124bGsWiC','1863387vzmYKf','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','187xQzNzw','MCP\x20Client\x20Configuration','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20Key','API\x20key\x20is\x20required','MCP\x20Unknown\x20Status','Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','1355750MTEluO','312YXEeLB','Save\x20Configuration','Invalid\x20configuration','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Session\x20ID\x20Occupied','14084FXHPvj','476ddehgN','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Configuration','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','3119PWSmbA','Retrying...','MCP\x20Connection\x20Failed','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','103544zHncSt','MCP:\x20Unauthorized','MCP\x20Retrying...','Configuration\x20Steps:','Session\x20ID'];_0x4d3f=function(){return _0x3c285d;};return _0x4d3f();}function _0x5219(_0x14ed82,_0x4df7a1){const _0x4d3fd0=_0x4d3f();return _0x5219=function(_0x52195a,_0xaef672){_0x52195a=_0x52195a-0x11a;let _0x4c592f=_0x4d3fd0[_0x52195a];return _0x4c592f;},_0x5219(_0x14ed82,_0x4df7a1);}const _0x15c8b9=_0x5219;(function(_0x513e3b,_0x2fdbd6){const _0x32a0b6=_0x5219,_0x12ad0c=_0x513e3b();while(!![]){try{const _0x4f88a6=parseInt(_0x32a0b6(0x12f))/0x1*(-parseInt(_0x32a0b6(0x128))/0x2)+-parseInt(_0x32a0b6(0x141))/0x3*(-parseInt(_0x32a0b6(0x127))/0x4)+-parseInt(_0x32a0b6(0x11e))/0x5+parseInt(_0x32a0b6(0x143))/0x6+-parseInt(_0x32a0b6(0x133))/0x7*(parseInt(_0x32a0b6(0x11f))/0x8)+-parseInt(_0x32a0b6(0x144))/0x9+parseInt(_0x32a0b6(0x142))/0xa*(parseInt(_0x32a0b6(0x146))/0xb);if(_0x4f88a6===_0x2fdbd6)break;else _0x12ad0c['push'](_0x12ad0c['shift']());}catch(_0x3a8716){_0x12ad0c['push'](_0x12ad0c['shift']());}}}(_0x4d3f,0x60925));const e={'mcpStatus':{'disconnected':_0x15c8b9(0x13c),'connecting':_0x15c8b9(0x138),'connected':'MCP\x20Connected','failed':_0x15c8b9(0x131),'retrying':_0x15c8b9(0x135),'unknown':_0x15c8b9(0x11b),'unauthorized':_0x15c8b9(0x134),'sessionOccupied':_0x15c8b9(0x126),'networkError':_0x15c8b9(0x13a),'maxRetriesExceeded':_0x15c8b9(0x139),'clickToConnect':_0x15c8b9(0x12d),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x15c8b9(0x12c),'description':_0x15c8b9(0x148),'apiKey':_0x15c8b9(0x149),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x15c8b9(0x140),'connectionInfo':_0x15c8b9(0x147),'mcpClientConfig':_0x15c8b9(0x147),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x15c8b9(0x136),'configStep1':_0x15c8b9(0x12b),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x15c8b9(0x124),'sessionId':_0x15c8b9(0x137),'sessionIdDescription':_0x15c8b9(0x125),'authorizationDescription':_0x15c8b9(0x11d),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x15c8b9(0x13d),'save':_0x15c8b9(0x120),'saving':'Saving...','note1':_0x15c8b9(0x123),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x15c8b9(0x12a),'description':_0x15c8b9(0x12e),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x15c8b9(0x11a),'apiKeyTooShort':_0x15c8b9(0x129),'invalidConfig':_0x15c8b9(0x121),'invalidApiKey':_0x15c8b9(0x122)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x15c8b9(0x13f),'connected':_0x15c8b9(0x13b),'failed':_0x15c8b9(0x11c),'retrying':_0x15c8b9(0x130)},'connectionError':{'unauthorized':_0x15c8b9(0x145),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x15c8b9(0x132),'maxRetriesExceeded':_0x15c8b9(0x13e)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- const _0x4fae63=_0x38b1;function _0x38b1(_0x3da3db,_0x38cfdc){const _0xf7f50d=_0xf7f5();return _0x38b1=function(_0x38b16e,_0x13fd26){_0x38b16e=_0x38b16e-0x118;let _0x334bff=_0xf7f50d[_0x38b16e];return _0x334bff;},_0x38b1(_0x3da3db,_0x38cfdc);}function _0xf7f5(){const _0x29424f=['Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20configure\x20MCP','1162emEWFp','MCP:\x20Max\x20Retries\x20Exceeded','14pOoiiO','MCP\x20Connecting...','Copy\x20the\x20JSON\x20configuration\x20below','MCP\x20Connection\x20Failed','MCP:\x20Network\x20Error','API\x20key\x20is\x20required','1413800ENrczS','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Client\x20Configuration','MCP\x20Unknown\x20Status','Configuration\x20saved\x20successfully','Session\x20ID','API\x20key\x20with\x20Bearer\x20prefix.','What\x20is\x20API\x20Key?','Failed\x20to\x20save\x20configuration','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','Configuration\x20Parameters:','Univer\x20AI\x20Console','7630580PjxFWi','6816681VclvDp','API\x20Key','Retrying...','842IWlsLD','7656MDLWkX','Connected','MCP\x20Configuration','279PvnSkt','MCP\x20Disconnected','Save\x20Configuration','Enter\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Connecting...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','12204UruSnO','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20Authentication','Saving...','Invalid\x20configuration','9526JVLndk','Connection\x20Failed','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20API\x20Key\x20Missing','455gvgmot','8418iliHtj'];_0xf7f5=function(){return _0x29424f;};return _0xf7f5();}(function(_0xe70b69,_0x36d7cc){const _0x48e972=_0x38b1,_0x5c3366=_0xe70b69();while(!![]){try{const _0xa2ba58=-parseInt(_0x48e972(0x149))/0x1*(-parseInt(_0x48e972(0x131))/0x2)+-parseInt(_0x48e972(0x119))/0x3*(-parseInt(_0x48e972(0x123))/0x4)+-parseInt(_0x48e972(0x12c))/0x5*(-parseInt(_0x48e972(0x12d))/0x6)+-parseInt(_0x48e972(0x133))/0x7*(-parseInt(_0x48e972(0x139))/0x8)+parseInt(_0x48e972(0x146))/0x9+-parseInt(_0x48e972(0x145))/0xa+parseInt(_0x48e972(0x128))/0xb*(-parseInt(_0x48e972(0x14a))/0xc);if(_0xa2ba58===_0x36d7cc)break;else _0x5c3366['push'](_0x5c3366['shift']());}catch(_0x4f3bcf){_0x5c3366['push'](_0x5c3366['shift']());}}}(_0xf7f5,0xa9e67));const e={'mcpStatus':{'disconnected':_0x4fae63(0x11a),'connecting':_0x4fae63(0x134),'connected':'MCP\x20Connected','failed':_0x4fae63(0x136),'retrying':'MCP\x20Retrying...','unknown':_0x4fae63(0x13c),'missingApiKey':_0x4fae63(0x12b),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':'MCP:\x20Session\x20Occupied','networkError':_0x4fae63(0x137),'maxRetriesExceeded':_0x4fae63(0x132),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x4fae63(0x130)},'mcpConfig':{'title':_0x4fae63(0x118),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x4fae63(0x147),'apiKeyPlaceholder':_0x4fae63(0x11c),'apiKeyHint':_0x4fae63(0x11f),'enableAuth':_0x4fae63(0x125),'enableAuthHint':_0x4fae63(0x13a),'connectionInfo':_0x4fae63(0x13b),'mcpClientConfig':_0x4fae63(0x13b),'configInstructions':_0x4fae63(0x12f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4fae63(0x135),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x4fae63(0x12a),'sessionId':_0x4fae63(0x13e),'sessionIdDescription':_0x4fae63(0x122),'authorizationDescription':_0x4fae63(0x13f),'configParameters':_0x4fae63(0x143),'maxRetries':_0x4fae63(0x12e),'save':_0x4fae63(0x11b),'saving':_0x4fae63(0x126),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4fae63(0x11d),'configSaved':_0x4fae63(0x13d),'configError':_0x4fae63(0x141),'apiApplyInfo':{'title':_0x4fae63(0x140),'description':_0x4fae63(0x124),'univerAiLabel':_0x4fae63(0x144),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x4fae63(0x138),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x4fae63(0x127),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x4fae63(0x120),'connecting':_0x4fae63(0x11e),'connected':_0x4fae63(0x14b),'failed':_0x4fae63(0x129),'retrying':_0x4fae63(0x148)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x4fae63(0x142),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4fae63(0x121)}}},n=e;export{n as default};
1
+ const _0x5c1146=_0x40ae;function _0x2378(){const _0x43f91a=['6714183oyHLEt','Enter\x20your\x20API\x20key','185527ngqxNW','2rXwwNL','Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Max\x20Retries','4007085VQfveS','9047136LUObWT','Configuration\x20Steps:','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Configuration','2582307AsXokr','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20saved\x20successfully','Disconnected','What\x20is\x20API\x20Key?','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Invalid\x20configuration','API\x20key\x20is\x20required','200mDlMuW','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','MCP\x20Client\x20Configuration','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Save\x20Configuration','MCP\x20Disconnected','Saving...','API\x20Key','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Session\x20ID','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','1226187hWQJOp','Retrying...','1758816DBAEnR','MCP\x20Connecting...','4WhNcEH','Configuration\x20Parameters:','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20connect\x20MCP','Enable\x20Authentication','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20configure\x20MCP','Connecting...'];_0x2378=function(){return _0x43f91a;};return _0x2378();}(function(_0x430257,_0x1a6237){const _0x456ab5=_0x40ae,_0x4d9e17=_0x430257();while(!![]){try{const _0x1b9f96=-parseInt(_0x456ab5(0x18c))/0x1*(parseInt(_0x456ab5(0x18d))/0x2)+-parseInt(_0x456ab5(0x165))/0x3+parseInt(_0x456ab5(0x180))/0x4*(-parseInt(_0x456ab5(0x160))/0x5)+-parseInt(_0x456ab5(0x17e))/0x6+-parseInt(_0x456ab5(0x18a))/0x7+parseInt(_0x456ab5(0x161))/0x8+-parseInt(_0x456ab5(0x17c))/0x9*(-parseInt(_0x456ab5(0x16d))/0xa);if(_0x1b9f96===_0x1a6237)break;else _0x4d9e17['push'](_0x4d9e17['shift']());}catch(_0x35257f){_0x4d9e17['push'](_0x4d9e17['shift']());}}}(_0x2378,0xb8816));function _0x40ae(_0x4850a0,_0x3251a9){const _0x23782a=_0x2378();return _0x40ae=function(_0x40aed2,_0x4bebdf){_0x40aed2=_0x40aed2-0x15f;let _0x57b55a=_0x23782a[_0x40aed2];return _0x57b55a;},_0x40ae(_0x4850a0,_0x3251a9);}const e={'mcpStatus':{'disconnected':_0x5c1146(0x174),'connecting':_0x5c1146(0x17f),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':_0x5c1146(0x186),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5c1146(0x16f),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x5c1146(0x16e),'clickToConnect':_0x5c1146(0x183),'clickToConfigure':_0x5c1146(0x188)},'mcpConfig':{'title':_0x5c1146(0x164),'description':_0x5c1146(0x182),'apiKey':_0x5c1146(0x176),'apiKeyPlaceholder':_0x5c1146(0x18b),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5c1146(0x184),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5c1146(0x170),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5c1146(0x17a),'configStepTitle':_0x5c1146(0x162),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x5c1146(0x18f),'configStep3':_0x5c1146(0x179),'sessionId':_0x5c1146(0x178),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5c1146(0x166),'configParameters':_0x5c1146(0x181),'maxRetries':_0x5c1146(0x15f),'save':_0x5c1146(0x173),'saving':_0x5c1146(0x175),'note1':_0x5c1146(0x185),'note2':_0x5c1146(0x172),'configSaved':_0x5c1146(0x167),'configError':_0x5c1146(0x171),'apiApplyInfo':{'title':_0x5c1146(0x169),'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':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5c1146(0x16c),'apiKeyTooShort':_0x5c1146(0x163),'invalidConfig':_0x5c1146(0x16b),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5c1146(0x168),'connecting':_0x5c1146(0x189),'connected':'Connected','failed':_0x5c1146(0x18e),'retrying':_0x5c1146(0x17d)},'connectionError':{'unauthorized':_0x5c1146(0x177),'sessionOccupied':_0x5c1146(0x16a),'networkError':_0x5c1146(0x187),'maxRetriesExceeded':_0x5c1146(0x17b)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- function _0x5f2c(){const _0x455f85=['Saving...','Configuration\x20saved\x20successfully','Failed\x20to\x20save\x20configuration','Invalid\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','1776CHwKRX','MCP:\x20Session\x20Occupied','Save\x20Configuration','40653rzHori','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2770HWRPSj','What\x20is\x20API\x20Key?','MCP\x20Unknown\x20Status','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','5354AVOlnk','Connecting...','Configuration\x20Parameters:','33363bPQuCB','MCP\x20Connection\x20Failed','Retrying...','15004044ybxSEO','170QqHnIJ','102yCdkQJ','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Get\x20your\x20API\x20key\x20in\x20seconds','339NcCCtq','Enable\x20authentication\x20for\x20secure\x20connections','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Disconnected','MCP\x20Connecting...','Connection\x20Failed','API\x20key\x20is\x20required','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','MCP:\x20API\x20Key\x20Missing','Session\x20ID','Click\x20to\x20configure\x20MCP','API\x20Key','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.','Enter\x20your\x20API\x20key','65401qlMzQf','47536YcvQQY','API\x20key\x20is\x20required\x20to\x20connect','Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Max\x20Retries','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','91561pTipan'];_0x5f2c=function(){return _0x455f85;};return _0x5f2c();}const _0xc7c779=_0x4e36;(function(_0x5f5052,_0x1348f1){const _0x4158a9=_0x4e36,_0x15c8b8=_0x5f5052();while(!![]){try{const _0x4b3532=parseInt(_0x4158a9(0x1a4))/0x1+parseInt(_0x4158a9(0x1b3))/0x2*(-parseInt(_0x4158a9(0x1be))/0x3)+parseInt(_0x4158a9(0x19e))/0x4*(-parseInt(_0x4158a9(0x1ba))/0x5)+parseInt(_0x4158a9(0x1bb))/0x6*(-parseInt(_0x4158a9(0x19d))/0x7)+parseInt(_0x4158a9(0x1aa))/0x8*(parseInt(_0x4158a9(0x1ad))/0x9)+parseInt(_0x4158a9(0x1af))/0xa*(-parseInt(_0x4158a9(0x1b6))/0xb)+parseInt(_0x4158a9(0x1b9))/0xc;if(_0x4b3532===_0x1348f1)break;else _0x15c8b8['push'](_0x15c8b8['shift']());}catch(_0x15d392){_0x15c8b8['push'](_0x15c8b8['shift']());}}}(_0x5f2c,0x9c0a7));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0xc7c779(0x1c2),'connected':'MCP\x20Connected','failed':_0xc7c779(0x1b7),'retrying':'MCP\x20Retrying...','unknown':_0xc7c779(0x1b1),'missingApiKey':_0xc7c779(0x1c7),'invalidApiKey':'MCP:\x20Invalid\x20API\x20Key','sessionOccupied':_0xc7c779(0x1ab),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0xc7c779(0x1a9),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0xc7c779(0x1c9)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0xc7c779(0x1ca),'apiKeyPlaceholder':_0xc7c779(0x19c),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0xc7c779(0x1bf),'connectionInfo':_0xc7c779(0x1c6),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0xc7c779(0x1b2),'configStepTitle':_0xc7c779(0x1cb),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0xc7c779(0x1c0),'sessionId':_0xc7c779(0x1c8),'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':_0xc7c779(0x1b5),'maxRetries':_0xc7c779(0x1a2),'save':_0xc7c779(0x1ac),'saving':_0xc7c779(0x1a5),'note1':_0xc7c779(0x1bc),'note2':_0xc7c779(0x1ae),'configSaved':_0xc7c779(0x1a6),'configError':_0xc7c779(0x1a7),'apiApplyInfo':{'title':_0xc7c779(0x1b0),'description':_0xc7c779(0x1cc),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0xc7c779(0x1bd)},'validation':{'apiKeyRequired':_0xc7c779(0x1c4),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0xc7c779(0x1a8),'invalidApiKey':_0xc7c779(0x1c5)},'connectionStatus':{'disconnected':_0xc7c779(0x1c1),'connecting':_0xc7c779(0x1b4),'connected':'Connected','failed':_0xc7c779(0x1c3),'retrying':_0xc7c779(0x1b8)},'connectionError':{'missingApiKey':_0xc7c779(0x19f),'invalidApiKey':_0xc7c779(0x1a0),'sessionOccupied':_0xc7c779(0x1a3),'networkError':_0xc7c779(0x1a1),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;function _0x4e36(_0x58aa98,_0x36dcbe){const _0x5f2c62=_0x5f2c();return _0x4e36=function(_0x4e36ee,_0x14e70b){_0x4e36ee=_0x4e36ee-0x19c;let _0x4bc4f0=_0x5f2c62[_0x4e36ee];return _0x4bc4f0;},_0x4e36(_0x58aa98,_0x36dcbe);}export{n as default};
1
+ function _0x244b(_0x335a5e,_0x554a45){const _0x1092b2=_0x1092();return _0x244b=function(_0x244bd7,_0x1e805b){_0x244bd7=_0x244bd7-0x1a9;let _0x68c7e2=_0x1092b2[_0x244bd7];return _0x68c7e2;},_0x244b(_0x335a5e,_0x554a45);}const _0x6c75ef=_0x244b;function _0x1092(){const _0x3207ce=['Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20Authentication','API\x20Key','Connected','Enter\x20your\x20API\x20key','8TPafon','Configuration\x20Steps:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','3DxSroC','Univer\x20AI\x20Console','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','478941InTpnw','MCP\x20Retrying...','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Click\x20to\x20configure\x20MCP','MCP\x20Client\x20Configuration','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Disconnected','Enable\x20authentication\x20for\x20secure\x20connections','369315jsoSAa','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','75qQKxVg','MCP:\x20Network\x20Error','What\x20is\x20API\x20Key?','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Session\x20ID','MCP\x20Connecting...','Saving...','Retrying...','745304JfaGZr','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','11612854owVRSQ','65796HcFWqv','Configuration\x20saved\x20successfully','MCP\x20Disconnected','Failed\x20to\x20save\x20configuration','MCP\x20Unknown\x20Status','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20with\x20Bearer\x20prefix.','50oOJDDl','Invalid\x20configuration','1138641BwDVlK','MCP\x20Configuration','Configuration\x20Parameters:','88554ibxXzR','MCP:\x20Max\x20Retries\x20Exceeded','MCP:\x20Session\x20ID\x20Occupied','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:'];_0x1092=function(){return _0x3207ce;};return _0x1092();}(function(_0x3ebed0,_0x2efd72){const _0x2869ad=_0x244b,_0x19e888=_0x3ebed0();while(!![]){try{const _0x3f7c4b=parseInt(_0x2869ad(0x1b9))/0x1*(-parseInt(_0x2869ad(0x1ab))/0x2)+-parseInt(_0x2869ad(0x1bc))/0x3*(parseInt(_0x2869ad(0x1b6))/0x4)+parseInt(_0x2869ad(0x1c8))/0x5*(-parseInt(_0x2869ad(0x1d3))/0x6)+-parseInt(_0x2869ad(0x1dc))/0x7+parseInt(_0x2869ad(0x1d0))/0x8+parseInt(_0x2869ad(0x1c5))/0x9*(-parseInt(_0x2869ad(0x1da))/0xa)+parseInt(_0x2869ad(0x1d2))/0xb;if(_0x3f7c4b===_0x2efd72)break;else _0x19e888['push'](_0x19e888['shift']());}catch(_0xfb4155){_0x19e888['push'](_0x19e888['shift']());}}}(_0x1092,0x28248));const e={'mcpStatus':{'disconnected':_0x6c75ef(0x1d5),'connecting':_0x6c75ef(0x1cd),'connected':_0x6c75ef(0x1af),'failed':'MCP\x20Connection\x20Failed','retrying':_0x6c75ef(0x1bd),'unknown':_0x6c75ef(0x1d7),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x6c75ef(0x1ad),'networkError':_0x6c75ef(0x1c9),'maxRetriesExceeded':_0x6c75ef(0x1ac),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x6c75ef(0x1bf)},'mcpConfig':{'title':_0x6c75ef(0x1a9),'description':_0x6c75ef(0x1b1),'apiKey':_0x6c75ef(0x1b3),'apiKeyPlaceholder':_0x6c75ef(0x1b5),'apiKeyHint':_0x6c75ef(0x1d8),'enableAuth':_0x6c75ef(0x1b2),'enableAuthHint':_0x6c75ef(0x1c4),'connectionInfo':_0x6c75ef(0x1c0),'mcpClientConfig':_0x6c75ef(0x1c0),'configInstructions':_0x6c75ef(0x1b0),'configStepTitle':_0x6c75ef(0x1b7),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x6c75ef(0x1be),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x6c75ef(0x1cc),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x6c75ef(0x1d9),'configParameters':_0x6c75ef(0x1aa),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x6c75ef(0x1ce),'note1':_0x6c75ef(0x1c7),'note2':_0x6c75ef(0x1d1),'configSaved':_0x6c75ef(0x1d4),'configError':_0x6c75ef(0x1d6),'apiApplyInfo':{'title':_0x6c75ef(0x1ca),'description':_0x6c75ef(0x1bb),'univerAiLabel':_0x6c75ef(0x1ba),'getStarted':_0x6c75ef(0x1c2)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x6c75ef(0x1ae),'invalidConfig':_0x6c75ef(0x1db),'invalidApiKey':_0x6c75ef(0x1cb)},'connectionStatus':{'disconnected':_0x6c75ef(0x1c3),'connecting':'Connecting...','connected':_0x6c75ef(0x1b4),'failed':_0x6c75ef(0x1c1),'retrying':_0x6c75ef(0x1cf)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x6c75ef(0x1b8),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x6c75ef(0x1c6)}}},n=e;export{n as default};
@@ -1 +1 @@
1
- function _0x1817(){const _0x54d739=['Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1645AjvoLY','163225lxXPuv','Configuration\x20Parameters:','MCP:\x20Max\x20Retries\x20Exceeded','Get\x20your\x20API\x20key\x20in\x20seconds','15406FsTFUq','6ehSvfY','Connected','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Click\x20to\x20connect\x20MCP','MCP\x20Disconnected','Configuration\x20Steps:','Enable\x20Authentication','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','342296BPzFDn','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','Copy\x20the\x20JSON\x20configuration\x20below','6536OuoWoJ','Session\x20ID','1105979KyuDUh','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','Connecting...','Saving...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Client\x20Configuration','Configuration\x20saved\x20successfully','Session\x20is\x20currently\x20occupied.\x20Please\x20try\x20again\x20later','MCP\x20Unknown\x20Status','MCP:\x20Session\x20Occupied','2731790vuDHnP','54wOKeCN','Max\x20Retries','Failed\x20to\x20save\x20configuration','MCP:\x20API\x20Key\x20Missing','Retrying...','API\x20key\x20with\x20Bearer\x20prefix.','API\x20Key','Invalid\x20configuration','MCP:\x20Invalid\x20API\x20Key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1030236ChFNwr','MCP\x20Connection\x20Failed','Save\x20Configuration','MCP\x20Retrying...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection'];_0x1817=function(){return _0x54d739;};return _0x1817();}function _0x4271(_0x3373c8,_0x216375){const _0x181761=_0x1817();return _0x4271=function(_0x4271fc,_0x4553e6){_0x4271fc=_0x4271fc-0xcc;let _0x3cda83=_0x181761[_0x4271fc];return _0x3cda83;},_0x4271(_0x3373c8,_0x216375);}const _0x3c53ce=_0x4271;(function(_0xae623f,_0x199479){const _0x38ab5c=_0x4271,_0x17473d=_0xae623f();while(!![]){try{const _0x2d1058=parseInt(_0x38ab5c(0xd6))/0x1+-parseInt(_0x38ab5c(0xda))/0x2*(parseInt(_0x38ab5c(0xdb))/0x3)+parseInt(_0x38ab5c(0xe7))/0x4*(parseInt(_0x38ab5c(0xd5))/0x5)+-parseInt(_0x38ab5c(0xcf))/0x6+-parseInt(_0x38ab5c(0xe9))/0x7+parseInt(_0x38ab5c(0xe3))/0x8*(-parseInt(_0x38ab5c(0xf5))/0x9)+parseInt(_0x38ab5c(0xf4))/0xa;if(_0x2d1058===_0x199479)break;else _0x17473d['push'](_0x17473d['shift']());}catch(_0x526794){_0x17473d['push'](_0x17473d['shift']());}}}(_0x1817,0x5adbf));const e={'mcpStatus':{'disconnected':_0x3c53ce(0xdf),'connecting':'MCP\x20Connecting...','connected':'MCP\x20Connected','failed':_0x3c53ce(0xd0),'retrying':_0x3c53ce(0xd2),'unknown':_0x3c53ce(0xf2),'missingApiKey':_0x3c53ce(0xf8),'invalidApiKey':_0x3c53ce(0xcc),'sessionOccupied':_0x3c53ce(0xf3),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x3c53ce(0xd8),'clickToConnect':_0x3c53ce(0xde),'clickToConfigure':_0x3c53ce(0xeb)},'mcpConfig':{'title':_0x3c53ce(0xe5),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x3c53ce(0xfb),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x3c53ce(0xdd),'enableAuth':_0x3c53ce(0xe1),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x3c53ce(0xef),'configInstructions':_0x3c53ce(0xee),'configStepTitle':_0x3c53ce(0xe0),'configStep1':_0x3c53ce(0xe6),'configStep2':_0x3c53ce(0xce),'configStep3':_0x3c53ce(0xe2),'sessionId':_0x3c53ce(0xe8),'sessionIdDescription':_0x3c53ce(0xd4),'authorizationDescription':_0x3c53ce(0xfa),'configParameters':_0x3c53ce(0xd7),'maxRetries':_0x3c53ce(0xf6),'save':_0x3c53ce(0xd1),'saving':_0x3c53ce(0xed),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x3c53ce(0xf0),'configError':_0x3c53ce(0xf7),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x3c53ce(0xea),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x3c53ce(0xd9)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x3c53ce(0xfc),'invalidApiKey':_0x3c53ce(0xcd)},'connectionStatus':{'disconnected':'Disconnected','connecting':_0x3c53ce(0xec),'connected':_0x3c53ce(0xdc),'failed':'Connection\x20Failed','retrying':_0x3c53ce(0xf9)},'connectionError':{'missingApiKey':'API\x20key\x20is\x20required\x20to\x20connect','invalidApiKey':'Invalid\x20API\x20key.\x20Please\x20check\x20your\x20key\x20and\x20try\x20again','sessionOccupied':_0x3c53ce(0xf1),'networkError':_0x3c53ce(0xd3),'maxRetriesExceeded':_0x3c53ce(0xe4)}}},n=e;export{n as default};
1
+ const _0x5f3ad8=_0x2bd7;function _0x2d91(){const _0x387d71=['MCP:\x20Unauthorized','7PbTwsB','Enter\x20your\x20API\x20key','MCP:\x20Network\x20Error','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Failed\x20to\x20save\x20configuration','MCP:\x20Session\x20ID\x20Occupied','3342784stTkYK','Configuration\x20Steps:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Retrying...','Retrying...','30055795MynGlh','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','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.','MCP\x20Disconnected','7KOujtb','API\x20key\x20with\x20Bearer\x20prefix.','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','320022QzXRlE','Saving...','Enable\x20Authentication','MCP\x20Connected','API\x20key\x20is\x20required','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.','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','What\x20is\x20API\x20Key?','MCP\x20Client\x20Configuration','239406mdIYFa','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','1064100vQhsfA','3546402pYjxas','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20configure\x20MCP','Connecting...','MCP\x20Connecting...','5rHBvpv','MCP\x20Configuration','Session\x20ID','250sayQtG','Click\x20to\x20connect\x20MCP','API\x20Key','2809050ziiZNn','Disconnected'];_0x2d91=function(){return _0x387d71;};return _0x2d91();}function _0x2bd7(_0x1fe416,_0x1d5786){const _0x2d9140=_0x2d91();return _0x2bd7=function(_0x2bd720,_0x494c73){_0x2bd720=_0x2bd720-0x1bc;let _0x6aa0d5=_0x2d9140[_0x2bd720];return _0x6aa0d5;},_0x2bd7(_0x1fe416,_0x1d5786);}(function(_0x34c7ec,_0x44c0c6){const _0x469d52=_0x2bd7,_0x122f0f=_0x34c7ec();while(!![]){try{const _0x29633e=-parseInt(_0x469d52(0x1bd))/0x1*(-parseInt(_0x469d52(0x1de))/0x2)+-parseInt(_0x469d52(0x1ee))/0x3+parseInt(_0x469d52(0x1e1))/0x4*(-parseInt(_0x469d52(0x1e8))/0x5)+parseInt(_0x469d52(0x1e2))/0x6*(-parseInt(_0x469d52(0x1cd))/0x7)+-parseInt(_0x469d52(0x1c3))/0x8+parseInt(_0x469d52(0x1d2))/0x9*(-parseInt(_0x469d52(0x1eb))/0xa)+parseInt(_0x469d52(0x1c8))/0xb;if(_0x29633e===_0x44c0c6)break;else _0x122f0f['push'](_0x122f0f['shift']());}catch(_0x147f6c){_0x122f0f['push'](_0x122f0f['shift']());}}}(_0x2d91,0x72c0a));const e={'mcpStatus':{'disconnected':_0x5f3ad8(0x1cc),'connecting':_0x5f3ad8(0x1e7),'connected':_0x5f3ad8(0x1d5),'failed':_0x5f3ad8(0x1d7),'retrying':_0x5f3ad8(0x1c6),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5f3ad8(0x1bc),'sessionOccupied':_0x5f3ad8(0x1c2),'networkError':_0x5f3ad8(0x1bf),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x5f3ad8(0x1ec),'clickToConfigure':_0x5f3ad8(0x1e5)},'mcpConfig':{'title':_0x5f3ad8(0x1e9),'description':_0x5f3ad8(0x1c0),'apiKey':_0x5f3ad8(0x1ed),'apiKeyPlaceholder':_0x5f3ad8(0x1be),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5f3ad8(0x1d4),'enableAuthHint':_0x5f3ad8(0x1d1),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x5f3ad8(0x1dd),'configInstructions':_0x5f3ad8(0x1e4),'configStepTitle':_0x5f3ad8(0x1c4),'configStep1':_0x5f3ad8(0x1d9),'configStep2':_0x5f3ad8(0x1e0),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x5f3ad8(0x1ea),'sessionIdDescription':_0x5f3ad8(0x1d8),'authorizationDescription':_0x5f3ad8(0x1ce),'configParameters':_0x5f3ad8(0x1ca),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':_0x5f3ad8(0x1d3),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5f3ad8(0x1df),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x5f3ad8(0x1c1),'apiApplyInfo':{'title':_0x5f3ad8(0x1dc),'description':_0x5f3ad8(0x1cb),'univerAiLabel':_0x5f3ad8(0x1d0),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5f3ad8(0x1d6),'apiKeyTooShort':_0x5f3ad8(0x1cf),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5f3ad8(0x1ef),'connecting':_0x5f3ad8(0x1e6),'connected':'Connected','failed':_0x5f3ad8(0x1da),'retrying':_0x5f3ad8(0x1c7)},'connectionError':{'unauthorized':_0x5f3ad8(0x1e3),'sessionOccupied':_0x5f3ad8(0x1c5),'networkError':_0x5f3ad8(0x1c9),'maxRetriesExceeded':_0x5f3ad8(0x1db)}}},n=e;export{n as default};