@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.1.0

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 (114) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  3. package/package.json +15 -15
  4. package/src/aiactions/aiactions.js +1 -1
  5. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  6. package/src/aiactions/model/aiactionsreply.js +1 -1
  7. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  8. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  9. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  10. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  11. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  12. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  13. package/src/aiassistant/ui/form/aiformview.js +1 -1
  14. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  15. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  16. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  17. package/src/aiballoon/aiballoon.js +1 -1
  18. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  19. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  20. package/src/aiballoon/ui/aiballoonview.js +1 -1
  21. package/src/aichat/aichat.js +1 -1
  22. package/src/aichat/aichatcontroller.js +1 -1
  23. package/src/aichat/aichatui.js +1 -1
  24. package/src/aichat/model/aichatcontext.js +1 -1
  25. package/src/aichat/model/aichatconversation.js +1 -1
  26. package/src/aichat/model/aichatinteraction.js +1 -1
  27. package/src/aichat/model/aichatmodels.js +1 -1
  28. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  29. package/src/aichat/ui/aichatfeedview.js +1 -1
  30. package/src/aichat/ui/aichatheaderview.js +1 -1
  31. package/src/aichat/ui/aichatview.js +1 -1
  32. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  33. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  34. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  35. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  36. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  37. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  38. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  39. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  40. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  41. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  42. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  43. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  44. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  45. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  46. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  47. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  48. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  49. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  50. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  51. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  52. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  53. package/src/aichat/utils/eventnames.js +1 -1
  54. package/src/aichat/utils/promisequeue.js +1 -1
  55. package/src/aichathistory/aichathistory.js +1 -1
  56. package/src/aichathistory/aichathistorycontroller.js +1 -1
  57. package/src/aichathistory/aichathistoryui.js +1 -1
  58. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  59. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  60. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  61. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  62. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  63. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  64. package/src/aicore/aiconnector.js +1 -1
  65. package/src/aicore/aiediting.js +1 -1
  66. package/src/aicore/model/aicapabilities.js +1 -1
  67. package/src/aicore/model/aiinteraction.js +1 -1
  68. package/src/aicore/model/aireply.js +1 -1
  69. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  70. package/src/aicore/pipeline/airesponseparser.js +2 -2
  71. package/src/aicore/ui/aidisclaimerview.js +1 -1
  72. package/src/aicore/ui/aiskeleton.js +1 -1
  73. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  74. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  75. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  76. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  77. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  78. package/src/aicore/utils/createresizebutton.js +1 -1
  79. package/src/aicore/utils/documentposition.js +1 -1
  80. package/src/aicore/utils/documentrange.js +1 -1
  81. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  82. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  83. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  84. package/src/aicore/utils/htmlparser.js +1 -1
  85. package/src/aicore/utils/htmlstreamer.js +1 -1
  86. package/src/aieditorintegration/aieditorintegration.js +1 -1
  87. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  88. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  89. package/src/aiquickactions/aiquickactions.js +1 -1
  90. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  91. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  92. package/src/aiquickactions/aiquickactionsui.js +1 -1
  93. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  94. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  95. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  96. package/src/aireviewmode/aireviewmode.js +1 -1
  97. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  98. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  99. package/src/aireviewmode/aireviewmodeui.js +1 -1
  100. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  101. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  102. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  103. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  104. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  105. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  106. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  107. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  108. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  109. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  110. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  111. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  112. package/src/aitabs/aitabs.js +1 -1
  113. package/src/aitabs/tabs/aitabsview.js +1 -1
  114. package/src/aitabs/tabs/tabpanelview.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x545b(_0x1c1ac7,_0x47c318){const _0x3a8a6f=_0x3a8a();return _0x545b=function(_0x545b65,_0x193524){_0x545b65=_0x545b65-0x10e;let _0x442348=_0x3a8a6f[_0x545b65];return _0x442348;},_0x545b(_0x1c1ac7,_0x47c318);}const _0x212580=_0x545b;(function(_0x4f4892,_0xa6cb4d){const _0x5a5698=_0x545b,_0x16c301=_0x4f4892();while(!![]){try{const _0x36590d=parseInt(_0x5a5698(0x15d))/0x1+parseInt(_0x5a5698(0x167))/0x2+-parseInt(_0x5a5698(0x156))/0x3+parseInt(_0x5a5698(0x117))/0x4*(parseInt(_0x5a5698(0x15f))/0x5)+-parseInt(_0x5a5698(0x130))/0x6*(-parseInt(_0x5a5698(0x159))/0x7)+-parseInt(_0x5a5698(0x152))/0x8+parseInt(_0x5a5698(0x135))/0x9*(-parseInt(_0x5a5698(0x13a))/0xa);if(_0x36590d===_0xa6cb4d)break;else _0x16c301['push'](_0x16c301['shift']());}catch(_0x2778d0){_0x16c301['push'](_0x16c301['shift']());}}}(_0x3a8a,0x83286));import{View as _0x2d5fa9,SearchTextView as _0x11d34a,FormHeaderView as _0x56f1a3,ButtonView as _0x4e3ba4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x40d80d,IconCancel as _0x56f0fd,IconPlus as _0x220d08}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x586905}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5c04a2}from'./aichathistorylistview.js';function _0x3a8a(){const _0x436480=['extendTemplate','items','ck-rounded-corners','removeItem','errorView','isMaximized','_createEmptyStateView','change:hasItems','isSearchViewVisible','AI_CHAT_LABEL_NEW_CHAT','_createSkeletonView','fieldView','ltr','bindTemplate','children','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','locale','value','getItem','delegate','2566360FyZkaX','fire','render','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','1060089UKVPdl','sectionsView','queryView','2151569sBIqQK','push','element','_createListItemViews','57620QTLjRN','_updateViewVisibility','5SYrMdz','remove','emptyView','setTemplate','ck-ai-header\x20ck-ai-header_history','removeHistoryItem','isEmptyViewVisible','errorMessage','317202zMYbIr','isLoading','splice','AI_CHAT_HISTORY_HEADING','AI_CHAT_HISTORY_SEARCH_LABEL','updateItemTitle','change:errorMessage','ck-ai-chat-error','ck-reset_all','_refreshSearch','ck-ai-chat-history__empty-message','3698836WXtHJW','addMany','hasItems','ck-ai-chat-history__content','set','isVisible','div','aiHistory','resizeButton','updateHistoryItemsWithCategories','_createSearchView','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateTitle','ck-ai-chat-history','sections','ck-ai-chat-error__dismiss-button','updateItemLoadingState','add','title','execute','some','ck-ai-chat__start-conversation','search','indexOf','openChat','6xvoXtd','itemsViews','_createErrorView','searchView','change:isLoading','2132253FyXTXa','length','ck-ai-chat-history__empty','clear','updateLoadingState','10PZguDj','ck-hidden','bind','skeletonView'];_0x3a8a=function(){return _0x436480;};return _0x3a8a();}import{AIChatHistoryListItemView as _0x5d1c3f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xc935bc}from'../aichathistoryui.js';import{AISkeletonView as _0x44489a,SKELETON_DEFINITIONS as _0x52cf4d}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x40b245}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x574855}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2d5fa9{[_0x212580(0x133)];[_0x212580(0x142)];[_0x212580(0x13d)];[_0x212580(0x161)];[_0x212580(0x157)];[_0x212580(0x11f)];constructor(_0x1d1b24,_0x9f16e2){const _0x511de4=_0x212580;super(_0x1d1b24),this[_0x511de4(0x11b)](_0x511de4(0x119),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x168),!0x0),this[_0x511de4(0x11b)](_0x511de4(0x166),''),this[_0x511de4(0x11b)](_0x511de4(0x143),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x146),!0x1),this[_0x511de4(0x11b)](_0x511de4(0x165),!0x1);const _0x369d58=new _0x56f1a3(_0x1d1b24,{'label':_0x574855(_0x1d1b24,_0x511de4(0x10f)),'icon':_0x40d80d,'class':_0x511de4(0x163)});_0x9f16e2&&(this[_0x511de4(0x11f)]=_0x40b245(_0x1d1b24,this),_0x369d58[_0x511de4(0x14c)][_0x511de4(0x128)](this[_0x511de4(0x11f)])),this[_0x511de4(0x157)]=new _0x586905(_0x1d1b24,[]),this[_0x511de4(0x157)][_0x511de4(0x151)](..._0xc935bc)['to'](this),this[_0x511de4(0x142)]=this[_0x511de4(0x132)](),this[_0x511de4(0x13d)]=this[_0x511de4(0x148)](),this[_0x511de4(0x161)]=this[_0x511de4(0x144)](),this[_0x511de4(0x133)]=this[_0x511de4(0x121)](),this['on'](_0x511de4(0x134),()=>this[_0x511de4(0x15e)]()),this['on'](_0x511de4(0x145),()=>this[_0x511de4(0x15e)]()),this['on'](_0x511de4(0x112),()=>this[_0x511de4(0x15e)]()),this[_0x511de4(0x162)]({'tag':_0x511de4(0x11d),'attributes':{'class':['ck',_0x511de4(0x114),_0x511de4(0x124),_0x511de4(0x140)],'dir':_0x511de4(0x14a)},'children':[_0x369d58,{'tag':_0x511de4(0x11d),'attributes':{'class':[_0x511de4(0x11a)]},'children':[this[_0x511de4(0x13d)],this[_0x511de4(0x142)],this[_0x511de4(0x161)],this[_0x511de4(0x133)]]}]});}[_0x212580(0x15e)](){const _0x13e8e4=_0x212580;this[_0x13e8e4(0x146)]=!this[_0x13e8e4(0x168)]&&this[_0x13e8e4(0x119)]&&!this[_0x13e8e4(0x166)],this[_0x13e8e4(0x165)]=!this[_0x13e8e4(0x168)]&&!this[_0x13e8e4(0x119)]&&!this[_0x13e8e4(0x166)];}[_0x212580(0x121)](){const _0x59fc64=_0x212580,_0x5571c0=new _0x11d34a(this[_0x59fc64(0x14e)],{'filteredView':this[_0x59fc64(0x157)],'queryView':{'label':_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x110))},'infoView':{'text':{'notFound':{'primary':_0x1ca5cf=>_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x155),_0x1ca5cf),'secondary':_0x574855(this[_0x59fc64(0x14e)],_0x59fc64(0x14d))}}}});return _0x5571c0['on'](_0x59fc64(0x154),()=>{const _0x464979=_0x59fc64;this[_0x464979(0x133)][_0x464979(0x14c)][_0x464979(0x128)](this[_0x464979(0x142)],0x1);}),_0x5571c0[_0x59fc64(0x13e)]({'attributes':{'class':[this[_0x59fc64(0x14b)]['if'](_0x59fc64(0x146),_0x59fc64(0x13b),_0x166c84=>!_0x166c84)]}}),_0x5571c0;}[_0x212580(0x148)](){const _0x4eb26a=_0x212580,_0x402d7c=new _0x44489a(this[_0x4eb26a(0x14e)],_0x52cf4d[_0x4eb26a(0x11e)]);return _0x402d7c[_0x4eb26a(0x13e)]({'attributes':{'class':[this[_0x4eb26a(0x14b)]['if'](_0x4eb26a(0x168),_0x4eb26a(0x13b),_0xeca38=>!_0xeca38)]}}),_0x402d7c;}[_0x212580(0x132)](){const _0x2867c5=_0x212580,_0x3cc5d9=new _0x2d5fa9(this[_0x2867c5(0x14e)]),_0x237e92=new _0x4e3ba4(this[_0x2867c5(0x14e)]);return _0x237e92[_0x2867c5(0x11b)]({'withText':!0x1,'icon':_0x56f0fd,'class':_0x2867c5(0x126)}),_0x237e92[_0x2867c5(0x13c)](_0x2867c5(0x11c))['to'](this,_0x2867c5(0x119),_0x7da371=>!!_0x7da371),_0x237e92['on'](_0x2867c5(0x12a),()=>{const _0x1e4977=_0x2867c5;this[_0x1e4977(0x166)]='';}),_0x3cc5d9[_0x2867c5(0x162)]({'tag':_0x2867c5(0x11d),'attributes':{'class':['ck',_0x2867c5(0x113),this[_0x2867c5(0x14b)]['if'](_0x2867c5(0x166),_0x2867c5(0x13b),_0x3b6866=>!_0x3b6866)]},'children':[{'tag':'p','children':[{'text':this[_0x2867c5(0x14b)]['to'](_0x2867c5(0x166))}]},_0x237e92]}),_0x3cc5d9;}[_0x212580(0x144)](){const _0x9fd980=_0x212580,_0x132e47=new _0x4e3ba4(this[_0x9fd980(0x14e)]);_0x132e47[_0x9fd980(0x11b)]({'label':_0x574855(this[_0x9fd980(0x14e)],_0x9fd980(0x147)),'withText':!0x0,'icon':_0x220d08,'class':_0x9fd980(0x12c)}),_0x132e47['on'](_0x9fd980(0x12a),()=>{const _0x43594f=_0x9fd980;this[_0x43594f(0x153)](_0x43594f(0x12f));});const _0x9bbe08=new _0x2d5fa9(this[_0x9fd980(0x14e)]);return _0x9bbe08[_0x9fd980(0x162)]({'tag':_0x9fd980(0x11d),'attributes':{'class':[_0x9fd980(0x137),this[_0x9fd980(0x14b)]['if'](_0x9fd980(0x165),_0x9fd980(0x13b),_0x552e31=>!_0x552e31)]},'children':[{'tag':'p','attributes':{'class':[_0x9fd980(0x116)]},'children':[_0x574855(this[_0x9fd980(0x14e)],_0x9fd980(0x122))]},_0x132e47]}),_0x9bbe08;}[_0x212580(0x15c)](_0x2dc803,_0x490681){const _0x5f1e3e=_0x212580,_0x3d29d6=[];for(const _0x5d537a of _0x2dc803){const _0x25fceb=new _0x5d1c3f(_0x490681,_0x5d537a);_0x25fceb[_0x5f1e3e(0x151)](..._0xc935bc)['to'](this),_0x3d29d6[_0x5f1e3e(0x15a)](_0x25fceb);}return _0x3d29d6;}[_0x212580(0x120)](_0x457d6c){const _0x520a08=_0x212580,_0x48baeb=this[_0x520a08(0x14e)]||'en',_0x2dacd0=[];for(const _0x3a8fca of _0x457d6c){const _0x567d4a=this[_0x520a08(0x15c)](_0x3a8fca[_0x520a08(0x13f)],_0x48baeb);_0x2dacd0[_0x520a08(0x15a)](new _0x5c04a2(_0x48baeb,{'title':_0x3a8fca[_0x520a08(0x129)],'items':_0x567d4a}));}this[_0x520a08(0x157)][_0x520a08(0x125)]=_0x2dacd0,this[_0x520a08(0x157)][_0x520a08(0x13f)][_0x520a08(0x138)](),this[_0x520a08(0x157)][_0x520a08(0x13f)][_0x520a08(0x118)](_0x2dacd0),this[_0x520a08(0x119)]=_0x457d6c[_0x520a08(0x12b)](_0x38150f=>_0x38150f[_0x520a08(0x13f)][_0x520a08(0x136)]>0x0),this[_0x520a08(0x115)]();}[_0x212580(0x164)](_0x578502){const _0x1056d0=_0x212580;for(const _0x459910 of this[_0x1056d0(0x157)][_0x1056d0(0x125)]){const _0x346f5d=_0x459910[_0x1056d0(0x150)](_0x578502);if(_0x346f5d){if(_0x459910[_0x1056d0(0x141)](_0x346f5d),0x0===_0x459910[_0x1056d0(0x131)][_0x1056d0(0x136)]){const _0x355080=this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x12e)](_0x459910);-0x1!==_0x355080&&(this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x10e)](_0x355080,0x1),this[_0x1056d0(0x157)][_0x1056d0(0x13f)][_0x1056d0(0x160)](_0x459910));}this[_0x1056d0(0x119)]=this[_0x1056d0(0x157)][_0x1056d0(0x125)][_0x1056d0(0x136)]>0x0,this[_0x1056d0(0x115)]();break;}}}[_0x212580(0x111)](_0x4e665e,_0x6e4954){const _0x2a30e6=_0x212580;for(const _0x5c7dc1 of this[_0x2a30e6(0x157)][_0x2a30e6(0x125)]){const _0x137d31=_0x5c7dc1[_0x2a30e6(0x150)](_0x4e665e);if(_0x137d31){_0x137d31[_0x2a30e6(0x123)](_0x6e4954);break;}}}[_0x212580(0x127)](_0x3909fb,_0x5ee76b,_0x255533){const _0x34f1b0=_0x212580;for(const _0x127c62 of this[_0x34f1b0(0x157)][_0x34f1b0(0x125)]){const _0x371afd=_0x127c62[_0x34f1b0(0x150)](_0x3909fb);if(_0x371afd){_0x371afd[_0x34f1b0(0x139)](_0x5ee76b,_0x255533);break;}}}[_0x212580(0x115)](){const _0x2587a6=_0x212580;if(this[_0x2587a6(0x119)]){const _0x407929=this[_0x2587a6(0x133)][_0x2587a6(0x158)][_0x2587a6(0x149)]?.[_0x2587a6(0x15b)]?.[_0x2587a6(0x14f)]||'';this[_0x2587a6(0x133)][_0x2587a6(0x12d)](_0x407929);}}}
