@univerjs-pro/mcp-ui 0.10.12-nightly.202510251119 → 0.10.13-nightly.202510290902

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +1 -1
  13. package/lib/es/locale/ca-ES.js +1 -1
  14. package/lib/es/locale/en-US.js +1 -1
  15. package/lib/es/locale/es-ES.js +1 -1
  16. package/lib/es/locale/fa-IR.js +1 -1
  17. package/lib/es/locale/fr-FR.js +1 -1
  18. package/lib/es/locale/ko-KR.js +1 -1
  19. package/lib/es/locale/ru-RU.js +1 -1
  20. package/lib/es/locale/vi-VN.js +1 -1
  21. package/lib/es/locale/zh-CN.js +1 -1
  22. package/lib/es/locale/zh-TW.js +1 -1
  23. package/lib/index.js +1 -1
  24. package/lib/locale/ca-ES.js +1 -1
  25. package/lib/locale/en-US.js +1 -1
  26. package/lib/locale/es-ES.js +1 -1
  27. package/lib/locale/fa-IR.js +1 -1
  28. package/lib/locale/fr-FR.js +1 -1
  29. package/lib/locale/ko-KR.js +1 -1
  30. package/lib/locale/ru-RU.js +1 -1
  31. package/lib/locale/vi-VN.js +1 -1
  32. package/lib/locale/zh-CN.js +1 -1
  33. package/lib/locale/zh-TW.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/ca-ES.js +1 -1
  36. package/lib/umd/locale/en-US.js +1 -1
  37. package/lib/umd/locale/es-ES.js +1 -1
  38. package/lib/umd/locale/fa-IR.js +1 -1
  39. package/lib/umd/locale/fr-FR.js +1 -1
  40. package/lib/umd/locale/ko-KR.js +1 -1
  41. package/lib/umd/locale/ru-RU.js +1 -1
  42. package/lib/umd/locale/vi-VN.js +1 -1
  43. package/lib/umd/locale/zh-CN.js +1 -1
  44. package/lib/umd/locale/zh-TW.js +1 -1
  45. package/package.json +8 -8
