@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230902.0 → 0.0.0-nightly-20230903.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20230903.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"ckeditor5": "0.0.0-nightly-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20230903.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230903.0",
|
|
44
44
|
"lodash-es": "4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x311e=['createPositionBefore','move','widget','rethrowUnexpectedError','addMarker:suggestion:formatBlock','_saved','ck-suggestion-marker','formatBlock:','_setSuggestionRange','assign','locale','add','Users','collaboration.channelId','addRange','return','discard','isAtStart','getAncestors','never','getItems','nodeBefore','parent','name','markDeletion','start','consumable','schema','enableReadOnlyMode','clear','_setSuggestionData','getAllAdjacentSuggestions','track-changes-user-not-found','formatInline:accept','type','isNextTo','_commentsRepository','_getAuthorFromId','_defaultCallbacks','acceptSelectedSuggestions','oldRange','_getExternalAuthor','getMultiRangeId','markMultiRangeInsertion','substr','document','lowest','toViewElement','isEqual','batch','sort','track-changes-adapter-missing-getsuggestion','highest','change:activeMarkers','formatInline:chain','_refreshSuggestionsChain','removed','getAttribute','writer','isBefore','init','createRange','_rangeIsInLocalUserInsertion','updateSuggestion','registerCustomCallback','CommentsRepository','splice','_joinWithAdjacentSuggestions','createRangeIn','filter','change','_trackFormatChanges','createdAt','plugins','@external','group','open','join','stop','_checkSuggestionCorrectness','markerReady','multi','editing','_addThreadToSuggestion','documentSelection','isAfter','formatInline','author','_onDiscard','deleteContent','deletion:','isSelectable','accept','removeMarker:suggestion:formatBlock','keys','_handleNewSuggestionMarker','ck-suggestion-marker-','dataReady','map','insertion:','has','registerPostFixer','buildSuggestion','markerNameToElements','change:data','isArray','_editor','addSuggestion','options','set','trackChangesCommand','deletion','deletion:join','insert','listenTo','execute','consume','getWalker','isObject','createSelection','suggestionLoaded','activeMarkers','track-changes-suggestion-data-mismatch','fromCharCode','getChangedMarkers','containsRangeInObject','containerElement','getIntersection','formatInline:join','conversion','values','unbind','createPositionAfter','range','detach','isUndo','showSuggestionHighlights','discardAllSuggestions','removeMarker','removeMarkers','discardSelectedSuggestions','updateMarker','elementToElement','ready','setAttribute','_joinSuggestions','track-changes-adapter-already-set','suggestion:','_removeSuggestion','notReady','getSuggestionCallback','markerName','suggestion-type','formatBlock:chain','markers','commentThread','_cutOutSuggestionMarker','getShiftedBy','adapter','from','selection','high','markInsertion','position','_adapter','ck-suggestion-marker--active','insertion:chain','end','addClass','size','suggestion','isCollapsed','suggestionChanged','split','isAtEnd','_suggestions','nodeAfter','formatGroupId','next','isRemovable','PENDING_ACTION_SUGGESTION','createPositionAt','setSelection','trackChanges.trackFormatChanges','define','$marker','isDocumentOperation','bindElementToMarker','_breakSuggestionMarker','getUser','low','config','applyOperation','_addSuggestionMarker','get','pluginName','before','acceptSuggestion','_model','reconvertMarker','_getSuggestionData','getRanges','_suggestionState','previous','fromRange','rootName','some','authoredAt','isMultiRange','acceptAllSuggestions','every','addMarkerName','getCommentThread','isInsideObject','stopListening','removeComment','PendingActions','creator','getCustomProperty','_mergeNestedSuggestions','enableCommand','forceDefaultExecution','enqueueChange','markMultiRangeBlockFormat','getLastMatchingPosition','removeClass','rejected','delete','commands','remove','data','length','multipleBlocks','isBlock','setTo','addUser','unbindElementFromMarkerName','_isDataLoaded','elementStart','createElement','_customCallbacks','_enabledCommands','insertion:join','isInContent','skipNestingCheck','containsPosition','item','for','discardSuggestion','mapper','_splitMarkerName','containsRange','catch','addHighlight','_isForcedDefaultExecutionBlock','getFirstMarker','insertContent','_updateSuggestionData','addCommentThread','containsItem','upcast','subType','_findSuggestions','isExternal','hasComments','insertion','newRange','addMarker','markInlineFormat','getSuggestion','then','hasCommentThread','TrackChangesEditing','includes','root','element','isTouching','getNearestSelectionRange','deletion:accept','$graveyard','addComment','editor','markerToHighlight','formatBlock:discard','markerToData','backward','isLimit','deletion:discard','elementEnd','fire','_suggestionFactory','trackChanges','editingDowncast','attributes','hasSuggestion','data-suggestion','formatBlock:join','external:','getRange','getDifference','model','formatBlock','addSuggestionData','push','isIntersectingWithRange','getSuggestions','trackChanges.mergeNestedSuggestions','always','_registerDefaultCallbacks','forward','isOwn','value','dataDowncast','$textProxy','getFirstRange'];(function(_0x4d5881,_0x311e65){const _0x4070c4=function(_0x208a68){while(--_0x208a68){_0x4d5881['push'](_0x4d5881['shift']());}};_0x4070c4(++_0x311e65);}(_0x311e,0x1a9));const _0x4070=function(_0x4d5881,_0x311e65){_0x4d5881=_0x4d5881-0x0;let _0x4070c4=_0x311e[_0x4d5881];return _0x4070c4;};import{Plugin as _0x22862a,PendingActions as _0x5c13f4}from'ckeditor5/src/core';import{LiveRange as _0xa146d2}from'ckeditor5/src/engine';import{CKEditorError as _0xe2c45,uid as _0x2cecee,priorities as _0x85390b,logWarning as _0x2f3731}from'ckeditor5/src/utils';import{toWidget as _0x2bcb74}from'ckeditor5/src/widget';import{Users as _0x43e427,hashObject as _0x211e1a}from'ckeditor5-collaboration/src/collaboration-core';import _0x20086b from'./commands/trackchangescommand';import _0x26ccd9 from'./commands/acceptsuggestioncommand';import _0x46116c from'./commands/discardsuggestioncommand';import _0x4ca370 from'./commands/executeonallsuggestionscommand';import _0x1d2d56 from'./commands/executeonselectedsuggestionscommand';import _0x4062b9 from'./suggestion';import _0x5af0fc from'./suggestiondescriptionfactory';import _0x37e5f3 from'./integrations/alignment';import _0x3da68d from'./integrations/basicstyles';import _0x57df06 from'./integrations/blockquote';import _0x1e4138 from'./integrations/ckbox';import _0x255208 from'./integrations/codeblock';import _0x13f3d7 from'./integrations/comments';import _0x12285a from'./integrations/deletecommand';import _0x4b6d2a from'./integrations/documentlist';import _0x4b940d from'./integrations/entercommand';import _0x369715 from'./integrations/findandreplace';import _0x27d556 from'./integrations/font';import _0x40e2be from'./integrations/formatpainter';import _0x3b44d9 from'./integrations/heading';import _0x22bd19 from'./integrations/highlight';import _0x17bbc8 from'./integrations/horizontalline';import _0x43a687 from'./integrations/htmlembed';import _0x4ee8d9 from'./integrations/image';import _0x71723d from'./integrations/imagereplace';import _0x3fd773 from'./integrations/importword';import _0x5cabe0 from'./integrations/indent';import _0x42309b from'./integrations/inputcommand';import _0x2ade67 from'./integrations/link';import _0x441e74 from'./integrations/list';import _0x358c0e from'./integrations/listproperties';import _0x314561 from'./integrations/mediaembed';import _0x509f34 from'./integrations/mention';import _0x377b23 from'./integrations/pagebreak';import _0x557e37 from'./integrations/paragraph';import _0x2d7f60 from'./integrations/removeformat';import _0x34bde7 from'./integrations/restrictededitingmode';import _0x2db81e from'./integrations/shiftentercommand';import _0x2821aa from'./integrations/standardeditingmode';import _0x3707b4 from'./integrations/style';import _0x500983 from'./integrations/table';import _0xa76141 from'./integrations/tablemergesplit';import _0x348f2c from'./integrations/tableheadings';import _0x4eccb7 from'./integrations/tableclipboard';import _0x268766 from'./integrations/tablecolumnresize';import _0x2c7ccb from'./integrations/template';import _0x40222e from'./integrations/tableofcontents';import _0x15ad92 from'./integrations/title';import _0xc43837 from'./integrations/undo';import{getTranslation as _0xa532f}from'./utils/common-translations';import _0x59ddcb from'./integrations/tablecaption';import _0x1972e4 from'./integrations/documentlistproperties';import _0x53b3e4 from'./integrations/tableproperties';import{isEqual as _0x52583c}from'lodash-es';export default class p extends _0x22862a{static get['requires'](){return[_0x4070('0x10e'),_0x43e427,_0x5c13f4,_0x37e5f3,_0x3da68d,_0x57df06,_0x1e4138,_0x255208,_0x13f3d7,_0x12285a,_0x4b6d2a,_0x1972e4,_0x4b940d,_0x369715,_0x27d556,_0x40e2be,_0x3b44d9,_0x22bd19,_0x17bbc8,_0x43a687,_0x4ee8d9,_0x71723d,_0x3fd773,_0x5cabe0,_0x42309b,_0x2ade67,_0x441e74,_0x358c0e,_0x314561,_0x509f34,_0x377b23,_0x557e37,_0x2d7f60,_0x34bde7,_0x2db81e,_0x2821aa,_0x3707b4,_0x500983,_0xa76141,_0x348f2c,_0x59ddcb,_0x4eccb7,_0x268766,_0x40222e,_0x53b3e4,_0x2c7ccb,_0x15ad92,_0xc43837];}static get[_0x4070('0x55')](){return _0x4070('0xa2');}constructor(_0x5af43f){function _0x3a4c2d(_0x47ce41){return _0x47ce41[_0x4070('0x12f')](_0x388afb=>String[_0x4070('0xd')](_0x388afb))[_0x4070('0x11a')]('');}super(_0x5af43f),this[_0x4070('0x13a')]('activeMarkers',[]),this['on'](_0x4070('0x102'),(_0x513c88,_0x468721,_0x3abfe4,_0x57ee4b)=>{this[_0x4070('0x58')][_0x4070('0x113')](()=>{for(const _0x5ebd7b of[..._0x57ee4b,..._0x3abfe4])this[_0x4070('0x58')][_0x4070('0x2c')][_0x4070('0x131')](_0x5ebd7b)&&_0x5af43f[_0x4070('0x11f')][_0x4070('0x59')](_0x5ebd7b);});}),this['_descriptionFactory']=new _0x5af0fc(this[_0x4070('0xab')][_0x4070('0xbe')][_0x4070('0xe8')],this['editor'][_0x4070('0xd7')]),this[_0x4070('0x36')]=null,this[_0x4070('0xb4')]=new Dt(this[_0x4070('0xab')]),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5af43f[_0x4070('0x116')][_0x4070('0x54')]('CommentsRepository'),this[_0x4070('0x83')]=new Set(),this[_0x4070('0x58')]=this[_0x4070('0xab')]['model'],this[_0x4070('0x5c')]=new WeakMap(),this[_0x4070('0x90')]=!0x1,_0x5af43f[_0x4070('0x51')][_0x4070('0x4a')](_0x4070('0x49'),'default'),this[_0x4070('0x114')]=_0x5af43f[_0x4070('0x51')]['get'](_0x4070('0x49')),_0x5af43f[_0x4070('0x51')][_0x4070('0x4a')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x4070('0x6d')]=_0x5af43f[_0x4070('0x51')][_0x4070('0x54')](_0x4070('0xc4')),this['trackChangesCommand']=new _0x20086b(_0x5af43f,this['_enabledCommands']),this[_0x3a4c2d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3a4c2d([0x34,0x30,0x34,0x36,0x31,0x38,0x30,0x34]);}[_0x4070('0x109')](){const _0x25cbba=this[_0x4070('0xab')];_0x25cbba[_0x4070('0x13')]['for'](_0x4070('0xb6'))['markerToHighlight']({'model':'suggestion','view':_0xd7045c=>{const {id:_0x5e4ce3,type:_0x2e0f7a}=this[_0x4070('0x8c')](_0xd7045c['markerName']),_0xe17524=[_0x4070('0xd3'),'ck-suggestion-marker-'+_0x2e0f7a];let _0x5d64d8=0xbb8;return this[_0x4070('0xb')][_0x4070('0xa3')](_0xd7045c['markerName'])&&(_0xe17524[_0x4070('0xc1')](_0x4070('0x37')),_0x5d64d8=0xbc2),_0x4070('0x1')==_0x2e0f7a&&(_0x5d64d8+=0x5),{'classes':_0xe17524,'attributes':{'data-suggestion':_0x5e4ce3},'priority':_0x5d64d8};}}),_0x25cbba[_0x4070('0x13')]['for'](_0x4070('0xca'))['add'](_0x22ddbe=>{_0x22ddbe['on']('addMarker:suggestion',(_0x1d3f69,_0x18c541,_0x4a7dda)=>{if(!_0x4a7dda['options'][_0x4070('0x1a')])return;const _0x48ee58=_0x18c541[_0x4070('0x88')];if(!_0x48ee58)return;const _0x2acdc9=_0x4a7dda[_0x4070('0x8b')][_0x4070('0xfc')](_0x48ee58);_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')][_0x4070('0x8')](_0x48ee58)&&_0x2acdc9&&!_0x2acdc9[_0x4070('0x6c')](_0x4070('0xcf'))&&_0x2acdc9['is'](_0x4070('0x10'))&&_0x2bcb74(_0x2acdc9,_0x4a7dda[_0x4070('0x107')]);},{'priority':_0x4070('0x33')});}),_0x25cbba['conversion'][_0x4070('0x89')](_0x4070('0xca'))[_0x4070('0xac')]({'model':_0x4070('0x3c'),'view':(_0x1f5fad,_0x392a0b)=>{if(!_0x392a0b['options'][_0x4070('0x1a')])return null;const {type:_0xa20583}=this[_0x4070('0x8c')](_0x1f5fad[_0x4070('0x29')]);return{'classes':[_0x4070('0xd3'),_0x4070('0x12d')+_0xa20583],'priority':0xbb8};}});const _0x36d6bb=({showActiveMarkers:_0x54861e=!0x0}={})=>(_0xecc281,_0x18f7d5,_0x4faebf)=>{if(!_0x18f7d5[_0x4070('0x88')])return;if(_0x18f7d5['item']['is'](_0x4070('0x32')))return void _0x4faebf[_0x4070('0xe7')][_0x4070('0x6')](_0x18f7d5[_0x4070('0x88')],_0xecc281[_0x4070('0xe4')]);const _0xdfbc8d=_0x4faebf[_0x4070('0x8b')]['toViewElement'](_0x18f7d5[_0x4070('0x88')]);if(!(_0x18f7d5[_0x4070('0x88')]['is'](_0x4070('0xa5'))&&_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')][_0x4070('0x7b')](_0x18f7d5[_0x4070('0x88')])&&!_0xdfbc8d[_0x4070('0x6c')](_0x4070('0x8f'))))return;const {id:_0x38f65f}=this[_0x4070('0x8c')](_0x18f7d5[_0x4070('0x29')]);_0x4faebf[_0x4070('0x107')][_0x4070('0x3a')]([_0x4070('0xd3'),'ck-suggestion-marker-formatBlock'],_0xdfbc8d),_0x4faebf[_0x4070('0x107')][_0x4070('0x22')](_0x4070('0xb9'),_0x38f65f,_0xdfbc8d),_0x4faebf[_0x4070('0x8b')][_0x4070('0x4d')](_0xdfbc8d,_0x18f7d5[_0x4070('0x29')]),_0x54861e&&(this[_0x4070('0xb')][_0x4070('0xa3')](_0x18f7d5[_0x4070('0x29')])?_0x4faebf['writer']['addClass'](_0x4070('0x37'),_0xdfbc8d):_0x4faebf[_0x4070('0x107')]['removeClass'](_0x4070('0x37'),_0xdfbc8d));for(const _0x56a13 of _0x25cbba[_0x4070('0xbe')][_0x4070('0x111')](_0x18f7d5['item'])[_0x4070('0xe1')]())_0x4faebf[_0x4070('0xe7')][_0x4070('0x6')](_0x56a13,_0xecc281[_0x4070('0xe4')]);_0x4faebf['consumable'][_0x4070('0x6')](_0x18f7d5[_0x4070('0x88')],_0xecc281[_0x4070('0xe4')]);};_0x25cbba[_0x4070('0x13')]['for']('dataDowncast')[_0x4070('0xd8')](_0xda4899=>{_0xda4899['on'](_0x4070('0xd1'),(_0xd3b99,_0x3a4fe0,_0xe768d1)=>{_0xe768d1[_0x4070('0x139')][_0x4070('0x1a')]&&_0x36d6bb({'showActiveMarkers':!0x1})(_0xd3b99,_0x3a4fe0,_0xe768d1);},{'priority':_0x4070('0x101')});}),_0x25cbba[_0x4070('0x13')][_0x4070('0x89')](_0x4070('0xca'))[_0x4070('0xae')]({'model':_0x4070('0x3c'),'view':(_0xd92e02,_0x3943d1)=>_0x3943d1[_0x4070('0x139')][_0x4070('0x1a')]?null:{'group':_0x4070('0x3c'),'name':_0xd92e02[_0x4070('0xf9')](0xb)}}),_0x25cbba['conversion'][_0x4070('0x89')]('upcast')[_0x4070('0x20')]({'view':{'name':_0x4070('0x3c'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xad0924,{writer:_0x194b5b})=>{let _0x5a9bcf=_0x4070('0x25')+_0xad0924[_0x4070('0x106')](_0x4070('0x2a'))+':'+_0xad0924[_0x4070('0x106')]('id');return _0xad0924['getAttribute']('marker-count')&&(_0x5a9bcf+=':'+_0xad0924['getAttribute']('marker-count')),_0x194b5b[_0x4070('0x81')](_0x4070('0x4b'),{'data-name':_0x5a9bcf});}}),_0x25cbba['conversion']['for'](_0x4070('0x96'))['dataToMarker']({'view':_0x4070('0x3c')}),_0x25cbba[_0x4070('0x13')][_0x4070('0x89')](_0x4070('0xb6'))[_0x4070('0xd8')](_0x1f8d2a=>{_0x1f8d2a['on'](_0x4070('0xd1'),_0x36d6bb(),{'priority':_0x4070('0x33')});}),_0x25cbba[_0x4070('0x13')]['for'](_0x4070('0xb6'))[_0x4070('0xd8')](_0x11e1d0=>{_0x11e1d0['on'](_0x4070('0x12a'),(_0x5b7650,_0x481577,_0xe9cea7)=>{const _0x26edb1=_0xe9cea7[_0x4070('0x8b')][_0x4070('0x134')](_0x481577[_0x4070('0x29')]);if(_0x26edb1)for(const _0x260e36 of _0x26edb1)_0x260e36[_0x4070('0x6c')](_0x4070('0x8f'))||(_0xe9cea7[_0x4070('0x107')][_0x4070('0x73')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x4070('0x37')],_0x260e36),_0xe9cea7[_0x4070('0x107')]['removeAttribute'](_0x4070('0xb9'),_0x260e36),_0xe9cea7[_0x4070('0x8b')][_0x4070('0x7e')](_0x260e36,_0x481577[_0x4070('0x29')]));},{'priority':_0x4070('0x33')});}),_0x25cbba[_0x4070('0xbe')][_0x4070('0xfa')][_0x4070('0x132')](_0x532e2b=>{let _0x26bd07=!0x1;const _0x1140f5=Array['from'](_0x25cbba['model'][_0x4070('0xfa')]['differ'][_0x4070('0xe')]()),_0xf8588=new Set();for(const {name:_0xac7470,data:_0x2ec0a8}of _0x1140f5){const {group:_0x8a015,type:_0x213f0b,id:_0x2e245e}=this['_splitMarkerName'](_0xac7470);if(_0x4070('0x3c')!==_0x8a015)continue;const _0x260553=this[_0x4070('0x41')][_0x4070('0x54')](_0x2e245e);if(null!=_0x2ec0a8[_0x4070('0x9c')]){'formatInline'==_0x213f0b&&(_0x26bd07=_0x26bd07||Mt(_0x2ec0a8['newRange'],_0xac7470,_0x532e2b,_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')]));if(_0x2ec0a8['newRange'][_0x4070('0x3d')]||_0x4070('0xa9')==_0x2ec0a8[_0x4070('0x9c')]['root'][_0x4070('0x5f')]||_0x4070('0xbf')==_0x213f0b&&!Nt(_0x2ec0a8[_0x4070('0x9c')])||_0x4070('0x1')==_0x213f0b&&!(!_t(_0x1d1018=_0x2ec0a8[_0x4070('0x9c')])&&!function(_0x3eff34){return _0x3eff34[_0x4070('0xe6')][_0x4070('0xe3')]==_0x3eff34[_0x4070('0x39')]['nodeBefore']&&_0x3eff34[_0x4070('0xe6')]['isAtEnd'];}(_0x1d1018)))_0x532e2b[_0x4070('0x1c')](_0xac7470),_0x26bd07=!0x0;else{if(!_0x260553||!_0x260553[_0x4070('0x85')])continue;_0xf8588['add'](_0x260553);}}}var _0x1d1018;return _0xf8588[_0x4070('0x3b')]>0x0&&(_0x26bd07=!!this[_0x4070('0x110')](_0xf8588)||_0x26bd07),_0x26bd07;}),_0x25cbba[_0x4070('0xbe')]['document'][_0x4070('0x132')](_0x4ddae3=>{let _0x7117c3=!0x1;for(const _0x1e9cc8 of _0x25cbba['model'][_0x4070('0xfa')]['differ']['getChanges']()){if(_0x4070('0x3')!=_0x1e9cc8[_0x4070('0xef')])continue;const _0x4b3d16=_0x1e9cc8[_0x4070('0x35')][_0x4070('0x2f')](_0x1e9cc8[_0x4070('0x79')]);if(_0x4b3d16[_0x4070('0x40')])for(const _0x493a61 of this[_0x4070('0x41')]['values']()){if(_0x493a61[_0x4070('0x62')]||!_0x493a61[_0x4070('0x85')])continue;if(_0x4070('0xbf')!=_0x493a61[_0x4070('0xef')])continue;const _0x2f40a3=_0x493a61['getFirstRange']();if(_0x2f40a3[_0x4070('0xe6')]['parent']!=_0x2f40a3[_0x4070('0x39')][_0x4070('0xe3')]&&_0x2f40a3[_0x4070('0x39')][_0x4070('0xfd')](_0x1e9cc8[_0x4070('0x35')])){const _0x18a8cf=_0x25cbba[_0x4070('0xbe')]['createRange'](_0x2f40a3[_0x4070('0xe6')],_0x4b3d16);_0x4ddae3['updateMarker'](_0x493a61[_0x4070('0x91')](),{'range':_0x18a8cf}),_0x7117c3=!0x0;}}}return _0x7117c3;}),_0x25cbba[_0x4070('0xbe')]['markers']['on']('update:suggestion',(_0x47bf97,_0x3d0b0c,_0x2df2b4)=>{if(null==_0x2df2b4){const {id:_0x472f09}=this[_0x4070('0x8c')](_0x3d0b0c[_0x4070('0xe4')]),_0x3d3cb4=this[_0x4070('0x41')][_0x4070('0x54')](_0x472f09);_0x3d3cb4&&_0x3d3cb4['addMarkerName'](_0x3d0b0c[_0x4070('0xe4')]);}}),_0x25cbba[_0x4070('0xbe')][_0x4070('0xfa')]['on'](_0x4070('0x135'),()=>{const _0x42cf83=Array[_0x4070('0x31')](_0x25cbba[_0x4070('0xbe')]['document']['differ']['getChangedMarkers']())[_0x4070('0x112')](_0x441f52=>_0x4070('0x3c')===this['_splitMarkerName'](_0x441f52[_0x4070('0xe4')])[_0x4070('0x118')]);if(0x0===_0x42cf83['length'])return;_0x42cf83[_0x4070('0xff')]((_0x15c358,_0xc04040)=>{const _0x5514d0=_0x15c358[_0x4070('0x78')][_0x4070('0xf5')],_0x398af0=_0xc04040[_0x4070('0x78')][_0x4070('0xf5')];return null===_0x5514d0&&null===_0x398af0?0x0:null===_0x5514d0&&null!==_0x398af0?-0x1:null!==_0x5514d0&&null===_0x398af0?0x1:_0x5514d0[_0x4070('0xe6')][_0x4070('0x108')](_0x398af0[_0x4070('0xe6')])?-0x1:0x1;});const _0x543e5d=new Set(),_0x464bda=new Set();for(const {name:_0x281517,data:_0x14c881}of _0x42cf83){const {id:_0x12112c}=this['_splitMarkerName'](_0x281517);if(null===_0x14c881[_0x4070('0xf5')]){const _0x428bd9=this['_handleNewSuggestionMarker'](_0x281517);_0x464bda[_0x4070('0xd8')](_0x428bd9);}else{const _0x302e32=this[_0x4070('0x41')][_0x4070('0x54')](_0x12112c);null!==_0x14c881[_0x4070('0x9c')]||_0x302e32['isInContent']?(_0x543e5d[_0x4070('0xd8')](_0x302e32['head']),_0x464bda[_0x4070('0xd8')](_0x302e32)):this[_0x4070('0x26')](_0x302e32);}}_0x464bda[_0x4070('0x3b')]>0x0&&this['_refreshSuggestionsChain'](_0x464bda);for(const _0x50bf27 of _0x543e5d)this['fire'](_0x4070('0x3e'),_0x50bf27);}),_0x25cbba[_0x4070('0xbe')]['on'](_0x4070('0x52'),(_0x5c42cd,_0x5c08cc)=>{const _0x81c79e=_0x5c08cc[0x0];if(!this['_suggestions'][_0x4070('0x3b')])return;if(!_0x81c79e[_0x4070('0x4c')])return;if(_0x81c79e[_0x4070('0xfe')][_0x4070('0x19')]||!_0x81c79e[_0x4070('0xfe')]['isLocal'])return;let _0x32dd03,_0x5d9a7f;switch(_0x81c79e[_0x4070('0xef')]){case _0x4070('0x3'):_0x32dd03=_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x81c79e[_0x4070('0x35')]),_0x5d9a7f=_0x32dd03['getShiftedBy'](_0x81c79e['howMany']);break;case'split':_0x32dd03=_0x25cbba['model']['createPositionAt'](_0x81c79e['splitPosition']),_0x5d9a7f=_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x81c79e['moveTargetPosition']);break;case _0x4070('0xce'):_0x32dd03=_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x81c79e['targetPosition']),_0x5d9a7f=_0x32dd03[_0x4070('0x2f')](_0x81c79e['howMany']);break;default:return;}const _0x486b5f=_0x25cbba[_0x4070('0xbe')]['createRange'](_0x32dd03,_0x5d9a7f);_0x25cbba[_0x4070('0xbe')]['change'](()=>{for(const {suggestion:_0x5c7a9b,meta:_0x4f7ac7}of this[_0x4070('0x98')](_0x486b5f)){if(_0x5c7a9b['isMultiRange'])continue;if('formatInline'==_0x5c7a9b['type'])continue;const _0x1d8283=_0x5c7a9b[_0x4070('0x78')]&&_0x5c7a9b['data'][_0x4070('0x7a')];(_0x4070('0xbf')!=_0x5c7a9b['type']||_0x4070('0x3f')==_0x81c79e[_0x4070('0xef')]&&!_0x1d8283)&&(_0x4f7ac7['containsRangeInObject']||_0x4070('0x9b')==_0x5c7a9b[_0x4070('0xef')]&&_0x4f7ac7[_0x4070('0xc8')]||_0x5c7a9b['getFirstRange']()[_0x4070('0x8d')](_0x486b5f)&&this[_0x4070('0x4e')](_0x5c7a9b,_0x32dd03,_0x5d9a7f));}});},{'priority':_0x4070('0xfb')}),_0x25cbba[_0x4070('0xbe')]['on'](_0x4070('0x126'),(_0x89d442,_0x4761e3)=>{const _0x2b8279=_0x4761e3[0x0],_0x364c64=_0x4761e3[0x1];if(_0x364c64&&_0x364c64[_0x4070('0x6f')])return;if(this[_0x4070('0x90')])return;if(!this[_0x4070('0x0')][_0x4070('0xc9')])return;if(_0x2b8279[_0x4070('0x3d')])return;const _0x4d906c=_0x25cbba['model'][_0x4070('0xe8')],{start:_0x45c1a4,end:_0x186fa0}=_0x2b8279[_0x4070('0xcc')](),_0x59537d=_0x45c1a4[_0x4070('0x42')]&&_0x4d906c[_0x4070('0xb0')](_0x45c1a4['nodeAfter'])?null:_0x4d906c[_0x4070('0xa7')](_0x45c1a4,_0x4070('0xc7')),_0x4112a0=_0x186fa0[_0x4070('0xe2')]&&_0x4d906c[_0x4070('0xb0')](_0x186fa0[_0x4070('0xe2')])?null:_0x4d906c[_0x4070('0xa7')](_0x186fa0,_0x4070('0xaf')),_0x107c9b=_0x25cbba[_0x4070('0xbe')][_0x4070('0x10a')](_0x59537d?_0x59537d[_0x4070('0xe6')]:_0x45c1a4,_0x4112a0?_0x4112a0['end']:_0x186fa0);_0x25cbba['model']['change'](_0x138e2f=>{this[_0x4070('0xe5')](_0x107c9b);const _0x3e38f7=_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')][_0x4070('0xa7')](_0x107c9b[_0x4070('0xe6')]);_0x2b8279['is'](_0x4070('0x121'))?_0x138e2f[_0x4070('0x48')](_0x3e38f7):_0x2b8279[_0x4070('0x7c')](_0x3e38f7);}),_0x89d442['stop']();},{'priority':_0x85390b['normal']+0xa}),_0x25cbba[_0x4070('0xbe')]['on'](_0x4070('0x92'),(_0x59cd18,_0x4891fa)=>{const _0x4ecb77=_0x4891fa[_0x4891fa['length']-0x1];_0x4ecb77&&_0x4ecb77[_0x4070('0x6f')]||this[_0x4070('0x90')]||this[_0x4070('0x0')]['value']&&(_0x25cbba[_0x4070('0xbe')][_0x4070('0x113')](()=>{let _0xa67eb7=_0x25cbba['model'][_0x4070('0x92')](_0x4891fa[0x0],_0x4891fa[0x1],_0x4891fa[0x2],{'forceDefaultExecution':!0x0});if(!_0xa67eb7)return;_0x59cd18[_0x4070('0xdc')]=_0xa67eb7['clone']();const _0x17dd2d=_0xa67eb7['end'][_0x4070('0xe2')],_0x1080ca=_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')];_0x17dd2d&&_0x1080ca['isBlock'](_0x17dd2d)&&!_0x1080ca[_0x4070('0x8')](_0x17dd2d)&&(_0xa67eb7=_0x25cbba[_0x4070('0xbe')]['createRange'](_0xa67eb7[_0x4070('0xe6')],_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x17dd2d,_0x4070('0x39')))),this[_0x4070('0x34')](_0xa67eb7);}),_0x59cd18['stop']());},{'priority':_0x4070('0x33')}),this[_0x4070('0xab')]['commands']['add'](_0x4070('0xb5'),this[_0x4070('0x0')]),this['enableCommand'](_0x4070('0xb5'));const _0x3a6308=new _0x26ccd9(_0x25cbba,this[_0x4070('0x41')]);_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')](_0x4070('0x57'),_0x3a6308),this[_0x4070('0x6e')](_0x4070('0x57'));const _0x3487a4=new _0x46116c(_0x25cbba,this[_0x4070('0x41')]);_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')](_0x4070('0x8a'),_0x3487a4),this[_0x4070('0x6e')](_0x4070('0x8a')),_0x25cbba[_0x4070('0x76')]['add']('acceptAllSuggestions',new _0x4ca370(_0x25cbba,_0x3a6308,this[_0x4070('0x41')])),this[_0x4070('0x6e')](_0x4070('0x63')),_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')](_0x4070('0x1b'),new _0x4ca370(_0x25cbba,_0x3487a4,this[_0x4070('0x41')])),this[_0x4070('0x6e')](_0x4070('0x1b')),_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')]('acceptSelectedSuggestions',new _0x1d2d56(_0x25cbba,_0x3a6308,this[_0x4070('0x41')])),this['enableCommand'](_0x4070('0xf4')),_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')]('discardSelectedSuggestions',new _0x1d2d56(_0x25cbba,_0x3487a4,this['_suggestions'])),this['enableCommand'](_0x4070('0x1e'));const _0x3b784a=_0x25cbba[_0x4070('0x116')]['get'](_0x4070('0x10e'));this['listenTo'](_0x3b784a,_0x4070('0xaa'),(_0xee8716,{threadId:_0x5b4871})=>{const _0x57695b=this[_0x4070('0x41')][_0x4070('0x54')](_0x5b4871);_0x57695b&&_0x57695b[_0x4070('0x2d')]&&0x1===_0x57695b[_0x4070('0x2d')][_0x4070('0x79')]&&this['_updateSuggestionData'](_0x5b4871,{'hasComments':!0x0});},{'priority':'low'}),this[_0x4070('0x4')](_0x3b784a,_0x4070('0x69'),(_0x1e7add,{threadId:_0x2587f7})=>{const _0x37e3cb=this[_0x4070('0x41')]['get'](_0x2587f7);_0x37e3cb&&_0x37e3cb[_0x4070('0x2d')]&&!_0x37e3cb[_0x4070('0x2d')][_0x4070('0x79')]&&this[_0x4070('0x93')](_0x2587f7,{'hasComments':!0x1});},{'priority':_0x4070('0x50')});}set[_0x4070('0x30')](_0x3f6c30){if(this[_0x4070('0x36')])throw new _0xe2c45(_0x4070('0x24'),this);this[_0x4070('0x36')]=_0x3f6c30;}get[_0x4070('0x30')](){return this[_0x4070('0x36')];}[_0x4070('0xc3')]({skipNotAttached:_0x4411e1=!0x1,toJSON:_0x30007c=!0x1}={}){const _0x526068=[];for(const _0x14abba of this[_0x4070('0x41')][_0x4070('0x14')]())_0x4411e1&&!_0x14abba[_0x4070('0x85')]||_0x526068[_0x4070('0xc1')](_0x14abba);return _0x30007c?_0x526068[_0x4070('0x12f')](_0x26e0ea=>_0x26e0ea['toJSON']()):_0x526068;}[_0x4070('0x9f')](_0x40f267){const _0x148980=this['_suggestions']['get'](_0x40f267);if(!_0x148980)throw new _0xe2c45('track-changes-suggestion-not-found',this);return _0x148980;}[_0x4070('0xb8')](_0x4da302){return this['_suggestions'][_0x4070('0x131')](_0x4da302);}[_0x4070('0xc0')](_0x5a3ba2){const {authorId:_0xe8e633,id:_0xe8e69,attributes:_0xc56e92}=_0x5a3ba2,[_0x14f689,_0x464703]=_0x5a3ba2[_0x4070('0xef')][_0x4070('0x3f')](':'),_0x295590=this[_0x4070('0x41')][_0x4070('0x54')](_0xe8e69)||this['_createSuggestion'](_0x14f689,_0x464703,_0xe8e69,_0xe8e633,_0xc56e92);if(this[_0x4070('0x120')](_0x295590),this['_checkSuggestionCorrectness'](_0x295590,_0x14f689,_0x464703||null,_0xe8e633),_0x295590['createdAt']=_0x5a3ba2['createdAt'],_0x295590[_0x4070('0x7f')]=!0x0,_0xc56e92&&_0xc56e92[_0x4070('0x117')]){const _0x27adc8=_0xc56e92[_0x4070('0x117')],_0x402770=this['_getExternalAuthor'](_0x27adc8['authorName']);_0x295590[_0x4070('0x61')]=_0x27adc8[_0x4070('0x115')],_0x295590[_0x4070('0x124')]=_0x402770,_0x295590[_0x4070('0x99')]=!0x0;}else _0x295590[_0x4070('0x61')]=_0x5a3ba2[_0x4070('0x115')];switch(_0x5a3ba2[_0x4070('0x78')]&&(_0x295590[_0x4070('0x78')]=_0x5a3ba2['data']),_0x5a3ba2['attributes']&&(_0x295590[_0x4070('0xb7')]=_0x5a3ba2[_0x4070('0xb7')]),this[_0x4070('0x36')]&&this[_0x4070('0x36')]['addSuggestion']||(_0x295590[_0x4070('0xd2')]=!0x0),this[_0x4070('0x5c')][_0x4070('0x54')](_0x295590)){case'notReady':this[_0x4070('0x5c')]['set'](_0x295590,_0x4070('0x12e'));break;case _0x4070('0x11d'):_0x295590[_0x4070('0x85')]?(this['_refreshSuggestionsChain'](new Set([_0x295590])),this[_0x4070('0x110')](new Set([_0x295590])),this[_0x4070('0x5c')]['set'](_0x295590,_0x4070('0x21')),this[_0x4070('0xb3')]('suggestionLoaded',_0x295590)):this[_0x4070('0x5c')][_0x4070('0x13a')](_0x295590,_0x4070('0x105'));}return _0x295590;}[_0x4070('0x57')](_0x2fb97a){this[_0x4070('0x6f')](()=>{this[_0x4070('0xab')][_0x4070('0xbe')][_0x4070('0x113')](()=>{for(const _0x4fbdab of _0x2fb97a[_0x4070('0xec')]())_0x4fbdab[_0x4070('0x129')]();});});}[_0x4070('0x8a')](_0x3ff379){this[_0x4070('0x6f')](()=>{this['editor'][_0x4070('0xbe')]['change'](()=>{for(const _0x3ad29b of _0x3ff379[_0x4070('0xec')]())_0x3ad29b[_0x4070('0xdd')]();});});}['enableCommand'](_0x4d574c,_0x2068c2){const _0x2c21bb=this[_0x4070('0xab')][_0x4070('0x76')][_0x4070('0x54')](_0x4d574c);if(!_0x2c21bb)throw new _0xe2c45('track-changes-command-not-found',this,{'commandName':_0x4d574c});this[_0x4070('0x83')][_0x4070('0xd8')](_0x2c21bb),_0x2068c2&&_0x2c21bb['on'](_0x4070('0x5'),(_0x4e31d1,_0x220c51)=>{this[_0x4070('0x0')][_0x4070('0xc9')]&&(this[_0x4070('0x90')]||_0x220c51[_0x4070('0x79')]>0x0&&_0x220c51[_0x220c51['length']-0x1]&&_0x220c51[_0x220c51['length']-0x1][_0x4070('0x6f')]||(_0x2068c2((..._0x4d7be8)=>_0x2c21bb[_0x4070('0x5')](..._0x4d7be8,{'forceDefaultExecution':!0x0}),..._0x220c51),_0x4e31d1[_0x4070('0x11b')]()));},{'priority':_0x4070('0x33')});}['forceDefaultExecution'](_0x4fe1d8){let _0x48db2c,_0x156c1f;const _0x13308d=this[_0x4070('0x90')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x48db2c=_0x4fe1d8();}catch(_0xa34a7){_0x156c1f=_0xa34a7;}return _0x13308d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x156c1f&&_0xe2c45[_0x4070('0xd0')](_0x156c1f,this),_0x48db2c;}[_0x4070('0x34')](_0x366506,_0x1f552f=null,_0x5f27db={}){if(_0x366506[_0x4070('0x3d')])return null;const _0x31f091=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'];for(const {suggestion:_0x3236e7,meta:_0x34f5cf}of this[_0x4070('0x98')](_0x366506,_0x4070('0x9b')))if(_0x34f5cf[_0x4070('0xc8')]){if(!_0x34f5cf[_0x4070('0xf0')]){if(_0x34f5cf['containsRangeInObject']){if(!this[_0x4070('0x6d')]||!Ut(_0x3236e7,_0x5f27db))continue;return _0x3236e7;}if(Ut(_0x3236e7,_0x5f27db))return _0x3236e7;this[_0x4070('0x4e')](_0x3236e7,_0x366506[_0x4070('0xe6')],_0x366506['end']);break;}if(_0x1f552f==_0x3236e7['subType']&&Ut(_0x3236e7,_0x5f27db)){const _0x58a8ac=_0x3236e7['getFirstRange']();return _0x58a8ac[_0x4070('0xe6')]['isEqual'](_0x366506[_0x4070('0x39')])?this[_0x4070('0xd5')](_0x3236e7,this[_0x4070('0x58')]['createRange'](_0x366506[_0x4070('0xe6')],_0x58a8ac[_0x4070('0x39')])):this['_setSuggestionRange'](_0x3236e7,this['_model'][_0x4070('0x10a')](_0x58a8ac[_0x4070('0xe6')],_0x366506[_0x4070('0x39')])),_0x3236e7;}}const _0x508e1f=_0x2cecee(),_0x174561=_0x31f091['id'],_0x211097=_0x1f552f?_0x4070('0x130')+_0x1f552f:_0x4070('0x9b'),_0x3cab65=this[_0x4070('0xeb')]({'id':_0x508e1f,'type':_0x211097,'createdAt':new Date(),'authorId':_0x174561,'attributes':_0x5f27db});return this['_addSuggestionMarker'](_0x211097,_0x508e1f,_0x174561,_0x366506),_0x3cab65;}[_0x4070('0xf8')](_0x10f0c1,_0xc9daee=_0x4070('0x11e'),_0x39aee3={}){const _0x1e9317=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x1623bf=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0x9b'),_0xc9daee,_0x4070('0x11a'));for(const _0x845c6b of this[_0x4070('0xc3')]())if(_0x845c6b[_0x4070('0x124')]['id']==_0x1e9317['id']&&_0x4070('0x9b')==_0x845c6b[_0x4070('0xef')]&&_0x845c6b['subType']==_0xc9daee&&Ut(_0x845c6b,_0x39aee3)&&(_0x1623bf(_0x845c6b[_0x4070('0x5b')](),_0x10f0c1)||_0x1623bf(_0x10f0c1,_0x845c6b[_0x4070('0x5b')]()))){for(const _0x2521db of _0x10f0c1)_0x845c6b['addRange'](_0x2521db);return _0x845c6b;}for(const {suggestion:_0x62ff15,meta:_0x3a770d}of this['_findSuggestions'](_0x10f0c1,'insertion')){if(!_0x3a770d[_0x4070('0xc8')])continue;if(!this[_0x4070('0x6d')]&&_0x3a770d[_0x4070('0xf')])continue;if(!Ut(_0x62ff15,_0x39aee3))continue;let _0x492700=!0x0;for(const _0xc0a056 of _0x62ff15['getRanges']())for(const _0x5559ec of _0x10f0c1)if(!_0xc0a056[_0x4070('0x8d')](_0x5559ec)){_0x492700=!0x1;break;}if(_0x492700)return _0x62ff15;}const _0x2ecb7a=_0x2cecee(),_0x595515=_0x1e9317['id'],_0x4e0fad=_0x4070('0x130')+_0xc9daee,_0x5d9589=this[_0x4070('0xeb')]({'id':_0x2ecb7a,'type':_0x4e0fad,'createdAt':new Date(),'authorId':_0x595515,'attributes':_0x39aee3});for(const _0x59946a of _0x10f0c1)this[_0x4070('0x53')](_0x4e0fad,_0x2ecb7a,_0x595515,_0x59946a,_0x4062b9[_0x4070('0xf7')]());return _0x5d9589;}[_0x4070('0x9e')](_0x51c426,_0xfc33e3,_0x297829=null,_0x2df5e8={}){if(_0x297829=_0x297829||$t(_0xfc33e3),_0x51c426[_0x4070('0x3d')])return null;if(_0x4070('0xe0')===this['_trackFormatChanges']){const _0x265527=this[_0x4070('0xb4')][_0x4070('0x28')]('formatInline',_0x297829,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x265527([_0x51c426],_0xfc33e3,_0x2df5e8)),null;}const _0x156e16=this['editor'][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x401701=[];if(_0x4070('0xc5')!==this[_0x4070('0x114')])for(const {suggestion:_0xa9378d,meta:_0x433f26}of this[_0x4070('0x98')](_0x51c426,_0x4070('0x9b')))_0x433f26[_0x4070('0xc8')]&&!_0x433f26['isInsideObject']&&_0x401701[_0x4070('0xc1')](..._0xa9378d[_0x4070('0x5b')]());const _0x5c4f50=function(_0x59ec1a,_0x4fda0b){const _0x152629=[];for(const _0xffc811 of _0x4fda0b){const _0x48d3ac=_0x59ec1a['getIntersection'](_0xffc811);_0x48d3ac&&_0x152629['push'](_0x48d3ac);}return _0x152629;}(_0x51c426,_0x401701),_0x4af59d=function(_0x5dfab9,_0x31c0de){const _0x1e6111=[_0x5dfab9];for(const _0x409191 of _0x31c0de){let _0x239128=0x0;for(;_0x239128<_0x1e6111[_0x4070('0x79')];){const _0x1497a3=_0x1e6111[_0x239128][_0x4070('0xbd')](_0x409191);_0x1e6111[_0x4070('0x10f')](_0x239128,0x1,..._0x1497a3),_0x239128+=_0x1497a3[_0x4070('0x79')];}}return _0x1e6111;}(_0x51c426,_0x401701);_0x5c4f50['length']&&this['_model'][_0x4070('0x113')](()=>{for(const _0x9aa1d5 of _0x5c4f50){const _0x3306fd=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0x123'),_0x297829,_0x4070('0x129'));this[_0x4070('0x6f')](()=>_0x3306fd([_0x9aa1d5],_0xfc33e3,_0x2df5e8));}});for(const _0x4fcc37 of _0x4af59d){let _0x30c8fe=null,_0x1caa73=_0x4fcc37[_0x4070('0xe6')],_0x1b7034=_0x4fcc37[_0x4070('0x39')];for(const {suggestion:_0x19de29,meta:_0x54f427}of this[_0x4070('0x98')](_0x4fcc37,_0x4070('0x123'))){if(!_0x54f427[_0x4070('0xc8')])continue;if(_0x19de29[_0x4070('0x97')]!=_0x297829)continue;if(!Ut(_0x19de29,_0x2df5e8))continue;const _0x3c41e7=_0x19de29[_0x4070('0xcc')]();if(_0x3c41e7['containsRange'](_0x4fcc37,!0x0))return null;_0x1caa73=_0x1caa73[_0x4070('0x108')](_0x3c41e7[_0x4070('0xe6')])?_0x1caa73:_0x3c41e7[_0x4070('0xe6')],_0x1b7034=_0x1b7034['isAfter'](_0x3c41e7[_0x4070('0x39')])?_0x1b7034:_0x3c41e7[_0x4070('0x39')],_0x30c8fe?_0x3c41e7[_0x4070('0xe6')][_0x4070('0x108')](_0x30c8fe['getFirstRange']()[_0x4070('0xe6')])?(_0x30c8fe[_0x4070('0x1d')](),_0x30c8fe=_0x19de29):_0x19de29[_0x4070('0x1d')]():_0x30c8fe=_0x19de29;}const _0x5043cd=this['_model'][_0x4070('0x10a')](_0x1caa73,_0x1b7034);if(_0x30c8fe)this[_0x4070('0xd5')](_0x30c8fe,_0x5043cd);else{const _0x1f044a=_0x2cecee(),_0x309c75=_0x156e16['id'];this[_0x4070('0xeb')]({'id':_0x1f044a,'type':'formatInline:'+_0x297829,'data':_0xfc33e3,'createdAt':new Date(),'authorId':_0x309c75,'attributes':_0x2df5e8}),this[_0x4070('0x53')]('formatInline:'+_0x297829,_0x1f044a,_0x309c75,_0x5043cd);}}return null;}['markBlockFormat'](_0x4b2395,_0x528739,_0x4e020b=[],_0x238f3d=null,_0x2b4bf7={}){_0x528739[_0x4070('0x43')]||(_0x528739[_0x4070('0x43')]=_0x528739['commandName']),_0x528739['multipleBlocks']=_0x4b2395['is']('range'),_0x238f3d=_0x238f3d||$t(_0x528739);const _0x125239=_0x4e020b[_0x4070('0x12f')](_0x8fc462=>Rt(_0x8fc462,this[_0x4070('0x58')])),_0x21ba3d=_0x4b2395['is'](_0x4070('0x17'))?_0x4b2395:Rt(_0x4b2395,this[_0x4070('0x58')]);if(_0x4070('0xe0')===this[_0x4070('0x114')]){const _0xcc5d07=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0xbf'),_0x238f3d,_0x4070('0x129'));return this['forceDefaultExecution'](()=>_0xcc5d07([_0x21ba3d],_0x528739,_0x2b4bf7)),null;}_0x125239[_0x4070('0xc1')](_0x21ba3d);let _0x430044=!0x0;for(const _0x4c98a0 of _0x125239)if(!this['_rangeIsInLocalUserInsertion'](_0x4c98a0)){_0x430044=!0x1;break;}if(_0x430044&&'always'!==this[_0x4070('0x114')]){const _0x3783bd=this['_suggestionFactory']['getSuggestionCallback'](_0x4070('0xbf'),_0x238f3d,'accept');return this['forceDefaultExecution'](()=>_0x3783bd([_0x21ba3d],_0x528739,_0x2b4bf7)),null;}let _0x176a39=null,_0x14fac7=_0x21ba3d[_0x4070('0xe6')],_0x184846=_0x21ba3d[_0x4070('0x39')];for(const {suggestion:_0x14897f,meta:_0x122750}of this[_0x4070('0x98')](_0x21ba3d,_0x4070('0xbf'))){if(!_0x122750[_0x4070('0xc8')])continue;if(_0x122750[_0x4070('0xf0')]||_0x122750[_0x4070('0xf')]||_0x122750[_0x4070('0x67')])continue;if(_0x14897f['data'][_0x4070('0x43')]!=_0x528739[_0x4070('0x43')])continue;if(!Ut(_0x14897f,_0x2b4bf7))continue;const _0x49f726=_0x14897f[_0x4070('0xcc')]();if(_0x14897f[_0x4070('0x97')]==_0x238f3d){if(_0x49f726[_0x4070('0x8d')](_0x21ba3d,!0x0))return null;_0x14fac7=_0x14fac7[_0x4070('0x108')](_0x49f726[_0x4070('0xe6')])?_0x14fac7:_0x49f726[_0x4070('0xe6')],_0x184846=_0x184846[_0x4070('0x122')](_0x49f726[_0x4070('0x39')])?_0x184846:_0x49f726[_0x4070('0x39')],_0x176a39?_0x49f726[_0x4070('0xe6')][_0x4070('0x108')](_0x176a39[_0x4070('0xcc')]()[_0x4070('0xe6')])?(_0x176a39[_0x4070('0x1d')](),_0x176a39=_0x14897f):_0x14897f[_0x4070('0x1d')]():_0x176a39=_0x14897f;}else{const _0x2884c6=_0x21ba3d[_0x4070('0x11')](_0x49f726);this[_0x4070('0x2e')](_0x14897f,_0x2884c6);}}const _0xb00479=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x54e60c=_0x2cecee(),_0xcf5f1e=_0xb00479['id'];if(_0x176a39)return this['_setSuggestionRange'](_0x176a39,this[_0x4070('0x58')]['createRange'](_0x14fac7,_0x184846)),_0x176a39;{const _0x23a781=this[_0x4070('0xeb')]({'id':_0x54e60c,'type':'formatBlock:'+_0x238f3d,'data':_0x528739,'createdAt':new Date(),'authorId':_0xcf5f1e,'attributes':_0x2b4bf7});return this[_0x4070('0x53')]('formatBlock:'+_0x238f3d,_0x54e60c,_0xcf5f1e,this[_0x4070('0x58')][_0x4070('0x10a')](_0x14fac7,_0x184846)),_0x23a781;}}[_0x4070('0x71')](_0x4e3b67,_0x1852d1,_0x8fa20d=[],_0x38d0f8=null,_0x7bfc70={}){_0x1852d1[_0x4070('0x43')]||(_0x1852d1[_0x4070('0x43')]=_0x1852d1['commandName']);const _0x593ae2=_0x4e3b67[0x0];_0x1852d1['multipleBlocks']=_0x593ae2['is'](_0x4070('0x17')),_0x38d0f8=_0x38d0f8||$t(_0x1852d1);const _0x5f55ae=_0x8fa20d[_0x4070('0x12f')](_0x4e80ba=>Rt(_0x4e80ba,this[_0x4070('0x58')])),_0x25f0f1=_0x593ae2['is'](_0x4070('0x17'))?_0x4e3b67:_0x4e3b67[_0x4070('0x12f')](_0x54aaed=>Rt(_0x54aaed,this[_0x4070('0x58')]));if(_0x4070('0xe0')===this[_0x4070('0x114')]){const _0x2104e7=this[_0x4070('0xb4')][_0x4070('0x28')]('formatBlock',_0x38d0f8,_0x4070('0x129'));return this['forceDefaultExecution'](()=>_0x2104e7(_0x25f0f1,_0x1852d1,_0x7bfc70)),null;}_0x5f55ae[_0x4070('0xc1')](..._0x25f0f1);let _0x37622e=!0x0;for(const _0x335c29 of _0x5f55ae)if(!this[_0x4070('0x10b')](_0x335c29)){_0x37622e=!0x1;break;}if(_0x37622e&&_0x4070('0xc5')!==this['_trackFormatChanges']){const _0x99a3f=this['_suggestionFactory'][_0x4070('0x28')](_0x4070('0xbf'),_0x38d0f8,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x99a3f(_0x25f0f1,_0x1852d1,_0x7bfc70)),null;}const _0xabf3d5=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'];for(const _0x25f6e6 of this[_0x4070('0xc3')]()){if(_0x25f6e6[_0x4070('0x124')]['id']!=_0xabf3d5['id'])continue;if(_0x4070('0xbf')!=_0x25f6e6[_0x4070('0xef')]||_0x25f6e6[_0x4070('0x78')][_0x4070('0x43')]!=_0x1852d1['formatGroupId'])continue;if(!Ut(_0x25f6e6,_0x7bfc70))continue;const _0x49a375=_0x25f6e6[_0x4070('0x97')]==_0x38d0f8;for(let _0x282146=0x0;_0x282146<_0x25f0f1[_0x4070('0x79')];_0x282146++){const _0x32132e=_0x25f0f1[_0x282146];for(const _0x4f4c2b of _0x25f6e6['getMarkers']()){const _0x4d439b=_0x4f4c2b[_0x4070('0xbc')]();if(_0x32132e['isEqual'](_0x4d439b)){_0x49a375?(_0x25f0f1[_0x4070('0x10f')](_0x282146,0x1),_0x282146--):_0x25f6e6[_0x4070('0x1c')](_0x4f4c2b[_0x4070('0xe4')]);break;}}}}if(0x0==_0x25f0f1[_0x4070('0x79')])return null;const _0x4f7de8=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0xbf'),_0x38d0f8,_0x4070('0x11a'));for(const _0x186e62 of this[_0x4070('0xc3')]())if(_0x186e62[_0x4070('0x124')]['id']==_0xabf3d5['id']&&_0x4070('0xbf')==_0x186e62['type']&&_0x186e62[_0x4070('0x78')][_0x4070('0x43')]==_0x1852d1[_0x4070('0x43')]&&_0x186e62[_0x4070('0x97')]==_0x38d0f8&&Ut(_0x186e62,_0x7bfc70)&&(_0x4f7de8(_0x186e62[_0x4070('0x5b')](),_0x25f0f1)||_0x4f7de8(_0x25f0f1,_0x186e62[_0x4070('0x5b')]()))){for(const _0x58498c of _0x25f0f1)_0x186e62[_0x4070('0xdb')](_0x58498c);return _0x186e62;}const _0x3bb946=_0x2cecee(),_0x4b3c4c=_0xabf3d5['id'],_0xb63def=_0x4070('0xd4')+_0x38d0f8,_0x480165=this[_0x4070('0xeb')]({'id':_0x3bb946,'type':_0xb63def,'data':_0x1852d1,'createdAt':new Date(),'authorId':_0x4b3c4c,'attributes':_0x7bfc70});for(const _0x21ed19 of _0x25f0f1)this[_0x4070('0x53')](_0xb63def,_0x3bb946,_0x4b3c4c,_0x21ed19,_0x4062b9[_0x4070('0xf7')]());return _0x480165;}[_0x4070('0xe5')](_0x1bef51,_0x349ed4=null,_0x1680d1={}){if(_0x1bef51[_0x4070('0x3d')])return null;const _0x1434fb=this[_0x4070('0xab')]['plugins'][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x4d5cc2=new _0xa146d2(_0x1bef51['start'],_0x1bef51[_0x4070('0x39')]);for(const {suggestion:_0x46e1b2,meta:_0x5038fb}of this[_0x4070('0x98')](_0x4d5cc2,_0x4070('0x9b')))if(_0x5038fb[_0x4070('0xc8')]&&!_0x5038fb[_0x4070('0xf0')]){if(_0x46e1b2[_0x4070('0x62')]){const _0x4dcfc3=_0x46e1b2[_0x4070('0x5b')]()[_0x4070('0x112')](_0x5a4078=>_0x4070('0xa9')!=_0x5a4078[_0x4070('0xa4')][_0x4070('0x5f')]);_0x4dcfc3[_0x4070('0x64')](_0x15582c=>_0x4d5cc2['containsRange'](_0x15582c,!0x0))&&_0x46e1b2['discard']();if(_0x4dcfc3[_0x4070('0x60')](_0x49ac48=>_0x49ac48[_0x4070('0x8d')](_0x4d5cc2,!0x0))){const _0x1bb99e=this['_suggestionFactory']['getSuggestionCallback'](_0x4070('0x1'),_0x349ed4,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x1bb99e([_0x4d5cc2],null,_0x1680d1)),null;}}else{const _0x54511d=_0x4d5cc2['getIntersection'](_0x46e1b2['getFirstRange']());null!==_0x54511d&&_0x46e1b2[_0x4070('0x125')]([_0x54511d],null,_0x1680d1);}}if(_0x4d5cc2[_0x4070('0x18')](),_0x4d5cc2[_0x4070('0x3d')]||_0x4070('0xa9')==_0x4d5cc2[_0x4070('0xa4')][_0x4070('0x5f')])return null;let _0x2a17fe=null,_0x1d4862=_0x4d5cc2[_0x4070('0xe6')],_0x382eb5=_0x4d5cc2['end'];const _0x216bdb=this[_0x4070('0x98')](_0x4d5cc2,_0x4070('0x1'));for(const {suggestion:_0xa5727,meta:_0x1b4417}of _0x216bdb){const _0x405cdf=this[_0x4070('0x58')][_0x4070('0x10a')](_0x1d4862,_0x382eb5);if(_0x1b4417[_0x4070('0xc8')]&&(this[_0x4070('0x6d')]||!_0x1b4417[_0x4070('0xf')]&&!_0x1b4417[_0x4070('0x67')])){if(_0xa5727[_0x4070('0x62')]){if(!Ut(_0xa5727,_0x1680d1))continue;let _0x164328=!0x0;for(const _0x903cd1 of _0xa5727[_0x4070('0x5b')]()){if(_0x903cd1[_0x4070('0x8d')](_0x405cdf,!0x0))return _0xa5727;_0x405cdf[_0x4070('0x8d')](_0x903cd1)||(_0x164328=!0x1);}_0x164328&&_0xa5727[_0x4070('0xdd')]();}else{const _0x45567c=_0xa5727['getFirstRange']();if(_0x45567c[_0x4070('0x8d')](_0x405cdf,!0x0))return _0xa5727;if(!Ut(_0xa5727,_0x1680d1)){_0x405cdf[_0x4070('0x8d')](_0x45567c)?_0xa5727[_0x4070('0x1d')]():_0x45567c[_0x4070('0x87')](_0x1d4862)?_0x1d4862=_0x45567c[_0x4070('0x39')]:_0x45567c[_0x4070('0x87')](_0x382eb5)&&(_0x382eb5=_0x45567c[_0x4070('0xe6')]);continue;}_0x1d4862=_0x1d4862['isBefore'](_0x45567c['start'])?_0x1d4862:_0x45567c[_0x4070('0xe6')],_0x382eb5=_0x382eb5[_0x4070('0x122')](_0x45567c[_0x4070('0x39')])?_0x382eb5:_0x45567c[_0x4070('0x39')],_0x1680d1=Object[_0x4070('0xd6')]({},_0xa5727[_0x4070('0xb7')]),_0x2a17fe?_0x45567c[_0x4070('0xe6')][_0x4070('0x108')](_0x2a17fe[_0x4070('0xcc')]()[_0x4070('0xe6')])?(_0x2a17fe['removeMarkers'](),_0x2a17fe=_0xa5727):_0xa5727[_0x4070('0x1d')]():_0x2a17fe=_0xa5727;}}}if(_0x2a17fe)return this[_0x4070('0xd5')](_0x2a17fe,this[_0x4070('0x58')]['createRange'](_0x1d4862,_0x382eb5)),_0x2a17fe;{const _0x3380fe=_0x2cecee(),_0x5d4d18=this[_0x4070('0x58')]['createRange'](_0x1d4862,_0x382eb5),_0x45a734=_0x1434fb['id'],_0x2245c8=_0x349ed4?'deletion:'+_0x349ed4:'deletion',_0x48626c=this[_0x4070('0xeb')]({'id':_0x3380fe,'type':_0x2245c8,'createdAt':new Date(),'authorId':_0x45a734,'attributes':_0x1680d1});return this[_0x4070('0x53')](_0x2245c8,_0x3380fe,_0x45a734,_0x5d4d18),_0x48626c;}}['markMultiRangeDeletion'](_0x4ad8b3,_0x439243=_0x4070('0x11e'),_0x58e5c2={}){const _0x35934d=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')]('Users')['me'],_0x31163f=_0x4ad8b3[_0x4070('0x12f')](_0x13362d=>new _0xa146d2(_0x13362d[_0x4070('0xe6')],_0x13362d[_0x4070('0x39')])),_0x763d1f=new Set();for(const {suggestion:_0x2c0826,meta:_0xcff323}of this[_0x4070('0x98')](_0x31163f,_0x4070('0x9b')))_0xcff323[_0x4070('0xc8')]&&!_0xcff323['isNextTo']&&_0x763d1f[_0x4070('0xd8')](_0x2c0826);for(const _0x5900d3 of _0x763d1f)if(_0x5900d3[_0x4070('0x62')]){const _0x1ec2ca=_0x5900d3[_0x4070('0x5b')]();(!_0x5900d3[_0x4070('0xb7')]||!_0x5900d3[_0x4070('0xb7')][_0x4070('0x86')])&&(_0x1ec2ca[_0x4070('0x64')](_0x339c3e=>_0x31163f[_0x4070('0x60')](_0x27260d=>_0x27260d[_0x4070('0x8d')](_0x339c3e,!0x0)))&&_0x5900d3['discard']());if(_0x31163f[_0x4070('0x64')](_0x28fa95=>_0x1ec2ca['some'](_0x226a76=>_0x226a76[_0x4070('0x8d')](_0x28fa95,!0x0)))){const _0x121d93=this['_suggestionFactory'][_0x4070('0x28')](_0x4070('0x1'),_0x439243,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x121d93(_0x4ad8b3,null,_0x58e5c2)),null;}}else{const _0x135bc1=_0x5900d3['getFirstRange']();_0x31163f[_0x4070('0x60')](_0x244b8c=>_0x244b8c[_0x4070('0x8d')](_0x135bc1,!0x0))&&_0x5900d3['discard']();if(_0x31163f[_0x4070('0x64')](_0x2c372a=>_0x135bc1[_0x4070('0x8d')](_0x2c372a,!0x0))){const _0x14f8b5=this['_suggestionFactory'][_0x4070('0x28')]('deletion',_0x439243,'accept');return this['forceDefaultExecution'](()=>_0x14f8b5(_0x31163f,null,_0x58e5c2)),null;}}const _0x592e1c=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0x1'),_0x439243,_0x4070('0x11a'));let _0x1fb6f6=null;for(const _0x1bfcdc of this['getSuggestions']())if(_0x1bfcdc['author']['id']==_0x35934d['id']&&_0x1bfcdc['isInContent']&&'deletion'==_0x1bfcdc[_0x4070('0xef')]&&_0x1bfcdc[_0x4070('0x97')]==_0x439243&&Ut(_0x1bfcdc,_0x58e5c2)&&(_0x592e1c(_0x1bfcdc[_0x4070('0x5b')](),_0x31163f)||_0x592e1c(_0x31163f,_0x1bfcdc['getRanges']()))){if(_0x1fb6f6){if(_0x1bfcdc[_0x4070('0x2d')]&&_0x1bfcdc[_0x4070('0x2d')]['length'])continue;for(const _0x361dee of _0x1bfcdc[_0x4070('0x5b')]())_0x1fb6f6[_0x4070('0xc2')](_0x361dee)||_0x1fb6f6[_0x4070('0xdb')](_0x361dee);_0x1bfcdc['removeMarkers']();}else{_0x1fb6f6=_0x1bfcdc;for(const _0x3d4874 of _0x31163f)_0x1bfcdc[_0x4070('0xc2')](_0x3d4874)||_0x1bfcdc[_0x4070('0xdb')](_0x3d4874);}}if(_0x1fb6f6)return _0x1fb6f6;_0x763d1f[_0x4070('0xea')]();for(const {suggestion:_0x54c0f8,meta:_0x4dbc24}of this[_0x4070('0x98')](_0x31163f,_0x4070('0x1')))_0x4dbc24[_0x4070('0xc8')]&&(this[_0x4070('0x6d')]||!_0x4dbc24[_0x4070('0xf')]&&!_0x4dbc24[_0x4070('0x67')])&&Ut(_0x54c0f8,_0x58e5c2)&&_0x763d1f[_0x4070('0xd8')](_0x54c0f8);for(const _0x469af5 of _0x763d1f){const _0x1cb97a=_0x469af5[_0x4070('0x5b')]();if(!_0x58e5c2||!_0x58e5c2[_0x4070('0x86')]){if(_0x31163f['every'](_0x152370=>_0x1cb97a[_0x4070('0x60')](_0x13fe71=>_0x13fe71[_0x4070('0x8d')](_0x152370,!0x0))))return _0x469af5;}(!_0x469af5['attributes']||!_0x469af5[_0x4070('0xb7')][_0x4070('0x86')])&&(_0x1cb97a[_0x4070('0x64')](_0x26ae91=>_0x31163f['some'](_0x15b7e6=>_0x15b7e6[_0x4070('0x8d')](_0x26ae91,!0x0)))&&_0x469af5[_0x4070('0xdd')]());}const _0x3c97dd=_0x2cecee(),_0x1b1aff=_0x35934d['id'],_0x101bb5=_0x4070('0x127')+_0x439243,_0x25c076=this[_0x4070('0xeb')]({'id':_0x3c97dd,'type':_0x101bb5,'createdAt':new Date(),'authorId':_0x1b1aff,'attributes':_0x58e5c2});for(const _0x3021aa of _0x31163f)_0x3021aa['detach'](),_0x3021aa[_0x4070('0x3d')]||_0x4070('0xa9')==_0x3021aa['root']['rootName']||this[_0x4070('0x53')](_0x101bb5,_0x3c97dd,_0x1b1aff,_0x3021aa,_0x4062b9[_0x4070('0xf7')]());return _0x25c076;}[_0x4070('0xd5')](_0x206483,_0x1c6919){const _0x84ed7b=_0x206483[_0x4070('0x91')]();this['_model'][_0x4070('0x113')](_0x3de92b=>{_0x3de92b[_0x4070('0x1f')](_0x84ed7b,{'range':_0x1c6919});});}[_0x4070('0x120')](_0x81f66a){const _0x3178a2=_0x81f66a['id'],_0x53df76=this['editor'][_0x4070('0x51')][_0x4070('0x54')](_0x4070('0xda'));this[_0x4070('0xf1')][_0x4070('0xa1')](_0x3178a2)||this[_0x4070('0xf1')][_0x4070('0x94')]({'channelId':_0x53df76,'threadId':_0x3178a2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x111af4=this[_0x4070('0xf1')][_0x4070('0x66')](_0x3178a2);_0x111af4[_0x4070('0x15')](_0x4070('0x45')),_0x111af4['isRemovable']=!0x1,_0x81f66a[_0x4070('0x2d')]=_0x111af4;}['_checkSuggestionCorrectness'](_0x738736,_0x1c5b4f,_0x264186,_0x19f27a){if(_0x738736[_0x4070('0xef')]!=_0x1c5b4f||_0x738736[_0x4070('0x97')]!=_0x264186||_0x738736[_0x4070('0x6b')]['id']!=_0x19f27a)throw this[_0x4070('0xab')][_0x4070('0xe9')]('track-changes-suggestion-data-mismatch'),new _0xe2c45(_0x4070('0xc'),this);}[_0x4070('0x2e')](_0x4a3551,_0x2ea9a2){const _0x5e6966=_0x4a3551['getFirstRange']();if(_0x2ea9a2[_0x4070('0xfd')](_0x5e6966))_0x4a3551['removeMarkers']();else{if(_0x5e6966[_0x4070('0x8d')](_0x2ea9a2)){const _0xe87acc=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0xe6')][_0x4070('0xe2')],_0x4070('0x39'));this[_0x4070('0xd5')](_0x4a3551,this['_model']['createRange'](_0x5e6966[_0x4070('0xe6')],_0xe87acc));const _0x5117bf=_0x2cecee(),_0x33dd20=_0x4a3551[_0x4070('0x6b')]['id'],_0x4b1f89=_0x4a3551[_0x4070('0xef')]+':'+_0x4a3551[_0x4070('0x97')];this[_0x4070('0xeb')]({'id':_0x5117bf,'type':_0x4b1f89,'createdAt':new Date(),'authorId':_0x33dd20,'data':_0x4a3551['data'],'attributes':_0x4a3551[_0x4070('0xb7')]});const _0x5e0228=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0x39')]['parent'],'after'),_0x567fb2=this[_0x4070('0x58')][_0x4070('0x10a')](_0x5e0228,_0x5e6966[_0x4070('0x39')]);this[_0x4070('0x53')](_0x4b1f89,_0x5117bf,_0x33dd20,_0x567fb2);}else{if(_0x5e6966[_0x4070('0x87')](_0x2ea9a2[_0x4070('0xe6')])){const _0x22015c=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0xe6')]['nodeBefore'],'end');this[_0x4070('0xd5')](_0x4a3551,this[_0x4070('0x58')][_0x4070('0x10a')](_0x5e6966[_0x4070('0xe6')],_0x22015c));}else{const _0x5e5a2f=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0x39')][_0x4070('0xe3')],'after');this[_0x4070('0xd5')](_0x4a3551,this[_0x4070('0x58')]['createRange'](_0x5e5a2f,_0x5e6966[_0x4070('0x39')]));}}}}[_0x4070('0x10b')](_0x39f460){for(const {suggestion:_0x1586eb,meta:_0x57bc54}of this[_0x4070('0x98')](_0x39f460,_0x4070('0x9b'))){if(!_0x57bc54[_0x4070('0xc8')])continue;const _0x3ac7b2=_0x1586eb[_0x4070('0x5b')]();for(const _0x2e3891 of _0x3ac7b2)if(!_0x39f460[_0x4070('0xbd')](_0x2e3891)[_0x4070('0x79')])return!0x0;}return!0x1;}[_0x4070('0xf2')](_0x51bd8e){const _0x5ef549=this[_0x4070('0xab')][_0x4070('0x116')]['get'](_0x4070('0xd9'))[_0x4070('0x4f')](_0x51bd8e);if(!_0x5ef549)throw new _0xe2c45(_0x4070('0xed'),this);return _0x5ef549;}[_0x4070('0xf6')](_0x1560f1){const _0xbf8696=this['editor'][_0x4070('0x116')][_0x4070('0x54')]('Users'),_0x23a21b=_0x211e1a(_0x4070('0xbb')+_0x1560f1),_0x5ddaa0=_0xbf8696[_0x4070('0x4f')](_0x23a21b);return _0x5ddaa0||_0xbf8696[_0x4070('0x7d')]({'id':_0x23a21b,'name':_0x1560f1});}['_createSuggestion'](_0x9fe8d,_0x5785f1,_0x535874,_0x4edaa1,_0x32c654){const _0x3275ac=this[_0x4070('0xf2')](_0x4edaa1),_0x24da9f=this[_0x4070('0xb4')][_0x4070('0x133')](_0x9fe8d,_0x5785f1,_0x535874,_0x3275ac,_0x32c654,_0x4e26e2=>this[_0x4070('0x93')](_0x535874,{'attributes':_0x4e26e2}));return this[_0x4070('0x4')](_0x24da9f,'accept',()=>{this['_updateSuggestionData'](_0x535874,{'state':'accepted'});},{'priority':'high'}),this[_0x4070('0x4')](_0x24da9f,_0x4070('0xdd'),()=>{this['_updateSuggestionData'](_0x535874,{'state':_0x4070('0x74')});},{'priority':'high'}),this[_0x4070('0x41')]['set'](_0x535874,_0x24da9f),this[_0x4070('0x5c')][_0x4070('0x13a')](_0x24da9f,'notReady'),_0x24da9f;}[_0x4070('0x8c')](_0x263b73){const _0x1b0500=_0x263b73[_0x4070('0x3f')](':');return{'group':_0x1b0500[0x0],'type':_0x1b0500[0x1],'subType':_0x1b0500[_0x4070('0x79')]>=0x5?_0x1b0500[0x2]:null,'id':_0x1b0500[_0x4070('0x79')]<0x5?_0x1b0500[0x2]:_0x1b0500[0x3],'authorId':_0x1b0500['length']<0x5?_0x1b0500[0x3]:_0x1b0500[0x4],'markerCount':0x6==_0x1b0500[_0x4070('0x79')]?_0x1b0500[0x5]:null};}[_0x4070('0x4e')](_0x537905,_0x5efc8d,_0x3175ed){const _0x4e02f6=_0x537905[_0x4070('0xcc')](),_0x2a9436=_0x4e02f6[_0x4070('0xe6')],_0x449b55=_0x4e02f6[_0x4070('0x39')];this['_setSuggestionRange'](_0x537905,this[_0x4070('0x58')]['createRange'](_0x2a9436,_0x5efc8d));const _0x494e41=_0x2cecee(),_0x2e8b78=_0x537905[_0x4070('0x6b')]['id'],_0x56b9f0=_0x537905[_0x4070('0xef')]+(_0x537905[_0x4070('0x97')]?':'+_0x537905[_0x4070('0x97')]:'');this[_0x4070('0xeb')]({'id':_0x494e41,'type':_0x56b9f0,'createdAt':new Date(),'authorId':_0x2e8b78,'originalSuggestionId':_0x537905['id'],'attributes':_0x537905[_0x4070('0xb7')],'data':_0x537905[_0x4070('0x78')]}),'formatBlock'==_0x537905[_0x4070('0xef')]&&(_0x3175ed=this[_0x4070('0x58')][_0x4070('0xcd')](_0x3175ed[_0x4070('0xe3')])),this[_0x4070('0x53')](_0x56b9f0,_0x494e41,_0x2e8b78,this[_0x4070('0x58')][_0x4070('0x10a')](_0x3175ed,_0x449b55));}[_0x4070('0x98')](_0x16f099,_0x1e7536=null){const _0x33da88=[],_0x377c76=this['editor'][_0x4070('0x116')][_0x4070('0x54')]('Users')['me'];Array[_0x4070('0x136')](_0x16f099)||(_0x16f099=[_0x16f099]);for(const _0x31824f of this['getSuggestions']()){if(!_0x31824f['isInContent'])continue;if(_0x1e7536&&_0x31824f[_0x4070('0xef')]!=_0x1e7536)continue;let _0x2ad4bb=!0x1;for(const _0x435710 of _0x31824f[_0x4070('0x5b')]()){for(const _0x30c338 of _0x16f099){const _0x1f05c7=_0x30c338['start'][_0x4070('0xfd')](_0x435710[_0x4070('0x39')])||_0x30c338[_0x4070('0x39')][_0x4070('0xfd')](_0x435710[_0x4070('0xe6')]);if(_0x1f05c7||_0x30c338['getIntersection'](_0x435710)){const _0x41028a=_0x30c338['containsRange'](_0x435710)&&Bt(this[_0x4070('0x58')][_0x4070('0xe8')],_0x435710[_0x4070('0xe6')],_0x30c338),_0x104bf2=_0x435710[_0x4070('0x8d')](_0x30c338)&&Bt(this[_0x4070('0x58')][_0x4070('0xe8')],_0x30c338[_0x4070('0xe6')],_0x435710);_0x33da88['push']({'suggestion':_0x31824f,'meta':{'isOwn':_0x377c76==_0x31824f[_0x4070('0x124')],'isNextTo':_0x1f05c7,'isInsideObject':_0x41028a,'containsRangeInObject':_0x104bf2}}),_0x2ad4bb=!0x0;break;}}if(_0x2ad4bb)break;}}return _0x33da88;}[_0x4070('0x53')](_0x2959ba,_0x2f6f12,_0x16bdd4,_0x1b8d30,_0x36ed13){this[_0x4070('0x58')]['change'](_0x21b6f1=>{let _0x2543f7=_0x4070('0x25')+_0x2959ba+':'+_0x2f6f12+':'+_0x16bdd4;_0x36ed13&&(_0x2543f7=_0x2543f7+':'+_0x36ed13),_0x21b6f1[_0x4070('0x9d')](_0x2543f7,{'range':_0x1b8d30,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4070('0x26')](_0x34940e){const _0x5b7081=_0x34940e[_0x4070('0x5d')],_0x663026=_0x34940e[_0x4070('0x44')];_0x34940e[_0x4070('0x5d')]=null,null!=_0x5b7081&&(_0x5b7081[_0x4070('0x44')]=null),_0x34940e['next']=null,null!=_0x663026&&(_0x663026[_0x4070('0x5d')]=null),_0x4070('0x21')==this[_0x4070('0x5c')]['get'](_0x34940e)&&(this[_0x4070('0x5c')][_0x4070('0x13a')](_0x34940e,'removed'),this[_0x4070('0xb3')]('suggestionUnloaded',_0x34940e,_0x5b7081,_0x663026));}[_0x4070('0xeb')](_0x4b657a){const _0x20a1fc=_0x4b657a['id'],_0x397978=this[_0x4070('0xc0')](_0x4b657a);if(this[_0x4070('0x36')]&&this['_adapter'][_0x4070('0x138')]){const _0x51b378=this['editor'][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0x6a')),_0x2bcd5d=_0x397978[_0x4070('0x9a')],_0x3c00f4=_0x397978['subType']?_0x397978[_0x4070('0xef')]+':'+_0x397978['subType']:_0x397978['type'],_0xce573f=this[_0x4070('0xab')][_0x4070('0xd7')],_0x38d2f1=_0x51b378[_0x4070('0xd8')](_0xa532f(_0xce573f,_0x4070('0x46'))),_0x3944ec={'id':_0x20a1fc,'type':_0x3c00f4,'hasComments':_0x2bcd5d,'data':_0x4b657a['data']||null,'originalSuggestionId':_0x4b657a['originalSuggestionId']||null,'attributes':_0x397978[_0x4070('0xb7')]};this[_0x4070('0x36')][_0x4070('0x138')](_0x3944ec)[_0x4070('0xa0')](_0x562408=>{_0x397978[_0x4070('0xd2')]=!0x0,_0x51b378[_0x4070('0x77')](_0x38d2f1),_0x562408&&_0x562408[_0x4070('0x115')]&&(this['_suggestions'][_0x4070('0x54')](_0x20a1fc)[_0x4070('0x115')]=_0x562408[_0x4070('0x115')]);})[_0x4070('0x8e')](_0x582959=>{throw _0x2f3731('error-saving-suggestion-data-suggestion-discarded'),this[_0x4070('0xab')][_0x4070('0xbe')][_0x4070('0x70')]({'isUndoable':!0x1},()=>{_0x397978[_0x4070('0xdd')]();}),_0x397978[_0x4070('0x68')](),this[_0x4070('0x41')][_0x4070('0x75')](_0x397978['id']),this[_0x4070('0x5c')][_0x4070('0x75')](_0x397978),_0x582959;});}return _0x397978;}[_0x4070('0x93')](_0x779e7b,_0x4c0234){const _0x4fe699=this['editor']['plugins'][_0x4070('0x54')](_0x4070('0x6a')),_0x4abbdc=this[_0x4070('0x9f')](_0x779e7b);if(this['_adapter']&&this[_0x4070('0x36')][_0x4070('0x10c')]){if(_0x4abbdc[_0x4070('0xd2')]){const _0x430dca=_0x4fe699['add'](_0xa532f(this['editor'][_0x4070('0xd7')],'PENDING_ACTION_SUGGESTION'));this[_0x4070('0x36')][_0x4070('0x10c')](_0x779e7b,_0x4c0234)['then'](()=>{_0x4fe699[_0x4070('0x77')](_0x430dca);});}else _0x4abbdc['on']('change:_saved',()=>{this[_0x4070('0x93')](_0x779e7b,_0x4c0234);});}}[_0x4070('0x5a')](_0x188f70){if(!this['_adapter']||!this[_0x4070('0x36')][_0x4070('0x9f')])throw new _0xe2c45(_0x4070('0x100'),this);return this['_adapter'][_0x4070('0x9f')](_0x188f70);}[_0x4070('0x12c')](_0xb6ed49){const {id:_0x361235,type:_0x540b95,subType:_0x42110e,authorId:_0x235023}=this[_0x4070('0x8c')](_0xb6ed49),_0x19df79=this[_0x4070('0x41')][_0x4070('0x54')](_0x361235)||this['_createSuggestion'](_0x540b95,_0x42110e,_0x361235,_0x235023,{});switch(this[_0x4070('0x11c')](_0x19df79,_0x540b95,_0x42110e,_0x235023),this[_0x4070('0x5c')][_0x4070('0x54')](_0x19df79)){case _0x4070('0x27'):this[_0x4070('0x5a')](_0x361235)[_0x4070('0xa0')](_0x2e9399=>{let _0x22b4b2=Promise['resolve']();_0x2e9399['hasComments']&&(_0x22b4b2=this[_0x4070('0xf1')]['fetchCommentThread']({'channelId':this[_0x4070('0xab')][_0x4070('0x51')][_0x4070('0x54')](_0x4070('0xda')),'threadId':_0x361235})),_0x22b4b2[_0x4070('0xa0')](()=>{this[_0x4070('0xc0')](_0x2e9399)[_0x4070('0xd2')]=!0x0;});}),this[_0x4070('0x5c')][_0x4070('0x13a')](_0x19df79,_0x4070('0x11d'));break;case _0x4070('0x105'):this[_0x4070('0x93')](_0x361235,{'state':_0x4070('0x119')});case'dataReady':this[_0x4070('0x5c')][_0x4070('0x13a')](_0x19df79,_0x4070('0x21')),this[_0x4070('0xb3')](_0x4070('0xa'),_0x19df79);break;case'ready':this[_0x4070('0xb3')]('suggestionChanged',_0x19df79);}return _0x19df79[_0x4070('0x65')](_0xb6ed49),_0x19df79;}[_0x4070('0x104')](_0x133811){const _0x10f5a1=Array[_0x4070('0x31')](_0x133811)['filter'](_0x31d94f=>!_0x31d94f[_0x4070('0x62')]),_0x1ccf02=this[_0x4070('0xc3')]({'skipNotAttached':!0x0})[_0x4070('0x112')](_0x4dba69=>!_0x4dba69['isMultiRange']),_0x3cfdc3=_0x1ccf02['filter'](_0x1d564a=>!_0x133811['has'](_0x1d564a)),_0x12b3ec=new Map(_0x1ccf02['map'](_0x1255b1=>[_0x1255b1,this[_0x4070('0xb4')][_0x4070('0x28')](_0x1255b1[_0x4070('0xef')],_0x1255b1[_0x4070('0x97')],'chain')])),_0x17367b=new Map(_0x1ccf02['map'](_0x18444e=>[_0x18444e,_0x18444e[_0x4070('0xcc')]()])),_0xc3b27f=new Set(),_0x3fe609=new Set();for(let _0x506a38=0x0;_0x506a38<_0x10f5a1[_0x4070('0x79')];_0x506a38++)_0x2962ab(_0x10f5a1[_0x506a38],_0x10f5a1,_0x506a38+0x1);for(let _0x2be0c3=0x0;_0x2be0c3<_0x10f5a1[_0x4070('0x79')];_0x2be0c3++)_0x2962ab(_0x10f5a1[_0x2be0c3],_0x3cfdc3,0x0);for(let _0x5e32bf=0x0;_0x5e32bf<_0x10f5a1['length'];_0x5e32bf++){const _0x349138=_0x10f5a1[_0x5e32bf];!_0x3fe609['has'](_0x349138)&&_0x349138[_0x4070('0x5d')]&&(_0x349138['previous'][_0x4070('0x44')]===_0x349138&&(_0x349138[_0x4070('0x5d')][_0x4070('0x44')]=null),_0x349138[_0x4070('0x5d')]=null),!_0xc3b27f['has'](_0x349138)&&_0x349138[_0x4070('0x44')]&&(_0x349138['next']['previous']===_0x349138&&(_0x349138[_0x4070('0x44')][_0x4070('0x5d')]=null),_0x349138[_0x4070('0x44')]=null);}function _0x2962ab(_0x17c9e9,_0x3ea4b4,_0x2dd633){for(let _0x1b13e9=_0x2dd633;_0x1b13e9<_0x3ea4b4[_0x4070('0x79')];_0x1b13e9++){const _0x2bee26=_0x37cf47(_0x17c9e9,_0x3ea4b4[_0x1b13e9]);_0x2bee26&&(_0x2bee26[0x0]['next']=_0x2bee26[0x1],_0x2bee26[0x1][_0x4070('0x5d')]=_0x2bee26[0x0],_0xc3b27f[_0x4070('0xd8')](_0x2bee26[0x0]),_0x3fe609[_0x4070('0xd8')](_0x2bee26[0x1]));}}function _0x37cf47(_0x30d990,_0x51fae2){if(_0x30d990[_0x4070('0x124')]['id']!==_0x51fae2[_0x4070('0x124')]['id'])return null;const _0x10c494=_0x12b3ec[_0x4070('0x54')](_0x30d990)(_0x30d990,_0x51fae2,_0x17367b['get'](_0x30d990),_0x17367b[_0x4070('0x54')](_0x51fae2));if(!_0x10c494)return null;return _0x12b3ec['get'](_0x51fae2)(_0x30d990,_0x51fae2,_0x17367b[_0x4070('0x54')](_0x30d990),_0x17367b[_0x4070('0x54')](_0x51fae2))?_0x10c494[0x1][_0x4070('0x2d')]&&_0x10c494[0x1][_0x4070('0x2d')]['length']?null:_0x10c494:null;}}[_0x4070('0x110')](_0x532c0c){const _0x4cf27f=Array['from'](_0x532c0c),_0x5ebfad=this[_0x4070('0xc3')]({'skipNotAttached':!0x0}),_0x1e19a2=_0x5ebfad[_0x4070('0x112')](_0x15ba58=>!_0x532c0c[_0x4070('0x131')](_0x15ba58)),_0x1018fa=new Map(_0x4cf27f['map'](_0x350a84=>[_0x350a84,this[_0x4070('0xb4')][_0x4070('0x28')](_0x350a84[_0x4070('0xef')],_0x350a84[_0x4070('0x97')],_0x4070('0x11a'))])),_0x27ec52=new Map(_0x5ebfad[_0x4070('0x12f')](_0x2eecf9=>[_0x2eecf9,_0x2eecf9[_0x4070('0x5b')]()]));for(let _0x32a209=0x0;_0x32a209<_0x4cf27f[_0x4070('0x79')];_0x32a209++){if(_0x351558(this,_0x4cf27f[_0x32a209],_0x4cf27f,_0x32a209+0x1))return!0x0;}for(let _0x4f002f=0x0;_0x4f002f<_0x4cf27f[_0x4070('0x79')];_0x4f002f++){if(_0x351558(this,_0x4cf27f[_0x4f002f],_0x1e19a2,0x0))return!0x0;}return!0x1;function _0x351558(_0x3c9b7e,_0x183af7,_0x3937e7,_0x16be0b){for(let _0x2b0b72=_0x16be0b;_0x2b0b72<_0x3937e7[_0x4070('0x79')];_0x2b0b72++){const _0x4d491e=_0x3937e7[_0x2b0b72];if(_0x4d491e['type']!==_0x183af7['type']||_0x4d491e[_0x4070('0x124')]['id']!==_0x183af7['author']['id']||_0x4d491e[_0x4070('0x97')]!==_0x183af7[_0x4070('0x97')])continue;if(!xt(_0x183af7,_0x4d491e))continue;const _0x340b81=_0x1018fa[_0x4070('0x54')](_0x183af7),_0x9e5eb=_0x27ec52[_0x4070('0x54')](_0x183af7),_0x56bc44=_0x27ec52['get'](_0x4d491e),_0x211ce4=_0x183af7[_0x4070('0x2d')]&&_0x183af7['commentThread'][_0x4070('0x79')],_0x5f1b61=_0x4d491e[_0x4070('0x2d')]&&_0x4d491e['commentThread']['length'];if(!_0x211ce4&&_0x340b81(_0x56bc44,_0x9e5eb))return _0x3c9b7e[_0x4070('0x23')](_0x4d491e,_0x183af7),_0x27ec52['delete'](_0x183af7),!0x0;if(!_0x5f1b61&&_0x340b81(_0x9e5eb,_0x56bc44))return _0x3c9b7e['_joinSuggestions'](_0x183af7,_0x4d491e),_0x27ec52[_0x4070('0x75')](_0x4d491e),!0x0;}return!0x1;}}[_0x4070('0x23')](_0x570881,_0x4c4f6e){if(_0x570881['isMultiRange'])for(const _0x455fe0 of _0x4c4f6e[_0x4070('0x5b')]())_0x570881[_0x4070('0xdb')](_0x455fe0);else{const _0x2305c8=_0x4c4f6e[_0x4070('0xcc')]()[_0x4070('0x39')];this[_0x4070('0xd5')](_0x570881,this[_0x4070('0x58')][_0x4070('0x10a')](_0x570881['getFirstRange']()[_0x4070('0xe6')],_0x2305c8));}_0x4c4f6e[_0x4070('0x1d')]();}}class Dt{constructor(_0xe8c426){this[_0x4070('0x137')]=_0xe8c426,this[_0x4070('0x58')]=_0xe8c426[_0x4070('0xbe')],this[_0x4070('0x82')]=new Map(),this[_0x4070('0xf3')]=new Map(),this[_0x4070('0xc6')]();}[_0x4070('0x133')](_0x2bfd14,_0x2759f2,_0x4f446a,_0x4121be,_0x2196b8,_0x5b9b27){return new _0x4062b9(this[_0x4070('0x58')],{'type':_0x2bfd14,'subType':_0x2759f2,'id':_0x4f446a,'author':_0x4121be,'creator':_0x4121be,'attributes':_0x2196b8,'onAttributesChange':_0x5b9b27,'onAccept':(..._0x37a6b9)=>this[_0x4070('0x28')](_0x2bfd14,_0x2759f2,_0x4070('0x129'))(..._0x37a6b9),'onDiscard':(..._0xed1abf)=>this[_0x4070('0x28')](_0x2bfd14,_0x2759f2,'discard')(..._0xed1abf)});}[_0x4070('0x10d')](_0x3505b1,_0x4b0598,_0x1e80b8,_0x15e0e8){const _0x4d7f5c=_0x3505b1+':'+_0x4b0598+':'+_0x1e80b8;this['_customCallbacks']['set'](_0x4d7f5c,_0x15e0e8);}['getSuggestionCallback'](_0x1e04ec,_0x1638b8,_0x9bd225){const _0x11e23d=_0x1e04ec+':'+_0x1638b8+':'+_0x9bd225;return this[_0x4070('0x82')][_0x4070('0x54')](_0x11e23d)||this[_0x4070('0xf3')][_0x4070('0x54')](_0x1e04ec+':'+_0x9bd225);}[_0x4070('0xc6')](){const _0x365ce0=()=>!0x1,_0x3312e8=_0xec210b=>{_0xec210b[_0x4070('0xff')]((_0x5eda87,_0x5154a1)=>_0x5eda87[_0x4070('0xe6')]['isBefore'](_0x5154a1['start'])?0x1:-0x1),this[_0x4070('0x58')]['change'](_0x40f5ab=>{for(const _0x50a327 of _0xec210b){let _0x25049e;_0x25049e=_0x50a327['end'][_0x4070('0x40')]&&_0x50a327['end']['parent']==_0x50a327[_0x4070('0xe6')][_0x4070('0x42')]?_0x40f5ab[_0x4070('0x9')](_0x50a327['start'][_0x4070('0x42')],'on'):_0x40f5ab[_0x4070('0x9')](_0x50a327),this['_model'][_0x4070('0x126')](_0x25049e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b52bc=(_0x283b45,_0x2c6444)=>{this[_0x4070('0x58')]['change'](_0x4f6477=>{const {commandName:_0x20e1ae,commandParams:_0x1a3aa4=[]}=_0x2c6444,_0x10624f=_0x283b45[_0x4070('0x12f')](_0x3f5647=>(_t(_0x3f5647)&&(_0x3f5647=this['_model']['createRange'](_0x3f5647['end'])),_0x3f5647))[_0x4070('0x112')](_0x5d0b92=>_0x4070('0xa9')!==_0x5d0b92[_0x4070('0xa4')]['rootName']);if(_0x10624f[_0x4070('0x79')]<0x1)return;const _0x37f031=Array[_0x4070('0x31')](this['_model'][_0x4070('0xfa')][_0x4070('0x32')][_0x4070('0x5b')]())['map'](_0x284dbe=>_0xa146d2[_0x4070('0x5e')](_0x284dbe));_0x4f6477[_0x4070('0x48')](_0x10624f);for(const _0x446dfd of this[_0x4070('0x137')][_0x4070('0x76')][_0x4070('0x76')]())_0x446dfd['refresh']();_0x1a3aa4[_0x4070('0xc1')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4070('0x5')](_0x20e1ae,..._0x1a3aa4);const _0x24e765=_0x37f031['filter'](_0x667a97=>'$graveyard'!=_0x667a97[_0x4070('0xa4')]['rootName']);_0x24e765[_0x4070('0x79')]>0x0&&_0x4f6477[_0x4070('0x48')](_0x24e765);for(const _0x44b025 of _0x37f031)_0x44b025[_0x4070('0x18')]();});},_0x561ce0=(_0x4c88a9,_0x174745)=>0x1==_0x4c88a9[_0x4070('0x79')]&&0x1==_0x174745[_0x4070('0x79')]&&_0x4c88a9[0x0]['end'][_0x4070('0xfd')](_0x174745[0x0][_0x4070('0xe6')]),_0x12c53d=(_0x3e81f1,_0x103dca,_0x1a5862,_0xaf2d92)=>jt(_0x3e81f1,_0x103dca,_0x1a5862,_0xaf2d92,this[_0x4070('0x58')])?[_0x3e81f1,_0x103dca]:jt(_0x103dca,_0x3e81f1,_0xaf2d92,_0x1a5862,this[_0x4070('0x58')])?[_0x103dca,_0x3e81f1]:null;this[_0x4070('0xf3')][_0x4070('0x13a')]('insertion:accept',_0x365ce0),this['_defaultCallbacks']['set']('insertion:discard',_0x3312e8),this['_defaultCallbacks']['set'](_0x4070('0x84'),_0x561ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0x38'),_0x12c53d),this[_0x4070('0xf3')]['set'](_0x4070('0xa8'),_0x3312e8),this[_0x4070('0xf3')]['set'](_0x4070('0xb1'),_0x365ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0x2'),_0x561ce0),this[_0x4070('0xf3')][_0x4070('0x13a')]('deletion:chain',_0x12c53d),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0xee'),_0x3b52bc),this[_0x4070('0xf3')][_0x4070('0x13a')]('formatInline:discard',_0x365ce0),this['_defaultCallbacks'][_0x4070('0x13a')](_0x4070('0x12'),_0x561ce0),this[_0x4070('0xf3')]['set'](_0x4070('0x103'),_0x365ce0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3b52bc),this[_0x4070('0xf3')]['set'](_0x4070('0xad'),_0x365ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0xba'),_0x561ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0x2b'),_0x365ce0);}}function Bt(_0x9820a1,_0x1322b6,_0x303593){for(const _0x71b712 of _0x1322b6['parent'][_0x4070('0xdf')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x71b712['root']==_0x71b712)return!0x1;if(!_0x303593[_0x4070('0x95')](_0x71b712))return!0x1;if(_0x9820a1[_0x4070('0x8')](_0x71b712)||_0x9820a1['isLimit'](_0x71b712))return!0x0;}return!0x1;}function _t(_0x22b90d){return _0x22b90d[_0x4070('0x39')][_0x4070('0xe3')]==_0x22b90d[_0x4070('0xe6')]['nodeAfter']&&_0x22b90d['end'][_0x4070('0xde')];}function Mt(_0x59e324,_0xda6e9d,_0x4600a0,_0x1820a4){const _0x42e7e1=_0x43efd7=>!_0x43efd7[_0x4070('0x88')]['is'](_0x4070('0xcb'))&&!_0x1820a4['isObject'](_0x43efd7[_0x4070('0x88')]),_0x40fcff=_0x59e324[_0x4070('0xe6')][_0x4070('0x72')](_0x42e7e1),_0x12f019=_0x59e324['end'][_0x4070('0x72')](_0x42e7e1,{'direction':_0x4070('0xaf')});return(!_0x59e324[_0x4070('0xe6')]['isEqual'](_0x40fcff)||!_0x59e324[_0x4070('0x39')][_0x4070('0xfd')](_0x12f019))&&(_0x40fcff[_0x4070('0x108')](_0x12f019)?_0x4600a0[_0x4070('0x1f')](_0xda6e9d,{'range':_0x4600a0['createRange'](_0x40fcff,_0x12f019)}):_0x4600a0[_0x4070('0x1c')](_0xda6e9d),!0x0);}function $t(_0x13a583){return _0x211e1a(_0x13a583);}function Nt(_0x2adc09){const _0x45d578=_0x2adc09['start'][_0x4070('0x42')];return _0x45d578&&_0x45d578['is'](_0x4070('0xa5'));}function Rt(_0x1f331e,_0x3340f0){const _0x24ca19=_0x3340f0['schema'][_0x4070('0x8')](_0x1f331e)||_0x3340f0[_0x4070('0xe8')][_0x4070('0x128')](_0x1f331e);return _0x3340f0['createRange'](_0x3340f0['createPositionAt'](_0x1f331e,_0x4070('0x56')),_0x24ca19?_0x3340f0[_0x4070('0x16')](_0x1f331e):_0x3340f0[_0x4070('0x47')](_0x1f331e,_0x4070('0x39')));}function jt(_0x110926,_0x247536,_0x71481d,_0x341f62,_0x52b068){if(!xt(_0x110926,_0x247536))return!0x1;if(_0x71481d['end']['isEqual'](_0x341f62[_0x4070('0xe6')]))return!0x0;if(_0x110926[_0x4070('0xef')]!=_0x247536[_0x4070('0xef')])return!0x1;if(!_0x71481d[_0x4070('0x39')][_0x4070('0xa6')](_0x341f62[_0x4070('0xe6')]))return!0x1;const _0x26c7d4=_0x52b068['createRange'](_0x71481d['end'],_0x341f62[_0x4070('0xe6')])[_0x4070('0x7')]();for(const _0x2da79f of _0x26c7d4)if([_0x4070('0x80'),_0x4070('0xb2')][_0x4070('0xa3')](_0x2da79f['type'])&&_0x52b068[_0x4070('0xe8')][_0x4070('0xb0')](_0x2da79f[_0x4070('0x88')]))return!0x1;return!0x0;}function xt(_0x104af1,_0x5df175){return!(!_0x104af1['_isDataLoaded']||!_0x5df175[_0x4070('0x7f')])&&_0x52583c(_0x104af1[_0x4070('0xb7')],_0x5df175[_0x4070('0xb7')]);}function Ut(_0x36c4f1,_0x5e3ca8){const _0x3a885d=Ot(_0x36c4f1['attributes']),_0x141c80=Ot(_0x5e3ca8);if(!_0x36c4f1[_0x4070('0x7f')])return!0x1;for(const _0x25a508 of Object[_0x4070('0x12b')](_0x141c80))if(!_0x52583c(_0x3a885d[_0x25a508],_0x141c80[_0x25a508]))return!0x1;return!0x0;}function Ot(_0x335fd3){const _0x5bf282=Object[_0x4070('0xd6')]({},_0x335fd3);return delete _0x5bf282[_0x4070('0x86')],delete _0x5bf282['tablePasteChainId'],_0x5bf282;}
|
|
23
|
+
const _0x1e47=['catch','consumable','conversion','getRanges','_addSuggestionMarker','skipNestingCheck','containsPosition','_descriptionFactory','chain','markers','track-changes-command-not-found','commentThread','_joinSuggestions','isTouching','length','_onDiscard','removeMarker','commandName','change:data','PENDING_ACTION_SUGGESTION','isIntersectingWithRange','ck-suggestion-marker--active','formatBlock','isAtEnd','deletion','getUser','updateMarker','fromRange','registerCustomCallback','before','elementStart','after','split','resolve','getShiftedBy','return','removeAttribute','init','addHighlight','formatBlock:discard','suggestionUnloaded','getIntersection','authorName','some','howMany','_setSuggestionRange','forward','getSuggestions','marker-count','isEqual','model','insertion','containerElement','removeMarkers','end','data','createElement','schema','TrackChangesEditing','rethrowUnexpectedError','containsRange','_trackFormatChanges','_rangeIsInLocalUserInsertion','markerReady','_saved','isInsideObject','enableCommand','createRange','for','oldRange','keys','type','isObject','open','parent','push','getSuggestionCallback','getItems','_refreshSuggestionsChain','_removeSuggestion','addSuggestionData','_handleNewSuggestionMarker','isCollapsed','updateSuggestion','fire','_setSuggestionData','author','targetPosition','requires','attributes','editing','config','low','formatInline:accept','isAfter','removed','getRange','enqueueChange','addComment','size','discardAllSuggestions','dataToMarker','removeMarker:suggestion:formatBlock','getCustomProperty','ready','ck-suggestion-marker-','deletion:','createSelection','createdAt','accepted','formatBlock:chain','addCommentThread','showSuggestionHighlights','set','PendingActions','suggestion-type','from','element','map','acceptSuggestion','addClass','isDocumentOperation','_suggestions','delete','options','deleteContent','$marker','normal','setTo','change','editingDowncast','forceDefaultExecution','data-suggestion','suggestion','markMultiRangeInsertion','getAncestors','tablePasteChainId','@external','then','_getAuthorFromId','newRange','root','track-changes-adapter-already-set','getCommentThread','markDeletion','batch','trackChangesCommand','track-changes-user-not-found','getChangedMarkers','mapper','accept','Users','authoredAt','remove','discardSelectedSuggestions','bindElementToMarker','_commentsRepository','_joinWithAdjacentSuggestions','assign','start','getSuggestion','suggestionLoaded','_splitMarkerName','stopListening','addSuggestion','isRemovable','values','range','acceptSelectedSuggestions','createPositionBefore','addUser','getMultiRangeId','subType','isNextTo','selection','formatBlock:join','addRange','isInContent','getAttribute','createPositionAt','position','toViewElement','markMultiRangeBlockFormat','rejected','isBlock','fromCharCode','trackChanges.mergeNestedSuggestions','sort','markBlockFormat','get','unbindElementFromMarkerName','isUndo','formatBlock:accept','plugins','ck-suggestion-marker','dataReady','reconvertMarker','consume','$graveyard','editor','formatInline','_addThreadToSuggestion','update:suggestion','dataDowncast','pluginName','widget','deletion:accept','_customCallbacks','refresh','insertContent','substr','markerToData','$textProxy','never','_getExternalAuthor','includes','_createSuggestion','clone','backward','_suggestionState','elementEnd','discardSuggestion','collaboration.channelId','formatInline:discard','ck-suggestion-marker-formatBlock','item','high','getDifference','markerName','_isForcedDefaultExecutionBlock','track-changes-adapter-missing-getsuggestion','setSelection','rootName','getNearestSelectionRange','getFirstRange','isLocal','_suggestionFactory','addMarker:suggestion:formatBlock','suggestion:','setAttribute','lowest','_defaultCallbacks','insertion:discard','multipleBlocks','always','markInlineFormat','createRangeIn','move','filter','insertion:','detach','getAllAdjacentSuggestions','unbind','acceptAllSuggestions','markMultiRangeDeletion','addMarkerName','_enabledCommands','getMarkers','activeMarkers','name','default','writer','creator','add','value','discard','isAtStart','getFirstMarker','_mergeNestedSuggestions','trackChanges.trackFormatChanges','next','isMultiRange','adapter','_findSuggestions','originalSuggestionId','nodeAfter','formatBlock:','error-saving-suggestion-data-suggestion-discarded','isOwn','_registerDefaultCallbacks','_updateSuggestionData','_breakSuggestionMarker','addMarker','isLimit','notReady','multi','elementToElement','buildSuggestion','group','hasComments','differ','clear','removeClass','containsRangeInObject','_adapter','formatInline:','formatGroupId','change:_saved','execute','track-changes-suggestion-data-mismatch','deletion:chain','isArray','_checkSuggestionCorrectness','commands','listenTo','_cutOutSuggestionMarker','_model','define','formatInline:join','document','previous','CommentsRepository','nodeBefore','every','external:','getLastMatchingPosition','join','highest','_editor','has','isBefore','stop','_isDataLoaded','head','locale'];(function(_0x3764ac,_0x1e47f2){const _0x5584cc=function(_0x89fbe1){while(--_0x89fbe1){_0x3764ac['push'](_0x3764ac['shift']());}};_0x5584cc(++_0x1e47f2);}(_0x1e47,0x14c));const _0x5584=function(_0x3764ac,_0x1e47f2){_0x3764ac=_0x3764ac-0x0;let _0x5584cc=_0x1e47[_0x3764ac];return _0x5584cc;};import{Plugin as _0x567342,PendingActions as _0x220b1f}from'ckeditor5/src/core';import{LiveRange as _0x2e8331}from'ckeditor5/src/engine';import{CKEditorError as _0x5e6c53,uid as _0x2568c4,priorities as _0x48e1ad,logWarning as _0x2ae9fa}from'ckeditor5/src/utils';import{toWidget as _0x49fa6b}from'ckeditor5/src/widget';import{Users as _0x20faa4,hashObject as _0xdb6fad}from'ckeditor5-collaboration/src/collaboration-core';import _0x610404 from'./commands/trackchangescommand';import _0x56f8aa from'./commands/acceptsuggestioncommand';import _0x5ecc88 from'./commands/discardsuggestioncommand';import _0x46b0a1 from'./commands/executeonallsuggestionscommand';import _0x164b2a from'./commands/executeonselectedsuggestionscommand';import _0x56cb33 from'./suggestion';import _0x2d33c7 from'./suggestiondescriptionfactory';import _0x242c6a from'./integrations/alignment';import _0xcc7437 from'./integrations/basicstyles';import _0x453c75 from'./integrations/blockquote';import _0x24596b from'./integrations/ckbox';import _0x5c3bd3 from'./integrations/codeblock';import _0x8c3d1d from'./integrations/comments';import _0x1577b0 from'./integrations/deletecommand';import _0x420581 from'./integrations/documentlist';import _0xc9b4ef from'./integrations/entercommand';import _0x40dc75 from'./integrations/findandreplace';import _0x2a5fda from'./integrations/font';import _0x4f371d from'./integrations/formatpainter';import _0x1a66b2 from'./integrations/heading';import _0x236219 from'./integrations/highlight';import _0x48ec2e from'./integrations/horizontalline';import _0x3da7a8 from'./integrations/htmlembed';import _0x50b783 from'./integrations/image';import _0x5f1239 from'./integrations/imagereplace';import _0x5a0b99 from'./integrations/importword';import _0xa5b44d from'./integrations/indent';import _0x179f13 from'./integrations/inputcommand';import _0x400a7a from'./integrations/link';import _0xd2a93a from'./integrations/list';import _0x4f5d13 from'./integrations/listproperties';import _0xab110f from'./integrations/mediaembed';import _0x432d86 from'./integrations/mention';import _0x2c4ead from'./integrations/pagebreak';import _0x2180b2 from'./integrations/paragraph';import _0x362e16 from'./integrations/removeformat';import _0xba7520 from'./integrations/restrictededitingmode';import _0x3eb022 from'./integrations/shiftentercommand';import _0x28b53e from'./integrations/standardeditingmode';import _0x4e581b from'./integrations/style';import _0x1c42e4 from'./integrations/table';import _0x38d211 from'./integrations/tablemergesplit';import _0x9305b6 from'./integrations/tableheadings';import _0x1e4c3e from'./integrations/tableclipboard';import _0x1c97ac from'./integrations/tablecolumnresize';import _0x45131f from'./integrations/template';import _0x570f72 from'./integrations/tableofcontents';import _0x435201 from'./integrations/title';import _0x18b5cb from'./integrations/undo';import{getTranslation as _0x58b0eb}from'./utils/common-translations';import _0xc9fb64 from'./integrations/tablecaption';import _0x12aa84 from'./integrations/documentlistproperties';import _0x30f588 from'./integrations/tableproperties';import{isEqual as _0xddcb7a}from'lodash-es';export default class p extends _0x567342{static get[_0x5584('0x51')](){return['CommentsRepository',_0x20faa4,_0x220b1f,_0x242c6a,_0xcc7437,_0x453c75,_0x24596b,_0x5c3bd3,_0x8c3d1d,_0x1577b0,_0x420581,_0x12aa84,_0xc9b4ef,_0x40dc75,_0x2a5fda,_0x4f371d,_0x1a66b2,_0x236219,_0x48ec2e,_0x3da7a8,_0x50b783,_0x5f1239,_0x5a0b99,_0xa5b44d,_0x179f13,_0x400a7a,_0xd2a93a,_0x4f5d13,_0xab110f,_0x432d86,_0x2c4ead,_0x2180b2,_0x362e16,_0xba7520,_0x3eb022,_0x28b53e,_0x4e581b,_0x1c42e4,_0x38d211,_0x9305b6,_0xc9fb64,_0x1e4c3e,_0x1c97ac,_0x570f72,_0x30f588,_0x45131f,_0x435201,_0x18b5cb];}static get[_0x5584('0xc5')](){return _0x5584('0x33');}constructor(_0x373674){function _0x203257(_0x17fd41){return _0x17fd41[_0x5584('0x6f')](_0x557a57=>String[_0x5584('0xb2')](_0x557a57))['join']('');}super(_0x373674),this['set'](_0x5584('0xfb'),[]),this['on']('change:activeMarkers',(_0x5c3f21,_0x4088c5,_0xe32b68,_0x469bbd)=>{this[_0x5584('0x12b')][_0x5584('0x7a')](()=>{for(const _0xe1f5f8 of[..._0x469bbd,..._0xe32b68])this[_0x5584('0x12b')][_0x5584('0x2')][_0x5584('0x138')](_0xe1f5f8)&&_0x373674[_0x5584('0x53')][_0x5584('0xbd')](_0xe1f5f8);});}),this[_0x5584('0x0')]=new _0x2d33c7(this[_0x5584('0xc0')][_0x5584('0x2b')][_0x5584('0x32')],this[_0x5584('0xc0')][_0x5584('0x13d')]),this['_adapter']=null,this['_suggestionFactory']=new Dt(this[_0x5584('0xc0')]),this[_0x5584('0x73')]=new Map(),this[_0x5584('0x95')]=_0x373674[_0x5584('0xba')][_0x5584('0xb6')]('CommentsRepository'),this['_enabledCommands']=new Set(),this[_0x5584('0x12b')]=this['editor'][_0x5584('0x2b')],this[_0x5584('0xd4')]=new WeakMap(),this[_0x5584('0xde')]=!0x1,_0x373674[_0x5584('0x54')][_0x5584('0x12c')](_0x5584('0x106'),_0x5584('0xfd')),this[_0x5584('0x36')]=_0x373674[_0x5584('0x54')][_0x5584('0xb6')](_0x5584('0x106')),_0x373674[_0x5584('0x54')]['define'](_0x5584('0xb3'),!0x0),this[_0x5584('0x105')]=_0x373674[_0x5584('0x54')][_0x5584('0xb6')](_0x5584('0xb3')),this[_0x5584('0x8b')]=new _0x610404(_0x373674,this[_0x5584('0xf9')]),this[_0x203257([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x203257([0x34,0x30,0x34,0x36,0x31,0x38,0x30,0x36]);}[_0x5584('0x1e')](){const _0x4003a6=this[_0x5584('0xc0')];_0x4003a6['conversion']['for'](_0x5584('0x7b'))['markerToHighlight']({'model':_0x5584('0x7e'),'view':_0x2a19d2=>{const {id:_0x44762d,type:_0x4cf857}=this['_splitMarkerName'](_0x2a19d2['markerName']),_0x3060e2=['ck-suggestion-marker',_0x5584('0x62')+_0x4cf857];let _0x26ff45=0xbb8;return this[_0x5584('0xfb')][_0x5584('0xd0')](_0x2a19d2[_0x5584('0xdd')])&&(_0x3060e2[_0x5584('0x44')](_0x5584('0xe')),_0x26ff45=0xbc2),_0x5584('0x11')==_0x4cf857&&(_0x26ff45+=0x5),{'classes':_0x3060e2,'attributes':{'data-suggestion':_0x44762d},'priority':_0x26ff45};}}),_0x4003a6[_0x5584('0x140')][_0x5584('0x3d')](_0x5584('0xc4'))[_0x5584('0x100')](_0x18c6d6=>{_0x18c6d6['on']('addMarker:suggestion',(_0x4197b6,_0x90034f,_0x1e9a0a)=>{if(!_0x1e9a0a['options'][_0x5584('0x69')])return;const _0x264855=_0x90034f[_0x5584('0xda')];if(!_0x264855)return;const _0x16303a=_0x1e9a0a[_0x5584('0x8e')][_0x5584('0xae')](_0x264855);_0x4003a6[_0x5584('0x2b')][_0x5584('0x32')]['isObject'](_0x264855)&&_0x16303a&&!_0x16303a[_0x5584('0x60')](_0x5584('0xc6'))&&_0x16303a['is'](_0x5584('0x2d'))&&_0x49fa6b(_0x16303a,_0x1e9a0a['writer']);},{'priority':_0x5584('0xdb')});}),_0x4003a6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':_0x5584('0x7e'),'view':(_0x56b0e8,_0x339139)=>{if(!_0x339139[_0x5584('0x75')][_0x5584('0x69')])return null;const {type:_0x5cd1fc}=this[_0x5584('0x9b')](_0x56b0e8[_0x5584('0xdd')]);return{'classes':[_0x5584('0xbb'),_0x5584('0x62')+_0x5cd1fc],'priority':0xbb8};}});const _0x507e2a=({showActiveMarkers:_0x5394f5=!0x0}={})=>(_0x11a417,_0x4a889f,_0x4107b9)=>{if(!_0x4a889f[_0x5584('0xda')])return;if(_0x4a889f[_0x5584('0xda')]['is'](_0x5584('0xa7')))return void _0x4107b9[_0x5584('0x13f')][_0x5584('0xbe')](_0x4a889f[_0x5584('0xda')],_0x11a417[_0x5584('0xfc')]);const _0x43e39a=_0x4107b9['mapper']['toViewElement'](_0x4a889f[_0x5584('0xda')]);if(!(_0x4a889f[_0x5584('0xda')]['is']('element')&&_0x4003a6[_0x5584('0x2b')][_0x5584('0x32')][_0x5584('0xb1')](_0x4a889f[_0x5584('0xda')])&&!_0x43e39a['getCustomProperty'](_0x5584('0x1f'))))return;const {id:_0x5eb47b}=this[_0x5584('0x9b')](_0x4a889f[_0x5584('0xdd')]);_0x4107b9[_0x5584('0xfe')][_0x5584('0x71')]([_0x5584('0xbb'),_0x5584('0xd9')],_0x43e39a),_0x4107b9[_0x5584('0xfe')][_0x5584('0xe8')](_0x5584('0x7d'),_0x5eb47b,_0x43e39a),_0x4107b9[_0x5584('0x8e')][_0x5584('0x94')](_0x43e39a,_0x4a889f['markerName']),_0x5394f5&&(this[_0x5584('0xfb')][_0x5584('0xd0')](_0x4a889f['markerName'])?_0x4107b9[_0x5584('0xfe')][_0x5584('0x71')]('ck-suggestion-marker--active',_0x43e39a):_0x4107b9[_0x5584('0xfe')][_0x5584('0x11d')]('ck-suggestion-marker--active',_0x43e39a));for(const _0x5aa4c0 of _0x4003a6[_0x5584('0x2b')][_0x5584('0xef')](_0x4a889f[_0x5584('0xda')])[_0x5584('0x46')]())_0x4107b9[_0x5584('0x13f')][_0x5584('0xbe')](_0x5aa4c0,_0x11a417['name']);_0x4107b9[_0x5584('0x13f')][_0x5584('0xbe')](_0x4a889f[_0x5584('0xda')],_0x11a417[_0x5584('0xfc')]);};_0x4003a6[_0x5584('0x140')][_0x5584('0x3d')](_0x5584('0xc4'))[_0x5584('0x100')](_0x205eef=>{_0x205eef['on'](_0x5584('0xe6'),(_0x2bd058,_0x562bd3,_0x2f40d4)=>{_0x2f40d4[_0x5584('0x75')][_0x5584('0x69')]&&_0x507e2a({'showActiveMarkers':!0x1})(_0x2bd058,_0x562bd3,_0x2f40d4);},{'priority':_0x5584('0x136')});}),_0x4003a6[_0x5584('0x140')][_0x5584('0x3d')](_0x5584('0xc4'))[_0x5584('0xcc')]({'model':_0x5584('0x7e'),'view':(_0x25aa77,_0x16011b)=>_0x16011b[_0x5584('0x75')]['showSuggestionHighlights']?null:{'group':_0x5584('0x7e'),'name':_0x25aa77[_0x5584('0xcb')](0xb)}}),_0x4003a6['conversion']['for']('upcast')[_0x5584('0x117')]({'view':{'name':_0x5584('0x7e'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4cba31,{writer:_0x506e9c})=>{let _0x3ed638=_0x5584('0xe7')+_0x4cba31['getAttribute'](_0x5584('0x6c'))+':'+_0x4cba31['getAttribute']('id');return _0x4cba31[_0x5584('0xab')](_0x5584('0x29'))&&(_0x3ed638+=':'+_0x4cba31['getAttribute'](_0x5584('0x29'))),_0x506e9c[_0x5584('0x31')](_0x5584('0x77'),{'data-name':_0x3ed638});}}),_0x4003a6[_0x5584('0x140')][_0x5584('0x3d')]('upcast')[_0x5584('0x5e')]({'view':'suggestion'}),_0x4003a6[_0x5584('0x140')]['for'](_0x5584('0x7b'))[_0x5584('0x100')](_0x333127=>{_0x333127['on'](_0x5584('0xe6'),_0x507e2a(),{'priority':_0x5584('0xdb')});}),_0x4003a6[_0x5584('0x140')][_0x5584('0x3d')](_0x5584('0x7b'))[_0x5584('0x100')](_0x1dbbb8=>{_0x1dbbb8['on'](_0x5584('0x5f'),(_0x49aa98,_0x4d5637,_0xb625ea)=>{const _0x50d6e0=_0xb625ea[_0x5584('0x8e')]['markerNameToElements'](_0x4d5637[_0x5584('0xdd')]);if(_0x50d6e0)for(const _0x417200 of _0x50d6e0)_0x417200['getCustomProperty'](_0x5584('0x1f'))||(_0xb625ea['writer'][_0x5584('0x11d')]([_0x5584('0xbb'),_0x5584('0xd9'),_0x5584('0xe')],_0x417200),_0xb625ea[_0x5584('0xfe')][_0x5584('0x1d')]('data-suggestion',_0x417200),_0xb625ea[_0x5584('0x8e')][_0x5584('0xb7')](_0x417200,_0x4d5637[_0x5584('0xdd')]));},{'priority':_0x5584('0xdb')});}),_0x4003a6[_0x5584('0x2b')][_0x5584('0x12e')]['registerPostFixer'](_0x22841b=>{let _0x2bb3d5=!0x1;const _0x55d26d=Array[_0x5584('0x6d')](_0x4003a6[_0x5584('0x2b')][_0x5584('0x12e')][_0x5584('0x11b')][_0x5584('0x8d')]()),_0x31b923=new Set();for(const {name:_0x314245,data:_0x359271}of _0x55d26d){const {group:_0x273217,type:_0x54436b,id:_0xcce755}=this[_0x5584('0x9b')](_0x314245);if(_0x5584('0x7e')!==_0x273217)continue;const _0x24e2d6=this[_0x5584('0x73')]['get'](_0xcce755);if(null!=_0x359271[_0x5584('0x85')]){_0x5584('0xc1')==_0x54436b&&(_0x2bb3d5=_0x2bb3d5||Mt(_0x359271[_0x5584('0x85')],_0x314245,_0x22841b,_0x4003a6[_0x5584('0x2b')][_0x5584('0x32')]));if(_0x359271['newRange'][_0x5584('0x4b')]||_0x5584('0xbf')==_0x359271[_0x5584('0x85')][_0x5584('0x86')][_0x5584('0xe1')]||_0x5584('0xf')==_0x54436b&&!Nt(_0x359271[_0x5584('0x85')])||_0x5584('0x11')==_0x54436b&&!(!_t(_0x486798=_0x359271['newRange'])&&!function(_0x438d8f){return _0x438d8f[_0x5584('0x98')][_0x5584('0x43')]==_0x438d8f[_0x5584('0x2f')][_0x5584('0x131')]&&_0x438d8f[_0x5584('0x98')]['isAtEnd'];}(_0x486798)))_0x22841b[_0x5584('0x9')](_0x314245),_0x2bb3d5=!0x0;else{if(!_0x24e2d6||!_0x24e2d6[_0x5584('0xaa')])continue;_0x31b923['add'](_0x24e2d6);}}}var _0x486798;return _0x31b923[_0x5584('0x5c')]>0x0&&(_0x2bb3d5=!!this[_0x5584('0x96')](_0x31b923)||_0x2bb3d5),_0x2bb3d5;}),_0x4003a6[_0x5584('0x2b')]['document']['registerPostFixer'](_0x263264=>{let _0x5833f5=!0x1;for(const _0x413824 of _0x4003a6[_0x5584('0x2b')][_0x5584('0x12e')][_0x5584('0x11b')]['getChanges']()){if('insert'!=_0x413824[_0x5584('0x40')])continue;const _0x738436=_0x413824[_0x5584('0xad')][_0x5584('0x1b')](_0x413824['length']);if(_0x738436[_0x5584('0x10')])for(const _0x4fd6f3 of this[_0x5584('0x73')]['values']()){if(_0x4fd6f3['isMultiRange']||!_0x4fd6f3['isInContent'])continue;if(_0x5584('0xf')!=_0x4fd6f3[_0x5584('0x40')])continue;const _0x91a82c=_0x4fd6f3[_0x5584('0xe3')]();if(_0x91a82c['start'][_0x5584('0x43')]!=_0x91a82c[_0x5584('0x2f')][_0x5584('0x43')]&&_0x91a82c[_0x5584('0x2f')]['isEqual'](_0x413824['position'])){const _0x2f0f1e=_0x4003a6[_0x5584('0x2b')][_0x5584('0x3c')](_0x91a82c['start'],_0x738436);_0x263264[_0x5584('0x13')](_0x4fd6f3[_0x5584('0x104')](),{'range':_0x2f0f1e}),_0x5833f5=!0x0;}}}return _0x5833f5;}),_0x4003a6['model'][_0x5584('0x2')]['on'](_0x5584('0xc3'),(_0x2f72c1,_0x2cb669,_0x283054)=>{if(null==_0x283054){const {id:_0x3856a1}=this[_0x5584('0x9b')](_0x2cb669[_0x5584('0xfc')]),_0x4695b9=this[_0x5584('0x73')]['get'](_0x3856a1);_0x4695b9&&_0x4695b9[_0x5584('0xf8')](_0x2cb669['name']);}}),_0x4003a6['model'][_0x5584('0x12e')]['on'](_0x5584('0xb'),()=>{const _0x226d68=Array[_0x5584('0x6d')](_0x4003a6[_0x5584('0x2b')]['document'][_0x5584('0x11b')][_0x5584('0x8d')]())[_0x5584('0xf1')](_0xc1fb3=>_0x5584('0x7e')===this['_splitMarkerName'](_0xc1fb3[_0x5584('0xfc')])[_0x5584('0x119')]);if(0x0===_0x226d68[_0x5584('0x7')])return;_0x226d68[_0x5584('0xb4')]((_0x5e9882,_0x39417c)=>{const _0x352852=_0x5e9882[_0x5584('0x30')]['oldRange'],_0x488caf=_0x39417c[_0x5584('0x30')][_0x5584('0x3e')];return null===_0x352852&&null===_0x488caf?0x0:null===_0x352852&&null!==_0x488caf?-0x1:null!==_0x352852&&null===_0x488caf?0x1:_0x352852['start'][_0x5584('0x139')](_0x488caf[_0x5584('0x98')])?-0x1:0x1;});const _0x5c8044=new Set(),_0x4dd9cd=new Set();for(const {name:_0x27bdd1,data:_0x217b91}of _0x226d68){const {id:_0x52b413}=this[_0x5584('0x9b')](_0x27bdd1);if(null===_0x217b91[_0x5584('0x3e')]){const _0x548633=this[_0x5584('0x4a')](_0x27bdd1);_0x4dd9cd[_0x5584('0x100')](_0x548633);}else{const _0x38f6db=this[_0x5584('0x73')][_0x5584('0xb6')](_0x52b413);null!==_0x217b91[_0x5584('0x85')]||_0x38f6db['isInContent']?(_0x5c8044['add'](_0x38f6db[_0x5584('0x13c')]),_0x4dd9cd[_0x5584('0x100')](_0x38f6db)):this['_removeSuggestion'](_0x38f6db);}}_0x4dd9cd[_0x5584('0x5c')]>0x0&&this[_0x5584('0x47')](_0x4dd9cd);for(const _0x3d4198 of _0x5c8044)this[_0x5584('0x4d')]('suggestionChanged',_0x3d4198);}),_0x4003a6['model']['on']('applyOperation',(_0x31c74b,_0x58fdc6)=>{const _0x35ebfb=_0x58fdc6[0x0];if(!this[_0x5584('0x73')]['size'])return;if(!_0x35ebfb[_0x5584('0x72')])return;if(_0x35ebfb[_0x5584('0x8a')][_0x5584('0xb8')]||!_0x35ebfb[_0x5584('0x8a')][_0x5584('0xe4')])return;let _0x6a123a,_0x4b32e4;switch(_0x35ebfb['type']){case'insert':_0x6a123a=_0x4003a6[_0x5584('0x2b')][_0x5584('0xac')](_0x35ebfb[_0x5584('0xad')]),_0x4b32e4=_0x6a123a['getShiftedBy'](_0x35ebfb[_0x5584('0x25')]);break;case _0x5584('0x19'):_0x6a123a=_0x4003a6[_0x5584('0x2b')][_0x5584('0xac')](_0x35ebfb['splitPosition']),_0x4b32e4=_0x4003a6[_0x5584('0x2b')][_0x5584('0xac')](_0x35ebfb['moveTargetPosition']);break;case _0x5584('0xf0'):_0x6a123a=_0x4003a6[_0x5584('0x2b')][_0x5584('0xac')](_0x35ebfb[_0x5584('0x50')]),_0x4b32e4=_0x6a123a[_0x5584('0x1b')](_0x35ebfb['howMany']);break;default:return;}const _0x592030=_0x4003a6[_0x5584('0x2b')][_0x5584('0x3c')](_0x6a123a,_0x4b32e4);_0x4003a6[_0x5584('0x2b')][_0x5584('0x7a')](()=>{for(const {suggestion:_0x24a37f,meta:_0x290076}of this[_0x5584('0x10a')](_0x592030)){if(_0x24a37f[_0x5584('0x108')])continue;if(_0x5584('0xc1')==_0x24a37f[_0x5584('0x40')])continue;const _0x3c4114=_0x24a37f[_0x5584('0x30')]&&_0x24a37f[_0x5584('0x30')]['multipleBlocks'];('formatBlock'!=_0x24a37f['type']||_0x5584('0x19')==_0x35ebfb[_0x5584('0x40')]&&!_0x3c4114)&&(_0x290076['containsRangeInObject']||_0x5584('0x2c')==_0x24a37f[_0x5584('0x40')]&&_0x290076[_0x5584('0x10f')]||_0x24a37f[_0x5584('0xe3')]()[_0x5584('0x35')](_0x592030)&&this[_0x5584('0x112')](_0x24a37f,_0x6a123a,_0x4b32e4));}});},{'priority':_0x5584('0xe9')}),_0x4003a6[_0x5584('0x2b')]['on']('deleteContent',(_0x59c55a,_0x367e21)=>{const _0x5968f1=_0x367e21[0x0],_0x4c923d=_0x367e21[0x1];if(_0x4c923d&&_0x4c923d[_0x5584('0x7c')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5584('0x8b')][_0x5584('0x101')])return;if(_0x5968f1[_0x5584('0x4b')])return;const _0x4ecb75=_0x4003a6['model']['schema'],{start:_0x620e8f,end:_0xa71063}=_0x5968f1[_0x5584('0xe3')](),_0xaf57f5=_0x620e8f[_0x5584('0x10c')]&&_0x4ecb75[_0x5584('0x114')](_0x620e8f[_0x5584('0x10c')])?null:_0x4ecb75['getNearestSelectionRange'](_0x620e8f,_0x5584('0x27')),_0x1ef61c=_0xa71063[_0x5584('0x131')]&&_0x4ecb75['isLimit'](_0xa71063['nodeBefore'])?null:_0x4ecb75[_0x5584('0xe2')](_0xa71063,_0x5584('0xd3')),_0x5da754=_0x4003a6[_0x5584('0x2b')][_0x5584('0x3c')](_0xaf57f5?_0xaf57f5[_0x5584('0x98')]:_0x620e8f,_0x1ef61c?_0x1ef61c[_0x5584('0x2f')]:_0xa71063);_0x4003a6[_0x5584('0x2b')][_0x5584('0x7a')](_0x3c8610=>{this['markDeletion'](_0x5da754);const _0x3ff74e=_0x4003a6[_0x5584('0x2b')][_0x5584('0x32')]['getNearestSelectionRange'](_0x5da754[_0x5584('0x98')]);_0x5968f1['is']('documentSelection')?_0x3c8610[_0x5584('0xe0')](_0x3ff74e):_0x5968f1[_0x5584('0x79')](_0x3ff74e);}),_0x59c55a[_0x5584('0x13a')]();},{'priority':_0x48e1ad[_0x5584('0x78')]+0xa}),_0x4003a6[_0x5584('0x2b')]['on']('insertContent',(_0x3ddf10,_0x2578d4)=>{const _0x3e35b0=_0x2578d4[_0x2578d4[_0x5584('0x7')]-0x1];_0x3e35b0&&_0x3e35b0['forceDefaultExecution']||this[_0x5584('0xde')]||this[_0x5584('0x8b')][_0x5584('0x101')]&&(_0x4003a6[_0x5584('0x2b')][_0x5584('0x7a')](()=>{let _0x5b46fd=_0x4003a6[_0x5584('0x2b')][_0x5584('0xca')](_0x2578d4[0x0],_0x2578d4[0x1],_0x2578d4[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b46fd)return;_0x3ddf10[_0x5584('0x1c')]=_0x5b46fd[_0x5584('0xd2')]();const _0x359c3c=_0x5b46fd['end']['nodeBefore'],_0x40cc3c=_0x4003a6['model'][_0x5584('0x32')];_0x359c3c&&_0x40cc3c[_0x5584('0xb1')](_0x359c3c)&&!_0x40cc3c['isObject'](_0x359c3c)&&(_0x5b46fd=_0x4003a6[_0x5584('0x2b')][_0x5584('0x3c')](_0x5b46fd[_0x5584('0x98')],_0x4003a6[_0x5584('0x2b')]['createPositionAt'](_0x359c3c,_0x5584('0x2f')))),this['markInsertion'](_0x5b46fd);}),_0x3ddf10[_0x5584('0x13a')]());},{'priority':_0x5584('0xdb')}),this['editor'][_0x5584('0x128')]['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x32a3db=new _0x56f8aa(_0x4003a6,this['_suggestions']);_0x4003a6['commands'][_0x5584('0x100')]('acceptSuggestion',_0x32a3db),this[_0x5584('0x3b')](_0x5584('0x70'));const _0x3e785c=new _0x5ecc88(_0x4003a6,this['_suggestions']);_0x4003a6[_0x5584('0x128')][_0x5584('0x100')](_0x5584('0xd6'),_0x3e785c),this['enableCommand'](_0x5584('0xd6')),_0x4003a6[_0x5584('0x128')][_0x5584('0x100')](_0x5584('0xf6'),new _0x46b0a1(_0x4003a6,_0x32a3db,this[_0x5584('0x73')])),this[_0x5584('0x3b')](_0x5584('0xf6')),_0x4003a6[_0x5584('0x128')][_0x5584('0x100')](_0x5584('0x5d'),new _0x46b0a1(_0x4003a6,_0x3e785c,this[_0x5584('0x73')])),this[_0x5584('0x3b')](_0x5584('0x5d')),_0x4003a6[_0x5584('0x128')][_0x5584('0x100')](_0x5584('0xa1'),new _0x164b2a(_0x4003a6,_0x32a3db,this[_0x5584('0x73')])),this[_0x5584('0x3b')](_0x5584('0xa1')),_0x4003a6['commands']['add'](_0x5584('0x93'),new _0x164b2a(_0x4003a6,_0x3e785c,this[_0x5584('0x73')])),this[_0x5584('0x3b')](_0x5584('0x93'));const _0x108d24=_0x4003a6['plugins'][_0x5584('0xb6')](_0x5584('0x130'));this[_0x5584('0x129')](_0x108d24,_0x5584('0x5b'),(_0x307cb2,{threadId:_0x3a766b})=>{const _0x43e35e=this[_0x5584('0x73')][_0x5584('0xb6')](_0x3a766b);_0x43e35e&&_0x43e35e[_0x5584('0x4')]&&0x1===_0x43e35e['commentThread'][_0x5584('0x7')]&&this[_0x5584('0x111')](_0x3a766b,{'hasComments':!0x0});},{'priority':_0x5584('0x55')}),this[_0x5584('0x129')](_0x108d24,'removeComment',(_0x43bc56,{threadId:_0x470e0e})=>{const _0x209e86=this[_0x5584('0x73')][_0x5584('0xb6')](_0x470e0e);_0x209e86&&_0x209e86['commentThread']&&!_0x209e86[_0x5584('0x4')][_0x5584('0x7')]&&this['_updateSuggestionData'](_0x470e0e,{'hasComments':!0x1});},{'priority':'low'});}set[_0x5584('0x109')](_0x46fd14){if(this['_adapter'])throw new _0x5e6c53(_0x5584('0x87'),this);this[_0x5584('0x11f')]=_0x46fd14;}get[_0x5584('0x109')](){return this[_0x5584('0x11f')];}['getSuggestions']({skipNotAttached:_0x2cdfa6=!0x1,toJSON:_0x215c7b=!0x1}={}){const _0x40e11f=[];for(const _0x4e5b4c of this['_suggestions'][_0x5584('0x9f')]())_0x2cdfa6&&!_0x4e5b4c[_0x5584('0xaa')]||_0x40e11f[_0x5584('0x44')](_0x4e5b4c);return _0x215c7b?_0x40e11f[_0x5584('0x6f')](_0x2afb78=>_0x2afb78['toJSON']()):_0x40e11f;}[_0x5584('0x99')](_0x1a1d26){const _0x2f1081=this[_0x5584('0x73')]['get'](_0x1a1d26);if(!_0x2f1081)throw new _0x5e6c53('track-changes-suggestion-not-found',this);return _0x2f1081;}['hasSuggestion'](_0x2902b2){return this['_suggestions'][_0x5584('0x138')](_0x2902b2);}['addSuggestionData'](_0xce640f){const {authorId:_0x1e06d2,id:_0xc0722b,attributes:_0x2f5312}=_0xce640f,[_0x29ccce,_0x3db219]=_0xce640f[_0x5584('0x40')][_0x5584('0x19')](':'),_0x33be12=this[_0x5584('0x73')][_0x5584('0xb6')](_0xc0722b)||this[_0x5584('0xd1')](_0x29ccce,_0x3db219,_0xc0722b,_0x1e06d2,_0x2f5312);if(this[_0x5584('0xc2')](_0x33be12),this[_0x5584('0x127')](_0x33be12,_0x29ccce,_0x3db219||null,_0x1e06d2),_0x33be12[_0x5584('0x65')]=_0xce640f[_0x5584('0x65')],_0x33be12['_isDataLoaded']=!0x0,_0x2f5312&&_0x2f5312[_0x5584('0x82')]){const _0x1595d7=_0x2f5312[_0x5584('0x82')],_0x165f36=this[_0x5584('0xcf')](_0x1595d7[_0x5584('0x23')]);_0x33be12[_0x5584('0x91')]=_0x1595d7[_0x5584('0x65')],_0x33be12[_0x5584('0x4f')]=_0x165f36,_0x33be12['isExternal']=!0x0;}else _0x33be12[_0x5584('0x91')]=_0xce640f[_0x5584('0x65')];switch(_0xce640f[_0x5584('0x30')]&&(_0x33be12['data']=_0xce640f[_0x5584('0x30')]),_0xce640f[_0x5584('0x52')]&&(_0x33be12[_0x5584('0x52')]=_0xce640f[_0x5584('0x52')]),this[_0x5584('0x11f')]&&this[_0x5584('0x11f')][_0x5584('0x9d')]||(_0x33be12['_saved']=!0x0),this[_0x5584('0xd4')]['get'](_0x33be12)){case'notReady':this['_suggestionState'][_0x5584('0x6a')](_0x33be12,_0x5584('0xbc'));break;case _0x5584('0x38'):_0x33be12[_0x5584('0xaa')]?(this[_0x5584('0x47')](new Set([_0x33be12])),this['_joinWithAdjacentSuggestions'](new Set([_0x33be12])),this[_0x5584('0xd4')][_0x5584('0x6a')](_0x33be12,_0x5584('0x61')),this[_0x5584('0x4d')](_0x5584('0x9a'),_0x33be12)):this['_suggestionState'][_0x5584('0x6a')](_0x33be12,_0x5584('0x58'));}return _0x33be12;}['acceptSuggestion'](_0x2b9f3c){this['forceDefaultExecution'](()=>{this['editor'][_0x5584('0x2b')][_0x5584('0x7a')](()=>{for(const _0xdd002 of _0x2b9f3c[_0x5584('0xf4')]())_0xdd002[_0x5584('0x8f')]();});});}[_0x5584('0xd6')](_0xf8e5fe){this[_0x5584('0x7c')](()=>{this[_0x5584('0xc0')][_0x5584('0x2b')]['change'](()=>{for(const _0x228b06 of _0xf8e5fe[_0x5584('0xf4')]())_0x228b06[_0x5584('0x102')]();});});}[_0x5584('0x3b')](_0x1f2055,_0x1b2ce6){const _0x3c18d3=this['editor']['commands'][_0x5584('0xb6')](_0x1f2055);if(!_0x3c18d3)throw new _0x5e6c53(_0x5584('0x3'),this,{'commandName':_0x1f2055});this['_enabledCommands'][_0x5584('0x100')](_0x3c18d3),_0x1b2ce6&&_0x3c18d3['on'](_0x5584('0x123'),(_0x30adbb,_0x12545d)=>{this[_0x5584('0x8b')][_0x5584('0x101')]&&(this[_0x5584('0xde')]||_0x12545d['length']>0x0&&_0x12545d[_0x12545d[_0x5584('0x7')]-0x1]&&_0x12545d[_0x12545d[_0x5584('0x7')]-0x1][_0x5584('0x7c')]||(_0x1b2ce6((..._0x3bd065)=>_0x3c18d3[_0x5584('0x123')](..._0x3bd065,{'forceDefaultExecution':!0x0}),..._0x12545d),_0x30adbb[_0x5584('0x13a')]()));},{'priority':_0x5584('0xdb')});}['forceDefaultExecution'](_0x375558){let _0x3dfa16,_0x1b4a19;const _0x42365e=this[_0x5584('0xde')];this[_0x5584('0xde')]=!0x0;try{_0x3dfa16=_0x375558();}catch(_0x4e9e24){_0x1b4a19=_0x4e9e24;}return _0x42365e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b4a19&&_0x5e6c53[_0x5584('0x34')](_0x1b4a19,this),_0x3dfa16;}['markInsertion'](_0x2611ad,_0x2f9b74=null,_0x4941c0={}){if(_0x2611ad[_0x5584('0x4b')])return null;const _0x100750=this['editor'][_0x5584('0xba')][_0x5584('0xb6')](_0x5584('0x90'))['me'];for(const {suggestion:_0x469a73,meta:_0xed0523}of this['_findSuggestions'](_0x2611ad,'insertion'))if(_0xed0523[_0x5584('0x10f')]){if(!_0xed0523[_0x5584('0xa6')]){if(_0xed0523[_0x5584('0x11e')]){if(!this[_0x5584('0x105')]||!Ut(_0x469a73,_0x4941c0))continue;return _0x469a73;}if(Ut(_0x469a73,_0x4941c0))return _0x469a73;this[_0x5584('0x112')](_0x469a73,_0x2611ad[_0x5584('0x98')],_0x2611ad['end']);break;}if(_0x2f9b74==_0x469a73['subType']&&Ut(_0x469a73,_0x4941c0)){const _0x1c18c4=_0x469a73[_0x5584('0xe3')]();return _0x1c18c4['start'][_0x5584('0x2a')](_0x2611ad['end'])?this[_0x5584('0x26')](_0x469a73,this[_0x5584('0x12b')]['createRange'](_0x2611ad['start'],_0x1c18c4[_0x5584('0x2f')])):this[_0x5584('0x26')](_0x469a73,this[_0x5584('0x12b')]['createRange'](_0x1c18c4[_0x5584('0x98')],_0x2611ad[_0x5584('0x2f')])),_0x469a73;}}const _0x40dd62=_0x2568c4(),_0x2b1087=_0x100750['id'],_0x4d5116=_0x2f9b74?_0x5584('0xf2')+_0x2f9b74:_0x5584('0x2c'),_0x33b827=this[_0x5584('0x4e')]({'id':_0x40dd62,'type':_0x4d5116,'createdAt':new Date(),'authorId':_0x2b1087,'attributes':_0x4941c0});return this['_addSuggestionMarker'](_0x4d5116,_0x40dd62,_0x2b1087,_0x2611ad),_0x33b827;}[_0x5584('0x7f')](_0xffb752,_0x52b07c=_0x5584('0x116'),_0x2fcb03={}){const _0xae78a9=this['editor'][_0x5584('0xba')]['get'](_0x5584('0x90'))['me'],_0x415421=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0x2c'),_0x52b07c,_0x5584('0x135'));for(const _0x3bc1d8 of this[_0x5584('0x28')]())if(_0x3bc1d8[_0x5584('0x4f')]['id']==_0xae78a9['id']&&_0x5584('0x2c')==_0x3bc1d8[_0x5584('0x40')]&&_0x3bc1d8[_0x5584('0xa5')]==_0x52b07c&&Ut(_0x3bc1d8,_0x2fcb03)&&(_0x415421(_0x3bc1d8[_0x5584('0x141')](),_0xffb752)||_0x415421(_0xffb752,_0x3bc1d8[_0x5584('0x141')]()))){for(const _0x1554a6 of _0xffb752)_0x3bc1d8[_0x5584('0xa9')](_0x1554a6);return _0x3bc1d8;}for(const {suggestion:_0x245d3d,meta:_0x2569b3}of this[_0x5584('0x10a')](_0xffb752,'insertion')){if(!_0x2569b3[_0x5584('0x10f')])continue;if(!this[_0x5584('0x105')]&&_0x2569b3[_0x5584('0x11e')])continue;if(!Ut(_0x245d3d,_0x2fcb03))continue;let _0x229d70=!0x0;for(const _0x1d1234 of _0x245d3d[_0x5584('0x141')]())for(const _0x576102 of _0xffb752)if(!_0x1d1234[_0x5584('0x35')](_0x576102)){_0x229d70=!0x1;break;}if(_0x229d70)return _0x245d3d;}const _0x5e17f2=_0x2568c4(),_0x56c004=_0xae78a9['id'],_0x3988ad=_0x5584('0xf2')+_0x52b07c,_0xc6414=this['_setSuggestionData']({'id':_0x5e17f2,'type':_0x3988ad,'createdAt':new Date(),'authorId':_0x56c004,'attributes':_0x2fcb03});for(const _0x3ec5d6 of _0xffb752)this[_0x5584('0x142')](_0x3988ad,_0x5e17f2,_0x56c004,_0x3ec5d6,_0x56cb33['getMultiRangeId']());return _0xc6414;}[_0x5584('0xee')](_0x1e7842,_0x949983,_0x4f2ed6=null,_0x47f275={}){if(_0x4f2ed6=_0x4f2ed6||$t(_0x949983),_0x1e7842[_0x5584('0x4b')])return null;if(_0x5584('0xce')===this[_0x5584('0x36')]){const _0xd73b84=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0xc1'),_0x4f2ed6,_0x5584('0x8f'));return this[_0x5584('0x7c')](()=>_0xd73b84([_0x1e7842],_0x949983,_0x47f275)),null;}const _0x256d8d=this[_0x5584('0xc0')]['plugins']['get']('Users')['me'],_0x52b3ea=[];if(_0x5584('0xed')!==this[_0x5584('0x36')])for(const {suggestion:_0x5e77db,meta:_0xef58c}of this[_0x5584('0x10a')](_0x1e7842,_0x5584('0x2c')))_0xef58c[_0x5584('0x10f')]&&!_0xef58c[_0x5584('0x3a')]&&_0x52b3ea[_0x5584('0x44')](..._0x5e77db['getRanges']());const _0x5e6dd9=function(_0x401395,_0xe1c181){const _0x40ffe4=[];for(const _0xf7c848 of _0xe1c181){const _0x100e9d=_0x401395[_0x5584('0x22')](_0xf7c848);_0x100e9d&&_0x40ffe4['push'](_0x100e9d);}return _0x40ffe4;}(_0x1e7842,_0x52b3ea),_0xac9888=function(_0x19de0a,_0x3c4014){const _0x2aa4d8=[_0x19de0a];for(const _0x16e105 of _0x3c4014){let _0x1ef386=0x0;for(;_0x1ef386<_0x2aa4d8[_0x5584('0x7')];){const _0x4ee056=_0x2aa4d8[_0x1ef386]['getDifference'](_0x16e105);_0x2aa4d8['splice'](_0x1ef386,0x1,..._0x4ee056),_0x1ef386+=_0x4ee056[_0x5584('0x7')];}}return _0x2aa4d8;}(_0x1e7842,_0x52b3ea);_0x5e6dd9[_0x5584('0x7')]&&this[_0x5584('0x12b')][_0x5584('0x7a')](()=>{for(const _0x2a48d1 of _0x5e6dd9){const _0x27663d=this['_suggestionFactory']['getSuggestionCallback'](_0x5584('0xc1'),_0x4f2ed6,_0x5584('0x8f'));this[_0x5584('0x7c')](()=>_0x27663d([_0x2a48d1],_0x949983,_0x47f275));}});for(const _0x593bed of _0xac9888){let _0x274ef9=null,_0x1898cf=_0x593bed[_0x5584('0x98')],_0x235fbc=_0x593bed[_0x5584('0x2f')];for(const {suggestion:_0x6e2e6c,meta:_0x4d34b9}of this[_0x5584('0x10a')](_0x593bed,_0x5584('0xc1'))){if(!_0x4d34b9[_0x5584('0x10f')])continue;if(_0x6e2e6c[_0x5584('0xa5')]!=_0x4f2ed6)continue;if(!Ut(_0x6e2e6c,_0x47f275))continue;const _0x3a033b=_0x6e2e6c[_0x5584('0xe3')]();if(_0x3a033b['containsRange'](_0x593bed,!0x0))return null;_0x1898cf=_0x1898cf[_0x5584('0x139')](_0x3a033b[_0x5584('0x98')])?_0x1898cf:_0x3a033b[_0x5584('0x98')],_0x235fbc=_0x235fbc[_0x5584('0x57')](_0x3a033b['end'])?_0x235fbc:_0x3a033b[_0x5584('0x2f')],_0x274ef9?_0x3a033b[_0x5584('0x98')]['isBefore'](_0x274ef9[_0x5584('0xe3')]()['start'])?(_0x274ef9[_0x5584('0x2e')](),_0x274ef9=_0x6e2e6c):_0x6e2e6c[_0x5584('0x2e')]():_0x274ef9=_0x6e2e6c;}const _0x6b3d59=this[_0x5584('0x12b')][_0x5584('0x3c')](_0x1898cf,_0x235fbc);if(_0x274ef9)this[_0x5584('0x26')](_0x274ef9,_0x6b3d59);else{const _0x11b69e=_0x2568c4(),_0x21c489=_0x256d8d['id'];this[_0x5584('0x4e')]({'id':_0x11b69e,'type':_0x5584('0x120')+_0x4f2ed6,'data':_0x949983,'createdAt':new Date(),'authorId':_0x21c489,'attributes':_0x47f275}),this['_addSuggestionMarker'](_0x5584('0x120')+_0x4f2ed6,_0x11b69e,_0x21c489,_0x6b3d59);}}return null;}[_0x5584('0xb5')](_0x405daa,_0x3823e0,_0x5c525a=[],_0x2f1bdd=null,_0x5561df={}){_0x3823e0['formatGroupId']||(_0x3823e0['formatGroupId']=_0x3823e0[_0x5584('0xa')]),_0x3823e0[_0x5584('0xec')]=_0x405daa['is'](_0x5584('0xa0')),_0x2f1bdd=_0x2f1bdd||$t(_0x3823e0);const _0x4466dd=_0x5c525a[_0x5584('0x6f')](_0x20049b=>Rt(_0x20049b,this[_0x5584('0x12b')])),_0x2cc657=_0x405daa['is'](_0x5584('0xa0'))?_0x405daa:Rt(_0x405daa,this['_model']);if(_0x5584('0xce')===this[_0x5584('0x36')]){const _0x4b9622=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0xf'),_0x2f1bdd,_0x5584('0x8f'));return this[_0x5584('0x7c')](()=>_0x4b9622([_0x2cc657],_0x3823e0,_0x5561df)),null;}_0x4466dd[_0x5584('0x44')](_0x2cc657);let _0x1c9620=!0x0;for(const _0x225096 of _0x4466dd)if(!this[_0x5584('0x37')](_0x225096)){_0x1c9620=!0x1;break;}if(_0x1c9620&&_0x5584('0xed')!==this[_0x5584('0x36')]){const _0x3ed1ab=this['_suggestionFactory'][_0x5584('0x45')](_0x5584('0xf'),_0x2f1bdd,'accept');return this[_0x5584('0x7c')](()=>_0x3ed1ab([_0x2cc657],_0x3823e0,_0x5561df)),null;}let _0x3852e4=null,_0x1b6260=_0x2cc657[_0x5584('0x98')],_0x3dc9c8=_0x2cc657[_0x5584('0x2f')];for(const {suggestion:_0x4db707,meta:_0x4da26a}of this[_0x5584('0x10a')](_0x2cc657,_0x5584('0xf'))){if(!_0x4da26a[_0x5584('0x10f')])continue;if(_0x4da26a['isNextTo']||_0x4da26a[_0x5584('0x11e')]||_0x4da26a['isInsideObject'])continue;if(_0x4db707[_0x5584('0x30')][_0x5584('0x121')]!=_0x3823e0[_0x5584('0x121')])continue;if(!Ut(_0x4db707,_0x5561df))continue;const _0x47d198=_0x4db707[_0x5584('0xe3')]();if(_0x4db707[_0x5584('0xa5')]==_0x2f1bdd){if(_0x47d198[_0x5584('0x35')](_0x2cc657,!0x0))return null;_0x1b6260=_0x1b6260[_0x5584('0x139')](_0x47d198['start'])?_0x1b6260:_0x47d198[_0x5584('0x98')],_0x3dc9c8=_0x3dc9c8[_0x5584('0x57')](_0x47d198['end'])?_0x3dc9c8:_0x47d198['end'],_0x3852e4?_0x47d198['start'][_0x5584('0x139')](_0x3852e4[_0x5584('0xe3')]()[_0x5584('0x98')])?(_0x3852e4[_0x5584('0x2e')](),_0x3852e4=_0x4db707):_0x4db707[_0x5584('0x2e')]():_0x3852e4=_0x4db707;}else{const _0x26b6e3=_0x2cc657[_0x5584('0x22')](_0x47d198);this['_cutOutSuggestionMarker'](_0x4db707,_0x26b6e3);}}const _0x4ee9f9=this[_0x5584('0xc0')][_0x5584('0xba')]['get'](_0x5584('0x90'))['me'],_0x35a53c=_0x2568c4(),_0xca08bd=_0x4ee9f9['id'];if(_0x3852e4)return this[_0x5584('0x26')](_0x3852e4,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x1b6260,_0x3dc9c8)),_0x3852e4;{const _0x1f2059=this[_0x5584('0x4e')]({'id':_0x35a53c,'type':_0x5584('0x10d')+_0x2f1bdd,'data':_0x3823e0,'createdAt':new Date(),'authorId':_0xca08bd,'attributes':_0x5561df});return this[_0x5584('0x142')](_0x5584('0x10d')+_0x2f1bdd,_0x35a53c,_0xca08bd,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x1b6260,_0x3dc9c8)),_0x1f2059;}}[_0x5584('0xaf')](_0x341db3,_0xc9480,_0x173369=[],_0x31de38=null,_0x1cd1af={}){_0xc9480[_0x5584('0x121')]||(_0xc9480[_0x5584('0x121')]=_0xc9480[_0x5584('0xa')]);const _0xf5cb12=_0x341db3[0x0];_0xc9480[_0x5584('0xec')]=_0xf5cb12['is'](_0x5584('0xa0')),_0x31de38=_0x31de38||$t(_0xc9480);const _0x4bf592=_0x173369['map'](_0xe3b8bb=>Rt(_0xe3b8bb,this[_0x5584('0x12b')])),_0x2bb033=_0xf5cb12['is']('range')?_0x341db3:_0x341db3['map'](_0x1e5bf4=>Rt(_0x1e5bf4,this[_0x5584('0x12b')]));if(_0x5584('0xce')===this[_0x5584('0x36')]){const _0x3131d8=this[_0x5584('0xe5')][_0x5584('0x45')]('formatBlock',_0x31de38,_0x5584('0x8f'));return this[_0x5584('0x7c')](()=>_0x3131d8(_0x2bb033,_0xc9480,_0x1cd1af)),null;}_0x4bf592['push'](..._0x2bb033);let _0x9130d6=!0x0;for(const _0x3afb68 of _0x4bf592)if(!this[_0x5584('0x37')](_0x3afb68)){_0x9130d6=!0x1;break;}if(_0x9130d6&&_0x5584('0xed')!==this[_0x5584('0x36')]){const _0x447898=this[_0x5584('0xe5')]['getSuggestionCallback'](_0x5584('0xf'),_0x31de38,_0x5584('0x8f'));return this[_0x5584('0x7c')](()=>_0x447898(_0x2bb033,_0xc9480,_0x1cd1af)),null;}const _0x596829=this[_0x5584('0xc0')][_0x5584('0xba')][_0x5584('0xb6')](_0x5584('0x90'))['me'];for(const _0x56979a of this[_0x5584('0x28')]()){if(_0x56979a[_0x5584('0x4f')]['id']!=_0x596829['id'])continue;if(_0x5584('0xf')!=_0x56979a[_0x5584('0x40')]||_0x56979a[_0x5584('0x30')][_0x5584('0x121')]!=_0xc9480[_0x5584('0x121')])continue;if(!Ut(_0x56979a,_0x1cd1af))continue;const _0x5d55fd=_0x56979a[_0x5584('0xa5')]==_0x31de38;for(let _0xd25951=0x0;_0xd25951<_0x2bb033[_0x5584('0x7')];_0xd25951++){const _0x584ecd=_0x2bb033[_0xd25951];for(const _0x465acb of _0x56979a[_0x5584('0xfa')]()){const _0x22916f=_0x465acb[_0x5584('0x59')]();if(_0x584ecd[_0x5584('0x2a')](_0x22916f)){_0x5d55fd?(_0x2bb033['splice'](_0xd25951,0x1),_0xd25951--):_0x56979a[_0x5584('0x9')](_0x465acb[_0x5584('0xfc')]);break;}}}}if(0x0==_0x2bb033[_0x5584('0x7')])return null;const _0x5931d0=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0xf'),_0x31de38,'join');for(const _0x3f1254 of this[_0x5584('0x28')]())if(_0x3f1254[_0x5584('0x4f')]['id']==_0x596829['id']&&_0x5584('0xf')==_0x3f1254[_0x5584('0x40')]&&_0x3f1254[_0x5584('0x30')]['formatGroupId']==_0xc9480[_0x5584('0x121')]&&_0x3f1254[_0x5584('0xa5')]==_0x31de38&&Ut(_0x3f1254,_0x1cd1af)&&(_0x5931d0(_0x3f1254[_0x5584('0x141')](),_0x2bb033)||_0x5931d0(_0x2bb033,_0x3f1254[_0x5584('0x141')]()))){for(const _0x516662 of _0x2bb033)_0x3f1254['addRange'](_0x516662);return _0x3f1254;}const _0xee1c56=_0x2568c4(),_0x508aa8=_0x596829['id'],_0x50dddd=_0x5584('0x10d')+_0x31de38,_0x83bdb9=this[_0x5584('0x4e')]({'id':_0xee1c56,'type':_0x50dddd,'data':_0xc9480,'createdAt':new Date(),'authorId':_0x508aa8,'attributes':_0x1cd1af});for(const _0x2e9935 of _0x2bb033)this[_0x5584('0x142')](_0x50dddd,_0xee1c56,_0x508aa8,_0x2e9935,_0x56cb33['getMultiRangeId']());return _0x83bdb9;}[_0x5584('0x89')](_0x8878ec,_0x43628b=null,_0x4b91ac={}){if(_0x8878ec[_0x5584('0x4b')])return null;const _0x30dd57=this['editor']['plugins'][_0x5584('0xb6')](_0x5584('0x90'))['me'],_0x1a10e5=new _0x2e8331(_0x8878ec[_0x5584('0x98')],_0x8878ec[_0x5584('0x2f')]);for(const {suggestion:_0x59789d,meta:_0x580e52}of this[_0x5584('0x10a')](_0x1a10e5,_0x5584('0x2c')))if(_0x580e52['isOwn']&&!_0x580e52[_0x5584('0xa6')]){if(_0x59789d['isMultiRange']){const _0x1a8eb3=_0x59789d[_0x5584('0x141')]()[_0x5584('0xf1')](_0x33f54e=>_0x5584('0xbf')!=_0x33f54e[_0x5584('0x86')][_0x5584('0xe1')]);_0x1a8eb3[_0x5584('0x132')](_0x4f5af9=>_0x1a10e5['containsRange'](_0x4f5af9,!0x0))&&_0x59789d[_0x5584('0x102')]();if(_0x1a8eb3['some'](_0x1f71b6=>_0x1f71b6[_0x5584('0x35')](_0x1a10e5,!0x0))){const _0x5d44d9=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0x11'),_0x43628b,_0x5584('0x8f'));return this[_0x5584('0x7c')](()=>_0x5d44d9([_0x1a10e5],null,_0x4b91ac)),null;}}else{const _0x55ff30=_0x1a10e5[_0x5584('0x22')](_0x59789d[_0x5584('0xe3')]());null!==_0x55ff30&&_0x59789d[_0x5584('0x8')]([_0x55ff30],null,_0x4b91ac);}}if(_0x1a10e5['detach'](),_0x1a10e5[_0x5584('0x4b')]||_0x5584('0xbf')==_0x1a10e5[_0x5584('0x86')][_0x5584('0xe1')])return null;let _0x36b94e=null,_0x5bc7dd=_0x1a10e5['start'],_0x120a67=_0x1a10e5[_0x5584('0x2f')];const _0x16aee4=this[_0x5584('0x10a')](_0x1a10e5,_0x5584('0x11'));for(const {suggestion:_0x480198,meta:_0x59bfe1}of _0x16aee4){const _0x2f1e74=this[_0x5584('0x12b')][_0x5584('0x3c')](_0x5bc7dd,_0x120a67);if(_0x59bfe1[_0x5584('0x10f')]&&(this[_0x5584('0x105')]||!_0x59bfe1[_0x5584('0x11e')]&&!_0x59bfe1['isInsideObject'])){if(_0x480198[_0x5584('0x108')]){if(!Ut(_0x480198,_0x4b91ac))continue;let _0x36e71f=!0x0;for(const _0x4ba0af of _0x480198[_0x5584('0x141')]()){if(_0x4ba0af['containsRange'](_0x2f1e74,!0x0))return _0x480198;_0x2f1e74[_0x5584('0x35')](_0x4ba0af)||(_0x36e71f=!0x1);}_0x36e71f&&_0x480198[_0x5584('0x102')]();}else{const _0x3f6f44=_0x480198['getFirstRange']();if(_0x3f6f44[_0x5584('0x35')](_0x2f1e74,!0x0))return _0x480198;if(!Ut(_0x480198,_0x4b91ac)){_0x2f1e74['containsRange'](_0x3f6f44)?_0x480198[_0x5584('0x2e')]():_0x3f6f44[_0x5584('0x144')](_0x5bc7dd)?_0x5bc7dd=_0x3f6f44['end']:_0x3f6f44[_0x5584('0x144')](_0x120a67)&&(_0x120a67=_0x3f6f44[_0x5584('0x98')]);continue;}_0x5bc7dd=_0x5bc7dd[_0x5584('0x139')](_0x3f6f44[_0x5584('0x98')])?_0x5bc7dd:_0x3f6f44['start'],_0x120a67=_0x120a67[_0x5584('0x57')](_0x3f6f44[_0x5584('0x2f')])?_0x120a67:_0x3f6f44[_0x5584('0x2f')],_0x4b91ac=Object['assign']({},_0x480198[_0x5584('0x52')]),_0x36b94e?_0x3f6f44[_0x5584('0x98')][_0x5584('0x139')](_0x36b94e[_0x5584('0xe3')]()[_0x5584('0x98')])?(_0x36b94e[_0x5584('0x2e')](),_0x36b94e=_0x480198):_0x480198[_0x5584('0x2e')]():_0x36b94e=_0x480198;}}}if(_0x36b94e)return this[_0x5584('0x26')](_0x36b94e,this['_model'][_0x5584('0x3c')](_0x5bc7dd,_0x120a67)),_0x36b94e;{const _0x144960=_0x2568c4(),_0x14ca5c=this[_0x5584('0x12b')][_0x5584('0x3c')](_0x5bc7dd,_0x120a67),_0x3a738c=_0x30dd57['id'],_0x4a5b09=_0x43628b?_0x5584('0x63')+_0x43628b:_0x5584('0x11'),_0x7a4481=this['_setSuggestionData']({'id':_0x144960,'type':_0x4a5b09,'createdAt':new Date(),'authorId':_0x3a738c,'attributes':_0x4b91ac});return this[_0x5584('0x142')](_0x4a5b09,_0x144960,_0x3a738c,_0x14ca5c),_0x7a4481;}}[_0x5584('0xf7')](_0x2911bd,_0x1f5f77='multi',_0x5abb48={}){const _0x41e67f=this[_0x5584('0xc0')][_0x5584('0xba')][_0x5584('0xb6')](_0x5584('0x90'))['me'],_0x542ba7=_0x2911bd['map'](_0x501f98=>new _0x2e8331(_0x501f98[_0x5584('0x98')],_0x501f98[_0x5584('0x2f')])),_0x27bf9d=new Set();for(const {suggestion:_0x255fbf,meta:_0x525663}of this[_0x5584('0x10a')](_0x542ba7,_0x5584('0x2c')))_0x525663[_0x5584('0x10f')]&&!_0x525663[_0x5584('0xa6')]&&_0x27bf9d[_0x5584('0x100')](_0x255fbf);for(const _0x556215 of _0x27bf9d)if(_0x556215['isMultiRange']){const _0x328282=_0x556215[_0x5584('0x141')]();(!_0x556215[_0x5584('0x52')]||!_0x556215[_0x5584('0x52')][_0x5584('0x143')])&&(_0x328282[_0x5584('0x132')](_0x3c0a2c=>_0x542ba7[_0x5584('0x24')](_0x818b25=>_0x818b25[_0x5584('0x35')](_0x3c0a2c,!0x0)))&&_0x556215[_0x5584('0x102')]());if(_0x542ba7[_0x5584('0x132')](_0x3dcb95=>_0x328282['some'](_0x477530=>_0x477530['containsRange'](_0x3dcb95,!0x0)))){const _0x30bc50=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0x11'),_0x1f5f77,_0x5584('0x8f'));return this['forceDefaultExecution'](()=>_0x30bc50(_0x2911bd,null,_0x5abb48)),null;}}else{const _0x18fac1=_0x556215[_0x5584('0xe3')]();_0x542ba7[_0x5584('0x24')](_0x1588b8=>_0x1588b8[_0x5584('0x35')](_0x18fac1,!0x0))&&_0x556215[_0x5584('0x102')]();if(_0x542ba7['every'](_0x1cd6a0=>_0x18fac1[_0x5584('0x35')](_0x1cd6a0,!0x0))){const _0x517474=this[_0x5584('0xe5')]['getSuggestionCallback']('deletion',_0x1f5f77,_0x5584('0x8f'));return this['forceDefaultExecution'](()=>_0x517474(_0x542ba7,null,_0x5abb48)),null;}}const _0x3278b3=this[_0x5584('0xe5')][_0x5584('0x45')](_0x5584('0x11'),_0x1f5f77,_0x5584('0x135'));let _0xbb3dd=null;for(const _0x306785 of this[_0x5584('0x28')]())if(_0x306785[_0x5584('0x4f')]['id']==_0x41e67f['id']&&_0x306785['isInContent']&&'deletion'==_0x306785[_0x5584('0x40')]&&_0x306785[_0x5584('0xa5')]==_0x1f5f77&&Ut(_0x306785,_0x5abb48)&&(_0x3278b3(_0x306785[_0x5584('0x141')](),_0x542ba7)||_0x3278b3(_0x542ba7,_0x306785[_0x5584('0x141')]()))){if(_0xbb3dd){if(_0x306785[_0x5584('0x4')]&&_0x306785['commentThread'][_0x5584('0x7')])continue;for(const _0x4eb551 of _0x306785['getRanges']())_0xbb3dd['isIntersectingWithRange'](_0x4eb551)||_0xbb3dd['addRange'](_0x4eb551);_0x306785[_0x5584('0x2e')]();}else{_0xbb3dd=_0x306785;for(const _0x4595c6 of _0x542ba7)_0x306785[_0x5584('0xd')](_0x4595c6)||_0x306785[_0x5584('0xa9')](_0x4595c6);}}if(_0xbb3dd)return _0xbb3dd;_0x27bf9d[_0x5584('0x11c')]();for(const {suggestion:_0x508e1d,meta:_0x3a5325}of this[_0x5584('0x10a')](_0x542ba7,_0x5584('0x11')))_0x3a5325['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3a5325['containsRangeInObject']&&!_0x3a5325[_0x5584('0x3a')])&&Ut(_0x508e1d,_0x5abb48)&&_0x27bf9d[_0x5584('0x100')](_0x508e1d);for(const _0x512cca of _0x27bf9d){const _0x37f43b=_0x512cca[_0x5584('0x141')]();if(!_0x5abb48||!_0x5abb48['skipNestingCheck']){if(_0x542ba7['every'](_0x56c4a8=>_0x37f43b[_0x5584('0x24')](_0x5cbc2c=>_0x5cbc2c[_0x5584('0x35')](_0x56c4a8,!0x0))))return _0x512cca;}(!_0x512cca[_0x5584('0x52')]||!_0x512cca[_0x5584('0x52')][_0x5584('0x143')])&&(_0x37f43b[_0x5584('0x132')](_0xc28b69=>_0x542ba7['some'](_0x575dc9=>_0x575dc9[_0x5584('0x35')](_0xc28b69,!0x0)))&&_0x512cca['discard']());}const _0x10cf78=_0x2568c4(),_0x432c29=_0x41e67f['id'],_0x1a093d=_0x5584('0x63')+_0x1f5f77,_0x416aa4=this[_0x5584('0x4e')]({'id':_0x10cf78,'type':_0x1a093d,'createdAt':new Date(),'authorId':_0x432c29,'attributes':_0x5abb48});for(const _0x369911 of _0x542ba7)_0x369911[_0x5584('0xf3')](),_0x369911[_0x5584('0x4b')]||_0x5584('0xbf')==_0x369911[_0x5584('0x86')][_0x5584('0xe1')]||this[_0x5584('0x142')](_0x1a093d,_0x10cf78,_0x432c29,_0x369911,_0x56cb33[_0x5584('0xa4')]());return _0x416aa4;}[_0x5584('0x26')](_0x32c0b3,_0x54b4c6){const _0x30a079=_0x32c0b3[_0x5584('0x104')]();this[_0x5584('0x12b')][_0x5584('0x7a')](_0x3518ce=>{_0x3518ce[_0x5584('0x13')](_0x30a079,{'range':_0x54b4c6});});}[_0x5584('0xc2')](_0x257e0a){const _0x1ac7c4=_0x257e0a['id'],_0x58adc8=this['editor'][_0x5584('0x54')][_0x5584('0xb6')](_0x5584('0xd7'));this[_0x5584('0x95')]['hasCommentThread'](_0x1ac7c4)||this[_0x5584('0x95')][_0x5584('0x68')]({'channelId':_0x58adc8,'threadId':_0x1ac7c4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x33dc8f=this[_0x5584('0x95')][_0x5584('0x88')](_0x1ac7c4);_0x33dc8f[_0x5584('0xf5')](_0x5584('0x9e')),_0x33dc8f[_0x5584('0x9e')]=!0x1,_0x257e0a[_0x5584('0x4')]=_0x33dc8f;}[_0x5584('0x127')](_0x1cb34b,_0x4b5017,_0x492dd0,_0x13cc4e){if(_0x1cb34b['type']!=_0x4b5017||_0x1cb34b[_0x5584('0xa5')]!=_0x492dd0||_0x1cb34b[_0x5584('0xff')]['id']!=_0x13cc4e)throw this[_0x5584('0xc0')]['enableReadOnlyMode'](_0x5584('0x124')),new _0x5e6c53(_0x5584('0x124'),this);}[_0x5584('0x12a')](_0x5ffbdc,_0x4f28ed){const _0x70ae6f=_0x5ffbdc[_0x5584('0xe3')]();if(_0x4f28ed[_0x5584('0x2a')](_0x70ae6f))_0x5ffbdc[_0x5584('0x2e')]();else{if(_0x70ae6f[_0x5584('0x35')](_0x4f28ed)){const _0x17c4a5=this[_0x5584('0x12b')]['createPositionAt'](_0x4f28ed[_0x5584('0x98')][_0x5584('0x131')],_0x5584('0x2f'));this[_0x5584('0x26')](_0x5ffbdc,this['_model'][_0x5584('0x3c')](_0x70ae6f[_0x5584('0x98')],_0x17c4a5));const _0x13acea=_0x2568c4(),_0x42e155=_0x5ffbdc['creator']['id'],_0x4be296=_0x5ffbdc['type']+':'+_0x5ffbdc[_0x5584('0xa5')];this[_0x5584('0x4e')]({'id':_0x13acea,'type':_0x4be296,'createdAt':new Date(),'authorId':_0x42e155,'data':_0x5ffbdc['data'],'attributes':_0x5ffbdc[_0x5584('0x52')]});const _0x29423c=this[_0x5584('0x12b')][_0x5584('0xac')](_0x4f28ed[_0x5584('0x2f')]['parent'],_0x5584('0x18')),_0x142180=this['_model'][_0x5584('0x3c')](_0x29423c,_0x70ae6f['end']);this[_0x5584('0x142')](_0x4be296,_0x13acea,_0x42e155,_0x142180);}else{if(_0x70ae6f[_0x5584('0x144')](_0x4f28ed[_0x5584('0x98')])){const _0x1ed8e8=this[_0x5584('0x12b')][_0x5584('0xac')](_0x4f28ed[_0x5584('0x98')][_0x5584('0x131')],_0x5584('0x2f'));this[_0x5584('0x26')](_0x5ffbdc,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x70ae6f[_0x5584('0x98')],_0x1ed8e8));}else{const _0x287c32=this['_model'][_0x5584('0xac')](_0x4f28ed[_0x5584('0x2f')][_0x5584('0x43')],_0x5584('0x18'));this['_setSuggestionRange'](_0x5ffbdc,this['_model'][_0x5584('0x3c')](_0x287c32,_0x70ae6f[_0x5584('0x2f')]));}}}}[_0x5584('0x37')](_0x472a55){for(const {suggestion:_0xdbc3f8,meta:_0x986923}of this[_0x5584('0x10a')](_0x472a55,_0x5584('0x2c'))){if(!_0x986923[_0x5584('0x10f')])continue;const _0x428716=_0xdbc3f8[_0x5584('0x141')]();for(const _0x15db17 of _0x428716)if(!_0x472a55[_0x5584('0xdc')](_0x15db17)[_0x5584('0x7')])return!0x0;}return!0x1;}[_0x5584('0x84')](_0x497ea4){const _0x582cac=this[_0x5584('0xc0')][_0x5584('0xba')][_0x5584('0xb6')]('Users')[_0x5584('0x12')](_0x497ea4);if(!_0x582cac)throw new _0x5e6c53(_0x5584('0x8c'),this);return _0x582cac;}[_0x5584('0xcf')](_0x2c803c){const _0x2cbea9=this[_0x5584('0xc0')]['plugins']['get'](_0x5584('0x90')),_0x2103f9=_0xdb6fad(_0x5584('0x133')+_0x2c803c),_0x45e5d1=_0x2cbea9[_0x5584('0x12')](_0x2103f9);return _0x45e5d1||_0x2cbea9[_0x5584('0xa3')]({'id':_0x2103f9,'name':_0x2c803c});}[_0x5584('0xd1')](_0x102166,_0x2c5762,_0x31df65,_0x295002,_0x39fd1f){const _0x1cde82=this[_0x5584('0x84')](_0x295002),_0x402769=this[_0x5584('0xe5')][_0x5584('0x118')](_0x102166,_0x2c5762,_0x31df65,_0x1cde82,_0x39fd1f,_0x5864c5=>this[_0x5584('0x111')](_0x31df65,{'attributes':_0x5864c5}));return this['listenTo'](_0x402769,_0x5584('0x8f'),()=>{this[_0x5584('0x111')](_0x31df65,{'state':_0x5584('0x66')});},{'priority':_0x5584('0xdb')}),this[_0x5584('0x129')](_0x402769,'discard',()=>{this['_updateSuggestionData'](_0x31df65,{'state':_0x5584('0xb0')});},{'priority':_0x5584('0xdb')}),this['_suggestions']['set'](_0x31df65,_0x402769),this[_0x5584('0xd4')][_0x5584('0x6a')](_0x402769,_0x5584('0x115')),_0x402769;}['_splitMarkerName'](_0x15357b){const _0xd66c97=_0x15357b[_0x5584('0x19')](':');return{'group':_0xd66c97[0x0],'type':_0xd66c97[0x1],'subType':_0xd66c97[_0x5584('0x7')]>=0x5?_0xd66c97[0x2]:null,'id':_0xd66c97[_0x5584('0x7')]<0x5?_0xd66c97[0x2]:_0xd66c97[0x3],'authorId':_0xd66c97[_0x5584('0x7')]<0x5?_0xd66c97[0x3]:_0xd66c97[0x4],'markerCount':0x6==_0xd66c97[_0x5584('0x7')]?_0xd66c97[0x5]:null};}[_0x5584('0x112')](_0x1ef989,_0x235e6f,_0x3b1f26){const _0x4d8341=_0x1ef989[_0x5584('0xe3')](),_0x34aa82=_0x4d8341[_0x5584('0x98')],_0x47aa0a=_0x4d8341[_0x5584('0x2f')];this[_0x5584('0x26')](_0x1ef989,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x34aa82,_0x235e6f));const _0x436543=_0x2568c4(),_0x116607=_0x1ef989['creator']['id'],_0xf9a0bd=_0x1ef989[_0x5584('0x40')]+(_0x1ef989['subType']?':'+_0x1ef989[_0x5584('0xa5')]:'');this[_0x5584('0x4e')]({'id':_0x436543,'type':_0xf9a0bd,'createdAt':new Date(),'authorId':_0x116607,'originalSuggestionId':_0x1ef989['id'],'attributes':_0x1ef989[_0x5584('0x52')],'data':_0x1ef989['data']}),'formatBlock'==_0x1ef989['type']&&(_0x3b1f26=this[_0x5584('0x12b')][_0x5584('0xa2')](_0x3b1f26[_0x5584('0x43')])),this['_addSuggestionMarker'](_0xf9a0bd,_0x436543,_0x116607,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x3b1f26,_0x47aa0a));}[_0x5584('0x10a')](_0x13f9d3,_0x323b04=null){const _0x66aec0=[],_0x5bedd9=this['editor'][_0x5584('0xba')][_0x5584('0xb6')]('Users')['me'];Array[_0x5584('0x126')](_0x13f9d3)||(_0x13f9d3=[_0x13f9d3]);for(const _0x238e56 of this[_0x5584('0x28')]()){if(!_0x238e56['isInContent'])continue;if(_0x323b04&&_0x238e56[_0x5584('0x40')]!=_0x323b04)continue;let _0x2375f2=!0x1;for(const _0x451753 of _0x238e56[_0x5584('0x141')]()){for(const _0x4a6699 of _0x13f9d3){const _0x110d17=_0x4a6699[_0x5584('0x98')]['isEqual'](_0x451753[_0x5584('0x2f')])||_0x4a6699[_0x5584('0x2f')][_0x5584('0x2a')](_0x451753[_0x5584('0x98')]);if(_0x110d17||_0x4a6699[_0x5584('0x22')](_0x451753)){const _0x4d4ac1=_0x4a6699[_0x5584('0x35')](_0x451753)&&Bt(this[_0x5584('0x12b')][_0x5584('0x32')],_0x451753[_0x5584('0x98')],_0x4a6699),_0x274c89=_0x451753[_0x5584('0x35')](_0x4a6699)&&Bt(this['_model']['schema'],_0x4a6699['start'],_0x451753);_0x66aec0[_0x5584('0x44')]({'suggestion':_0x238e56,'meta':{'isOwn':_0x5bedd9==_0x238e56[_0x5584('0x4f')],'isNextTo':_0x110d17,'isInsideObject':_0x4d4ac1,'containsRangeInObject':_0x274c89}}),_0x2375f2=!0x0;break;}}if(_0x2375f2)break;}}return _0x66aec0;}[_0x5584('0x142')](_0x141b5f,_0x292a60,_0x41422f,_0x50f674,_0x3c8c8a){this[_0x5584('0x12b')][_0x5584('0x7a')](_0x404348=>{let _0x578e28=_0x5584('0xe7')+_0x141b5f+':'+_0x292a60+':'+_0x41422f;_0x3c8c8a&&(_0x578e28=_0x578e28+':'+_0x3c8c8a),_0x404348[_0x5584('0x113')](_0x578e28,{'range':_0x50f674,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5584('0x48')](_0x1a3b4b){const _0x3aa09e=_0x1a3b4b[_0x5584('0x12f')],_0x219b5d=_0x1a3b4b[_0x5584('0x107')];_0x1a3b4b[_0x5584('0x12f')]=null,null!=_0x3aa09e&&(_0x3aa09e[_0x5584('0x107')]=null),_0x1a3b4b[_0x5584('0x107')]=null,null!=_0x219b5d&&(_0x219b5d['previous']=null),_0x5584('0x61')==this[_0x5584('0xd4')][_0x5584('0xb6')](_0x1a3b4b)&&(this[_0x5584('0xd4')][_0x5584('0x6a')](_0x1a3b4b,_0x5584('0x58')),this[_0x5584('0x4d')](_0x5584('0x21'),_0x1a3b4b,_0x3aa09e,_0x219b5d));}[_0x5584('0x4e')](_0x4ee5d4){const _0x312f4e=_0x4ee5d4['id'],_0xd73105=this[_0x5584('0x49')](_0x4ee5d4);if(this[_0x5584('0x11f')]&&this[_0x5584('0x11f')]['addSuggestion']){const _0x5746ac=this[_0x5584('0xc0')][_0x5584('0xba')]['get'](_0x5584('0x6b')),_0x4312be=_0xd73105[_0x5584('0x11a')],_0x54c13e=_0xd73105[_0x5584('0xa5')]?_0xd73105[_0x5584('0x40')]+':'+_0xd73105[_0x5584('0xa5')]:_0xd73105[_0x5584('0x40')],_0x1410ab=this[_0x5584('0xc0')][_0x5584('0x13d')],_0x552b1a=_0x5746ac['add'](_0x58b0eb(_0x1410ab,_0x5584('0xc'))),_0x5882cf={'id':_0x312f4e,'type':_0x54c13e,'hasComments':_0x4312be,'data':_0x4ee5d4[_0x5584('0x30')]||null,'originalSuggestionId':_0x4ee5d4[_0x5584('0x10b')]||null,'attributes':_0xd73105[_0x5584('0x52')]};this[_0x5584('0x11f')][_0x5584('0x9d')](_0x5882cf)['then'](_0x33bc01=>{_0xd73105['_saved']=!0x0,_0x5746ac['remove'](_0x552b1a),_0x33bc01&&_0x33bc01[_0x5584('0x65')]&&(this[_0x5584('0x73')][_0x5584('0xb6')](_0x312f4e)[_0x5584('0x65')]=_0x33bc01[_0x5584('0x65')]);})[_0x5584('0x13e')](_0x5f53fa=>{throw _0x2ae9fa(_0x5584('0x10e')),this['editor'][_0x5584('0x2b')][_0x5584('0x5a')]({'isUndoable':!0x1},()=>{_0xd73105['discard']();}),_0xd73105[_0x5584('0x9c')](),this[_0x5584('0x73')][_0x5584('0x74')](_0xd73105['id']),this[_0x5584('0xd4')]['delete'](_0xd73105),_0x5f53fa;});}return _0xd73105;}['_updateSuggestionData'](_0x5bc7e,_0x34c84c){const _0x1725c6=this[_0x5584('0xc0')][_0x5584('0xba')]['get'](_0x5584('0x6b')),_0x157cf7=this['getSuggestion'](_0x5bc7e);if(this[_0x5584('0x11f')]&&this[_0x5584('0x11f')][_0x5584('0x4c')]){if(_0x157cf7[_0x5584('0x39')]){const _0xbda72d=_0x1725c6[_0x5584('0x100')](_0x58b0eb(this[_0x5584('0xc0')][_0x5584('0x13d')],'PENDING_ACTION_SUGGESTION'));this[_0x5584('0x11f')][_0x5584('0x4c')](_0x5bc7e,_0x34c84c)['then'](()=>{_0x1725c6[_0x5584('0x92')](_0xbda72d);});}else _0x157cf7['on'](_0x5584('0x122'),()=>{this[_0x5584('0x111')](_0x5bc7e,_0x34c84c);});}}['_getSuggestionData'](_0x163b8d){if(!this[_0x5584('0x11f')]||!this[_0x5584('0x11f')][_0x5584('0x99')])throw new _0x5e6c53(_0x5584('0xdf'),this);return this[_0x5584('0x11f')][_0x5584('0x99')](_0x163b8d);}[_0x5584('0x4a')](_0x5a3c2d){const {id:_0x27d0e8,type:_0x324ad6,subType:_0x37e2a2,authorId:_0x39183d}=this[_0x5584('0x9b')](_0x5a3c2d),_0x480e5b=this[_0x5584('0x73')][_0x5584('0xb6')](_0x27d0e8)||this['_createSuggestion'](_0x324ad6,_0x37e2a2,_0x27d0e8,_0x39183d,{});switch(this['_checkSuggestionCorrectness'](_0x480e5b,_0x324ad6,_0x37e2a2,_0x39183d),this['_suggestionState'][_0x5584('0xb6')](_0x480e5b)){case _0x5584('0x115'):this['_getSuggestionData'](_0x27d0e8)[_0x5584('0x83')](_0x215289=>{let _0xaf87ab=Promise[_0x5584('0x1a')]();_0x215289[_0x5584('0x11a')]&&(_0xaf87ab=this[_0x5584('0x95')]['fetchCommentThread']({'channelId':this[_0x5584('0xc0')][_0x5584('0x54')][_0x5584('0xb6')](_0x5584('0xd7')),'threadId':_0x27d0e8})),_0xaf87ab[_0x5584('0x83')](()=>{this[_0x5584('0x49')](_0x215289)[_0x5584('0x39')]=!0x0;});}),this[_0x5584('0xd4')][_0x5584('0x6a')](_0x480e5b,'markerReady');break;case _0x5584('0x58'):this[_0x5584('0x111')](_0x27d0e8,{'state':_0x5584('0x42')});case _0x5584('0xbc'):this[_0x5584('0xd4')][_0x5584('0x6a')](_0x480e5b,_0x5584('0x61')),this[_0x5584('0x4d')](_0x5584('0x9a'),_0x480e5b);break;case _0x5584('0x61'):this[_0x5584('0x4d')]('suggestionChanged',_0x480e5b);}return _0x480e5b[_0x5584('0xf8')](_0x5a3c2d),_0x480e5b;}[_0x5584('0x47')](_0x5353f3){const _0x12ca26=Array[_0x5584('0x6d')](_0x5353f3)[_0x5584('0xf1')](_0x1deddc=>!_0x1deddc[_0x5584('0x108')]),_0x81b69d=this['getSuggestions']({'skipNotAttached':!0x0})[_0x5584('0xf1')](_0x2f6854=>!_0x2f6854[_0x5584('0x108')]),_0x36b8cc=_0x81b69d['filter'](_0xd872ea=>!_0x5353f3[_0x5584('0x138')](_0xd872ea)),_0x1b43fa=new Map(_0x81b69d[_0x5584('0x6f')](_0x2b70e8=>[_0x2b70e8,this[_0x5584('0xe5')]['getSuggestionCallback'](_0x2b70e8[_0x5584('0x40')],_0x2b70e8[_0x5584('0xa5')],_0x5584('0x1'))])),_0x39f9c6=new Map(_0x81b69d[_0x5584('0x6f')](_0x4a95bf=>[_0x4a95bf,_0x4a95bf[_0x5584('0xe3')]()])),_0x112640=new Set(),_0x34072a=new Set();for(let _0x543efa=0x0;_0x543efa<_0x12ca26[_0x5584('0x7')];_0x543efa++)_0x2bb33d(_0x12ca26[_0x543efa],_0x12ca26,_0x543efa+0x1);for(let _0x4233bb=0x0;_0x4233bb<_0x12ca26[_0x5584('0x7')];_0x4233bb++)_0x2bb33d(_0x12ca26[_0x4233bb],_0x36b8cc,0x0);for(let _0x447f01=0x0;_0x447f01<_0x12ca26['length'];_0x447f01++){const _0x5e2326=_0x12ca26[_0x447f01];!_0x34072a[_0x5584('0x138')](_0x5e2326)&&_0x5e2326[_0x5584('0x12f')]&&(_0x5e2326[_0x5584('0x12f')]['next']===_0x5e2326&&(_0x5e2326[_0x5584('0x12f')][_0x5584('0x107')]=null),_0x5e2326[_0x5584('0x12f')]=null),!_0x112640[_0x5584('0x138')](_0x5e2326)&&_0x5e2326[_0x5584('0x107')]&&(_0x5e2326[_0x5584('0x107')][_0x5584('0x12f')]===_0x5e2326&&(_0x5e2326['next'][_0x5584('0x12f')]=null),_0x5e2326[_0x5584('0x107')]=null);}function _0x2bb33d(_0x47d4a0,_0x21cfb5,_0x2e91f){for(let _0x211d96=_0x2e91f;_0x211d96<_0x21cfb5[_0x5584('0x7')];_0x211d96++){const _0x3ce433=_0x3e949d(_0x47d4a0,_0x21cfb5[_0x211d96]);_0x3ce433&&(_0x3ce433[0x0][_0x5584('0x107')]=_0x3ce433[0x1],_0x3ce433[0x1][_0x5584('0x12f')]=_0x3ce433[0x0],_0x112640[_0x5584('0x100')](_0x3ce433[0x0]),_0x34072a[_0x5584('0x100')](_0x3ce433[0x1]));}}function _0x3e949d(_0x5515eb,_0x4f4217){if(_0x5515eb['author']['id']!==_0x4f4217[_0x5584('0x4f')]['id'])return null;const _0xd8adf0=_0x1b43fa[_0x5584('0xb6')](_0x5515eb)(_0x5515eb,_0x4f4217,_0x39f9c6[_0x5584('0xb6')](_0x5515eb),_0x39f9c6[_0x5584('0xb6')](_0x4f4217));if(!_0xd8adf0)return null;return _0x1b43fa[_0x5584('0xb6')](_0x4f4217)(_0x5515eb,_0x4f4217,_0x39f9c6[_0x5584('0xb6')](_0x5515eb),_0x39f9c6['get'](_0x4f4217))?_0xd8adf0[0x1][_0x5584('0x4')]&&_0xd8adf0[0x1][_0x5584('0x4')][_0x5584('0x7')]?null:_0xd8adf0:null;}}[_0x5584('0x96')](_0x22c971){const _0x2e6a11=Array['from'](_0x22c971),_0x2320bc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x221edd=_0x2320bc[_0x5584('0xf1')](_0x1d2858=>!_0x22c971[_0x5584('0x138')](_0x1d2858)),_0x2aadf8=new Map(_0x2e6a11[_0x5584('0x6f')](_0x36c16b=>[_0x36c16b,this['_suggestionFactory'][_0x5584('0x45')](_0x36c16b[_0x5584('0x40')],_0x36c16b['subType'],_0x5584('0x135'))])),_0x500b4a=new Map(_0x2320bc['map'](_0x4e388a=>[_0x4e388a,_0x4e388a[_0x5584('0x141')]()]));for(let _0x174124=0x0;_0x174124<_0x2e6a11[_0x5584('0x7')];_0x174124++){if(_0x29555b(this,_0x2e6a11[_0x174124],_0x2e6a11,_0x174124+0x1))return!0x0;}for(let _0x2d2dbc=0x0;_0x2d2dbc<_0x2e6a11[_0x5584('0x7')];_0x2d2dbc++){if(_0x29555b(this,_0x2e6a11[_0x2d2dbc],_0x221edd,0x0))return!0x0;}return!0x1;function _0x29555b(_0x555f2c,_0x391892,_0x182786,_0x424b3d){for(let _0x2b6d2c=_0x424b3d;_0x2b6d2c<_0x182786[_0x5584('0x7')];_0x2b6d2c++){const _0x27907b=_0x182786[_0x2b6d2c];if(_0x27907b['type']!==_0x391892[_0x5584('0x40')]||_0x27907b[_0x5584('0x4f')]['id']!==_0x391892[_0x5584('0x4f')]['id']||_0x27907b[_0x5584('0xa5')]!==_0x391892['subType'])continue;if(!xt(_0x391892,_0x27907b))continue;const _0x681183=_0x2aadf8['get'](_0x391892),_0x14e4ce=_0x500b4a[_0x5584('0xb6')](_0x391892),_0x404040=_0x500b4a['get'](_0x27907b),_0x140244=_0x391892['commentThread']&&_0x391892['commentThread'][_0x5584('0x7')],_0x2d381a=_0x27907b[_0x5584('0x4')]&&_0x27907b[_0x5584('0x4')]['length'];if(!_0x140244&&_0x681183(_0x404040,_0x14e4ce))return _0x555f2c['_joinSuggestions'](_0x27907b,_0x391892),_0x500b4a[_0x5584('0x74')](_0x391892),!0x0;if(!_0x2d381a&&_0x681183(_0x14e4ce,_0x404040))return _0x555f2c[_0x5584('0x5')](_0x391892,_0x27907b),_0x500b4a[_0x5584('0x74')](_0x27907b),!0x0;}return!0x1;}}[_0x5584('0x5')](_0x247f9e,_0x180cfe){if(_0x247f9e['isMultiRange'])for(const _0xeb4a9d of _0x180cfe['getRanges']())_0x247f9e['addRange'](_0xeb4a9d);else{const _0x46144a=_0x180cfe['getFirstRange']()[_0x5584('0x2f')];this['_setSuggestionRange'](_0x247f9e,this[_0x5584('0x12b')][_0x5584('0x3c')](_0x247f9e[_0x5584('0xe3')]()[_0x5584('0x98')],_0x46144a));}_0x180cfe[_0x5584('0x2e')]();}}class Dt{constructor(_0x443a34){this[_0x5584('0x137')]=_0x443a34,this[_0x5584('0x12b')]=_0x443a34[_0x5584('0x2b')],this[_0x5584('0xc8')]=new Map(),this[_0x5584('0xea')]=new Map(),this[_0x5584('0x110')]();}[_0x5584('0x118')](_0x51072d,_0x5ea3d9,_0x529b89,_0x275c23,_0x4aaa1d,_0x159284){return new _0x56cb33(this[_0x5584('0x12b')],{'type':_0x51072d,'subType':_0x5ea3d9,'id':_0x529b89,'author':_0x275c23,'creator':_0x275c23,'attributes':_0x4aaa1d,'onAttributesChange':_0x159284,'onAccept':(..._0x2d2a46)=>this[_0x5584('0x45')](_0x51072d,_0x5ea3d9,_0x5584('0x8f'))(..._0x2d2a46),'onDiscard':(..._0x41b5a5)=>this['getSuggestionCallback'](_0x51072d,_0x5ea3d9,_0x5584('0x102'))(..._0x41b5a5)});}[_0x5584('0x15')](_0x2e6df5,_0x563949,_0x24e910,_0xbc61d6){const _0x4183e9=_0x2e6df5+':'+_0x563949+':'+_0x24e910;this[_0x5584('0xc8')][_0x5584('0x6a')](_0x4183e9,_0xbc61d6);}[_0x5584('0x45')](_0x474a8c,_0x428e1a,_0x2b12e9){const _0xfdc133=_0x474a8c+':'+_0x428e1a+':'+_0x2b12e9;return this[_0x5584('0xc8')][_0x5584('0xb6')](_0xfdc133)||this[_0x5584('0xea')][_0x5584('0xb6')](_0x474a8c+':'+_0x2b12e9);}[_0x5584('0x110')](){const _0x226952=()=>!0x1,_0x1e45b7=_0x250a2a=>{_0x250a2a[_0x5584('0xb4')]((_0x39d019,_0x386718)=>_0x39d019[_0x5584('0x98')][_0x5584('0x139')](_0x386718[_0x5584('0x98')])?0x1:-0x1),this['_model'][_0x5584('0x7a')](_0x5a41d3=>{for(const _0x1954c0 of _0x250a2a){let _0x33885f;_0x33885f=_0x1954c0['end'][_0x5584('0x10')]&&_0x1954c0[_0x5584('0x2f')][_0x5584('0x43')]==_0x1954c0[_0x5584('0x98')][_0x5584('0x10c')]?_0x5a41d3[_0x5584('0x64')](_0x1954c0[_0x5584('0x98')][_0x5584('0x10c')],'on'):_0x5a41d3[_0x5584('0x64')](_0x1954c0),this[_0x5584('0x12b')][_0x5584('0x76')](_0x33885f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x837f1=(_0xf69b65,_0xadbc3a)=>{this['_model'][_0x5584('0x7a')](_0x48b6f0=>{const {commandName:_0x247565,commandParams:_0xa146b9=[]}=_0xadbc3a,_0x3b161f=_0xf69b65[_0x5584('0x6f')](_0x404890=>(_t(_0x404890)&&(_0x404890=this[_0x5584('0x12b')][_0x5584('0x3c')](_0x404890[_0x5584('0x2f')])),_0x404890))[_0x5584('0xf1')](_0x1a7dda=>_0x5584('0xbf')!==_0x1a7dda[_0x5584('0x86')][_0x5584('0xe1')]);if(_0x3b161f[_0x5584('0x7')]<0x1)return;const _0x26d4f7=Array[_0x5584('0x6d')](this[_0x5584('0x12b')]['document'][_0x5584('0xa7')]['getRanges']())[_0x5584('0x6f')](_0x305183=>_0x2e8331[_0x5584('0x14')](_0x305183));_0x48b6f0['setSelection'](_0x3b161f);for(const _0x30b10d of this[_0x5584('0x137')][_0x5584('0x128')]['commands']())_0x30b10d[_0x5584('0xc9')]();_0xa146b9[_0x5584('0x44')]({'forceDefaultExecution':!0x0}),this[_0x5584('0x137')]['execute'](_0x247565,..._0xa146b9);const _0x396990=_0x26d4f7[_0x5584('0xf1')](_0x331905=>_0x5584('0xbf')!=_0x331905[_0x5584('0x86')]['rootName']);_0x396990[_0x5584('0x7')]>0x0&&_0x48b6f0['setSelection'](_0x396990);for(const _0x325164 of _0x26d4f7)_0x325164[_0x5584('0xf3')]();});},_0xec383e=(_0x1195bd,_0x33e3f8)=>0x1==_0x1195bd['length']&&0x1==_0x33e3f8['length']&&_0x1195bd[0x0]['end'][_0x5584('0x2a')](_0x33e3f8[0x0][_0x5584('0x98')]),_0x3d1d7a=(_0x49b7c0,_0x1867a6,_0x15f4fe,_0x3f5723)=>jt(_0x49b7c0,_0x1867a6,_0x15f4fe,_0x3f5723,this[_0x5584('0x12b')])?[_0x49b7c0,_0x1867a6]:jt(_0x1867a6,_0x49b7c0,_0x3f5723,_0x15f4fe,this[_0x5584('0x12b')])?[_0x1867a6,_0x49b7c0]:null;this[_0x5584('0xea')][_0x5584('0x6a')]('insertion:accept',_0x226952),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0xeb'),_0x1e45b7),this['_defaultCallbacks'][_0x5584('0x6a')]('insertion:join',_0xec383e),this[_0x5584('0xea')][_0x5584('0x6a')]('insertion:chain',_0x3d1d7a),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0xc7'),_0x1e45b7),this[_0x5584('0xea')][_0x5584('0x6a')]('deletion:discard',_0x226952),this['_defaultCallbacks']['set']('deletion:join',_0xec383e),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0x125'),_0x3d1d7a),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0x56'),_0x837f1),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0xd8'),_0x226952),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0x12d'),_0xec383e),this[_0x5584('0xea')][_0x5584('0x6a')]('formatInline:chain',_0x226952),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0xb9'),_0x837f1),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0x20'),_0x226952),this['_defaultCallbacks'][_0x5584('0x6a')](_0x5584('0xa8'),_0xec383e),this[_0x5584('0xea')][_0x5584('0x6a')](_0x5584('0x67'),_0x226952);}}function Bt(_0x533d8d,_0x209153,_0x5d3cd6){for(const _0x4e8516 of _0x209153[_0x5584('0x43')][_0x5584('0x80')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4e8516[_0x5584('0x86')]==_0x4e8516)return!0x1;if(!_0x5d3cd6['containsItem'](_0x4e8516))return!0x1;if(_0x533d8d[_0x5584('0x41')](_0x4e8516)||_0x533d8d[_0x5584('0x114')](_0x4e8516))return!0x0;}return!0x1;}function _t(_0x117ca6){return _0x117ca6[_0x5584('0x2f')][_0x5584('0x43')]==_0x117ca6[_0x5584('0x98')][_0x5584('0x10c')]&&_0x117ca6['end'][_0x5584('0x103')];}function Mt(_0x22aefc,_0x34025f,_0x24701c,_0x33b5c8){const _0x58d329=_0x2d846c=>!_0x2d846c[_0x5584('0xda')]['is'](_0x5584('0xcd'))&&!_0x33b5c8[_0x5584('0x41')](_0x2d846c[_0x5584('0xda')]),_0x193950=_0x22aefc[_0x5584('0x98')][_0x5584('0x134')](_0x58d329),_0xb8b86f=_0x22aefc[_0x5584('0x2f')][_0x5584('0x134')](_0x58d329,{'direction':'backward'});return(!_0x22aefc[_0x5584('0x98')][_0x5584('0x2a')](_0x193950)||!_0x22aefc['end'][_0x5584('0x2a')](_0xb8b86f))&&(_0x193950['isBefore'](_0xb8b86f)?_0x24701c['updateMarker'](_0x34025f,{'range':_0x24701c[_0x5584('0x3c')](_0x193950,_0xb8b86f)}):_0x24701c['removeMarker'](_0x34025f),!0x0);}function $t(_0xcdac6f){return _0xdb6fad(_0xcdac6f);}function Nt(_0x5d03dc){const _0x5a98a6=_0x5d03dc[_0x5584('0x98')][_0x5584('0x10c')];return _0x5a98a6&&_0x5a98a6['is'](_0x5584('0x6e'));}function Rt(_0x449384,_0x441fe9){const _0x30358a=_0x441fe9[_0x5584('0x32')][_0x5584('0x41')](_0x449384)||_0x441fe9[_0x5584('0x32')]['isSelectable'](_0x449384);return _0x441fe9[_0x5584('0x3c')](_0x441fe9[_0x5584('0xac')](_0x449384,_0x5584('0x16')),_0x30358a?_0x441fe9['createPositionAfter'](_0x449384):_0x441fe9['createPositionAt'](_0x449384,_0x5584('0x2f')));}function jt(_0x2aea40,_0xc392b6,_0x498ecd,_0x20391d,_0x4460e1){if(!xt(_0x2aea40,_0xc392b6))return!0x1;if(_0x498ecd[_0x5584('0x2f')][_0x5584('0x2a')](_0x20391d[_0x5584('0x98')]))return!0x0;if(_0x2aea40[_0x5584('0x40')]!=_0xc392b6[_0x5584('0x40')])return!0x1;if(!_0x498ecd[_0x5584('0x2f')][_0x5584('0x6')](_0x20391d[_0x5584('0x98')]))return!0x1;const _0xba3d05=_0x4460e1[_0x5584('0x3c')](_0x498ecd[_0x5584('0x2f')],_0x20391d[_0x5584('0x98')])['getWalker']();for(const _0x358680 of _0xba3d05)if([_0x5584('0x17'),_0x5584('0xd5')][_0x5584('0xd0')](_0x358680[_0x5584('0x40')])&&_0x4460e1[_0x5584('0x32')]['isLimit'](_0x358680[_0x5584('0xda')]))return!0x1;return!0x0;}function xt(_0x5c2899,_0x231759){return!(!_0x5c2899[_0x5584('0x13b')]||!_0x231759['_isDataLoaded'])&&_0xddcb7a(_0x5c2899['attributes'],_0x231759[_0x5584('0x52')]);}function Ut(_0x4b2bed,_0x515932){const _0xcaca5f=Ot(_0x4b2bed[_0x5584('0x52')]),_0x172c8a=Ot(_0x515932);if(!_0x4b2bed['_isDataLoaded'])return!0x1;for(const _0x119f7b of Object[_0x5584('0x3f')](_0x172c8a))if(!_0xddcb7a(_0xcaca5f[_0x119f7b],_0x172c8a[_0x119f7b]))return!0x1;return!0x0;}function Ot(_0x471f35){const _0x2e6e6d=Object[_0x5584('0x97')]({},_0x471f35);return delete _0x2e6e6d[_0x5584('0x143')],delete _0x2e6e6d[_0x5584('0x81')],_0x2e6e6d;}
|