@ckeditor/ckeditor5-ai 47.4.0-alpha.2 → 47.4.0-alpha.3

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 (71) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiassistant/aiassistantediting.js +1 -1
  6. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  7. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  8. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  9. package/src/aiassistant/ui/form/aiformview.js +1 -1
  10. package/src/aiballoon/aiballoon.js +1 -1
  11. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  12. package/src/aiballoon/ui/aiballoonview.js +1 -1
  13. package/src/aichat/aichat.js +1 -1
  14. package/src/aichat/aichatcontroller.js +1 -1
  15. package/src/aichat/aichatui.js +1 -1
  16. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  17. package/src/aichat/ui/aichatfeedview.js +1 -1
  18. package/src/aichat/ui/aichatview.js +1 -1
  19. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  20. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  21. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  22. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  23. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  24. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  25. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  26. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  27. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  28. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  29. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  30. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  31. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  32. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  33. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  34. package/src/aichathistory/aichathistory.js +1 -1
  35. package/src/aichathistory/aichathistorycontroller.js +1 -1
  36. package/src/aichathistory/aichathistoryui.js +1 -1
  37. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  38. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  39. package/src/aicore/aiconnector.js +1 -1
  40. package/src/aicore/aiediting.js +1 -1
  41. package/src/aicore/model/aireply.js +1 -1
  42. package/src/aicore/ui/aidisclaimerview.js +1 -1
  43. package/src/aicore/ui/aiskeleton.js +1 -1
  44. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  45. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  46. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  47. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  48. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  49. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  50. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  51. package/src/aiquickactions/aiquickactionsui.js +1 -1
  52. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  53. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  54. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  55. package/src/aireviewmode/aireviewmode.js +1 -1
  56. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  57. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  58. package/src/aireviewmode/aireviewmodeui.js +1 -1
  59. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  60. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  61. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  62. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  63. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  64. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  65. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  66. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  67. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  68. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  69. package/src/aitabs/aitabs.js +1 -1
  70. package/src/aitabs/tabs/aitabsview.js +1 -1
  71. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2533(_0x58d883,_0x10cbb8){const _0x258a26=_0x258a();return _0x2533=function(_0x2533a3,_0xc6d9a6){_0x2533a3=_0x2533a3-0x181;let _0x3721bb=_0x258a26[_0x2533a3];return _0x3721bb;},_0x2533(_0x58d883,_0x10cbb8);}const _0x56e554=_0x2533;(function(_0x66ed8d,_0x1d9063){const _0x157b17=_0x2533,_0x307b80=_0x66ed8d();while(!![]){try{const _0x3ccbf9=parseInt(_0x157b17(0x185))/0x1+-parseInt(_0x157b17(0x194))/0x2+-parseInt(_0x157b17(0x1a1))/0x3*(parseInt(_0x157b17(0x192))/0x4)+parseInt(_0x157b17(0x19c))/0x5*(parseInt(_0x157b17(0x18d))/0x6)+-parseInt(_0x157b17(0x1ae))/0x7*(-parseInt(_0x157b17(0x188))/0x8)+-parseInt(_0x157b17(0x18c))/0x9*(parseInt(_0x157b17(0x199))/0xa)+parseInt(_0x157b17(0x19b))/0xb;if(_0x3ccbf9===_0x1d9063)break;else _0x307b80['push'](_0x307b80['shift']());}catch(_0x5dcdb3){_0x307b80['push'](_0x307b80['shift']());}}}(_0x258a,0x8f4e6));import{ContextPlugin as _0x38415c}from'ckeditor5/src/core.js';function _0x258a(){const _0x9e41bd=['setConversationPinned','updateItems','AIChatHistoryUI','requires','errorMessage','467026DyMDxk','editConversationTitle','view','delegate','isPremiumPlugin','isMaximized','347374vSGiVm','pluginName','isLoading','40RyNUkv','removeConversation','showConversationHistory','AITabs','1788282uedYud','12cDiDvc','locale','get','updateItemTitle','removeHistoryItem','16ZzhnJW','history','2021636hLsWBA','showError','_historyView','isOfficialPlugin','setLoadingSkeleton','10VmjEHW','hideError','10392404oyQiNk','2740935NhQMJA','selectConversation','updateHistoryItemsWithCategories','showResizeButton','openChat','694203zuBfzz','plugins','addTab','resizeTabs','updateItemLoadingState','AI_CHAT_HISTORY_HEADING','context','setIsMaximized'];_0x258a=function(){return _0x9e41bd;};return _0x258a();}import{AITabs as _0xfab1c}from'../aitabs/aitabs.js';import{IconAIHistory as _0x3db7dc}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x24a59e}from'./ui/aichathistoryview.js';import{getTranslation as _0x28eb5a}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x56e554(0x18a),_0x56e554(0x189),_0x56e554(0x1af),_0x56e554(0x1a9),_0x56e554(0x19d),_0x56e554(0x1a0),_0x56e554(0x1a4)];export class AIChatHistoryUI extends _0x38415c{static get[_0x56e554(0x1ac)](){return[_0xfab1c];}[_0x56e554(0x196)];static get[_0x56e554(0x186)](){const _0x69a58d=_0x56e554;return _0x69a58d(0x1ab);}static get[_0x56e554(0x197)](){return!0x0;}static get[_0x56e554(0x183)](){return!0x0;}constructor(_0x3e7ecb){const _0x5f4c88=_0x56e554;super(_0x3e7ecb);const _0x4b8343=this[_0x5f4c88(0x1a7)][_0x5f4c88(0x1a2)][_0x5f4c88(0x18f)](_0x5f4c88(0x18b));this[_0x5f4c88(0x196)]=new _0x24a59e(this[_0x5f4c88(0x1a7)][_0x5f4c88(0x18e)],_0x4b8343[_0x5f4c88(0x19f)]),this[_0x5f4c88(0x196)][_0x5f4c88(0x182)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4b8343[_0x5f4c88(0x181)][_0x5f4c88(0x1a3)]({'id':_0x5f4c88(0x193),'buttonLabel':_0x28eb5a(this[_0x5f4c88(0x1a7)][_0x5f4c88(0x18e)],_0x5f4c88(0x1a6)),'buttonIcon':_0x3db7dc,'order':0x0,'content':this[_0x5f4c88(0x196)]});}[_0x56e554(0x191)](_0x399973){const _0x590149=_0x56e554;this[_0x590149(0x196)][_0x590149(0x191)](_0x399973);}[_0x56e554(0x1aa)](_0x4e621a){const _0x1e6caa=_0x56e554;this[_0x1e6caa(0x196)][_0x1e6caa(0x19e)](_0x4e621a);}[_0x56e554(0x190)](_0x286035,_0x541d67){const _0x5357b0=_0x56e554;this[_0x5357b0(0x196)][_0x5357b0(0x190)](_0x286035,_0x541d67);}[_0x56e554(0x1a5)](_0x1ca475,_0x11c524,_0x17acfb){const _0x3ea167=_0x56e554;this[_0x3ea167(0x196)][_0x3ea167(0x1a5)](_0x1ca475,_0x11c524,_0x17acfb);}[_0x56e554(0x198)](_0xfa70a2){const _0x6ddba4=_0x56e554;this[_0x6ddba4(0x196)][_0x6ddba4(0x187)]=_0xfa70a2;}[_0x56e554(0x195)](_0x4d04b5){const _0x277870=_0x56e554;this[_0x277870(0x196)][_0x277870(0x1ad)]=_0x4d04b5;}[_0x56e554(0x19a)](){const _0x281f66=_0x56e554;this[_0x281f66(0x196)][_0x281f66(0x1ad)]='';}[_0x56e554(0x1a8)](_0x4554fa){const _0x5dcd8a=_0x56e554;this[_0x5dcd8a(0x196)][_0x5dcd8a(0x184)]=_0x4554fa;}}
23
+ function _0x79a0(_0x32e0cf,_0x1556c5){const _0x4ce1c9=_0x4ce1();return _0x79a0=function(_0x79a067,_0x19e143){_0x79a067=_0x79a067-0x1b5;let _0x50a6cf=_0x4ce1c9[_0x79a067];return _0x50a6cf;},_0x79a0(_0x32e0cf,_0x1556c5);}const _0x541b74=_0x79a0;function _0x4ce1(){const _0x2499c6=['setIsMaximized','isMaximized','hideError','3583020bhmUCf','locale','plugins','showResizeButton','pluginName','isLoading','history','openChat','editConversationTitle','279dFkPUR','setConversationPinned','context','173420NiFYGr','showConversationHistory','345360PJqLsR','updateItems','get','updateItemLoadingState','errorMessage','7984696nYqtRr','updateHistoryItemsWithCategories','removeConversation','updateItemTitle','AITabs','_historyView','isOfficialPlugin','5946KrlUPG','20841vVJcjZ','106549SYxSKA','requires','addTab','delegate','AI_CHAT_HISTORY_HEADING','setLoadingSkeleton','82eYqhaf','1253rtKmht','view','isPremiumPlugin','removeHistoryItem','showError','selectConversation','AIChatHistoryUI','resizeTabs'];_0x4ce1=function(){return _0x2499c6;};return _0x4ce1();}(function(_0x4ee465,_0x2473a2){const _0xb36ae9=_0x79a0,_0x1a6768=_0x4ee465();while(!![]){try{const _0x56d2f1=-parseInt(_0xb36ae9(0x1da))/0x1+-parseInt(_0xb36ae9(0x1e0))/0x2*(-parseInt(_0xb36ae9(0x1d9))/0x3)+parseInt(_0xb36ae9(0x1be))/0x4+parseInt(_0xb36ae9(0x1cc))/0x5+-parseInt(_0xb36ae9(0x1d8))/0x6*(parseInt(_0xb36ae9(0x1e1))/0x7)+-parseInt(_0xb36ae9(0x1d1))/0x8+-parseInt(_0xb36ae9(0x1c7))/0x9*(-parseInt(_0xb36ae9(0x1ca))/0xa);if(_0x56d2f1===_0x2473a2)break;else _0x1a6768['push'](_0x1a6768['shift']());}catch(_0x4402cb){_0x1a6768['push'](_0x1a6768['shift']());}}}(_0x4ce1,0x7b58f));import{ContextPlugin as _0x523109}from'ckeditor5/src/core.js';import{AITabs as _0x23007a}from'../aitabs/aitabs.js';import{IconAIHistory as _0x5e896e}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x4f9c07}from'./ui/aichathistoryview.js';import{getTranslation as _0x168989}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x541b74(0x1cb),_0x541b74(0x1d3),_0x541b74(0x1c6),_0x541b74(0x1c8),_0x541b74(0x1b8),_0x541b74(0x1c5),_0x541b74(0x1ba)];export class AIChatHistoryUI extends _0x523109{static get[_0x541b74(0x1db)](){return[_0x23007a];}[_0x541b74(0x1d6)];static get[_0x541b74(0x1c2)](){const _0x577d42=_0x541b74;return _0x577d42(0x1b9);}static get[_0x541b74(0x1d7)](){return!0x0;}static get[_0x541b74(0x1b5)](){return!0x0;}constructor(_0x26833c){const _0x4f51ba=_0x541b74;super(_0x26833c);const _0x13ecc3=this[_0x4f51ba(0x1c9)][_0x4f51ba(0x1c0)][_0x4f51ba(0x1ce)](_0x4f51ba(0x1d5));this[_0x4f51ba(0x1d6)]=new _0x4f9c07(this[_0x4f51ba(0x1c9)][_0x4f51ba(0x1bf)],_0x13ecc3[_0x4f51ba(0x1c1)]),this[_0x4f51ba(0x1d6)][_0x4f51ba(0x1dd)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x13ecc3[_0x4f51ba(0x1e2)][_0x4f51ba(0x1dc)]({'id':_0x4f51ba(0x1c4),'buttonLabel':_0x168989(this[_0x4f51ba(0x1c9)][_0x4f51ba(0x1bf)],_0x4f51ba(0x1de)),'buttonIcon':_0x5e896e,'order':0x0,'content':this[_0x4f51ba(0x1d6)]});}[_0x541b74(0x1b6)](_0x3927f4){const _0x5beceb=_0x541b74;this[_0x5beceb(0x1d6)][_0x5beceb(0x1b6)](_0x3927f4);}[_0x541b74(0x1cd)](_0x4a461e){const _0x4e12d4=_0x541b74;this[_0x4e12d4(0x1d6)][_0x4e12d4(0x1d2)](_0x4a461e);}[_0x541b74(0x1d4)](_0x34adf7,_0x54d534){const _0x1b5112=_0x541b74;this[_0x1b5112(0x1d6)][_0x1b5112(0x1d4)](_0x34adf7,_0x54d534);}[_0x541b74(0x1cf)](_0x212b72,_0x4fe4fb,_0x25f0bc){const _0x50b698=_0x541b74;this[_0x50b698(0x1d6)][_0x50b698(0x1cf)](_0x212b72,_0x4fe4fb,_0x25f0bc);}[_0x541b74(0x1df)](_0x223d31){const _0x394641=_0x541b74;this[_0x394641(0x1d6)][_0x394641(0x1c3)]=_0x223d31;}[_0x541b74(0x1b7)](_0x39255a){const _0x15ed62=_0x541b74;this[_0x15ed62(0x1d6)][_0x15ed62(0x1d0)]=_0x39255a;}[_0x541b74(0x1bd)](){const _0x5a60e3=_0x541b74;this[_0x5a60e3(0x1d6)][_0x5a60e3(0x1d0)]='';}[_0x541b74(0x1bb)](_0x74c0ec){const _0x4acdb1=_0x541b74;this[_0x4acdb1(0x1d6)][_0x4acdb1(0x1bc)]=_0x74c0ec;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x32f32e=_0x30a5;function _0x30a5(_0x223b29,_0x436bbf){const _0x5d0ebf=_0x5d0e();return _0x30a5=function(_0x30a53d,_0x3ce7da){_0x30a53d=_0x30a53d-0x117;let _0x40de36=_0x5d0ebf[_0x30a53d];return _0x40de36;},_0x30a5(_0x223b29,_0x436bbf);}(function(_0x2dfca9,_0x18b4af){const _0xbf911e=_0x30a5,_0x3905d7=_0x2dfca9();while(!![]){try{const _0xcf8e9e=parseInt(_0xbf911e(0x11d))/0x1+-parseInt(_0xbf911e(0x135))/0x2+-parseInt(_0xbf911e(0x124))/0x3*(parseInt(_0xbf911e(0x131))/0x4)+parseInt(_0xbf911e(0x12a))/0x5*(-parseInt(_0xbf911e(0x120))/0x6)+-parseInt(_0xbf911e(0x129))/0x7*(parseInt(_0xbf911e(0x12b))/0x8)+parseInt(_0xbf911e(0x133))/0x9+parseInt(_0xbf911e(0x11f))/0xa;if(_0xcf8e9e===_0x18b4af)break;else _0x3905d7['push'](_0x3905d7['shift']());}catch(_0x4a31fe){_0x3905d7['push'](_0x3905d7['shift']());}}}(_0x5d0e,0xa2052));import{ListItemView as _0x348241,View as _0x566b1d,ListView as _0x193cbf}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x348241{[_0x32f32e(0x136)];[_0x32f32e(0x118)];[_0x32f32e(0x11a)];constructor(_0x20a960,{title:_0x475967,items:_0x4309f2}){const _0x2ba67b=_0x32f32e;super(_0x20a960);const _0x538bd6=this[_0x2ba67b(0x132)];this[_0x2ba67b(0x12e)](_0x2ba67b(0x12c),!0x0),this[_0x2ba67b(0x136)]=_0x475967,this[_0x2ba67b(0x118)]=_0x4309f2;const _0x421d26=new _0x566b1d(_0x20a960);_0x421d26[_0x2ba67b(0x123)]({'tag':_0x2ba67b(0x11c),'attributes':{'class':[_0x2ba67b(0x12d)]},'children':[this[_0x2ba67b(0x136)]]}),this[_0x2ba67b(0x11a)]=new _0x193cbf(_0x20a960),this[_0x2ba67b(0x11a)][_0x2ba67b(0x127)][_0x2ba67b(0x12f)](this[_0x2ba67b(0x118)]),this[_0x2ba67b(0x123)]({'tag':'li','attributes':{'class':[_0x2ba67b(0x11e),_0x538bd6['if'](_0x2ba67b(0x12c),_0x2ba67b(0x119),_0x34d423=>!_0x34d423)]},'children':[_0x421d26,this[_0x2ba67b(0x11a)]]});}[_0x32f32e(0x122)](_0x554af9){const _0x3be5ec=_0x32f32e,_0x4d9e59=this[_0x3be5ec(0x118)][_0x3be5ec(0x126)];let _0x518ec0=0x0;for(const _0x1110d2 of this[_0x3be5ec(0x118)]){if(_0x554af9){const _0x1bf714=_0x1110d2[_0x3be5ec(0x130)](_0x554af9);_0x1110d2[_0x3be5ec(0x12c)]=!!_0x1bf714,_0x1110d2[_0x3be5ec(0x128)](_0x554af9);}else _0x1110d2[_0x3be5ec(0x12c)]=!0x0,_0x1110d2[_0x3be5ec(0x128)](null);_0x1110d2[_0x3be5ec(0x12c)]&&_0x518ec0++;}return this[_0x3be5ec(0x12c)]=_0x518ec0>0x0,{'resultsCount':_0x518ec0,'totalItemsCount':_0x4d9e59};}[_0x32f32e(0x11b)](_0x1d8e7b){const _0x1f2a5a=_0x32f32e;return this[_0x1f2a5a(0x118)][_0x1f2a5a(0x117)](_0x1d555c=>_0x1d555c['id']===_0x1d8e7b);}[_0x32f32e(0x125)](_0xe3792d){const _0x367ac8=_0x32f32e,_0x2368cd=this[_0x367ac8(0x118)][_0x367ac8(0x134)](_0xe3792d);-0x1!==_0x2368cd&&(this[_0x367ac8(0x118)][_0x367ac8(0x121)](_0x2368cd,0x1),this[_0x367ac8(0x11a)][_0x367ac8(0x127)][_0x367ac8(0x137)](_0xe3792d));}}function _0x5d0e(){const _0x228a68=['5718627gUyTGX','indexOf','783042Ddjtqb','title','remove','find','itemsViews','ck-hidden','_itemsListView','getItem','div','869588ldrsyA','ck-ai-chat-history__section','7481200tjXWRv','12TCVwil','splice','filter','setTemplate','3Ydkoys','removeItem','length','items','highlightText','6972cCxCAg','645085XWihdm','5480WMbjcD','isVisible','ck-ai-chat-history__section-title','set','addMany','isMatching','1030648RMxDSp','bindTemplate'];_0x5d0e=function(){return _0x228a68;};return _0x5d0e();}
23
+ const _0x238f10=_0x539d;(function(_0x293817,_0x30dc75){const _0x47a3e7=_0x539d,_0x12db8b=_0x293817();while(!![]){try{const _0xbdd899=-parseInt(_0x47a3e7(0x165))/0x1+parseInt(_0x47a3e7(0x155))/0x2*(parseInt(_0x47a3e7(0x16b))/0x3)+-parseInt(_0x47a3e7(0x160))/0x4+-parseInt(_0x47a3e7(0x153))/0x5+parseInt(_0x47a3e7(0x154))/0x6*(-parseInt(_0x47a3e7(0x172))/0x7)+parseInt(_0x47a3e7(0x158))/0x8*(parseInt(_0x47a3e7(0x152))/0x9)+parseInt(_0x47a3e7(0x166))/0xa;if(_0xbdd899===_0x30dc75)break;else _0x12db8b['push'](_0x12db8b['shift']());}catch(_0x3ddc09){_0x12db8b['push'](_0x12db8b['shift']());}}}(_0x5d34,0xbd9d6));function _0x539d(_0x56d770,_0x34ca11){const _0x5d34b9=_0x5d34();return _0x539d=function(_0x539d8f,_0xfd67c1){_0x539d8f=_0x539d8f-0x152;let _0x5a10b1=_0x5d34b9[_0x539d8f];return _0x5a10b1;},_0x539d(_0x56d770,_0x34ca11);}import{ListItemView as _0x475cf1,View as _0x4e9681,ListView as _0x494fd6}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x475cf1{[_0x238f10(0x16f)];[_0x238f10(0x167)];[_0x238f10(0x163)];constructor(_0x5bb5e8,{title:_0x2c4cc8,items:_0x205477}){const _0x954344=_0x238f10;super(_0x5bb5e8);const _0x2d0aac=this[_0x954344(0x170)];this[_0x954344(0x15b)](_0x954344(0x159),!0x0),this[_0x954344(0x16f)]=_0x2c4cc8,this[_0x954344(0x167)]=_0x205477;const _0x46d405=new _0x4e9681(_0x5bb5e8);_0x46d405[_0x954344(0x168)]({'tag':_0x954344(0x15e),'attributes':{'class':[_0x954344(0x16c)]},'children':[this[_0x954344(0x16f)]]}),this[_0x954344(0x163)]=new _0x494fd6(_0x5bb5e8),this[_0x954344(0x163)][_0x954344(0x157)][_0x954344(0x15f)](this[_0x954344(0x167)]),this[_0x954344(0x168)]({'tag':'li','attributes':{'class':[_0x954344(0x15d),_0x2d0aac['if'](_0x954344(0x159),_0x954344(0x156),_0x41bf31=>!_0x41bf31)]},'children':[_0x46d405,this[_0x954344(0x163)]]});}[_0x238f10(0x162)](_0x273e71){const _0x54d893=_0x238f10,_0x587de9=this[_0x54d893(0x167)][_0x54d893(0x164)];let _0x19620e=0x0;for(const _0x3066d4 of this[_0x54d893(0x167)]){if(_0x273e71){const _0x305207=_0x3066d4[_0x54d893(0x161)](_0x273e71);_0x3066d4[_0x54d893(0x159)]=!!_0x305207,_0x3066d4[_0x54d893(0x15c)](_0x273e71);}else _0x3066d4[_0x54d893(0x159)]=!0x0,_0x3066d4[_0x54d893(0x15c)](null);_0x3066d4[_0x54d893(0x159)]&&_0x19620e++;}return this[_0x54d893(0x159)]=_0x19620e>0x0,{'resultsCount':_0x19620e,'totalItemsCount':_0x587de9};}[_0x238f10(0x16d)](_0x2a89eb){const _0x433412=_0x238f10;return this[_0x433412(0x167)][_0x433412(0x16a)](_0xee1359=>_0xee1359['id']===_0x2a89eb);}[_0x238f10(0x169)](_0x55502d){const _0x2e2551=_0x238f10,_0x300f15=this[_0x2e2551(0x167)][_0x2e2551(0x15a)](_0x55502d);-0x1!==_0x300f15&&(this[_0x2e2551(0x167)][_0x2e2551(0x16e)](_0x300f15,0x1),this[_0x2e2551(0x163)][_0x2e2551(0x157)][_0x2e2551(0x171)](_0x55502d));}}function _0x5d34(){const _0x1db968=['ck-ai-chat-history__section-title','getItem','splice','title','bindTemplate','remove','21ExoWrj','27MjKHPn','553565KREJEa','2614908EWjsqT','81478bItbZr','ck-hidden','items','2552792TqCNPD','isVisible','indexOf','set','highlightText','ck-ai-chat-history__section','div','addMany','2144580iecEFm','isMatching','filter','_itemsListView','length','672087oJYIUF','12643330UHnpYI','itemsViews','setTemplate','removeItem','find','87DPurQO'];_0x5d34=function(){return _0x1db968;};return _0x5d34();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x554cc1=_0x3a88;(function(_0x297c1a,_0x54363e){const _0xd9c3ff=_0x3a88,_0x1755ac=_0x297c1a();while(!![]){try{const _0x5c034f=parseInt(_0xd9c3ff(0xa5))/0x1*(parseInt(_0xd9c3ff(0xb2))/0x2)+parseInt(_0xd9c3ff(0xa1))/0x3*(-parseInt(_0xd9c3ff(0xf1))/0x4)+-parseInt(_0xd9c3ff(0xb0))/0x5+parseInt(_0xd9c3ff(0xf4))/0x6+parseInt(_0xd9c3ff(0xe9))/0x7*(-parseInt(_0xd9c3ff(0xf7))/0x8)+-parseInt(_0xd9c3ff(0xa3))/0x9*(-parseInt(_0xd9c3ff(0xbe))/0xa)+parseInt(_0xd9c3ff(0xf6))/0xb;if(_0x5c034f===_0x54363e)break;else _0x1755ac['push'](_0x1755ac['shift']());}catch(_0x272211){_0x1755ac['push'](_0x1755ac['shift']());}}}(_0x41fa,0xe7629));import{View as _0x54811b,SearchTextView as _0x594483,FormHeaderView as _0x2054e5,ButtonView as _0x11e64a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x53dc01,IconCancel as _0x4f6f59,IconPlus as _0x11777a}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x489a09}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x350d88}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x56e362}from'./aichathistorylistitemview.js';function _0x41fa(){const _0x5c4644=['searchView','56402VMCkRL','delegate','isMainErrorViewVisible','_createSkeletonView','queryView','execute','_createEmptyStateView','length','_createErrorView','removeHistoryItem','isMaximized','updateLoadingState','20EiduwC','fire','bind','itemsViews','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateTitle','ck-ai-chat-history__content','_createSearchView','sections','locale','remove','element','ck-ai-notification_error','skeletonView','items','removeItem','indexOf','ck-ai-notification_error__dismiss-button','ck-ai-chat__start-conversation','div','title','updateItemTitle','AI_CHAT_HISTORY_SEARCH_LABEL','_refreshSearch','mainErrorView','search','splice','some','isSearchViewVisible','fieldView','ltr','updateHistoryItemsWithCategories','ck-ai-chat-history__empty','change:isLoading','isEmptyViewVisible','getItem','ck-ai-chat-history__empty-message','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','set','hasItems','extendTemplate','ck-ai-header\x20ck-ai-header_history','ck-hidden','3455312cSwqiO','emptyView','sectionsView','add','aiHistory','_updateViewVisibility','isVisible','bindTemplate','8Mgvbab','render','errorMessage','7208226rcDTsv','updateItemLoadingState','4131402dVOdOc','8SzhjkL','value','isLoading','AI_CHAT_HISTORY_HEADING','ck-rounded-corners','change:hasItems','ck-ai-chat-history','addMany','1695612jbsdQz','ck-ai-notification','7362198iUOGgD','_createListItemViews','35GVIpej','ck-reset_all','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_EMPTY_MESSAGE','openChat','resizeButton','children','setTemplate','change:errorMessage','push','clear','8141275qgOOBt'];_0x41fa=function(){return _0x5c4644;};return _0x41fa();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x377a16}from'../aichathistoryui.js';import{AISkeletonView as _0x132e79,SKELETON_DEFINITIONS as _0x222163}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x123693}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x49513d}from'../../aicore/utils/common-translations.js';function _0x3a88(_0x1d13f9,_0x5b4044){const _0x41fac6=_0x41fa();return _0x3a88=function(_0x3a880a,_0x49be3c){_0x3a880a=_0x3a880a-0x9d;let _0x5337ec=_0x41fac6[_0x3a880a];return _0x5337ec;},_0x3a88(_0x1d13f9,_0x5b4044);}export class AIChatHistoryView extends _0x54811b{[_0x554cc1(0xb1)];[_0x554cc1(0xd6)];[_0x554cc1(0xcb)];[_0x554cc1(0xea)];[_0x554cc1(0xeb)];[_0x554cc1(0xaa)];constructor(_0x499149,_0x2bf47b){const _0x20bbc5=_0x554cc1;super(_0x499149),this[_0x20bbc5(0xe4)](_0x20bbc5(0xe5),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xf9),!0x0),this[_0x20bbc5(0xe4)](_0x20bbc5(0xf3),''),this[_0x20bbc5(0xe4)](_0x20bbc5(0xbc),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xda),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xe0),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xb4),!0x1);const _0x35b6ed=new _0x2054e5(_0x499149,{'label':_0x49513d(_0x499149,_0x20bbc5(0xfa)),'icon':_0x53dc01,'class':_0x20bbc5(0xe7)});_0x2bf47b&&(this[_0x20bbc5(0xaa)]=_0x123693(_0x499149,this),_0x35b6ed[_0x20bbc5(0xab)][_0x20bbc5(0xec)](this[_0x20bbc5(0xaa)])),this[_0x20bbc5(0xeb)]=new _0x489a09(_0x499149,[]),this[_0x20bbc5(0xeb)][_0x20bbc5(0xb3)](..._0x377a16)['to'](this),this[_0x20bbc5(0xd6)]=this[_0x20bbc5(0xba)](),this[_0x20bbc5(0xcb)]=this[_0x20bbc5(0xb5)](),this[_0x20bbc5(0xea)]=this[_0x20bbc5(0xb8)](),this[_0x20bbc5(0xb1)]=this[_0x20bbc5(0xc5)](),this[_0x20bbc5(0xd6)][_0x20bbc5(0xe6)]({'attributes':{'class':[this[_0x20bbc5(0xf0)]['if'](_0x20bbc5(0xb4),_0x20bbc5(0xe8),_0x1dd89b=>!_0x1dd89b)]}}),this['on'](_0x20bbc5(0xdf),()=>this[_0x20bbc5(0xee)]()),this['on'](_0x20bbc5(0x9e),()=>this[_0x20bbc5(0xee)]()),this['on'](_0x20bbc5(0xad),()=>this[_0x20bbc5(0xee)]()),this[_0x20bbc5(0xac)]({'tag':_0x20bbc5(0xd1),'attributes':{'class':['ck',_0x20bbc5(0xa6),_0x20bbc5(0x9f),_0x20bbc5(0x9d)],'dir':_0x20bbc5(0xdc)},'children':[_0x35b6ed,{'tag':_0x20bbc5(0xd1),'attributes':{'class':[_0x20bbc5(0xc4)]},'children':[this[_0x20bbc5(0xcb)],this[_0x20bbc5(0xd6)],this[_0x20bbc5(0xea)],this[_0x20bbc5(0xb1)]]}]});}[_0x554cc1(0xee)](){const _0x5a5c2b=_0x554cc1;this[_0x5a5c2b(0xda)]=!this[_0x5a5c2b(0xf9)]&&this[_0x5a5c2b(0xe5)],this[_0x5a5c2b(0xe0)]=!this[_0x5a5c2b(0xf9)]&&!this[_0x5a5c2b(0xe5)]&&!this[_0x5a5c2b(0xf3)],this[_0x5a5c2b(0xb4)]=!this[_0x5a5c2b(0xda)]&&!!this[_0x5a5c2b(0xf3)];}[_0x554cc1(0xc5)](){const _0x5e7793=_0x554cc1,_0x3714ef=new _0x594483(this[_0x5e7793(0xc7)],{'filteredView':this[_0x5e7793(0xeb)],'queryView':{'label':_0x49513d(this[_0x5e7793(0xc7)],_0x5e7793(0xd4))},'infoView':{'text':{'notFound':{'primary':_0x5e88c6=>_0x49513d(this[_0x5e7793(0xc7)],_0x5e7793(0xe3),_0x5e88c6),'secondary':_0x49513d(this[_0x5e7793(0xc7)],_0x5e7793(0xc2))}}}}),_0x25aac1=this[_0x5e7793(0xba)]();return _0x25aac1[_0x5e7793(0xe6)]({'attributes':{'class':[this[_0x5e7793(0xf0)]['if'](_0x5e7793(0xf3),_0x5e7793(0xe8),_0x1dc583=>!_0x1dc583)]}}),_0x3714ef['on'](_0x5e7793(0xf2),()=>{const _0x58ff81=_0x5e7793;_0x3714ef[_0x58ff81(0xab)][_0x58ff81(0xec)](_0x25aac1,0x1);}),_0x3714ef[_0x5e7793(0xe6)]({'attributes':{'class':[this[_0x5e7793(0xf0)]['if'](_0x5e7793(0xda),_0x5e7793(0xe8),_0x4f3fff=>!_0x4f3fff)]}}),_0x3714ef;}[_0x554cc1(0xb5)](){const _0x559a8e=_0x554cc1,_0x12b0e1=new _0x132e79(this[_0x559a8e(0xc7)],_0x222163[_0x559a8e(0xed)]);return _0x12b0e1[_0x559a8e(0xe6)]({'attributes':{'class':[this[_0x559a8e(0xf0)]['if'](_0x559a8e(0xf9),_0x559a8e(0xe8),_0x280df0=>!_0x280df0)]}}),_0x12b0e1;}[_0x554cc1(0xba)](){const _0x563e94=_0x554cc1,_0x549f8f=new _0x54811b(this[_0x563e94(0xc7)]),_0x396227=new _0x11e64a(this[_0x563e94(0xc7)]);_0x396227[_0x563e94(0xe4)]({'withText':!0x1,'icon':_0x4f6f59,'class':_0x563e94(0xcf)}),_0x396227[_0x563e94(0xc0)](_0x563e94(0xef))['to'](this,_0x563e94(0xe5),_0x5588e2=>!!_0x5588e2),_0x396227['on'](_0x563e94(0xb7),()=>{const _0x55121e=_0x563e94;this[_0x55121e(0xf3)]='';});const _0x1b4aa0=this[_0x563e94(0xf0)];return _0x549f8f[_0x563e94(0xac)]({'tag':_0x563e94(0xd1),'attributes':{'class':['ck',_0x563e94(0xa2),_0x563e94(0xca)]},'children':[{'tag':'p','children':[{'text':_0x1b4aa0['to'](_0x563e94(0xf3))}]},_0x396227]}),_0x549f8f;}[_0x554cc1(0xb8)](){const _0x42dc66=_0x554cc1,_0x38eb6e=new _0x11e64a(this[_0x42dc66(0xc7)]);_0x38eb6e[_0x42dc66(0xe4)]({'label':_0x49513d(this[_0x42dc66(0xc7)],_0x42dc66(0xa7)),'withText':!0x0,'icon':_0x11777a,'class':_0x42dc66(0xd0)}),_0x38eb6e['on'](_0x42dc66(0xb7),()=>{const _0xf27d49=_0x42dc66;this[_0xf27d49(0xbf)](_0xf27d49(0xa9));});const _0x3d1bb8=new _0x54811b(this[_0x42dc66(0xc7)]);return _0x3d1bb8[_0x42dc66(0xac)]({'tag':_0x42dc66(0xd1),'attributes':{'class':[_0x42dc66(0xde),this[_0x42dc66(0xf0)]['if'](_0x42dc66(0xe0),_0x42dc66(0xe8),_0x2a6184=>!_0x2a6184)]},'children':[{'tag':'p','attributes':{'class':[_0x42dc66(0xe2)]},'children':[_0x49513d(this[_0x42dc66(0xc7)],_0x42dc66(0xa8))]},_0x38eb6e]}),_0x3d1bb8;}[_0x554cc1(0xa4)](_0x19f574,_0x2e2878){const _0x2b4b1e=_0x554cc1,_0x57c499=[];for(const _0x34389e of _0x19f574){const _0x18d1cf=new _0x56e362(_0x2e2878,_0x34389e);_0x18d1cf[_0x2b4b1e(0xb3)](..._0x377a16)['to'](this),_0x57c499[_0x2b4b1e(0xae)](_0x18d1cf);}return _0x57c499;}[_0x554cc1(0xdd)](_0x3c67dc){const _0x7def6e=_0x554cc1,_0x48e3d4=this[_0x7def6e(0xc7)]||'en',_0x1b174d=[];for(const _0x2e0e23 of _0x3c67dc){const _0x5473ee=this[_0x7def6e(0xa4)](_0x2e0e23[_0x7def6e(0xcc)],_0x48e3d4);_0x1b174d[_0x7def6e(0xae)](new _0x350d88(_0x48e3d4,{'title':_0x2e0e23[_0x7def6e(0xd2)],'items':_0x5473ee}));}this[_0x7def6e(0xeb)][_0x7def6e(0xc6)]=_0x1b174d,this[_0x7def6e(0xeb)][_0x7def6e(0xcc)][_0x7def6e(0xaf)](),this[_0x7def6e(0xeb)][_0x7def6e(0xcc)][_0x7def6e(0xa0)](_0x1b174d),this[_0x7def6e(0xe5)]=_0x3c67dc[_0x7def6e(0xd9)](_0x1e8f31=>_0x1e8f31[_0x7def6e(0xcc)][_0x7def6e(0xb9)]>0x0),this[_0x7def6e(0xd5)]();}[_0x554cc1(0xbb)](_0x257279){const _0x3fc359=_0x554cc1;for(const _0x5cea60 of this[_0x3fc359(0xeb)][_0x3fc359(0xc6)]){const _0x278bca=_0x5cea60[_0x3fc359(0xe1)](_0x257279);if(_0x278bca){if(_0x5cea60[_0x3fc359(0xcd)](_0x278bca),0x0===_0x5cea60[_0x3fc359(0xc1)][_0x3fc359(0xb9)]){const _0x37a3c6=this[_0x3fc359(0xeb)][_0x3fc359(0xc6)][_0x3fc359(0xce)](_0x5cea60);-0x1!==_0x37a3c6&&(this[_0x3fc359(0xeb)][_0x3fc359(0xc6)][_0x3fc359(0xd8)](_0x37a3c6,0x1),this[_0x3fc359(0xeb)][_0x3fc359(0xcc)][_0x3fc359(0xc8)](_0x5cea60));}this[_0x3fc359(0xe5)]=this[_0x3fc359(0xeb)][_0x3fc359(0xc6)][_0x3fc359(0xb9)]>0x0,this[_0x3fc359(0xd5)]();break;}}}[_0x554cc1(0xd3)](_0x5ab841,_0x202773){const _0x51d1fe=_0x554cc1;for(const _0x13f3b3 of this[_0x51d1fe(0xeb)][_0x51d1fe(0xc6)]){const _0x1ed997=_0x13f3b3[_0x51d1fe(0xe1)](_0x5ab841);if(_0x1ed997){_0x1ed997[_0x51d1fe(0xc3)](_0x202773);break;}}}[_0x554cc1(0xf5)](_0x285e62,_0x221b83,_0x1aa383){const _0x5ee07e=_0x554cc1;for(const _0x2b6112 of this[_0x5ee07e(0xeb)][_0x5ee07e(0xc6)]){const _0x44a879=_0x2b6112[_0x5ee07e(0xe1)](_0x285e62);if(_0x44a879){_0x44a879[_0x5ee07e(0xbd)](_0x221b83,_0x1aa383);break;}}}[_0x554cc1(0xd5)](){const _0x127999=_0x554cc1;if(this[_0x127999(0xe5)]){const _0x385069=this[_0x127999(0xb1)][_0x127999(0xb6)][_0x127999(0xdb)]?.[_0x127999(0xc9)]?.[_0x127999(0xf8)]||'';this[_0x127999(0xb1)][_0x127999(0xd7)](_0x385069);}}}
23
+ const _0x27b31f=_0x44ba;function _0xace5(){const _0x13a925=['151160oWHiug','updateHistoryItemsWithCategories','fieldView','hasItems','openChat','getItem','isVisible','sections','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-header\x20ck-ai-header_history','resizeButton','ck-ai-chat__start-conversation','bind','ck-ai-chat-history__empty-message','change:errorMessage','change:hasItems','execute','ck-ai-notification_error','removeItem','div','1367182qqPNMd','emptyView','set','ck-ai-notification_error__dismiss-button','value','ck-ai-chat-history__content','2680398FYGamX','ck-hidden','1686544HKRfAm','clear','element','setTemplate','updateItemLoadingState','addMany','_createSearchView','445959OpfENN','AI_CHAT_HISTORY_EMPTY_MESSAGE','skeletonView','mainErrorView','isMainErrorViewVisible','_createErrorView','isSearchViewVisible','_createSkeletonView','updateTitle','searchView','children','AI_CHAT_LABEL_NEW_CHAT','10kNREDO','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','render','length','AI_CHAT_HISTORY_HEADING','ltr','splice','removeHistoryItem','_createListItemViews','extendTemplate','indexOf','updateLoadingState','delegate','locale','7DcPSVV','some','queryView','aiHistory','change:isLoading','push','ck-ai-chat-history','isEmptyViewVisible','updateItemTitle','ck-reset_all','1249708pCyZWw','add','AI_CHAT_HISTORY_SEARCH_LABEL','ck-ai-chat-history__empty','search','3Kxowck','remove','isMaximized','title','ck-rounded-corners','_refreshSearch','isLoading','itemsViews','_createEmptyStateView','550okdymH','bindTemplate','ck-ai-notification','sectionsView','fire','errorMessage','items','_updateViewVisibility','3959178kViPeD'];_0xace5=function(){return _0x13a925;};return _0xace5();}(function(_0x16f4d8,_0x3a95cf){const _0x491f8=_0x44ba,_0x38282f=_0x16f4d8();while(!![]){try{const _0x4eb83d=-parseInt(_0x491f8(0x1b4))/0x1+-parseInt(_0x491f8(0x1a5))/0x2*(parseInt(_0x491f8(0x17f))/0x3)+-parseInt(_0x491f8(0x17a))/0x4*(-parseInt(_0x491f8(0x1c0))/0x5)+parseInt(_0x491f8(0x190))/0x6+-parseInt(_0x491f8(0x1ce))/0x7*(parseInt(_0x491f8(0x1ad))/0x8)+-parseInt(_0x491f8(0x1ab))/0x9+-parseInt(_0x491f8(0x191))/0xa*(-parseInt(_0x491f8(0x188))/0xb);if(_0x4eb83d===_0x3a95cf)break;else _0x38282f['push'](_0x38282f['shift']());}catch(_0x420789){_0x38282f['push'](_0x38282f['shift']());}}}(_0xace5,0x62397));import{View as _0x2f38ed,SearchTextView as _0x22d971,FormHeaderView as _0x853213,ButtonView as _0x3c4be4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x330df8,IconCancel as _0x23942a,IconPlus as _0x1acbf9}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x5631e9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2be2e0}from'./aichathistorylistview.js';function _0x44ba(_0x550c89,_0x5ee37e){const _0xace5d=_0xace5();return _0x44ba=function(_0x44ba7d,_0x58f791){_0x44ba7d=_0x44ba7d-0x176;let _0x442e45=_0xace5d[_0x44ba7d];return _0x442e45;},_0x44ba(_0x550c89,_0x5ee37e);}import{AIChatHistoryListItemView as _0x2a0bb1}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xef2835}from'../aichathistoryui.js';import{AISkeletonView as _0x508324,SKELETON_DEFINITIONS as _0x52d79f}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x232875}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x47013b}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2f38ed{[_0x27b31f(0x1bd)];[_0x27b31f(0x1b7)];[_0x27b31f(0x1b6)];[_0x27b31f(0x1a6)];[_0x27b31f(0x18b)];[_0x27b31f(0x19b)];constructor(_0x2720b2,_0x3cabba){const _0x57f4d3=_0x27b31f;super(_0x2720b2),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x194),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x185),!0x0),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x18d),''),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x181),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x1ba),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x177),!0x1),this[_0x57f4d3(0x1a7)](_0x57f4d3(0x1b8),!0x1);const _0x9a5784=new _0x853213(_0x2720b2,{'label':_0x47013b(_0x2720b2,_0x57f4d3(0x1c4)),'icon':_0x330df8,'class':_0x57f4d3(0x19a)});_0x3cabba&&(this[_0x57f4d3(0x19b)]=_0x232875(_0x2720b2,this),_0x9a5784[_0x57f4d3(0x1be)][_0x57f4d3(0x17b)](this[_0x57f4d3(0x19b)])),this[_0x57f4d3(0x18b)]=new _0x5631e9(_0x2720b2,[]),this[_0x57f4d3(0x18b)][_0x57f4d3(0x1cc)](..._0xef2835)['to'](this),this[_0x57f4d3(0x1b7)]=this[_0x57f4d3(0x1b9)](),this[_0x57f4d3(0x1b6)]=this[_0x57f4d3(0x1bb)](),this[_0x57f4d3(0x1a6)]=this[_0x57f4d3(0x187)](),this[_0x57f4d3(0x1bd)]=this[_0x57f4d3(0x1b3)](),this[_0x57f4d3(0x1b7)][_0x57f4d3(0x1c9)]({'attributes':{'class':[this[_0x57f4d3(0x189)]['if'](_0x57f4d3(0x1b8),_0x57f4d3(0x1ac),_0x588e66=>!_0x588e66)]}}),this['on'](_0x57f4d3(0x1d2),()=>this[_0x57f4d3(0x18f)]()),this['on'](_0x57f4d3(0x1a0),()=>this[_0x57f4d3(0x18f)]()),this['on'](_0x57f4d3(0x19f),()=>this[_0x57f4d3(0x18f)]()),this[_0x57f4d3(0x1b0)]({'tag':_0x57f4d3(0x1a4),'attributes':{'class':['ck',_0x57f4d3(0x179),_0x57f4d3(0x176),_0x57f4d3(0x183)],'dir':_0x57f4d3(0x1c5)},'children':[_0x9a5784,{'tag':_0x57f4d3(0x1a4),'attributes':{'class':[_0x57f4d3(0x1aa)]},'children':[this[_0x57f4d3(0x1b6)],this[_0x57f4d3(0x1b7)],this[_0x57f4d3(0x1a6)],this[_0x57f4d3(0x1bd)]]}]});}[_0x27b31f(0x18f)](){const _0x27d78b=_0x27b31f;this[_0x27d78b(0x1ba)]=!this[_0x27d78b(0x185)]&&this[_0x27d78b(0x194)],this[_0x27d78b(0x177)]=!this[_0x27d78b(0x185)]&&!this[_0x27d78b(0x194)]&&!this[_0x27d78b(0x18d)],this[_0x27d78b(0x1b8)]=!this[_0x27d78b(0x1ba)]&&!!this[_0x27d78b(0x18d)];}[_0x27b31f(0x1b3)](){const _0x2eae0b=_0x27b31f,_0x5d18f2=new _0x22d971(this[_0x2eae0b(0x1cd)],{'filteredView':this[_0x2eae0b(0x18b)],'queryView':{'label':_0x47013b(this[_0x2eae0b(0x1cd)],_0x2eae0b(0x17c))},'infoView':{'text':{'notFound':{'primary':_0x1e67f7=>_0x47013b(this[_0x2eae0b(0x1cd)],_0x2eae0b(0x199),_0x1e67f7),'secondary':_0x47013b(this[_0x2eae0b(0x1cd)],_0x2eae0b(0x1c1))}}}}),_0x33ac52=this[_0x2eae0b(0x1b9)]();return _0x33ac52[_0x2eae0b(0x1c9)]({'attributes':{'class':[this[_0x2eae0b(0x189)]['if'](_0x2eae0b(0x18d),_0x2eae0b(0x1ac),_0x5a5673=>!_0x5a5673)]}}),_0x5d18f2['on'](_0x2eae0b(0x1c2),()=>{const _0x422f27=_0x2eae0b;_0x5d18f2[_0x422f27(0x1be)][_0x422f27(0x17b)](_0x33ac52,0x1);}),_0x5d18f2[_0x2eae0b(0x1c9)]({'attributes':{'class':[this[_0x2eae0b(0x189)]['if'](_0x2eae0b(0x1ba),_0x2eae0b(0x1ac),_0xb9eda5=>!_0xb9eda5)]}}),_0x5d18f2;}[_0x27b31f(0x1bb)](){const _0x20b290=_0x27b31f,_0x4d544b=new _0x508324(this[_0x20b290(0x1cd)],_0x52d79f[_0x20b290(0x1d1)]);return _0x4d544b[_0x20b290(0x1c9)]({'attributes':{'class':[this[_0x20b290(0x189)]['if'](_0x20b290(0x185),_0x20b290(0x1ac),_0x44232c=>!_0x44232c)]}}),_0x4d544b;}[_0x27b31f(0x1b9)](){const _0x47aa10=_0x27b31f,_0x127c40=new _0x2f38ed(this[_0x47aa10(0x1cd)]),_0x2ab84e=new _0x3c4be4(this[_0x47aa10(0x1cd)]);_0x2ab84e[_0x47aa10(0x1a7)]({'withText':!0x1,'icon':_0x23942a,'class':_0x47aa10(0x1a8)}),_0x2ab84e[_0x47aa10(0x19d)](_0x47aa10(0x197))['to'](this,_0x47aa10(0x194),_0x1d0251=>!!_0x1d0251),_0x2ab84e['on'](_0x47aa10(0x1a1),()=>{const _0x3c2790=_0x47aa10;this[_0x3c2790(0x18d)]='';});const _0x3ac201=this[_0x47aa10(0x189)];return _0x127c40[_0x47aa10(0x1b0)]({'tag':_0x47aa10(0x1a4),'attributes':{'class':['ck',_0x47aa10(0x18a),_0x47aa10(0x1a2)]},'children':[{'tag':'p','children':[{'text':_0x3ac201['to'](_0x47aa10(0x18d))}]},_0x2ab84e]}),_0x127c40;}[_0x27b31f(0x187)](){const _0xe01323=_0x27b31f,_0x3f8685=new _0x3c4be4(this[_0xe01323(0x1cd)]);_0x3f8685[_0xe01323(0x1a7)]({'label':_0x47013b(this[_0xe01323(0x1cd)],_0xe01323(0x1bf)),'withText':!0x0,'icon':_0x1acbf9,'class':_0xe01323(0x19c)}),_0x3f8685['on'](_0xe01323(0x1a1),()=>{const _0x7e7a3e=_0xe01323;this[_0x7e7a3e(0x18c)](_0x7e7a3e(0x195));});const _0x59ca63=new _0x2f38ed(this[_0xe01323(0x1cd)]);return _0x59ca63[_0xe01323(0x1b0)]({'tag':_0xe01323(0x1a4),'attributes':{'class':[_0xe01323(0x17d),this[_0xe01323(0x189)]['if'](_0xe01323(0x177),_0xe01323(0x1ac),_0x2147be=>!_0x2147be)]},'children':[{'tag':'p','attributes':{'class':[_0xe01323(0x19e)]},'children':[_0x47013b(this[_0xe01323(0x1cd)],_0xe01323(0x1b5))]},_0x3f8685]}),_0x59ca63;}[_0x27b31f(0x1c8)](_0x135074,_0x10af49){const _0x3baad4=_0x27b31f,_0x1cb274=[];for(const _0xb8e3cd of _0x135074){const _0x175dfa=new _0x2a0bb1(_0x10af49,_0xb8e3cd);_0x175dfa[_0x3baad4(0x1cc)](..._0xef2835)['to'](this),_0x1cb274[_0x3baad4(0x1d3)](_0x175dfa);}return _0x1cb274;}[_0x27b31f(0x192)](_0x12d03f){const _0x3bd479=_0x27b31f,_0x28c448=this[_0x3bd479(0x1cd)]||'en',_0x2ed821=[];for(const _0x2e5261 of _0x12d03f){const _0x9d94a7=this[_0x3bd479(0x1c8)](_0x2e5261[_0x3bd479(0x18e)],_0x28c448);_0x2ed821[_0x3bd479(0x1d3)](new _0x2be2e0(_0x28c448,{'title':_0x2e5261[_0x3bd479(0x182)],'items':_0x9d94a7}));}this[_0x3bd479(0x18b)][_0x3bd479(0x198)]=_0x2ed821,this[_0x3bd479(0x18b)][_0x3bd479(0x18e)][_0x3bd479(0x1ae)](),this[_0x3bd479(0x18b)][_0x3bd479(0x18e)][_0x3bd479(0x1b2)](_0x2ed821),this[_0x3bd479(0x194)]=_0x12d03f[_0x3bd479(0x1cf)](_0xba3009=>_0xba3009[_0x3bd479(0x18e)][_0x3bd479(0x1c3)]>0x0),this[_0x3bd479(0x184)]();}[_0x27b31f(0x1c7)](_0x2ed153){const _0x26a087=_0x27b31f;for(const _0x4a7db2 of this[_0x26a087(0x18b)][_0x26a087(0x198)]){const _0x4282b4=_0x4a7db2[_0x26a087(0x196)](_0x2ed153);if(_0x4282b4){if(_0x4a7db2[_0x26a087(0x1a3)](_0x4282b4),0x0===_0x4a7db2[_0x26a087(0x186)][_0x26a087(0x1c3)]){const _0x4ea945=this[_0x26a087(0x18b)][_0x26a087(0x198)][_0x26a087(0x1ca)](_0x4a7db2);-0x1!==_0x4ea945&&(this[_0x26a087(0x18b)][_0x26a087(0x198)][_0x26a087(0x1c6)](_0x4ea945,0x1),this[_0x26a087(0x18b)][_0x26a087(0x18e)][_0x26a087(0x180)](_0x4a7db2));}this[_0x26a087(0x194)]=this[_0x26a087(0x18b)][_0x26a087(0x198)][_0x26a087(0x1c3)]>0x0,this[_0x26a087(0x184)]();break;}}}[_0x27b31f(0x178)](_0x4b507d,_0x5ee140){const _0x12ae7b=_0x27b31f;for(const _0x5f0464 of this[_0x12ae7b(0x18b)][_0x12ae7b(0x198)]){const _0x2eaf1b=_0x5f0464[_0x12ae7b(0x196)](_0x4b507d);if(_0x2eaf1b){_0x2eaf1b[_0x12ae7b(0x1bc)](_0x5ee140);break;}}}[_0x27b31f(0x1b1)](_0x501bc4,_0x504a6c,_0x1961e2){const _0x3968b3=_0x27b31f;for(const _0x47ce14 of this[_0x3968b3(0x18b)][_0x3968b3(0x198)]){const _0x121879=_0x47ce14[_0x3968b3(0x196)](_0x501bc4);if(_0x121879){_0x121879[_0x3968b3(0x1cb)](_0x504a6c,_0x1961e2);break;}}}[_0x27b31f(0x184)](){const _0x5a3317=_0x27b31f;if(this[_0x5a3317(0x194)]){const _0x7a4ade=this[_0x5a3317(0x1bd)][_0x5a3317(0x1d0)][_0x5a3317(0x193)]?.[_0x5a3317(0x1af)]?.[_0x5a3317(0x1a9)]||'';this[_0x5a3317(0x1bd)][_0x5a3317(0x17e)](_0x7a4ade);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x999e19=_0x45ba;function _0x45ba(_0x3e97b6,_0x507613){const _0x52cde1=_0x52cd();return _0x45ba=function(_0x45ba8b,_0xc44e02){_0x45ba8b=_0x45ba8b-0x15c;let _0x90f30a=_0x52cde1[_0x45ba8b];return _0x90f30a;},_0x45ba(_0x3e97b6,_0x507613);}(function(_0x257783,_0x16dc3a){const _0x2d269e=_0x45ba,_0x49e34d=_0x257783();while(!![]){try{const _0x550d3d=parseInt(_0x2d269e(0x19d))/0x1*(-parseInt(_0x2d269e(0x1d6))/0x2)+-parseInt(_0x2d269e(0x1b7))/0x3*(parseInt(_0x2d269e(0x1b8))/0x4)+-parseInt(_0x2d269e(0x15e))/0x5*(parseInt(_0x2d269e(0x164))/0x6)+-parseInt(_0x2d269e(0x1a5))/0x7*(-parseInt(_0x2d269e(0x19c))/0x8)+parseInt(_0x2d269e(0x1ef))/0x9*(parseInt(_0x2d269e(0x1b4))/0xa)+parseInt(_0x2d269e(0x199))/0xb*(-parseInt(_0x2d269e(0x178))/0xc)+parseInt(_0x2d269e(0x1bb))/0xd;if(_0x550d3d===_0x16dc3a)break;else _0x49e34d['push'](_0x49e34d['shift']());}catch(_0x3cc14c){_0x49e34d['push'](_0x49e34d['shift']());}}}(_0x52cd,0x79d02));import{createParser as _0x42e2dc}from'eventsource-parser';import{ContextPlugin as _0x267803}from'ckeditor5/src/core.js';import{CKEditorError as _0x13c841}from'ckeditor5/src/utils.js';function _0x52cd(){const _0x195e44=['data','9PQWAAg','value','getReader','fetchConversation','155gzhfyD','make-longer','upsertCustomAIReviewRating','releaseLock','fetchConversationMessages','uploadDocument','107334GRhFdM','DELETE','attributes','context','make-tone-formal','init','CloudServices','status','Bearer\x20','read','append','MAKE_TONE_CASUAL','feed','make-shorter','https://ai.cke-cs.com/v1','_decoder','limit','MAKE_TONE_FORMAL','fetchDocument','ai-request-aborted','85920FVVkeZ','text','group','isOfficialPlugin','plugins','/files','uploadUrl','deleteWebResource','AbortError','json','PUT','/reviews/system/','then','/actions/system/','config','MAKE_SHORTER','get','catch','ai-request-failed','parse','fetchConversations','FIX_GRAMMAR','/web-resources','CONTINUE','toString','stringify','decode','deleteConversation','queryAssistant','define','executeAction','/calls','Content-Type','638xXVYCo','pluginName','100','2457944cnEvhf','44FiovOH','positiveCount','token','GET','/web-resources/','message','/models/1?','/ratings','7EPniCm','upsertAIReviewRating','requires','/conversations?','deleteFile','/conversations','upsertAIActionRating','true','/messages/','excludeEmpty','PATCH','POST','fix-grammar','updateConversation','keys','5308690TQUham','body','MAKE_LONGER','3iJPAdD','3898292chTmHT','language','abortController','24446630rTCdTz','file','/reviews/custom/calls/','_handleError','request','upsertAIChatRating','startConversation','/conversations/','/documents/','code','continue','traceId','items','deleteDocument','AIConnector','callSystemReview','_getStreamReader','name','upsertCustomAIActionRating','executeCustomAction','TRANSLATE','signal','push','/files/','reset','_sendApiRequest','statusText','12512tMORQU','_apiUrl','ai.serviceUrl','modificationId','getModels','_token','/reviews/custom/calls','IMPROVE_WRITING','make-tone-casual','/documents','totalCount','uploadFile','/actions/custom/calls/','ai-missing-token','application/json','isPremiumPlugin','callCustomReview','/actions/custom/calls','search','translate','/messages','/calls/','length','improve-writing'];_0x52cd=function(){return _0x195e44;};return _0x52cd();}export var AIActionsNames;!function(_0x1507c1){const _0x4344eb=_0x45ba;_0x1507c1[_0x4344eb(0x18f)]=_0x4344eb(0x1c5),_0x1507c1[_0x4344eb(0x18d)]=_0x4344eb(0x1b1),_0x1507c1[_0x4344eb(0x1dd)]=_0x4344eb(0x1ed),_0x1507c1[_0x4344eb(0x1b6)]=_0x4344eb(0x15f),_0x1507c1[_0x4344eb(0x187)]=_0x4344eb(0x171),_0x1507c1[_0x4344eb(0x16f)]=_0x4344eb(0x1de),_0x1507c1[_0x4344eb(0x175)]=_0x4344eb(0x168),_0x1507c1[_0x4344eb(0x1cf)]=_0x4344eb(0x1e9);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x267803{[_0x999e19(0x1d7)];[_0x999e19(0x1db)];[_0x999e19(0x173)];static get[_0x999e19(0x1a7)](){const _0x40a448=_0x999e19;return[_0x40a448(0x16a)];}static get[_0x999e19(0x19a)](){const _0x3cb61d=_0x999e19;return _0x3cb61d(0x1c9);}static get[_0x999e19(0x17b)](){return!0x0;}static get[_0x999e19(0x1e5)](){return!0x0;}constructor(_0x526c1c){const _0x404b2f=_0x999e19;super(_0x526c1c),this[_0x404b2f(0x167)][_0x404b2f(0x186)][_0x404b2f(0x195)](_0x404b2f(0x1d8),_0x404b2f(0x172)),this[_0x404b2f(0x1d7)]=this[_0x404b2f(0x167)][_0x404b2f(0x186)][_0x404b2f(0x188)](_0x404b2f(0x1d8)),this[_0x404b2f(0x1db)]=null,this[_0x404b2f(0x173)]=new TextDecoder();}[_0x999e19(0x169)](){const _0x358109=_0x999e19,_0x4d58c5=this[_0x358109(0x167)][_0x358109(0x17c)][_0x358109(0x188)](_0x358109(0x16a));if(!_0x4d58c5[_0x358109(0x19f)])throw new _0x13c841(_0x358109(0x1e3),this);this[_0x358109(0x1db)]=_0x4d58c5[_0x358109(0x19f)];}[_0x999e19(0x1c1)](_0x4a8935,_0x39e632){const _0x2f33b3=_0x999e19,_0x1d624f=this[_0x2f33b3(0x1d4)](_0x2f33b3(0x1aa),_0x2f33b3(0x1b0),{'id':_0x4a8935,'group':_0x39e632});return{'getConversation':async()=>(await _0x1d624f[_0x2f33b3(0x1bf)])[_0x2f33b3(0x181)](),'abortController':_0x1d624f[_0x2f33b3(0x1ba)]};}[_0x999e19(0x194)]({message:_0xaae7a9,conversationId:_0x133b9e,parts:_0x1d69a9,capabilities:_0x34073c,model:_0x374672,quickActionData:_0x5904f9}){const _0x482af1=_0x999e19,_0x484560={..._0x5904f9&&{'quickActionData':_0x5904f9}},_0x394cb1={'prompt':_0xaae7a9,'content':_0x1d69a9,'model':_0x374672,..._0x34073c&&{'capabilities':_0x34073c},...Object[_0x482af1(0x1b3)](_0x484560)[_0x482af1(0x1ec)]>0x0&&{'attributes':_0x484560}},_0x4338e9=this[_0x482af1(0x1d4)](_0x482af1(0x1c2)+_0x133b9e+_0x482af1(0x1ea),_0x482af1(0x1b0),_0x394cb1);return{'getStream':async()=>{const _0x342ec1=_0x482af1,_0x270e3e=(await _0x4338e9[_0x342ec1(0x1bf)])[_0x342ec1(0x1b5)];return this[_0x342ec1(0x1cb)](_0x270e3e);},'abortController':_0x4338e9[_0x482af1(0x1ba)]};}[_0x999e19(0x1ce)]({content:_0x27d8b4,message:_0x3787e5,model:_0xd25eb1,outputFormat:_0x412f79}){const _0x2539c7=_0x999e19,_0x491d4d={'content':[{'type':_0x2539c7(0x179),'content':_0x27d8b4}],'prompt':_0x3787e5,'model':_0xd25eb1,'outputFormat':_0x412f79},_0x5a1f32=this[_0x2539c7(0x1d4)](_0x2539c7(0x1e7),_0x2539c7(0x1b0),_0x491d4d);return{'getStream':async()=>{const _0x4984f8=_0x2539c7,_0x907cb6=(await _0x5a1f32[_0x4984f8(0x1bf)])[_0x4984f8(0x1b5)];return this[_0x4984f8(0x1cb)](_0x907cb6);},'abortController':_0x5a1f32[_0x2539c7(0x1ba)]};}[_0x999e19(0x196)]({actionName:_0x5cce86,content:_0xce160f,args:_0x5e1aa2}){const _0x1d87d8=_0x999e19,_0x58828a={'content':[{'type':_0x1d87d8(0x179),'content':_0xce160f}],'args':_0x5e1aa2},_0x55d986=this[_0x1d87d8(0x1d4)](_0x1d87d8(0x185)+_0x5cce86+_0x1d87d8(0x197),_0x1d87d8(0x1b0),_0x58828a);return{'getStream':async()=>{const _0x97627c=_0x1d87d8,_0x5d628e=(await _0x55d986[_0x97627c(0x1bf)])[_0x97627c(0x1b5)];return this[_0x97627c(0x1cb)](_0x5d628e);},'abortController':_0x55d986[_0x1d87d8(0x1ba)]};}[_0x999e19(0x1e1)](_0x1345f1,_0x1089fe,_0xac7901){const _0x709ed1=_0x999e19,_0x8efb47=new FormData();_0x8efb47[_0x709ed1(0x16e)](_0x709ed1(0x1bc),_0x1089fe,_0x1089fe[_0x709ed1(0x1cc)]),_0xac7901&&_0x8efb47[_0x709ed1(0x16e)](_0x709ed1(0x166),JSON[_0x709ed1(0x191)](_0xac7901));const _0x387fac=this[_0x709ed1(0x1d4)](_0x709ed1(0x1c2)+_0x1345f1+_0x709ed1(0x17d),_0x709ed1(0x1b0),_0x8efb47);return{'getId':async()=>(await _0x387fac[_0x709ed1(0x1bf)])[_0x709ed1(0x181)](),'abortController':_0x387fac[_0x709ed1(0x1ba)]};}[_0x999e19(0x176)](_0x3e4eee,_0x2ec3c6){const _0x5ebcca=_0x999e19,_0x1de204=this[_0x5ebcca(0x1d4)](_0x5ebcca(0x1c2)+_0x3e4eee+_0x5ebcca(0x1c3)+_0x2ec3c6,_0x5ebcca(0x1a0));return{'getDocument':async()=>(await _0x1de204[_0x5ebcca(0x1bf)])[_0x5ebcca(0x181)](),'abortController':_0x1de204[_0x5ebcca(0x1ba)]};}[_0x999e19(0x163)](_0xa20387,_0x5c3e59,_0x3e51ba){const _0x578de7=_0x999e19,_0x1f15dc={'content':_0x5c3e59};_0x3e51ba&&(_0x1f15dc[_0x578de7(0x166)]=_0x3e51ba);const _0x9ea131=this[_0x578de7(0x1d4)](_0x578de7(0x1c2)+_0xa20387+_0x578de7(0x1df),_0x578de7(0x1b0),_0x1f15dc);return{'getId':async()=>(await _0x9ea131[_0x578de7(0x1bf)])[_0x578de7(0x181)](),'abortController':_0x9ea131[_0x578de7(0x1ba)]};}[_0x999e19(0x18c)](_0x3c48b4,_0x1da85c){const _0x404355=_0x999e19,_0x1a2942=new URLSearchParams();_0x1a2942[_0x404355(0x16e)](_0x404355(0x1ae),_0x404355(0x1ac)),_0x1a2942[_0x404355(0x16e)](_0x404355(0x174),_0x404355(0x19b)),_0x1a2942[_0x404355(0x16e)](_0x404355(0x17a),_0x3c48b4),_0x1da85c&&_0x1a2942[_0x404355(0x16e)](_0x404355(0x1e8),_0x1da85c);const _0x42495c=this[_0x404355(0x1d4)](_0x404355(0x1a8)+_0x1a2942[_0x404355(0x190)](),_0x404355(0x1a0));return{'getConversations':async()=>{const _0x28096c=_0x404355,_0x39b727=await _0x42495c[_0x28096c(0x1bf)];return(await _0x39b727[_0x28096c(0x181)]())[_0x28096c(0x1c7)];},'abortController':_0x42495c[_0x404355(0x1ba)]};}[_0x999e19(0x193)](_0xdca692){const _0x45d2c3=_0x999e19,_0x18f2ee=this[_0x45d2c3(0x1d4)](_0x45d2c3(0x1c2)+_0xdca692,_0x45d2c3(0x165));return{'execute':async()=>{const _0x29b535=_0x45d2c3;await _0x18f2ee[_0x29b535(0x1bf)];},'abortController':_0x18f2ee[_0x45d2c3(0x1ba)]};}[_0x999e19(0x1b2)](_0xec11a3,_0x4ff0c2){const _0x4aebd4=_0x999e19,_0x19908c=this[_0x4aebd4(0x1d4)](_0x4aebd4(0x1c2)+_0xec11a3,_0x4aebd4(0x1af),_0x4ff0c2);return{'getResult':async()=>(await _0x19908c[_0x4aebd4(0x1bf)],_0x4ff0c2),'abortController':_0x19908c[_0x4aebd4(0x1ba)]};}[_0x999e19(0x15d)](_0x43763b){const _0x587b98=_0x999e19,_0x16b3c4=this[_0x587b98(0x1d4)](_0x587b98(0x1c2)+_0x43763b,_0x587b98(0x1a0));return{'getConversation':async()=>(await _0x16b3c4[_0x587b98(0x1bf)])[_0x587b98(0x181)](),'abortController':_0x16b3c4[_0x587b98(0x1ba)]};}[_0x999e19(0x162)](_0x5538ef){const _0x5bfcb4=_0x999e19,_0x35b416=this[_0x5bfcb4(0x1d4)](_0x5bfcb4(0x1c2)+_0x5538ef+_0x5bfcb4(0x1ea),_0x5bfcb4(0x1a0));return{'getMessages':async()=>{const _0x43a775=_0x5bfcb4,_0x1969f1=await _0x35b416[_0x43a775(0x1bf)];return(await _0x1969f1[_0x43a775(0x181)]())[_0x43a775(0x1c7)];},'abortController':_0x35b416[_0x5bfcb4(0x1ba)]};}[_0x999e19(0x17e)](_0x2932fb,_0x2e35f8,_0x18638a){const _0x397e6a=_0x999e19,_0x5cfef5=this[_0x397e6a(0x1d4)](_0x397e6a(0x1c2)+_0x2932fb+_0x397e6a(0x18e),_0x397e6a(0x1b0),{'url':_0x2e35f8,'attributes':_0x18638a});return{'getId':async()=>(await _0x5cfef5[_0x397e6a(0x1bf)])[_0x397e6a(0x181)](),'abortController':_0x5cfef5[_0x397e6a(0x1ba)]};}[_0x999e19(0x1da)](_0x37a4a2='en'){const _0x4f764f=_0x999e19,_0x1cae19=new URLSearchParams();_0x1cae19[_0x4f764f(0x16e)](_0x4f764f(0x1b9),_0x37a4a2);const _0x461940=_0x4f764f(0x1a3)+_0x1cae19[_0x4f764f(0x190)](),_0x4d3e41=this[_0x4f764f(0x1d4)](_0x461940,_0x4f764f(0x1a0));return{'list':async()=>await(await _0x4d3e41[_0x4f764f(0x1bf)])[_0x4f764f(0x181)](),'abortController':_0x4d3e41[_0x4f764f(0x1ba)]};}[_0x999e19(0x1a9)](_0x19024d,_0x4cb4e2){const _0x23d999=_0x999e19,_0x2cf8ee=this[_0x23d999(0x1d4)](_0x23d999(0x1c2)+_0x19024d+_0x23d999(0x1d2)+_0x4cb4e2,_0x23d999(0x165));return{'execute':async()=>{const _0x578572=_0x23d999;await _0x2cf8ee[_0x578572(0x1bf)];},'abortController':_0x2cf8ee[_0x23d999(0x1ba)]};}[_0x999e19(0x1c8)](_0x5100c6,_0x9afb6d){const _0x5e0607=_0x999e19,_0x25219e=this[_0x5e0607(0x1d4)](_0x5e0607(0x1c2)+_0x5100c6+_0x5e0607(0x1c3)+_0x9afb6d,_0x5e0607(0x165));return{'execute':async()=>{const _0x1be8c2=_0x5e0607;await _0x25219e[_0x1be8c2(0x1bf)];},'abortController':_0x25219e[_0x5e0607(0x1ba)]};}[_0x999e19(0x17f)](_0x16858,_0x4b82e0){const _0x44fea=_0x999e19,_0x1c2875=this[_0x44fea(0x1d4)](_0x44fea(0x1c2)+_0x16858+_0x44fea(0x1a1)+_0x4b82e0,_0x44fea(0x165));return{'execute':async()=>{const _0x52472f=_0x44fea;await _0x1c2875[_0x52472f(0x1bf)];},'abortController':_0x1c2875[_0x44fea(0x1ba)]};}[_0x999e19(0x1ca)]({reviewName:_0x4da533,content:_0x5e26a5,args:_0x39dfcb}){const _0x1612c7=_0x999e19,_0x3c3674=this[_0x1612c7(0x1d4)](_0x1612c7(0x183)+_0x4da533+_0x1612c7(0x197),_0x1612c7(0x1b0),{'content':[{'type':_0x1612c7(0x179),'content':_0x5e26a5}],'args':_0x39dfcb});return{'getStream':async()=>{const _0x216410=_0x1612c7,_0x22fa5f=(await _0x3c3674[_0x216410(0x1bf)])[_0x216410(0x1b5)];return this[_0x216410(0x1cb)](_0x22fa5f);},'abortController':_0x3c3674[_0x1612c7(0x1ba)]};}[_0x999e19(0x1e6)]({content:_0x21bc01,prompt:_0x116dab,model:_0x1f4954}){const _0x4e5676=_0x999e19,_0x4b15e2=this[_0x4e5676(0x1d4)](_0x4e5676(0x1dc),_0x4e5676(0x1b0),{'content':[{'type':_0x4e5676(0x179),'content':_0x21bc01}],'prompt':_0x116dab,'model':_0x1f4954});return{'getStream':async()=>{const _0x1b5f1a=_0x4e5676,_0x4d97b8=(await _0x4b15e2[_0x1b5f1a(0x1bf)])[_0x1b5f1a(0x1b5)];return this[_0x1b5f1a(0x1cb)](_0x4d97b8);},'abortController':_0x4b15e2[_0x4e5676(0x1ba)]};}[_0x999e19(0x1c0)](_0xa48a06,_0x362375,_0x2b99f0){const _0x273f37=_0x999e19,_0x4ece05=this[_0x273f37(0x1d4)](_0x273f37(0x1c2)+_0xa48a06+_0x273f37(0x1ad)+_0x362375+_0x273f37(0x1a4),_0x273f37(0x182),{'positiveCount':_0x2b99f0[_0x273f37(0x19e)],'totalCount':_0x2b99f0[_0x273f37(0x1e0)],'modificationId':_0x2b99f0[_0x273f37(0x1d9)]});return{'execute':async()=>{const _0x5ef030=_0x273f37;await _0x4ece05[_0x5ef030(0x1bf)];},'abortController':_0x4ece05[_0x273f37(0x1ba)]};}[_0x999e19(0x1ab)](_0x3cd72e,_0x18f03f,_0x1f59d6){const _0x4a1b6f=_0x999e19,_0x50e197=this[_0x4a1b6f(0x1d4)](_0x4a1b6f(0x185)+_0x3cd72e+_0x4a1b6f(0x1eb)+_0x18f03f+_0x4a1b6f(0x1a4),_0x4a1b6f(0x182),{'positiveCount':_0x1f59d6[_0x4a1b6f(0x19e)],'totalCount':_0x1f59d6[_0x4a1b6f(0x1e0)]});return{'execute':async()=>{const _0x5f42c5=_0x4a1b6f;await _0x50e197[_0x5f42c5(0x1bf)];},'abortController':_0x50e197[_0x4a1b6f(0x1ba)]};}[_0x999e19(0x1cd)](_0x6dce0f,_0x5a60ec){const _0x498e2f=_0x999e19,_0x3406ae=this[_0x498e2f(0x1d4)](_0x498e2f(0x1e2)+_0x6dce0f+_0x498e2f(0x1a4),_0x498e2f(0x182),{'positiveCount':_0x5a60ec[_0x498e2f(0x19e)],'totalCount':_0x5a60ec[_0x498e2f(0x1e0)]});return{'execute':async()=>{const _0x3ff520=_0x498e2f;await _0x3406ae[_0x3ff520(0x1bf)];},'abortController':_0x3406ae[_0x498e2f(0x1ba)]};}[_0x999e19(0x1a6)](_0x2ce812,_0x1efe72,_0x369639,_0x5da46f){const _0x212197=_0x999e19,_0x319d30=this[_0x212197(0x1d4)](_0x212197(0x183)+_0x2ce812+_0x212197(0x1eb)+_0x1efe72+_0x212197(0x1a4),_0x212197(0x182),{'positiveCount':_0x369639[_0x212197(0x19e)],'totalCount':_0x369639[_0x212197(0x1e0)],'dataId':_0x5da46f});return{'execute':async()=>{const _0x51d011=_0x212197;await _0x319d30[_0x51d011(0x1bf)];},'abortController':_0x319d30[_0x212197(0x1ba)]};}[_0x999e19(0x160)](_0xeacabd,_0x35ea33,_0x3dd2f8){const _0x2bf5c1=_0x999e19,_0x54f489=this[_0x2bf5c1(0x1d4)](_0x2bf5c1(0x1bd)+_0xeacabd+_0x2bf5c1(0x1a4),_0x2bf5c1(0x182),{'positiveCount':_0x35ea33[_0x2bf5c1(0x19e)],'totalCount':_0x35ea33[_0x2bf5c1(0x1e0)],'dataId':_0x3dd2f8});return{'execute':async()=>{const _0x6be3b3=_0x2bf5c1;await _0x54f489[_0x6be3b3(0x1bf)];},'abortController':_0x54f489[_0x2bf5c1(0x1ba)]};}[_0x999e19(0x1d4)](_0x394025,_0x43ccd7,_0x5bc19d){const _0x20bb28=_0x999e19,_0xe8cc5=new AbortController(),_0x599cb3=_0x5bc19d instanceof FormData,_0x586e89={'Authorization':_0x20bb28(0x16c)+this[_0x20bb28(0x1db)]?.[_0x20bb28(0x1f0)]};_0x5bc19d&&!_0x599cb3&&(_0x586e89[_0x20bb28(0x198)]=_0x20bb28(0x1e4));const _0x32b2c3={'method':_0x43ccd7,'headers':_0x586e89,'signal':_0xe8cc5[_0x20bb28(0x1d0)]};return _0x5bc19d&&(_0x32b2c3[_0x20bb28(0x1b5)]=_0x599cb3?_0x5bc19d:JSON[_0x20bb28(0x191)](_0x5bc19d)),{'request':fetch(''+this[_0x20bb28(0x1d7)]+_0x394025,_0x32b2c3)[_0x20bb28(0x189)](_0xfdbd3a=>{const _0x3a60b7=_0x20bb28;this[_0x3a60b7(0x1be)](_0xfdbd3a);})[_0x20bb28(0x184)](_0xec1756=>_0xec1756['ok']?_0xec1756:_0xec1756[_0x20bb28(0x181)]()[_0x20bb28(0x184)](_0x44f358=>{const _0x527ab8=_0x20bb28;throw{'url':this[_0x527ab8(0x1d7)],'path':_0x394025,'method':_0x43ccd7,'body':_0x5bc19d,'status':(_0xec1756||{})[_0x527ab8(0x16b)],'statusText':(_0xec1756||{})[_0x527ab8(0x1d5)],'code':_0x44f358[_0x527ab8(0x1c4)],'message':_0x44f358[_0x527ab8(0x1a2)],'traceId':_0x44f358[_0x527ab8(0x1c6)]};})),'abortController':_0xe8cc5};}async*[_0x999e19(0x1cb)](_0x1ecf42){const _0x3761d0=_0x999e19,_0x14379a=[],_0x1b8e9f=_0x1ecf42[_0x3761d0(0x15c)](),_0x3ce99b=_0x42e2dc({'onError':_0x2ab245=>{const _0x103d05=_0x3761d0;this[_0x103d05(0x1be)](_0x2ab245);},'onEvent':_0x240ceb=>{const _0xca1376=_0x3761d0;_0x240ceb[_0xca1376(0x1ee)]=JSON[_0xca1376(0x18b)](_0x240ceb[_0xca1376(0x1ee)]),_0x14379a[_0xca1376(0x1d1)](_0x240ceb);}});try{let _0x100a88=!0x1;for(;!_0x100a88;){const {done:_0x102e4c,value:_0xdfc6a3}=await _0x1b8e9f[_0x3761d0(0x16d)]();_0x102e4c&&(_0x100a88=!0x0),_0x3ce99b[_0x3761d0(0x170)](this[_0x3761d0(0x173)][_0x3761d0(0x192)](_0xdfc6a3,{'stream':!0x0})),yield*_0x14379a,_0x14379a[_0x3761d0(0x1ec)]=0x0;}}catch(_0x43f139){this[_0x3761d0(0x1be)](_0x43f139);}finally{_0x1b8e9f[_0x3761d0(0x161)](),_0x3ce99b[_0x3761d0(0x1d3)]();}}[_0x999e19(0x1be)](_0x10068b){const _0x1ecfcf=_0x999e19;if(_0x10068b instanceof _0x13c841)throw _0x10068b;if(_0x10068b instanceof Error&&_0x1ecfcf(0x180)===_0x10068b[_0x1ecfcf(0x1cc)])throw new _0x13c841(_0x1ecfcf(0x177),this,{'originalError':_0x10068b});throw new _0x13c841(_0x1ecfcf(0x18a),this,{'originalError':_0x10068b});}}
23
+ const _0xcd2a03=_0x5483;(function(_0x17ecee,_0x33c4d9){const _0xdb371a=_0x5483,_0x4c9888=_0x17ecee();while(!![]){try{const _0x428c17=parseInt(_0xdb371a(0x203))/0x1+parseInt(_0xdb371a(0x20f))/0x2+parseInt(_0xdb371a(0x238))/0x3+parseInt(_0xdb371a(0x254))/0x4+-parseInt(_0xdb371a(0x206))/0x5*(-parseInt(_0xdb371a(0x1d5))/0x6)+-parseInt(_0xdb371a(0x1ee))/0x7+-parseInt(_0xdb371a(0x1db))/0x8;if(_0x428c17===_0x33c4d9)break;else _0x4c9888['push'](_0x4c9888['shift']());}catch(_0x49c440){_0x4c9888['push'](_0x4c9888['shift']());}}}(_0x585a,0x572b8));function _0x585a(){const _0x4fc3e0=['abortController','MAKE_LONGER','feed','/messages/','status','/files/','make-longer','/web-resources','make-tone-formal','474439GKjiEM','_sendApiRequest','/actions/custom/calls/','290760PDaPsI','limit','/documents','upsertCustomAIActionRating','toString','uploadUrl','deleteConversation','message','/web-resources/','1309290QVrHDb','/documents/','catch','/reviews/custom/calls/','continue','keys','AbortError','fetchConversationMessages','search','ai-request-aborted','fetchConversations','value','get','data','getReader','push','uploadFile','decode','MAKE_SHORTER','deleteFile','/models/1?','PATCH','traceId','length','ai.serviceUrl','GET','isOfficialPlugin','AIConnector','parse','releaseLock','_handleError','define','fetchDocument','uploadDocument','/ratings','attributes','FIX_GRAMMAR','read','/actions/system/','make-tone-casual','callCustomReview','2011941nyxUNZ','IMPROVE_WRITING','statusText','language','deleteDocument','config','https://ai.cke-cs.com/v1','TRANSLATE','_decoder','pluginName','modificationId','_token','init','updateConversation','/calls/','startConversation','queryAssistant','isPremiumPlugin','items','_apiUrl','true','body','fix-grammar','PUT','stringify','executeAction','/reviews/system/','json','1588132dXNgaJ','/conversations','Content-Type','requires','/conversations/','file','executeCustomAction','callSystemReview','text','positiveCount','upsertAIChatRating','/reviews/custom/calls','/files','POST','Bearer\x20','/messages','make-shorter','66OKMlzy','request','upsertAIReviewRating','group','100','translate','17088280qTiKNA','getModels','ai-request-failed','/actions/custom/calls','upsertCustomAIReviewRating','code','CloudServices','/conversations?','/calls','name','signal','CONTINUE','DELETE','reset','_getStreamReader','context','improve-writing','MAKE_TONE_CASUAL','then','2403471NeWMHX','totalCount','deleteWebResource','MAKE_TONE_FORMAL','upsertAIActionRating','token','excludeEmpty','ai-missing-token','fetchConversation','application/json','plugins','append'];_0x585a=function(){return _0x4fc3e0;};return _0x585a();}import{createParser as _0x90b4bd}from'eventsource-parser';import{ContextPlugin as _0xcfde16}from'ckeditor5/src/core.js';function _0x5483(_0x55a226,_0x3ad0cb){const _0x585a4a=_0x585a();return _0x5483=function(_0x5483b5,_0x5cbded){_0x5483b5=_0x5483b5-0x1c9;let _0x3f50e9=_0x585a4a[_0x5483b5];return _0x3f50e9;},_0x5483(_0x55a226,_0x3ad0cb);}import{CKEditorError as _0x488115}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x136996){const _0x27fc3e=_0x5483;_0x136996[_0x27fc3e(0x1e6)]=_0x27fc3e(0x213),_0x136996[_0x27fc3e(0x233)]=_0x27fc3e(0x24e),_0x136996[_0x27fc3e(0x239)]=_0x27fc3e(0x1eb),_0x136996[_0x27fc3e(0x1fb)]=_0x27fc3e(0x200),_0x136996[_0x27fc3e(0x221)]=_0x27fc3e(0x1d4),_0x136996[_0x27fc3e(0x1ec)]=_0x27fc3e(0x236),_0x136996[_0x27fc3e(0x1f1)]=_0x27fc3e(0x202),_0x136996[_0x27fc3e(0x23f)]=_0x27fc3e(0x1da);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xcfde16{[_0xcd2a03(0x24b)];[_0xcd2a03(0x243)];[_0xcd2a03(0x240)];static get[_0xcd2a03(0x257)](){const _0x27c37f=_0xcd2a03;return[_0x27c37f(0x1e1)];}static get[_0xcd2a03(0x241)](){const _0xd9a384=_0xcd2a03;return _0xd9a384(0x22a);}static get[_0xcd2a03(0x229)](){return!0x0;}static get[_0xcd2a03(0x249)](){return!0x0;}constructor(_0x41fedf){const _0x28849b=_0xcd2a03;super(_0x41fedf),this[_0x28849b(0x1ea)][_0x28849b(0x23d)][_0x28849b(0x22e)](_0x28849b(0x227),_0x28849b(0x23e)),this[_0x28849b(0x24b)]=this[_0x28849b(0x1ea)][_0x28849b(0x23d)][_0x28849b(0x21b)](_0x28849b(0x227)),this[_0x28849b(0x243)]=null,this[_0x28849b(0x240)]=new TextDecoder();}[_0xcd2a03(0x244)](){const _0x3f6fa7=_0xcd2a03,_0x59146a=this[_0x3f6fa7(0x1ea)][_0x3f6fa7(0x1f8)][_0x3f6fa7(0x21b)](_0x3f6fa7(0x1e1));if(!_0x59146a[_0x3f6fa7(0x1f3)])throw new _0x488115(_0x3f6fa7(0x1f5),this);this[_0x3f6fa7(0x243)]=_0x59146a[_0x3f6fa7(0x1f3)];}[_0xcd2a03(0x247)](_0x3395e1,_0x457be9){const _0x1b3403=_0xcd2a03,_0x1a4584=this[_0x1b3403(0x204)](_0x1b3403(0x255),_0x1b3403(0x1d1),{'id':_0x3395e1,'group':_0x457be9});return{'getConversation':async()=>(await _0x1a4584[_0x1b3403(0x1d6)])[_0x1b3403(0x253)](),'abortController':_0x1a4584[_0x1b3403(0x1fa)]};}[_0xcd2a03(0x248)]({message:_0x6b8579,conversationId:_0x3ff35d,parts:_0x2cf089,capabilities:_0x31c4c6,model:_0xcf0cb5,quickActionData:_0x4e5dbf}){const _0x1b44a5=_0xcd2a03,_0x140e2a={..._0x4e5dbf&&{'quickActionData':_0x4e5dbf}},_0xa1dc39={'prompt':_0x6b8579,'content':_0x2cf089,'model':_0xcf0cb5,..._0x31c4c6&&{'capabilities':_0x31c4c6},...Object[_0x1b44a5(0x214)](_0x140e2a)[_0x1b44a5(0x226)]>0x0&&{'attributes':_0x140e2a}},_0x1fcb45=this[_0x1b44a5(0x204)](_0x1b44a5(0x258)+_0x3ff35d+_0x1b44a5(0x1d3),_0x1b44a5(0x1d1),_0xa1dc39);return{'getStream':async()=>{const _0x25e204=_0x1b44a5,_0x27b74a=(await _0x1fcb45[_0x25e204(0x1d6)])[_0x25e204(0x24d)];return this[_0x25e204(0x1e9)](_0x27b74a);},'abortController':_0x1fcb45[_0x1b44a5(0x1fa)]};}[_0xcd2a03(0x1ca)]({content:_0xcfd271,message:_0x5b3491,model:_0xd475a3,outputFormat:_0x5cf5ba}){const _0x19cf88=_0xcd2a03,_0x22bca6={'content':[{'type':_0x19cf88(0x1cc),'content':_0xcfd271}],'prompt':_0x5b3491,'model':_0xd475a3,'outputFormat':_0x5cf5ba},_0x50d80c=this[_0x19cf88(0x204)](_0x19cf88(0x1de),_0x19cf88(0x1d1),_0x22bca6);return{'getStream':async()=>{const _0xe7401f=_0x19cf88,_0x4ec200=(await _0x50d80c[_0xe7401f(0x1d6)])[_0xe7401f(0x24d)];return this[_0xe7401f(0x1e9)](_0x4ec200);},'abortController':_0x50d80c[_0x19cf88(0x1fa)]};}[_0xcd2a03(0x251)]({actionName:_0xb73763,content:_0x48b679,args:_0x51c866}){const _0x4def72=_0xcd2a03,_0xd67dd={'content':[{'type':_0x4def72(0x1cc),'content':_0x48b679}],'args':_0x51c866},_0xdebc64=this[_0x4def72(0x204)](_0x4def72(0x235)+_0xb73763+_0x4def72(0x1e3),_0x4def72(0x1d1),_0xd67dd);return{'getStream':async()=>{const _0x2b1a4a=_0x4def72,_0x5d41bc=(await _0xdebc64[_0x2b1a4a(0x1d6)])[_0x2b1a4a(0x24d)];return this[_0x2b1a4a(0x1e9)](_0x5d41bc);},'abortController':_0xdebc64[_0x4def72(0x1fa)]};}[_0xcd2a03(0x21f)](_0x10e7e6,_0x523982,_0x18c5b7){const _0x16c8fc=_0xcd2a03,_0x471958=new FormData();_0x471958[_0x16c8fc(0x1f9)](_0x16c8fc(0x1c9),_0x523982,_0x523982[_0x16c8fc(0x1e4)]),_0x18c5b7&&_0x471958[_0x16c8fc(0x1f9)](_0x16c8fc(0x232),JSON[_0x16c8fc(0x250)](_0x18c5b7));const _0xd58731=this[_0x16c8fc(0x204)](_0x16c8fc(0x258)+_0x10e7e6+_0x16c8fc(0x1d0),_0x16c8fc(0x1d1),_0x471958);return{'getId':async()=>(await _0xd58731[_0x16c8fc(0x1d6)])[_0x16c8fc(0x253)](),'abortController':_0xd58731[_0x16c8fc(0x1fa)]};}[_0xcd2a03(0x22f)](_0xd51bda,_0xab815d){const _0x2ed7fb=_0xcd2a03,_0x447138=this[_0x2ed7fb(0x204)](_0x2ed7fb(0x258)+_0xd51bda+_0x2ed7fb(0x210)+_0xab815d,_0x2ed7fb(0x228));return{'getDocument':async()=>(await _0x447138[_0x2ed7fb(0x1d6)])[_0x2ed7fb(0x253)](),'abortController':_0x447138[_0x2ed7fb(0x1fa)]};}[_0xcd2a03(0x230)](_0x47d441,_0x1f4940,_0x18aeaf){const _0x18f856=_0xcd2a03,_0x1b5c46={'content':_0x1f4940};_0x18aeaf&&(_0x1b5c46[_0x18f856(0x232)]=_0x18aeaf);const _0x125f2a=this[_0x18f856(0x204)](_0x18f856(0x258)+_0x47d441+_0x18f856(0x208),_0x18f856(0x1d1),_0x1b5c46);return{'getId':async()=>(await _0x125f2a[_0x18f856(0x1d6)])[_0x18f856(0x253)](),'abortController':_0x125f2a[_0x18f856(0x1fa)]};}[_0xcd2a03(0x219)](_0x7140ed,_0x1a00fb){const _0x137abc=_0xcd2a03,_0x5ceeaf=new URLSearchParams();_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x1f4),_0x137abc(0x24c)),_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x207),_0x137abc(0x1d9)),_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x1d8),_0x7140ed),_0x1a00fb&&_0x5ceeaf[_0x137abc(0x1f9)](_0x137abc(0x217),_0x1a00fb);const _0x4d951d=this[_0x137abc(0x204)](_0x137abc(0x1e2)+_0x5ceeaf[_0x137abc(0x20a)](),_0x137abc(0x228));return{'getConversations':async()=>{const _0x13cddc=_0x137abc,_0x471d1f=await _0x4d951d[_0x13cddc(0x1d6)];return(await _0x471d1f[_0x13cddc(0x253)]())[_0x13cddc(0x24a)];},'abortController':_0x4d951d[_0x137abc(0x1fa)]};}[_0xcd2a03(0x20c)](_0x232b2b){const _0x5aece5=_0xcd2a03,_0x4a7617=this[_0x5aece5(0x204)](_0x5aece5(0x258)+_0x232b2b,_0x5aece5(0x1e7));return{'execute':async()=>{const _0x326266=_0x5aece5;await _0x4a7617[_0x326266(0x1d6)];},'abortController':_0x4a7617[_0x5aece5(0x1fa)]};}[_0xcd2a03(0x245)](_0x5031e5,_0x1ad662){const _0x325905=_0xcd2a03,_0x43549c=this[_0x325905(0x204)](_0x325905(0x258)+_0x5031e5,_0x325905(0x224),_0x1ad662);return{'getResult':async()=>(await _0x43549c[_0x325905(0x1d6)],_0x1ad662),'abortController':_0x43549c[_0x325905(0x1fa)]};}[_0xcd2a03(0x1f6)](_0x51967a){const _0x5b83d3=_0xcd2a03,_0x306b2b=this[_0x5b83d3(0x204)](_0x5b83d3(0x258)+_0x51967a,_0x5b83d3(0x228));return{'getConversation':async()=>(await _0x306b2b[_0x5b83d3(0x1d6)])[_0x5b83d3(0x253)](),'abortController':_0x306b2b[_0x5b83d3(0x1fa)]};}[_0xcd2a03(0x216)](_0x3cb852){const _0x38a906=_0xcd2a03,_0x4c7e36=this[_0x38a906(0x204)](_0x38a906(0x258)+_0x3cb852+_0x38a906(0x1d3),_0x38a906(0x228));return{'getMessages':async()=>{const _0x55bf07=_0x38a906,_0x336d2c=await _0x4c7e36[_0x55bf07(0x1d6)];return(await _0x336d2c[_0x55bf07(0x253)]())[_0x55bf07(0x24a)];},'abortController':_0x4c7e36[_0x38a906(0x1fa)]};}[_0xcd2a03(0x20b)](_0x339644,_0x4861ec,_0xc77297){const _0x11b72a=_0xcd2a03,_0x508a7e=this[_0x11b72a(0x204)](_0x11b72a(0x258)+_0x339644+_0x11b72a(0x201),_0x11b72a(0x1d1),{'url':_0x4861ec,'attributes':_0xc77297});return{'getId':async()=>(await _0x508a7e[_0x11b72a(0x1d6)])[_0x11b72a(0x253)](),'abortController':_0x508a7e[_0x11b72a(0x1fa)]};}[_0xcd2a03(0x1dc)](_0x3423ae='en'){const _0x475280=_0xcd2a03,_0x15b8af=new URLSearchParams();_0x15b8af[_0x475280(0x1f9)](_0x475280(0x23b),_0x3423ae);const _0x479bd8=_0x475280(0x223)+_0x15b8af[_0x475280(0x20a)](),_0x401ec3=this[_0x475280(0x204)](_0x479bd8,_0x475280(0x228));return{'list':async()=>await(await _0x401ec3[_0x475280(0x1d6)])[_0x475280(0x253)](),'abortController':_0x401ec3[_0x475280(0x1fa)]};}[_0xcd2a03(0x222)](_0x4cae0c,_0x3acecb){const _0x3d0efb=_0xcd2a03,_0x2d295b=this[_0x3d0efb(0x204)](_0x3d0efb(0x258)+_0x4cae0c+_0x3d0efb(0x1ff)+_0x3acecb,_0x3d0efb(0x1e7));return{'execute':async()=>{const _0x3c126d=_0x3d0efb;await _0x2d295b[_0x3c126d(0x1d6)];},'abortController':_0x2d295b[_0x3d0efb(0x1fa)]};}[_0xcd2a03(0x23c)](_0x3b9669,_0x5c1497){const _0xd1e23=_0xcd2a03,_0x2e9d85=this[_0xd1e23(0x204)](_0xd1e23(0x258)+_0x3b9669+_0xd1e23(0x210)+_0x5c1497,_0xd1e23(0x1e7));return{'execute':async()=>{const _0x3d236d=_0xd1e23;await _0x2e9d85[_0x3d236d(0x1d6)];},'abortController':_0x2e9d85[_0xd1e23(0x1fa)]};}[_0xcd2a03(0x1f0)](_0x46628e,_0x11a3a4){const _0x334a87=_0xcd2a03,_0x48b9a1=this[_0x334a87(0x204)](_0x334a87(0x258)+_0x46628e+_0x334a87(0x20e)+_0x11a3a4,_0x334a87(0x1e7));return{'execute':async()=>{const _0x4ce17f=_0x334a87;await _0x48b9a1[_0x4ce17f(0x1d6)];},'abortController':_0x48b9a1[_0x334a87(0x1fa)]};}[_0xcd2a03(0x1cb)]({reviewName:_0x2854cc,content:_0x173bfc,args:_0x2527da}){const _0x5778f7=_0xcd2a03,_0xc65d7b=this[_0x5778f7(0x204)](_0x5778f7(0x252)+_0x2854cc+_0x5778f7(0x1e3),_0x5778f7(0x1d1),{'content':[{'type':_0x5778f7(0x1cc),'content':_0x173bfc}],'args':_0x2527da});return{'getStream':async()=>{const _0x1a4926=_0x5778f7,_0x33f7c2=(await _0xc65d7b[_0x1a4926(0x1d6)])[_0x1a4926(0x24d)];return this[_0x1a4926(0x1e9)](_0x33f7c2);},'abortController':_0xc65d7b[_0x5778f7(0x1fa)]};}[_0xcd2a03(0x237)]({content:_0x5be817,prompt:_0x13330d,model:_0x2f0881}){const _0x1d17fc=_0xcd2a03,_0x313e89=this[_0x1d17fc(0x204)](_0x1d17fc(0x1cf),_0x1d17fc(0x1d1),{'content':[{'type':_0x1d17fc(0x1cc),'content':_0x5be817}],'prompt':_0x13330d,'model':_0x2f0881});return{'getStream':async()=>{const _0x521def=_0x1d17fc,_0x2d7006=(await _0x313e89[_0x521def(0x1d6)])[_0x521def(0x24d)];return this[_0x521def(0x1e9)](_0x2d7006);},'abortController':_0x313e89[_0x1d17fc(0x1fa)]};}[_0xcd2a03(0x1ce)](_0x3afcd0,_0x3d4d7f,_0x173037){const _0x33eed4=_0xcd2a03,_0x4d0e0b=this[_0x33eed4(0x204)](_0x33eed4(0x258)+_0x3afcd0+_0x33eed4(0x1fd)+_0x3d4d7f+_0x33eed4(0x231),_0x33eed4(0x24f),{'positiveCount':_0x173037[_0x33eed4(0x1cd)],'totalCount':_0x173037[_0x33eed4(0x1ef)],'modificationId':_0x173037[_0x33eed4(0x242)]});return{'execute':async()=>{const _0x51d4eb=_0x33eed4;await _0x4d0e0b[_0x51d4eb(0x1d6)];},'abortController':_0x4d0e0b[_0x33eed4(0x1fa)]};}[_0xcd2a03(0x1f2)](_0x4e9171,_0x5b615c,_0xe1c9c){const _0x13ff65=_0xcd2a03,_0x52ee35=this[_0x13ff65(0x204)](_0x13ff65(0x235)+_0x4e9171+_0x13ff65(0x246)+_0x5b615c+_0x13ff65(0x231),_0x13ff65(0x24f),{'positiveCount':_0xe1c9c[_0x13ff65(0x1cd)],'totalCount':_0xe1c9c[_0x13ff65(0x1ef)]});return{'execute':async()=>{const _0x136c37=_0x13ff65;await _0x52ee35[_0x136c37(0x1d6)];},'abortController':_0x52ee35[_0x13ff65(0x1fa)]};}[_0xcd2a03(0x209)](_0x3de589,_0x57e7a5){const _0x453019=_0xcd2a03,_0x1ac504=this[_0x453019(0x204)](_0x453019(0x205)+_0x3de589+_0x453019(0x231),_0x453019(0x24f),{'positiveCount':_0x57e7a5[_0x453019(0x1cd)],'totalCount':_0x57e7a5[_0x453019(0x1ef)]});return{'execute':async()=>{const _0x11a81f=_0x453019;await _0x1ac504[_0x11a81f(0x1d6)];},'abortController':_0x1ac504[_0x453019(0x1fa)]};}[_0xcd2a03(0x1d7)](_0x4f910b,_0x115f1e,_0x4ca020,_0x9e1a75){const _0x5583df=_0xcd2a03,_0x1a0dd0=this[_0x5583df(0x204)](_0x5583df(0x252)+_0x4f910b+_0x5583df(0x246)+_0x115f1e+_0x5583df(0x231),_0x5583df(0x24f),{'positiveCount':_0x4ca020[_0x5583df(0x1cd)],'totalCount':_0x4ca020[_0x5583df(0x1ef)],'dataId':_0x9e1a75});return{'execute':async()=>{const _0x261d30=_0x5583df;await _0x1a0dd0[_0x261d30(0x1d6)];},'abortController':_0x1a0dd0[_0x5583df(0x1fa)]};}[_0xcd2a03(0x1df)](_0x4ec69f,_0x41498d,_0x5193a6){const _0x385843=_0xcd2a03,_0x445771=this[_0x385843(0x204)](_0x385843(0x212)+_0x4ec69f+_0x385843(0x231),_0x385843(0x24f),{'positiveCount':_0x41498d[_0x385843(0x1cd)],'totalCount':_0x41498d[_0x385843(0x1ef)],'dataId':_0x5193a6});return{'execute':async()=>{const _0x29d9bf=_0x385843;await _0x445771[_0x29d9bf(0x1d6)];},'abortController':_0x445771[_0x385843(0x1fa)]};}[_0xcd2a03(0x204)](_0x844ce2,_0x935ddb,_0x1df6ee){const _0x2ca5e6=_0xcd2a03,_0x2507c5=new AbortController(),_0x4119a0=_0x1df6ee instanceof FormData,_0x25853c={'Authorization':_0x2ca5e6(0x1d2)+this[_0x2ca5e6(0x243)]?.[_0x2ca5e6(0x21a)]};_0x1df6ee&&!_0x4119a0&&(_0x25853c[_0x2ca5e6(0x256)]=_0x2ca5e6(0x1f7));const _0xacc775={'method':_0x935ddb,'headers':_0x25853c,'signal':_0x2507c5[_0x2ca5e6(0x1e5)]};return _0x1df6ee&&(_0xacc775[_0x2ca5e6(0x24d)]=_0x4119a0?_0x1df6ee:JSON[_0x2ca5e6(0x250)](_0x1df6ee)),{'request':fetch(''+this[_0x2ca5e6(0x24b)]+_0x844ce2,_0xacc775)[_0x2ca5e6(0x211)](_0x44d301=>{const _0x5557d5=_0x2ca5e6;this[_0x5557d5(0x22d)](_0x44d301);})[_0x2ca5e6(0x1ed)](_0x4ab85c=>_0x4ab85c['ok']?_0x4ab85c:_0x4ab85c[_0x2ca5e6(0x253)]()[_0x2ca5e6(0x1ed)](_0x139361=>{const _0x5e1461=_0x2ca5e6;throw{'url':this[_0x5e1461(0x24b)],'path':_0x844ce2,'method':_0x935ddb,'body':_0x1df6ee,'status':(_0x4ab85c||{})[_0x5e1461(0x1fe)],'statusText':(_0x4ab85c||{})[_0x5e1461(0x23a)],'code':_0x139361[_0x5e1461(0x1e0)],'message':_0x139361[_0x5e1461(0x20d)],'traceId':_0x139361[_0x5e1461(0x225)]};})),'abortController':_0x2507c5};}async*[_0xcd2a03(0x1e9)](_0x1db3dc){const _0x5cd2cc=_0xcd2a03,_0x499eee=[],_0x2e20c7=_0x1db3dc[_0x5cd2cc(0x21d)](),_0x5e19a0=_0x90b4bd({'onError':_0x5a5e8c=>{const _0x56cc50=_0x5cd2cc;this[_0x56cc50(0x22d)](_0x5a5e8c);},'onEvent':_0x1c2fc0=>{const _0x5e9a01=_0x5cd2cc;_0x1c2fc0[_0x5e9a01(0x21c)]=JSON[_0x5e9a01(0x22b)](_0x1c2fc0[_0x5e9a01(0x21c)]),_0x499eee[_0x5e9a01(0x21e)](_0x1c2fc0);}});try{let _0x1e1285=!0x1;for(;!_0x1e1285;){const {done:_0x5b417f,value:_0x2a59a0}=await _0x2e20c7[_0x5cd2cc(0x234)]();_0x5b417f&&(_0x1e1285=!0x0),_0x5e19a0[_0x5cd2cc(0x1fc)](this[_0x5cd2cc(0x240)][_0x5cd2cc(0x220)](_0x2a59a0,{'stream':!0x0})),yield*_0x499eee,_0x499eee[_0x5cd2cc(0x226)]=0x0;}}catch(_0x427ba9){this[_0x5cd2cc(0x22d)](_0x427ba9);}finally{_0x2e20c7[_0x5cd2cc(0x22c)](),_0x5e19a0[_0x5cd2cc(0x1e8)]();}}[_0xcd2a03(0x22d)](_0x1fe36e){const _0x16eb4c=_0xcd2a03;if(_0x1fe36e instanceof _0x488115)throw _0x1fe36e;if(_0x1fe36e instanceof Error&&_0x16eb4c(0x215)===_0x1fe36e[_0x16eb4c(0x1e4)])throw new _0x488115(_0x16eb4c(0x218),this,{'originalError':_0x1fe36e});throw new _0x488115(_0x16eb4c(0x1dd),this,{'originalError':_0x1fe36e});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ebb94=_0x359d;(function(_0x5c35c3,_0x3d88bd){const _0x4778df=_0x359d,_0x29ee0f=_0x5c35c3();while(!![]){try{const _0x29c55d=parseInt(_0x4778df(0x89))/0x1*(-parseInt(_0x4778df(0xc0))/0x2)+-parseInt(_0x4778df(0x9a))/0x3*(-parseInt(_0x4778df(0xdd))/0x4)+parseInt(_0x4778df(0xce))/0x5+parseInt(_0x4778df(0xb6))/0x6+parseInt(_0x4778df(0xc8))/0x7*(-parseInt(_0x4778df(0xa0))/0x8)+parseInt(_0x4778df(0xcb))/0x9*(-parseInt(_0x4778df(0xc1))/0xa)+-parseInt(_0x4778df(0x80))/0xb;if(_0x29c55d===_0x3d88bd)break;else _0x29ee0f['push'](_0x29ee0f['shift']());}catch(_0x19a0b7){_0x29ee0f['push'](_0x29ee0f['shift']());}}}(_0xb1fc,0xdccee));import{ViewDowncastWriter as _0x2ec56f}from'ckeditor5/src/engine.js';import{ContextPlugin as _0xed08e0,Editor as _0x4e292f}from'ckeditor5/src/core.js';import{uid as _0x56212e}from'ckeditor5/src/utils.js';function _0x359d(_0xef9f59,_0x43b2cc){const _0xb1fc65=_0xb1fc();return _0x359d=function(_0x359d5c,_0x3d7d33){_0x359d5c=_0x359d5c-0x77;let _0x50688=_0xb1fc65[_0x359d5c];return _0x50688;},_0x359d(_0xef9f59,_0x43b2cc);}import{getEditorFromContext as _0x3ad0a5}from'./utils/geteditorfromcontext.js';function _0xb1fc(){const _0xfcd257=['427838uLAPQC','100PgTSEM','hideFakeVisualSelection','markerName','floor','markers','getRoot','createRange','3634351Hevcsr','_getMarkersInDocumentOrder','markerToHighlight','269406rJBCkN','editors','isContent','929365lhjVMe','processor','push','ai-selection','_displayedFakeSelectionId','editingDowncast','afterInit','from','isBefore',':start>','modelToViewWithIds','RealTimeCollaborationClient','ai-selection:','getWalker','isAfter','5235452LMJhYu','editing','removeAllRanges',':end>','_integrateEditor','model',':end></','createRangeIn','fromCharCode','getMarkersGroup','createUIElement','conversion','emptyElement','479468aVdWEq','element','end','document','isOfficialPlugin','getStart','listenTo','dataDowncast','pluginName','1GFwswq','view','getSelection','join','length','sort','removeMarker','toView','has','sessionId','getDocumentData','substring','selection','isPremiumPlugin','$textProxy','trim','data','3YtLjwA','change','isAtEnd','getLastMatchingPosition','getChildren',':start></','24FZCJDJ','schema','setAttribute','context','getSelectionText','version','get','add','_setDataIdsOnChildren','_sessionId','indexOf','showFakeVisualSelection','start','data-id','for','convertAiChatSelectionMarker','random','ready','isOpening','_nextDataId','getSelectedContent','name','9144720QkZNvS','containerElement','addMarker','_displayedFakeSelectionLocked','AIEditing','ck-fake-ai-selection','toData','ck-ai-assistant-ui_theme','plugins','markerToElement'];_0xb1fc=function(){return _0xfcd257;};return _0xb1fc();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2ebb94(0xd1);export class AIEditing extends _0xed08e0{[_0x2ebb94(0xd2)]=null;[_0x2ebb94(0xb9)]=!0x1;[_0x2ebb94(0xa9)];static get[_0x2ebb94(0x88)](){const _0x2de4ed=_0x2ebb94;return _0x2de4ed(0xba);}static get[_0x2ebb94(0x84)](){return!0x0;}static get[_0x2ebb94(0x96)](){return!0x0;}get[_0x2ebb94(0x92)](){const _0x3d24b9=_0x2ebb94;if(!this[_0x3d24b9(0xa9)]){const _0x1ee097=_0x3ad0a5(this[_0x3d24b9(0xa3)]),_0x13ee2a=_0x1ee097[_0x3d24b9(0xbe)][_0x3d24b9(0x91)](_0x3d24b9(0xd9))&&_0x1ee097[_0x3d24b9(0xbe)][_0x3d24b9(0xa6)](_0x3d24b9(0xd9))[_0x3d24b9(0x92)];this[_0x3d24b9(0xa9)]=_0x13ee2a||_0x56212e();}return this[_0x3d24b9(0xa9)];}[_0x2ebb94(0x93)](){const _0x2cd9fb=_0x2ebb94,_0x189de2=_0x3ad0a5(this[_0x2cd9fb(0xa3)]),_0x5ac6f0=_0x189de2[_0x2cd9fb(0x78)],_0x3dfc7d=_0x189de2[_0x2cd9fb(0x99)][_0x2cd9fb(0x90)](_0x5ac6f0[_0x2cd9fb(0x83)][_0x2cd9fb(0xc6)](),{'convertAiChatSelectionMarker':!0x0}),_0x5a2462=new _0x2ec56f(_0x189de2[_0x2cd9fb(0xde)][_0x2cd9fb(0x8a)][_0x2cd9fb(0x83)]);this[_0x2cd9fb(0xa8)](_0x3dfc7d,_0x5a2462);let _0x4c8a11=_0x189de2[_0x2cd9fb(0x99)][_0x2cd9fb(0xcf)][_0x2cd9fb(0xbc)](_0x3dfc7d);const _0x870bed=this[_0x2cd9fb(0xc9)](),_0x5628da=[];for(const _0x4b5c0d of _0x870bed){const _0x1c9baf='<'+_0x4b5c0d[_0x2cd9fb(0xb5)]+_0x2cd9fb(0x9f)+_0x4b5c0d[_0x2cd9fb(0xb5)]+_0x2cd9fb(0xd7),_0x8dc159=_0x4c8a11[_0x2cd9fb(0xaa)](_0x1c9baf);_0x4c8a11=_0x4c8a11[_0x2cd9fb(0x94)](0x0,_0x8dc159)+_0x4c8a11[_0x2cd9fb(0x94)](_0x8dc159+_0x1c9baf[_0x2cd9fb(0x8d)]);const _0x152a84='<'+_0x4b5c0d[_0x2cd9fb(0xb5)]+_0x2cd9fb(0x79)+_0x4b5c0d[_0x2cd9fb(0xb5)]+_0x2cd9fb(0xe0),_0x28c77d=_0x4c8a11[_0x2cd9fb(0xaa)](_0x152a84);_0x4c8a11=_0x4c8a11[_0x2cd9fb(0x94)](0x0,_0x28c77d)+_0x4c8a11[_0x2cd9fb(0x94)](_0x28c77d+_0x152a84[_0x2cd9fb(0x8d)]),_0x5628da[_0x2cd9fb(0xd0)]({'markerName':_0x4b5c0d[_0x2cd9fb(0xb5)],'start':_0x8dc159,'end':_0x28c77d,'htmlFragment':_0x4c8a11[_0x2cd9fb(0x94)](_0x8dc159,_0x28c77d)});}return{'content':_0x4c8a11,'version':_0x189de2[_0x2cd9fb(0x78)][_0x2cd9fb(0x83)][_0x2cd9fb(0xa5)],'sessionId':this[_0x2cd9fb(0x92)],'selections':_0x5628da};}async[_0x2ebb94(0xd4)](){const _0x215bd7=_0x2ebb94;this[_0x215bd7(0xa3)]instanceof _0x4e292f?this[_0x215bd7(0x77)](this[_0x215bd7(0xa3)]):this[_0x215bd7(0x86)](this[_0x215bd7(0xa3)][_0x215bd7(0xcc)],_0x215bd7(0xa7),(_0x4d4835,_0x597313)=>{const _0x11ecbd=_0x215bd7;_0x597313['on'](_0x11ecbd(0xb1),()=>{const _0x29cce6=_0x11ecbd;this[_0x29cce6(0x77)](_0x597313);});});}[_0x2ebb94(0x77)](_0x347755){const _0x2f6311=_0x2ebb94;_0x347755[_0x2f6311(0x7e)][_0x2f6311(0xae)](_0x2f6311(0xd3))[_0x2f6311(0xca)]({'model':_0x2f6311(0xd1),'view':{'classes':[_0x2f6311(0xbb),_0x2f6311(0xbd)],'priority':0xc}}),_0x347755[_0x2f6311(0x7e)][_0x2f6311(0xae)](_0x2f6311(0x87))[_0x2f6311(0xbf)]({'model':_0x2f6311(0xd1),'view':(_0x35e75c,{writer:_0x558ca5,options:_0x3e82f7})=>_0x3e82f7[_0x2f6311(0xaf)]?_0x558ca5[_0x2f6311(0x7d)](_0x35e75c[_0x2f6311(0xc3)]+':'+(_0x35e75c[_0x2f6311(0xb2)]?_0x2f6311(0xac):_0x2f6311(0x82))):null});}[_0x2ebb94(0xab)](_0x369762,_0xf88805,_0x5e8539=!0x1,_0x26840b=!0x1){const _0x3543e4=_0x2ebb94;if(this[_0x3543e4(0xb9)]&&!_0x26840b)return!0x1;const _0x10300d=_0x3ad0a5(this[_0x3543e4(0xa3)])[_0x3543e4(0x78)];return _0x10300d[_0x3543e4(0x9b)](_0x465517=>{const _0x262310=_0x3543e4;this[_0x262310(0xd2)]&&this[_0x262310(0xc2)](this[_0x262310(0xd2)]),this[_0x262310(0xd2)]=_0xf88805,this[_0x262310(0xb9)]=_0x5e8539;let _0x37b169=0x0;for(let _0x1c490d of _0x369762){const _0x4ba7f1=_0x262310(0xda)+_0x37b169;if(_0x1c490d[_0x262310(0xac)][_0x262310(0x9c)]){const _0x2e416f=_0x1c490d[_0x262310(0xac)][_0x262310(0x9d)](({item:_0x4a0754})=>!_0x10300d[_0x262310(0xa1)][_0x262310(0xcd)](_0x4a0754),{'boundaries':_0x1c490d});_0x1c490d=_0x465517[_0x262310(0xc7)](_0x2e416f,_0x1c490d[_0x262310(0x82)]);}_0x465517[_0x262310(0xb8)](_0x4ba7f1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1c490d}),_0x37b169++;}}),window[_0x3543e4(0x8b)]()?.[_0x3543e4(0xdf)](),!0x0;}[_0x2ebb94(0xc2)](_0x2807d9){const _0x1816d4=_0x2ebb94;if(this[_0x1816d4(0xd2)]!=_0x2807d9)return!0x1;this[_0x1816d4(0xd2)]=null,this[_0x1816d4(0xb9)]=!0x1;const _0x28c166=_0x3ad0a5(this[_0x1816d4(0xa3)]),_0x44ee0b=_0x28c166[_0x1816d4(0x78)][_0x1816d4(0xc5)][_0x1816d4(0x7c)](_0x1816d4(0xd1));return _0x28c166[_0x1816d4(0x78)][_0x1816d4(0x9b)](_0x29b16b=>{const _0x190f95=_0x1816d4;for(const _0x25463d of _0x44ee0b)_0x29b16b[_0x190f95(0x8f)](_0x25463d);}),!0x0;}[_0x2ebb94(0xd8)](_0x3a08ed){const _0x32626e=_0x2ebb94,_0x244e5d=_0x3ad0a5(this[_0x32626e(0xa3)]),_0x519ac4=_0x244e5d[_0x32626e(0x99)][_0x32626e(0x90)](_0x3a08ed),_0x598dcc=new _0x2ec56f(_0x244e5d[_0x32626e(0xde)][_0x32626e(0x8a)][_0x32626e(0x83)]);return this[_0x32626e(0xa8)](_0x519ac4,_0x598dcc),_0x519ac4;}[_0x2ebb94(0xa8)](_0x581f29,_0x27188a){const _0x419eb8=_0x2ebb94;let _0x4c0dd6=!0x1;const _0x1a0b8e=new Set();for(const _0x14b6cd of _0x581f29[_0x419eb8(0x9e)]()){const _0x31e795=_0x14b6cd['is'](_0x419eb8(0x7f))||_0x14b6cd['is'](_0x419eb8(0xb7));if(!_0x14b6cd['is'](_0x419eb8(0x81)))continue;(this[_0x419eb8(0xa8)](_0x14b6cd,_0x27188a)||_0x31e795)&&(_0x27188a[_0x419eb8(0xa2)](_0x419eb8(0xad),this[_0x419eb8(0xb3)](_0x1a0b8e),_0x14b6cd),_0x4c0dd6=!0x0);}return _0x4c0dd6;}[_0x2ebb94(0xb3)](_0x58109c){const _0x36afcc=_0x2ebb94;let _0x151699;do{_0x151699='';for(let _0x158ec6=0x0;_0x158ec6<0x4;_0x158ec6++)_0x151699+=String[_0x36afcc(0x7b)](0x61+Math[_0x36afcc(0xc4)](0x1a*Math[_0x36afcc(0xb0)]()));}while(_0x58109c[_0x36afcc(0x91)](_0x151699));return _0x58109c[_0x36afcc(0xa7)](_0x151699),_0x151699;}[_0x2ebb94(0xa4)](){const _0x342924=_0x2ebb94,{model:_0x4e80cf}=_0x3ad0a5(this[_0x342924(0xa3)]),_0x4b7e37=_0x4e80cf[_0x342924(0x83)][_0x342924(0x95)],_0x3ed363=_0x4e80cf[_0x342924(0xb4)](_0x4b7e37),_0x5911c9=[],_0x23a574=_0x4e80cf[_0x342924(0x7a)](_0x3ed363)[_0x342924(0xdb)]();for(const {item:_0x4d78ea}of _0x23a574)_0x4d78ea['is'](_0x342924(0x97))?_0x5911c9[_0x342924(0xd0)](_0x4d78ea[_0x342924(0x99)]):_0x4d78ea['is'](_0x342924(0x81))&&_0x5911c9[_0x342924(0x8d)]>0x0&&'\x20'!==_0x5911c9[_0x5911c9[_0x342924(0x8d)]-0x1]&&_0x5911c9[_0x342924(0xd0)]('\x20');return'\x22'+_0x5911c9[_0x342924(0x8c)]('')[_0x342924(0x98)]()+'\x22';}[_0x2ebb94(0xc9)](){const _0x544072=_0x2ebb94,_0x157764=_0x3ad0a5(this[_0x544072(0xa3)])[_0x544072(0x78)];return Array[_0x544072(0xd5)](_0x157764[_0x544072(0xc5)][_0x544072(0x7c)](_0x544072(0xd1)))[_0x544072(0x8e)]((_0x2615a6,_0x100e3c)=>_0x2615a6[_0x544072(0x85)]()[_0x544072(0xd6)](_0x100e3c[_0x544072(0x85)]())?-0x1:_0x2615a6[_0x544072(0x85)]()[_0x544072(0xdc)](_0x100e3c[_0x544072(0x85)]())?0x1:0x0);}}
23
+ const _0x43da1e=_0x24c5;function _0x24c5(_0x2b23d1,_0x58e9fc){const _0x17fa20=_0x17fa();return _0x24c5=function(_0x24c56a,_0x226759){_0x24c56a=_0x24c56a-0x18d;let _0x4c32d8=_0x17fa20[_0x24c56a];return _0x4c32d8;},_0x24c5(_0x2b23d1,_0x58e9fc);}(function(_0x1bc5a1,_0x4e0a9b){const _0x463092=_0x24c5,_0x58d644=_0x1bc5a1();while(!![]){try{const _0x2caaf6=parseInt(_0x463092(0x1b0))/0x1+-parseInt(_0x463092(0x1c7))/0x2+-parseInt(_0x463092(0x1ab))/0x3+parseInt(_0x463092(0x1a8))/0x4+-parseInt(_0x463092(0x1ca))/0x5*(parseInt(_0x463092(0x1e0))/0x6)+parseInt(_0x463092(0x1a7))/0x7+parseInt(_0x463092(0x1ee))/0x8*(parseInt(_0x463092(0x1bc))/0x9);if(_0x2caaf6===_0x4e0a9b)break;else _0x58d644['push'](_0x58d644['shift']());}catch(_0x2d5874){_0x58d644['push'](_0x58d644['shift']());}}}(_0x17fa,0x37cba));function _0x17fa(){const _0x1f22a5=['processor',':start>','listenTo','substring','version','for','createRangeIn','length','sessionId','push','getStart','9vSIUfY','fromCharCode','markers','getDocumentData','isContent','_displayedFakeSelectionId','has','showFakeVisualSelection','ai-selection:',':end></','random','155942njcjUL','element','isAtEnd','15hqClQr','end','model','removeAllRanges','isOfficialPlugin','add','emptyElement','toView','getSelection','pluginName','_sessionId','getRoot','change','view','name','getChildren','toData','conversion','isBefore','getLastMatchingPosition','ready','containerElement','190446EtuCsa','addMarker','ai-selection','from','document','setAttribute','floor','_displayedFakeSelectionLocked','getMarkersGroup','sort','getSelectionText','selection','editors','editing','509816byCjfJ',':end>','getSelectedContent','markerToElement','afterInit','hideFakeVisualSelection','schema','trim','$textProxy','createRange','createUIElement','_integrateEditor','markerName','isPremiumPlugin','join','plugins','get','context','isOpening','editingDowncast','modelToViewWithIds',':start></','start','ck-ai-assistant-ui_theme','convertAiChatSelectionMarker','dataDowncast','AIEditing','indexOf','_getMarkersInDocumentOrder','_nextDataId','RealTimeCollaborationClient','markerToHighlight','isAfter','2761696FkyCPp','93480QhtFTJ','getWalker','ck-fake-ai-selection','1302465TDaunZ','data','removeMarker','_setDataIdsOnChildren','data-id','354262LLoqDb'];_0x17fa=function(){return _0x1f22a5;};return _0x17fa();}import{ViewDowncastWriter as _0x4805d1}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x1ff937,Editor as _0x36b101}from'ckeditor5/src/core.js';import{uid as _0x29437b}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x501734}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x43da1e(0x1e2);export class AIEditing extends _0x1ff937{[_0x43da1e(0x1c1)]=null;[_0x43da1e(0x1e7)]=!0x1;[_0x43da1e(0x1d4)];static get[_0x43da1e(0x1d3)](){const _0x14c6e1=_0x43da1e;return _0x14c6e1(0x1a0);}static get[_0x43da1e(0x1ce)](){return!0x0;}static get[_0x43da1e(0x193)](){return!0x0;}get[_0x43da1e(0x1b9)](){const _0xfd784a=_0x43da1e;if(!this[_0xfd784a(0x1d4)]){const _0x34a9ee=_0x501734(this[_0xfd784a(0x197)]),_0x3ceaeb=_0x34a9ee[_0xfd784a(0x195)][_0xfd784a(0x1c2)](_0xfd784a(0x1a4))&&_0x34a9ee[_0xfd784a(0x195)][_0xfd784a(0x196)](_0xfd784a(0x1a4))[_0xfd784a(0x1b9)];this[_0xfd784a(0x1d4)]=_0x3ceaeb||_0x29437b();}return this[_0xfd784a(0x1d4)];}[_0x43da1e(0x1bf)](){const _0x76c9aa=_0x43da1e,_0x4f07f2=_0x501734(this[_0x76c9aa(0x197)]),_0x494b1f=_0x4f07f2[_0x76c9aa(0x1cc)],_0x2367bb=_0x4f07f2[_0x76c9aa(0x1ac)][_0x76c9aa(0x1d1)](_0x494b1f[_0x76c9aa(0x1e4)][_0x76c9aa(0x1d5)](),{'convertAiChatSelectionMarker':!0x0}),_0x78faca=new _0x4805d1(_0x4f07f2[_0x76c9aa(0x1ed)][_0x76c9aa(0x1d7)][_0x76c9aa(0x1e4)]);this[_0x76c9aa(0x1ae)](_0x2367bb,_0x78faca);let _0x24b561=_0x4f07f2[_0x76c9aa(0x1ac)][_0x76c9aa(0x1b1)][_0x76c9aa(0x1da)](_0x2367bb);const _0x213a31=this[_0x76c9aa(0x1a2)](),_0x5ee749=[];for(const _0x3ee2a7 of _0x213a31){const _0x496bca='<'+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x19b)+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x1b2),_0x4365aa=_0x24b561[_0x76c9aa(0x1a1)](_0x496bca);_0x24b561=_0x24b561[_0x76c9aa(0x1b4)](0x0,_0x4365aa)+_0x24b561[_0x76c9aa(0x1b4)](_0x4365aa+_0x496bca[_0x76c9aa(0x1b8)]);const _0x4dbe5e='<'+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x1c5)+_0x3ee2a7[_0x76c9aa(0x1d8)]+_0x76c9aa(0x1ef),_0x538b67=_0x24b561[_0x76c9aa(0x1a1)](_0x4dbe5e);_0x24b561=_0x24b561[_0x76c9aa(0x1b4)](0x0,_0x538b67)+_0x24b561[_0x76c9aa(0x1b4)](_0x538b67+_0x4dbe5e[_0x76c9aa(0x1b8)]),_0x5ee749[_0x76c9aa(0x1ba)]({'markerName':_0x3ee2a7[_0x76c9aa(0x1d8)],'start':_0x4365aa,'end':_0x538b67,'htmlFragment':_0x24b561[_0x76c9aa(0x1b4)](_0x4365aa,_0x538b67)});}return{'content':_0x24b561,'version':_0x4f07f2[_0x76c9aa(0x1cc)][_0x76c9aa(0x1e4)][_0x76c9aa(0x1b5)],'sessionId':this[_0x76c9aa(0x1b9)],'selections':_0x5ee749};}async[_0x43da1e(0x1f2)](){const _0x5bf5b9=_0x43da1e;this[_0x5bf5b9(0x197)]instanceof _0x36b101?this[_0x5bf5b9(0x191)](this[_0x5bf5b9(0x197)]):this[_0x5bf5b9(0x1b3)](this[_0x5bf5b9(0x197)][_0x5bf5b9(0x1ec)],_0x5bf5b9(0x1cf),(_0xd3d4a4,_0x3ffe46)=>{const _0x1fbf0e=_0x5bf5b9;_0x3ffe46['on'](_0x1fbf0e(0x1de),()=>{const _0xa72a8c=_0x1fbf0e;this[_0xa72a8c(0x191)](_0x3ffe46);});});}[_0x43da1e(0x191)](_0x1ecaf1){const _0x180ee0=_0x43da1e;_0x1ecaf1[_0x180ee0(0x1db)][_0x180ee0(0x1b6)](_0x180ee0(0x199))[_0x180ee0(0x1a5)]({'model':_0x180ee0(0x1e2),'view':{'classes':[_0x180ee0(0x1aa),_0x180ee0(0x19d)],'priority':0xc}}),_0x1ecaf1[_0x180ee0(0x1db)][_0x180ee0(0x1b6)](_0x180ee0(0x19f))[_0x180ee0(0x1f1)]({'model':_0x180ee0(0x1e2),'view':(_0x5402ee,{writer:_0x40b3cd,options:_0x1e2f65})=>_0x1e2f65[_0x180ee0(0x19e)]?_0x40b3cd[_0x180ee0(0x190)](_0x5402ee[_0x180ee0(0x192)]+':'+(_0x5402ee[_0x180ee0(0x198)]?_0x180ee0(0x19c):_0x180ee0(0x1cb))):null});}[_0x43da1e(0x1c3)](_0xf4ef07,_0x58da66,_0x561c4b=!0x1,_0x15f9a0=!0x1){const _0x582efa=_0x43da1e;if(this[_0x582efa(0x1e7)]&&!_0x15f9a0)return!0x1;const _0xc6d604=_0x501734(this[_0x582efa(0x197)])[_0x582efa(0x1cc)];return _0xc6d604[_0x582efa(0x1d6)](_0x5e7fc8=>{const _0xf535c1=_0x582efa;this[_0xf535c1(0x1c1)]&&this[_0xf535c1(0x1f3)](this[_0xf535c1(0x1c1)]),this[_0xf535c1(0x1c1)]=_0x58da66,this[_0xf535c1(0x1e7)]=_0x561c4b;let _0x49d493=0x0;for(let _0x226765 of _0xf4ef07){const _0x25dd7b=_0xf535c1(0x1c4)+_0x49d493;if(_0x226765[_0xf535c1(0x19c)][_0xf535c1(0x1c9)]){const _0x404ee2=_0x226765[_0xf535c1(0x19c)][_0xf535c1(0x1dd)](({item:_0x38387a})=>!_0xc6d604[_0xf535c1(0x1f4)][_0xf535c1(0x1c0)](_0x38387a),{'boundaries':_0x226765});_0x226765=_0x5e7fc8[_0xf535c1(0x18f)](_0x404ee2,_0x226765[_0xf535c1(0x1cb)]);}_0x5e7fc8[_0xf535c1(0x1e1)](_0x25dd7b,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x226765}),_0x49d493++;}}),window[_0x582efa(0x1d2)]()?.[_0x582efa(0x1cd)](),!0x0;}[_0x43da1e(0x1f3)](_0x36860f){const _0x375790=_0x43da1e;if(this[_0x375790(0x1c1)]!=_0x36860f)return!0x1;this[_0x375790(0x1c1)]=null,this[_0x375790(0x1e7)]=!0x1;const _0x3f176a=_0x501734(this[_0x375790(0x197)]),_0x143fa6=_0x3f176a[_0x375790(0x1cc)][_0x375790(0x1be)][_0x375790(0x1e8)](_0x375790(0x1e2));return _0x3f176a[_0x375790(0x1cc)][_0x375790(0x1d6)](_0x48bacc=>{const _0x12280b=_0x375790;for(const _0x2d4e9c of _0x143fa6)_0x48bacc[_0x12280b(0x1ad)](_0x2d4e9c);}),!0x0;}[_0x43da1e(0x19a)](_0x3d030b){const _0x15ed44=_0x43da1e,_0x4b43b9=_0x501734(this[_0x15ed44(0x197)]),_0x522512=_0x4b43b9[_0x15ed44(0x1ac)][_0x15ed44(0x1d1)](_0x3d030b),_0xbb402b=new _0x4805d1(_0x4b43b9[_0x15ed44(0x1ed)][_0x15ed44(0x1d7)][_0x15ed44(0x1e4)]);return this[_0x15ed44(0x1ae)](_0x522512,_0xbb402b),_0x522512;}[_0x43da1e(0x1ae)](_0x43bdaa,_0x19694a){const _0x27e07f=_0x43da1e;let _0x32236b=!0x1;const _0x45b81c=new Set();for(const _0x4d1f44 of _0x43bdaa[_0x27e07f(0x1d9)]()){const _0x26b693=_0x4d1f44['is'](_0x27e07f(0x1d0))||_0x4d1f44['is'](_0x27e07f(0x1df));if(!_0x4d1f44['is'](_0x27e07f(0x1c8)))continue;(this[_0x27e07f(0x1ae)](_0x4d1f44,_0x19694a)||_0x26b693)&&(_0x19694a[_0x27e07f(0x1e5)](_0x27e07f(0x1af),this[_0x27e07f(0x1a3)](_0x45b81c),_0x4d1f44),_0x32236b=!0x0);}return _0x32236b;}[_0x43da1e(0x1a3)](_0x49bbeb){const _0x41657d=_0x43da1e;let _0x5deb08;do{_0x5deb08='';for(let _0x50ec12=0x0;_0x50ec12<0x4;_0x50ec12++)_0x5deb08+=String[_0x41657d(0x1bd)](0x61+Math[_0x41657d(0x1e6)](0x1a*Math[_0x41657d(0x1c6)]()));}while(_0x49bbeb[_0x41657d(0x1c2)](_0x5deb08));return _0x49bbeb[_0x41657d(0x1cf)](_0x5deb08),_0x5deb08;}[_0x43da1e(0x1ea)](){const _0x2b0121=_0x43da1e,{model:_0x316e47}=_0x501734(this[_0x2b0121(0x197)]),_0x4ec595=_0x316e47[_0x2b0121(0x1e4)][_0x2b0121(0x1eb)],_0x1df944=_0x316e47[_0x2b0121(0x1f0)](_0x4ec595),_0x4517fd=[],_0x2dd0b5=_0x316e47[_0x2b0121(0x1b7)](_0x1df944)[_0x2b0121(0x1a9)]();for(const {item:_0xba777}of _0x2dd0b5)_0xba777['is'](_0x2b0121(0x18e))?_0x4517fd[_0x2b0121(0x1ba)](_0xba777[_0x2b0121(0x1ac)]):_0xba777['is'](_0x2b0121(0x1c8))&&_0x4517fd[_0x2b0121(0x1b8)]>0x0&&'\x20'!==_0x4517fd[_0x4517fd[_0x2b0121(0x1b8)]-0x1]&&_0x4517fd[_0x2b0121(0x1ba)]('\x20');return'\x22'+_0x4517fd[_0x2b0121(0x194)]('')[_0x2b0121(0x18d)]()+'\x22';}[_0x43da1e(0x1a2)](){const _0x82d4c7=_0x43da1e,_0x497128=_0x501734(this[_0x82d4c7(0x197)])[_0x82d4c7(0x1cc)];return Array[_0x82d4c7(0x1e3)](_0x497128[_0x82d4c7(0x1be)][_0x82d4c7(0x1e8)](_0x82d4c7(0x1e2)))[_0x82d4c7(0x1e9)]((_0x135fc1,_0x214dc9)=>_0x135fc1[_0x82d4c7(0x1bb)]()[_0x82d4c7(0x1dc)](_0x214dc9[_0x82d4c7(0x1bb)]())?-0x1:_0x135fc1[_0x82d4c7(0x1bb)]()[_0x82d4c7(0x1a6)](_0x214dc9[_0x82d4c7(0x1bb)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4fdd(){const _0x4ed6e2=['span','areActionsDisabled','find','editor','node','fire','done','locale','2835329uVtbeV','modifiedNodeIds','documentContextContent','getContentParts','aiResponseApplier','260742xSIDGD','replyChangeGroupStateUpdated','ai-reply-get-content-parts-group-not-found','cloneNode','setChangeGroupState','onContentChange','convertMarkdownToHTML','length','state','217848lxUkPq','_getCachedContentParts','parsedContent','values','splice','17575HJNxdm','every','modification-delta','reasoning','set','isDone','conversation-title','306400pYnlql','data-unstable','replyContentUpdated','new','previousSibling','content','newNodeIds','includes','source','data-id','interactionId','changes','text-delta','parseAndNormalizeHTML','context','modified','parsedMergedContent','6xnBXLf','withDiff','_getDifferentChangeGroups','withoutDiff','nextSibling','sources','merge','pending','forEach','cachedSuggestionContentParts','removedNodeIds','stopListening','type','133432qWfArY','index','ai-get-editor-from-context-no-editor','web-search','updateChangeGroups','2231190JsgQPR','change:content','removed','changeGroups','_setCachedContentParts','aiResponseParser','AI_SUGGESTION_CONTENT_PART_REMOVED','map','unshift','indexOf','appendContent','filter','push','color:\x20#808080;\x20font-style:\x20italic','destroy'];_0x4fdd=function(){return _0x4ed6e2;};return _0x4fdd();}const _0x34aa9d=_0x139a;(function(_0x30f119,_0x563b7){const _0xe13c63=_0x139a,_0x26128b=_0x30f119();while(!![]){try{const _0x11afb9=parseInt(_0xe13c63(0x17c))/0x1+parseInt(_0xe13c63(0x12f))/0x2+parseInt(_0xe13c63(0x16e))/0x3+-parseInt(_0xe13c63(0x177))/0x4+parseInt(_0xe13c63(0x152))/0x5+parseInt(_0xe13c63(0x140))/0x6*(-parseInt(_0xe13c63(0x169))/0x7)+-parseInt(_0xe13c63(0x14d))/0x8;if(_0x11afb9===_0x563b7)break;else _0x26128b['push'](_0x26128b['shift']());}catch(_0x531406){_0x26128b['push'](_0x26128b['shift']());}}}(_0x4fdd,0x3799b));import{CKEditorError as _0x3a7765,ObservableMixin as _0x379d54,uid as _0x4e3800}from'ckeditor5/src/utils.js';import{Element as _0x5728e1,findAll as _0x32ec8a,getAttribute as _0x726156,getParents as _0x2a885b,Document as _0x4e3e91,parse as _0x2023fb,Text as _0x3f176e}from'../utils/htmlparser.js';import{AIResponseParser as _0x1c6eb5}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x50a62e}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x283b4e}from'../utils/getsuggestionpartsfromreply.js';function _0x139a(_0x1819ed,_0xc16901){const _0x4fdd70=_0x4fdd();return _0x139a=function(_0x139a77,_0x5c6a18){_0x139a77=_0x139a77-0x12e;let _0xb73b37=_0x4fdd70[_0x139a77];return _0xb73b37;},_0x139a(_0x1819ed,_0xc16901);}import{getTranslation as _0x529d2a}from'../utils/common-translations.js';import{cloneDeep as _0x4757c9}from'es-toolkit';export const AI_REPLY_TYPES=[_0x34aa9d(0x17e),_0x34aa9d(0x13b),_0x34aa9d(0x150),_0x34aa9d(0x17f)];export const AI_REPLY_TYPES_IGNORED=[_0x34aa9d(0x12e)];export const AI_REPLY_TITLE_TYPE=_0x34aa9d(0x12e);export class AIReply extends _0x379d54(){['id'];[_0x34aa9d(0x139)];[_0x34aa9d(0x14c)];[_0x34aa9d(0x145)]=[];[_0x34aa9d(0x179)]=new _0x4e3e91([]);[_0x34aa9d(0x13f)]=new _0x4e3e91([]);[_0x34aa9d(0x155)]=[];[_0x34aa9d(0x162)]=!0x1;[_0x34aa9d(0x16b)];[_0x34aa9d(0x157)];[_0x34aa9d(0x16d)];[_0x34aa9d(0x164)];[_0x34aa9d(0x149)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x204a01,content:_0x14198c='',isDone:_0x5e7eb0=!0x1,interactionId:_0x25f630,areActionsDisabled:_0x3b0018,documentContextContent:_0x31ca53,editor:_0x5b81bf,id:_0x3e3c20}){const _0x47a7cc=_0x34aa9d;super(),this['id']=_0x3e3c20||_0x4e3800(),this[_0x47a7cc(0x139)]=_0x25f630,this[_0x47a7cc(0x14c)]=_0x204a01,this[_0x47a7cc(0x162)]=!!_0x3b0018,this[_0x47a7cc(0x164)]=_0x5b81bf,this[_0x47a7cc(0x157)]=new _0x1c6eb5(),this[_0x47a7cc(0x16d)]=new _0x50a62e(),this[_0x47a7cc(0x16b)]=_0x2023fb(_0x31ca53||''),this[_0x47a7cc(0x180)](_0x47a7cc(0x181),_0x5e7eb0),this['on'](_0x47a7cc(0x153),()=>{const _0x4cfdf3=_0x47a7cc;this[_0x4cfdf3(0x173)]();}),this[_0x47a7cc(0x180)](_0x47a7cc(0x134),_0x14198c);}[_0x34aa9d(0x15c)](_0xf485d9){const _0x5bc322=_0x34aa9d;this[_0x5bc322(0x180)](_0x5bc322(0x134),this[_0x5bc322(0x134)]+_0xf485d9);}[_0x34aa9d(0x167)](){const _0x442788=_0x34aa9d;this[_0x442788(0x181)]||(this[_0x442788(0x180)](_0x442788(0x181),!0x0),this[_0x442788(0x173)]());}[_0x34aa9d(0x160)](){const _0x4d6aab=_0x34aa9d;this[_0x4d6aab(0x14b)]();}[_0x34aa9d(0x172)](_0x5ae2a3,_0x1f4fe3){const _0x419bdf=_0x34aa9d;this[_0x419bdf(0x155)][_0x5ae2a3][_0x419bdf(0x176)]=_0x1f4fe3,this[_0x419bdf(0x166)](_0x419bdf(0x16f),{'reply':this,'index':_0x5ae2a3,'state':_0x1f4fe3});}[_0x34aa9d(0x16c)]({showDiff:_0x121311,groupIndex:_0x956b8b}){const _0x11e703=_0x34aa9d;if(!this[_0x11e703(0x164)])throw new _0x3a7765(_0x11e703(0x14f),null,{'aiReply':this});const _0x18f496=this[_0x11e703(0x178)](_0x121311,_0x956b8b);if(_0x18f496)return _0x18f496;let _0x1ab0dc=[];if(void 0x0===_0x956b8b)_0x1ab0dc=this[_0x11e703(0x155)];else{const _0x5b3ebf=this[_0x11e703(0x155)][_0x11e703(0x163)](({index:_0x55d25f})=>_0x55d25f===_0x956b8b);if(!_0x5b3ebf)throw new _0x3a7765(_0x11e703(0x170),null,{'aiReply':this,'groupIndex':_0x956b8b});_0x1ab0dc=[_0x5b3ebf];}const _0x59c875=_0x283b4e({'editor':this[_0x11e703(0x164)],'showDiff':_0x121311,'changeGroups':_0x1ab0dc,'documentContextContent':this[_0x11e703(0x16b)]});return this[_0x11e703(0x156)](_0x121311,_0x59c875),_0x59c875;}[_0x34aa9d(0x178)](_0x5b5d28,_0x8d9b35){const _0x2b741c=_0x34aa9d,_0x35b424=_0x5b5d28?_0x2b741c(0x141):_0x2b741c(0x143);if(!this[_0x2b741c(0x149)][_0x35b424][_0x2b741c(0x175)])return null;const _0x3dbc8c=this[_0x2b741c(0x149)][_0x35b424];if(void 0x0===_0x8d9b35)return _0x4757c9(_0x3dbc8c);{const _0x58279c=_0x3dbc8c[_0x2b741c(0x163)](({index:_0x17b439})=>_0x17b439===_0x8d9b35);if(_0x58279c)return[_0x4757c9(_0x58279c)];}return null;}[_0x34aa9d(0x156)](_0x225a8b,_0x2da04c){const _0x558dc9=_0x34aa9d,_0x398fb5=_0x225a8b?_0x558dc9(0x141):_0x558dc9(0x143);_0x2da04c[_0x558dc9(0x148)](_0x4ee1e6=>{const _0x1b6c85=_0x558dc9,_0x24c5f1=this[_0x1b6c85(0x149)][_0x398fb5],_0x91b4d4=_0x24c5f1[_0x1b6c85(0x163)](({index:_0x1ebe6c})=>_0x1ebe6c===_0x4ee1e6[_0x1b6c85(0x14e)]);if(_0x91b4d4){const _0x526eb6=_0x24c5f1[_0x1b6c85(0x15b)](_0x91b4d4);_0x24c5f1[_0x1b6c85(0x17b)](_0x526eb6,0x1,_0x4ee1e6);}else _0x24c5f1[_0x1b6c85(0x15e)](_0x4ee1e6);});}[_0x34aa9d(0x173)](){const _0x1ca2ec=_0x34aa9d;if(_0x1ca2ec(0x17e)===this[_0x1ca2ec(0x14c)]){this[_0x1ca2ec(0x179)]=this[_0x1ca2ec(0x157)][_0x1ca2ec(0x13c)](this[_0x1ca2ec(0x134)]);const _0x4e0302=this[_0x1ca2ec(0x155)];this[_0x1ca2ec(0x151)]();const _0xaf78c5=this[_0x1ca2ec(0x142)](_0x4e0302,this[_0x1ca2ec(0x155)]);(_0xaf78c5[_0x1ca2ec(0x175)]||this[_0x1ca2ec(0x181)])&&(this[_0x1ca2ec(0x166)](_0x1ca2ec(0x131),this,_0xaf78c5),this[_0x1ca2ec(0x149)][_0x1ca2ec(0x141)][_0x1ca2ec(0x175)]=this[_0x1ca2ec(0x149)][_0x1ca2ec(0x143)][_0x1ca2ec(0x175)]=0x0);}else this[_0x1ca2ec(0x179)]=this[_0x1ca2ec(0x157)][_0x1ca2ec(0x174)](this[_0x1ca2ec(0x134)]),this[_0x1ca2ec(0x166)](_0x1ca2ec(0x131),this);}[_0x34aa9d(0x142)](_0x5ac38f,_0xd1f3cd){const _0x3bde44=_0x34aa9d,_0x15ce3c=[];for(const _0x56969e of _0xd1f3cd){const _0x472c9a=_0x5ac38f[_0x56969e[_0x3bde44(0x14e)]];_0x472c9a?_0x472c9a[_0x3bde44(0x13a)][_0x3bde44(0x175)]!==_0x56969e[_0x3bde44(0x13a)][_0x3bde44(0x175)]?_0x15ce3c[_0x3bde44(0x15e)](_0x56969e):_0x472c9a[_0x3bde44(0x13a)][_0x3bde44(0x148)]((_0x48be37,_0x46b941)=>{const _0x228711=_0x3bde44,_0x10f708=_0x56969e[_0x228711(0x13a)][_0x46b941];_0x48be37['id']!==_0x10f708['id']&&_0x15ce3c[_0x228711(0x15e)](_0x56969e);}):_0x15ce3c[_0x3bde44(0x15e)](_0x56969e);}return _0x15ce3c;}[_0x34aa9d(0x151)](){const _0x33e554=_0x34aa9d,_0x2b2233=new _0x5728e1('p',{},[new _0x5728e1(_0x33e554(0x161),{'style':_0x33e554(0x15f)},[new _0x3f176e(_0x529d2a(this[_0x33e554(0x164)][_0x33e554(0x168)],_0x33e554(0x158)))])]),_0xf8a2ff=this[_0x33e554(0x16d)][_0x33e554(0x146)](this[_0x33e554(0x179)],this[_0x33e554(0x16b)][_0x33e554(0x171)](!0x0),{'markUnstableElements':!this[_0x33e554(0x181)],'replaceRemovedWith':_0x2b2233,'cutAfterLastChange':!this[_0x33e554(0x181)]});if(!_0xf8a2ff[_0x33e554(0x16a)][_0x33e554(0x175)]&&!this[_0x33e554(0x181)])return;this[_0x33e554(0x13f)]=_0xf8a2ff[_0x33e554(0x179)];let _0x15ed41=[];if(_0x32ec8a(_0x34dc21=>{const _0x295a95=_0x33e554,_0x28703e=_0x726156(_0x34dc21,_0x295a95(0x138));if(!_0x28703e||!_0x14d7e7(_0x28703e))return!0x1;const _0x14a698=[_0x34dc21,..._0x2a885b(_0x34dc21)]['at'](-0x2);if(_0x34dc21!=_0x14a698){const _0x40cfa2=_0x726156(_0x14a698,_0x295a95(0x138));_0x14d7e7(_0x40cfa2)||(_0x15ed41[_0x295a95(0x15e)]({'node':_0x14a698,'id':_0x40cfa2,'type':_0x295a95(0x13e)}),_0xf8a2ff[_0x295a95(0x16a)][_0x295a95(0x15e)](_0x40cfa2));}else _0xf8a2ff[_0x295a95(0x16a)][_0x295a95(0x136)](_0x28703e)?_0x15ed41[_0x295a95(0x15e)]({'node':_0x34dc21,'type':_0x295a95(0x13e),'id':_0x28703e}):_0xf8a2ff[_0x295a95(0x135)][_0x295a95(0x136)](_0x28703e)?_0x15ed41[_0x295a95(0x15e)]({'node':_0x34dc21,'type':_0x295a95(0x132),'id':_0x28703e,'anchorId':_0x726156(_0x34dc21[_0x295a95(0x133)],_0x295a95(0x138))}):_0x15ed41[_0x295a95(0x15e)]({'node':_0x34dc21,'type':_0x295a95(0x154),'id':_0x28703e});return!0x0;},this[_0x33e554(0x13f)]),_0x15ed41=_0x15ed41[_0x33e554(0x15d)](({node:_0x28bbce})=>[..._0x2a885b(_0x28bbce),_0x28bbce][_0x33e554(0x17d)](_0x168f2a=>!_0x726156(_0x168f2a,_0x33e554(0x130)))),0x0==_0x15ed41[_0x33e554(0x175)])return;const _0x36c5f1=[[_0x15ed41[0x0]]];for(let _0x8f66c=0x1;_0x8f66c<_0x15ed41[_0x33e554(0x175)];_0x8f66c++){const _0xc992bb=_0x36c5f1[_0x36c5f1[_0x33e554(0x175)]-0x1],_0x232882=_0xc992bb[_0xc992bb[_0x33e554(0x175)]-0x1];_0x15ed41[_0x8f66c][_0x33e554(0x165)][_0x33e554(0x133)]==_0x232882[_0x33e554(0x165)]&&_0x33e554(0x13e)!=_0x15ed41[_0x8f66c][_0x33e554(0x14c)]&&_0x33e554(0x13e)!=_0x232882[_0x33e554(0x14c)]?_0xc992bb[_0x33e554(0x15e)](_0x15ed41[_0x8f66c]):_0x36c5f1[_0x33e554(0x15e)]([_0x15ed41[_0x8f66c]]);}for(const _0x1136b1 of _0x36c5f1){const _0x941fea=_0x1136b1[0x0],_0x3fcc9d=_0x1136b1[_0x1136b1[_0x33e554(0x175)]-0x1],_0x5cc39e=_0x4e4c34(_0x941fea[_0x33e554(0x165)][_0x33e554(0x133)]);_0x5cc39e&&_0x1136b1[_0x33e554(0x15a)](_0x5cc39e);const _0x54a098=_0x4e4c34(_0x3fcc9d[_0x33e554(0x165)][_0x33e554(0x144)]);_0x54a098&&_0x1136b1[_0x33e554(0x15e)](_0x54a098);}function _0x14d7e7(_0x4eaf15){const _0x3c247d=_0x33e554;return _0xf8a2ff[_0x3c247d(0x16a)][_0x3c247d(0x136)](_0x4eaf15)||_0xf8a2ff[_0x3c247d(0x135)][_0x3c247d(0x136)](_0x4eaf15)||_0xf8a2ff[_0x3c247d(0x14a)][_0x3c247d(0x136)](_0x4eaf15);}function _0x4e4c34(_0x52e679){const _0x4b4d1c=_0x33e554;if(_0x52e679&&_0x726156(_0x52e679,_0x4b4d1c(0x138))&&!_0x726156(_0x52e679,_0x4b4d1c(0x130))){const _0x492a67=_0x726156(_0x52e679,_0x4b4d1c(0x138));if(!_0x14d7e7(_0x492a67))return{'node':_0x52e679,'type':_0x4b4d1c(0x13d),'id':_0x492a67};}return null;}this[_0x33e554(0x155)]=_0x36c5f1[_0x33e554(0x159)]((_0x29e75c,_0x21f93f)=>({'changes':_0x29e75c,'state':_0x33e554(0x147),'index':_0x21f93f}));}}export function isValidReplyType(_0x503040){const _0x4282b9=_0x34aa9d;return Object[_0x4282b9(0x17a)](AI_REPLY_TYPES)[_0x4282b9(0x136)](_0x503040);}export function isIgnoredReplyType(_0x1cd39b){const _0x2867c0=_0x34aa9d;return AI_REPLY_TYPES_IGNORED[_0x2867c0(0x136)](_0x1cd39b);}export function isReplyTitleType(_0x21293b){return _0x21293b===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x33200d){const _0x2ceb2d=_0x34aa9d;return _0x2ceb2d(0x137)===_0x33200d;}
23
+ const _0x421906=_0x1862;(function(_0x3415a0,_0x229462){const _0x4ebe9f=_0x1862,_0x4915f6=_0x3415a0();while(!![]){try{const _0x45d7c5=parseInt(_0x4ebe9f(0x1a5))/0x1*(parseInt(_0x4ebe9f(0x192))/0x2)+parseInt(_0x4ebe9f(0x1c0))/0x3+parseInt(_0x4ebe9f(0x197))/0x4+-parseInt(_0x4ebe9f(0x17f))/0x5+-parseInt(_0x4ebe9f(0x185))/0x6*(parseInt(_0x4ebe9f(0x176))/0x7)+parseInt(_0x4ebe9f(0x1ab))/0x8*(-parseInt(_0x4ebe9f(0x187))/0x9)+parseInt(_0x4ebe9f(0x1b0))/0xa;if(_0x45d7c5===_0x229462)break;else _0x4915f6['push'](_0x4915f6['shift']());}catch(_0x90c4c9){_0x4915f6['push'](_0x4915f6['shift']());}}}(_0x2b79,0x9e23e));import{CKEditorError as _0x36b64d,ObservableMixin as _0x1de503,uid as _0x29b3ba}from'ckeditor5/src/utils.js';import{Element as _0x4e86bb,findAll as _0x4f7572,getAttribute as _0x21030a,getParents as _0x202a00,Document as _0x544027,parse as _0x24b5bb,Text as _0x360a82}from'../utils/htmlparser.js';function _0x1862(_0x3607fe,_0x129aac){const _0x2b792a=_0x2b79();return _0x1862=function(_0x18625e,_0x38c8dd){_0x18625e=_0x18625e-0x170;let _0x528a5c=_0x2b792a[_0x18625e];return _0x528a5c;},_0x1862(_0x3607fe,_0x129aac);}import{AIResponseParser as _0x23ab1b}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x15b45e}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x3e0f8d}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x378c95}from'../utils/common-translations.js';function _0x2b79(){const _0x4d4a95=['conversation-title','7538490wxLyOL','reasoning','AI_SUGGESTION_CONTENT_PART_REMOVED','fire','values','interactionId','aiResponseApplier','withoutDiff','node','_setCachedContentParts','destroy','4WuWDuD','cloneNode','state','pending','push','4441924oJYraW','length','convertMarkdownToHTML','onContentChange','replyContentUpdated','aiResponseParser','color:\x20#808080;\x20font-style:\x20italic','context','cachedSuggestionContentParts','sources','done','_getDifferentChangeGroups','change:content','editor','41879LIsQaB','parsedContent','unshift','map','new','replyChangeGroupStateUpdated','8OZwGLm','removedNodeIds','updateChangeGroups','splice','withDiff','13796520jdCbkr','modifiedNodeIds','ai-get-editor-from-context-no-editor','every','stopListening','merge','set','modification-delta','parsedMergedContent','getContentParts','nextSibling','content','removed','data-id','locale','parseAndNormalizeHTML','334644BbXNct','previousSibling','includes','filter','web-search','changes','forEach','setChangeGroupState','documentContextContent','appendContent','newNodeIds','data-unstable','14lYOPyn','ai-reply-get-content-parts-group-not-found','changeGroups','indexOf','areActionsDisabled','index','modified','span','isDone','4355905zFRRcC','_getCachedContentParts','find','source','type','text-delta','986718Venhti'];_0x2b79=function(){return _0x4d4a95;};return _0x2b79();}import{cloneDeep as _0x3a3d82}from'es-toolkit';export const AI_REPLY_TYPES=[_0x421906(0x1b7),_0x421906(0x184),_0x421906(0x1c4),_0x421906(0x188)];export const AI_REPLY_TYPES_IGNORED=[_0x421906(0x186)];export const AI_REPLY_TITLE_TYPE=_0x421906(0x186);export class AIReply extends _0x1de503(){['id'];[_0x421906(0x18c)];[_0x421906(0x183)];[_0x421906(0x1a0)]=[];[_0x421906(0x1a6)]=new _0x544027([]);[_0x421906(0x1b8)]=new _0x544027([]);[_0x421906(0x178)]=[];[_0x421906(0x17a)]=!0x1;[_0x421906(0x172)];[_0x421906(0x19c)];[_0x421906(0x18d)];[_0x421906(0x1a4)];[_0x421906(0x19f)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x47dbaf,content:_0x204e5e='',isDone:_0x4a212e=!0x1,interactionId:_0x238757,areActionsDisabled:_0xb27fd5,documentContextContent:_0x318e7f,editor:_0x1f3517,id:_0x1881ce}){const _0xf1772b=_0x421906;super(),this['id']=_0x1881ce||_0x29b3ba(),this[_0xf1772b(0x18c)]=_0x238757,this[_0xf1772b(0x183)]=_0x47dbaf,this[_0xf1772b(0x17a)]=!!_0xb27fd5,this[_0xf1772b(0x1a4)]=_0x1f3517,this[_0xf1772b(0x19c)]=new _0x23ab1b(),this[_0xf1772b(0x18d)]=new _0x15b45e(),this[_0xf1772b(0x172)]=_0x24b5bb(_0x318e7f||''),this[_0xf1772b(0x1b6)](_0xf1772b(0x17e),_0x4a212e),this['on'](_0xf1772b(0x1a3),()=>{const _0x114a7c=_0xf1772b;this[_0x114a7c(0x19a)]();}),this[_0xf1772b(0x1b6)](_0xf1772b(0x1bb),_0x204e5e);}[_0x421906(0x173)](_0x51d695){const _0x4202e4=_0x421906;this[_0x4202e4(0x1b6)](_0x4202e4(0x1bb),this[_0x4202e4(0x1bb)]+_0x51d695);}[_0x421906(0x1a1)](){const _0xdba8b2=_0x421906;this[_0xdba8b2(0x17e)]||(this[_0xdba8b2(0x1b6)](_0xdba8b2(0x17e),!0x0),this[_0xdba8b2(0x19a)]());}[_0x421906(0x191)](){const _0xf53500=_0x421906;this[_0xf53500(0x1b4)]();}[_0x421906(0x171)](_0xe4a478,_0x1cbbc6){const _0x495bcf=_0x421906;this[_0x495bcf(0x178)][_0xe4a478][_0x495bcf(0x194)]=_0x1cbbc6,this[_0x495bcf(0x18a)](_0x495bcf(0x1aa),{'reply':this,'index':_0xe4a478,'state':_0x1cbbc6});}[_0x421906(0x1b9)]({showDiff:_0x301c32,groupIndex:_0x27a5ba}){const _0x11f468=_0x421906;if(!this[_0x11f468(0x1a4)])throw new _0x36b64d(_0x11f468(0x1b2),null,{'aiReply':this});const _0x1cb6cd=this[_0x11f468(0x180)](_0x301c32,_0x27a5ba);if(_0x1cb6cd)return _0x1cb6cd;let _0xa3869c=[];if(void 0x0===_0x27a5ba)_0xa3869c=this[_0x11f468(0x178)];else{const _0x516b7c=this[_0x11f468(0x178)][_0x11f468(0x181)](({index:_0x3dc651})=>_0x3dc651===_0x27a5ba);if(!_0x516b7c)throw new _0x36b64d(_0x11f468(0x177),null,{'aiReply':this,'groupIndex':_0x27a5ba});_0xa3869c=[_0x516b7c];}const _0x5223ac=_0x3e0f8d({'editor':this[_0x11f468(0x1a4)],'showDiff':_0x301c32,'changeGroups':_0xa3869c,'documentContextContent':this[_0x11f468(0x172)]});return this[_0x11f468(0x190)](_0x301c32,_0x5223ac),_0x5223ac;}[_0x421906(0x180)](_0x235c34,_0x175c6f){const _0x5dec8a=_0x421906,_0x4bcfd6=_0x235c34?_0x5dec8a(0x1af):_0x5dec8a(0x18e);if(!this[_0x5dec8a(0x19f)][_0x4bcfd6][_0x5dec8a(0x198)])return null;const _0x47b128=this[_0x5dec8a(0x19f)][_0x4bcfd6];if(void 0x0===_0x175c6f)return _0x3a3d82(_0x47b128);{const _0x18215f=_0x47b128[_0x5dec8a(0x181)](({index:_0x398af4})=>_0x398af4===_0x175c6f);if(_0x18215f)return[_0x3a3d82(_0x18215f)];}return null;}[_0x421906(0x190)](_0x409c24,_0x49a3d0){const _0x31ff6e=_0x421906,_0x246b4a=_0x409c24?_0x31ff6e(0x1af):_0x31ff6e(0x18e);_0x49a3d0[_0x31ff6e(0x170)](_0x53c698=>{const _0x502ad5=_0x31ff6e,_0x568799=this[_0x502ad5(0x19f)][_0x246b4a],_0x1612e4=_0x568799[_0x502ad5(0x181)](({index:_0x14c2d8})=>_0x14c2d8===_0x53c698[_0x502ad5(0x17b)]);if(_0x1612e4){const _0x15a7b8=_0x568799[_0x502ad5(0x179)](_0x1612e4);_0x568799[_0x502ad5(0x1ae)](_0x15a7b8,0x1,_0x53c698);}else _0x568799[_0x502ad5(0x196)](_0x53c698);});}[_0x421906(0x19a)](){const _0xe2b875=_0x421906;if(_0xe2b875(0x1b7)===this[_0xe2b875(0x183)]){this[_0xe2b875(0x1a6)]=this[_0xe2b875(0x19c)][_0xe2b875(0x1bf)](this[_0xe2b875(0x1bb)]);const _0x5bed0b=this[_0xe2b875(0x178)];this[_0xe2b875(0x1ad)]();const _0x25c824=this[_0xe2b875(0x1a2)](_0x5bed0b,this[_0xe2b875(0x178)]);(_0x25c824[_0xe2b875(0x198)]||this[_0xe2b875(0x17e)])&&(this[_0xe2b875(0x18a)](_0xe2b875(0x19b),this,_0x25c824),this[_0xe2b875(0x19f)][_0xe2b875(0x1af)][_0xe2b875(0x198)]=this[_0xe2b875(0x19f)][_0xe2b875(0x18e)][_0xe2b875(0x198)]=0x0);}else this[_0xe2b875(0x1a6)]=this[_0xe2b875(0x19c)][_0xe2b875(0x199)](this[_0xe2b875(0x1bb)]),this[_0xe2b875(0x18a)](_0xe2b875(0x19b),this);}[_0x421906(0x1a2)](_0x17052e,_0x15a21b){const _0x4a17fe=_0x421906,_0x3ecae2=[];for(const _0x229669 of _0x15a21b){const _0xb7e501=_0x17052e[_0x229669[_0x4a17fe(0x17b)]];_0xb7e501?_0xb7e501[_0x4a17fe(0x1c5)][_0x4a17fe(0x198)]!==_0x229669[_0x4a17fe(0x1c5)][_0x4a17fe(0x198)]?_0x3ecae2[_0x4a17fe(0x196)](_0x229669):_0xb7e501[_0x4a17fe(0x1c5)][_0x4a17fe(0x170)]((_0x32b1f3,_0x165167)=>{const _0xac56f5=_0x4a17fe,_0x24c901=_0x229669[_0xac56f5(0x1c5)][_0x165167];_0x32b1f3['id']!==_0x24c901['id']&&_0x3ecae2[_0xac56f5(0x196)](_0x229669);}):_0x3ecae2[_0x4a17fe(0x196)](_0x229669);}return _0x3ecae2;}[_0x421906(0x1ad)](){const _0x5062f3=_0x421906,_0x13a9a8=new _0x4e86bb('p',{},[new _0x4e86bb(_0x5062f3(0x17d),{'style':_0x5062f3(0x19d)},[new _0x360a82(_0x378c95(this[_0x5062f3(0x1a4)][_0x5062f3(0x1be)],_0x5062f3(0x189)))])]),_0x174517=this[_0x5062f3(0x18d)][_0x5062f3(0x1b5)](this[_0x5062f3(0x1a6)],this[_0x5062f3(0x172)][_0x5062f3(0x193)](!0x0),{'markUnstableElements':!this[_0x5062f3(0x17e)],'replaceRemovedWith':_0x13a9a8,'cutAfterLastChange':!this[_0x5062f3(0x17e)]});if(!_0x174517[_0x5062f3(0x1b1)][_0x5062f3(0x198)]&&!this[_0x5062f3(0x17e)])return;this[_0x5062f3(0x1b8)]=_0x174517[_0x5062f3(0x1a6)];let _0x2a16a2=[];if(_0x4f7572(_0xf5b872=>{const _0x1bac20=_0x5062f3,_0x2367b4=_0x21030a(_0xf5b872,_0x1bac20(0x1bd));if(!_0x2367b4||!_0x45be95(_0x2367b4))return!0x1;const _0x478e10=[_0xf5b872,..._0x202a00(_0xf5b872)]['at'](-0x2);if(_0xf5b872!=_0x478e10){const _0xc144b1=_0x21030a(_0x478e10,_0x1bac20(0x1bd));_0x45be95(_0xc144b1)||(_0x2a16a2[_0x1bac20(0x196)]({'node':_0x478e10,'id':_0xc144b1,'type':_0x1bac20(0x17c)}),_0x174517[_0x1bac20(0x1b1)][_0x1bac20(0x196)](_0xc144b1));}else _0x174517[_0x1bac20(0x1b1)][_0x1bac20(0x1c2)](_0x2367b4)?_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x17c),'id':_0x2367b4}):_0x174517[_0x1bac20(0x174)][_0x1bac20(0x1c2)](_0x2367b4)?_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x1a9),'id':_0x2367b4,'anchorId':_0x21030a(_0xf5b872[_0x1bac20(0x1c1)],_0x1bac20(0x1bd))}):_0x2a16a2[_0x1bac20(0x196)]({'node':_0xf5b872,'type':_0x1bac20(0x1bc),'id':_0x2367b4});return!0x0;},this[_0x5062f3(0x1b8)]),_0x2a16a2=_0x2a16a2[_0x5062f3(0x1c3)](({node:_0x565c72})=>[..._0x202a00(_0x565c72),_0x565c72][_0x5062f3(0x1b3)](_0x346b21=>!_0x21030a(_0x346b21,_0x5062f3(0x175)))),0x0==_0x2a16a2[_0x5062f3(0x198)])return;const _0x2a46e8=[[_0x2a16a2[0x0]]];for(let _0x1201b2=0x1;_0x1201b2<_0x2a16a2[_0x5062f3(0x198)];_0x1201b2++){const _0x364710=_0x2a46e8[_0x2a46e8[_0x5062f3(0x198)]-0x1],_0x57cabc=_0x364710[_0x364710[_0x5062f3(0x198)]-0x1];_0x2a16a2[_0x1201b2][_0x5062f3(0x18f)][_0x5062f3(0x1c1)]==_0x57cabc[_0x5062f3(0x18f)]&&_0x5062f3(0x17c)!=_0x2a16a2[_0x1201b2][_0x5062f3(0x183)]&&_0x5062f3(0x17c)!=_0x57cabc[_0x5062f3(0x183)]?_0x364710[_0x5062f3(0x196)](_0x2a16a2[_0x1201b2]):_0x2a46e8[_0x5062f3(0x196)]([_0x2a16a2[_0x1201b2]]);}for(const _0x27beaa of _0x2a46e8){const _0x55482c=_0x27beaa[0x0],_0x160509=_0x27beaa[_0x27beaa[_0x5062f3(0x198)]-0x1],_0x15881c=_0x262d2b(_0x55482c[_0x5062f3(0x18f)][_0x5062f3(0x1c1)]);_0x15881c&&_0x27beaa[_0x5062f3(0x1a7)](_0x15881c);const _0x21cb61=_0x262d2b(_0x160509[_0x5062f3(0x18f)][_0x5062f3(0x1ba)]);_0x21cb61&&_0x27beaa[_0x5062f3(0x196)](_0x21cb61);}function _0x45be95(_0x52a0e9){const _0x43828e=_0x5062f3;return _0x174517[_0x43828e(0x1b1)][_0x43828e(0x1c2)](_0x52a0e9)||_0x174517[_0x43828e(0x174)][_0x43828e(0x1c2)](_0x52a0e9)||_0x174517[_0x43828e(0x1ac)][_0x43828e(0x1c2)](_0x52a0e9);}function _0x262d2b(_0x41f889){const _0x2b9820=_0x5062f3;if(_0x41f889&&_0x21030a(_0x41f889,_0x2b9820(0x1bd))&&!_0x21030a(_0x41f889,_0x2b9820(0x175))){const _0x3b291d=_0x21030a(_0x41f889,_0x2b9820(0x1bd));if(!_0x45be95(_0x3b291d))return{'node':_0x41f889,'type':_0x2b9820(0x19e),'id':_0x3b291d};}return null;}this[_0x5062f3(0x178)]=_0x2a46e8[_0x5062f3(0x1a8)]((_0x2adb0f,_0x40d5b3)=>({'changes':_0x2adb0f,'state':_0x5062f3(0x195),'index':_0x40d5b3}));}}export function isValidReplyType(_0x3fb51d){const _0x44c1c6=_0x421906;return Object[_0x44c1c6(0x18b)](AI_REPLY_TYPES)[_0x44c1c6(0x1c2)](_0x3fb51d);}export function isIgnoredReplyType(_0x27dbbe){const _0x1d2bc7=_0x421906;return AI_REPLY_TYPES_IGNORED[_0x1d2bc7(0x1c2)](_0x27dbbe);}export function isReplyTitleType(_0x5d1f18){return _0x5d1f18===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xad9043){const _0x436aad=_0x421906;return _0x436aad(0x182)===_0xad9043;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1253(_0x4b2c24,_0x5cb17e){var _0x44ac9a=_0x44ac();return _0x1253=function(_0x125335,_0x306e4c){_0x125335=_0x125335-0x1a8;var _0x4a500d=_0x44ac9a[_0x125335];return _0x4a500d;},_0x1253(_0x4b2c24,_0x5cb17e);}(function(_0x31f910,_0xf520cd){var _0x5a78e9=_0x1253,_0x1f6a6f=_0x31f910();while(!![]){try{var _0x2cd0f3=parseInt(_0x5a78e9(0x1ac))/0x1*(-parseInt(_0x5a78e9(0x1b0))/0x2)+parseInt(_0x5a78e9(0x1b5))/0x3+parseInt(_0x5a78e9(0x1b4))/0x4+parseInt(_0x5a78e9(0x1a9))/0x5*(parseInt(_0x5a78e9(0x1b6))/0x6)+-parseInt(_0x5a78e9(0x1a8))/0x7+parseInt(_0x5a78e9(0x1b1))/0x8*(parseInt(_0x5a78e9(0x1ae))/0x9)+-parseInt(_0x5a78e9(0x1af))/0xa;if(_0x2cd0f3===_0xf520cd)break;else _0x1f6a6f['push'](_0x1f6a6f['shift']());}catch(_0x2bd5e2){_0x1f6a6f['push'](_0x1f6a6f['shift']());}}}(_0x44ac,0x2b145));import{View as _0x4f0c32}from'ckeditor5/src/ui.js';import{getTranslation as _0x585c5e}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x4f0c32{constructor(_0x3237d3){var _0x4fa570=_0x1253;super(_0x3237d3),this[_0x4fa570(0x1aa)]({'tag':_0x4fa570(0x1b2),'attributes':{'class':['ck',_0x4fa570(0x1b3)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4fa570(0x1ab)]},'children':[{'text':_0x585c5e(_0x3237d3,_0x4fa570(0x1ad))}]}]});}}function _0x44ac(){var _0x8ae2ae=['120qqaNmU','div','ck-ai-disclaimer','914512ZrUtRL','785868gbfXTV','733602pQsDRb','2122568wlVVPE','10EiBErh','setTemplate','ck-ai-disclaimer__content','53084HVlgrA','AI_DISCLAIMER_TEXT','201807DbNmle','4325340qmDXac','6VIHGBx'];_0x44ac=function(){return _0x8ae2ae;};return _0x44ac();}
23
+ (function(_0x9970e5,_0x2a6955){var _0x507e28=_0x1411,_0x2c589a=_0x9970e5();while(!![]){try{var _0x3082b1=-parseInt(_0x507e28(0x1e1))/0x1+-parseInt(_0x507e28(0x1da))/0x2+-parseInt(_0x507e28(0x1e5))/0x3*(parseInt(_0x507e28(0x1dc))/0x4)+-parseInt(_0x507e28(0x1df))/0x5*(parseInt(_0x507e28(0x1d9))/0x6)+-parseInt(_0x507e28(0x1de))/0x7+parseInt(_0x507e28(0x1e2))/0x8*(-parseInt(_0x507e28(0x1e4))/0x9)+parseInt(_0x507e28(0x1e3))/0xa;if(_0x3082b1===_0x2a6955)break;else _0x2c589a['push'](_0x2c589a['shift']());}catch(_0x266208){_0x2c589a['push'](_0x2c589a['shift']());}}}(_0x3457,0x89fa8));import{View as _0x469114}from'ckeditor5/src/ui.js';import{getTranslation as _0x5decfe}from'../../aicore/utils/common-translations.js';function _0x1411(_0x2200ba,_0x489ac1){var _0x345706=_0x3457();return _0x1411=function(_0x1411d5,_0x253e33){_0x1411d5=_0x1411d5-0x1d8;var _0x322449=_0x345706[_0x1411d5];return _0x322449;},_0x1411(_0x2200ba,_0x489ac1);}export class AIDisclaimerView extends _0x469114{constructor(_0xf3ae4f){var _0x173313=_0x1411;super(_0xf3ae4f),this[_0x173313(0x1d8)]({'tag':_0x173313(0x1db),'attributes':{'class':['ck',_0x173313(0x1e0)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x173313(0x1e6)]},'children':[{'text':_0x5decfe(_0xf3ae4f,_0x173313(0x1dd))}]}]});}}function _0x3457(){var _0x3c2dd4=['10028YXKbRS','AI_DISCLAIMER_TEXT','7696710JuJZAt','180ChZeQf','ck-ai-disclaimer','161929JyClBP','16HEeSUh','44992460bkOvbA','2515968SAyreg','1203dTahlT','ck-ai-disclaimer__content','setTemplate','128328eXYACu','676496jouXYf','div'];_0x3457=function(){return _0x3c2dd4;};return _0x3457();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3393b3=_0x3f91;(function(_0x539b62,_0x57e8fe){const _0x206cd9=_0x3f91,_0x1a27e1=_0x539b62();while(!![]){try{const _0x17a1dd=-parseInt(_0x206cd9(0x11c))/0x1+-parseInt(_0x206cd9(0x11a))/0x2+parseInt(_0x206cd9(0x113))/0x3*(-parseInt(_0x206cd9(0x12d))/0x4)+parseInt(_0x206cd9(0x10f))/0x5*(-parseInt(_0x206cd9(0x12b))/0x6)+parseInt(_0x206cd9(0x10a))/0x7*(-parseInt(_0x206cd9(0x10c))/0x8)+-parseInt(_0x206cd9(0x111))/0x9+parseInt(_0x206cd9(0x12c))/0xa*(parseInt(_0x206cd9(0x130))/0xb);if(_0x17a1dd===_0x57e8fe)break;else _0x1a27e1['push'](_0x1a27e1['shift']());}catch(_0x5db242){_0x1a27e1['push'](_0x1a27e1['shift']());}}}(_0x2b16,0x2902b));import{View as _0x30e207}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x30e207{constructor(_0x1f4dc5,_0x437219){const _0x72be6e=_0x3f91;super(_0x1f4dc5),this[_0x72be6e(0x118)]({'tag':_0x72be6e(0x11d),'attributes':{'class':['ck',_0x72be6e(0x127)]},'children':this[_0x72be6e(0x11b)](_0x437219)});}[_0x3393b3(0x11b)](_0x444b91){const _0x4378d9=_0x3393b3,_0x3dfc3d=['ck',_0x4378d9(0x125)];return _0x444b91[_0x4378d9(0x12a)](_0x1fd294=>{const _0x1b7a7a=_0x4378d9;let _0x22329d='';switch(_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x11e)]){case _0x1b7a7a(0x133):_0x22329d=_0x1b7a7a(0x112);break;case _0x1b7a7a(0x121):_0x22329d=_0x1b7a7a(0x131);break;case _0x1b7a7a(0x128):_0x22329d=_0x1b7a7a(0x11f);}return{'tag':_0x1fd294[_0x1b7a7a(0x124)],'attributes':{'class':[..._0x3dfc3d,_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x116)]?_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x116)]:''],'style':_0x1b7a7a(0x12e)+_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x126)]+_0x1b7a7a(0x12f)+_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x117)]+';'+_0x22329d}};});}}function _0x2b16(){const _0x3f4e25=['map','6VQWEVF','115630MWYZAQ','756cKtGIo','width:\x20',';\x20height:\x20','1463BnnasE','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','88px','right','7CRpAGR','attributes','1938760pYyDWQ','128px','72px','1616445iHGaOR','250px','2404728CYeCGw','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','2280FRNyiV','24px','140px','class','height','setTemplate','44px','572212DOFQBO','_createSkeletonItems','107328dVHEnC','div','align','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','150px','center','100%','fill','tag','ck-ai-skeleton__item','width','ck-ai-skeleton','left','40px'];_0x2b16=function(){return _0x3f4e25;};return _0x2b16();}function _0x3f91(_0x5682e8,_0x2319f7){const _0x2b16dd=_0x2b16();return _0x3f91=function(_0x3f9140,_0x3f463e){_0x3f9140=_0x3f9140-0x10a;let _0x4d691b=_0x2b16dd[_0x3f9140];return _0x4d691b;},_0x3f91(_0x5682e8,_0x2319f7);}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x10e),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x110),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x132),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x120),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x115),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x110),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x132),'align':_0x3393b3(0x133)}}],'aiHistory':ta(0x5,_0x3393b3(0x122),_0x3393b3(0x119),_0x3393b3(0x133)),'aiChatResources':ta(0x8,_0x3393b3(0x122),_0x3393b3(0x114),_0x3393b3(0x133)),'aiReviewChecks':[{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x10d),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x10d),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}}]};function ta(_0x4d8605,_0x16a61b,_0x1f1a21,_0xc1cd4e){const _0x406358=_0x3393b3;return new Array(_0x4d8605)[_0x406358(0x123)](null)[_0x406358(0x12a)](()=>({'tag':_0x406358(0x11d),'attributes':{'width':_0x16a61b,'height':_0x1f1a21,'align':_0xc1cd4e}}));}
23
+ const _0x406ca0=_0x2d99;(function(_0x21b170,_0x1f12c7){const _0x4d479d=_0x2d99,_0x10bafa=_0x21b170();while(!![]){try{const _0x5b41e8=-parseInt(_0x4d479d(0x9e))/0x1+parseInt(_0x4d479d(0xa3))/0x2+parseInt(_0x4d479d(0x96))/0x3+parseInt(_0x4d479d(0x9c))/0x4*(parseInt(_0x4d479d(0x91))/0x5)+-parseInt(_0x4d479d(0xb1))/0x6+-parseInt(_0x4d479d(0xaf))/0x7+parseInt(_0x4d479d(0xa2))/0x8;if(_0x5b41e8===_0x1f12c7)break;else _0x10bafa['push'](_0x10bafa['shift']());}catch(_0xcabb30){_0x10bafa['push'](_0x10bafa['shift']());}}}(_0x6b3c,0xd788e));import{View as _0x2967a0}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x2967a0{constructor(_0x104903,_0x5dcc21){const _0x1964f2=_0x2d99;super(_0x104903),this[_0x1964f2(0xac)]({'tag':_0x1964f2(0xb4),'attributes':{'class':['ck',_0x1964f2(0xa8)]},'children':this[_0x1964f2(0x99)](_0x5dcc21)});}[_0x406ca0(0x99)](_0x3e948b){const _0x3373ef=_0x406ca0,_0x41a2ad=['ck',_0x3373ef(0xab)];return _0x3e948b[_0x3373ef(0x8f)](_0x544917=>{const _0x2529ae=_0x3373ef;let _0x5c61a3='';switch(_0x544917[_0x2529ae(0x90)][_0x2529ae(0xaa)]){case _0x2529ae(0xb2):_0x5c61a3=_0x2529ae(0x98);break;case _0x2529ae(0x9b):_0x5c61a3=_0x2529ae(0x95);break;case _0x2529ae(0xa6):_0x5c61a3=_0x2529ae(0x94);}return{'tag':_0x544917[_0x2529ae(0xa7)],'attributes':{'class':[..._0x41a2ad,_0x544917[_0x2529ae(0x90)][_0x2529ae(0x9f)]?_0x544917[_0x2529ae(0x90)][_0x2529ae(0x9f)]:''],'style':_0x2529ae(0xa0)+_0x544917[_0x2529ae(0x90)][_0x2529ae(0xa9)]+_0x2529ae(0x97)+_0x544917[_0x2529ae(0x90)][_0x2529ae(0xa5)]+';'+_0x5c61a3}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xad),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xb0),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xa1),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x9a),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0x92),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xb0),'height':_0x406ca0(0xb5),'align':_0x406ca0(0xb2)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xa1),'align':_0x406ca0(0xb2)}}],'aiHistory':ta(0x5,_0x406ca0(0xa4),_0x406ca0(0x9d),_0x406ca0(0xb2)),'aiChatResources':ta(0x8,_0x406ca0(0xa4),_0x406ca0(0xae),_0x406ca0(0xb2)),'aiReviewChecks':[{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x93),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0xa4),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}},{'tag':_0x406ca0(0xb4),'attributes':{'width':_0x406ca0(0x93),'height':_0x406ca0(0xae),'align':_0x406ca0(0xa6)}}]};function _0x6b3c(){const _0x2fb2b4=['fill','div','40px','map','attributes','50tKuicd','140px','128px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','1447095NcwXzr',';\x20height:\x20','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','_createSkeletonItems','150px','center','235228RzlkkV','44px','816617WALjAb','class','width:\x20','88px','8253592eDfwSv','501396BmyRTs','100%','height','left','tag','ck-ai-skeleton','width','align','ck-ai-skeleton__item','setTemplate','72px','24px','2188053YuTZXB','250px','2044836fFGmTk','right'];_0x6b3c=function(){return _0x2fb2b4;};return _0x6b3c();}function _0x2d99(_0x316906,_0x1c5386){const _0x6b3c4=_0x6b3c();return _0x2d99=function(_0x2d9925,_0x636df2){_0x2d9925=_0x2d9925-0x8f;let _0x3718ec=_0x6b3c4[_0x2d9925];return _0x3718ec;},_0x2d99(_0x316906,_0x1c5386);}function ta(_0x4b1f33,_0x5c51d8,_0x37f27a,_0x3935ad){const _0x89540d=_0x406ca0;return new Array(_0x4b1f33)[_0x89540d(0xb3)](null)[_0x89540d(0x8f)](()=>({'tag':_0x89540d(0xb4),'attributes':{'width':_0x5c51d8,'height':_0x37f27a,'align':_0x3935ad}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x483a9e=_0x548f;(function(_0x3481ad,_0x2e9da2){const _0x56f4e5=_0x548f,_0x550a13=_0x3481ad();while(!![]){try{const _0xa55ac5=parseInt(_0x56f4e5(0x156))/0x1*(parseInt(_0x56f4e5(0x16f))/0x2)+parseInt(_0x56f4e5(0x14a))/0x3+parseInt(_0x56f4e5(0x163))/0x4*(parseInt(_0x56f4e5(0x151))/0x5)+parseInt(_0x56f4e5(0x157))/0x6*(-parseInt(_0x56f4e5(0x15f))/0x7)+parseInt(_0x56f4e5(0x164))/0x8*(-parseInt(_0x56f4e5(0x14f))/0x9)+-parseInt(_0x56f4e5(0x13e))/0xa*(-parseInt(_0x56f4e5(0x143))/0xb)+parseInt(_0x56f4e5(0x16a))/0xc*(-parseInt(_0x56f4e5(0x167))/0xd);if(_0xa55ac5===_0x2e9da2)break;else _0x550a13['push'](_0x550a13['shift']());}catch(_0x5ae968){_0x550a13['push'](_0x550a13['shift']());}}}(_0x4da3,0x4bb82));import{ButtonView as _0x2861ce,IconView as _0x5792a3,ToolbarView as _0x1a50c9}from'ckeditor5/src/ui.js';function _0x548f(_0x1e507d,_0x5a70a1){const _0x4da3ab=_0x4da3();return _0x548f=function(_0x548f4c,_0x4c9c19){_0x548f4c=_0x548f4c-0x13e;let _0x32c7b7=_0x4da3ab[_0x548f4c];return _0x32c7b7;},_0x548f(_0x1e507d,_0x5a70a1);}import{IconCheck as _0x2ad410,IconCopy as _0xb8034d,IconShowChangesOff as _0x2b5637,IconShowChangesOn as _0x95678e,IconThumbDown as _0x115cc9,IconThumbUp as _0x57a8dd}from'@ckeditor/ckeditor5-icons';function _0x4da3(){const _0x35aac1=['addMany','AI_MINI_TOOLBAR_LIKE','1352INHaQG','showLike','ck-ai-mini-toolbar-copy-button__check-mark','16980dhappI','dislike','dislikeButton','showChangesButton','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','814598VuItRC','ck-ai-mini-toolbar','_setupShowChangesButton','extendTemplate','items','40OqDAOP','isLoading','showCopy','AI_MINI_TOOLBAR_COPY','full','392029LHrUgS','fire','like','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-mini-toolbar-copy-button','children','length','1610880NWvKYH','AI_MINI_TOOLBAR_DISLIKE','locale','_setupRatingButtons','class','650682SpqNJm','likeButton','1005595fcjZGN','toggleShowChanges','execute','set','customView','1yPCpFJ','3156qdCuLn','showDislike','add','_config','isEnabled','AI_SUGGESTION_BUTTON_SHOW_CHANGES','copyButton','_setupCopyButton','4319pUdlCO','bind','showChanges','isOn','4WevogL','56lYMRtO'];_0x4da3=function(){return _0x35aac1;};return _0x4da3();}import{getTranslation as _0x3b1760}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x1a50c9{[_0x483a9e(0x15d)];[_0x483a9e(0x150)];[_0x483a9e(0x16c)];[_0x483a9e(0x16d)];[_0x483a9e(0x15a)];constructor(_0x59ae65,_0x46223a={},_0x12e42e){const _0x566d5d=_0x483a9e;super(_0x59ae65),this[_0x566d5d(0x154)](_0x566d5d(0x13f),!0x1),this[_0x566d5d(0x15a)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x46223a};const _0x246087=!(this[_0x566d5d(0x15a)][_0x566d5d(0x140)]||this[_0x566d5d(0x15a)][_0x566d5d(0x161)]||this[_0x566d5d(0x15a)][_0x566d5d(0x168)]||this[_0x566d5d(0x15a)][_0x566d5d(0x158)]||this[_0x566d5d(0x15a)][_0x566d5d(0x155)]?.[_0x566d5d(0x149)]);this[_0x566d5d(0x14e)]=_0x246087?_0x566d5d(0x146):_0x566d5d(0x170),this[_0x566d5d(0x15a)][_0x566d5d(0x140)]&&(this[_0x566d5d(0x15e)](),this[_0x566d5d(0x173)][_0x566d5d(0x159)](this[_0x566d5d(0x15d)])),this[_0x566d5d(0x15a)][_0x566d5d(0x161)]&&(this[_0x566d5d(0x171)](_0x12e42e),this[_0x566d5d(0x173)][_0x566d5d(0x159)](this[_0x566d5d(0x16d)])),this[_0x566d5d(0x14d)](),this[_0x566d5d(0x15a)][_0x566d5d(0x168)]&&this[_0x566d5d(0x173)][_0x566d5d(0x159)](this[_0x566d5d(0x150)]),this[_0x566d5d(0x15a)][_0x566d5d(0x158)]&&this[_0x566d5d(0x173)][_0x566d5d(0x159)](this[_0x566d5d(0x16c)]),this[_0x566d5d(0x15a)][_0x566d5d(0x155)]&&this[_0x566d5d(0x173)][_0x566d5d(0x165)](this[_0x566d5d(0x15a)][_0x566d5d(0x155)]);}[_0x483a9e(0x14d)](){const _0x195173=_0x483a9e;this[_0x195173(0x150)]=new _0x2861ce(this[_0x195173(0x14c)]),this[_0x195173(0x150)][_0x195173(0x154)]({'icon':_0x57a8dd,'label':_0x3b1760(this[_0x195173(0x14c)],_0x195173(0x166)),'tooltip':!0x0}),this[_0x195173(0x150)][_0x195173(0x160)](_0x195173(0x15b))['to'](this,_0x195173(0x13f),_0x3b383c=>!_0x3b383c),this[_0x195173(0x150)]['on'](_0x195173(0x153),()=>{const _0x3a82fe=_0x195173;this[_0x3a82fe(0x144)](_0x3a82fe(0x145));}),this[_0x195173(0x16c)]=new _0x2861ce(this[_0x195173(0x14c)]),this[_0x195173(0x16c)][_0x195173(0x154)]({'icon':_0x115cc9,'label':_0x3b1760(this[_0x195173(0x14c)],_0x195173(0x14b)),'tooltip':!0x0}),this[_0x195173(0x16c)][_0x195173(0x160)](_0x195173(0x15b))['to'](this,_0x195173(0x13f),_0x648a0e=>!_0x648a0e),this[_0x195173(0x16c)]['on'](_0x195173(0x153),()=>{const _0x320044=_0x195173;this[_0x320044(0x144)](_0x320044(0x16b));});}[_0x483a9e(0x15e)](){const _0x1c1aa8=_0x483a9e;this[_0x1c1aa8(0x15d)]=new _0x2861ce(this[_0x1c1aa8(0x14c)]),this[_0x1c1aa8(0x15d)][_0x1c1aa8(0x154)]({'icon':_0xb8034d,'label':_0x3b1760(this[_0x1c1aa8(0x14c)],_0x1c1aa8(0x141)),'class':_0x1c1aa8(0x147),'tooltip':!0x0}),this[_0x1c1aa8(0x15d)][_0x1c1aa8(0x160)](_0x1c1aa8(0x15b))['to'](this,_0x1c1aa8(0x13f),_0x24831a=>!_0x24831a);const _0x38b8f0=new _0x5792a3();_0x38b8f0[_0x1c1aa8(0x154)]({'content':_0x2ad410}),_0x38b8f0[_0x1c1aa8(0x172)]({'attributes':{'class':[_0x1c1aa8(0x169)]}}),this[_0x1c1aa8(0x15d)]['on'](_0x1c1aa8(0x153),()=>{const _0x39589d=_0x1c1aa8;this[_0x39589d(0x15d)][_0x39589d(0x14e)]=_0x39589d(0x16e),setTimeout(()=>{const _0x28f1df=_0x39589d;this[_0x28f1df(0x15d)][_0x28f1df(0x14e)]=_0x28f1df(0x147);},0x7d0);}),this[_0x1c1aa8(0x15d)][_0x1c1aa8(0x148)][_0x1c1aa8(0x159)](_0x38b8f0);}[_0x483a9e(0x171)](_0x503fdf){const _0x2d1dfa=_0x483a9e;this[_0x2d1dfa(0x16d)]=new _0x2861ce(this[_0x2d1dfa(0x14c)]),this[_0x2d1dfa(0x16d)][_0x2d1dfa(0x154)]({'icon':_0x2b5637,'label':_0x3b1760(this[_0x2d1dfa(0x14c)],_0x2d1dfa(0x15c)),'withText':_0x2d1dfa(0x142)==this[_0x2d1dfa(0x15a)][_0x2d1dfa(0x161)],'tooltip':_0x2d1dfa(0x142)!=this[_0x2d1dfa(0x15a)][_0x2d1dfa(0x161)],'isOn':_0x503fdf}),this[_0x2d1dfa(0x16d)][_0x2d1dfa(0x160)](_0x2d1dfa(0x15b))['to'](this,_0x2d1dfa(0x13f),_0x180c41=>!_0x180c41),this[_0x2d1dfa(0x16d)]['on'](_0x2d1dfa(0x153),()=>{const _0x4f1f56=_0x2d1dfa,_0x31338d=!this[_0x4f1f56(0x16d)][_0x4f1f56(0x162)];this[_0x4f1f56(0x16d)][_0x4f1f56(0x154)]({'isOn':_0x31338d,'icon':_0x31338d?_0x95678e:_0x2b5637}),this[_0x4f1f56(0x144)](_0x4f1f56(0x152),_0x31338d);});}}
23
+ function _0x302d(){const _0x4c5548=['length','isLoading','showCopy','396639aIsuST','full','AI_SUGGESTION_BUTTON_SHOW_CHANGES','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','showChanges','ck-ai-mini-toolbar','execute','class','bind','showDislike','fire','22EbTKLx','_setupRatingButtons','AI_MINI_TOOLBAR_LIKE','add','set','locale','isEnabled','showLike','14497HykkaB','53945GAyNlA','4664BAXHuA','364VktlZa','likeButton','like','_setupCopyButton','5TnlrWZ','ck-ai-mini-toolbar-copy-button__check-mark','AI_MINI_TOOLBAR_DISLIKE','showChangesButton','AI_MINI_TOOLBAR_COPY','142166mOThdA','dislikeButton','16227NJpZnh','10121124NYasQQ','_setupShowChangesButton','7970OwUVOP','8958672ICAEmi','extendTemplate','isOn','addMany','copyButton','customView','dislike','children','items','toggleShowChanges','_config','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-mini-toolbar-copy-button'];_0x302d=function(){return _0x4c5548;};return _0x302d();}const _0x197bec=_0x4ddb;(function(_0x3b44ac,_0x3c85a2){const _0x5b1025=_0x4ddb,_0x6a46db=_0x3b44ac();while(!![]){try{const _0x3f5d6b=parseInt(_0x5b1025(0x163))/0x1*(parseInt(_0x5b1025(0x168))/0x2)+-parseInt(_0x5b1025(0x17e))/0x3+parseInt(_0x5b1025(0x15f))/0x4*(parseInt(_0x5b1025(0x15d))/0x5)+parseInt(_0x5b1025(0x16e))/0x6+parseInt(_0x5b1025(0x15c))/0x7*(parseInt(_0x5b1025(0x15e))/0x8)+parseInt(_0x5b1025(0x16a))/0x9*(-parseInt(_0x5b1025(0x16d))/0xa)+-parseInt(_0x5b1025(0x154))/0xb*(parseInt(_0x5b1025(0x16b))/0xc);if(_0x3f5d6b===_0x3c85a2)break;else _0x6a46db['push'](_0x6a46db['shift']());}catch(_0x454a88){_0x6a46db['push'](_0x6a46db['shift']());}}}(_0x302d,0xbed5d));import{ButtonView as _0x2ae371,IconView as _0x29f34d,ToolbarView as _0x340b22}from'ckeditor5/src/ui.js';import{IconCheck as _0x752c5a,IconCopy as _0x53837e,IconShowChangesOff as _0x4e7ec9,IconShowChangesOn as _0x215515,IconThumbDown as _0x57d9e2,IconThumbUp as _0x43b750}from'@ckeditor/ckeditor5-icons';function _0x4ddb(_0x67f53f,_0x44efb0){const _0x302ddd=_0x302d();return _0x4ddb=function(_0x4ddbe7,_0x2ad0a8){_0x4ddbe7=_0x4ddbe7-0x152;let _0x159a1a=_0x302ddd[_0x4ddbe7];return _0x159a1a;},_0x4ddb(_0x67f53f,_0x44efb0);}import{getTranslation as _0x248371}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x340b22{[_0x197bec(0x172)];[_0x197bec(0x160)];[_0x197bec(0x169)];[_0x197bec(0x166)];[_0x197bec(0x178)];constructor(_0x3b3617,_0x2a6d80={},_0x4e608f){const _0x3746b3=_0x197bec;super(_0x3b3617),this[_0x3746b3(0x158)](_0x3746b3(0x17c),!0x1),this[_0x3746b3(0x178)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x2a6d80};const _0x7292ed=!(this[_0x3746b3(0x178)][_0x3746b3(0x17d)]||this[_0x3746b3(0x178)][_0x3746b3(0x182)]||this[_0x3746b3(0x178)][_0x3746b3(0x15b)]||this[_0x3746b3(0x178)][_0x3746b3(0x152)]||this[_0x3746b3(0x178)][_0x3746b3(0x173)]?.[_0x3746b3(0x17b)]);this[_0x3746b3(0x185)]=_0x7292ed?_0x3746b3(0x179):_0x3746b3(0x183),this[_0x3746b3(0x178)][_0x3746b3(0x17d)]&&(this[_0x3746b3(0x162)](),this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x172)])),this[_0x3746b3(0x178)][_0x3746b3(0x182)]&&(this[_0x3746b3(0x16c)](_0x4e608f),this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x166)])),this[_0x3746b3(0x155)](),this[_0x3746b3(0x178)][_0x3746b3(0x15b)]&&this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x160)]),this[_0x3746b3(0x178)][_0x3746b3(0x152)]&&this[_0x3746b3(0x176)][_0x3746b3(0x157)](this[_0x3746b3(0x169)]),this[_0x3746b3(0x178)][_0x3746b3(0x173)]&&this[_0x3746b3(0x176)][_0x3746b3(0x171)](this[_0x3746b3(0x178)][_0x3746b3(0x173)]);}[_0x197bec(0x155)](){const _0x23eeae=_0x197bec;this[_0x23eeae(0x160)]=new _0x2ae371(this[_0x23eeae(0x159)]),this[_0x23eeae(0x160)][_0x23eeae(0x158)]({'icon':_0x43b750,'label':_0x248371(this[_0x23eeae(0x159)],_0x23eeae(0x156)),'tooltip':!0x0}),this[_0x23eeae(0x160)][_0x23eeae(0x186)](_0x23eeae(0x15a))['to'](this,_0x23eeae(0x17c),_0x3f3e2e=>!_0x3f3e2e),this[_0x23eeae(0x160)]['on'](_0x23eeae(0x184),()=>{const _0x34d334=_0x23eeae;this[_0x34d334(0x153)](_0x34d334(0x161));}),this[_0x23eeae(0x169)]=new _0x2ae371(this[_0x23eeae(0x159)]),this[_0x23eeae(0x169)][_0x23eeae(0x158)]({'icon':_0x57d9e2,'label':_0x248371(this[_0x23eeae(0x159)],_0x23eeae(0x165)),'tooltip':!0x0}),this[_0x23eeae(0x169)][_0x23eeae(0x186)](_0x23eeae(0x15a))['to'](this,_0x23eeae(0x17c),_0xc0159f=>!_0xc0159f),this[_0x23eeae(0x169)]['on'](_0x23eeae(0x184),()=>{const _0x24d317=_0x23eeae;this[_0x24d317(0x153)](_0x24d317(0x174));});}[_0x197bec(0x162)](){const _0x342a51=_0x197bec;this[_0x342a51(0x172)]=new _0x2ae371(this[_0x342a51(0x159)]),this[_0x342a51(0x172)][_0x342a51(0x158)]({'icon':_0x53837e,'label':_0x248371(this[_0x342a51(0x159)],_0x342a51(0x167)),'class':_0x342a51(0x17a),'tooltip':!0x0}),this[_0x342a51(0x172)][_0x342a51(0x186)](_0x342a51(0x15a))['to'](this,_0x342a51(0x17c),_0x515484=>!_0x515484);const _0x528b04=new _0x29f34d();_0x528b04[_0x342a51(0x158)]({'content':_0x752c5a}),_0x528b04[_0x342a51(0x16f)]({'attributes':{'class':[_0x342a51(0x164)]}}),this[_0x342a51(0x172)]['on'](_0x342a51(0x184),()=>{const _0x267934=_0x342a51;this[_0x267934(0x172)][_0x267934(0x185)]=_0x267934(0x181),setTimeout(()=>{const _0x88468d=_0x267934;this[_0x88468d(0x172)][_0x88468d(0x185)]=_0x88468d(0x17a);},0x7d0);}),this[_0x342a51(0x172)][_0x342a51(0x175)][_0x342a51(0x157)](_0x528b04);}[_0x197bec(0x16c)](_0x4c9f54){const _0x5c8f1d=_0x197bec;this[_0x5c8f1d(0x166)]=new _0x2ae371(this[_0x5c8f1d(0x159)]),this[_0x5c8f1d(0x166)][_0x5c8f1d(0x158)]({'icon':_0x4e7ec9,'label':_0x248371(this[_0x5c8f1d(0x159)],_0x5c8f1d(0x180)),'withText':_0x5c8f1d(0x17f)==this[_0x5c8f1d(0x178)][_0x5c8f1d(0x182)],'tooltip':_0x5c8f1d(0x17f)!=this[_0x5c8f1d(0x178)][_0x5c8f1d(0x182)],'isOn':_0x4c9f54}),this[_0x5c8f1d(0x166)][_0x5c8f1d(0x186)](_0x5c8f1d(0x15a))['to'](this,_0x5c8f1d(0x17c),_0x4fc4fe=>!_0x4fc4fe),this[_0x5c8f1d(0x166)]['on'](_0x5c8f1d(0x184),()=>{const _0x3874c3=_0x5c8f1d,_0x1b80fd=!this[_0x3874c3(0x166)][_0x3874c3(0x170)];this[_0x3874c3(0x166)][_0x3874c3(0x158)]({'isOn':_0x1b80fd,'icon':_0x1b80fd?_0x215515:_0x4e7ec9}),this[_0x3874c3(0x153)](_0x3874c3(0x177),_0x1b80fd);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44dd83=_0x1b05;(function(_0x42fd9b,_0x4f2dc9){const _0x1305ce=_0x1b05,_0x10906c=_0x42fd9b();while(!![]){try{const _0x432b25=-parseInt(_0x1305ce(0x113))/0x1+parseInt(_0x1305ce(0x107))/0x2*(parseInt(_0x1305ce(0x12e))/0x3)+-parseInt(_0x1305ce(0x125))/0x4+parseInt(_0x1305ce(0x115))/0x5*(parseInt(_0x1305ce(0x104))/0x6)+parseInt(_0x1305ce(0x12f))/0x7+-parseInt(_0x1305ce(0x123))/0x8+-parseInt(_0x1305ce(0x103))/0x9;if(_0x432b25===_0x4f2dc9)break;else _0x10906c['push'](_0x10906c['shift']());}catch(_0x309be6){_0x10906c['push'](_0x10906c['shift']());}}}(_0x143c,0x259a6));import{View as _0x5a3cfe}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x2b2e1c}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3ba0bd}from'../../utils/eventnames.js';function _0x1b05(_0x4c4a1d,_0x2f98d0){const _0x143c69=_0x143c();return _0x1b05=function(_0x1b05e2,_0x10df65){_0x1b05e2=_0x1b05e2-0xf8;let _0x1a55f2=_0x143c69[_0x1b05e2];return _0x1a55f2;},_0x1b05(_0x4c4a1d,_0x2f98d0);}import{PromiseQueue as _0x3a5be6}from'../../../aichat/utils/promisequeue.js';function _0x143c(){const _0x22d7d9=['enqueue','div','from','AI_SUGGESTION_NO_PARTS_WARNING','updatePartState','delegate','setContent','locale','pending','157233wFZrjT','first','9985UTRmJs','state','updateContentParts','ck-ai-suggestion__body','isVisible','hasPendingParts','forEach','findIndex','createCollection','warning','partsCount','empty-parts-warning','push','filter','694864FotQoI','add','118164wGMPnd','AI_SUGGESTION_EMPTY_PART_WARNING','_updateContentPartsPromiseQueue','hasChanges','markAsDone','length','find','_cachedContentParts','abort','3zSlmBk','549486ovPoUt','addEventListener','setTemplate','updateContent','partDefinition','some','set','queueEmptyPromise','index','_emptyPartsWarningView','_children','_availableActions','getPartView','_areActionsDisabled','1762740FXChzX','804EmAvwQ','_showUnchangedParts','toggleHeader','554836YGICAs','hasNonEmptyParts','ck-ai-suggestion__body__content-parts'];_0x143c=function(){return _0x22d7d9;};return _0x143c();}import{AIChatFeedErrorItemView as _0x25d0c6}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x438eae}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x5a3cfe{[_0x44dd83(0xff)];[_0x44dd83(0x102)];[_0x44dd83(0x105)];[_0x44dd83(0x127)];[_0x44dd83(0xfe)];[_0x44dd83(0x100)];[_0x44dd83(0x12c)]=[];constructor(_0x1589cc,_0x2b8612){const _0x1a490c=_0x44dd83;super(_0x1589cc);const {areActionsDisabled:_0x3326a2,showUnchangedParts:_0xa36741,availableActions:_0x510f1a}=_0x2b8612;this[_0x1a490c(0x102)]=_0x3326a2,this[_0x1a490c(0x105)]=_0xa36741,this[_0x1a490c(0x100)]=_0x510f1a,this[_0x1a490c(0xfb)](_0x1a490c(0x11a),!0x1),this[_0x1a490c(0xff)]=this[_0x1a490c(0x11d)](),this[_0x1a490c(0x127)]=new _0x3a5be6(),this[_0x1a490c(0xfe)]=new _0x25d0c6({'id':_0x1a490c(0x120),'initialContent':_0x438eae(_0x1589cc,_0x1a490c(0x126)),'level':_0x1a490c(0x11e)}),this[_0x1a490c(0xfe)][_0x1a490c(0x119)]=!0x1,this[_0x1a490c(0x131)]({'tag':_0x1a490c(0x10b),'attributes':{'class':['ck',_0x1a490c(0x118)]},'children':[{'tag':_0x1a490c(0x10b),'attributes':{'class':['ck',_0x1a490c(0x109)]},'children':this[_0x1a490c(0xff)]},this[_0x1a490c(0xfe)]]});}get[_0x44dd83(0x11f)](){const _0x4659a9=_0x44dd83;return this[_0x4659a9(0xff)][_0x4659a9(0x12a)];}async[_0x44dd83(0x117)]({parts:_0x33d5a8,renderingStrategy:_0x32728d,abortSignal:_0x4e190d}){const _0x12d356=_0x44dd83;this[_0x12d356(0xff)][_0x12d356(0x12a)]?_0x33d5a8[_0x12d356(0x11b)](_0x25db2c=>{const _0x51816b=_0x12d356,_0x4d508a=this[_0x51816b(0x12c)][_0x51816b(0x11c)](_0x5b40d8=>_0x5b40d8[_0x51816b(0xfd)]==_0x25db2c[_0x51816b(0xfd)]);-0x1===_0x4d508a?this[_0x51816b(0x12c)][_0x51816b(0x121)](_0x25db2c):this[_0x51816b(0x12c)][_0x4d508a]=_0x25db2c;}):this[_0x12d356(0x12c)]=_0x33d5a8;for(const _0x51811a of _0x33d5a8[_0x12d356(0x122)](_0x4378a3=>_0x4378a3[_0x12d356(0x128)]))this[_0x12d356(0x127)][_0x12d356(0x10a)](async _0x53f320=>{const _0x31f7c=_0x12d356;let _0x3f4b83=this[_0x31f7c(0x101)](_0x51811a[_0x31f7c(0xfd)]);_0x3f4b83||(_0x3f4b83=new _0x2b2e1c(this[_0x31f7c(0x111)],{'part':_0x51811a,'uiIndex':this[_0x31f7c(0xff)][_0x31f7c(0x12a)]+0x1,'areActionsDisabled':this[_0x31f7c(0x102)],'availableActions':this[_0x31f7c(0x100)]}),_0x3f4b83[_0x31f7c(0x10f)](..._0x3ba0bd)['to'](this),this[_0x31f7c(0xff)][_0x31f7c(0x124)](_0x3f4b83),this[_0x31f7c(0x11a)]=!0x0),0x2===this[_0x31f7c(0xff)][_0x31f7c(0x12a)]&&this[_0x31f7c(0xff)][_0x31f7c(0x114)][_0x31f7c(0x106)](!0x0),_0x3f4b83[_0x31f7c(0x106)](this[_0x31f7c(0xff)][_0x31f7c(0x12a)]>0x1),await _0x3f4b83[_0x31f7c(0xf8)]({'part':_0x51811a,'renderingStrategy':_0x32728d,'showUnchangedParts':this[_0x31f7c(0x105)],'abortSignal':_0x53f320});});return _0x4e190d?.[_0x12d356(0x130)](_0x12d356(0x12d),()=>{const _0x35cd95=_0x12d356;this[_0x35cd95(0x127)][_0x35cd95(0x12d)]();}),this[_0x12d356(0x127)][_0x12d356(0xfc)];}[_0x44dd83(0x10e)](_0x3f38b4,_0x4e5d36){const _0x288e98=_0x44dd83,_0xd05718=this[_0x288e98(0x101)](_0x3f38b4);_0xd05718&&(_0xd05718[_0x288e98(0x116)]=_0x4e5d36),this[_0x288e98(0x11a)]=_0x288e98(0x112)==_0x4e5d36||Array[_0x288e98(0x10c)](this[_0x288e98(0xff)])[_0x288e98(0xfa)](_0x4d1f99=>_0x288e98(0x112)==_0x4d1f99[_0x288e98(0x116)]);}[_0x44dd83(0x101)](_0x20db2c){const _0x5d4433=_0x44dd83;return this[_0x5d4433(0xff)][_0x5d4433(0x12b)](_0x19ae0f=>_0x19ae0f[_0x5d4433(0xf9)][_0x5d4433(0xfd)]==_0x20db2c)??null;}[_0x44dd83(0x129)](){const _0x537e51=_0x44dd83;if(!this[_0x537e51(0x105)]){const _0x4a7d6f=!this[_0x537e51(0x12c)][_0x537e51(0x12b)](({hasChanges:_0x205aca})=>_0x205aca),_0x462ab8=!!this[_0x537e51(0x12c)][_0x537e51(0x12b)](({hasChanges:_0x44a836})=>!_0x44a836);this[_0x537e51(0xfe)][_0x537e51(0x119)]=0x0==this[_0x537e51(0xff)][_0x537e51(0x12a)]||_0x462ab8,_0x4a7d6f?this[_0x537e51(0xfe)][_0x537e51(0x110)](_0x438eae(this[_0x537e51(0x111)],_0x537e51(0x10d))):this[_0x537e51(0xfe)][_0x537e51(0x110)](_0x438eae(this[_0x537e51(0x111)],_0x537e51(0x126)));}}get[_0x44dd83(0x108)](){const _0x4cbdf9=_0x44dd83;return!!this[_0x4cbdf9(0xff)][_0x4cbdf9(0x12b)](_0x150426=>_0x150426[_0x4cbdf9(0xf9)][_0x4cbdf9(0x128)]);}}
23
+ const _0x44518a=_0x1e1a;(function(_0x395ec0,_0x4a1ac7){const _0x331f49=_0x1e1a,_0x54b025=_0x395ec0();while(!![]){try{const _0x13d54b=-parseInt(_0x331f49(0x19b))/0x1+parseInt(_0x331f49(0x176))/0x2+parseInt(_0x331f49(0x188))/0x3*(-parseInt(_0x331f49(0x1a5))/0x4)+-parseInt(_0x331f49(0x1a0))/0x5+parseInt(_0x331f49(0x181))/0x6*(-parseInt(_0x331f49(0x18a))/0x7)+parseInt(_0x331f49(0x1a4))/0x8+parseInt(_0x331f49(0x1a8))/0x9;if(_0x13d54b===_0x4a1ac7)break;else _0x54b025['push'](_0x54b025['shift']());}catch(_0x180d7e){_0x54b025['push'](_0x54b025['shift']());}}}(_0x1515,0x6e329));function _0x1e1a(_0x1bb151,_0x364eb6){const _0x151525=_0x1515();return _0x1e1a=function(_0x1e1a0b,_0x384430){_0x1e1a0b=_0x1e1a0b-0x171;let _0x734312=_0x151525[_0x1e1a0b];return _0x734312;},_0x1e1a(_0x1bb151,_0x364eb6);}import{View as _0x1d045e}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x5b5129}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xbcb5e9}from'../../utils/eventnames.js';import{PromiseQueue as _0x51e5cd}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x1ba8e2}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x2cf976}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x1d045e{[_0x44518a(0x17f)];[_0x44518a(0x198)];[_0x44518a(0x186)];[_0x44518a(0x18c)];[_0x44518a(0x17d)];[_0x44518a(0x172)];[_0x44518a(0x174)]=[];constructor(_0x53d01f,_0xb15df9){const _0x4daaa4=_0x44518a;super(_0x53d01f);const {areActionsDisabled:_0xae9719,showUnchangedParts:_0x34b953,availableActions:_0x223fb4}=_0xb15df9;this[_0x4daaa4(0x198)]=_0xae9719,this[_0x4daaa4(0x186)]=_0x34b953,this[_0x4daaa4(0x172)]=_0x223fb4,this[_0x4daaa4(0x18e)](_0x4daaa4(0x197),!0x1),this[_0x4daaa4(0x17f)]=this[_0x4daaa4(0x173)](),this[_0x4daaa4(0x18c)]=new _0x51e5cd(),this[_0x4daaa4(0x17d)]=new _0x1ba8e2({'id':_0x4daaa4(0x19f),'initialContent':_0x2cf976(_0x53d01f,_0x4daaa4(0x190)),'level':_0x4daaa4(0x1a2)}),this[_0x4daaa4(0x17d)][_0x4daaa4(0x18d)]=!0x1,this[_0x4daaa4(0x194)]({'tag':_0x4daaa4(0x180),'attributes':{'class':['ck',_0x4daaa4(0x179)]},'children':[{'tag':_0x4daaa4(0x180),'attributes':{'class':['ck',_0x4daaa4(0x184)]},'children':this[_0x4daaa4(0x17f)]},this[_0x4daaa4(0x17d)]]});}get[_0x44518a(0x175)](){const _0x1b4f1f=_0x44518a;return this[_0x1b4f1f(0x17f)][_0x1b4f1f(0x185)];}async[_0x44518a(0x1aa)]({parts:_0x561b64,renderingStrategy:_0x38ec63,abortSignal:_0x17fc67}){const _0x3912fe=_0x44518a;this[_0x3912fe(0x17f)][_0x3912fe(0x185)]?_0x561b64[_0x3912fe(0x182)](_0x9e9cec=>{const _0x3e0b8e=_0x3912fe,_0x193167=this[_0x3e0b8e(0x174)][_0x3e0b8e(0x191)](_0x5be087=>_0x5be087[_0x3e0b8e(0x193)]==_0x9e9cec[_0x3e0b8e(0x193)]);-0x1===_0x193167?this[_0x3e0b8e(0x174)][_0x3e0b8e(0x1a6)](_0x9e9cec):this[_0x3e0b8e(0x174)][_0x193167]=_0x9e9cec;}):this[_0x3912fe(0x174)]=_0x561b64;for(const _0x5a43ed of _0x561b64[_0x3912fe(0x171)](_0x351b81=>_0x351b81[_0x3912fe(0x18b)]))this[_0x3912fe(0x18c)][_0x3912fe(0x177)](async _0x286964=>{const _0x30be4f=_0x3912fe;let _0xad8d20=this[_0x30be4f(0x189)](_0x5a43ed[_0x30be4f(0x193)]);_0xad8d20||(_0xad8d20=new _0x5b5129(this[_0x30be4f(0x183)],{'part':_0x5a43ed,'uiIndex':this[_0x30be4f(0x17f)][_0x30be4f(0x185)]+0x1,'areActionsDisabled':this[_0x30be4f(0x198)],'availableActions':this[_0x30be4f(0x172)]}),_0xad8d20[_0x30be4f(0x192)](..._0xbcb5e9)['to'](this),this[_0x30be4f(0x17f)][_0x30be4f(0x19a)](_0xad8d20),this[_0x30be4f(0x197)]=!0x0),0x2===this[_0x30be4f(0x17f)][_0x30be4f(0x185)]&&this[_0x30be4f(0x17f)][_0x30be4f(0x17a)][_0x30be4f(0x196)](!0x0),_0xad8d20[_0x30be4f(0x196)](this[_0x30be4f(0x17f)][_0x30be4f(0x185)]>0x1),await _0xad8d20[_0x30be4f(0x18f)]({'part':_0x5a43ed,'renderingStrategy':_0x38ec63,'showUnchangedParts':this[_0x30be4f(0x186)],'abortSignal':_0x286964});});return _0x17fc67?.[_0x3912fe(0x19e)](_0x3912fe(0x195),()=>{const _0x15d6f2=_0x3912fe;this[_0x15d6f2(0x18c)][_0x15d6f2(0x195)]();}),this[_0x3912fe(0x18c)][_0x3912fe(0x1a9)];}[_0x44518a(0x17c)](_0x470796,_0x5590b6){const _0x54d4b8=_0x44518a,_0x422e3c=this[_0x54d4b8(0x189)](_0x470796);_0x422e3c&&(_0x422e3c[_0x54d4b8(0x1a7)]=_0x5590b6),this[_0x54d4b8(0x197)]=_0x54d4b8(0x19d)==_0x5590b6||Array[_0x54d4b8(0x17b)](this[_0x54d4b8(0x17f)])[_0x54d4b8(0x1a1)](_0x44d2f0=>_0x54d4b8(0x19d)==_0x44d2f0[_0x54d4b8(0x1a7)]);}[_0x44518a(0x189)](_0x23962d){const _0x156c4d=_0x44518a;return this[_0x156c4d(0x17f)][_0x156c4d(0x178)](_0x2071c7=>_0x2071c7[_0x156c4d(0x17e)][_0x156c4d(0x193)]==_0x23962d)??null;}[_0x44518a(0x1a3)](){const _0x29e370=_0x44518a;if(!this[_0x29e370(0x186)]){const _0x3b342b=!this[_0x29e370(0x174)][_0x29e370(0x178)](({hasChanges:_0x28d8f0})=>_0x28d8f0),_0x9cdda6=!!this[_0x29e370(0x174)][_0x29e370(0x178)](({hasChanges:_0x320de4})=>!_0x320de4);this[_0x29e370(0x17d)][_0x29e370(0x18d)]=0x0==this[_0x29e370(0x17f)][_0x29e370(0x185)]||_0x9cdda6,_0x3b342b?this[_0x29e370(0x17d)][_0x29e370(0x19c)](_0x2cf976(this[_0x29e370(0x183)],_0x29e370(0x199))):this[_0x29e370(0x17d)][_0x29e370(0x19c)](_0x2cf976(this[_0x29e370(0x183)],_0x29e370(0x190)));}}get[_0x44518a(0x187)](){const _0xaa6407=_0x44518a;return!!this[_0xaa6407(0x17f)][_0xaa6407(0x178)](_0x55f9fb=>_0x55f9fb[_0xaa6407(0x17e)][_0xaa6407(0x18b)]);}}function _0x1515(){const _0x1386e9=['partDefinition','_children','div','6JvMFDF','forEach','locale','ck-ai-suggestion__body__content-parts','length','_showUnchangedParts','hasNonEmptyParts','765321HMBoiJ','getPartView','2842259LuAIkG','hasChanges','_updateContentPartsPromiseQueue','isVisible','set','updateContent','AI_SUGGESTION_EMPTY_PART_WARNING','findIndex','delegate','index','setTemplate','abort','toggleHeader','hasPendingParts','_areActionsDisabled','AI_SUGGESTION_NO_PARTS_WARNING','add','328321WmQwMQ','setContent','pending','addEventListener','empty-parts-warning','2177645GdyxSm','some','warning','markAsDone','3844376aPvJXY','8QeReHU','push','state','8193465sVcHgO','queueEmptyPromise','updateContentParts','filter','_availableActions','createCollection','_cachedContentParts','partsCount','1481076ALuCfe','enqueue','find','ck-ai-suggestion__body','first','from','updatePartState','_emptyPartsWarningView'];_0x1515=function(){return _0x1386e9;};return _0x1515();}