@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bebf6=_0x50ff;(function(_0x39d8d8,_0x5e0110){const _0x3b60a4=_0x50ff,_0xe89480=_0x39d8d8();while(!![]){try{const _0x4fc286=-parseInt(_0x3b60a4(0x1c8))/0x1+parseInt(_0x3b60a4(0x1b2))/0x2+-parseInt(_0x3b60a4(0x1ba))/0x3+parseInt(_0x3b60a4(0x1b7))/0x4+parseInt(_0x3b60a4(0x1c0))/0x5+-parseInt(_0x3b60a4(0x1b6))/0x6*(-parseInt(_0x3b60a4(0x1bd))/0x7)+-parseInt(_0x3b60a4(0x1bf))/0x8;if(_0x4fc286===_0x5e0110)break;else _0xe89480['push'](_0xe89480['shift']());}catch(_0x403ecf){_0xe89480['push'](_0xe89480['shift']());}}}(_0x5191,0x539f6));function _0x50ff(_0x317f03,_0x10b705){const _0x519173=_0x5191();return _0x50ff=function(_0x50fffb,_0x34de02){_0x50fffb=_0x50fffb-0x1b2;let _0x23e627=_0x519173[_0x50fffb];return _0x23e627;},_0x50ff(_0x317f03,_0x10b705);}function _0x5191(){const _0x232628=['setReasoning','toggleWebSearch','capabilitiesUpdated','49722UBrQQu','2090088XCVIut','setWebSearch','init','280917xhFRIn','reasoning','getCapabilitiesConfig','77UAukGq','toggleReasoning','3069536adWtZE','569700sBmsuu','_isWebSearchEnabled','_isReasoningEnabled','isReasoningEnabled','webSearch','fire','reset','getCapabilitiesRequestData','73059hljWNb','isWebSearchEnabled','330578hBqtod'];_0x5191=function(){return _0x232628;};return _0x5191();}import{EmitterMixin as _0x5bf421}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2bebf6(0x1b5)];export class AICapabilities extends _0x5bf421(){[_0x2bebf6(0x1c1)];[_0x2bebf6(0x1c2)];constructor(){const _0x4d6256=_0x2bebf6;super(),this[_0x4d6256(0x1c1)]=!0x1,this[_0x4d6256(0x1c2)]=!0x1;}[_0x2bebf6(0x1b9)](){const _0x1994aa=_0x2bebf6;this[_0x1994aa(0x1c6)]();}[_0x2bebf6(0x1c6)](){const _0x13a573=_0x2bebf6;this[_0x13a573(0x1b8)](!0x1),this[_0x13a573(0x1b3)](!0x1);}[_0x2bebf6(0x1bc)](){const _0x270325=_0x2bebf6;return{'isWebSearchEnabled':this[_0x270325(0x1c1)],'isReasoningEnabled':this[_0x270325(0x1c2)]};}static[_0x2bebf6(0x1c7)](_0x1eda6c){const _0xc30f79=_0x2bebf6,_0x31c448={};return _0x1eda6c&&_0x1eda6c[_0xc30f79(0x1c9)]&&(_0x31c448[_0xc30f79(0x1c4)]={}),_0x1eda6c&&_0x1eda6c[_0xc30f79(0x1c3)]&&(_0x31c448[_0xc30f79(0x1bb)]={}),_0x31c448;}[_0x2bebf6(0x1b4)](){const _0x30d3c9=_0x2bebf6;this[_0x30d3c9(0x1b8)](!this[_0x30d3c9(0x1c1)]);}[_0x2bebf6(0x1be)](){const _0x212436=_0x2bebf6;this[_0x212436(0x1b3)](!this[_0x212436(0x1c2)]);}[_0x2bebf6(0x1b8)](_0xdef12a){const _0x2a8b6b=_0x2bebf6;_0xdef12a!==this[_0x2a8b6b(0x1c1)]&&(this[_0x2a8b6b(0x1c1)]=_0xdef12a,this[_0x2a8b6b(0x1c5)](_0x2a8b6b(0x1b5),this[_0x2a8b6b(0x1bc)]()));}[_0x2bebf6(0x1b3)](_0x1cbef5){const _0x25aa1c=_0x2bebf6;_0x1cbef5!==this[_0x25aa1c(0x1c2)]&&(this[_0x25aa1c(0x1c2)]=_0x1cbef5,this[_0x25aa1c(0x1c5)](_0x25aa1c(0x1b5),this[_0x25aa1c(0x1bc)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x189e1e,_0x1e181c){var _0x42c6e4=_0x8365,_0x5ba332=_0x189e1e();while(!![]){try{var _0x8a93ab=-parseInt(_0x42c6e4(0x182))/0x1*(parseInt(_0x42c6e4(0x187))/0x2)+-parseInt(_0x42c6e4(0x184))/0x3+parseInt(_0x42c6e4(0x183))/0x4+-parseInt(_0x42c6e4(0x195))/0x5*(-parseInt(_0x42c6e4(0x18e))/0x6)+-parseInt(_0x42c6e4(0x192))/0x7*(parseInt(_0x42c6e4(0x191))/0x8)+-parseInt(_0x42c6e4(0x196))/0x9*(parseInt(_0x42c6e4(0x181))/0xa)+parseInt(_0x42c6e4(0x18d))/0xb;if(_0x8a93ab===_0x1e181c)break;else _0x5ba332['push'](_0x5ba332['shift']());}catch(_0x53529b){_0x5ba332['push'](_0x5ba332['shift']());}}}(_0x3ae5,0x443e5));function _0x3ae5(){var _0x165497=['569613iuLWST','html','selection','983924LzGgqb','text','URL','markdown','MARKDOWN','TEXT','14394468Bpbwpf','34980fZIFWF','HTML','document','3793352uHLYej','7cZkRvs','web-resource','file','50YeHeHl','18wXPRuu','FILE','SELECTION','DOCUMENT','1271370hesnuR','1CYsXrk','1291652HXuvCU'];_0x3ae5=function(){return _0x165497;};return _0x3ae5();}export var AIContextItemType;function _0x8365(_0x3b40cb,_0x240307){var _0x3ae5a6=_0x3ae5();return _0x8365=function(_0x836563,_0x19f841){_0x836563=_0x836563-0x17f;var _0x7ed9a8=_0x3ae5a6[_0x836563];return _0x7ed9a8;},_0x8365(_0x3b40cb,_0x240307);}!function(_0x4a21c9){var _0x313362=_0x8365;_0x4a21c9[_0x313362(0x197)]=_0x313362(0x194),_0x4a21c9[_0x313362(0x180)]=_0x313362(0x190),_0x4a21c9[_0x313362(0x189)]=_0x313362(0x193),_0x4a21c9[_0x313362(0x18c)]=_0x313362(0x188),_0x4a21c9[_0x313362(0x17f)]=_0x313362(0x186);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x400d3b){var _0x324331=_0x8365;_0x400d3b[_0x324331(0x18c)]=_0x324331(0x188),_0x400d3b[_0x324331(0x18b)]=_0x324331(0x18a),_0x400d3b[_0x324331(0x18f)]=_0x324331(0x185);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x12a0(_0x3231af,_0x3a8f0e){const _0x232174=_0x2321();return _0x12a0=function(_0x12a0a4,_0xa985ea){_0x12a0a4=_0x12a0a4-0x1dd;let _0x5d6654=_0x232174[_0x12a0a4];return _0x5d6654;},_0x12a0(_0x3231af,_0x3a8f0e);}const _0x316168=_0x12a0;(function(_0x24354c,_0x383e9e){const _0x49cc9d=_0x12a0,_0x1d2658=_0x24354c();while(!![]){try{const _0xac1dd=parseInt(_0x49cc9d(0x218))/0x1+parseInt(_0x49cc9d(0x1f0))/0x2+parseInt(_0x49cc9d(0x21b))/0x3+parseInt(_0x49cc9d(0x201))/0x4*(-parseInt(_0x49cc9d(0x1ef))/0x5)+parseInt(_0x49cc9d(0x214))/0x6+-parseInt(_0x49cc9d(0x1e7))/0x7+-parseInt(_0x49cc9d(0x1f2))/0x8;if(_0xac1dd===_0x383e9e)break;else _0x1d2658['push'](_0x1d2658['shift']());}catch(_0x18c72){_0x1d2658['push'](_0x1d2658['shift']());}}}(_0x2321,0xc4f88));function _0x2321(){const _0x3d73ef=['11927032PRyVTm','conversationTitle','sendRequest','data','find','abort','_finalizeInteraction','abortController','event','stop','reasoningFinished','length','currentReply','actionCallId','reasoningStarted','119984vgNTqs','ai-interaction-invalid-event-type','currentRequest','editor','replyContentUpdated','interactionStopped','replyCreated','error','textDelta','start','web-search','getDocumentContext','reasoning','interactionFinished','webSearchStarted','interactionDestroyed','messageId','getStream','_isReasoning','480396HkrCUR','replies','replyChangeGroupStateUpdated','setConversationTitle','1103134FZovqJ','ai-chat-interaction-error','destroy','4777170EXjIhy','splice','isStopped','action-metadata','stopListening','forEach','done','interactionStarted','modification-delta','push','connector','callId','content','webSearchFinished','getReply','fire','appendContent','5780348PHWSjU','interactionCreated','createReply','source','message-metadata','isDestroyed','_isWebSearching','delegate','185GUrzwP','2915394nstOEe','sources'];_0x2321=function(){return _0x3d73ef;};return _0x2321();}import{CKEditorError as _0x101518,EmitterMixin as _0x24e247,logWarning as _0x5703ac,uid as _0x382f53}from'ckeditor5/src/utils.js';import{AIReply as _0x1ec839,isIgnoredReplyType as _0x5344c0,isValidReplyType as _0x112af2,isReplyTitleType as _0xb17076,isSourceType as _0x5c7d92}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x316168(0x1e8),_0x316168(0x1dd),_0x316168(0x206),_0x316168(0x20e),_0x316168(0x210),_0x316168(0x207),_0x316168(0x205),_0x316168(0x216),_0x316168(0x217),_0x316168(0x20f),_0x316168(0x1e3),_0x316168(0x200),_0x316168(0x1fc),_0x316168(0x208)];export class AIInteraction extends _0x24e247(){['id'];[_0x316168(0x215)]=[];[_0x316168(0x1fe)];[_0x316168(0x211)];[_0x316168(0x1ff)];[_0x316168(0x203)];[_0x316168(0x1e0)];[_0x316168(0x21d)]=!0x1;[_0x316168(0x1ec)]=!0x1;[_0x316168(0x204)];[_0x316168(0x213)]=!0x1;[_0x316168(0x1ed)]=!0x1;constructor({connector:_0x25bf7a,editor:_0x56fd2a}){const _0x5d0511=_0x316168;super(),this['id']=_0x382f53(),this[_0x5d0511(0x1e0)]=_0x25bf7a,this[_0x5d0511(0x21d)]=!0x0,this[_0x5d0511(0x204)]=_0x56fd2a;}async[_0x316168(0x20a)](){const _0x5d2aad=_0x316168;let _0x5b9e10;const _0x45d767=[];this[_0x5d2aad(0x21d)]=!0x1;try{this[_0x5d2aad(0x203)]=await this[_0x5d2aad(0x1f4)](),this[_0x5d2aad(0x1e5)](_0x5d2aad(0x1dd),this);const _0x2e8291=await this[_0x5d2aad(0x203)][_0x5d2aad(0x212)]();for await(const _0x307bbe of _0x2e8291){if(this[_0x5d2aad(0x21d)])return;if(_0x5d2aad(0x208)===_0x307bbe[_0x5d2aad(0x1fa)])return void this[_0x5d2aad(0x1e5)](_0x5d2aad(0x208),{'error':new _0x101518(_0x5d2aad(0x219),this)});if(_0x5d2aad(0x1eb)!==_0x307bbe[_0x5d2aad(0x1fa)]){if(_0x5d2aad(0x21e)!==_0x307bbe[_0x5d2aad(0x1fa)]){if(_0xb17076(_0x307bbe[_0x5d2aad(0x1fa)])&&this[_0x5d2aad(0x217)](_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x1f3)],!0x0),_0x5c7d92(_0x307bbe[_0x5d2aad(0x1fa)]))_0x45d767[_0x5d2aad(0x1df)](_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x1ea)]);else{if(_0x112af2(_0x307bbe[_0x5d2aad(0x1fa)])){if(_0x307bbe[_0x5d2aad(0x1fa)]!==_0x5b9e10){if(_0x5b9e10=_0x307bbe[_0x5d2aad(0x1fa)],_0x5d2aad(0x20b)===_0x307bbe[_0x5d2aad(0x1fa)]){this[_0x5d2aad(0x1ed)]||(this[_0x5d2aad(0x1ed)]=!0x0,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x20f),this));continue;}if(_0x5d2aad(0x20d)===_0x307bbe[_0x5d2aad(0x1fa)]){this[_0x5d2aad(0x213)]||(this[_0x5d2aad(0x213)]=!0x0,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x200),this));continue;}this[_0x5d2aad(0x213)]&&(this[_0x5d2aad(0x213)]=!0x1,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x1fc),this)),this[_0x5d2aad(0x1ed)]&&(this[_0x5d2aad(0x1ed)]=!0x1,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x1e3),this)),this[_0x5d2aad(0x1fe)]&&this[_0x5d2aad(0x1fe)][_0x5d2aad(0x221)](),this[_0x5d2aad(0x1fe)]=this[_0x5d2aad(0x1e9)]({'type':_0x307bbe[_0x5d2aad(0x1fa)],'interactionId':this['id'],'id':_0x307bbe[_0x5d2aad(0x1f5)]?.['id']}),_0x45d767[_0x5d2aad(0x1fd)]>0x0&&_0x5d2aad(0x1de)===_0x307bbe[_0x5d2aad(0x1fa)]&&(this[_0x5d2aad(0x1fe)][_0x5d2aad(0x1f1)]=_0x45d767[_0x5d2aad(0x21c)](0x0));}_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x209)]&&this[_0x5d2aad(0x1fe)][_0x5d2aad(0x1e6)](_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x209)]);}else _0x5344c0(_0x307bbe[_0x5d2aad(0x1fa)])||_0x5703ac(_0x5d2aad(0x202),{'chunk':_0x307bbe});}}else this[_0x5d2aad(0x1ff)]=_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x1e1)];}else this[_0x5d2aad(0x211)]=_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x211)];}}finally{this[_0x5d2aad(0x21d)]||(_0x45d767[_0x5d2aad(0x1fd)]>0x0&&(this[_0x5d2aad(0x1fe)][_0x5d2aad(0x1f1)]=_0x45d767[_0x5d2aad(0x21c)](0x0)),this[_0x5d2aad(0x1f8)](),this[_0x5d2aad(0x1e5)](_0x5d2aad(0x20e),this));}}[_0x316168(0x1fb)](){const _0x5e0063=_0x316168;this[_0x5e0063(0x21d)]||(this[_0x5e0063(0x1f8)](),this[_0x5e0063(0x1e5)](_0x5e0063(0x206),this));}[_0x316168(0x1e4)](_0x179dcc){const _0x41b9b5=_0x316168;return this[_0x41b9b5(0x215)][_0x41b9b5(0x1f6)](_0xfe2f82=>_0xfe2f82['id']===_0x179dcc);}[_0x316168(0x21a)](){const _0x1faacd=_0x316168;this[_0x1faacd(0x1ec)]||(this[_0x1faacd(0x1fb)](),this[_0x1faacd(0x215)][_0x1faacd(0x220)](_0x5a5638=>_0x5a5638[_0x1faacd(0x21a)]()),this[_0x1faacd(0x215)]=[],this[_0x1faacd(0x1ec)]=!0x0,this[_0x1faacd(0x1e5)](_0x1faacd(0x210),this),this[_0x1faacd(0x21f)]());}[_0x316168(0x1e9)](_0xc1702d){const _0x734798=_0x316168,_0x4b650b=new _0x1ec839({'editor':this[_0x734798(0x204)],'documentContextContent':this[_0x734798(0x20c)]()?.[_0x734798(0x1e2)],..._0xc1702d});return this[_0x734798(0x215)][_0x734798(0x1df)](_0x4b650b),_0x4b650b[_0x734798(0x1ee)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x734798(0x1e5)](_0x734798(0x207),_0x4b650b),_0x4b650b;}[_0x316168(0x217)](_0x2bd808,_0x311fa4=!0x1){const _0x483f07=_0x316168;this[_0x483f07(0x1e5)](_0x483f07(0x217),_0x2bd808,_0x311fa4);}[_0x316168(0x1f8)](){const _0x4f0650=_0x316168;this[_0x4f0650(0x21d)]=!0x0,this[_0x4f0650(0x203)]&&this[_0x4f0650(0x203)][_0x4f0650(0x1f9)][_0x4f0650(0x1f7)](),this[_0x4f0650(0x1fe)]&&this[_0x4f0650(0x1fe)][_0x4f0650(0x221)](),this[_0x4f0650(0x203)]=this[_0x4f0650(0x1fe)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x26bf(_0x205cbe,_0xfa55d5){const _0x52e3be=_0x52e3();return _0x26bf=function(_0x26bfed,_0x345532){_0x26bfed=_0x26bfed-0x1a1;let _0x4ce449=_0x52e3be[_0x26bfed];return _0x4ce449;},_0x26bf(_0x205cbe,_0xfa55d5);}const _0x51e214=_0x26bf;(function(_0x464adc,_0x172d60){const _0x4b4c0f=_0x26bf,_0x84018f=_0x464adc();while(!![]){try{const _0x40d906=-parseInt(_0x4b4c0f(0x1c3))/0x1+parseInt(_0x4b4c0f(0x1c7))/0x2*(-parseInt(_0x4b4c0f(0x1b5))/0x3)+parseInt(_0x4b4c0f(0x1a2))/0x4*(parseInt(_0x4b4c0f(0x1ce))/0x5)+-parseInt(_0x4b4c0f(0x1a4))/0x6*(parseInt(_0x4b4c0f(0x1c9))/0x7)+parseInt(_0x4b4c0f(0x1aa))/0x8+parseInt(_0x4b4c0f(0x1b8))/0x9+parseInt(_0x4b4c0f(0x1b9))/0xa*(-parseInt(_0x4b4c0f(0x1c8))/0xb);if(_0x40d906===_0x172d60)break;else _0x84018f['push'](_0x84018f['shift']());}catch(_0x185398){_0x84018f['push'](_0x84018f['shift']());}}}(_0x52e3,0x6beb0));import{CKEditorError as _0x5d22e0,EmitterMixin as _0x14c13b,logWarning as _0x47dae3}from'ckeditor5/src/utils.js';import{getTranslation as _0x3f7244}from'../utils/common-translations.js';export class AIModels extends _0x14c13b(){[_0x51e214(0x1a3)];[_0x51e214(0x1a1)];[_0x51e214(0x1af)];[_0x51e214(0x1a7)]=[];constructor({connector:_0x3982cf,availableModels:_0x33d21b,defaultModelId:_0x3de551}){const _0x19961f=_0x51e214;super(),this[_0x19961f(0x1a3)]=_0x3982cf,this[_0x19961f(0x1a1)]=_0x33d21b,this[_0x19961f(0x1af)]=_0x3de551;}async[_0x51e214(0x1b7)](){const _0x4ec3f7=_0x51e214;if(!this[_0x4ec3f7(0x1a7)][_0x4ec3f7(0x1c0)])try{const _0x5461b9=this[_0x4ec3f7(0x1a3)][_0x4ec3f7(0x1ad)](),_0x504a5a=await _0x5461b9[_0x4ec3f7(0x1a5)]();this[_0x4ec3f7(0x1a7)]=_0x504a5a[_0x4ec3f7(0x1ca)];}catch(_0x14fb6e){throw new _0x5d22e0(_0x4ec3f7(0x1b2),null,{'error':_0x14fb6e});}return[...this[_0x4ec3f7(0x1a7)]];}async[_0x51e214(0x1bf)](){const _0x12da4a=_0x51e214,_0x126c25=await this[_0x12da4a(0x1b7)]();return this[_0x12da4a(0x1cc)](_0x126c25,this[_0x12da4a(0x1a1)]);}async[_0x51e214(0x1cd)](_0x8007f2){const _0x58ede4=_0x51e214,_0x45fa2d=await this[_0x58ede4(0x1b7)]();if(!_0x45fa2d[_0x58ede4(0x1c0)])return null;if(_0x8007f2){const _0x44a07d=this[_0x58ede4(0x1b0)](_0x45fa2d,_0x8007f2);if(_0x44a07d)return _0x44a07d;_0x47dae3(_0x58ede4(0x1ab),{'modelId':_0x8007f2,'fallBackModelId':this[_0x58ede4(0x1af)]});}return this[_0x58ede4(0x1b6)]();}async[_0x51e214(0x1b6)](){const _0x861d5b=_0x51e214,_0x4f3bc1=await this[_0x861d5b(0x1bf)]();if(!_0x4f3bc1[_0x861d5b(0x1c0)])return null;if(this[_0x861d5b(0x1af)]){const _0x3c36bb=this[_0x861d5b(0x1b0)](_0x4f3bc1,this[_0x861d5b(0x1af)]);if(_0x3c36bb)return _0x3c36bb;_0x47dae3(_0x861d5b(0x1c4),{'defaultModelId':this[_0x861d5b(0x1af)],'fallBackModelId':_0x4f3bc1[0x0]['id']});}return _0x4f3bc1[0x0];}async[_0x51e214(0x1cb)](_0x3f2b2d){const _0x3a2ebe=_0x51e214;return(await this[_0x3a2ebe(0x1bf)]())[_0x3a2ebe(0x1b4)](_0x14a829=>_0x14a829[_0x3a2ebe(0x1bd)]===_0x3f2b2d[_0x3a2ebe(0x1bd)]&&_0x14a829[_0x3a2ebe(0x1a6)]===_0x3f2b2d[_0x3a2ebe(0x1a6)]);}[_0x51e214(0x1cc)](_0x33b6a0,_0x455405){const _0x361431=_0x51e214;let _0x5cee28;if(_0x455405){_0x5cee28=[];const _0x6d5ca0=_0x361431(0x1b1)==typeof _0x455405?[_0x455405[_0x361431(0x1be)]()]:_0x455405[_0x361431(0x1ba)](_0x4a66d2=>_0x4a66d2[_0x361431(0x1be)]());for(const _0x1ff332 of _0x6d5ca0)for(const _0x56a652 of _0x33b6a0)(_0x56a652['id'][_0x361431(0x1be)]()===_0x1ff332||_0x56a652[_0x361431(0x1bd)][_0x361431(0x1be)]()===_0x1ff332||Me(_0x56a652)&&_0x361431(0x1bc)===_0x1ff332||_0x56a652[_0x361431(0x1a6)][_0x361431(0x1be)]()===_0x1ff332||_0x56a652['id'][_0x361431(0x1be)]()[_0x361431(0x1c6)](_0x1ff332))&&_0x5cee28[_0x361431(0x1ae)](_0x56a652);}else _0x5cee28=_0x33b6a0;return _0x5cee28;}[_0x51e214(0x1b0)](_0x12b46b,_0x561ffd){const _0x3b81aa=_0x51e214;return _0x12b46b[_0x3b81aa(0x1ac)](_0x522e78=>Me(_0x522e78)&&_0x3b81aa(0x1bc)===_0x561ffd?_0x522e78:_0x522e78['id']===_0x561ffd)||null;}static[_0x51e214(0x1c5)](_0x488077,_0x5f3531){const _0x1b6e22=_0x51e214;return _0x5f3531[_0x1b6e22(0x1ba)](_0x26f37a=>{const _0x482273=_0x1b6e22;if(Me(_0x26f37a))_0x26f37a[_0x482273(0x1bd)]=_0x3f7244(_0x488077,_0x482273(0x1c2)),_0x26f37a[_0x482273(0x1a8)]=_0x3f7244(_0x488077,_0x482273(0x1bb));else _0x3f7244(_0x488077,_0x482273(0x1b3)+_0x26f37a['id'][_0x482273(0x1a9)]())[_0x482273(0x1c6)](_0x482273(0x1b3))||(_0x26f37a[_0x482273(0x1a8)]=_0x3f7244(_0x488077,_0x482273(0x1b3)+_0x26f37a['id'][_0x482273(0x1a9)]()));return _0x26f37a;});}}function Me(_0x20747d){const _0x4ded47=_0x51e214;return _0x20747d['id'][_0x4ded47(0x1c6)](_0x4ded47(0x1c1));}function _0x52e3(){const _0x221329=['auto','name','toLocaleLowerCase','getAvailableModels','length','agent','AI_MODEL_NAME_AUTO','258699ZCzZNV','ai-chat-default-model-id-unrecognized','getLocalized','startsWith','28068OitzDT','5764iAzdbr','6139srSnmS','items','isAvailable','_filterModels','getModel','605XERhXP','_availableModels','14040LcwooA','_connector','4974VaPklL','list','provider','_modelList','description','toUpperCase','2964160MLHDYz','ai-chat-model-id-unrecognized','find','getModels','push','_defaultModelId','_getModelById','string','ai-models-unable-to-retrieve','AI_MODEL_DESCRIPTION_','some','9aflvVT','getDefault','getAll','6217920TmNryX','310ejHvfk','map','AI_MODEL_DESCRIPTION_AUTO'];_0x52e3=function(){return _0x221329;};return _0x52e3();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x33a4ed=_0x5460;(function(_0x3fc794,_0x319154){const _0x1a124e=_0x5460,_0x1d738a=_0x3fc794();while(!![]){try{const _0x4cff97=-parseInt(_0x1a124e(0x18e))/0x1+-parseInt(_0x1a124e(0x14b))/0x2+parseInt(_0x1a124e(0x168))/0x3+-parseInt(_0x1a124e(0x150))/0x4*(parseInt(_0x1a124e(0x171))/0x5)+-parseInt(_0x1a124e(0x177))/0x6+-parseInt(_0x1a124e(0x158))/0x7+parseInt(_0x1a124e(0x190))/0x8;if(_0x4cff97===_0x319154)break;else _0x1d738a['push'](_0x1d738a['shift']());}catch(_0x53a4c8){_0x1d738a['push'](_0x1d738a['shift']());}}}(_0x395e,0xb5a23));import{CKEditorError as _0x303af5,ObservableMixin as _0x2ed101,uid as _0x3145e4}from'ckeditor5/src/utils.js';import{Element as _0x1c2699,findAll as _0x2d45a9,getAttribute as _0x457c05,getParents as _0x5de814,Document as _0x3f26ab,parse as _0x1156da,Text as _0xc0c28f}from'../utils/htmlparser.js';import{AIResponseParser as _0x53ff0c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x4d5d76}from'../pipeline/airesponseapplier.js';function _0x5460(_0x52598f,_0x414302){const _0x395e46=_0x395e();return _0x5460=function(_0x546020,_0x54efa9){_0x546020=_0x546020-0x14a;let _0x42db35=_0x395e46[_0x546020];return _0x42db35;},_0x5460(_0x52598f,_0x414302);}function _0x395e(){const _0x3d94f5=['withoutDiff','interactionId','locale','sources','ai-get-editor-from-context-no-editor','934160uBBWLC','splice','aiResponseParser','cachedSuggestionContentParts','length','540656dWJapP','web-search','areActionsDisabled','fire','unshift','span','content','state','3065958wKYqnv','pending','AI_SUGGESTION_CONTENT_PART_REMOVED','destroy','source','aiResponseApplier','map','onContentChange','convertMarkdownToHTML','data-id','conversation-title','_setCachedContentParts','includes','filter','nextSibling','stopListening','4065300VoguiA','data-unstable','modification-delta','set','previousSibling','changeGroups','replyChangeGroupStateUpdated','setChangeGroupState','isDone','30zsUUkW','getContentParts','withDiff','removed','parsedContent','editor','1395072lklNVf','parsedMergedContent','newNodeIds','changes','type','context','values','change:content','documentContextContent','forEach','text-delta','updateChangeGroups','node','color:\x20#808080;\x20font-style:\x20italic','index','modified','appendContent','done','reasoning','find','_getDifferentChangeGroups','ai-reply-get-content-parts-group-not-found','new','60199qsLuRd','merge','11181120ucPWUe','indexOf','push','every','modifiedNodeIds','removedNodeIds','replyContentUpdated','_getCachedContentParts','cloneNode','parseAndNormalizeHTML'];_0x395e=function(){return _0x3d94f5;};return _0x395e();}import{getSuggestionPartsFromReply as _0x1b7561}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5c8b99}from'../utils/common-translations.js';import{cloneDeep as _0xe2daea}from'es-toolkit';export const AI_REPLY_TYPES=[_0x33a4ed(0x16a),_0x33a4ed(0x181),_0x33a4ed(0x151),_0x33a4ed(0x189)];export const AI_REPLY_TYPES_IGNORED=[_0x33a4ed(0x162)];export const AI_REPLY_TITLE_TYPE=_0x33a4ed(0x162);export class AIReply extends _0x2ed101(){['id'];[_0x33a4ed(0x19b)];[_0x33a4ed(0x17b)];[_0x33a4ed(0x19d)]=[];[_0x33a4ed(0x175)]=new _0x3f26ab([]);[_0x33a4ed(0x178)]=new _0x3f26ab([]);[_0x33a4ed(0x16d)]=[];[_0x33a4ed(0x152)]=!0x1;[_0x33a4ed(0x17f)];[_0x33a4ed(0x14d)];[_0x33a4ed(0x15d)];[_0x33a4ed(0x176)];[_0x33a4ed(0x14e)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x559c53,content:_0x7e12ea='',isDone:_0x3e4609=!0x1,interactionId:_0x31f348,areActionsDisabled:_0xbb5cef,documentContextContent:_0x31ad89,editor:_0x562cf7,id:_0xe3ec1c}){const _0x489343=_0x33a4ed;super(),this['id']=_0xe3ec1c||_0x3145e4(),this[_0x489343(0x19b)]=_0x31f348,this[_0x489343(0x17b)]=_0x559c53,this[_0x489343(0x152)]=!!_0xbb5cef,this[_0x489343(0x176)]=_0x562cf7,this[_0x489343(0x14d)]=new _0x53ff0c(),this[_0x489343(0x15d)]=new _0x4d5d76(),this[_0x489343(0x17f)]=_0x1156da(_0x31ad89||''),this[_0x489343(0x16b)](_0x489343(0x170),_0x3e4609),this['on'](_0x489343(0x17e),()=>{const _0x4ead70=_0x489343;this[_0x4ead70(0x15f)]();}),this[_0x489343(0x16b)](_0x489343(0x156),_0x7e12ea);}[_0x33a4ed(0x187)](_0x5da159){const _0x538036=_0x33a4ed;this[_0x538036(0x16b)](_0x538036(0x156),this[_0x538036(0x156)]+_0x5da159);}[_0x33a4ed(0x188)](){const _0x40dcf9=_0x33a4ed;this[_0x40dcf9(0x170)]||(this[_0x40dcf9(0x16b)](_0x40dcf9(0x170),!0x0),this[_0x40dcf9(0x15f)]());}[_0x33a4ed(0x15b)](){const _0x49f0d0=_0x33a4ed;this[_0x49f0d0(0x167)]();}[_0x33a4ed(0x16f)](_0x51044d,_0x434703){const _0x4e309e=_0x33a4ed;this[_0x4e309e(0x16d)][_0x51044d][_0x4e309e(0x157)]=_0x434703,this[_0x4e309e(0x153)](_0x4e309e(0x16e),{'reply':this,'index':_0x51044d,'state':_0x434703});}[_0x33a4ed(0x172)]({showDiff:_0x2a436e,groupIndex:_0x4191ab}){const _0x149803=_0x33a4ed;if(!this[_0x149803(0x176)])throw new _0x303af5(_0x149803(0x14a),null,{'aiReply':this});const _0x2a93ef=this[_0x149803(0x197)](_0x2a436e,_0x4191ab);if(_0x2a93ef)return _0x2a93ef;let _0x230a31=[];if(void 0x0===_0x4191ab)_0x230a31=this[_0x149803(0x16d)];else{const _0x451eaf=this[_0x149803(0x16d)][_0x149803(0x18a)](({index:_0x31b890})=>_0x31b890===_0x4191ab);if(!_0x451eaf)throw new _0x303af5(_0x149803(0x18c),null,{'aiReply':this,'groupIndex':_0x4191ab});_0x230a31=[_0x451eaf];}const _0x1da3ac=_0x1b7561({'editor':this[_0x149803(0x176)],'showDiff':_0x2a436e,'changeGroups':_0x230a31,'documentContextContent':this[_0x149803(0x17f)]});return this[_0x149803(0x163)](_0x2a436e,_0x1da3ac),_0x1da3ac;}[_0x33a4ed(0x197)](_0x53f702,_0x2debbf){const _0x47d6e7=_0x33a4ed,_0x4df1b5=_0x53f702?_0x47d6e7(0x173):_0x47d6e7(0x19a);if(!this[_0x47d6e7(0x14e)][_0x4df1b5][_0x47d6e7(0x14f)])return null;const _0x25e3ba=this[_0x47d6e7(0x14e)][_0x4df1b5];if(void 0x0===_0x2debbf)return _0xe2daea(_0x25e3ba);{const _0x30ed5b=_0x25e3ba[_0x47d6e7(0x18a)](({index:_0x1ef7c5})=>_0x1ef7c5===_0x2debbf);if(_0x30ed5b)return[_0xe2daea(_0x30ed5b)];}return null;}[_0x33a4ed(0x163)](_0x5d7e10,_0x36712b){const _0x2a6201=_0x33a4ed,_0x4d68f7=_0x5d7e10?_0x2a6201(0x173):_0x2a6201(0x19a);_0x36712b[_0x2a6201(0x180)](_0x38b96a=>{const _0x136b86=_0x2a6201,_0x557066=this[_0x136b86(0x14e)][_0x4d68f7],_0xe95801=_0x557066[_0x136b86(0x18a)](({index:_0x510ecc})=>_0x510ecc===_0x38b96a[_0x136b86(0x185)]);if(_0xe95801){const _0x54b40d=_0x557066[_0x136b86(0x191)](_0xe95801);_0x557066[_0x136b86(0x14c)](_0x54b40d,0x1,_0x38b96a);}else _0x557066[_0x136b86(0x192)](_0x38b96a);});}[_0x33a4ed(0x15f)](){const _0x2dc81b=_0x33a4ed;if(_0x2dc81b(0x16a)===this[_0x2dc81b(0x17b)]){this[_0x2dc81b(0x175)]=this[_0x2dc81b(0x14d)][_0x2dc81b(0x199)](this[_0x2dc81b(0x156)]);const _0x5ae8c7=this[_0x2dc81b(0x16d)];this[_0x2dc81b(0x182)]();const _0x4866fb=this[_0x2dc81b(0x18b)](_0x5ae8c7,this[_0x2dc81b(0x16d)]);(_0x4866fb[_0x2dc81b(0x14f)]||this[_0x2dc81b(0x170)])&&(this[_0x2dc81b(0x153)](_0x2dc81b(0x196),this,_0x4866fb),this[_0x2dc81b(0x14e)][_0x2dc81b(0x173)][_0x2dc81b(0x14f)]=this[_0x2dc81b(0x14e)][_0x2dc81b(0x19a)][_0x2dc81b(0x14f)]=0x0);}else this[_0x2dc81b(0x175)]=this[_0x2dc81b(0x14d)][_0x2dc81b(0x160)](this[_0x2dc81b(0x156)]),this[_0x2dc81b(0x153)](_0x2dc81b(0x196),this);}[_0x33a4ed(0x18b)](_0x4f50aa,_0x241282){const _0xe20807=_0x33a4ed,_0x507c46=[];for(const _0x4ba8e4 of _0x241282){const _0xbc5bf0=_0x4f50aa[_0x4ba8e4[_0xe20807(0x185)]];_0xbc5bf0?_0xbc5bf0[_0xe20807(0x17a)][_0xe20807(0x14f)]!==_0x4ba8e4[_0xe20807(0x17a)][_0xe20807(0x14f)]?_0x507c46[_0xe20807(0x192)](_0x4ba8e4):_0xbc5bf0[_0xe20807(0x17a)][_0xe20807(0x180)]((_0x4f9ca6,_0x3f4a16)=>{const _0x14b737=_0xe20807,_0x3ecc42=_0x4ba8e4[_0x14b737(0x17a)][_0x3f4a16];_0x4f9ca6['id']!==_0x3ecc42['id']&&_0x507c46[_0x14b737(0x192)](_0x4ba8e4);}):_0x507c46[_0xe20807(0x192)](_0x4ba8e4);}return _0x507c46;}[_0x33a4ed(0x182)](){const _0x2a8512=_0x33a4ed,_0x421804=new _0x1c2699('p',{},[new _0x1c2699(_0x2a8512(0x155),{'style':_0x2a8512(0x184)},[new _0xc0c28f(_0x5c8b99(this[_0x2a8512(0x176)][_0x2a8512(0x19c)],_0x2a8512(0x15a)))])]),_0x277de4=this[_0x2a8512(0x15d)][_0x2a8512(0x18f)](this[_0x2a8512(0x175)],this[_0x2a8512(0x17f)][_0x2a8512(0x198)](!0x0),{'markUnstableElements':!this[_0x2a8512(0x170)],'replaceRemovedWith':_0x421804,'cutAfterLastChange':!this[_0x2a8512(0x170)]});if(!_0x277de4[_0x2a8512(0x194)][_0x2a8512(0x14f)]&&!this[_0x2a8512(0x170)])return;this[_0x2a8512(0x178)]=_0x277de4[_0x2a8512(0x175)];let _0x206039=[];if(_0x2d45a9(_0x111e9f=>{const _0x3b1dee=_0x2a8512,_0x2ddcca=_0x457c05(_0x111e9f,_0x3b1dee(0x161));if(!_0x2ddcca||!_0x312e47(_0x2ddcca))return!0x1;const _0x35c15e=[_0x111e9f,..._0x5de814(_0x111e9f)]['at'](-0x2);if(_0x111e9f!=_0x35c15e){const _0x2072ce=_0x457c05(_0x35c15e,_0x3b1dee(0x161));_0x312e47(_0x2072ce)||(_0x206039[_0x3b1dee(0x192)]({'node':_0x35c15e,'id':_0x2072ce,'type':_0x3b1dee(0x186)}),_0x277de4[_0x3b1dee(0x194)][_0x3b1dee(0x192)](_0x2072ce));}else _0x277de4[_0x3b1dee(0x194)][_0x3b1dee(0x164)](_0x2ddcca)?_0x206039[_0x3b1dee(0x192)]({'node':_0x111e9f,'type':_0x3b1dee(0x186),'id':_0x2ddcca}):_0x277de4[_0x3b1dee(0x179)][_0x3b1dee(0x164)](_0x2ddcca)?_0x206039[_0x3b1dee(0x192)]({'node':_0x111e9f,'type':_0x3b1dee(0x18d),'id':_0x2ddcca,'anchorId':_0x457c05(_0x111e9f[_0x3b1dee(0x16c)],_0x3b1dee(0x161))}):_0x206039[_0x3b1dee(0x192)]({'node':_0x111e9f,'type':_0x3b1dee(0x174),'id':_0x2ddcca});return!0x0;},this[_0x2a8512(0x178)]),_0x206039=_0x206039[_0x2a8512(0x165)](({node:_0x408376})=>[..._0x5de814(_0x408376),_0x408376][_0x2a8512(0x193)](_0x441ec3=>!_0x457c05(_0x441ec3,_0x2a8512(0x169)))),0x0==_0x206039[_0x2a8512(0x14f)])return;const _0x322d13=[[_0x206039[0x0]]];for(let _0xfa532e=0x1;_0xfa532e<_0x206039[_0x2a8512(0x14f)];_0xfa532e++){const _0x4a6131=_0x322d13[_0x322d13[_0x2a8512(0x14f)]-0x1],_0x4cc925=_0x4a6131[_0x4a6131[_0x2a8512(0x14f)]-0x1];_0x206039[_0xfa532e][_0x2a8512(0x183)][_0x2a8512(0x16c)]==_0x4cc925[_0x2a8512(0x183)]&&_0x2a8512(0x186)!=_0x206039[_0xfa532e][_0x2a8512(0x17b)]&&_0x2a8512(0x186)!=_0x4cc925[_0x2a8512(0x17b)]?_0x4a6131[_0x2a8512(0x192)](_0x206039[_0xfa532e]):_0x322d13[_0x2a8512(0x192)]([_0x206039[_0xfa532e]]);}for(const _0x34d2bd of _0x322d13){const _0x192c03=_0x34d2bd[0x0],_0x10a1c=_0x34d2bd[_0x34d2bd[_0x2a8512(0x14f)]-0x1],_0x2b3757=_0x582496(_0x192c03[_0x2a8512(0x183)][_0x2a8512(0x16c)]);_0x2b3757&&_0x34d2bd[_0x2a8512(0x154)](_0x2b3757);const _0x971d06=_0x582496(_0x10a1c[_0x2a8512(0x183)][_0x2a8512(0x166)]);_0x971d06&&_0x34d2bd[_0x2a8512(0x192)](_0x971d06);}function _0x312e47(_0x284d89){const _0x325b99=_0x2a8512;return _0x277de4[_0x325b99(0x194)][_0x325b99(0x164)](_0x284d89)||_0x277de4[_0x325b99(0x179)][_0x325b99(0x164)](_0x284d89)||_0x277de4[_0x325b99(0x195)][_0x325b99(0x164)](_0x284d89);}function _0x582496(_0x4cd399){const _0x4156fe=_0x2a8512;if(_0x4cd399&&_0x457c05(_0x4cd399,_0x4156fe(0x161))&&!_0x457c05(_0x4cd399,_0x4156fe(0x169))){const _0x343c67=_0x457c05(_0x4cd399,_0x4156fe(0x161));if(!_0x312e47(_0x343c67))return{'node':_0x4cd399,'type':_0x4156fe(0x17c),'id':_0x343c67};}return null;}this[_0x2a8512(0x16d)]=_0x322d13[_0x2a8512(0x15e)]((_0x1ba9e7,_0x13e631)=>({'changes':_0x1ba9e7,'state':_0x2a8512(0x159),'index':_0x13e631}));}}export function isValidReplyType(_0x1f1d33){const _0x3cadc6=_0x33a4ed;return Object[_0x3cadc6(0x17d)](AI_REPLY_TYPES)[_0x3cadc6(0x164)](_0x1f1d33);}export function isIgnoredReplyType(_0xd0df14){const _0x25eb49=_0x33a4ed;return AI_REPLY_TYPES_IGNORED[_0x25eb49(0x164)](_0xd0df14);}export function isReplyTitleType(_0x1be8d3){return _0x1be8d3===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x5ea8b9){const _0xf4e0c=_0x33a4ed;return _0xf4e0c(0x15c)===_0x5ea8b9;}
|
|
23
|
+
const _0x39cafa=_0x5afe;(function(_0x413847,_0x1bf6d2){const _0x251b6e=_0x5afe,_0x33f8e9=_0x413847();while(!![]){try{const _0x36f614=-parseInt(_0x251b6e(0x14b))/0x1*(parseInt(_0x251b6e(0x129))/0x2)+parseInt(_0x251b6e(0x144))/0x3*(parseInt(_0x251b6e(0x147))/0x4)+-parseInt(_0x251b6e(0x155))/0x5*(-parseInt(_0x251b6e(0x14f))/0x6)+-parseInt(_0x251b6e(0x14d))/0x7+-parseInt(_0x251b6e(0x120))/0x8+-parseInt(_0x251b6e(0x159))/0x9+-parseInt(_0x251b6e(0x13a))/0xa*(-parseInt(_0x251b6e(0x112))/0xb);if(_0x36f614===_0x1bf6d2)break;else _0x33f8e9['push'](_0x33f8e9['shift']());}catch(_0x36d995){_0x33f8e9['push'](_0x33f8e9['shift']());}}}(_0x2dde,0x8f50c));import{CKEditorError as _0xd00e30,ObservableMixin as _0x4b4ade,uid as _0x5b4e7e}from'ckeditor5/src/utils.js';function _0x5afe(_0x57bc23,_0x59db49){const _0x2ddef2=_0x2dde();return _0x5afe=function(_0x5afe05,_0x41c679){_0x5afe05=_0x5afe05-0x10a;let _0x5e5d47=_0x2ddef2[_0x5afe05];return _0x5e5d47;},_0x5afe(_0x57bc23,_0x59db49);}import{Element as _0x1afbf7,findAll as _0x33986f,getAttribute as _0x2d8dae,getParents as _0x1545f1,Document as _0x3332dd,parse as _0x361701,Text as _0x379eee}from'../utils/htmlparser.js';import{AIResponseParser as _0x4b13ac}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3091be}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x52995c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x20330c}from'../utils/common-translations.js';function _0x2dde(){const _0x2afbff=['areActionsDisabled','web-search','withoutDiff','text-delta','push','setChangeGroupState','434193DfRoRd','includes','interactionId','28nVOgge','modification-delta','state','appendContent','316jJBThJ','ai-get-editor-from-context-no-editor','3267943XVBbKg','sources','14154CkKGMw','indexOf','_getDifferentChangeGroups','modified','convertMarkdownToHTML','change:content','1250eCeLrg','conversation-title','stopListening','ai-reply-get-content-parts-group-not-found','6311925ekWzTY','editor','modifiedNodeIds','getContentParts','_getCachedContentParts','removed','span','find','color:\x20#808080;\x20font-style:\x20italic','removedNodeIds','newNodeIds','parsedMergedContent','data-id','done','reasoning','replyChangeGroupStateUpdated','96547Xusxei','set','locale','every','source','changes','nextSibling','parseAndNormalizeHTML','withDiff','length','forEach','map','documentContextContent','_setCachedContentParts','1539184nbTpqX','cachedSuggestionContentParts','pending','splice','content','previousSibling','type','cloneNode','index','2540AQeRWV','merge','aiResponseApplier','replyContentUpdated','data-unstable','changeGroups','destroy','fire','parsedContent','node','new','unshift','context','updateChangeGroups','values','aiResponseParser','filter','850qjrGGu','onContentChange','isDone','AI_SUGGESTION_CONTENT_PART_REMOVED'];_0x2dde=function(){return _0x2afbff;};return _0x2dde();}import{cloneDeep as _0x4d0dfb}from'es-toolkit';export const AI_REPLY_TYPES=[_0x39cafa(0x148),_0x39cafa(0x141),_0x39cafa(0x13f),_0x39cafa(0x110)];export const AI_REPLY_TYPES_IGNORED=[_0x39cafa(0x156)];export const AI_REPLY_TITLE_TYPE=_0x39cafa(0x156);export class AIReply extends _0x4b4ade(){['id'];[_0x39cafa(0x146)];[_0x39cafa(0x126)];[_0x39cafa(0x14e)]=[];[_0x39cafa(0x131)]=new _0x3332dd([]);[_0x39cafa(0x10d)]=new _0x3332dd([]);[_0x39cafa(0x12e)]=[];[_0x39cafa(0x13e)]=!0x1;[_0x39cafa(0x11e)];[_0x39cafa(0x138)];[_0x39cafa(0x12b)];[_0x39cafa(0x15a)];[_0x39cafa(0x121)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0xcb1212,content:_0x334ad7='',isDone:_0x1cb1e0=!0x1,interactionId:_0x57d817,areActionsDisabled:_0x133d51,documentContextContent:_0x4f9676,editor:_0x429b6e,id:_0x239681}){const _0x49ba85=_0x39cafa;super(),this['id']=_0x239681||_0x5b4e7e(),this[_0x49ba85(0x146)]=_0x57d817,this[_0x49ba85(0x126)]=_0xcb1212,this[_0x49ba85(0x13e)]=!!_0x133d51,this[_0x49ba85(0x15a)]=_0x429b6e,this[_0x49ba85(0x138)]=new _0x4b13ac(),this[_0x49ba85(0x12b)]=new _0x3091be(),this[_0x49ba85(0x11e)]=_0x361701(_0x4f9676||''),this[_0x49ba85(0x113)](_0x49ba85(0x13c),_0x1cb1e0),this['on'](_0x49ba85(0x154),()=>{const _0x1af39d=_0x49ba85;this[_0x1af39d(0x13b)]();}),this[_0x49ba85(0x113)](_0x49ba85(0x124),_0x334ad7);}[_0x39cafa(0x14a)](_0x3b8d0b){const _0x53ddf6=_0x39cafa;this[_0x53ddf6(0x113)](_0x53ddf6(0x124),this[_0x53ddf6(0x124)]+_0x3b8d0b);}[_0x39cafa(0x10f)](){const _0x5733d2=_0x39cafa;this[_0x5733d2(0x13c)]||(this[_0x5733d2(0x113)](_0x5733d2(0x13c),!0x0),this[_0x5733d2(0x13b)]());}[_0x39cafa(0x12f)](){const _0x1ba02a=_0x39cafa;this[_0x1ba02a(0x157)]();}[_0x39cafa(0x143)](_0x553e86,_0x5a2eaa){const _0x315548=_0x39cafa;this[_0x315548(0x12e)][_0x553e86][_0x315548(0x149)]=_0x5a2eaa,this[_0x315548(0x130)](_0x315548(0x111),{'reply':this,'index':_0x553e86,'state':_0x5a2eaa});}[_0x39cafa(0x15c)]({showDiff:_0x171aa6,groupIndex:_0x327bda}){const _0x31b1fd=_0x39cafa;if(!this[_0x31b1fd(0x15a)])throw new _0xd00e30(_0x31b1fd(0x14c),null,{'aiReply':this});const _0xb1c9f1=this[_0x31b1fd(0x15d)](_0x171aa6,_0x327bda);if(_0xb1c9f1)return _0xb1c9f1;let _0x4020cc=[];if(void 0x0===_0x327bda)_0x4020cc=this[_0x31b1fd(0x12e)];else{const _0x1dc2d6=this[_0x31b1fd(0x12e)][_0x31b1fd(0x160)](({index:_0x1e6e87})=>_0x1e6e87===_0x327bda);if(!_0x1dc2d6)throw new _0xd00e30(_0x31b1fd(0x158),null,{'aiReply':this,'groupIndex':_0x327bda});_0x4020cc=[_0x1dc2d6];}const _0x3a9e7c=_0x52995c({'editor':this[_0x31b1fd(0x15a)],'showDiff':_0x171aa6,'changeGroups':_0x4020cc,'documentContextContent':this[_0x31b1fd(0x11e)]});return this[_0x31b1fd(0x11f)](_0x171aa6,_0x3a9e7c),_0x3a9e7c;}[_0x39cafa(0x15d)](_0x533a74,_0x3567df){const _0x192fa9=_0x39cafa,_0x4d6560=_0x533a74?_0x192fa9(0x11a):_0x192fa9(0x140);if(!this[_0x192fa9(0x121)][_0x4d6560][_0x192fa9(0x11b)])return null;const _0x345400=this[_0x192fa9(0x121)][_0x4d6560];if(void 0x0===_0x3567df)return _0x4d0dfb(_0x345400);{const _0x1062b3=_0x345400[_0x192fa9(0x160)](({index:_0x41e86d})=>_0x41e86d===_0x3567df);if(_0x1062b3)return[_0x4d0dfb(_0x1062b3)];}return null;}[_0x39cafa(0x11f)](_0x1a2ae2,_0xaf677d){const _0x354a84=_0x39cafa,_0x28e741=_0x1a2ae2?_0x354a84(0x11a):_0x354a84(0x140);_0xaf677d[_0x354a84(0x11c)](_0x14b664=>{const _0x3872a4=_0x354a84,_0x124426=this[_0x3872a4(0x121)][_0x28e741],_0x3e3919=_0x124426[_0x3872a4(0x160)](({index:_0x11b3af})=>_0x11b3af===_0x14b664[_0x3872a4(0x128)]);if(_0x3e3919){const _0x2b8c0b=_0x124426[_0x3872a4(0x150)](_0x3e3919);_0x124426[_0x3872a4(0x123)](_0x2b8c0b,0x1,_0x14b664);}else _0x124426[_0x3872a4(0x142)](_0x14b664);});}[_0x39cafa(0x13b)](){const _0x3d67dd=_0x39cafa;if(_0x3d67dd(0x148)===this[_0x3d67dd(0x126)]){this[_0x3d67dd(0x131)]=this[_0x3d67dd(0x138)][_0x3d67dd(0x119)](this[_0x3d67dd(0x124)]);const _0x413c93=this[_0x3d67dd(0x12e)];this[_0x3d67dd(0x136)]();const _0xfab43e=this[_0x3d67dd(0x151)](_0x413c93,this[_0x3d67dd(0x12e)]);(_0xfab43e[_0x3d67dd(0x11b)]||this[_0x3d67dd(0x13c)])&&(this[_0x3d67dd(0x130)](_0x3d67dd(0x12c),this,_0xfab43e),this[_0x3d67dd(0x121)][_0x3d67dd(0x11a)][_0x3d67dd(0x11b)]=this[_0x3d67dd(0x121)][_0x3d67dd(0x140)][_0x3d67dd(0x11b)]=0x0);}else this[_0x3d67dd(0x131)]=this[_0x3d67dd(0x138)][_0x3d67dd(0x153)](this[_0x3d67dd(0x124)]),this[_0x3d67dd(0x130)](_0x3d67dd(0x12c),this);}[_0x39cafa(0x151)](_0xfd9d2d,_0x11893d){const _0x1726cf=_0x39cafa,_0x5264f7=[];for(const _0x2235f2 of _0x11893d){const _0x315a1a=_0xfd9d2d[_0x2235f2[_0x1726cf(0x128)]];_0x315a1a?_0x315a1a[_0x1726cf(0x117)][_0x1726cf(0x11b)]!==_0x2235f2[_0x1726cf(0x117)][_0x1726cf(0x11b)]?_0x5264f7[_0x1726cf(0x142)](_0x2235f2):_0x315a1a[_0x1726cf(0x117)][_0x1726cf(0x11c)]((_0x5d9811,_0x3c81c0)=>{const _0x239ef6=_0x1726cf,_0x357a3f=_0x2235f2[_0x239ef6(0x117)][_0x3c81c0];_0x5d9811['id']!==_0x357a3f['id']&&_0x5264f7[_0x239ef6(0x142)](_0x2235f2);}):_0x5264f7[_0x1726cf(0x142)](_0x2235f2);}return _0x5264f7;}[_0x39cafa(0x136)](){const _0x1ad6c9=_0x39cafa,_0x783659=new _0x1afbf7('p',{},[new _0x1afbf7(_0x1ad6c9(0x15f),{'style':_0x1ad6c9(0x10a)},[new _0x379eee(_0x20330c(this[_0x1ad6c9(0x15a)][_0x1ad6c9(0x114)],_0x1ad6c9(0x13d)))])]),_0x67a838=this[_0x1ad6c9(0x12b)][_0x1ad6c9(0x12a)](this[_0x1ad6c9(0x131)],this[_0x1ad6c9(0x11e)][_0x1ad6c9(0x127)](!0x0),{'markUnstableElements':!this[_0x1ad6c9(0x13c)],'replaceRemovedWith':_0x783659,'cutAfterLastChange':!this[_0x1ad6c9(0x13c)]});if(!_0x67a838[_0x1ad6c9(0x15b)][_0x1ad6c9(0x11b)]&&!this[_0x1ad6c9(0x13c)])return;this[_0x1ad6c9(0x10d)]=_0x67a838[_0x1ad6c9(0x131)];let _0x6b2adf=[];if(_0x33986f(_0x11fc85=>{const _0x7676fb=_0x1ad6c9,_0x531e17=_0x2d8dae(_0x11fc85,_0x7676fb(0x10e));if(!_0x531e17||!_0x471613(_0x531e17))return!0x1;const _0xe884a3=[_0x11fc85,..._0x1545f1(_0x11fc85)]['at'](-0x2);if(_0x11fc85!=_0xe884a3){const _0x188c11=_0x2d8dae(_0xe884a3,_0x7676fb(0x10e));_0x471613(_0x188c11)||(_0x6b2adf[_0x7676fb(0x142)]({'node':_0xe884a3,'id':_0x188c11,'type':_0x7676fb(0x152)}),_0x67a838[_0x7676fb(0x15b)][_0x7676fb(0x142)](_0x188c11));}else _0x67a838[_0x7676fb(0x15b)][_0x7676fb(0x145)](_0x531e17)?_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x152),'id':_0x531e17}):_0x67a838[_0x7676fb(0x10c)][_0x7676fb(0x145)](_0x531e17)?_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x133),'id':_0x531e17,'anchorId':_0x2d8dae(_0x11fc85[_0x7676fb(0x125)],_0x7676fb(0x10e))}):_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x15e),'id':_0x531e17});return!0x0;},this[_0x1ad6c9(0x10d)]),_0x6b2adf=_0x6b2adf[_0x1ad6c9(0x139)](({node:_0x4e5238})=>[..._0x1545f1(_0x4e5238),_0x4e5238][_0x1ad6c9(0x115)](_0x154a0a=>!_0x2d8dae(_0x154a0a,_0x1ad6c9(0x12d)))),0x0==_0x6b2adf[_0x1ad6c9(0x11b)])return;const _0x502ebe=[[_0x6b2adf[0x0]]];for(let _0x196077=0x1;_0x196077<_0x6b2adf[_0x1ad6c9(0x11b)];_0x196077++){const _0x437e40=_0x502ebe[_0x502ebe[_0x1ad6c9(0x11b)]-0x1],_0x555154=_0x437e40[_0x437e40[_0x1ad6c9(0x11b)]-0x1];_0x6b2adf[_0x196077][_0x1ad6c9(0x132)][_0x1ad6c9(0x125)]==_0x555154[_0x1ad6c9(0x132)]&&_0x1ad6c9(0x152)!=_0x6b2adf[_0x196077][_0x1ad6c9(0x126)]&&_0x1ad6c9(0x152)!=_0x555154[_0x1ad6c9(0x126)]?_0x437e40[_0x1ad6c9(0x142)](_0x6b2adf[_0x196077]):_0x502ebe[_0x1ad6c9(0x142)]([_0x6b2adf[_0x196077]]);}for(const _0x483e8e of _0x502ebe){const _0x119b51=_0x483e8e[0x0],_0x568717=_0x483e8e[_0x483e8e[_0x1ad6c9(0x11b)]-0x1],_0x6dc09b=_0x2bf7e6(_0x119b51[_0x1ad6c9(0x132)][_0x1ad6c9(0x125)]);_0x6dc09b&&_0x483e8e[_0x1ad6c9(0x134)](_0x6dc09b);const _0x22627e=_0x2bf7e6(_0x568717[_0x1ad6c9(0x132)][_0x1ad6c9(0x118)]);_0x22627e&&_0x483e8e[_0x1ad6c9(0x142)](_0x22627e);}function _0x471613(_0x1d2482){const _0x2f5aa2=_0x1ad6c9;return _0x67a838[_0x2f5aa2(0x15b)][_0x2f5aa2(0x145)](_0x1d2482)||_0x67a838[_0x2f5aa2(0x10c)][_0x2f5aa2(0x145)](_0x1d2482)||_0x67a838[_0x2f5aa2(0x10b)][_0x2f5aa2(0x145)](_0x1d2482);}function _0x2bf7e6(_0x69ee61){const _0x220e41=_0x1ad6c9;if(_0x69ee61&&_0x2d8dae(_0x69ee61,_0x220e41(0x10e))&&!_0x2d8dae(_0x69ee61,_0x220e41(0x12d))){const _0x448335=_0x2d8dae(_0x69ee61,_0x220e41(0x10e));if(!_0x471613(_0x448335))return{'node':_0x69ee61,'type':_0x220e41(0x135),'id':_0x448335};}return null;}this[_0x1ad6c9(0x12e)]=_0x502ebe[_0x1ad6c9(0x11d)]((_0x43976b,_0x262c0b)=>({'changes':_0x43976b,'state':_0x1ad6c9(0x122),'index':_0x262c0b}));}}export function isValidReplyType(_0x4b4ad0){const _0x5af8bb=_0x39cafa;return Object[_0x5af8bb(0x137)](AI_REPLY_TYPES)[_0x5af8bb(0x145)](_0x4b4ad0);}export function isIgnoredReplyType(_0x4a8822){const _0x376495=_0x39cafa;return AI_REPLY_TYPES_IGNORED[_0x376495(0x145)](_0x4a8822);}export function isReplyTitleType(_0x2313b7){return _0x2313b7===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x1b025f){const _0x209152=_0x39cafa;return _0x209152(0x116)===_0x1b025f;}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x56a604(){[_0x3d20f8(0x179)];[_0x3d20f8(0x181)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x3d20f8(0x197)]=new Set();constructor(_0x4c4a61){const _0x57be77=_0x3d20f8;super(),this[_0x57be77(0x179)]=_0x4c4a61||_0x4c0044;}[_0x3d20f8(0x17d)](_0x531715,_0x34332b,_0xbb3fa3){const _0x255814=_0x3d20f8,_0x5c7399=_0xd6cf8d(_0x531715);if(0x0===_0x34332b[_0x255814(0x1b4)][_0x255814(0x186)]){const _0x47b3e1=[];return _0x555f75(_0x255814(0x185),_0x255814(0x196),_0x5c7399)[_0x255814(0x175)](_0x43e954=>{const _0x6ff715=_0x255814,_0x39cc65=this[_0x6ff715(0x179)]();_0x41e003(_0x43e954,_0x6ff715(0x185),_0x39cc65),_0x47b3e1[_0x6ff715(0x1ab)](_0x39cc65);}),this[_0x255814(0x17a)](_0x5c7399),{'parsedContent':_0x5c7399,'newNodeIds':_0x47b3e1,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xbb3fa3&&_0xbb3fa3[_0x255814(0x177)]&&this[_0x255814(0x1b0)](_0x5c7399),this[_0x255814(0x181)][_0x255814(0x193)]=[],this[_0x255814(0x181)][_0x255814(0x188)]=[],this[_0x255814(0x181)][_0x255814(0x1a1)]=[],this[_0x255814(0x181)][_0x255814(0x17b)]=[],this[_0x255814(0x181)][_0x255814(0x18d)]=null,this[_0x255814(0x197)]=new Set(_0x555f75(_0x255814(0x185),null,_0x34332b)[_0x255814(0x18e)](_0x15b7b9=>_0x52ad0c(_0x15b7b9,_0x255814(0x185)))[_0x255814(0x180)](_0x394462=>!!_0x394462));let _0x5c3bc5=-0x1,_0x547581=!0x1;const _0x33b71c=_0x5c7399[_0x255814(0x1b4)],_0x164fad=Array[_0x255814(0x19f)](_0x33b71c)[_0x255814(0x180)](_0xa0034e=>!(0x3===_0xa0034e[_0x255814(0x18f)]&&''===_0x5de60a(_0xa0034e)[_0x255814(0x1a3)]())),_0x2c1036=_0x164fad[_0x255814(0x186)];for(let _0x50fcbd=0x0;_0x50fcbd<_0x2c1036;_0x50fcbd++){const _0x5b3ab0=_0x164fad[_0x50fcbd],_0x1ac7ae=_0x164fad[_0x50fcbd+0x1];if(this[_0x255814(0x1b6)](_0x5b3ab0)){if(-0x1===_0x5c3bc5&&(_0x5c3bc5=_0x50fcbd),this[_0x255814(0x17c)](_0x5b3ab0),!this[_0x255814(0x1b6)](_0x1ac7ae)){const [_0x584fc9,_0x5112cc]=this[_0x255814(0x1a8)](_0x5b3ab0,_0x547581,_0x34332b);if(_0x584fc9){const _0x51bab5=Array[_0x255814(0x19f)](_0x164fad)[_0x255814(0x1a2)](_0x5c3bc5,_0x50fcbd+0x1);this[_0x255814(0x1a0)](_0x584fc9,_0x51bab5,_0x5112cc),_0x5c3bc5=-0x1;}}}else{if(this[_0x255814(0x182)](_0x5b3ab0))_0x547581=!0x0;else{if(this[_0x255814(0x18c)](_0x5b3ab0)){const _0x472aa9=_0x52ad0c(_0x5b3ab0,_0x255814(0x185));if(_0x472aa9&&this[_0x255814(0x197)][_0x255814(0x191)](_0x472aa9)){const _0x43e85a=_0x1165e9(_0x255814(0x185),_0x472aa9,_0x34332b);this[_0x255814(0x1b5)](_0x43e85a,_0x5b3ab0);}if(this[_0x255814(0x181)][_0x255814(0x1a1)][_0x255814(0x1ac)](_0x472aa9)){const _0x4b7f70=this[_0x255814(0x181)][_0x255814(0x1a1)][_0x255814(0x18b)](_0x472aa9);this[_0x255814(0x181)][_0x255814(0x1a1)][_0x255814(0x176)](_0x4b7f70,0x1);}}else{if(this[_0x255814(0x1a7)](_0x5b3ab0)){const _0x29901e=_0x52ad0c(_0x5b3ab0,_0x255814(0x185));this[_0x255814(0x181)][_0x255814(0x188)][_0x255814(0x1ac)](_0x29901e)||this[_0x255814(0x1a5)](_0x5b3ab0);}}}}}for(const _0x2fadce of this[_0x255814(0x181)][_0x255814(0x1a1)]){const _0x259f7f=_0x1165e9(_0x255814(0x185),_0x2fadce,_0x34332b);if(_0x259f7f){if(_0xbb3fa3&&_0xbb3fa3[_0x255814(0x1af)]){this[_0x255814(0x181)][_0x255814(0x18d)]=_0x2fadce;const _0x26e0c2=_0xbb3fa3[_0x255814(0x1af)][_0x255814(0x1a9)](!0x0);_0x41e003(_0x26e0c2,_0x255814(0x185),_0x2fadce),_0x41e003(_0x26e0c2,_0x255814(0x18a),_0x255814(0x190)),_0x145063(_0x259f7f,_0x26e0c2);}else _0x308321(_0x259f7f);}}if(_0x555f75(_0x255814(0x17e),null,_0x34332b)[_0x255814(0x175)](_0x3d4052=>{const _0x1cf425=_0x255814,_0xf17c27=_0x52ad0c(_0x3d4052,_0x1cf425(0x17e)),_0x548603=_0x1165e9(_0x1cf425(0x185),_0xf17c27,_0x34332b);_0x548603&&_0x4640f3(_0x548603,_0x3d4052);}),_0x555f75(_0x255814(0x185),_0x255814(0x196),_0x34332b)[_0x255814(0x175)](_0x55843e=>{const _0x163a7a=_0x255814,_0x314803=this[_0x163a7a(0x17f)](_0x55843e);_0x41e003(_0x55843e,_0x163a7a(0x185),_0x314803),this[_0x163a7a(0x181)][_0x163a7a(0x193)][_0x163a7a(0x1ab)](_0x314803);}),this[_0x255814(0x17a)](_0x34332b),_0xbb3fa3&&_0xbb3fa3[_0x255814(0x177)]&&this[_0x255814(0x1b3)](_0x34332b,_0xbb3fa3[_0x255814(0x1b1)]||0x0),_0xbb3fa3&&_0xbb3fa3[_0x255814(0x184)]&&this[_0x255814(0x181)][_0x255814(0x18d)]){let _0x36f54b=_0x1165e9(_0x255814(0x185),this[_0x255814(0x181)][_0x255814(0x18d)],_0x34332b);for(;_0x36f54b;)_0x2b311f(_0x36f54b),_0x36f54b=_0x36f54b[_0x255814(0x195)];}return{'parsedContent':_0x34332b,'newNodeIds':this[_0x255814(0x181)][_0x255814(0x193)],'modifiedNodeIds':this[_0x255814(0x181)][_0x255814(0x188)],'removedNodeIds':this[_0x255814(0x181)][_0x255814(0x1a1)]};}[_0x3d20f8(0x1a0)](_0x2ea62d,_0x38dfef,_0x4de153){const _0x1b0f76=_0x3d20f8;for(const _0x15a187 of _0x38dfef){const _0x56cb8d=this[_0x1b0f76(0x17f)](_0x15a187);_0x41e003(_0x15a187,_0x1b0f76(0x185),_0x56cb8d),this[_0x1b0f76(0x181)][_0x1b0f76(0x193)][_0x1b0f76(0x1ab)](_0x56cb8d),this[_0x1b0f76(0x181)][_0x1b0f76(0x18d)]=_0x56cb8d;}const _0x2d6778=_0x1b0f76(0x19e)===_0x4de153||_0x1b0f76(0x194)===_0x4de153?_0x38dfef[_0x1b0f76(0x1aa)]():_0x38dfef;for(const _0xa4f3af of _0x2d6778)_0x43d9cb(_0x2ea62d,_0xa4f3af,_0x4de153);}[_0x3d20f8(0x1b5)](_0x46d58d,_0x4afb74){const _0x4d4bca=_0x3d20f8;if(!_0x46d58d)return;if(_0x5c1bb6(_0x46d58d,_0x4afb74))return;const _0xcaa61b=this[_0x4d4bca(0x17f)](_0x46d58d);_0x41e003(_0x4afb74,_0x4d4bca(0x185),_0xcaa61b),this[_0x4d4bca(0x181)][_0x4d4bca(0x188)][_0x4d4bca(0x1ab)](_0xcaa61b),this[_0x4d4bca(0x181)][_0x4d4bca(0x18d)]=_0xcaa61b,_0x145063(_0x46d58d,_0x4afb74[_0x4d4bca(0x1a9)](!0x0));}[_0x3d20f8(0x1a8)](_0x40f81a,_0x180bdd,_0x32fe83){const _0x5e2276=_0x3d20f8,_0x13df46=this[_0x5e2276(0x172)](_0x40f81a,!0x1);if(_0x13df46){const _0x3c3949=this[_0x5e2276(0x1b8)](_0x13df46),_0x1c7afe=_0x1165e9(_0x5e2276(0x185),_0x3c3949,_0x32fe83);if(_0x1c7afe)return[_0x1c7afe,_0x5e2276(0x194)];this[_0x5e2276(0x181)][_0x5e2276(0x17b)][_0x5e2276(0x1ab)](_0x3c3949);}const _0x322257=this[_0x5e2276(0x183)](_0x40f81a,!0x1);if(_0x322257){const _0x401176=this[_0x5e2276(0x1b8)](_0x322257),_0x176aaa=_0x1165e9(_0x5e2276(0x185),_0x401176,_0x32fe83);if(_0x176aaa)return[_0x176aaa,_0x5e2276(0x19b)];this[_0x5e2276(0x181)][_0x5e2276(0x17b)][_0x5e2276(0x1ab)](_0x401176);}return _0x180bdd?_0x40f81a[_0x5e2276(0x1a4)]?this[_0x5e2276(0x178)](_0x40f81a,_0x32fe83):[_0x32fe83[_0x5e2276(0x1b4)][_0x32fe83[_0x5e2276(0x1b4)][_0x5e2276(0x186)]-0x1],_0x5e2276(0x194)]:[_0x32fe83[_0x5e2276(0x1b4)][0x0],_0x5e2276(0x19b)];}[_0x3d20f8(0x178)](_0x5581f8,_0x2546be){const _0x39e1e8=_0x3d20f8,_0x418885=[],_0x1e303a=this[_0x39e1e8(0x172)](_0x5581f8,!0x0);if(_0x1e303a){const _0x1e3e68=this[_0x39e1e8(0x1b8)](_0x1e303a),_0x3c4ff9=_0x1165e9(_0x39e1e8(0x185),_0x1e3e68,_0x2546be);_0x3c4ff9&&_0x418885[_0x39e1e8(0x1ab)]([_0x3c4ff9,_0x39e1e8(0x194)]);}const _0x1e416d=this[_0x39e1e8(0x183)](_0x5581f8,!0x0);if(_0x1e416d){const _0x4bce56=this[_0x39e1e8(0x1b8)](_0x1e416d),_0x209839=_0x1165e9(_0x39e1e8(0x185),_0x4bce56,_0x2546be);_0x209839&&_0x418885[_0x39e1e8(0x1ab)]([_0x209839,_0x39e1e8(0x19b)]);}if(_0x418885[_0x39e1e8(0x186)]>0x1)return _0x5d18ba(_0x418885[0x0][0x0])<=_0x5d18ba(_0x418885[0x1][0x0])?_0x418885[0x0]:_0x418885[0x1];return 0x1===_0x418885[_0x39e1e8(0x186)]?_0x418885[0x0]:[_0x2546be[_0x39e1e8(0x173)],_0x39e1e8(0x194)];}[_0x3d20f8(0x183)](_0xe63c74,_0x493fd1){const _0x1e127a=_0x3d20f8;let _0x2b9702=_0xe63c74[_0x1e127a(0x1a4)],_0xa30d8f=null,_0x46e206=!0x1;for(;_0x2b9702;){if(_0x416ec1(_0x2b9702)){if(this[_0x1e127a(0x1a7)](_0x2b9702)&&(_0xa30d8f=_0x2b9702),this[_0x1e127a(0x182)](_0x2b9702)&&_0x493fd1&&!_0x46e206){_0x46e206=!0x0,_0x2b9702=_0x2b9702[_0x1e127a(0x1a4)];continue;}break;}const _0x22fe00=_0x52ad0c(_0x2b9702,_0x1e127a(0x185));if(_0x22fe00&&_0x1e127a(0x196)!==_0x22fe00&&this[_0x1e127a(0x197)][_0x1e127a(0x191)](_0x22fe00)){_0xa30d8f=_0x2b9702;break;}_0x2b9702=_0x2b9702[_0x1e127a(0x1a4)];}return _0xa30d8f;}[_0x3d20f8(0x172)](_0x14cc60,_0x4d2b1a){const _0x3171b0=_0x3d20f8;let _0x44c0f0=_0x14cc60[_0x3171b0(0x1ad)],_0x50b9ec=null,_0x2f579a=!0x1;for(;_0x44c0f0;){if(_0x416ec1(_0x44c0f0)){if(this[_0x3171b0(0x1a7)](_0x44c0f0)&&(_0x50b9ec=_0x44c0f0),this[_0x3171b0(0x182)](_0x44c0f0)&&_0x4d2b1a&&!_0x2f579a){_0x2f579a=!0x0,_0x44c0f0=_0x44c0f0[_0x3171b0(0x1ad)];continue;}break;}const _0x5315f8=_0x52ad0c(_0x44c0f0,_0x3171b0(0x185));if(_0x5315f8&&_0x3171b0(0x196)!==_0x5315f8&&this[_0x3171b0(0x197)][_0x3171b0(0x191)](_0x5315f8)){_0x50b9ec=_0x44c0f0;break;}_0x44c0f0=_0x44c0f0[_0x3171b0(0x1ad)];}return _0x50b9ec;}[_0x3d20f8(0x17c)](_0x580937){const _0x5caca8=_0x3d20f8;_0x11c806(_0x580937)&&_0x555f75(_0x5caca8(0x185),null,_0x580937)[_0x5caca8(0x175)](_0x376ddd=>{const _0x1c2327=_0x5caca8;if(this[_0x1c2327(0x18c)](_0x376ddd)&&!this[_0x1c2327(0x189)](_0x376ddd)){const _0x175b4e=_0x52ad0c(_0x376ddd,_0x1c2327(0x185));_0x41e003(_0x376ddd,_0x1c2327(0x17e),_0x175b4e),_0x41e003(_0x376ddd,_0x1c2327(0x185),null);}});}[_0x3d20f8(0x1b8)](_0x11fc3b){const _0x4ef5a5=_0x3d20f8;if(!_0x11fc3b)return null;if(_0x11c806(_0x11fc3b))return _0x52ad0c(_0x11fc3b,_0x4ef5a5(0x185));if(_0x416ec1(_0x11fc3b)){const _0x4cc9cc=_0x5de60a(_0x11fc3b)[_0x4ef5a5(0x199)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4cc9cc&&_0x4cc9cc[0x1])return _0x4cc9cc[0x1];}return null;}[_0x3d20f8(0x1a5)](_0x17febc){const _0x44de73=_0x3d20f8;if(_0x416ec1(_0x17febc)){const _0xf1c259=_0x5de60a(_0x17febc)[_0x44de73(0x199)](/removed[\s*-]data-id="([^"]+)"/);_0xf1c259&&_0xf1c259[0x1]&&this[_0x44de73(0x181)][_0x44de73(0x1a1)][_0x44de73(0x1ab)](_0xf1c259[0x1]);}}[_0x3d20f8(0x17f)](_0x10f7f2){const _0x4bfb33=_0x3d20f8;return this[_0x4bfb33(0x18c)](_0x10f7f2)?_0x52ad0c(_0x10f7f2,_0x4bfb33(0x185)):this[_0x4bfb33(0x179)]();}[_0x3d20f8(0x17a)](_0x4e9c20){const _0x277239=_0x3d20f8;_0x2a7ca7(_0x4e9c20)[_0x277239(0x180)](_0xbbd395=>this[_0x277239(0x1a7)](_0xbbd395)||this[_0x277239(0x182)](_0xbbd395))[_0x277239(0x175)](_0x2a3dc8=>{_0x308321(_0x2a3dc8);});}[_0x3d20f8(0x1b0)](_0x1de811){const _0x3e67d0=_0x3d20f8,_0x200ecb=_0x1de811[_0x3e67d0(0x1b4)],_0x200d25=_0x200ecb[_0x200ecb[_0x3e67d0(0x186)]-0x1];_0x200d25&&_0x11c806(_0x200d25)&&_0x41e003(_0x200d25,_0x3e67d0(0x19c),_0x3e67d0(0x190));}[_0x3d20f8(0x1b3)](_0x2c4239,_0x3e1136){const _0x2c75ed=_0x3d20f8,_0x4cde57=_0x1165e9(_0x2c75ed(0x19c),_0x2c75ed(0x190),_0x2c4239);if(!_0x4cde57)return;const _0x49c361=_0x277a4b(_0x4cde57)[_0x2c75ed(0x1a2)](0x0,-0x1),_0x4dda08=_0x49c361[_0x2c75ed(0x186)];let _0x1ff5b5=_0x4cde57;if(_0x4dda08>_0x3e1136){let _0x44f92b=_0x4dda08,_0x4a65e8=null;for(;_0x44f92b>_0x3e1136&&_0x44f92b>=0x0;)_0x44f92b--,_0x4a65e8=_0x49c361[_0x44f92b];_0x4a65e8&&(_0x1ff5b5=_0x4a65e8,_0x41e003(_0x4cde57,_0x2c75ed(0x19c),null),_0x41e003(_0x4a65e8,_0x2c75ed(0x19c),_0x2c75ed(0x190)));}else{if(_0x4dda08<_0x3e1136){let _0x42b242=_0x4dda08,_0x51915a=_0x4cde57;for(;_0x42b242<_0x3e1136;){const _0x537543=_0x51915a[_0x2c75ed(0x1b4)][_0x2c75ed(0x180)](_0x3b1e96=>_0x11c806(_0x3b1e96));if(0x0===_0x537543[_0x2c75ed(0x186)])break;_0x42b242++,_0x51915a=_0x537543[_0x537543[_0x2c75ed(0x186)]-0x1];}_0x51915a&&(_0x1ff5b5=_0x51915a,_0x41e003(_0x4cde57,_0x2c75ed(0x19c),null),_0x41e003(_0x51915a,_0x2c75ed(0x19c),_0x2c75ed(0x190)));}}let _0x1efb80=_0x1ff5b5;for(;_0x1efb80;){for(;_0x1efb80[_0x2c75ed(0x1a4)];)_0x1efb80=_0x1efb80[_0x2c75ed(0x1a4)],_0x11c806(_0x1efb80)&&_0x41e003(_0x1efb80,_0x2c75ed(0x19c),_0x2c75ed(0x190));_0x1efb80=_0x1efb80[_0x2c75ed(0x195)];}}[_0x3d20f8(0x1b6)](_0x45d984){const _0x432d81=_0x3d20f8;return Boolean(_0x432d81(0x196)===_0x52ad0c(_0x45d984,_0x432d81(0x185)));}[_0x3d20f8(0x18c)](_0x4c9ffa){const _0x3cc7d5=_0x3d20f8;return Boolean((_0x52ad0c(_0x4c9ffa,_0x3cc7d5(0x185))||'')[_0x3cc7d5(0x186)]>0x0&&_0x3cc7d5(0x196)!==_0x52ad0c(_0x4c9ffa,_0x3cc7d5(0x185)));}[_0x3d20f8(0x1a7)](_0x5b53df){const _0xc56dfa=_0x3d20f8;return!!_0x5b53df&&Boolean(_0x416ec1(_0x5b53df)&&_0x5de60a(_0x5b53df)[_0xc56dfa(0x199)](/removed[\s*-]data-id="[^"]+"/));}[_0x3d20f8(0x189)](_0x251b5b){const _0x23d9c2=_0x3d20f8;let _0x421864=_0x251b5b[_0x23d9c2(0x195)];for(;_0x421864;){if(_0x52ad0c(_0x421864,_0x23d9c2(0x17e)))return!0x0;_0x421864=_0x421864[_0x23d9c2(0x195)];}return!0x1;}[_0x3d20f8(0x182)](_0x1a3ca3){const _0x1d61d3=_0x3d20f8;return Boolean(_0x416ec1(_0x1a3ca3)&&_0x5de60a(_0x1a3ca3)[_0x1d61d3(0x199)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
23
|
+
const _0x3cbc17=_0xb580;(function(_0x4dde08,_0x447751){const _0x49646d=_0xb580,_0x2e882a=_0x4dde08();while(!![]){try{const _0xebb064=parseInt(_0x49646d(0x1ec))/0x1+parseInt(_0x49646d(0x1e6))/0x2+-parseInt(_0x49646d(0x210))/0x3+parseInt(_0x49646d(0x1f7))/0x4*(-parseInt(_0x49646d(0x1e5))/0x5)+-parseInt(_0x49646d(0x1dd))/0x6+parseInt(_0x49646d(0x1e3))/0x7*(-parseInt(_0x49646d(0x203))/0x8)+-parseInt(_0x49646d(0x1f5))/0x9*(-parseInt(_0x49646d(0x213))/0xa);if(_0xebb064===_0x447751)break;else _0x2e882a['push'](_0x2e882a['shift']());}catch(_0x9274c3){_0x2e882a['push'](_0x2e882a['shift']());}}}(_0xcf77,0xa4f85));import{ObservableMixin as _0x1b9887,uid as _0x231c4e}from'ckeditor5/src/utils.js';function _0xcf77(){const _0x331720=['map','_getUid','_hasWrappedParent','_insertNodes','modifiedIds','nextSibling','nodeType','490104ymkLZC','_markUnstableElements','true','60RWRmyR','lastChild','has','_getNodeDataId','replaceRemovedWith','new-element','_findFallbackReferenceNode','merge','_isDelNode','markUnstableElementsDepth','beforebegin','splice','data-wrapped-id','_storeDeletedElementIds','trim','cloneNode','_findPrevElementWithDataId','3340794hDUtpU','_isExistingContentComment','parentNode','removedIds','push','previousSibling','218848nzWTrn','filter','85QepxDX','2135206HDyhdp','_isExistingNode','from','indexOf','_existingDataIds','childNodes','768588BJrAvX','_removeSpecialComments','_touchedNodesState','newIds','cutAfterLastChange','_markLastTagElementUnstable','_findNextElementWithDataId','afterbegin','_replaceNode','441747OYCJBG','_findReferenceNode','69908lUbFka','markUnstableElements','match','invalidIds','data-unstable','reverse','includes','forEach','slice','_isNewNode','lastTouchedId','_markWrappedElements','112ZGlpWL','afterend','data-removed','data-id','_generateUid','length'];_0xcf77=function(){return _0x331720;};return _0xcf77();}import{findAllByAttribute as _0x3e7a1e,findByAttribute as _0x4ef788,getAttribute as _0x34b6b7,isComment as _0x5ccbac,isTag as _0x8fa7d1,insertElement as _0x272cb4,moveElement as _0x3db494,removeElement as _0x3761c9,replaceElement as _0x11fa30,serialize as _0x1117d5,setAttribute as _0x31aee7,clone as _0x4644ba,findAllComments as _0x1ffc2c,getParents as _0x21be3c,getNodeNestingLevel as _0x994146,areNodesSame as _0x3a1955,removeElementsAfter as _0x382bec}from'../utils/htmlparser.js';function _0xb580(_0x2d7900,_0x5b7bcf){const _0xcf778=_0xcf77();return _0xb580=function(_0xb58097,_0xc4e5c7){_0xb58097=_0xb58097-0x1db;let _0x3fdbdd=_0xcf778[_0xb58097];return _0x3fdbdd;},_0xb580(_0x2d7900,_0x5b7bcf);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1b9887(){[_0x3cbc17(0x207)];[_0x3cbc17(0x1ee)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x3cbc17(0x1ea)]=new Set();constructor(_0x90490a){const _0x53c649=_0x3cbc17;super(),this[_0x53c649(0x207)]=_0x90490a||_0x231c4e;}[_0x3cbc17(0x21a)](_0x55cf98,_0x5bfc4a,_0x3c02f2){const _0x2ca5d7=_0x3cbc17,_0x1c7373=_0x4644ba(_0x55cf98);if(0x0===_0x5bfc4a[_0x2ca5d7(0x1eb)][_0x2ca5d7(0x208)]){const _0x1b8aee=[];return _0x3e7a1e(_0x2ca5d7(0x206),_0x2ca5d7(0x218),_0x1c7373)[_0x2ca5d7(0x1fe)](_0xeb87dc=>{const _0x312771=_0x2ca5d7,_0x36b9be=this[_0x312771(0x207)]();_0x31aee7(_0xeb87dc,_0x312771(0x206),_0x36b9be),_0x1b8aee[_0x312771(0x1e1)](_0x36b9be);}),this[_0x2ca5d7(0x1ed)](_0x1c7373),{'parsedContent':_0x1c7373,'newNodeIds':_0x1b8aee,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x3c02f2&&_0x3c02f2[_0x2ca5d7(0x1f8)]&&this[_0x2ca5d7(0x1f1)](_0x1c7373),this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x1ef)]=[],this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x20d)]=[],this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x1e0)]=[],this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x1fa)]=[],this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x201)]=null,this[_0x2ca5d7(0x1ea)]=new Set(_0x3e7a1e(_0x2ca5d7(0x206),null,_0x5bfc4a)[_0x2ca5d7(0x209)](_0x4b7dc4=>_0x34b6b7(_0x4b7dc4,_0x2ca5d7(0x206)))[_0x2ca5d7(0x1e4)](_0x12dad1=>!!_0x12dad1));let _0xb1d258=-0x1,_0x5e9ec2=!0x1;const _0x508617=_0x1c7373[_0x2ca5d7(0x1eb)],_0x482839=Array[_0x2ca5d7(0x1e8)](_0x508617)[_0x2ca5d7(0x1e4)](_0x3903d9=>!(0x3===_0x3903d9[_0x2ca5d7(0x20f)]&&''===_0x1117d5(_0x3903d9)[_0x2ca5d7(0x221)]())),_0x20ad49=_0x482839[_0x2ca5d7(0x208)];for(let _0x508640=0x0;_0x508640<_0x20ad49;_0x508640++){const _0x152992=_0x482839[_0x508640],_0x150826=_0x482839[_0x508640+0x1];if(this[_0x2ca5d7(0x200)](_0x152992)){if(-0x1===_0xb1d258&&(_0xb1d258=_0x508640),this[_0x2ca5d7(0x202)](_0x152992),!this[_0x2ca5d7(0x200)](_0x150826)){const [_0x3f5599,_0x26e746]=this[_0x2ca5d7(0x1f6)](_0x152992,_0x5e9ec2,_0x5bfc4a);if(_0x3f5599){const _0x50f421=Array[_0x2ca5d7(0x1e8)](_0x482839)[_0x2ca5d7(0x1ff)](_0xb1d258,_0x508640+0x1);this[_0x2ca5d7(0x20c)](_0x3f5599,_0x50f421,_0x26e746),_0xb1d258=-0x1;}}}else{if(this[_0x2ca5d7(0x1de)](_0x152992))_0x5e9ec2=!0x0;else{if(this[_0x2ca5d7(0x1e7)](_0x152992)){const _0x1f86ca=_0x34b6b7(_0x152992,_0x2ca5d7(0x206));if(_0x1f86ca&&this[_0x2ca5d7(0x1ea)][_0x2ca5d7(0x215)](_0x1f86ca)){const _0x1f8b0f=_0x4ef788(_0x2ca5d7(0x206),_0x1f86ca,_0x5bfc4a);this[_0x2ca5d7(0x1f4)](_0x1f8b0f,_0x152992);}if(this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x1e0)][_0x2ca5d7(0x1fd)](_0x1f86ca)){const _0x4112da=this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x1e0)][_0x2ca5d7(0x1e9)](_0x1f86ca);this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x1e0)][_0x2ca5d7(0x21e)](_0x4112da,0x1);}}else{if(this[_0x2ca5d7(0x21b)](_0x152992)){const _0x33090d=_0x34b6b7(_0x152992,_0x2ca5d7(0x206));this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x20d)][_0x2ca5d7(0x1fd)](_0x33090d)||this[_0x2ca5d7(0x220)](_0x152992);}}}}}for(const _0x6b16cc of this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x1e0)]){const _0x302000=_0x4ef788(_0x2ca5d7(0x206),_0x6b16cc,_0x5bfc4a);if(_0x302000){if(_0x3c02f2&&_0x3c02f2[_0x2ca5d7(0x217)]){this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x201)]=_0x6b16cc;const _0x54441a=_0x3c02f2[_0x2ca5d7(0x217)][_0x2ca5d7(0x1db)](!0x0);_0x31aee7(_0x54441a,_0x2ca5d7(0x206),_0x6b16cc),_0x31aee7(_0x54441a,_0x2ca5d7(0x205),_0x2ca5d7(0x212)),_0x11fa30(_0x302000,_0x54441a);}else _0x3761c9(_0x302000);}}if(_0x3e7a1e(_0x2ca5d7(0x21f),null,_0x5bfc4a)[_0x2ca5d7(0x1fe)](_0x3c71a5=>{const _0x1f8d1b=_0x2ca5d7,_0x21910d=_0x34b6b7(_0x3c71a5,_0x1f8d1b(0x21f)),_0x247337=_0x4ef788(_0x1f8d1b(0x206),_0x21910d,_0x5bfc4a);_0x247337&&_0x3db494(_0x247337,_0x3c71a5);}),_0x3e7a1e(_0x2ca5d7(0x206),_0x2ca5d7(0x218),_0x5bfc4a)[_0x2ca5d7(0x1fe)](_0x300afd=>{const _0x4f9564=_0x2ca5d7,_0x548201=this[_0x4f9564(0x20a)](_0x300afd);_0x31aee7(_0x300afd,_0x4f9564(0x206),_0x548201),this[_0x4f9564(0x1ee)][_0x4f9564(0x1ef)][_0x4f9564(0x1e1)](_0x548201);}),this[_0x2ca5d7(0x1ed)](_0x5bfc4a),_0x3c02f2&&_0x3c02f2[_0x2ca5d7(0x1f8)]&&this[_0x2ca5d7(0x211)](_0x5bfc4a,_0x3c02f2[_0x2ca5d7(0x21c)]||0x0),_0x3c02f2&&_0x3c02f2[_0x2ca5d7(0x1f0)]&&this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x201)]){let _0x3e2679=_0x4ef788(_0x2ca5d7(0x206),this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x201)],_0x5bfc4a);for(;_0x3e2679;)_0x382bec(_0x3e2679),_0x3e2679=_0x3e2679[_0x2ca5d7(0x1df)];}return{'parsedContent':_0x5bfc4a,'newNodeIds':this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x1ef)],'modifiedNodeIds':this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x20d)],'removedNodeIds':this[_0x2ca5d7(0x1ee)][_0x2ca5d7(0x1e0)]};}[_0x3cbc17(0x20c)](_0x2aa943,_0x1f01e,_0x17edc8){const _0x26881b=_0x3cbc17;for(const _0x1ddf71 of _0x1f01e){const _0x39c259=this[_0x26881b(0x20a)](_0x1ddf71);_0x31aee7(_0x1ddf71,_0x26881b(0x206),_0x39c259),this[_0x26881b(0x1ee)][_0x26881b(0x1ef)][_0x26881b(0x1e1)](_0x39c259),this[_0x26881b(0x1ee)][_0x26881b(0x201)]=_0x39c259;}const _0x1af47d=_0x26881b(0x1f3)===_0x17edc8||_0x26881b(0x204)===_0x17edc8?_0x1f01e[_0x26881b(0x1fc)]():_0x1f01e;for(const _0x47a1c of _0x1af47d)_0x272cb4(_0x2aa943,_0x47a1c,_0x17edc8);}[_0x3cbc17(0x1f4)](_0x2910e6,_0x6e178e){const _0x1d99b4=_0x3cbc17;if(!_0x2910e6)return;if(_0x3a1955(_0x2910e6,_0x6e178e))return;const _0x3e044a=this[_0x1d99b4(0x20a)](_0x2910e6);_0x31aee7(_0x6e178e,_0x1d99b4(0x206),_0x3e044a),this[_0x1d99b4(0x1ee)][_0x1d99b4(0x20d)][_0x1d99b4(0x1e1)](_0x3e044a),this[_0x1d99b4(0x1ee)][_0x1d99b4(0x201)]=_0x3e044a,_0x11fa30(_0x2910e6,_0x6e178e[_0x1d99b4(0x1db)](!0x0));}[_0x3cbc17(0x1f6)](_0x357c82,_0x48a9d0,_0x2a3b0e){const _0x5ec504=_0x3cbc17,_0x39a16e=this[_0x5ec504(0x1dc)](_0x357c82,!0x1);if(_0x39a16e){const _0x1083f8=this[_0x5ec504(0x216)](_0x39a16e),_0x16f069=_0x4ef788(_0x5ec504(0x206),_0x1083f8,_0x2a3b0e);if(_0x16f069)return[_0x16f069,_0x5ec504(0x204)];this[_0x5ec504(0x1ee)][_0x5ec504(0x1fa)][_0x5ec504(0x1e1)](_0x1083f8);}const _0x5c12e6=this[_0x5ec504(0x1f2)](_0x357c82,!0x1);if(_0x5c12e6){const _0x2fc9de=this[_0x5ec504(0x216)](_0x5c12e6),_0x9f70e9=_0x4ef788(_0x5ec504(0x206),_0x2fc9de,_0x2a3b0e);if(_0x9f70e9)return[_0x9f70e9,_0x5ec504(0x21d)];this[_0x5ec504(0x1ee)][_0x5ec504(0x1fa)][_0x5ec504(0x1e1)](_0x2fc9de);}return _0x48a9d0?_0x357c82[_0x5ec504(0x20e)]?this[_0x5ec504(0x219)](_0x357c82,_0x2a3b0e):[_0x2a3b0e[_0x5ec504(0x1eb)][_0x2a3b0e[_0x5ec504(0x1eb)][_0x5ec504(0x208)]-0x1],_0x5ec504(0x204)]:[_0x2a3b0e[_0x5ec504(0x1eb)][0x0],_0x5ec504(0x21d)];}[_0x3cbc17(0x219)](_0x29b8a8,_0x1697e8){const _0x137b05=_0x3cbc17,_0x2871f4=[],_0x5ad9d7=this[_0x137b05(0x1dc)](_0x29b8a8,!0x0);if(_0x5ad9d7){const _0xbbe842=this[_0x137b05(0x216)](_0x5ad9d7),_0x235483=_0x4ef788(_0x137b05(0x206),_0xbbe842,_0x1697e8);_0x235483&&_0x2871f4[_0x137b05(0x1e1)]([_0x235483,_0x137b05(0x204)]);}const _0xf08df8=this[_0x137b05(0x1f2)](_0x29b8a8,!0x0);if(_0xf08df8){const _0x5114b2=this[_0x137b05(0x216)](_0xf08df8),_0x3eaa93=_0x4ef788(_0x137b05(0x206),_0x5114b2,_0x1697e8);_0x3eaa93&&_0x2871f4[_0x137b05(0x1e1)]([_0x3eaa93,_0x137b05(0x21d)]);}if(_0x2871f4[_0x137b05(0x208)]>0x1)return _0x994146(_0x2871f4[0x0][0x0])<=_0x994146(_0x2871f4[0x1][0x0])?_0x2871f4[0x0]:_0x2871f4[0x1];return 0x1===_0x2871f4[_0x137b05(0x208)]?_0x2871f4[0x0]:[_0x1697e8[_0x137b05(0x214)],_0x137b05(0x204)];}[_0x3cbc17(0x1f2)](_0x54d684,_0x19fe7){const _0x530f50=_0x3cbc17;let _0x3acbbf=_0x54d684[_0x530f50(0x20e)],_0x259015=null,_0x104d28=!0x1;for(;_0x3acbbf;){if(_0x5ccbac(_0x3acbbf)){if(this[_0x530f50(0x21b)](_0x3acbbf)&&(_0x259015=_0x3acbbf),this[_0x530f50(0x1de)](_0x3acbbf)&&_0x19fe7&&!_0x104d28){_0x104d28=!0x0,_0x3acbbf=_0x3acbbf[_0x530f50(0x20e)];continue;}break;}const _0x297809=_0x34b6b7(_0x3acbbf,_0x530f50(0x206));if(_0x297809&&_0x530f50(0x218)!==_0x297809&&this[_0x530f50(0x1ea)][_0x530f50(0x215)](_0x297809)){_0x259015=_0x3acbbf;break;}_0x3acbbf=_0x3acbbf[_0x530f50(0x20e)];}return _0x259015;}[_0x3cbc17(0x1dc)](_0x49d353,_0x4fbf01){const _0x2fe6fa=_0x3cbc17;let _0x146c4f=_0x49d353[_0x2fe6fa(0x1e2)],_0x1ee3cc=null,_0x3658e1=!0x1;for(;_0x146c4f;){if(_0x5ccbac(_0x146c4f)){if(this[_0x2fe6fa(0x21b)](_0x146c4f)&&(_0x1ee3cc=_0x146c4f),this[_0x2fe6fa(0x1de)](_0x146c4f)&&_0x4fbf01&&!_0x3658e1){_0x3658e1=!0x0,_0x146c4f=_0x146c4f[_0x2fe6fa(0x1e2)];continue;}break;}const _0x380edb=_0x34b6b7(_0x146c4f,_0x2fe6fa(0x206));if(_0x380edb&&_0x2fe6fa(0x218)!==_0x380edb&&this[_0x2fe6fa(0x1ea)][_0x2fe6fa(0x215)](_0x380edb)){_0x1ee3cc=_0x146c4f;break;}_0x146c4f=_0x146c4f[_0x2fe6fa(0x1e2)];}return _0x1ee3cc;}[_0x3cbc17(0x202)](_0x46dad3){const _0x3a0536=_0x3cbc17;_0x8fa7d1(_0x46dad3)&&_0x3e7a1e(_0x3a0536(0x206),null,_0x46dad3)[_0x3a0536(0x1fe)](_0x5a9f5a=>{const _0x37da85=_0x3a0536;if(this[_0x37da85(0x1e7)](_0x5a9f5a)&&!this[_0x37da85(0x20b)](_0x5a9f5a)){const _0x3045ff=_0x34b6b7(_0x5a9f5a,_0x37da85(0x206));_0x31aee7(_0x5a9f5a,_0x37da85(0x21f),_0x3045ff),_0x31aee7(_0x5a9f5a,_0x37da85(0x206),null);}});}[_0x3cbc17(0x216)](_0x50ee8f){const _0xb7cbfc=_0x3cbc17;if(!_0x50ee8f)return null;if(_0x8fa7d1(_0x50ee8f))return _0x34b6b7(_0x50ee8f,_0xb7cbfc(0x206));if(_0x5ccbac(_0x50ee8f)){const _0xbbef7a=_0x1117d5(_0x50ee8f)[_0xb7cbfc(0x1f9)](/removed[\s*-]data-id="([^"]+)"/);if(_0xbbef7a&&_0xbbef7a[0x1])return _0xbbef7a[0x1];}return null;}[_0x3cbc17(0x220)](_0x9bb704){const _0x120f61=_0x3cbc17;if(_0x5ccbac(_0x9bb704)){const _0x4c977b=_0x1117d5(_0x9bb704)[_0x120f61(0x1f9)](/removed[\s*-]data-id="([^"]+)"/);_0x4c977b&&_0x4c977b[0x1]&&this[_0x120f61(0x1ee)][_0x120f61(0x1e0)][_0x120f61(0x1e1)](_0x4c977b[0x1]);}}[_0x3cbc17(0x20a)](_0x3c46ee){const _0x12e989=_0x3cbc17;return this[_0x12e989(0x1e7)](_0x3c46ee)?_0x34b6b7(_0x3c46ee,_0x12e989(0x206)):this[_0x12e989(0x207)]();}[_0x3cbc17(0x1ed)](_0x7629f2){const _0x4fb33e=_0x3cbc17;_0x1ffc2c(_0x7629f2)[_0x4fb33e(0x1e4)](_0x2f9833=>this[_0x4fb33e(0x21b)](_0x2f9833)||this[_0x4fb33e(0x1de)](_0x2f9833))[_0x4fb33e(0x1fe)](_0x4cc74a=>{_0x3761c9(_0x4cc74a);});}[_0x3cbc17(0x1f1)](_0x81cdb0){const _0x5cb041=_0x3cbc17,_0x4ecf4e=_0x81cdb0[_0x5cb041(0x1eb)],_0x452a28=_0x4ecf4e[_0x4ecf4e[_0x5cb041(0x208)]-0x1];_0x452a28&&_0x8fa7d1(_0x452a28)&&_0x31aee7(_0x452a28,_0x5cb041(0x1fb),_0x5cb041(0x212));}[_0x3cbc17(0x211)](_0x1b878e,_0x42b4ad){const _0x4896f6=_0x3cbc17,_0x242a39=_0x4ef788(_0x4896f6(0x1fb),_0x4896f6(0x212),_0x1b878e);if(!_0x242a39)return;const _0x5eb15c=_0x21be3c(_0x242a39)[_0x4896f6(0x1ff)](0x0,-0x1),_0x3a8872=_0x5eb15c[_0x4896f6(0x208)];let _0x37b5bc=_0x242a39;if(_0x3a8872>_0x42b4ad){let _0x39228b=_0x3a8872,_0x19bf24=null;for(;_0x39228b>_0x42b4ad&&_0x39228b>=0x0;)_0x39228b--,_0x19bf24=_0x5eb15c[_0x39228b];_0x19bf24&&(_0x37b5bc=_0x19bf24,_0x31aee7(_0x242a39,_0x4896f6(0x1fb),null),_0x31aee7(_0x19bf24,_0x4896f6(0x1fb),_0x4896f6(0x212)));}else{if(_0x3a8872<_0x42b4ad){let _0x3e1865=_0x3a8872,_0x3abfd1=_0x242a39;for(;_0x3e1865<_0x42b4ad;){const _0x527cbd=_0x3abfd1[_0x4896f6(0x1eb)][_0x4896f6(0x1e4)](_0x7e0790=>_0x8fa7d1(_0x7e0790));if(0x0===_0x527cbd[_0x4896f6(0x208)])break;_0x3e1865++,_0x3abfd1=_0x527cbd[_0x527cbd[_0x4896f6(0x208)]-0x1];}_0x3abfd1&&(_0x37b5bc=_0x3abfd1,_0x31aee7(_0x242a39,_0x4896f6(0x1fb),null),_0x31aee7(_0x3abfd1,_0x4896f6(0x1fb),_0x4896f6(0x212)));}}let _0x29df9c=_0x37b5bc;for(;_0x29df9c;){for(;_0x29df9c[_0x4896f6(0x20e)];)_0x29df9c=_0x29df9c[_0x4896f6(0x20e)],_0x8fa7d1(_0x29df9c)&&_0x31aee7(_0x29df9c,_0x4896f6(0x1fb),_0x4896f6(0x212));_0x29df9c=_0x29df9c[_0x4896f6(0x1df)];}}[_0x3cbc17(0x200)](_0x3545dc){const _0x38cbc9=_0x3cbc17;return Boolean(_0x38cbc9(0x218)===_0x34b6b7(_0x3545dc,_0x38cbc9(0x206)));}[_0x3cbc17(0x1e7)](_0x38bb2c){const _0x2690bf=_0x3cbc17;return Boolean((_0x34b6b7(_0x38bb2c,_0x2690bf(0x206))||'')[_0x2690bf(0x208)]>0x0&&_0x2690bf(0x218)!==_0x34b6b7(_0x38bb2c,_0x2690bf(0x206)));}[_0x3cbc17(0x21b)](_0x1952bf){const _0x5a4652=_0x3cbc17;return!!_0x1952bf&&Boolean(_0x5ccbac(_0x1952bf)&&_0x1117d5(_0x1952bf)[_0x5a4652(0x1f9)](/removed[\s*-]data-id="[^"]+"/));}[_0x3cbc17(0x20b)](_0x378727){const _0x1a55ec=_0x3cbc17;let _0x2da2b5=_0x378727[_0x1a55ec(0x1df)];for(;_0x2da2b5;){if(_0x34b6b7(_0x2da2b5,_0x1a55ec(0x21f)))return!0x0;_0x2da2b5=_0x2da2b5[_0x1a55ec(0x1df)];}return!0x1;}[_0x3cbc17(0x1de)](_0x47ba51){const _0xd0ca12=_0x3cbc17;return Boolean(_0x5ccbac(_0x47ba51)&&_0x1117d5(_0x47ba51)[_0xd0ca12(0x1f9)](/\s*existing[\s*-](content|document)\s*/g));}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x44d4(){const _0x264b82=['1293795QbtZbo','parseAndNormalizeHTML','10IAMBzN','convertMarkdownToHTML','17213TqzJwQ','8ZaltFc','_m2html','11LCWttJ','parse','9783804eIIuXK','442655GWtzdu','<dummy>','children','replace','3222472InNPhI','2dAjUgc','1357221qgALdp','_parseHTML','318FoRgLY','</dummy>','499030gzDULX'];_0x44d4=function(){return _0x264b82;};return _0x44d4();}const _0x17996e=_0x2fa4;(function(_0x5937df,_0x2b9d84){const _0x58f39c=_0x2fa4,_0x3c9485=_0x5937df();while(!![]){try{const _0x509cd0=-parseInt(_0x58f39c(0x8b))/0x1*(parseInt(_0x58f39c(0x90))/0x2)+-parseInt(_0x58f39c(0x91))/0x3+-parseInt(_0x58f39c(0x86))/0x4*(-parseInt(_0x58f39c(0x80))/0x5)+parseInt(_0x58f39c(0x7e))/0x6*(-parseInt(_0x58f39c(0x85))/0x7)+parseInt(_0x58f39c(0x8f))/0x8+parseInt(_0x58f39c(0x81))/0x9*(-parseInt(_0x58f39c(0x83))/0xa)+parseInt(_0x58f39c(0x88))/0xb*(parseInt(_0x58f39c(0x8a))/0xc);if(_0x509cd0===_0x2b9d84)break;else _0x3c9485['push'](_0x3c9485['shift']());}catch(_0xc2ffd8){_0x3c9485['push'](_0x3c9485['shift']());}}}(_0x44d4,0x3cb12));function _0x2fa4(_0x5efdcc,_0xc3c2fe){const _0x44d402=_0x44d4();return _0x2fa4=function(_0x2fa4a0,_0x23f115){_0x2fa4a0=_0x2fa4a0-0x7d;let _0x25a363=_0x44d402[_0x2fa4a0];return _0x25a363;},_0x2fa4(_0x5efdcc,_0xc3c2fe);}import{ObservableMixin as _0x29ea1e}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x496e3f}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x93f482}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x29ea1e(){[_0x17996e(0x87)];constructor(){const _0x51a8c7=_0x17996e;super(),this[_0x51a8c7(0x87)]=new _0x496e3f();}[_0x17996e(0x84)](_0x443347){const _0x49b97f=_0x17996e,_0x9b0cd8=this[_0x49b97f(0x87)][_0x49b97f(0x89)](_0x443347);return this[_0x49b97f(0x82)](_0x9b0cd8);}[_0x17996e(0x82)](_0x5a462d){const _0x394036=_0x17996e;return this[_0x394036(0x7d)](_0x5a462d);}[_0x17996e(0x7d)](_0x261118){const _0x14b8da=_0x17996e,_0x1fc681=_0x261118[_0x14b8da(0x8e)](/^\t+/gm,'\x20')[_0x14b8da(0x8e)](/\n*/g,'')[_0x14b8da(0x8e)](/\s+/g,'\x20')[_0x14b8da(0x8e)](/<[^>]*?$/g,''),_0x11ad96=_0x93f482(_0x14b8da(0x8c)+_0x1fc681+_0x14b8da(0x7f));return _0x11ad96[_0x14b8da(0x8d)]=_0x11ad96[_0x14b8da(0x8d)][0x0][_0x14b8da(0x8d)],_0x11ad96;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x4fb4(){var _0x449aef=['1378216PplbFm','613920bnBejz','159VydPpQ','1531558cfZOjt','651964nNFdPh','ck-ai-disclaimer','ck-ai-disclaimer__content','297GqrrDD','setTemplate','AI_DISCLAIMER_TEXT','9514IhSqXc','12tYypBh','269510FoXoQC','602403nkzzkD','div'];_0x4fb4=function(){return _0x449aef;};return _0x4fb4();}(function(_0x5f22b4,_0x40e10a){var _0x18da04=_0x1ece,_0x5d1124=_0x5f22b4();while(!![]){try{var _0x27f2bf=-parseInt(_0x18da04(0x14a))/0x1+parseInt(_0x18da04(0x156))/0x2*(parseInt(_0x18da04(0x14e))/0x3)+parseInt(_0x18da04(0x150))/0x4+-parseInt(_0x18da04(0x14d))/0x5+-parseInt(_0x18da04(0x148))/0x6*(parseInt(_0x18da04(0x14f))/0x7)+parseInt(_0x18da04(0x14c))/0x8+parseInt(_0x18da04(0x153))/0x9*(parseInt(_0x18da04(0x149))/0xa);if(_0x27f2bf===_0x40e10a)break;else _0x5d1124['push'](_0x5d1124['shift']());}catch(_0x445447){_0x5d1124['push'](_0x5d1124['shift']());}}}(_0x4fb4,0x4ca8d));import{View as _0x1fb838}from'ckeditor5/src/ui.js';import{getTranslation as _0x1764b5}from'../../aicore/utils/common-translations.js';function _0x1ece(_0x1b2447,_0x521e42){var _0x4fb487=_0x4fb4();return _0x1ece=function(_0x1ece35,_0x5ce5d4){_0x1ece35=_0x1ece35-0x148;var _0x9b4d16=_0x4fb487[_0x1ece35];return _0x9b4d16;},_0x1ece(_0x1b2447,_0x521e42);}export class AIDisclaimerView extends _0x1fb838{constructor(_0x351e65){var _0x5b1b1e=_0x1ece;super(_0x351e65),this[_0x5b1b1e(0x154)]({'tag':_0x5b1b1e(0x14b),'attributes':{'class':['ck',_0x5b1b1e(0x151)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x5b1b1e(0x152)]},'children':[{'text':_0x1764b5(_0x351e65,_0x5b1b1e(0x155))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b7826=_0x409b;(function(_0x497d4d,_0x7e127e){const _0x2c868e=_0x409b,_0x349bfc=_0x497d4d();while(!![]){try{const _0x206d8a=parseInt(_0x2c868e(0x1f9))/0x1*(parseInt(_0x2c868e(0x1f6))/0x2)+parseInt(_0x2c868e(0x207))/0x3+parseInt(_0x2c868e(0x208))/0x4+-parseInt(_0x2c868e(0x201))/0x5*(-parseInt(_0x2c868e(0x20b))/0x6)+-parseInt(_0x2c868e(0x212))/0x7*(-parseInt(_0x2c868e(0x209))/0x8)+-parseInt(_0x2c868e(0x1f2))/0x9*(parseInt(_0x2c868e(0x1f1))/0xa)+-parseInt(_0x2c868e(0x203))/0xb*(parseInt(_0x2c868e(0x20f))/0xc);if(_0x206d8a===_0x7e127e)break;else _0x349bfc['push'](_0x349bfc['shift']());}catch(_0xb54574){_0x349bfc['push'](_0x349bfc['shift']());}}}(_0x2793,0x94438));import{View as _0x3a2be9}from'ckeditor5/src/ui.js';function _0x409b(_0x10f3da,_0x52164e){const _0x279384=_0x2793();return _0x409b=function(_0x409b25,_0x2127aa){_0x409b25=_0x409b25-0x1ec;let _0x5111d2=_0x279384[_0x409b25];return _0x5111d2;},_0x409b(_0x10f3da,_0x52164e);}export class AISkeletonView extends _0x3a2be9{constructor(_0x40deb1,_0x5da481){const _0x421c4f=_0x409b;super(_0x40deb1),this[_0x421c4f(0x1fe)]({'tag':_0x421c4f(0x1ff),'attributes':{'class':['ck',_0x421c4f(0x215)]},'children':this[_0x421c4f(0x216)](_0x5da481)});}[_0x1b7826(0x216)](_0x3a2270){const _0x30d7dc=_0x1b7826,_0x567414=['ck',_0x30d7dc(0x20d)];return _0x3a2270[_0x30d7dc(0x1fb)](_0x14519d=>{const _0xca64d8=_0x30d7dc;let _0x380edf='';switch(_0x14519d[_0xca64d8(0x204)][_0xca64d8(0x1f5)]){case _0xca64d8(0x211):_0x380edf=_0xca64d8(0x20a);break;case _0xca64d8(0x213):_0x380edf=_0xca64d8(0x1f4);break;case _0xca64d8(0x202):_0x380edf=_0xca64d8(0x1fd);}return{'tag':_0x14519d[_0xca64d8(0x1f8)],'attributes':{'class':[..._0x567414,_0x14519d[_0xca64d8(0x204)][_0xca64d8(0x1f3)]?_0x14519d[_0xca64d8(0x204)][_0xca64d8(0x1f3)]:''],'style':_0xca64d8(0x200)+_0x14519d[_0xca64d8(0x204)][_0xca64d8(0x206)]+_0xca64d8(0x20e)+_0x14519d[_0xca64d8(0x204)][_0xca64d8(0x1ef)]+';'+_0x380edf}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x1b7826(0x1ff),'attributes':{'width':_0x1b7826(0x214),'height':_0x1b7826(0x1ec),'align':_0x1b7826(0x211)}},{'tag':_0x1b7826(0x1ff),'attributes':{'width':_0x1b7826(0x1f0),'height':_0x1b7826(0x1f7),'align':_0x1b7826(0x211)}},{'tag':_0x1b7826(0x1ff),'attributes':{'width':_0x1b7826(0x214),'height':_0x1b7826(0x1fc),'align':_0x1b7826(0x211)}},{'tag':_0x1b7826(0x1ff),'attributes':{'width':_0x1b7826(0x1fa),'height':_0x1b7826(0x1f7),'align':_0x1b7826(0x211)}},{'tag':_0x1b7826(0x1ff),'attributes':{'width':_0x1b7826(0x214),'height':_0x1b7826(0x210),'align':_0x1b7826(0x211)}},{'tag':_0x1b7826(0x1ff),'attributes':{'width':_0x1b7826(0x1f0),'height':_0x1b7826(0x1f7),'align':_0x1b7826(0x211)}},{'tag':_0x1b7826(0x1ff),'attributes':{'width':_0x1b7826(0x214),'height':_0x1b7826(0x1fc),'align':_0x1b7826(0x211)}}],'aiHistory':ta(0x5,_0x1b7826(0x214),_0x1b7826(0x1ed),_0x1b7826(0x211)),'aiChatResources':ta(0x8,_0x1b7826(0x214),_0x1b7826(0x205),_0x1b7826(0x211)),'aiReviewChecks':[{'tag':_0x1b7826(0x1ff),'attributes':{'width':_0x1b7826(0x20c),'height':_0x1b7826(0x205),'align':_0x1b7826(0x202)}},{'tag':_0x1b7826(0x1ff),'attributes':{'width':_0x1b7826(0x214),'height':_0x1b7826(0x205),'align':_0x1b7826(0x202)}},{'tag':_0x1b7826(0x1ff),'attributes':{'width':_0x1b7826(0x20c),'height':_0x1b7826(0x205),'align':_0x1b7826(0x202)}}]};function _0x2793(){const _0x48d785=['div','width:\x20','5810hrMbir','left','1034jlQOTJ','attributes','24px','width','978174geQIVN','4837040HOhQcX','16jAXPNh','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','294coZkgz','128px','ck-ai-skeleton__item',';\x20height:\x20','74076jijVaP','140px','right','1668366spEtLx','center','100%','ck-ai-skeleton','_createSkeletonItems','72px','44px','fill','height','250px','260sNEhHC','330507zmuuQe','class','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','align','336vuSXXG','40px','tag','437NoVwhI','150px','map','88px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','setTemplate'];_0x2793=function(){return _0x48d785;};return _0x2793();}function ta(_0x45c32f,_0x4ddd12,_0x7df066,_0x2d7a23){const _0x45f498=_0x1b7826;return new Array(_0x45c32f)[_0x45f498(0x1ee)](null)[_0x45f498(0x1fb)](()=>({'tag':_0x45f498(0x1ff),'attributes':{'width':_0x4ddd12,'height':_0x7df066,'align':_0x2d7a23}}));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x9c71(){const _0x371164=['18dewKJC','extendTemplate','ck-ai-spinner_','span','382wYkVFV','163676rKeDme','56490uHkJyM','ck-ai-spinner','9ezMDHF','1876840epLQJy','9ldbHbF','11278894pyOuah','2922773opnzRz','163928PvLDhr','2018eriGjK'];_0x9c71=function(){return _0x371164;};return _0x9c71();}(function(_0x18efd5,_0x2abd36){const _0x43283c=_0x4a08,_0x155eb2=_0x18efd5();while(!![]){try{const _0x5a0428=-parseInt(_0x43283c(0x13e))/0x1*(parseInt(_0x43283c(0x148))/0x2)+parseInt(_0x43283c(0x142))/0x3*(-parseInt(_0x43283c(0x13f))/0x4)+parseInt(_0x43283c(0x140))/0x5*(-parseInt(_0x43283c(0x149))/0x6)+-parseInt(_0x43283c(0x146))/0x7+parseInt(_0x43283c(0x147))/0x8*(-parseInt(_0x43283c(0x144))/0x9)+parseInt(_0x43283c(0x143))/0xa+parseInt(_0x43283c(0x145))/0xb;if(_0x5a0428===_0x2abd36)break;else _0x155eb2['push'](_0x155eb2['shift']());}catch(_0x4e77fd){_0x155eb2['push'](_0x155eb2['shift']());}}}(_0x9c71,0x38dd7));function _0x4a08(_0x5e4a97,_0x51fa0b){const _0x9c71f5=_0x9c71();return _0x4a08=function(_0x4a08e2,_0x30b31d){_0x4a08e2=_0x4a08e2-0x13e;let _0x41732f=_0x9c71f5[_0x4a08e2];return _0x41732f;},_0x4a08(_0x5e4a97,_0x51fa0b);}import{SpinnerView as _0x4a47c3}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x4a47c3{constructor(_0x289815=void 0x0){const _0x2a705f=_0x4a08;super();const _0x246909=_0x289815?_0x2a705f(0x14b)+_0x289815:'';this[_0x2a705f(0x14a)]({'tag':_0x2a705f(0x14c),'attributes':{'class':[_0x2a705f(0x141),_0x246909]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x502c(_0xd0ad6f,_0x3028b9){const _0x9b8211=_0x9b82();return _0x502c=function(_0x502c2f,_0x32ac43){_0x502c2f=_0x502c2f-0x93;let _0x337503=_0x9b8211[_0x502c2f];return _0x337503;},_0x502c(_0xd0ad6f,_0x3028b9);}const _0x25f663=_0x502c;(function(_0x47b7d4,_0xf4d2bc){const _0x2f6816=_0x502c,_0x13170c=_0x47b7d4();while(!![]){try{const _0xa806cd=parseInt(_0x2f6816(0xbe))/0x1+parseInt(_0x2f6816(0xb8))/0x2+parseInt(_0x2f6816(0xb1))/0x3*(-parseInt(_0x2f6816(0xa8))/0x4)+parseInt(_0x2f6816(0xaf))/0x5+-parseInt(_0x2f6816(0xa0))/0x6+-parseInt(_0x2f6816(0xb6))/0x7*(parseInt(_0x2f6816(0x93))/0x8)+-parseInt(_0x2f6816(0x9d))/0x9*(-parseInt(_0x2f6816(0xac))/0xa);if(_0xa806cd===_0xf4d2bc)break;else _0x13170c['push'](_0x13170c['shift']());}catch(_0xf98e6b){_0x13170c['push'](_0x13170c['shift']());}}}(_0x9b82,0x95610));import{ButtonView as _0xf96e71,IconView as _0x485e8c,ToolbarView as _0x15c0cd}from'ckeditor5/src/ui.js';import{IconCheck as _0xed5554,IconCopy as _0x37f728,IconShowChangesOff as _0x47bf64,IconShowChangesOn as _0x57e704,IconThumbDown as _0x826af6,IconThumbUp as _0xa10e9b}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x541c6b}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x15c0cd{[_0x25f663(0xa4)];[_0x25f663(0xa9)];[_0x25f663(0x9f)];[_0x25f663(0xbf)];[_0x25f663(0x9c)];constructor(_0x321039,_0x243b48={},_0x3ecc72){const _0x663e4e=_0x25f663;super(_0x321039),this[_0x663e4e(0xa3)](_0x663e4e(0xa1),!0x1),this[_0x663e4e(0x9c)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x243b48};const _0x1223e5=!(this[_0x663e4e(0x9c)][_0x663e4e(0xb7)]||this[_0x663e4e(0x9c)][_0x663e4e(0xc0)]||this[_0x663e4e(0x9c)][_0x663e4e(0xab)]||this[_0x663e4e(0x9c)][_0x663e4e(0xa7)]||this[_0x663e4e(0x9c)][_0x663e4e(0x99)]?.[_0x663e4e(0xaa)]);this[_0x663e4e(0x97)]=_0x1223e5?_0x663e4e(0xb3):_0x663e4e(0xbd),this[_0x663e4e(0x9c)][_0x663e4e(0xb7)]&&(this[_0x663e4e(0x94)](),this[_0x663e4e(0x9e)][_0x663e4e(0x95)](this[_0x663e4e(0xa4)])),this[_0x663e4e(0x9c)][_0x663e4e(0xc0)]&&(this[_0x663e4e(0xc5)](_0x3ecc72),this[_0x663e4e(0x9e)][_0x663e4e(0x95)](this[_0x663e4e(0xbf)])),this[_0x663e4e(0xbc)](),this[_0x663e4e(0x9c)][_0x663e4e(0xab)]&&this[_0x663e4e(0x9e)][_0x663e4e(0x95)](this[_0x663e4e(0xa9)]),this[_0x663e4e(0x9c)][_0x663e4e(0xa7)]&&this[_0x663e4e(0x9e)][_0x663e4e(0x95)](this[_0x663e4e(0x9f)]),this[_0x663e4e(0x9c)][_0x663e4e(0x99)]&&this[_0x663e4e(0x9e)][_0x663e4e(0x98)](this[_0x663e4e(0x9c)][_0x663e4e(0x99)]);}[_0x25f663(0xbc)](){const _0x321f44=_0x25f663;this[_0x321f44(0xa9)]=new _0xf96e71(this[_0x321f44(0xbb)]),this[_0x321f44(0xa9)][_0x321f44(0xa3)]({'icon':_0xa10e9b,'label':_0x541c6b(this[_0x321f44(0xbb)],_0x321f44(0xa2)),'tooltip':!0x0}),this[_0x321f44(0xa9)][_0x321f44(0xa5)](_0x321f44(0xc1))['to'](this,_0x321f44(0xa1),_0x41f1a3=>!_0x41f1a3),this[_0x321f44(0xa9)]['on'](_0x321f44(0xba),()=>{const _0x3f104b=_0x321f44;this[_0x3f104b(0xb5)](_0x3f104b(0xb0));}),this[_0x321f44(0x9f)]=new _0xf96e71(this[_0x321f44(0xbb)]),this[_0x321f44(0x9f)][_0x321f44(0xa3)]({'icon':_0x826af6,'label':_0x541c6b(this[_0x321f44(0xbb)],_0x321f44(0xae)),'tooltip':!0x0}),this[_0x321f44(0x9f)][_0x321f44(0xa5)](_0x321f44(0xc1))['to'](this,_0x321f44(0xa1),_0x1f6db2=>!_0x1f6db2),this[_0x321f44(0x9f)]['on'](_0x321f44(0xba),()=>{const _0x1e44d3=_0x321f44;this[_0x1e44d3(0xb5)](_0x1e44d3(0xc2));});}[_0x25f663(0x94)](){const _0x10c0a6=_0x25f663;this[_0x10c0a6(0xa4)]=new _0xf96e71(this[_0x10c0a6(0xbb)]),this[_0x10c0a6(0xa4)][_0x10c0a6(0xa3)]({'icon':_0x37f728,'label':_0x541c6b(this[_0x10c0a6(0xbb)],_0x10c0a6(0xb4)),'class':_0x10c0a6(0x96),'tooltip':!0x0}),this[_0x10c0a6(0xa4)][_0x10c0a6(0xa5)](_0x10c0a6(0xc1))['to'](this,_0x10c0a6(0xa1),_0xb9151f=>!_0xb9151f);const _0x31f163=new _0x485e8c();_0x31f163[_0x10c0a6(0xa3)]({'content':_0xed5554}),_0x31f163[_0x10c0a6(0xad)]({'attributes':{'class':[_0x10c0a6(0xa6)]}}),this[_0x10c0a6(0xa4)]['on'](_0x10c0a6(0xba),()=>{const _0x4ffe3c=_0x10c0a6;this[_0x4ffe3c(0xa4)][_0x4ffe3c(0x97)]=_0x4ffe3c(0xb2),setTimeout(()=>{const _0x5bc4b2=_0x4ffe3c;this[_0x5bc4b2(0xa4)][_0x5bc4b2(0x97)]=_0x5bc4b2(0x96);},0x7d0);}),this[_0x10c0a6(0xa4)][_0x10c0a6(0xc3)][_0x10c0a6(0x95)](_0x31f163);}[_0x25f663(0xc5)](_0x246582){const _0x4ed734=_0x25f663;this[_0x4ed734(0xbf)]=new _0xf96e71(this[_0x4ed734(0xbb)]),this[_0x4ed734(0xbf)][_0x4ed734(0xa3)]({'icon':_0x47bf64,'label':_0x541c6b(this[_0x4ed734(0xbb)],_0x4ed734(0xb9)),'withText':_0x4ed734(0x9a)==this[_0x4ed734(0x9c)][_0x4ed734(0xc0)],'tooltip':_0x4ed734(0x9a)!=this[_0x4ed734(0x9c)][_0x4ed734(0xc0)],'isOn':_0x246582}),this[_0x4ed734(0xbf)][_0x4ed734(0xa5)](_0x4ed734(0xc1))['to'](this,_0x4ed734(0xa1),_0x3e7182=>!_0x3e7182),this[_0x4ed734(0xbf)]['on'](_0x4ed734(0xba),()=>{const _0x599594=_0x4ed734,_0xc9a4e=!this[_0x599594(0xbf)][_0x599594(0xc4)];this[_0x599594(0xbf)][_0x599594(0xa3)]({'isOn':_0xc9a4e,'icon':_0xc9a4e?_0x57e704:_0x47bf64}),this[_0x599594(0xb5)](_0x599594(0x9b),_0xc9a4e);});}}function _0x9b82(){const _0x3446df=['full','toggleShowChanges','_config','9ppyjUc','items','dislikeButton','4483860jXKcdk','isLoading','AI_MINI_TOOLBAR_LIKE','set','copyButton','bind','ck-ai-mini-toolbar-copy-button__check-mark','showDislike','47836CBLwgv','likeButton','length','showLike','1424070eYyEjt','extendTemplate','AI_MINI_TOOLBAR_DISLIKE','2225885dYMwGG','like','111UHzyiq','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','ck-ai-mini-toolbar\x20ck-hidden','AI_MINI_TOOLBAR_COPY','fire','385pvnnRf','showCopy','1785792ooUzuK','AI_SUGGESTION_BUTTON_SHOW_CHANGES','execute','locale','_setupRatingButtons','ck-ai-mini-toolbar','391294UJNgLA','showChangesButton','showChanges','isEnabled','dislike','children','isOn','_setupShowChangesButton','10200cyYsJw','_setupCopyButton','add','ck-ai-mini-toolbar-copy-button','class','addMany','customView'];_0x9b82=function(){return _0x3446df;};return _0x9b82();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a3741=_0x5078;(function(_0x407b35,_0x36dbfd){const _0x24db4a=_0x5078,_0x51bf80=_0x407b35();while(!![]){try{const _0x10a5b5=-parseInt(_0x24db4a(0x17f))/0x1+parseInt(_0x24db4a(0x175))/0x2*(parseInt(_0x24db4a(0x18b))/0x3)+-parseInt(_0x24db4a(0x16c))/0x4*(-parseInt(_0x24db4a(0x17d))/0x5)+parseInt(_0x24db4a(0x198))/0x6*(parseInt(_0x24db4a(0x17c))/0x7)+-parseInt(_0x24db4a(0x17a))/0x8+-parseInt(_0x24db4a(0x185))/0x9+-parseInt(_0x24db4a(0x18c))/0xa*(-parseInt(_0x24db4a(0x18d))/0xb);if(_0x10a5b5===_0x36dbfd)break;else _0x51bf80['push'](_0x51bf80['shift']());}catch(_0x339363){_0x51bf80['push'](_0x51bf80['shift']());}}}(_0x1483,0x94d4b));function _0x1483(){const _0x4837c7=['_showUnchangedParts','updatePartState','some','10596456OMTVRA','from','filter','createCollection','_cachedContentParts','_updateContentPartsPromiseQueue','3gUotXU','10FYYufF','19924487tTfshq','hasPendingParts','_children','abort','empty-parts-warning','locale','setContent','set','ck-ai-suggestion__body__content-parts','getPartView','isVisible','570072brOFGi','addEventListener','add','length','hasNonEmptyParts','AI_SUGGESTION_EMPTY_PART_WARNING','push','markAsDone','delegate','div','state','enqueue','toggleHeader','findIndex','pending','find','1828QdTHHg','_availableActions','partsCount','_emptyPartsWarningView','forEach','ck-ai-suggestion__body','warning','_areActionsDisabled','index','1284550rcEXFy','AI_SUGGESTION_NO_PARTS_WARNING','setTemplate','hasChanges','updateContent','5576200ZWNMzs','queueEmptyPromise','28KnVaXV','8785QEdGHT','updateContentParts','1152569SBYGNj','partDefinition','first'];_0x1483=function(){return _0x4837c7;};return _0x1483();}import{View as _0x32ed5a}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x571eb7}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1e12d3}from'../../utils/eventnames.js';import{PromiseQueue as _0x46dae9}from'../../../aichat/utils/promisequeue.js';function _0x5078(_0x1c25cc,_0xd4a484){const _0x1483be=_0x1483();return _0x5078=function(_0x507851,_0x31cf0b){_0x507851=_0x507851-0x163;let _0x14ee50=_0x1483be[_0x507851];return _0x14ee50;},_0x5078(_0x1c25cc,_0xd4a484);}import{AIChatFeedErrorItemView as _0x3367d9}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x412b74}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x32ed5a{[_0x1a3741(0x18f)];[_0x1a3741(0x173)];[_0x1a3741(0x182)];[_0x1a3741(0x18a)];[_0x1a3741(0x16f)];[_0x1a3741(0x16d)];[_0x1a3741(0x189)]=[];constructor(_0x4ca6aa,_0x113f98){const _0x477388=_0x1a3741;super(_0x4ca6aa);const {areActionsDisabled:_0x1da347,showUnchangedParts:_0x446430,availableActions:_0x3e8f6c}=_0x113f98;this[_0x477388(0x173)]=_0x1da347,this[_0x477388(0x182)]=_0x446430,this[_0x477388(0x16d)]=_0x3e8f6c,this[_0x477388(0x194)](_0x477388(0x18e),!0x1),this[_0x477388(0x18f)]=this[_0x477388(0x188)](),this[_0x477388(0x18a)]=new _0x46dae9(),this[_0x477388(0x16f)]=new _0x3367d9({'id':_0x477388(0x191),'initialContent':_0x412b74(_0x4ca6aa,_0x477388(0x19d)),'level':_0x477388(0x172)}),this[_0x477388(0x16f)][_0x477388(0x197)]=!0x1,this[_0x477388(0x177)]({'tag':_0x477388(0x165),'attributes':{'class':['ck',_0x477388(0x171)]},'children':[{'tag':_0x477388(0x165),'attributes':{'class':['ck',_0x477388(0x195)]},'children':this[_0x477388(0x18f)]},this[_0x477388(0x16f)]]});}get[_0x1a3741(0x16e)](){const _0x575407=_0x1a3741;return this[_0x575407(0x18f)][_0x575407(0x19b)];}async[_0x1a3741(0x17e)]({parts:_0x5a713c,renderingStrategy:_0x4ce8e7,abortSignal:_0x5d6468}){const _0x1d0430=_0x1a3741;this[_0x1d0430(0x18f)][_0x1d0430(0x19b)]?_0x5a713c[_0x1d0430(0x170)](_0x514b7b=>{const _0xcb3aaf=_0x1d0430,_0x45fe84=this[_0xcb3aaf(0x189)][_0xcb3aaf(0x169)](_0x117998=>_0x117998[_0xcb3aaf(0x174)]==_0x514b7b[_0xcb3aaf(0x174)]);-0x1===_0x45fe84?this[_0xcb3aaf(0x189)][_0xcb3aaf(0x19e)](_0x514b7b):this[_0xcb3aaf(0x189)][_0x45fe84]=_0x514b7b;}):this[_0x1d0430(0x189)]=_0x5a713c;for(const _0x2709ae of _0x5a713c[_0x1d0430(0x187)](_0x2fb883=>_0x2fb883[_0x1d0430(0x178)]))this[_0x1d0430(0x18a)][_0x1d0430(0x167)](async _0x4856fc=>{const _0x211cbf=_0x1d0430;let _0x33807f=this[_0x211cbf(0x196)](_0x2709ae[_0x211cbf(0x174)]);_0x33807f||(_0x33807f=new _0x571eb7(this[_0x211cbf(0x192)],{'part':_0x2709ae,'uiIndex':this[_0x211cbf(0x18f)][_0x211cbf(0x19b)]+0x1,'areActionsDisabled':this[_0x211cbf(0x173)],'availableActions':this[_0x211cbf(0x16d)]}),_0x33807f[_0x211cbf(0x164)](..._0x1e12d3)['to'](this),this[_0x211cbf(0x18f)][_0x211cbf(0x19a)](_0x33807f),this[_0x211cbf(0x18e)]=!0x0),0x2===this[_0x211cbf(0x18f)][_0x211cbf(0x19b)]&&this[_0x211cbf(0x18f)][_0x211cbf(0x181)][_0x211cbf(0x168)](!0x0),_0x33807f[_0x211cbf(0x168)](this[_0x211cbf(0x18f)][_0x211cbf(0x19b)]>0x1),await _0x33807f[_0x211cbf(0x179)]({'part':_0x2709ae,'renderingStrategy':_0x4ce8e7,'showUnchangedParts':this[_0x211cbf(0x182)],'abortSignal':_0x4856fc});});return _0x5d6468?.[_0x1d0430(0x199)](_0x1d0430(0x190),()=>{const _0x16e6a0=_0x1d0430;this[_0x16e6a0(0x18a)][_0x16e6a0(0x190)]();}),this[_0x1d0430(0x18a)][_0x1d0430(0x17b)];}[_0x1a3741(0x183)](_0xb68361,_0x2c76a8){const _0xecf211=_0x1a3741,_0x4d0fda=this[_0xecf211(0x196)](_0xb68361);_0x4d0fda&&(_0x4d0fda[_0xecf211(0x166)]=_0x2c76a8),this[_0xecf211(0x18e)]=_0xecf211(0x16a)==_0x2c76a8||Array[_0xecf211(0x186)](this[_0xecf211(0x18f)])[_0xecf211(0x184)](_0x2e5d24=>_0xecf211(0x16a)==_0x2e5d24[_0xecf211(0x166)]);}[_0x1a3741(0x196)](_0xbb3148){const _0x2ce2c8=_0x1a3741;return this[_0x2ce2c8(0x18f)][_0x2ce2c8(0x16b)](_0x1ced0f=>_0x1ced0f[_0x2ce2c8(0x180)][_0x2ce2c8(0x174)]==_0xbb3148)??null;}[_0x1a3741(0x163)](){const _0x2867c6=_0x1a3741;if(!this[_0x2867c6(0x182)]){const _0x33c419=!this[_0x2867c6(0x189)][_0x2867c6(0x16b)](({hasChanges:_0x3a47ef})=>_0x3a47ef),_0x17cde1=!!this[_0x2867c6(0x189)][_0x2867c6(0x16b)](({hasChanges:_0x5d3cf9})=>!_0x5d3cf9);this[_0x2867c6(0x16f)][_0x2867c6(0x197)]=0x0==this[_0x2867c6(0x18f)][_0x2867c6(0x19b)]||_0x17cde1,_0x33c419?this[_0x2867c6(0x16f)][_0x2867c6(0x193)](_0x412b74(this[_0x2867c6(0x192)],_0x2867c6(0x176))):this[_0x2867c6(0x16f)][_0x2867c6(0x193)](_0x412b74(this[_0x2867c6(0x192)],_0x2867c6(0x19d)));}}get[_0x1a3741(0x19c)](){const _0x3a5bb0=_0x1a3741;return!!this[_0x3a5bb0(0x18f)][_0x3a5bb0(0x16b)](_0x6186f7=>_0x6186f7[_0x3a5bb0(0x180)][_0x3a5bb0(0x178)]);}}
|