@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.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.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x46a8d7=_0x510b;(function(_0x40899d,_0x5289a7){const _0x28fea0=_0x510b,_0xaeb2a=_0x40899d();while(!![]){try{const _0x55296b=parseInt(_0x28fea0(0x13d))/0x1*(parseInt(_0x28fea0(0x16c))/0x2)+parseInt(_0x28fea0(0x142))/0x3*(-parseInt(_0x28fea0(0x135))/0x4)+parseInt(_0x28fea0(0x183))/0x5*(-parseInt(_0x28fea0(0x173))/0x6)+parseInt(_0x28fea0(0x186))/0x7+parseInt(_0x28fea0(0x17f))/0x8*(-parseInt(_0x28fea0(0x15c))/0x9)+-parseInt(_0x28fea0(0x16b))/0xa*(parseInt(_0x28fea0(0x167))/0xb)+-parseInt(_0x28fea0(0x17a))/0xc*(-parseInt(_0x28fea0(0x175))/0xd);if(_0x55296b===_0x5289a7)break;else _0xaeb2a['push'](_0xaeb2a['shift']());}catch(_0x244bed){_0xaeb2a['push'](_0xaeb2a['shift']());}}}(_0x1e5e,0x9306b));import{View as _0x42c871,SearchTextView as _0x5cbc6b,FormHeaderView as _0x12f55b,ButtonView as _0x2e2985}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x16ee12,IconCancel as _0x5e8cb3,IconPlus as _0x5db4cf}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1819d8}from'./aichathistorysectionlistview.js';function _0x1e5e(){const _0x264847=['ck-ai-notification','div','title','updateHistoryItemsWithCategories','change:isLoading','push','17nFdChC','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','length','61365xEAbhD','openChat','change:errorMessage','items','updateTitle','errorMessage','ck-ai-chat-history__empty-message','isEmptyViewVisible','aiHistory','_createEmptyStateView','remove','children','_createListItemViews','ltr','set','fire','AI_CHAT_HISTORY_SEARCH_LABEL','ck-reset_all','execute','ck-ai-chat-history__empty','AI_CHAT_LABEL_NEW_CHAT','ck-ai-notification_error__dismiss-button','locale','isMainErrorViewVisible','_refreshSearch','add','18ZovAeN','value','sections','element','setTemplate','searchView','isSearchViewVisible','_createErrorView','fieldView','updateItemLoadingState','skeletonView','66473bhKTpG','updateLoadingState','ck-ai-chat__start-conversation','delegate','220EJygNb','110770EyezaV','hasItems','addMany','removeItem','_updateViewVisibility','ck-ai-chat-history__content','bindTemplate','811182GqQwNV','clear','13ALjOff','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','emptyView','search','12973416MEtEJn','removeHistoryItem','updateItemTitle','_createSkeletonView','ck-rounded-corners','2679640ASnFYY','queryView','AI_CHAT_HISTORY_HEADING','indexOf','20MOhTmZ','sectionsView','isMaximized','1896545PBpjFz','getItem','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history','change:hasItems','render','resizeButton','isVisible','isLoading','ck-ai-notification_error','extendTemplate','bind','itemsViews','splice','mainErrorView','68oPqWHN','some'];_0x1e5e=function(){return _0x264847;};return _0x1e5e();}import{AIChatHistoryListView as _0x4f2d60}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x53ad51}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x9c5e60}from'../aichathistoryui.js';import{AISkeletonView as _0x138d99,SKELETON_DEFINITIONS as _0x1d65e8}from'../../aicore/ui/aiskeleton.js';function _0x510b(_0x2dcecd,_0x30c876){const _0x1e5e23=_0x1e5e();return _0x510b=function(_0x510b91,_0x113a73){_0x510b91=_0x510b91-0x12d;let _0x3ecfca=_0x1e5e23[_0x510b91];return _0x3ecfca;},_0x510b(_0x2dcecd,_0x30c876);}import{createResizeButton as _0x2d18eb}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x31cd13}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x42c871{[_0x46a8d7(0x161)];[_0x46a8d7(0x134)];[_0x46a8d7(0x166)];[_0x46a8d7(0x178)];[_0x46a8d7(0x184)];[_0x46a8d7(0x18c)];constructor(_0x3df03d,_0x3a346b){const _0x302f6f=_0x46a8d7;super(_0x3df03d),this[_0x302f6f(0x150)](_0x302f6f(0x16d),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x12e),!0x0),this[_0x302f6f(0x150)](_0x302f6f(0x147),''),this[_0x302f6f(0x150)](_0x302f6f(0x185),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x162),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x149),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x159),!0x1);const _0x2f686b=new _0x12f55b(_0x3df03d,{'label':_0x31cd13(_0x3df03d,_0x302f6f(0x181)),'icon':_0x16ee12,'class':_0x302f6f(0x188)});_0x3a346b&&(this[_0x302f6f(0x18c)]=_0x2d18eb(_0x3df03d,this),_0x2f686b[_0x302f6f(0x14d)][_0x302f6f(0x15b)](this[_0x302f6f(0x18c)])),this[_0x302f6f(0x184)]=new _0x1819d8(_0x3df03d,[]),this[_0x302f6f(0x184)][_0x302f6f(0x16a)](..._0x9c5e60)['to'](this),this[_0x302f6f(0x134)]=this[_0x302f6f(0x163)](),this[_0x302f6f(0x166)]=this[_0x302f6f(0x17d)](),this[_0x302f6f(0x178)]=this[_0x302f6f(0x14b)](),this[_0x302f6f(0x161)]=this[_0x302f6f(0x176)](),this[_0x302f6f(0x134)][_0x302f6f(0x130)]({'attributes':{'class':[this[_0x302f6f(0x172)]['if'](_0x302f6f(0x159),_0x302f6f(0x13f),_0x58d88e=>!_0x58d88e)]}}),this['on'](_0x302f6f(0x13b),()=>this[_0x302f6f(0x170)]()),this['on'](_0x302f6f(0x18a),()=>this[_0x302f6f(0x170)]()),this['on'](_0x302f6f(0x144),()=>this[_0x302f6f(0x170)]()),this[_0x302f6f(0x160)]({'tag':_0x302f6f(0x138),'attributes':{'class':['ck',_0x302f6f(0x153),_0x302f6f(0x189),_0x302f6f(0x17e)],'dir':_0x302f6f(0x14f)},'children':[_0x2f686b,{'tag':_0x302f6f(0x138),'attributes':{'class':[_0x302f6f(0x171)]},'children':[this[_0x302f6f(0x166)],this[_0x302f6f(0x134)],this[_0x302f6f(0x178)],this[_0x302f6f(0x161)]]}]});}[_0x46a8d7(0x170)](){const _0x2237da=_0x46a8d7;this[_0x2237da(0x162)]=!this[_0x2237da(0x12e)]&&this[_0x2237da(0x16d)],this[_0x2237da(0x149)]=!this[_0x2237da(0x12e)]&&!this[_0x2237da(0x16d)]&&!this[_0x2237da(0x147)],this[_0x2237da(0x159)]=!this[_0x2237da(0x162)]&&!!this[_0x2237da(0x147)];}[_0x46a8d7(0x176)](){const _0x1f8936=_0x46a8d7,_0x22d35c=new _0x5cbc6b(this[_0x1f8936(0x158)],{'filteredView':this[_0x1f8936(0x184)],'queryView':{'label':_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x152))},'infoView':{'text':{'notFound':{'primary':_0x2991a6=>_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x140),_0x2991a6),'secondary':_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x177))}}}}),_0x58c7e4=this[_0x1f8936(0x163)]();return _0x58c7e4[_0x1f8936(0x130)]({'attributes':{'class':[this[_0x1f8936(0x172)]['if'](_0x1f8936(0x147),_0x1f8936(0x13f),_0x2286f6=>!_0x2286f6)]}}),_0x22d35c['on'](_0x1f8936(0x18b),()=>{const _0x56caf5=_0x1f8936;_0x22d35c[_0x56caf5(0x14d)][_0x56caf5(0x15b)](_0x58c7e4,0x1);}),_0x22d35c[_0x1f8936(0x130)]({'attributes':{'class':[this[_0x1f8936(0x172)]['if'](_0x1f8936(0x162),_0x1f8936(0x13f),_0x5d568e=>!_0x5d568e)]}}),_0x22d35c;}[_0x46a8d7(0x17d)](){const _0x4bd705=_0x46a8d7,_0x3aee0b=new _0x138d99(this[_0x4bd705(0x158)],_0x1d65e8[_0x4bd705(0x14a)]);return _0x3aee0b[_0x4bd705(0x130)]({'attributes':{'class':[this[_0x4bd705(0x172)]['if'](_0x4bd705(0x12e),_0x4bd705(0x13f),_0xf5e308=>!_0xf5e308)]}}),_0x3aee0b;}[_0x46a8d7(0x163)](){const _0x3ad9bf=_0x46a8d7,_0x745471=new _0x42c871(this[_0x3ad9bf(0x158)]),_0x33026d=new _0x2e2985(this[_0x3ad9bf(0x158)]);_0x33026d[_0x3ad9bf(0x150)]({'withText':!0x1,'icon':_0x5e8cb3,'class':_0x3ad9bf(0x157)}),_0x33026d[_0x3ad9bf(0x131)](_0x3ad9bf(0x12d))['to'](this,_0x3ad9bf(0x16d),_0x1fe281=>!!_0x1fe281),_0x33026d['on'](_0x3ad9bf(0x154),()=>{const _0x29f716=_0x3ad9bf;this[_0x29f716(0x147)]='';});const _0x4ddc07=this[_0x3ad9bf(0x172)];return _0x745471[_0x3ad9bf(0x160)]({'tag':_0x3ad9bf(0x138),'attributes':{'class':['ck',_0x3ad9bf(0x137),_0x3ad9bf(0x12f)]},'children':[{'tag':'p','children':[{'text':_0x4ddc07['to'](_0x3ad9bf(0x147))}]},_0x33026d]}),_0x745471;}[_0x46a8d7(0x14b)](){const _0x4521b1=_0x46a8d7,_0x41542a=new _0x2e2985(this[_0x4521b1(0x158)]);_0x41542a[_0x4521b1(0x150)]({'label':_0x31cd13(this[_0x4521b1(0x158)],_0x4521b1(0x156)),'withText':!0x0,'icon':_0x5db4cf,'class':_0x4521b1(0x169)}),_0x41542a['on'](_0x4521b1(0x154),()=>{const _0x1a2999=_0x4521b1;this[_0x1a2999(0x151)](_0x1a2999(0x143));});const _0x18a919=new _0x42c871(this[_0x4521b1(0x158)]);return _0x18a919[_0x4521b1(0x160)]({'tag':_0x4521b1(0x138),'attributes':{'class':[_0x4521b1(0x155),this[_0x4521b1(0x172)]['if'](_0x4521b1(0x149),_0x4521b1(0x13f),_0x59f06d=>!_0x59f06d)]},'children':[{'tag':'p','attributes':{'class':[_0x4521b1(0x148)]},'children':[_0x31cd13(this[_0x4521b1(0x158)],_0x4521b1(0x13e))]},_0x41542a]}),_0x18a919;}[_0x46a8d7(0x14e)](_0x7a7a89,_0x4bde28){const _0x5cd38c=_0x46a8d7,_0x286e67=[];for(const _0x3b2e26 of _0x7a7a89){const _0x1d23f9=new _0x53ad51(_0x4bde28,_0x3b2e26);_0x1d23f9[_0x5cd38c(0x16a)](..._0x9c5e60)['to'](this),_0x286e67[_0x5cd38c(0x13c)](_0x1d23f9);}return _0x286e67;}[_0x46a8d7(0x13a)](_0x451677){const _0x1d13ab=_0x46a8d7,_0x57687b=this[_0x1d13ab(0x158)]||'en',_0x15543c=[];for(const _0x51a71a of _0x451677){const _0x48bde8=this[_0x1d13ab(0x14e)](_0x51a71a[_0x1d13ab(0x145)],_0x57687b);_0x15543c[_0x1d13ab(0x13c)](new _0x4f2d60(_0x57687b,{'title':_0x51a71a[_0x1d13ab(0x139)],'items':_0x48bde8}));}this[_0x1d13ab(0x184)][_0x1d13ab(0x15e)]=_0x15543c,this[_0x1d13ab(0x184)][_0x1d13ab(0x145)][_0x1d13ab(0x174)](),this[_0x1d13ab(0x184)][_0x1d13ab(0x145)][_0x1d13ab(0x16e)](_0x15543c),this[_0x1d13ab(0x16d)]=_0x451677[_0x1d13ab(0x136)](_0x42410a=>_0x42410a[_0x1d13ab(0x145)][_0x1d13ab(0x141)]>0x0),this[_0x1d13ab(0x15a)]();}[_0x46a8d7(0x17b)](_0x3cbfda){const _0x175660=_0x46a8d7;for(const _0xd0ac0d of this[_0x175660(0x184)][_0x175660(0x15e)]){const _0x173cd1=_0xd0ac0d[_0x175660(0x187)](_0x3cbfda);if(_0x173cd1){if(_0xd0ac0d[_0x175660(0x16f)](_0x173cd1),0x0===_0xd0ac0d[_0x175660(0x132)][_0x175660(0x141)]){const _0x2f31b8=this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x182)](_0xd0ac0d);-0x1!==_0x2f31b8&&(this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x133)](_0x2f31b8,0x1),this[_0x175660(0x184)][_0x175660(0x145)][_0x175660(0x14c)](_0xd0ac0d));}this[_0x175660(0x16d)]=this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x141)]>0x0,this[_0x175660(0x15a)]();break;}}}[_0x46a8d7(0x17c)](_0x2f925d,_0x3effc2){const _0x49e4ba=_0x46a8d7;for(const _0x4f8f25 of this[_0x49e4ba(0x184)][_0x49e4ba(0x15e)]){const _0x10182c=_0x4f8f25[_0x49e4ba(0x187)](_0x2f925d);if(_0x10182c){_0x10182c[_0x49e4ba(0x146)](_0x3effc2);break;}}}[_0x46a8d7(0x165)](_0x211bbf,_0x293519,_0x522104){const _0x3c1f35=_0x46a8d7;for(const _0x4ba1f5 of this[_0x3c1f35(0x184)][_0x3c1f35(0x15e)]){const _0x5738b2=_0x4ba1f5[_0x3c1f35(0x187)](_0x211bbf);if(_0x5738b2){_0x5738b2[_0x3c1f35(0x168)](_0x293519,_0x522104);break;}}}[_0x46a8d7(0x15a)](){const _0x45b20a=_0x46a8d7;if(this[_0x45b20a(0x16d)]){const _0x386921=this[_0x45b20a(0x161)][_0x45b20a(0x180)][_0x45b20a(0x164)]?.[_0x45b20a(0x15f)]?.[_0x45b20a(0x15d)]||'';this[_0x45b20a(0x161)][_0x45b20a(0x179)](_0x386921);}}}
|
|
23
|
+
const _0x84200e=_0x41e6;(function(_0x1541c2,_0xbb255b){const _0x544c59=_0x41e6,_0x432e07=_0x1541c2();while(!![]){try{const _0x3117b4=parseInt(_0x544c59(0x1a7))/0x1+-parseInt(_0x544c59(0x17d))/0x2+-parseInt(_0x544c59(0x15b))/0x3+parseInt(_0x544c59(0x172))/0x4+parseInt(_0x544c59(0x176))/0x5*(parseInt(_0x544c59(0x165))/0x6)+-parseInt(_0x544c59(0x15d))/0x7+parseInt(_0x544c59(0x15c))/0x8*(parseInt(_0x544c59(0x16f))/0x9);if(_0x3117b4===_0xbb255b)break;else _0x432e07['push'](_0x432e07['shift']());}catch(_0x2a7af5){_0x432e07['push'](_0x432e07['shift']());}}}(_0x1e73,0x9c250));import{View as _0x40f31d,SearchTextView as _0xe7bb52,FormHeaderView as _0x9803dd,ButtonView as _0x40d92b}from'ckeditor5/src/ui.js';function _0x1e73(){const _0x4ac263=['push','isLoading','isVisible','change:errorMessage','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_createListItemViews','AI_CHAT_HISTORY_HEADING','clear','_updateViewVisibility','_createSkeletonView','itemsViews','ck-ai-notification_error__dismiss-button','ck-ai-chat-history__empty-message','ck-ai-notification_error','execute','updateHistoryItemsWithCategories','items','ck-ai-chat__start-conversation','ck-rounded-corners','407823LzcNLw','extendTemplate','AI_CHAT_LABEL_NEW_CHAT','_createErrorView','setTemplate','skeletonView','aiHistory','updateLoadingState','ck-ai-chat-history','openChat','_createSearchView','sections','div','sectionsView','fieldView','removeItem','2160759PXbbiJ','128qoRwbK','1627549yZZTKt','isMainErrorViewVisible','render','bind','emptyView','isSearchViewVisible','searchView','some','42lIuroB','mainErrorView','removeHistoryItem','remove','hasItems','delegate','_refreshSearch','change:isLoading','ck-ai-chat-history__content','errorMessage','476757YoXhlw','AI_CHAT_HISTORY_EMPTY_MESSAGE','indexOf','1900064kZYAlA','locale','search','AI_CHAT_HISTORY_SEARCH_LABEL','648355TWPPPU','isMaximized','title','_createEmptyStateView','value','updateItemLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','2091552CEhjOH','isEmptyViewVisible','getItem','resizeButton','children','ltr','splice','queryView','ck-hidden','ck-ai-header\x20ck-ai-header_history','length','set','bindTemplate','ck-ai-notification','ck-reset_all','element','add','addMany','updateItemTitle','ck-ai-chat-history__empty','change:hasItems','updateTitle','fire'];_0x1e73=function(){return _0x4ac263;};return _0x1e73();}import{IconAIHistory as _0x56b8ed,IconCancel as _0x566143,IconPlus as _0x14f64f}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1fa903}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x1add7f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4955d9}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5dde31}from'../aichathistoryui.js';import{AISkeletonView as _0x352475,SKELETON_DEFINITIONS as _0x11b865}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x297ce2}from'../../aicore/utils/createresizebutton.js';function _0x41e6(_0x3cab68,_0x53ccef){const _0x1e731d=_0x1e73();return _0x41e6=function(_0x41e6ce,_0x4b4852){_0x41e6ce=_0x41e6ce-0x152;let _0x2c2d93=_0x1e731d[_0x41e6ce];return _0x2c2d93;},_0x41e6(_0x3cab68,_0x53ccef);}import{getTranslation as _0x49a0cf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x40f31d{[_0x84200e(0x163)];[_0x84200e(0x166)];[_0x84200e(0x1ac)];[_0x84200e(0x161)];[_0x84200e(0x158)];[_0x84200e(0x180)];constructor(_0x507d75,_0x1c06e7){const _0x5436eb=_0x84200e;super(_0x507d75),this[_0x5436eb(0x188)](_0x5436eb(0x169),!0x1),this[_0x5436eb(0x188)](_0x5436eb(0x195),!0x0),this[_0x5436eb(0x188)](_0x5436eb(0x16e),''),this[_0x5436eb(0x188)](_0x5436eb(0x177),!0x1),this[_0x5436eb(0x188)](_0x5436eb(0x162),!0x1),this[_0x5436eb(0x188)](_0x5436eb(0x17e),!0x1),this[_0x5436eb(0x188)](_0x5436eb(0x15e),!0x1);const _0x15eae7=new _0x9803dd(_0x507d75,{'label':_0x49a0cf(_0x507d75,_0x5436eb(0x19a)),'icon':_0x56b8ed,'class':_0x5436eb(0x186)});_0x1c06e7&&(this[_0x5436eb(0x180)]=_0x297ce2(_0x507d75,this),_0x15eae7[_0x5436eb(0x181)][_0x5436eb(0x18d)](this[_0x5436eb(0x180)])),this[_0x5436eb(0x158)]=new _0x1fa903(_0x507d75,[]),this[_0x5436eb(0x158)][_0x5436eb(0x16a)](..._0x5dde31)['to'](this),this[_0x5436eb(0x166)]=this[_0x5436eb(0x1aa)](),this[_0x5436eb(0x1ac)]=this[_0x5436eb(0x19d)](),this[_0x5436eb(0x161)]=this[_0x5436eb(0x179)](),this[_0x5436eb(0x163)]=this[_0x5436eb(0x155)](),this[_0x5436eb(0x166)][_0x5436eb(0x1a8)]({'attributes':{'class':[this[_0x5436eb(0x189)]['if'](_0x5436eb(0x15e),_0x5436eb(0x185),_0x56ecd9=>!_0x56ecd9)]}}),this['on'](_0x5436eb(0x16c),()=>this[_0x5436eb(0x19c)]()),this['on'](_0x5436eb(0x191),()=>this[_0x5436eb(0x19c)]()),this['on'](_0x5436eb(0x197),()=>this[_0x5436eb(0x19c)]()),this[_0x5436eb(0x1ab)]({'tag':_0x5436eb(0x157),'attributes':{'class':['ck',_0x5436eb(0x18b),_0x5436eb(0x153),_0x5436eb(0x1a6)],'dir':_0x5436eb(0x182)},'children':[_0x15eae7,{'tag':_0x5436eb(0x157),'attributes':{'class':[_0x5436eb(0x16d)]},'children':[this[_0x5436eb(0x1ac)],this[_0x5436eb(0x166)],this[_0x5436eb(0x161)],this[_0x5436eb(0x163)]]}]});}[_0x84200e(0x19c)](){const _0x2ed555=_0x84200e;this[_0x2ed555(0x162)]=!this[_0x2ed555(0x195)]&&this[_0x2ed555(0x169)],this[_0x2ed555(0x17e)]=!this[_0x2ed555(0x195)]&&!this[_0x2ed555(0x169)]&&!this[_0x2ed555(0x16e)],this[_0x2ed555(0x15e)]=!this[_0x2ed555(0x162)]&&!!this[_0x2ed555(0x16e)];}[_0x84200e(0x155)](){const _0x387582=_0x84200e,_0x440499=new _0xe7bb52(this[_0x387582(0x173)],{'filteredView':this[_0x387582(0x158)],'queryView':{'label':_0x49a0cf(this[_0x387582(0x173)],_0x387582(0x175))},'infoView':{'text':{'notFound':{'primary':_0x48d881=>_0x49a0cf(this[_0x387582(0x173)],_0x387582(0x17c),_0x48d881),'secondary':_0x49a0cf(this[_0x387582(0x173)],_0x387582(0x198))}}}}),_0x1eec71=this[_0x387582(0x1aa)]();return _0x1eec71[_0x387582(0x1a8)]({'attributes':{'class':[this[_0x387582(0x189)]['if'](_0x387582(0x16e),_0x387582(0x185),_0xa0fc51=>!_0xa0fc51)]}}),_0x440499['on'](_0x387582(0x15f),()=>{const _0x535ff3=_0x387582;_0x440499[_0x535ff3(0x181)][_0x535ff3(0x18d)](_0x1eec71,0x1);}),_0x440499[_0x387582(0x1a8)]({'attributes':{'class':[this[_0x387582(0x189)]['if'](_0x387582(0x162),_0x387582(0x185),_0x5a1e7f=>!_0x5a1e7f)]}}),_0x440499;}[_0x84200e(0x19d)](){const _0x45ba5c=_0x84200e,_0x1616e4=new _0x352475(this[_0x45ba5c(0x173)],_0x11b865[_0x45ba5c(0x1ad)]);return _0x1616e4[_0x45ba5c(0x1a8)]({'attributes':{'class':[this[_0x45ba5c(0x189)]['if'](_0x45ba5c(0x195),_0x45ba5c(0x185),_0x4bf0ae=>!_0x4bf0ae)]}}),_0x1616e4;}[_0x84200e(0x1aa)](){const _0x41baca=_0x84200e,_0x37ef66=new _0x40f31d(this[_0x41baca(0x173)]),_0x4c5a5d=new _0x40d92b(this[_0x41baca(0x173)]);_0x4c5a5d[_0x41baca(0x188)]({'withText':!0x1,'icon':_0x566143,'class':_0x41baca(0x19f)}),_0x4c5a5d[_0x41baca(0x160)](_0x41baca(0x196))['to'](this,_0x41baca(0x169),_0x145bed=>!!_0x145bed),_0x4c5a5d['on'](_0x41baca(0x1a2),()=>{const _0x45d3aa=_0x41baca;this[_0x45d3aa(0x16e)]='';});const _0xa33c=this[_0x41baca(0x189)];return _0x37ef66[_0x41baca(0x1ab)]({'tag':_0x41baca(0x157),'attributes':{'class':['ck',_0x41baca(0x18a),_0x41baca(0x1a1)]},'children':[{'tag':'p','children':[{'text':_0xa33c['to'](_0x41baca(0x16e))}]},_0x4c5a5d]}),_0x37ef66;}[_0x84200e(0x179)](){const _0x2f79d7=_0x84200e,_0x2daff8=new _0x40d92b(this[_0x2f79d7(0x173)]);_0x2daff8[_0x2f79d7(0x188)]({'label':_0x49a0cf(this[_0x2f79d7(0x173)],_0x2f79d7(0x1a9)),'withText':!0x0,'icon':_0x14f64f,'class':_0x2f79d7(0x1a5)}),_0x2daff8['on'](_0x2f79d7(0x1a2),()=>{const _0x4b1e81=_0x2f79d7;this[_0x4b1e81(0x193)](_0x4b1e81(0x154));});const _0x9808bd=new _0x40f31d(this[_0x2f79d7(0x173)]);return _0x9808bd[_0x2f79d7(0x1ab)]({'tag':_0x2f79d7(0x157),'attributes':{'class':[_0x2f79d7(0x190),this[_0x2f79d7(0x189)]['if'](_0x2f79d7(0x17e),_0x2f79d7(0x185),_0x1832a6=>!_0x1832a6)]},'children':[{'tag':'p','attributes':{'class':[_0x2f79d7(0x1a0)]},'children':[_0x49a0cf(this[_0x2f79d7(0x173)],_0x2f79d7(0x170))]},_0x2daff8]}),_0x9808bd;}[_0x84200e(0x199)](_0x4bc0b3,_0x5ba0e1){const _0xd59b50=_0x84200e,_0x54c18b=[];for(const _0x443637 of _0x4bc0b3){const _0x5840b9=new _0x4955d9(_0x5ba0e1,_0x443637);_0x5840b9[_0xd59b50(0x16a)](..._0x5dde31)['to'](this),_0x54c18b[_0xd59b50(0x194)](_0x5840b9);}return _0x54c18b;}[_0x84200e(0x1a3)](_0x3cf78d){const _0x4ff9e6=_0x84200e,_0x552a4e=this[_0x4ff9e6(0x173)]||'en',_0x5d7453=[];for(const _0x318ceb of _0x3cf78d){const _0x3326bb=this[_0x4ff9e6(0x199)](_0x318ceb[_0x4ff9e6(0x1a4)],_0x552a4e);_0x5d7453[_0x4ff9e6(0x194)](new _0x1add7f(_0x552a4e,{'title':_0x318ceb[_0x4ff9e6(0x178)],'items':_0x3326bb}));}this[_0x4ff9e6(0x158)][_0x4ff9e6(0x156)]=_0x5d7453,this[_0x4ff9e6(0x158)][_0x4ff9e6(0x1a4)][_0x4ff9e6(0x19b)](),this[_0x4ff9e6(0x158)][_0x4ff9e6(0x1a4)][_0x4ff9e6(0x18e)](_0x5d7453),this[_0x4ff9e6(0x169)]=_0x3cf78d[_0x4ff9e6(0x164)](_0x386e7b=>_0x386e7b[_0x4ff9e6(0x1a4)][_0x4ff9e6(0x187)]>0x0),this[_0x4ff9e6(0x16b)]();}[_0x84200e(0x167)](_0x2e9844){const _0x58d67b=_0x84200e;for(const _0x145a53 of this[_0x58d67b(0x158)][_0x58d67b(0x156)]){const _0x2e8b2e=_0x145a53[_0x58d67b(0x17f)](_0x2e9844);if(_0x2e8b2e){if(_0x145a53[_0x58d67b(0x15a)](_0x2e8b2e),0x0===_0x145a53[_0x58d67b(0x19e)][_0x58d67b(0x187)]){const _0x151982=this[_0x58d67b(0x158)][_0x58d67b(0x156)][_0x58d67b(0x171)](_0x145a53);-0x1!==_0x151982&&(this[_0x58d67b(0x158)][_0x58d67b(0x156)][_0x58d67b(0x183)](_0x151982,0x1),this[_0x58d67b(0x158)][_0x58d67b(0x1a4)][_0x58d67b(0x168)](_0x145a53));}this[_0x58d67b(0x169)]=this[_0x58d67b(0x158)][_0x58d67b(0x156)][_0x58d67b(0x187)]>0x0,this[_0x58d67b(0x16b)]();break;}}}[_0x84200e(0x18f)](_0x2bdb9c,_0x4c7a41){const _0x14532b=_0x84200e;for(const _0x221b30 of this[_0x14532b(0x158)][_0x14532b(0x156)]){const _0x400e56=_0x221b30[_0x14532b(0x17f)](_0x2bdb9c);if(_0x400e56){_0x400e56[_0x14532b(0x192)](_0x4c7a41);break;}}}[_0x84200e(0x17b)](_0x3c1549,_0x52b66a,_0x5dab72){const _0x178b91=_0x84200e;for(const _0xc96249 of this[_0x178b91(0x158)][_0x178b91(0x156)]){const _0x250455=_0xc96249[_0x178b91(0x17f)](_0x3c1549);if(_0x250455){_0x250455[_0x178b91(0x152)](_0x52b66a,_0x5dab72);break;}}}[_0x84200e(0x16b)](){const _0xe6a8f0=_0x84200e;if(this[_0xe6a8f0(0x169)]){const _0x206bfb=this[_0xe6a8f0(0x163)][_0xe6a8f0(0x184)][_0xe6a8f0(0x159)]?.[_0xe6a8f0(0x18c)]?.[_0xe6a8f0(0x17a)]||'';this[_0xe6a8f0(0x163)][_0xe6a8f0(0x174)](_0x206bfb);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0xcc6c(_0x533cdf,_0x2a7b4f){const _0xe57660=_0xe576();return _0xcc6c=function(_0xcc6c9b,_0x4f3d6b){_0xcc6c9b=_0xcc6c9b-0x18c;let _0x251e67=_0xe57660[_0xcc6c9b];return _0x251e67;},_0xcc6c(_0x533cdf,_0x2a7b4f);}const _0x3fcda4=_0xcc6c;(function(_0x343822,_0x52e222){const _0x579868=_0xcc6c,_0x40ec35=_0x343822();while(!![]){try{const _0x10e090=parseInt(_0x579868(0x1f8))/0x1*(parseInt(_0x579868(0x20c))/0x2)+parseInt(_0x579868(0x210))/0x3*(-parseInt(_0x579868(0x1e5))/0x4)+-parseInt(_0x579868(0x1dd))/0x5*(parseInt(_0x579868(0x21c))/0x6)+-parseInt(_0x579868(0x1d8))/0x7+-parseInt(_0x579868(0x21a))/0x8+-parseInt(_0x579868(0x1d1))/0x9+-parseInt(_0x579868(0x21d))/0xa*(-parseInt(_0x579868(0x1e1))/0xb);if(_0x10e090===_0x52e222)break;else _0x40ec35['push'](_0x40ec35['shift']());}catch(_0x2ef936){_0x40ec35['push'](_0x40ec35['shift']());}}}(_0xe576,0x25c01));import{createParser as _0x712941}from'eventsource-parser';import{ContextPlugin as _0x545529}from'ckeditor5/src/core.js';import{CKEditorError as _0x5c9a53}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x1cacfc){const _0x3f1fbb=_0xcc6c;_0x1cacfc[_0x3f1fbb(0x1aa)]=_0x3f1fbb(0x20d),_0x1cacfc[_0x3f1fbb(0x1ea)]=_0x3f1fbb(0x1d7),_0x1cacfc[_0x3f1fbb(0x18c)]=_0x3f1fbb(0x1c5),_0x1cacfc[_0x3f1fbb(0x19d)]=_0x3f1fbb(0x20b),_0x1cacfc[_0x3f1fbb(0x1ac)]=_0x3f1fbb(0x1f6),_0x1cacfc[_0x3f1fbb(0x1f0)]=_0x3f1fbb(0x1d2),_0x1cacfc[_0x3f1fbb(0x199)]=_0x3f1fbb(0x19f),_0x1cacfc[_0x3f1fbb(0x21e)]=_0x3f1fbb(0x1cd);}(AIActionsNames||(AIActionsNames={}));function _0xe576(){const _0x16ef0c=['request','/documents','group','upsertAIReviewRating','callSystemReview','isPremiumPlugin','language','search','upsertAIChatRating','make-longer','2bYVExH','continue','application/json','/web-resources/','33CkAZDz','deleteFile','upsertCustomAIReviewRating','uploadUrl','uploadFile','reset','_apiUrl','_getStreamReader','abortController','signal','999128EqWfbQ','/actions/custom/calls','343302Trlxon','370CIFDCF','TRANSLATE','IMPROVE_WRITING','100','push','name','feed','updateConversation','/ratings','upsertCustomAIActionRating','fetchDocument','releaseLock','/files/','callCustomReview','/conversations/','MAKE_TONE_FORMAL','_token','fetchConversations','/reviews/custom/calls','MAKE_LONGER','traceId','make-tone-formal','/models/1?','keys','GET','PATCH','config','context','totalCount','init','/messages','/conversations?','CONTINUE','_sendApiRequest','MAKE_SHORTER','status','/conversations','AbortError','/web-resources','modificationId','value','ai-missing-token','attributes','/files','pluginName','catch','get','/reviews/custom/calls/','decode','append','plugins','_handleError','ai-request-failed','/actions/system/','define','statusText','message','items','read','improve-writing','executeCustomAction','stringify','getReader','json','/reviews/system/','/calls/','file','translate','ai-request-aborted','Content-Type','token','1756224LevgEM','make-tone-casual','body','positiveCount','limit','POST','fix-grammar','595210ObCOso','ai.serviceUrl','_decoder','data','parse','25KPGdyY','https://ai.cke-cs.com/v1','toString','startConversation','296417zSxFfU','code','queryAssistant','PUT','59044QlpuHJ','/messages/','excludeEmpty','length','AIConnector','FIX_GRAMMAR','deleteConversation','upsertAIActionRating','requires','uploadDocument','deleteWebResource','MAKE_TONE_CASUAL','CloudServices','executeAction','DELETE','text','/calls','make-shorter','true','11099LMfsCk','fetchConversationMessages','Bearer\x20','/actions/custom/calls/','/documents/','fetchConversation','then','deleteDocument','getModels','isOfficialPlugin'];_0xe576=function(){return _0x16ef0c;};return _0xe576();}export class AIConnector extends _0x545529{[_0x3fcda4(0x216)];[_0x3fcda4(0x19a)];[_0x3fcda4(0x1da)];static get[_0x3fcda4(0x1ed)](){const _0x440d12=_0x3fcda4;return[_0x440d12(0x1f1)];}static get[_0x3fcda4(0x1b6)](){const _0x12f04c=_0x3fcda4;return _0x12f04c(0x1e9);}static get[_0x3fcda4(0x201)](){return!0x0;}static get[_0x3fcda4(0x207)](){return!0x0;}constructor(_0x102455){const _0x1c2c77=_0x3fcda4;super(_0x102455),this[_0x1c2c77(0x1a5)][_0x1c2c77(0x1a4)][_0x1c2c77(0x1c0)](_0x1c2c77(0x1d9),_0x1c2c77(0x1de)),this[_0x1c2c77(0x216)]=this[_0x1c2c77(0x1a5)][_0x1c2c77(0x1a4)][_0x1c2c77(0x1b8)](_0x1c2c77(0x1d9)),this[_0x1c2c77(0x19a)]=null,this[_0x1c2c77(0x1da)]=new TextDecoder();}[_0x3fcda4(0x1a7)](){const _0x25be29=_0x3fcda4,_0x2059f0=this[_0x25be29(0x1a5)][_0x25be29(0x1bc)][_0x25be29(0x1b8)](_0x25be29(0x1f1));if(!_0x2059f0[_0x25be29(0x1d0)])throw new _0x5c9a53(_0x25be29(0x1b3),this);this[_0x25be29(0x19a)]=_0x2059f0[_0x25be29(0x1d0)];}[_0x3fcda4(0x1e0)](_0x5c83f2,_0x3ed9f7){const _0x52138d=_0x3fcda4,_0x32e616=this[_0x52138d(0x1ab)](_0x52138d(0x1ae),_0x52138d(0x1d6),{'id':_0x5c83f2,'group':_0x3ed9f7});return{'getConversation':async()=>(await _0x32e616[_0x52138d(0x202)])[_0x52138d(0x1c9)](),'abortController':_0x32e616[_0x52138d(0x218)]};}[_0x3fcda4(0x1e3)]({message:_0x4f9daa,conversationId:_0x7396e1,parts:_0x3ec6bf,capabilities:_0x462bea,model:_0x19b006,quickActionData:_0x511e8a}){const _0x506642=_0x3fcda4,_0x2a58ff={..._0x511e8a&&{'quickActionData':_0x511e8a}},_0x325581={'prompt':_0x4f9daa,'content':_0x3ec6bf,'model':_0x19b006,..._0x462bea&&{'capabilities':_0x462bea},...Object[_0x506642(0x1a1)](_0x2a58ff)[_0x506642(0x1e8)]>0x0&&{'attributes':_0x2a58ff}},_0x596e8a=this[_0x506642(0x1ab)](_0x506642(0x198)+_0x7396e1+_0x506642(0x1a8),_0x506642(0x1d6),_0x325581);return{'getStream':async()=>{const _0x226dc0=_0x506642,_0x52fb66=(await _0x596e8a[_0x226dc0(0x202)])[_0x226dc0(0x1d3)];return this[_0x226dc0(0x217)](_0x52fb66);},'abortController':_0x596e8a[_0x506642(0x218)]};}[_0x3fcda4(0x1c6)]({content:_0x3250c0,message:_0x1247b3,model:_0x434aa0,outputFormat:_0x5cb3f5}){const _0x59795b=_0x3fcda4,_0x2b652f={'content':[{'type':_0x59795b(0x1f4),'content':_0x3250c0}],'prompt':_0x1247b3,'model':_0x434aa0,'outputFormat':_0x5cb3f5},_0x13edcb=this[_0x59795b(0x1ab)](_0x59795b(0x21b),_0x59795b(0x1d6),_0x2b652f);return{'getStream':async()=>{const _0x4e89e3=_0x59795b,_0x58d5a2=(await _0x13edcb[_0x4e89e3(0x202)])[_0x4e89e3(0x1d3)];return this[_0x4e89e3(0x217)](_0x58d5a2);},'abortController':_0x13edcb[_0x59795b(0x218)]};}[_0x3fcda4(0x1f2)]({actionName:_0x378935,content:_0x5323c0,args:_0x517f5b}){const _0x2932c4=_0x3fcda4,_0x20c4e7={'content':[{'type':_0x2932c4(0x1f4),'content':_0x5323c0}],'args':_0x517f5b},_0x541697=this[_0x2932c4(0x1ab)](_0x2932c4(0x1bf)+_0x378935+_0x2932c4(0x1f5),_0x2932c4(0x1d6),_0x20c4e7);return{'getStream':async()=>{const _0xedcd8d=_0x2932c4,_0x301ed2=(await _0x541697[_0xedcd8d(0x202)])[_0xedcd8d(0x1d3)];return this[_0xedcd8d(0x217)](_0x301ed2);},'abortController':_0x541697[_0x2932c4(0x218)]};}[_0x3fcda4(0x214)](_0x1bf4d3,_0x1ebeb3,_0x3c2418){const _0x20591d=_0x3fcda4,_0x537429=new FormData();_0x537429[_0x20591d(0x1bb)](_0x20591d(0x1cc),_0x1ebeb3,_0x1ebeb3[_0x20591d(0x18f)]),_0x3c2418&&_0x537429[_0x20591d(0x1bb)](_0x20591d(0x1b4),JSON[_0x20591d(0x1c7)](_0x3c2418));const _0x3950c6=this[_0x20591d(0x1ab)](_0x20591d(0x198)+_0x1bf4d3+_0x20591d(0x1b5),_0x20591d(0x1d6),_0x537429);return{'getId':async()=>(await _0x3950c6[_0x20591d(0x202)])[_0x20591d(0x1c9)](),'abortController':_0x3950c6[_0x20591d(0x218)]};}[_0x3fcda4(0x194)](_0x375cb9,_0x53b319){const _0x5aa21a=_0x3fcda4,_0x12e988=this[_0x5aa21a(0x1ab)](_0x5aa21a(0x198)+_0x375cb9+_0x5aa21a(0x1fc)+_0x53b319,_0x5aa21a(0x1a2));return{'getDocument':async()=>(await _0x12e988[_0x5aa21a(0x202)])[_0x5aa21a(0x1c9)](),'abortController':_0x12e988[_0x5aa21a(0x218)]};}[_0x3fcda4(0x1ee)](_0x3f05cf,_0x2b2f67,_0x5cd121){const _0x101130=_0x3fcda4,_0x4ddd47={'content':_0x2b2f67};_0x5cd121&&(_0x4ddd47[_0x101130(0x1b4)]=_0x5cd121);const _0x19c94d=this[_0x101130(0x1ab)](_0x101130(0x198)+_0x3f05cf+_0x101130(0x203),_0x101130(0x1d6),_0x4ddd47);return{'getId':async()=>(await _0x19c94d[_0x101130(0x202)])[_0x101130(0x1c9)](),'abortController':_0x19c94d[_0x101130(0x218)]};}[_0x3fcda4(0x19b)](_0x3746cb,_0x1685a1){const _0x15ba7b=_0x3fcda4,_0x35b473=new URLSearchParams();_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x1e7),_0x15ba7b(0x1f7)),_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x1d5),_0x15ba7b(0x18d)),_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x204),_0x3746cb),_0x1685a1&&_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x209),_0x1685a1);const _0x55410b=this[_0x15ba7b(0x1ab)](_0x15ba7b(0x1a9)+_0x35b473[_0x15ba7b(0x1df)](),_0x15ba7b(0x1a2));return{'getConversations':async()=>{const _0x419357=_0x15ba7b,_0x559b71=await _0x55410b[_0x419357(0x202)];return(await _0x559b71[_0x419357(0x1c9)]())[_0x419357(0x1c3)];},'abortController':_0x55410b[_0x15ba7b(0x218)]};}[_0x3fcda4(0x1eb)](_0x2748ee){const _0x35aa46=_0x3fcda4,_0x2e5eba=this[_0x35aa46(0x1ab)](_0x35aa46(0x198)+_0x2748ee,_0x35aa46(0x1f3));return{'execute':async()=>{const _0x2c4678=_0x35aa46;await _0x2e5eba[_0x2c4678(0x202)];},'abortController':_0x2e5eba[_0x35aa46(0x218)]};}[_0x3fcda4(0x191)](_0x32682b,_0x1fba8e){const _0x317004=_0x3fcda4,_0x22103a=this[_0x317004(0x1ab)](_0x317004(0x198)+_0x32682b,_0x317004(0x1a3),_0x1fba8e);return{'getResult':async()=>(await _0x22103a[_0x317004(0x202)],_0x1fba8e),'abortController':_0x22103a[_0x317004(0x218)]};}[_0x3fcda4(0x1fd)](_0x4f3747){const _0x353e6a=_0x3fcda4,_0xbb7eaf=this[_0x353e6a(0x1ab)](_0x353e6a(0x198)+_0x4f3747,_0x353e6a(0x1a2));return{'getConversation':async()=>(await _0xbb7eaf[_0x353e6a(0x202)])[_0x353e6a(0x1c9)](),'abortController':_0xbb7eaf[_0x353e6a(0x218)]};}[_0x3fcda4(0x1f9)](_0x59aacd){const _0x540711=_0x3fcda4,_0x2258ed=this[_0x540711(0x1ab)](_0x540711(0x198)+_0x59aacd+_0x540711(0x1a8),_0x540711(0x1a2));return{'getMessages':async()=>{const _0x80edd8=_0x540711,_0x376846=await _0x2258ed[_0x80edd8(0x202)];return(await _0x376846[_0x80edd8(0x1c9)]())[_0x80edd8(0x1c3)];},'abortController':_0x2258ed[_0x540711(0x218)]};}[_0x3fcda4(0x213)](_0x10237e,_0x48ea1c,_0x39c5a3){const _0xdd0d57=_0x3fcda4,_0x349290=this[_0xdd0d57(0x1ab)](_0xdd0d57(0x198)+_0x10237e+_0xdd0d57(0x1b0),_0xdd0d57(0x1d6),{'url':_0x48ea1c,'attributes':_0x39c5a3});return{'getId':async()=>(await _0x349290[_0xdd0d57(0x202)])[_0xdd0d57(0x1c9)](),'abortController':_0x349290[_0xdd0d57(0x218)]};}[_0x3fcda4(0x200)](_0x4ee769='en'){const _0x53c2db=_0x3fcda4,_0x55b701=new URLSearchParams();_0x55b701[_0x53c2db(0x1bb)](_0x53c2db(0x208),_0x4ee769);const _0x40a7f8=_0x53c2db(0x1a0)+_0x55b701[_0x53c2db(0x1df)](),_0x38869d=this[_0x53c2db(0x1ab)](_0x40a7f8,_0x53c2db(0x1a2));return{'list':async()=>await(await _0x38869d[_0x53c2db(0x202)])[_0x53c2db(0x1c9)](),'abortController':_0x38869d[_0x53c2db(0x218)]};}[_0x3fcda4(0x211)](_0x290e4c,_0x2cbe30){const _0x2e182b=_0x3fcda4,_0x361337=this[_0x2e182b(0x1ab)](_0x2e182b(0x198)+_0x290e4c+_0x2e182b(0x196)+_0x2cbe30,_0x2e182b(0x1f3));return{'execute':async()=>{const _0x41bcee=_0x2e182b;await _0x361337[_0x41bcee(0x202)];},'abortController':_0x361337[_0x2e182b(0x218)]};}[_0x3fcda4(0x1ff)](_0x39fb82,_0x3e49f1){const _0x115eb5=_0x3fcda4,_0x30ab68=this[_0x115eb5(0x1ab)](_0x115eb5(0x198)+_0x39fb82+_0x115eb5(0x1fc)+_0x3e49f1,_0x115eb5(0x1f3));return{'execute':async()=>{const _0x4c8d34=_0x115eb5;await _0x30ab68[_0x4c8d34(0x202)];},'abortController':_0x30ab68[_0x115eb5(0x218)]};}[_0x3fcda4(0x1ef)](_0x86adee,_0x355a96){const _0x3fa88f=_0x3fcda4,_0x2617c7=this[_0x3fa88f(0x1ab)](_0x3fa88f(0x198)+_0x86adee+_0x3fa88f(0x20f)+_0x355a96,_0x3fa88f(0x1f3));return{'execute':async()=>{const _0x461ba8=_0x3fa88f;await _0x2617c7[_0x461ba8(0x202)];},'abortController':_0x2617c7[_0x3fa88f(0x218)]};}[_0x3fcda4(0x206)]({reviewName:_0x56c538,content:_0x1b0955,args:_0x4e5ab2}){const _0x3d260a=_0x3fcda4,_0x504aec=this[_0x3d260a(0x1ab)](_0x3d260a(0x1ca)+_0x56c538+_0x3d260a(0x1f5),_0x3d260a(0x1d6),{'content':[{'type':_0x3d260a(0x1f4),'content':_0x1b0955}],'args':_0x4e5ab2});return{'getStream':async()=>{const _0x5582e9=_0x3d260a,_0x548651=(await _0x504aec[_0x5582e9(0x202)])[_0x5582e9(0x1d3)];return this[_0x5582e9(0x217)](_0x548651);},'abortController':_0x504aec[_0x3d260a(0x218)]};}[_0x3fcda4(0x197)]({content:_0x2a5b66,prompt:_0x5e648a,model:_0x5d0e51}){const _0x58ba0c=_0x3fcda4,_0xf347e=this[_0x58ba0c(0x1ab)](_0x58ba0c(0x19c),_0x58ba0c(0x1d6),{'content':[{'type':_0x58ba0c(0x1f4),'content':_0x2a5b66}],'prompt':_0x5e648a,'model':_0x5d0e51});return{'getStream':async()=>{const _0x4eb444=_0x58ba0c,_0xba6589=(await _0xf347e[_0x4eb444(0x202)])[_0x4eb444(0x1d3)];return this[_0x4eb444(0x217)](_0xba6589);},'abortController':_0xf347e[_0x58ba0c(0x218)]};}[_0x3fcda4(0x20a)](_0x3f04e2,_0x441e1a,_0x3deb6d){const _0x432d7e=_0x3fcda4,_0x1026c7=this[_0x432d7e(0x1ab)](_0x432d7e(0x198)+_0x3f04e2+_0x432d7e(0x1e6)+_0x441e1a+_0x432d7e(0x192),_0x432d7e(0x1e4),{'positiveCount':_0x3deb6d[_0x432d7e(0x1d4)],'totalCount':_0x3deb6d[_0x432d7e(0x1a6)],'modificationId':_0x3deb6d[_0x432d7e(0x1b1)]});return{'execute':async()=>{const _0x2be726=_0x432d7e;await _0x1026c7[_0x2be726(0x202)];},'abortController':_0x1026c7[_0x432d7e(0x218)]};}[_0x3fcda4(0x1ec)](_0xf0905,_0x29a2cf,_0x3f637f){const _0x258d3f=_0x3fcda4,_0x4d425a=this[_0x258d3f(0x1ab)](_0x258d3f(0x1bf)+_0xf0905+_0x258d3f(0x1cb)+_0x29a2cf+_0x258d3f(0x192),_0x258d3f(0x1e4),{'positiveCount':_0x3f637f[_0x258d3f(0x1d4)],'totalCount':_0x3f637f[_0x258d3f(0x1a6)]});return{'execute':async()=>{const _0x1a9b7f=_0x258d3f;await _0x4d425a[_0x1a9b7f(0x202)];},'abortController':_0x4d425a[_0x258d3f(0x218)]};}[_0x3fcda4(0x193)](_0xf3bf8,_0x367722){const _0xd4f630=_0x3fcda4,_0x92a657=this[_0xd4f630(0x1ab)](_0xd4f630(0x1fb)+_0xf3bf8+_0xd4f630(0x192),_0xd4f630(0x1e4),{'positiveCount':_0x367722[_0xd4f630(0x1d4)],'totalCount':_0x367722[_0xd4f630(0x1a6)]});return{'execute':async()=>{const _0x35d2f2=_0xd4f630;await _0x92a657[_0x35d2f2(0x202)];},'abortController':_0x92a657[_0xd4f630(0x218)]};}[_0x3fcda4(0x205)](_0x2f107c,_0x5cb066,_0x45c23b,_0x309c3c){const _0x67ecec=_0x3fcda4,_0x2fe165=this[_0x67ecec(0x1ab)](_0x67ecec(0x1ca)+_0x2f107c+_0x67ecec(0x1cb)+_0x5cb066+_0x67ecec(0x192),_0x67ecec(0x1e4),{'positiveCount':_0x45c23b[_0x67ecec(0x1d4)],'totalCount':_0x45c23b[_0x67ecec(0x1a6)],'dataId':_0x309c3c});return{'execute':async()=>{const _0x592223=_0x67ecec;await _0x2fe165[_0x592223(0x202)];},'abortController':_0x2fe165[_0x67ecec(0x218)]};}[_0x3fcda4(0x212)](_0x6f7169,_0x2080d9,_0x4b14d3){const _0x5d29e2=_0x3fcda4,_0x48b752=this[_0x5d29e2(0x1ab)](_0x5d29e2(0x1b9)+_0x6f7169+_0x5d29e2(0x192),_0x5d29e2(0x1e4),{'positiveCount':_0x2080d9[_0x5d29e2(0x1d4)],'totalCount':_0x2080d9[_0x5d29e2(0x1a6)],'dataId':_0x4b14d3});return{'execute':async()=>{const _0x1c43fc=_0x5d29e2;await _0x48b752[_0x1c43fc(0x202)];},'abortController':_0x48b752[_0x5d29e2(0x218)]};}[_0x3fcda4(0x1ab)](_0x43a609,_0x121d0f,_0x3fa836){const _0x4e7679=_0x3fcda4,_0x2d2828=new AbortController(),_0x5e6775=_0x3fa836 instanceof FormData,_0x1b6f65={'Authorization':_0x4e7679(0x1fa)+this[_0x4e7679(0x19a)]?.[_0x4e7679(0x1b2)]};_0x3fa836&&!_0x5e6775&&(_0x1b6f65[_0x4e7679(0x1cf)]=_0x4e7679(0x20e));const _0x1c0f0b={'method':_0x121d0f,'headers':_0x1b6f65,'signal':_0x2d2828[_0x4e7679(0x219)]};return _0x3fa836&&(_0x1c0f0b[_0x4e7679(0x1d3)]=_0x5e6775?_0x3fa836:JSON[_0x4e7679(0x1c7)](_0x3fa836)),{'request':fetch(''+this[_0x4e7679(0x216)]+_0x43a609,_0x1c0f0b)[_0x4e7679(0x1b7)](_0x526907=>{const _0x2089a9=_0x4e7679;this[_0x2089a9(0x1bd)](_0x526907);})[_0x4e7679(0x1fe)](_0x18dc0b=>_0x18dc0b['ok']?_0x18dc0b:_0x18dc0b[_0x4e7679(0x1c9)]()[_0x4e7679(0x1fe)](_0x359d98=>{const _0xfbc43=_0x4e7679;throw{'url':this[_0xfbc43(0x216)],'path':_0x43a609,'method':_0x121d0f,'body':_0x3fa836,'status':(_0x18dc0b||{})[_0xfbc43(0x1ad)],'statusText':(_0x18dc0b||{})[_0xfbc43(0x1c1)],'code':_0x359d98[_0xfbc43(0x1e2)],'message':_0x359d98[_0xfbc43(0x1c2)],'traceId':_0x359d98[_0xfbc43(0x19e)]};})),'abortController':_0x2d2828};}async*[_0x3fcda4(0x217)](_0x343ee2){const _0x4ec2ad=_0x3fcda4,_0x259942=[],_0x256d09=_0x343ee2[_0x4ec2ad(0x1c8)](),_0x542edf=_0x712941({'onError':_0x143b3f=>{const _0x3b221d=_0x4ec2ad;this[_0x3b221d(0x1bd)](_0x143b3f);},'onEvent':_0x91b9fe=>{const _0x342022=_0x4ec2ad;_0x91b9fe[_0x342022(0x1db)]=JSON[_0x342022(0x1dc)](_0x91b9fe[_0x342022(0x1db)]),_0x259942[_0x342022(0x18e)](_0x91b9fe);}});try{let _0xa71a30=!0x1;for(;!_0xa71a30;){const {done:_0x51b449,value:_0x124da5}=await _0x256d09[_0x4ec2ad(0x1c4)]();_0x51b449&&(_0xa71a30=!0x0),_0x542edf[_0x4ec2ad(0x190)](this[_0x4ec2ad(0x1da)][_0x4ec2ad(0x1ba)](_0x124da5,{'stream':!0x0})),yield*_0x259942,_0x259942[_0x4ec2ad(0x1e8)]=0x0;}}catch(_0x3b9b76){this[_0x4ec2ad(0x1bd)](_0x3b9b76);}finally{_0x256d09[_0x4ec2ad(0x195)](),_0x542edf[_0x4ec2ad(0x215)]();}}[_0x3fcda4(0x1bd)](_0x4a53e7){const _0x19c68b=_0x3fcda4;if(_0x4a53e7 instanceof _0x5c9a53)throw _0x4a53e7;if(_0x4a53e7 instanceof Error&&_0x19c68b(0x1af)===_0x4a53e7[_0x19c68b(0x18f)])throw new _0x5c9a53(_0x19c68b(0x1ce),this,{'originalError':_0x4a53e7});throw new _0x5c9a53(_0x19c68b(0x1be),this,{'originalError':_0x4a53e7});}}
|
|
23
|
+
const _0x3502db=_0x5d02;function _0x5d02(_0x1443b2,_0x296db5){const _0x34b506=_0x34b5();return _0x5d02=function(_0x5d02ce,_0x182d0e){_0x5d02ce=_0x5d02ce-0xb4;let _0x5a4249=_0x34b506[_0x5d02ce];return _0x5a4249;},_0x5d02(_0x1443b2,_0x296db5);}function _0x34b5(){const _0x1118c7=['Content-Type','feed','2870ARrvRq','make-shorter','request','8702joJRdO','/ratings','releaseLock','toString','/conversations?','then','ai-request-failed','length','executeAction','read','push','fetchConversations','upsertCustomAIReviewRating','parse','body','value','1894137NpxSrB','deleteWebResource','status','/conversations/','deleteDocument','improve-writing','100','stringify','/files/','https://ai.cke-cs.com/v1','updateConversation','excludeEmpty','positiveCount','application/json','executeCustomAction','upsertAIActionRating','search','_apiUrl','code','queryAssistant','getReader','fetchConversationMessages','902043iIzMdG','/documents/','7lnCjMz','TRANSLATE','token','/reviews/system/','AbortError','/conversations','394aNrUHn','upsertAIReviewRating','startConversation','/web-resources','MAKE_TONE_FORMAL','fetchDocument','1095402USnjZM','make-tone-casual','pluginName','_decoder','PUT','name','json','callCustomReview','make-tone-formal','/calls','PATCH','_token','/reviews/custom/calls','plugins','get','/actions/custom/calls/','make-longer','catch','modificationId','abortController','limit','/messages/','/web-resources/','CloudServices','1051185Qqmbwm','CONTINUE','continue','/actions/custom/calls','MAKE_TONE_CASUAL','signal','upsertAIChatRating','totalCount','/reviews/custom/calls/','uploadUrl','append','text','fetchConversation','keys','FIX_GRAMMAR','attributes','/actions/system/','context','data','POST','upsertCustomAIActionRating','ai.serviceUrl','reset','statusText','decode','GET','items','isPremiumPlugin','translate','4394184DGHUAk','IMPROVE_WRITING','file','true','callSystemReview','/files','ai-missing-token','isOfficialPlugin','group','_sendApiRequest','/documents','getModels','MAKE_SHORTER','traceId','20YsYMug','init','/models/1?','_getStreamReader','deleteFile','fix-grammar','uploadFile','define','ai-request-aborted','Bearer\x20','56672JoOBkK','config','requires','message','MAKE_LONGER','AIConnector','DELETE','/calls/','language','deleteConversation','_handleError','/messages','uploadDocument'];_0x34b5=function(){return _0x1118c7;};return _0x34b5();}(function(_0x5e62f1,_0xbc0480){const _0xcafa29=_0x5d02,_0x32f2fc=_0x5e62f1();while(!![]){try{const _0x18a116=parseInt(_0xcafa29(0x137))/0x1*(-parseInt(_0xcafa29(0xd2))/0x2)+parseInt(_0xcafa29(0xb4))/0x3+parseInt(_0xcafa29(0x11b))/0x4*(parseInt(_0xcafa29(0xf0))/0x5)+parseInt(_0xcafa29(0xd8))/0x6+-parseInt(_0xcafa29(0xcc))/0x7*(parseInt(_0xcafa29(0x10d))/0x8)+-parseInt(_0xcafa29(0xca))/0x9+-parseInt(_0xcafa29(0x134))/0xa*(-parseInt(_0xcafa29(0x125))/0xb);if(_0x18a116===_0xbc0480)break;else _0x32f2fc['push'](_0x32f2fc['shift']());}catch(_0x33ff97){_0x32f2fc['push'](_0x32f2fc['shift']());}}}(_0x34b5,0xef3f9));import{createParser as _0x54b8c5}from'eventsource-parser';import{ContextPlugin as _0x3e90aa}from'ckeditor5/src/core.js';import{CKEditorError as _0x13d870}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x1065b2){const _0x53bace=_0x5d02;_0x1065b2[_0x53bace(0xf1)]=_0x53bace(0xf2),_0x1065b2[_0x53bace(0xfe)]=_0x53bace(0x120),_0x1065b2[_0x53bace(0x10e)]=_0x53bace(0xb9),_0x1065b2[_0x53bace(0x129)]=_0x53bace(0xe8),_0x1065b2[_0x53bace(0x119)]=_0x53bace(0x135),_0x1065b2[_0x53bace(0xf4)]=_0x53bace(0xd9),_0x1065b2[_0x53bace(0xd6)]=_0x53bace(0xe0),_0x1065b2[_0x53bace(0xcd)]=_0x53bace(0x10c);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x3e90aa{[_0x3502db(0xc5)];[_0x3502db(0xe3)];[_0x3502db(0xdb)];static get[_0x3502db(0x127)](){const _0xb12976=_0x3502db;return[_0xb12976(0xef)];}static get[_0x3502db(0xda)](){const _0x108754=_0x3502db;return _0x108754(0x12a);}static get[_0x3502db(0x114)](){return!0x0;}static get[_0x3502db(0x10b)](){return!0x0;}constructor(_0x2468f6){const _0x2b42c7=_0x3502db;super(_0x2468f6),this[_0x2b42c7(0x101)][_0x2b42c7(0x126)][_0x2b42c7(0x122)](_0x2b42c7(0x105),_0x2b42c7(0xbd)),this[_0x2b42c7(0xc5)]=this[_0x2b42c7(0x101)][_0x2b42c7(0x126)][_0x2b42c7(0xe6)](_0x2b42c7(0x105)),this[_0x2b42c7(0xe3)]=null,this[_0x2b42c7(0xdb)]=new TextDecoder();}[_0x3502db(0x11c)](){const _0x147a5c=_0x3502db,_0x5c4206=this[_0x147a5c(0x101)][_0x147a5c(0xe5)][_0x147a5c(0xe6)](_0x147a5c(0xef));if(!_0x5c4206[_0x147a5c(0xce)])throw new _0x13d870(_0x147a5c(0x113),this);this[_0x147a5c(0xe3)]=_0x5c4206[_0x147a5c(0xce)];}[_0x3502db(0xd4)](_0x2477ac,_0x12c431){const _0x34dc78=_0x3502db,_0x574f6f=this[_0x34dc78(0x116)](_0x34dc78(0xd1),_0x34dc78(0x103),{'id':_0x2477ac,'group':_0x12c431});return{'getConversation':async()=>(await _0x574f6f[_0x34dc78(0x136)])[_0x34dc78(0xde)](),'abortController':_0x574f6f[_0x34dc78(0xeb)]};}[_0x3502db(0xc7)]({message:_0x4cefcf,conversationId:_0x44245e,parts:_0x4865cd,capabilities:_0x14d5de,model:_0x34595a,quickActionData:_0x1031cc}){const _0xedf53e=_0x3502db,_0x4dfe50={..._0x1031cc&&{'quickActionData':_0x1031cc}},_0x38900c={'prompt':_0x4cefcf,'content':_0x4865cd,'model':_0x34595a,..._0x14d5de&&{'capabilities':_0x14d5de},...Object[_0xedf53e(0xfd)](_0x4dfe50)[_0xedf53e(0x13e)]>0x0&&{'attributes':_0x4dfe50}},_0x22e5fc=this[_0xedf53e(0x116)](_0xedf53e(0xb7)+_0x44245e+_0xedf53e(0x130),_0xedf53e(0x103),_0x38900c);return{'getStream':async()=>{const _0x233cf2=_0xedf53e,_0x5393b7=(await _0x22e5fc[_0x233cf2(0x136)])[_0x233cf2(0x145)];return this[_0x233cf2(0x11e)](_0x5393b7);},'abortController':_0x22e5fc[_0xedf53e(0xeb)]};}[_0x3502db(0xc2)]({content:_0xbed303,message:_0x432e66,model:_0x4f3209,outputFormat:_0x151083}){const _0xac3a68=_0x3502db,_0x28e43c={'content':[{'type':_0xac3a68(0xfb),'content':_0xbed303}],'prompt':_0x432e66,'model':_0x4f3209,'outputFormat':_0x151083},_0x421011=this[_0xac3a68(0x116)](_0xac3a68(0xf3),_0xac3a68(0x103),_0x28e43c);return{'getStream':async()=>{const _0x4152b6=_0xac3a68,_0x14bb29=(await _0x421011[_0x4152b6(0x136)])[_0x4152b6(0x145)];return this[_0x4152b6(0x11e)](_0x14bb29);},'abortController':_0x421011[_0xac3a68(0xeb)]};}[_0x3502db(0x13f)]({actionName:_0x4b3992,content:_0x5a2240,args:_0x5df8e7}){const _0x3c2501=_0x3502db,_0x5e3e92={'content':[{'type':_0x3c2501(0xfb),'content':_0x5a2240}],'args':_0x5df8e7},_0x3f5204=this[_0x3c2501(0x116)](_0x3c2501(0x100)+_0x4b3992+_0x3c2501(0xe1),_0x3c2501(0x103),_0x5e3e92);return{'getStream':async()=>{const _0x515b85=_0x3c2501,_0x605e2d=(await _0x3f5204[_0x515b85(0x136)])[_0x515b85(0x145)];return this[_0x515b85(0x11e)](_0x605e2d);},'abortController':_0x3f5204[_0x3c2501(0xeb)]};}[_0x3502db(0x121)](_0x96b8c,_0x16c2c2,_0x530993){const _0x17581a=_0x3502db,_0x3fd3a6=new FormData();_0x3fd3a6[_0x17581a(0xfa)](_0x17581a(0x10f),_0x16c2c2,_0x16c2c2[_0x17581a(0xdd)]),_0x530993&&_0x3fd3a6[_0x17581a(0xfa)](_0x17581a(0xff),JSON[_0x17581a(0xbb)](_0x530993));const _0x5e7371=this[_0x17581a(0x116)](_0x17581a(0xb7)+_0x96b8c+_0x17581a(0x112),_0x17581a(0x103),_0x3fd3a6);return{'getId':async()=>(await _0x5e7371[_0x17581a(0x136)])[_0x17581a(0xde)](),'abortController':_0x5e7371[_0x17581a(0xeb)]};}[_0x3502db(0xd7)](_0x17ae92,_0x4c6562){const _0x5186e9=_0x3502db,_0x4454a4=this[_0x5186e9(0x116)](_0x5186e9(0xb7)+_0x17ae92+_0x5186e9(0xcb)+_0x4c6562,_0x5186e9(0x109));return{'getDocument':async()=>(await _0x4454a4[_0x5186e9(0x136)])[_0x5186e9(0xde)](),'abortController':_0x4454a4[_0x5186e9(0xeb)]};}[_0x3502db(0x131)](_0x503943,_0x54b4ef,_0x4ad970){const _0x3dea54=_0x3502db,_0x1be3e6={'content':_0x54b4ef};_0x4ad970&&(_0x1be3e6[_0x3dea54(0xff)]=_0x4ad970);const _0x2b22b1=this[_0x3dea54(0x116)](_0x3dea54(0xb7)+_0x503943+_0x3dea54(0x117),_0x3dea54(0x103),_0x1be3e6);return{'getId':async()=>(await _0x2b22b1[_0x3dea54(0x136)])[_0x3dea54(0xde)](),'abortController':_0x2b22b1[_0x3dea54(0xeb)]};}[_0x3502db(0x142)](_0x23e1cf,_0x5b6904){const _0x434f7d=_0x3502db,_0x27504c=new URLSearchParams();_0x27504c[_0x434f7d(0xfa)](_0x434f7d(0xbf),_0x434f7d(0x110)),_0x27504c[_0x434f7d(0xfa)](_0x434f7d(0xec),_0x434f7d(0xba)),_0x27504c[_0x434f7d(0xfa)](_0x434f7d(0x115),_0x23e1cf),_0x5b6904&&_0x27504c[_0x434f7d(0xfa)](_0x434f7d(0xc4),_0x5b6904);const _0x2b5f6b=this[_0x434f7d(0x116)](_0x434f7d(0x13b)+_0x27504c[_0x434f7d(0x13a)](),_0x434f7d(0x109));return{'getConversations':async()=>{const _0x5163dd=_0x434f7d,_0x19b40b=await _0x2b5f6b[_0x5163dd(0x136)];return(await _0x19b40b[_0x5163dd(0xde)]())[_0x5163dd(0x10a)];},'abortController':_0x2b5f6b[_0x434f7d(0xeb)]};}[_0x3502db(0x12e)](_0x4958bb){const _0x48b81a=_0x3502db,_0xf3e448=this[_0x48b81a(0x116)](_0x48b81a(0xb7)+_0x4958bb,_0x48b81a(0x12b));return{'execute':async()=>{const _0x2e81b6=_0x48b81a;await _0xf3e448[_0x2e81b6(0x136)];},'abortController':_0xf3e448[_0x48b81a(0xeb)]};}[_0x3502db(0xbe)](_0x2311b9,_0x52a7f0){const _0x3411c7=_0x3502db,_0x1d0058=this[_0x3411c7(0x116)](_0x3411c7(0xb7)+_0x2311b9,_0x3411c7(0xe2),_0x52a7f0);return{'getResult':async()=>(await _0x1d0058[_0x3411c7(0x136)],_0x52a7f0),'abortController':_0x1d0058[_0x3411c7(0xeb)]};}[_0x3502db(0xfc)](_0x16f723){const _0x1c52cc=_0x3502db,_0x2acce7=this[_0x1c52cc(0x116)](_0x1c52cc(0xb7)+_0x16f723,_0x1c52cc(0x109));return{'getConversation':async()=>(await _0x2acce7[_0x1c52cc(0x136)])[_0x1c52cc(0xde)](),'abortController':_0x2acce7[_0x1c52cc(0xeb)]};}[_0x3502db(0xc9)](_0x4c8ec4){const _0x5c7a31=_0x3502db,_0x347289=this[_0x5c7a31(0x116)](_0x5c7a31(0xb7)+_0x4c8ec4+_0x5c7a31(0x130),_0x5c7a31(0x109));return{'getMessages':async()=>{const _0x3f804a=_0x5c7a31,_0x549a6e=await _0x347289[_0x3f804a(0x136)];return(await _0x549a6e[_0x3f804a(0xde)]())[_0x3f804a(0x10a)];},'abortController':_0x347289[_0x5c7a31(0xeb)]};}[_0x3502db(0xf9)](_0xcc0ed4,_0x4ed19e,_0x571c6f){const _0x262cf9=_0x3502db,_0xd401dd=this[_0x262cf9(0x116)](_0x262cf9(0xb7)+_0xcc0ed4+_0x262cf9(0xd5),_0x262cf9(0x103),{'url':_0x4ed19e,'attributes':_0x571c6f});return{'getId':async()=>(await _0xd401dd[_0x262cf9(0x136)])[_0x262cf9(0xde)](),'abortController':_0xd401dd[_0x262cf9(0xeb)]};}[_0x3502db(0x118)](_0x2e6665='en'){const _0x4bce7f=_0x3502db,_0x9a61f7=new URLSearchParams();_0x9a61f7[_0x4bce7f(0xfa)](_0x4bce7f(0x12d),_0x2e6665);const _0x1cd439=_0x4bce7f(0x11d)+_0x9a61f7[_0x4bce7f(0x13a)](),_0x2a581d=this[_0x4bce7f(0x116)](_0x1cd439,_0x4bce7f(0x109));return{'list':async()=>await(await _0x2a581d[_0x4bce7f(0x136)])[_0x4bce7f(0xde)](),'abortController':_0x2a581d[_0x4bce7f(0xeb)]};}[_0x3502db(0x11f)](_0x1a6a95,_0x1043f5){const _0x482461=_0x3502db,_0x5564bd=this[_0x482461(0x116)](_0x482461(0xb7)+_0x1a6a95+_0x482461(0xbc)+_0x1043f5,_0x482461(0x12b));return{'execute':async()=>{const _0x56397e=_0x482461;await _0x5564bd[_0x56397e(0x136)];},'abortController':_0x5564bd[_0x482461(0xeb)]};}[_0x3502db(0xb8)](_0x5a66fb,_0x2f6b49){const _0x1874c7=_0x3502db,_0x411949=this[_0x1874c7(0x116)](_0x1874c7(0xb7)+_0x5a66fb+_0x1874c7(0xcb)+_0x2f6b49,_0x1874c7(0x12b));return{'execute':async()=>{const _0x249077=_0x1874c7;await _0x411949[_0x249077(0x136)];},'abortController':_0x411949[_0x1874c7(0xeb)]};}[_0x3502db(0xb5)](_0x3e11bf,_0x16cfc6){const _0x480b4a=_0x3502db,_0x5eb1bb=this[_0x480b4a(0x116)](_0x480b4a(0xb7)+_0x3e11bf+_0x480b4a(0xee)+_0x16cfc6,_0x480b4a(0x12b));return{'execute':async()=>{const _0x2a8297=_0x480b4a;await _0x5eb1bb[_0x2a8297(0x136)];},'abortController':_0x5eb1bb[_0x480b4a(0xeb)]};}[_0x3502db(0x111)]({reviewName:_0x9aa8a3,content:_0x516cfd,args:_0x2868f2}){const _0x5c9cbf=_0x3502db,_0x144e11=this[_0x5c9cbf(0x116)](_0x5c9cbf(0xcf)+_0x9aa8a3+_0x5c9cbf(0xe1),_0x5c9cbf(0x103),{'content':[{'type':_0x5c9cbf(0xfb),'content':_0x516cfd}],'args':_0x2868f2});return{'getStream':async()=>{const _0x4f2b88=_0x5c9cbf,_0x56dc09=(await _0x144e11[_0x4f2b88(0x136)])[_0x4f2b88(0x145)];return this[_0x4f2b88(0x11e)](_0x56dc09);},'abortController':_0x144e11[_0x5c9cbf(0xeb)]};}[_0x3502db(0xdf)]({content:_0x48aa92,prompt:_0x217ec2,model:_0x24097b}){const _0x25eab9=_0x3502db,_0x4be3e4=this[_0x25eab9(0x116)](_0x25eab9(0xe4),_0x25eab9(0x103),{'content':[{'type':_0x25eab9(0xfb),'content':_0x48aa92}],'prompt':_0x217ec2,'model':_0x24097b});return{'getStream':async()=>{const _0xee2aa0=_0x25eab9,_0x30f05e=(await _0x4be3e4[_0xee2aa0(0x136)])[_0xee2aa0(0x145)];return this[_0xee2aa0(0x11e)](_0x30f05e);},'abortController':_0x4be3e4[_0x25eab9(0xeb)]};}[_0x3502db(0xf6)](_0x3454d1,_0x580389,_0x1fd186){const _0x4b97bd=_0x3502db,_0x164c1d=this[_0x4b97bd(0x116)](_0x4b97bd(0xb7)+_0x3454d1+_0x4b97bd(0xed)+_0x580389+_0x4b97bd(0x138),_0x4b97bd(0xdc),{'positiveCount':_0x1fd186[_0x4b97bd(0xc0)],'totalCount':_0x1fd186[_0x4b97bd(0xf7)],'modificationId':_0x1fd186[_0x4b97bd(0xea)]});return{'execute':async()=>{const _0x274b86=_0x4b97bd;await _0x164c1d[_0x274b86(0x136)];},'abortController':_0x164c1d[_0x4b97bd(0xeb)]};}[_0x3502db(0xc3)](_0x53f4eb,_0x209d11,_0x3d0ab6){const _0x396c62=_0x3502db,_0x39a2ef=this[_0x396c62(0x116)](_0x396c62(0x100)+_0x53f4eb+_0x396c62(0x12c)+_0x209d11+_0x396c62(0x138),_0x396c62(0xdc),{'positiveCount':_0x3d0ab6[_0x396c62(0xc0)],'totalCount':_0x3d0ab6[_0x396c62(0xf7)]});return{'execute':async()=>{const _0x503367=_0x396c62;await _0x39a2ef[_0x503367(0x136)];},'abortController':_0x39a2ef[_0x396c62(0xeb)]};}[_0x3502db(0x104)](_0x275955,_0xf1ea32){const _0xd1c1cc=_0x3502db,_0x4fe1f1=this[_0xd1c1cc(0x116)](_0xd1c1cc(0xe7)+_0x275955+_0xd1c1cc(0x138),_0xd1c1cc(0xdc),{'positiveCount':_0xf1ea32[_0xd1c1cc(0xc0)],'totalCount':_0xf1ea32[_0xd1c1cc(0xf7)]});return{'execute':async()=>{const _0x4b068f=_0xd1c1cc;await _0x4fe1f1[_0x4b068f(0x136)];},'abortController':_0x4fe1f1[_0xd1c1cc(0xeb)]};}[_0x3502db(0xd3)](_0x2d5bd8,_0x2c31e6,_0x148246,_0x2810ac){const _0x16bd23=_0x3502db,_0x405707=this[_0x16bd23(0x116)](_0x16bd23(0xcf)+_0x2d5bd8+_0x16bd23(0x12c)+_0x2c31e6+_0x16bd23(0x138),_0x16bd23(0xdc),{'positiveCount':_0x148246[_0x16bd23(0xc0)],'totalCount':_0x148246[_0x16bd23(0xf7)],'dataId':_0x2810ac});return{'execute':async()=>{const _0x24e70a=_0x16bd23;await _0x405707[_0x24e70a(0x136)];},'abortController':_0x405707[_0x16bd23(0xeb)]};}[_0x3502db(0x143)](_0x49ee1d,_0x4d49e4,_0xf6e14f){const _0x37812c=_0x3502db,_0x2bd708=this[_0x37812c(0x116)](_0x37812c(0xf8)+_0x49ee1d+_0x37812c(0x138),_0x37812c(0xdc),{'positiveCount':_0x4d49e4[_0x37812c(0xc0)],'totalCount':_0x4d49e4[_0x37812c(0xf7)],'dataId':_0xf6e14f});return{'execute':async()=>{const _0x26a93f=_0x37812c;await _0x2bd708[_0x26a93f(0x136)];},'abortController':_0x2bd708[_0x37812c(0xeb)]};}[_0x3502db(0x116)](_0x6eda3f,_0x187981,_0x6eb051){const _0x7d9143=_0x3502db,_0xe76ff=new AbortController(),_0x302b09=_0x6eb051 instanceof FormData,_0x14a1c7={'Authorization':_0x7d9143(0x124)+this[_0x7d9143(0xe3)]?.[_0x7d9143(0x146)]};_0x6eb051&&!_0x302b09&&(_0x14a1c7[_0x7d9143(0x132)]=_0x7d9143(0xc1));const _0x32d06a={'method':_0x187981,'headers':_0x14a1c7,'signal':_0xe76ff[_0x7d9143(0xf5)]};return _0x6eb051&&(_0x32d06a[_0x7d9143(0x145)]=_0x302b09?_0x6eb051:JSON[_0x7d9143(0xbb)](_0x6eb051)),{'request':fetch(''+this[_0x7d9143(0xc5)]+_0x6eda3f,_0x32d06a)[_0x7d9143(0xe9)](_0x4f6bb1=>{const _0x224686=_0x7d9143;this[_0x224686(0x12f)](_0x4f6bb1);})[_0x7d9143(0x13c)](_0x42bac1=>_0x42bac1['ok']?_0x42bac1:_0x42bac1[_0x7d9143(0xde)]()[_0x7d9143(0x13c)](_0x34f95f=>{const _0xe95265=_0x7d9143;throw{'url':this[_0xe95265(0xc5)],'path':_0x6eda3f,'method':_0x187981,'body':_0x6eb051,'status':(_0x42bac1||{})[_0xe95265(0xb6)],'statusText':(_0x42bac1||{})[_0xe95265(0x107)],'code':_0x34f95f[_0xe95265(0xc6)],'message':_0x34f95f[_0xe95265(0x128)],'traceId':_0x34f95f[_0xe95265(0x11a)]};})),'abortController':_0xe76ff};}async*[_0x3502db(0x11e)](_0x4d66fa){const _0x1946d7=_0x3502db,_0x4c098d=[],_0x4f011a=_0x4d66fa[_0x1946d7(0xc8)](),_0x4f8746=_0x54b8c5({'onError':_0x44c2f1=>{const _0x56e3d4=_0x1946d7;this[_0x56e3d4(0x12f)](_0x44c2f1);},'onEvent':_0x3bef98=>{const _0x1c38e9=_0x1946d7;_0x3bef98[_0x1c38e9(0x102)]=JSON[_0x1c38e9(0x144)](_0x3bef98[_0x1c38e9(0x102)]),_0x4c098d[_0x1c38e9(0x141)](_0x3bef98);}});try{let _0x15cf3c=!0x1;for(;!_0x15cf3c;){const {done:_0x96ca55,value:_0x8cd7f6}=await _0x4f011a[_0x1946d7(0x140)]();_0x96ca55&&(_0x15cf3c=!0x0),_0x4f8746[_0x1946d7(0x133)](this[_0x1946d7(0xdb)][_0x1946d7(0x108)](_0x8cd7f6,{'stream':!0x0})),yield*_0x4c098d,_0x4c098d[_0x1946d7(0x13e)]=0x0;}}catch(_0x4333e5){this[_0x1946d7(0x12f)](_0x4333e5);}finally{_0x4f011a[_0x1946d7(0x139)](),_0x4f8746[_0x1946d7(0x106)]();}}[_0x3502db(0x12f)](_0x1b1c84){const _0x3b5acf=_0x3502db;if(_0x1b1c84 instanceof _0x13d870)throw _0x1b1c84;if(_0x1b1c84 instanceof Error&&_0x3b5acf(0xd0)===_0x1b1c84[_0x3b5acf(0xdd)])throw new _0x13d870(_0x3b5acf(0x123),this,{'originalError':_0x1b1c84});throw new _0x13d870(_0x3b5acf(0x13d),this,{'originalError':_0x1b1c84});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x269a8f=_0x52f6;(function(_0x5d6d8c,_0x3e45e2){const _0x49de89=_0x52f6,_0xb0e216=_0x5d6d8c();while(!![]){try{const _0x5229ec=parseInt(_0x49de89(0x222))/0x1*(-parseInt(_0x49de89(0x1f3))/0x2)+parseInt(_0x49de89(0x22b))/0x3*(-parseInt(_0x49de89(0x250))/0x4)+parseInt(_0x49de89(0x226))/0x5*(parseInt(_0x49de89(0x204))/0x6)+-parseInt(_0x49de89(0x237))/0x7*(-parseInt(_0x49de89(0x200))/0x8)+parseInt(_0x49de89(0x235))/0x9+-parseInt(_0x49de89(0x211))/0xa+parseInt(_0x49de89(0x218))/0xb*(parseInt(_0x49de89(0x21e))/0xc);if(_0x5229ec===_0x3e45e2)break;else _0xb0e216['push'](_0xb0e216['shift']());}catch(_0x13f653){_0xb0e216['push'](_0xb0e216['shift']());}}}(_0x58f1,0x1e72c));import{ViewDowncastWriter as _0x576f8c}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x460c7a,Editor as _0x295219}from'ckeditor5/src/core.js';import{uid as _0x5dfa10}from'ckeditor5/src/utils.js';function _0x58f1(){const _0x223515=['conversion','element','AIEditing',':end></','_sessionId','isOfficialPlugin','change','editors','getDocumentData','$textProxy','length','data-id','createRangeIn','plugins','toData','from','emptyElement','32IEnpbB','createRange','markerName','isOpening','trim','getRoot','for','pluginName','getLastMatchingPosition','isPremiumPlugin','convertAiChatSelectionMarker','getSelectionText','isBefore','addMarker','42CEkqps','sort','_setDataIdsOnChildren','toView','setAttribute','model','dataDowncast','document','editingDowncast','markers','createUIElement','indexOf','listenTo','32APMkPs','markerToElement','push','ai-selection','738jcdhOP','RealTimeCollaborationClient','isAtEnd','view','ai-selection:','join','sessionId','version','_nextDataId','context','ck-fake-ai-selection','_getMarkersInDocumentOrder','editing','1841330ugQosH',':start>','start','markerToHighlight','get',':start></','getChildren','919314bEvESN','isContent','end','removeAllRanges','hideFakeVisualSelection','add','36MruKFl',':end>','afterInit','getSelectedContent','9323WwhOHu','schema','data','ck-ai-assistant-ui_theme','4985wTxEje','selection','ready','containerElement','getMarkersGroup','67863lIXgAJ','getWalker','floor','isAfter','getSelection','showFakeVisualSelection','processor','getStart','_integrateEditor','has','934155KfhMOY','removeMarker','364791vhOAbb','fromCharCode','random','modelToViewWithIds','_displayedFakeSelectionLocked','_displayedFakeSelectionId','name','substring'];_0x58f1=function(){return _0x223515;};return _0x58f1();}import{getEditorFromContext as _0x165b8e}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x269a8f(0x203);function _0x52f6(_0x74983a,_0x22636e){const _0x58f1b5=_0x58f1();return _0x52f6=function(_0x52f68d,_0x273ed2){_0x52f68d=_0x52f68d-0x1f0;let _0x370a43=_0x58f1b5[_0x52f68d];return _0x370a43;},_0x52f6(_0x74983a,_0x22636e);}export class AIEditing extends _0x460c7a{[_0x269a8f(0x23c)]=null;[_0x269a8f(0x23b)]=!0x1;[_0x269a8f(0x243)];static get[_0x269a8f(0x257)](){const _0x2851f9=_0x269a8f;return _0x2851f9(0x241);}static get[_0x269a8f(0x244)](){return!0x0;}static get[_0x269a8f(0x259)](){return!0x0;}get[_0x269a8f(0x20a)](){const _0x6b7cb8=_0x269a8f;if(!this[_0x6b7cb8(0x243)]){const _0xf5dd6b=_0x165b8e(this[_0x6b7cb8(0x20d)]),_0xf8590f=_0xf5dd6b[_0x6b7cb8(0x24c)][_0x6b7cb8(0x234)](_0x6b7cb8(0x205))&&_0xf5dd6b[_0x6b7cb8(0x24c)][_0x6b7cb8(0x215)](_0x6b7cb8(0x205))[_0x6b7cb8(0x20a)];this[_0x6b7cb8(0x243)]=_0xf8590f||_0x5dfa10();}return this[_0x6b7cb8(0x243)];}[_0x269a8f(0x247)](){const _0x14267f=_0x269a8f,_0x3aba3b=_0x165b8e(this[_0x14267f(0x20d)]),_0x5592e4=_0x3aba3b[_0x14267f(0x1f8)],_0x3c4989=_0x3aba3b[_0x14267f(0x224)][_0x14267f(0x1f6)](_0x5592e4[_0x14267f(0x1fa)][_0x14267f(0x255)](),{'convertAiChatSelectionMarker':!0x0}),_0x253fb8=new _0x576f8c(_0x3aba3b[_0x14267f(0x210)][_0x14267f(0x207)][_0x14267f(0x1fa)]);this[_0x14267f(0x1f5)](_0x3c4989,_0x253fb8);let _0x3cdf45=_0x3aba3b[_0x14267f(0x224)][_0x14267f(0x231)][_0x14267f(0x24d)](_0x3c4989);const _0x3e69c7=this[_0x14267f(0x20f)](),_0x5d35ae=[];for(const _0x598e98 of _0x3e69c7){const _0x5bb108='<'+_0x598e98[_0x14267f(0x23d)]+_0x14267f(0x216)+_0x598e98[_0x14267f(0x23d)]+_0x14267f(0x212),_0x5eee13=_0x3cdf45[_0x14267f(0x1fe)](_0x5bb108);_0x3cdf45=_0x3cdf45[_0x14267f(0x23e)](0x0,_0x5eee13)+_0x3cdf45[_0x14267f(0x23e)](_0x5eee13+_0x5bb108[_0x14267f(0x249)]);const _0x591e58='<'+_0x598e98[_0x14267f(0x23d)]+_0x14267f(0x242)+_0x598e98[_0x14267f(0x23d)]+_0x14267f(0x21f),_0x5c18ce=_0x3cdf45[_0x14267f(0x1fe)](_0x591e58);_0x3cdf45=_0x3cdf45[_0x14267f(0x23e)](0x0,_0x5c18ce)+_0x3cdf45[_0x14267f(0x23e)](_0x5c18ce+_0x591e58[_0x14267f(0x249)]),_0x5d35ae[_0x14267f(0x202)]({'markerName':_0x598e98[_0x14267f(0x23d)],'start':_0x5eee13,'end':_0x5c18ce,'htmlFragment':_0x3cdf45[_0x14267f(0x23e)](_0x5eee13,_0x5c18ce)});}return{'content':_0x3cdf45,'version':_0x3aba3b[_0x14267f(0x1f8)][_0x14267f(0x1fa)][_0x14267f(0x20b)],'sessionId':this[_0x14267f(0x20a)],'selections':_0x5d35ae};}async[_0x269a8f(0x220)](){const _0xaeca16=_0x269a8f;this[_0xaeca16(0x20d)]instanceof _0x295219?this[_0xaeca16(0x233)](this[_0xaeca16(0x20d)]):this[_0xaeca16(0x1ff)](this[_0xaeca16(0x20d)][_0xaeca16(0x246)],_0xaeca16(0x21d),(_0x50e0dd,_0x399402)=>{const _0x1e55e4=_0xaeca16;_0x399402['on'](_0x1e55e4(0x228),()=>{const _0x3b852d=_0x1e55e4;this[_0x3b852d(0x233)](_0x399402);});});}[_0x269a8f(0x233)](_0x43d50a){const _0x380a74=_0x269a8f;_0x43d50a[_0x380a74(0x23f)][_0x380a74(0x256)](_0x380a74(0x1fb))[_0x380a74(0x214)]({'model':_0x380a74(0x203),'view':{'classes':[_0x380a74(0x20e),_0x380a74(0x225)],'priority':0xc}}),_0x43d50a[_0x380a74(0x23f)][_0x380a74(0x256)](_0x380a74(0x1f9))[_0x380a74(0x201)]({'model':_0x380a74(0x203),'view':(_0x18187b,{writer:_0x51974c,options:_0x45119d})=>_0x45119d[_0x380a74(0x25a)]?_0x51974c[_0x380a74(0x1fd)](_0x18187b[_0x380a74(0x252)]+':'+(_0x18187b[_0x380a74(0x253)]?_0x380a74(0x213):_0x380a74(0x21a))):null});}[_0x269a8f(0x230)](_0x4b066,_0xd6341b,_0x17dcce=!0x1,_0x265952=!0x1){const _0x466909=_0x269a8f;if(this[_0x466909(0x23b)]&&!_0x265952)return!0x1;const _0x569ab2=_0x165b8e(this[_0x466909(0x20d)])[_0x466909(0x1f8)];return _0x569ab2[_0x466909(0x245)](_0x103420=>{const _0x36352c=_0x466909;this[_0x36352c(0x23c)]&&this[_0x36352c(0x21c)](this[_0x36352c(0x23c)]),this[_0x36352c(0x23c)]=_0xd6341b,this[_0x36352c(0x23b)]=_0x17dcce;let _0x483742=0x0;for(let _0x596b39 of _0x4b066){const _0x4ab114=_0x36352c(0x208)+_0x483742;if(_0x596b39[_0x36352c(0x213)][_0x36352c(0x206)]){const _0x25c12d=_0x596b39[_0x36352c(0x213)][_0x36352c(0x258)](({item:_0x537fe6})=>!_0x569ab2[_0x36352c(0x223)][_0x36352c(0x219)](_0x537fe6),{'boundaries':_0x596b39});_0x596b39=_0x103420[_0x36352c(0x251)](_0x25c12d,_0x596b39[_0x36352c(0x21a)]);}_0x103420[_0x36352c(0x1f2)](_0x4ab114,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x596b39}),_0x483742++;}}),window[_0x466909(0x22f)]()?.[_0x466909(0x21b)](),!0x0;}[_0x269a8f(0x21c)](_0x180747){const _0x516f37=_0x269a8f;if(this[_0x516f37(0x23c)]!=_0x180747)return!0x1;this[_0x516f37(0x23c)]=null,this[_0x516f37(0x23b)]=!0x1;const _0x1f92b9=_0x165b8e(this[_0x516f37(0x20d)]),_0x55d0d5=_0x1f92b9[_0x516f37(0x1f8)][_0x516f37(0x1fc)][_0x516f37(0x22a)](_0x516f37(0x203));return _0x1f92b9[_0x516f37(0x1f8)][_0x516f37(0x245)](_0x3b599a=>{const _0x591f84=_0x516f37;for(const _0x3b4c01 of _0x55d0d5)_0x3b599a[_0x591f84(0x236)](_0x3b4c01);}),!0x0;}[_0x269a8f(0x23a)](_0xdbfa7e){const _0x4536a2=_0x269a8f,_0x466782=_0x165b8e(this[_0x4536a2(0x20d)]),_0x7ce902=_0x466782[_0x4536a2(0x224)][_0x4536a2(0x1f6)](_0xdbfa7e),_0x162380=new _0x576f8c(_0x466782[_0x4536a2(0x210)][_0x4536a2(0x207)][_0x4536a2(0x1fa)]);return this[_0x4536a2(0x1f5)](_0x7ce902,_0x162380),_0x7ce902;}[_0x269a8f(0x1f5)](_0xd16441,_0x2c471a){const _0x27a4c8=_0x269a8f;let _0x26fdfe=!0x1;const _0x35b2a2=new Set();for(const _0x12345e of _0xd16441[_0x27a4c8(0x217)]()){const _0xcb86b8=_0x12345e['is'](_0x27a4c8(0x24f))||_0x12345e['is'](_0x27a4c8(0x229));if(!_0x12345e['is'](_0x27a4c8(0x240)))continue;(this[_0x27a4c8(0x1f5)](_0x12345e,_0x2c471a)||_0xcb86b8)&&(_0x2c471a[_0x27a4c8(0x1f7)](_0x27a4c8(0x24a),this[_0x27a4c8(0x20c)](_0x35b2a2),_0x12345e),_0x26fdfe=!0x0);}return _0x26fdfe;}[_0x269a8f(0x20c)](_0x14174f){const _0x4c6810=_0x269a8f;let _0x4cad0b;do{_0x4cad0b='';for(let _0x4b2d07=0x0;_0x4b2d07<0x4;_0x4b2d07++)_0x4cad0b+=String[_0x4c6810(0x238)](0x61+Math[_0x4c6810(0x22d)](0x1a*Math[_0x4c6810(0x239)]()));}while(_0x14174f[_0x4c6810(0x234)](_0x4cad0b));return _0x14174f[_0x4c6810(0x21d)](_0x4cad0b),_0x4cad0b;}[_0x269a8f(0x1f0)](){const _0x1de4e7=_0x269a8f,{model:_0x57ec32}=_0x165b8e(this[_0x1de4e7(0x20d)]),_0x97c699=_0x57ec32[_0x1de4e7(0x1fa)][_0x1de4e7(0x227)],_0x2e2928=_0x57ec32[_0x1de4e7(0x221)](_0x97c699),_0x57a133=[],_0x38ad74=_0x57ec32[_0x1de4e7(0x24b)](_0x2e2928)[_0x1de4e7(0x22c)]();for(const {item:_0x43d2a8}of _0x38ad74)_0x43d2a8['is'](_0x1de4e7(0x248))?_0x57a133[_0x1de4e7(0x202)](_0x43d2a8[_0x1de4e7(0x224)]):_0x43d2a8['is'](_0x1de4e7(0x240))&&_0x57a133[_0x1de4e7(0x249)]>0x0&&'\x20'!==_0x57a133[_0x57a133[_0x1de4e7(0x249)]-0x1]&&_0x57a133[_0x1de4e7(0x202)]('\x20');return'\x22'+_0x57a133[_0x1de4e7(0x209)]('')[_0x1de4e7(0x254)]()+'\x22';}[_0x269a8f(0x20f)](){const _0x4701a6=_0x269a8f,_0x729900=_0x165b8e(this[_0x4701a6(0x20d)])[_0x4701a6(0x1f8)];return Array[_0x4701a6(0x24e)](_0x729900[_0x4701a6(0x1fc)][_0x4701a6(0x22a)](_0x4701a6(0x203)))[_0x4701a6(0x1f4)]((_0xd8bd11,_0x3de6af)=>_0xd8bd11[_0x4701a6(0x232)]()[_0x4701a6(0x1f1)](_0x3de6af[_0x4701a6(0x232)]())?-0x1:_0xd8bd11[_0x4701a6(0x232)]()[_0x4701a6(0x22e)](_0x3de6af[_0x4701a6(0x232)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x344880=_0x2d08;function _0x2d08(_0x36e883,_0x3aa10e){const _0x33ffec=_0x33ff();return _0x2d08=function(_0x2d087e,_0x19fa6c){_0x2d087e=_0x2d087e-0x16a;let _0x3125bd=_0x33ffec[_0x2d087e];return _0x3125bd;},_0x2d08(_0x36e883,_0x3aa10e);}(function(_0x5b37f5,_0x2eb968){const _0x46d345=_0x2d08,_0x342c8e=_0x5b37f5();while(!![]){try{const _0xef1b7c=parseInt(_0x46d345(0x16e))/0x1*(parseInt(_0x46d345(0x181))/0x2)+parseInt(_0x46d345(0x17d))/0x3+parseInt(_0x46d345(0x173))/0x4*(parseInt(_0x46d345(0x180))/0x5)+parseInt(_0x46d345(0x176))/0x6*(-parseInt(_0x46d345(0x177))/0x7)+-parseInt(_0x46d345(0x182))/0x8*(parseInt(_0x46d345(0x184))/0x9)+parseInt(_0x46d345(0x16d))/0xa+-parseInt(_0x46d345(0x179))/0xb;if(_0xef1b7c===_0x2eb968)break;else _0x342c8e['push'](_0x342c8e['shift']());}catch(_0x4ecb9f){_0x342c8e['push'](_0x342c8e['shift']());}}}(_0x33ff,0x79596));import{EmitterMixin as _0x1c8c35}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x344880(0x17f)];export class AICapabilities extends _0x1c8c35(){[_0x344880(0x17b)];[_0x344880(0x171)];constructor(){const _0x2d107d=_0x344880;super(),this[_0x2d107d(0x17b)]=!0x1,this[_0x2d107d(0x171)]=!0x1;}[_0x344880(0x17a)](){const _0x12a3bd=_0x344880;this[_0x12a3bd(0x16b)]();}[_0x344880(0x16b)](){const _0x1433d4=_0x344880;this[_0x1433d4(0x183)](!0x1),this[_0x1433d4(0x172)](!0x1);}[_0x344880(0x178)](){const _0x3edfc1=_0x344880;return{'isWebSearchEnabled':this[_0x3edfc1(0x17b)],'isReasoningEnabled':this[_0x3edfc1(0x171)]};}static[_0x344880(0x175)](_0x3a6bf0){const _0x15a53b=_0x344880,_0x24e987={};return _0x3a6bf0&&_0x3a6bf0[_0x15a53b(0x16f)]&&(_0x24e987[_0x15a53b(0x17c)]={}),_0x3a6bf0&&_0x3a6bf0[_0x15a53b(0x17e)]&&(_0x24e987[_0x15a53b(0x16c)]={}),_0x24e987;}[_0x344880(0x16a)](){const _0x23f996=_0x344880;this[_0x23f996(0x183)](!this[_0x23f996(0x17b)]);}[_0x344880(0x170)](){const _0x43834f=_0x344880;this[_0x43834f(0x172)](!this[_0x43834f(0x171)]);}[_0x344880(0x183)](_0x431efc){const _0x5504b2=_0x344880;_0x431efc!==this[_0x5504b2(0x17b)]&&(this[_0x5504b2(0x17b)]=_0x431efc,this[_0x5504b2(0x174)](_0x5504b2(0x17f),this[_0x5504b2(0x178)]()));}[_0x344880(0x172)](_0x464ced){const _0x397e31=_0x344880;_0x464ced!==this[_0x397e31(0x171)]&&(this[_0x397e31(0x171)]=_0x464ced,this[_0x397e31(0x174)](_0x397e31(0x17f),this[_0x397e31(0x178)]()));}}function _0x33ff(){const _0x215702=['toggleReasoning','_isReasoningEnabled','setReasoning','1841304CHAyWA','fire','getCapabilitiesRequestData','35442aCYqlP','1022OwmxnI','getCapabilitiesConfig','16794151uOYFbf','init','_isWebSearchEnabled','webSearch','2688159aJzkwX','isReasoningEnabled','capabilitiesUpdated','5ZvTnlb','127970lEbROj','3528reNYTv','setWebSearch','4761Qnmagu','toggleWebSearch','reset','reasoning','8033440zkjCMi','15kXnVRT','isWebSearchEnabled'];_0x33ff=function(){return _0x215702;};return _0x33ff();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5df4(){const _0x34a33e=['abort','sources','reasoningStarted','interactionCreated','setConversationTitle','getDocumentContext','interactionStarted','fire','isStopped','currentRequest','interactionStopped','getReply','start','forEach','web-search','846204TvnAZY','webSearchStarted','getStream','stop','error','isDestroyed','action-metadata','abortController','stopListening','message-metadata','data','webSearchFinished','callId','modification-delta','replies','_isReasoning','_finalizeInteraction','find','source','5135288qfGwRX','editor','conversationTitle','reasoning','content','splice','appendContent','1687259ROnvnP','replyContentUpdated','interactionDestroyed','currentReply','actionCallId','ai-chat-interaction-error','293784OkQWpb','destroy','length','event','textDelta','_isWebSearching','connector','delegate','done','3009162cJUcNA','replyChangeGroupStateUpdated','push','5QjsEhp','205814WBkXlK','createReply','messageId','1314668xuBNGQ','replyCreated','reasoningFinished','sendRequest','interactionFinished'];_0x5df4=function(){return _0x34a33e;};return _0x5df4();}function _0x221c(_0x1eb16b,_0x1714cc){const _0x5df4fb=_0x5df4();return _0x221c=function(_0x221c65,_0x5a8f02){_0x221c65=_0x221c65-0x12e;let _0x59e911=_0x5df4fb[_0x221c65];return _0x59e911;},_0x221c(_0x1eb16b,_0x1714cc);}const _0x101165=_0x221c;(function(_0x5ab553,_0x531df9){const _0x59f274=_0x221c,_0x449dcc=_0x5ab553();while(!![]){try{const _0x45a827=parseInt(_0x59f274(0x15b))/0x1+-parseInt(_0x59f274(0x12e))/0x2+-parseInt(_0x59f274(0x14e))/0x3+parseInt(_0x59f274(0x15e))/0x4*(-parseInt(_0x59f274(0x15a))/0x5)+parseInt(_0x59f274(0x157))/0x6+-parseInt(_0x59f274(0x148))/0x7+parseInt(_0x59f274(0x141))/0x8;if(_0x45a827===_0x531df9)break;else _0x449dcc['push'](_0x449dcc['shift']());}catch(_0xe5b04f){_0x449dcc['push'](_0x449dcc['shift']());}}}(_0x5df4,0x3f1d6));import{CKEditorError as _0x4fdbac,EmitterMixin as _0x5b5582,uid as _0x559fbc}from'ckeditor5/src/utils.js';import{AIReply as _0xc856fd,isIgnoredReplyType as _0x47fd06,isValidReplyType as _0xb62f25,isReplyTitleType as _0x112433,isSourceType as _0x4f4b10}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x101165(0x166),_0x101165(0x169),_0x101165(0x16d),_0x101165(0x162),_0x101165(0x14a),_0x101165(0x15f),_0x101165(0x149),_0x101165(0x158),_0x101165(0x167),_0x101165(0x12f),_0x101165(0x139),_0x101165(0x165),_0x101165(0x160),_0x101165(0x132)];export class AIInteraction extends _0x5b5582(){['id'];[_0x101165(0x13c)]=[];[_0x101165(0x14b)];[_0x101165(0x15d)];[_0x101165(0x14c)];[_0x101165(0x16c)];[_0x101165(0x154)];[_0x101165(0x16b)]=!0x1;[_0x101165(0x133)]=!0x1;[_0x101165(0x142)];[_0x101165(0x13d)]=!0x1;[_0x101165(0x153)]=!0x1;constructor({connector:_0x1ae5fe,editor:_0x241930}){const _0x2c4b7c=_0x101165;super(),this['id']=_0x559fbc(),this[_0x2c4b7c(0x154)]=_0x1ae5fe,this[_0x2c4b7c(0x16b)]=!0x0,this[_0x2c4b7c(0x142)]=_0x241930;}async[_0x101165(0x16f)](){const _0xf9bed=_0x101165;let _0x4111df;const _0x29e289=[];this[_0xf9bed(0x16b)]=!0x1;try{this[_0xf9bed(0x16c)]=await this[_0xf9bed(0x161)](),this[_0xf9bed(0x16a)](_0xf9bed(0x169),this);const _0x477d02=await this[_0xf9bed(0x16c)][_0xf9bed(0x130)]();for await(const _0xe590da of _0x477d02){if(this[_0xf9bed(0x16b)])return;if(_0xf9bed(0x132)===_0xe590da[_0xf9bed(0x151)])return void this[_0xf9bed(0x16a)](_0xf9bed(0x132),{'error':new _0x4fdbac(_0xf9bed(0x14d),this)});if(_0xf9bed(0x137)!==_0xe590da[_0xf9bed(0x151)]){if(_0xf9bed(0x134)!==_0xe590da[_0xf9bed(0x151)]){if(_0x112433(_0xe590da[_0xf9bed(0x151)])&&this[_0xf9bed(0x167)](_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x143)],!0x0),_0x4f4b10(_0xe590da[_0xf9bed(0x151)]))_0x29e289[_0xf9bed(0x159)](_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x140)]);else{if(_0xb62f25(_0xe590da[_0xf9bed(0x151)])){if(_0xe590da[_0xf9bed(0x151)]!==_0x4111df){if(_0x4111df=_0xe590da[_0xf9bed(0x151)],_0xf9bed(0x171)===_0xe590da[_0xf9bed(0x151)]){this[_0xf9bed(0x153)]||(this[_0xf9bed(0x153)]=!0x0,this[_0xf9bed(0x16a)](_0xf9bed(0x12f),this));continue;}if(_0xf9bed(0x144)===_0xe590da[_0xf9bed(0x151)]){this[_0xf9bed(0x13d)]||(this[_0xf9bed(0x13d)]=!0x0,this[_0xf9bed(0x16a)](_0xf9bed(0x165),this));continue;}this[_0xf9bed(0x13d)]&&(this[_0xf9bed(0x13d)]=!0x1,this[_0xf9bed(0x16a)](_0xf9bed(0x160),this)),this[_0xf9bed(0x153)]&&(this[_0xf9bed(0x153)]=!0x1,this[_0xf9bed(0x16a)](_0xf9bed(0x139),this)),this[_0xf9bed(0x14b)]&&this[_0xf9bed(0x14b)][_0xf9bed(0x156)](),this[_0xf9bed(0x14b)]=this[_0xf9bed(0x15c)]({'type':_0xe590da[_0xf9bed(0x151)],'interactionId':this['id'],'id':_0xe590da[_0xf9bed(0x138)]?.['id']}),_0x29e289[_0xf9bed(0x150)]>0x0&&_0xf9bed(0x13b)===_0xe590da[_0xf9bed(0x151)]&&(this[_0xf9bed(0x14b)][_0xf9bed(0x164)]=_0x29e289[_0xf9bed(0x146)](0x0));}_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x152)]&&this[_0xf9bed(0x14b)][_0xf9bed(0x147)](_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x152)]);}else _0x47fd06(_0xe590da[_0xf9bed(0x151)]);}}else this[_0xf9bed(0x14c)]=_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x13a)];}else this[_0xf9bed(0x15d)]=_0xe590da[_0xf9bed(0x138)][_0xf9bed(0x15d)];}}finally{this[_0xf9bed(0x16b)]||(_0x29e289[_0xf9bed(0x150)]>0x0&&(this[_0xf9bed(0x14b)][_0xf9bed(0x164)]=_0x29e289[_0xf9bed(0x146)](0x0)),this[_0xf9bed(0x13e)](),this[_0xf9bed(0x16a)](_0xf9bed(0x162),this));}}[_0x101165(0x131)](){const _0x5aaeb2=_0x101165;this[_0x5aaeb2(0x16b)]||(this[_0x5aaeb2(0x13e)](),this[_0x5aaeb2(0x16a)](_0x5aaeb2(0x16d),this));}[_0x101165(0x16e)](_0x4cf74a){const _0x1ebba7=_0x101165;return this[_0x1ebba7(0x13c)][_0x1ebba7(0x13f)](_0xfadd73=>_0xfadd73['id']===_0x4cf74a);}[_0x101165(0x14f)](){const _0x50ce08=_0x101165;this[_0x50ce08(0x133)]||(this[_0x50ce08(0x131)](),this[_0x50ce08(0x13c)][_0x50ce08(0x170)](_0x3b0188=>_0x3b0188[_0x50ce08(0x14f)]()),this[_0x50ce08(0x13c)]=[],this[_0x50ce08(0x133)]=!0x0,this[_0x50ce08(0x16a)](_0x50ce08(0x14a),this),this[_0x50ce08(0x136)]());}[_0x101165(0x15c)](_0x5784af){const _0x3d472c=_0x101165,_0x3cdbb6=new _0xc856fd({'editor':this[_0x3d472c(0x142)],'documentContextContent':this[_0x3d472c(0x168)]()?.[_0x3d472c(0x145)],..._0x5784af});return this[_0x3d472c(0x13c)][_0x3d472c(0x159)](_0x3cdbb6),_0x3cdbb6[_0x3d472c(0x155)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x3d472c(0x16a)](_0x3d472c(0x15f),_0x3cdbb6),_0x3cdbb6;}[_0x101165(0x167)](_0x211bcd,_0xb462cf=!0x1){const _0x3188c5=_0x101165;this[_0x3188c5(0x16a)](_0x3188c5(0x167),_0x211bcd,_0xb462cf);}[_0x101165(0x13e)](){const _0x351045=_0x101165;this[_0x351045(0x16b)]=!0x0,this[_0x351045(0x16c)]&&this[_0x351045(0x16c)][_0x351045(0x135)][_0x351045(0x163)](),this[_0x351045(0x14b)]&&this[_0x351045(0x14b)][_0x351045(0x156)](),this[_0x351045(0x16c)]=this[_0x351045(0x14b)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x178853=_0x3a12;(function(_0xc1b80f,_0x4ed6ee){const _0x3e2aaf=_0x3a12,_0x50325b=_0xc1b80f();while(!![]){try{const _0x2f71dd=parseInt(_0x3e2aaf(0x86))/0x1*(parseInt(_0x3e2aaf(0x91))/0x2)+parseInt(_0x3e2aaf(0x8e))/0x3*(-parseInt(_0x3e2aaf(0x7b))/0x4)+parseInt(_0x3e2aaf(0x82))/0x5*(-parseInt(_0x3e2aaf(0x7f))/0x6)+parseInt(_0x3e2aaf(0x6c))/0x7*(parseInt(_0x3e2aaf(0x77))/0x8)+parseInt(_0x3e2aaf(0x8b))/0x9*(-parseInt(_0x3e2aaf(0x92))/0xa)+parseInt(_0x3e2aaf(0x81))/0xb*(-parseInt(_0x3e2aaf(0x89))/0xc)+parseInt(_0x3e2aaf(0x6a))/0xd;if(_0x2f71dd===_0x4ed6ee)break;else _0x50325b['push'](_0x50325b['shift']());}catch(_0x3749db){_0x50325b['push'](_0x50325b['shift']());}}}(_0x1859,0x2d747));function _0x3a12(_0x1f36b6,_0x34dddb){const _0x1859a1=_0x1859();return _0x3a12=function(_0x3a122b,_0x500b54){_0x3a122b=_0x3a122b-0x66;let _0x1f5730=_0x1859a1[_0x3a122b];return _0x1f5730;},_0x3a12(_0x1f36b6,_0x34dddb);}function _0x1859(){const _0x51422f=['_modelList','_availableModels','getAvailableModels','find','list','12792MgarBE','map','name','_connector','124IQmlRx','push','getAll','provider','18mrmvQI','isAvailable','1238149LoHqiR','554215tqFKRa','AI_MODEL_NAME_AUTO','some','_locale','7oOQxca','items','string','24LPHsat','ai-chat-default-model-id-unrecognized','9heGlvi','_filterModels','length','17574PyYZAb','startsWith','_defaultModelId','64466tDiXfF','319170iTLshn','ai-models-unable-to-retrieve','getModel','auto','toLocaleLowerCase','7392008zxklHB','getDefault','714iEkhPY','uiLanguage','_getModelById','getModels','ai-chat-model-id-unrecognized','agent'];_0x1859=function(){return _0x51422f;};return _0x1859();}import{EmitterMixin as _0x4094e0,logWarning as _0x2c5fba,logError as _0x3b495e}from'ckeditor5/src/utils.js';import{getTranslation as _0x5cd598}from'../utils/common-translations.js';export class AIModels extends _0x4094e0(){[_0x178853(0x7a)];[_0x178853(0x73)];[_0x178853(0x90)];[_0x178853(0x85)];[_0x178853(0x72)]=[];constructor({connector:_0x551e08,availableModels:_0x44119f,defaultModelId:_0x5273dd,locale:_0x428e91}){const _0x112447=_0x178853;super(),this[_0x112447(0x7a)]=_0x551e08,this[_0x112447(0x73)]=_0x44119f,this[_0x112447(0x90)]=_0x5273dd,this[_0x112447(0x85)]=_0x428e91;}async[_0x178853(0x7d)](){const _0x382351=_0x178853;if(!this[_0x382351(0x72)][_0x382351(0x8d)])try{const _0x135bf4=this[_0x382351(0x85)][_0x382351(0x6d)]||'en',_0x4f6b72=this[_0x382351(0x7a)][_0x382351(0x6f)](_0x135bf4),_0x1e0201=await _0x4f6b72[_0x382351(0x76)]();this[_0x382351(0x72)]=_0x1e0201[_0x382351(0x87)][_0x382351(0x78)](_0x5a4b61=>Xe(_0x5a4b61)?{..._0x5a4b61,'name':_0x5cd598(this[_0x382351(0x85)],_0x382351(0x83))}:_0x5a4b61);}catch(_0x2b8b0f){throw _0x3b495e(_0x382351(0x66),{'error':_0x2b8b0f}),_0x2b8b0f;}return[...this[_0x382351(0x72)]];}async[_0x178853(0x74)](){const _0x3558d4=_0x178853,_0x5be8df=await this[_0x3558d4(0x7d)]();return this[_0x3558d4(0x8c)](_0x5be8df,this[_0x3558d4(0x73)]);}async[_0x178853(0x67)](_0x339a79){const _0x2bcdf8=_0x178853,_0x1c4704=await this[_0x2bcdf8(0x7d)]();if(!_0x1c4704[_0x2bcdf8(0x8d)])return null;if(_0x339a79){const _0x3e1e41=this[_0x2bcdf8(0x6e)](_0x1c4704,_0x339a79);if(_0x3e1e41)return _0x3e1e41;_0x2c5fba(_0x2bcdf8(0x70),{'modelId':_0x339a79,'fallBackModelId':this[_0x2bcdf8(0x90)]});}return this[_0x2bcdf8(0x6b)]();}async[_0x178853(0x6b)](){const _0x3b06f8=_0x178853,_0x3a4e47=await this[_0x3b06f8(0x74)]();if(!_0x3a4e47[_0x3b06f8(0x8d)])return null;if(this[_0x3b06f8(0x90)]){const _0x34a857=this[_0x3b06f8(0x6e)](_0x3a4e47,this[_0x3b06f8(0x90)]);if(_0x34a857)return _0x34a857;_0x2c5fba(_0x3b06f8(0x8a),{'defaultModelId':this[_0x3b06f8(0x90)],'fallBackModelId':_0x3a4e47[0x0]['id']});}return _0x3a4e47[0x0];}async[_0x178853(0x80)](_0x520c46){const _0x2f5376=_0x178853;return(await this[_0x2f5376(0x74)]())[_0x2f5376(0x84)](_0x59118e=>_0x59118e[_0x2f5376(0x79)]===_0x520c46[_0x2f5376(0x79)]&&_0x59118e[_0x2f5376(0x7e)]===_0x520c46[_0x2f5376(0x7e)]);}[_0x178853(0x8c)](_0x13e5b3,_0x1a112b){const _0x30f45e=_0x178853;let _0x3a3e98;if(_0x1a112b){_0x3a3e98=[];const _0xf50da9=_0x30f45e(0x88)==typeof _0x1a112b?[_0x1a112b[_0x30f45e(0x69)]()]:_0x1a112b[_0x30f45e(0x78)](_0x2bd621=>_0x2bd621[_0x30f45e(0x69)]());for(const _0x2157bb of _0xf50da9)for(const _0x387e57 of _0x13e5b3)(_0x387e57['id'][_0x30f45e(0x69)]()===_0x2157bb||_0x387e57[_0x30f45e(0x79)][_0x30f45e(0x69)]()===_0x2157bb||Xe(_0x387e57)&&_0x30f45e(0x68)===_0x2157bb||_0x387e57[_0x30f45e(0x7e)][_0x30f45e(0x69)]()===_0x2157bb||_0x387e57['id'][_0x30f45e(0x69)]()[_0x30f45e(0x8f)](_0x2157bb))&&_0x3a3e98[_0x30f45e(0x7c)](_0x387e57);}else _0x3a3e98=_0x13e5b3;return _0x3a3e98;}[_0x178853(0x6e)](_0x1a8c44,_0x44321b){const _0x2a9d18=_0x178853;return _0x1a8c44[_0x2a9d18(0x75)](_0x3d4a1e=>Xe(_0x3d4a1e)&&_0x2a9d18(0x68)===_0x44321b?_0x3d4a1e:_0x3d4a1e['id']===_0x44321b)||null;}}function Xe(_0x58d4da){const _0x35350e=_0x178853;return _0x58d4da['id'][_0x35350e(0x8f)](_0x35350e(0x71));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2b97(){const _0xd1dce4=['changes','appendContent','interactionId','cloneNode','6rmVzIJ','9131220opovUN','forEach','parsedContent','documentContextContent','replyContentUpdated','conversation-title','locale','filter','parsedMergedContent','updateChangeGroups','values','getContentParts','850OWcszS','pending','data-unstable','453QNKnBp','aiResponseParser','6752wbSUwn','find','changeGroups','source','AI_SUGGESTION_CONTENT_PART_REMOVED','change:content','withoutDiff','push','744020iATSle','201908RzRBAk','areActionsDisabled','set','aiResponseApplier','withDiff','every','stopListening','2529096pfwaOk','text-delta','web-search','setChangeGroupState','done','nextSibling','span','onContentChange','destroy','reasoning','replyChangeGroupStateUpdated','parseAndNormalizeHTML','editor','_getDifferentChangeGroups','modification-delta','color:\x20#808080;\x20font-style:\x20italic','modified','new','sources','convertMarkdownToHTML','cachedSuggestionContentParts','2629345sKnlap','unshift','length','13qdajSs','indexOf','ai-reply-get-content-parts-group-not-found','node','data-id','_setCachedContentParts','55cwvnOo','context','type','previousSibling','1175uWRBbv','isDone','map','removedNodeIds','includes','fire','ai-get-editor-from-context-no-editor','merge','modifiedNodeIds','state','_getCachedContentParts','content','index','9qaRCgF','removed','splice','newNodeIds'];_0x2b97=function(){return _0xd1dce4;};return _0x2b97();}const _0x19802d=_0x3057;(function(_0x481a51,_0x13dfbf){const _0x3227fc=_0x3057,_0x181c22=_0x481a51();while(!![]){try{const _0x4d314e=-parseInt(_0x3227fc(0x10e))/0x1*(-parseInt(_0x3227fc(0xd7))/0x2)+-parseInt(_0x3227fc(0xda))/0x3*(-parseInt(_0x3227fc(0xdc))/0x4)+parseInt(_0x3227fc(0x101))/0x5*(-parseInt(_0x3227fc(0xca))/0x6)+-parseInt(_0x3227fc(0xe5))/0x7+-parseInt(_0x3227fc(0xec))/0x8*(parseInt(_0x3227fc(0x11b))/0x9)+parseInt(_0x3227fc(0xe4))/0xa*(-parseInt(_0x3227fc(0x10a))/0xb)+parseInt(_0x3227fc(0xcb))/0xc*(parseInt(_0x3227fc(0x104))/0xd);if(_0x4d314e===_0x13dfbf)break;else _0x181c22['push'](_0x181c22['shift']());}catch(_0x138f31){_0x181c22['push'](_0x181c22['shift']());}}}(_0x2b97,0x427d2));import{CKEditorError as _0x45eaec,ObservableMixin as _0x4c7156,uid as _0x8fd10f}from'ckeditor5/src/utils.js';function _0x3057(_0x34cc90,_0x37e594){const _0x2b973a=_0x2b97();return _0x3057=function(_0x3057db,_0x58f137){_0x3057db=_0x3057db-0xc7;let _0xe9d815=_0x2b973a[_0x3057db];return _0xe9d815;},_0x3057(_0x34cc90,_0x37e594);}import{Element as _0x3c0f5e,findAll as _0x5547b7,getAttribute as _0x22cf8c,getParents as _0x557046,Document as _0x2ce9a1,parse as _0x2e0c24,Text as _0x5b3951}from'../utils/htmlparser.js';import{AIResponseParser as _0x1213e5}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x19820c}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x14fc5b}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x57c541}from'../utils/common-translations.js';import{cloneDeep as _0x4a51b3}from'es-toolkit';export const AI_REPLY_TYPES=[_0x19802d(0xfa),_0x19802d(0xed),_0x19802d(0xee),_0x19802d(0xf5)];export const AI_REPLY_TYPES_IGNORED=[_0x19802d(0xd0)];export const AI_REPLY_TITLE_TYPE=_0x19802d(0xd0);export class AIReply extends _0x4c7156(){['id'];[_0x19802d(0xc8)];[_0x19802d(0x10c)];[_0x19802d(0xfe)]=[];[_0x19802d(0xcd)]=new _0x2ce9a1([]);[_0x19802d(0xd3)]=new _0x2ce9a1([]);[_0x19802d(0xde)]=[];[_0x19802d(0xe6)]=!0x1;[_0x19802d(0xce)];[_0x19802d(0xdb)];[_0x19802d(0xe8)];[_0x19802d(0xf8)];[_0x19802d(0x100)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x25fa59,content:_0xc56d74='',isDone:_0x5c757b=!0x1,interactionId:_0xb76d14,areActionsDisabled:_0x40b310,documentContextContent:_0x177ca1,editor:_0x16d2c2,id:_0x31e025}){const _0xd1dcdd=_0x19802d;super(),this['id']=_0x31e025||_0x8fd10f(),this[_0xd1dcdd(0xc8)]=_0xb76d14,this[_0xd1dcdd(0x10c)]=_0x25fa59,this[_0xd1dcdd(0xe6)]=!!_0x40b310,this[_0xd1dcdd(0xf8)]=_0x16d2c2,this[_0xd1dcdd(0xdb)]=new _0x1213e5(),this[_0xd1dcdd(0xe8)]=new _0x19820c(),this[_0xd1dcdd(0xce)]=_0x2e0c24(_0x177ca1||''),this[_0xd1dcdd(0xe7)](_0xd1dcdd(0x10f),_0x5c757b),this['on'](_0xd1dcdd(0xe1),()=>{const _0x2c88fb=_0xd1dcdd;this[_0x2c88fb(0xf3)]();}),this[_0xd1dcdd(0xe7)](_0xd1dcdd(0x119),_0xc56d74);}[_0x19802d(0xc7)](_0x330b6a){const _0xa8fda2=_0x19802d;this[_0xa8fda2(0xe7)](_0xa8fda2(0x119),this[_0xa8fda2(0x119)]+_0x330b6a);}[_0x19802d(0xf0)](){const _0x35bef1=_0x19802d;this[_0x35bef1(0x10f)]||(this[_0x35bef1(0xe7)](_0x35bef1(0x10f),!0x0),this[_0x35bef1(0xf3)]());}[_0x19802d(0xf4)](){const _0x25fdf2=_0x19802d;this[_0x25fdf2(0xeb)]();}[_0x19802d(0xef)](_0x44e7da,_0x4ade33){const _0x2a7d19=_0x19802d;this[_0x2a7d19(0xde)][_0x44e7da][_0x2a7d19(0x117)]=_0x4ade33,this[_0x2a7d19(0x113)](_0x2a7d19(0xf6),{'reply':this,'index':_0x44e7da,'state':_0x4ade33});}[_0x19802d(0xd6)]({showDiff:_0x703a65,groupIndex:_0x22e428}){const _0x281b20=_0x19802d;if(!this[_0x281b20(0xf8)])throw new _0x45eaec(_0x281b20(0x114),null,{'aiReply':this});const _0x465dee=this[_0x281b20(0x118)](_0x703a65,_0x22e428);if(_0x465dee)return _0x465dee;let _0x2781bd=[];if(void 0x0===_0x22e428)_0x2781bd=this[_0x281b20(0xde)];else{const _0x573605=this[_0x281b20(0xde)][_0x281b20(0xdd)](({index:_0xb54601})=>_0xb54601===_0x22e428);if(!_0x573605)throw new _0x45eaec(_0x281b20(0x106),null,{'aiReply':this,'groupIndex':_0x22e428});_0x2781bd=[_0x573605];}const _0x54a695=_0x14fc5b({'editor':this[_0x281b20(0xf8)],'showDiff':_0x703a65,'changeGroups':_0x2781bd,'documentContextContent':this[_0x281b20(0xce)]});return this[_0x281b20(0x109)](_0x703a65,_0x54a695),_0x54a695;}[_0x19802d(0x118)](_0x46e524,_0xd04bc4){const _0x1123ae=_0x19802d,_0x459adc=_0x46e524?_0x1123ae(0xe9):_0x1123ae(0xe2);if(!this[_0x1123ae(0x100)][_0x459adc][_0x1123ae(0x103)])return null;const _0x5ee115=this[_0x1123ae(0x100)][_0x459adc];if(void 0x0===_0xd04bc4)return _0x4a51b3(_0x5ee115);{const _0x4a7798=_0x5ee115[_0x1123ae(0xdd)](({index:_0x134b5f})=>_0x134b5f===_0xd04bc4);if(_0x4a7798)return[_0x4a51b3(_0x4a7798)];}return null;}[_0x19802d(0x109)](_0x1ab82b,_0x2244ae){const _0x50675a=_0x19802d,_0xc77a90=_0x1ab82b?_0x50675a(0xe9):_0x50675a(0xe2);_0x2244ae[_0x50675a(0xcc)](_0x5dfc4f=>{const _0x114f16=_0x50675a,_0x1ac61c=this[_0x114f16(0x100)][_0xc77a90],_0x9310d9=_0x1ac61c[_0x114f16(0xdd)](({index:_0x2de9b0})=>_0x2de9b0===_0x5dfc4f[_0x114f16(0x11a)]);if(_0x9310d9){const _0x388170=_0x1ac61c[_0x114f16(0x105)](_0x9310d9);_0x1ac61c[_0x114f16(0x11d)](_0x388170,0x1,_0x5dfc4f);}else _0x1ac61c[_0x114f16(0xe3)](_0x5dfc4f);});}[_0x19802d(0xf3)](){const _0x25202d=_0x19802d;if(_0x25202d(0xfa)===this[_0x25202d(0x10c)]){this[_0x25202d(0xcd)]=this[_0x25202d(0xdb)][_0x25202d(0xf7)](this[_0x25202d(0x119)]);const _0x301010=this[_0x25202d(0xde)];this[_0x25202d(0xd4)]();const _0x5dd1e3=this[_0x25202d(0xf9)](_0x301010,this[_0x25202d(0xde)]);(_0x5dd1e3[_0x25202d(0x103)]||this[_0x25202d(0x10f)])&&(this[_0x25202d(0x113)](_0x25202d(0xcf),this,_0x5dd1e3),this[_0x25202d(0x100)][_0x25202d(0xe9)][_0x25202d(0x103)]=this[_0x25202d(0x100)][_0x25202d(0xe2)][_0x25202d(0x103)]=0x0);}else this[_0x25202d(0xcd)]=this[_0x25202d(0xdb)][_0x25202d(0xff)](this[_0x25202d(0x119)]),this[_0x25202d(0x113)](_0x25202d(0xcf),this);}[_0x19802d(0xf9)](_0x28c7ff,_0x2f0b25){const _0x2869b7=_0x19802d,_0x2957c0=[];for(const _0x159f0d of _0x2f0b25){const _0x341de1=_0x28c7ff[_0x159f0d[_0x2869b7(0x11a)]];_0x341de1?_0x341de1[_0x2869b7(0x11f)][_0x2869b7(0x103)]!==_0x159f0d[_0x2869b7(0x11f)][_0x2869b7(0x103)]?_0x2957c0[_0x2869b7(0xe3)](_0x159f0d):_0x341de1[_0x2869b7(0x11f)][_0x2869b7(0xcc)]((_0x345435,_0x4c7b26)=>{const _0x25d5f6=_0x2869b7,_0x3adc22=_0x159f0d[_0x25d5f6(0x11f)][_0x4c7b26];_0x345435['id']!==_0x3adc22['id']&&_0x2957c0[_0x25d5f6(0xe3)](_0x159f0d);}):_0x2957c0[_0x2869b7(0xe3)](_0x159f0d);}return _0x2957c0;}[_0x19802d(0xd4)](){const _0x557a4a=_0x19802d,_0x56f33a=new _0x3c0f5e('p',{},[new _0x3c0f5e(_0x557a4a(0xf2),{'style':_0x557a4a(0xfb)},[new _0x5b3951(_0x57c541(this[_0x557a4a(0xf8)][_0x557a4a(0xd1)],_0x557a4a(0xe0)))])]),_0x4afaad=this[_0x557a4a(0xe8)][_0x557a4a(0x115)](this[_0x557a4a(0xcd)],this[_0x557a4a(0xce)][_0x557a4a(0xc9)](!0x0),{'markUnstableElements':!this[_0x557a4a(0x10f)],'replaceRemovedWith':_0x56f33a,'cutAfterLastChange':!this[_0x557a4a(0x10f)]});if(!_0x4afaad[_0x557a4a(0x116)][_0x557a4a(0x103)]&&!this[_0x557a4a(0x10f)])return;this[_0x557a4a(0xd3)]=_0x4afaad[_0x557a4a(0xcd)];let _0x341cfd=[];if(_0x5547b7(_0x56ca12=>{const _0x1b7a76=_0x557a4a,_0x26b43c=_0x22cf8c(_0x56ca12,_0x1b7a76(0x108));if(!_0x26b43c||!_0x301880(_0x26b43c))return!0x1;const _0x4e13c7=[_0x56ca12,..._0x557046(_0x56ca12)]['at'](-0x2);if(_0x56ca12!=_0x4e13c7){const _0x1dcf67=_0x22cf8c(_0x4e13c7,_0x1b7a76(0x108));_0x301880(_0x1dcf67)||(_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x4e13c7,'id':_0x1dcf67,'type':_0x1b7a76(0xfc)}),_0x4afaad[_0x1b7a76(0x116)][_0x1b7a76(0xe3)](_0x1dcf67));}else _0x4afaad[_0x1b7a76(0x116)][_0x1b7a76(0x112)](_0x26b43c)?_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0xfc),'id':_0x26b43c}):_0x4afaad[_0x1b7a76(0x11e)][_0x1b7a76(0x112)](_0x26b43c)?_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0xfd),'id':_0x26b43c,'anchorId':_0x22cf8c(_0x56ca12[_0x1b7a76(0x10d)],_0x1b7a76(0x108))}):_0x341cfd[_0x1b7a76(0xe3)]({'node':_0x56ca12,'type':_0x1b7a76(0x11c),'id':_0x26b43c});return!0x0;},this[_0x557a4a(0xd3)]),_0x341cfd=_0x341cfd[_0x557a4a(0xd2)](({node:_0x297d00})=>[..._0x557046(_0x297d00),_0x297d00][_0x557a4a(0xea)](_0x4f9dd9=>!_0x22cf8c(_0x4f9dd9,_0x557a4a(0xd9)))),0x0==_0x341cfd[_0x557a4a(0x103)])return;const _0x386360=[[_0x341cfd[0x0]]];for(let _0x4495f4=0x1;_0x4495f4<_0x341cfd[_0x557a4a(0x103)];_0x4495f4++){const _0xb0fa5b=_0x386360[_0x386360[_0x557a4a(0x103)]-0x1],_0xad4333=_0xb0fa5b[_0xb0fa5b[_0x557a4a(0x103)]-0x1];_0x341cfd[_0x4495f4][_0x557a4a(0x107)][_0x557a4a(0x10d)]==_0xad4333[_0x557a4a(0x107)]&&_0x557a4a(0xfc)!=_0x341cfd[_0x4495f4][_0x557a4a(0x10c)]&&_0x557a4a(0xfc)!=_0xad4333[_0x557a4a(0x10c)]?_0xb0fa5b[_0x557a4a(0xe3)](_0x341cfd[_0x4495f4]):_0x386360[_0x557a4a(0xe3)]([_0x341cfd[_0x4495f4]]);}for(const _0x1b8a54 of _0x386360){const _0x34d27b=_0x1b8a54[0x0],_0x1b118d=_0x1b8a54[_0x1b8a54[_0x557a4a(0x103)]-0x1],_0x2e3f70=_0x41cd10(_0x34d27b[_0x557a4a(0x107)][_0x557a4a(0x10d)]);_0x2e3f70&&_0x1b8a54[_0x557a4a(0x102)](_0x2e3f70);const _0x4a2096=_0x41cd10(_0x1b118d[_0x557a4a(0x107)][_0x557a4a(0xf1)]);_0x4a2096&&_0x1b8a54[_0x557a4a(0xe3)](_0x4a2096);}function _0x301880(_0x38cba1){const _0x1423b4=_0x557a4a;return _0x4afaad[_0x1423b4(0x116)][_0x1423b4(0x112)](_0x38cba1)||_0x4afaad[_0x1423b4(0x11e)][_0x1423b4(0x112)](_0x38cba1)||_0x4afaad[_0x1423b4(0x111)][_0x1423b4(0x112)](_0x38cba1);}function _0x41cd10(_0x121447){const _0x5467f9=_0x557a4a;if(_0x121447&&_0x22cf8c(_0x121447,_0x5467f9(0x108))&&!_0x22cf8c(_0x121447,_0x5467f9(0xd9))){const _0x52a73d=_0x22cf8c(_0x121447,_0x5467f9(0x108));if(!_0x301880(_0x52a73d))return{'node':_0x121447,'type':_0x5467f9(0x10b),'id':_0x52a73d};}return null;}this[_0x557a4a(0xde)]=_0x386360[_0x557a4a(0x110)]((_0x478d68,_0x46ceeb)=>({'changes':_0x478d68,'state':_0x557a4a(0xd8),'index':_0x46ceeb}));}}export function isValidReplyType(_0x5988e6){const _0x1f7c80=_0x19802d;return Object[_0x1f7c80(0xd5)](AI_REPLY_TYPES)[_0x1f7c80(0x112)](_0x5988e6);}export function isIgnoredReplyType(_0x44a0ca){const _0x3a7ad8=_0x19802d;return AI_REPLY_TYPES_IGNORED[_0x3a7ad8(0x112)](_0x44a0ca);}export function isReplyTitleType(_0x32b0c4){return _0x32b0c4===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x57afd5){const _0x5f5db1=_0x19802d;return _0x5f5db1(0xdf)===_0x57afd5;}
|
|
23
|
+
const _0x4f6acd=_0x4f07;(function(_0x3d71e3,_0x186943){const _0x170bc9=_0x4f07,_0xb3e764=_0x3d71e3();while(!![]){try{const _0x5119d8=parseInt(_0x170bc9(0x158))/0x1*(parseInt(_0x170bc9(0x165))/0x2)+-parseInt(_0x170bc9(0x169))/0x3+parseInt(_0x170bc9(0x18f))/0x4*(parseInt(_0x170bc9(0x187))/0x5)+-parseInt(_0x170bc9(0x182))/0x6*(-parseInt(_0x170bc9(0x18e))/0x7)+parseInt(_0x170bc9(0x17f))/0x8*(parseInt(_0x170bc9(0x16f))/0x9)+-parseInt(_0x170bc9(0x1a2))/0xa*(-parseInt(_0x170bc9(0x162))/0xb)+parseInt(_0x170bc9(0x17c))/0xc*(-parseInt(_0x170bc9(0x16d))/0xd);if(_0x5119d8===_0x186943)break;else _0xb3e764['push'](_0xb3e764['shift']());}catch(_0x443af3){_0xb3e764['push'](_0xb3e764['shift']());}}}(_0x2bff,0x29f31));import{CKEditorError as _0x39dcbb,ObservableMixin as _0x1ca8b4,uid as _0x3abc06}from'ckeditor5/src/utils.js';import{Element as _0x2b8c9b,findAll as _0x38edf7,getAttribute as _0x663f5c,getParents as _0x3051de,Document as _0x5a821b,parse as _0x7ae851,Text as _0x906821}from'../utils/htmlparser.js';import{AIResponseParser as _0x153118}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3d1252}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x4cfe3a}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x11920d}from'../utils/common-translations.js';import{cloneDeep as _0x3fc728}from'es-toolkit';export const AI_REPLY_TYPES=[_0x4f6acd(0x188),_0x4f6acd(0x18d),_0x4f6acd(0x184),_0x4f6acd(0x1a0)];export const AI_REPLY_TYPES_IGNORED=[_0x4f6acd(0x1a7)];function _0x4f07(_0x375659,_0x4dabcf){const _0x2bff60=_0x2bff();return _0x4f07=function(_0x4f0733,_0x4e7c20){_0x4f0733=_0x4f0733-0x150;let _0x3c8cbd=_0x2bff60[_0x4f0733];return _0x3c8cbd;},_0x4f07(_0x375659,_0x4dabcf);}export const AI_REPLY_TITLE_TYPE=_0x4f6acd(0x1a7);export class AIReply extends _0x1ca8b4(){['id'];[_0x4f6acd(0x1a3)];[_0x4f6acd(0x16e)];[_0x4f6acd(0x18a)]=[];[_0x4f6acd(0x181)]=new _0x5a821b([]);[_0x4f6acd(0x16b)]=new _0x5a821b([]);[_0x4f6acd(0x190)]=[];[_0x4f6acd(0x168)]=!0x1;[_0x4f6acd(0x192)];[_0x4f6acd(0x19a)];[_0x4f6acd(0x186)];[_0x4f6acd(0x197)];[_0x4f6acd(0x189)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x54c536,content:_0x5d1529='',isDone:_0x5b6eec=!0x1,interactionId:_0x39f200,areActionsDisabled:_0x331d69,documentContextContent:_0x50e49f,editor:_0x14622c,id:_0xc483d8}){const _0x3014ef=_0x4f6acd;super(),this['id']=_0xc483d8||_0x3abc06(),this[_0x3014ef(0x1a3)]=_0x39f200,this[_0x3014ef(0x16e)]=_0x54c536,this[_0x3014ef(0x168)]=!!_0x331d69,this[_0x3014ef(0x197)]=_0x14622c,this[_0x3014ef(0x19a)]=new _0x153118(),this[_0x3014ef(0x186)]=new _0x3d1252(),this[_0x3014ef(0x192)]=_0x7ae851(_0x50e49f||''),this[_0x3014ef(0x16a)](_0x3014ef(0x180),_0x5b6eec),this['on'](_0x3014ef(0x179),()=>{const _0x473a8b=_0x3014ef;this[_0x473a8b(0x19b)]();}),this[_0x3014ef(0x16a)](_0x3014ef(0x1a5),_0x5d1529);}[_0x4f6acd(0x161)](_0x5a3ac1){const _0x3c0857=_0x4f6acd;this[_0x3c0857(0x16a)](_0x3c0857(0x1a5),this[_0x3c0857(0x1a5)]+_0x5a3ac1);}[_0x4f6acd(0x19e)](){const _0x277723=_0x4f6acd;this[_0x277723(0x180)]||(this[_0x277723(0x16a)](_0x277723(0x180),!0x0),this[_0x277723(0x19b)]());}[_0x4f6acd(0x1a1)](){const _0x177eb3=_0x4f6acd;this[_0x177eb3(0x175)]();}[_0x4f6acd(0x151)](_0x3d0548,_0x50f5a1){const _0x10bb2a=_0x4f6acd;this[_0x10bb2a(0x190)][_0x3d0548][_0x10bb2a(0x17d)]=_0x50f5a1,this[_0x10bb2a(0x155)](_0x10bb2a(0x17b),{'reply':this,'index':_0x3d0548,'state':_0x50f5a1});}[_0x4f6acd(0x177)]({showDiff:_0x1c2ac7,groupIndex:_0x6c7295}){const _0x169d96=_0x4f6acd;if(!this[_0x169d96(0x197)])throw new _0x39dcbb(_0x169d96(0x150),null,{'aiReply':this});const _0xcbed2e=this[_0x169d96(0x164)](_0x1c2ac7,_0x6c7295);if(_0xcbed2e)return _0xcbed2e;let _0x46360d=[];if(void 0x0===_0x6c7295)_0x46360d=this[_0x169d96(0x190)];else{const _0x4dede1=this[_0x169d96(0x190)][_0x169d96(0x154)](({index:_0x18a69f})=>_0x18a69f===_0x6c7295);if(!_0x4dede1)throw new _0x39dcbb(_0x169d96(0x170),null,{'aiReply':this,'groupIndex':_0x6c7295});_0x46360d=[_0x4dede1];}const _0x5f7d75=_0x4cfe3a({'editor':this[_0x169d96(0x197)],'showDiff':_0x1c2ac7,'changeGroups':_0x46360d,'documentContextContent':this[_0x169d96(0x192)]});return this[_0x169d96(0x156)](_0x1c2ac7,_0x5f7d75),_0x5f7d75;}[_0x4f6acd(0x164)](_0x109511,_0x4e7713){const _0x254edf=_0x4f6acd,_0x10995c=_0x109511?_0x254edf(0x15e):_0x254edf(0x185);if(!this[_0x254edf(0x189)][_0x10995c][_0x254edf(0x167)])return null;const _0xd49f65=this[_0x254edf(0x189)][_0x10995c];if(void 0x0===_0x4e7713)return _0x3fc728(_0xd49f65);{const _0x4cb47e=_0xd49f65[_0x254edf(0x154)](({index:_0x1b99ab})=>_0x1b99ab===_0x4e7713);if(_0x4cb47e)return[_0x3fc728(_0x4cb47e)];}return null;}[_0x4f6acd(0x156)](_0xc6be02,_0x27c1d5){const _0x2a0e19=_0x4f6acd,_0x2a05e8=_0xc6be02?_0x2a0e19(0x15e):_0x2a0e19(0x185);_0x27c1d5[_0x2a0e19(0x1a4)](_0x5733e2=>{const _0x96f495=_0x2a0e19,_0x3029a0=this[_0x96f495(0x189)][_0x2a05e8],_0x577e34=_0x3029a0[_0x96f495(0x154)](({index:_0x5238e5})=>_0x5238e5===_0x5733e2[_0x96f495(0x194)]);if(_0x577e34){const _0x2bb89f=_0x3029a0[_0x96f495(0x15a)](_0x577e34);_0x3029a0[_0x96f495(0x172)](_0x2bb89f,0x1,_0x5733e2);}else _0x3029a0[_0x96f495(0x191)](_0x5733e2);});}[_0x4f6acd(0x19b)](){const _0x56e1ed=_0x4f6acd;if(_0x56e1ed(0x188)===this[_0x56e1ed(0x16e)]){this[_0x56e1ed(0x181)]=this[_0x56e1ed(0x19a)][_0x56e1ed(0x152)](this[_0x56e1ed(0x1a5)]);const _0x4452f6=this[_0x56e1ed(0x190)];this[_0x56e1ed(0x157)]();const _0x4c1ad3=this[_0x56e1ed(0x19f)](_0x4452f6,this[_0x56e1ed(0x190)]);(_0x4c1ad3[_0x56e1ed(0x167)]||this[_0x56e1ed(0x180)])&&(this[_0x56e1ed(0x155)](_0x56e1ed(0x173),this,_0x4c1ad3),this[_0x56e1ed(0x189)][_0x56e1ed(0x15e)][_0x56e1ed(0x167)]=this[_0x56e1ed(0x189)][_0x56e1ed(0x185)][_0x56e1ed(0x167)]=0x0);}else this[_0x56e1ed(0x181)]=this[_0x56e1ed(0x19a)][_0x56e1ed(0x198)](this[_0x56e1ed(0x1a5)]),this[_0x56e1ed(0x155)](_0x56e1ed(0x173),this);}[_0x4f6acd(0x19f)](_0x255d22,_0x1e197f){const _0xa4fa4=_0x4f6acd,_0x6acbbb=[];for(const _0x1c88bb of _0x1e197f){const _0x2b5479=_0x255d22[_0x1c88bb[_0xa4fa4(0x194)]];_0x2b5479?_0x2b5479[_0xa4fa4(0x159)][_0xa4fa4(0x167)]!==_0x1c88bb[_0xa4fa4(0x159)][_0xa4fa4(0x167)]?_0x6acbbb[_0xa4fa4(0x191)](_0x1c88bb):_0x2b5479[_0xa4fa4(0x159)][_0xa4fa4(0x1a4)]((_0x44a020,_0x4d8366)=>{const _0x1834b9=_0xa4fa4,_0x2452b2=_0x1c88bb[_0x1834b9(0x159)][_0x4d8366];_0x44a020['id']!==_0x2452b2['id']&&_0x6acbbb[_0x1834b9(0x191)](_0x1c88bb);}):_0x6acbbb[_0xa4fa4(0x191)](_0x1c88bb);}return _0x6acbbb;}[_0x4f6acd(0x157)](){const _0x59761e=_0x4f6acd,_0x1e52d5=new _0x2b8c9b('p',{},[new _0x2b8c9b(_0x59761e(0x16c),{'style':_0x59761e(0x193)},[new _0x906821(_0x11920d(this[_0x59761e(0x197)][_0x59761e(0x18c)],_0x59761e(0x18b)))])]),_0x309d7f=this[_0x59761e(0x186)][_0x59761e(0x166)](this[_0x59761e(0x181)],this[_0x59761e(0x192)][_0x59761e(0x1a8)](!0x0),{'markUnstableElements':!this[_0x59761e(0x180)],'replaceRemovedWith':_0x1e52d5,'cutAfterLastChange':!this[_0x59761e(0x180)]});if(!_0x309d7f[_0x59761e(0x15f)][_0x59761e(0x167)]&&!this[_0x59761e(0x180)])return;this[_0x59761e(0x16b)]=_0x309d7f[_0x59761e(0x181)];let _0x2acfed=[];if(_0x38edf7(_0x2395f6=>{const _0xe6e2c9=_0x59761e,_0x36d8d3=_0x663f5c(_0x2395f6,_0xe6e2c9(0x17e));if(!_0x36d8d3||!_0x2776fc(_0x36d8d3))return!0x1;const _0x324131=[_0x2395f6,..._0x3051de(_0x2395f6)]['at'](-0x2);if(_0x2395f6!=_0x324131){const _0x583c1d=_0x663f5c(_0x324131,_0xe6e2c9(0x17e));_0x2776fc(_0x583c1d)||(_0x2acfed[_0xe6e2c9(0x191)]({'node':_0x324131,'id':_0x583c1d,'type':_0xe6e2c9(0x174)}),_0x309d7f[_0xe6e2c9(0x15f)][_0xe6e2c9(0x191)](_0x583c1d));}else _0x309d7f[_0xe6e2c9(0x15f)][_0xe6e2c9(0x183)](_0x36d8d3)?_0x2acfed[_0xe6e2c9(0x191)]({'node':_0x2395f6,'type':_0xe6e2c9(0x174),'id':_0x36d8d3}):_0x309d7f[_0xe6e2c9(0x19c)][_0xe6e2c9(0x183)](_0x36d8d3)?_0x2acfed[_0xe6e2c9(0x191)]({'node':_0x2395f6,'type':_0xe6e2c9(0x196),'id':_0x36d8d3,'anchorId':_0x663f5c(_0x2395f6[_0xe6e2c9(0x17a)],_0xe6e2c9(0x17e))}):_0x2acfed[_0xe6e2c9(0x191)]({'node':_0x2395f6,'type':_0xe6e2c9(0x199),'id':_0x36d8d3});return!0x0;},this[_0x59761e(0x16b)]),_0x2acfed=_0x2acfed[_0x59761e(0x19d)](({node:_0x24940})=>[..._0x3051de(_0x24940),_0x24940][_0x59761e(0x176)](_0x3472e4=>!_0x663f5c(_0x3472e4,_0x59761e(0x15d)))),0x0==_0x2acfed[_0x59761e(0x167)])return;const _0x521dfb=[[_0x2acfed[0x0]]];for(let _0x4f55bd=0x1;_0x4f55bd<_0x2acfed[_0x59761e(0x167)];_0x4f55bd++){const _0x16f3cf=_0x521dfb[_0x521dfb[_0x59761e(0x167)]-0x1],_0x4cc53f=_0x16f3cf[_0x16f3cf[_0x59761e(0x167)]-0x1];_0x2acfed[_0x4f55bd][_0x59761e(0x163)][_0x59761e(0x17a)]==_0x4cc53f[_0x59761e(0x163)]&&_0x59761e(0x174)!=_0x2acfed[_0x4f55bd][_0x59761e(0x16e)]&&_0x59761e(0x174)!=_0x4cc53f[_0x59761e(0x16e)]?_0x16f3cf[_0x59761e(0x191)](_0x2acfed[_0x4f55bd]):_0x521dfb[_0x59761e(0x191)]([_0x2acfed[_0x4f55bd]]);}for(const _0x59181b of _0x521dfb){const _0x1e699c=_0x59181b[0x0],_0x475e6=_0x59181b[_0x59181b[_0x59761e(0x167)]-0x1],_0x1c680c=_0x7d402c(_0x1e699c[_0x59761e(0x163)][_0x59761e(0x17a)]);_0x1c680c&&_0x59181b[_0x59761e(0x1a6)](_0x1c680c);const _0x163696=_0x7d402c(_0x475e6[_0x59761e(0x163)][_0x59761e(0x171)]);_0x163696&&_0x59181b[_0x59761e(0x191)](_0x163696);}function _0x2776fc(_0x1d78bf){const _0x5d5bf4=_0x59761e;return _0x309d7f[_0x5d5bf4(0x15f)][_0x5d5bf4(0x183)](_0x1d78bf)||_0x309d7f[_0x5d5bf4(0x19c)][_0x5d5bf4(0x183)](_0x1d78bf)||_0x309d7f[_0x5d5bf4(0x195)][_0x5d5bf4(0x183)](_0x1d78bf);}function _0x7d402c(_0x35085b){const _0x32a1ea=_0x59761e;if(_0x35085b&&_0x663f5c(_0x35085b,_0x32a1ea(0x17e))&&!_0x663f5c(_0x35085b,_0x32a1ea(0x15d))){const _0x5b0205=_0x663f5c(_0x35085b,_0x32a1ea(0x17e));if(!_0x2776fc(_0x5b0205))return{'node':_0x35085b,'type':_0x32a1ea(0x153),'id':_0x5b0205};}return null;}this[_0x59761e(0x190)]=_0x521dfb[_0x59761e(0x15c)]((_0x24351f,_0x4d1c6d)=>({'changes':_0x24351f,'state':_0x59761e(0x15b),'index':_0x4d1c6d}));}}export function isValidReplyType(_0x54b8d5){const _0x19f4fc=_0x4f6acd;return Object[_0x19f4fc(0x160)](AI_REPLY_TYPES)[_0x19f4fc(0x183)](_0x54b8d5);}export function isIgnoredReplyType(_0x104292){const _0x58ad80=_0x4f6acd;return AI_REPLY_TYPES_IGNORED[_0x58ad80(0x183)](_0x104292);}export function isReplyTitleType(_0x1f3c25){return _0x1f3c25===AI_REPLY_TITLE_TYPE;}function _0x2bff(){const _0x2376b6=['stopListening','every','getContentParts','source','change:content','previousSibling','replyChangeGroupStateUpdated','629388TJVeeO','state','data-id','2792ZlqITb','isDone','parsedContent','96PNCkDF','includes','web-search','withoutDiff','aiResponseApplier','125LcwgRZ','modification-delta','cachedSuggestionContentParts','sources','AI_SUGGESTION_CONTENT_PART_REMOVED','locale','text-delta','149632xfvanb','9908tKHnrD','changeGroups','push','documentContextContent','color:\x20#808080;\x20font-style:\x20italic','index','removedNodeIds','new','editor','convertMarkdownToHTML','removed','aiResponseParser','onContentChange','newNodeIds','filter','done','_getDifferentChangeGroups','reasoning','destroy','20xsWfHl','interactionId','forEach','content','unshift','conversation-title','cloneNode','ai-get-editor-from-context-no-editor','setChangeGroupState','parseAndNormalizeHTML','context','find','fire','_setCachedContentParts','updateChangeGroups','41199kjhoRB','changes','indexOf','pending','map','data-unstable','withDiff','modifiedNodeIds','values','appendContent','606342RMndOn','node','_getCachedContentParts','2XnuJdk','merge','length','areActionsDisabled','944277SwrfHj','set','parsedMergedContent','span','52LuoPON','type','3636bjGcWV','ai-reply-get-content-parts-group-not-found','nextSibling','splice','replyContentUpdated','modified'];_0x2bff=function(){return _0x2376b6;};return _0x2bff();}export function isSourceType(_0x3eee0e){const _0x27ac40=_0x4f6acd;return _0x27ac40(0x178)===_0x3eee0e;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x42c2a4(){[_0xe8ab9d(0x11c)];[_0xe8ab9d(0xf9)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0xe8ab9d(0xf0)]=new Set();constructor(_0x1da65a){const _0x3f6d39=_0xe8ab9d;super(),this[_0x3f6d39(0x11c)]=_0x1da65a||_0x50c796;}[_0xe8ab9d(0xf5)](_0x4e9e0c,_0x4c9d3b,_0xd9b94b){const _0x5ea1ee=_0xe8ab9d,_0x39c84a=_0x27178a(_0x4e9e0c);if(0x0===_0x4c9d3b[_0x5ea1ee(0xf4)][_0x5ea1ee(0x11e)]){const _0x483caf=[];return _0x59e44a(_0x5ea1ee(0x117),_0x5ea1ee(0x112),_0x39c84a)[_0x5ea1ee(0xe8)](_0x444afc=>{const _0x57289f=_0x5ea1ee,_0x1b7287=this[_0x57289f(0x11c)]();_0x52dd(_0x444afc,_0x57289f(0x117),_0x1b7287),_0x483caf[_0x57289f(0xec)](_0x1b7287);}),this[_0x5ea1ee(0xf7)](_0x39c84a),{'parsedContent':_0x39c84a,'newNodeIds':_0x483caf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x124)]&&this[_0x5ea1ee(0x11d)](_0x39c84a),this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x10f)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x118)]=[],this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]=null,this[_0x5ea1ee(0xf0)]=new Set(_0x59e44a(_0x5ea1ee(0x117),null,_0x4c9d3b)[_0x5ea1ee(0xf3)](_0x10e7e=>_0x2c50d8(_0x10e7e,_0x5ea1ee(0x117)))[_0x5ea1ee(0x110)](_0x42b43e=>!!_0x42b43e));let _0x4f87dd=-0x1,_0x32e839=!0x1;const _0x514185=_0x39c84a[_0x5ea1ee(0xf4)],_0x958b04=Array[_0x5ea1ee(0xf8)](_0x514185)[_0x5ea1ee(0x110)](_0x178b33=>!(0x3===_0x178b33[_0x5ea1ee(0x10a)]&&''===_0x4dc70f(_0x178b33)[_0x5ea1ee(0x125)]())),_0x2456e5=_0x958b04[_0x5ea1ee(0x11e)];for(let _0x26bf64=0x0;_0x26bf64<_0x2456e5;_0x26bf64++){const _0x283c91=_0x958b04[_0x26bf64],_0x283a51=_0x958b04[_0x26bf64+0x1];if(this[_0x5ea1ee(0xe5)](_0x283c91)){if(-0x1===_0x4f87dd&&(_0x4f87dd=_0x26bf64),this[_0x5ea1ee(0xfe)](_0x283c91),!this[_0x5ea1ee(0xe5)](_0x283a51)){const [_0x524b03,_0x4bba5]=this[_0x5ea1ee(0x104)](_0x283c91,_0x32e839,_0x4c9d3b);if(_0x524b03){const _0x3cfeae=Array[_0x5ea1ee(0xf8)](_0x958b04)[_0x5ea1ee(0x12a)](_0x4f87dd,_0x26bf64+0x1);this[_0x5ea1ee(0x121)](_0x524b03,_0x3cfeae,_0x4bba5),_0x4f87dd=-0x1;}}}else{if(this[_0x5ea1ee(0xe9)](_0x283c91))_0x32e839=!0x0;else{if(this[_0x5ea1ee(0x106)](_0x283c91)){const _0xf8c7bb=_0x2c50d8(_0x283c91,_0x5ea1ee(0x117));if(_0xf8c7bb&&this[_0x5ea1ee(0xf0)][_0x5ea1ee(0x101)](_0xf8c7bb)){const _0x1c5bab=_0x24d805(_0x5ea1ee(0x117),_0xf8c7bb,_0x4c9d3b);this[_0x5ea1ee(0xf2)](_0x1c5bab,_0x283c91);}if(this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0xfd)](_0xf8c7bb)){const _0x542e2a=this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0x107)](_0xf8c7bb);this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)][_0x5ea1ee(0x11a)](_0x542e2a,0x1);}}else{if(this[_0x5ea1ee(0x114)](_0x283c91)){const _0x131afa=_0x2c50d8(_0x283c91,_0x5ea1ee(0x117));this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)][_0x5ea1ee(0xfd)](_0x131afa)||this[_0x5ea1ee(0x108)](_0x283c91);}}}}}for(const _0x2b9dc6 of this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]){const _0x47c32c=_0x24d805(_0x5ea1ee(0x117),_0x2b9dc6,_0x4c9d3b);if(_0x47c32c){if(_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x126)]){this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]=_0x2b9dc6;const _0xc42291=_0xd9b94b[_0x5ea1ee(0x126)][_0x5ea1ee(0x127)](!0x0);_0x52dd(_0xc42291,_0x5ea1ee(0x117),_0x2b9dc6),_0x52dd(_0xc42291,_0x5ea1ee(0xf1),_0x5ea1ee(0xee)),_0x5505e3(_0x47c32c,_0xc42291);}else _0x2275b9(_0x47c32c);}}if(_0x59e44a(_0x5ea1ee(0x11f),null,_0x4c9d3b)[_0x5ea1ee(0xe8)](_0x22641e=>{const _0x4b1663=_0x5ea1ee,_0xd135fb=_0x2c50d8(_0x22641e,_0x4b1663(0x11f)),_0x2aebdf=_0x24d805(_0x4b1663(0x117),_0xd135fb,_0x4c9d3b);_0x2aebdf&&_0x21d76f(_0x2aebdf,_0x22641e);}),_0x59e44a(_0x5ea1ee(0x117),_0x5ea1ee(0x112),_0x4c9d3b)[_0x5ea1ee(0xe8)](_0x4dffcc=>{const _0x2cd156=_0x5ea1ee,_0x3b0e64=this[_0x2cd156(0xed)](_0x4dffcc);_0x52dd(_0x4dffcc,_0x2cd156(0x117),_0x3b0e64),this[_0x2cd156(0xf9)][_0x2cd156(0x10f)][_0x2cd156(0xec)](_0x3b0e64);}),this[_0x5ea1ee(0xf7)](_0x4c9d3b),_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x124)]&&this[_0x5ea1ee(0x103)](_0x4c9d3b,_0xd9b94b[_0x5ea1ee(0xfa)]||0x0),_0xd9b94b&&_0xd9b94b[_0x5ea1ee(0x10c)]&&this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)]){let _0x2b5964=_0x24d805(_0x5ea1ee(0x117),this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x113)],_0x4c9d3b);for(;_0x2b5964;)_0x109aba(_0x2b5964),_0x2b5964=_0x2b5964[_0x5ea1ee(0xf6)];}return{'parsedContent':_0x4c9d3b,'newNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x10f)],'modifiedNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x100)],'removedNodeIds':this[_0x5ea1ee(0xf9)][_0x5ea1ee(0x115)]};}[_0xe8ab9d(0x121)](_0x3046ad,_0x56a2d0,_0x199d2d){const _0x2a907a=_0xe8ab9d;for(const _0x5cf4d1 of _0x56a2d0){const _0x4738a2=this[_0x2a907a(0xed)](_0x5cf4d1);_0x52dd(_0x5cf4d1,_0x2a907a(0x117),_0x4738a2),this[_0x2a907a(0xf9)][_0x2a907a(0x10f)][_0x2a907a(0xec)](_0x4738a2),this[_0x2a907a(0xf9)][_0x2a907a(0x113)]=_0x4738a2;}const _0x29698e=_0x2a907a(0xe4)===_0x199d2d||_0x2a907a(0x10b)===_0x199d2d?_0x56a2d0[_0x2a907a(0x12b)]():_0x56a2d0;for(const _0x4dbe2b of _0x29698e)_0x13357b(_0x3046ad,_0x4dbe2b,_0x199d2d);}[_0xe8ab9d(0xf2)](_0xfdfbfd,_0x583e04){const _0x53afca=_0xe8ab9d;if(!_0xfdfbfd)return;if(_0x161cd2(_0xfdfbfd,_0x583e04))return;const _0x2c62b8=this[_0x53afca(0xed)](_0xfdfbfd);_0x52dd(_0x583e04,_0x53afca(0x117),_0x2c62b8),this[_0x53afca(0xf9)][_0x53afca(0x100)][_0x53afca(0xec)](_0x2c62b8),this[_0x53afca(0xf9)][_0x53afca(0x113)]=_0x2c62b8,_0x5505e3(_0xfdfbfd,_0x583e04[_0x53afca(0x127)](!0x0));}[_0xe8ab9d(0x104)](_0x1cc39a,_0x33e2de,_0xf1f4f7){const _0x3f43f2=_0xe8ab9d,_0x4781e8=this[_0x3f43f2(0xff)](_0x1cc39a,!0x1);if(_0x4781e8){const _0x94e7c9=this[_0x3f43f2(0x123)](_0x4781e8),_0x4ebc30=_0x24d805(_0x3f43f2(0x117),_0x94e7c9,_0xf1f4f7);if(_0x4ebc30)return[_0x4ebc30,_0x3f43f2(0x10b)];this[_0x3f43f2(0xf9)][_0x3f43f2(0x118)][_0x3f43f2(0xec)](_0x94e7c9);}const _0x4d8e7c=this[_0x3f43f2(0x10e)](_0x1cc39a,!0x1);if(_0x4d8e7c){const _0x32a20d=this[_0x3f43f2(0x123)](_0x4d8e7c),_0x50544d=_0x24d805(_0x3f43f2(0x117),_0x32a20d,_0xf1f4f7);if(_0x50544d)return[_0x50544d,_0x3f43f2(0x122)];this[_0x3f43f2(0xf9)][_0x3f43f2(0x118)][_0x3f43f2(0xec)](_0x32a20d);}return _0x33e2de?_0x1cc39a[_0x3f43f2(0xea)]?this[_0x3f43f2(0xfc)](_0x1cc39a,_0xf1f4f7):[_0xf1f4f7[_0x3f43f2(0xf4)][_0xf1f4f7[_0x3f43f2(0xf4)][_0x3f43f2(0x11e)]-0x1],_0x3f43f2(0x10b)]:[_0xf1f4f7[_0x3f43f2(0xf4)][0x0],_0x3f43f2(0x122)];}[_0xe8ab9d(0xfc)](_0x220331,_0x2aac8e){const _0x102821=_0xe8ab9d,_0x2a0605=[],_0x1e61e3=this[_0x102821(0xff)](_0x220331,!0x0);if(_0x1e61e3){const _0x3aa496=this[_0x102821(0x123)](_0x1e61e3),_0xeb25ce=_0x24d805(_0x102821(0x117),_0x3aa496,_0x2aac8e);_0xeb25ce&&_0x2a0605[_0x102821(0xec)]([_0xeb25ce,_0x102821(0x10b)]);}const _0x56eabb=this[_0x102821(0x10e)](_0x220331,!0x0);if(_0x56eabb){const _0x25ba44=this[_0x102821(0x123)](_0x56eabb),_0x586810=_0x24d805(_0x102821(0x117),_0x25ba44,_0x2aac8e);_0x586810&&_0x2a0605[_0x102821(0xec)]([_0x586810,_0x102821(0x122)]);}if(_0x2a0605[_0x102821(0x11e)]>0x1)return _0x2775e0(_0x2a0605[0x0][0x0])<=_0x2775e0(_0x2a0605[0x1][0x0])?_0x2a0605[0x0]:_0x2a0605[0x1];return 0x1===_0x2a0605[_0x102821(0x11e)]?_0x2a0605[0x0]:[_0x2aac8e[_0x102821(0x120)],_0x102821(0x10b)];}[_0xe8ab9d(0x10e)](_0x1f09e0,_0x521fea){const _0x51ef59=_0xe8ab9d;let _0x187103=_0x1f09e0[_0x51ef59(0xea)],_0x19fe93=null,_0x590b27=!0x1;for(;_0x187103;){if(_0x176b9f(_0x187103)){if(this[_0x51ef59(0x114)](_0x187103)&&(_0x19fe93=_0x187103),this[_0x51ef59(0xe9)](_0x187103)&&_0x521fea&&!_0x590b27){_0x590b27=!0x0,_0x187103=_0x187103[_0x51ef59(0xea)];continue;}break;}const _0x18b367=_0x2c50d8(_0x187103,_0x51ef59(0x117));if(_0x18b367&&_0x51ef59(0x112)!==_0x18b367&&this[_0x51ef59(0xf0)][_0x51ef59(0x101)](_0x18b367)){_0x19fe93=_0x187103;break;}_0x187103=_0x187103[_0x51ef59(0xea)];}return _0x19fe93;}[_0xe8ab9d(0xff)](_0x421726,_0x3badbd){const _0x216741=_0xe8ab9d;let _0x4d8098=_0x421726[_0x216741(0x102)],_0x10c943=null,_0x3d7a88=!0x1;for(;_0x4d8098;){if(_0x176b9f(_0x4d8098)){if(this[_0x216741(0x114)](_0x4d8098)&&(_0x10c943=_0x4d8098),this[_0x216741(0xe9)](_0x4d8098)&&_0x3badbd&&!_0x3d7a88){_0x3d7a88=!0x0,_0x4d8098=_0x4d8098[_0x216741(0x102)];continue;}break;}const _0x5629d0=_0x2c50d8(_0x4d8098,_0x216741(0x117));if(_0x5629d0&&_0x216741(0x112)!==_0x5629d0&&this[_0x216741(0xf0)][_0x216741(0x101)](_0x5629d0)){_0x10c943=_0x4d8098;break;}_0x4d8098=_0x4d8098[_0x216741(0x102)];}return _0x10c943;}[_0xe8ab9d(0xfe)](_0x4986da){const _0x4c41d0=_0xe8ab9d;_0x43d485(_0x4986da)&&_0x59e44a(_0x4c41d0(0x117),null,_0x4986da)[_0x4c41d0(0xe8)](_0x49fc98=>{const _0x264999=_0x4c41d0;if(this[_0x264999(0x106)](_0x49fc98)&&!this[_0x264999(0x109)](_0x49fc98)){const _0x56821d=_0x2c50d8(_0x49fc98,_0x264999(0x117));_0x52dd(_0x49fc98,_0x264999(0x11f),_0x56821d),_0x52dd(_0x49fc98,_0x264999(0x117),null);}});}[_0xe8ab9d(0x123)](_0x21a37d){const _0x4b622f=_0xe8ab9d;if(!_0x21a37d)return null;if(_0x43d485(_0x21a37d))return _0x2c50d8(_0x21a37d,_0x4b622f(0x117));if(_0x176b9f(_0x21a37d)){const _0x3bc405=_0x4dc70f(_0x21a37d)[_0x4b622f(0x111)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3bc405&&_0x3bc405[0x1])return _0x3bc405[0x1];}return null;}[_0xe8ab9d(0x108)](_0x488077){const _0x386dc1=_0xe8ab9d;if(_0x176b9f(_0x488077)){const _0xe098d3=_0x4dc70f(_0x488077)[_0x386dc1(0x111)](/removed[\s*-]data-id="([^"]+)"/);_0xe098d3&&_0xe098d3[0x1]&&this[_0x386dc1(0xf9)][_0x386dc1(0x115)][_0x386dc1(0xec)](_0xe098d3[0x1]);}}[_0xe8ab9d(0xed)](_0x2c5308){const _0x1b31ed=_0xe8ab9d;return this[_0x1b31ed(0x106)](_0x2c5308)?_0x2c50d8(_0x2c5308,_0x1b31ed(0x117)):this[_0x1b31ed(0x11c)]();}[_0xe8ab9d(0xf7)](_0x1e4085){const _0x19f4d6=_0xe8ab9d;_0x582f31(_0x1e4085)[_0x19f4d6(0x110)](_0x231944=>this[_0x19f4d6(0x114)](_0x231944)||this[_0x19f4d6(0xe9)](_0x231944))[_0x19f4d6(0xe8)](_0x39d46f=>{_0x2275b9(_0x39d46f);});}[_0xe8ab9d(0x11d)](_0x4e6166){const _0x57b6b5=_0xe8ab9d,_0x79b4f3=_0x4e6166[_0x57b6b5(0xf4)],_0x520e35=_0x79b4f3[_0x79b4f3[_0x57b6b5(0x11e)]-0x1];_0x520e35&&_0x43d485(_0x520e35)&&_0x52dd(_0x520e35,_0x57b6b5(0x10d),_0x57b6b5(0xee));}[_0xe8ab9d(0x103)](_0x3908a7,_0x44a836){const _0x55c4a7=_0xe8ab9d,_0x294370=_0x24d805(_0x55c4a7(0x10d),_0x55c4a7(0xee),_0x3908a7);if(!_0x294370)return;const _0x4efd85=_0x40e20c(_0x294370)[_0x55c4a7(0x12a)](0x0,-0x1),_0x3d8aa0=_0x4efd85[_0x55c4a7(0x11e)];let _0x1cd126=_0x294370;if(_0x3d8aa0>_0x44a836){let _0x314260=_0x3d8aa0,_0x5554ac=null;for(;_0x314260>_0x44a836&&_0x314260>=0x0;)_0x314260--,_0x5554ac=_0x4efd85[_0x314260];_0x5554ac&&(_0x1cd126=_0x5554ac,_0x52dd(_0x294370,_0x55c4a7(0x10d),null),_0x52dd(_0x5554ac,_0x55c4a7(0x10d),_0x55c4a7(0xee)));}else{if(_0x3d8aa0<_0x44a836){let _0x4fe444=_0x3d8aa0,_0x2de79b=_0x294370;for(;_0x4fe444<_0x44a836;){const _0x94afc9=_0x2de79b[_0x55c4a7(0xf4)][_0x55c4a7(0x110)](_0x1da654=>_0x43d485(_0x1da654));if(0x0===_0x94afc9[_0x55c4a7(0x11e)])break;_0x4fe444++,_0x2de79b=_0x94afc9[_0x94afc9[_0x55c4a7(0x11e)]-0x1];}_0x2de79b&&(_0x1cd126=_0x2de79b,_0x52dd(_0x294370,_0x55c4a7(0x10d),null),_0x52dd(_0x2de79b,_0x55c4a7(0x10d),_0x55c4a7(0xee)));}}let _0x122dd5=_0x1cd126;for(;_0x122dd5;){for(;_0x122dd5[_0x55c4a7(0xea)];)_0x122dd5=_0x122dd5[_0x55c4a7(0xea)],_0x43d485(_0x122dd5)&&_0x52dd(_0x122dd5,_0x55c4a7(0x10d),_0x55c4a7(0xee));_0x122dd5=_0x122dd5[_0x55c4a7(0xf6)];}}[_0xe8ab9d(0xe5)](_0x5720f2){const _0x523723=_0xe8ab9d;return Boolean(_0x523723(0x112)===_0x2c50d8(_0x5720f2,_0x523723(0x117)));}[_0xe8ab9d(0x106)](_0x3688c0){const _0xe52ae=_0xe8ab9d;return Boolean((_0x2c50d8(_0x3688c0,_0xe52ae(0x117))||'')[_0xe52ae(0x11e)]>0x0&&_0xe52ae(0x112)!==_0x2c50d8(_0x3688c0,_0xe52ae(0x117)));}[_0xe8ab9d(0x114)](_0x3f8ae3){const _0x58db0d=_0xe8ab9d;return!!_0x3f8ae3&&Boolean(_0x176b9f(_0x3f8ae3)&&_0x4dc70f(_0x3f8ae3)[_0x58db0d(0x111)](/removed[\s*-]data-id="[^"]+"/));}[_0xe8ab9d(0x109)](_0x50e216){const _0xc1d1bb=_0xe8ab9d;let _0xb9e2a7=_0x50e216[_0xc1d1bb(0xf6)];for(;_0xb9e2a7;){if(_0x2c50d8(_0xb9e2a7,_0xc1d1bb(0x11f)))return!0x0;_0xb9e2a7=_0xb9e2a7[_0xc1d1bb(0xf6)];}return!0x1;}[_0xe8ab9d(0xe9)](_0x2de973){const _0x5cc87d=_0xe8ab9d;return Boolean(_0x176b9f(_0x2de973)&&_0x4dc70f(_0x2de973)[_0x5cc87d(0x111)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x4457(_0x3bc497,_0x3f305f){const _0x570ac8=_0x570a();return _0x4457=function(_0x445757,_0x11eab3){_0x445757=_0x445757-0xe3;let _0x3e2b02=_0x570ac8[_0x445757];return _0x3e2b02;},_0x4457(_0x3bc497,_0x3f305f);}function _0x570a(){const _0x3e1387=['lastChild','_insertNodes','beforebegin','_getNodeDataId','markUnstableElements','trim','replaceRemovedWith','cloneNode','13107760IbmZjN','7zjaMzu','slice','reverse','8072154WbEiho','afterbegin','_isNewNode','233919MWnnvi','1jlEeDs','forEach','_isExistingContentComment','nextSibling','1471811xvWBzk','push','_getUid','true','1149730hiILhJ','_existingDataIds','data-removed','_replaceNode','map','childNodes','merge','parentNode','_removeSpecialComments','from','_touchedNodesState','markUnstableElementsDepth','1680412XzQpCG','_findFallbackReferenceNode','includes','_markWrappedElements','_findPrevElementWithDataId','modifiedIds','has','previousSibling','_markUnstableElements','_findReferenceNode','3475191hsQbil','_isExistingNode','indexOf','_storeDeletedElementIds','_hasWrappedParent','nodeType','afterend','cutAfterLastChange','data-unstable','_findNextElementWithDataId','newIds','filter','match','new-element','lastTouchedId','_isDelNode','removedIds','4QnktCC','data-id','invalidIds','60zsvLAo','splice','20soMrro','_generateUid','_markLastTagElementUnstable','length','data-wrapped-id'];_0x570a=function(){return _0x3e1387;};return _0x570a();}
|
|
23
|
+
function _0x88d5(_0x308293,_0x3a6865){const _0x4e886e=_0x4e88();return _0x88d5=function(_0x88d57,_0x38ad72){_0x88d57=_0x88d57-0xa9;let _0xb5d6dd=_0x4e886e[_0x88d57];return _0xb5d6dd;},_0x88d5(_0x308293,_0x3a6865);}const _0x41e106=_0x88d5;(function(_0x2c495a,_0x12b574){const _0x23d0a8=_0x88d5,_0x148316=_0x2c495a();while(!![]){try{const _0x465d02=-parseInt(_0x23d0a8(0xd9))/0x1+-parseInt(_0x23d0a8(0xc9))/0x2*(parseInt(_0x23d0a8(0xba))/0x3)+parseInt(_0x23d0a8(0xde))/0x4*(-parseInt(_0x23d0a8(0xe3))/0x5)+-parseInt(_0x23d0a8(0xcc))/0x6*(parseInt(_0x23d0a8(0xdf))/0x7)+parseInt(_0x23d0a8(0xab))/0x8*(-parseInt(_0x23d0a8(0xdb))/0x9)+parseInt(_0x23d0a8(0xe1))/0xa*(parseInt(_0x23d0a8(0xc4))/0xb)+parseInt(_0x23d0a8(0xe7))/0xc;if(_0x465d02===_0x12b574)break;else _0x148316['push'](_0x148316['shift']());}catch(_0x194c0e){_0x148316['push'](_0x148316['shift']());}}}(_0x4e88,0x4ab3a));import{ObservableMixin as _0x670ad4,uid as _0x3a24c6}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x4cb8c6,findByAttribute as _0xd3b354,getAttribute as _0x2a25b4,isComment as _0x2f2300,isTag as _0x5b25e1,insertElement as _0x5480be,moveElement as _0x50c2c2,removeElement as _0x1a4730,replaceElement as _0x5959c6,serialize as _0x18b0f5,setAttribute as _0x28b804,clone as _0x264037,findAllComments as _0x17777f,getParents as _0x5eb134,getNodeNestingLevel as _0xd62af6,areNodesSame as _0xaf2d0,removeElementsAfter as _0x199c38}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x670ad4(){[_0x41e106(0xec)];[_0x41e106(0xf0)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x41e106(0xc2)]=new Set();constructor(_0x1550ca){const _0x4bcd43=_0x41e106;super(),this[_0x4bcd43(0xec)]=_0x1550ca||_0x3a24c6;}[_0x41e106(0xbd)](_0x13932b,_0xcb481e,_0x1cf878){const _0x4aff35=_0x41e106,_0x2e5a75=_0x264037(_0x13932b);if(0x0===_0xcb481e[_0x4aff35(0xf1)][_0x4aff35(0xc1)]){const _0x409970=[];return _0x4cb8c6(_0x4aff35(0xbc),_0x4aff35(0xc5),_0x2e5a75)[_0x4aff35(0xb7)](_0x56605a=>{const _0x52ead3=_0x4aff35,_0x2b38a0=this[_0x52ead3(0xec)]();_0x28b804(_0x56605a,_0x52ead3(0xbc),_0x2b38a0),_0x409970[_0x52ead3(0xbb)](_0x2b38a0);}),this[_0x4aff35(0xe2)](_0x2e5a75),{'parsedContent':_0x2e5a75,'newNodeIds':_0x409970,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x1cf878&&_0x1cf878[_0x4aff35(0xc7)]&&this[_0x4aff35(0xd4)](_0x2e5a75),this[_0x4aff35(0xf0)][_0x4aff35(0xaf)]=[],this[_0x4aff35(0xf0)][_0x4aff35(0xd2)]=[],this[_0x4aff35(0xf0)][_0x4aff35(0xe6)]=[],this[_0x4aff35(0xf0)][_0x4aff35(0xb6)]=[],this[_0x4aff35(0xf0)][_0x4aff35(0xae)]=null,this[_0x4aff35(0xc2)]=new Set(_0x4cb8c6(_0x4aff35(0xbc),null,_0xcb481e)[_0x4aff35(0xd7)](_0x295efa=>_0x2a25b4(_0x295efa,_0x4aff35(0xbc)))[_0x4aff35(0xe8)](_0x9653f9=>!!_0x9653f9));let _0x1ee7e6=-0x1,_0x2ca6d8=!0x1;const _0x45ccf9=_0x2e5a75[_0x4aff35(0xf1)],_0x51c917=Array[_0x4aff35(0xcf)](_0x45ccf9)[_0x4aff35(0xe8)](_0x2f22e0=>!(0x3===_0x2f22e0[_0x4aff35(0xea)]&&''===_0x18b0f5(_0x2f22e0)[_0x4aff35(0xd1)]())),_0x1e87d6=_0x51c917[_0x4aff35(0xc1)];for(let _0x419579=0x0;_0x419579<_0x1e87d6;_0x419579++){const _0x480c69=_0x51c917[_0x419579],_0xcd29ed=_0x51c917[_0x419579+0x1];if(this[_0x4aff35(0xb1)](_0x480c69)){if(-0x1===_0x1ee7e6&&(_0x1ee7e6=_0x419579),this[_0x4aff35(0xbf)](_0x480c69),!this[_0x4aff35(0xb1)](_0xcd29ed)){const [_0x13c2e0,_0x439a39]=this[_0x4aff35(0xac)](_0x480c69,_0x2ca6d8,_0xcb481e);if(_0x13c2e0){const _0x98fa7f=Array[_0x4aff35(0xcf)](_0x51c917)[_0x4aff35(0xc0)](_0x1ee7e6,_0x419579+0x1);this[_0x4aff35(0xb4)](_0x13c2e0,_0x98fa7f,_0x439a39),_0x1ee7e6=-0x1;}}}else{if(this[_0x4aff35(0xce)](_0x480c69))_0x2ca6d8=!0x0;else{if(this[_0x4aff35(0xad)](_0x480c69)){const _0x3bfb07=_0x2a25b4(_0x480c69,_0x4aff35(0xbc));if(_0x3bfb07&&this[_0x4aff35(0xc2)][_0x4aff35(0xef)](_0x3bfb07)){const _0x17b010=_0xd3b354(_0x4aff35(0xbc),_0x3bfb07,_0xcb481e);this[_0x4aff35(0xc8)](_0x17b010,_0x480c69);}if(this[_0x4aff35(0xf0)][_0x4aff35(0xe6)][_0x4aff35(0xca)](_0x3bfb07)){const _0x5acf65=this[_0x4aff35(0xf0)][_0x4aff35(0xe6)][_0x4aff35(0xed)](_0x3bfb07);this[_0x4aff35(0xf0)][_0x4aff35(0xe6)][_0x4aff35(0xbe)](_0x5acf65,0x1);}}else{if(this[_0x4aff35(0xd5)](_0x480c69)){const _0x2c6edc=_0x2a25b4(_0x480c69,_0x4aff35(0xbc));this[_0x4aff35(0xf0)][_0x4aff35(0xd2)][_0x4aff35(0xca)](_0x2c6edc)||this[_0x4aff35(0xb2)](_0x480c69);}}}}}for(const _0x4bb171 of this[_0x4aff35(0xf0)][_0x4aff35(0xe6)]){const _0x24ce7e=_0xd3b354(_0x4aff35(0xbc),_0x4bb171,_0xcb481e);if(_0x24ce7e){if(_0x1cf878&&_0x1cf878[_0x4aff35(0xd6)]){this[_0x4aff35(0xf0)][_0x4aff35(0xae)]=_0x4bb171;const _0x5a63b9=_0x1cf878[_0x4aff35(0xd6)][_0x4aff35(0xb0)](!0x0);_0x28b804(_0x5a63b9,_0x4aff35(0xbc),_0x4bb171),_0x28b804(_0x5a63b9,_0x4aff35(0xd8),_0x4aff35(0xe4)),_0x5959c6(_0x24ce7e,_0x5a63b9);}else _0x1a4730(_0x24ce7e);}}if(_0x4cb8c6(_0x4aff35(0xe5),null,_0xcb481e)[_0x4aff35(0xb7)](_0xf20cdc=>{const _0x37583e=_0x4aff35,_0x526c4=_0x2a25b4(_0xf20cdc,_0x37583e(0xe5)),_0x4eecf4=_0xd3b354(_0x37583e(0xbc),_0x526c4,_0xcb481e);_0x4eecf4&&_0x50c2c2(_0x4eecf4,_0xf20cdc);}),_0x4cb8c6(_0x4aff35(0xbc),_0x4aff35(0xc5),_0xcb481e)[_0x4aff35(0xb7)](_0x1850fd=>{const _0x2a483b=_0x4aff35,_0x3ca703=this[_0x2a483b(0xcb)](_0x1850fd);_0x28b804(_0x1850fd,_0x2a483b(0xbc),_0x3ca703),this[_0x2a483b(0xf0)][_0x2a483b(0xaf)][_0x2a483b(0xbb)](_0x3ca703);}),this[_0x4aff35(0xe2)](_0xcb481e),_0x1cf878&&_0x1cf878[_0x4aff35(0xc7)]&&this[_0x4aff35(0xd3)](_0xcb481e,_0x1cf878[_0x4aff35(0xe9)]||0x0),_0x1cf878&&_0x1cf878[_0x4aff35(0xaa)]&&this[_0x4aff35(0xf0)][_0x4aff35(0xae)]){let _0x321758=_0xd3b354(_0x4aff35(0xbc),this[_0x4aff35(0xf0)][_0x4aff35(0xae)],_0xcb481e);for(;_0x321758;)_0x199c38(_0x321758),_0x321758=_0x321758[_0x4aff35(0xeb)];}return{'parsedContent':_0xcb481e,'newNodeIds':this[_0x4aff35(0xf0)][_0x4aff35(0xaf)],'modifiedNodeIds':this[_0x4aff35(0xf0)][_0x4aff35(0xd2)],'removedNodeIds':this[_0x4aff35(0xf0)][_0x4aff35(0xe6)]};}[_0x41e106(0xb4)](_0x5a3d1f,_0x301566,_0x31d376){const _0x84228b=_0x41e106;for(const _0x381980 of _0x301566){const _0x2c978a=this[_0x84228b(0xcb)](_0x381980);_0x28b804(_0x381980,_0x84228b(0xbc),_0x2c978a),this[_0x84228b(0xf0)][_0x84228b(0xaf)][_0x84228b(0xbb)](_0x2c978a),this[_0x84228b(0xf0)][_0x84228b(0xae)]=_0x2c978a;}const _0x416a79=_0x84228b(0xb5)===_0x31d376||_0x84228b(0xdc)===_0x31d376?_0x301566[_0x84228b(0xdd)]():_0x301566;for(const _0x53030a of _0x416a79)_0x5480be(_0x5a3d1f,_0x53030a,_0x31d376);}[_0x41e106(0xc8)](_0x4cb500,_0x4f0074){const _0x34f67d=_0x41e106;if(!_0x4cb500)return;if(_0xaf2d0(_0x4cb500,_0x4f0074))return;const _0x3bbef7=this[_0x34f67d(0xcb)](_0x4cb500);_0x28b804(_0x4f0074,_0x34f67d(0xbc),_0x3bbef7),this[_0x34f67d(0xf0)][_0x34f67d(0xd2)][_0x34f67d(0xbb)](_0x3bbef7),this[_0x34f67d(0xf0)][_0x34f67d(0xae)]=_0x3bbef7,_0x5959c6(_0x4cb500,_0x4f0074[_0x34f67d(0xb0)](!0x0));}[_0x41e106(0xac)](_0x588d54,_0x1981d0,_0x34a238){const _0x47ec60=_0x41e106,_0x56b88c=this[_0x47ec60(0xb8)](_0x588d54,!0x1);if(_0x56b88c){const _0x35d45f=this[_0x47ec60(0xee)](_0x56b88c),_0x451520=_0xd3b354(_0x47ec60(0xbc),_0x35d45f,_0x34a238);if(_0x451520)return[_0x451520,_0x47ec60(0xdc)];this[_0x47ec60(0xf0)][_0x47ec60(0xb6)][_0x47ec60(0xbb)](_0x35d45f);}const _0x5517be=this[_0x47ec60(0xc3)](_0x588d54,!0x1);if(_0x5517be){const _0x26aa70=this[_0x47ec60(0xee)](_0x5517be),_0x2026d2=_0xd3b354(_0x47ec60(0xbc),_0x26aa70,_0x34a238);if(_0x2026d2)return[_0x2026d2,_0x47ec60(0xb3)];this[_0x47ec60(0xf0)][_0x47ec60(0xb6)][_0x47ec60(0xbb)](_0x26aa70);}return _0x1981d0?_0x588d54[_0x47ec60(0xa9)]?this[_0x47ec60(0xda)](_0x588d54,_0x34a238):[_0x34a238[_0x47ec60(0xf1)][_0x34a238[_0x47ec60(0xf1)][_0x47ec60(0xc1)]-0x1],_0x47ec60(0xdc)]:[_0x34a238[_0x47ec60(0xf1)][0x0],_0x47ec60(0xb3)];}[_0x41e106(0xda)](_0x210d35,_0x136f62){const _0x10eaf3=_0x41e106,_0xb0a5d6=[],_0x567cfa=this[_0x10eaf3(0xb8)](_0x210d35,!0x0);if(_0x567cfa){const _0x24617f=this[_0x10eaf3(0xee)](_0x567cfa),_0x3b29f7=_0xd3b354(_0x10eaf3(0xbc),_0x24617f,_0x136f62);_0x3b29f7&&_0xb0a5d6[_0x10eaf3(0xbb)]([_0x3b29f7,_0x10eaf3(0xdc)]);}const _0x32993d=this[_0x10eaf3(0xc3)](_0x210d35,!0x0);if(_0x32993d){const _0x200243=this[_0x10eaf3(0xee)](_0x32993d),_0x94612d=_0xd3b354(_0x10eaf3(0xbc),_0x200243,_0x136f62);_0x94612d&&_0xb0a5d6[_0x10eaf3(0xbb)]([_0x94612d,_0x10eaf3(0xb3)]);}if(_0xb0a5d6[_0x10eaf3(0xc1)]>0x1)return _0xd62af6(_0xb0a5d6[0x0][0x0])<=_0xd62af6(_0xb0a5d6[0x1][0x0])?_0xb0a5d6[0x0]:_0xb0a5d6[0x1];return 0x1===_0xb0a5d6[_0x10eaf3(0xc1)]?_0xb0a5d6[0x0]:[_0x136f62[_0x10eaf3(0xe0)],_0x10eaf3(0xdc)];}[_0x41e106(0xc3)](_0x5a26e0,_0x43e8e9){const _0x3419c8=_0x41e106;let _0x1aec50=_0x5a26e0[_0x3419c8(0xa9)],_0xf917db=null,_0x4e5d5e=!0x1;for(;_0x1aec50;){if(_0x2f2300(_0x1aec50)){if(this[_0x3419c8(0xd5)](_0x1aec50)&&(_0xf917db=_0x1aec50),this[_0x3419c8(0xce)](_0x1aec50)&&_0x43e8e9&&!_0x4e5d5e){_0x4e5d5e=!0x0,_0x1aec50=_0x1aec50[_0x3419c8(0xa9)];continue;}break;}const _0x3a6dde=_0x2a25b4(_0x1aec50,_0x3419c8(0xbc));if(_0x3a6dde&&_0x3419c8(0xc5)!==_0x3a6dde&&this[_0x3419c8(0xc2)][_0x3419c8(0xef)](_0x3a6dde)){_0xf917db=_0x1aec50;break;}_0x1aec50=_0x1aec50[_0x3419c8(0xa9)];}return _0xf917db;}[_0x41e106(0xb8)](_0x102e6b,_0x52d4c5){const _0x298079=_0x41e106;let _0x5720f4=_0x102e6b[_0x298079(0xc6)],_0x38d3de=null,_0x24b596=!0x1;for(;_0x5720f4;){if(_0x2f2300(_0x5720f4)){if(this[_0x298079(0xd5)](_0x5720f4)&&(_0x38d3de=_0x5720f4),this[_0x298079(0xce)](_0x5720f4)&&_0x52d4c5&&!_0x24b596){_0x24b596=!0x0,_0x5720f4=_0x5720f4[_0x298079(0xc6)];continue;}break;}const _0x1614e9=_0x2a25b4(_0x5720f4,_0x298079(0xbc));if(_0x1614e9&&_0x298079(0xc5)!==_0x1614e9&&this[_0x298079(0xc2)][_0x298079(0xef)](_0x1614e9)){_0x38d3de=_0x5720f4;break;}_0x5720f4=_0x5720f4[_0x298079(0xc6)];}return _0x38d3de;}[_0x41e106(0xbf)](_0x24a52d){const _0x549559=_0x41e106;_0x5b25e1(_0x24a52d)&&_0x4cb8c6(_0x549559(0xbc),null,_0x24a52d)[_0x549559(0xb7)](_0x2c12f4=>{const _0x3706a3=_0x549559;if(this[_0x3706a3(0xad)](_0x2c12f4)&&!this[_0x3706a3(0xcd)](_0x2c12f4)){const _0x372314=_0x2a25b4(_0x2c12f4,_0x3706a3(0xbc));_0x28b804(_0x2c12f4,_0x3706a3(0xe5),_0x372314),_0x28b804(_0x2c12f4,_0x3706a3(0xbc),null);}});}[_0x41e106(0xee)](_0x2dac5f){const _0x1ab74e=_0x41e106;if(!_0x2dac5f)return null;if(_0x5b25e1(_0x2dac5f))return _0x2a25b4(_0x2dac5f,_0x1ab74e(0xbc));if(_0x2f2300(_0x2dac5f)){const _0x3c505a=_0x18b0f5(_0x2dac5f)[_0x1ab74e(0xd0)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3c505a&&_0x3c505a[0x1])return _0x3c505a[0x1];}return null;}[_0x41e106(0xb2)](_0x3c3981){const _0x33353a=_0x41e106;if(_0x2f2300(_0x3c3981)){const _0x46e64f=_0x18b0f5(_0x3c3981)[_0x33353a(0xd0)](/removed[\s*-]data-id="([^"]+)"/);_0x46e64f&&_0x46e64f[0x1]&&this[_0x33353a(0xf0)][_0x33353a(0xe6)][_0x33353a(0xbb)](_0x46e64f[0x1]);}}[_0x41e106(0xcb)](_0x259d65){const _0x405642=_0x41e106;return this[_0x405642(0xad)](_0x259d65)?_0x2a25b4(_0x259d65,_0x405642(0xbc)):this[_0x405642(0xec)]();}[_0x41e106(0xe2)](_0x53e9aa){const _0x371204=_0x41e106;_0x17777f(_0x53e9aa)[_0x371204(0xe8)](_0x4bc6d7=>this[_0x371204(0xd5)](_0x4bc6d7)||this[_0x371204(0xce)](_0x4bc6d7))[_0x371204(0xb7)](_0xcd2dc9=>{_0x1a4730(_0xcd2dc9);});}[_0x41e106(0xd4)](_0x42d525){const _0x1ce7b1=_0x41e106,_0x2731e4=_0x42d525[_0x1ce7b1(0xf1)],_0x365655=_0x2731e4[_0x2731e4[_0x1ce7b1(0xc1)]-0x1];_0x365655&&_0x5b25e1(_0x365655)&&_0x28b804(_0x365655,_0x1ce7b1(0xb9),_0x1ce7b1(0xe4));}[_0x41e106(0xd3)](_0x5bebce,_0x2bc7de){const _0x34d9fc=_0x41e106,_0x1323c6=_0xd3b354(_0x34d9fc(0xb9),_0x34d9fc(0xe4),_0x5bebce);if(!_0x1323c6)return;const _0x3c6948=_0x5eb134(_0x1323c6)[_0x34d9fc(0xc0)](0x0,-0x1),_0x5e16dc=_0x3c6948[_0x34d9fc(0xc1)];let _0x41ceaf=_0x1323c6;if(_0x5e16dc>_0x2bc7de){let _0x5bb078=_0x5e16dc,_0x29f009=null;for(;_0x5bb078>_0x2bc7de&&_0x5bb078>=0x0;)_0x5bb078--,_0x29f009=_0x3c6948[_0x5bb078];_0x29f009&&(_0x41ceaf=_0x29f009,_0x28b804(_0x1323c6,_0x34d9fc(0xb9),null),_0x28b804(_0x29f009,_0x34d9fc(0xb9),_0x34d9fc(0xe4)));}else{if(_0x5e16dc<_0x2bc7de){let _0x1f3f47=_0x5e16dc,_0x37a4f4=_0x1323c6;for(;_0x1f3f47<_0x2bc7de;){const _0x162c4a=_0x37a4f4[_0x34d9fc(0xf1)][_0x34d9fc(0xe8)](_0x6a4824=>_0x5b25e1(_0x6a4824));if(0x0===_0x162c4a[_0x34d9fc(0xc1)])break;_0x1f3f47++,_0x37a4f4=_0x162c4a[_0x162c4a[_0x34d9fc(0xc1)]-0x1];}_0x37a4f4&&(_0x41ceaf=_0x37a4f4,_0x28b804(_0x1323c6,_0x34d9fc(0xb9),null),_0x28b804(_0x37a4f4,_0x34d9fc(0xb9),_0x34d9fc(0xe4)));}}let _0x39a030=_0x41ceaf;for(;_0x39a030;){for(;_0x39a030[_0x34d9fc(0xa9)];)_0x39a030=_0x39a030[_0x34d9fc(0xa9)],_0x5b25e1(_0x39a030)&&_0x28b804(_0x39a030,_0x34d9fc(0xb9),_0x34d9fc(0xe4));_0x39a030=_0x39a030[_0x34d9fc(0xeb)];}}[_0x41e106(0xb1)](_0x25f4dc){const _0x37e43e=_0x41e106;return Boolean(_0x37e43e(0xc5)===_0x2a25b4(_0x25f4dc,_0x37e43e(0xbc)));}[_0x41e106(0xad)](_0x13d05b){const _0x274e4d=_0x41e106;return Boolean((_0x2a25b4(_0x13d05b,_0x274e4d(0xbc))||'')[_0x274e4d(0xc1)]>0x0&&_0x274e4d(0xc5)!==_0x2a25b4(_0x13d05b,_0x274e4d(0xbc)));}[_0x41e106(0xd5)](_0x5ade62){const _0x2bcece=_0x41e106;return!!_0x5ade62&&Boolean(_0x2f2300(_0x5ade62)&&_0x18b0f5(_0x5ade62)[_0x2bcece(0xd0)](/removed[\s*-]data-id="[^"]+"/));}[_0x41e106(0xcd)](_0x283712){const _0x596ee8=_0x41e106;let _0x54bf46=_0x283712[_0x596ee8(0xeb)];for(;_0x54bf46;){if(_0x2a25b4(_0x54bf46,_0x596ee8(0xe5)))return!0x0;_0x54bf46=_0x54bf46[_0x596ee8(0xeb)];}return!0x1;}[_0x41e106(0xce)](_0x37ad8f){const _0x4a74e0=_0x41e106;return Boolean(_0x2f2300(_0x37ad8f)&&_0x18b0f5(_0x37ad8f)[_0x4a74e0(0xd0)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x4e88(){const _0x1bc59b=['42CvAFGK','_hasWrappedParent','_isExistingContentComment','from','match','trim','modifiedIds','_markUnstableElements','_markLastTagElementUnstable','_isDelNode','replaceRemovedWith','map','data-removed','285181zGaAHH','_findFallbackReferenceNode','1023912pKyJoB','afterend','reverse','2292176VPJisD','267911YOFAle','lastChild','50pHIZPY','_removeSpecialComments','5DAhbhO','true','data-wrapped-id','removedIds','25693596swgDus','filter','markUnstableElementsDepth','nodeType','parentNode','_generateUid','indexOf','_getNodeDataId','has','_touchedNodesState','childNodes','nextSibling','cutAfterLastChange','32OeEATx','_findReferenceNode','_isExistingNode','lastTouchedId','newIds','cloneNode','_isNewNode','_storeDeletedElementIds','beforebegin','_insertNodes','afterbegin','invalidIds','forEach','_findPrevElementWithDataId','data-unstable','229173oaYULN','push','data-id','merge','splice','_markWrappedElements','slice','length','_existingDataIds','_findNextElementWithDataId','617738yGTVJZ','new-element','previousSibling','markUnstableElements','_replaceNode','14iwuxEq','includes','_getUid'];_0x4e88=function(){return _0x1bc59b;};return _0x4e88();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x2ebf(_0x5da306,_0x253b22){const _0x589db0=_0x589d();return _0x2ebf=function(_0x2ebf00,_0x4b0529){_0x2ebf00=_0x2ebf00-0x1c0;let _0x7057f1=_0x589db0[_0x2ebf00];return _0x7057f1;},_0x2ebf(_0x5da306,_0x253b22);}const _0x2aec14=_0x2ebf;(function(_0x1214c6,_0x5d387a){const _0x654cf6=_0x2ebf,_0x1f9eb9=_0x1214c6();while(!![]){try{const _0x39ea67=parseInt(_0x654cf6(0x1c2))/0x1*(parseInt(_0x654cf6(0x1d0))/0x2)+-parseInt(_0x654cf6(0x1c0))/0x3+-parseInt(_0x654cf6(0x1ca))/0x4*(parseInt(_0x654cf6(0x1cd))/0x5)+parseInt(_0x654cf6(0x1cb))/0x6+-parseInt(_0x654cf6(0x1c4))/0x7+-parseInt(_0x654cf6(0x1c6))/0x8*(parseInt(_0x654cf6(0x1ce))/0x9)+parseInt(_0x654cf6(0x1c5))/0xa;if(_0x39ea67===_0x5d387a)break;else _0x1f9eb9['push'](_0x1f9eb9['shift']());}catch(_0x324e57){_0x1f9eb9['push'](_0x1f9eb9['shift']());}}}(_0x589d,0x989f4));import{ObservableMixin as _0x569ff2}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x104ec0}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x941fee}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x569ff2(){[_0x2aec14(0x1d1)];constructor(){const _0x502063=_0x2aec14;super(),this[_0x502063(0x1d1)]=new _0x104ec0();}[_0x2aec14(0x1d2)](_0x1056fb){const _0x58a677=_0x2aec14,_0xa927de=this[_0x58a677(0x1d1)][_0x58a677(0x1c9)](_0x1056fb);return this[_0x58a677(0x1c3)](_0xa927de);}[_0x2aec14(0x1c3)](_0x52e00f){const _0x55df0e=_0x2aec14;return this[_0x55df0e(0x1c7)](_0x52e00f);}[_0x2aec14(0x1c7)](_0x53b032){const _0x19ad04=_0x2aec14,_0x48a8a3=_0x53b032[_0x19ad04(0x1c8)](/^\t+/gm,'\x20')[_0x19ad04(0x1c8)](/\n*/g,'')[_0x19ad04(0x1c8)](/\s+/g,'\x20')[_0x19ad04(0x1c8)](/<[^>]*?$/g,''),_0x598a34=_0x941fee(_0x19ad04(0x1cc)+_0x48a8a3+_0x19ad04(0x1c1));return _0x598a34[_0x19ad04(0x1cf)]=_0x598a34[_0x19ad04(0x1cf)][0x0][_0x19ad04(0x1cf)],_0x598a34;}}function _0x589d(){const _0x91376f=['parse','4NXFEgg','1820310pLMlND','<dummy>','3705935FpUFHO','27odwSLE','children','44724bohETU','_m2html','convertMarkdownToHTML','1991343ERUIZz','</dummy>','16GczyPp','parseAndNormalizeHTML','3941245gtDgCN','19459430COQzFc','37272IqzqPv','_parseHTML','replace'];_0x589d=function(){return _0x91376f;};return _0x589d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1f3d(_0x447427,_0x45ff3c){var _0x29d021=_0x29d0();return _0x1f3d=function(_0x1f3d7c,_0x45a43b){_0x1f3d7c=_0x1f3d7c-0x14b;var _0x28a907=_0x29d021[_0x1f3d7c];return _0x28a907;},_0x1f3d(_0x447427,_0x45ff3c);}(function(_0x4a660f,_0x3fef1b){var _0x131d7e=_0x1f3d,_0x52b48c=_0x4a660f();while(!![]){try{var _0x40995a=-parseInt(_0x131d7e(0x14f))/0x1+parseInt(_0x131d7e(0x157))/0x2+parseInt(_0x131d7e(0x155))/0x3+-parseInt(_0x131d7e(0x153))/0x4+parseInt(_0x131d7e(0x156))/0x5*(-parseInt(_0x131d7e(0x154))/0x6)+-parseInt(_0x131d7e(0x14c))/0x7+parseInt(_0x131d7e(0x14b))/0x8;if(_0x40995a===_0x3fef1b)break;else _0x52b48c['push'](_0x52b48c['shift']());}catch(_0xd7738){_0x52b48c['push'](_0x52b48c['shift']());}}}(_0x29d0,0x917f9));function _0x29d0(){var _0x137cce=['1196951TiUijC','AI_DISCLAIMER_TEXT','ck-ai-disclaimer__content','1125139YwhSrv','setTemplate','ck-ai-disclaimer','div','3461284jOaAPJ','294ATrXWf','1649847oSnQuw','62270oeyuqP','2292860wbZtrI','13370248wMltrW'];_0x29d0=function(){return _0x137cce;};return _0x29d0();}import{View as _0x4b44db}from'ckeditor5/src/ui.js';import{getTranslation as _0xd6a2fa}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x4b44db{constructor(_0x95d550){var _0x4098e2=_0x1f3d;super(_0x95d550),this[_0x4098e2(0x150)]({'tag':_0x4098e2(0x152),'attributes':{'class':['ck',_0x4098e2(0x151)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4098e2(0x14e)]},'children':[{'text':_0xd6a2fa(_0x95d550,_0x4098e2(0x14d))}]}]});}}
|