@ckeditor/ckeditor5-ai 47.3.0-alpha.5 → 47.3.0-alpha.6
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/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- 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/legacyerrors.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/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.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/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/aicontext.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/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.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/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.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
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3638f2=_0x4627;(function(_0x1a6d39,_0x4f3e6b){const _0x3de284=_0x4627,_0x5ef57a=_0x1a6d39();while(!![]){try{const _0x548e64=-parseInt(_0x3de284(0x1b6))/0x1+-parseInt(_0x3de284(0x1b4))/0x2*(-parseInt(_0x3de284(0x1d4))/0x3)+parseInt(_0x3de284(0x199))/0x4*(-parseInt(_0x3de284(0x1e2))/0x5)+-parseInt(_0x3de284(0x1c3))/0x6+-parseInt(_0x3de284(0x1d7))/0x7*(parseInt(_0x3de284(0x1ba))/0x8)+parseInt(_0x3de284(0x1cd))/0x9+parseInt(_0x3de284(0x19c))/0xa;if(_0x548e64===_0x4f3e6b)break;else _0x5ef57a['push'](_0x5ef57a['shift']());}catch(_0x4e9c92){_0x5ef57a['push'](_0x5ef57a['shift']());}}}(_0x4c2d,0x4cbb3));import{View as _0x150ad0,SearchTextView as _0x3b2dad,FormHeaderView as _0x5b2a9d,ButtonView as _0x2c6ab4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xd1706a,IconCancel as _0x44d81b,IconPlus as _0x548678}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2d33a9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x3d0584}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2490ad}from'./aichathistorylistitemview.js';function _0x4627(_0x4665f6,_0x2823b2){const _0x4c2de5=_0x4c2d();return _0x4627=function(_0x462753,_0x1ea645){_0x462753=_0x462753-0x189;let _0xdeb31c=_0x4c2de5[_0x462753];return _0xdeb31c;},_0x4627(_0x4665f6,_0x2823b2);}function _0x4c2d(){const _0x486162=['AI_CHAT_HISTORY_EMPTY_MESSAGE','_refreshSearch','setTemplate','1085LTvXzt','AI_CHAT_HISTORY_SEARCH_LABEL','bindTemplate','mainErrorView','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','isLoading','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','ck-ai-chat-history__content','updateTitle','removeHistoryItem','isMaximized','ck-rounded-corners','fire','remove','ck-ai-chat-history','getItem','element','isEmptyViewVisible','11036EAyFkB','AI_CHAT_LABEL_NEW_CHAT','children','9269680DMULec','updateItemLoadingState','errorMessage','ck-ai-notification_error__dismiss-button','isVisible','itemsViews','openChat','title','updateLoadingState','clear','some','push','AI_CHAT_HISTORY_HEADING','queryView','aiHistory','searchView','addMany','change:errorMessage','ck-ai-chat-history__empty','emptyView','sectionsView','change:isLoading','isMainErrorViewVisible','resizeButton','4aKvZZY','set','397142mFfFis','ck-ai-chat__start-conversation','ck-ai-notification_error','_createListItemViews','24GpHMuk','value','_updateViewVisibility','fieldView','updateItemTitle','splice','div','locale','ltr','3317298swSJOI','removeItem','sections','_createErrorView','isSearchViewVisible','_createSearchView','length','items','search','change:hasItems','4847472vkeKkf','_createSkeletonView','ck-ai-chat-history__empty-message','hasItems','ck-ai-notification','delegate','indexOf','880254ymaQIx','updateHistoryItemsWithCategories','add','441917nacfug','bind','skeletonView','render','execute','extendTemplate','_createEmptyStateView','ck-ai-header\x20ck-ai-header_history'];_0x4c2d=function(){return _0x486162;};return _0x4c2d();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1af161}from'../aichathistoryui.js';import{AISkeletonView as _0x2c3e80,SKELETON_DEFINITIONS as _0x14d5c9}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x303b5e}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x639742}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x150ad0{[_0x3638f2(0x1ab)];[_0x3638f2(0x1e5)];[_0x3638f2(0x1d9)];[_0x3638f2(0x1af)];[_0x3638f2(0x1b0)];[_0x3638f2(0x1b3)];constructor(_0x238815,_0x2f8181){const _0x2d7abd=_0x3638f2;super(_0x238815),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x1d0),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x18b),!0x0),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x19e),''),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x191),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x1c7),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x198),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x1b2),!0x1);const _0x41d386=new _0x5b2a9d(_0x238815,{'label':_0x639742(_0x238815,_0x2d7abd(0x1a8)),'icon':_0xd1706a,'class':_0x2d7abd(0x1de)});_0x2f8181&&(this[_0x2d7abd(0x1b3)]=_0x303b5e(_0x238815,this),_0x41d386[_0x2d7abd(0x19b)][_0x2d7abd(0x1d6)](this[_0x2d7abd(0x1b3)])),this[_0x2d7abd(0x1b0)]=new _0x2d33a9(_0x238815,[]),this[_0x2d7abd(0x1b0)][_0x2d7abd(0x1d2)](..._0x1af161)['to'](this),this[_0x2d7abd(0x1e5)]=this[_0x2d7abd(0x1c6)](),this[_0x2d7abd(0x1d9)]=this[_0x2d7abd(0x1ce)](),this[_0x2d7abd(0x1af)]=this[_0x2d7abd(0x1dd)](),this[_0x2d7abd(0x1ab)]=this[_0x2d7abd(0x1c8)](),this[_0x2d7abd(0x1e5)][_0x2d7abd(0x1dc)]({'attributes':{'class':[this[_0x2d7abd(0x1e4)]['if'](_0x2d7abd(0x1b2),_0x2d7abd(0x18c),_0x5dd3d2=>!_0x5dd3d2)]}}),this['on'](_0x2d7abd(0x1b1),()=>this[_0x2d7abd(0x1bc)]()),this['on'](_0x2d7abd(0x1cc),()=>this[_0x2d7abd(0x1bc)]()),this['on'](_0x2d7abd(0x1ad),()=>this[_0x2d7abd(0x1bc)]()),this[_0x2d7abd(0x1e1)]({'tag':_0x2d7abd(0x1c0),'attributes':{'class':['ck',_0x2d7abd(0x189),_0x2d7abd(0x195),_0x2d7abd(0x192)],'dir':_0x2d7abd(0x1c2)},'children':[_0x41d386,{'tag':_0x2d7abd(0x1c0),'attributes':{'class':[_0x2d7abd(0x18e)]},'children':[this[_0x2d7abd(0x1d9)],this[_0x2d7abd(0x1e5)],this[_0x2d7abd(0x1af)],this[_0x2d7abd(0x1ab)]]}]});}[_0x3638f2(0x1bc)](){const _0x17ee5d=_0x3638f2;this[_0x17ee5d(0x1c7)]=!this[_0x17ee5d(0x18b)]&&this[_0x17ee5d(0x1d0)],this[_0x17ee5d(0x198)]=!this[_0x17ee5d(0x18b)]&&!this[_0x17ee5d(0x1d0)]&&!this[_0x17ee5d(0x19e)],this[_0x17ee5d(0x1b2)]=!this[_0x17ee5d(0x1c7)]&&!!this[_0x17ee5d(0x19e)];}[_0x3638f2(0x1c8)](){const _0x4836c2=_0x3638f2,_0x45fc24=new _0x3b2dad(this[_0x4836c2(0x1c1)],{'filteredView':this[_0x4836c2(0x1b0)],'queryView':{'label':_0x639742(this[_0x4836c2(0x1c1)],_0x4836c2(0x1e3))},'infoView':{'text':{'notFound':{'primary':_0x1294f5=>_0x639742(this[_0x4836c2(0x1c1)],_0x4836c2(0x18a),_0x1294f5),'secondary':_0x639742(this[_0x4836c2(0x1c1)],_0x4836c2(0x18d))}}}}),_0x4ec474=this[_0x4836c2(0x1c6)]();return _0x4ec474[_0x4836c2(0x1dc)]({'attributes':{'class':[this[_0x4836c2(0x1e4)]['if'](_0x4836c2(0x19e),_0x4836c2(0x18c),_0x3cab72=>!_0x3cab72)]}}),_0x45fc24['on'](_0x4836c2(0x1da),()=>{const _0x9a4c72=_0x4836c2;_0x45fc24[_0x9a4c72(0x19b)][_0x9a4c72(0x1d6)](_0x4ec474,0x1);}),_0x45fc24[_0x4836c2(0x1dc)]({'attributes':{'class':[this[_0x4836c2(0x1e4)]['if'](_0x4836c2(0x1c7),_0x4836c2(0x18c),_0x1b6dc4=>!_0x1b6dc4)]}}),_0x45fc24;}[_0x3638f2(0x1ce)](){const _0x278e52=_0x3638f2,_0x184d6d=new _0x2c3e80(this[_0x278e52(0x1c1)],_0x14d5c9[_0x278e52(0x1aa)]);return _0x184d6d[_0x278e52(0x1dc)]({'attributes':{'class':[this[_0x278e52(0x1e4)]['if'](_0x278e52(0x18b),_0x278e52(0x18c),_0x3575a4=>!_0x3575a4)]}}),_0x184d6d;}[_0x3638f2(0x1c6)](){const _0xeae7f0=_0x3638f2,_0xfcd4c6=new _0x150ad0(this[_0xeae7f0(0x1c1)]),_0x210f77=new _0x2c6ab4(this[_0xeae7f0(0x1c1)]);_0x210f77[_0xeae7f0(0x1b5)]({'withText':!0x1,'icon':_0x44d81b,'class':_0xeae7f0(0x19f)}),_0x210f77[_0xeae7f0(0x1d8)](_0xeae7f0(0x1a0))['to'](this,_0xeae7f0(0x1d0),_0x2b17e1=>!!_0x2b17e1),_0x210f77['on'](_0xeae7f0(0x1db),()=>{const _0x1a804f=_0xeae7f0;this[_0x1a804f(0x19e)]='';});const _0xa2e43=this[_0xeae7f0(0x1e4)];return _0xfcd4c6[_0xeae7f0(0x1e1)]({'tag':_0xeae7f0(0x1c0),'attributes':{'class':['ck',_0xeae7f0(0x1d1),_0xeae7f0(0x1b8)]},'children':[{'tag':'p','children':[{'text':_0xa2e43['to'](_0xeae7f0(0x19e))}]},_0x210f77]}),_0xfcd4c6;}[_0x3638f2(0x1dd)](){const _0x2cd046=_0x3638f2,_0x2f5ab9=new _0x2c6ab4(this[_0x2cd046(0x1c1)]);_0x2f5ab9[_0x2cd046(0x1b5)]({'label':_0x639742(this[_0x2cd046(0x1c1)],_0x2cd046(0x19a)),'withText':!0x0,'icon':_0x548678,'class':_0x2cd046(0x1b7)}),_0x2f5ab9['on'](_0x2cd046(0x1db),()=>{const _0x1b1465=_0x2cd046;this[_0x1b1465(0x193)](_0x1b1465(0x1a2));});const _0x5234a5=new _0x150ad0(this[_0x2cd046(0x1c1)]);return _0x5234a5[_0x2cd046(0x1e1)]({'tag':_0x2cd046(0x1c0),'attributes':{'class':[_0x2cd046(0x1ae),this[_0x2cd046(0x1e4)]['if'](_0x2cd046(0x198),_0x2cd046(0x18c),_0x5c25c9=>!_0x5c25c9)]},'children':[{'tag':'p','attributes':{'class':[_0x2cd046(0x1cf)]},'children':[_0x639742(this[_0x2cd046(0x1c1)],_0x2cd046(0x1df))]},_0x2f5ab9]}),_0x5234a5;}[_0x3638f2(0x1b9)](_0x108853,_0x1bdfc2){const _0x505e60=_0x3638f2,_0xb24b7c=[];for(const _0x499759 of _0x108853){const _0x19201f=new _0x2490ad(_0x1bdfc2,_0x499759);_0x19201f[_0x505e60(0x1d2)](..._0x1af161)['to'](this),_0xb24b7c[_0x505e60(0x1a7)](_0x19201f);}return _0xb24b7c;}[_0x3638f2(0x1d5)](_0xb11da0){const _0x5a6346=_0x3638f2,_0x11ea8e=this[_0x5a6346(0x1c1)]||'en',_0x4bc918=[];for(const _0x8861c5 of _0xb11da0){const _0x3df94d=this[_0x5a6346(0x1b9)](_0x8861c5[_0x5a6346(0x1ca)],_0x11ea8e);_0x4bc918[_0x5a6346(0x1a7)](new _0x3d0584(_0x11ea8e,{'title':_0x8861c5[_0x5a6346(0x1a3)],'items':_0x3df94d}));}this[_0x5a6346(0x1b0)][_0x5a6346(0x1c5)]=_0x4bc918,this[_0x5a6346(0x1b0)][_0x5a6346(0x1ca)][_0x5a6346(0x1a5)](),this[_0x5a6346(0x1b0)][_0x5a6346(0x1ca)][_0x5a6346(0x1ac)](_0x4bc918),this[_0x5a6346(0x1d0)]=_0xb11da0[_0x5a6346(0x1a6)](_0x3428fa=>_0x3428fa[_0x5a6346(0x1ca)][_0x5a6346(0x1c9)]>0x0),this[_0x5a6346(0x1e0)]();}[_0x3638f2(0x190)](_0x1b00e5){const _0x508c82=_0x3638f2;for(const _0x398d13 of this[_0x508c82(0x1b0)][_0x508c82(0x1c5)]){const _0x41de29=_0x398d13[_0x508c82(0x196)](_0x1b00e5);if(_0x41de29){if(_0x398d13[_0x508c82(0x1c4)](_0x41de29),0x0===_0x398d13[_0x508c82(0x1a1)][_0x508c82(0x1c9)]){const _0x35ff57=this[_0x508c82(0x1b0)][_0x508c82(0x1c5)][_0x508c82(0x1d3)](_0x398d13);-0x1!==_0x35ff57&&(this[_0x508c82(0x1b0)][_0x508c82(0x1c5)][_0x508c82(0x1bf)](_0x35ff57,0x1),this[_0x508c82(0x1b0)][_0x508c82(0x1ca)][_0x508c82(0x194)](_0x398d13));}this[_0x508c82(0x1d0)]=this[_0x508c82(0x1b0)][_0x508c82(0x1c5)][_0x508c82(0x1c9)]>0x0,this[_0x508c82(0x1e0)]();break;}}}[_0x3638f2(0x1be)](_0x1c1730,_0x509ef4){const _0x1b9db1=_0x3638f2;for(const _0x28fda8 of this[_0x1b9db1(0x1b0)][_0x1b9db1(0x1c5)]){const _0x3c1c49=_0x28fda8[_0x1b9db1(0x196)](_0x1c1730);if(_0x3c1c49){_0x3c1c49[_0x1b9db1(0x18f)](_0x509ef4);break;}}}[_0x3638f2(0x19d)](_0x5af566,_0x3e4e9e,_0x7598cb){const _0x3003c0=_0x3638f2;for(const _0x26f430 of this[_0x3003c0(0x1b0)][_0x3003c0(0x1c5)]){const _0x2b30eb=_0x26f430[_0x3003c0(0x196)](_0x5af566);if(_0x2b30eb){_0x2b30eb[_0x3003c0(0x1a4)](_0x3e4e9e,_0x7598cb);break;}}}[_0x3638f2(0x1e0)](){const _0x2fe395=_0x3638f2;if(this[_0x2fe395(0x1d0)]){const _0x4d0289=this[_0x2fe395(0x1ab)][_0x2fe395(0x1a9)][_0x2fe395(0x1bd)]?.[_0x2fe395(0x197)]?.[_0x2fe395(0x1bb)]||'';this[_0x2fe395(0x1ab)][_0x2fe395(0x1cb)](_0x4d0289);}}}
|
|
23
|
+
const _0x3972de=_0x4bf5;(function(_0x4e9753,_0x2bfb85){const _0x524fce=_0x4bf5,_0x3ba9bd=_0x4e9753();while(!![]){try{const _0x5f4848=parseInt(_0x524fce(0x18f))/0x1*(-parseInt(_0x524fce(0x13c))/0x2)+-parseInt(_0x524fce(0x18b))/0x3+parseInt(_0x524fce(0x175))/0x4*(-parseInt(_0x524fce(0x142))/0x5)+-parseInt(_0x524fce(0x18c))/0x6*(-parseInt(_0x524fce(0x17b))/0x7)+-parseInt(_0x524fce(0x16a))/0x8+parseInt(_0x524fce(0x14b))/0x9+parseInt(_0x524fce(0x18e))/0xa;if(_0x5f4848===_0x2bfb85)break;else _0x3ba9bd['push'](_0x3ba9bd['shift']());}catch(_0x195ca1){_0x3ba9bd['push'](_0x3ba9bd['shift']());}}}(_0x5445,0x31f02));import{View as _0x12bf48,SearchTextView as _0x4d159d,FormHeaderView as _0x479f24,ButtonView as _0x4b5178}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x22e61b,IconCancel as _0x98a183,IconPlus as _0x4e7861}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1ceff2}from'./aichathistorysectionlistview.js';function _0x5445(){const _0x537788=['getItem','ck-ai-notification_error','_createErrorView','_createListItemViews','value','hasItems','ck-ai-chat-history','setTemplate','isSearchViewVisible','ck-ai-chat-history__empty-message','indexOf','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','isEmptyViewVisible','emptyView','aiHistory','extendTemplate','_createSearchView','ck-hidden','some','length','change:hasItems','render','clear','isMainErrorViewVisible','fieldView','AI_CHAT_HISTORY_EMPTY_MESSAGE','title','element','1959016lRqvsP','itemsViews','isMaximized','locale','mainErrorView','ck-rounded-corners','isLoading','delegate','search','skeletonView','ck-ai-chat-history__content','49792BfNlHg','div','updateHistoryItemsWithCategories','items','AI_CHAT_HISTORY_SEARCH_LABEL','isVisible','2236073yiNvGH','sections','addMany','push','_updateViewVisibility','removeItem','resizeButton','children','add','bind','removeHistoryItem','ck-ai-chat__start-conversation','bindTemplate','sectionsView','change:errorMessage','ck-ai-notification_error__dismiss-button','753981OBjPfY','6NQkuSo','AI_CHAT_LABEL_NEW_CHAT','3839440VWgSQG','162082ESSQtm','splice','ltr','ck-reset_all','searchView','updateLoadingState','errorMessage','fire','ck-ai-header\x20ck-ai-header_history','updateItemTitle','2zkZcDO','remove','queryView','updateTitle','_createEmptyStateView','ck-ai-notification','5EMhNTK','updateItemLoadingState','set','openChat','change:isLoading','execute','_refreshSearch','_createSkeletonView','AI_CHAT_HISTORY_HEADING','1547073IhpEUA','ck-ai-chat-history__empty'];_0x5445=function(){return _0x537788;};return _0x5445();}import{AIChatHistoryListView as _0x4d47e4}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x25c398}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3fe154}from'../aichathistoryui.js';import{AISkeletonView as _0x30f564,SKELETON_DEFINITIONS as _0x2a73b5}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x109480}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x1f6c3f}from'../../aicore/utils/common-translations.js';function _0x4bf5(_0x399076,_0x3f951b){const _0x54455c=_0x5445();return _0x4bf5=function(_0x4bf5ed,_0x1196f3){_0x4bf5ed=_0x4bf5ed-0x13a;let _0x1c44a1=_0x54455c[_0x4bf5ed];return _0x1c44a1;},_0x4bf5(_0x399076,_0x3f951b);}export class AIChatHistoryView extends _0x12bf48{[_0x3972de(0x193)];[_0x3972de(0x16e)];[_0x3972de(0x173)];[_0x3972de(0x15b)];[_0x3972de(0x188)];[_0x3972de(0x181)];constructor(_0x3d91e6,_0x4bf575){const _0x22cbd1=_0x3972de;super(_0x3d91e6),this[_0x22cbd1(0x144)](_0x22cbd1(0x152),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x170),!0x0),this[_0x22cbd1(0x144)](_0x22cbd1(0x195),''),this[_0x22cbd1(0x144)](_0x22cbd1(0x16c),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x155),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x15a),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x165),!0x1);const _0x4e374f=new _0x479f24(_0x3d91e6,{'label':_0x1f6c3f(_0x3d91e6,_0x22cbd1(0x14a)),'icon':_0x22e61b,'class':_0x22cbd1(0x13a)});_0x4bf575&&(this[_0x22cbd1(0x181)]=_0x109480(_0x3d91e6,this),_0x4e374f[_0x22cbd1(0x182)][_0x22cbd1(0x183)](this[_0x22cbd1(0x181)])),this[_0x22cbd1(0x188)]=new _0x1ceff2(_0x3d91e6,[]),this[_0x22cbd1(0x188)][_0x22cbd1(0x171)](..._0x3fe154)['to'](this),this[_0x22cbd1(0x16e)]=this[_0x22cbd1(0x14f)](),this[_0x22cbd1(0x173)]=this[_0x22cbd1(0x149)](),this[_0x22cbd1(0x15b)]=this[_0x22cbd1(0x140)](),this[_0x22cbd1(0x193)]=this[_0x22cbd1(0x15e)](),this[_0x22cbd1(0x16e)][_0x22cbd1(0x15d)]({'attributes':{'class':[this[_0x22cbd1(0x187)]['if'](_0x22cbd1(0x165),_0x22cbd1(0x15f),_0x244f7=>!_0x244f7)]}}),this['on'](_0x22cbd1(0x146),()=>this[_0x22cbd1(0x17f)]()),this['on'](_0x22cbd1(0x162),()=>this[_0x22cbd1(0x17f)]()),this['on'](_0x22cbd1(0x189),()=>this[_0x22cbd1(0x17f)]()),this[_0x22cbd1(0x154)]({'tag':_0x22cbd1(0x176),'attributes':{'class':['ck',_0x22cbd1(0x192),_0x22cbd1(0x153),_0x22cbd1(0x16f)],'dir':_0x22cbd1(0x191)},'children':[_0x4e374f,{'tag':_0x22cbd1(0x176),'attributes':{'class':[_0x22cbd1(0x174)]},'children':[this[_0x22cbd1(0x173)],this[_0x22cbd1(0x16e)],this[_0x22cbd1(0x15b)],this[_0x22cbd1(0x193)]]}]});}[_0x3972de(0x17f)](){const _0x356da5=_0x3972de;this[_0x356da5(0x155)]=!this[_0x356da5(0x170)]&&this[_0x356da5(0x152)],this[_0x356da5(0x15a)]=!this[_0x356da5(0x170)]&&!this[_0x356da5(0x152)]&&!this[_0x356da5(0x195)],this[_0x356da5(0x165)]=!this[_0x356da5(0x155)]&&!!this[_0x356da5(0x195)];}[_0x3972de(0x15e)](){const _0x15db51=_0x3972de,_0x2aab55=new _0x4d159d(this[_0x15db51(0x16d)],{'filteredView':this[_0x15db51(0x188)],'queryView':{'label':_0x1f6c3f(this[_0x15db51(0x16d)],_0x15db51(0x179))},'infoView':{'text':{'notFound':{'primary':_0x307ea8=>_0x1f6c3f(this[_0x15db51(0x16d)],_0x15db51(0x159),_0x307ea8),'secondary':_0x1f6c3f(this[_0x15db51(0x16d)],_0x15db51(0x158))}}}}),_0x528c46=this[_0x15db51(0x14f)]();return _0x528c46[_0x15db51(0x15d)]({'attributes':{'class':[this[_0x15db51(0x187)]['if'](_0x15db51(0x195),_0x15db51(0x15f),_0x5861d1=>!_0x5861d1)]}}),_0x2aab55['on'](_0x15db51(0x163),()=>{const _0x49e5c8=_0x15db51;_0x2aab55[_0x49e5c8(0x182)][_0x49e5c8(0x183)](_0x528c46,0x1);}),_0x2aab55[_0x15db51(0x15d)]({'attributes':{'class':[this[_0x15db51(0x187)]['if'](_0x15db51(0x155),_0x15db51(0x15f),_0x4b183d=>!_0x4b183d)]}}),_0x2aab55;}[_0x3972de(0x149)](){const _0x372312=_0x3972de,_0x3ddd3b=new _0x30f564(this[_0x372312(0x16d)],_0x2a73b5[_0x372312(0x15c)]);return _0x3ddd3b[_0x372312(0x15d)]({'attributes':{'class':[this[_0x372312(0x187)]['if'](_0x372312(0x170),_0x372312(0x15f),_0xa27b8a=>!_0xa27b8a)]}}),_0x3ddd3b;}[_0x3972de(0x14f)](){const _0x4a7e37=_0x3972de,_0x1d2a38=new _0x12bf48(this[_0x4a7e37(0x16d)]),_0x231f44=new _0x4b5178(this[_0x4a7e37(0x16d)]);_0x231f44[_0x4a7e37(0x144)]({'withText':!0x1,'icon':_0x98a183,'class':_0x4a7e37(0x18a)}),_0x231f44[_0x4a7e37(0x184)](_0x4a7e37(0x17a))['to'](this,_0x4a7e37(0x152),_0x4bcb0c=>!!_0x4bcb0c),_0x231f44['on'](_0x4a7e37(0x147),()=>{const _0x62a522=_0x4a7e37;this[_0x62a522(0x195)]='';});const _0x3fdbb1=this[_0x4a7e37(0x187)];return _0x1d2a38[_0x4a7e37(0x154)]({'tag':_0x4a7e37(0x176),'attributes':{'class':['ck',_0x4a7e37(0x141),_0x4a7e37(0x14e)]},'children':[{'tag':'p','children':[{'text':_0x3fdbb1['to'](_0x4a7e37(0x195))}]},_0x231f44]}),_0x1d2a38;}[_0x3972de(0x140)](){const _0x566593=_0x3972de,_0x12fceb=new _0x4b5178(this[_0x566593(0x16d)]);_0x12fceb[_0x566593(0x144)]({'label':_0x1f6c3f(this[_0x566593(0x16d)],_0x566593(0x18d)),'withText':!0x0,'icon':_0x4e7861,'class':_0x566593(0x186)}),_0x12fceb['on'](_0x566593(0x147),()=>{const _0x82bc85=_0x566593;this[_0x82bc85(0x196)](_0x82bc85(0x145));});const _0x2d0ed7=new _0x12bf48(this[_0x566593(0x16d)]);return _0x2d0ed7[_0x566593(0x154)]({'tag':_0x566593(0x176),'attributes':{'class':[_0x566593(0x14c),this[_0x566593(0x187)]['if'](_0x566593(0x15a),_0x566593(0x15f),_0x4de4c2=>!_0x4de4c2)]},'children':[{'tag':'p','attributes':{'class':[_0x566593(0x156)]},'children':[_0x1f6c3f(this[_0x566593(0x16d)],_0x566593(0x167))]},_0x12fceb]}),_0x2d0ed7;}[_0x3972de(0x150)](_0x36835a,_0x3a1dc5){const _0x36fc43=_0x3972de,_0x39cfb6=[];for(const _0x1d0f92 of _0x36835a){const _0x2e1f73=new _0x25c398(_0x3a1dc5,_0x1d0f92);_0x2e1f73[_0x36fc43(0x171)](..._0x3fe154)['to'](this),_0x39cfb6[_0x36fc43(0x17e)](_0x2e1f73);}return _0x39cfb6;}[_0x3972de(0x177)](_0x66abf3){const _0x518804=_0x3972de,_0x4b7fc0=this[_0x518804(0x16d)]||'en',_0x4df23f=[];for(const _0xef9989 of _0x66abf3){const _0x1b8567=this[_0x518804(0x150)](_0xef9989[_0x518804(0x178)],_0x4b7fc0);_0x4df23f[_0x518804(0x17e)](new _0x4d47e4(_0x4b7fc0,{'title':_0xef9989[_0x518804(0x168)],'items':_0x1b8567}));}this[_0x518804(0x188)][_0x518804(0x17c)]=_0x4df23f,this[_0x518804(0x188)][_0x518804(0x178)][_0x518804(0x164)](),this[_0x518804(0x188)][_0x518804(0x178)][_0x518804(0x17d)](_0x4df23f),this[_0x518804(0x152)]=_0x66abf3[_0x518804(0x160)](_0x4a0d0e=>_0x4a0d0e[_0x518804(0x178)][_0x518804(0x161)]>0x0),this[_0x518804(0x148)]();}[_0x3972de(0x185)](_0x45eef7){const _0x20142=_0x3972de;for(const _0xe05290 of this[_0x20142(0x188)][_0x20142(0x17c)]){const _0x12a8d5=_0xe05290[_0x20142(0x14d)](_0x45eef7);if(_0x12a8d5){if(_0xe05290[_0x20142(0x180)](_0x12a8d5),0x0===_0xe05290[_0x20142(0x16b)][_0x20142(0x161)]){const _0x1bf83f=this[_0x20142(0x188)][_0x20142(0x17c)][_0x20142(0x157)](_0xe05290);-0x1!==_0x1bf83f&&(this[_0x20142(0x188)][_0x20142(0x17c)][_0x20142(0x190)](_0x1bf83f,0x1),this[_0x20142(0x188)][_0x20142(0x178)][_0x20142(0x13d)](_0xe05290));}this[_0x20142(0x152)]=this[_0x20142(0x188)][_0x20142(0x17c)][_0x20142(0x161)]>0x0,this[_0x20142(0x148)]();break;}}}[_0x3972de(0x13b)](_0x1a92a4,_0x5c0a1b){const _0x283669=_0x3972de;for(const _0x2bd30c of this[_0x283669(0x188)][_0x283669(0x17c)]){const _0x18cf67=_0x2bd30c[_0x283669(0x14d)](_0x1a92a4);if(_0x18cf67){_0x18cf67[_0x283669(0x13f)](_0x5c0a1b);break;}}}[_0x3972de(0x143)](_0x375549,_0x1af5fa,_0x6c873){const _0x522461=_0x3972de;for(const _0x3ce9ab of this[_0x522461(0x188)][_0x522461(0x17c)]){const _0x12b79f=_0x3ce9ab[_0x522461(0x14d)](_0x375549);if(_0x12b79f){_0x12b79f[_0x522461(0x194)](_0x1af5fa,_0x6c873);break;}}}[_0x3972de(0x148)](){const _0x9d9cb8=_0x3972de;if(this[_0x9d9cb8(0x152)]){const _0x221d7e=this[_0x9d9cb8(0x193)][_0x9d9cb8(0x13e)][_0x9d9cb8(0x166)]?.[_0x9d9cb8(0x169)]?.[_0x9d9cb8(0x151)]||'';this[_0x9d9cb8(0x193)][_0x9d9cb8(0x172)](_0x221d7e);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5c68a1=_0x1bc5;(function(_0x2c9030,_0x4baa8f){const _0xd0e1d9=_0x1bc5,_0x32d557=_0x2c9030();while(!![]){try{const _0x1f2278=parseInt(_0xd0e1d9(0x16c))/0x1*(-parseInt(_0xd0e1d9(0x125))/0x2)+parseInt(_0xd0e1d9(0x167))/0x3*(parseInt(_0xd0e1d9(0x12b))/0x4)+parseInt(_0xd0e1d9(0x172))/0x5*(parseInt(_0xd0e1d9(0x12e))/0x6)+parseInt(_0xd0e1d9(0x119))/0x7+-parseInt(_0xd0e1d9(0x16a))/0x8*(-parseInt(_0xd0e1d9(0x13f))/0x9)+-parseInt(_0xd0e1d9(0x182))/0xa*(parseInt(_0xd0e1d9(0x122))/0xb)+-parseInt(_0xd0e1d9(0x18b))/0xc*(parseInt(_0xd0e1d9(0x12d))/0xd);if(_0x1f2278===_0x4baa8f)break;else _0x32d557['push'](_0x32d557['shift']());}catch(_0x471247){_0x32d557['push'](_0x32d557['shift']());}}}(_0x323b,0xb39c9));import{createParser as _0x34a277}from'eventsource-parser';import{ContextPlugin as _0x32a72e}from'ckeditor5/src/core.js';import{CKEditorError as _0x15786f}from'ckeditor5/src/utils.js';function _0x323b(){const _0xad27fb=['fix-grammar','traceId','_sendApiRequest','100','push','IMPROVE_WRITING','true','deleteFile','DELETE','make-shorter','executeAction','CloudServices','upsertCustomAIActionRating','PATCH','feed','make-tone-casual','fetchConversation','make-tone-formal','requires','AbortError','plugins','pluginName','/calls/','queryAssistant','/documents/','decode','/actions/custom/calls','ai-request-aborted','3JSEYvQ','/documents','/messages/','2936BQrWPJ','keys','1513UFsAiE','GET','/conversations/','MAKE_TONE_FORMAL','/files/','ai.serviceUrl','10JHyYfn','/actions/system/','then','/reviews/custom/calls','PUT','/web-resources/','positiveCount','getModels','message','search','CONTINUE','modificationId','attributes','deleteDocument','request','context','10IySUWb','make-longer','toString','improve-writing','/files','excludeEmpty','code','executeCustomAction','TRANSLATE','144IIZcRN','ai-missing-token','items','file','/ratings','upsertAIReviewRating','data','text','ai-request-failed','upsertCustomAIReviewRating','config','_token','/conversations','limit','/reviews/system/','application/json','value','updateConversation','_apiUrl','startConversation','FIX_GRAMMAR','/conversations?','callCustomReview','token','https://ai.cke-cs.com/v1','init','/models/1','status','MAKE_TONE_CASUAL','callSystemReview','_decoder','catch','Content-Type','POST','363573wuGOmF','_handleError','get','/reviews/custom/calls/','fetchConversations','/web-resources','isPremiumPlugin','uploadUrl','define','806344ULkyQm','reset','_getStreamReader','178MIeyOp','MAKE_LONGER','upsertAIChatRating','AIConnector','statusText','upsertAIActionRating','1506616NGTnkO','translate','583622QhmgDv','1799418CWuGrU','MAKE_SHORTER','/messages','getReader','Bearer\x20','json','uploadDocument','fetchConversationMessages','totalCount','/calls','stringify','body','name','uploadFile','signal','deleteWebResource','continue','11133jSdVNa','group','read','length','deleteConversation','isOfficialPlugin','/actions/custom/calls/','abortController','append','releaseLock','fetchDocument','parse'];_0x323b=function(){return _0xad27fb;};return _0x323b();}export var AIActionsNames;!function(_0x431ad2){const _0x5c89f6=_0x1bc5;_0x431ad2[_0x5c89f6(0x17c)]=_0x5c89f6(0x13e),_0x431ad2[_0x5c89f6(0x19f)]=_0x5c89f6(0x14b),_0x431ad2[_0x5c89f6(0x150)]=_0x5c89f6(0x185),_0x431ad2[_0x5c89f6(0x126)]=_0x5c89f6(0x183),_0x431ad2[_0x5c89f6(0x12f)]=_0x5c89f6(0x154),_0x431ad2[_0x5c89f6(0x1a7)]=_0x5c89f6(0x15a),_0x431ad2[_0x5c89f6(0x16f)]=_0x5c89f6(0x15c),_0x431ad2[_0x5c89f6(0x18a)]=_0x5c89f6(0x12c);}(AIActionsNames||(AIActionsNames={}));function _0x1bc5(_0xa5b955,_0x284337){const _0x323b5b=_0x323b();return _0x1bc5=function(_0x1bc508,_0x3f6ea4){_0x1bc508=_0x1bc508-0x117;let _0x271bec=_0x323b5b[_0x1bc508];return _0x271bec;},_0x1bc5(_0xa5b955,_0x284337);}export class AIConnector extends _0x32a72e{[_0x5c68a1(0x19d)];[_0x5c68a1(0x196)];[_0x5c68a1(0x1a9)];static get[_0x5c68a1(0x15d)](){const _0x1d45f1=_0x5c68a1;return[_0x1d45f1(0x156)];}static get[_0x5c68a1(0x160)](){const _0x2e43f7=_0x5c68a1;return _0x2e43f7(0x128);}static get[_0x5c68a1(0x144)](){return!0x0;}static get[_0x5c68a1(0x11f)](){return!0x0;}constructor(_0x2e243c){const _0x180e79=_0x5c68a1;super(_0x2e243c),this[_0x180e79(0x181)][_0x180e79(0x195)][_0x180e79(0x121)](_0x180e79(0x171),_0x180e79(0x1a3)),this[_0x180e79(0x19d)]=this[_0x180e79(0x181)][_0x180e79(0x195)][_0x180e79(0x11b)](_0x180e79(0x171)),this[_0x180e79(0x196)]=null,this[_0x180e79(0x1a9)]=new TextDecoder();}[_0x5c68a1(0x1a4)](){const _0x44a586=_0x5c68a1,_0x37d6c2=this[_0x44a586(0x181)][_0x44a586(0x15f)][_0x44a586(0x11b)](_0x44a586(0x156));if(!_0x37d6c2[_0x44a586(0x1a2)])throw new _0x15786f(_0x44a586(0x18c),this);this[_0x44a586(0x196)]=_0x37d6c2[_0x44a586(0x1a2)];}[_0x5c68a1(0x19e)](_0x1ef217,_0x11a54e){const _0x5af426=_0x5c68a1,_0x40770b=this[_0x5af426(0x14d)](_0x5af426(0x197),_0x5af426(0x118),{'id':_0x1ef217,'group':_0x11a54e});return{'getConversation':async()=>(await _0x40770b[_0x5af426(0x180)])[_0x5af426(0x133)](),'abortController':_0x40770b[_0x5af426(0x146)]};}[_0x5c68a1(0x162)]({message:_0x780169,conversationId:_0x265bad,parts:_0x46bba6,capabilities:_0x59aa86,model:_0x53bd04,quickActionData:_0x5a41a3}){const _0xc0ec37=_0x5c68a1,_0xa05830={..._0x5a41a3&&{'quickActionData':_0x5a41a3}},_0x1962e5={'prompt':_0x780169,'content':_0x46bba6,'model':_0x53bd04,..._0x59aa86&&{'capabilities':_0x59aa86},...Object[_0xc0ec37(0x16b)](_0xa05830)[_0xc0ec37(0x142)]>0x0&&{'attributes':_0xa05830}},_0xc14139=this[_0xc0ec37(0x14d)](_0xc0ec37(0x16e)+_0x265bad+_0xc0ec37(0x130),_0xc0ec37(0x118),_0x1962e5);return{'getStream':async()=>{const _0x2b121a=_0xc0ec37,_0x437390=(await _0xc14139[_0x2b121a(0x180)])[_0x2b121a(0x139)];return this[_0x2b121a(0x124)](_0x437390);},'abortController':_0xc14139[_0xc0ec37(0x146)]};}[_0x5c68a1(0x189)]({content:_0x1f26ee,message:_0x13417d,model:_0x275b59,outputFormat:_0x451551}){const _0x3588f9=_0x5c68a1,_0x5c5ac9={'content':[{'type':_0x3588f9(0x192),'content':_0x1f26ee}],'prompt':_0x13417d,'model':_0x275b59,'outputFormat':_0x451551},_0x377eb9=this[_0x3588f9(0x14d)](_0x3588f9(0x165),_0x3588f9(0x118),_0x5c5ac9);return{'getStream':async()=>{const _0x4c728e=_0x3588f9,_0x2de063=(await _0x377eb9[_0x4c728e(0x180)])[_0x4c728e(0x139)];return this[_0x4c728e(0x124)](_0x2de063);},'abortController':_0x377eb9[_0x3588f9(0x146)]};}[_0x5c68a1(0x155)]({actionName:_0x3f3631,content:_0x588fc4,args:_0x3a0687}){const _0xf2cf4=_0x5c68a1,_0x41c05a={'content':[{'type':_0xf2cf4(0x192),'content':_0x588fc4}],'args':_0x3a0687},_0x12b99b=this[_0xf2cf4(0x14d)](_0xf2cf4(0x173)+_0x3f3631+_0xf2cf4(0x137),_0xf2cf4(0x118),_0x41c05a);return{'getStream':async()=>{const _0xcc85cf=_0xf2cf4,_0x2f9e7e=(await _0x12b99b[_0xcc85cf(0x180)])[_0xcc85cf(0x139)];return this[_0xcc85cf(0x124)](_0x2f9e7e);},'abortController':_0x12b99b[_0xf2cf4(0x146)]};}[_0x5c68a1(0x13b)](_0x5a634c,_0x5171bf,_0x125f19){const _0x5ce4b9=_0x5c68a1,_0x486d66=new FormData();_0x486d66[_0x5ce4b9(0x147)](_0x5ce4b9(0x18e),_0x5171bf,_0x5171bf[_0x5ce4b9(0x13a)]),_0x125f19&&_0x486d66[_0x5ce4b9(0x147)](_0x5ce4b9(0x17e),JSON[_0x5ce4b9(0x138)](_0x125f19));const _0x2c8caf=this[_0x5ce4b9(0x14d)](_0x5ce4b9(0x16e)+_0x5a634c+_0x5ce4b9(0x186),_0x5ce4b9(0x118),_0x486d66);return{'getId':async()=>(await _0x2c8caf[_0x5ce4b9(0x180)])[_0x5ce4b9(0x133)](),'abortController':_0x2c8caf[_0x5ce4b9(0x146)]};}[_0x5c68a1(0x149)](_0x1d32c1,_0x53a647){const _0xe4a70c=_0x5c68a1,_0x14335d=this[_0xe4a70c(0x14d)](_0xe4a70c(0x16e)+_0x1d32c1+_0xe4a70c(0x163)+_0x53a647,_0xe4a70c(0x16d));return{'getDocument':async()=>(await _0x14335d[_0xe4a70c(0x180)])[_0xe4a70c(0x133)](),'abortController':_0x14335d[_0xe4a70c(0x146)]};}[_0x5c68a1(0x134)](_0x274cc1,_0x3c8d59,_0x2406e2){const _0x1527d8=_0x5c68a1,_0x223452={'content':_0x3c8d59};_0x2406e2&&(_0x223452[_0x1527d8(0x17e)]=_0x2406e2);const _0x15c038=this[_0x1527d8(0x14d)](_0x1527d8(0x16e)+_0x274cc1+_0x1527d8(0x168),_0x1527d8(0x118),_0x223452);return{'getId':async()=>(await _0x15c038[_0x1527d8(0x180)])[_0x1527d8(0x133)](),'abortController':_0x15c038[_0x1527d8(0x146)]};}[_0x5c68a1(0x11d)](_0x411e2e,_0x5c241d){const _0x4ba9dd=_0x5c68a1,_0x542071=new URLSearchParams();_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x187),_0x4ba9dd(0x151)),_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x198),_0x4ba9dd(0x14e)),_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x140),_0x411e2e),_0x5c241d&&_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x17b),_0x5c241d);const _0x4e79ff=this[_0x4ba9dd(0x14d)](_0x4ba9dd(0x1a0)+_0x542071[_0x4ba9dd(0x184)](),_0x4ba9dd(0x16d));return{'getConversations':async()=>{const _0x5d0d0d=_0x4ba9dd,_0x5b78c8=await _0x4e79ff[_0x5d0d0d(0x180)];return(await _0x5b78c8[_0x5d0d0d(0x133)]())[_0x5d0d0d(0x18d)];},'abortController':_0x4e79ff[_0x4ba9dd(0x146)]};}[_0x5c68a1(0x143)](_0x456e17){const _0x497d18=_0x5c68a1,_0x3f3f34=this[_0x497d18(0x14d)](_0x497d18(0x16e)+_0x456e17,_0x497d18(0x153));return{'execute':async()=>{const _0x720f1=_0x497d18;await _0x3f3f34[_0x720f1(0x180)];},'abortController':_0x3f3f34[_0x497d18(0x146)]};}[_0x5c68a1(0x19c)](_0x346cbb,_0x5ecb0d){const _0x56b1fc=_0x5c68a1,_0x5bee81=this[_0x56b1fc(0x14d)](_0x56b1fc(0x16e)+_0x346cbb,_0x56b1fc(0x158),_0x5ecb0d);return{'getResult':async()=>(await _0x5bee81[_0x56b1fc(0x180)],_0x5ecb0d),'abortController':_0x5bee81[_0x56b1fc(0x146)]};}[_0x5c68a1(0x15b)](_0x10532e){const _0x33ea1=_0x5c68a1,_0x4d442f=this[_0x33ea1(0x14d)](_0x33ea1(0x16e)+_0x10532e,_0x33ea1(0x16d));return{'getConversation':async()=>(await _0x4d442f[_0x33ea1(0x180)])[_0x33ea1(0x133)](),'abortController':_0x4d442f[_0x33ea1(0x146)]};}[_0x5c68a1(0x135)](_0xcf8fa3){const _0x55d281=_0x5c68a1,_0x5d869e=this[_0x55d281(0x14d)](_0x55d281(0x16e)+_0xcf8fa3+_0x55d281(0x130),_0x55d281(0x16d));return{'getMessages':async()=>{const _0x4d16c3=_0x55d281,_0x1f7908=await _0x5d869e[_0x4d16c3(0x180)];return(await _0x1f7908[_0x4d16c3(0x133)]())[_0x4d16c3(0x18d)];},'abortController':_0x5d869e[_0x55d281(0x146)]};}[_0x5c68a1(0x120)](_0x5912ac,_0xc30c33,_0x5a5869){const _0x4ee8d3=_0x5c68a1,_0x3040ad=this[_0x4ee8d3(0x14d)](_0x4ee8d3(0x16e)+_0x5912ac+_0x4ee8d3(0x11e),_0x4ee8d3(0x118),{'url':_0xc30c33,'attributes':_0x5a5869});return{'getId':async()=>(await _0x3040ad[_0x4ee8d3(0x180)])[_0x4ee8d3(0x133)](),'abortController':_0x3040ad[_0x4ee8d3(0x146)]};}[_0x5c68a1(0x179)](){const _0x338c4f=_0x5c68a1,_0x1bde10=this[_0x338c4f(0x14d)](_0x338c4f(0x1a5),_0x338c4f(0x16d));return{'list':async()=>await(await _0x1bde10[_0x338c4f(0x180)])[_0x338c4f(0x133)](),'abortController':_0x1bde10[_0x338c4f(0x146)]};}[_0x5c68a1(0x152)](_0x545ca1,_0x34add1){const _0x110d8a=_0x5c68a1,_0x2fe368=this[_0x110d8a(0x14d)](_0x110d8a(0x16e)+_0x545ca1+_0x110d8a(0x170)+_0x34add1,_0x110d8a(0x153));return{'execute':async()=>{const _0x5b5e46=_0x110d8a;await _0x2fe368[_0x5b5e46(0x180)];},'abortController':_0x2fe368[_0x110d8a(0x146)]};}[_0x5c68a1(0x17f)](_0x2762f5,_0x5502f7){const _0x1b4c4c=_0x5c68a1,_0x58439b=this[_0x1b4c4c(0x14d)](_0x1b4c4c(0x16e)+_0x2762f5+_0x1b4c4c(0x163)+_0x5502f7,_0x1b4c4c(0x153));return{'execute':async()=>{const _0x15bba0=_0x1b4c4c;await _0x58439b[_0x15bba0(0x180)];},'abortController':_0x58439b[_0x1b4c4c(0x146)]};}[_0x5c68a1(0x13d)](_0x383eea,_0x28ff59){const _0x414570=_0x5c68a1,_0x3f6db0=this[_0x414570(0x14d)](_0x414570(0x16e)+_0x383eea+_0x414570(0x177)+_0x28ff59,_0x414570(0x153));return{'execute':async()=>{const _0x452612=_0x414570;await _0x3f6db0[_0x452612(0x180)];},'abortController':_0x3f6db0[_0x414570(0x146)]};}[_0x5c68a1(0x1a8)]({reviewName:_0x5399cf,content:_0x12f31f,args:_0x43b9a5}){const _0x53abea=_0x5c68a1,_0x3adc14=this[_0x53abea(0x14d)](_0x53abea(0x199)+_0x5399cf+_0x53abea(0x137),_0x53abea(0x118),{'content':[{'type':_0x53abea(0x192),'content':_0x12f31f}],'args':_0x43b9a5});return{'getStream':async()=>{const _0x318759=_0x53abea,_0x5a1af3=(await _0x3adc14[_0x318759(0x180)])[_0x318759(0x139)];return this[_0x318759(0x124)](_0x5a1af3);},'abortController':_0x3adc14[_0x53abea(0x146)]};}[_0x5c68a1(0x1a1)]({content:_0x25eda9,prompt:_0xe9ebb1,model:_0x8a085d}){const _0x1b996e=_0x5c68a1,_0x4e7930=this[_0x1b996e(0x14d)](_0x1b996e(0x175),_0x1b996e(0x118),{'content':[{'type':_0x1b996e(0x192),'content':_0x25eda9}],'prompt':_0xe9ebb1,'model':_0x8a085d});return{'getStream':async()=>{const _0x10a8fa=_0x1b996e,_0x38b56c=(await _0x4e7930[_0x10a8fa(0x180)])[_0x10a8fa(0x139)];return this[_0x10a8fa(0x124)](_0x38b56c);},'abortController':_0x4e7930[_0x1b996e(0x146)]};}[_0x5c68a1(0x127)](_0x2b5cbe,_0x3bbb2d,_0x390fc1){const _0x5c381a=_0x5c68a1,_0x4b9fc6=this[_0x5c381a(0x14d)](_0x5c381a(0x16e)+_0x2b5cbe+_0x5c381a(0x169)+_0x3bbb2d+_0x5c381a(0x18f),_0x5c381a(0x176),{'positiveCount':_0x390fc1[_0x5c381a(0x178)],'totalCount':_0x390fc1[_0x5c381a(0x136)],'modificationId':_0x390fc1[_0x5c381a(0x17d)]});return{'execute':async()=>{const _0x546c72=_0x5c381a;await _0x4b9fc6[_0x546c72(0x180)];},'abortController':_0x4b9fc6[_0x5c381a(0x146)]};}[_0x5c68a1(0x12a)](_0x1f6a0f,_0x1d70a9,_0x26acd7){const _0x434939=_0x5c68a1,_0x149f89=this[_0x434939(0x14d)](_0x434939(0x173)+_0x1f6a0f+_0x434939(0x161)+_0x1d70a9+_0x434939(0x18f),_0x434939(0x176),{'positiveCount':_0x26acd7[_0x434939(0x178)],'totalCount':_0x26acd7[_0x434939(0x136)]});return{'execute':async()=>{const _0x288b64=_0x434939;await _0x149f89[_0x288b64(0x180)];},'abortController':_0x149f89[_0x434939(0x146)]};}[_0x5c68a1(0x157)](_0x52e3eb,_0x32affd){const _0x31d43f=_0x5c68a1,_0x1897d7=this[_0x31d43f(0x14d)](_0x31d43f(0x145)+_0x52e3eb+_0x31d43f(0x18f),_0x31d43f(0x176),{'positiveCount':_0x32affd[_0x31d43f(0x178)],'totalCount':_0x32affd[_0x31d43f(0x136)]});return{'execute':async()=>{const _0x1af47d=_0x31d43f;await _0x1897d7[_0x1af47d(0x180)];},'abortController':_0x1897d7[_0x31d43f(0x146)]};}[_0x5c68a1(0x190)](_0x340a57,_0x27a932,_0x372e04,_0x5e3afc){const _0x286ea1=_0x5c68a1,_0x57e73b=this[_0x286ea1(0x14d)](_0x286ea1(0x199)+_0x340a57+_0x286ea1(0x161)+_0x27a932+_0x286ea1(0x18f),_0x286ea1(0x176),{'positiveCount':_0x372e04[_0x286ea1(0x178)],'totalCount':_0x372e04[_0x286ea1(0x136)],'dataId':_0x5e3afc});return{'execute':async()=>{const _0xe24f6b=_0x286ea1;await _0x57e73b[_0xe24f6b(0x180)];},'abortController':_0x57e73b[_0x286ea1(0x146)]};}[_0x5c68a1(0x194)](_0x3ce7ae,_0x24c9f4,_0x2a59b1){const _0x28c1e6=_0x5c68a1,_0x4aaeec=this[_0x28c1e6(0x14d)](_0x28c1e6(0x11c)+_0x3ce7ae+_0x28c1e6(0x18f),_0x28c1e6(0x176),{'positiveCount':_0x24c9f4[_0x28c1e6(0x178)],'totalCount':_0x24c9f4[_0x28c1e6(0x136)],'dataId':_0x2a59b1});return{'execute':async()=>{const _0x5b210e=_0x28c1e6;await _0x4aaeec[_0x5b210e(0x180)];},'abortController':_0x4aaeec[_0x28c1e6(0x146)]};}[_0x5c68a1(0x14d)](_0xb10ab8,_0xaf5ed2,_0x320d34){const _0x52f2e7=_0x5c68a1,_0x1718fe=new AbortController(),_0x7471a6=_0x320d34 instanceof FormData,_0x495087={'Authorization':_0x52f2e7(0x132)+this[_0x52f2e7(0x196)]?.[_0x52f2e7(0x19b)]};_0x320d34&&!_0x7471a6&&(_0x495087[_0x52f2e7(0x117)]=_0x52f2e7(0x19a));const _0x5139db={'method':_0xaf5ed2,'headers':_0x495087,'signal':_0x1718fe[_0x52f2e7(0x13c)]};return _0x320d34&&(_0x5139db[_0x52f2e7(0x139)]=_0x7471a6?_0x320d34:JSON[_0x52f2e7(0x138)](_0x320d34)),{'request':fetch(''+this[_0x52f2e7(0x19d)]+_0xb10ab8,_0x5139db)[_0x52f2e7(0x1aa)](_0x394db7=>{const _0x10d6bc=_0x52f2e7;this[_0x10d6bc(0x11a)](_0x394db7);})[_0x52f2e7(0x174)](_0x3096db=>_0x3096db['ok']?_0x3096db:_0x3096db[_0x52f2e7(0x133)]()[_0x52f2e7(0x174)](_0x2a92cd=>{const _0x40691f=_0x52f2e7;throw{'url':this[_0x40691f(0x19d)],'path':_0xb10ab8,'method':_0xaf5ed2,'body':_0x320d34,'status':(_0x3096db||{})[_0x40691f(0x1a6)],'statusText':(_0x3096db||{})[_0x40691f(0x129)],'code':_0x2a92cd[_0x40691f(0x188)],'message':_0x2a92cd[_0x40691f(0x17a)],'traceId':_0x2a92cd[_0x40691f(0x14c)]};})),'abortController':_0x1718fe};}async*[_0x5c68a1(0x124)](_0x49ffba){const _0x44da72=_0x5c68a1,_0x3c55ff=[],_0x76f5b8=_0x49ffba[_0x44da72(0x131)](),_0x9de6ac=_0x34a277({'onError':_0x56f4d3=>{const _0x1dd9a0=_0x44da72;this[_0x1dd9a0(0x11a)](_0x56f4d3);},'onEvent':_0x523d69=>{const _0x4bbf21=_0x44da72;_0x523d69[_0x4bbf21(0x191)]=JSON[_0x4bbf21(0x14a)](_0x523d69[_0x4bbf21(0x191)]),_0x3c55ff[_0x4bbf21(0x14f)](_0x523d69);}});try{let _0x33328b=!0x1;for(;!_0x33328b;){const {done:_0xd9e817,value:_0x2d90d7}=await _0x76f5b8[_0x44da72(0x141)]();_0xd9e817&&(_0x33328b=!0x0),_0x9de6ac[_0x44da72(0x159)](this[_0x44da72(0x1a9)][_0x44da72(0x164)](_0x2d90d7,{'stream':!0x0})),yield*_0x3c55ff,_0x3c55ff[_0x44da72(0x142)]=0x0;}}catch(_0x5e6747){this[_0x44da72(0x11a)](_0x5e6747);}finally{_0x76f5b8[_0x44da72(0x148)](),_0x9de6ac[_0x44da72(0x123)]();}}[_0x5c68a1(0x11a)](_0x11eb92){const _0x38e747=_0x5c68a1;if(_0x11eb92 instanceof _0x15786f)throw _0x11eb92;if(_0x11eb92 instanceof Error&&_0x38e747(0x15e)===_0x11eb92[_0x38e747(0x13a)])throw new _0x15786f(_0x38e747(0x166),this,{'originalError':_0x11eb92});throw new _0x15786f(_0x38e747(0x193),this,{'originalError':_0x11eb92});}}
|
|
23
|
+
const _0x19af65=_0x2300;(function(_0xac800c,_0x590e59){const _0x5a73ba=_0x2300,_0xa17bb6=_0xac800c();while(!![]){try{const _0x394f35=-parseInt(_0x5a73ba(0x21b))/0x1*(parseInt(_0x5a73ba(0x1de))/0x2)+-parseInt(_0x5a73ba(0x1cf))/0x3*(parseInt(_0x5a73ba(0x1bf))/0x4)+-parseInt(_0x5a73ba(0x1c2))/0x5+parseInt(_0x5a73ba(0x1ea))/0x6+-parseInt(_0x5a73ba(0x1ad))/0x7*(parseInt(_0x5a73ba(0x1ec))/0x8)+parseInt(_0x5a73ba(0x1e2))/0x9+parseInt(_0x5a73ba(0x1b8))/0xa;if(_0x394f35===_0x590e59)break;else _0xa17bb6['push'](_0xa17bb6['shift']());}catch(_0x2bf7ea){_0xa17bb6['push'](_0xa17bb6['shift']());}}}(_0x775f,0x39189));import{createParser as _0x3d2955}from'eventsource-parser';import{ContextPlugin as _0x223be8}from'ckeditor5/src/core.js';function _0x2300(_0x178c4b,_0x53286c){const _0x775f46=_0x775f();return _0x2300=function(_0x2300c8,_0x1d1e79){_0x2300c8=_0x2300c8-0x194;let _0xdf0a97=_0x775f46[_0x2300c8];return _0xdf0a97;},_0x2300(_0x178c4b,_0x53286c);}function _0x775f(){const _0x2e1531=['fetchConversations','/web-resources','5996240WpTVbl','signal','limit','fetchConversation','statusText','/files','make-tone-formal','848uwwPqB','MAKE_TONE_CASUAL','upsertAIActionRating','2321225KKXxKS','/reviews/custom/calls','positiveCount','/conversations/','AIConnector','GET','decode','context','token','AbortError','CloudServices','attributes','stringify','4467EfhuKP','startConversation','ai-missing-token','/messages','MAKE_SHORTER','totalCount','executeCustomAction','_getStreamReader','toString','100','deleteWebResource','feed','MAKE_LONGER','catch','/conversations','3578lOHfMz','/actions/custom/calls/','/calls','deleteFile','3766599dZkUfi','fetchDocument','name','abortController','/reviews/system/','application/json','_decoder','/documents','2788938DQOqIz','items','200UiSudO','Content-Type','_handleError','/documents/','CONTINUE','push','IMPROVE_WRITING','callSystemReview','modificationId','PATCH','value','group','ai.serviceUrl','define','init','getModels','read','keys','upsertCustomAIReviewRating','request','then','DELETE','pluginName','deleteDocument','config','/reviews/custom/calls/','/ratings','status','/calls/','fetchConversationMessages','code','MAKE_TONE_FORMAL','make-longer','/actions/custom/calls','_sendApiRequest','get','deleteConversation','POST','isPremiumPlugin','uploadDocument','requires','make-tone-casual','ai-request-failed','uploadFile','make-shorter','text','isOfficialPlugin','195DIsxVo','body','reset','message','excludeEmpty','executeAction','https://ai.cke-cs.com/v1','_token','callCustomReview','json','releaseLock','/models/1','_apiUrl','/web-resources/','getReader','/conversations?','traceId','fix-grammar','true','data','uploadUrl','updateConversation','continue','ai-request-aborted','upsertAIReviewRating','PUT','TRANSLATE','Bearer\x20','upsertAIChatRating','queryAssistant','parse','plugins','append','search','/actions/system/','33691NIZoPv','upsertCustomAIActionRating','improve-writing','/files/','/messages/','file','FIX_GRAMMAR','translate','length'];_0x775f=function(){return _0x2e1531;};return _0x775f();}import{CKEditorError as _0x70b51}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0xc7fab3){const _0x5211a1=_0x2300;_0xc7fab3[_0x5211a1(0x1f0)]=_0x5211a1(0x1a0),_0xc7fab3[_0x5211a1(0x1b3)]=_0x5211a1(0x19b),_0xc7fab3[_0x5211a1(0x1f2)]=_0x5211a1(0x1af),_0xc7fab3[_0x5211a1(0x1db)]=_0x5211a1(0x20c),_0xc7fab3[_0x5211a1(0x1d3)]=_0x5211a1(0x218),_0xc7fab3[_0x5211a1(0x1c0)]=_0x5211a1(0x215),_0xc7fab3[_0x5211a1(0x20b)]=_0x5211a1(0x1be),_0xc7fab3[_0x5211a1(0x1a4)]=_0x5211a1(0x1b4);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x223be8{[_0x19af65(0x196)];[_0x19af65(0x222)];[_0x19af65(0x1e8)];static get[_0x19af65(0x214)](){const _0x2c85f7=_0x19af65;return[_0x2c85f7(0x1cc)];}static get[_0x19af65(0x202)](){const _0x54ba16=_0x19af65;return _0x54ba16(0x1c6);}static get[_0x19af65(0x21a)](){return!0x0;}static get[_0x19af65(0x212)](){return!0x0;}constructor(_0x5a3938){const _0x3a5c89=_0x19af65;super(_0x5a3938),this[_0x3a5c89(0x1c9)][_0x3a5c89(0x204)][_0x3a5c89(0x1f9)](_0x3a5c89(0x1f8),_0x3a5c89(0x221)),this[_0x3a5c89(0x196)]=this[_0x3a5c89(0x1c9)][_0x3a5c89(0x204)][_0x3a5c89(0x20f)](_0x3a5c89(0x1f8)),this[_0x3a5c89(0x222)]=null,this[_0x3a5c89(0x1e8)]=new TextDecoder();}[_0x19af65(0x1fa)](){const _0x4b7e20=_0x19af65,_0x1e3127=this[_0x4b7e20(0x1c9)][_0x4b7e20(0x1a9)][_0x4b7e20(0x20f)](_0x4b7e20(0x1cc));if(!_0x1e3127[_0x4b7e20(0x1ca)])throw new _0x70b51(_0x4b7e20(0x1d1),this);this[_0x4b7e20(0x222)]=_0x1e3127[_0x4b7e20(0x1ca)];}[_0x19af65(0x1d0)](_0x1ab96d,_0x28f9f9){const _0x142097=_0x19af65,_0x2fd0b6=this[_0x142097(0x20e)](_0x142097(0x1dd),_0x142097(0x211),{'id':_0x1ab96d,'group':_0x28f9f9});return{'getConversation':async()=>(await _0x2fd0b6[_0x142097(0x1ff)])[_0x142097(0x224)](),'abortController':_0x2fd0b6[_0x142097(0x1e5)]};}[_0x19af65(0x1a7)]({message:_0x2006e3,conversationId:_0x47de21,parts:_0x5c0d1d,capabilities:_0x425058,model:_0x1a7e73,quickActionData:_0x581eae}){const _0x37e16a=_0x19af65,_0x4dc562={..._0x581eae&&{'quickActionData':_0x581eae}},_0x210af5={'prompt':_0x2006e3,'content':_0x5c0d1d,'model':_0x1a7e73,..._0x425058&&{'capabilities':_0x425058},...Object[_0x37e16a(0x1fd)](_0x4dc562)[_0x37e16a(0x1b5)]>0x0&&{'attributes':_0x4dc562}},_0x83c642=this[_0x37e16a(0x20e)](_0x37e16a(0x1c5)+_0x47de21+_0x37e16a(0x1d2),_0x37e16a(0x211),_0x210af5);return{'getStream':async()=>{const _0x124e27=_0x37e16a,_0x34c786=(await _0x83c642[_0x124e27(0x1ff)])[_0x124e27(0x21c)];return this[_0x124e27(0x1d6)](_0x34c786);},'abortController':_0x83c642[_0x37e16a(0x1e5)]};}[_0x19af65(0x1d5)]({content:_0x5e9154,message:_0x1db952,model:_0x596b87,outputFormat:_0x3ce902}){const _0xc1166a=_0x19af65,_0x274a3e={'content':[{'type':_0xc1166a(0x219),'content':_0x5e9154}],'prompt':_0x1db952,'model':_0x596b87,'outputFormat':_0x3ce902},_0x5bbe7e=this[_0xc1166a(0x20e)](_0xc1166a(0x20d),_0xc1166a(0x211),_0x274a3e);return{'getStream':async()=>{const _0x213f22=_0xc1166a,_0x47c60e=(await _0x5bbe7e[_0x213f22(0x1ff)])[_0x213f22(0x21c)];return this[_0x213f22(0x1d6)](_0x47c60e);},'abortController':_0x5bbe7e[_0xc1166a(0x1e5)]};}[_0x19af65(0x220)]({actionName:_0x18b282,content:_0x3415cd,args:_0x325dd9}){const _0x25b926=_0x19af65,_0xd519e5={'content':[{'type':_0x25b926(0x219),'content':_0x3415cd}],'args':_0x325dd9},_0x334772=this[_0x25b926(0x20e)](_0x25b926(0x1ac)+_0x18b282+_0x25b926(0x1e0),_0x25b926(0x211),_0xd519e5);return{'getStream':async()=>{const _0x19bcee=_0x25b926,_0xf01425=(await _0x334772[_0x19bcee(0x1ff)])[_0x19bcee(0x21c)];return this[_0x19bcee(0x1d6)](_0xf01425);},'abortController':_0x334772[_0x25b926(0x1e5)]};}[_0x19af65(0x217)](_0x1e7968,_0x20c591,_0x3970a0){const _0x43e479=_0x19af65,_0x5ac3a2=new FormData();_0x5ac3a2[_0x43e479(0x1aa)](_0x43e479(0x1b2),_0x20c591,_0x20c591[_0x43e479(0x1e4)]),_0x3970a0&&_0x5ac3a2[_0x43e479(0x1aa)](_0x43e479(0x1cd),JSON[_0x43e479(0x1ce)](_0x3970a0));const _0x529925=this[_0x43e479(0x20e)](_0x43e479(0x1c5)+_0x1e7968+_0x43e479(0x1bd),_0x43e479(0x211),_0x5ac3a2);return{'getId':async()=>(await _0x529925[_0x43e479(0x1ff)])[_0x43e479(0x224)](),'abortController':_0x529925[_0x43e479(0x1e5)]};}[_0x19af65(0x1e3)](_0x5318a9,_0x1fcf26){const _0x56c5bf=_0x19af65,_0x32713a=this[_0x56c5bf(0x20e)](_0x56c5bf(0x1c5)+_0x5318a9+_0x56c5bf(0x1ef)+_0x1fcf26,_0x56c5bf(0x1c7));return{'getDocument':async()=>(await _0x32713a[_0x56c5bf(0x1ff)])[_0x56c5bf(0x224)](),'abortController':_0x32713a[_0x56c5bf(0x1e5)]};}[_0x19af65(0x213)](_0x3a06dc,_0x5dfd33,_0x577076){const _0x4a6c71=_0x19af65,_0x313514={'content':_0x5dfd33};_0x577076&&(_0x313514[_0x4a6c71(0x1cd)]=_0x577076);const _0x4764f9=this[_0x4a6c71(0x20e)](_0x4a6c71(0x1c5)+_0x3a06dc+_0x4a6c71(0x1e9),_0x4a6c71(0x211),_0x313514);return{'getId':async()=>(await _0x4764f9[_0x4a6c71(0x1ff)])[_0x4a6c71(0x224)](),'abortController':_0x4764f9[_0x4a6c71(0x1e5)]};}[_0x19af65(0x1b6)](_0x20aefa,_0x11561c){const _0x38bb7d=_0x19af65,_0x359d94=new URLSearchParams();_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x21f),_0x38bb7d(0x19c)),_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x1ba),_0x38bb7d(0x1d8)),_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x1f7),_0x20aefa),_0x11561c&&_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x1ab),_0x11561c);const _0xa722e1=this[_0x38bb7d(0x20e)](_0x38bb7d(0x199)+_0x359d94[_0x38bb7d(0x1d7)](),_0x38bb7d(0x1c7));return{'getConversations':async()=>{const _0x436aa0=_0x38bb7d,_0x35d907=await _0xa722e1[_0x436aa0(0x1ff)];return(await _0x35d907[_0x436aa0(0x224)]())[_0x436aa0(0x1eb)];},'abortController':_0xa722e1[_0x38bb7d(0x1e5)]};}[_0x19af65(0x210)](_0x3fec4a){const _0x43d55a=_0x19af65,_0x1ef1ba=this[_0x43d55a(0x20e)](_0x43d55a(0x1c5)+_0x3fec4a,_0x43d55a(0x201));return{'execute':async()=>{const _0x402c4d=_0x43d55a;await _0x1ef1ba[_0x402c4d(0x1ff)];},'abortController':_0x1ef1ba[_0x43d55a(0x1e5)]};}[_0x19af65(0x19f)](_0x1a5cd2,_0x32da63){const _0x3087d5=_0x19af65,_0x10bbce=this[_0x3087d5(0x20e)](_0x3087d5(0x1c5)+_0x1a5cd2,_0x3087d5(0x1f5),_0x32da63);return{'getResult':async()=>(await _0x10bbce[_0x3087d5(0x1ff)],_0x32da63),'abortController':_0x10bbce[_0x3087d5(0x1e5)]};}[_0x19af65(0x1bb)](_0x2a9517){const _0x299773=_0x19af65,_0x14049a=this[_0x299773(0x20e)](_0x299773(0x1c5)+_0x2a9517,_0x299773(0x1c7));return{'getConversation':async()=>(await _0x14049a[_0x299773(0x1ff)])[_0x299773(0x224)](),'abortController':_0x14049a[_0x299773(0x1e5)]};}[_0x19af65(0x209)](_0x3228c3){const _0x477f59=_0x19af65,_0x4f8d7b=this[_0x477f59(0x20e)](_0x477f59(0x1c5)+_0x3228c3+_0x477f59(0x1d2),_0x477f59(0x1c7));return{'getMessages':async()=>{const _0x190490=_0x477f59,_0x140b13=await _0x4f8d7b[_0x190490(0x1ff)];return(await _0x140b13[_0x190490(0x224)]())[_0x190490(0x1eb)];},'abortController':_0x4f8d7b[_0x477f59(0x1e5)]};}[_0x19af65(0x19e)](_0x4fb4a5,_0x56e5da,_0x271f40){const _0x252fda=_0x19af65,_0x6a8eb7=this[_0x252fda(0x20e)](_0x252fda(0x1c5)+_0x4fb4a5+_0x252fda(0x1b7),_0x252fda(0x211),{'url':_0x56e5da,'attributes':_0x271f40});return{'getId':async()=>(await _0x6a8eb7[_0x252fda(0x1ff)])[_0x252fda(0x224)](),'abortController':_0x6a8eb7[_0x252fda(0x1e5)]};}[_0x19af65(0x1fb)](){const _0x141783=_0x19af65,_0x9797c9=this[_0x141783(0x20e)](_0x141783(0x195),_0x141783(0x1c7));return{'list':async()=>await(await _0x9797c9[_0x141783(0x1ff)])[_0x141783(0x224)](),'abortController':_0x9797c9[_0x141783(0x1e5)]};}[_0x19af65(0x1e1)](_0x17438d,_0x18c592){const _0x42e34f=_0x19af65,_0x155ac1=this[_0x42e34f(0x20e)](_0x42e34f(0x1c5)+_0x17438d+_0x42e34f(0x1b0)+_0x18c592,_0x42e34f(0x201));return{'execute':async()=>{const _0x2b0ad9=_0x42e34f;await _0x155ac1[_0x2b0ad9(0x1ff)];},'abortController':_0x155ac1[_0x42e34f(0x1e5)]};}[_0x19af65(0x203)](_0x14c52d,_0x88130e){const _0x525e41=_0x19af65,_0x17bbe2=this[_0x525e41(0x20e)](_0x525e41(0x1c5)+_0x14c52d+_0x525e41(0x1ef)+_0x88130e,_0x525e41(0x201));return{'execute':async()=>{const _0x2e2b25=_0x525e41;await _0x17bbe2[_0x2e2b25(0x1ff)];},'abortController':_0x17bbe2[_0x525e41(0x1e5)]};}[_0x19af65(0x1d9)](_0x4fd894,_0x3e41c8){const _0x24c536=_0x19af65,_0x287a69=this[_0x24c536(0x20e)](_0x24c536(0x1c5)+_0x4fd894+_0x24c536(0x197)+_0x3e41c8,_0x24c536(0x201));return{'execute':async()=>{const _0x137b6e=_0x24c536;await _0x287a69[_0x137b6e(0x1ff)];},'abortController':_0x287a69[_0x24c536(0x1e5)]};}[_0x19af65(0x1f3)]({reviewName:_0x3d8122,content:_0x476c01,args:_0xd49357}){const _0x49295e=_0x19af65,_0x389f36=this[_0x49295e(0x20e)](_0x49295e(0x1e6)+_0x3d8122+_0x49295e(0x1e0),_0x49295e(0x211),{'content':[{'type':_0x49295e(0x219),'content':_0x476c01}],'args':_0xd49357});return{'getStream':async()=>{const _0xd52e53=_0x49295e,_0x2f2666=(await _0x389f36[_0xd52e53(0x1ff)])[_0xd52e53(0x21c)];return this[_0xd52e53(0x1d6)](_0x2f2666);},'abortController':_0x389f36[_0x49295e(0x1e5)]};}[_0x19af65(0x223)]({content:_0x415600,prompt:_0x5b67e6,model:_0x14f497}){const _0x2902c6=_0x19af65,_0x313aca=this[_0x2902c6(0x20e)](_0x2902c6(0x1c3),_0x2902c6(0x211),{'content':[{'type':_0x2902c6(0x219),'content':_0x415600}],'prompt':_0x5b67e6,'model':_0x14f497});return{'getStream':async()=>{const _0x2e3242=_0x2902c6,_0x568ec5=(await _0x313aca[_0x2e3242(0x1ff)])[_0x2e3242(0x21c)];return this[_0x2e3242(0x1d6)](_0x568ec5);},'abortController':_0x313aca[_0x2902c6(0x1e5)]};}[_0x19af65(0x1a6)](_0x4deacd,_0x2a0694,_0x22d155){const _0xf1763e=_0x19af65,_0x5f4f10=this[_0xf1763e(0x20e)](_0xf1763e(0x1c5)+_0x4deacd+_0xf1763e(0x1b1)+_0x2a0694+_0xf1763e(0x206),_0xf1763e(0x1a3),{'positiveCount':_0x22d155[_0xf1763e(0x1c4)],'totalCount':_0x22d155[_0xf1763e(0x1d4)],'modificationId':_0x22d155[_0xf1763e(0x1f4)]});return{'execute':async()=>{const _0xeb6ad8=_0xf1763e;await _0x5f4f10[_0xeb6ad8(0x1ff)];},'abortController':_0x5f4f10[_0xf1763e(0x1e5)]};}[_0x19af65(0x1c1)](_0x336543,_0x127247,_0x2216f1){const _0x5ee344=_0x19af65,_0x176353=this[_0x5ee344(0x20e)](_0x5ee344(0x1ac)+_0x336543+_0x5ee344(0x208)+_0x127247+_0x5ee344(0x206),_0x5ee344(0x1a3),{'positiveCount':_0x2216f1[_0x5ee344(0x1c4)],'totalCount':_0x2216f1[_0x5ee344(0x1d4)]});return{'execute':async()=>{const _0xad6e5f=_0x5ee344;await _0x176353[_0xad6e5f(0x1ff)];},'abortController':_0x176353[_0x5ee344(0x1e5)]};}[_0x19af65(0x1ae)](_0x2b3ebb,_0x339c2b){const _0x5b0791=_0x19af65,_0x565d4e=this[_0x5b0791(0x20e)](_0x5b0791(0x1df)+_0x2b3ebb+_0x5b0791(0x206),_0x5b0791(0x1a3),{'positiveCount':_0x339c2b[_0x5b0791(0x1c4)],'totalCount':_0x339c2b[_0x5b0791(0x1d4)]});return{'execute':async()=>{const _0x18d849=_0x5b0791;await _0x565d4e[_0x18d849(0x1ff)];},'abortController':_0x565d4e[_0x5b0791(0x1e5)]};}[_0x19af65(0x1a2)](_0x4b5304,_0xf493bb,_0x388a5e,_0x343453){const _0x11bb5c=_0x19af65,_0x564870=this[_0x11bb5c(0x20e)](_0x11bb5c(0x1e6)+_0x4b5304+_0x11bb5c(0x208)+_0xf493bb+_0x11bb5c(0x206),_0x11bb5c(0x1a3),{'positiveCount':_0x388a5e[_0x11bb5c(0x1c4)],'totalCount':_0x388a5e[_0x11bb5c(0x1d4)],'dataId':_0x343453});return{'execute':async()=>{const _0x4e3041=_0x11bb5c;await _0x564870[_0x4e3041(0x1ff)];},'abortController':_0x564870[_0x11bb5c(0x1e5)]};}[_0x19af65(0x1fe)](_0x27b879,_0x4c2b5b,_0xf6c6df){const _0x660d7=_0x19af65,_0x5cec66=this[_0x660d7(0x20e)](_0x660d7(0x205)+_0x27b879+_0x660d7(0x206),_0x660d7(0x1a3),{'positiveCount':_0x4c2b5b[_0x660d7(0x1c4)],'totalCount':_0x4c2b5b[_0x660d7(0x1d4)],'dataId':_0xf6c6df});return{'execute':async()=>{const _0x2b4df2=_0x660d7;await _0x5cec66[_0x2b4df2(0x1ff)];},'abortController':_0x5cec66[_0x660d7(0x1e5)]};}[_0x19af65(0x20e)](_0x1b4091,_0x2b4d54,_0x4530bc){const _0x5b93ed=_0x19af65,_0x5331ca=new AbortController(),_0x426f64=_0x4530bc instanceof FormData,_0x11ec56={'Authorization':_0x5b93ed(0x1a5)+this[_0x5b93ed(0x222)]?.[_0x5b93ed(0x1f6)]};_0x4530bc&&!_0x426f64&&(_0x11ec56[_0x5b93ed(0x1ed)]=_0x5b93ed(0x1e7));const _0x5eb24b={'method':_0x2b4d54,'headers':_0x11ec56,'signal':_0x5331ca[_0x5b93ed(0x1b9)]};return _0x4530bc&&(_0x5eb24b[_0x5b93ed(0x21c)]=_0x426f64?_0x4530bc:JSON[_0x5b93ed(0x1ce)](_0x4530bc)),{'request':fetch(''+this[_0x5b93ed(0x196)]+_0x1b4091,_0x5eb24b)[_0x5b93ed(0x1dc)](_0x4471cf=>{const _0x10c486=_0x5b93ed;this[_0x10c486(0x1ee)](_0x4471cf);})[_0x5b93ed(0x200)](_0xf90b78=>_0xf90b78['ok']?_0xf90b78:_0xf90b78[_0x5b93ed(0x224)]()[_0x5b93ed(0x200)](_0x4fe41d=>{const _0x58723a=_0x5b93ed;throw{'url':this[_0x58723a(0x196)],'path':_0x1b4091,'method':_0x2b4d54,'body':_0x4530bc,'status':(_0xf90b78||{})[_0x58723a(0x207)],'statusText':(_0xf90b78||{})[_0x58723a(0x1bc)],'code':_0x4fe41d[_0x58723a(0x20a)],'message':_0x4fe41d[_0x58723a(0x21e)],'traceId':_0x4fe41d[_0x58723a(0x19a)]};})),'abortController':_0x5331ca};}async*[_0x19af65(0x1d6)](_0x2390fd){const _0x38f3af=_0x19af65,_0x575ba4=[],_0x30f67b=_0x2390fd[_0x38f3af(0x198)](),_0x19cf48=_0x3d2955({'onError':_0x416d0e=>{const _0x5dae56=_0x38f3af;this[_0x5dae56(0x1ee)](_0x416d0e);},'onEvent':_0x38f0dd=>{const _0x3d846b=_0x38f3af;_0x38f0dd[_0x3d846b(0x19d)]=JSON[_0x3d846b(0x1a8)](_0x38f0dd[_0x3d846b(0x19d)]),_0x575ba4[_0x3d846b(0x1f1)](_0x38f0dd);}});try{let _0x58d53d=!0x1;for(;!_0x58d53d;){const {done:_0x20856b,value:_0x396428}=await _0x30f67b[_0x38f3af(0x1fc)]();_0x20856b&&(_0x58d53d=!0x0),_0x19cf48[_0x38f3af(0x1da)](this[_0x38f3af(0x1e8)][_0x38f3af(0x1c8)](_0x396428,{'stream':!0x0})),yield*_0x575ba4,_0x575ba4[_0x38f3af(0x1b5)]=0x0;}}catch(_0x27e0f2){this[_0x38f3af(0x1ee)](_0x27e0f2);}finally{_0x30f67b[_0x38f3af(0x194)](),_0x19cf48[_0x38f3af(0x21d)]();}}[_0x19af65(0x1ee)](_0x103b3d){const _0x5257ef=_0x19af65;if(_0x103b3d instanceof _0x70b51)throw _0x103b3d;if(_0x103b3d instanceof Error&&_0x5257ef(0x1cb)===_0x103b3d[_0x5257ef(0x1e4)])throw new _0x70b51(_0x5257ef(0x1a1),this,{'originalError':_0x103b3d});throw new _0x70b51(_0x5257ef(0x216),this,{'originalError':_0x103b3d});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x11e2(_0x3e7440,_0x250829){const _0x4e34ee=_0x4e34();return _0x11e2=function(_0x11e2ed,_0x18f2d2){_0x11e2ed=_0x11e2ed-0x17d;let _0x210548=_0x4e34ee[_0x11e2ed];return _0x210548;},_0x11e2(_0x3e7440,_0x250829);}const _0x45920a=_0x11e2;function _0x4e34(){const _0x2b48c5=['substring','version','markerName','311620wcxHAs','ck-fake-ai-selection','change','getSelectedContent','isAtEnd','removeMarker','trim','showFakeVisualSelection','name','getSelectionText','floor','$textProxy','getMarkersGroup','data-id','sort','isPremiumPlugin','start','markerToHighlight','AIEditing','length','plugins','createUIElement','dataDowncast','createRange','fromCharCode','ai-selection:','_integrateEditor','addMarker','getChildren','15435mqczsy','markerToElement','843756Ksqpni','_getMarkersInDocumentOrder','containerElement','_setDataIdsOnChildren','isContent','_sessionId','listenTo',':end>','document','_displayedFakeSelectionId','ready','markers',':end></','ai-selection','580860joQzOO','for','getWalker','pluginName','has','from','1929810hamwDC','selection','_displayedFakeSelectionLocked','getLastMatchingPosition','77fNDZtk','createRangeIn','view','_nextDataId','context','end','5uRtklk','10876FnQaOV','isOfficialPlugin','modelToViewWithIds','getStart','push','hideFakeVisualSelection','setAttribute',':start></','editingDowncast','convertAiChatSelectionMarker','afterInit','isBefore','editors','add','data','1128720FxdnzQ','isAfter','toView','model','get','6pLsExP','editing','sessionId','getRoot','processor','indexOf','ck-ai-assistant-ui_theme','element','random','getDocumentData','isOpening','RealTimeCollaborationClient','schema',':start>','conversion','472liuaos','21uMmYeF','join','toData','getSelection','removeAllRanges','emptyElement'];_0x4e34=function(){return _0x2b48c5;};return _0x4e34();}(function(_0x395fbf,_0x592132){const _0x4f0224=_0x11e2,_0x483133=_0x395fbf();while(!![]){try{const _0x53b07c=-parseInt(_0x4f0224(0x1a7))/0x1*(parseInt(_0x4f0224(0x183))/0x2)+-parseInt(_0x4f0224(0x197))/0x3*(-parseInt(_0x4f0224(0x1b0))/0x4)+-parseInt(_0x4f0224(0x182))/0x5*(-parseInt(_0x4f0224(0x192))/0x6)+parseInt(_0x4f0224(0x1cd))/0x7*(parseInt(_0x4f0224(0x1a6))/0x8)+parseInt(_0x4f0224(0x1dd))/0x9+parseInt(_0x4f0224(0x1e3))/0xa+-parseInt(_0x4f0224(0x1e7))/0xb*(parseInt(_0x4f0224(0x1cf))/0xc);if(_0x53b07c===_0x592132)break;else _0x483133['push'](_0x483133['shift']());}catch(_0x4eacc2){_0x483133['push'](_0x483133['shift']());}}}(_0x4e34,0x1e8e5));import{ViewDowncastWriter as _0x4b14df}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x127204,Editor as _0x55623a}from'ckeditor5/src/core.js';import{uid as _0xf27a88}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x5b4e51}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x45920a(0x1dc);export class AIEditing extends _0x127204{[_0x45920a(0x1d8)]=null;[_0x45920a(0x1e5)]=!0x1;[_0x45920a(0x1d4)];static get[_0x45920a(0x1e0)](){const _0x3f3ef6=_0x45920a;return _0x3f3ef6(0x1c2);}static get[_0x45920a(0x184)](){return!0x0;}static get[_0x45920a(0x1bf)](){return!0x0;}get[_0x45920a(0x199)](){const _0x2d2568=_0x45920a;if(!this[_0x2d2568(0x1d4)]){const _0x3f3f2c=_0x5b4e51(this[_0x2d2568(0x180)]),_0x5236e5=_0x3f3f2c[_0x2d2568(0x1c4)][_0x2d2568(0x1e1)](_0x2d2568(0x1a2))&&_0x3f3f2c[_0x2d2568(0x1c4)][_0x2d2568(0x196)](_0x2d2568(0x1a2))[_0x2d2568(0x199)];this[_0x2d2568(0x1d4)]=_0x5236e5||_0xf27a88();}return this[_0x2d2568(0x1d4)];}[_0x45920a(0x1a0)](){const _0x3f8193=_0x45920a,_0x558b39=_0x5b4e51(this[_0x3f8193(0x180)]),_0x4d307a=_0x558b39[_0x3f8193(0x195)],_0x41b54a=_0x558b39[_0x3f8193(0x191)][_0x3f8193(0x194)](_0x4d307a[_0x3f8193(0x1d7)][_0x3f8193(0x19a)](),{'convertAiChatSelectionMarker':!0x0}),_0x51b07f=new _0x4b14df(_0x558b39[_0x3f8193(0x198)][_0x3f8193(0x17e)][_0x3f8193(0x1d7)]);this[_0x3f8193(0x1d2)](_0x41b54a,_0x51b07f);let _0x2418ed=_0x558b39[_0x3f8193(0x191)][_0x3f8193(0x19b)][_0x3f8193(0x1a9)](_0x41b54a);const _0x57e9a4=this[_0x3f8193(0x1d0)](),_0x3467de=[];for(const _0x5574ed of _0x57e9a4){const _0x2b6da5='<'+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x18a)+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x1a4),_0x4e1fc6=_0x2418ed[_0x3f8193(0x19c)](_0x2b6da5);_0x2418ed=_0x2418ed[_0x3f8193(0x1ad)](0x0,_0x4e1fc6)+_0x2418ed[_0x3f8193(0x1ad)](_0x4e1fc6+_0x2b6da5[_0x3f8193(0x1c3)]);const _0xd4b6ce='<'+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x1db)+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x1d6),_0x19c409=_0x2418ed[_0x3f8193(0x19c)](_0xd4b6ce);_0x2418ed=_0x2418ed[_0x3f8193(0x1ad)](0x0,_0x19c409)+_0x2418ed[_0x3f8193(0x1ad)](_0x19c409+_0xd4b6ce[_0x3f8193(0x1c3)]),_0x3467de[_0x3f8193(0x187)]({'markerName':_0x5574ed[_0x3f8193(0x1b8)],'start':_0x4e1fc6,'end':_0x19c409,'htmlFragment':_0x2418ed[_0x3f8193(0x1ad)](_0x4e1fc6,_0x19c409)});}return{'content':_0x2418ed,'version':_0x558b39[_0x3f8193(0x195)][_0x3f8193(0x1d7)][_0x3f8193(0x1ae)],'sessionId':this[_0x3f8193(0x199)],'selections':_0x3467de};}async[_0x45920a(0x18d)](){const _0x2a4845=_0x45920a;this[_0x2a4845(0x180)]instanceof _0x55623a?this[_0x2a4845(0x1ca)](this[_0x2a4845(0x180)]):this[_0x2a4845(0x1d5)](this[_0x2a4845(0x180)][_0x2a4845(0x18f)],_0x2a4845(0x190),(_0x44e546,_0x404c2a)=>{const _0x13460d=_0x2a4845;_0x404c2a['on'](_0x13460d(0x1d9),()=>{const _0x2c8f43=_0x13460d;this[_0x2c8f43(0x1ca)](_0x404c2a);});});}[_0x45920a(0x1ca)](_0x393219){const _0x4a9949=_0x45920a;_0x393219[_0x4a9949(0x1a5)][_0x4a9949(0x1de)](_0x4a9949(0x18b))[_0x4a9949(0x1c1)]({'model':_0x4a9949(0x1dc),'view':{'classes':[_0x4a9949(0x1b1),_0x4a9949(0x19d)],'priority':0xc}}),_0x393219[_0x4a9949(0x1a5)][_0x4a9949(0x1de)](_0x4a9949(0x1c6))[_0x4a9949(0x1ce)]({'model':_0x4a9949(0x1dc),'view':(_0x2266a9,{writer:_0x592c6f,options:_0x115388})=>_0x115388[_0x4a9949(0x18c)]?_0x592c6f[_0x4a9949(0x1c5)](_0x2266a9[_0x4a9949(0x1af)]+':'+(_0x2266a9[_0x4a9949(0x1a1)]?_0x4a9949(0x1c0):_0x4a9949(0x181))):null});}[_0x45920a(0x1b7)](_0x56a470,_0x4f210d,_0x17ee13=!0x1,_0x298f60=!0x1){const _0x317f80=_0x45920a;if(this[_0x317f80(0x1e5)]&&!_0x298f60)return!0x1;const _0x48f102=_0x5b4e51(this[_0x317f80(0x180)])[_0x317f80(0x195)];return _0x48f102[_0x317f80(0x1b2)](_0x2f91c8=>{const _0x25ffea=_0x317f80;this[_0x25ffea(0x1d8)]&&this[_0x25ffea(0x188)](this[_0x25ffea(0x1d8)]),this[_0x25ffea(0x1d8)]=_0x4f210d,this[_0x25ffea(0x1e5)]=_0x17ee13;let _0x1aaff3=0x0;for(let _0x17de31 of _0x56a470){const _0x5b6f5b=_0x25ffea(0x1c9)+_0x1aaff3;if(_0x17de31[_0x25ffea(0x1c0)][_0x25ffea(0x1b4)]){const _0x1ca6a1=_0x17de31[_0x25ffea(0x1c0)][_0x25ffea(0x1e6)](({item:_0xa9d969})=>!_0x48f102[_0x25ffea(0x1a3)][_0x25ffea(0x1d3)](_0xa9d969),{'boundaries':_0x17de31});_0x17de31=_0x2f91c8[_0x25ffea(0x1c7)](_0x1ca6a1,_0x17de31[_0x25ffea(0x181)]);}_0x2f91c8[_0x25ffea(0x1cb)](_0x5b6f5b,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x17de31}),_0x1aaff3++;}}),window[_0x317f80(0x1aa)]()?.[_0x317f80(0x1ab)](),!0x0;}[_0x45920a(0x188)](_0x1dbc02){const _0x3ab524=_0x45920a;if(this[_0x3ab524(0x1d8)]!=_0x1dbc02)return!0x1;this[_0x3ab524(0x1d8)]=null,this[_0x3ab524(0x1e5)]=!0x1;const _0x1d10f3=_0x5b4e51(this[_0x3ab524(0x180)]),_0xfdb2e5=_0x1d10f3[_0x3ab524(0x195)][_0x3ab524(0x1da)][_0x3ab524(0x1bc)](_0x3ab524(0x1dc));return _0x1d10f3[_0x3ab524(0x195)][_0x3ab524(0x1b2)](_0x23e932=>{const _0x26720a=_0x3ab524;for(const _0x2d24ff of _0xfdb2e5)_0x23e932[_0x26720a(0x1b5)](_0x2d24ff);}),!0x0;}[_0x45920a(0x185)](_0x4f5fd4){const _0x2a87bf=_0x45920a,_0x5580d2=_0x5b4e51(this[_0x2a87bf(0x180)]),_0x227c15=_0x5580d2[_0x2a87bf(0x191)][_0x2a87bf(0x194)](_0x4f5fd4),_0x2294fe=new _0x4b14df(_0x5580d2[_0x2a87bf(0x198)][_0x2a87bf(0x17e)][_0x2a87bf(0x1d7)]);return this[_0x2a87bf(0x1d2)](_0x227c15,_0x2294fe),_0x227c15;}[_0x45920a(0x1d2)](_0x1f5401,_0x4a7e70){const _0x3296bb=_0x45920a;let _0x58dccd=!0x1;const _0x5411fe=new Set();for(const _0x2a8400 of _0x1f5401[_0x3296bb(0x1cc)]()){const _0x124d96=_0x2a8400['is'](_0x3296bb(0x1ac))||_0x2a8400['is'](_0x3296bb(0x1d1));if(!_0x2a8400['is'](_0x3296bb(0x19e)))continue;(this[_0x3296bb(0x1d2)](_0x2a8400,_0x4a7e70)||_0x124d96)&&(_0x4a7e70[_0x3296bb(0x189)](_0x3296bb(0x1bd),this[_0x3296bb(0x17f)](_0x5411fe),_0x2a8400),_0x58dccd=!0x0);}return _0x58dccd;}[_0x45920a(0x17f)](_0x179959){const _0x37f1df=_0x45920a;let _0x29099d;do{_0x29099d='';for(let _0x553649=0x0;_0x553649<0x4;_0x553649++)_0x29099d+=String[_0x37f1df(0x1c8)](0x61+Math[_0x37f1df(0x1ba)](0x1a*Math[_0x37f1df(0x19f)]()));}while(_0x179959[_0x37f1df(0x1e1)](_0x29099d));return _0x179959[_0x37f1df(0x190)](_0x29099d),_0x29099d;}[_0x45920a(0x1b9)](){const _0x211015=_0x45920a,{model:_0xc7e114}=_0x5b4e51(this[_0x211015(0x180)]),_0x544fbe=_0xc7e114[_0x211015(0x1d7)][_0x211015(0x1e4)],_0x20c0db=_0xc7e114[_0x211015(0x1b3)](_0x544fbe),_0x22790d=[],_0x591e69=_0xc7e114[_0x211015(0x17d)](_0x20c0db)[_0x211015(0x1df)]();for(const {item:_0x30b4ce}of _0x591e69)_0x30b4ce['is'](_0x211015(0x1bb))?_0x22790d[_0x211015(0x187)](_0x30b4ce[_0x211015(0x191)]):_0x30b4ce['is'](_0x211015(0x19e))&&_0x22790d[_0x211015(0x1c3)]>0x0&&'\x20'!==_0x22790d[_0x22790d[_0x211015(0x1c3)]-0x1]&&_0x22790d[_0x211015(0x187)]('\x20');return'\x22'+_0x22790d[_0x211015(0x1a8)]('')[_0x211015(0x1b6)]()+'\x22';}[_0x45920a(0x1d0)](){const _0x395d20=_0x45920a,_0x58af35=_0x5b4e51(this[_0x395d20(0x180)])[_0x395d20(0x195)];return Array[_0x395d20(0x1e2)](_0x58af35[_0x395d20(0x1da)][_0x395d20(0x1bc)](_0x395d20(0x1dc)))[_0x395d20(0x1be)]((_0x44a9de,_0x20d19e)=>_0x44a9de[_0x395d20(0x186)]()[_0x395d20(0x18e)](_0x20d19e[_0x395d20(0x186)]())?-0x1:_0x44a9de[_0x395d20(0x186)]()[_0x395d20(0x193)](_0x20d19e[_0x395d20(0x186)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5365(_0x119598,_0x4e6ffc){const _0x20931=_0x2093();return _0x5365=function(_0x536544,_0x254e6c){_0x536544=_0x536544-0x103;let _0x368650=_0x20931[_0x536544];return _0x368650;},_0x5365(_0x119598,_0x4e6ffc);}const _0x255eac=_0x5365;(function(_0x33e474,_0x4e384b){const _0x4e4a6d=_0x5365,_0xa4611b=_0x33e474();while(!![]){try{const _0x9757c8=-parseInt(_0x4e4a6d(0x119))/0x1*(parseInt(_0x4e4a6d(0x115))/0x2)+-parseInt(_0x4e4a6d(0x10a))/0x3*(-parseInt(_0x4e4a6d(0x116))/0x4)+-parseInt(_0x4e4a6d(0x107))/0x5*(-parseInt(_0x4e4a6d(0x11a))/0x6)+parseInt(_0x4e4a6d(0x11b))/0x7+parseInt(_0x4e4a6d(0x11d))/0x8+parseInt(_0x4e4a6d(0x103))/0x9+parseInt(_0x4e4a6d(0x105))/0xa*(-parseInt(_0x4e4a6d(0x111))/0xb);if(_0x9757c8===_0x4e384b)break;else _0xa4611b['push'](_0xa4611b['shift']());}catch(_0x56b753){_0xa4611b['push'](_0xa4611b['shift']());}}}(_0x2093,0x8aa38));import{EmitterMixin as _0x411d27}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x255eac(0x108)];function _0x2093(){const _0x30850b=['init','webSearch','isWebSearchEnabled','getCapabilitiesConfig','fire','11btxPAP','setReasoning','reasoning','reset','304296bAdUCi','4hUyWRF','toggleWebSearch','_isReasoningEnabled','1TNnezP','162sDGHmu','1533770wETolA','isReasoningEnabled','5530768SIxSmx','263916cipYsg','_isWebSearchEnabled','9646090FEXnSz','getCapabilitiesRequestData','5085JHhgdi','capabilitiesUpdated','setWebSearch','2152146OrpnFG','toggleReasoning'];_0x2093=function(){return _0x30850b;};return _0x2093();}export class AICapabilities extends _0x411d27(){[_0x255eac(0x104)];[_0x255eac(0x118)];constructor(){const _0xc214cd=_0x255eac;super(),this[_0xc214cd(0x104)]=!0x1,this[_0xc214cd(0x118)]=!0x1;}[_0x255eac(0x10c)](){const _0x5d713a=_0x255eac;this[_0x5d713a(0x114)]();}[_0x255eac(0x114)](){const _0x2fb8c4=_0x255eac;this[_0x2fb8c4(0x109)](!0x1),this[_0x2fb8c4(0x112)](!0x1);}[_0x255eac(0x10f)](){const _0x2481bd=_0x255eac;return{'isWebSearchEnabled':this[_0x2481bd(0x104)],'isReasoningEnabled':this[_0x2481bd(0x118)]};}static[_0x255eac(0x106)](_0x3de8c1){const _0x539b65=_0x255eac,_0x5194d5={};return _0x3de8c1&&_0x3de8c1[_0x539b65(0x10e)]&&(_0x5194d5[_0x539b65(0x10d)]={}),_0x3de8c1&&_0x3de8c1[_0x539b65(0x11c)]&&(_0x5194d5[_0x539b65(0x113)]={}),_0x5194d5;}[_0x255eac(0x117)](){const _0x3a9296=_0x255eac;this[_0x3a9296(0x109)](!this[_0x3a9296(0x104)]);}[_0x255eac(0x10b)](){const _0x3b7eb8=_0x255eac;this[_0x3b7eb8(0x112)](!this[_0x3b7eb8(0x118)]);}[_0x255eac(0x109)](_0x14e720){const _0x7c3bba=_0x255eac;_0x14e720!==this[_0x7c3bba(0x104)]&&(this[_0x7c3bba(0x104)]=_0x14e720,this[_0x7c3bba(0x110)](_0x7c3bba(0x108),this[_0x7c3bba(0x10f)]()));}[_0x255eac(0x112)](_0x1e0d54){const _0x3d6a0d=_0x255eac;_0x1e0d54!==this[_0x3d6a0d(0x118)]&&(this[_0x3d6a0d(0x118)]=_0x1e0d54,this[_0x3d6a0d(0x110)](_0x3d6a0d(0x108),this[_0x3d6a0d(0x10f)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x32ecaf,_0x228cd1){var _0x3856cd=_0xcf8e,_0x2d44ee=_0x32ecaf();while(!![]){try{var _0x2c9892=-parseInt(_0x3856cd(0x105))/0x1*(parseInt(_0x3856cd(0x10e))/0x2)+parseInt(_0x3856cd(0x101))/0x3*(-parseInt(_0x3856cd(0xfc))/0x4)+parseInt(_0x3856cd(0x109))/0x5*(parseInt(_0x3856cd(0x106))/0x6)+-parseInt(_0x3856cd(0x100))/0x7*(-parseInt(_0x3856cd(0xfa))/0x8)+-parseInt(_0x3856cd(0x108))/0x9+parseInt(_0x3856cd(0x102))/0xa+parseInt(_0x3856cd(0x113))/0xb*(-parseInt(_0x3856cd(0x110))/0xc);if(_0x2c9892===_0x228cd1)break;else _0x2d44ee['push'](_0x2d44ee['shift']());}catch(_0x3c0bc1){_0x2d44ee['push'](_0x2d44ee['shift']());}}}(_0x23f4,0xd6b10));function _0xcf8e(_0x5e07dc,_0xe0235b){var _0x23f41c=_0x23f4();return _0xcf8e=function(_0xcf8e88,_0x229b5d){_0xcf8e88=_0xcf8e88-0xfa;var _0x171472=_0x23f41c[_0xcf8e88];return _0x171472;},_0xcf8e(_0x5e07dc,_0xe0235b);}export var AIContextItemType;!function(_0xfdda8b){var _0x2e37a2=_0xcf8e;_0xfdda8b[_0x2e37a2(0x107)]=_0x2e37a2(0x10b),_0xfdda8b[_0x2e37a2(0x10a)]=_0x2e37a2(0x104),_0xfdda8b[_0x2e37a2(0x10c)]=_0x2e37a2(0xff),_0xfdda8b[_0x2e37a2(0x112)]=_0x2e37a2(0xfd),_0xfdda8b[_0x2e37a2(0x10f)]=_0x2e37a2(0xfe);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x23f4(){var _0x2daad4=['html','TEXT','13607aKYFTn','32iVxXrb','HTML','4KgKKxw','text','selection','web-resource','2891483XjrQqv','1787511RxJkAf','5224120HrqRGp','markdown','document','25BuJaws','8825244THLfEy','FILE','2537910nLdEvx','5uvDrRn','DOCUMENT','file','URL','MARKDOWN','36572xNZEPm','SELECTION','13884zXYCCH'];_0x23f4=function(){return _0x2daad4;};return _0x23f4();}!function(_0x451b63){var _0x38025a=_0xcf8e;_0x451b63[_0x38025a(0x112)]=_0x38025a(0xfd),_0x451b63[_0x38025a(0x10d)]=_0x38025a(0x103),_0x451b63[_0x38025a(0xfb)]=_0x38025a(0x111);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5d3bcb=_0x41b7;function _0xbb22(){const _0x4a904a=['messageId','48biNrnP','getDocumentContext','abort','isDestroyed','start','2207862VnQFaW','21740AqLBon','510041QkAcgt','24hDkCvR','stop','242OMMGaf','setConversationTitle','forEach','interactionDestroyed','push','done','destroy','425460QycSyc','reasoningStarted','11622660AtuKcr','abortController','interactionFinished','reasoning','currentRequest','modification-delta','_isReasoning','400442OAFYVv','splice','isStopped','error','appendContent','_isWebSearching','createReply','1IcSZVz','editor','95bCaWsw','data','interactionCreated','connector','textDelta','currentReply','_finalizeInteraction','reasoningFinished','find','fire','conversationTitle','getReply','853677ofKDmk','action-metadata','replyChangeGroupStateUpdated','sources','ai-chat-interaction-error','web-search','replyCreated','stopListening','delegate','event','interactionStopped','interactionStarted','content','actionCallId','callId','webSearchFinished','getStream','length','webSearchStarted','message-metadata','replyContentUpdated','replies','sendRequest','source'];_0xbb22=function(){return _0x4a904a;};return _0xbb22();}function _0x41b7(_0x1d3c65,_0x5db946){const _0xbb2297=_0xbb22();return _0x41b7=function(_0x41b7e4,_0x324673){_0x41b7e4=_0x41b7e4-0x18c;let _0x300dd6=_0xbb2297[_0x41b7e4];return _0x300dd6;},_0x41b7(_0x1d3c65,_0x5db946);}(function(_0x149968,_0x31a8f5){const _0x44f6ce=_0x41b7,_0x4e00cd=_0x149968();while(!![]){try{const _0x49f316=-parseInt(_0x44f6ce(0x1c1))/0x1*(parseInt(_0x44f6ce(0x1ba))/0x2)+parseInt(_0x44f6ce(0x1cf))/0x3+parseInt(_0x44f6ce(0x1a6))/0x4*(-parseInt(_0x44f6ce(0x1c3))/0x5)+parseInt(_0x44f6ce(0x1a0))/0x6*(-parseInt(_0x44f6ce(0x1a7))/0x7)+-parseInt(_0x44f6ce(0x1a8))/0x8*(parseInt(_0x44f6ce(0x1a5))/0x9)+parseInt(_0x44f6ce(0x1b3))/0xa+-parseInt(_0x44f6ce(0x1aa))/0xb*(-parseInt(_0x44f6ce(0x1b1))/0xc);if(_0x49f316===_0x31a8f5)break;else _0x4e00cd['push'](_0x4e00cd['shift']());}catch(_0xa2062b){_0x4e00cd['push'](_0x4e00cd['shift']());}}}(_0xbb22,0x9394b));import{CKEditorError as _0x2dcb49,EmitterMixin as _0x208964,uid as _0x57a4e0}from'ckeditor5/src/utils.js';import{AIReply as _0x39c078,isIgnoredReplyType as _0x41d486,isValidReplyType as _0x3627cb,isReplyTitleType as _0xb3238d,isSourceType as _0x1c2cb5}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x5d3bcb(0x1c5),_0x5d3bcb(0x192),_0x5d3bcb(0x191),_0x5d3bcb(0x1b5),_0x5d3bcb(0x1ad),_0x5d3bcb(0x18d),_0x5d3bcb(0x19b),_0x5d3bcb(0x1d1),_0x5d3bcb(0x1ab),_0x5d3bcb(0x199),_0x5d3bcb(0x196),_0x5d3bcb(0x1b2),_0x5d3bcb(0x1ca),_0x5d3bcb(0x1bd)];export class AIInteraction extends _0x208964(){['id'];[_0x5d3bcb(0x19c)]=[];[_0x5d3bcb(0x1c8)];[_0x5d3bcb(0x19f)];[_0x5d3bcb(0x194)];[_0x5d3bcb(0x1b7)];[_0x5d3bcb(0x1c6)];[_0x5d3bcb(0x1bc)]=!0x1;[_0x5d3bcb(0x1a3)]=!0x1;[_0x5d3bcb(0x1c2)];[_0x5d3bcb(0x1b9)]=!0x1;[_0x5d3bcb(0x1bf)]=!0x1;constructor({connector:_0x85194f,editor:_0x112f3f}){const _0x515eff=_0x5d3bcb;super(),this['id']=_0x57a4e0(),this[_0x515eff(0x1c6)]=_0x85194f,this[_0x515eff(0x1bc)]=!0x0,this[_0x515eff(0x1c2)]=_0x112f3f;}async[_0x5d3bcb(0x1a4)](){const _0x31033a=_0x5d3bcb;let _0xf50c2b;const _0x2f0486=[];this[_0x31033a(0x1bc)]=!0x1;try{this[_0x31033a(0x1b7)]=await this[_0x31033a(0x19d)](),this[_0x31033a(0x1cc)](_0x31033a(0x192),this);const _0x19ed33=await this[_0x31033a(0x1b7)][_0x31033a(0x197)]();for await(const _0x2b3bfd of _0x19ed33){if(this[_0x31033a(0x1bc)])return;if(_0x31033a(0x1bd)===_0x2b3bfd[_0x31033a(0x190)])return void this[_0x31033a(0x1cc)](_0x31033a(0x1bd),{'error':new _0x2dcb49(_0x31033a(0x1d3),this)});if(_0x31033a(0x19a)!==_0x2b3bfd[_0x31033a(0x190)]){if(_0x31033a(0x1d0)!==_0x2b3bfd[_0x31033a(0x190)]){if(_0xb3238d(_0x2b3bfd[_0x31033a(0x190)])&&this[_0x31033a(0x1ab)](_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x1cd)],!0x0),_0x1c2cb5(_0x2b3bfd[_0x31033a(0x190)]))_0x2f0486[_0x31033a(0x1ae)](_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x19e)]);else{if(_0x3627cb(_0x2b3bfd[_0x31033a(0x190)])){if(_0x2b3bfd[_0x31033a(0x190)]!==_0xf50c2b){if(_0xf50c2b=_0x2b3bfd[_0x31033a(0x190)],_0x31033a(0x18c)===_0x2b3bfd[_0x31033a(0x190)]){this[_0x31033a(0x1bf)]||(this[_0x31033a(0x1bf)]=!0x0,this[_0x31033a(0x1cc)](_0x31033a(0x199),this));continue;}if(_0x31033a(0x1b6)===_0x2b3bfd[_0x31033a(0x190)]){this[_0x31033a(0x1b9)]||(this[_0x31033a(0x1b9)]=!0x0,this[_0x31033a(0x1cc)](_0x31033a(0x1b2),this));continue;}this[_0x31033a(0x1b9)]&&(this[_0x31033a(0x1b9)]=!0x1,this[_0x31033a(0x1cc)](_0x31033a(0x1ca),this)),this[_0x31033a(0x1bf)]&&(this[_0x31033a(0x1bf)]=!0x1,this[_0x31033a(0x1cc)](_0x31033a(0x196),this)),this[_0x31033a(0x1c8)]&&this[_0x31033a(0x1c8)][_0x31033a(0x1af)](),this[_0x31033a(0x1c8)]=this[_0x31033a(0x1c0)]({'type':_0x2b3bfd[_0x31033a(0x190)],'interactionId':this['id'],'id':_0x2b3bfd[_0x31033a(0x1c4)]?.['id']}),_0x2f0486[_0x31033a(0x198)]>0x0&&_0x31033a(0x1b8)===_0x2b3bfd[_0x31033a(0x190)]&&(this[_0x31033a(0x1c8)][_0x31033a(0x1d2)]=_0x2f0486[_0x31033a(0x1bb)](0x0));}_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x1c7)]&&this[_0x31033a(0x1c8)][_0x31033a(0x1be)](_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x1c7)]);}else _0x41d486(_0x2b3bfd[_0x31033a(0x190)]);}}else this[_0x31033a(0x194)]=_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x195)];}else this[_0x31033a(0x19f)]=_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x19f)];}}finally{this[_0x31033a(0x1bc)]||(_0x2f0486[_0x31033a(0x198)]>0x0&&(this[_0x31033a(0x1c8)][_0x31033a(0x1d2)]=_0x2f0486[_0x31033a(0x1bb)](0x0)),this[_0x31033a(0x1c9)](),this[_0x31033a(0x1cc)](_0x31033a(0x1b5),this));}}[_0x5d3bcb(0x1a9)](){const _0x1b57ab=_0x5d3bcb;this[_0x1b57ab(0x1bc)]||(this[_0x1b57ab(0x1c9)](),this[_0x1b57ab(0x1cc)](_0x1b57ab(0x191),this));}[_0x5d3bcb(0x1ce)](_0xa8c480){const _0x40200d=_0x5d3bcb;return this[_0x40200d(0x19c)][_0x40200d(0x1cb)](_0x35caef=>_0x35caef['id']===_0xa8c480);}[_0x5d3bcb(0x1b0)](){const _0x4a57a0=_0x5d3bcb;this[_0x4a57a0(0x1a3)]||(this[_0x4a57a0(0x1a9)](),this[_0x4a57a0(0x19c)][_0x4a57a0(0x1ac)](_0x580ac8=>_0x580ac8[_0x4a57a0(0x1b0)]()),this[_0x4a57a0(0x19c)]=[],this[_0x4a57a0(0x1a3)]=!0x0,this[_0x4a57a0(0x1cc)](_0x4a57a0(0x1ad),this),this[_0x4a57a0(0x18e)]());}[_0x5d3bcb(0x1c0)](_0x2d2034){const _0xe97b8=_0x5d3bcb,_0x598dd6=new _0x39c078({'editor':this[_0xe97b8(0x1c2)],'documentContextContent':this[_0xe97b8(0x1a1)]()?.[_0xe97b8(0x193)],..._0x2d2034});return this[_0xe97b8(0x19c)][_0xe97b8(0x1ae)](_0x598dd6),_0x598dd6[_0xe97b8(0x18f)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0xe97b8(0x1cc)](_0xe97b8(0x18d),_0x598dd6),_0x598dd6;}[_0x5d3bcb(0x1ab)](_0x49348f,_0x1ae1ba=!0x1){const _0x374f87=_0x5d3bcb;this[_0x374f87(0x1cc)](_0x374f87(0x1ab),_0x49348f,_0x1ae1ba);}[_0x5d3bcb(0x1c9)](){const _0x35b18f=_0x5d3bcb;this[_0x35b18f(0x1bc)]=!0x0,this[_0x35b18f(0x1b7)]&&this[_0x35b18f(0x1b7)][_0x35b18f(0x1b4)][_0x35b18f(0x1a2)](),this[_0x35b18f(0x1c8)]&&this[_0x35b18f(0x1c8)][_0x35b18f(0x1af)](),this[_0x35b18f(0x1b7)]=this[_0x35b18f(0x1c8)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x382154=_0x12e8;(function(_0x275bec,_0x543211){const _0x478b8e=_0x12e8,_0xdb502a=_0x275bec();while(!![]){try{const _0x8a71aa=-parseInt(_0x478b8e(0xe7))/0x1*(-parseInt(_0x478b8e(0xc2))/0x2)+parseInt(_0x478b8e(0xe0))/0x3*(-parseInt(_0x478b8e(0xe9))/0x4)+parseInt(_0x478b8e(0xc0))/0x5*(-parseInt(_0x478b8e(0xe4))/0x6)+parseInt(_0x478b8e(0xd4))/0x7+parseInt(_0x478b8e(0xc9))/0x8+parseInt(_0x478b8e(0xca))/0x9+parseInt(_0x478b8e(0xcc))/0xa*(-parseInt(_0x478b8e(0xc7))/0xb);if(_0x8a71aa===_0x543211)break;else _0xdb502a['push'](_0xdb502a['shift']());}catch(_0x30300e){_0xdb502a['push'](_0xdb502a['shift']());}}}(_0x3268,0x878bf));import{EmitterMixin as _0x48d61e,logWarning as _0x20acc9,logError as _0x42f31c}from'ckeditor5/src/utils.js';function _0x3268(){const _0x183f5a=['_filterModels','378713zbottY','isAvailable','138716DpYMtH','AI_MODEL_NAME_AUTO','some','getAvailableModels','getAll','40WRsuIg','_connector','4HdLfZj','string','length','_defaultModelId','map','10086043aUHjUA','description','4000984qVvoen','5317227zMsVdj','AI_MODEL_DESCRIPTION_','10FElxsT','_modelList','AI_MODEL_DESCRIPTION_AUTO','items','ai-models-unable-to-retrieve','_availableModels','getLocalized','push','1788493vdgzNT','_getModelById','toLocaleLowerCase','getDefault','toUpperCase','list','provider','ai-chat-model-id-unrecognized','startsWith','getModel','name','agent','39rPGQat','find','ai-chat-default-model-id-unrecognized','auto','135684qYhNbV','getModels'];_0x3268=function(){return _0x183f5a;};return _0x3268();}import{getTranslation as _0x4b6b53}from'../utils/common-translations.js';export class AIModels extends _0x48d61e(){[_0x382154(0xc1)];[_0x382154(0xd1)];[_0x382154(0xc5)];[_0x382154(0xcd)]=[];constructor({connector:_0x43a547,availableModels:_0x26a70c,defaultModelId:_0x11f378}){const _0x3b8f59=_0x382154;super(),this[_0x3b8f59(0xc1)]=_0x43a547,this[_0x3b8f59(0xd1)]=_0x26a70c,this[_0x3b8f59(0xc5)]=_0x11f378;}async[_0x382154(0xbf)](){const _0x337187=_0x382154;if(!this[_0x337187(0xcd)][_0x337187(0xc4)])try{const _0x43f12f=this[_0x337187(0xc1)][_0x337187(0xe5)](),_0x5affb0=await _0x43f12f[_0x337187(0xd9)]();this[_0x337187(0xcd)]=_0x5affb0[_0x337187(0xcf)];}catch(_0x691c64){throw _0x42f31c(_0x337187(0xd0),{'error':_0x691c64}),_0x691c64;}return[...this[_0x337187(0xcd)]];}async[_0x382154(0xbe)](){const _0x4dcd08=_0x382154,_0x4df07b=await this[_0x4dcd08(0xbf)]();return this[_0x4dcd08(0xe6)](_0x4df07b,this[_0x4dcd08(0xd1)]);}async[_0x382154(0xdd)](_0x32a9b6){const _0x401f04=_0x382154,_0x40497d=await this[_0x401f04(0xbf)]();if(!_0x40497d[_0x401f04(0xc4)])return null;if(_0x32a9b6){const _0x2679fa=this[_0x401f04(0xd5)](_0x40497d,_0x32a9b6);if(_0x2679fa)return _0x2679fa;_0x20acc9(_0x401f04(0xdb),{'modelId':_0x32a9b6,'fallBackModelId':this[_0x401f04(0xc5)]});}return this[_0x401f04(0xd7)]();}async[_0x382154(0xd7)](){const _0x153457=_0x382154,_0x128003=await this[_0x153457(0xbe)]();if(!_0x128003[_0x153457(0xc4)])return null;if(this[_0x153457(0xc5)]){const _0x57b157=this[_0x153457(0xd5)](_0x128003,this[_0x153457(0xc5)]);if(_0x57b157)return _0x57b157;_0x20acc9(_0x153457(0xe2),{'defaultModelId':this[_0x153457(0xc5)],'fallBackModelId':_0x128003[0x0]['id']});}return _0x128003[0x0];}async[_0x382154(0xe8)](_0x3977ce){const _0x3fe97f=_0x382154;return(await this[_0x3fe97f(0xbe)]())[_0x3fe97f(0xbd)](_0x3aadfc=>_0x3aadfc[_0x3fe97f(0xde)]===_0x3977ce[_0x3fe97f(0xde)]&&_0x3aadfc[_0x3fe97f(0xda)]===_0x3977ce[_0x3fe97f(0xda)]);}[_0x382154(0xe6)](_0x56d109,_0x129edb){const _0x1df2ca=_0x382154;let _0x3d536a;if(_0x129edb){_0x3d536a=[];const _0x4ebef5=_0x1df2ca(0xc3)==typeof _0x129edb?[_0x129edb[_0x1df2ca(0xd6)]()]:_0x129edb[_0x1df2ca(0xc6)](_0x230dd0=>_0x230dd0[_0x1df2ca(0xd6)]());for(const _0x197e0d of _0x4ebef5)for(const _0x24fa69 of _0x56d109)(_0x24fa69['id'][_0x1df2ca(0xd6)]()===_0x197e0d||_0x24fa69[_0x1df2ca(0xde)][_0x1df2ca(0xd6)]()===_0x197e0d||Oe(_0x24fa69)&&_0x1df2ca(0xe3)===_0x197e0d||_0x24fa69[_0x1df2ca(0xda)][_0x1df2ca(0xd6)]()===_0x197e0d||_0x24fa69['id'][_0x1df2ca(0xd6)]()[_0x1df2ca(0xdc)](_0x197e0d))&&_0x3d536a[_0x1df2ca(0xd3)](_0x24fa69);}else _0x3d536a=_0x56d109;return _0x3d536a;}[_0x382154(0xd5)](_0x280f83,_0x1d5b57){const _0xb24c90=_0x382154;return _0x280f83[_0xb24c90(0xe1)](_0x2cfb9d=>Oe(_0x2cfb9d)&&_0xb24c90(0xe3)===_0x1d5b57?_0x2cfb9d:_0x2cfb9d['id']===_0x1d5b57)||null;}static[_0x382154(0xd2)](_0x3e7723,_0x42f5a0){const _0x5732cf=_0x382154;return _0x42f5a0[_0x5732cf(0xc6)](_0xa0237f=>{const _0x347bc7=_0x5732cf;if(Oe(_0xa0237f))_0xa0237f[_0x347bc7(0xde)]=_0x4b6b53(_0x3e7723,_0x347bc7(0xbc)),_0xa0237f[_0x347bc7(0xc8)]=_0x4b6b53(_0x3e7723,_0x347bc7(0xce));else _0x4b6b53(_0x3e7723,_0x347bc7(0xcb)+_0xa0237f['id'][_0x347bc7(0xd8)]())[_0x347bc7(0xdc)](_0x347bc7(0xcb))||(_0xa0237f[_0x347bc7(0xc8)]=_0x4b6b53(_0x3e7723,_0x347bc7(0xcb)+_0xa0237f['id'][_0x347bc7(0xd8)]()));return _0xa0237f;});}}function _0x12e8(_0x5376de,_0x3c4232){const _0x3268a2=_0x3268();return _0x12e8=function(_0x12e830,_0x230579){_0x12e830=_0x12e830-0xbc;let _0x18feb0=_0x3268a2[_0x12e830];return _0x18feb0;},_0x12e8(_0x5376de,_0x3c4232);}function Oe(_0x4bb1c2){const _0x34043c=_0x382154;return _0x4bb1c2['id'][_0x34043c(0xdc)](_0x34043c(0xdf));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4af744=_0x5559;(function(_0x28b2b3,_0x2c071e){const _0x3da143=_0x5559,_0x3eed76=_0x28b2b3();while(!![]){try{const _0x4deee3=parseInt(_0x3da143(0x166))/0x1+-parseInt(_0x3da143(0x184))/0x2*(-parseInt(_0x3da143(0x167))/0x3)+-parseInt(_0x3da143(0x160))/0x4+parseInt(_0x3da143(0x179))/0x5*(-parseInt(_0x3da143(0x15c))/0x6)+-parseInt(_0x3da143(0x15b))/0x7*(-parseInt(_0x3da143(0x153))/0x8)+-parseInt(_0x3da143(0x183))/0x9*(parseInt(_0x3da143(0x14e))/0xa)+parseInt(_0x3da143(0x177))/0xb;if(_0x4deee3===_0x2c071e)break;else _0x3eed76['push'](_0x3eed76['shift']());}catch(_0x560cee){_0x3eed76['push'](_0x3eed76['shift']());}}}(_0x1219,0x49907));import{CKEditorError as _0x2e909d,ObservableMixin as _0x2c8a4a,uid as _0x3a54c1}from'ckeditor5/src/utils.js';import{Element as _0x3e473c,findAll as _0x545dd0,getAttribute as _0x296da2,getParents as _0x4c1619,Document as _0xb3d6b4,parse as _0x38e2a8,Text as _0x467001}from'../utils/htmlparser.js';import{AIResponseParser as _0xf7a3a}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5d2d17}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x18beec}from'../utils/getsuggestionpartsfromreply.js';function _0x5559(_0x10da92,_0x491e1e){const _0x12195c=_0x1219();return _0x5559=function(_0x5559d7,_0x33e04f){_0x5559d7=_0x5559d7-0x137;let _0xade62a=_0x12195c[_0x5559d7];return _0xade62a;},_0x5559(_0x10da92,_0x491e1e);}import{getTranslation as _0x56ad69}from'../utils/common-translations.js';import{cloneDeep as _0xb660dc}from'es-toolkit';function _0x1219(){const _0x1abd10=['span','pending','previousSibling','index','length','change:content','parsedMergedContent','state','modified','type','aiResponseParser','splice','documentContextContent','fire','indexOf','6543119ZpJlDD','set','1155445nmokFX','withDiff','web-search','push','merge','reasoning','parsedContent','areActionsDisabled','setChangeGroupState','updateChangeGroups','29277nuQATg','5918vADDeR','aiResponseApplier','filter','every','color:\x20#808080;\x20font-style:\x20italic','find','conversation-title','ai-reply-get-content-parts-group-not-found','forEach','done','getContentParts','replyChangeGroupStateUpdated','_setCachedContentParts','modifiedNodeIds','replyContentUpdated','AI_SUGGESTION_CONTENT_PART_REMOVED','parseAndNormalizeHTML','_getCachedContentParts','destroy','text-delta','changeGroups','editor','new','nextSibling','context','modification-delta','removedNodeIds','locale','cachedSuggestionContentParts','newNodeIds','unshift','isDone','sources','210QXIpPH','removed','data-id','values','stopListening','2920eufrAc','withoutDiff','_getDifferentChangeGroups','map','data-unstable','cloneNode','appendContent','convertMarkdownToHTML','56zspRTD','12FbGRHb','changes','content','node','1285024BOmGOt','source','includes','ai-get-editor-from-context-no-editor','onContentChange','interactionId','422162qcWwys','135jisIss'];_0x1219=function(){return _0x1abd10;};return _0x1219();}export const AI_REPLY_TYPES=[_0x4af744(0x146),_0x4af744(0x140),_0x4af744(0x17b),_0x4af744(0x17e)];export const AI_REPLY_TYPES_IGNORED=[_0x4af744(0x18a)];export const AI_REPLY_TITLE_TYPE=_0x4af744(0x18a);export class AIReply extends _0x2c8a4a(){['id'];[_0x4af744(0x165)];[_0x4af744(0x171)];[_0x4af744(0x14d)]=[];[_0x4af744(0x17f)]=new _0xb3d6b4([]);[_0x4af744(0x16e)]=new _0xb3d6b4([]);[_0x4af744(0x141)]=[];[_0x4af744(0x180)]=!0x1;[_0x4af744(0x174)];[_0x4af744(0x172)];[_0x4af744(0x185)];[_0x4af744(0x142)];[_0x4af744(0x149)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x53f5c6,content:_0x43a3ef='',isDone:_0x34b7e4=!0x1,interactionId:_0x38fdd0,areActionsDisabled:_0x3a3cb4,documentContextContent:_0x332439,editor:_0x409618,id:_0x28d79f}){const _0x8c0f57=_0x4af744;super(),this['id']=_0x28d79f||_0x3a54c1(),this[_0x8c0f57(0x165)]=_0x38fdd0,this[_0x8c0f57(0x171)]=_0x53f5c6,this[_0x8c0f57(0x180)]=!!_0x3a3cb4,this[_0x8c0f57(0x142)]=_0x409618,this[_0x8c0f57(0x172)]=new _0xf7a3a(),this[_0x8c0f57(0x185)]=new _0x5d2d17(),this[_0x8c0f57(0x174)]=_0x38e2a8(_0x332439||''),this[_0x8c0f57(0x178)](_0x8c0f57(0x14c),_0x34b7e4),this['on'](_0x8c0f57(0x16d),()=>{const _0x2f231c=_0x8c0f57;this[_0x2f231c(0x164)]();}),this[_0x8c0f57(0x178)](_0x8c0f57(0x15e),_0x43a3ef);}[_0x4af744(0x159)](_0x36f21d){const _0x4c51e6=_0x4af744;this[_0x4c51e6(0x178)](_0x4c51e6(0x15e),this[_0x4c51e6(0x15e)]+_0x36f21d);}[_0x4af744(0x18d)](){const _0x468c56=_0x4af744;this[_0x468c56(0x14c)]||(this[_0x468c56(0x178)](_0x468c56(0x14c),!0x0),this[_0x468c56(0x164)]());}[_0x4af744(0x13f)](){const _0x30ad5a=_0x4af744;this[_0x30ad5a(0x152)]();}[_0x4af744(0x181)](_0x3fdd32,_0x3e2b68){const _0xaf2ec4=_0x4af744;this[_0xaf2ec4(0x141)][_0x3fdd32][_0xaf2ec4(0x16f)]=_0x3e2b68,this[_0xaf2ec4(0x175)](_0xaf2ec4(0x138),{'reply':this,'index':_0x3fdd32,'state':_0x3e2b68});}[_0x4af744(0x137)]({showDiff:_0x298da3,groupIndex:_0x1af748}){const _0x2fe399=_0x4af744;if(!this[_0x2fe399(0x142)])throw new _0x2e909d(_0x2fe399(0x163),null,{'aiReply':this});const _0x176395=this[_0x2fe399(0x13e)](_0x298da3,_0x1af748);if(_0x176395)return _0x176395;let _0x3adc2b=[];if(void 0x0===_0x1af748)_0x3adc2b=this[_0x2fe399(0x141)];else{const _0x168593=this[_0x2fe399(0x141)][_0x2fe399(0x189)](({index:_0x4268d9})=>_0x4268d9===_0x1af748);if(!_0x168593)throw new _0x2e909d(_0x2fe399(0x18b),null,{'aiReply':this,'groupIndex':_0x1af748});_0x3adc2b=[_0x168593];}const _0x29c2c9=_0x18beec({'editor':this[_0x2fe399(0x142)],'showDiff':_0x298da3,'changeGroups':_0x3adc2b,'documentContextContent':this[_0x2fe399(0x174)]});return this[_0x2fe399(0x139)](_0x298da3,_0x29c2c9),_0x29c2c9;}[_0x4af744(0x13e)](_0x4d54aa,_0x30a8e6){const _0x8df6b7=_0x4af744,_0x18b49d=_0x4d54aa?_0x8df6b7(0x17a):_0x8df6b7(0x154);if(!this[_0x8df6b7(0x149)][_0x18b49d][_0x8df6b7(0x16c)])return null;const _0x12c307=this[_0x8df6b7(0x149)][_0x18b49d];if(void 0x0===_0x30a8e6)return _0xb660dc(_0x12c307);{const _0x4c9d17=_0x12c307[_0x8df6b7(0x189)](({index:_0x539c69})=>_0x539c69===_0x30a8e6);if(_0x4c9d17)return[_0xb660dc(_0x4c9d17)];}return null;}[_0x4af744(0x139)](_0x26e7eb,_0x16722b){const _0x590b5a=_0x4af744,_0x10d771=_0x26e7eb?_0x590b5a(0x17a):_0x590b5a(0x154);_0x16722b[_0x590b5a(0x18c)](_0x5a3589=>{const _0x203110=_0x590b5a,_0x398144=this[_0x203110(0x149)][_0x10d771],_0x438bd6=_0x398144[_0x203110(0x189)](({index:_0x455c2d})=>_0x455c2d===_0x5a3589[_0x203110(0x16b)]);if(_0x438bd6){const _0x243230=_0x398144[_0x203110(0x176)](_0x438bd6);_0x398144[_0x203110(0x173)](_0x243230,0x1,_0x5a3589);}else _0x398144[_0x203110(0x17c)](_0x5a3589);});}[_0x4af744(0x164)](){const _0x30d2c3=_0x4af744;if(_0x30d2c3(0x146)===this[_0x30d2c3(0x171)]){this[_0x30d2c3(0x17f)]=this[_0x30d2c3(0x172)][_0x30d2c3(0x13d)](this[_0x30d2c3(0x15e)]);const _0x53bde2=this[_0x30d2c3(0x141)];this[_0x30d2c3(0x182)]();const _0x2dff5f=this[_0x30d2c3(0x155)](_0x53bde2,this[_0x30d2c3(0x141)]);(_0x2dff5f[_0x30d2c3(0x16c)]||this[_0x30d2c3(0x14c)])&&(this[_0x30d2c3(0x175)](_0x30d2c3(0x13b),this,_0x2dff5f),this[_0x30d2c3(0x149)][_0x30d2c3(0x17a)][_0x30d2c3(0x16c)]=this[_0x30d2c3(0x149)][_0x30d2c3(0x154)][_0x30d2c3(0x16c)]=0x0);}else this[_0x30d2c3(0x17f)]=this[_0x30d2c3(0x172)][_0x30d2c3(0x15a)](this[_0x30d2c3(0x15e)]),this[_0x30d2c3(0x175)](_0x30d2c3(0x13b),this);}[_0x4af744(0x155)](_0x294cf9,_0x5c4e86){const _0x262436=_0x4af744,_0x13a697=[];for(const _0x563420 of _0x5c4e86){const _0x2df30e=_0x294cf9[_0x563420[_0x262436(0x16b)]];_0x2df30e?_0x2df30e[_0x262436(0x15d)][_0x262436(0x16c)]!==_0x563420[_0x262436(0x15d)][_0x262436(0x16c)]?_0x13a697[_0x262436(0x17c)](_0x563420):_0x2df30e[_0x262436(0x15d)][_0x262436(0x18c)]((_0x6a422c,_0xb3c194)=>{const _0xbfc8cd=_0x262436,_0xe67d67=_0x563420[_0xbfc8cd(0x15d)][_0xb3c194];_0x6a422c['id']!==_0xe67d67['id']&&_0x13a697[_0xbfc8cd(0x17c)](_0x563420);}):_0x13a697[_0x262436(0x17c)](_0x563420);}return _0x13a697;}[_0x4af744(0x182)](){const _0x183a79=_0x4af744,_0x40a142=new _0x3e473c('p',{},[new _0x3e473c(_0x183a79(0x168),{'style':_0x183a79(0x188)},[new _0x467001(_0x56ad69(this[_0x183a79(0x142)][_0x183a79(0x148)],_0x183a79(0x13c)))])]),_0xe15535=this[_0x183a79(0x185)][_0x183a79(0x17d)](this[_0x183a79(0x17f)],this[_0x183a79(0x174)][_0x183a79(0x158)](!0x0),{'markUnstableElements':!this[_0x183a79(0x14c)],'replaceRemovedWith':_0x40a142,'cutAfterLastChange':!this[_0x183a79(0x14c)]});if(!_0xe15535[_0x183a79(0x13a)][_0x183a79(0x16c)]&&!this[_0x183a79(0x14c)])return;this[_0x183a79(0x16e)]=_0xe15535[_0x183a79(0x17f)];let _0x419855=[];if(_0x545dd0(_0x45ce72=>{const _0x293928=_0x183a79,_0x429ea3=_0x296da2(_0x45ce72,_0x293928(0x150));if(!_0x429ea3||!_0x221295(_0x429ea3))return!0x1;const _0x4a09fe=[_0x45ce72,..._0x4c1619(_0x45ce72)]['at'](-0x2);if(_0x45ce72!=_0x4a09fe){const _0xe8cf39=_0x296da2(_0x4a09fe,_0x293928(0x150));_0x221295(_0xe8cf39)||(_0x419855[_0x293928(0x17c)]({'node':_0x4a09fe,'id':_0xe8cf39,'type':_0x293928(0x170)}),_0xe15535[_0x293928(0x13a)][_0x293928(0x17c)](_0xe8cf39));}else _0xe15535[_0x293928(0x13a)][_0x293928(0x162)](_0x429ea3)?_0x419855[_0x293928(0x17c)]({'node':_0x45ce72,'type':_0x293928(0x170),'id':_0x429ea3}):_0xe15535[_0x293928(0x14a)][_0x293928(0x162)](_0x429ea3)?_0x419855[_0x293928(0x17c)]({'node':_0x45ce72,'type':_0x293928(0x143),'id':_0x429ea3,'anchorId':_0x296da2(_0x45ce72[_0x293928(0x16a)],_0x293928(0x150))}):_0x419855[_0x293928(0x17c)]({'node':_0x45ce72,'type':_0x293928(0x14f),'id':_0x429ea3});return!0x0;},this[_0x183a79(0x16e)]),_0x419855=_0x419855[_0x183a79(0x186)](({node:_0x50a643})=>[..._0x4c1619(_0x50a643),_0x50a643][_0x183a79(0x187)](_0xf6ae80=>!_0x296da2(_0xf6ae80,_0x183a79(0x157)))),0x0==_0x419855[_0x183a79(0x16c)])return;const _0x5a5dce=[[_0x419855[0x0]]];for(let _0x1c0563=0x1;_0x1c0563<_0x419855[_0x183a79(0x16c)];_0x1c0563++){const _0x33b98e=_0x5a5dce[_0x5a5dce[_0x183a79(0x16c)]-0x1],_0x5e6492=_0x33b98e[_0x33b98e[_0x183a79(0x16c)]-0x1];_0x419855[_0x1c0563][_0x183a79(0x15f)][_0x183a79(0x16a)]==_0x5e6492[_0x183a79(0x15f)]&&_0x183a79(0x170)!=_0x419855[_0x1c0563][_0x183a79(0x171)]&&_0x183a79(0x170)!=_0x5e6492[_0x183a79(0x171)]?_0x33b98e[_0x183a79(0x17c)](_0x419855[_0x1c0563]):_0x5a5dce[_0x183a79(0x17c)]([_0x419855[_0x1c0563]]);}for(const _0x4ec39c of _0x5a5dce){const _0x4a3a23=_0x4ec39c[0x0],_0x1e1a3f=_0x4ec39c[_0x4ec39c[_0x183a79(0x16c)]-0x1],_0x57359d=_0xaa942(_0x4a3a23[_0x183a79(0x15f)][_0x183a79(0x16a)]);_0x57359d&&_0x4ec39c[_0x183a79(0x14b)](_0x57359d);const _0x54ed4d=_0xaa942(_0x1e1a3f[_0x183a79(0x15f)][_0x183a79(0x144)]);_0x54ed4d&&_0x4ec39c[_0x183a79(0x17c)](_0x54ed4d);}function _0x221295(_0x5902e4){const _0x312bfa=_0x183a79;return _0xe15535[_0x312bfa(0x13a)][_0x312bfa(0x162)](_0x5902e4)||_0xe15535[_0x312bfa(0x14a)][_0x312bfa(0x162)](_0x5902e4)||_0xe15535[_0x312bfa(0x147)][_0x312bfa(0x162)](_0x5902e4);}function _0xaa942(_0x1cdf57){const _0x5f793f=_0x183a79;if(_0x1cdf57&&_0x296da2(_0x1cdf57,_0x5f793f(0x150))&&!_0x296da2(_0x1cdf57,_0x5f793f(0x157))){const _0x3e11c8=_0x296da2(_0x1cdf57,_0x5f793f(0x150));if(!_0x221295(_0x3e11c8))return{'node':_0x1cdf57,'type':_0x5f793f(0x145),'id':_0x3e11c8};}return null;}this[_0x183a79(0x141)]=_0x5a5dce[_0x183a79(0x156)]((_0x12394b,_0xae3e6a)=>({'changes':_0x12394b,'state':_0x183a79(0x169),'index':_0xae3e6a}));}}export function isValidReplyType(_0x4bcd57){const _0x53a632=_0x4af744;return Object[_0x53a632(0x151)](AI_REPLY_TYPES)[_0x53a632(0x162)](_0x4bcd57);}export function isIgnoredReplyType(_0x50aee6){const _0x487170=_0x4af744;return AI_REPLY_TYPES_IGNORED[_0x487170(0x162)](_0x50aee6);}export function isReplyTitleType(_0x249886){return _0x249886===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x45a184){const _0x4ff691=_0x4af744;return _0x4ff691(0x161)===_0x45a184;}
|
|
23
|
+
function _0x1265(){const _0x4c873e=['unshift','2bQSvGx','span','modified','forEach','content','source','2265684mrsoub','isDone','ai-reply-get-content-parts-group-not-found','parseAndNormalizeHTML','2270WiVOVI','interactionId','onContentChange','8xVmtns','index','push','withoutDiff','1361102dWxGTe','includes','sources','change:content','withDiff','editor','_getDifferentChangeGroups','state','values','newNodeIds','18599fjKcAg','previousSibling','every','1432sMGiis','merge','aiResponseApplier','color:\x20#808080;\x20font-style:\x20italic','_setCachedContentParts','removed','find','length','replyChangeGroupStateUpdated','parsedMergedContent','conversation-title','destroy','aiResponseParser','type','getContentParts','filter','set','fire','2203896QdSewS','stopListening','setChangeGroupState','web-search','areActionsDisabled','appendContent','node','map','indexOf','replyContentUpdated','data-unstable','changeGroups','3766730QIqsxw','modifiedNodeIds','text-delta','ai-get-editor-from-context-no-editor','changes','cloneNode','context','removedNodeIds','_getCachedContentParts','new','splice','modification-delta','parsedContent','data-id','documentContextContent','nextSibling','done','reasoning','cachedSuggestionContentParts','48123wtgdgR','convertMarkdownToHTML','pending','27500605PZviVC','locale','updateChangeGroups','AI_SUGGESTION_CONTENT_PART_REMOVED'];_0x1265=function(){return _0x4c873e;};return _0x1265();}const _0x57634b=_0x26e0;(function(_0x3fb54c,_0x24f25c){const _0x3c94f7=_0x26e0,_0x30e480=_0x3fb54c();while(!![]){try{const _0x49608c=-parseInt(_0x3c94f7(0x16e))/0x1*(parseInt(_0x3c94f7(0x17f))/0x2)+-parseInt(_0x3c94f7(0x174))/0x3+parseInt(_0x3c94f7(0x17b))/0x4*(parseInt(_0x3c94f7(0x153))/0x5)+-parseInt(_0x3c94f7(0x147))/0x6+parseInt(_0x3c94f7(0x132))/0x7*(parseInt(_0x3c94f7(0x135))/0x8)+parseInt(_0x3c94f7(0x166))/0x9*(-parseInt(_0x3c94f7(0x178))/0xa)+parseInt(_0x3c94f7(0x169))/0xb;if(_0x49608c===_0x24f25c)break;else _0x30e480['push'](_0x30e480['shift']());}catch(_0x25a1de){_0x30e480['push'](_0x30e480['shift']());}}}(_0x1265,0xbfa27));import{CKEditorError as _0x833b10,ObservableMixin as _0x4d14b2,uid as _0x1681da}from'ckeditor5/src/utils.js';import{Element as _0x592baa,findAll as _0x170355,getAttribute as _0x42e052,getParents as _0x490550,Document as _0x2268bc,parse as _0x53e59f,Text as _0x231b9d}from'../utils/htmlparser.js';import{AIResponseParser as _0x6d411c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x24cfae}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x2a3b5a}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x3c1d44}from'../utils/common-translations.js';function _0x26e0(_0x4f5f93,_0x44cd5f){const _0x12656b=_0x1265();return _0x26e0=function(_0x26e02e,_0x204e8e){_0x26e02e=_0x26e02e-0x12c;let _0x5d9ca3=_0x12656b[_0x26e02e];return _0x5d9ca3;},_0x26e0(_0x4f5f93,_0x44cd5f);}import{cloneDeep as _0x1a44d9}from'es-toolkit';export const AI_REPLY_TYPES=[_0x57634b(0x15e),_0x57634b(0x155),_0x57634b(0x14a),_0x57634b(0x164)];export const AI_REPLY_TYPES_IGNORED=[_0x57634b(0x13f)];export const AI_REPLY_TITLE_TYPE=_0x57634b(0x13f);export class AIReply extends _0x4d14b2(){['id'];[_0x57634b(0x179)];[_0x57634b(0x142)];[_0x57634b(0x181)]=[];[_0x57634b(0x15f)]=new _0x2268bc([]);[_0x57634b(0x13e)]=new _0x2268bc([]);[_0x57634b(0x152)]=[];[_0x57634b(0x14b)]=!0x1;[_0x57634b(0x161)];[_0x57634b(0x141)];[_0x57634b(0x137)];[_0x57634b(0x12d)];[_0x57634b(0x165)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x28ddd6,content:_0x551640='',isDone:_0x1c0fa1=!0x1,interactionId:_0x3e4ac3,areActionsDisabled:_0x544026,documentContextContent:_0x3ac13d,editor:_0xf6572,id:_0x1dbb9f}){const _0x4cb33e=_0x57634b;super(),this['id']=_0x1dbb9f||_0x1681da(),this[_0x4cb33e(0x179)]=_0x3e4ac3,this[_0x4cb33e(0x142)]=_0x28ddd6,this[_0x4cb33e(0x14b)]=!!_0x544026,this[_0x4cb33e(0x12d)]=_0xf6572,this[_0x4cb33e(0x141)]=new _0x6d411c(),this[_0x4cb33e(0x137)]=new _0x24cfae(),this[_0x4cb33e(0x161)]=_0x53e59f(_0x3ac13d||''),this[_0x4cb33e(0x145)](_0x4cb33e(0x175),_0x1c0fa1),this['on'](_0x4cb33e(0x182),()=>{const _0x2035b0=_0x4cb33e;this[_0x2035b0(0x17a)]();}),this[_0x4cb33e(0x145)](_0x4cb33e(0x172),_0x551640);}[_0x57634b(0x14c)](_0xf8ec7f){const _0x42ed47=_0x57634b;this[_0x42ed47(0x145)](_0x42ed47(0x172),this[_0x42ed47(0x172)]+_0xf8ec7f);}[_0x57634b(0x163)](){const _0x5a9d5b=_0x57634b;this[_0x5a9d5b(0x175)]||(this[_0x5a9d5b(0x145)](_0x5a9d5b(0x175),!0x0),this[_0x5a9d5b(0x17a)]());}[_0x57634b(0x140)](){const _0x5af4f7=_0x57634b;this[_0x5af4f7(0x148)]();}[_0x57634b(0x149)](_0x50074d,_0x4daa2b){const _0x1d9f42=_0x57634b;this[_0x1d9f42(0x152)][_0x50074d][_0x1d9f42(0x12f)]=_0x4daa2b,this[_0x1d9f42(0x146)](_0x1d9f42(0x13d),{'reply':this,'index':_0x50074d,'state':_0x4daa2b});}[_0x57634b(0x143)]({showDiff:_0x463802,groupIndex:_0x923594}){const _0x1e01d2=_0x57634b;if(!this[_0x1e01d2(0x12d)])throw new _0x833b10(_0x1e01d2(0x156),null,{'aiReply':this});const _0x114dac=this[_0x1e01d2(0x15b)](_0x463802,_0x923594);if(_0x114dac)return _0x114dac;let _0x4c7f34=[];if(void 0x0===_0x923594)_0x4c7f34=this[_0x1e01d2(0x152)];else{const _0x16547e=this[_0x1e01d2(0x152)][_0x1e01d2(0x13b)](({index:_0x34d0d3})=>_0x34d0d3===_0x923594);if(!_0x16547e)throw new _0x833b10(_0x1e01d2(0x176),null,{'aiReply':this,'groupIndex':_0x923594});_0x4c7f34=[_0x16547e];}const _0x124520=_0x2a3b5a({'editor':this[_0x1e01d2(0x12d)],'showDiff':_0x463802,'changeGroups':_0x4c7f34,'documentContextContent':this[_0x1e01d2(0x161)]});return this[_0x1e01d2(0x139)](_0x463802,_0x124520),_0x124520;}[_0x57634b(0x15b)](_0x391d84,_0x5164b4){const _0x3de9ce=_0x57634b,_0x383d58=_0x391d84?_0x3de9ce(0x12c):_0x3de9ce(0x17e);if(!this[_0x3de9ce(0x165)][_0x383d58][_0x3de9ce(0x13c)])return null;const _0x30a1b6=this[_0x3de9ce(0x165)][_0x383d58];if(void 0x0===_0x5164b4)return _0x1a44d9(_0x30a1b6);{const _0x5a5b05=_0x30a1b6[_0x3de9ce(0x13b)](({index:_0x3b3ceb})=>_0x3b3ceb===_0x5164b4);if(_0x5a5b05)return[_0x1a44d9(_0x5a5b05)];}return null;}[_0x57634b(0x139)](_0x5f6f65,_0x52e6aa){const _0x256a0f=_0x57634b,_0x2e3dc3=_0x5f6f65?_0x256a0f(0x12c):_0x256a0f(0x17e);_0x52e6aa[_0x256a0f(0x171)](_0x325f6a=>{const _0x45f863=_0x256a0f,_0xa9f38e=this[_0x45f863(0x165)][_0x2e3dc3],_0xe54415=_0xa9f38e[_0x45f863(0x13b)](({index:_0x19963c})=>_0x19963c===_0x325f6a[_0x45f863(0x17c)]);if(_0xe54415){const _0x51a811=_0xa9f38e[_0x45f863(0x14f)](_0xe54415);_0xa9f38e[_0x45f863(0x15d)](_0x51a811,0x1,_0x325f6a);}else _0xa9f38e[_0x45f863(0x17d)](_0x325f6a);});}[_0x57634b(0x17a)](){const _0x57e6f5=_0x57634b;if(_0x57e6f5(0x15e)===this[_0x57e6f5(0x142)]){this[_0x57e6f5(0x15f)]=this[_0x57e6f5(0x141)][_0x57e6f5(0x177)](this[_0x57e6f5(0x172)]);const _0x2e19f2=this[_0x57e6f5(0x152)];this[_0x57e6f5(0x16b)]();const _0x484237=this[_0x57e6f5(0x12e)](_0x2e19f2,this[_0x57e6f5(0x152)]);(_0x484237[_0x57e6f5(0x13c)]||this[_0x57e6f5(0x175)])&&(this[_0x57e6f5(0x146)](_0x57e6f5(0x150),this,_0x484237),this[_0x57e6f5(0x165)][_0x57e6f5(0x12c)][_0x57e6f5(0x13c)]=this[_0x57e6f5(0x165)][_0x57e6f5(0x17e)][_0x57e6f5(0x13c)]=0x0);}else this[_0x57e6f5(0x15f)]=this[_0x57e6f5(0x141)][_0x57e6f5(0x167)](this[_0x57e6f5(0x172)]),this[_0x57e6f5(0x146)](_0x57e6f5(0x150),this);}[_0x57634b(0x12e)](_0x37148f,_0x5b5710){const _0x32efda=_0x57634b,_0x2e5f26=[];for(const _0x2d82a0 of _0x5b5710){const _0x160369=_0x37148f[_0x2d82a0[_0x32efda(0x17c)]];_0x160369?_0x160369[_0x32efda(0x157)][_0x32efda(0x13c)]!==_0x2d82a0[_0x32efda(0x157)][_0x32efda(0x13c)]?_0x2e5f26[_0x32efda(0x17d)](_0x2d82a0):_0x160369[_0x32efda(0x157)][_0x32efda(0x171)]((_0x1fa8ee,_0xd4cccc)=>{const _0x1388ab=_0x32efda,_0x5b4751=_0x2d82a0[_0x1388ab(0x157)][_0xd4cccc];_0x1fa8ee['id']!==_0x5b4751['id']&&_0x2e5f26[_0x1388ab(0x17d)](_0x2d82a0);}):_0x2e5f26[_0x32efda(0x17d)](_0x2d82a0);}return _0x2e5f26;}[_0x57634b(0x16b)](){const _0x14e0ef=_0x57634b,_0x240f86=new _0x592baa('p',{},[new _0x592baa(_0x14e0ef(0x16f),{'style':_0x14e0ef(0x138)},[new _0x231b9d(_0x3c1d44(this[_0x14e0ef(0x12d)][_0x14e0ef(0x16a)],_0x14e0ef(0x16c)))])]),_0x22efd8=this[_0x14e0ef(0x137)][_0x14e0ef(0x136)](this[_0x14e0ef(0x15f)],this[_0x14e0ef(0x161)][_0x14e0ef(0x158)](!0x0),{'markUnstableElements':!this[_0x14e0ef(0x175)],'replaceRemovedWith':_0x240f86,'cutAfterLastChange':!this[_0x14e0ef(0x175)]});if(!_0x22efd8[_0x14e0ef(0x154)][_0x14e0ef(0x13c)]&&!this[_0x14e0ef(0x175)])return;this[_0x14e0ef(0x13e)]=_0x22efd8[_0x14e0ef(0x15f)];let _0x31db33=[];if(_0x170355(_0x442c7a=>{const _0x3d7c39=_0x14e0ef,_0x594ebb=_0x42e052(_0x442c7a,_0x3d7c39(0x160));if(!_0x594ebb||!_0x13a7b0(_0x594ebb))return!0x1;const _0x4936b7=[_0x442c7a,..._0x490550(_0x442c7a)]['at'](-0x2);if(_0x442c7a!=_0x4936b7){const _0x554468=_0x42e052(_0x4936b7,_0x3d7c39(0x160));_0x13a7b0(_0x554468)||(_0x31db33[_0x3d7c39(0x17d)]({'node':_0x4936b7,'id':_0x554468,'type':_0x3d7c39(0x170)}),_0x22efd8[_0x3d7c39(0x154)][_0x3d7c39(0x17d)](_0x554468));}else _0x22efd8[_0x3d7c39(0x154)][_0x3d7c39(0x180)](_0x594ebb)?_0x31db33[_0x3d7c39(0x17d)]({'node':_0x442c7a,'type':_0x3d7c39(0x170),'id':_0x594ebb}):_0x22efd8[_0x3d7c39(0x131)][_0x3d7c39(0x180)](_0x594ebb)?_0x31db33[_0x3d7c39(0x17d)]({'node':_0x442c7a,'type':_0x3d7c39(0x15c),'id':_0x594ebb,'anchorId':_0x42e052(_0x442c7a[_0x3d7c39(0x133)],_0x3d7c39(0x160))}):_0x31db33[_0x3d7c39(0x17d)]({'node':_0x442c7a,'type':_0x3d7c39(0x13a),'id':_0x594ebb});return!0x0;},this[_0x14e0ef(0x13e)]),_0x31db33=_0x31db33[_0x14e0ef(0x144)](({node:_0x38a20f})=>[..._0x490550(_0x38a20f),_0x38a20f][_0x14e0ef(0x134)](_0x15f654=>!_0x42e052(_0x15f654,_0x14e0ef(0x151)))),0x0==_0x31db33[_0x14e0ef(0x13c)])return;const _0x4c256e=[[_0x31db33[0x0]]];for(let _0x3bdc44=0x1;_0x3bdc44<_0x31db33[_0x14e0ef(0x13c)];_0x3bdc44++){const _0x25342a=_0x4c256e[_0x4c256e[_0x14e0ef(0x13c)]-0x1],_0x288448=_0x25342a[_0x25342a[_0x14e0ef(0x13c)]-0x1];_0x31db33[_0x3bdc44][_0x14e0ef(0x14d)][_0x14e0ef(0x133)]==_0x288448[_0x14e0ef(0x14d)]&&_0x14e0ef(0x170)!=_0x31db33[_0x3bdc44][_0x14e0ef(0x142)]&&_0x14e0ef(0x170)!=_0x288448[_0x14e0ef(0x142)]?_0x25342a[_0x14e0ef(0x17d)](_0x31db33[_0x3bdc44]):_0x4c256e[_0x14e0ef(0x17d)]([_0x31db33[_0x3bdc44]]);}for(const _0x3f03a7 of _0x4c256e){const _0x1c49b8=_0x3f03a7[0x0],_0x26a8cd=_0x3f03a7[_0x3f03a7[_0x14e0ef(0x13c)]-0x1],_0xcd17d=_0xd0a41a(_0x1c49b8[_0x14e0ef(0x14d)][_0x14e0ef(0x133)]);_0xcd17d&&_0x3f03a7[_0x14e0ef(0x16d)](_0xcd17d);const _0x22cc29=_0xd0a41a(_0x26a8cd[_0x14e0ef(0x14d)][_0x14e0ef(0x162)]);_0x22cc29&&_0x3f03a7[_0x14e0ef(0x17d)](_0x22cc29);}function _0x13a7b0(_0xb74b16){const _0x561f81=_0x14e0ef;return _0x22efd8[_0x561f81(0x154)][_0x561f81(0x180)](_0xb74b16)||_0x22efd8[_0x561f81(0x131)][_0x561f81(0x180)](_0xb74b16)||_0x22efd8[_0x561f81(0x15a)][_0x561f81(0x180)](_0xb74b16);}function _0xd0a41a(_0x1c1bbe){const _0x22ec17=_0x14e0ef;if(_0x1c1bbe&&_0x42e052(_0x1c1bbe,_0x22ec17(0x160))&&!_0x42e052(_0x1c1bbe,_0x22ec17(0x151))){const _0x4f72e5=_0x42e052(_0x1c1bbe,_0x22ec17(0x160));if(!_0x13a7b0(_0x4f72e5))return{'node':_0x1c1bbe,'type':_0x22ec17(0x159),'id':_0x4f72e5};}return null;}this[_0x14e0ef(0x152)]=_0x4c256e[_0x14e0ef(0x14e)]((_0x2591ce,_0x5034f2)=>({'changes':_0x2591ce,'state':_0x14e0ef(0x168),'index':_0x5034f2}));}}export function isValidReplyType(_0xf862d2){const _0x4a7f4e=_0x57634b;return Object[_0x4a7f4e(0x130)](AI_REPLY_TYPES)[_0x4a7f4e(0x180)](_0xf862d2);}export function isIgnoredReplyType(_0x507fc6){const _0x171fca=_0x57634b;return AI_REPLY_TYPES_IGNORED[_0x171fca(0x180)](_0x507fc6);}export function isReplyTitleType(_0x22f219){return _0x22f219===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x351344){const _0x37f36c=_0x57634b;return _0x37f36c(0x173)===_0x351344;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x2e16ab(){[_0x5100d4(0x1cc)];[_0x5100d4(0x1e8)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5100d4(0x1f1)]=new Set();constructor(_0x39f3ee){const _0x8d32c2=_0x5100d4;super(),this[_0x8d32c2(0x1cc)]=_0x39f3ee||_0x184f00;}[_0x5100d4(0x1e4)](_0x6f8bc4,_0x5b8d97,_0xe4c39d){const _0x5ec2cb=_0x5100d4,_0x1801f0=_0x54d697(_0x6f8bc4);if(0x0===_0x5b8d97[_0x5ec2cb(0x208)][_0x5ec2cb(0x1d8)]){const _0x496061=[];return _0x45ebbc(_0x5ec2cb(0x1e3),_0x5ec2cb(0x1d9),_0x1801f0)[_0x5ec2cb(0x1de)](_0x395929=>{const _0x355db1=_0x5ec2cb,_0x2e9f8d=this[_0x355db1(0x1cc)]();_0x5d1ea5(_0x395929,_0x355db1(0x1e3),_0x2e9f8d),_0x496061[_0x355db1(0x1ca)](_0x2e9f8d);}),this[_0x5ec2cb(0x1f3)](_0x1801f0),{'parsedContent':_0x1801f0,'newNodeIds':_0x496061,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1eb)]&&this[_0x5ec2cb(0x1d1)](_0x1801f0),this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1d6)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e1)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e9)]=[],this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)]=null,this[_0x5ec2cb(0x1f1)]=new Set(_0x45ebbc(_0x5ec2cb(0x1e3),null,_0x5b8d97)[_0x5ec2cb(0x1c7)](_0x2474b4=>_0x4a5f16(_0x2474b4,_0x5ec2cb(0x1e3)))[_0x5ec2cb(0x1d4)](_0x21fccc=>!!_0x21fccc));let _0x142798=-0x1,_0x35beb=!0x1;const _0x89219d=_0x1801f0[_0x5ec2cb(0x208)],_0x49a189=Array[_0x5ec2cb(0x1d7)](_0x89219d)[_0x5ec2cb(0x1d4)](_0x538d00=>!(0x3===_0x538d00[_0x5ec2cb(0x1c4)]&&''===_0x4d4df9(_0x538d00)[_0x5ec2cb(0x1d2)]())),_0x72850a=_0x49a189[_0x5ec2cb(0x1d8)];for(let _0x1fc6b3=0x0;_0x1fc6b3<_0x72850a;_0x1fc6b3++){const _0x826d10=_0x49a189[_0x1fc6b3],_0x308755=_0x49a189[_0x1fc6b3+0x1];if(this[_0x5ec2cb(0x1cf)](_0x826d10)){if(-0x1===_0x142798&&(_0x142798=_0x1fc6b3),this[_0x5ec2cb(0x1f7)](_0x826d10),!this[_0x5ec2cb(0x1cf)](_0x308755)){const [_0x9a1c6a,_0x3d49f9]=this[_0x5ec2cb(0x201)](_0x826d10,_0x35beb,_0x5b8d97);if(_0x9a1c6a){const _0x403591=Array[_0x5ec2cb(0x1d7)](_0x49a189)[_0x5ec2cb(0x1cd)](_0x142798,_0x1fc6b3+0x1);this[_0x5ec2cb(0x1d3)](_0x9a1c6a,_0x403591,_0x3d49f9),_0x142798=-0x1;}}}else{if(this[_0x5ec2cb(0x1c6)](_0x826d10))_0x35beb=!0x0;else{if(this[_0x5ec2cb(0x1ee)](_0x826d10)){const _0x25d5f5=_0x4a5f16(_0x826d10,_0x5ec2cb(0x1e3));if(_0x25d5f5&&this[_0x5ec2cb(0x1f1)][_0x5ec2cb(0x204)](_0x25d5f5)){const _0x264416=_0x410325(_0x5ec2cb(0x1e3),_0x25d5f5,_0x5b8d97);this[_0x5ec2cb(0x1ec)](_0x264416,_0x826d10);}if(this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)][_0x5ec2cb(0x1ed)](_0x25d5f5)){const _0x4a9703=this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)][_0x5ec2cb(0x1fd)](_0x25d5f5);this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)][_0x5ec2cb(0x1e5)](_0x4a9703,0x1);}}else{if(this[_0x5ec2cb(0x207)](_0x826d10)){const _0x2114d2=_0x4a5f16(_0x826d10,_0x5ec2cb(0x1e3));this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e1)][_0x5ec2cb(0x1ed)](_0x2114d2)||this[_0x5ec2cb(0x206)](_0x826d10);}}}}}for(const _0x16fced of this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)]){const _0x213925=_0x410325(_0x5ec2cb(0x1e3),_0x16fced,_0x5b8d97);if(_0x213925){if(_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1fe)]){this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)]=_0x16fced;const _0x6ced63=_0xe4c39d[_0x5ec2cb(0x1fe)][_0x5ec2cb(0x1ff)](!0x0);_0x5d1ea5(_0x6ced63,_0x5ec2cb(0x1e3),_0x16fced),_0x5d1ea5(_0x6ced63,_0x5ec2cb(0x1ef),_0x5ec2cb(0x1e6)),_0x5a4ec4(_0x213925,_0x6ced63);}else _0xff1fac(_0x213925);}}if(_0x45ebbc(_0x5ec2cb(0x1e0),null,_0x5b8d97)[_0x5ec2cb(0x1de)](_0x5d229c=>{const _0x2ba879=_0x5ec2cb,_0x3c6443=_0x4a5f16(_0x5d229c,_0x2ba879(0x1e0)),_0x16e6c5=_0x410325(_0x2ba879(0x1e3),_0x3c6443,_0x5b8d97);_0x16e6c5&&_0x21956f(_0x16e6c5,_0x5d229c);}),_0x45ebbc(_0x5ec2cb(0x1e3),_0x5ec2cb(0x1d9),_0x5b8d97)[_0x5ec2cb(0x1de)](_0x2dd689=>{const _0xe71a49=_0x5ec2cb,_0x2aceec=this[_0xe71a49(0x209)](_0x2dd689);_0x5d1ea5(_0x2dd689,_0xe71a49(0x1e3),_0x2aceec),this[_0xe71a49(0x1e8)][_0xe71a49(0x1d6)][_0xe71a49(0x1ca)](_0x2aceec);}),this[_0x5ec2cb(0x1f3)](_0x5b8d97),_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1eb)]&&this[_0x5ec2cb(0x1f2)](_0x5b8d97,_0xe4c39d[_0x5ec2cb(0x1e7)]||0x0),_0xe4c39d&&_0xe4c39d[_0x5ec2cb(0x1c9)]&&this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)]){let _0x290a41=_0x410325(_0x5ec2cb(0x1e3),this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1f4)],_0x5b8d97);for(;_0x290a41;)_0x3ef760(_0x290a41),_0x290a41=_0x290a41[_0x5ec2cb(0x1cb)];}return{'parsedContent':_0x5b8d97,'newNodeIds':this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1d6)],'modifiedNodeIds':this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1e1)],'removedNodeIds':this[_0x5ec2cb(0x1e8)][_0x5ec2cb(0x1c5)]};}[_0x5100d4(0x1d3)](_0x4cc98c,_0x40c94f,_0x25db3e){const _0x53738a=_0x5100d4;for(const _0x2afa47 of _0x40c94f){const _0x1c56fa=this[_0x53738a(0x209)](_0x2afa47);_0x5d1ea5(_0x2afa47,_0x53738a(0x1e3),_0x1c56fa),this[_0x53738a(0x1e8)][_0x53738a(0x1d6)][_0x53738a(0x1ca)](_0x1c56fa),this[_0x53738a(0x1e8)][_0x53738a(0x1f4)]=_0x1c56fa;}const _0x5eedde=_0x53738a(0x1fb)===_0x25db3e||_0x53738a(0x1ea)===_0x25db3e?_0x40c94f[_0x53738a(0x1f6)]():_0x40c94f;for(const _0x392829 of _0x5eedde)_0x23fff3(_0x4cc98c,_0x392829,_0x25db3e);}[_0x5100d4(0x1ec)](_0x20a64e,_0x3ce548){const _0xdd917f=_0x5100d4;if(!_0x20a64e)return;if(_0x2ec878(_0x20a64e,_0x3ce548))return;const _0x40e1e1=this[_0xdd917f(0x209)](_0x20a64e);_0x5d1ea5(_0x3ce548,_0xdd917f(0x1e3),_0x40e1e1),this[_0xdd917f(0x1e8)][_0xdd917f(0x1e1)][_0xdd917f(0x1ca)](_0x40e1e1),this[_0xdd917f(0x1e8)][_0xdd917f(0x1f4)]=_0x40e1e1,_0x5a4ec4(_0x20a64e,_0x3ce548[_0xdd917f(0x1ff)](!0x0));}[_0x5100d4(0x201)](_0x4704af,_0x203903,_0x522b7b){const _0x2d4cd5=_0x5100d4,_0x2ee47f=this[_0x2d4cd5(0x1f8)](_0x4704af,!0x1);if(_0x2ee47f){const _0x105c23=this[_0x2d4cd5(0x1dd)](_0x2ee47f),_0xc0e387=_0x410325(_0x2d4cd5(0x1e3),_0x105c23,_0x522b7b);if(_0xc0e387)return[_0xc0e387,_0x2d4cd5(0x1ea)];this[_0x2d4cd5(0x1e8)][_0x2d4cd5(0x1e9)][_0x2d4cd5(0x1ca)](_0x105c23);}const _0xe220d3=this[_0x2d4cd5(0x1da)](_0x4704af,!0x1);if(_0xe220d3){const _0x1604de=this[_0x2d4cd5(0x1dd)](_0xe220d3),_0x44673a=_0x410325(_0x2d4cd5(0x1e3),_0x1604de,_0x522b7b);if(_0x44673a)return[_0x44673a,_0x2d4cd5(0x200)];this[_0x2d4cd5(0x1e8)][_0x2d4cd5(0x1e9)][_0x2d4cd5(0x1ca)](_0x1604de);}return _0x203903?_0x4704af[_0x2d4cd5(0x1f9)]?this[_0x2d4cd5(0x1df)](_0x4704af,_0x522b7b):[_0x522b7b[_0x2d4cd5(0x208)][_0x522b7b[_0x2d4cd5(0x208)][_0x2d4cd5(0x1d8)]-0x1],_0x2d4cd5(0x1ea)]:[_0x522b7b[_0x2d4cd5(0x208)][0x0],_0x2d4cd5(0x200)];}[_0x5100d4(0x1df)](_0x557caf,_0x501297){const _0x4c45f9=_0x5100d4,_0x43ccf3=[],_0x443745=this[_0x4c45f9(0x1f8)](_0x557caf,!0x0);if(_0x443745){const _0x382f9a=this[_0x4c45f9(0x1dd)](_0x443745),_0x361c43=_0x410325(_0x4c45f9(0x1e3),_0x382f9a,_0x501297);_0x361c43&&_0x43ccf3[_0x4c45f9(0x1ca)]([_0x361c43,_0x4c45f9(0x1ea)]);}const _0x5cc12a=this[_0x4c45f9(0x1da)](_0x557caf,!0x0);if(_0x5cc12a){const _0x250ade=this[_0x4c45f9(0x1dd)](_0x5cc12a),_0x2b36ea=_0x410325(_0x4c45f9(0x1e3),_0x250ade,_0x501297);_0x2b36ea&&_0x43ccf3[_0x4c45f9(0x1ca)]([_0x2b36ea,_0x4c45f9(0x200)]);}if(_0x43ccf3[_0x4c45f9(0x1d8)]>0x1)return _0x183505(_0x43ccf3[0x0][0x0])<=_0x183505(_0x43ccf3[0x1][0x0])?_0x43ccf3[0x0]:_0x43ccf3[0x1];return 0x1===_0x43ccf3[_0x4c45f9(0x1d8)]?_0x43ccf3[0x0]:[_0x501297[_0x4c45f9(0x1fc)],_0x4c45f9(0x1ea)];}[_0x5100d4(0x1da)](_0x2d2f5c,_0x448714){const _0x2a7da0=_0x5100d4;let _0xf74fa1=_0x2d2f5c[_0x2a7da0(0x1f9)],_0x41d1c3=null,_0x2122da=!0x1;for(;_0xf74fa1;){if(_0x42c8c7(_0xf74fa1)){if(this[_0x2a7da0(0x207)](_0xf74fa1)&&(_0x41d1c3=_0xf74fa1),this[_0x2a7da0(0x1c6)](_0xf74fa1)&&_0x448714&&!_0x2122da){_0x2122da=!0x0,_0xf74fa1=_0xf74fa1[_0x2a7da0(0x1f9)];continue;}break;}const _0x587c09=_0x4a5f16(_0xf74fa1,_0x2a7da0(0x1e3));if(_0x587c09&&_0x2a7da0(0x1d9)!==_0x587c09&&this[_0x2a7da0(0x1f1)][_0x2a7da0(0x204)](_0x587c09)){_0x41d1c3=_0xf74fa1;break;}_0xf74fa1=_0xf74fa1[_0x2a7da0(0x1f9)];}return _0x41d1c3;}[_0x5100d4(0x1f8)](_0x6268d1,_0x11409e){const _0x74f22d=_0x5100d4;let _0x15c117=_0x6268d1[_0x74f22d(0x1e2)],_0x59f182=null,_0x16a19a=!0x1;for(;_0x15c117;){if(_0x42c8c7(_0x15c117)){if(this[_0x74f22d(0x207)](_0x15c117)&&(_0x59f182=_0x15c117),this[_0x74f22d(0x1c6)](_0x15c117)&&_0x11409e&&!_0x16a19a){_0x16a19a=!0x0,_0x15c117=_0x15c117[_0x74f22d(0x1e2)];continue;}break;}const _0x25711c=_0x4a5f16(_0x15c117,_0x74f22d(0x1e3));if(_0x25711c&&_0x74f22d(0x1d9)!==_0x25711c&&this[_0x74f22d(0x1f1)][_0x74f22d(0x204)](_0x25711c)){_0x59f182=_0x15c117;break;}_0x15c117=_0x15c117[_0x74f22d(0x1e2)];}return _0x59f182;}[_0x5100d4(0x1f7)](_0x2dfe35){const _0x16de65=_0x5100d4;_0x1c973b(_0x2dfe35)&&_0x45ebbc(_0x16de65(0x1e3),null,_0x2dfe35)[_0x16de65(0x1de)](_0xd2bf9f=>{const _0x2be85d=_0x16de65;if(this[_0x2be85d(0x1ee)](_0xd2bf9f)&&!this[_0x2be85d(0x203)](_0xd2bf9f)){const _0x950a2e=_0x4a5f16(_0xd2bf9f,_0x2be85d(0x1e3));_0x5d1ea5(_0xd2bf9f,_0x2be85d(0x1e0),_0x950a2e),_0x5d1ea5(_0xd2bf9f,_0x2be85d(0x1e3),null);}});}[_0x5100d4(0x1dd)](_0x9f6a69){const _0x453bfa=_0x5100d4;if(!_0x9f6a69)return null;if(_0x1c973b(_0x9f6a69))return _0x4a5f16(_0x9f6a69,_0x453bfa(0x1e3));if(_0x42c8c7(_0x9f6a69)){const _0x5884c9=_0x4d4df9(_0x9f6a69)[_0x453bfa(0x202)](/removed[\s*-]data-id="([^"]+)"/);if(_0x5884c9&&_0x5884c9[0x1])return _0x5884c9[0x1];}return null;}[_0x5100d4(0x206)](_0x2c5bce){const _0x301e12=_0x5100d4;if(_0x42c8c7(_0x2c5bce)){const _0x4aa2c3=_0x4d4df9(_0x2c5bce)[_0x301e12(0x202)](/removed[\s*-]data-id="([^"]+)"/);_0x4aa2c3&&_0x4aa2c3[0x1]&&this[_0x301e12(0x1e8)][_0x301e12(0x1c5)][_0x301e12(0x1ca)](_0x4aa2c3[0x1]);}}[_0x5100d4(0x209)](_0x2b4f42){const _0x281683=_0x5100d4;return this[_0x281683(0x1ee)](_0x2b4f42)?_0x4a5f16(_0x2b4f42,_0x281683(0x1e3)):this[_0x281683(0x1cc)]();}[_0x5100d4(0x1f3)](_0x55ff65){const _0x5bdc56=_0x5100d4;_0x2565ca(_0x55ff65)[_0x5bdc56(0x1d4)](_0x149fa4=>this[_0x5bdc56(0x207)](_0x149fa4)||this[_0x5bdc56(0x1c6)](_0x149fa4))[_0x5bdc56(0x1de)](_0x364bb7=>{_0xff1fac(_0x364bb7);});}[_0x5100d4(0x1d1)](_0xd9b43d){const _0x515477=_0x5100d4,_0x305981=_0xd9b43d[_0x515477(0x208)],_0x4a0ae2=_0x305981[_0x305981[_0x515477(0x1d8)]-0x1];_0x4a0ae2&&_0x1c973b(_0x4a0ae2)&&_0x5d1ea5(_0x4a0ae2,_0x515477(0x1c8),_0x515477(0x1e6));}[_0x5100d4(0x1f2)](_0x5b0a19,_0x4a0bbe){const _0x4fee56=_0x5100d4,_0x4ce541=_0x410325(_0x4fee56(0x1c8),_0x4fee56(0x1e6),_0x5b0a19);if(!_0x4ce541)return;const _0x53ad8f=_0x5078ad(_0x4ce541)[_0x4fee56(0x1cd)](0x0,-0x1),_0x405005=_0x53ad8f[_0x4fee56(0x1d8)];let _0x4ced9c=_0x4ce541;if(_0x405005>_0x4a0bbe){let _0x3963af=_0x405005,_0x8d117e=null;for(;_0x3963af>_0x4a0bbe&&_0x3963af>=0x0;)_0x3963af--,_0x8d117e=_0x53ad8f[_0x3963af];_0x8d117e&&(_0x4ced9c=_0x8d117e,_0x5d1ea5(_0x4ce541,_0x4fee56(0x1c8),null),_0x5d1ea5(_0x8d117e,_0x4fee56(0x1c8),_0x4fee56(0x1e6)));}else{if(_0x405005<_0x4a0bbe){let _0x315fc4=_0x405005,_0x2a012e=_0x4ce541;for(;_0x315fc4<_0x4a0bbe;){const _0x321d10=_0x2a012e[_0x4fee56(0x208)][_0x4fee56(0x1d4)](_0x4fb19f=>_0x1c973b(_0x4fb19f));if(0x0===_0x321d10[_0x4fee56(0x1d8)])break;_0x315fc4++,_0x2a012e=_0x321d10[_0x321d10[_0x4fee56(0x1d8)]-0x1];}_0x2a012e&&(_0x4ced9c=_0x2a012e,_0x5d1ea5(_0x4ce541,_0x4fee56(0x1c8),null),_0x5d1ea5(_0x2a012e,_0x4fee56(0x1c8),_0x4fee56(0x1e6)));}}let _0x2564b4=_0x4ced9c;for(;_0x2564b4;){for(;_0x2564b4[_0x4fee56(0x1f9)];)_0x2564b4=_0x2564b4[_0x4fee56(0x1f9)],_0x1c973b(_0x2564b4)&&_0x5d1ea5(_0x2564b4,_0x4fee56(0x1c8),_0x4fee56(0x1e6));_0x2564b4=_0x2564b4[_0x4fee56(0x1cb)];}}[_0x5100d4(0x1cf)](_0x5456b6){const _0x5df42e=_0x5100d4;return Boolean(_0x5df42e(0x1d9)===_0x4a5f16(_0x5456b6,_0x5df42e(0x1e3)));}[_0x5100d4(0x1ee)](_0x5607cf){const _0x29e18b=_0x5100d4;return Boolean((_0x4a5f16(_0x5607cf,_0x29e18b(0x1e3))||'')[_0x29e18b(0x1d8)]>0x0&&_0x29e18b(0x1d9)!==_0x4a5f16(_0x5607cf,_0x29e18b(0x1e3)));}[_0x5100d4(0x207)](_0xbe4e44){const _0xa9db89=_0x5100d4;return!!_0xbe4e44&&Boolean(_0x42c8c7(_0xbe4e44)&&_0x4d4df9(_0xbe4e44)[_0xa9db89(0x202)](/removed[\s*-]data-id="[^"]+"/));}[_0x5100d4(0x203)](_0x9100d2){const _0x2ba37b=_0x5100d4;let _0x25af83=_0x9100d2[_0x2ba37b(0x1cb)];for(;_0x25af83;){if(_0x4a5f16(_0x25af83,_0x2ba37b(0x1e0)))return!0x0;_0x25af83=_0x25af83[_0x2ba37b(0x1cb)];}return!0x1;}[_0x5100d4(0x1c6)](_0x35c094){const _0x44fce5=_0x5100d4;return Boolean(_0x42c8c7(_0x35c094)&&_0x4d4df9(_0x35c094)[_0x44fce5(0x202)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x39b1e7=_0xc1c1;(function(_0x4fa1d8,_0x12e7f5){const _0x25b48f=_0xc1c1,_0x34c3fa=_0x4fa1d8();while(!![]){try{const _0x26af5e=parseInt(_0x25b48f(0xe3))/0x1*(-parseInt(_0x25b48f(0xe0))/0x2)+-parseInt(_0x25b48f(0xdb))/0x3+-parseInt(_0x25b48f(0xb6))/0x4+parseInt(_0x25b48f(0xad))/0x5+-parseInt(_0x25b48f(0xc2))/0x6+-parseInt(_0x25b48f(0xe7))/0x7+-parseInt(_0x25b48f(0xdd))/0x8*(-parseInt(_0x25b48f(0xae))/0x9);if(_0x26af5e===_0x12e7f5)break;else _0x34c3fa['push'](_0x34c3fa['shift']());}catch(_0x1cfbf6){_0x34c3fa['push'](_0x34c3fa['shift']());}}}(_0x5445,0x40277));import{ObservableMixin as _0x2416ce,uid as _0x4a43c2}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0xddd85,findByAttribute as _0x3a5e12,getAttribute as _0x5dfcfc,isComment as _0x389d70,isTag as _0x21b095,insertElement as _0x444c7d,moveElement as _0x8ac3c9,removeElement as _0x3de19b,replaceElement as _0x1bafcb,serialize as _0x528982,setAttribute as _0x987284,clone as _0x6e2e96,findAllComments as _0x59a2ef,getParents as _0x39dc7e,getNodeNestingLevel as _0x2e43cd,areNodesSame as _0x508257,removeElementsAfter as _0x2395c6}from'../utils/htmlparser.js';function _0xc1c1(_0x2d66d7,_0x186894){const _0x544581=_0x5445();return _0xc1c1=function(_0xc1c192,_0x318b5b){_0xc1c192=_0xc1c192-0xab;let _0x28cae1=_0x544581[_0xc1c192];return _0x28cae1;},_0xc1c1(_0x2d66d7,_0x186894);}function _0x5445(){const _0x4c3999=['_hasWrappedParent','3420214jsZHca','reverse','_touchedNodesState','modifiedIds','_markWrappedElements','nextSibling','previousSibling','_existingDataIds','has','_removeSpecialComments','slice','removedIds','2467480XPxMdo','131004lzSBEq','cloneNode','newIds','_isNewNode','data-removed','beforebegin','_findNextElementWithDataId','lastTouchedId','1862820xYcFTv','markUnstableElements','_storeDeletedElementIds','trim','indexOf','afterbegin','merge','data-unstable','invalidIds','_isExistingNode','parentNode','replaceRemovedWith','2701242ocsfrq','lastChild','filter','splice','_replaceNode','match','from','length','_markUnstableElements','afterend','forEach','childNodes','nodeType','push','_generateUid','_isExistingContentComment','_getNodeDataId','_findReferenceNode','markUnstableElementsDepth','includes','data-wrapped-id','_findPrevElementWithDataId','true','_insertNodes','map','36066RRjTrl','_findFallbackReferenceNode','920LBYZhs','_getUid','new-element','976250gUpFOp','_isDelNode','_markLastTagElementUnstable','1SVYRnJ','cutAfterLastChange','data-id'];_0x5445=function(){return _0x4c3999;};return _0x5445();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2416ce(){[_0x39b1e7(0xd0)];[_0x39b1e7(0xe9)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x39b1e7(0xee)]=new Set();constructor(_0x4c7867){const _0x22be46=_0x39b1e7;super(),this[_0x22be46(0xd0)]=_0x4c7867||_0x4a43c2;}[_0x39b1e7(0xbc)](_0x53421c,_0x51293f,_0x4be1c0){const _0x5aaf22=_0x39b1e7,_0x118987=_0x6e2e96(_0x53421c);if(0x0===_0x51293f[_0x5aaf22(0xcd)][_0x5aaf22(0xc9)]){const _0xad3bd7=[];return _0xddd85(_0x5aaf22(0xe5),_0x5aaf22(0xdf),_0x118987)[_0x5aaf22(0xcc)](_0x1c21d1=>{const _0x296953=_0x5aaf22,_0x53bdc0=this[_0x296953(0xd0)]();_0x987284(_0x1c21d1,_0x296953(0xe5),_0x53bdc0),_0xad3bd7[_0x296953(0xcf)](_0x53bdc0);}),this[_0x5aaf22(0xf0)](_0x118987),{'parsedContent':_0x118987,'newNodeIds':_0xad3bd7,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xb7)]&&this[_0x5aaf22(0xe2)](_0x118987),this[_0x5aaf22(0xe9)][_0x5aaf22(0xb0)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xea)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xbe)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)]=null,this[_0x5aaf22(0xee)]=new Set(_0xddd85(_0x5aaf22(0xe5),null,_0x51293f)[_0x5aaf22(0xda)](_0x3edf93=>_0x5dfcfc(_0x3edf93,_0x5aaf22(0xe5)))[_0x5aaf22(0xc4)](_0x2c59ad=>!!_0x2c59ad));let _0x534cf8=-0x1,_0x5ac2a3=!0x1;const _0x5ef03e=_0x118987[_0x5aaf22(0xcd)],_0x13bc78=Array[_0x5aaf22(0xc8)](_0x5ef03e)[_0x5aaf22(0xc4)](_0x538ebb=>!(0x3===_0x538ebb[_0x5aaf22(0xce)]&&''===_0x528982(_0x538ebb)[_0x5aaf22(0xb9)]())),_0x4eeeb1=_0x13bc78[_0x5aaf22(0xc9)];for(let _0x4fe309=0x0;_0x4fe309<_0x4eeeb1;_0x4fe309++){const _0x4af4f7=_0x13bc78[_0x4fe309],_0x1fd670=_0x13bc78[_0x4fe309+0x1];if(this[_0x5aaf22(0xb1)](_0x4af4f7)){if(-0x1===_0x534cf8&&(_0x534cf8=_0x4fe309),this[_0x5aaf22(0xeb)](_0x4af4f7),!this[_0x5aaf22(0xb1)](_0x1fd670)){const [_0x62e911,_0x4afca2]=this[_0x5aaf22(0xd3)](_0x4af4f7,_0x5ac2a3,_0x51293f);if(_0x62e911){const _0x15227c=Array[_0x5aaf22(0xc8)](_0x13bc78)[_0x5aaf22(0xab)](_0x534cf8,_0x4fe309+0x1);this[_0x5aaf22(0xd9)](_0x62e911,_0x15227c,_0x4afca2),_0x534cf8=-0x1;}}}else{if(this[_0x5aaf22(0xd1)](_0x4af4f7))_0x5ac2a3=!0x0;else{if(this[_0x5aaf22(0xbf)](_0x4af4f7)){const _0x1efbf6=_0x5dfcfc(_0x4af4f7,_0x5aaf22(0xe5));if(_0x1efbf6&&this[_0x5aaf22(0xee)][_0x5aaf22(0xef)](_0x1efbf6)){const _0x124a4a=_0x3a5e12(_0x5aaf22(0xe5),_0x1efbf6,_0x51293f);this[_0x5aaf22(0xc6)](_0x124a4a,_0x4af4f7);}if(this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)][_0x5aaf22(0xd5)](_0x1efbf6)){const _0x1bee3e=this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)][_0x5aaf22(0xba)](_0x1efbf6);this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)][_0x5aaf22(0xc5)](_0x1bee3e,0x1);}}else{if(this[_0x5aaf22(0xe1)](_0x4af4f7)){const _0x57484f=_0x5dfcfc(_0x4af4f7,_0x5aaf22(0xe5));this[_0x5aaf22(0xe9)][_0x5aaf22(0xea)][_0x5aaf22(0xd5)](_0x57484f)||this[_0x5aaf22(0xb8)](_0x4af4f7);}}}}}for(const _0x1c66fe of this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)]){const _0x266ab5=_0x3a5e12(_0x5aaf22(0xe5),_0x1c66fe,_0x51293f);if(_0x266ab5){if(_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xc1)]){this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)]=_0x1c66fe;const _0x16d5bb=_0x4be1c0[_0x5aaf22(0xc1)][_0x5aaf22(0xaf)](!0x0);_0x987284(_0x16d5bb,_0x5aaf22(0xe5),_0x1c66fe),_0x987284(_0x16d5bb,_0x5aaf22(0xb2),_0x5aaf22(0xd8)),_0x1bafcb(_0x266ab5,_0x16d5bb);}else _0x3de19b(_0x266ab5);}}if(_0xddd85(_0x5aaf22(0xd6),null,_0x51293f)[_0x5aaf22(0xcc)](_0x2a6ba2=>{const _0x31d2bb=_0x5aaf22,_0x54d6b6=_0x5dfcfc(_0x2a6ba2,_0x31d2bb(0xd6)),_0x196cf9=_0x3a5e12(_0x31d2bb(0xe5),_0x54d6b6,_0x51293f);_0x196cf9&&_0x8ac3c9(_0x196cf9,_0x2a6ba2);}),_0xddd85(_0x5aaf22(0xe5),_0x5aaf22(0xdf),_0x51293f)[_0x5aaf22(0xcc)](_0xa26066=>{const _0x73c644=_0x5aaf22,_0x31c738=this[_0x73c644(0xde)](_0xa26066);_0x987284(_0xa26066,_0x73c644(0xe5),_0x31c738),this[_0x73c644(0xe9)][_0x73c644(0xb0)][_0x73c644(0xcf)](_0x31c738);}),this[_0x5aaf22(0xf0)](_0x51293f),_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xb7)]&&this[_0x5aaf22(0xca)](_0x51293f,_0x4be1c0[_0x5aaf22(0xd4)]||0x0),_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xe4)]&&this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)]){let _0x5ba65b=_0x3a5e12(_0x5aaf22(0xe5),this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)],_0x51293f);for(;_0x5ba65b;)_0x2395c6(_0x5ba65b),_0x5ba65b=_0x5ba65b[_0x5aaf22(0xc0)];}return{'parsedContent':_0x51293f,'newNodeIds':this[_0x5aaf22(0xe9)][_0x5aaf22(0xb0)],'modifiedNodeIds':this[_0x5aaf22(0xe9)][_0x5aaf22(0xea)],'removedNodeIds':this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)]};}[_0x39b1e7(0xd9)](_0x1f8c47,_0x404c9f,_0xc8b640){const _0x364244=_0x39b1e7;for(const _0x2dc093 of _0x404c9f){const _0x27edb5=this[_0x364244(0xde)](_0x2dc093);_0x987284(_0x2dc093,_0x364244(0xe5),_0x27edb5),this[_0x364244(0xe9)][_0x364244(0xb0)][_0x364244(0xcf)](_0x27edb5),this[_0x364244(0xe9)][_0x364244(0xb5)]=_0x27edb5;}const _0x4a3095=_0x364244(0xbb)===_0xc8b640||_0x364244(0xcb)===_0xc8b640?_0x404c9f[_0x364244(0xe8)]():_0x404c9f;for(const _0x5721f7 of _0x4a3095)_0x444c7d(_0x1f8c47,_0x5721f7,_0xc8b640);}[_0x39b1e7(0xc6)](_0xf6fe51,_0x1b8b29){const _0x22abde=_0x39b1e7;if(!_0xf6fe51)return;if(_0x508257(_0xf6fe51,_0x1b8b29))return;const _0x37b10c=this[_0x22abde(0xde)](_0xf6fe51);_0x987284(_0x1b8b29,_0x22abde(0xe5),_0x37b10c),this[_0x22abde(0xe9)][_0x22abde(0xea)][_0x22abde(0xcf)](_0x37b10c),this[_0x22abde(0xe9)][_0x22abde(0xb5)]=_0x37b10c,_0x1bafcb(_0xf6fe51,_0x1b8b29[_0x22abde(0xaf)](!0x0));}[_0x39b1e7(0xd3)](_0x2345a8,_0x2210a1,_0x13e79c){const _0x4ea093=_0x39b1e7,_0x347822=this[_0x4ea093(0xd7)](_0x2345a8,!0x1);if(_0x347822){const _0x8e3c87=this[_0x4ea093(0xd2)](_0x347822),_0x1416aa=_0x3a5e12(_0x4ea093(0xe5),_0x8e3c87,_0x13e79c);if(_0x1416aa)return[_0x1416aa,_0x4ea093(0xcb)];this[_0x4ea093(0xe9)][_0x4ea093(0xbe)][_0x4ea093(0xcf)](_0x8e3c87);}const _0x18a711=this[_0x4ea093(0xb4)](_0x2345a8,!0x1);if(_0x18a711){const _0x4a348f=this[_0x4ea093(0xd2)](_0x18a711),_0x48faed=_0x3a5e12(_0x4ea093(0xe5),_0x4a348f,_0x13e79c);if(_0x48faed)return[_0x48faed,_0x4ea093(0xb3)];this[_0x4ea093(0xe9)][_0x4ea093(0xbe)][_0x4ea093(0xcf)](_0x4a348f);}return _0x2210a1?_0x2345a8[_0x4ea093(0xec)]?this[_0x4ea093(0xdc)](_0x2345a8,_0x13e79c):[_0x13e79c[_0x4ea093(0xcd)][_0x13e79c[_0x4ea093(0xcd)][_0x4ea093(0xc9)]-0x1],_0x4ea093(0xcb)]:[_0x13e79c[_0x4ea093(0xcd)][0x0],_0x4ea093(0xb3)];}[_0x39b1e7(0xdc)](_0xd2f6a9,_0x254d66){const _0x3a1157=_0x39b1e7,_0x3e2bf3=[],_0xad6265=this[_0x3a1157(0xd7)](_0xd2f6a9,!0x0);if(_0xad6265){const _0x47622d=this[_0x3a1157(0xd2)](_0xad6265),_0x14eccc=_0x3a5e12(_0x3a1157(0xe5),_0x47622d,_0x254d66);_0x14eccc&&_0x3e2bf3[_0x3a1157(0xcf)]([_0x14eccc,_0x3a1157(0xcb)]);}const _0x5e5a8d=this[_0x3a1157(0xb4)](_0xd2f6a9,!0x0);if(_0x5e5a8d){const _0x3a3357=this[_0x3a1157(0xd2)](_0x5e5a8d),_0x4801e7=_0x3a5e12(_0x3a1157(0xe5),_0x3a3357,_0x254d66);_0x4801e7&&_0x3e2bf3[_0x3a1157(0xcf)]([_0x4801e7,_0x3a1157(0xb3)]);}if(_0x3e2bf3[_0x3a1157(0xc9)]>0x1)return _0x2e43cd(_0x3e2bf3[0x0][0x0])<=_0x2e43cd(_0x3e2bf3[0x1][0x0])?_0x3e2bf3[0x0]:_0x3e2bf3[0x1];return 0x1===_0x3e2bf3[_0x3a1157(0xc9)]?_0x3e2bf3[0x0]:[_0x254d66[_0x3a1157(0xc3)],_0x3a1157(0xcb)];}[_0x39b1e7(0xb4)](_0x2f52b9,_0x327528){const _0x3342f3=_0x39b1e7;let _0x4df068=_0x2f52b9[_0x3342f3(0xec)],_0x235985=null,_0x3e4c06=!0x1;for(;_0x4df068;){if(_0x389d70(_0x4df068)){if(this[_0x3342f3(0xe1)](_0x4df068)&&(_0x235985=_0x4df068),this[_0x3342f3(0xd1)](_0x4df068)&&_0x327528&&!_0x3e4c06){_0x3e4c06=!0x0,_0x4df068=_0x4df068[_0x3342f3(0xec)];continue;}break;}const _0x44fd59=_0x5dfcfc(_0x4df068,_0x3342f3(0xe5));if(_0x44fd59&&_0x3342f3(0xdf)!==_0x44fd59&&this[_0x3342f3(0xee)][_0x3342f3(0xef)](_0x44fd59)){_0x235985=_0x4df068;break;}_0x4df068=_0x4df068[_0x3342f3(0xec)];}return _0x235985;}[_0x39b1e7(0xd7)](_0x7c45a0,_0x8b7936){const _0x4bc59c=_0x39b1e7;let _0x392921=_0x7c45a0[_0x4bc59c(0xed)],_0x446ba4=null,_0x1e67a2=!0x1;for(;_0x392921;){if(_0x389d70(_0x392921)){if(this[_0x4bc59c(0xe1)](_0x392921)&&(_0x446ba4=_0x392921),this[_0x4bc59c(0xd1)](_0x392921)&&_0x8b7936&&!_0x1e67a2){_0x1e67a2=!0x0,_0x392921=_0x392921[_0x4bc59c(0xed)];continue;}break;}const _0x37d2e6=_0x5dfcfc(_0x392921,_0x4bc59c(0xe5));if(_0x37d2e6&&_0x4bc59c(0xdf)!==_0x37d2e6&&this[_0x4bc59c(0xee)][_0x4bc59c(0xef)](_0x37d2e6)){_0x446ba4=_0x392921;break;}_0x392921=_0x392921[_0x4bc59c(0xed)];}return _0x446ba4;}[_0x39b1e7(0xeb)](_0x320a0a){const _0x517aed=_0x39b1e7;_0x21b095(_0x320a0a)&&_0xddd85(_0x517aed(0xe5),null,_0x320a0a)[_0x517aed(0xcc)](_0x54491e=>{const _0x4c4a82=_0x517aed;if(this[_0x4c4a82(0xbf)](_0x54491e)&&!this[_0x4c4a82(0xe6)](_0x54491e)){const _0x41f54f=_0x5dfcfc(_0x54491e,_0x4c4a82(0xe5));_0x987284(_0x54491e,_0x4c4a82(0xd6),_0x41f54f),_0x987284(_0x54491e,_0x4c4a82(0xe5),null);}});}[_0x39b1e7(0xd2)](_0x589019){const _0xdae545=_0x39b1e7;if(!_0x589019)return null;if(_0x21b095(_0x589019))return _0x5dfcfc(_0x589019,_0xdae545(0xe5));if(_0x389d70(_0x589019)){const _0x14269d=_0x528982(_0x589019)[_0xdae545(0xc7)](/removed[\s*-]data-id="([^"]+)"/);if(_0x14269d&&_0x14269d[0x1])return _0x14269d[0x1];}return null;}[_0x39b1e7(0xb8)](_0xf58344){const _0x460e62=_0x39b1e7;if(_0x389d70(_0xf58344)){const _0x4e6c2a=_0x528982(_0xf58344)[_0x460e62(0xc7)](/removed[\s*-]data-id="([^"]+)"/);_0x4e6c2a&&_0x4e6c2a[0x1]&&this[_0x460e62(0xe9)][_0x460e62(0xac)][_0x460e62(0xcf)](_0x4e6c2a[0x1]);}}[_0x39b1e7(0xde)](_0x1823d2){const _0x192bbe=_0x39b1e7;return this[_0x192bbe(0xbf)](_0x1823d2)?_0x5dfcfc(_0x1823d2,_0x192bbe(0xe5)):this[_0x192bbe(0xd0)]();}[_0x39b1e7(0xf0)](_0x30f224){const _0xfbf2ad=_0x39b1e7;_0x59a2ef(_0x30f224)[_0xfbf2ad(0xc4)](_0x45071e=>this[_0xfbf2ad(0xe1)](_0x45071e)||this[_0xfbf2ad(0xd1)](_0x45071e))[_0xfbf2ad(0xcc)](_0x46b1ea=>{_0x3de19b(_0x46b1ea);});}[_0x39b1e7(0xe2)](_0x32374c){const _0x54dc23=_0x39b1e7,_0x105fbd=_0x32374c[_0x54dc23(0xcd)],_0x5bac3d=_0x105fbd[_0x105fbd[_0x54dc23(0xc9)]-0x1];_0x5bac3d&&_0x21b095(_0x5bac3d)&&_0x987284(_0x5bac3d,_0x54dc23(0xbd),_0x54dc23(0xd8));}[_0x39b1e7(0xca)](_0x3e52b1,_0x541705){const _0x328cd6=_0x39b1e7,_0x540cde=_0x3a5e12(_0x328cd6(0xbd),_0x328cd6(0xd8),_0x3e52b1);if(!_0x540cde)return;const _0xbf5553=_0x39dc7e(_0x540cde)[_0x328cd6(0xab)](0x0,-0x1),_0x58f906=_0xbf5553[_0x328cd6(0xc9)];let _0xc742f8=_0x540cde;if(_0x58f906>_0x541705){let _0x3baa0f=_0x58f906,_0x5f17a2=null;for(;_0x3baa0f>_0x541705&&_0x3baa0f>=0x0;)_0x3baa0f--,_0x5f17a2=_0xbf5553[_0x3baa0f];_0x5f17a2&&(_0xc742f8=_0x5f17a2,_0x987284(_0x540cde,_0x328cd6(0xbd),null),_0x987284(_0x5f17a2,_0x328cd6(0xbd),_0x328cd6(0xd8)));}else{if(_0x58f906<_0x541705){let _0x1afe53=_0x58f906,_0x342459=_0x540cde;for(;_0x1afe53<_0x541705;){const _0x14dd0a=_0x342459[_0x328cd6(0xcd)][_0x328cd6(0xc4)](_0x17862c=>_0x21b095(_0x17862c));if(0x0===_0x14dd0a[_0x328cd6(0xc9)])break;_0x1afe53++,_0x342459=_0x14dd0a[_0x14dd0a[_0x328cd6(0xc9)]-0x1];}_0x342459&&(_0xc742f8=_0x342459,_0x987284(_0x540cde,_0x328cd6(0xbd),null),_0x987284(_0x342459,_0x328cd6(0xbd),_0x328cd6(0xd8)));}}let _0x1993fb=_0xc742f8;for(;_0x1993fb;){for(;_0x1993fb[_0x328cd6(0xec)];)_0x1993fb=_0x1993fb[_0x328cd6(0xec)],_0x21b095(_0x1993fb)&&_0x987284(_0x1993fb,_0x328cd6(0xbd),_0x328cd6(0xd8));_0x1993fb=_0x1993fb[_0x328cd6(0xc0)];}}[_0x39b1e7(0xb1)](_0x5f223b){const _0x58dd84=_0x39b1e7;return Boolean(_0x58dd84(0xdf)===_0x5dfcfc(_0x5f223b,_0x58dd84(0xe5)));}[_0x39b1e7(0xbf)](_0xef4a0c){const _0x2c12df=_0x39b1e7;return Boolean((_0x5dfcfc(_0xef4a0c,_0x2c12df(0xe5))||'')[_0x2c12df(0xc9)]>0x0&&_0x2c12df(0xdf)!==_0x5dfcfc(_0xef4a0c,_0x2c12df(0xe5)));}[_0x39b1e7(0xe1)](_0x28661e){const _0x52d45b=_0x39b1e7;return!!_0x28661e&&Boolean(_0x389d70(_0x28661e)&&_0x528982(_0x28661e)[_0x52d45b(0xc7)](/removed[\s*-]data-id="[^"]+"/));}[_0x39b1e7(0xe6)](_0x4c749e){const _0x48eba7=_0x39b1e7;let _0x408149=_0x4c749e[_0x48eba7(0xc0)];for(;_0x408149;){if(_0x5dfcfc(_0x408149,_0x48eba7(0xd6)))return!0x0;_0x408149=_0x408149[_0x48eba7(0xc0)];}return!0x1;}[_0x39b1e7(0xd1)](_0x10ee38){const _0x5210e9=_0x39b1e7;return Boolean(_0x389d70(_0x10ee38)&&_0x528982(_0x10ee38)[_0x5210e9(0xc7)](/\s*existing[\s*-](content|document)\s*/g));}}
|