@ckeditor/ckeditor5-ai 47.2.0-alpha.4 → 47.2.0-alpha.5
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/model/aichatmodels.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/aichat/utils/scrollmanager.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/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/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/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/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/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/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
|
|
23
|
+
function _0x3d1a(){const _0x480c35=['set','554974UIqmFV','indexOf','filter','setTemplate','1090zciRdf','find','ck-ai-chat-history__section','itemsViews','div','3342053ZATItY','addMany','isMatching','getItem','title','removeItem','remove','21263najkyb','highlightText','ck-hidden','ck-ai-chat-history__section-title','bindTemplate','70TjVXjP','58gacaQl','isVisible','items','8zNQBmv','666WKycAS','splice','64224TrUTuG','54921GZnFki','7150kDNuQh','19112QgTApE','length','24UYavHq','_itemsListView'];_0x3d1a=function(){return _0x480c35;};return _0x3d1a();}const _0x321aa6=_0xe5f1;(function(_0x2a47f0,_0x37c5a9){const _0x4286c9=_0xe5f1,_0x22045c=_0x2a47f0();while(!![]){try{const _0x411aa2=parseInt(_0x4286c9(0x198))/0x1*(-parseInt(_0x4286c9(0x190))/0x2)+parseInt(_0x4286c9(0x197))/0x3*(-parseInt(_0x4286c9(0x193))/0x4)+parseInt(_0x4286c9(0x18f))/0x5*(-parseInt(_0x4286c9(0x196))/0x6)+parseInt(_0x4286c9(0x19e))/0x7+-parseInt(_0x4286c9(0x199))/0x8*(parseInt(_0x4286c9(0x194))/0x9)+-parseInt(_0x4286c9(0x1a2))/0xa*(-parseInt(_0x4286c9(0x18a))/0xb)+parseInt(_0x4286c9(0x19b))/0xc*(parseInt(_0x4286c9(0x183))/0xd);if(_0x411aa2===_0x37c5a9)break;else _0x22045c['push'](_0x22045c['shift']());}catch(_0x1a862e){_0x22045c['push'](_0x22045c['shift']());}}}(_0x3d1a,0x3903f));function _0xe5f1(_0xf8b97d,_0x3919c5){const _0x3d1a04=_0x3d1a();return _0xe5f1=function(_0xe5f10b,_0x85843f){_0xe5f10b=_0xe5f10b-0x183;let _0x486cd9=_0x3d1a04[_0xe5f10b];return _0x486cd9;},_0xe5f1(_0xf8b97d,_0x3919c5);}import{ListItemView as _0x44c530,View as _0x5c4cc6,ListView as _0x2aa11d}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x44c530{[_0x321aa6(0x187)];[_0x321aa6(0x1a5)];[_0x321aa6(0x19c)];constructor(_0x13a0e5,{title:_0x101793,items:_0x34a846}){const _0x1739bd=_0x321aa6;super(_0x13a0e5);const _0x2bf980=this[_0x1739bd(0x18e)];this[_0x1739bd(0x19d)](_0x1739bd(0x191),!0x0),this[_0x1739bd(0x187)]=_0x101793,this[_0x1739bd(0x1a5)]=_0x34a846;const _0x223d02=new _0x5c4cc6(_0x13a0e5);_0x223d02[_0x1739bd(0x1a1)]({'tag':_0x1739bd(0x1a6),'attributes':{'class':[_0x1739bd(0x18d)]},'children':[this[_0x1739bd(0x187)]]}),this[_0x1739bd(0x19c)]=new _0x2aa11d(_0x13a0e5),this[_0x1739bd(0x19c)][_0x1739bd(0x192)][_0x1739bd(0x184)](this[_0x1739bd(0x1a5)]),this[_0x1739bd(0x1a1)]({'tag':'li','attributes':{'class':[_0x1739bd(0x1a4),_0x2bf980['if'](_0x1739bd(0x191),_0x1739bd(0x18c),_0xdef01=>!_0xdef01)]},'children':[_0x223d02,this[_0x1739bd(0x19c)]]});}[_0x321aa6(0x1a0)](_0x5f09bf){const _0x9db865=_0x321aa6,_0x5bf53d=this[_0x9db865(0x1a5)][_0x9db865(0x19a)];let _0x3adf32=0x0;for(const _0x4c2b60 of this[_0x9db865(0x1a5)]){if(_0x5f09bf){const _0x1e8d07=_0x4c2b60[_0x9db865(0x185)](_0x5f09bf);_0x4c2b60[_0x9db865(0x191)]=!!_0x1e8d07,_0x4c2b60[_0x9db865(0x18b)](_0x5f09bf);}else _0x4c2b60[_0x9db865(0x191)]=!0x0,_0x4c2b60[_0x9db865(0x18b)](null);_0x4c2b60[_0x9db865(0x191)]&&_0x3adf32++;}return this[_0x9db865(0x191)]=_0x3adf32>0x0,{'resultsCount':_0x3adf32,'totalItemsCount':_0x5bf53d};}[_0x321aa6(0x186)](_0x36cf4b){const _0x583240=_0x321aa6;return this[_0x583240(0x1a5)][_0x583240(0x1a3)](_0x428a88=>_0x428a88['id']===_0x36cf4b);}[_0x321aa6(0x188)](_0x994979){const _0x5e36f0=_0x321aa6,_0x4a9192=this[_0x5e36f0(0x1a5)][_0x5e36f0(0x19f)](_0x994979);-0x1!==_0x4a9192&&(this[_0x5e36f0(0x1a5)][_0x5e36f0(0x195)](_0x4a9192,0x1),this[_0x5e36f0(0x19c)][_0x5e36f0(0x192)][_0x5e36f0(0x189)](_0x994979));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x350e69=_0x3a9b;function _0x1976(){const _0x5850c6=['84033VMPfKH','776iJNYIj','733931tYFqBz','211707NEgaTa','ck-ai-chat-history__sections','4rgcJUh','filter','sections','addMany','9168418MmaETn','extendTemplate','56780RwtGHc','items','341339VxthFU','376EqdIfx','5862402mvHhQF','530AjCbXx'];_0x1976=function(){return _0x5850c6;};return _0x1976();}function _0x3a9b(_0xec99d0,_0x419995){const _0x197678=_0x1976();return _0x3a9b=function(_0x3a9b18,_0x119c9b){_0x3a9b18=_0x3a9b18-0x168;let _0x1b817e=_0x197678[_0x3a9b18];return _0x1b817e;},_0x3a9b(_0xec99d0,_0x419995);}(function(_0x253495,_0x343487){const _0x41a191=_0x3a9b,_0x4566bf=_0x253495();while(!![]){try{const _0x16bf9f=-parseInt(_0x41a191(0x171))/0x1+parseInt(_0x41a191(0x169))/0x2*(-parseInt(_0x41a191(0x178))/0x3)+parseInt(_0x41a191(0x172))/0x4*(parseInt(_0x41a191(0x16f))/0x5)+-parseInt(_0x41a191(0x173))/0x6+-parseInt(_0x41a191(0x16d))/0x7+parseInt(_0x41a191(0x176))/0x8*(-parseInt(_0x41a191(0x175))/0x9)+-parseInt(_0x41a191(0x174))/0xa*(-parseInt(_0x41a191(0x177))/0xb);if(_0x16bf9f===_0x343487)break;else _0x4566bf['push'](_0x4566bf['shift']());}catch(_0x428501){_0x4566bf['push'](_0x4566bf['shift']());}}}(_0x1976,0xe2b9e));import{ListView as _0x274b5e}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x274b5e{[_0x350e69(0x16b)];constructor(_0x6864ae,_0x20041c){const _0x170c3f=_0x350e69;super(_0x6864ae),this[_0x170c3f(0x16b)]=_0x20041c,this[_0x170c3f(0x170)][_0x170c3f(0x16c)](this[_0x170c3f(0x16b)]),this[_0x170c3f(0x16e)]({'attributes':{'class':[_0x170c3f(0x168)]}});}[_0x350e69(0x16a)](_0x4710e1){const _0x3c9b54=_0x350e69;let _0x4989ab=0x0,_0xa635a1=0x0;for(const _0x36009d of this[_0x3c9b54(0x16b)]){const {resultsCount:_0x5ca266,totalItemsCount:_0x306b58}=_0x36009d[_0x3c9b54(0x16a)](_0x4710e1);_0x4989ab+=_0x5ca266,_0xa635a1+=_0x306b58;}return{'resultsCount':_0x4989ab,'totalItemsCount':_0xa635a1};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c97a3=_0x4b4c;(function(_0x21cdf7,_0x5a3e56){const _0x339c94=_0x4b4c,_0x3d3462=_0x21cdf7();while(!![]){try{const _0x1f064b=-parseInt(_0x339c94(0x169))/0x1+parseInt(_0x339c94(0x17e))/0x2*(parseInt(_0x339c94(0x189))/0x3)+-parseInt(_0x339c94(0x17b))/0x4*(parseInt(_0x339c94(0x176))/0x5)+-parseInt(_0x339c94(0x17c))/0x6+-parseInt(_0x339c94(0x14b))/0x7+parseInt(_0x339c94(0x150))/0x8*(-parseInt(_0x339c94(0x182))/0x9)+parseInt(_0x339c94(0x191))/0xa;if(_0x1f064b===_0x5a3e56)break;else _0x3d3462['push'](_0x3d3462['shift']());}catch(_0x2810ef){_0x3d3462['push'](_0x3d3462['shift']());}}}(_0x1419,0x52a4b));import{View as _0x1bd8e4,SearchTextView as _0x193651,FormHeaderView as _0x59a2a4,ButtonView as _0xb8a249}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xaf8765,IconCancel as _0x4aa1e7,IconPlus as _0x25a466}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x35c875}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x10c55a}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5808d6}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x20d28d}from'../aichathistoryui.js';import{AISkeletonView as _0x10dcc8,SKELETON_DEFINITIONS as _0x565505}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3fa6eb}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x3fad78}from'../../aicore/utils/common-translations.js';function _0x1419(){const _0x287233=['remove','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_refreshSearch','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','fire','title','AI_CHAT_HISTORY_SEARCH_LABEL','indexOf','10iGlOoA','skeletonView','isMaximized','ck-ai-chat__start-conversation','ck-hidden','541580faTqOE','1697568KBXgtD','searchView','4934ZDdSiZ','search','addMany','extendTemplate','135KlUMpa','_createSkeletonView','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-error','AI_CHAT_HISTORY_HEADING','fieldView','ck-ai-chat-history','591CmSJdj','ck-reset_all','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty','splice','value','change:hasItems','emptyView','13516050xKezhQ','_createListItemViews','updateLoadingState','hasItems','ck-ai-chat-history__content','isSearchViewVisible','queryView','_createErrorView','add','change:errorMessage','removeHistoryItem','delegate','updateItemLoadingState','itemsViews','execute','ck-rounded-corners','errorMessage','_createEmptyStateView','removeItem','isEmptyViewVisible','set','2835273TeVpZH','AI_CHAT_LABEL_NEW_CHAT','_createSearchView','items','div','158552DzjvPz','bindTemplate','render','element','openChat','aiHistory','some','resizeButton','ltr','isVisible','ck-ai-chat-history__empty-message','updateHistoryItemsWithCategories','updateItemTitle','push','clear','_updateViewVisibility','setTemplate','locale','getItem','sectionsView','children','change:isLoading','isLoading','sections','errorView','243055MaePgS','length','bind','ck-ai-chat-error__dismiss-button'];_0x1419=function(){return _0x287233;};return _0x1419();}function _0x4b4c(_0x3ecf7e,_0x35dc79){const _0x141938=_0x1419();return _0x4b4c=function(_0x4b4c60,_0x471146){_0x4b4c60=_0x4b4c60-0x143;let _0x203da5=_0x141938[_0x4b4c60];return _0x203da5;},_0x4b4c(_0x3ecf7e,_0x35dc79);}export class AIChatHistoryView extends _0x1bd8e4{[_0x3c97a3(0x17d)];[_0x3c97a3(0x168)];[_0x3c97a3(0x177)];[_0x3c97a3(0x190)];[_0x3c97a3(0x163)];[_0x3c97a3(0x157)];constructor(_0x32867b,_0x1fbfaa){const _0x1a1017=_0x3c97a3;super(_0x32867b),this[_0x1a1017(0x14a)](_0x1a1017(0x194),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x166),!0x0),this[_0x1a1017(0x14a)](_0x1a1017(0x146),''),this[_0x1a1017(0x14a)](_0x1a1017(0x178),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x196),!0x1),this[_0x1a1017(0x14a)](_0x1a1017(0x149),!0x1);const _0x55c652=new _0x59a2a4(_0x32867b,{'label':_0x3fad78(_0x32867b,_0x1a1017(0x186)),'icon':_0xaf8765,'class':_0x1a1017(0x184)});_0x1fbfaa&&(this[_0x1a1017(0x157)]=_0x3fa6eb(_0x32867b,this),_0x55c652[_0x1a1017(0x164)][_0x1a1017(0x199)](this[_0x1a1017(0x157)])),this[_0x1a1017(0x163)]=new _0x35c875(_0x32867b,[]),this[_0x1a1017(0x163)][_0x1a1017(0x19c)](..._0x20d28d)['to'](this),this[_0x1a1017(0x168)]=this[_0x1a1017(0x198)](),this[_0x1a1017(0x177)]=this[_0x1a1017(0x183)](),this[_0x1a1017(0x190)]=this[_0x1a1017(0x147)](),this[_0x1a1017(0x17d)]=this[_0x1a1017(0x14d)](),this['on'](_0x1a1017(0x165),()=>this[_0x1a1017(0x15f)]()),this['on'](_0x1a1017(0x18f),()=>this[_0x1a1017(0x15f)]()),this['on'](_0x1a1017(0x19a),()=>this[_0x1a1017(0x15f)]()),this[_0x1a1017(0x160)]({'tag':_0x1a1017(0x14f),'attributes':{'class':['ck',_0x1a1017(0x18a),_0x1a1017(0x188),_0x1a1017(0x145)],'dir':_0x1a1017(0x158)},'children':[_0x55c652,{'tag':_0x1a1017(0x14f),'attributes':{'class':[_0x1a1017(0x195)]},'children':[this[_0x1a1017(0x177)],this[_0x1a1017(0x168)],this[_0x1a1017(0x190)],this[_0x1a1017(0x17d)]]}]});}[_0x3c97a3(0x15f)](){const _0x2499a8=_0x3c97a3;this[_0x2499a8(0x196)]=!this[_0x2499a8(0x166)]&&this[_0x2499a8(0x194)]&&!this[_0x2499a8(0x146)],this[_0x2499a8(0x149)]=!this[_0x2499a8(0x166)]&&!this[_0x2499a8(0x194)]&&!this[_0x2499a8(0x146)];}[_0x3c97a3(0x14d)](){const _0x9465f0=_0x3c97a3,_0x5de5ee=new _0x193651(this[_0x9465f0(0x161)],{'filteredView':this[_0x9465f0(0x163)],'queryView':{'label':_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x174))},'infoView':{'text':{'notFound':{'primary':_0x54a0f5=>_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x16e),_0x54a0f5),'secondary':_0x3fad78(this[_0x9465f0(0x161)],_0x9465f0(0x171))}}}});return _0x5de5ee['on'](_0x9465f0(0x152),()=>{const _0x2cfffc=_0x9465f0;this[_0x2cfffc(0x17d)][_0x2cfffc(0x164)][_0x2cfffc(0x199)](this[_0x2cfffc(0x168)],0x1);}),_0x5de5ee[_0x9465f0(0x181)]({'attributes':{'class':[this[_0x9465f0(0x151)]['if'](_0x9465f0(0x196),_0x9465f0(0x17a),_0x3cc4cc=>!_0x3cc4cc)]}}),_0x5de5ee;}[_0x3c97a3(0x183)](){const _0xccd21c=_0x3c97a3,_0x303b9f=new _0x10dcc8(this[_0xccd21c(0x161)],_0x565505[_0xccd21c(0x155)]);return _0x303b9f[_0xccd21c(0x181)]({'attributes':{'class':[this[_0xccd21c(0x151)]['if'](_0xccd21c(0x166),_0xccd21c(0x17a),_0x4a4aee=>!_0x4a4aee)]}}),_0x303b9f;}[_0x3c97a3(0x198)](){const _0x44e2bc=_0x3c97a3,_0xc30959=new _0x1bd8e4(this[_0x44e2bc(0x161)]),_0x4dbc8=new _0xb8a249(this[_0x44e2bc(0x161)]);return _0x4dbc8[_0x44e2bc(0x14a)]({'withText':!0x1,'icon':_0x4aa1e7,'class':_0x44e2bc(0x16c)}),_0x4dbc8[_0x44e2bc(0x16b)](_0x44e2bc(0x159))['to'](this,_0x44e2bc(0x194),_0x28cc94=>!!_0x28cc94),_0x4dbc8['on'](_0x44e2bc(0x144),()=>{const _0x349704=_0x44e2bc;this[_0x349704(0x146)]='';}),_0xc30959[_0x44e2bc(0x160)]({'tag':_0x44e2bc(0x14f),'attributes':{'class':['ck',_0x44e2bc(0x185),this[_0x44e2bc(0x151)]['if'](_0x44e2bc(0x146),_0x44e2bc(0x17a),_0x593f66=>!_0x593f66)]},'children':[{'tag':'p','children':[{'text':this[_0x44e2bc(0x151)]['to'](_0x44e2bc(0x146))}]},_0x4dbc8]}),_0xc30959;}[_0x3c97a3(0x147)](){const _0x2cdf9c=_0x3c97a3,_0x3261d3=new _0xb8a249(this[_0x2cdf9c(0x161)]);_0x3261d3[_0x2cdf9c(0x14a)]({'label':_0x3fad78(this[_0x2cdf9c(0x161)],_0x2cdf9c(0x14c)),'withText':!0x0,'icon':_0x25a466,'class':_0x2cdf9c(0x179)}),_0x3261d3['on'](_0x2cdf9c(0x144),()=>{const _0x150005=_0x2cdf9c;this[_0x150005(0x172)](_0x150005(0x154));});const _0x593d6f=new _0x1bd8e4(this[_0x2cdf9c(0x161)]);return _0x593d6f[_0x2cdf9c(0x160)]({'tag':_0x2cdf9c(0x14f),'attributes':{'class':[_0x2cdf9c(0x18c),this[_0x2cdf9c(0x151)]['if'](_0x2cdf9c(0x149),_0x2cdf9c(0x17a),_0x34e75a=>!_0x34e75a)]},'children':[{'tag':'p','attributes':{'class':[_0x2cdf9c(0x15a)]},'children':[_0x3fad78(this[_0x2cdf9c(0x161)],_0x2cdf9c(0x18b))]},_0x3261d3]}),_0x593d6f;}[_0x3c97a3(0x192)](_0x7ab09e,_0x10de94){const _0x549977=_0x3c97a3,_0x45b1a1=[];for(const _0x525cd0 of _0x7ab09e){const _0x3a9da7=new _0x5808d6(_0x10de94,_0x525cd0);_0x3a9da7[_0x549977(0x19c)](..._0x20d28d)['to'](this),_0x45b1a1[_0x549977(0x15d)](_0x3a9da7);}return _0x45b1a1;}[_0x3c97a3(0x15b)](_0x13099e){const _0x2245df=_0x3c97a3,_0x443e53=this[_0x2245df(0x161)]||'en',_0x5af563=[];for(const _0x118e94 of _0x13099e){const _0x2bb058=this[_0x2245df(0x192)](_0x118e94[_0x2245df(0x14e)],_0x443e53);_0x5af563[_0x2245df(0x15d)](new _0x10c55a(_0x443e53,{'title':_0x118e94[_0x2245df(0x173)],'items':_0x2bb058}));}this[_0x2245df(0x163)][_0x2245df(0x167)]=_0x5af563,this[_0x2245df(0x163)][_0x2245df(0x14e)][_0x2245df(0x15e)](),this[_0x2245df(0x163)][_0x2245df(0x14e)][_0x2245df(0x180)](_0x5af563),this[_0x2245df(0x194)]=_0x13099e[_0x2245df(0x156)](_0x269c63=>_0x269c63[_0x2245df(0x14e)][_0x2245df(0x16a)]>0x0),this[_0x2245df(0x16f)]();}[_0x3c97a3(0x19b)](_0x394b45){const _0xb27787=_0x3c97a3;for(const _0x343ba0 of this[_0xb27787(0x163)][_0xb27787(0x167)]){const _0x29b064=_0x343ba0[_0xb27787(0x162)](_0x394b45);if(_0x29b064){if(_0x343ba0[_0xb27787(0x148)](_0x29b064),0x0===_0x343ba0[_0xb27787(0x143)][_0xb27787(0x16a)]){const _0x39d2e1=this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x175)](_0x343ba0);-0x1!==_0x39d2e1&&(this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x18d)](_0x39d2e1,0x1),this[_0xb27787(0x163)][_0xb27787(0x14e)][_0xb27787(0x16d)](_0x343ba0));}this[_0xb27787(0x194)]=this[_0xb27787(0x163)][_0xb27787(0x167)][_0xb27787(0x16a)]>0x0,this[_0xb27787(0x16f)]();break;}}}[_0x3c97a3(0x15c)](_0x20e919,_0x5bbdba){const _0x4a0450=_0x3c97a3;for(const _0x5401bd of this[_0x4a0450(0x163)][_0x4a0450(0x167)]){const _0xf234fb=_0x5401bd[_0x4a0450(0x162)](_0x20e919);if(_0xf234fb){_0xf234fb[_0x4a0450(0x170)](_0x5bbdba);break;}}}[_0x3c97a3(0x19d)](_0x52b455,_0x2fe85d,_0x5d6d3c){const _0x2a87a9=_0x3c97a3;for(const _0x5ce735 of this[_0x2a87a9(0x163)][_0x2a87a9(0x167)]){const _0x2edbcf=_0x5ce735[_0x2a87a9(0x162)](_0x52b455);if(_0x2edbcf){_0x2edbcf[_0x2a87a9(0x193)](_0x2fe85d,_0x5d6d3c);break;}}}[_0x3c97a3(0x16f)](){const _0x636098=_0x3c97a3;if(this[_0x636098(0x194)]){const _0x4c0a2d=this[_0x636098(0x17d)][_0x636098(0x197)][_0x636098(0x187)]?.[_0x636098(0x153)]?.[_0x636098(0x18e)]||'';this[_0x636098(0x17d)][_0x636098(0x17f)](_0x4c0a2d);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51e0ed=_0x515e;(function(_0x57ec7f,_0x3b6149){const _0x4068be=_0x515e,_0x41eda3=_0x57ec7f();while(!![]){try{const _0x3ca5cb=-parseInt(_0x4068be(0x1ee))/0x1+parseInt(_0x4068be(0x258))/0x2*(parseInt(_0x4068be(0x213))/0x3)+parseInt(_0x4068be(0x222))/0x4+-parseInt(_0x4068be(0x26f))/0x5+parseInt(_0x4068be(0x23e))/0x6*(-parseInt(_0x4068be(0x1f5))/0x7)+-parseInt(_0x4068be(0x262))/0x8+parseInt(_0x4068be(0x240))/0x9;if(_0x3ca5cb===_0x3b6149)break;else _0x41eda3['push'](_0x41eda3['shift']());}catch(_0x2d2a01){_0x41eda3['push'](_0x41eda3['shift']());}}}(_0x4bb9,0xd154b));import{createParser as _0x9dc336}from'eventsource-parser';function _0x4bb9(){const _0x2862ea=['/reviews/custom/calls/','make-shorter','then','continue','/ratings','file','config','abortController','group','getModels','queryAssistant','requires','push','PATCH','_decoder','MAKE_SHORTER','getReader','/messages/','plugins','_token','AbortError','token','FIX_GRAMMAR','make-tone-casual','AIConnector','upsertAIChatRating','/documents/','statusText','3kpwEXo','ai-request-failed','deleteDocument','define','DELETE','status','/reviews/system/','callCustomReview','feed','callSystemReview','deleteWebResource','ai.serviceUrl','attributes','Bearer\x20','/messages','5454736PqpEcq','Content-Type','executeAction','uploadUrl','init','text','decode','deleteConversation','CloudServices','true','ai-missing-token','/conversations/','fetchDocument','/files/','TRANSLATE','search','append','startConversation','ai-request-aborted','100','_sendApiRequest','upsertAIActionRating','translate','request','stringify','fetchConversationMessages','toString','/conversations?','6eAXxci','uploadFile','32157549UmShLx','/calls/','_apiUrl','body','data','upsertAIReviewRating','/reviews/custom/calls','fetchConversation','/models/1','isPremiumPlugin','fetchConversations','totalCount','executeCustomAction','isOfficialPlugin','upsertCustomAIReviewRating','CONTINUE','improve-writing','limit','IMPROVE_WRITING','/calls','reset','/actions/custom/calls/','name','releaseLock','807816TaLMYL','application/json','modificationId','value','fix-grammar','updateConversation','signal','catch','length','context','11894600oaHEzT','/conversations','MAKE_TONE_CASUAL','PUT','positiveCount','/documents','_handleError','excludeEmpty','GET','make-tone-formal','_getStreamReader','items','https://ai.cke-cs.com/v1','6698140ksOHBL','json','MAKE_LONGER','get','upsertCustomAIActionRating','keys','/web-resources','POST','uploadDocument','/actions/custom/calls','/files','parse','281565DDpaeS','/web-resources/','MAKE_TONE_FORMAL','read','deleteFile','make-longer','/actions/system/','9626512UMNHKm','pluginName'];_0x4bb9=function(){return _0x2862ea;};return _0x4bb9();}import{ContextPlugin as _0x35edf8}from'ckeditor5/src/core.js';import{CKEditorError as _0x349de8}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x515e(_0x1d9d4b,_0x2e1d22){const _0x4bb981=_0x4bb9();return _0x515e=function(_0x515ebc,_0x4f0358){_0x515ebc=_0x515ebc-0x1e7;let _0x1deab5=_0x4bb981[_0x515ebc];return _0x1deab5;},_0x515e(_0x1d9d4b,_0x2e1d22);}!function(_0x5036d3){const _0x1329cd=_0x515e;_0x5036d3[_0x1329cd(0x24f)]=_0x1329cd(0x1fa),_0x5036d3[_0x1329cd(0x20d)]=_0x1329cd(0x25c),_0x5036d3[_0x1329cd(0x252)]=_0x1329cd(0x250),_0x5036d3[_0x1329cd(0x271)]=_0x1329cd(0x1f3),_0x5036d3[_0x1329cd(0x206)]=_0x1329cd(0x1f8),_0x5036d3[_0x1329cd(0x264)]=_0x1329cd(0x20e),_0x5036d3[_0x1329cd(0x1f0)]=_0x1329cd(0x26b),_0x5036d3[_0x1329cd(0x230)]=_0x1329cd(0x238);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x35edf8{[_0x51e0ed(0x242)];[_0x51e0ed(0x20a)];[_0x51e0ed(0x205)];static get[_0x51e0ed(0x202)](){const _0x2cde27=_0x51e0ed;return[_0x2cde27(0x22a)];}static get[_0x51e0ed(0x1f6)](){const _0x149396=_0x51e0ed;return _0x149396(0x20f);}static get[_0x51e0ed(0x24d)](){return!0x0;}static get[_0x51e0ed(0x249)](){return!0x0;}constructor(_0x283da2){const _0x15c0d3=_0x51e0ed;super(_0x283da2),this[_0x15c0d3(0x261)][_0x15c0d3(0x1fd)][_0x15c0d3(0x216)](_0x15c0d3(0x21e),_0x15c0d3(0x26e)),this[_0x15c0d3(0x242)]=this[_0x15c0d3(0x261)][_0x15c0d3(0x1fd)][_0x15c0d3(0x272)](_0x15c0d3(0x21e)),this[_0x15c0d3(0x20a)]=null,this[_0x15c0d3(0x205)]=new TextDecoder();}[_0x51e0ed(0x226)](){const _0xc32aa0=_0x51e0ed,_0x4950a5=this[_0xc32aa0(0x261)][_0xc32aa0(0x209)][_0xc32aa0(0x272)](_0xc32aa0(0x22a));if(!_0x4950a5[_0xc32aa0(0x20c)])throw new _0x349de8(_0xc32aa0(0x22c),this);this[_0xc32aa0(0x20a)]=_0x4950a5[_0xc32aa0(0x20c)];}[_0x51e0ed(0x233)](_0x4df5a5,_0x4cef01){const _0x2c8c6f=_0x51e0ed,_0x320a0e=this[_0x2c8c6f(0x236)](_0x2c8c6f(0x263),_0x2c8c6f(0x1e9),{'id':_0x4df5a5,'group':_0x4cef01});return{'getConversation':async()=>(await _0x320a0e[_0x2c8c6f(0x239)])[_0x2c8c6f(0x270)](),'abortController':_0x320a0e[_0x2c8c6f(0x1fe)]};}[_0x51e0ed(0x201)]({message:_0x28765d,conversationId:_0x17fa4b,parts:_0x574f00,capabilities:_0x3ea7b2,model:_0x56de3d,quickActionData:_0x5aa6f2}){const _0x4a455e=_0x51e0ed,_0xc96158={..._0x5aa6f2&&{'quickActionData':_0x5aa6f2}},_0x1c566a={'prompt':_0x28765d,'content':_0x574f00,'model':_0x56de3d,..._0x3ea7b2&&{'capabilities':_0x3ea7b2},...Object[_0x4a455e(0x1e7)](_0xc96158)[_0x4a455e(0x260)]>0x0&&{'attributes':_0xc96158}},_0x55dc51=this[_0x4a455e(0x236)](_0x4a455e(0x22d)+_0x17fa4b+_0x4a455e(0x221),_0x4a455e(0x1e9),_0x1c566a);return{'getStream':async()=>{const _0x9b9642=_0x4a455e,_0x46948d=(await _0x55dc51[_0x9b9642(0x239)])[_0x9b9642(0x243)];return this[_0x9b9642(0x26c)](_0x46948d);},'abortController':_0x55dc51[_0x4a455e(0x1fe)]};}[_0x51e0ed(0x24c)]({content:_0xf823dd,message:_0x32cbba,model:_0x5b5a67,outputFormat:_0x297820}){const _0x53b71f=_0x51e0ed,_0x738cf4={'content':[{'type':_0x53b71f(0x227),'content':_0xf823dd}],'prompt':_0x32cbba,'model':_0x5b5a67,'outputFormat':_0x297820},_0x5ee86a=this[_0x53b71f(0x236)](_0x53b71f(0x1eb),_0x53b71f(0x1e9),_0x738cf4);return{'getStream':async()=>{const _0x58d60b=_0x53b71f,_0x289079=(await _0x5ee86a[_0x58d60b(0x239)])[_0x58d60b(0x243)];return this[_0x58d60b(0x26c)](_0x289079);},'abortController':_0x5ee86a[_0x53b71f(0x1fe)]};}[_0x51e0ed(0x224)]({actionName:_0x23d3dc,content:_0x534419,args:_0x532797}){const _0x45ebb3=_0x51e0ed,_0x5a55e2={'content':[{'type':_0x45ebb3(0x227),'content':_0x534419}],'args':_0x532797},_0x245bb2=this[_0x45ebb3(0x236)](_0x45ebb3(0x1f4)+_0x23d3dc+_0x45ebb3(0x253),_0x45ebb3(0x1e9),_0x5a55e2);return{'getStream':async()=>{const _0x536552=_0x45ebb3,_0x58a4d1=(await _0x245bb2[_0x536552(0x239)])[_0x536552(0x243)];return this[_0x536552(0x26c)](_0x58a4d1);},'abortController':_0x245bb2[_0x45ebb3(0x1fe)]};}[_0x51e0ed(0x23f)](_0x347a18,_0x953a3d,_0x3a8aaf){const _0x254bd0=_0x51e0ed,_0x586766=new FormData();_0x586766[_0x254bd0(0x232)](_0x254bd0(0x1fc),_0x953a3d,_0x953a3d[_0x254bd0(0x256)]),_0x3a8aaf&&_0x586766[_0x254bd0(0x232)](_0x254bd0(0x21f),JSON[_0x254bd0(0x23a)](_0x3a8aaf));const _0x508e3f=this[_0x254bd0(0x236)](_0x254bd0(0x22d)+_0x347a18+_0x254bd0(0x1ec),_0x254bd0(0x1e9),_0x586766);return{'getId':async()=>(await _0x508e3f[_0x254bd0(0x239)])[_0x254bd0(0x270)](),'abortController':_0x508e3f[_0x254bd0(0x1fe)]};}[_0x51e0ed(0x22e)](_0x23f324,_0x2f481d){const _0x1abf49=_0x51e0ed,_0x112052=this[_0x1abf49(0x236)](_0x1abf49(0x22d)+_0x23f324+_0x1abf49(0x211)+_0x2f481d,_0x1abf49(0x26a));return{'getDocument':async()=>(await _0x112052[_0x1abf49(0x239)])[_0x1abf49(0x270)](),'abortController':_0x112052[_0x1abf49(0x1fe)]};}[_0x51e0ed(0x1ea)](_0x4390b7,_0x4bc2b0,_0x83ac02){const _0x28ab75=_0x51e0ed,_0x46e4d6={'content':_0x4bc2b0};_0x83ac02&&(_0x46e4d6[_0x28ab75(0x21f)]=_0x83ac02);const _0x39a11f=this[_0x28ab75(0x236)](_0x28ab75(0x22d)+_0x4390b7+_0x28ab75(0x267),_0x28ab75(0x1e9),_0x46e4d6);return{'getId':async()=>(await _0x39a11f[_0x28ab75(0x239)])[_0x28ab75(0x270)](),'abortController':_0x39a11f[_0x28ab75(0x1fe)]};}[_0x51e0ed(0x24a)](_0x56a0d3,_0x1edc93){const _0x5ee1f8=_0x51e0ed,_0x1b7b83=new URLSearchParams();_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x269),_0x5ee1f8(0x22b)),_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x251),_0x5ee1f8(0x235)),_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x1ff),_0x56a0d3),_0x1edc93&&_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x231),_0x1edc93);const _0x1e6d74=this[_0x5ee1f8(0x236)](_0x5ee1f8(0x23d)+_0x1b7b83[_0x5ee1f8(0x23c)](),_0x5ee1f8(0x26a));return{'getConversations':async()=>{const _0x20e742=_0x5ee1f8,_0x4ba38e=await _0x1e6d74[_0x20e742(0x239)];return(await _0x4ba38e[_0x20e742(0x270)]())[_0x20e742(0x26d)];},'abortController':_0x1e6d74[_0x5ee1f8(0x1fe)]};}[_0x51e0ed(0x229)](_0x5cb549){const _0x1f6410=_0x51e0ed,_0x4eab71=this[_0x1f6410(0x236)](_0x1f6410(0x22d)+_0x5cb549,_0x1f6410(0x217));return{'execute':async()=>{const _0x4f9a0e=_0x1f6410;await _0x4eab71[_0x4f9a0e(0x239)];},'abortController':_0x4eab71[_0x1f6410(0x1fe)]};}[_0x51e0ed(0x25d)](_0xa9422a,_0x10110b){const _0x4613d1=_0x51e0ed,_0x26e3f2=this[_0x4613d1(0x236)](_0x4613d1(0x22d)+_0xa9422a,_0x4613d1(0x204),_0x10110b);return{'getResult':async()=>(await _0x26e3f2[_0x4613d1(0x239)],_0x10110b),'abortController':_0x26e3f2[_0x4613d1(0x1fe)]};}[_0x51e0ed(0x247)](_0x4c6746){const _0x2a6d18=_0x51e0ed,_0x34e455=this[_0x2a6d18(0x236)](_0x2a6d18(0x22d)+_0x4c6746,_0x2a6d18(0x26a));return{'getConversation':async()=>(await _0x34e455[_0x2a6d18(0x239)])[_0x2a6d18(0x270)](),'abortController':_0x34e455[_0x2a6d18(0x1fe)]};}[_0x51e0ed(0x23b)](_0x370d86){const _0x4cfc21=_0x51e0ed,_0x1466d9=this[_0x4cfc21(0x236)](_0x4cfc21(0x22d)+_0x370d86+_0x4cfc21(0x221),_0x4cfc21(0x26a));return{'getMessages':async()=>{const _0x41757b=_0x4cfc21,_0x51d33f=await _0x1466d9[_0x41757b(0x239)];return(await _0x51d33f[_0x41757b(0x270)]())[_0x41757b(0x26d)];},'abortController':_0x1466d9[_0x4cfc21(0x1fe)]};}[_0x51e0ed(0x225)](_0x17c219,_0x4d1516,_0x3c0b07){const _0x282b81=_0x51e0ed,_0x5169f0=this[_0x282b81(0x236)](_0x282b81(0x22d)+_0x17c219+_0x282b81(0x1e8),_0x282b81(0x1e9),{'url':_0x4d1516,'attributes':_0x3c0b07});return{'getId':async()=>(await _0x5169f0[_0x282b81(0x239)])[_0x282b81(0x270)](),'abortController':_0x5169f0[_0x282b81(0x1fe)]};}[_0x51e0ed(0x200)](){const _0x40cdd7=_0x51e0ed,_0x18c687=this[_0x40cdd7(0x236)](_0x40cdd7(0x248),_0x40cdd7(0x26a));return{'list':async()=>await(await _0x18c687[_0x40cdd7(0x239)])[_0x40cdd7(0x270)](),'abortController':_0x18c687[_0x40cdd7(0x1fe)]};}[_0x51e0ed(0x1f2)](_0x1f05cd,_0x887713){const _0x11de09=_0x51e0ed,_0x28b682=this[_0x11de09(0x236)](_0x11de09(0x22d)+_0x1f05cd+_0x11de09(0x22f)+_0x887713,_0x11de09(0x217));return{'execute':async()=>{const _0x547f64=_0x11de09;await _0x28b682[_0x547f64(0x239)];},'abortController':_0x28b682[_0x11de09(0x1fe)]};}[_0x51e0ed(0x215)](_0x320d1e,_0x4ab39c){const _0x1c08fb=_0x51e0ed,_0x161cd8=this[_0x1c08fb(0x236)](_0x1c08fb(0x22d)+_0x320d1e+_0x1c08fb(0x211)+_0x4ab39c,_0x1c08fb(0x217));return{'execute':async()=>{const _0x540ec5=_0x1c08fb;await _0x161cd8[_0x540ec5(0x239)];},'abortController':_0x161cd8[_0x1c08fb(0x1fe)]};}[_0x51e0ed(0x21d)](_0xbc6c5f,_0x2d8aed){const _0x3c6e14=_0x51e0ed,_0x33caa2=this[_0x3c6e14(0x236)](_0x3c6e14(0x22d)+_0xbc6c5f+_0x3c6e14(0x1ef)+_0x2d8aed,_0x3c6e14(0x217));return{'execute':async()=>{const _0x38ac38=_0x3c6e14;await _0x33caa2[_0x38ac38(0x239)];},'abortController':_0x33caa2[_0x3c6e14(0x1fe)]};}[_0x51e0ed(0x21c)]({reviewName:_0x32217d,content:_0x8d47bc,args:_0x394d1a}){const _0x4e2804=_0x51e0ed,_0x569b23=this[_0x4e2804(0x236)](_0x4e2804(0x219)+_0x32217d+_0x4e2804(0x253),_0x4e2804(0x1e9),{'content':[{'type':_0x4e2804(0x227),'content':_0x8d47bc}],'args':_0x394d1a});return{'getStream':async()=>{const _0x1ca8b5=_0x4e2804,_0x4a3c7d=(await _0x569b23[_0x1ca8b5(0x239)])[_0x1ca8b5(0x243)];return this[_0x1ca8b5(0x26c)](_0x4a3c7d);},'abortController':_0x569b23[_0x4e2804(0x1fe)]};}[_0x51e0ed(0x21a)]({content:_0x42b1cc,prompt:_0x2508e8,model:_0x568117}){const _0x6a9f70=_0x51e0ed,_0x5969ff=this[_0x6a9f70(0x236)](_0x6a9f70(0x246),_0x6a9f70(0x1e9),{'content':[{'type':_0x6a9f70(0x227),'content':_0x42b1cc}],'prompt':_0x2508e8,'model':_0x568117});return{'getStream':async()=>{const _0x1d00f4=_0x6a9f70,_0x4dc0ad=(await _0x5969ff[_0x1d00f4(0x239)])[_0x1d00f4(0x243)];return this[_0x1d00f4(0x26c)](_0x4dc0ad);},'abortController':_0x5969ff[_0x6a9f70(0x1fe)]};}[_0x51e0ed(0x210)](_0x5d41ac,_0x5a07df,_0x3acd3f){const _0x43fbc4=_0x51e0ed,_0x5ac81e=this[_0x43fbc4(0x236)](_0x43fbc4(0x22d)+_0x5d41ac+_0x43fbc4(0x208)+_0x5a07df+_0x43fbc4(0x1fb),_0x43fbc4(0x265),{'positiveCount':_0x3acd3f[_0x43fbc4(0x266)],'totalCount':_0x3acd3f[_0x43fbc4(0x24b)],'modificationId':_0x3acd3f[_0x43fbc4(0x25a)]});return{'execute':async()=>{const _0x9f99e6=_0x43fbc4;await _0x5ac81e[_0x9f99e6(0x239)];},'abortController':_0x5ac81e[_0x43fbc4(0x1fe)]};}[_0x51e0ed(0x237)](_0x527feb,_0x216b6a,_0xa09b07){const _0x4fff89=_0x51e0ed,_0x231ba5=this[_0x4fff89(0x236)](_0x4fff89(0x1f4)+_0x527feb+_0x4fff89(0x241)+_0x216b6a+_0x4fff89(0x1fb),_0x4fff89(0x265),{'positiveCount':_0xa09b07[_0x4fff89(0x266)],'totalCount':_0xa09b07[_0x4fff89(0x24b)]});return{'execute':async()=>{const _0x3a4e2e=_0x4fff89;await _0x231ba5[_0x3a4e2e(0x239)];},'abortController':_0x231ba5[_0x4fff89(0x1fe)]};}[_0x51e0ed(0x273)](_0x41e6c2,_0x3dd41e){const _0x4f6fcb=_0x51e0ed,_0x53aa23=this[_0x4f6fcb(0x236)](_0x4f6fcb(0x255)+_0x41e6c2+_0x4f6fcb(0x1fb),_0x4f6fcb(0x265),{'positiveCount':_0x3dd41e[_0x4f6fcb(0x266)],'totalCount':_0x3dd41e[_0x4f6fcb(0x24b)]});return{'execute':async()=>{const _0x2be315=_0x4f6fcb;await _0x53aa23[_0x2be315(0x239)];},'abortController':_0x53aa23[_0x4f6fcb(0x1fe)]};}[_0x51e0ed(0x245)](_0x1cc9ab,_0x258019,_0x1b6a2a,_0x1420a9){const _0x40dbfd=_0x51e0ed,_0x1eae76=this[_0x40dbfd(0x236)](_0x40dbfd(0x219)+_0x1cc9ab+_0x40dbfd(0x241)+_0x258019+_0x40dbfd(0x1fb),_0x40dbfd(0x265),{'positiveCount':_0x1b6a2a[_0x40dbfd(0x266)],'totalCount':_0x1b6a2a[_0x40dbfd(0x24b)],'dataId':_0x1420a9});return{'execute':async()=>{const _0x2b40d3=_0x40dbfd;await _0x1eae76[_0x2b40d3(0x239)];},'abortController':_0x1eae76[_0x40dbfd(0x1fe)]};}[_0x51e0ed(0x24e)](_0x4719ce,_0x455d13,_0x36ffb7){const _0x62d6dc=_0x51e0ed,_0x26dd1e=this[_0x62d6dc(0x236)](_0x62d6dc(0x1f7)+_0x4719ce+_0x62d6dc(0x1fb),_0x62d6dc(0x265),{'positiveCount':_0x455d13[_0x62d6dc(0x266)],'totalCount':_0x455d13[_0x62d6dc(0x24b)],'dataId':_0x36ffb7});return{'execute':async()=>{const _0x2e5271=_0x62d6dc;await _0x26dd1e[_0x2e5271(0x239)];},'abortController':_0x26dd1e[_0x62d6dc(0x1fe)]};}[_0x51e0ed(0x236)](_0x69655b,_0x63d4ed,_0x2bb954){const _0x578c60=_0x51e0ed,_0x11c32b=new AbortController(),_0x43d04a=_0x2bb954 instanceof FormData,_0x53ba43={'Authorization':_0x578c60(0x220)+this[_0x578c60(0x20a)]?.[_0x578c60(0x25b)]};_0x2bb954&&!_0x43d04a&&(_0x53ba43[_0x578c60(0x223)]=_0x578c60(0x259));const _0x3c3f08={'method':_0x63d4ed,'headers':_0x53ba43,'signal':_0x11c32b[_0x578c60(0x25e)]};return _0x2bb954&&(_0x3c3f08[_0x578c60(0x243)]=_0x43d04a?_0x2bb954:JSON[_0x578c60(0x23a)](_0x2bb954)),{'request':fetch(''+this[_0x578c60(0x242)]+_0x69655b,_0x3c3f08)[_0x578c60(0x25f)](_0x1b7de7=>{const _0x49cbc6=_0x578c60;this[_0x49cbc6(0x268)](_0x1b7de7);})[_0x578c60(0x1f9)](_0x3fcb74=>{const _0x41d6c9=_0x578c60;if(!_0x3fcb74['ok'])throw new _0x349de8(_0x41d6c9(0x214),this,{'url':this[_0x41d6c9(0x242)],'path':_0x69655b,'method':_0x63d4ed,'body':_0x2bb954,'status':(_0x3fcb74||{})[_0x41d6c9(0x218)],'statusText':(_0x3fcb74||{})[_0x41d6c9(0x212)]});return _0x3fcb74;}),'abortController':_0x11c32b};}async*[_0x51e0ed(0x26c)](_0x139431){const _0x8d6cd3=_0x51e0ed,_0x478c31=[],_0x4acdb6=_0x139431[_0x8d6cd3(0x207)](),_0x28a2c2=_0x9dc336({'onError':_0x54c766=>{const _0x4c0afd=_0x8d6cd3;this[_0x4c0afd(0x268)](_0x54c766);},'onEvent':_0xe51559=>{const _0x391f53=_0x8d6cd3;_0xe51559[_0x391f53(0x244)]=JSON[_0x391f53(0x1ed)](_0xe51559[_0x391f53(0x244)]),_0x478c31[_0x391f53(0x203)](_0xe51559);}});try{let _0x52c218=!0x1;for(;!_0x52c218;){const {done:_0x34d458,value:_0x36ead9}=await _0x4acdb6[_0x8d6cd3(0x1f1)]();_0x34d458&&(_0x52c218=!0x0),_0x28a2c2[_0x8d6cd3(0x21b)](this[_0x8d6cd3(0x205)][_0x8d6cd3(0x228)](_0x36ead9,{'stream':!0x0})),yield*_0x478c31,_0x478c31[_0x8d6cd3(0x260)]=0x0;}}catch(_0x2da931){this[_0x8d6cd3(0x268)](_0x2da931);}finally{_0x4acdb6[_0x8d6cd3(0x257)](),_0x28a2c2[_0x8d6cd3(0x254)]();}}[_0x51e0ed(0x268)](_0xbea7e){const _0x3bf90e=_0x51e0ed;if(_0xbea7e instanceof _0x349de8)throw _0xbea7e;if(_0xbea7e instanceof Error&&_0x3bf90e(0x20b)===_0xbea7e[_0x3bf90e(0x256)])throw new _0x349de8(_0x3bf90e(0x234),this,{'originalError':_0xbea7e});throw new _0x349de8(_0x3bf90e(0x214),this,{'originalError':_0xbea7e});}}
|
|
23
|
+
function _0x3e03(){const _0x42bfbf=['make-longer','true','attributes','callCustomReview','improve-writing','upsertCustomAIActionRating','json','CONTINUE','uploadUrl','10732238PVDinz','MAKE_SHORTER','/web-resources','_handleError','/reviews/system/','ai-request-failed','/ratings','deleteWebResource','translate','application/json','file','reset','pluginName','fetchDocument','fetchConversationMessages','deleteConversation','define','MAKE_TONE_CASUAL','decode','executeAction','continue','deleteFile','1079869HOiInY','statusText','push','126964etddVH','_token','upsertAIChatRating','group','/calls/','status','search','get','stringify','897624OfhwfC','PUT','/files/','fix-grammar','upsertAIReviewRating','FIX_GRAMMAR','_apiUrl','/conversations/','ai.serviceUrl','_sendApiRequest','IMPROVE_WRITING','releaseLock','20vXlWdU','data','fetchConversations','requires','/messages/','2RjHSmC','/calls','parse','totalCount','Bearer\x20','8zjeoaa','callSystemReview','/documents/','/web-resources/','name','executeCustomAction','MAKE_LONGER','catch','body','/documents','toString','read','TRANSLATE','https://ai.cke-cs.com/v1','POST','100','abortController','/messages','init','then','_decoder','ai-missing-token','/reviews/custom/calls','config','request','/actions/custom/calls/','text','CloudServices','updateConversation','ai-request-aborted','/conversations?','make-tone-casual','items','95334CgteLs','token','_getStreamReader','plugins','GET','deleteDocument','append','excludeEmpty','/models/1','/actions/custom/calls','Content-Type','1059KhYATj','feed','AbortError','/actions/system/','queryAssistant','uploadFile','modificationId','1516lzYYjR','make-tone-formal','upsertCustomAIReviewRating','value','limit','isOfficialPlugin','MAKE_TONE_FORMAL','upsertAIActionRating','/files','isPremiumPlugin','getReader','AIConnector','/conversations','2392570MeKeuM','fetchConversation','uploadDocument','PATCH','make-shorter','context','keys','getModels','length','startConversation','/reviews/custom/calls/','signal','positiveCount','DELETE'];_0x3e03=function(){return _0x42bfbf;};return _0x3e03();}const _0x1a3699=_0x4d7c;function _0x4d7c(_0x443cc1,_0x392415){const _0x3e0322=_0x3e03();return _0x4d7c=function(_0x4d7c71,_0x4f5f2b){_0x4d7c71=_0x4d7c71-0x1d7;let _0x1912db=_0x3e0322[_0x4d7c71];return _0x1912db;},_0x4d7c(_0x443cc1,_0x392415);}(function(_0x373d56,_0x5e834f){const _0x53d794=_0x4d7c,_0xfa20ef=_0x373d56();while(!![]){try{const _0x56d32e=-parseInt(_0x53d794(0x1d7))/0x1*(parseInt(_0x53d794(0x1f1))/0x2)+parseInt(_0x53d794(0x222))/0x3*(-parseInt(_0x53d794(0x229))/0x4)+-parseInt(_0x53d794(0x1ec))/0x5*(parseInt(_0x53d794(0x217))/0x6)+parseInt(_0x53d794(0x263))/0x7*(-parseInt(_0x53d794(0x1f6))/0x8)+-parseInt(_0x53d794(0x1e0))/0x9+-parseInt(_0x53d794(0x236))/0xa+parseInt(_0x53d794(0x24d))/0xb;if(_0x56d32e===_0x5e834f)break;else _0xfa20ef['push'](_0xfa20ef['shift']());}catch(_0x38bee7){_0xfa20ef['push'](_0xfa20ef['shift']());}}}(_0x3e03,0x2698b));import{createParser as _0x4667e8}from'eventsource-parser';import{ContextPlugin as _0x21198d}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e7388}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x390990){const _0x59998a=_0x4d7c;_0x390990[_0x59998a(0x24b)]=_0x59998a(0x261),_0x390990[_0x59998a(0x1e5)]=_0x59998a(0x1e3),_0x390990[_0x59998a(0x1ea)]=_0x59998a(0x248),_0x390990[_0x59998a(0x1fc)]=_0x59998a(0x244),_0x390990[_0x59998a(0x24e)]=_0x59998a(0x23a),_0x390990[_0x59998a(0x25e)]=_0x59998a(0x215),_0x390990[_0x59998a(0x22f)]=_0x59998a(0x22a),_0x390990[_0x59998a(0x202)]=_0x59998a(0x255);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x21198d{[_0x1a3699(0x1e6)];[_0x1a3699(0x1d8)];[_0x1a3699(0x20a)];static get[_0x1a3699(0x1ef)](){const _0x137f02=_0x1a3699;return[_0x137f02(0x211)];}static get[_0x1a3699(0x259)](){const _0x515e1e=_0x1a3699;return _0x515e1e(0x234);}static get[_0x1a3699(0x22e)](){return!0x0;}static get[_0x1a3699(0x232)](){return!0x0;}constructor(_0x170990){const _0x355a4e=_0x1a3699;super(_0x170990),this[_0x355a4e(0x23b)][_0x355a4e(0x20d)][_0x355a4e(0x25d)](_0x355a4e(0x1e8),_0x355a4e(0x203)),this[_0x355a4e(0x1e6)]=this[_0x355a4e(0x23b)][_0x355a4e(0x20d)][_0x355a4e(0x1de)](_0x355a4e(0x1e8)),this[_0x355a4e(0x1d8)]=null,this[_0x355a4e(0x20a)]=new TextDecoder();}[_0x1a3699(0x208)](){const _0x412280=_0x1a3699,_0x6a76e6=this[_0x412280(0x23b)][_0x412280(0x21a)][_0x412280(0x1de)](_0x412280(0x211));if(!_0x6a76e6[_0x412280(0x218)])throw new _0x4e7388(_0x412280(0x20b),this);this[_0x412280(0x1d8)]=_0x6a76e6[_0x412280(0x218)];}[_0x1a3699(0x23f)](_0x137258,_0x481077){const _0x458e9b=_0x1a3699,_0x1bdc3f=this[_0x458e9b(0x1e9)](_0x458e9b(0x235),_0x458e9b(0x204),{'id':_0x137258,'group':_0x481077});return{'getConversation':async()=>(await _0x1bdc3f[_0x458e9b(0x20e)])[_0x458e9b(0x24a)](),'abortController':_0x1bdc3f[_0x458e9b(0x206)]};}[_0x1a3699(0x226)]({message:_0x63500a,conversationId:_0x2b3ca7,parts:_0x1082bc,capabilities:_0x3d6e33,model:_0x46990d,quickActionData:_0x20800c}){const _0x5c53c3=_0x1a3699,_0x2e4dfb={..._0x20800c&&{'quickActionData':_0x20800c}},_0x1ae1f6={'prompt':_0x63500a,'content':_0x1082bc,'model':_0x46990d,..._0x3d6e33&&{'capabilities':_0x3d6e33},...Object[_0x5c53c3(0x23c)](_0x2e4dfb)[_0x5c53c3(0x23e)]>0x0&&{'attributes':_0x2e4dfb}},_0xd5b349=this[_0x5c53c3(0x1e9)](_0x5c53c3(0x1e7)+_0x2b3ca7+_0x5c53c3(0x207),_0x5c53c3(0x204),_0x1ae1f6);return{'getStream':async()=>{const _0x15b54b=_0x5c53c3,_0x555d1e=(await _0xd5b349[_0x15b54b(0x20e)])[_0x15b54b(0x1fe)];return this[_0x15b54b(0x219)](_0x555d1e);},'abortController':_0xd5b349[_0x5c53c3(0x206)]};}[_0x1a3699(0x1fb)]({content:_0x58c21,message:_0x30072c,model:_0x27dd0b,outputFormat:_0x590c67}){const _0xe08504=_0x1a3699,_0xdef959={'content':[{'type':_0xe08504(0x210),'content':_0x58c21}],'prompt':_0x30072c,'model':_0x27dd0b,'outputFormat':_0x590c67},_0x191136=this[_0xe08504(0x1e9)](_0xe08504(0x220),_0xe08504(0x204),_0xdef959);return{'getStream':async()=>{const _0xc1673e=_0xe08504,_0x94091e=(await _0x191136[_0xc1673e(0x20e)])[_0xc1673e(0x1fe)];return this[_0xc1673e(0x219)](_0x94091e);},'abortController':_0x191136[_0xe08504(0x206)]};}[_0x1a3699(0x260)]({actionName:_0x3c5940,content:_0x10ecb7,args:_0x573998}){const _0x284049=_0x1a3699,_0x3b8413={'content':[{'type':_0x284049(0x210),'content':_0x10ecb7}],'args':_0x573998},_0x26244c=this[_0x284049(0x1e9)](_0x284049(0x225)+_0x3c5940+_0x284049(0x1f2),_0x284049(0x204),_0x3b8413);return{'getStream':async()=>{const _0x5aaa77=_0x284049,_0x334ac9=(await _0x26244c[_0x5aaa77(0x20e)])[_0x5aaa77(0x1fe)];return this[_0x5aaa77(0x219)](_0x334ac9);},'abortController':_0x26244c[_0x284049(0x206)]};}[_0x1a3699(0x227)](_0x23047c,_0x4a6cb1,_0x296ca2){const _0x27d4f0=_0x1a3699,_0x33fb9b=new FormData();_0x33fb9b[_0x27d4f0(0x21d)](_0x27d4f0(0x257),_0x4a6cb1,_0x4a6cb1[_0x27d4f0(0x1fa)]),_0x296ca2&&_0x33fb9b[_0x27d4f0(0x21d)](_0x27d4f0(0x246),JSON[_0x27d4f0(0x1df)](_0x296ca2));const _0x7bef8=this[_0x27d4f0(0x1e9)](_0x27d4f0(0x1e7)+_0x23047c+_0x27d4f0(0x231),_0x27d4f0(0x204),_0x33fb9b);return{'getId':async()=>(await _0x7bef8[_0x27d4f0(0x20e)])[_0x27d4f0(0x24a)](),'abortController':_0x7bef8[_0x27d4f0(0x206)]};}[_0x1a3699(0x25a)](_0x382aef,_0x1fc62e){const _0x1aa564=_0x1a3699,_0x734212=this[_0x1aa564(0x1e9)](_0x1aa564(0x1e7)+_0x382aef+_0x1aa564(0x1f8)+_0x1fc62e,_0x1aa564(0x21b));return{'getDocument':async()=>(await _0x734212[_0x1aa564(0x20e)])[_0x1aa564(0x24a)](),'abortController':_0x734212[_0x1aa564(0x206)]};}[_0x1a3699(0x238)](_0x4a5995,_0x4257be,_0x3a3645){const _0x44c99f=_0x1a3699,_0x609ba={'content':_0x4257be};_0x3a3645&&(_0x609ba[_0x44c99f(0x246)]=_0x3a3645);const _0x5aedb4=this[_0x44c99f(0x1e9)](_0x44c99f(0x1e7)+_0x4a5995+_0x44c99f(0x1ff),_0x44c99f(0x204),_0x609ba);return{'getId':async()=>(await _0x5aedb4[_0x44c99f(0x20e)])[_0x44c99f(0x24a)](),'abortController':_0x5aedb4[_0x44c99f(0x206)]};}[_0x1a3699(0x1ee)](_0x5d25cc,_0x14f8d0){const _0x11584b=_0x1a3699,_0x48ce3e=new URLSearchParams();_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x21e),_0x11584b(0x245)),_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x22d),_0x11584b(0x205)),_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x1da),_0x5d25cc),_0x14f8d0&&_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x1dd),_0x14f8d0);const _0x2ec911=this[_0x11584b(0x1e9)](_0x11584b(0x214)+_0x48ce3e[_0x11584b(0x200)](),_0x11584b(0x21b));return{'getConversations':async()=>{const _0x411cfe=_0x11584b,_0x10b574=await _0x2ec911[_0x411cfe(0x20e)];return(await _0x10b574[_0x411cfe(0x24a)]())[_0x411cfe(0x216)];},'abortController':_0x2ec911[_0x11584b(0x206)]};}[_0x1a3699(0x25c)](_0x53cd8b){const _0x2bf93a=_0x1a3699,_0xcfb4a4=this[_0x2bf93a(0x1e9)](_0x2bf93a(0x1e7)+_0x53cd8b,_0x2bf93a(0x243));return{'execute':async()=>{const _0x1e9217=_0x2bf93a;await _0xcfb4a4[_0x1e9217(0x20e)];},'abortController':_0xcfb4a4[_0x2bf93a(0x206)]};}[_0x1a3699(0x212)](_0x47c1ac,_0x54ac52){const _0x4f5f6e=_0x1a3699,_0x225386=this[_0x4f5f6e(0x1e9)](_0x4f5f6e(0x1e7)+_0x47c1ac,_0x4f5f6e(0x239),_0x54ac52);return{'getResult':async()=>(await _0x225386[_0x4f5f6e(0x20e)],_0x54ac52),'abortController':_0x225386[_0x4f5f6e(0x206)]};}[_0x1a3699(0x237)](_0xfbe31f){const _0x242841=_0x1a3699,_0x3a72c2=this[_0x242841(0x1e9)](_0x242841(0x1e7)+_0xfbe31f,_0x242841(0x21b));return{'getConversation':async()=>(await _0x3a72c2[_0x242841(0x20e)])[_0x242841(0x24a)](),'abortController':_0x3a72c2[_0x242841(0x206)]};}[_0x1a3699(0x25b)](_0x72b7cc){const _0x8055ae=_0x1a3699,_0x1b726c=this[_0x8055ae(0x1e9)](_0x8055ae(0x1e7)+_0x72b7cc+_0x8055ae(0x207),_0x8055ae(0x21b));return{'getMessages':async()=>{const _0x3eab8f=_0x8055ae,_0x546008=await _0x1b726c[_0x3eab8f(0x20e)];return(await _0x546008[_0x3eab8f(0x24a)]())[_0x3eab8f(0x216)];},'abortController':_0x1b726c[_0x8055ae(0x206)]};}[_0x1a3699(0x24c)](_0x253ec7,_0xb8e556,_0x274abf){const _0xe48567=_0x1a3699,_0x2aeae2=this[_0xe48567(0x1e9)](_0xe48567(0x1e7)+_0x253ec7+_0xe48567(0x24f),_0xe48567(0x204),{'url':_0xb8e556,'attributes':_0x274abf});return{'getId':async()=>(await _0x2aeae2[_0xe48567(0x20e)])[_0xe48567(0x24a)](),'abortController':_0x2aeae2[_0xe48567(0x206)]};}[_0x1a3699(0x23d)](){const _0x5ab174=_0x1a3699,_0x3e109a=this[_0x5ab174(0x1e9)](_0x5ab174(0x21f),_0x5ab174(0x21b));return{'list':async()=>await(await _0x3e109a[_0x5ab174(0x20e)])[_0x5ab174(0x24a)](),'abortController':_0x3e109a[_0x5ab174(0x206)]};}[_0x1a3699(0x262)](_0x2f7d4a,_0x1c269e){const _0x1c3607=_0x1a3699,_0x5d0254=this[_0x1c3607(0x1e9)](_0x1c3607(0x1e7)+_0x2f7d4a+_0x1c3607(0x1e2)+_0x1c269e,_0x1c3607(0x243));return{'execute':async()=>{const _0x3400a8=_0x1c3607;await _0x5d0254[_0x3400a8(0x20e)];},'abortController':_0x5d0254[_0x1c3607(0x206)]};}[_0x1a3699(0x21c)](_0x1c0760,_0x499827){const _0x151bef=_0x1a3699,_0x6e38af=this[_0x151bef(0x1e9)](_0x151bef(0x1e7)+_0x1c0760+_0x151bef(0x1f8)+_0x499827,_0x151bef(0x243));return{'execute':async()=>{const _0x48aac5=_0x151bef;await _0x6e38af[_0x48aac5(0x20e)];},'abortController':_0x6e38af[_0x151bef(0x206)]};}[_0x1a3699(0x254)](_0x44ca89,_0x573aea){const _0x3a154b=_0x1a3699,_0x3fdd80=this[_0x3a154b(0x1e9)](_0x3a154b(0x1e7)+_0x44ca89+_0x3a154b(0x1f9)+_0x573aea,_0x3a154b(0x243));return{'execute':async()=>{const _0xd470f4=_0x3a154b;await _0x3fdd80[_0xd470f4(0x20e)];},'abortController':_0x3fdd80[_0x3a154b(0x206)]};}[_0x1a3699(0x1f7)]({reviewName:_0x3d7eb2,content:_0x208ae5,args:_0x3771c4}){const _0x179664=_0x1a3699,_0x31ec84=this[_0x179664(0x1e9)](_0x179664(0x251)+_0x3d7eb2+_0x179664(0x1f2),_0x179664(0x204),{'content':[{'type':_0x179664(0x210),'content':_0x208ae5}],'args':_0x3771c4});return{'getStream':async()=>{const _0x19c72d=_0x179664,_0x2d9092=(await _0x31ec84[_0x19c72d(0x20e)])[_0x19c72d(0x1fe)];return this[_0x19c72d(0x219)](_0x2d9092);},'abortController':_0x31ec84[_0x179664(0x206)]};}[_0x1a3699(0x247)]({content:_0x36e0cd,prompt:_0x456f15,model:_0x43d248}){const _0x3c9db4=_0x1a3699,_0x55f879=this[_0x3c9db4(0x1e9)](_0x3c9db4(0x20c),_0x3c9db4(0x204),{'content':[{'type':_0x3c9db4(0x210),'content':_0x36e0cd}],'prompt':_0x456f15,'model':_0x43d248});return{'getStream':async()=>{const _0x44cd2c=_0x3c9db4,_0x4626ae=(await _0x55f879[_0x44cd2c(0x20e)])[_0x44cd2c(0x1fe)];return this[_0x44cd2c(0x219)](_0x4626ae);},'abortController':_0x55f879[_0x3c9db4(0x206)]};}[_0x1a3699(0x1d9)](_0x557fb1,_0x4b3139,_0x1eb06e){const _0x2d0eae=_0x1a3699,_0x172af7=this[_0x2d0eae(0x1e9)](_0x2d0eae(0x1e7)+_0x557fb1+_0x2d0eae(0x1f0)+_0x4b3139+_0x2d0eae(0x253),_0x2d0eae(0x1e1),{'positiveCount':_0x1eb06e[_0x2d0eae(0x242)],'totalCount':_0x1eb06e[_0x2d0eae(0x1f4)],'modificationId':_0x1eb06e[_0x2d0eae(0x228)]});return{'execute':async()=>{const _0x5f08eb=_0x2d0eae;await _0x172af7[_0x5f08eb(0x20e)];},'abortController':_0x172af7[_0x2d0eae(0x206)]};}[_0x1a3699(0x230)](_0x448853,_0x34d7d1,_0x21c3c0){const _0x3858f8=_0x1a3699,_0x16c297=this[_0x3858f8(0x1e9)](_0x3858f8(0x225)+_0x448853+_0x3858f8(0x1db)+_0x34d7d1+_0x3858f8(0x253),_0x3858f8(0x1e1),{'positiveCount':_0x21c3c0[_0x3858f8(0x242)],'totalCount':_0x21c3c0[_0x3858f8(0x1f4)]});return{'execute':async()=>{const _0x14b895=_0x3858f8;await _0x16c297[_0x14b895(0x20e)];},'abortController':_0x16c297[_0x3858f8(0x206)]};}[_0x1a3699(0x249)](_0x3aafe0,_0x460f0b){const _0x42755a=_0x1a3699,_0x2d160d=this[_0x42755a(0x1e9)](_0x42755a(0x20f)+_0x3aafe0+_0x42755a(0x253),_0x42755a(0x1e1),{'positiveCount':_0x460f0b[_0x42755a(0x242)],'totalCount':_0x460f0b[_0x42755a(0x1f4)]});return{'execute':async()=>{const _0x2dcfb3=_0x42755a;await _0x2d160d[_0x2dcfb3(0x20e)];},'abortController':_0x2d160d[_0x42755a(0x206)]};}[_0x1a3699(0x1e4)](_0x1215a3,_0x1c6069,_0x26292d,_0x296cbf){const _0x660b06=_0x1a3699,_0x12ebe9=this[_0x660b06(0x1e9)](_0x660b06(0x251)+_0x1215a3+_0x660b06(0x1db)+_0x1c6069+_0x660b06(0x253),_0x660b06(0x1e1),{'positiveCount':_0x26292d[_0x660b06(0x242)],'totalCount':_0x26292d[_0x660b06(0x1f4)],'dataId':_0x296cbf});return{'execute':async()=>{const _0x201a28=_0x660b06;await _0x12ebe9[_0x201a28(0x20e)];},'abortController':_0x12ebe9[_0x660b06(0x206)]};}[_0x1a3699(0x22b)](_0x3cc7f8,_0x4699cd,_0x55d1f2){const _0x3cccc4=_0x1a3699,_0x540886=this[_0x3cccc4(0x1e9)](_0x3cccc4(0x240)+_0x3cc7f8+_0x3cccc4(0x253),_0x3cccc4(0x1e1),{'positiveCount':_0x4699cd[_0x3cccc4(0x242)],'totalCount':_0x4699cd[_0x3cccc4(0x1f4)],'dataId':_0x55d1f2});return{'execute':async()=>{const _0x5a487b=_0x3cccc4;await _0x540886[_0x5a487b(0x20e)];},'abortController':_0x540886[_0x3cccc4(0x206)]};}[_0x1a3699(0x1e9)](_0x3d7d35,_0x2db849,_0xfd982d){const _0x55abcf=_0x1a3699,_0x56572b=new AbortController(),_0x22a123=_0xfd982d instanceof FormData,_0x4cb67e={'Authorization':_0x55abcf(0x1f5)+this[_0x55abcf(0x1d8)]?.[_0x55abcf(0x22c)]};_0xfd982d&&!_0x22a123&&(_0x4cb67e[_0x55abcf(0x221)]=_0x55abcf(0x256));const _0x1c15ac={'method':_0x2db849,'headers':_0x4cb67e,'signal':_0x56572b[_0x55abcf(0x241)]};return _0xfd982d&&(_0x1c15ac[_0x55abcf(0x1fe)]=_0x22a123?_0xfd982d:JSON[_0x55abcf(0x1df)](_0xfd982d)),{'request':fetch(''+this[_0x55abcf(0x1e6)]+_0x3d7d35,_0x1c15ac)[_0x55abcf(0x1fd)](_0x10014e=>{const _0x2601bb=_0x55abcf;this[_0x2601bb(0x250)](_0x10014e);})[_0x55abcf(0x209)](_0x2a4764=>{const _0x4c51a8=_0x55abcf;if(!_0x2a4764['ok'])throw new _0x4e7388(_0x4c51a8(0x252),this,{'url':this[_0x4c51a8(0x1e6)],'path':_0x3d7d35,'method':_0x2db849,'body':_0xfd982d,'status':(_0x2a4764||{})[_0x4c51a8(0x1dc)],'statusText':(_0x2a4764||{})[_0x4c51a8(0x264)]});return _0x2a4764;}),'abortController':_0x56572b};}async*[_0x1a3699(0x219)](_0x4853e5){const _0x557b15=_0x1a3699,_0x452eca=[],_0x3d59dc=_0x4853e5[_0x557b15(0x233)](),_0xb16dd1=_0x4667e8({'onError':_0x459b73=>{const _0x3bea02=_0x557b15;this[_0x3bea02(0x250)](_0x459b73);},'onEvent':_0x5c191e=>{const _0x2340d9=_0x557b15;_0x5c191e[_0x2340d9(0x1ed)]=JSON[_0x2340d9(0x1f3)](_0x5c191e[_0x2340d9(0x1ed)]),_0x452eca[_0x2340d9(0x265)](_0x5c191e);}});try{let _0x5446aa=!0x1;for(;!_0x5446aa;){const {done:_0x2fe5c4,value:_0x362494}=await _0x3d59dc[_0x557b15(0x201)]();_0x2fe5c4&&(_0x5446aa=!0x0),_0xb16dd1[_0x557b15(0x223)](this[_0x557b15(0x20a)][_0x557b15(0x25f)](_0x362494,{'stream':!0x0})),yield*_0x452eca,_0x452eca[_0x557b15(0x23e)]=0x0;}}catch(_0xeb219f){this[_0x557b15(0x250)](_0xeb219f);}finally{_0x3d59dc[_0x557b15(0x1eb)](),_0xb16dd1[_0x557b15(0x258)]();}}[_0x1a3699(0x250)](_0x5784f7){const _0xad509=_0x1a3699;if(_0x5784f7 instanceof _0x4e7388)throw _0x5784f7;if(_0x5784f7 instanceof Error&&_0xad509(0x224)===_0x5784f7[_0xad509(0x1fa)])throw new _0x4e7388(_0xad509(0x213),this,{'originalError':_0x5784f7});throw new _0x4e7388(_0xad509(0x252),this,{'originalError':_0x5784f7});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x25708a=_0x5d9b;(function(_0x31a056,_0xba31f6){const _0x9631e0=_0x5d9b,_0x549d9c=_0x31a056();while(!![]){try{const _0x5aaa54=parseInt(_0x9631e0(0x83))/0x1+-parseInt(_0x9631e0(0xbe))/0x2*(-parseInt(_0x9631e0(0xa5))/0x3)+-parseInt(_0x9631e0(0x7e))/0x4+-parseInt(_0x9631e0(0x94))/0x5+-parseInt(_0x9631e0(0x9c))/0x6+parseInt(_0x9631e0(0x7f))/0x7+parseInt(_0x9631e0(0xad))/0x8;if(_0x5aaa54===_0xba31f6)break;else _0x549d9c['push'](_0x549d9c['shift']());}catch(_0x334125){_0x549d9c['push'](_0x549d9c['shift']());}}}(_0xa127,0x2af09));import{ViewDowncastWriter as _0x14fdf4}from'ckeditor5/src/engine.js';function _0x5d9b(_0x258ce8,_0x293d34){const _0xa127d9=_0xa127();return _0x5d9b=function(_0x5d9b67,_0x598530){_0x5d9b67=_0x5d9b67-0x74;let _0xab9faa=_0xa127d9[_0x5d9b67];return _0xab9faa;},_0x5d9b(_0x258ce8,_0x293d34);}import{ContextPlugin as _0x36fdcf,Editor as _0x285234}from'ckeditor5/src/core.js';import{uid as _0x5b22ab}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x43629c}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x25708a(0xae);export class AIEditing extends _0x36fdcf{[_0x25708a(0xa1)]=null;[_0x25708a(0x7b)]=!0x1;[_0x25708a(0xcb)];static get[_0x25708a(0x8e)](){const _0xb0f058=_0x25708a;return _0xb0f058(0xa2);}static get[_0x25708a(0xd4)](){return!0x0;}static get[_0x25708a(0x96)](){return!0x0;}get[_0x25708a(0xa8)](){const _0x33e9b1=_0x25708a;if(!this[_0x33e9b1(0xcb)]){const _0xec789c=_0x43629c(this[_0x33e9b1(0xb4)]),_0x418fb0=_0xec789c[_0x33e9b1(0x85)][_0x33e9b1(0xb7)](_0x33e9b1(0xd2))&&_0xec789c[_0x33e9b1(0x85)][_0x33e9b1(0xa0)](_0x33e9b1(0xd2))[_0x33e9b1(0xa8)];this[_0x33e9b1(0xcb)]=_0x418fb0||_0x5b22ab();}return this[_0x33e9b1(0xcb)];}[_0x25708a(0xa4)](){const _0x392db5=_0x25708a,_0x4d02c1=_0x43629c(this[_0x392db5(0xb4)]),_0x570816=_0x4d02c1[_0x392db5(0x8c)],_0x13db68=_0x4d02c1[_0x392db5(0x7c)][_0x392db5(0x7d)](_0x570816[_0x392db5(0x9b)][_0x392db5(0xbd)](),{'convertAiChatSelectionMarker':!0x0}),_0x1ddc4d=new _0x14fdf4(_0x4d02c1[_0x392db5(0xca)][_0x392db5(0x76)][_0x392db5(0x9b)]);this[_0x392db5(0x79)](_0x13db68,_0x1ddc4d);let _0x46c171=_0x4d02c1[_0x392db5(0x7c)][_0x392db5(0xcc)][_0x392db5(0x8a)](_0x13db68);const _0x3cf523=this[_0x392db5(0xa7)](),_0x295668=[];for(const _0x42768d of _0x3cf523){const _0x1b98ea='<'+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0xb6)+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0xb1),_0x1382ad=_0x46c171[_0x392db5(0x95)](_0x1b98ea);_0x46c171=_0x46c171[_0x392db5(0x82)](0x0,_0x1382ad)+_0x46c171[_0x392db5(0x82)](_0x1382ad+_0x1b98ea[_0x392db5(0xba)]);const _0x548023='<'+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0x8f)+_0x42768d[_0x392db5(0xbb)]+_0x392db5(0x8d),_0x4e8041=_0x46c171[_0x392db5(0x95)](_0x548023);_0x46c171=_0x46c171[_0x392db5(0x82)](0x0,_0x4e8041)+_0x46c171[_0x392db5(0x82)](_0x4e8041+_0x548023[_0x392db5(0xba)]),_0x295668[_0x392db5(0xd3)]({'markerName':_0x42768d[_0x392db5(0xbb)],'start':_0x1382ad,'end':_0x4e8041,'htmlFragment':_0x46c171[_0x392db5(0x82)](_0x1382ad,_0x4e8041)});}return{'content':_0x46c171,'version':_0x4d02c1[_0x392db5(0x8c)][_0x392db5(0x9b)][_0x392db5(0xc1)],'sessionId':this[_0x392db5(0xa8)],'selections':_0x295668};}async[_0x25708a(0x81)](){const _0x410a4e=_0x25708a;this[_0x410a4e(0xb4)]instanceof _0x285234?this[_0x410a4e(0xa6)](this[_0x410a4e(0xb4)]):this[_0x410a4e(0xc5)](this[_0x410a4e(0xb4)][_0x410a4e(0x74)],_0x410a4e(0x90),(_0x4982d7,_0x5dc03d)=>{const _0x3cd018=_0x410a4e;_0x5dc03d['on'](_0x3cd018(0xcd),()=>{const _0x4de51d=_0x3cd018;this[_0x4de51d(0xa6)](_0x5dc03d);});});}[_0x25708a(0xa6)](_0xe9d817){const _0x391069=_0x25708a;_0xe9d817[_0x391069(0x88)][_0x391069(0xb8)](_0x391069(0xc4))[_0x391069(0xd1)]({'model':_0x391069(0xae),'view':{'classes':[_0x391069(0xb5),_0x391069(0x91)],'priority':0xc}}),_0xe9d817[_0x391069(0x88)][_0x391069(0xb8)](_0x391069(0x87))[_0x391069(0xac)]({'model':_0x391069(0xae),'view':(_0x2dcf2e,{writer:_0x51f05b,options:_0x4038f1})=>_0x4038f1[_0x391069(0x80)]?_0x51f05b[_0x391069(0x9a)](_0x2dcf2e[_0x391069(0xab)]+':'+(_0x2dcf2e[_0x391069(0xa3)]?_0x391069(0xd7):_0x391069(0x77))):null});}[_0x25708a(0xbc)](_0x29fe9e,_0x566fe4,_0x456696=!0x1,_0x2b439c=!0x1){const _0x52cdf8=_0x25708a;if(this[_0x52cdf8(0x7b)]&&!_0x2b439c)return!0x1;const _0x2e6b35=_0x43629c(this[_0x52cdf8(0xb4)])[_0x52cdf8(0x8c)];return _0x2e6b35[_0x52cdf8(0x86)](_0x37ec07=>{const _0x4f5413=_0x52cdf8;this[_0x4f5413(0xa1)]&&this[_0x4f5413(0x9e)](this[_0x4f5413(0xa1)]),this[_0x4f5413(0xa1)]=_0x566fe4,this[_0x4f5413(0x7b)]=_0x456696;let _0x4a24ab=0x0;for(let _0x1b1a39 of _0x29fe9e){const _0x430084=_0x4f5413(0xbf)+_0x4a24ab;if(_0x1b1a39[_0x4f5413(0xd7)][_0x4f5413(0xda)]){const _0x43504e=_0x1b1a39[_0x4f5413(0xd7)][_0x4f5413(0xc2)](({item:_0x44f612})=>!_0x2e6b35[_0x4f5413(0x98)][_0x4f5413(0xa9)](_0x44f612),{'boundaries':_0x1b1a39});_0x1b1a39=_0x37ec07[_0x4f5413(0xd8)](_0x43504e,_0x1b1a39[_0x4f5413(0x77)]);}_0x37ec07[_0x4f5413(0xd9)](_0x430084,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1b1a39}),_0x4a24ab++;}}),window[_0x52cdf8(0x93)]()?.[_0x52cdf8(0xce)](),!0x0;}[_0x25708a(0x9e)](_0x377b6e){const _0x2659dd=_0x25708a;if(this[_0x2659dd(0xa1)]!=_0x377b6e)return!0x1;this[_0x2659dd(0xa1)]=null,this[_0x2659dd(0x7b)]=!0x1;const _0x399e67=_0x43629c(this[_0x2659dd(0xb4)]),_0x498a56=_0x399e67[_0x2659dd(0x8c)][_0x2659dd(0x84)][_0x2659dd(0xc9)](_0x2659dd(0xae));return _0x399e67[_0x2659dd(0x8c)][_0x2659dd(0x86)](_0x1e207e=>{const _0x24345d=_0x2659dd;for(const _0x304d3b of _0x498a56)_0x1e207e[_0x24345d(0x89)](_0x304d3b);}),!0x0;}[_0x25708a(0xd0)](_0x48a399){const _0x51097a=_0x25708a,_0x177065=_0x43629c(this[_0x51097a(0xb4)]),_0x49b599=_0x177065[_0x51097a(0x7c)][_0x51097a(0x7d)](_0x48a399),_0xb298e=new _0x14fdf4(_0x177065[_0x51097a(0xca)][_0x51097a(0x76)][_0x51097a(0x9b)]);return this[_0x51097a(0x79)](_0x49b599,_0xb298e),_0x49b599;}[_0x25708a(0x79)](_0x5dc2f7,_0xda8156){const _0x5a6e75=_0x25708a;let _0x3f263c=!0x1;const _0x330d60=new Set();for(const _0x578dab of _0x5dc2f7[_0x5a6e75(0xc0)]()){const _0xd9345c=_0x578dab['is'](_0x5a6e75(0xcf))||_0x578dab['is'](_0x5a6e75(0xb3));if(!_0x578dab['is'](_0x5a6e75(0xaa)))continue;(this[_0x5a6e75(0x79)](_0x578dab,_0xda8156)||_0xd9345c)&&(_0xda8156[_0x5a6e75(0xb9)](_0x5a6e75(0x78),this[_0x5a6e75(0x97)](_0x330d60),_0x578dab),_0x3f263c=!0x0);}return _0x3f263c;}[_0x25708a(0x97)](_0x314c74){const _0x38c5bf=_0x25708a;let _0x443d4f;do{_0x443d4f='';for(let _0x3ce042=0x0;_0x3ce042<0x4;_0x3ce042++)_0x443d4f+=String[_0x38c5bf(0xc6)](0x61+Math[_0x38c5bf(0x7a)](0x1a*Math[_0x38c5bf(0xd5)]()));}while(_0x314c74[_0x38c5bf(0xb7)](_0x443d4f));return _0x314c74[_0x38c5bf(0x90)](_0x443d4f),_0x443d4f;}[_0x25708a(0xaf)](){const _0x49dca7=_0x25708a,{model:_0x1df29c}=_0x43629c(this[_0x49dca7(0xb4)]),_0x20d006=_0x1df29c[_0x49dca7(0x9b)][_0x49dca7(0x75)],_0x463fef=_0x1df29c[_0x49dca7(0xd6)](_0x20d006),_0x46b538=[],_0x308137=_0x1df29c[_0x49dca7(0x9f)](_0x463fef)[_0x49dca7(0x92)]();for(const {item:_0x376073}of _0x308137)_0x376073['is'](_0x49dca7(0xb2))?_0x46b538[_0x49dca7(0xd3)](_0x376073[_0x49dca7(0x7c)]):_0x376073['is'](_0x49dca7(0xaa))&&_0x46b538[_0x49dca7(0xba)]>0x0&&'\x20'!==_0x46b538[_0x46b538[_0x49dca7(0xba)]-0x1]&&_0x46b538[_0x49dca7(0xd3)]('\x20');return'\x22'+_0x46b538[_0x49dca7(0x9d)]('')[_0x49dca7(0x8b)]()+'\x22';}[_0x25708a(0xa7)](){const _0x35c46=_0x25708a,_0x8ef914=_0x43629c(this[_0x35c46(0xb4)])[_0x35c46(0x8c)];return Array[_0x35c46(0xc3)](_0x8ef914[_0x35c46(0x84)][_0x35c46(0xc9)](_0x35c46(0xae)))[_0x35c46(0xc8)]((_0x53fed2,_0x599cf8)=>_0x53fed2[_0x35c46(0xb0)]()[_0x35c46(0xc7)](_0x599cf8[_0x35c46(0xb0)]())?-0x1:_0x53fed2[_0x35c46(0xb0)]()[_0x35c46(0x99)](_0x599cf8[_0x35c46(0xb0)]())?0x1:0x0);}}function _0xa127(){const _0x38f929=['start','createRange','addMarker','isAtEnd','editors','selection','view','end','data-id','_setDataIdsOnChildren','floor','_displayedFakeSelectionLocked','data','toView','925428waLQwZ','1144570AcCVsF','convertAiChatSelectionMarker','afterInit','substring','322573vSXWzq','markers','plugins','change','dataDowncast','conversion','removeMarker','toData','trim','model',':end>','pluginName',':end></','add','ck-ai-assistant-ui_theme','getWalker','getSelection','666900iqofUm','indexOf','isPremiumPlugin','_nextDataId','schema','isAfter','createUIElement','document','948636jrWhRI','join','hideFakeVisualSelection','createRangeIn','get','_displayedFakeSelectionId','AIEditing','isOpening','getDocumentData','885AxPTUk','_integrateEditor','_getMarkersInDocumentOrder','sessionId','isContent','element','markerName','markerToElement','1198448iBSTwE','ai-selection','getSelectionText','getStart',':start>','$textProxy','containerElement','context','ck-fake-ai-selection',':start></','has','for','setAttribute','length','name','showFakeVisualSelection','getRoot','426evVnEH','ai-selection:','getChildren','version','getLastMatchingPosition','from','editingDowncast','listenTo','fromCharCode','isBefore','sort','getMarkersGroup','editing','_sessionId','processor','ready','removeAllRanges','emptyElement','modelToViewWithIds','markerToHighlight','RealTimeCollaborationClient','push','isOfficialPlugin','random','getSelectedContent'];_0xa127=function(){return _0x38f929;};return _0xa127();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29a86c=_0x27da;(function(_0x282466,_0x5059ac){const _0x2cc7eb=_0x27da,_0x920790=_0x282466();while(!![]){try{const _0x3a8ee2=-parseInt(_0x2cc7eb(0xee))/0x1*(-parseInt(_0x2cc7eb(0xe0))/0x2)+-parseInt(_0x2cc7eb(0xe4))/0x3*(parseInt(_0x2cc7eb(0xf0))/0x4)+-parseInt(_0x2cc7eb(0xd9))/0x5*(-parseInt(_0x2cc7eb(0xeb))/0x6)+-parseInt(_0x2cc7eb(0xe6))/0x7*(-parseInt(_0x2cc7eb(0xdf))/0x8)+-parseInt(_0x2cc7eb(0xe7))/0x9+parseInt(_0x2cc7eb(0xe9))/0xa+-parseInt(_0x2cc7eb(0xec))/0xb;if(_0x3a8ee2===_0x5059ac)break;else _0x920790['push'](_0x920790['shift']());}catch(_0x89ec58){_0x920790['push'](_0x920790['shift']());}}}(_0x4dd3,0xa526c));function _0x27da(_0xf9c346,_0x13367a){const _0x4dd3f7=_0x4dd3();return _0x27da=function(_0x27daf1,_0x4e25e2){_0x27daf1=_0x27daf1-0xd6;let _0x1a67d4=_0x4dd3f7[_0x27daf1];return _0x1a67d4;},_0x27da(_0xf9c346,_0x13367a);}import{EmitterMixin as _0x1612e3}from'ckeditor5/src/utils.js';function _0x4dd3(){const _0x25daec=['isReasoningEnabled','5625590HmaVZs','reset','26808kFSPKc','23931776rVWgek','fire','41oaZOol','_isWebSearchEnabled','590856lFYtBE','init','setReasoning','capabilitiesUpdated','725XEHOoH','toggleReasoning','isWebSearchEnabled','toggleWebSearch','setWebSearch','reasoning','64376cZcrWz','49638Hyygzj','webSearch','getCapabilitiesRequestData','getCapabilitiesConfig','3KbdCDN','_isReasoningEnabled','798rlQiGk','1310094rILEaT'];_0x4dd3=function(){return _0x25daec;};return _0x4dd3();}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x29a86c(0xd8)];export class AICapabilities extends _0x1612e3(){[_0x29a86c(0xef)];[_0x29a86c(0xe5)];constructor(){const _0x5a9a1f=_0x29a86c;super(),this[_0x5a9a1f(0xef)]=!0x1,this[_0x5a9a1f(0xe5)]=!0x1;}[_0x29a86c(0xd6)](){const _0x2a8578=_0x29a86c;this[_0x2a8578(0xea)]();}[_0x29a86c(0xea)](){const _0x4022d0=_0x29a86c;this[_0x4022d0(0xdd)](!0x1),this[_0x4022d0(0xd7)](!0x1);}[_0x29a86c(0xe3)](){const _0x44e918=_0x29a86c;return{'isWebSearchEnabled':this[_0x44e918(0xef)],'isReasoningEnabled':this[_0x44e918(0xe5)]};}static[_0x29a86c(0xe2)](_0x9ae2a3){const _0x1923b5=_0x29a86c,_0x57b24c={};return _0x9ae2a3&&_0x9ae2a3[_0x1923b5(0xdb)]&&(_0x57b24c[_0x1923b5(0xe1)]={}),_0x9ae2a3&&_0x9ae2a3[_0x1923b5(0xe8)]&&(_0x57b24c[_0x1923b5(0xde)]={}),_0x57b24c;}[_0x29a86c(0xdc)](){const _0x418d9b=_0x29a86c;this[_0x418d9b(0xdd)](!this[_0x418d9b(0xef)]);}[_0x29a86c(0xda)](){const _0x1fdc0d=_0x29a86c;this[_0x1fdc0d(0xd7)](!this[_0x1fdc0d(0xe5)]);}[_0x29a86c(0xdd)](_0x41e5c2){const _0x73183a=_0x29a86c;_0x41e5c2!==this[_0x73183a(0xef)]&&(this[_0x73183a(0xef)]=_0x41e5c2,this[_0x73183a(0xed)](_0x73183a(0xd8),this[_0x73183a(0xe3)]()));}[_0x29a86c(0xd7)](_0x207663){const _0x52957d=_0x29a86c;_0x207663!==this[_0x52957d(0xe5)]&&(this[_0x52957d(0xe5)]=_0x207663,this[_0x52957d(0xed)](_0x52957d(0xd8),this[_0x52957d(0xe3)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x265175=_0x1dbe;function _0x1dbe(_0x123dbb,_0x599df9){const _0x5e56bf=_0x5e56();return _0x1dbe=function(_0x1dbe7a,_0x2cd360){_0x1dbe7a=_0x1dbe7a-0x19f;let _0x3f1d62=_0x5e56bf[_0x1dbe7a];return _0x3f1d62;},_0x1dbe(_0x123dbb,_0x599df9);}(function(_0x4e7a26,_0x1f5b90){const _0x24c7a7=_0x1dbe,_0x539989=_0x4e7a26();while(!![]){try{const _0xda5972=-parseInt(_0x24c7a7(0x1e7))/0x1*(-parseInt(_0x24c7a7(0x1cf))/0x2)+-parseInt(_0x24c7a7(0x1b7))/0x3*(-parseInt(_0x24c7a7(0x1c5))/0x4)+parseInt(_0x24c7a7(0x1a8))/0x5*(parseInt(_0x24c7a7(0x1c2))/0x6)+-parseInt(_0x24c7a7(0x1da))/0x7+-parseInt(_0x24c7a7(0x1a1))/0x8+-parseInt(_0x24c7a7(0x1d9))/0x9*(-parseInt(_0x24c7a7(0x1e6))/0xa)+-parseInt(_0x24c7a7(0x1e0))/0xb*(parseInt(_0x24c7a7(0x1cb))/0xc);if(_0xda5972===_0x1f5b90)break;else _0x539989['push'](_0x539989['shift']());}catch(_0x6bb77){_0x539989['push'](_0x539989['shift']());}}}(_0x5e56,0x404e4));import{CKEditorError as _0x72c960,EmitterMixin as _0x30c987,logWarning as _0x312d80,uid as _0x52766a}from'ckeditor5/src/utils.js';import{AIReply as _0x3862e9,isIgnoredReplyType as _0x821e34,isValidReplyType as _0x3458ad,isReplyTitleType as _0x2db97d,isSourceType as _0x51b39a}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x265175(0x1d8),_0x265175(0x1aa),_0x265175(0x1b1),_0x265175(0x1bd),_0x265175(0x1b6),_0x265175(0x1b9),_0x265175(0x1d0),_0x265175(0x1b2),_0x265175(0x1bc),_0x265175(0x1a6),_0x265175(0x1c6),_0x265175(0x1ba),_0x265175(0x1dc),_0x265175(0x1ae)];function _0x5e56(){const _0x3fac2c=['16NFqzvz','webSearchFinished','event','isDestroyed','length','find','12SQvSUa','stopListening','_isReasoning','currentReply','292574YSJZeE','replyContentUpdated','_isWebSearching','push','fire','web-search','destroy','conversationTitle','content','interactionCreated','9VIfKJH','146279oECvZB','done','reasoningFinished','message-metadata','delegate','splice','1483185QtVAHn','abortController','getStream','isStopped','getDocumentContext','forEach','2087450qrfSTY','2ppLTrS','sources','currentRequest','3512144cksfvi','source','createReply','action-metadata','_finalizeInteraction','webSearchStarted','replies','25kkmdJj','actionCallId','interactionStarted','start','callId','appendContent','error','messageId','connector','interactionStopped','replyChangeGroupStateUpdated','ai-chat-interaction-error','textDelta','reasoning','interactionDestroyed','245169chirmm','sendRequest','replyCreated','reasoningStarted','stop','setConversationTitle','interactionFinished','modification-delta','abort','data','editor','35922CJRFot','getReply','ai-interaction-invalid-event-type'];_0x5e56=function(){return _0x3fac2c;};return _0x5e56();}export class AIInteraction extends _0x30c987(){['id'];[_0x265175(0x1a7)]=[];[_0x265175(0x1ce)];[_0x265175(0x1af)];[_0x265175(0x1a9)];[_0x265175(0x1a0)];[_0x265175(0x1b0)];[_0x265175(0x1e3)]=!0x1;[_0x265175(0x1c8)]=!0x1;[_0x265175(0x1c1)];[_0x265175(0x1cd)]=!0x1;[_0x265175(0x1d1)]=!0x1;constructor({connector:_0x1f5044,editor:_0x222aba}){const _0x19ea37=_0x265175;super(),this['id']=_0x52766a(),this[_0x19ea37(0x1b0)]=_0x1f5044,this[_0x19ea37(0x1e3)]=!0x0,this[_0x19ea37(0x1c1)]=_0x222aba;}async[_0x265175(0x1ab)](){const _0x363906=_0x265175;let _0x3aad80;const _0x1195b4=[];this[_0x363906(0x1e3)]=!0x1;try{this[_0x363906(0x1a0)]=await this[_0x363906(0x1b8)](),this[_0x363906(0x1d3)](_0x363906(0x1aa),this);const _0x2bf181=await this[_0x363906(0x1a0)][_0x363906(0x1e2)]();for await(const _0x50db5e of _0x2bf181){if(this[_0x363906(0x1e3)])return;if(_0x363906(0x1ae)===_0x50db5e[_0x363906(0x1c7)])return void this[_0x363906(0x1d3)](_0x363906(0x1ae),{'error':new _0x72c960(_0x363906(0x1b3),this)});if(_0x363906(0x1dd)!==_0x50db5e[_0x363906(0x1c7)]){if(_0x363906(0x1a4)!==_0x50db5e[_0x363906(0x1c7)]){if(_0x2db97d(_0x50db5e[_0x363906(0x1c7)])&&this[_0x363906(0x1bc)](_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1d6)],!0x0),_0x51b39a(_0x50db5e[_0x363906(0x1c7)]))_0x1195b4[_0x363906(0x1d2)](_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1a2)]);else{if(_0x3458ad(_0x50db5e[_0x363906(0x1c7)])){if(_0x50db5e[_0x363906(0x1c7)]!==_0x3aad80){if(_0x3aad80=_0x50db5e[_0x363906(0x1c7)],_0x363906(0x1d4)===_0x50db5e[_0x363906(0x1c7)]){this[_0x363906(0x1d1)]||(this[_0x363906(0x1d1)]=!0x0,this[_0x363906(0x1d3)](_0x363906(0x1a6),this));continue;}if(_0x363906(0x1b5)===_0x50db5e[_0x363906(0x1c7)]){this[_0x363906(0x1cd)]||(this[_0x363906(0x1cd)]=!0x0,this[_0x363906(0x1d3)](_0x363906(0x1ba),this));continue;}this[_0x363906(0x1cd)]&&(this[_0x363906(0x1cd)]=!0x1,this[_0x363906(0x1d3)](_0x363906(0x1dc),this)),this[_0x363906(0x1d1)]&&(this[_0x363906(0x1d1)]=!0x1,this[_0x363906(0x1d3)](_0x363906(0x1c6),this)),this[_0x363906(0x1ce)]&&this[_0x363906(0x1ce)][_0x363906(0x1db)](),this[_0x363906(0x1ce)]=this[_0x363906(0x1a3)]({'type':_0x50db5e[_0x363906(0x1c7)],'interactionId':this['id'],'id':_0x50db5e[_0x363906(0x1c0)]?.['id']}),_0x1195b4[_0x363906(0x1c9)]>0x0&&_0x363906(0x1be)===_0x50db5e[_0x363906(0x1c7)]&&(this[_0x363906(0x1ce)][_0x363906(0x19f)]=_0x1195b4[_0x363906(0x1df)](0x0));}_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1b4)]&&this[_0x363906(0x1ce)][_0x363906(0x1ad)](_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1b4)]);}else _0x821e34(_0x50db5e[_0x363906(0x1c7)])||_0x312d80(_0x363906(0x1c4),{'chunk':_0x50db5e});}}else this[_0x363906(0x1a9)]=_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1ac)];}else this[_0x363906(0x1af)]=_0x50db5e[_0x363906(0x1c0)][_0x363906(0x1af)];}}finally{this[_0x363906(0x1e3)]||(_0x1195b4[_0x363906(0x1c9)]>0x0&&(this[_0x363906(0x1ce)][_0x363906(0x19f)]=_0x1195b4[_0x363906(0x1df)](0x0)),this[_0x363906(0x1a5)](),this[_0x363906(0x1d3)](_0x363906(0x1bd),this));}}[_0x265175(0x1bb)](){const _0x5d8cbd=_0x265175;this[_0x5d8cbd(0x1e3)]||(this[_0x5d8cbd(0x1a5)](),this[_0x5d8cbd(0x1d3)](_0x5d8cbd(0x1b1),this));}[_0x265175(0x1c3)](_0x2b8e84){const _0x55b321=_0x265175;return this[_0x55b321(0x1a7)][_0x55b321(0x1ca)](_0x590482=>_0x590482['id']===_0x2b8e84);}[_0x265175(0x1d5)](){const _0xec366f=_0x265175;this[_0xec366f(0x1c8)]||(this[_0xec366f(0x1bb)](),this[_0xec366f(0x1a7)][_0xec366f(0x1e5)](_0x5bced1=>_0x5bced1[_0xec366f(0x1d5)]()),this[_0xec366f(0x1a7)]=[],this[_0xec366f(0x1c8)]=!0x0,this[_0xec366f(0x1d3)](_0xec366f(0x1b6),this),this[_0xec366f(0x1cc)]());}[_0x265175(0x1a3)](_0x245b4a){const _0x346e02=_0x265175,_0x3ef3c2=new _0x3862e9({'editor':this[_0x346e02(0x1c1)],'documentContextContent':this[_0x346e02(0x1e4)]()?.[_0x346e02(0x1d7)],..._0x245b4a});return this[_0x346e02(0x1a7)][_0x346e02(0x1d2)](_0x3ef3c2),_0x3ef3c2[_0x346e02(0x1de)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x346e02(0x1d3)](_0x346e02(0x1b9),_0x3ef3c2),_0x3ef3c2;}[_0x265175(0x1bc)](_0x38a8c3,_0x556189=!0x1){const _0x2db433=_0x265175;this[_0x2db433(0x1d3)](_0x2db433(0x1bc),_0x38a8c3,_0x556189);}[_0x265175(0x1a5)](){const _0x40a6ee=_0x265175;this[_0x40a6ee(0x1e3)]=!0x0,this[_0x40a6ee(0x1a0)]&&this[_0x40a6ee(0x1a0)][_0x40a6ee(0x1e1)][_0x40a6ee(0x1bf)](),this[_0x40a6ee(0x1ce)]&&this[_0x40a6ee(0x1ce)][_0x40a6ee(0x1db)](),this[_0x40a6ee(0x1a0)]=this[_0x40a6ee(0x1ce)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5821b8=_0x17f9;(function(_0x31f81f,_0x5e6d22){const _0x2a6519=_0x17f9,_0x3dbd9b=_0x31f81f();while(!![]){try{const _0x5abbea=parseInt(_0x2a6519(0x1cc))/0x1+-parseInt(_0x2a6519(0x1b5))/0x2*(-parseInt(_0x2a6519(0x1ce))/0x3)+-parseInt(_0x2a6519(0x1ba))/0x4*(parseInt(_0x2a6519(0x1c0))/0x5)+-parseInt(_0x2a6519(0x1d4))/0x6*(-parseInt(_0x2a6519(0x1b7))/0x7)+-parseInt(_0x2a6519(0x1c9))/0x8*(-parseInt(_0x2a6519(0x1c6))/0x9)+parseInt(_0x2a6519(0x1d5))/0xa*(-parseInt(_0x2a6519(0x1b9))/0xb)+-parseInt(_0x2a6519(0x1cd))/0xc*(parseInt(_0x2a6519(0x1bb))/0xd);if(_0x5abbea===_0x5e6d22)break;else _0x3dbd9b['push'](_0x3dbd9b['shift']());}catch(_0x420a52){_0x3dbd9b['push'](_0x3dbd9b['shift']());}}}(_0x3d41,0x6d5db));function _0x17f9(_0x2b77e7,_0x521f3f){const _0x3d4188=_0x3d41();return _0x17f9=function(_0x17f97a,_0x15850b){_0x17f97a=_0x17f97a-0x1b5;let _0x2d3d27=_0x3d4188[_0x17f97a];return _0x2d3d27;},_0x17f9(_0x2b77e7,_0x521f3f);}import{CKEditorError as _0x200cbb,EmitterMixin as _0x4a3b46,logWarning as _0xbd8fc8}from'ckeditor5/src/utils.js';import{getTranslation as _0x3357a7}from'../utils/common-translations.js';export class AIModels extends _0x4a3b46(){[_0x5821b8(0x1c1)];[_0x5821b8(0x1d6)];[_0x5821b8(0x1c2)];[_0x5821b8(0x1d9)]=[];constructor({connector:_0x1589a3,availableModels:_0x5df6e7,defaultModelId:_0x55073b}){const _0x1148a5=_0x5821b8;super(),this[_0x1148a5(0x1c1)]=_0x1589a3,this[_0x1148a5(0x1d6)]=_0x5df6e7,this[_0x1148a5(0x1c2)]=_0x55073b;}async[_0x5821b8(0x1d7)](){const _0x3379a1=_0x5821b8;if(!this[_0x3379a1(0x1d9)][_0x3379a1(0x1e2)])try{const _0x263336=this[_0x3379a1(0x1c1)][_0x3379a1(0x1df)](),_0x2bda31=await _0x263336[_0x3379a1(0x1bd)]();this[_0x3379a1(0x1d9)]=_0x2bda31[_0x3379a1(0x1e1)];}catch(_0xefb72d){throw new _0x200cbb(_0x3379a1(0x1d2),null,{'error':_0xefb72d});}return[...this[_0x3379a1(0x1d9)]];}async[_0x5821b8(0x1d8)](){const _0x315684=_0x5821b8,_0x46f504=await this[_0x315684(0x1d7)]();return this[_0x315684(0x1dd)](_0x46f504,this[_0x315684(0x1d6)]);}async[_0x5821b8(0x1db)](_0x5c5b96){const _0x31caf6=_0x5821b8,_0x24d3d2=await this[_0x31caf6(0x1d7)]();if(!_0x24d3d2[_0x31caf6(0x1e2)])return null;if(_0x5c5b96){const _0x51c7c0=this[_0x31caf6(0x1cb)](_0x24d3d2,_0x5c5b96);if(_0x51c7c0)return _0x51c7c0;_0xbd8fc8(_0x31caf6(0x1d3),{'modelId':_0x5c5b96,'fallBackModelId':this[_0x31caf6(0x1c2)]});}return this[_0x31caf6(0x1bf)]();}async[_0x5821b8(0x1bf)](){const _0x334cc2=_0x5821b8,_0x41067b=await this[_0x334cc2(0x1d8)]();if(!_0x41067b[_0x334cc2(0x1e2)])return null;if(this[_0x334cc2(0x1c2)]){const _0x5935e8=this[_0x334cc2(0x1cb)](_0x41067b,this[_0x334cc2(0x1c2)]);if(_0x5935e8)return _0x5935e8;_0xbd8fc8(_0x334cc2(0x1c5),{'defaultModelId':this[_0x334cc2(0x1c2)],'fallBackModelId':_0x41067b[0x0]['id']});}return _0x41067b[0x0];}async[_0x5821b8(0x1e3)](_0x1ab394){const _0x387861=_0x5821b8;return(await this[_0x387861(0x1d8)]())[_0x387861(0x1ca)](_0x4bfeb7=>_0x4bfeb7[_0x387861(0x1b6)]===_0x1ab394[_0x387861(0x1b6)]&&_0x4bfeb7[_0x387861(0x1bc)]===_0x1ab394[_0x387861(0x1bc)]);}[_0x5821b8(0x1dd)](_0x109924,_0x46e744){const _0x382e3b=_0x5821b8;let _0x3a0632;if(_0x46e744){_0x3a0632=[];const _0x32a9f0=_0x382e3b(0x1dc)==typeof _0x46e744?[_0x46e744[_0x382e3b(0x1c8)]()]:_0x46e744[_0x382e3b(0x1de)](_0x1688c3=>_0x1688c3[_0x382e3b(0x1c8)]());for(const _0x1a69cc of _0x32a9f0)for(const _0x2f6146 of _0x109924)(_0x2f6146['id'][_0x382e3b(0x1c8)]()===_0x1a69cc||_0x2f6146[_0x382e3b(0x1b6)][_0x382e3b(0x1c8)]()===_0x1a69cc||Ne(_0x2f6146)&&_0x382e3b(0x1c4)===_0x1a69cc||_0x2f6146[_0x382e3b(0x1bc)][_0x382e3b(0x1c8)]()===_0x1a69cc||_0x2f6146['id'][_0x382e3b(0x1c8)]()[_0x382e3b(0x1cf)](_0x1a69cc))&&_0x3a0632[_0x382e3b(0x1da)](_0x2f6146);}else _0x3a0632=_0x109924;return _0x3a0632;}[_0x5821b8(0x1cb)](_0x56d3f2,_0x2634da){const _0x341c56=_0x5821b8;return _0x56d3f2[_0x341c56(0x1d0)](_0x53f3dd=>Ne(_0x53f3dd)&&_0x341c56(0x1c4)===_0x2634da?_0x53f3dd:_0x53f3dd['id']===_0x2634da)||null;}static[_0x5821b8(0x1c7)](_0x3a6dfd,_0x4ff709){const _0x3ef3b4=_0x5821b8;return _0x4ff709[_0x3ef3b4(0x1de)](_0xe33f94=>{const _0x1f729a=_0x3ef3b4;if(Ne(_0xe33f94))_0xe33f94[_0x1f729a(0x1b6)]=_0x3357a7(_0x3a6dfd,_0x1f729a(0x1e0)),_0xe33f94[_0x1f729a(0x1b8)]=_0x3357a7(_0x3a6dfd,_0x1f729a(0x1d1));else _0x3357a7(_0x3a6dfd,_0x1f729a(0x1e4)+_0xe33f94['id'][_0x1f729a(0x1be)]())[_0x1f729a(0x1cf)](_0x1f729a(0x1e4))||(_0xe33f94[_0x1f729a(0x1b8)]=_0x3357a7(_0x3a6dfd,_0x1f729a(0x1e4)+_0xe33f94['id'][_0x1f729a(0x1be)]()));return _0xe33f94;});}}function _0x3d41(){const _0xaa390=['AI_MODEL_NAME_AUTO','items','length','isAvailable','AI_MODEL_DESCRIPTION_','446CwdmPW','name','7qVfLTD','description','2020568AWpiJd','4WZKTXo','26793VuAgUT','provider','list','toUpperCase','getDefault','4278235icwKKQ','_connector','_defaultModelId','agent','auto','ai-chat-default-model-id-unrecognized','63dgiION','getLocalized','toLocaleLowerCase','486376lXTccg','some','_getModelById','672819uFKIKD','828eYzJci','7788xNkuSD','startsWith','find','AI_MODEL_DESCRIPTION_AUTO','ai-models-unable-to-retrieve','ai-chat-model-id-unrecognized','1917462etAxFJ','30KJkSFf','_availableModels','getAll','getAvailableModels','_modelList','push','getModel','string','_filterModels','map','getModels'];_0x3d41=function(){return _0xaa390;};return _0x3d41();}function Ne(_0xba9b2a){const _0x192db2=_0x5821b8;return _0xba9b2a['id'][_0x192db2(0x1cf)](_0x192db2(0x1c3));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5a6a09=_0x502e;(function(_0x12e90e,_0x5a5080){const _0x3d62a9=_0x502e,_0x2fea21=_0x12e90e();while(!![]){try{const _0x2e43a8=parseInt(_0x3d62a9(0x17a))/0x1+parseInt(_0x3d62a9(0x19b))/0x2+-parseInt(_0x3d62a9(0x159))/0x3+parseInt(_0x3d62a9(0x1a7))/0x4+parseInt(_0x3d62a9(0x18e))/0x5+parseInt(_0x3d62a9(0x18a))/0x6+-parseInt(_0x3d62a9(0x163))/0x7;if(_0x2e43a8===_0x5a5080)break;else _0x2fea21['push'](_0x2fea21['shift']());}catch(_0x6e0cb8){_0x2fea21['push'](_0x2fea21['shift']());}}}(_0x4074,0xbfbb9));import{CKEditorError as _0x18f3d3,ObservableMixin as _0x8ae443,uid as _0x5ad8e2}from'ckeditor5/src/utils.js';import{Element as _0x111c23,findAll as _0x1de8a3,getAttribute as _0x569a87,getParents as _0x4d101c,Document as _0xec67ae,parse as _0x5517ac,Text as _0x2fce5f}from'../utils/htmlparser.js';import{AIResponseParser as _0x3c9b1d}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x2e6e50}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x1b12f1}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5e143f}from'../utils/common-translations.js';import{cloneDeep as _0x5a67e4}from'es-toolkit';export const AI_REPLY_TYPES=[_0x5a6a09(0x1a3),_0x5a6a09(0x16a),_0x5a6a09(0x15d),_0x5a6a09(0x15b)];export const AI_REPLY_TYPES_IGNORED=[_0x5a6a09(0x190)];export const AI_REPLY_TITLE_TYPE=_0x5a6a09(0x190);export class AIReply extends _0x8ae443(){['id'];[_0x5a6a09(0x160)];[_0x5a6a09(0x175)];[_0x5a6a09(0x19a)]=[];[_0x5a6a09(0x15c)]=new _0xec67ae([]);[_0x5a6a09(0x161)]=new _0xec67ae([]);[_0x5a6a09(0x16d)]=[];[_0x5a6a09(0x187)]=!0x1;[_0x5a6a09(0x182)];[_0x5a6a09(0x170)];[_0x5a6a09(0x177)];[_0x5a6a09(0x19c)];[_0x5a6a09(0x173)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x4ada3b,content:_0xac126='',isDone:_0x5e1c60=!0x1,interactionId:_0x1a6086,areActionsDisabled:_0x4b877a,documentContextContent:_0x55f320,editor:_0x36f9bf,id:_0x2eee8d}){const _0x5c8427=_0x5a6a09;super(),this['id']=_0x2eee8d||_0x5ad8e2(),this[_0x5c8427(0x160)]=_0x1a6086,this[_0x5c8427(0x175)]=_0x4ada3b,this[_0x5c8427(0x187)]=!!_0x4b877a,this[_0x5c8427(0x19c)]=_0x36f9bf,this[_0x5c8427(0x170)]=new _0x3c9b1d(),this[_0x5c8427(0x177)]=new _0x2e6e50(),this[_0x5c8427(0x182)]=_0x5517ac(_0x55f320||''),this[_0x5c8427(0x180)](_0x5c8427(0x167),_0x5e1c60),this['on'](_0x5c8427(0x16e),()=>{const _0x419b5d=_0x5c8427;this[_0x419b5d(0x191)]();}),this[_0x5c8427(0x180)](_0x5c8427(0x155),_0xac126);}[_0x5a6a09(0x174)](_0x397f73){const _0x32a7a5=_0x5a6a09;this[_0x32a7a5(0x180)](_0x32a7a5(0x155),this[_0x32a7a5(0x155)]+_0x397f73);}[_0x5a6a09(0x19e)](){const _0x585d70=_0x5a6a09;this[_0x585d70(0x167)]||(this[_0x585d70(0x180)](_0x585d70(0x167),!0x0),this[_0x585d70(0x191)]());}[_0x5a6a09(0x195)](){const _0x46319a=_0x5a6a09;this[_0x46319a(0x171)]();}[_0x5a6a09(0x192)](_0x450d6a,_0x31f37b){const _0x328456=_0x5a6a09;this[_0x328456(0x16d)][_0x450d6a][_0x328456(0x15f)]=_0x31f37b,this[_0x328456(0x198)](_0x328456(0x179),{'reply':this,'index':_0x450d6a,'state':_0x31f37b});}[_0x5a6a09(0x18f)]({showDiff:_0x585ecc,groupIndex:_0x244989}){const _0xb2ff02=_0x5a6a09;if(!this[_0xb2ff02(0x19c)])throw new _0x18f3d3(_0xb2ff02(0x18b),null,{'aiReply':this});const _0x32d554=this[_0xb2ff02(0x1a4)](_0x585ecc,_0x244989);if(_0x32d554)return _0x32d554;let _0x7d9945=[];if(void 0x0===_0x244989)_0x7d9945=this[_0xb2ff02(0x16d)];else{const _0x363259=this[_0xb2ff02(0x16d)][_0xb2ff02(0x184)](({index:_0x33fbd2})=>_0x33fbd2===_0x244989);if(!_0x363259)throw new _0x18f3d3(_0xb2ff02(0x18c),null,{'aiReply':this,'groupIndex':_0x244989});_0x7d9945=[_0x363259];}const _0x460cdc=_0x1b12f1({'editor':this[_0xb2ff02(0x19c)],'showDiff':_0x585ecc,'changeGroups':_0x7d9945,'documentContextContent':this[_0xb2ff02(0x182)]});return this[_0xb2ff02(0x17b)](_0x585ecc,_0x460cdc),_0x460cdc;}[_0x5a6a09(0x1a4)](_0x5e1942,_0x15d655){const _0x5b95e1=_0x5a6a09,_0x225a0d=_0x5e1942?_0x5b95e1(0x189):_0x5b95e1(0x194);if(!this[_0x5b95e1(0x173)][_0x225a0d][_0x5b95e1(0x181)])return null;const _0x29e111=this[_0x5b95e1(0x173)][_0x225a0d];if(void 0x0===_0x15d655)return _0x5a67e4(_0x29e111);{const _0x2023fd=_0x29e111[_0x5b95e1(0x184)](({index:_0x395b0f})=>_0x395b0f===_0x15d655);if(_0x2023fd)return[_0x5a67e4(_0x2023fd)];}return null;}[_0x5a6a09(0x17b)](_0x226b9e,_0x5bbbd6){const _0x4251cf=_0x5a6a09,_0x262c1b=_0x226b9e?_0x4251cf(0x189):_0x4251cf(0x194);_0x5bbbd6[_0x4251cf(0x19f)](_0x5c9bd6=>{const _0x388c80=_0x4251cf,_0x11fcf4=this[_0x388c80(0x173)][_0x262c1b],_0x566bfa=_0x11fcf4[_0x388c80(0x184)](({index:_0x550ab2})=>_0x550ab2===_0x5c9bd6[_0x388c80(0x178)]);if(_0x566bfa){const _0x43e060=_0x11fcf4[_0x388c80(0x157)](_0x566bfa);_0x11fcf4[_0x388c80(0x1a5)](_0x43e060,0x1,_0x5c9bd6);}else _0x11fcf4[_0x388c80(0x1a2)](_0x5c9bd6);});}[_0x5a6a09(0x191)](){const _0x413220=_0x5a6a09;if(_0x413220(0x1a3)===this[_0x413220(0x175)]){this[_0x413220(0x15c)]=this[_0x413220(0x170)][_0x413220(0x186)](this[_0x413220(0x155)]);const _0x17ea77=this[_0x413220(0x16d)];this[_0x413220(0x158)]();const _0x108ef4=this[_0x413220(0x166)](_0x17ea77,this[_0x413220(0x16d)]);(_0x108ef4[_0x413220(0x181)]||this[_0x413220(0x167)])&&(this[_0x413220(0x198)](_0x413220(0x162),this,_0x108ef4),this[_0x413220(0x173)][_0x413220(0x189)][_0x413220(0x181)]=this[_0x413220(0x173)][_0x413220(0x194)][_0x413220(0x181)]=0x0);}else this[_0x413220(0x15c)]=this[_0x413220(0x170)][_0x413220(0x156)](this[_0x413220(0x155)]),this[_0x413220(0x198)](_0x413220(0x162),this);}[_0x5a6a09(0x166)](_0x200683,_0x135769){const _0x4fd1a0=_0x5a6a09,_0x13102c=[];for(const _0x1b5bb4 of _0x135769){const _0x14208f=_0x200683[_0x1b5bb4[_0x4fd1a0(0x178)]];_0x14208f?_0x14208f[_0x4fd1a0(0x199)][_0x4fd1a0(0x181)]!==_0x1b5bb4[_0x4fd1a0(0x199)][_0x4fd1a0(0x181)]?_0x13102c[_0x4fd1a0(0x1a2)](_0x1b5bb4):_0x14208f[_0x4fd1a0(0x199)][_0x4fd1a0(0x19f)]((_0x2b6f37,_0x14eaaf)=>{const _0x1a93e3=_0x4fd1a0,_0x2cd593=_0x1b5bb4[_0x1a93e3(0x199)][_0x14eaaf];_0x2b6f37['id']!==_0x2cd593['id']&&_0x13102c[_0x1a93e3(0x1a2)](_0x1b5bb4);}):_0x13102c[_0x4fd1a0(0x1a2)](_0x1b5bb4);}return _0x13102c;}[_0x5a6a09(0x158)](){const _0x27a3c6=_0x5a6a09,_0x101079=new _0x111c23('p',{},[new _0x111c23(_0x27a3c6(0x1a0),{'style':_0x27a3c6(0x15e)},[new _0x2fce5f(_0x5e143f(this[_0x27a3c6(0x19c)][_0x27a3c6(0x16c)],_0x27a3c6(0x183)))])]),_0x585f53=this[_0x27a3c6(0x177)][_0x27a3c6(0x164)](this[_0x27a3c6(0x15c)],this[_0x27a3c6(0x182)][_0x27a3c6(0x17e)](!0x0),{'markUnstableElements':!this[_0x27a3c6(0x167)],'replaceRemovedWith':_0x101079,'cutAfterLastChange':!this[_0x27a3c6(0x167)]});if(!_0x585f53[_0x27a3c6(0x19d)][_0x27a3c6(0x181)]&&!this[_0x27a3c6(0x167)])return;this[_0x27a3c6(0x161)]=_0x585f53[_0x27a3c6(0x15c)];let _0x5c2e20=[];if(_0x1de8a3(_0x14a145=>{const _0x3d05cb=_0x27a3c6,_0x4d7017=_0x569a87(_0x14a145,_0x3d05cb(0x17c));if(!_0x4d7017||!_0x1cc961(_0x4d7017))return!0x1;const _0x5cc480=[_0x14a145,..._0x4d101c(_0x14a145)]['at'](-0x2);if(_0x14a145!=_0x5cc480){const _0x385bec=_0x569a87(_0x5cc480,_0x3d05cb(0x17c));_0x1cc961(_0x385bec)||(_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x5cc480,'id':_0x385bec,'type':_0x3d05cb(0x16b)}),_0x585f53[_0x3d05cb(0x19d)][_0x3d05cb(0x1a2)](_0x385bec));}else _0x585f53[_0x3d05cb(0x19d)][_0x3d05cb(0x172)](_0x4d7017)?_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x14a145,'type':_0x3d05cb(0x16b),'id':_0x4d7017}):_0x585f53[_0x3d05cb(0x1a6)][_0x3d05cb(0x172)](_0x4d7017)?_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x14a145,'type':_0x3d05cb(0x17d),'id':_0x4d7017,'anchorId':_0x569a87(_0x14a145[_0x3d05cb(0x169)],_0x3d05cb(0x17c))}):_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x14a145,'type':_0x3d05cb(0x188),'id':_0x4d7017});return!0x0;},this[_0x27a3c6(0x161)]),_0x5c2e20=_0x5c2e20[_0x27a3c6(0x17f)](({node:_0x2a9b94})=>[..._0x4d101c(_0x2a9b94),_0x2a9b94][_0x27a3c6(0x196)](_0x348ecd=>!_0x569a87(_0x348ecd,_0x27a3c6(0x15a)))),0x0==_0x5c2e20[_0x27a3c6(0x181)])return;const _0x153f7b=[[_0x5c2e20[0x0]]];for(let _0x3624f9=0x1;_0x3624f9<_0x5c2e20[_0x27a3c6(0x181)];_0x3624f9++){const _0x525ab4=_0x153f7b[_0x153f7b[_0x27a3c6(0x181)]-0x1],_0x331820=_0x525ab4[_0x525ab4[_0x27a3c6(0x181)]-0x1];_0x5c2e20[_0x3624f9][_0x27a3c6(0x1a1)][_0x27a3c6(0x169)]==_0x331820[_0x27a3c6(0x1a1)]&&_0x27a3c6(0x16b)!=_0x5c2e20[_0x3624f9][_0x27a3c6(0x175)]&&_0x27a3c6(0x16b)!=_0x331820[_0x27a3c6(0x175)]?_0x525ab4[_0x27a3c6(0x1a2)](_0x5c2e20[_0x3624f9]):_0x153f7b[_0x27a3c6(0x1a2)]([_0x5c2e20[_0x3624f9]]);}for(const _0x3e9577 of _0x153f7b){const _0x473003=_0x3e9577[0x0],_0x471709=_0x3e9577[_0x3e9577[_0x27a3c6(0x181)]-0x1],_0x43a93b=_0x3bdd7f(_0x473003[_0x27a3c6(0x1a1)][_0x27a3c6(0x169)]);_0x43a93b&&_0x3e9577[_0x27a3c6(0x176)](_0x43a93b);const _0x46f7bf=_0x3bdd7f(_0x471709[_0x27a3c6(0x1a1)][_0x27a3c6(0x193)]);_0x46f7bf&&_0x3e9577[_0x27a3c6(0x1a2)](_0x46f7bf);}function _0x1cc961(_0x25b024){const _0x341648=_0x27a3c6;return _0x585f53[_0x341648(0x19d)][_0x341648(0x172)](_0x25b024)||_0x585f53[_0x341648(0x1a6)][_0x341648(0x172)](_0x25b024)||_0x585f53[_0x341648(0x16f)][_0x341648(0x172)](_0x25b024);}function _0x3bdd7f(_0x57817d){const _0x2ce1f4=_0x27a3c6;if(_0x57817d&&_0x569a87(_0x57817d,_0x2ce1f4(0x17c))&&!_0x569a87(_0x57817d,_0x2ce1f4(0x15a))){const _0x3b9d3d=_0x569a87(_0x57817d,_0x2ce1f4(0x17c));if(!_0x1cc961(_0x3b9d3d))return{'node':_0x57817d,'type':_0x2ce1f4(0x18d),'id':_0x3b9d3d};}return null;}this[_0x27a3c6(0x16d)]=_0x153f7b[_0x27a3c6(0x165)]((_0x5701f4,_0x1d363b)=>({'changes':_0x5701f4,'state':_0x27a3c6(0x168),'index':_0x1d363b}));}}function _0x502e(_0x395e94,_0x442923){const _0x40749d=_0x4074();return _0x502e=function(_0x502e8a,_0xdea561){_0x502e8a=_0x502e8a-0x155;let _0x54f79c=_0x40749d[_0x502e8a];return _0x54f79c;},_0x502e(_0x395e94,_0x442923);}export function isValidReplyType(_0x2b93d2){const _0x180d1f=_0x5a6a09;return Object[_0x180d1f(0x197)](AI_REPLY_TYPES)[_0x180d1f(0x172)](_0x2b93d2);}export function isIgnoredReplyType(_0x53e842){const _0x3dc555=_0x5a6a09;return AI_REPLY_TYPES_IGNORED[_0x3dc555(0x172)](_0x53e842);}function _0x4074(){const _0x4ab055=['find','source','parseAndNormalizeHTML','areActionsDisabled','removed','withDiff','8455974JtLhty','ai-get-editor-from-context-no-editor','ai-reply-get-content-parts-group-not-found','context','3419140ZgJxdy','getContentParts','conversation-title','onContentChange','setChangeGroupState','nextSibling','withoutDiff','destroy','every','values','fire','changes','sources','3114446MRETjZ','editor','modifiedNodeIds','done','forEach','span','node','push','modification-delta','_getCachedContentParts','splice','newNodeIds','2871988gQqNWo','content','convertMarkdownToHTML','indexOf','updateChangeGroups','2129388gYveAM','data-unstable','reasoning','parsedContent','web-search','color:\x20#808080;\x20font-style:\x20italic','state','interactionId','parsedMergedContent','replyContentUpdated','29118439xWwQlc','merge','map','_getDifferentChangeGroups','isDone','pending','previousSibling','text-delta','modified','locale','changeGroups','change:content','removedNodeIds','aiResponseParser','stopListening','includes','cachedSuggestionContentParts','appendContent','type','unshift','aiResponseApplier','index','replyChangeGroupStateUpdated','1286533xXPBCY','_setCachedContentParts','data-id','new','cloneNode','filter','set','length','documentContextContent','AI_SUGGESTION_CONTENT_PART_REMOVED'];_0x4074=function(){return _0x4ab055;};return _0x4074();}export function isReplyTitleType(_0x3d78cb){return _0x3d78cb===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2dc516){const _0x45554c=_0x5a6a09;return _0x45554c(0x185)===_0x2dc516;}
|
|
23
|
+
const _0x1ae9d4=_0x502e;(function(_0x50eb8c,_0x3019f0){const _0x3377fa=_0x502e,_0x4007ba=_0x50eb8c();while(!![]){try{const _0x1a7c49=parseInt(_0x3377fa(0x1fa))/0x1*(parseInt(_0x3377fa(0x1e6))/0x2)+parseInt(_0x3377fa(0x20c))/0x3+-parseInt(_0x3377fa(0x1e4))/0x4+parseInt(_0x3377fa(0x1f2))/0x5+-parseInt(_0x3377fa(0x1fc))/0x6*(parseInt(_0x3377fa(0x1d2))/0x7)+parseInt(_0x3377fa(0x201))/0x8*(parseInt(_0x3377fa(0x1e8))/0x9)+parseInt(_0x3377fa(0x1d6))/0xa*(-parseInt(_0x3377fa(0x20e))/0xb);if(_0x1a7c49===_0x3019f0)break;else _0x4007ba['push'](_0x4007ba['shift']());}catch(_0x48b1b8){_0x4007ba['push'](_0x4007ba['shift']());}}}(_0x3b40,0xf0b12));function _0x3b40(){const _0x5003aa=['context','editor','unshift','every','forEach','modification-delta','stopListening','source','AI_SUGGESTION_CONTENT_PART_REMOVED','withDiff','change:content','reasoning','fire','conversation-title','merge','_getDifferentChangeGroups','aiResponseParser','7WxxHiE','_getCachedContentParts','isDone','removedNodeIds','29880gdFOvx','locale','_setCachedContentParts','removed','setChangeGroupState','data-unstable','ai-reply-get-content-parts-group-not-found','destroy','getContentParts','ai-get-editor-from-context-no-editor','appendContent','done','type','interactionId','1129304KUkyOu','map','8JUqkVa','parsedContent','17728398dphWVy','changes','filter','replyContentUpdated','aiResponseApplier','values','areActionsDisabled','newNodeIds','node','includes','2854815WStkwy','index','convertMarkdownToHTML','length','replyChangeGroupStateUpdated','set','documentContextContent','span','394343ZBxclp','withoutDiff','52926nlBJSq','web-search','modified','cloneNode','parsedMergedContent','8msQAnv','text-delta','content','previousSibling','find','updateChangeGroups','push','data-id','cachedSuggestionContentParts','sources','new','4644708BPjNxs','indexOf','16159sceZNM','modifiedNodeIds','changeGroups','pending','splice','onContentChange','state','color:\x20#808080;\x20font-style:\x20italic','nextSibling','parseAndNormalizeHTML'];_0x3b40=function(){return _0x5003aa;};return _0x3b40();}import{CKEditorError as _0x32da5e,ObservableMixin as _0x32ad48,uid as _0x279237}from'ckeditor5/src/utils.js';import{Element as _0x5c5c2f,findAll as _0x18311e,getAttribute as _0x4189e2,getParents as _0x1673c9,Document as _0x395878,parse as _0x1cdcaf,Text as _0x529011}from'../utils/htmlparser.js';import{AIResponseParser as _0x4dbfa3}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x391f34}from'../pipeline/airesponseapplier.js';function _0x502e(_0x5cea80,_0x1ab4bb){const _0x3b409d=_0x3b40();return _0x502e=function(_0x502e85,_0x3e5ebe){_0x502e85=_0x502e85-0x1c9;let _0x18055e=_0x3b409d[_0x502e85];return _0x18055e;},_0x502e(_0x5cea80,_0x1ab4bb);}import{getSuggestionPartsFromReply as _0x75cf6d}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x34d524}from'../utils/common-translations.js';import{cloneDeep as _0x218d2b}from'es-toolkit';export const AI_REPLY_TYPES=[_0x1ae9d4(0x21d),_0x1ae9d4(0x202),_0x1ae9d4(0x1fd),_0x1ae9d4(0x1cc)];export const AI_REPLY_TYPES_IGNORED=[_0x1ae9d4(0x1ce)];export const AI_REPLY_TITLE_TYPE=_0x1ae9d4(0x1ce);export class AIReply extends _0x32ad48(){['id'];[_0x1ae9d4(0x1e3)];[_0x1ae9d4(0x1e2)];[_0x1ae9d4(0x20a)]=[];[_0x1ae9d4(0x1e7)]=new _0x395878([]);[_0x1ae9d4(0x200)]=new _0x395878([]);[_0x1ae9d4(0x210)]=[];[_0x1ae9d4(0x1ee)]=!0x1;[_0x1ae9d4(0x1f8)];[_0x1ae9d4(0x1d1)];[_0x1ae9d4(0x1ec)];[_0x1ae9d4(0x219)];[_0x1ae9d4(0x209)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x132310,content:_0x30ca75='',isDone:_0x10d869=!0x1,interactionId:_0x2f015a,areActionsDisabled:_0x8e0592,documentContextContent:_0x9e4be2,editor:_0x15a8fd,id:_0x42245c}){const _0x445163=_0x1ae9d4;super(),this['id']=_0x42245c||_0x279237(),this[_0x445163(0x1e3)]=_0x2f015a,this[_0x445163(0x1e2)]=_0x132310,this[_0x445163(0x1ee)]=!!_0x8e0592,this[_0x445163(0x219)]=_0x15a8fd,this[_0x445163(0x1d1)]=new _0x4dbfa3(),this[_0x445163(0x1ec)]=new _0x391f34(),this[_0x445163(0x1f8)]=_0x1cdcaf(_0x9e4be2||''),this[_0x445163(0x1f7)](_0x445163(0x1d4),_0x10d869),this['on'](_0x445163(0x1cb),()=>{const _0x3faaa8=_0x445163;this[_0x3faaa8(0x213)]();}),this[_0x445163(0x1f7)](_0x445163(0x203),_0x30ca75);}[_0x1ae9d4(0x1e0)](_0xc59182){const _0x588544=_0x1ae9d4;this[_0x588544(0x1f7)](_0x588544(0x203),this[_0x588544(0x203)]+_0xc59182);}[_0x1ae9d4(0x1e1)](){const _0x795f01=_0x1ae9d4;this[_0x795f01(0x1d4)]||(this[_0x795f01(0x1f7)](_0x795f01(0x1d4),!0x0),this[_0x795f01(0x213)]());}[_0x1ae9d4(0x1dd)](){const _0x1bd8ee=_0x1ae9d4;this[_0x1bd8ee(0x21e)]();}[_0x1ae9d4(0x1da)](_0x5baf62,_0x317eb2){const _0x5e92cb=_0x1ae9d4;this[_0x5e92cb(0x210)][_0x5baf62][_0x5e92cb(0x214)]=_0x317eb2,this[_0x5e92cb(0x1cd)](_0x5e92cb(0x1f6),{'reply':this,'index':_0x5baf62,'state':_0x317eb2});}[_0x1ae9d4(0x1de)]({showDiff:_0x3e42db,groupIndex:_0x10ce8f}){const _0x598a55=_0x1ae9d4;if(!this[_0x598a55(0x219)])throw new _0x32da5e(_0x598a55(0x1df),null,{'aiReply':this});const _0x589e84=this[_0x598a55(0x1d3)](_0x3e42db,_0x10ce8f);if(_0x589e84)return _0x589e84;let _0x3a4faf=[];if(void 0x0===_0x10ce8f)_0x3a4faf=this[_0x598a55(0x210)];else{const _0x172f47=this[_0x598a55(0x210)][_0x598a55(0x205)](({index:_0x528132})=>_0x528132===_0x10ce8f);if(!_0x172f47)throw new _0x32da5e(_0x598a55(0x1dc),null,{'aiReply':this,'groupIndex':_0x10ce8f});_0x3a4faf=[_0x172f47];}const _0x16536a=_0x75cf6d({'editor':this[_0x598a55(0x219)],'showDiff':_0x3e42db,'changeGroups':_0x3a4faf,'documentContextContent':this[_0x598a55(0x1f8)]});return this[_0x598a55(0x1d8)](_0x3e42db,_0x16536a),_0x16536a;}[_0x1ae9d4(0x1d3)](_0x5a6a84,_0x55a910){const _0x157a95=_0x1ae9d4,_0x2c3a40=_0x5a6a84?_0x157a95(0x1ca):_0x157a95(0x1fb);if(!this[_0x157a95(0x209)][_0x2c3a40][_0x157a95(0x1f5)])return null;const _0x14379c=this[_0x157a95(0x209)][_0x2c3a40];if(void 0x0===_0x55a910)return _0x218d2b(_0x14379c);{const _0x1aeb28=_0x14379c[_0x157a95(0x205)](({index:_0x587894})=>_0x587894===_0x55a910);if(_0x1aeb28)return[_0x218d2b(_0x1aeb28)];}return null;}[_0x1ae9d4(0x1d8)](_0x586f8b,_0x3f89e2){const _0x130753=_0x1ae9d4,_0x5a1b29=_0x586f8b?_0x130753(0x1ca):_0x130753(0x1fb);_0x3f89e2[_0x130753(0x21c)](_0x38dddb=>{const _0x4b3c72=_0x130753,_0x4a7962=this[_0x4b3c72(0x209)][_0x5a1b29],_0x42a704=_0x4a7962[_0x4b3c72(0x205)](({index:_0x2040ef})=>_0x2040ef===_0x38dddb[_0x4b3c72(0x1f3)]);if(_0x42a704){const _0x3a3179=_0x4a7962[_0x4b3c72(0x20d)](_0x42a704);_0x4a7962[_0x4b3c72(0x212)](_0x3a3179,0x1,_0x38dddb);}else _0x4a7962[_0x4b3c72(0x207)](_0x38dddb);});}[_0x1ae9d4(0x213)](){const _0x277ae7=_0x1ae9d4;if(_0x277ae7(0x21d)===this[_0x277ae7(0x1e2)]){this[_0x277ae7(0x1e7)]=this[_0x277ae7(0x1d1)][_0x277ae7(0x217)](this[_0x277ae7(0x203)]);const _0x1c1f09=this[_0x277ae7(0x210)];this[_0x277ae7(0x206)]();const _0x37641b=this[_0x277ae7(0x1d0)](_0x1c1f09,this[_0x277ae7(0x210)]);(_0x37641b[_0x277ae7(0x1f5)]||this[_0x277ae7(0x1d4)])&&(this[_0x277ae7(0x1cd)](_0x277ae7(0x1eb),this,_0x37641b),this[_0x277ae7(0x209)][_0x277ae7(0x1ca)][_0x277ae7(0x1f5)]=this[_0x277ae7(0x209)][_0x277ae7(0x1fb)][_0x277ae7(0x1f5)]=0x0);}else this[_0x277ae7(0x1e7)]=this[_0x277ae7(0x1d1)][_0x277ae7(0x1f4)](this[_0x277ae7(0x203)]),this[_0x277ae7(0x1cd)](_0x277ae7(0x1eb),this);}[_0x1ae9d4(0x1d0)](_0x453898,_0x4f113c){const _0x26d0b8=_0x1ae9d4,_0x4376f5=[];for(const _0x4d0492 of _0x4f113c){const _0x3cf476=_0x453898[_0x4d0492[_0x26d0b8(0x1f3)]];_0x3cf476?_0x3cf476[_0x26d0b8(0x1e9)][_0x26d0b8(0x1f5)]!==_0x4d0492[_0x26d0b8(0x1e9)][_0x26d0b8(0x1f5)]?_0x4376f5[_0x26d0b8(0x207)](_0x4d0492):_0x3cf476[_0x26d0b8(0x1e9)][_0x26d0b8(0x21c)]((_0x36f7cc,_0x419acf)=>{const _0x59dafc=_0x26d0b8,_0x5dc347=_0x4d0492[_0x59dafc(0x1e9)][_0x419acf];_0x36f7cc['id']!==_0x5dc347['id']&&_0x4376f5[_0x59dafc(0x207)](_0x4d0492);}):_0x4376f5[_0x26d0b8(0x207)](_0x4d0492);}return _0x4376f5;}[_0x1ae9d4(0x206)](){const _0x459068=_0x1ae9d4,_0x53e927=new _0x5c5c2f('p',{},[new _0x5c5c2f(_0x459068(0x1f9),{'style':_0x459068(0x215)},[new _0x529011(_0x34d524(this[_0x459068(0x219)][_0x459068(0x1d7)],_0x459068(0x1c9)))])]),_0x248971=this[_0x459068(0x1ec)][_0x459068(0x1cf)](this[_0x459068(0x1e7)],this[_0x459068(0x1f8)][_0x459068(0x1ff)](!0x0),{'markUnstableElements':!this[_0x459068(0x1d4)],'replaceRemovedWith':_0x53e927,'cutAfterLastChange':!this[_0x459068(0x1d4)]});if(!_0x248971[_0x459068(0x20f)][_0x459068(0x1f5)]&&!this[_0x459068(0x1d4)])return;this[_0x459068(0x200)]=_0x248971[_0x459068(0x1e7)];let _0x50f44c=[];if(_0x18311e(_0x2be8a3=>{const _0x563803=_0x459068,_0x59a265=_0x4189e2(_0x2be8a3,_0x563803(0x208));if(!_0x59a265||!_0x3304ad(_0x59a265))return!0x1;const _0x38eaa0=[_0x2be8a3,..._0x1673c9(_0x2be8a3)]['at'](-0x2);if(_0x2be8a3!=_0x38eaa0){const _0x3e35cc=_0x4189e2(_0x38eaa0,_0x563803(0x208));_0x3304ad(_0x3e35cc)||(_0x50f44c[_0x563803(0x207)]({'node':_0x38eaa0,'id':_0x3e35cc,'type':_0x563803(0x1fe)}),_0x248971[_0x563803(0x20f)][_0x563803(0x207)](_0x3e35cc));}else _0x248971[_0x563803(0x20f)][_0x563803(0x1f1)](_0x59a265)?_0x50f44c[_0x563803(0x207)]({'node':_0x2be8a3,'type':_0x563803(0x1fe),'id':_0x59a265}):_0x248971[_0x563803(0x1ef)][_0x563803(0x1f1)](_0x59a265)?_0x50f44c[_0x563803(0x207)]({'node':_0x2be8a3,'type':_0x563803(0x20b),'id':_0x59a265,'anchorId':_0x4189e2(_0x2be8a3[_0x563803(0x204)],_0x563803(0x208))}):_0x50f44c[_0x563803(0x207)]({'node':_0x2be8a3,'type':_0x563803(0x1d9),'id':_0x59a265});return!0x0;},this[_0x459068(0x200)]),_0x50f44c=_0x50f44c[_0x459068(0x1ea)](({node:_0x4256e9})=>[..._0x1673c9(_0x4256e9),_0x4256e9][_0x459068(0x21b)](_0x26a67d=>!_0x4189e2(_0x26a67d,_0x459068(0x1db)))),0x0==_0x50f44c[_0x459068(0x1f5)])return;const _0x5b81d4=[[_0x50f44c[0x0]]];for(let _0x5204f6=0x1;_0x5204f6<_0x50f44c[_0x459068(0x1f5)];_0x5204f6++){const _0x1e488f=_0x5b81d4[_0x5b81d4[_0x459068(0x1f5)]-0x1],_0x2dfff5=_0x1e488f[_0x1e488f[_0x459068(0x1f5)]-0x1];_0x50f44c[_0x5204f6][_0x459068(0x1f0)][_0x459068(0x204)]==_0x2dfff5[_0x459068(0x1f0)]&&_0x459068(0x1fe)!=_0x50f44c[_0x5204f6][_0x459068(0x1e2)]&&_0x459068(0x1fe)!=_0x2dfff5[_0x459068(0x1e2)]?_0x1e488f[_0x459068(0x207)](_0x50f44c[_0x5204f6]):_0x5b81d4[_0x459068(0x207)]([_0x50f44c[_0x5204f6]]);}for(const _0x269c59 of _0x5b81d4){const _0x39ec4d=_0x269c59[0x0],_0x102bed=_0x269c59[_0x269c59[_0x459068(0x1f5)]-0x1],_0x7d0af4=_0x427f8d(_0x39ec4d[_0x459068(0x1f0)][_0x459068(0x204)]);_0x7d0af4&&_0x269c59[_0x459068(0x21a)](_0x7d0af4);const _0x4168fb=_0x427f8d(_0x102bed[_0x459068(0x1f0)][_0x459068(0x216)]);_0x4168fb&&_0x269c59[_0x459068(0x207)](_0x4168fb);}function _0x3304ad(_0x2cc583){const _0x34d048=_0x459068;return _0x248971[_0x34d048(0x20f)][_0x34d048(0x1f1)](_0x2cc583)||_0x248971[_0x34d048(0x1ef)][_0x34d048(0x1f1)](_0x2cc583)||_0x248971[_0x34d048(0x1d5)][_0x34d048(0x1f1)](_0x2cc583);}function _0x427f8d(_0xe813ed){const _0x484fa3=_0x459068;if(_0xe813ed&&_0x4189e2(_0xe813ed,_0x484fa3(0x208))&&!_0x4189e2(_0xe813ed,_0x484fa3(0x1db))){const _0x398112=_0x4189e2(_0xe813ed,_0x484fa3(0x208));if(!_0x3304ad(_0x398112))return{'node':_0xe813ed,'type':_0x484fa3(0x218),'id':_0x398112};}return null;}this[_0x459068(0x210)]=_0x5b81d4[_0x459068(0x1e5)]((_0x50fafa,_0x1f6969)=>({'changes':_0x50fafa,'state':_0x459068(0x211),'index':_0x1f6969}));}}export function isValidReplyType(_0x58f3aa){const _0x440930=_0x1ae9d4;return Object[_0x440930(0x1ed)](AI_REPLY_TYPES)[_0x440930(0x1f1)](_0x58f3aa);}export function isIgnoredReplyType(_0x45c472){const _0x5c4047=_0x1ae9d4;return AI_REPLY_TYPES_IGNORED[_0x5c4047(0x1f1)](_0x45c472);}export function isReplyTitleType(_0xae83db){return _0xae83db===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x443725){const _0x508a11=_0x1ae9d4;return _0x508a11(0x21f)===_0x443725;}
|