@@ -1 +1 @@
1
- 'use strict';const _0x39294f=_0xbb8f;function _0x4354(){const _0x308809=['7656mBmKPB','1736758wftXkW','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20Steps:','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Enable\x20authentication\x20for\x20secure\x20connections','Enable\x20Authentication','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','API\x20key\x20with\x20Bearer\x20prefix.','Get\x20your\x20API\x20key\x20in\x20seconds','API\x20key\x20is\x20required','Configuration\x20saved\x20successfully','Session\x20ID','MCP\x20Unknown\x20Status','MCP\x20Connecting...','564uRpmEr','971157oljWUg','368952MCpcmG','1835qLObge','Configuration\x20Parameters:','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Save\x20Configuration','Click\x20to\x20connect\x20MCP','539BxVTno','Disconnected','Invalid\x20configuration','1114002kIxmZH','155270tJFCRv','MCP:\x20Max\x20Retries\x20Exceeded','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Saving...','MCP\x20Connection\x20Failed','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP:\x20Session\x20ID\x20Occupied','69349IklrZL','1cHvKrz','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Enter\x20your\x20API\x20key','MCP\x20Connected','Connection\x20Failed','Failed\x20to\x20save\x20configuration','Click\x20to\x20configure\x20MCP'];_0x4354=function(){return _0x308809;};return _0x4354();}(function(_0x44b96e,_0x4aac4c){const _0x34fa46=_0xbb8f,_0x2ec0dd=_0x44b96e();while(!![]){try{const _0x496f16=-parseInt(_0x34fa46(0x1e7))/0x1*(-parseInt(_0x34fa46(0x1ef))/0x2)+parseInt(_0x34fa46(0x201))/0x3+-parseInt(_0x34fa46(0x1ee))/0x4*(parseInt(_0x34fa46(0x203))/0x5)+-parseInt(_0x34fa46(0x200))/0x6*(parseInt(_0x34fa46(0x1e6))/0x7)+parseInt(_0x34fa46(0x202))/0x8+parseInt(_0x34fa46(0x1dd))/0x9+parseInt(_0x34fa46(0x1de))/0xa*(parseInt(_0x34fa46(0x208))/0xb);if(_0x496f16===_0x4aac4c)break;else _0x2ec0dd['push'](_0x2ec0dd['shift']());}catch(_0x3237a5){_0x2ec0dd['push'](_0x2ec0dd['shift']());}}}(_0x4354,0x776a2));function _0xbb8f(_0x4e0d91,_0x21e41b){const _0x4354e5=_0x4354();return _0xbb8f=function(_0xbb8f19,_0x1a3f76){_0xbb8f19=_0xbb8f19-0x1dc;let _0x38a0a4=_0x4354e5[_0xbb8f19];return _0x38a0a4;},_0xbb8f(_0x4e0d91,_0x21e41b);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x39294f(0x1ff),'connected':_0x39294f(0x1ea),'failed':_0x39294f(0x1e2),'retrying':'MCP\x20Retrying...','unknown':_0x39294f(0x1fe),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x39294f(0x1e5),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x39294f(0x1df),'clickToConnect':_0x39294f(0x207),'clickToConfigure':_0x39294f(0x1ed)},'mcpConfig':{'title':_0x39294f(0x1f3),'description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':'API\x20Key','apiKeyPlaceholder':_0x39294f(0x1e9),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x39294f(0x1f7),'enableAuthHint':_0x39294f(0x1f6),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x39294f(0x1f2),'configStepTitle':_0x39294f(0x1f1),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x39294f(0x1e3),'configStep3':_0x39294f(0x1f5),'sessionId':_0x39294f(0x1fd),'sessionIdDescription':_0x39294f(0x1f4),'authorizationDescription':_0x39294f(0x1f9),'configParameters':_0x39294f(0x204),'maxRetries':'Max\x20Retries','save':_0x39294f(0x206),'saving':_0x39294f(0x1e1),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x39294f(0x1fc),'configError':_0x39294f(0x1ec),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x39294f(0x205),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x39294f(0x1fa)},'validation':{'apiKeyRequired':_0x39294f(0x1fb),'apiKeyTooShort':_0x39294f(0x1f0),'invalidConfig':_0x39294f(0x1dc),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x39294f(0x209),'connecting':'Connecting...','connected':'Connected','failed':_0x39294f(0x1eb),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x39294f(0x1e0),'sessionOccupied':_0x39294f(0x1e4),'networkError':_0x39294f(0x1e8),'maxRetriesExceeded':_0x39294f(0x1f8)}}},n=e;module['exports']=n;
1
+ 'use strict';const _0x343fec=_0x2bf6;function _0x585a(){const _0x2293c4=['3syLgdZ','2463404WUXQaC','API\x20Key','Connecting...','exports','Max\x20Retries','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','Saving...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Disconnected','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Steps:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','1141278xSIUgO','MCP\x20Client\x20Configuration','MCP:\x20Unauthorized','MCP\x20Retrying...','MCP:\x20Network\x20Error','Enter\x20your\x20API\x20key','2xayGbY','8716386VtQKgM','API\x20key\x20is\x20required','Connected','Failed\x20to\x20save\x20configuration','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP\x20Unknown\x20Status','Configuration\x20saved\x20successfully','Enable\x20Authentication','284623xczvFH','MCP\x20Configuration','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','Connection\x20Failed','Configuration\x20Parameters:','Disconnected','6723360bWrOtO','11968648WnfQIm','53643384maqzfs','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Click\x20to\x20configure\x20MCP','MCP\x20Connection\x20Failed','Get\x20your\x20API\x20key\x20in\x20seconds','MCP:\x20Max\x20Retries\x20Exceeded','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','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.','Invalid\x20configuration','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Connecting...','Click\x20to\x20connect\x20MCP'];_0x585a=function(){return _0x2293c4;};return _0x585a();}(function(_0x48cddd,_0x465bf9){const _0xe35d9b=_0x2bf6,_0x4a5464=_0x48cddd();while(!![]){try{const _0x2249db=parseInt(_0xe35d9b(0x108))/0x1*(-parseInt(_0xe35d9b(0xff))/0x2)+-parseInt(_0xe35d9b(0xea))/0x3*(parseInt(_0xe35d9b(0xeb))/0x4)+-parseInt(_0xe35d9b(0x10f))/0x5+-parseInt(_0xe35d9b(0xf9))/0x6+-parseInt(_0xe35d9b(0x100))/0x7+-parseInt(_0xe35d9b(0x110))/0x8+parseInt(_0xe35d9b(0x111))/0x9;if(_0x2249db===_0x465bf9)break;else _0x4a5464['push'](_0x4a5464['shift']());}catch(_0x925766){_0x4a5464['push'](_0x4a5464['shift']());}}}(_0x585a,0xbf57a));function _0x2bf6(_0x2d40b3,_0x581a01){const _0x585add=_0x585a();return _0x2bf6=function(_0x2bf61e,_0x14f313){_0x2bf61e=_0x2bf61e-0xde;let _0x31ed70=_0x585add[_0x2bf61e];return _0x31ed70;},_0x2bf6(_0x2d40b3,_0x581a01);}const e={'mcpStatus':{'disconnected':_0x343fec(0xf4),'connecting':_0x343fec(0xe8),'connected':'MCP\x20Connected','failed':_0x343fec(0xdf),'retrying':_0x343fec(0xfc),'unknown':_0x343fec(0x105),'unauthorized':_0x343fec(0xfb),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x343fec(0xfd),'maxRetriesExceeded':_0x343fec(0xe1),'clickToConnect':_0x343fec(0xe9),'clickToConfigure':_0x343fec(0xde)},'mcpConfig':{'title':_0x343fec(0x109),'description':_0x343fec(0xf5),'apiKey':_0x343fec(0xec),'apiKeyPlaceholder':_0x343fec(0xfe),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x343fec(0x107),'enableAuthHint':_0x343fec(0xf6),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x343fec(0xfa),'configInstructions':_0x343fec(0xe7),'configStepTitle':_0x343fec(0xf7),'configStep1':_0x343fec(0x10b),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':_0x343fec(0xf3),'sessionId':_0x343fec(0xf1),'sessionIdDescription':_0x343fec(0x104),'authorizationDescription':'API\x20key\x20with\x20Bearer\x20prefix.','configParameters':_0x343fec(0x10d),'maxRetries':_0x343fec(0xef),'save':'Save\x20Configuration','saving':_0x343fec(0xf2),'note1':_0x343fec(0xf0),'note2':_0x343fec(0xe6),'configSaved':_0x343fec(0x106),'configError':_0x343fec(0x103),'apiApplyInfo':{'title':_0x343fec(0x10a),'description':_0x343fec(0xe4),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x343fec(0xe0)},'validation':{'apiKeyRequired':_0x343fec(0x101),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x343fec(0xe5),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x343fec(0x10e),'connecting':_0x343fec(0xed),'connected':_0x343fec(0x102),'failed':_0x343fec(0x10c),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x343fec(0xe2),'sessionOccupied':_0x343fec(0xf8),'networkError':_0x343fec(0x112),'maxRetriesExceeded':_0x343fec(0xe3)}}},n=e;module[_0x343fec(0xee)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x321bf8=_0x3680;function _0x4cd2(){const _0x4c7211=['MCP\x20Client\x20Configuration','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','784483cpKUWU','1146990WrdFgS','16fWtCLa','MCP\x20Unknown\x20Status','Session\x20ID','176228KxNTaP','25jcVVNJ','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Click\x20to\x20configure\x20MCP','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','Get\x20your\x20API\x20key\x20in\x20seconds','exports','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Univer\x20AI\x20Console','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20Parameters:','Connecting...','618639AyPJhl','Invalid\x20configuration','Enter\x20your\x20API\x20key','MCP:\x20Max\x20Retries\x20Exceeded','API\x20Key','Copy\x20the\x20JSON\x20configuration\x20below','Disconnected','60689HFwlPz','Retrying...','Enable\x20Authentication','1877139ikLIZO','Save\x20Configuration','MCP\x20Connection\x20Failed','Connection\x20Failed','MCP:\x20Unauthorized','9kfNyCN','Saving...','Configuration\x20saved\x20successfully','1473816yKZOEy','MCP\x20Connected','Click\x20to\x20connect\x20MCP','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20with\x20Bearer\x20prefix.','Failed\x20to\x20save\x20configuration','API\x20key\x20is\x20required','2nhztSz','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','MCP:\x20Network\x20Error','Configuration\x20Steps:','Connected'];_0x4cd2=function(){return _0x4c7211;};return _0x4cd2();}function _0x3680(_0x9bc03,_0x3ceaf9){const _0x4cd28f=_0x4cd2();return _0x3680=function(_0x368066,_0x4c7b72){_0x368066=_0x368066-0xb5;let _0x494da1=_0x4cd28f[_0x368066];return _0x494da1;},_0x3680(_0x9bc03,_0x3ceaf9);}(function(_0x5538df,_0xe9b2f9){const _0x5da068=_0x3680,_0x7c4788=_0x5538df();while(!![]){try{const _0x4fe41a=parseInt(_0x5da068(0xc8))/0x1*(parseInt(_0x5da068(0xda))/0x2)+parseInt(_0x5da068(0xc1))/0x3+parseInt(_0x5da068(0xe6))/0x4*(-parseInt(_0x5da068(0xe7))/0x5)+parseInt(_0x5da068(0xd3))/0x6+-parseInt(_0x5da068(0xe1))/0x7*(parseInt(_0x5da068(0xe3))/0x8)+-parseInt(_0x5da068(0xd0))/0x9*(parseInt(_0x5da068(0xe2))/0xa)+parseInt(_0x5da068(0xcb))/0xb;if(_0x4fe41a===_0xe9b2f9)break;else _0x7c4788['push'](_0x7c4788['shift']());}catch(_0xace8e8){_0x7c4788['push'](_0x7c4788['shift']());}}}(_0x4cd2,0x1e4a1));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x321bf8(0xd4),'failed':_0x321bf8(0xcd),'retrying':'MCP\x20Retrying...','unknown':_0x321bf8(0xe4),'unauthorized':_0x321bf8(0xcf),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x321bf8(0xdc),'maxRetriesExceeded':_0x321bf8(0xc4),'clickToConnect':_0x321bf8(0xd5),'clickToConfigure':_0x321bf8(0xb8)},'mcpConfig':{'title':'MCP\x20Configuration','description':_0x321bf8(0xdb),'apiKey':_0x321bf8(0xc5),'apiKeyPlaceholder':_0x321bf8(0xc3),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x321bf8(0xca),'enableAuthHint':_0x321bf8(0xbe),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x321bf8(0xdf),'configInstructions':_0x321bf8(0xb7),'configStepTitle':_0x321bf8(0xdd),'configStep1':_0x321bf8(0xc6),'configStep2':'Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x321bf8(0xe5),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x321bf8(0xd7),'configParameters':_0x321bf8(0xbf),'maxRetries':'Max\x20Retries','save':_0x321bf8(0xcc),'saving':_0x321bf8(0xd1),'note1':_0x321bf8(0xb6),'note2':_0x321bf8(0xbc),'configSaved':_0x321bf8(0xd2),'configError':_0x321bf8(0xd8),'apiApplyInfo':{'title':'What\x20is\x20API\x20Key?','description':_0x321bf8(0xd6),'univerAiLabel':_0x321bf8(0xbd),'getStarted':_0x321bf8(0xba)},'validation':{'apiKeyRequired':_0x321bf8(0xd9),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x321bf8(0xc2),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x321bf8(0xc7),'connecting':_0x321bf8(0xc0),'connected':_0x321bf8(0xde),'failed':_0x321bf8(0xce),'retrying':_0x321bf8(0xc9)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x321bf8(0xb5),'networkError':_0x321bf8(0xb9),'maxRetriesExceeded':_0x321bf8(0xe0)}}},n=e;module[_0x321bf8(0xbb)]=n;
1
+ 'use strict';const _0x44ea2f=_0x3634;(function(_0x5a9ea8,_0x364af2){const _0x4a5750=_0x3634,_0x2ae41d=_0x5a9ea8();while(!![]){try{const _0x49599c=parseInt(_0x4a5750(0x183))/0x1*(parseInt(_0x4a5750(0x16c))/0x2)+parseInt(_0x4a5750(0x168))/0x3+-parseInt(_0x4a5750(0x166))/0x4*(-parseInt(_0x4a5750(0x178))/0x5)+-parseInt(_0x4a5750(0x164))/0x6*(parseInt(_0x4a5750(0x18b))/0x7)+parseInt(_0x4a5750(0x16d))/0x8*(-parseInt(_0x4a5750(0x191))/0x9)+parseInt(_0x4a5750(0x195))/0xa*(parseInt(_0x4a5750(0x167))/0xb)+-parseInt(_0x4a5750(0x192))/0xc;if(_0x49599c===_0x364af2)break;else _0x2ae41d['push'](_0x2ae41d['shift']());}catch(_0x159ca6){_0x2ae41d['push'](_0x2ae41d['shift']());}}}(_0x4241,0x20edf));function _0x3634(_0x4458f6,_0x23a6d8){const _0x4241e8=_0x4241();return _0x3634=function(_0x363430,_0xfecaba){_0x363430=_0x363430-0x162;let _0x42d1f3=_0x4241e8[_0x363430];return _0x42d1f3;},_0x3634(_0x4458f6,_0x23a6d8);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x44ea2f(0x189),'connected':_0x44ea2f(0x165),'failed':_0x44ea2f(0x17a),'retrying':_0x44ea2f(0x181),'unknown':_0x44ea2f(0x190),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x44ea2f(0x196),'networkError':_0x44ea2f(0x173),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':_0x44ea2f(0x171),'clickToConfigure':_0x44ea2f(0x16a)},'mcpConfig':{'title':_0x44ea2f(0x182),'description':_0x44ea2f(0x177),'apiKey':_0x44ea2f(0x17b),'apiKeyPlaceholder':'Enter\x20your\x20API\x20key','apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x44ea2f(0x184),'enableAuthHint':_0x44ea2f(0x193),'connectionInfo':_0x44ea2f(0x17c),'mcpClientConfig':_0x44ea2f(0x17c),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':'Configuration\x20Steps:','configStep1':_0x44ea2f(0x17e),'configStep2':_0x44ea2f(0x18e),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x44ea2f(0x187),'sessionIdDescription':_0x44ea2f(0x16e),'authorizationDescription':_0x44ea2f(0x17f),'configParameters':_0x44ea2f(0x163),'maxRetries':_0x44ea2f(0x176),'save':_0x44ea2f(0x174),'saving':_0x44ea2f(0x162),'note1':_0x44ea2f(0x179),'note2':_0x44ea2f(0x18c),'configSaved':_0x44ea2f(0x16b),'configError':_0x44ea2f(0x16f),'apiApplyInfo':{'title':_0x44ea2f(0x172),'description':_0x44ea2f(0x185),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x44ea2f(0x18d)},'validation':{'apiKeyRequired':_0x44ea2f(0x186),'apiKeyTooShort':_0x44ea2f(0x169),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x44ea2f(0x18f),'connecting':_0x44ea2f(0x170),'connected':_0x44ea2f(0x188),'failed':_0x44ea2f(0x175),'retrying':'Retrying...'},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x44ea2f(0x17d),'networkError':_0x44ea2f(0x194),'maxRetriesExceeded':_0x44ea2f(0x180)}}},n=e;module[_0x44ea2f(0x18a)]=n;function _0x4241(){const _0x5541b4=['Saving...','Configuration\x20Parameters:','733968iFfdLI','MCP\x20Connected','12aRvfmX','11ioBbdR','195687kWkqPu','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Click\x20to\x20configure\x20MCP','Configuration\x20saved\x20successfully','1308RiXCAu','30560ojBxwf','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Failed\x20to\x20save\x20configuration','Connecting...','Click\x20to\x20connect\x20MCP','What\x20is\x20API\x20Key?','MCP:\x20Network\x20Error','Save\x20Configuration','Connection\x20Failed','Max\x20Retries','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','212935NARbQa','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','MCP\x20Connection\x20Failed','API\x20Key','MCP\x20Client\x20Configuration','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20with\x20Bearer\x20prefix.','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Configuration','218dowQCt','Enable\x20Authentication','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','API\x20key\x20is\x20required','Session\x20ID','Connected','MCP\x20Connecting...','exports','7KRisOs','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Disconnected','MCP\x20Unknown\x20Status','360fiHJvW','2148264ygxuzB','Enable\x20authentication\x20for\x20secure\x20connections','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','2534670WRcwkF','MCP:\x20Session\x20ID\x20Occupied'];_0x4241=function(){return _0x5541b4;};return _0x4241();}
@@ -1 +1 @@
1
- 'use strict';const _0x1cc0dd=_0x33b5;(function(_0x314f3d,_0x406e64){const _0x392fe5=_0x33b5,_0x44bdd8=_0x314f3d();while(!![]){try{const _0x55e0af=parseInt(_0x392fe5(0x119))/0x1*(-parseInt(_0x392fe5(0x127))/0x2)+-parseInt(_0x392fe5(0x13b))/0x3*(-parseInt(_0x392fe5(0x141))/0x4)+parseInt(_0x392fe5(0x143))/0x5*(-parseInt(_0x392fe5(0x145))/0x6)+parseInt(_0x392fe5(0x132))/0x7+-parseInt(_0x392fe5(0x126))/0x8+parseInt(_0x392fe5(0x139))/0x9*(-parseInt(_0x392fe5(0x140))/0xa)+parseInt(_0x392fe5(0x147))/0xb*(parseInt(_0x392fe5(0x11b))/0xc);if(_0x55e0af===_0x406e64)break;else _0x44bdd8['push'](_0x44bdd8['shift']());}catch(_0x54aa17){_0x44bdd8['push'](_0x44bdd8['shift']());}}}(_0x54cc,0x6de83));function _0x33b5(_0x140931,_0x213640){const _0x54cc2c=_0x54cc();return _0x33b5=function(_0x33b5b9,_0x1e9013){_0x33b5b9=_0x33b5b9-0x117;let _0x2f78cd=_0x54cc2c[_0x33b5b9];return _0x2f78cd;},_0x33b5(_0x140931,_0x213640);}function _0x54cc(){const _0xd70e47=['144108FlBSUr','Max\x20Retries','Session\x20ID','Retrying...','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','API\x20key\x20is\x20required','Click\x20to\x20configure\x20MCP','Failed\x20to\x20save\x20configuration','MCP:\x20Max\x20Retries\x20Exceeded','Connected','Get\x20your\x20API\x20key\x20in\x20seconds','3510368KknOTh','2976KTgupc','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Configuration\x20Steps:','Enter\x20your\x20API\x20key','MCP\x20Configuration','Configuration\x20saved\x20successfully','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Connection\x20Failed','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Network\x20Error','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','1640212lUqNyR','MCP\x20Connected','MCP\x20Connecting...','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP\x20Disconnected','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Saving...','405KDprnD','MCP:\x20Session\x20ID\x20Occupied','3UGMHWf','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connecting...','MCP\x20Client\x20Configuration','Connection\x20Failed','176690onSzkV','1771484PLdVcc','Disconnected','5HBviwb','Enable\x20Authentication','372600CQJwvu','What\x20is\x20API\x20Key?','1155SvAFRR','MCP\x20Unknown\x20Status','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Enable\x20authentication\x20for\x20secure\x20connections','129omdqMi','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file'];_0x54cc=function(){return _0xd70e47;};return _0x54cc();}const e={'mcpStatus':{'disconnected':_0x1cc0dd(0x136),'connecting':_0x1cc0dd(0x134),'connected':_0x1cc0dd(0x133),'failed':_0x1cc0dd(0x12e),'retrying':'MCP\x20Retrying...','unknown':_0x1cc0dd(0x148),'unauthorized':'MCP:\x20Unauthorized','sessionOccupied':_0x1cc0dd(0x13a),'networkError':_0x1cc0dd(0x130),'maxRetriesExceeded':_0x1cc0dd(0x123),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x1cc0dd(0x121)},'mcpConfig':{'title':_0x1cc0dd(0x12b),'description':_0x1cc0dd(0x117),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x1cc0dd(0x12a),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x1cc0dd(0x144),'enableAuthHint':_0x1cc0dd(0x118),'connectionInfo':'MCP\x20Client\x20Configuration','mcpClientConfig':_0x1cc0dd(0x13e),'configInstructions':'Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','configStepTitle':_0x1cc0dd(0x129),'configStep1':'Copy\x20the\x20JSON\x20configuration\x20below','configStep2':_0x1cc0dd(0x11a),'configStep3':_0x1cc0dd(0x12d),'sessionId':_0x1cc0dd(0x11d),'sessionIdDescription':_0x1cc0dd(0x128),'authorizationDescription':_0x1cc0dd(0x12f),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1cc0dd(0x11c),'save':'Save\x20Configuration','saving':_0x1cc0dd(0x138),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x1cc0dd(0x131),'configSaved':_0x1cc0dd(0x12c),'configError':_0x1cc0dd(0x122),'apiApplyInfo':{'title':_0x1cc0dd(0x146),'description':'API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x1cc0dd(0x125)},'validation':{'apiKeyRequired':_0x1cc0dd(0x120),'apiKeyTooShort':_0x1cc0dd(0x137),'invalidConfig':'Invalid\x20configuration','invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1cc0dd(0x142),'connecting':_0x1cc0dd(0x13d),'connected':_0x1cc0dd(0x124),'failed':_0x1cc0dd(0x13f),'retrying':_0x1cc0dd(0x11e)},'connectionError':{'unauthorized':_0x1cc0dd(0x13c),'sessionOccupied':_0x1cc0dd(0x11f),'networkError':_0x1cc0dd(0x135),'maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module['exports']=n;
1
+ 'use strict';function _0x5f22(){const _0x413d3e=['37716uVhBSI','Enter\x20your\x20API\x20key','Session\x20ID','MCP\x20Connection\x20Failed','Connected','MCP\x20Connecting...','exports','336471qbJftx','Retrying...','Connecting...','Save\x20Configuration','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Session\x20ID\x20Occupied','Max\x20Retries','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','5dgEFyQ','166521dfHuLI','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','MCP\x20Unknown\x20Status','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','5058uutgHH','2InSvwc','322rvlGvV','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','20XbLuyv','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Disconnected','Saving...','14988aqBqiw','MCP\x20Disconnected','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','520PnjYhE','API\x20Key','Configuration\x20Steps:','Enable\x20authentication\x20for\x20secure\x20connections','392412MVOoue','1269202ADdNmc','MCP:\x20Unauthorized','Get\x20your\x20API\x20key\x20in\x20seconds','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\x20Parameters:','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Connection\x20Failed','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','MCP\x20Retrying...','MCP\x20Connected','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','MCP:\x20Network\x20Error','MCP\x20Client\x20Configuration','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','1160JFVWvK','Enable\x20Authentication','Invalid\x20configuration','Click\x20to\x20configure\x20MCP','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration'];_0x5f22=function(){return _0x413d3e;};return _0x5f22();}const _0x59b9b3=_0x5a6a;(function(_0x3418a4,_0x2f5623){const _0x201097=_0x5a6a,_0x386982=_0x3418a4();while(!![]){try{const _0x170a2f=parseInt(_0x201097(0x124))/0x1+-parseInt(_0x201097(0x129))/0x2*(-parseInt(_0x201097(0x119))/0x3)+parseInt(_0x201097(0x137))/0x4*(-parseInt(_0x201097(0x123))/0x5)+-parseInt(_0x201097(0x112))/0x6*(parseInt(_0x201097(0x12a))/0x7)+-parseInt(_0x201097(0x10c))/0x8*(-parseInt(_0x201097(0x128))/0x9)+parseInt(_0x201097(0x12c))/0xa*(parseInt(_0x201097(0xfe))/0xb)+-parseInt(_0x201097(0x130))/0xc*(parseInt(_0x201097(0x133))/0xd);if(_0x170a2f===_0x2f5623)break;else _0x386982['push'](_0x386982['shift']());}catch(_0x2aa506){_0x386982['push'](_0x386982['shift']());}}}(_0x5f22,0x25871));function _0x5a6a(_0x1b78ea,_0x5cd67e){const _0x5f22d6=_0x5f22();return _0x5a6a=function(_0x5a6aed,_0x4bcce5){_0x5a6aed=_0x5a6aed-0xfe;let _0x1a411b=_0x5f22d6[_0x5a6aed];return _0x1a411b;},_0x5a6a(_0x1b78ea,_0x5cd67e);}const e={'mcpStatus':{'disconnected':_0x59b9b3(0x131),'connecting':_0x59b9b3(0x117),'connected':_0x59b9b3(0x107),'failed':_0x59b9b3(0x115),'retrying':_0x59b9b3(0x106),'unknown':_0x59b9b3(0x126),'unauthorized':_0x59b9b3(0xff),'sessionOccupied':_0x59b9b3(0x120),'networkError':_0x59b9b3(0x109),'maxRetriesExceeded':'MCP:\x20Max\x20Retries\x20Exceeded','clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x59b9b3(0x10f)},'mcpConfig':{'title':'MCP\x20Configuration','description':'Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','apiKey':_0x59b9b3(0x134),'apiKeyPlaceholder':_0x59b9b3(0x113),'apiKeyHint':_0x59b9b3(0x12d),'enableAuth':_0x59b9b3(0x10d),'enableAuthHint':_0x59b9b3(0x136),'connectionInfo':_0x59b9b3(0x10a),'mcpClientConfig':_0x59b9b3(0x10a),'configInstructions':_0x59b9b3(0x122),'configStepTitle':_0x59b9b3(0x135),'configStep1':_0x59b9b3(0x11e),'configStep2':_0x59b9b3(0x110),'configStep3':_0x59b9b3(0x12b),'sessionId':_0x59b9b3(0x114),'sessionIdDescription':_0x59b9b3(0x108),'authorizationDescription':_0x59b9b3(0x11f),'configParameters':_0x59b9b3(0x102),'maxRetries':_0x59b9b3(0x121),'save':_0x59b9b3(0x11c),'saving':_0x59b9b3(0x12f),'note1':_0x59b9b3(0x127),'note2':_0x59b9b3(0x125),'configSaved':'Configuration\x20saved\x20successfully','configError':_0x59b9b3(0x111),'apiApplyInfo':{'title':_0x59b9b3(0x11d),'description':_0x59b9b3(0x101),'univerAiLabel':'Univer\x20AI\x20Console','getStarted':_0x59b9b3(0x100)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x59b9b3(0x10b),'invalidConfig':_0x59b9b3(0x10e),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x59b9b3(0x12e),'connecting':_0x59b9b3(0x11b),'connected':_0x59b9b3(0x116),'failed':_0x59b9b3(0x104),'retrying':_0x59b9b3(0x11a)},'connectionError':{'unauthorized':_0x59b9b3(0x103),'sessionOccupied':_0x59b9b3(0x132),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x59b9b3(0x105)}}},n=e;module[_0x59b9b3(0x118)]=n;
@@ -1 +1 @@
1
- 'use strict';const _0x34d372=_0xf987;(function(_0x1df404,_0x54f0c9){const _0x1d6bb3=_0xf987,_0x4a69b3=_0x1df404();while(!![]){try{const _0xd6a140=-parseInt(_0x1d6bb3(0x210))/0x1+parseInt(_0x1d6bb3(0x217))/0x2*(-parseInt(_0x1d6bb3(0x1ea))/0x3)+parseInt(_0x1d6bb3(0x1fe))/0x4*(-parseInt(_0x1d6bb3(0x1e6))/0x5)+-parseInt(_0x1d6bb3(0x215))/0x6+-parseInt(_0x1d6bb3(0x1f9))/0x7*(-parseInt(_0x1d6bb3(0x204))/0x8)+-parseInt(_0x1d6bb3(0x1fa))/0x9+parseInt(_0x1d6bb3(0x1ed))/0xa*(parseInt(_0x1d6bb3(0x20d))/0xb);if(_0xd6a140===_0x54f0c9)break;else _0x4a69b3['push'](_0x4a69b3['shift']());}catch(_0x36f631){_0x4a69b3['push'](_0x4a69b3['shift']());}}}(_0x5f17,0xbf378));const e={'mcpStatus':{'disconnected':_0x34d372(0x203),'connecting':_0x34d372(0x200),'connected':_0x34d372(0x20b),'failed':_0x34d372(0x20c),'retrying':_0x34d372(0x20f),'unknown':_0x34d372(0x1fb),'unauthorized':_0x34d372(0x205),'sessionOccupied':_0x34d372(0x1ef),'networkError':_0x34d372(0x1ec),'maxRetriesExceeded':'MCP:\x20超出最大重试次数','clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x34d372(0x214)},'mcpConfig':{'title':'MCP\x20配置','description':_0x34d372(0x1f1),'apiKey':_0x34d372(0x202),'apiKeyPlaceholder':_0x34d372(0x1e9),'apiKeyHint':_0x34d372(0x1f4),'enableAuth':_0x34d372(0x209),'enableAuthHint':_0x34d372(0x206),'connectionInfo':_0x34d372(0x208),'mcpClientConfig':_0x34d372(0x208),'configInstructions':_0x34d372(0x211),'configStepTitle':'配置步骤:','configStep1':_0x34d372(0x1ee),'configStep2':_0x34d372(0x1fd),'configStep3':_0x34d372(0x1f6),'sessionId':_0x34d372(0x1f0),'sessionIdDescription':_0x34d372(0x1f7),'authorizationDescription':_0x34d372(0x1f2),'configParameters':'配置参数:','maxRetries':_0x34d372(0x1e7),'save':'保存配置','saving':_0x34d372(0x201),'note1':_0x34d372(0x207),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':_0x34d372(0x1f8),'configError':_0x34d372(0x1fc),'apiApplyInfo':{'title':_0x34d372(0x20e),'description':_0x34d372(0x1f5),'univerAiLabel':'Univer\x20AI\x20控制台','getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x34d372(0x216),'apiKeyTooShort':_0x34d372(0x1e8),'invalidConfig':_0x34d372(0x1eb),'invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':'未连接','connecting':'连接中...','connected':_0x34d372(0x1ff),'failed':_0x34d372(0x212),'retrying':'重连中...'},'connectionError':{'unauthorized':'权限验证失败,请检查您的\x20API\x20密钥','sessionOccupied':_0x34d372(0x20a),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':_0x34d372(0x1f3)}}};module[_0x34d372(0x213)]=e;function _0xf987(_0x50cfc0,_0x5a1088){const _0x5f17fc=_0x5f17();return _0xf987=function(_0xf98760,_0x53585f){_0xf98760=_0xf98760-0x1e6;let _0x3f1c2d=_0x5f17fc[_0xf98760];return _0x3f1c2d;},_0xf987(_0x50cfc0,_0x5a1088);}function _0x5f17(){const _0x35e569=['MCP\x20客户端配置','启用身份验证','会话\x20ID\x20已被占用,请稍后再试','MCP\x20已连接','MCP\x20连接失败','12045wmNLZR','什么是\x20API\x20密钥?','MCP\x20重连中...','866741DULfOi','将以下配置添加到您的\x20MCP\x20客户端设置中:','连接失败','exports','点击配置\x20MCP','1941516CuVRNd','API\x20密钥不能为空','8PadUEx','1795135vfKUtq','最大重试次数','API\x20密钥长度至少需要\x2010\x20','请输入您的\x20API\x20密钥','756393JlCrMh','配置无效','MCP:\x20网络错误','27010gzTxul','复制以下\x20JSON\x20配置','MCP:\x20会话\x20ID\x20已被占用','会话ID','配置\x20MCP\x20使用\x20AI\x20操作电子表格','带有\x20Bearer\x20前缀的\x20API\x20密钥。','超出最大重试次数,请稍后再试','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','重启您的\x20MCP\x20客户端以使配置生效','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置保存成功','49lkIYOW','1612431tHYpQT','MCP\x20状态未知','配置保存失败','将配置添加到您的\x20MCP\x20客户端设置文件中','12hWnKOU','已连接','MCP\x20连接中...','保存中...','API\x20密钥','MCP\x20已断开','1463680UpIapo','MCP:\x20未授权','启用身份验证以获得安全连接','配置更改将立即生效'];_0x5f17=function(){return _0x35e569;};return _0x5f17();}
1
+ 'use strict';const _0x2ab1ce=_0x2856;(function(_0x2d9163,_0xc59eb1){const _0x216948=_0x2856,_0x4b13d2=_0x2d9163();while(!![]){try{const _0x79a3ad=-parseInt(_0x216948(0xe4))/0x1+-parseInt(_0x216948(0xd8))/0x2*(parseInt(_0x216948(0xdb))/0x3)+parseInt(_0x216948(0xf4))/0x4*(-parseInt(_0x216948(0xf0))/0x5)+-parseInt(_0x216948(0xe7))/0x6+-parseInt(_0x216948(0xde))/0x7*(parseInt(_0x216948(0xf9))/0x8)+-parseInt(_0x216948(0x102))/0x9+parseInt(_0x216948(0xea))/0xa;if(_0x79a3ad===_0xc59eb1)break;else _0x4b13d2['push'](_0x4b13d2['shift']());}catch(_0x2cb2b8){_0x4b13d2['push'](_0x4b13d2['shift']());}}}(_0x1c2a,0x86be5));function _0x2856(_0x107da5,_0x24c6bc){const _0x1c2ad3=_0x1c2a();return _0x2856=function(_0x2856e1,_0x1485b0){_0x2856e1=_0x2856e1-0xd1;let _0x4e1a02=_0x1c2ad3[_0x2856e1];return _0x4e1a02;},_0x2856(_0x107da5,_0x24c6bc);}function _0x1c2a(){const _0x53923c=['点击配置\x20MCP','连接失败','会话ID','配置保存失败','MCP\x20客户端配置','2843280gRcJmj','启用身份验证','保存中...','超出最大重试次数,请稍后再试','MCP\x20已断开','API\x20密钥无效,请检查密钥是否正确','连接中...','MCP:\x20超出最大重试次数','11474FvWnux','MCP\x20已连接','启用身份验证以获得安全连接','69ePRBOD','网络连接错误,请检查您的网络连接','保存配置','7zGEXTa','什么是\x20API\x20密钥?','将配置添加到您的\x20MCP\x20客户端设置文件中','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','配置参数:','复制以下\x20JSON\x20配置','166585nJjqzX','点击连接\x20MCP','Univer\x20AI\x20控制台','3655950OyzdBM','配置更改将立即生效','MCP:\x20未授权','25309230wshngh','配置步骤:','配置无效','会话\x20ID\x20已被占用,请稍后再试','重启您的\x20MCP\x20客户端以使配置生效','MCP:\x20会话\x20ID\x20已被占用','5VKYRnn','您的\x20API\x20密钥将在此浏览器中本地存储','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','API\x20密钥','243576QujPfN','exports','已连接','MCP\x20状态未知','配置\x20MCP\x20使用\x20AI\x20操作电子表格','5554712IMJlWO','未连接','权限验证失败,请检查您的\x20API\x20密钥','重连中...'];_0x1c2a=function(){return _0x53923c;};return _0x1c2a();}const e={'mcpStatus':{'disconnected':_0x2ab1ce(0xd4),'connecting':'MCP\x20连接中...','connected':_0x2ab1ce(0xd9),'failed':'MCP\x20连接失败','retrying':'MCP\x20重连中...','unknown':_0x2ab1ce(0xf7),'unauthorized':_0x2ab1ce(0xe9),'sessionOccupied':_0x2ab1ce(0xef),'networkError':'MCP:\x20网络错误','maxRetriesExceeded':_0x2ab1ce(0xd7),'clickToConnect':_0x2ab1ce(0xe5),'clickToConfigure':_0x2ab1ce(0xfd)},'mcpConfig':{'title':'MCP\x20配置','description':_0x2ab1ce(0xf8),'apiKey':_0x2ab1ce(0xf3),'apiKeyPlaceholder':'请输入您的\x20API\x20密钥','apiKeyHint':_0x2ab1ce(0xf1),'enableAuth':_0x2ab1ce(0xd1),'enableAuthHint':_0x2ab1ce(0xda),'connectionInfo':_0x2ab1ce(0x101),'mcpClientConfig':_0x2ab1ce(0x101),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x2ab1ce(0xeb),'configStep1':_0x2ab1ce(0xe3),'configStep2':_0x2ab1ce(0xe0),'configStep3':_0x2ab1ce(0xee),'sessionId':_0x2ab1ce(0xff),'sessionIdDescription':_0x2ab1ce(0xe1),'authorizationDescription':'带有\x20Bearer\x20前缀的\x20API\x20密钥。','configParameters':_0x2ab1ce(0xe2),'maxRetries':'最大重试次数','save':_0x2ab1ce(0xdd),'saving':_0x2ab1ce(0xd2),'note1':_0x2ab1ce(0xe8),'note2':'您的\x20API\x20密钥安全存储在本地存储中','configSaved':'配置保存成功','configError':_0x2ab1ce(0x100),'apiApplyInfo':{'title':_0x2ab1ce(0xdf),'description':_0x2ab1ce(0xf2),'univerAiLabel':_0x2ab1ce(0xe6),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':'API\x20密钥长度至少需要\x2010\x20','invalidConfig':_0x2ab1ce(0xec),'invalidApiKey':_0x2ab1ce(0xd5)},'connectionStatus':{'disconnected':_0x2ab1ce(0xfa),'connecting':_0x2ab1ce(0xd6),'connected':_0x2ab1ce(0xf6),'failed':_0x2ab1ce(0xfe),'retrying':_0x2ab1ce(0xfc)},'connectionError':{'unauthorized':_0x2ab1ce(0xfb),'sessionOccupied':_0x2ab1ce(0xed),'networkError':_0x2ab1ce(0xdc),'maxRetriesExceeded':_0x2ab1ce(0xd3)}}};module[_0x2ab1ce(0xf5)]=e;
@@ -1 +1 @@
1
- 'use strict';const _0x4d8531=_0x5e59;(function(_0x24d224,_0x555ad5){const _0x42b831=_0x5e59,_0x34dde2=_0x24d224();while(!![]){try{const _0x4b0302=parseInt(_0x42b831(0x1b9))/0x1*(parseInt(_0x42b831(0x1d7))/0x2)+parseInt(_0x42b831(0x1bf))/0x3+parseInt(_0x42b831(0x1c4))/0x4+parseInt(_0x42b831(0x1bc))/0x5+-parseInt(_0x42b831(0x1dd))/0x6*(-parseInt(_0x42b831(0x1d4))/0x7)+parseInt(_0x42b831(0x1db))/0x8+-parseInt(_0x42b831(0x1bd))/0x9;if(_0x4b0302===_0x555ad5)break;else _0x34dde2['push'](_0x34dde2['shift']());}catch(_0x54527a){_0x34dde2['push'](_0x34dde2['shift']());}}}(_0x10cd,0x602d5));function _0x5e59(_0x2e28e0,_0x4b2ab6){const _0x10cde8=_0x10cd();return _0x5e59=function(_0x5e59c7,_0x38b0d7){_0x5e59c7=_0x5e59c7-0x1ae;let _0x2dfbc7=_0x10cde8[_0x5e59c7];return _0x2dfbc7;},_0x5e59(_0x2e28e0,_0x4b2ab6);}const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x4d8531(0x1c5),'failed':'MCP\x20Connection\x20Failed','retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':'MCP:\x20Unauthorized','sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4d8531(0x1ba),'maxRetriesExceeded':_0x4d8531(0x1b1),'clickToConnect':_0x4d8531(0x1dc),'clickToConfigure':_0x4d8531(0x1d6)},'mcpConfig':{'title':_0x4d8531(0x1b3),'description':_0x4d8531(0x1d5),'apiKey':_0x4d8531(0x1b8),'apiKeyPlaceholder':_0x4d8531(0x1cb),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':_0x4d8531(0x1c9),'enableAuthHint':_0x4d8531(0x1d9),'connectionInfo':_0x4d8531(0x1c0),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x4d8531(0x1af),'configStepTitle':_0x4d8531(0x1b2),'configStep1':_0x4d8531(0x1be),'configStep2':_0x4d8531(0x1c3),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':_0x4d8531(0x1bb),'sessionIdDescription':_0x4d8531(0x1cd),'authorizationDescription':_0x4d8531(0x1d2),'configParameters':_0x4d8531(0x1c1),'maxRetries':_0x4d8531(0x1e0),'save':_0x4d8531(0x1d3),'saving':_0x4d8531(0x1b4),'note1':'Configuration\x20changes\x20will\x20take\x20effect\x20immediately','note2':_0x4d8531(0x1ce),'configSaved':_0x4d8531(0x1da),'configError':'Failed\x20to\x20save\x20configuration','apiApplyInfo':{'title':_0x4d8531(0x1df),'description':_0x4d8531(0x1d8),'univerAiLabel':_0x4d8531(0x1b6),'getStarted':_0x4d8531(0x1c2)},'validation':{'apiKeyRequired':_0x4d8531(0x1b5),'apiKeyTooShort':_0x4d8531(0x1c7),'invalidConfig':_0x4d8531(0x1d0),'invalidApiKey':_0x4d8531(0x1c8)},'connectionStatus':{'disconnected':_0x4d8531(0x1b7),'connecting':_0x4d8531(0x1cc),'connected':_0x4d8531(0x1d1),'failed':'Connection\x20Failed','retrying':_0x4d8531(0x1de)},'connectionError':{'unauthorized':_0x4d8531(0x1ae),'sessionOccupied':_0x4d8531(0x1ca),'networkError':_0x4d8531(0x1c6),'maxRetriesExceeded':_0x4d8531(0x1cf)}}},n=e;function _0x10cd(){const _0x330579=['MCP:\x20Max\x20Retries\x20Exceeded','Configuration\x20Steps:','MCP\x20Configuration','Saving...','API\x20key\x20is\x20required','Univer\x20AI\x20Console','Disconnected','API\x20Key','6ZQnqbR','MCP:\x20Network\x20Error','Session\x20ID','1722675pQIdmE','6178815WoTBvt','Copy\x20the\x20JSON\x20configuration\x20below','5289HdDBNY','MCP\x20Client\x20Configuration','Configuration\x20Parameters:','Get\x20your\x20API\x20key\x20in\x20seconds','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','167772HAqLYb','MCP\x20Connected','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','Enable\x20Authentication','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Enter\x20your\x20API\x20key','Connecting...','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\x20is\x20stored\x20securely\x20in\x20local\x20storage','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Invalid\x20configuration','Connected','API\x20key\x20with\x20Bearer\x20prefix.','Save\x20Configuration','159509KJCPiy','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Click\x20to\x20configure\x20MCP','171718wUyQlx','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Enable\x20authentication\x20for\x20secure\x20connections','Configuration\x20saved\x20successfully','869760edusGa','Click\x20to\x20connect\x20MCP','18dTdzKN','Retrying...','What\x20is\x20API\x20Key?','Max\x20Retries','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','exports'];_0x10cd=function(){return _0x330579;};return _0x10cd();}module[_0x4d8531(0x1b0)]=n;
1
+ 'use strict';const _0x1f0394=_0x3023;function _0x3023(_0x3311fc,_0x3cee0a){const _0xdf047=_0xdf04();return _0x3023=function(_0x302392,_0x2d08bf){_0x302392=_0x302392-0x11f;let _0x38dec0=_0xdf047[_0x302392];return _0x38dec0;},_0x3023(_0x3311fc,_0x3cee0a);}(function(_0x4166fc,_0x28f30f){const _0x27efc5=_0x3023,_0x348ec5=_0x4166fc();while(!![]){try{const _0x439f1f=parseInt(_0x27efc5(0x13e))/0x1*(-parseInt(_0x27efc5(0x128))/0x2)+-parseInt(_0x27efc5(0x12c))/0x3*(parseInt(_0x27efc5(0x147))/0x4)+-parseInt(_0x27efc5(0x13c))/0x5+-parseInt(_0x27efc5(0x130))/0x6+-parseInt(_0x27efc5(0x14f))/0x7+parseInt(_0x27efc5(0x13d))/0x8*(-parseInt(_0x27efc5(0x138))/0x9)+-parseInt(_0x27efc5(0x126))/0xa*(-parseInt(_0x27efc5(0x13f))/0xb);if(_0x439f1f===_0x28f30f)break;else _0x348ec5['push'](_0x348ec5['shift']());}catch(_0x58e5c9){_0x348ec5['push'](_0x348ec5['shift']());}}}(_0xdf04,0xb2544));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':'MCP\x20Connecting...','connected':_0x1f0394(0x123),'failed':_0x1f0394(0x12e),'retrying':'MCP\x20Retrying...','unknown':_0x1f0394(0x125),'unauthorized':_0x1f0394(0x145),'sessionOccupied':_0x1f0394(0x136),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x1f0394(0x122),'clickToConnect':_0x1f0394(0x146),'clickToConfigure':_0x1f0394(0x13b)},'mcpConfig':{'title':_0x1f0394(0x151),'description':_0x1f0394(0x149),'apiKey':_0x1f0394(0x133),'apiKeyPlaceholder':_0x1f0394(0x12a),'apiKeyHint':_0x1f0394(0x135),'enableAuth':_0x1f0394(0x14d),'enableAuthHint':_0x1f0394(0x148),'connectionInfo':_0x1f0394(0x142),'mcpClientConfig':_0x1f0394(0x142),'configInstructions':_0x1f0394(0x150),'configStepTitle':_0x1f0394(0x152),'configStep1':_0x1f0394(0x127),'configStep2':_0x1f0394(0x143),'configStep3':_0x1f0394(0x11f),'sessionId':_0x1f0394(0x120),'sessionIdDescription':_0x1f0394(0x129),'authorizationDescription':_0x1f0394(0x140),'configParameters':'Configuration\x20Parameters:','maxRetries':_0x1f0394(0x14b),'save':'Save\x20Configuration','saving':_0x1f0394(0x134),'note1':_0x1f0394(0x141),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x1f0394(0x14e),'configError':_0x1f0394(0x14c),'apiApplyInfo':{'title':_0x1f0394(0x12b),'description':_0x1f0394(0x137),'univerAiLabel':_0x1f0394(0x144),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x1f0394(0x132),'apiKeyTooShort':_0x1f0394(0x14a),'invalidConfig':_0x1f0394(0x12f),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x1f0394(0x13a),'connecting':_0x1f0394(0x153),'connected':_0x1f0394(0x131),'failed':_0x1f0394(0x124),'retrying':'Retrying...'},'connectionError':{'unauthorized':_0x1f0394(0x139),'sessionOccupied':_0x1f0394(0x12d),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':'Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later'}}},n=e;module[_0x1f0394(0x121)]=n;function _0xdf04(){const _0x2127c3=['MCP\x20Client\x20Configuration','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console','MCP:\x20Unauthorized','Click\x20to\x20connect\x20MCP','4GRySdQ','Enable\x20authentication\x20for\x20secure\x20connections','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Max\x20Retries','Failed\x20to\x20save\x20configuration','Enable\x20Authentication','Configuration\x20saved\x20successfully','10006031AOlkZx','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP\x20Configuration','Configuration\x20Steps:','Connecting...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','Session\x20ID','exports','MCP:\x20Max\x20Retries\x20Exceeded','MCP\x20Connected','Connection\x20Failed','MCP\x20Unknown\x20Status','2150AQNLOQ','Copy\x20the\x20JSON\x20configuration\x20below','209566YUdcFy','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','Enter\x20your\x20API\x20key','What\x20is\x20API\x20Key?','2904159izOWSi','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','MCP\x20Connection\x20Failed','Invalid\x20configuration','2215302YyIPzo','Connected','API\x20key\x20is\x20required','API\x20Key','Saving...','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','MCP:\x20Session\x20ID\x20Occupied','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','48249bibIPk','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Disconnected','Click\x20to\x20configure\x20MCP','608395NtQFoh','1528Lluslk','2TfrjFs','248259CVKyBN','API\x20key\x20with\x20Bearer\x20prefix.','Configuration\x20changes\x20will\x20take\x20effect\x20immediately'];_0xdf04=function(){return _0x2127c3;};return _0xdf04();}
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4721d=_0x226a;(function(_0x2d4d8d,_0x192329){const _0x2a1d77=_0x226a,_0x5680bd=_0x2d4d8d();while(!![]){try{const _0x12fbeb=parseInt(_0x2a1d77(0x2b9))/0x1*(-parseInt(_0x2a1d77(0x30b))/0x2)+-parseInt(_0x2a1d77(0x281))/0x3*(-parseInt(_0x2a1d77(0x1e7))/0x4)+parseInt(_0x2a1d77(0x26d))/0x5*(-parseInt(_0x2a1d77(0x24e))/0x6)+parseInt(_0x2a1d77(0x200))/0x7+parseInt(_0x2a1d77(0x243))/0x8*(parseInt(_0x2a1d77(0x2ff))/0x9)+parseInt(_0x2a1d77(0x2fc))/0xa*(-parseInt(_0x2a1d77(0x286))/0xb)+parseInt(_0x2a1d77(0x1da))/0xc;if(_0x12fbeb===_0x192329)break;else _0x5680bd['push'](_0x5680bd['shift']());}catch(_0x2d0193){_0x5680bd['push'](_0x5680bd['shift']());}}}(_0x4b37,0x3da33));var Pe=Object[_0x4721d(0x221)],Ee=(_0x2f1c98,_0x18a7cb,_0xe12123)=>_0x18a7cb in _0x2f1c98?Pe(_0x2f1c98,_0x18a7cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe12123}):_0x2f1c98[_0x18a7cb]=_0xe12123,x=(_0x2c71d8,_0x2ad183,_0x319ccd)=>Ee(_0x2c71d8,typeof _0x2ad183!='symbol'?_0x2ad183+'':_0x2ad183,_0x319ccd);import{LocaleService as _0x449b31,Inject as _0xa6816e,Injector as _0x541a5c,IConfigService as _0x322e87,ILocalStorageService as _0x51e914,ILogService as _0x466f9d,Disposable as _0x1dd7fd,CommandType as _0x82f273,ICommandService as _0x4372fc,DependentOn as _0x2960b3,Plugin as _0x1b86ad,merge as _0x4710af}from'@univerjs/core';import{jsxs as _0x1bd020,jsx as _0x71d551}from'react/jsx-runtime';import{MCPConnectionStatus as _0x26985a,MCPConnectionError as _0x4f6500,MCPConnectionController as _0xf9b0c1,MCP_PLUGIN_CONFIG_KEY as _0x11f737,UniverMCPPlugin as _0xa3b208}from'@univerjs-pro/mcp';import{clsx as _0x4f2249,Input as _0x1c1bd9,Button as _0x56bcc2,MessageType as _0x2e8040,Tooltip as _0xaee0b3}from'@univerjs/design';import{useDependency as _0x357040,useObservable as _0x3580f4,IUIPartsService as _0x1e1885,IDialogService as _0x6baade,IMessageService as _0x671585,ComponentManager as _0x38f699,connectInjector as _0x16d407,BuiltInUIPart as _0x442c44,MenuItemType as _0x1fb06e,RibbonStartGroup as _0xe3f608,IMenuManagerService as _0x23bcea}from'@univerjs/ui';import{BehaviorSubject as _0x37c39b}from'rxjs';import{useRef as _0x5e523d,createElement as _0x56d3b5,forwardRef as _0x2399dd,useState as _0x69cec1,useCallback as _0x23973d}from'react';import{ISocketService as _0x494737,WebSocketService as _0x321007}from'@univerjs/network';function b({ref:_0x5be806,..._0x436b33}){const _0x5bafda=_0x4721d,{icon:_0x320466,id:_0x3244f5,className:_0x1ca1b4,extend:_0x2fa13b,..._0x179c24}=_0x436b33,_0x3ea295=(_0x5bafda(0x202)+_0x3244f5+'\x20'+(_0x1ca1b4||''))[_0x5bafda(0x233)](),_0x25ad42=_0x5e523d('_'+We());return ae(_0x320466,''+_0x3244f5,{'defIds':_0x320466['defIds'],'idSuffix':_0x25ad42['current']},{'ref':_0x5be806,'className':_0x3ea295,..._0x179c24},_0x2fa13b);}function ae(_0x2baa90,_0x4f7f07,_0x26078c,_0x16bcc0,_0x1d0556){const _0x3e6610=_0x4721d;return _0x56d3b5(_0x2baa90[_0x3e6610(0x234)],{'key':_0x4f7f07,...Ye(_0x2baa90,_0x26078c,_0x1d0556),..._0x16bcc0},(Ze(_0x2baa90,_0x26078c)[_0x3e6610(0x236)]||[])[_0x3e6610(0x32a)]((_0x264629,_0x373dac)=>ae(_0x264629,_0x4f7f07+'-'+_0x2baa90[_0x3e6610(0x234)]+'-'+_0x373dac,_0x26078c,void 0x0,_0x1d0556)));}function Ye(_0x555613,_0x365dc2,_0x335db7){const _0x46c65a=_0x4721d,_0x349b04={..._0x555613[_0x46c65a(0x283)]};_0x335db7!=null&&_0x335db7[_0x46c65a(0x237)]&&_0x349b04[_0x46c65a(0x22a)]===_0x46c65a(0x237)&&(_0x349b04['fill']=_0x335db7[_0x46c65a(0x237)]),_0x555613[_0x46c65a(0x234)]===_0x46c65a(0x2ad)&&_0x349b04['id']&&(_0x349b04['id']=_0x349b04['id']+_0x365dc2[_0x46c65a(0x311)]),Object['entries'](_0x349b04)[_0x46c65a(0x296)](([_0x381ddd,_0x50f20f])=>{const _0x3dbba2=_0x46c65a;_0x381ddd===_0x3dbba2(0x2ad)&&typeof _0x50f20f==_0x3dbba2(0x2e7)&&(_0x349b04[_0x381ddd]=_0x50f20f[_0x3dbba2(0x2f7)](/url\(#(.*)\)/,'url(#$1'+_0x365dc2[_0x3dbba2(0x311)]+')'));});const {defIds:_0x466ea7}=_0x365dc2;return!_0x466ea7||_0x466ea7['length']===0x0||(_0x555613[_0x46c65a(0x234)]===_0x46c65a(0x255)&&_0x349b04[_0x46c65a(0x2bb)]&&(_0x349b04[_0x46c65a(0x2bb)]=_0x349b04[_0x46c65a(0x2bb)]+_0x365dc2[_0x46c65a(0x311)]),Object[_0x46c65a(0x250)](_0x349b04)[_0x46c65a(0x296)](([_0x140630,_0x472b9d])=>{const _0x3e9683=_0x46c65a;typeof _0x472b9d==_0x3e9683(0x2e7)&&(_0x349b04[_0x140630]=_0x472b9d['replace'](/url\(#(.*)\)/,_0x3e9683(0x228)+_0x365dc2[_0x3e9683(0x311)]+')'));})),_0x349b04;}function _0x4b37(){const _0x5eb5df=['mcpConfig.title','_createConfigPanelComponent','mcp-ui.config','univer-flex-1','M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','您的\x20API\x20密钥安全存储在本地存储中','保存中...','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','evenodd','defineProperty','substring','translate(.97)','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','subscribeConfigValue$','MCP\x20Unknown\x20Status','url(#$1','open','fill','Authorization:','mcpConfig.apiApplyInfo.title','MCP\x20Connected','配置参数:','Saving...','Connection\x20Failed','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','close-icon','trim','tag','HEADER_MENU','children','colorChannel1','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','0\x200\x2016\x2016','mcpConfig.connectionStatus.failed','将以下配置添加到您的\x20MCP\x20客户端设置中:','Configuration\x20Notes:','COMMAND','univer-flex\x20univer-gap-3','url(#off-line-icon_clip0_910_343)','getOwnPropertyDescriptor','HelpIcon','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','13496uLVUMR','univer-text-green-500','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','mcpStatus.unauthorized','NONE','未连接','registerComponent','includes','on-line-icon_clip0_910_349','MCP:\x20Unauthorized','sessionId$','12846NxbltT','showConfigPanel','entries','univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','mcpConfig.validation.invalidApiKey','univer-flex\x20univer-items-center\x20univer-gap-2','CheckMarkIcon','use','_commandService','Success','univer-space-y-3','assign','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','univer-bg-blue-500','mcpConfig.saving','div','网络连接错误,请检查您的网络连接','univer-shrink-0\x20univer-text-red-500','mcpConfig.sessionIdDescription','mcpConfig.connectionError.unauthorized','mcpConfig.connectionStatus.retrying','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','enableAutoConnect','mcpConfig.apiApplyInfo.univerAiLabel','currentColor','MCP\x20Disconnected','warn','mcpConfig.connectionStatus.connected','1020NtJKFd','_handleConfigSave','add','您的\x20API\x20密钥将在此浏览器中本地存储','重启您的\x20MCP\x20客户端以使配置生效','Invalid\x20configuration','_initConfigSync','_loadStoredApiKey','mcpConfig.configStep1','validateApiKey','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','CloseIcon','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','showDeveloperTools','off-line-icon_clip0_910_343','什么是\x20API\x20密钥?','disposeWithMe','最大重试次数','mcpConfig.configStep3','3gWUOtK','univer-flex\x20univer-items-start\x20univer-gap-2','attrs','MCP\x20Connection\x20Failed','on-line-icon','2123EAngrS','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Connected','showStatus','mcp.apiKey','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','\x20-\x20','_registerComponent','univer.plus','mcpConfig.note2','univer-min-w-0\x20univer-flex-1','univer-text-xs\x20univer-text-gray-500','mcpConfig.description','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.note1','MCP\x20客户端配置','forEach','MenuIcon','show','_mcpCoreConfig$','MCP\x20连接中...','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','removeItem','会话\x20ID\x20已被占用,请稍后再试','Connecting...','univer-flex\x20univer-flex-wrap\x20univer-gap-2','Enable\x20authentication\x20for\x20secure\x20connections','mcpConfig.validation.apiKeyRequired','权限验证失败,请检查您的\x20API\x20密钥','_localeService','MCPConfigPanel','white','span','univer-bg-red-500','mcpStatus.unknown','https://console.univer.plus','mcpStatus.clickToConfigure','univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','MCP:\x20超出最大重试次数','mask','univer.ai','API\x20Key','push','connectionError$','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-bg-green-500','CONNECTED','SESSION_ID_OCCUPIED','配置步骤:','noopener\x20noreferrer','UNAUTHORIZED','5AZQiaC','_apiKey$','xlink:href','mcpStatus.maxRetriesExceeded','MCP:\x20Network\x20Error','close','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','mcpConfig.save','请输入您的\x20API\x20密钥','url(#on-line-icon_clip0_910_349)','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','_validateConfig','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','univer-text-yellow-500','univer-font-medium','Failed\x20to\x20save\x20configuration','next','M0\x200H16V16H0z','setItem','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','mcpStatus.sessionOccupied','Retrying...','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','mcpConfig.validation.apiKeyTooShort','mcpConfig.configStepTitle','button','mcpStatus.connecting','_config','0\x200\x2017\x2016','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-gray-400','univer-text-gray-500','registerCommand','mcpConfig.connectionStatus.connecting','1em','defs','https://mcp.univer.ai/mcp/?univer_session_id=','BUTTON','_localStorageService','has','Enter\x20your\x20API\x20key','_dialogService','_initStatusComponent','Configuration\x20saved\x20successfully','MCP\x20Client\x20Configuration','string','_componentManager','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','将配置添加到您的\x20MCP\x20客户端设置文件中','API\x20密钥','none','MCP\x20状态未知','_blank','Bearer\x20','univer-size-4','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','clipPath','path','DISCONNECTED','_initAutoConnect','mcpStatus.disconnected','replace','univer-flex\x20univer-items-center','univer-text-sm\x20univer-font-medium','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','Univer\x20AI\x20控制台','23410rDyfxy','isValid','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','2502xLxngK','MCP\x20配置','保存配置','off-line-icon','mcpConfig.apiApplyInfo.getStarted','API\x20密钥不能为空','univer-space-y-2','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','_logService','connectionStatus$','length','_connectionController','152002tGoKxQ','_menuManagerService','univer-bg-gray-500','What\x20is\x20API\x20Key?','displayName','http://www.w3.org/2000/svg','idSuffix','Configuration\x20Parameters:','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','API\x20key\x20with\x20Bearer\x20prefix.','带有\x20Bearer\x20前缀的\x20API\x20密钥。','http','mcpStatus.failed','mcpConfig.connectionInfo','mcpConfig.validation.invalidConfig','univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','_loading$','配置保存成功','MCP:\x20会话\x20ID\x20已被占用','Click\x20to\x20connect\x20MCP','已连接','UniverIcon','round','Disconnected','get','启用身份验证','NETWORK_ERROR','_config$','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','univer-text-white','mcpConfig.apiApplyInfo.description','map','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Save\x20Configuration','univer-flex\x20univer-items-start\x20univer-gap-3','8671056wVOnlc','mcpConfig.apiKeyPlaceholder','Univer\x20AI\x20Console','OnLineIcon','univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','mcpServerUrl','_initializeMenus','MCP\x20Connecting...','mcpStatus.clickToConnect','MCP\x20Configuration','mcpStatus.connected','MCP\x20重连中...','subscribe','116264hjtPIw','mcpStatus.retrying','连接中...','getConfig','error','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','配置\x20MCP\x20使用\x20AI\x20操作电子表格','errorMessage','univer-text-red-500','value','复制以下\x20JSON\x20配置','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','API\x20密钥长度至少需要\x2010\x20位','_handleConfigure','svg','MCP:\x20Max\x20Retries\x20Exceeded','MCP_UI_PLUGIN','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','_uiPartsService','会话ID','bottom','RETRYING','\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','Error','超出最大重试次数,请稍后再试','2102863nEtZjv','getCurrentConfig','univerjs-icon\x20univerjs-icon-','MCP:\x20网络错误','mcpConfig.configError','MCP\x20连接失败','FAILED','MAX_RETRIES_EXCEEDED','_configService','mcpConfig.apiKeyHint','Copy\x20the\x20JSON\x20configuration\x20below','<API_KEY>','__setCustomHeaders','_injector','CONNECTING','点击配置\x20MCP','apiKey','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','onStarting','univer-size-2\x20univer-rounded-full','_messageService','Get\x20your\x20API\x20key\x20in\x20seconds','mergeMenu','_mcpConnectionController'];_0x4b37=function(){return _0x5eb5df;};return _0x4b37();}function Ze(_0x19bb9e,_0x504924){const _0x4ac9c4=_0x4721d;var _0x4f07b0;const {defIds:_0x2779ff}=_0x504924;return!_0x2779ff||_0x2779ff[_0x4ac9c4(0x309)]===0x0?_0x19bb9e:_0x19bb9e['tag']===_0x4ac9c4(0x2dd)&&((_0x4f07b0=_0x19bb9e[_0x4ac9c4(0x236)])!=null&&_0x4f07b0[_0x4ac9c4(0x309)])?{..._0x19bb9e,'children':_0x19bb9e[_0x4ac9c4(0x236)][_0x4ac9c4(0x32a)](_0x1a35a8=>typeof _0x1a35a8[_0x4ac9c4(0x283)]['id']=='string'&&_0x2779ff&&_0x2779ff[_0x4ac9c4(0x24a)](_0x1a35a8[_0x4ac9c4(0x283)]['id'])?{..._0x1a35a8,'attrs':{..._0x1a35a8['attrs'],'id':_0x1a35a8[_0x4ac9c4(0x283)]['id']+_0x504924[_0x4ac9c4(0x311)]}}:_0x1a35a8)}:_0x19bb9e;}function We(){const _0x2cd63b=_0x4721d;return Math['random']()['toString'](0x24)[_0x2cd63b(0x222)](0x2,0x8);}function _0x226a(_0xbb43bb,_0x427b4c){const _0x4b3704=_0x4b37();return _0x226a=function(_0x226ab8,_0x494262){_0x226ab8=_0x226ab8-0x1d8;let _0x2f0cf1=_0x4b3704[_0x226ab8];return _0x2f0cf1;},_0x226a(_0xbb43bb,_0x427b4c);}b['displayName']=_0x4721d(0x320);const qe={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':'0\x200\x2016\x2016','width':_0x4721d(0x2dc),'height':_0x4721d(0x2dc)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':_0x4721d(0x269),'d':_0x4721d(0x279),'fillRule':'evenodd','clipRule':_0x4721d(0x220)}}]},le=_0x2399dd(function(_0x42a9ef,_0x2b0c2d){const _0x5543b9=_0x4721d;return _0x56d3b5(b,Object[_0x5543b9(0x259)]({},_0x42a9ef,{'id':'check-mark-icon','ref':_0x2b0c2d,'icon':qe}));});le[_0x4721d(0x30f)]=_0x4721d(0x254);const Xe={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':'0\x200\x2016\x2016','width':_0x4721d(0x2dc),'height':_0x4721d(0x2dc)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':'currentColor','d':'M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z'}}]},ue=_0x2399dd(function(_0x4c30c4,_0x2f752c){const _0x3cad94=_0x4721d;return _0x56d3b5(b,Object[_0x3cad94(0x259)]({},_0x4c30c4,{'id':_0x3cad94(0x232),'ref':_0x2f752c,'icon':Xe}));});ue['displayName']=_0x4721d(0x278);const Je={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':_0x4721d(0x239),'width':_0x4721d(0x2dc),'height':_0x4721d(0x2dc)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':_0x4721d(0x269),'d':_0x4721d(0x2f1)}},{'tag':'path','attrs':{'fill':_0x4721d(0x269),'d':_0x4721d(0x27a)}},{'tag':_0x4721d(0x2f3),'attrs':{'fill':'currentColor','d':_0x4721d(0x21c),'fillRule':_0x4721d(0x220),'clipRule':'evenodd'}}]},ve=_0x2399dd(function(_0x58cb01,_0x2ec15c){const _0x48fdb4=_0x4721d;return _0x56d3b5(b,Object[_0x48fdb4(0x259)]({},_0x58cb01,{'id':'help-icon','ref':_0x2ec15c,'icon':Je}));});ve[_0x4721d(0x30f)]=_0x4721d(0x241);const Qe={'tag':'svg','attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':_0x4721d(0x239),'width':'1em','height':_0x4721d(0x2dc)},'children':[{'tag':'g','attrs':{'clipPath':_0x4721d(0x23f)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'stroke':_0x4721d(0x269),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x4721d(0x321),'strokeLinejoin':_0x4721d(0x321),'strokeWidth':1.2}}]},{'tag':_0x4721d(0x2dd),'attrs':{},'children':[{'tag':_0x4721d(0x2f2),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x4721d(0x2a5),'d':_0x4721d(0x2ca)}}]}]}],'defIds':[_0x4721d(0x27c)]},de=_0x2399dd(function(_0x5b1d6a,_0xe4750b){const _0x1944db=_0x4721d;return _0x56d3b5(b,Object[_0x1944db(0x259)]({},_0x5b1d6a,{'id':_0x1944db(0x302),'ref':_0xe4750b,'icon':Qe}));});de[_0x4721d(0x30f)]='OffLineIcon';const en={'tag':_0x4721d(0x1f5),'attrs':{'xmlns':_0x4721d(0x310),'fill':_0x4721d(0x2ec),'viewBox':_0x4721d(0x2d5),'width':'1em','height':_0x4721d(0x2dc)},'children':[{'tag':'g','attrs':{'clipPath':_0x4721d(0x2c2)},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x4721d(0x321),'strokeLinejoin':_0x4721d(0x321),'strokeWidth':1.2}}]},{'tag':_0x4721d(0x2dd),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4721d(0x2f3),'attrs':{'fill':_0x4721d(0x2a5),'d':_0x4721d(0x2ca),'transform':_0x4721d(0x223)}}]}]}],'defIds':[_0x4721d(0x24b)]},ge=_0x2399dd(function(_0x344dfe,_0x1810ce){const _0x2f3ec4=_0x4721d;return _0x56d3b5(b,Object[_0x2f3ec4(0x259)]({},_0x344dfe,{'id':_0x2f3ec4(0x285),'ref':_0x1810ce,'icon':en}));});ge[_0x4721d(0x30f)]=_0x4721d(0x1dd);function nn(_0xf81769){const _0x21587f=_0x4721d;var _0x1d6849,_0x11dbb9;const {mcpCoreConfig:_0x44e111,onSave:_0x4b94e0,loading:_0x201804=!0x1,config:_0x1b68e6,connectionStatus$:_0x3978b9,connectionError$:_0x3ef7b0,currentApiKey$:_0x59df57,currentSessionId$:_0x3cebfe}=_0xf81769,_0x129a37=_0x357040(_0x449b31),_0x4653e0=_0x3580f4(_0x3978b9,_0x26985a[_0x21587f(0x2f4)]),_0x4ea5db=_0x3580f4(_0x3ef7b0,_0x4f6500[_0x21587f(0x247)]),_0x48678d=_0x3580f4(_0x3cebfe,''),_0xfdfb1f=_0x3580f4(_0x59df57,''),[_0x32ebcd,_0x57d456]=_0x69cec1(_0xfdfb1f||''),_0x2e4d2e=!0x0,_0x4fb7f7=_0x1b68e6[_0x21587f(0x27b)]&&_0x44e111[_0x21587f(0x1df)]&&(_0x44e111[_0x21587f(0x1df)][_0x21587f(0x24a)]('univer.plus')||_0x44e111[_0x21587f(0x1df)]['includes'](_0x21587f(0x2ae))),_0x31da56=(_0x1d6849=_0x44e111['mcpServerUrl'])==null?void 0x0:_0x1d6849[_0x21587f(0x24a)](_0x21587f(0x28e)),_0x2d3c99=(_0x11dbb9=_0x44e111[_0x21587f(0x1df)])==null?void 0x0:_0x11dbb9[_0x21587f(0x24a)](_0x21587f(0x2ae)),_0x3b0cfa=_0x31da56?_0x21587f(0x2a9):'https://console.univer.ai',_0x482255=_0x1b68e6[_0x21587f(0x27b)]&&(_0x31da56||_0x2d3c99),[_0x588224,_0x10d97d]=_0x69cec1(!_0x32ebcd[_0x21587f(0x233)]()),_0x5ed70c=(_0x1543f1,_0x36ee8f)=>{const _0x17df80=_0x21587f;if(_0x36ee8f===_0x4f6500['UNAUTHORIZED'])return _0x17df80(0x224);switch(_0x1543f1){case _0x26985a[_0x17df80(0x2b4)]:return'univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200';case _0x26985a[_0x17df80(0x20e)]:case _0x26985a['RETRYING']:return _0x17df80(0x2fe);case _0x26985a['FAILED']:return _0x17df80(0x224);default:return _0x17df80(0x2cc);}},_0x1e64ce=(_0x57159d,_0x1ec520)=>{const _0x3e8516=_0x21587f;if(_0x1ec520===_0x4f6500[_0x3e8516(0x2b8)])return _0x3e8516(0x2a7);switch(_0x57159d){case _0x26985a['CONNECTED']:return _0x3e8516(0x2b3);case _0x26985a[_0x3e8516(0x20e)]:case _0x26985a[_0x3e8516(0x1fc)]:return _0x3e8516(0x25d);case _0x26985a[_0x3e8516(0x206)]:return _0x3e8516(0x2a7);default:return _0x3e8516(0x30d);}},_0x445ffe=_0x18eb4e=>{const _0x203afb=_0x21587f;switch(_0x18eb4e){case _0x26985a[_0x203afb(0x2b4)]:return _0x129a37['t'](_0x203afb(0x26c));case _0x26985a[_0x203afb(0x20e)]:return _0x129a37['t'](_0x203afb(0x2db));case _0x26985a[_0x203afb(0x206)]:return _0x129a37['t'](_0x203afb(0x23a));case _0x26985a[_0x203afb(0x1fc)]:return _0x129a37['t'](_0x203afb(0x264));default:return _0x129a37['t']('mcpConfig.connectionStatus.disconnected');}},_0x1b7212=_0xf6815b=>{const _0xf137a2=_0x21587f;switch(_0xf6815b){case _0x4f6500[_0xf137a2(0x2b8)]:return _0x129a37['t'](_0xf137a2(0x263));case _0x4f6500[_0xf137a2(0x2b5)]:return _0x129a37['t']('mcpConfig.connectionError.sessionOccupied');case _0x4f6500[_0xf137a2(0x325)]:return _0x129a37['t']('mcpConfig.connectionError.networkError');case _0x4f6500[_0xf137a2(0x207)]:return _0x129a37['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4815fc=_0x23973d(()=>{const _0x45a86d=_0x21587f,_0x1c8aaf={..._0x44e111,'apiKey':_0x32ebcd[_0x45a86d(0x233)](),'enableAuth':_0x2e4d2e};_0x4b94e0(_0x1c8aaf);},[_0x44e111,_0x32ebcd,_0x2e4d2e,_0x4b94e0]),_0x456c61=_0x32ebcd[_0x21587f(0x233)]()[_0x21587f(0x309)]>0x0;return _0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x251),'children':[_0x71d551('div',{'className':_0x21587f(0x1f8),'children':_0x1bd020(_0x21587f(0x25f),{'className':'univer-flex\x20univer-items-center\x20univer-gap-3','children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x28b),'children':_0x71d551('span',{'className':_0x21587f(0x328),'children':'⚙'})}),_0x71d551('div',{'children':_0x71d551('p',{'className':'univer-text-sm\x20univer-text-gray-500','children':_0x129a37['t'](_0x21587f(0x292))})})]})}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x2c5),'children':[_0x71d551('div',{'className':_0x4f2249(_0x21587f(0x327),_0x5ed70c(_0x4653e0,_0x4ea5db)),'children':_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x25f),{'className':_0x4f2249(_0x21587f(0x213),_0x1e64ce(_0x4653e0,_0x4ea5db))}),_0x71d551('span',{'className':_0x21587f(0x2f9),'children':_0x445ffe(_0x4653e0)})]})}),_0x4ea5db!==_0x4f6500[_0x21587f(0x247)]&&(_0x4653e0===_0x26985a[_0x21587f(0x206)]||_0x4ea5db===_0x4f6500['UNAUTHORIZED'])&&_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2ab),'children':_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x282),'children':[_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x261),'children':'⚠️'}),_0x71d551('p',{'className':_0x21587f(0x231),'children':_0x1b7212(_0x4ea5db)})]})})]}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x1ec),'children':_0x1bd020(_0x21587f(0x25f),{'className':'univer-space-y-5','children':[_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x305),'children':[_0x1bd020('label',{'className':_0x21587f(0x245),'children':[_0x71d551(_0x21587f(0x2a6),{'children':'🔑'}),'\x20',_0x129a37['t']('mcpConfig.apiKey'),_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x1ef),'children':'*'}),_0x4fb7f7&&_0x71d551('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':_0x129a37['t'](_0x21587f(0x22c)),'role':_0x21587f(0x2d2),'onClick':()=>_0x10d97d(!0x0),'children':_0x71d551(ve,{})})]}),_0x71d551(_0x1c1bd9,{'type':'text','placeholder':_0x129a37['t'](_0x21587f(0x1db)),'value':_0x32ebcd,'disabled':_0x201804,'autoComplete':'off','onChange':_0x57d456}),_0x71d551('p',{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x129a37['t'](_0x21587f(0x209))})]}),_0x4fb7f7&&_0x588224&&_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x21f),'children':[_0x71d551('a',{'className':_0x21587f(0x2e9),'role':_0x21587f(0x2d2),'onClick':()=>_0x10d97d(!0x1),'children':_0x71d551(ue,{'className':_0x21587f(0x2f0)})}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x31a),'children':[_0x71d551('div',{'className':_0x21587f(0x225),'children':_0x71d551('span',{'className':'univer-text-blue-600','children':'🚀'})}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x21b),'children':[_0x71d551('h4',{'className':_0x21587f(0x2b2),'children':_0x129a37['t'](_0x21587f(0x22c))}),_0x71d551('p',{'className':_0x21587f(0x265),'children':_0x129a37['t'](_0x21587f(0x329))}),_0x71d551('div',{'className':_0x21587f(0x29f),'children':_0x482255&&_0x1bd020('a',{'className':'univer-inline-flex\x20univer-items-center\x20univer-gap-1\x20univer-rounded-md\x20univer-border\x20univer-border-purple-300\x20univer-bg-white\x20univer-px-3\x20univer-py-1.5\x20univer-text-xs\x20univer-font-medium\x20univer-text-purple-600\x20univer-shadow-sm\x20univer-transition-all\x20univer-duration-200\x20hover:univer-border-purple-400\x20hover:univer-bg-purple-50\x20hover:univer-shadow-md','href':_0x3b0cfa,'target':_0x21587f(0x2ee),'rel':_0x21587f(0x2b7),'children':[_0x71d551(_0x21587f(0x2a6),{'children':'🤖'}),_0x129a37['t'](_0x21587f(0x268)),_0x71d551('span',{'className':_0x21587f(0x2d8),'children':'↗'})]})}),_0x1bd020(_0x21587f(0x25f),{'className':'univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','children':['✨','\x20',_0x129a37['t'](_0x21587f(0x303))]})]})]})]}),_0x1b68e6['showDeveloperTools']&&_0x1bd020(_0x21587f(0x25f),{'className':'univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','children':[_0x1bd020('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x71d551(_0x21587f(0x2a6),{'children':'🔗'}),'\x20',_0x129a37['t'](_0x21587f(0x318))]}),_0x1bd020(_0x21587f(0x25f),{'className':'univer-space-y-4','children':[_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x258),'children':[_0x71d551('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x129a37['t']('mcpConfig.configInstructions')}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x305),'children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2fa),'children':_0x129a37['t'](_0x21587f(0x2d1))}),_0x1bd020('div',{'className':_0x21587f(0x266),'children':[_0x1bd020('div',{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x2a6),{'className':'univer-flex\x20univer-size-4\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100\x20univer-text-xs\x20univer-font-medium\x20univer-text-blue-600','children':'1'}),_0x129a37['t'](_0x21587f(0x275))]}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x238),'children':'2'}),_0x129a37['t']('mcpConfig.configStep2')]}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x253),'children':[_0x71d551(_0x21587f(0x2a6),{'className':_0x21587f(0x238),'children':'3'}),_0x129a37['t'](_0x21587f(0x280))]})]})]})]}),_0x1bd020('div',{'className':_0x21587f(0x305),'children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2fa),'children':_0x21587f(0x1e3)}),_0x71d551(_0x21587f(0x25f),{'className':'univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','children':_0x71d551('pre',{'className':_0x21587f(0x1de),'children':JSON['stringify']({'mcpServers':{'univer':{'url':_0x21587f(0x2de)+(_0x48678d||'<SESSION_ID>'),'type':_0x21587f(0x316),'headers':{'Authorization':_0x21587f(0x2ef)+(_0x32ebcd||_0x21587f(0x20b))}}}},null,0x2)})})]}),_0x1bd020(_0x21587f(0x25f),{'className':'univer-space-y-3','children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2fa),'children':_0x129a37['t']('mcpConfig.configParameters')}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x305),'children':[_0x1bd020(_0x21587f(0x25f),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x2cf)}),_0x1bd020('div',{'className':_0x21587f(0x290),'children':[_0x71d551('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':'univer_session_id:'}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x291),'children':_0x129a37['t'](_0x21587f(0x262))})]})]}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x1d9),'children':[_0x71d551('div',{'className':_0x21587f(0x2cf)}),_0x1bd020('div',{'className':_0x21587f(0x290),'children':[_0x71d551('div',{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x21587f(0x22b)}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x291),'children':_0x129a37['t']('mcpConfig.authorizationDescription')})]})]})]})]})]})]}),_0x71d551(_0x56bcc2,{'onClick':_0x4815fc,'disabled':!_0x456c61||_0x201804,'className':'univer-w-full\x20!univer-border-green-600\x20!univer-bg-green-600\x20!univer-text-white\x20hover:!univer-border-green-700\x20hover:!univer-bg-green-700\x20disabled:!univer-border-gray-300\x20disabled:!univer-bg-gray-300\x20disabled:!univer-text-gray-500','children':_0x201804?_0x1bd020(_0x21587f(0x2a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x71d551(_0x21587f(0x2a6),{'children':'⟲'}),_0x129a37['t'](_0x21587f(0x25e))]}):_0x1bd020(_0x21587f(0x2a6),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x71d551(le,{}),_0x129a37['t'](_0x21587f(0x2c0))]})}),_0x71d551(_0x21587f(0x25f),{'className':_0x21587f(0x313),'children':_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x23e),'children':[_0x71d551(_0x21587f(0x2a6),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x1bd020(_0x21587f(0x25f),{'className':_0x21587f(0x2d6),'children':[_0x71d551('div',{'className':_0x21587f(0x2c7),'children':_0x21587f(0x23c)}),_0x1bd020(_0x21587f(0x25f),{'children':['•',_0x129a37['t'](_0x21587f(0x294))]}),_0x1bd020(_0x21587f(0x25f),{'children':['•',_0x129a37['t'](_0x21587f(0x28f))]})]})]})})]})})]});}const y=_0x4721d(0x21a),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x4721d(0x240)],tn=(_0x595c29,_0x48b406,_0x11caf2,_0x12e215)=>{const _0x2b5980=_0x4721d;for(var _0x55e337=_0x12e215>0x1?void 0x0:_0x12e215?rn(_0x48b406,_0x11caf2):_0x48b406,_0x2eda07=_0x595c29[_0x2b5980(0x309)]-0x1,_0x5dd52b;_0x2eda07>=0x0;_0x2eda07--)(_0x5dd52b=_0x595c29[_0x2eda07])&&(_0x55e337=_0x5dd52b(_0x55e337)||_0x55e337);return _0x55e337;},d=(_0x1e1de3,_0x4364e0)=>(_0x2cfabe,_0x321f2b)=>_0x4364e0(_0x2cfabe,_0x321f2b,_0x1e1de3);const U=_0x4721d(0x28a),L='mcp-config-dialog';let I=class extends _0x1dd7fd{constructor(_0x16d903,_0x3e1c64,_0x2d8424,_0x1d8d8d,_0x1cc57,_0x479fb8,_0x1aa09f,_0x1408e3,_0x44c49e,_0x1eb98a){const _0x125b9a=_0x4721d;super(),x(this,'_loading$',new _0x37c39b(!0x1)),x(this,'_mcpCoreConfig$',new _0x37c39b({})),x(this,_0x125b9a(0x326),new _0x37c39b({})),x(this,_0x125b9a(0x2ba),new _0x37c39b('')),x(this,_0x125b9a(0x26e),async _0x4667c9=>{const _0x1b5dcb=_0x125b9a;var _0x2579ca,_0x271d17;this['_loading$'][_0x1b5dcb(0x2c9)](!0x0);try{const _0x4941d8=await this[_0x1b5dcb(0x2c4)](_0x4667c9);if(!_0x4941d8[_0x1b5dcb(0x2fd)]){this[_0x1b5dcb(0x214)][_0x1b5dcb(0x298)]({'type':_0x2e8040[_0x1b5dcb(0x1fe)],'content':_0x4941d8[_0x1b5dcb(0x1ee)]||this[_0x1b5dcb(0x2a3)]['t'](_0x1b5dcb(0x319))});return;}_0x4667c9[_0x1b5dcb(0x210)]?await this[_0x1b5dcb(0x2e0)][_0x1b5dcb(0x2cb)](U,_0x4667c9[_0x1b5dcb(0x210)][_0x1b5dcb(0x233)]()):await this[_0x1b5dcb(0x2e0)][_0x1b5dcb(0x29c)](U),this['_apiKey$'][_0x1b5dcb(0x2c9)](((_0x2579ca=_0x4667c9[_0x1b5dcb(0x210)])==null?void 0x0:_0x2579ca[_0x1b5dcb(0x233)]())||''),this[_0x1b5dcb(0x217)][_0x1b5dcb(0x20c)]({'Authorization':_0x1b5dcb(0x2ef)+((_0x271d17=_0x4667c9[_0x1b5dcb(0x210)])==null?void 0x0:_0x271d17['trim']())}),this[_0x1b5dcb(0x214)][_0x1b5dcb(0x298)]({'type':_0x2e8040[_0x1b5dcb(0x257)],'content':this[_0x1b5dcb(0x2a3)]['t']('mcpConfig.configSaved')}),setTimeout(()=>{const _0x302464=_0x1b5dcb;this[_0x302464(0x2e3)][_0x302464(0x2be)](L);},0x320);}catch(_0x10b989){this[_0x1b5dcb(0x307)][_0x1b5dcb(0x1eb)](_0x1b5dcb(0x306),_0x10b989),this[_0x1b5dcb(0x214)][_0x1b5dcb(0x298)]({'type':_0x2e8040[_0x1b5dcb(0x1fe)],'content':this['_localeService']['t'](_0x1b5dcb(0x204))});}finally{this['_loading$'][_0x1b5dcb(0x2c9)](!0x1);}}),(this[_0x125b9a(0x20d)]=_0x16d903,this['_uiPartsService']=_0x3e1c64,this['_configService']=_0x2d8424,this[_0x125b9a(0x2e0)]=_0x1d8d8d,this[_0x125b9a(0x2e3)]=_0x1cc57,this[_0x125b9a(0x214)]=_0x479fb8,this[_0x125b9a(0x2e8)]=_0x1aa09f,this[_0x125b9a(0x2a3)]=_0x1408e3,this['_logService']=_0x44c49e,this[_0x125b9a(0x217)]=_0x1eb98a,this[_0x125b9a(0x273)](),this[_0x125b9a(0x274)](),this['_registerComponent']());}['showConfigPanel'](){const _0x465a18=_0x4721d,_0x28b3f3=this['_configService']['getConfig'](y);_0x28b3f3!=null&&_0x28b3f3[_0x465a18(0x27b)]&&this['_dialogService'][_0x465a18(0x229)]({'id':L,'title':{'title':this[_0x465a18(0x2a3)]['t'](_0x465a18(0x218))},'children':{'label':_0x465a18(0x2a4)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x5867d7=_0x465a18;this[_0x5867d7(0x2e3)][_0x5867d7(0x2be)](L);}});}[_0x4721d(0x201)](){const _0x224960=_0x4721d;return this[_0x224960(0x299)]['value'];}[_0x4721d(0x28d)](){const _0x4b9048=_0x4721d;this[_0x4b9048(0x27e)](this[_0x4b9048(0x2e8)]['register'](_0x4b9048(0x2a4),this[_0x4b9048(0x219)]()));}[_0x4721d(0x219)](){const _0x39fdf1=_0x4721d;return _0x16d407(()=>{const _0x2e320d=_0x226a;var _0x1741ca,_0x5b2c2a,_0x20a57a;return _0x71d551(nn,{'config':this[_0x2e320d(0x326)][_0x2e320d(0x1f0)],'mcpCoreConfig':this['_mcpCoreConfig$']['value'],'currentApiKey$':this[_0x2e320d(0x2ba)],'onSave':this[_0x2e320d(0x26e)],'loading':this[_0x2e320d(0x31b)][_0x2e320d(0x1f0)],'connectionStatus$':(_0x1741ca=this[_0x2e320d(0x217)])==null?void 0x0:_0x1741ca['connectionStatus$'],'connectionError$':(_0x5b2c2a=this[_0x2e320d(0x217)])==null?void 0x0:_0x5b2c2a[_0x2e320d(0x2b1)],'currentSessionId$':(_0x20a57a=this[_0x2e320d(0x217)])==null?void 0x0:_0x20a57a[_0x2e320d(0x24d)]});},this[_0x39fdf1(0x20d)]);}['_initConfigSync'](){const _0x3c65a0=_0x4721d;this['disposeWithMe'](this['_configService'][_0x3c65a0(0x226)](_0x11f737)[_0x3c65a0(0x1e6)](_0x4d5855=>{const _0x3dac05=_0x3c65a0;this['_mcpCoreConfig$'][_0x3dac05(0x2c9)](_0x4d5855||{});}));const _0x3e7b48=this[_0x3c65a0(0x208)]['getConfig'](_0x11f737);this[_0x3c65a0(0x299)][_0x3c65a0(0x2c9)](_0x3e7b48||{}),this['disposeWithMe'](this[_0x3c65a0(0x208)][_0x3c65a0(0x226)](y)['subscribe'](_0x2d9760=>{const _0x574149=_0x3c65a0;this[_0x574149(0x326)]['next'](_0x2d9760||{});}));const _0x2e1ce9=this[_0x3c65a0(0x208)]['getConfig'](y);this[_0x3c65a0(0x326)][_0x3c65a0(0x2c9)](_0x2e1ce9||{});}async['_loadStoredApiKey'](){const _0x4788a6=_0x4721d,_0x19644f=this['_configService'][_0x4788a6(0x1ea)](y);if(!(_0x19644f!=null&&_0x19644f[_0x4788a6(0x27b)]))return;const _0x7fa114=await this[_0x4788a6(0x2e0)]['getItem'](U);_0x7fa114&&(this[_0x4788a6(0x217)][_0x4788a6(0x20c)]({'Authorization':'Bearer\x20'+_0x7fa114}),this[_0x4788a6(0x2ba)][_0x4788a6(0x2c9)](_0x7fa114));}async[_0x4721d(0x2c4)](_0xe50baa){const _0x12a275=_0x4721d;if(!_0xe50baa[_0x12a275(0x210)]||_0xe50baa['apiKey'][_0x12a275(0x233)]()[_0x12a275(0x309)]===0x0)return{'isValid':!0x1,'errorMessage':this[_0x12a275(0x2a3)]['t'](_0x12a275(0x2a1))};if(_0xe50baa[_0x12a275(0x210)]['trim']()[_0x12a275(0x309)]<0xa)return{'isValid':!0x1,'errorMessage':this[_0x12a275(0x2a3)]['t'](_0x12a275(0x2d0))};try{const _0x3bde53=await this[_0x12a275(0x20d)][_0x12a275(0x323)](_0xf9b0c1)[_0x12a275(0x276)](_0xe50baa[_0x12a275(0x210)][_0x12a275(0x233)]());return _0x3bde53['isValid']?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x3bde53[_0x12a275(0x1eb)]||this[_0x12a275(0x2a3)]['t'](_0x12a275(0x252))};}catch(_0x108648){return console[_0x12a275(0x26b)](_0x12a275(0x277),_0x108648),{'isValid':!0x0};}}};I=tn([d(0x0,_0xa6816e(_0x541a5c)),d(0x1,_0x1e1885),d(0x2,_0x322e87),d(0x3,_0x51e914),d(0x4,_0x6baade),d(0x5,_0x671585),d(0x6,_0xa6816e(_0x38f699)),d(0x7,_0xa6816e(_0x449b31)),d(0x8,_0x466f9d),d(0x9,_0xa6816e(_0xf9b0c1))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x82f273[_0x4721d(0x23d)],'handler':async(_0x37133a,_0x10fb80)=>(_0x37133a['get'](I)[_0x4721d(0x24f)](),!0x0)};function pe(_0x1d190c,_0x211fac){const _0x3f5c5b=_0x4721d;switch(_0x1d190c){case _0x26985a[_0x3f5c5b(0x2f4)]:return _0x3f5c5b(0x2f6);case _0x26985a[_0x3f5c5b(0x20e)]:return _0x3f5c5b(0x2d3);case _0x26985a['CONNECTED']:return _0x3f5c5b(0x1e4);case _0x26985a[_0x3f5c5b(0x206)]:switch(_0x211fac){case _0x4f6500[_0x3f5c5b(0x2b8)]:return _0x3f5c5b(0x246);case _0x4f6500[_0x3f5c5b(0x2b5)]:return _0x3f5c5b(0x2cd);case _0x4f6500[_0x3f5c5b(0x325)]:return'mcpStatus.networkError';case _0x4f6500['MAX_RETRIES_EXCEEDED']:return _0x3f5c5b(0x2bc);default:return _0x3f5c5b(0x317);}case _0x26985a[_0x3f5c5b(0x1fc)]:return _0x3f5c5b(0x1e8);default:return _0x3f5c5b(0x2a8);}}function on(_0x3c680c,_0x43af9a,_0xa4f91b,_0x2fff05=!0x0){const _0x1e9725=_0x4721d,_0x4a5bda=pe(_0x3c680c,_0x43af9a),_0x433dee=_0xa4f91b['t'](_0x4a5bda);return _0x2fff05?_0x3c680c===_0x26985a[_0x1e9725(0x2f4)]&&_0x43af9a===_0x4f6500['UNAUTHORIZED']?_0x433dee+_0x1e9725(0x28c)+_0xa4f91b['t'](_0x1e9725(0x2aa)):_0x3c680c===_0x26985a[_0x1e9725(0x2b4)]?''+_0x433dee:_0x3c680c===_0x26985a[_0x1e9725(0x2f4)]||_0x3c680c===_0x26985a['FAILED']?_0x433dee+'\x20-\x20'+_0xa4f91b['t'](_0x1e9725(0x1e2)):_0x433dee:_0x433dee;}function sn(_0x3fb69a){const _0x2e2323=_0x4721d;switch(_0x3fb69a){case _0x26985a[_0x2e2323(0x2b4)]:return _0x2e2323(0x244);case _0x26985a[_0x2e2323(0x20e)]:case _0x26985a[_0x2e2323(0x1fc)]:return _0x2e2323(0x2c6);case _0x26985a[_0x2e2323(0x206)]:case _0x26985a[_0x2e2323(0x2f4)]:return _0x2e2323(0x1ef);default:return _0x2e2323(0x2d9);}}function cn(_0xa8d883){const _0x332273=_0x4721d,{status$:_0x4f279e,error$:_0x55911e,onConfigure:_0x154414,showClickable:_0x270ed9=!0x0}=_0xa8d883,_0x11455c=_0x3580f4(_0x4f279e,_0x26985a[_0x332273(0x2f4)]),_0x3340e5=_0x3580f4(_0x55911e,_0x4f6500['NONE']),_0x5f427d=_0x357040(_0x449b31),_0x1388ba=_0x11455c===_0x26985a[_0x332273(0x2b4)];_0x11455c===_0x26985a[_0x332273(0x20e)]||_0x26985a[_0x332273(0x1fc)];const _0x2d85a7=_0x5f427d['t'](pe(_0x11455c,_0x3340e5)),_0x21cf5b=on(_0x11455c,_0x3340e5,_0x5f427d,_0x270ed9),_0x184c37=sn(_0x11455c),_0x47c03e=_0x1388ba?_0x71d551(ge,{}):_0x71d551(de,{}),_0x439398=_0x23973d(()=>{_0x270ed9&&_0x154414&&_0x154414();},[_0x270ed9,_0x154414]);function _0xbd4c02(){const _0x47453b=_0x332273;return _0x1bd020(_0x47453b(0x25f),{'className':_0x4f2249(_0x47453b(0x2f8),_0x270ed9&&_0x154414&&_0x47453b(0x1fd)),'role':_0x47453b(0x2d2),'onClick':_0x270ed9&&_0x154414?_0x439398:void 0x0,'children':[_0x71d551(_0x47453b(0x25f),{'className':_0x4f2249('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x184c37),'children':_0x47c03e}),_0x71d551(_0x47453b(0x25f),{'className':_0x47453b(0x293),'children':_0x2d85a7})]});}return _0x71d551(_0xaee0b3,{'title':_0x21cf5b,'placement':_0x332273(0x1fb),'children':_0xbd4c02()});}var an=Object[_0x4721d(0x240)],ln=(_0x4248e4,_0x22ec22,_0x59e402,_0x3d041f)=>{for(var _0xf31110=_0x3d041f>0x1?void 0x0:_0x3d041f?an(_0x22ec22,_0x59e402):_0x22ec22,_0x207e68=_0x4248e4['length']-0x1,_0x243011;_0x207e68>=0x0;_0x207e68--)(_0x243011=_0x4248e4[_0x207e68])&&(_0xf31110=_0x243011(_0xf31110)||_0xf31110);return _0xf31110;},M=(_0x92dec7,_0x4a3409)=>(_0x2dd1d8,_0x40d28d)=>_0x4a3409(_0x2dd1d8,_0x40d28d,_0x92dec7);let O=class extends _0x1dd7fd{constructor(_0x244ad3,_0x36175d,_0x16ffe4,_0x1ce00f){const _0x5c5833=_0x4721d;super(),this[_0x5c5833(0x20d)]=_0x244ad3,this[_0x5c5833(0x30a)]=_0x36175d,this[_0x5c5833(0x1f9)]=_0x16ffe4,this[_0x5c5833(0x208)]=_0x1ce00f,this[_0x5c5833(0x2f5)](),this[_0x5c5833(0x2e4)]();}[_0x4721d(0x2f5)](){const _0x12b0af=_0x4721d,_0x5bbc18=this['_configService'][_0x12b0af(0x1ea)](y);_0x5bbc18!=null&&_0x5bbc18[_0x12b0af(0x27b)]&&(this[_0x12b0af(0x30a)][_0x12b0af(0x267)]=!0x1);}[_0x4721d(0x2e4)](){const _0x3db15f=_0x4721d,_0x3111dd=this['_configService']['getConfig'](y);(_0x3111dd==null?void 0x0:_0x3111dd[_0x3db15f(0x289)])!==!0x1&&this[_0x3db15f(0x27e)](this['_uiPartsService'][_0x3db15f(0x249)](_0x442c44[_0x3db15f(0x235)],()=>{const _0x15950f=_0x3db15f;var _0xb18613;return _0x16d407(un({'status$':this[_0x15950f(0x30a)][_0x15950f(0x308)],'error$':this[_0x15950f(0x30a)][_0x15950f(0x2b1)],'onConfigure':()=>this[_0x15950f(0x1f4)](),'showClickable':(_0xb18613=_0x3111dd==null?void 0x0:_0x3111dd['showDeveloperTools'])!=null?_0xb18613:!0x1}),this[_0x15950f(0x20d)]);}));}[_0x4721d(0x1f4)](){const _0x456f89=_0x4721d;this['_injector'][_0x456f89(0x323)](I)[_0x456f89(0x24f)]();}};O=ln([M(0x0,_0xa6816e(_0x541a5c)),M(0x1,_0xa6816e(_0xf9b0c1)),M(0x2,_0x1e1885),M(0x3,_0x322e87)],O);function un(_0x289b0c){const {status$:_0x1289b8,error$:_0x383a5a,onConfigure:_0x38440c,showClickable:_0x102656}=_0x289b0c;return function(){return _0x71d551(cn,{'status$':_0x1289b8,'error$':_0x383a5a,'onConfigure':_0x38440c,'showClickable':_0x102656});};}function vn(_0xac9985){const _0x4f72bd=_0x4721d;return{'id':V['id'],'type':_0x1fb06e[_0x4f72bd(0x2df)],'icon':_0x4f72bd(0x297),'title':_0x4f72bd(0x218),'tooltip':_0x4f72bd(0x218)};}const dn={[_0xe3f608['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x4721d(0x240)],pn=(_0x11567d,_0x55aa07,_0x36d55b,_0x477947)=>{for(var _0x1b2fc3=_0x477947>0x1?void 0x0:_0x477947?gn(_0x55aa07,_0x36d55b):_0x55aa07,_0x4b9bd1=_0x11567d['length']-0x1,_0xd4a987;_0x4b9bd1>=0x0;_0x4b9bd1--)(_0xd4a987=_0x11567d[_0x4b9bd1])&&(_0x1b2fc3=_0xd4a987(_0x1b2fc3)||_0x1b2fc3);return _0x1b2fc3;},re=(_0x4fe74a,_0x182d98)=>(_0x48a573,_0xea88a6)=>_0x182d98(_0x48a573,_0xea88a6,_0x4fe74a);let D=class extends _0x1dd7fd{constructor(_0xf714ce,_0x444e02){const _0x4e2f71=_0x4721d;super(),this[_0x4e2f71(0x256)]=_0xf714ce,this['_menuManagerService']=_0x444e02,this['_initializeCommands'](),this['_initializeMenus']();}['_initializeCommands'](){const _0x53b77f=_0x4721d;[V][_0x53b77f(0x296)](_0x38abb3=>{const _0x4a7845=_0x53b77f;this['disposeWithMe'](this[_0x4a7845(0x256)][_0x4a7845(0x2da)](_0x38abb3));});}[_0x4721d(0x1e0)](){const _0x2f7edf=_0x4721d;this[_0x2f7edf(0x30c)][_0x2f7edf(0x216)](dn);}};D=pn([re(0x0,_0x4372fc),re(0x1,_0x23bcea)],D);const Mn={'mcpStatus':{'disconnected':_0x4721d(0x26a),'connecting':_0x4721d(0x1e1),'connected':_0x4721d(0x22d),'failed':_0x4721d(0x284),'retrying':'MCP\x20Retrying...','unknown':_0x4721d(0x227),'unauthorized':_0x4721d(0x24c),'sessionOccupied':'MCP:\x20Session\x20ID\x20Occupied','networkError':_0x4721d(0x2bd),'maxRetriesExceeded':_0x4721d(0x1f6),'clickToConnect':_0x4721d(0x31e),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x4721d(0x1e3),'description':_0x4721d(0x287),'apiKey':_0x4721d(0x2af),'apiKeyPlaceholder':_0x4721d(0x2e2),'apiKeyHint':'Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','enableAuth':'Enable\x20Authentication','enableAuthHint':_0x4721d(0x2a0),'connectionInfo':_0x4721d(0x2e6),'mcpClientConfig':_0x4721d(0x2e6),'configInstructions':_0x4721d(0x2d7),'configStepTitle':'Configuration\x20Steps:','configStep1':_0x4721d(0x20a),'configStep2':_0x4721d(0x242),'configStep3':'Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','sessionId':'Session\x20ID','sessionIdDescription':_0x4721d(0x25c),'authorizationDescription':_0x4721d(0x314),'configParameters':_0x4721d(0x312),'maxRetries':'Max\x20Retries','save':_0x4721d(0x1d8),'saving':_0x4721d(0x22f),'note1':_0x4721d(0x1f2),'note2':_0x4721d(0x25a),'configSaved':_0x4721d(0x2e5),'configError':_0x4721d(0x2c8),'apiApplyInfo':{'title':_0x4721d(0x30e),'description':_0x4721d(0x29b),'univerAiLabel':_0x4721d(0x1dc),'getStarted':_0x4721d(0x215)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4721d(0x211),'invalidConfig':_0x4721d(0x272),'invalidApiKey':_0x4721d(0x2bf)},'connectionStatus':{'disconnected':_0x4721d(0x322),'connecting':_0x4721d(0x29e),'connected':_0x4721d(0x288),'failed':_0x4721d(0x230),'retrying':_0x4721d(0x2ce)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x4721d(0x32b),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x4721d(0x2c3)}}},An={'mcpStatus':{'disconnected':'MCP\x20已断开','connecting':_0x4721d(0x29a),'connected':'MCP\x20已连接','failed':_0x4721d(0x205),'retrying':_0x4721d(0x1e5),'unknown':_0x4721d(0x2ed),'unauthorized':'MCP:\x20未授权','sessionOccupied':_0x4721d(0x31d),'networkError':_0x4721d(0x203),'maxRetriesExceeded':_0x4721d(0x2ac),'clickToConnect':'点击连接\x20MCP','clickToConfigure':_0x4721d(0x20f)},'mcpConfig':{'title':_0x4721d(0x300),'description':_0x4721d(0x1ed),'apiKey':_0x4721d(0x2eb),'apiKeyPlaceholder':_0x4721d(0x2c1),'apiKeyHint':_0x4721d(0x270),'enableAuth':_0x4721d(0x324),'enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4721d(0x295),'mcpClientConfig':_0x4721d(0x295),'configInstructions':_0x4721d(0x23b),'configStepTitle':_0x4721d(0x2b6),'configStep1':_0x4721d(0x1f1),'configStep2':_0x4721d(0x2ea),'configStep3':_0x4721d(0x271),'sessionId':_0x4721d(0x1fa),'sessionIdDescription':_0x4721d(0x25b),'authorizationDescription':_0x4721d(0x315),'configParameters':_0x4721d(0x22e),'maxRetries':_0x4721d(0x27f),'save':_0x4721d(0x301),'saving':_0x4721d(0x21e),'note1':'配置更改将立即生效','note2':_0x4721d(0x21d),'configSaved':_0x4721d(0x31c),'configError':'配置保存失败','apiApplyInfo':{'title':_0x4721d(0x27d),'description':'API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univerAiLabel':_0x4721d(0x2fb),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':_0x4721d(0x304),'apiKeyTooShort':_0x4721d(0x1f3),'invalidConfig':'配置无效','invalidApiKey':'API\x20密钥无效,请检查密钥是否正确'},'connectionStatus':{'disconnected':_0x4721d(0x248),'connecting':_0x4721d(0x1e9),'connected':_0x4721d(0x31f),'failed':'连接失败','retrying':'重连中...'},'connectionError':{'unauthorized':_0x4721d(0x2a2),'sessionOccupied':_0x4721d(0x29d),'networkError':_0x4721d(0x260),'maxRetriesExceeded':_0x4721d(0x1ff)}}};var fn=Object[_0x4721d(0x221)],hn=Object[_0x4721d(0x240)],Cn=(_0x4b75bf,_0x17bf8a,_0xba7c34)=>_0x17bf8a in _0x4b75bf?fn(_0x4b75bf,_0x17bf8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xba7c34}):_0x4b75bf[_0x17bf8a]=_0xba7c34,mn=(_0x299d05,_0x5c3cfa,_0xed7b1,_0x4f9056)=>{const _0x79a637=_0x4721d;for(var _0x32484e=_0x4f9056>0x1?void 0x0:_0x4f9056?hn(_0x5c3cfa,_0xed7b1):_0x5c3cfa,_0x40602c=_0x299d05[_0x79a637(0x309)]-0x1,_0x16e8cc;_0x40602c>=0x0;_0x40602c--)(_0x16e8cc=_0x299d05[_0x40602c])&&(_0x32484e=_0x16e8cc(_0x32484e)||_0x32484e);return _0x32484e;},P=(_0x7868c,_0x49ce84)=>(_0x496d62,_0x5cdeb4)=>_0x49ce84(_0x496d62,_0x5cdeb4,_0x7868c),_n=(_0x272f1d,_0x8ddee0,_0x4c22c0)=>Cn(_0x272f1d,_0x8ddee0+'',_0x4c22c0);let j=class extends _0x1b86ad{constructor(_0x272f39=ie,_0x4f08a8,_0x135bcd,_0x1b76c4,_0x1fc1e5,_0x1800aa){const _0x5a054a=_0x4721d;super(),this[_0x5a054a(0x2d4)]=_0x272f39,this[_0x5a054a(0x20d)]=_0x4f08a8,this[_0x5a054a(0x208)]=_0x135bcd,this[_0x5a054a(0x1f9)]=_0x1b76c4,this[_0x5a054a(0x2e0)]=_0x1fc1e5,this[_0x5a054a(0x2a3)]=_0x1800aa;const {..._0x119ed0}=_0x4710af({},ie,this['_config']);this['_configService']['setConfig'](y,_0x119ed0);}async[_0x4721d(0x212)](){const _0x706e23=_0x4721d,_0xf35f54=[[O],[I],[D]];this['_injector'][_0x706e23(0x2e1)](_0x494737)||_0xf35f54[_0x706e23(0x2b0)]([_0x494737,{'useClass':_0x321007}]),_0xf35f54[_0x706e23(0x296)](_0xd38f72=>this[_0x706e23(0x20d)][_0x706e23(0x26f)](_0xd38f72)),this[_0x706e23(0x20d)]['get'](O),this['_injector'][_0x706e23(0x323)](I),this[_0x706e23(0x20d)][_0x706e23(0x323)](D);}};_n(j,'pluginName',_0x4721d(0x1f7)),j=mn([_0x2960b3(_0xa3b208),P(0x1,_0xa6816e(_0x541a5c)),P(0x2,_0x322e87),P(0x3,_0x1e1885),P(0x4,_0x51e914),P(0x5,_0xa6816e(_0x449b31))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
1
+ const _0x4d1dd5=_0x593e;(function(_0x5620c6,_0x2077b8){const _0x5b56ff=_0x593e,_0x2f3925=_0x5620c6();while(!![]){try{const _0x37e54c=-parseInt(_0x5b56ff(0x2d1))/0x1*(-parseInt(_0x5b56ff(0x254))/0x2)+-parseInt(_0x5b56ff(0x21f))/0x3*(-parseInt(_0x5b56ff(0x262))/0x4)+-parseInt(_0x5b56ff(0x1fa))/0x5+-parseInt(_0x5b56ff(0x2b0))/0x6*(parseInt(_0x5b56ff(0x1f8))/0x7)+-parseInt(_0x5b56ff(0x24a))/0x8+parseInt(_0x5b56ff(0x2c3))/0x9+-parseInt(_0x5b56ff(0x21c))/0xa;if(_0x37e54c===_0x2077b8)break;else _0x2f3925['push'](_0x2f3925['shift']());}catch(_0x23552c){_0x2f3925['push'](_0x2f3925['shift']());}}}(_0x53df,0x1a379));var Pe=Object[_0x4d1dd5(0x2b9)],Ee=(_0x1cafe6,_0x3ba463,_0x16ffc4)=>_0x3ba463 in _0x1cafe6?Pe(_0x1cafe6,_0x3ba463,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16ffc4}):_0x1cafe6[_0x3ba463]=_0x16ffc4,x=(_0x609ced,_0x5cc3df,_0xa6d65a)=>Ee(_0x609ced,typeof _0x5cc3df!=_0x4d1dd5(0x207)?_0x5cc3df+'':_0x5cc3df,_0xa6d65a);import{LocaleService as _0x408b12,Inject as _0x34e389,Injector as _0x54f8e1,IConfigService as _0x23775e,ILocalStorageService as _0x1ee390,ILogService as _0x37ca18,Disposable as _0x597623,CommandType as _0x391ddb,ICommandService as _0x398280,DependentOn as _0x249ad5,Plugin as _0x300405,merge as _0x7e5e4c}from'@univerjs/core';import{jsxs as _0x3f5fa9,jsx as _0x3769df}from'react/jsx-runtime';import{MCPConnectionStatus as _0x48b73c,MCPConnectionError as _0x35c0c6,MCPConnectionController as _0x267a9e,MCP_PLUGIN_CONFIG_KEY as _0x7b65c8,UniverMCPPlugin as _0x51a3dd}from'@univerjs-pro/mcp';import{clsx as _0x3fcf1e,Input as _0x17e85f,Button as _0x25ca29,MessageType as _0xcd028b,Tooltip as _0x197f74}from'@univerjs/design';import{useDependency as _0x25ce64,useObservable as _0x464025,IUIPartsService as _0x5a2e5c,IDialogService as _0x92f93c,IMessageService as _0x2aa2ba,ComponentManager as _0xe137b3,connectInjector as _0x3ef36b,BuiltInUIPart as _0x36e436,MenuItemType as _0x5b6cd8,RibbonStartGroup as _0x246484,IMenuManagerService as _0x3b3a79}from'@univerjs/ui';import{BehaviorSubject as _0x20d690}from'rxjs';import{useRef as _0x1d5775,createElement as _0x23810,forwardRef as _0x3a4b3a,useState as _0x2c6501,useCallback as _0x12c1e8}from'react';import{ISocketService as _0x43eddd,WebSocketService as _0x3f40b3}from'@univerjs/network';function b({ref:_0xe5a624,..._0x294194}){const _0x521b5b=_0x4d1dd5,{icon:_0x14b07a,id:_0x10d817,className:_0x279cff,extend:_0x326134,..._0x1f3838}=_0x294194,_0x439812=(_0x521b5b(0x1d2)+_0x10d817+'\x20'+(_0x279cff||''))[_0x521b5b(0x2bd)](),_0x4023f0=_0x1d5775('_'+We());return ae(_0x14b07a,''+_0x10d817,{'defIds':_0x14b07a['defIds'],'idSuffix':_0x4023f0[_0x521b5b(0x1b3)]},{'ref':_0xe5a624,'className':_0x439812,..._0x1f3838},_0x326134);}function ae(_0x363a85,_0xc32d03,_0x5af1d2,_0x301776,_0x5b34f0){const _0x3fc120=_0x4d1dd5;return _0x23810(_0x363a85[_0x3fc120(0x21a)],{'key':_0xc32d03,...Ye(_0x363a85,_0x5af1d2,_0x5b34f0),..._0x301776},(Ze(_0x363a85,_0x5af1d2)[_0x3fc120(0x235)]||[])[_0x3fc120(0x256)]((_0x50cebd,_0x2235f7)=>ae(_0x50cebd,_0xc32d03+'-'+_0x363a85['tag']+'-'+_0x2235f7,_0x5af1d2,void 0x0,_0x5b34f0)));}function Ye(_0x2fff4a,_0x2dbe83,_0x4069e9){const _0x4f806f=_0x4d1dd5,_0x2d9e3b={..._0x2fff4a[_0x4f806f(0x2c2)]};_0x4069e9!=null&&_0x4069e9['colorChannel1']&&_0x2d9e3b[_0x4f806f(0x2c9)]===_0x4f806f(0x28c)&&(_0x2d9e3b['fill']=_0x4069e9['colorChannel1']),_0x2fff4a['tag']===_0x4f806f(0x264)&&_0x2d9e3b['id']&&(_0x2d9e3b['id']=_0x2d9e3b['id']+_0x2dbe83[_0x4f806f(0x247)]),Object[_0x4f806f(0x1f7)](_0x2d9e3b)[_0x4f806f(0x2d9)](([_0x55a9fd,_0x1bd28e])=>{const _0x3b9d54=_0x4f806f;_0x55a9fd===_0x3b9d54(0x264)&&typeof _0x1bd28e==_0x3b9d54(0x2bc)&&(_0x2d9e3b[_0x55a9fd]=_0x1bd28e[_0x3b9d54(0x2e7)](/url\(#(.*)\)/,_0x3b9d54(0x270)+_0x2dbe83[_0x3b9d54(0x247)]+')'));});const {defIds:_0x563d69}=_0x2dbe83;return!_0x563d69||_0x563d69['length']===0x0||(_0x2fff4a[_0x4f806f(0x21a)]===_0x4f806f(0x236)&&_0x2d9e3b[_0x4f806f(0x249)]&&(_0x2d9e3b[_0x4f806f(0x249)]=_0x2d9e3b[_0x4f806f(0x249)]+_0x2dbe83[_0x4f806f(0x247)]),Object[_0x4f806f(0x1f7)](_0x2d9e3b)[_0x4f806f(0x2d9)](([_0x4e313e,_0x237767])=>{const _0x38abe0=_0x4f806f;typeof _0x237767==_0x38abe0(0x2bc)&&(_0x2d9e3b[_0x4e313e]=_0x237767[_0x38abe0(0x2e7)](/url\(#(.*)\)/,_0x38abe0(0x270)+_0x2dbe83[_0x38abe0(0x247)]+')'));})),_0x2d9e3b;}function Ze(_0x89de5f,_0x2e0acc){const _0x5ed609=_0x4d1dd5;var _0x47f562;const {defIds:_0x59e9b2}=_0x2e0acc;return!_0x59e9b2||_0x59e9b2['length']===0x0?_0x89de5f:_0x89de5f[_0x5ed609(0x21a)]===_0x5ed609(0x29f)&&((_0x47f562=_0x89de5f[_0x5ed609(0x235)])!=null&&_0x47f562[_0x5ed609(0x255)])?{..._0x89de5f,'children':_0x89de5f[_0x5ed609(0x235)][_0x5ed609(0x256)](_0x1d29fb=>typeof _0x1d29fb[_0x5ed609(0x2c2)]['id']=='string'&&_0x59e9b2&&_0x59e9b2[_0x5ed609(0x2a3)](_0x1d29fb['attrs']['id'])?{..._0x1d29fb,'attrs':{..._0x1d29fb[_0x5ed609(0x2c2)],'id':_0x1d29fb[_0x5ed609(0x2c2)]['id']+_0x2e0acc[_0x5ed609(0x247)]}}:_0x1d29fb)}:_0x89de5f;}function We(){const _0x59c8a2=_0x4d1dd5;return Math[_0x59c8a2(0x20e)]()[_0x59c8a2(0x22a)](0x24)['substring'](0x2,0x8);}b['displayName']=_0x4d1dd5(0x242);const qe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x279),'fillRule':_0x4d1dd5(0x2a6),'clipRule':_0x4d1dd5(0x2a6)}}]},le=_0x3a4b3a(function(_0x3ef9b1,_0x2f6290){const _0x3097bc=_0x4d1dd5;return _0x23810(b,Object[_0x3097bc(0x2d7)]({},_0x3ef9b1,{'id':_0x3097bc(0x20c),'ref':_0x2f6290,'icon':qe}));});le[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x253);const Xe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4d1dd5(0x26a),'viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':'1em'},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':'currentColor','d':_0x4d1dd5(0x219)}}]},ue=_0x3a4b3a(function(_0x3b7e6b,_0x4c8d54){const _0x39a96b=_0x4d1dd5;return _0x23810(b,Object[_0x39a96b(0x2d7)]({},_0x3b7e6b,{'id':_0x39a96b(0x274),'ref':_0x4c8d54,'icon':Xe}));});ue['displayName']=_0x4d1dd5(0x1c7);function _0x593e(_0x3479c7,_0x181a42){const _0x53dfa9=_0x53df();return _0x593e=function(_0x593e9c,_0xf0325){_0x593e9c=_0x593e9c-0x1aa;let _0x3366cc=_0x53dfa9[_0x593e9c];return _0x3366cc;},_0x593e(_0x3479c7,_0x181a42);}const Je={'tag':'svg','attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x1cb)}},{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x1c5)}},{'tag':'path','attrs':{'fill':_0x4d1dd5(0x21e),'d':'M3.05619\x203.05618C4.32084\x201.79156\x206.06964\x201.0083\x208.00023\x201.0083C9.93081\x201.0083\x2011.6796\x201.79156\x2012.9443\x203.05619C14.2089\x204.32083\x2014.9922\x206.06964\x2014.9922\x208.00023C14.9922\x209.93082\x2014.2089\x2011.6796\x2012.9443\x2012.9443C11.6796\x2014.2089\x209.93082\x2014.9922\x208.00023\x2014.9922C6.06964\x2014.9922\x204.32084\x2014.2089\x203.05619\x2012.9443C1.79156\x2011.6796\x201.0083\x209.93081\x201.0083\x208.00023C1.0083\x206.06964\x201.79156\x204.32083\x203.05619\x203.05618ZM8.00023\x202.2083C6.40068\x202.2083\x204.95352\x202.85593\x203.90471\x203.90472C2.85592\x204.95353\x202.2083\x206.40068\x202.2083\x208.00023C2.2083\x209.59977\x202.85593\x2011.0469\x203.90472\x2012.0957C4.95352\x2013.1445\x206.40068\x2013.7922\x208.00023\x2013.7922C9.59977\x2013.7922\x2011.0469\x2013.1445\x2012.0957\x2012.0957C13.1445\x2011.0469\x2013.7922\x209.59977\x2013.7922\x208.00023C13.7922\x206.40068\x2013.1445\x204.95352\x2012.0957\x203.90472C11.0469\x202.85593\x209.59977\x202.2083\x208.00023\x202.2083Z','fillRule':_0x4d1dd5(0x2a6),'clipRule':'evenodd'}}]},ve=_0x3a4b3a(function(_0x4a8c86,_0x50c991){const _0x1b3318=_0x4d1dd5;return _0x23810(b,Object[_0x1b3318(0x2d7)]({},_0x4a8c86,{'id':_0x1b3318(0x1e6),'ref':_0x50c991,'icon':Je}));});ve[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x2a4);const Qe={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':_0x4d1dd5(0x26a),'viewBox':_0x4d1dd5(0x1f5),'width':_0x4d1dd5(0x1fe),'height':_0x4d1dd5(0x1fe)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d1dd5(0x1d3)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'stroke':_0x4d1dd5(0x21e),'d':_0x4d1dd5(0x294),'strokeLinecap':_0x4d1dd5(0x2b2),'strokeLinejoin':_0x4d1dd5(0x2b2),'strokeWidth':1.2}}]},{'tag':_0x4d1dd5(0x29f),'attrs':{},'children':[{'tag':_0x4d1dd5(0x1ce),'attrs':{'id':_0x4d1dd5(0x2f7)},'children':[{'tag':'path','attrs':{'fill':_0x4d1dd5(0x2eb),'d':_0x4d1dd5(0x2c8)}}]}]}],'defIds':[_0x4d1dd5(0x2f7)]},de=_0x3a4b3a(function(_0x36b965,_0x9db2d7){const _0x142199=_0x4d1dd5;return _0x23810(b,Object[_0x142199(0x2d7)]({},_0x36b965,{'id':_0x142199(0x25f),'ref':_0x9db2d7,'icon':Qe}));});de[_0x4d1dd5(0x2f1)]=_0x4d1dd5(0x1af);const en={'tag':_0x4d1dd5(0x2db),'attrs':{'xmlns':_0x4d1dd5(0x1e4),'fill':'none','viewBox':_0x4d1dd5(0x293),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4d1dd5(0x1e1)},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'stroke':'currentColor','d':_0x4d1dd5(0x1ef),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4d1dd5(0x29f),'attrs':{},'children':[{'tag':_0x4d1dd5(0x1ce),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x4d1dd5(0x280),'attrs':{'fill':'white','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x4d1dd5(0x290)]},ge=_0x3a4b3a(function(_0x3b9ce3,_0x22820c){const _0x20f9e4=_0x4d1dd5;return _0x23810(b,Object['assign']({},_0x3b9ce3,{'id':_0x20f9e4(0x1ba),'ref':_0x22820c,'icon':en}));});ge['displayName']=_0x4d1dd5(0x210);function nn(_0x46f1ae){const _0x320b33=_0x4d1dd5;var _0xc07e75,_0x8190a9;const {mcpCoreConfig:_0xff5682,onSave:_0x45f738,loading:_0x47d791=!0x1,config:_0x3d805a,connectionStatus$:_0x1820e7,connectionError$:_0x5013bf,currentApiKey$:_0x2e95d3,currentSessionId$:_0x2b25c0}=_0x46f1ae,_0x233f96=_0x25ce64(_0x408b12),_0x3edbc2=_0x464025(_0x1820e7,_0x48b73c[_0x320b33(0x2c5)]),_0x1a7c75=_0x464025(_0x5013bf,_0x35c0c6[_0x320b33(0x239)]),_0x2893dc=_0x464025(_0x2b25c0,''),_0x1225d1=_0x464025(_0x2e95d3,''),[_0x51716a,_0x5893be]=_0x2c6501(_0x1225d1||''),_0x161dd9=!0x0,_0x2ef91d=_0x3d805a[_0x320b33(0x2ce)]&&_0xff5682[_0x320b33(0x2ff)]&&(_0xff5682[_0x320b33(0x2ff)]['includes']('univer.plus')||_0xff5682[_0x320b33(0x2ff)]['includes'](_0x320b33(0x27b))),_0x3b0110=(_0xc07e75=_0xff5682[_0x320b33(0x2ff)])==null?void 0x0:_0xc07e75[_0x320b33(0x2a3)](_0x320b33(0x28b)),_0x4a97e4=(_0x8190a9=_0xff5682[_0x320b33(0x2ff)])==null?void 0x0:_0x8190a9[_0x320b33(0x2a3)](_0x320b33(0x27b)),_0x199aee=_0x3b0110?_0x320b33(0x1ac):_0x320b33(0x250),_0x598e64=_0x3d805a[_0x320b33(0x2ce)]&&(_0x3b0110||_0x4a97e4),[_0x112b52,_0x4abfdd]=_0x2c6501(!_0x51716a['trim']()),_0x330892=(_0x19d5ca,_0x4c12ff)=>{const _0x1656f3=_0x320b33;if(_0x4c12ff===_0x35c0c6[_0x1656f3(0x2ad)])return'univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200';switch(_0x19d5ca){case _0x48b73c[_0x1656f3(0x25c)]:return _0x1656f3(0x271);case _0x48b73c[_0x1656f3(0x23c)]:case _0x48b73c[_0x1656f3(0x288)]:return _0x1656f3(0x1f4);case _0x48b73c[_0x1656f3(0x2e4)]:return _0x1656f3(0x298);default:return _0x1656f3(0x1bf);}},_0x1d4dbb=(_0x16a3b3,_0x27b5c8)=>{const _0x548dc7=_0x320b33;if(_0x27b5c8===_0x35c0c6['UNAUTHORIZED'])return _0x548dc7(0x1ee);switch(_0x16a3b3){case _0x48b73c[_0x548dc7(0x25c)]:return _0x548dc7(0x206);case _0x48b73c['CONNECTING']:case _0x48b73c[_0x548dc7(0x288)]:return _0x548dc7(0x27f);case _0x48b73c[_0x548dc7(0x2e4)]:return _0x548dc7(0x1ee);default:return _0x548dc7(0x1b9);}},_0x39af03=_0x3cb69c=>{const _0x112da8=_0x320b33;switch(_0x3cb69c){case _0x48b73c['CONNECTED']:return _0x233f96['t'](_0x112da8(0x1fd));case _0x48b73c['CONNECTING']:return _0x233f96['t'](_0x112da8(0x226));case _0x48b73c['FAILED']:return _0x233f96['t'](_0x112da8(0x26c));case _0x48b73c[_0x112da8(0x288)]:return _0x233f96['t']('mcpConfig.connectionStatus.retrying');default:return _0x233f96['t'](_0x112da8(0x2be));}},_0x20c556=_0x2af9ce=>{const _0x288f33=_0x320b33;switch(_0x2af9ce){case _0x35c0c6[_0x288f33(0x2ad)]:return _0x233f96['t'](_0x288f33(0x275));case _0x35c0c6[_0x288f33(0x20a)]:return _0x233f96['t'](_0x288f33(0x203));case _0x35c0c6[_0x288f33(0x28a)]:return _0x233f96['t'](_0x288f33(0x246));case _0x35c0c6[_0x288f33(0x269)]:return _0x233f96['t']('mcpConfig.connectionError.maxRetriesExceeded');default:return'';}},_0x4f1774=_0x12c1e8(()=>{const _0x2a70a2=_0x320b33,_0xfd2b1a={..._0xff5682,'apiKey':_0x51716a[_0x2a70a2(0x2bd)](),'enableAuth':_0x161dd9};_0x45f738(_0xfd2b1a);},[_0xff5682,_0x51716a,_0x161dd9,_0x45f738]),_0x2e8bfd=_0x51716a['trim']()['length']>0x0;return _0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-max-h-[80vh]\x20univer-min-h-[320px]\x20univer-flex-col','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2e9),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2f9),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x233),'children':_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x25d),'children':'⚙'})}),_0x3769df(_0x320b33(0x28d),{'children':_0x3769df('p',{'className':_0x320b33(0x23d),'children':_0x233f96['t'](_0x320b33(0x2c0))})})]})}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x3fcf1e(_0x320b33(0x28f),_0x330892(_0x3edbc2,_0x1a7c75)),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x3fcf1e(_0x320b33(0x258),_0x1d4dbb(_0x3edbc2,_0x1a7c75))}),_0x3769df('span',{'className':_0x320b33(0x1f1),'children':_0x39af03(_0x3edbc2)})]})}),_0x1a7c75!==_0x35c0c6[_0x320b33(0x239)]&&(_0x3edbc2===_0x48b73c[_0x320b33(0x2e4)]||_0x1a7c75===_0x35c0c6[_0x320b33(0x2ad)])&&_0x3769df('div',{'className':'univer-mt-2\x20univer-rounded-md\x20univer-border\x20univer-border-red-200\x20univer-bg-red-50\x20univer-px-3\x20univer-py-2','children':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-2','children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x1ca),'children':'⚠️'}),_0x3769df('p',{'className':_0x320b33(0x1c2),'children':_0x20c556(_0x1a7c75)})]})})]}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x213),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-space-y-5','children':[_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-space-y-2','children':[_0x3f5fa9(_0x320b33(0x278),{'className':_0x320b33(0x240),'children':[_0x3769df('span',{'children':'🔑'}),'\x20',_0x233f96['t'](_0x320b33(0x20d)),_0x3769df(_0x320b33(0x259),{'className':'univer-text-red-500','children':'*'}),_0x2ef91d&&_0x3769df('a',{'className':_0x320b33(0x1c4),'title':_0x233f96['t']('mcpConfig.apiApplyInfo.title'),'role':_0x320b33(0x1e8),'onClick':()=>_0x4abfdd(!0x0),'children':_0x3769df(ve,{})})]}),_0x3769df(_0x17e85f,{'type':'text','placeholder':_0x233f96['t'](_0x320b33(0x24f)),'value':_0x51716a,'disabled':_0x47d791,'autoComplete':_0x320b33(0x2ef),'onChange':_0x5893be}),_0x3769df('p',{'className':_0x320b33(0x2a7),'children':_0x233f96['t']('mcpConfig.apiKeyHint')})]}),_0x2ef91d&&_0x112b52&&_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2ac),'children':[_0x3769df('a',{'className':_0x320b33(0x2fa),'role':_0x320b33(0x1e8),'onClick':()=>_0x4abfdd(!0x1),'children':_0x3769df(ue,{'className':'univer-size-4'})}),_0x3f5fa9('div',{'className':'univer-flex\x20univer-items-start\x20univer-gap-3\x20univer-pr-8','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2c6),'children':_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x21d),'children':'🚀'})}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex-1','children':[_0x3769df('h4',{'className':_0x320b33(0x2d4),'children':_0x233f96['t']('mcpConfig.apiApplyInfo.title')}),_0x3769df('p',{'className':_0x320b33(0x237),'children':_0x233f96['t'](_0x320b33(0x1b5))}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x22b),'children':_0x598e64&&_0x3f5fa9('a',{'className':_0x320b33(0x29e),'href':_0x199aee,'target':_0x320b33(0x2df),'rel':'noopener\x20noreferrer','children':[_0x3769df(_0x320b33(0x259),{'children':'🤖'}),_0x233f96['t'](_0x320b33(0x252)),_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x1fc),'children':'↗'})]})}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1c6),'children':['✨','\x20',_0x233f96['t'](_0x320b33(0x2dc))]})]})]})]}),_0x3d805a[_0x320b33(0x2ce)]&&_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x248),'children':[_0x3f5fa9('h4',{'className':'univer-mb-3\x20univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','children':[_0x3769df(_0x320b33(0x259),{'children':'🔗'}),'\x20',_0x233f96['t']('mcpConfig.connectionInfo')]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x2d0),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1d0),'children':[_0x3769df('p',{'className':'univer-text-xs\x20univer-text-gray-600','children':_0x233f96['t'](_0x320b33(0x2d6))}),_0x3f5fa9('div',{'className':'univer-space-y-2','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x27a),'children':_0x233f96['t'](_0x320b33(0x272))}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x25b),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x299),'children':'1'}),_0x233f96['t'](_0x320b33(0x2b3))]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'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'}),_0x233f96['t']('mcpConfig.configStep2')]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'className':_0x320b33(0x299),'children':'3'}),_0x233f96['t'](_0x320b33(0x28e))]})]})]})]}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x261),'children':[_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','children':_0x320b33(0x263)}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x1f9),'children':_0x3769df(_0x320b33(0x1ae),{'className':'univer-overflow-hidden\x20univer-whitespace-pre-wrap\x20univer-break-all\x20univer-text-xs\x20univer-text-gray-800','children':JSON[_0x320b33(0x2a9)]({'mcpServers':{'univer':{'url':_0x320b33(0x2d3)+(_0x2893dc||'<SESSION_ID>'),'type':_0x320b33(0x265),'headers':{'Authorization':_0x320b33(0x297)+(_0x51716a||_0x320b33(0x251))}}}},null,0x2)})})]}),_0x3f5fa9('div',{'className':'univer-space-y-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x27a),'children':_0x233f96['t'](_0x320b33(0x1e3))}),_0x3f5fa9('div',{'className':_0x320b33(0x261),'children':[_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3769df('div',{'className':'univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500'}),_0x3f5fa9(_0x320b33(0x28d),{'className':_0x320b33(0x212),'children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2cc),'children':_0x320b33(0x1d9)}),_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-text-gray-500','children':_0x233f96['t'](_0x320b33(0x214))})]})]}),_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-items-start\x20univer-gap-3','children':[_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x283)}),_0x3f5fa9('div',{'className':'univer-min-w-0\x20univer-flex-1','children':[_0x3769df(_0x320b33(0x28d),{'className':'univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','children':_0x320b33(0x243)}),_0x3769df('div',{'className':_0x320b33(0x2a7),'children':_0x233f96['t'](_0x320b33(0x2a8))})]})]})]})]})]})]}),_0x3769df(_0x25ca29,{'onClick':_0x4f1774,'disabled':!_0x2e8bfd||_0x47d791,'className':_0x320b33(0x221),'children':_0x47d791?_0x3f5fa9(_0x320b33(0x259),{'className':_0x320b33(0x1be),'children':[_0x3769df(_0x320b33(0x259),{'children':'⟲'}),_0x233f96['t'](_0x320b33(0x23a))]}):_0x3f5fa9(_0x320b33(0x259),{'className':_0x320b33(0x1be),'children':[_0x3769df(le,{}),_0x233f96['t']('mcpConfig.save')]})}),_0x3769df(_0x320b33(0x28d),{'className':_0x320b33(0x2e3),'children':_0x3f5fa9(_0x320b33(0x28d),{'className':'univer-flex\x20univer-gap-3','children':[_0x3769df(_0x320b33(0x259),{'className':'univer-shrink-0\x20univer-text-blue-500','children':'💡'}),_0x3f5fa9('div',{'className':_0x320b33(0x2d8),'children':[_0x3769df('div',{'className':'univer-font-medium','children':'Configuration\x20Notes:'}),_0x3f5fa9(_0x320b33(0x28d),{'children':['•',_0x233f96['t'](_0x320b33(0x23e))]}),_0x3f5fa9(_0x320b33(0x28d),{'children':['•',_0x233f96['t'](_0x320b33(0x2e8))]})]})]})})]})})]});}const y=_0x4d1dd5(0x1c1),ie={'showDeveloperTools':!0x1,'showStatus':!0x0};var rn=Object[_0x4d1dd5(0x286)],tn=(_0xc6c6ae,_0x5f3c84,_0x2bcdf4,_0x56654a)=>{const _0x59ccf9=_0x4d1dd5;for(var _0x3cc091=_0x56654a>0x1?void 0x0:_0x56654a?rn(_0x5f3c84,_0x2bcdf4):_0x5f3c84,_0x34387a=_0xc6c6ae[_0x59ccf9(0x255)]-0x1,_0x489e4e;_0x34387a>=0x0;_0x34387a--)(_0x489e4e=_0xc6c6ae[_0x34387a])&&(_0x3cc091=_0x489e4e(_0x3cc091)||_0x3cc091);return _0x3cc091;},d=(_0x14529f,_0x2ca950)=>(_0x52e4b7,_0x1c1aa4)=>_0x2ca950(_0x52e4b7,_0x1c1aa4,_0x14529f);const U=_0x4d1dd5(0x26d),L=_0x4d1dd5(0x1b7);let I=class extends _0x597623{constructor(_0x5240f0,_0x38427c,_0x53e971,_0x4911cd,_0x184ea0,_0x3fa2ca,_0x3c1730,_0x405dc7,_0x162f59,_0x52384a){const _0x371b5c=_0x4d1dd5;super(),x(this,_0x371b5c(0x223),new _0x20d690(!0x1)),x(this,_0x371b5c(0x22f),new _0x20d690({})),x(this,_0x371b5c(0x25a),new _0x20d690({})),x(this,_0x371b5c(0x1cc),new _0x20d690('')),x(this,_0x371b5c(0x2e6),async _0xe62755=>{const _0x28778d=_0x371b5c;var _0x1d179c,_0x30f54e;this['_loading$'][_0x28778d(0x2f2)](!0x0);try{const _0x8866d7=await this[_0x28778d(0x216)](_0xe62755);if(!_0x8866d7['isValid']){this[_0x28778d(0x202)]['show']({'type':_0xcd028b['Error'],'content':_0x8866d7[_0x28778d(0x1de)]||this[_0x28778d(0x2cd)]['t'](_0x28778d(0x1c9))});return;}_0xe62755[_0x28778d(0x22d)]?await this[_0x28778d(0x296)][_0x28778d(0x234)](U,_0xe62755[_0x28778d(0x22d)][_0x28778d(0x2bd)]()):await this[_0x28778d(0x296)]['removeItem'](U),this[_0x28778d(0x1cc)][_0x28778d(0x2f2)](((_0x1d179c=_0xe62755[_0x28778d(0x22d)])==null?void 0x0:_0x1d179c['trim']())||''),this[_0x28778d(0x23b)][_0x28778d(0x2ab)]({'Authorization':_0x28778d(0x297)+((_0x30f54e=_0xe62755[_0x28778d(0x22d)])==null?void 0x0:_0x30f54e['trim']())}),this[_0x28778d(0x202)][_0x28778d(0x266)]({'type':_0xcd028b[_0x28778d(0x1b8)],'content':this['_localeService']['t'](_0x28778d(0x2b8))}),setTimeout(()=>{const _0x15a1ce=_0x28778d;this[_0x15a1ce(0x211)][_0x15a1ce(0x289)](L);},0x320);}catch(_0x12bc90){this[_0x28778d(0x2dd)][_0x28778d(0x26b)](_0x28778d(0x2ba),_0x12bc90),this[_0x28778d(0x202)][_0x28778d(0x266)]({'type':_0xcd028b['Error'],'content':this[_0x28778d(0x2cd)]['t']('mcpConfig.configError')});}finally{this[_0x28778d(0x223)][_0x28778d(0x2f2)](!0x1);}}),(this[_0x371b5c(0x2fb)]=_0x5240f0,this[_0x371b5c(0x1d1)]=_0x38427c,this['_configService']=_0x53e971,this['_localStorageService']=_0x4911cd,this[_0x371b5c(0x211)]=_0x184ea0,this[_0x371b5c(0x202)]=_0x3fa2ca,this['_componentManager']=_0x3c1730,this['_localeService']=_0x405dc7,this[_0x371b5c(0x2dd)]=_0x162f59,this['_mcpConnectionController']=_0x52384a,this['_initConfigSync'](),this[_0x371b5c(0x1dc)](),this['_registerComponent']());}['showConfigPanel'](){const _0x3ef5c7=_0x4d1dd5,_0x465e91=this[_0x3ef5c7(0x2c1)][_0x3ef5c7(0x20f)](y);_0x465e91!=null&&_0x465e91[_0x3ef5c7(0x2ce)]&&this[_0x3ef5c7(0x211)][_0x3ef5c7(0x2da)]({'id':L,'title':{'title':this[_0x3ef5c7(0x2cd)]['t'](_0x3ef5c7(0x20b))},'children':{'label':_0x3ef5c7(0x2e1)},'width':0x244,'draggable':!0x0,'destroyOnClose':!0x0,'onClose':()=>{const _0x272583=_0x3ef5c7;this['_dialogService'][_0x272583(0x289)](L);}});}['getCurrentConfig'](){const _0x3c3bce=_0x4d1dd5;return this[_0x3c3bce(0x22f)][_0x3c3bce(0x238)];}['_registerComponent'](){const _0x33370b=_0x4d1dd5;this[_0x33370b(0x2f0)](this[_0x33370b(0x2f5)][_0x33370b(0x205)](_0x33370b(0x2e1),this[_0x33370b(0x292)]()));}[_0x4d1dd5(0x292)](){const _0x3f4861=_0x4d1dd5;return _0x3ef36b(()=>{const _0x58bcd1=_0x593e;var _0x338a21,_0x16edf6,_0x2225ca;return _0x3769df(nn,{'config':this[_0x58bcd1(0x25a)][_0x58bcd1(0x238)],'mcpCoreConfig':this['_mcpCoreConfig$'][_0x58bcd1(0x238)],'currentApiKey$':this[_0x58bcd1(0x1cc)],'onSave':this[_0x58bcd1(0x2e6)],'loading':this[_0x58bcd1(0x223)][_0x58bcd1(0x238)],'connectionStatus$':(_0x338a21=this[_0x58bcd1(0x23b)])==null?void 0x0:_0x338a21[_0x58bcd1(0x222)],'connectionError$':(_0x16edf6=this[_0x58bcd1(0x23b)])==null?void 0x0:_0x16edf6[_0x58bcd1(0x2fe)],'currentSessionId$':(_0x2225ca=this['_mcpConnectionController'])==null?void 0x0:_0x2225ca[_0x58bcd1(0x1db)]});},this[_0x3f4861(0x2fb)]);}[_0x4d1dd5(0x268)](){const _0x1698bd=_0x4d1dd5;this[_0x1698bd(0x2f0)](this[_0x1698bd(0x2c1)][_0x1698bd(0x245)](_0x7b65c8)[_0x1698bd(0x287)](_0xc1a274=>{const _0x3acc2d=_0x1698bd;this['_mcpCoreConfig$'][_0x3acc2d(0x2f2)](_0xc1a274||{});}));const _0x217723=this[_0x1698bd(0x2c1)][_0x1698bd(0x20f)](_0x7b65c8);this[_0x1698bd(0x22f)][_0x1698bd(0x2f2)](_0x217723||{}),this[_0x1698bd(0x2f0)](this[_0x1698bd(0x2c1)][_0x1698bd(0x245)](y)['subscribe'](_0x57845c=>{const _0x4a18d1=_0x1698bd;this[_0x4a18d1(0x25a)][_0x4a18d1(0x2f2)](_0x57845c||{});}));const _0x9bff26=this[_0x1698bd(0x2c1)][_0x1698bd(0x20f)](y);this[_0x1698bd(0x25a)][_0x1698bd(0x2f2)](_0x9bff26||{});}async[_0x4d1dd5(0x1dc)](){const _0xa8e201=_0x4d1dd5,_0x4b4e97=this[_0xa8e201(0x2c1)]['getConfig'](y);if(!(_0x4b4e97!=null&&_0x4b4e97[_0xa8e201(0x2ce)]))return;const _0x559c42=await this['_localStorageService'][_0xa8e201(0x1aa)](U);_0x559c42&&(this[_0xa8e201(0x23b)][_0xa8e201(0x2ab)]({'Authorization':_0xa8e201(0x297)+_0x559c42}),this[_0xa8e201(0x1cc)][_0xa8e201(0x2f2)](_0x559c42));}async[_0x4d1dd5(0x216)](_0x53a1ed){const _0xd667a5=_0x4d1dd5;if(!_0x53a1ed[_0xd667a5(0x22d)]||_0x53a1ed['apiKey'][_0xd667a5(0x2bd)]()[_0xd667a5(0x255)]===0x0)return{'isValid':!0x1,'errorMessage':this['_localeService']['t']('mcpConfig.validation.apiKeyRequired')};if(_0x53a1ed[_0xd667a5(0x22d)][_0xd667a5(0x2bd)]()['length']<0xa)return{'isValid':!0x1,'errorMessage':this[_0xd667a5(0x2cd)]['t'](_0xd667a5(0x2c7))};try{const _0x55a76c=await this[_0xd667a5(0x2fb)][_0xd667a5(0x2ca)](_0x267a9e)[_0xd667a5(0x2e0)](_0x53a1ed[_0xd667a5(0x22d)][_0xd667a5(0x2bd)]());return _0x55a76c[_0xd667a5(0x27c)]?{'isValid':!0x0}:{'isValid':!0x1,'errorMessage':_0x55a76c[_0xd667a5(0x26b)]||this[_0xd667a5(0x2cd)]['t']('mcpConfig.validation.invalidApiKey')};}catch(_0x31af76){return console[_0xd667a5(0x2b7)](_0xd667a5(0x1e2),_0x31af76),{'isValid':!0x0};}}};I=tn([d(0x0,_0x34e389(_0x54f8e1)),d(0x1,_0x5a2e5c),d(0x2,_0x23775e),d(0x3,_0x1ee390),d(0x4,_0x92f93c),d(0x5,_0x2aa2ba),d(0x6,_0x34e389(_0xe137b3)),d(0x7,_0x34e389(_0x408b12)),d(0x8,_0x37ca18),d(0x9,_0x34e389(_0x267a9e))],I);const V={'id':'mcp-ui.command.openConfigPanel','type':_0x391ddb[_0x4d1dd5(0x224)],'handler':async(_0x3fb182,_0xe2fd90)=>(_0x3fb182['get'](I)['showConfigPanel'](),!0x0)};function pe(_0x3fe6d3,_0x53052f){const _0xdc98f6=_0x4d1dd5;switch(_0x3fe6d3){case _0x48b73c[_0xdc98f6(0x2c5)]:return _0xdc98f6(0x26f);case _0x48b73c[_0xdc98f6(0x23c)]:return _0xdc98f6(0x1c3);case _0x48b73c[_0xdc98f6(0x25c)]:return _0xdc98f6(0x1ad);case _0x48b73c[_0xdc98f6(0x2e4)]:switch(_0x53052f){case _0x35c0c6[_0xdc98f6(0x2ad)]:return _0xdc98f6(0x295);case _0x35c0c6[_0xdc98f6(0x20a)]:return'mcpStatus.sessionOccupied';case _0x35c0c6[_0xdc98f6(0x28a)]:return _0xdc98f6(0x1f6);case _0x35c0c6[_0xdc98f6(0x269)]:return'mcpStatus.maxRetriesExceeded';default:return'mcpStatus.failed';}case _0x48b73c[_0xdc98f6(0x288)]:return'mcpStatus.retrying';default:return _0xdc98f6(0x2bf);}}function on(_0x24dd44,_0xe7793c,_0x3087fd,_0x17250f=!0x0){const _0x1640bb=_0x4d1dd5,_0xae7032=pe(_0x24dd44,_0xe7793c),_0x2cb3dc=_0x3087fd['t'](_0xae7032);return _0x17250f?_0x24dd44===_0x48b73c[_0x1640bb(0x2c5)]&&_0xe7793c===_0x35c0c6[_0x1640bb(0x2ad)]?_0x2cb3dc+'\x20-\x20'+_0x3087fd['t'](_0x1640bb(0x29a)):_0x24dd44===_0x48b73c['CONNECTED']?''+_0x2cb3dc:_0x24dd44===_0x48b73c[_0x1640bb(0x2c5)]||_0x24dd44===_0x48b73c[_0x1640bb(0x2e4)]?_0x2cb3dc+_0x1640bb(0x2ae)+_0x3087fd['t']('mcpStatus.clickToConnect'):_0x2cb3dc:_0x2cb3dc;}function sn(_0x457f5d){const _0x592798=_0x4d1dd5;switch(_0x457f5d){case _0x48b73c['CONNECTED']:return _0x592798(0x2d2);case _0x48b73c['CONNECTING']:case _0x48b73c[_0x592798(0x288)]:return'univer-text-yellow-500';case _0x48b73c['FAILED']:case _0x48b73c[_0x592798(0x2c5)]:return _0x592798(0x2ea);default:return _0x592798(0x200);}}function cn(_0x4cd746){const _0x2dbb83=_0x4d1dd5,{status$:_0x4ebb53,error$:_0x497b47,onConfigure:_0x3bdd3f,showClickable:_0x43dd7d=!0x0}=_0x4cd746,_0x31d024=_0x464025(_0x4ebb53,_0x48b73c[_0x2dbb83(0x2c5)]),_0x5e46f1=_0x464025(_0x497b47,_0x35c0c6[_0x2dbb83(0x239)]),_0xb712f0=_0x25ce64(_0x408b12),_0x3ab12b=_0x31d024===_0x48b73c['CONNECTED'];_0x31d024===_0x48b73c[_0x2dbb83(0x23c)]||_0x48b73c[_0x2dbb83(0x288)];const _0x346159=_0xb712f0['t'](pe(_0x31d024,_0x5e46f1)),_0x289ab1=on(_0x31d024,_0x5e46f1,_0xb712f0,_0x43dd7d),_0x385e64=sn(_0x31d024),_0x28a70f=_0x3ab12b?_0x3769df(ge,{}):_0x3769df(de,{}),_0x51253f=_0x12c1e8(()=>{_0x43dd7d&&_0x3bdd3f&&_0x3bdd3f();},[_0x43dd7d,_0x3bdd3f]);function _0x3d538f(){const _0x3d3629=_0x2dbb83;return _0x3f5fa9('div',{'className':_0x3fcf1e('univer-flex\x20univer-items-center',_0x43dd7d&&_0x3bdd3f&&_0x3d3629(0x2b6)),'role':_0x3d3629(0x1e8),'onClick':_0x43dd7d&&_0x3bdd3f?_0x51253f:void 0x0,'children':[_0x3769df(_0x3d3629(0x28d),{'className':_0x3fcf1e('univer-mr-2\x20univer-flex\x20univer-text-xl',_0x385e64),'children':_0x28a70f}),_0x3769df(_0x3d3629(0x28d),{'className':_0x3d3629(0x2d5),'children':_0x346159})]});}return _0x3769df(_0x197f74,{'title':_0x289ab1,'placement':_0x2dbb83(0x2b1),'children':_0x3d538f()});}var an=Object['getOwnPropertyDescriptor'],ln=(_0x17ac81,_0x1857a5,_0x266c5d,_0x1f1356)=>{const _0x363c0f=_0x4d1dd5;for(var _0x1fe923=_0x1f1356>0x1?void 0x0:_0x1f1356?an(_0x1857a5,_0x266c5d):_0x1857a5,_0x5b2357=_0x17ac81[_0x363c0f(0x255)]-0x1,_0x11ab74;_0x5b2357>=0x0;_0x5b2357--)(_0x11ab74=_0x17ac81[_0x5b2357])&&(_0x1fe923=_0x11ab74(_0x1fe923)||_0x1fe923);return _0x1fe923;},M=(_0x18da6d,_0x315d40)=>(_0x46b144,_0x59b01d)=>_0x315d40(_0x46b144,_0x59b01d,_0x18da6d);function _0x53df(){const _0x4cf681=['MCPConfigPanel','保存中...','univer-rounded-lg\x20univer-border\x20univer-border-blue-200\x20univer-bg-blue-50\x20univer-p-3','FAILED','Saving...','_handleConfigSave','replace','mcpConfig.note2','univer-border-b\x20univer-border-gray-100\x20univer-px-6\x20univer-py-4','univer-text-red-500','white','MCP\x20客户端配置','连接中...','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','off','disposeWithMe','displayName','next','连接失败','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','_componentManager','MCP\x20Client\x20Configuration','off-line-icon_clip0_910_343','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','univer-flex\x20univer-items-center\x20univer-gap-3','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','_injector','_commandService','push','connectionError$','mcpServerUrl','getItem','_menuManagerService','https://console.univer.plus','mcpStatus.connected','pre','OffLineIcon','_initializeCommands','MCP\x20Connected','MCP\x20状态未知','current','Connected','mcpConfig.apiApplyInfo.description','BUTTON','mcp-config-dialog','Success','univer-bg-gray-500','on-line-icon','registerCommand','_handleConfigure','MCP:\x20会话\x20ID\x20已被占用','univer-flex\x20univer-items-center\x20univer-gap-2','univer-text-gray-600\x20univer-bg-gray-50\x20univer-border-gray-200','未连接','mcp-ui.config','univer-m-0\x20univer-text-sm\x20univer-font-medium\x20univer-text-red-800','mcpStatus.connecting','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','M8.79964\x2011.5573C8.79964\x2011.9986\x208.44192\x2012.3563\x208.00065\x2012.3563C7.55938\x2012.3563\x207.20166\x2011.9986\x207.20166\x2011.5573C7.20166\x2011.116\x207.55938\x2010.7583\x208.00065\x2010.7583C8.44192\x2010.7583\x208.79964\x2011.116\x208.79964\x2011.5573Z','univer-mt-2\x20univer-text-xs\x20univer-text-gray-500','CloseIcon','MCP:\x20Max\x20Retries\x20Exceeded','mcpConfig.validation.invalidConfig','univer-shrink-0\x20univer-text-red-500','M5.48291\x206.27979C5.48291\x204.88937\x206.61007\x203.76221\x208.00049\x203.76221C9.39091\x203.76221\x2010.5181\x204.88937\x2010.5181\x206.27979C10.5181\x207.46343\x209.70122\x208.4563\x208.60049\x208.72542V9.47575C8.60049\x209.80712\x208.33186\x2010.0757\x208.00049\x2010.0757C7.66912\x2010.0757\x207.40049\x209.80712\x207.40049\x209.47575V8.19736C7.40049\x207.86599\x207.66912\x207.59736\x208.00049\x207.59736C8.72816\x207.59736\x209.31807\x207.00746\x209.31807\x206.27979C9.31807\x205.55211\x208.72816\x204.96221\x208.00049\x204.96221C7.27281\x204.96221\x206.68291\x205.55211\x206.68291\x206.27979C6.68291\x206.61116\x206.41428\x206.87979\x206.08291\x206.87979C5.75154\x206.87979\x205.48291\x206.61116\x205.48291\x206.27979Z','_apiKey$','Copy\x20the\x20JSON\x20configuration\x20below','clipPath','什么是\x20API\x20密钥?','univer-space-y-3','_uiPartsService','univerjs-icon\x20univerjs-icon-','url(#off-line-icon_clip0_910_343)','MCP\x20连接中...','Configuration\x20saved\x20successfully','pluginName','Disconnected','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','univer_session_id:','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','sessionId$','_loadStoredApiKey','Configuration\x20Steps:','errorMessage','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','API\x20密钥无效,请检查密钥是否正确','url(#on-line-icon_clip0_910_349)','[MCPConfigUI]\x20Could\x20not\x20validate\x20API\x20key\x20with\x20core\x20plugin:','mcpConfig.configParameters','http://www.w3.org/2000/svg','API\x20密钥长度至少需要\x2010\x20位','help-icon','Get\x20your\x20API\x20key\x20in\x20seconds','button','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','showConfigPanel','Click\x20to\x20configure\x20MCP','MCP:\x20Session\x20ID\x20Occupied','MCP:\x20Unauthorized','univer-bg-red-500','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','Click\x20to\x20connect\x20MCP','univer-text-sm\x20univer-font-medium','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','univer-text-blue-600\x20univer-bg-blue-50\x20univer-border-blue-200','0\x200\x2016\x2016','mcpStatus.networkError','entries','21srnGpp','univer-max-w-full\x20univer-rounded\x20univer-border\x20univer-bg-white\x20univer-p-3','987200oYBsAc','MCP\x20Connection\x20Failed','univer-text-gray-400','mcpConfig.connectionStatus.connected','1em','Connection\x20Failed','univer-text-gray-500','MCP\x20连接失败','_messageService','mcpConfig.connectionError.sessionOccupied','Invalid\x20configuration','register','univer-bg-green-500','symbol','showStatus','MCP\x20已连接','SESSION_ID_OCCUPIED','mcpConfig.title','check-mark-icon','mcpConfig.apiKey','random','getConfig','OnLineIcon','_dialogService','univer-min-w-0\x20univer-flex-1','univer-flex-1\x20univer-overflow-auto\x20univer-px-6\x20univer-py-5','mcpConfig.sessionIdDescription','_connectionController','_validateConfig','What\x20is\x20API\x20Key?','API\x20Key','M3.71274\x202.86421C3.47843\x202.6299\x203.09853\x202.6299\x202.86421\x202.86421C2.6299\x203.09853\x202.6299\x203.47843\x202.86421\x203.71274L7.15154\x208.00007L2.86421\x2012.2874C2.6299\x2012.5217\x202.6299\x2012.9016\x202.86421\x2013.1359C3.09853\x2013.3702\x203.47843\x2013.3702\x203.71274\x2013.1359L8.00007\x208.84859L12.2874\x2013.1359C12.5217\x2013.3702\x2012.9016\x2013.3702\x2013.1359\x2013.1359C13.3702\x2012.9016\x2013.3702\x2012.5217\x2013.1359\x2012.2874L8.84859\x208.00007L13.1359\x203.71274C13.3702\x203.47843\x2013.3702\x203.09853\x2013.1359\x202.86421C12.9016\x202.6299\x2012.5217\x202.6299\x2012.2874\x202.86421L8.00007\x207.15154L3.71274\x202.86421Z','tag','MCP\x20Connecting...','28500fpjwYA','univer-text-blue-600','currentColor','102KUMryU','HEADER_MENU','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','connectionStatus$','_loading$','COMMAND','会话\x20ID\x20已被占用,请稍后再试','mcpConfig.connectionStatus.connecting','MCP:\x20超出最大重试次数','_initStatusComponent','Connecting...','toString','univer-flex\x20univer-flex-wrap\x20univer-gap-2','MCP\x20Disconnected','apiKey','已连接','_mcpCoreConfig$','点击配置\x20MCP','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','_config','univer-flex\x20univer-size-8\x20univer-items-center\x20univer-justify-center\x20univer-rounded-lg\x20univer-bg-blue-500','setItem','children','use','univer-mb-3\x20univer-text-xs\x20univer-text-gray-600','value','NONE','mcpConfig.saving','_mcpConnectionController','CONNECTING','univer-text-sm\x20univer-text-gray-500','mcpConfig.note1','API\x20密钥用于连接\x20Univer\x20MCP\x20服务器,让您可以使用\x20AI\x20来操作电子表格。请前往控制台获取您的专属密钥。','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700','Session\x20ID','UniverIcon','Authorization:','最大重试次数','subscribeConfigValue$','mcpConfig.connectionError.networkError','idSuffix','univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-4','xlink:href','132712jEmbDA','您的\x20API\x20密钥安全存储在本地存储中','_initializeMenus','点击连接\x20MCP','重启您的\x20MCP\x20客户端以使配置生效','mcpConfig.apiKeyPlaceholder','https://console.univer.ai','<API_KEY>','mcpConfig.apiApplyInfo.univerAiLabel','CheckMarkIcon','2vTihLg','length','map','Enable\x20Authentication','univer-size-2\x20univer-rounded-full','span','_config$','univer-space-y-1\x20univer-text-xs\x20univer-text-gray-600','CONNECTED','univer-text-white','MenuIcon','off-line-icon','复制以下\x20JSON\x20配置','univer-space-y-2','6124lonRhx','MCP\x20Configuration','mask','http','show','权限验证失败,请检查您的\x20API\x20密钥','_initConfigSync','MAX_RETRIES_EXCEEDED','none','error','mcpConfig.connectionStatus.failed','mcp.apiKey','MCP\x20Retrying...','mcpStatus.disconnected','url(#$1','univer-text-green-600\x20univer-bg-green-50\x20univer-border-green-200','mcpConfig.configStepTitle','add','close-icon','mcpConfig.connectionError.unauthorized','配置参数:','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','label','M14.1544\x203.75557C14.3887\x203.98988\x2014.3887\x204.36978\x2014.1544\x204.6041L6.51409\x2012.2444C6.40157\x2012.3569\x206.24896\x2012.4201\x206.08983\x2012.4201C5.9307\x2012.4201\x205.77808\x2012.3569\x205.66556\x2012.2444L1.84541\x208.42425C1.6111\x208.18993\x201.6111\x207.81003\x201.84541\x207.57572C2.07973\x207.34141\x202.45963\x207.34141\x202.69394\x207.57572L6.08983\x2010.9716L13.3059\x203.75557C13.5402\x203.52126\x2013.9201\x203.52126\x2014.1544\x203.75557Z','univer-text-xs\x20univer-font-medium\x20univer-text-gray-700','univer.ai','isValid','Univer\x20AI\x20控制台','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','univer-bg-blue-500','path','配置步骤:','配置保存失败','univer-mt-1.5\x20univer-size-2\x20univer-shrink-0\x20univer-rounded-full\x20univer-bg-blue-500','Retrying...','Save\x20Configuration','getOwnPropertyDescriptor','subscribe','RETRYING','close','NETWORK_ERROR','univer.plus','colorChannel1','div','mcpConfig.configStep3','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-rounded-lg\x20univer-border\x20univer-px-3\x20univer-py-2','on-line-icon_clip0_910_349','Enter\x20your\x20API\x20key','_createConfigPanelComponent','0\x200\x2017\x2016','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','mcpStatus.unauthorized','_localStorageService','Bearer\x20','univer-text-red-600\x20univer-bg-red-50\x20univer-border-red-200','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','mcpStatus.clickToConfigure','带有\x20Bearer\x20前缀的\x20API\x20密钥。','MCP:\x20未授权','会话ID','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','defs','配置更改将立即生效','请输入您的\x20API\x20密钥','唯一会话标识符。如果您打开了多个\x20Univer\x20实例,每个实例必须使用不同的\x20session_id\x20以避免连接冲突。','includes','HelpIcon','enableAutoConnect','evenodd','univer-text-xs\x20univer-text-gray-500','mcpConfig.authorizationDescription','stringify','registerComponent','__setCustomHeaders','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','UNAUTHORIZED','\x20-\x20','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','38346uGIpxi','bottom','round','mcpConfig.configStep1','onStarting','Univer\x20AI\x20Console','\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','warn','mcpConfig.configSaved','defineProperty','[MCPConfigUI]\x20Failed\x20to\x20save\x20configuration:','Enable\x20authentication\x20for\x20secure\x20connections','string','trim','mcpConfig.connectionStatus.disconnected','mcpStatus.unknown','mcpConfig.description','_configService','attrs','1082133bQUkkI','Failed\x20to\x20save\x20configuration','DISCONNECTED','univer-flex\x20univer-size-10\x20univer-shrink-0\x20univer-items-center\x20univer-justify-center\x20univer-rounded-full\x20univer-bg-blue-100','mcpConfig.validation.apiKeyTooShort','M0\x200H16V16H0z','fill','get','MCP:\x20网络错误','univer-text-xs\x20univer-font-medium\x20univer-text-gray-600','_localeService','showDeveloperTools','MCP\x20已断开','univer-space-y-4','171146mpdKib','univer-text-green-500','https://mcp.univer.ai/mcp/?univer_session_id=','univer-mb-2\x20univer-text-sm\x20univer-font-semibold\x20univer-text-gray-800','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','mcpConfig.configInstructions','assign','univer-space-y-1\x20univer-text-xs\x20univer-text-blue-700','forEach','open','svg','mcpConfig.apiApplyInfo.getStarted','_logService','API\x20key\x20with\x20Bearer\x20prefix.','_blank','validateApiKey'];_0x53df=function(){return _0x4cf681;};return _0x53df();}let O=class extends _0x597623{constructor(_0x5378ff,_0x89d2af,_0x54999d,_0x2a949a){const _0x43bdc3=_0x4d1dd5;super(),this[_0x43bdc3(0x2fb)]=_0x5378ff,this[_0x43bdc3(0x215)]=_0x89d2af,this['_uiPartsService']=_0x54999d,this[_0x43bdc3(0x2c1)]=_0x2a949a,this['_initAutoConnect'](),this[_0x43bdc3(0x228)]();}['_initAutoConnect'](){const _0x414383=_0x4d1dd5,_0x45e63e=this['_configService'][_0x414383(0x20f)](y);_0x45e63e!=null&&_0x45e63e[_0x414383(0x2ce)]&&(this[_0x414383(0x215)][_0x414383(0x2a5)]=!0x1);}[_0x4d1dd5(0x228)](){const _0x43b773=_0x4d1dd5,_0xa6827b=this[_0x43b773(0x2c1)][_0x43b773(0x20f)](y);(_0xa6827b==null?void 0x0:_0xa6827b[_0x43b773(0x208)])!==!0x1&&this[_0x43b773(0x2f0)](this[_0x43b773(0x1d1)][_0x43b773(0x2aa)](_0x36e436[_0x43b773(0x220)],()=>{const _0x35bb4b=_0x43b773;var _0x5ae22d;return _0x3ef36b(un({'status$':this[_0x35bb4b(0x215)][_0x35bb4b(0x222)],'error$':this[_0x35bb4b(0x215)][_0x35bb4b(0x2fe)],'onConfigure':()=>this['_handleConfigure'](),'showClickable':(_0x5ae22d=_0xa6827b==null?void 0x0:_0xa6827b[_0x35bb4b(0x2ce)])!=null?_0x5ae22d:!0x1}),this[_0x35bb4b(0x2fb)]);}));}[_0x4d1dd5(0x1bc)](){const _0x450d63=_0x4d1dd5;this['_injector'][_0x450d63(0x2ca)](I)[_0x450d63(0x1ea)]();}};O=ln([M(0x0,_0x34e389(_0x54f8e1)),M(0x1,_0x34e389(_0x267a9e)),M(0x2,_0x5a2e5c),M(0x3,_0x23775e)],O);function un(_0x2920e7){const {status$:_0x478d95,error$:_0x912189,onConfigure:_0x27763a,showClickable:_0x3c5841}=_0x2920e7;return function(){return _0x3769df(cn,{'status$':_0x478d95,'error$':_0x912189,'onConfigure':_0x27763a,'showClickable':_0x3c5841});};}function vn(_0x40d320){const _0x24ad98=_0x4d1dd5;return{'id':V['id'],'type':_0x5b6cd8[_0x24ad98(0x1b6)],'icon':_0x24ad98(0x25e),'title':_0x24ad98(0x20b),'tooltip':_0x24ad98(0x20b)};}const dn={[_0x246484['OTHERS']]:{[V['id']]:{'order':0xa,'menuItemFactory':vn}}};var gn=Object[_0x4d1dd5(0x286)],pn=(_0x2aafff,_0x486d65,_0x1bd55b,_0x3b2a38)=>{const _0x51fc13=_0x4d1dd5;for(var _0x41cb73=_0x3b2a38>0x1?void 0x0:_0x3b2a38?gn(_0x486d65,_0x1bd55b):_0x486d65,_0x4ddea8=_0x2aafff[_0x51fc13(0x255)]-0x1,_0x749e7f;_0x4ddea8>=0x0;_0x4ddea8--)(_0x749e7f=_0x2aafff[_0x4ddea8])&&(_0x41cb73=_0x749e7f(_0x41cb73)||_0x41cb73);return _0x41cb73;},re=(_0x60a77a,_0x7323da)=>(_0x5df267,_0x1b41eb)=>_0x7323da(_0x5df267,_0x1b41eb,_0x60a77a);let D=class extends _0x597623{constructor(_0x3976c5,_0x481717){const _0x52efb3=_0x4d1dd5;super(),this['_commandService']=_0x3976c5,this[_0x52efb3(0x1ab)]=_0x481717,this[_0x52efb3(0x1b0)](),this[_0x52efb3(0x24c)]();}[_0x4d1dd5(0x1b0)](){const _0x11b76c=_0x4d1dd5;[V][_0x11b76c(0x2d9)](_0xbf8ca4=>{const _0x518c45=_0x11b76c;this[_0x518c45(0x2f0)](this[_0x518c45(0x2fc)][_0x518c45(0x1bb)](_0xbf8ca4));});}[_0x4d1dd5(0x24c)](){const _0x575573=_0x4d1dd5;this[_0x575573(0x1ab)]['mergeMenu'](dn);}};D=pn([re(0x0,_0x398280),re(0x1,_0x3b3a79)],D);const Mn={'mcpStatus':{'disconnected':_0x4d1dd5(0x22c),'connecting':_0x4d1dd5(0x21b),'connected':_0x4d1dd5(0x1b1),'failed':_0x4d1dd5(0x1fb),'retrying':_0x4d1dd5(0x26e),'unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x4d1dd5(0x1ed),'sessionOccupied':_0x4d1dd5(0x1ec),'networkError':'MCP:\x20Network\x20Error','maxRetriesExceeded':_0x4d1dd5(0x1c8),'clickToConnect':_0x4d1dd5(0x1f0),'clickToConfigure':_0x4d1dd5(0x1eb)},'mcpConfig':{'title':_0x4d1dd5(0x263),'description':_0x4d1dd5(0x27e),'apiKey':_0x4d1dd5(0x218),'apiKeyPlaceholder':_0x4d1dd5(0x291),'apiKeyHint':_0x4d1dd5(0x1e9),'enableAuth':_0x4d1dd5(0x257),'enableAuthHint':_0x4d1dd5(0x2bb),'connectionInfo':_0x4d1dd5(0x2f6),'mcpClientConfig':_0x4d1dd5(0x2f6),'configInstructions':_0x4d1dd5(0x1f3),'configStepTitle':_0x4d1dd5(0x1dd),'configStep1':_0x4d1dd5(0x1cd),'configStep2':_0x4d1dd5(0x1f2),'configStep3':_0x4d1dd5(0x2ee),'sessionId':_0x4d1dd5(0x241),'sessionIdDescription':_0x4d1dd5(0x2af),'authorizationDescription':_0x4d1dd5(0x2de),'configParameters':'Configuration\x20Parameters:','maxRetries':'Max\x20Retries','save':_0x4d1dd5(0x285),'saving':_0x4d1dd5(0x2e5),'note1':_0x4d1dd5(0x231),'note2':_0x4d1dd5(0x1da),'configSaved':_0x4d1dd5(0x1d5),'configError':_0x4d1dd5(0x2c4),'apiApplyInfo':{'title':_0x4d1dd5(0x217),'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':_0x4d1dd5(0x2b5),'getStarted':_0x4d1dd5(0x1e7)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x4d1dd5(0x2f4),'invalidConfig':_0x4d1dd5(0x204),'invalidApiKey':_0x4d1dd5(0x1d8)},'connectionStatus':{'disconnected':_0x4d1dd5(0x1d7),'connecting':_0x4d1dd5(0x229),'connected':_0x4d1dd5(0x1b4),'failed':_0x4d1dd5(0x1ff),'retrying':_0x4d1dd5(0x284)},'connectionError':{'unauthorized':_0x4d1dd5(0x2f8),'sessionOccupied':'Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','networkError':_0x4d1dd5(0x1df),'maxRetriesExceeded':_0x4d1dd5(0x277)}}},An={'mcpStatus':{'disconnected':_0x4d1dd5(0x2cf),'connecting':_0x4d1dd5(0x1d4),'connected':_0x4d1dd5(0x209),'failed':_0x4d1dd5(0x201),'retrying':'MCP\x20重连中...','unknown':_0x4d1dd5(0x1b2),'unauthorized':_0x4d1dd5(0x29c),'sessionOccupied':_0x4d1dd5(0x1bd),'networkError':_0x4d1dd5(0x2cb),'maxRetriesExceeded':_0x4d1dd5(0x227),'clickToConnect':_0x4d1dd5(0x24d),'clickToConfigure':_0x4d1dd5(0x230)},'mcpConfig':{'title':'MCP\x20配置','description':'配置\x20MCP\x20使用\x20AI\x20操作电子表格','apiKey':'API\x20密钥','apiKeyPlaceholder':_0x4d1dd5(0x2a1),'apiKeyHint':'您的\x20API\x20密钥将在此浏览器中本地存储','enableAuth':'启用身份验证','enableAuthHint':'启用身份验证以获得安全连接','connectionInfo':_0x4d1dd5(0x2ec),'mcpClientConfig':_0x4d1dd5(0x2ec),'configInstructions':'将以下配置添加到您的\x20MCP\x20客户端设置中:','configStepTitle':_0x4d1dd5(0x281),'configStep1':_0x4d1dd5(0x260),'configStep2':'将配置添加到您的\x20MCP\x20客户端设置文件中','configStep3':_0x4d1dd5(0x24e),'sessionId':_0x4d1dd5(0x29d),'sessionIdDescription':_0x4d1dd5(0x2a2),'authorizationDescription':_0x4d1dd5(0x29b),'configParameters':_0x4d1dd5(0x276),'maxRetries':_0x4d1dd5(0x244),'save':'保存配置','saving':_0x4d1dd5(0x2e2),'note1':_0x4d1dd5(0x2a0),'note2':_0x4d1dd5(0x24b),'configSaved':'配置保存成功','configError':_0x4d1dd5(0x282),'apiApplyInfo':{'title':_0x4d1dd5(0x1cf),'description':_0x4d1dd5(0x23f),'univerAiLabel':_0x4d1dd5(0x27d),'getStarted':'几秒钟内获取您的\x20API\x20密钥'},'validation':{'apiKeyRequired':'API\x20密钥不能为空','apiKeyTooShort':_0x4d1dd5(0x1e5),'invalidConfig':'配置无效','invalidApiKey':_0x4d1dd5(0x1e0)},'connectionStatus':{'disconnected':_0x4d1dd5(0x1c0),'connecting':_0x4d1dd5(0x2ed),'connected':_0x4d1dd5(0x22e),'failed':_0x4d1dd5(0x2f3),'retrying':'重连中...'},'connectionError':{'unauthorized':_0x4d1dd5(0x267),'sessionOccupied':_0x4d1dd5(0x225),'networkError':'网络连接错误,请检查您的网络连接','maxRetriesExceeded':'超出最大重试次数,请稍后再试'}}};var fn=Object[_0x4d1dd5(0x2b9)],hn=Object[_0x4d1dd5(0x286)],Cn=(_0x15db22,_0x4538b4,_0x4f5026)=>_0x4538b4 in _0x15db22?fn(_0x15db22,_0x4538b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4f5026}):_0x15db22[_0x4538b4]=_0x4f5026,mn=(_0x5cca55,_0x36f2f9,_0x3c8dc8,_0x2be957)=>{const _0x1f7463=_0x4d1dd5;for(var _0x12c0f0=_0x2be957>0x1?void 0x0:_0x2be957?hn(_0x36f2f9,_0x3c8dc8):_0x36f2f9,_0x1f4e48=_0x5cca55[_0x1f7463(0x255)]-0x1,_0x32340d;_0x1f4e48>=0x0;_0x1f4e48--)(_0x32340d=_0x5cca55[_0x1f4e48])&&(_0x12c0f0=_0x32340d(_0x12c0f0)||_0x12c0f0);return _0x12c0f0;},P=(_0x5e8edb,_0xdac9e5)=>(_0x29453d,_0x3a4d59)=>_0xdac9e5(_0x29453d,_0x3a4d59,_0x5e8edb),_n=(_0x3fa839,_0x14916b,_0x33d75a)=>Cn(_0x3fa839,_0x14916b+'',_0x33d75a);let j=class extends _0x300405{constructor(_0x481092=ie,_0x9b4cd5,_0x50bd7d,_0x6871b9,_0x300ad1,_0x2c59ad){const _0xf86bb3=_0x4d1dd5;super(),this['_config']=_0x481092,this['_injector']=_0x9b4cd5,this['_configService']=_0x50bd7d,this[_0xf86bb3(0x1d1)]=_0x6871b9,this[_0xf86bb3(0x296)]=_0x300ad1,this['_localeService']=_0x2c59ad;const {..._0x584471}=_0x7e5e4c({},ie,this[_0xf86bb3(0x232)]);this['_configService']['setConfig'](y,_0x584471);}async[_0x4d1dd5(0x2b4)](){const _0x48116e=_0x4d1dd5,_0x454b8c=[[O],[I],[D]];this[_0x48116e(0x2fb)]['has'](_0x43eddd)||_0x454b8c[_0x48116e(0x2fd)]([_0x43eddd,{'useClass':_0x3f40b3}]),_0x454b8c['forEach'](_0x438f3f=>this[_0x48116e(0x2fb)][_0x48116e(0x273)](_0x438f3f)),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](O),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](I),this[_0x48116e(0x2fb)][_0x48116e(0x2ca)](D);}};_n(j,_0x4d1dd5(0x1d6),'MCP_UI_PLUGIN'),j=mn([_0x249ad5(_0x51a3dd),P(0x1,_0x34e389(_0x54f8e1)),P(0x2,_0x23775e),P(0x3,_0x5a2e5c),P(0x4,_0x1ee390),P(0x5,_0x34e389(_0x408b12))],j);export{nn as MCPConfigPanel,I as MCPConfigUIController,O as MCPConnectionUIController,cn as MCPStatusDisplay,D as MCPUIMenuController,V as OpenMCPConfigPanelCommand,j as UniverMCPUIPlugin,Mn as enUS,An as zhCN};
@@ -1 +1 @@
1
- const _0x5e8644=_0x55eb;function _0xb04a(){const _0x21c1af=['MCP\x20Connected','MCP\x20Client\x20Configuration','MCP:\x20Network\x20Error','MCP\x20Unknown\x20Status','Configuration\x20Parameters:','Configuration\x20saved\x20successfully','1493764fXRbtS','5206728bDdiEb','Enable\x20Authentication','Max\x20Retries','8919810xIWpRQ','44tXdtQU','What\x20is\x20API\x20Key?','Copy\x20the\x20JSON\x20configuration\x20below','Save\x20Configuration','Configuration\x20Steps:','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','9345285kmZEmM','48tWFTpI','Click\x20to\x20configure\x20MCP','Connected','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','MCP\x20Retrying...','5wcSFhc','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Session\x20ID','6uuaVuU','Enter\x20your\x20API\x20key','API\x20Key','Failed\x20to\x20save\x20configuration','Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','MCP:\x20Max\x20Retries\x20Exceeded','618548vtoLfk','MCP:\x20Session\x20ID\x20Occupied','4947552yjHlKb','Invalid\x20configuration','Connecting...','Retrying...','MCP\x20Disconnected','MCP\x20Connecting...','544848yfFFea','MCP\x20Configuration','API\x20key\x20with\x20Bearer\x20prefix.','MCP:\x20Unauthorized','Disconnected','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','API\x20key\x20is\x20required','Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Univer\x20AI\x20Console'];_0xb04a=function(){return _0x21c1af;};return _0xb04a();}function _0x55eb(_0xd4a071,_0x3eb9d9){const _0xb04ae1=_0xb04a();return _0x55eb=function(_0x55eb64,_0x1733f4){_0x55eb64=_0x55eb64-0xaa;let _0x269d55=_0xb04ae1[_0x55eb64];return _0x269d55;},_0x55eb(_0xd4a071,_0x3eb9d9);}(function(_0x3c9f16,_0x45dd07){const _0x128aea=_0x55eb,_0x1d8396=_0x3c9f16();while(!![]){try{const _0x5626e4=-parseInt(_0x128aea(0xba))/0x1*(parseInt(_0x128aea(0xac))/0x2)+-parseInt(_0x128aea(0xcb))/0x3+-parseInt(_0x128aea(0xca))/0x4*(parseInt(_0x128aea(0xdb))/0x5)+-parseInt(_0x128aea(0xd6))/0x6*(-parseInt(_0x128aea(0xb2))/0x7)+-parseInt(_0x128aea(0xb4))/0x8+parseInt(_0x128aea(0xd5))/0x9+parseInt(_0x128aea(0xce))/0xa*(parseInt(_0x128aea(0xcf))/0xb);if(_0x5626e4===_0x45dd07)break;else _0x1d8396['push'](_0x1d8396['shift']());}catch(_0x3133c6){_0x1d8396['push'](_0x1d8396['shift']());}}}(_0xb04a,0xe839c));const e={'mcpStatus':{'disconnected':_0x5e8644(0xb8),'connecting':_0x5e8644(0xb9),'connected':_0x5e8644(0xc4),'failed':'MCP\x20Connection\x20Failed','retrying':_0x5e8644(0xda),'unknown':_0x5e8644(0xc7),'unauthorized':_0x5e8644(0xbd),'sessionOccupied':_0x5e8644(0xb3),'networkError':_0x5e8644(0xc6),'maxRetriesExceeded':_0x5e8644(0xb1),'clickToConnect':'Click\x20to\x20connect\x20MCP','clickToConfigure':_0x5e8644(0xd7)},'mcpConfig':{'title':_0x5e8644(0xbb),'description':_0x5e8644(0xc0),'apiKey':_0x5e8644(0xae),'apiKeyPlaceholder':_0x5e8644(0xad),'apiKeyHint':_0x5e8644(0xd4),'enableAuth':_0x5e8644(0xcc),'enableAuthHint':'Enable\x20authentication\x20for\x20secure\x20connections','connectionInfo':_0x5e8644(0xc5),'mcpClientConfig':_0x5e8644(0xc5),'configInstructions':_0x5e8644(0xdc),'configStepTitle':_0x5e8644(0xd3),'configStep1':_0x5e8644(0xd1),'configStep2':_0x5e8644(0xc2),'configStep3':_0x5e8644(0xd9),'sessionId':_0x5e8644(0xab),'sessionIdDescription':'Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','authorizationDescription':_0x5e8644(0xbc),'configParameters':_0x5e8644(0xc8),'maxRetries':_0x5e8644(0xcd),'save':_0x5e8644(0xd2),'saving':'Saving...','note1':_0x5e8644(0xaa),'note2':'Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','configSaved':_0x5e8644(0xc9),'configError':_0x5e8644(0xaf),'apiApplyInfo':{'title':_0x5e8644(0xd0),'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':_0x5e8644(0xc3),'getStarted':'Get\x20your\x20API\x20key\x20in\x20seconds'},'validation':{'apiKeyRequired':_0x5e8644(0xc1),'apiKeyTooShort':'API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','invalidConfig':_0x5e8644(0xb5),'invalidApiKey':'Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct'},'connectionStatus':{'disconnected':_0x5e8644(0xbe),'connecting':_0x5e8644(0xb6),'connected':_0x5e8644(0xd8),'failed':'Connection\x20Failed','retrying':_0x5e8644(0xb7)},'connectionError':{'unauthorized':'Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','sessionOccupied':_0x5e8644(0xdd),'networkError':_0x5e8644(0xb0),'maxRetriesExceeded':_0x5e8644(0xbf)}}},n=e;export{n as default};
1
+ const _0x5bd502=_0x5eb1;function _0x5eb1(_0x200b18,_0xbe28a3){const _0x3391b8=_0x3391();return _0x5eb1=function(_0x5eb147,_0x16eeea){_0x5eb147=_0x5eb147-0x1a5;let _0x1569c4=_0x3391b8[_0x5eb147];return _0x1569c4;},_0x5eb1(_0x200b18,_0xbe28a3);}function _0x3391(){const _0x47e8d8=['Add\x20the\x20configuration\x20to\x20your\x20MCP\x20client\x20settings\x20file','Failed\x20to\x20save\x20configuration','MCP\x20Connecting...','Add\x20the\x20following\x20configuration\x20to\x20your\x20MCP\x20client\x20settings:','MCP:\x20Unauthorized','3434IOlsiu','Univer\x20AI\x20Console','6320816XJrbpc','926325yRaGxd','Copy\x20the\x20JSON\x20configuration\x20below','Your\x20API\x20key\x20is\x20stored\x20securely\x20in\x20local\x20storage','Unique\x20session\x20identifier.\x20If\x20you\x20have\x20multiple\x20Univer\x20instances\x20open,\x20each\x20instance\x20must\x20use\x20a\x20different\x20session_id\x20to\x20avoid\x20connection\x20conflicts.','1773676VbgQTi','Connecting...','Maximum\x20retry\x20attempts\x20exceeded.\x20Please\x20try\x20again\x20later','5303745UlvjRY','Retrying...','MCP\x20Connection\x20Failed','MCP\x20Client\x20Configuration','Get\x20your\x20API\x20key\x20in\x20seconds','Invalid\x20configuration','Click\x20to\x20connect\x20MCP','MCP\x20Configuration','Enable\x20Authentication','API\x20Key\x20connects\x20you\x20to\x20Univer\x20MCP\x20Server\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets.\x20Get\x20your\x20API\x20key\x20from\x20our\x20console\x20to\x20get\x20started.','Invalid\x20API\x20key,\x20please\x20check\x20if\x20the\x20key\x20is\x20correct','API\x20key\x20must\x20be\x20at\x20least\x2010\x20characters\x20long','Configuration\x20changes\x20will\x20take\x20effect\x20immediately','Restart\x20your\x20MCP\x20client\x20to\x20apply\x20the\x20configuration','7756650cjLIMU','MCP:\x20Network\x20Error','API\x20key\x20with\x20Bearer\x20prefix.','2742oxhIxd','MCP:\x20Max\x20Retries\x20Exceeded','Session-id\x20is\x20currently\x20occupied,\x20please\x20try\x20again\x20later','Configure\x20MCP\x20to\x20use\x20AI\x20for\x20operating\x20spreadsheets','Configuration\x20Parameters:','5929YqIrYi','MCP:\x20Session\x20ID\x20Occupied','Authorization\x20failed,\x20please\x20check\x20your\x20API\x20key','Configuration\x20Steps:','Disconnected','What\x20is\x20API\x20Key?','Your\x20API\x20key\x20will\x20be\x20stored\x20locally\x20in\x20this\x20browser','Enable\x20authentication\x20for\x20secure\x20connections','Enter\x20your\x20API\x20key','Connected','Configuration\x20saved\x20successfully','403hvwBzD'];_0x3391=function(){return _0x47e8d8;};return _0x3391();}(function(_0x4f9a58,_0x5050f7){const _0x117bbd=_0x5eb1,_0x445a82=_0x4f9a58();while(!![]){try{const _0x3b036a=-parseInt(_0x117bbd(0x1af))/0x1*(parseInt(_0x117bbd(0x1b5))/0x2)+-parseInt(_0x117bbd(0x1b8))/0x3+-parseInt(_0x117bbd(0x1bc))/0x4+parseInt(_0x117bbd(0x1bf))/0x5+-parseInt(_0x117bbd(0x1d0))/0x6*(parseInt(_0x117bbd(0x1d5))/0x7)+parseInt(_0x117bbd(0x1b7))/0x8+parseInt(_0x117bbd(0x1cd))/0x9;if(_0x3b036a===_0x5050f7)break;else _0x445a82['push'](_0x445a82['shift']());}catch(_0x23ecb5){_0x445a82['push'](_0x445a82['shift']());}}}(_0x3391,0xd7345));const e={'mcpStatus':{'disconnected':'MCP\x20Disconnected','connecting':_0x5bd502(0x1b2),'connected':'MCP\x20Connected','failed':_0x5bd502(0x1c1),'retrying':'MCP\x20Retrying...','unknown':'MCP\x20Unknown\x20Status','unauthorized':_0x5bd502(0x1b4),'sessionOccupied':_0x5bd502(0x1a5),'networkError':_0x5bd502(0x1ce),'maxRetriesExceeded':_0x5bd502(0x1d1),'clickToConnect':_0x5bd502(0x1c5),'clickToConfigure':'Click\x20to\x20configure\x20MCP'},'mcpConfig':{'title':_0x5bd502(0x1c6),'description':_0x5bd502(0x1d3),'apiKey':'API\x20Key','apiKeyPlaceholder':_0x5bd502(0x1ac),'apiKeyHint':_0x5bd502(0x1aa),'enableAuth':_0x5bd502(0x1c7),'enableAuthHint':_0x5bd502(0x1ab),'connectionInfo':_0x5bd502(0x1c2),'mcpClientConfig':'MCP\x20Client\x20Configuration','configInstructions':_0x5bd502(0x1b3),'configStepTitle':_0x5bd502(0x1a7),'configStep1':_0x5bd502(0x1b9),'configStep2':_0x5bd502(0x1b0),'configStep3':_0x5bd502(0x1cc),'sessionId':'Session\x20ID','sessionIdDescription':_0x5bd502(0x1bb),'authorizationDescription':_0x5bd502(0x1cf),'configParameters':_0x5bd502(0x1d4),'maxRetries':'Max\x20Retries','save':'Save\x20Configuration','saving':'Saving...','note1':_0x5bd502(0x1cb),'note2':_0x5bd502(0x1ba),'configSaved':_0x5bd502(0x1ae),'configError':_0x5bd502(0x1b1),'apiApplyInfo':{'title':_0x5bd502(0x1a9),'description':_0x5bd502(0x1c8),'univerAiLabel':_0x5bd502(0x1b6),'getStarted':_0x5bd502(0x1c3)},'validation':{'apiKeyRequired':'API\x20key\x20is\x20required','apiKeyTooShort':_0x5bd502(0x1ca),'invalidConfig':_0x5bd502(0x1c4),'invalidApiKey':_0x5bd502(0x1c9)},'connectionStatus':{'disconnected':_0x5bd502(0x1a8),'connecting':_0x5bd502(0x1bd),'connected':_0x5bd502(0x1ad),'failed':'Connection\x20Failed','retrying':_0x5bd502(0x1c0)},'connectionError':{'unauthorized':_0x5bd502(0x1a6),'sessionOccupied':_0x5bd502(0x1d2),'networkError':'Network\x20connection\x20error.\x20Please\x20check\x20your\x20internet\x20connection','maxRetriesExceeded':_0x5bd502(0x1be)}}},n=e;export{n as default};