@ckeditor/ckeditor5-ai 47.5.0-alpha.8 → 47.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.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/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/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/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.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/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.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/aichathistoryview.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.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/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/documentrange.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/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x34b2(){const _0x37880d=['createCollection','114880FWZJvK','mouseOverSuggestion','isDone','isEnabled','markAsDone','target','div','121tsaLsb','update','1215499VGqohp','ck-hidden','addMany','isVisible','change:state','505972rqRhyD','mouseLeaveSuggestion','updateContent','pending','state','change:isDone','hasChanges','2pOnsZd','index','10569609GuzBfU','ck-ai-suggestion__body__content-part_active','toolbarView','setTemplate','ck-ai-suggestion__body__content-part','ck-ai-suggestion__body__content-part_','ck-ai-suggestion__body__content-part_enabled','fire','showChangeInText','bind','_children','bindTemplate','isActive','delegate','2471048TrAOiz','12MohaAX','_headerView','contains','7278qbrnLO','partDefinition','set','415865ThalGT','5649OlvVXN','_streamableContentView','element'];_0x34b2=function(){return _0x37880d;};return _0x34b2();}const _0x16a4e3=_0x17c5;(function(_0x40c99e,_0x5d7f7d){const _0x1afe43=_0x17c5,_0x2ce8d6=_0x40c99e();while(!![]){try{const _0x5cd5cb=parseInt(_0x1afe43(0xf5))/0x1*(parseInt(_0x1afe43(0x101))/0x2)+parseInt(_0x1afe43(0x112))/0x3*(-parseInt(_0x1afe43(0xfa))/0x4)+-parseInt(_0x1afe43(0x118))/0x5+-parseInt(_0x1afe43(0x115))/0x6*(-parseInt(_0x1afe43(0x119))/0x7)+parseInt(_0x1afe43(0x111))/0x8+-parseInt(_0x1afe43(0x103))/0x9+parseInt(_0x1afe43(0xec))/0xa*(-parseInt(_0x1afe43(0xf3))/0xb);if(_0x5cd5cb===_0x5d7f7d)break;else _0x2ce8d6['push'](_0x2ce8d6['shift']());}catch(_0x5c7675){_0x2ce8d6['push'](_0x2ce8d6['shift']());}}}(_0x34b2,0x95bed));import{View as _0x45e07e}from'ckeditor5/src/ui.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4928d7}from'../../utils/eventnames.js';function _0x17c5(_0x4bec3c,_0x4d746e){const _0x34b2ae=_0x34b2();return _0x17c5=function(_0x17c5df,_0x27179e){_0x17c5df=_0x17c5df-0xeb;let _0x4eadb9=_0x34b2ae[_0x17c5df];return _0x4eadb9;},_0x17c5(_0x4bec3c,_0x4d746e);}import{AISuggestionContentPartHeaderView as _0x4476cc}from'./aisuggestioncontentpartheaderview.js';import{AISuggestionStreamableContentView as _0x5ade89}from'./aisuggestionstreamablecontentview.js';export class AISuggestionBodyViewContentPartView extends _0x45e07e{[_0x16a4e3(0x10d)];[_0x16a4e3(0x113)];[_0x16a4e3(0x11a)];constructor(_0xe6e136,{part:_0xfbb826,uiIndex:_0xffec58,areActionsDisabled:_0x3e0284,availableActions:_0x4d1fc3}){const _0x5aa88a=_0x16a4e3;super(_0xe6e136);const _0xe4527e=this[_0x5aa88a(0x10e)];this[_0x5aa88a(0x117)](_0x5aa88a(0xfe),_0x5aa88a(0xfd)),this[_0x5aa88a(0x117)](_0x5aa88a(0xee),!0x1),this[_0x5aa88a(0x117)](_0x5aa88a(0xf8),!0x1),this[_0x5aa88a(0x117)](_0x5aa88a(0x10f),!0x1),this[_0x5aa88a(0x117)](_0x5aa88a(0xef),!0x1);const _0x48387e=()=>{const _0x8fd598=_0x5aa88a;this[_0x8fd598(0xef)]=this[_0x8fd598(0xee)]&&_0x8fd598(0xfd)==this[_0x8fd598(0xfe)]&&!_0x3e0284;};this['on'](_0x5aa88a(0xf9),_0x48387e),this['on'](_0x5aa88a(0xff),_0x48387e),_0x48387e(),this[_0x5aa88a(0x10d)]=this[_0x5aa88a(0xeb)](),this[_0x5aa88a(0x113)]=new _0x4476cc(_0xe6e136,{'part':_0xfbb826,'uiIndex':_0xffec58,'availableActions':_0x4d1fc3,'areActionsDisabled':_0x3e0284}),this[_0x5aa88a(0x113)][_0x5aa88a(0x10c)](_0x5aa88a(0xef),_0x5aa88a(0xfe))['to'](this),this[_0x5aa88a(0x113)][_0x5aa88a(0x110)](..._0x4928d7)['to'](this),this[_0x5aa88a(0x11a)]=new _0x5ade89(_0xe6e136),this[_0x5aa88a(0x10d)][_0x5aa88a(0xf7)]([this[_0x5aa88a(0x113)],this[_0x5aa88a(0x11a)]]),this[_0x5aa88a(0x106)]({'tag':_0x5aa88a(0xf2),'attributes':{'class':['ck',_0x5aa88a(0x107),_0xe4527e['to'](_0x5aa88a(0xfe),_0x3edb32=>_0x5aa88a(0x108)+_0x3edb32),_0xe4527e['if'](_0x5aa88a(0xef),_0x5aa88a(0x109)),_0xe4527e['if'](_0x5aa88a(0x10f),_0x5aa88a(0x104)),_0xe4527e['if'](_0x5aa88a(0xf8),_0x5aa88a(0xf6),_0x26925c=>!_0x26925c)]},'children':this[_0x5aa88a(0x10d)],'on':{'mouseenter':_0xe4527e['to'](()=>{const _0x42972a=_0x5aa88a;this[_0x42972a(0xef)]&&this[_0x42972a(0x10a)](_0x42972a(0xed),{'index':_0xfbb826[_0x42972a(0x102)]});}),'mouseleave':_0xe4527e['to'](()=>{const _0x250dfa=_0x5aa88a;this[_0x250dfa(0xef)]&&this[_0x250dfa(0x10a)](_0x250dfa(0xfb),{'index':_0xfbb826[_0x250dfa(0x102)]});}),'click':_0xe4527e['to'](_0x30a9d9=>{const _0x386c52=_0x5aa88a,_0x4be43e=_0x30a9d9[_0x386c52(0xf1)];this[_0x386c52(0xef)]&&!this[_0x386c52(0x113)][_0x386c52(0x105)][_0x386c52(0x11b)][_0x386c52(0x114)](_0x4be43e)&&this[_0x386c52(0x10a)](_0x386c52(0x10b),{'index':_0xfbb826[_0x386c52(0x102)]});})}});}async[_0x16a4e3(0xfc)]({part:_0x1c926d,renderingStrategy:_0x1e89e7,showUnchangedParts:_0x4ae6f4=!0x1,abortSignal:_0x27b3f6}){const _0x5414ad=_0x16a4e3;this[_0x5414ad(0x116)]=_0x1c926d,this[_0x5414ad(0xf8)]=this[_0x5414ad(0x116)][_0x5414ad(0x100)]||_0x4ae6f4,this[_0x5414ad(0xf8)]&&await this[_0x5414ad(0x11a)][_0x5414ad(0xf4)]({'part':_0x1c926d,'renderingStrategy':_0x1e89e7,'abortSignal':_0x27b3f6});}[_0x16a4e3(0xf0)](){const _0x4c334c=_0x16a4e3;this[_0x4c334c(0xee)]=!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x543cac,_0x3c58bd){const _0x244a7f=_0x269a,_0x4c43b5=_0x543cac();while(!![]){try{const _0x4d160b=parseInt(_0x244a7f(0x70))/0x1*(-parseInt(_0x244a7f(0x76))/0x2)+-parseInt(_0x244a7f(0x71))/0x3*(-parseInt(_0x244a7f(0x7b))/0x4)+parseInt(_0x244a7f(0x75))/0x5+parseInt(_0x244a7f(0x7d))/0x6+-parseInt(_0x244a7f(0x72))/0x7*(-parseInt(_0x244a7f(0x83))/0x8)+parseInt(_0x244a7f(0x79))/0x9+-parseInt(_0x244a7f(0x7e))/0xa*(parseInt(_0x244a7f(0x84))/0xb);if(_0x4d160b===_0x3c58bd)break;else _0x4c43b5['push'](_0x4c43b5['shift']());}catch(_0x2a0621){_0x4c43b5['push'](_0x4c43b5['shift']());}}}(_0x36ca,0x3a32a));import{View as _0x5c5701}from'ckeditor5/src/ui.js';import{AISpinnerView as _0x315d0b}from'../aispinner.js';import{getTranslation as _0x50bc60}from'../../utils/common-translations.js';function _0x269a(_0x7ef08b,_0x56d955){const _0x36caf0=_0x36ca();return _0x269a=function(_0x269a12,_0x52d759){_0x269a12=_0x269a12-0x6e;let _0xd9265c=_0x36caf0[_0x269a12];return _0xd9265c;},_0x269a(_0x7ef08b,_0x56d955);}function _0x36ca(){const _0xc2103=['183789KzunQA','isVisible','1149452GSmgal','locale','1932270ZGUytJ','4469090UyPTte','set','bindTemplate','ck-ai-suggestion__loader','small','886200WxbTcX','11ocPBKi','AI_CHAT_IS_WRITING','ck-hidden','426fZNHRo','3PSqLbj','7vsNZBV','span','ck-ai-suggestion__loader-text','1003545qsuFlD','1202FXQNqW','div','setTemplate'];_0x36ca=function(){return _0xc2103;};return _0x36ca();}export class AISuggestionLoaderView extends _0x5c5701{constructor(_0x1f24f4){const _0x4c6e41=_0x269a;super(_0x1f24f4),this[_0x4c6e41(0x7f)](_0x4c6e41(0x7a),!0x0);const _0x250683=new _0x315d0b(_0x4c6e41(0x82));_0x250683[_0x4c6e41(0x7a)]=!0x0;const _0x4faaf7=new _0x5c5701(this[_0x4c6e41(0x7c)]);_0x4faaf7[_0x4c6e41(0x78)]({'tag':_0x4c6e41(0x73),'attributes':{'class':['ck',_0x4c6e41(0x74)]},'children':[_0x50bc60(this[_0x4c6e41(0x7c)],_0x4c6e41(0x6e))]}),this[_0x4c6e41(0x78)]({'tag':_0x4c6e41(0x77),'attributes':{'class':['ck',_0x4c6e41(0x81),this[_0x4c6e41(0x80)]['if'](_0x4c6e41(0x7a),_0x4c6e41(0x6f),_0xa95c75=>!_0xa95c75)]},'children':[_0x250683,_0x4faaf7]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x349735=_0x3133;function _0x175f(){var _0x290292=['10519990KuqkTv','ck-content','animation:\x20ck-html-streamer-fade-in\x20.5s','htmlStreamer','8pDAaQC','content','2627344Asywnu','ck-ai-suggestion-streamable-content','9361231gaTgLA','update','225092RyZsVi','9SqBUEM','setTemplate','div','204920jNUADj','innerHTML','93252MilVSu','element','streaming','ck-reset_all-excluded','155crfQEK','1881717bPfBxD','clear','60cqwOKj','reset','stream'];_0x175f=function(){return _0x290292;};return _0x175f();}(function(_0x625b0,_0x412f9c){var _0x38b91b=_0x3133,_0x74ee8d=_0x625b0();while(!![]){try{var _0x56b01e=-parseInt(_0x38b91b(0x1ce))/0x1*(parseInt(_0x38b91b(0x1c4))/0x2)+-parseInt(_0x38b91b(0x1d5))/0x3+parseInt(_0x38b91b(0x1d0))/0x4*(parseInt(_0x38b91b(0x1d4))/0x5)+parseInt(_0x38b91b(0x1d7))/0x6*(-parseInt(_0x38b91b(0x1ca))/0x7)+-parseInt(_0x38b91b(0x1c6))/0x8+-parseInt(_0x38b91b(0x1cb))/0x9*(-parseInt(_0x38b91b(0x1da))/0xa)+parseInt(_0x38b91b(0x1c8))/0xb;if(_0x56b01e===_0x412f9c)break;else _0x74ee8d['push'](_0x74ee8d['shift']());}catch(_0x41b266){_0x74ee8d['push'](_0x74ee8d['shift']());}}}(_0x175f,0x811ba));function _0x3133(_0x56d4fb,_0x176fab){var _0x175f24=_0x175f();return _0x3133=function(_0x313336,_0x1d0c0c){_0x313336=_0x313336-0x1c3;var _0xffc006=_0x175f24[_0x313336];return _0xffc006;},_0x3133(_0x56d4fb,_0x176fab);}import{View as _0x47e5db}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x254fa6}from'../../utils/htmlstreamer.js';import{serialize as _0x21a6e2}from'../../utils/htmlparser.js';export class AISuggestionStreamableContentView extends _0x47e5db{[_0x349735(0x1c3)];constructor(_0x505495){var _0x43230f=_0x349735;super(_0x505495),this[_0x43230f(0x1c3)]=new _0x254fa6({'textNodeStyle':_0x43230f(0x1dc),'delay':0x14}),this[_0x43230f(0x1cc)]({'tag':_0x43230f(0x1cd),'attributes':{'class':['ck',_0x43230f(0x1db),_0x43230f(0x1d3),_0x43230f(0x1c7)]}});}async[_0x349735(0x1c9)]({part:_0x5e62c9,renderingStrategy:_0xa32770,abortSignal:_0x19c6c3}){var _0x5327f1=_0x349735;_0x5327f1(0x1d2)===_0xa32770?await this[_0x5327f1(0x1c3)][_0x5327f1(0x1d9)]({'document':_0x5e62c9[_0x5327f1(0x1c5)],'targetElement':this[_0x5327f1(0x1d1)],'abortSignal':_0x19c6c3}):this[_0x5327f1(0x1d1)][_0x5327f1(0x1cf)]=_0x21a6e2(_0x5e62c9[_0x5327f1(0x1c5)]);}[_0x349735(0x1d6)](){var _0x20fd51=_0x349735;this[_0x20fd51(0x1c3)][_0x20fd51(0x1d8)](),this[_0x20fd51(0x1d1)][_0x20fd51(0x1cf)]='';}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5965d1=_0x40af;(function(_0x507b94,_0x6c24eb){const _0x7d3ce3=_0x40af,_0x12c6bb=_0x507b94();while(!![]){try{const _0x59eaf1=-parseInt(_0x7d3ce3(0x1c1))/0x1+parseInt(_0x7d3ce3(0x1f0))/0x2*(parseInt(_0x7d3ce3(0x1d8))/0x3)+-parseInt(_0x7d3ce3(0x1f2))/0x4*(-parseInt(_0x7d3ce3(0x1dc))/0x5)+parseInt(_0x7d3ce3(0x1c6))/0x6*(parseInt(_0x7d3ce3(0x1e0))/0x7)+parseInt(_0x7d3ce3(0x1cd))/0x8+-parseInt(_0x7d3ce3(0x1ef))/0x9+-parseInt(_0x7d3ce3(0x1cc))/0xa;if(_0x59eaf1===_0x6c24eb)break;else _0x12c6bb['push'](_0x12c6bb['shift']());}catch(_0x3e8c93){_0x12c6bb['push'](_0x12c6bb['shift']());}}}(_0x22f1,0x2f664));import{View as _0x3b6237,ButtonView as _0x2a26d2,IconView as _0x343b97,BalloonPanelView as _0x1f5700}from'ckeditor5/src/ui.js';function _0x40af(_0x3579bd,_0x5dbafa){const _0x22f122=_0x22f1();return _0x40af=function(_0x40afbd,_0x3aae79){_0x40afbd=_0x40afbd-0x1b8;let _0x2978f7=_0x22f122[_0x40afbd];return _0x2978f7;},_0x40af(_0x3579bd,_0x5dbafa);}import{IconWeb as _0x4b8134}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x575d5e}from'../../utils/common-translations.js';export class AIWebSourcesView extends _0x3b6237{[_0x5965d1(0x1f6)];[_0x5965d1(0x1f3)];[_0x5965d1(0x1bf)];constructor(_0x58358d,_0x5f4285){const _0x8808bd=_0x5965d1;super(_0x58358d),this[_0x8808bd(0x1bf)]=_0x5f4285,this[_0x8808bd(0x1f6)]=this[_0x8808bd(0x1bd)](),this[_0x8808bd(0x1eb)](_0x8808bd(0x1cf),!0x1),this[_0x8808bd(0x1d7)]({'tag':_0x8808bd(0x1e6),'attributes':{'class':['ck',_0x8808bd(0x1d9),this[_0x8808bd(0x1e4)]['if'](_0x8808bd(0x1cf),_0x8808bd(0x1f9),_0x399605=>!_0x399605)]},'children':this[_0x8808bd(0x1f6)]});const _0x37711e=new _0x3b6237(this[_0x8808bd(0x1ca)]),_0x4e1162=new _0x343b97();_0x4e1162[_0x8808bd(0x1ce)]=_0x4b8134,_0x37711e[_0x8808bd(0x1d7)]({'tag':_0x8808bd(0x1e6),'attributes':{'class':['ck',_0x8808bd(0x1ed)]},'children':[_0x4e1162,{'tag':_0x8808bd(0x1bc),'children':[{'text':_0x575d5e(this[_0x8808bd(0x1ca)],_0x8808bd(0x1f8))}]}]}),this[_0x8808bd(0x1f6)][_0x8808bd(0x1c5)](_0x37711e),this[_0x8808bd(0x1db)](_0x58358d);}[_0x5965d1(0x1dd)](_0x927524){const _0x49776c=_0x5965d1;this[_0x49776c(0x1f6)][_0x49776c(0x1c5)](new AIWebSourceView(this[_0x49776c(0x1ca)],_0x927524,this[_0x49776c(0x1f3)]));}[_0x5965d1(0x1db)](_0x139a99){const _0x2fe817=_0x5965d1;this[_0x2fe817(0x1f3)]=new _0x1f5700(_0x139a99),this[_0x2fe817(0x1f3)][_0x2fe817(0x1c3)]({'attributes':{'class':[_0x2fe817(0x1d0)]}}),this[_0x2fe817(0x1bf)][_0x2fe817(0x1c5)](this[_0x2fe817(0x1f3)]);}}function _0x22f1(){const _0x83f04=['2652704UWHxCk','content','isVisible','ck-ai-web-source__tooltip-balloon','show','defaultPositions','ck-ai-web-source__tooltip-row','ck-ai-web-source__tooltip-title','title','.ck-ai-chat','setTemplate','60012rRjvGa','ck-ai-web-sources','open','_setupBalloonPanel','341585UXQHfL','addSource','querySelector','push','1183133kOpuxI','ck-ai-web-source__tooltip','get','_updateTooltipContent','bindTemplate','img','div','ck-ai-web-source__tooltip-image','_showTooltip','northArrowSouthEast','_createTooltipContentView','set','url','ck-ai-web-sources__header','_hideTooltip','2082069ciUmZD','2Emzekx','ck-ai-web-source__image','16mVgfrr','balloonPanelView','hostname','icon','children','element','AI_CHAT_SOURCES_HEADER','ck-hidden','pin','hide','...','northArrowSouth','ck\x20ck-ai-web-source','northArrowSouthWest','span','createCollection','source','bodyCollection','_blank','190262jXiZBX','ck-ai-web-source__tooltip-url','extendTemplate','length','add','6qfCwdn','clear','substring','destroy','locale','favicon','1781280drULmg'];_0x22f1=function(){return _0x83f04;};return _0x22f1();}export class AIWebSourceView extends _0x2a26d2{[_0x5965d1(0x1f3)];[_0x5965d1(0x1be)];constructor(_0x58b8ce,_0x523a8a,_0x44a1a9){const _0x10fc91=_0x5965d1;super(_0x58b8ce),this[_0x10fc91(0x1be)]=_0x523a8a,this[_0x10fc91(0x1f3)]=_0x44a1a9,this[_0x10fc91(0x1eb)]({'label':_0x523a8a[_0x10fc91(0x1d5)],'class':[_0x10fc91(0x1ba)],'withText':!0x0});const _0x31fcd2=this[_0x10fc91(0x1e4)];if(this[_0x10fc91(0x1c3)]({'on':{'click':_0x31fcd2['to'](()=>{const _0xb7c1c8=_0x10fc91;window[_0xb7c1c8(0x1da)](_0x523a8a[_0xb7c1c8(0x1ec)],_0xb7c1c8(0x1c0));}),'mouseenter':_0x31fcd2['to'](()=>{const _0x15c9cf=_0x10fc91;this[_0x15c9cf(0x1e8)]();}),'mouseleave':_0x31fcd2['to'](()=>{const _0x3f86a0=_0x10fc91;this[_0x3f86a0(0x1ee)]();})}}),_0x523a8a[_0x10fc91(0x1cb)]){const _0x1297e0=new _0x3b6237(_0x58b8ce);_0x1297e0[_0x10fc91(0x1d7)]({'tag':_0x10fc91(0x1e5),'attributes':{'src':_0x523a8a[_0x10fc91(0x1cb)]||_0x4b8134,'alt':_0x523a8a[_0x10fc91(0x1d5)],'class':[_0x10fc91(0x1f1)]}}),this[_0x10fc91(0x1f6)][_0x10fc91(0x1c5)](_0x1297e0);}else this[_0x10fc91(0x1eb)](_0x10fc91(0x1f5),_0x4b8134);}[_0x5965d1(0x1ea)](_0x5d98e0,_0x5e051b){const _0x29efbc=_0x5965d1,_0x235c13=new _0x3b6237(_0x5d98e0),_0x16cef9=[];let _0x3aec16;_0x5e051b?.[_0x29efbc(0x1cb)]?(_0x3aec16=new _0x3b6237(_0x5d98e0),_0x3aec16[_0x29efbc(0x1d7)]({'tag':_0x29efbc(0x1e5),'attributes':{'src':_0x5e051b[_0x29efbc(0x1cb)],'alt':_0x5e051b[_0x29efbc(0x1d5)],'class':[_0x29efbc(0x1e7)]}})):(_0x3aec16=new _0x343b97(),_0x3aec16[_0x29efbc(0x1ce)]=_0x4b8134,_0x3aec16[_0x29efbc(0x1c3)]({'attributes':{'alt':_0x5e051b[_0x29efbc(0x1d5)],'class':[_0x29efbc(0x1e7)]}})),_0x16cef9[_0x29efbc(0x1df)](_0x3aec16);const _0x459e8b=new _0x3b6237(_0x5d98e0);_0x459e8b[_0x29efbc(0x1d7)]({'tag':'a','attributes':{'class':[_0x29efbc(0x1c2)],'href':_0x5e051b[_0x29efbc(0x1ec)]},'children':[{'text':new URL(_0x5e051b[_0x29efbc(0x1ec)])?.[_0x29efbc(0x1f4)]}]}),_0x16cef9[_0x29efbc(0x1df)](_0x459e8b);const _0x27542b=new _0x3b6237(_0x5d98e0);_0x27542b[_0x29efbc(0x1d7)]({'tag':_0x29efbc(0x1e6),'attributes':{'class':[_0x29efbc(0x1d3)]},'children':_0x16cef9});const _0x4384aa=new _0x3b6237(_0x5d98e0);return _0x4384aa[_0x29efbc(0x1d7)]({'tag':_0x29efbc(0x1bc),'attributes':{'class':[_0x29efbc(0x1d3),_0x29efbc(0x1d4)]},'children':[{'text':_0x5e051b[_0x29efbc(0x1d5)][_0x29efbc(0x1c4)]>0x190?_0x5e051b[_0x29efbc(0x1d5)][_0x29efbc(0x1c8)](0x0,0x190)+_0x29efbc(0x1b8):_0x5e051b[_0x29efbc(0x1d5)]}]}),_0x235c13[_0x29efbc(0x1d7)]({'tag':_0x29efbc(0x1e6),'attributes':{'class':['ck',_0x29efbc(0x1e1)]},'children':[_0x27542b,_0x4384aa]}),_0x235c13;}[_0x5965d1(0x1e8)](){const _0x368760=_0x5965d1;this[_0x368760(0x1e3)](),this[_0x368760(0x1f3)][_0x368760(0x1fa)]({'target':this[_0x368760(0x1f7)],'positions':[_0x1f5700[_0x368760(0x1d2)][_0x368760(0x1b9)],_0x1f5700[_0x368760(0x1d2)][_0x368760(0x1bb)],_0x1f5700[_0x368760(0x1d2)][_0x368760(0x1e9)]],'limiter':document[_0x368760(0x1de)](_0x368760(0x1d6))}),this[_0x368760(0x1f3)][_0x368760(0x1d1)]();}[_0x5965d1(0x1ee)](){const _0x5ccd8a=_0x5965d1;this[_0x5ccd8a(0x1f3)][_0x5ccd8a(0x1fb)]();}[_0x5965d1(0x1e3)](){const _0x3bdf6c=_0x5965d1;this[_0x3bdf6c(0x1f3)][_0x3bdf6c(0x1ce)][_0x3bdf6c(0x1e2)](0x0)?.[_0x3bdf6c(0x1c9)](),this[_0x3bdf6c(0x1f3)][_0x3bdf6c(0x1ce)][_0x3bdf6c(0x1c7)]();const _0x4fffe6=this[_0x3bdf6c(0x1ea)](this[_0x3bdf6c(0x1ca)],this[_0x3bdf6c(0x1be)]);this[_0x3bdf6c(0x1f3)][_0x3bdf6c(0x1ce)][_0x3bdf6c(0x1c5)](_0x4fffe6);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a0479=_0x24f4;(function(_0x4b5475,_0x548b9a){const _0x5cca93=_0x24f4,_0x3a6308=_0x4b5475();while(!![]){try{const _0x6a7444=-parseInt(_0x5cca93(0x1d1))/0x1+parseInt(_0x5cca93(0x1be))/0x2+-parseInt(_0x5cca93(0x1b8))/0x3+-parseInt(_0x5cca93(0x1c4))/0x4*(-parseInt(_0x5cca93(0x1d2))/0x5)+parseInt(_0x5cca93(0x1bc))/0x6+parseInt(_0x5cca93(0x1ca))/0x7*(parseInt(_0x5cca93(0x1b4))/0x8)+parseInt(_0x5cca93(0x1cd))/0x9*(parseInt(_0x5cca93(0x1bf))/0xa);if(_0x6a7444===_0x548b9a)break;else _0x3a6308['push'](_0x3a6308['shift']());}catch(_0xc97e7b){_0x3a6308['push'](_0x3a6308['shift']());}}}(_0x9264,0x33b3b));import{DocumentPosition as _0x4ea509}from'./documentposition.js';function _0x24f4(_0x47d319,_0x39686e){const _0x926492=_0x9264();return _0x24f4=function(_0x24f44e,_0xa2818a){_0x24f44e=_0x24f44e-0x1b2;let _0x422c7f=_0x926492[_0x24f44e];return _0x422c7f;},_0x24f4(_0x47d319,_0x39686e);}function _0x9264(){const _0x3d6d56=['createAt','29640ZTajNE','createBefore','start','createAfter','1216107qZZxcu','nextNode','createFromPath','includes','538596nDXcaj','path','644998WBDFpY','1881890dTrUmQ','getNudgedToWordBoundary','isEqual','document','length','127220sUPKhS','firstChild','reverse','lastChild','end','getContent','294oZUNJI','slice','data','9esmmau','parent','previousNode','forEach','361559aGiNeP','35JsZVFE','push'];_0x9264=function(){return _0x3d6d56;};return _0x9264();}import{clone as _0x468a3e,getParents as _0x471c7,Document as _0x19134b,Text as _0x5f5aaf,isTag as _0x5ce94e,isText as _0x17c3b0,replaceElement as _0x31b764,removeElement as _0x5a30c9}from'./htmlparser.js';export class DocumentRange{[_0x4a0479(0x1b6)];[_0x4a0479(0x1c8)];constructor(_0x5f432a,_0x3e180c){const _0x33310d=_0x4a0479;this[_0x33310d(0x1b6)]=_0x5f432a,this[_0x33310d(0x1c8)]=_0x3e180c;}[_0x4a0479(0x1c1)](_0x439289){const _0x1ff856=_0x4a0479;return this==_0x439289||this[_0x1ff856(0x1b6)][_0x1ff856(0x1c1)](_0x439289[_0x1ff856(0x1b6)])&&this[_0x1ff856(0x1c8)][_0x1ff856(0x1c1)](_0x439289[_0x1ff856(0x1c8)]);}[_0x4a0479(0x1c0)](){const _0x59ecb6=_0x4a0479;return new DocumentRange(this[_0x59ecb6(0x1b6)][_0x59ecb6(0x1c0)](_0x59ecb6(0x1b6)),this[_0x59ecb6(0x1c8)][_0x59ecb6(0x1c0)](_0x59ecb6(0x1c8)));}[_0x4a0479(0x1c9)](){const _0x2692c0=_0x4a0479,_0x4ef029=_0x468a3e(this[_0x2692c0(0x1b6)][_0x2692c0(0x1c2)]),_0x504ac2=_0x4ea509[_0x2692c0(0x1ba)](_0x4ef029,this[_0x2692c0(0x1b6)][_0x2692c0(0x1bd)]),_0x661190=_0x4ea509[_0x2692c0(0x1ba)](_0x4ef029,this[_0x2692c0(0x1c8)][_0x2692c0(0x1bd)]);let _0x4b9aff,_0x3754b6;if(_0x17c3b0(_0x504ac2[_0x2692c0(0x1ce)])){const _0x5f49b4=_0x504ac2[_0x2692c0(0x1bd)][_0x504ac2[_0x2692c0(0x1bd)][_0x2692c0(0x1c3)]-0x1],_0x22d3ba=new _0x5f5aaf(_0x504ac2[_0x2692c0(0x1ce)][_0x2692c0(0x1cc)][_0x2692c0(0x1cb)](_0x5f49b4));_0x31b764(_0x504ac2[_0x2692c0(0x1ce)],_0x22d3ba),_0x4b9aff=_0x22d3ba;}else _0x4b9aff=_0x504ac2[_0x2692c0(0x1b9)];if(_0x17c3b0(_0x661190[_0x2692c0(0x1ce)])){const _0x4fd036=_0x661190[_0x2692c0(0x1bd)][_0x661190[_0x2692c0(0x1bd)][_0x2692c0(0x1c3)]-0x1],_0x4b4083=new _0x5f5aaf(_0x661190[_0x2692c0(0x1ce)][_0x2692c0(0x1cc)][_0x2692c0(0x1cb)](0x0,_0x4fd036));_0x31b764(_0x661190[_0x2692c0(0x1ce)],_0x4b4083),_0x3754b6=_0x4b4083;}else _0x3754b6=_0x661190[_0x2692c0(0x1cf)];if(!(_0x4b9aff&&_0x3754b6&&_0x4ef029[_0x2692c0(0x1c5)]&&_0x4ef029[_0x2692c0(0x1c7)]))return new _0x19134b([]);const _0x38a150=_0x471c7(_0x4b9aff),_0x3ee055=_0x471c7(_0x3754b6),_0x26845c=[],_0x4b93ea=[];let _0x3364aa=_0x4ef029[_0x2692c0(0x1c5)];for(;_0x3364aa&&_0x3364aa!==_0x4b9aff;){let _0x1e64a6;_0x38a150[_0x2692c0(0x1bb)](_0x3364aa)||_0x26845c[_0x2692c0(0x1b2)](_0x3364aa),_0x1e64a6=_0x5ce94e(_0x3364aa)?_0x4ea509[_0x2692c0(0x1b3)](_0x4ef029,_0x3364aa,_0x2692c0(0x1b6)):_0x4ea509[_0x2692c0(0x1b7)](_0x4ef029,_0x3364aa),_0x3364aa=_0x1e64a6?_0x1e64a6[_0x2692c0(0x1b9)]:null;}for(_0x3364aa=_0x4ef029[_0x2692c0(0x1c7)];_0x3364aa&&_0x3364aa!==_0x3754b6;){let _0x4982e2;_0x3ee055[_0x2692c0(0x1bb)](_0x3364aa)||_0x4b93ea[_0x2692c0(0x1b2)](_0x3364aa),_0x4982e2=_0x5ce94e(_0x3364aa)?_0x4ea509[_0x2692c0(0x1b3)](_0x4ef029,_0x3364aa,_0x2692c0(0x1c8)):_0x4ea509[_0x2692c0(0x1b5)](_0x4ef029,_0x3364aa),_0x3364aa=_0x4982e2?_0x4982e2[_0x2692c0(0x1cf)]:null;}return _0x26845c[_0x2692c0(0x1d0)](_0xafad20=>{_0x5a30c9(_0xafad20);}),_0x4b93ea[_0x2692c0(0x1c6)]()[_0x2692c0(0x1d0)](_0x192f07=>{_0x5a30c9(_0x192f07);}),_0x4ef029;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0xfd4c(_0x336f4e,_0x35bace){var _0x464ce8=_0x464c();return _0xfd4c=function(_0xfd4c01,_0x426629){_0xfd4c01=_0xfd4c01-0x111;var _0x575c20=_0x464ce8[_0xfd4c01];return _0x575c20;},_0xfd4c(_0x336f4e,_0x35bace);}(function(_0x337818,_0x328681){var _0x3c10fc=_0xfd4c,_0x3b8041=_0x337818();while(!![]){try{var _0x57e3d4=-parseInt(_0x3c10fc(0x11c))/0x1+-parseInt(_0x3c10fc(0x11b))/0x2+-parseInt(_0x3c10fc(0x11d))/0x3+parseInt(_0x3c10fc(0x119))/0x4+-parseInt(_0x3c10fc(0x116))/0x5+parseInt(_0x3c10fc(0x114))/0x6+parseInt(_0x3c10fc(0x112))/0x7;if(_0x57e3d4===_0x328681)break;else _0x3b8041['push'](_0x3b8041['shift']());}catch(_0x1ef910){_0x3b8041['push'](_0x3b8041['shift']());}}}(_0x464c,0x89e10));import{CKEditorError as _0x228f4b}from'ckeditor5/src/utils.js';import{Editor as _0x1e42b5}from'ckeditor5/src/core.js';export function getEditorFromContext(_0x505685){var _0x129208=_0xfd4c;if(_0x505685 instanceof _0x1e42b5)return _0x505685;if(_0x505685?.[_0x129208(0x118)]&&_0x505685[_0x129208(0x118)][_0x129208(0x11a)](0x0))return _0x505685[_0x129208(0x118)][_0x129208(0x117)]>0x1&&console[_0x129208(0x113)](_0x129208(0x111)),_0x505685[_0x129208(0x118)][_0x129208(0x11a)](0x0);throw new _0x228f4b(_0x129208(0x115));}function _0x464c(){var _0x1da85a=['get','1498846NwFfrO','238010FWdhfT','1286058eTGenH','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.','16325764KNrllD','warn','222432JKzpyc','ai-get-editor-from-context-no-editor','2734935vZSeEs','length','editors','634136mwnQnK'];_0x464c=function(){return _0x1da85a;};return _0x464c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x128528,_0x11dc22){const _0x4b7f2f=_0xa944,_0x37ba5a=_0x128528();while(!![]){try{const _0x150469=parseInt(_0x4b7f2f(0x1f0))/0x1+-parseInt(_0x4b7f2f(0x1f8))/0x2+parseInt(_0x4b7f2f(0x205))/0x3*(parseInt(_0x4b7f2f(0x211))/0x4)+-parseInt(_0x4b7f2f(0x1f7))/0x5*(-parseInt(_0x4b7f2f(0x20c))/0x6)+-parseInt(_0x4b7f2f(0x207))/0x7+parseInt(_0x4b7f2f(0x20a))/0x8*(parseInt(_0x4b7f2f(0x214))/0x9)+-parseInt(_0x4b7f2f(0x20d))/0xa;if(_0x150469===_0x11dc22)break;else _0x37ba5a['push'](_0x37ba5a['shift']());}catch(_0xe9015f){_0x37ba5a['push'](_0x37ba5a['shift']());}}}(_0x1be1,0x2f297));import{transformOperationSets as _0x2aa7c4}from'ckeditor5/src/engine.js';function _0x1be1(){const _0x18682a=['380VCJQcF','new','model','216RAsQbe','markers','351321FFroME','getOperations','filter','content','document','node','length','792935ztywJw','541640wseMTN','marker','anchorId','getDocumentContext','type','get','history','cloneNode','operationsA','map','shift','removed','data-id','10551pzlobr','getRange','2317567RejXjE','getDiff','name','105496ZaJCIV','oldRange','6vNckHR','3654350oMSTRV','documentContextContent','version','previousSibling'];_0x1be1=function(){return _0x18682a;};return _0x1be1();}import{append as _0x585529,findByAttribute as _0x3e5529,prependChild as _0x1c3a51,removeElement as _0x3ecf37,serialize as _0x130ce3}from'./htmlparser.js';export function getOperationsFromReply({editor:_0x4dfaca,interaction:_0x1e524f,reply:_0x3ddbfc,groups:_0x561107,transform:_0x1f72db,documentCompare:_0x427fc7,documentCompareOptions:_0x1bdf49}){const _0x32014c=_0xa944,_0x5cfd82=_0x1e524f[_0x32014c(0x1fb)]();if(!_0x5cfd82)return[];const _0x583931=_0x5cfd82[_0x32014c(0x1f3)],_0x105672=_0x5cfd82[_0x32014c(0x20f)],_0x21347c=_0x3ddbfc[_0x32014c(0x20e)][_0x32014c(0x1ff)](!0x0);for(const {changes:_0x53690a}of _0x561107){const _0x199df1=_0x53690a[_0x32014c(0x1f2)](_0x5b3edd=>_0x32014c(0x212)!=_0x5b3edd[_0x32014c(0x1fc)])[_0x32014c(0x201)](_0x31ecab=>_0x3e5529(_0x32014c(0x204),_0x31ecab['id'],_0x21347c)),_0x3e7031=_0x53690a[_0x32014c(0x1f2)](_0x7d4d6c=>_0x32014c(0x203)!=_0x7d4d6c[_0x32014c(0x1fc)])[_0x32014c(0x201)](_0x32dcb2=>_0x32dcb2[_0x32014c(0x1f5)][_0x32014c(0x1ff)](!0x0));let _0xa7b6e4=null;if(_0x199df1[_0x32014c(0x1f6)]){_0xa7b6e4=_0x199df1[0x0][_0x32014c(0x210)];for(let _0x16dfc5=0x0;_0x16dfc5<_0x199df1[_0x32014c(0x1f6)];_0x16dfc5++)_0x3ecf37(_0x199df1[_0x16dfc5]);}if(_0x3e7031[_0x32014c(0x1f6)]){_0xa7b6e4||(_0x53690a[0x0][_0x32014c(0x1fa)]?_0xa7b6e4=_0x3e5529(_0x32014c(0x204),_0x53690a[0x0][_0x32014c(0x1fa)],_0x21347c):(_0xa7b6e4=_0x3e7031[_0x32014c(0x202)](),_0x1c3a51(_0x21347c,_0xa7b6e4)));for(let _0x3c1a27=0x0;_0x3c1a27<_0x3e7031[_0x32014c(0x1f6)];_0x3c1a27++)_0x585529(_0xa7b6e4,_0x3e7031[_0x3c1a27]),_0xa7b6e4=_0x3e7031[_0x3c1a27];}}const _0x4779b2=_0x130ce3(_0x21347c),_0x1f400a=_0x427fc7[_0x32014c(0x208)](_0x583931,_0x4779b2,_0x1bdf49)[_0x32014c(0x1f1)]();if(_0x1f72db){const _0x575d5a=_0x4dfaca[_0x32014c(0x213)][_0x32014c(0x1f4)][_0x32014c(0x1fe)][_0x32014c(0x1f1)](_0x105672),_0x22c4b0={'document':_0x4dfaca[_0x32014c(0x213)][_0x32014c(0x1f4)],'useRelations':!0x1,'padWithNoOps':!0x1};return _0x2aa7c4(_0x1f400a,_0x575d5a,_0x22c4b0)[_0x32014c(0x200)];}return _0x1f400a;}function _0xa944(_0xdc7a64,_0x1e48a7){const _0x1be152=_0x1be1();return _0xa944=function(_0xa94404,_0x3cbac3){_0xa94404=_0xa94404-0x1f0;let _0x24fe75=_0x1be152[_0xa94404];return _0x24fe75;},_0xa944(_0xdc7a64,_0x1e48a7);}export function fixMarkerOperationOldRange(_0x3d307c,_0x58771c){const _0x520e42=_0xa944;if(_0x520e42(0x1f9)!=_0x58771c[_0x520e42(0x1fc)])return;const _0x1481c6=_0x3d307c[_0x520e42(0x213)][_0x520e42(0x215)][_0x520e42(0x1fd)](_0x58771c[_0x520e42(0x209)]);_0x1481c6&&(_0x58771c[_0x520e42(0x20b)]=_0x1481c6[_0x520e42(0x206)]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1514(_0x7a6cd3,_0x14e6c3){const _0x1dd418=_0x1dd4();return _0x1514=function(_0x151408,_0x355a74){_0x151408=_0x151408-0x1b4;let _0x415de3=_0x1dd418[_0x151408];return _0x415de3;},_0x1514(_0x7a6cd3,_0x14e6c3);}(function(_0x508d52,_0x719269){const _0x523237=_0x1514,_0x4c6dc2=_0x508d52();while(!![]){try{const _0x5b0ff1=parseInt(_0x523237(0x1ca))/0x1+parseInt(_0x523237(0x1f3))/0x2*(parseInt(_0x523237(0x1fd))/0x3)+parseInt(_0x523237(0x21e))/0x4+parseInt(_0x523237(0x1f5))/0x5+parseInt(_0x523237(0x1c2))/0x6*(-parseInt(_0x523237(0x1d0))/0x7)+-parseInt(_0x523237(0x1bd))/0x8+-parseInt(_0x523237(0x1d8))/0x9;if(_0x5b0ff1===_0x719269)break;else _0x4c6dc2['push'](_0x4c6dc2['shift']());}catch(_0x1190cc){_0x4c6dc2['push'](_0x4c6dc2['shift']());}}}(_0x1dd4,0xef0d5));import{findOne as _0x4fbae5,getAttribute as _0x418a99,Document as _0x5e209f,serialize as _0x539521,parse as _0x496521}from'./htmlparser.js';import{fixElementSuggestionRange as _0x20c09b}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x46f23b,_DetachOperation as _0x32e742,_removeFromModelNodeList as _0x1a7ee2,_insertIntoModelNodeList as _0x323d93}from'ckeditor5/src/engine.js';import{uid as _0x4b0fbf}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x3cbf6d,changeGroups:_0x25862e,documentContextContent:_0x4bfd72,showDiff:_0x579e8d,trimUnchanged:_0x325e49=!0x0}){const _0x1ac088=_0x1514;return _0x25862e[_0x1ac088(0x1b7)](_0x26386d=>{const _0x2a1095=_0x1ac088,_0x402ade=new _0x5e209f([]),_0x71fce7=new _0x5e209f([]);for(const _0x71e0b of _0x26386d[_0x2a1095(0x1f9)])if(_0x579e8d&&_0x2a1095(0x1dc)==_0x71e0b[_0x2a1095(0x1c6)]||_0x71fce7[_0x2a1095(0x21c)][_0x2a1095(0x214)](_0x71e0b[_0x2a1095(0x1c8)][_0x2a1095(0x1d9)](!0x0)),_0x2a1095(0x1dd)!=_0x71e0b[_0x2a1095(0x1c6)]&&(_0x579e8d||_0x2a1095(0x1dc)!=_0x71e0b[_0x2a1095(0x1c6)])){const _0x1839d2=_0x4fbae5(_0x53f611=>_0x418a99(_0x53f611,_0x2a1095(0x1ed))==_0x71e0b['id'],_0x4bfd72,!0x0);_0x1839d2&&_0x402ade[_0x2a1095(0x21c)][_0x2a1095(0x214)](_0x1839d2[_0x2a1095(0x1d9)](!0x0));}const {content:_0x3caefa,hasChanges:_0x2f2ba8}=function(_0x5a1698,_0x27af84,_0x30d702,_0xc881db,_0x3480d3=!0x0){const _0x5e702f=_0x2a1095,_0x12e828=_0x5a1698[_0x5e702f(0x1e0)][_0x5e702f(0x1d5)](_0x5e702f(0x223)),_0x365606=_0x539521(_0x27af84),_0x1d08d9=_0x539521(_0x30d702),_0x1f4eab=_0x5a1698[_0x5e702f(0x221)][_0x5e702f(0x215)](_0x365606,_0x5e702f(0x1d3)),_0x200607=_0x5a1698[_0x5e702f(0x1cf)][_0x5e702f(0x1ef)](_0x1f4eab,0x0),_0x6e3468=_0x12e828[_0x5e702f(0x1e4)](_0x365606,_0x1d08d9,{'anchor':_0x200607,'markDeletions':_0xc881db}),_0x1b2129=_0x6e3468[_0x5e702f(0x226)]();if(0x0==_0x1b2129[_0x5e702f(0x1e6)])return{'content':_0x27af84[_0x5e702f(0x1d9)](!0x0),'hasChanges':!0x1};_0xc881db?function(_0x1c2b8b,_0x2353f8,_0x6b86f1){const _0x5c62be=_0x5e702f;if(0x0==_0x1c2b8b[_0x5c62be(0x1e6)])return;const _0x2a6834=_0x6b86f1[_0x5c62be(0x1e0)][_0x5c62be(0x1d5)](_0x5c62be(0x223)),_0x49cc95=_0x6b86f1[_0x5c62be(0x1e0)][_0x5c62be(0x1d5)](_0x5c62be(0x1c4));_0x6b86f1[_0x5c62be(0x1cf)][_0x5c62be(0x20b)](_0x11a04e=>{const _0x1d2fcc=_0x5c62be,_0x32eadb=new Set();for(let _0x3c3152=0x0;_0x3c3152<_0x1c2b8b[_0x1d2fcc(0x1e6)];_0x3c3152++){const _0x2f4d16=_0x1c2b8b[_0x3c3152];if(_0x2f4d16[_0x1d2fcc(0x20c)]=null,_0x2f4d16[_0x1d2fcc(0x1c9)]=!0x1,_0x2a6834[_0x1d2fcc(0x1df)](_0x2f4d16)){const _0x3b26b8=_0x20c09b(_0x2f4d16[_0x1d2fcc(0x201)],_0x6b86f1[_0x1d2fcc(0x1cf)]),_0x37fbca=_0x1d2fcc(0x1b9)+_0x4b0fbf()+_0x1d2fcc(0x225);_0x2353f8[_0x1d2fcc(0x1f6)][_0x1d2fcc(0x1b4)](_0x37fbca,_0x3b26b8);}else switch(_0x2f4d16[_0x1d2fcc(0x1c6)]){case _0x1d2fcc(0x209):{if(_0x2f4d16[_0x1d2fcc(0x1db)]==_0x2f4d16[_0x1d2fcc(0x1e8)])break;_0x11a04e[_0x1d2fcc(0x1d2)][_0x1d2fcc(0x1da)](_0x2f4d16),_0x6b86f1[_0x1d2fcc(0x1cf)][_0x1d2fcc(0x20f)](_0x2f4d16);const _0x3bff04=_0x1d2fcc(0x205),_0x844eae=_0x2f4d16[_0x1d2fcc(0x210)],_0x21904e=_0x6b86f1[_0x1d2fcc(0x1cf)][_0x1d2fcc(0x216)](_0x844eae,_0x6b86f1[_0x1d2fcc(0x1cf)][_0x1d2fcc(0x1ef)](_0x844eae[_0x1d2fcc(0x1e7)],_0x1d2fcc(0x1ee))),_0x54d3e9=_0x1d2fcc(0x1e5)+_0x3bff04+':'+_0x4b0fbf()+_0x1d2fcc(0x225);_0x2353f8[_0x1d2fcc(0x1f6)][_0x1d2fcc(0x1b4)](_0x54d3e9,_0x21904e);break;}case _0x1d2fcc(0x224):case _0x1d2fcc(0x1fe):case _0x1d2fcc(0x1cb):{if(_0x2f4d16[_0x1d2fcc(0x1ba)]==_0x2f4d16[_0x1d2fcc(0x206)])break;_0x11a04e[_0x1d2fcc(0x1d2)][_0x1d2fcc(0x1da)](_0x2f4d16),_0x6b86f1[_0x1d2fcc(0x1cf)][_0x1d2fcc(0x20f)](_0x2f4d16);const _0x472360=_0x2f4d16[_0x1d2fcc(0x1c1)];if(!_0x49cc95[_0x1d2fcc(0x21b)](_0x472360))break;const _0x1507f0=_0x20c09b(_0x2f4d16[_0x1d2fcc(0x1bc)],_0x6b86f1[_0x1d2fcc(0x1cf)]),_0x1691f4=_0x1d2fcc(0x1e5)+_0x472360+':'+_0x4b0fbf()+_0x1d2fcc(0x225);_0x2353f8[_0x1d2fcc(0x1f6)][_0x1d2fcc(0x1b4)](_0x1691f4,_0x1507f0);break;}case _0x1d2fcc(0x212):{_0x11a04e[_0x1d2fcc(0x1d2)][_0x1d2fcc(0x1da)](_0x2f4d16),_0x6b86f1[_0x1d2fcc(0x1cf)][_0x1d2fcc(0x20f)](_0x2f4d16);if(_0x1c2b8b[_0x3c3152+0x1]&&_0x1d2fcc(0x1f1)==_0x1c2b8b[_0x3c3152+0x1][_0x1d2fcc(0x1c6)]){ro(_0x2353f8,_0x2f4d16);break;}const _0x4f6ea2=_0x2f4d16[_0x1d2fcc(0x210)],_0x46685e=_0x2f4d16[_0x1d2fcc(0x1bf)],_0x523014=_0x20c09b(_0x6b86f1[_0x1d2fcc(0x1cf)][_0x1d2fcc(0x216)](_0x4f6ea2,_0x4f6ea2[_0x1d2fcc(0x1d7)](_0x46685e)),_0x6b86f1[_0x1d2fcc(0x1cf)]),_0x324021=_0x1d2fcc(0x1e3)+_0x4b0fbf()+_0x1d2fcc(0x225);_0x2353f8[_0x1d2fcc(0x1f6)][_0x1d2fcc(0x1b4)](_0x324021,_0x523014);break;}case _0x1d2fcc(0x1ea):{_0x11a04e[_0x1d2fcc(0x1d2)][_0x1d2fcc(0x1da)](_0x2f4d16),_0x6b86f1[_0x1d2fcc(0x1cf)][_0x1d2fcc(0x20f)](_0x2f4d16);const _0x1b96a1=_0x2f4d16[_0x1d2fcc(0x1be)],_0x44b8d1=_0x2f4d16[_0x1d2fcc(0x20d)],_0x14c708=_0x6b86f1[_0x1d2fcc(0x1cf)][_0x1d2fcc(0x216)](_0x1b96a1,_0x44b8d1),_0x26b748=_0x1d2fcc(0x1e3)+_0x4b0fbf()+_0x1d2fcc(0x225);_0x2353f8[_0x1d2fcc(0x1f6)][_0x1d2fcc(0x1b4)](_0x26b748,_0x14c708);break;}case _0x1d2fcc(0x1f1):{_0x11a04e[_0x1d2fcc(0x1d2)][_0x1d2fcc(0x1da)](_0x2f4d16),_0x6b86f1[_0x1d2fcc(0x1cf)][_0x1d2fcc(0x20f)](_0x2f4d16),_0x1c2b8b[_0x3c3152-0x1]&&_0x1d2fcc(0x212)==_0x1c2b8b[_0x3c3152-0x1][_0x1d2fcc(0x1c6)]&&ro(_0x2353f8,_0x2f4d16);const _0x366da9=_0x2f4d16[_0x1d2fcc(0x203)](),_0x31563b=_0x2f4d16[_0x1d2fcc(0x1bf)];for(let _0x3957da=0x0;_0x3957da<_0x31563b;_0x3957da++){const _0x37e7d3=_0x366da9[_0x1d2fcc(0x1d7)](_0x3957da)[_0x1d2fcc(0x1e7)];_0x32eadb[_0x1d2fcc(0x1f0)](_0x37e7d3);}break;}case _0x1d2fcc(0x1d4):{const _0x4f486a=_0x2f4d16[_0x1d2fcc(0x21d)],_0x27f070=_0x2f4d16[_0x1d2fcc(0x1bf)],_0x24251e=new _0x32e742(_0x4f486a,_0x27f070);_0x11a04e[_0x1d2fcc(0x1d2)][_0x1d2fcc(0x1da)](_0x24251e),_0x6b86f1[_0x1d2fcc(0x1cf)][_0x1d2fcc(0x20f)](_0x24251e);break;}}}for(const _0x3e6546 of _0x32eadb){const _0x3795b3=_0x6b86f1[_0x1d2fcc(0x1cf)][_0x1d2fcc(0x200)](_0x3e6546),_0x240318=_0x1d2fcc(0x208)+_0x4b0fbf()+_0x1d2fcc(0x225);_0x2353f8[_0x1d2fcc(0x1f6)][_0x1d2fcc(0x1b4)](_0x240318,_0x20c09b(_0x3795b3,_0x6b86f1[_0x1d2fcc(0x1cf)]));}});}(_0x1b2129,_0x1f4eab,_0x5a1698):_0x5a1698[_0x5e702f(0x1cf)][_0x5e702f(0x20b)](_0x46849b=>{const _0x1ec237=_0x5e702f;for(const _0x407bde of _0x1b2129)if(_0x1ec237(0x1d4)==_0x407bde[_0x1ec237(0x1c6)]){const _0x5d9382=_0x407bde[_0x1ec237(0x21d)],_0x4490f1=_0x407bde[_0x1ec237(0x1bf)],_0x55447e=new _0x32e742(_0x5d9382,_0x4490f1);_0x46849b[_0x1ec237(0x1d2)][_0x1ec237(0x1da)](_0x55447e),_0x5a1698[_0x1ec237(0x1cf)][_0x1ec237(0x20f)](_0x55447e);}else{if(_0x1ec237(0x202)==_0x407bde[_0x1ec237(0x1c6)]){const _0x25d9ce=_0x407bde[_0x1ec237(0x1b6)],_0x317052=_0x407bde[_0x1ec237(0x201)];null!==_0x317052?_0x1f4eab[_0x1ec237(0x1f6)][_0x1ec237(0x1b4)](_0x25d9ce,_0x317052):_0x1f4eab[_0x1ec237(0x1f6)][_0x1ec237(0x1fc)](_0x25d9ce);}else _0x407bde[_0x1ec237(0x20c)]=null,_0x407bde[_0x1ec237(0x1c9)]=!0x1,_0x46849b[_0x1ec237(0x1d2)][_0x1ec237(0x1da)](_0x407bde),_0x5a1698[_0x1ec237(0x1cf)][_0x1ec237(0x20f)](_0x407bde);}});if(_0x3480d3){const _0xa1f283=getMinimalSelection(_0x5a1698,_0x1b2129,_0x1f4eab);expandSelectionWithContext(_0x5a1698[_0x5e702f(0x1cf)],_0xa1f283),function(_0x459ab1,_0x4cf157){const _0x47ab0e=_0x5e702f,_0x42ae12=_0x4cf157[_0x47ab0e(0x1b5)]()[_0x47ab0e(0x1c0)];let _0x55a83d=_0x4cf157[_0x47ab0e(0x1b5)]()[_0x47ab0e(0x1ee)];const _0x36990e=_0x42ae12[_0x47ab0e(0x1bb)];(_0x55a83d[_0x47ab0e(0x220)]||_0x55a83d[_0x47ab0e(0x1e7)]&&_0x55a83d[_0x47ab0e(0x1e7)]['is'](_0x47ab0e(0x1f7)))&&(_0x323d93(_0x55a83d,_0x47ab0e(0x1ff)),_0x55a83d=_0x55a83d[_0x47ab0e(0x1d7)](0x3)),(_0x42ae12[_0x47ab0e(0x220)]||_0x42ae12[_0x47ab0e(0x21a)]&&_0x42ae12[_0x47ab0e(0x21a)]['is'](_0x47ab0e(0x1f7)))&&(_0x323d93(_0x42ae12,_0x47ab0e(0x1ff)),function(_0x2cc503,_0x354537,_0x5f1ad6){const _0x5bb22c=_0x47ab0e;for(let [_0x2f9cfb,_0x4403c1]of _0x2cc503[_0x5bb22c(0x1f6)]){const _0x2ed0d0=_0x4403c1[_0x5bb22c(0x227)](_0x354537,_0x5f1ad6,!0x1);_0x4403c1=_0x2ed0d0[0x0],_0x2cc503[_0x5bb22c(0x1f6)][_0x5bb22c(0x1b4)](_0x2f9cfb,_0x4403c1);}}(_0x36990e,_0x42ae12,0x3),_0x42ae12[_0x47ab0e(0x1c3)]==_0x55a83d[_0x47ab0e(0x1c3)]&&(_0x55a83d=_0x55a83d[_0x47ab0e(0x1d7)](0x3)));const _0x4478c2=_0x459ab1[_0x47ab0e(0x216)](_0x459ab1[_0x47ab0e(0x1ef)](_0x36990e,0x0),_0x42ae12),_0x46099f=_0x459ab1[_0x47ab0e(0x216)](_0x55a83d,_0x459ab1[_0x47ab0e(0x1ef)](_0x36990e,_0x47ab0e(0x1ee))),_0x1c761b=[..._0x4478c2[_0x47ab0e(0x1e2)](),..._0x46099f[_0x47ab0e(0x1e2)]()];_0x1c761b[_0x47ab0e(0x1e1)]();for(const _0x1e26fb of _0x1c761b)_0x1a7ee2(_0x1e26fb),_transformMarkersByDeletion(_0x36990e,_0x1e26fb);}(_0x5a1698[_0x5e702f(0x1cf)],_0xa1f283);}const _0x14b826=_0x5a1698[_0x5e702f(0x221)][_0x5e702f(0x207)](_0x1f4eab,{'showSuggestionHighlights':!0x0});return{'content':_0x496521(_0x14b826),'hasChanges':!0x0};}(_0x3cbf6d,_0x402ade,_0x71fce7,_0x579e8d,_0x325e49);return{'type':_0x26386d[_0x2a1095(0x1f9)][0x0][_0x2a1095(0x1c6)],'index':_0x26386d[_0x2a1095(0x1ce)],'content':_0x3caefa,'hasChanges':_0x2f2ba8};});}function ro(_0x41e280,_0x1140a0){const _0x364daf=_0x1514;for(const [_0x28063f,_0x4851fa]of _0x41e280[_0x364daf(0x1f6)]){const _0x15fa7e=_0x46f23b[_0x364daf(0x211)](_0x4851fa[_0x364daf(0x1fb)](_0x1140a0));_0x41e280[_0x364daf(0x1f6)][_0x364daf(0x1b4)](_0x28063f,_0x15fa7e);}}export function getMinimalSelection(_0x43d914,_0x545757,_0x3997fd){const _0x582733=_0x1514,_0x351dbd=_0x43d914[_0x582733(0x1e0)][_0x582733(0x1d5)](_0x582733(0x223));let _0x2ecb07=_0x43d914[_0x582733(0x1cf)][_0x582733(0x1ef)](_0x3997fd,Number[_0x582733(0x1cd)]),_0x2f2b36=_0x43d914[_0x582733(0x1cf)][_0x582733(0x1ef)](_0x3997fd,0x0);for(const _0x4d7352 of _0x545757){let _0x2f711a,_0x164a8b;if(_0x351dbd[_0x582733(0x1df)](_0x4d7352))_0x2f711a=_0x4d7352[_0x582733(0x201)][_0x582733(0x1c0)],_0x164a8b=_0x4d7352[_0x582733(0x201)][_0x582733(0x1ee)];else switch(_0x2ecb07=_0x2ecb07[_0x582733(0x1fb)](_0x4d7352),_0x2f2b36=_0x2f2b36[_0x582733(0x1fb)](_0x4d7352),_0x4d7352[_0x582733(0x1c6)]){case _0x582733(0x209):_0x2f711a=_0x4d7352[_0x582733(0x210)],_0x164a8b=_0x2f711a[_0x582733(0x1d7)](0x1);break;case _0x582733(0x224):case _0x582733(0x1fe):case _0x582733(0x1cb):_0x2f711a=_0x4d7352[_0x582733(0x1bc)][_0x582733(0x1c0)],_0x164a8b=_0x4d7352[_0x582733(0x1bc)][_0x582733(0x1ee)];break;case _0x582733(0x212):_0x2f711a=_0x4d7352[_0x582733(0x210)],_0x164a8b=_0x2f711a[_0x582733(0x1d7)](_0x4d7352[_0x582733(0x1bf)]);break;case _0x582733(0x1ea):_0x2f711a=_0x4d7352[_0x582733(0x1be)],_0x164a8b=_0x4d7352[_0x582733(0x20d)];break;case _0x582733(0x1c7):{const _0x5dc229=_0x4d7352[_0x582733(0x222)][_0x582733(0x1f4)][_0x582733(0x1de)](0x0,-0x1);_0x2f711a=_0x43d914[_0x582733(0x1cf)][_0x582733(0x1ec)](_0x3997fd,_0x5dc229),_0x164a8b=_0x2f711a[_0x582733(0x1d7)](0x1);break;}case _0x582733(0x1d4):{const _0x1ca336=_0x4d7352[_0x582733(0x1bf)],_0x48e419=_0x4d7352[_0x582733(0x21d)][_0x582733(0x227)](_0x4d7352[_0x582733(0x222)],_0x1ca336),_0x445943=_0x4d7352[_0x582733(0x203)]();_0x582733(0x1d4)==_0x4d7352[_0x582733(0x1c6)]?(_0x2f711a=_0x48e419,_0x164a8b=_0x48e419):(_0x2f711a=_0x445943,_0x164a8b=_0x445943[_0x582733(0x1d7)](_0x1ca336));break;}}_0x2f711a&&_0x2f711a[_0x582733(0x1fa)](_0x2ecb07)&&(_0x2ecb07=_0x2f711a[_0x582733(0x218)](),_0x2ecb07[_0x582733(0x1d6)]=_0x582733(0x20e)),_0x164a8b&&_0x164a8b[_0x582733(0x20a)](_0x2f2b36)&&(_0x2f2b36=_0x164a8b[_0x582733(0x218)](),_0x2f2b36[_0x582733(0x1d6)]=_0x582733(0x20e));}return _0x43d914[_0x582733(0x1cf)][_0x582733(0x217)](_0x43d914[_0x582733(0x1cf)][_0x582733(0x216)](_0x2ecb07,_0x2f2b36));}function _0x1dd4(){const _0x420ca6=['newName','forward','split','element','createPositionFromPath','data-id','end','createPositionAt','add','move','isObject','1221574Dymmox','path','6484110qOSvTA','markers','$text','word','changes','isBefore','getTransformedByOperation','delete','9GUNYRI','removeAttribute','...','createRangeOn','newRange','marker','getMovedRangeStart','focus','$elementName','newValue','stringify','suggestion:formatBlock:$fakeWrap:','rename','isAfter','change','baseVersion','moveTargetPosition','toNone','applyOperation','position','_createFromRanges','insert','_getTransformedByDeletion','push','parse','createRange','createSelection','clone','schema','nodeBefore','isRegisteredAttribute','children','sourcePosition','3950656lcvCSJ','setTo','textNode','data','targetPosition','DocumentCompare','addAttribute',':$aiSuggestion','getOperations','_getTransformedByInsertion','set','getFirstRange','name','map','offset','suggestion:deletion:','oldValue','root','range','14259528ZgWkcQ','splitPosition','howMany','start','key','2813178pKcrsx','parent','SuggestionsConversion','backward','type','merge','node','isDocumentOperation','660796IaBKXD','changeAttribute','isBlock','POSITIVE_INFINITY','index','model','21tfIBJe','modifySelection','batch','$root','remove','get','stickiness','getShiftedBy','5485104pQZTuM','cloneNode','addOperation','oldName','removed','new','slice','isMarkedRemoveOperation','plugins','reverse','getMinimalFlatRanges','suggestion:insertion:','getDiff','suggestion:attribute:','length','nodeAfter'];_0x1dd4=function(){return _0x420ca6;};return _0x1dd4();}export function expandSelectionWithContext(_0xa90df9,_0x250eb2){const _0xe137a8=_0x1514;so(_0xa90df9,_0x250eb2,_0xe137a8(0x1e9));const _0x249fae=_0x250eb2[_0xe137a8(0x1b5)]();_0x250eb2[_0xe137a8(0x21f)]([]),_0x250eb2[_0xe137a8(0x21f)](_0x249fae,{'backward':!0x0}),so(_0xa90df9,_0x250eb2,_0xe137a8(0x1c5));}function so(_0x1d1768,_0x1a3af5,_0x150a77){const _0x5e4a5c=_0x1514;let _0x4e5cd0=0x14;for(;_0x4e5cd0;){_0x1d1768[_0x5e4a5c(0x1d1)](_0x1a3af5,{'unit':_0x5e4a5c(0x1f8),'direction':_0x150a77}),_0x4e5cd0--;const _0x43f012=_0x1a3af5[_0x5e4a5c(0x204)][_0x5e4a5c(0x1e9)==_0x150a77?_0x5e4a5c(0x21a):_0x5e4a5c(0x1e7)];if(_0x43f012&&_0x43f012['is'](_0x5e4a5c(0x1eb))&&_0x1d1768[_0x5e4a5c(0x219)][_0x5e4a5c(0x1cc)](_0x43f012)&&_0x1d1768[_0x5e4a5c(0x219)][_0x5e4a5c(0x1f2)](_0x43f012))break;}}export function _transformMarkersByDeletion(_0x40d762,_0x15d992){const _0x2727d8=_0x1514;for(const [_0x31cf9,_0x10df2e]of _0x40d762[_0x2727d8(0x1f6)]){const _0x3a06ea=_0x10df2e[_0x2727d8(0x213)](_0x15d992[_0x2727d8(0x1c0)],_0x15d992[_0x2727d8(0x1ee)][_0x2727d8(0x1b8)]-_0x15d992[_0x2727d8(0x1c0)][_0x2727d8(0x1b8)]);null!=_0x3a06ea?_0x40d762[_0x2727d8(0x1f6)][_0x2727d8(0x1b4)](_0x31cf9,_0x3a06ea):_0x40d762[_0x2727d8(0x1f6)][_0x2727d8(0x1fc)](_0x31cf9);}}
|
|
23
|
+
(function(_0x1b72f4,_0x24e144){const _0x25ad16=_0x5215,_0x23577c=_0x1b72f4();while(!![]){try{const _0x276d4b=-parseInt(_0x25ad16(0x171))/0x1*(parseInt(_0x25ad16(0x1cf))/0x2)+parseInt(_0x25ad16(0x1da))/0x3*(parseInt(_0x25ad16(0x1d4))/0x4)+-parseInt(_0x25ad16(0x1d7))/0x5+parseInt(_0x25ad16(0x1a8))/0x6+parseInt(_0x25ad16(0x1b7))/0x7+parseInt(_0x25ad16(0x1a7))/0x8+-parseInt(_0x25ad16(0x198))/0x9;if(_0x276d4b===_0x24e144)break;else _0x23577c['push'](_0x23577c['shift']());}catch(_0x5d0227){_0x23577c['push'](_0x23577c['shift']());}}}(_0x57d1,0x39f5e));import{findOne as _0x7bf627,getAttribute as _0x588a05,Document as _0x179752,serialize as _0x7fbfc7,parse as _0x498ad6}from'./htmlparser.js';import{fixElementSuggestionRange as _0x52206b}from'ckeditor5-collaboration/src/collaboration-core.js';import{ModelRange as _0x121113,_DetachOperation as _0xabf718,_removeFromModelNodeList as _0x4a5423,_insertIntoModelNodeList as _0x358d5e}from'ckeditor5/src/engine.js';function _0x57d1(){const _0x31e077=['schema','createPositionAt','removed','start','suggestion:attribute:','8361XtpjXs','createPositionFromPath','length','isBlock','set','POSITIVE_INFINITY','range','removeAttribute','splitPosition','children','getMovedRangeStart','parse','moveTargetPosition','nodeAfter','addOperation','toNone','$elementName','SuggestionsConversion','change','index','DocumentCompare','isDocumentOperation','root','createSelection','clone','stickiness','sourcePosition','nodeBefore','changeAttribute','textNode','element','move','howMany','changes','getFirstRange','end','setTo','focus','data','6000984sbtpcM','$root','parent','offset','insert','oldName','addAttribute','position','markers','reverse','createRange','suggestion:insertion:','map','slice','modifySelection','3721568gqqoso','1819992eMzigK','isAfter','stringify','getOperations','add','isObject','merge','backward','model','getMinimalFlatRanges','data-id','_getTransformedByInsertion','batch','word','newRange','151543AAHgKU','_getTransformedByDeletion','isBefore',':$aiSuggestion','key','targetPosition','getTransformedByOperation','split','delete','applyOperation','remove','oldValue','createRangeOn','_createFromRanges','...','cloneNode','isRegisteredAttribute','node','new','plugins','newValue','path','$text','isMarkedRemoveOperation','2kwjKiz','name','push','newName','suggestion:formatBlock:$fakeWrap:','12QFutHK','forward','getDiff','1247555uuVHyd','type','getShiftedBy','371877odGmBK','baseVersion','suggestion:deletion:','get','marker','rename'];_0x57d1=function(){return _0x31e077;};return _0x57d1();}import{uid as _0x42dc3d}from'ckeditor5/src/utils.js';export function getSuggestionPartsFromReply({editor:_0x810f63,changeGroups:_0x3c12e4,documentContextContent:_0x337d12,showDiff:_0x333bf9,trimUnchanged:_0x51cc2e=!0x0}){const _0x461c4f=_0x5215;return _0x3c12e4[_0x461c4f(0x1a4)](_0x2e02aa=>{const _0x5d2e43=_0x461c4f,_0x518c3e=new _0x179752([]),_0x54a55f=new _0x179752([]);for(const _0x1151da of _0x2e02aa[_0x5d2e43(0x192)])if(_0x333bf9&&_0x5d2e43(0x16e)==_0x1151da[_0x5d2e43(0x1d8)]||_0x54a55f[_0x5d2e43(0x17a)][_0x5d2e43(0x1d1)](_0x1151da[_0x5d2e43(0x1c8)][_0x5d2e43(0x1c6)](!0x0)),_0x5d2e43(0x1c9)!=_0x1151da[_0x5d2e43(0x1d8)]&&(_0x333bf9||_0x5d2e43(0x16e)!=_0x1151da[_0x5d2e43(0x1d8)])){const _0x4c5571=_0x7bf627(_0x4b1f15=>_0x588a05(_0x4b1f15,_0x5d2e43(0x1b2))==_0x1151da['id'],_0x337d12,!0x0);_0x4c5571&&_0x518c3e[_0x5d2e43(0x17a)][_0x5d2e43(0x1d1)](_0x4c5571[_0x5d2e43(0x1c6)](!0x0));}const {content:_0x57beb7,hasChanges:_0x3efccf}=function(_0x4ccd47,_0x50bc68,_0x3c826b,_0x55535a,_0x4d8276=!0x0){const _0x4591e5=_0x5d2e43,_0x521d09=_0x4ccd47[_0x4591e5(0x1ca)][_0x4591e5(0x1dd)](_0x4591e5(0x185)),_0x38b5ed=_0x7fbfc7(_0x50bc68),_0x106e73=_0x7fbfc7(_0x3c826b),_0x327714=_0x4ccd47[_0x4591e5(0x197)][_0x4591e5(0x17c)](_0x38b5ed,_0x4591e5(0x199)),_0x1e45bb=_0x4ccd47[_0x4591e5(0x1b0)][_0x4591e5(0x1e1)](_0x327714,0x0),_0x2e3fe3=_0x521d09[_0x4591e5(0x1d6)](_0x38b5ed,_0x106e73,{'anchor':_0x1e45bb,'markDeletions':_0x55535a}),_0x342556=_0x2e3fe3[_0x4591e5(0x1ab)]();if(0x0==_0x342556[_0x4591e5(0x173)])return{'content':_0x50bc68[_0x4591e5(0x1c6)](!0x0),'hasChanges':!0x1};_0x55535a?function(_0x15ac55,_0x4016d2,_0x165d1f){const _0x3a2f4e=_0x4591e5;if(0x0==_0x15ac55[_0x3a2f4e(0x173)])return;const _0x224b60=_0x165d1f[_0x3a2f4e(0x1ca)][_0x3a2f4e(0x1dd)](_0x3a2f4e(0x185)),_0x5b2b06=_0x165d1f[_0x3a2f4e(0x1ca)][_0x3a2f4e(0x1dd)](_0x3a2f4e(0x182));_0x165d1f[_0x3a2f4e(0x1b0)][_0x3a2f4e(0x183)](_0x11bf77=>{const _0x4dc26a=_0x3a2f4e,_0x5f2b75=new Set();for(let _0x5c6698=0x0;_0x5c6698<_0x15ac55[_0x4dc26a(0x173)];_0x5c6698++){const _0x196395=_0x15ac55[_0x5c6698];if(_0x196395[_0x4dc26a(0x1db)]=null,_0x196395[_0x4dc26a(0x186)]=!0x1,_0x224b60[_0x4dc26a(0x1ce)](_0x196395)){const _0x2d2acd=_0x52206b(_0x196395[_0x4dc26a(0x1b6)],_0x165d1f[_0x4dc26a(0x1b0)]),_0x156475=_0x4dc26a(0x1dc)+_0x42dc3d()+_0x4dc26a(0x1ba);_0x4016d2[_0x4dc26a(0x1a0)][_0x4dc26a(0x175)](_0x156475,_0x2d2acd);}else switch(_0x196395[_0x4dc26a(0x1d8)]){case _0x4dc26a(0x1df):{if(_0x196395[_0x4dc26a(0x19d)]==_0x196395[_0x4dc26a(0x1d2)])break;_0x11bf77[_0x4dc26a(0x1b4)][_0x4dc26a(0x17f)](_0x196395),_0x165d1f[_0x4dc26a(0x1b0)][_0x4dc26a(0x1c0)](_0x196395);const _0x2b2372=_0x4dc26a(0x181),_0x18d231=_0x196395[_0x4dc26a(0x19f)],_0x1ff324=_0x165d1f[_0x4dc26a(0x1b0)][_0x4dc26a(0x1a2)](_0x18d231,_0x165d1f[_0x4dc26a(0x1b0)][_0x4dc26a(0x1e1)](_0x18d231[_0x4dc26a(0x17e)],_0x4dc26a(0x194))),_0x27cc16=_0x4dc26a(0x170)+_0x2b2372+':'+_0x42dc3d()+_0x4dc26a(0x1ba);_0x4016d2[_0x4dc26a(0x1a0)][_0x4dc26a(0x175)](_0x27cc16,_0x1ff324);break;}case _0x4dc26a(0x19e):case _0x4dc26a(0x178):case _0x4dc26a(0x18d):{if(_0x196395[_0x4dc26a(0x1c2)]==_0x196395[_0x4dc26a(0x1cb)])break;_0x11bf77[_0x4dc26a(0x1b4)][_0x4dc26a(0x17f)](_0x196395),_0x165d1f[_0x4dc26a(0x1b0)][_0x4dc26a(0x1c0)](_0x196395);const _0x1f30c3=_0x196395[_0x4dc26a(0x1bb)];if(!_0x5b2b06[_0x4dc26a(0x1c7)](_0x1f30c3))break;const _0x2da68c=_0x52206b(_0x196395[_0x4dc26a(0x177)],_0x165d1f[_0x4dc26a(0x1b0)]),_0x19ce9f=_0x4dc26a(0x170)+_0x1f30c3+':'+_0x42dc3d()+_0x4dc26a(0x1ba);_0x4016d2[_0x4dc26a(0x1a0)][_0x4dc26a(0x175)](_0x19ce9f,_0x2da68c);break;}case _0x4dc26a(0x19c):{_0x11bf77[_0x4dc26a(0x1b4)][_0x4dc26a(0x17f)](_0x196395),_0x165d1f[_0x4dc26a(0x1b0)][_0x4dc26a(0x1c0)](_0x196395);if(_0x15ac55[_0x5c6698+0x1]&&_0x4dc26a(0x190)==_0x15ac55[_0x5c6698+0x1][_0x4dc26a(0x1d8)]){ro(_0x4016d2,_0x196395);break;}const _0x4ccf18=_0x196395[_0x4dc26a(0x19f)],_0x5b9b77=_0x196395[_0x4dc26a(0x191)],_0x10c505=_0x52206b(_0x165d1f[_0x4dc26a(0x1b0)][_0x4dc26a(0x1a2)](_0x4ccf18,_0x4ccf18[_0x4dc26a(0x1d9)](_0x5b9b77)),_0x165d1f[_0x4dc26a(0x1b0)]),_0x30da4f=_0x4dc26a(0x1a3)+_0x42dc3d()+_0x4dc26a(0x1ba);_0x4016d2[_0x4dc26a(0x1a0)][_0x4dc26a(0x175)](_0x30da4f,_0x10c505);break;}case _0x4dc26a(0x1be):{_0x11bf77[_0x4dc26a(0x1b4)][_0x4dc26a(0x17f)](_0x196395),_0x165d1f[_0x4dc26a(0x1b0)][_0x4dc26a(0x1c0)](_0x196395);const _0x25e590=_0x196395[_0x4dc26a(0x179)],_0x57b774=_0x196395[_0x4dc26a(0x17d)],_0x1101f0=_0x165d1f[_0x4dc26a(0x1b0)][_0x4dc26a(0x1a2)](_0x25e590,_0x57b774),_0x399d2e=_0x4dc26a(0x1a3)+_0x42dc3d()+_0x4dc26a(0x1ba);_0x4016d2[_0x4dc26a(0x1a0)][_0x4dc26a(0x175)](_0x399d2e,_0x1101f0);break;}case _0x4dc26a(0x190):{_0x11bf77[_0x4dc26a(0x1b4)][_0x4dc26a(0x17f)](_0x196395),_0x165d1f[_0x4dc26a(0x1b0)][_0x4dc26a(0x1c0)](_0x196395),_0x15ac55[_0x5c6698-0x1]&&_0x4dc26a(0x19c)==_0x15ac55[_0x5c6698-0x1][_0x4dc26a(0x1d8)]&&ro(_0x4016d2,_0x196395);const _0x49aa35=_0x196395[_0x4dc26a(0x17b)](),_0x402147=_0x196395[_0x4dc26a(0x191)];for(let _0x1b4c65=0x0;_0x1b4c65<_0x402147;_0x1b4c65++){const _0x30ad0c=_0x49aa35[_0x4dc26a(0x1d9)](_0x1b4c65)[_0x4dc26a(0x17e)];_0x5f2b75[_0x4dc26a(0x1ac)](_0x30ad0c);}break;}case _0x4dc26a(0x1c1):{const _0x8e5dd0=_0x196395[_0x4dc26a(0x18b)],_0x37f5ce=_0x196395[_0x4dc26a(0x191)],_0x2f1cdf=new _0xabf718(_0x8e5dd0,_0x37f5ce);_0x11bf77[_0x4dc26a(0x1b4)][_0x4dc26a(0x17f)](_0x2f1cdf),_0x165d1f[_0x4dc26a(0x1b0)][_0x4dc26a(0x1c0)](_0x2f1cdf);break;}}}for(const _0x18484c of _0x5f2b75){const _0x79a3d0=_0x165d1f[_0x4dc26a(0x1b0)][_0x4dc26a(0x1c3)](_0x18484c),_0x329359=_0x4dc26a(0x1d3)+_0x42dc3d()+_0x4dc26a(0x1ba);_0x4016d2[_0x4dc26a(0x1a0)][_0x4dc26a(0x175)](_0x329359,_0x52206b(_0x79a3d0,_0x165d1f[_0x4dc26a(0x1b0)]));}});}(_0x342556,_0x327714,_0x4ccd47):_0x4ccd47[_0x4591e5(0x1b0)][_0x4591e5(0x183)](_0x5bcdd0=>{const _0x180f27=_0x4591e5;for(const _0x162d9c of _0x342556)if(_0x180f27(0x1c1)==_0x162d9c[_0x180f27(0x1d8)]){const _0x10cc8a=_0x162d9c[_0x180f27(0x18b)],_0x45bf50=_0x162d9c[_0x180f27(0x191)],_0x680b3a=new _0xabf718(_0x10cc8a,_0x45bf50);_0x5bcdd0[_0x180f27(0x1b4)][_0x180f27(0x17f)](_0x680b3a),_0x4ccd47[_0x180f27(0x1b0)][_0x180f27(0x1c0)](_0x680b3a);}else{if(_0x180f27(0x1de)==_0x162d9c[_0x180f27(0x1d8)]){const _0x154b06=_0x162d9c[_0x180f27(0x1d0)],_0x1458ce=_0x162d9c[_0x180f27(0x1b6)];null!==_0x1458ce?_0x327714[_0x180f27(0x1a0)][_0x180f27(0x175)](_0x154b06,_0x1458ce):_0x327714[_0x180f27(0x1a0)][_0x180f27(0x1bf)](_0x154b06);}else _0x162d9c[_0x180f27(0x1db)]=null,_0x162d9c[_0x180f27(0x186)]=!0x1,_0x5bcdd0[_0x180f27(0x1b4)][_0x180f27(0x17f)](_0x162d9c),_0x4ccd47[_0x180f27(0x1b0)][_0x180f27(0x1c0)](_0x162d9c);}});if(_0x4d8276){const _0xe3ff63=getMinimalSelection(_0x4ccd47,_0x342556,_0x327714);expandSelectionWithContext(_0x4ccd47[_0x4591e5(0x1b0)],_0xe3ff63),function(_0x40b274,_0x4e3931){const _0x3704ec=_0x4591e5,_0x16d05d=_0x4e3931[_0x3704ec(0x193)]()[_0x3704ec(0x16f)];let _0x2f98e7=_0x4e3931[_0x3704ec(0x193)]()[_0x3704ec(0x194)];const _0x17a831=_0x16d05d[_0x3704ec(0x187)];(_0x2f98e7[_0x3704ec(0x18e)]||_0x2f98e7[_0x3704ec(0x17e)]&&_0x2f98e7[_0x3704ec(0x17e)]['is'](_0x3704ec(0x1cd)))&&(_0x358d5e(_0x2f98e7,_0x3704ec(0x1c5)),_0x2f98e7=_0x2f98e7[_0x3704ec(0x1d9)](0x3)),(_0x16d05d[_0x3704ec(0x18e)]||_0x16d05d[_0x3704ec(0x18c)]&&_0x16d05d[_0x3704ec(0x18c)]['is'](_0x3704ec(0x1cd)))&&(_0x358d5e(_0x16d05d,_0x3704ec(0x1c5)),function(_0x1e374c,_0x1c3830,_0x4e32c4){const _0x31fc31=_0x3704ec;for(let [_0x282709,_0x26022f]of _0x1e374c[_0x31fc31(0x1a0)]){const _0x22e900=_0x26022f[_0x31fc31(0x1b3)](_0x1c3830,_0x4e32c4,!0x1);_0x26022f=_0x22e900[0x0],_0x1e374c[_0x31fc31(0x1a0)][_0x31fc31(0x175)](_0x282709,_0x26022f);}}(_0x17a831,_0x16d05d,0x3),_0x16d05d[_0x3704ec(0x19a)]==_0x2f98e7[_0x3704ec(0x19a)]&&(_0x2f98e7=_0x2f98e7[_0x3704ec(0x1d9)](0x3)));const _0x5bb921=_0x40b274[_0x3704ec(0x1a2)](_0x40b274[_0x3704ec(0x1e1)](_0x17a831,0x0),_0x16d05d),_0x1c49c5=_0x40b274[_0x3704ec(0x1a2)](_0x2f98e7,_0x40b274[_0x3704ec(0x1e1)](_0x17a831,_0x3704ec(0x194))),_0x59a9c8=[..._0x5bb921[_0x3704ec(0x1b1)](),..._0x1c49c5[_0x3704ec(0x1b1)]()];_0x59a9c8[_0x3704ec(0x1a1)]();for(const _0x12adb2 of _0x59a9c8)_0x4a5423(_0x12adb2),_transformMarkersByDeletion(_0x17a831,_0x12adb2);}(_0x4ccd47[_0x4591e5(0x1b0)],_0xe3ff63);}const _0x3f8d51=_0x4ccd47[_0x4591e5(0x197)][_0x4591e5(0x1aa)](_0x327714,{'showSuggestionHighlights':!0x0});return{'content':_0x498ad6(_0x3f8d51),'hasChanges':!0x0};}(_0x810f63,_0x518c3e,_0x54a55f,_0x333bf9,_0x51cc2e);return{'type':_0x2e02aa[_0x5d2e43(0x192)][0x0][_0x5d2e43(0x1d8)],'index':_0x2e02aa[_0x5d2e43(0x184)],'content':_0x57beb7,'hasChanges':_0x3efccf};});}function _0x5215(_0x498206,_0xefc3d1){const _0x57d19c=_0x57d1();return _0x5215=function(_0x5215fd,_0x252236){_0x5215fd=_0x5215fd-0x16e;let _0x58a1aa=_0x57d19c[_0x5215fd];return _0x58a1aa;},_0x5215(_0x498206,_0xefc3d1);}function ro(_0xb50393,_0x43f56b){const _0x154ed5=_0x5215;for(const [_0x5d8b40,_0x50c6d8]of _0xb50393[_0x154ed5(0x1a0)]){const _0x306f10=_0x121113[_0x154ed5(0x1c4)](_0x50c6d8[_0x154ed5(0x1bd)](_0x43f56b));_0xb50393[_0x154ed5(0x1a0)][_0x154ed5(0x175)](_0x5d8b40,_0x306f10);}}export function getMinimalSelection(_0x8d2e9e,_0x5e8db2,_0x29507b){const _0x5a1b2e=_0x5215,_0x526d4b=_0x8d2e9e[_0x5a1b2e(0x1ca)][_0x5a1b2e(0x1dd)](_0x5a1b2e(0x185));let _0x423d14=_0x8d2e9e[_0x5a1b2e(0x1b0)][_0x5a1b2e(0x1e1)](_0x29507b,Number[_0x5a1b2e(0x176)]),_0x15a6cc=_0x8d2e9e[_0x5a1b2e(0x1b0)][_0x5a1b2e(0x1e1)](_0x29507b,0x0);for(const _0x33caf6 of _0x5e8db2){let _0x29bd3,_0x4143e6;if(_0x526d4b[_0x5a1b2e(0x1ce)](_0x33caf6))_0x29bd3=_0x33caf6[_0x5a1b2e(0x1b6)][_0x5a1b2e(0x16f)],_0x4143e6=_0x33caf6[_0x5a1b2e(0x1b6)][_0x5a1b2e(0x194)];else switch(_0x423d14=_0x423d14[_0x5a1b2e(0x1bd)](_0x33caf6),_0x15a6cc=_0x15a6cc[_0x5a1b2e(0x1bd)](_0x33caf6),_0x33caf6[_0x5a1b2e(0x1d8)]){case _0x5a1b2e(0x1df):_0x29bd3=_0x33caf6[_0x5a1b2e(0x19f)],_0x4143e6=_0x29bd3[_0x5a1b2e(0x1d9)](0x1);break;case _0x5a1b2e(0x19e):case _0x5a1b2e(0x178):case _0x5a1b2e(0x18d):_0x29bd3=_0x33caf6[_0x5a1b2e(0x177)][_0x5a1b2e(0x16f)],_0x4143e6=_0x33caf6[_0x5a1b2e(0x177)][_0x5a1b2e(0x194)];break;case _0x5a1b2e(0x19c):_0x29bd3=_0x33caf6[_0x5a1b2e(0x19f)],_0x4143e6=_0x29bd3[_0x5a1b2e(0x1d9)](_0x33caf6[_0x5a1b2e(0x191)]);break;case _0x5a1b2e(0x1be):_0x29bd3=_0x33caf6[_0x5a1b2e(0x179)],_0x4143e6=_0x33caf6[_0x5a1b2e(0x17d)];break;case _0x5a1b2e(0x1ae):{const _0x56319f=_0x33caf6[_0x5a1b2e(0x1bc)][_0x5a1b2e(0x1cc)][_0x5a1b2e(0x1a5)](0x0,-0x1);_0x29bd3=_0x8d2e9e[_0x5a1b2e(0x1b0)][_0x5a1b2e(0x172)](_0x29507b,_0x56319f),_0x4143e6=_0x29bd3[_0x5a1b2e(0x1d9)](0x1);break;}case _0x5a1b2e(0x1c1):{const _0x4563aa=_0x33caf6[_0x5a1b2e(0x191)],_0x51fddd=_0x33caf6[_0x5a1b2e(0x18b)][_0x5a1b2e(0x1b3)](_0x33caf6[_0x5a1b2e(0x1bc)],_0x4563aa),_0x296d90=_0x33caf6[_0x5a1b2e(0x17b)]();_0x5a1b2e(0x1c1)==_0x33caf6[_0x5a1b2e(0x1d8)]?(_0x29bd3=_0x51fddd,_0x4143e6=_0x51fddd):(_0x29bd3=_0x296d90,_0x4143e6=_0x296d90[_0x5a1b2e(0x1d9)](_0x4563aa));break;}}_0x29bd3&&_0x29bd3[_0x5a1b2e(0x1b9)](_0x423d14)&&(_0x423d14=_0x29bd3[_0x5a1b2e(0x189)](),_0x423d14[_0x5a1b2e(0x18a)]=_0x5a1b2e(0x180)),_0x4143e6&&_0x4143e6[_0x5a1b2e(0x1a9)](_0x15a6cc)&&(_0x15a6cc=_0x4143e6[_0x5a1b2e(0x189)](),_0x15a6cc[_0x5a1b2e(0x18a)]=_0x5a1b2e(0x180));}return _0x8d2e9e[_0x5a1b2e(0x1b0)][_0x5a1b2e(0x188)](_0x8d2e9e[_0x5a1b2e(0x1b0)][_0x5a1b2e(0x1a2)](_0x423d14,_0x15a6cc));}export function expandSelectionWithContext(_0x5f0c48,_0x352f1d){const _0x2de228=_0x5215;so(_0x5f0c48,_0x352f1d,_0x2de228(0x1d5));const _0xdb54b2=_0x352f1d[_0x2de228(0x193)]();_0x352f1d[_0x2de228(0x195)]([]),_0x352f1d[_0x2de228(0x195)](_0xdb54b2,{'backward':!0x0}),so(_0x5f0c48,_0x352f1d,_0x2de228(0x1af));}function so(_0x4742bf,_0x122441,_0x374325){const _0x1943c9=_0x5215;let _0x50a7ff=0x14;for(;_0x50a7ff;){_0x4742bf[_0x1943c9(0x1a6)](_0x122441,{'unit':_0x1943c9(0x1b5),'direction':_0x374325}),_0x50a7ff--;const _0xd23f85=_0x122441[_0x1943c9(0x196)][_0x1943c9(0x1d5)==_0x374325?_0x1943c9(0x18c):_0x1943c9(0x17e)];if(_0xd23f85&&_0xd23f85['is'](_0x1943c9(0x18f))&&_0x4742bf[_0x1943c9(0x1e0)][_0x1943c9(0x174)](_0xd23f85)&&_0x4742bf[_0x1943c9(0x1e0)][_0x1943c9(0x1ad)](_0xd23f85))break;}}export function _transformMarkersByDeletion(_0x247ed3,_0x2081a6){const _0x2fa6fa=_0x5215;for(const [_0x5b667d,_0x1d45bf]of _0x247ed3[_0x2fa6fa(0x1a0)]){const _0x3c11de=_0x1d45bf[_0x2fa6fa(0x1b8)](_0x2081a6[_0x2fa6fa(0x16f)],_0x2081a6[_0x2fa6fa(0x194)][_0x2fa6fa(0x19b)]-_0x2081a6[_0x2fa6fa(0x16f)][_0x2fa6fa(0x19b)]);null!=_0x3c11de?_0x247ed3[_0x2fa6fa(0x1a0)][_0x2fa6fa(0x175)](_0x5b667d,_0x3c11de):_0x247ed3[_0x2fa6fa(0x1a0)][_0x2fa6fa(0x1bf)](_0x5b667d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1ba56f,_0x41655c){const _0x3cd92b=_0xdc53,_0x373d38=_0x1ba56f();while(!![]){try{const _0x13a6c7=parseInt(_0x3cd92b(0xcb))/0x1+-parseInt(_0x3cd92b(0xd5))/0x2*(-parseInt(_0x3cd92b(0xc9))/0x3)+parseInt(_0x3cd92b(0xc6))/0x4+parseInt(_0x3cd92b(0xd2))/0x5*(-parseInt(_0x3cd92b(0xd6))/0x6)+-parseInt(_0x3cd92b(0xc7))/0x7*(parseInt(_0x3cd92b(0xbf))/0x8)+-parseInt(_0x3cd92b(0xc3))/0x9+-parseInt(_0x3cd92b(0xcc))/0xa;if(_0x13a6c7===_0x41655c)break;else _0x373d38['push'](_0x373d38['shift']());}catch(_0x2dcb8f){_0x373d38['push'](_0x373d38['shift']());}}}(_0x20ee,0x6986d));import{parseDocument as _0x5e915c}from'htmlparser2';import{append as _0x3e8696,appendChild as _0xf0babb,find as _0x2dd42e,findAll as _0x27f667,findOne as _0x238107,getChildren as _0x5d2e8c,isComment as _0x2d3a03,isTag as _0x52ac8f,prepend as _0x3d272c,prependChild as _0x4696b3,removeElement as _0xa981a9,replaceElement as _0x4cf27e,textContent as _0x309a16,getParent as _0x4f035d,hasChildren as _0x362b37}from'domutils';import _0x7ad650 from'dom-serializer';import{cloneNode as _0x5a14b2,isDocument as _0x32202a,isText as _0x32933a,Element as _0x118cca,Text as _0x65a3a9,Document as _0x4fb7ac,NodeWithChildren as _0x90f7ff}from'domhandler';export{_0x5a14b2 as cloneNode,_0x2dd42e as find,_0x238107 as findOne,_0x27f667 as findAll,_0x5d2e8c as getChildren,_0x4f035d as getParent,_0x2d3a03 as isComment,_0x32202a as isDocument,_0x52ac8f as isTag,_0x32933a as isText,_0x3e8696 as append,_0xf0babb as appendChild,_0x3d272c as prepend,_0x4696b3 as prependChild,_0x7ad650 as render,_0xa981a9 as removeElement,_0x4cf27e as replaceElement,_0x309a16 as textContent,_0x362b37 as hasChildren,_0x118cca as Element,_0x4fb7ac as Document,_0x90f7ff as NodeWithChildren,_0x65a3a9 as Text};export function parse(_0x58570d){return _0x5e915c(_0x58570d);}export function serialize(_0x1aa772){return _0x7ad650(_0x1aa772);}export function findByAttribute(_0x58b762,_0x4fea52,_0x2cae4c){const _0x2c9336=_0xdc53,_0x215972=null!==_0x4fea52?_0x342707=>_0x342707[_0x2c9336(0xc8)][_0x58b762]===_0x4fea52:_0x5c71b8=>Boolean(_0x5c71b8[_0x2c9336(0xc8)][_0x58b762]);return _0x238107(_0x4f7702=>_0x52ac8f(_0x4f7702)&&_0x215972(_0x4f7702),_0x2cae4c);}function _0xdc53(_0x5b6648,_0x55f740){const _0x20ee19=_0x20ee();return _0xdc53=function(_0xdc53ce,_0x31f19c){_0xdc53ce=_0xdc53ce-0xbf;let _0x12ac04=_0x20ee19[_0xdc53ce];return _0x12ac04;},_0xdc53(_0x5b6648,_0x55f740);}export function findAllByAttribute(_0x527c8d,_0x1afa65,_0x4f7907){const _0x40ccc1=_0xdc53,_0x2f2309=null!==_0x1afa65?_0x42bde7=>_0x42bde7[_0x40ccc1(0xc8)][_0x527c8d]===_0x1afa65:_0x456bde=>Boolean(_0x456bde[_0x40ccc1(0xc8)][_0x527c8d]);return _0x27f667(_0x5ac3de=>_0x52ac8f(_0x5ac3de)&&_0x2f2309(_0x5ac3de),_0x4f7907);}export function findAllComments(_0x1ed27a){return _0x2dd42e(_0x21b834=>_0x2d3a03(_0x21b834),_0x1ed27a,!0x0,0x1/0x0);}export function getAttribute(_0x57a858,_0x8f4553){const _0x3e096d=_0xdc53;return _0x57a858&&_0x52ac8f(_0x57a858)?_0x57a858[_0x3e096d(0xc8)][_0x8f4553]:null;}export function setAttribute(_0xceff36,_0x50edcd,_0x31a229){const _0x405039=_0xdc53;_0x52ac8f(_0xceff36)&&(null===_0x31a229?delete _0xceff36[_0x405039(0xc8)][_0x50edcd]:_0xceff36[_0x405039(0xc8)][_0x50edcd]=_0x31a229);}export function insertElement(_0x398401,_0x879f48,_0x4e9168){const _0x1fcdaa=_0xdc53,_0x148676=_0x879f48[_0x1fcdaa(0xc0)](!0x0);_0x1fcdaa(0xc5)===_0x4e9168?_0x3d272c(_0x398401,_0x148676):_0x1fcdaa(0xce)===_0x4e9168?_0x4696b3(_0x398401,_0x148676):_0x1fcdaa(0xc1)===_0x4e9168?_0xf0babb(_0x398401,_0x148676):_0x1fcdaa(0xd7)===_0x4e9168&&_0x3e8696(_0x398401,_0x148676);}export function moveElement(_0x13b9bb,_0x2f289c){_0xa981a9(_0x13b9bb),_0x4cf27e(_0x2f289c,_0x13b9bb);}export function clone(_0x4829bd){const _0x17e5af=_0xdc53;return _0x4829bd[_0x17e5af(0xc0)](!0x0);}export function getParents(_0x37d656){const _0x3d7cbe=_0xdc53,_0x178542=[];let _0x484f01=_0x37d656;for(;_0x484f01;)_0x484f01=_0x4f035d(_0x484f01),_0x484f01&&_0x178542[_0x3d7cbe(0xd1)](_0x484f01);return _0x178542;}export function normalizeHTML(_0x45944a){const _0x1469e1=_0xdc53;return _0x45944a[_0x1469e1(0xcd)](/^\s+/gm,'')[_0x1469e1(0xcd)](/\s+$/gm,'')[_0x1469e1(0xcd)](/\n*/g,'')[_0x1469e1(0xcd)](/\s+/g,'\x20')[_0x1469e1(0xcd)](/>\s*</g,'><');}export function areNodesSame(_0x3606de,_0x573a82){return normalizeHTML(serialize(_0x3606de))===normalizeHTML(serialize(_0x573a82));}function _0x20ee(){const _0x4c6111=['attribs','3039LzYsPU','map','677030IWMriA','4812410SRyQOd','replace','afterbegin','indexOf','nextSibling','push','5afXhZg','forEach','slice','974NKipOa','1593840WjXcLy','afterend','8POwnAA','cloneNode','beforeend','parentNode','4509297TAXyoi','reverse','beforebegin','3265724HJXokR','2146487YaTDJm'];_0x20ee=function(){return _0x4c6111;};return _0x20ee();}export function getNodeNestingLevel(_0x4618f5){const _0x554981=_0xdc53;let _0x14ed1f=0x0;for(;_0x4618f5[_0x554981(0xc2)];)_0x4618f5=_0x4618f5[_0x554981(0xc2)],_0x14ed1f++;return _0x14ed1f;}export function removeElementsAfter(_0x14ece1){const _0x43bfae=_0xdc53,_0x5d2b7b=[];let _0xb5d7c0=_0x14ece1[_0x43bfae(0xd0)];for(;_0xb5d7c0;)_0x5d2b7b[_0x43bfae(0xd1)](_0xb5d7c0),_0xb5d7c0=_0xb5d7c0[_0x43bfae(0xd0)];_0x5d2b7b[_0x43bfae(0xd3)](_0x54fd9d=>{_0xa981a9(_0x54fd9d);});}export function getNodePath(_0x4f88b1){const _0xb9c0b8=_0xdc53;return[_0x4f88b1,...getParents(_0x4f88b1)][_0xb9c0b8(0xd4)](0x0,-0x1)[_0xb9c0b8(0xca)](_0x4c69e4=>{const _0x55f10d=_0xb9c0b8,_0xc67dac=_0x4f035d(_0x4c69e4);return _0x5d2e8c(_0xc67dac)[_0x55f10d(0xcf)](_0x4c69e4);})[_0xb9c0b8(0xc4)]();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42332c=_0x1d13;(function(_0x59b113,_0xf10214){const _0x173b1f=_0x1d13,_0x161849=_0x59b113();while(!![]){try{const _0x655753=-parseInt(_0x173b1f(0xa4))/0x1+-parseInt(_0x173b1f(0x9a))/0x2*(parseInt(_0x173b1f(0x7a))/0x3)+parseInt(_0x173b1f(0xa6))/0x4+-parseInt(_0x173b1f(0xad))/0x5*(parseInt(_0x173b1f(0xb4))/0x6)+-parseInt(_0x173b1f(0x7f))/0x7*(parseInt(_0x173b1f(0x88))/0x8)+-parseInt(_0x173b1f(0x8e))/0x9*(-parseInt(_0x173b1f(0xa2))/0xa)+parseInt(_0x173b1f(0x9e))/0xb;if(_0x655753===_0xf10214)break;else _0x161849['push'](_0x161849['shift']());}catch(_0x53831f){_0x161849['push'](_0x161849['shift']());}}}(_0x3165,0x83edc));import _0x29625d from'morphdom';import{NodeWithChildren as _0x1011eb,Text as _0x36d090,Element as _0x1c65da,isText as _0x44dd03,isDocument as _0x16cb36,isTag as _0x34a986,cloneNode as _0xb326ee,getChildren as _0x40a52c,prepend as _0xa05aff,removeElement as _0x47abc3,textContent as _0x5074ce,render as _0x184ad4}from'./htmlparser.js';export class HTMLStreamer{[_0x42332c(0x95)];[_0x42332c(0x85)]=!0x1;[_0x42332c(0xb3)]=null;[_0x42332c(0x8f)]=[];[_0x42332c(0x9b)]=0x0;[_0x42332c(0x84)]=null;[_0x42332c(0xab)]=0x0;constructor(_0x57e399){const _0x55e1d5=_0x42332c;this[_0x55e1d5(0x95)]={'delay':_0x57e399[_0x55e1d5(0x9f)]??0x14,'textNodeStyle':_0x57e399[_0x55e1d5(0x7b)],'onStreamUpdate':_0x57e399[_0x55e1d5(0x7c)]||(()=>{})};}async[_0x42332c(0xb0)]({document:_0x38f16a,targetElement:_0x50b7dc,abortSignal:_0x23e8e5}){const _0x16c3ba=_0x42332c;this[_0x16c3ba(0x85)]&&this[_0x16c3ba(0xac)](),_0x23e8e5?.[_0x16c3ba(0xae)](_0x16c3ba(0x8c),this[_0x16c3ba(0xac)][_0x16c3ba(0xa8)](this)),this[_0x16c3ba(0xb3)]=_0xb326ee(_0x38f16a,!0x0),this[_0x16c3ba(0x8f)]=this[_0x16c3ba(0x8a)](),this[_0x16c3ba(0x85)]=!0x0,this[_0x16c3ba(0x9b)]>this[_0x16c3ba(0x8f)][_0x16c3ba(0x87)]&&(this[_0x16c3ba(0x9b)]=this[_0x16c3ba(0x8f)][_0x16c3ba(0x87)]);for(let _0x4bc812=0x0;_0x4bc812<this[_0x16c3ba(0x9b)];_0x4bc812++)this[_0x16c3ba(0x8f)][_0x4bc812][_0x16c3ba(0x8b)]=!0x0;do{const _0x140103=Date[_0x16c3ba(0xb1)](),_0x5cc1c8=this[_0x16c3ba(0x8f)][this[_0x16c3ba(0x9b)]],_0x235630=_0x140103-this[_0x16c3ba(0xab)];if(_0x5cc1c8){_0x5cc1c8[_0x16c3ba(0x8b)]=!0x0;let _0x5151b9=_0x5cc1c8[_0x16c3ba(0x96)];for(;_0x5151b9;)_0x5151b9[_0x16c3ba(0x8b)]=!0x0,_0x5151b9=_0x5151b9[_0x16c3ba(0x96)];}if(_0x235630<this[_0x16c3ba(0x95)][_0x16c3ba(0x9f)])try{const {promise:_0x39cfce,abortController:_0x533559}=Cs(this[_0x16c3ba(0x95)][_0x16c3ba(0x9f)]-_0x235630);this[_0x16c3ba(0x84)]=_0x533559,await _0x39cfce;}catch(_0x201fff){return;}_0x29625d(_0x50b7dc,'<'+_0x50b7dc[_0x16c3ba(0x78)]+'>'+this[_0x16c3ba(0x89)](this[_0x16c3ba(0xb3)])+'</'+_0x50b7dc[_0x16c3ba(0x78)]+'>',{'childrenOnly':!0x0}),this[_0x16c3ba(0x95)][_0x16c3ba(0x7c)]&&this[_0x16c3ba(0x95)][_0x16c3ba(0x7c)](),this[_0x16c3ba(0x9b)]++,this[_0x16c3ba(0xab)]=Date[_0x16c3ba(0xb1)]();}while(this[_0x16c3ba(0x9b)]<this[_0x16c3ba(0x8f)][_0x16c3ba(0x87)]);this[_0x16c3ba(0x9b)]=this[_0x16c3ba(0x8f)][_0x16c3ba(0x87)],this[_0x16c3ba(0x85)]=!0x1;}[_0x42332c(0xa1)](){const _0x1e5821=_0x42332c;this[_0x1e5821(0x85)]=!0x1,this[_0x1e5821(0xb3)]=null,this[_0x1e5821(0x8f)]=[],this[_0x1e5821(0x9b)]=0x0,this[_0x1e5821(0x84)]=null;}[_0x42332c(0x9c)]({targetElement:_0x5cc96e}){const _0x30063f=_0x42332c;Array[_0x30063f(0xa5)](_0x5cc96e[_0x30063f(0x7d)](_0x30063f(0xa7)))[_0x30063f(0x80)]()[_0x30063f(0xb2)](_0x11dc52=>{const _0x35b3ee=_0x30063f;_0x11dc52[_0x35b3ee(0xaf)](_0x11dc52[_0x35b3ee(0x77)][0x0]);});}[_0x42332c(0xac)](){const _0x29ecb2=_0x42332c;this[_0x29ecb2(0x85)]=!0x1,this[_0x29ecb2(0x84)]&&(this[_0x29ecb2(0x84)][_0x29ecb2(0x8c)](),this[_0x29ecb2(0x84)]=null);}[_0x42332c(0x89)](_0x4a45a6){const _0x317ab5=_0x42332c;let _0x187d52='';if(function(_0x2c242d){return _0x16cb36(_0x2c242d);}(_0x4a45a6)){for(const _0x13330a of _0x4a45a6[_0x317ab5(0x7e)])_0x187d52+=this[_0x317ab5(0x89)](_0x13330a);}else{if(Ts(_0x4a45a6)){if(!_0x4a45a6[_0x317ab5(0x8b)])return'';const _0x35659a=_0x4a45a6,_0x108102=Object[_0x317ab5(0xa3)](_0x35659a[_0x317ab5(0xa9)])[_0x317ab5(0x99)](([_0x224fec,_0x31e168])=>_0x224fec+'=\x22'+_0x31e168+'\x22')[_0x317ab5(0x82)]('\x20');_0x187d52+='<'+_0x35659a[_0x317ab5(0x78)]+(_0x108102?'\x20'+_0x108102:'')+'>';for(const _0x489bf5 of _0x40a52c(_0x35659a))_0x187d52+=this[_0x317ab5(0x89)](_0x489bf5);_0x187d52+='</'+_0x35659a[_0x317ab5(0x78)]+'>';}else{if(!Ss(_0x4a45a6))return'';if(!_0x4a45a6[_0x317ab5(0x8b)])return'';!function(_0x552b01){const _0x4a1113=_0x317ab5;if(!_0x552b01[_0x4a1113(0x96)]||!Ts(_0x552b01[_0x4a1113(0x96)]))return!0x1;if(!ys[_0x4a1113(0xb5)](_0x552b01[_0x4a1113(0x96)][_0x4a1113(0x78)]))return!0x1;return!_0x5074ce(_0x552b01)[_0x4a1113(0x93)](/^\s*[<>]\s*$/);}(_0x4a45a6)?_0x187d52+=_0x184ad4(_0x4a45a6):_0x187d52+=_0x184ad4(new _0x1c65da(_0x317ab5(0x92),{'data-ck-html-streamer-word-chunk':'','style':this[_0x317ab5(0x95)][_0x317ab5(0x7b)]},[_0x4a45a6]));}}return _0x187d52;}[_0x42332c(0x8a)](){const _0x443995=_0x42332c,_0x3a2cd9=[];return function(_0x4335d7,_0x22487b){const _0x255b3a=_0x1d13,_0x1fb88f=_0x5499c3=>{const _0x7cc67e=_0x1d13;if(_0x22487b(_0x5499c3),_0x5499c3 instanceof _0x1011eb)for(let _0x12d364=0x0;_0x12d364<_0x5499c3[_0x7cc67e(0x7e)][_0x7cc67e(0x87)];_0x12d364++){const _0x1677ab=_0x5499c3[_0x7cc67e(0x7e)][_0x12d364];_0x1fb88f(_0x1677ab);}};for(let _0x1886de=0x0;_0x1886de<_0x4335d7[_0x255b3a(0x7e)][_0x255b3a(0x87)];_0x1886de++)_0x1fb88f(_0x4335d7[_0x255b3a(0x7e)][_0x1886de]);}(this[_0x443995(0xb3)],_0x1bf723=>{const _0x5b7e67=_0x443995;if(Ss(_0x1bf723)){const _0x3a865f=this[_0x5b7e67(0x9d)](_0x1bf723);_0x3a865f[_0x5b7e67(0x87)]&&_0x3a2cd9[_0x5b7e67(0x90)](..._0x3a865f);}_0x1bf723[_0x5b7e67(0x83)]||_0x1bf723[_0x5b7e67(0xa0)]||_0x3a2cd9[_0x5b7e67(0x90)](_0x1bf723);}),_0x3a2cd9;}[_0x42332c(0x9d)](_0xa79d83){const _0x24ae33=_0x42332c;if(_0xa79d83[_0x24ae33(0x83)]||_0xa79d83[_0x24ae33(0xa0)])return[];const _0xc1f8c8=_0x5074ce(_0xa79d83)[_0x24ae33(0x93)](/(?:\s*\S+\s*)/g),_0xa51ad4=[];if(_0xc1f8c8&&_0xc1f8c8[_0x24ae33(0x87)]>0x1){for(const _0x345398 of _0xc1f8c8){const _0x377b25=new _0x36d090(_0x345398);_0x377b25[_0x24ae33(0xa0)]=!0x0,_0xa05aff(_0xa79d83,_0x377b25),_0xa51ad4[_0x24ae33(0x90)](_0x377b25);}_0xa79d83[_0x24ae33(0x83)]=!0x0,_0x47abc3(_0xa79d83);}return _0xa51ad4;}}function _0x1d13(_0x32171f,_0x18f3f2){const _0x3165fb=_0x3165();return _0x1d13=function(_0x1d13ad,_0x56f5d1){_0x1d13ad=_0x1d13ad-0x77;let _0x18395c=_0x3165fb[_0x1d13ad];return _0x18395c;},_0x1d13(_0x32171f,_0x18f3f2);}function _0x3165(){const _0x25aad3=['onStreamUpdate','querySelectorAll','children','7uKOxEk','reverse','mark','join','isWordSplitSource','timeoutAbortController','isStreaming','sub','length','1859992yhdegi','renderNode','getParsedDocumentNodeList','shouldBeStreamed','abort','code','9bDgYvF','nodesList','push','del','span','match','strong','options','parent','signal','sup','map','7114pRBFWK','currentIndex','cleanUpAnimations','splitTextNodeIntoWordNodes','5550798rZtawm','delay','isWordSplitResult','reset','5674820ogJiNu','entries','105894lmajQN','from','1708784ahCFxs','span[data-ck-html-streamer-word-chunk]','bind','attribs','div','lastUpdateTime','stop','7835aeybZt','addEventListener','replaceWith','stream','now','forEach','document','1014oqnYOX','includes','childNodes','tagName','ins','300dWRxod','textNodeStyle'];_0x3165=function(){return _0x25aad3;};return _0x3165();}const ys=['p','li','td','th',_0x42332c(0x92),'h1','h2','h3','h4','h5','h6','b',_0x42332c(0x94),'i','em',_0x42332c(0x81),_0x42332c(0x91),_0x42332c(0x79),_0x42332c(0x98),_0x42332c(0x86),'a',_0x42332c(0x8d),_0x42332c(0xaa)];function Ss(_0x17f92e){return _0x44dd03(_0x17f92e);}function Ts(_0x36592c){return _0x34a986(_0x36592c);}function Cs(_0x5027c7){const _0x5a91a2=new AbortController();return{'promise':new Promise((_0x4eb0d6,_0x4faaf9)=>{const _0x11c009=_0x1d13,_0x4cb653=setTimeout(_0x4eb0d6,_0x5027c7);_0x5a91a2[_0x11c009(0x97)][_0x11c009(0xae)](_0x11c009(0x8c),()=>{clearTimeout(_0x4cb653),_0x4faaf9();});}),'abortController':_0x5a91a2};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x278b5e=_0x2020;function _0x2020(_0x331617,_0x39b3c8){var _0x38f45e=_0x38f4();return _0x2020=function(_0x2020f5,_0x59fff3){_0x2020f5=_0x2020f5-0x1dc;var _0x1a3716=_0x38f45e[_0x2020f5];return _0x1a3716;},_0x2020(_0x331617,_0x39b3c8);}(function(_0x50f25a,_0xda198){var _0xfe0ccd=_0x2020,_0x33f251=_0x50f25a();while(!![]){try{var _0x1284d1=-parseInt(_0xfe0ccd(0x1df))/0x1+-parseInt(_0xfe0ccd(0x1e1))/0x2*(-parseInt(_0xfe0ccd(0x1e9))/0x3)+parseInt(_0xfe0ccd(0x1dc))/0x4+parseInt(_0xfe0ccd(0x1e8))/0x5+parseInt(_0xfe0ccd(0x1e7))/0x6*(-parseInt(_0xfe0ccd(0x1ea))/0x7)+-parseInt(_0xfe0ccd(0x1e5))/0x8+-parseInt(_0xfe0ccd(0x1e3))/0x9*(parseInt(_0xfe0ccd(0x1e2))/0xa);if(_0x1284d1===_0xda198)break;else _0x33f251['push'](_0x33f251['shift']());}catch(_0x55e14f){_0x33f251['push'](_0x33f251['shift']());}}}(_0x38f4,0x9d97f));import{Plugin as _0x3912b6}from'ckeditor5/src/core.js';import{AIToggleButtonUI as _0x1ed9d9}from'./aitogglebutton/aitogglebuttonui.js';import{AIChatBalloon as _0x58d9d0}from'../aichat/aichatballoon.js';function _0x38f4(){var _0x1f1e95=['isPremiumPlugin','44755jLXlvz','AIEditorIntegration','1478TBiOlc','4551940JboUhS','9lJsrGI','isOfficialPlugin','148376PRaaFN','pluginName','348EPHSjK','1285275jucGwc','4581dEJVgK','75411KVsHEc','1613300aCZmAk','requires'];_0x38f4=function(){return _0x1f1e95;};return _0x38f4();}import{SuggestionsConversion as _0x3f9f41}from'ckeditor5-collaboration/src/collaboration-core.js';export class AIEditorIntegration extends _0x3912b6{static get[_0x278b5e(0x1dd)](){return[_0x1ed9d9,_0x58d9d0,_0x3f9f41];}static get[_0x278b5e(0x1e6)](){var _0x58dc92=_0x278b5e;return _0x58dc92(0x1e0);}static get[_0x278b5e(0x1e4)](){return!0x0;}static get[_0x278b5e(0x1de)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5794(){const _0x4dd1db=['get','332GaJosv','set','init','menuitemcheckbox','bind','4300aDXioO','223fxHOSC','AIToggleButtonUI','requires','isOn','24MRhMke','add','_createAIUIButton','1759406ExqLun','value','414DFlFTA','toggleAi','isEnabled','execute','ck-ai-toggle-button','isOfficialPlugin','isPremiumPlugin','AI_TOGGLE_BUTTON_LABEL','19257uMBTMR','locale','menuBar:toggleAi','listenTo','54dfyESE','editor','1028cwURsq','componentFactory','475710JxVHiV','681405OZedcz','commands','pluginName','124648wJYZNp'];_0x5794=function(){return _0x4dd1db;};return _0x5794();}const _0x4d4d93=_0x57c7;(function(_0x4331a4,_0x413280){const _0x2a75cf=_0x57c7,_0x1b8e49=_0x4331a4();while(!![]){try{const _0x4c802d=-parseInt(_0x2a75cf(0x1a5))/0x1*(parseInt(_0x2a75cf(0x1bc))/0x2)+parseInt(_0x2a75cf(0x1bf))/0x3+parseInt(_0x2a75cf(0x1c4))/0x4*(-parseInt(_0x2a75cf(0x1a4))/0x5)+parseInt(_0x2a75cf(0x1ae))/0x6*(-parseInt(_0x2a75cf(0x1b6))/0x7)+-parseInt(_0x2a75cf(0x1c2))/0x8*(parseInt(_0x2a75cf(0x1ba))/0x9)+parseInt(_0x2a75cf(0x1be))/0xa+-parseInt(_0x2a75cf(0x1ac))/0xb*(-parseInt(_0x2a75cf(0x1a9))/0xc);if(_0x4c802d===_0x413280)break;else _0x1b8e49['push'](_0x1b8e49['shift']());}catch(_0x4ad325){_0x1b8e49['push'](_0x1b8e49['shift']());}}}(_0x5794,0x1e96b));import{Plugin as _0x11ffb6}from'ckeditor5/src/core.js';import{ToggleAICommand as _0xb809a2}from'./toggleaicommand.js';import{ButtonView as _0x40b4a8,MenuBarMenuListItemButtonView as _0xd0c2cd}from'ckeditor5/src/ui.js';import{IconAIAskAI as _0x189da5}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4b5330}from'../../aicore/utils/common-translations.js';function _0x57c7(_0x3183ba,_0x561f49){const _0x5794a9=_0x5794();return _0x57c7=function(_0x57c7fd,_0x25cd95){_0x57c7fd=_0x57c7fd-0x1a0;let _0x7bcae=_0x5794a9[_0x57c7fd];return _0x7bcae;},_0x57c7(_0x3183ba,_0x561f49);}import{AITabs as _0x337a93}from'../../aitabs/aitabs.js';import'../../../theme/aieditorintegration/aitogglebutton.css';export class AIToggleButtonUI extends _0x11ffb6{static get[_0x4d4d93(0x1a7)](){return[_0x337a93];}static get[_0x4d4d93(0x1c1)](){const _0x418dbe=_0x4d4d93;return _0x418dbe(0x1a6);}static get[_0x4d4d93(0x1b3)](){return!0x0;}static get[_0x4d4d93(0x1b4)](){return!0x0;}[_0x4d4d93(0x1a1)](){const _0x174b28=_0x4d4d93,_0x29961b=this[_0x174b28(0x1bb)];_0x29961b[_0x174b28(0x1c0)][_0x174b28(0x1aa)](_0x174b28(0x1af),new _0xb809a2(_0x29961b)),_0x29961b['ui'][_0x174b28(0x1bd)][_0x174b28(0x1aa)](_0x174b28(0x1af),()=>{const _0x508d4d=_0x174b28,_0x12e52d=this[_0x508d4d(0x1ab)](_0x40b4a8);return _0x12e52d[_0x508d4d(0x1a0)]({'tooltip':!0x0,'class':_0x508d4d(0x1b2)}),_0x12e52d;}),_0x29961b['ui'][_0x174b28(0x1bd)][_0x174b28(0x1aa)](_0x174b28(0x1b8),()=>{const _0x532e31=_0x174b28,_0x823d9=this[_0x532e31(0x1ab)](_0xd0c2cd);return _0x823d9[_0x532e31(0x1a0)]({'role':_0x532e31(0x1a2)}),_0x823d9;});}[_0x4d4d93(0x1ab)](_0x2ee65b){const _0x46be4a=_0x4d4d93,_0x172cbd=this[_0x46be4a(0x1bb)],_0x45363e=_0x172cbd[_0x46be4a(0x1c0)][_0x46be4a(0x1c3)](_0x46be4a(0x1af)),_0x49edd4=new _0x2ee65b(_0x172cbd[_0x46be4a(0x1b7)]);return _0x49edd4[_0x46be4a(0x1a0)]({'label':_0x4b5330(_0x172cbd[_0x46be4a(0x1b7)],_0x46be4a(0x1b5)),'icon':_0x189da5,'isToggleable':!0x0}),_0x49edd4[_0x46be4a(0x1a3)](_0x46be4a(0x1b0))['to'](_0x45363e),_0x49edd4[_0x46be4a(0x1a3)](_0x46be4a(0x1a8))['to'](_0x45363e,_0x46be4a(0x1ad),_0x40b4dc=>!!_0x40b4dc),this[_0x46be4a(0x1b9)](_0x49edd4,_0x46be4a(0x1b1),()=>{const _0x11550c=_0x46be4a;_0x45363e[_0x11550c(0x1b1)]();}),_0x49edd4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x68da(_0x499634,_0x30f635){const _0x3b8a9e=_0x3b8a();return _0x68da=function(_0x68dade,_0x1d11ec){_0x68dade=_0x68dade-0x1d7;let _0xee38f4=_0x3b8a9e[_0x68dade];return _0xee38f4;},_0x68da(_0x499634,_0x30f635);}const _0x3f11b2=_0x68da;(function(_0x1d20b4,_0x56bb76){const _0x5298df=_0x68da,_0x4140b2=_0x1d20b4();while(!![]){try{const _0x4f1b56=-parseInt(_0x5298df(0x1de))/0x1+parseInt(_0x5298df(0x1e8))/0x2*(parseInt(_0x5298df(0x1e7))/0x3)+-parseInt(_0x5298df(0x1dd))/0x4*(-parseInt(_0x5298df(0x1d8))/0x5)+parseInt(_0x5298df(0x1e3))/0x6*(-parseInt(_0x5298df(0x1d9))/0x7)+-parseInt(_0x5298df(0x1db))/0x8*(-parseInt(_0x5298df(0x1e9))/0x9)+parseInt(_0x5298df(0x1e2))/0xa+parseInt(_0x5298df(0x1df))/0xb*(-parseInt(_0x5298df(0x1e5))/0xc);if(_0x4f1b56===_0x56bb76)break;else _0x4140b2['push'](_0x4140b2['shift']());}catch(_0xb7d97e){_0x4140b2['push'](_0x4140b2['shift']());}}}(_0x3b8a,0x9d471));import{Command as _0x3a21ec}from'ckeditor5/src/core.js';export class ToggleAICommand extends _0x3a21ec{constructor(_0x2fec55){const _0x38311e=_0x68da;super(_0x2fec55);const _0x2dbae7=_0x2fec55[_0x38311e(0x1dc)][_0x38311e(0x1ec)](_0x38311e(0x1e4))[_0x38311e(0x1e6)];this[_0x38311e(0x1e1)](_0x38311e(0x1ea))['to'](_0x2dbae7,_0x38311e(0x1da)),this[_0x38311e(0x1d7)]=!0x0;}[_0x3f11b2(0x1e0)](){const _0x5f347f=_0x3f11b2,_0x45538a=this[_0x5f347f(0x1eb)][_0x5f347f(0x1dc)][_0x5f347f(0x1ec)](_0x5f347f(0x1e4))[_0x5f347f(0x1e6)];_0x45538a[_0x5f347f(0x1da)]=!_0x45538a[_0x5f347f(0x1da)];}}function _0x3b8a(){const _0x3205f1=['1466499AXeiTA','2eCnZzU','7148529DvPFOZ','value','editor','get','isEnabled','5mUqhAp','707YuElnZ','isVisible','8tbsVNr','plugins','4144604xgnGrz','1511DbHOMY','17325qzHNSy','execute','bind','10879190qOappz','47934SpnisW','AITabs','14892ZylRCz','view'];_0x3b8a=function(){return _0x3205f1;};return _0x3b8a();}
|