@ckeditor/ckeditor5-ai 47.3.0-alpha.2 → 47.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index-editor.css +18 -11
- package/dist/index.css +19 -11
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.d.ts +1 -0
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +2 -1
- package/theme/aiquickactions/aiquickactions.css +17 -10
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4f6c(_0xe65c82,_0x1b9402){const _0x5c82c5=_0x5c82();return _0x4f6c=function(_0x4f6c03,_0x5a76c6){_0x4f6c03=_0x4f6c03-0x181;let _0xef27a4=_0x5c82c5[_0x4f6c03];return _0xef27a4;},_0x4f6c(_0xe65c82,_0x1b9402);}(function(_0x412bfe,_0x186c2b){const _0x17a45f=_0x4f6c,_0xefd6d7=_0x412bfe();while(!![]){try{const _0x34a281=-parseInt(_0x17a45f(0x184))/0x1+-parseInt(_0x17a45f(0x186))/0x2+-parseInt(_0x17a45f(0x185))/0x3+-parseInt(_0x17a45f(0x193))/0x4+parseInt(_0x17a45f(0x18d))/0x5+parseInt(_0x17a45f(0x18c))/0x6+parseInt(_0x17a45f(0x18b))/0x7*(parseInt(_0x17a45f(0x194))/0x8);if(_0x34a281===_0x186c2b)break;else _0xefd6d7['push'](_0xefd6d7['shift']());}catch(_0x4a3e25){_0xefd6d7['push'](_0xefd6d7['shift']());}}}(_0x5c82,0x9ef51));function _0x5c82(){const _0x5647f9=['fire','set','label','bind','663924tbJLTv','5216sjQbGT','isMaximized','AI_TABS_LABEL_MINIMIZE','isOn','372616sdoDFj','1018656IoLsso','518270lauVog','ck-ai-tabs__resize\x20ck-ai-button-tertiary-text','resizeTabs','execute','icon','7469JxALav','964680klZddb','4659545ZgvKdW','AI_TABS_LABEL_MAXIMIZE'];_0x5c82=function(){return _0x5647f9;};return _0x5c82();}import{ButtonView as _0x1a6430}from'ckeditor5/src/ui.js';import{IconMaximize as _0x449957,IconMinimize as _0x344eff}from'ckeditor5/src/icons.js';import{getTranslation as _0x369cc3}from'../../aicore/utils/common-translations.js';export function createResizeButton(_0x4528c8,_0x50da81){const _0x9a3827=_0x4f6c,_0x5f30da=new _0x1a6430(_0x4528c8),_0x1d773d=_0x369cc3(_0x4528c8,_0x9a3827(0x182)),_0x234461=_0x369cc3(_0x4528c8,_0x9a3827(0x18e));return _0x5f30da[_0x9a3827(0x190)]({'withText':!0x1,'icon':_0x449957,'tooltip':!0x0,'class':_0x9a3827(0x187)}),_0x5f30da[_0x9a3827(0x192)](_0x9a3827(0x191))['to'](_0x50da81,_0x9a3827(0x181),_0x56f645=>_0x56f645?_0x1d773d:_0x234461),_0x5f30da[_0x9a3827(0x192)](_0x9a3827(0x18a))['to'](_0x50da81,_0x9a3827(0x181),_0x552fd3=>_0x552fd3?_0x344eff:_0x449957),_0x5f30da[_0x9a3827(0x192)](_0x9a3827(0x183))['to'](_0x50da81,_0x9a3827(0x181)),_0x5f30da['on'](_0x9a3827(0x189),()=>{const _0x4b2c86=_0x9a3827;_0x50da81[_0x4b2c86(0x18f)](_0x4b2c86(0x188));}),_0x5f30da;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x309255=_0x4eb3;(function(_0x500f2a,_0x448c7b){const _0x1e5322=_0x4eb3,_0x41f67e=_0x500f2a();while(!![]){try{const _0x5297c8=-parseInt(_0x1e5322(0x187))/0x1*(parseInt(_0x1e5322(0x17e))/0x2)+parseInt(_0x1e5322(0x188))/0x3+parseInt(_0x1e5322(0x18c))/0x4+-parseInt(_0x1e5322(0x17f))/0x5+parseInt(_0x1e5322(0x184))/0x6*(-parseInt(_0x1e5322(0x18d))/0x7)+parseInt(_0x1e5322(0x194))/0x8+-parseInt(_0x1e5322(0x192))/0x9;if(_0x5297c8===_0x448c7b)break;else _0x41f67e['push'](_0x41f67e['shift']());}catch(_0x10e33d){_0x41f67e['push'](_0x41f67e['shift']());}}}(_0x42e7,0x516f6));function _0x42e7(){const _0x3d6359=['isEqual','slice','1788420wnWDoG','791TATKRW','same','path','document','ai-documentposition-index-out-of-bounds','2019546pRiSeL','end','2498408yPMalC','data','start','indexOf','ai-documentposition-createfrompath-path-cannot-be-empty','createAfter','reduce','parent','createFromPath','getNudgedToWordBoundary','2xpOFco','247225pzXSKu','previousNode','createBefore','nextNode','createAt','8508BCYYTo','length','match','68645KFjMQm','230610WwCFCW','index'];_0x42e7=function(){return _0x3d6359;};return _0x42e7();}import{CKEditorError as _0x34019d,compareArrays as _0x19265b}from'ckeditor5/src/utils.js';import{getNodePath as _0x4102b5,isText as _0x23c84e,getChildren as _0x1cf259,isDocument as _0x52fd9e,getParent as _0x5cc0ee,textContent as _0x2074f1,hasChildren as _0x58876e}from'./htmlparser.js';function _0x4eb3(_0x121d2f,_0x3fec12){const _0x42e784=_0x42e7();return _0x4eb3=function(_0x4eb3c4,_0x493e11){_0x4eb3c4=_0x4eb3c4-0x17c;let _0x1a2008=_0x42e784[_0x4eb3c4];return _0x1a2008;},_0x4eb3(_0x121d2f,_0x3fec12);}export class DocumentPosition{[_0x309255(0x19b)];[_0x309255(0x189)];[_0x309255(0x190)];constructor(_0x1e5be5,_0x430cd2,_0x96e6a6){const _0x502dce=_0x309255;if(_0x23c84e(_0x430cd2)&&_0x96e6a6>_0x430cd2[_0x502dce(0x195)][_0x502dce(0x185)])throw new _0x34019d(_0x502dce(0x191),null,{'index':_0x96e6a6,'parent':_0x430cd2});if(_0x58876e(_0x430cd2)&&_0x96e6a6>_0x1cf259(_0x430cd2)[_0x502dce(0x185)])throw new _0x34019d(_0x502dce(0x191),null,{'index':_0x96e6a6,'parent':_0x430cd2});if(_0x96e6a6<0x0)throw new _0x34019d(_0x502dce(0x191),null,{'index':_0x96e6a6,'parent':_0x430cd2});this[_0x502dce(0x19b)]=_0x430cd2,this[_0x502dce(0x189)]=_0x96e6a6,this[_0x502dce(0x190)]=_0x1e5be5;}get[_0x309255(0x18f)](){const _0x20e451=_0x309255;return[..._0x4102b5(this[_0x20e451(0x19b)]),this[_0x20e451(0x189)]];}[_0x309255(0x18a)](_0xb79b98){const _0x1b2b1b=_0x309255;return this[_0x1b2b1b(0x190)]==_0xb79b98[_0x1b2b1b(0x190)]&&_0x1b2b1b(0x18e)===_0x19265b(this[_0x1b2b1b(0x18f)],_0xb79b98[_0x1b2b1b(0x18f)]);}get[_0x309255(0x182)](){const _0x257e96=_0x309255;if(_0x58876e(this[_0x257e96(0x19b)])){const _0x55f287=_0x1cf259(this[_0x257e96(0x19b)])[this[_0x257e96(0x189)]];if(_0x55f287)return _0x55f287;{const _0x25165d=DocumentPosition[_0x257e96(0x199)](this[_0x257e96(0x190)],this[_0x257e96(0x19b)]);if(_0x25165d)return _0x25165d[_0x257e96(0x182)];}}return null;}get[_0x309255(0x180)](){const _0x3fe3cd=_0x309255;if(_0x58876e(this[_0x3fe3cd(0x19b)])){const _0xbd40b4=_0x1cf259(this[_0x3fe3cd(0x19b)])[this[_0x3fe3cd(0x189)]-0x1];if(_0xbd40b4)return _0xbd40b4;{const _0x3dfcca=DocumentPosition[_0x3fe3cd(0x181)](this[_0x3fe3cd(0x190)],this[_0x3fe3cd(0x19b)]);if(_0x3dfcca)return _0x3dfcca[_0x3fe3cd(0x180)];}}return null;}[_0x309255(0x17d)](_0x5acfa1=_0x309255(0x196)){const _0x48379f=_0x309255;if(!_0x23c84e(this[_0x48379f(0x19b)]))return this;const _0x43eaab=this[_0x48379f(0x18f)][this[_0x48379f(0x18f)][_0x48379f(0x185)]-0x1],_0x8fca3f=_0x2074f1(this[_0x48379f(0x19b)])[_0x48379f(0x186)](/(?:\s*\S+\s*)/g);let _0x5b51ec=0x0,_0x3c2754=_0x43eaab;for(const _0x422c78 of _0x8fca3f){if(_0x5b51ec+_0x422c78[_0x48379f(0x185)]===_0x43eaab)return this;if(_0x5b51ec+_0x422c78[_0x48379f(0x185)]>_0x43eaab){_0x3c2754=_0x48379f(0x196)===_0x5acfa1?_0x5b51ec:_0x5b51ec+_0x422c78[_0x48379f(0x185)];break;}_0x5b51ec+=_0x422c78[_0x48379f(0x185)];}return DocumentPosition[_0x48379f(0x183)](this[_0x48379f(0x190)],this[_0x48379f(0x19b)],_0x3c2754);}static[_0x309255(0x199)](_0x34b32a,_0x3b8ba1){const _0xe3cb4b=_0x309255;if(_0x52fd9e(_0x3b8ba1))return null;const _0x397770=_0x5cc0ee(_0x3b8ba1);return DocumentPosition[_0xe3cb4b(0x183)](_0x34b32a,_0x397770,_0x1cf259(_0x397770)[_0xe3cb4b(0x197)](_0x3b8ba1)+0x1);}static[_0x309255(0x181)](_0x5d68e8,_0x57d0eb){const _0x52c7a0=_0x309255;if(_0x52fd9e(_0x57d0eb))return null;const _0x27c86c=_0x5cc0ee(_0x57d0eb);return DocumentPosition[_0x52c7a0(0x183)](_0x5d68e8,_0x27c86c,_0x1cf259(_0x27c86c)[_0x52c7a0(0x197)](_0x57d0eb));}static[_0x309255(0x183)](_0x41c273,_0x4614f8,_0x11fefa=_0x309255(0x196)){const _0x33ddb8=_0x309255;return new DocumentPosition(_0x41c273,_0x4614f8,_0x33ddb8(0x196)===_0x11fefa?0x0:_0x33ddb8(0x193)===_0x11fefa?_0x23c84e(_0x4614f8)?_0x4614f8[_0x33ddb8(0x195)][_0x33ddb8(0x185)]:_0x1cf259(_0x4614f8)[_0x33ddb8(0x185)]:_0x11fefa);}static[_0x309255(0x17c)](_0x622119,_0x372515){const _0x1c4a6e=_0x309255;if(!_0x372515[_0x1c4a6e(0x185)])throw new _0x34019d(_0x1c4a6e(0x198),null,{'path':_0x372515});const _0x27741d=_0x372515[_0x1c4a6e(0x18b)](0x0,-0x1)[_0x1c4a6e(0x19a)]((_0x572e7d,_0x28dce6)=>_0x23c84e(_0x572e7d)?_0x572e7d:_0x1cf259(_0x572e7d)[_0x28dce6],_0x622119);return DocumentPosition[_0x1c4a6e(0x183)](_0x622119,_0x27741d,_0x372515[_0x372515[_0x1c4a6e(0x185)]-0x1]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b361d=_0x475b;function _0x475b(_0x4d8508,_0x3a1188){const _0x23a54c=_0x23a5();return _0x475b=function(_0x475b07,_0x2c4835){_0x475b07=_0x475b07-0xa4;let _0x2df870=_0x23a54c[_0x475b07];return _0x2df870;},_0x475b(_0x4d8508,_0x3a1188);}(function(_0x1d5801,_0x21b121){const _0xe5bf59=_0x475b,_0x6a32b3=_0x1d5801();while(!![]){try{const _0x1aff64=-parseInt(_0xe5bf59(0xbd))/0x1+-parseInt(_0xe5bf59(0xaa))/0x2*(parseInt(_0xe5bf59(0xab))/0x3)+-parseInt(_0xe5bf59(0xba))/0x4+-parseInt(_0xe5bf59(0xb0))/0x5*(parseInt(_0xe5bf59(0xb1))/0x6)+parseInt(_0xe5bf59(0xa4))/0x7+parseInt(_0xe5bf59(0xa9))/0x8*(parseInt(_0xe5bf59(0xa6))/0x9)+parseInt(_0xe5bf59(0xb3))/0xa;if(_0x1aff64===_0x21b121)break;else _0x6a32b3['push'](_0x6a32b3['shift']());}catch(_0x598144){_0x6a32b3['push'](_0x6a32b3['shift']());}}}(_0x23a5,0x85005));import{DocumentPosition as _0x1f9e2d}from'./documentposition.js';import{clone as _0x337466,getParents as _0x1f5037,Document as _0x512985,Text as _0x5f5cc4,isTag as _0x53ac45,isText as _0x5080cd,replaceElement as _0xc4241d,removeElement as _0x765504}from'./htmlparser.js';export class DocumentRange{[_0x1b361d(0xb5)];[_0x1b361d(0xb4)];constructor(_0x4afc76,_0x512cb8){const _0x427efe=_0x1b361d;this[_0x427efe(0xb5)]=_0x4afc76,this[_0x427efe(0xb4)]=_0x512cb8;}[_0x1b361d(0xac)](_0xa1b099){const _0x1f4b68=_0x1b361d;return this==_0xa1b099||this[_0x1f4b68(0xb5)][_0x1f4b68(0xac)](_0xa1b099[_0x1f4b68(0xb5)])&&this[_0x1f4b68(0xb4)][_0x1f4b68(0xac)](_0xa1b099[_0x1f4b68(0xb4)]);}[_0x1b361d(0xc2)](){const _0x51f6e8=_0x1b361d;return new DocumentRange(this[_0x51f6e8(0xb5)][_0x51f6e8(0xc2)](_0x51f6e8(0xb5)),this[_0x51f6e8(0xb4)][_0x51f6e8(0xc2)](_0x51f6e8(0xb4)));}[_0x1b361d(0xb8)](){const _0x3f6149=_0x1b361d,_0x224f45=_0x337466(this[_0x3f6149(0xb5)][_0x3f6149(0xbf)]),_0x588655=_0x1f9e2d[_0x3f6149(0xc4)](_0x224f45,this[_0x3f6149(0xb5)][_0x3f6149(0xb2)]),_0x1e996e=_0x1f9e2d[_0x3f6149(0xc4)](_0x224f45,this[_0x3f6149(0xb4)][_0x3f6149(0xb2)]);let _0x33eaeb,_0x4aec0c;if(_0x5080cd(_0x588655[_0x3f6149(0xc3)])){const _0x1e7b66=_0x588655[_0x3f6149(0xb2)][_0x588655[_0x3f6149(0xb2)][_0x3f6149(0xb6)]-0x1],_0x382eae=new _0x5f5cc4(_0x588655[_0x3f6149(0xc3)][_0x3f6149(0xbb)][_0x3f6149(0xbe)](_0x1e7b66));_0xc4241d(_0x588655[_0x3f6149(0xc3)],_0x382eae),_0x33eaeb=_0x382eae;}else _0x33eaeb=_0x588655[_0x3f6149(0xad)];if(_0x5080cd(_0x1e996e[_0x3f6149(0xc3)])){const _0x5d5368=_0x1e996e[_0x3f6149(0xb2)][_0x1e996e[_0x3f6149(0xb2)][_0x3f6149(0xb6)]-0x1],_0x22fa78=new _0x5f5cc4(_0x1e996e[_0x3f6149(0xc3)][_0x3f6149(0xbb)][_0x3f6149(0xbe)](0x0,_0x5d5368));_0xc4241d(_0x1e996e[_0x3f6149(0xc3)],_0x22fa78),_0x4aec0c=_0x22fa78;}else _0x4aec0c=_0x1e996e[_0x3f6149(0xaf)];if(!(_0x33eaeb&&_0x4aec0c&&_0x224f45[_0x3f6149(0xa8)]&&_0x224f45[_0x3f6149(0xb7)]))return new _0x512985([]);const _0x4be652=_0x1f5037(_0x33eaeb),_0x1c6d77=_0x1f5037(_0x4aec0c),_0x4f8078=[],_0x59a647=[];let _0x335469=_0x224f45[_0x3f6149(0xa8)];for(;_0x335469&&_0x335469!==_0x33eaeb;){let _0x4b6378;_0x4be652[_0x3f6149(0xbc)](_0x335469)||_0x4f8078[_0x3f6149(0xb9)](_0x335469),_0x4b6378=_0x53ac45(_0x335469)?_0x1f9e2d[_0x3f6149(0xa5)](_0x224f45,_0x335469,_0x3f6149(0xb5)):_0x1f9e2d[_0x3f6149(0xc0)](_0x224f45,_0x335469),_0x335469=_0x4b6378?_0x4b6378[_0x3f6149(0xad)]:null;}for(_0x335469=_0x224f45[_0x3f6149(0xb7)];_0x335469&&_0x335469!==_0x4aec0c;){let _0x272bc5;_0x1c6d77[_0x3f6149(0xbc)](_0x335469)||_0x59a647[_0x3f6149(0xb9)](_0x335469),_0x272bc5=_0x53ac45(_0x335469)?_0x1f9e2d[_0x3f6149(0xa5)](_0x224f45,_0x335469,_0x3f6149(0xb4)):_0x1f9e2d[_0x3f6149(0xc1)](_0x224f45,_0x335469),_0x335469=_0x272bc5?_0x272bc5[_0x3f6149(0xaf)]:null;}return _0x4f8078[_0x3f6149(0xae)](_0x3a400a=>{_0x765504(_0x3a400a);}),_0x59a647[_0x3f6149(0xa7)]()[_0x3f6149(0xae)](_0x5598c9=>{_0x765504(_0x5598c9);}),_0x224f45;}}function _0x23a5(){const _0x4405ee=['path','28376450AYrvMg','end','start','length','lastChild','getContent','push','4287908LJBIJH','data','includes','839366zpEKnK','slice','document','createAfter','createBefore','getNudgedToWordBoundary','parent','createFromPath','4298xXdBYY','createAt','9LvMCGI','reverse','firstChild','8248192cANxwe','72998DMiTXz','45hnCnAy','isEqual','nextNode','forEach','previousNode','2164205FTLAfv','12MrfSfB'];_0x23a5=function(){return _0x4405ee;};return _0x23a5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x25bcb0=_0x3ae1;(function(_0x2a5093,_0xdf412a){const _0x30b73f=_0x3ae1,_0xf46fe4=_0x2a5093();while(!![]){try{const _0x48e40e=-parseInt(_0x30b73f(0x185))/0x1+parseInt(_0x30b73f(0x18a))/0x2+parseInt(_0x30b73f(0x17e))/0x3+-parseInt(_0x30b73f(0x184))/0x4+parseInt(_0x30b73f(0x180))/0x5*(-parseInt(_0x30b73f(0x18e))/0x6)+parseInt(_0x30b73f(0x18c))/0x7+-parseInt(_0x30b73f(0x189))/0x8*(-parseInt(_0x30b73f(0x187))/0x9);if(_0x48e40e===_0xdf412a)break;else _0xf46fe4['push'](_0xf46fe4['shift']());}catch(_0x4a7fc5){_0xf46fe4['push'](_0xf46fe4['shift']());}}}(_0x5f48,0xc9ccd));function _0x3ae1(_0x2c5dc9,_0x3a2553){const _0x5f48df=_0x5f48();return _0x3ae1=function(_0x3ae182,_0x3d4058){_0x3ae182=_0x3ae182-0x17e;let _0x5cae0b=_0x5f48df[_0x3ae182];return _0x5cae0b;},_0x3ae1(_0x2c5dc9,_0x3a2553);}export const AI_SUGGESTION_UI_EVENT_NAMES=[_0x25bcb0(0x181),_0x25bcb0(0x188),_0x25bcb0(0x18b),_0x25bcb0(0x18d),_0x25bcb0(0x183),_0x25bcb0(0x18f),_0x25bcb0(0x17f),_0x25bcb0(0x182),_0x25bcb0(0x186)];function _0x5f48(){const _0x47cd39=['like','mouseOverSuggestion','2128280mRltAM','1069365mfOqir','dislike','4570515LfHqmS','insertSuggestion','16RpMiVE','474078uUiARn','applySuggestion','7546168DtJCzl','rejectSuggestion','19452yjJXye','mouseLeaveSuggestion','1206069xmzsTW','toggleSuggestionDisplayMode','470xGNwXc','showChangeInText'];_0x5f48=function(){return _0x47cd39;};return _0x5f48();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x1b9098,_0x1d767b){var _0x471b64=_0x59d4,_0x28dceb=_0x1b9098();while(!![]){try{var _0x241fe6=-parseInt(_0x471b64(0x15c))/0x1+parseInt(_0x471b64(0x163))/0x2*(-parseInt(_0x471b64(0x166))/0x3)+parseInt(_0x471b64(0x16a))/0x4+parseInt(_0x471b64(0x168))/0x5*(-parseInt(_0x471b64(0x15b))/0x6)+parseInt(_0x471b64(0x165))/0x7*(parseInt(_0x471b64(0x164))/0x8)+-parseInt(_0x471b64(0x15f))/0x9+parseInt(_0x471b64(0x169))/0xa;if(_0x241fe6===_0x1d767b)break;else _0x28dceb['push'](_0x28dceb['shift']());}catch(_0xf6009f){_0x28dceb['push'](_0x28dceb['shift']());}}}(_0x2684,0x6cddb));function _0x2684(){var _0x4960c2=['29283rjcdSp','warn','35ydvpRP','14637470sWzsEC','57476UPUTpV','400134GzSWoe','620180LfKbkm','AIChat:\x20Multiple\x20editor\x20instances\x20detected.\x20Only\x20the\x20first\x20editor\x20instance\x20will\x20be\x20used\x20for\x20AI\x20operations.\x20This\x20configuration\x20is\x20not\x20fully\x20supported\x20and\x20may\x20lead\x20to\x20unexpected\x20behavior.','ai-get-editor-from-context-no-editor','2215278qAEOJF','length','editors','get','98wVPiWQ','6233864ZPaTMZ','7QuhWQH'];_0x2684=function(){return _0x4960c2;};return _0x2684();}import{CKEditorError as _0x62c2c8}from'ckeditor5/src/utils.js';import{Editor as _0x4fa747}from'ckeditor5/src/core.js';function _0x59d4(_0x3fe9ac,_0x8033cd){var _0x268469=_0x2684();return _0x59d4=function(_0x59d4cf,_0x25f0d6){_0x59d4cf=_0x59d4cf-0x15b;var _0x5326e0=_0x268469[_0x59d4cf];return _0x5326e0;},_0x59d4(_0x3fe9ac,_0x8033cd);}export function getEditorFromContext(_0x2adf88){var _0x1072ff=_0x59d4;if(_0x2adf88 instanceof _0x4fa747)return _0x2adf88;if(_0x2adf88?.[_0x1072ff(0x161)]&&_0x2adf88[_0x1072ff(0x161)][_0x1072ff(0x162)](0x0))return _0x2adf88[_0x1072ff(0x161)][_0x1072ff(0x160)]>0x1&&console[_0x1072ff(0x167)](_0x1072ff(0x15d)),_0x2adf88[_0x1072ff(0x161)][_0x1072ff(0x162)](0x0);throw new _0x62c2c8(_0x1072ff(0x15e));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5e5536,_0x2cdb02){const _0x2e82ed=_0x5a00,_0x485b85=_0x5e5536();while(!![]){try{const _0x3e5600=-parseInt(_0x2e82ed(0xc4))/0x1*(parseInt(_0x2e82ed(0xab))/0x2)+-parseInt(_0x2e82ed(0xc2))/0x3*(parseInt(_0x2e82ed(0xae))/0x4)+-parseInt(_0x2e82ed(0xa4))/0x5*(-parseInt(_0x2e82ed(0xac))/0x6)+-parseInt(_0x2e82ed(0xb9))/0x7*(parseInt(_0x2e82ed(0xc5))/0x8)+parseInt(_0x2e82ed(0xa5))/0x9+parseInt(_0x2e82ed(0xb8))/0xa+parseInt(_0x2e82ed(0xa6))/0xb;if(_0x3e5600===_0x2cdb02)break;else _0x485b85['push'](_0x485b85['shift']());}catch(_0x5a86a6){_0x485b85['push'](_0x485b85['shift']());}}}(_0x9672,0x93969));import{transformOperationSets as _0x40ca85}from'ckeditor5/src/engine.js';import{append as _0x44e37e,findByAttribute as _0x400902,prependChild as _0x3ca6f9,removeElement as _0x3e2a9d,serialize as _0x3fe645}from'./htmlparser.js';export function getOperationsFromReply({editor:_0x347ed0,interaction:_0x5732e6,reply:_0x255f56,groups:_0x263006,transform:_0x3babea,documentCompare:_0x1adeba,documentCompareOptions:_0x10c057}){const _0x2eb8ba=_0x5a00,_0x56e700=_0x5732e6[_0x2eb8ba(0xb4)]();if(!_0x56e700)return[];const _0x133f54=_0x56e700[_0x2eb8ba(0xc1)],_0xd58f1a=_0x56e700[_0x2eb8ba(0xb3)],_0x14698b=_0x255f56[_0x2eb8ba(0x9f)][_0x2eb8ba(0xa7)](!0x0);for(const {changes:_0x59d594}of _0x263006){const _0x4ad929=_0x59d594[_0x2eb8ba(0xaf)](_0x45dba1=>_0x2eb8ba(0xb1)!=_0x45dba1[_0x2eb8ba(0xb7)])[_0x2eb8ba(0xa1)](_0x110805=>_0x400902(_0x2eb8ba(0xb2),_0x110805['id'],_0x14698b)),_0x2b0dec=_0x59d594[_0x2eb8ba(0xaf)](_0x4ae0dc=>_0x2eb8ba(0xc3)!=_0x4ae0dc[_0x2eb8ba(0xb7)])[_0x2eb8ba(0xa1)](_0x48e0f4=>_0x48e0f4[_0x2eb8ba(0xaa)][_0x2eb8ba(0xa7)](!0x0));let _0x2a41a5=null;if(_0x4ad929[_0x2eb8ba(0xad)]){_0x2a41a5=_0x4ad929[0x0][_0x2eb8ba(0xbd)];for(let _0x48ee51=0x0;_0x48ee51<_0x4ad929[_0x2eb8ba(0xad)];_0x48ee51++)_0x3e2a9d(_0x4ad929[_0x48ee51]);}if(_0x2b0dec[_0x2eb8ba(0xad)]){_0x2a41a5||(_0x59d594[0x0][_0x2eb8ba(0xa9)]?_0x2a41a5=_0x400902(_0x2eb8ba(0xb2),_0x59d594[0x0][_0x2eb8ba(0xa9)],_0x14698b):(_0x2a41a5=_0x2b0dec[_0x2eb8ba(0xa3)](),_0x3ca6f9(_0x14698b,_0x2a41a5)));for(let _0x2d645a=0x0;_0x2d645a<_0x2b0dec[_0x2eb8ba(0xad)];_0x2d645a++)_0x44e37e(_0x2a41a5,_0x2b0dec[_0x2d645a]),_0x2a41a5=_0x2b0dec[_0x2d645a];}}const _0x38eb1b=_0x3fe645(_0x14698b),_0x1257b7=_0x1adeba[_0x2eb8ba(0xba)](_0x133f54,_0x38eb1b,_0x10c057)[_0x2eb8ba(0xbe)]();if(_0x3babea){const _0x10178b=_0x347ed0[_0x2eb8ba(0xbb)][_0x2eb8ba(0xb5)][_0x2eb8ba(0xa2)][_0x2eb8ba(0xbe)](_0xd58f1a),_0x450a64={'document':_0x347ed0[_0x2eb8ba(0xbb)][_0x2eb8ba(0xb5)],'useRelations':!0x1,'padWithNoOps':!0x1};return _0x40ca85(_0x1257b7,_0x10178b,_0x450a64)[_0x2eb8ba(0xa0)];}return _0x1257b7;}function _0x9672(){const _0x5a21bd=['name','type','11394980jTnqim','206402QPXSde','getDiff','model','oldRange','previousSibling','getOperations','get','marker','content','3teAbAq','removed','38CtejbJ','328eMbqfE','documentContextContent','operationsA','map','history','shift','5qHCmnM','10278279pHBmff','1244353gQRUYi','cloneNode','getRange','anchorId','node','23924RIlqfp','3324084WJCNrZ','length','2722652OlmHIh','filter','markers','new','data-id','version','getDocumentContext','document'];_0x9672=function(){return _0x5a21bd;};return _0x9672();}function _0x5a00(_0x138bb2,_0x3f6852){const _0x96720b=_0x9672();return _0x5a00=function(_0x5a00c7,_0x2481c6){_0x5a00c7=_0x5a00c7-0x9f;let _0x1d0ca1=_0x96720b[_0x5a00c7];return _0x1d0ca1;},_0x5a00(_0x138bb2,_0x3f6852);}export function fixMarkerOperationOldRange(_0x6c034e,_0x5efac5){const _0xaed7ef=_0x5a00;if(_0xaed7ef(0xc0)!=_0x5efac5[_0xaed7ef(0xb7)])return;const _0x42d7fa=_0x6c034e[_0xaed7ef(0xbb)][_0xaed7ef(0xb0)][_0xaed7ef(0xbf)](_0x5efac5[_0xaed7ef(0xb6)]);_0x42d7fa&&(_0x5efac5[_0xaed7ef(0xbc)]=_0x42d7fa[_0xaed7ef(0xa8)]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(_0x546166,_0x2bfeff){const _0x272721=_0xddd2,_0x58f306=_0x546166();while(!![]){try{const _0x201673=parseInt(_0x272721(0x1db))/0x1*(parseInt(_0x272721(0x1d9))/0x2)+parseInt(_0x272721(0x223))/0x3*(parseInt(_0x272721(0x213))/0x4)+parseInt(_0x272721(0x21e))/0x5*(parseInt(_0x272721(0x22a))/0x6)+-parseInt(_0x272721(0x1de))/0x7+-parseInt(_0x272721(0x1c7))/0x8+parseInt(_0x272721(0x1dd))/0x9+-parseInt(_0x272721(0x216))/0xa;if(_0x201673===_0x2bfeff)break;else _0x58f306['push'](_0x58f306['shift']());}catch(_0x47c6fc){_0x58f306['push'](_0x58f306['shift']());}}}(_0x1bcf,0x25932));import{findOne as _0x14abf5,getAttribute as _0x56beca,Document as _0x3ec2b5,serialize as _0x364836,parse as _0x3468b8}from'./htmlparser.js';import{fixElementSuggestionRange as _0x223f79}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x33a648,_DetachOperation as _0xcce429,_removeFromModelNodeList as _0x105028,_insertIntoModelNodeList as _0x3329c6}from'ckeditor5/src/engine.js';import{uid as _0x128b00}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x2cb1f7,changeGroups:_0x4056a6,documentContextContent:_0x3b79b5,showDiff:_0x4a1725,trimUnchanged:_0xd1ee44=!0x0}){const _0x1ce186=_0xddd2;return _0x4056a6[_0x1ce186(0x1bb)](_0x2a8fcf=>{const _0x2f4fa4=_0x1ce186,_0x1fa024=new _0x3ec2b5([]),_0x54fdd9=new _0x3ec2b5([]);for(const _0x280979 of _0x2a8fcf[_0x2f4fa4(0x20b)])if(_0x4a1725&&_0x2f4fa4(0x1f3)==_0x280979[_0x2f4fa4(0x1c8)]||_0x54fdd9[_0x2f4fa4(0x208)][_0x2f4fa4(0x1cf)](_0x280979[_0x2f4fa4(0x1cb)][_0x2f4fa4(0x202)](!0x0)),_0x2f4fa4(0x1c1)!=_0x280979[_0x2f4fa4(0x1c8)]&&(_0x4a1725||_0x2f4fa4(0x1f3)!=_0x280979[_0x2f4fa4(0x1c8)])){const _0x5af3e1=_0x14abf5(_0x5bd9ef=>_0x56beca(_0x5bd9ef,_0x2f4fa4(0x1d3))==_0x280979['id'],_0x3b79b5,!0x0);_0x5af3e1&&_0x1fa024[_0x2f4fa4(0x208)][_0x2f4fa4(0x1cf)](_0x5af3e1[_0x2f4fa4(0x202)](!0x0));}const {content:_0x534853,hasChanges:_0x4e2141}=function(_0x1b5ec8,_0x41ab25,_0x194c55,_0x2e853e,_0x33ed25=!0x0){const _0x138e32=_0x2f4fa4,_0x4e8603=_0x1b5ec8[_0x138e32(0x1d8)][_0x138e32(0x1cd)](_0x138e32(0x1cc)),_0x15e517=_0x364836(_0x41ab25),_0x9976e8=_0x364836(_0x194c55),_0x2c1baa=_0x1b5ec8[_0x138e32(0x1df)][_0x138e32(0x1fe)](_0x15e517,_0x138e32(0x220)),_0x98c406=_0x1b5ec8[_0x138e32(0x1e2)][_0x138e32(0x1da)](_0x2c1baa,0x0),_0xce03b7=_0x4e8603[_0x138e32(0x214)](_0x15e517,_0x9976e8,{'anchor':_0x98c406,'markDeletions':_0x2e853e}),_0x259f0b=_0xce03b7[_0x138e32(0x1e1)]();if(0x0==_0x259f0b[_0x138e32(0x200)])return{'content':_0x41ab25[_0x138e32(0x202)](!0x0),'hasChanges':!0x1};_0x2e853e?function(_0x323be2,_0x51a436,_0x5640f0){const _0x57035e=_0x138e32;if(0x0==_0x323be2[_0x57035e(0x200)])return;const _0x119d96=_0x5640f0[_0x57035e(0x1d8)][_0x57035e(0x1cd)](_0x57035e(0x1cc)),_0x324072=_0x5640f0[_0x57035e(0x1d8)][_0x57035e(0x1cd)](_0x57035e(0x20d));_0x5640f0[_0x57035e(0x1e2)][_0x57035e(0x207)](_0x47783f=>{const _0xfbdc6d=_0x57035e,_0x1c197b=new Set();for(let _0x59d0a0=0x0;_0x59d0a0<_0x323be2[_0xfbdc6d(0x200)];_0x59d0a0++){const _0x534c44=_0x323be2[_0x59d0a0];if(_0x534c44[_0xfbdc6d(0x1c6)]=null,_0x534c44[_0xfbdc6d(0x1d7)]=!0x1,_0x119d96[_0xfbdc6d(0x1f6)](_0x534c44)){const _0x4528fe=_0x223f79(_0x534c44[_0xfbdc6d(0x1fc)],_0x5640f0[_0xfbdc6d(0x1e2)]),_0x395ba9=_0xfbdc6d(0x1d1)+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0x395ba9,_0x4528fe);}else switch(_0x534c44[_0xfbdc6d(0x1c8)]){case _0xfbdc6d(0x1b9):{if(_0x534c44[_0xfbdc6d(0x204)]==_0x534c44[_0xfbdc6d(0x1d6)])break;_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x534c44),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x534c44);const _0x50db23=_0xfbdc6d(0x1e4),_0xe30b03=_0x534c44[_0xfbdc6d(0x211)],_0x53a0e0=_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x1e5)](_0xe30b03,_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x1da)](_0xe30b03[_0xfbdc6d(0x227)],_0xfbdc6d(0x219))),_0x582a75=_0xfbdc6d(0x1e6)+_0x50db23+':'+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0x582a75,_0x53a0e0);break;}case _0xfbdc6d(0x203):case _0xfbdc6d(0x1fd):case _0xfbdc6d(0x1d5):{if(_0x534c44[_0xfbdc6d(0x1c2)]==_0x534c44[_0xfbdc6d(0x21a)])break;_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x534c44),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x534c44);const _0x2d8caf=_0x534c44[_0xfbdc6d(0x1d2)];if(!_0x324072[_0xfbdc6d(0x1b7)](_0x2d8caf))break;const _0x5b0f7a=_0x223f79(_0x534c44[_0xfbdc6d(0x1d0)],_0x5640f0[_0xfbdc6d(0x1e2)]),_0x250606=_0xfbdc6d(0x1e6)+_0x2d8caf+':'+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0x250606,_0x5b0f7a);break;}case _0xfbdc6d(0x1f7):{_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x534c44),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x534c44);if(_0x323be2[_0x59d0a0+0x1]&&_0xfbdc6d(0x1ce)==_0x323be2[_0x59d0a0+0x1][_0xfbdc6d(0x1c8)]){ro(_0x51a436,_0x534c44);break;}const _0x5b3e9a=_0x534c44[_0xfbdc6d(0x211)],_0x4be634=_0x534c44[_0xfbdc6d(0x1ee)],_0x79d6e2=_0x223f79(_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x1e5)](_0x5b3e9a,_0x5b3e9a[_0xfbdc6d(0x1ba)](_0x4be634)),_0x5640f0[_0xfbdc6d(0x1e2)]),_0x4f2d9d=_0xfbdc6d(0x1c0)+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0x4f2d9d,_0x79d6e2);break;}case _0xfbdc6d(0x21f):{_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x534c44),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x534c44);const _0x44d5e5=_0x534c44[_0xfbdc6d(0x206)],_0x367733=_0x534c44[_0xfbdc6d(0x21b)],_0x5bb54d=_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x1e5)](_0x44d5e5,_0x367733),_0xc84839=_0xfbdc6d(0x1c0)+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0xc84839,_0x5bb54d);break;}case _0xfbdc6d(0x1ce):{_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x534c44),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x534c44),_0x323be2[_0x59d0a0-0x1]&&_0xfbdc6d(0x1f7)==_0x323be2[_0x59d0a0-0x1][_0xfbdc6d(0x1c8)]&&ro(_0x51a436,_0x534c44);const _0x58c216=_0x534c44[_0xfbdc6d(0x1e9)](),_0x5617bc=_0x534c44[_0xfbdc6d(0x1ee)];for(let _0xcaf049=0x0;_0xcaf049<_0x5617bc;_0xcaf049++){const _0x7bbe70=_0x58c216[_0xfbdc6d(0x1ba)](_0xcaf049)[_0xfbdc6d(0x227)];_0x1c197b[_0xfbdc6d(0x1bd)](_0x7bbe70);}break;}case _0xfbdc6d(0x201):{const _0x1a2eac=_0x534c44[_0xfbdc6d(0x1f8)],_0x3eb281=_0x534c44[_0xfbdc6d(0x1ee)],_0x5a496b=new _0xcce429(_0x1a2eac,_0x3eb281);_0x47783f[_0xfbdc6d(0x1fb)][_0xfbdc6d(0x1ff)](_0x5a496b),_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x222)](_0x5a496b);break;}}}for(const _0x30d23b of _0x1c197b){const _0x3de410=_0x5640f0[_0xfbdc6d(0x1e2)][_0xfbdc6d(0x215)](_0x30d23b),_0x2dbc4b=_0xfbdc6d(0x20e)+_0x128b00()+_0xfbdc6d(0x212);_0x51a436[_0xfbdc6d(0x1f1)][_0xfbdc6d(0x1ca)](_0x2dbc4b,_0x223f79(_0x3de410,_0x5640f0[_0xfbdc6d(0x1e2)]));}});}(_0x259f0b,_0x2c1baa,_0x1b5ec8):_0x1b5ec8[_0x138e32(0x1e2)][_0x138e32(0x207)](_0x4cb707=>{const _0x1a5eeb=_0x138e32;for(const _0x2a06eb of _0x259f0b)if(_0x1a5eeb(0x201)==_0x2a06eb[_0x1a5eeb(0x1c8)]){const _0x3d19a1=_0x2a06eb[_0x1a5eeb(0x1f8)],_0x463b6f=_0x2a06eb[_0x1a5eeb(0x1ee)],_0x102a95=new _0xcce429(_0x3d19a1,_0x463b6f);_0x4cb707[_0x1a5eeb(0x1fb)][_0x1a5eeb(0x1ff)](_0x102a95),_0x1b5ec8[_0x1a5eeb(0x1e2)][_0x1a5eeb(0x222)](_0x102a95);}else{if(_0x1a5eeb(0x1f4)==_0x2a06eb[_0x1a5eeb(0x1c8)]){const _0x5f0dea=_0x2a06eb[_0x1a5eeb(0x1f9)],_0x496e69=_0x2a06eb[_0x1a5eeb(0x1fc)];_0x2c1baa[_0x1a5eeb(0x1f1)][_0x1a5eeb(0x1ca)](_0x5f0dea,_0x496e69);}else _0x2a06eb[_0x1a5eeb(0x1c6)]=null,_0x2a06eb[_0x1a5eeb(0x1d7)]=!0x1,_0x4cb707[_0x1a5eeb(0x1fb)][_0x1a5eeb(0x1ff)](_0x2a06eb),_0x1b5ec8[_0x1a5eeb(0x1e2)][_0x1a5eeb(0x222)](_0x2a06eb);}});if(_0x33ed25){const _0xe0ea75=getMinimalSelection(_0x1b5ec8,_0x259f0b,_0x2c1baa);expandSelectionWithContext(_0x1b5ec8[_0x138e32(0x1e2)],_0xe0ea75),function(_0x9bfbf0,_0x1c71d9){const _0x2a3a23=_0x138e32,_0x506965=_0x1c71d9[_0x2a3a23(0x20f)]()[_0x2a3a23(0x1e8)];let _0x201a01=_0x1c71d9[_0x2a3a23(0x20f)]()[_0x2a3a23(0x219)];const _0x91ba06=_0x506965[_0x2a3a23(0x205)];(_0x201a01[_0x2a3a23(0x1d4)]||_0x201a01[_0x2a3a23(0x227)]&&_0x201a01[_0x2a3a23(0x227)]['is'](_0x2a3a23(0x20c)))&&(_0x3329c6(_0x201a01,_0x2a3a23(0x228)),_0x201a01=_0x201a01[_0x2a3a23(0x1ba)](0x3)),(_0x506965[_0x2a3a23(0x1d4)]||_0x506965[_0x2a3a23(0x1c5)]&&_0x506965[_0x2a3a23(0x1c5)]['is'](_0x2a3a23(0x20c)))&&(_0x3329c6(_0x506965,_0x2a3a23(0x228)),function(_0x3a730d,_0x5e5e7f,_0x1b4854){const _0x14f50e=_0x2a3a23;for(let [_0xb16c8,_0x4a924a]of _0x3a730d[_0x14f50e(0x1f1)]){const _0x5d0de5=_0x4a924a[_0x14f50e(0x1ec)](_0x5e5e7f,_0x1b4854,!0x1);_0x4a924a=_0x5d0de5[0x0],_0x3a730d[_0x14f50e(0x1f1)][_0x14f50e(0x1ca)](_0xb16c8,_0x4a924a);}}(_0x91ba06,_0x506965,0x3),_0x506965[_0x2a3a23(0x1e3)]==_0x201a01[_0x2a3a23(0x1e3)]&&(_0x201a01=_0x201a01[_0x2a3a23(0x1ba)](0x3)));const _0x3eacc0=_0x9bfbf0[_0x2a3a23(0x1e5)](_0x9bfbf0[_0x2a3a23(0x1da)](_0x91ba06,0x0),_0x506965),_0x168e63=_0x9bfbf0[_0x2a3a23(0x1e5)](_0x201a01,_0x9bfbf0[_0x2a3a23(0x1da)](_0x91ba06,_0x2a3a23(0x219))),_0x27f52d=[..._0x3eacc0[_0x2a3a23(0x1f5)](),..._0x168e63[_0x2a3a23(0x1f5)]()];_0x27f52d[_0x2a3a23(0x20a)]();for(const _0x320411 of _0x27f52d)_0x105028(_0x320411),_transformMarkersByDeletion(_0x91ba06,_0x320411);}(_0x1b5ec8[_0x138e32(0x1e2)],_0xe0ea75);}const _0x12cf8d=_0x1b5ec8[_0x138e32(0x1df)][_0x138e32(0x209)](_0x2c1baa,{'showSuggestionHighlights':!0x0});return{'content':_0x3468b8(_0x12cf8d),'hasChanges':!0x0};}(_0x2cb1f7,_0x1fa024,_0x54fdd9,_0x4a1725,_0xd1ee44);return{'type':_0x2a8fcf[_0x2f4fa4(0x20b)][0x0][_0x2f4fa4(0x1c8)],'index':_0x2a8fcf[_0x2f4fa4(0x229)],'content':_0x534853,'hasChanges':_0x4e2141};});}function ro(_0x199867,_0x5c5d36){const _0x42a7e8=_0xddd2;for(const [_0x3ba9f7,_0x536aff]of _0x199867[_0x42a7e8(0x1f1)]){const _0x2ff191=_0x33a648[_0x42a7e8(0x1e0)](_0x536aff[_0x42a7e8(0x1fa)](_0x5c5d36));_0x199867[_0x42a7e8(0x1f1)][_0x42a7e8(0x1ca)](_0x3ba9f7,_0x2ff191);}}function _0xddd2(_0xed9dc1,_0x1e108d){const _0x1bcf4a=_0x1bcf();return _0xddd2=function(_0xddd27,_0x5b0b35){_0xddd27=_0xddd27-0x1b7;let _0x35dcae=_0x1bcf4a[_0xddd27];return _0x35dcae;},_0xddd2(_0xed9dc1,_0x1e108d);}export function getMinimalSelection(_0x29267f,_0x260fcc,_0x389f31){const _0x411991=_0xddd2,_0x4d8683=_0x29267f[_0x411991(0x1d8)][_0x411991(0x1cd)](_0x411991(0x1cc));let _0x142cd0=_0x29267f[_0x411991(0x1e2)][_0x411991(0x1da)](_0x389f31,Number[_0x411991(0x1c4)]),_0x3a4264=_0x29267f[_0x411991(0x1e2)][_0x411991(0x1da)](_0x389f31,0x0);for(const _0x145fa8 of _0x260fcc){let _0x2fae02,_0x4ecfad;if(_0x4d8683[_0x411991(0x1f6)](_0x145fa8))_0x2fae02=_0x145fa8[_0x411991(0x1fc)][_0x411991(0x1e8)],_0x4ecfad=_0x145fa8[_0x411991(0x1fc)][_0x411991(0x219)];else switch(_0x142cd0=_0x142cd0[_0x411991(0x1fa)](_0x145fa8),_0x3a4264=_0x3a4264[_0x411991(0x1fa)](_0x145fa8),_0x145fa8[_0x411991(0x1c8)]){case _0x411991(0x1b9):_0x2fae02=_0x145fa8[_0x411991(0x211)],_0x4ecfad=_0x2fae02[_0x411991(0x1ba)](0x1);break;case _0x411991(0x203):case _0x411991(0x1fd):case _0x411991(0x1d5):_0x2fae02=_0x145fa8[_0x411991(0x1d0)][_0x411991(0x1e8)],_0x4ecfad=_0x145fa8[_0x411991(0x1d0)][_0x411991(0x219)];break;case _0x411991(0x1f7):_0x2fae02=_0x145fa8[_0x411991(0x211)],_0x4ecfad=_0x2fae02[_0x411991(0x1ba)](_0x145fa8[_0x411991(0x1ee)]);break;case _0x411991(0x21f):_0x2fae02=_0x145fa8[_0x411991(0x206)],_0x4ecfad=_0x145fa8[_0x411991(0x21b)];break;case _0x411991(0x218):{const _0x3e8cce=_0x145fa8[_0x411991(0x1e7)][_0x411991(0x210)][_0x411991(0x1ed)](0x0,-0x1);_0x2fae02=_0x29267f[_0x411991(0x1e2)][_0x411991(0x1c3)](_0x389f31,_0x3e8cce),_0x4ecfad=_0x2fae02[_0x411991(0x1ba)](0x1);break;}case _0x411991(0x201):{const _0x1c9f3b=_0x145fa8[_0x411991(0x1ee)],_0x1080fd=_0x145fa8[_0x411991(0x1f8)][_0x411991(0x1ec)](_0x145fa8[_0x411991(0x1e7)],_0x1c9f3b),_0x5a3fea=_0x145fa8[_0x411991(0x1e9)]();_0x411991(0x201)==_0x145fa8[_0x411991(0x1c8)]?(_0x2fae02=_0x1080fd,_0x4ecfad=_0x1080fd):(_0x2fae02=_0x5a3fea,_0x4ecfad=_0x5a3fea[_0x411991(0x1ba)](_0x1c9f3b));break;}}_0x2fae02&&_0x2fae02[_0x411991(0x1ea)](_0x142cd0)&&(_0x142cd0=_0x2fae02[_0x411991(0x1be)](),_0x142cd0[_0x411991(0x21c)]=_0x411991(0x1bf)),_0x4ecfad&&_0x4ecfad[_0x411991(0x1b8)](_0x3a4264)&&(_0x3a4264=_0x4ecfad[_0x411991(0x1be)](),_0x3a4264[_0x411991(0x21c)]=_0x411991(0x1bf));}return _0x29267f[_0x411991(0x1e2)][_0x411991(0x1eb)](_0x29267f[_0x411991(0x1e2)][_0x411991(0x1e5)](_0x142cd0,_0x3a4264));}export function expandSelectionWithContext(_0x4932b3,_0x23e484){const _0x149197=_0xddd2;so(_0x4932b3,_0x23e484,_0x149197(0x226));const _0xdeb46b=_0x23e484[_0x149197(0x20f)]();_0x23e484[_0x149197(0x1bc)]([]),_0x23e484[_0x149197(0x1bc)](_0xdeb46b,{'backward':!0x0}),so(_0x4932b3,_0x23e484,_0x149197(0x1dc));}function _0x1bcf(){const _0x28c16c=['offset','markers','word','removed','marker','getMinimalFlatRanges','isMarkedRemoveOperation','insert','sourcePosition','name','getTransformedByOperation','batch','newRange','removeAttribute','parse','addOperation','length','remove','cloneNode','addAttribute','oldName','root','splitPosition','change','children','stringify','reverse','changes','$text','SuggestionsConversion','suggestion:formatBlock:$fakeWrap:','getFirstRange','path','position',':$aiSuggestion','19860XernCB','getDiff','createRangeOn','1576590TCVxpz','focus','merge','end','newValue','moveTargetPosition','stickiness','isObject','11830LdMGrO','split','$root','schema','applyOperation','18JMptDd','_getTransformedByDeletion','delete','forward','nodeAfter','...','index','144qKzIkG','isBlock','isRegisteredAttribute','isAfter','rename','getShiftedBy','map','setTo','add','clone','toNone','suggestion:insertion:','new','oldValue','createPositionFromPath','POSITIVE_INFINITY','nodeBefore','baseVersion','775160BIfPrr','type','modifySelection','set','node','DocumentCompare','get','move','push','range','suggestion:deletion:','key','data-id','textNode','changeAttribute','newName','isDocumentOperation','plugins','368526kcsjEO','createPositionAt','1cdpvpy','backward','1459440eYLTqM','171759NLYFAn','data','_createFromRanges','getOperations','model','parent','$elementName','createRange','suggestion:attribute:','targetPosition','start','getMovedRangeStart','isBefore','createSelection','_getTransformedByInsertion','slice','howMany','element'];_0x1bcf=function(){return _0x28c16c;};return _0x1bcf();}function so(_0x592256,_0x2ba8a4,_0x1da9d2){const _0x2e0a8a=_0xddd2;let _0x492cf0=0x14;for(;_0x492cf0;){_0x592256[_0x2e0a8a(0x1c9)](_0x2ba8a4,{'unit':_0x2e0a8a(0x1f2),'direction':_0x1da9d2}),_0x492cf0--;const _0x405c29=_0x2ba8a4[_0x2e0a8a(0x217)][_0x2e0a8a(0x226)==_0x1da9d2?_0x2e0a8a(0x1c5):_0x2e0a8a(0x227)];if(_0x405c29&&_0x405c29['is'](_0x2e0a8a(0x1ef))&&_0x592256[_0x2e0a8a(0x221)][_0x2e0a8a(0x22b)](_0x405c29)&&_0x592256[_0x2e0a8a(0x221)][_0x2e0a8a(0x21d)](_0x405c29))break;}}export function _transformMarkersByDeletion(_0x3bf543,_0x1d8ea4){const _0xb2e351=_0xddd2;for(const [_0x39e2db,_0x5e9fb3]of _0x3bf543[_0xb2e351(0x1f1)]){const _0x2a4bcb=_0x5e9fb3[_0xb2e351(0x224)](_0x1d8ea4[_0xb2e351(0x1e8)],_0x1d8ea4[_0xb2e351(0x219)][_0xb2e351(0x1f0)]-_0x1d8ea4[_0xb2e351(0x1e8)][_0xb2e351(0x1f0)]);null!=_0x2a4bcb?_0x3bf543[_0xb2e351(0x1f1)][_0xb2e351(0x1ca)](_0x39e2db,_0x2a4bcb):_0x3bf543[_0xb2e351(0x1f1)][_0xb2e351(0x225)](_0x39e2db);}}
|
|
23
|
+
(function(_0xc50e58,_0x192a0c){const _0x142b8c=_0x1de3,_0x38e97f=_0xc50e58();while(!![]){try{const _0x457b76=-parseInt(_0x142b8c(0x227))/0x1+-parseInt(_0x142b8c(0x1dd))/0x2+parseInt(_0x142b8c(0x1e6))/0x3*(-parseInt(_0x142b8c(0x226))/0x4)+parseInt(_0x142b8c(0x20d))/0x5*(parseInt(_0x142b8c(0x1ee))/0x6)+parseInt(_0x142b8c(0x1e8))/0x7*(parseInt(_0x142b8c(0x229))/0x8)+-parseInt(_0x142b8c(0x234))/0x9+parseInt(_0x142b8c(0x220))/0xa*(parseInt(_0x142b8c(0x1ec))/0xb);if(_0x457b76===_0x192a0c)break;else _0x38e97f['push'](_0x38e97f['shift']());}catch(_0x4d66c2){_0x38e97f['push'](_0x38e97f['shift']());}}}(_0x46a2,0xd0210));import{findOne as _0x836628,getAttribute as _0x8abe46,Document as _0xf0db5,serialize as _0x1977c3,parse as _0xb2cefc}from'./htmlparser.js';import{fixElementSuggestionRange as _0x25f471}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x38f4aa,_DetachOperation as _0x3879dd,_removeFromModelNodeList as _0x417361,_insertIntoModelNodeList as _0x4ffd4a}from'ckeditor5/src/engine.js';import{uid as _0x2dd1ff}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x553a57,changeGroups:_0x5a2442,documentContextContent:_0x1e1101,showDiff:_0x1eb1c9,trimUnchanged:_0x487411=!0x0}){const _0x17ef8d=_0x1de3;return _0x5a2442[_0x17ef8d(0x22e)](_0x3a1001=>{const _0x2e18c2=_0x17ef8d,_0x5b9a46=new _0xf0db5([]),_0x3773f5=new _0xf0db5([]);for(const _0x559568 of _0x3a1001[_0x2e18c2(0x213)])if(_0x1eb1c9&&_0x2e18c2(0x1cc)==_0x559568[_0x2e18c2(0x1e2)]||_0x3773f5[_0x2e18c2(0x1ce)][_0x2e18c2(0x20f)](_0x559568[_0x2e18c2(0x1d1)][_0x2e18c2(0x1dc)](!0x0)),_0x2e18c2(0x1f8)!=_0x559568[_0x2e18c2(0x1e2)]&&(_0x1eb1c9||_0x2e18c2(0x1cc)!=_0x559568[_0x2e18c2(0x1e2)])){const _0xa4d830=_0x836628(_0x2e96b7=>_0x8abe46(_0x2e96b7,_0x2e18c2(0x1d0))==_0x559568['id'],_0x1e1101,!0x0);_0xa4d830&&_0x5b9a46[_0x2e18c2(0x1ce)][_0x2e18c2(0x20f)](_0xa4d830[_0x2e18c2(0x1dc)](!0x0));}const {content:_0x599cc5,hasChanges:_0x59d8d2}=function(_0xb7a44,_0x209290,_0x4462c5,_0x2af98a,_0x41ea74=!0x0){const _0x142192=_0x2e18c2,_0x3a8434=_0xb7a44[_0x142192(0x22b)][_0x142192(0x22c)](_0x142192(0x230)),_0x51d4f8=_0x1977c3(_0x209290),_0xdb0745=_0x1977c3(_0x4462c5),_0x498aa9=_0xb7a44[_0x142192(0x212)][_0x142192(0x1ca)](_0x51d4f8,_0x142192(0x238)),_0x3e435c=_0xb7a44[_0x142192(0x1db)][_0x142192(0x208)](_0x498aa9,0x0),_0x5d9354=_0x3a8434[_0x142192(0x232)](_0x51d4f8,_0xdb0745,{'anchor':_0x3e435c,'markDeletions':_0x2af98a}),_0x27fd38=_0x5d9354[_0x142192(0x222)]();if(0x0==_0x27fd38[_0x142192(0x20b)])return{'content':_0x209290[_0x142192(0x1dc)](!0x0),'hasChanges':!0x1};_0x2af98a?function(_0x1569db,_0x538ef0,_0x9265e3){const _0x19e5d7=_0x142192;if(0x0==_0x1569db[_0x19e5d7(0x20b)])return;const _0x4c7fca=_0x9265e3[_0x19e5d7(0x22b)][_0x19e5d7(0x22c)](_0x19e5d7(0x230)),_0x3e0f0c=_0x9265e3[_0x19e5d7(0x22b)][_0x19e5d7(0x22c)](_0x19e5d7(0x228));_0x9265e3[_0x19e5d7(0x1db)][_0x19e5d7(0x1ed)](_0x3ee5e5=>{const _0x540e5e=_0x19e5d7,_0x184b12=new Set();for(let _0x9687d3=0x0;_0x9687d3<_0x1569db[_0x540e5e(0x20b)];_0x9687d3++){const _0x4eb77f=_0x1569db[_0x9687d3];if(_0x4eb77f[_0x540e5e(0x20a)]=null,_0x4eb77f[_0x540e5e(0x205)]=!0x1,_0x4c7fca[_0x540e5e(0x20c)](_0x4eb77f)){const _0x1c0492=_0x25f471(_0x4eb77f[_0x540e5e(0x202)],_0x9265e3[_0x540e5e(0x1db)]),_0x2172dd=_0x540e5e(0x225)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x2172dd,_0x1c0492);}else switch(_0x4eb77f[_0x540e5e(0x1e2)]){case _0x540e5e(0x206):{if(_0x4eb77f[_0x540e5e(0x1f3)]==_0x4eb77f[_0x540e5e(0x1c9)])break;_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);const _0x5889b7=_0x540e5e(0x1e3),_0x5b28b2=_0x4eb77f[_0x540e5e(0x22a)],_0x31c506=_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x200)](_0x5b28b2,_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x208)](_0x5b28b2[_0x540e5e(0x237)],_0x540e5e(0x223))),_0x1af094=_0x540e5e(0x239)+_0x5889b7+':'+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x1af094,_0x31c506);break;}case _0x540e5e(0x1d6):case _0x540e5e(0x21e):case _0x540e5e(0x201):{if(_0x4eb77f[_0x540e5e(0x1e4)]==_0x4eb77f[_0x540e5e(0x203)])break;_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);const _0x725fb9=_0x4eb77f[_0x540e5e(0x1e7)];if(!_0x3e0f0c[_0x540e5e(0x207)](_0x725fb9))break;const _0x5ccbf4=_0x25f471(_0x4eb77f[_0x540e5e(0x23b)],_0x9265e3[_0x540e5e(0x1db)]),_0x4c61c5=_0x540e5e(0x239)+_0x725fb9+':'+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x4c61c5,_0x5ccbf4);break;}case _0x540e5e(0x214):{_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);if(_0x1569db[_0x9687d3+0x1]&&_0x540e5e(0x209)==_0x1569db[_0x9687d3+0x1][_0x540e5e(0x1e2)]){ro(_0x538ef0,_0x4eb77f);break;}const _0x42d151=_0x4eb77f[_0x540e5e(0x22a)],_0x4cad87=_0x4eb77f[_0x540e5e(0x1f9)],_0x1c15dd=_0x25f471(_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x200)](_0x42d151,_0x42d151[_0x540e5e(0x1cd)](_0x4cad87)),_0x9265e3[_0x540e5e(0x1db)]),_0x2a3a88=_0x540e5e(0x210)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x2a3a88,_0x1c15dd);break;}case _0x540e5e(0x1d5):{_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f);const _0x39b5e1=_0x4eb77f[_0x540e5e(0x1ff)],_0x4f7dc6=_0x4eb77f[_0x540e5e(0x1f5)],_0x13743a=_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x200)](_0x39b5e1,_0x4f7dc6),_0x809637=_0x540e5e(0x210)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0x809637,_0x13743a);break;}case _0x540e5e(0x209):{_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x4eb77f),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x4eb77f),_0x1569db[_0x9687d3-0x1]&&_0x540e5e(0x214)==_0x1569db[_0x9687d3-0x1][_0x540e5e(0x1e2)]&&ro(_0x538ef0,_0x4eb77f);const _0x2e1e19=_0x4eb77f[_0x540e5e(0x1f0)](),_0x549c4d=_0x4eb77f[_0x540e5e(0x1f9)];for(let _0x4f0550=0x0;_0x4f0550<_0x549c4d;_0x4f0550++){const _0x2036dc=_0x2e1e19[_0x540e5e(0x1cd)](_0x4f0550)[_0x540e5e(0x237)];_0x184b12[_0x540e5e(0x1e0)](_0x2036dc);}break;}case _0x540e5e(0x21f):{const _0x1d0746=_0x4eb77f[_0x540e5e(0x1e5)],_0x18f1cd=_0x4eb77f[_0x540e5e(0x1f9)],_0x3cbe02=new _0x3879dd(_0x1d0746,_0x18f1cd);_0x3ee5e5[_0x540e5e(0x1d7)][_0x540e5e(0x1ea)](_0x3cbe02),_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1d9)](_0x3cbe02);break;}}}for(const _0x6a818d of _0x184b12){const _0x49ffba=_0x9265e3[_0x540e5e(0x1db)][_0x540e5e(0x1cb)](_0x6a818d),_0xb5922f=_0x540e5e(0x20e)+_0x2dd1ff()+_0x540e5e(0x233);_0x538ef0[_0x540e5e(0x1d4)][_0x540e5e(0x22f)](_0xb5922f,_0x25f471(_0x49ffba,_0x9265e3[_0x540e5e(0x1db)]));}});}(_0x27fd38,_0x498aa9,_0xb7a44):_0xb7a44[_0x142192(0x1db)][_0x142192(0x1ed)](_0x1b1361=>{const _0x4395ba=_0x142192;for(const _0x16095c of _0x27fd38)if(_0x4395ba(0x21f)==_0x16095c[_0x4395ba(0x1e2)]){const _0x215df4=_0x16095c[_0x4395ba(0x1e5)],_0xcea1ba=_0x16095c[_0x4395ba(0x1f9)],_0x4af35e=new _0x3879dd(_0x215df4,_0xcea1ba);_0x1b1361[_0x4395ba(0x1d7)][_0x4395ba(0x1ea)](_0x4af35e),_0xb7a44[_0x4395ba(0x1db)][_0x4395ba(0x1d9)](_0x4af35e);}else{if(_0x4395ba(0x21c)==_0x16095c[_0x4395ba(0x1e2)]){const _0x131c3a=_0x16095c[_0x4395ba(0x21a)],_0x110bed=_0x16095c[_0x4395ba(0x202)];_0x498aa9[_0x4395ba(0x1d4)][_0x4395ba(0x22f)](_0x131c3a,_0x110bed);}else _0x16095c[_0x4395ba(0x20a)]=null,_0x16095c[_0x4395ba(0x205)]=!0x1,_0x1b1361[_0x4395ba(0x1d7)][_0x4395ba(0x1ea)](_0x16095c),_0xb7a44[_0x4395ba(0x1db)][_0x4395ba(0x1d9)](_0x16095c);}});if(_0x41ea74){const _0x352c0e=getMinimalSelection(_0xb7a44,_0x27fd38,_0x498aa9);expandSelectionWithContext(_0xb7a44[_0x142192(0x1db)],_0x352c0e),function(_0x59d55d,_0x2fc504){const _0x5d31a6=_0x142192,_0x1d4360=_0x2fc504[_0x5d31a6(0x211)]()[_0x5d31a6(0x1da)];let _0x55df61=_0x2fc504[_0x5d31a6(0x211)]()[_0x5d31a6(0x223)];const _0x981ec8=_0x1d4360[_0x5d31a6(0x21d)];(_0x55df61[_0x5d31a6(0x1df)]||_0x55df61[_0x5d31a6(0x237)]&&_0x55df61[_0x5d31a6(0x237)]['is'](_0x5d31a6(0x1f6)))&&(_0x4ffd4a(_0x55df61,_0x5d31a6(0x221)),_0x55df61=_0x55df61[_0x5d31a6(0x1cd)](0x3)),(_0x1d4360[_0x5d31a6(0x1df)]||_0x1d4360[_0x5d31a6(0x1d3)]&&_0x1d4360[_0x5d31a6(0x1d3)]['is'](_0x5d31a6(0x1f6)))&&(_0x4ffd4a(_0x1d4360,_0x5d31a6(0x221)),function(_0x44e401,_0x48083a,_0x4d0b5e){const _0x45f29b=_0x5d31a6;for(let [_0x133249,_0x210d10]of _0x44e401[_0x45f29b(0x1d4)]){const _0x38567b=_0x210d10[_0x45f29b(0x1d8)](_0x48083a,_0x4d0b5e,!0x1);_0x210d10=_0x38567b[0x0],_0x44e401[_0x45f29b(0x1d4)][_0x45f29b(0x22f)](_0x133249,_0x210d10);}}(_0x981ec8,_0x1d4360,0x3),_0x1d4360[_0x5d31a6(0x1fb)]==_0x55df61[_0x5d31a6(0x1fb)]&&(_0x55df61=_0x55df61[_0x5d31a6(0x1cd)](0x3)));const _0x58a770=_0x59d55d[_0x5d31a6(0x200)](_0x59d55d[_0x5d31a6(0x208)](_0x981ec8,0x0),_0x1d4360),_0x5c0909=_0x59d55d[_0x5d31a6(0x200)](_0x55df61,_0x59d55d[_0x5d31a6(0x208)](_0x981ec8,_0x5d31a6(0x223))),_0x4587d4=[..._0x58a770[_0x5d31a6(0x1fa)](),..._0x5c0909[_0x5d31a6(0x1fa)]()];_0x4587d4[_0x5d31a6(0x1f7)]();for(const _0xb28d80 of _0x4587d4)_0x417361(_0xb28d80),_transformMarkersByDeletion(_0x981ec8,_0xb28d80);}(_0xb7a44[_0x142192(0x1db)],_0x352c0e);}const _0x2d4987=_0xb7a44[_0x142192(0x212)][_0x142192(0x1eb)](_0x498aa9,{'showSuggestionHighlights':!0x0});return{'content':_0xb2cefc(_0x2d4987),'hasChanges':!0x0};}(_0x553a57,_0x5b9a46,_0x3773f5,_0x1eb1c9,_0x487411);return{'type':_0x3a1001[_0x2e18c2(0x213)][0x0][_0x2e18c2(0x1e2)],'index':_0x3a1001[_0x2e18c2(0x219)],'content':_0x599cc5,'hasChanges':_0x59d8d2};});}function ro(_0xd26346,_0x2eba98){const _0x4516aa=_0x1de3;for(const [_0x29012a,_0x942fae]of _0xd26346[_0x4516aa(0x1d4)]){const _0x3c5328=_0x38f4aa[_0x4516aa(0x1c7)](_0x942fae[_0x4516aa(0x21b)](_0x2eba98));_0xd26346[_0x4516aa(0x1d4)][_0x4516aa(0x22f)](_0x29012a,_0x3c5328);}}export function getMinimalSelection(_0x410832,_0x26e34d,_0x52ff54){const _0x31cd1a=_0x1de3,_0x5cfc4a=_0x410832[_0x31cd1a(0x22b)][_0x31cd1a(0x22c)](_0x31cd1a(0x230));let _0x52caf5=_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x208)](_0x52ff54,Number[_0x31cd1a(0x1ef)]),_0x279e6c=_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x208)](_0x52ff54,0x0);for(const _0x590104 of _0x26e34d){let _0x2c8f40,_0x263ff0;if(_0x5cfc4a[_0x31cd1a(0x20c)](_0x590104))_0x2c8f40=_0x590104[_0x31cd1a(0x202)][_0x31cd1a(0x1da)],_0x263ff0=_0x590104[_0x31cd1a(0x202)][_0x31cd1a(0x223)];else switch(_0x52caf5=_0x52caf5[_0x31cd1a(0x21b)](_0x590104),_0x279e6c=_0x279e6c[_0x31cd1a(0x21b)](_0x590104),_0x590104[_0x31cd1a(0x1e2)]){case _0x31cd1a(0x206):_0x2c8f40=_0x590104[_0x31cd1a(0x22a)],_0x263ff0=_0x2c8f40[_0x31cd1a(0x1cd)](0x1);break;case _0x31cd1a(0x1d6):case _0x31cd1a(0x21e):case _0x31cd1a(0x201):_0x2c8f40=_0x590104[_0x31cd1a(0x23b)][_0x31cd1a(0x1da)],_0x263ff0=_0x590104[_0x31cd1a(0x23b)][_0x31cd1a(0x223)];break;case _0x31cd1a(0x214):_0x2c8f40=_0x590104[_0x31cd1a(0x22a)],_0x263ff0=_0x2c8f40[_0x31cd1a(0x1cd)](_0x590104[_0x31cd1a(0x1f9)]);break;case _0x31cd1a(0x1d5):_0x2c8f40=_0x590104[_0x31cd1a(0x1ff)],_0x263ff0=_0x590104[_0x31cd1a(0x1f5)];break;case _0x31cd1a(0x231):{const _0x45e672=_0x590104[_0x31cd1a(0x218)][_0x31cd1a(0x1d2)][_0x31cd1a(0x1de)](0x0,-0x1);_0x2c8f40=_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x1e1)](_0x52ff54,_0x45e672),_0x263ff0=_0x2c8f40[_0x31cd1a(0x1cd)](0x1);break;}case _0x31cd1a(0x21f):{const _0x8bded3=_0x590104[_0x31cd1a(0x1f9)],_0x6943dd=_0x590104[_0x31cd1a(0x1e5)][_0x31cd1a(0x1d8)](_0x590104[_0x31cd1a(0x218)],_0x8bded3),_0x375969=_0x590104[_0x31cd1a(0x1f0)]();_0x31cd1a(0x21f)==_0x590104[_0x31cd1a(0x1e2)]?(_0x2c8f40=_0x6943dd,_0x263ff0=_0x6943dd):(_0x2c8f40=_0x375969,_0x263ff0=_0x375969[_0x31cd1a(0x1cd)](_0x8bded3));break;}}_0x2c8f40&&_0x2c8f40[_0x31cd1a(0x224)](_0x52caf5)&&(_0x52caf5=_0x2c8f40[_0x31cd1a(0x22d)](),_0x52caf5[_0x31cd1a(0x1cf)]=_0x31cd1a(0x1fc)),_0x263ff0&&_0x263ff0[_0x31cd1a(0x1fe)](_0x279e6c)&&(_0x279e6c=_0x263ff0[_0x31cd1a(0x22d)](),_0x279e6c[_0x31cd1a(0x1cf)]=_0x31cd1a(0x1fc));}return _0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x1fd)](_0x410832[_0x31cd1a(0x1db)][_0x31cd1a(0x200)](_0x52caf5,_0x279e6c));}function _0x46a2(){const _0x48bf04=['removed','getShiftedBy','children','stickiness','data-id','node','path','nodeBefore','markers','split','addAttribute','batch','_getTransformedByInsertion','applyOperation','start','model','cloneNode','288636wzKyEr','slice','textNode','add','createPositionFromPath','type','$elementName','oldValue','sourcePosition','16977uFARIq','key','3577xzgtSP','isBlock','addOperation','stringify','28665923guivpX','change','18kWMmnf','POSITIVE_INFINITY','getMovedRangeStart','backward','element','oldName','_getTransformedByDeletion','moveTargetPosition','$text','reverse','new','howMany','getMinimalFlatRanges','parent','toNone','createSelection','isAfter','splitPosition','createRange','changeAttribute','newRange','newValue','offset','isDocumentOperation','rename','isRegisteredAttribute','createPositionAt','move','baseVersion','length','isMarkedRemoveOperation','1525555kdKXYl','suggestion:formatBlock:$fakeWrap:','push','suggestion:insertion:','getFirstRange','data','changes','insert','isObject','schema','setTo','targetPosition','index','name','getTransformedByOperation','marker','root','removeAttribute','remove','10xzcUbs','...','getOperations','end','isBefore','suggestion:deletion:','908txxivr','1068771IOFGNI','SuggestionsConversion','1688MlXBgP','position','plugins','get','clone','map','set','DocumentCompare','merge','getDiff',':$aiSuggestion','2510721wRLSRH','forward','word','nodeAfter','$root','suggestion:attribute:','delete','range','focus','_createFromRanges','modifySelection','newName','parse','createRangeOn'];_0x46a2=function(){return _0x48bf04;};return _0x46a2();}export function expandSelectionWithContext(_0x4bf17f,_0x4d7710){const _0x4af124=_0x1de3;so(_0x4bf17f,_0x4d7710,_0x4af124(0x235));const _0x56758b=_0x4d7710[_0x4af124(0x211)]();_0x4d7710[_0x4af124(0x217)]([]),_0x4d7710[_0x4af124(0x217)](_0x56758b,{'backward':!0x0}),so(_0x4bf17f,_0x4d7710,_0x4af124(0x1f1));}function _0x1de3(_0x127dab,_0x35c602){const _0x46a2b3=_0x46a2();return _0x1de3=function(_0x1de3f9,_0x5076bd){_0x1de3f9=_0x1de3f9-0x1c6;let _0x3378c9=_0x46a2b3[_0x1de3f9];return _0x3378c9;},_0x1de3(_0x127dab,_0x35c602);}function so(_0x24ccc3,_0x1b93c8,_0x53075c){const _0x375b88=_0x1de3;let _0x31cf52=0x14;for(;_0x31cf52;){_0x24ccc3[_0x375b88(0x1c8)](_0x1b93c8,{'unit':_0x375b88(0x236),'direction':_0x53075c}),_0x31cf52--;const _0x5025ff=_0x1b93c8[_0x375b88(0x1c6)][_0x375b88(0x235)==_0x53075c?_0x375b88(0x1d3):_0x375b88(0x237)];if(_0x5025ff&&_0x5025ff['is'](_0x375b88(0x1f2))&&_0x24ccc3[_0x375b88(0x216)][_0x375b88(0x1e9)](_0x5025ff)&&_0x24ccc3[_0x375b88(0x216)][_0x375b88(0x215)](_0x5025ff))break;}}export function _transformMarkersByDeletion(_0x43f827,_0x173425){const _0x36438e=_0x1de3;for(const [_0x52f1c3,_0x4ba1d4]of _0x43f827[_0x36438e(0x1d4)]){const _0x1bfec5=_0x4ba1d4[_0x36438e(0x1f4)](_0x173425[_0x36438e(0x1da)],_0x173425[_0x36438e(0x223)][_0x36438e(0x204)]-_0x173425[_0x36438e(0x1da)][_0x36438e(0x204)]);null!=_0x1bfec5?_0x43f827[_0x36438e(0x1d4)][_0x36438e(0x22f)](_0x52f1c3,_0x1bfec5):_0x43f827[_0x36438e(0x1d4)][_0x36438e(0x23a)](_0x52f1c3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1de6f3,_0x4e5ec4){const _0x11fd9c=_0x1584,_0x425f75=_0x1de6f3();while(!![]){try{const _0x66d068=parseInt(_0x11fd9c(0x99))/0x1+-parseInt(_0x11fd9c(0x8b))/0x2+-parseInt(_0x11fd9c(0x97))/0x3*(parseInt(_0x11fd9c(0x8e))/0x4)+parseInt(_0x11fd9c(0x8f))/0x5+-parseInt(_0x11fd9c(0x9b))/0x6*(-parseInt(_0x11fd9c(0x8a))/0x7)+-parseInt(_0x11fd9c(0x93))/0x8+parseInt(_0x11fd9c(0x96))/0x9;if(_0x66d068===_0x4e5ec4)break;else _0x425f75['push'](_0x425f75['shift']());}catch(_0x5eccc8){_0x425f75['push'](_0x425f75['shift']());}}}(_0x36cd,0xdaf0f));import{parseDocument as _0x54e7b1}from'htmlparser2';import{append as _0x427765,appendChild as _0x1dcdfa,find as _0x1b781d,findAll as _0x2080ad,findOne as _0x40d471,getChildren as _0x572ded,isComment as _0x41c65e,isTag as _0x5f0149,prepend as _0x530977,prependChild as _0x2b2ef4,removeElement as _0xcc3068,replaceElement as _0x4c2af0,textContent as _0x1578f8,getParent as _0x4a85a8,hasChildren as _0x4298e2}from'domutils';import _0xb37256 from'dom-serializer';import{cloneNode as _0x2e4c98,isDocument as _0xbcc221,isText as _0x2da110,Element as _0x3a04ee,Text as _0x213fe5,Document as _0xafc938,NodeWithChildren as _0x19fe56}from'domhandler';export{_0x2e4c98 as cloneNode,_0x1b781d as find,_0x40d471 as findOne,_0x2080ad as findAll,_0x572ded as getChildren,_0x4a85a8 as getParent,_0x41c65e as isComment,_0xbcc221 as isDocument,_0x5f0149 as isTag,_0x2da110 as isText,_0x427765 as append,_0x1dcdfa as appendChild,_0x530977 as prepend,_0x2b2ef4 as prependChild,_0xb37256 as render,_0xcc3068 as removeElement,_0x4c2af0 as replaceElement,_0x1578f8 as textContent,_0x4298e2 as hasChildren,_0x3a04ee as Element,_0xafc938 as Document,_0x19fe56 as NodeWithChildren,_0x213fe5 as Text};export function parse(_0x192bcc){return _0x54e7b1(_0x192bcc);}export function serialize(_0x14ae41){return _0xb37256(_0x14ae41);}export function findByAttribute(_0x4c7c8c,_0x301d2f,_0x38c341){const _0x2d78dc=_0x1584,_0x4ca9ff=null!==_0x301d2f?_0x11d68d=>_0x11d68d[_0x2d78dc(0x89)][_0x4c7c8c]===_0x301d2f:_0x149f9a=>Boolean(_0x149f9a[_0x2d78dc(0x89)][_0x4c7c8c]);return _0x40d471(_0xb6bad2=>_0x5f0149(_0xb6bad2)&&_0x4ca9ff(_0xb6bad2),_0x38c341);}export function findAllByAttribute(_0x2b6508,_0x53c6ad,_0x474f11){const _0x59d4e5=_0x1584,_0x5ea2ee=null!==_0x53c6ad?_0x1733bc=>_0x1733bc[_0x59d4e5(0x89)][_0x2b6508]===_0x53c6ad:_0x29a9d8=>Boolean(_0x29a9d8[_0x59d4e5(0x89)][_0x2b6508]);return _0x2080ad(_0x3b39eb=>_0x5f0149(_0x3b39eb)&&_0x5ea2ee(_0x3b39eb),_0x474f11);}export function findAllComments(_0x1d1f5e){return _0x1b781d(_0x5e4e3d=>_0x41c65e(_0x5e4e3d),_0x1d1f5e,!0x0,0x1/0x0);}export function getAttribute(_0x475b06,_0xa88c8e){const _0x183418=_0x1584;return _0x475b06&&_0x5f0149(_0x475b06)?_0x475b06[_0x183418(0x89)][_0xa88c8e]:null;}export function setAttribute(_0x14bc7b,_0x76f61e,_0x2b9241){const _0xddec0d=_0x1584;_0x5f0149(_0x14bc7b)&&(null===_0x2b9241?delete _0x14bc7b[_0xddec0d(0x89)][_0x76f61e]:_0x14bc7b[_0xddec0d(0x89)][_0x76f61e]=_0x2b9241);}export function insertElement(_0x27888b,_0x536265,_0x3dcf05){const _0x1e54ec=_0x1584,_0x2584e1=_0x536265[_0x1e54ec(0x88)](!0x0);_0x1e54ec(0x91)===_0x3dcf05?_0x530977(_0x27888b,_0x2584e1):_0x1e54ec(0x86)===_0x3dcf05?_0x2b2ef4(_0x27888b,_0x2584e1):_0x1e54ec(0x9a)===_0x3dcf05?_0x1dcdfa(_0x27888b,_0x2584e1):_0x1e54ec(0x92)===_0x3dcf05&&_0x427765(_0x27888b,_0x2584e1);}function _0x1584(_0x324a42,_0x1c4941){const _0x36cd03=_0x36cd();return _0x1584=function(_0x1584c7,_0x2c3955){_0x1584c7=_0x1584c7-0x86;let _0xd2778b=_0x36cd03[_0x1584c7];return _0xd2778b;},_0x1584(_0x324a42,_0x1c4941);}export function moveElement(_0x12c352,_0x9669cf){_0xcc3068(_0x12c352),_0x4c2af0(_0x9669cf,_0x12c352);}export function clone(_0x57f2a4){const _0x1c866d=_0x1584;return _0x57f2a4[_0x1c866d(0x88)](!0x0);}export function getParents(_0x586729){const _0x1cfdae=_0x1584,_0x5811fc=[];let _0x245444=_0x586729;for(;_0x245444;)_0x245444=_0x4a85a8(_0x245444),_0x245444&&_0x5811fc[_0x1cfdae(0x90)](_0x245444);return _0x5811fc;}export function normalizeHTML(_0x9ff2d1){const _0x5f0097=_0x1584;return _0x9ff2d1[_0x5f0097(0x8d)](/^\s+/gm,'')[_0x5f0097(0x8d)](/\s+$/gm,'')[_0x5f0097(0x8d)](/\n*/g,'')[_0x5f0097(0x8d)](/\s+/g,'\x20')[_0x5f0097(0x8d)](/>\s*</g,'><');}export function areNodesSame(_0x2d7dad,_0x2f02d5){return normalizeHTML(serialize(_0x2d7dad))===normalizeHTML(serialize(_0x2f02d5));}export function getNodeNestingLevel(_0x384ec6){const _0x57bfdd=_0x1584;let _0x4a7a47=0x0;for(;_0x384ec6[_0x57bfdd(0x98)];)_0x384ec6=_0x384ec6[_0x57bfdd(0x98)],_0x4a7a47++;return _0x4a7a47;}export function removeElementsAfter(_0x1931f9){const _0x2c8799=_0x1584,_0x5edada=[];let _0x483e32=_0x1931f9[_0x2c8799(0x9d)];for(;_0x483e32;)_0x5edada[_0x2c8799(0x90)](_0x483e32),_0x483e32=_0x483e32[_0x2c8799(0x9d)];_0x5edada[_0x2c8799(0x95)](_0x49ed8a=>{_0xcc3068(_0x49ed8a);});}function _0x36cd(){const _0x4a078c=['3273320vNRYEG','reverse','replace','116IjLOCa','3493615AYcqul','push','beforebegin','afterend','6304904SBCoVd','indexOf','forEach','12083121cKSCXp','123021YapGWX','parentNode','1246470lopUnD','beforeend','6bPyckN','map','nextSibling','afterbegin','slice','cloneNode','attribs','8560979rSPqDM'];_0x36cd=function(){return _0x4a078c;};return _0x36cd();}export function getNodePath(_0x3d40a3){const _0x461f67=_0x1584;return[_0x3d40a3,...getParents(_0x3d40a3)][_0x461f67(0x87)](0x0,-0x1)[_0x461f67(0x9c)](_0x4cf945=>{const _0x50f60f=_0x461f67,_0x21828f=_0x4a85a8(_0x4cf945);return _0x572ded(_0x21828f)[_0x50f60f(0x94)](_0x4cf945);})[_0x461f67(0x8c)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x176ba4=_0x4e59;(function(_0x3d0ecf,_0x5b5266){const _0x34317b=_0x4e59,_0x3fa154=_0x3d0ecf();while(!![]){try{const _0x306e84=parseInt(_0x34317b(0x1f3))/0x1*(parseInt(_0x34317b(0x1bb))/0x2)+-parseInt(_0x34317b(0x1cf))/0x3*(parseInt(_0x34317b(0x1d4))/0x4)+parseInt(_0x34317b(0x1db))/0x5+parseInt(_0x34317b(0x1cb))/0x6+parseInt(_0x34317b(0x1f4))/0x7+parseInt(_0x34317b(0x1ba))/0x8+-parseInt(_0x34317b(0x1be))/0x9;if(_0x306e84===_0x5b5266)break;else _0x3fa154['push'](_0x3fa154['shift']());}catch(_0x54bfdc){_0x3fa154['push'](_0x3fa154['shift']());}}}(_0x1ab6,0x3a59a));import _0x506c57 from'morphdom';import{NodeWithChildren as _0x2bffe1,Text as _0x31f7a0,Element as _0x2667db,isText as _0x4920c9,isDocument as _0x1fb635,isTag as _0xd9b535,cloneNode as _0x2d62ed,getChildren as _0x3b08f1,prepend as _0x368b28,removeElement as _0x4734ef,textContent as _0x3561a5,render as _0x36e78f}from'./htmlparser.js';import{logWarning as _0x18c8f0}from'ckeditor5/src/utils.js';export class HTMLStreamer{[_0x176ba4(0x1c3)];[_0x176ba4(0x1d9)]=!0x1;[_0x176ba4(0x1df)]=null;[_0x176ba4(0x1ee)]=[];[_0x176ba4(0x1e7)]=0x0;[_0x176ba4(0x1da)]=null;constructor(_0x5ca913){const _0x3f9214=_0x176ba4;this[_0x3f9214(0x1c3)]={'delay':_0x5ca913[_0x3f9214(0x1de)]??0x14,'textNodeStyle':_0x5ca913[_0x3f9214(0x1ce)],'onStreamUpdate':_0x5ca913[_0x3f9214(0x1cd)]||(()=>{})};}async[_0x176ba4(0x1ea)]({document:_0x483d99,targetElement:_0x1709b8,abortSignal:_0x395bf0}){const _0xada2ce=_0x176ba4;this[_0xada2ce(0x1d9)]&&this[_0xada2ce(0x1d2)](),_0x395bf0?.[_0xada2ce(0x1e9)](_0xada2ce(0x1d0),this[_0xada2ce(0x1d2)][_0xada2ce(0x1c4)](this)),this[_0xada2ce(0x1df)]=_0x2d62ed(_0x483d99,!0x0),this[_0xada2ce(0x1ee)]=this[_0xada2ce(0x1e5)](),this[_0xada2ce(0x1d9)]=!0x0,this[_0xada2ce(0x1e7)]>this[_0xada2ce(0x1ee)][_0xada2ce(0x1ed)]&&(_0x18c8f0(_0xada2ce(0x1c0),{'currentIndex':this[_0xada2ce(0x1e7)],'nodeList':this[_0xada2ce(0x1ee)]}),this[_0xada2ce(0x1e7)]=this[_0xada2ce(0x1ee)][_0xada2ce(0x1ed)]);for(let _0x39c12c=0x0;_0x39c12c<this[_0xada2ce(0x1e7)];_0x39c12c++)this[_0xada2ce(0x1ee)][_0x39c12c][_0xada2ce(0x1f5)]=!0x0;let _0x384e26=0x0;for(let _0x479d11=this[_0xada2ce(0x1e7)];_0x479d11<this[_0xada2ce(0x1ee)][_0xada2ce(0x1ed)];_0x479d11++){const _0x237f93=Date[_0xada2ce(0x1f0)](),_0xd13b65=this[_0xada2ce(0x1ee)][_0x479d11],_0x115270=_0x237f93-_0x384e26;_0xd13b65[_0xada2ce(0x1f5)]=!0x0;let _0x2e923b=_0xd13b65[_0xada2ce(0x1dc)];for(;_0x2e923b;)_0x2e923b[_0xada2ce(0x1f5)]=!0x0,_0x2e923b=_0x2e923b[_0xada2ce(0x1dc)];if(_0x115270<this[_0xada2ce(0x1c3)][_0xada2ce(0x1de)])try{const {promise:_0x59529a,abortController:_0x57a267}=pr(this[_0xada2ce(0x1c3)][_0xada2ce(0x1de)]-_0x115270);this[_0xada2ce(0x1da)]=_0x57a267,await _0x59529a;}catch(_0x270983){return;}_0x506c57(_0x1709b8,'<'+_0x1709b8[_0xada2ce(0x1bc)]+'>'+this[_0xada2ce(0x1c5)](this[_0xada2ce(0x1df)])+'</'+_0x1709b8[_0xada2ce(0x1bc)]+'>',{'childrenOnly':!0x0}),this[_0xada2ce(0x1c3)][_0xada2ce(0x1cd)]&&this[_0xada2ce(0x1c3)][_0xada2ce(0x1cd)](),this[_0xada2ce(0x1e7)]=_0x479d11,_0x384e26=Date[_0xada2ce(0x1f0)]();}this[_0xada2ce(0x1d9)]=!0x1;}[_0x176ba4(0x1c2)]({targetElement:_0xd818ae}){const _0x445ca6=_0x176ba4;Array[_0x445ca6(0x1ec)](_0xd818ae[_0x445ca6(0x1c1)](_0x445ca6(0x1d8)))[_0x445ca6(0x1f2)]()[_0x445ca6(0x1e0)](_0x3edd68=>{const _0x47f593=_0x445ca6;_0x3edd68[_0x47f593(0x1bf)](_0x3edd68[_0x47f593(0x1e3)][0x0]);});}[_0x176ba4(0x1d2)](){const _0x222147=_0x176ba4;this[_0x222147(0x1d9)]=!0x1,this[_0x222147(0x1da)]&&(this[_0x222147(0x1da)][_0x222147(0x1d0)](),this[_0x222147(0x1da)]=null);}[_0x176ba4(0x1c5)](_0x4aa9b2){const _0x1a8887=_0x176ba4;let _0x2416e6='';if(function(_0x13540e){return _0x1fb635(_0x13540e);}(_0x4aa9b2)){for(const _0x2fb8d9 of _0x4aa9b2[_0x1a8887(0x1d3)])_0x2416e6+=this[_0x1a8887(0x1c5)](_0x2fb8d9);}else{if(dr(_0x4aa9b2)){if(!_0x4aa9b2[_0x1a8887(0x1f5)])return'';const _0x50399f=_0x4aa9b2,_0x2e23c9=Object[_0x1a8887(0x1e6)](_0x50399f[_0x1a8887(0x1c6)])[_0x1a8887(0x1e1)](([_0x2bc5c4,_0x5b06d6])=>_0x2bc5c4+'=\x22'+_0x5b06d6+'\x22')[_0x1a8887(0x1f1)]('\x20');_0x2416e6+='<'+_0x50399f[_0x1a8887(0x1bc)]+(_0x2e23c9?'\x20'+_0x2e23c9:'')+'>';for(const _0xb64724 of _0x3b08f1(_0x50399f))_0x2416e6+=this[_0x1a8887(0x1c5)](_0xb64724);_0x2416e6+='</'+_0x50399f[_0x1a8887(0x1bc)]+'>';}else{if(!ar(_0x4aa9b2))return'';if(!_0x4aa9b2[_0x1a8887(0x1f5)])return'';!function(_0x4aafc5){const _0xe7e011=_0x1a8887;if(!_0x4aafc5[_0xe7e011(0x1dc)]||!dr(_0x4aafc5[_0xe7e011(0x1dc)]))return!0x1;if(!cr[_0xe7e011(0x1e4)](_0x4aafc5[_0xe7e011(0x1dc)][_0xe7e011(0x1bc)]))return!0x1;return!_0x3561a5(_0x4aafc5)[_0xe7e011(0x1cc)](/^\s*[<>]\s*$/);}(_0x4aa9b2)?_0x2416e6+=_0x36e78f(_0x4aa9b2):_0x2416e6+=_0x36e78f(new _0x2667db(_0x1a8887(0x1eb),{'data-ck-html-streamer-word-chunk':'','style':this[_0x1a8887(0x1c3)][_0x1a8887(0x1ce)]},[_0x4aa9b2]));}}return _0x2416e6;}[_0x176ba4(0x1e5)](){const _0x208c37=_0x176ba4,_0x2baef8=[];return function(_0x1d6659,_0x573299){const _0x3175f9=_0x4e59,_0x39627d=_0x1a535f=>{const _0x44f08a=_0x4e59;if(_0x573299(_0x1a535f),_0x1a535f instanceof _0x2bffe1)for(let _0x4ac9df=0x0;_0x4ac9df<_0x1a535f[_0x44f08a(0x1d3)][_0x44f08a(0x1ed)];_0x4ac9df++){const _0x1a60db=_0x1a535f[_0x44f08a(0x1d3)][_0x4ac9df];_0x39627d(_0x1a60db);}};for(let _0x553bc7=0x0;_0x553bc7<_0x1d6659[_0x3175f9(0x1d3)][_0x3175f9(0x1ed)];_0x553bc7++)_0x39627d(_0x1d6659[_0x3175f9(0x1d3)][_0x553bc7]);}(this[_0x208c37(0x1df)],_0x1cf22f=>{const _0x45c5bc=_0x208c37;if(ar(_0x1cf22f)){const _0x22278a=this[_0x45c5bc(0x1ca)](_0x1cf22f);_0x22278a[_0x45c5bc(0x1ed)]&&_0x2baef8[_0x45c5bc(0x1d7)](..._0x22278a);}_0x1cf22f[_0x45c5bc(0x1dd)]||_0x1cf22f[_0x45c5bc(0x1e2)]||_0x2baef8[_0x45c5bc(0x1d7)](_0x1cf22f);}),_0x2baef8;}[_0x176ba4(0x1ca)](_0x3a13e5){const _0x17cd60=_0x176ba4;if(_0x3a13e5[_0x17cd60(0x1dd)]||_0x3a13e5[_0x17cd60(0x1e2)])return[];const _0x2227c7=_0x3561a5(_0x3a13e5)[_0x17cd60(0x1cc)](/(?:\s*\S+\s*)/g),_0x3786dd=[];if(_0x2227c7&&_0x2227c7[_0x17cd60(0x1ed)]>0x1){for(const _0x59f2a1 of _0x2227c7){const _0x3895d7=new _0x31f7a0(_0x59f2a1);_0x3895d7[_0x17cd60(0x1e2)]=!0x0,_0x368b28(_0x3a13e5,_0x3895d7),_0x3786dd[_0x17cd60(0x1d7)](_0x3895d7);}_0x3a13e5[_0x17cd60(0x1dd)]=!0x0,_0x4734ef(_0x3a13e5);}return _0x3786dd;}}const cr=['p','li','td','th',_0x176ba4(0x1eb),'h1','h2','h3','h4','h5','h6','b',_0x176ba4(0x1c9),'i','em',_0x176ba4(0x1c8),_0x176ba4(0x1bd),_0x176ba4(0x1e8),_0x176ba4(0x1c7),_0x176ba4(0x1ef),'a',_0x176ba4(0x1d6),_0x176ba4(0x1d1)];function ar(_0x2a09ab){return _0x4920c9(_0x2a09ab);}function dr(_0x58b3e6){return _0xd9b535(_0x58b3e6);}function pr(_0x397ea8){const _0x4da7f8=new AbortController();return{'promise':new Promise((_0x391573,_0x274bb8)=>{const _0x4d2938=_0x4e59,_0x3c6dec=setTimeout(_0x391573,_0x397ea8);_0x4da7f8[_0x4d2938(0x1d5)][_0x4d2938(0x1e9)](_0x4d2938(0x1d0),()=>{clearTimeout(_0x3c6dec),_0x274bb8();});}),'abortController':_0x4da7f8};}function _0x4e59(_0x498235,_0x13c49a){const _0x1ab620=_0x1ab6();return _0x4e59=function(_0x4e592e,_0xa7be30){_0x4e592e=_0x4e592e-0x1ba;let _0x384c51=_0x1ab620[_0x4e592e];return _0x384c51;},_0x4e59(_0x498235,_0x13c49a);}function _0x1ab6(){const _0x2a69bc=['1067297FwEHTe','shouldBeStreamed','452760nwOPQN','1796ErifHZ','tagName','del','6023646KKVQcj','replaceWith','ai-html-streamer-current-index-out-of-bounds','querySelectorAll','cleanUpAnimations','options','bind','renderNode','attribs','sup','mark','strong','splitTextNodeIntoWordNodes','2764230JDLRgU','match','onStreamUpdate','textNodeStyle','1148442CdSNjg','abort','div','stop','children','4HYECfw','signal','code','push','span[data-ck-html-streamer-word-chunk]','isStreaming','timeoutAbortController','2311965GdZNeY','parent','isWordSplitSource','delay','document','forEach','map','isWordSplitResult','childNodes','includes','getParsedDocumentNodeList','entries','currentIndex','ins','addEventListener','stream','span','from','length','nodesList','sub','now','join','reverse','177pZcIgC'];_0x1ab6=function(){return _0x2a69bc;};return _0x1ab6();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x35f7(_0x10d2bd,_0x222ca){const _0x29cad6=_0x29ca();return _0x35f7=function(_0x35f72d,_0x59d865){_0x35f72d=_0x35f72d-0x15e;let _0x398e51=_0x29cad6[_0x35f72d];return _0x398e51;},_0x35f7(_0x10d2bd,_0x222ca);}const _0x5721bd=_0x35f7;(function(_0x28f49b,_0x59a60e){const _0x3f1987=_0x35f7,_0x2ea9db=_0x28f49b();while(!![]){try{const _0xf3e80a=-parseInt(_0x3f1987(0x161))/0x1+-parseInt(_0x3f1987(0x167))/0x2*(-parseInt(_0x3f1987(0x15e))/0x3)+-parseInt(_0x3f1987(0x180))/0x4+-parseInt(_0x3f1987(0x16d))/0x5+-parseInt(_0x3f1987(0x173))/0x6+-parseInt(_0x3f1987(0x17d))/0x7+parseInt(_0x3f1987(0x185))/0x8;if(_0xf3e80a===_0x59a60e)break;else _0x2ea9db['push'](_0x2ea9db['shift']());}catch(_0x2cce91){_0x2ea9db['push'](_0x2ea9db['shift']());}}}(_0x29ca,0x353fd));const Fs=[_0x5721bd(0x16c),_0x5721bd(0x15f),_0x5721bd(0x174),_0x5721bd(0x163)],Us=[_0x5721bd(0x176),_0x5721bd(0x183),_0x5721bd(0x172),_0x5721bd(0x17a),_0x5721bd(0x17b),_0x5721bd(0x169),'\x20'];function _0x29ca(){const _0x2b7c39=['auto','85105sRpnpd','includes','keydown','deltaY','destroy','stop','168098rhQKhU','scrollHeight','End','_stop','_onUserEvent','wheel','180800ozgvtm','signal','bind','key','start','PageUp','75354veqNHv','pointerdown','addEventListener','ArrowUp','_rafUpdate','element','type','PageDown','Home','abortController','254632WSHLJs','animationFrameId','scrollTo','1179128FocqOx','_isAtBottom','isRunning','ArrowDown','abort','2102768TrlSkX','isUserPaused','15lkoSXD','touchstart'];_0x29ca=function(){return _0x2b7c39;};return _0x29ca();}export class ScrollManager{[_0x5721bd(0x178)];[_0x5721bd(0x17e)];[_0x5721bd(0x182)];[_0x5721bd(0x17c)];[_0x5721bd(0x186)];constructor(_0x86b252){const _0x39969b=_0x5721bd;this[_0x39969b(0x178)]=_0x86b252,this[_0x39969b(0x17e)]=null,this[_0x39969b(0x182)]=!0x1,this[_0x39969b(0x17c)]=new AbortController(),this[_0x39969b(0x186)]=!0x1;for(const _0x290123 of Fs){const _0x3dc054=_0x39969b(0x163)!==_0x290123;this[_0x39969b(0x178)][_0x39969b(0x175)](_0x290123,this[_0x39969b(0x16b)][_0x39969b(0x16f)](this),{'passive':_0x3dc054,'signal':this[_0x39969b(0x17c)][_0x39969b(0x16e)]});}}[_0x5721bd(0x171)](){const _0x394bbe=_0x5721bd;this[_0x394bbe(0x182)]||(this[_0x394bbe(0x182)]=!0x0,this[_0x394bbe(0x186)]=!0x1,this[_0x394bbe(0x17e)]=requestAnimationFrame(this[_0x394bbe(0x177)][_0x394bbe(0x16f)](this)));}[_0x5721bd(0x166)](){requestAnimationFrame(()=>{const _0x406eb2=_0x35f7;this[_0x406eb2(0x16a)]();});}[_0x5721bd(0x165)](){const _0x5e7f13=_0x5721bd;this[_0x5e7f13(0x16a)](),this[_0x5e7f13(0x17c)][_0x5e7f13(0x184)]();}[_0x5721bd(0x16a)](){const _0x33b59c=_0x5721bd;null!==this[_0x33b59c(0x17e)]&&(cancelAnimationFrame(this[_0x33b59c(0x17e)]),this[_0x33b59c(0x17e)]=null),this[_0x33b59c(0x182)]&&(this[_0x33b59c(0x182)]=!0x1),this[_0x33b59c(0x186)]=!0x1;}[_0x5721bd(0x16b)](_0x52aedc){const _0x291525=_0x5721bd;if(this[_0x291525(0x182)]){if(_0x291525(0x163)===_0x52aedc[_0x291525(0x179)]){const _0x1ad674=_0x52aedc[_0x291525(0x170)];if(!Us[_0x291525(0x162)](_0x1ad674))return;}_0x52aedc instanceof WheelEvent?_0x52aedc[_0x291525(0x164)]<0x0?this[_0x291525(0x186)]=!0x0:this[_0x291525(0x186)]=!this[_0x291525(0x181)]():this[_0x291525(0x186)]=!0x0;}}[_0x5721bd(0x181)](){const _0x57518d=_0x5721bd,{scrollTop:_0x260266,scrollHeight:_0x2d9028,clientHeight:_0x409fe7}=this[_0x57518d(0x178)];return _0x2d9028-_0x260266-_0x409fe7<=0x5;}[_0x5721bd(0x177)](){const _0xd7456=_0x5721bd;this[_0xd7456(0x182)]&&(this[_0xd7456(0x186)]||this[_0xd7456(0x178)][_0xd7456(0x17f)]({'top':this[_0xd7456(0x178)][_0xd7456(0x168)],'behavior':_0xd7456(0x160)}),this[_0xd7456(0x17e)]=requestAnimationFrame(this[_0xd7456(0x177)][_0xd7456(0x16f)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x359380=_0x2e9e;(function(_0x52dee4,_0x5df7d1){var _0x350a21=_0x2e9e,_0x49c207=_0x52dee4();while(!![]){try{var _0x297226=parseInt(_0x350a21(0x1d2))/0x1+parseInt(_0x350a21(0x1d0))/0x2+parseInt(_0x350a21(0x1d7))/0x3+parseInt(_0x350a21(0x1d6))/0x4*(parseInt(_0x350a21(0x1d4))/0x5)+-parseInt(_0x350a21(0x1d3))/0x6*(parseInt(_0x350a21(0x1d1))/0x7)+parseInt(_0x350a21(0x1cd))/0x8+-parseInt(_0x350a21(0x1cf))/0x9;if(_0x297226===_0x5df7d1)break;else _0x49c207['push'](_0x49c207['shift']());}catch(_0x63e9dd){_0x49c207['push'](_0x49c207['shift']());}}}(_0x3fbe,0xd7a3a));function _0x2e9e(_0x4f4ed8,_0x371839){var _0x3fbe93=_0x3fbe();return _0x2e9e=function(_0x2e9eec,_0x303459){_0x2e9eec=_0x2e9eec-0x1cc;var _0x250059=_0x3fbe93[_0x2e9eec];return _0x250059;},_0x2e9e(_0x4f4ed8,_0x371839);}import{Plugin as _0x37c1ec}from'ckeditor5/src/core.js';import{AIToggleButtonUI as _0x13006b}from'./aitogglebutton/aitogglebuttonui.js';import{SuggestionsConversion as _0x83cabc}from'@ckeditor/ckeditor5-collaboration-core';function _0x3fbe(){var _0x4e5ac1=['AIEditorIntegration','pluginName','requires','2388416GONGkK','isOfficialPlugin','10688148RsGkYl','1049298sGiKTY','21yadYDK','1550667NEdKEi','3035814bVkAhr','715TJddgl','isPremiumPlugin','14964pFcISx','2039718dnRVCR'];_0x3fbe=function(){return _0x4e5ac1;};return _0x3fbe();}export class AIEditorIntegration extends _0x37c1ec{static get[_0x359380(0x1cc)](){return[_0x13006b,_0x83cabc];}static get[_0x359380(0x1d9)](){var _0x1b2344=_0x359380;return _0x1b2344(0x1d8);}static get[_0x359380(0x1ce)](){return!0x0;}static get[_0x359380(0x1d5)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2999(_0x1a39d1,_0x38a936){const _0xcd6734=_0xcd67();return _0x2999=function(_0x299988,_0x477d08){_0x299988=_0x299988-0x158;let _0x42f83e=_0xcd6734[_0x299988];return _0x42f83e;},_0x2999(_0x1a39d1,_0x38a936);}const _0xdf850e=_0x2999;(function(_0x259981,_0x29e931){const _0x4f47c6=_0x2999,_0x474df3=_0x259981();while(!![]){try{const _0x71ca69=parseInt(_0x4f47c6(0x173))/0x1+-parseInt(_0x4f47c6(0x17a))/0x2+-parseInt(_0x4f47c6(0x15c))/0x3*(-parseInt(_0x4f47c6(0x172))/0x4)+-parseInt(_0x4f47c6(0x166))/0x5+-parseInt(_0x4f47c6(0x16e))/0x6*(-parseInt(_0x4f47c6(0x15f))/0x7)+parseInt(_0x4f47c6(0x16c))/0x8+-parseInt(_0x4f47c6(0x16d))/0x9*(parseInt(_0x4f47c6(0x15d))/0xa);if(_0x71ca69===_0x29e931)break;else _0x474df3['push'](_0x474df3['shift']());}catch(_0x563264){_0x474df3['push'](_0x474df3['shift']());}}}(_0xcd67,0x7883a));import{Plugin as _0x420943}from'ckeditor5/src/core.js';import{ToggleAICommand as _0x889f5e}from'./toggleaicommand.js';import{ButtonView as _0x5321a1,MenuBarMenuListItemButtonView as _0x2bc501}from'ckeditor5/src/ui.js';import{IconAIAskAI as _0x32ae3f}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x490517}from'../../aicore/utils/common-translations.js';function _0xcd67(){const _0x24a4b4=['init','execute','bind','2531860GUHOgO','494564oGvuXj','editor','ck-ai-toggle-button','pluginName','listenTo','isOfficialPlugin','get','997038YocuBn','add','requires','AIToggleButtonUI','menuitemcheckbox','3LbVaxb','90RDRtKJ','value','77zoyKaw','isEnabled','AI_TOGGLE_BUTTON_LABEL','menuBar:toggleAi','locale','isOn','set','2798405MlpjBN','componentFactory','commands','_createAIUIButton','toggleAi','isPremiumPlugin','3950368HBhvtR','720666OqlGyE','355182Rbubkr'];_0xcd67=function(){return _0x24a4b4;};return _0xcd67();}import{AITabs as _0x5a9793}from'../../aitabs/aitabs.js';import'../../../theme/aieditorintegration/aitogglebutton.css';export class AIToggleButtonUI extends _0x420943{static get[_0xdf850e(0x159)](){return[_0x5a9793];}static get[_0xdf850e(0x176)](){const _0x5c8bd5=_0xdf850e;return _0x5c8bd5(0x15a);}static get[_0xdf850e(0x178)](){return!0x0;}static get[_0xdf850e(0x16b)](){return!0x0;}[_0xdf850e(0x16f)](){const _0x11e675=_0xdf850e,_0xb6ee01=this[_0x11e675(0x174)];_0xb6ee01[_0x11e675(0x168)][_0x11e675(0x158)](_0x11e675(0x16a),new _0x889f5e(_0xb6ee01)),_0xb6ee01['ui'][_0x11e675(0x167)][_0x11e675(0x158)](_0x11e675(0x16a),()=>{const _0x1488cf=_0x11e675,_0x4668ff=this[_0x1488cf(0x169)](_0x5321a1);return _0x4668ff[_0x1488cf(0x165)]({'tooltip':!0x0,'class':_0x1488cf(0x175)}),_0x4668ff;}),_0xb6ee01['ui'][_0x11e675(0x167)][_0x11e675(0x158)](_0x11e675(0x162),()=>{const _0xa2bab4=_0x11e675,_0x39353f=this[_0xa2bab4(0x169)](_0x2bc501);return _0x39353f[_0xa2bab4(0x165)]({'role':_0xa2bab4(0x15b)}),_0x39353f;});}[_0xdf850e(0x169)](_0x4f2000){const _0x37a8d8=_0xdf850e,_0x55ab56=this[_0x37a8d8(0x174)],_0x1b87c9=_0x55ab56[_0x37a8d8(0x168)][_0x37a8d8(0x179)](_0x37a8d8(0x16a)),_0xa08b05=new _0x4f2000(_0x55ab56[_0x37a8d8(0x163)]);return _0xa08b05[_0x37a8d8(0x165)]({'label':_0x490517(_0x55ab56[_0x37a8d8(0x163)],_0x37a8d8(0x161)),'icon':_0x32ae3f,'isToggleable':!0x0}),_0xa08b05[_0x37a8d8(0x171)](_0x37a8d8(0x160))['to'](_0x1b87c9),_0xa08b05[_0x37a8d8(0x171)](_0x37a8d8(0x164))['to'](_0x1b87c9,_0x37a8d8(0x15e),_0x1c273e=>!!_0x1c273e),this[_0x37a8d8(0x177)](_0xa08b05,_0x37a8d8(0x170),()=>{const _0xe5ca52=_0x37a8d8;_0x1b87c9[_0xe5ca52(0x170)]();}),_0xa08b05;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a20f6=_0x2d24;function _0x50dc(){const _0xb789b8=['isEnabled','165277AdTOxr','2084060oguuAc','2777680ziCCJt','plugins','view','312JWsKTr','12909bfCiTf','isVisible','execute','10296682wbTjio','534KOelMW','get','AITabs','value','153jOHPLE','editor','6WDvECG','266930yCOzJN','1439148hspAST','bind'];_0x50dc=function(){return _0xb789b8;};return _0x50dc();}(function(_0x9307d9,_0x43c260){const _0x154f5d=_0x2d24,_0x335c6a=_0x9307d9();while(!![]){try{const _0xb30dba=-parseInt(_0x154f5d(0x1c1))/0x1+parseInt(_0x154f5d(0x1ce))/0x2*(-parseInt(_0x154f5d(0x1ca))/0x3)+parseInt(_0x154f5d(0x1c5))/0x4+parseInt(_0x154f5d(0x1c6))/0x5*(parseInt(_0x154f5d(0x1bf))/0x6)+parseInt(_0x154f5d(0x1c4))/0x7*(parseInt(_0x154f5d(0x1c9))/0x8)+-parseInt(_0x154f5d(0x1d2))/0x9*(-parseInt(_0x154f5d(0x1c0))/0xa)+parseInt(_0x154f5d(0x1cd))/0xb;if(_0xb30dba===_0x43c260)break;else _0x335c6a['push'](_0x335c6a['shift']());}catch(_0x2409a0){_0x335c6a['push'](_0x335c6a['shift']());}}}(_0x50dc,0xc31c6));function _0x2d24(_0x21bbd9,_0x229eb6){const _0x50dc1f=_0x50dc();return _0x2d24=function(_0x2d243d,_0x50f81b){_0x2d243d=_0x2d243d-0x1bf;let _0x3a9306=_0x50dc1f[_0x2d243d];return _0x3a9306;},_0x2d24(_0x21bbd9,_0x229eb6);}import{Command as _0xe5d29}from'ckeditor5/src/core.js';export class ToggleAICommand extends _0xe5d29{constructor(_0x17f932){const _0x20dc3a=_0x2d24;super(_0x17f932);const _0x17d0eb=_0x17f932[_0x20dc3a(0x1c7)][_0x20dc3a(0x1cf)](_0x20dc3a(0x1d0))[_0x20dc3a(0x1c8)];this[_0x20dc3a(0x1c2)](_0x20dc3a(0x1d1))['to'](_0x17d0eb,_0x20dc3a(0x1cb)),this[_0x20dc3a(0x1c3)]=!0x0;}[_0x2a20f6(0x1cc)](){const _0x3d6b7c=_0x2a20f6,_0x444d8d=this[_0x3d6b7c(0x1d3)][_0x3d6b7c(0x1c7)][_0x3d6b7c(0x1cf)](_0x3d6b7c(0x1d0))[_0x3d6b7c(0x1c8)];_0x444d8d[_0x3d6b7c(0x1cb)]=!_0x444d8d[_0x3d6b7c(0x1cb)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x198b(){var _0x527dd7=['167063NqIcuw','324909toBsOI','8QKjVyU','2082190RabuMP','96665KViTJY','isOfficialPlugin','config','isPremiumPlugin','20VHREjT','90762bSgMXD','269118dEfbkc','AIQuickActions','8166cDocTV','60pesKZD','define','ai.quickActions','pluginName','22gJCVTL','requires'];_0x198b=function(){return _0x527dd7;};return _0x198b();}var _0x4ddaf3=_0x1c44;(function(_0x5ec2fb,_0x9da38c){var _0x578e2c=_0x1c44,_0x5b212c=_0x5ec2fb();while(!![]){try{var _0xe0bb5b=parseInt(_0x578e2c(0x1bb))/0x1+parseInt(_0x578e2c(0x1b2))/0x2+parseInt(_0x578e2c(0x1b4))/0x3*(-parseInt(_0x578e2c(0x1b0))/0x4)+-parseInt(_0x578e2c(0x1bf))/0x5*(-parseInt(_0x578e2c(0x1b5))/0x6)+-parseInt(_0x578e2c(0x1b1))/0x7*(-parseInt(_0x578e2c(0x1bd))/0x8)+parseInt(_0x578e2c(0x1bc))/0x9+-parseInt(_0x578e2c(0x1be))/0xa*(parseInt(_0x578e2c(0x1b9))/0xb);if(_0xe0bb5b===_0x9da38c)break;else _0x5b212c['push'](_0x5b212c['shift']());}catch(_0x1c5898){_0x5b212c['push'](_0x5b212c['shift']());}}}(_0x198b,0x1bd33));import{Plugin as _0x1bff86}from'ckeditor5/src/core.js';import{AIQuickActionsUI as _0x544630}from'./aiquickactionsui.js';import{AIQuickActionsEditing as _0x1180fb}from'./aiquickactionsediting.js';import{AIActions as _0x59555a}from'../aiactions/aiactions.js';function _0x1c44(_0x52da3f,_0xa39b6a){var _0x198bfe=_0x198b();return _0x1c44=function(_0x1c44ca,_0x377f4d){_0x1c44ca=_0x1c44ca-0x1b0;var _0x3094db=_0x198bfe[_0x1c44ca];return _0x3094db;},_0x1c44(_0x52da3f,_0xa39b6a);}export class AIQuickActions extends _0x1bff86{static get[_0x4ddaf3(0x1ba)](){return[_0x544630,_0x1180fb,_0x59555a];}static get[_0x4ddaf3(0x1b8)](){var _0x4a8dff=_0x4ddaf3;return _0x4a8dff(0x1b3);}static get[_0x4ddaf3(0x1c0)](){return!0x0;}static get[_0x4ddaf3(0x1c2)](){return!0x0;}constructor(_0x574c41){var _0x1b7064=_0x4ddaf3;super(_0x574c41),_0x574c41[_0x1b7064(0x1c1)][_0x1b7064(0x1b6)](_0x1b7064(0x1b7),{'extraCommands':[],'removeCommands':[],'isSearchEnabled':!0x0});}}
|