@ckeditor/ckeditor5-ai 47.7.0 → 47.7.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.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/aichatfeedcustomelementview.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/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.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/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.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/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x2da127=_0x509a;(function(_0x5bc0aa,_0x307979){const _0x4e1a39=_0x509a,_0xea0281=_0x5bc0aa();while(!![]){try{const _0x503a92=parseInt(_0x4e1a39(0xdc))/0x1+parseInt(_0x4e1a39(0xb4))/0x2+-parseInt(_0x4e1a39(0xaf))/0x3+parseInt(_0x4e1a39(0xac))/0x4+parseInt(_0x4e1a39(0xe4))/0x5+parseInt(_0x4e1a39(0xb3))/0x6+-parseInt(_0x4e1a39(0x99))/0x7;if(_0x503a92===_0x307979)break;else _0xea0281['push'](_0xea0281['shift']());}catch(_0x300325){_0xea0281['push'](_0xea0281['shift']());}}}(_0x338f,0x289df));import{ListItemView as _0x2a1574,HighlightedTextView as _0x53b46a,ButtonView as _0x1f89d3,ListView as _0x384409,IconView as _0x2506a6,createDropdown as _0x5d67d1,InputTextView as _0x1173df}from'ckeditor5/src/ui.js';function _0x338f(){const _0x4bdf4c=['256464uNRgFu','updateTitle','AI_CHAT_HISTORY_LOADING_UNPINNING','setConversationPinned','tiny','ck-ai-chat-history__item-date','value','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-main-content','panelPosition','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','selectConversation','set','_titleView','match','edit:cancel','_createCheckView','bindTemplate','AI_CHAT_HISTORY_LOADING_RENAMING','editConversationTitle','isVisible','focus','isOn','AI_CHAT_HISTORY_PIN_BUTTON','add','actions','extendTemplate','clear','_createAcceptEditButtonView','click','ck-ai-chat-history__item--edit','bind','element','locale','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item--active','execute','_createPinButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','247713IuIidz','ck-ai-chat-history__item-actions','listitem','LOADING_LABELS','AI_CHAT_HISTORY_LOADING_REMOVING','ck-ai-chat-history__item-title','ck-ai-loader__text','AI_CHAT_HISTORY_REMOVE','237395wQLLRU','change:isEdit','span','ck-ai-chat-history__item-content','_createEditInputView','label','ck-hidden','div','isEdit','buttonView','string','loadingState','items','key','_createMenuDropdownView','_createSpinnerView','ck-ai-chat-history__item','ck-ai-chat-history__item-check-container','ck-confirm-view-cancel','highlightText','3658116YKtsDd','showConfirm','removeConversation','mainContent','ck-confirm-view-submit','AI_CHAT_HISTORY_LOADING_PINNING','AI_CHAT_HISTORY_EDIT_NAME','updateLoadingState','_createCancelEditButtonView','children','createCollection','_commitEditInputValue','ck-ai-loader','panelView','addMany','ck-ai-chat-history__item-check','withText','fire','then','649772aZzSIu','pinned','isMatching','409935StmTZs','text','setTemplate','Enter','1438398qcKygD'];_0x338f=function(){return _0x4bdf4c;};return _0x338f();}import{IconThreeHorizontalDots as _0x576ceb,IconPin as _0x439396,IconCheck as _0x35ffb7,IconCancel as _0x813f83}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1a3f23,ConfirmMixin as _0x5d8442}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x3cce10}from'es-toolkit/compat';function _0x509a(_0x6828bf,_0xe6de62){const _0x338ffd=_0x338f();return _0x509a=function(_0x509a69,_0x1423c6){_0x509a69=_0x509a69-0x92;let _0x2b43a3=_0x338ffd[_0x509a69];return _0x2b43a3;},_0x509a(_0x6828bf,_0xe6de62);}import{AISpinnerView as _0x1fc50e}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x336b93}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5d8442(_0x2a1574){['id'];static [_0x2da127(0xdf)]={'remove':_0x2da127(0xe0),'rename':_0x2da127(0xc7),'pin':_0x2da127(0x9e),'unpin':_0x2da127(0xb6)};[_0x2da127(0xce)];[_0x2da127(0x9c)];[_0x2da127(0xc2)];constructor(_0xdb8a97,_0x2786e8){const _0x156d25=_0x2da127;super(_0xdb8a97);const _0x262bb0=this[_0x156d25(0xc6)];this[_0x156d25(0xc1)](_0x156d25(0xec),!0x1),this[_0x156d25(0xc1)](_0x156d25(0xc9),!0x0),this[_0x156d25(0xc1)](_0x156d25(0xad),!!_0x2786e8[_0x156d25(0xad)]),this[_0x156d25(0xc1)](_0x156d25(0xef),null),this['id']=_0x2786e8['id'];const {title:_0x3c7be8,createdAt:_0x251c90,active:_0x219b78=!0x1}=_0x2786e8;this[_0x156d25(0xc2)]=new _0x53b46a(),this[_0x156d25(0xc2)][_0x156d25(0xb0)]=_0x3c7be8,this[_0x156d25(0xc2)][_0x156d25(0xcf)]({'attributes':{'class':[_0x156d25(0xe1)]}});const _0x4b167c=this[_0x156d25(0xc5)](),_0x343458=this[_0x156d25(0xda)](_0xdb8a97),_0x1f0e7c=this[_0x156d25(0x93)](),_0x1fe122=this[_0x156d25(0xe8)](_0xdb8a97,_0x3c7be8),_0x24908c=this[_0x156d25(0xd1)](_0xdb8a97,_0x1fe122),_0x406425=this[_0x156d25(0xa1)](_0xdb8a97,_0x1fe122);this[_0x156d25(0xce)]=this[_0x156d25(0xa3)](),this[_0x156d25(0x9c)]=this[_0x156d25(0xa3)](),this[_0x156d25(0x9c)][_0x156d25(0xcd)](this[_0x156d25(0xc2)]),this[_0x156d25(0xce)][_0x156d25(0xcd)](_0x343458),this[_0x156d25(0xce)][_0x156d25(0xcd)](_0x1f0e7c),this['on'](_0x156d25(0xe5),(_0x4bf756,_0x235e64,_0x1db4b2)=>{const _0x1a2706=_0x156d25;this[_0x1a2706(0xce)][_0x1a2706(0xd0)](),this[_0x1a2706(0x9c)][_0x1a2706(0xd0)](),_0x1db4b2?(this[_0x1a2706(0xce)][_0x1a2706(0xcd)](_0x24908c),this[_0x1a2706(0xce)][_0x1a2706(0xcd)](_0x406425),this[_0x1a2706(0x9c)][_0x1a2706(0xcd)](_0x1fe122),_0x1fe122[_0x1a2706(0xd5)][_0x1a2706(0xca)]()):(this[_0x1a2706(0xce)][_0x1a2706(0xcd)](_0x343458),this[_0x1a2706(0xce)][_0x1a2706(0xcd)](_0x1f0e7c),this[_0x1a2706(0x9c)][_0x1a2706(0xcd)](this[_0x1a2706(0xc2)]));}),this[_0x156d25(0xb1)]({'tag':'li','attributes':{'class':[_0x156d25(0x95),_0x219b78?_0x156d25(0xd8):'',_0x262bb0['if'](_0x156d25(0xc9),_0x156d25(0xea),_0x4c9f36=>!_0x4c9f36),_0x262bb0['if'](_0x156d25(0xec),_0x156d25(0xd3))],'role':_0x156d25(0xde)},'children':[{'tag':_0x156d25(0xe6),'attributes':{'class':[_0x156d25(0x96)]},'children':[{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xa8),_0x262bb0['if'](_0x156d25(0xef),_0x156d25(0xea),_0x4d8533=>!!_0x4d8533)]},'children':_0x219b78?[_0x4b167c]:[]},{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xa5),_0x262bb0['if'](_0x156d25(0xef),_0x156d25(0xea),_0x3dab2f=>!_0x3dab2f)]},'children':[this[_0x156d25(0x94)]()]}]},{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xbb)]},'children':[{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xe7)]},'on':{'click':this[_0x156d25(0xc6)]['to'](_0x156d25(0xd2))},'children':[{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xbd)]},'children':[{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xe1),_0x262bb0['if'](_0x156d25(0xef),_0x156d25(0xea),_0x1180a9=>!!_0x1180a9)]},'children':this[_0x156d25(0x9c)]},{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xe2),_0x262bb0['if'](_0x156d25(0xef),_0x156d25(0xea),_0x39c0e0=>!_0x39c0e0)]},'children':[{'text':_0x262bb0['to'](_0x156d25(0xef),_0x173d86=>_0x173d86?_0x336b93(this[_0x156d25(0xd6)],AIChatHistoryListItemView[_0x156d25(0xdf)][_0x173d86]):'')}]}]},{'tag':_0x156d25(0xe6),'attributes':{'class':[_0x156d25(0xb9)]},'children':[_0x251c90]}]},{'tag':_0x156d25(0xeb),'attributes':{'class':[_0x156d25(0xdd)]},'children':this[_0x156d25(0xce)]}]}]}),this['on'](_0x156d25(0xd2),()=>{const _0x6bcec4=_0x156d25;this[_0x6bcec4(0xec)]||this[_0x6bcec4(0xaa)](_0x6bcec4(0xc0),{'id':this['id']});});}[_0x2da127(0xb5)](_0x1bc33c){const _0x499134=_0x2da127;this[_0x499134(0xc2)][_0x499134(0xb0)]=_0x3cce10(_0x1bc33c);}[_0x2da127(0xa0)](_0x142c0a,_0x587874){const _0x447cab=_0x2da127;this[_0x447cab(0xc1)](_0x447cab(0xef),_0x587874?_0x142c0a:null);}[_0x2da127(0xc5)](){const _0x2c8bb3=_0x2da127,_0x428bf1=new _0x2506a6();return _0x428bf1[_0x2c8bb3(0xc1)]({'content':_0x35ffb7}),_0x428bf1;}[_0x2da127(0xda)](_0x13c7c3){const _0x108c88=_0x2da127,_0x1d4e44=new _0x1f89d3(_0x13c7c3);return _0x1d4e44[_0x108c88(0xc1)]({'label':_0x336b93(_0x13c7c3,_0x108c88(0xcc)),'icon':_0x439396,'withText':!0x1,'tooltip':!0x0}),_0x1d4e44[_0x108c88(0xd4)](_0x108c88(0xcb))['to'](this,_0x108c88(0xad)),_0x1d4e44['on'](_0x108c88(0xd9),()=>{const _0xde569c=_0x108c88,_0x5230d6=!this[_0xde569c(0xad)];this[_0xde569c(0xaa)](_0xde569c(0xb7),{'id':this['id'],'pinned':_0x5230d6});}),_0x1d4e44;}[_0x2da127(0x93)](){const _0x53a0df=_0x2da127,_0x4b27f2=_0x5d67d1(this[_0x53a0df(0xd6)],_0x1a3f23),_0x1886f8=_0x4b27f2[_0x53a0df(0xa6)][_0x53a0df(0xa2)];_0x4b27f2[_0x53a0df(0xed)][_0x53a0df(0xc1)]({'label':_0x336b93(this[_0x53a0df(0xd6)],_0x53a0df(0xbf)),'icon':_0x576ceb}),_0x4b27f2[_0x53a0df(0xbe)]='sw';const _0x539e86=new _0x1f89d3(this[_0x53a0df(0xd6)]);_0x539e86[_0x53a0df(0xe9)]=_0x336b93(this[_0x53a0df(0xd6)],_0x53a0df(0x9f)),_0x539e86[_0x53a0df(0xa9)]=!0x0,_0x539e86['on'](_0x53a0df(0xd9),()=>{const _0x4af8b7=_0x53a0df;this[_0x4af8b7(0xec)]=!0x0;});const _0xfa591d=new _0x1f89d3(this[_0x53a0df(0xd6)]);_0xfa591d[_0x53a0df(0xe9)]=_0x336b93(this[_0x53a0df(0xd6)],_0x53a0df(0xe3)),_0xfa591d[_0x53a0df(0xa9)]=!0x0,_0xfa591d['on'](_0x53a0df(0xd9),()=>{const _0x3b2b63=_0x53a0df;this[_0x3b2b63(0x9a)](_0x336b93(this[_0x3b2b63(0xd6)],_0x3b2b63(0xdb)),this[_0x3b2b63(0xd5)])[_0x3b2b63(0xab)](()=>{const _0x7e12c5=_0x3b2b63;this[_0x7e12c5(0xaa)](_0x7e12c5(0x9b),{'id':this['id']});});});const _0x2061fa=new _0x384409(this[_0x53a0df(0xd6)]),_0x1ead33=new _0x2a1574(this[_0x53a0df(0xd6)]);_0x1ead33[_0x53a0df(0xa2)][_0x53a0df(0xcd)](_0x539e86);const _0x1c257a=new _0x2a1574(this[_0x53a0df(0xd6)]);return _0x1c257a[_0x53a0df(0xa2)][_0x53a0df(0xcd)](_0xfa591d),_0x2061fa[_0x53a0df(0xf0)][_0x53a0df(0xa7)]([_0x1ead33,_0x1c257a]),_0x1886f8[_0x53a0df(0xcd)](_0x2061fa),_0x4b27f2;}[_0x2da127(0xe8)](_0x4cf0ff,_0x381aa7){const _0x2e06ae=_0x2da127,_0x4f3ec5=new _0x1173df(_0x4cf0ff),_0x1b1e1d=_0x4f3ec5[_0x2e06ae(0xc6)];return _0x4f3ec5[_0x2e06ae(0xba)]=_0x381aa7,_0x4f3ec5[_0x2e06ae(0xcf)]({'on':{'keydown':_0x1b1e1d['to'](_0x45666a=>{const _0x3e251a=_0x2e06ae;_0x3e251a(0xb2)==_0x45666a[_0x3e251a(0x92)]&&this[_0x3e251a(0xa4)](_0x4f3ec5);})}}),_0x4f3ec5;}[_0x2da127(0xd1)](_0x5a1a60,_0x457067){const _0x18f5f3=_0x2da127,_0x5791dd=new _0x1f89d3(_0x5a1a60);return _0x5791dd[_0x18f5f3(0xc1)]({'icon':_0x35ffb7,'withText':!0x1,'tooltip':_0x336b93(_0x5a1a60,_0x18f5f3(0xd7))}),_0x5791dd[_0x18f5f3(0xcf)]({'attributes':{'class':[_0x18f5f3(0x9d)]}}),_0x5791dd['on'](_0x18f5f3(0xd9),()=>{const _0x57e586=_0x18f5f3;this[_0x57e586(0xa4)](_0x457067);}),_0x5791dd;}[_0x2da127(0xa4)](_0x4b6488){const _0x4fc9b5=_0x2da127,_0x43ab8b=_0x4b6488[_0x4fc9b5(0xd5)][_0x4fc9b5(0xba)]||'';this[_0x4fc9b5(0xc2)][_0x4fc9b5(0xb0)]=_0x43ab8b,this[_0x4fc9b5(0xec)]=!0x1,this[_0x4fc9b5(0xaa)](_0x4fc9b5(0xc8),{'id':this['id'],'title':_0x43ab8b});}[_0x2da127(0xa1)](_0x3cc8cf,_0xf44e3e){const _0x1719ff=_0x2da127,_0x29eb73=new _0x1f89d3(_0x3cc8cf);return _0x29eb73[_0x1719ff(0xc1)]({'icon':_0x813f83,'withText':!0x1,'tooltip':_0x336b93(_0x3cc8cf,_0x1719ff(0xbc))}),_0x29eb73[_0x1719ff(0xcf)]({'attributes':{'class':[_0x1719ff(0x97)]}}),_0x29eb73['on'](_0x1719ff(0xd9),()=>{const _0x5ab4ce=_0x1719ff;this[_0x5ab4ce(0xec)]=!0x1,_0xf44e3e[_0x5ab4ce(0xba)]=this[_0x5ab4ce(0xc2)][_0x5ab4ce(0xb0)]||'',this[_0x5ab4ce(0xaa)](_0x5ab4ce(0xc4));}),_0x29eb73;}[_0x2da127(0x94)](){const _0x1b4de4=_0x2da127,_0x5a0064=new _0x1fc50e(_0x1b4de4(0xb8));return _0x5a0064[_0x1b4de4(0xc9)]=!0x0,_0x5a0064;}[_0x2da127(0xae)](_0x507c99){const _0x2c7016=_0x2da127;return this[_0x2c7016(0xc2)]&&_0x2c7016(0xee)==typeof this[_0x2c7016(0xc2)][_0x2c7016(0xb0)]&&this[_0x2c7016(0xc2)][_0x2c7016(0xb0)][_0x2c7016(0xc3)](_0x507c99)?{'title':!0x0}:null;}[_0x2da127(0x98)](_0x2818ac){const _0x3fc92d=_0x2da127;this[_0x3fc92d(0xc2)][_0x3fc92d(0x98)](_0x2818ac);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x52d1(_0x4a144e,_0x5b3fc8){const _0x5f2d0e=_0x5f2d();return _0x52d1=function(_0x52d133,_0x5cdc51){_0x52d133=_0x52d133-0xe9;let _0x2d172b=_0x5f2d0e[_0x52d133];return _0x2d172b;},_0x52d1(_0x4a144e,_0x5b3fc8);}function _0x5f2d(){const _0x4950f2=['ck-ai-chat-history__section-title','4592536IoEKDI','removeItem','addMany','6979128SFGCwT','find','items','45HXlsXv','div','_itemsListView','ck-hidden','highlightText','5261395immvMj','10405801BJbxEE','set','2350QebQit','1388258UMFUIw','title','bindTemplate','ck-ai-chat-history__section','remove','filter','length','354QFvQFS','isVisible','setTemplate','indexOf','splice','isMatching','itemsViews','getItem','6651380vbWSmk'];_0x5f2d=function(){return _0x4950f2;};return _0x5f2d();}const _0x5c795e=_0x52d1;(function(_0x9e3c93,_0x5e1491){const _0x3c6748=_0x52d1,_0x28aee2=_0x9e3c93();while(!![]){try{const _0x3bcb35=-parseInt(_0x3c6748(0x107))/0x1+-parseInt(_0x3c6748(0x106))/0x2*(parseInt(_0x3c6748(0xee))/0x3)+parseInt(_0x3c6748(0xf6))/0x4+parseInt(_0x3c6748(0x103))/0x5+parseInt(_0x3c6748(0xfb))/0x6+parseInt(_0x3c6748(0x104))/0x7+-parseInt(_0x3c6748(0xf8))/0x8*(parseInt(_0x3c6748(0xfe))/0x9);if(_0x3bcb35===_0x5e1491)break;else _0x28aee2['push'](_0x28aee2['shift']());}catch(_0x43fc5e){_0x28aee2['push'](_0x28aee2['shift']());}}}(_0x5f2d,0xec3bc));import{ListItemView as _0x13cbd6,View as _0x5e26b5,ListView as _0x71c46f}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x13cbd6{[_0x5c795e(0x108)];[_0x5c795e(0xf4)];[_0x5c795e(0x100)];constructor(_0x1fcd21,{title:_0x54fc15,items:_0x5cfdf0}){const _0x616aa3=_0x5c795e;super(_0x1fcd21);const _0x4e1d56=this[_0x616aa3(0xe9)];this[_0x616aa3(0x105)](_0x616aa3(0xef),!0x0),this[_0x616aa3(0x108)]=_0x54fc15,this[_0x616aa3(0xf4)]=_0x5cfdf0;const _0x3c237a=new _0x5e26b5(_0x1fcd21);_0x3c237a[_0x616aa3(0xf0)]({'tag':_0x616aa3(0xff),'attributes':{'class':[_0x616aa3(0xf7)]},'children':[this[_0x616aa3(0x108)]]}),this[_0x616aa3(0x100)]=new _0x71c46f(_0x1fcd21),this[_0x616aa3(0x100)][_0x616aa3(0xfd)][_0x616aa3(0xfa)](this[_0x616aa3(0xf4)]),this[_0x616aa3(0xf0)]({'tag':'li','attributes':{'class':[_0x616aa3(0xea),_0x4e1d56['if'](_0x616aa3(0xef),_0x616aa3(0x101),_0x5f1bdf=>!_0x5f1bdf)]},'children':[_0x3c237a,this[_0x616aa3(0x100)]]});}[_0x5c795e(0xec)](_0x1df396){const _0x324a86=_0x5c795e,_0x17ffcc=this[_0x324a86(0xf4)][_0x324a86(0xed)];let _0x2cb299=0x0;for(const _0x111bea of this[_0x324a86(0xf4)]){if(_0x1df396){const _0x3e9f05=_0x111bea[_0x324a86(0xf3)](_0x1df396);_0x111bea[_0x324a86(0xef)]=!!_0x3e9f05,_0x111bea[_0x324a86(0x102)](_0x1df396);}else _0x111bea[_0x324a86(0xef)]=!0x0,_0x111bea[_0x324a86(0x102)](null);_0x111bea[_0x324a86(0xef)]&&_0x2cb299++;}return this[_0x324a86(0xef)]=_0x2cb299>0x0,{'resultsCount':_0x2cb299,'totalItemsCount':_0x17ffcc};}[_0x5c795e(0xf5)](_0x127512){const _0x4f8489=_0x5c795e;return this[_0x4f8489(0xf4)][_0x4f8489(0xfc)](_0x185868=>_0x185868['id']===_0x127512);}[_0x5c795e(0xf9)](_0xf3cb33){const _0x587eca=_0x5c795e,_0x5288a2=this[_0x587eca(0xf4)][_0x587eca(0xf1)](_0xf3cb33);-0x1!==_0x5288a2&&(this[_0x587eca(0xf4)][_0x587eca(0xf2)](_0x5288a2,0x1),this[_0x587eca(0x100)][_0x587eca(0xfd)][_0x587eca(0xeb)](_0xf3cb33));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8d2b5b=_0x5829;function _0x5829(_0x42d15e,_0x34da70){const _0x2f6bf5=_0x2f6b();return _0x5829=function(_0x582941,_0x3e879c){_0x582941=_0x582941-0x139;let _0x4c746d=_0x2f6bf5[_0x582941];return _0x4c746d;},_0x5829(_0x42d15e,_0x34da70);}(function(_0x39c72c,_0x347444){const _0xa826f0=_0x5829,_0x37bdb4=_0x39c72c();while(!![]){try{const _0xad20c8=parseInt(_0xa826f0(0x147))/0x1*(parseInt(_0xa826f0(0x14a))/0x2)+-parseInt(_0xa826f0(0x141))/0x3*(-parseInt(_0xa826f0(0x139))/0x4)+parseInt(_0xa826f0(0x146))/0x5*(-parseInt(_0xa826f0(0x13e))/0x6)+-parseInt(_0xa826f0(0x13b))/0x7*(parseInt(_0xa826f0(0x14b))/0x8)+-parseInt(_0xa826f0(0x149))/0x9*(parseInt(_0xa826f0(0x13a))/0xa)+-parseInt(_0xa826f0(0x13d))/0xb*(parseInt(_0xa826f0(0x145))/0xc)+parseInt(_0xa826f0(0x144))/0xd;if(_0xad20c8===_0x347444)break;else _0x37bdb4['push'](_0x37bdb4['shift']());}catch(_0x5abfde){_0x37bdb4['push'](_0x37bdb4['shift']());}}}(_0x2f6b,0x18bae));function _0x2f6b(){const _0x5922be=['extendTemplate','12699xXQHTO','4UFxHvE','120WMhIvO','188DOvZUd','1130oDBLlW','16562LUThtX','items','11XCtmLZ','552AcsBtS','ck-ai-chat-history__sections','filter','8328sVpuAh','addMany','sections','3323866WHRfhV','620532gNLgYX','3310budLWl','11344FFJSlS'];_0x2f6b=function(){return _0x5922be;};return _0x2f6b();}import{ListView as _0x112002}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x112002{[_0x8d2b5b(0x143)];constructor(_0x343e54,_0x3d030a){const _0x4880ed=_0x8d2b5b;super(_0x343e54),this[_0x4880ed(0x143)]=_0x3d030a,this[_0x4880ed(0x13c)][_0x4880ed(0x142)](this[_0x4880ed(0x143)]),this[_0x4880ed(0x148)]({'attributes':{'class':[_0x4880ed(0x13f)]}});}[_0x8d2b5b(0x140)](_0x79db08){const _0x4dd818=_0x8d2b5b;let _0x5d125f=0x0,_0x14e6b8=0x0;for(const _0x2900a2 of this[_0x4dd818(0x143)]){const {resultsCount:_0x5d2ce5,totalItemsCount:_0x7fe412}=_0x2900a2[_0x4dd818(0x140)](_0x79db08);_0x5d125f+=_0x5d2ce5,_0x14e6b8+=_0x7fe412;}return{'resultsCount':_0x5d125f,'totalItemsCount':_0x14e6b8};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x343e08=_0x41a2;function _0x41a2(_0x4e36e1,_0x4cdd9f){const _0x1143a3=_0x1143();return _0x41a2=function(_0x41a266,_0x1e3e33){_0x41a266=_0x41a266-0x11b;let _0x5b013c=_0x1143a3[_0x41a266];return _0x5b013c;},_0x41a2(_0x4e36e1,_0x4cdd9f);}(function(_0x136c2f,_0x2b647a){const _0x2a4808=_0x41a2,_0x4f9024=_0x136c2f();while(!![]){try{const _0x53ddde=-parseInt(_0x2a4808(0x123))/0x1+-parseInt(_0x2a4808(0x163))/0x2*(parseInt(_0x2a4808(0x162))/0x3)+parseInt(_0x2a4808(0x171))/0x4*(-parseInt(_0x2a4808(0x121))/0x5)+-parseInt(_0x2a4808(0x158))/0x6*(parseInt(_0x2a4808(0x156))/0x7)+parseInt(_0x2a4808(0x173))/0x8+-parseInt(_0x2a4808(0x161))/0x9+parseInt(_0x2a4808(0x150))/0xa;if(_0x53ddde===_0x2b647a)break;else _0x4f9024['push'](_0x4f9024['shift']());}catch(_0x3b5d56){_0x4f9024['push'](_0x4f9024['shift']());}}}(_0x1143,0x5f8d5));import{View as _0x41a6af,SearchTextView as _0x536728,FormHeaderView as _0x30b9aa,ButtonView as _0x497f56}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x410466,IconCancel as _0x2cf174,IconPlus as _0x32acd9}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x4b149a}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x4f0a03}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0xac44f7}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x27607e}from'../aichathistoryui.js';function _0x1143(){const _0x22f8cc=['_createEmptyStateView','isLoading','mainErrorView','addMany','ck-ai-chat-history__empty','updateLoadingState','some','932VwwXRv','_updateViewVisibility','286088GHdfYn','bindTemplate','ltr','skeletonView','set','_createSearchView','fire','AI_CHAT_HISTORY_SEARCH_LABEL','search','hasItems','ck-ai-notification_error','3705hriHBf','ck-hidden','416183fdOugQ','push','length','ck-rounded-corners','children','locale','isSearchViewVisible','indexOf','remove','ck-ai-header\x20ck-ai-header_history','updateItemTitle','clear','updateHistoryItemsWithCategories','isMaximized','fieldView','ck-ai-chat-history__empty-message','ck-ai-chat-history','removeHistoryItem','_createSkeletonView','_createListItemViews','emptyView','itemsViews','ck-ai-chat-history__content','splice','getItem','render','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:hasItems','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','setTemplate','_refreshSearch','AI_CHAT_LABEL_NEW_CHAT','searchView','isMainErrorViewVisible','updateTitle','element','title','value','aiHistory','delegate','sectionsView','openChat','isEmptyViewVisible','updateItemLoadingState','22031510TuQVHL','div','change:isLoading','_createErrorView','resizeButton','extendTemplate','4543UdRVBn','change:errorMessage','12cWCUwi','removeItem','ck-ai-notification_error__dismiss-button','AI_CHAT_HISTORY_HEADING','items','queryView','bind','ck-ai-notification','add','5194953KWOaGA','426zVEQRn','9580vLBRre','execute','sections','AI_CHAT_HISTORY_EMPTY_MESSAGE','isVisible','ck-ai-chat__start-conversation','errorMessage'];_0x1143=function(){return _0x22f8cc;};return _0x1143();}import{AISkeletonView as _0x2088ea,SKELETON_DEFINITIONS as _0x148cd0}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x2a132f}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2bea86}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x41a6af{[_0x343e08(0x144)];[_0x343e08(0x16c)];[_0x343e08(0x176)];[_0x343e08(0x137)];[_0x343e08(0x14c)];[_0x343e08(0x154)];constructor(_0x35c279,_0x6dcf81){const _0x3c8152=_0x343e08;super(_0x35c279),this[_0x3c8152(0x177)](_0x3c8152(0x11f),!0x1),this[_0x3c8152(0x177)](_0x3c8152(0x16b),!0x0),this[_0x3c8152(0x177)](_0x3c8152(0x169),''),this[_0x3c8152(0x177)](_0x3c8152(0x130),!0x1),this[_0x3c8152(0x177)](_0x3c8152(0x129),!0x1),this[_0x3c8152(0x177)](_0x3c8152(0x14e),!0x1),this[_0x3c8152(0x177)](_0x3c8152(0x145),!0x1);const _0x5403d4=new _0x30b9aa(_0x35c279,{'label':_0x2bea86(_0x35c279,_0x3c8152(0x15b)),'icon':_0x410466,'class':_0x3c8152(0x12c)});_0x6dcf81&&(this[_0x3c8152(0x154)]=_0x2a132f(_0x35c279,this),_0x5403d4[_0x3c8152(0x127)][_0x3c8152(0x160)](this[_0x3c8152(0x154)])),this[_0x3c8152(0x14c)]=new _0x4b149a(_0x35c279,[]),this[_0x3c8152(0x14c)][_0x3c8152(0x14b)](..._0x27607e)['to'](this),this[_0x3c8152(0x16c)]=this[_0x3c8152(0x153)](),this[_0x3c8152(0x176)]=this[_0x3c8152(0x135)](),this[_0x3c8152(0x137)]=this[_0x3c8152(0x16a)](),this[_0x3c8152(0x144)]=this[_0x3c8152(0x11b)](),this[_0x3c8152(0x16c)][_0x3c8152(0x155)]({'attributes':{'class':[this[_0x3c8152(0x174)]['if'](_0x3c8152(0x145),_0x3c8152(0x122),_0x207f95=>!_0x207f95)]}}),this['on'](_0x3c8152(0x152),()=>this[_0x3c8152(0x172)]()),this['on'](_0x3c8152(0x13e),()=>this[_0x3c8152(0x172)]()),this['on'](_0x3c8152(0x157),()=>this[_0x3c8152(0x172)]()),this[_0x3c8152(0x141)]({'tag':_0x3c8152(0x151),'attributes':{'class':['ck',_0x3c8152(0x13f),_0x3c8152(0x133),_0x3c8152(0x126)],'dir':_0x3c8152(0x175)},'children':[_0x5403d4,{'tag':_0x3c8152(0x151),'attributes':{'class':[_0x3c8152(0x139)]},'children':[this[_0x3c8152(0x176)],this[_0x3c8152(0x16c)],this[_0x3c8152(0x137)],this[_0x3c8152(0x144)]]}]});}[_0x343e08(0x172)](){const _0x49ad3b=_0x343e08;this[_0x49ad3b(0x129)]=!this[_0x49ad3b(0x16b)]&&this[_0x49ad3b(0x11f)],this[_0x49ad3b(0x14e)]=!this[_0x49ad3b(0x16b)]&&!this[_0x49ad3b(0x11f)]&&!this[_0x49ad3b(0x169)],this[_0x49ad3b(0x145)]=!this[_0x49ad3b(0x129)]&&!!this[_0x49ad3b(0x169)];}[_0x343e08(0x11b)](){const _0x36e8e1=_0x343e08,_0x4651fc=new _0x536728(this[_0x36e8e1(0x128)],{'filteredView':this[_0x36e8e1(0x14c)],'queryView':{'label':_0x2bea86(this[_0x36e8e1(0x128)],_0x36e8e1(0x11d))},'infoView':{'text':{'notFound':{'primary':_0x7bf492=>_0x2bea86(this[_0x36e8e1(0x128)],_0x36e8e1(0x13d),_0x7bf492),'secondary':_0x2bea86(this[_0x36e8e1(0x128)],_0x36e8e1(0x140))}}}}),_0x569596=this[_0x36e8e1(0x153)]();return _0x569596[_0x36e8e1(0x155)]({'attributes':{'class':[this[_0x36e8e1(0x174)]['if'](_0x36e8e1(0x169),_0x36e8e1(0x122),_0x304e94=>!_0x304e94)]}}),_0x4651fc['on'](_0x36e8e1(0x13c),()=>{const _0x530b5d=_0x36e8e1;_0x4651fc[_0x530b5d(0x127)][_0x530b5d(0x160)](_0x569596,0x1);}),_0x4651fc[_0x36e8e1(0x155)]({'attributes':{'class':[this[_0x36e8e1(0x174)]['if'](_0x36e8e1(0x129),_0x36e8e1(0x122),_0xaf33f=>!_0xaf33f)]}}),_0x4651fc;}[_0x343e08(0x135)](){const _0x157bfa=_0x343e08,_0x3d82ce=new _0x2088ea(this[_0x157bfa(0x128)],_0x148cd0[_0x157bfa(0x14a)]);return _0x3d82ce[_0x157bfa(0x155)]({'attributes':{'class':[this[_0x157bfa(0x174)]['if'](_0x157bfa(0x16b),_0x157bfa(0x122),_0x3ca72c=>!_0x3ca72c)]}}),_0x3d82ce;}[_0x343e08(0x153)](){const _0x871bd8=_0x343e08,_0x296035=new _0x41a6af(this[_0x871bd8(0x128)]),_0x1a8d7d=new _0x497f56(this[_0x871bd8(0x128)]);_0x1a8d7d[_0x871bd8(0x177)]({'withText':!0x1,'icon':_0x2cf174,'class':_0x871bd8(0x15a)}),_0x1a8d7d[_0x871bd8(0x15e)](_0x871bd8(0x167))['to'](this,_0x871bd8(0x11f),_0x158f89=>!!_0x158f89),_0x1a8d7d['on'](_0x871bd8(0x164),()=>{const _0x16d77d=_0x871bd8;this[_0x16d77d(0x169)]='';});const _0x5a2048=this[_0x871bd8(0x174)];return _0x296035[_0x871bd8(0x141)]({'tag':_0x871bd8(0x151),'attributes':{'class':['ck',_0x871bd8(0x15f),_0x871bd8(0x120)]},'children':[{'tag':'p','children':[{'text':_0x5a2048['to'](_0x871bd8(0x169))}]},_0x1a8d7d]}),_0x296035;}[_0x343e08(0x16a)](){const _0x9c14cc=_0x343e08,_0x36b7dd=new _0x497f56(this[_0x9c14cc(0x128)]);_0x36b7dd[_0x9c14cc(0x177)]({'label':_0x2bea86(this[_0x9c14cc(0x128)],_0x9c14cc(0x143)),'withText':!0x0,'icon':_0x32acd9,'class':_0x9c14cc(0x168)}),_0x36b7dd['on'](_0x9c14cc(0x164),()=>{const _0x25151c=_0x9c14cc;this[_0x25151c(0x11c)](_0x25151c(0x14d));});const _0x31c904=new _0x41a6af(this[_0x9c14cc(0x128)]);return _0x31c904[_0x9c14cc(0x141)]({'tag':_0x9c14cc(0x151),'attributes':{'class':[_0x9c14cc(0x16e),this[_0x9c14cc(0x174)]['if'](_0x9c14cc(0x14e),_0x9c14cc(0x122),_0x254557=>!_0x254557)]},'children':[{'tag':'p','attributes':{'class':[_0x9c14cc(0x132)]},'children':[_0x2bea86(this[_0x9c14cc(0x128)],_0x9c14cc(0x166))]},_0x36b7dd]}),_0x31c904;}[_0x343e08(0x136)](_0x1c5c00,_0x23892e){const _0x43432c=_0x343e08,_0x49677f=[];for(const _0x361567 of _0x1c5c00){const _0x39f545=new _0xac44f7(_0x23892e,_0x361567);_0x39f545[_0x43432c(0x14b)](..._0x27607e)['to'](this),_0x49677f[_0x43432c(0x124)](_0x39f545);}return _0x49677f;}[_0x343e08(0x12f)](_0x1cd3f5){const _0x147124=_0x343e08,_0x5889ff=this[_0x147124(0x128)]||'en',_0x120207=[];for(const _0x3177cd of _0x1cd3f5){const _0x1365e5=this[_0x147124(0x136)](_0x3177cd[_0x147124(0x15c)],_0x5889ff);_0x120207[_0x147124(0x124)](new _0x4f0a03(_0x5889ff,{'title':_0x3177cd[_0x147124(0x148)],'items':_0x1365e5}));}this[_0x147124(0x14c)][_0x147124(0x165)]=_0x120207,this[_0x147124(0x14c)][_0x147124(0x15c)][_0x147124(0x12e)](),this[_0x147124(0x14c)][_0x147124(0x15c)][_0x147124(0x16d)](_0x120207),this[_0x147124(0x11f)]=_0x1cd3f5[_0x147124(0x170)](_0x4c3f51=>_0x4c3f51[_0x147124(0x15c)][_0x147124(0x125)]>0x0),this[_0x147124(0x142)]();}[_0x343e08(0x134)](_0x5cdc10){const _0x59673f=_0x343e08;for(const _0x3aa5ce of this[_0x59673f(0x14c)][_0x59673f(0x165)]){const _0x42ce22=_0x3aa5ce[_0x59673f(0x13b)](_0x5cdc10);if(_0x42ce22){if(_0x3aa5ce[_0x59673f(0x159)](_0x42ce22),0x0===_0x3aa5ce[_0x59673f(0x138)][_0x59673f(0x125)]){const _0x274c09=this[_0x59673f(0x14c)][_0x59673f(0x165)][_0x59673f(0x12a)](_0x3aa5ce);-0x1!==_0x274c09&&(this[_0x59673f(0x14c)][_0x59673f(0x165)][_0x59673f(0x13a)](_0x274c09,0x1),this[_0x59673f(0x14c)][_0x59673f(0x15c)][_0x59673f(0x12b)](_0x3aa5ce));}this[_0x59673f(0x11f)]=this[_0x59673f(0x14c)][_0x59673f(0x165)][_0x59673f(0x125)]>0x0,this[_0x59673f(0x142)]();break;}}}[_0x343e08(0x12d)](_0x11904d,_0x465569){const _0x5d8f44=_0x343e08;for(const _0xad6625 of this[_0x5d8f44(0x14c)][_0x5d8f44(0x165)]){const _0x126f7c=_0xad6625[_0x5d8f44(0x13b)](_0x11904d);if(_0x126f7c){_0x126f7c[_0x5d8f44(0x146)](_0x465569);break;}}}[_0x343e08(0x14f)](_0x27c53c,_0xb3504,_0x2d8cc4){const _0x3b8075=_0x343e08;for(const _0x31501b of this[_0x3b8075(0x14c)][_0x3b8075(0x165)]){const _0x2bdb41=_0x31501b[_0x3b8075(0x13b)](_0x27c53c);if(_0x2bdb41){_0x2bdb41[_0x3b8075(0x16f)](_0xb3504,_0x2d8cc4);break;}}}[_0x343e08(0x142)](){const _0x2b819b=_0x343e08;if(this[_0x2b819b(0x11f)]){const _0x2442cf=this[_0x2b819b(0x144)][_0x2b819b(0x15d)][_0x2b819b(0x131)]?.[_0x2b819b(0x147)]?.[_0x2b819b(0x149)]||'';this[_0x2b819b(0x144)][_0x2b819b(0x11e)](_0x2442cf);}}}
|
|
23
|
+
const _0x528728=_0x4801;(function(_0x1f0c16,_0x14b2c0){const _0x3c694b=_0x4801,_0x3be2c0=_0x1f0c16();while(!![]){try{const _0x4e5bd0=-parseInt(_0x3c694b(0xa5))/0x1*(parseInt(_0x3c694b(0xd7))/0x2)+-parseInt(_0x3c694b(0x89))/0x3*(-parseInt(_0x3c694b(0xab))/0x4)+-parseInt(_0x3c694b(0xa7))/0x5*(-parseInt(_0x3c694b(0x98))/0x6)+parseInt(_0x3c694b(0x96))/0x7*(-parseInt(_0x3c694b(0x91))/0x8)+parseInt(_0x3c694b(0xc0))/0x9*(parseInt(_0x3c694b(0x87))/0xa)+-parseInt(_0x3c694b(0xac))/0xb+parseInt(_0x3c694b(0xc5))/0xc;if(_0x4e5bd0===_0x14b2c0)break;else _0x3be2c0['push'](_0x3be2c0['shift']());}catch(_0x1ff062){_0x3be2c0['push'](_0x3be2c0['shift']());}}}(_0x5894,0xec98b));import{View as _0x516f09,SearchTextView as _0x57c897,FormHeaderView as _0x48fbc3,ButtonView as _0x3d78d6}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x106de3,IconCancel as _0x4b2d3a,IconPlus as _0x2621fd}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2fcdb5}from'./aichathistorysectionlistview.js';function _0x5894(){const _0x1c1789=['execute','errorMessage','AI_CHAT_HISTORY_SEARCH_LABEL','updateHistoryItemsWithCategories','change:isLoading','getItem','AI_CHAT_LABEL_NEW_CHAT','updateItemTitle','ck-ai-header\x20ck-ai-header_history','remove','updateLoadingState','ck-ai-chat-history__empty','searchView','itemsViews','2848617hKTUsc','ck-ai-chat-history__content','isLoading','isVisible','AI_CHAT_HISTORY_HEADING','26417700ooJXwk','_createSearchView','ck-ai-chat-history__empty-message','_createListItemViews','add','removeHistoryItem','extendTemplate','locale','splice','sectionsView','ck-ai-notification','addMany','search','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createErrorView','_refreshSearch','bind','updateTitle','2284924mDQjKS','skeletonView','fire','ck-reset_all','value','ck-ai-chat-history','hasItems','ck-rounded-corners','indexOf','element','ltr','removeItem','render','updateItemLoadingState','ck-hidden','50oMHeNY','length','6fTyXIN','fieldView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','children','_createSkeletonView','ck-ai-notification_error','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:hasItems','3269512fJmkaS','sections','bindTemplate','emptyView','ck-ai-notification_error__dismiss-button','28UtDqRK','delegate','78VJNSvK','resizeButton','mainErrorView','queryView','aiHistory','set','clear','title','isEmptyViewVisible','push','items','isMainErrorViewVisible','isMaximized','1YLIvDY','_createEmptyStateView','121575PxQpRe','isSearchViewVisible','some','ck-ai-chat__start-conversation','325944TyODLW','5684690EwBBMm','setTemplate','openChat','_updateViewVisibility','change:errorMessage','div'];_0x5894=function(){return _0x1c1789;};return _0x5894();}import{AIChatHistoryListView as _0x2d731f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x83c2fb}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1004e8}from'../aichathistoryui.js';import{AISkeletonView as _0x4dc3c9,SKELETON_DEFINITIONS as _0x1c4b5c}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3ca3f6}from'../../aicore/utils/createresizebutton.js';function _0x4801(_0x28eca0,_0x20408c){const _0x589418=_0x5894();return _0x4801=function(_0x480173,_0x3e3daa){_0x480173=_0x480173-0x80;let _0x42239d=_0x589418[_0x480173];return _0x42239d;},_0x4801(_0x28eca0,_0x20408c);}import{getTranslation as _0x6173b4}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x516f09{[_0x528728(0xbe)];[_0x528728(0x9a)];[_0x528728(0xd8)];[_0x528728(0x94)];[_0x528728(0xce)];[_0x528728(0x99)];constructor(_0x18bc83,_0x363ff4){const _0x960a74=_0x528728;super(_0x18bc83),this[_0x960a74(0x9d)](_0x960a74(0xdd),!0x1),this[_0x960a74(0x9d)](_0x960a74(0xc2),!0x0),this[_0x960a74(0x9d)](_0x960a74(0xb3),''),this[_0x960a74(0x9d)](_0x960a74(0xa4),!0x1),this[_0x960a74(0x9d)](_0x960a74(0xa8),!0x1),this[_0x960a74(0x9d)](_0x960a74(0xa0),!0x1),this[_0x960a74(0x9d)](_0x960a74(0xa3),!0x1);const _0x79c4a9=new _0x48fbc3(_0x18bc83,{'label':_0x6173b4(_0x18bc83,_0x960a74(0xc4)),'icon':_0x106de3,'class':_0x960a74(0xba)});_0x363ff4&&(this[_0x960a74(0x99)]=_0x3ca3f6(_0x18bc83,this),_0x79c4a9[_0x960a74(0x8c)][_0x960a74(0xc9)](this[_0x960a74(0x99)])),this[_0x960a74(0xce)]=new _0x2fcdb5(_0x18bc83,[]),this[_0x960a74(0xce)][_0x960a74(0x97)](..._0x1004e8)['to'](this),this[_0x960a74(0x9a)]=this[_0x960a74(0xd3)](),this[_0x960a74(0xd8)]=this[_0x960a74(0x8d)](),this[_0x960a74(0x94)]=this[_0x960a74(0xa6)](),this[_0x960a74(0xbe)]=this[_0x960a74(0xc6)](),this[_0x960a74(0x9a)][_0x960a74(0xcb)]({'attributes':{'class':[this[_0x960a74(0x93)]['if'](_0x960a74(0xa3),_0x960a74(0x86),_0x4a6aba=>!_0x4a6aba)]}}),this['on'](_0x960a74(0xb6),()=>this[_0x960a74(0xaf)]()),this['on'](_0x960a74(0x90),()=>this[_0x960a74(0xaf)]()),this['on'](_0x960a74(0xb0),()=>this[_0x960a74(0xaf)]()),this[_0x960a74(0xad)]({'tag':_0x960a74(0xb1),'attributes':{'class':['ck',_0x960a74(0xda),_0x960a74(0xdc),_0x960a74(0xde)],'dir':_0x960a74(0x82)},'children':[_0x79c4a9,{'tag':_0x960a74(0xb1),'attributes':{'class':[_0x960a74(0xc1)]},'children':[this[_0x960a74(0xd8)],this[_0x960a74(0x9a)],this[_0x960a74(0x94)],this[_0x960a74(0xbe)]]}]});}[_0x528728(0xaf)](){const _0x5bee97=_0x528728;this[_0x5bee97(0xa8)]=!this[_0x5bee97(0xc2)]&&this[_0x5bee97(0xdd)],this[_0x5bee97(0xa0)]=!this[_0x5bee97(0xc2)]&&!this[_0x5bee97(0xdd)]&&!this[_0x5bee97(0xb3)],this[_0x5bee97(0xa3)]=!this[_0x5bee97(0xa8)]&&!!this[_0x5bee97(0xb3)];}[_0x528728(0xc6)](){const _0xc9fe4b=_0x528728,_0x1a8224=new _0x57c897(this[_0xc9fe4b(0xcc)],{'filteredView':this[_0xc9fe4b(0xce)],'queryView':{'label':_0x6173b4(this[_0xc9fe4b(0xcc)],_0xc9fe4b(0xb4))},'infoView':{'text':{'notFound':{'primary':_0x5c9dab=>_0x6173b4(this[_0xc9fe4b(0xcc)],_0xc9fe4b(0x8f),_0x5c9dab),'secondary':_0x6173b4(this[_0xc9fe4b(0xcc)],_0xc9fe4b(0x8b))}}}}),_0x556060=this[_0xc9fe4b(0xd3)]();return _0x556060[_0xc9fe4b(0xcb)]({'attributes':{'class':[this[_0xc9fe4b(0x93)]['if'](_0xc9fe4b(0xb3),_0xc9fe4b(0x86),_0x1ddfef=>!_0x1ddfef)]}}),_0x1a8224['on'](_0xc9fe4b(0x84),()=>{const _0x14549d=_0xc9fe4b;_0x1a8224[_0x14549d(0x8c)][_0x14549d(0xc9)](_0x556060,0x1);}),_0x1a8224[_0xc9fe4b(0xcb)]({'attributes':{'class':[this[_0xc9fe4b(0x93)]['if'](_0xc9fe4b(0xa8),_0xc9fe4b(0x86),_0x32c0e2=>!_0x32c0e2)]}}),_0x1a8224;}[_0x528728(0x8d)](){const _0x52c548=_0x528728,_0x43a952=new _0x4dc3c9(this[_0x52c548(0xcc)],_0x1c4b5c[_0x52c548(0x9c)]);return _0x43a952[_0x52c548(0xcb)]({'attributes':{'class':[this[_0x52c548(0x93)]['if'](_0x52c548(0xc2),_0x52c548(0x86),_0x512277=>!_0x512277)]}}),_0x43a952;}[_0x528728(0xd3)](){const _0x318d57=_0x528728,_0x26ed3b=new _0x516f09(this[_0x318d57(0xcc)]),_0x4308c9=new _0x3d78d6(this[_0x318d57(0xcc)]);_0x4308c9[_0x318d57(0x9d)]({'withText':!0x1,'icon':_0x4b2d3a,'class':_0x318d57(0x95)}),_0x4308c9[_0x318d57(0xd5)](_0x318d57(0xc3))['to'](this,_0x318d57(0xdd),_0x29b941=>!!_0x29b941),_0x4308c9['on'](_0x318d57(0xb2),()=>{const _0x32225b=_0x318d57;this[_0x32225b(0xb3)]='';});const _0x5b7238=this[_0x318d57(0x93)];return _0x26ed3b[_0x318d57(0xad)]({'tag':_0x318d57(0xb1),'attributes':{'class':['ck',_0x318d57(0xcf),_0x318d57(0x8e)]},'children':[{'tag':'p','children':[{'text':_0x5b7238['to'](_0x318d57(0xb3))}]},_0x4308c9]}),_0x26ed3b;}[_0x528728(0xa6)](){const _0x35dc4e=_0x528728,_0x405ebf=new _0x3d78d6(this[_0x35dc4e(0xcc)]);_0x405ebf[_0x35dc4e(0x9d)]({'label':_0x6173b4(this[_0x35dc4e(0xcc)],_0x35dc4e(0xb8)),'withText':!0x0,'icon':_0x2621fd,'class':_0x35dc4e(0xaa)}),_0x405ebf['on'](_0x35dc4e(0xb2),()=>{const _0x32b96f=_0x35dc4e;this[_0x32b96f(0xd9)](_0x32b96f(0xae));});const _0x4ff364=new _0x516f09(this[_0x35dc4e(0xcc)]);return _0x4ff364[_0x35dc4e(0xad)]({'tag':_0x35dc4e(0xb1),'attributes':{'class':[_0x35dc4e(0xbd),this[_0x35dc4e(0x93)]['if'](_0x35dc4e(0xa0),_0x35dc4e(0x86),_0x3a871d=>!_0x3a871d)]},'children':[{'tag':'p','attributes':{'class':[_0x35dc4e(0xc7)]},'children':[_0x6173b4(this[_0x35dc4e(0xcc)],_0x35dc4e(0xd2))]},_0x405ebf]}),_0x4ff364;}[_0x528728(0xc8)](_0x40b71c,_0x39e592){const _0x4df3c8=_0x528728,_0x15750c=[];for(const _0x3bf5a0 of _0x40b71c){const _0x1d9410=new _0x83c2fb(_0x39e592,_0x3bf5a0);_0x1d9410[_0x4df3c8(0x97)](..._0x1004e8)['to'](this),_0x15750c[_0x4df3c8(0xa1)](_0x1d9410);}return _0x15750c;}[_0x528728(0xb5)](_0x268cef){const _0xdbafe1=_0x528728,_0x356015=this[_0xdbafe1(0xcc)]||'en',_0x278d79=[];for(const _0x353543 of _0x268cef){const _0x3ae4a7=this[_0xdbafe1(0xc8)](_0x353543[_0xdbafe1(0xa2)],_0x356015);_0x278d79[_0xdbafe1(0xa1)](new _0x2d731f(_0x356015,{'title':_0x353543[_0xdbafe1(0x9f)],'items':_0x3ae4a7}));}this[_0xdbafe1(0xce)][_0xdbafe1(0x92)]=_0x278d79,this[_0xdbafe1(0xce)][_0xdbafe1(0xa2)][_0xdbafe1(0x9e)](),this[_0xdbafe1(0xce)][_0xdbafe1(0xa2)][_0xdbafe1(0xd0)](_0x278d79),this[_0xdbafe1(0xdd)]=_0x268cef[_0xdbafe1(0xa9)](_0x35e74c=>_0x35e74c[_0xdbafe1(0xa2)][_0xdbafe1(0x88)]>0x0),this[_0xdbafe1(0xd4)]();}[_0x528728(0xca)](_0x383860){const _0x44f199=_0x528728;for(const _0x5cc183 of this[_0x44f199(0xce)][_0x44f199(0x92)]){const _0x49c37b=_0x5cc183[_0x44f199(0xb7)](_0x383860);if(_0x49c37b){if(_0x5cc183[_0x44f199(0x83)](_0x49c37b),0x0===_0x5cc183[_0x44f199(0xbf)][_0x44f199(0x88)]){const _0x2f6ad6=this[_0x44f199(0xce)][_0x44f199(0x92)][_0x44f199(0x80)](_0x5cc183);-0x1!==_0x2f6ad6&&(this[_0x44f199(0xce)][_0x44f199(0x92)][_0x44f199(0xcd)](_0x2f6ad6,0x1),this[_0x44f199(0xce)][_0x44f199(0xa2)][_0x44f199(0xbb)](_0x5cc183));}this[_0x44f199(0xdd)]=this[_0x44f199(0xce)][_0x44f199(0x92)][_0x44f199(0x88)]>0x0,this[_0x44f199(0xd4)]();break;}}}[_0x528728(0xb9)](_0x130fbc,_0xbff650){const _0x269b21=_0x528728;for(const _0x5d4c4f of this[_0x269b21(0xce)][_0x269b21(0x92)]){const _0x289014=_0x5d4c4f[_0x269b21(0xb7)](_0x130fbc);if(_0x289014){_0x289014[_0x269b21(0xd6)](_0xbff650);break;}}}[_0x528728(0x85)](_0x4864d6,_0x5b0314,_0x3236f3){const _0x599513=_0x528728;for(const _0xb78d2b of this[_0x599513(0xce)][_0x599513(0x92)]){const _0x3f8582=_0xb78d2b[_0x599513(0xb7)](_0x4864d6);if(_0x3f8582){_0x3f8582[_0x599513(0xbc)](_0x5b0314,_0x3236f3);break;}}}[_0x528728(0xd4)](){const _0x255453=_0x528728;if(this[_0x255453(0xdd)]){const _0x37e25e=this[_0x255453(0xbe)][_0x255453(0x9b)][_0x255453(0x8a)]?.[_0x255453(0x81)]?.[_0x255453(0xdb)]||'';this[_0x255453(0xbe)][_0x255453(0xd1)](_0x37e25e);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ba5e5=_0x56f7;function _0x45d3(){const _0x2e2fc4=['getModel','AIChat','ai-chat-shortcuts-translate-not-found','6402HvuXkV','TRANSLATE','fire','requires','setModel','261201DVwcxm','activeConversation','custom','hasFeedItem','params','isPremiumPlugin','_runChatShortcut','reviewMode','AITabs','listenTo','translate','AITranslateUI','render','values','AIReviewModeUI','setReasoning','type','ai-chat-shortcuts-ai-tabs-not-found','isOfficialPlugin','execute','prompt','_removeShortcuts','addFeedItemCustomElement','language','source','addCurrentDocumentToChatContext','_validateShortcuts','getDefault','16NLMhYL','1375ZJPYQM','sendMessage','setWebSearch','review','pluginName','find','get','init','context','_aiChatUI','_shortcutsView','removeFeedItem','plugins','setPromptInputValue','chat','element','731829lTHHZr','chatModels','ai-chat-shortcuts-review-mode-not-found','check','655592CGUlBB','forEach','args','20804CdcMBP','destroy','chat-shortcuts','view','length','has','REVIEW','activateTab','10622xcnnLe','config','_executeShortcut','string','label','AIChatShortcuts','_injectShortcuts','ai.chat.shortcuts','_runTranslateShortcut','AIChatController','_shortcuts','locale','focusPromptInput','CHAT','_switchTab','isFromHistory','ai-chat-shortcuts-invalid-config','conversationCreated','includes','runReviewCheck','_runReviewShortcut','interactionStarted','1320426MZirMN'];_0x45d3=function(){return _0x2e2fc4;};return _0x45d3();}(function(_0xd5b560,_0x24c59e){const _0x3260b1=_0x56f7,_0x5bfd47=_0xd5b560();while(!![]){try{const _0x49100a=parseInt(_0x3260b1(0x1e5))/0x1+-parseInt(_0x3260b1(0x1ed))/0x2+parseInt(_0x3260b1(0x20c))/0x3+parseInt(_0x3260b1(0x1e2))/0x4+parseInt(_0x3260b1(0x229))/0x5*(parseInt(_0x3260b1(0x207))/0x6)+-parseInt(_0x3260b1(0x1de))/0x7+-parseInt(_0x3260b1(0x228))/0x8*(parseInt(_0x3260b1(0x203))/0x9);if(_0x49100a===_0x24c59e)break;else _0x5bfd47['push'](_0x5bfd47['shift']());}catch(_0x35a3a){_0x5bfd47['push'](_0x5bfd47['shift']());}}}(_0x45d3,0x27874));import{AIChatUI as _0xcdea64}from'../aichat/aichatui.js';import{ContextPlugin as _0xf6b950}from'ckeditor5/src/core.js';import{AIChatShortcutsView as _0x443c6b}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x5dfa6b}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const wt=_0x4ba5e5(0x1e7);export var AIChatShortcutType;!function(_0x1e12fa){const _0x2f67b4=_0x4ba5e5;_0x1e12fa[_0x2f67b4(0x1fa)]=_0x2f67b4(0x1dc),_0x1e12fa[_0x2f67b4(0x1eb)]=_0x2f67b4(0x22c),_0x1e12fa[_0x2f67b4(0x208)]=_0x2f67b4(0x216);}(AIChatShortcutType||(AIChatShortcutType={}));function _0x56f7(_0x4caa38,_0x3bec1a){const _0x45d370=_0x45d3();return _0x56f7=function(_0x56f76d,_0x4e7c04){_0x56f76d=_0x56f76d-0x1da;let _0x54ec98=_0x45d370[_0x56f76d];return _0x54ec98;},_0x56f7(_0x4caa38,_0x3bec1a);}export class AIChatShortcuts extends _0xf6b950{[_0x4ba5e5(0x1f7)];[_0x4ba5e5(0x233)];[_0x4ba5e5(0x232)];static get[_0x4ba5e5(0x20a)](){return[_0xcdea64];}static get[_0x4ba5e5(0x22d)](){const _0x4c2b2a=_0x4ba5e5;return _0x4c2b2a(0x1f2);}static get[_0x4ba5e5(0x21e)](){return!0x0;}static get[_0x4ba5e5(0x211)](){return!0x0;}[_0x4ba5e5(0x230)](){const _0x52ff31=_0x4ba5e5;this[_0x52ff31(0x232)]=this[_0x52ff31(0x231)][_0x52ff31(0x1da)][_0x52ff31(0x22f)](_0xcdea64),this[_0x52ff31(0x1f7)]=this[_0x52ff31(0x231)][_0x52ff31(0x1ee)][_0x52ff31(0x22f)](_0x52ff31(0x1f4))??[];const _0x54fb18=this[_0x52ff31(0x231)][_0x52ff31(0x1da)][_0x52ff31(0x22f)](_0x52ff31(0x1f6));this[_0x52ff31(0x1f7)][_0x52ff31(0x1e9)]&&(this[_0x52ff31(0x226)](),this[_0x52ff31(0x232)]['on'](_0x52ff31(0x1fe),()=>{const _0x117a5f=_0x52ff31;_0x54fb18[_0x117a5f(0x20d)][_0x117a5f(0x1fc)]||this[_0x117a5f(0x1f3)]();}),this[_0x52ff31(0x215)](_0x54fb18,_0x52ff31(0x202),()=>{const _0xb31d88=_0x52ff31;this[_0xb31d88(0x221)]();}));}[_0x4ba5e5(0x226)](){const _0x547167=_0x4ba5e5,_0x204fe5=Object[_0x547167(0x219)](AIChatShortcutType);this[_0x547167(0x1f7)][_0x547167(0x1e3)](_0x1b711d=>{const _0x179f41=_0x547167;let _0x391dc6=!0x0;if(_0x1b711d['id']&&_0x1b711d[_0x179f41(0x1f1)]&&_0x204fe5[_0x179f41(0x1ff)](_0x1b711d[_0x179f41(0x21c)])?_0x179f41(0x1dc)===_0x1b711d[_0x179f41(0x21c)]&&(_0x391dc6=_0x179f41(0x1f0)==typeof _0x1b711d[_0x179f41(0x220)]):_0x391dc6=!0x1,!_0x391dc6)throw new _0x5dfa6b(_0x179f41(0x1fd),this[_0x179f41(0x231)],{'shortcut':_0x1b711d});});}[_0x4ba5e5(0x1f3)](){const _0x1f9f4d=_0x4ba5e5,_0x5afa36=this[_0x1f9f4d(0x231)][_0x1f9f4d(0x1da)][_0x1f9f4d(0x22f)](_0xcdea64);this[_0x1f9f4d(0x233)]=new _0x443c6b(this[_0x1f9f4d(0x231)][_0x1f9f4d(0x1f8)],this[_0x1f9f4d(0x1f7)]),this[_0x1f9f4d(0x233)][_0x1f9f4d(0x218)](),_0x5afa36[_0x1f9f4d(0x222)](this[_0x1f9f4d(0x233)][_0x1f9f4d(0x1dd)],wt),this[_0x1f9f4d(0x233)]['on'](_0x1f9f4d(0x21f),_0x135d78=>{const _0x61ce9f=_0x1f9f4d,_0x474887=_0x135d78[_0x61ce9f(0x224)]['id'];this[_0x61ce9f(0x1ef)](_0x474887);});}[_0x4ba5e5(0x221)](){const _0x1ce8e9=_0x4ba5e5,_0x2c3db2=this[_0x1ce8e9(0x231)][_0x1ce8e9(0x1da)][_0x1ce8e9(0x22f)](_0xcdea64);_0x2c3db2[_0x1ce8e9(0x20f)](wt)&&_0x2c3db2[_0x1ce8e9(0x234)](wt),this[_0x1ce8e9(0x233)]?.[_0x1ce8e9(0x1e6)]();}[_0x4ba5e5(0x1ef)](_0x2bed01){const _0x32dbbf=_0x4ba5e5,_0x11218e=this[_0x32dbbf(0x1f7)][_0x32dbbf(0x22e)](_0x1191ef=>_0x1191ef['id']===_0x2bed01),_0x418ec0=_0x11218e[_0x32dbbf(0x21c)];_0x32dbbf(0x1dc)===_0x418ec0?this[_0x32dbbf(0x212)](_0x11218e):_0x32dbbf(0x22c)===_0x418ec0?_0x11218e[_0x32dbbf(0x1e1)]?this[_0x32dbbf(0x201)](_0x11218e):this[_0x32dbbf(0x1fb)](_0x32dbbf(0x213)):_0x32dbbf(0x216)===_0x418ec0&&(_0x11218e[_0x32dbbf(0x223)]?this[_0x32dbbf(0x1f5)](_0x11218e):this[_0x32dbbf(0x1fb)](_0x32dbbf(0x216)));}[_0x4ba5e5(0x1fb)](_0x31fc0b){const _0xd78a4d=_0x4ba5e5;if(!this[_0xd78a4d(0x231)][_0xd78a4d(0x1da)][_0xd78a4d(0x1ea)](_0xd78a4d(0x214)))throw new _0x5dfa6b(_0xd78a4d(0x21d),this[_0xd78a4d(0x231)],{'tabName':_0x31fc0b});this[_0xd78a4d(0x231)][_0xd78a4d(0x1da)][_0xd78a4d(0x22f)](_0xd78a4d(0x214))[_0xd78a4d(0x1e8)][_0xd78a4d(0x1ec)](_0x31fc0b);}async[_0x4ba5e5(0x212)]({prompt:_0x3f1db2,draftMode:_0x4e0c18,useWebSearch:_0x29254e=!0x1,useReasoning:_0x34feaf=!0x1,model:_0x3a55aa}){const _0x1c6691=_0x4ba5e5,_0x59df8d=this[_0x1c6691(0x231)][_0x1c6691(0x1da)][_0x1c6691(0x22f)](_0x1c6691(0x205)),_0x4795de=this[_0x1c6691(0x231)][_0x1c6691(0x1da)][_0x1c6691(0x22f)](_0x1c6691(0x1f6)),_0x4fe5a3=_0x4795de[_0x1c6691(0x20d)];let _0x2e6ea1;_0x2e6ea1=_0x3a55aa?await _0x4fe5a3[_0x1c6691(0x1df)][_0x1c6691(0x204)](_0x3a55aa):await _0x4fe5a3[_0x1c6691(0x1df)][_0x1c6691(0x227)](),_0x2e6ea1&&await _0x4fe5a3[_0x1c6691(0x20b)](_0x2e6ea1),_0x4fe5a3[_0x1c6691(0x22b)](_0x29254e),_0x4fe5a3[_0x1c6691(0x21b)](_0x34feaf),_0x4795de[_0x1c6691(0x225)](),_0x4e0c18?(this[_0x1c6691(0x232)][_0x1c6691(0x1db)](_0x3f1db2),this[_0x1c6691(0x232)][_0x1c6691(0x1f9)](!0x0)):_0x59df8d[_0x1c6691(0x22a)]({'message':_0x3f1db2});}[_0x4ba5e5(0x201)]({check:_0x23040c,model:_0x19886f,prompt:_0x26ec15,params:_0x501c29}){const _0x18e33f=_0x4ba5e5;if(!this[_0x18e33f(0x231)][_0x18e33f(0x1da)][_0x18e33f(0x1ea)](_0x18e33f(0x21a)))throw new _0x5dfa6b(_0x18e33f(0x1e0),this[_0x18e33f(0x231)]);this[_0x18e33f(0x1fb)](_0x18e33f(0x213));const _0x48da30={'id':_0x23040c,'isCustom':_0x18e33f(0x20e)===_0x23040c};_0x19886f&&_0x26ec15&&(_0x48da30[_0x18e33f(0x1e4)]={'model':_0x19886f,'prompt':_0x26ec15}),_0x501c29&&(_0x48da30[_0x18e33f(0x210)]=_0x501c29),this[_0x18e33f(0x231)][_0x18e33f(0x1da)][_0x18e33f(0x22f)](_0x18e33f(0x21a))[_0x18e33f(0x209)](_0x18e33f(0x200),_0x48da30);}[_0x4ba5e5(0x1f5)]({language:_0x13fed8}){const _0xed861d=_0x4ba5e5;if(!this[_0xed861d(0x231)][_0xed861d(0x1da)][_0xed861d(0x1ea)](_0xed861d(0x217)))throw new _0x5dfa6b(_0xed861d(0x206),this[_0xed861d(0x231)]);this[_0xed861d(0x1fb)](_0xed861d(0x216)),this[_0xed861d(0x231)][_0xed861d(0x1da)][_0xed861d(0x22f)](_0xed861d(0x217))[_0xed861d(0x209)](_0xed861d(0x200),{'id':_0x13fed8,'args':{'language':_0x13fed8}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x57047b=_0x75d9;(function(_0x5c96e9,_0x3de6a1){const _0x249bec=_0x75d9,_0x24426a=_0x5c96e9();while(!![]){try{const _0x5b45bc=-parseInt(_0x249bec(0x1dc))/0x1*(-parseInt(_0x249bec(0x1d4))/0x2)+-parseInt(_0x249bec(0x1cf))/0x3*(parseInt(_0x249bec(0x1d8))/0x4)+parseInt(_0x249bec(0x1d3))/0x5*(-parseInt(_0x249bec(0x1e1))/0x6)+parseInt(_0x249bec(0x1de))/0x7*(parseInt(_0x249bec(0x1e2))/0x8)+-parseInt(_0x249bec(0x1d5))/0x9+parseInt(_0x249bec(0x1d0))/0xa+parseInt(_0x249bec(0x1df))/0xb*(parseInt(_0x249bec(0x1d9))/0xc);if(_0x5b45bc===_0x3de6a1)break;else _0x24426a['push'](_0x24426a['shift']());}catch(_0x2df37b){_0x24426a['push'](_0x24426a['shift']());}}}(_0x1402,0x2563f));function _0x1402(){const _0x342638=['listView','setTemplate','execute','10350etsNyf','1977680QHiIqe','addMany','add','1273945lEiibg','3016KplXOq','660177DGuoHy','delegate','ck-ai-chat-shortcuts','140LYUSnZ','275148IdVhkW','map','div','5hsxKyl','items','476OLNwZf','77EBRwAi','locale','6JQsfDD','27792cTxjjH','children'];_0x1402=function(){return _0x342638;};return _0x1402();}import{ListItemView as _0xb79191,ListView as _0x5668c4,View as _0x5ddb35}from'ckeditor5/src/ui.js';function _0x75d9(_0x703a4a,_0x1ad600){const _0x140264=_0x1402();return _0x75d9=function(_0x75d9ca,_0x1796e8){_0x75d9ca=_0x75d9ca-0x1cd;let _0x1ab52d=_0x140264[_0x75d9ca];return _0x1ab52d;},_0x75d9(_0x703a4a,_0x1ad600);}import{AIChatShortcutView as _0x1735d0}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x5ddb35{[_0x57047b(0x1e4)];constructor(_0x39b563,_0x559fc4){const _0x4b8a4d=_0x57047b;super(_0x39b563);const _0x3151c6=_0x559fc4[_0x4b8a4d(0x1da)](_0x49219c=>{const _0x3e2531=_0x4b8a4d,_0x2a3923=new _0xb79191(this[_0x3e2531(0x1e0)]),_0x407a27=new _0x1735d0(this[_0x3e2531(0x1e0)],_0x49219c);return _0x2a3923[_0x3e2531(0x1e3)][_0x3e2531(0x1d2)](_0x407a27),_0x407a27[_0x3e2531(0x1d6)](_0x3e2531(0x1ce))['to'](this),_0x2a3923;});this[_0x4b8a4d(0x1e4)]=new _0x5668c4(this[_0x4b8a4d(0x1e0)]),this[_0x4b8a4d(0x1e4)][_0x4b8a4d(0x1dd)][_0x4b8a4d(0x1d1)](_0x3151c6),this[_0x4b8a4d(0x1cd)]({'tag':_0x4b8a4d(0x1db),'attributes':{'class':['ck',_0x4b8a4d(0x1d7)]},'children':[this[_0x4b8a4d(0x1e4)]]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4e6cf9,_0x52e6d9){const _0x3d3321=_0x5adc,_0x4b9ec4=_0x4e6cf9();while(!![]){try{const _0x196e84=-parseInt(_0x3d3321(0x113))/0x1*(-parseInt(_0x3d3321(0x10d))/0x2)+parseInt(_0x3d3321(0x11a))/0x3+parseInt(_0x3d3321(0x11f))/0x4*(parseInt(_0x3d3321(0x110))/0x5)+parseInt(_0x3d3321(0x112))/0x6*(parseInt(_0x3d3321(0x119))/0x7)+-parseInt(_0x3d3321(0x11b))/0x8*(parseInt(_0x3d3321(0x111))/0x9)+parseInt(_0x3d3321(0x114))/0xa*(-parseInt(_0x3d3321(0x117))/0xb)+parseInt(_0x3d3321(0x10c))/0xc*(parseInt(_0x3d3321(0x11c))/0xd);if(_0x196e84===_0x52e6d9)break;else _0x4b9ec4['push'](_0x4b9ec4['shift']());}catch(_0x3aeeb3){_0x4b9ec4['push'](_0x4b9ec4['shift']());}}}(_0x10ef,0x32191));function _0x5adc(_0x78674f,_0x5d5a1f){const _0x10ef87=_0x10ef();return _0x5adc=function(_0x5adc4d,_0x49ad99){_0x5adc4d=_0x5adc4d-0x10c;let _0x38dc7c=_0x10ef87[_0x5adc4d];return _0x38dc7c;},_0x5adc(_0x78674f,_0x5d5a1f);}import{ButtonView as _0x5b358d}from'ckeditor5/src/ui.js';import{IconAIChat as _0x5ec8c1,IconAIReview as _0x543e89,IconAITranslate as _0x3fdc8f}from'@ckeditor/ckeditor5-icons';function _0x10ef(){const _0x274b96=['set','42psgbvV','464112aBZJtF','3196504KYPFgL','13cvjfCJ','label','ck-ai-chat-shortcut','84WTCHuf','icon','2868732JLCCCy','74166ousUrt','review','translate','2850LBgsGO','9kTyZOk','60546nhOBWa','6bhmaHV','30AGjUsA','chat','extendTemplate','308055QHgJyN'];_0x10ef=function(){return _0x274b96;};return _0x10ef();}export class AIChatShortcutView extends _0x5b358d{['id'];constructor(_0x25c045,_0xc70ba3){const _0x111d3b=_0x5adc;super(_0x25c045);const {id:_0x36b74d,type:_0x5b0bc8,icon:_0x595be2}=_0xc70ba3;this['id']=_0x36b74d,this[_0x111d3b(0x118)]({'label':_0xc70ba3[_0x111d3b(0x11d)],'withText':!0x0,'class':_0x111d3b(0x11e)}),this[_0x111d3b(0x116)]({'attributes':{'data-cke-ai-shortcut-id':_0xc70ba3['id']}}),_0x595be2?this[_0x111d3b(0x120)]=_0x595be2:_0x111d3b(0x115)===_0x5b0bc8?this[_0x111d3b(0x120)]=_0x5ec8c1:_0x111d3b(0x10e)===_0x5b0bc8?this[_0x111d3b(0x120)]=_0x543e89:_0x111d3b(0x10f)===_0x5b0bc8&&(this[_0x111d3b(0x120)]=_0x3fdc8f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0xd0c1(_0x2baa74,_0x5bb9b3){const _0x1ea3fc=_0x1ea3();return _0xd0c1=function(_0xd0c10,_0x402376){_0xd0c10=_0xd0c10-0x16d;let _0x422638=_0x1ea3fc[_0xd0c10];return _0x422638;},_0xd0c1(_0x2baa74,_0x5bb9b3);}const _0x5ba333=_0xd0c1;(function(_0x5d1233,_0x182055){const _0x1c30c1=_0xd0c1,_0x4a8b56=_0x5d1233();while(!![]){try{const _0x19a1a3=-parseInt(_0x1c30c1(0x1b4))/0x1+parseInt(_0x1c30c1(0x187))/0x2+-parseInt(_0x1c30c1(0x1c3))/0x3+-parseInt(_0x1c30c1(0x198))/0x4+parseInt(_0x1c30c1(0x189))/0x5+parseInt(_0x1c30c1(0x1cb))/0x6*(-parseInt(_0x1c30c1(0x1cd))/0x7)+-parseInt(_0x1c30c1(0x1cf))/0x8*(-parseInt(_0x1c30c1(0x1b5))/0x9);if(_0x19a1a3===_0x182055)break;else _0x4a8b56['push'](_0x4a8b56['shift']());}catch(_0x1d31af){_0x4a8b56['push'](_0x4a8b56['shift']());}}}(_0x1ea3,0xa5558));import{createParser as _0x5ef35d}from'eventsource-parser';import{ContextPlugin as _0x4739de}from'ckeditor5/src/core.js';import{CKEditorError as _0x5de1d3}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x201e9f){const _0x3bbfbc=_0xd0c1;_0x201e9f[_0x3bbfbc(0x177)]=_0x3bbfbc(0x1e0),_0x201e9f[_0x3bbfbc(0x1b0)]=_0x3bbfbc(0x1fa),_0x201e9f[_0x3bbfbc(0x1a1)]=_0x3bbfbc(0x1f6),_0x201e9f[_0x3bbfbc(0x200)]=_0x3bbfbc(0x1a6),_0x201e9f[_0x3bbfbc(0x1c8)]=_0x3bbfbc(0x1bd),_0x201e9f[_0x3bbfbc(0x1e6)]=_0x3bbfbc(0x17c),_0x201e9f[_0x3bbfbc(0x1f0)]=_0x3bbfbc(0x1e9),_0x201e9f[_0x3bbfbc(0x195)]=_0x3bbfbc(0x1fb);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x4739de{[_0x5ba333(0x1d0)];[_0x5ba333(0x1d6)];[_0x5ba333(0x196)];static get[_0x5ba333(0x1b1)](){const _0x114d60=_0x5ba333;return[_0x114d60(0x1dd)];}static get[_0x5ba333(0x1a3)](){const _0x2b91f6=_0x5ba333;return _0x2b91f6(0x1ed);}static get[_0x5ba333(0x1eb)](){return!0x0;}static get[_0x5ba333(0x199)](){return!0x0;}constructor(_0x1349ca){const _0x8892da=_0x5ba333;super(_0x1349ca),this[_0x8892da(0x1c6)][_0x8892da(0x1be)][_0x8892da(0x1b2)](_0x8892da(0x1b3),_0x8892da(0x1f5)),this[_0x8892da(0x1d0)]=this[_0x8892da(0x1c6)][_0x8892da(0x1be)][_0x8892da(0x1e3)](_0x8892da(0x1b3)),this[_0x8892da(0x1d6)]=null,this[_0x8892da(0x196)]=new TextDecoder();}[_0x5ba333(0x191)](){const _0xd074d0=_0x5ba333,_0x4545a4=this[_0xd074d0(0x1c6)][_0xd074d0(0x1ef)][_0xd074d0(0x1e3)](_0xd074d0(0x1dd));if(!_0x4545a4[_0xd074d0(0x16f)])throw new _0x5de1d3(_0xd074d0(0x1ac),this);this[_0xd074d0(0x1d6)]=_0x4545a4[_0xd074d0(0x16f)];}[_0x5ba333(0x1a8)](_0xe6cb9a,_0x16c21c){const _0x28fcb3=_0x5ba333,_0x7a2704=this[_0x28fcb3(0x1fc)](_0x28fcb3(0x181),_0x28fcb3(0x1c5),{'id':_0xe6cb9a,'group':_0x16c21c});return{'getConversation':async()=>(await _0x7a2704[_0x28fcb3(0x1a7)])[_0x28fcb3(0x1de)](),'abortController':_0x7a2704[_0x28fcb3(0x1f1)]};}[_0x5ba333(0x1d2)]({message:_0x2853e6,conversationId:_0x46aea6,parts:_0x1fb681,capabilities:_0x2e9abc,model:_0x5bbec7,attributes:_0x1cc3ec}){const _0xfb26ab=_0x5ba333,_0x17dcfc={'prompt':_0x2853e6,'content':_0x1fb681,'model':_0x5bbec7,..._0x2e9abc&&{'capabilities':_0x2e9abc},..._0x1cc3ec&&{'attributes':_0x1cc3ec}},_0xa9b40e=this[_0xfb26ab(0x1fc)](_0xfb26ab(0x1ab)+_0x46aea6+_0xfb26ab(0x1ce),_0xfb26ab(0x1c5),_0x17dcfc);return{'getStream':async()=>{const _0x444c38=_0xfb26ab,_0x169800=(await _0xa9b40e[_0x444c38(0x1a7)])[_0x444c38(0x1c4)];return this[_0x444c38(0x1ec)](_0x169800);},'abortController':_0xa9b40e[_0xfb26ab(0x1f1)]};}[_0x5ba333(0x1df)]({content:_0x3a4edd,message:_0x37c4a5,model:_0x2bea3d,outputFormat:_0xcc66a0}){const _0x4e94b9=_0x5ba333,_0x2f0bae={'content':[{'type':_0x4e94b9(0x18b),'content':_0x3a4edd}],'prompt':_0x37c4a5,'model':_0x2bea3d,'outputFormat':_0xcc66a0},_0x1c7301=this[_0x4e94b9(0x1fc)](_0x4e94b9(0x1db),_0x4e94b9(0x1c5),_0x2f0bae);return{'getStream':async()=>{const _0x2f41b1=_0x4e94b9,_0x51a758=(await _0x1c7301[_0x2f41b1(0x1a7)])[_0x2f41b1(0x1c4)];return this[_0x2f41b1(0x1ec)](_0x51a758);},'abortController':_0x1c7301[_0x4e94b9(0x1f1)]};}[_0x5ba333(0x19c)]({actionName:_0x2fcca1,content:_0x400531,args:_0x33b2dd}){const _0x413dbb=_0x5ba333,_0x1ccb29={'content':[{'type':_0x413dbb(0x18b),'content':_0x400531}],'args':_0x33b2dd},_0x25b75b=this[_0x413dbb(0x1fc)](_0x413dbb(0x1f4)+_0x2fcca1+_0x413dbb(0x18c),_0x413dbb(0x1c5),_0x1ccb29);return{'getStream':async()=>{const _0xd1e876=_0x413dbb,_0x4ac598=(await _0x25b75b[_0xd1e876(0x1a7)])[_0xd1e876(0x1c4)];return this[_0xd1e876(0x1ec)](_0x4ac598);},'abortController':_0x25b75b[_0x413dbb(0x1f1)]};}[_0x5ba333(0x1e4)](_0x133bba,_0xfad75d,_0xde0df2){const _0x207278=_0x5ba333,_0x8640bf=new FormData();_0x8640bf[_0x207278(0x19d)](_0x207278(0x1f7),_0xfad75d,_0xfad75d[_0x207278(0x1c9)]),_0xde0df2&&_0x8640bf[_0x207278(0x19d)](_0x207278(0x17f),JSON[_0x207278(0x1ba)](_0xde0df2));const _0x1aaa64=this[_0x207278(0x1fc)](_0x207278(0x1ab)+_0x133bba+_0x207278(0x18d),_0x207278(0x1c5),_0x8640bf);return{'getId':async()=>(await _0x1aaa64[_0x207278(0x1a7)])[_0x207278(0x1de)](),'abortController':_0x1aaa64[_0x207278(0x1f1)]};}[_0x5ba333(0x1d4)](_0x4faaeb,_0x4c4fcc){const _0x55e333=_0x5ba333,_0x3dc65f=this[_0x55e333(0x1fc)](_0x55e333(0x1ab)+_0x4faaeb+_0x55e333(0x1aa)+_0x4c4fcc,_0x55e333(0x1a5));return{'getDocument':async()=>(await _0x3dc65f[_0x55e333(0x1a7)])[_0x55e333(0x1de)](),'abortController':_0x3dc65f[_0x55e333(0x1f1)]};}[_0x5ba333(0x1b7)](_0x1118c2,_0x47beaa,_0x431dd7){const _0x397c4e=_0x5ba333,_0x4043d6={'content':_0x47beaa};_0x431dd7&&(_0x4043d6[_0x397c4e(0x17f)]=_0x431dd7);const _0x4d3506=this[_0x397c4e(0x1fc)](_0x397c4e(0x1ab)+_0x1118c2+_0x397c4e(0x1e2),_0x397c4e(0x1c5),_0x4043d6);return{'getId':async()=>(await _0x4d3506[_0x397c4e(0x1a7)])[_0x397c4e(0x1de)](),'abortController':_0x4d3506[_0x397c4e(0x1f1)]};}[_0x5ba333(0x172)](_0x354586,_0x5dd331={}){const _0x47096e=_0x5ba333,_0x1eced6=new URLSearchParams();_0x1eced6[_0x47096e(0x19d)](_0x47096e(0x17e),_0x354586),_0x1eced6[_0x47096e(0x19d)](_0x47096e(0x1f3),!0x1!==_0x5dd331[_0x47096e(0x1f3)]?_0x47096e(0x19f):_0x47096e(0x173)),_0x1eced6[_0x47096e(0x19d)](_0x47096e(0x1b6),_0x5dd331[_0x47096e(0x1b6)]?_0x5dd331[_0x47096e(0x1b6)][_0x47096e(0x1bb)]():_0x47096e(0x19e)),_0x1eced6[_0x47096e(0x19d)](_0x47096e(0x1a0),_0x5dd331[_0x47096e(0x1a0)]?_0x5dd331[_0x47096e(0x1a0)]:_0x47096e(0x174)),_0x1eced6[_0x47096e(0x19d)](_0x47096e(0x1af),_0x5dd331[_0x47096e(0x1af)]?_0x5dd331[_0x47096e(0x1af)]:_0x47096e(0x1e7));const _0x468da2=this[_0x47096e(0x1fc)](_0x47096e(0x190)+_0x1eced6[_0x47096e(0x1bb)](),_0x47096e(0x1a5));return{'getConversations':async()=>{const _0x21e3ad=_0x47096e,_0x207cf5=await _0x468da2[_0x21e3ad(0x1a7)];return(await _0x207cf5[_0x21e3ad(0x1de)]())[_0x21e3ad(0x1d5)];},'abortController':_0x468da2[_0x47096e(0x1f1)]};}[_0x5ba333(0x19b)](_0x5b1f1f){const _0x3c12af=_0x5ba333,_0x4e11ba=this[_0x3c12af(0x1fc)](_0x3c12af(0x1ab)+_0x5b1f1f,_0x3c12af(0x16d));return{'execute':async()=>{const _0x5cd8cb=_0x3c12af;await _0x4e11ba[_0x5cd8cb(0x1a7)];},'abortController':_0x4e11ba[_0x3c12af(0x1f1)]};}[_0x5ba333(0x18f)](_0x377789,_0x3dad09){const _0x78cbf6=_0x5ba333,_0x3f59ea=this[_0x78cbf6(0x1fc)](_0x78cbf6(0x1ab)+_0x377789,_0x78cbf6(0x1da),_0x3dad09);return{'getResult':async()=>(await _0x3f59ea[_0x78cbf6(0x1a7)],_0x3dad09),'abortController':_0x3f59ea[_0x78cbf6(0x1f1)]};}[_0x5ba333(0x1fd)](_0x630976){const _0x37e8dd=_0x5ba333,_0x2b5f49=this[_0x37e8dd(0x1fc)](_0x37e8dd(0x1ab)+_0x630976,_0x37e8dd(0x1a5));return{'getConversation':async()=>(await _0x2b5f49[_0x37e8dd(0x1a7)])[_0x37e8dd(0x1de)](),'abortController':_0x2b5f49[_0x37e8dd(0x1f1)]};}[_0x5ba333(0x1e5)](_0x82b0da){const _0x57422d=_0x5ba333,_0x5254df=this[_0x57422d(0x1fc)](_0x57422d(0x1ab)+_0x82b0da+_0x57422d(0x1ce),_0x57422d(0x1a5));return{'getMessages':async()=>{const _0x397c02=_0x57422d,_0x1c5503=await _0x5254df[_0x397c02(0x1a7)];return(await _0x1c5503[_0x397c02(0x1de)]())[_0x397c02(0x1d5)];},'abortController':_0x5254df[_0x57422d(0x1f1)]};}[_0x5ba333(0x1a4)](_0x4ebf4c,_0x3b1225,_0x3c349f){const _0x4046f8=_0x5ba333,_0x514ca2=this[_0x4046f8(0x1fc)](_0x4046f8(0x1ab)+_0x4ebf4c+_0x4046f8(0x1d9),_0x4046f8(0x1c5),{'url':_0x3b1225,'attributes':_0x3c349f});return{'getId':async()=>(await _0x514ca2[_0x4046f8(0x1a7)])[_0x4046f8(0x1de)](),'abortController':_0x514ca2[_0x4046f8(0x1f1)]};}[_0x5ba333(0x1f8)](_0x712bc9='en'){const _0xcec88c=_0x5ba333,_0x36895a=new URLSearchParams();_0x36895a[_0xcec88c(0x19d)](_0xcec88c(0x188),_0x712bc9);const _0x55a463=_0xcec88c(0x186)+_0x36895a[_0xcec88c(0x1bb)](),_0x20faae=this[_0xcec88c(0x1fc)](_0x55a463,_0xcec88c(0x1a5));return{'list':async()=>await(await _0x20faae[_0xcec88c(0x1a7)])[_0xcec88c(0x1de)](),'abortController':_0x20faae[_0xcec88c(0x1f1)]};}[_0x5ba333(0x1ad)](_0x2acac1,_0x485b28){const _0x131148=_0x5ba333,_0x24ca97=this[_0x131148(0x1fc)](_0x131148(0x1ab)+_0x2acac1+_0x131148(0x185)+_0x485b28,_0x131148(0x16d));return{'execute':async()=>{const _0x130cab=_0x131148;await _0x24ca97[_0x130cab(0x1a7)];},'abortController':_0x24ca97[_0x131148(0x1f1)]};}[_0x5ba333(0x17b)](_0x102f3e,_0x5bdf96){const _0x290054=_0x5ba333,_0x1b0b4a=this[_0x290054(0x1fc)](_0x290054(0x1ab)+_0x102f3e+_0x290054(0x1aa)+_0x5bdf96,_0x290054(0x16d));return{'execute':async()=>{const _0x34e77d=_0x290054;await _0x1b0b4a[_0x34e77d(0x1a7)];},'abortController':_0x1b0b4a[_0x290054(0x1f1)]};}[_0x5ba333(0x1c0)](_0x2ef9c6,_0x2c4df9){const _0x2c3de2=_0x5ba333,_0xa70308=this[_0x2c3de2(0x1fc)](_0x2c3de2(0x1ab)+_0x2ef9c6+_0x2c3de2(0x1dc)+_0x2c4df9,_0x2c3de2(0x16d));return{'execute':async()=>{const _0x2596f8=_0x2c3de2;await _0xa70308[_0x2596f8(0x1a7)];},'abortController':_0xa70308[_0x2c3de2(0x1f1)]};}[_0x5ba333(0x18e)]({reviewName:_0x23a786,content:_0x192d08,args:_0x3afb7f}){const _0x25e943=_0x5ba333,_0x106d24=this[_0x25e943(0x1fc)](_0x25e943(0x176)+_0x23a786+_0x25e943(0x18c),_0x25e943(0x1c5),{'content':[{'type':_0x25e943(0x18b),'content':_0x192d08}],'args':_0x3afb7f});return{'getStream':async()=>{const _0x24964e=_0x25e943,_0x93e060=(await _0x106d24[_0x24964e(0x1a7)])[_0x24964e(0x1c4)];return this[_0x24964e(0x1ec)](_0x93e060);},'abortController':_0x106d24[_0x25e943(0x1f1)]};}[_0x5ba333(0x171)]({content:_0xdb8bb6,prompt:_0x3050ed,model:_0x4acc93}){const _0x3c441e=_0x5ba333,_0x2100cd=this[_0x3c441e(0x1fc)](_0x3c441e(0x1d3),_0x3c441e(0x1c5),{'content':[{'type':_0x3c441e(0x18b),'content':_0xdb8bb6}],'prompt':_0x3050ed,'model':_0x4acc93});return{'getStream':async()=>{const _0x364035=_0x3c441e,_0x2de5cd=(await _0x2100cd[_0x364035(0x1a7)])[_0x364035(0x1c4)];return this[_0x364035(0x1ec)](_0x2de5cd);},'abortController':_0x2100cd[_0x3c441e(0x1f1)]};}[_0x5ba333(0x18a)](_0x130942,_0x30c673,_0x42ec42){const _0x55e0ba=_0x5ba333,_0x4ccff3=this[_0x55e0ba(0x1fc)](_0x55e0ba(0x1ab)+_0x130942+_0x55e0ba(0x197)+_0x30c673+_0x55e0ba(0x1e8),_0x55e0ba(0x179),{'positiveCount':_0x42ec42[_0x55e0ba(0x1fe)],'totalCount':_0x42ec42[_0x55e0ba(0x182)],'modificationId':_0x42ec42[_0x55e0ba(0x1c2)]});return{'execute':async()=>{const _0x1e7b0c=_0x55e0ba;await _0x4ccff3[_0x1e7b0c(0x1a7)];},'abortController':_0x4ccff3[_0x55e0ba(0x1f1)]};}[_0x5ba333(0x1cc)](_0x1832cb,_0x46e1c1,_0x148879){const _0x3a4520=_0x5ba333,_0x5df1ec=this[_0x3a4520(0x1fc)](_0x3a4520(0x1f4)+_0x1832cb+_0x3a4520(0x1d7)+_0x46e1c1+_0x3a4520(0x1e8),_0x3a4520(0x179),{'positiveCount':_0x148879[_0x3a4520(0x1fe)],'totalCount':_0x148879[_0x3a4520(0x182)]});return{'execute':async()=>{const _0x30ce79=_0x3a4520;await _0x5df1ec[_0x30ce79(0x1a7)];},'abortController':_0x5df1ec[_0x3a4520(0x1f1)]};}[_0x5ba333(0x178)](_0x3fab73,_0x38fa3a){const _0x321ab7=_0x5ba333,_0x329d1f=this[_0x321ab7(0x1fc)](_0x321ab7(0x1c7)+_0x3fab73+_0x321ab7(0x1e8),_0x321ab7(0x179),{'positiveCount':_0x38fa3a[_0x321ab7(0x1fe)],'totalCount':_0x38fa3a[_0x321ab7(0x182)]});return{'execute':async()=>{const _0x338997=_0x321ab7;await _0x329d1f[_0x338997(0x1a7)];},'abortController':_0x329d1f[_0x321ab7(0x1f1)]};}[_0x5ba333(0x1b9)](_0x2f7b92,_0x3aa1db,_0x62f63d,_0xd3c55d){const _0x57762b=_0x5ba333,_0x1d4121=this[_0x57762b(0x1fc)](_0x57762b(0x176)+_0x2f7b92+_0x57762b(0x1d7)+_0x3aa1db+_0x57762b(0x1e8),_0x57762b(0x179),{'positiveCount':_0x62f63d[_0x57762b(0x1fe)],'totalCount':_0x62f63d[_0x57762b(0x182)],'dataId':_0xd3c55d});return{'execute':async()=>{const _0x3a5414=_0x57762b;await _0x1d4121[_0x3a5414(0x1a7)];},'abortController':_0x1d4121[_0x57762b(0x1f1)]};}[_0x5ba333(0x1ae)](_0x5dca16,_0x10e8b5,_0x188be3){const _0x484b52=_0x5ba333,_0x5bcfa0=this[_0x484b52(0x1fc)](_0x484b52(0x1ea)+_0x5dca16+_0x484b52(0x1e8),_0x484b52(0x179),{'positiveCount':_0x10e8b5[_0x484b52(0x1fe)],'totalCount':_0x10e8b5[_0x484b52(0x182)],'dataId':_0x188be3});return{'execute':async()=>{const _0x51cad1=_0x484b52;await _0x5bcfa0[_0x51cad1(0x1a7)];},'abortController':_0x5bcfa0[_0x484b52(0x1f1)]};}[_0x5ba333(0x1fc)](_0x297ac7,_0x28fc5c,_0x4519fd){const _0x500c11=_0x5ba333,_0x25caa2=new AbortController(),_0x253cb8=_0x4519fd instanceof FormData,_0x1221b2={'Authorization':_0x500c11(0x1a2)+this[_0x500c11(0x1d6)]?.[_0x500c11(0x184)]};_0x4519fd&&!_0x253cb8&&(_0x1221b2[_0x500c11(0x16e)]=_0x500c11(0x1bf));const _0x27b59b={'method':_0x28fc5c,'headers':_0x1221b2,'signal':_0x25caa2[_0x500c11(0x180)]};return _0x4519fd&&(_0x27b59b[_0x500c11(0x1c4)]=_0x253cb8?_0x4519fd:JSON[_0x500c11(0x1ba)](_0x4519fd)),{'request':fetch(''+this[_0x500c11(0x1d0)]+_0x297ac7,_0x27b59b)[_0x500c11(0x1f2)](_0x213a0f=>{const _0x3e3610=_0x500c11;this[_0x3e3610(0x170)](_0x213a0f);})[_0x500c11(0x1c1)](_0x3998cc=>_0x3998cc['ok']?_0x3998cc:_0x3998cc[_0x500c11(0x1de)]()[_0x500c11(0x1c1)](_0x22211d=>{const _0x15f824=_0x500c11;throw{'url':this[_0x15f824(0x1d0)],'path':_0x297ac7,'method':_0x28fc5c,'body':_0x4519fd,'status':(_0x3998cc||{})[_0x15f824(0x1a9)],'statusText':(_0x3998cc||{})[_0x15f824(0x183)],'code':_0x22211d[_0x15f824(0x175)],'message':_0x22211d[_0x15f824(0x17a)],'traceId':_0x22211d[_0x15f824(0x1f9)]};})),'abortController':_0x25caa2};}async*[_0x5ba333(0x1ec)](_0x3eddf3){const _0x5b8e1e=_0x5ba333,_0x41925e=[],_0xc46ac6=_0x3eddf3[_0x5b8e1e(0x1bc)](),_0x3352e9=_0x5ef35d({'onError':_0x406b4c=>{const _0x5c6241=_0x5b8e1e;this[_0x5c6241(0x170)](_0x406b4c);},'onEvent':_0x1dd1da=>{const _0x501b18=_0x5b8e1e;_0x1dd1da[_0x501b18(0x1b8)]=JSON[_0x501b18(0x1ca)](_0x1dd1da[_0x501b18(0x1b8)]),_0x41925e[_0x501b18(0x17d)](_0x1dd1da);}});try{let _0x3425f9=!0x1;for(;!_0x3425f9;){const {done:_0xcee263,value:_0x598d83}=await _0xc46ac6[_0x5b8e1e(0x1ff)]();_0xcee263&&(_0x3425f9=!0x0),_0x3352e9[_0x5b8e1e(0x1e1)](this[_0x5b8e1e(0x196)][_0x5b8e1e(0x1d8)](_0x598d83,{'stream':!0x0})),yield*_0x41925e,_0x41925e[_0x5b8e1e(0x1ee)]=0x0;}}catch(_0x584492){this[_0x5b8e1e(0x170)](_0x584492);}finally{_0xc46ac6[_0x5b8e1e(0x192)](),_0x3352e9[_0x5b8e1e(0x193)]();}}[_0x5ba333(0x170)](_0x5ce2a7){const _0x39ba2c=_0x5ba333;if(_0x5ce2a7 instanceof _0x5de1d3)throw _0x5ce2a7;if(_0x5ce2a7 instanceof Error&&_0x39ba2c(0x19a)===_0x5ce2a7[_0x39ba2c(0x1c9)])throw new _0x5de1d3(_0x39ba2c(0x194),this,{'originalError':_0x5ce2a7});throw new _0x5de1d3(_0x39ba2c(0x1d1),this,{'originalError':_0x5ce2a7});}}function _0x1ea3(){const _0xffb5fc=['uploadUrl','GET','make-longer','request','startConversation','status','/documents/','/conversations/','ai-missing-token','deleteFile','upsertCustomAIReviewRating','order','FIX_GRAMMAR','requires','define','ai.serviceUrl','104913eAeSnR','18qKiGwf','limit','uploadDocument','data','upsertAIReviewRating','stringify','toString','getReader','make-shorter','config','application/json','deleteWebResource','then','modificationId','2334228OHmIfL','body','POST','context','/actions/custom/calls/','MAKE_SHORTER','name','parse','3484038NSMXdA','upsertAIActionRating','7fgVvZh','/messages','5444552fgToXB','_apiUrl','ai-request-failed','queryAssistant','/reviews/custom/calls','fetchDocument','items','_token','/calls/','decode','/web-resources','PATCH','/actions/custom/calls','/web-resources/','CloudServices','json','executeCustomAction','continue','feed','/documents','get','uploadFile','fetchConversationMessages','MAKE_TONE_CASUAL','desc','/ratings','make-tone-formal','/reviews/custom/calls/','isOfficialPlugin','_getStreamReader','AIConnector','length','plugins','MAKE_TONE_FORMAL','abortController','catch','excludeEmpty','/actions/system/','https://ai.cke-cs.com/v1','improve-writing','file','getModels','traceId','fix-grammar','translate','_sendApiRequest','fetchConversation','positiveCount','read','MAKE_LONGER','DELETE','Content-Type','token','_handleError','callCustomReview','fetchConversations','false','createdAt','code','/reviews/system/','CONTINUE','upsertCustomAIActionRating','PUT','message','deleteDocument','make-tone-casual','push','group','attributes','signal','/conversations','totalCount','statusText','value','/files/','/models/1?','1601198axwmCB','language','4646625RRaGyB','upsertAIChatRating','text','/calls','/files','callSystemReview','updateConversation','/conversations?','init','releaseLock','reset','ai-request-aborted','TRANSLATE','_decoder','/messages/','3800768KyMATa','isPremiumPlugin','AbortError','deleteConversation','executeAction','append','100','true','sortBy','IMPROVE_WRITING','Bearer\x20','pluginName'];_0x1ea3=function(){return _0xffb5fc;};return _0x1ea3();}
|
|
23
|
+
const _0x26b9bf=_0x2dd6;(function(_0x1be338,_0x5def68){const _0x22289c=_0x2dd6,_0x278215=_0x1be338();while(!![]){try{const _0xded4f1=parseInt(_0x22289c(0x108))/0x1+-parseInt(_0x22289c(0x143))/0x2*(parseInt(_0x22289c(0xe6))/0x3)+parseInt(_0x22289c(0x102))/0x4+-parseInt(_0x22289c(0xee))/0x5*(-parseInt(_0x22289c(0xd3))/0x6)+-parseInt(_0x22289c(0x15a))/0x7*(parseInt(_0x22289c(0x104))/0x8)+parseInt(_0x22289c(0xd6))/0x9*(-parseInt(_0x22289c(0x129))/0xa)+-parseInt(_0x22289c(0x117))/0xb*(-parseInt(_0x22289c(0x10a))/0xc);if(_0xded4f1===_0x5def68)break;else _0x278215['push'](_0x278215['shift']());}catch(_0x290105){_0x278215['push'](_0x278215['shift']());}}}(_0x27c5,0x9b76c));function _0x2dd6(_0x54f22c,_0x4d156c){const _0x27c526=_0x27c5();return _0x2dd6=function(_0x2dd655,_0x46e040){_0x2dd655=_0x2dd655-0xcf;let _0x3e33d1=_0x27c526[_0x2dd655];return _0x3e33d1;},_0x2dd6(_0x54f22c,_0x4d156c);}import{createParser as _0x56d860}from'eventsource-parser';import{ContextPlugin as _0x312939}from'ckeditor5/src/core.js';import{CKEditorError as _0x4ee7e1}from'ckeditor5/src/utils.js';function _0x27c5(){const _0x2f2abf=['fetchConversationMessages','_getStreamReader','/documents','abortController','/files','25kNOyqC','createdAt','releaseLock','message','/web-resources/','uploadDocument','modificationId','upsertAIChatRating','_handleError','upsertCustomAIActionRating','AbortError','positiveCount','upsertCustomAIReviewRating','define','TRANSLATE','/conversations','continue','/calls/','isPremiumPlugin','_decoder','2198536qfPiEa','/messages/','6197008fHYzET','deleteFile','deleteWebResource','then','705796ZApOsv','token','66720zhuRPB','read','make-tone-formal','feed','/ratings','toString','name','improve-writing','updateConversation','/calls','sortBy','application/json','uploadUrl','1595tJszkC','uploadFile','PUT','CloudServices','PATCH','plugins','false','data','/reviews/custom/calls','body','totalCount','make-tone-casual','100','config','parse','/actions/custom/calls/','_token','Content-Type','10mONLWz','/conversations?','/actions/custom/calls','deleteDocument','/messages','GET','request','group','json','IMPROVE_WRITING','reset','/reviews/custom/calls/','queryAssistant','get','signal','language','pluginName','attributes','fetchConversation','fetchConversations','fix-grammar','code','startConversation','limit','text','MAKE_LONGER','24902tWiMfy','/models/1?','traceId','callSystemReview','_sendApiRequest','fetchDocument','ai-request-failed','MAKE_TONE_FORMAL','deleteConversation','make-longer','translate','executeCustomAction','order','_apiUrl','file','ai.serviceUrl','https://ai.cke-cs.com/v1','isOfficialPlugin','upsertAIActionRating','desc','MAKE_TONE_CASUAL','getReader','/actions/system/','7kCOKbz','requires','upsertAIReviewRating','push','CONTINUE','MAKE_SHORTER','DELETE','statusText','true','FIX_GRAMMAR','decode','items','callCustomReview','POST','stringify','excludeEmpty','292902QLZckS','AIConnector','status','6816132kCAbid','/files/','length','Bearer\x20','/reviews/system/','ai-request-aborted','append','context','make-shorter','getModels','/conversations/','value','/documents/','init','catch','executeAction','33kKiBfg','ai-missing-token','/web-resources'];_0x27c5=function(){return _0x2f2abf;};return _0x27c5();}export var AIActionsNames;!function(_0x1412a0){const _0x16be5e=_0x2dd6;_0x1412a0[_0x16be5e(0x15e)]=_0x16be5e(0xfe),_0x1412a0[_0x16be5e(0x163)]=_0x16be5e(0x13d),_0x1412a0[_0x16be5e(0x132)]=_0x16be5e(0x111),_0x1412a0[_0x16be5e(0x142)]=_0x16be5e(0x14c),_0x1412a0[_0x16be5e(0x15f)]=_0x16be5e(0xde),_0x1412a0[_0x16be5e(0x157)]=_0x16be5e(0x122),_0x1412a0[_0x16be5e(0x14a)]=_0x16be5e(0x10c),_0x1412a0[_0x16be5e(0xfc)]=_0x16be5e(0x14d);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x312939{[_0x26b9bf(0x150)];[_0x26b9bf(0x127)];[_0x26b9bf(0x101)];static get[_0x26b9bf(0x15b)](){const _0x574a51=_0x26b9bf;return[_0x574a51(0x11a)];}static get[_0x26b9bf(0x139)](){const _0x3d4dc9=_0x26b9bf;return _0x3d4dc9(0xd4);}static get[_0x26b9bf(0x154)](){return!0x0;}static get[_0x26b9bf(0x100)](){return!0x0;}constructor(_0x3ffaae){const _0x5ca9e3=_0x26b9bf;super(_0x3ffaae),this[_0x5ca9e3(0xdd)][_0x5ca9e3(0x124)][_0x5ca9e3(0xfb)](_0x5ca9e3(0x152),_0x5ca9e3(0x153)),this[_0x5ca9e3(0x150)]=this[_0x5ca9e3(0xdd)][_0x5ca9e3(0x124)][_0x5ca9e3(0x136)](_0x5ca9e3(0x152)),this[_0x5ca9e3(0x127)]=null,this[_0x5ca9e3(0x101)]=new TextDecoder();}[_0x26b9bf(0xe3)](){const _0x24777b=_0x26b9bf,_0x49454e=this[_0x24777b(0xdd)][_0x24777b(0x11c)][_0x24777b(0x136)](_0x24777b(0x11a));if(!_0x49454e[_0x24777b(0x109)])throw new _0x4ee7e1(_0x24777b(0xe7),this);this[_0x24777b(0x127)]=_0x49454e[_0x24777b(0x109)];}[_0x26b9bf(0x13f)](_0x3b365c,_0x2b07b8){const _0x30fada=_0x26b9bf,_0x559b3b=this[_0x30fada(0x147)](_0x30fada(0xfd),_0x30fada(0xd0),{'id':_0x3b365c,'group':_0x2b07b8});return{'getConversation':async()=>(await _0x559b3b[_0x30fada(0x12f)])[_0x30fada(0x131)](),'abortController':_0x559b3b[_0x30fada(0xec)]};}[_0x26b9bf(0x135)]({message:_0x4c9cbd,conversationId:_0x29ebce,parts:_0x508d89,capabilities:_0x5e6fd4,model:_0x5bec04,attributes:_0xf3cd27}){const _0x584d48=_0x26b9bf,_0x485e98={'prompt':_0x4c9cbd,'content':_0x508d89,'model':_0x5bec04,..._0x5e6fd4&&{'capabilities':_0x5e6fd4},..._0xf3cd27&&{'attributes':_0xf3cd27}},_0x280d93=this[_0x584d48(0x147)](_0x584d48(0xe0)+_0x29ebce+_0x584d48(0x12d),_0x584d48(0xd0),_0x485e98);return{'getStream':async()=>{const _0x2ed116=_0x584d48,_0x58e235=(await _0x280d93[_0x2ed116(0x12f)])[_0x2ed116(0x120)];return this[_0x2ed116(0xea)](_0x58e235);},'abortController':_0x280d93[_0x584d48(0xec)]};}[_0x26b9bf(0x14e)]({content:_0x4fadea,message:_0x327d56,model:_0x55bb25,outputFormat:_0x2bd629}){const _0x52baf8=_0x26b9bf,_0x3186bb={'content':[{'type':_0x52baf8(0x141),'content':_0x4fadea}],'prompt':_0x327d56,'model':_0x55bb25,'outputFormat':_0x2bd629},_0x33f73f=this[_0x52baf8(0x147)](_0x52baf8(0x12b),_0x52baf8(0xd0),_0x3186bb);return{'getStream':async()=>{const _0x57b8fc=_0x52baf8,_0x2fceb3=(await _0x33f73f[_0x57b8fc(0x12f)])[_0x57b8fc(0x120)];return this[_0x57b8fc(0xea)](_0x2fceb3);},'abortController':_0x33f73f[_0x52baf8(0xec)]};}[_0x26b9bf(0xe5)]({actionName:_0x5c23fc,content:_0x18bd4d,args:_0x42db12}){const _0x24a654=_0x26b9bf,_0x4c455b={'content':[{'type':_0x24a654(0x141),'content':_0x18bd4d}],'args':_0x42db12},_0x2a2324=this[_0x24a654(0x147)](_0x24a654(0x159)+_0x5c23fc+_0x24a654(0x113),_0x24a654(0xd0),_0x4c455b);return{'getStream':async()=>{const _0x6714a=_0x24a654,_0x4b8213=(await _0x2a2324[_0x6714a(0x12f)])[_0x6714a(0x120)];return this[_0x6714a(0xea)](_0x4b8213);},'abortController':_0x2a2324[_0x24a654(0xec)]};}[_0x26b9bf(0x118)](_0x542192,_0x2d595b,_0x3a404e){const _0x33320c=_0x26b9bf,_0x4be483=new FormData();_0x4be483[_0x33320c(0xdc)](_0x33320c(0x151),_0x2d595b,_0x2d595b[_0x33320c(0x110)]),_0x3a404e&&_0x4be483[_0x33320c(0xdc)](_0x33320c(0x13a),JSON[_0x33320c(0xd1)](_0x3a404e));const _0x9d8f69=this[_0x33320c(0x147)](_0x33320c(0xe0)+_0x542192+_0x33320c(0xed),_0x33320c(0xd0),_0x4be483);return{'getId':async()=>(await _0x9d8f69[_0x33320c(0x12f)])[_0x33320c(0x131)](),'abortController':_0x9d8f69[_0x33320c(0xec)]};}[_0x26b9bf(0x148)](_0xb75615,_0x3e5a91){const _0x4c0149=_0x26b9bf,_0x3edff6=this[_0x4c0149(0x147)](_0x4c0149(0xe0)+_0xb75615+_0x4c0149(0xe2)+_0x3e5a91,_0x4c0149(0x12e));return{'getDocument':async()=>(await _0x3edff6[_0x4c0149(0x12f)])[_0x4c0149(0x131)](),'abortController':_0x3edff6[_0x4c0149(0xec)]};}[_0x26b9bf(0xf3)](_0x620227,_0x30272e,_0x32254e){const _0x360dbd=_0x26b9bf,_0x38dae2={'content':_0x30272e};_0x32254e&&(_0x38dae2[_0x360dbd(0x13a)]=_0x32254e);const _0x20c82b=this[_0x360dbd(0x147)](_0x360dbd(0xe0)+_0x620227+_0x360dbd(0xeb),_0x360dbd(0xd0),_0x38dae2);return{'getId':async()=>(await _0x20c82b[_0x360dbd(0x12f)])[_0x360dbd(0x131)](),'abortController':_0x20c82b[_0x360dbd(0xec)]};}[_0x26b9bf(0x13c)](_0x219b9b,_0x5ec5f7={}){const _0x1c63fb=_0x26b9bf,_0x3d7ec9=new URLSearchParams();_0x3d7ec9[_0x1c63fb(0xdc)](_0x1c63fb(0x130),_0x219b9b),_0x3d7ec9[_0x1c63fb(0xdc)](_0x1c63fb(0xd2),!0x1!==_0x5ec5f7[_0x1c63fb(0xd2)]?_0x1c63fb(0x162):_0x1c63fb(0x11d)),_0x3d7ec9[_0x1c63fb(0xdc)](_0x1c63fb(0x140),_0x5ec5f7[_0x1c63fb(0x140)]?_0x5ec5f7[_0x1c63fb(0x140)][_0x1c63fb(0x10f)]():_0x1c63fb(0x123)),_0x3d7ec9[_0x1c63fb(0xdc)](_0x1c63fb(0x114),_0x5ec5f7[_0x1c63fb(0x114)]?_0x5ec5f7[_0x1c63fb(0x114)]:_0x1c63fb(0xef)),_0x3d7ec9[_0x1c63fb(0xdc)](_0x1c63fb(0x14f),_0x5ec5f7[_0x1c63fb(0x14f)]?_0x5ec5f7[_0x1c63fb(0x14f)]:_0x1c63fb(0x156));const _0x48db3e=this[_0x1c63fb(0x147)](_0x1c63fb(0x12a)+_0x3d7ec9[_0x1c63fb(0x10f)](),_0x1c63fb(0x12e));return{'getConversations':async()=>{const _0x2f4319=_0x1c63fb,_0x379c5b=await _0x48db3e[_0x2f4319(0x12f)];return(await _0x379c5b[_0x2f4319(0x131)]())[_0x2f4319(0x165)];},'abortController':_0x48db3e[_0x1c63fb(0xec)]};}[_0x26b9bf(0x14b)](_0x4ae12d){const _0x2c2ef1=_0x26b9bf,_0x390558=this[_0x2c2ef1(0x147)](_0x2c2ef1(0xe0)+_0x4ae12d,_0x2c2ef1(0x160));return{'execute':async()=>{const _0x299777=_0x2c2ef1;await _0x390558[_0x299777(0x12f)];},'abortController':_0x390558[_0x2c2ef1(0xec)]};}[_0x26b9bf(0x112)](_0x6156f,_0x1a555b){const _0x48e255=_0x26b9bf,_0x24d32b=this[_0x48e255(0x147)](_0x48e255(0xe0)+_0x6156f,_0x48e255(0x11b),_0x1a555b);return{'getResult':async()=>(await _0x24d32b[_0x48e255(0x12f)],_0x1a555b),'abortController':_0x24d32b[_0x48e255(0xec)]};}[_0x26b9bf(0x13b)](_0x25cbb0){const _0x2468e0=_0x26b9bf,_0x28a1cc=this[_0x2468e0(0x147)](_0x2468e0(0xe0)+_0x25cbb0,_0x2468e0(0x12e));return{'getConversation':async()=>(await _0x28a1cc[_0x2468e0(0x12f)])[_0x2468e0(0x131)](),'abortController':_0x28a1cc[_0x2468e0(0xec)]};}[_0x26b9bf(0xe9)](_0x3c45b1){const _0xdec652=_0x26b9bf,_0xa931bb=this[_0xdec652(0x147)](_0xdec652(0xe0)+_0x3c45b1+_0xdec652(0x12d),_0xdec652(0x12e));return{'getMessages':async()=>{const _0x288ccc=_0xdec652,_0x3ad7d6=await _0xa931bb[_0x288ccc(0x12f)];return(await _0x3ad7d6[_0x288ccc(0x131)]())[_0x288ccc(0x165)];},'abortController':_0xa931bb[_0xdec652(0xec)]};}[_0x26b9bf(0x116)](_0x50ff40,_0x271fa5,_0x4e831a){const _0x87b7=_0x26b9bf,_0x37316e=this[_0x87b7(0x147)](_0x87b7(0xe0)+_0x50ff40+_0x87b7(0xe8),_0x87b7(0xd0),{'url':_0x271fa5,'attributes':_0x4e831a});return{'getId':async()=>(await _0x37316e[_0x87b7(0x12f)])[_0x87b7(0x131)](),'abortController':_0x37316e[_0x87b7(0xec)]};}[_0x26b9bf(0xdf)](_0x145cf1='en'){const _0x330346=_0x26b9bf,_0x4d18dd=new URLSearchParams();_0x4d18dd[_0x330346(0xdc)](_0x330346(0x138),_0x145cf1);const _0x5b813d=_0x330346(0x144)+_0x4d18dd[_0x330346(0x10f)](),_0x4ca4d2=this[_0x330346(0x147)](_0x5b813d,_0x330346(0x12e));return{'list':async()=>await(await _0x4ca4d2[_0x330346(0x12f)])[_0x330346(0x131)](),'abortController':_0x4ca4d2[_0x330346(0xec)]};}[_0x26b9bf(0x105)](_0x4dd57f,_0xb6e374){const _0x242eda=_0x26b9bf,_0x266fa2=this[_0x242eda(0x147)](_0x242eda(0xe0)+_0x4dd57f+_0x242eda(0xd7)+_0xb6e374,_0x242eda(0x160));return{'execute':async()=>{const _0x4dca4a=_0x242eda;await _0x266fa2[_0x4dca4a(0x12f)];},'abortController':_0x266fa2[_0x242eda(0xec)]};}[_0x26b9bf(0x12c)](_0x1a054f,_0xdc7d0a){const _0xeb6b9=_0x26b9bf,_0x5b8b9a=this[_0xeb6b9(0x147)](_0xeb6b9(0xe0)+_0x1a054f+_0xeb6b9(0xe2)+_0xdc7d0a,_0xeb6b9(0x160));return{'execute':async()=>{const _0x15c26d=_0xeb6b9;await _0x5b8b9a[_0x15c26d(0x12f)];},'abortController':_0x5b8b9a[_0xeb6b9(0xec)]};}[_0x26b9bf(0x106)](_0x1fc32c,_0xda53de){const _0xf31953=_0x26b9bf,_0x2e2b7b=this[_0xf31953(0x147)](_0xf31953(0xe0)+_0x1fc32c+_0xf31953(0xf2)+_0xda53de,_0xf31953(0x160));return{'execute':async()=>{const _0x245b7a=_0xf31953;await _0x2e2b7b[_0x245b7a(0x12f)];},'abortController':_0x2e2b7b[_0xf31953(0xec)]};}[_0x26b9bf(0x146)]({reviewName:_0x2d7e3c,content:_0x1acfd8,args:_0x25691f}){const _0x1a8723=_0x26b9bf,_0x491beb=this[_0x1a8723(0x147)](_0x1a8723(0xda)+_0x2d7e3c+_0x1a8723(0x113),_0x1a8723(0xd0),{'content':[{'type':_0x1a8723(0x141),'content':_0x1acfd8}],'args':_0x25691f});return{'getStream':async()=>{const _0x1d935b=_0x1a8723,_0x1dc490=(await _0x491beb[_0x1d935b(0x12f)])[_0x1d935b(0x120)];return this[_0x1d935b(0xea)](_0x1dc490);},'abortController':_0x491beb[_0x1a8723(0xec)]};}[_0x26b9bf(0xcf)]({content:_0x18e7df,prompt:_0x29ce59,model:_0x9778a8}){const _0x7da8f5=_0x26b9bf,_0x558b4a=this[_0x7da8f5(0x147)](_0x7da8f5(0x11f),_0x7da8f5(0xd0),{'content':[{'type':_0x7da8f5(0x141),'content':_0x18e7df}],'prompt':_0x29ce59,'model':_0x9778a8});return{'getStream':async()=>{const _0x23a6b0=_0x7da8f5,_0x2bb7c8=(await _0x558b4a[_0x23a6b0(0x12f)])[_0x23a6b0(0x120)];return this[_0x23a6b0(0xea)](_0x2bb7c8);},'abortController':_0x558b4a[_0x7da8f5(0xec)]};}[_0x26b9bf(0xf5)](_0x4350da,_0x58fe70,_0x25fd73){const _0x193d2a=_0x26b9bf,_0x97657d=this[_0x193d2a(0x147)](_0x193d2a(0xe0)+_0x4350da+_0x193d2a(0x103)+_0x58fe70+_0x193d2a(0x10e),_0x193d2a(0x119),{'positiveCount':_0x25fd73[_0x193d2a(0xf9)],'totalCount':_0x25fd73[_0x193d2a(0x121)],'modificationId':_0x25fd73[_0x193d2a(0xf4)]});return{'execute':async()=>{const _0x42050e=_0x193d2a;await _0x97657d[_0x42050e(0x12f)];},'abortController':_0x97657d[_0x193d2a(0xec)]};}[_0x26b9bf(0x155)](_0x2363a7,_0x9a332c,_0x39d61a){const _0x564afc=_0x26b9bf,_0x4d46cd=this[_0x564afc(0x147)](_0x564afc(0x159)+_0x2363a7+_0x564afc(0xff)+_0x9a332c+_0x564afc(0x10e),_0x564afc(0x119),{'positiveCount':_0x39d61a[_0x564afc(0xf9)],'totalCount':_0x39d61a[_0x564afc(0x121)]});return{'execute':async()=>{const _0x453d70=_0x564afc;await _0x4d46cd[_0x453d70(0x12f)];},'abortController':_0x4d46cd[_0x564afc(0xec)]};}[_0x26b9bf(0xf7)](_0x28c24f,_0x2c8330){const _0x2cb7a1=_0x26b9bf,_0x1ec1dc=this[_0x2cb7a1(0x147)](_0x2cb7a1(0x126)+_0x28c24f+_0x2cb7a1(0x10e),_0x2cb7a1(0x119),{'positiveCount':_0x2c8330[_0x2cb7a1(0xf9)],'totalCount':_0x2c8330[_0x2cb7a1(0x121)]});return{'execute':async()=>{const _0xe327c2=_0x2cb7a1;await _0x1ec1dc[_0xe327c2(0x12f)];},'abortController':_0x1ec1dc[_0x2cb7a1(0xec)]};}[_0x26b9bf(0x15c)](_0x34f390,_0x2db6d0,_0x24d660,_0x468b22){const _0x1d5ecf=_0x26b9bf,_0x4c3d31=this[_0x1d5ecf(0x147)](_0x1d5ecf(0xda)+_0x34f390+_0x1d5ecf(0xff)+_0x2db6d0+_0x1d5ecf(0x10e),_0x1d5ecf(0x119),{'positiveCount':_0x24d660[_0x1d5ecf(0xf9)],'totalCount':_0x24d660[_0x1d5ecf(0x121)],'dataId':_0x468b22});return{'execute':async()=>{const _0x5a2ce8=_0x1d5ecf;await _0x4c3d31[_0x5a2ce8(0x12f)];},'abortController':_0x4c3d31[_0x1d5ecf(0xec)]};}[_0x26b9bf(0xfa)](_0x4c3e9a,_0x11b80c,_0x1e7c21){const _0x2cfa9e=_0x26b9bf,_0x1fe0e1=this[_0x2cfa9e(0x147)](_0x2cfa9e(0x134)+_0x4c3e9a+_0x2cfa9e(0x10e),_0x2cfa9e(0x119),{'positiveCount':_0x11b80c[_0x2cfa9e(0xf9)],'totalCount':_0x11b80c[_0x2cfa9e(0x121)],'dataId':_0x1e7c21});return{'execute':async()=>{const _0x16fad5=_0x2cfa9e;await _0x1fe0e1[_0x16fad5(0x12f)];},'abortController':_0x1fe0e1[_0x2cfa9e(0xec)]};}[_0x26b9bf(0x147)](_0x40db94,_0x574b08,_0x500018){const _0x183eca=_0x26b9bf,_0x390733=new AbortController(),_0x2031c5=_0x500018 instanceof FormData,_0x58f3da={'Authorization':_0x183eca(0xd9)+this[_0x183eca(0x127)]?.[_0x183eca(0xe1)]};_0x500018&&!_0x2031c5&&(_0x58f3da[_0x183eca(0x128)]=_0x183eca(0x115));const _0x321266={'method':_0x574b08,'headers':_0x58f3da,'signal':_0x390733[_0x183eca(0x137)]};return _0x500018&&(_0x321266[_0x183eca(0x120)]=_0x2031c5?_0x500018:JSON[_0x183eca(0xd1)](_0x500018)),{'request':fetch(''+this[_0x183eca(0x150)]+_0x40db94,_0x321266)[_0x183eca(0xe4)](_0x3f0021=>{const _0x3b3422=_0x183eca;this[_0x3b3422(0xf6)](_0x3f0021);})[_0x183eca(0x107)](_0x55a700=>_0x55a700['ok']?_0x55a700:_0x55a700[_0x183eca(0x131)]()[_0x183eca(0x107)](_0x3747b1=>{const _0x3edcb4=_0x183eca;throw{'url':this[_0x3edcb4(0x150)],'path':_0x40db94,'method':_0x574b08,'body':_0x500018,'status':(_0x55a700||{})[_0x3edcb4(0xd5)],'statusText':(_0x55a700||{})[_0x3edcb4(0x161)],'code':_0x3747b1[_0x3edcb4(0x13e)],'message':_0x3747b1[_0x3edcb4(0xf1)],'traceId':_0x3747b1[_0x3edcb4(0x145)]};})),'abortController':_0x390733};}async*[_0x26b9bf(0xea)](_0x46397b){const _0x390169=_0x26b9bf,_0x15e97c=[],_0x5217a4=_0x46397b[_0x390169(0x158)](),_0x37adc7=_0x56d860({'onError':_0x30d708=>{const _0xec6c43=_0x390169;this[_0xec6c43(0xf6)](_0x30d708);},'onEvent':_0x3f8826=>{const _0x354896=_0x390169;_0x3f8826[_0x354896(0x11e)]=JSON[_0x354896(0x125)](_0x3f8826[_0x354896(0x11e)]),_0x15e97c[_0x354896(0x15d)](_0x3f8826);}});try{let _0x114402=!0x1;for(;!_0x114402;){const {done:_0x21743d,value:_0x2ba962}=await _0x5217a4[_0x390169(0x10b)]();_0x21743d&&(_0x114402=!0x0),_0x37adc7[_0x390169(0x10d)](this[_0x390169(0x101)][_0x390169(0x164)](_0x2ba962,{'stream':!0x0})),yield*_0x15e97c,_0x15e97c[_0x390169(0xd8)]=0x0;}}catch(_0x368e58){this[_0x390169(0xf6)](_0x368e58);}finally{_0x5217a4[_0x390169(0xf0)](),_0x37adc7[_0x390169(0x133)]();}}[_0x26b9bf(0xf6)](_0x39c88f){const _0x6b0897=_0x26b9bf;if(_0x39c88f instanceof _0x4ee7e1)throw _0x39c88f;if(_0x39c88f instanceof Error&&_0x6b0897(0xf8)===_0x39c88f[_0x6b0897(0x110)])throw new _0x4ee7e1(_0x6b0897(0xdb),this,{'originalError':_0x39c88f});throw new _0x4ee7e1(_0x6b0897(0x149),this,{'originalError':_0x39c88f});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x2b7b(_0x1ed86e,_0x37c9ae){const _0x4f86b8=_0x4f86();return _0x2b7b=function(_0x2b7b3c,_0x3c7daf){_0x2b7b3c=_0x2b7b3c-0xe4;let _0x20410e=_0x4f86b8[_0x2b7b3c];return _0x20410e;},_0x2b7b(_0x1ed86e,_0x37c9ae);}const _0x351ecd=_0x2b7b;(function(_0x10520,_0x5bbe24){const _0xab489d=_0x2b7b,_0x3b699a=_0x10520();while(!![]){try{const _0xf71ed6=parseInt(_0xab489d(0x12b))/0x1*(parseInt(_0xab489d(0x103))/0x2)+parseInt(_0xab489d(0x12a))/0x3+parseInt(_0xab489d(0x11e))/0x4*(-parseInt(_0xab489d(0x157))/0x5)+-parseInt(_0xab489d(0x143))/0x6*(parseInt(_0xab489d(0x148))/0x7)+parseInt(_0xab489d(0x154))/0x8+-parseInt(_0xab489d(0x123))/0x9+-parseInt(_0xab489d(0x118))/0xa*(-parseInt(_0xab489d(0x104))/0xb);if(_0xf71ed6===_0x5bbe24)break;else _0x3b699a['push'](_0x3b699a['shift']());}catch(_0x413734){_0x3b699a['push'](_0x3b699a['shift']());}}}(_0x4f86,0xe2e9e));import{ViewDowncastWriter as _0x1d590f}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x1708d4,Editor as _0x4293fb}from'ckeditor5/src/core.js';import{uid as _0x2eb658}from'ckeditor5/src/utils.js';import{getTranslation as _0x1807f7}from'./utils/common-translations.js';import{getEditorFromContext as _0x1b1412}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x351ecd(0x117);export class AIEditing extends _0x1708d4{constructor(_0x4a63bf){const _0x5bc799=_0x351ecd;super(_0x4a63bf),this[_0x5bc799(0x122)][_0x5bc799(0x139)][_0x5bc799(0x101)](_0x5bc799(0x14e),!0x0);}[_0x351ecd(0x152)];[_0x351ecd(0xf9)]=null;[_0x351ecd(0x125)]=!0x1;[_0x351ecd(0x13b)];static get[_0x351ecd(0x114)](){const _0x26bece=_0x351ecd;return _0x26bece(0x12f);}static get[_0x351ecd(0xee)](){return!0x0;}static get[_0x351ecd(0x150)](){return!0x0;}get[_0x351ecd(0x135)](){const _0x254b1d=_0x351ecd;if(!this[_0x254b1d(0x13b)]){const _0x9698e6=_0x1b1412(this[_0x254b1d(0x122)]),_0x1fcd16=_0x9698e6[_0x254b1d(0x11b)][_0x254b1d(0x13c)](_0x254b1d(0xe9))&&_0x9698e6[_0x254b1d(0x11b)][_0x254b1d(0xf8)](_0x254b1d(0xe9))[_0x254b1d(0x135)];this[_0x254b1d(0x13b)]=_0x1fcd16||_0x2eb658();}return this[_0x254b1d(0x13b)];}async[_0x351ecd(0x136)](){const _0xd88b9d=_0x351ecd,_0x2adafe=_0x1b1412(this[_0xd88b9d(0x122)]),_0x47a13c=_0x2adafe[_0xd88b9d(0x141)],_0x4a626c=_0x2adafe[_0xd88b9d(0x13d)][_0xd88b9d(0x149)](_0x47a13c[_0xd88b9d(0x137)][_0xd88b9d(0xe7)](),{'convertAiChatSelectionMarker':!0x0}),_0x4f469c=new _0x1d590f(_0x2adafe[_0xd88b9d(0x14f)][_0xd88b9d(0x11c)][_0xd88b9d(0x137)]);this[_0xd88b9d(0xe4)](_0x4a626c,_0x4f469c);let _0x14dbf1=await this[_0xd88b9d(0x158)](_0x4a626c);const _0x4aedcf=this[_0xd88b9d(0x110)](),_0x57460f=[];for(const _0x2d7e53 of _0x4aedcf){const _0x51a818='<'+_0x2d7e53[_0xd88b9d(0xed)]+_0xd88b9d(0x13e)+_0x2d7e53[_0xd88b9d(0xed)]+_0xd88b9d(0x102),_0x1013bd=_0x14dbf1[_0xd88b9d(0xf4)](_0x51a818);_0x14dbf1=_0x14dbf1[_0xd88b9d(0x138)](0x0,_0x1013bd)+_0x14dbf1[_0xd88b9d(0x138)](_0x1013bd+_0x51a818[_0xd88b9d(0xf2)]);const _0x5a8c5b='<'+_0x2d7e53[_0xd88b9d(0xed)]+_0xd88b9d(0x10a)+_0x2d7e53[_0xd88b9d(0xed)]+_0xd88b9d(0x119),_0x68885d=_0x14dbf1[_0xd88b9d(0xf4)](_0x5a8c5b);_0x14dbf1=_0x14dbf1[_0xd88b9d(0x138)](0x0,_0x68885d)+_0x14dbf1[_0xd88b9d(0x138)](_0x68885d+_0x5a8c5b[_0xd88b9d(0xf2)]),_0x57460f[_0xd88b9d(0xfa)]({'markerName':_0x2d7e53[_0xd88b9d(0xed)],'start':_0x1013bd,'end':_0x68885d,'htmlFragment':_0x14dbf1[_0xd88b9d(0x138)](_0x1013bd,_0x68885d)});}return{'content':_0x14dbf1,'version':_0x2adafe[_0xd88b9d(0x141)][_0xd88b9d(0x137)][_0xd88b9d(0x146)],'sessionId':this[_0xd88b9d(0x135)],'selections':_0x57460f};}async[_0x351ecd(0x105)](){const _0xb26bde=_0x351ecd;this[_0xb26bde(0x122)]instanceof _0x4293fb?this[_0xb26bde(0xe6)](this[_0xb26bde(0x122)]):this[_0xb26bde(0x155)](this[_0xb26bde(0x122)][_0xb26bde(0x12d)],_0xb26bde(0x126),(_0x28f544,_0x116ef9)=>{const _0x4f7425=_0xb26bde;_0x116ef9['on'](_0x4f7425(0x11f),()=>{const _0x22746f=_0x4f7425;this[_0x22746f(0xe6)](_0x116ef9);});});}[_0x351ecd(0xfc)](_0x2b9334){const _0x801430=_0x351ecd;this[_0x801430(0x152)]=_0x2b9334;}async[_0x351ecd(0x158)](_0xfc9c7){const _0x2d1d4b=_0x351ecd;let _0x364eaf;const _0x5089b9=_0x1b1412(this[_0x2d1d4b(0x122)]);if(this[_0x2d1d4b(0x152)]){const _0x47330f=_0x5089b9[_0x2d1d4b(0x13d)][_0x2d1d4b(0x100)][_0x2d1d4b(0xef)][_0x2d1d4b(0x109)](_0xfc9c7),_0x53d957=await this[_0x2d1d4b(0x152)](_0x47330f);_0x364eaf=_0x5089b9[_0x2d1d4b(0x13d)][_0x2d1d4b(0x100)][_0x2d1d4b(0xf1)][_0x2d1d4b(0x10b)](_0x53d957);}else _0x364eaf=_0x5089b9[_0x2d1d4b(0x13d)][_0x2d1d4b(0x100)][_0x2d1d4b(0xea)](_0xfc9c7);return _0x364eaf;}[_0x351ecd(0xe6)](_0x55a878){const _0x2511bf=_0x351ecd;_0x55a878[_0x2511bf(0x14c)][_0x2511bf(0xfd)](_0x2511bf(0x13f))[_0x2511bf(0x130)]({'model':_0x2511bf(0x117),'view':{'classes':[_0x2511bf(0x151),_0x2511bf(0x120)],'priority':0xc}}),_0x55a878[_0x2511bf(0x14c)][_0x2511bf(0xfd)](_0x2511bf(0xe8))[_0x2511bf(0x128)]({'model':_0x2511bf(0x117),'view':(_0x13c0fd,{writer:_0x2d3dcc,options:_0x177aa6})=>_0x177aa6[_0x2511bf(0xe5)]?_0x2d3dcc[_0x2511bf(0x108)](_0x13c0fd[_0x2511bf(0x147)]+':'+(_0x13c0fd[_0x2511bf(0xfb)]?_0x2511bf(0x10f):_0x2511bf(0x13a))):null});}[_0x351ecd(0x131)](_0x179ec3,_0x2846e1,_0x3b3ba0=!0x1,_0xa295eb=!0x1){const _0x34a84d=_0x351ecd;if(this[_0x34a84d(0x125)]&&!_0xa295eb)return!0x1;const _0x824735=_0x1b1412(this[_0x34a84d(0x122)])[_0x34a84d(0x141)];return _0x824735[_0x34a84d(0xf3)](_0x44bdbd=>{const _0x19c25d=_0x34a84d;this[_0x19c25d(0xf9)]&&this[_0x19c25d(0xeb)](this[_0x19c25d(0xf9)]),this[_0x19c25d(0xf9)]=_0x2846e1,this[_0x19c25d(0x125)]=_0x3b3ba0;let _0x58f90e=0x0;for(let _0x241269 of _0x179ec3){const _0xec63d2=_0x19c25d(0x115)+_0x58f90e;if(_0x241269[_0x19c25d(0x10f)][_0x19c25d(0x121)]){const _0x4f4ac2=_0x241269[_0x19c25d(0x10f)][_0x19c25d(0xff)](({item:_0x50d2ba})=>!_0x824735[_0x19c25d(0x133)][_0x19c25d(0x116)](_0x50d2ba),{'boundaries':_0x241269});_0x241269=_0x44bdbd[_0x19c25d(0xfe)](_0x4f4ac2,_0x241269[_0x19c25d(0x13a)]);}_0x44bdbd[_0x19c25d(0xf7)](_0xec63d2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x241269}),_0x58f90e++;}}),window[_0x34a84d(0x153)]()?.[_0x34a84d(0x144)](),!0x0;}[_0x351ecd(0xeb)](_0x3259c2){const _0x2c7002=_0x351ecd;if(this[_0x2c7002(0xf9)]!=_0x3259c2)return!0x1;this[_0x2c7002(0xf9)]=null,this[_0x2c7002(0x125)]=!0x1;const _0x2404a6=_0x1b1412(this[_0x2c7002(0x122)]),_0x396211=_0x2404a6[_0x2c7002(0x141)][_0x2c7002(0x124)][_0x2c7002(0x14b)](_0x2c7002(0x117));return _0x2404a6[_0x2c7002(0x141)][_0x2c7002(0xf3)](_0x17713c=>{const _0x520c92=_0x2c7002;for(const _0x25c788 of _0x396211)_0x17713c[_0x520c92(0xf0)](_0x25c788);}),!0x0;}async[_0x351ecd(0x11a)](_0x50350c){const _0x1a474b=_0x351ecd,_0x3a6815=_0x1b1412(this[_0x1a474b(0x122)]),_0x2e162f=_0x3a6815[_0x1a474b(0x13d)][_0x1a474b(0x149)](_0x50350c),_0x2a1e23=new _0x1d590f(_0x3a6815[_0x1a474b(0x14f)][_0x1a474b(0x11c)][_0x1a474b(0x137)]);return this[_0x1a474b(0xe4)](_0x2e162f,_0x2a1e23),this[_0x1a474b(0x158)](_0x2e162f);}[_0x351ecd(0xe4)](_0x15f142,_0x27242f){const _0x22c109=_0x351ecd;let _0x29fe0a=!0x1;const _0x2c8a0b=new Set();for(const _0x2f9a75 of _0x15f142[_0x22c109(0x10e)]()){const _0x74878f=_0x2f9a75['is'](_0x22c109(0x129))||_0x2f9a75['is'](_0x22c109(0x106));if(!_0x2f9a75['is'](_0x22c109(0x11d)))continue;(this[_0x22c109(0xe4)](_0x2f9a75,_0x27242f)||_0x74878f)&&(_0x27242f[_0x22c109(0x140)](_0x22c109(0x134),this[_0x22c109(0xf5)](_0x2c8a0b),_0x2f9a75),_0x29fe0a=!0x0);}return _0x29fe0a;}[_0x351ecd(0xf5)](_0x4e2db2){const _0x517326=_0x351ecd;let _0x2d5c89;do{_0x2d5c89='';for(let _0x14abdb=0x0;_0x14abdb<0x4;_0x14abdb++)_0x2d5c89+=String[_0x517326(0x127)](0x61+Math[_0x517326(0x156)](0x1a*Math[_0x517326(0x142)]()));}while(_0x4e2db2[_0x517326(0x13c)](_0x2d5c89));return _0x4e2db2[_0x517326(0x126)](_0x2d5c89),_0x2d5c89;}[_0x351ecd(0xf6)](){const _0x295c8a=_0x351ecd,{model:_0x5d1ff1}=_0x1b1412(this[_0x295c8a(0x122)]),_0x58aa68=_0x5d1ff1[_0x295c8a(0x137)][_0x295c8a(0x113)],_0x38b4c6=[];for(const _0xacf561 of _0x58aa68[_0x295c8a(0x10c)]())for(const _0x268eea of _0xacf561[_0x295c8a(0x14a)]())_0x268eea['is'](_0x295c8a(0x145))?_0x38b4c6[_0x295c8a(0xfa)](_0x268eea[_0x295c8a(0x13d)]):_0x268eea['is'](_0x295c8a(0x11d))&&_0x38b4c6[_0x295c8a(0xf2)]>0x0&&'\x20'!==_0x38b4c6[_0x38b4c6[_0x295c8a(0xf2)]-0x1]&&_0x38b4c6[_0x295c8a(0xfa)]('\x20');return _0x38b4c6[_0x295c8a(0xf2)]?'\x22'+_0x38b4c6[_0x295c8a(0xec)]('')[_0x295c8a(0x112)]()+'\x22':_0x1807f7(this[_0x295c8a(0x122)][_0x295c8a(0x12c)],_0x295c8a(0x10d));}[_0x351ecd(0x110)](){const _0x357394=_0x351ecd,_0x835576=_0x1b1412(this[_0x357394(0x122)])[_0x357394(0x141)];return Array[_0x357394(0x132)](_0x835576[_0x357394(0x124)][_0x357394(0x14b)](_0x357394(0x117)))[_0x357394(0x107)]((_0x3a500c,_0xfe8af)=>_0x3a500c[_0x357394(0x12e)]()[_0x357394(0x111)](_0xfe8af[_0x357394(0x12e)]())?-0x1:_0x3a500c[_0x357394(0x12e)]()[_0x357394(0x14d)](_0xfe8af[_0x357394(0x12e)]())?0x1:0x0);}}function _0x4f86(){const _0x1250ae=['436884UZXRqV','1arpXVI','locale','editors','getStart','AIEditing','markerToHighlight','showFakeVisualSelection','from','schema','data-id','sessionId','getDocumentData','document','substring','config','end','_sessionId','has','data',':start></','editingDowncast','setAttribute','model','random','22794KhYZrA','removeAllRanges','$textProxy','version','markerName','2009OVUNgV','toView','getItems','getMarkersGroup','conversion','isAfter','ai.models.showModelSelector','editing','isPremiumPlugin','ck-fake-ai-selection','_outputDataProcessor','getSelection','12574952apousg','listenTo','floor','15QXapfW','_getDocumentDataStringFromView','_setDataIdsOnChildren','convertAiChatSelectionMarker','_integrateEditor','getRoot','dataDowncast','RealTimeCollaborationClient','toData','hideFakeVisualSelection','join','name','isOfficialPlugin','domConverter','removeMarker','htmlWriter','length','change','indexOf','_nextDataId','getSelectionText','addMarker','get','_displayedFakeSelectionId','push','isOpening','_setOutputDataProcessor','for','createRange','getLastMatchingPosition','processor','define',':start>','968134mLaptD','11thgTuK','afterInit','containerElement','sort','createUIElement','viewToDom',':end></','getHtml','getRanges','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','getChildren','start','_getMarkersInDocumentOrder','isBefore','trim','selection','pluginName','ai-selection:','isContent','ai-selection','18877960ZIdFUT',':end>','modelToDataWithIds','plugins','view','element','1810756wuDFXf','ready','ck-ai-assistant-ui_theme','isAtEnd','context','6403878LPshaA','markers','_displayedFakeSelectionLocked','add','fromCharCode','markerToElement','emptyElement'];_0x4f86=function(){return _0x1250ae;};return _0x4f86();}
|
|
23
|
+
const _0x4dd393=_0x11f3;(function(_0x370787,_0x550678){const _0x394dea=_0x11f3,_0x580fd2=_0x370787();while(!![]){try{const _0x5bbc11=-parseInt(_0x394dea(0x138))/0x1*(parseInt(_0x394dea(0x10f))/0x2)+-parseInt(_0x394dea(0xf2))/0x3+parseInt(_0x394dea(0x122))/0x4*(-parseInt(_0x394dea(0xdd))/0x5)+parseInt(_0x394dea(0x10d))/0x6*(-parseInt(_0x394dea(0x12a))/0x7)+parseInt(_0x394dea(0x139))/0x8+parseInt(_0x394dea(0x104))/0x9+-parseInt(_0x394dea(0x109))/0xa*(-parseInt(_0x394dea(0x148))/0xb);if(_0x5bbc11===_0x550678)break;else _0x580fd2['push'](_0x580fd2['shift']());}catch(_0x305b5b){_0x580fd2['push'](_0x580fd2['shift']());}}}(_0xa2da,0x91b21));function _0xa2da(){const _0xb5363f=['for','model','containerElement','data','getRoot','end','plugins','9360828maIsNV','getRanges','emptyElement',':start></','trim','80HczlmD','view','start','convertAiChatSelectionMarker','1206rpwtlN','editors','143006livwwD','context','ck-ai-assistant-ui_theme','getSelection','dataDowncast','push','editingDowncast','getChildren','removeMarker','conversion','createUIElement','_getMarkersInDocumentOrder','isBefore','listenTo','pluginName','schema','fromCharCode','markerName','config','1431212heBHod','from','createRange','afterInit','locale','showFakeVisualSelection','isAfter','isAtEnd','21889ykJmyn','isOpening','_outputDataProcessor','toView','ai-selection:','getItems','change','toData','length','substring','hideFakeVisualSelection','_setDataIdsOnChildren','name','_sessionId','2kprEQZ','4880088yjAEai','removeAllRanges','setAttribute','domConverter','define',':end></','add','ck-fake-ai-selection','isContent','getDocumentData','version','element','ai-selection','indexOf','_displayedFakeSelectionId','1345443GgXfNB','ready','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','random','data-id','getHtml','viewToDom','addMarker','sessionId','floor','5dHVsyH','getLastMatchingPosition','markerToElement','has','ai.models.showModelSelector','RealTimeCollaborationClient','markers','document','_setOutputDataProcessor','isPremiumPlugin','$textProxy','getStart','isOfficialPlugin','_integrateEditor','getMarkersGroup','selection','_getDocumentDataStringFromView','getSelectionText','_nextDataId','join','AIEditing','2707506eIwNoB',':start>','htmlWriter','_displayedFakeSelectionLocked','get','editing',':end>','processor','sort','modelToDataWithIds','markerToHighlight'];_0xa2da=function(){return _0xb5363f;};return _0xa2da();}import{ViewDowncastWriter as _0x58b373}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x4628c2,Editor as _0x1c152e}from'ckeditor5/src/core.js';function _0x11f3(_0x4a710a,_0x41afcd){const _0xa2da83=_0xa2da();return _0x11f3=function(_0x11f329,_0x5cf11f){_0x11f329=_0x11f329-0xda;let _0x56defe=_0xa2da83[_0x11f329];return _0x56defe;},_0x11f3(_0x4a710a,_0x41afcd);}import{uid as _0x1d17e6}from'ckeditor5/src/utils.js';import{getTranslation as _0x8fed0d}from'./utils/common-translations.js';import{getEditorFromContext as _0x1cc823}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4dd393(0x145);export class AIEditing extends _0x4628c2{constructor(_0x3cbe43){const _0x49b516=_0x4dd393;super(_0x3cbe43),this[_0x49b516(0x110)][_0x49b516(0x121)][_0x49b516(0x13d)](_0x49b516(0xe1),!0x0);}[_0x4dd393(0x12c)];[_0x4dd393(0x147)]=null;[_0x4dd393(0xf5)]=!0x1;[_0x4dd393(0x137)];static get[_0x4dd393(0x11d)](){const _0x51cb43=_0x4dd393;return _0x51cb43(0xf1);}static get[_0x4dd393(0xe9)](){return!0x0;}static get[_0x4dd393(0xe6)](){return!0x0;}get[_0x4dd393(0xdb)](){const _0x5722c0=_0x4dd393;if(!this[_0x5722c0(0x137)]){const _0x25f715=_0x1cc823(this[_0x5722c0(0x110)]),_0x1d822d=_0x25f715[_0x5722c0(0x103)][_0x5722c0(0xe0)](_0x5722c0(0xe2))&&_0x25f715[_0x5722c0(0x103)][_0x5722c0(0xf6)](_0x5722c0(0xe2))[_0x5722c0(0xdb)];this[_0x5722c0(0x137)]=_0x1d822d||_0x1d17e6();}return this[_0x5722c0(0x137)];}async[_0x4dd393(0x142)](){const _0x3494b5=_0x4dd393,_0x3a348a=_0x1cc823(this[_0x3494b5(0x110)]),_0x391ada=_0x3a348a[_0x3494b5(0xfe)],_0x3d5a12=_0x3a348a[_0x3494b5(0x100)][_0x3494b5(0x12d)](_0x391ada[_0x3494b5(0xe4)][_0x3494b5(0x101)](),{'convertAiChatSelectionMarker':!0x0}),_0x3e0495=new _0x58b373(_0x3a348a[_0x3494b5(0xf7)][_0x3494b5(0x10a)][_0x3494b5(0xe4)]);this[_0x3494b5(0x135)](_0x3d5a12,_0x3e0495);let _0x3857bd=await this[_0x3494b5(0xed)](_0x3d5a12);const _0x2b5ee6=this[_0x3494b5(0x11a)](),_0xdd09b5=[];for(const _0x3cdeda of _0x2b5ee6){const _0x2f04a8='<'+_0x3cdeda[_0x3494b5(0x136)]+_0x3494b5(0x107)+_0x3cdeda[_0x3494b5(0x136)]+_0x3494b5(0xf3),_0x49d3bc=_0x3857bd[_0x3494b5(0x146)](_0x2f04a8);_0x3857bd=_0x3857bd[_0x3494b5(0x133)](0x0,_0x49d3bc)+_0x3857bd[_0x3494b5(0x133)](_0x49d3bc+_0x2f04a8[_0x3494b5(0x132)]);const _0x53353e='<'+_0x3cdeda[_0x3494b5(0x136)]+_0x3494b5(0x13e)+_0x3cdeda[_0x3494b5(0x136)]+_0x3494b5(0xf8),_0x2dca5b=_0x3857bd[_0x3494b5(0x146)](_0x53353e);_0x3857bd=_0x3857bd[_0x3494b5(0x133)](0x0,_0x2dca5b)+_0x3857bd[_0x3494b5(0x133)](_0x2dca5b+_0x53353e[_0x3494b5(0x132)]),_0xdd09b5[_0x3494b5(0x114)]({'markerName':_0x3cdeda[_0x3494b5(0x136)],'start':_0x49d3bc,'end':_0x2dca5b,'htmlFragment':_0x3857bd[_0x3494b5(0x133)](_0x49d3bc,_0x2dca5b)});}return{'content':_0x3857bd,'version':_0x3a348a[_0x3494b5(0xfe)][_0x3494b5(0xe4)][_0x3494b5(0x143)],'sessionId':this[_0x3494b5(0xdb)],'selections':_0xdd09b5};}async[_0x4dd393(0x125)](){const _0x49fc4f=_0x4dd393;this[_0x49fc4f(0x110)]instanceof _0x1c152e?this[_0x49fc4f(0xea)](this[_0x49fc4f(0x110)]):this[_0x49fc4f(0x11c)](this[_0x49fc4f(0x110)][_0x49fc4f(0x10e)],_0x49fc4f(0x13f),(_0x11a068,_0x2be589)=>{const _0x291db0=_0x49fc4f;_0x2be589['on'](_0x291db0(0x149),()=>{const _0x15d76e=_0x291db0;this[_0x15d76e(0xea)](_0x2be589);});});}[_0x4dd393(0xe5)](_0x18b7a1){const _0x5bc00e=_0x4dd393;this[_0x5bc00e(0x12c)]=_0x18b7a1;}async[_0x4dd393(0xed)](_0x94925b){const _0x261ee1=_0x4dd393;let _0x188d6d;const _0x35af04=_0x1cc823(this[_0x261ee1(0x110)]);if(this[_0x261ee1(0x12c)]){const _0x11cde3=_0x35af04[_0x261ee1(0x100)][_0x261ee1(0xf9)][_0x261ee1(0x13c)][_0x261ee1(0x14e)](_0x94925b),_0x1376b4=await this[_0x261ee1(0x12c)](_0x11cde3);_0x188d6d=_0x35af04[_0x261ee1(0x100)][_0x261ee1(0xf9)][_0x261ee1(0xf4)][_0x261ee1(0x14d)](_0x1376b4);}else _0x188d6d=_0x35af04[_0x261ee1(0x100)][_0x261ee1(0xf9)][_0x261ee1(0x131)](_0x94925b);return _0x188d6d;}[_0x4dd393(0xea)](_0x290ed9){const _0x4bdc17=_0x4dd393;_0x290ed9[_0x4bdc17(0x118)][_0x4bdc17(0xfd)](_0x4bdc17(0x115))[_0x4bdc17(0xfc)]({'model':_0x4bdc17(0x145),'view':{'classes':[_0x4bdc17(0x140),_0x4bdc17(0x111)],'priority':0xc}}),_0x290ed9[_0x4bdc17(0x118)][_0x4bdc17(0xfd)](_0x4bdc17(0x113))[_0x4bdc17(0xdf)]({'model':_0x4bdc17(0x145),'view':(_0x3287ea,{writer:_0x43e203,options:_0x4d528b})=>_0x4d528b[_0x4bdc17(0x10c)]?_0x43e203[_0x4bdc17(0x119)](_0x3287ea[_0x4bdc17(0x120)]+':'+(_0x3287ea[_0x4bdc17(0x12b)]?_0x4bdc17(0x10b):_0x4bdc17(0x102))):null});}[_0x4dd393(0x127)](_0x422952,_0x476dbc,_0x495020=!0x1,_0x239a08=!0x1){const _0xb4b89c=_0x4dd393;if(this[_0xb4b89c(0xf5)]&&!_0x239a08)return!0x1;const _0x1811aa=_0x1cc823(this[_0xb4b89c(0x110)])[_0xb4b89c(0xfe)];return _0x1811aa[_0xb4b89c(0x130)](_0x7ee61=>{const _0x2b62d0=_0xb4b89c;this[_0x2b62d0(0x147)]&&this[_0x2b62d0(0x134)](this[_0x2b62d0(0x147)]),this[_0x2b62d0(0x147)]=_0x476dbc,this[_0x2b62d0(0xf5)]=_0x495020;let _0x51db61=0x0;for(let _0x28bc9c of _0x422952){const _0x5b4383=_0x2b62d0(0x12e)+_0x51db61;if(_0x28bc9c[_0x2b62d0(0x10b)][_0x2b62d0(0x129)]){const _0x885963=_0x28bc9c[_0x2b62d0(0x10b)][_0x2b62d0(0xde)](({item:_0xe52266})=>!_0x1811aa[_0x2b62d0(0x11e)][_0x2b62d0(0x141)](_0xe52266),{'boundaries':_0x28bc9c});_0x28bc9c=_0x7ee61[_0x2b62d0(0x124)](_0x885963,_0x28bc9c[_0x2b62d0(0x102)]);}_0x7ee61[_0x2b62d0(0xda)](_0x5b4383,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x28bc9c}),_0x51db61++;}}),window[_0xb4b89c(0x112)]()?.[_0xb4b89c(0x13a)](),!0x0;}[_0x4dd393(0x134)](_0x374841){const _0x262813=_0x4dd393;if(this[_0x262813(0x147)]!=_0x374841)return!0x1;this[_0x262813(0x147)]=null,this[_0x262813(0xf5)]=!0x1;const _0x2316a3=_0x1cc823(this[_0x262813(0x110)]),_0x192b44=_0x2316a3[_0x262813(0xfe)][_0x262813(0xe3)][_0x262813(0xeb)](_0x262813(0x145));return _0x2316a3[_0x262813(0xfe)][_0x262813(0x130)](_0x23341b=>{const _0x28f626=_0x262813;for(const _0x31bed9 of _0x192b44)_0x23341b[_0x28f626(0x117)](_0x31bed9);}),!0x0;}async[_0x4dd393(0xfb)](_0x192211){const _0x402c96=_0x4dd393,_0x3bf3e7=_0x1cc823(this[_0x402c96(0x110)]),_0x4f0507=_0x3bf3e7[_0x402c96(0x100)][_0x402c96(0x12d)](_0x192211),_0x25751a=new _0x58b373(_0x3bf3e7[_0x402c96(0xf7)][_0x402c96(0x10a)][_0x402c96(0xe4)]);return this[_0x402c96(0x135)](_0x4f0507,_0x25751a),this[_0x402c96(0xed)](_0x4f0507);}[_0x4dd393(0x135)](_0x52967f,_0x1223d5){const _0x100625=_0x4dd393;let _0x2685ec=!0x1;const _0x3925cc=new Set();for(const _0x1351df of _0x52967f[_0x100625(0x116)]()){const _0x1e9378=_0x1351df['is'](_0x100625(0x106))||_0x1351df['is'](_0x100625(0xff));if(!_0x1351df['is'](_0x100625(0x144)))continue;(this[_0x100625(0x135)](_0x1351df,_0x1223d5)||_0x1e9378)&&(_0x1223d5[_0x100625(0x13b)](_0x100625(0x14c),this[_0x100625(0xef)](_0x3925cc),_0x1351df),_0x2685ec=!0x0);}return _0x2685ec;}[_0x4dd393(0xef)](_0x47cf4a){const _0x1d8a77=_0x4dd393;let _0x47cefd;do{_0x47cefd='';for(let _0x4f3aec=0x0;_0x4f3aec<0x4;_0x4f3aec++)_0x47cefd+=String[_0x1d8a77(0x11f)](0x61+Math[_0x1d8a77(0xdc)](0x1a*Math[_0x1d8a77(0x14b)]()));}while(_0x47cf4a[_0x1d8a77(0xe0)](_0x47cefd));return _0x47cf4a[_0x1d8a77(0x13f)](_0x47cefd),_0x47cefd;}[_0x4dd393(0xee)](){const _0xf90b50=_0x4dd393,{model:_0x1b4770}=_0x1cc823(this[_0xf90b50(0x110)]),_0x3a03d5=_0x1b4770[_0xf90b50(0xe4)][_0xf90b50(0xec)],_0x5f0638=[];for(const _0x45d786 of _0x3a03d5[_0xf90b50(0x105)]())for(const _0x17bd79 of _0x45d786[_0xf90b50(0x12f)]())_0x17bd79['is'](_0xf90b50(0xe7))?_0x5f0638[_0xf90b50(0x114)](_0x17bd79[_0xf90b50(0x100)]):_0x17bd79['is'](_0xf90b50(0x144))&&_0x5f0638[_0xf90b50(0x132)]>0x0&&'\x20'!==_0x5f0638[_0x5f0638[_0xf90b50(0x132)]-0x1]&&_0x5f0638[_0xf90b50(0x114)]('\x20');return _0x5f0638[_0xf90b50(0x132)]?'\x22'+_0x5f0638[_0xf90b50(0xf0)]('')[_0xf90b50(0x108)]()+'\x22':_0x8fed0d(this[_0xf90b50(0x110)][_0xf90b50(0x126)],_0xf90b50(0x14a));}[_0x4dd393(0x11a)](){const _0x5b9d85=_0x4dd393,_0x4747f4=_0x1cc823(this[_0x5b9d85(0x110)])[_0x5b9d85(0xfe)];return Array[_0x5b9d85(0x123)](_0x4747f4[_0x5b9d85(0xe3)][_0x5b9d85(0xeb)](_0x5b9d85(0x145)))[_0x5b9d85(0xfa)]((_0x50bdf5,_0x283ec5)=>_0x50bdf5[_0x5b9d85(0xe8)]()[_0x5b9d85(0x11b)](_0x283ec5[_0x5b9d85(0xe8)]())?-0x1:_0x50bdf5[_0x5b9d85(0xe8)]()[_0x5b9d85(0x128)](_0x283ec5[_0x5b9d85(0xe8)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bec5f=_0x3546;(function(_0x3d5816,_0x5eedea){const _0x1206ed=_0x3546,_0x2e1546=_0x3d5816();while(!![]){try{const _0x18378c=-parseInt(_0x1206ed(0xf5))/0x1*(-parseInt(_0x1206ed(0xed))/0x2)+parseInt(_0x1206ed(0xf0))/0x3+parseInt(_0x1206ed(0xff))/0x4+-parseInt(_0x1206ed(0xf8))/0x5*(parseInt(_0x1206ed(0xe6))/0x6)+-parseInt(_0x1206ed(0xfe))/0x7*(parseInt(_0x1206ed(0xe5))/0x8)+-parseInt(_0x1206ed(0xec))/0x9*(parseInt(_0x1206ed(0xf4))/0xa)+parseInt(_0x1206ed(0xfc))/0xb*(parseInt(_0x1206ed(0xeb))/0xc);if(_0x18378c===_0x5eedea)break;else _0x2e1546['push'](_0x2e1546['shift']());}catch(_0x482b2d){_0x2e1546['push'](_0x2e1546['shift']());}}}(_0x4e35,0xab327));import{EmitterMixin as _0x1d2077}from'ckeditor5/src/utils.js';function _0x3546(_0x621a1b,_0x24a0d1){const _0x4e3583=_0x4e35();return _0x3546=function(_0x35463f,_0x1f043f){_0x35463f=_0x35463f-0xe5;let _0x3f1fcd=_0x4e3583[_0x35463f];return _0x3f1fcd;},_0x3546(_0x621a1b,_0x24a0d1);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x1bec5f(0xfd)];function _0x4e35(){const _0x3ff806=['7961VBpXeW','setWebSearch','webSearch','76565FYtiAB','_isReasoningEnabled','getCapabilitiesConfig','init','14175843UULPsB','capabilitiesUpdated','290003DLkWNk','3398520JbCARb','reasoning','240BviPYg','186FpuOJv','reset','isWebSearchEnabled','setReasoning','getCapabilitiesRequestData','12JugzjB','79578AJMeNL','126XXhqDk','fire','_isWebSearchEnabled','663030XlYxgL','isReasoningEnabled','toggleReasoning','toggleWebSearch','500SfKPEf'];_0x4e35=function(){return _0x3ff806;};return _0x4e35();}export class AICapabilities extends _0x1d2077(){[_0x1bec5f(0xef)];[_0x1bec5f(0xf9)];constructor(){const _0x13ae19=_0x1bec5f;super(),this[_0x13ae19(0xef)]=!0x1,this[_0x13ae19(0xf9)]=!0x1;}[_0x1bec5f(0xfb)](){const _0x5a3250=_0x1bec5f;this[_0x5a3250(0xe7)]();}[_0x1bec5f(0xe7)](){const _0x21402f=_0x1bec5f;this[_0x21402f(0xf6)](!0x1),this[_0x21402f(0xe9)](!0x1);}[_0x1bec5f(0xfa)](){const _0x4308f2=_0x1bec5f;return{'isWebSearchEnabled':this[_0x4308f2(0xef)],'isReasoningEnabled':this[_0x4308f2(0xf9)]};}static[_0x1bec5f(0xea)](_0x3e22a1){const _0x2066d0=_0x1bec5f,_0x3c874b={};return _0x3e22a1&&_0x3e22a1[_0x2066d0(0xe8)]&&(_0x3c874b[_0x2066d0(0xf7)]={}),_0x3e22a1&&_0x3e22a1[_0x2066d0(0xf1)]&&(_0x3c874b[_0x2066d0(0x100)]={}),_0x3c874b;}[_0x1bec5f(0xf3)](){const _0x29f62b=_0x1bec5f;this[_0x29f62b(0xf6)](!this[_0x29f62b(0xef)]);}[_0x1bec5f(0xf2)](){const _0x560039=_0x1bec5f;this[_0x560039(0xe9)](!this[_0x560039(0xf9)]);}[_0x1bec5f(0xf6)](_0x349ad5){const _0x1dfeb4=_0x1bec5f;_0x349ad5!==this[_0x1dfeb4(0xef)]&&(this[_0x1dfeb4(0xef)]=_0x349ad5,this[_0x1dfeb4(0xee)](_0x1dfeb4(0xfd),this[_0x1dfeb4(0xfa)]()));}[_0x1bec5f(0xe9)](_0x5eed06){const _0x38013f=_0x1bec5f;_0x5eed06!==this[_0x38013f(0xf9)]&&(this[_0x38013f(0xf9)]=_0x5eed06,this[_0x38013f(0xee)](_0x38013f(0xfd),this[_0x38013f(0xfa)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3a3158,_0x44c2b1){var _0x908c43=_0x5ce0,_0x43385e=_0x3a3158();while(!![]){try{var _0x4fd5ca=-parseInt(_0x908c43(0xed))/0x1+parseInt(_0x908c43(0xee))/0x2*(-parseInt(_0x908c43(0xea))/0x3)+parseInt(_0x908c43(0xe8))/0x4*(parseInt(_0x908c43(0xe6))/0x5)+-parseInt(_0x908c43(0xe9))/0x6+parseInt(_0x908c43(0xef))/0x7+parseInt(_0x908c43(0xfb))/0x8*(parseInt(_0x908c43(0xf5))/0x9)+-parseInt(_0x908c43(0xfa))/0xa*(-parseInt(_0x908c43(0xe5))/0xb);if(_0x4fd5ca===_0x44c2b1)break;else _0x43385e['push'](_0x43385e['shift']());}catch(_0x4533a0){_0x43385e['push'](_0x43385e['shift']());}}}(_0xace4,0x62d0a));function _0xace4(){var _0x273e8a=['URL','SELECTION','481671obQpNR','DOCUMENT','markdown','HTML','MARKDOWN','10gMAnkQ','80qQjEIG','FILE','document','selection','TEXT','6179591VKAJpH','160910PBVGlY','html','20AZMZpL','1036140JoXHZI','393429rxYUyL','file','text','661114bzjnCv','4QSFwOh','1700685IBMBVi','mcp-tool-context','TOOL','web-resource'];_0xace4=function(){return _0x273e8a;};return _0xace4();}export var AIContextItemType;!function(_0xbd3c12){var _0x18580c=_0x5ce0;_0xbd3c12[_0x18580c(0xf1)]=_0x18580c(0xf0),_0xbd3c12[_0x18580c(0xfc)]=_0x18580c(0xeb),_0xbd3c12[_0x18580c(0xf6)]=_0x18580c(0xe2),_0xbd3c12[_0x18580c(0xf3)]=_0x18580c(0xf2),_0xbd3c12[_0x18580c(0xe4)]=_0x18580c(0xec),_0xbd3c12[_0x18580c(0xf4)]=_0x18580c(0xe3);}(AIContextItemType||(AIContextItemType={}));function _0x5ce0(_0x13356a,_0x35861f){var _0xace421=_0xace4();return _0x5ce0=function(_0x5ce086,_0x42bc5d){_0x5ce086=_0x5ce086-0xe2;var _0x57dfdc=_0xace421[_0x5ce086];return _0x57dfdc;},_0x5ce0(_0x13356a,_0x35861f);}export var AIContextTextResourceType;!function(_0xe9d876){var _0x27af87=_0x5ce0;_0xe9d876[_0x27af87(0xe4)]=_0x27af87(0xec),_0xe9d876[_0x27af87(0xf9)]=_0x27af87(0xf7),_0xe9d876[_0x27af87(0xf8)]=_0x27af87(0xe7);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|