@ckeditor/ckeditor5-track-changes 37.0.0-rc.0 → 37.0.1
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/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2142=['_schema','text','matchingCallback','previousSibling','checkChild','_itemLabels','_itemLabelsCallbacks','indexOf','deletion','_resolveDescriptionItems','getFirstRange','element','item','elementEnd','$1\x20$2','replace','ELEMENT_SPACE','addObject','length','label','data','registerDescriptionCallback','*Merge:*\x20%0','isObject','type','*Insert:*\x20%0','isEmpty','start','function','registerElementLabel','isEqual','elementStart','getDescriptions','get','softBreak','add','_addDescriptionItems','normal','push','name','match','quantity','Container','Object','getItemLabel','addContainer','removeObject','insertion','isInContent','nextSibling','*Remove:*\x20%0','EmptyContainer','_locale','skip','end','_customCallbacks','remove'];(function(_0x278d2e,_0x2142cf){const _0x24d782=function(_0x49b693){while(--_0x49b693){_0x278d2e['push'](_0x278d2e['shift']());}};_0x24d782(++_0x2142cf);}(_0x2142,0x10a));const _0x24d7=function(_0x278d2e,_0x2142cf){_0x278d2e=_0x278d2e-0x0;let _0x24d782=_0x2142[_0x278d2e];return _0x24d782;};import{getTranslation as _0x59c14e}from'./utils/common-translations';import{priorities as _0xc5af37,insertToPriorityArray as _0x5dc15b}from'ckeditor5/src/utils';export default class m{constructor(_0x1dd1ab,_0x3afcaf){this[_0x24d7('0x11')]=[],this['_itemLabels']=new Map(),this[_0x24d7('0x19')]=[],this[_0x24d7('0x13')]=_0x1dd1ab,this[_0x24d7('0xe')]=_0x3afcaf;}[_0x24d7('0x33')](_0x5289ea){const _0x42c638=[];for(let _0x209e50=0x0;_0x209e50<_0x5289ea[_0x24d7('0x25')];_0x209e50++){const _0x13eedf=_0x5289ea[_0x209e50];if(!_0x13eedf[_0x24d7('0xa')])continue;let _0x292deb=!0x1;for(const _0x2a0e29 of this[_0x24d7('0x11')]){const _0xa39f95=_0x2a0e29(_0x13eedf);if(_0xa39f95){_0x24d7('0x2b')in _0xa39f95&&_0x42c638[_0x24d7('0x0')](_0xa39f95),_0x292deb=!0x0;break;}}if(!_0x292deb){this[_0x24d7('0x37')](_0x42c638,_0x13eedf);const _0x1ca998=_0x5289ea[_0x209e50+0x1];if(_0x1ca998&&!_0x13eedf[_0x24d7('0x1d')]()[_0x24d7('0x10')][_0x24d7('0x31')](_0x1ca998[_0x24d7('0x1d')]()[_0x24d7('0x2e')])){const _0xbc33ec=_0x42c638[_0x42c638[_0x24d7('0x25')]-0x1],_0x4fd32c=_0x24d7('0x9')==_0x13eedf[_0x24d7('0x2b')]?_0x24d7('0x36'):'remove';_0xbc33ec&&_0x24d7('0x14')==_0xbc33ec[_0x24d7('0x2b')]&&(_0xbc33ec[_0x4fd32c]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x42c638);}[_0x24d7('0x28')](_0xe8340d){this['_customCallbacks'][_0x24d7('0x0')](_0xe8340d);}[_0x24d7('0x30')](_0x104e75,_0x2620b1,_0x3adf06=_0xc5af37[_0x24d7('0x38')]){_0x24d7('0x2f')==typeof _0x104e75?_0x5dc15b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x104e75,'label':_0x2620b1,'priority':_0x3adf06}):this[_0x24d7('0x18')]['set'](_0x104e75,_0x2620b1);}['getItemLabel'](_0x234f7d,_0x421e88=0x1){let _0x290a30;for(const _0x2a1d83 of this['_itemLabelsCallbacks'])if(_0x2a1d83[_0x24d7('0x15')](_0x234f7d)){_0x290a30=_0x2a1d83[_0x24d7('0x26')];break;}return _0x290a30||(_0x290a30=this['_itemLabels'][_0x24d7('0x34')](_0x234f7d[_0x24d7('0x1')])),_0x290a30?_0x290a30(_0x421e88):0x1!==_0x421e88?_0x421e88+'\x20'+_0x234f7d[_0x24d7('0x1')]+'s':''+_0x234f7d[_0x24d7('0x1')];}[_0x24d7('0x37')](_0x27a54e,_0xe2dd4f){const _0x210587=_0xe2dd4f[_0x24d7('0x1d')]()['getWalker'](),_0x2b1239='insertion'==_0xe2dd4f[_0x24d7('0x2b')]?_0x24d7('0x36'):_0x24d7('0x12');for(const _0x4f8c35 of _0x210587){const _0x45bb8a=_0x4f8c35[_0x24d7('0x1f')],_0xc199e6=_0x27a54e[_0x27a54e[_0x24d7('0x25')]-0x1];if(_0x45bb8a['is']('$textProxy'))_0xc199e6&&_0xc199e6['type'][_0x24d7('0x1a')](_0x24d7('0x4'))>-0x1&&_0x27a54e['pop'](),_0xc199e6&&_0x24d7('0x14')==_0xc199e6[_0x24d7('0x2b')]?_0xc199e6[_0x2b1239]+=_0x45bb8a[_0x24d7('0x27')]:_0x27a54e[_0x24d7('0x0')]({'type':_0x24d7('0x14'),'add':'add'==_0x2b1239?_0x45bb8a['data']:'','remove':_0x24d7('0x12')==_0x2b1239?_0x45bb8a[_0x24d7('0x27')]:''});else{if(this[_0x24d7('0x13')]['isObject'](_0x45bb8a)){const _0x4614bd=_0x45bb8a;if(_0xc199e6&&_0xc199e6['type'][_0x24d7('0x1a')](_0x24d7('0x4'))>-0x1&&_0x27a54e['pop'](),_0x24d7('0x20')==_0x4f8c35[_0x24d7('0x2b')])continue;_0xc199e6&&_0xc199e6['type']==_0x2b1239+_0x24d7('0x5')&&_0xc199e6['element'][_0x24d7('0x1')]==_0x4614bd['name']?_0xc199e6[_0x24d7('0x3')]++:_0x27a54e[_0x24d7('0x0')]({'type':_0x2b1239+_0x24d7('0x5'),'element':_0x4614bd,'quantity':0x1}),_0x210587[_0x24d7('0xf')](_0x21523e=>!(_0x24d7('0x20')==_0x21523e[_0x24d7('0x2b')]&&_0x21523e['item']==_0x45bb8a));}else{if(this['_schema'][_0x24d7('0x17')](_0x45bb8a,'$text')||_0x45bb8a['is'](_0x24d7('0x1e'),_0x24d7('0x35'))){const _0x351ccc=_0x45bb8a;if('add'==_0x2b1239&&_0x24d7('0x32')==_0x4f8c35['type']||_0x24d7('0x12')==_0x2b1239&&_0x24d7('0x20')==_0x4f8c35['type'])continue;if(_0xc199e6&&-0x1==_0xc199e6[_0x24d7('0x2b')][_0x24d7('0x1a')](_0x24d7('0x4'))){_0x24d7('0x14')==_0xc199e6[_0x24d7('0x2b')]&&(_0xc199e6[_0x2b1239]+='\x0a');continue;}let _0x4a7ddf;if(_0x4a7ddf='add'==_0x2b1239?_0x351ccc[_0x24d7('0xb')]&&!this[_0x24d7('0x13')][_0x24d7('0x2a')](_0x351ccc[_0x24d7('0xb')])?_0x351ccc['nextSibling']:null:_0x351ccc['previousSibling']&&!this['_schema'][_0x24d7('0x2a')](_0x351ccc[_0x24d7('0x16')])?_0x351ccc[_0x24d7('0x16')]:null,_0x351ccc[_0x24d7('0x2d')]||_0x4a7ddf&&_0x4a7ddf['isEmpty']){const _0x420a02=_0x4a7ddf&&_0x4a7ddf[_0x24d7('0x2d')]?_0x4a7ddf:_0x351ccc;_0xc199e6&&_0xc199e6[_0x24d7('0x2b')]==_0x2b1239+_0x24d7('0xd')&&_0xc199e6['element'][_0x24d7('0x1')]==_0x420a02[_0x24d7('0x1')]?_0xc199e6[_0x24d7('0x3')]++:_0x27a54e[_0x24d7('0x0')]({'type':_0x2b1239+'EmptyContainer','element':_0x420a02,'quantity':0x1});}else _0x27a54e['push']({'type':_0x2b1239+'Container','element':_0x351ccc});}}}}}[_0x24d7('0x1c')](_0x1bcf47){const _0x29a117=this['_locale'],_0x27e30b=[];for(const _0x183fc4 of _0x1bcf47){switch(_0x183fc4['type']){case'text':if(_0x183fc4[_0x24d7('0x36')]=_0x183fc4['add'][_0x24d7('0x22')](/(\S)\u000A+(\S)/g,_0x24d7('0x21'))[_0x24d7('0x22')](/\u000A/g,''),_0x183fc4[_0x24d7('0x12')]=_0x183fc4['remove'][_0x24d7('0x22')](/(\S)\u000A+(\S)/g,_0x24d7('0x21'))[_0x24d7('0x22')](/\u000A/g,''),''!=_0x183fc4[_0x24d7('0x36')]&&''!=_0x183fc4[_0x24d7('0x12')]){_0x27e30b[_0x24d7('0x0')]({'type':'replace','content':_0x59c14e(_0x29a117,'REPLACE_TEXT',['\x22'+_0x183fc4[_0x24d7('0x12')]+'\x22','\x22'+_0x183fc4['add']+'\x22'])});continue;}if(null!=_0x183fc4['add'][_0x24d7('0x2')](/^ +$/)){_0x27e30b[_0x24d7('0x0')]({'type':_0x24d7('0x9'),'content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),_0x59c14e(_0x29a117,_0x24d7('0x23'),_0x183fc4[_0x24d7('0x36')][_0x24d7('0x25')]))});continue;}if(null!=_0x183fc4['remove']['match'](/^ +$/)){_0x27e30b['push']({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,'*Remove:*\x20%0',_0x59c14e(_0x29a117,_0x24d7('0x23'),_0x183fc4[_0x24d7('0x12')][_0x24d7('0x25')]))});continue;}if(''!=_0x183fc4['add']){_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),'\x22'+_0x183fc4[_0x24d7('0x36')]+'\x22')});continue;}_0x27e30b[_0x24d7('0x0')]({'type':'deletion','content':_0x59c14e(_0x29a117,'*Remove:*\x20%0','\x22'+_0x183fc4[_0x24d7('0x12')]+'\x22')});continue;case'addEmptyContainer':case _0x24d7('0x24'):_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,_0x24d7('0x2c'),this[_0x24d7('0x6')](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case'removeEmptyContainer':case _0x24d7('0x8'):_0x27e30b[_0x24d7('0x0')]({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,_0x24d7('0xc'),this['getItemLabel'](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case _0x24d7('0x7'):_0x27e30b[_0x24d7('0x0')]({'type':'insertion','content':_0x59c14e(_0x29a117,'*Split:*\x20%0',this[_0x24d7('0x6')](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;case'removeContainer':_0x27e30b['push']({'type':_0x24d7('0x1b'),'content':_0x59c14e(_0x29a117,_0x24d7('0x29'),this['getItemLabel'](_0x183fc4[_0x24d7('0x1e')],_0x183fc4[_0x24d7('0x3')]))});continue;}_0x27e30b['push'](_0x183fc4);}return _0x27e30b;}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2818=['TrackChanges','get','editor','adapter','getSuggestions','requires','addSuggestionData','plugins','pluginName','getSuggestion'];(function(_0x2d8288,_0x2818b8){var _0xbb126e=function(_0x592a8f){while(--_0x592a8f){_0x2d8288['push'](_0x2d8288['shift']());}};_0xbb126e(++_0x2818b8);}(_0x2818,0x123));var _0xbb12=function(_0x2d8288,_0x2818b8){_0x2d8288=_0x2d8288-0x0;var _0xbb126e=_0x2818[_0x2d8288];return _0xbb126e;};import{Plugin as _0x5c1cd6}from'ckeditor5/src/core';import _0x300084 from'./trackchangesui';import _0x359ba5 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x5c1cd6{static get[_0xbb12('0x4')](){return[_0x359ba5,_0x300084,'Comments'];}static get[_0xbb12('0x7')](){return _0xbb12('0x9');}set['adapter'](_0x4b979f){this[_0xbb12('0x1')]['plugins']['get'](_0x359ba5)[_0xbb12('0x2')]=_0x4b979f;}get['adapter'](){return this[_0xbb12('0x1')][_0xbb12('0x6')]['get'](_0x359ba5)[_0xbb12('0x2')];}['addSuggestion'](_0x3c98fa){return this[_0xbb12('0x1')][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x5')](_0x3c98fa);}[_0xbb12('0x3')]({skipNotAttached:_0x5d1957=!0x1,toJSON:_0x55893d=!0x1}={}){return this['editor'][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x3')]({'skipNotAttached':_0x5d1957,'toJSON':_0x55893d});}[_0xbb12('0x8')](_0x4c0e04){return this[_0xbb12('0x1')][_0xbb12('0x6')][_0xbb12('0x0')](_0x359ba5)[_0xbb12('0x8')](_0x4c0e04);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20fd=['useAnonymousUser','track-changes-data-invalid-editor-creator','extraPlugins','find','editorCreator','users','builtinPlugins','model','discardAllSuggestions','end','WebSocketGateway','constructor','getUser','editor','appendChild','Autosave','WordCount','TrackChangesData','requires','push','includes','trackChangesData.editorCreator','set','init','adapter','name','pluginName','config','RevisionTracker','filter','getRootNames','getDataWithDiscardedSuggestions','map','trackChangesData','has','create','execute','string','plugins','document','addSuggestionData','createElement','CommentsRepository','TrackChangesEditing','createDocumentFragment','data','destroy','concat','getDataWithAcceptedSuggestions','context','Users','TrackChangesDataGetter','function','get'];(function(_0x5a37ee,_0x20fda8){const _0x414c46=function(_0x2e2529){while(--_0x2e2529){_0x5a37ee['push'](_0x5a37ee['shift']());}};_0x414c46(++_0x20fda8);}(_0x20fd,0x1df));const _0x414c=function(_0x5a37ee,_0x20fda8){_0x5a37ee=_0x5a37ee-0x0;let _0x414c46=_0x20fd[_0x5a37ee];return _0x414c46;};import{Plugin as _0x30e67d}from'ckeditor5/src/core';import{CKEditorError as _0x18edc4}from'ckeditor5/src/utils';import _0x25b209 from'./trackchangesediting';const C=['initialData',_0x414c('0x2'),'toolbar'],w=[_0x414c('0x11'),_0x414c('0x23'),_0x414c('0x16'),_0x414c('0x17'),'Pagination'];export default class T extends _0x30e67d{static get[_0x414c('0x19')](){return[_0x25b209];}static get['pluginName'](){return _0x414c('0x18');}['init'](){const _0x11e265=this[_0x414c('0x14')];if(_0x11e265['config']['define'](_0x414c('0x1c'),_0x52fa35=>_0x11e265[_0x414c('0x12')][_0x414c('0x2a')]('',_0x52fa35)),_0x414c('0x5')!=typeof _0x11e265[_0x414c('0x22')][_0x414c('0x6')](_0x414c('0x28'))[_0x414c('0xb')])throw new _0x18edc4(_0x414c('0x8'));}[_0x414c('0x1')](_0x11ab8e){return D(this[_0x414c('0x14')],!0x0,_0x11ab8e);}[_0x414c('0x26')](_0x620506){return D(this[_0x414c('0x14')],!0x1,_0x620506);}}class P extends _0x30e67d{static get['pluginName'](){return _0x414c('0x4');}constructor(_0x13abf3){super(_0x13abf3),this['result']=_0x414c('0x10');}[_0x414c('0x1e')](){this[_0x414c('0x14')][_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x31'))[_0x414c('0x1f')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x414c('0x14')][_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x32'))['_adapter']=null;}}async function D(_0x31f8d3,_0x2d1a01,_0x4311e2){const _0x2e612c=function(_0x528070){const _0x3b3b17={};for(const _0x2ccb08 of _0x528070['config']['names']())C[_0x414c('0x1b')](_0x2ccb08)||(_0x3b3b17[_0x2ccb08]=_0x528070[_0x414c('0x22')][_0x414c('0x6')](_0x2ccb08));const _0x1f58b5=_0x528070['constructor'][_0x414c('0xd')]||[],_0x228195=_0x3b3b17[_0x414c('0x9')]||[];delete _0x3b3b17[_0x414c('0x9')];const _0x19743e=_0x1f58b5[_0x414c('0x0')](_0x3b3b17['plugins'])['concat'](_0x228195)[_0x414c('0x27')](_0x1ea9ca=>_0x414c('0x2c')==typeof _0x1ea9ca?_0x1f58b5[_0x414c('0xa')](_0x197979=>_0x197979[_0x414c('0x21')]==_0x1ea9ca):_0x1ea9ca),_0x19bb11=Array['from'](new Set(_0x19743e)),_0x523973=new Map();return _0x3b3b17['plugins']=_0x19bb11[_0x414c('0x24')](_0x5635c0=>v(_0x5635c0,_0x523973)),_0x3b3b17[_0x414c('0x2d')][_0x414c('0x1a')](P),_0x3b3b17[_0x414c('0x2d')]['push'](_0x25b209),_0x3b3b17;}(_0x31f8d3),_0x148b40=document[_0x414c('0x33')](),_0x46ed23=_0x31f8d3[_0x414c('0x22')]['get'](_0x414c('0x28'))[_0x414c('0xb')],_0x92ee5=await _0x46ed23(_0x2e612c,()=>function(_0x1857d3){const _0x2a8d77=document[_0x414c('0x30')]('div');return _0x1857d3[_0x414c('0x15')](_0x2a8d77),_0x2a8d77;}(_0x148b40));!function(_0x501b89,_0x5c7d60){const _0x1c9f94=_0x501b89[_0x414c('0xe')][_0x414c('0x2e')][_0x414c('0x25')]()['reduce']((_0x272b66,_0x3cfd7c)=>(_0x272b66[_0x3cfd7c]=_0x501b89[_0x414c('0x34')][_0x414c('0x6')]({'rootName':_0x3cfd7c}),_0x272b66),{}),_0x315624=_0x501b89['plugins'][_0x414c('0x6')](_0x414c('0x3'))[_0x414c('0xc')]['map'](_0x501df9=>({'id':_0x501df9['id'],'name':_0x501df9[_0x414c('0x20')]})),_0x37df8e=_0x501b89[_0x414c('0x2d')]['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c1c10=_0x5c7d60['plugins']['get'](_0x414c('0x3')),_0x434f7f=_0x5c7d60[_0x414c('0x2d')][_0x414c('0x6')](_0x414c('0x32'));for(const _0x1bdca6 of _0x315624)_0x5c1c10[_0x414c('0x13')](_0x1bdca6['id'])||_0x5c1c10['addUser'](_0x1bdca6);_0x5c1c10['me']||_0x5c1c10[_0x414c('0x7')]();for(const _0x2c5e87 of _0x37df8e)_0x434f7f[_0x414c('0x2f')](_0x2c5e87);_0x5c7d60[_0x414c('0x34')][_0x414c('0x1d')](_0x1c9f94);}(_0x31f8d3,_0x92ee5),_0x92ee5[_0x414c('0x2b')](_0x2d1a01?'acceptAllSuggestions':_0x414c('0xf'));const _0x26e3d3=_0x92ee5[_0x414c('0x34')]['get'](_0x4311e2);return await _0x92ee5[_0x414c('0x35')](),_0x26e3d3;}function v(_0x1d6d10,_0x3f305c){const _0x5022c0=_0x414c('0x5')==typeof _0x1d6d10?_0x1d6d10['pluginName']||_0x1d6d10[_0x414c('0x20')]:_0x1d6d10;if(_0x3f305c[_0x414c('0x29')](_0x5022c0))return _0x3f305c['get'](_0x5022c0);if(_0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x0),_0x5022c0&&w[_0x414c('0x1b')](_0x5022c0))return _0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x1),!0x1;if(!_0x1d6d10[_0x414c('0x19')])return _0x3f305c[_0x414c('0x1d')](_0x5022c0,!0x0),!0x0;const _0x3fa570=_0x1d6d10[_0x414c('0x19')]['every'](_0x4cdfa6=>v(_0x4cdfa6,_0x3f305c));return _0x3f305c[_0x414c('0x1d')](_0x5022c0,_0x3fa570),_0x3fa570;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1393=['high','start','showSuggestionHighlights','markBlockFormat','TrackChangesEditing','values','data-suggestion','insertion:','formatGroupId','schema','ck-suggestion-marker--active','isMultiRange','elementToElement','consume','has','removeComment','markInlineFormat','Users','_getSuggestionData','locale','formatBlock:','_getExternalAuthor','track-changes-adapter-already-set','creator','commentThread','getFirstRange','map','formatBlock:join','conversion','_getAuthorFromId','hasComments','then','isLimit','getUser','change:data','return','insertion:chain','define','size','removeClass','open','formatInline:join','isUndo','markDeletion','consumable','requires','addMarker','widget','_joinWithAdjacentSuggestions','nodeAfter','isInsideObject','insertion:accept','getShiftedBy','getAttribute','moveTargetPosition','insertion','dataReady','rethrowUnexpectedError','markers','formatBlock','isIntersectingWithRange','suggestion:','oldRange','detach','getIntersection','reconvertMarker','before','stop','authorName','_cutOutSuggestionMarker','track-changes-suggestion-data-mismatch','length','getChanges','subType','suggestion-type','hasCommentThread','_refreshSuggestionsChain','_rangeIsInLocalUserInsertion','writer','backward','createSelection','track-changes-command-not-found','isInContent','mapper','isEqual','getNearestSelectionRange','split','unbind','_suggestions','getCustomProperty','model','_adapter','for','isCollapsed','_setSuggestionData','insertContent','accept','skipNestingCheck','_model','addMarker:suggestion','addClass','addMarker:suggestion:formatBlock','originalSuggestionId','lowest','fromCharCode','init','enableReadOnlyMode','enqueueChange','getChangedMarkers','getAncestors','element','createdAt','ck-suggestion-marker','data','resolve','updateMarker','_findSuggestions','forceDefaultExecution','plugins','newRange','trackChangesCommand','forward','getRange','chain','collaboration.channelId','addRange','getSuggestionCallback','isSelectable','range','formatBlock:accept','formatInline','removeMarkers','get','attributes','document','set','bindElementToMarker','addHighlight','acceptAllSuggestions','_updateSuggestionData','insertion:join','removeMarker','editor','formatInline:','$textProxy','dataDowncast','_splitMarkerName','_suggestionFactory','suggestion','next','position','_commentsRepository','remove','_trackFormatChanges','commands','getDifference','isBefore','dataToMarker','activeMarkers','rootName','unbindElementFromMarkerName','createRangeIn','removed','isTouching','accepted','buildSuggestion','updateSuggestion','getSuggestions','track-changes-user-not-found','push','_createSuggestion','options','item','after','config','_customCallbacks','fire','CommentsRepository','join','formatInline:chain','track-changes-suggestion-not-found','isOwn','markerReady','notReady','_isForcedDefaultExecutionBlock','markerName','registerPostFixer','change:activeMarkers','value','ready','discardAllSuggestions','_registerDefaultCallbacks','discard','stopListening','addComment','addUser','_defaultCallbacks','containsPosition','_addSuggestionMarker','insert','delete','isObject','normal','move','multipleBlocks','formatBlock:discard','selection','addSuggestion','enableCommand','fetchCommentThread','root','authoredAt','group','getFirstMarker','ck-suggestion-marker-formatBlock','previous','_checkSuggestionCorrectness','editingDowncast','sort','_breakSuggestionMarker','createRange','_joinSuggestions','type','external:','nodeBefore','isRemovable','_handleNewSuggestionMarker','clear','some','isExternal','suggestionLoaded','PendingActions','update:suggestion','isNextTo','howMany','addCommentThread','$graveyard','deletion:','catch','_onDiscard','isAfter','_setSuggestionRange','addMarkerName','documentSelection','from','commandName','listenTo','createPositionAt','_addThreadToSuggestion','marker-count','parent','getSuggestion','containsRangeInObject','containsItem','every','fromRange','acceptSuggestion','includes','isAtEnd','hasSuggestion','setSelection','markMultiRangeDeletion','discardSelectedSuggestions','@external','refresh','differ','formatInline:accept','getItems','rejected','multi','batch','$marker','_saved','acceptSelectedSuggestions','elementStart','author','getRanges','PENDING_ACTION_SUGGESTION','end','change','markInsertion','containsRange','trackChanges','change:_saved','getLastMatchingPosition','highest','isDocumentOperation','addSuggestionData','deletion:accept','containerElement','editing','_suggestionState','deleteContent','name','discardSuggestion','suggestionChanged','deletion:join','getMultiRangeId','error-saving-suggestion-data-suggestion-discarded','upcast','add','markMultiRangeBlockFormat','low','adapter','ck-suggestion-marker-','splitPosition','execute','filter','removeMarker:suggestion:formatBlock','registerCustomCallback','_editor','_removeSuggestion','deletion','trackChanges.trackFormatChanges','splice','formatInline:discard'];(function(_0x295217,_0x1393d6){const _0x12959e=function(_0x3f59f3){while(--_0x3f59f3){_0x295217['push'](_0x295217['shift']());}};_0x12959e(++_0x1393d6);}(_0x1393,0x111));const _0x1295=function(_0x295217,_0x1393d6){_0x295217=_0x295217-0x0;let _0x12959e=_0x1393[_0x295217];return _0x12959e;};import{Plugin as _0x3fbe60,PendingActions as _0x510eb1}from'ckeditor5/src/core';import{LiveRange as _0x30e928}from'ckeditor5/src/engine';import{CKEditorError as _0x5ca231,uid as _0x381575,priorities as _0x4e5bde,logWarning as _0x5105f9}from'ckeditor5/src/utils';import{toWidget as _0x3e735f}from'ckeditor5/src/widget';import{Users as _0x1a74a7,hashObject as _0x55d191}from'ckeditor5-collaboration/src/collaboration-core';import _0x1452b9 from'./commands/trackchangescommand';import _0x508f45 from'./commands/acceptsuggestioncommand';import _0x23b22b from'./commands/discardsuggestioncommand';import _0x15693c from'./commands/executeonallsuggestionscommand';import _0x239b1b from'./commands/executeonselectedsuggestionscommand';import _0x55858b from'./suggestion';import _0x3f9c39 from'./suggestiondescriptionfactory';import _0x2a4832 from'./integrations/alignment';import _0x5c42f8 from'./integrations/basicstyles';import _0x53f75f from'./integrations/blockquote';import _0x33110f from'./integrations/ckbox';import _0x4fe0fb from'./integrations/codeblock';import _0x4b25f6 from'./integrations/comments';import _0x4dc3a2 from'./integrations/deletecommand';import _0x489fb5 from'./integrations/documentlist';import _0x31eeab from'./integrations/entercommand';import _0x525888 from'./integrations/findandreplace';import _0xcb678d from'./integrations/font';import _0x41bcc6 from'./integrations/heading';import _0x54fb5c from'./integrations/highlight';import _0x9f8f07 from'./integrations/horizontalline';import _0x12082a from'./integrations/htmlembed';import _0x169cc2 from'./integrations/image';import _0x481aa0 from'./integrations/imagereplace';import _0x3a3ff2 from'./integrations/importword';import _0x117361 from'./integrations/indent';import _0x9e9546 from'./integrations/inputcommand';import _0x5d56ca from'./integrations/link';import _0x619dfa from'./integrations/list';import _0x134fca from'./integrations/listproperties';import _0x12570a from'./integrations/mediaembed';import _0x387994 from'./integrations/mention';import _0x1ef231 from'./integrations/pagebreak';import _0x21ff1f from'./integrations/paragraph';import _0x2c90e9 from'./integrations/removeformat';import _0x189db3 from'./integrations/restrictededitingmode';import _0x3daf6f from'./integrations/shiftentercommand';import _0x33f7f4 from'./integrations/standardeditingmode';import _0x1f27e1 from'./integrations/style';import _0x19db28 from'./integrations/table';import _0x485547 from'./integrations/tablemergesplit';import _0x1cc28b from'./integrations/tableheadings';import _0x28e040 from'./integrations/tableclipboard';import _0x3375a3 from'./integrations/tablecolumnresize';import _0x442fdb from'./integrations/title';import _0xf6b108 from'./integrations/undo';import{getTranslation as _0x146fe2}from'./utils/common-translations';import _0x41a3a9 from'./integrations/tablecaption';import _0x9382e4 from'./integrations/documentlistproperties';import _0x56ddf3 from'./integrations/tableproperties';export default class p extends _0x3fbe60{static get[_0x1295('0x58')](){return['CommentsRepository',_0x1a74a7,_0x510eb1,_0x2a4832,_0x5c42f8,_0x53f75f,_0x33110f,_0x4fe0fb,_0x4b25f6,_0x4dc3a2,_0x489fb5,_0x9382e4,_0x31eeab,_0x525888,_0xcb678d,_0x41bcc6,_0x54fb5c,_0x9f8f07,_0x12082a,_0x169cc2,_0x481aa0,_0x3a3ff2,_0x117361,_0x9e9546,_0x5d56ca,_0x619dfa,_0x134fca,_0x12570a,_0x387994,_0x1ef231,_0x21ff1f,_0x2c90e9,_0x189db3,_0x3daf6f,_0x33f7f4,_0x1f27e1,_0x19db28,_0x485547,_0x1cc28b,_0x41a3a9,_0x28e040,_0x3375a3,_0x56ddf3,_0x442fdb,_0xf6b108];}static get['pluginName'](){return _0x1295('0x2f');}constructor(_0xbb4aad){function _0x31e908(_0x38c7bb){return _0x38c7bb[_0x1295('0x45')](_0x1c9e0d=>String[_0x1295('0x93')](_0x1c9e0d))[_0x1295('0xdd')]('');}super(_0xbb4aad),this[_0x1295('0xb2')](_0x1295('0xc9'),[]),this['on'](_0x1295('0xe6'),(_0x525250,_0x32a6ad,_0x1b848c,_0x565e49)=>{this[_0x1295('0x8d')]['change'](()=>{for(const _0x21bf12 of[..._0x565e49,..._0x1b848c])this['_model'][_0x1295('0x65')][_0x1295('0x39')](_0x21bf12)&&_0xbb4aad[_0x1295('0x11')][_0x1295('0x6c')](_0x21bf12);});}),this['_descriptionFactory']=new _0x3f9c39(this['editor'][_0x1295('0x85')][_0x1295('0x34')],this[_0x1295('0xb9')][_0x1295('0x3e')]),this[_0x1295('0x86')]=null,this[_0x1295('0xbe')]=new vt(this[_0x1295('0xb9')]),this['_suggestions']=new Map(),this[_0x1295('0xc2')]=_0xbb4aad[_0x1295('0xa1')]['get'](_0x1295('0xdc')),this['_enabledCommands']=new Set(),this[_0x1295('0x8d')]=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xbb4aad['config'][_0x1295('0x50')](_0x1295('0x28'),!0x0),this[_0x1295('0xc4')]=_0xbb4aad['config'][_0x1295('0xaf')]('trackChanges.trackFormatChanges'),this[_0x1295('0xa3')]=new _0x1452b9(_0xbb4aad,this['_enabledCommands']),this[_0x31e908([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x31e908([0x34,0x30,0x34,0x36,0x30,0x38,0x30,0x36]);}[_0x1295('0x94')](){const _0x15d52e=this[_0x1295('0xb9')];_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x104'))['markerToHighlight']({'model':_0x1295('0xbf'),'view':_0x33d8f9=>{const {id:_0x42a4fd,type:_0x1a1e17}=this[_0x1295('0xbd')](_0x33d8f9['markerName']),_0x3fa754=[_0x1295('0x9b'),_0x1295('0x1f')+_0x1a1e17];let _0x5ee5d1=0xbb8;return this[_0x1295('0xc9')]['includes'](_0x33d8f9[_0x1295('0xe4')])&&(_0x3fa754['push']('ck-suggestion-marker--active'),_0x5ee5d1=0xbc2),'deletion'==_0x1a1e17&&(_0x5ee5d1+=0x5),{'classes':_0x3fa754,'attributes':{'data-suggestion':_0x42a4fd},'priority':_0x5ee5d1};}}),_0x15d52e['conversion'][_0x1295('0x87')](_0x1295('0xbc'))['add'](_0x5e0b14=>{_0x5e0b14['on'](_0x1295('0x8e'),(_0x255afa,_0x28d207,_0x51bbed)=>{if(!_0x51bbed[_0x1295('0xd6')][_0x1295('0x2d')])return;const _0x41f51a=_0x28d207[_0x1295('0xd7')];if(!_0x41f51a)return;const _0x3b2090=_0x51bbed[_0x1295('0x7e')]['toViewElement'](_0x41f51a);_0x15d52e['model'][_0x1295('0x34')][_0x1295('0xf4')](_0x41f51a)&&_0x3b2090&&!_0x3b2090[_0x1295('0x84')](_0x1295('0x5a'))&&_0x3b2090['is'](_0x1295('0x10'))&&_0x3e735f(_0x3b2090,_0x51bbed[_0x1295('0x79')]);},{'priority':_0x1295('0x2b')});}),_0x15d52e[_0x1295('0x47')]['for']('dataDowncast')['markerToHighlight']({'model':_0x1295('0xbf'),'view':(_0x1ba01c,_0x2e4854)=>{if(!_0x2e4854[_0x1295('0xd6')][_0x1295('0x2d')])return null;const {type:_0x6cc2e7}=this[_0x1295('0xbd')](_0x1ba01c[_0x1295('0xe4')]);return{'classes':[_0x1295('0x9b'),_0x1295('0x1f')+_0x6cc2e7],'priority':0xbb8};}});const _0x3097a5=({showActiveMarkers:_0x418454=!0x0}={})=>(_0x3b0022,_0x129ff8,_0x2bc38f)=>{if(!_0x129ff8['item'])return;if(_0x129ff8[_0x1295('0xd7')]['is']('selection'))return void _0x2bc38f['consumable'][_0x1295('0x38')](_0x129ff8[_0x1295('0xd7')],_0x3b0022[_0x1295('0x14')]);const _0x4804c6=_0x2bc38f[_0x1295('0x7e')]['toViewElement'](_0x129ff8[_0x1295('0xd7')]);if(!(_0x129ff8['item']['is'](_0x1295('0x99'))&&_0x15d52e['model'][_0x1295('0x34')]['isBlock'](_0x129ff8[_0x1295('0xd7')])&&!_0x4804c6['getCustomProperty'](_0x1295('0xb4'))))return;const {id:_0x4ca0fc}=this['_splitMarkerName'](_0x129ff8[_0x1295('0xe4')]);_0x2bc38f['writer'][_0x1295('0x8f')]([_0x1295('0x9b'),_0x1295('0x101')],_0x4804c6),_0x2bc38f[_0x1295('0x79')]['setAttribute'](_0x1295('0x31'),_0x4ca0fc,_0x4804c6),_0x2bc38f[_0x1295('0x7e')][_0x1295('0xb3')](_0x4804c6,_0x129ff8[_0x1295('0xe4')]),_0x418454&&(this[_0x1295('0xc9')][_0x1295('0x12c')](_0x129ff8[_0x1295('0xe4')])?_0x2bc38f[_0x1295('0x79')][_0x1295('0x8f')](_0x1295('0x35'),_0x4804c6):_0x2bc38f[_0x1295('0x79')]['removeClass']('ck-suggestion-marker--active',_0x4804c6));for(const _0x4b8ab6 of _0x15d52e[_0x1295('0x85')][_0x1295('0xcc')](_0x129ff8[_0x1295('0xd7')])[_0x1295('0x136')]())_0x2bc38f[_0x1295('0x57')][_0x1295('0x38')](_0x4b8ab6,_0x3b0022[_0x1295('0x14')]);_0x2bc38f[_0x1295('0x57')][_0x1295('0x38')](_0x129ff8[_0x1295('0xd7')],_0x3b0022['name']);};_0x15d52e[_0x1295('0x47')]['for'](_0x1295('0xbc'))['add'](_0x553557=>{_0x553557['on'](_0x1295('0x90'),(_0x5e5a9f,_0x5cdba8,_0x1dd985)=>{_0x1dd985[_0x1295('0xd6')][_0x1295('0x2d')]&&_0x3097a5({'showActiveMarkers':!0x1})(_0x5e5a9f,_0x5cdba8,_0x1dd985);},{'priority':_0x1295('0xc')});}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')]('dataDowncast')['markerToData']({'model':_0x1295('0xbf'),'view':(_0xea722,_0x252da1)=>_0x252da1[_0x1295('0xd6')][_0x1295('0x2d')]?null:{'group':_0x1295('0xbf'),'name':_0xea722['substr'](_0x1295('0xbf')[_0x1295('0x72')]+0x1)}}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x1a'))[_0x1295('0x37')]({'view':{'name':_0x1295('0xbf'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1a48aa,{writer:_0x12dda2})=>{let _0x20ef05='suggestion:'+_0x1a48aa[_0x1295('0x60')](_0x1295('0x75'))+':'+_0x1a48aa[_0x1295('0x60')]('id');return _0x1a48aa[_0x1295('0x60')](_0x1295('0x124'))&&(_0x20ef05+=':'+_0x1a48aa[_0x1295('0x60')](_0x1295('0x124'))),_0x12dda2['createElement'](_0x1295('0x13a'),{'data-name':_0x20ef05});}}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x1a'))[_0x1295('0xc8')]({'view':_0x1295('0xbf')}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')]('editingDowncast')[_0x1295('0x1b')](_0x1d7608=>{_0x1d7608['on'](_0x1295('0x90'),_0x3097a5(),{'priority':_0x1295('0x2b')});}),_0x15d52e[_0x1295('0x47')][_0x1295('0x87')](_0x1295('0x104'))[_0x1295('0x1b')](_0x429c47=>{_0x429c47['on'](_0x1295('0x23'),(_0x1e2eb4,_0x40fb94,_0x2e13f7)=>{const _0x776f46=_0x2e13f7[_0x1295('0x7e')]['markerNameToElements'](_0x40fb94[_0x1295('0xe4')]);if(_0x776f46)for(const _0x31768f of _0x776f46)_0x31768f[_0x1295('0x84')](_0x1295('0xb4'))||(_0x2e13f7[_0x1295('0x79')][_0x1295('0x52')]([_0x1295('0x9b'),_0x1295('0x101'),_0x1295('0x35')],_0x31768f),_0x2e13f7[_0x1295('0x79')]['removeAttribute'](_0x1295('0x31'),_0x31768f),_0x2e13f7[_0x1295('0x7e')][_0x1295('0xcb')](_0x31768f,_0x40fb94[_0x1295('0xe4')]));},{'priority':'high'});}),_0x15d52e[_0x1295('0x85')][_0x1295('0xb1')][_0x1295('0xe5')](_0x513aa7=>{let _0xae3eea=!0x1;const _0x4ba6b5=Array[_0x1295('0x11f')](_0x15d52e['model'][_0x1295('0xb1')][_0x1295('0x134')][_0x1295('0x97')]()),_0x4d23d2=new Set();for(const {name:_0x3982ef,data:_0x16183e}of _0x4ba6b5){const {group:_0x45b9c4,type:_0x2ea65c,id:_0x38c119}=this[_0x1295('0xbd')](_0x3982ef);if('suggestion'!==_0x45b9c4)continue;const _0x5b9999=this[_0x1295('0x83')][_0x1295('0xaf')](_0x38c119);if(null!=_0x16183e['newRange']){_0x1295('0xad')==_0x2ea65c&&(_0xae3eea=_0xae3eea||Ct(_0x16183e[_0x1295('0xa2')],_0x3982ef,_0x513aa7,_0x15d52e['model'][_0x1295('0x34')]));if(_0x16183e[_0x1295('0xa2')]['isCollapsed']||'$graveyard'==_0x16183e[_0x1295('0xa2')][_0x1295('0xfd')][_0x1295('0xca')]||'formatBlock'==_0x2ea65c&&!_t(_0x16183e[_0x1295('0xa2')])||_0x1295('0x27')==_0x2ea65c&&!(!Dt(_0x269d10=_0x16183e[_0x1295('0xa2')])&&!function(_0xa44f36){return _0xa44f36[_0x1295('0x2c')]['parent']==_0xa44f36[_0x1295('0x5')][_0x1295('0x10b')]&&_0xa44f36[_0x1295('0x2c')][_0x1295('0x12d')];}(_0x269d10)))_0x513aa7['removeMarker'](_0x3982ef),_0xae3eea=!0x0;else{if(!_0x5b9999||!_0x5b9999['isInContent'])continue;_0x4d23d2[_0x1295('0x1b')](_0x5b9999);}}}var _0x269d10;return _0x4d23d2[_0x1295('0x51')]>0x0&&(_0xae3eea=!!this[_0x1295('0x5b')](_0x4d23d2)||_0xae3eea),_0xae3eea;}),_0x15d52e[_0x1295('0x85')][_0x1295('0xb1')][_0x1295('0xe5')](_0x2ab407=>{let _0x2fd14d=!0x1;for(const _0x53cdae of _0x15d52e[_0x1295('0x85')][_0x1295('0xb1')][_0x1295('0x134')][_0x1295('0x73')]()){if('insert'!=_0x53cdae[_0x1295('0x109')])continue;const _0x47cc5e=_0x53cdae[_0x1295('0xc1')]['getShiftedBy'](_0x53cdae['length']);if(_0x47cc5e[_0x1295('0x12d')])for(const _0x2c0107 of this[_0x1295('0x83')][_0x1295('0x30')]()){if(_0x2c0107[_0x1295('0x36')]||!_0x2c0107[_0x1295('0x7d')])continue;if(_0x1295('0x66')!=_0x2c0107['type'])continue;const _0x56b525=_0x2c0107['getFirstRange']();if(_0x56b525[_0x1295('0x2c')][_0x1295('0x125')]!=_0x56b525[_0x1295('0x5')][_0x1295('0x125')]&&_0x56b525['end'][_0x1295('0x7f')](_0x53cdae[_0x1295('0xc1')])){const _0x1a7ffd=_0x15d52e[_0x1295('0x85')][_0x1295('0x107')](_0x56b525[_0x1295('0x2c')],_0x47cc5e);_0x2ab407['updateMarker'](_0x2c0107['getFirstMarker'](),{'range':_0x1a7ffd}),_0x2fd14d=!0x0;}}}return _0x2fd14d;}),_0x15d52e['model'][_0x1295('0x65')]['on'](_0x1295('0x113'),(_0x3e32b8,_0x2da344,_0x242afb)=>{if(null==_0x242afb){const {id:_0x445272}=this[_0x1295('0xbd')](_0x2da344[_0x1295('0x14')]),_0x314cfc=this[_0x1295('0x83')][_0x1295('0xaf')](_0x445272);_0x314cfc&&_0x314cfc[_0x1295('0x11d')](_0x2da344['name']);}}),_0x15d52e[_0x1295('0x85')][_0x1295('0xb1')]['on'](_0x1295('0x4d'),()=>{const _0x39df76=Array[_0x1295('0x11f')](_0x15d52e['model'][_0x1295('0xb1')][_0x1295('0x134')]['getChangedMarkers']())[_0x1295('0x22')](_0x2d02eb=>'suggestion'===this['_splitMarkerName'](_0x2d02eb[_0x1295('0x14')])[_0x1295('0xff')]);if(0x0===_0x39df76[_0x1295('0x72')])return;_0x39df76[_0x1295('0x105')]((_0x13710d,_0x46b6b6)=>{const _0x2e3e48=_0x13710d[_0x1295('0x9c')][_0x1295('0x69')],_0x218dd2=_0x46b6b6[_0x1295('0x9c')][_0x1295('0x69')];return null===_0x2e3e48&&null===_0x218dd2?0x0:null===_0x2e3e48&&null!==_0x218dd2?-0x1:null!==_0x2e3e48&&null===_0x218dd2?0x1:_0x2e3e48[_0x1295('0x2c')]['isBefore'](_0x218dd2['start'])?-0x1:0x1;});const _0x2829a7=new Set(),_0x56d6fa=new Set();for(const {name:_0x29df30,data:_0x16d414}of _0x39df76){const {id:_0x562b8e}=this[_0x1295('0xbd')](_0x29df30);if(null===_0x16d414[_0x1295('0x69')]){const _0x241292=this[_0x1295('0x10d')](_0x29df30);_0x56d6fa[_0x1295('0x1b')](_0x241292);}else{const _0x243e51=this[_0x1295('0x83')]['get'](_0x562b8e);null!==_0x16d414['newRange']||_0x243e51[_0x1295('0x7d')]?(_0x2829a7[_0x1295('0x1b')](_0x243e51['head']),_0x56d6fa[_0x1295('0x1b')](_0x243e51)):this['_removeSuggestion'](_0x243e51);}}_0x56d6fa['size']>0x0&&this[_0x1295('0x77')](_0x56d6fa);for(const _0x405b31 of _0x2829a7)this[_0x1295('0xdb')](_0x1295('0x16'),_0x405b31);}),_0x15d52e[_0x1295('0x85')]['on']('applyOperation',(_0x4686f0,_0x22cf15)=>{const _0x4bc040=_0x22cf15[0x0];if(!this['_suggestions'][_0x1295('0x51')])return;if(!_0x4bc040[_0x1295('0xd')])return;if(_0x4bc040[_0x1295('0x139')][_0x1295('0x55')]||!_0x4bc040['batch']['isLocal'])return;let _0x1a8d62,_0x35dc0b;switch(_0x4bc040[_0x1295('0x109')]){case _0x1295('0xf2'):_0x1a8d62=_0x15d52e['model'][_0x1295('0x122')](_0x4bc040[_0x1295('0xc1')]),_0x35dc0b=_0x1a8d62[_0x1295('0x5f')](_0x4bc040[_0x1295('0x115')]);break;case _0x1295('0x81'):_0x1a8d62=_0x15d52e[_0x1295('0x85')]['createPositionAt'](_0x4bc040[_0x1295('0x20')]),_0x35dc0b=_0x15d52e['model'][_0x1295('0x122')](_0x4bc040[_0x1295('0x61')]);break;case _0x1295('0xf6'):_0x1a8d62=_0x15d52e[_0x1295('0x85')]['createPositionAt'](_0x4bc040['targetPosition']),_0x35dc0b=_0x1a8d62[_0x1295('0x5f')](_0x4bc040[_0x1295('0x115')]);break;default:return;}const _0x1483c1=_0x15d52e[_0x1295('0x85')][_0x1295('0x107')](_0x1a8d62,_0x35dc0b);_0x15d52e[_0x1295('0x85')][_0x1295('0x6')](()=>{for(const {suggestion:_0x45373e,meta:_0x5d34a1}of this['_findSuggestions'](_0x1483c1)){if(_0x45373e['isMultiRange'])continue;if(_0x1295('0xad')==_0x45373e[_0x1295('0x109')])continue;const _0x54a794=_0x45373e[_0x1295('0x9c')]&&_0x45373e[_0x1295('0x9c')]['multipleBlocks'];(_0x1295('0x66')!=_0x45373e[_0x1295('0x109')]||_0x1295('0x81')==_0x4bc040[_0x1295('0x109')]&&!_0x54a794)&&(_0x5d34a1[_0x1295('0x127')]||_0x1295('0x62')==_0x45373e[_0x1295('0x109')]&&_0x5d34a1['isOwn']||_0x45373e[_0x1295('0x44')]()[_0x1295('0x8')](_0x1483c1)&&this[_0x1295('0x106')](_0x45373e,_0x1a8d62,_0x35dc0b));}});},{'priority':_0x1295('0x92')}),_0x15d52e[_0x1295('0x85')]['on']('deleteContent',(_0x43bff8,_0x719089)=>{const _0x53a08d=_0x719089[0x0],_0xf8642e=_0x719089[0x1];if(_0xf8642e&&_0xf8642e[_0x1295('0xa0')])return;if(this[_0x1295('0xe3')])return;if(!this[_0x1295('0xa3')][_0x1295('0xe7')])return;if(_0x53a08d[_0x1295('0x88')])return;const _0x2e798f=_0x15d52e['model']['schema'],{start:_0x11e884,end:_0x4614f3}=_0x53a08d[_0x1295('0x44')](),_0xaca712=_0x11e884[_0x1295('0x5c')]&&_0x2e798f['isLimit'](_0x11e884[_0x1295('0x5c')])?null:_0x2e798f[_0x1295('0x80')](_0x11e884,_0x1295('0xa4')),_0xe7e118=_0x4614f3[_0x1295('0x10b')]&&_0x2e798f[_0x1295('0x4b')](_0x4614f3[_0x1295('0x10b')])?null:_0x2e798f[_0x1295('0x80')](_0x4614f3,_0x1295('0x7a')),_0x49d69c=_0x15d52e[_0x1295('0x85')][_0x1295('0x107')](_0xaca712?_0xaca712[_0x1295('0x2c')]:_0x11e884,_0xe7e118?_0xe7e118[_0x1295('0x5')]:_0x4614f3);_0x15d52e[_0x1295('0x85')][_0x1295('0x6')](_0xc36ba4=>{this['markDeletion'](_0x49d69c);const _0x43b3f5=_0x15d52e['model'][_0x1295('0x34')][_0x1295('0x80')](_0x49d69c[_0x1295('0x2c')]);_0x53a08d['is'](_0x1295('0x11e'))?_0xc36ba4[_0x1295('0x12f')](_0x43b3f5):_0x53a08d['setTo'](_0x43b3f5);}),_0x43bff8[_0x1295('0x6e')]();},{'priority':_0x4e5bde[_0x1295('0xf5')]+0xa}),_0x15d52e['model']['on']('insertContent',(_0x17fe0c,_0x13d6ee)=>{const _0x5327a6=_0x13d6ee[_0x13d6ee['length']-0x1];_0x5327a6&&_0x5327a6[_0x1295('0xa0')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0x1295('0xe7')]&&(_0x15d52e[_0x1295('0x85')]['change'](()=>{let _0x545a7a=_0x15d52e[_0x1295('0x85')][_0x1295('0x8a')](_0x13d6ee[0x0],_0x13d6ee[0x1],_0x13d6ee[0x2],{'forceDefaultExecution':!0x0});if(!_0x545a7a)return;_0x17fe0c[_0x1295('0x4e')]=_0x545a7a['clone']();const _0x3f519f=_0x545a7a[_0x1295('0x5')]['nodeBefore'],_0x1a9dc1=_0x15d52e['model'][_0x1295('0x34')];_0x3f519f&&_0x1a9dc1['isBlock'](_0x3f519f)&&!_0x1a9dc1[_0x1295('0xf4')](_0x3f519f)&&(_0x545a7a=_0x15d52e['model']['createRange'](_0x545a7a[_0x1295('0x2c')],_0x15d52e[_0x1295('0x85')][_0x1295('0x122')](_0x3f519f,_0x1295('0x5')))),this[_0x1295('0x7')](_0x545a7a);}),_0x17fe0c[_0x1295('0x6e')]());},{'priority':_0x1295('0x2b')}),this[_0x1295('0xb9')][_0x1295('0xc5')][_0x1295('0x1b')]('trackChanges',this['trackChangesCommand']),this[_0x1295('0xfb')](_0x1295('0x9'));const _0x8da3e=new _0x508f45(_0x15d52e,this[_0x1295('0x83')]);_0x15d52e['commands'][_0x1295('0x1b')]('acceptSuggestion',_0x8da3e),this[_0x1295('0xfb')](_0x1295('0x12b'));const _0xb10686=new _0x23b22b(_0x15d52e,this[_0x1295('0x83')]);_0x15d52e[_0x1295('0xc5')][_0x1295('0x1b')](_0x1295('0x15'),_0xb10686),this[_0x1295('0xfb')](_0x1295('0x15')),_0x15d52e[_0x1295('0xc5')]['add']('acceptAllSuggestions',new _0x15693c(_0x15d52e,_0x8da3e,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0xb5')),_0x15d52e[_0x1295('0xc5')][_0x1295('0x1b')]('discardAllSuggestions',new _0x15693c(_0x15d52e,_0xb10686,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0xe9')),_0x15d52e[_0x1295('0xc5')]['add']('acceptSelectedSuggestions',new _0x239b1b(_0x15d52e,_0x8da3e,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0x0')),_0x15d52e['commands'][_0x1295('0x1b')](_0x1295('0x131'),new _0x239b1b(_0x15d52e,_0xb10686,this[_0x1295('0x83')])),this[_0x1295('0xfb')](_0x1295('0x131'));const _0x117673=_0x15d52e[_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0xdc'));this[_0x1295('0x121')](_0x117673,_0x1295('0xed'),(_0x291368,{threadId:_0x2c5584})=>{const _0x51dd84=this['_suggestions'][_0x1295('0xaf')](_0x2c5584);_0x51dd84&&_0x51dd84[_0x1295('0x43')]&&0x1===_0x51dd84['commentThread'][_0x1295('0x72')]&&this[_0x1295('0xb6')](_0x2c5584,{'hasComments':!0x0});},{'priority':_0x1295('0x1d')}),this[_0x1295('0x121')](_0x117673,_0x1295('0x3a'),(_0x183a84,{threadId:_0x28acbf})=>{const _0xe3475c=this[_0x1295('0x83')][_0x1295('0xaf')](_0x28acbf);_0xe3475c&&_0xe3475c[_0x1295('0x43')]&&!_0xe3475c[_0x1295('0x43')][_0x1295('0x72')]&&this[_0x1295('0xb6')](_0x28acbf,{'hasComments':!0x1});},{'priority':_0x1295('0x1d')});}set[_0x1295('0x1e')](_0x356972){if(this[_0x1295('0x86')])throw new _0x5ca231(_0x1295('0x41'),this);this[_0x1295('0x86')]=_0x356972;}get[_0x1295('0x1e')](){return this[_0x1295('0x86')];}['getSuggestions']({skipNotAttached:_0x62d552=!0x1,toJSON:_0x3474c8=!0x1}={}){const _0x53d560=[];for(const _0x43aaa4 of this['_suggestions'][_0x1295('0x30')]())_0x62d552&&!_0x43aaa4['isInContent']||_0x53d560['push'](_0x43aaa4);return _0x3474c8?_0x53d560[_0x1295('0x45')](_0x13fd2f=>_0x13fd2f['toJSON']()):_0x53d560;}[_0x1295('0x126')](_0x2211ae){const _0x5908f2=this['_suggestions'][_0x1295('0xaf')](_0x2211ae);if(!_0x5908f2)throw new _0x5ca231(_0x1295('0xdf'),this);return _0x5908f2;}[_0x1295('0x12e')](_0x42e590){return this[_0x1295('0x83')][_0x1295('0x39')](_0x42e590);}['addSuggestionData'](_0x4d97fa){const {authorId:_0x3edd14,id:_0x429b43,attributes:_0x2520c9}=_0x4d97fa,[_0x419595,_0x1bce1b]=_0x4d97fa[_0x1295('0x109')][_0x1295('0x81')](':'),_0x14cfc3=this[_0x1295('0x83')]['get'](_0x429b43)||this[_0x1295('0xd5')](_0x419595,_0x1bce1b,_0x429b43,_0x3edd14,_0x2520c9);if(this[_0x1295('0x123')](_0x14cfc3),this[_0x1295('0x103')](_0x14cfc3,_0x419595,_0x1bce1b||null,_0x3edd14),_0x14cfc3['createdAt']=_0x4d97fa['createdAt'],_0x2520c9&&_0x2520c9[_0x1295('0x132')]){const _0x4fb34b=_0x2520c9[_0x1295('0x132')],_0x399359=this[_0x1295('0x40')](_0x4fb34b[_0x1295('0x6f')]);_0x14cfc3['authoredAt']=_0x4fb34b[_0x1295('0x9a')],_0x14cfc3['author']=_0x399359,_0x14cfc3[_0x1295('0x110')]=!0x0;}else _0x14cfc3[_0x1295('0xfe')]=_0x4d97fa['createdAt'];switch(_0x4d97fa[_0x1295('0x9c')]&&(_0x14cfc3[_0x1295('0x9c')]=_0x4d97fa[_0x1295('0x9c')]),_0x4d97fa[_0x1295('0xb0')]&&(_0x14cfc3[_0x1295('0xb0')]=_0x4d97fa[_0x1295('0xb0')]),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x14cfc3['_saved']=!0x0),this[_0x1295('0x12')][_0x1295('0xaf')](_0x14cfc3)){case _0x1295('0xe2'):this[_0x1295('0x12')]['set'](_0x14cfc3,_0x1295('0x63'));break;case'markerReady':_0x14cfc3['isInContent']?(this[_0x1295('0x12')][_0x1295('0xb2')](_0x14cfc3,'ready'),this[_0x1295('0xdb')](_0x1295('0x111'),_0x14cfc3)):this[_0x1295('0x12')]['set'](_0x14cfc3,_0x1295('0xcd'));}return _0x14cfc3;}[_0x1295('0x12b')](_0x26cdf9){this[_0x1295('0xa0')](()=>{this[_0x1295('0xb9')]['model'][_0x1295('0x6')](()=>{for(const _0xd621ec of _0x26cdf9['getAllAdjacentSuggestions']())_0xd621ec[_0x1295('0x8b')]();});});}['discardSuggestion'](_0x5e88e8){this[_0x1295('0xa0')](()=>{this[_0x1295('0xb9')][_0x1295('0x85')][_0x1295('0x6')](()=>{for(const _0x34abd6 of _0x5e88e8['getAllAdjacentSuggestions']())_0x34abd6[_0x1295('0xeb')]();});});}[_0x1295('0xfb')](_0x19f6bc,_0x255271){const _0x23958f=this[_0x1295('0xb9')][_0x1295('0xc5')][_0x1295('0xaf')](_0x19f6bc);if(!_0x23958f)throw new _0x5ca231(_0x1295('0x7c'),this,{'commandName':_0x19f6bc});this['_enabledCommands'][_0x1295('0x1b')](_0x23958f),_0x255271&&_0x23958f['on'](_0x1295('0x21'),(_0x3f07d9,_0x48e2ff)=>{this['trackChangesCommand']['value']&&(this[_0x1295('0xe3')]||_0x48e2ff[_0x1295('0x72')]>0x0&&_0x48e2ff[_0x48e2ff[_0x1295('0x72')]-0x1]&&_0x48e2ff[_0x48e2ff['length']-0x1]['forceDefaultExecution']||(_0x255271((..._0x19d9ea)=>_0x23958f[_0x1295('0x21')](..._0x19d9ea,{'forceDefaultExecution':!0x0}),..._0x48e2ff),_0x3f07d9[_0x1295('0x6e')]()));},{'priority':'high'});}[_0x1295('0xa0')](_0x55d5dc){let _0x33b928,_0x175044;const _0x429201=this[_0x1295('0xe3')];this[_0x1295('0xe3')]=!0x0;try{_0x33b928=_0x55d5dc();}catch(_0x2c29b3){_0x175044=_0x2c29b3;}return _0x429201||(this[_0x1295('0xe3')]=!0x1),_0x175044&&_0x5ca231[_0x1295('0x64')](_0x175044,this),_0x33b928;}['markInsertion'](_0x2dbe0e,_0x2d31b0=null,_0x3cdaba={}){if(_0x2dbe0e[_0x1295('0x88')])return null;const _0x108162=this[_0x1295('0xb9')][_0x1295('0xa1')]['get']('Users')['me'];for(const {suggestion:_0xc0e8fc,meta:_0x1f0a59}of this[_0x1295('0x9f')](_0x2dbe0e,_0x1295('0x62')))if(_0x1f0a59[_0x1295('0xe0')]){if(!_0x1f0a59[_0x1295('0x114')])return _0xc0e8fc;if(_0x2d31b0==_0xc0e8fc['subType']){const _0xc07eb9=_0xc0e8fc['getFirstRange']();return _0xc07eb9['start'][_0x1295('0x7f')](_0x2dbe0e['end'])?this[_0x1295('0x11c')](_0xc0e8fc,this[_0x1295('0x8d')][_0x1295('0x107')](_0x2dbe0e['start'],_0xc07eb9[_0x1295('0x5')])):this[_0x1295('0x11c')](_0xc0e8fc,this['_model'][_0x1295('0x107')](_0xc07eb9[_0x1295('0x2c')],_0x2dbe0e['end'])),_0xc0e8fc;}}const _0x4a8939=_0x381575(),_0x4fc87d=_0x108162['id'],_0x5d2f91=_0x2d31b0?_0x1295('0x32')+_0x2d31b0:_0x1295('0x62'),_0xcab097=this[_0x1295('0x89')]({'id':_0x4a8939,'type':_0x5d2f91,'createdAt':new Date(),'authorId':_0x4fc87d,'attributes':_0x3cdaba});return this[_0x1295('0xf1')](_0x5d2f91,_0x4a8939,_0x4fc87d,_0x2dbe0e),_0xcab097;}['markMultiRangeInsertion'](_0x5cf85a,_0x366f6b='multi',_0x4d2445={}){const _0x10c36f=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0x3c'))['me'],_0x177ece=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x62'),_0x366f6b,'join');for(const _0x2d6c1f of this[_0x1295('0xd2')]())if(_0x2d6c1f[_0x1295('0x2')]['id']==_0x10c36f['id']&&_0x1295('0x62')==_0x2d6c1f[_0x1295('0x109')]&&_0x2d6c1f['subType']==_0x366f6b&&(_0x177ece(_0x2d6c1f[_0x1295('0x3')](),_0x5cf85a)||_0x177ece(_0x5cf85a,_0x2d6c1f[_0x1295('0x3')]()))){for(const _0x694966 of _0x5cf85a)_0x2d6c1f[_0x1295('0xa8')](_0x694966);return _0x2d6c1f;}for(const _0xbc47e6 of _0x5cf85a)for(const {suggestion:_0x5d9db7,meta:_0x1743c6}of this['_findSuggestions'](_0xbc47e6,_0x1295('0x62'))){if(!_0x1743c6[_0x1295('0xe0')])continue;let _0x2481d6=!0x0;for(const _0x288455 of _0x5d9db7[_0x1295('0x3')]())for(const _0x257afa of _0x5cf85a)if(!_0x288455[_0x1295('0x8')](_0x257afa)){_0x2481d6=!0x1;break;}if(_0x2481d6)return _0x5d9db7;}const _0x500bea=_0x381575(),_0x4db5c8=_0x10c36f['id'],_0x10ff72='insertion:'+_0x366f6b,_0x3816e2=this[_0x1295('0x89')]({'id':_0x500bea,'type':_0x10ff72,'createdAt':new Date(),'authorId':_0x4db5c8,'attributes':_0x4d2445});for(const _0x52abed of _0x5cf85a)this[_0x1295('0xf1')](_0x10ff72,_0x500bea,_0x4db5c8,_0x52abed,_0x55858b[_0x1295('0x18')]());return _0x3816e2;}[_0x1295('0x3b')](_0x32b305,_0x15d113,_0x437f68=null,_0x464de2={}){if(_0x437f68=_0x437f68||Bt(_0x15d113),_0x32b305[_0x1295('0x88')])return null;if(!0x1===this[_0x1295('0xc4')]){const _0xcbce5b=this['_suggestionFactory'][_0x1295('0xa9')](_0x1295('0xad'),_0x437f68,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0xcbce5b([_0x32b305],_0x15d113,_0x464de2)),null;}const _0x65fbb8=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')]('Users')['me'],_0x42a32f=[];for(const {suggestion:_0x43df27,meta:_0x28a718}of this['_findSuggestions'](_0x32b305,_0x1295('0x62')))_0x28a718[_0x1295('0xe0')]&&!_0x28a718[_0x1295('0x5d')]&&_0x42a32f['push'](..._0x43df27[_0x1295('0x3')]());const _0xba578a=function(_0xefe8ac,_0x5ddea9){const _0x54bf41=[];for(const _0x3f2378 of _0x5ddea9){const _0xb2822f=_0xefe8ac[_0x1295('0x6b')](_0x3f2378);_0xb2822f&&_0x54bf41['push'](_0xb2822f);}return _0x54bf41;}(_0x32b305,_0x42a32f),_0x278a2d=function(_0x1c3b95,_0x1706f7){const _0x932c59=[_0x1c3b95];for(const _0x425c99 of _0x1706f7){let _0x4d49cb=0x0;for(;_0x4d49cb<_0x932c59['length'];){const _0x572021=_0x932c59[_0x4d49cb]['getDifference'](_0x425c99);_0x932c59[_0x1295('0x29')](_0x4d49cb,0x1,..._0x572021),_0x4d49cb+=_0x572021[_0x1295('0x72')];}}return _0x932c59;}(_0x32b305,_0x42a32f);_0xba578a[_0x1295('0x72')]&&this['_model'][_0x1295('0x6')](()=>{for(const _0x57009c of _0xba578a){const _0x34d4f7=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0xad'),_0x437f68,_0x1295('0x8b'));this[_0x1295('0xa0')](()=>_0x34d4f7([_0x57009c],_0x15d113,_0x464de2));}});for(const _0x1b19ce of _0x278a2d){let _0x5d94c4=null,_0x4ea81a=_0x1b19ce['start'],_0x52d37e=_0x1b19ce['end'];for(const {suggestion:_0x139961,meta:_0x41ef62}of this[_0x1295('0x9f')](_0x1b19ce,_0x1295('0xad'))){if(!_0x41ef62[_0x1295('0xe0')])continue;if(_0x139961[_0x1295('0x74')]!=_0x437f68)continue;const _0x33692d=_0x139961['getFirstRange']();if(_0x33692d['containsRange'](_0x1b19ce,!0x0))return null;_0x4ea81a=_0x4ea81a['isBefore'](_0x33692d['start'])?_0x4ea81a:_0x33692d[_0x1295('0x2c')],_0x52d37e=_0x52d37e[_0x1295('0x11b')](_0x33692d[_0x1295('0x5')])?_0x52d37e:_0x33692d[_0x1295('0x5')],_0x5d94c4?_0x33692d[_0x1295('0x2c')][_0x1295('0xc7')](_0x5d94c4['getFirstRange']()[_0x1295('0x2c')])?(_0x5d94c4[_0x1295('0xae')](),_0x5d94c4=_0x139961):_0x139961['removeMarkers']():_0x5d94c4=_0x139961;}const _0x29f4e2=this[_0x1295('0x8d')]['createRange'](_0x4ea81a,_0x52d37e);if(_0x5d94c4)this[_0x1295('0x11c')](_0x5d94c4,_0x29f4e2);else{const _0x133c0d=_0x381575(),_0x3d5a6a=_0x65fbb8['id'];this['_setSuggestionData']({'id':_0x133c0d,'type':_0x1295('0xba')+_0x437f68,'data':_0x15d113,'createdAt':new Date(),'authorId':_0x3d5a6a,'attributes':_0x464de2}),this['_addSuggestionMarker'](_0x1295('0xba')+_0x437f68,_0x133c0d,_0x3d5a6a,_0x29f4e2);}}return null;}[_0x1295('0x2e')](_0x3da8de,_0x5685d1,_0x255846=[],_0xbfb617=null,_0x1712f2={}){_0x5685d1[_0x1295('0x33')]||(_0x5685d1[_0x1295('0x33')]=_0x5685d1[_0x1295('0x120')]),_0x5685d1['multipleBlocks']=_0x3da8de['is'](_0x1295('0xab')),_0xbfb617=_0xbfb617||Bt(_0x5685d1);const _0x58ad65=_0x255846[_0x1295('0x45')](_0x5550fb=>Mt(_0x5550fb,this[_0x1295('0x8d')])),_0x267ed0=_0x3da8de['is']('range')?_0x3da8de:Mt(_0x3da8de,this[_0x1295('0x8d')]);if(!0x1===this['_trackFormatChanges']){const _0x50ec1e=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x66'),_0xbfb617,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0x50ec1e([_0x267ed0],_0x5685d1,_0x1712f2)),null;}_0x58ad65[_0x1295('0xd4')](_0x267ed0);let _0x4215e8=!0x0;for(const _0x201900 of _0x58ad65)if(!this['_rangeIsInLocalUserInsertion'](_0x201900)){_0x4215e8=!0x1;break;}if(_0x4215e8){const _0x85ab0b=this['_suggestionFactory'][_0x1295('0xa9')](_0x1295('0x66'),_0xbfb617,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0x85ab0b([_0x267ed0],_0x5685d1,_0x1712f2)),null;}let _0x4d3732=null,_0x153fb1=_0x267ed0[_0x1295('0x2c')],_0x1b0564=_0x267ed0[_0x1295('0x5')];for(const {suggestion:_0x1796af,meta:_0x1a8e43}of this['_findSuggestions'](_0x267ed0,_0x1295('0x66'))){if(!_0x1a8e43[_0x1295('0xe0')]||_0x1a8e43[_0x1295('0x114')]||_0x1a8e43['containsRangeInObject']||_0x1a8e43['isInsideObject'])continue;if(_0x1796af[_0x1295('0x9c')][_0x1295('0x33')]!=_0x5685d1[_0x1295('0x33')])continue;const _0x20c77f=_0x1796af[_0x1295('0x44')]();if(_0x1796af[_0x1295('0x74')]==_0xbfb617){if(_0x20c77f[_0x1295('0x8')](_0x267ed0,!0x0))return null;_0x153fb1=_0x153fb1['isBefore'](_0x20c77f[_0x1295('0x2c')])?_0x153fb1:_0x20c77f['start'],_0x1b0564=_0x1b0564['isAfter'](_0x20c77f[_0x1295('0x5')])?_0x1b0564:_0x20c77f['end'],_0x4d3732?_0x20c77f[_0x1295('0x2c')][_0x1295('0xc7')](_0x4d3732[_0x1295('0x44')]()[_0x1295('0x2c')])?(_0x4d3732[_0x1295('0xae')](),_0x4d3732=_0x1796af):_0x1796af['removeMarkers']():_0x4d3732=_0x1796af;}else{const _0x3b12a8=_0x267ed0[_0x1295('0x6b')](_0x20c77f);this[_0x1295('0x70')](_0x1796af,_0x3b12a8);}}const _0x4c5a46=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x3c'))['me'],_0x12b40f=_0x381575(),_0x2b8a6a=_0x4c5a46['id'];if(_0x4d3732)return this[_0x1295('0x11c')](_0x4d3732,this[_0x1295('0x8d')][_0x1295('0x107')](_0x153fb1,_0x1b0564)),_0x4d3732;{const _0x1f8f04=this[_0x1295('0x89')]({'id':_0x12b40f,'type':_0x1295('0x3f')+_0xbfb617,'data':_0x5685d1,'createdAt':new Date(),'authorId':_0x2b8a6a,'attributes':_0x1712f2});return this[_0x1295('0xf1')]('formatBlock:'+_0xbfb617,_0x12b40f,_0x2b8a6a,this[_0x1295('0x8d')]['createRange'](_0x153fb1,_0x1b0564)),_0x1f8f04;}}[_0x1295('0x1c')](_0x2ca710,_0x363292,_0x1612ad=[],_0x3d0e70=null,_0x5f2e21={}){_0x363292['formatGroupId']||(_0x363292[_0x1295('0x33')]=_0x363292[_0x1295('0x120')]);const _0x1438f7=_0x2ca710[0x0];_0x363292[_0x1295('0xf7')]=_0x1438f7['is'](_0x1295('0xab')),_0x3d0e70=_0x3d0e70||Bt(_0x363292);const _0x2dc9f3=_0x1612ad[_0x1295('0x45')](_0xba78d5=>Mt(_0xba78d5,this[_0x1295('0x8d')])),_0x4a2b1f=_0x1438f7['is'](_0x1295('0xab'))?_0x2ca710:_0x2ca710['map'](_0x464069=>Mt(_0x464069,this[_0x1295('0x8d')]));if(!0x1===this[_0x1295('0xc4')]){const _0x3763ce=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x66'),_0x3d0e70,_0x1295('0x8b'));return this[_0x1295('0xa0')](()=>_0x3763ce(_0x4a2b1f,_0x363292,_0x5f2e21)),null;}_0x2dc9f3[_0x1295('0xd4')](..._0x4a2b1f);let _0x134bbe=!0x0;for(const _0x2a7314 of _0x2dc9f3)if(!this[_0x1295('0x78')](_0x2a7314)){_0x134bbe=!0x1;break;}if(_0x134bbe){const _0x2926d7=this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1295('0x66'),_0x3d0e70,'accept');return this[_0x1295('0xa0')](()=>_0x2926d7(_0x4a2b1f,_0x363292,_0x5f2e21)),null;}const _0x4366e7=this['editor'][_0x1295('0xa1')][_0x1295('0xaf')]('Users')['me'];for(const _0x7c7cf7 of this[_0x1295('0xd2')]()){if(_0x7c7cf7['author']['id']!=_0x4366e7['id'])continue;if(_0x1295('0x66')!=_0x7c7cf7[_0x1295('0x109')]||_0x7c7cf7[_0x1295('0x9c')][_0x1295('0x33')]!=_0x363292[_0x1295('0x33')])continue;const _0x3d7ba2=_0x7c7cf7[_0x1295('0x74')]==_0x3d0e70;for(let _0x339532=0x0;_0x339532<_0x4a2b1f[_0x1295('0x72')];_0x339532++){const _0x4d843f=_0x4a2b1f[_0x339532];for(const _0x1a200b of _0x7c7cf7['getMarkers']()){const _0x276539=_0x1a200b[_0x1295('0xa5')]();if(_0x4d843f[_0x1295('0x7f')](_0x276539)){_0x3d7ba2?(_0x4a2b1f['splice'](_0x339532,0x1),_0x339532--):_0x7c7cf7[_0x1295('0xb8')](_0x1a200b[_0x1295('0x14')]);break;}}}}if(0x0==_0x4a2b1f[_0x1295('0x72')])return null;const _0x4839ee=this[_0x1295('0xbe')][_0x1295('0xa9')]('formatBlock',_0x3d0e70,_0x1295('0xdd'));for(const _0x341484 of this[_0x1295('0xd2')]())if(_0x341484[_0x1295('0x2')]['id']==_0x4366e7['id']&&'formatBlock'==_0x341484['type']&&_0x341484['data'][_0x1295('0x33')]==_0x363292['formatGroupId']&&_0x341484[_0x1295('0x74')]==_0x3d0e70&&(_0x4839ee(_0x341484[_0x1295('0x3')](),_0x4a2b1f)||_0x4839ee(_0x4a2b1f,_0x341484[_0x1295('0x3')]()))){for(const _0x40a682 of _0x4a2b1f)_0x341484[_0x1295('0xa8')](_0x40a682);return _0x341484;}const _0x54b7f0=_0x381575(),_0x51cbf0=_0x4366e7['id'],_0x5e7a38=_0x1295('0x3f')+_0x3d0e70,_0x423932=this[_0x1295('0x89')]({'id':_0x54b7f0,'type':_0x5e7a38,'data':_0x363292,'createdAt':new Date(),'authorId':_0x51cbf0,'attributes':_0x5f2e21});for(const _0x2d466d of _0x4a2b1f)this[_0x1295('0xf1')](_0x5e7a38,_0x54b7f0,_0x51cbf0,_0x2d466d,_0x55858b[_0x1295('0x18')]());return _0x423932;}[_0x1295('0x56')](_0x43f4be,_0x15a6f7=null,_0x313dce={}){if(_0x43f4be['isCollapsed'])return null;const _0x2eb037=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0x3c'))['me'],_0x2ca366=new _0x30e928(_0x43f4be[_0x1295('0x2c')],_0x43f4be[_0x1295('0x5')]);for(const {suggestion:_0x4fcf2f,meta:_0x476f2a}of this[_0x1295('0x9f')](_0x2ca366,_0x1295('0x62')))if(_0x476f2a['isOwn']&&!_0x476f2a[_0x1295('0x114')]){if(_0x4fcf2f[_0x1295('0x36')]){const _0x3382a5=_0x4fcf2f[_0x1295('0x3')]()[_0x1295('0x22')](_0x1b330f=>_0x1295('0x117')!=_0x1b330f[_0x1295('0xfd')][_0x1295('0xca')]);_0x3382a5['every'](_0x33824e=>_0x2ca366['containsRange'](_0x33824e,!0x0))&&_0x4fcf2f['discard']();if(_0x3382a5['some'](_0x119aa2=>_0x119aa2[_0x1295('0x8')](_0x2ca366,!0x0))){const _0x39fe19=this[_0x1295('0xbe')]['getSuggestionCallback']('deletion',_0x15a6f7,_0x1295('0x8b'));return this['forceDefaultExecution'](()=>_0x39fe19([_0x2ca366],null,_0x313dce)),null;}}else{const _0x1c6409=_0x2ca366[_0x1295('0x6b')](_0x4fcf2f[_0x1295('0x44')]());_0x4fcf2f[_0x1295('0x11a')]([_0x1c6409],null,_0x313dce);}}if(_0x2ca366['detach'](),_0x2ca366[_0x1295('0x88')]||_0x1295('0x117')==_0x2ca366[_0x1295('0xfd')][_0x1295('0xca')])return null;let _0x1683b8=null,_0x5be1ce=_0x2ca366[_0x1295('0x2c')],_0x235151=_0x2ca366[_0x1295('0x5')];for(const {suggestion:_0x511f29,meta:_0xc324c7}of this[_0x1295('0x9f')](_0x2ca366,_0x1295('0x27')))if(_0xc324c7[_0x1295('0xe0')]){if(_0x511f29[_0x1295('0x36')]){let _0x3f3c56=!0x0;for(const _0x2ae0fc of _0x511f29[_0x1295('0x3')]()){if(_0x2ae0fc['containsRange'](_0x2ca366,!0x0))return _0x511f29;_0x2ca366[_0x1295('0x8')](_0x2ae0fc)||(_0x3f3c56=!0x1);}_0x3f3c56&&_0x511f29['discard']();}else{const _0x60d491=_0x511f29[_0x1295('0x44')]();if(_0x60d491[_0x1295('0x8')](_0x2ca366,!0x0))return _0x511f29;_0x5be1ce=_0x5be1ce[_0x1295('0xc7')](_0x60d491['start'])?_0x5be1ce:_0x60d491['start'],_0x235151=_0x235151[_0x1295('0x11b')](_0x60d491[_0x1295('0x5')])?_0x235151:_0x60d491['end'],_0x1683b8?_0x60d491['start'][_0x1295('0xc7')](_0x1683b8[_0x1295('0x44')]()['start'])?(_0x1683b8[_0x1295('0xae')](),_0x1683b8=_0x511f29):_0x511f29[_0x1295('0xae')]():_0x1683b8=_0x511f29;}}if(_0x1683b8)return this[_0x1295('0x11c')](_0x1683b8,this[_0x1295('0x8d')]['createRange'](_0x5be1ce,_0x235151)),_0x1683b8;{const _0x9919c9=_0x381575(),_0x1f522e=this[_0x1295('0x8d')][_0x1295('0x107')](_0x5be1ce,_0x235151),_0x560488=_0x2eb037['id'],_0x4fca0e=_0x15a6f7?'deletion:'+_0x15a6f7:'deletion',_0x244166=this[_0x1295('0x89')]({'id':_0x9919c9,'type':_0x4fca0e,'createdAt':new Date(),'authorId':_0x560488,'attributes':_0x313dce});return this[_0x1295('0xf1')](_0x4fca0e,_0x9919c9,_0x560488,_0x1f522e),_0x244166;}}[_0x1295('0x130')](_0x325704,_0x1e982a=_0x1295('0x138'),_0x1f8d30={}){const _0x6422cb=this['editor']['plugins']['get'](_0x1295('0x3c'))['me'],_0x214ee6=_0x325704['map'](_0x13e004=>new _0x30e928(_0x13e004[_0x1295('0x2c')],_0x13e004[_0x1295('0x5')])),_0x2393f1=new Set();for(const _0x51cf51 of _0x214ee6)for(const {suggestion:_0x24fc87,meta:_0x3e3fa1}of this[_0x1295('0x9f')](_0x51cf51,'insertion'))_0x3e3fa1[_0x1295('0xe0')]&&!_0x3e3fa1['isNextTo']&&_0x2393f1[_0x1295('0x1b')](_0x24fc87);for(const _0x27f960 of _0x2393f1)if(_0x27f960[_0x1295('0x36')]){const _0x87ac51=_0x27f960[_0x1295('0x3')]();(!_0x27f960['attributes']||!_0x27f960['attributes'][_0x1295('0x8c')])&&(_0x87ac51[_0x1295('0x129')](_0x9b2cc4=>_0x214ee6['some'](_0x2c65f1=>_0x2c65f1[_0x1295('0x8')](_0x9b2cc4,!0x0)))&&_0x27f960[_0x1295('0xeb')]());if(_0x214ee6['every'](_0x2538bf=>_0x87ac51[_0x1295('0x10f')](_0x71ad3e=>_0x71ad3e[_0x1295('0x8')](_0x2538bf,!0x0)))){const _0x284976=this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1295('0x27'),_0x1e982a,_0x1295('0x8b'));return this['forceDefaultExecution'](()=>_0x284976(_0x325704,null,_0x1f8d30)),null;}}else{const _0x3c8c9d=_0x27f960['getFirstRange']();_0x214ee6[_0x1295('0x10f')](_0x4fb33c=>_0x4fb33c[_0x1295('0x8')](_0x3c8c9d,!0x0))&&_0x27f960[_0x1295('0xeb')]();if(_0x214ee6['every'](_0x249c7f=>_0x3c8c9d[_0x1295('0x8')](_0x249c7f,!0x0))){const _0x5edbbf=this[_0x1295('0xbe')]['getSuggestionCallback'](_0x1295('0x27'),_0x1e982a,'accept');return this[_0x1295('0xa0')](()=>_0x5edbbf(_0x214ee6,null,_0x1f8d30)),null;}}const _0x51d86e=this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1295('0x27'),_0x1e982a,'join');let _0x333d21=null;for(const _0x3499f3 of this[_0x1295('0xd2')]())if(_0x3499f3[_0x1295('0x2')]['id']==_0x6422cb['id']&&_0x3499f3[_0x1295('0x7d')]&&_0x1295('0x27')==_0x3499f3[_0x1295('0x109')]&&_0x3499f3[_0x1295('0x74')]==_0x1e982a&&(_0x51d86e(_0x3499f3[_0x1295('0x3')](),_0x214ee6)||_0x51d86e(_0x214ee6,_0x3499f3[_0x1295('0x3')]()))){if(_0x333d21){if(_0x3499f3[_0x1295('0x43')]&&_0x3499f3[_0x1295('0x43')][_0x1295('0x72')])continue;for(const _0x15d804 of _0x3499f3[_0x1295('0x3')]())_0x333d21['isIntersectingWithRange'](_0x15d804)||_0x333d21[_0x1295('0xa8')](_0x15d804);_0x3499f3['removeMarkers']();}else{_0x333d21=_0x3499f3;for(const _0x47a995 of _0x214ee6)_0x3499f3[_0x1295('0x67')](_0x47a995)||_0x3499f3[_0x1295('0xa8')](_0x47a995);}}if(_0x333d21)return _0x333d21;_0x2393f1[_0x1295('0x10e')]();for(const _0x3ca112 of _0x214ee6)for(const {suggestion:_0x48c1df,meta:_0x38f22e}of this[_0x1295('0x9f')](_0x3ca112,_0x1295('0x27')))_0x38f22e[_0x1295('0xe0')]&&_0x2393f1['add'](_0x48c1df);for(const _0xe10ce4 of _0x2393f1){const _0x13046c=_0xe10ce4[_0x1295('0x3')]();if(!_0x1f8d30||!_0x1f8d30['skipNestingCheck']){if(_0x214ee6[_0x1295('0x129')](_0x362396=>_0x13046c[_0x1295('0x10f')](_0x187a1b=>_0x187a1b[_0x1295('0x8')](_0x362396,!0x0))))return _0xe10ce4;}(!_0xe10ce4['attributes']||!_0xe10ce4['attributes'][_0x1295('0x8c')])&&(_0x13046c[_0x1295('0x129')](_0xf74402=>_0x214ee6[_0x1295('0x10f')](_0xa8c948=>_0xa8c948['containsRange'](_0xf74402,!0x0)))&&_0xe10ce4[_0x1295('0xeb')]());}const _0x2034f8=_0x381575(),_0x2efcb1=_0x6422cb['id'],_0x38ebf1=_0x1295('0x118')+_0x1e982a,_0x2cb72f=this['_setSuggestionData']({'id':_0x2034f8,'type':_0x38ebf1,'createdAt':new Date(),'authorId':_0x2efcb1,'attributes':_0x1f8d30});for(const _0x280518 of _0x214ee6)_0x280518[_0x1295('0x6a')](),_0x280518[_0x1295('0x88')]||_0x1295('0x117')==_0x280518['root'][_0x1295('0xca')]||this[_0x1295('0xf1')](_0x38ebf1,_0x2034f8,_0x2efcb1,_0x280518,_0x55858b[_0x1295('0x18')]());return _0x2cb72f;}[_0x1295('0x11c')](_0x161ae2,_0x57502c){const _0x55131c=_0x161ae2[_0x1295('0x100')]();this['_model'][_0x1295('0x6')](_0x3e9ad6=>{_0x3e9ad6[_0x1295('0x9e')](_0x55131c,{'range':_0x57502c});});}[_0x1295('0x123')](_0x899407){const _0x23d6a4=_0x899407['id'],_0x1ba576=this[_0x1295('0xb9')][_0x1295('0xd9')][_0x1295('0xaf')]('collaboration.channelId');this[_0x1295('0xc2')][_0x1295('0x76')](_0x23d6a4)||this[_0x1295('0xc2')][_0x1295('0x116')]({'channelId':_0x1ba576,'threadId':_0x23d6a4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4de512=this['_commentsRepository']['getCommentThread'](_0x23d6a4);_0x4de512[_0x1295('0x82')](_0x1295('0x10c')),_0x4de512[_0x1295('0x10c')]=!0x1,_0x899407[_0x1295('0x43')]=_0x4de512;}[_0x1295('0x103')](_0x4c38d5,_0x173be6,_0x4f5bbf,_0xcf6687){if(_0x4c38d5[_0x1295('0x109')]!=_0x173be6||_0x4c38d5[_0x1295('0x74')]!=_0x4f5bbf||_0x4c38d5[_0x1295('0x42')]['id']!=_0xcf6687)throw this[_0x1295('0xb9')][_0x1295('0x95')](_0x1295('0x71')),new _0x5ca231(_0x1295('0x71'),this);}[_0x1295('0x70')](_0x311b17,_0x3aa0e8){const _0x1cc869=_0x311b17[_0x1295('0x44')]();if(_0x3aa0e8['isEqual'](_0x1cc869))_0x311b17[_0x1295('0xae')]();else{if(_0x1cc869[_0x1295('0x8')](_0x3aa0e8)){const _0x1327ff=this['_model'][_0x1295('0x122')](_0x3aa0e8[_0x1295('0x2c')][_0x1295('0x10b')],_0x1295('0x5'));this[_0x1295('0x11c')](_0x311b17,this[_0x1295('0x8d')][_0x1295('0x107')](_0x1cc869[_0x1295('0x2c')],_0x1327ff));const _0x4dfc0f=_0x381575(),_0x12865f=_0x311b17[_0x1295('0x42')]['id'],_0x2def7c=_0x311b17[_0x1295('0x109')]+':'+_0x311b17[_0x1295('0x74')];this[_0x1295('0x89')]({'id':_0x4dfc0f,'type':_0x2def7c,'createdAt':new Date(),'authorId':_0x12865f,'data':_0x311b17[_0x1295('0x9c')],'attributes':_0x311b17[_0x1295('0xb0')]});const _0x2dac5d=this[_0x1295('0x8d')][_0x1295('0x122')](_0x3aa0e8[_0x1295('0x5')]['parent'],'after'),_0x1ed997=this[_0x1295('0x8d')][_0x1295('0x107')](_0x2dac5d,_0x1cc869[_0x1295('0x5')]);this[_0x1295('0xf1')](_0x2def7c,_0x4dfc0f,_0x12865f,_0x1ed997);}else{if(_0x1cc869[_0x1295('0xf0')](_0x3aa0e8[_0x1295('0x2c')])){const _0x5ac67a=this['_model']['createPositionAt'](_0x3aa0e8[_0x1295('0x2c')][_0x1295('0x10b')],_0x1295('0x5'));this['_setSuggestionRange'](_0x311b17,this['_model'][_0x1295('0x107')](_0x1cc869[_0x1295('0x2c')],_0x5ac67a));}else{const _0x516ddf=this[_0x1295('0x8d')][_0x1295('0x122')](_0x3aa0e8[_0x1295('0x5')][_0x1295('0x125')],_0x1295('0xd8'));this[_0x1295('0x11c')](_0x311b17,this[_0x1295('0x8d')][_0x1295('0x107')](_0x516ddf,_0x1cc869['end']));}}}}[_0x1295('0x78')](_0x19fd94){for(const {suggestion:_0x310c7e,meta:_0x52c43f}of this['_findSuggestions'](_0x19fd94,_0x1295('0x62'))){if(!_0x52c43f['isOwn'])continue;const _0x3d2d24=_0x310c7e[_0x1295('0x3')]();for(const _0x3c7d03 of _0x3d2d24)if(!_0x19fd94[_0x1295('0xc6')](_0x3c7d03)[_0x1295('0x72')])return!0x0;}return!0x1;}[_0x1295('0x48')](_0x1df05f){const _0x2969ab=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x3c'))[_0x1295('0x4c')](_0x1df05f);if(!_0x2969ab)throw new _0x5ca231(_0x1295('0xd3'),this);return _0x2969ab;}['_getExternalAuthor'](_0x5bbb00){const _0x81eb9d=this[_0x1295('0xb9')][_0x1295('0xa1')][_0x1295('0xaf')](_0x1295('0x3c')),_0x59cc01=_0x55d191(_0x1295('0x10a')+_0x5bbb00),_0x5bec48=_0x81eb9d[_0x1295('0x4c')](_0x59cc01);return _0x5bec48||_0x81eb9d[_0x1295('0xee')]({'id':_0x59cc01,'name':_0x5bbb00});}['_createSuggestion'](_0xeb8f5b,_0x415b33,_0x1805fb,_0x13f80f,_0x4c0c7d){const _0xb5e7e5=this[_0x1295('0x48')](_0x13f80f),_0x55a185=this[_0x1295('0xbe')]['buildSuggestion'](_0xeb8f5b,_0x415b33,_0x1805fb,_0xb5e7e5,_0x4c0c7d,_0x8b13e5=>this['_updateSuggestionData'](_0x1805fb,{'attributes':_0x8b13e5}));return this[_0x1295('0x121')](_0x55a185,_0x1295('0x8b'),()=>{this[_0x1295('0xb6')](_0x1805fb,{'state':_0x1295('0xcf')});},{'priority':_0x1295('0x2b')}),this[_0x1295('0x121')](_0x55a185,_0x1295('0xeb'),()=>{this[_0x1295('0xb6')](_0x1805fb,{'state':_0x1295('0x137')});},{'priority':_0x1295('0x2b')}),this['_suggestions'][_0x1295('0xb2')](_0x1805fb,_0x55a185),this[_0x1295('0x12')][_0x1295('0xb2')](_0x55a185,'notReady'),_0x55a185;}[_0x1295('0xbd')](_0x3c7bea){const _0x353e80=_0x3c7bea[_0x1295('0x81')](':');return{'group':_0x353e80[0x0],'type':_0x353e80[0x1],'subType':_0x353e80[_0x1295('0x72')]>=0x5?_0x353e80[0x2]:null,'id':_0x353e80[_0x1295('0x72')]<0x5?_0x353e80[0x2]:_0x353e80[0x3],'authorId':_0x353e80[_0x1295('0x72')]<0x5?_0x353e80[0x3]:_0x353e80[0x4],'markerCount':0x6==_0x353e80[_0x1295('0x72')]?_0x353e80[0x5]:null};}[_0x1295('0x106')](_0x1a7ffb,_0x385d60,_0x74223c){const _0x23c988=_0x1a7ffb['getFirstRange'](),_0x507353=_0x23c988[_0x1295('0x2c')],_0x4cf870=_0x23c988['end'];this[_0x1295('0x11c')](_0x1a7ffb,this[_0x1295('0x8d')][_0x1295('0x107')](_0x507353,_0x385d60));const _0x3f60fe=_0x381575(),_0xb39d86=_0x1a7ffb[_0x1295('0x42')]['id'],_0x30f570=_0x1a7ffb[_0x1295('0x109')]+(_0x1a7ffb[_0x1295('0x74')]?':'+_0x1a7ffb[_0x1295('0x74')]:'');this[_0x1295('0x89')]({'id':_0x3f60fe,'type':_0x30f570,'createdAt':new Date(),'authorId':_0xb39d86,'originalSuggestionId':_0x1a7ffb['id'],'attributes':_0x1a7ffb[_0x1295('0xb0')],'data':_0x1a7ffb[_0x1295('0x9c')]}),'formatBlock'==_0x1a7ffb['type']&&(_0x74223c=this[_0x1295('0x8d')]['createPositionBefore'](_0x74223c[_0x1295('0x125')])),this['_addSuggestionMarker'](_0x30f570,_0x3f60fe,_0xb39d86,this[_0x1295('0x8d')][_0x1295('0x107')](_0x74223c,_0x4cf870));}[_0x1295('0x9f')](_0x21d3bb,_0x2f65e8=null){const _0x596412=[],_0x506c92=this['_model'][_0x1295('0x34')],_0x1b2cb2=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x3c'))['me'];for(const _0x14dfec of this[_0x1295('0xd2')]())if(_0x14dfec[_0x1295('0x7d')]&&(!_0x2f65e8||_0x14dfec[_0x1295('0x109')]==_0x2f65e8))for(const _0x3acc78 of _0x14dfec[_0x1295('0x3')]()){const _0x3379c6=_0x21d3bb['start'][_0x1295('0x7f')](_0x3acc78[_0x1295('0x5')])||_0x21d3bb['end'][_0x1295('0x7f')](_0x3acc78[_0x1295('0x2c')]);if(_0x3379c6||_0x21d3bb[_0x1295('0x6b')](_0x3acc78)){const _0x2aff59=_0x21d3bb[_0x1295('0x8')](_0x3acc78)&&At(_0x506c92,_0x3acc78[_0x1295('0x2c')],_0x21d3bb),_0x303a76=_0x3acc78['containsRange'](_0x21d3bb)&&At(_0x506c92,_0x21d3bb['start'],_0x3acc78);_0x596412[_0x1295('0xd4')]({'suggestion':_0x14dfec,'meta':{'isOwn':_0x1b2cb2==_0x14dfec[_0x1295('0x2')],'isNextTo':_0x3379c6,'isInsideObject':_0x2aff59,'containsRangeInObject':_0x303a76}});break;}}return _0x596412;}[_0x1295('0xf1')](_0x5e8f39,_0x4713b3,_0x1176ed,_0x57c654,_0x198392){this['_model']['change'](_0x46b6ab=>{let _0x17322b=_0x1295('0x68')+_0x5e8f39+':'+_0x4713b3+':'+_0x1176ed;_0x198392&&(_0x17322b=_0x17322b+':'+_0x198392),_0x46b6ab[_0x1295('0x59')](_0x17322b,{'range':_0x57c654,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1295('0x26')](_0x35b3a0){const _0x245c38=_0x35b3a0[_0x1295('0x102')],_0x5874b1=_0x35b3a0[_0x1295('0xc0')];_0x35b3a0['previous']=null,null!=_0x245c38&&(_0x245c38['next']=null),_0x35b3a0[_0x1295('0xc0')]=null,null!=_0x5874b1&&(_0x5874b1[_0x1295('0x102')]=null),_0x1295('0xe8')==this[_0x1295('0x12')][_0x1295('0xaf')](_0x35b3a0)&&(this['_suggestionState'][_0x1295('0xb2')](_0x35b3a0,_0x1295('0xcd')),this[_0x1295('0xdb')]('suggestionUnloaded',_0x35b3a0,_0x245c38,_0x5874b1));}[_0x1295('0x89')](_0x55a64e){const _0x4bf187=_0x55a64e['id'],_0x20765e=this[_0x1295('0xe')](_0x55a64e);if(this[_0x1295('0x86')]&&this[_0x1295('0x86')][_0x1295('0xfa')]){const _0x315e80=this['editor'][_0x1295('0xa1')]['get'](_0x1295('0x112')),_0x31bb21=_0x20765e[_0x1295('0x49')],_0x483fcc=_0x20765e[_0x1295('0x74')]?_0x20765e[_0x1295('0x109')]+':'+_0x20765e[_0x1295('0x74')]:_0x20765e[_0x1295('0x109')],_0x242eba=this[_0x1295('0xb9')][_0x1295('0x3e')],_0x43cf33=_0x315e80[_0x1295('0x1b')](_0x146fe2(_0x242eba,_0x1295('0x4'))),_0x57946e={'id':_0x4bf187,'type':_0x483fcc,'hasComments':_0x31bb21,'data':_0x55a64e[_0x1295('0x9c')]||null,'originalSuggestionId':_0x55a64e[_0x1295('0x91')]||null,'attributes':_0x20765e[_0x1295('0xb0')]};this[_0x1295('0x86')]['addSuggestion'](_0x57946e)['then'](_0x1dc7df=>{_0x20765e[_0x1295('0x13b')]=!0x0,_0x315e80[_0x1295('0xc3')](_0x43cf33),_0x1dc7df&&_0x1dc7df[_0x1295('0x9a')]&&(this[_0x1295('0x83')]['get'](_0x4bf187)[_0x1295('0x9a')]=_0x1dc7df[_0x1295('0x9a')]);})[_0x1295('0x119')](_0x2b524a=>{throw _0x5105f9(_0x1295('0x19')),this[_0x1295('0xb9')]['model'][_0x1295('0x96')]({'isUndoable':!0x1},()=>{_0x20765e[_0x1295('0xeb')]();}),_0x20765e[_0x1295('0xec')](),this[_0x1295('0x83')][_0x1295('0xf3')](_0x20765e['id']),this[_0x1295('0x12')][_0x1295('0xf3')](_0x20765e),_0x2b524a;});}return _0x20765e;}[_0x1295('0xb6')](_0x1d243a,_0x33b209){const _0x8740a9=this[_0x1295('0xb9')]['plugins'][_0x1295('0xaf')]('PendingActions'),_0x350067=this[_0x1295('0x126')](_0x1d243a);if(this[_0x1295('0x86')]&&this[_0x1295('0x86')][_0x1295('0xd1')]){if(_0x350067[_0x1295('0x13b')]){const _0x5e46b1=_0x8740a9[_0x1295('0x1b')](_0x146fe2(this[_0x1295('0xb9')]['locale'],'PENDING_ACTION_SUGGESTION'));this[_0x1295('0x86')][_0x1295('0xd1')](_0x1d243a,_0x33b209)['then'](()=>{_0x8740a9['remove'](_0x5e46b1);});}else _0x350067['on'](_0x1295('0xa'),()=>{this[_0x1295('0xb6')](_0x1d243a,_0x33b209);});}}[_0x1295('0x3d')](_0x1e50f6){if(!this[_0x1295('0x86')]||!this[_0x1295('0x86')][_0x1295('0x126')])throw new _0x5ca231('track-changes-adapter-missing-getsuggestion',this);return this[_0x1295('0x86')][_0x1295('0x126')](_0x1e50f6);}[_0x1295('0x10d')](_0x526a30){const {id:_0x4375e0,type:_0x9ba32c,subType:_0x456b4e,authorId:_0x2b8a56}=this[_0x1295('0xbd')](_0x526a30),_0x374c68=this[_0x1295('0x83')][_0x1295('0xaf')](_0x4375e0)||this['_createSuggestion'](_0x9ba32c,_0x456b4e,_0x4375e0,_0x2b8a56,{});switch(this[_0x1295('0x103')](_0x374c68,_0x9ba32c,_0x456b4e,_0x2b8a56),this[_0x1295('0x12')][_0x1295('0xaf')](_0x374c68)){case _0x1295('0xe2'):this[_0x1295('0x3d')](_0x4375e0)[_0x1295('0x4a')](_0x2a09ae=>{let _0x3d40e=Promise[_0x1295('0x9d')]();_0x2a09ae[_0x1295('0x49')]&&(_0x3d40e=this['_commentsRepository'][_0x1295('0xfc')]({'channelId':this['editor'][_0x1295('0xd9')][_0x1295('0xaf')](_0x1295('0xa7')),'threadId':_0x4375e0})),_0x3d40e[_0x1295('0x4a')](()=>{this['addSuggestionData'](_0x2a09ae)[_0x1295('0x13b')]=!0x0;});}),this[_0x1295('0x12')]['set'](_0x374c68,_0x1295('0xe1'));break;case'removed':this['_updateSuggestionData'](_0x4375e0,{'state':_0x1295('0x53')});case _0x1295('0x63'):this[_0x1295('0x12')][_0x1295('0xb2')](_0x374c68,'ready'),this[_0x1295('0xdb')](_0x1295('0x111'),_0x374c68);break;case _0x1295('0xe8'):this[_0x1295('0xdb')]('suggestionChanged',_0x374c68);}return _0x374c68[_0x1295('0x11d')](_0x526a30),_0x374c68;}[_0x1295('0x77')](_0xb4439e){const _0x1b90b3=Array['from'](_0xb4439e)['filter'](_0x1fc0f5=>!_0x1fc0f5['isMultiRange']),_0xb23f47=this['getSuggestions']({'skipNotAttached':!0x0})[_0x1295('0x22')](_0x4df1a2=>!_0x4df1a2['isMultiRange']),_0x589a04=_0xb23f47[_0x1295('0x22')](_0x3f7597=>!_0xb4439e['has'](_0x3f7597)),_0x24607b=new Map(_0xb23f47[_0x1295('0x45')](_0x1a1ec=>[_0x1a1ec,this[_0x1295('0xbe')][_0x1295('0xa9')](_0x1a1ec[_0x1295('0x109')],_0x1a1ec[_0x1295('0x74')],_0x1295('0xa6'))])),_0x369072=new Map(_0xb23f47[_0x1295('0x45')](_0x472991=>[_0x472991,_0x472991[_0x1295('0x44')]()])),_0x43322f=new Set(),_0x3586b9=new Set();for(let _0x102510=0x0;_0x102510<_0x1b90b3[_0x1295('0x72')];_0x102510++)_0x4491d7(_0x1b90b3[_0x102510],_0x1b90b3,_0x102510+0x1);for(let _0x32b0ae=0x0;_0x32b0ae<_0x1b90b3['length'];_0x32b0ae++)_0x4491d7(_0x1b90b3[_0x32b0ae],_0x589a04,0x0);for(let _0x255983=0x0;_0x255983<_0x1b90b3[_0x1295('0x72')];_0x255983++){const _0x540ad5=_0x1b90b3[_0x255983];!_0x3586b9['has'](_0x540ad5)&&_0x540ad5[_0x1295('0x102')]&&(_0x540ad5[_0x1295('0x102')][_0x1295('0xc0')]===_0x540ad5&&(_0x540ad5[_0x1295('0x102')][_0x1295('0xc0')]=null),_0x540ad5[_0x1295('0x102')]=null),!_0x43322f[_0x1295('0x39')](_0x540ad5)&&_0x540ad5[_0x1295('0xc0')]&&(_0x540ad5[_0x1295('0xc0')][_0x1295('0x102')]===_0x540ad5&&(_0x540ad5[_0x1295('0xc0')][_0x1295('0x102')]=null),_0x540ad5['next']=null);}function _0x4491d7(_0xd61d3a,_0x1d2808,_0x4185aa){for(let _0x5039e7=_0x4185aa;_0x5039e7<_0x1d2808[_0x1295('0x72')];_0x5039e7++){const _0x4a08f3=_0x403b28(_0xd61d3a,_0x1d2808[_0x5039e7]);_0x4a08f3&&(_0x4a08f3[0x0][_0x1295('0xc0')]=_0x4a08f3[0x1],_0x4a08f3[0x1][_0x1295('0x102')]=_0x4a08f3[0x0],_0x43322f[_0x1295('0x1b')](_0x4a08f3[0x0]),_0x3586b9[_0x1295('0x1b')](_0x4a08f3[0x1]));}}function _0x403b28(_0x2422c4,_0x50c72e){if(_0x2422c4[_0x1295('0x2')]['id']!==_0x50c72e['author']['id'])return null;const _0x423fa5=_0x24607b[_0x1295('0xaf')](_0x2422c4)(_0x2422c4,_0x50c72e,_0x369072[_0x1295('0xaf')](_0x2422c4),_0x369072[_0x1295('0xaf')](_0x50c72e));if(!_0x423fa5)return null;return _0x24607b[_0x1295('0xaf')](_0x50c72e)(_0x2422c4,_0x50c72e,_0x369072[_0x1295('0xaf')](_0x2422c4),_0x369072['get'](_0x50c72e))?_0x423fa5[0x1][_0x1295('0x43')]&&_0x423fa5[0x1]['commentThread'][_0x1295('0x72')]?null:_0x423fa5:null;}}[_0x1295('0x5b')](_0x37b431){const _0x4cea53=Array[_0x1295('0x11f')](_0x37b431),_0x47d5b8=this[_0x1295('0xd2')]({'skipNotAttached':!0x0}),_0x2a3726=_0x47d5b8[_0x1295('0x22')](_0x4602ba=>!_0x37b431[_0x1295('0x39')](_0x4602ba)),_0x144a79=new Map(_0x4cea53['map'](_0x3143b1=>[_0x3143b1,this[_0x1295('0xbe')][_0x1295('0xa9')](_0x3143b1[_0x1295('0x109')],_0x3143b1[_0x1295('0x74')],_0x1295('0xdd'))])),_0x23f955=new Map(_0x47d5b8[_0x1295('0x45')](_0x56550c=>[_0x56550c,_0x56550c[_0x1295('0x3')]()]));for(let _0x359413=0x0;_0x359413<_0x4cea53['length'];_0x359413++){if(_0x5eb59a(this,_0x4cea53[_0x359413],_0x4cea53,_0x359413+0x1))return!0x0;}for(let _0x50f9ef=0x0;_0x50f9ef<_0x4cea53[_0x1295('0x72')];_0x50f9ef++){if(_0x5eb59a(this,_0x4cea53[_0x50f9ef],_0x2a3726,0x0))return!0x0;}return!0x1;function _0x5eb59a(_0x5b69cc,_0xbc7fbd,_0x494e26,_0x20ad13){for(let _0x4e1f60=_0x20ad13;_0x4e1f60<_0x494e26['length'];_0x4e1f60++){const _0xb40ce0=_0x494e26[_0x4e1f60];if(_0xb40ce0[_0x1295('0x109')]!==_0xbc7fbd[_0x1295('0x109')]||_0xb40ce0['author']['id']!==_0xbc7fbd[_0x1295('0x2')]['id']||_0xb40ce0[_0x1295('0x74')]!==_0xbc7fbd[_0x1295('0x74')])continue;const _0x5588ab=_0x144a79[_0x1295('0xaf')](_0xbc7fbd),_0x1e76ff=_0x23f955['get'](_0xbc7fbd),_0x239306=_0x23f955[_0x1295('0xaf')](_0xb40ce0),_0x520874=_0xbc7fbd[_0x1295('0x43')]&&_0xbc7fbd['commentThread']['length'],_0x3e4fee=_0xb40ce0[_0x1295('0x43')]&&_0xb40ce0['commentThread'][_0x1295('0x72')];if(!_0x520874&&_0x5588ab(_0x239306,_0x1e76ff))return _0x5b69cc[_0x1295('0x108')](_0xb40ce0,_0xbc7fbd),_0x23f955[_0x1295('0xf3')](_0xbc7fbd),!0x0;if(!_0x3e4fee&&_0x5588ab(_0x1e76ff,_0x239306))return _0x5b69cc[_0x1295('0x108')](_0xbc7fbd,_0xb40ce0),_0x23f955['delete'](_0xb40ce0),!0x0;}return!0x1;}}[_0x1295('0x108')](_0x32be66,_0x106832){if(_0x32be66['isMultiRange'])for(const _0x15d43a of _0x106832[_0x1295('0x3')]())_0x32be66['addRange'](_0x15d43a);else{const _0x58717e=_0x106832[_0x1295('0x44')]()[_0x1295('0x5')];this[_0x1295('0x11c')](_0x32be66,this[_0x1295('0x8d')][_0x1295('0x107')](_0x32be66[_0x1295('0x44')]()[_0x1295('0x2c')],_0x58717e));}_0x106832[_0x1295('0xae')]();}}class vt{constructor(_0x155944){this[_0x1295('0x25')]=_0x155944,this['_model']=_0x155944[_0x1295('0x85')],this[_0x1295('0xda')]=new Map(),this[_0x1295('0xef')]=new Map(),this[_0x1295('0xea')]();}[_0x1295('0xd0')](_0x1147dc,_0x5264d7,_0xbf46a0,_0x2f376d,_0x2817dc,_0x1bd22a){return new _0x55858b(this[_0x1295('0x8d')],{'type':_0x1147dc,'subType':_0x5264d7,'id':_0xbf46a0,'author':_0x2f376d,'creator':_0x2f376d,'attributes':_0x2817dc,'onAttributesChange':_0x1bd22a,'onAccept':(..._0x5136f8)=>this[_0x1295('0xa9')](_0x1147dc,_0x5264d7,_0x1295('0x8b'))(..._0x5136f8),'onDiscard':(..._0x1c0d87)=>this[_0x1295('0xa9')](_0x1147dc,_0x5264d7,_0x1295('0xeb'))(..._0x1c0d87)});}[_0x1295('0x24')](_0x455c17,_0x1d3f4d,_0x3cc704,_0x292dbf){const _0x124c4b=_0x455c17+':'+_0x1d3f4d+':'+_0x3cc704;this['_customCallbacks'][_0x1295('0xb2')](_0x124c4b,_0x292dbf);}[_0x1295('0xa9')](_0x4b4117,_0x46d355,_0x48efdf){const _0x403f79=_0x4b4117+':'+_0x46d355+':'+_0x48efdf;return this[_0x1295('0xda')][_0x1295('0xaf')](_0x403f79)||this[_0x1295('0xef')][_0x1295('0xaf')](_0x4b4117+':'+_0x48efdf);}[_0x1295('0xea')](){const _0x2cc573=()=>{},_0x321f2c=_0x248743=>{_0x248743[_0x1295('0x105')]((_0x8b321d,_0x4adadb)=>_0x8b321d[_0x1295('0x2c')][_0x1295('0xc7')](_0x4adadb[_0x1295('0x2c')])?0x1:-0x1),this[_0x1295('0x8d')][_0x1295('0x6')](_0xa937e7=>{for(const _0xcfe974 of _0x248743){let _0x5b6d63;_0x5b6d63=_0xcfe974[_0x1295('0x5')][_0x1295('0x12d')]&&_0xcfe974[_0x1295('0x5')][_0x1295('0x125')]==_0xcfe974[_0x1295('0x2c')][_0x1295('0x5c')]?_0xa937e7[_0x1295('0x7b')](_0xcfe974['start'][_0x1295('0x5c')],'on'):_0xa937e7['createSelection'](_0xcfe974),this[_0x1295('0x8d')][_0x1295('0x13')](_0x5b6d63,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5d24a4=(_0x224b16,_0xe70467)=>{this[_0x1295('0x8d')][_0x1295('0x6')](_0x30c0ca=>{const {commandName:_0x740dfc,commandParams:_0x2ad1a7=[]}=_0xe70467,_0x1f0648=_0x224b16[_0x1295('0x45')](_0x56e0f2=>(Dt(_0x56e0f2)&&(_0x56e0f2=this[_0x1295('0x8d')][_0x1295('0x107')](_0x56e0f2[_0x1295('0x5')])),_0x56e0f2))[_0x1295('0x22')](_0x336e99=>_0x1295('0x117')!==_0x336e99['root'][_0x1295('0xca')]);if(_0x1f0648[_0x1295('0x72')]<0x1)return;const _0x2564a2=Array[_0x1295('0x11f')](this['_model'][_0x1295('0xb1')][_0x1295('0xf9')][_0x1295('0x3')]())[_0x1295('0x45')](_0x1e51bb=>_0x30e928[_0x1295('0x12a')](_0x1e51bb));_0x30c0ca['setSelection'](_0x1f0648);for(const _0x251f5c of this[_0x1295('0x25')][_0x1295('0xc5')]['commands']())_0x251f5c[_0x1295('0x133')]();_0x2ad1a7[_0x1295('0xd4')]({'forceDefaultExecution':!0x0}),this[_0x1295('0x25')][_0x1295('0x21')](_0x740dfc,..._0x2ad1a7);const _0x5ecc16=_0x2564a2[_0x1295('0x22')](_0x12ea76=>_0x1295('0x117')!=_0x12ea76[_0x1295('0xfd')]['rootName']);_0x5ecc16[_0x1295('0x72')]>0x0&&_0x30c0ca[_0x1295('0x12f')](_0x5ecc16);for(const _0x3d2301 of _0x2564a2)_0x3d2301['detach']();});},_0x4c2c1f=(_0x2ff11c,_0x41369d)=>0x1==_0x2ff11c[_0x1295('0x72')]&&0x1==_0x41369d['length']&&_0x2ff11c[0x0]['end'][_0x1295('0x7f')](_0x41369d[0x0]['start']),_0x48f69f=(_0x483af7,_0xe32869,_0x4c56bc,_0x471bf3)=>$t(_0x483af7,_0xe32869,_0x4c56bc,_0x471bf3,this['_model'])?[_0x483af7,_0xe32869]:$t(_0xe32869,_0x483af7,_0x471bf3,_0x4c56bc,this[_0x1295('0x8d')])?[_0xe32869,_0x483af7]:null;this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0x5e'),_0x2cc573),this[_0x1295('0xef')][_0x1295('0xb2')]('insertion:discard',_0x321f2c),this['_defaultCallbacks']['set'](_0x1295('0xb7'),_0x4c2c1f),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0x4f'),_0x48f69f),this[_0x1295('0xef')][_0x1295('0xb2')](_0x1295('0xf'),_0x321f2c),this['_defaultCallbacks'][_0x1295('0xb2')]('deletion:discard',_0x2cc573),this['_defaultCallbacks']['set'](_0x1295('0x17'),_0x4c2c1f),this[_0x1295('0xef')]['set']('deletion:chain',_0x48f69f),this[_0x1295('0xef')][_0x1295('0xb2')](_0x1295('0x135'),_0x5d24a4),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0x2a'),_0x2cc573),this[_0x1295('0xef')]['set'](_0x1295('0x54'),_0x4c2c1f),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0xde'),_0x2cc573),this[_0x1295('0xef')]['set'](_0x1295('0xac'),_0x5d24a4),this['_defaultCallbacks'][_0x1295('0xb2')](_0x1295('0xf8'),_0x2cc573),this[_0x1295('0xef')][_0x1295('0xb2')](_0x1295('0x46'),_0x4c2c1f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2cc573);}}function At(_0x67498,_0x2a5fd4,_0x522e6){for(const _0x2e1ba7 of _0x2a5fd4['parent'][_0x1295('0x98')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e1ba7['root']==_0x2e1ba7)return!0x1;if(!_0x522e6[_0x1295('0x128')](_0x2e1ba7))return!0x1;if(_0x67498['isObject'](_0x2e1ba7)||_0x67498[_0x1295('0x4b')](_0x2e1ba7))return!0x0;}return!0x1;}function Dt(_0x53d25b){return _0x53d25b[_0x1295('0x5')][_0x1295('0x125')]==_0x53d25b[_0x1295('0x2c')][_0x1295('0x5c')]&&_0x53d25b['end']['isAtStart'];}function Ct(_0x546cae,_0x5c86fd,_0x380bb3,_0x4e7a26){const _0x3e53e6=_0x411d1e=>!_0x411d1e[_0x1295('0xd7')]['is'](_0x1295('0xbb'))&&!_0x4e7a26[_0x1295('0xf4')](_0x411d1e[_0x1295('0xd7')]),_0x639482=_0x546cae[_0x1295('0x2c')][_0x1295('0xb')](_0x3e53e6),_0x19e02c=_0x546cae['end'][_0x1295('0xb')](_0x3e53e6,{'direction':_0x1295('0x7a')});return(!_0x546cae[_0x1295('0x2c')][_0x1295('0x7f')](_0x639482)||!_0x546cae['end'][_0x1295('0x7f')](_0x19e02c))&&(_0x639482['isBefore'](_0x19e02c)?_0x380bb3[_0x1295('0x9e')](_0x5c86fd,{'range':_0x380bb3[_0x1295('0x107')](_0x639482,_0x19e02c)}):_0x380bb3[_0x1295('0xb8')](_0x5c86fd),!0x0);}function Bt(_0x107cf0){return _0x55d191(_0x107cf0);}function _t(_0x469a29){const _0x587087=_0x469a29['start']['nodeAfter'];return _0x587087&&_0x587087['is'](_0x1295('0x99'));}function Mt(_0x3ae638,_0x46c2e7){const _0x2ebeb6=_0x46c2e7[_0x1295('0x34')][_0x1295('0xf4')](_0x3ae638)||_0x46c2e7[_0x1295('0x34')][_0x1295('0xaa')](_0x3ae638);return _0x46c2e7[_0x1295('0x107')](_0x46c2e7['createPositionAt'](_0x3ae638,_0x1295('0x6d')),_0x2ebeb6?_0x46c2e7['createPositionAfter'](_0x3ae638):_0x46c2e7[_0x1295('0x122')](_0x3ae638,_0x1295('0x5')));}function $t(_0x56cb5f,_0x61743b,_0x245795,_0x4eba3d,_0x441fce){if(_0x245795[_0x1295('0x5')][_0x1295('0x7f')](_0x4eba3d[_0x1295('0x2c')]))return!0x0;if(_0x56cb5f['type']!=_0x61743b[_0x1295('0x109')])return!0x1;if(!_0x245795['end'][_0x1295('0xce')](_0x4eba3d[_0x1295('0x2c')]))return!0x1;const _0x10f279=_0x441fce['createRange'](_0x245795[_0x1295('0x5')],_0x4eba3d[_0x1295('0x2c')])['getWalker']();for(const _0x2e47fd of _0x10f279)if([_0x1295('0x1'),'elementEnd'][_0x1295('0x12c')](_0x2e47fd[_0x1295('0x109')])&&_0x441fce[_0x1295('0x34')][_0x1295('0x4b')](_0x2e47fd[_0x1295('0xd7')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x3bd5=['PENDING_ACTION_SUGGESTION','getAncestors','_enabledCommands','options','data-suggestion','update:suggestion','applyOperation','commandName','return','isEqual','selection','activeMarkers','suggestion:','addRange','discard','normal','_customCallbacks','dataToMarker','detach','getMultiRangeId','change:activeMarkers','markerReady','isDocumentOperation','_findSuggestions','elementStart','_handleNewSuggestionMarker','_checkSuggestionCorrectness','values','isObject','insert','has','parent','updateSuggestion','filter','containerElement','subType','_rangeIsInLocalUserInsertion','containsRange','_getExternalAuthor','size','formatInline:chain','isNextTo','refresh','elementToElement','_trackFormatChanges','$graveyard','removeComment','_getAuthorFromId','isMultiRange','_breakSuggestionMarker','howMany','hasCommentThread','createRange','attributes','getChangedMarkers','deletion:discard','insertion:','_defaultCallbacks','createPositionAt','getAttribute','getLastMatchingPosition','@external','registerCustomCallback','marker-count','name','PendingActions','isOwn','accepted','isCollapsed','deletion:join','trackChangesCommand','isAtEnd','isBefore','ck-suggestion-marker--active','_getSuggestionData','external:','deletion','ready','adapter','_setSuggestionData','push','bindElementToMarker','createPositionBefore','enableCommand','formatInline:discard','CommentsRepository','isInContent','acceptSuggestion','isSelectable','next','_adapter','length','commands','deletion:chain','track-changes-suggestion-data-mismatch','formatInline:accept','createRangeIn','_createSuggestion','commentThread','getAllAdjacentSuggestions','delete','suggestionChanged','createPositionAfter','formatInline','pluginName','ck-suggestion-marker-','track-changes-adapter-missing-getsuggestion','markDeletion','root','getShiftedBy','differ','isRemovable','acceptAllSuggestions','conversion','type','formatGroupId','formatInline:','addMarker:suggestion:formatBlock','clone','isUndo','createdAt','setSelection','markInsertion','removed','_registerDefaultCallbacks','split','author','model','suggestionLoaded','splice','every','getChanges','join','addComment','isLimit','splitPosition','high','removeMarkers','nodeAfter','hasSuggestion','markerToData','before','getMarkers','group','getFirstMarker','_commentsRepository','dataDowncast','isIntersectingWithRange','_addSuggestionMarker','locale','_saved','getSuggestionCallback','value','Users','forceDefaultExecution','getWalker','get','move','consumable','previous','getUser','remove','_model','getFirstRange','map','ck-suggestion-marker-formatBlock','isInsideObject','$textProxy','end','addSuggestion','addMarker','schema','plugins','setAttribute','isBlock','getSuggestions','editor','newRange','_suggestionFactory','stop','_setSuggestionRange','_joinWithAdjacentSuggestions','multipleBlocks','track-changes-command-not-found','head','authoredAt','ck-suggestion-marker','formatBlock:accept','sort','range','containsRangeInObject','track-changes-suggestion-not-found','documentSelection','mapper','position','init','define','markerNameToElements','getIntersection','config','trackChanges.trackFormatChanges','getDifference','removeMarker','trackChanges','_isForcedDefaultExecutionBlock','insertion:chain','toViewElement','_editor','enableReadOnlyMode','rootName','discardAllSuggestions','isAfter','fire','consume','data','addClass','nodeBefore','getRanges','formatBlock:chain','rejected','markBlockFormat','execute','deletion:','_cutOutSuggestionMarker','createElement','item','removeMarker:suggestion:formatBlock','insertContent','addSuggestionData','addMarker:suggestion','updateMarker','registerPostFixer','formatBlock:discard','lowest','listenTo','markers','_refreshSuggestionsChain','acceptSelectedSuggestions','markInlineFormat','start','formatInline:join','change','getNearestSelectionRange','writer','editingDowncast','track-changes-adapter-already-set','createSelection','batch','getCustomProperty','resolve','_addThreadToSuggestion','add','fromCharCode','chain','forward','creator','upcast','includes','markerToHighlight','buildSuggestion','_descriptionFactory','_suggestionState','multi','suggestion','markerName','hasComments','for','containsItem','toJSON','_suggestions','catch','set','then','deleteContent','isAtStart','formatBlock:','_joinSuggestions','getItems','showSuggestionHighlights','removeClass','_splitMarkerName','reconvertMarker','insertion','some','unbindElementFromMarkerName','getCommentThread','_onDiscard','containsPosition','suggestion-type','moveTargetPosition','discardSuggestion','getSuggestion','addHighlight','addMarkerName','collaboration.channelId','_removeSuggestion','change:data','_updateSuggestionData','deletion:accept','setTo','widget','element','discardSelectedSuggestions','notReady','dataReady','insertion:join','oldRange','stopListening','formatBlock','document','from','accept','after','low'];(function(_0xe5ab4,_0x3bd5fa){const _0x350f9c=function(_0x48e97a){while(--_0x48e97a){_0xe5ab4['push'](_0xe5ab4['shift']());}};_0x350f9c(++_0x3bd5fa);}(_0x3bd5,0x67));const _0x350f=function(_0xe5ab4,_0x3bd5fa){_0xe5ab4=_0xe5ab4-0x0;let _0x350f9c=_0x3bd5[_0xe5ab4];return _0x350f9c;};import{Plugin as _0x1517c8,PendingActions as _0x3fa6ea}from'ckeditor5/src/core';import{LiveRange as _0x319865}from'ckeditor5/src/engine';import{CKEditorError as _0x119d3e,uid as _0x4cb20a,priorities as _0x59dfda,logWarning as _0xd5393f}from'ckeditor5/src/utils';import{toWidget as _0x466ac4}from'ckeditor5/src/widget';import{Users as _0x4a58c5,hashObject as _0x394310}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d34bb from'./commands/trackchangescommand';import _0x4bcffe from'./commands/acceptsuggestioncommand';import _0x4186d0 from'./commands/discardsuggestioncommand';import _0x4a8fef from'./commands/executeonallsuggestionscommand';import _0xea949b from'./commands/executeonselectedsuggestionscommand';import _0x14b365 from'./suggestion';import _0x516da3 from'./suggestiondescriptionfactory';import _0x4c9d57 from'./integrations/alignment';import _0x154435 from'./integrations/basicstyles';import _0x804368 from'./integrations/blockquote';import _0x4458eb from'./integrations/ckbox';import _0x3ce1d3 from'./integrations/codeblock';import _0x23536b from'./integrations/comments';import _0x38c2a4 from'./integrations/deletecommand';import _0x3d7022 from'./integrations/documentlist';import _0x4792cd from'./integrations/entercommand';import _0x5e9ee8 from'./integrations/findandreplace';import _0x30e073 from'./integrations/font';import _0x5d7a9c from'./integrations/heading';import _0x1b625b from'./integrations/highlight';import _0x4c6b3f from'./integrations/horizontalline';import _0x338ebb from'./integrations/htmlembed';import _0x2b50d8 from'./integrations/image';import _0x4bdbfa from'./integrations/imagereplace';import _0x18c38f from'./integrations/importword';import _0x122ffd from'./integrations/indent';import _0x32252c from'./integrations/inputcommand';import _0x3f10e3 from'./integrations/link';import _0x59088e from'./integrations/list';import _0x14ba1f from'./integrations/listproperties';import _0x5ccc88 from'./integrations/mediaembed';import _0x49aa95 from'./integrations/mention';import _0x2e4b54 from'./integrations/pagebreak';import _0x4eddb9 from'./integrations/paragraph';import _0x381ea0 from'./integrations/removeformat';import _0xd1bac0 from'./integrations/restrictededitingmode';import _0x5502af from'./integrations/shiftentercommand';import _0x303eca from'./integrations/standardeditingmode';import _0x1e6178 from'./integrations/style';import _0x4486aa from'./integrations/table';import _0x12e456 from'./integrations/tablemergesplit';import _0x42bfb1 from'./integrations/tableheadings';import _0x42bf29 from'./integrations/tableclipboard';import _0x3dca8f from'./integrations/tablecolumnresize';import _0x4921df from'./integrations/title';import _0x4cf8d3 from'./integrations/undo';import{getTranslation as _0x3436c0}from'./utils/common-translations';import _0x34d931 from'./integrations/tablecaption';import _0x2c73a6 from'./integrations/documentlistproperties';import _0x27d865 from'./integrations/tableproperties';export default class p extends _0x1517c8{static get['requires'](){return['CommentsRepository',_0x4a58c5,_0x3fa6ea,_0x4c9d57,_0x154435,_0x804368,_0x4458eb,_0x3ce1d3,_0x23536b,_0x38c2a4,_0x3d7022,_0x2c73a6,_0x4792cd,_0x5e9ee8,_0x30e073,_0x5d7a9c,_0x1b625b,_0x4c6b3f,_0x338ebb,_0x2b50d8,_0x4bdbfa,_0x18c38f,_0x122ffd,_0x32252c,_0x3f10e3,_0x59088e,_0x14ba1f,_0x5ccc88,_0x49aa95,_0x2e4b54,_0x4eddb9,_0x381ea0,_0xd1bac0,_0x5502af,_0x303eca,_0x1e6178,_0x4486aa,_0x12e456,_0x42bfb1,_0x34d931,_0x42bf29,_0x3dca8f,_0x27d865,_0x4921df,_0x4cf8d3];}static get[_0x350f('0x1')](){return'TrackChangesEditing';}constructor(_0x2e4011){function _0x314b1f(_0x2f6356){return _0x2f6356[_0x350f('0x3d')](_0x23f325=>String[_0x350f('0x95')](_0x23f325))['join']('');}super(_0x2e4011),this[_0x350f('0xa8')](_0x350f('0xde'),[]),this['on'](_0x350f('0xe7'),(_0x1c79c7,_0x98370,_0x5c388f,_0x2281fa)=>{this[_0x350f('0x3b')][_0x350f('0x8a')](()=>{for(const _0x15ee7e of[..._0x2281fa,..._0x5c388f])this[_0x350f('0x3b')][_0x350f('0x84')][_0x350f('0xf1')](_0x15ee7e)&&_0x2e4011['editing'][_0x350f('0xb2')](_0x15ee7e);});}),this[_0x350f('0x9d')]=new _0x516da3(this[_0x350f('0x49')]['model'][_0x350f('0x44')],this[_0x350f('0x49')][_0x350f('0x2e')]),this[_0x350f('0x12d')]=null,this[_0x350f('0x4b')]=new vt(this['editor']),this[_0x350f('0xa6')]=new Map(),this[_0x350f('0x2a')]=_0x2e4011[_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x128')),this[_0x350f('0xd5')]=new Set(),this[_0x350f('0x3b')]=this[_0x350f('0x49')]['model'],this[_0x350f('0x9e')]=new WeakMap(),this[_0x350f('0x65')]=!0x1,_0x2e4011[_0x350f('0x60')][_0x350f('0x5d')]('trackChanges.trackFormatChanges',!0x0),this['_trackFormatChanges']=_0x2e4011[_0x350f('0x60')]['get'](_0x350f('0x61')),this[_0x350f('0x119')]=new _0x2d34bb(_0x2e4011,this[_0x350f('0xd5')]),this[_0x314b1f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x314b1f([0x34,0x30,0x34,0x36,0x30,0x38,0x31,0x30]);}[_0x350f('0x5c')](){const _0x5a8c0c=this[_0x350f('0x49')];_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))['markerToHighlight']({'model':_0x350f('0xa0'),'view':_0x4aad6a=>{const {id:_0x55a5bf,type:_0x1c382e}=this['_splitMarkerName'](_0x4aad6a[_0x350f('0xa1')]),_0xd7c253=[_0x350f('0x53'),_0x350f('0x2')+_0x1c382e];let _0x5cfb01=0xbb8;return this['activeMarkers']['includes'](_0x4aad6a[_0x350f('0xa1')])&&(_0xd7c253[_0x350f('0x123')](_0x350f('0x11c')),_0x5cfb01=0xbc2),_0x350f('0x11f')==_0x1c382e&&(_0x5cfb01+=0x5),{'classes':_0xd7c253,'attributes':{'data-suggestion':_0x55a5bf},'priority':_0x5cfb01};}}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x2b'))[_0x350f('0x94')](_0x4f6648=>{_0x4f6648['on'](_0x350f('0x7e'),(_0xc113d5,_0x368f7f,_0x4f97eb)=>{if(!_0x4f97eb[_0x350f('0xd6')][_0x350f('0xaf')])return;const _0xefff09=_0x368f7f['item'];if(!_0xefff09)return;const _0x3eaf8c=_0x4f97eb['mapper'][_0x350f('0x67')](_0xefff09);_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')][_0x350f('0xef')](_0xefff09)&&_0x3eaf8c&&!_0x3eaf8c[_0x350f('0x91')](_0x350f('0xc5'))&&_0x3eaf8c['is'](_0x350f('0xf5'))&&_0x466ac4(_0x3eaf8c,_0x4f97eb[_0x350f('0x8c')]);},{'priority':_0x350f('0x21')});}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')]('dataDowncast')[_0x350f('0x9b')]({'model':_0x350f('0xa0'),'view':(_0x50be73,_0x277a65)=>{if(!_0x277a65['options'][_0x350f('0xaf')])return null;const {type:_0x120c5c}=this[_0x350f('0xb1')](_0x50be73[_0x350f('0xa1')]);return{'classes':[_0x350f('0x53'),_0x350f('0x2')+_0x120c5c],'priority':0xbb8};}});const _0x188385=({showActiveMarkers:_0x109e2b=!0x0}={})=>(_0x527657,_0x17a984,_0x3e0de1)=>{if(!_0x17a984[_0x350f('0x7a')])return;if(_0x17a984['item']['is'](_0x350f('0xdd')))return void _0x3e0de1[_0x350f('0x37')][_0x350f('0x6e')](_0x17a984['item'],_0x527657[_0x350f('0x113')]);const _0x5556f2=_0x3e0de1[_0x350f('0x5a')]['toViewElement'](_0x17a984[_0x350f('0x7a')]);if(!(_0x17a984[_0x350f('0x7a')]['is'](_0x350f('0xc6'))&&_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')][_0x350f('0x47')](_0x17a984[_0x350f('0x7a')])&&!_0x5556f2[_0x350f('0x91')](_0x350f('0xbd'))))return;const {id:_0x23fc5c}=this[_0x350f('0xb1')](_0x17a984[_0x350f('0xa1')]);_0x3e0de1['writer'][_0x350f('0x70')]([_0x350f('0x53'),'ck-suggestion-marker-formatBlock'],_0x5556f2),_0x3e0de1[_0x350f('0x8c')][_0x350f('0x46')](_0x350f('0xd7'),_0x23fc5c,_0x5556f2),_0x3e0de1[_0x350f('0x5a')][_0x350f('0x124')](_0x5556f2,_0x17a984[_0x350f('0xa1')]),_0x109e2b&&(this[_0x350f('0xde')][_0x350f('0x9a')](_0x17a984[_0x350f('0xa1')])?_0x3e0de1[_0x350f('0x8c')]['addClass']('ck-suggestion-marker--active',_0x5556f2):_0x3e0de1[_0x350f('0x8c')][_0x350f('0xb0')](_0x350f('0x11c'),_0x5556f2));for(const _0x49467d of _0x5a8c0c[_0x350f('0x18')][_0x350f('0x133')](_0x17a984[_0x350f('0x7a')])[_0x350f('0xae')]())_0x3e0de1[_0x350f('0x37')][_0x350f('0x6e')](_0x49467d,_0x527657['name']);_0x3e0de1['consumable'][_0x350f('0x6e')](_0x17a984[_0x350f('0x7a')],_0x527657['name']);};_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x2b'))['add'](_0x9dc56a=>{_0x9dc56a['on']('addMarker:suggestion:formatBlock',(_0x383272,_0xb4a754,_0x448c18)=>{_0x448c18[_0x350f('0xd6')]['showSuggestionHighlights']&&_0x188385({'showActiveMarkers':!0x1})(_0x383272,_0xb4a754,_0x448c18);},{'priority':'highest'});}),_0x5a8c0c[_0x350f('0xa')]['for'](_0x350f('0x2b'))[_0x350f('0x25')]({'model':_0x350f('0xa0'),'view':(_0x3ef126,_0xb33579)=>_0xb33579[_0x350f('0xd6')][_0x350f('0xaf')]?null:{'group':_0x350f('0xa0'),'name':_0x3ef126['substr'](_0x350f('0xa0')[_0x350f('0x12e')]+0x1)}}),_0x5a8c0c['conversion'][_0x350f('0xa3')](_0x350f('0x99'))[_0x350f('0xfe')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3bff05,{writer:_0x2ef49e})=>{let _0x1e7a97=_0x350f('0xdf')+_0x3bff05['getAttribute'](_0x350f('0xb9'))+':'+_0x3bff05['getAttribute']('id');return _0x3bff05[_0x350f('0x10e')]('marker-count')&&(_0x1e7a97+=':'+_0x3bff05[_0x350f('0x10e')](_0x350f('0x112'))),_0x2ef49e[_0x350f('0x79')]('$marker',{'data-name':_0x1e7a97});}}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')]('upcast')[_0x350f('0xe4')]({'view':_0x350f('0xa0')}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))[_0x350f('0x94')](_0x93735e=>{_0x93735e['on'](_0x350f('0xe'),_0x188385(),{'priority':_0x350f('0x21')});}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))[_0x350f('0x94')](_0x40423f=>{_0x40423f['on'](_0x350f('0x7b'),(_0x19f6a9,_0x1c5eeb,_0x3637df)=>{const _0x3c36b5=_0x3637df[_0x350f('0x5a')][_0x350f('0x5e')](_0x1c5eeb[_0x350f('0xa1')]);if(_0x3c36b5)for(const _0x3f360b of _0x3c36b5)_0x3f360b[_0x350f('0x91')]('addHighlight')||(_0x3637df['writer']['removeClass']([_0x350f('0x53'),_0x350f('0x3e'),'ck-suggestion-marker--active'],_0x3f360b),_0x3637df[_0x350f('0x8c')]['removeAttribute'](_0x350f('0xd7'),_0x3f360b),_0x3637df['mapper'][_0x350f('0xb5')](_0x3f360b,_0x1c5eeb['markerName']));},{'priority':'high'});}),_0x5a8c0c[_0x350f('0x18')]['document'][_0x350f('0x80')](_0x577f5d=>{let _0x2d7fc4=!0x1;const _0x20a2da=Array[_0x350f('0xcf')](_0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')]['differ'][_0x350f('0x109')]()),_0x67ae9e=new Set();for(const {name:_0x1f8221,data:_0x5d06fd}of _0x20a2da){const {group:_0x15a9b2,type:_0x503f85,id:_0x56ce1e}=this[_0x350f('0xb1')](_0x1f8221);if(_0x350f('0xa0')!==_0x15a9b2)continue;const _0x1e99cc=this[_0x350f('0xa6')][_0x350f('0x35')](_0x56ce1e);if(null!=_0x5d06fd[_0x350f('0x4a')]){'formatInline'==_0x503f85&&(_0x2d7fc4=_0x2d7fc4||Ct(_0x5d06fd[_0x350f('0x4a')],_0x1f8221,_0x577f5d,_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')]));if(_0x5d06fd[_0x350f('0x4a')]['isCollapsed']||_0x350f('0x100')==_0x5d06fd[_0x350f('0x4a')][_0x350f('0x5')][_0x350f('0x6a')]||_0x350f('0xcd')==_0x503f85&&!_t(_0x5d06fd[_0x350f('0x4a')])||'deletion'==_0x503f85&&!(!Dt(_0x35ffa0=_0x5d06fd['newRange'])&&!function(_0x5e39f8){return _0x5e39f8[_0x350f('0x88')][_0x350f('0xf2')]==_0x5e39f8[_0x350f('0x41')][_0x350f('0x71')]&&_0x5e39f8['start'][_0x350f('0x11a')];}(_0x35ffa0)))_0x577f5d[_0x350f('0x63')](_0x1f8221),_0x2d7fc4=!0x0;else{if(!_0x1e99cc||!_0x1e99cc[_0x350f('0x129')])continue;_0x67ae9e[_0x350f('0x94')](_0x1e99cc);}}}var _0x35ffa0;return _0x67ae9e[_0x350f('0xfa')]>0x0&&(_0x2d7fc4=!!this[_0x350f('0x4e')](_0x67ae9e)||_0x2d7fc4),_0x2d7fc4;}),_0x5a8c0c['model'][_0x350f('0xce')][_0x350f('0x80')](_0x35889b=>{let _0x128166=!0x1;for(const _0x3d438e of _0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')][_0x350f('0x7')][_0x350f('0x1c')]()){if('insert'!=_0x3d438e[_0x350f('0xb')])continue;const _0x4b1c0f=_0x3d438e[_0x350f('0x5b')][_0x350f('0x6')](_0x3d438e[_0x350f('0x12e')]);if(_0x4b1c0f[_0x350f('0x11a')])for(const _0x4b4f69 of this[_0x350f('0xa6')][_0x350f('0xee')]()){if(_0x4b4f69[_0x350f('0x103')]||!_0x4b4f69[_0x350f('0x129')])continue;if(_0x350f('0xcd')!=_0x4b4f69[_0x350f('0xb')])continue;const _0x596185=_0x4b4f69['getFirstRange']();if(_0x596185['start']['parent']!=_0x596185[_0x350f('0x41')]['parent']&&_0x596185[_0x350f('0x41')][_0x350f('0xdc')](_0x3d438e['position'])){const _0x4e045b=_0x5a8c0c['model'][_0x350f('0x107')](_0x596185[_0x350f('0x88')],_0x4b1c0f);_0x35889b[_0x350f('0x7f')](_0x4b4f69[_0x350f('0x29')](),{'range':_0x4e045b}),_0x128166=!0x0;}}}return _0x128166;}),_0x5a8c0c[_0x350f('0x18')][_0x350f('0x84')]['on'](_0x350f('0xd8'),(_0x17d0da,_0x365487,_0x3b96ad)=>{if(null==_0x3b96ad){const {id:_0x4d9ef9}=this[_0x350f('0xb1')](_0x365487[_0x350f('0x113')]),_0x4ac7e4=this['_suggestions'][_0x350f('0x35')](_0x4d9ef9);_0x4ac7e4&&_0x4ac7e4[_0x350f('0xbe')](_0x365487[_0x350f('0x113')]);}}),_0x5a8c0c['model']['document']['on'](_0x350f('0xc1'),()=>{const _0x324523=Array[_0x350f('0xcf')](_0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')][_0x350f('0x7')]['getChangedMarkers']())[_0x350f('0xf4')](_0x389dd6=>_0x350f('0xa0')===this[_0x350f('0xb1')](_0x389dd6['name'])[_0x350f('0x28')]);if(0x0===_0x324523[_0x350f('0x12e')])return;_0x324523[_0x350f('0x55')]((_0x3ad3df,_0x15da92)=>{const _0x4a5883=_0x3ad3df[_0x350f('0x6f')][_0x350f('0xcb')],_0x2901b6=_0x15da92['data'][_0x350f('0xcb')];return null===_0x4a5883&&null===_0x2901b6?0x0:null===_0x4a5883&&null!==_0x2901b6?-0x1:null!==_0x4a5883&&null===_0x2901b6?0x1:_0x4a5883[_0x350f('0x88')][_0x350f('0x11b')](_0x2901b6[_0x350f('0x88')])?-0x1:0x1;});const _0x67deaf=new Set(),_0x20b4a6=new Set();for(const {name:_0x55bf57,data:_0x48dff8}of _0x324523){const {id:_0x495590}=this[_0x350f('0xb1')](_0x55bf57);if(null===_0x48dff8['oldRange']){const _0x121478=this[_0x350f('0xec')](_0x55bf57);_0x20b4a6[_0x350f('0x94')](_0x121478);}else{const _0x289638=this[_0x350f('0xa6')][_0x350f('0x35')](_0x495590);null!==_0x48dff8[_0x350f('0x4a')]||_0x289638['isInContent']?(_0x67deaf['add'](_0x289638[_0x350f('0x51')]),_0x20b4a6[_0x350f('0x94')](_0x289638)):this[_0x350f('0xc0')](_0x289638);}}_0x20b4a6[_0x350f('0xfa')]>0x0&&this['_refreshSuggestionsChain'](_0x20b4a6);for(const _0x117667 of _0x67deaf)this[_0x350f('0x6d')]('suggestionChanged',_0x117667);}),_0x5a8c0c[_0x350f('0x18')]['on'](_0x350f('0xd9'),(_0x4ce38b,_0x489155)=>{const _0x45a442=_0x489155[0x0];if(!this[_0x350f('0xa6')][_0x350f('0xfa')])return;if(!_0x45a442[_0x350f('0xe9')])return;if(_0x45a442[_0x350f('0x90')][_0x350f('0x10')]||!_0x45a442[_0x350f('0x90')]['isLocal'])return;let _0x4d64ac,_0x297439;switch(_0x45a442[_0x350f('0xb')]){case _0x350f('0xf0'):_0x4d64ac=_0x5a8c0c['model']['createPositionAt'](_0x45a442[_0x350f('0x5b')]),_0x297439=_0x4d64ac[_0x350f('0x6')](_0x45a442[_0x350f('0x105')]);break;case _0x350f('0x16'):_0x4d64ac=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x10d')](_0x45a442[_0x350f('0x20')]),_0x297439=_0x5a8c0c[_0x350f('0x18')]['createPositionAt'](_0x45a442[_0x350f('0xba')]);break;case _0x350f('0x36'):_0x4d64ac=_0x5a8c0c[_0x350f('0x18')]['createPositionAt'](_0x45a442['targetPosition']),_0x297439=_0x4d64ac['getShiftedBy'](_0x45a442[_0x350f('0x105')]);break;default:return;}const _0x219649=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x107')](_0x4d64ac,_0x297439);_0x5a8c0c[_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const {suggestion:_0x75fd13,meta:_0x47cfc9}of this['_findSuggestions'](_0x219649)){if(_0x75fd13['isMultiRange'])continue;if(_0x350f('0x0')==_0x75fd13[_0x350f('0xb')])continue;const _0x2a3467=_0x75fd13[_0x350f('0x6f')]&&_0x75fd13['data'][_0x350f('0x4f')];(_0x350f('0xcd')!=_0x75fd13['type']||_0x350f('0x16')==_0x45a442['type']&&!_0x2a3467)&&(_0x47cfc9[_0x350f('0x57')]||_0x350f('0xb3')==_0x75fd13[_0x350f('0xb')]&&_0x47cfc9['isOwn']||_0x75fd13[_0x350f('0x3c')]()[_0x350f('0xf8')](_0x219649)&&this[_0x350f('0x104')](_0x75fd13,_0x4d64ac,_0x297439));}});},{'priority':_0x350f('0x82')}),_0x5a8c0c[_0x350f('0x18')]['on'](_0x350f('0xaa'),(_0x1fa3e0,_0x5c57c7)=>{const _0x60f1da=_0x5c57c7[0x0],_0x3298d3=_0x5c57c7[0x1];if(_0x3298d3&&_0x3298d3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x350f('0x119')][_0x350f('0x31')])return;if(_0x60f1da[_0x350f('0x117')])return;const _0x5ae90c=_0x5a8c0c[_0x350f('0x18')]['schema'],{start:_0x345400,end:_0x281790}=_0x60f1da[_0x350f('0x3c')](),_0x4cd966=_0x345400[_0x350f('0x23')]&&_0x5ae90c[_0x350f('0x1f')](_0x345400[_0x350f('0x23')])?null:_0x5ae90c['getNearestSelectionRange'](_0x345400,_0x350f('0x97')),_0x48c5c5=_0x281790[_0x350f('0x71')]&&_0x5ae90c[_0x350f('0x1f')](_0x281790[_0x350f('0x71')])?null:_0x5ae90c[_0x350f('0x8b')](_0x281790,'backward'),_0x4deb99=_0x5a8c0c['model'][_0x350f('0x107')](_0x4cd966?_0x4cd966[_0x350f('0x88')]:_0x345400,_0x48c5c5?_0x48c5c5['end']:_0x281790);_0x5a8c0c['model'][_0x350f('0x8a')](_0x3a1e15=>{this[_0x350f('0x4')](_0x4deb99);const _0x3dd609=_0x5a8c0c[_0x350f('0x18')]['schema']['getNearestSelectionRange'](_0x4deb99[_0x350f('0x88')]);_0x60f1da['is'](_0x350f('0x59'))?_0x3a1e15['setSelection'](_0x3dd609):_0x60f1da[_0x350f('0xc4')](_0x3dd609);}),_0x1fa3e0[_0x350f('0x4c')]();},{'priority':_0x59dfda[_0x350f('0xe2')]+0xa}),_0x5a8c0c['model']['on'](_0x350f('0x7c'),(_0x42087f,_0x4ee43c)=>{const _0x451212=_0x4ee43c[_0x4ee43c[_0x350f('0x12e')]-0x1];_0x451212&&_0x451212[_0x350f('0x33')]||this[_0x350f('0x65')]||this['trackChangesCommand']['value']&&(_0x5a8c0c[_0x350f('0x18')][_0x350f('0x8a')](()=>{let _0x44b51a=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x7c')](_0x4ee43c[0x0],_0x4ee43c[0x1],_0x4ee43c[0x2],{'forceDefaultExecution':!0x0});if(!_0x44b51a)return;_0x42087f[_0x350f('0xdb')]=_0x44b51a[_0x350f('0xf')]();const _0x1f245a=_0x44b51a[_0x350f('0x41')][_0x350f('0x71')],_0x33d792=_0x5a8c0c['model'][_0x350f('0x44')];_0x1f245a&&_0x33d792[_0x350f('0x47')](_0x1f245a)&&!_0x33d792[_0x350f('0xef')](_0x1f245a)&&(_0x44b51a=_0x5a8c0c['model']['createRange'](_0x44b51a[_0x350f('0x88')],_0x5a8c0c[_0x350f('0x18')][_0x350f('0x10d')](_0x1f245a,_0x350f('0x41')))),this[_0x350f('0x13')](_0x44b51a);}),_0x42087f['stop']());},{'priority':_0x350f('0x21')}),this[_0x350f('0x49')][_0x350f('0x12f')]['add'](_0x350f('0x64'),this[_0x350f('0x119')]),this['enableCommand'](_0x350f('0x64'));const _0x4a0e01=new _0x4bcffe(_0x5a8c0c,this[_0x350f('0xa6')]);_0x5a8c0c[_0x350f('0x12f')][_0x350f('0x94')](_0x350f('0x12a'),_0x4a0e01),this['enableCommand'](_0x350f('0x12a'));const _0x1fda72=new _0x4186d0(_0x5a8c0c,this['_suggestions']);_0x5a8c0c['commands'][_0x350f('0x94')](_0x350f('0xbb'),_0x1fda72),this[_0x350f('0x126')](_0x350f('0xbb')),_0x5a8c0c['commands']['add'](_0x350f('0x9'),new _0x4a8fef(_0x5a8c0c,_0x4a0e01,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0x9')),_0x5a8c0c[_0x350f('0x12f')]['add'](_0x350f('0x6b'),new _0x4a8fef(_0x5a8c0c,_0x1fda72,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0x6b')),_0x5a8c0c['commands'][_0x350f('0x94')](_0x350f('0x86'),new _0xea949b(_0x5a8c0c,_0x4a0e01,this[_0x350f('0xa6')])),this[_0x350f('0x126')]('acceptSelectedSuggestions'),_0x5a8c0c[_0x350f('0x12f')][_0x350f('0x94')]('discardSelectedSuggestions',new _0xea949b(_0x5a8c0c,_0x1fda72,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0xc7'));const _0x34df29=_0x5a8c0c[_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x128'));this[_0x350f('0x83')](_0x34df29,_0x350f('0x1e'),(_0x29c5f9,{threadId:_0x5f0f7c})=>{const _0x4f5ca2=this['_suggestions'][_0x350f('0x35')](_0x5f0f7c);_0x4f5ca2&&_0x4f5ca2[_0x350f('0x135')]&&0x1===_0x4f5ca2[_0x350f('0x135')][_0x350f('0x12e')]&&this[_0x350f('0xc2')](_0x5f0f7c,{'hasComments':!0x0});},{'priority':_0x350f('0xd2')}),this['listenTo'](_0x34df29,_0x350f('0x101'),(_0x105ce3,{threadId:_0x286176})=>{const _0x153c0e=this[_0x350f('0xa6')][_0x350f('0x35')](_0x286176);_0x153c0e&&_0x153c0e[_0x350f('0x135')]&&!_0x153c0e[_0x350f('0x135')][_0x350f('0x12e')]&&this[_0x350f('0xc2')](_0x286176,{'hasComments':!0x1});},{'priority':'low'});}set[_0x350f('0x121')](_0x24fae5){if(this['_adapter'])throw new _0x119d3e(_0x350f('0x8e'),this);this[_0x350f('0x12d')]=_0x24fae5;}get[_0x350f('0x121')](){return this[_0x350f('0x12d')];}[_0x350f('0x48')]({skipNotAttached:_0x15e49c=!0x1,toJSON:_0x35b3a2=!0x1}={}){const _0x1fcd1a=[];for(const _0x4124ab of this[_0x350f('0xa6')][_0x350f('0xee')]())_0x15e49c&&!_0x4124ab[_0x350f('0x129')]||_0x1fcd1a[_0x350f('0x123')](_0x4124ab);return _0x35b3a2?_0x1fcd1a['map'](_0x28cd60=>_0x28cd60[_0x350f('0xa5')]()):_0x1fcd1a;}[_0x350f('0xbc')](_0x4bbff7){const _0x46194d=this['_suggestions'][_0x350f('0x35')](_0x4bbff7);if(!_0x46194d)throw new _0x119d3e(_0x350f('0x58'),this);return _0x46194d;}[_0x350f('0x24')](_0x16aa5f){return this['_suggestions'][_0x350f('0xf1')](_0x16aa5f);}[_0x350f('0x7d')](_0x83ef1c){const {authorId:_0x4f6825,id:_0x32ef33,attributes:_0x48f0d8}=_0x83ef1c,[_0x1a7b61,_0x454c3a]=_0x83ef1c['type'][_0x350f('0x16')](':'),_0x5a7369=this['_suggestions'][_0x350f('0x35')](_0x32ef33)||this[_0x350f('0x134')](_0x1a7b61,_0x454c3a,_0x32ef33,_0x4f6825,_0x48f0d8);if(this[_0x350f('0x93')](_0x5a7369),this['_checkSuggestionCorrectness'](_0x5a7369,_0x1a7b61,_0x454c3a||null,_0x4f6825),_0x5a7369[_0x350f('0x11')]=_0x83ef1c['createdAt'],_0x48f0d8&&_0x48f0d8[_0x350f('0x110')]){const _0x5ba79c=_0x48f0d8[_0x350f('0x110')],_0x29df94=this[_0x350f('0xf9')](_0x5ba79c['authorName']);_0x5a7369[_0x350f('0x52')]=_0x5ba79c[_0x350f('0x11')],_0x5a7369[_0x350f('0x17')]=_0x29df94,_0x5a7369['isExternal']=!0x0;}else _0x5a7369[_0x350f('0x52')]=_0x83ef1c[_0x350f('0x11')];switch(_0x83ef1c[_0x350f('0x6f')]&&(_0x5a7369[_0x350f('0x6f')]=_0x83ef1c['data']),_0x83ef1c['attributes']&&(_0x5a7369[_0x350f('0x108')]=_0x83ef1c[_0x350f('0x108')]),this[_0x350f('0x12d')]&&this[_0x350f('0x12d')][_0x350f('0x42')]||(_0x5a7369[_0x350f('0x2f')]=!0x0),this[_0x350f('0x9e')][_0x350f('0x35')](_0x5a7369)){case _0x350f('0xc8'):this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'dataReady');break;case _0x350f('0xe8'):_0x5a7369[_0x350f('0x129')]?(this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'ready'),this[_0x350f('0x6d')]('suggestionLoaded',_0x5a7369)):this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'removed');}return _0x5a7369;}[_0x350f('0x12a')](_0x598410){this[_0x350f('0x33')](()=>{this[_0x350f('0x49')][_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const _0x3ba021 of _0x598410[_0x350f('0x136')]())_0x3ba021[_0x350f('0xd0')]();});});}[_0x350f('0xbb')](_0x306bc3){this[_0x350f('0x33')](()=>{this[_0x350f('0x49')][_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const _0x220c02 of _0x306bc3[_0x350f('0x136')]())_0x220c02['discard']();});});}[_0x350f('0x126')](_0x2ac6a6,_0x459c7d){const _0x5d6cfe=this[_0x350f('0x49')][_0x350f('0x12f')][_0x350f('0x35')](_0x2ac6a6);if(!_0x5d6cfe)throw new _0x119d3e(_0x350f('0x50'),this,{'commandName':_0x2ac6a6});this['_enabledCommands'][_0x350f('0x94')](_0x5d6cfe),_0x459c7d&&_0x5d6cfe['on'](_0x350f('0x76'),(_0x238f81,_0x277cc0)=>{this[_0x350f('0x119')][_0x350f('0x31')]&&(this[_0x350f('0x65')]||_0x277cc0['length']>0x0&&_0x277cc0[_0x277cc0[_0x350f('0x12e')]-0x1]&&_0x277cc0[_0x277cc0[_0x350f('0x12e')]-0x1]['forceDefaultExecution']||(_0x459c7d((..._0xec9968)=>_0x5d6cfe[_0x350f('0x76')](..._0xec9968,{'forceDefaultExecution':!0x0}),..._0x277cc0),_0x238f81[_0x350f('0x4c')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x51d7a4){let _0x40f02b,_0x4225a9;const _0x3c3bb3=this[_0x350f('0x65')];this[_0x350f('0x65')]=!0x0;try{_0x40f02b=_0x51d7a4();}catch(_0x2ce40c){_0x4225a9=_0x2ce40c;}return _0x3c3bb3||(this[_0x350f('0x65')]=!0x1),_0x4225a9&&_0x119d3e['rethrowUnexpectedError'](_0x4225a9,this),_0x40f02b;}['markInsertion'](_0x5cc0a3,_0x58df4c=null,_0x507b25={}){if(_0x5cc0a3[_0x350f('0x117')])return null;const _0x1109cf=this[_0x350f('0x49')][_0x350f('0x45')]['get'](_0x350f('0x32'))['me'];for(const {suggestion:_0x457c26,meta:_0x2da8cd}of this[_0x350f('0xea')](_0x5cc0a3,_0x350f('0xb3')))if(_0x2da8cd['isOwn']){if(!_0x2da8cd[_0x350f('0xfc')])return _0x457c26;if(_0x58df4c==_0x457c26[_0x350f('0xf6')]){const _0x531f2e=_0x457c26[_0x350f('0x3c')]();return _0x531f2e[_0x350f('0x88')][_0x350f('0xdc')](_0x5cc0a3[_0x350f('0x41')])?this[_0x350f('0x4d')](_0x457c26,this[_0x350f('0x3b')][_0x350f('0x107')](_0x5cc0a3[_0x350f('0x88')],_0x531f2e[_0x350f('0x41')])):this[_0x350f('0x4d')](_0x457c26,this[_0x350f('0x3b')][_0x350f('0x107')](_0x531f2e[_0x350f('0x88')],_0x5cc0a3[_0x350f('0x41')])),_0x457c26;}}const _0x53dc7e=_0x4cb20a(),_0x25df07=_0x1109cf['id'],_0x2a57a5=_0x58df4c?_0x350f('0x10b')+_0x58df4c:_0x350f('0xb3'),_0xaee594=this[_0x350f('0x122')]({'id':_0x53dc7e,'type':_0x2a57a5,'createdAt':new Date(),'authorId':_0x25df07,'attributes':_0x507b25});return this['_addSuggestionMarker'](_0x2a57a5,_0x53dc7e,_0x25df07,_0x5cc0a3),_0xaee594;}['markMultiRangeInsertion'](_0x50d360,_0x23c15c=_0x350f('0x9f'),_0x535aea={}){const _0x2d7036=this[_0x350f('0x49')]['plugins']['get']('Users')['me'],_0x460172=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xb3'),_0x23c15c,_0x350f('0x1d'));for(const _0x14bbde of this[_0x350f('0x48')]())if(_0x14bbde[_0x350f('0x17')]['id']==_0x2d7036['id']&&_0x350f('0xb3')==_0x14bbde['type']&&_0x14bbde['subType']==_0x23c15c&&(_0x460172(_0x14bbde[_0x350f('0x72')](),_0x50d360)||_0x460172(_0x50d360,_0x14bbde['getRanges']()))){for(const _0x30263f of _0x50d360)_0x14bbde[_0x350f('0xe0')](_0x30263f);return _0x14bbde;}for(const _0x274191 of _0x50d360)for(const {suggestion:_0x36de1b,meta:_0x256895}of this['_findSuggestions'](_0x274191,_0x350f('0xb3'))){if(!_0x256895['isOwn'])continue;let _0x3149ae=!0x0;for(const _0x2b98fd of _0x36de1b[_0x350f('0x72')]())for(const _0x319757 of _0x50d360)if(!_0x2b98fd['containsRange'](_0x319757)){_0x3149ae=!0x1;break;}if(_0x3149ae)return _0x36de1b;}const _0x3cbfa6=_0x4cb20a(),_0x4b5629=_0x2d7036['id'],_0x1885ae=_0x350f('0x10b')+_0x23c15c,_0x4732eb=this['_setSuggestionData']({'id':_0x3cbfa6,'type':_0x1885ae,'createdAt':new Date(),'authorId':_0x4b5629,'attributes':_0x535aea});for(const _0x1a6804 of _0x50d360)this['_addSuggestionMarker'](_0x1885ae,_0x3cbfa6,_0x4b5629,_0x1a6804,_0x14b365[_0x350f('0xe6')]());return _0x4732eb;}[_0x350f('0x87')](_0x2f0a18,_0x2d2c5b,_0x34f3c4=null,_0x4c3fd3={}){if(_0x34f3c4=_0x34f3c4||Bt(_0x2d2c5b),_0x2f0a18[_0x350f('0x117')])return null;if(!0x1===this[_0x350f('0xff')]){const _0x3e9ba3=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x0'),_0x34f3c4,'accept');return this['forceDefaultExecution'](()=>_0x3e9ba3([_0x2f0a18],_0x2d2c5b,_0x4c3fd3)),null;}const _0x28eb0f=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x45cdb4=[];for(const {suggestion:_0x364019,meta:_0x453951}of this[_0x350f('0xea')](_0x2f0a18,_0x350f('0xb3')))_0x453951[_0x350f('0x115')]&&!_0x453951[_0x350f('0x3f')]&&_0x45cdb4[_0x350f('0x123')](..._0x364019[_0x350f('0x72')]());const _0x5188f7=function(_0x5b0d76,_0x40f1d8){const _0x45cb64=[];for(const _0x25963f of _0x40f1d8){const _0x57cf8c=_0x5b0d76[_0x350f('0x5f')](_0x25963f);_0x57cf8c&&_0x45cb64[_0x350f('0x123')](_0x57cf8c);}return _0x45cb64;}(_0x2f0a18,_0x45cdb4),_0x77388=function(_0x42b57c,_0x4a6b40){const _0x2c31ee=[_0x42b57c];for(const _0x4798e8 of _0x4a6b40){let _0x17ec16=0x0;for(;_0x17ec16<_0x2c31ee[_0x350f('0x12e')];){const _0x4832b7=_0x2c31ee[_0x17ec16][_0x350f('0x62')](_0x4798e8);_0x2c31ee[_0x350f('0x1a')](_0x17ec16,0x1,..._0x4832b7),_0x17ec16+=_0x4832b7[_0x350f('0x12e')];}}return _0x2c31ee;}(_0x2f0a18,_0x45cdb4);_0x5188f7[_0x350f('0x12e')]&&this[_0x350f('0x3b')]['change'](()=>{for(const _0x202df2 of _0x5188f7){const _0x53b0e1=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x0'),_0x34f3c4,'accept');this[_0x350f('0x33')](()=>_0x53b0e1([_0x202df2],_0x2d2c5b,_0x4c3fd3));}});for(const _0x40a706 of _0x77388){let _0x1ca11f=null,_0x4e2b90=_0x40a706[_0x350f('0x88')],_0x4af164=_0x40a706['end'];for(const {suggestion:_0x296ef9,meta:_0x2b535f}of this[_0x350f('0xea')](_0x40a706,_0x350f('0x0'))){if(!_0x2b535f[_0x350f('0x115')])continue;if(_0x296ef9[_0x350f('0xf6')]!=_0x34f3c4)continue;const _0xda85a=_0x296ef9[_0x350f('0x3c')]();if(_0xda85a[_0x350f('0xf8')](_0x40a706,!0x0))return null;_0x4e2b90=_0x4e2b90[_0x350f('0x11b')](_0xda85a['start'])?_0x4e2b90:_0xda85a[_0x350f('0x88')],_0x4af164=_0x4af164[_0x350f('0x6c')](_0xda85a[_0x350f('0x41')])?_0x4af164:_0xda85a[_0x350f('0x41')],_0x1ca11f?_0xda85a[_0x350f('0x88')][_0x350f('0x11b')](_0x1ca11f[_0x350f('0x3c')]()['start'])?(_0x1ca11f[_0x350f('0x22')](),_0x1ca11f=_0x296ef9):_0x296ef9[_0x350f('0x22')]():_0x1ca11f=_0x296ef9;}const _0x5b8126=this['_model'][_0x350f('0x107')](_0x4e2b90,_0x4af164);if(_0x1ca11f)this[_0x350f('0x4d')](_0x1ca11f,_0x5b8126);else{const _0x4b46e0=_0x4cb20a(),_0x3cc1bd=_0x28eb0f['id'];this[_0x350f('0x122')]({'id':_0x4b46e0,'type':_0x350f('0xd')+_0x34f3c4,'data':_0x2d2c5b,'createdAt':new Date(),'authorId':_0x3cc1bd,'attributes':_0x4c3fd3}),this[_0x350f('0x2d')](_0x350f('0xd')+_0x34f3c4,_0x4b46e0,_0x3cc1bd,_0x5b8126);}}return null;}[_0x350f('0x75')](_0x2001fc,_0x16bf22,_0x3ed712=[],_0x1b5d23=null,_0x5f841c={}){_0x16bf22[_0x350f('0xc')]||(_0x16bf22['formatGroupId']=_0x16bf22[_0x350f('0xda')]),_0x16bf22['multipleBlocks']=_0x2001fc['is'](_0x350f('0x56')),_0x1b5d23=_0x1b5d23||Bt(_0x16bf22);const _0x5dedba=_0x3ed712[_0x350f('0x3d')](_0x57b896=>Mt(_0x57b896,this[_0x350f('0x3b')])),_0x47d47b=_0x2001fc['is'](_0x350f('0x56'))?_0x2001fc:Mt(_0x2001fc,this['_model']);if(!0x1===this[_0x350f('0xff')]){const _0x1437dd=this[_0x350f('0x4b')]['getSuggestionCallback']('formatBlock',_0x1b5d23,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x1437dd([_0x47d47b],_0x16bf22,_0x5f841c)),null;}_0x5dedba['push'](_0x47d47b);let _0x1a94db=!0x0;for(const _0x48f433 of _0x5dedba)if(!this['_rangeIsInLocalUserInsertion'](_0x48f433)){_0x1a94db=!0x1;break;}if(_0x1a94db){const _0x19591d=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xcd'),_0x1b5d23,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x19591d([_0x47d47b],_0x16bf22,_0x5f841c)),null;}let _0x16ace9=null,_0x50f6ae=_0x47d47b[_0x350f('0x88')],_0x2c2edf=_0x47d47b[_0x350f('0x41')];for(const {suggestion:_0x162bc7,meta:_0x3c28ed}of this['_findSuggestions'](_0x47d47b,_0x350f('0xcd'))){if(!_0x3c28ed[_0x350f('0x115')]||_0x3c28ed['isNextTo']||_0x3c28ed[_0x350f('0x57')]||_0x3c28ed[_0x350f('0x3f')])continue;if(_0x162bc7[_0x350f('0x6f')]['formatGroupId']!=_0x16bf22[_0x350f('0xc')])continue;const _0xee1340=_0x162bc7[_0x350f('0x3c')]();if(_0x162bc7[_0x350f('0xf6')]==_0x1b5d23){if(_0xee1340[_0x350f('0xf8')](_0x47d47b,!0x0))return null;_0x50f6ae=_0x50f6ae[_0x350f('0x11b')](_0xee1340['start'])?_0x50f6ae:_0xee1340[_0x350f('0x88')],_0x2c2edf=_0x2c2edf[_0x350f('0x6c')](_0xee1340[_0x350f('0x41')])?_0x2c2edf:_0xee1340[_0x350f('0x41')],_0x16ace9?_0xee1340[_0x350f('0x88')]['isBefore'](_0x16ace9['getFirstRange']()[_0x350f('0x88')])?(_0x16ace9[_0x350f('0x22')](),_0x16ace9=_0x162bc7):_0x162bc7[_0x350f('0x22')]():_0x16ace9=_0x162bc7;}else{const _0x236d7c=_0x47d47b[_0x350f('0x5f')](_0xee1340);this[_0x350f('0x78')](_0x162bc7,_0x236d7c);}}const _0x49db2c=this[_0x350f('0x49')][_0x350f('0x45')]['get'](_0x350f('0x32'))['me'],_0x5d6d11=_0x4cb20a(),_0x43b5bd=_0x49db2c['id'];if(_0x16ace9)return this[_0x350f('0x4d')](_0x16ace9,this[_0x350f('0x3b')][_0x350f('0x107')](_0x50f6ae,_0x2c2edf)),_0x16ace9;{const _0x4b6a28=this[_0x350f('0x122')]({'id':_0x5d6d11,'type':'formatBlock:'+_0x1b5d23,'data':_0x16bf22,'createdAt':new Date(),'authorId':_0x43b5bd,'attributes':_0x5f841c});return this[_0x350f('0x2d')](_0x350f('0xac')+_0x1b5d23,_0x5d6d11,_0x43b5bd,this[_0x350f('0x3b')][_0x350f('0x107')](_0x50f6ae,_0x2c2edf)),_0x4b6a28;}}['markMultiRangeBlockFormat'](_0x4d2ead,_0x309c8f,_0x2b9809=[],_0x3699ae=null,_0x31bf53={}){_0x309c8f[_0x350f('0xc')]||(_0x309c8f[_0x350f('0xc')]=_0x309c8f['commandName']);const _0xc21016=_0x4d2ead[0x0];_0x309c8f[_0x350f('0x4f')]=_0xc21016['is'](_0x350f('0x56')),_0x3699ae=_0x3699ae||Bt(_0x309c8f);const _0x3bbc3d=_0x2b9809[_0x350f('0x3d')](_0x357af4=>Mt(_0x357af4,this[_0x350f('0x3b')])),_0xd02e20=_0xc21016['is'](_0x350f('0x56'))?_0x4d2ead:_0x4d2ead['map'](_0x156977=>Mt(_0x156977,this[_0x350f('0x3b')]));if(!0x1===this['_trackFormatChanges']){const _0x5c0fa9=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xcd'),_0x3699ae,_0x350f('0xd0'));return this['forceDefaultExecution'](()=>_0x5c0fa9(_0xd02e20,_0x309c8f,_0x31bf53)),null;}_0x3bbc3d[_0x350f('0x123')](..._0xd02e20);let _0x3eb3bf=!0x0;for(const _0x3dcd15 of _0x3bbc3d)if(!this[_0x350f('0xf7')](_0x3dcd15)){_0x3eb3bf=!0x1;break;}if(_0x3eb3bf){const _0x51ebd8=this[_0x350f('0x4b')]['getSuggestionCallback'](_0x350f('0xcd'),_0x3699ae,'accept');return this[_0x350f('0x33')](()=>_0x51ebd8(_0xd02e20,_0x309c8f,_0x31bf53)),null;}const _0x5beaeb=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')]('Users')['me'];for(const _0x5946bf of this['getSuggestions']()){if(_0x5946bf[_0x350f('0x17')]['id']!=_0x5beaeb['id'])continue;if(_0x350f('0xcd')!=_0x5946bf[_0x350f('0xb')]||_0x5946bf[_0x350f('0x6f')][_0x350f('0xc')]!=_0x309c8f[_0x350f('0xc')])continue;const _0x303dcc=_0x5946bf[_0x350f('0xf6')]==_0x3699ae;for(let _0x3320c2=0x0;_0x3320c2<_0xd02e20['length'];_0x3320c2++){const _0x25e1af=_0xd02e20[_0x3320c2];for(const _0x1858ae of _0x5946bf[_0x350f('0x27')]()){const _0x2cb58d=_0x1858ae['getRange']();if(_0x25e1af[_0x350f('0xdc')](_0x2cb58d)){_0x303dcc?(_0xd02e20[_0x350f('0x1a')](_0x3320c2,0x1),_0x3320c2--):_0x5946bf[_0x350f('0x63')](_0x1858ae['name']);break;}}}}if(0x0==_0xd02e20[_0x350f('0x12e')])return null;const _0x3c235c=this['_suggestionFactory'][_0x350f('0x30')]('formatBlock',_0x3699ae,_0x350f('0x1d'));for(const _0x5bfc15 of this[_0x350f('0x48')]())if(_0x5bfc15[_0x350f('0x17')]['id']==_0x5beaeb['id']&&_0x350f('0xcd')==_0x5bfc15[_0x350f('0xb')]&&_0x5bfc15[_0x350f('0x6f')][_0x350f('0xc')]==_0x309c8f[_0x350f('0xc')]&&_0x5bfc15[_0x350f('0xf6')]==_0x3699ae&&(_0x3c235c(_0x5bfc15[_0x350f('0x72')](),_0xd02e20)||_0x3c235c(_0xd02e20,_0x5bfc15[_0x350f('0x72')]()))){for(const _0x4a9a56 of _0xd02e20)_0x5bfc15[_0x350f('0xe0')](_0x4a9a56);return _0x5bfc15;}const _0x116125=_0x4cb20a(),_0x47e80f=_0x5beaeb['id'],_0x570891=_0x350f('0xac')+_0x3699ae,_0xb9e47b=this['_setSuggestionData']({'id':_0x116125,'type':_0x570891,'data':_0x309c8f,'createdAt':new Date(),'authorId':_0x47e80f,'attributes':_0x31bf53});for(const _0x37445f of _0xd02e20)this[_0x350f('0x2d')](_0x570891,_0x116125,_0x47e80f,_0x37445f,_0x14b365[_0x350f('0xe6')]());return _0xb9e47b;}[_0x350f('0x4')](_0x2b0f55,_0x50f2dd=null,_0x4178ea={}){if(_0x2b0f55[_0x350f('0x117')])return null;const _0x4f2238=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x5cc337=new _0x319865(_0x2b0f55['start'],_0x2b0f55['end']);for(const {suggestion:_0x4e090b,meta:_0x77d797}of this[_0x350f('0xea')](_0x5cc337,_0x350f('0xb3')))if(_0x77d797[_0x350f('0x115')]&&!_0x77d797[_0x350f('0xfc')]){if(_0x4e090b[_0x350f('0x103')]){const _0x418ff5=_0x4e090b[_0x350f('0x72')]()[_0x350f('0xf4')](_0x1eed0f=>'$graveyard'!=_0x1eed0f[_0x350f('0x5')][_0x350f('0x6a')]);_0x418ff5[_0x350f('0x1b')](_0xa6b7a4=>_0x5cc337[_0x350f('0xf8')](_0xa6b7a4,!0x0))&&_0x4e090b[_0x350f('0xe1')]();if(_0x418ff5['some'](_0x2c658e=>_0x2c658e[_0x350f('0xf8')](_0x5cc337,!0x0))){const _0x9a3a06=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x11f'),_0x50f2dd,_0x350f('0xd0'));return this['forceDefaultExecution'](()=>_0x9a3a06([_0x5cc337],null,_0x4178ea)),null;}}else{const _0x4dcd2f=_0x5cc337[_0x350f('0x5f')](_0x4e090b[_0x350f('0x3c')]());_0x4e090b[_0x350f('0xb7')]([_0x4dcd2f],null,_0x4178ea);}}if(_0x5cc337[_0x350f('0xe5')](),_0x5cc337[_0x350f('0x117')]||_0x350f('0x100')==_0x5cc337[_0x350f('0x5')][_0x350f('0x6a')])return null;let _0x2c3c05=null,_0x455d5f=_0x5cc337['start'],_0x580d8c=_0x5cc337['end'];for(const {suggestion:_0x330c54,meta:_0x25e1e0}of this[_0x350f('0xea')](_0x5cc337,_0x350f('0x11f')))if(_0x25e1e0['isOwn']){if(_0x330c54[_0x350f('0x103')]){let _0xcc8b33=!0x0;for(const _0x260969 of _0x330c54['getRanges']()){if(_0x260969[_0x350f('0xf8')](_0x5cc337,!0x0))return _0x330c54;_0x5cc337['containsRange'](_0x260969)||(_0xcc8b33=!0x1);}_0xcc8b33&&_0x330c54[_0x350f('0xe1')]();}else{const _0x296dbd=_0x330c54['getFirstRange']();if(_0x296dbd[_0x350f('0xf8')](_0x5cc337,!0x0))return _0x330c54;_0x455d5f=_0x455d5f[_0x350f('0x11b')](_0x296dbd[_0x350f('0x88')])?_0x455d5f:_0x296dbd[_0x350f('0x88')],_0x580d8c=_0x580d8c[_0x350f('0x6c')](_0x296dbd['end'])?_0x580d8c:_0x296dbd[_0x350f('0x41')],_0x2c3c05?_0x296dbd[_0x350f('0x88')][_0x350f('0x11b')](_0x2c3c05['getFirstRange']()[_0x350f('0x88')])?(_0x2c3c05[_0x350f('0x22')](),_0x2c3c05=_0x330c54):_0x330c54[_0x350f('0x22')]():_0x2c3c05=_0x330c54;}}if(_0x2c3c05)return this[_0x350f('0x4d')](_0x2c3c05,this[_0x350f('0x3b')]['createRange'](_0x455d5f,_0x580d8c)),_0x2c3c05;{const _0x4105bc=_0x4cb20a(),_0x221136=this[_0x350f('0x3b')][_0x350f('0x107')](_0x455d5f,_0x580d8c),_0x336022=_0x4f2238['id'],_0x16893c=_0x50f2dd?'deletion:'+_0x50f2dd:_0x350f('0x11f'),_0x20db8d=this[_0x350f('0x122')]({'id':_0x4105bc,'type':_0x16893c,'createdAt':new Date(),'authorId':_0x336022,'attributes':_0x4178ea});return this[_0x350f('0x2d')](_0x16893c,_0x4105bc,_0x336022,_0x221136),_0x20db8d;}}['markMultiRangeDeletion'](_0x5557c6,_0x4c53ed=_0x350f('0x9f'),_0x5ad3c9={}){const _0x1e06b3=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x3c8ef5=_0x5557c6[_0x350f('0x3d')](_0x10d70f=>new _0x319865(_0x10d70f[_0x350f('0x88')],_0x10d70f[_0x350f('0x41')])),_0x3340bb=new Set();for(const _0x43be22 of _0x3c8ef5)for(const {suggestion:_0x43f35c,meta:_0xfe976}of this[_0x350f('0xea')](_0x43be22,_0x350f('0xb3')))_0xfe976['isOwn']&&!_0xfe976['isNextTo']&&_0x3340bb[_0x350f('0x94')](_0x43f35c);for(const _0x123f7c of _0x3340bb)if(_0x123f7c[_0x350f('0x103')]){const _0x32e386=_0x123f7c['getRanges']();(!_0x123f7c[_0x350f('0x108')]||!_0x123f7c[_0x350f('0x108')]['skipNestingCheck'])&&(_0x32e386[_0x350f('0x1b')](_0x4aaab2=>_0x3c8ef5[_0x350f('0xb4')](_0x1ebf26=>_0x1ebf26[_0x350f('0xf8')](_0x4aaab2,!0x0)))&&_0x123f7c['discard']());if(_0x3c8ef5['every'](_0x240368=>_0x32e386[_0x350f('0xb4')](_0x569f0f=>_0x569f0f[_0x350f('0xf8')](_0x240368,!0x0)))){const _0x589e15=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,'accept');return this['forceDefaultExecution'](()=>_0x589e15(_0x5557c6,null,_0x5ad3c9)),null;}}else{const _0x18d71f=_0x123f7c[_0x350f('0x3c')]();_0x3c8ef5['some'](_0x54e99f=>_0x54e99f[_0x350f('0xf8')](_0x18d71f,!0x0))&&_0x123f7c[_0x350f('0xe1')]();if(_0x3c8ef5['every'](_0x2ba696=>_0x18d71f[_0x350f('0xf8')](_0x2ba696,!0x0))){const _0x54a358=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x54a358(_0x3c8ef5,null,_0x5ad3c9)),null;}}const _0x56f480=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,_0x350f('0x1d'));let _0x1f0c34=null;for(const _0x1ffa00 of this[_0x350f('0x48')]())if(_0x1ffa00[_0x350f('0x17')]['id']==_0x1e06b3['id']&&_0x1ffa00[_0x350f('0x129')]&&_0x350f('0x11f')==_0x1ffa00[_0x350f('0xb')]&&_0x1ffa00[_0x350f('0xf6')]==_0x4c53ed&&(_0x56f480(_0x1ffa00[_0x350f('0x72')](),_0x3c8ef5)||_0x56f480(_0x3c8ef5,_0x1ffa00['getRanges']()))){if(_0x1f0c34){if(_0x1ffa00[_0x350f('0x135')]&&_0x1ffa00[_0x350f('0x135')][_0x350f('0x12e')])continue;for(const _0x23ac9e of _0x1ffa00[_0x350f('0x72')]())_0x1f0c34[_0x350f('0x2c')](_0x23ac9e)||_0x1f0c34[_0x350f('0xe0')](_0x23ac9e);_0x1ffa00[_0x350f('0x22')]();}else{_0x1f0c34=_0x1ffa00;for(const _0x3f4f7d of _0x3c8ef5)_0x1ffa00[_0x350f('0x2c')](_0x3f4f7d)||_0x1ffa00[_0x350f('0xe0')](_0x3f4f7d);}}if(_0x1f0c34)return _0x1f0c34;_0x3340bb['clear']();for(const _0x29d19e of _0x3c8ef5)for(const {suggestion:_0x18b89a,meta:_0x49c7b4}of this['_findSuggestions'](_0x29d19e,'deletion'))_0x49c7b4[_0x350f('0x115')]&&_0x3340bb[_0x350f('0x94')](_0x18b89a);for(const _0x1dcb4d of _0x3340bb){const _0x50d4fc=_0x1dcb4d[_0x350f('0x72')]();if(!_0x5ad3c9||!_0x5ad3c9['skipNestingCheck']){if(_0x3c8ef5['every'](_0x4c2df8=>_0x50d4fc[_0x350f('0xb4')](_0x32a57a=>_0x32a57a[_0x350f('0xf8')](_0x4c2df8,!0x0))))return _0x1dcb4d;}(!_0x1dcb4d['attributes']||!_0x1dcb4d[_0x350f('0x108')]['skipNestingCheck'])&&(_0x50d4fc['every'](_0xb67221=>_0x3c8ef5[_0x350f('0xb4')](_0xd43dac=>_0xd43dac[_0x350f('0xf8')](_0xb67221,!0x0)))&&_0x1dcb4d['discard']());}const _0x25d11c=_0x4cb20a(),_0x3930b7=_0x1e06b3['id'],_0x4d363f=_0x350f('0x77')+_0x4c53ed,_0x48e581=this['_setSuggestionData']({'id':_0x25d11c,'type':_0x4d363f,'createdAt':new Date(),'authorId':_0x3930b7,'attributes':_0x5ad3c9});for(const _0x34f24e of _0x3c8ef5)_0x34f24e[_0x350f('0xe5')](),_0x34f24e[_0x350f('0x117')]||_0x350f('0x100')==_0x34f24e[_0x350f('0x5')][_0x350f('0x6a')]||this[_0x350f('0x2d')](_0x4d363f,_0x25d11c,_0x3930b7,_0x34f24e,_0x14b365[_0x350f('0xe6')]());return _0x48e581;}[_0x350f('0x4d')](_0x55b05d,_0x58e01a){const _0x320b52=_0x55b05d[_0x350f('0x29')]();this[_0x350f('0x3b')][_0x350f('0x8a')](_0x7c6247=>{_0x7c6247[_0x350f('0x7f')](_0x320b52,{'range':_0x58e01a});});}[_0x350f('0x93')](_0x360fc0){const _0x4f8995=_0x360fc0['id'],_0x5add5d=this['editor']['config'][_0x350f('0x35')](_0x350f('0xbf'));this[_0x350f('0x2a')][_0x350f('0x106')](_0x4f8995)||this[_0x350f('0x2a')]['addCommentThread']({'channelId':_0x5add5d,'threadId':_0x4f8995,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5700dd=this[_0x350f('0x2a')][_0x350f('0xb6')](_0x4f8995);_0x5700dd['unbind'](_0x350f('0x8')),_0x5700dd[_0x350f('0x8')]=!0x1,_0x360fc0[_0x350f('0x135')]=_0x5700dd;}['_checkSuggestionCorrectness'](_0x3c121e,_0x273c95,_0x4c6634,_0x52b89e){if(_0x3c121e[_0x350f('0xb')]!=_0x273c95||_0x3c121e[_0x350f('0xf6')]!=_0x4c6634||_0x3c121e[_0x350f('0x98')]['id']!=_0x52b89e)throw this[_0x350f('0x49')][_0x350f('0x69')](_0x350f('0x131')),new _0x119d3e(_0x350f('0x131'),this);}[_0x350f('0x78')](_0x24cc4d,_0x3438bc){const _0x52112f=_0x24cc4d[_0x350f('0x3c')]();if(_0x3438bc[_0x350f('0xdc')](_0x52112f))_0x24cc4d[_0x350f('0x22')]();else{if(_0x52112f['containsRange'](_0x3438bc)){const _0x15b1e5=this[_0x350f('0x3b')][_0x350f('0x10d')](_0x3438bc['start'][_0x350f('0x71')],_0x350f('0x41'));this[_0x350f('0x4d')](_0x24cc4d,this['_model'][_0x350f('0x107')](_0x52112f[_0x350f('0x88')],_0x15b1e5));const _0x4a996=_0x4cb20a(),_0x1f6f9f=_0x24cc4d[_0x350f('0x98')]['id'],_0xe2d367=_0x24cc4d[_0x350f('0xb')]+':'+_0x24cc4d[_0x350f('0xf6')];this['_setSuggestionData']({'id':_0x4a996,'type':_0xe2d367,'createdAt':new Date(),'authorId':_0x1f6f9f,'data':_0x24cc4d[_0x350f('0x6f')],'attributes':_0x24cc4d[_0x350f('0x108')]});const _0x3e48c5=this['_model'][_0x350f('0x10d')](_0x3438bc[_0x350f('0x41')][_0x350f('0xf2')],'after'),_0x5026b7=this[_0x350f('0x3b')][_0x350f('0x107')](_0x3e48c5,_0x52112f[_0x350f('0x41')]);this[_0x350f('0x2d')](_0xe2d367,_0x4a996,_0x1f6f9f,_0x5026b7);}else{if(_0x52112f[_0x350f('0xb8')](_0x3438bc[_0x350f('0x88')])){const _0x3fd59=this['_model'][_0x350f('0x10d')](_0x3438bc['start']['nodeBefore'],_0x350f('0x41'));this['_setSuggestionRange'](_0x24cc4d,this[_0x350f('0x3b')][_0x350f('0x107')](_0x52112f[_0x350f('0x88')],_0x3fd59));}else{const _0x2c0457=this['_model'][_0x350f('0x10d')](_0x3438bc[_0x350f('0x41')][_0x350f('0xf2')],_0x350f('0xd1'));this['_setSuggestionRange'](_0x24cc4d,this[_0x350f('0x3b')][_0x350f('0x107')](_0x2c0457,_0x52112f[_0x350f('0x41')]));}}}}[_0x350f('0xf7')](_0x56ceba){for(const {suggestion:_0x14c4ab,meta:_0x337721}of this['_findSuggestions'](_0x56ceba,_0x350f('0xb3'))){if(!_0x337721[_0x350f('0x115')])continue;const _0x23648a=_0x14c4ab[_0x350f('0x72')]();for(const _0x4ba9e6 of _0x23648a)if(!_0x56ceba['getDifference'](_0x4ba9e6)['length'])return!0x0;}return!0x1;}[_0x350f('0x102')](_0x45589f){const _0xacc214=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))[_0x350f('0x39')](_0x45589f);if(!_0xacc214)throw new _0x119d3e('track-changes-user-not-found',this);return _0xacc214;}['_getExternalAuthor'](_0x33eb99){const _0x5a1d5c=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32')),_0x45df3d=_0x394310(_0x350f('0x11e')+_0x33eb99),_0x128e57=_0x5a1d5c[_0x350f('0x39')](_0x45df3d);return _0x128e57||_0x5a1d5c['addUser']({'id':_0x45df3d,'name':_0x33eb99});}['_createSuggestion'](_0x5bc6d1,_0x1fd812,_0x2f26d3,_0x41ed03,_0x2d4210){const _0x35b21e=this[_0x350f('0x102')](_0x41ed03),_0x41e5e7=this[_0x350f('0x4b')][_0x350f('0x9c')](_0x5bc6d1,_0x1fd812,_0x2f26d3,_0x35b21e,_0x2d4210,_0x156556=>this[_0x350f('0xc2')](_0x2f26d3,{'attributes':_0x156556}));return this[_0x350f('0x83')](_0x41e5e7,'accept',()=>{this[_0x350f('0xc2')](_0x2f26d3,{'state':_0x350f('0x116')});},{'priority':_0x350f('0x21')}),this[_0x350f('0x83')](_0x41e5e7,_0x350f('0xe1'),()=>{this[_0x350f('0xc2')](_0x2f26d3,{'state':_0x350f('0x74')});},{'priority':_0x350f('0x21')}),this[_0x350f('0xa6')][_0x350f('0xa8')](_0x2f26d3,_0x41e5e7),this[_0x350f('0x9e')]['set'](_0x41e5e7,_0x350f('0xc8')),_0x41e5e7;}['_splitMarkerName'](_0x2393e3){const _0x39385e=_0x2393e3[_0x350f('0x16')](':');return{'group':_0x39385e[0x0],'type':_0x39385e[0x1],'subType':_0x39385e['length']>=0x5?_0x39385e[0x2]:null,'id':_0x39385e['length']<0x5?_0x39385e[0x2]:_0x39385e[0x3],'authorId':_0x39385e[_0x350f('0x12e')]<0x5?_0x39385e[0x3]:_0x39385e[0x4],'markerCount':0x6==_0x39385e[_0x350f('0x12e')]?_0x39385e[0x5]:null};}[_0x350f('0x104')](_0x37c199,_0x3f2260,_0x830434){const _0x429b70=_0x37c199[_0x350f('0x3c')](),_0x21edc5=_0x429b70[_0x350f('0x88')],_0x51da37=_0x429b70[_0x350f('0x41')];this['_setSuggestionRange'](_0x37c199,this[_0x350f('0x3b')][_0x350f('0x107')](_0x21edc5,_0x3f2260));const _0x19ff2e=_0x4cb20a(),_0x447afd=_0x37c199[_0x350f('0x98')]['id'],_0x4dff0e=_0x37c199[_0x350f('0xb')]+(_0x37c199[_0x350f('0xf6')]?':'+_0x37c199[_0x350f('0xf6')]:'');this[_0x350f('0x122')]({'id':_0x19ff2e,'type':_0x4dff0e,'createdAt':new Date(),'authorId':_0x447afd,'originalSuggestionId':_0x37c199['id'],'attributes':_0x37c199['attributes'],'data':_0x37c199[_0x350f('0x6f')]}),'formatBlock'==_0x37c199[_0x350f('0xb')]&&(_0x830434=this[_0x350f('0x3b')][_0x350f('0x125')](_0x830434[_0x350f('0xf2')])),this['_addSuggestionMarker'](_0x4dff0e,_0x19ff2e,_0x447afd,this[_0x350f('0x3b')]['createRange'](_0x830434,_0x51da37));}[_0x350f('0xea')](_0x3d3fd7,_0x5dceae=null){const _0x4ced67=[],_0xb654d6=this[_0x350f('0x3b')]['schema'],_0x33cee7=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')]('Users')['me'];for(const _0x279b36 of this['getSuggestions']())if(_0x279b36['isInContent']&&(!_0x5dceae||_0x279b36[_0x350f('0xb')]==_0x5dceae))for(const _0x2090ec of _0x279b36[_0x350f('0x72')]()){const _0x1e94e6=_0x3d3fd7['start'][_0x350f('0xdc')](_0x2090ec[_0x350f('0x41')])||_0x3d3fd7['end'][_0x350f('0xdc')](_0x2090ec[_0x350f('0x88')]);if(_0x1e94e6||_0x3d3fd7[_0x350f('0x5f')](_0x2090ec)){const _0x266d2e=_0x3d3fd7['containsRange'](_0x2090ec)&&At(_0xb654d6,_0x2090ec['start'],_0x3d3fd7),_0x3346b0=_0x2090ec[_0x350f('0xf8')](_0x3d3fd7)&&At(_0xb654d6,_0x3d3fd7[_0x350f('0x88')],_0x2090ec);_0x4ced67[_0x350f('0x123')]({'suggestion':_0x279b36,'meta':{'isOwn':_0x33cee7==_0x279b36['author'],'isNextTo':_0x1e94e6,'isInsideObject':_0x266d2e,'containsRangeInObject':_0x3346b0}});break;}}return _0x4ced67;}[_0x350f('0x2d')](_0x1599ad,_0x3e9583,_0x3ddd4c,_0x2411a4,_0x382e11){this[_0x350f('0x3b')][_0x350f('0x8a')](_0xdd9af3=>{let _0x33e3f1=_0x350f('0xdf')+_0x1599ad+':'+_0x3e9583+':'+_0x3ddd4c;_0x382e11&&(_0x33e3f1=_0x33e3f1+':'+_0x382e11),_0xdd9af3[_0x350f('0x43')](_0x33e3f1,{'range':_0x2411a4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x350f('0xc0')](_0x432b01){const _0x425df5=_0x432b01[_0x350f('0x38')],_0xe9c7c=_0x432b01[_0x350f('0x12c')];_0x432b01[_0x350f('0x38')]=null,null!=_0x425df5&&(_0x425df5[_0x350f('0x12c')]=null),_0x432b01[_0x350f('0x12c')]=null,null!=_0xe9c7c&&(_0xe9c7c[_0x350f('0x38')]=null),_0x350f('0x120')==this[_0x350f('0x9e')][_0x350f('0x35')](_0x432b01)&&(this['_suggestionState'][_0x350f('0xa8')](_0x432b01,_0x350f('0x14')),this[_0x350f('0x6d')]('suggestionUnloaded',_0x432b01,_0x425df5,_0xe9c7c));}[_0x350f('0x122')](_0x3a8819){const _0x81c7ea=_0x3a8819['id'],_0x1e3c05=this[_0x350f('0x7d')](_0x3a8819);if(this[_0x350f('0x12d')]&&this[_0x350f('0x12d')][_0x350f('0x42')]){const _0x4341ea=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x114')),_0x5b6fb7=_0x1e3c05[_0x350f('0xa2')],_0x4deea5=_0x1e3c05['subType']?_0x1e3c05[_0x350f('0xb')]+':'+_0x1e3c05[_0x350f('0xf6')]:_0x1e3c05['type'],_0x3886db=this[_0x350f('0x49')]['locale'],_0x556b38=_0x4341ea[_0x350f('0x94')](_0x3436c0(_0x3886db,_0x350f('0xd3'))),_0x56b856={'id':_0x81c7ea,'type':_0x4deea5,'hasComments':_0x5b6fb7,'data':_0x3a8819[_0x350f('0x6f')]||null,'originalSuggestionId':_0x3a8819['originalSuggestionId']||null,'attributes':_0x1e3c05[_0x350f('0x108')]};this[_0x350f('0x12d')][_0x350f('0x42')](_0x56b856)[_0x350f('0xa9')](_0x14251c=>{_0x1e3c05['_saved']=!0x0,_0x4341ea['remove'](_0x556b38),_0x14251c&&_0x14251c['createdAt']&&(this[_0x350f('0xa6')][_0x350f('0x35')](_0x81c7ea)['createdAt']=_0x14251c[_0x350f('0x11')]);})[_0x350f('0xa7')](_0x2c3247=>{throw _0xd5393f('error-saving-suggestion-data-suggestion-discarded'),this[_0x350f('0x49')][_0x350f('0x18')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x1e3c05[_0x350f('0xe1')]();}),_0x1e3c05[_0x350f('0xcc')](),this['_suggestions'][_0x350f('0x137')](_0x1e3c05['id']),this['_suggestionState']['delete'](_0x1e3c05),_0x2c3247;});}return _0x1e3c05;}[_0x350f('0xc2')](_0x341f17,_0x544195){const _0x2e4755=this['editor'][_0x350f('0x45')]['get'](_0x350f('0x114')),_0x45e0fe=this['getSuggestion'](_0x341f17);if(this[_0x350f('0x12d')]&&this['_adapter'][_0x350f('0xf3')]){if(_0x45e0fe['_saved']){const _0x1c19ee=_0x2e4755[_0x350f('0x94')](_0x3436c0(this[_0x350f('0x49')][_0x350f('0x2e')],_0x350f('0xd3')));this['_adapter'][_0x350f('0xf3')](_0x341f17,_0x544195)[_0x350f('0xa9')](()=>{_0x2e4755[_0x350f('0x3a')](_0x1c19ee);});}else _0x45e0fe['on']('change:_saved',()=>{this[_0x350f('0xc2')](_0x341f17,_0x544195);});}}['_getSuggestionData'](_0x4bb2f9){if(!this[_0x350f('0x12d')]||!this[_0x350f('0x12d')]['getSuggestion'])throw new _0x119d3e(_0x350f('0x3'),this);return this[_0x350f('0x12d')]['getSuggestion'](_0x4bb2f9);}[_0x350f('0xec')](_0x3977b9){const {id:_0xac369e,type:_0x3555d8,subType:_0x5d0bc7,authorId:_0x3e4c5a}=this[_0x350f('0xb1')](_0x3977b9),_0x309c8d=this[_0x350f('0xa6')][_0x350f('0x35')](_0xac369e)||this[_0x350f('0x134')](_0x3555d8,_0x5d0bc7,_0xac369e,_0x3e4c5a,{});switch(this[_0x350f('0xed')](_0x309c8d,_0x3555d8,_0x5d0bc7,_0x3e4c5a),this['_suggestionState']['get'](_0x309c8d)){case _0x350f('0xc8'):this[_0x350f('0x11d')](_0xac369e)[_0x350f('0xa9')](_0x1b8b03=>{let _0x532577=Promise[_0x350f('0x92')]();_0x1b8b03[_0x350f('0xa2')]&&(_0x532577=this[_0x350f('0x2a')]['fetchCommentThread']({'channelId':this['editor'][_0x350f('0x60')][_0x350f('0x35')](_0x350f('0xbf')),'threadId':_0xac369e})),_0x532577['then'](()=>{this[_0x350f('0x7d')](_0x1b8b03)['_saved']=!0x0;});}),this[_0x350f('0x9e')][_0x350f('0xa8')](_0x309c8d,_0x350f('0xe8'));break;case'removed':this[_0x350f('0xc2')](_0xac369e,{'state':'open'});case _0x350f('0xc9'):this[_0x350f('0x9e')]['set'](_0x309c8d,'ready'),this[_0x350f('0x6d')](_0x350f('0x19'),_0x309c8d);break;case _0x350f('0x120'):this[_0x350f('0x6d')](_0x350f('0x138'),_0x309c8d);}return _0x309c8d['addMarkerName'](_0x3977b9),_0x309c8d;}[_0x350f('0x85')](_0x3fb5d6){const _0x2c9d67=Array['from'](_0x3fb5d6)[_0x350f('0xf4')](_0x3c3e12=>!_0x3c3e12[_0x350f('0x103')]),_0x2503d5=this[_0x350f('0x48')]({'skipNotAttached':!0x0})[_0x350f('0xf4')](_0x2fcc25=>!_0x2fcc25[_0x350f('0x103')]),_0x5456dc=_0x2503d5[_0x350f('0xf4')](_0x277d1a=>!_0x3fb5d6[_0x350f('0xf1')](_0x277d1a)),_0x59619b=new Map(_0x2503d5['map'](_0x1dc7c7=>[_0x1dc7c7,this[_0x350f('0x4b')][_0x350f('0x30')](_0x1dc7c7[_0x350f('0xb')],_0x1dc7c7[_0x350f('0xf6')],_0x350f('0x96'))])),_0x59d069=new Map(_0x2503d5[_0x350f('0x3d')](_0x3438f1=>[_0x3438f1,_0x3438f1[_0x350f('0x3c')]()])),_0x54e50a=new Set(),_0x3d535a=new Set();for(let _0x3c56cf=0x0;_0x3c56cf<_0x2c9d67['length'];_0x3c56cf++)_0x44dbfa(_0x2c9d67[_0x3c56cf],_0x2c9d67,_0x3c56cf+0x1);for(let _0x4ab20f=0x0;_0x4ab20f<_0x2c9d67[_0x350f('0x12e')];_0x4ab20f++)_0x44dbfa(_0x2c9d67[_0x4ab20f],_0x5456dc,0x0);for(let _0x181f22=0x0;_0x181f22<_0x2c9d67['length'];_0x181f22++){const _0x211eda=_0x2c9d67[_0x181f22];!_0x3d535a[_0x350f('0xf1')](_0x211eda)&&_0x211eda['previous']&&(_0x211eda[_0x350f('0x38')]['next']===_0x211eda&&(_0x211eda['previous'][_0x350f('0x12c')]=null),_0x211eda['previous']=null),!_0x54e50a[_0x350f('0xf1')](_0x211eda)&&_0x211eda[_0x350f('0x12c')]&&(_0x211eda[_0x350f('0x12c')][_0x350f('0x38')]===_0x211eda&&(_0x211eda['next'][_0x350f('0x38')]=null),_0x211eda[_0x350f('0x12c')]=null);}function _0x44dbfa(_0x5c1715,_0x4f0e12,_0x46926b){for(let _0x598ef6=_0x46926b;_0x598ef6<_0x4f0e12[_0x350f('0x12e')];_0x598ef6++){const _0x36ef25=_0xfe5c5b(_0x5c1715,_0x4f0e12[_0x598ef6]);_0x36ef25&&(_0x36ef25[0x0][_0x350f('0x12c')]=_0x36ef25[0x1],_0x36ef25[0x1][_0x350f('0x38')]=_0x36ef25[0x0],_0x54e50a[_0x350f('0x94')](_0x36ef25[0x0]),_0x3d535a[_0x350f('0x94')](_0x36ef25[0x1]));}}function _0xfe5c5b(_0x24daea,_0x244094){if(_0x24daea[_0x350f('0x17')]['id']!==_0x244094[_0x350f('0x17')]['id'])return null;const _0x2c5077=_0x59619b[_0x350f('0x35')](_0x24daea)(_0x24daea,_0x244094,_0x59d069[_0x350f('0x35')](_0x24daea),_0x59d069['get'](_0x244094));if(!_0x2c5077)return null;return _0x59619b['get'](_0x244094)(_0x24daea,_0x244094,_0x59d069['get'](_0x24daea),_0x59d069[_0x350f('0x35')](_0x244094))?_0x2c5077[0x1]['commentThread']&&_0x2c5077[0x1][_0x350f('0x135')][_0x350f('0x12e')]?null:_0x2c5077:null;}}['_joinWithAdjacentSuggestions'](_0x120aa4){const _0xea9554=Array[_0x350f('0xcf')](_0x120aa4),_0x620af2=this[_0x350f('0x48')]({'skipNotAttached':!0x0}),_0x5a5973=_0x620af2['filter'](_0xf5e509=>!_0x120aa4[_0x350f('0xf1')](_0xf5e509)),_0x458a98=new Map(_0xea9554[_0x350f('0x3d')](_0x5f1416=>[_0x5f1416,this[_0x350f('0x4b')][_0x350f('0x30')](_0x5f1416[_0x350f('0xb')],_0x5f1416[_0x350f('0xf6')],_0x350f('0x1d'))])),_0x9fabf0=new Map(_0x620af2[_0x350f('0x3d')](_0x1baaf7=>[_0x1baaf7,_0x1baaf7[_0x350f('0x72')]()]));for(let _0x3394ab=0x0;_0x3394ab<_0xea9554[_0x350f('0x12e')];_0x3394ab++){if(_0x3a216e(this,_0xea9554[_0x3394ab],_0xea9554,_0x3394ab+0x1))return!0x0;}for(let _0x5e9297=0x0;_0x5e9297<_0xea9554[_0x350f('0x12e')];_0x5e9297++){if(_0x3a216e(this,_0xea9554[_0x5e9297],_0x5a5973,0x0))return!0x0;}return!0x1;function _0x3a216e(_0x3ba5ac,_0x5b1594,_0x2de71e,_0x4da04c){for(let _0x4493dc=_0x4da04c;_0x4493dc<_0x2de71e[_0x350f('0x12e')];_0x4493dc++){const _0x2c3b87=_0x2de71e[_0x4493dc];if(_0x2c3b87['type']!==_0x5b1594[_0x350f('0xb')]||_0x2c3b87['author']['id']!==_0x5b1594['author']['id']||_0x2c3b87['subType']!==_0x5b1594['subType'])continue;const _0x5e8acf=_0x458a98[_0x350f('0x35')](_0x5b1594),_0xd3a727=_0x9fabf0[_0x350f('0x35')](_0x5b1594),_0x3f782d=_0x9fabf0[_0x350f('0x35')](_0x2c3b87),_0x233345=_0x5b1594['commentThread']&&_0x5b1594[_0x350f('0x135')][_0x350f('0x12e')],_0x180b00=_0x2c3b87['commentThread']&&_0x2c3b87[_0x350f('0x135')]['length'];if(!_0x233345&&_0x5e8acf(_0x3f782d,_0xd3a727))return _0x3ba5ac[_0x350f('0xad')](_0x2c3b87,_0x5b1594),_0x9fabf0[_0x350f('0x137')](_0x5b1594),!0x0;if(!_0x180b00&&_0x5e8acf(_0xd3a727,_0x3f782d))return _0x3ba5ac['_joinSuggestions'](_0x5b1594,_0x2c3b87),_0x9fabf0[_0x350f('0x137')](_0x2c3b87),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4dbd18,_0x704343){if(_0x4dbd18[_0x350f('0x103')])for(const _0x17b908 of _0x704343[_0x350f('0x72')]())_0x4dbd18[_0x350f('0xe0')](_0x17b908);else{const _0x35c325=_0x704343[_0x350f('0x3c')]()['end'];this[_0x350f('0x4d')](_0x4dbd18,this[_0x350f('0x3b')][_0x350f('0x107')](_0x4dbd18['getFirstRange']()[_0x350f('0x88')],_0x35c325));}_0x704343[_0x350f('0x22')]();}}class vt{constructor(_0x591476){this['_editor']=_0x591476,this[_0x350f('0x3b')]=_0x591476[_0x350f('0x18')],this[_0x350f('0xe3')]=new Map(),this[_0x350f('0x10c')]=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x10420b,_0x2c812c,_0x4fc6b4,_0x2869dc,_0xe81114,_0x8192eb){return new _0x14b365(this[_0x350f('0x3b')],{'type':_0x10420b,'subType':_0x2c812c,'id':_0x4fc6b4,'author':_0x2869dc,'creator':_0x2869dc,'attributes':_0xe81114,'onAttributesChange':_0x8192eb,'onAccept':(..._0x1161a9)=>this['getSuggestionCallback'](_0x10420b,_0x2c812c,_0x350f('0xd0'))(..._0x1161a9),'onDiscard':(..._0x49f437)=>this['getSuggestionCallback'](_0x10420b,_0x2c812c,_0x350f('0xe1'))(..._0x49f437)});}[_0x350f('0x111')](_0x432336,_0x4d0e6d,_0x3b6b00,_0x398ea5){const _0x8fb2b3=_0x432336+':'+_0x4d0e6d+':'+_0x3b6b00;this[_0x350f('0xe3')][_0x350f('0xa8')](_0x8fb2b3,_0x398ea5);}[_0x350f('0x30')](_0x49ab91,_0x498789,_0xcd4630){const _0x2635f4=_0x49ab91+':'+_0x498789+':'+_0xcd4630;return this[_0x350f('0xe3')][_0x350f('0x35')](_0x2635f4)||this['_defaultCallbacks'][_0x350f('0x35')](_0x49ab91+':'+_0xcd4630);}[_0x350f('0x15')](){const _0x2e96a7=()=>{},_0x33bcc8=_0x5dadfa=>{_0x5dadfa[_0x350f('0x55')]((_0x275e67,_0x79da03)=>_0x275e67['start']['isBefore'](_0x79da03[_0x350f('0x88')])?0x1:-0x1),this['_model']['change'](_0xd9215a=>{for(const _0x936924 of _0x5dadfa){let _0x455a1d;_0x455a1d=_0x936924['end'][_0x350f('0x11a')]&&_0x936924[_0x350f('0x41')][_0x350f('0xf2')]==_0x936924['start'][_0x350f('0x23')]?_0xd9215a[_0x350f('0x8f')](_0x936924[_0x350f('0x88')][_0x350f('0x23')],'on'):_0xd9215a['createSelection'](_0x936924),this[_0x350f('0x3b')][_0x350f('0xaa')](_0x455a1d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1889ef=(_0x31c220,_0x493297)=>{this[_0x350f('0x3b')][_0x350f('0x8a')](_0x24525f=>{const {commandName:_0x46d901,commandParams:_0x1091f2=[]}=_0x493297,_0x5db87a=_0x31c220['map'](_0x3d265a=>(Dt(_0x3d265a)&&(_0x3d265a=this[_0x350f('0x3b')][_0x350f('0x107')](_0x3d265a[_0x350f('0x41')])),_0x3d265a))[_0x350f('0xf4')](_0x2b51b8=>_0x350f('0x100')!==_0x2b51b8[_0x350f('0x5')][_0x350f('0x6a')]);if(_0x5db87a[_0x350f('0x12e')]<0x1)return;const _0x2521d5=Array[_0x350f('0xcf')](this['_model'][_0x350f('0xce')][_0x350f('0xdd')][_0x350f('0x72')]())['map'](_0x21a8fb=>_0x319865['fromRange'](_0x21a8fb));_0x24525f[_0x350f('0x12')](_0x5db87a);for(const _0x1ab088 of this[_0x350f('0x68')]['commands']['commands']())_0x1ab088[_0x350f('0xfd')]();_0x1091f2[_0x350f('0x123')]({'forceDefaultExecution':!0x0}),this[_0x350f('0x68')][_0x350f('0x76')](_0x46d901,..._0x1091f2);const _0x67de0c=_0x2521d5['filter'](_0xb9117f=>'$graveyard'!=_0xb9117f[_0x350f('0x5')][_0x350f('0x6a')]);_0x67de0c[_0x350f('0x12e')]>0x0&&_0x24525f[_0x350f('0x12')](_0x67de0c);for(const _0x7e6c86 of _0x2521d5)_0x7e6c86['detach']();});},_0x47bf7c=(_0x59547c,_0x4c37c1)=>0x1==_0x59547c[_0x350f('0x12e')]&&0x1==_0x4c37c1['length']&&_0x59547c[0x0][_0x350f('0x41')]['isEqual'](_0x4c37c1[0x0][_0x350f('0x88')]),_0x104e99=(_0x59d387,_0x217d69,_0x3946cb,_0x27af16)=>$t(_0x59d387,_0x217d69,_0x3946cb,_0x27af16,this[_0x350f('0x3b')])?[_0x59d387,_0x217d69]:$t(_0x217d69,_0x59d387,_0x27af16,_0x3946cb,this[_0x350f('0x3b')])?[_0x217d69,_0x59d387]:null;this[_0x350f('0x10c')][_0x350f('0xa8')]('insertion:accept',_0x2e96a7),this[_0x350f('0x10c')]['set']('insertion:discard',_0x33bcc8),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0xca'),_0x47bf7c),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0x66'),_0x104e99),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0xc3'),_0x33bcc8),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x10a'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x118'),_0x47bf7c),this[_0x350f('0x10c')]['set'](_0x350f('0x130'),_0x104e99),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x132'),_0x1889ef),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x127'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x89'),_0x47bf7c),this[_0x350f('0x10c')]['set'](_0x350f('0xfb'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x54'),_0x1889ef),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x81'),_0x2e96a7),this['_defaultCallbacks'][_0x350f('0xa8')]('formatBlock:join',_0x47bf7c),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x73'),_0x2e96a7);}}function At(_0x2b1223,_0x18c51b,_0x2c8f4e){for(const _0x52b6a4 of _0x18c51b[_0x350f('0xf2')][_0x350f('0xd4')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52b6a4[_0x350f('0x5')]==_0x52b6a4)return!0x1;if(!_0x2c8f4e[_0x350f('0xa4')](_0x52b6a4))return!0x1;if(_0x2b1223[_0x350f('0xef')](_0x52b6a4)||_0x2b1223[_0x350f('0x1f')](_0x52b6a4))return!0x0;}return!0x1;}function Dt(_0x16f261){return _0x16f261[_0x350f('0x41')][_0x350f('0xf2')]==_0x16f261[_0x350f('0x88')][_0x350f('0x23')]&&_0x16f261['end'][_0x350f('0xab')];}function Ct(_0x1ece1e,_0x1a9432,_0x173547,_0x4c5885){const _0x78739b=_0x5f5c5a=>!_0x5f5c5a[_0x350f('0x7a')]['is'](_0x350f('0x40'))&&!_0x4c5885[_0x350f('0xef')](_0x5f5c5a[_0x350f('0x7a')]),_0x253313=_0x1ece1e[_0x350f('0x88')][_0x350f('0x10f')](_0x78739b),_0x21e8c1=_0x1ece1e[_0x350f('0x41')]['getLastMatchingPosition'](_0x78739b,{'direction':'backward'});return(!_0x1ece1e['start'][_0x350f('0xdc')](_0x253313)||!_0x1ece1e[_0x350f('0x41')][_0x350f('0xdc')](_0x21e8c1))&&(_0x253313['isBefore'](_0x21e8c1)?_0x173547[_0x350f('0x7f')](_0x1a9432,{'range':_0x173547[_0x350f('0x107')](_0x253313,_0x21e8c1)}):_0x173547['removeMarker'](_0x1a9432),!0x0);}function Bt(_0x346bff){return _0x394310(_0x346bff);}function _t(_0x1d0156){const _0x4c1aee=_0x1d0156[_0x350f('0x88')][_0x350f('0x23')];return _0x4c1aee&&_0x4c1aee['is']('element');}function Mt(_0x311239,_0xd5f1b5){const _0x16ec73=_0xd5f1b5[_0x350f('0x44')][_0x350f('0xef')](_0x311239)||_0xd5f1b5[_0x350f('0x44')][_0x350f('0x12b')](_0x311239);return _0xd5f1b5['createRange'](_0xd5f1b5[_0x350f('0x10d')](_0x311239,_0x350f('0x26')),_0x16ec73?_0xd5f1b5[_0x350f('0x139')](_0x311239):_0xd5f1b5['createPositionAt'](_0x311239,'end'));}function $t(_0x13db3c,_0x2d7557,_0x5aa4d2,_0x52fc57,_0x579125){if(_0x5aa4d2[_0x350f('0x41')]['isEqual'](_0x52fc57[_0x350f('0x88')]))return!0x0;if(_0x13db3c[_0x350f('0xb')]!=_0x2d7557[_0x350f('0xb')])return!0x1;if(!_0x5aa4d2['end']['isTouching'](_0x52fc57['start']))return!0x1;const _0x1cc686=_0x579125[_0x350f('0x107')](_0x5aa4d2[_0x350f('0x41')],_0x52fc57[_0x350f('0x88')])[_0x350f('0x34')]();for(const _0x3f8a00 of _0x1cc686)if([_0x350f('0xeb'),'elementEnd'][_0x350f('0x9a')](_0x3f8a00[_0x350f('0xb')])&&_0x579125[_0x350f('0x44')][_0x350f('0x1f')](_0x3f8a00['item']))return!0x1;return!0x0;}
|