23
+ function _0x9070(_0x3ee975,_0x330f96){const _0x29c7f9=_0x29c7();return _0x9070=function(_0x907045,_0x287954){_0x907045=_0x907045-0x10d;let _0x238fa8=_0x29c7f9[_0x907045];return _0x238fa8;},_0x9070(_0x3ee975,_0x330f96);}const _0x32357c=_0x9070;(function(_0x392a4b,_0x25eb92){const _0x2573b5=_0x9070,_0x444ea5=_0x392a4b();while(!![]){try{const _0x25ea2a=-parseInt(_0x2573b5(0x146))/0x1+-parseInt(_0x2573b5(0x154))/0x2+parseInt(_0x2573b5(0x10f))/0x3+parseInt(_0x2573b5(0x124))/0x4*(parseInt(_0x2573b5(0x11f))/0x5)+parseInt(_0x2573b5(0x13c))/0x6+parseInt(_0x2573b5(0x141))/0x7+-parseInt(_0x2573b5(0x12a))/0x8;if(_0x25ea2a===_0x25eb92)break;else _0x444ea5['push'](_0x444ea5['shift']());}catch(_0x34c47d){_0x444ea5['push'](_0x444ea5['shift']());}}}(_0x29c7,0x81375));import{View as _0x54a589,SearchTextView as _0x3222d4,FormHeaderView as _0x86cf60,ButtonView as _0x3ea19e}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1491d7,IconCancel as _0x521d25,IconPlus as _0xa30ac2}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x13523e}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x571185}from'./aichathistorylistview.js';function _0x29c7(){const _0xbae310=['_createSkeletonView','ck-rounded-corners','execute','ck-ai-chat-error','openChat','addMany','indexOf','ltr','isMaximized','445238JVqLGH','ck-ai-chat-history','_createListItemViews','search','resizeButton','ck-hidden','_createErrorView','AI_CHAT_LABEL_NEW_CHAT','_updateViewVisibility','render','children','isSearchViewVisible','extendTemplate','splice','isVisible','ck-ai-chat-history__empty-message','errorMessage','ck-ai-chat__start-conversation','AI_CHAT_HISTORY_SEARCH_LABEL','updateHistoryItemsWithCategories','1757721WLaSkg','add','change:hasItems','fieldView','isLoading','_refreshSearch','ck-reset_all','updateTitle','_createEmptyStateView','element','change:errorMessage','ck-ai-chat-history__content','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:isLoading','ck-ai-header\x20ck-ai-header_history','length','15fdlblF','updateItemLoadingState','_createSearchView','remove','div','34564NXFGoj','setTemplate','items','fire','removeItem','queryView','168208DOHSAt','errorView','skeletonView','delegate','sections','updateItemTitle','aiHistory','getItem','sectionsView','locale','searchView','some','set','itemsViews','emptyView','value','removeHistoryItem','clear','2776188pQnBDJ','bind','ck-ai-chat-history__empty','isEmptyViewVisible','title','5071416FFaatH','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_HEADING','1026102KWjkaR','hasItems','bindTemplate','ck-ai-chat-error__dismiss-button','push'];_0x29c7=function(){return _0xbae310;};return _0x29c7();}import{AIChatHistoryListItemView as _0x304c03}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2f820d}from'../aichathistoryui.js';import{AISkeletonView as _0x5818f2,SKELETON_DEFINITIONS as _0x1c3910}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4e51d4}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2c2f18}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x54a589{[_0x32357c(0x134)];[_0x32357c(0x12b)];[_0x32357c(0x12c)];[_0x32357c(0x138)];[_0x32357c(0x132)];[_0x32357c(0x158)];constructor(_0x437233,_0x467ecc){const _0x4ef331=_0x32357c;super(_0x437233),this[_0x4ef331(0x136)](_0x4ef331(0x147),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x113),!0x0),this[_0x4ef331(0x136)](_0x4ef331(0x164),''),this[_0x4ef331(0x136)](_0x4ef331(0x153),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x15f),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x13f),!0x1);const _0x520209=new _0x86cf60(_0x437233,{'label':_0x2c2f18(_0x437233,_0x4ef331(0x145)),'icon':_0x1491d7,'class':_0x4ef331(0x11d)});_0x467ecc&&(this[_0x4ef331(0x158)]=_0x4e51d4(_0x437233,this),_0x520209[_0x4ef331(0x15e)][_0x4ef331(0x110)](this[_0x4ef331(0x158)])),this[_0x4ef331(0x132)]=new _0x13523e(_0x437233,[]),this[_0x4ef331(0x132)][_0x4ef331(0x12d)](..._0x2f820d)['to'](this),this[_0x4ef331(0x12b)]=this[_0x4ef331(0x15a)](),this[_0x4ef331(0x12c)]=this[_0x4ef331(0x14b)](),this[_0x4ef331(0x138)]=this[_0x4ef331(0x117)](),this[_0x4ef331(0x134)]=this[_0x4ef331(0x121)](),this['on'](_0x4ef331(0x11c),()=>this[_0x4ef331(0x15c)]()),this['on'](_0x4ef331(0x111),()=>this[_0x4ef331(0x15c)]()),this['on'](_0x4ef331(0x119),()=>this[_0x4ef331(0x15c)]()),this[_0x4ef331(0x125)]({'tag':_0x4ef331(0x123),'attributes':{'class':['ck',_0x4ef331(0x115),_0x4ef331(0x155),_0x4ef331(0x14c)],'dir':_0x4ef331(0x152)},'children':[_0x520209,{'tag':_0x4ef331(0x123),'attributes':{'class':[_0x4ef331(0x11a)]},'children':[this[_0x4ef331(0x12c)],this[_0x4ef331(0x12b)],this[_0x4ef331(0x138)],this[_0x4ef331(0x134)]]}]});}[_0x32357c(0x15c)](){const _0x471638=_0x32357c;this[_0x471638(0x15f)]=!this[_0x471638(0x113)]&&this[_0x471638(0x147)]&&!this[_0x471638(0x164)],this[_0x471638(0x13f)]=!this[_0x471638(0x113)]&&!this[_0x471638(0x147)]&&!this[_0x471638(0x164)];}[_0x32357c(0x121)](){const _0x5792db=_0x32357c,_0x4effbd=new _0x3222d4(this[_0x5792db(0x133)],{'filteredView':this[_0x5792db(0x132)],'queryView':{'label':_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x10d))},'infoView':{'text':{'notFound':{'primary':_0x5b467c=>_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x11b),_0x5b467c),'secondary':_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x144))}}}});return _0x4effbd['on'](_0x5792db(0x15d),()=>{const _0x29e76f=_0x5792db;this[_0x29e76f(0x134)][_0x29e76f(0x15e)][_0x29e76f(0x110)](this[_0x29e76f(0x12b)],0x1);}),_0x4effbd[_0x5792db(0x160)]({'attributes':{'class':[this[_0x5792db(0x148)]['if'](_0x5792db(0x15f),_0x5792db(0x159),_0x476a45=>!_0x476a45)]}}),_0x4effbd;}[_0x32357c(0x14b)](){const _0x124f24=_0x32357c,_0x27db4b=new _0x5818f2(this[_0x124f24(0x133)],_0x1c3910[_0x124f24(0x130)]);return _0x27db4b[_0x124f24(0x160)]({'attributes':{'class':[this[_0x124f24(0x148)]['if'](_0x124f24(0x113),_0x124f24(0x159),_0x25af8c=>!_0x25af8c)]}}),_0x27db4b;}[_0x32357c(0x15a)](){const _0x25bb01=_0x32357c,_0x4d0f00=new _0x54a589(this[_0x25bb01(0x133)]),_0x2a3762=new _0x3ea19e(this[_0x25bb01(0x133)]);return _0x2a3762[_0x25bb01(0x136)]({'withText':!0x1,'icon':_0x521d25,'class':_0x25bb01(0x149)}),_0x2a3762[_0x25bb01(0x13d)](_0x25bb01(0x162))['to'](this,_0x25bb01(0x147),_0x570d4f=>!!_0x570d4f),_0x2a3762['on'](_0x25bb01(0x14d),()=>{const _0x474213=_0x25bb01;this[_0x474213(0x164)]='';}),_0x4d0f00[_0x25bb01(0x125)]({'tag':_0x25bb01(0x123),'attributes':{'class':['ck',_0x25bb01(0x14e),this[_0x25bb01(0x148)]['if'](_0x25bb01(0x164),_0x25bb01(0x159),_0x55cf5d=>!_0x55cf5d)]},'children':[{'tag':'p','children':[{'text':this[_0x25bb01(0x148)]['to'](_0x25bb01(0x164))}]},_0x2a3762]}),_0x4d0f00;}[_0x32357c(0x117)](){const _0x4e0962=_0x32357c,_0x2d4b5a=new _0x3ea19e(this[_0x4e0962(0x133)]);_0x2d4b5a[_0x4e0962(0x136)]({'label':_0x2c2f18(this[_0x4e0962(0x133)],_0x4e0962(0x15b)),'withText':!0x0,'icon':_0xa30ac2,'class':_0x4e0962(0x165)}),_0x2d4b5a['on'](_0x4e0962(0x14d),()=>{const _0x5de924=_0x4e0962;this[_0x5de924(0x127)](_0x5de924(0x14f));});const _0x2d9cc7=new _0x54a589(this[_0x4e0962(0x133)]);return _0x2d9cc7[_0x4e0962(0x125)]({'tag':_0x4e0962(0x123),'attributes':{'class':[_0x4e0962(0x13e),this[_0x4e0962(0x148)]['if'](_0x4e0962(0x13f),_0x4e0962(0x159),_0x1aa492=>!_0x1aa492)]},'children':[{'tag':'p','attributes':{'class':[_0x4e0962(0x163)]},'children':[_0x2c2f18(this[_0x4e0962(0x133)],_0x4e0962(0x142))]},_0x2d4b5a]}),_0x2d9cc7;}[_0x32357c(0x156)](_0xea088b,_0x4049ce){const _0x7f5785=_0x32357c,_0x79c2f6=[];for(const _0x2279af of _0xea088b){const _0x3a918f=new _0x304c03(_0x4049ce,_0x2279af);_0x3a918f[_0x7f5785(0x12d)](..._0x2f820d)['to'](this),_0x79c2f6[_0x7f5785(0x14a)](_0x3a918f);}return _0x79c2f6;}[_0x32357c(0x10e)](_0x19dad9){const _0x16f455=_0x32357c,_0x14dd92=this[_0x16f455(0x133)]||'en',_0xce3e24=[];for(const _0x3404cc of _0x19dad9){const _0x4c71dc=this[_0x16f455(0x156)](_0x3404cc[_0x16f455(0x126)],_0x14dd92);_0xce3e24[_0x16f455(0x14a)](new _0x571185(_0x14dd92,{'title':_0x3404cc[_0x16f455(0x140)],'items':_0x4c71dc}));}this[_0x16f455(0x132)][_0x16f455(0x12e)]=_0xce3e24,this[_0x16f455(0x132)][_0x16f455(0x126)][_0x16f455(0x13b)](),this[_0x16f455(0x132)][_0x16f455(0x126)][_0x16f455(0x150)](_0xce3e24),this[_0x16f455(0x147)]=_0x19dad9[_0x16f455(0x135)](_0xcfe253=>_0xcfe253[_0x16f455(0x126)][_0x16f455(0x11e)]>0x0),this[_0x16f455(0x114)]();}[_0x32357c(0x13a)](_0xe8f0c1){const _0x3f6b70=_0x32357c;for(const _0x1ffee8 of this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)]){const _0x18a29c=_0x1ffee8[_0x3f6b70(0x131)](_0xe8f0c1);if(_0x18a29c){if(_0x1ffee8[_0x3f6b70(0x128)](_0x18a29c),0x0===_0x1ffee8[_0x3f6b70(0x137)][_0x3f6b70(0x11e)]){const _0x127efa=this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x151)](_0x1ffee8);-0x1!==_0x127efa&&(this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x161)](_0x127efa,0x1),this[_0x3f6b70(0x132)][_0x3f6b70(0x126)][_0x3f6b70(0x122)](_0x1ffee8));}this[_0x3f6b70(0x147)]=this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x11e)]>0x0,this[_0x3f6b70(0x114)]();break;}}}[_0x32357c(0x12f)](_0x2e50f1,_0xc5220e){const _0x4dec15=_0x32357c;for(const _0x58bad2 of this[_0x4dec15(0x132)][_0x4dec15(0x12e)]){const _0x2712d4=_0x58bad2[_0x4dec15(0x131)](_0x2e50f1);if(_0x2712d4){_0x2712d4[_0x4dec15(0x116)](_0xc5220e);break;}}}[_0x32357c(0x120)](_0x4d8c75,_0x451c39,_0xf3ab49){const _0x3da2dd=_0x32357c;for(const _0x56c297 of this[_0x3da2dd(0x132)][_0x3da2dd(0x12e)]){const _0x8ffde3=_0x56c297[_0x3da2dd(0x131)](_0x4d8c75);if(_0x8ffde3){_0x8ffde3[_0x3da2dd(0x143)](_0x451c39,_0xf3ab49);break;}}}[_0x32357c(0x114)](){const _0x20843e=_0x32357c;if(this[_0x20843e(0x147)]){const _0x44cb52=this[_0x20843e(0x134)][_0x20843e(0x129)][_0x20843e(0x112)]?.[_0x20843e(0x118)]?.[_0x20843e(0x139)]||'';this[_0x20843e(0x134)][_0x20843e(0x157)](_0x44cb52);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4744(_0x1fbd1d,_0x2dd812){const _0x188bbf=_0x188b();return _0x4744=function(_0x474472,_0x2b3002){_0x474472=_0x474472-0xc9;let _0x20541c=_0x188bbf[_0x474472];return _0x20541c;},_0x4744(_0x1fbd1d,_0x2dd812);}function _0x188b(){const _0x5e958f=['Content-Type','/calls','make-tone-casual','CloudServices','DELETE','ai.serviceUrl','upsertAIReviewRating','startConversation','pluginName','fetchConversation','424964htNSEt','name','fetchConversations','3420Cnhdcy','https://ai.cke-cs.com/v1','updateConversation','init','1753820RxzquX','_token','locale','decode','group','CONTINUE','keys','length','/actions/custom/calls','text','IMPROVE_WRITING','_decoder','get','totalCount','feed','/documents','8Lyezia','POST','_apiUrl','deleteConversation','true','_sendApiRequest','toString','file','data','uploadDocument','_handleError','/actions/system/','json','/reviews/custom/calls','deleteDocument','/files','385TfGxFL','4HAQcEi','getModels','/files/','queryAssistant','AIConnector','ai-request-failed','100','plugins','signal','Bearer\x20','token','deleteWebResource','getReader','uploadUrl','toUpperCase','GET','abortController','/conversations/','/conversations?','FIX_GRAMMAR','stringify','isOfficialPlugin','ai-missing-token','upsertCustomAIReviewRating','callCustomReview','82542ewsNAk','12408qTYIEF','fetchConversationMessages','ai-request-aborted','reset','continue','status','/models/1','excludeEmpty','executeAction','/calls/','TRANSLATE','_getStreamReader','search','776oMlUTN','append','4400991lkZWtY','make-tone-formal','/conversations','statusText','/documents/','read','MAKE_TONE_CASUAL','PUT','/messages','context','attributes','limit','1869ZxUrnw','/messages/','parse','/web-resources/','requires','upsertAIActionRating','value','executeCustomAction','map','AbortError','uploadFile','body','then','fetchDocument','/reviews/system/','/actions/custom/calls/','AI_MODEL_DESCRIPTION_','upsertAIChatRating','push','make-shorter','positiveCount','releaseLock','/ratings','MAKE_LONGER','define','catch','deleteFile','callSystemReview','upsertCustomAIActionRating','MAKE_SHORTER','improve-writing','fix-grammar','MAKE_TONE_FORMAL','make-longer','application/json','/reviews/custom/calls/','47892neSYTN','translate','1651GfHWqr','PATCH','items','request','config','/web-resources','isPremiumPlugin'];_0x188b=function(){return _0x5e958f;};return _0x188b();}const _0x46140e=_0x4744;(function(_0x53eb3a,_0x25ae60){const _0x5f4f05=_0x4744,_0x3a4bd3=_0x53eb3a();while(!![]){try{const _0x48e14=-parseInt(_0x5f4f05(0x107))/0x1*(parseInt(_0x5f4f05(0xdf))/0x2)+parseInt(_0x5f4f05(0x13c))/0x3*(-parseInt(_0x5f4f05(0x12e))/0x4)+parseInt(_0x5f4f05(0xe6))/0x5+parseInt(_0x5f4f05(0x120))/0x6*(parseInt(_0x5f4f05(0x106))/0x7)+parseInt(_0x5f4f05(0xf6))/0x8*(parseInt(_0x5f4f05(0x130))/0x9)+parseInt(_0x5f4f05(0xe2))/0xa*(parseInt(_0x5f4f05(0x121))/0xb)+-parseInt(_0x5f4f05(0xcc))/0xc*(parseInt(_0x5f4f05(0xce))/0xd);if(_0x48e14===_0x25ae60)break;else _0x3a4bd3['push'](_0x3a4bd3['shift']());}catch(_0x1c03f1){_0x3a4bd3['push'](_0x3a4bd3['shift']());}}}(_0x188b,0x7b2cf));import{createParser as _0x31ce6f}from'eventsource-parser';import{ContextPlugin as _0xcb0cb1}from'ckeditor5/src/core.js';import{CKEditorError as _0x2df2be}from'ckeditor5/src/utils.js';import{getTranslation as _0x3b6160}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x5324c1){const _0x3bf303=_0x4744;_0x5324c1[_0x3bf303(0xeb)]=_0x3bf303(0x125),_0x5324c1[_0x3bf303(0x11a)]=_0x3bf303(0x15b),_0x5324c1[_0x3bf303(0xf0)]=_0x3bf303(0x15a),_0x5324c1[_0x3bf303(0x153)]=_0x3bf303(0xc9),_0x5324c1[_0x3bf303(0x159)]=_0x3bf303(0x14f),_0x5324c1[_0x3bf303(0x136)]=_0x3bf303(0xd7),_0x5324c1[_0x3bf303(0x15c)]=_0x3bf303(0x131),_0x5324c1[_0x3bf303(0x12b)]=_0x3bf303(0xcd);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xcb0cb1{[_0x46140e(0xf8)];[_0x46140e(0xe7)];[_0x46140e(0xf1)];static get[_0x46140e(0x140)](){const _0x368a66=_0x46140e;return[_0x368a66(0xd8)];}static get[_0x46140e(0xdd)](){const _0x253b78=_0x46140e;return _0x253b78(0x10b);}static get[_0x46140e(0x11c)](){return!0x0;}static get[_0x46140e(0xd4)](){return!0x0;}constructor(_0x1e72fe){const _0x379773=_0x46140e;super(_0x1e72fe),this[_0x379773(0x139)][_0x379773(0xd2)][_0x379773(0x154)](_0x379773(0xda),_0x379773(0xe3)),this[_0x379773(0xf8)]=this[_0x379773(0x139)][_0x379773(0xd2)][_0x379773(0xf2)](_0x379773(0xda)),this[_0x379773(0xe7)]=null,this[_0x379773(0xf1)]=new TextDecoder();}[_0x46140e(0xe5)](){const _0xa6229f=_0x46140e,_0x5ecf90=this[_0xa6229f(0x139)][_0xa6229f(0x10e)][_0xa6229f(0xf2)](_0xa6229f(0xd8));if(!_0x5ecf90[_0xa6229f(0x111)])throw new _0x2df2be(_0xa6229f(0x11d),this);this[_0xa6229f(0xe7)]=_0x5ecf90[_0xa6229f(0x111)];}[_0x46140e(0xdc)](_0x14d1a1,_0x5b91a8){const _0x53465f=_0x46140e,_0x4581e1=this[_0x53465f(0xfb)](_0x53465f(0x132),_0x53465f(0xf7),{'id':_0x14d1a1,'group':_0x5b91a8});return{'getConversation':async()=>(await _0x4581e1[_0x53465f(0xd1)])[_0x53465f(0x102)](),'abortController':_0x4581e1[_0x53465f(0x117)]};}[_0x46140e(0x10a)]({message:_0x4507f6,conversationId:_0x478af0,parts:_0x17ed5b,capabilities:_0x3eb8be,model:_0x6a6fba,quickActionData:_0x22ca02}){const _0x383d45=_0x46140e,_0x57f272={..._0x22ca02&&{'quickActionData':_0x22ca02}},_0x19edcf={'prompt':_0x4507f6,'content':_0x17ed5b,'model':_0x6a6fba,..._0x3eb8be&&{'capabilities':_0x3eb8be},...Object[_0x383d45(0xec)](_0x57f272)[_0x383d45(0xed)]>0x0&&{'attributes':_0x57f272}},_0x594c00=this[_0x383d45(0xfb)](_0x383d45(0x118)+_0x478af0+_0x383d45(0x138),_0x383d45(0xf7),_0x19edcf);return{'getStream':async()=>{const _0x5e565b=_0x383d45,_0x3bad50=(await _0x594c00[_0x5e565b(0xd1)])[_0x5e565b(0x147)];return this[_0x5e565b(0x12c)](_0x3bad50);},'abortController':_0x594c00[_0x383d45(0x117)]};}[_0x46140e(0x143)]({content:_0xb9ed23,message:_0x46e312,model:_0x2136c1,outputFormat:_0x45e5b6}){const _0x34f9b3=_0x46140e,_0x13aaf5={'content':[{'type':_0x34f9b3(0xef),'content':_0xb9ed23}],'prompt':_0x46e312,'model':_0x2136c1,'outputFormat':_0x45e5b6},_0xc96d1=this[_0x34f9b3(0xfb)](_0x34f9b3(0xee),_0x34f9b3(0xf7),_0x13aaf5);return{'getStream':async()=>{const _0x4efd4a=_0x34f9b3,_0x2394e8=(await _0xc96d1[_0x4efd4a(0xd1)])[_0x4efd4a(0x147)];return this[_0x4efd4a(0x12c)](_0x2394e8);},'abortController':_0xc96d1[_0x34f9b3(0x117)]};}[_0x46140e(0x129)]({actionName:_0x6f7e13,content:_0x2aa45d,args:_0x59d75e}){const _0x2fdbbc=_0x46140e,_0x4dfeb3={'content':[{'type':_0x2fdbbc(0xef),'content':_0x2aa45d}],'args':_0x59d75e},_0x2873d5=this[_0x2fdbbc(0xfb)](_0x2fdbbc(0x101)+_0x6f7e13+_0x2fdbbc(0xd6),_0x2fdbbc(0xf7),_0x4dfeb3);return{'getStream':async()=>{const _0x2c345a=_0x2fdbbc,_0x3bb9eb=(await _0x2873d5[_0x2c345a(0xd1)])[_0x2c345a(0x147)];return this[_0x2c345a(0x12c)](_0x3bb9eb);},'abortController':_0x2873d5[_0x2fdbbc(0x117)]};}[_0x46140e(0x146)](_0xfae493,_0x50d3db,_0x1ae7c1){const _0x4a09b0=_0x46140e,_0x5618b5=new FormData();_0x5618b5[_0x4a09b0(0x12f)](_0x4a09b0(0xfd),_0x50d3db,_0x50d3db[_0x4a09b0(0xe0)]),_0x1ae7c1&&_0x5618b5[_0x4a09b0(0x12f)](_0x4a09b0(0x13a),JSON[_0x4a09b0(0x11b)](_0x1ae7c1));const _0x515415=this[_0x4a09b0(0xfb)](_0x4a09b0(0x118)+_0xfae493+_0x4a09b0(0x105),_0x4a09b0(0xf7),_0x5618b5);return{'getId':async()=>(await _0x515415[_0x4a09b0(0xd1)])[_0x4a09b0(0x102)](),'abortController':_0x515415[_0x4a09b0(0x117)]};}[_0x46140e(0x149)](_0x5f30d5,_0x57241c){const _0x1a1ef3=_0x46140e,_0x3d0dc1=this[_0x1a1ef3(0xfb)](_0x1a1ef3(0x118)+_0x5f30d5+_0x1a1ef3(0x134)+_0x57241c,_0x1a1ef3(0x116));return{'getDocument':async()=>(await _0x3d0dc1[_0x1a1ef3(0xd1)])[_0x1a1ef3(0x102)](),'abortController':_0x3d0dc1[_0x1a1ef3(0x117)]};}[_0x46140e(0xff)](_0x510e48,_0x29bde7,_0x97ce40){const _0xc3802a=_0x46140e,_0x269057={'content':_0x29bde7};_0x97ce40&&(_0x269057[_0xc3802a(0x13a)]=_0x97ce40);const _0x406fe8=this[_0xc3802a(0xfb)](_0xc3802a(0x118)+_0x510e48+_0xc3802a(0xf5),_0xc3802a(0xf7),_0x269057);return{'getId':async()=>(await _0x406fe8[_0xc3802a(0xd1)])[_0xc3802a(0x102)](),'abortController':_0x406fe8[_0xc3802a(0x117)]};}[_0x46140e(0xe1)](_0x485a93,_0x5720fa){const _0x3c98e1=_0x46140e,_0x519ba6=new URLSearchParams();_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x128),_0x3c98e1(0xfa)),_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x13b),_0x3c98e1(0x10d)),_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0xea),_0x485a93),_0x5720fa&&_0x519ba6[_0x3c98e1(0x12f)](_0x3c98e1(0x12d),_0x5720fa);const _0x4d0231=this[_0x3c98e1(0xfb)](_0x3c98e1(0x119)+_0x519ba6[_0x3c98e1(0xfc)](),_0x3c98e1(0x116));return{'getConversations':async()=>{const _0x30c05a=_0x3c98e1,_0x2bc50f=await _0x4d0231[_0x30c05a(0xd1)];return(await _0x2bc50f[_0x30c05a(0x102)]())[_0x30c05a(0xd0)];},'abortController':_0x4d0231[_0x3c98e1(0x117)]};}[_0x46140e(0xf9)](_0x3d8556){const _0x1c95f0=_0x46140e,_0x4381ce=this[_0x1c95f0(0xfb)](_0x1c95f0(0x118)+_0x3d8556,_0x1c95f0(0xd9));return{'execute':async()=>{const _0x3cfba7=_0x1c95f0;await _0x4381ce[_0x3cfba7(0xd1)];},'abortController':_0x4381ce[_0x1c95f0(0x117)]};}[_0x46140e(0xe4)](_0x20ed2c,_0x195e16){const _0x21ee48=_0x46140e,_0x461b31=this[_0x21ee48(0xfb)](_0x21ee48(0x118)+_0x20ed2c,_0x21ee48(0xcf),_0x195e16);return{'getResult':async()=>(await _0x461b31[_0x21ee48(0xd1)],_0x195e16),'abortController':_0x461b31[_0x21ee48(0x117)]};}[_0x46140e(0xde)](_0xb1e034){const _0xcbdff=_0x46140e,_0x491bdd=this[_0xcbdff(0xfb)](_0xcbdff(0x118)+_0xb1e034,_0xcbdff(0x116));return{'getConversation':async()=>(await _0x491bdd[_0xcbdff(0xd1)])[_0xcbdff(0x102)](),'abortController':_0x491bdd[_0xcbdff(0x117)]};}[_0x46140e(0x122)](_0x49d727){const _0x53f740=_0x46140e,_0x2d2d87=this[_0x53f740(0xfb)](_0x53f740(0x118)+_0x49d727+_0x53f740(0x138),_0x53f740(0x116));return{'getMessages':async()=>{const _0xff52df=_0x53f740,_0x12b33e=await _0x2d2d87[_0xff52df(0xd1)];return(await _0x12b33e[_0xff52df(0x102)]())[_0xff52df(0xd0)];},'abortController':_0x2d2d87[_0x53f740(0x117)]};}[_0x46140e(0x114)](_0x425f2f,_0x28ad2f,_0x4f5508){const _0x38bc91=_0x46140e,_0x5a3cb0=this[_0x38bc91(0xfb)](_0x38bc91(0x118)+_0x425f2f+_0x38bc91(0xd3),_0x38bc91(0xf7),{'url':_0x28ad2f,'attributes':_0x4f5508});return{'getId':async()=>(await _0x5a3cb0[_0x38bc91(0xd1)])[_0x38bc91(0x102)](),'abortController':_0x5a3cb0[_0x38bc91(0x117)]};}[_0x46140e(0x108)](){const _0x5a02cb=_0x46140e,_0x490df6=this[_0x5a02cb(0xfb)](_0x5a02cb(0x127),_0x5a02cb(0x116));return{'list':async()=>{const _0x5bae3b=_0x5a02cb,_0x1484e6=await(await _0x490df6[_0x5bae3b(0xd1)])[_0x5bae3b(0x102)](),_0x5180d7=_0x1484e6[_0x5bae3b(0xd0)][_0x5bae3b(0x144)](_0x5aeff6=>({..._0x5aeff6,'description':_0x3b6160(this[_0x5bae3b(0x139)][_0x5bae3b(0xe8)],_0x5bae3b(0x14c)+_0x5aeff6['id'][_0x5bae3b(0x115)]())}));return{..._0x1484e6,'items':_0x5180d7};},'abortController':_0x490df6[_0x5a02cb(0x117)]};}[_0x46140e(0x156)](_0x382189,_0x5cf46f){const _0x1c0a3f=_0x46140e,_0x4430be=this[_0x1c0a3f(0xfb)](_0x1c0a3f(0x118)+_0x382189+_0x1c0a3f(0x109)+_0x5cf46f,_0x1c0a3f(0xd9));return{'execute':async()=>{const _0x338413=_0x1c0a3f;await _0x4430be[_0x338413(0xd1)];},'abortController':_0x4430be[_0x1c0a3f(0x117)]};}[_0x46140e(0x104)](_0x41545a,_0x14a241){const _0x2f36a1=_0x46140e,_0x589f91=this[_0x2f36a1(0xfb)](_0x2f36a1(0x118)+_0x41545a+_0x2f36a1(0x134)+_0x14a241,_0x2f36a1(0xd9));return{'execute':async()=>{const _0x535fa3=_0x2f36a1;await _0x589f91[_0x535fa3(0xd1)];},'abortController':_0x589f91[_0x2f36a1(0x117)]};}[_0x46140e(0x112)](_0x137d9c,_0x4b0ed9){const _0x1e100c=_0x46140e,_0x25e9c4=this[_0x1e100c(0xfb)](_0x1e100c(0x118)+_0x137d9c+_0x1e100c(0x13f)+_0x4b0ed9,_0x1e100c(0xd9));return{'execute':async()=>{const _0x26a6f0=_0x1e100c;await _0x25e9c4[_0x26a6f0(0xd1)];},'abortController':_0x25e9c4[_0x1e100c(0x117)]};}[_0x46140e(0x157)]({reviewName:_0x52bdf1,content:_0x192375,args:_0x10c013}){const _0x391e3c=_0x46140e,_0xf3838e=this[_0x391e3c(0xfb)](_0x391e3c(0x14a)+_0x52bdf1+_0x391e3c(0xd6),_0x391e3c(0xf7),{'content':[{'type':_0x391e3c(0xef),'content':_0x192375}],'args':_0x10c013});return{'getStream':async()=>{const _0x326963=_0x391e3c,_0x3db77e=(await _0xf3838e[_0x326963(0xd1)])[_0x326963(0x147)];return this[_0x326963(0x12c)](_0x3db77e);},'abortController':_0xf3838e[_0x391e3c(0x117)]};}[_0x46140e(0x11f)]({content:_0x8eb217,prompt:_0x5c14cd,model:_0x4cf634}){const _0x446529=_0x46140e,_0x167a2d=this[_0x446529(0xfb)](_0x446529(0x103),_0x446529(0xf7),{'content':[{'type':_0x446529(0xef),'content':_0x8eb217}],'prompt':_0x5c14cd,'model':_0x4cf634});return{'getStream':async()=>{const _0x4bfdd9=_0x446529,_0xc8e6=(await _0x167a2d[_0x4bfdd9(0xd1)])[_0x4bfdd9(0x147)];return this[_0x4bfdd9(0x12c)](_0xc8e6);},'abortController':_0x167a2d[_0x446529(0x117)]};}[_0x46140e(0x14d)](_0x40d58d,_0x3ab876,_0x2dc2ff){const _0x22205e=_0x46140e,_0x3fef27=this[_0x22205e(0xfb)](_0x22205e(0x118)+_0x40d58d+_0x22205e(0x13d)+_0x3ab876+_0x22205e(0x152),_0x22205e(0x137),{'positiveCount':_0x2dc2ff[_0x22205e(0x150)],'totalCount':_0x2dc2ff[_0x22205e(0xf3)]});return{'execute':async()=>{const _0x47c7f7=_0x22205e;await _0x3fef27[_0x47c7f7(0xd1)];},'abortController':_0x3fef27[_0x22205e(0x117)]};}[_0x46140e(0x141)](_0x3cfe06,_0x59de5e,_0x49bec3){const _0x1d8fcc=_0x46140e,_0x483781=this[_0x1d8fcc(0xfb)](_0x1d8fcc(0x101)+_0x3cfe06+_0x1d8fcc(0x12a)+_0x59de5e+_0x1d8fcc(0x152),_0x1d8fcc(0x137),{'positiveCount':_0x49bec3[_0x1d8fcc(0x150)],'totalCount':_0x49bec3[_0x1d8fcc(0xf3)]});return{'execute':async()=>{const _0x1ca980=_0x1d8fcc;await _0x483781[_0x1ca980(0xd1)];},'abortController':_0x483781[_0x1d8fcc(0x117)]};}[_0x46140e(0x158)](_0x1027c4,_0x5ec098){const _0x21479f=_0x46140e,_0x306c02=this[_0x21479f(0xfb)](_0x21479f(0x14b)+_0x1027c4+_0x21479f(0x152),_0x21479f(0x137),{'positiveCount':_0x5ec098[_0x21479f(0x150)],'totalCount':_0x5ec098[_0x21479f(0xf3)]});return{'execute':async()=>{const _0x2aa9db=_0x21479f;await _0x306c02[_0x2aa9db(0xd1)];},'abortController':_0x306c02[_0x21479f(0x117)]};}[_0x46140e(0xdb)](_0x209cce,_0xf58d84,_0x273053,_0x342fa1){const _0x34ec8c=_0x46140e,_0x8e55ca=this[_0x34ec8c(0xfb)](_0x34ec8c(0x14a)+_0x209cce+_0x34ec8c(0x12a)+_0xf58d84+_0x34ec8c(0x152),_0x34ec8c(0x137),{'positiveCount':_0x273053[_0x34ec8c(0x150)],'totalCount':_0x273053[_0x34ec8c(0xf3)],'dataId':_0x342fa1});return{'execute':async()=>{const _0x398138=_0x34ec8c;await _0x8e55ca[_0x398138(0xd1)];},'abortController':_0x8e55ca[_0x34ec8c(0x117)]};}[_0x46140e(0x11e)](_0x10164b,_0x283053,_0x5e20bc){const _0x46bf72=_0x46140e,_0x3f7609=this[_0x46bf72(0xfb)](_0x46bf72(0xcb)+_0x10164b+_0x46bf72(0x152),_0x46bf72(0x137),{'positiveCount':_0x283053[_0x46bf72(0x150)],'totalCount':_0x283053[_0x46bf72(0xf3)],'dataId':_0x5e20bc});return{'execute':async()=>{const _0x33629b=_0x46bf72;await _0x3f7609[_0x33629b(0xd1)];},'abortController':_0x3f7609[_0x46bf72(0x117)]};}[_0x46140e(0xfb)](_0x49517e,_0x3d6c7b,_0xc2292b){const _0x25af87=_0x46140e,_0x1a18ba=new AbortController(),_0x202752=_0xc2292b instanceof FormData,_0x1e6d64={'Authorization':_0x25af87(0x110)+this[_0x25af87(0xe7)]?.[_0x25af87(0x142)]};_0xc2292b&&!_0x202752&&(_0x1e6d64[_0x25af87(0xd5)]=_0x25af87(0xca));const _0x814d69={'method':_0x3d6c7b,'headers':_0x1e6d64,'signal':_0x1a18ba[_0x25af87(0x10f)]};return _0xc2292b&&(_0x814d69[_0x25af87(0x147)]=_0x202752?_0xc2292b:JSON[_0x25af87(0x11b)](_0xc2292b)),{'request':fetch(''+this[_0x25af87(0xf8)]+_0x49517e,_0x814d69)[_0x25af87(0x155)](_0x1d141d=>{const _0x5bca1d=_0x25af87;this[_0x5bca1d(0x100)](_0x1d141d);})[_0x25af87(0x148)](_0x1a3d1f=>{const _0x204331=_0x25af87;if(!_0x1a3d1f['ok'])throw new _0x2df2be(_0x204331(0x10c),this,{'url':this[_0x204331(0xf8)],'path':_0x49517e,'method':_0x3d6c7b,'body':_0xc2292b,'status':(_0x1a3d1f||{})[_0x204331(0x126)],'statusText':(_0x1a3d1f||{})[_0x204331(0x133)]});return _0x1a3d1f;}),'abortController':_0x1a18ba};}async*[_0x46140e(0x12c)](_0x4ca3d4){const _0x14755d=_0x46140e,_0x73f15f=[],_0x5920da=_0x4ca3d4[_0x14755d(0x113)](),_0x1663a0=_0x31ce6f({'onError':_0x4576c5=>{const _0x9e5889=_0x14755d;this[_0x9e5889(0x100)](_0x4576c5);},'onEvent':_0x2cbf68=>{const _0x88b161=_0x14755d;_0x2cbf68[_0x88b161(0xfe)]=JSON[_0x88b161(0x13e)](_0x2cbf68[_0x88b161(0xfe)]),_0x73f15f[_0x88b161(0x14e)](_0x2cbf68);}});try{let _0x34aa8=!0x1;for(;!_0x34aa8;){const {done:_0x33b0f9,value:_0x34e580}=await _0x5920da[_0x14755d(0x135)]();_0x33b0f9&&(_0x34aa8=!0x0),_0x1663a0[_0x14755d(0xf4)](this[_0x14755d(0xf1)][_0x14755d(0xe9)](_0x34e580,{'stream':!0x0})),yield*_0x73f15f,_0x73f15f[_0x14755d(0xed)]=0x0;}}catch(_0x2b4b59){this[_0x14755d(0x100)](_0x2b4b59);}finally{_0x5920da[_0x14755d(0x151)](),_0x1663a0[_0x14755d(0x124)]();}}[_0x46140e(0x100)](_0x540eb3){const _0x5cdb05=_0x46140e;if(_0x540eb3 instanceof _0x2df2be)throw _0x540eb3;if(_0x540eb3 instanceof Error&&_0x5cdb05(0x145)===_0x540eb3[_0x5cdb05(0xe0)])throw new _0x2df2be(_0x5cdb05(0x123),this,{'originalError':_0x540eb3});throw new _0x2df2be(_0x5cdb05(0x10c),this,{'originalError':_0x540eb3});}}
23
+ const _0x193c25=_0x14cd;function _0x14cd(_0x12185f,_0x2ef1b0){const _0x51145d=_0x5114();return _0x14cd=function(_0x14cd2b,_0x109fb0){_0x14cd2b=_0x14cd2b-0x7f;let _0x4a3190=_0x51145d[_0x14cd2b];return _0x4a3190;},_0x14cd(_0x12185f,_0x2ef1b0);}(function(_0x7dcf12,_0x21d112){const _0x5b03fa=_0x14cd,_0x103ed7=_0x7dcf12();while(!![]){try{const _0x7269d=parseInt(_0x5b03fa(0xbb))/0x1*(parseInt(_0x5b03fa(0x106))/0x2)+-parseInt(_0x5b03fa(0x10e))/0x3+-parseInt(_0x5b03fa(0x84))/0x4+-parseInt(_0x5b03fa(0xca))/0x5*(parseInt(_0x5b03fa(0xc5))/0x6)+parseInt(_0x5b03fa(0x80))/0x7*(parseInt(_0x5b03fa(0xb3))/0x8)+parseInt(_0x5b03fa(0xa9))/0x9+parseInt(_0x5b03fa(0xf7))/0xa;if(_0x7269d===_0x21d112)break;else _0x103ed7['push'](_0x103ed7['shift']());}catch(_0x258c6d){_0x103ed7['push'](_0x103ed7['shift']());}}}(_0x5114,0xb7faf));import{createParser as _0x2079d3}from'eventsource-parser';import{ContextPlugin as _0x47e89f}from'ckeditor5/src/core.js';import{CKEditorError as _0x292ec4}from'ckeditor5/src/utils.js';import{getTranslation as _0x1a66a9}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x4777e4){const _0x1e8fe8=_0x14cd;_0x4777e4[_0x1e8fe8(0xc4)]=_0x1e8fe8(0xd1),_0x4777e4[_0x1e8fe8(0xb5)]=_0x1e8fe8(0xed),_0x4777e4[_0x1e8fe8(0xeb)]=_0x1e8fe8(0xd3),_0x4777e4[_0x1e8fe8(0xb4)]=_0x1e8fe8(0x88),_0x4777e4[_0x1e8fe8(0xe3)]=_0x1e8fe8(0x96),_0x4777e4[_0x1e8fe8(0xbe)]=_0x1e8fe8(0x9c),_0x4777e4[_0x1e8fe8(0x105)]=_0x1e8fe8(0xcb),_0x4777e4[_0x1e8fe8(0x7f)]=_0x1e8fe8(0xe2);}(AIActionsNames||(AIActionsNames={}));function _0x5114(){const _0x55efa7=['/conversations?','parse','upsertCustomAIReviewRating','translate','MAKE_SHORTER','callSystemReview','signal','getReader','/documents/','/reviews/system/','fetchConversationMessages','/web-resources/','IMPROVE_WRITING','keys','fix-grammar','ai.serviceUrl','positiveCount','queryAssistant','Content-Type','context','fetchConversation','upsertCustomAIActionRating','/reviews/custom/calls/','/actions/system/','10377210IHVXHg','_handleError','pluginName','_getStreamReader','catch','AI_MODEL_DESCRIPTION_','text','reset','/calls','file','updateConversation','/models/1','_sendApiRequest','then','MAKE_TONE_FORMAL','2MancGe','startConversation','json','PATCH','deleteWebResource','upsertAIActionRating','search','GET','3607854AmNCKI','items','TRANSLATE','7805IOyQZF','length','ai-request-aborted','isPremiumPlugin','2308444zmgpaX','upsertAIReviewRating','CloudServices','application/json','make-longer','/calls/','/messages/','deleteFile','fetchConversations','request','status','POST','feed','locale','/conversations','statusText','fetchDocument','init','make-shorter','read','/reviews/custom/calls','decode','/messages','uploadDocument','make-tone-casual','plugins','excludeEmpty','stringify','callCustomReview','map','token','100','executeAction','toUpperCase','append','isOfficialPlugin','/actions/custom/calls/','13147524KDSopQ','limit','define','/documents','config','/files','/web-resources','true','push','data','784xOOFuu','MAKE_LONGER','FIX_GRAMMAR','group','uploadUrl','getModels','/conversations/','ai-request-failed','328513UoBmUh','value','ai-missing-token','MAKE_TONE_CASUAL','/files/','_apiUrl','/ratings','get','upsertAIChatRating','CONTINUE','12WCYlxY','requires','https://ai.cke-cs.com/v1','AbortError','AIConnector','1007570TjIwMU','make-tone-formal','uploadFile','name','abortController','_decoder','_token','continue','body','improve-writing','attributes','toString','PUT','executeCustomAction','DELETE','deleteDocument','/actions/custom/calls','deleteConversation','releaseLock','Bearer\x20','totalCount'];_0x5114=function(){return _0x55efa7;};return _0x5114();}export class AIConnector extends _0x47e89f{[_0x193c25(0xc0)];[_0x193c25(0xd0)];[_0x193c25(0xcf)];static get[_0x193c25(0xc6)](){const _0x2ba6f2=_0x193c25;return[_0x2ba6f2(0x86)];}static get[_0x193c25(0xf9)](){const _0x47568a=_0x193c25;return _0x47568a(0xc9);}static get[_0x193c25(0xa7)](){return!0x0;}static get[_0x193c25(0x83)](){return!0x0;}constructor(_0x49a388){const _0x577fc2=_0x193c25;super(_0x49a388),this[_0x577fc2(0xf2)][_0x577fc2(0xad)][_0x577fc2(0xab)](_0x577fc2(0xee),_0x577fc2(0xc7)),this[_0x577fc2(0xc0)]=this[_0x577fc2(0xf2)][_0x577fc2(0xad)][_0x577fc2(0xc2)](_0x577fc2(0xee)),this[_0x577fc2(0xd0)]=null,this[_0x577fc2(0xcf)]=new TextDecoder();}[_0x193c25(0x95)](){const _0x41e5db=_0x193c25,_0x2e41af=this[_0x41e5db(0xf2)][_0x41e5db(0x9d)][_0x41e5db(0xc2)](_0x41e5db(0x86));if(!_0x2e41af[_0x41e5db(0xa2)])throw new _0x292ec4(_0x41e5db(0xbd),this);this[_0x41e5db(0xd0)]=_0x2e41af[_0x41e5db(0xa2)];}[_0x193c25(0x107)](_0x3339b9,_0x1993f9){const _0x3b6a86=_0x193c25,_0x2bbd1b=this[_0x3b6a86(0x103)](_0x3b6a86(0x92),_0x3b6a86(0x8f),{'id':_0x3339b9,'group':_0x1993f9});return{'getConversation':async()=>(await _0x2bbd1b[_0x3b6a86(0x8d)])[_0x3b6a86(0x108)](),'abortController':_0x2bbd1b[_0x3b6a86(0xce)]};}[_0x193c25(0xf0)]({message:_0x185843,conversationId:_0x329a18,parts:_0x501492,capabilities:_0x5cd838,model:_0x27c964,quickActionData:_0x15f25c}){const _0x106ccc=_0x193c25,_0x37ab3d={..._0x15f25c&&{'quickActionData':_0x15f25c}},_0x1de2e8={'prompt':_0x185843,'content':_0x501492,'model':_0x27c964,..._0x5cd838&&{'capabilities':_0x5cd838},...Object[_0x106ccc(0xec)](_0x37ab3d)[_0x106ccc(0x81)]>0x0&&{'attributes':_0x37ab3d}},_0x3b845b=this[_0x106ccc(0x103)](_0x106ccc(0xb9)+_0x329a18+_0x106ccc(0x9a),_0x106ccc(0x8f),_0x1de2e8);return{'getStream':async()=>{const _0x1fa4af=_0x106ccc,_0xdd1f56=(await _0x3b845b[_0x1fa4af(0x8d)])[_0x1fa4af(0xd2)];return this[_0x1fa4af(0xfa)](_0xdd1f56);},'abortController':_0x3b845b[_0x106ccc(0xce)]};}[_0x193c25(0xd7)]({content:_0x41810e,message:_0x2ee402,model:_0x51c71d,outputFormat:_0x47f842}){const _0x1638dd=_0x193c25,_0x554312={'content':[{'type':_0x1638dd(0xfd),'content':_0x41810e}],'prompt':_0x2ee402,'model':_0x51c71d,'outputFormat':_0x47f842},_0x6da509=this[_0x1638dd(0x103)](_0x1638dd(0xda),_0x1638dd(0x8f),_0x554312);return{'getStream':async()=>{const _0x4a1765=_0x1638dd,_0x4b6709=(await _0x6da509[_0x4a1765(0x8d)])[_0x4a1765(0xd2)];return this[_0x4a1765(0xfa)](_0x4b6709);},'abortController':_0x6da509[_0x1638dd(0xce)]};}[_0x193c25(0xa4)]({actionName:_0x4b76f5,content:_0x3ea0bf,args:_0x488135}){const _0x1a885d=_0x193c25,_0x5990c1={'content':[{'type':_0x1a885d(0xfd),'content':_0x3ea0bf}],'args':_0x488135},_0x16fe0d=this[_0x1a885d(0x103)](_0x1a885d(0xf6)+_0x4b76f5+_0x1a885d(0xff),_0x1a885d(0x8f),_0x5990c1);return{'getStream':async()=>{const _0x54b076=_0x1a885d,_0x3c70cd=(await _0x16fe0d[_0x54b076(0x8d)])[_0x54b076(0xd2)];return this[_0x54b076(0xfa)](_0x3c70cd);},'abortController':_0x16fe0d[_0x1a885d(0xce)]};}[_0x193c25(0xcc)](_0x1590bb,_0x53d980,_0xf3bac0){const _0x46d0de=_0x193c25,_0x3c1f5a=new FormData();_0x3c1f5a[_0x46d0de(0xa6)](_0x46d0de(0x100),_0x53d980,_0x53d980[_0x46d0de(0xcd)]),_0xf3bac0&&_0x3c1f5a[_0x46d0de(0xa6)](_0x46d0de(0xd4),JSON[_0x46d0de(0x9f)](_0xf3bac0));const _0x1758ff=this[_0x46d0de(0x103)](_0x46d0de(0xb9)+_0x1590bb+_0x46d0de(0xae),_0x46d0de(0x8f),_0x3c1f5a);return{'getId':async()=>(await _0x1758ff[_0x46d0de(0x8d)])[_0x46d0de(0x108)](),'abortController':_0x1758ff[_0x46d0de(0xce)]};}[_0x193c25(0x94)](_0x28a399,_0x22cbb2){const _0x7a4069=_0x193c25,_0x5e53e7=this[_0x7a4069(0x103)](_0x7a4069(0xb9)+_0x28a399+_0x7a4069(0xe7)+_0x22cbb2,_0x7a4069(0x10d));return{'getDocument':async()=>(await _0x5e53e7[_0x7a4069(0x8d)])[_0x7a4069(0x108)](),'abortController':_0x5e53e7[_0x7a4069(0xce)]};}[_0x193c25(0x9b)](_0x43c2ff,_0x325f44,_0x5ee7c3){const _0x3e8f46=_0x193c25,_0x366fcf={'content':_0x325f44};_0x5ee7c3&&(_0x366fcf[_0x3e8f46(0xd4)]=_0x5ee7c3);const _0x20dc04=this[_0x3e8f46(0x103)](_0x3e8f46(0xb9)+_0x43c2ff+_0x3e8f46(0xac),_0x3e8f46(0x8f),_0x366fcf);return{'getId':async()=>(await _0x20dc04[_0x3e8f46(0x8d)])[_0x3e8f46(0x108)](),'abortController':_0x20dc04[_0x3e8f46(0xce)]};}[_0x193c25(0x8c)](_0xc2fa20,_0x313ee2){const _0x419cd9=_0x193c25,_0x37a080=new URLSearchParams();_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0x9e),_0x419cd9(0xb0)),_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0xaa),_0x419cd9(0xa3)),_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0xb6),_0xc2fa20),_0x313ee2&&_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0x10c),_0x313ee2);const _0x2f81ab=this[_0x419cd9(0x103)](_0x419cd9(0xdf)+_0x37a080[_0x419cd9(0xd5)](),_0x419cd9(0x10d));return{'getConversations':async()=>{const _0x1e474d=_0x419cd9,_0x4274e3=await _0x2f81ab[_0x1e474d(0x8d)];return(await _0x4274e3[_0x1e474d(0x108)]())[_0x1e474d(0x10f)];},'abortController':_0x2f81ab[_0x419cd9(0xce)]};}[_0x193c25(0xdb)](_0x56a789){const _0x58280a=_0x193c25,_0x51ca4d=this[_0x58280a(0x103)](_0x58280a(0xb9)+_0x56a789,_0x58280a(0xd8));return{'execute':async()=>{const _0x1f42a6=_0x58280a;await _0x51ca4d[_0x1f42a6(0x8d)];},'abortController':_0x51ca4d[_0x58280a(0xce)]};}[_0x193c25(0x101)](_0x30c1e3,_0x12625e){const _0x244049=_0x193c25,_0x27ea74=this[_0x244049(0x103)](_0x244049(0xb9)+_0x30c1e3,_0x244049(0x109),_0x12625e);return{'getResult':async()=>(await _0x27ea74[_0x244049(0x8d)],_0x12625e),'abortController':_0x27ea74[_0x244049(0xce)]};}[_0x193c25(0xf3)](_0x2b3d00){const _0x36348b=_0x193c25,_0x11c8d8=this[_0x36348b(0x103)](_0x36348b(0xb9)+_0x2b3d00,_0x36348b(0x10d));return{'getConversation':async()=>(await _0x11c8d8[_0x36348b(0x8d)])[_0x36348b(0x108)](),'abortController':_0x11c8d8[_0x36348b(0xce)]};}[_0x193c25(0xe9)](_0x5dd926){const _0x1d7f38=_0x193c25,_0x12791f=this[_0x1d7f38(0x103)](_0x1d7f38(0xb9)+_0x5dd926+_0x1d7f38(0x9a),_0x1d7f38(0x10d));return{'getMessages':async()=>{const _0x14475f=_0x1d7f38,_0x57f463=await _0x12791f[_0x14475f(0x8d)];return(await _0x57f463[_0x14475f(0x108)]())[_0x14475f(0x10f)];},'abortController':_0x12791f[_0x1d7f38(0xce)]};}[_0x193c25(0xb7)](_0x4a7721,_0xa6cb10,_0x43d9b6){const _0x418680=_0x193c25,_0x44c33b=this[_0x418680(0x103)](_0x418680(0xb9)+_0x4a7721+_0x418680(0xaf),_0x418680(0x8f),{'url':_0xa6cb10,'attributes':_0x43d9b6});return{'getId':async()=>(await _0x44c33b[_0x418680(0x8d)])[_0x418680(0x108)](),'abortController':_0x44c33b[_0x418680(0xce)]};}[_0x193c25(0xb8)](){const _0x12ce4d=_0x193c25,_0x180f5d=this[_0x12ce4d(0x103)](_0x12ce4d(0x102),_0x12ce4d(0x10d));return{'list':async()=>{const _0xddcbe2=_0x12ce4d,_0x3ce218=await(await _0x180f5d[_0xddcbe2(0x8d)])[_0xddcbe2(0x108)](),_0x330d65=_0x3ce218[_0xddcbe2(0x10f)][_0xddcbe2(0xa1)](_0x50e706=>({..._0x50e706,'description':_0x1a66a9(this[_0xddcbe2(0xf2)][_0xddcbe2(0x91)],_0xddcbe2(0xfc)+_0x50e706['id'][_0xddcbe2(0xa5)]())}));return{..._0x3ce218,'items':_0x330d65};},'abortController':_0x180f5d[_0x12ce4d(0xce)]};}[_0x193c25(0x8b)](_0x4d783e,_0x348a08){const _0x1df7b7=_0x193c25,_0x266eac=this[_0x1df7b7(0x103)](_0x1df7b7(0xb9)+_0x4d783e+_0x1df7b7(0xbf)+_0x348a08,_0x1df7b7(0xd8));return{'execute':async()=>{const _0x31caa6=_0x1df7b7;await _0x266eac[_0x31caa6(0x8d)];},'abortController':_0x266eac[_0x1df7b7(0xce)]};}[_0x193c25(0xd9)](_0x58f85c,_0x93e021){const _0x239115=_0x193c25,_0x58f2ee=this[_0x239115(0x103)](_0x239115(0xb9)+_0x58f85c+_0x239115(0xe7)+_0x93e021,_0x239115(0xd8));return{'execute':async()=>{const _0x4c938f=_0x239115;await _0x58f2ee[_0x4c938f(0x8d)];},'abortController':_0x58f2ee[_0x239115(0xce)]};}[_0x193c25(0x10a)](_0x1eea38,_0x3e0e06){const _0x2f2351=_0x193c25,_0x1f8038=this[_0x2f2351(0x103)](_0x2f2351(0xb9)+_0x1eea38+_0x2f2351(0xea)+_0x3e0e06,_0x2f2351(0xd8));return{'execute':async()=>{const _0x2ecd3b=_0x2f2351;await _0x1f8038[_0x2ecd3b(0x8d)];},'abortController':_0x1f8038[_0x2f2351(0xce)]};}[_0x193c25(0xe4)]({reviewName:_0x22fc59,content:_0x2e2e22,args:_0x20a996}){const _0x5cb27f=_0x193c25,_0x3ea5c2=this[_0x5cb27f(0x103)](_0x5cb27f(0xe8)+_0x22fc59+_0x5cb27f(0xff),_0x5cb27f(0x8f),{'content':[{'type':_0x5cb27f(0xfd),'content':_0x2e2e22}],'args':_0x20a996});return{'getStream':async()=>{const _0x60c8b3=_0x5cb27f,_0x56c35b=(await _0x3ea5c2[_0x60c8b3(0x8d)])[_0x60c8b3(0xd2)];return this[_0x60c8b3(0xfa)](_0x56c35b);},'abortController':_0x3ea5c2[_0x5cb27f(0xce)]};}[_0x193c25(0xa0)]({content:_0x45bae7,prompt:_0x14a8a3,model:_0x53c5ec}){const _0x5ecc94=_0x193c25,_0x3c53bb=this[_0x5ecc94(0x103)](_0x5ecc94(0x98),_0x5ecc94(0x8f),{'content':[{'type':_0x5ecc94(0xfd),'content':_0x45bae7}],'prompt':_0x14a8a3,'model':_0x53c5ec});return{'getStream':async()=>{const _0x17fcf0=_0x5ecc94,_0xe130ae=(await _0x3c53bb[_0x17fcf0(0x8d)])[_0x17fcf0(0xd2)];return this[_0x17fcf0(0xfa)](_0xe130ae);},'abortController':_0x3c53bb[_0x5ecc94(0xce)]};}[_0x193c25(0xc3)](_0x5f0e9a,_0x5822fc,_0x28af47){const _0x369d79=_0x193c25,_0x3798fc=this[_0x369d79(0x103)](_0x369d79(0xb9)+_0x5f0e9a+_0x369d79(0x8a)+_0x5822fc+_0x369d79(0xc1),_0x369d79(0xd6),{'positiveCount':_0x28af47[_0x369d79(0xef)],'totalCount':_0x28af47[_0x369d79(0xde)]});return{'execute':async()=>{const _0xef49fb=_0x369d79;await _0x3798fc[_0xef49fb(0x8d)];},'abortController':_0x3798fc[_0x369d79(0xce)]};}[_0x193c25(0x10b)](_0x2b3cea,_0x549fde,_0xd218a4){const _0xd9ba07=_0x193c25,_0x3c2ea1=this[_0xd9ba07(0x103)](_0xd9ba07(0xf6)+_0x2b3cea+_0xd9ba07(0x89)+_0x549fde+_0xd9ba07(0xc1),_0xd9ba07(0xd6),{'positiveCount':_0xd218a4[_0xd9ba07(0xef)],'totalCount':_0xd218a4[_0xd9ba07(0xde)]});return{'execute':async()=>{const _0x2d3644=_0xd9ba07;await _0x3c2ea1[_0x2d3644(0x8d)];},'abortController':_0x3c2ea1[_0xd9ba07(0xce)]};}[_0x193c25(0xf4)](_0x37b5af,_0x412bb8){const _0x3dd48b=_0x193c25,_0x35121c=this[_0x3dd48b(0x103)](_0x3dd48b(0xa8)+_0x37b5af+_0x3dd48b(0xc1),_0x3dd48b(0xd6),{'positiveCount':_0x412bb8[_0x3dd48b(0xef)],'totalCount':_0x412bb8[_0x3dd48b(0xde)]});return{'execute':async()=>{const _0x10e6fc=_0x3dd48b;await _0x35121c[_0x10e6fc(0x8d)];},'abortController':_0x35121c[_0x3dd48b(0xce)]};}[_0x193c25(0x85)](_0x5088a5,_0x2437dc,_0x650f4e,_0x45da92){const _0x24930f=_0x193c25,_0x27f00d=this[_0x24930f(0x103)](_0x24930f(0xe8)+_0x5088a5+_0x24930f(0x89)+_0x2437dc+_0x24930f(0xc1),_0x24930f(0xd6),{'positiveCount':_0x650f4e[_0x24930f(0xef)],'totalCount':_0x650f4e[_0x24930f(0xde)],'dataId':_0x45da92});return{'execute':async()=>{const _0x475408=_0x24930f;await _0x27f00d[_0x475408(0x8d)];},'abortController':_0x27f00d[_0x24930f(0xce)]};}[_0x193c25(0xe1)](_0x1d8571,_0xa42d47,_0x54994b){const _0x29d5de=_0x193c25,_0x92d000=this[_0x29d5de(0x103)](_0x29d5de(0xf5)+_0x1d8571+_0x29d5de(0xc1),_0x29d5de(0xd6),{'positiveCount':_0xa42d47[_0x29d5de(0xef)],'totalCount':_0xa42d47[_0x29d5de(0xde)],'dataId':_0x54994b});return{'execute':async()=>{const _0x134650=_0x29d5de;await _0x92d000[_0x134650(0x8d)];},'abortController':_0x92d000[_0x29d5de(0xce)]};}[_0x193c25(0x103)](_0x216527,_0x2bea80,_0x4dfc39){const _0x49e7bb=_0x193c25,_0x5ca384=new AbortController(),_0x552e51=_0x4dfc39 instanceof FormData,_0x408692={'Authorization':_0x49e7bb(0xdd)+this[_0x49e7bb(0xd0)]?.[_0x49e7bb(0xbc)]};_0x4dfc39&&!_0x552e51&&(_0x408692[_0x49e7bb(0xf1)]=_0x49e7bb(0x87));const _0x23007a={'method':_0x2bea80,'headers':_0x408692,'signal':_0x5ca384[_0x49e7bb(0xe5)]};return _0x4dfc39&&(_0x23007a[_0x49e7bb(0xd2)]=_0x552e51?_0x4dfc39:JSON[_0x49e7bb(0x9f)](_0x4dfc39)),{'request':fetch(''+this[_0x49e7bb(0xc0)]+_0x216527,_0x23007a)[_0x49e7bb(0xfb)](_0x1693d3=>{const _0x3b38f2=_0x49e7bb;this[_0x3b38f2(0xf8)](_0x1693d3);})[_0x49e7bb(0x104)](_0x9c99f1=>{const _0x22ea6d=_0x49e7bb;if(!_0x9c99f1['ok'])throw new _0x292ec4(_0x22ea6d(0xba),this,{'url':this[_0x22ea6d(0xc0)],'path':_0x216527,'method':_0x2bea80,'body':_0x4dfc39,'status':(_0x9c99f1||{})[_0x22ea6d(0x8e)],'statusText':(_0x9c99f1||{})[_0x22ea6d(0x93)]});return _0x9c99f1;}),'abortController':_0x5ca384};}async*[_0x193c25(0xfa)](_0x3fea12){const _0x1968b7=_0x193c25,_0x4bd7f9=[],_0x307bd=_0x3fea12[_0x1968b7(0xe6)](),_0xbabd1a=_0x2079d3({'onError':_0x1b772e=>{const _0x3e917d=_0x1968b7;this[_0x3e917d(0xf8)](_0x1b772e);},'onEvent':_0x1a0d19=>{const _0x3ab9e1=_0x1968b7;_0x1a0d19[_0x3ab9e1(0xb2)]=JSON[_0x3ab9e1(0xe0)](_0x1a0d19[_0x3ab9e1(0xb2)]),_0x4bd7f9[_0x3ab9e1(0xb1)](_0x1a0d19);}});try{let _0x5f2640=!0x1;for(;!_0x5f2640;){const {done:_0x294766,value:_0x19390b}=await _0x307bd[_0x1968b7(0x97)]();_0x294766&&(_0x5f2640=!0x0),_0xbabd1a[_0x1968b7(0x90)](this[_0x1968b7(0xcf)][_0x1968b7(0x99)](_0x19390b,{'stream':!0x0})),yield*_0x4bd7f9,_0x4bd7f9[_0x1968b7(0x81)]=0x0;}}catch(_0x18e762){this[_0x1968b7(0xf8)](_0x18e762);}finally{_0x307bd[_0x1968b7(0xdc)](),_0xbabd1a[_0x1968b7(0xfe)]();}}[_0x193c25(0xf8)](_0x484a9f){const _0x1acc24=_0x193c25;if(_0x484a9f instanceof _0x292ec4)throw _0x484a9f;if(_0x484a9f instanceof Error&&_0x1acc24(0xc8)===_0x484a9f[_0x1acc24(0xcd)])throw new _0x292ec4(_0x1acc24(0x82),this,{'originalError':_0x484a9f});throw new _0x292ec4(_0x1acc24(0xba),this,{'originalError':_0x484a9f});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b140f=_0x3b47;(function(_0x553a0a,_0x583162){const _0x322578=_0x3b47,_0x13f953=_0x553a0a();while(!![]){try{const _0x397e97=-parseInt(_0x322578(0x14d))/0x1+-parseInt(_0x322578(0x167))/0x2+parseInt(_0x322578(0x148))/0x3+parseInt(_0x322578(0x15d))/0x4*(-parseInt(_0x322578(0x162))/0x5)+-parseInt(_0x322578(0x130))/0x6*(parseInt(_0x322578(0x11f))/0x7)+parseInt(_0x322578(0x137))/0x8*(-parseInt(_0x322578(0x115))/0x9)+parseInt(_0x322578(0x16d))/0xa;if(_0x397e97===_0x583162)break;else _0x13f953['push'](_0x13f953['shift']());}catch(_0x40c317){_0x13f953['push'](_0x13f953['shift']());}}}(_0xf8d8,0xddb7a));import{ViewDowncastWriter as _0x3f52f0}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x342401,Editor as _0x179baa}from'ckeditor5/src/core.js';function _0x3b47(_0x32ff75,_0x296d4a){const _0xf8d899=_0xf8d8();return _0x3b47=function(_0x3b47d6,_0x295871){_0x3b47d6=_0x3b47d6-0x105;let _0xb3d7b0=_0xf8d899[_0x3b47d6];return _0xb3d7b0;},_0x3b47(_0x32ff75,_0x296d4a);}import{uid as _0x39cab1}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x159af4}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4b140f(0x13c);function _0xf8d8(){const _0x56667d=['RealTimeCollaborationClient',':end>','_displayedFakeSelectionLocked','fromCharCode','schema','data-id','push','join','2863365nDTXOa','listenTo','end','random','isOfficialPlugin','1501167CLJjNc','context','start','model','markers','_setDataIdsOnChildren','editors','_displayedFakeSelectionId','conversion',':end></','markerName','getSelectionText','$textProxy','ck-ai-assistant-ui_theme','toView','emptyElement','167564KLCQuL','trim','_sessionId','toData','pluginName','55FpbZwo','editingDowncast','getRoot','view','removeMarker','767052HKBiAk','for','createRangeIn','get','change','has','44741810WeMFFm','from','name','getWalker','getMarkersGroup','dataDowncast','add','document','markerToHighlight','afterInit','ck-fake-ai-selection','AIEditing','ready','hideFakeVisualSelection','isBefore','modelToViewWithIds','version','162CeAQHe','convertAiChatSelectionMarker','markerToElement','processor','length','setAttribute','getChildren','getStart','addMarker','getSelection','14kEOHWm',':start>','createUIElement','substring','plugins','sessionId','indexOf','isPremiumPlugin','_nextDataId','floor','editing','getSelectedContent','isAfter','_integrateEditor','sort','isOpening','data','4819860tIJPKD','containerElement','getDocumentData','getLastMatchingPosition','showFakeVisualSelection','isContent','createRange','252608KiMNBz','ai-selection:','element','isAtEnd','removeAllRanges','ai-selection','_getMarkersInDocumentOrder','selection',':start></'];_0xf8d8=function(){return _0x56667d;};return _0xf8d8();}export class AIEditing extends _0x342401{[_0x4b140f(0x154)]=null;[_0x4b140f(0x142)]=!0x1;[_0x4b140f(0x15f)];static get[_0x4b140f(0x161)](){const _0x381e93=_0x4b140f;return _0x381e93(0x10f);}static get[_0x4b140f(0x14c)](){return!0x0;}static get[_0x4b140f(0x126)](){return!0x0;}get[_0x4b140f(0x124)](){const _0x13fae3=_0x4b140f;if(!this[_0x13fae3(0x15f)]){const _0x49a468=_0x159af4(this[_0x13fae3(0x14e)]),_0x46e47b=_0x49a468[_0x13fae3(0x123)][_0x13fae3(0x16c)](_0x13fae3(0x140))&&_0x49a468[_0x13fae3(0x123)][_0x13fae3(0x16a)](_0x13fae3(0x140))[_0x13fae3(0x124)];this[_0x13fae3(0x15f)]=_0x46e47b||_0x39cab1();}return this[_0x13fae3(0x15f)];}[_0x4b140f(0x132)](){const _0x41b9d1=_0x4b140f,_0x51123e=_0x159af4(this[_0x41b9d1(0x14e)]),_0x4a8405=_0x51123e[_0x41b9d1(0x150)],_0x425c47=_0x51123e[_0x41b9d1(0x12f)][_0x41b9d1(0x15b)](_0x4a8405[_0x41b9d1(0x10b)][_0x41b9d1(0x164)](),{'convertAiChatSelectionMarker':!0x0}),_0x265caa=new _0x3f52f0(_0x51123e[_0x41b9d1(0x129)][_0x41b9d1(0x165)][_0x41b9d1(0x10b)]);this[_0x41b9d1(0x152)](_0x425c47,_0x265caa);let _0x5cfc7b=_0x51123e[_0x41b9d1(0x12f)][_0x41b9d1(0x118)][_0x41b9d1(0x160)](_0x425c47);const _0x11ff1e=this[_0x41b9d1(0x13d)](),_0x38e7c8=[];for(const _0x455510 of _0x11ff1e){const _0x455a45='<'+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x13f)+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x120),_0xa6c35a=_0x5cfc7b[_0x41b9d1(0x125)](_0x455a45);_0x5cfc7b=_0x5cfc7b[_0x41b9d1(0x122)](0x0,_0xa6c35a)+_0x5cfc7b[_0x41b9d1(0x122)](_0xa6c35a+_0x455a45[_0x41b9d1(0x119)]);const _0x432388='<'+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x156)+_0x455510[_0x41b9d1(0x106)]+_0x41b9d1(0x141),_0x5242ae=_0x5cfc7b[_0x41b9d1(0x125)](_0x432388);_0x5cfc7b=_0x5cfc7b[_0x41b9d1(0x122)](0x0,_0x5242ae)+_0x5cfc7b[_0x41b9d1(0x122)](_0x5242ae+_0x432388[_0x41b9d1(0x119)]),_0x38e7c8[_0x41b9d1(0x146)]({'markerName':_0x455510[_0x41b9d1(0x106)],'start':_0xa6c35a,'end':_0x5242ae,'htmlFragment':_0x5cfc7b[_0x41b9d1(0x122)](_0xa6c35a,_0x5242ae)});}return{'content':_0x5cfc7b,'version':_0x51123e[_0x41b9d1(0x150)][_0x41b9d1(0x10b)][_0x41b9d1(0x114)],'sessionId':this[_0x41b9d1(0x124)],'selections':_0x38e7c8};}async[_0x4b140f(0x10d)](){const _0x1bccdd=_0x4b140f;this[_0x1bccdd(0x14e)]instanceof _0x179baa?this[_0x1bccdd(0x12c)](this[_0x1bccdd(0x14e)]):this[_0x1bccdd(0x149)](this[_0x1bccdd(0x14e)][_0x1bccdd(0x153)],_0x1bccdd(0x10a),(_0x4ee0ee,_0x4733fd)=>{const _0x5a428e=_0x1bccdd;_0x4733fd['on'](_0x5a428e(0x110),()=>{const _0x5bf9da=_0x5a428e;this[_0x5bf9da(0x12c)](_0x4733fd);});});}[_0x4b140f(0x12c)](_0x63c822){const _0x379414=_0x4b140f;_0x63c822[_0x379414(0x155)][_0x379414(0x168)](_0x379414(0x163))[_0x379414(0x10c)]({'model':_0x379414(0x13c),'view':{'classes':[_0x379414(0x10e),_0x379414(0x15a)],'priority':0xc}}),_0x63c822[_0x379414(0x155)][_0x379414(0x168)](_0x379414(0x109))[_0x379414(0x117)]({'model':_0x379414(0x13c),'view':(_0xf031f8,{writer:_0x1e58dc,options:_0x30fb7e})=>_0x30fb7e[_0x379414(0x116)]?_0x1e58dc[_0x379414(0x121)](_0xf031f8[_0x379414(0x157)]+':'+(_0xf031f8[_0x379414(0x12e)]?_0x379414(0x14f):_0x379414(0x14a))):null});}[_0x4b140f(0x134)](_0x2a2fc0,_0x1f827b,_0x4cb0cc=!0x1,_0x12d658=!0x1){const _0x299fbf=_0x4b140f;if(this[_0x299fbf(0x142)]&&!_0x12d658)return!0x1;this[_0x299fbf(0x154)]&&this[_0x299fbf(0x111)](this[_0x299fbf(0x154)]),this[_0x299fbf(0x154)]=_0x1f827b,this[_0x299fbf(0x142)]=_0x4cb0cc;const _0xe297a6=_0x159af4(this[_0x299fbf(0x14e)])[_0x299fbf(0x150)];return _0xe297a6[_0x299fbf(0x16b)](_0xf16db4=>{const _0x281eb2=_0x299fbf;let _0x1808d2=0x0;for(let _0x58d21a of _0x2a2fc0){const _0xf7c4c=_0x281eb2(0x138)+_0x1808d2;if(_0x58d21a[_0x281eb2(0x14f)][_0x281eb2(0x13a)]){const _0x555cc8=_0x58d21a[_0x281eb2(0x14f)][_0x281eb2(0x133)](({item:_0x1c695a})=>!_0xe297a6[_0x281eb2(0x144)][_0x281eb2(0x135)](_0x1c695a),{'boundaries':_0x58d21a});_0x58d21a=_0xf16db4[_0x281eb2(0x136)](_0x555cc8,_0x58d21a[_0x281eb2(0x14a)]);}_0xf16db4[_0x281eb2(0x11d)](_0xf7c4c,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x58d21a}),_0x1808d2++;}}),window[_0x299fbf(0x11e)]()?.[_0x299fbf(0x13b)](),!0x0;}[_0x4b140f(0x111)](_0x26ea9f){const _0x34cae2=_0x4b140f;if(this[_0x34cae2(0x154)]!=_0x26ea9f)return!0x1;this[_0x34cae2(0x154)]=null,this[_0x34cae2(0x142)]=!0x1;const _0xc52e75=_0x159af4(this[_0x34cae2(0x14e)]),_0x4189e3=_0xc52e75[_0x34cae2(0x150)][_0x34cae2(0x151)][_0x34cae2(0x108)](_0x34cae2(0x13c));return _0xc52e75[_0x34cae2(0x150)][_0x34cae2(0x16b)](_0x12c476=>{const _0x124df1=_0x34cae2;for(const _0x55bfa2 of _0x4189e3)_0x12c476[_0x124df1(0x166)](_0x55bfa2);}),!0x0;}[_0x4b140f(0x113)](_0x1137b6){const _0x2c645d=_0x4b140f,_0x1c441e=_0x159af4(this[_0x2c645d(0x14e)]),_0x3c553a=_0x1c441e[_0x2c645d(0x12f)][_0x2c645d(0x15b)](_0x1137b6),_0x23c19d=new _0x3f52f0(_0x1c441e[_0x2c645d(0x129)][_0x2c645d(0x165)][_0x2c645d(0x10b)]);return this[_0x2c645d(0x152)](_0x3c553a,_0x23c19d),_0x3c553a;}[_0x4b140f(0x152)](_0xfe53ae,_0x30406f){const _0xc6b9fa=_0x4b140f;let _0x3a7d71=!0x1;const _0x14938d=new Set();for(const _0xdb706b of _0xfe53ae[_0xc6b9fa(0x11b)]()){const _0x3587b8=_0xdb706b['is'](_0xc6b9fa(0x15c))||_0xdb706b['is'](_0xc6b9fa(0x131));if(!_0xdb706b['is'](_0xc6b9fa(0x139)))continue;(this[_0xc6b9fa(0x152)](_0xdb706b,_0x30406f)||_0x3587b8)&&(_0x30406f[_0xc6b9fa(0x11a)](_0xc6b9fa(0x145),this[_0xc6b9fa(0x127)](_0x14938d),_0xdb706b),_0x3a7d71=!0x0);}return _0x3a7d71;}[_0x4b140f(0x127)](_0x480fc0){const _0x2fae3e=_0x4b140f;let _0x342ff2;do{_0x342ff2='';for(let _0xb1c47f=0x0;_0xb1c47f<0x4;_0xb1c47f++)_0x342ff2+=String[_0x2fae3e(0x143)](0x61+Math[_0x2fae3e(0x128)](0x1a*Math[_0x2fae3e(0x14b)]()));}while(_0x480fc0[_0x2fae3e(0x16c)](_0x342ff2));return _0x480fc0[_0x2fae3e(0x10a)](_0x342ff2),_0x342ff2;}[_0x4b140f(0x158)](){const _0x5ba4ad=_0x4b140f,{model:_0x5eacee}=_0x159af4(this[_0x5ba4ad(0x14e)]),_0x2ee4b5=_0x5eacee[_0x5ba4ad(0x10b)][_0x5ba4ad(0x13e)],_0x5304a7=_0x5eacee[_0x5ba4ad(0x12a)](_0x2ee4b5),_0x55fd57=[],_0x4aa2fb=_0x5eacee[_0x5ba4ad(0x169)](_0x5304a7)[_0x5ba4ad(0x107)]();for(const {item:_0x490580}of _0x4aa2fb)_0x490580['is'](_0x5ba4ad(0x159))?_0x55fd57[_0x5ba4ad(0x146)](_0x490580[_0x5ba4ad(0x12f)]):_0x490580['is'](_0x5ba4ad(0x139))&&_0x55fd57[_0x5ba4ad(0x119)]>0x0&&'\x20'!==_0x55fd57[_0x55fd57[_0x5ba4ad(0x119)]-0x1]&&_0x55fd57[_0x5ba4ad(0x146)]('\x20');return'\x22'+_0x55fd57[_0x5ba4ad(0x147)]('')[_0x5ba4ad(0x15e)]()+'\x22';}[_0x4b140f(0x13d)](){const _0x473978=_0x4b140f,_0x370fd5=_0x159af4(this[_0x473978(0x14e)])[_0x473978(0x150)];return Array[_0x473978(0x105)](_0x370fd5[_0x473978(0x151)][_0x473978(0x108)](_0x473978(0x13c)))[_0x473978(0x12d)]((_0x35228c,_0x5c10ca)=>_0x35228c[_0x473978(0x11c)]()[_0x473978(0x112)](_0x5c10ca[_0x473978(0x11c)]())?-0x1:_0x35228c[_0x473978(0x11c)]()[_0x473978(0x12b)](_0x5c10ca[_0x473978(0x11c)]())?0x1:0x0);}}
23
+ const _0x1a8fdf=_0x3633;function _0x3633(_0xe33b82,_0x174d71){const _0x11c02c=_0x11c0();return _0x3633=function(_0x3633c3,_0x2ceead){_0x3633c3=_0x3633c3-0x7b;let _0x1f6a2c=_0x11c02c[_0x3633c3];return _0x1f6a2c;},_0x3633(_0xe33b82,_0x174d71);}(function(_0x1b57f2,_0x20e367){const _0x4e09fa=_0x3633,_0x49261a=_0x1b57f2();while(!![]){try{const _0xdd967c=-parseInt(_0x4e09fa(0xc5))/0x1*(-parseInt(_0x4e09fa(0x8d))/0x2)+parseInt(_0x4e09fa(0x97))/0x3*(parseInt(_0x4e09fa(0xc6))/0x4)+-parseInt(_0x4e09fa(0x81))/0x5+-parseInt(_0x4e09fa(0xb2))/0x6*(-parseInt(_0x4e09fa(0xbd))/0x7)+parseInt(_0x4e09fa(0xb5))/0x8+-parseInt(_0x4e09fa(0xb4))/0x9+-parseInt(_0x4e09fa(0xc7))/0xa*(parseInt(_0x4e09fa(0xd6))/0xb);if(_0xdd967c===_0x20e367)break;else _0x49261a['push'](_0x49261a['shift']());}catch(_0x364bec){_0x49261a['push'](_0x49261a['shift']());}}}(_0x11c0,0x1994c));import{ViewDowncastWriter as _0x441827}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x40b0f0,Editor as _0x2d8962}from'ckeditor5/src/core.js';import{uid as _0x2fb2bb}from'ckeditor5/src/utils.js';function _0x11c0(){const _0x1a1645=['_sessionId','has','trim','sessionId','12cwQKlR','getWalker','774UqTRNS','411296PHPNIA','_integrateEditor','add','getMarkersGroup','ready','push','editing','change','496965ShegIq','_nextDataId','isOfficialPlugin','isBefore','$textProxy','getSelection','editingDowncast','context','608ORgpar','79708TKUQit','10uIzqvj','dataDowncast','containerElement','join','toView',':end></','showFakeVisualSelection','isContent','start','markerToElement','RealTimeCollaborationClient','length','sort','get','toData','2066449vhobbE','getSelectionText',':start></','selection','substring','emptyElement','_getMarkersInDocumentOrder','model','editors','getChildren',':start>','modelToViewWithIds','pluginName','fromCharCode','markerToHighlight','afterInit','name','isAtEnd','plugins','version','data','301150pKYmXO','conversion','floor','createRange','listenTo','isOpening','processor','_setDataIdsOnChildren','isPremiumPlugin','convertAiChatSelectionMarker','ai-selection','ck-fake-ai-selection','66IPTAQZ',':end>','createUIElement','random','from','_displayedFakeSelectionId','element','addMarker','view','createRangeIn','21JSOpBZ','document','getStart','getLastMatchingPosition','setAttribute','end','getSelectedContent','removeAllRanges','hideFakeVisualSelection','for','getRoot','markers','isAfter','indexOf','_displayedFakeSelectionLocked','ai-selection:','ck-ai-assistant-ui_theme','schema','removeMarker','AIEditing','data-id','getDocumentData','markerName'];_0x11c0=function(){return _0x1a1645;};return _0x11c0();}import{getEditorFromContext as _0x568ca2}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1a8fdf(0x8b);export class AIEditing extends _0x40b0f0{[_0x1a8fdf(0x92)]=null;[_0x1a8fdf(0xa5)]=!0x1;[_0x1a8fdf(0xae)];static get[_0x1a8fdf(0xe2)](){const _0x4ed4ef=_0x1a8fdf;return _0x4ed4ef(0xaa);}static get[_0x1a8fdf(0xbf)](){return!0x0;}static get[_0x1a8fdf(0x89)](){return!0x0;}get[_0x1a8fdf(0xb1)](){const _0x535534=_0x1a8fdf;if(!this[_0x535534(0xae)]){const _0x466511=_0x568ca2(this[_0x535534(0xc4)]),_0x13876f=_0x466511[_0x535534(0x7e)][_0x535534(0xaf)](_0x535534(0xd1))&&_0x466511[_0x535534(0x7e)][_0x535534(0xd4)](_0x535534(0xd1))[_0x535534(0xb1)];this[_0x535534(0xae)]=_0x13876f||_0x2fb2bb();}return this[_0x535534(0xae)];}[_0x1a8fdf(0xac)](){const _0x5a039d=_0x1a8fdf,_0x387709=_0x568ca2(this[_0x5a039d(0xc4)]),_0xb781cb=_0x387709[_0x5a039d(0xdd)],_0x256834=_0x387709[_0x5a039d(0x80)][_0x5a039d(0xcb)](_0xb781cb[_0x5a039d(0x98)][_0x5a039d(0xa1)](),{'convertAiChatSelectionMarker':!0x0}),_0xc66112=new _0x441827(_0x387709[_0x5a039d(0xbb)][_0x5a039d(0x95)][_0x5a039d(0x98)]);this[_0x5a039d(0x88)](_0x256834,_0xc66112);let _0x1a3f6e=_0x387709[_0x5a039d(0x80)][_0x5a039d(0x87)][_0x5a039d(0xd5)](_0x256834);const _0x3c23c4=this[_0x5a039d(0xdc)](),_0x3e8539=[];for(const _0x1dab5f of _0x3c23c4){const _0x5b2cf0='<'+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xd8)+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xe0),_0x3347ea=_0x1a3f6e[_0x5a039d(0xa4)](_0x5b2cf0);_0x1a3f6e=_0x1a3f6e[_0x5a039d(0xda)](0x0,_0x3347ea)+_0x1a3f6e[_0x5a039d(0xda)](_0x3347ea+_0x5b2cf0[_0x5a039d(0xd2)]);const _0x14f3ab='<'+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0xcc)+_0x1dab5f[_0x5a039d(0x7c)]+_0x5a039d(0x8e),_0x1c3be4=_0x1a3f6e[_0x5a039d(0xa4)](_0x14f3ab);_0x1a3f6e=_0x1a3f6e[_0x5a039d(0xda)](0x0,_0x1c3be4)+_0x1a3f6e[_0x5a039d(0xda)](_0x1c3be4+_0x14f3ab[_0x5a039d(0xd2)]),_0x3e8539[_0x5a039d(0xba)]({'markerName':_0x1dab5f[_0x5a039d(0x7c)],'start':_0x3347ea,'end':_0x1c3be4,'htmlFragment':_0x1a3f6e[_0x5a039d(0xda)](_0x3347ea,_0x1c3be4)});}return{'content':_0x1a3f6e,'version':_0x387709[_0x5a039d(0xdd)][_0x5a039d(0x98)][_0x5a039d(0x7f)],'sessionId':this[_0x5a039d(0xb1)],'selections':_0x3e8539};}async[_0x1a8fdf(0x7b)](){const _0xae4481=_0x1a8fdf;this[_0xae4481(0xc4)]instanceof _0x2d8962?this[_0xae4481(0xb6)](this[_0xae4481(0xc4)]):this[_0xae4481(0x85)](this[_0xae4481(0xc4)][_0xae4481(0xde)],_0xae4481(0xb7),(_0x9aacbe,_0x1c9379)=>{const _0x1bc735=_0xae4481;_0x1c9379['on'](_0x1bc735(0xb9),()=>{const _0x19afa9=_0x1bc735;this[_0x19afa9(0xb6)](_0x1c9379);});});}[_0x1a8fdf(0xb6)](_0x66635f){const _0x7f9ed1=_0x1a8fdf;_0x66635f[_0x7f9ed1(0x82)][_0x7f9ed1(0xa0)](_0x7f9ed1(0xc3))[_0x7f9ed1(0xe4)]({'model':_0x7f9ed1(0x8b),'view':{'classes':[_0x7f9ed1(0x8c),_0x7f9ed1(0xa7)],'priority':0xc}}),_0x66635f[_0x7f9ed1(0x82)][_0x7f9ed1(0xa0)](_0x7f9ed1(0xc8))[_0x7f9ed1(0xd0)]({'model':_0x7f9ed1(0x8b),'view':(_0x3797a3,{writer:_0x5b23de,options:_0x565af3})=>_0x565af3[_0x7f9ed1(0x8a)]?_0x5b23de[_0x7f9ed1(0x8f)](_0x3797a3[_0x7f9ed1(0xad)]+':'+(_0x3797a3[_0x7f9ed1(0x86)]?_0x7f9ed1(0xcf):_0x7f9ed1(0x9c))):null});}[_0x1a8fdf(0xcd)](_0x2a7c85,_0x34e6f2,_0x592794=!0x1,_0x559220=!0x1){const _0x39a525=_0x1a8fdf;if(this[_0x39a525(0xa5)]&&!_0x559220)return!0x1;this[_0x39a525(0x92)]&&this[_0x39a525(0x9f)](this[_0x39a525(0x92)]),this[_0x39a525(0x92)]=_0x34e6f2,this[_0x39a525(0xa5)]=_0x592794;const _0x53d9a6=_0x568ca2(this[_0x39a525(0xc4)])[_0x39a525(0xdd)];return _0x53d9a6[_0x39a525(0xbc)](_0x57223b=>{const _0x3a2bc7=_0x39a525;let _0x4f7ca7=0x0;for(let _0x4ae293 of _0x2a7c85){const _0x538eb1=_0x3a2bc7(0xa6)+_0x4f7ca7;if(_0x4ae293[_0x3a2bc7(0xcf)][_0x3a2bc7(0x7d)]){const _0x339dc5=_0x4ae293[_0x3a2bc7(0xcf)][_0x3a2bc7(0x9a)](({item:_0x43dce3})=>!_0x53d9a6[_0x3a2bc7(0xa8)][_0x3a2bc7(0xce)](_0x43dce3),{'boundaries':_0x4ae293});_0x4ae293=_0x57223b[_0x3a2bc7(0x84)](_0x339dc5,_0x4ae293[_0x3a2bc7(0x9c)]);}_0x57223b[_0x3a2bc7(0x94)](_0x538eb1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4ae293}),_0x4f7ca7++;}}),window[_0x39a525(0xc2)]()?.[_0x39a525(0x9e)](),!0x0;}[_0x1a8fdf(0x9f)](_0x45910e){const _0x2b9fde=_0x1a8fdf;if(this[_0x2b9fde(0x92)]!=_0x45910e)return!0x1;this[_0x2b9fde(0x92)]=null,this[_0x2b9fde(0xa5)]=!0x1;const _0x20297f=_0x568ca2(this[_0x2b9fde(0xc4)]),_0x3e3dc6=_0x20297f[_0x2b9fde(0xdd)][_0x2b9fde(0xa2)][_0x2b9fde(0xb8)](_0x2b9fde(0x8b));return _0x20297f[_0x2b9fde(0xdd)][_0x2b9fde(0xbc)](_0x1468fe=>{const _0x19c503=_0x2b9fde;for(const _0x49394d of _0x3e3dc6)_0x1468fe[_0x19c503(0xa9)](_0x49394d);}),!0x0;}[_0x1a8fdf(0xe1)](_0x3c0ad0){const _0x557bcc=_0x1a8fdf,_0x43b0bd=_0x568ca2(this[_0x557bcc(0xc4)]),_0x9f2097=_0x43b0bd[_0x557bcc(0x80)][_0x557bcc(0xcb)](_0x3c0ad0),_0x2de95b=new _0x441827(_0x43b0bd[_0x557bcc(0xbb)][_0x557bcc(0x95)][_0x557bcc(0x98)]);return this[_0x557bcc(0x88)](_0x9f2097,_0x2de95b),_0x9f2097;}[_0x1a8fdf(0x88)](_0x1f4455,_0x1853a6){const _0x5b75ca=_0x1a8fdf;let _0x5a5c18=!0x1;const _0x446bb6=new Set();for(const _0x22d13c of _0x1f4455[_0x5b75ca(0xdf)]()){const _0x86b99d=_0x22d13c['is'](_0x5b75ca(0xdb))||_0x22d13c['is'](_0x5b75ca(0xc9));if(!_0x22d13c['is'](_0x5b75ca(0x93)))continue;(this[_0x5b75ca(0x88)](_0x22d13c,_0x1853a6)||_0x86b99d)&&(_0x1853a6[_0x5b75ca(0x9b)](_0x5b75ca(0xab),this[_0x5b75ca(0xbe)](_0x446bb6),_0x22d13c),_0x5a5c18=!0x0);}return _0x5a5c18;}[_0x1a8fdf(0xbe)](_0x5452a0){const _0x3ec19e=_0x1a8fdf;let _0x3fa8fa;do{_0x3fa8fa='';for(let _0x1e6073=0x0;_0x1e6073<0x4;_0x1e6073++)_0x3fa8fa+=String[_0x3ec19e(0xe3)](0x61+Math[_0x3ec19e(0x83)](0x1a*Math[_0x3ec19e(0x90)]()));}while(_0x5452a0[_0x3ec19e(0xaf)](_0x3fa8fa));return _0x5452a0[_0x3ec19e(0xb7)](_0x3fa8fa),_0x3fa8fa;}[_0x1a8fdf(0xd7)](){const _0x372bfb=_0x1a8fdf,{model:_0xf42a2f}=_0x568ca2(this[_0x372bfb(0xc4)]),_0x2a68d4=_0xf42a2f[_0x372bfb(0x98)][_0x372bfb(0xd9)],_0x4c3426=_0xf42a2f[_0x372bfb(0x9d)](_0x2a68d4),_0x4c14c4=[],_0x1ed58c=_0xf42a2f[_0x372bfb(0x96)](_0x4c3426)[_0x372bfb(0xb3)]();for(const {item:_0x2d29f8}of _0x1ed58c)_0x2d29f8['is'](_0x372bfb(0xc1))?_0x4c14c4[_0x372bfb(0xba)](_0x2d29f8[_0x372bfb(0x80)]):_0x2d29f8['is'](_0x372bfb(0x93))&&_0x4c14c4[_0x372bfb(0xd2)]>0x0&&'\x20'!==_0x4c14c4[_0x4c14c4[_0x372bfb(0xd2)]-0x1]&&_0x4c14c4[_0x372bfb(0xba)]('\x20');return'\x22'+_0x4c14c4[_0x372bfb(0xca)]('')[_0x372bfb(0xb0)]()+'\x22';}[_0x1a8fdf(0xdc)](){const _0x556358=_0x1a8fdf,_0x3c647e=_0x568ca2(this[_0x556358(0xc4)])[_0x556358(0xdd)];return Array[_0x556358(0x91)](_0x3c647e[_0x556358(0xa2)][_0x556358(0xb8)](_0x556358(0x8b)))[_0x556358(0xd3)]((_0x57ced5,_0x447a16)=>_0x57ced5[_0x556358(0x99)]()[_0x556358(0xc0)](_0x447a16[_0x556358(0x99)]())?-0x1:_0x57ced5[_0x556358(0x99)]()[_0x556358(0xa3)](_0x447a16[_0x556358(0x99)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f1433=_0x369e;(function(_0x385ad2,_0x30ce56){const _0x10b064=_0x369e,_0x144e85=_0x385ad2();while(!![]){try{const _0x27213d=parseInt(_0x10b064(0x138))/0x1*(-parseInt(_0x10b064(0x143))/0x2)+-parseInt(_0x10b064(0x13f))/0x3*(parseInt(_0x10b064(0x135))/0x4)+-parseInt(_0x10b064(0x144))/0x5*(parseInt(_0x10b064(0x134))/0x6)+-parseInt(_0x10b064(0x12e))/0x7*(parseInt(_0x10b064(0x142))/0x8)+parseInt(_0x10b064(0x141))/0x9*(parseInt(_0x10b064(0x128))/0xa)+-parseInt(_0x10b064(0x12c))/0xb+-parseInt(_0x10b064(0x13d))/0xc*(-parseInt(_0x10b064(0x12d))/0xd);if(_0x27213d===_0x30ce56)break;else _0x144e85['push'](_0x144e85['shift']());}catch(_0x965894){_0x144e85['push'](_0x144e85['shift']());}}}(_0x13a3,0x27a42));import{EmitterMixin as _0x144c45}from'ckeditor5/src/utils.js';function _0x369e(_0x53dc84,_0x20cbbe){const _0x13a367=_0x13a3();return _0x369e=function(_0x369e6c,_0x310c4a){_0x369e6c=_0x369e6c-0x128;let _0x40647d=_0x13a367[_0x369e6c];return _0x40647d;},_0x369e(_0x53dc84,_0x20cbbe);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x3f1433(0x130)];function _0x13a3(){const _0xdd1091=['init','827004evyhWc','237572UJFhGX','isWebSearchEnabled','webSearch','2fzfczA','toggleReasoning','_isWebSearchEnabled','_isReasoningEnabled','isReasoningEnabled','2463828axdlex','getCapabilitiesRequestData','6AFeZTI','setWebSearch','2744136sKirgt','8axJgaK','87382jkejha','5KUYlAd','10qKABWW','getCapabilitiesConfig','reasoning','reset','2843060fJgTsq','39FZvVdI','1092203matVLF','setReasoning','capabilitiesUpdated','fire','toggleWebSearch'];_0x13a3=function(){return _0xdd1091;};return _0x13a3();}export class AICapabilities extends _0x144c45(){[_0x3f1433(0x13a)];[_0x3f1433(0x13b)];constructor(){const _0xf88ff0=_0x3f1433;super(),this[_0xf88ff0(0x13a)]=!0x1,this[_0xf88ff0(0x13b)]=!0x1;}[_0x3f1433(0x133)](){const _0x23f38f=_0x3f1433;this[_0x23f38f(0x12b)]();}[_0x3f1433(0x12b)](){const _0x282cba=_0x3f1433;this[_0x282cba(0x140)](!0x1),this[_0x282cba(0x12f)](!0x1);}[_0x3f1433(0x129)](){const _0x436315=_0x3f1433;return{'isWebSearchEnabled':this[_0x436315(0x13a)],'isReasoningEnabled':this[_0x436315(0x13b)]};}static[_0x3f1433(0x13e)](_0x93449d){const _0x20c057=_0x3f1433,_0x1bf071={};return _0x93449d&&_0x93449d[_0x20c057(0x136)]&&(_0x1bf071[_0x20c057(0x137)]={}),_0x93449d&&_0x93449d[_0x20c057(0x13c)]&&(_0x1bf071[_0x20c057(0x12a)]={}),_0x1bf071;}[_0x3f1433(0x132)](){const _0x213120=_0x3f1433;this[_0x213120(0x140)](!this[_0x213120(0x13a)]);}[_0x3f1433(0x139)](){const _0x5e977d=_0x3f1433;this[_0x5e977d(0x12f)](!this[_0x5e977d(0x13b)]);}[_0x3f1433(0x140)](_0x8127cc){const _0x2c21f6=_0x3f1433;_0x8127cc!==this[_0x2c21f6(0x13a)]&&(this[_0x2c21f6(0x13a)]=_0x8127cc,this[_0x2c21f6(0x131)](_0x2c21f6(0x130),this[_0x2c21f6(0x129)]()));}[_0x3f1433(0x12f)](_0x4c936e){const _0x37eb69=_0x3f1433;_0x4c936e!==this[_0x37eb69(0x13b)]&&(this[_0x37eb69(0x13b)]=_0x4c936e,this[_0x37eb69(0x131)](_0x37eb69(0x130),this[_0x37eb69(0x129)]()));}}
23
+ const _0x2a07bf=_0x2af5;(function(_0x82a694,_0x52b913){const _0x3a1953=_0x2af5,_0x5e9f75=_0x82a694();while(!![]){try{const _0x7a9c0=parseInt(_0x3a1953(0x1c9))/0x1*(-parseInt(_0x3a1953(0x1c0))/0x2)+parseInt(_0x3a1953(0x1c2))/0x3*(parseInt(_0x3a1953(0x1d1))/0x4)+parseInt(_0x3a1953(0x1cb))/0x5+parseInt(_0x3a1953(0x1d2))/0x6+-parseInt(_0x3a1953(0x1d3))/0x7+parseInt(_0x3a1953(0x1c8))/0x8*(parseInt(_0x3a1953(0x1d0))/0x9)+parseInt(_0x3a1953(0x1bd))/0xa*(-parseInt(_0x3a1953(0x1c5))/0xb);if(_0x7a9c0===_0x52b913)break;else _0x5e9f75['push'](_0x5e9f75['shift']());}catch(_0x35a8fb){_0x5e9f75['push'](_0x5e9f75['shift']());}}}(_0x26fa,0x41bdc));import{EmitterMixin as _0x8bb345}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2a07bf(0x1c4)];function _0x26fa(){const _0x529fd0=['webSearch','2300965dyqnXL','_isReasoningEnabled','setReasoning','init','setWebSearch','1975527ciCJxI','239672AzeYVs','1728330FMErsq','3235190YiwBsp','isReasoningEnabled','_isWebSearchEnabled','toggleWebSearch','getCapabilitiesRequestData','60bnojHL','reasoning','getCapabilitiesConfig','9842UBaSlh','fire','6MrDFUU','toggleReasoning','capabilitiesUpdated','694474rFLlpu','reset','isWebSearchEnabled','16UVYwep','40TBQrrp'];_0x26fa=function(){return _0x529fd0;};return _0x26fa();}function _0x2af5(_0x3c2a19,_0x416d05){const _0x26faa4=_0x26fa();return _0x2af5=function(_0x2af55d,_0x1f753c){_0x2af55d=_0x2af55d-0x1b9;let _0x3e5cd5=_0x26faa4[_0x2af55d];return _0x3e5cd5;},_0x2af5(_0x3c2a19,_0x416d05);}export class AICapabilities extends _0x8bb345(){[_0x2a07bf(0x1ba)];[_0x2a07bf(0x1cc)];constructor(){const _0x1397f5=_0x2a07bf;super(),this[_0x1397f5(0x1ba)]=!0x1,this[_0x1397f5(0x1cc)]=!0x1;}[_0x2a07bf(0x1ce)](){const _0x2fcb66=_0x2a07bf;this[_0x2fcb66(0x1c6)]();}[_0x2a07bf(0x1c6)](){const _0x37faf8=_0x2a07bf;this[_0x37faf8(0x1cf)](!0x1),this[_0x37faf8(0x1cd)](!0x1);}[_0x2a07bf(0x1bf)](){const _0x5c108f=_0x2a07bf;return{'isWebSearchEnabled':this[_0x5c108f(0x1ba)],'isReasoningEnabled':this[_0x5c108f(0x1cc)]};}static[_0x2a07bf(0x1bc)](_0x5705c1){const _0x4a605c=_0x2a07bf,_0x2a336b={};return _0x5705c1&&_0x5705c1[_0x4a605c(0x1c7)]&&(_0x2a336b[_0x4a605c(0x1ca)]={}),_0x5705c1&&_0x5705c1[_0x4a605c(0x1b9)]&&(_0x2a336b[_0x4a605c(0x1be)]={}),_0x2a336b;}[_0x2a07bf(0x1bb)](){const _0x38e746=_0x2a07bf;this[_0x38e746(0x1cf)](!this[_0x38e746(0x1ba)]);}[_0x2a07bf(0x1c3)](){const _0x310a02=_0x2a07bf;this[_0x310a02(0x1cd)](!this[_0x310a02(0x1cc)]);}[_0x2a07bf(0x1cf)](_0x986eb5){const _0x46b50a=_0x2a07bf;_0x986eb5!==this[_0x46b50a(0x1ba)]&&(this[_0x46b50a(0x1ba)]=_0x986eb5,this[_0x46b50a(0x1c1)](_0x46b50a(0x1c4),this[_0x46b50a(0x1bf)]()));}[_0x2a07bf(0x1cd)](_0x5e3c28){const _0x53ec59=_0x2a07bf;_0x5e3c28!==this[_0x53ec59(0x1cc)]&&(this[_0x53ec59(0x1cc)]=_0x5e3c28,this[_0x53ec59(0x1c1)](_0x53ec59(0x1c4),this[_0x53ec59(0x1bf)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dedde=_0x3d9e;(function(_0x237fea,_0x1638ea){const _0x134e24=_0x3d9e,_0x44da37=_0x237fea();while(!![]){try{const _0x5ca504=-parseInt(_0x134e24(0xda))/0x1+-parseInt(_0x134e24(0xd9))/0x2+parseInt(_0x134e24(0xd0))/0x3+parseInt(_0x134e24(0x10d))/0x4+parseInt(_0x134e24(0x112))/0x5+parseInt(_0x134e24(0xdc))/0x6*(-parseInt(_0x134e24(0xff))/0x7)+parseInt(_0x134e24(0xf1))/0x8*(parseInt(_0x134e24(0xf5))/0x9);if(_0x5ca504===_0x1638ea)break;else _0x44da37['push'](_0x44da37['shift']());}catch(_0x153101){_0x44da37['push'](_0x44da37['shift']());}}}(_0x3763,0x41e2e));import{CKEditorError as _0x42b4d1,EmitterMixin as _0x41ad42,logWarning as _0x3adbbc,uid as _0x1e6871}from'ckeditor5/src/utils.js';import{AIReply as _0x1b8ea2,isIgnoredReplyType as _0x5b0ae0,isValidReplyType as _0x54c072,isReplyTitleType as _0x3a74db,isSourceType as _0x2980ef}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x2dedde(0x107),_0x2dedde(0xde),_0x2dedde(0xe1),_0x2dedde(0xe8),_0x2dedde(0x111),_0x2dedde(0xfa),_0x2dedde(0x103),_0x2dedde(0xdd),_0x2dedde(0x101),_0x2dedde(0xd2),_0x2dedde(0xe2),_0x2dedde(0xd1),_0x2dedde(0xf3),_0x2dedde(0x10e)];export class AIInteraction extends _0x41ad42(){['id'];[_0x2dedde(0xe3)]=[];[_0x2dedde(0xfc)];[_0x2dedde(0xe9)];[_0x2dedde(0xd8)];[_0x2dedde(0xf4)];[_0x2dedde(0xd6)];[_0x2dedde(0xee)]=!0x1;[_0x2dedde(0xe7)]=!0x1;[_0x2dedde(0xf8)];[_0x2dedde(0xe0)]=!0x1;[_0x2dedde(0xd7)]=!0x1;constructor({connector:_0x2c47ef,editor:_0x502502}){const _0x333d5a=_0x2dedde;super(),this['id']=_0x1e6871(),this[_0x333d5a(0xd6)]=_0x2c47ef,this[_0x333d5a(0xee)]=!0x0,this[_0x333d5a(0xf8)]=_0x502502;}async[_0x2dedde(0xdf)](){const _0x1de993=_0x2dedde;let _0x3f64cc;const _0x1ed942=[];this[_0x1de993(0xee)]=!0x1;try{this[_0x1de993(0xf4)]=await this[_0x1de993(0xf9)](),this[_0x1de993(0xcf)](_0x1de993(0xde),this);const _0x3b8376=await this[_0x1de993(0xf4)][_0x1de993(0xcd)]();for await(const _0x405ea2 of _0x3b8376){if(this[_0x1de993(0xee)])return;if(_0x1de993(0x10e)===_0x405ea2[_0x1de993(0xec)])return void this[_0x1de993(0xcf)](_0x1de993(0x10e),{'error':new _0x42b4d1(_0x1de993(0xef),this)});if(_0x1de993(0x110)!==_0x405ea2[_0x1de993(0xec)]){if(_0x1de993(0xce)!==_0x405ea2[_0x1de993(0xec)]){if(_0x3a74db(_0x405ea2[_0x1de993(0xec)])&&this[_0x1de993(0x101)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0x10f)],!0x0),_0x2980ef(_0x405ea2[_0x1de993(0xec)]))_0x1ed942[_0x1de993(0xeb)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0xd4)]);else{if(_0x54c072(_0x405ea2[_0x1de993(0xec)])){if(_0x405ea2[_0x1de993(0xec)]!==_0x3f64cc){if(_0x3f64cc=_0x405ea2[_0x1de993(0xec)],_0x1de993(0xed)===_0x405ea2[_0x1de993(0xec)]){this[_0x1de993(0xd7)]||(this[_0x1de993(0xd7)]=!0x0,this[_0x1de993(0xcf)](_0x1de993(0xd2),this));continue;}if(_0x1de993(0x10c)===_0x405ea2[_0x1de993(0xec)]){this[_0x1de993(0xe0)]||(this[_0x1de993(0xe0)]=!0x0,this[_0x1de993(0xcf)](_0x1de993(0xd1),this));continue;}this[_0x1de993(0xe0)]&&(this[_0x1de993(0xe0)]=!0x1,this[_0x1de993(0xcf)](_0x1de993(0xf3),this)),this[_0x1de993(0xd7)]&&(this[_0x1de993(0xd7)]=!0x1,this[_0x1de993(0xcf)](_0x1de993(0xe2),this)),this[_0x1de993(0xfc)]&&this[_0x1de993(0xfc)][_0x1de993(0xd3)](),this[_0x1de993(0xfc)]=this[_0x1de993(0x102)]({'type':_0x405ea2[_0x1de993(0xec)],'interactionId':this['id']}),_0x1ed942[_0x1de993(0xfe)]>0x0&&_0x1de993(0xea)===_0x405ea2[_0x1de993(0xec)]&&(this[_0x1de993(0xfc)][_0x1de993(0xf6)]=_0x1ed942[_0x1de993(0x104)](0x0));}_0x405ea2[_0x1de993(0x105)][_0x1de993(0xfd)]&&this[_0x1de993(0xfc)][_0x1de993(0xe5)](_0x405ea2[_0x1de993(0x105)][_0x1de993(0xfd)]);}else _0x5b0ae0(_0x405ea2[_0x1de993(0xec)])||_0x3adbbc(_0x1de993(0x108),{'chunk':_0x405ea2});}}else this[_0x1de993(0xd8)]=_0x405ea2[_0x1de993(0x105)][_0x1de993(0xdb)];}else this[_0x1de993(0xe9)]=_0x405ea2[_0x1de993(0x105)]['id'];}}finally{this[_0x1de993(0xee)]||(_0x1ed942[_0x1de993(0xfe)]>0x0&&(this[_0x1de993(0xfc)][_0x1de993(0xf6)]=_0x1ed942[_0x1de993(0x104)](0x0)),this[_0x1de993(0xd5)](),this[_0x1de993(0xcf)](_0x1de993(0xe8),this));}}[_0x2dedde(0xfb)](){const _0x3be98c=_0x2dedde;this[_0x3be98c(0xee)]||(this[_0x3be98c(0xd5)](),this[_0x3be98c(0xcf)](_0x3be98c(0xe1),this));}[_0x2dedde(0x106)](_0x515fdd){const _0x1be151=_0x2dedde;return this[_0x1be151(0xe3)][_0x1be151(0xf7)](_0x2b20a3=>_0x2b20a3['id']===_0x515fdd);}[_0x2dedde(0x10a)](){const _0x499148=_0x2dedde;this[_0x499148(0xe7)]||(this[_0x499148(0xfb)](),this[_0x499148(0xe3)][_0x499148(0xe4)](_0x59949f=>_0x59949f[_0x499148(0x10a)]()),this[_0x499148(0xe3)]=[],this[_0x499148(0xe7)]=!0x0,this[_0x499148(0xcf)](_0x499148(0x111),this),this[_0x499148(0x100)]());}[_0x2dedde(0x102)](_0x2f6e46){const _0x39169e=_0x2dedde,_0xa94f4c=new _0x1b8ea2({'editor':this[_0x39169e(0xf8)],'documentContextContent':this[_0x39169e(0x109)]()?.[_0x39169e(0xf2)],..._0x2f6e46});return this[_0x39169e(0xe3)][_0x39169e(0xeb)](_0xa94f4c),_0xa94f4c[_0x39169e(0xf0)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x39169e(0xcf)](_0x39169e(0xfa),_0xa94f4c),_0xa94f4c;}[_0x2dedde(0x101)](_0x1d174b,_0x566cbd=!0x1){const _0x505b2f=_0x2dedde;this[_0x505b2f(0xcf)](_0x505b2f(0x101),_0x1d174b,_0x566cbd);}[_0x2dedde(0xd5)](){const _0x89a87=_0x2dedde;this[_0x89a87(0xee)]=!0x0,this[_0x89a87(0xf4)]&&this[_0x89a87(0xf4)][_0x89a87(0xe6)][_0x89a87(0x10b)](),this[_0x89a87(0xfc)]&&this[_0x89a87(0xfc)][_0x89a87(0xd3)](),this[_0x89a87(0xf4)]=this[_0x89a87(0xfc)]=void 0x0;}}function _0x3d9e(_0x18688f,_0x19af63){const _0x3763c2=_0x3763();return _0x3d9e=function(_0x3d9eb1,_0x22199b){_0x3d9eb1=_0x3d9eb1-0xcd;let _0x4bd85a=_0x3763c2[_0x3d9eb1];return _0x4bd85a;},_0x3d9e(_0x18688f,_0x19af63);}function _0x3763(){const _0x7e2c76=['896tfebEM','stopListening','setConversationTitle','createReply','replyContentUpdated','splice','data','getReply','interactionCreated','ai-interaction-invalid-event-type','getDocumentContext','destroy','abort','reasoning','435692naMZXG','error','conversationTitle','message-metadata','interactionDestroyed','1827305iCutaI','getStream','action-metadata','fire','1453251Yabbhf','reasoningStarted','webSearchStarted','done','source','_finalizeInteraction','connector','_isWebSearching','actionCallId','946270xfyYtR','243624MOxQpt','callId','10044YNWJtT','replyChangeGroupStateUpdated','interactionStarted','start','_isReasoning','interactionStopped','webSearchFinished','replies','forEach','appendContent','abortController','isDestroyed','interactionFinished','messageId','modification-delta','push','event','web-search','isStopped','ai-chat-interaction-error','delegate','64560jkLknK','content','reasoningFinished','currentRequest','270trRbNs','sources','find','editor','sendRequest','replyCreated','stop','currentReply','textDelta','length'];_0x3763=function(){return _0x7e2c76;};return _0x3763();}
23
+ const _0xb798fa=_0x4bbb;function _0xe262(){const _0x1e4713=['ai-chat-interaction-error','replyCreated','_isWebSearching','callId','splice','stopListening','setConversationTitle','replies','createReply','find','webSearchFinished','interactionCreated','getStream','getDocumentContext','replyChangeGroupStateUpdated','7025298bdAcSZ','appendContent','reasoning','stop','reasoningFinished','conversationTitle','connector','getReply','isDestroyed','3873975HEvPeb','1243681TxUQpG','length','332108zcfKAx','interactionStarted','push','event','delegate','editor','sources','message-metadata','webSearchStarted','textDelta','replyContentUpdated','2987844XVBJTZ','currentRequest','start','content','isStopped','interactionStopped','ai-interaction-invalid-event-type','24152744PtnqrP','abort','_isReasoning','6exarXq','actionCallId','destroy','error','1512910CxTBNg','sendRequest','_finalizeInteraction','currentReply','interactionDestroyed','modification-delta','forEach','source','abortController','fire','interactionFinished','action-metadata','web-search','done','data','messageId','reasoningStarted'];_0xe262=function(){return _0x1e4713;};return _0xe262();}(function(_0x4d17ec,_0x562db7){const _0x14f027=_0x4bbb,_0x3d01b0=_0x4d17ec();while(!![]){try{const _0x17e523=parseInt(_0x14f027(0xc7))/0x1+-parseInt(_0x14f027(0xc9))/0x2+-parseInt(_0x14f027(0xc6))/0x3+-parseInt(_0x14f027(0xd4))/0x4+parseInt(_0x14f027(0xe2))/0x5*(-parseInt(_0x14f027(0xde))/0x6)+-parseInt(_0x14f027(0xbd))/0x7+parseInt(_0x14f027(0xdb))/0x8;if(_0x17e523===_0x562db7)break;else _0x3d01b0['push'](_0x3d01b0['shift']());}catch(_0x167dba){_0x3d01b0['push'](_0x3d01b0['shift']());}}}(_0xe262,0xb7a6e));import{CKEditorError as _0x138bd2,EmitterMixin as _0x567a7b,logWarning as _0x10789e,uid as _0x2451c8}from'ckeditor5/src/utils.js';import{AIReply as _0x386ec0,isIgnoredReplyType as _0x5b92f8,isValidReplyType as _0x538c6e,isReplyTitleType as _0x3ee21b,isSourceType as _0x405c0f}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0xb798fa(0xb9),_0xb798fa(0xca),_0xb798fa(0xd9),_0xb798fa(0xec),_0xb798fa(0xe6),_0xb798fa(0xf4),_0xb798fa(0xd3),_0xb798fa(0xbc),_0xb798fa(0xb4),_0xb798fa(0xd1),_0xb798fa(0xb8),_0xb798fa(0xf2),_0xb798fa(0xc1),_0xb798fa(0xe1)];function _0x4bbb(_0x1188c5,_0x5de7c4){const _0xe26244=_0xe262();return _0x4bbb=function(_0x4bbb16,_0xd3faf0){_0x4bbb16=_0x4bbb16-0xb4;let _0x3dc6fd=_0xe26244[_0x4bbb16];return _0x3dc6fd;},_0x4bbb(_0x1188c5,_0x5de7c4);}export class AIInteraction extends _0x567a7b(){['id'];[_0xb798fa(0xb5)]=[];[_0xb798fa(0xe5)];[_0xb798fa(0xf1)];[_0xb798fa(0xdf)];[_0xb798fa(0xd5)];[_0xb798fa(0xc3)];[_0xb798fa(0xd8)]=!0x1;[_0xb798fa(0xc5)]=!0x1;[_0xb798fa(0xce)];[_0xb798fa(0xdd)]=!0x1;[_0xb798fa(0xf5)]=!0x1;constructor({connector:_0x1303c4,editor:_0x3d26d0}){const _0x187c47=_0xb798fa;super(),this['id']=_0x2451c8(),this[_0x187c47(0xc3)]=_0x1303c4,this[_0x187c47(0xd8)]=!0x0,this[_0x187c47(0xce)]=_0x3d26d0;}async[_0xb798fa(0xd6)](){const _0x4fbce0=_0xb798fa;let _0x3a6f46;const _0x9d5f8e=[];this[_0x4fbce0(0xd8)]=!0x1;try{this[_0x4fbce0(0xd5)]=await this[_0x4fbce0(0xe3)](),this[_0x4fbce0(0xeb)](_0x4fbce0(0xca),this);const _0x290ab3=await this[_0x4fbce0(0xd5)][_0x4fbce0(0xba)]();for await(const _0x152917 of _0x290ab3){if(this[_0x4fbce0(0xd8)])return;if(_0x4fbce0(0xe1)===_0x152917[_0x4fbce0(0xcc)])return void this[_0x4fbce0(0xeb)](_0x4fbce0(0xe1),{'error':new _0x138bd2(_0x4fbce0(0xf3),this)});if(_0x4fbce0(0xd0)!==_0x152917[_0x4fbce0(0xcc)]){if(_0x4fbce0(0xed)!==_0x152917[_0x4fbce0(0xcc)]){if(_0x3ee21b(_0x152917[_0x4fbce0(0xcc)])&&this[_0x4fbce0(0xb4)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xc2)],!0x0),_0x405c0f(_0x152917[_0x4fbce0(0xcc)]))_0x9d5f8e[_0x4fbce0(0xcb)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xe9)]);else{if(_0x538c6e(_0x152917[_0x4fbce0(0xcc)])){if(_0x152917[_0x4fbce0(0xcc)]!==_0x3a6f46){if(_0x3a6f46=_0x152917[_0x4fbce0(0xcc)],_0x4fbce0(0xee)===_0x152917[_0x4fbce0(0xcc)]){this[_0x4fbce0(0xf5)]||(this[_0x4fbce0(0xf5)]=!0x0,this[_0x4fbce0(0xeb)](_0x4fbce0(0xd1),this));continue;}if(_0x4fbce0(0xbf)===_0x152917[_0x4fbce0(0xcc)]){this[_0x4fbce0(0xdd)]||(this[_0x4fbce0(0xdd)]=!0x0,this[_0x4fbce0(0xeb)](_0x4fbce0(0xf2),this));continue;}this[_0x4fbce0(0xdd)]&&(this[_0x4fbce0(0xdd)]=!0x1,this[_0x4fbce0(0xeb)](_0x4fbce0(0xc1),this)),this[_0x4fbce0(0xf5)]&&(this[_0x4fbce0(0xf5)]=!0x1,this[_0x4fbce0(0xeb)](_0x4fbce0(0xb8),this)),this[_0x4fbce0(0xe5)]&&this[_0x4fbce0(0xe5)][_0x4fbce0(0xef)](),this[_0x4fbce0(0xe5)]=this[_0x4fbce0(0xb6)]({'type':_0x152917[_0x4fbce0(0xcc)],'interactionId':this['id']}),_0x9d5f8e[_0x4fbce0(0xc8)]>0x0&&_0x4fbce0(0xe7)===_0x152917[_0x4fbce0(0xcc)]&&(this[_0x4fbce0(0xe5)][_0x4fbce0(0xcf)]=_0x9d5f8e[_0x4fbce0(0xf7)](0x0));}_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xd2)]&&this[_0x4fbce0(0xe5)][_0x4fbce0(0xbe)](_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xd2)]);}else _0x5b92f8(_0x152917[_0x4fbce0(0xcc)])||_0x10789e(_0x4fbce0(0xda),{'chunk':_0x152917});}}else this[_0x4fbce0(0xdf)]=_0x152917[_0x4fbce0(0xf0)][_0x4fbce0(0xf6)];}else this[_0x4fbce0(0xf1)]=_0x152917[_0x4fbce0(0xf0)]['id'];}}finally{this[_0x4fbce0(0xd8)]||(_0x9d5f8e[_0x4fbce0(0xc8)]>0x0&&(this[_0x4fbce0(0xe5)][_0x4fbce0(0xcf)]=_0x9d5f8e[_0x4fbce0(0xf7)](0x0)),this[_0x4fbce0(0xe4)](),this[_0x4fbce0(0xeb)](_0x4fbce0(0xec),this));}}[_0xb798fa(0xc0)](){const _0x2223d7=_0xb798fa;this[_0x2223d7(0xd8)]||(this[_0x2223d7(0xe4)](),this[_0x2223d7(0xeb)](_0x2223d7(0xd9),this));}[_0xb798fa(0xc4)](_0x3c41ea){const _0x200702=_0xb798fa;return this[_0x200702(0xb5)][_0x200702(0xb7)](_0x51f5ff=>_0x51f5ff['id']===_0x3c41ea);}[_0xb798fa(0xe0)](){const _0x1acc88=_0xb798fa;this[_0x1acc88(0xc5)]||(this[_0x1acc88(0xc0)](),this[_0x1acc88(0xb5)][_0x1acc88(0xe8)](_0xc40faa=>_0xc40faa[_0x1acc88(0xe0)]()),this[_0x1acc88(0xb5)]=[],this[_0x1acc88(0xc5)]=!0x0,this[_0x1acc88(0xeb)](_0x1acc88(0xe6),this),this[_0x1acc88(0xf8)]());}[_0xb798fa(0xb6)](_0x540f65){const _0x2c634d=_0xb798fa,_0x1f9589=new _0x386ec0({'editor':this[_0x2c634d(0xce)],'documentContextContent':this[_0x2c634d(0xbb)]()?.[_0x2c634d(0xd7)],..._0x540f65});return this[_0x2c634d(0xb5)][_0x2c634d(0xcb)](_0x1f9589),_0x1f9589[_0x2c634d(0xcd)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2c634d(0xeb)](_0x2c634d(0xf4),_0x1f9589),_0x1f9589;}[_0xb798fa(0xb4)](_0x2f6373,_0x48a194=!0x1){const _0x10b538=_0xb798fa;this[_0x10b538(0xeb)](_0x10b538(0xb4),_0x2f6373,_0x48a194);}[_0xb798fa(0xe4)](){const _0x45a374=_0xb798fa;this[_0x45a374(0xd8)]=!0x0,this[_0x45a374(0xd5)]&&this[_0x45a374(0xd5)][_0x45a374(0xea)][_0x45a374(0xdc)](),this[_0x45a374(0xe5)]&&this[_0x45a374(0xe5)][_0x45a374(0xef)](),this[_0x45a374(0xd5)]=this[_0x45a374(0xe5)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x293809=_0x4667;(function(_0x4dba5c,_0x273149){const _0x45b1e6=_0x4667,_0x5759f2=_0x4dba5c();while(!![]){try{const _0x4275c3=-parseInt(_0x45b1e6(0x9b))/0x1*(-parseInt(_0x45b1e6(0x97))/0x2)+-parseInt(_0x45b1e6(0x95))/0x3*(-parseInt(_0x45b1e6(0xba))/0x4)+-parseInt(_0x45b1e6(0xaf))/0x5*(-parseInt(_0x45b1e6(0xc1))/0x6)+-parseInt(_0x45b1e6(0xb6))/0x7*(parseInt(_0x45b1e6(0x8c))/0x8)+parseInt(_0x45b1e6(0x86))/0x9*(parseInt(_0x45b1e6(0xa3))/0xa)+parseInt(_0x45b1e6(0xa8))/0xb+-parseInt(_0x45b1e6(0xa4))/0xc*(parseInt(_0x45b1e6(0x8d))/0xd);if(_0x4275c3===_0x273149)break;else _0x5759f2['push'](_0x5759f2['shift']());}catch(_0x2614e2){_0x5759f2['push'](_0x5759f2['shift']());}}}(_0x1ff0,0xedb27));import{ObservableMixin as _0x1b50a2,uid as _0x79310c}from'ckeditor5/src/utils.js';import{Element as _0x343edc,findAll as _0x39f783,getAttribute as _0x356648,getParents as _0x5f3d60,Document as _0x115def,parse as _0x1683b6,Text as _0x414071}from'../utils/htmlparser.js';import{AIResponseParser as _0x319c6e}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x199385}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x17272e}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0x293809(0xbe),_0x293809(0x87),_0x293809(0xb3),_0x293809(0xad)];export const AI_REPLY_TYPES_IGNORED=[_0x293809(0xcd)];export const AI_REPLY_TITLE_TYPE=_0x293809(0xcd);function _0x4667(_0x1d0153,_0x121efc){const _0x1ff03e=_0x1ff0();return _0x4667=function(_0x4667e9,_0x3ff6cf){_0x4667e9=_0x4667e9-0x82;let _0x3a012e=_0x1ff03e[_0x4667e9];return _0x3a012e;},_0x4667(_0x1d0153,_0x121efc);}export class AIReply extends _0x1b50a2(){['id'];[_0x293809(0x8e)];[_0x293809(0x88)];[_0x293809(0xab)]=[];[_0x293809(0xaa)]=new _0x115def([]);[_0x293809(0x84)]=new _0x115def([]);[_0x293809(0xc6)]=[];[_0x293809(0x96)]=!0x1;[_0x293809(0x94)];[_0x293809(0x9f)];[_0x293809(0xa7)];[_0x293809(0xbd)];constructor({type:_0x59dad2,content:_0x2bb018='',isDone:_0x3f8ba1=!0x1,interactionId:_0xd64245,areActionsDisabled:_0x5e9ae7,documentContextContent:_0x3c44c8,editor:_0x36019a}){const _0x2c31c2=_0x293809;super(),this['id']=_0x79310c(),this[_0x2c31c2(0x8e)]=_0xd64245,this[_0x2c31c2(0x88)]=_0x59dad2,this[_0x2c31c2(0x96)]=!!_0x5e9ae7,this[_0x2c31c2(0xbd)]=_0x36019a,this[_0x2c31c2(0x9f)]=new _0x319c6e(),this[_0x2c31c2(0xa7)]=new _0x199385(),this[_0x2c31c2(0x94)]=_0x1683b6(_0x3c44c8||''),this[_0x2c31c2(0xb4)](_0x2c31c2(0xa9),_0x3f8ba1),this['on'](_0x2c31c2(0x90),()=>{const _0x466991=_0x2c31c2;this[_0x466991(0x9a)]();}),this[_0x2c31c2(0xb4)](_0x2c31c2(0xa6),_0x2bb018);}[_0x293809(0xbf)](_0x257d61){const _0x5f0b86=_0x293809;this[_0x5f0b86(0xb4)](_0x5f0b86(0xa6),this[_0x5f0b86(0xa6)]+_0x257d61);}[_0x293809(0xb7)](){const _0x2d4a25=_0x293809;this[_0x2d4a25(0xa9)]||(this[_0x2d4a25(0xb4)](_0x2d4a25(0xa9),!0x0),this[_0x2d4a25(0x9a)]());}[_0x293809(0xcc)](){const _0x162086=_0x293809;this[_0x162086(0x93)]();}[_0x293809(0xac)](_0x476758,_0x18f1cb){const _0x17c149=_0x293809;this[_0x17c149(0xc6)][_0x476758][_0x17c149(0xc7)]=_0x18f1cb,this[_0x17c149(0xc3)](_0x17c149(0xb5),{'reply':this,'index':_0x476758,'state':_0x18f1cb});}[_0x293809(0x9a)](){const _0x8396b8=_0x293809;if(_0x8396b8(0xbe)===this[_0x8396b8(0x88)]){this[_0x8396b8(0xaa)]=this[_0x8396b8(0x9f)][_0x8396b8(0x8f)](this[_0x8396b8(0xa6)]);const _0x3e7432=this[_0x8396b8(0xc6)];this[_0x8396b8(0xbb)]();const _0x3cb575=this[_0x8396b8(0xca)](_0x3e7432,this[_0x8396b8(0xc6)]);(_0x3cb575[_0x8396b8(0x91)]||this[_0x8396b8(0xa9)])&&this[_0x8396b8(0xc3)](_0x8396b8(0xc5),this,_0x3cb575);}else this[_0x8396b8(0xaa)]=this[_0x8396b8(0x9f)][_0x8396b8(0xc8)](this[_0x8396b8(0xa6)]),this[_0x8396b8(0xc3)](_0x8396b8(0xc5),this);}[_0x293809(0xca)](_0x5c95d3,_0x5eff1f){const _0x94f089=_0x293809,_0x5eae6f=[];for(const _0x50cc28 of _0x5eff1f){const _0x420ef8=_0x5c95d3[_0x50cc28[_0x94f089(0xcf)]];_0x420ef8?_0x420ef8[_0x94f089(0x92)][_0x94f089(0x91)]!==_0x50cc28[_0x94f089(0x92)][_0x94f089(0x91)]?_0x5eae6f[_0x94f089(0xa5)](_0x50cc28):_0x420ef8[_0x94f089(0x92)][_0x94f089(0x9d)]((_0x4c69eb,_0x29a7d6)=>{const _0x3f11e2=_0x94f089,_0x1241fa=_0x50cc28[_0x3f11e2(0x92)][_0x29a7d6];_0x4c69eb['id']!==_0x1241fa['id']&&_0x5eae6f[_0x3f11e2(0xa5)](_0x50cc28);}):_0x5eae6f[_0x94f089(0xa5)](_0x50cc28);}return _0x5eae6f;}[_0x293809(0xbb)](){const _0x2f8e24=_0x293809,_0x3c3a5f=new _0x343edc('p',{},[new _0x343edc(_0x2f8e24(0x99),{'style':_0x2f8e24(0xc9)},[new _0x414071(_0x17272e(this[_0x2f8e24(0xbd)][_0x2f8e24(0x85)],_0x2f8e24(0xb2)))])]),_0x96f71c=this[_0x2f8e24(0xa7)][_0x2f8e24(0xb0)](this[_0x2f8e24(0xaa)],this[_0x2f8e24(0x94)][_0x2f8e24(0x89)](!0x0),{'markUnstableElements':!this[_0x2f8e24(0xa9)],'replaceRemovedWith':_0x3c3a5f,'cutAfterLastChange':!this[_0x2f8e24(0xa9)]});if(!_0x96f71c[_0x2f8e24(0x8b)][_0x2f8e24(0x91)]&&!this[_0x2f8e24(0xa9)])return;this[_0x2f8e24(0x84)]=_0x96f71c[_0x2f8e24(0xaa)];let _0x369017=[];if(_0x39f783(_0xe51af1=>{const _0x5390fe=_0x2f8e24,_0x4dbf26=_0x356648(_0xe51af1,_0x5390fe(0x82));if(!_0x4dbf26||!_0x259baf(_0x4dbf26))return!0x1;const _0x5ad28e=[_0xe51af1,..._0x5f3d60(_0xe51af1)]['at'](-0x2);if(_0xe51af1!=_0x5ad28e){const _0x2d3c9c=_0x356648(_0x5ad28e,_0x5390fe(0x82));_0x259baf(_0x2d3c9c)||(_0x369017[_0x5390fe(0xa5)]({'node':_0x5ad28e,'id':_0x2d3c9c,'type':_0x5390fe(0xae)}),_0x96f71c[_0x5390fe(0x8b)][_0x5390fe(0xa5)](_0x2d3c9c));}else _0x96f71c[_0x5390fe(0x8b)][_0x5390fe(0x98)](_0x4dbf26)?_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0xae),'id':_0x4dbf26}):_0x96f71c[_0x5390fe(0x9c)][_0x5390fe(0x98)](_0x4dbf26)?_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0xc0),'id':_0x4dbf26,'anchorId':_0x356648(_0xe51af1[_0x5390fe(0xa2)],_0x5390fe(0x82))}):_0x369017[_0x5390fe(0xa5)]({'node':_0xe51af1,'type':_0x5390fe(0x9e),'id':_0x4dbf26});return!0x0;},this[_0x2f8e24(0x84)]),_0x369017=_0x369017[_0x2f8e24(0xa0)](({node:_0x259724})=>[..._0x5f3d60(_0x259724),_0x259724][_0x2f8e24(0xbc)](_0x3da2f8=>!_0x356648(_0x3da2f8,_0x2f8e24(0xce)))),0x0==_0x369017[_0x2f8e24(0x91)])return;const _0x4d4520=[[_0x369017[0x0]]];for(let _0x24884e=0x1;_0x24884e<_0x369017[_0x2f8e24(0x91)];_0x24884e++){const _0x4b76d4=_0x4d4520[_0x4d4520[_0x2f8e24(0x91)]-0x1],_0x4f72e8=_0x4b76d4[_0x4b76d4[_0x2f8e24(0x91)]-0x1];_0x369017[_0x24884e][_0x2f8e24(0xb9)][_0x2f8e24(0xa2)]==_0x4f72e8[_0x2f8e24(0xb9)]&&_0x2f8e24(0xae)!=_0x369017[_0x24884e][_0x2f8e24(0x88)]&&_0x2f8e24(0xae)!=_0x4f72e8[_0x2f8e24(0x88)]?_0x4b76d4[_0x2f8e24(0xa5)](_0x369017[_0x24884e]):_0x4d4520[_0x2f8e24(0xa5)]([_0x369017[_0x24884e]]);}for(const _0x3895a0 of _0x4d4520){const _0x1be215=_0x3895a0[0x0],_0x23581d=_0x3895a0[_0x3895a0[_0x2f8e24(0x91)]-0x1],_0x2b90e3=_0x2cdbba(_0x1be215[_0x2f8e24(0xb9)][_0x2f8e24(0xa2)]);_0x2b90e3&&_0x3895a0[_0x2f8e24(0xb8)](_0x2b90e3);const _0x46cc7d=_0x2cdbba(_0x23581d[_0x2f8e24(0xb9)][_0x2f8e24(0xc4)]);_0x46cc7d&&_0x3895a0[_0x2f8e24(0xa5)](_0x46cc7d);}function _0x259baf(_0x3d552b){const _0x202092=_0x2f8e24;return _0x96f71c[_0x202092(0x8b)][_0x202092(0x98)](_0x3d552b)||_0x96f71c[_0x202092(0x9c)][_0x202092(0x98)](_0x3d552b)||_0x96f71c[_0x202092(0x8a)][_0x202092(0x98)](_0x3d552b);}function _0x2cdbba(_0x22baba){const _0x4e298b=_0x2f8e24;if(_0x22baba&&_0x356648(_0x22baba,_0x4e298b(0x82))&&!_0x356648(_0x22baba,_0x4e298b(0xce))){const _0x2979d2=_0x356648(_0x22baba,_0x4e298b(0x82));if(!_0x259baf(_0x2979d2))return{'node':_0x22baba,'type':_0x4e298b(0xcb),'id':_0x2979d2};}return null;}this[_0x2f8e24(0xc6)]=_0x4d4520[_0x2f8e24(0xc2)]((_0x37b4e2,_0x5a0012)=>({'changes':_0x37b4e2,'state':_0x2f8e24(0xb1),'index':_0x5a0012}));}}export function isValidReplyType(_0x1e4a59){const _0x766f1=_0x293809;return Object[_0x766f1(0xa1)](AI_REPLY_TYPES)[_0x766f1(0x98)](_0x1e4a59);}export function isIgnoredReplyType(_0x1f43e0){const _0x25b1ed=_0x293809;return AI_REPLY_TYPES_IGNORED[_0x25b1ed(0x98)](_0x1f43e0);}export function isReplyTitleType(_0x3894a1){return _0x3894a1===AI_REPLY_TITLE_TYPE;}function _0x1ff0(){const _0x459f0b=['editor','modification-delta','appendContent','new','6894348zcTeFe','map','fire','nextSibling','replyContentUpdated','changeGroups','state','convertMarkdownToHTML','color:\x20#808080;\x20font-style:\x20italic','_getDifferentChangeGroups','context','destroy','conversation-title','data-unstable','index','data-id','source','parsedMergedContent','locale','8748Biphxn','text-delta','type','cloneNode','removedNodeIds','modifiedNodeIds','13438728tehbIv','26eMGgEw','interactionId','parseAndNormalizeHTML','change:content','length','changes','stopListening','documentContextContent','15AmdDKl','areActionsDisabled','35516DMhBvD','includes','span','onContentChange','9qTDnkp','newNodeIds','forEach','removed','aiResponseParser','filter','values','previousSibling','7890ADMfoi','7649328HZfWbP','push','content','aiResponseApplier','14237333ZafDXj','isDone','parsedContent','sources','setChangeGroupState','reasoning','modified','5zRreSC','merge','pending','AI_SUGGESTION_CONTENT_PART_REMOVED','web-search','set','replyChangeGroupStateUpdated','7MMiWlT','done','unshift','node','446596tbXnwg','updateChangeGroups','every'];_0x1ff0=function(){return _0x459f0b;};return _0x1ff0();}export function isSourceType(_0xdf7581){const _0x2014b7=_0x293809;return _0x2014b7(0x83)===_0xdf7581;}
23
+ const _0x5e8312=_0xb32d;(function(_0x568367,_0x523757){const _0x57cc26=_0xb32d,_0x2332a6=_0x568367();while(!![]){try{const _0x4503f2=-parseInt(_0x57cc26(0x1bc))/0x1*(parseInt(_0x57cc26(0x1db))/0x2)+parseInt(_0x57cc26(0x1de))/0x3*(parseInt(_0x57cc26(0x19d))/0x4)+-parseInt(_0x57cc26(0x1a5))/0x5+-parseInt(_0x57cc26(0x1b3))/0x6+-parseInt(_0x57cc26(0x1a2))/0x7+parseInt(_0x57cc26(0x1da))/0x8+parseInt(_0x57cc26(0x1c8))/0x9;if(_0x4503f2===_0x523757)break;else _0x2332a6['push'](_0x2332a6['shift']());}catch(_0x5a26b9){_0x2332a6['push'](_0x2332a6['shift']());}}}(_0x57a5,0xbcb02));import{ObservableMixin as _0xe18198,uid as _0x141224}from'ckeditor5/src/utils.js';function _0xb32d(_0x4f544a,_0x58e8d4){const _0x57a573=_0x57a5();return _0xb32d=function(_0xb32de1,_0x26728a){_0xb32de1=_0xb32de1-0x198;let _0x33b37f=_0x57a573[_0xb32de1];return _0x33b37f;},_0xb32d(_0x4f544a,_0x58e8d4);}import{Element as _0x3bc5af,findAll as _0x3eae01,getAttribute as _0x230838,getParents as _0x2ca6bd,Document as _0x259dfa,parse as _0x36d8c9,Text as _0x15ef74}from'../utils/htmlparser.js';import{AIResponseParser as _0x58c20c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x34cfdb}from'../pipeline/airesponseapplier.js';import{getTranslation as _0x4aba17}from'../utils/common-translations.js';export const AI_REPLY_TYPES=[_0x5e8312(0x198),_0x5e8312(0x1c1),_0x5e8312(0x1a4),_0x5e8312(0x1e1)];export const AI_REPLY_TYPES_IGNORED=[_0x5e8312(0x19f)];export const AI_REPLY_TITLE_TYPE=_0x5e8312(0x19f);export class AIReply extends _0xe18198(){['id'];[_0x5e8312(0x1cc)];[_0x5e8312(0x1c0)];[_0x5e8312(0x1d8)]=[];[_0x5e8312(0x1c4)]=new _0x259dfa([]);[_0x5e8312(0x1a7)]=new _0x259dfa([]);[_0x5e8312(0x19b)]=[];[_0x5e8312(0x1ab)]=!0x1;[_0x5e8312(0x1c7)];[_0x5e8312(0x1ae)];[_0x5e8312(0x1cb)];[_0x5e8312(0x1b5)];constructor({type:_0x27a0ca,content:_0x551f9e='',isDone:_0x1ee3a1=!0x1,interactionId:_0x26006e,areActionsDisabled:_0x38fd10,documentContextContent:_0x19557e,editor:_0x50d8c2}){const _0xeef2bb=_0x5e8312;super(),this['id']=_0x141224(),this[_0xeef2bb(0x1cc)]=_0x26006e,this[_0xeef2bb(0x1c0)]=_0x27a0ca,this[_0xeef2bb(0x1ab)]=!!_0x38fd10,this[_0xeef2bb(0x1b5)]=_0x50d8c2,this[_0xeef2bb(0x1ae)]=new _0x58c20c(),this[_0xeef2bb(0x1cb)]=new _0x34cfdb(),this[_0xeef2bb(0x1c7)]=_0x36d8c9(_0x19557e||''),this[_0xeef2bb(0x1c9)](_0xeef2bb(0x1b9),_0x1ee3a1),this['on'](_0xeef2bb(0x1d7),()=>{const _0x19eebc=_0xeef2bb;this[_0x19eebc(0x199)]();}),this[_0xeef2bb(0x1c9)](_0xeef2bb(0x1a6),_0x551f9e);}[_0x5e8312(0x1d6)](_0x4344fd){const _0x137371=_0x5e8312;this[_0x137371(0x1c9)](_0x137371(0x1a6),this[_0x137371(0x1a6)]+_0x4344fd);}[_0x5e8312(0x1a0)](){const _0x387352=_0x5e8312;this[_0x387352(0x1b9)]||(this[_0x387352(0x1c9)](_0x387352(0x1b9),!0x0),this[_0x387352(0x199)]());}[_0x5e8312(0x1d4)](){const _0x46df0d=_0x5e8312;this[_0x46df0d(0x1a8)]();}[_0x5e8312(0x1ad)](_0x5a8651,_0x2552e3){const _0x2df9bb=_0x5e8312;this[_0x2df9bb(0x19b)][_0x5a8651][_0x2df9bb(0x1b7)]=_0x2552e3,this[_0x2df9bb(0x1b6)](_0x2df9bb(0x1dd),{'reply':this,'index':_0x5a8651,'state':_0x2552e3});}[_0x5e8312(0x199)](){const _0x329d26=_0x5e8312;if(_0x329d26(0x198)===this[_0x329d26(0x1c0)]){this[_0x329d26(0x1c4)]=this[_0x329d26(0x1ae)][_0x329d26(0x1cf)](this[_0x329d26(0x1a6)]);const _0x322428=this[_0x329d26(0x19b)];this[_0x329d26(0x1bd)]();const _0x511d74=this[_0x329d26(0x1ac)](_0x322428,this[_0x329d26(0x19b)]);(_0x511d74[_0x329d26(0x1df)]||this[_0x329d26(0x1b9)])&&this[_0x329d26(0x1b6)](_0x329d26(0x1dc),this,_0x511d74);}else this[_0x329d26(0x1c4)]=this[_0x329d26(0x1ae)][_0x329d26(0x1ba)](this[_0x329d26(0x1a6)]),this[_0x329d26(0x1b6)](_0x329d26(0x1dc),this);}[_0x5e8312(0x1ac)](_0x48a48a,_0x4147d8){const _0x45df0f=_0x5e8312,_0xe2f9a1=[];for(const _0x46a7a3 of _0x4147d8){const _0x4a5c55=_0x48a48a[_0x46a7a3[_0x45df0f(0x1c6)]];_0x4a5c55?_0x4a5c55[_0x45df0f(0x1cd)][_0x45df0f(0x1df)]!==_0x46a7a3[_0x45df0f(0x1cd)][_0x45df0f(0x1df)]?_0xe2f9a1[_0x45df0f(0x1b8)](_0x46a7a3):_0x4a5c55[_0x45df0f(0x1cd)][_0x45df0f(0x1d3)]((_0x4c6f7f,_0x190263)=>{const _0x3c8bd4=_0x45df0f,_0x540db6=_0x46a7a3[_0x3c8bd4(0x1cd)][_0x190263];_0x4c6f7f['id']!==_0x540db6['id']&&_0xe2f9a1[_0x3c8bd4(0x1b8)](_0x46a7a3);}):_0xe2f9a1[_0x45df0f(0x1b8)](_0x46a7a3);}return _0xe2f9a1;}[_0x5e8312(0x1bd)](){const _0x5836cd=_0x5e8312,_0x6d197e=new _0x3bc5af('p',{},[new _0x3bc5af(_0x5836cd(0x1c3),{'style':_0x5836cd(0x19c)},[new _0x15ef74(_0x4aba17(this[_0x5836cd(0x1b5)][_0x5836cd(0x1ca)],_0x5836cd(0x1be)))])]),_0x5cc022=this[_0x5836cd(0x1cb)][_0x5836cd(0x1bf)](this[_0x5836cd(0x1c4)],this[_0x5836cd(0x1c7)][_0x5836cd(0x1d5)](!0x0),{'markUnstableElements':!this[_0x5836cd(0x1b9)],'replaceRemovedWith':_0x6d197e,'cutAfterLastChange':!this[_0x5836cd(0x1b9)]});if(!_0x5cc022[_0x5836cd(0x1ce)][_0x5836cd(0x1df)]&&!this[_0x5836cd(0x1b9)])return;this[_0x5836cd(0x1a7)]=_0x5cc022[_0x5836cd(0x1c4)];let _0x237157=[];if(_0x3eae01(_0x1e68c0=>{const _0x20b06f=_0x5836cd,_0x5ddbdc=_0x230838(_0x1e68c0,_0x20b06f(0x1a1));if(!_0x5ddbdc||!_0x2c5381(_0x5ddbdc))return!0x1;const _0x14d4c6=[_0x1e68c0,..._0x2ca6bd(_0x1e68c0)]['at'](-0x2);if(_0x1e68c0!=_0x14d4c6){const _0x238533=_0x230838(_0x14d4c6,_0x20b06f(0x1a1));_0x2c5381(_0x238533)||(_0x237157[_0x20b06f(0x1b8)]({'node':_0x14d4c6,'id':_0x238533,'type':_0x20b06f(0x19a)}),_0x5cc022[_0x20b06f(0x1ce)][_0x20b06f(0x1b8)](_0x238533));}else _0x5cc022[_0x20b06f(0x1ce)][_0x20b06f(0x19e)](_0x5ddbdc)?_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x19a),'id':_0x5ddbdc}):_0x5cc022[_0x20b06f(0x1a9)][_0x20b06f(0x19e)](_0x5ddbdc)?_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x1b4),'id':_0x5ddbdc,'anchorId':_0x230838(_0x1e68c0[_0x20b06f(0x1d2)],_0x20b06f(0x1a1))}):_0x237157[_0x20b06f(0x1b8)]({'node':_0x1e68c0,'type':_0x20b06f(0x1c5),'id':_0x5ddbdc});return!0x0;},this[_0x5836cd(0x1a7)]),_0x237157=_0x237157[_0x5836cd(0x1d9)](({node:_0x1339a6})=>[..._0x2ca6bd(_0x1339a6),_0x1339a6][_0x5836cd(0x1b0)](_0x498f10=>!_0x230838(_0x498f10,_0x5836cd(0x1b1)))),0x0==_0x237157[_0x5836cd(0x1df)])return;const _0x46010e=[[_0x237157[0x0]]];for(let _0x3d602f=0x1;_0x3d602f<_0x237157[_0x5836cd(0x1df)];_0x3d602f++){const _0x3c6646=_0x46010e[_0x46010e[_0x5836cd(0x1df)]-0x1],_0x195caa=_0x3c6646[_0x3c6646[_0x5836cd(0x1df)]-0x1];_0x237157[_0x3d602f][_0x5836cd(0x1c2)][_0x5836cd(0x1d2)]==_0x195caa[_0x5836cd(0x1c2)]&&_0x5836cd(0x19a)!=_0x237157[_0x3d602f][_0x5836cd(0x1c0)]&&_0x5836cd(0x19a)!=_0x195caa[_0x5836cd(0x1c0)]?_0x3c6646[_0x5836cd(0x1b8)](_0x237157[_0x3d602f]):_0x46010e[_0x5836cd(0x1b8)]([_0x237157[_0x3d602f]]);}for(const _0x945e16 of _0x46010e){const _0x201bcf=_0x945e16[0x0],_0x970878=_0x945e16[_0x945e16[_0x5836cd(0x1df)]-0x1],_0x4e14ea=_0x273d3c(_0x201bcf[_0x5836cd(0x1c2)][_0x5836cd(0x1d2)]);_0x4e14ea&&_0x945e16[_0x5836cd(0x1af)](_0x4e14ea);const _0x4a4ae9=_0x273d3c(_0x970878[_0x5836cd(0x1c2)][_0x5836cd(0x1d1)]);_0x4a4ae9&&_0x945e16[_0x5836cd(0x1b8)](_0x4a4ae9);}function _0x2c5381(_0x22f9e2){const _0x581f19=_0x5836cd;return _0x5cc022[_0x581f19(0x1ce)][_0x581f19(0x19e)](_0x22f9e2)||_0x5cc022[_0x581f19(0x1a9)][_0x581f19(0x19e)](_0x22f9e2)||_0x5cc022[_0x581f19(0x1bb)][_0x581f19(0x19e)](_0x22f9e2);}function _0x273d3c(_0x1aaba9){const _0xe15e7a=_0x5836cd;if(_0x1aaba9&&_0x230838(_0x1aaba9,_0xe15e7a(0x1a1))&&!_0x230838(_0x1aaba9,_0xe15e7a(0x1b1))){const _0x435247=_0x230838(_0x1aaba9,_0xe15e7a(0x1a1));if(!_0x2c5381(_0x435247))return{'node':_0x1aaba9,'type':_0xe15e7a(0x1a3),'id':_0x435247};}return null;}this[_0x5836cd(0x19b)]=_0x46010e[_0x5836cd(0x1d0)]((_0x9f821d,_0x5b2ce0)=>({'changes':_0x9f821d,'state':_0x5836cd(0x1aa),'index':_0x5b2ce0}));}}export function isValidReplyType(_0xdf695e){const _0x2c8f0e=_0x5e8312;return Object[_0x2c8f0e(0x1e0)](AI_REPLY_TYPES)[_0x2c8f0e(0x19e)](_0xdf695e);}function _0x57a5(){const _0x1a93b2=['isDone','convertMarkdownToHTML','removedNodeIds','271zxNvUH','updateChangeGroups','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','type','text-delta','node','span','parsedContent','removed','index','documentContextContent','22208634owNdwy','set','locale','aiResponseApplier','interactionId','changes','modifiedNodeIds','parseAndNormalizeHTML','map','nextSibling','previousSibling','forEach','destroy','cloneNode','appendContent','change:content','sources','filter','10743064iIECIz','4966PKfaIN','replyContentUpdated','replyChangeGroupStateUpdated','45VwkMKR','length','values','reasoning','modification-delta','onContentChange','modified','changeGroups','color:\x20#808080;\x20font-style:\x20italic','31468xpEcuU','includes','conversation-title','done','data-id','4541719LLRcdv','context','web-search','2271535oCHPDm','content','parsedMergedContent','stopListening','newNodeIds','pending','areActionsDisabled','_getDifferentChangeGroups','setChangeGroupState','aiResponseParser','unshift','every','data-unstable','source','8277786tretct','new','editor','fire','state','push'];_0x57a5=function(){return _0x1a93b2;};return _0x57a5();}export function isIgnoredReplyType(_0x2f11aa){const _0x2f9ebc=_0x5e8312;return AI_REPLY_TYPES_IGNORED[_0x2f9ebc(0x19e)](_0x2f11aa);}export function isReplyTitleType(_0x55fc5c){return _0x55fc5c===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x51b46c){const _0x11300f=_0x5e8312;return _0x11300f(0x1b2)===_0x51b46c;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38db5d=_0x3233;function _0x3233(_0x17fbc3,_0xa16c40){const _0x4f8360=_0x4f83();return _0x3233=function(_0x323311,_0x4761bf){_0x323311=_0x323311-0x17f;let _0x5174b8=_0x4f8360[_0x323311];return _0x5174b8;},_0x3233(_0x17fbc3,_0xa16c40);}(function(_0x29baae,_0x56b6c5){const _0x4655ea=_0x3233,_0x558aee=_0x29baae();while(!![]){try{const _0x748255=-parseInt(_0x4655ea(0x192))/0x1*(parseInt(_0x4655ea(0x191))/0x2)+parseInt(_0x4655ea(0x18c))/0x3*(-parseInt(_0x4655ea(0x180))/0x4)+parseInt(_0x4655ea(0x190))/0x5+-parseInt(_0x4655ea(0x18b))/0x6*(-parseInt(_0x4655ea(0x1a0))/0x7)+-parseInt(_0x4655ea(0x1a8))/0x8+-parseInt(_0x4655ea(0x197))/0x9+parseInt(_0x4655ea(0x18d))/0xa*(parseInt(_0x4655ea(0x1a7))/0xb);if(_0x748255===_0x56b6c5)break;else _0x558aee['push'](_0x558aee['shift']());}catch(_0x2822c8){_0x558aee['push'](_0x558aee['shift']());}}}(_0x4f83,0xc18d3));function _0x4f83(){const _0x2295b0=['data-unstable','_getUid','trim','_removeSpecialComments','removedIds','replaceRemovedWith','data-wrapped-id','637908OFpNKd','1482NwxoBW','10yYNusi','_findReferenceNode','_markUnstableElements','4970590GSeoMY','4uleFAq','486187xErVtO','_markLastTagElementUnstable','previousSibling','_touchedNodesState','_hasWrappedParent','7498503AwkAgG','reverse','push','merge','markUnstableElementsDepth','afterend','slice','_existingDataIds','new-element','91eTlwpD','_isExistingContentComment','_findPrevElementWithDataId','_insertNodes','_getNodeDataId','_isNewNode','lastTouchedId','24307987pNMIwH','10740616MgCRup','_generateUid','_findNextElementWithDataId','beforebegin','lastChild','_isExistingNode','invalidIds','nodeType','_markWrappedElements','markUnstableElements','_replaceNode','splice','has','indexOf','cutAfterLastChange','_findFallbackReferenceNode','parentNode','forEach','_isDelNode','_storeDeletedElementIds','true','match','childNodes','nextSibling','from','filter','modifiedIds','map','afterbegin','data-id','cloneNode','data-removed','5224uwLzYm','length','newIds','includes'];_0x4f83=function(){return _0x2295b0;};return _0x4f83();}import{ObservableMixin as _0x55715f,uid as _0x7169af}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x5cf85d,findByAttribute as _0x326a2d,getAttribute as _0x1f0838,isComment as _0x5cf372,isTag as _0x268071,insertElement as _0x2b3fa7,moveElement as _0x823ecc,removeElement as _0x56f057,replaceElement as _0x41c414,serialize as _0x2e4f7f,setAttribute as _0x1f0f32,clone as _0x232bc9,findAllComments as _0x49c946,getParents as _0x231981,getNodeNestingLevel as _0x1977b0,areNodesSame as _0x1bfbe1,removeElementsAfter as _0x5dff24}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x55715f(){[_0x38db5d(0x1a9)];[_0x38db5d(0x195)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x38db5d(0x19e)]=new Set();constructor(_0x4886d3){const _0x2a35ed=_0x38db5d;super(),this[_0x2a35ed(0x1a9)]=_0x4886d3||_0x7169af;}[_0x38db5d(0x19a)](_0x223f13,_0x30dec0,_0x1cbe53){const _0x8db97c=_0x38db5d,_0x22df2e=_0x232bc9(_0x223f13);if(0x0===_0x30dec0[_0x8db97c(0x1be)][_0x8db97c(0x181)]){const _0x277b3f=[];return _0x5cf85d(_0x8db97c(0x1c5),_0x8db97c(0x19f),_0x22df2e)[_0x8db97c(0x1b9)](_0x3ee8e2=>{const _0x2ab58e=_0x8db97c,_0x4b5998=this[_0x2ab58e(0x1a9)]();_0x1f0f32(_0x3ee8e2,_0x2ab58e(0x1c5),_0x4b5998),_0x277b3f[_0x2ab58e(0x199)](_0x4b5998);}),this[_0x8db97c(0x187)](_0x22df2e),{'parsedContent':_0x22df2e,'newNodeIds':_0x277b3f,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b1)]&&this[_0x8db97c(0x193)](_0x22df2e),this[_0x8db97c(0x195)][_0x8db97c(0x182)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1c2)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x188)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1ae)]=[],this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]=null,this[_0x8db97c(0x19e)]=new Set(_0x5cf85d(_0x8db97c(0x1c5),null,_0x30dec0)[_0x8db97c(0x1c3)](_0x4adad5=>_0x1f0838(_0x4adad5,_0x8db97c(0x1c5)))[_0x8db97c(0x1c1)](_0x5f1ed4=>!!_0x5f1ed4));let _0x2a5989=-0x1,_0x556956=!0x1;const _0x503b4a=_0x22df2e[_0x8db97c(0x1be)],_0x358754=Array[_0x8db97c(0x1c0)](_0x503b4a)[_0x8db97c(0x1c1)](_0x506d55=>!(0x3===_0x506d55[_0x8db97c(0x1af)]&&''===_0x2e4f7f(_0x506d55)[_0x8db97c(0x186)]())),_0x35371e=_0x358754[_0x8db97c(0x181)];for(let _0x369e22=0x0;_0x369e22<_0x35371e;_0x369e22++){const _0x1e49cb=_0x358754[_0x369e22],_0x5bfb58=_0x358754[_0x369e22+0x1];if(this[_0x8db97c(0x1a5)](_0x1e49cb)){if(-0x1===_0x2a5989&&(_0x2a5989=_0x369e22),this[_0x8db97c(0x1b0)](_0x1e49cb),!this[_0x8db97c(0x1a5)](_0x5bfb58)){const [_0x921fd2,_0x4324cf]=this[_0x8db97c(0x18e)](_0x1e49cb,_0x556956,_0x30dec0);if(_0x921fd2){const _0x282565=Array[_0x8db97c(0x1c0)](_0x358754)[_0x8db97c(0x19d)](_0x2a5989,_0x369e22+0x1);this[_0x8db97c(0x1a3)](_0x921fd2,_0x282565,_0x4324cf),_0x2a5989=-0x1;}}}else{if(this[_0x8db97c(0x1a1)](_0x1e49cb))_0x556956=!0x0;else{if(this[_0x8db97c(0x1ad)](_0x1e49cb)){const _0x14d7cb=_0x1f0838(_0x1e49cb,_0x8db97c(0x1c5));if(_0x14d7cb&&this[_0x8db97c(0x19e)][_0x8db97c(0x1b4)](_0x14d7cb)){const _0x3fbe64=_0x326a2d(_0x8db97c(0x1c5),_0x14d7cb,_0x30dec0);this[_0x8db97c(0x1b2)](_0x3fbe64,_0x1e49cb);}if(this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x183)](_0x14d7cb)){const _0x26b1b5=this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x1b5)](_0x14d7cb);this[_0x8db97c(0x195)][_0x8db97c(0x188)][_0x8db97c(0x1b3)](_0x26b1b5,0x1);}}else{if(this[_0x8db97c(0x1ba)](_0x1e49cb)){const _0x23ef2a=_0x1f0838(_0x1e49cb,_0x8db97c(0x1c5));this[_0x8db97c(0x195)][_0x8db97c(0x1c2)][_0x8db97c(0x183)](_0x23ef2a)||this[_0x8db97c(0x1bb)](_0x1e49cb);}}}}}for(const _0x531595 of this[_0x8db97c(0x195)][_0x8db97c(0x188)]){const _0x5cf25=_0x326a2d(_0x8db97c(0x1c5),_0x531595,_0x30dec0);if(_0x5cf25){if(_0x1cbe53&&_0x1cbe53[_0x8db97c(0x189)]){this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]=_0x531595;const _0x8119ff=_0x1cbe53[_0x8db97c(0x189)][_0x8db97c(0x1c6)](!0x0);_0x1f0f32(_0x8119ff,_0x8db97c(0x1c5),_0x531595),_0x1f0f32(_0x8119ff,_0x8db97c(0x17f),_0x8db97c(0x1bc)),_0x41c414(_0x5cf25,_0x8119ff);}else _0x56f057(_0x5cf25);}}if(_0x5cf85d(_0x8db97c(0x18a),null,_0x30dec0)[_0x8db97c(0x1b9)](_0x37d7fb=>{const _0x36cd96=_0x8db97c,_0x1e9da9=_0x1f0838(_0x37d7fb,_0x36cd96(0x18a)),_0x44c8f5=_0x326a2d(_0x36cd96(0x1c5),_0x1e9da9,_0x30dec0);_0x44c8f5&&_0x823ecc(_0x44c8f5,_0x37d7fb);}),_0x5cf85d(_0x8db97c(0x1c5),_0x8db97c(0x19f),_0x30dec0)[_0x8db97c(0x1b9)](_0x3dea2b=>{const _0x1c312=_0x8db97c,_0x4c44b8=this[_0x1c312(0x185)](_0x3dea2b);_0x1f0f32(_0x3dea2b,_0x1c312(0x1c5),_0x4c44b8),this[_0x1c312(0x195)][_0x1c312(0x182)][_0x1c312(0x199)](_0x4c44b8);}),this[_0x8db97c(0x187)](_0x30dec0),_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b1)]&&this[_0x8db97c(0x18f)](_0x30dec0,_0x1cbe53[_0x8db97c(0x19b)]||0x0),_0x1cbe53&&_0x1cbe53[_0x8db97c(0x1b6)]&&this[_0x8db97c(0x195)][_0x8db97c(0x1a6)]){let _0x3d8fb5=_0x326a2d(_0x8db97c(0x1c5),this[_0x8db97c(0x195)][_0x8db97c(0x1a6)],_0x30dec0);for(;_0x3d8fb5;)_0x5dff24(_0x3d8fb5),_0x3d8fb5=_0x3d8fb5[_0x8db97c(0x1b8)];}return{'parsedContent':_0x30dec0,'newNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x182)],'modifiedNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x1c2)],'removedNodeIds':this[_0x8db97c(0x195)][_0x8db97c(0x188)]};}[_0x38db5d(0x1a3)](_0x2f6a90,_0xca5576,_0xea5978){const _0x41e76b=_0x38db5d;for(const _0x14d64b of _0xca5576){const _0x2395a6=this[_0x41e76b(0x185)](_0x14d64b);_0x1f0f32(_0x14d64b,_0x41e76b(0x1c5),_0x2395a6),this[_0x41e76b(0x195)][_0x41e76b(0x182)][_0x41e76b(0x199)](_0x2395a6),this[_0x41e76b(0x195)][_0x41e76b(0x1a6)]=_0x2395a6;}const _0x1101f2=_0x41e76b(0x1c4)===_0xea5978||_0x41e76b(0x19c)===_0xea5978?_0xca5576[_0x41e76b(0x198)]():_0xca5576;for(const _0x3fb7ca of _0x1101f2)_0x2b3fa7(_0x2f6a90,_0x3fb7ca,_0xea5978);}[_0x38db5d(0x1b2)](_0x14e930,_0x392f85){const _0x5406b6=_0x38db5d;if(!_0x14e930)return;if(_0x1bfbe1(_0x14e930,_0x392f85))return;const _0x54106d=this[_0x5406b6(0x185)](_0x14e930);_0x1f0f32(_0x392f85,_0x5406b6(0x1c5),_0x54106d),this[_0x5406b6(0x195)][_0x5406b6(0x1c2)][_0x5406b6(0x199)](_0x54106d),this[_0x5406b6(0x195)][_0x5406b6(0x1a6)]=_0x54106d,_0x41c414(_0x14e930,_0x392f85[_0x5406b6(0x1c6)](!0x0));}[_0x38db5d(0x18e)](_0x53d7fe,_0x33a7a9,_0x352ccb){const _0x186157=_0x38db5d,_0x47cb76=this[_0x186157(0x1a2)](_0x53d7fe,!0x1);if(_0x47cb76){const _0x5ccb14=this[_0x186157(0x1a4)](_0x47cb76),_0x5d7c1c=_0x326a2d(_0x186157(0x1c5),_0x5ccb14,_0x352ccb);if(_0x5d7c1c)return[_0x5d7c1c,_0x186157(0x19c)];this[_0x186157(0x195)][_0x186157(0x1ae)][_0x186157(0x199)](_0x5ccb14);}const _0x458acb=this[_0x186157(0x1aa)](_0x53d7fe,!0x1);if(_0x458acb){const _0x503bf3=this[_0x186157(0x1a4)](_0x458acb),_0x1857e1=_0x326a2d(_0x186157(0x1c5),_0x503bf3,_0x352ccb);if(_0x1857e1)return[_0x1857e1,_0x186157(0x1ab)];this[_0x186157(0x195)][_0x186157(0x1ae)][_0x186157(0x199)](_0x503bf3);}return _0x33a7a9?_0x53d7fe[_0x186157(0x1bf)]?this[_0x186157(0x1b7)](_0x53d7fe,_0x352ccb):[_0x352ccb[_0x186157(0x1be)][_0x352ccb[_0x186157(0x1be)][_0x186157(0x181)]-0x1],_0x186157(0x19c)]:[_0x352ccb[_0x186157(0x1be)][0x0],_0x186157(0x1ab)];}[_0x38db5d(0x1b7)](_0x25ad15,_0x4d5cbc){const _0x14710e=_0x38db5d,_0x15b799=[],_0xc55f28=this[_0x14710e(0x1a2)](_0x25ad15,!0x0);if(_0xc55f28){const _0x2619ff=this[_0x14710e(0x1a4)](_0xc55f28),_0x5d1c3c=_0x326a2d(_0x14710e(0x1c5),_0x2619ff,_0x4d5cbc);_0x5d1c3c&&_0x15b799[_0x14710e(0x199)]([_0x5d1c3c,_0x14710e(0x19c)]);}const _0x532ec5=this[_0x14710e(0x1aa)](_0x25ad15,!0x0);if(_0x532ec5){const _0x4bce1e=this[_0x14710e(0x1a4)](_0x532ec5),_0x317d7a=_0x326a2d(_0x14710e(0x1c5),_0x4bce1e,_0x4d5cbc);_0x317d7a&&_0x15b799[_0x14710e(0x199)]([_0x317d7a,_0x14710e(0x1ab)]);}if(_0x15b799[_0x14710e(0x181)]>0x1)return _0x1977b0(_0x15b799[0x0][0x0])<=_0x1977b0(_0x15b799[0x1][0x0])?_0x15b799[0x0]:_0x15b799[0x1];return 0x1===_0x15b799[_0x14710e(0x181)]?_0x15b799[0x0]:[_0x4d5cbc[_0x14710e(0x1ac)],_0x14710e(0x19c)];}[_0x38db5d(0x1aa)](_0x2d3bab,_0x41c31b){const _0x70b491=_0x38db5d;let _0x833935=_0x2d3bab[_0x70b491(0x1bf)],_0x82996a=null,_0x15057b=!0x1;for(;_0x833935;){if(_0x5cf372(_0x833935)){if(this[_0x70b491(0x1ba)](_0x833935)&&(_0x82996a=_0x833935),this[_0x70b491(0x1a1)](_0x833935)&&_0x41c31b&&!_0x15057b){_0x15057b=!0x0,_0x833935=_0x833935[_0x70b491(0x1bf)];continue;}break;}const _0x1248e3=_0x1f0838(_0x833935,_0x70b491(0x1c5));if(_0x1248e3&&_0x70b491(0x19f)!==_0x1248e3&&this[_0x70b491(0x19e)][_0x70b491(0x1b4)](_0x1248e3)){_0x82996a=_0x833935;break;}_0x833935=_0x833935[_0x70b491(0x1bf)];}return _0x82996a;}[_0x38db5d(0x1a2)](_0x32f840,_0x1e09db){const _0x47ec6f=_0x38db5d;let _0x4392db=_0x32f840[_0x47ec6f(0x194)],_0x23ef02=null,_0x185553=!0x1;for(;_0x4392db;){if(_0x5cf372(_0x4392db)){if(this[_0x47ec6f(0x1ba)](_0x4392db)&&(_0x23ef02=_0x4392db),this[_0x47ec6f(0x1a1)](_0x4392db)&&_0x1e09db&&!_0x185553){_0x185553=!0x0,_0x4392db=_0x4392db[_0x47ec6f(0x194)];continue;}break;}const _0x1ac9d5=_0x1f0838(_0x4392db,_0x47ec6f(0x1c5));if(_0x1ac9d5&&_0x47ec6f(0x19f)!==_0x1ac9d5&&this[_0x47ec6f(0x19e)][_0x47ec6f(0x1b4)](_0x1ac9d5)){_0x23ef02=_0x4392db;break;}_0x4392db=_0x4392db[_0x47ec6f(0x194)];}return _0x23ef02;}[_0x38db5d(0x1b0)](_0x303b4e){const _0x498533=_0x38db5d;_0x268071(_0x303b4e)&&_0x5cf85d(_0x498533(0x1c5),null,_0x303b4e)[_0x498533(0x1b9)](_0x1e20aa=>{const _0x41f3d7=_0x498533;if(this[_0x41f3d7(0x1ad)](_0x1e20aa)&&!this[_0x41f3d7(0x196)](_0x1e20aa)){const _0x268068=_0x1f0838(_0x1e20aa,_0x41f3d7(0x1c5));_0x1f0f32(_0x1e20aa,_0x41f3d7(0x18a),_0x268068),_0x1f0f32(_0x1e20aa,_0x41f3d7(0x1c5),null);}});}[_0x38db5d(0x1a4)](_0x5c7815){const _0x1a928d=_0x38db5d;if(!_0x5c7815)return null;if(_0x268071(_0x5c7815))return _0x1f0838(_0x5c7815,_0x1a928d(0x1c5));if(_0x5cf372(_0x5c7815)){const _0x4f2159=_0x2e4f7f(_0x5c7815)[_0x1a928d(0x1bd)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4f2159&&_0x4f2159[0x1])return _0x4f2159[0x1];}return null;}[_0x38db5d(0x1bb)](_0x87372b){const _0x16bdef=_0x38db5d;if(_0x5cf372(_0x87372b)){const _0x1b9669=_0x2e4f7f(_0x87372b)[_0x16bdef(0x1bd)](/removed[\s*-]data-id="([^"]+)"/);_0x1b9669&&_0x1b9669[0x1]&&this[_0x16bdef(0x195)][_0x16bdef(0x188)][_0x16bdef(0x199)](_0x1b9669[0x1]);}}[_0x38db5d(0x185)](_0x224052){const _0x1d72c1=_0x38db5d;return this[_0x1d72c1(0x1ad)](_0x224052)?_0x1f0838(_0x224052,_0x1d72c1(0x1c5)):this[_0x1d72c1(0x1a9)]();}[_0x38db5d(0x187)](_0x37f876){const _0x3efe4d=_0x38db5d;_0x49c946(_0x37f876)[_0x3efe4d(0x1c1)](_0x4722de=>this[_0x3efe4d(0x1ba)](_0x4722de)||this[_0x3efe4d(0x1a1)](_0x4722de))[_0x3efe4d(0x1b9)](_0x253cb9=>{_0x56f057(_0x253cb9);});}[_0x38db5d(0x193)](_0x28ae8f){const _0x3480cb=_0x38db5d,_0x484f80=_0x28ae8f[_0x3480cb(0x1be)],_0x41339e=_0x484f80[_0x484f80[_0x3480cb(0x181)]-0x1];_0x41339e&&_0x268071(_0x41339e)&&_0x1f0f32(_0x41339e,_0x3480cb(0x184),_0x3480cb(0x1bc));}[_0x38db5d(0x18f)](_0x1ab2bd,_0x509ebe){const _0x174e8d=_0x38db5d,_0x130af4=_0x326a2d(_0x174e8d(0x184),_0x174e8d(0x1bc),_0x1ab2bd);if(!_0x130af4)return;const _0x1cb6cc=_0x231981(_0x130af4)[_0x174e8d(0x19d)](0x0,-0x1),_0x57c93f=_0x1cb6cc[_0x174e8d(0x181)];let _0x3b961f=_0x130af4;if(_0x57c93f>_0x509ebe){let _0x38a01b=_0x57c93f,_0xcbea3=null;for(;_0x38a01b>_0x509ebe&&_0x38a01b>=0x0;)_0x38a01b--,_0xcbea3=_0x1cb6cc[_0x38a01b];_0xcbea3&&(_0x3b961f=_0xcbea3,_0x1f0f32(_0x130af4,_0x174e8d(0x184),null),_0x1f0f32(_0xcbea3,_0x174e8d(0x184),_0x174e8d(0x1bc)));}else{if(_0x57c93f<_0x509ebe){let _0x37007b=_0x57c93f,_0x3925d5=_0x130af4;for(;_0x37007b<_0x509ebe;){const _0x24db0f=_0x3925d5[_0x174e8d(0x1be)][_0x174e8d(0x1c1)](_0x35d560=>_0x268071(_0x35d560));if(0x0===_0x24db0f[_0x174e8d(0x181)])break;_0x37007b++,_0x3925d5=_0x24db0f[_0x24db0f[_0x174e8d(0x181)]-0x1];}_0x3925d5&&(_0x3b961f=_0x3925d5,_0x1f0f32(_0x130af4,_0x174e8d(0x184),null),_0x1f0f32(_0x3925d5,_0x174e8d(0x184),_0x174e8d(0x1bc)));}}let _0x151652=_0x3b961f;for(;_0x151652;){for(;_0x151652[_0x174e8d(0x1bf)];)_0x151652=_0x151652[_0x174e8d(0x1bf)],_0x268071(_0x151652)&&_0x1f0f32(_0x151652,_0x174e8d(0x184),_0x174e8d(0x1bc));_0x151652=_0x151652[_0x174e8d(0x1b8)];}}[_0x38db5d(0x1a5)](_0x3926c1){const _0x3abf73=_0x38db5d;return Boolean(_0x3abf73(0x19f)===_0x1f0838(_0x3926c1,_0x3abf73(0x1c5)));}[_0x38db5d(0x1ad)](_0x4d887e){const _0x157cab=_0x38db5d;return Boolean((_0x1f0838(_0x4d887e,_0x157cab(0x1c5))||'')[_0x157cab(0x181)]>0x0&&_0x157cab(0x19f)!==_0x1f0838(_0x4d887e,_0x157cab(0x1c5)));}[_0x38db5d(0x1ba)](_0x481696){const _0x1743c8=_0x38db5d;return!!_0x481696&&Boolean(_0x5cf372(_0x481696)&&_0x2e4f7f(_0x481696)[_0x1743c8(0x1bd)](/removed[\s*-]data-id="[^"]+"/));}[_0x38db5d(0x196)](_0x3d92bc){const _0x40a410=_0x38db5d;let _0x227a35=_0x3d92bc[_0x40a410(0x1b8)];for(;_0x227a35;){if(_0x1f0838(_0x227a35,_0x40a410(0x18a)))return!0x0;_0x227a35=_0x227a35[_0x40a410(0x1b8)];}return!0x1;}[_0x38db5d(0x1a1)](_0x1d3a33){const _0x32a896=_0x38db5d;return Boolean(_0x5cf372(_0x1d3a33)&&_0x2e4f7f(_0x1d3a33)[_0x32a896(0x1bd)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x53e9b3=_0xfdf1;(function(_0x46cc36,_0x37feca){const _0x44827c=_0xfdf1,_0x4377bb=_0x46cc36();while(!![]){try{const _0x2e55f2=-parseInt(_0x44827c(0x1eb))/0x1*(parseInt(_0x44827c(0x1d9))/0x2)+-parseInt(_0x44827c(0x1db))/0x3*(-parseInt(_0x44827c(0x21b))/0x4)+parseInt(_0x44827c(0x218))/0x5*(parseInt(_0x44827c(0x209))/0x6)+-parseInt(_0x44827c(0x1d8))/0x7+parseInt(_0x44827c(0x201))/0x8+-parseInt(_0x44827c(0x208))/0x9+-parseInt(_0x44827c(0x20e))/0xa*(-parseInt(_0x44827c(0x219))/0xb);if(_0x2e55f2===_0x37feca)break;else _0x4377bb['push'](_0x4377bb['shift']());}catch(_0x51d54f){_0x4377bb['push'](_0x4377bb['shift']());}}}(_0x5b42,0xd05e6));import{ObservableMixin as _0x31e9ad,uid as _0x1fe7d7}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x21474a,findByAttribute as _0x57a16a,getAttribute as _0x3fdc9a,isComment as _0x167826,isTag as _0x424e03,insertElement as _0x15f7b0,moveElement as _0x2e3c39,removeElement as _0x18910e,replaceElement as _0x4cf0df,serialize as _0x2ea88e,setAttribute as _0x7f5f65,clone as _0x4fd544,findAllComments as _0x3efd16,getParents as _0x3937aa,getNodeNestingLevel as _0x55121a,areNodesSame as _0x3b433b,removeElementsAfter as _0x39759e}from'../utils/htmlparser.js';function _0x5b42(){const _0x3bae62=['markUnstableElementsDepth','filter','match','nodeType','8175112QRRGTV','merge','_removeSpecialComments','_storeDeletedElementIds','indexOf','cloneNode','push','11184777dRRdsF','12aWIGYs','true','includes','map','forEach','33850pPAkZw','previousSibling','afterend','_generateUid','splice','lastChild','_isExistingNode','_touchedNodesState','new-element','trim','613385CuvEAm','8129ievyMX','markUnstableElements','28qeqIrz','data-removed','slice','removedIds','_hasWrappedParent','6844124qvDSAm','2SqhYuW','replaceRemovedWith','242832eGxzDv','_getNodeDataId','_findReferenceNode','from','invalidIds','cutAfterLastChange','has','_isNewNode','beforebegin','childNodes','_replaceNode','data-unstable','_existingDataIds','newIds','afterbegin','_markLastTagElementUnstable','1261403XbkdPe','_isExistingContentComment','_findFallbackReferenceNode','data-wrapped-id','reverse','_findPrevElementWithDataId','length','_markWrappedElements','nextSibling','_isDelNode','data-id','_markUnstableElements','lastTouchedId','modifiedIds','_getUid','_findNextElementWithDataId','parentNode','_insertNodes'];_0x5b42=function(){return _0x3bae62;};return _0x5b42();}function _0xfdf1(_0x594f1a,_0xbe79ab){const _0x5b4224=_0x5b42();return _0xfdf1=function(_0xfdf139,_0x183288){_0xfdf139=_0xfdf139-0x1d8;let _0xc85e49=_0x5b4224[_0xfdf139];return _0xc85e49;},_0xfdf1(_0x594f1a,_0xbe79ab);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x31e9ad(){[_0x53e9b3(0x211)];[_0x53e9b3(0x215)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x53e9b3(0x1e7)]=new Set();constructor(_0x45b7ce){const _0x432129=_0x53e9b3;super(),this[_0x432129(0x211)]=_0x45b7ce||_0x1fe7d7;}[_0x53e9b3(0x202)](_0x2f9fe1,_0x2c8e0c,_0x3569f6){const _0x4e61ca=_0x53e9b3,_0x1994d3=_0x4fd544(_0x2f9fe1);if(0x0===_0x2c8e0c[_0x4e61ca(0x1e4)][_0x4e61ca(0x1f1)]){const _0x5656b6=[];return _0x21474a(_0x4e61ca(0x1f5),_0x4e61ca(0x216),_0x1994d3)[_0x4e61ca(0x20d)](_0x15b074=>{const _0x4ea810=_0x4e61ca,_0x426e12=this[_0x4ea810(0x211)]();_0x7f5f65(_0x15b074,_0x4ea810(0x1f5),_0x426e12),_0x5656b6[_0x4ea810(0x207)](_0x426e12);}),this[_0x4e61ca(0x203)](_0x1994d3),{'parsedContent':_0x1994d3,'newNodeIds':_0x5656b6,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x3569f6&&_0x3569f6[_0x4e61ca(0x21a)]&&this[_0x4e61ca(0x1ea)](_0x1994d3),this[_0x4e61ca(0x215)][_0x4e61ca(0x1e8)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1df)]=[],this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]=null,this[_0x4e61ca(0x1e7)]=new Set(_0x21474a(_0x4e61ca(0x1f5),null,_0x2c8e0c)[_0x4e61ca(0x20c)](_0x5795bd=>_0x3fdc9a(_0x5795bd,_0x4e61ca(0x1f5)))[_0x4e61ca(0x1fe)](_0x542995=>!!_0x542995));let _0x12d81d=-0x1,_0x544f84=!0x1;const _0x5b49a9=_0x1994d3[_0x4e61ca(0x1e4)],_0x17650e=Array[_0x4e61ca(0x1de)](_0x5b49a9)[_0x4e61ca(0x1fe)](_0x4b05cd=>!(0x3===_0x4b05cd[_0x4e61ca(0x200)]&&''===_0x2ea88e(_0x4b05cd)[_0x4e61ca(0x217)]())),_0x204a99=_0x17650e[_0x4e61ca(0x1f1)];for(let _0x5410b2=0x0;_0x5410b2<_0x204a99;_0x5410b2++){const _0x28b394=_0x17650e[_0x5410b2],_0x2f7e68=_0x17650e[_0x5410b2+0x1];if(this[_0x4e61ca(0x1e2)](_0x28b394)){if(-0x1===_0x12d81d&&(_0x12d81d=_0x5410b2),this[_0x4e61ca(0x1f2)](_0x28b394),!this[_0x4e61ca(0x1e2)](_0x2f7e68)){const [_0x3580c7,_0x52df17]=this[_0x4e61ca(0x1dd)](_0x28b394,_0x544f84,_0x2c8e0c);if(_0x3580c7){const _0x4ff944=Array[_0x4e61ca(0x1de)](_0x17650e)[_0x4e61ca(0x21d)](_0x12d81d,_0x5410b2+0x1);this[_0x4e61ca(0x1fc)](_0x3580c7,_0x4ff944,_0x52df17),_0x12d81d=-0x1;}}}else{if(this[_0x4e61ca(0x1ec)](_0x28b394))_0x544f84=!0x0;else{if(this[_0x4e61ca(0x214)](_0x28b394)){const _0x34edb5=_0x3fdc9a(_0x28b394,_0x4e61ca(0x1f5));if(_0x34edb5&&this[_0x4e61ca(0x1e7)][_0x4e61ca(0x1e1)](_0x34edb5)){const _0x3c6056=_0x57a16a(_0x4e61ca(0x1f5),_0x34edb5,_0x2c8e0c);this[_0x4e61ca(0x1e5)](_0x3c6056,_0x28b394);}if(this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x20b)](_0x34edb5)){const _0x39dab3=this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x205)](_0x34edb5);this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)][_0x4e61ca(0x212)](_0x39dab3,0x1);}}else{if(this[_0x4e61ca(0x1f4)](_0x28b394)){const _0x27c944=_0x3fdc9a(_0x28b394,_0x4e61ca(0x1f5));this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)][_0x4e61ca(0x20b)](_0x27c944)||this[_0x4e61ca(0x204)](_0x28b394);}}}}}for(const _0x1af400 of this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]){const _0x17d3d4=_0x57a16a(_0x4e61ca(0x1f5),_0x1af400,_0x2c8e0c);if(_0x17d3d4){if(_0x3569f6&&_0x3569f6[_0x4e61ca(0x1da)]){this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]=_0x1af400;const _0x251251=_0x3569f6[_0x4e61ca(0x1da)][_0x4e61ca(0x206)](!0x0);_0x7f5f65(_0x251251,_0x4e61ca(0x1f5),_0x1af400),_0x7f5f65(_0x251251,_0x4e61ca(0x21c),_0x4e61ca(0x20a)),_0x4cf0df(_0x17d3d4,_0x251251);}else _0x18910e(_0x17d3d4);}}if(_0x21474a(_0x4e61ca(0x1ee),null,_0x2c8e0c)[_0x4e61ca(0x20d)](_0x17174a=>{const _0x876d18=_0x4e61ca,_0x575dee=_0x3fdc9a(_0x17174a,_0x876d18(0x1ee)),_0x3fac4c=_0x57a16a(_0x876d18(0x1f5),_0x575dee,_0x2c8e0c);_0x3fac4c&&_0x2e3c39(_0x3fac4c,_0x17174a);}),_0x21474a(_0x4e61ca(0x1f5),_0x4e61ca(0x216),_0x2c8e0c)[_0x4e61ca(0x20d)](_0x11d383=>{const _0x426ad3=_0x4e61ca,_0x3ee3a7=this[_0x426ad3(0x1f9)](_0x11d383);_0x7f5f65(_0x11d383,_0x426ad3(0x1f5),_0x3ee3a7),this[_0x426ad3(0x215)][_0x426ad3(0x1e8)][_0x426ad3(0x207)](_0x3ee3a7);}),this[_0x4e61ca(0x203)](_0x2c8e0c),_0x3569f6&&_0x3569f6[_0x4e61ca(0x21a)]&&this[_0x4e61ca(0x1f6)](_0x2c8e0c,_0x3569f6[_0x4e61ca(0x1fd)]||0x0),_0x3569f6&&_0x3569f6[_0x4e61ca(0x1e0)]&&this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)]){let _0x4f1486=_0x57a16a(_0x4e61ca(0x1f5),this[_0x4e61ca(0x215)][_0x4e61ca(0x1f7)],_0x2c8e0c);for(;_0x4f1486;)_0x39759e(_0x4f1486),_0x4f1486=_0x4f1486[_0x4e61ca(0x1fb)];}return{'parsedContent':_0x2c8e0c,'newNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x1e8)],'modifiedNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x1f8)],'removedNodeIds':this[_0x4e61ca(0x215)][_0x4e61ca(0x21e)]};}[_0x53e9b3(0x1fc)](_0x445bcf,_0x141feb,_0x3d9c6e){const _0x5e89f3=_0x53e9b3;for(const _0x341351 of _0x141feb){const _0x4402e6=this[_0x5e89f3(0x1f9)](_0x341351);_0x7f5f65(_0x341351,_0x5e89f3(0x1f5),_0x4402e6),this[_0x5e89f3(0x215)][_0x5e89f3(0x1e8)][_0x5e89f3(0x207)](_0x4402e6),this[_0x5e89f3(0x215)][_0x5e89f3(0x1f7)]=_0x4402e6;}const _0x3ae653=_0x5e89f3(0x1e9)===_0x3d9c6e||_0x5e89f3(0x210)===_0x3d9c6e?_0x141feb[_0x5e89f3(0x1ef)]():_0x141feb;for(const _0x393c21 of _0x3ae653)_0x15f7b0(_0x445bcf,_0x393c21,_0x3d9c6e);}[_0x53e9b3(0x1e5)](_0x2688ff,_0x4247af){const _0xed1397=_0x53e9b3;if(!_0x2688ff)return;if(_0x3b433b(_0x2688ff,_0x4247af))return;const _0x2260fe=this[_0xed1397(0x1f9)](_0x2688ff);_0x7f5f65(_0x4247af,_0xed1397(0x1f5),_0x2260fe),this[_0xed1397(0x215)][_0xed1397(0x1f8)][_0xed1397(0x207)](_0x2260fe),this[_0xed1397(0x215)][_0xed1397(0x1f7)]=_0x2260fe,_0x4cf0df(_0x2688ff,_0x4247af[_0xed1397(0x206)](!0x0));}[_0x53e9b3(0x1dd)](_0x3f9380,_0x220930,_0x1e5ae3){const _0x528fd9=_0x53e9b3,_0xd69bb6=this[_0x528fd9(0x1f0)](_0x3f9380,!0x1);if(_0xd69bb6){const _0x737b99=this[_0x528fd9(0x1dc)](_0xd69bb6),_0x132faa=_0x57a16a(_0x528fd9(0x1f5),_0x737b99,_0x1e5ae3);if(_0x132faa)return[_0x132faa,_0x528fd9(0x210)];this[_0x528fd9(0x215)][_0x528fd9(0x1df)][_0x528fd9(0x207)](_0x737b99);}const _0x5a1001=this[_0x528fd9(0x1fa)](_0x3f9380,!0x1);if(_0x5a1001){const _0x56080b=this[_0x528fd9(0x1dc)](_0x5a1001),_0x4930bd=_0x57a16a(_0x528fd9(0x1f5),_0x56080b,_0x1e5ae3);if(_0x4930bd)return[_0x4930bd,_0x528fd9(0x1e3)];this[_0x528fd9(0x215)][_0x528fd9(0x1df)][_0x528fd9(0x207)](_0x56080b);}return _0x220930?_0x3f9380[_0x528fd9(0x1f3)]?this[_0x528fd9(0x1ed)](_0x3f9380,_0x1e5ae3):[_0x1e5ae3[_0x528fd9(0x1e4)][_0x1e5ae3[_0x528fd9(0x1e4)][_0x528fd9(0x1f1)]-0x1],_0x528fd9(0x210)]:[_0x1e5ae3[_0x528fd9(0x1e4)][0x0],_0x528fd9(0x1e3)];}[_0x53e9b3(0x1ed)](_0xd7384b,_0x3b312e){const _0x1a6196=_0x53e9b3,_0x205fd3=[],_0x45d264=this[_0x1a6196(0x1f0)](_0xd7384b,!0x0);if(_0x45d264){const _0x4c9702=this[_0x1a6196(0x1dc)](_0x45d264),_0x48d941=_0x57a16a(_0x1a6196(0x1f5),_0x4c9702,_0x3b312e);_0x48d941&&_0x205fd3[_0x1a6196(0x207)]([_0x48d941,_0x1a6196(0x210)]);}const _0x2dcd74=this[_0x1a6196(0x1fa)](_0xd7384b,!0x0);if(_0x2dcd74){const _0x390113=this[_0x1a6196(0x1dc)](_0x2dcd74),_0x1f0e59=_0x57a16a(_0x1a6196(0x1f5),_0x390113,_0x3b312e);_0x1f0e59&&_0x205fd3[_0x1a6196(0x207)]([_0x1f0e59,_0x1a6196(0x1e3)]);}if(_0x205fd3[_0x1a6196(0x1f1)]>0x1)return _0x55121a(_0x205fd3[0x0][0x0])<=_0x55121a(_0x205fd3[0x1][0x0])?_0x205fd3[0x0]:_0x205fd3[0x1];return 0x1===_0x205fd3[_0x1a6196(0x1f1)]?_0x205fd3[0x0]:[_0x3b312e[_0x1a6196(0x213)],_0x1a6196(0x210)];}[_0x53e9b3(0x1fa)](_0x26429d,_0x565d3e){const _0x2aaf1b=_0x53e9b3;let _0x1247ed=_0x26429d[_0x2aaf1b(0x1f3)],_0x1aab7b=null,_0x12226b=!0x1;for(;_0x1247ed;){if(_0x167826(_0x1247ed)){if(this[_0x2aaf1b(0x1f4)](_0x1247ed)&&(_0x1aab7b=_0x1247ed),this[_0x2aaf1b(0x1ec)](_0x1247ed)&&_0x565d3e&&!_0x12226b){_0x12226b=!0x0,_0x1247ed=_0x1247ed[_0x2aaf1b(0x1f3)];continue;}break;}const _0xe4898a=_0x3fdc9a(_0x1247ed,_0x2aaf1b(0x1f5));if(_0xe4898a&&_0x2aaf1b(0x216)!==_0xe4898a&&this[_0x2aaf1b(0x1e7)][_0x2aaf1b(0x1e1)](_0xe4898a)){_0x1aab7b=_0x1247ed;break;}_0x1247ed=_0x1247ed[_0x2aaf1b(0x1f3)];}return _0x1aab7b;}[_0x53e9b3(0x1f0)](_0x12eb55,_0x167b5b){const _0x592fe9=_0x53e9b3;let _0x2ca944=_0x12eb55[_0x592fe9(0x20f)],_0x2d8ef9=null,_0x38f4c6=!0x1;for(;_0x2ca944;){if(_0x167826(_0x2ca944)){if(this[_0x592fe9(0x1f4)](_0x2ca944)&&(_0x2d8ef9=_0x2ca944),this[_0x592fe9(0x1ec)](_0x2ca944)&&_0x167b5b&&!_0x38f4c6){_0x38f4c6=!0x0,_0x2ca944=_0x2ca944[_0x592fe9(0x20f)];continue;}break;}const _0x4ac1d4=_0x3fdc9a(_0x2ca944,_0x592fe9(0x1f5));if(_0x4ac1d4&&_0x592fe9(0x216)!==_0x4ac1d4&&this[_0x592fe9(0x1e7)][_0x592fe9(0x1e1)](_0x4ac1d4)){_0x2d8ef9=_0x2ca944;break;}_0x2ca944=_0x2ca944[_0x592fe9(0x20f)];}return _0x2d8ef9;}[_0x53e9b3(0x1f2)](_0x4856c9){const _0x275387=_0x53e9b3;_0x424e03(_0x4856c9)&&_0x21474a(_0x275387(0x1f5),null,_0x4856c9)[_0x275387(0x20d)](_0xc421e7=>{const _0xbbb066=_0x275387;if(this[_0xbbb066(0x214)](_0xc421e7)&&!this[_0xbbb066(0x21f)](_0xc421e7)){const _0x360b7b=_0x3fdc9a(_0xc421e7,_0xbbb066(0x1f5));_0x7f5f65(_0xc421e7,_0xbbb066(0x1ee),_0x360b7b),_0x7f5f65(_0xc421e7,_0xbbb066(0x1f5),null);}});}[_0x53e9b3(0x1dc)](_0x19a61a){const _0x156afc=_0x53e9b3;if(!_0x19a61a)return null;if(_0x424e03(_0x19a61a))return _0x3fdc9a(_0x19a61a,_0x156afc(0x1f5));if(_0x167826(_0x19a61a)){const _0x1cac9b=_0x2ea88e(_0x19a61a)[_0x156afc(0x1ff)](/removed[\s*-]data-id="([^"]+)"/);if(_0x1cac9b&&_0x1cac9b[0x1])return _0x1cac9b[0x1];}return null;}[_0x53e9b3(0x204)](_0x2f7d42){const _0x595e48=_0x53e9b3;if(_0x167826(_0x2f7d42)){const _0x1574ec=_0x2ea88e(_0x2f7d42)[_0x595e48(0x1ff)](/removed[\s*-]data-id="([^"]+)"/);_0x1574ec&&_0x1574ec[0x1]&&this[_0x595e48(0x215)][_0x595e48(0x21e)][_0x595e48(0x207)](_0x1574ec[0x1]);}}[_0x53e9b3(0x1f9)](_0x4dd8b3){const _0x70498b=_0x53e9b3;return this[_0x70498b(0x214)](_0x4dd8b3)?_0x3fdc9a(_0x4dd8b3,_0x70498b(0x1f5)):this[_0x70498b(0x211)]();}[_0x53e9b3(0x203)](_0x1a7e4a){const _0x1499ca=_0x53e9b3;_0x3efd16(_0x1a7e4a)[_0x1499ca(0x1fe)](_0x3310bd=>this[_0x1499ca(0x1f4)](_0x3310bd)||this[_0x1499ca(0x1ec)](_0x3310bd))[_0x1499ca(0x20d)](_0x183737=>{_0x18910e(_0x183737);});}[_0x53e9b3(0x1ea)](_0x4d98ea){const _0x3099be=_0x53e9b3,_0x1b76fd=_0x4d98ea[_0x3099be(0x1e4)],_0x429fb0=_0x1b76fd[_0x1b76fd[_0x3099be(0x1f1)]-0x1];_0x429fb0&&_0x424e03(_0x429fb0)&&_0x7f5f65(_0x429fb0,_0x3099be(0x1e6),_0x3099be(0x20a));}[_0x53e9b3(0x1f6)](_0x172d71,_0x1d7afc){const _0x8e3d33=_0x53e9b3,_0xda42dc=_0x57a16a(_0x8e3d33(0x1e6),_0x8e3d33(0x20a),_0x172d71);if(!_0xda42dc)return;const _0x42c7d9=_0x3937aa(_0xda42dc)[_0x8e3d33(0x21d)](0x0,-0x1),_0x42b397=_0x42c7d9[_0x8e3d33(0x1f1)];let _0x455023=_0xda42dc;if(_0x42b397>_0x1d7afc){let _0x26c2a5=_0x42b397,_0x6a0243=null;for(;_0x26c2a5>_0x1d7afc&&_0x26c2a5>=0x0;)_0x26c2a5--,_0x6a0243=_0x42c7d9[_0x26c2a5];_0x6a0243&&(_0x455023=_0x6a0243,_0x7f5f65(_0xda42dc,_0x8e3d33(0x1e6),null),_0x7f5f65(_0x6a0243,_0x8e3d33(0x1e6),_0x8e3d33(0x20a)));}else{if(_0x42b397<_0x1d7afc){let _0x3f3941=_0x42b397,_0x157260=_0xda42dc;for(;_0x3f3941<_0x1d7afc;){const _0x1b75ca=_0x157260[_0x8e3d33(0x1e4)][_0x8e3d33(0x1fe)](_0x57f59a=>_0x424e03(_0x57f59a));if(0x0===_0x1b75ca[_0x8e3d33(0x1f1)])break;_0x3f3941++,_0x157260=_0x1b75ca[_0x1b75ca[_0x8e3d33(0x1f1)]-0x1];}_0x157260&&(_0x455023=_0x157260,_0x7f5f65(_0xda42dc,_0x8e3d33(0x1e6),null),_0x7f5f65(_0x157260,_0x8e3d33(0x1e6),_0x8e3d33(0x20a)));}}let _0x101763=_0x455023;for(;_0x101763;){for(;_0x101763[_0x8e3d33(0x1f3)];)_0x101763=_0x101763[_0x8e3d33(0x1f3)],_0x424e03(_0x101763)&&_0x7f5f65(_0x101763,_0x8e3d33(0x1e6),_0x8e3d33(0x20a));_0x101763=_0x101763[_0x8e3d33(0x1fb)];}}[_0x53e9b3(0x1e2)](_0x48fadf){const _0x14fdb0=_0x53e9b3;return Boolean(_0x14fdb0(0x216)===_0x3fdc9a(_0x48fadf,_0x14fdb0(0x1f5)));}[_0x53e9b3(0x214)](_0x218c18){const _0x3c418d=_0x53e9b3;return Boolean((_0x3fdc9a(_0x218c18,_0x3c418d(0x1f5))||'')[_0x3c418d(0x1f1)]>0x0&&_0x3c418d(0x216)!==_0x3fdc9a(_0x218c18,_0x3c418d(0x1f5)));}[_0x53e9b3(0x1f4)](_0x1c812f){const _0x1e4d4e=_0x53e9b3;return!!_0x1c812f&&Boolean(_0x167826(_0x1c812f)&&_0x2ea88e(_0x1c812f)[_0x1e4d4e(0x1ff)](/removed[\s*-]data-id="[^"]+"/));}[_0x53e9b3(0x21f)](_0x558fcb){const _0x254299=_0x53e9b3;let _0x5d2d19=_0x558fcb[_0x254299(0x1fb)];for(;_0x5d2d19;){if(_0x3fdc9a(_0x5d2d19,_0x254299(0x1ee)))return!0x0;_0x5d2d19=_0x5d2d19[_0x254299(0x1fb)];}return!0x1;}[_0x53e9b3(0x1ec)](_0x3a3aa8){const _0x327aa4=_0x53e9b3;return Boolean(_0x167826(_0x3a3aa8)&&_0x2ea88e(_0x3a3aa8)[_0x327aa4(0x1ff)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4606bc=_0x4b86;(function(_0x537eb2,_0x4a3b06){const _0x555c21=_0x4b86,_0x3199f6=_0x537eb2();while(!![]){try{const _0x2c4088=-parseInt(_0x555c21(0x84))/0x1*(parseInt(_0x555c21(0x81))/0x2)+parseInt(_0x555c21(0x7a))/0x3+parseInt(_0x555c21(0x7b))/0x4*(-parseInt(_0x555c21(0x77))/0x5)+parseInt(_0x555c21(0x82))/0x6+parseInt(_0x555c21(0x7d))/0x7+parseInt(_0x555c21(0x7e))/0x8*(parseInt(_0x555c21(0x73))/0x9)+-parseInt(_0x555c21(0x74))/0xa*(-parseInt(_0x555c21(0x7c))/0xb);if(_0x2c4088===_0x4a3b06)break;else _0x3199f6['push'](_0x3199f6['shift']());}catch(_0x1cefdb){_0x3199f6['push'](_0x3199f6['shift']());}}}(_0x115f,0xba1ff));function _0x115f(){const _0x50d61b=['826021kofmew','3638888RJENuL','_m2html','_parseHTML','1194696nWsqLa','6736182rvONDb','parseAndNormalizeHTML','1GmZkPq','parse','replace','9DIOhFI','209980vPZoUn','children','</dummy>','15xYLptQ','<dummy>','convertMarkdownToHTML','1910022foPzHi','1772648eVNUAl','187bgbJNi'];_0x115f=function(){return _0x50d61b;};return _0x115f();}import{ObservableMixin as _0x466cd3}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x3e7d7c}from'@ckeditor/ckeditor5-markdown-gfm';function _0x4b86(_0x3f1e6d,_0x216f02){const _0x115fd1=_0x115f();return _0x4b86=function(_0x4b869a,_0x6d9535){_0x4b869a=_0x4b869a-0x73;let _0x5b2217=_0x115fd1[_0x4b869a];return _0x5b2217;},_0x4b86(_0x3f1e6d,_0x216f02);}import{parse as _0xc43f39}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x466cd3(){[_0x4606bc(0x7f)];constructor(){const _0x22b6be=_0x4606bc;super(),this[_0x22b6be(0x7f)]=new _0x3e7d7c();}[_0x4606bc(0x79)](_0x482dea){const _0x3e14ce=_0x4606bc,_0x58ebf9=this[_0x3e14ce(0x7f)][_0x3e14ce(0x85)](_0x482dea);return this[_0x3e14ce(0x83)](_0x58ebf9);}[_0x4606bc(0x83)](_0x234b98){const _0x24271d=_0x4606bc;return this[_0x24271d(0x80)](_0x234b98);}[_0x4606bc(0x80)](_0x373c56){const _0x3a606a=_0x4606bc,_0x1940be=_0x373c56[_0x3a606a(0x86)](/^\t+/gm,'\x20')[_0x3a606a(0x86)](/\n*/g,'')[_0x3a606a(0x86)](/\s+/g,'\x20')[_0x3a606a(0x86)](/<[^>]*?$/g,''),_0x3f8c71=_0xc43f39(_0x3a606a(0x78)+_0x1940be+_0x3a606a(0x76));return _0x3f8c71[_0x3a606a(0x75)]=_0x3f8c71[_0x3a606a(0x75)][0x0][_0x3a606a(0x75)],_0x3f8c71;}}
23
+ const _0x1580eb=_0x4ec0;function _0x4ec0(_0x535531,_0x4257dd){const _0x4c9028=_0x4c90();return _0x4ec0=function(_0x4ec047,_0x817af1){_0x4ec047=_0x4ec047-0x1ec;let _0x3d485c=_0x4c9028[_0x4ec047];return _0x3d485c;},_0x4ec0(_0x535531,_0x4257dd);}(function(_0x251092,_0x5265b7){const _0x3c69c5=_0x4ec0,_0x412fa0=_0x251092();while(!![]){try{const _0x98dc98=-parseInt(_0x3c69c5(0x1fc))/0x1*(-parseInt(_0x3c69c5(0x1fb))/0x2)+-parseInt(_0x3c69c5(0x1f1))/0x3+-parseInt(_0x3c69c5(0x1fe))/0x4+parseInt(_0x3c69c5(0x1ec))/0x5+parseInt(_0x3c69c5(0x1fa))/0x6*(parseInt(_0x3c69c5(0x1ef))/0x7)+parseInt(_0x3c69c5(0x1ff))/0x8*(parseInt(_0x3c69c5(0x1f6))/0x9)+-parseInt(_0x3c69c5(0x1fd))/0xa*(parseInt(_0x3c69c5(0x1ed))/0xb);if(_0x98dc98===_0x5265b7)break;else _0x412fa0['push'](_0x412fa0['shift']());}catch(_0x12e72f){_0x412fa0['push'](_0x412fa0['shift']());}}}(_0x4c90,0x1ad75));function _0x4c90(){const _0x4a219d=['children','28635SralZh','<dummy>','convertMarkdownToHTML','parseAndNormalizeHTML','_m2html','5931RURThO','</dummy>','replace','_parseHTML','12xTpgkB','2462FAEaLY','159tLsJwI','2690wtuxgh','176276WCUJZz','488fZyZZC','114100hDbiXO','9449bmekPJ','parse','475573NcXntw'];_0x4c90=function(){return _0x4a219d;};return _0x4c90();}import{ObservableMixin as _0x245374}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x27ef87}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x124df2}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x245374(){[_0x1580eb(0x1f5)];constructor(){const _0x4f8206=_0x1580eb;super(),this[_0x4f8206(0x1f5)]=new _0x27ef87();}[_0x1580eb(0x1f3)](_0xa61788){const _0x333be3=_0x1580eb,_0x4040b2=this[_0x333be3(0x1f5)][_0x333be3(0x1ee)](_0xa61788);return this[_0x333be3(0x1f4)](_0x4040b2);}[_0x1580eb(0x1f4)](_0x26169f){const _0x31d4e4=_0x1580eb;return this[_0x31d4e4(0x1f9)](_0x26169f);}[_0x1580eb(0x1f9)](_0x20e250){const _0x432d13=_0x1580eb,_0x13515c=_0x20e250[_0x432d13(0x1f8)](/^\t+/gm,'\x20')[_0x432d13(0x1f8)](/\n*/g,'')[_0x432d13(0x1f8)](/\s+/g,'\x20')[_0x432d13(0x1f8)](/<[^>]*?$/g,''),_0x4d6bf2=_0x124df2(_0x432d13(0x1f2)+_0x13515c+_0x432d13(0x1f7));return _0x4d6bf2[_0x432d13(0x1f0)]=_0x4d6bf2[_0x432d13(0x1f0)][0x0][_0x432d13(0x1f0)],_0x4d6bf2;}}