@univerjs-pro/mcp-ui 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -7
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1a848e=_0x58e1;function _0x58e1(_0x490353,_0x47ab53){_0x490353=_0x490353-0xe4;const _0x4f3f7e=_0x4f3f();let _0x58e1e8=_0x4f3f7e[_0x490353];return _0x58e1e8;}(function(_0x5385c0,_0x41e405){const _0x46439c=_0x58e1,_0x433b0d=_0x5385c0();while(!![]){try{const _0x2e0333=-parseInt(_0x46439c(0x1bc))/0x1*(parseInt(_0x46439c(0x19d))/0x2)+-parseInt(_0x46439c(0x230))/0x3*(-parseInt(_0x46439c(0x23e))/0x4)+parseInt(_0x46439c(0x140))/0x5+-parseInt(_0x46439c(0x248))/0x6+-parseInt(_0x46439c(0x187))/0x7*(parseInt(_0x46439c(0x1cb))/0x8)+parseInt(_0x46439c(0x176))/0x9*(parseInt(_0x46439c(0x164))/0xa)+-parseInt(_0x46439c(0x14a))/0xb*(parseInt(_0x46439c(0xf8))/0xc);if(_0x2e0333===_0x41e405)break;else _0x433b0d['push'](_0x433b0d['shift']());}catch(_0x267b8a){_0x433b0d['push'](_0x433b0d['shift']());}}}(_0x4f3f,0xafffc),Object[_0x1a848e(0x165)](exports,Symbol[_0x1a848e(0x1e3)],{'value':_0x1a848e(0x1b1)}));let e=require('@univerjs/core'),t=require('@univerjs-pro/mcp'),n=require('@univerjs/design'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('@univerjs/icons'),o=require('react'),s=require('react/jsx-runtime'),c=require('@univerjs/network');function l(_0x1cc2cc){const _0x37f20e=_0x1a848e;var _0xf4fa73,_0x403a12;let {mcpCoreConfig:_0x23bebb,onSave:_0x4391eb,loading:_0xfc4605=!0x1,config:_0x8f1538,connectionStatus$:_0x7b0391,connectionError$:_0x8df2a9,currentApiKey$:_0x32686a,currentSessionId$:_0x276dff}=_0x1cc2cc,_0x4f3e42=(0x0,r[_0x37f20e(0x16c)])(e[_0x37f20e(0x226)]),_0x2a8c95=(0x0,r[_0x37f20e(0x1dc)])(_0x7b0391,t[_0x37f20e(0x1c0)]['DISCONNECTED']),_0x3d39e7=(0x0,r['useObservable'])(_0x8df2a9,t[_0x37f20e(0x17c)][_0x37f20e(0x16f)]),_0x56fc2b=(0x0,r[_0x37f20e(0x1dc)])(_0x276dff,''),[_0x55fdd1,_0x5b2efc]=(0x0,o[_0x37f20e(0x1c1)])((0x0,r['useObservable'])(_0x32686a,'')||''),_0x5e5fd5=_0x8f1538[_0x37f20e(0x1ad)]&&_0x23bebb[_0x37f20e(0x149)]&&(_0x23bebb['mcpServerUrl'][_0x37f20e(0x10e)](_0x37f20e(0x166))||_0x23bebb['mcpServerUrl'][_0x37f20e(0x10e)]('univer.ai')),_0x4dcb2d=(_0xf4fa73=_0x23bebb['mcpServerUrl'])==null?void 0x0:_0xf4fa73[_0x37f20e(0x10e)](_0x37f20e(0x166)),_0x29199f=(_0x403a12=_0x23bebb[_0x37f20e(0x149)])==null?void 0x0:_0x403a12[_0x37f20e(0x10e)](_0x37f20e(0x15f)),_0x55fcac=_0x4dcb2d?_0x37f20e(0x122):'https://console.univer.ai',_0x1e721e=_0x8f1538['showDeveloperTools']&&(_0x4dcb2d||_0x29199f),[_0x3f1935,_0x3f8caf]=(0x0,o['useState'])(!_0x55fdd1[_0x37f20e(0x132)]()),_0x581cca=(_0x4ac4e6,_0x3da960)=>{const _0x19283d=_0x37f20e;if(_0x3da960===t['MCPConnectionError']['UNAUTHORIZED'])return _0x19283d(0x180);switch(_0x4ac4e6){case t[_0x19283d(0x1c0)]['CONNECTED']:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case t['MCPConnectionStatus'][_0x19283d(0x10b)]:case t[_0x19283d(0x1c0)][_0x19283d(0x20c)]:return _0x19283d(0x22b);case t[_0x19283d(0x1c0)]['FAILED']:return _0x19283d(0x180);default:return _0x19283d(0x17a);}},_0x338be6=(_0x4dd14c,_0x5d656d)=>{const _0x45f3f1=_0x37f20e;if(_0x5d656d===t[_0x45f3f1(0x17c)][_0x45f3f1(0x217)])return _0x45f3f1(0x19f);switch(_0x4dd14c){case t['MCPConnectionStatus']['CONNECTED']:return _0x45f3f1(0x214);case t['MCPConnectionStatus'][_0x45f3f1(0x10b)]:case t[_0x45f3f1(0x1c0)][_0x45f3f1(0x20c)]:return _0x45f3f1(0x1e2);case t[_0x45f3f1(0x1c0)][_0x45f3f1(0x19b)]:return _0x45f3f1(0x19f);default:return _0x45f3f1(0x160);}},_0x15ae99=_0x400d9a=>{const _0x5bd882=_0x37f20e;switch(_0x400d9a){case t[_0x5bd882(0x1c0)]['CONNECTED']:return _0x4f3e42['t']('mcpConfig.connectionStatus.connected');case t[_0x5bd882(0x1c0)][_0x5bd882(0x10b)]:return _0x4f3e42['t']('mcpConfig.connectionStatus.connecting');case t[_0x5bd882(0x1c0)][_0x5bd882(0x19b)]:return _0x4f3e42['t'](_0x5bd882(0x116));case t[_0x5bd882(0x1c0)]['RETRYING']:return _0x4f3e42['t']('mcpConfig.connectionStatus.retrying');default:return _0x4f3e42['t'](_0x5bd882(0x126));}},_0x37c6ac=_0x23ddcb=>{const _0x516b28=_0x37f20e;switch(_0x23ddcb){case t[_0x516b28(0x17c)][_0x516b28(0x217)]:return _0x4f3e42['t'](_0x516b28(0x174));case t['MCPConnectionError'][_0x516b28(0x127)]:return _0x4f3e42['t'](_0x516b28(0x21e));case t[_0x516b28(0x17c)][_0x516b28(0x20a)]:return _0x4f3e42['t'](_0x516b28(0x20e));case t[_0x516b28(0x17c)][_0x516b28(0x1c6)]:return _0x4f3e42['t'](_0x516b28(0x19e));default:return'';}},_0xc9f689=(0x0,o[_0x37f20e(0x227)])(()=>{const _0xcfc72a=_0x37f20e;_0x4391eb({..._0x23bebb,'apiKey':_0x55fdd1[_0xcfc72a(0x132)](),'enableAuth':!0x0});},[_0x23bebb,_0x55fdd1,!0x0,_0x4391eb]),_0x2384dd=_0x55fdd1[_0x37f20e(0x132)]()[_0x37f20e(0x1be)]>0x0;return(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x142),'children':[(0x0,s['jsx'])('div',{'className':_0x37f20e(0xf4),'children':(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x18c),'children':[(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x161),'children':(0x0,s[_0x37f20e(0x129)])('span',{'className':_0x37f20e(0x111),'children':'⚙'})}),(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1da),{'children':(0x0,s[_0x37f20e(0x129)])('p',{'className':_0x37f20e(0x1ac),'children':_0x4f3e42['t'](_0x37f20e(0x1c7))})})]})}),(0x0,s['jsxs'])(_0x37f20e(0x1da),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[(0x0,s[_0x37f20e(0x129)])('div',{'className':(0x0,n[_0x37f20e(0x216)])(_0x37f20e(0x1a7),_0x581cca(_0x2a8c95,_0x3d39e7)),'children':(0x0,s[_0x37f20e(0x1a0)])('div',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1da),{'className':(0x0,n['clsx'])('univer-size-2\x20univer-rounded-full',_0x338be6(_0x2a8c95,_0x3d39e7))}),(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1bd),{'className':_0x37f20e(0x169),'children':_0x15ae99(_0x2a8c95)})]})}),_0x3d39e7!==t[_0x37f20e(0x17c)][_0x37f20e(0x16f)]&&(_0x2a8c95===t['MCPConnectionStatus'][_0x37f20e(0x19b)]||_0x3d39e7===t[_0x37f20e(0x17c)][_0x37f20e(0x217)])&&(0x0,s['jsx'])(_0x37f20e(0x1da),{'className':_0x37f20e(0x1ea),'children':(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x1ec),'children':[(0x0,s[_0x37f20e(0x129)])('span',{'className':_0x37f20e(0x15e),'children':'⚠️'}),(0x0,s[_0x37f20e(0x129)])('p',{'className':_0x37f20e(0x1d4),'children':_0x37c6ac(_0x3d39e7)})]})})]}),(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x146),'children':(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0xe4),'children':[(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x114),'children':[(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x136),{'className':_0x37f20e(0x235),'children':[(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1bd),{'children':'🔑'}),'\x20',_0x4f3e42['t'](_0x37f20e(0x1d3)),(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1bd),{'className':_0x37f20e(0x103),'children':'*'}),_0x5e5fd5&&(0x0,s['jsx'])('a',{'className':'univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','title':_0x4f3e42['t'](_0x37f20e(0x177)),'role':'button','onClick':()=>_0x3f8caf(!0x0),'children':(0x0,s['jsx'])(a[_0x37f20e(0x1c5)],{})})]}),(0x0,s[_0x37f20e(0x129)])(n[_0x37f20e(0x1ce)],{'type':_0x37f20e(0x1e9),'placeholder':_0x4f3e42['t'](_0x37f20e(0x168)),'value':_0x55fdd1,'disabled':_0xfc4605,'autoComplete':_0x37f20e(0x1ae),'onChange':_0x5b2efc}),(0x0,s['jsx'])('p',{'className':_0x37f20e(0xe8),'children':_0x4f3e42['t'](_0x37f20e(0x117))})]}),_0x5e5fd5&&_0x3f1935&&(0x0,s[_0x37f20e(0x1a0)])('div',{'className':_0x37f20e(0x21b),'children':[(0x0,s[_0x37f20e(0x129)])('a',{'className':_0x37f20e(0x106),'role':_0x37f20e(0x23b),'onClick':()=>_0x3f8caf(!0x1),'children':(0x0,s[_0x37f20e(0x129)])(a[_0x37f20e(0x1c3)],{'className':_0x37f20e(0x212)})}),(0x0,s[_0x37f20e(0x1a0)])('div',{'className':_0x37f20e(0x223),'children':[(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1da),{'className':_0x37f20e(0xeb),'children':(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1bd),{'className':_0x37f20e(0x1fe),'children':'🚀'})}),(0x0,s['jsxs'])(_0x37f20e(0x1da),{'className':_0x37f20e(0x220),'children':[(0x0,s['jsx'])('h4',{'className':_0x37f20e(0x1ed),'children':_0x4f3e42['t'](_0x37f20e(0x177))}),(0x0,s[_0x37f20e(0x129)])('p',{'className':_0x37f20e(0x104),'children':_0x4f3e42['t'](_0x37f20e(0x218))}),(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x16e),'children':_0x1e721e&&(0x0,s['jsxs'])('a',{'className':_0x37f20e(0x1cc),'href':_0x55fcac,'target':_0x37f20e(0xea),'rel':_0x37f20e(0x12a),'children':[(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1bd),{'children':'🤖'}),_0x4f3e42['t']('mcpConfig.apiApplyInfo.univerAiLabel'),(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1bd),{'className':_0x37f20e(0x22c),'children':'↗'})]})}),(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x23c),'children':['✨','\x20',_0x4f3e42['t'](_0x37f20e(0x108))]})]})]})]}),_0x8f1538[_0x37f20e(0x1ad)]&&(0x0,s['jsxs'])(_0x37f20e(0x1da),{'className':_0x37f20e(0x1a6),'children':[(0x0,s[_0x37f20e(0x1a0)])('h4',{'className':_0x37f20e(0x13b),'children':[(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1bd),{'children':'🔗'}),'\x20',_0x4f3e42['t'](_0x37f20e(0x143))]}),(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x18e),'children':[(0x0,s[_0x37f20e(0x1a0)])('div',{'className':'univer-space-y-3','children':[(0x0,s[_0x37f20e(0x129)])('p',{'className':_0x37f20e(0x1b6),'children':_0x4f3e42['t'](_0x37f20e(0x119))}),(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x114),'children':[(0x0,s[_0x37f20e(0x129)])('div',{'className':_0x37f20e(0x10f),'children':_0x4f3e42['t']('mcpConfig.configStepTitle')}),(0x0,s[_0x37f20e(0x1a0)])('div',{'className':_0x37f20e(0x152),'children':[(0x0,s['jsxs'])('div',{'className':_0x37f20e(0x21d),'children':[(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1bd),{'className':_0x37f20e(0x158),'children':'1'}),_0x4f3e42['t']('mcpConfig.configStep1')]}),(0x0,s['jsxs'])(_0x37f20e(0x1da),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s['jsx'])('span',{'className':_0x37f20e(0x158),'children':'2'}),_0x4f3e42['t'](_0x37f20e(0x1e6))]}),(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x21d),'children':[(0x0,s[_0x37f20e(0x129)])('span',{'className':_0x37f20e(0x158),'children':'3'}),_0x4f3e42['t'](_0x37f20e(0x1e4))]})]})]})]}),(0x0,s[_0x37f20e(0x1a0)])('div',{'className':_0x37f20e(0x114),'children':[(0x0,s['jsx'])('div',{'className':_0x37f20e(0x10f),'children':_0x37f20e(0x1c9)}),(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x213),'children':(0x0,s[_0x37f20e(0x129)])('pre',{'className':_0x37f20e(0x247),'children':JSON[_0x37f20e(0x1f0)]({'mcpServers':{'univer':{'url':_0x37f20e(0x221)+(_0x56fc2b||_0x37f20e(0x245)),'type':_0x37f20e(0x184),'headers':{'Authorization':_0x37f20e(0x229)+(_0x55fdd1||_0x37f20e(0xe6))}}}},null,0x2)})})]}),(0x0,s['jsxs'])('div',{'className':_0x37f20e(0x233),'children':[(0x0,s[_0x37f20e(0x129)])('div',{'className':_0x37f20e(0x10f),'children':_0x4f3e42['t'](_0x37f20e(0x179))}),(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x114),'children':[(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x147),'children':[(0x0,s['jsx'])(_0x37f20e(0x1da),{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),(0x0,s[_0x37f20e(0x1a0)])('div',{'className':_0x37f20e(0x172),'children':[(0x0,s['jsx'])(_0x37f20e(0x1da),{'className':_0x37f20e(0x10c),'children':_0x37f20e(0x232)}),(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1da),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x4f3e42['t'](_0x37f20e(0x1a5))})]})]}),(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x147),'children':[(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x17d)}),(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x172),'children':[(0x0,s['jsx'])(_0x37f20e(0x1da),{'className':_0x37f20e(0x10c),'children':_0x37f20e(0x10d)}),(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1da),{'className':_0x37f20e(0xe8),'children':_0x4f3e42['t'](_0x37f20e(0x211))})]})]})]})]})]})]}),(0x0,s[_0x37f20e(0x129)])(n[_0x37f20e(0x135)],{'onClick':_0xc9f689,'disabled':!_0x2384dd||_0xfc4605,'className':_0x37f20e(0x182),'children':_0xfc4605?(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1bd),{'className':_0x37f20e(0x21d),'children':[(0x0,s[_0x37f20e(0x129)])('span',{'children':'⟲'}),_0x4f3e42['t'](_0x37f20e(0x14c))]}):(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1bd),{'className':_0x37f20e(0x21d),'children':[(0x0,s[_0x37f20e(0x129)])(a['CheckMarkIcon'],{}),_0x4f3e42['t']('mcpConfig.save')]})}),(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x1d5),'children':(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'className':_0x37f20e(0x138),'children':[(0x0,s[_0x37f20e(0x129)])(_0x37f20e(0x1bd),{'className':_0x37f20e(0x156),'children':'💡'}),(0x0,s[_0x37f20e(0x1a0)])('div',{'className':_0x37f20e(0x1f8),'children':[(0x0,s['jsx'])('div',{'className':_0x37f20e(0x1cf),'children':_0x37f20e(0x199)}),(0x0,s[_0x37f20e(0x1a0)])(_0x37f20e(0x1da),{'children':['•',_0x4f3e42['t'](_0x37f20e(0xf5))]}),(0x0,s['jsxs'])(_0x37f20e(0x1da),{'children':['•',_0x4f3e42['t'](_0x37f20e(0x1d1))]})]})]})})]})})]});}const u=_0x1a848e(0x100),d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x4646b3){'@babel/helpers - typeof';const _0x564f18=_0x1a848e;return f=typeof Symbol==_0x564f18(0x13e)&&typeof Symbol[_0x564f18(0x1a9)]=='symbol'?function(_0x43aa65){return typeof _0x43aa65;}:function(_0x103bc3){const _0x810499=_0x564f18;return _0x103bc3&&typeof Symbol==_0x810499(0x13e)&&_0x103bc3['constructor']===Symbol&&_0x103bc3!==Symbol[_0x810499(0x175)]?'symbol':typeof _0x103bc3;},f(_0x4646b3);}function p(_0x2d1813,_0x3d5441){const _0x2a56ab=_0x1a848e;if(f(_0x2d1813)!=_0x2a56ab(0x170)||!_0x2d1813)return _0x2d1813;var _0x154740=_0x2d1813[Symbol[_0x2a56ab(0x121)]];if(_0x154740!==void 0x0){var _0x482434=_0x154740[_0x2a56ab(0x15b)](_0x2d1813,_0x3d5441||_0x2a56ab(0x150));if(f(_0x482434)!='object')return _0x482434;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3d5441===_0x2a56ab(0x1aa)?String:Number)(_0x2d1813);}function m(_0x12f2c7){const _0xa80b16=_0x1a848e;var _0x5f124c=p(_0x12f2c7,_0xa80b16(0x1aa));return f(_0x5f124c)==_0xa80b16(0x153)?_0x5f124c:_0x5f124c+'';}function h(_0xcc8a03,_0x27345e,_0x1f330d){return(_0x27345e=m(_0x27345e))in _0xcc8a03?Object['defineProperty'](_0xcc8a03,_0x27345e,{'value':_0x1f330d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcc8a03[_0x27345e]=_0x1f330d,_0xcc8a03;}function g(_0x22f86f,_0x30b2a3){return function(_0x3edc68,_0x4943d1){_0x30b2a3(_0x3edc68,_0x4943d1,_0x22f86f);};}function _(_0x5c801f,_0x5b142a,_0x10b657,_0x1c62f9){const _0x29026b=_0x1a848e;var _0x57c21d=arguments[_0x29026b(0x1be)],_0x568449=_0x57c21d<0x3?_0x5b142a:_0x1c62f9===null?_0x1c62f9=Object[_0x29026b(0x207)](_0x5b142a,_0x10b657):_0x1c62f9,_0x7f346a;if(typeof Reflect=='object'&&typeof Reflect[_0x29026b(0x15a)]==_0x29026b(0x13e))_0x568449=Reflect[_0x29026b(0x15a)](_0x5c801f,_0x5b142a,_0x10b657,_0x1c62f9);else{for(var _0xa055e7=_0x5c801f[_0x29026b(0x1be)]-0x1;_0xa055e7>=0x0;_0xa055e7--)(_0x7f346a=_0x5c801f[_0xa055e7])&&(_0x568449=(_0x57c21d<0x3?_0x7f346a(_0x568449):_0x57c21d>0x3?_0x7f346a(_0x5b142a,_0x10b657,_0x568449):_0x7f346a(_0x5b142a,_0x10b657))||_0x568449);}return _0x57c21d>0x3&&_0x568449&&Object[_0x29026b(0x165)](_0x5b142a,_0x10b657,_0x568449),_0x568449;}const v='mcp.apiKey',y=_0x1a848e(0x1c4);let b=class extends e[_0x1a848e(0x185)]{constructor(_0x1ac939,_0xb2d68c,_0xc97026,_0x1acf45,_0x27eb35,_0x5cc8c7,_0x4ae1ae,_0x596d1d,_0x210add,_0x393578){const _0x9325ea=_0x1a848e;super(),this['_injector']=_0x1ac939,this[_0x9325ea(0x17e)]=_0xb2d68c,this['_configService']=_0xc97026,this[_0x9325ea(0x115)]=_0x1acf45,this[_0x9325ea(0xff)]=_0x27eb35,this[_0x9325ea(0xf6)]=_0x5cc8c7,this[_0x9325ea(0x1f5)]=_0x4ae1ae,this['_localeService']=_0x596d1d,this[_0x9325ea(0x20f)]=_0x210add,this[_0x9325ea(0x16a)]=_0x393578,h(this,_0x9325ea(0x208),new i[(_0x9325ea(0x1a8))](!0x1)),h(this,_0x9325ea(0x189),new i[(_0x9325ea(0x1a8))]({})),h(this,_0x9325ea(0x16b),new i[(_0x9325ea(0x1a8))]({})),h(this,_0x9325ea(0x195),new i[(_0x9325ea(0x1a8))]('')),h(this,_0x9325ea(0x120),async _0x3bff19=>{const _0x1babd1=_0x9325ea;this[_0x1babd1(0x208)]['next'](!0x0);try{var _0xed9dc7,_0x434b73;let _0x3427a3=await this[_0x1babd1(0x1d8)](_0x3bff19);if(!_0x3427a3[_0x1babd1(0xe9)]){this[_0x1babd1(0xf6)][_0x1babd1(0x203)]({'type':n[_0x1babd1(0x1ff)][_0x1babd1(0x14e)],'content':_0x3427a3[_0x1babd1(0xfd)]||this[_0x1babd1(0x125)]['t'](_0x1babd1(0x20b))});return;}_0x3bff19[_0x1babd1(0x151)]?await this[_0x1babd1(0x115)][_0x1babd1(0x231)](v,_0x3bff19['apiKey'][_0x1babd1(0x132)]()):await this[_0x1babd1(0x115)][_0x1babd1(0x11b)](v),this['_apiKey$'][_0x1babd1(0x202)](((_0xed9dc7=_0x3bff19[_0x1babd1(0x151)])==null?void 0x0:_0xed9dc7['trim']())||''),this['_mcpConnectionController'][_0x1babd1(0x215)]({'Authorization':_0x1babd1(0x229)+((_0x434b73=_0x3bff19[_0x1babd1(0x151)])==null?void 0x0:_0x434b73[_0x1babd1(0x132)]())}),this['_messageService'][_0x1babd1(0x203)]({'type':n[_0x1babd1(0x1ff)][_0x1babd1(0x239)],'content':this['_localeService']['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x1a700f=_0x1babd1;this[_0x1a700f(0xff)][_0x1a700f(0x205)](y);},0x320);}catch(_0x348461){this[_0x1babd1(0x20f)]['error'](_0x1babd1(0x15c),_0x348461),this['_messageService'][_0x1babd1(0x203)]({'type':n[_0x1babd1(0x1ff)][_0x1babd1(0x14e)],'content':this[_0x1babd1(0x125)]['t'](_0x1babd1(0x237))});}finally{this['_loading$'][_0x1babd1(0x202)](!0x1);}}),this['_initConfigSync'](),this[_0x9325ea(0x23a)](),this['_registerComponent']();}[_0x1a848e(0x163)](){const _0x4c0844=_0x1a848e;let _0x400175=this[_0x4c0844(0x234)]['getConfig'](u);_0x400175!=null&&_0x400175[_0x4c0844(0x1ad)]&&this[_0x4c0844(0xff)][_0x4c0844(0x13c)]({'id':y,'title':{'title':this[_0x4c0844(0x125)]['t']('mcpConfig.title')},'children':{'label':_0x4c0844(0x14f)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x3b7b7f=_0x4c0844;this[_0x3b7b7f(0xff)][_0x3b7b7f(0x205)](y);}});}[_0x1a848e(0x228)](){const _0xe28ede=_0x1a848e;return this['_mcpCoreConfig$'][_0xe28ede(0x1b5)];}['_registerComponent'](){const _0x1e094a=_0x1a848e;this[_0x1e094a(0x241)](this['_componentManager'][_0x1e094a(0x1a3)](_0x1e094a(0x14f),this['_createConfigPanelComponent']()));}[_0x1a848e(0xf3)](){const _0xe3fedb=_0x1a848e;return(0x0,r[_0xe3fedb(0xee)])(()=>{const _0x3ef6cd=_0xe3fedb;var _0xb2dc6c,_0x37c381,_0x55e7f4;return(0x0,s[_0x3ef6cd(0x129)])(l,{'config':this[_0x3ef6cd(0x16b)][_0x3ef6cd(0x1b5)],'mcpCoreConfig':this[_0x3ef6cd(0x189)][_0x3ef6cd(0x1b5)],'currentApiKey$':this[_0x3ef6cd(0x195)],'onSave':this['_handleConfigSave'],'loading':this[_0x3ef6cd(0x208)][_0x3ef6cd(0x1b5)],'connectionStatus$':(_0xb2dc6c=this['_mcpConnectionController'])==null?void 0x0:_0xb2dc6c[_0x3ef6cd(0xf2)],'connectionError$':(_0x37c381=this[_0x3ef6cd(0x16a)])==null?void 0x0:_0x37c381['connectionError$'],'currentSessionId$':(_0x55e7f4=this[_0x3ef6cd(0x16a)])==null?void 0x0:_0x55e7f4['sessionId$']});},this[_0xe3fedb(0x13f)]);}[_0x1a848e(0x236)](){const _0x16721e=_0x1a848e;this['disposeWithMe'](this[_0x16721e(0x234)][_0x16721e(0x1bb)](t['MCP_PLUGIN_CONFIG_KEY'])['subscribe'](_0x2afd77=>{const _0x414061=_0x16721e;this['_mcpCoreConfig$'][_0x414061(0x202)](_0x2afd77||{});}));let _0x4fd924=this['_configService'][_0x16721e(0x105)](t[_0x16721e(0x1db)]);this[_0x16721e(0x189)][_0x16721e(0x202)](_0x4fd924||{}),this[_0x16721e(0x241)](this[_0x16721e(0x234)][_0x16721e(0x1bb)](u)[_0x16721e(0x183)](_0x513dbd=>{const _0x54a074=_0x16721e;this[_0x54a074(0x16b)][_0x54a074(0x202)](_0x513dbd||{});}));let _0x53bb2d=this[_0x16721e(0x234)][_0x16721e(0x105)](u);this['_config$'][_0x16721e(0x202)](_0x53bb2d||{});}async[_0x1a848e(0x23a)](){const _0x3fbb97=_0x1a848e;let _0x886d3=this['_configService']['getConfig'](u);if(!(_0x886d3!=null&&_0x886d3[_0x3fbb97(0x1ad)]))return;let _0x46c67c=await this[_0x3fbb97(0x115)][_0x3fbb97(0x130)](v);_0x46c67c&&(this[_0x3fbb97(0x16a)][_0x3fbb97(0x215)]({'Authorization':_0x3fbb97(0x229)+_0x46c67c}),this[_0x3fbb97(0x195)][_0x3fbb97(0x202)](_0x46c67c));}async['_validateConfig'](_0x5d7bb5){const _0x47f0ad=_0x1a848e;if(!_0x5d7bb5[_0x47f0ad(0x151)]||_0x5d7bb5['apiKey'][_0x47f0ad(0x132)]()[_0x47f0ad(0x1be)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x47f0ad(0x125)]['t'](_0x47f0ad(0x1c8))};if(_0x5d7bb5[_0x47f0ad(0x151)]['trim']()[_0x47f0ad(0x1be)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x47f0ad(0x125)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x376c6c=await this[_0x47f0ad(0x13f)][_0x47f0ad(0x134)](t[_0x47f0ad(0x13d)])[_0x47f0ad(0x22d)](_0x5d7bb5['apiKey'][_0x47f0ad(0x132)]());return _0x376c6c[_0x47f0ad(0xe9)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x376c6c[_0x47f0ad(0x22a)]||this[_0x47f0ad(0x125)]['t'](_0x47f0ad(0x1b7))};}catch(_0x577244){return console['warn']('[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:',_0x577244),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e['Inject'])(e['Injector'])),g(0x1,r[_0x1a848e(0x123)]),g(0x2,e[_0x1a848e(0x141)]),g(0x3,e['ILocalStorageService']),g(0x4,r[_0x1a848e(0xf9)]),g(0x5,r[_0x1a848e(0x102)]),g(0x6,(0x0,e['Inject'])(r[_0x1a848e(0x1d2)])),g(0x7,(0x0,e[_0x1a848e(0x21a)])(e['LocaleService'])),g(0x8,e[_0x1a848e(0x18b)]),g(0x9,(0x0,e[_0x1a848e(0x21a)])(t['MCPConnectionController']))],b);const x={'id':_0x1a848e(0x1ba),'type':e[_0x1a848e(0x18f)][_0x1a848e(0x171)],'handler':async(_0x3b3de7,_0x3b09f5)=>(_0x3b3de7[_0x1a848e(0x134)](b)[_0x1a848e(0x163)](),!0x0)};function S(_0x8abfb,_0xdc0ca9){const _0x2f6828=_0x1a848e;switch(_0x8abfb){case t[_0x2f6828(0x1c0)][_0x2f6828(0x12f)]:return _0x2f6828(0x188);case t[_0x2f6828(0x1c0)][_0x2f6828(0x10b)]:return _0x2f6828(0x128);case t[_0x2f6828(0x1c0)][_0x2f6828(0x190)]:return'mcpStatus.connected';case t['MCPConnectionStatus'][_0x2f6828(0x19b)]:switch(_0xdc0ca9){case t['MCPConnectionError']['UNAUTHORIZED']:return'mcpStatus.unauthorized';case t['MCPConnectionError'][_0x2f6828(0x127)]:return _0x2f6828(0x101);case t[_0x2f6828(0x17c)]['NETWORK_ERROR']:return _0x2f6828(0x10a);case t[_0x2f6828(0x17c)]['MAX_RETRIES_EXCEEDED']:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case t[_0x2f6828(0x1c0)][_0x2f6828(0x20c)]:return'mcpStatus.retrying';default:return _0x2f6828(0x1f2);}}function C(_0x5336d4,_0x11e751,_0x1dde82,_0x331b79=!0x0){const _0x49ca7b=_0x1a848e;let _0x419ef9=S(_0x5336d4,_0x11e751),_0x117cac=_0x1dde82['t'](_0x419ef9);return _0x331b79?_0x5336d4===t[_0x49ca7b(0x1c0)][_0x49ca7b(0x12f)]&&_0x11e751===t['MCPConnectionError'][_0x49ca7b(0x217)]?_0x117cac+_0x49ca7b(0x200)+_0x1dde82['t'](_0x49ca7b(0xfa)):_0x5336d4===t[_0x49ca7b(0x1c0)][_0x49ca7b(0x190)]?''+_0x117cac:_0x5336d4===t[_0x49ca7b(0x1c0)][_0x49ca7b(0x12f)]||_0x5336d4===t['MCPConnectionStatus'][_0x49ca7b(0x19b)]?_0x117cac+_0x49ca7b(0x200)+_0x1dde82['t'](_0x49ca7b(0x1ab)):_0x117cac:_0x117cac;}function w(_0x2d1fd0){const _0xa7a5c3=_0x1a848e;switch(_0x2d1fd0){case t[_0xa7a5c3(0x1c0)][_0xa7a5c3(0x190)]:return'univer-text-green-500';case t[_0xa7a5c3(0x1c0)][_0xa7a5c3(0x10b)]:case t[_0xa7a5c3(0x1c0)][_0xa7a5c3(0x20c)]:return'univer-text-yellow-500';case t[_0xa7a5c3(0x1c0)]['FAILED']:case t['MCPConnectionStatus'][_0xa7a5c3(0x12f)]:return _0xa7a5c3(0x103);default:return _0xa7a5c3(0x198);}}function T(_0x53e29e){const _0x1d2eaa=_0x1a848e;let {status$:_0x347654,error$:_0x34a8be,onConfigure:_0x1d391a,showClickable:_0x153531=!0x0}=_0x53e29e,_0x26f7a0=(0x0,r[_0x1d2eaa(0x1dc)])(_0x347654,t[_0x1d2eaa(0x1c0)]['DISCONNECTED']),_0x3decac=(0x0,r[_0x1d2eaa(0x1dc)])(_0x34a8be,t[_0x1d2eaa(0x17c)]['NONE']),_0x5720e8=(0x0,r[_0x1d2eaa(0x16c)])(e[_0x1d2eaa(0x226)]),_0x4b6afe=_0x26f7a0===t[_0x1d2eaa(0x1c0)][_0x1d2eaa(0x190)];_0x26f7a0===t[_0x1d2eaa(0x1c0)][_0x1d2eaa(0x10b)]||t[_0x1d2eaa(0x1c0)][_0x1d2eaa(0x20c)];let _0x478095=_0x5720e8['t'](S(_0x26f7a0,_0x3decac)),_0x2a89d1=C(_0x26f7a0,_0x3decac,_0x5720e8,_0x153531),_0x4d9c43=w(_0x26f7a0),_0x572726=_0x4b6afe?(0x0,s[_0x1d2eaa(0x129)])(a[_0x1d2eaa(0xfc)],{}):(0x0,s[_0x1d2eaa(0x129)])(a['OffLineIcon'],{}),_0x140baa=(0x0,o[_0x1d2eaa(0x227)])(()=>{_0x153531&&_0x1d391a&&_0x1d391a();},[_0x153531,_0x1d391a]);function _0x79fc04(){const _0x1828d5=_0x1d2eaa;return(0x0,s[_0x1828d5(0x1a0)])(_0x1828d5(0x1da),{'className':(0x0,n[_0x1828d5(0x216)])('univer-flex\x20univer-items-center',_0x153531&&_0x1d391a&&_0x1828d5(0x110)),'role':'button','onClick':_0x153531&&_0x1d391a?_0x140baa:void 0x0,'children':[(0x0,s[_0x1828d5(0x129)])(_0x1828d5(0x1da),{'className':(0x0,n[_0x1828d5(0x216)])('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x4d9c43),'children':_0x572726}),(0x0,s['jsx'])('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x478095})]});}return(0x0,s[_0x1d2eaa(0x129)])(n[_0x1d2eaa(0x1b4)],{'title':_0x2a89d1,'placement':'bottom','children':_0x79fc04()});}let E=class extends e[_0x1a848e(0x185)]{constructor(_0x4e8fd9,_0x11867b,_0x1b14fb,_0x335dae){const _0x4d8b58=_0x1a848e;super(),this['_injector']=_0x4e8fd9,this[_0x4d8b58(0x1e5)]=_0x11867b,this['_uiPartsService']=_0x1b14fb,this[_0x4d8b58(0x234)]=_0x335dae,this[_0x4d8b58(0x107)](),this[_0x4d8b58(0x194)]();}[_0x1a848e(0x107)](){const _0x12e8ce=_0x1a848e;let _0x1ff5a2=this[_0x12e8ce(0x234)][_0x12e8ce(0x105)](u);_0x1ff5a2!=null&&_0x1ff5a2[_0x12e8ce(0x1ad)]&&(this[_0x12e8ce(0x1e5)][_0x12e8ce(0x124)]=!0x1);}[_0x1a848e(0x194)](){const _0x2452e4=_0x1a848e;let _0x24dc37=this[_0x2452e4(0x234)][_0x2452e4(0x105)](u);(_0x24dc37==null?void 0x0:_0x24dc37[_0x2452e4(0x11a)])!==!0x1&&this[_0x2452e4(0x241)](this['_uiPartsService'][_0x2452e4(0x12d)](r[_0x2452e4(0x1fc)][_0x2452e4(0x210)],()=>{const _0x1b83e1=_0x2452e4;var _0x1951e0;return(0x0,r['connectInjector'])(D({'status$':this[_0x1b83e1(0x1e5)][_0x1b83e1(0xf2)],'error$':this[_0x1b83e1(0x1e5)][_0x1b83e1(0x19c)],'onConfigure':()=>this[_0x1b83e1(0x244)](),'showClickable':(_0x1951e0=_0x24dc37==null?void 0x0:_0x24dc37[_0x1b83e1(0x1ad)])==null?!0x1:_0x1951e0}),this[_0x1b83e1(0x13f)]);}));}[_0x1a848e(0x244)](){const _0x4ec30e=_0x1a848e;this[_0x4ec30e(0x13f)][_0x4ec30e(0x134)](b)[_0x4ec30e(0x163)]();}};E=_([g(0x0,(0x0,e[_0x1a848e(0x21a)])(e[_0x1a848e(0x1af)])),g(0x1,(0x0,e[_0x1a848e(0x21a)])(t[_0x1a848e(0x13d)])),g(0x2,r[_0x1a848e(0x123)]),g(0x3,e[_0x1a848e(0x141)])],E);function D(_0x5aad77){let {status$:_0x105980,error$:_0x40bbe2,onConfigure:_0x4638cf,showClickable:_0x5eb80e}=_0x5aad77;return function(){const _0x9a6ea1=_0x58e1;return(0x0,s[_0x9a6ea1(0x129)])(T,{'status$':_0x105980,'error$':_0x40bbe2,'onConfigure':_0x4638cf,'showClickable':_0x5eb80e});};}function O(_0x49a004){const _0x5cd51e=_0x1a848e;return{'id':x['id'],'type':r[_0x5cd51e(0x209)]['BUTTON'],'icon':_0x5cd51e(0x1dd),'title':_0x5cd51e(0x1bf),'tooltip':'mcpConfig.title'};}const k={[r[_0x1a848e(0x1e0)][_0x1a848e(0x1df)]]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e[_0x1a848e(0x185)]{constructor(_0x21bf68,_0x5194d8){const _0xc35592=_0x1a848e;super(),this[_0xc35592(0x186)]=_0x21bf68,this[_0xc35592(0x196)]=_0x5194d8,this[_0xc35592(0x1d6)](),this['_initializeMenus']();}[_0x1a848e(0x1d6)](){[x]['forEach'](_0x1179d4=>{const _0x502d2b=_0x58e1;this[_0x502d2b(0x241)](this[_0x502d2b(0x186)][_0x502d2b(0x1ef)](_0x1179d4));});}[_0x1a848e(0x1d7)](){const _0x32f37a=_0x1a848e;this['_menuManagerService'][_0x32f37a(0x181)](k);}};A=_([g(0x0,e[_0x1a848e(0x240)]),g(0x1,r[_0x1a848e(0x1d9)])],A);function _0x4f3f(){const _0x30c51c=['symbol','has','MCP\x20已断开','univer-shrink-0\x20univer-text-blue-500','MCPStatusDisplay','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','decorate','call','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','点击配置\x20MCP','univer-shrink-0\x20univer-text-red-500','univer.ai','univer-bg-gray-500','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','已连接','showConfigPanel','190HsayMh','defineProperty','univer.plus','MCP:\x20Network\x20Error','mcpConfig.apiKeyPlaceholder','univer-text-sm\x20univer-font-medium','_mcpConnectionController','_config$','useDependency','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-flex\x20univer-flex-wrap\x20univer-gap-2','NONE','object','COMMAND','univer-min-w-0\x20univer-flex-1','未连接','mcpConfig.connectionError.unauthorized','prototype','662436urXquH','mcpConfig.apiApplyInfo.title','Enter\x20your\x20API\x20key','mcpConfig.configParameters','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','保存配置','MCPConnectionError','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','_uiPartsService','Connection\x20Failed','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','mergeMenu','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','subscribe','http','Disposable','_commandService','56nFzoDH','mcpStatus.disconnected','_mcpCoreConfig$','API\x20密钥长度至少需要\x2010\x20位','ILogService','univer-flex\x20univer-items-center\x20univer-gap-3','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','univer-space-y-4','CommandType','CONNECTED','Plugin','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20超出最大重试次数','_initStatusComponent','_apiKey$','_menuManagerService','Session\x20ID','univer-text-gray-500','Configuration\x20Notes:','超出最大重试次数,请稍后再试','FAILED','connectionError$','738igwtAl','mcpConfig.connectionError.maxRetriesExceeded','univer-bg-red-500','jsxs','MCP:\x20网络错误','Enable\x20Authentication','register','连接失败','mcpConfig.sessionIdDescription','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','BehaviorSubject','iterator','string','mcpStatus.clickToConnect','univer-text-sm\x20univer-text-gray-500','showDeveloperTools','off','Injector','Invalid\x20configuration','Module','最大重试次数','ISocketService','Tooltip','value','univer-text-xs\x20univer-text-gray-600','mcpConfig.validation.invalidApiKey','您的\x20API\x20密钥将在此浏览器中本地存储','Retrying...','mcp-ui.command.openConfigPanel','subscribeConfigValue$','900vZEbVS','span','length','mcpConfig.title','MCPConnectionStatus','useState','MCP:\x20Max\x20Retries\x20Exceeded','CloseIcon','mcp-config-dialog','HelpIcon','MAX_RETRIES_EXCEEDED','mcpConfig.description','mcpConfig.validation.apiKeyRequired','MCP\x20Configuration','API\x20密钥','189256koYafQ','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','MCP:\x20Unauthorized','Input','univer-font-medium','什么是\x20API\x20密钥?','mcpConfig.note2','ComponentManager','mcpConfig.apiKey','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','_initializeCommands','_initializeMenus','_validateConfig','IMenuManagerService','div','MCP_PLUGIN_CONFIG_KEY','useObservable','MenuIcon','启用身份验证','OTHERS','RibbonStartGroup','网络连接错误,请检查您的网络连接','univer-bg-blue-500','toStringTag','mcpConfig.configStep3','_connectionController','mcpConfig.configStep2','配置更改将立即生效','Connected','text','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','Configuration\x20Parameters:','univer-flex\x20univer-items-start\x20univer-gap-2','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','配置保存成功','registerCommand','stringify','version','mcpStatus.unknown','会话ID','_config','_componentManager','MCP\x20已连接','setConfig','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','zhCN','MCPUIMenuController','BuiltInUIPart','API\x20密钥无效,请检查密钥是否正确','univer-text-blue-600','MessageType','\x20-\x20','API\x20Key','next','show','请输入您的\x20API\x20密钥','close','重连中...','getOwnPropertyDescriptor','_loading$','MenuItemType','NETWORK_ERROR','mcpConfig.validation.invalidConfig','RETRYING','MCP:\x20Session\x20ID\x20Occupied','mcpConfig.connectionError.networkError','_logService','HEADER_MENU','mcpConfig.authorizationDescription','univer-size-4','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','univer-bg-green-500','__setCustomHeaders','clsx','UNAUTHORIZED','mcpConfig.apiApplyInfo.description','将以下配置添加到您的\x20MCP\x20客户端设置中:','Inject','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','Disconnected','univer-flex\x20univer-items-center\x20univer-gap-2','mcpConfig.connectionError.sessionOccupied','MCP\x20状态未知','univer-flex-1','https://mcp.univer.ai/mcp/?univer_session_id=','配置无效','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','MCP\x20Connected','MCP\x20Client\x20Configuration','LocaleService','useCallback','getCurrentConfig','Bearer\x20','error','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','univer-text-gray-400','validateApiKey','权限验证失败,请检查您的\x20API\x20密钥','Univer\x20AI\x20Console','795018zceFyD','setItem','univer_session_id:','univer-space-y-3','_configService','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','_initConfigSync','mcpConfig.configError','MCP\x20Retrying...','Success','_loadStoredApiKey','button','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','MCP\x20Disconnected','20atbUzb','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','ICommandService','disposeWithMe','Failed\x20to\x20save\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','_handleConfigure','<SESSION_ID>','onStarting','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','3967116MuKslA','univer-space-y-5','UniverMCPPlugin','<API_KEY>','Configuration\x20Steps:','univer-text-xs\x20univer-text-gray-500','isValid','_blank','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','OpenMCPConfigPanelCommand','几秒钟内获取您的\x20API\x20密钥','connectInjector','API\x20key\x20is\x20required','push','Save\x20Configuration','connectionStatus$','_createConfigPanelComponent','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','mcpConfig.note1','_messageService','What\x20is\x20API\x20Key?','1473324qXQwpp','IDialogService','mcpStatus.clickToConfigure','API\x20key\x20with\x20Bearer\x20prefix.','OnLineIcon','errorMessage','配置步骤:','_dialogService','mcp-ui.config','mcpStatus.sessionOccupied','IMessageService','univer-text-red-500','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','getConfig','univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','_initAutoConnect','mcpConfig.apiApplyInfo.getStarted','API\x20密钥不能为空','mcpStatus.networkError','CONNECTING','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','Authorization:','includes','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','\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','univer-text-white','带有\x20Bearer\x20前缀的\x20API\x20密钥。','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','univer-space-y-2','_localStorageService','mcpConfig.connectionStatus.failed','mcpConfig.apiKeyHint','packageName','mcpConfig.configInstructions','showStatus','removeItem','Univer\x20AI\x20控制台','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Max\x20Retries','配置保存失败','_handleConfigSave','toPrimitive','https://console.univer.plus','IUIPartsService','enableAutoConnect','_localeService','mcpConfig.connectionStatus.disconnected','SESSION_ID_OCCUPIED','mcpStatus.connecting','jsx','noopener\x20noreferrer','配置参数:','MCP\x20Connecting...','registerComponent','DependentOn','DISCONNECTED','getItem','Click\x20to\x20connect\x20MCP','trim','enUS','get','Button','label','add','univer-flex\x20univer-gap-3','重启您的\x20MCP\x20客户端以使配置生效','MCP\x20连接失败','univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','open','MCPConnectionController','function','_injector','196835PwXUqS','IConfigService','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.connectionInfo','连接中...','merge','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','univer-flex\x20univer-items-start\x20univer-gap-3','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','mcpServerUrl','77hpIjGG','保存中...','mcpConfig.saving','MCP\x20Connection\x20Failed','Error','MCPConfigPanel','default','apiKey','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600'];_0x4f3f=function(){return _0x30c51c;};return _0x4f3f();}const j={'mcpStatus':{'disconnected':_0x1a848e(0x23d),'connecting':_0x1a848e(0x12c),'connected':_0x1a848e(0x224),'failed':_0x1a848e(0x14d),'retrying':_0x1a848e(0x238),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x1a848e(0x1cd),'sessionOccupied':_0x1a848e(0x20d),'networkError':_0x1a848e(0x167),'maxRetriesExceeded':_0x1a848e(0x1c2),'clickToConnect':_0x1a848e(0x131),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x1a848e(0x1c9),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x1a848e(0x201),'apiKeyPlaceholder':_0x1a848e(0x178),'apiKeyHint':_0x1a848e(0x148),'enableAuth':_0x1a848e(0x1a2),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x1a848e(0x225),'mcpClientConfig':_0x1a848e(0x225),'configInstructions':_0x1a848e(0x243),'configStepTitle':_0x1a848e(0xe7),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1a848e(0x159),'configStep3':_0x1a848e(0x11d),'sessionId':_0x1a848e(0x197),'sessionIdDescription':_0x1a848e(0x16d),'authorizationDescription':_0x1a848e(0xfb),'configParameters':_0x1a848e(0x1eb),'maxRetries':_0x1a848e(0x11e),'save':_0x1a848e(0xf1),'saving':'Saving...','note1':_0x1a848e(0x23f),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':'Configuration\x20saved\x20successfully','configError':_0x1a848e(0x242),'apiApplyInfo':{'title':_0x1a848e(0xf7),'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':_0x1a848e(0x22f),'getStarted':_0x1a848e(0x192)},'validation':{'apiKeyRequired':_0x1a848e(0xef),'apiKeyTooShort':_0x1a848e(0x113),'invalidConfig':_0x1a848e(0x1b0),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1a848e(0x21c),'connecting':'Connecting...','connected':_0x1a848e(0x1e8),'failed':_0x1a848e(0x17f),'retrying':_0x1a848e(0x1b9)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x1a848e(0x18d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},M={'mcpStatus':{'disconnected':_0x1a848e(0x155),'connecting':'MCP\x20连接中...','connected':_0x1a848e(0x1f6),'failed':_0x1a848e(0x13a),'retrying':'MCP\x20重连中...','unknown':_0x1a848e(0x21f),'unauthorized':'MCP:\x20未授权','sessionOccupied':'MCP:\x20会话\x20ID\x20已被占用','networkError':_0x1a848e(0x1a1),'maxRetriesExceeded':_0x1a848e(0x193),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x1a848e(0x15d)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x1a848e(0x1ca),'apiKeyPlaceholder':_0x1a848e(0x204),'apiKeyHint':_0x1a848e(0x1b8),'enableAuth':_0x1a848e(0x1de),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':'MCP\x20客户端配置','mcpClientConfig':'MCP\x20客户端配置','configInstructions':_0x1a848e(0x219),'configStepTitle':_0x1a848e(0xfe),'configStep1':'复制以下\x20JSON\x20配置','configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x1a848e(0x139),'sessionId':_0x1a848e(0x1f3),'sessionIdDescription':'唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','authorizationDescription':_0x1a848e(0x112),'configParameters':_0x1a848e(0x12b),'maxRetries':_0x1a848e(0x1b2),'save':_0x1a848e(0x17b),'saving':_0x1a848e(0x14b),'note1':_0x1a848e(0x1e7),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x1a848e(0x1ee),'configError':_0x1a848e(0x11f),'apiApplyInfo':{'title':_0x1a848e(0x1d0),'description':_0x1a848e(0x1f9),'univerAiLabel':_0x1a848e(0x11c),'getStarted':_0x1a848e(0xed)},'validation':{'apiKeyRequired':_0x1a848e(0x109),'apiKeyTooShort':_0x1a848e(0x18a),'invalidConfig':_0x1a848e(0x222),'invalidApiKey':_0x1a848e(0x1fd)},'connectionStatus':{'disconnected':_0x1a848e(0x173),'connecting':_0x1a848e(0x144),'connected':_0x1a848e(0x162),'failed':_0x1a848e(0x1a4),'retrying':_0x1a848e(0x206)},'connectionError':{'unauthorized':_0x1a848e(0x22e),'sessionOccupied':'会话\x20ID\x20已被占用,请稍后再试','networkError':_0x1a848e(0x1e1),'maxRetriesExceeded':_0x1a848e(0x19a)}}};var N='@univerjs-pro/mcp-ui',P='0.25.0';let F=class extends e[_0x1a848e(0x191)]{constructor(_0x1a09e9=d,_0x3ddaab,_0x1cf915,_0x2d0287,_0x1fa6e0,_0xf625c5){const _0x4767bf=_0x1a848e;super(),this['_config']=_0x1a09e9,this[_0x4767bf(0x13f)]=_0x3ddaab,this[_0x4767bf(0x234)]=_0x1cf915,this['_uiPartsService']=_0x2d0287,this[_0x4767bf(0x115)]=_0x1fa6e0,this[_0x4767bf(0x125)]=_0xf625c5;let {..._0x5a3f19}=(0x0,e[_0x4767bf(0x145)])({},d,this[_0x4767bf(0x1f4)]);this[_0x4767bf(0x234)][_0x4767bf(0x1f7)](u,_0x5a3f19);}async[_0x1a848e(0x246)](){const _0xa18412=_0x1a848e;let _0x33370a=[[E],[b],[A]];this[_0xa18412(0x13f)][_0xa18412(0x154)](c[_0xa18412(0x1b3)])||_0x33370a[_0xa18412(0xf0)]([c[_0xa18412(0x1b3)],{'useClass':c['WebSocketService']}]),_0x33370a['forEach'](_0x4c994a=>this[_0xa18412(0x13f)][_0xa18412(0x137)](_0x4c994a)),this[_0xa18412(0x13f)][_0xa18412(0x134)](E),this[_0xa18412(0x13f)][_0xa18412(0x134)](b),this['_injector'][_0xa18412(0x134)](A);}};h(F,'pluginName','MCP_UI_PLUGIN'),h(F,_0x1a848e(0x118),N),h(F,_0x1a848e(0x1f1),P),F=_([(0x0,e[_0x1a848e(0x12e)])(t[_0x1a848e(0xe5)]),g(0x1,(0x0,e[_0x1a848e(0x21a)])(e[_0x1a848e(0x1af)])),g(0x2,e['IConfigService']),g(0x3,r[_0x1a848e(0x123)]),g(0x4,e['ILocalStorageService']),g(0x5,(0x0,e[_0x1a848e(0x21a)])(e[_0x1a848e(0x226)]))],F),exports[_0x1a848e(0x14f)]=l,Object['defineProperty'](exports,'MCPConfigUIController',{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,'MCPConnectionUIController',{'enumerable':!0x0,'get':function(){return E;}}),exports[_0x1a848e(0x157)]=T,Object[_0x1a848e(0x165)](exports,_0x1a848e(0x1fb),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x1a848e(0xec)]=x,Object[_0x1a848e(0x165)](exports,'UniverMCPUIPlugin',{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x1a848e(0x133)]=j,exports[_0x1a848e(0x1fa)]=M;
|
|
1
|
+
const _0x215031=_0x30f8;(function(_0x25e05f,_0xa0b6b9){const _0x1ded62=_0x30f8,_0x4c8865=_0x25e05f();while(!![]){try{const _0x140913=-parseInt(_0x1ded62(0x1c3))/0x1+-parseInt(_0x1ded62(0x1bd))/0x2*(-parseInt(_0x1ded62(0x2b6))/0x3)+-parseInt(_0x1ded62(0x269))/0x4*(-parseInt(_0x1ded62(0x281))/0x5)+parseInt(_0x1ded62(0x205))/0x6+-parseInt(_0x1ded62(0x288))/0x7+-parseInt(_0x1ded62(0x1f6))/0x8*(-parseInt(_0x1ded62(0x2f0))/0x9)+-parseInt(_0x1ded62(0x1b4))/0xa;if(_0x140913===_0xa0b6b9)break;else _0x4c8865['push'](_0x4c8865['shift']());}catch(_0x200d4f){_0x4c8865['push'](_0x4c8865['shift']());}}}(_0x4761,0x9a39f),Object[_0x215031(0x265)](exports,Symbol[_0x215031(0x2af)],{'value':_0x215031(0x1ec)}));let e=require('@univerjs/core'),t=require('@univerjs-pro/mcp'),n=require('@univerjs/design'),r=require('@univerjs/ui'),i=require('rxjs'),a=require('@univerjs/icons'),o=require('react'),s=require('react/jsx-runtime'),c=require('@univerjs/network');function l(_0x22b9f1){const _0x3173d4=_0x215031;var _0x2c5cb6,_0x265e01;let {mcpCoreConfig:_0x54d6d7,onSave:_0x2bf3e1,loading:_0x240b14=!0x1,config:_0x13464e,connectionStatus$:_0x104c0f,connectionError$:_0x3c12e6,currentApiKey$:_0x3aad14,currentSessionId$:_0x158678}=_0x22b9f1,_0x216134=(0x0,r['useDependency'])(e[_0x3173d4(0x1c4)]),_0x3315b5=(0x0,r[_0x3173d4(0x1b8)])(_0x104c0f,t[_0x3173d4(0x227)][_0x3173d4(0x29e)]),_0x279c9e=(0x0,r[_0x3173d4(0x1b8)])(_0x3c12e6,t[_0x3173d4(0x22e)]['NONE']),_0x3ac65e=(0x0,r['useObservable'])(_0x158678,''),[_0x52051e,_0x2e4000]=(0x0,o[_0x3173d4(0x2ec)])((0x0,r['useObservable'])(_0x3aad14,'')||''),_0x594837=_0x13464e[_0x3173d4(0x1d4)]&&_0x54d6d7['mcpServerUrl']&&(_0x54d6d7['mcpServerUrl'][_0x3173d4(0x24a)](_0x3173d4(0x2d6))||_0x54d6d7[_0x3173d4(0x200)]['includes']('univer.ai')),_0x12d36a=(_0x2c5cb6=_0x54d6d7['mcpServerUrl'])==null?void 0x0:_0x2c5cb6[_0x3173d4(0x24a)](_0x3173d4(0x2d6)),_0x789dc8=(_0x265e01=_0x54d6d7[_0x3173d4(0x200)])==null?void 0x0:_0x265e01[_0x3173d4(0x24a)](_0x3173d4(0x1b7)),_0x55df42=_0x12d36a?'https://console.univer.plus':_0x3173d4(0x29c),_0x3712fa=_0x13464e[_0x3173d4(0x1d4)]&&(_0x12d36a||_0x789dc8),[_0x22ef8b,_0x279446]=(0x0,o[_0x3173d4(0x2ec)])(!_0x52051e[_0x3173d4(0x249)]()),_0x2bcab7=(_0x2a7f58,_0x59d7c1)=>{const _0x4b0898=_0x3173d4;if(_0x59d7c1===t[_0x4b0898(0x22e)]['UNAUTHORIZED'])return _0x4b0898(0x25f);switch(_0x2a7f58){case t[_0x4b0898(0x227)][_0x4b0898(0x214)]:return _0x4b0898(0x2d0);case t[_0x4b0898(0x227)]['CONNECTING']:case t[_0x4b0898(0x227)][_0x4b0898(0x296)]:return _0x4b0898(0x289);case t[_0x4b0898(0x227)][_0x4b0898(0x278)]:return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';default:return'univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200';}},_0x551e6e=(_0x4c4d75,_0xbe38f)=>{const _0x2ab86c=_0x3173d4;if(_0xbe38f===t[_0x2ab86c(0x22e)][_0x2ab86c(0x1a8)])return'univer-bg-red-500';switch(_0x4c4d75){case t[_0x2ab86c(0x227)][_0x2ab86c(0x214)]:return'univer-bg-green-500';case t['MCPConnectionStatus'][_0x2ab86c(0x2c3)]:case t[_0x2ab86c(0x227)][_0x2ab86c(0x296)]:return _0x2ab86c(0x239);case t[_0x2ab86c(0x227)]['FAILED']:return _0x2ab86c(0x271);default:return _0x2ab86c(0x1d3);}},_0x72143d=_0x13ae49=>{const _0x2cb1d6=_0x3173d4;switch(_0x13ae49){case t['MCPConnectionStatus']['CONNECTED']:return _0x216134['t'](_0x2cb1d6(0x236));case t[_0x2cb1d6(0x227)]['CONNECTING']:return _0x216134['t'](_0x2cb1d6(0x2d1));case t[_0x2cb1d6(0x227)][_0x2cb1d6(0x278)]:return _0x216134['t'](_0x2cb1d6(0x1cb));case t[_0x2cb1d6(0x227)]['RETRYING']:return _0x216134['t'](_0x2cb1d6(0x26b));default:return _0x216134['t'](_0x2cb1d6(0x2aa));}},_0x28a95b=_0x4a634c=>{const _0x2cc4d6=_0x3173d4;switch(_0x4a634c){case t[_0x2cc4d6(0x22e)][_0x2cc4d6(0x1a8)]:return _0x216134['t'](_0x2cc4d6(0x300));case t['MCPConnectionError'][_0x2cc4d6(0x1f0)]:return _0x216134['t'](_0x2cc4d6(0x2d7));case t['MCPConnectionError'][_0x2cc4d6(0x24f)]:return _0x216134['t']('mcpConfig.connectionError.networkError');case t[_0x2cc4d6(0x22e)][_0x2cc4d6(0x27b)]:return _0x216134['t'](_0x2cc4d6(0x1eb));default:return'';}},_0x4a557e=(0x0,o[_0x3173d4(0x2f8)])(()=>{const _0x2c82b0=_0x3173d4;_0x2bf3e1({..._0x54d6d7,'apiKey':_0x52051e[_0x2c82b0(0x249)](),'enableAuth':!0x0});},[_0x54d6d7,_0x52051e,!0x0,_0x2bf3e1]),_0x17e788=_0x52051e[_0x3173d4(0x249)]()[_0x3173d4(0x1d2)]>0x0;return(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':_0x3173d4(0x1fe),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x1bb),'children':(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x225),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x264),'children':(0x0,s['jsx'])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x1ff),'children':'⚙'})}),(0x0,s[_0x3173d4(0x2b7)])('div',{'children':(0x0,s[_0x3173d4(0x2b7)])('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x216134['t'](_0x3173d4(0x1e9))})})]})}),(0x0,s['jsxs'])('div',{'className':_0x3173d4(0x1ef),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':(0x0,n[_0x3173d4(0x1d6)])('univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2',_0x2bcab7(_0x3315b5,_0x279c9e)),'children':(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x1ab),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':(0x0,n[_0x3173d4(0x1d6)])('univer-size-2\x20univer-rounded-full',_0x551e6e(_0x3315b5,_0x279c9e))}),(0x0,s[_0x3173d4(0x2b7)])('span',{'className':_0x3173d4(0x2f5),'children':_0x72143d(_0x3315b5)})]})}),_0x279c9e!==t[_0x3173d4(0x22e)][_0x3173d4(0x25b)]&&(_0x3315b5===t[_0x3173d4(0x227)][_0x3173d4(0x278)]||_0x279c9e===t['MCPConnectionError'][_0x3173d4(0x1a8)])&&(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x1ae),'children':(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x253),'children':[(0x0,s[_0x3173d4(0x2b7)])('span',{'className':_0x3173d4(0x203),'children':'⚠️'}),(0x0,s[_0x3173d4(0x2b7)])('p',{'className':'univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','children':_0x28a95b(_0x279c9e)})]})})]}),(0x0,s['jsx'])(_0x3173d4(0x230),{'className':_0x3173d4(0x22d),'children':(0x0,s['jsxs'])('div',{'className':'univer-space-y-5','children':[(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x244),'children':[(0x0,s['jsxs'])(_0x3173d4(0x226),{'className':_0x3173d4(0x2ca),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'children':'🔑'}),'\x20',_0x216134['t'](_0x3173d4(0x21c)),(0x0,s[_0x3173d4(0x2b7)])('span',{'className':_0x3173d4(0x268),'children':'*'}),_0x594837&&(0x0,s[_0x3173d4(0x2b7)])('a',{'className':_0x3173d4(0x1e2),'title':_0x216134['t'](_0x3173d4(0x218)),'role':'button','onClick':()=>_0x279446(!0x0),'children':(0x0,s[_0x3173d4(0x2b7)])(a['HelpIcon'],{})})]}),(0x0,s[_0x3173d4(0x2b7)])(n[_0x3173d4(0x2ef)],{'type':_0x3173d4(0x1de),'placeholder':_0x216134['t'](_0x3173d4(0x1e7)),'value':_0x52051e,'disabled':_0x240b14,'autoComplete':_0x3173d4(0x1c2),'onChange':_0x2e4000}),(0x0,s[_0x3173d4(0x2b7)])('p',{'className':_0x3173d4(0x2ad),'children':_0x216134['t']('mcpConfig.apiKeyHint')})]}),_0x594837&&_0x22ef8b&&(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':'univer-relative\x20univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-gradient-to-r\x20univer-from-blue-50\x20univer-to-indigo-50\x20univer-p-4','children':[(0x0,s[_0x3173d4(0x2b7)])('a',{'className':'univer-absolute\x20univer-right-3\x20univer-top-3\x20univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-text-gray-500\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-gray-700','role':_0x3173d4(0x1c6),'onClick':()=>_0x279446(!0x1),'children':(0x0,s[_0x3173d4(0x2b7)])(a['CloseIcon'],{'className':_0x3173d4(0x1f8)})}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x21a),'children':(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'className':'univer-text-blue-600','children':'🚀'})}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':'univer-flex-1','children':[(0x0,s['jsx'])('h4',{'className':_0x3173d4(0x2e6),'children':_0x216134['t'](_0x3173d4(0x218))}),(0x0,s[_0x3173d4(0x2b7)])('p',{'className':_0x3173d4(0x228),'children':_0x216134['t']('mcpConfig.apiApplyInfo.description')}),(0x0,s[_0x3173d4(0x2b7)])('div',{'className':_0x3173d4(0x1fa),'children':_0x3712fa&&(0x0,s[_0x3173d4(0x229)])('a',{'className':_0x3173d4(0x2b5),'href':_0x55df42,'target':_0x3173d4(0x2c6),'rel':'noopener\x20noreferrer','children':[(0x0,s['jsx'])('span',{'children':'🤖'}),_0x216134['t']('mcpConfig.apiApplyInfo.univerAiLabel'),(0x0,s['jsx'])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x234),'children':'↗'})]})}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2ba),'children':['✨','\x20',_0x216134['t'](_0x3173d4(0x2bb))]})]})]})]}),_0x13464e[_0x3173d4(0x1d4)]&&(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x20e),'children':[(0x0,s[_0x3173d4(0x229)])('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'children':'🔗'}),'\x20',_0x216134['t'](_0x3173d4(0x222))]}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':_0x3173d4(0x291),'children':[(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e8),'children':[(0x0,s[_0x3173d4(0x2b7)])('p',{'className':_0x3173d4(0x1db),'children':_0x216134['t'](_0x3173d4(0x2c9))}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':_0x3173d4(0x244),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x216134['t'](_0x3173d4(0x237))}),(0x0,s[_0x3173d4(0x229)])('div',{'className':_0x3173d4(0x2e5),'children':[(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x1ab),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x1e3),'children':'1'}),_0x216134['t'](_0x3173d4(0x216))]}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':_0x3173d4(0x1ab),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'2'}),_0x216134['t'](_0x3173d4(0x2a1))]}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x1e3),'children':'3'}),_0x216134['t'](_0x3173d4(0x1c7))]})]})]})]}),(0x0,s['jsxs'])(_0x3173d4(0x230),{'className':'univer-space-y-2','children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e1),'children':'MCP\x20Configuration'}),(0x0,s[_0x3173d4(0x2b7)])('div',{'className':_0x3173d4(0x20f),'children':(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x23f),{'className':_0x3173d4(0x232),'children':JSON[_0x3173d4(0x1f1)]({'mcpServers':{'univer':{'url':'https://mcp.univer.ai/mcp/?univer_session_id='+(_0x3ac65e||_0x3173d4(0x21b)),'type':_0x3173d4(0x1f9),'headers':{'Authorization':_0x3173d4(0x2f3)+(_0x52051e||_0x3173d4(0x1b2))}}}},null,0x2)})})]}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e8),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e1),'children':_0x216134['t'](_0x3173d4(0x258))}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x244),'children':[(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2b1),'children':[(0x0,s['jsx'])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e0)}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x273),'children':[(0x0,s[_0x3173d4(0x2b7)])('div',{'className':_0x3173d4(0x2e3),'children':_0x3173d4(0x1f7)}),(0x0,s[_0x3173d4(0x2b7)])('div',{'className':_0x3173d4(0x2ad),'children':_0x216134['t'](_0x3173d4(0x2cf))})]})]}),(0x0,s[_0x3173d4(0x229)])('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[(0x0,s['jsx'])(_0x3173d4(0x230),{'className':_0x3173d4(0x2e0)}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x273),'children':[(0x0,s['jsx'])(_0x3173d4(0x230),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'Authorization:'}),(0x0,s['jsx'])(_0x3173d4(0x230),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x216134['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),(0x0,s[_0x3173d4(0x2b7)])(n[_0x3173d4(0x2fb)],{'onClick':_0x4a557e,'disabled':!_0x17e788||_0x240b14,'className':_0x3173d4(0x2de),'children':_0x240b14?(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x1ab),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x2a2),{'children':'⟲'}),_0x216134['t']('mcpConfig.saving')]}):(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x2a2),{'className':_0x3173d4(0x1ab),'children':[(0x0,s[_0x3173d4(0x2b7)])(a[_0x3173d4(0x290)],{}),_0x216134['t'](_0x3173d4(0x23e))]})}),(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x20d),'children':(0x0,s[_0x3173d4(0x229)])('div',{'className':_0x3173d4(0x217),'children':[(0x0,s[_0x3173d4(0x2b7)])('span',{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'className':_0x3173d4(0x2c4),'children':[(0x0,s[_0x3173d4(0x2b7)])(_0x3173d4(0x230),{'className':_0x3173d4(0x27c),'children':_0x3173d4(0x2bc)}),(0x0,s[_0x3173d4(0x229)])(_0x3173d4(0x230),{'children':['•',_0x216134['t'](_0x3173d4(0x1e0))]}),(0x0,s[_0x3173d4(0x229)])('div',{'children':['•',_0x216134['t'](_0x3173d4(0x2ab))]})]})]})})]})})]});}const u=_0x215031(0x2e9),d={'showDeveloperTools':!0x1,'showStatus':!0x0};function f(_0x5b157f){'@babel/helpers - typeof';const _0x13a0bd=_0x215031;return f=typeof Symbol==_0x13a0bd(0x274)&&typeof Symbol[_0x13a0bd(0x276)]=='symbol'?function(_0x2c1605){return typeof _0x2c1605;}:function(_0x38040f){const _0x3a36f7=_0x13a0bd;return _0x38040f&&typeof Symbol=='function'&&_0x38040f[_0x3a36f7(0x2cd)]===Symbol&&_0x38040f!==Symbol[_0x3a36f7(0x29f)]?_0x3a36f7(0x1dc):typeof _0x38040f;},f(_0x5b157f);}function p(_0x32f163,_0x4bce99){const _0x592a90=_0x215031;if(f(_0x32f163)!='object'||!_0x32f163)return _0x32f163;var _0xa59d78=_0x32f163[Symbol['toPrimitive']];if(_0xa59d78!==void 0x0){var _0x1097ea=_0xa59d78[_0x592a90(0x24e)](_0x32f163,_0x4bce99||_0x592a90(0x1d5));if(f(_0x1097ea)!=_0x592a90(0x1be))return _0x1097ea;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4bce99===_0x592a90(0x1bf)?String:Number)(_0x32f163);}function m(_0x22c722){const _0x2dea07=_0x215031;var _0x3fd8d8=p(_0x22c722,_0x2dea07(0x1bf));return f(_0x3fd8d8)==_0x2dea07(0x1dc)?_0x3fd8d8:_0x3fd8d8+'';}function h(_0x2d2aeb,_0x26f9b7,_0x43e13a){const _0x1ab0cf=_0x215031;return(_0x26f9b7=m(_0x26f9b7))in _0x2d2aeb?Object[_0x1ab0cf(0x265)](_0x2d2aeb,_0x26f9b7,{'value':_0x43e13a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d2aeb[_0x26f9b7]=_0x43e13a,_0x2d2aeb;}function g(_0x2e5af1,_0x3716ce){return function(_0x38a139,_0x556b76){_0x3716ce(_0x38a139,_0x556b76,_0x2e5af1);};}function _(_0xd9c62c,_0x3bb806,_0x32090b,_0x591e6e){const _0x252605=_0x215031;var _0x2da987=arguments[_0x252605(0x1d2)],_0x470ec4=_0x2da987<0x3?_0x3bb806:_0x591e6e===null?_0x591e6e=Object[_0x252605(0x2ea)](_0x3bb806,_0x32090b):_0x591e6e,_0x254881;if(typeof Reflect==_0x252605(0x1be)&&typeof Reflect['decorate']==_0x252605(0x274))_0x470ec4=Reflect['decorate'](_0xd9c62c,_0x3bb806,_0x32090b,_0x591e6e);else{for(var _0x285f95=_0xd9c62c[_0x252605(0x1d2)]-0x1;_0x285f95>=0x0;_0x285f95--)(_0x254881=_0xd9c62c[_0x285f95])&&(_0x470ec4=(_0x2da987<0x3?_0x254881(_0x470ec4):_0x2da987>0x3?_0x254881(_0x3bb806,_0x32090b,_0x470ec4):_0x254881(_0x3bb806,_0x32090b))||_0x470ec4);}return _0x2da987>0x3&&_0x470ec4&&Object[_0x252605(0x265)](_0x3bb806,_0x32090b,_0x470ec4),_0x470ec4;}const v=_0x215031(0x21f),y=_0x215031(0x1cf);let b=class extends e[_0x215031(0x1ee)]{constructor(_0x6c1530,_0x3945b4,_0x72f13a,_0x44de13,_0x9e367c,_0x336aca,_0x403de2,_0x51f1fa,_0x1463b5,_0x1b6588){const _0x11c094=_0x215031;super(),this['_injector']=_0x6c1530,this[_0x11c094(0x2b9)]=_0x3945b4,this['_configService']=_0x72f13a,this[_0x11c094(0x295)]=_0x44de13,this[_0x11c094(0x1b6)]=_0x9e367c,this['_messageService']=_0x336aca,this[_0x11c094(0x243)]=_0x403de2,this[_0x11c094(0x29d)]=_0x51f1fa,this['_logService']=_0x1463b5,this['_mcpConnectionController']=_0x1b6588,h(this,'_loading$',new i[(_0x11c094(0x22f))](!0x1)),h(this,_0x11c094(0x25a),new i[(_0x11c094(0x22f))]({})),h(this,_0x11c094(0x2c7),new i[(_0x11c094(0x22f))]({})),h(this,_0x11c094(0x1ac),new i['BehaviorSubject']('')),h(this,'_handleConfigSave',async _0x113fbf=>{const _0x1bc6eb=_0x11c094;this[_0x1bc6eb(0x1cc)][_0x1bc6eb(0x2e2)](!0x0);try{var _0x17103e,_0x19e53d;let _0x36bf27=await this['_validateConfig'](_0x113fbf);if(!_0x36bf27[_0x1bc6eb(0x252)]){this[_0x1bc6eb(0x248)]['show']({'type':n[_0x1bc6eb(0x267)][_0x1bc6eb(0x2c2)],'content':_0x36bf27[_0x1bc6eb(0x2eb)]||this[_0x1bc6eb(0x29d)]['t'](_0x1bc6eb(0x1d8))});return;}_0x113fbf[_0x1bc6eb(0x2b2)]?await this[_0x1bc6eb(0x295)]['setItem'](v,_0x113fbf[_0x1bc6eb(0x2b2)][_0x1bc6eb(0x249)]()):await this[_0x1bc6eb(0x295)][_0x1bc6eb(0x263)](v),this['_apiKey$'][_0x1bc6eb(0x2e2)](((_0x17103e=_0x113fbf[_0x1bc6eb(0x2b2)])==null?void 0x0:_0x17103e[_0x1bc6eb(0x249)]())||''),this[_0x1bc6eb(0x2ce)][_0x1bc6eb(0x28f)]({'Authorization':'Bearer\x20'+((_0x19e53d=_0x113fbf[_0x1bc6eb(0x2b2)])==null?void 0x0:_0x19e53d[_0x1bc6eb(0x249)]())}),this[_0x1bc6eb(0x248)][_0x1bc6eb(0x238)]({'type':n[_0x1bc6eb(0x267)]['Success'],'content':this['_localeService']['t'](_0x1bc6eb(0x240))}),setTimeout(()=>{const _0x39c0b2=_0x1bc6eb;this[_0x39c0b2(0x1b6)][_0x39c0b2(0x2ae)](y);},0x320);}catch(_0x51ea59){this[_0x1bc6eb(0x1dd)]['error'](_0x1bc6eb(0x246),_0x51ea59),this[_0x1bc6eb(0x248)][_0x1bc6eb(0x238)]({'type':n[_0x1bc6eb(0x267)]['Error'],'content':this[_0x1bc6eb(0x29d)]['t'](_0x1bc6eb(0x259))});}finally{this[_0x1bc6eb(0x1cc)][_0x1bc6eb(0x2e2)](!0x1);}}),this[_0x11c094(0x2f7)](),this['_loadStoredApiKey'](),this[_0x11c094(0x2a0)]();}[_0x215031(0x22a)](){const _0x1fc4f9=_0x215031;let _0x4b3383=this[_0x1fc4f9(0x20b)][_0x1fc4f9(0x270)](u);_0x4b3383!=null&&_0x4b3383[_0x1fc4f9(0x1d4)]&&this[_0x1fc4f9(0x1b6)][_0x1fc4f9(0x301)]({'id':y,'title':{'title':this[_0x1fc4f9(0x29d)]['t'](_0x1fc4f9(0x250))},'children':{'label':_0x1fc4f9(0x1f4)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x281a24=_0x1fc4f9;this[_0x281a24(0x1b6)]['close'](y);}});}[_0x215031(0x2a4)](){const _0xe31836=_0x215031;return this[_0xe31836(0x25a)][_0xe31836(0x1d1)];}[_0x215031(0x2a0)](){const _0x4d7d87=_0x215031;this[_0x4d7d87(0x1cd)](this[_0x4d7d87(0x243)]['register'](_0x4d7d87(0x1f4),this['_createConfigPanelComponent']()));}[_0x215031(0x1e5)](){const _0x2b63c0=_0x215031;return(0x0,r[_0x2b63c0(0x2f2)])(()=>{const _0x221322=_0x2b63c0;var _0x2c29bf,_0xf8a172,_0x8c71bb;return(0x0,s[_0x221322(0x2b7)])(l,{'config':this['_config$'][_0x221322(0x1d1)],'mcpCoreConfig':this[_0x221322(0x25a)][_0x221322(0x1d1)],'currentApiKey$':this['_apiKey$'],'onSave':this[_0x221322(0x285)],'loading':this[_0x221322(0x1cc)]['value'],'connectionStatus$':(_0x2c29bf=this['_mcpConnectionController'])==null?void 0x0:_0x2c29bf[_0x221322(0x235)],'connectionError$':(_0xf8a172=this['_mcpConnectionController'])==null?void 0x0:_0xf8a172['connectionError$'],'currentSessionId$':(_0x8c71bb=this[_0x221322(0x2ce)])==null?void 0x0:_0x8c71bb[_0x221322(0x27d)]});},this[_0x2b63c0(0x2fa)]);}[_0x215031(0x2f7)](){const _0x2221e1=_0x215031;this[_0x2221e1(0x1cd)](this[_0x2221e1(0x20b)]['subscribeConfigValue$'](t[_0x2221e1(0x23a)])[_0x2221e1(0x1b5)](_0x1f053e=>{const _0x54aec2=_0x2221e1;this[_0x54aec2(0x25a)][_0x54aec2(0x2e2)](_0x1f053e||{});}));let _0x4e85ed=this[_0x2221e1(0x20b)][_0x2221e1(0x270)](t[_0x2221e1(0x23a)]);this[_0x2221e1(0x25a)]['next'](_0x4e85ed||{}),this[_0x2221e1(0x1cd)](this['_configService']['subscribeConfigValue$'](u)[_0x2221e1(0x1b5)](_0x34b4f5=>{const _0x16d317=_0x2221e1;this['_config$'][_0x16d317(0x2e2)](_0x34b4f5||{});}));let _0x5520f3=this[_0x2221e1(0x20b)][_0x2221e1(0x270)](u);this['_config$']['next'](_0x5520f3||{});}async['_loadStoredApiKey'](){const _0x5710a4=_0x215031;let _0x2cda6c=this[_0x5710a4(0x20b)][_0x5710a4(0x270)](u);if(!(_0x2cda6c!=null&&_0x2cda6c[_0x5710a4(0x1d4)]))return;let _0x2fd006=await this[_0x5710a4(0x295)][_0x5710a4(0x24d)](v);_0x2fd006&&(this[_0x5710a4(0x2ce)]['__setCustomHeaders']({'Authorization':_0x5710a4(0x2f3)+_0x2fd006}),this[_0x5710a4(0x1ac)][_0x5710a4(0x2e2)](_0x2fd006));}async['_validateConfig'](_0x2dfd98){const _0x474188=_0x215031;if(!_0x2dfd98[_0x474188(0x2b2)]||_0x2dfd98['apiKey'][_0x474188(0x249)]()[_0x474188(0x1d2)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x474188(0x29d)]['t'](_0x474188(0x1d7))};if(_0x2dfd98[_0x474188(0x2b2)]['trim']()[_0x474188(0x1d2)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x474188(0x29d)]['t']('mcpConfig.validation.apiKeyTooShort')};try{let _0x3137d1=await this[_0x474188(0x2fa)][_0x474188(0x219)](t[_0x474188(0x2f6)])['validateApiKey'](_0x2dfd98[_0x474188(0x2b2)]['trim']());return _0x3137d1[_0x474188(0x252)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3137d1[_0x474188(0x2d2)]||this[_0x474188(0x29d)]['t'](_0x474188(0x282))};}catch(_0x50a556){return console[_0x474188(0x272)](_0x474188(0x206),_0x50a556),{'isValid':!0x0};}}};b=_([g(0x0,(0x0,e[_0x215031(0x220)])(e[_0x215031(0x1f3)])),g(0x1,r[_0x215031(0x292)]),g(0x2,e['IConfigService']),g(0x3,e[_0x215031(0x1af)]),g(0x4,r[_0x215031(0x277)]),g(0x5,r[_0x215031(0x255)]),g(0x6,(0x0,e[_0x215031(0x220)])(r[_0x215031(0x26d)])),g(0x7,(0x0,e['Inject'])(e[_0x215031(0x1c4)])),g(0x8,e[_0x215031(0x215)]),g(0x9,(0x0,e['Inject'])(t[_0x215031(0x2f6)]))],b);const x={'id':_0x215031(0x2bf),'type':e[_0x215031(0x2df)]['COMMAND'],'handler':async(_0x1baed6,_0x371b04)=>(_0x1baed6['get'](b)[_0x215031(0x22a)](),!0x0)};function S(_0x20d93e,_0x5b24bf){const _0x314e1a=_0x215031;switch(_0x20d93e){case t[_0x314e1a(0x227)][_0x314e1a(0x29e)]:return _0x314e1a(0x27a);case t[_0x314e1a(0x227)][_0x314e1a(0x2c3)]:return _0x314e1a(0x21e);case t['MCPConnectionStatus'][_0x314e1a(0x214)]:return _0x314e1a(0x24b);case t[_0x314e1a(0x227)][_0x314e1a(0x278)]:switch(_0x5b24bf){case t['MCPConnectionError'][_0x314e1a(0x1a8)]:return _0x314e1a(0x2ff);case t[_0x314e1a(0x22e)][_0x314e1a(0x1f0)]:return _0x314e1a(0x1c9);case t[_0x314e1a(0x22e)][_0x314e1a(0x24f)]:return'mcpStatus.networkError';case t[_0x314e1a(0x22e)]['MAX_RETRIES_EXCEEDED']:return _0x314e1a(0x1c5);default:return _0x314e1a(0x2b0);}case t[_0x314e1a(0x227)][_0x314e1a(0x296)]:return _0x314e1a(0x28d);default:return'mcpStatus.unknown';}}function C(_0x1ab034,_0x5ac853,_0x130c81,_0x2cfd76=!0x0){const _0x34ea5d=_0x215031;let _0x51dea2=S(_0x1ab034,_0x5ac853),_0x55cd6c=_0x130c81['t'](_0x51dea2);return _0x2cfd76?_0x1ab034===t[_0x34ea5d(0x227)][_0x34ea5d(0x29e)]&&_0x5ac853===t[_0x34ea5d(0x22e)][_0x34ea5d(0x1a8)]?_0x55cd6c+_0x34ea5d(0x2a3)+_0x130c81['t']('mcpStatus.clickToConfigure'):_0x1ab034===t['MCPConnectionStatus'][_0x34ea5d(0x214)]?''+_0x55cd6c:_0x1ab034===t['MCPConnectionStatus'][_0x34ea5d(0x29e)]||_0x1ab034===t[_0x34ea5d(0x227)][_0x34ea5d(0x278)]?_0x55cd6c+_0x34ea5d(0x2a3)+_0x130c81['t'](_0x34ea5d(0x1f5)):_0x55cd6c:_0x55cd6c;}function w(_0x26817c){const _0x4fa78f=_0x215031;switch(_0x26817c){case t[_0x4fa78f(0x227)]['CONNECTED']:return _0x4fa78f(0x2b8);case t[_0x4fa78f(0x227)][_0x4fa78f(0x2c3)]:case t[_0x4fa78f(0x227)][_0x4fa78f(0x296)]:return _0x4fa78f(0x2da);case t['MCPConnectionStatus'][_0x4fa78f(0x278)]:case t[_0x4fa78f(0x227)]['DISCONNECTED']:return _0x4fa78f(0x268);default:return _0x4fa78f(0x2be);}}function T(_0x16178c){const _0x49dead=_0x215031;let {status$:_0x231a96,error$:_0x1c0f5a,onConfigure:_0x49ffbe,showClickable:_0x3803d5=!0x0}=_0x16178c,_0xceea29=(0x0,r[_0x49dead(0x1b8)])(_0x231a96,t[_0x49dead(0x227)][_0x49dead(0x29e)]),_0x15d347=(0x0,r['useObservable'])(_0x1c0f5a,t['MCPConnectionError'][_0x49dead(0x25b)]),_0x27b601=(0x0,r[_0x49dead(0x26c)])(e['LocaleService']),_0x262c73=_0xceea29===t[_0x49dead(0x227)][_0x49dead(0x214)];_0xceea29===t[_0x49dead(0x227)][_0x49dead(0x2c3)]||t[_0x49dead(0x227)][_0x49dead(0x296)];let _0x487e66=_0x27b601['t'](S(_0xceea29,_0x15d347)),_0x311a81=C(_0xceea29,_0x15d347,_0x27b601,_0x3803d5),_0xc81bd2=w(_0xceea29),_0xbccc2c=_0x262c73?(0x0,s['jsx'])(a[_0x49dead(0x254)],{}):(0x0,s[_0x49dead(0x2b7)])(a['OffLineIcon'],{}),_0x24aa73=(0x0,o[_0x49dead(0x2f8)])(()=>{_0x3803d5&&_0x49ffbe&&_0x49ffbe();},[_0x3803d5,_0x49ffbe]);function _0x328e83(){const _0x10d589=_0x49dead;return(0x0,s[_0x10d589(0x229)])('div',{'className':(0x0,n[_0x10d589(0x1d6)])(_0x10d589(0x1e8),_0x3803d5&&_0x49ffbe&&_0x10d589(0x2cb)),'role':_0x10d589(0x1c6),'onClick':_0x3803d5&&_0x49ffbe?_0x24aa73:void 0x0,'children':[(0x0,s[_0x10d589(0x2b7)])(_0x10d589(0x230),{'className':(0x0,n[_0x10d589(0x1d6)])(_0x10d589(0x1b3),_0xc81bd2),'children':_0xbccc2c}),(0x0,s[_0x10d589(0x2b7)])(_0x10d589(0x230),{'className':_0x10d589(0x2a5),'children':_0x487e66})]});}return(0x0,s[_0x49dead(0x2b7)])(n['Tooltip'],{'title':_0x311a81,'placement':_0x49dead(0x257),'children':_0x328e83()});}let E=class extends e['Disposable']{constructor(_0xdd3bec,_0x49b69d,_0x5dd197,_0x38bef8){const _0x185b70=_0x215031;super(),this[_0x185b70(0x2fa)]=_0xdd3bec,this[_0x185b70(0x202)]=_0x49b69d,this['_uiPartsService']=_0x5dd197,this['_configService']=_0x38bef8,this[_0x185b70(0x1c0)](),this['_initStatusComponent']();}[_0x215031(0x1c0)](){const _0x3b5c26=_0x215031;let _0x41fc6b=this[_0x3b5c26(0x20b)]['getConfig'](u);_0x41fc6b!=null&&_0x41fc6b['showDeveloperTools']&&(this[_0x3b5c26(0x202)][_0x3b5c26(0x23d)]=!0x1);}['_initStatusComponent'](){const _0x2f3bcc=_0x215031;let _0x128932=this[_0x2f3bcc(0x20b)][_0x2f3bcc(0x270)](u);(_0x128932==null?void 0x0:_0x128932[_0x2f3bcc(0x1bc)])!==!0x1&&this['disposeWithMe'](this[_0x2f3bcc(0x2b9)][_0x2f3bcc(0x1a7)](r['BuiltInUIPart'][_0x2f3bcc(0x2f4)],()=>{const _0x9a5cc0=_0x2f3bcc;var _0xd16335;return(0x0,r['connectInjector'])(D({'status$':this[_0x9a5cc0(0x202)][_0x9a5cc0(0x235)],'error$':this[_0x9a5cc0(0x202)][_0x9a5cc0(0x283)],'onConfigure':()=>this[_0x9a5cc0(0x2d9)](),'showClickable':(_0xd16335=_0x128932==null?void 0x0:_0x128932[_0x9a5cc0(0x1d4)])==null?!0x1:_0xd16335}),this[_0x9a5cc0(0x2fa)]);}));}[_0x215031(0x2d9)](){const _0x12b638=_0x215031;this[_0x12b638(0x2fa)][_0x12b638(0x219)](b)[_0x12b638(0x22a)]();}};E=_([g(0x0,(0x0,e[_0x215031(0x220)])(e[_0x215031(0x1f3)])),g(0x1,(0x0,e[_0x215031(0x220)])(t[_0x215031(0x2f6)])),g(0x2,r[_0x215031(0x292)]),g(0x3,e['IConfigService'])],E);function D(_0x56b4c8){let {status$:_0x48fa20,error$:_0x5850b7,onConfigure:_0x2f8501,showClickable:_0x3254e1}=_0x56b4c8;return function(){return(0x0,s['jsx'])(T,{'status$':_0x48fa20,'error$':_0x5850b7,'onConfigure':_0x2f8501,'showClickable':_0x3254e1});};}function O(_0x4d2199){const _0x46e443=_0x215031;return{'id':x['id'],'type':r[_0x46e443(0x1ea)]['BUTTON'],'icon':_0x46e443(0x2c1),'title':_0x46e443(0x250),'tooltip':_0x46e443(0x250)};}const k={[r[_0x215031(0x27e)][_0x215031(0x2d8)]]:{[x['id']]:{'order':0xa,'menuItemFactory':O}}};let A=class extends e['Disposable']{constructor(_0x4c88eb,_0x231107){const _0x4dde15=_0x215031;super(),this[_0x4dde15(0x20a)]=_0x4c88eb,this['_menuManagerService']=_0x231107,this['_initializeCommands'](),this[_0x4dde15(0x2fe)]();}[_0x215031(0x1e4)](){[x]['forEach'](_0x1f9c82=>{const _0x40e553=_0x30f8;this[_0x40e553(0x1cd)](this[_0x40e553(0x20a)][_0x40e553(0x23c)](_0x1f9c82));});}[_0x215031(0x2fe)](){const _0x4dc795=_0x215031;this[_0x4dc795(0x2a9)][_0x4dc795(0x28e)](k);}};A=_([g(0x0,e[_0x215031(0x1ce)]),g(0x1,r['IMenuManagerService'])],A);const j={'mcpStatus':{'disconnected':_0x215031(0x2a8),'connecting':_0x215031(0x2db),'connected':_0x215031(0x260),'failed':_0x215031(0x287),'retrying':_0x215031(0x28a),'unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x215031(0x1ed),'networkError':_0x215031(0x208),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x215031(0x1b1),'clickToConfigure':_0x215031(0x1c1)},'mcpConfig':{'title':_0x215031(0x1e1),'description':_0x215031(0x293),'apiKey':_0x215031(0x2bd),'apiKeyPlaceholder':_0x215031(0x245),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x215031(0x209),'enableAuthHint':_0x215031(0x1fd),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x215031(0x261),'configInstructions':_0x215031(0x2c8),'configStepTitle':_0x215031(0x1d0),'configStep1':_0x215031(0x22b),'configStep2':_0x215031(0x2fd),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':'Configuration\x20Parameters:','maxRetries':_0x215031(0x2d4),'save':_0x215031(0x27f),'saving':_0x215031(0x1d9),'note1':_0x215031(0x2ee),'note2':_0x215031(0x28b),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x215031(0x223),'apiApplyInfo':{'title':_0x215031(0x1fc),'description':_0x215031(0x2e7),'univerAiLabel':_0x215031(0x2b3),'getStarted':_0x215031(0x1c8)},'validation':{'apiKeyRequired':_0x215031(0x280),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x215031(0x26a),'invalidApiKey':_0x215031(0x298)},'connectionStatus':{'disconnected':_0x215031(0x242),'connecting':_0x215031(0x1ca),'connected':_0x215031(0x224),'failed':_0x215031(0x2c5),'retrying':_0x215031(0x2d5)},'connectionError':{'unauthorized':_0x215031(0x1da),'sessionOccupied':_0x215031(0x21d),'networkError':_0x215031(0x2b4),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},M={'mcpStatus':{'disconnected':_0x215031(0x2ed),'connecting':_0x215031(0x2e4),'connected':_0x215031(0x204),'failed':_0x215031(0x2ac),'retrying':_0x215031(0x213),'unknown':_0x215031(0x2a6),'unauthorized':_0x215031(0x294),'sessionOccupied':_0x215031(0x1ad),'networkError':_0x215031(0x1f2),'maxRetriesExceeded':_0x215031(0x233),'clickToConnect':_0x215031(0x2d3),'clickToConfigure':'点击配置\x20MCP'},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':_0x215031(0x22c),'apiKeyPlaceholder':_0x215031(0x1e6),'apiKeyHint':_0x215031(0x275),'enableAuth':_0x215031(0x25d),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x215031(0x2f9),'mcpClientConfig':_0x215031(0x2f9),'configInstructions':_0x215031(0x1fb),'configStepTitle':_0x215031(0x241),'configStep1':_0x215031(0x26f),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x215031(0x25e),'sessionId':_0x215031(0x262),'sessionIdDescription':_0x215031(0x1df),'authorizationDescription':_0x215031(0x251),'configParameters':_0x215031(0x210),'maxRetries':_0x215031(0x20c),'save':_0x215031(0x1b9),'saving':'保存中...','note1':_0x215031(0x23b),'note2':_0x215031(0x284),'configSaved':_0x215031(0x2f1),'configError':'配置保存失败','apiApplyInfo':{'title':'什么是\x20API\x20密钥?','description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x215031(0x207),'apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20位','invalidConfig':_0x215031(0x221),'invalidApiKey':_0x215031(0x29b)},'connectionStatus':{'disconnected':_0x215031(0x29a),'connecting':'连接中...','connected':_0x215031(0x299),'failed':_0x215031(0x286),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x215031(0x28c),'sessionOccupied':_0x215031(0x247),'networkError':_0x215031(0x212),'maxRetriesExceeded':_0x215031(0x2dd)}}};function _0x4761(){const _0x475671=['476213RCcsWZ','LocaleService','mcpStatus.maxRetriesExceeded','button','mcpConfig.configStep3','Get\x20your\x20API\x20key\x20in\x20seconds','mcpStatus.sessionOccupied','Connecting...','mcpConfig.connectionStatus.failed','_loading$','disposeWithMe','ICommandService','mcp-config-dialog','Configuration\x20Steps:','value','length','univer-bg-gray-500','showDeveloperTools','default','clsx','mcpConfig.validation.apiKeyRequired','mcpConfig.validation.invalidConfig','Saving...','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-text-xs\x20univer-text-gray-600','symbol','_logService','text','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','mcpConfig.note1','MCP\x20Configuration','univer-ml-1\x20univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-text-blue-600\x20univer-transition-all\x20univer-duration-200\x20hover:univer-scale-110\x20hover:univer-text-blue-800','univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','_initializeCommands','_createConfigPanelComponent','请输入您的\x20API\x20密钥','mcpConfig.apiKeyPlaceholder','univer-flex\x20univer-items-center','mcpConfig.description','MenuItemType','mcpConfig.connectionError.maxRetriesExceeded','Module','MCP:\x20Session\x20ID\x20Occupied','Disposable','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','SESSION_ID_OCCUPIED','stringify','MCP:\x20网络错误','Injector','MCPConfigPanel','mcpStatus.clickToConnect','160lIPGXk','univer_session_id:','univer-size-4','http','univer-flex\x20univer-flex-wrap\x20univer-gap-2','将以下配置添加到您的\x20MCP\x20客户端设置中:','What\x20is\x20API\x20Key?','Enable\x20authentication\x20for\x20secure\x20connections','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','univer-text-white','mcpServerUrl','WebSocketService','_connectionController','univer-shrink-0\x20univer-text-red-500','MCP\x20已连接','1946502SSmqag','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','API\x20密钥不能为空','MCP:\x20Network\x20Error','Enable\x20Authentication','_commandService','_configService','最大重试次数','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','配置参数:','Plugin','网络连接错误,请检查您的网络连接','MCP\x20重连中...','CONNECTED','ILogService','mcpConfig.configStep1','univer-flex\x20univer-gap-3','mcpConfig.apiApplyInfo.title','get','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','<SESSION_ID>','mcpConfig.apiKey','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','mcpStatus.connecting','mcp.apiKey','Inject','配置无效','mcpConfig.connectionInfo','Failed\x20to\x20save\x20configuration','Connected','univer-flex\x20univer-items-center\x20univer-gap-3','label','MCPConnectionStatus','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','jsxs','showConfigPanel','Copy\x20the\x20JSON\x20configuration\x20below','API\x20密钥','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','MCPConnectionError','BehaviorSubject','div','MCPUIMenuController','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','MCP:\x20超出最大重试次数','univer-text-gray-400','connectionStatus$','mcpConfig.connectionStatus.connected','mcpConfig.configStepTitle','show','univer-bg-blue-500','MCP_PLUGIN_CONFIG_KEY','配置更改将立即生效','registerCommand','enableAutoConnect','mcpConfig.save','pre','mcpConfig.configSaved','配置步骤:','Disconnected','_componentManager','univer-space-y-2','Enter\x20your\x20API\x20key','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','会话\x20ID\x20已被占用,请稍后再试','_messageService','trim','includes','mcpStatus.connected','OpenMCPConfigPanelCommand','getItem','call','NETWORK_ERROR','mcpConfig.title','带有\x20Bearer\x20前缀的\x20API\x20密钥。','isValid','univer-flex\x20univer-items-start\x20univer-gap-2','OnLineIcon','IMessageService','merge','bottom','mcpConfig.configParameters','mcpConfig.configError','_mcpCoreConfig$','NONE','packageName','启用身份验证','重启您的\x20MCP\x20客户端以使配置生效','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','MCP\x20Connected','MCP\x20Client\x20Configuration','会话ID','removeItem','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','defineProperty','MCPConfigUIController','MessageType','univer-text-red-500','8qDehZw','Invalid\x20configuration','mcpConfig.connectionStatus.retrying','useDependency','ComponentManager','0.25.1','复制以下\x20JSON\x20配置','getConfig','univer-bg-red-500','warn','univer-min-w-0\x20univer-flex-1','function','您的\x20API\x20密钥将在此浏览器中本地存储','iterator','IDialogService','FAILED','forEach','mcpStatus.disconnected','MAX_RETRIES_EXCEEDED','univer-font-medium','sessionId$','RibbonStartGroup','Save\x20Configuration','API\x20key\x20is\x20required','2509345peMmEj','mcpConfig.validation.invalidApiKey','connectionError$','您的\x20API\x20密钥安全存储在本地存储中','_handleConfigSave','连接失败','MCP\x20Connection\x20Failed','5183948vFBPLm','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','MCP\x20Retrying...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','权限验证失败,请检查您的\x20API\x20密钥','mcpStatus.retrying','mergeMenu','__setCustomHeaders','CheckMarkIcon','univer-space-y-4','IUIPartsService','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20未授权','_localStorageService','RETRYING','ISocketService','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','已连接','未连接','API\x20密钥无效,请检查密钥是否正确','https://console.univer.ai','_localeService','DISCONNECTED','prototype','_registerComponent','mcpConfig.configStep2','span','\x20-\x20','getCurrentConfig','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MCP\x20状态未知','pluginName','MCP\x20Disconnected','_menuManagerService','mcpConfig.connectionStatus.disconnected','mcpConfig.note2','MCP\x20连接失败','univer-text-xs\x20univer-text-gray-500','close','toStringTag','mcpStatus.failed','univer-flex\x20univer-items-start\x20univer-gap-3','apiKey','Univer\x20AI\x20Console','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','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','2457171nmGpqh','jsx','univer-text-green-500','_uiPartsService','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','mcpConfig.apiApplyInfo.getStarted','Configuration\x20Notes:','API\x20Key','univer-text-gray-500','mcp-ui.command.openConfigPanel','MCP_UI_PLUGIN','MenuIcon','Error','CONNECTING','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Connection\x20Failed','_blank','_config$','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','mcpConfig.configInstructions','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','\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','enUS','constructor','_mcpConnectionController','mcpConfig.sessionIdDescription','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.connectionStatus.connecting','error','点击连接\x20MCP','Max\x20Retries','Retrying...','univer.plus','mcpConfig.connectionError.sessionOccupied','OTHERS','_handleConfigure','univer-text-yellow-500','MCP\x20Connecting...','MCPConnectionUIController','超出最大重试次数,请稍后再试','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','CommandType','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','next','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','MCP\x20连接中...','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univer-space-y-3','mcp-ui.config','getOwnPropertyDescriptor','errorMessage','useState','MCP\x20已断开','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Input','18153EFMudC','配置保存成功','connectInjector','Bearer\x20','HEADER_MENU','univer-text-sm\x20univer-font-medium','MCPConnectionController','_initConfigSync','useCallback','MCP\x20客户端配置','_injector','Button','_config','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','_initializeMenus','mcpStatus.unauthorized','mcpConfig.connectionError.unauthorized','open','registerComponent','UNAUTHORIZED','setConfig','UniverMCPPlugin','univer-flex\x20univer-items-center\x20univer-gap-2','_apiKey$','MCP:\x20会话\x20ID\x20已被占用','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','ILocalStorageService','UniverMCPUIPlugin','Click\x20to\x20connect\x20MCP','<API_KEY>','univer-mr-2\x20univer-flex\x20univer-text-xl','3390640rVblaV','subscribe','_dialogService','univer.ai','useObservable','保存配置','add','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','showStatus','2wumhCq','object','string','_initAutoConnect','Click\x20to\x20configure\x20MCP','off'];_0x4761=function(){return _0x475671;};return _0x4761();}function _0x30f8(_0x788d69,_0x34923a){_0x788d69=_0x788d69-0x1a7;const _0x47613f=_0x4761();let _0x30f88b=_0x47613f[_0x788d69];return _0x30f88b;}var N='@univerjs-pro/mcp-ui',P=_0x215031(0x26e);let F=class extends e[_0x215031(0x211)]{constructor(_0x2cab50=d,_0x5ef4eb,_0x4f3989,_0x32ee05,_0x1849e4,_0x9ba6af){const _0x1ec114=_0x215031;super(),this[_0x1ec114(0x2fc)]=_0x2cab50,this[_0x1ec114(0x2fa)]=_0x5ef4eb,this[_0x1ec114(0x20b)]=_0x4f3989,this[_0x1ec114(0x2b9)]=_0x32ee05,this['_localStorageService']=_0x1849e4,this[_0x1ec114(0x29d)]=_0x9ba6af;let {..._0x4b3654}=(0x0,e[_0x1ec114(0x256)])({},d,this[_0x1ec114(0x2fc)]);this[_0x1ec114(0x20b)][_0x1ec114(0x1a9)](u,_0x4b3654);}async['onStarting'](){const _0x405423=_0x215031;let _0x1ec63d=[[E],[b],[A]];this['_injector']['has'](c[_0x405423(0x297)])||_0x1ec63d['push']([c[_0x405423(0x297)],{'useClass':c[_0x405423(0x201)]}]),_0x1ec63d[_0x405423(0x279)](_0x564dce=>this['_injector'][_0x405423(0x1ba)](_0x564dce)),this['_injector'][_0x405423(0x219)](E),this[_0x405423(0x2fa)][_0x405423(0x219)](b),this[_0x405423(0x2fa)]['get'](A);}};h(F,_0x215031(0x2a7),_0x215031(0x2c0)),h(F,_0x215031(0x25c),N),h(F,'version',P),F=_([(0x0,e['DependentOn'])(t[_0x215031(0x1aa)]),g(0x1,(0x0,e[_0x215031(0x220)])(e[_0x215031(0x1f3)])),g(0x2,e['IConfigService']),g(0x3,r['IUIPartsService']),g(0x4,e[_0x215031(0x1af)]),g(0x5,(0x0,e[_0x215031(0x220)])(e[_0x215031(0x1c4)]))],F),exports[_0x215031(0x1f4)]=l,Object[_0x215031(0x265)](exports,_0x215031(0x266),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x215031(0x265)](exports,_0x215031(0x2dc),{'enumerable':!0x0,'get':function(){return E;}}),exports['MCPStatusDisplay']=T,Object[_0x215031(0x265)](exports,_0x215031(0x231),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x215031(0x24c)]=x,Object[_0x215031(0x265)](exports,_0x215031(0x1b0),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x215031(0x2cc)]=j,exports['zhCN']=M;
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3049(_0x1cd5b8,_0x33c191){_0x1cd5b8=_0x1cd5b8-0x1b0;const _0x3f00b9=_0x3f00();let _0x304977=_0x3f00b9[_0x1cd5b8];return _0x304977;}const _0x546c91=_0x3049;(function(_0x43a93f,_0x4bcfe3){const _0x38e1d9=_0x3049,_0x53a0e3=_0x43a93f();while(!![]){try{const _0xdc4ece=-parseInt(_0x38e1d9(0x1b0))/0x1*(parseInt(_0x38e1d9(0x1d2))/0x2)+parseInt(_0x38e1d9(0x1b8))/0x3*(-parseInt(_0x38e1d9(0x1e0))/0x4)+parseInt(_0x38e1d9(0x1de))/0x5*(parseInt(_0x38e1d9(0x1c5))/0x6)+parseInt(_0x38e1d9(0x1c7))/0x7*(-parseInt(_0x38e1d9(0x1d4))/0x8)+-parseInt(_0x38e1d9(0x1ba))/0x9*(-parseInt(_0x38e1d9(0x1e6))/0xa)+-parseInt(_0x38e1d9(0x1e1))/0xb+-parseInt(_0x38e1d9(0x1b3))/0xc*(-parseInt(_0x38e1d9(0x1b6))/0xd);if(_0xdc4ece===_0x4bcfe3)break;else _0x53a0e3['push'](_0x53a0e3['shift']());}catch(_0x3d28d3){_0x53a0e3['push'](_0x53a0e3['shift']());}}}(_0x3f00,0x2d0d8));function _0x3f00(){const _0x4c0c3e=['MCP\x20Connecting...','208yMgoTk','MCP:\x20Max\x20Retries\x20Exceeded','60861qSIeOy','Enter\x20your\x20API\x20key','145098iDbqIp','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Enable\x20authentication\x20for\x20secure\x20connections','MCP\x20Connected','Click\x20to\x20configure\x20MCP','Configuration\x20Parameters:','API\x20key\x20is\x20required','Connected','Max\x20Retries','API\x20Key','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','244686GiEHPY','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','14UYirWM','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Retrying...','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','exports','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','562102FQxqHQ','Connection\x20Failed','1253864nmHIhq','Enable\x20Authentication','MCP\x20Disconnected','Session\x20ID','Saving...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','20lmtpsG','API\x20key\x20with\x20Bearer\x20prefix.','68YnzYDs','3760416FguuhQ','Invalid\x20configuration','Connecting...','Get\x20your\x20API\x20key\x20in\x20seconds','MCP\x20Unknown\x20Status','40tmFoeg','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','1MzlBzR','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Configuration\x20Steps:','928632QgBOUZ','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file'];_0x3f00=function(){return _0x4c0c3e;};return _0x3f00();}const e={'mcpStatus':{'disconnected':_0x546c91(0x1d6),'connecting':_0x546c91(0x1b5),'connected':_0x546c91(0x1bd),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x546c91(0x1e5),'unauthorized':_0x546c91(0x1cc),'sessionOccupied':_0x546c91(0x1cb),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x546c91(0x1b7),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x546c91(0x1be)},'mcpConfig':{'title':_0x546c91(0x1d0),'description':_0x546c91(0x1c8),'apiKey':_0x546c91(0x1c3),'apiKeyPlaceholder':_0x546c91(0x1b9),'apiKeyHint':_0x546c91(0x1c6),'enableAuth':_0x546c91(0x1d5),'enableAuthHint':_0x546c91(0x1bc),'connectionInfo':_0x546c91(0x1dd),'mcpClientConfig':_0x546c91(0x1dd),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x546c91(0x1b2),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x546c91(0x1b4),'configStep3':_0x546c91(0x1d9),'sessionId':_0x546c91(0x1d7),'sessionIdDescription':_0x546c91(0x1d1),'authorizationDescription':_0x546c91(0x1df),'configParameters':_0x546c91(0x1bf),'maxRetries':_0x546c91(0x1c2),'save':'Save\x20Configuration','saving':_0x546c91(0x1d8),'note1':_0x546c91(0x1c4),'note2':_0x546c91(0x1cd),'configSaved':_0x546c91(0x1dc),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x546c91(0x1b1),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x546c91(0x1e4)},'validation':{'apiKeyRequired':_0x546c91(0x1c0),'apiKeyTooShort':_0x546c91(0x1bb),'invalidConfig':_0x546c91(0x1e2),'invalidApiKey':_0x546c91(0x1c9)},'connectionStatus':{'disconnected':_0x546c91(0x1da),'connecting':_0x546c91(0x1e3),'connected':_0x546c91(0x1c1),'failed':_0x546c91(0x1d3),'retrying':_0x546c91(0x1ca)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x546c91(0x1db),'networkError':_0x546c91(0x1e7),'maxRetriesExceeded':_0x546c91(0x1cf)}}};module[_0x546c91(0x1ce)]=e;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x50c4a4=_0x3f6d;function _0x3f6d(_0x515187,_0x40d261){_0x515187=_0x515187-0xa1;const _0x54f707=_0x54f7();let _0x3f6d37=_0x54f707[_0x515187];return _0x3f6d37;}(function(_0x3b9cb5,_0x57d97c){const _0x47c585=_0x3f6d,_0x2608c7=_0x3b9cb5();while(!![]){try{const _0x5c5670=-parseInt(_0x47c585(0xac))/0x1*(-parseInt(_0x47c585(0xca))/0x2)+-parseInt(_0x47c585(0xbd))/0x3+parseInt(_0x47c585(0xa5))/0x4+parseInt(_0x47c585(0xbe))/0x5+-parseInt(_0x47c585(0xcb))/0x6*(-parseInt(_0x47c585(0xbb))/0x7)+-parseInt(_0x47c585(0xa9))/0x8+-parseInt(_0x47c585(0xc9))/0x9;if(_0x5c5670===_0x57d97c)break;else _0x2608c7['push'](_0x2608c7['shift']());}catch(_0x39c9d8){_0x2608c7['push'](_0x2608c7['shift']());}}}(_0x54f7,0x1c27d));function _0x54f7(){const _0x1813ca=['exports','1931427fmSwav','94Jxjsxh','24aLkFSq','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20is\x20required','Disconnected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20saved\x20successfully','Max\x20Retries','Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','Connected','73284VhgGqk','MCP\x20Connected','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Disconnected','376688ioJfXx','MCP\x20Retrying...','MCP\x20Unknown\x20Status','2435GdpplW','Save\x20Configuration','MCP\x20Connecting...','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP:\x20Unauthorized','Retrying...','Failed\x20to\x20save\x20configuration','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enter\x20your\x20API\x20key','MCP\x20Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Univer\x20AI\x20Console','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','267617LLfEOz','MCP:\x20Session\x20ID\x20Occupied','168789cQfxTp','737935IKGQKq','Configuration\x20Steps:','MCP:\x20Network\x20Error','MCP\x20Configuration','API\x20Key','Connecting...','Click\x20to\x20configure\x20MCP','Session\x20ID','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20authentication\x20for\x20secure\x20connections'];_0x54f7=function(){return _0x1813ca;};return _0x54f7();}const e={'mcpStatus':{'disconnected':_0x50c4a4(0xa8),'connecting':_0x50c4a4(0xae),'connected':_0x50c4a4(0xa6),'failed':_0x50c4a4(0xb5),'retrying':_0x50c4a4(0xaa),'unknown':_0x50c4a4(0xab),'unauthorized':_0x50c4a4(0xb0),'sessionOccupied':_0x50c4a4(0xbc),'networkError':_0x50c4a4(0xc0),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x50c4a4(0xb9),'clickToConfigure':_0x50c4a4(0xc4)},'mcpConfig':{'title':_0x50c4a4(0xc1),'description':_0x50c4a4(0xcc),'apiKey':_0x50c4a4(0xc2),'apiKeyPlaceholder':_0x50c4a4(0xb4),'apiKeyHint':_0x50c4a4(0xb3),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x50c4a4(0xc7),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x50c4a4(0xa7),'configStepTitle':_0x50c4a4(0xbf),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x50c4a4(0xb6),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x50c4a4(0xc5),'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':'Configuration\x20Parameters:','maxRetries':_0x50c4a4(0xa1),'save':_0x50c4a4(0xad),'saving':'Saving...','note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x50c4a4(0xaf),'configSaved':_0x50c4a4(0xd0),'configError':_0x50c4a4(0xb2),'apiApplyInfo':{'title':_0x50c4a4(0xba),'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':_0x50c4a4(0xb8),'getStarted':_0x50c4a4(0xa3)},'validation':{'apiKeyRequired':_0x50c4a4(0xcd),'apiKeyTooShort':_0x50c4a4(0xcf),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x50c4a4(0xc6)},'connectionStatus':{'disconnected':_0x50c4a4(0xce),'connecting':_0x50c4a4(0xc3),'connected':_0x50c4a4(0xa4),'failed':_0x50c4a4(0xa2),'retrying':_0x50c4a4(0xb1)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x50c4a4(0xb7),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x50c4a4(0xc8)]=e;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x47e85e=_0x1148;function _0x1683(){const _0x237a68=['MCP\x20Disconnected','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','190040FaicjT','Copy\x20the\x20JSON\x20configuration\x20below','MCP:\x20Session\x20ID\x20Occupied','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20Steps:','Click\x20to\x20configure\x20MCP','1826128BSWJHO','Enter\x20your\x20API\x20key','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Disconnected','Saving...','2101204TJCOfP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','891055PucaOe','API\x20key\x20is\x20required','Failed\x20to\x20save\x20configuration','Configuration\x20Parameters:','6KuavoZ','MCP\x20Client\x20Configuration','5101758aBnKkY','Max\x20Retries','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Unknown\x20Status','901866nTGwkt','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','506kJITPp','What\x20is\x20API\x20Key?','67SLauTA','API\x20key\x20with\x20Bearer\x20prefix.','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','exports','MCP:\x20Max\x20Retries\x20Exceeded','Retrying...','Enable\x20Authentication','MCP\x20Configuration','MCP:\x20Network\x20Error','Enable\x20authentication\x20for\x20secure\x20connections','API\x20Key','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.','10702AmMHAC','Connected','MCP\x20Retrying...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Connected','MCP:\x20Unauthorized','8iTDtHm','Save\x20Configuration','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Invalid\x20configuration','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration'];_0x1683=function(){return _0x237a68;};return _0x1683();}(function(_0x531569,_0x5ae9f0){const _0x3b3b3f=_0x1148,_0x558bb3=_0x531569();while(!![]){try{const _0x25b962=parseInt(_0x3b3b3f(0xbc))/0x1*(parseInt(_0x3b3b3f(0xc9))/0x2)+-parseInt(_0x3b3b3f(0xb8))/0x3+parseInt(_0x3b3b3f(0xa7))/0x4+parseInt(_0x3b3b3f(0xae))/0x5*(-parseInt(_0x3b3b3f(0xb2))/0x6)+parseInt(_0x3b3b3f(0xac))/0x7+-parseInt(_0x3b3b3f(0x99))/0x8*(-parseInt(_0x3b3b3f(0xb4))/0x9)+parseInt(_0x3b3b3f(0xa1))/0xa*(-parseInt(_0x3b3b3f(0xba))/0xb);if(_0x25b962===_0x5ae9f0)break;else _0x558bb3['push'](_0x558bb3['shift']());}catch(_0x261ceb){_0x558bb3['push'](_0x558bb3['shift']());}}}(_0x1683,0x5056a));function _0x1148(_0x334068,_0x6bec5b){_0x334068=_0x334068-0x99;const _0x168336=_0x1683();let _0x1148b7=_0x168336[_0x334068];return _0x1148b7;}const e={'mcpStatus':{'disconnected':_0x47e85e(0x9e),'connecting':'MCP\x20Connecting...','connected':_0x47e85e(0xcd),'failed':'MCP\x20Connection\x20Failed','retrying':_0x47e85e(0xcb),'unknown':_0x47e85e(0xb7),'unauthorized':_0x47e85e(0xce),'sessionOccupied':_0x47e85e(0xa3),'networkError':_0x47e85e(0xc4),'maxRetriesExceeded':_0x47e85e(0xc0),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x47e85e(0xa6)},'mcpConfig':{'title':_0x47e85e(0xc3),'description':_0x47e85e(0xa0),'apiKey':_0x47e85e(0xc6),'apiKeyPlaceholder':_0x47e85e(0xa8),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x47e85e(0xc2),'enableAuthHint':_0x47e85e(0xc5),'connectionInfo':_0x47e85e(0xb3),'mcpClientConfig':_0x47e85e(0xb3),'configInstructions':_0x47e85e(0xb9),'configStepTitle':_0x47e85e(0xa5),'configStep1':_0x47e85e(0xa2),'configStep2':_0x47e85e(0xad),'configStep3':_0x47e85e(0x9d),'sessionId':'Session\x20ID','sessionIdDescription':_0x47e85e(0xbe),'authorizationDescription':_0x47e85e(0xbd),'configParameters':_0x47e85e(0xb1),'maxRetries':_0x47e85e(0xb5),'save':_0x47e85e(0x9a),'saving':_0x47e85e(0xab),'note1':_0x47e85e(0x9b),'note2':_0x47e85e(0x9f),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x47e85e(0xb0),'apiApplyInfo':{'title':_0x47e85e(0xbb),'description':_0x47e85e(0xc8),'univerAiLabel':_0x47e85e(0xc7),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x47e85e(0xaf),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x47e85e(0x9c),'invalidApiKey':_0x47e85e(0xa9)},'connectionStatus':{'disconnected':_0x47e85e(0xaa),'connecting':'Connecting...','connected':_0x47e85e(0xca),'failed':'Connection\x20Failed','retrying':_0x47e85e(0xc1)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x47e85e(0xa4),'networkError':_0x47e85e(0xb6),'maxRetriesExceeded':_0x47e85e(0xcc)}}};module[_0x47e85e(0xbf)]=e;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xba5d(){const _0x5ed0ed=['API\x20Key','708294bOoeZJ','MCP:\x20Session\x20ID\x20Occupied','6409620qUbkMR','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Connection\x20Failed','Save\x20Configuration','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','49074322dBgOpg','Click\x20to\x20configure\x20MCP','14859nGyESG','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','MCP\x20Connected','Configuration\x20Steps:','5968EAEHXW','MCP\x20Connecting...','Session\x20ID','Connected','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','What\x20is\x20API\x20Key?','Click\x20to\x20connect\x20MCP','1306553YaecWh','MCP:\x20Max\x20Retries\x20Exceeded','518495beFAdV','Saving...','Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','MCP:\x20Unauthorized','MCP\x20Unknown\x20Status','Failed\x20to\x20save\x20configuration','9XyRDGd','Get\x20your\x20API\x20key\x20in\x20seconds','Univer\x20AI\x20Console','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Retrying...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','exports','MCP\x20Client\x20Configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','2AIRgXR','Max\x20Retries','Configuration\x20Parameters:','7zElKUv','API\x20key\x20with\x20Bearer\x20prefix.','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20saved\x20successfully','API\x20key\x20is\x20required','753800LnNwOr'];_0xba5d=function(){return _0x5ed0ed;};return _0xba5d();}const _0x17fe3b=_0x1130;function _0x1130(_0x205c3c,_0x188114){_0x205c3c=_0x205c3c-0x138;const _0xba5dcd=_0xba5d();let _0x1130ad=_0xba5dcd[_0x205c3c];return _0x1130ad;}(function(_0xc687e,_0x441cb4){const _0x54fc39=_0x1130,_0x19baa7=_0xc687e();while(!![]){try{const _0x426e1a=parseInt(_0x54fc39(0x161))/0x1*(-parseInt(_0x54fc39(0x140))/0x2)+parseInt(_0x54fc39(0x16a))/0x3*(-parseInt(_0x54fc39(0x148))/0x4)+-parseInt(_0x54fc39(0x163))/0x5+-parseInt(_0x54fc39(0x14a))/0x6*(-parseInt(_0x54fc39(0x143))/0x7)+parseInt(_0x54fc39(0x15a))/0x8*(-parseInt(_0x54fc39(0x153))/0x9)+-parseInt(_0x54fc39(0x14c))/0xa+parseInt(_0x54fc39(0x151))/0xb;if(_0x426e1a===_0x441cb4)break;else _0x19baa7['push'](_0x19baa7['shift']());}catch(_0x7a7d45){_0x19baa7['push'](_0x19baa7['shift']());}}}(_0xba5d,0xb2805));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x17fe3b(0x15b),'connected':_0x17fe3b(0x158),'failed':_0x17fe3b(0x14e),'retrying':'MCP\x20Retrying...','unknown':_0x17fe3b(0x168),'unauthorized':_0x17fe3b(0x167),'sessionOccupied':_0x17fe3b(0x14b),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x17fe3b(0x162),'clickToConnect':_0x17fe3b(0x160),'clickToConfigure':_0x17fe3b(0x152)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x17fe3b(0x13a),'apiKey':_0x17fe3b(0x149),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':_0x17fe3b(0x156),'enableAuth':'Enable\x20Authentication','enableAuthHint':_0x17fe3b(0x145),'connectionInfo':_0x17fe3b(0x13e),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x17fe3b(0x138),'configStepTitle':_0x17fe3b(0x159),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x17fe3b(0x166),'configStep3':_0x17fe3b(0x13c),'sessionId':_0x17fe3b(0x15c),'sessionIdDescription':_0x17fe3b(0x155),'authorizationDescription':_0x17fe3b(0x144),'configParameters':_0x17fe3b(0x142),'maxRetries':_0x17fe3b(0x141),'save':_0x17fe3b(0x14f),'saving':_0x17fe3b(0x164),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x17fe3b(0x13f),'configSaved':_0x17fe3b(0x146),'configError':_0x17fe3b(0x169),'apiApplyInfo':{'title':_0x17fe3b(0x15f),'description':_0x17fe3b(0x15e),'univerAiLabel':_0x17fe3b(0x16c),'getStarted':_0x17fe3b(0x16b)},'validation':{'apiKeyRequired':_0x17fe3b(0x147),'apiKeyTooShort':_0x17fe3b(0x157),'invalidConfig':'Invalid\x20configuration','invalidApiKey':_0x17fe3b(0x139)},'connectionStatus':{'disconnected':'Disconnected','connecting':'Connecting...','connected':_0x17fe3b(0x15d),'failed':_0x17fe3b(0x165),'retrying':_0x17fe3b(0x13b)},'connectionError':{'unauthorized':_0x17fe3b(0x150),'sessionOccupied':_0x17fe3b(0x154),'networkError':_0x17fe3b(0x14d),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}};module[_0x17fe3b(0x13d)]=e;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x25df(){const _0x2d2b60=['MCP:\x20Session\x20ID\x20Occupied','Click\x20to\x20connect\x20MCP','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','519276OiBTst','Enable\x20Authentication','Save\x20Configuration','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','exports','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Session\x20ID','MCP\x20Connecting...','Failed\x20to\x20save\x20configuration','API\x20Key','14870WNrrTV','MCP\x20Unknown\x20Status','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','7719sJTCJQ','Enter\x20your\x20API\x20key','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Retrying...','88AoFNFA','5036360ueoyFB','Univer\x20AI\x20Console','312YUubrq','MCP:\x20Network\x20Error','10502129QgJkTu','Copy\x20the\x20JSON\x20configuration\x20below','Configuration\x20Parameters:','2754720QpJFGk','API\x20key\x20is\x20required','Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20with\x20Bearer\x20prefix.','88047URApFO','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','Disconnected','Saving...','20OEmmxO','Invalid\x20configuration','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20configure\x20MCP','MCP\x20Configuration','128zELkxU'];_0x25df=function(){return _0x2d2b60;};return _0x25df();}function _0x4246(_0x1dedb7,_0x21d6ad){_0x1dedb7=_0x1dedb7-0x10a;const _0x25df4d=_0x25df();let _0x424674=_0x25df4d[_0x1dedb7];return _0x424674;}const _0x5cd067=_0x4246;(function(_0x56d2d1,_0xb9d46f){const _0x35a3a5=_0x4246,_0x2acd36=_0x56d2d1();while(!![]){try{const _0x4125cf=-parseInt(_0x35a3a5(0x138))/0x1*(parseInt(_0x35a3a5(0x10e))/0x2)+-parseInt(_0x35a3a5(0x127))/0x3+-parseInt(_0x35a3a5(0x122))/0x4*(-parseInt(_0x35a3a5(0x135))/0x5)+-parseInt(_0x35a3a5(0x113))/0x6+parseInt(_0x35a3a5(0x10c))/0x7+parseInt(_0x35a3a5(0x10b))/0x8*(-parseInt(_0x35a3a5(0x118))/0x9)+-parseInt(_0x35a3a5(0x11d))/0xa*(-parseInt(_0x35a3a5(0x110))/0xb);if(_0x4125cf===_0xb9d46f)break;else _0x2acd36['push'](_0x2acd36['shift']());}catch(_0x193c4e){_0x2acd36['push'](_0x2acd36['shift']());}}}(_0x25df,0xbe769));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5cd067(0x132),'connected':'MCP\x20Connected','failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':_0x5cd067(0x136),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x5cd067(0x123),'networkError':_0x5cd067(0x10f),'maxRetriesExceeded':_0x5cd067(0x11a),'clickToConnect':_0x5cd067(0x124),'clickToConfigure':_0x5cd067(0x120)},'mcpConfig':{'title':_0x5cd067(0x121),'description':_0x5cd067(0x12b),'apiKey':_0x5cd067(0x134),'apiKeyPlaceholder':_0x5cd067(0x139),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x5cd067(0x128),'enableAuthHint':_0x5cd067(0x12a),'connectionInfo':_0x5cd067(0x12e),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5cd067(0x11f),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x5cd067(0x111),'configStep2':_0x5cd067(0x13a),'configStep3':_0x5cd067(0x119),'sessionId':_0x5cd067(0x131),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5cd067(0x117),'configParameters':_0x5cd067(0x112),'maxRetries':'Max\x20Retries','save':_0x5cd067(0x129),'saving':_0x5cd067(0x11c),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x5cd067(0x126),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x5cd067(0x133),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x5cd067(0x130),'univerAiLabel':_0x5cd067(0x10d),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5cd067(0x114),'apiKeyTooShort':_0x5cd067(0x137),'invalidConfig':_0x5cd067(0x11e),'invalidApiKey':_0x5cd067(0x12d)},'connectionStatus':{'disconnected':_0x5cd067(0x11b),'connecting':_0x5cd067(0x115),'connected':'Connected','failed':'Connection\x20Failed','retrying':_0x5cd067(0x10a)},'connectionError':{'unauthorized':_0x5cd067(0x125),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x5cd067(0x116),'maxRetriesExceeded':_0x5cd067(0x12f)}}};module[_0x5cd067(0x12c)]=e;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x31a262=_0x4f94;(function(_0x3e5edc,_0x20bd38){const _0x48a88c=_0x4f94,_0x1ba4fc=_0x3e5edc();while(!![]){try{const _0xbddfe5=parseInt(_0x48a88c(0x69))/0x1*(-parseInt(_0x48a88c(0x88))/0x2)+-parseInt(_0x48a88c(0x86))/0x3*(-parseInt(_0x48a88c(0x8d))/0x4)+-parseInt(_0x48a88c(0x83))/0x5*(-parseInt(_0x48a88c(0x82))/0x6)+parseInt(_0x48a88c(0x6d))/0x7+parseInt(_0x48a88c(0x98))/0x8*(-parseInt(_0x48a88c(0x73))/0x9)+-parseInt(_0x48a88c(0x7a))/0xa*(-parseInt(_0x48a88c(0x94))/0xb)+parseInt(_0x48a88c(0x8c))/0xc;if(_0xbddfe5===_0x20bd38)break;else _0x1ba4fc['push'](_0x1ba4fc['shift']());}catch(_0x2b7554){_0x1ba4fc['push'](_0x1ba4fc['shift']());}}}(_0x5d6e,0x3a660));const e={'mcpStatus':{'disconnected':_0x31a262(0x89),'connecting':_0x31a262(0x66),'connected':_0x31a262(0x67),'failed':_0x31a262(0x95),'retrying':'MCP\x20再試行中...','unknown':_0x31a262(0x72),'unauthorized':_0x31a262(0x99),'sessionOccupied':_0x31a262(0x81),'networkError':_0x31a262(0x7f),'maxRetriesExceeded':_0x31a262(0x93),'clickToConnect':_0x31a262(0x71),'clickToConfigure':'クリックしてMCPを設定'},'mcpConfig':{'title':_0x31a262(0x6b),'description':'MCPを設定してAIでスプレッドシートを操作','apiKey':_0x31a262(0x84),'apiKeyPlaceholder':_0x31a262(0x8e),'apiKeyHint':_0x31a262(0x92),'enableAuth':_0x31a262(0x79),'enableAuthHint':_0x31a262(0x8f),'connectionInfo':_0x31a262(0x70),'mcpClientConfig':_0x31a262(0x70),'configInstructions':_0x31a262(0x7c),'configStepTitle':_0x31a262(0x7d),'configStep1':_0x31a262(0x6e),'configStep2':_0x31a262(0x68),'configStep3':_0x31a262(0x7e),'sessionId':_0x31a262(0x85),'sessionIdDescription':_0x31a262(0x65),'authorizationDescription':_0x31a262(0x9a),'configParameters':_0x31a262(0x97),'maxRetries':'最大再試行回数','save':_0x31a262(0x9b),'saving':'保存中...','note1':_0x31a262(0x91),'note2':_0x31a262(0x96),'configSaved':_0x31a262(0x77),'configError':'設定の保存に失敗しました','apiApplyInfo':{'title':_0x31a262(0x8b),'description':_0x31a262(0x6f),'univerAiLabel':_0x31a262(0x6a),'getStarted':'数秒でAPIキーを取得'},'validation':{'apiKeyRequired':_0x31a262(0x90),'apiKeyTooShort':'APIキーは10文字以上である必要があります','invalidConfig':_0x31a262(0x80),'invalidApiKey':'無効なAPIキーです。キーが正しいか確認してください'},'connectionStatus':{'disconnected':_0x31a262(0x74),'connecting':_0x31a262(0x64),'connected':'接続済み','failed':_0x31a262(0x6c),'retrying':_0x31a262(0x76)},'connectionError':{'unauthorized':_0x31a262(0x8a),'sessionOccupied':_0x31a262(0x7b),'networkError':_0x31a262(0x87),'maxRetriesExceeded':_0x31a262(0x78)}}};function _0x4f94(_0x8bd1e,_0x51a918){_0x8bd1e=_0x8bd1e-0x64;const _0x5d6e46=_0x5d6e();let _0x4f948c=_0x5d6e46[_0x8bd1e];return _0x4f948c;}function _0x5d6e(){const _0x45a317=['MCP:\x20最大再試行回数を超過','11AZpARP','MCP\x20接続失敗','APIキーはローカルストレージに安全に保存されます','設定パラメータ:','8QRuvAC','MCP:\x20認証されていません','Bearerプレフィックス付きのAPIキー。','設定を保存','接続中...','一意のセッション識別子。複数のUniverインスタンスを開いている場合、接続の競合を避けるため、各インスタンスは異なるsession_idを使用する必要があります。','MCP\x20接続中...','MCP\x20接続済み','MCPクライアントの設定ファイルに設定を追加','3917cAQTAd','Univer\x20AIコンソール','MCP設定','接続失敗','3302600XtwMgU','以下のJSON設定をコピー','APIキーを使用してUniver\x20MCPサーバーに接続し、AIでスプレッドシートを操作できます。コンソールからAPIキーを取得して開始してください。','MCPクライアント設定','クリックしてMCPに接続','MCP\x20不明な状態','3613077LvNFWc','未接続','exports','再試行中...','設定が正常に保存されました','最大再試行回数を超過しました。後でもう一度お試しください','認証を有効にする','1533660fzIjvv','セッションIDが現在使用中です。後でもう一度お試しください','MCPクライアントの設定に次の設定を追加してください:','設定手順:','MCPクライアントを再起動して設定を適用','MCP:\x20ネットワークエラー','無効な設定','MCP:\x20セッションIDが使用中','6dVwcbc','1350105xqALXF','APIキー','セッションID','30DVhBlg','ネットワーク接続エラー。インターネット接続を確認してください','238GGobCN','MCP\x20未接続','認証に失敗しました。APIキーを確認してください','APIキーとは?','1333668bHjbXA','40180bagdda','APIキーを入力してください','セキュアな接続のために認証を有効にする','APIキーは必須です','設定の変更は直ちに有効になります','APIキーはこのブラウザのローカルに保存されます'];_0x5d6e=function(){return _0x45a317;};return _0x5d6e();}module[_0x31a262(0x75)]=e;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x569882=_0x13e5;(function(_0x41d901,_0x183e6a){const _0x30082b=_0x13e5,_0x2d2f1f=_0x41d901();while(!![]){try{const _0x332918=-parseInt(_0x30082b(0x1f1))/0x1+-parseInt(_0x30082b(0x1eb))/0x2+-parseInt(_0x30082b(0x1c9))/0x3+parseInt(_0x30082b(0x1c3))/0x4*(-parseInt(_0x30082b(0x1c5))/0x5)+-parseInt(_0x30082b(0x1c8))/0x6*(-parseInt(_0x30082b(0x1ea))/0x7)+-parseInt(_0x30082b(0x1e0))/0x8+parseInt(_0x30082b(0x1cf))/0x9;if(_0x332918===_0x183e6a)break;else _0x2d2f1f['push'](_0x2d2f1f['shift']());}catch(_0x2c07c8){_0x2d2f1f['push'](_0x2d2f1f['shift']());}}}(_0x1a32,0x63f85));const e={'mcpStatus':{'disconnected':_0x569882(0x1d8),'connecting':'MCP\x20연결\x20중...','connected':_0x569882(0x1e5),'failed':_0x569882(0x1d9),'retrying':_0x569882(0x1e7),'unknown':_0x569882(0x1c6),'unauthorized':_0x569882(0x1e6),'sessionOccupied':'MCP:\x20세션\x20ID\x20사용\x20중','networkError':_0x569882(0x1ef),'maxRetriesExceeded':_0x569882(0x1c4),'clickToConnect':_0x569882(0x1cc),'clickToConfigure':'클릭하여\x20MCP\x20설정'},'mcpConfig':{'title':_0x569882(0x1d6),'description':_0x569882(0x1ec),'apiKey':_0x569882(0x1d5),'apiKeyPlaceholder':_0x569882(0x1df),'apiKeyHint':_0x569882(0x1e8),'enableAuth':_0x569882(0x1ed),'enableAuthHint':_0x569882(0x1d0),'connectionInfo':_0x569882(0x1d3),'mcpClientConfig':'MCP\x20클라이언트\x20설정','configInstructions':_0x569882(0x1d4),'configStepTitle':_0x569882(0x1c2),'configStep1':_0x569882(0x1d7),'configStep2':'MCP\x20클라이언트\x20설정\x20파일에\x20구성\x20추가','configStep3':'MCP\x20클라이언트를\x20다시\x20시작하여\x20설정\x20적용','sessionId':_0x569882(0x1e2),'sessionIdDescription':_0x569882(0x1d2),'authorizationDescription':_0x569882(0x1e3),'configParameters':_0x569882(0x1f2),'maxRetries':'최대\x20재시도\x20횟수','save':_0x569882(0x1f0),'saving':_0x569882(0x1dc),'note1':_0x569882(0x1cd),'note2':_0x569882(0x1ca),'configSaved':_0x569882(0x1c1),'configError':_0x569882(0x1e9),'apiApplyInfo':{'title':'API\x20키란\x20무엇인가요?','description':'API\x20키는\x20Univer\x20MCP\x20서버에\x20연결하여\x20AI로\x20스프레드시트를\x20조작할\x20수\x20있게\x20해줍니다.\x20콘솔에서\x20API\x20키를\x20발급받아\x20시작하세요.','univerAiLabel':_0x569882(0x1db),'getStarted':'몇\x20초\x20만에\x20API\x20키\x20발급받기'},'validation':{'apiKeyRequired':'API\x20키는\x20필수입니다','apiKeyTooShort':'API\x20키는\x2010자\x20이상이어야\x20합니다','invalidConfig':'유효하지\x20않은\x20설정','invalidApiKey':_0x569882(0x1ee)},'connectionStatus':{'disconnected':_0x569882(0x1dd),'connecting':_0x569882(0x1de),'connected':_0x569882(0x1e4),'failed':_0x569882(0x1cb),'retrying':'재시도\x20중...'},'connectionError':{'unauthorized':_0x569882(0x1d1),'sessionOccupied':_0x569882(0x1ce),'networkError':_0x569882(0x1e1),'maxRetriesExceeded':_0x569882(0x1c7)}}};function _0x1a32(){const _0x44f3d7=['Bearer\x20접두사가\x20있는\x20API\x20키.','연결됨','MCP\x20연결됨','MCP:\x20인증되지\x20않음','MCP\x20재시도\x20중...','API\x20키는\x20이\x20브라우저의\x20로컬에\x20저장됩니다','설정\x20저장\x20실패','7028lIwsjj','1077824YJEbnn','AI를\x20사용하여\x20스프레드시트를\x20조작하도록\x20MCP\x20설정','인증\x20활성화','유효하지\x20않은\x20API\x20키입니다.\x20키가\x20올바른지\x20확인하세요','MCP:\x20네트워크\x20오류','설정\x20저장','443695sdFhRp','설정\x20매개변수:','설정이\x20성공적으로\x20저장되었습니다','설정\x20단계:','88KNGnuX','MCP:\x20최대\x20재시도\x20횟수\x20초과','166215dWHRLo','MCP\x20알\x20수\x20없는\x20상태','최대\x20재시도\x20횟수를\x20초과했습니다.\x20나중에\x20다시\x20시도하세요','438gITCaz','1783545DWsRNk','API\x20키는\x20로컬\x20스토리지에\x20안전하게\x20저장됩니다','연결\x20실패','클릭하여\x20MCP\x20연결','설정\x20변경\x20사항은\x20즉시\x20적용됩니다','세션\x20ID가\x20현재\x20사용\x20중입니다.\x20나중에\x20다시\x20시도하세요','31111758cQaZQp','보안\x20연결을\x20위해\x20인증\x20활성화','인증\x20실패.\x20API\x20키를\x20확인하세요','고유\x20세션\x20식별자입니다.\x20여러\x20Univer\x20인스턴스가\x20열려\x20있는\x20경우,\x20연결\x20충돌을\x20방지하기\x20위해\x20각\x20인스턴스는\x20서로\x20다른\x20session_id를\x20사용해야\x20합니다.','MCP\x20클라이언트\x20설정','MCP\x20클라이언트\x20설정에\x20다음\x20구성을\x20추가하세요:','API\x20키','MCP\x20설정','아래\x20JSON\x20설정\x20복사','MCP\x20연결\x20끊김','MCP\x20연결\x20실패','exports','Univer\x20AI\x20콘솔','저장\x20중...','연결\x20끊김','연결\x20중...','API\x20키를\x20입력하세요','6497672oPAQvS','네트워크\x20연결\x20오류.\x20인터넷\x20연결을\x20확인하세요','세션\x20ID'];_0x1a32=function(){return _0x44f3d7;};return _0x1a32();}function _0x13e5(_0x2daa42,_0x489f62){_0x2daa42=_0x2daa42-0x1c1;const _0x1a327e=_0x1a32();let _0x13e5e6=_0x1a327e[_0x2daa42];return _0x13e5e6;}module[_0x569882(0x1da)]=e;
|