@ckeditor/ckeditor5-ai 47.7.3 → 47.7.4
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 +16 -16
- 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.d.ts +21 -14
- 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,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x51a979=_0x5934;(function(_0x367b70,_0x159439){const _0xb1da4c=_0x5934,_0x156643=_0x367b70();while(!![]){try{const _0x3e7a72=-parseInt(_0xb1da4c(0x1b1))/0x1+-parseInt(_0xb1da4c(0x1e8))/0x2+-parseInt(_0xb1da4c(0x1b4))/0x3*(-parseInt(_0xb1da4c(0x1cc))/0x4)+parseInt(_0xb1da4c(0x1ed))/0x5*(parseInt(_0xb1da4c(0x18e))/0x6)+parseInt(_0xb1da4c(0x1c1))/0x7*(-parseInt(_0xb1da4c(0x1a8))/0x8)+-parseInt(_0xb1da4c(0x1f6))/0x9*(-parseInt(_0xb1da4c(0x18a))/0xa)+parseInt(_0xb1da4c(0x19d))/0xb;if(_0x3e7a72===_0x159439)break;else _0x156643['push'](_0x156643['shift']());}catch(_0x3b9ae1){_0x156643['push'](_0x156643['shift']());}}}(_0x15ee,0xe18be));import{createParser as _0x1dad0c}from'eventsource-parser';import{ContextPlugin as _0x18a2c8}from'ckeditor5/src/core.js';function _0x5934(_0x2d1dff,_0x3b646a){const _0x15eef9=_0x15ee();return _0x5934=function(_0x59342c,_0x5d4e19){_0x59342c=_0x59342c-0x161;let _0x3e9dfa=_0x15eef9[_0x59342c];return _0x3e9dfa;},_0x5934(_0x2d1dff,_0x3b646a);}import{CKEditorError as _0x6236a7}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x15ee(){const _0x216b9e=['upsertCustomAIReviewRating','1023711wZYyAW','/ratings','stringify','1254xxroET','_getStreamReader','/messages','toString','requires','/messages/','context','executeAction','language','executeCustomAction','positiveCount','limit','length','4963PFDGTc','getReader','items','/reviews/custom/calls/','startConversation','deleteWebResource','order','/models/1?','define','status','_token','6992HGmhXl','abortController','PATCH','upsertAIChatRating','ai.serviceUrl','https://ai.cke-cs.com/v1','deleteConversation','_apiUrl','excludeEmpty','/documents/','isPremiumPlugin','_handleError','then','modificationId','data','Bearer\x20','createdAt','/conversations/','CloudServices','upsertCustomAIActionRating','PUT','releaseLock','DELETE','fix-grammar','deleteFile','/actions/custom/calls','MAKE_SHORTER','improve-writing','3332182vwTQbl','updateConversation','GET','upsertAIReviewRating','catch','2392585YuVTbf','sortBy','/documents','desc','push','decode','_decoder','signal','totalCount','23175MdjEDC','100','MAKE_TONE_FORMAL','request','/web-resources','/reviews/custom/calls','fetchConversations','/actions/system/','TRANSLATE','fetchConversationMessages','true','value','parse','pluginName','FIX_GRAMMAR','application/json','group','upsertAIActionRating','message','append','/calls','_sendApiRequest','reset','plugins','/calls/','CONTINUE','body','translate','text','ai-request-aborted','/conversations?','traceId','name','callSystemReview','ai-missing-token','/reviews/system/','make-tone-formal','statusText','fetchConversation','init','AIConnector','deleteDocument','3850ZfyYom','code','false','get','6vLLySB','AbortError','make-shorter','token','callCustomReview','/web-resources/','Content-Type','uploadUrl','make-tone-casual','continue','read','MAKE_LONGER','/files','fetchDocument','config','29823893qSuNOA','/files/','isOfficialPlugin','queryAssistant','feed','getModels','ai-request-failed','uploadDocument','uploadFile','make-longer','IMPROVE_WRITING','14648YVRjhW','/conversations','/actions/custom/calls/','attributes','json','MAKE_TONE_CASUAL','POST','file'];_0x15ee=function(){return _0x216b9e;};return _0x15ee();}!function(_0xe9e7c8){const _0x21e836=_0x5934;_0xe9e7c8[_0x21e836(0x179)]=_0x21e836(0x197),_0xe9e7c8[_0x21e836(0x16e)]=_0x21e836(0x1e3),_0xe9e7c8[_0x21e836(0x1a7)]=_0x21e836(0x1e7),_0xe9e7c8[_0x21e836(0x199)]=_0x21e836(0x1a6),_0xe9e7c8[_0x21e836(0x1e6)]=_0x21e836(0x190),_0xe9e7c8[_0x21e836(0x1ad)]=_0x21e836(0x196),_0xe9e7c8[_0x21e836(0x162)]=_0x21e836(0x184),_0xe9e7c8[_0x21e836(0x168)]=_0x21e836(0x17b);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x18a2c8{[_0x51a979(0x1d3)];[_0x51a979(0x1cb)];[_0x51a979(0x1f3)];static get[_0x51a979(0x1b8)](){const _0x169dcc=_0x51a979;return[_0x169dcc(0x1de)];}static get[_0x51a979(0x16d)](){const _0x14b70b=_0x51a979;return _0x14b70b(0x188);}static get[_0x51a979(0x19f)](){return!0x0;}static get[_0x51a979(0x1d6)](){return!0x0;}constructor(_0x1e15f3){const _0x5b12f0=_0x51a979;super(_0x1e15f3),this[_0x5b12f0(0x1ba)][_0x5b12f0(0x19c)][_0x5b12f0(0x1c9)](_0x5b12f0(0x1d0),_0x5b12f0(0x1d1)),this[_0x5b12f0(0x1d3)]=this[_0x5b12f0(0x1ba)][_0x5b12f0(0x19c)][_0x5b12f0(0x18d)](_0x5b12f0(0x1d0)),this[_0x5b12f0(0x1cb)]=null,this[_0x5b12f0(0x1f3)]=new TextDecoder();}[_0x51a979(0x187)](){const _0x17fd89=_0x51a979,_0x24aea6=this[_0x17fd89(0x1ba)][_0x17fd89(0x177)][_0x17fd89(0x18d)](_0x17fd89(0x1de));if(!_0x24aea6[_0x17fd89(0x191)])throw new _0x6236a7(_0x17fd89(0x182),this);this[_0x17fd89(0x1cb)]=_0x24aea6[_0x17fd89(0x191)];}[_0x51a979(0x1c5)](_0x3054c4,_0x4ca337){const _0x30768b=_0x51a979,_0x131f13=this[_0x30768b(0x175)](_0x30768b(0x1a9),_0x30768b(0x1ae),{'id':_0x3054c4,'group':_0x4ca337});return{'getConversation':async()=>(await _0x131f13[_0x30768b(0x163)])[_0x30768b(0x1ac)](),'abortController':_0x131f13[_0x30768b(0x1cd)]};}[_0x51a979(0x1a0)]({message:_0xb1f742,conversationId:_0x4d177c,parts:_0x5f0d41,capabilities:_0x416ab8,model:_0xebc027,attributes:_0x5d066f}){const _0x5d92b1=_0x51a979,_0x373407={'prompt':_0xb1f742,'content':_0x5f0d41,'model':_0xebc027,..._0x416ab8&&{'capabilities':_0x416ab8},..._0x5d066f&&{'attributes':_0x5d066f}},_0x1d97e3=this[_0x5d92b1(0x175)](_0x5d92b1(0x1dd)+_0x4d177c+_0x5d92b1(0x1b6),_0x5d92b1(0x1ae),_0x373407);return{'getStream':async()=>{const _0xee9b2a=_0x5d92b1,_0x2905cf=(await _0x1d97e3[_0xee9b2a(0x163)])[_0xee9b2a(0x17a)];return this[_0xee9b2a(0x1b5)](_0x2905cf);},'abortController':_0x1d97e3[_0x5d92b1(0x1cd)]};}[_0x51a979(0x1bd)]({content:_0x184cab,message:_0x15f148,model:_0x4304f8,outputFormat:_0x5daf9c}){const _0x1706d2=_0x51a979,_0x2363c9={'content':[{'type':_0x1706d2(0x17c),'content':_0x184cab}],'prompt':_0x15f148,'model':_0x4304f8,'outputFormat':_0x5daf9c},_0x23f82c=this[_0x1706d2(0x175)](_0x1706d2(0x1e5),_0x1706d2(0x1ae),_0x2363c9);return{'getStream':async()=>{const _0x1385ec=_0x1706d2,_0x517d07=(await _0x23f82c[_0x1385ec(0x163)])[_0x1385ec(0x17a)];return this[_0x1385ec(0x1b5)](_0x517d07);},'abortController':_0x23f82c[_0x1706d2(0x1cd)]};}[_0x51a979(0x1bb)]({actionName:_0x553bb3,content:_0x473237,args:_0x1e1243}){const _0x3bdd89=_0x51a979,_0x1200f6={'content':[{'type':_0x3bdd89(0x17c),'content':_0x473237}],'args':_0x1e1243},_0x1a64d9=this[_0x3bdd89(0x175)](_0x3bdd89(0x167)+_0x553bb3+_0x3bdd89(0x174),_0x3bdd89(0x1ae),_0x1200f6);return{'getStream':async()=>{const _0x4e70c8=_0x3bdd89,_0xf3c548=(await _0x1a64d9[_0x4e70c8(0x163)])[_0x4e70c8(0x17a)];return this[_0x4e70c8(0x1b5)](_0xf3c548);},'abortController':_0x1a64d9[_0x3bdd89(0x1cd)]};}[_0x51a979(0x1a5)](_0x10adb1,_0x24fe6d,_0x393f75){const _0x16483e=_0x51a979,_0x3c3c72=new FormData();_0x3c3c72[_0x16483e(0x173)](_0x16483e(0x1af),_0x24fe6d,_0x24fe6d[_0x16483e(0x180)]),_0x393f75&&_0x3c3c72[_0x16483e(0x173)](_0x16483e(0x1ab),JSON[_0x16483e(0x1b3)](_0x393f75));const _0x238460=this[_0x16483e(0x175)](_0x16483e(0x1dd)+_0x10adb1+_0x16483e(0x19a),_0x16483e(0x1ae),_0x3c3c72);return{'getId':async()=>(await _0x238460[_0x16483e(0x163)])[_0x16483e(0x1ac)](),'abortController':_0x238460[_0x16483e(0x1cd)]};}[_0x51a979(0x19b)](_0x2e04b8,_0x40d54d){const _0x3a3d8f=_0x51a979,_0xb7feb4=this[_0x3a3d8f(0x175)](_0x3a3d8f(0x1dd)+_0x2e04b8+_0x3a3d8f(0x1d5)+_0x40d54d,_0x3a3d8f(0x1ea));return{'getDocument':async()=>(await _0xb7feb4[_0x3a3d8f(0x163)])[_0x3a3d8f(0x1ac)](),'abortController':_0xb7feb4[_0x3a3d8f(0x1cd)]};}[_0x51a979(0x1a4)](_0x1c455e,_0x360c77,_0x11d58a){const _0x414791=_0x51a979,_0x57db76={'content':_0x360c77};_0x11d58a&&(_0x57db76[_0x414791(0x1ab)]=_0x11d58a);const _0x309bff=this[_0x414791(0x175)](_0x414791(0x1dd)+_0x1c455e+_0x414791(0x1ef),_0x414791(0x1ae),_0x57db76);return{'getId':async()=>(await _0x309bff[_0x414791(0x163)])[_0x414791(0x1ac)](),'abortController':_0x309bff[_0x414791(0x1cd)]};}[_0x51a979(0x166)](_0x322457,_0x36de7a={}){const _0xebd046=_0x51a979,_0x37eec6=new URLSearchParams();_0x37eec6[_0xebd046(0x173)](_0xebd046(0x170),_0x322457),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1d4),!0x1!==_0x36de7a[_0xebd046(0x1d4)]?_0xebd046(0x16a):_0xebd046(0x18c)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1bf),_0x36de7a[_0xebd046(0x1bf)]?_0x36de7a[_0xebd046(0x1bf)][_0xebd046(0x1b7)]():_0xebd046(0x161)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1ee),_0x36de7a[_0xebd046(0x1ee)]?_0x36de7a[_0xebd046(0x1ee)]:_0xebd046(0x1dc)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1c7),_0x36de7a[_0xebd046(0x1c7)]?_0x36de7a[_0xebd046(0x1c7)]:_0xebd046(0x1f0));const _0x21c34d=this[_0xebd046(0x175)](_0xebd046(0x17e)+_0x37eec6[_0xebd046(0x1b7)](),_0xebd046(0x1ea));return{'getConversations':async()=>{const _0x25a7d5=_0xebd046,_0xcffb30=await _0x21c34d[_0x25a7d5(0x163)];return(await _0xcffb30[_0x25a7d5(0x1ac)]())[_0x25a7d5(0x1c3)];},'abortController':_0x21c34d[_0xebd046(0x1cd)]};}[_0x51a979(0x1d2)](_0x34ec75){const _0x230f80=_0x51a979,_0x38f15e=this[_0x230f80(0x175)](_0x230f80(0x1dd)+_0x34ec75,_0x230f80(0x1e2));return{'execute':async()=>{const _0x483b8c=_0x230f80;await _0x38f15e[_0x483b8c(0x163)];},'abortController':_0x38f15e[_0x230f80(0x1cd)]};}[_0x51a979(0x1e9)](_0x5171e4,_0x40e02a){const _0x12cc88=_0x51a979,_0x2f79e4=this[_0x12cc88(0x175)](_0x12cc88(0x1dd)+_0x5171e4,_0x12cc88(0x1ce),_0x40e02a);return{'getResult':async()=>(await _0x2f79e4[_0x12cc88(0x163)],_0x40e02a),'abortController':_0x2f79e4[_0x12cc88(0x1cd)]};}[_0x51a979(0x186)](_0x230bfa){const _0xbbcd55=_0x51a979,_0x571848=this[_0xbbcd55(0x175)](_0xbbcd55(0x1dd)+_0x230bfa,_0xbbcd55(0x1ea));return{'getConversation':async()=>(await _0x571848[_0xbbcd55(0x163)])[_0xbbcd55(0x1ac)](),'abortController':_0x571848[_0xbbcd55(0x1cd)]};}[_0x51a979(0x169)](_0x16385e){const _0x4b2230=_0x51a979,_0x19f277=this[_0x4b2230(0x175)](_0x4b2230(0x1dd)+_0x16385e+_0x4b2230(0x1b6),_0x4b2230(0x1ea));return{'getMessages':async()=>{const _0x37a0af=_0x4b2230,_0x2e1483=await _0x19f277[_0x37a0af(0x163)];return(await _0x2e1483[_0x37a0af(0x1ac)]())[_0x37a0af(0x1c3)];},'abortController':_0x19f277[_0x4b2230(0x1cd)]};}[_0x51a979(0x195)](_0x4bf794,_0x2a9206,_0x152465){const _0x56fe4f=_0x51a979,_0x8ad5df=this[_0x56fe4f(0x175)](_0x56fe4f(0x1dd)+_0x4bf794+_0x56fe4f(0x164),_0x56fe4f(0x1ae),{'url':_0x2a9206,'attributes':_0x152465});return{'getId':async()=>(await _0x8ad5df[_0x56fe4f(0x163)])[_0x56fe4f(0x1ac)](),'abortController':_0x8ad5df[_0x56fe4f(0x1cd)]};}[_0x51a979(0x1a2)](_0x2f8ec1='en'){const _0x5a184d=_0x51a979,_0x1008fb=new URLSearchParams();_0x1008fb[_0x5a184d(0x173)](_0x5a184d(0x1bc),_0x2f8ec1);const _0x414fc2=_0x5a184d(0x1c8)+_0x1008fb[_0x5a184d(0x1b7)](),_0x23bb57=this[_0x5a184d(0x175)](_0x414fc2,_0x5a184d(0x1ea));return{'list':async()=>await(await _0x23bb57[_0x5a184d(0x163)])[_0x5a184d(0x1ac)](),'abortController':_0x23bb57[_0x5a184d(0x1cd)]};}[_0x51a979(0x1e4)](_0x1518ca,_0x1f4cdc){const _0x1e0d78=_0x51a979,_0x3b6da3=this[_0x1e0d78(0x175)](_0x1e0d78(0x1dd)+_0x1518ca+_0x1e0d78(0x19e)+_0x1f4cdc,_0x1e0d78(0x1e2));return{'execute':async()=>{const _0x5bf3f5=_0x1e0d78;await _0x3b6da3[_0x5bf3f5(0x163)];},'abortController':_0x3b6da3[_0x1e0d78(0x1cd)]};}[_0x51a979(0x189)](_0x44f461,_0x3ca203){const _0x184450=_0x51a979,_0x1fedbd=this[_0x184450(0x175)](_0x184450(0x1dd)+_0x44f461+_0x184450(0x1d5)+_0x3ca203,_0x184450(0x1e2));return{'execute':async()=>{const _0x40f819=_0x184450;await _0x1fedbd[_0x40f819(0x163)];},'abortController':_0x1fedbd[_0x184450(0x1cd)]};}[_0x51a979(0x1c6)](_0x57fcf7,_0x286fc0){const _0x1a1dd5=_0x51a979,_0x3c9793=this[_0x1a1dd5(0x175)](_0x1a1dd5(0x1dd)+_0x57fcf7+_0x1a1dd5(0x193)+_0x286fc0,_0x1a1dd5(0x1e2));return{'execute':async()=>{const _0x48527d=_0x1a1dd5;await _0x3c9793[_0x48527d(0x163)];},'abortController':_0x3c9793[_0x1a1dd5(0x1cd)]};}[_0x51a979(0x181)]({reviewName:_0x2272bc,content:_0x2eb7eb,args:_0x4fa216}){const _0xa0a48a=_0x51a979,_0x374c8e=this[_0xa0a48a(0x175)](_0xa0a48a(0x183)+_0x2272bc+_0xa0a48a(0x174),_0xa0a48a(0x1ae),{'content':[{'type':_0xa0a48a(0x17c),'content':_0x2eb7eb}],'args':_0x4fa216});return{'getStream':async()=>{const _0x2ed169=_0xa0a48a,_0x592a6d=(await _0x374c8e[_0x2ed169(0x163)])[_0x2ed169(0x17a)];return this[_0x2ed169(0x1b5)](_0x592a6d);},'abortController':_0x374c8e[_0xa0a48a(0x1cd)]};}[_0x51a979(0x192)]({content:_0xadd4ad,prompt:_0x5b2aaf,model:_0x55f94a}){const _0x3b50c2=_0x51a979,_0x42e4fc=this[_0x3b50c2(0x175)](_0x3b50c2(0x165),_0x3b50c2(0x1ae),{'content':[{'type':_0x3b50c2(0x17c),'content':_0xadd4ad}],'prompt':_0x5b2aaf,'model':_0x55f94a});return{'getStream':async()=>{const _0x1f498a=_0x3b50c2,_0x506692=(await _0x42e4fc[_0x1f498a(0x163)])[_0x1f498a(0x17a)];return this[_0x1f498a(0x1b5)](_0x506692);},'abortController':_0x42e4fc[_0x3b50c2(0x1cd)]};}[_0x51a979(0x1cf)](_0x1f6428,_0xc9d82,_0x4dd759){const _0x4f6dbd=_0x51a979,_0x3b0746=this[_0x4f6dbd(0x175)](_0x4f6dbd(0x1dd)+_0x1f6428+_0x4f6dbd(0x1b9)+_0xc9d82+_0x4f6dbd(0x1b2),_0x4f6dbd(0x1e0),{'positiveCount':_0x4dd759[_0x4f6dbd(0x1be)],'totalCount':_0x4dd759[_0x4f6dbd(0x1f5)],'modificationId':_0x4dd759[_0x4f6dbd(0x1d9)]});return{'execute':async()=>{const _0x478fe2=_0x4f6dbd;await _0x3b0746[_0x478fe2(0x163)];},'abortController':_0x3b0746[_0x4f6dbd(0x1cd)]};}[_0x51a979(0x171)](_0x356e66,_0x35c621,_0x4a211b){const _0x7361a9=_0x51a979,_0x5eb86c=this[_0x7361a9(0x175)](_0x7361a9(0x167)+_0x356e66+_0x7361a9(0x178)+_0x35c621+_0x7361a9(0x1b2),_0x7361a9(0x1e0),{'positiveCount':_0x4a211b[_0x7361a9(0x1be)],'totalCount':_0x4a211b[_0x7361a9(0x1f5)]});return{'execute':async()=>{const _0x43986f=_0x7361a9;await _0x5eb86c[_0x43986f(0x163)];},'abortController':_0x5eb86c[_0x7361a9(0x1cd)]};}[_0x51a979(0x1df)](_0xa9ebbb,_0x2a59d2){const _0x55714a=_0x51a979,_0x1ea496=this[_0x55714a(0x175)](_0x55714a(0x1aa)+_0xa9ebbb+_0x55714a(0x1b2),_0x55714a(0x1e0),{'positiveCount':_0x2a59d2[_0x55714a(0x1be)],'totalCount':_0x2a59d2[_0x55714a(0x1f5)]});return{'execute':async()=>{const _0x21e929=_0x55714a;await _0x1ea496[_0x21e929(0x163)];},'abortController':_0x1ea496[_0x55714a(0x1cd)]};}[_0x51a979(0x1eb)](_0x5570b,_0x4a9213,_0x1ea9c5,_0x4ec3a2){const _0x57eaa5=_0x51a979,_0x13e086=this[_0x57eaa5(0x175)](_0x57eaa5(0x183)+_0x5570b+_0x57eaa5(0x178)+_0x4a9213+_0x57eaa5(0x1b2),_0x57eaa5(0x1e0),{'positiveCount':_0x1ea9c5[_0x57eaa5(0x1be)],'totalCount':_0x1ea9c5[_0x57eaa5(0x1f5)],'dataId':_0x4ec3a2});return{'execute':async()=>{const _0x3682c4=_0x57eaa5;await _0x13e086[_0x3682c4(0x163)];},'abortController':_0x13e086[_0x57eaa5(0x1cd)]};}[_0x51a979(0x1b0)](_0x4462d1,_0x3621b3,_0x11158b){const _0x3a15c=_0x51a979,_0x57d7ae=this[_0x3a15c(0x175)](_0x3a15c(0x1c4)+_0x4462d1+_0x3a15c(0x1b2),_0x3a15c(0x1e0),{'positiveCount':_0x3621b3[_0x3a15c(0x1be)],'totalCount':_0x3621b3[_0x3a15c(0x1f5)],'dataId':_0x11158b});return{'execute':async()=>{const _0x1e8a9f=_0x3a15c;await _0x57d7ae[_0x1e8a9f(0x163)];},'abortController':_0x57d7ae[_0x3a15c(0x1cd)]};}[_0x51a979(0x175)](_0x10a02e,_0x59a290,_0xc61fc6){const _0x1ed729=_0x51a979,_0x133428=new AbortController(),_0x13d4e5=_0xc61fc6 instanceof FormData,_0x172061={'Authorization':_0x1ed729(0x1db)+this[_0x1ed729(0x1cb)]?.[_0x1ed729(0x16b)]};_0xc61fc6&&!_0x13d4e5&&(_0x172061[_0x1ed729(0x194)]=_0x1ed729(0x16f));const _0x75aabc={'method':_0x59a290,'headers':_0x172061,'signal':_0x133428[_0x1ed729(0x1f4)]};return _0xc61fc6&&(_0x75aabc[_0x1ed729(0x17a)]=_0x13d4e5?_0xc61fc6:JSON[_0x1ed729(0x1b3)](_0xc61fc6)),{'request':fetch(''+this[_0x1ed729(0x1d3)]+_0x10a02e,_0x75aabc)[_0x1ed729(0x1ec)](_0x4954ed=>{const _0x3cff37=_0x1ed729;this[_0x3cff37(0x1d7)](_0x4954ed);})[_0x1ed729(0x1d8)](_0x298334=>_0x298334['ok']?_0x298334:_0x298334[_0x1ed729(0x1ac)]()[_0x1ed729(0x1d8)](_0x3b5a5b=>{const _0x5a5dcd=_0x1ed729;throw{'url':this[_0x5a5dcd(0x1d3)],'path':_0x10a02e,'method':_0x59a290,'body':_0xc61fc6,'status':(_0x298334||{})[_0x5a5dcd(0x1ca)],'statusText':(_0x298334||{})[_0x5a5dcd(0x185)],'code':_0x3b5a5b[_0x5a5dcd(0x18b)],'message':_0x3b5a5b[_0x5a5dcd(0x172)],'traceId':_0x3b5a5b[_0x5a5dcd(0x17f)]};})),'abortController':_0x133428};}async*[_0x51a979(0x1b5)](_0x5da348){const _0x2c6c41=_0x51a979,_0x3af080=[],_0x1ed799=_0x5da348[_0x2c6c41(0x1c2)](),_0x23fe86=_0x1dad0c({'onError':_0x24c3a5=>{const _0x50feea=_0x2c6c41;this[_0x50feea(0x1d7)](_0x24c3a5);},'onEvent':_0x5eebcb=>{const _0x3c3ed6=_0x2c6c41;_0x5eebcb[_0x3c3ed6(0x1da)]=JSON[_0x3c3ed6(0x16c)](_0x5eebcb[_0x3c3ed6(0x1da)]),_0x3af080[_0x3c3ed6(0x1f1)](_0x5eebcb);}});try{let _0x2658bc=!0x1;for(;!_0x2658bc;){const {done:_0x23912a,value:_0xfc45f7}=await _0x1ed799[_0x2c6c41(0x198)]();_0x23912a&&(_0x2658bc=!0x0),_0x23fe86[_0x2c6c41(0x1a1)](this[_0x2c6c41(0x1f3)][_0x2c6c41(0x1f2)](_0xfc45f7,{'stream':!0x0})),yield*_0x3af080,_0x3af080[_0x2c6c41(0x1c0)]=0x0;}}catch(_0x1ec7f7){this[_0x2c6c41(0x1d7)](_0x1ec7f7);}finally{_0x1ed799[_0x2c6c41(0x1e1)](),_0x23fe86[_0x2c6c41(0x176)]();}}[_0x51a979(0x1d7)](_0x49c020){const _0x2ceaef=_0x51a979;if(_0x49c020 instanceof _0x6236a7)throw _0x49c020;if(_0x49c020 instanceof Error&&_0x2ceaef(0x18f)===_0x49c020[_0x2ceaef(0x180)])throw new _0x6236a7(_0x2ceaef(0x17d),this,{'originalError':_0x49c020});throw new _0x6236a7(_0x2ceaef(0x1a3),this,{'originalError':_0x49c020});}}
|
|
23
|
+
function _0x17ed(){const _0x488a98=['2691543aMVzHW','message','uploadFile','upsertAIChatRating','stringify','getModels','/calls/','/reviews/custom/calls','translate','/conversations/','upsertCustomAIReviewRating','Content-Type','AbortError','/files/','code','make-longer','ai-request-failed','body','POST','parse','callSystemReview','group','4034560JasABJ','1695076cfNyUe','decode','name','deleteWebResource','fetchConversations','/models/1?','positiveCount','config','token','10szhXcj','upsertAIActionRating','statusText','_decoder','get','modificationId','continue','/files','requires','CloudServices','desc','isOfficialPlugin','ai-request-aborted','/web-resources','deleteFile','fix-grammar','toString','ai.serviceUrl','length','AIConnector','/ratings','context','/documents/','/reviews/system/','ai-missing-token','sortBy','catch','push','PUT','2305830wZvBaI','DELETE','init','/web-resources/','7829776FxNETV','application/json','/calls','true','releaseLock','abortController','read','https://ai.cke-cs.com/v1','_apiUrl','totalCount','value','executeCustomAction','TRANSLATE','upsertAIReviewRating','request','limit','items','attributes','createdAt','fetchDocument','/actions/system/','status','plugins','/actions/custom/calls/','define','_getStreamReader','isPremiumPlugin','updateConversation','file','/conversations?','traceId','CONTINUE','/messages','MAKE_LONGER','MAKE_SHORTER','make-tone-casual','text','uploadDocument','MAKE_TONE_FORMAL','executeAction','uploadUrl','IMPROVE_WRITING','/reviews/custom/calls/','FIX_GRAMMAR','upsertCustomAIActionRating','make-shorter','callCustomReview','_sendApiRequest','pluginName','21021219QdEJCR','fetchConversation','/actions/custom/calls','/documents','deleteDocument','startConversation','data','getReader','queryAssistant','then','order','/messages/','reset','json','_token','100','feed','append','/conversations','7pJuzhl','false','Bearer\x20','1vrbivr','language','PATCH','MAKE_TONE_CASUAL','signal','deleteConversation','fetchConversationMessages','improve-writing','excludeEmpty','1422366KADsIQ','GET','make-tone-formal','_handleError'];_0x17ed=function(){return _0x488a98;};return _0x17ed();}function _0xa1f8(_0x326371,_0x15b5df){const _0x17ed99=_0x17ed();return _0xa1f8=function(_0xa1f84d,_0x2fc761){_0xa1f84d=_0xa1f84d-0x1f4;let _0xad2218=_0x17ed99[_0xa1f84d];return _0xad2218;},_0xa1f8(_0x326371,_0x15b5df);}const _0x154e2e=_0xa1f8;(function(_0xb0c680,_0x27d4a7){const _0x231eff=_0xa1f8,_0xb264af=_0xb0c680();while(!![]){try{const _0x1faba3=parseInt(_0x231eff(0x208))/0x1*(-parseInt(_0x231eff(0x22c))/0x2)+parseInt(_0x231eff(0x215))/0x3+-parseInt(_0x231eff(0x22b))/0x4+parseInt(_0x231eff(0x252))/0x5+-parseInt(_0x231eff(0x211))/0x6+parseInt(_0x231eff(0x205))/0x7*(-parseInt(_0x231eff(0x256))/0x8)+-parseInt(_0x231eff(0x287))/0x9*(-parseInt(_0x231eff(0x235))/0xa);if(_0x1faba3===_0x27d4a7)break;else _0xb264af['push'](_0xb264af['shift']());}catch(_0x2dbc86){_0xb264af['push'](_0xb264af['shift']());}}}(_0x17ed,0x97dfd));import{createParser as _0xfdb986}from'eventsource-parser';import{ContextPlugin as _0x2f73e6}from'ckeditor5/src/core.js';import{CKEditorError as _0x56ce13}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x534215){const _0x41cfc4=_0xa1f8;_0x534215[_0x41cfc4(0x275)]=_0x41cfc4(0x23b),_0x534215[_0x41cfc4(0x281)]=_0x41cfc4(0x244),_0x534215[_0x41cfc4(0x27f)]=_0x41cfc4(0x20f),_0x534215[_0x41cfc4(0x277)]=_0x41cfc4(0x224),_0x534215[_0x41cfc4(0x278)]=_0x41cfc4(0x283),_0x534215[_0x41cfc4(0x20b)]=_0x41cfc4(0x279),_0x534215[_0x41cfc4(0x27c)]=_0x41cfc4(0x213),_0x534215[_0x41cfc4(0x262)]=_0x41cfc4(0x21d);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x2f73e6{[_0x154e2e(0x25e)];[_0x154e2e(0x200)];[_0x154e2e(0x238)];static get[_0x154e2e(0x23d)](){const _0xb36f2e=_0x154e2e;return[_0xb36f2e(0x23e)];}static get[_0x154e2e(0x286)](){const _0x3bf294=_0x154e2e;return _0x3bf294(0x248);}static get[_0x154e2e(0x240)](){return!0x0;}static get[_0x154e2e(0x270)](){return!0x0;}constructor(_0x2b238b){const _0x1e8068=_0x154e2e;super(_0x2b238b),this[_0x1e8068(0x24a)][_0x1e8068(0x233)][_0x1e8068(0x26e)](_0x1e8068(0x246),_0x1e8068(0x25d)),this[_0x1e8068(0x25e)]=this[_0x1e8068(0x24a)][_0x1e8068(0x233)][_0x1e8068(0x239)](_0x1e8068(0x246)),this[_0x1e8068(0x200)]=null,this[_0x1e8068(0x238)]=new TextDecoder();}[_0x154e2e(0x254)](){const _0x3ac557=_0x154e2e,_0x2dbec8=this[_0x3ac557(0x24a)][_0x3ac557(0x26c)][_0x3ac557(0x239)](_0x3ac557(0x23e));if(!_0x2dbec8[_0x3ac557(0x234)])throw new _0x56ce13(_0x3ac557(0x24d),this);this[_0x3ac557(0x200)]=_0x2dbec8[_0x3ac557(0x234)];}[_0x154e2e(0x1f7)](_0x274c44,_0x475c79){const _0x989b27=_0x154e2e,_0x50b915=this[_0x989b27(0x285)](_0x989b27(0x204),_0x989b27(0x227),{'id':_0x274c44,'group':_0x475c79});return{'getConversation':async()=>(await _0x50b915[_0x989b27(0x264)])[_0x989b27(0x1ff)](),'abortController':_0x50b915[_0x989b27(0x25b)]};}[_0x154e2e(0x1fa)]({message:_0x3afd9e,conversationId:_0x6cfdbd,parts:_0x3647b8,capabilities:_0x41a195,model:_0x778316,attributes:_0x59fdcb}){const _0x1eb729=_0x154e2e,_0x516deb={'prompt':_0x3afd9e,'content':_0x3647b8,'model':_0x778316,..._0x41a195&&{'capabilities':_0x41a195},..._0x59fdcb&&{'attributes':_0x59fdcb}},_0x1e5aff=this[_0x1eb729(0x285)](_0x1eb729(0x21e)+_0x6cfdbd+_0x1eb729(0x276),_0x1eb729(0x227),_0x516deb);return{'getStream':async()=>{const _0xb7706a=_0x1eb729,_0x3373e5=(await _0x1e5aff[_0xb7706a(0x264)])[_0xb7706a(0x226)];return this[_0xb7706a(0x26f)](_0x3373e5);},'abortController':_0x1e5aff[_0x1eb729(0x25b)]};}[_0x154e2e(0x261)]({content:_0x1ab38e,message:_0x427217,model:_0xb163b7,outputFormat:_0x151b89}){const _0x54ad2c=_0x154e2e,_0x1a4975={'content':[{'type':_0x54ad2c(0x27a),'content':_0x1ab38e}],'prompt':_0x427217,'model':_0xb163b7,'outputFormat':_0x151b89},_0x305f24=this[_0x54ad2c(0x285)](_0x54ad2c(0x1f4),_0x54ad2c(0x227),_0x1a4975);return{'getStream':async()=>{const _0x345cb8=_0x54ad2c,_0x5c6a04=(await _0x305f24[_0x345cb8(0x264)])[_0x345cb8(0x226)];return this[_0x345cb8(0x26f)](_0x5c6a04);},'abortController':_0x305f24[_0x54ad2c(0x25b)]};}[_0x154e2e(0x27d)]({actionName:_0x4ec561,content:_0xf0389f,args:_0x523110}){const _0x30d78e=_0x154e2e,_0x67523c={'content':[{'type':_0x30d78e(0x27a),'content':_0xf0389f}],'args':_0x523110},_0x5318fa=this[_0x30d78e(0x285)](_0x30d78e(0x26a)+_0x4ec561+_0x30d78e(0x258),_0x30d78e(0x227),_0x67523c);return{'getStream':async()=>{const _0x560240=_0x30d78e,_0x48bf2c=(await _0x5318fa[_0x560240(0x264)])[_0x560240(0x226)];return this[_0x560240(0x26f)](_0x48bf2c);},'abortController':_0x5318fa[_0x30d78e(0x25b)]};}[_0x154e2e(0x217)](_0x3202fd,_0x5380cd,_0x3b3aa4){const _0x311c1e=_0x154e2e,_0x2bb3f6=new FormData();_0x2bb3f6[_0x311c1e(0x203)](_0x311c1e(0x272),_0x5380cd,_0x5380cd[_0x311c1e(0x22e)]),_0x3b3aa4&&_0x2bb3f6[_0x311c1e(0x203)](_0x311c1e(0x267),JSON[_0x311c1e(0x219)](_0x3b3aa4));const _0x45d76a=this[_0x311c1e(0x285)](_0x311c1e(0x21e)+_0x3202fd+_0x311c1e(0x23c),_0x311c1e(0x227),_0x2bb3f6);return{'getId':async()=>(await _0x45d76a[_0x311c1e(0x264)])[_0x311c1e(0x1ff)](),'abortController':_0x45d76a[_0x311c1e(0x25b)]};}[_0x154e2e(0x269)](_0xf41bef,_0x133232){const _0x36f3a1=_0x154e2e,_0x29ddcf=this[_0x36f3a1(0x285)](_0x36f3a1(0x21e)+_0xf41bef+_0x36f3a1(0x24b)+_0x133232,_0x36f3a1(0x212));return{'getDocument':async()=>(await _0x29ddcf[_0x36f3a1(0x264)])[_0x36f3a1(0x1ff)](),'abortController':_0x29ddcf[_0x36f3a1(0x25b)]};}[_0x154e2e(0x27b)](_0x7dabbe,_0x510e9c,_0x5ed297){const _0xd59166=_0x154e2e,_0x8094a8={'content':_0x510e9c};_0x5ed297&&(_0x8094a8[_0xd59166(0x267)]=_0x5ed297);const _0x2186e1=this[_0xd59166(0x285)](_0xd59166(0x21e)+_0x7dabbe+_0xd59166(0x1f5),_0xd59166(0x227),_0x8094a8);return{'getId':async()=>(await _0x2186e1[_0xd59166(0x264)])[_0xd59166(0x1ff)](),'abortController':_0x2186e1[_0xd59166(0x25b)]};}[_0x154e2e(0x230)](_0x16cd57,_0x3ec070={}){const _0x3c0535=_0x154e2e,_0x5c0e55=new URLSearchParams();_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x22a),_0x16cd57),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x210),!0x1!==_0x3ec070[_0x3c0535(0x210)]?_0x3c0535(0x259):_0x3c0535(0x206)),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x265),_0x3ec070[_0x3c0535(0x265)]?_0x3ec070[_0x3c0535(0x265)][_0x3c0535(0x245)]():_0x3c0535(0x201)),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x24e),_0x3ec070[_0x3c0535(0x24e)]?_0x3ec070[_0x3c0535(0x24e)]:_0x3c0535(0x268)),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x1fc),_0x3ec070[_0x3c0535(0x1fc)]?_0x3ec070[_0x3c0535(0x1fc)]:_0x3c0535(0x23f));const _0x5b1af6=this[_0x3c0535(0x285)](_0x3c0535(0x273)+_0x5c0e55[_0x3c0535(0x245)](),_0x3c0535(0x212));return{'getConversations':async()=>{const _0x339527=_0x3c0535,_0x1676b1=await _0x5b1af6[_0x339527(0x264)];return(await _0x1676b1[_0x339527(0x1ff)]())[_0x339527(0x266)];},'abortController':_0x5b1af6[_0x3c0535(0x25b)]};}[_0x154e2e(0x20d)](_0x2b457a){const _0x42cfd4=_0x154e2e,_0x512c67=this[_0x42cfd4(0x285)](_0x42cfd4(0x21e)+_0x2b457a,_0x42cfd4(0x253));return{'execute':async()=>{const _0x55591e=_0x42cfd4;await _0x512c67[_0x55591e(0x264)];},'abortController':_0x512c67[_0x42cfd4(0x25b)]};}[_0x154e2e(0x271)](_0x3d09f8,_0x3cc869){const _0x401c68=_0x154e2e,_0x2a9c8c=this[_0x401c68(0x285)](_0x401c68(0x21e)+_0x3d09f8,_0x401c68(0x20a),_0x3cc869);return{'getResult':async()=>(await _0x2a9c8c[_0x401c68(0x264)],_0x3cc869),'abortController':_0x2a9c8c[_0x401c68(0x25b)]};}[_0x154e2e(0x288)](_0x35f639){const _0x1706a1=_0x154e2e,_0x49fffa=this[_0x1706a1(0x285)](_0x1706a1(0x21e)+_0x35f639,_0x1706a1(0x212));return{'getConversation':async()=>(await _0x49fffa[_0x1706a1(0x264)])[_0x1706a1(0x1ff)](),'abortController':_0x49fffa[_0x1706a1(0x25b)]};}[_0x154e2e(0x20e)](_0x2503eb){const _0x5c472d=_0x154e2e,_0x23300c=this[_0x5c472d(0x285)](_0x5c472d(0x21e)+_0x2503eb+_0x5c472d(0x276),_0x5c472d(0x212));return{'getMessages':async()=>{const _0x45d74d=_0x5c472d,_0x12640e=await _0x23300c[_0x45d74d(0x264)];return(await _0x12640e[_0x45d74d(0x1ff)]())[_0x45d74d(0x266)];},'abortController':_0x23300c[_0x5c472d(0x25b)]};}[_0x154e2e(0x27e)](_0x575bd0,_0xd0c50b,_0x46a3df){const _0x58fab9=_0x154e2e,_0x4551f1=this[_0x58fab9(0x285)](_0x58fab9(0x21e)+_0x575bd0+_0x58fab9(0x242),_0x58fab9(0x227),{'url':_0xd0c50b,'attributes':_0x46a3df});return{'getId':async()=>(await _0x4551f1[_0x58fab9(0x264)])[_0x58fab9(0x1ff)](),'abortController':_0x4551f1[_0x58fab9(0x25b)]};}[_0x154e2e(0x21a)](_0x36a8e9='en'){const _0x2b501c=_0x154e2e,_0x30ddba=new URLSearchParams();_0x30ddba[_0x2b501c(0x203)](_0x2b501c(0x209),_0x36a8e9);const _0x5242c2=_0x2b501c(0x231)+_0x30ddba[_0x2b501c(0x245)](),_0x4f57db=this[_0x2b501c(0x285)](_0x5242c2,_0x2b501c(0x212));return{'list':async()=>await(await _0x4f57db[_0x2b501c(0x264)])[_0x2b501c(0x1ff)](),'abortController':_0x4f57db[_0x2b501c(0x25b)]};}[_0x154e2e(0x243)](_0x19b999,_0x5e0cf0){const _0x42e097=_0x154e2e,_0x159a0f=this[_0x42e097(0x285)](_0x42e097(0x21e)+_0x19b999+_0x42e097(0x222)+_0x5e0cf0,_0x42e097(0x253));return{'execute':async()=>{const _0xbabfbe=_0x42e097;await _0x159a0f[_0xbabfbe(0x264)];},'abortController':_0x159a0f[_0x42e097(0x25b)]};}[_0x154e2e(0x1f6)](_0x276349,_0x553741){const _0x571a93=_0x154e2e,_0x366472=this[_0x571a93(0x285)](_0x571a93(0x21e)+_0x276349+_0x571a93(0x24b)+_0x553741,_0x571a93(0x253));return{'execute':async()=>{const _0x28917e=_0x571a93;await _0x366472[_0x28917e(0x264)];},'abortController':_0x366472[_0x571a93(0x25b)]};}[_0x154e2e(0x22f)](_0x292405,_0x233ab1){const _0x26869e=_0x154e2e,_0x2601e1=this[_0x26869e(0x285)](_0x26869e(0x21e)+_0x292405+_0x26869e(0x255)+_0x233ab1,_0x26869e(0x253));return{'execute':async()=>{const _0x2d89d0=_0x26869e;await _0x2601e1[_0x2d89d0(0x264)];},'abortController':_0x2601e1[_0x26869e(0x25b)]};}[_0x154e2e(0x229)]({reviewName:_0x27799d,content:_0x1a26d9,args:_0x1dc6d0}){const _0x588f9a=_0x154e2e,_0x4c0053=this[_0x588f9a(0x285)](_0x588f9a(0x24c)+_0x27799d+_0x588f9a(0x258),_0x588f9a(0x227),{'content':[{'type':_0x588f9a(0x27a),'content':_0x1a26d9}],'args':_0x1dc6d0});return{'getStream':async()=>{const _0x3762cc=_0x588f9a,_0x1fa777=(await _0x4c0053[_0x3762cc(0x264)])[_0x3762cc(0x226)];return this[_0x3762cc(0x26f)](_0x1fa777);},'abortController':_0x4c0053[_0x588f9a(0x25b)]};}[_0x154e2e(0x284)]({content:_0x3943d1,prompt:_0x320363,model:_0x1bafda}){const _0x175c3f=_0x154e2e,_0x5544cd=this[_0x175c3f(0x285)](_0x175c3f(0x21c),_0x175c3f(0x227),{'content':[{'type':_0x175c3f(0x27a),'content':_0x3943d1}],'prompt':_0x320363,'model':_0x1bafda});return{'getStream':async()=>{const _0x3a73eb=_0x175c3f,_0x3e99ff=(await _0x5544cd[_0x3a73eb(0x264)])[_0x3a73eb(0x226)];return this[_0x3a73eb(0x26f)](_0x3e99ff);},'abortController':_0x5544cd[_0x175c3f(0x25b)]};}[_0x154e2e(0x218)](_0x437661,_0x36e880,_0x558799){const _0x5ba0c0=_0x154e2e,_0x475add=this[_0x5ba0c0(0x285)](_0x5ba0c0(0x21e)+_0x437661+_0x5ba0c0(0x1fd)+_0x36e880+_0x5ba0c0(0x249),_0x5ba0c0(0x251),{'positiveCount':_0x558799[_0x5ba0c0(0x232)],'totalCount':_0x558799[_0x5ba0c0(0x25f)],'modificationId':_0x558799[_0x5ba0c0(0x23a)]});return{'execute':async()=>{const _0x4cd14d=_0x5ba0c0;await _0x475add[_0x4cd14d(0x264)];},'abortController':_0x475add[_0x5ba0c0(0x25b)]};}[_0x154e2e(0x236)](_0x596123,_0x5718a9,_0x2a6b56){const _0xac99cf=_0x154e2e,_0x805895=this[_0xac99cf(0x285)](_0xac99cf(0x26a)+_0x596123+_0xac99cf(0x21b)+_0x5718a9+_0xac99cf(0x249),_0xac99cf(0x251),{'positiveCount':_0x2a6b56[_0xac99cf(0x232)],'totalCount':_0x2a6b56[_0xac99cf(0x25f)]});return{'execute':async()=>{const _0x438081=_0xac99cf;await _0x805895[_0x438081(0x264)];},'abortController':_0x805895[_0xac99cf(0x25b)]};}[_0x154e2e(0x282)](_0x4af965,_0x5b7918){const _0x4b04ed=_0x154e2e,_0x2dd047=this[_0x4b04ed(0x285)](_0x4b04ed(0x26d)+_0x4af965+_0x4b04ed(0x249),_0x4b04ed(0x251),{'positiveCount':_0x5b7918[_0x4b04ed(0x232)],'totalCount':_0x5b7918[_0x4b04ed(0x25f)]});return{'execute':async()=>{const _0x491195=_0x4b04ed;await _0x2dd047[_0x491195(0x264)];},'abortController':_0x2dd047[_0x4b04ed(0x25b)]};}[_0x154e2e(0x263)](_0x4be34d,_0x61a5,_0x5ece10,_0x448bd2){const _0x4dbb54=_0x154e2e,_0x1cf003=this[_0x4dbb54(0x285)](_0x4dbb54(0x24c)+_0x4be34d+_0x4dbb54(0x21b)+_0x61a5+_0x4dbb54(0x249),_0x4dbb54(0x251),{'positiveCount':_0x5ece10[_0x4dbb54(0x232)],'totalCount':_0x5ece10[_0x4dbb54(0x25f)],'dataId':_0x448bd2});return{'execute':async()=>{const _0x10b3be=_0x4dbb54;await _0x1cf003[_0x10b3be(0x264)];},'abortController':_0x1cf003[_0x4dbb54(0x25b)]};}[_0x154e2e(0x21f)](_0x1db5d8,_0x47f9d2,_0x5dd5a3){const _0x28f298=_0x154e2e,_0x3a5fc5=this[_0x28f298(0x285)](_0x28f298(0x280)+_0x1db5d8+_0x28f298(0x249),_0x28f298(0x251),{'positiveCount':_0x47f9d2[_0x28f298(0x232)],'totalCount':_0x47f9d2[_0x28f298(0x25f)],'dataId':_0x5dd5a3});return{'execute':async()=>{const _0x116f0f=_0x28f298;await _0x3a5fc5[_0x116f0f(0x264)];},'abortController':_0x3a5fc5[_0x28f298(0x25b)]};}[_0x154e2e(0x285)](_0x57e241,_0x202620,_0x946d89){const _0x38fc4f=_0x154e2e,_0x15a158=new AbortController(),_0x1638ff=_0x946d89 instanceof FormData,_0x3a6982={'Authorization':_0x38fc4f(0x207)+this[_0x38fc4f(0x200)]?.[_0x38fc4f(0x260)]};_0x946d89&&!_0x1638ff&&(_0x3a6982[_0x38fc4f(0x220)]=_0x38fc4f(0x257));const _0x31e777={'method':_0x202620,'headers':_0x3a6982,'signal':_0x15a158[_0x38fc4f(0x20c)]};return _0x946d89&&(_0x31e777[_0x38fc4f(0x226)]=_0x1638ff?_0x946d89:JSON[_0x38fc4f(0x219)](_0x946d89)),{'request':fetch(''+this[_0x38fc4f(0x25e)]+_0x57e241,_0x31e777)[_0x38fc4f(0x24f)](_0x50382f=>{const _0x1fd4be=_0x38fc4f;this[_0x1fd4be(0x214)](_0x50382f);})[_0x38fc4f(0x1fb)](_0x4a4bfd=>_0x4a4bfd['ok']?_0x4a4bfd:_0x4a4bfd[_0x38fc4f(0x1ff)]()[_0x38fc4f(0x1fb)](_0x26247f=>{const _0x30df26=_0x38fc4f;throw{'url':this[_0x30df26(0x25e)],'path':_0x57e241,'method':_0x202620,'body':_0x946d89,'status':(_0x4a4bfd||{})[_0x30df26(0x26b)],'statusText':(_0x4a4bfd||{})[_0x30df26(0x237)],'code':_0x26247f[_0x30df26(0x223)],'message':_0x26247f[_0x30df26(0x216)],'traceId':_0x26247f[_0x30df26(0x274)]};})),'abortController':_0x15a158};}async*[_0x154e2e(0x26f)](_0x1c7365){const _0xc92c0e=_0x154e2e,_0x4fe31c=[],_0x3ceec7=_0x1c7365[_0xc92c0e(0x1f9)](),_0x2b3634=_0xfdb986({'onError':_0x3888e5=>{const _0x6f288c=_0xc92c0e;this[_0x6f288c(0x214)](_0x3888e5);},'onEvent':_0x43e38e=>{const _0x3ba50c=_0xc92c0e;_0x43e38e[_0x3ba50c(0x1f8)]=JSON[_0x3ba50c(0x228)](_0x43e38e[_0x3ba50c(0x1f8)]),_0x4fe31c[_0x3ba50c(0x250)](_0x43e38e);}});try{let _0x5cb5cb=!0x1;for(;!_0x5cb5cb;){const {done:_0x862ed4,value:_0xe13df3}=await _0x3ceec7[_0xc92c0e(0x25c)]();_0x862ed4&&(_0x5cb5cb=!0x0),_0x2b3634[_0xc92c0e(0x202)](this[_0xc92c0e(0x238)][_0xc92c0e(0x22d)](_0xe13df3,{'stream':!0x0})),yield*_0x4fe31c,_0x4fe31c[_0xc92c0e(0x247)]=0x0;}}catch(_0x29e1f6){this[_0xc92c0e(0x214)](_0x29e1f6);}finally{_0x3ceec7[_0xc92c0e(0x25a)](),_0x2b3634[_0xc92c0e(0x1fe)]();}}[_0x154e2e(0x214)](_0x50fff0){const _0x43841f=_0x154e2e;if(_0x50fff0 instanceof _0x56ce13)throw _0x50fff0;if(_0x50fff0 instanceof Error&&_0x43841f(0x221)===_0x50fff0[_0x43841f(0x22e)])throw new _0x56ce13(_0x43841f(0x241),this,{'originalError':_0x50fff0});throw new _0x56ce13(_0x43841f(0x225),this,{'originalError':_0x50fff0});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x29f28c=_0x5720;(function(_0x3a6a0d,_0x1a7ab1){const _0x46cdc2=_0x5720,_0x562f9d=_0x3a6a0d();while(!![]){try{const _0x34b761=parseInt(_0x46cdc2(0x219))/0x1+-parseInt(_0x46cdc2(0x1d1))/0x2+-parseInt(_0x46cdc2(0x22c))/0x3*(-parseInt(_0x46cdc2(0x1de))/0x4)+parseInt(_0x46cdc2(0x234))/0x5*(parseInt(_0x46cdc2(0x1ff))/0x6)+parseInt(_0x46cdc2(0x1fc))/0x7*(parseInt(_0x46cdc2(0x1cc))/0x8)+-parseInt(_0x46cdc2(0x22d))/0x9*(-parseInt(_0x46cdc2(0x1d0))/0xa)+-parseInt(_0x46cdc2(0x1c7))/0xb*(parseInt(_0x46cdc2(0x1d5))/0xc);if(_0x34b761===_0x1a7ab1)break;else _0x562f9d['push'](_0x562f9d['shift']());}catch(_0x214265){_0x562f9d['push'](_0x562f9d['shift']());}}}(_0x2d7e,0x77836));import{ViewDowncastWriter as _0x363d9f}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x50d022,Editor as _0x30cc69}from'ckeditor5/src/core.js';import{uid as _0x196cd8}from'ckeditor5/src/utils.js';function _0x5720(_0x1f0a10,_0x3d3efe){const _0x2d7ea6=_0x2d7e();return _0x5720=function(_0x5720ce,_0x428e5d){_0x5720ce=_0x5720ce-0x1c5;let _0x12ca97=_0x2d7ea6[_0x5720ce];return _0x12ca97;},_0x5720(_0x1f0a10,_0x3d3efe);}function _0x2d7e(){const _0x5cc051=['_getDocumentDataStringFromView','4NjJCGo','toView','start','containerElement','getItems','isOfficialPlugin','data','editingDowncast','trim','getLastMatchingPosition','data-id','hideFakeVisualSelection','schema','selection','createRange','getStart','for','getHtml','_displayedFakeSelectionLocked','markerToElement','toData','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','removeMarker','_setDataIdsOnChildren',':start>','push','isAtEnd','isPremiumPlugin','domConverter','markers','119LLWALd','_integrateEditor','locale','193770FUNgoO','ai-selection:','isOpening','ai-selection','fromCharCode','define','removeAllRanges','random','config','createUIElement','markerToHighlight','_outputDataProcessor','$textProxy','processor','emptyElement','sessionId','pluginName','name','context','indexOf','view','getSelection','markerName','length','substring','viewToDom','615353XtEGKk','listenTo','conversion',':start></','afterInit','convertAiChatSelectionMarker','isBefore','getSelectionText','sort','AIEditing','ready','getRoot','_setOutputDataProcessor','getDocumentData','dataDowncast','_getMarkersInDocumentOrder','end','_sessionId','has','912387ZMyxzH','3015Lmjkod','ai.models.showModelSelector','setAttribute','plugins','addMarker','RealTimeCollaborationClient','editing','20ckWIcj','from','getChildren','editors','isContent','document','get','floor','htmlWriter','3568609QuxKii','getMarkersGroup','model','element','join','118424QEIrCv',':end>','ck-ai-assistant-ui_theme','modelToDataWithIds','2480sVzEXj','1138896YpkgYZ','_displayedFakeSelectionId','ck-fake-ai-selection','getRanges','12TBOrXM','change',':end></','showFakeVisualSelection','add','isAfter','version','_nextDataId'];_0x2d7e=function(){return _0x5cc051;};return _0x2d7e();}import{getTranslation as _0x357b17}from'./utils/common-translations.js';import{getEditorFromContext as _0x40762e}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x29f28c(0x202);export class AIEditing extends _0x50d022{constructor(_0x332452){const _0x31ba91=_0x29f28c;super(_0x332452),this[_0x31ba91(0x211)][_0x31ba91(0x207)][_0x31ba91(0x204)](_0x31ba91(0x22e),!0x0);}[_0x29f28c(0x20a)];[_0x29f28c(0x1d2)]=null;[_0x29f28c(0x1f0)]=!0x1;[_0x29f28c(0x22a)];static get[_0x29f28c(0x20f)](){const _0x15ab3d=_0x29f28c;return _0x15ab3d(0x222);}static get[_0x29f28c(0x1e3)](){return!0x0;}static get[_0x29f28c(0x1f9)](){return!0x0;}get[_0x29f28c(0x20e)](){const _0x5947ef=_0x29f28c;if(!this[_0x5947ef(0x22a)]){const _0x4534d4=_0x40762e(this[_0x5947ef(0x211)]),_0x5021eb=_0x4534d4[_0x5947ef(0x230)][_0x5947ef(0x22b)](_0x5947ef(0x232))&&_0x4534d4[_0x5947ef(0x230)][_0x5947ef(0x23a)](_0x5947ef(0x232))[_0x5947ef(0x20e)];this[_0x5947ef(0x22a)]=_0x5021eb||_0x196cd8();}return this[_0x5947ef(0x22a)];}async[_0x29f28c(0x226)](){const _0x58d24c=_0x29f28c,_0x444cb1=_0x40762e(this[_0x58d24c(0x211)]),_0x4d938d=_0x444cb1[_0x58d24c(0x1c9)],_0x29cec5=_0x444cb1[_0x58d24c(0x1e4)][_0x58d24c(0x1df)](_0x4d938d[_0x58d24c(0x239)][_0x58d24c(0x224)](),{'convertAiChatSelectionMarker':!0x0}),_0x49db72=new _0x363d9f(_0x444cb1[_0x58d24c(0x233)][_0x58d24c(0x213)][_0x58d24c(0x239)]);this[_0x58d24c(0x1f5)](_0x29cec5,_0x49db72);let _0x114d4e=await this[_0x58d24c(0x1dd)](_0x29cec5);const _0x3b8a39=this[_0x58d24c(0x228)](),_0x202282=[];for(const _0x1ddfb9 of _0x3b8a39){const _0x404868='<'+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x21c)+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x1f6),_0x2887ce=_0x114d4e[_0x58d24c(0x212)](_0x404868);_0x114d4e=_0x114d4e[_0x58d24c(0x217)](0x0,_0x2887ce)+_0x114d4e[_0x58d24c(0x217)](_0x2887ce+_0x404868[_0x58d24c(0x216)]);const _0x3e69b3='<'+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x1d7)+_0x1ddfb9[_0x58d24c(0x210)]+_0x58d24c(0x1cd),_0x200b3b=_0x114d4e[_0x58d24c(0x212)](_0x3e69b3);_0x114d4e=_0x114d4e[_0x58d24c(0x217)](0x0,_0x200b3b)+_0x114d4e[_0x58d24c(0x217)](_0x200b3b+_0x3e69b3[_0x58d24c(0x216)]),_0x202282[_0x58d24c(0x1f7)]({'markerName':_0x1ddfb9[_0x58d24c(0x210)],'start':_0x2887ce,'end':_0x200b3b,'htmlFragment':_0x114d4e[_0x58d24c(0x217)](_0x2887ce,_0x200b3b)});}return{'content':_0x114d4e,'version':_0x444cb1[_0x58d24c(0x1c9)][_0x58d24c(0x239)][_0x58d24c(0x1db)],'sessionId':this[_0x58d24c(0x20e)],'selections':_0x202282};}async[_0x29f28c(0x21d)](){const _0x2b7ba9=_0x29f28c;this[_0x2b7ba9(0x211)]instanceof _0x30cc69?this[_0x2b7ba9(0x1fd)](this[_0x2b7ba9(0x211)]):this[_0x2b7ba9(0x21a)](this[_0x2b7ba9(0x211)][_0x2b7ba9(0x237)],_0x2b7ba9(0x1d9),(_0x3eb76f,_0x239214)=>{const _0x370786=_0x2b7ba9;_0x239214['on'](_0x370786(0x223),()=>{const _0x18ef9d=_0x370786;this[_0x18ef9d(0x1fd)](_0x239214);});});}[_0x29f28c(0x225)](_0x22d87c){const _0x1b8789=_0x29f28c;this[_0x1b8789(0x20a)]=_0x22d87c;}async[_0x29f28c(0x1dd)](_0x5e8cd6){const _0x18338a=_0x29f28c;let _0x1049cc;const _0x1a4605=_0x40762e(this[_0x18338a(0x211)]);if(this[_0x18338a(0x20a)]){const _0x804f14=_0x1a4605[_0x18338a(0x1e4)][_0x18338a(0x20c)][_0x18338a(0x1fa)][_0x18338a(0x218)](_0x5e8cd6),_0x5d094a=await this[_0x18338a(0x20a)](_0x804f14);_0x1049cc=_0x1a4605[_0x18338a(0x1e4)][_0x18338a(0x20c)][_0x18338a(0x1c6)][_0x18338a(0x1ef)](_0x5d094a);}else _0x1049cc=_0x1a4605[_0x18338a(0x1e4)][_0x18338a(0x20c)][_0x18338a(0x1f2)](_0x5e8cd6);return _0x1049cc;}[_0x29f28c(0x1fd)](_0x3c3536){const _0x1ea231=_0x29f28c;_0x3c3536[_0x1ea231(0x21b)][_0x1ea231(0x1ee)](_0x1ea231(0x1e5))[_0x1ea231(0x209)]({'model':_0x1ea231(0x202),'view':{'classes':[_0x1ea231(0x1d3),_0x1ea231(0x1ce)],'priority':0xc}}),_0x3c3536[_0x1ea231(0x21b)][_0x1ea231(0x1ee)](_0x1ea231(0x227))[_0x1ea231(0x1f1)]({'model':_0x1ea231(0x202),'view':(_0x5c8040,{writer:_0x24faa8,options:_0x23eff5})=>_0x23eff5[_0x1ea231(0x21e)]?_0x24faa8[_0x1ea231(0x208)](_0x5c8040[_0x1ea231(0x215)]+':'+(_0x5c8040[_0x1ea231(0x201)]?_0x1ea231(0x1e0):_0x1ea231(0x229))):null});}[_0x29f28c(0x1d8)](_0x4e2a05,_0x1ffc31,_0x267cce=!0x1,_0x43707a=!0x1){const _0x3255bb=_0x29f28c;if(this[_0x3255bb(0x1f0)]&&!_0x43707a)return!0x1;const _0x4ce4b9=_0x40762e(this[_0x3255bb(0x211)])[_0x3255bb(0x1c9)];return _0x4ce4b9[_0x3255bb(0x1d6)](_0x177a26=>{const _0x4d5286=_0x3255bb;this[_0x4d5286(0x1d2)]&&this[_0x4d5286(0x1e9)](this[_0x4d5286(0x1d2)]),this[_0x4d5286(0x1d2)]=_0x1ffc31,this[_0x4d5286(0x1f0)]=_0x267cce;let _0x2207c8=0x0;for(let _0x3eb606 of _0x4e2a05){const _0x527f9f=_0x4d5286(0x200)+_0x2207c8;if(_0x3eb606[_0x4d5286(0x1e0)][_0x4d5286(0x1f8)]){const _0x385af4=_0x3eb606[_0x4d5286(0x1e0)][_0x4d5286(0x1e7)](({item:_0x3ef912})=>!_0x4ce4b9[_0x4d5286(0x1ea)][_0x4d5286(0x238)](_0x3ef912),{'boundaries':_0x3eb606});_0x3eb606=_0x177a26[_0x4d5286(0x1ec)](_0x385af4,_0x3eb606[_0x4d5286(0x229)]);}_0x177a26[_0x4d5286(0x231)](_0x527f9f,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x3eb606}),_0x2207c8++;}}),window[_0x3255bb(0x214)]()?.[_0x3255bb(0x205)](),!0x0;}[_0x29f28c(0x1e9)](_0x5a39c2){const _0x2281d0=_0x29f28c;if(this[_0x2281d0(0x1d2)]!=_0x5a39c2)return!0x1;this[_0x2281d0(0x1d2)]=null,this[_0x2281d0(0x1f0)]=!0x1;const _0x403391=_0x40762e(this[_0x2281d0(0x211)]),_0x6c4757=_0x403391[_0x2281d0(0x1c9)][_0x2281d0(0x1fb)][_0x2281d0(0x1c8)](_0x2281d0(0x202));return _0x403391[_0x2281d0(0x1c9)][_0x2281d0(0x1d6)](_0x29946d=>{const _0x26d053=_0x2281d0;for(const _0x4d6bd8 of _0x6c4757)_0x29946d[_0x26d053(0x1f4)](_0x4d6bd8);}),!0x0;}async[_0x29f28c(0x1cf)](_0x3b1c4d){const _0x218dad=_0x29f28c,_0x2fafe1=_0x40762e(this[_0x218dad(0x211)]),_0x211d56=_0x2fafe1[_0x218dad(0x1e4)][_0x218dad(0x1df)](_0x3b1c4d),_0x1b0d83=new _0x363d9f(_0x2fafe1[_0x218dad(0x233)][_0x218dad(0x213)][_0x218dad(0x239)]);return this[_0x218dad(0x1f5)](_0x211d56,_0x1b0d83),this[_0x218dad(0x1dd)](_0x211d56);}[_0x29f28c(0x1f5)](_0x199268,_0x418a97){const _0x34468b=_0x29f28c;let _0x383c8e=!0x1;const _0x2649bf=new Set();for(const _0x74b864 of _0x199268[_0x34468b(0x236)]()){const _0xc615ee=_0x74b864['is'](_0x34468b(0x20d))||_0x74b864['is'](_0x34468b(0x1e1));if(!_0x74b864['is'](_0x34468b(0x1ca)))continue;(this[_0x34468b(0x1f5)](_0x74b864,_0x418a97)||_0xc615ee)&&(_0x418a97[_0x34468b(0x22f)](_0x34468b(0x1e8),this[_0x34468b(0x1dc)](_0x2649bf),_0x74b864),_0x383c8e=!0x0);}return _0x383c8e;}[_0x29f28c(0x1dc)](_0x5123a1){const _0xb5dd40=_0x29f28c;let _0x2631a1;do{_0x2631a1='';for(let _0x2eebcd=0x0;_0x2eebcd<0x4;_0x2eebcd++)_0x2631a1+=String[_0xb5dd40(0x203)](0x61+Math[_0xb5dd40(0x1c5)](0x1a*Math[_0xb5dd40(0x206)]()));}while(_0x5123a1[_0xb5dd40(0x22b)](_0x2631a1));return _0x5123a1[_0xb5dd40(0x1d9)](_0x2631a1),_0x2631a1;}[_0x29f28c(0x220)](){const _0x41fab6=_0x29f28c,{model:_0x1b7367}=_0x40762e(this[_0x41fab6(0x211)]),_0x32fef3=_0x1b7367[_0x41fab6(0x239)][_0x41fab6(0x1eb)],_0x5ba2cb=[];for(const _0x28f66b of _0x32fef3[_0x41fab6(0x1d4)]())for(const _0x22ee20 of _0x28f66b[_0x41fab6(0x1e2)]())_0x22ee20['is'](_0x41fab6(0x20b))?_0x5ba2cb[_0x41fab6(0x1f7)](_0x22ee20[_0x41fab6(0x1e4)]):_0x22ee20['is'](_0x41fab6(0x1ca))&&_0x5ba2cb[_0x41fab6(0x216)]>0x0&&'\x20'!==_0x5ba2cb[_0x5ba2cb[_0x41fab6(0x216)]-0x1]&&_0x5ba2cb[_0x41fab6(0x1f7)]('\x20');return _0x5ba2cb[_0x41fab6(0x216)]?'\x22'+_0x5ba2cb[_0x41fab6(0x1cb)]('')[_0x41fab6(0x1e6)]()+'\x22':_0x357b17(this[_0x41fab6(0x211)][_0x41fab6(0x1fe)],_0x41fab6(0x1f3));}[_0x29f28c(0x228)](){const _0x366579=_0x29f28c,_0x5d6286=_0x40762e(this[_0x366579(0x211)])[_0x366579(0x1c9)];return Array[_0x366579(0x235)](_0x5d6286[_0x366579(0x1fb)][_0x366579(0x1c8)](_0x366579(0x202)))[_0x366579(0x221)]((_0x180578,_0x2e072c)=>_0x180578[_0x366579(0x1ed)]()[_0x366579(0x21f)](_0x2e072c[_0x366579(0x1ed)]())?-0x1:_0x180578[_0x366579(0x1ed)]()[_0x366579(0x1da)](_0x2e072c[_0x366579(0x1ed)]())?0x1:0x0);}}
|
|
23
|
+
function _0x5dfc(_0x4b9380,_0x20fb3e){const _0x377b6c=_0x377b();return _0x5dfc=function(_0x5dfcb4,_0x465d3d){_0x5dfcb4=_0x5dfcb4-0x84;let _0x3d41fd=_0x377b6c[_0x5dfcb4];return _0x3d41fd;},_0x5dfc(_0x4b9380,_0x20fb3e);}function _0x377b(){const _0x43d72f=['dataDowncast','listenTo','_setOutputDataProcessor','hideFakeVisualSelection',':end>','sort','1206110NmzwxH','getRanges','domConverter','editors','removeMarker','getRoot','_integrateEditor',':start>','_displayedFakeSelectionLocked','210056SbXTKI','define','createUIElement','change','isAfter','floor','_getMarkersInDocumentOrder','context','element','end','ck-fake-ai-selection','getHtml','processor','ai-selection:','getStart','isPremiumPlugin','getSelectionText','editingDowncast','containerElement','63meHsnD','afterInit','setAttribute','fromCharCode','15540904hStbDI','createRange','addMarker','from','RealTimeCollaborationClient','getChildren','start','126ZeSUAj','convertAiChatSelectionMarker','isOfficialPlugin','_sessionId','isContent','conversion','document','pluginName','version','plugins','locale','name','127447HYSejN','trim','ck-ai-assistant-ui_theme','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','_displayedFakeSelectionId','getMarkersGroup','indexOf','getItems','push','modelToDataWithIds','AIEditing',':start></','isOpening','804294xvlggU','ready','_getDocumentDataStringFromView','for','config','selection','sessionId','random','data','data-id','markerToHighlight','markerToElement','viewToDom','$textProxy','ai-selection','22pGnnHR','markers','getDocumentData','model','_nextDataId','emptyElement','htmlWriter','126632cGatju','isAtEnd','getLastMatchingPosition',':end></','toView','toData','join','getSelection','markerName','ai.models.showModelSelector','_outputDataProcessor','isBefore','editing','schema','8588005aqyMKf','showFakeVisualSelection','_setDataIdsOnChildren','length','removeAllRanges','add','has','substring','view','get','153LjYbOz'];_0x377b=function(){return _0x43d72f;};return _0x377b();}const _0x39239a=_0x5dfc;(function(_0x31e1ec,_0x1e4134){const _0x2dfd12=_0x5dfc,_0x50daef=_0x31e1ec();while(!![]){try{const _0x33fd6a=-parseInt(_0x2dfd12(0xbc))/0x1*(parseInt(_0x2dfd12(0xd8))/0x2)+-parseInt(_0x2dfd12(0xf7))/0x3*(-parseInt(_0x2dfd12(0xdf))/0x4)+parseInt(_0x2dfd12(0xed))/0x5+parseInt(_0x2dfd12(0xc9))/0x6*(-parseInt(_0x2dfd12(0xa5))/0x7)+parseInt(_0x2dfd12(0xa9))/0x8+parseInt(_0x2dfd12(0xb0))/0x9*(-parseInt(_0x2dfd12(0x89))/0xa)+parseInt(_0x2dfd12(0x92))/0xb;if(_0x33fd6a===_0x1e4134)break;else _0x50daef['push'](_0x50daef['shift']());}catch(_0x20bffe){_0x50daef['push'](_0x50daef['shift']());}}}(_0x377b,0xf365c));import{ViewDowncastWriter as _0x1351c0}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x5c5bdb,Editor as _0x47c8de}from'ckeditor5/src/core.js';import{uid as _0x88b5b9}from'ckeditor5/src/utils.js';import{getTranslation as _0x321fbf}from'./utils/common-translations.js';import{getEditorFromContext as _0x5e54e0}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x39239a(0xd7);export class AIEditing extends _0x5c5bdb{constructor(_0x55197d){const _0x455f47=_0x39239a;super(_0x55197d),this[_0x455f47(0x99)][_0x455f47(0xcd)][_0x455f47(0x93)](_0x455f47(0xe8),!0x0);}[_0x39239a(0xe9)];[_0x39239a(0xc0)]=null;[_0x39239a(0x91)]=!0x1;[_0x39239a(0xb3)];static get[_0x39239a(0xb7)](){const _0x5490c4=_0x39239a;return _0x5490c4(0xc6);}static get[_0x39239a(0xb2)](){return!0x0;}static get[_0x39239a(0xa1)](){return!0x0;}get[_0x39239a(0xcf)](){const _0x25b444=_0x39239a;if(!this[_0x25b444(0xb3)]){const _0x3044ab=_0x5e54e0(this[_0x25b444(0x99)]),_0x3e94f5=_0x3044ab[_0x25b444(0xb9)][_0x25b444(0xf3)](_0x25b444(0xad))&&_0x3044ab[_0x25b444(0xb9)][_0x25b444(0xf6)](_0x25b444(0xad))[_0x25b444(0xcf)];this[_0x25b444(0xb3)]=_0x3e94f5||_0x88b5b9();}return this[_0x25b444(0xb3)];}async[_0x39239a(0xda)](){const _0x5be55b=_0x39239a,_0xa372e2=_0x5e54e0(this[_0x5be55b(0x99)]),_0x4ffb8e=_0xa372e2[_0x5be55b(0xdb)],_0x4ef907=_0xa372e2[_0x5be55b(0xd1)][_0x5be55b(0xe3)](_0x4ffb8e[_0x5be55b(0xb6)][_0x5be55b(0x8e)](),{'convertAiChatSelectionMarker':!0x0}),_0x11821e=new _0x1351c0(_0xa372e2[_0x5be55b(0xeb)][_0x5be55b(0xf5)][_0x5be55b(0xb6)]);this[_0x5be55b(0xef)](_0x4ef907,_0x11821e);let _0x1603b6=await this[_0x5be55b(0xcb)](_0x4ef907);const _0x198832=this[_0x5be55b(0x98)](),_0x3da300=[];for(const _0x338592 of _0x198832){const _0x1bd2db='<'+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0xc7)+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0x90),_0x8710c=_0x1603b6[_0x5be55b(0xc2)](_0x1bd2db);_0x1603b6=_0x1603b6[_0x5be55b(0xf4)](0x0,_0x8710c)+_0x1603b6[_0x5be55b(0xf4)](_0x8710c+_0x1bd2db[_0x5be55b(0xf0)]);const _0x357532='<'+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0xe2)+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0x87),_0xa9d843=_0x1603b6[_0x5be55b(0xc2)](_0x357532);_0x1603b6=_0x1603b6[_0x5be55b(0xf4)](0x0,_0xa9d843)+_0x1603b6[_0x5be55b(0xf4)](_0xa9d843+_0x357532[_0x5be55b(0xf0)]),_0x3da300[_0x5be55b(0xc4)]({'markerName':_0x338592[_0x5be55b(0xbb)],'start':_0x8710c,'end':_0xa9d843,'htmlFragment':_0x1603b6[_0x5be55b(0xf4)](_0x8710c,_0xa9d843)});}return{'content':_0x1603b6,'version':_0xa372e2[_0x5be55b(0xdb)][_0x5be55b(0xb6)][_0x5be55b(0xb8)],'sessionId':this[_0x5be55b(0xcf)],'selections':_0x3da300};}async[_0x39239a(0xa6)](){const _0x4d9fe7=_0x39239a;this[_0x4d9fe7(0x99)]instanceof _0x47c8de?this[_0x4d9fe7(0x8f)](this[_0x4d9fe7(0x99)]):this[_0x4d9fe7(0x84)](this[_0x4d9fe7(0x99)][_0x4d9fe7(0x8c)],_0x4d9fe7(0xf2),(_0x2d1f06,_0xc674a5)=>{const _0x3ab765=_0x4d9fe7;_0xc674a5['on'](_0x3ab765(0xca),()=>{const _0x44db7e=_0x3ab765;this[_0x44db7e(0x8f)](_0xc674a5);});});}[_0x39239a(0x85)](_0x1b6a02){const _0x1ff05f=_0x39239a;this[_0x1ff05f(0xe9)]=_0x1b6a02;}async[_0x39239a(0xcb)](_0xd9e583){const _0x584b87=_0x39239a;let _0x33e1b8;const _0x143fa4=_0x5e54e0(this[_0x584b87(0x99)]);if(this[_0x584b87(0xe9)]){const _0x33ddf0=_0x143fa4[_0x584b87(0xd1)][_0x584b87(0x9e)][_0x584b87(0x8b)][_0x584b87(0xd5)](_0xd9e583),_0x59bb39=await this[_0x584b87(0xe9)](_0x33ddf0);_0x33e1b8=_0x143fa4[_0x584b87(0xd1)][_0x584b87(0x9e)][_0x584b87(0xde)][_0x584b87(0x9d)](_0x59bb39);}else _0x33e1b8=_0x143fa4[_0x584b87(0xd1)][_0x584b87(0x9e)][_0x584b87(0xe4)](_0xd9e583);return _0x33e1b8;}[_0x39239a(0x8f)](_0x7e0407){const _0x39d589=_0x39239a;_0x7e0407[_0x39d589(0xb5)][_0x39d589(0xcc)](_0x39d589(0xa3))[_0x39d589(0xd3)]({'model':_0x39d589(0xd7),'view':{'classes':[_0x39d589(0x9c),_0x39d589(0xbe)],'priority':0xc}}),_0x7e0407[_0x39d589(0xb5)][_0x39d589(0xcc)](_0x39d589(0xf8))[_0x39d589(0xd4)]({'model':_0x39d589(0xd7),'view':(_0x15b342,{writer:_0x4a4565,options:_0x546754})=>_0x546754[_0x39d589(0xb1)]?_0x4a4565[_0x39d589(0x94)](_0x15b342[_0x39d589(0xe7)]+':'+(_0x15b342[_0x39d589(0xc8)]?_0x39d589(0xaf):_0x39d589(0x9b))):null});}[_0x39239a(0xee)](_0x1d850d,_0x894e8,_0x32d06c=!0x1,_0xf406db=!0x1){const _0x18659f=_0x39239a;if(this[_0x18659f(0x91)]&&!_0xf406db)return!0x1;const _0x583db4=_0x5e54e0(this[_0x18659f(0x99)])[_0x18659f(0xdb)];return _0x583db4[_0x18659f(0x95)](_0x509a83=>{const _0x6bb344=_0x18659f;this[_0x6bb344(0xc0)]&&this[_0x6bb344(0x86)](this[_0x6bb344(0xc0)]),this[_0x6bb344(0xc0)]=_0x894e8,this[_0x6bb344(0x91)]=_0x32d06c;let _0x13f91c=0x0;for(let _0x242f31 of _0x1d850d){const _0x1a6ef1=_0x6bb344(0x9f)+_0x13f91c;if(_0x242f31[_0x6bb344(0xaf)][_0x6bb344(0xe0)]){const _0x49a3d2=_0x242f31[_0x6bb344(0xaf)][_0x6bb344(0xe1)](({item:_0x184b47})=>!_0x583db4[_0x6bb344(0xec)][_0x6bb344(0xb4)](_0x184b47),{'boundaries':_0x242f31});_0x242f31=_0x509a83[_0x6bb344(0xaa)](_0x49a3d2,_0x242f31[_0x6bb344(0x9b)]);}_0x509a83[_0x6bb344(0xab)](_0x1a6ef1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x242f31}),_0x13f91c++;}}),window[_0x18659f(0xe6)]()?.[_0x18659f(0xf1)](),!0x0;}[_0x39239a(0x86)](_0x20bb57){const _0x4c72b5=_0x39239a;if(this[_0x4c72b5(0xc0)]!=_0x20bb57)return!0x1;this[_0x4c72b5(0xc0)]=null,this[_0x4c72b5(0x91)]=!0x1;const _0x100552=_0x5e54e0(this[_0x4c72b5(0x99)]),_0x1ec321=_0x100552[_0x4c72b5(0xdb)][_0x4c72b5(0xd9)][_0x4c72b5(0xc1)](_0x4c72b5(0xd7));return _0x100552[_0x4c72b5(0xdb)][_0x4c72b5(0x95)](_0x45f0c4=>{const _0xaf86c1=_0x4c72b5;for(const _0x1554a7 of _0x1ec321)_0x45f0c4[_0xaf86c1(0x8d)](_0x1554a7);}),!0x0;}async[_0x39239a(0xc5)](_0x237d5a){const _0x2508da=_0x39239a,_0x5b0b80=_0x5e54e0(this[_0x2508da(0x99)]),_0x4b705c=_0x5b0b80[_0x2508da(0xd1)][_0x2508da(0xe3)](_0x237d5a),_0x427fca=new _0x1351c0(_0x5b0b80[_0x2508da(0xeb)][_0x2508da(0xf5)][_0x2508da(0xb6)]);return this[_0x2508da(0xef)](_0x4b705c,_0x427fca),this[_0x2508da(0xcb)](_0x4b705c);}[_0x39239a(0xef)](_0x5a39fd,_0x2954f8){const _0x91697b=_0x39239a;let _0x5587ef=!0x1;const _0x56b8e6=new Set();for(const _0x1e4c65 of _0x5a39fd[_0x91697b(0xae)]()){const _0x20f542=_0x1e4c65['is'](_0x91697b(0xdd))||_0x1e4c65['is'](_0x91697b(0xa4));if(!_0x1e4c65['is'](_0x91697b(0x9a)))continue;(this[_0x91697b(0xef)](_0x1e4c65,_0x2954f8)||_0x20f542)&&(_0x2954f8[_0x91697b(0xa7)](_0x91697b(0xd2),this[_0x91697b(0xdc)](_0x56b8e6),_0x1e4c65),_0x5587ef=!0x0);}return _0x5587ef;}[_0x39239a(0xdc)](_0x1b2ad6){const _0x1355f2=_0x39239a;let _0x161de0;do{_0x161de0='';for(let _0x277135=0x0;_0x277135<0x4;_0x277135++)_0x161de0+=String[_0x1355f2(0xa8)](0x61+Math[_0x1355f2(0x97)](0x1a*Math[_0x1355f2(0xd0)]()));}while(_0x1b2ad6[_0x1355f2(0xf3)](_0x161de0));return _0x1b2ad6[_0x1355f2(0xf2)](_0x161de0),_0x161de0;}[_0x39239a(0xa2)](){const _0x128be4=_0x39239a,{model:_0x4f802f}=_0x5e54e0(this[_0x128be4(0x99)]),_0x523b90=_0x4f802f[_0x128be4(0xb6)][_0x128be4(0xce)],_0x27d6d2=[];for(const _0x45a394 of _0x523b90[_0x128be4(0x8a)]())for(const _0x27bc09 of _0x45a394[_0x128be4(0xc3)]())_0x27bc09['is'](_0x128be4(0xd6))?_0x27d6d2[_0x128be4(0xc4)](_0x27bc09[_0x128be4(0xd1)]):_0x27bc09['is'](_0x128be4(0x9a))&&_0x27d6d2[_0x128be4(0xf0)]>0x0&&'\x20'!==_0x27d6d2[_0x27d6d2[_0x128be4(0xf0)]-0x1]&&_0x27d6d2[_0x128be4(0xc4)]('\x20');return _0x27d6d2[_0x128be4(0xf0)]?'\x22'+_0x27d6d2[_0x128be4(0xe5)]('')[_0x128be4(0xbd)]()+'\x22':_0x321fbf(this[_0x128be4(0x99)][_0x128be4(0xba)],_0x128be4(0xbf));}[_0x39239a(0x98)](){const _0x52a151=_0x39239a,_0xed43ed=_0x5e54e0(this[_0x52a151(0x99)])[_0x52a151(0xdb)];return Array[_0x52a151(0xac)](_0xed43ed[_0x52a151(0xd9)][_0x52a151(0xc1)](_0x52a151(0xd7)))[_0x52a151(0x88)]((_0x12789e,_0x4bcd78)=>_0x12789e[_0x52a151(0xa0)]()[_0x52a151(0xea)](_0x4bcd78[_0x52a151(0xa0)]())?-0x1:_0x12789e[_0x52a151(0xa0)]()[_0x52a151(0x96)](_0x4bcd78[_0x52a151(0xa0)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1a4eb3=_0x1a8e;(function(_0xe2c442,_0x359022){const _0x367e80=_0x1a8e,_0x1df28a=_0xe2c442();while(!![]){try{const _0x2c4f0c=-parseInt(_0x367e80(0xa1))/0x1*(parseInt(_0x367e80(0xa0))/0x2)+-parseInt(_0x367e80(0xa4))/0x3+parseInt(_0x367e80(0xa8))/0x4*(parseInt(_0x367e80(0x98))/0x5)+-parseInt(_0x367e80(0x9e))/0x6*(parseInt(_0x367e80(0x97))/0x7)+parseInt(_0x367e80(0xa7))/0x8+-parseInt(_0x367e80(0xa2))/0x9+parseInt(_0x367e80(0xb0))/0xa;if(_0x2c4f0c===_0x359022)break;else _0x1df28a['push'](_0x1df28a['shift']());}catch(_0x1c5fc3){_0x1df28a['push'](_0x1df28a['shift']());}}}(_0x1bf5,0x20c1e));import{EmitterMixin as _0x446f6f}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x1a4eb3(0xa3)];function _0x1a8e(_0x2489a0,_0x4bb36a){const _0x1bf576=_0x1bf5();return _0x1a8e=function(_0x1a8ea0,_0x4a4515){_0x1a8ea0=_0x1a8ea0-0x97;let _0x4b67bb=_0x1bf576[_0x1a8ea0];return _0x4b67bb;},_0x1a8e(_0x2489a0,_0x4bb36a);}export class AICapabilities extends _0x446f6f(){[_0x1a4eb3(0xad)];[_0x1a4eb3(0x99)];constructor(){const _0x2e4749=_0x1a4eb3;super(),this[_0x2e4749(0xad)]=!0x1,this[_0x2e4749(0x99)]=!0x1;}[_0x1a4eb3(0x9c)](){const _0x2b4b95=_0x1a4eb3;this[_0x2b4b95(0xae)]();}[_0x1a4eb3(0xae)](){const _0x468c4f=_0x1a4eb3;this[_0x468c4f(0x9b)](!0x1),this[_0x468c4f(0x9f)](!0x1);}[_0x1a4eb3(0xac)](){const _0x14aeae=_0x1a4eb3;return{'isWebSearchEnabled':this[_0x14aeae(0xad)],'isReasoningEnabled':this[_0x14aeae(0x99)]};}static[_0x1a4eb3(0x9d)](_0x3c77d2){const _0x40441f=_0x1a4eb3,_0xa09794={};return _0x3c77d2&&_0x3c77d2[_0x40441f(0xaf)]&&(_0xa09794[_0x40441f(0xaa)]={}),_0x3c77d2&&_0x3c77d2[_0x40441f(0xa6)]&&(_0xa09794[_0x40441f(0xa9)]={}),_0xa09794;}[_0x1a4eb3(0x9a)](){const _0xc384bd=_0x1a4eb3;this[_0xc384bd(0x9b)](!this[_0xc384bd(0xad)]);}[_0x1a4eb3(0xa5)](){const _0x262a09=_0x1a4eb3;this[_0x262a09(0x9f)](!this[_0x262a09(0x99)]);}[_0x1a4eb3(0x9b)](_0x52c3d3){const _0x5909bf=_0x1a4eb3;_0x52c3d3!==this[_0x5909bf(0xad)]&&(this[_0x5909bf(0xad)]=_0x52c3d3,this[_0x5909bf(0xab)](_0x5909bf(0xa3),this[_0x5909bf(0xac)]()));}[_0x1a4eb3(0x9f)](_0x569896){const _0x1d2b09=_0x1a4eb3;_0x569896!==this[_0x1d2b09(0x99)]&&(this[_0x1d2b09(0x99)]=_0x569896,this[_0x1d2b09(0xab)](_0x1d2b09(0xa3),this[_0x1d2b09(0xac)]()));}}function _0x1bf5(){const _0x20e135=['toggleReasoning','isReasoningEnabled','513216fwhoak','6976Ozqkbk','reasoning','webSearch','fire','getCapabilitiesConfig','_isWebSearchEnabled','reset','isWebSearchEnabled','4111470pqpVnr','15736RabGxi','465fBvRqp','_isReasoningEnabled','toggleWebSearch','setWebSearch','init','getCapabilitiesRequestData','594GdJghn','setReasoning','16182LPtLRe','11CIfxtp','1089738wZOaUE','capabilitiesUpdated','212046bgXwBg'];_0x1bf5=function(){return _0x20e135;};return _0x1bf5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xcbadcc,_0x232657){var _0x5eb05c=_0x2d5f,_0x59a72b=_0xcbadcc();while(!![]){try{var _0x2b2113=parseInt(_0x5eb05c(0x1ba))/0x1*(-parseInt(_0x5eb05c(0x1b5))/0x2)+-parseInt(_0x5eb05c(0x1bb))/0x3*(parseInt(_0x5eb05c(0x1bc))/0x4)+-parseInt(_0x5eb05c(0x1b2))/0x5+-parseInt(_0x5eb05c(0x1b9))/0x6+parseInt(_0x5eb05c(0x1c2))/0x7+parseInt(_0x5eb05c(0x1c5))/0x8*(parseInt(_0x5eb05c(0x1b4))/0x9)+parseInt(_0x5eb05c(0x1c9))/0xa;if(_0x2b2113===_0x232657)break;else _0x59a72b['push'](_0x59a72b['shift']());}catch(_0x401dfa){_0x59a72b['push'](_0x59a72b['shift']());}}}(_0x11f7,0x3c748));export var AIContextItemType;!function(_0x49430c){var _0x5104ca=_0x2d5f;_0x49430c[_0x5104ca(0x1c0)]=_0x5104ca(0x1be),_0x49430c[_0x5104ca(0x1c6)]=_0x5104ca(0x1c4),_0x49430c[_0x5104ca(0x1b8)]=_0x5104ca(0x1bf),_0x49430c[_0x5104ca(0x1ca)]=_0x5104ca(0x1bd),_0x49430c[_0x5104ca(0x1c7)]=_0x5104ca(0x1b1),_0x49430c[_0x5104ca(0x1b7)]=_0x5104ca(0x1c8);}(AIContextItemType||(AIContextItemType={}));function _0x11f7(){var _0x38dcd9=['HTML','9LkmPPg','3768ovWsnq','MARKDOWN','SELECTION','DOCUMENT','1439172jVnzuL','3NhDLHc','198444ZxIkje','4VzLmpS','web-resource','mcp-tool-context','document','TOOL','markdown','2985164llrFtc','html','file','3576744hOkKTu','FILE','TEXT','selection','1201950DomDvO','URL','text','2172270EWqtOQ'];_0x11f7=function(){return _0x38dcd9;};return _0x11f7();}function _0x2d5f(_0x489cd4,_0x4fe16d){var _0x11f753=_0x11f7();return _0x2d5f=function(_0x2d5f42,_0x35658b){_0x2d5f42=_0x2d5f42-0x1b1;var _0x61493=_0x11f753[_0x2d5f42];return _0x61493;},_0x2d5f(_0x489cd4,_0x4fe16d);}export var AIContextTextResourceType;!function(_0x3d802c){var _0x2514d8=_0x2d5f;_0x3d802c[_0x2514d8(0x1c7)]=_0x2514d8(0x1b1),_0x3d802c[_0x2514d8(0x1b6)]=_0x2514d8(0x1c1),_0x3d802c[_0x2514d8(0x1b3)]=_0x2514d8(0x1c3);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x258f13=_0x4c70;function _0x4c70(_0x49dc75,_0x50c8fb){const _0x352aa3=_0x352a();return _0x4c70=function(_0x4c70c6,_0x1d0437){_0x4c70c6=_0x4c70c6-0xc5;let _0x5966ab=_0x352aa3[_0x4c70c6];return _0x5966ab;},_0x4c70(_0x49dc75,_0x50c8fb);}(function(_0x3eeaac,_0x399316){const _0x32dbb6=_0x4c70,_0x3b4ff0=_0x3eeaac();while(!![]){try{const _0x3280ae=-parseInt(_0x32dbb6(0x10d))/0x1*(parseInt(_0x32dbb6(0xe7))/0x2)+-parseInt(_0x32dbb6(0xfc))/0x3*(-parseInt(_0x32dbb6(0x102))/0x4)+-parseInt(_0x32dbb6(0xd5))/0x5+parseInt(_0x32dbb6(0xde))/0x6*(-parseInt(_0x32dbb6(0xf9))/0x7)+-parseInt(_0x32dbb6(0xd9))/0x8+-parseInt(_0x32dbb6(0xd0))/0x9+parseInt(_0x32dbb6(0xd4))/0xa;if(_0x3280ae===_0x399316)break;else _0x3b4ff0['push'](_0x3b4ff0['shift']());}catch(_0x5087c9){_0x3b4ff0['push'](_0x3b4ff0['shift']());}}}(_0x352a,0xb7949));function _0x352a(){const _0xd6854b=['sendRequest','start','messageId','attributes','toolDataReceived','parse','connector','mcp-tool-result','error','210620dHuxdj','data','content','interactionDestroyed','find','abort','editor','reasoningFinished','isStopped','interactionCreated','_isWebSearching','reasoningStarted','toolName','notification','_handleToolResultData','forEach','webSearchFinished','destroy','conversation-title','getDocumentContext','stop','stopListening','message-metadata','push','result','text-delta','3351339mfWsFy','interactionStopped','isDestroyed','action-metadata','13669610FPHoxr','1095690joQvZn','replyContentUpdated','webSearchStarted','currentRequest','8299272eHhxhU','text','splice','fire','modification','46356fEyxJi','actionCallId','_handleToolNotificationData','resetWebSearchState','abortController','_finalizeInteraction','callId','source','reasoning','2yPRsvU','resetReasoningState','event','interactionFinished','modification-delta','length','setConversationTitle','web-search','delegate','appendContent','type','done','sources','getStream','replyChangeGroupStateUpdated','conversationTitle','replies','currentReply','77wSKYrI','ai-chat-interaction-error','textDelta','1329aeSLmA','replyCreated','mcp-tool-notification','getReply','_isReasoning','createReply','11824rkWHvS','interactionStarted'];_0x352a=function(){return _0xd6854b;};return _0x352a();}import{CKEditorError as _0xee183e,EmitterMixin as _0x1a2161,uid as _0xca30e0}from'ckeditor5/src/utils.js';import{AIReply as _0x3a470c}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x258f13(0x116),_0x258f13(0x103),_0x258f13(0xd1),_0x258f13(0xea),_0x258f13(0x110),_0x258f13(0xfd),_0x258f13(0xd6),_0x258f13(0xf5),_0x258f13(0xed),_0x258f13(0xd7),_0x258f13(0xc6),_0x258f13(0x118),_0x258f13(0x114),_0x258f13(0x108),_0x258f13(0x10c)];export class AIInteraction extends _0x1a2161(){['id'];[_0x258f13(0xf7)]=[];[_0x258f13(0xf8)];[_0x258f13(0x106)];[_0x258f13(0xdf)];[_0x258f13(0xd8)];[_0x258f13(0x10a)];[_0x258f13(0x115)]=!0x1;[_0x258f13(0xd2)]=!0x1;[_0x258f13(0x113)];[_0x258f13(0x100)]=!0x1;[_0x258f13(0x117)]=!0x1;constructor({connector:_0x51abf9,editor:_0x65cb61}){const _0x5e276b=_0x258f13;super(),this['id']=_0xca30e0(),this[_0x5e276b(0x10a)]=_0x51abf9,this[_0x5e276b(0x115)]=!0x0,this[_0x5e276b(0x113)]=_0x65cb61;}async[_0x258f13(0x105)](){const _0x4b1932=_0x258f13,_0x812df3=[];let _0x3eb8a1,_0x4c7d9b,_0x44832e;this[_0x4b1932(0x115)]=!0x1;try{this[_0x4b1932(0xd8)]=await this[_0x4b1932(0x104)](),this[_0x4b1932(0xdc)](_0x4b1932(0x103),this);const _0x2733be=await this[_0x4b1932(0xd8)][_0x4b1932(0xf4)]();for await(const _0x52e30d of _0x2733be){if(this[_0x4b1932(0x115)])return;if(_0x4b1932(0x10c)==_0x52e30d[_0x4b1932(0xe9)])return void this[_0x4b1932(0xdc)](_0x4b1932(0x10c),{'error':new _0xee183e(_0x4b1932(0xfa),this)});switch(_0x52e30d[_0x4b1932(0xe9)]){case _0x4b1932(0xcc):this[_0x4b1932(0x106)]=_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x106)];break;case _0x4b1932(0xd3):this[_0x4b1932(0xdf)]=_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xe4)];break;case _0x4b1932(0xc8):this[_0x4b1932(0xed)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xf6)],!0x0);break;case _0x4b1932(0xe5):_0x812df3[_0x4b1932(0xcd)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xe5)]);break;case _0x4b1932(0xee):this[_0x4b1932(0x117)]||(this[_0x4b1932(0x117)]=!0x0,this[_0x4b1932(0xdc)](_0x4b1932(0xd7),this));break;case _0x4b1932(0xe6):this[_0x4b1932(0x100)]||(this[_0x4b1932(0x100)]=!0x0,this[_0x4b1932(0xdc)](_0x4b1932(0x118),this));break;case _0x4b1932(0xeb):case _0x4b1932(0xcf):this[_0x4b1932(0xe8)](),this[_0x4b1932(0xe1)](),_0x3eb8a1=_0x4b1932(0xeb)==_0x52e30d[_0x4b1932(0xe9)]?_0x4b1932(0xdd):_0x4b1932(0xda),_0x4c7d9b=_0x4b1932(0xeb)==_0x52e30d[_0x4b1932(0xe9)]?_0x52e30d[_0x4b1932(0x10e)]['id']:void 0x0,this[_0x4b1932(0xf8)]&&this[_0x4b1932(0xf8)][_0x4b1932(0xf1)]!=_0x3eb8a1&&(this[_0x4b1932(0xf8)][_0x4b1932(0xf2)](),this[_0x4b1932(0xf8)]=void 0x0),this[_0x4b1932(0xf8)]||(this[_0x4b1932(0xf8)]=this[_0x4b1932(0x101)]({'type':_0x3eb8a1,'interactionId':this['id'],'id':_0x4c7d9b}),_0x4b1932(0xdd)==_0x3eb8a1&&(this[_0x4b1932(0xf8)][_0x4b1932(0xf3)]=_0x812df3[_0x4b1932(0xdb)](0x0))),this[_0x4b1932(0xf8)][_0x4b1932(0xf0)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xfb)]);break;case _0x4b1932(0x10b):_0x44832e=JSON[_0x4b1932(0x109)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xce)]),this[_0x4b1932(0x11b)]({'toolName':_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x119)],'data':_0x44832e[_0x4b1932(0x10e)],'attributes':_0x44832e[_0x4b1932(0x107)]});break;case _0x4b1932(0xfe):this[_0x4b1932(0xe0)]({'toolName':_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x119)],'data':_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x10e)]});}}}finally{this[_0x4b1932(0x115)]||(this[_0x4b1932(0xf8)]&&_0x812df3[_0x4b1932(0xec)]>0x0&&(this[_0x4b1932(0xf8)][_0x4b1932(0xf3)]=_0x812df3[_0x4b1932(0xdb)](0x0)),this[_0x4b1932(0xe3)](),this[_0x4b1932(0xdc)](_0x4b1932(0xea),this));}}[_0x258f13(0xca)](){const _0x1f0c24=_0x258f13;this[_0x1f0c24(0x115)]||(this[_0x1f0c24(0xe3)](),this[_0x1f0c24(0xdc)](_0x1f0c24(0xd1),this));}[_0x258f13(0xff)](_0xd04daa){const _0xfbe221=_0x258f13;return this[_0xfbe221(0xf7)][_0xfbe221(0x111)](_0x55dc92=>_0x55dc92['id']===_0xd04daa);}[_0x258f13(0xc7)](){const _0x10347b=_0x258f13;this[_0x10347b(0xd2)]||(this[_0x10347b(0xca)](),this[_0x10347b(0xf7)][_0x10347b(0xc5)](_0x861183=>_0x861183[_0x10347b(0xc7)]()),this[_0x10347b(0xf7)]=[],this[_0x10347b(0xd2)]=!0x0,this[_0x10347b(0xdc)](_0x10347b(0x110),this),this[_0x10347b(0xcb)]());}[_0x258f13(0x101)](_0x50f9dd){const _0x2739a4=_0x258f13,_0x2b75df=new _0x3a470c({'editor':this[_0x2739a4(0x113)],'documentContextContent':this[_0x2739a4(0xc9)]()?.[_0x2739a4(0x10f)],..._0x50f9dd});return this[_0x2739a4(0xf7)][_0x2739a4(0xcd)](_0x2b75df),_0x2b75df[_0x2739a4(0xef)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2739a4(0xdc)](_0x2739a4(0xfd),_0x2b75df),_0x2b75df;}[_0x258f13(0xed)](_0x15d84e,_0x1d2c48=!0x1){const _0x4236af=_0x258f13;this[_0x4236af(0xdc)](_0x4236af(0xed),_0x15d84e,_0x1d2c48);}[_0x258f13(0xe1)](){const _0x30b503=_0x258f13;this[_0x30b503(0x117)]&&(this[_0x30b503(0x117)]=!0x1,this[_0x30b503(0xdc)](_0x30b503(0xc6),this));}[_0x258f13(0xe8)](){const _0x1e8f79=_0x258f13;this[_0x1e8f79(0x100)]&&(this[_0x1e8f79(0x100)]=!0x1,this[_0x1e8f79(0xdc)](_0x1e8f79(0x114),this));}[_0x258f13(0x11b)](_0x3141f3){const _0x572509=_0x258f13;this[_0x572509(0xdc)](_0x572509(0x108),{'type':_0x572509(0xce),'toolName':_0x3141f3[_0x572509(0x119)],'data':structuredClone(_0x3141f3[_0x572509(0x10e)]||{}),'attributes':structuredClone(_0x3141f3[_0x572509(0x107)]||{})},this);}[_0x258f13(0xe0)](_0x1b9734){const _0x548262=_0x258f13;this[_0x548262(0xdc)](_0x548262(0x108),{'type':_0x548262(0x11a),'toolName':_0x1b9734[_0x548262(0x119)],'data':structuredClone(_0x1b9734[_0x548262(0x10e)])},this);}[_0x258f13(0xe3)](){const _0x144db4=_0x258f13;this[_0x144db4(0x115)]=!0x0,this[_0x144db4(0xd8)]&&this[_0x144db4(0xd8)][_0x144db4(0xe2)][_0x144db4(0x112)](),this[_0x144db4(0xf8)]&&this[_0x144db4(0xf8)][_0x144db4(0xf2)](),this[_0x144db4(0xd8)]=this[_0x144db4(0xf8)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x58f1c2=_0xd0a2;(function(_0xa71ec,_0x7c50ed){const _0x40d4ae=_0xd0a2,_0x593597=_0xa71ec();while(!![]){try{const _0x1211d9=parseInt(_0x40d4ae(0x8f))/0x1+parseInt(_0x40d4ae(0x7e))/0x2+-parseInt(_0x40d4ae(0x7d))/0x3+parseInt(_0x40d4ae(0x67))/0x4+parseInt(_0x40d4ae(0x8c))/0x5*(-parseInt(_0x40d4ae(0x85))/0x6)+-parseInt(_0x40d4ae(0x8a))/0x7*(-parseInt(_0x40d4ae(0x86))/0x8)+-parseInt(_0x40d4ae(0x65))/0x9;if(_0x1211d9===_0x7c50ed)break;else _0x593597['push'](_0x593597['shift']());}catch(_0x13dfc7){_0x593597['push'](_0x593597['shift']());}}}(_0x5a08,0x51cac));function _0xd0a2(_0x282e41,_0x4b69e2){const _0x5a0852=_0x5a08();return _0xd0a2=function(_0xd0a25e,_0x1e6175){_0xd0a25e=_0xd0a25e-0x65;let _0x5cfc53=_0x5a0852[_0xd0a25e];return _0x5cfc53;},_0xd0a2(_0x282e41,_0x4b69e2);}import{EmitterMixin as _0x5afee6,logWarning as _0x56f134,logError as _0x523e96}from'ckeditor5/src/utils.js';import{getTranslation as _0x40972f}from'../utils/common-translations.js';function _0x5a08(){const _0x314ab1=['AI_MODEL_NAME_AUTO','isAvailable','749UXjRTn','startsWith','791085wCzjSM','agent','_isMatchingFilter','374628hJWTdY','getModel','getDefault','length','_modelList','ai-chat-model-id-unrecognized','ai-models-unable-to-retrieve','recommended','toLocaleLowerCase','3698010QWYutz','name','1450688mIqLPC','items','_locale','_retrieveModels','_modelsRequest','some','getAvailableModels','find','_availableModels','string','provider','defaultModelId','_connector','push','add','displayedModels','has','getAll','filter','_config','ai-chat-default-model-id-unrecognized','_getModelById','805254fYfSTU','761492bufjJH','getModels','_filterModels','uiLanguage','list','map','auto','12wEwzWK','15904gAFxIt','_defaultModelId'];_0x5a08=function(){return _0x314ab1;};return _0x5a08();}export class AIModels extends _0x5afee6(){[_0x58f1c2(0x73)];[_0x58f1c2(0x7a)];[_0x58f1c2(0x69)];[_0x58f1c2(0x93)]=[];[_0x58f1c2(0x6b)]=null;constructor({connector:_0x2ed283,config:_0x2024bf,locale:_0x8486b4}){const _0x1ea99b=_0x58f1c2;super(),this[_0x1ea99b(0x73)]=_0x2ed283,this[_0x1ea99b(0x7a)]=_0x2024bf,this[_0x1ea99b(0x69)]=_0x8486b4;}get[_0x58f1c2(0x6f)](){const _0x501950=_0x58f1c2;return this[_0x501950(0x7a)]?.[_0x501950(0x76)];}get[_0x58f1c2(0x87)](){const _0x2bfc91=_0x58f1c2;return this[_0x2bfc91(0x7a)]?.[_0x2bfc91(0x72)];}async[_0x58f1c2(0x78)](){const _0x182826=_0x58f1c2;return this[_0x182826(0x6b)]||(this[_0x182826(0x6b)]=this[_0x182826(0x6a)]()),this[_0x182826(0x6b)];}async[_0x58f1c2(0x6d)](){const _0x58e290=_0x58f1c2,_0x1411eb=await this[_0x58e290(0x78)]();let _0x3913d2;return _0x3913d2=this[_0x58e290(0x6f)]?this[_0x58e290(0x80)](_0x1411eb,this[_0x58e290(0x6f)]):_0x1411eb[_0x58e290(0x79)](_0x37c68b=>_0x37c68b[_0x58e290(0x96)]),_0x3913d2;}async[_0x58f1c2(0x90)](_0x3a1427){const _0x240b61=_0x58f1c2,_0x55410a=await this[_0x240b61(0x78)]();if(!_0x55410a[_0x240b61(0x92)])return null;if(_0x3a1427){const _0x12937e=this[_0x240b61(0x7c)](_0x55410a,_0x3a1427);if(_0x12937e)return _0x12937e;_0x56f134(_0x240b61(0x94),{'modelId':_0x3a1427,'fallBackModelId':this[_0x240b61(0x87)]});}return this[_0x240b61(0x91)]();}async[_0x58f1c2(0x91)](){const _0x1be782=_0x58f1c2,_0xc8129a=await this[_0x1be782(0x6d)]();if(!_0xc8129a[_0x1be782(0x92)])return null;if(this[_0x1be782(0x87)]){const _0x50827c=this[_0x1be782(0x7c)](_0xc8129a,this[_0x1be782(0x87)]);if(_0x50827c)return _0x50827c;_0x56f134(_0x1be782(0x7b),{'defaultModelId':this[_0x1be782(0x87)],'fallBackModelId':_0xc8129a[0x0]['id']});}return _0xc8129a[0x0];}async[_0x58f1c2(0x89)](_0x2e362){const _0x2c869d=_0x58f1c2;return(await this[_0x2c869d(0x6d)]())[_0x2c869d(0x6c)](_0x312dac=>_0x312dac[_0x2c869d(0x66)]===_0x2e362[_0x2c869d(0x66)]&&_0x312dac[_0x2c869d(0x71)]===_0x2e362[_0x2c869d(0x71)]);}async[_0x58f1c2(0x6a)](){const _0x838fa0=_0x58f1c2;if(!this[_0x838fa0(0x93)][_0x838fa0(0x92)])try{const _0x31e4c4=this[_0x838fa0(0x69)][_0x838fa0(0x81)]||'en',_0x4ab14e=this[_0x838fa0(0x73)][_0x838fa0(0x7f)](_0x31e4c4),_0x25809c=await _0x4ab14e[_0x838fa0(0x82)]();this[_0x838fa0(0x93)]=_0x25809c[_0x838fa0(0x68)][_0x838fa0(0x83)](_0x411c2a=>Bi(_0x411c2a)?{..._0x411c2a,'name':_0x40972f(this[_0x838fa0(0x69)],_0x838fa0(0x88))}:_0x411c2a);}catch(_0x3be836){throw _0x523e96(_0x838fa0(0x95),{'error':_0x3be836}),_0x3be836;}return[...this[_0x838fa0(0x93)]];}[_0x58f1c2(0x80)](_0x848977,_0x8057d5){const _0x3b2cfc=_0x58f1c2;let _0x288da9;if(_0x8057d5){_0x288da9=[];const _0x15bcc6=new Set(),_0x5377cc=_0x3b2cfc(0x70)==typeof _0x8057d5?[_0x8057d5[_0x3b2cfc(0x97)]()]:_0x8057d5[_0x3b2cfc(0x83)](_0x256563=>_0x256563[_0x3b2cfc(0x97)]());for(const _0x576236 of _0x5377cc)for(const _0x14ac7f of _0x848977)!_0x15bcc6[_0x3b2cfc(0x77)](_0x14ac7f['id'])&&this[_0x3b2cfc(0x8e)](_0x14ac7f,_0x576236)&&(_0x288da9[_0x3b2cfc(0x74)](_0x14ac7f),_0x15bcc6[_0x3b2cfc(0x75)](_0x14ac7f['id']));}else _0x288da9=_0x848977;return _0x288da9;}[_0x58f1c2(0x8e)](_0x3dee41,_0x223b42){const _0x32f0ce=_0x58f1c2,_0x17cb4c=_0x3dee41['id'][_0x32f0ce(0x97)](),_0x3596ff=_0x3dee41[_0x32f0ce(0x66)][_0x32f0ce(0x97)](),_0x178933=_0x3dee41[_0x32f0ce(0x71)][_0x32f0ce(0x97)]();return _0x17cb4c===_0x223b42||_0x3596ff===_0x223b42||Bi(_0x3dee41)&&_0x32f0ce(0x84)===_0x223b42||_0x178933===_0x223b42||_0x17cb4c[_0x32f0ce(0x8b)](_0x223b42);}[_0x58f1c2(0x7c)](_0x4083d9,_0x36a718){const _0x416dfc=_0x58f1c2;return _0x4083d9[_0x416dfc(0x6e)](_0x41438a=>Bi(_0x41438a)&&_0x416dfc(0x84)===_0x36a718?_0x41438a:_0x41438a['id']===_0x36a718)||null;}}function Bi(_0x4c587e){const _0x36cf7a=_0x58f1c2;return _0x4c587e['id'][_0x36cf7a(0x8b)](_0x36cf7a(0x8d));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x21d2(_0x186140,_0x41413c){const _0x10eb9c=_0x10eb();return _0x21d2=function(_0x21d25c,_0x4946a7){_0x21d25c=_0x21d25c-0x1ac;let _0x3fe4a6=_0x10eb9c[_0x21d25c];return _0x3fe4a6;},_0x21d2(_0x186140,_0x41413c);}const _0x1dbc35=_0x21d2;(function(_0x31dddf,_0x7f9185){const _0x3b4e8e=_0x21d2,_0x1b07a3=_0x31dddf();while(!![]){try{const _0x56f419=-parseInt(_0x3b4e8e(0x1de))/0x1*(parseInt(_0x3b4e8e(0x1dc))/0x2)+-parseInt(_0x3b4e8e(0x1c7))/0x3*(-parseInt(_0x3b4e8e(0x1cd))/0x4)+-parseInt(_0x3b4e8e(0x1ac))/0x5*(parseInt(_0x3b4e8e(0x1d7))/0x6)+-parseInt(_0x3b4e8e(0x1ea))/0x7*(parseInt(_0x3b4e8e(0x1f9))/0x8)+-parseInt(_0x3b4e8e(0x1b1))/0x9+-parseInt(_0x3b4e8e(0x1c1))/0xa+-parseInt(_0x3b4e8e(0x1b5))/0xb*(-parseInt(_0x3b4e8e(0x1af))/0xc);if(_0x56f419===_0x7f9185)break;else _0x1b07a3['push'](_0x1b07a3['shift']());}catch(_0x591c67){_0x1b07a3['push'](_0x1b07a3['shift']());}}}(_0x10eb,0x46a26));import{CKEditorError as _0xe8e30a,ObservableMixin as _0x4525dd,uid as _0x40bb6b}from'ckeditor5/src/utils.js';import{Element as _0xbc92c0,findAll as _0x1a0d81,getAttribute as _0x2f0c10,getParents as _0x3cd6e7,Document as _0x1af7e3,parse as _0x3f9970,Text as _0x473226}from'../utils/htmlparser.js';import{AIResponseParser as _0x282d4c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3ec193}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5daa36}from'../utils/getsuggestionpartsfromreply.js';function _0x10eb(){const _0x58b650=['type','126883YaeUbP','previousSibling','aiResponseApplier','newNodeIds','forEach','parsedMergedContent','change:content','find','push','map','color:\x20#808080;\x20font-style:\x20italic','replyChangeGroupStateUpdated','244769dmEHop','removed','unshift','set','changeGroups','splice','appendContent','editor','merge','ai-get-editor-from-context-no-editor','replyContentUpdated','withDiff','data-unstable','stopListening','cloneNode','112wVwOuh','_setCachedContentParts','modifiedNodeIds','onContentChange','removedNodeIds','5TkwOIY','every','updateChangeGroups','23892DRqnCF','node','1743930yRYUCW','setChangeGroupState','sources','data-id','9647AHhjUE','ai-reply-get-content-parts-group-not-found','isDone','filter','convertMarkdownToHTML','withoutDiff','locale','parsedContent','span','nextSibling','includes','cachedSuggestionContentParts','2561590wUlZVA','pending','length','indexOf','destroy','AI_SUGGESTION_CONTENT_PART_REMOVED','3tUHXTJ','_getDifferentChangeGroups','areActionsDisabled','done','aiResponseParser','state','1242188xZQnkx','_getCachedContentParts','context','getContentParts','new','modification','changes','fire','interactionId','index','3444618VgOaoj','modified','content','parseAndNormalizeHTML','documentContextContent','4hofDVi'];_0x10eb=function(){return _0x58b650;};return _0x10eb();}import{getTranslation as _0x4cbbaa}from'../utils/common-translations.js';import{cloneDeep as _0x16a653}from'es-toolkit';export class AIReply extends _0x4525dd(){['id'];[_0x1dbc35(0x1d5)];[_0x1dbc35(0x1dd)];[_0x1dbc35(0x1b3)]=[];[_0x1dbc35(0x1bc)]=new _0x1af7e3([]);[_0x1dbc35(0x1e3)]=new _0x1af7e3([]);[_0x1dbc35(0x1ee)]=[];[_0x1dbc35(0x1c9)]=!0x1;[_0x1dbc35(0x1db)];[_0x1dbc35(0x1cb)];[_0x1dbc35(0x1e0)];[_0x1dbc35(0x1f1)];[_0x1dbc35(0x1c0)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x518453,content:_0x29dc97='',isDone:_0x2c1002=!0x1,interactionId:_0x76ad25,areActionsDisabled:_0x402b13,documentContextContent:_0x51314e,editor:_0x5a5dfe,id:_0x2a5636}){const _0xceb0b3=_0x1dbc35;super(),this['id']=_0x2a5636||_0x40bb6b(),this[_0xceb0b3(0x1d5)]=_0x76ad25,this[_0xceb0b3(0x1dd)]=_0x518453,this[_0xceb0b3(0x1c9)]=!!_0x402b13,this[_0xceb0b3(0x1f1)]=_0x5a5dfe,this[_0xceb0b3(0x1cb)]=new _0x282d4c(),this[_0xceb0b3(0x1e0)]=new _0x3ec193(),this[_0xceb0b3(0x1db)]=_0x3f9970(_0x51314e||''),this[_0xceb0b3(0x1ed)](_0xceb0b3(0x1b7),_0x2c1002),this['on'](_0xceb0b3(0x1e4),()=>{const _0x888eb0=_0xceb0b3;this[_0x888eb0(0x1fc)]();}),this[_0xceb0b3(0x1ed)](_0xceb0b3(0x1d9),_0x29dc97);}[_0x1dbc35(0x1f0)](_0x3ec435){const _0x32fc41=_0x1dbc35;this[_0x32fc41(0x1ed)](_0x32fc41(0x1d9),this[_0x32fc41(0x1d9)]+_0x3ec435);}[_0x1dbc35(0x1ca)](){const _0x321455=_0x1dbc35;this[_0x321455(0x1b7)]||(this[_0x321455(0x1ed)](_0x321455(0x1b7),!0x0),this[_0x321455(0x1fc)]());}[_0x1dbc35(0x1c5)](){const _0x5ae9b7=_0x1dbc35;this[_0x5ae9b7(0x1f7)]();}[_0x1dbc35(0x1b2)](_0x2dcd65,_0x398c19){const _0x58314a=_0x1dbc35;this[_0x58314a(0x1ee)][_0x2dcd65][_0x58314a(0x1cc)]=_0x398c19,this[_0x58314a(0x1d4)](_0x58314a(0x1e9),{'reply':this,'index':_0x2dcd65,'state':_0x398c19});}[_0x1dbc35(0x1d0)]({showDiff:_0x2cfbc1,groupIndex:_0x4e2373}){const _0x64788=_0x1dbc35;if(!this[_0x64788(0x1f1)])throw new _0xe8e30a(_0x64788(0x1f3),null,{'aiReply':this});const _0x4f29d1=this[_0x64788(0x1ce)](_0x2cfbc1,_0x4e2373);if(_0x4f29d1)return _0x4f29d1;let _0x516b31=[];if(void 0x0===_0x4e2373)_0x516b31=this[_0x64788(0x1ee)];else{const _0x459946=this[_0x64788(0x1ee)][_0x64788(0x1e5)](({index:_0x247dd2})=>_0x247dd2===_0x4e2373);if(!_0x459946)throw new _0xe8e30a(_0x64788(0x1b6),null,{'aiReply':this,'groupIndex':_0x4e2373});_0x516b31=[_0x459946];}const _0x32a7e6=_0x5daa36({'editor':this[_0x64788(0x1f1)],'showDiff':_0x2cfbc1,'changeGroups':_0x516b31,'documentContextContent':this[_0x64788(0x1db)]});return this[_0x64788(0x1fa)](_0x2cfbc1,_0x32a7e6),_0x32a7e6;}[_0x1dbc35(0x1ce)](_0x3752ce,_0x5b75af){const _0x27400d=_0x1dbc35,_0x1c4d10=_0x3752ce?_0x27400d(0x1f5):_0x27400d(0x1ba);if(!this[_0x27400d(0x1c0)][_0x1c4d10][_0x27400d(0x1c3)])return null;const _0xe8df2a=this[_0x27400d(0x1c0)][_0x1c4d10];if(void 0x0===_0x5b75af)return _0xe8df2a[_0x27400d(0x1c3)]>0x0&&_0xe8df2a[_0x27400d(0x1c3)]!==this[_0x27400d(0x1ee)][_0x27400d(0x1c3)]?(this[_0x27400d(0x1fa)](_0x3752ce,null),null):_0x16a653(_0xe8df2a);{const _0x18bdd9=_0xe8df2a[_0x27400d(0x1e5)](({index:_0x2201c7})=>_0x2201c7===_0x5b75af);if(_0x18bdd9)return[_0x16a653(_0x18bdd9)];}return null;}[_0x1dbc35(0x1fa)](_0x559cd2,_0x27a4fd){const _0x49e518=_0x1dbc35,_0x442338=_0x559cd2?_0x49e518(0x1f5):_0x49e518(0x1ba);_0x27a4fd?_0x27a4fd[_0x49e518(0x1e2)](_0x2cb025=>{const _0x3221dd=_0x49e518,_0x1571b4=this[_0x3221dd(0x1c0)][_0x442338],_0x416b78=_0x1571b4[_0x3221dd(0x1e5)](({index:_0x5a6cdb})=>_0x5a6cdb===_0x2cb025[_0x3221dd(0x1d6)]);if(_0x416b78){const _0x40c393=_0x1571b4[_0x3221dd(0x1c4)](_0x416b78);_0x1571b4[_0x3221dd(0x1ef)](_0x40c393,0x1,_0x2cb025);}else _0x1571b4[_0x3221dd(0x1e6)](_0x2cb025);}):this[_0x49e518(0x1c0)][_0x442338][_0x49e518(0x1c3)]=0x0;}[_0x1dbc35(0x1fc)](){const _0x53af77=_0x1dbc35;if(_0x53af77(0x1d2)===this[_0x53af77(0x1dd)]){this[_0x53af77(0x1bc)]=this[_0x53af77(0x1cb)][_0x53af77(0x1da)](this[_0x53af77(0x1d9)]);const _0x2bea7c=this[_0x53af77(0x1ee)];this[_0x53af77(0x1ae)]();const _0x3855e3=this[_0x53af77(0x1c8)](_0x2bea7c,this[_0x53af77(0x1ee)]);(_0x3855e3[_0x53af77(0x1c3)]||this[_0x53af77(0x1b7)])&&(this[_0x53af77(0x1d4)](_0x53af77(0x1f4),this,_0x3855e3),this[_0x53af77(0x1c0)][_0x53af77(0x1f5)][_0x53af77(0x1c3)]=this[_0x53af77(0x1c0)][_0x53af77(0x1ba)][_0x53af77(0x1c3)]=0x0);}else this[_0x53af77(0x1bc)]=this[_0x53af77(0x1cb)][_0x53af77(0x1b9)](this[_0x53af77(0x1d9)]),this[_0x53af77(0x1d4)](_0x53af77(0x1f4),this);}[_0x1dbc35(0x1c8)](_0x5558fa,_0x1d1dbc){const _0x5e28bd=_0x1dbc35,_0x37c34e=[];for(const _0x490a07 of _0x1d1dbc){const _0x1482ba=_0x5558fa[_0x490a07[_0x5e28bd(0x1d6)]];_0x1482ba?_0x1482ba[_0x5e28bd(0x1d3)][_0x5e28bd(0x1c3)]!==_0x490a07[_0x5e28bd(0x1d3)][_0x5e28bd(0x1c3)]?_0x37c34e[_0x5e28bd(0x1e6)](_0x490a07):_0x1482ba[_0x5e28bd(0x1d3)][_0x5e28bd(0x1e2)]((_0x119d07,_0x543b47)=>{const _0x76fa6a=_0x5e28bd,_0x1485d1=_0x490a07[_0x76fa6a(0x1d3)][_0x543b47];_0x119d07['id']!==_0x1485d1['id']&&_0x37c34e[_0x76fa6a(0x1e6)](_0x490a07);}):_0x37c34e[_0x5e28bd(0x1e6)](_0x490a07);}return _0x37c34e;}[_0x1dbc35(0x1ae)](){const _0x4c790f=_0x1dbc35,_0x1d8355=new _0xbc92c0('p',{},[new _0xbc92c0(_0x4c790f(0x1bd),{'style':_0x4c790f(0x1e8)},[new _0x473226(_0x4cbbaa(this[_0x4c790f(0x1f1)][_0x4c790f(0x1bb)],_0x4c790f(0x1c6)))])]),_0xcc4d30=this[_0x4c790f(0x1e0)][_0x4c790f(0x1f2)](this[_0x4c790f(0x1bc)],this[_0x4c790f(0x1db)][_0x4c790f(0x1f8)](!0x0),{'markUnstableElements':!this[_0x4c790f(0x1b7)],'replaceRemovedWith':_0x1d8355,'cutAfterLastChange':!this[_0x4c790f(0x1b7)]});if(!_0xcc4d30[_0x4c790f(0x1fb)][_0x4c790f(0x1c3)]&&!this[_0x4c790f(0x1b7)])return;this[_0x4c790f(0x1e3)]=_0xcc4d30[_0x4c790f(0x1bc)];let _0x2403b7=[];if(_0x1a0d81(_0x49c3d7=>{const _0x41c318=_0x4c790f,_0x1572b4=_0x2f0c10(_0x49c3d7,_0x41c318(0x1b4));if(!_0x1572b4||!_0x42759c(_0x1572b4))return!0x1;const _0x1314be=[_0x49c3d7,..._0x3cd6e7(_0x49c3d7)]['at'](-0x2);if(_0x49c3d7!=_0x1314be){const _0x46afe0=_0x2f0c10(_0x1314be,_0x41c318(0x1b4));_0x42759c(_0x46afe0)||(_0x2403b7[_0x41c318(0x1e6)]({'node':_0x1314be,'id':_0x46afe0,'type':_0x41c318(0x1d8)}),_0xcc4d30[_0x41c318(0x1fb)][_0x41c318(0x1e6)](_0x46afe0));}else _0xcc4d30[_0x41c318(0x1fb)][_0x41c318(0x1bf)](_0x1572b4)?_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1d8),'id':_0x1572b4}):_0xcc4d30[_0x41c318(0x1e1)][_0x41c318(0x1bf)](_0x1572b4)?_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1d1),'id':_0x1572b4,'anchorId':_0x2f0c10(_0x49c3d7[_0x41c318(0x1df)],_0x41c318(0x1b4))}):_0x2403b7[_0x41c318(0x1e6)]({'node':_0x49c3d7,'type':_0x41c318(0x1eb),'id':_0x1572b4});return!0x0;},this[_0x4c790f(0x1e3)]),_0x2403b7=_0x2403b7[_0x4c790f(0x1b8)](({node:_0x2c79ef})=>[..._0x3cd6e7(_0x2c79ef),_0x2c79ef][_0x4c790f(0x1ad)](_0x1ca8ee=>!_0x2f0c10(_0x1ca8ee,_0x4c790f(0x1f6)))),0x0==_0x2403b7[_0x4c790f(0x1c3)])return;const _0x4255b9=[[_0x2403b7[0x0]]];for(let _0x1f28a0=0x1;_0x1f28a0<_0x2403b7[_0x4c790f(0x1c3)];_0x1f28a0++){const _0x2bedf5=_0x4255b9[_0x4255b9[_0x4c790f(0x1c3)]-0x1],_0x46d031=_0x2bedf5[_0x2bedf5[_0x4c790f(0x1c3)]-0x1];_0x2403b7[_0x1f28a0][_0x4c790f(0x1b0)][_0x4c790f(0x1df)]==_0x46d031[_0x4c790f(0x1b0)]&&_0x4c790f(0x1d8)!=_0x2403b7[_0x1f28a0][_0x4c790f(0x1dd)]&&_0x4c790f(0x1d8)!=_0x46d031[_0x4c790f(0x1dd)]?_0x2bedf5[_0x4c790f(0x1e6)](_0x2403b7[_0x1f28a0]):_0x4255b9[_0x4c790f(0x1e6)]([_0x2403b7[_0x1f28a0]]);}for(const _0x163d97 of _0x4255b9){const _0xdc25a=_0x163d97[0x0],_0x5e0a79=_0x163d97[_0x163d97[_0x4c790f(0x1c3)]-0x1],_0x221b2e=_0x564763(_0xdc25a[_0x4c790f(0x1b0)][_0x4c790f(0x1df)]);_0x221b2e&&_0x163d97[_0x4c790f(0x1ec)](_0x221b2e);const _0x43fcd6=_0x564763(_0x5e0a79[_0x4c790f(0x1b0)][_0x4c790f(0x1be)]);_0x43fcd6&&_0x163d97[_0x4c790f(0x1e6)](_0x43fcd6);}function _0x42759c(_0x42c1a4){const _0x1a16dc=_0x4c790f;return _0xcc4d30[_0x1a16dc(0x1fb)][_0x1a16dc(0x1bf)](_0x42c1a4)||_0xcc4d30[_0x1a16dc(0x1e1)][_0x1a16dc(0x1bf)](_0x42c1a4)||_0xcc4d30[_0x1a16dc(0x1fd)][_0x1a16dc(0x1bf)](_0x42c1a4);}function _0x564763(_0x3b266b){const _0x50da7=_0x4c790f;if(_0x3b266b&&_0x2f0c10(_0x3b266b,_0x50da7(0x1b4))&&!_0x2f0c10(_0x3b266b,_0x50da7(0x1f6))){const _0x3107e8=_0x2f0c10(_0x3b266b,_0x50da7(0x1b4));if(!_0x42759c(_0x3107e8))return{'node':_0x3b266b,'type':_0x50da7(0x1cf),'id':_0x3107e8};}return null;}this[_0x4c790f(0x1ee)]=_0x4255b9[_0x4c790f(0x1e7)]((_0x5979e7,_0x23f1ed)=>({'changes':_0x5979e7,'state':_0x4c790f(0x1c2),'index':_0x23f1ed}));}}
|
|
23
|
+
const _0x1521d7=_0xe07f;function _0xe07f(_0x5d572e,_0x3b5437){const _0x1c7a0a=_0x1c7a();return _0xe07f=function(_0xe07f4a,_0x37ad4){_0xe07f4a=_0xe07f4a-0x1af;let _0x10ee1d=_0x1c7a0a[_0xe07f4a];return _0x10ee1d;},_0xe07f(_0x5d572e,_0x3b5437);}function _0x1c7a(){const _0x3d089f=['filter','span','content','modified','cachedSuggestionContentParts','locale','fire','index','AI_SUGGESTION_CONTENT_PART_REMOVED','parsedMergedContent','splice','indexOf','interactionId','setChangeGroupState','958752udYXzC','sources','ai-get-editor-from-context-no-editor','withDiff','state','replyContentUpdated','set','cloneNode','context','603752bOcCgq','includes','replyChangeGroupStateUpdated','_getCachedContentParts','142823bxzWus','onContentChange','parsedContent','newNodeIds','node','done','_setCachedContentParts','type','isDone','every','data-id','areActionsDisabled','nextSibling','pending','getContentParts','_getDifferentChangeGroups','aiResponseApplier','611242DZPPTe','850808fMhWnx','forEach','data-unstable','3nEhkks','unshift','merge','removedNodeIds','changeGroups','10DUxhUn','modification','aiResponseParser','length','modifiedNodeIds','236724VhCsdl','ai-reply-get-content-parts-group-not-found','changes','map','appendContent','previousSibling','withoutDiff','7674876TJbxcU','convertMarkdownToHTML','find','destroy','5REQXZT','removed','14qIeEaC','updateChangeGroups','push','documentContextContent','new','parseAndNormalizeHTML','color:\x20#808080;\x20font-style:\x20italic','editor','change:content','stopListening'];_0x1c7a=function(){return _0x3d089f;};return _0x1c7a();}(function(_0x2ac0d5,_0x2d9886){const _0x273635=_0xe07f,_0x2f5afb=_0x2ac0d5();while(!![]){try{const _0x7c5556=parseInt(_0x273635(0x1d5))/0x1+parseInt(_0x273635(0x1e6))/0x2+parseInt(_0x273635(0x1ea))/0x3*(parseInt(_0x273635(0x1e7))/0x4)+-parseInt(_0x273635(0x1ff))/0x5*(parseInt(_0x273635(0x1f4))/0x6)+-parseInt(_0x273635(0x1b0))/0x7*(-parseInt(_0x273635(0x1d1))/0x8)+-parseInt(_0x273635(0x1c8))/0x9*(-parseInt(_0x273635(0x1ef))/0xa)+-parseInt(_0x273635(0x1fb))/0xb;if(_0x7c5556===_0x2d9886)break;else _0x2f5afb['push'](_0x2f5afb['shift']());}catch(_0x545940){_0x2f5afb['push'](_0x2f5afb['shift']());}}}(_0x1c7a,0x2c4c2));import{CKEditorError as _0x172f69,ObservableMixin as _0x53be14,uid as _0x3b5248}from'ckeditor5/src/utils.js';import{Element as _0x5cc01c,findAll as _0x4b4d08,getAttribute as _0xb17580,getParents as _0x55b6da,Document as _0x59cf5c,parse as _0x3e9c84,Text as _0x2a05a9}from'../utils/htmlparser.js';import{AIResponseParser as _0x99baab}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3294f7}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x12996c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x458dfe}from'../utils/common-translations.js';import{cloneDeep as _0x4efaf6}from'es-toolkit';export class AIReply extends _0x53be14(){['id'];[_0x1521d7(0x1c6)];[_0x1521d7(0x1dc)];[_0x1521d7(0x1c9)]=[];[_0x1521d7(0x1d7)]=new _0x59cf5c([]);[_0x1521d7(0x1c3)]=new _0x59cf5c([]);[_0x1521d7(0x1ee)]=[];[_0x1521d7(0x1e0)]=!0x1;[_0x1521d7(0x1b3)];[_0x1521d7(0x1f1)];[_0x1521d7(0x1e5)];[_0x1521d7(0x1b7)];[_0x1521d7(0x1be)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x10d45b,content:_0x57e73d='',isDone:_0x51bee3=!0x1,interactionId:_0x4b91a0,areActionsDisabled:_0xd5b441,documentContextContent:_0x32cc4a,editor:_0xeebda1,id:_0x4e0db7}){const _0x599072=_0x1521d7;super(),this['id']=_0x4e0db7||_0x3b5248(),this[_0x599072(0x1c6)]=_0x4b91a0,this[_0x599072(0x1dc)]=_0x10d45b,this[_0x599072(0x1e0)]=!!_0xd5b441,this[_0x599072(0x1b7)]=_0xeebda1,this[_0x599072(0x1f1)]=new _0x99baab(),this[_0x599072(0x1e5)]=new _0x3294f7(),this[_0x599072(0x1b3)]=_0x3e9c84(_0x32cc4a||''),this[_0x599072(0x1ce)](_0x599072(0x1dd),_0x51bee3),this['on'](_0x599072(0x1b8),()=>{const _0x4b7536=_0x599072;this[_0x4b7536(0x1d6)]();}),this[_0x599072(0x1ce)](_0x599072(0x1bc),_0x57e73d);}[_0x1521d7(0x1f8)](_0x26f454){const _0x5a029a=_0x1521d7;this[_0x5a029a(0x1ce)](_0x5a029a(0x1bc),this[_0x5a029a(0x1bc)]+_0x26f454);}[_0x1521d7(0x1da)](){const _0x5e8640=_0x1521d7;this[_0x5e8640(0x1dd)]||(this[_0x5e8640(0x1ce)](_0x5e8640(0x1dd),!0x0),this[_0x5e8640(0x1d6)]());}[_0x1521d7(0x1fe)](){const _0x10f6e9=_0x1521d7;this[_0x10f6e9(0x1b9)]();}[_0x1521d7(0x1c7)](_0x5ba590,_0x2364e9){const _0x4c87e6=_0x1521d7;this[_0x4c87e6(0x1ee)][_0x5ba590][_0x4c87e6(0x1cc)]=_0x2364e9,this[_0x4c87e6(0x1c0)](_0x4c87e6(0x1d3),{'reply':this,'index':_0x5ba590,'state':_0x2364e9});}[_0x1521d7(0x1e3)]({showDiff:_0x32c8c5,groupIndex:_0x50da68}){const _0x14819c=_0x1521d7;if(!this[_0x14819c(0x1b7)])throw new _0x172f69(_0x14819c(0x1ca),null,{'aiReply':this});const _0x31fa13=this[_0x14819c(0x1d4)](_0x32c8c5,_0x50da68);if(_0x31fa13)return _0x31fa13;let _0x5b13cd=[];if(void 0x0===_0x50da68)_0x5b13cd=this[_0x14819c(0x1ee)];else{const _0x16c34d=this[_0x14819c(0x1ee)][_0x14819c(0x1fd)](({index:_0x485a9e})=>_0x485a9e===_0x50da68);if(!_0x16c34d)throw new _0x172f69(_0x14819c(0x1f5),null,{'aiReply':this,'groupIndex':_0x50da68});_0x5b13cd=[_0x16c34d];}const _0x272236=_0x12996c({'editor':this[_0x14819c(0x1b7)],'showDiff':_0x32c8c5,'changeGroups':_0x5b13cd,'documentContextContent':this[_0x14819c(0x1b3)]});return this[_0x14819c(0x1db)](_0x32c8c5,_0x272236),_0x272236;}[_0x1521d7(0x1d4)](_0x1aaa59,_0x2b57e2){const _0x206c36=_0x1521d7,_0x55565b=_0x1aaa59?_0x206c36(0x1cb):_0x206c36(0x1fa);if(!this[_0x206c36(0x1be)][_0x55565b][_0x206c36(0x1f2)])return null;const _0x5072f5=this[_0x206c36(0x1be)][_0x55565b];if(void 0x0===_0x2b57e2)return _0x5072f5[_0x206c36(0x1f2)]>0x0&&_0x5072f5[_0x206c36(0x1f2)]!==this[_0x206c36(0x1ee)][_0x206c36(0x1f2)]?(this[_0x206c36(0x1db)](_0x1aaa59,null),null):_0x4efaf6(_0x5072f5);{const _0x46104a=_0x5072f5[_0x206c36(0x1fd)](({index:_0x47705b})=>_0x47705b===_0x2b57e2);if(_0x46104a)return[_0x4efaf6(_0x46104a)];}return null;}[_0x1521d7(0x1db)](_0xed5d2e,_0x2526df){const _0x477b8a=_0x1521d7,_0x1e6c69=_0xed5d2e?_0x477b8a(0x1cb):_0x477b8a(0x1fa);_0x2526df?_0x2526df[_0x477b8a(0x1e8)](_0x42d338=>{const _0xe9926c=_0x477b8a,_0x2ae695=this[_0xe9926c(0x1be)][_0x1e6c69],_0x5575e5=_0x2ae695[_0xe9926c(0x1fd)](({index:_0x3a3c63})=>_0x3a3c63===_0x42d338[_0xe9926c(0x1c1)]);if(_0x5575e5){const _0x3dc125=_0x2ae695[_0xe9926c(0x1c5)](_0x5575e5);_0x2ae695[_0xe9926c(0x1c4)](_0x3dc125,0x1,_0x42d338);}else _0x2ae695[_0xe9926c(0x1b2)](_0x42d338);}):this[_0x477b8a(0x1be)][_0x1e6c69][_0x477b8a(0x1f2)]=0x0;}[_0x1521d7(0x1d6)](){const _0x467d49=_0x1521d7;if(_0x467d49(0x1f0)===this[_0x467d49(0x1dc)]){this[_0x467d49(0x1d7)]=this[_0x467d49(0x1f1)][_0x467d49(0x1b5)](this[_0x467d49(0x1bc)]);const _0x588dda=this[_0x467d49(0x1ee)];this[_0x467d49(0x1b1)]();const _0x42a0ad=this[_0x467d49(0x1e4)](_0x588dda,this[_0x467d49(0x1ee)]);(_0x42a0ad[_0x467d49(0x1f2)]||this[_0x467d49(0x1dd)])&&(this[_0x467d49(0x1c0)](_0x467d49(0x1cd),this,_0x42a0ad),this[_0x467d49(0x1be)][_0x467d49(0x1cb)][_0x467d49(0x1f2)]=this[_0x467d49(0x1be)][_0x467d49(0x1fa)][_0x467d49(0x1f2)]=0x0);}else this[_0x467d49(0x1d7)]=this[_0x467d49(0x1f1)][_0x467d49(0x1fc)](this[_0x467d49(0x1bc)]),this[_0x467d49(0x1c0)](_0x467d49(0x1cd),this);}[_0x1521d7(0x1e4)](_0x102aa2,_0x3c2059){const _0x44c8b7=_0x1521d7,_0x39caf6=[];for(const _0x3b9923 of _0x3c2059){const _0x3b9de3=_0x102aa2[_0x3b9923[_0x44c8b7(0x1c1)]];_0x3b9de3?_0x3b9de3[_0x44c8b7(0x1f6)][_0x44c8b7(0x1f2)]!==_0x3b9923[_0x44c8b7(0x1f6)][_0x44c8b7(0x1f2)]?_0x39caf6[_0x44c8b7(0x1b2)](_0x3b9923):_0x3b9de3[_0x44c8b7(0x1f6)][_0x44c8b7(0x1e8)]((_0x2469cf,_0x4b6eda)=>{const _0x4ce3e4=_0x44c8b7,_0x38fc4b=_0x3b9923[_0x4ce3e4(0x1f6)][_0x4b6eda];_0x2469cf['id']!==_0x38fc4b['id']&&_0x39caf6[_0x4ce3e4(0x1b2)](_0x3b9923);}):_0x39caf6[_0x44c8b7(0x1b2)](_0x3b9923);}return _0x39caf6;}[_0x1521d7(0x1b1)](){const _0x54ed4a=_0x1521d7,_0x3cf3f8=new _0x5cc01c('p',{},[new _0x5cc01c(_0x54ed4a(0x1bb),{'style':_0x54ed4a(0x1b6)},[new _0x2a05a9(_0x458dfe(this[_0x54ed4a(0x1b7)][_0x54ed4a(0x1bf)],_0x54ed4a(0x1c2)))])]),_0x24e1e5=this[_0x54ed4a(0x1e5)][_0x54ed4a(0x1ec)](this[_0x54ed4a(0x1d7)],this[_0x54ed4a(0x1b3)][_0x54ed4a(0x1cf)](!0x0),{'markUnstableElements':!this[_0x54ed4a(0x1dd)],'replaceRemovedWith':_0x3cf3f8,'cutAfterLastChange':!this[_0x54ed4a(0x1dd)]});if(!_0x24e1e5[_0x54ed4a(0x1f3)][_0x54ed4a(0x1f2)]&&!this[_0x54ed4a(0x1dd)])return;this[_0x54ed4a(0x1c3)]=_0x24e1e5[_0x54ed4a(0x1d7)];let _0x30ba45=[];if(_0x4b4d08(_0x220d03=>{const _0x391779=_0x54ed4a,_0xe9b4ff=_0xb17580(_0x220d03,_0x391779(0x1df));if(!_0xe9b4ff||!_0x3b7164(_0xe9b4ff))return!0x1;const _0x11a54e=[_0x220d03,..._0x55b6da(_0x220d03)]['at'](-0x2);if(_0x220d03!=_0x11a54e){const _0x2c40bf=_0xb17580(_0x11a54e,_0x391779(0x1df));_0x3b7164(_0x2c40bf)||(_0x30ba45[_0x391779(0x1b2)]({'node':_0x11a54e,'id':_0x2c40bf,'type':_0x391779(0x1bd)}),_0x24e1e5[_0x391779(0x1f3)][_0x391779(0x1b2)](_0x2c40bf));}else _0x24e1e5[_0x391779(0x1f3)][_0x391779(0x1d2)](_0xe9b4ff)?_0x30ba45[_0x391779(0x1b2)]({'node':_0x220d03,'type':_0x391779(0x1bd),'id':_0xe9b4ff}):_0x24e1e5[_0x391779(0x1d8)][_0x391779(0x1d2)](_0xe9b4ff)?_0x30ba45[_0x391779(0x1b2)]({'node':_0x220d03,'type':_0x391779(0x1b4),'id':_0xe9b4ff,'anchorId':_0xb17580(_0x220d03[_0x391779(0x1f9)],_0x391779(0x1df))}):_0x30ba45[_0x391779(0x1b2)]({'node':_0x220d03,'type':_0x391779(0x1af),'id':_0xe9b4ff});return!0x0;},this[_0x54ed4a(0x1c3)]),_0x30ba45=_0x30ba45[_0x54ed4a(0x1ba)](({node:_0x5a5f20})=>[..._0x55b6da(_0x5a5f20),_0x5a5f20][_0x54ed4a(0x1de)](_0x2e1cd0=>!_0xb17580(_0x2e1cd0,_0x54ed4a(0x1e9)))),0x0==_0x30ba45[_0x54ed4a(0x1f2)])return;const _0x2ad93e=[[_0x30ba45[0x0]]];for(let _0x5a328d=0x1;_0x5a328d<_0x30ba45[_0x54ed4a(0x1f2)];_0x5a328d++){const _0x2b26fb=_0x2ad93e[_0x2ad93e[_0x54ed4a(0x1f2)]-0x1],_0x37a625=_0x2b26fb[_0x2b26fb[_0x54ed4a(0x1f2)]-0x1];_0x30ba45[_0x5a328d][_0x54ed4a(0x1d9)][_0x54ed4a(0x1f9)]==_0x37a625[_0x54ed4a(0x1d9)]&&_0x54ed4a(0x1bd)!=_0x30ba45[_0x5a328d][_0x54ed4a(0x1dc)]&&_0x54ed4a(0x1bd)!=_0x37a625[_0x54ed4a(0x1dc)]?_0x2b26fb[_0x54ed4a(0x1b2)](_0x30ba45[_0x5a328d]):_0x2ad93e[_0x54ed4a(0x1b2)]([_0x30ba45[_0x5a328d]]);}for(const _0x58f603 of _0x2ad93e){const _0x56b664=_0x58f603[0x0],_0x45a887=_0x58f603[_0x58f603[_0x54ed4a(0x1f2)]-0x1],_0x34f4b2=_0x2ee11d(_0x56b664[_0x54ed4a(0x1d9)][_0x54ed4a(0x1f9)]);_0x34f4b2&&_0x58f603[_0x54ed4a(0x1eb)](_0x34f4b2);const _0x135769=_0x2ee11d(_0x45a887[_0x54ed4a(0x1d9)][_0x54ed4a(0x1e1)]);_0x135769&&_0x58f603[_0x54ed4a(0x1b2)](_0x135769);}function _0x3b7164(_0x254b26){const _0x10e821=_0x54ed4a;return _0x24e1e5[_0x10e821(0x1f3)][_0x10e821(0x1d2)](_0x254b26)||_0x24e1e5[_0x10e821(0x1d8)][_0x10e821(0x1d2)](_0x254b26)||_0x24e1e5[_0x10e821(0x1ed)][_0x10e821(0x1d2)](_0x254b26);}function _0x2ee11d(_0x195cda){const _0x41d381=_0x54ed4a;if(_0x195cda&&_0xb17580(_0x195cda,_0x41d381(0x1df))&&!_0xb17580(_0x195cda,_0x41d381(0x1e9))){const _0xc9d68c=_0xb17580(_0x195cda,_0x41d381(0x1df));if(!_0x3b7164(_0xc9d68c))return{'node':_0x195cda,'type':_0x41d381(0x1d0),'id':_0xc9d68c};}return null;}this[_0x54ed4a(0x1ee)]=_0x2ad93e[_0x54ed4a(0x1f7)]((_0x15ad8f,_0x110336)=>({'changes':_0x15ad8f,'state':_0x54ed4a(0x1e2),'index':_0x110336}));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
_0xa8da33(){[_0x544b17(0x1d2)];[_0x544b17(0x1f3)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x544b17(0x1ef)]=new Set();constructor(_0x19d3c4){const _0x30b377=_0x544b17;super(),this[_0x30b377(0x1d2)]=_0x19d3c4||_0x5db69d;}[_0x544b17(0x1cf)](_0xbbfc3e,_0x629b70,_0x5c212d){const _0x400435=_0x544b17,_0x5e7562=_0x46bd86(_0xbbfc3e);if(0x0===_0x629b70[_0x400435(0x1c2)][_0x400435(0x1f2)]){const _0x2619a1=[];return _0x1a06e7(_0x400435(0x1e7),_0x400435(0x1b4),_0x5e7562)[_0x400435(0x1c4)](_0x19a5eb=>{const _0x28946d=_0x400435,_0x27e486=this[_0x28946d(0x1d2)]();_0x596918(_0x19a5eb,_0x28946d(0x1e7),_0x27e486),_0x2619a1[_0x28946d(0x1c8)](_0x27e486);}),this[_0x400435(0x1d4)](_0x5e7562),{'parsedContent':_0x5e7562,'newNodeIds':_0x2619a1,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5c212d&&_0x5c212d[_0x400435(0x1f6)]&&this[_0x400435(0x1db)](_0x5e7562),this[_0x400435(0x1f3)][_0x400435(0x1df)]=[],this[_0x400435(0x1f3)][_0x400435(0x1b8)]=[],this[_0x400435(0x1f3)][_0x400435(0x1d6)]=[],this[_0x400435(0x1f3)][_0x400435(0x1cd)]=[],this[_0x400435(0x1f3)][_0x400435(0x1e0)]=null,this[_0x400435(0x1ef)]=new Set(_0x1a06e7(_0x400435(0x1e7),null,_0x629b70)[_0x400435(0x1b6)](_0x1cb17e=>_0x4cbff3(_0x1cb17e,_0x400435(0x1e7)))[_0x400435(0x1bf)](_0x5ebe23=>!!_0x5ebe23));let _0x4158a5=-0x1,_0x2fc892=!0x1;const _0x2f159e=_0x5e7562[_0x400435(0x1c2)],_0x266d2c=Array[_0x400435(0x1c7)](_0x2f159e)[_0x400435(0x1bf)](_0x2fd864=>!(0x3===_0x2fd864[_0x400435(0x1bc)]&&''===_0x44096d(_0x2fd864)[_0x400435(0x1e3)]())),_0x58484f=_0x266d2c[_0x400435(0x1f2)];for(let _0x4ba6aa=0x0;_0x4ba6aa<_0x58484f;_0x4ba6aa++){const _0x33910d=_0x266d2c[_0x4ba6aa],_0x3484b1=_0x266d2c[_0x4ba6aa+0x1];if(this[_0x400435(0x1e6)](_0x33910d)){if(-0x1===_0x4158a5&&(_0x4158a5=_0x4ba6aa),this[_0x400435(0x1d0)](_0x33910d),!this[_0x400435(0x1e6)](_0x3484b1)){const [_0x50c3f0,_0x59cc6c]=this[_0x400435(0x1e8)](_0x33910d,_0x2fc892,_0x629b70);if(_0x50c3f0){const _0x5157a6=Array[_0x400435(0x1c7)](_0x266d2c)[_0x400435(0x1e5)](_0x4158a5,_0x4ba6aa+0x1);this[_0x400435(0x1da)](_0x50c3f0,_0x5157a6,_0x59cc6c),_0x4158a5=-0x1;}}}else{if(this[_0x400435(0x1b5)](_0x33910d))_0x2fc892=!0x0;else{if(this[_0x400435(0x1d3)](_0x33910d)){const _0x2123e0=_0x4cbff3(_0x33910d,_0x400435(0x1e7));if(_0x2123e0&&this[_0x400435(0x1ef)][_0x400435(0x1d7)](_0x2123e0)){const _0x5d24e5=_0x4b2642(_0x400435(0x1e7),_0x2123e0,_0x629b70);this[_0x400435(0x1ee)](_0x5d24e5,_0x33910d);}if(this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1d5)](_0x2123e0)){const _0x17c2b8=this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1f5)](_0x2123e0);this[_0x400435(0x1f3)][_0x400435(0x1d6)][_0x400435(0x1cb)](_0x17c2b8,0x1);}}else{if(this[_0x400435(0x1e9)](_0x33910d)){const _0x331b39=_0x4cbff3(_0x33910d,_0x400435(0x1e7));this[_0x400435(0x1f3)][_0x400435(0x1b8)][_0x400435(0x1d5)](_0x331b39)||this[_0x400435(0x1c9)](_0x33910d);}}}}}for(const _0xd38f9b of this[_0x400435(0x1f3)][_0x400435(0x1d6)]){const _0x352239=_0x4b2642(_0x400435(0x1e7),_0xd38f9b,_0x629b70);if(_0x352239){if(_0x5c212d&&_0x5c212d[_0x400435(0x1c3)]){this[_0x400435(0x1f3)][_0x400435(0x1e0)]=_0xd38f9b;const _0x50a6b5=_0x5c212d[_0x400435(0x1c3)][_0x400435(0x1c5)](!0x0);_0x596918(_0x50a6b5,_0x400435(0x1e7),_0xd38f9b),_0x596918(_0x50a6b5,_0x400435(0x1dc),_0x400435(0x1ce)),_0x3c4e5c(_0x352239,_0x50a6b5);}else _0x5be67e(_0x352239);}}if(_0x1a06e7(_0x400435(0x1dd),null,_0x629b70)[_0x400435(0x1c4)](_0x39b547=>{const _0xfa512e=_0x400435,_0x267f0f=_0x4cbff3(_0x39b547,_0xfa512e(0x1dd)),_0x28fc65=_0x4b2642(_0xfa512e(0x1e7),_0x267f0f,_0x629b70);_0x28fc65&&_0x8e35ba(_0x28fc65,_0x39b547);}),_0x1a06e7(_0x400435(0x1e7),_0x400435(0x1b4),_0x629b70)[_0x400435(0x1c4)](_0x185bf7=>{const _0xb1f092=_0x400435,_0x1e1fa6=this[_0xb1f092(0x1cc)](_0x185bf7);_0x596918(_0x185bf7,_0xb1f092(0x1e7),_0x1e1fa6),this[_0xb1f092(0x1f3)][_0xb1f092(0x1df)][_0xb1f092(0x1c8)](_0x1e1fa6);}),this[_0x400435(0x1d4)](_0x629b70),_0x5c212d&&_0x5c212d[_0x400435(0x1f6)]&&this[_0x400435(0x1b7)](_0x629b70,_0x5c212d[_0x400435(0x1f8)]||0x0),_0x5c212d&&_0x5c212d[_0x400435(0x1d8)]&&this[_0x400435(0x1f3)][_0x400435(0x1e0)]){let _0xd6d511=_0x4b2642(_0x400435(0x1e7),this[_0x400435(0x1f3)][_0x400435(0x1e0)],_0x629b70);for(;_0xd6d511;)_0x46dd1f(_0xd6d511),_0xd6d511=_0xd6d511[_0x400435(0x1b2)];}return{'parsedContent':_0x629b70,'newNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1df)],'modifiedNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1b8)],'removedNodeIds':this[_0x400435(0x1f3)][_0x400435(0x1d6)]};}[_0x544b17(0x1da)](_0x415994,_0x58b189,_0x5179d1){const _0x18f17f=_0x544b17;for(const _0x1f3b28 of _0x58b189){const _0x53e43d=this[_0x18f17f(0x1cc)](_0x1f3b28);_0x596918(_0x1f3b28,_0x18f17f(0x1e7),_0x53e43d),this[_0x18f17f(0x1f3)][_0x18f17f(0x1df)][_0x18f17f(0x1c8)](_0x53e43d),this[_0x18f17f(0x1f3)][_0x18f17f(0x1e0)]=_0x53e43d;}const _0x5a96dc=_0x18f17f(0x1ca)===_0x5179d1||_0x18f17f(0x1be)===_0x5179d1?_0x58b189[_0x18f17f(0x1f0)]():_0x58b189;for(const _0x50a084 of _0x5a96dc)_0x5eb6f7(_0x415994,_0x50a084,_0x5179d1);}[_0x544b17(0x1ee)](_0x1c2be8,_0x2ebe6b){const _0x3b5265=_0x544b17;if(!_0x1c2be8)return;if(_0x35a25f(_0x1c2be8,_0x2ebe6b))return;const _0x2aea04=this[_0x3b5265(0x1cc)](_0x1c2be8);_0x596918(_0x2ebe6b,_0x3b5265(0x1e7),_0x2aea04),this[_0x3b5265(0x1f3)][_0x3b5265(0x1b8)][_0x3b5265(0x1c8)](_0x2aea04),this[_0x3b5265(0x1f3)][_0x3b5265(0x1e0)]=_0x2aea04,_0x3c4e5c(_0x1c2be8,_0x2ebe6b[_0x3b5265(0x1c5)](!0x0));}[_0x544b17(0x1e8)](_0x56eb4b,_0x345407,_0xb5706d){const _0x5000bc=_0x544b17,_0x2323f8=this[_0x5000bc(0x1ba)](_0x56eb4b,!0x1);if(_0x2323f8){const _0x467a04=this[_0x5000bc(0x1ec)](_0x2323f8),_0x594ef1=_0x4b2642(_0x5000bc(0x1e7),_0x467a04,_0xb5706d);if(_0x594ef1)return[_0x594ef1,_0x5000bc(0x1be)];this[_0x5000bc(0x1f3)][_0x5000bc(0x1cd)][_0x5000bc(0x1c8)](_0x467a04);}const _0x336677=this[_0x5000bc(0x1c6)](_0x56eb4b,!0x1);if(_0x336677){const _0x3d71be=this[_0x5000bc(0x1ec)](_0x336677),_0x3a607c=_0x4b2642(_0x5000bc(0x1e7),_0x3d71be,_0xb5706d);if(_0x3a607c)return[_0x3a607c,_0x5000bc(0x1c1)];this[_0x5000bc(0x1f3)][_0x5000bc(0x1cd)][_0x5000bc(0x1c8)](_0x3d71be);}return _0x345407?_0x56eb4b[_0x5000bc(0x1e2)]?this[_0x5000bc(0x1ed)](_0x56eb4b,_0xb5706d):[_0xb5706d[_0x5000bc(0x1c2)][_0xb5706d[_0x5000bc(0x1c2)][_0x5000bc(0x1f2)]-0x1],_0x5000bc(0x1be)]:[_0xb5706d[_0x5000bc(0x1c2)][0x0],_0x5000bc(0x1c1)];}[_0x544b17(0x1ed)](_0x184316,_0x599561){const _0x2f3fdb=_0x544b17,_0x1cdfe1=[],_0x29ace9=this[_0x2f3fdb(0x1ba)](_0x184316,!0x0);if(_0x29ace9){const _0x1c733a=this[_0x2f3fdb(0x1ec)](_0x29ace9),_0xef3ecb=_0x4b2642(_0x2f3fdb(0x1e7),_0x1c733a,_0x599561);_0xef3ecb&&_0x1cdfe1[_0x2f3fdb(0x1c8)]([_0xef3ecb,_0x2f3fdb(0x1be)]);}const _0x285d73=this[_0x2f3fdb(0x1c6)](_0x184316,!0x0);if(_0x285d73){const _0x35dfb9=this[_0x2f3fdb(0x1ec)](_0x285d73),_0x2dd601=_0x4b2642(_0x2f3fdb(0x1e7),_0x35dfb9,_0x599561);_0x2dd601&&_0x1cdfe1[_0x2f3fdb(0x1c8)]([_0x2dd601,_0x2f3fdb(0x1c1)]);}if(_0x1cdfe1[_0x2f3fdb(0x1f2)]>0x1)return _0xdbc387(_0x1cdfe1[0x0][0x0])<=_0xdbc387(_0x1cdfe1[0x1][0x0])?_0x1cdfe1[0x0]:_0x1cdfe1[0x1];return 0x1===_0x1cdfe1[_0x2f3fdb(0x1f2)]?_0x1cdfe1[0x0]:[_0x599561[_0x2f3fdb(0x1b9)],_0x2f3fdb(0x1be)];}[_0x544b17(0x1c6)](_0x471b68,_0x36a67c){const _0x1dbe1e=_0x544b17;let _0x364321=_0x471b68[_0x1dbe1e(0x1e2)],_0x5bccea=null,_0x21f489=!0x1;for(;_0x364321;){if(_0x30d6b1(_0x364321)){if(this[_0x1dbe1e(0x1e9)](_0x364321)&&(_0x5bccea=_0x364321),this[_0x1dbe1e(0x1b5)](_0x364321)&&_0x36a67c&&!_0x21f489){_0x21f489=!0x0,_0x364321=_0x364321[_0x1dbe1e(0x1e2)];continue;}break;}const _0x2528b1=_0x4cbff3(_0x364321,_0x1dbe1e(0x1e7));if(_0x2528b1&&_0x1dbe1e(0x1b4)!==_0x2528b1&&this[_0x1dbe1e(0x1ef)][_0x1dbe1e(0x1d7)](_0x2528b1)){_0x5bccea=_0x364321;break;}_0x364321=_0x364321[_0x1dbe1e(0x1e2)];}return _0x5bccea;}[_0x544b17(0x1ba)](_0x36535a,_0x135d94){const _0x46898c=_0x544b17;let _0x2aaf42=_0x36535a[_0x46898c(0x1f1)],_0x580739=null,_0x31c39e=!0x1;for(;_0x2aaf42;){if(_0x30d6b1(_0x2aaf42)){if(this[_0x46898c(0x1e9)](_0x2aaf42)&&(_0x580739=_0x2aaf42),this[_0x46898c(0x1b5)](_0x2aaf42)&&_0x135d94&&!_0x31c39e){_0x31c39e=!0x0,_0x2aaf42=_0x2aaf42[_0x46898c(0x1f1)];continue;}break;}const _0x5cd679=_0x4cbff3(_0x2aaf42,_0x46898c(0x1e7));if(_0x5cd679&&_0x46898c(0x1b4)!==_0x5cd679&&this[_0x46898c(0x1ef)][_0x46898c(0x1d7)](_0x5cd679)){_0x580739=_0x2aaf42;break;}_0x2aaf42=_0x2aaf42[_0x46898c(0x1f1)];}return _0x580739;}[_0x544b17(0x1d0)](_0xd83d5d){const _0x5426f5=_0x544b17;_0x2ed662(_0xd83d5d)&&_0x1a06e7(_0x5426f5(0x1e7),null,_0xd83d5d)[_0x5426f5(0x1c4)](_0x5504f2=>{const _0x3281d4=_0x5426f5;if(this[_0x3281d4(0x1d3)](_0x5504f2)&&!this[_0x3281d4(0x1c0)](_0x5504f2)){const _0x1e962f=_0x4cbff3(_0x5504f2,_0x3281d4(0x1e7));_0x596918(_0x5504f2,_0x3281d4(0x1dd),_0x1e962f),_0x596918(_0x5504f2,_0x3281d4(0x1e7),null);}});}[_0x544b17(0x1ec)](_0x1248ee){const _0x5456f6=_0x544b17;if(!_0x1248ee)return null;if(_0x2ed662(_0x1248ee))return _0x4cbff3(_0x1248ee,_0x5456f6(0x1e7));if(_0x30d6b1(_0x1248ee)){const _0x595a73=_0x44096d(_0x1248ee)[_0x5456f6(0x1d1)](/removed[\s*-]data-id="([^"]+)"/);if(_0x595a73&&_0x595a73[0x1])return _0x595a73[0x1];}return null;}[_0x544b17(0x1c9)](_0x5c6058){const _0x249851=_0x544b17;if(_0x30d6b1(_0x5c6058)){const _0x2cd525=_0x44096d(_0x5c6058)[_0x249851(0x1d1)](/removed[\s*-]data-id="([^"]+)"/);_0x2cd525&&_0x2cd525[0x1]&&this[_0x249851(0x1f3)][_0x249851(0x1d6)][_0x249851(0x1c8)](_0x2cd525[0x1]);}}[_0x544b17(0x1cc)](_0x5d544b){const _0x4eb49b=_0x544b17;return this[_0x4eb49b(0x1d3)](_0x5d544b)?_0x4cbff3(_0x5d544b,_0x4eb49b(0x1e7)):this[_0x4eb49b(0x1d2)]();}[_0x544b17(0x1d4)](_0x213ee6){const _0x7b6e60=_0x544b17;_0x1f47a8(_0x213ee6)[_0x7b6e60(0x1bf)](_0x34b7ab=>this[_0x7b6e60(0x1e9)](_0x34b7ab)||this[_0x7b6e60(0x1b5)](_0x34b7ab))[_0x7b6e60(0x1c4)](_0x513e99=>{_0x5be67e(_0x513e99);});}[_0x544b17(0x1db)](_0x4e9c8a){const _0x48c5f0=_0x544b17,_0x4a31bc=_0x4e9c8a[_0x48c5f0(0x1c2)],_0x52457e=_0x4a31bc[_0x4a31bc[_0x48c5f0(0x1f2)]-0x1];_0x52457e&&_0x2ed662(_0x52457e)&&_0x596918(_0x52457e,_0x48c5f0(0x1bb),_0x48c5f0(0x1ce));}[_0x544b17(0x1b7)](_0x43e6b0,_0x1b93be){const _0x3ed052=_0x544b17,_0x5c9b89=_0x4b2642(_0x3ed052(0x1bb),_0x3ed052(0x1ce),_0x43e6b0);if(!_0x5c9b89)return;const _0x20f6ec=_0x5828b6(_0x5c9b89)[_0x3ed052(0x1e5)](0x0,-0x1),_0x4f41f9=_0x20f6ec[_0x3ed052(0x1f2)];let _0x3d20d5=_0x5c9b89;if(_0x4f41f9>_0x1b93be){let _0x558893=_0x4f41f9,_0x35a0de=null;for(;_0x558893>_0x1b93be&&_0x558893>=0x0;)_0x558893--,_0x35a0de=_0x20f6ec[_0x558893];_0x35a0de&&(_0x3d20d5=_0x35a0de,_0x596918(_0x5c9b89,_0x3ed052(0x1bb),null),_0x596918(_0x35a0de,_0x3ed052(0x1bb),_0x3ed052(0x1ce)));}else{if(_0x4f41f9<_0x1b93be){let _0x710362=_0x4f41f9,_0x2b7c4f=_0x5c9b89;for(;_0x710362<_0x1b93be;){const _0x15de40=_0x2b7c4f[_0x3ed052(0x1c2)][_0x3ed052(0x1bf)](_0x35ab19=>_0x2ed662(_0x35ab19));if(0x0===_0x15de40[_0x3ed052(0x1f2)])break;_0x710362++,_0x2b7c4f=_0x15de40[_0x15de40[_0x3ed052(0x1f2)]-0x1];}_0x2b7c4f&&(_0x3d20d5=_0x2b7c4f,_0x596918(_0x5c9b89,_0x3ed052(0x1bb),null),_0x596918(_0x2b7c4f,_0x3ed052(0x1bb),_0x3ed052(0x1ce)));}}let _0x2746bf=_0x3d20d5;for(;_0x2746bf;){for(;_0x2746bf[_0x3ed052(0x1e2)];)_0x2746bf=_0x2746bf[_0x3ed052(0x1e2)],_0x2ed662(_0x2746bf)&&_0x596918(_0x2746bf,_0x3ed052(0x1bb),_0x3ed052(0x1ce));_0x2746bf=_0x2746bf[_0x3ed052(0x1b2)];}}[_0x544b17(0x1e6)](_0x39e8cc){const _0x4937ce=_0x544b17;return Boolean(_0x4937ce(0x1b4)===_0x4cbff3(_0x39e8cc,_0x4937ce(0x1e7)));}[_0x544b17(0x1d3)](_0x2a7a76){const _0x272b5d=_0x544b17;return Boolean((_0x4cbff3(_0x2a7a76,_0x272b5d(0x1e7))||'')[_0x272b5d(0x1f2)]>0x0&&_0x272b5d(0x1b4)!==_0x4cbff3(_0x2a7a76,_0x272b5d(0x1e7)));}[_0x544b17(0x1e9)](_0x235d67){const _0x14349a=_0x544b17;return!!_0x235d67&&Boolean(_0x30d6b1(_0x235d67)&&_0x44096d(_0x235d67)[_0x14349a(0x1d1)](/removed[\s*-]data-id="[^"]+"/));}[_0x544b17(0x1c0)](_0x364e53){const _0x4a7da0=_0x544b17;let _0x4dcd4d=_0x364e53[_0x4a7da0(0x1b2)];for(;_0x4dcd4d;){if(_0x4cbff3(_0x4dcd4d,_0x4a7da0(0x1dd)))return!0x0;_0x4dcd4d=_0x4dcd4d[_0x4a7da0(0x1b2)];}return!0x1;}[_0x544b17(0x1b5)](_0x93627a){const _0x4de4fb=_0x544b17;return Boolean(_0x30d6b1(_0x93627a)&&_0x44096d(_0x93627a)[_0x4de4fb(0x1d1)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x16ae73=_0x5498;function _0x124a(){const _0x367d22=['true','modifiedIds','data-removed','_findReferenceNode','beforebegin','filter','_existingDataIds','_getNodeDataId','1945072xBQoET','3315HYVUCj','lastTouchedId','20751DPUYbR','_markLastTagElementUnstable','childNodes','has','_removeSpecialComments','366kUDAeM','length','nodeType','_insertNodes','_isDelNode','_markUnstableElements','lastChild','merge','_storeDeletedElementIds','data-id','data-unstable','_generateUid','previousSibling','369xkcYtK','7858pOewsL','push','cloneNode','splice','_findNextElementWithDataId','_getUid','_findFallbackReferenceNode','replaceRemovedWith','markUnstableElements','_isExistingContentComment','121NplCKD','_markWrappedElements','slice','trim','_findPrevElementWithDataId','indexOf','3660937bbjsip','from','_isNewNode','4553364jdhYrM','_replaceNode','128WspvfJ','newIds','10347890xkReAc','markUnstableElementsDepth','_hasWrappedParent','invalidIds','data-wrapped-id','9rmfwDK','afterend','removedIds','includes','match','nextSibling','reverse','cutAfterLastChange','new-element','_isExistingNode','forEach','parentNode','_touchedNodesState','map','afterbegin'];_0x124a=function(){return _0x367d22;};return _0x124a();}function _0x5498(_0x4153be,_0x2b0324){const _0x124ad6=_0x124a();return _0x5498=function(_0x5498da,_0x1f893f){_0x5498da=_0x5498da-0x14f;let _0x1a8620=_0x124ad6[_0x5498da];return _0x1a8620;},_0x5498(_0x4153be,_0x2b0324);}(function(_0x4ecb6d,_0x256c45){const _0x1a1ef2=_0x5498,_0x9ad81=_0x4ecb6d();while(!![]){try{const _0x441bc7=parseInt(_0x1a1ef2(0x150))/0x1*(-parseInt(_0x1a1ef2(0x151))/0x2)+-parseInt(_0x1a1ef2(0x187))/0x3*(parseInt(_0x1a1ef2(0x166))/0x4)+-parseInt(_0x1a1ef2(0x185))/0x5*(-parseInt(_0x1a1ef2(0x18c))/0x6)+-parseInt(_0x1a1ef2(0x161))/0x7+-parseInt(_0x1a1ef2(0x184))/0x8+parseInt(_0x1a1ef2(0x16d))/0x9*(-parseInt(_0x1a1ef2(0x168))/0xa)+parseInt(_0x1a1ef2(0x15b))/0xb*(parseInt(_0x1a1ef2(0x164))/0xc);if(_0x441bc7===_0x256c45)break;else _0x9ad81['push'](_0x9ad81['shift']());}catch(_0x3f7071){_0x9ad81['push'](_0x9ad81['shift']());}}}(_0x124a,0xb539d));import{ObservableMixin as _0x2fb7b7,uid as _0xa3cecd}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x1db090,findByAttribute as _0xd64e85,getAttribute as _0x4aed98,isComment as _0x4e0228,isTag as _0x5b5e63,insertElement as _0x489f1a,moveElement as _0x4db1c6,removeElement as _0x241d31,replaceElement as _0xc610b3,serialize as _0x39ad13,setAttribute as _0x3eecdc,clone as _0x3b3dbb,findAllComments as _0x3ea2e7,getParents as _0x3edac3,getNodeNestingLevel as _0x3c93d2,areNodesSame as _0x115362,removeElementsAfter as _0x7264fc}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2fb7b7(){[_0x16ae73(0x197)];[_0x16ae73(0x179)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x16ae73(0x182)]=new Set();constructor(_0x438c80){const _0x5b58c3=_0x16ae73;super(),this[_0x5b58c3(0x197)]=_0x438c80||_0xa3cecd;}[_0x16ae73(0x193)](_0x5c30a8,_0x32555f,_0x116f98){const _0x3960b2=_0x16ae73,_0x5d7e89=_0x3b3dbb(_0x5c30a8);if(0x0===_0x32555f[_0x3960b2(0x189)][_0x3960b2(0x18d)]){const _0x850980=[];return _0x1db090(_0x3960b2(0x195),_0x3960b2(0x175),_0x5d7e89)[_0x3960b2(0x177)](_0x5c987d=>{const _0x527650=_0x3960b2,_0x2de28e=this[_0x527650(0x197)]();_0x3eecdc(_0x5c987d,_0x527650(0x195),_0x2de28e),_0x850980[_0x527650(0x152)](_0x2de28e);}),this[_0x3960b2(0x18b)](_0x5d7e89),{'parsedContent':_0x5d7e89,'newNodeIds':_0x850980,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x116f98&&_0x116f98[_0x3960b2(0x159)]&&this[_0x3960b2(0x188)](_0x5d7e89),this[_0x3960b2(0x179)][_0x3960b2(0x167)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x17d)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x16f)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x16b)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x186)]=null,this[_0x3960b2(0x182)]=new Set(_0x1db090(_0x3960b2(0x195),null,_0x32555f)[_0x3960b2(0x17a)](_0x47acff=>_0x4aed98(_0x47acff,_0x3960b2(0x195)))[_0x3960b2(0x181)](_0x50bd0e=>!!_0x50bd0e));let _0x46db53=-0x1,_0x2108ac=!0x1;const _0x462e10=_0x5d7e89[_0x3960b2(0x189)],_0x4b63d8=Array[_0x3960b2(0x162)](_0x462e10)[_0x3960b2(0x181)](_0x419d14=>!(0x3===_0x419d14[_0x3960b2(0x18e)]&&''===_0x39ad13(_0x419d14)[_0x3960b2(0x15e)]())),_0x55dbc0=_0x4b63d8[_0x3960b2(0x18d)];for(let _0x4cecc8=0x0;_0x4cecc8<_0x55dbc0;_0x4cecc8++){const _0x104177=_0x4b63d8[_0x4cecc8],_0x4a0ee4=_0x4b63d8[_0x4cecc8+0x1];if(this[_0x3960b2(0x163)](_0x104177)){if(-0x1===_0x46db53&&(_0x46db53=_0x4cecc8),this[_0x3960b2(0x15c)](_0x104177),!this[_0x3960b2(0x163)](_0x4a0ee4)){const [_0x4036ab,_0x2eac47]=this[_0x3960b2(0x17f)](_0x104177,_0x2108ac,_0x32555f);if(_0x4036ab){const _0x19dd63=Array[_0x3960b2(0x162)](_0x4b63d8)[_0x3960b2(0x15d)](_0x46db53,_0x4cecc8+0x1);this[_0x3960b2(0x18f)](_0x4036ab,_0x19dd63,_0x2eac47),_0x46db53=-0x1;}}}else{if(this[_0x3960b2(0x15a)](_0x104177))_0x2108ac=!0x0;else{if(this[_0x3960b2(0x176)](_0x104177)){const _0x3ced36=_0x4aed98(_0x104177,_0x3960b2(0x195));if(_0x3ced36&&this[_0x3960b2(0x182)][_0x3960b2(0x18a)](_0x3ced36)){const _0xadd098=_0xd64e85(_0x3960b2(0x195),_0x3ced36,_0x32555f);this[_0x3960b2(0x165)](_0xadd098,_0x104177);}if(this[_0x3960b2(0x179)][_0x3960b2(0x16f)][_0x3960b2(0x170)](_0x3ced36)){const _0x14afde=this[_0x3960b2(0x179)][_0x3960b2(0x16f)][_0x3960b2(0x160)](_0x3ced36);this[_0x3960b2(0x179)][_0x3960b2(0x16f)][_0x3960b2(0x154)](_0x14afde,0x1);}}else{if(this[_0x3960b2(0x190)](_0x104177)){const _0x1d711f=_0x4aed98(_0x104177,_0x3960b2(0x195));this[_0x3960b2(0x179)][_0x3960b2(0x17d)][_0x3960b2(0x170)](_0x1d711f)||this[_0x3960b2(0x194)](_0x104177);}}}}}for(const _0x165491 of this[_0x3960b2(0x179)][_0x3960b2(0x16f)]){const _0x27a559=_0xd64e85(_0x3960b2(0x195),_0x165491,_0x32555f);if(_0x27a559){if(_0x116f98&&_0x116f98[_0x3960b2(0x158)]){this[_0x3960b2(0x179)][_0x3960b2(0x186)]=_0x165491;const _0x8e4e36=_0x116f98[_0x3960b2(0x158)][_0x3960b2(0x153)](!0x0);_0x3eecdc(_0x8e4e36,_0x3960b2(0x195),_0x165491),_0x3eecdc(_0x8e4e36,_0x3960b2(0x17e),_0x3960b2(0x17c)),_0xc610b3(_0x27a559,_0x8e4e36);}else _0x241d31(_0x27a559);}}if(_0x1db090(_0x3960b2(0x16c),null,_0x32555f)[_0x3960b2(0x177)](_0x12fd09=>{const _0x39d984=_0x3960b2,_0x569bbc=_0x4aed98(_0x12fd09,_0x39d984(0x16c)),_0xb3a0fb=_0xd64e85(_0x39d984(0x195),_0x569bbc,_0x32555f);_0xb3a0fb&&_0x4db1c6(_0xb3a0fb,_0x12fd09);}),_0x1db090(_0x3960b2(0x195),_0x3960b2(0x175),_0x32555f)[_0x3960b2(0x177)](_0x5e0691=>{const _0x544651=_0x3960b2,_0x3d1212=this[_0x544651(0x156)](_0x5e0691);_0x3eecdc(_0x5e0691,_0x544651(0x195),_0x3d1212),this[_0x544651(0x179)][_0x544651(0x167)][_0x544651(0x152)](_0x3d1212);}),this[_0x3960b2(0x18b)](_0x32555f),_0x116f98&&_0x116f98[_0x3960b2(0x159)]&&this[_0x3960b2(0x191)](_0x32555f,_0x116f98[_0x3960b2(0x169)]||0x0),_0x116f98&&_0x116f98[_0x3960b2(0x174)]&&this[_0x3960b2(0x179)][_0x3960b2(0x186)]){let _0x2405dc=_0xd64e85(_0x3960b2(0x195),this[_0x3960b2(0x179)][_0x3960b2(0x186)],_0x32555f);for(;_0x2405dc;)_0x7264fc(_0x2405dc),_0x2405dc=_0x2405dc[_0x3960b2(0x178)];}return{'parsedContent':_0x32555f,'newNodeIds':this[_0x3960b2(0x179)][_0x3960b2(0x167)],'modifiedNodeIds':this[_0x3960b2(0x179)][_0x3960b2(0x17d)],'removedNodeIds':this[_0x3960b2(0x179)][_0x3960b2(0x16f)]};}[_0x16ae73(0x18f)](_0x11a2cd,_0x3e1b28,_0x1d3160){const _0xe24716=_0x16ae73;for(const _0x33c802 of _0x3e1b28){const _0x45db86=this[_0xe24716(0x156)](_0x33c802);_0x3eecdc(_0x33c802,_0xe24716(0x195),_0x45db86),this[_0xe24716(0x179)][_0xe24716(0x167)][_0xe24716(0x152)](_0x45db86),this[_0xe24716(0x179)][_0xe24716(0x186)]=_0x45db86;}const _0x49e36b=_0xe24716(0x17b)===_0x1d3160||_0xe24716(0x16e)===_0x1d3160?_0x3e1b28[_0xe24716(0x173)]():_0x3e1b28;for(const _0x293c02 of _0x49e36b)_0x489f1a(_0x11a2cd,_0x293c02,_0x1d3160);}[_0x16ae73(0x165)](_0x51bb94,_0x2092e4){const _0x19af58=_0x16ae73;if(!_0x51bb94)return;if(_0x115362(_0x51bb94,_0x2092e4))return;const _0x5a9769=this[_0x19af58(0x156)](_0x51bb94);_0x3eecdc(_0x2092e4,_0x19af58(0x195),_0x5a9769),this[_0x19af58(0x179)][_0x19af58(0x17d)][_0x19af58(0x152)](_0x5a9769),this[_0x19af58(0x179)][_0x19af58(0x186)]=_0x5a9769,_0xc610b3(_0x51bb94,_0x2092e4[_0x19af58(0x153)](!0x0));}[_0x16ae73(0x17f)](_0x28b5dc,_0x7d1492,_0x4d79f1){const _0x3a2db4=_0x16ae73,_0xf63332=this[_0x3a2db4(0x15f)](_0x28b5dc,!0x1);if(_0xf63332){const _0x132c55=this[_0x3a2db4(0x183)](_0xf63332),_0x1f7233=_0xd64e85(_0x3a2db4(0x195),_0x132c55,_0x4d79f1);if(_0x1f7233)return[_0x1f7233,_0x3a2db4(0x16e)];this[_0x3a2db4(0x179)][_0x3a2db4(0x16b)][_0x3a2db4(0x152)](_0x132c55);}const _0x127169=this[_0x3a2db4(0x155)](_0x28b5dc,!0x1);if(_0x127169){const _0x41d2fc=this[_0x3a2db4(0x183)](_0x127169),_0x5603fe=_0xd64e85(_0x3a2db4(0x195),_0x41d2fc,_0x4d79f1);if(_0x5603fe)return[_0x5603fe,_0x3a2db4(0x180)];this[_0x3a2db4(0x179)][_0x3a2db4(0x16b)][_0x3a2db4(0x152)](_0x41d2fc);}return _0x7d1492?_0x28b5dc[_0x3a2db4(0x172)]?this[_0x3a2db4(0x157)](_0x28b5dc,_0x4d79f1):[_0x4d79f1[_0x3a2db4(0x189)][_0x4d79f1[_0x3a2db4(0x189)][_0x3a2db4(0x18d)]-0x1],_0x3a2db4(0x16e)]:[_0x4d79f1[_0x3a2db4(0x189)][0x0],_0x3a2db4(0x180)];}[_0x16ae73(0x157)](_0x5bb14c,_0x38f296){const _0x115b37=_0x16ae73,_0x57927a=[],_0x2eb799=this[_0x115b37(0x15f)](_0x5bb14c,!0x0);if(_0x2eb799){const _0x3d528f=this[_0x115b37(0x183)](_0x2eb799),_0x1d8096=_0xd64e85(_0x115b37(0x195),_0x3d528f,_0x38f296);_0x1d8096&&_0x57927a[_0x115b37(0x152)]([_0x1d8096,_0x115b37(0x16e)]);}const _0x38d36a=this[_0x115b37(0x155)](_0x5bb14c,!0x0);if(_0x38d36a){const _0x5b3f37=this[_0x115b37(0x183)](_0x38d36a),_0xbf08c5=_0xd64e85(_0x115b37(0x195),_0x5b3f37,_0x38f296);_0xbf08c5&&_0x57927a[_0x115b37(0x152)]([_0xbf08c5,_0x115b37(0x180)]);}if(_0x57927a[_0x115b37(0x18d)]>0x1)return _0x3c93d2(_0x57927a[0x0][0x0])<=_0x3c93d2(_0x57927a[0x1][0x0])?_0x57927a[0x0]:_0x57927a[0x1];return 0x1===_0x57927a[_0x115b37(0x18d)]?_0x57927a[0x0]:[_0x38f296[_0x115b37(0x192)],_0x115b37(0x16e)];}[_0x16ae73(0x155)](_0x3f8dda,_0x2321a6){const _0x1b7a67=_0x16ae73;let _0x1ba1b2=_0x3f8dda[_0x1b7a67(0x172)],_0xe06345=null,_0xebecf5=!0x1;for(;_0x1ba1b2;){if(_0x4e0228(_0x1ba1b2)){if(this[_0x1b7a67(0x190)](_0x1ba1b2)&&(_0xe06345=_0x1ba1b2),this[_0x1b7a67(0x15a)](_0x1ba1b2)&&_0x2321a6&&!_0xebecf5){_0xebecf5=!0x0,_0x1ba1b2=_0x1ba1b2[_0x1b7a67(0x172)];continue;}break;}const _0x2d09fe=_0x4aed98(_0x1ba1b2,_0x1b7a67(0x195));if(_0x2d09fe&&_0x1b7a67(0x175)!==_0x2d09fe&&this[_0x1b7a67(0x182)][_0x1b7a67(0x18a)](_0x2d09fe)){_0xe06345=_0x1ba1b2;break;}_0x1ba1b2=_0x1ba1b2[_0x1b7a67(0x172)];}return _0xe06345;}[_0x16ae73(0x15f)](_0x58caf1,_0x522429){const _0x44830c=_0x16ae73;let _0x4be296=_0x58caf1[_0x44830c(0x14f)],_0xcc4f5=null,_0x5a6d90=!0x1;for(;_0x4be296;){if(_0x4e0228(_0x4be296)){if(this[_0x44830c(0x190)](_0x4be296)&&(_0xcc4f5=_0x4be296),this[_0x44830c(0x15a)](_0x4be296)&&_0x522429&&!_0x5a6d90){_0x5a6d90=!0x0,_0x4be296=_0x4be296[_0x44830c(0x14f)];continue;}break;}const _0x140a75=_0x4aed98(_0x4be296,_0x44830c(0x195));if(_0x140a75&&_0x44830c(0x175)!==_0x140a75&&this[_0x44830c(0x182)][_0x44830c(0x18a)](_0x140a75)){_0xcc4f5=_0x4be296;break;}_0x4be296=_0x4be296[_0x44830c(0x14f)];}return _0xcc4f5;}[_0x16ae73(0x15c)](_0x28cb1b){const _0x283f9b=_0x16ae73;_0x5b5e63(_0x28cb1b)&&_0x1db090(_0x283f9b(0x195),null,_0x28cb1b)[_0x283f9b(0x177)](_0x7ec391=>{const _0xccf810=_0x283f9b;if(this[_0xccf810(0x176)](_0x7ec391)&&!this[_0xccf810(0x16a)](_0x7ec391)){const _0x472a78=_0x4aed98(_0x7ec391,_0xccf810(0x195));_0x3eecdc(_0x7ec391,_0xccf810(0x16c),_0x472a78),_0x3eecdc(_0x7ec391,_0xccf810(0x195),null);}});}[_0x16ae73(0x183)](_0xa181ce){const _0x5d7c2c=_0x16ae73;if(!_0xa181ce)return null;if(_0x5b5e63(_0xa181ce))return _0x4aed98(_0xa181ce,_0x5d7c2c(0x195));if(_0x4e0228(_0xa181ce)){const _0x552bb5=_0x39ad13(_0xa181ce)[_0x5d7c2c(0x171)](/removed[\s*-]data-id="([^"]+)"/);if(_0x552bb5&&_0x552bb5[0x1])return _0x552bb5[0x1];}return null;}[_0x16ae73(0x194)](_0x1f5a0f){const _0x42eec0=_0x16ae73;if(_0x4e0228(_0x1f5a0f)){const _0x3d0fb7=_0x39ad13(_0x1f5a0f)[_0x42eec0(0x171)](/removed[\s*-]data-id="([^"]+)"/);_0x3d0fb7&&_0x3d0fb7[0x1]&&this[_0x42eec0(0x179)][_0x42eec0(0x16f)][_0x42eec0(0x152)](_0x3d0fb7[0x1]);}}[_0x16ae73(0x156)](_0x178f13){const _0x295ae5=_0x16ae73;return this[_0x295ae5(0x176)](_0x178f13)?_0x4aed98(_0x178f13,_0x295ae5(0x195)):this[_0x295ae5(0x197)]();}[_0x16ae73(0x18b)](_0x3d3abe){const _0x1fff19=_0x16ae73;_0x3ea2e7(_0x3d3abe)[_0x1fff19(0x181)](_0x27804e=>this[_0x1fff19(0x190)](_0x27804e)||this[_0x1fff19(0x15a)](_0x27804e))[_0x1fff19(0x177)](_0x293654=>{_0x241d31(_0x293654);});}[_0x16ae73(0x188)](_0x5862c6){const _0x5576b8=_0x16ae73,_0x2e2c87=_0x5862c6[_0x5576b8(0x189)],_0xc26eff=_0x2e2c87[_0x2e2c87[_0x5576b8(0x18d)]-0x1];_0xc26eff&&_0x5b5e63(_0xc26eff)&&_0x3eecdc(_0xc26eff,_0x5576b8(0x196),_0x5576b8(0x17c));}[_0x16ae73(0x191)](_0x3fa28a,_0x5a7787){const _0x58ed8b=_0x16ae73,_0x41c086=_0xd64e85(_0x58ed8b(0x196),_0x58ed8b(0x17c),_0x3fa28a);if(!_0x41c086)return;const _0x1ae804=_0x3edac3(_0x41c086)[_0x58ed8b(0x15d)](0x0,-0x1),_0x506cb4=_0x1ae804[_0x58ed8b(0x18d)];let _0x480721=_0x41c086;if(_0x506cb4>_0x5a7787){let _0x2270bb=_0x506cb4,_0x5f1bb3=null;for(;_0x2270bb>_0x5a7787&&_0x2270bb>=0x0;)_0x2270bb--,_0x5f1bb3=_0x1ae804[_0x2270bb];_0x5f1bb3&&(_0x480721=_0x5f1bb3,_0x3eecdc(_0x41c086,_0x58ed8b(0x196),null),_0x3eecdc(_0x5f1bb3,_0x58ed8b(0x196),_0x58ed8b(0x17c)));}else{if(_0x506cb4<_0x5a7787){let _0x55500b=_0x506cb4,_0x197568=_0x41c086;for(;_0x55500b<_0x5a7787;){const _0x187095=_0x197568[_0x58ed8b(0x189)][_0x58ed8b(0x181)](_0x2c2e99=>_0x5b5e63(_0x2c2e99));if(0x0===_0x187095[_0x58ed8b(0x18d)])break;_0x55500b++,_0x197568=_0x187095[_0x187095[_0x58ed8b(0x18d)]-0x1];}_0x197568&&(_0x480721=_0x197568,_0x3eecdc(_0x41c086,_0x58ed8b(0x196),null),_0x3eecdc(_0x197568,_0x58ed8b(0x196),_0x58ed8b(0x17c)));}}let _0x595e81=_0x480721;for(;_0x595e81;){for(;_0x595e81[_0x58ed8b(0x172)];)_0x595e81=_0x595e81[_0x58ed8b(0x172)],_0x5b5e63(_0x595e81)&&_0x3eecdc(_0x595e81,_0x58ed8b(0x196),_0x58ed8b(0x17c));_0x595e81=_0x595e81[_0x58ed8b(0x178)];}}[_0x16ae73(0x163)](_0x26383f){const _0x3db992=_0x16ae73;return Boolean(_0x3db992(0x175)===_0x4aed98(_0x26383f,_0x3db992(0x195)));}[_0x16ae73(0x176)](_0x5c78a9){const _0x3d00e1=_0x16ae73;return Boolean((_0x4aed98(_0x5c78a9,_0x3d00e1(0x195))||'')[_0x3d00e1(0x18d)]>0x0&&_0x3d00e1(0x175)!==_0x4aed98(_0x5c78a9,_0x3d00e1(0x195)));}[_0x16ae73(0x190)](_0x4df5f0){const _0x220454=_0x16ae73;return!!_0x4df5f0&&Boolean(_0x4e0228(_0x4df5f0)&&_0x39ad13(_0x4df5f0)[_0x220454(0x171)](/removed[\s*-]data-id="[^"]+"/));}[_0x16ae73(0x16a)](_0x631bb6){const _0x56c260=_0x16ae73;let _0x23945a=_0x631bb6[_0x56c260(0x178)];for(;_0x23945a;){if(_0x4aed98(_0x23945a,_0x56c260(0x16c)))return!0x0;_0x23945a=_0x23945a[_0x56c260(0x178)];}return!0x1;}[_0x16ae73(0x15a)](_0x46827a){const _0x20a865=_0x16ae73;return Boolean(_0x4e0228(_0x46827a)&&_0x39ad13(_0x46827a)[_0x20a865(0x171)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x5739dd=_0x10af;(function(_0x2b2f1f,_0xcb0f98){const _0x5a118f=_0x10af,_0x2308c3=_0x2b2f1f();while(!![]){try{const _0x4e24b1=-parseInt(_0x5a118f(0x1fd))/0x1*(parseInt(_0x5a118f(0x1ef))/0x2)+parseInt(_0x5a118f(0x1fb))/0x3*(-parseInt(_0x5a118f(0x1fa))/0x4)+-parseInt(_0x5a118f(0x1f1))/0x5*(parseInt(_0x5a118f(0x1ea))/0x6)+-parseInt(_0x5a118f(0x1ee))/0x7+-parseInt(_0x5a118f(0x1fc))/0x8*(-parseInt(_0x5a118f(0x1ed))/0x9)+parseInt(_0x5a118f(0x1f4))/0xa+parseInt(_0x5a118f(0x1f3))/0xb*(parseInt(_0x5a118f(0x1f5))/0xc);if(_0x4e24b1===_0xcb0f98)break;else _0x2308c3['push'](_0x2308c3['shift']());}catch(_0x1a3cce){_0x2308c3['push'](_0x2308c3['shift']());}}}(_0x46c0,0xe2308));import{ObservableMixin as _0x28f684}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x5a8958}from'@ckeditor/ckeditor5-markdown-gfm';function _0x46c0(){const _0xc73d4a=['6236RBYgzF','convertMarkdownToHTML','50UeOtLm','parseAndNormalizeHTML','38195773XaxEqU','12563750FMkhGZ','12JaKxJU','<dummy>','children','replace','parse','16pkzOxV','1355622egaCks','10771560bvFkhR','512uxLfvH','_parseHTML','818316rgaRlv','</dummy>','_m2html','9VqPQdh','2666433PjNWPm'];_0x46c0=function(){return _0xc73d4a;};return _0x46c0();}import{parse as _0x31074e}from'../utils/htmlparser.js';function _0x10af(_0x580ff8,_0x11cc18){const _0x46c0a3=_0x46c0();return _0x10af=function(_0x10afd4,_0x505275){_0x10afd4=_0x10afd4-0x1e9;let _0x6893b8=_0x46c0a3[_0x10afd4];return _0x6893b8;},_0x10af(_0x580ff8,_0x11cc18);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x28f684(){[_0x5739dd(0x1ec)];constructor(){const _0x3ff1db=_0x5739dd;super(),this[_0x3ff1db(0x1ec)]=new _0x5a8958();}[_0x5739dd(0x1f0)](_0xe80293){const _0x2153ce=_0x5739dd,_0x22fbdc=this[_0x2153ce(0x1ec)][_0x2153ce(0x1f9)](_0xe80293);return this[_0x2153ce(0x1f2)](_0x22fbdc);}[_0x5739dd(0x1f2)](_0x494226){const _0x390cfb=_0x5739dd;return this[_0x390cfb(0x1e9)](_0x494226);}[_0x5739dd(0x1e9)](_0x503260){const _0x48a509=_0x5739dd,_0x2ee483=_0x503260[_0x48a509(0x1f8)](/^\t+/gm,'\x20')[_0x48a509(0x1f8)](/\n*/g,'')[_0x48a509(0x1f8)](/\s+/g,'\x20')[_0x48a509(0x1f8)](/<[^>]*?$/g,''),_0x1451c4=_0x31074e(_0x48a509(0x1f6)+_0x2ee483+_0x48a509(0x1eb));return _0x1451c4[_0x48a509(0x1f7)]=_0x1451c4[_0x48a509(0x1f7)][0x0][_0x48a509(0x1f7)],_0x1451c4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x251111,_0x592ab3){var _0x512166=_0xa747,_0x5d85be=_0x251111();while(!![]){try{var _0x4b90e9=parseInt(_0x512166(0x1ac))/0x1+-parseInt(_0x512166(0x1b1))/0x2*(-parseInt(_0x512166(0x1ab))/0x3)+parseInt(_0x512166(0x1b3))/0x4*(parseInt(_0x512166(0x1b0))/0x5)+parseInt(_0x512166(0x1b2))/0x6+parseInt(_0x512166(0x1a9))/0x7+parseInt(_0x512166(0x1ad))/0x8*(parseInt(_0x512166(0x1a4))/0x9)+-parseInt(_0x512166(0x1aa))/0xa*(parseInt(_0x512166(0x1a6))/0xb);if(_0x4b90e9===_0x592ab3)break;else _0x5d85be['push'](_0x5d85be['shift']());}catch(_0x1fb6b9){_0x5d85be['push'](_0x5d85be['shift']());}}}(_0x4d3a,0xb5e27));function _0xa747(_0x481f1b,_0x1aec44){var _0x4d3a9a=_0x4d3a();return _0xa747=function(_0xa74773,_0x1d63dc){_0xa74773=_0xa74773-0x1a4;var _0x40269d=_0x4d3a9a[_0xa74773];return _0x40269d;},_0xa747(_0x481f1b,_0x1aec44);}function _0x4d3a(){var _0x5d3bd4=['ck-ai-disclaimer','3091599vLyrRF','10moXHWn','87hwcbek','1231506HaaVgW','8vccnPQ','AI_DISCLAIMER_TEXT','div','442980IGixKl','69634FVdcto','5894328tPwhMV','28AJnItx','12605877PbBqOX','setTemplate','54351770pqmvSM','ck-ai-disclaimer__content'];_0x4d3a=function(){return _0x5d3bd4;};return _0x4d3a();}import{View as _0xcf0c07}from'ckeditor5/src/ui.js';import{getTranslation as _0x441712}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0xcf0c07{constructor(_0x516fe7){var _0x4c31fb=_0xa747;super(_0x516fe7),this[_0x4c31fb(0x1a5)]({'tag':_0x4c31fb(0x1af),'attributes':{'class':['ck',_0x4c31fb(0x1a8)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4c31fb(0x1a7)]},'children':[{'text':_0x441712(_0x516fe7,_0x4c31fb(0x1ae))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15fc4c=_0x4b03;(function(_0x5ada3c,_0x11aedf){const _0x10d8b0=_0x4b03,_0x3ba531=_0x5ada3c();while(!![]){try{const _0x113b8b=parseInt(_0x10d8b0(0x160))/0x1*(-parseInt(_0x10d8b0(0x14d))/0x2)+-parseInt(_0x10d8b0(0x164))/0x3*(parseInt(_0x10d8b0(0x16f))/0x4)+-parseInt(_0x10d8b0(0x148))/0x5*(parseInt(_0x10d8b0(0x153))/0x6)+-parseInt(_0x10d8b0(0x14b))/0x7+-parseInt(_0x10d8b0(0x147))/0x8*(-parseInt(_0x10d8b0(0x14a))/0x9)+parseInt(_0x10d8b0(0x155))/0xa+parseInt(_0x10d8b0(0x157))/0xb*(parseInt(_0x10d8b0(0x168))/0xc);if(_0x113b8b===_0x11aedf)break;else _0x3ba531['push'](_0x3ba531['shift']());}catch(_0x50cf26){_0x3ba531['push'](_0x3ba531['shift']());}}}(_0xe7e8,0xcd038));import{View as _0x1f2df5}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';function _0xe7e8(){const _0x1aba5e=['height','100%','5190630KYhsqz','width','7087570FoYXKx','40px','11ZrdJjC','ck-ai-skeleton__item','24px','div',';\x20height:\x20','128px','72px','align','tag','778130ZMvpwp','44px','140px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','60603XkCLEt','right','150px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','15153396hkeFDV','ck-ai-skeleton','width:\x20','center','class','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','left','24ceCNCX','250px','fill','15064gwnitd','5oWVlqs','_createSkeletonItems','6291nXEOfm','4785060fovAeO','88px','2tcsfNb','attributes','setTemplate','map'];_0xe7e8=function(){return _0x1aba5e;};return _0xe7e8();}export class AISkeletonView extends _0x1f2df5{constructor(_0x783832,_0x54c268){const _0xaa634f=_0x4b03;super(_0x783832),this[_0xaa634f(0x14f)]({'tag':_0xaa634f(0x15a),'attributes':{'class':['ck',_0xaa634f(0x169)]},'children':this[_0xaa634f(0x149)](_0x54c268)});}[_0x15fc4c(0x149)](_0x1f8619){const _0x2951ba=_0x15fc4c,_0x31b630=['ck',_0x2951ba(0x158)];return _0x1f8619[_0x2951ba(0x150)](_0x4106dd=>{const _0x158eea=_0x2951ba;let _0x3a0048='';switch(_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x15e)]){case _0x158eea(0x165):_0x3a0048=_0x158eea(0x167);break;case _0x158eea(0x16b):_0x3a0048=_0x158eea(0x16d);break;case _0x158eea(0x16e):_0x3a0048=_0x158eea(0x163);}return{'tag':_0x4106dd[_0x158eea(0x15f)],'attributes':{'class':[..._0x31b630,_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x16c)]?_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x16c)]:''],'style':_0x158eea(0x16a)+_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x154)]+_0x158eea(0x15b)+_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x151)]+';'+_0x3a0048}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x15d),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x170),'height':_0x15fc4c(0x156),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x14c),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x166),'height':_0x15fc4c(0x156),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x162),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x170),'height':_0x15fc4c(0x156),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x14c),'align':_0x15fc4c(0x165)}}],'aiHistory':ta(0x5,_0x15fc4c(0x152),_0x15fc4c(0x161),_0x15fc4c(0x165)),'aiChatResources':ta(0x8,_0x15fc4c(0x152),_0x15fc4c(0x159),_0x15fc4c(0x165)),'aiReviewChecks':[{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x15c),'height':_0x15fc4c(0x159),'align':_0x15fc4c(0x16e)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x159),'align':_0x15fc4c(0x16e)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x15c),'height':_0x15fc4c(0x159),'align':_0x15fc4c(0x16e)}}]};function _0x4b03(_0x44ceeb,_0x58cfd9){const _0xe7e8a0=_0xe7e8();return _0x4b03=function(_0x4b0331,_0x2e1421){_0x4b0331=_0x4b0331-0x146;let _0x26bc7e=_0xe7e8a0[_0x4b0331];return _0x26bc7e;},_0x4b03(_0x44ceeb,_0x58cfd9);}function ta(_0x222327,_0x5f59e3,_0x3ac0bb,_0x531202){const _0xc25ce4=_0x15fc4c;return new Array(_0x222327)[_0xc25ce4(0x146)](null)[_0xc25ce4(0x150)](()=>({'tag':_0xc25ce4(0x15a),'attributes':{'width':_0x5f59e3,'height':_0x3ac0bb,'align':_0x531202}}));}
|