@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230729.0 → 0.0.0-nightly-20230730.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-20230730.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-20230730.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230730.0",
|
|
44
44
|
"lodash-es": "4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x17e3=['createRange','suggestion:','markerToData','containsRange','catch','then','resolve','document','has','track-changes-adapter-already-set','isCollapsed','split','low','trackChangesCommand','widget','_registerDefaultCallbacks','parent','plugins','Users','containerElement','discardSelectedSuggestions','getCommentThread','forceDefaultExecution','next','range','_createSuggestion','addHighlight','formatBlock:discard','filter','_handleNewSuggestionMarker','differ','creator','clone','ck-suggestion-marker-','createRangeIn','insertContent','collaboration.channelId','data-suggestion','end','markInsertion','enqueueChange','bindElementToMarker','root','previous','addMarker','always','_setSuggestionRange','name','delete','return','_adapter','conversion','$graveyard','getChanges','group','formatBlock:join','trackChanges','size','removeClass','authorName','suggestion','insertion:chain','nodeAfter','updateMarker','addUser','isAtEnd','discard','change:data','getShiftedBy','containsPosition','listenTo','ready','createPositionAt','multi','splice','markBlockFormat','_updateSuggestionData','author','deletion:','rethrowUnexpectedError','getDifference','values','isInsideObject','_addSuggestionMarker','isUndo','markMultiRangeInsertion','markers','getAncestors','toViewElement','formatBlock','multipleBlocks','_enabledCommands','insertion','position','markDeletion','item','start','open','hasSuggestion','commentThread','markerName','_cutOutSuggestionMarker','change:_saved','marker-count','discardAllSuggestions','oldRange','addMarkerName','_suggestions','_checkSuggestionCorrectness','formatInline:join','_removeSuggestion','suggestionUnloaded','notReady','fire','getAttribute','map','ck-suggestion-marker','_setSuggestionData','_getAuthorFromId','_findSuggestions','formatBlock:','deletion:discard','dataDowncast','markMultiRangeDeletion','markerNameToElements','deletion','change','writer','config','getLastMatchingPosition','never','editingDowncast','getCustomProperty','formatInline:chain','skipNestingCheck','getNearestSelectionRange','_joinSuggestions','discardSuggestion','getRanges','after','updateSuggestion','unbindElementFromMarkerName','_editor','fetchCommentThread','stop','markerToHighlight','getUser','_commentsRepository','backward','isAfter','ck-suggestion-marker-formatBlock','commandName','formatBlock:accept','isBefore','nodeBefore','trackChanges.mergeNestedSuggestions','getRange','insert','@external','fromCharCode','CommentsRepository','getFirstMarker','for','isOwn','suggestionChanged','_saved','stopListening','mapper','consume','addRange','reconvertMarker','getMarkers','removeMarker','createdAt','value','acceptAllSuggestions','isRemovable','ck-suggestion-marker--active','getItems','registerPostFixer','isTouching','normal','authoredAt','_splitMarkerName','accepted','_rangeIsInLocalUserInsertion','add','schema','track-changes-adapter-missing-getsuggestion','unbind','clear','elementEnd','hasComments','attributes','_refreshSuggestionsChain','_breakSuggestionMarker','formatBlock:chain','setSelection','elementToElement','buildSuggestion','_defaultCallbacks','markInlineFormat','enableCommand','join','some','upcast','head','model','define','from','_suggestionState','createSelection','isInContent','formatInline:','getFirstRange','subType','track-changes-user-not-found','markMultiRangeBlockFormat','chain','every','pluginName','addClass','_model','registerCustomCallback','acceptSuggestion','addSuggestionData','external:','_addThreadToSuggestion','getSuggestion','_trackFormatChanges','enableReadOnlyMode','deletion:accept','rootName','set','getChangedMarkers','acceptSelectedSuggestions','data','addMarker:suggestion:formatBlock','getAllAdjacentSuggestions','_joinWithAdjacentSuggestions','update:suggestion','containsRangeInObject','isObject','elementStart','getSuggestions','getIntersection','getSuggestionCallback','deleteContent','trackChanges.trackFormatChanges','consumable','removed','setAttribute','length','getMultiRangeId','suggestion-type','remove','formatInline:accept','_getExternalAuthor','createPositionBefore','isIntersectingWithRange','splitPosition','element','createPositionAfter','isEqual','addSuggestion','locale','before','type','formatInline','push','_customCallbacks','dataToMarker','commands','newRange','error-saving-suggestion-data-suggestion-discarded','selection','get','adapter','requires','formatGroupId','includes','_descriptionFactory','TrackChangesEditing','options','rejected','removeComment','containsItem','removeMarkers','showSuggestionHighlights','batch','editing','addMarker:suggestion','editor','isBlock','init','removeMarker:suggestion:formatBlock','isLimit','high','isExternal','howMany','PENDING_ACTION_SUGGESTION','insertion:','_suggestionFactory','suggestionLoaded','isNextTo','markerReady','_mergeNestedSuggestions','_isForcedDefaultExecutionBlock','track-changes-suggestion-data-mismatch','removeAttribute','$marker','isMultiRange','detach','execute','activeMarkers','accept','fromRange'];(function(_0x16d5a9,_0x17e34e){const _0x55919a=function(_0x266e41){while(--_0x266e41){_0x16d5a9['push'](_0x16d5a9['shift']());}};_0x55919a(++_0x17e34e);}(_0x17e3,0xc3));const _0x5591=function(_0x16d5a9,_0x17e34e){_0x16d5a9=_0x16d5a9-0x0;let _0x55919a=_0x17e3[_0x16d5a9];return _0x55919a;};import{Plugin as _0x393f75,PendingActions as _0x550e94}from'ckeditor5/src/core';import{LiveRange as _0x4cd0ae}from'ckeditor5/src/engine';import{CKEditorError as _0x3f876f,uid as _0x5a9e47,priorities as _0xd32935,logWarning as _0x3758bd}from'ckeditor5/src/utils';import{toWidget as _0x5b99c9}from'ckeditor5/src/widget';import{Users as _0xe8efac,hashObject as _0x5006ef}from'ckeditor5-collaboration/src/collaboration-core';import _0xb38fa from'./commands/trackchangescommand';import _0x3a58a5 from'./commands/acceptsuggestioncommand';import _0x36c5c7 from'./commands/discardsuggestioncommand';import _0x44e77d from'./commands/executeonallsuggestionscommand';import _0x766e85 from'./commands/executeonselectedsuggestionscommand';import _0x37fa21 from'./suggestion';import _0x460519 from'./suggestiondescriptionfactory';import _0x50e97c from'./integrations/alignment';import _0xe8c22d from'./integrations/basicstyles';import _0x4ae653 from'./integrations/blockquote';import _0x12884c from'./integrations/ckbox';import _0x41fbaf from'./integrations/codeblock';import _0xb70e07 from'./integrations/comments';import _0x52cd8b from'./integrations/deletecommand';import _0x5d539e from'./integrations/documentlist';import _0x378a35 from'./integrations/entercommand';import _0x337769 from'./integrations/findandreplace';import _0x3ddd73 from'./integrations/font';import _0x4822ef from'./integrations/formatpainter';import _0x229591 from'./integrations/heading';import _0x3d72b2 from'./integrations/highlight';import _0x23754b from'./integrations/horizontalline';import _0x39b53e from'./integrations/htmlembed';import _0x14e3c8 from'./integrations/image';import _0x36ead6 from'./integrations/imagereplace';import _0x51fef9 from'./integrations/importword';import _0x226cd9 from'./integrations/indent';import _0x1d3353 from'./integrations/inputcommand';import _0x4bedeb from'./integrations/link';import _0x4c8b05 from'./integrations/list';import _0x1e77b9 from'./integrations/listproperties';import _0x50598a from'./integrations/mediaembed';import _0x473d39 from'./integrations/mention';import _0x502196 from'./integrations/pagebreak';import _0x65ee39 from'./integrations/paragraph';import _0x53fc2a from'./integrations/removeformat';import _0x4681e5 from'./integrations/restrictededitingmode';import _0x368e94 from'./integrations/shiftentercommand';import _0x535e06 from'./integrations/standardeditingmode';import _0x233d4e from'./integrations/style';import _0x4005c7 from'./integrations/table';import _0x48c1db from'./integrations/tablemergesplit';import _0x3f7259 from'./integrations/tableheadings';import _0x39a514 from'./integrations/tableclipboard';import _0x42141b from'./integrations/tablecolumnresize';import _0x4530f1 from'./integrations/template';import _0x7cfc69 from'./integrations/tableofcontents';import _0x2a32e6 from'./integrations/title';import _0x54e263 from'./integrations/undo';import{getTranslation as _0x2cdbee}from'./utils/common-translations';import _0x5270a4 from'./integrations/tablecaption';import _0x2fb172 from'./integrations/documentlistproperties';import _0x2304f6 from'./integrations/tableproperties';export default class p extends _0x393f75{static get[_0x5591('0x53')](){return[_0x5591('0x11a'),_0xe8efac,_0x550e94,_0x50e97c,_0xe8c22d,_0x4ae653,_0x12884c,_0x41fbaf,_0xb70e07,_0x52cd8b,_0x5d539e,_0x2fb172,_0x378a35,_0x337769,_0x3ddd73,_0x4822ef,_0x229591,_0x3d72b2,_0x23754b,_0x39b53e,_0x14e3c8,_0x36ead6,_0x51fef9,_0x226cd9,_0x1d3353,_0x4bedeb,_0x4c8b05,_0x1e77b9,_0x50598a,_0x473d39,_0x502196,_0x65ee39,_0x53fc2a,_0x4681e5,_0x368e94,_0x535e06,_0x233d4e,_0x4005c7,_0x48c1db,_0x3f7259,_0x5270a4,_0x39a514,_0x42141b,_0x7cfc69,_0x2304f6,_0x4530f1,_0x2a32e6,_0x54e263];}static get[_0x5591('0x19')](){return _0x5591('0x57');}constructor(_0x165a7f){function _0x9ca482(_0x2fc196){return _0x2fc196[_0x5591('0xed')](_0x5056a9=>String[_0x5591('0x119')](_0x5056a9))['join']('');}super(_0x165a7f),this[_0x5591('0x26')](_0x5591('0x77'),[]),this['on']('change:activeMarkers',(_0x40f968,_0x4fdc83,_0x3f0322,_0x26282c)=>{this[_0x5591('0x1b')][_0x5591('0xf8')](()=>{for(const _0x3a44a0 of[..._0x26282c,..._0x3f0322])this['_model']['markers'][_0x5591('0x82')](_0x3a44a0)&&_0x165a7f[_0x5591('0x5f')][_0x5591('0x124')](_0x3a44a0);});}),this[_0x5591('0x56')]=new _0x460519(this[_0x5591('0x61')]['model'][_0x5591('0x135')],this[_0x5591('0x61')]['locale']),this[_0x5591('0xac')]=null,this[_0x5591('0x6b')]=new Dt(this['editor']),this[_0x5591('0xe5')]=new Map(),this[_0x5591('0x10d')]=_0x165a7f[_0x5591('0x8b')][_0x5591('0x51')](_0x5591('0x11a')),this[_0x5591('0xd5')]=new Set(),this[_0x5591('0x1b')]=this['editor'][_0x5591('0xc')],this[_0x5591('0xf')]=new WeakMap(),this[_0x5591('0x70')]=!0x1,_0x165a7f[_0x5591('0xfa')][_0x5591('0xd')]('trackChanges.trackFormatChanges','default'),this[_0x5591('0x22')]=_0x165a7f[_0x5591('0xfa')][_0x5591('0x51')](_0x5591('0x35')),_0x165a7f['config'][_0x5591('0xd')](_0x5591('0x115'),!0x0),this[_0x5591('0x6f')]=_0x165a7f[_0x5591('0xfa')][_0x5591('0x51')](_0x5591('0x115')),this[_0x5591('0x87')]=new _0xb38fa(_0x165a7f,this['_enabledCommands']),this[_0x9ca482([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x9ca482([0x34,0x30,0x34,0x36,0x31,0x34,0x35,0x38]);}[_0x5591('0x63')](){const _0x43c97f=this[_0x5591('0x61')];_0x43c97f[_0x5591('0xad')]['for']('editingDowncast')[_0x5591('0x10b')]({'model':_0x5591('0xb6'),'view':_0x78e891=>{const {id:_0x3257a1,type:_0x1c004e}=this[_0x5591('0x131')](_0x78e891[_0x5591('0xde')]),_0x5ba6c2=['ck-suggestion-marker',_0x5591('0x9b')+_0x1c004e];let _0x5dc1e7=0xbb8;return this[_0x5591('0x77')]['includes'](_0x78e891['markerName'])&&(_0x5ba6c2[_0x5591('0x4a')](_0x5591('0x12b')),_0x5dc1e7=0xbc2),'deletion'==_0x1c004e&&(_0x5dc1e7+=0x5),{'classes':_0x5ba6c2,'attributes':{'data-suggestion':_0x3257a1},'priority':_0x5dc1e7};}}),_0x43c97f[_0x5591('0xad')][_0x5591('0x11c')](_0x5591('0xf4'))[_0x5591('0x134')](_0x1b9d8c=>{_0x1b9d8c['on'](_0x5591('0x60'),(_0x44b092,_0x53cba1,_0x1f8dd6)=>{if(!_0x1f8dd6['options'][_0x5591('0x5d')])return;const _0xf11670=_0x53cba1[_0x5591('0xd9')];if(!_0xf11670)return;const _0x5450c7=_0x1f8dd6[_0x5591('0x121')]['toViewElement'](_0xf11670);_0x43c97f[_0x5591('0xc')][_0x5591('0x135')][_0x5591('0x2f')](_0xf11670)&&_0x5450c7&&!_0x5450c7[_0x5591('0xfe')](_0x5591('0x88'))&&_0x5450c7['is'](_0x5591('0x8d'))&&_0x5b99c9(_0x5450c7,_0x1f8dd6['writer']);},{'priority':'high'});}),_0x43c97f[_0x5591('0xad')][_0x5591('0x11c')](_0x5591('0xf4'))[_0x5591('0x10b')]({'model':'suggestion','view':(_0x2acab5,_0x36dba5)=>{if(!_0x36dba5['options'][_0x5591('0x5d')])return null;const {type:_0x2779c7}=this[_0x5591('0x131')](_0x2acab5['markerName']);return{'classes':[_0x5591('0xee'),_0x5591('0x9b')+_0x2779c7],'priority':0xbb8};}});const _0x556863=({showActiveMarkers:_0x1b83ed=!0x0}={})=>(_0x414dcc,_0x2d29f5,_0x1d2af7)=>{if(!_0x2d29f5['item'])return;if(_0x2d29f5[_0x5591('0xd9')]['is']('selection'))return void _0x1d2af7[_0x5591('0x36')][_0x5591('0x122')](_0x2d29f5[_0x5591('0xd9')],_0x414dcc['name']);const _0xc777ac=_0x1d2af7[_0x5591('0x121')][_0x5591('0xd2')](_0x2d29f5[_0x5591('0xd9')]);if(!(_0x2d29f5[_0x5591('0xd9')]['is'](_0x5591('0x42'))&&_0x43c97f[_0x5591('0xc')][_0x5591('0x135')][_0x5591('0x62')](_0x2d29f5[_0x5591('0xd9')])&&!_0xc777ac['getCustomProperty'](_0x5591('0x94'))))return;const {id:_0x2902b4}=this[_0x5591('0x131')](_0x2d29f5[_0x5591('0xde')]);_0x1d2af7[_0x5591('0xf9')]['addClass']([_0x5591('0xee'),_0x5591('0x110')],_0xc777ac),_0x1d2af7[_0x5591('0xf9')][_0x5591('0x38')](_0x5591('0x9f'),_0x2902b4,_0xc777ac),_0x1d2af7[_0x5591('0x121')][_0x5591('0xa3')](_0xc777ac,_0x2d29f5[_0x5591('0xde')]),_0x1b83ed&&(this[_0x5591('0x77')]['includes'](_0x2d29f5[_0x5591('0xde')])?_0x1d2af7[_0x5591('0xf9')][_0x5591('0x1a')](_0x5591('0x12b'),_0xc777ac):_0x1d2af7[_0x5591('0xf9')][_0x5591('0xb4')](_0x5591('0x12b'),_0xc777ac));for(const _0x2f3d09 of _0x43c97f[_0x5591('0xc')][_0x5591('0x9c')](_0x2d29f5[_0x5591('0xd9')])[_0x5591('0x12c')]())_0x1d2af7[_0x5591('0x36')][_0x5591('0x122')](_0x2f3d09,_0x414dcc[_0x5591('0xa9')]);_0x1d2af7[_0x5591('0x36')][_0x5591('0x122')](_0x2d29f5['item'],_0x414dcc[_0x5591('0xa9')]);};_0x43c97f[_0x5591('0xad')]['for'](_0x5591('0xf4'))[_0x5591('0x134')](_0x1b5d2e=>{_0x1b5d2e['on'](_0x5591('0x2a'),(_0x54aa9f,_0x301a49,_0x171fa1)=>{_0x171fa1[_0x5591('0x58')]['showSuggestionHighlights']&&_0x556863({'showActiveMarkers':!0x1})(_0x54aa9f,_0x301a49,_0x171fa1);},{'priority':'highest'});}),_0x43c97f[_0x5591('0xad')][_0x5591('0x11c')](_0x5591('0xf4'))[_0x5591('0x7c')]({'model':_0x5591('0xb6'),'view':(_0x2bb826,_0x4749be)=>_0x4749be[_0x5591('0x58')][_0x5591('0x5d')]?null:{'group':_0x5591('0xb6'),'name':_0x2bb826['substr'](0xb)}}),_0x43c97f[_0x5591('0xad')][_0x5591('0x11c')](_0x5591('0xa'))[_0x5591('0x3')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c3619,{writer:_0x23e299})=>{let _0x4d0244=_0x5591('0x7b')+_0x5c3619[_0x5591('0xec')](_0x5591('0x3b'))+':'+_0x5c3619['getAttribute']('id');return _0x5c3619[_0x5591('0xec')](_0x5591('0xe1'))&&(_0x4d0244+=':'+_0x5c3619[_0x5591('0xec')]('marker-count')),_0x23e299['createElement'](_0x5591('0x73'),{'data-name':_0x4d0244});}}),_0x43c97f[_0x5591('0xad')]['for'](_0x5591('0xa'))[_0x5591('0x4c')]({'view':_0x5591('0xb6')}),_0x43c97f[_0x5591('0xad')][_0x5591('0x11c')](_0x5591('0xfd'))[_0x5591('0x134')](_0x35e1d7=>{_0x35e1d7['on']('addMarker:suggestion:formatBlock',_0x556863(),{'priority':'high'});}),_0x43c97f[_0x5591('0xad')][_0x5591('0x11c')](_0x5591('0xfd'))[_0x5591('0x134')](_0x3a12be=>{_0x3a12be['on'](_0x5591('0x64'),(_0x163e94,_0x3ac4c4,_0x4dcbbf)=>{const _0x1aab8d=_0x4dcbbf[_0x5591('0x121')][_0x5591('0xf6')](_0x3ac4c4[_0x5591('0xde')]);if(_0x1aab8d)for(const _0x20c2bc of _0x1aab8d)_0x20c2bc[_0x5591('0xfe')](_0x5591('0x94'))||(_0x4dcbbf['writer'][_0x5591('0xb4')](['ck-suggestion-marker',_0x5591('0x110'),'ck-suggestion-marker--active'],_0x20c2bc),_0x4dcbbf[_0x5591('0xf9')][_0x5591('0x72')]('data-suggestion',_0x20c2bc),_0x4dcbbf[_0x5591('0x121')][_0x5591('0x107')](_0x20c2bc,_0x3ac4c4['markerName']));},{'priority':'high'});}),_0x43c97f[_0x5591('0xc')][_0x5591('0x81')][_0x5591('0x12d')](_0x5b3b7b=>{let _0x1749c3=!0x1;const _0x47e973=Array[_0x5591('0xe')](_0x43c97f[_0x5591('0xc')][_0x5591('0x81')][_0x5591('0x98')]['getChangedMarkers']()),_0x8f83f9=new Set();for(const {name:_0x5a2f7a,data:_0x3274bb}of _0x47e973){const {group:_0x1eac2c,type:_0x8bbe50,id:_0x23ea66}=this['_splitMarkerName'](_0x5a2f7a);if(_0x5591('0xb6')!==_0x1eac2c)continue;const _0x290f07=this['_suggestions'][_0x5591('0x51')](_0x23ea66);if(null!=_0x3274bb[_0x5591('0x4e')]){_0x5591('0x49')==_0x8bbe50&&(_0x1749c3=_0x1749c3||Mt(_0x3274bb['newRange'],_0x5a2f7a,_0x5b3b7b,_0x43c97f['model'][_0x5591('0x135')]));if(_0x3274bb[_0x5591('0x4e')][_0x5591('0x84')]||_0x5591('0xae')==_0x3274bb[_0x5591('0x4e')][_0x5591('0xa4')]['rootName']||_0x5591('0xd3')==_0x8bbe50&&!Nt(_0x3274bb['newRange'])||_0x5591('0xf7')==_0x8bbe50&&!(!_t(_0x2b94d3=_0x3274bb[_0x5591('0x4e')])&&!function(_0x3825b0){return _0x3825b0[_0x5591('0xda')]['parent']==_0x3825b0['end'][_0x5591('0x114')]&&_0x3825b0['start']['isAtEnd'];}(_0x2b94d3)))_0x5b3b7b[_0x5591('0x126')](_0x5a2f7a),_0x1749c3=!0x0;else{if(!_0x290f07||!_0x290f07[_0x5591('0x11')])continue;_0x8f83f9[_0x5591('0x134')](_0x290f07);}}}var _0x2b94d3;return _0x8f83f9[_0x5591('0xb3')]>0x0&&(_0x1749c3=!!this['_joinWithAdjacentSuggestions'](_0x8f83f9)||_0x1749c3),_0x1749c3;}),_0x43c97f[_0x5591('0xc')]['document'][_0x5591('0x12d')](_0x1a2fa0=>{let _0x32ef56=!0x1;for(const _0x32cd4b of _0x43c97f[_0x5591('0xc')][_0x5591('0x81')][_0x5591('0x98')][_0x5591('0xaf')]()){if(_0x5591('0x117')!=_0x32cd4b[_0x5591('0x48')])continue;const _0x196ff3=_0x32cd4b[_0x5591('0xd7')][_0x5591('0xbe')](_0x32cd4b[_0x5591('0x39')]);if(_0x196ff3[_0x5591('0xbb')])for(const _0x11e71a of this['_suggestions'][_0x5591('0xcb')]()){if(_0x11e71a['isMultiRange']||!_0x11e71a[_0x5591('0x11')])continue;if('formatBlock'!=_0x11e71a[_0x5591('0x48')])continue;const _0x4d7e22=_0x11e71a['getFirstRange']();if(_0x4d7e22[_0x5591('0xda')][_0x5591('0x8a')]!=_0x4d7e22[_0x5591('0xa0')][_0x5591('0x8a')]&&_0x4d7e22[_0x5591('0xa0')]['isEqual'](_0x32cd4b[_0x5591('0xd7')])){const _0x15d2af=_0x43c97f[_0x5591('0xc')][_0x5591('0x7a')](_0x4d7e22[_0x5591('0xda')],_0x196ff3);_0x1a2fa0['updateMarker'](_0x11e71a[_0x5591('0x11b')](),{'range':_0x15d2af}),_0x32ef56=!0x0;}}}return _0x32ef56;}),_0x43c97f['model'][_0x5591('0xd0')]['on'](_0x5591('0x2d'),(_0x155850,_0x1438bb,_0x3757c3)=>{if(null==_0x3757c3){const {id:_0x1b2180}=this[_0x5591('0x131')](_0x1438bb[_0x5591('0xa9')]),_0x5699e9=this['_suggestions'][_0x5591('0x51')](_0x1b2180);_0x5699e9&&_0x5699e9[_0x5591('0xe4')](_0x1438bb[_0x5591('0xa9')]);}}),_0x43c97f[_0x5591('0xc')][_0x5591('0x81')]['on'](_0x5591('0xbd'),()=>{const _0x58618d=Array[_0x5591('0xe')](_0x43c97f[_0x5591('0xc')]['document'][_0x5591('0x98')][_0x5591('0x27')]())['filter'](_0x263b40=>'suggestion'===this['_splitMarkerName'](_0x263b40[_0x5591('0xa9')])[_0x5591('0xb0')]);if(0x0===_0x58618d[_0x5591('0x39')])return;_0x58618d['sort']((_0xbccc81,_0x5204d7)=>{const _0x2a05ca=_0xbccc81[_0x5591('0x29')][_0x5591('0xe3')],_0x2ccab8=_0x5204d7['data'][_0x5591('0xe3')];return null===_0x2a05ca&&null===_0x2ccab8?0x0:null===_0x2a05ca&&null!==_0x2ccab8?-0x1:null!==_0x2a05ca&&null===_0x2ccab8?0x1:_0x2a05ca['start'][_0x5591('0x113')](_0x2ccab8['start'])?-0x1:0x1;});const _0x4fa18c=new Set(),_0x41413f=new Set();for(const {name:_0xa0b1f2,data:_0x2ae3c9}of _0x58618d){const {id:_0x38654a}=this[_0x5591('0x131')](_0xa0b1f2);if(null===_0x2ae3c9[_0x5591('0xe3')]){const _0x51f53c=this[_0x5591('0x97')](_0xa0b1f2);_0x41413f[_0x5591('0x134')](_0x51f53c);}else{const _0x4554d4=this[_0x5591('0xe5')][_0x5591('0x51')](_0x38654a);null!==_0x2ae3c9[_0x5591('0x4e')]||_0x4554d4[_0x5591('0x11')]?(_0x4fa18c[_0x5591('0x134')](_0x4554d4[_0x5591('0xb')]),_0x41413f[_0x5591('0x134')](_0x4554d4)):this[_0x5591('0xe8')](_0x4554d4);}}_0x41413f[_0x5591('0xb3')]>0x0&&this[_0x5591('0x13c')](_0x41413f);for(const _0x16121e of _0x4fa18c)this[_0x5591('0xeb')](_0x5591('0x11e'),_0x16121e);}),_0x43c97f[_0x5591('0xc')]['on']('applyOperation',(_0xe85253,_0xc4f530)=>{const _0x4fcdd7=_0xc4f530[0x0];if(!this[_0x5591('0xe5')][_0x5591('0xb3')])return;if(!_0x4fcdd7['isDocumentOperation'])return;if(_0x4fcdd7[_0x5591('0x5e')][_0x5591('0xce')]||!_0x4fcdd7[_0x5591('0x5e')]['isLocal'])return;let _0x168dc1,_0x514cf3;switch(_0x4fcdd7[_0x5591('0x48')]){case _0x5591('0x117'):_0x168dc1=_0x43c97f[_0x5591('0xc')][_0x5591('0xc2')](_0x4fcdd7[_0x5591('0xd7')]),_0x514cf3=_0x168dc1[_0x5591('0xbe')](_0x4fcdd7[_0x5591('0x68')]);break;case _0x5591('0x85'):_0x168dc1=_0x43c97f[_0x5591('0xc')][_0x5591('0xc2')](_0x4fcdd7[_0x5591('0x41')]),_0x514cf3=_0x43c97f[_0x5591('0xc')][_0x5591('0xc2')](_0x4fcdd7['moveTargetPosition']);break;case'move':_0x168dc1=_0x43c97f[_0x5591('0xc')][_0x5591('0xc2')](_0x4fcdd7['targetPosition']),_0x514cf3=_0x168dc1[_0x5591('0xbe')](_0x4fcdd7[_0x5591('0x68')]);break;default:return;}const _0xef6908=_0x43c97f['model'][_0x5591('0x7a')](_0x168dc1,_0x514cf3);_0x43c97f[_0x5591('0xc')][_0x5591('0xf8')](()=>{for(const {suggestion:_0x1f1804,meta:_0x174233}of this[_0x5591('0xf1')](_0xef6908)){if(_0x1f1804['isMultiRange'])continue;if(_0x5591('0x49')==_0x1f1804[_0x5591('0x48')])continue;const _0x548fcd=_0x1f1804[_0x5591('0x29')]&&_0x1f1804[_0x5591('0x29')][_0x5591('0xd4')];(_0x5591('0xd3')!=_0x1f1804['type']||_0x5591('0x85')==_0x4fcdd7['type']&&!_0x548fcd)&&(_0x174233[_0x5591('0x2e')]||_0x5591('0xd6')==_0x1f1804['type']&&_0x174233[_0x5591('0x11d')]||_0x1f1804[_0x5591('0x13')]()[_0x5591('0x7d')](_0xef6908)&&this[_0x5591('0x0')](_0x1f1804,_0x168dc1,_0x514cf3));}});},{'priority':'lowest'}),_0x43c97f[_0x5591('0xc')]['on']('deleteContent',(_0x214677,_0x1b7afc)=>{const _0x4f1a4b=_0x1b7afc[0x0],_0x198eff=_0x1b7afc[0x1];if(_0x198eff&&_0x198eff[_0x5591('0x90')])return;if(this[_0x5591('0x70')])return;if(!this[_0x5591('0x87')][_0x5591('0x128')])return;if(_0x4f1a4b[_0x5591('0x84')])return;const _0x26f5f4=_0x43c97f[_0x5591('0xc')][_0x5591('0x135')],{start:_0x1d11ee,end:_0x1e1a66}=_0x4f1a4b[_0x5591('0x13')](),_0x1d3e61=_0x1d11ee['nodeAfter']&&_0x26f5f4[_0x5591('0x65')](_0x1d11ee['nodeAfter'])?null:_0x26f5f4[_0x5591('0x101')](_0x1d11ee,'forward'),_0x506a48=_0x1e1a66[_0x5591('0x114')]&&_0x26f5f4['isLimit'](_0x1e1a66[_0x5591('0x114')])?null:_0x26f5f4[_0x5591('0x101')](_0x1e1a66,_0x5591('0x10e')),_0x57cffe=_0x43c97f[_0x5591('0xc')][_0x5591('0x7a')](_0x1d3e61?_0x1d3e61[_0x5591('0xda')]:_0x1d11ee,_0x506a48?_0x506a48[_0x5591('0xa0')]:_0x1e1a66);_0x43c97f['model']['change'](_0x3f3409=>{this[_0x5591('0xd8')](_0x57cffe);const _0x402a26=_0x43c97f['model'][_0x5591('0x135')][_0x5591('0x101')](_0x57cffe['start']);_0x4f1a4b['is']('documentSelection')?_0x3f3409[_0x5591('0x2')](_0x402a26):_0x4f1a4b['setTo'](_0x402a26);}),_0x214677[_0x5591('0x10a')]();},{'priority':_0xd32935[_0x5591('0x12f')]+0xa}),_0x43c97f[_0x5591('0xc')]['on'](_0x5591('0x9d'),(_0x50cc2b,_0x2b9c58)=>{const _0x504ae6=_0x2b9c58[_0x2b9c58[_0x5591('0x39')]-0x1];_0x504ae6&&_0x504ae6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x43c97f['model'][_0x5591('0xf8')](()=>{let _0x3b07f7=_0x43c97f[_0x5591('0xc')][_0x5591('0x9d')](_0x2b9c58[0x0],_0x2b9c58[0x1],_0x2b9c58[0x2],{'forceDefaultExecution':!0x0});if(!_0x3b07f7)return;_0x50cc2b[_0x5591('0xab')]=_0x3b07f7[_0x5591('0x9a')]();const _0x388981=_0x3b07f7[_0x5591('0xa0')][_0x5591('0x114')],_0x45f853=_0x43c97f['model'][_0x5591('0x135')];_0x388981&&_0x45f853['isBlock'](_0x388981)&&!_0x45f853[_0x5591('0x2f')](_0x388981)&&(_0x3b07f7=_0x43c97f[_0x5591('0xc')][_0x5591('0x7a')](_0x3b07f7[_0x5591('0xda')],_0x43c97f[_0x5591('0xc')][_0x5591('0xc2')](_0x388981,_0x5591('0xa0')))),this[_0x5591('0xa1')](_0x3b07f7);}),_0x50cc2b[_0x5591('0x10a')]());},{'priority':_0x5591('0x66')}),this[_0x5591('0x61')][_0x5591('0x4d')][_0x5591('0x134')](_0x5591('0xb2'),this[_0x5591('0x87')]),this['enableCommand'](_0x5591('0xb2'));const _0x55fdd3=new _0x3a58a5(_0x43c97f,this['_suggestions']);_0x43c97f[_0x5591('0x4d')][_0x5591('0x134')](_0x5591('0x1d'),_0x55fdd3),this[_0x5591('0x7')](_0x5591('0x1d'));const _0x47b4b9=new _0x36c5c7(_0x43c97f,this[_0x5591('0xe5')]);_0x43c97f[_0x5591('0x4d')][_0x5591('0x134')](_0x5591('0x103'),_0x47b4b9),this[_0x5591('0x7')]('discardSuggestion'),_0x43c97f[_0x5591('0x4d')]['add'](_0x5591('0x129'),new _0x44e77d(_0x43c97f,_0x55fdd3,this[_0x5591('0xe5')])),this[_0x5591('0x7')](_0x5591('0x129')),_0x43c97f['commands'][_0x5591('0x134')](_0x5591('0xe2'),new _0x44e77d(_0x43c97f,_0x47b4b9,this[_0x5591('0xe5')])),this['enableCommand'](_0x5591('0xe2')),_0x43c97f[_0x5591('0x4d')][_0x5591('0x134')]('acceptSelectedSuggestions',new _0x766e85(_0x43c97f,_0x55fdd3,this[_0x5591('0xe5')])),this[_0x5591('0x7')](_0x5591('0x28')),_0x43c97f[_0x5591('0x4d')][_0x5591('0x134')]('discardSelectedSuggestions',new _0x766e85(_0x43c97f,_0x47b4b9,this[_0x5591('0xe5')])),this[_0x5591('0x7')](_0x5591('0x8e'));const _0x546e09=_0x43c97f[_0x5591('0x8b')][_0x5591('0x51')](_0x5591('0x11a'));this['listenTo'](_0x546e09,'addComment',(_0xaf2358,{threadId:_0x20a665})=>{const _0x33715b=this[_0x5591('0xe5')][_0x5591('0x51')](_0x20a665);_0x33715b&&_0x33715b[_0x5591('0xdd')]&&0x1===_0x33715b[_0x5591('0xdd')][_0x5591('0x39')]&&this[_0x5591('0xc6')](_0x20a665,{'hasComments':!0x0});},{'priority':_0x5591('0x86')}),this['listenTo'](_0x546e09,_0x5591('0x5a'),(_0x562687,{threadId:_0x508101})=>{const _0x3d2f9c=this[_0x5591('0xe5')][_0x5591('0x51')](_0x508101);_0x3d2f9c&&_0x3d2f9c[_0x5591('0xdd')]&&!_0x3d2f9c['commentThread'][_0x5591('0x39')]&&this[_0x5591('0xc6')](_0x508101,{'hasComments':!0x1});},{'priority':_0x5591('0x86')});}set[_0x5591('0x52')](_0x84f8c2){if(this[_0x5591('0xac')])throw new _0x3f876f(_0x5591('0x83'),this);this[_0x5591('0xac')]=_0x84f8c2;}get[_0x5591('0x52')](){return this[_0x5591('0xac')];}[_0x5591('0x31')]({skipNotAttached:_0x9e3926=!0x1,toJSON:_0x5aa489=!0x1}={}){const _0x301e57=[];for(const _0x544ac2 of this[_0x5591('0xe5')][_0x5591('0xcb')]())_0x9e3926&&!_0x544ac2[_0x5591('0x11')]||_0x301e57[_0x5591('0x4a')](_0x544ac2);return _0x5aa489?_0x301e57[_0x5591('0xed')](_0x479d4e=>_0x479d4e['toJSON']()):_0x301e57;}[_0x5591('0x21')](_0x30ce42){const _0x415bd8=this[_0x5591('0xe5')][_0x5591('0x51')](_0x30ce42);if(!_0x415bd8)throw new _0x3f876f('track-changes-suggestion-not-found',this);return _0x415bd8;}[_0x5591('0xdc')](_0x15bc6d){return this[_0x5591('0xe5')][_0x5591('0x82')](_0x15bc6d);}[_0x5591('0x1e')](_0x3ec7e0){const {authorId:_0x427f72,id:_0x20da77,attributes:_0xd14f2b}=_0x3ec7e0,[_0x362c88,_0x5815d8]=_0x3ec7e0['type']['split'](':'),_0x1c91ef=this[_0x5591('0xe5')][_0x5591('0x51')](_0x20da77)||this['_createSuggestion'](_0x362c88,_0x5815d8,_0x20da77,_0x427f72,_0xd14f2b);if(this[_0x5591('0x20')](_0x1c91ef),this[_0x5591('0xe6')](_0x1c91ef,_0x362c88,_0x5815d8||null,_0x427f72),_0x1c91ef[_0x5591('0x127')]=_0x3ec7e0[_0x5591('0x127')],_0xd14f2b&&_0xd14f2b[_0x5591('0x118')]){const _0x266c10=_0xd14f2b[_0x5591('0x118')],_0x1e70e0=this[_0x5591('0x3e')](_0x266c10[_0x5591('0xb5')]);_0x1c91ef['authoredAt']=_0x266c10[_0x5591('0x127')],_0x1c91ef[_0x5591('0xc7')]=_0x1e70e0,_0x1c91ef[_0x5591('0x67')]=!0x0;}else _0x1c91ef[_0x5591('0x130')]=_0x3ec7e0[_0x5591('0x127')];switch(_0x3ec7e0[_0x5591('0x29')]&&(_0x1c91ef[_0x5591('0x29')]=_0x3ec7e0['data']),_0x3ec7e0['attributes']&&(_0x1c91ef[_0x5591('0x13b')]=_0x3ec7e0[_0x5591('0x13b')]),this[_0x5591('0xac')]&&this[_0x5591('0xac')][_0x5591('0x45')]||(_0x1c91ef[_0x5591('0x11f')]=!0x0),this[_0x5591('0xf')][_0x5591('0x51')](_0x1c91ef)){case _0x5591('0xea'):this[_0x5591('0xf')][_0x5591('0x26')](_0x1c91ef,'dataReady');break;case _0x5591('0x6e'):_0x1c91ef[_0x5591('0x11')]?(this[_0x5591('0xf')][_0x5591('0x26')](_0x1c91ef,_0x5591('0xc1')),this[_0x5591('0xeb')](_0x5591('0x6c'),_0x1c91ef)):this['_suggestionState']['set'](_0x1c91ef,_0x5591('0x37'));}return _0x1c91ef;}[_0x5591('0x1d')](_0x5f16e0){this[_0x5591('0x90')](()=>{this[_0x5591('0x61')][_0x5591('0xc')][_0x5591('0xf8')](()=>{for(const _0x192086 of _0x5f16e0[_0x5591('0x2b')]())_0x192086['accept']();});});}[_0x5591('0x103')](_0x469b72){this[_0x5591('0x90')](()=>{this['editor'][_0x5591('0xc')][_0x5591('0xf8')](()=>{for(const _0x395cfa of _0x469b72[_0x5591('0x2b')]())_0x395cfa[_0x5591('0xbc')]();});});}[_0x5591('0x7')](_0x21a35e,_0x3c0ff7){const _0x335b0a=this[_0x5591('0x61')][_0x5591('0x4d')][_0x5591('0x51')](_0x21a35e);if(!_0x335b0a)throw new _0x3f876f('track-changes-command-not-found',this,{'commandName':_0x21a35e});this[_0x5591('0xd5')][_0x5591('0x134')](_0x335b0a),_0x3c0ff7&&_0x335b0a['on']('execute',(_0x5c85a3,_0x2924a5)=>{this[_0x5591('0x87')][_0x5591('0x128')]&&(this['_isForcedDefaultExecutionBlock']||_0x2924a5[_0x5591('0x39')]>0x0&&_0x2924a5[_0x2924a5[_0x5591('0x39')]-0x1]&&_0x2924a5[_0x2924a5[_0x5591('0x39')]-0x1]['forceDefaultExecution']||(_0x3c0ff7((..._0x357d9f)=>_0x335b0a['execute'](..._0x357d9f,{'forceDefaultExecution':!0x0}),..._0x2924a5),_0x5c85a3[_0x5591('0x10a')]()));},{'priority':_0x5591('0x66')});}[_0x5591('0x90')](_0xea90a1){let _0x3e241a,_0x48b8b8;const _0x1f3ed6=this[_0x5591('0x70')];this[_0x5591('0x70')]=!0x0;try{_0x3e241a=_0xea90a1();}catch(_0x4a8ec1){_0x48b8b8=_0x4a8ec1;}return _0x1f3ed6||(this[_0x5591('0x70')]=!0x1),_0x48b8b8&&_0x3f876f[_0x5591('0xc9')](_0x48b8b8,this),_0x3e241a;}['markInsertion'](_0x11a3b9,_0x48e198=null,_0x491a05={}){if(_0x11a3b9[_0x5591('0x84')])return null;const _0x470fff=this[_0x5591('0x61')][_0x5591('0x8b')][_0x5591('0x51')]('Users')['me'];for(const {suggestion:_0x2516e5,meta:_0x89c051}of this[_0x5591('0xf1')](_0x11a3b9,_0x5591('0xd6')))if(_0x89c051['isOwn']){if(!_0x89c051['isNextTo']){if(!this[_0x5591('0x6f')]&&_0x89c051['containsRangeInObject'])continue;return _0x2516e5;}if(_0x48e198==_0x2516e5[_0x5591('0x14')]){const _0x1090f4=_0x2516e5[_0x5591('0x13')]();return _0x1090f4[_0x5591('0xda')][_0x5591('0x44')](_0x11a3b9[_0x5591('0xa0')])?this[_0x5591('0xa8')](_0x2516e5,this['_model']['createRange'](_0x11a3b9[_0x5591('0xda')],_0x1090f4[_0x5591('0xa0')])):this[_0x5591('0xa8')](_0x2516e5,this[_0x5591('0x1b')]['createRange'](_0x1090f4['start'],_0x11a3b9[_0x5591('0xa0')])),_0x2516e5;}}const _0x335fdd=_0x5a9e47(),_0x4e67d0=_0x470fff['id'],_0x140256=_0x48e198?_0x5591('0x6a')+_0x48e198:_0x5591('0xd6'),_0x5d8488=this[_0x5591('0xef')]({'id':_0x335fdd,'type':_0x140256,'createdAt':new Date(),'authorId':_0x4e67d0,'attributes':_0x491a05});return this['_addSuggestionMarker'](_0x140256,_0x335fdd,_0x4e67d0,_0x11a3b9),_0x5d8488;}[_0x5591('0xcf')](_0x2d548a,_0x68869c=_0x5591('0xc3'),_0x341440={}){const _0x2e880a=this[_0x5591('0x61')][_0x5591('0x8b')]['get']('Users')['me'],_0x1f197c=this[_0x5591('0x6b')][_0x5591('0x33')](_0x5591('0xd6'),_0x68869c,'join');for(const _0x4fa7f4 of this[_0x5591('0x31')]())if(_0x4fa7f4[_0x5591('0xc7')]['id']==_0x2e880a['id']&&_0x5591('0xd6')==_0x4fa7f4[_0x5591('0x48')]&&_0x4fa7f4['subType']==_0x68869c&&(_0x1f197c(_0x4fa7f4['getRanges'](),_0x2d548a)||_0x1f197c(_0x2d548a,_0x4fa7f4[_0x5591('0x104')]()))){for(const _0x124615 of _0x2d548a)_0x4fa7f4[_0x5591('0x123')](_0x124615);return _0x4fa7f4;}if(this['_mergeNestedSuggestions'])for(const _0x2b70d0 of _0x2d548a)for(const {suggestion:_0x112c5a,meta:_0xed9232}of this[_0x5591('0xf1')](_0x2b70d0,_0x5591('0xd6'))){if(!_0xed9232[_0x5591('0x11d')])continue;let _0x3386e3=!0x0;for(const _0x5f1fba of _0x112c5a[_0x5591('0x104')]())for(const _0x1328d6 of _0x2d548a)if(!_0x5f1fba['containsRange'](_0x1328d6)){_0x3386e3=!0x1;break;}if(_0x3386e3)return _0x112c5a;}const _0x5c8159=_0x5a9e47(),_0x217e5e=_0x2e880a['id'],_0x483ce1=_0x5591('0x6a')+_0x68869c,_0x5c3880=this[_0x5591('0xef')]({'id':_0x5c8159,'type':_0x483ce1,'createdAt':new Date(),'authorId':_0x217e5e,'attributes':_0x341440});for(const _0x28f6ea of _0x2d548a)this[_0x5591('0xcd')](_0x483ce1,_0x5c8159,_0x217e5e,_0x28f6ea,_0x37fa21[_0x5591('0x3a')]());return _0x5c3880;}[_0x5591('0x6')](_0x38043a,_0x472efd,_0x34cb18=null,_0x539755={}){if(_0x34cb18=_0x34cb18||$t(_0x472efd),_0x38043a[_0x5591('0x84')])return null;if('never'===this[_0x5591('0x22')]){const _0x3ec8ef=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x34cb18,'accept');return this[_0x5591('0x90')](()=>_0x3ec8ef([_0x38043a],_0x472efd,_0x539755)),null;}const _0x305baa=this[_0x5591('0x61')][_0x5591('0x8b')]['get'](_0x5591('0x8c'))['me'],_0xf570c3=[];if(_0x5591('0xa7')!==this[_0x5591('0x22')])for(const {suggestion:_0x4dfb39,meta:_0x21e056}of this[_0x5591('0xf1')](_0x38043a,_0x5591('0xd6')))_0x21e056[_0x5591('0x11d')]&&!_0x21e056[_0x5591('0xcc')]&&_0xf570c3[_0x5591('0x4a')](..._0x4dfb39[_0x5591('0x104')]());const _0x26334e=function(_0x3aa93b,_0x2a4f1e){const _0x5415d7=[];for(const _0x5b2c45 of _0x2a4f1e){const _0x445f40=_0x3aa93b['getIntersection'](_0x5b2c45);_0x445f40&&_0x5415d7[_0x5591('0x4a')](_0x445f40);}return _0x5415d7;}(_0x38043a,_0xf570c3),_0x5ba0b=function(_0x48cc1a,_0x400db6){const _0x4294a8=[_0x48cc1a];for(const _0x2dd86b of _0x400db6){let _0x1598f5=0x0;for(;_0x1598f5<_0x4294a8[_0x5591('0x39')];){const _0x1d399d=_0x4294a8[_0x1598f5]['getDifference'](_0x2dd86b);_0x4294a8[_0x5591('0xc4')](_0x1598f5,0x1,..._0x1d399d),_0x1598f5+=_0x1d399d[_0x5591('0x39')];}}return _0x4294a8;}(_0x38043a,_0xf570c3);_0x26334e['length']&&this[_0x5591('0x1b')][_0x5591('0xf8')](()=>{for(const _0x30fff5 of _0x26334e){const _0xdf3f3f=this['_suggestionFactory']['getSuggestionCallback'](_0x5591('0x49'),_0x34cb18,_0x5591('0x78'));this[_0x5591('0x90')](()=>_0xdf3f3f([_0x30fff5],_0x472efd,_0x539755));}});for(const _0x231c6f of _0x5ba0b){let _0x5a3884=null,_0x4160d4=_0x231c6f[_0x5591('0xda')],_0x142194=_0x231c6f['end'];for(const {suggestion:_0x14f400,meta:_0x47e64b}of this[_0x5591('0xf1')](_0x231c6f,_0x5591('0x49'))){if(!_0x47e64b[_0x5591('0x11d')])continue;if(_0x14f400[_0x5591('0x14')]!=_0x34cb18)continue;const _0x27731b=_0x14f400[_0x5591('0x13')]();if(_0x27731b['containsRange'](_0x231c6f,!0x0))return null;_0x4160d4=_0x4160d4[_0x5591('0x113')](_0x27731b['start'])?_0x4160d4:_0x27731b[_0x5591('0xda')],_0x142194=_0x142194[_0x5591('0x10f')](_0x27731b[_0x5591('0xa0')])?_0x142194:_0x27731b['end'],_0x5a3884?_0x27731b[_0x5591('0xda')]['isBefore'](_0x5a3884[_0x5591('0x13')]()[_0x5591('0xda')])?(_0x5a3884['removeMarkers'](),_0x5a3884=_0x14f400):_0x14f400[_0x5591('0x5c')]():_0x5a3884=_0x14f400;}const _0x59cc99=this[_0x5591('0x1b')][_0x5591('0x7a')](_0x4160d4,_0x142194);if(_0x5a3884)this[_0x5591('0xa8')](_0x5a3884,_0x59cc99);else{const _0x1c6559=_0x5a9e47(),_0x26cfa1=_0x305baa['id'];this[_0x5591('0xef')]({'id':_0x1c6559,'type':_0x5591('0x12')+_0x34cb18,'data':_0x472efd,'createdAt':new Date(),'authorId':_0x26cfa1,'attributes':_0x539755}),this[_0x5591('0xcd')](_0x5591('0x12')+_0x34cb18,_0x1c6559,_0x26cfa1,_0x59cc99);}}return null;}[_0x5591('0xc5')](_0x26b13c,_0x4f3a34,_0x4dcf35=[],_0x5e8932=null,_0x450281={}){_0x4f3a34[_0x5591('0x54')]||(_0x4f3a34[_0x5591('0x54')]=_0x4f3a34[_0x5591('0x111')]),_0x4f3a34[_0x5591('0xd4')]=_0x26b13c['is']('range'),_0x5e8932=_0x5e8932||$t(_0x4f3a34);const _0x3ab60a=_0x4dcf35[_0x5591('0xed')](_0x1e61ea=>Rt(_0x1e61ea,this[_0x5591('0x1b')])),_0x5ef87d=_0x26b13c['is'](_0x5591('0x92'))?_0x26b13c:Rt(_0x26b13c,this['_model']);if(_0x5591('0xfc')===this[_0x5591('0x22')]){const _0x4c9cf7=this[_0x5591('0x6b')][_0x5591('0x33')](_0x5591('0xd3'),_0x5e8932,_0x5591('0x78'));return this['forceDefaultExecution'](()=>_0x4c9cf7([_0x5ef87d],_0x4f3a34,_0x450281)),null;}_0x3ab60a['push'](_0x5ef87d);let _0x22e894=!0x0;for(const _0xc79729 of _0x3ab60a)if(!this[_0x5591('0x133')](_0xc79729)){_0x22e894=!0x1;break;}if(_0x22e894&&_0x5591('0xa7')!==this[_0x5591('0x22')]){const _0x58e6b1=this[_0x5591('0x6b')][_0x5591('0x33')]('formatBlock',_0x5e8932,_0x5591('0x78'));return this[_0x5591('0x90')](()=>_0x58e6b1([_0x5ef87d],_0x4f3a34,_0x450281)),null;}let _0x753bd7=null,_0x58daed=_0x5ef87d['start'],_0x2299d7=_0x5ef87d['end'];for(const {suggestion:_0x41cb58,meta:_0x283ad9}of this['_findSuggestions'](_0x5ef87d,_0x5591('0xd3'))){if(!_0x283ad9[_0x5591('0x11d')]||_0x283ad9[_0x5591('0x6d')]||_0x283ad9['containsRangeInObject']||_0x283ad9[_0x5591('0xcc')])continue;if(_0x41cb58[_0x5591('0x29')][_0x5591('0x54')]!=_0x4f3a34[_0x5591('0x54')])continue;const _0x374e32=_0x41cb58[_0x5591('0x13')]();if(_0x41cb58[_0x5591('0x14')]==_0x5e8932){if(_0x374e32[_0x5591('0x7d')](_0x5ef87d,!0x0))return null;_0x58daed=_0x58daed[_0x5591('0x113')](_0x374e32[_0x5591('0xda')])?_0x58daed:_0x374e32['start'],_0x2299d7=_0x2299d7[_0x5591('0x10f')](_0x374e32[_0x5591('0xa0')])?_0x2299d7:_0x374e32['end'],_0x753bd7?_0x374e32[_0x5591('0xda')][_0x5591('0x113')](_0x753bd7[_0x5591('0x13')]()[_0x5591('0xda')])?(_0x753bd7[_0x5591('0x5c')](),_0x753bd7=_0x41cb58):_0x41cb58[_0x5591('0x5c')]():_0x753bd7=_0x41cb58;}else{const _0x4ddf7f=_0x5ef87d[_0x5591('0x32')](_0x374e32);this[_0x5591('0xdf')](_0x41cb58,_0x4ddf7f);}}const _0x247ee5=this[_0x5591('0x61')][_0x5591('0x8b')][_0x5591('0x51')]('Users')['me'],_0xa8cee7=_0x5a9e47(),_0x1523d6=_0x247ee5['id'];if(_0x753bd7)return this[_0x5591('0xa8')](_0x753bd7,this[_0x5591('0x1b')][_0x5591('0x7a')](_0x58daed,_0x2299d7)),_0x753bd7;{const _0x2c226b=this[_0x5591('0xef')]({'id':_0xa8cee7,'type':_0x5591('0xf2')+_0x5e8932,'data':_0x4f3a34,'createdAt':new Date(),'authorId':_0x1523d6,'attributes':_0x450281});return this['_addSuggestionMarker'](_0x5591('0xf2')+_0x5e8932,_0xa8cee7,_0x1523d6,this['_model'][_0x5591('0x7a')](_0x58daed,_0x2299d7)),_0x2c226b;}}[_0x5591('0x16')](_0x2a165a,_0x25127b,_0x543ac3=[],_0x71a583=null,_0x5bdfa9={}){_0x25127b['formatGroupId']||(_0x25127b[_0x5591('0x54')]=_0x25127b[_0x5591('0x111')]);const _0x14b4b5=_0x2a165a[0x0];_0x25127b[_0x5591('0xd4')]=_0x14b4b5['is'](_0x5591('0x92')),_0x71a583=_0x71a583||$t(_0x25127b);const _0xf1e45e=_0x543ac3['map'](_0x538d22=>Rt(_0x538d22,this[_0x5591('0x1b')])),_0x148770=_0x14b4b5['is']('range')?_0x2a165a:_0x2a165a[_0x5591('0xed')](_0x28b76f=>Rt(_0x28b76f,this[_0x5591('0x1b')]));if(_0x5591('0xfc')===this[_0x5591('0x22')]){const _0x115ffe=this[_0x5591('0x6b')][_0x5591('0x33')](_0x5591('0xd3'),_0x71a583,_0x5591('0x78'));return this[_0x5591('0x90')](()=>_0x115ffe(_0x148770,_0x25127b,_0x5bdfa9)),null;}_0xf1e45e['push'](..._0x148770);let _0x1eff4f=!0x0;for(const _0xba9cb3 of _0xf1e45e)if(!this[_0x5591('0x133')](_0xba9cb3)){_0x1eff4f=!0x1;break;}if(_0x1eff4f&&_0x5591('0xa7')!==this[_0x5591('0x22')]){const _0x34a720=this[_0x5591('0x6b')][_0x5591('0x33')](_0x5591('0xd3'),_0x71a583,_0x5591('0x78'));return this[_0x5591('0x90')](()=>_0x34a720(_0x148770,_0x25127b,_0x5bdfa9)),null;}const _0x4ffc76=this['editor']['plugins']['get'](_0x5591('0x8c'))['me'];for(const _0x3f07d0 of this[_0x5591('0x31')]()){if(_0x3f07d0[_0x5591('0xc7')]['id']!=_0x4ffc76['id'])continue;if('formatBlock'!=_0x3f07d0[_0x5591('0x48')]||_0x3f07d0[_0x5591('0x29')][_0x5591('0x54')]!=_0x25127b[_0x5591('0x54')])continue;const _0x4f14cd=_0x3f07d0[_0x5591('0x14')]==_0x71a583;for(let _0x80efe4=0x0;_0x80efe4<_0x148770[_0x5591('0x39')];_0x80efe4++){const _0x57bb2a=_0x148770[_0x80efe4];for(const _0x54e2c3 of _0x3f07d0[_0x5591('0x125')]()){const _0x1777ba=_0x54e2c3[_0x5591('0x116')]();if(_0x57bb2a[_0x5591('0x44')](_0x1777ba)){_0x4f14cd?(_0x148770[_0x5591('0xc4')](_0x80efe4,0x1),_0x80efe4--):_0x3f07d0[_0x5591('0x126')](_0x54e2c3['name']);break;}}}}if(0x0==_0x148770['length'])return null;const _0x29718b=this[_0x5591('0x6b')][_0x5591('0x33')](_0x5591('0xd3'),_0x71a583,_0x5591('0x8'));for(const _0x5eecb0 of this['getSuggestions']())if(_0x5eecb0[_0x5591('0xc7')]['id']==_0x4ffc76['id']&&_0x5591('0xd3')==_0x5eecb0[_0x5591('0x48')]&&_0x5eecb0[_0x5591('0x29')]['formatGroupId']==_0x25127b[_0x5591('0x54')]&&_0x5eecb0[_0x5591('0x14')]==_0x71a583&&(_0x29718b(_0x5eecb0['getRanges'](),_0x148770)||_0x29718b(_0x148770,_0x5eecb0[_0x5591('0x104')]()))){for(const _0x59fb2e of _0x148770)_0x5eecb0[_0x5591('0x123')](_0x59fb2e);return _0x5eecb0;}const _0x23f3ec=_0x5a9e47(),_0x1ea5da=_0x4ffc76['id'],_0x515ce1=_0x5591('0xf2')+_0x71a583,_0x4a7d1f=this[_0x5591('0xef')]({'id':_0x23f3ec,'type':_0x515ce1,'data':_0x25127b,'createdAt':new Date(),'authorId':_0x1ea5da,'attributes':_0x5bdfa9});for(const _0x22bfad of _0x148770)this['_addSuggestionMarker'](_0x515ce1,_0x23f3ec,_0x1ea5da,_0x22bfad,_0x37fa21[_0x5591('0x3a')]());return _0x4a7d1f;}[_0x5591('0xd8')](_0x2bd038,_0x2bc4ac=null,_0x3e8309={}){if(_0x2bd038[_0x5591('0x84')])return null;const _0x1e3f48=this[_0x5591('0x61')][_0x5591('0x8b')][_0x5591('0x51')]('Users')['me'],_0x38ef56=new _0x4cd0ae(_0x2bd038['start'],_0x2bd038[_0x5591('0xa0')]);for(const {suggestion:_0x1682c2,meta:_0x1a0f95}of this['_findSuggestions'](_0x38ef56,'insertion'))if(_0x1a0f95['isOwn']&&!_0x1a0f95[_0x5591('0x6d')]){if(_0x1682c2[_0x5591('0x74')]){const _0x1d2606=_0x1682c2['getRanges']()[_0x5591('0x96')](_0x24ea4e=>'$graveyard'!=_0x24ea4e[_0x5591('0xa4')][_0x5591('0x25')]);_0x1d2606['every'](_0x40649c=>_0x38ef56[_0x5591('0x7d')](_0x40649c,!0x0))&&_0x1682c2[_0x5591('0xbc')]();if(_0x1d2606[_0x5591('0x9')](_0x5b434b=>_0x5b434b[_0x5591('0x7d')](_0x38ef56,!0x0))){const _0xa32a44=this[_0x5591('0x6b')]['getSuggestionCallback'](_0x5591('0xf7'),_0x2bc4ac,_0x5591('0x78'));return this[_0x5591('0x90')](()=>_0xa32a44([_0x38ef56],null,_0x3e8309)),null;}}else{const _0xd2f53b=_0x38ef56['getIntersection'](_0x1682c2['getFirstRange']());null!==_0xd2f53b&&_0x1682c2['_onDiscard']([_0xd2f53b],null,_0x3e8309);}}if(_0x38ef56['detach'](),_0x38ef56[_0x5591('0x84')]||_0x5591('0xae')==_0x38ef56[_0x5591('0xa4')][_0x5591('0x25')])return null;let _0x14ba24=null,_0x5afd30=_0x38ef56[_0x5591('0xda')],_0x573f08=_0x38ef56[_0x5591('0xa0')];for(const {suggestion:_0xff6938,meta:_0x20dbd4}of this[_0x5591('0xf1')](_0x38ef56,'deletion'))if(_0x20dbd4[_0x5591('0x11d')]){if(_0xff6938[_0x5591('0x74')]&&this[_0x5591('0x6f')]){let _0x2468c6=!0x0;for(const _0x209802 of _0xff6938[_0x5591('0x104')]()){if(_0x209802[_0x5591('0x7d')](_0x38ef56,!0x0))return _0xff6938;_0x38ef56[_0x5591('0x7d')](_0x209802)||(_0x2468c6=!0x1);}_0x2468c6&&_0xff6938[_0x5591('0xbc')]();}else{const _0x5da500=_0xff6938[_0x5591('0x13')]();if(_0x5da500[_0x5591('0x7d')](_0x38ef56,!0x0)){if(!this[_0x5591('0x6f')]&&_0x20dbd4[_0x5591('0x2e')])continue;return _0xff6938;}_0x5afd30=_0x5afd30[_0x5591('0x113')](_0x5da500[_0x5591('0xda')])?_0x5afd30:_0x5da500[_0x5591('0xda')],_0x573f08=_0x573f08[_0x5591('0x10f')](_0x5da500[_0x5591('0xa0')])?_0x573f08:_0x5da500['end'],_0x14ba24?_0x5da500[_0x5591('0xda')][_0x5591('0x113')](_0x14ba24['getFirstRange']()[_0x5591('0xda')])?(_0x14ba24[_0x5591('0x5c')](),_0x14ba24=_0xff6938):_0xff6938['removeMarkers']():_0x14ba24=_0xff6938;}}if(_0x14ba24)return this['_setSuggestionRange'](_0x14ba24,this[_0x5591('0x1b')][_0x5591('0x7a')](_0x5afd30,_0x573f08)),_0x14ba24;{const _0x3112fb=_0x5a9e47(),_0x53d3b5=this[_0x5591('0x1b')][_0x5591('0x7a')](_0x5afd30,_0x573f08),_0x3211ea=_0x1e3f48['id'],_0x100cff=_0x2bc4ac?_0x5591('0xc8')+_0x2bc4ac:'deletion',_0xea435f=this['_setSuggestionData']({'id':_0x3112fb,'type':_0x100cff,'createdAt':new Date(),'authorId':_0x3211ea,'attributes':_0x3e8309});return this[_0x5591('0xcd')](_0x100cff,_0x3112fb,_0x3211ea,_0x53d3b5),_0xea435f;}}[_0x5591('0xf5')](_0x2aa3b3,_0x3e6770=_0x5591('0xc3'),_0x284d98={}){const _0x1ef3c6=this[_0x5591('0x61')]['plugins'][_0x5591('0x51')](_0x5591('0x8c'))['me'],_0x1b458b=_0x2aa3b3['map'](_0x210d9f=>new _0x4cd0ae(_0x210d9f['start'],_0x210d9f[_0x5591('0xa0')])),_0x2e37f0=new Set();for(const _0x4a33b5 of _0x1b458b)for(const {suggestion:_0x4cf0bb,meta:_0x54b71f}of this[_0x5591('0xf1')](_0x4a33b5,'insertion'))_0x54b71f[_0x5591('0x11d')]&&!_0x54b71f[_0x5591('0x6d')]&&_0x2e37f0[_0x5591('0x134')](_0x4cf0bb);for(const _0x3545c8 of _0x2e37f0)if(_0x3545c8[_0x5591('0x74')]){const _0x5da571=_0x3545c8['getRanges']();(!_0x3545c8['attributes']||!_0x3545c8[_0x5591('0x13b')][_0x5591('0x100')])&&(_0x5da571['every'](_0x31c159=>_0x1b458b['some'](_0x17aa26=>_0x17aa26[_0x5591('0x7d')](_0x31c159,!0x0)))&&_0x3545c8[_0x5591('0xbc')]());if(_0x1b458b[_0x5591('0x18')](_0x1d69c7=>_0x5da571[_0x5591('0x9')](_0x50db16=>_0x50db16[_0x5591('0x7d')](_0x1d69c7,!0x0)))){const _0x3ad8d6=this[_0x5591('0x6b')][_0x5591('0x33')](_0x5591('0xf7'),_0x3e6770,_0x5591('0x78'));return this[_0x5591('0x90')](()=>_0x3ad8d6(_0x2aa3b3,null,_0x284d98)),null;}}else{const _0x2d32b2=_0x3545c8['getFirstRange']();_0x1b458b[_0x5591('0x9')](_0x1fe424=>_0x1fe424[_0x5591('0x7d')](_0x2d32b2,!0x0))&&_0x3545c8['discard']();if(_0x1b458b[_0x5591('0x18')](_0xf6bfa5=>_0x2d32b2['containsRange'](_0xf6bfa5,!0x0))){const _0x214c4b=this[_0x5591('0x6b')]['getSuggestionCallback'](_0x5591('0xf7'),_0x3e6770,_0x5591('0x78'));return this['forceDefaultExecution'](()=>_0x214c4b(_0x1b458b,null,_0x284d98)),null;}}const _0x533a1e=this[_0x5591('0x6b')][_0x5591('0x33')](_0x5591('0xf7'),_0x3e6770,_0x5591('0x8'));let _0x4fabe4=null;for(const _0x1cc9c2 of this[_0x5591('0x31')]())if(_0x1cc9c2[_0x5591('0xc7')]['id']==_0x1ef3c6['id']&&_0x1cc9c2[_0x5591('0x11')]&&_0x5591('0xf7')==_0x1cc9c2['type']&&_0x1cc9c2[_0x5591('0x14')]==_0x3e6770&&(_0x533a1e(_0x1cc9c2[_0x5591('0x104')](),_0x1b458b)||_0x533a1e(_0x1b458b,_0x1cc9c2[_0x5591('0x104')]()))){if(_0x4fabe4){if(_0x1cc9c2['commentThread']&&_0x1cc9c2['commentThread']['length'])continue;for(const _0xdef922 of _0x1cc9c2[_0x5591('0x104')]())_0x4fabe4['isIntersectingWithRange'](_0xdef922)||_0x4fabe4[_0x5591('0x123')](_0xdef922);_0x1cc9c2[_0x5591('0x5c')]();}else{_0x4fabe4=_0x1cc9c2;for(const _0x4fb06c of _0x1b458b)_0x1cc9c2[_0x5591('0x40')](_0x4fb06c)||_0x1cc9c2[_0x5591('0x123')](_0x4fb06c);}}if(_0x4fabe4)return _0x4fabe4;_0x2e37f0[_0x5591('0x138')]();for(const _0x596fdf of _0x1b458b)for(const {suggestion:_0x8b7cc5,meta:_0x112f75}of this[_0x5591('0xf1')](_0x596fdf,_0x5591('0xf7')))_0x112f75[_0x5591('0x11d')]&&_0x2e37f0[_0x5591('0x134')](_0x8b7cc5);for(const _0x154b2d of _0x2e37f0){const _0x5ecb4a=_0x154b2d[_0x5591('0x104')]();if(!_0x284d98||!_0x284d98[_0x5591('0x100')]){if(_0x1b458b[_0x5591('0x18')](_0x49d41f=>_0x5ecb4a[_0x5591('0x9')](_0x253d02=>_0x253d02['containsRange'](_0x49d41f,!0x0))))return _0x154b2d;}(!_0x154b2d[_0x5591('0x13b')]||!_0x154b2d['attributes'][_0x5591('0x100')])&&(_0x5ecb4a[_0x5591('0x18')](_0x43d667=>_0x1b458b[_0x5591('0x9')](_0x425da8=>_0x425da8['containsRange'](_0x43d667,!0x0)))&&_0x154b2d[_0x5591('0xbc')]());}const _0x4efb8f=_0x5a9e47(),_0x4eea9f=_0x1ef3c6['id'],_0x3d94ab='deletion:'+_0x3e6770,_0x37b61d=this[_0x5591('0xef')]({'id':_0x4efb8f,'type':_0x3d94ab,'createdAt':new Date(),'authorId':_0x4eea9f,'attributes':_0x284d98});for(const _0x336d7c of _0x1b458b)_0x336d7c[_0x5591('0x75')](),_0x336d7c[_0x5591('0x84')]||_0x5591('0xae')==_0x336d7c[_0x5591('0xa4')][_0x5591('0x25')]||this[_0x5591('0xcd')](_0x3d94ab,_0x4efb8f,_0x4eea9f,_0x336d7c,_0x37fa21[_0x5591('0x3a')]());return _0x37b61d;}[_0x5591('0xa8')](_0x2b460d,_0x1ea18f){const _0x615d20=_0x2b460d['getFirstMarker']();this[_0x5591('0x1b')]['change'](_0x586433=>{_0x586433['updateMarker'](_0x615d20,{'range':_0x1ea18f});});}['_addThreadToSuggestion'](_0x52a567){const _0x3cc9ba=_0x52a567['id'],_0xc3a28=this[_0x5591('0x61')][_0x5591('0xfa')][_0x5591('0x51')](_0x5591('0x9e'));this['_commentsRepository']['hasCommentThread'](_0x3cc9ba)||this['_commentsRepository']['addCommentThread']({'channelId':_0xc3a28,'threadId':_0x3cc9ba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x80d7eb=this['_commentsRepository'][_0x5591('0x8f')](_0x3cc9ba);_0x80d7eb[_0x5591('0x137')](_0x5591('0x12a')),_0x80d7eb['isRemovable']=!0x1,_0x52a567['commentThread']=_0x80d7eb;}[_0x5591('0xe6')](_0x22fb63,_0x1279d8,_0x516878,_0x45e74f){if(_0x22fb63['type']!=_0x1279d8||_0x22fb63[_0x5591('0x14')]!=_0x516878||_0x22fb63[_0x5591('0x99')]['id']!=_0x45e74f)throw this[_0x5591('0x61')][_0x5591('0x23')](_0x5591('0x71')),new _0x3f876f(_0x5591('0x71'),this);}[_0x5591('0xdf')](_0x372168,_0x4a66bf){const _0x539a45=_0x372168['getFirstRange']();if(_0x4a66bf[_0x5591('0x44')](_0x539a45))_0x372168['removeMarkers']();else{if(_0x539a45[_0x5591('0x7d')](_0x4a66bf)){const _0x183a3f=this['_model'][_0x5591('0xc2')](_0x4a66bf['start']['nodeBefore'],_0x5591('0xa0'));this[_0x5591('0xa8')](_0x372168,this[_0x5591('0x1b')][_0x5591('0x7a')](_0x539a45[_0x5591('0xda')],_0x183a3f));const _0x1cf11e=_0x5a9e47(),_0x2d4511=_0x372168[_0x5591('0x99')]['id'],_0x1fe521=_0x372168[_0x5591('0x48')]+':'+_0x372168[_0x5591('0x14')];this[_0x5591('0xef')]({'id':_0x1cf11e,'type':_0x1fe521,'createdAt':new Date(),'authorId':_0x2d4511,'data':_0x372168[_0x5591('0x29')],'attributes':_0x372168[_0x5591('0x13b')]});const _0x2c0cf2=this[_0x5591('0x1b')][_0x5591('0xc2')](_0x4a66bf[_0x5591('0xa0')][_0x5591('0x8a')],'after'),_0x11e9ae=this[_0x5591('0x1b')][_0x5591('0x7a')](_0x2c0cf2,_0x539a45[_0x5591('0xa0')]);this[_0x5591('0xcd')](_0x1fe521,_0x1cf11e,_0x2d4511,_0x11e9ae);}else{if(_0x539a45[_0x5591('0xbf')](_0x4a66bf[_0x5591('0xda')])){const _0x22a6a6=this[_0x5591('0x1b')][_0x5591('0xc2')](_0x4a66bf[_0x5591('0xda')][_0x5591('0x114')],_0x5591('0xa0'));this['_setSuggestionRange'](_0x372168,this[_0x5591('0x1b')][_0x5591('0x7a')](_0x539a45[_0x5591('0xda')],_0x22a6a6));}else{const _0x1255cc=this[_0x5591('0x1b')][_0x5591('0xc2')](_0x4a66bf[_0x5591('0xa0')][_0x5591('0x8a')],_0x5591('0x105'));this[_0x5591('0xa8')](_0x372168,this[_0x5591('0x1b')]['createRange'](_0x1255cc,_0x539a45[_0x5591('0xa0')]));}}}}['_rangeIsInLocalUserInsertion'](_0x1bf7de){for(const {suggestion:_0x3cb811,meta:_0x3ada79}of this[_0x5591('0xf1')](_0x1bf7de,_0x5591('0xd6'))){if(!_0x3ada79[_0x5591('0x11d')])continue;const _0xe933d6=_0x3cb811['getRanges']();for(const _0x4bc4b9 of _0xe933d6)if(!_0x1bf7de[_0x5591('0xca')](_0x4bc4b9)[_0x5591('0x39')])return!0x0;}return!0x1;}[_0x5591('0xf0')](_0x2c8367){const _0x3cbf89=this[_0x5591('0x61')]['plugins'][_0x5591('0x51')](_0x5591('0x8c'))[_0x5591('0x10c')](_0x2c8367);if(!_0x3cbf89)throw new _0x3f876f(_0x5591('0x15'),this);return _0x3cbf89;}['_getExternalAuthor'](_0x4ff78b){const _0x55d7ea=this['editor']['plugins'][_0x5591('0x51')](_0x5591('0x8c')),_0x14ccc4=_0x5006ef(_0x5591('0x1f')+_0x4ff78b),_0x36bd2e=_0x55d7ea[_0x5591('0x10c')](_0x14ccc4);return _0x36bd2e||_0x55d7ea[_0x5591('0xba')]({'id':_0x14ccc4,'name':_0x4ff78b});}['_createSuggestion'](_0x461d29,_0x4f52ac,_0x2efdc1,_0x5b9a2a,_0xad2eb2){const _0x509efc=this[_0x5591('0xf0')](_0x5b9a2a),_0x5b5fb6=this[_0x5591('0x6b')][_0x5591('0x4')](_0x461d29,_0x4f52ac,_0x2efdc1,_0x509efc,_0xad2eb2,_0x5977a7=>this[_0x5591('0xc6')](_0x2efdc1,{'attributes':_0x5977a7}));return this[_0x5591('0xc0')](_0x5b5fb6,_0x5591('0x78'),()=>{this['_updateSuggestionData'](_0x2efdc1,{'state':_0x5591('0x132')});},{'priority':'high'}),this[_0x5591('0xc0')](_0x5b5fb6,'discard',()=>{this[_0x5591('0xc6')](_0x2efdc1,{'state':_0x5591('0x59')});},{'priority':_0x5591('0x66')}),this[_0x5591('0xe5')][_0x5591('0x26')](_0x2efdc1,_0x5b5fb6),this['_suggestionState'][_0x5591('0x26')](_0x5b5fb6,'notReady'),_0x5b5fb6;}['_splitMarkerName'](_0xa2627b){const _0x12a942=_0xa2627b[_0x5591('0x85')](':');return{'group':_0x12a942[0x0],'type':_0x12a942[0x1],'subType':_0x12a942[_0x5591('0x39')]>=0x5?_0x12a942[0x2]:null,'id':_0x12a942['length']<0x5?_0x12a942[0x2]:_0x12a942[0x3],'authorId':_0x12a942[_0x5591('0x39')]<0x5?_0x12a942[0x3]:_0x12a942[0x4],'markerCount':0x6==_0x12a942['length']?_0x12a942[0x5]:null};}['_breakSuggestionMarker'](_0x1d38ee,_0xb00d6d,_0x103f8f){const _0xf1c7e1=_0x1d38ee['getFirstRange'](),_0x31881a=_0xf1c7e1[_0x5591('0xda')],_0x8fd91b=_0xf1c7e1[_0x5591('0xa0')];this[_0x5591('0xa8')](_0x1d38ee,this[_0x5591('0x1b')]['createRange'](_0x31881a,_0xb00d6d));const _0x9e0e58=_0x5a9e47(),_0x266b12=_0x1d38ee[_0x5591('0x99')]['id'],_0x4af3b0=_0x1d38ee[_0x5591('0x48')]+(_0x1d38ee[_0x5591('0x14')]?':'+_0x1d38ee[_0x5591('0x14')]:'');this[_0x5591('0xef')]({'id':_0x9e0e58,'type':_0x4af3b0,'createdAt':new Date(),'authorId':_0x266b12,'originalSuggestionId':_0x1d38ee['id'],'attributes':_0x1d38ee[_0x5591('0x13b')],'data':_0x1d38ee[_0x5591('0x29')]}),'formatBlock'==_0x1d38ee[_0x5591('0x48')]&&(_0x103f8f=this['_model'][_0x5591('0x3f')](_0x103f8f['parent'])),this[_0x5591('0xcd')](_0x4af3b0,_0x9e0e58,_0x266b12,this[_0x5591('0x1b')][_0x5591('0x7a')](_0x103f8f,_0x8fd91b));}['_findSuggestions'](_0x2b9070,_0x403d3a=null){const _0x248666=[],_0x2baab7=this['_model'][_0x5591('0x135')],_0x5beceb=this[_0x5591('0x61')][_0x5591('0x8b')][_0x5591('0x51')](_0x5591('0x8c'))['me'];for(const _0x14680d of this['getSuggestions']())if(_0x14680d[_0x5591('0x11')]&&(!_0x403d3a||_0x14680d[_0x5591('0x48')]==_0x403d3a))for(const _0x3ad846 of _0x14680d[_0x5591('0x104')]()){const _0x2d4ce4=_0x2b9070[_0x5591('0xda')][_0x5591('0x44')](_0x3ad846['end'])||_0x2b9070['end'][_0x5591('0x44')](_0x3ad846[_0x5591('0xda')]);if(_0x2d4ce4||_0x2b9070[_0x5591('0x32')](_0x3ad846)){const _0x5b23f0=_0x2b9070[_0x5591('0x7d')](_0x3ad846)&&Bt(_0x2baab7,_0x3ad846['start'],_0x2b9070),_0x36d62e=_0x3ad846[_0x5591('0x7d')](_0x2b9070)&&Bt(_0x2baab7,_0x2b9070[_0x5591('0xda')],_0x3ad846);_0x248666[_0x5591('0x4a')]({'suggestion':_0x14680d,'meta':{'isOwn':_0x5beceb==_0x14680d['author'],'isNextTo':_0x2d4ce4,'isInsideObject':_0x5b23f0,'containsRangeInObject':_0x36d62e}});break;}}return _0x248666;}[_0x5591('0xcd')](_0xb54509,_0x4d88ff,_0x74ff99,_0xe7a336,_0x2e9f77){this['_model'][_0x5591('0xf8')](_0x2c7db2=>{let _0x9502ea=_0x5591('0x7b')+_0xb54509+':'+_0x4d88ff+':'+_0x74ff99;_0x2e9f77&&(_0x9502ea=_0x9502ea+':'+_0x2e9f77),_0x2c7db2[_0x5591('0xa6')](_0x9502ea,{'range':_0xe7a336,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5591('0xe8')](_0x2bd350){const _0x3199b8=_0x2bd350[_0x5591('0xa5')],_0x2cd2ea=_0x2bd350[_0x5591('0x91')];_0x2bd350[_0x5591('0xa5')]=null,null!=_0x3199b8&&(_0x3199b8[_0x5591('0x91')]=null),_0x2bd350[_0x5591('0x91')]=null,null!=_0x2cd2ea&&(_0x2cd2ea[_0x5591('0xa5')]=null),_0x5591('0xc1')==this['_suggestionState'][_0x5591('0x51')](_0x2bd350)&&(this[_0x5591('0xf')]['set'](_0x2bd350,_0x5591('0x37')),this[_0x5591('0xeb')](_0x5591('0xe9'),_0x2bd350,_0x3199b8,_0x2cd2ea));}[_0x5591('0xef')](_0x10d13e){const _0x10db2e=_0x10d13e['id'],_0x4a3bb8=this[_0x5591('0x1e')](_0x10d13e);if(this[_0x5591('0xac')]&&this[_0x5591('0xac')][_0x5591('0x45')]){const _0x18e5e3=this[_0x5591('0x61')][_0x5591('0x8b')][_0x5591('0x51')]('PendingActions'),_0x415b21=_0x4a3bb8[_0x5591('0x13a')],_0x6e94ee=_0x4a3bb8['subType']?_0x4a3bb8[_0x5591('0x48')]+':'+_0x4a3bb8[_0x5591('0x14')]:_0x4a3bb8[_0x5591('0x48')],_0x1c6325=this[_0x5591('0x61')][_0x5591('0x46')],_0x361f02=_0x18e5e3['add'](_0x2cdbee(_0x1c6325,'PENDING_ACTION_SUGGESTION')),_0x5bbce3={'id':_0x10db2e,'type':_0x6e94ee,'hasComments':_0x415b21,'data':_0x10d13e['data']||null,'originalSuggestionId':_0x10d13e['originalSuggestionId']||null,'attributes':_0x4a3bb8[_0x5591('0x13b')]};this['_adapter']['addSuggestion'](_0x5bbce3)[_0x5591('0x7f')](_0x2f6078=>{_0x4a3bb8[_0x5591('0x11f')]=!0x0,_0x18e5e3[_0x5591('0x3c')](_0x361f02),_0x2f6078&&_0x2f6078[_0x5591('0x127')]&&(this[_0x5591('0xe5')][_0x5591('0x51')](_0x10db2e)['createdAt']=_0x2f6078[_0x5591('0x127')]);})[_0x5591('0x7e')](_0x5c0a3a=>{throw _0x3758bd(_0x5591('0x4f')),this[_0x5591('0x61')][_0x5591('0xc')][_0x5591('0xa2')]({'isUndoable':!0x1},()=>{_0x4a3bb8[_0x5591('0xbc')]();}),_0x4a3bb8[_0x5591('0x120')](),this[_0x5591('0xe5')][_0x5591('0xaa')](_0x4a3bb8['id']),this[_0x5591('0xf')][_0x5591('0xaa')](_0x4a3bb8),_0x5c0a3a;});}return _0x4a3bb8;}[_0x5591('0xc6')](_0x55f6e8,_0x53beaf){const _0x31ef9d=this[_0x5591('0x61')][_0x5591('0x8b')]['get']('PendingActions'),_0x3a10ee=this['getSuggestion'](_0x55f6e8);if(this['_adapter']&&this[_0x5591('0xac')][_0x5591('0x106')]){if(_0x3a10ee[_0x5591('0x11f')]){const _0x496f08=_0x31ef9d[_0x5591('0x134')](_0x2cdbee(this[_0x5591('0x61')]['locale'],_0x5591('0x69')));this[_0x5591('0xac')][_0x5591('0x106')](_0x55f6e8,_0x53beaf)[_0x5591('0x7f')](()=>{_0x31ef9d[_0x5591('0x3c')](_0x496f08);});}else _0x3a10ee['on'](_0x5591('0xe0'),()=>{this[_0x5591('0xc6')](_0x55f6e8,_0x53beaf);});}}['_getSuggestionData'](_0x2529b9){if(!this[_0x5591('0xac')]||!this[_0x5591('0xac')][_0x5591('0x21')])throw new _0x3f876f(_0x5591('0x136'),this);return this[_0x5591('0xac')][_0x5591('0x21')](_0x2529b9);}[_0x5591('0x97')](_0x46259){const {id:_0x463669,type:_0x138f86,subType:_0x2717ee,authorId:_0x492df1}=this[_0x5591('0x131')](_0x46259),_0x8dde38=this[_0x5591('0xe5')][_0x5591('0x51')](_0x463669)||this[_0x5591('0x93')](_0x138f86,_0x2717ee,_0x463669,_0x492df1,{});switch(this['_checkSuggestionCorrectness'](_0x8dde38,_0x138f86,_0x2717ee,_0x492df1),this[_0x5591('0xf')][_0x5591('0x51')](_0x8dde38)){case _0x5591('0xea'):this['_getSuggestionData'](_0x463669)[_0x5591('0x7f')](_0x4b2013=>{let _0x3c40bf=Promise[_0x5591('0x80')]();_0x4b2013['hasComments']&&(_0x3c40bf=this[_0x5591('0x10d')][_0x5591('0x109')]({'channelId':this['editor']['config'][_0x5591('0x51')](_0x5591('0x9e')),'threadId':_0x463669})),_0x3c40bf[_0x5591('0x7f')](()=>{this[_0x5591('0x1e')](_0x4b2013)[_0x5591('0x11f')]=!0x0;});}),this[_0x5591('0xf')][_0x5591('0x26')](_0x8dde38,'markerReady');break;case'removed':this[_0x5591('0xc6')](_0x463669,{'state':_0x5591('0xdb')});case'dataReady':this[_0x5591('0xf')][_0x5591('0x26')](_0x8dde38,_0x5591('0xc1')),this[_0x5591('0xeb')](_0x5591('0x6c'),_0x8dde38);break;case _0x5591('0xc1'):this['fire'](_0x5591('0x11e'),_0x8dde38);}return _0x8dde38[_0x5591('0xe4')](_0x46259),_0x8dde38;}['_refreshSuggestionsChain'](_0xf6ecf8){const _0x1c5637=Array[_0x5591('0xe')](_0xf6ecf8)[_0x5591('0x96')](_0x62e74c=>!_0x62e74c['isMultiRange']),_0xc5124b=this[_0x5591('0x31')]({'skipNotAttached':!0x0})['filter'](_0xe7f8b4=>!_0xe7f8b4['isMultiRange']),_0x485f90=_0xc5124b[_0x5591('0x96')](_0x230072=>!_0xf6ecf8[_0x5591('0x82')](_0x230072)),_0x16e81c=new Map(_0xc5124b[_0x5591('0xed')](_0x34d11a=>[_0x34d11a,this[_0x5591('0x6b')][_0x5591('0x33')](_0x34d11a['type'],_0x34d11a[_0x5591('0x14')],_0x5591('0x17'))])),_0x4199a3=new Map(_0xc5124b[_0x5591('0xed')](_0x976caa=>[_0x976caa,_0x976caa[_0x5591('0x13')]()])),_0xf181b9=new Set(),_0x102574=new Set();for(let _0x390809=0x0;_0x390809<_0x1c5637[_0x5591('0x39')];_0x390809++)_0x21b7fd(_0x1c5637[_0x390809],_0x1c5637,_0x390809+0x1);for(let _0x2c3795=0x0;_0x2c3795<_0x1c5637[_0x5591('0x39')];_0x2c3795++)_0x21b7fd(_0x1c5637[_0x2c3795],_0x485f90,0x0);for(let _0x244340=0x0;_0x244340<_0x1c5637[_0x5591('0x39')];_0x244340++){const _0xa37643=_0x1c5637[_0x244340];!_0x102574[_0x5591('0x82')](_0xa37643)&&_0xa37643[_0x5591('0xa5')]&&(_0xa37643[_0x5591('0xa5')][_0x5591('0x91')]===_0xa37643&&(_0xa37643['previous'][_0x5591('0x91')]=null),_0xa37643[_0x5591('0xa5')]=null),!_0xf181b9[_0x5591('0x82')](_0xa37643)&&_0xa37643[_0x5591('0x91')]&&(_0xa37643[_0x5591('0x91')]['previous']===_0xa37643&&(_0xa37643['next'][_0x5591('0xa5')]=null),_0xa37643[_0x5591('0x91')]=null);}function _0x21b7fd(_0x26d217,_0x468c35,_0x791f3f){for(let _0x24a05a=_0x791f3f;_0x24a05a<_0x468c35['length'];_0x24a05a++){const _0x532d2c=_0x3608b0(_0x26d217,_0x468c35[_0x24a05a]);_0x532d2c&&(_0x532d2c[0x0]['next']=_0x532d2c[0x1],_0x532d2c[0x1][_0x5591('0xa5')]=_0x532d2c[0x0],_0xf181b9[_0x5591('0x134')](_0x532d2c[0x0]),_0x102574['add'](_0x532d2c[0x1]));}}function _0x3608b0(_0x30e7d3,_0x23d0bc){if(_0x30e7d3['author']['id']!==_0x23d0bc[_0x5591('0xc7')]['id'])return null;const _0x55e5e6=_0x16e81c[_0x5591('0x51')](_0x30e7d3)(_0x30e7d3,_0x23d0bc,_0x4199a3[_0x5591('0x51')](_0x30e7d3),_0x4199a3[_0x5591('0x51')](_0x23d0bc));if(!_0x55e5e6)return null;return _0x16e81c[_0x5591('0x51')](_0x23d0bc)(_0x30e7d3,_0x23d0bc,_0x4199a3[_0x5591('0x51')](_0x30e7d3),_0x4199a3[_0x5591('0x51')](_0x23d0bc))?_0x55e5e6[0x1][_0x5591('0xdd')]&&_0x55e5e6[0x1]['commentThread'][_0x5591('0x39')]?null:_0x55e5e6:null;}}[_0x5591('0x2c')](_0x11bdaa){const _0x64db2a=Array[_0x5591('0xe')](_0x11bdaa),_0x1ea116=this['getSuggestions']({'skipNotAttached':!0x0}),_0x399728=_0x1ea116[_0x5591('0x96')](_0x3ccaa9=>!_0x11bdaa[_0x5591('0x82')](_0x3ccaa9)),_0x244673=new Map(_0x64db2a['map'](_0x49fa5e=>[_0x49fa5e,this[_0x5591('0x6b')]['getSuggestionCallback'](_0x49fa5e[_0x5591('0x48')],_0x49fa5e[_0x5591('0x14')],'join')])),_0x4d7507=new Map(_0x1ea116[_0x5591('0xed')](_0x2d153f=>[_0x2d153f,_0x2d153f[_0x5591('0x104')]()]));for(let _0x5ecbc2=0x0;_0x5ecbc2<_0x64db2a[_0x5591('0x39')];_0x5ecbc2++){if(_0x2739d4(this,_0x64db2a[_0x5ecbc2],_0x64db2a,_0x5ecbc2+0x1))return!0x0;}for(let _0x3a1918=0x0;_0x3a1918<_0x64db2a[_0x5591('0x39')];_0x3a1918++){if(_0x2739d4(this,_0x64db2a[_0x3a1918],_0x399728,0x0))return!0x0;}return!0x1;function _0x2739d4(_0x4e42ad,_0xc55277,_0x32f0f6,_0x1e35aa){for(let _0x1b3212=_0x1e35aa;_0x1b3212<_0x32f0f6[_0x5591('0x39')];_0x1b3212++){const _0x4f1209=_0x32f0f6[_0x1b3212];if(_0x4f1209[_0x5591('0x48')]!==_0xc55277[_0x5591('0x48')]||_0x4f1209[_0x5591('0xc7')]['id']!==_0xc55277['author']['id']||_0x4f1209[_0x5591('0x14')]!==_0xc55277[_0x5591('0x14')])continue;const _0x3bc8d0=_0x244673['get'](_0xc55277),_0x1eec25=_0x4d7507[_0x5591('0x51')](_0xc55277),_0x4948f2=_0x4d7507['get'](_0x4f1209),_0x29690d=_0xc55277[_0x5591('0xdd')]&&_0xc55277[_0x5591('0xdd')]['length'],_0x33dbc0=_0x4f1209[_0x5591('0xdd')]&&_0x4f1209[_0x5591('0xdd')][_0x5591('0x39')];if(!_0x29690d&&_0x3bc8d0(_0x4948f2,_0x1eec25))return _0x4e42ad[_0x5591('0x102')](_0x4f1209,_0xc55277),_0x4d7507['delete'](_0xc55277),!0x0;if(!_0x33dbc0&&_0x3bc8d0(_0x1eec25,_0x4948f2))return _0x4e42ad[_0x5591('0x102')](_0xc55277,_0x4f1209),_0x4d7507['delete'](_0x4f1209),!0x0;}return!0x1;}}[_0x5591('0x102')](_0x5a7245,_0x14c30e){if(_0x5a7245[_0x5591('0x74')])for(const _0x809f4e of _0x14c30e[_0x5591('0x104')]())_0x5a7245['addRange'](_0x809f4e);else{const _0xff16d1=_0x14c30e[_0x5591('0x13')]()[_0x5591('0xa0')];this[_0x5591('0xa8')](_0x5a7245,this[_0x5591('0x1b')]['createRange'](_0x5a7245[_0x5591('0x13')]()[_0x5591('0xda')],_0xff16d1));}_0x14c30e['removeMarkers']();}}class Dt{constructor(_0x20ce57){this[_0x5591('0x108')]=_0x20ce57,this[_0x5591('0x1b')]=_0x20ce57[_0x5591('0xc')],this[_0x5591('0x4b')]=new Map(),this[_0x5591('0x5')]=new Map(),this['_registerDefaultCallbacks']();}[_0x5591('0x4')](_0x531564,_0x35f8c3,_0x568358,_0x5191d2,_0x506242,_0x2067b5){return new _0x37fa21(this[_0x5591('0x1b')],{'type':_0x531564,'subType':_0x35f8c3,'id':_0x568358,'author':_0x5191d2,'creator':_0x5191d2,'attributes':_0x506242,'onAttributesChange':_0x2067b5,'onAccept':(..._0x3672ed)=>this[_0x5591('0x33')](_0x531564,_0x35f8c3,_0x5591('0x78'))(..._0x3672ed),'onDiscard':(..._0x240f34)=>this[_0x5591('0x33')](_0x531564,_0x35f8c3,_0x5591('0xbc'))(..._0x240f34)});}[_0x5591('0x1c')](_0x7fdf0e,_0x11e4b3,_0x3b7bd7,_0x516700){const _0x512f9f=_0x7fdf0e+':'+_0x11e4b3+':'+_0x3b7bd7;this[_0x5591('0x4b')]['set'](_0x512f9f,_0x516700);}[_0x5591('0x33')](_0x3449d1,_0x307936,_0x10cca2){const _0x9f8503=_0x3449d1+':'+_0x307936+':'+_0x10cca2;return this[_0x5591('0x4b')][_0x5591('0x51')](_0x9f8503)||this[_0x5591('0x5')][_0x5591('0x51')](_0x3449d1+':'+_0x10cca2);}[_0x5591('0x89')](){const _0x2c07bd=()=>{},_0x6aae84=_0x491b62=>{_0x491b62['sort']((_0x3f3a19,_0x1cb09f)=>_0x3f3a19[_0x5591('0xda')]['isBefore'](_0x1cb09f[_0x5591('0xda')])?0x1:-0x1),this['_model'][_0x5591('0xf8')](_0x5690c1=>{for(const _0x556df3 of _0x491b62){let _0x3f0504;_0x3f0504=_0x556df3[_0x5591('0xa0')]['isAtEnd']&&_0x556df3[_0x5591('0xa0')][_0x5591('0x8a')]==_0x556df3[_0x5591('0xda')][_0x5591('0xb8')]?_0x5690c1[_0x5591('0x10')](_0x556df3[_0x5591('0xda')]['nodeAfter'],'on'):_0x5690c1[_0x5591('0x10')](_0x556df3),this[_0x5591('0x1b')][_0x5591('0x34')](_0x3f0504,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4b3a4c=(_0x11accc,_0x1bd33e)=>{this[_0x5591('0x1b')][_0x5591('0xf8')](_0x4741e5=>{const {commandName:_0x28f6e4,commandParams:_0x2003ad=[]}=_0x1bd33e,_0x5ef1e9=_0x11accc[_0x5591('0xed')](_0x57440c=>(_t(_0x57440c)&&(_0x57440c=this['_model'][_0x5591('0x7a')](_0x57440c[_0x5591('0xa0')])),_0x57440c))[_0x5591('0x96')](_0x3717d1=>_0x5591('0xae')!==_0x3717d1[_0x5591('0xa4')]['rootName']);if(_0x5ef1e9[_0x5591('0x39')]<0x1)return;const _0x469585=Array[_0x5591('0xe')](this[_0x5591('0x1b')][_0x5591('0x81')][_0x5591('0x50')]['getRanges']())[_0x5591('0xed')](_0x5607fe=>_0x4cd0ae[_0x5591('0x79')](_0x5607fe));_0x4741e5[_0x5591('0x2')](_0x5ef1e9);for(const _0x19fa1c of this['_editor'][_0x5591('0x4d')][_0x5591('0x4d')]())_0x19fa1c['refresh']();_0x2003ad[_0x5591('0x4a')]({'forceDefaultExecution':!0x0}),this[_0x5591('0x108')][_0x5591('0x76')](_0x28f6e4,..._0x2003ad);const _0x528bf5=_0x469585[_0x5591('0x96')](_0xa1d6d1=>'$graveyard'!=_0xa1d6d1[_0x5591('0xa4')]['rootName']);_0x528bf5[_0x5591('0x39')]>0x0&&_0x4741e5[_0x5591('0x2')](_0x528bf5);for(const _0x3ad084 of _0x469585)_0x3ad084['detach']();});},_0x7891da=(_0x2e4c51,_0x3e73ae)=>0x1==_0x2e4c51[_0x5591('0x39')]&&0x1==_0x3e73ae[_0x5591('0x39')]&&_0x2e4c51[0x0][_0x5591('0xa0')]['isEqual'](_0x3e73ae[0x0][_0x5591('0xda')]),_0x4f27ef=(_0x11ee20,_0x4db5cd,_0x5f3f34,_0x4ca283)=>xt(_0x11ee20,_0x4db5cd,_0x5f3f34,_0x4ca283,this[_0x5591('0x1b')])?[_0x11ee20,_0x4db5cd]:xt(_0x4db5cd,_0x11ee20,_0x4ca283,_0x5f3f34,this['_model'])?[_0x4db5cd,_0x11ee20]:null;this['_defaultCallbacks'][_0x5591('0x26')]('insertion:accept',_0x2c07bd),this[_0x5591('0x5')][_0x5591('0x26')]('insertion:discard',_0x6aae84),this[_0x5591('0x5')][_0x5591('0x26')]('insertion:join',_0x7891da),this[_0x5591('0x5')][_0x5591('0x26')](_0x5591('0xb7'),_0x4f27ef),this[_0x5591('0x5')][_0x5591('0x26')](_0x5591('0x24'),_0x6aae84),this[_0x5591('0x5')][_0x5591('0x26')](_0x5591('0xf3'),_0x2c07bd),this[_0x5591('0x5')][_0x5591('0x26')]('deletion:join',_0x7891da),this['_defaultCallbacks'][_0x5591('0x26')]('deletion:chain',_0x4f27ef),this['_defaultCallbacks'][_0x5591('0x26')](_0x5591('0x3d'),_0x4b3a4c),this[_0x5591('0x5')][_0x5591('0x26')]('formatInline:discard',_0x2c07bd),this['_defaultCallbacks'][_0x5591('0x26')](_0x5591('0xe7'),_0x7891da),this['_defaultCallbacks']['set'](_0x5591('0xff'),_0x2c07bd),this[_0x5591('0x5')][_0x5591('0x26')](_0x5591('0x112'),_0x4b3a4c),this[_0x5591('0x5')][_0x5591('0x26')](_0x5591('0x95'),_0x2c07bd),this['_defaultCallbacks'][_0x5591('0x26')](_0x5591('0xb1'),_0x7891da),this[_0x5591('0x5')][_0x5591('0x26')](_0x5591('0x1'),_0x2c07bd);}}function Bt(_0x4ed1cf,_0x3d7790,_0x571861){for(const _0x24bf07 of _0x3d7790['parent'][_0x5591('0xd1')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x24bf07['root']==_0x24bf07)return!0x1;if(!_0x571861[_0x5591('0x5b')](_0x24bf07))return!0x1;if(_0x4ed1cf['isObject'](_0x24bf07)||_0x4ed1cf[_0x5591('0x65')](_0x24bf07))return!0x0;}return!0x1;}function _t(_0x392cc3){return _0x392cc3[_0x5591('0xa0')][_0x5591('0x8a')]==_0x392cc3[_0x5591('0xda')][_0x5591('0xb8')]&&_0x392cc3[_0x5591('0xa0')]['isAtStart'];}function Mt(_0x3a4015,_0x54c520,_0x4ba4bc,_0x24671c){const _0x33056c=_0x52a117=>!_0x52a117[_0x5591('0xd9')]['is']('$textProxy')&&!_0x24671c['isObject'](_0x52a117[_0x5591('0xd9')]),_0x3863be=_0x3a4015[_0x5591('0xda')][_0x5591('0xfb')](_0x33056c),_0x218261=_0x3a4015[_0x5591('0xa0')][_0x5591('0xfb')](_0x33056c,{'direction':'backward'});return(!_0x3a4015[_0x5591('0xda')][_0x5591('0x44')](_0x3863be)||!_0x3a4015[_0x5591('0xa0')][_0x5591('0x44')](_0x218261))&&(_0x3863be[_0x5591('0x113')](_0x218261)?_0x4ba4bc[_0x5591('0xb9')](_0x54c520,{'range':_0x4ba4bc[_0x5591('0x7a')](_0x3863be,_0x218261)}):_0x4ba4bc['removeMarker'](_0x54c520),!0x0);}function $t(_0x47413e){return _0x5006ef(_0x47413e);}function Nt(_0x1d53fe){const _0x28ca2a=_0x1d53fe['start'][_0x5591('0xb8')];return _0x28ca2a&&_0x28ca2a['is'](_0x5591('0x42'));}function Rt(_0x1c55e1,_0xeb5a9e){const _0x1faea4=_0xeb5a9e['schema']['isObject'](_0x1c55e1)||_0xeb5a9e[_0x5591('0x135')]['isSelectable'](_0x1c55e1);return _0xeb5a9e[_0x5591('0x7a')](_0xeb5a9e[_0x5591('0xc2')](_0x1c55e1,_0x5591('0x47')),_0x1faea4?_0xeb5a9e[_0x5591('0x43')](_0x1c55e1):_0xeb5a9e[_0x5591('0xc2')](_0x1c55e1,_0x5591('0xa0')));}function xt(_0x17eb0a,_0x5836b2,_0x4ee212,_0x3316cf,_0x127e5c){if(_0x4ee212[_0x5591('0xa0')][_0x5591('0x44')](_0x3316cf[_0x5591('0xda')]))return!0x0;if(_0x17eb0a['type']!=_0x5836b2[_0x5591('0x48')])return!0x1;if(!_0x4ee212['end'][_0x5591('0x12e')](_0x3316cf[_0x5591('0xda')]))return!0x1;const _0x3214d1=_0x127e5c[_0x5591('0x7a')](_0x4ee212[_0x5591('0xa0')],_0x3316cf[_0x5591('0xda')])['getWalker']();for(const _0x314007 of _0x3214d1)if([_0x5591('0x30'),_0x5591('0x139')][_0x5591('0x55')](_0x314007[_0x5591('0x48')])&&_0x127e5c[_0x5591('0x135')][_0x5591('0x65')](_0x314007['item']))return!0x1;return!0x0;}
|
|
23
|
+
const _0x2eb0=['data','markerToHighlight','value','_isForcedDefaultExecutionBlock','listenTo','removeAttribute','getFirstRange','_setSuggestionRange','_checkSuggestionCorrectness','_handleNewSuggestionMarker','enableReadOnlyMode','createPositionBefore','marker-count','writer','acceptSuggestion','deleteContent','_createSuggestion','getAllAdjacentSuggestions','markDeletion','error-saving-suggestion-data-suggestion-discarded','isLimit','map','addMarker','getRange','discardSelectedSuggestions','markMultiRangeBlockFormat','_customCallbacks','selection','low','change:activeMarkers','createPositionAt','_setSuggestionData','_editor','discardAllSuggestions','splitPosition','insertion','name','split','_breakSuggestionMarker','editingDowncast','get','refresh','getCustomProperty','addRange','PENDING_ACTION_SUGGESTION','isAtEnd','adapter','author','fire','track-changes-user-not-found','differ','getAttribute','change','registerCustomCallback','containerElement','skipNestingCheck','formatGroupId','_enabledCommands','element','backward','addSuggestionData','filter','activeMarkers','editing','newRange','multi','pluginName','subType','_trackFormatChanges','isObject','getIntersection','ck-suggestion-marker--active','ck-suggestion-marker-formatBlock','createSelection','$graveyard','authoredAt','formatInline:discard','deletion:','upcast','push','markBlockFormat','batch','enqueueChange','toViewElement','enableCommand','track-changes-adapter-already-set','removeMarker:suggestion:formatBlock','markerReady','_updateSuggestionData','getNearestSelectionRange','addSuggestion','insertion:','addMarker:suggestion','never','delete','position','for','updateMarker','addComment','document','every','setAttribute','_model','formatBlock:join','trackChanges','_suggestionState','editor','size','createdAt','some','PendingActions','consumable','CommentsRepository','insertContent','insertion:chain','mapper','insertion:accept','length','getShiftedBy','ck-suggestion-marker-','after','isInContent','_descriptionFactory','removeMarkers','formatBlock:chain','isCollapsed','isInsideObject','ck-suggestion-marker','_onDiscard','Users','root','model','_addThreadToSuggestion','suggestionUnloaded','end','suggestionLoaded','showSuggestionHighlights','_rangeIsInLocalUserInsertion','values','from','isBefore','isBlock','getSuggestionCallback','_suggestions','always','track-changes-adapter-missing-getsuggestion','getFirstMarker','stopListening','addHighlight','requires','multipleBlocks','init','splice','isIntersectingWithRange','item','setTo','markInsertion','oldRange','nodeBefore','discardSuggestion','markerName','has','authorName','moveTargetPosition','getMarkers','getDifference','getSuggestions','consume','suggestion:','notReady','reconvertMarker','markers','addMarker:suggestion:formatBlock','$textProxy','getRanges','attributes','fromCharCode','_defaultCallbacks','type','add','markMultiRangeInsertion','hasComments','schema','options','updateSuggestion','containsRange','formatBlock:discard','plugins','join','move','isMultiRange','_saved','toJSON','ready','suggestionChanged','_getExternalAuthor','catch','detach','isNextTo','commentThread','update:suggestion','clear','insert','external:','isAfter','removeClass','before','group','registerPostFixer','dataDowncast','originalSuggestionId','addMarkerName','data-suggestion','formatBlock:','_joinWithAdjacentSuggestions','fetchCommentThread','_refreshSuggestionsChain','isSelectable','widget','sort','chain','accept','containsRangeInObject','substr','isRemovable','isAtStart','markerToData','forward','rootName','forceDefaultExecution','trackChangesCommand','dataReady','removeMarker','getUser','isEqual','createRange','@external','_suggestionFactory','elementToElement','getChanges','createPositionAfter','config','_joinSuggestions','default','commands','stop','suggestion','_mergeNestedSuggestions','getLastMatchingPosition','addClass','change:data','_findSuggestions','deletion:join','suggestion-type','deletion:discard','trackChanges.trackFormatChanges','discard','track-changes-command-not-found','removeComment','addCommentThread','conversion','formatInline:','isOwn','bindElementToMarker','previous','_getSuggestionData','formatInline:accept','getMultiRangeId','set','formatInline:chain','isTouching','start','_commentsRepository','_adapter','_registerDefaultCallbacks','high','removed','getAncestors','createElement','formatBlock','acceptSelectedSuggestions','open','locale','collaboration.channelId','commandName','change:_saved','unbindElementFromMarkerName','isUndo','deletion','acceptAllSuggestions','includes','define','track-changes-suggestion-data-mismatch','clone','formatInline','_getAuthorFromId','creator','next','howMany','execute','getWalker','lowest','getChangedMarkers','setSelection','_addSuggestionMarker','markMultiRangeDeletion','nodeAfter','parent','insertion:discard','remove','_removeSuggestion','getSuggestion','_splitMarkerName','trackChanges.mergeNestedSuggestions','rejected','formatInline:join','then','range','containsItem'];(function(_0x6a5e14,_0x2eb008){const _0x219503=function(_0x599e58){while(--_0x599e58){_0x6a5e14['push'](_0x6a5e14['shift']());}};_0x219503(++_0x2eb008);}(_0x2eb0,0x7f));const _0x2195=function(_0x6a5e14,_0x2eb008){_0x6a5e14=_0x6a5e14-0x0;let _0x219503=_0x2eb0[_0x6a5e14];return _0x219503;};import{Plugin as _0x149004,PendingActions as _0x33161e}from'ckeditor5/src/core';import{LiveRange as _0x30ce05}from'ckeditor5/src/engine';import{CKEditorError as _0x143303,uid as _0x3dda14,priorities as _0x1731a3,logWarning as _0x109f16}from'ckeditor5/src/utils';import{toWidget as _0x3a7bbc}from'ckeditor5/src/widget';import{Users as _0x5006ff,hashObject as _0x506120}from'ckeditor5-collaboration/src/collaboration-core';import _0x575747 from'./commands/trackchangescommand';import _0x5e4ad2 from'./commands/acceptsuggestioncommand';import _0xfca4f8 from'./commands/discardsuggestioncommand';import _0x55da74 from'./commands/executeonallsuggestionscommand';import _0x9e71ef from'./commands/executeonselectedsuggestionscommand';import _0x1ee015 from'./suggestion';import _0x5e8e01 from'./suggestiondescriptionfactory';import _0x111a56 from'./integrations/alignment';import _0x1b0a7c from'./integrations/basicstyles';import _0xb0ca95 from'./integrations/blockquote';import _0x16e92f from'./integrations/ckbox';import _0x54e6fc from'./integrations/codeblock';import _0x429736 from'./integrations/comments';import _0x21c475 from'./integrations/deletecommand';import _0x4e2384 from'./integrations/documentlist';import _0xd590 from'./integrations/entercommand';import _0x23a266 from'./integrations/findandreplace';import _0x47499c from'./integrations/font';import _0x402190 from'./integrations/formatpainter';import _0x5eae1f from'./integrations/heading';import _0x165821 from'./integrations/highlight';import _0xe9bc79 from'./integrations/horizontalline';import _0x1e73c6 from'./integrations/htmlembed';import _0x3811c0 from'./integrations/image';import _0x13e7c1 from'./integrations/imagereplace';import _0x1905e4 from'./integrations/importword';import _0x4ebb46 from'./integrations/indent';import _0x41972e from'./integrations/inputcommand';import _0x90a3b0 from'./integrations/link';import _0x3aa257 from'./integrations/list';import _0xf55a31 from'./integrations/listproperties';import _0xcb85dd from'./integrations/mediaembed';import _0x3843d1 from'./integrations/mention';import _0x1a0d28 from'./integrations/pagebreak';import _0x288015 from'./integrations/paragraph';import _0x1e2f1a from'./integrations/removeformat';import _0x4e2e30 from'./integrations/restrictededitingmode';import _0x72fd63 from'./integrations/shiftentercommand';import _0x2847b4 from'./integrations/standardeditingmode';import _0x2325dc from'./integrations/style';import _0x1fca55 from'./integrations/table';import _0x32c04f from'./integrations/tablemergesplit';import _0x251bc8 from'./integrations/tableheadings';import _0x434305 from'./integrations/tableclipboard';import _0x4ecfb5 from'./integrations/tablecolumnresize';import _0x375053 from'./integrations/template';import _0x318cbf from'./integrations/tableofcontents';import _0x2c31b1 from'./integrations/title';import _0x576858 from'./integrations/undo';import{getTranslation as _0x4d24ca}from'./utils/common-translations';import _0x14ab31 from'./integrations/tablecaption';import _0x8fa76d from'./integrations/documentlistproperties';import _0x590188 from'./integrations/tableproperties';export default class p extends _0x149004{static get[_0x2195('0x16')](){return['CommentsRepository',_0x5006ff,_0x33161e,_0x111a56,_0x1b0a7c,_0xb0ca95,_0x16e92f,_0x54e6fc,_0x429736,_0x21c475,_0x4e2384,_0x8fa76d,_0xd590,_0x23a266,_0x47499c,_0x402190,_0x5eae1f,_0x165821,_0xe9bc79,_0x1e73c6,_0x3811c0,_0x13e7c1,_0x1905e4,_0x4ebb46,_0x41972e,_0x90a3b0,_0x3aa257,_0xf55a31,_0xcb85dd,_0x3843d1,_0x1a0d28,_0x288015,_0x1e2f1a,_0x4e2e30,_0x72fd63,_0x2847b4,_0x2325dc,_0x1fca55,_0x32c04f,_0x251bc8,_0x14ab31,_0x434305,_0x4ecfb5,_0x318cbf,_0x590188,_0x375053,_0x2c31b1,_0x576858];}static get[_0x2195('0x102')](){return'TrackChangesEditing';}constructor(_0x4540cb){function _0x220cd0(_0x31387a){return _0x31387a[_0x2195('0xd5')](_0x16b6ba=>String[_0x2195('0x31')](_0x16b6ba))['join']('');}super(_0x4540cb),this[_0x2195('0x8d')](_0x2195('0xfe'),[]),this['on'](_0x2195('0xdd'),(_0x364362,_0x3b69cf,_0x16fecc,_0x29bfeb)=>{this[_0x2195('0x126')]['change'](()=>{for(const _0x2dbdd9 of[..._0x29bfeb,..._0x16fecc])this['_model'][_0x2195('0x2c')]['has'](_0x2dbdd9)&&_0x4540cb[_0x2195('0xff')][_0x2195('0x2b')](_0x2dbdd9);});}),this[_0x2195('0x13a')]=new _0x5e8e01(this[_0x2195('0x12a')][_0x2195('0x4')]['schema'],this[_0x2195('0x12a')]['locale']),this[_0x2195('0x92')]=null,this['_suggestionFactory']=new Dt(this['editor']),this['_suggestions']=new Map(),this[_0x2195('0x91')]=_0x4540cb[_0x2195('0x3c')][_0x2195('0xe8')](_0x2195('0x130')),this[_0x2195('0xf9')]=new Set(),this[_0x2195('0x126')]=this[_0x2195('0x12a')][_0x2195('0x4')],this[_0x2195('0x129')]=new WeakMap(),this[_0x2195('0xc3')]=!0x1,_0x4540cb[_0x2195('0x72')][_0x2195('0xa4')](_0x2195('0x80'),_0x2195('0x74')),this[_0x2195('0x104')]=_0x4540cb[_0x2195('0x72')][_0x2195('0xe8')](_0x2195('0x80')),_0x4540cb[_0x2195('0x72')][_0x2195('0xa4')](_0x2195('0xba'),!0x0),this['_mergeNestedSuggestions']=_0x4540cb[_0x2195('0x72')][_0x2195('0xe8')](_0x2195('0xba')),this[_0x2195('0x67')]=new _0x575747(_0x4540cb,this[_0x2195('0xf9')]),this[_0x220cd0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x220cd0([0x34,0x30,0x34,0x36,0x31,0x34,0x36,0x30]);}[_0x2195('0x18')](){const _0x34d0b1=this[_0x2195('0x12a')];_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0xe7'))[_0x2195('0xc1')]({'model':'suggestion','view':_0x13fd89=>{const {id:_0x157d92,type:_0x550ac7}=this[_0x2195('0xb9')](_0x13fd89[_0x2195('0x21')]),_0xc06444=['ck-suggestion-marker','ck-suggestion-marker-'+_0x550ac7];let _0x328776=0xbb8;return this[_0x2195('0xfe')][_0x2195('0xa3')](_0x13fd89[_0x2195('0x21')])&&(_0xc06444[_0x2195('0x10f')](_0x2195('0x107')),_0x328776=0xbc2),_0x2195('0xa1')==_0x550ac7&&(_0x328776+=0x5),{'classes':_0xc06444,'attributes':{'data-suggestion':_0x157d92},'priority':_0x328776};}}),_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0x52'))[_0x2195('0x34')](_0x15cd58=>{_0x15cd58['on'](_0x2195('0x11c'),(_0x50f8ed,_0x177d68,_0x2e2ac8)=>{if(!_0x2e2ac8[_0x2195('0x38')]['showSuggestionHighlights'])return;const _0x1e4dc4=_0x177d68[_0x2195('0x1b')];if(!_0x1e4dc4)return;const _0x5d27ca=_0x2e2ac8['mapper'][_0x2195('0x113')](_0x1e4dc4);_0x34d0b1[_0x2195('0x4')][_0x2195('0x37')]['isObject'](_0x1e4dc4)&&_0x5d27ca&&!_0x5d27ca['getCustomProperty'](_0x2195('0x5b'))&&_0x5d27ca['is'](_0x2195('0xf6'))&&_0x3a7bbc(_0x5d27ca,_0x2e2ac8[_0x2195('0xcd')]);},{'priority':_0x2195('0x94')});}),_0x34d0b1['conversion']['for'](_0x2195('0x52'))[_0x2195('0xc1')]({'model':_0x2195('0x77'),'view':(_0x38d5de,_0x93f6b9)=>{if(!_0x93f6b9['options'][_0x2195('0x9')])return null;const {type:_0x241975}=this['_splitMarkerName'](_0x38d5de[_0x2195('0x21')]);return{'classes':['ck-suggestion-marker',_0x2195('0x137')+_0x241975],'priority':0xbb8};}});const _0x3d38fd=({showActiveMarkers:_0x52932d=!0x0}={})=>(_0x138d20,_0x384e4f,_0x54c5f4)=>{if(!_0x384e4f[_0x2195('0x1b')])return;if(_0x384e4f[_0x2195('0x1b')]['is'](_0x2195('0xdb')))return void _0x54c5f4[_0x2195('0x12f')][_0x2195('0x28')](_0x384e4f['item'],_0x138d20[_0x2195('0xe4')]);const _0x5ce078=_0x54c5f4[_0x2195('0x133')][_0x2195('0x113')](_0x384e4f[_0x2195('0x1b')]);if(!(_0x384e4f[_0x2195('0x1b')]['is'](_0x2195('0xfa'))&&_0x34d0b1[_0x2195('0x4')]['schema']['isBlock'](_0x384e4f['item'])&&!_0x5ce078[_0x2195('0xea')](_0x2195('0x15'))))return;const {id:_0x174ffb}=this[_0x2195('0xb9')](_0x384e4f[_0x2195('0x21')]);_0x54c5f4['writer'][_0x2195('0x7a')]([_0x2195('0x0'),'ck-suggestion-marker-formatBlock'],_0x5ce078),_0x54c5f4[_0x2195('0xcd')][_0x2195('0x125')](_0x2195('0x55'),_0x174ffb,_0x5ce078),_0x54c5f4[_0x2195('0x133')][_0x2195('0x88')](_0x5ce078,_0x384e4f['markerName']),_0x52932d&&(this[_0x2195('0xfe')][_0x2195('0xa3')](_0x384e4f[_0x2195('0x21')])?_0x54c5f4['writer']['addClass'](_0x2195('0x107'),_0x5ce078):_0x54c5f4[_0x2195('0xcd')][_0x2195('0x4e')]('ck-suggestion-marker--active',_0x5ce078));for(const _0x56b7b5 of _0x34d0b1[_0x2195('0x4')]['createRangeIn'](_0x384e4f[_0x2195('0x1b')])['getItems']())_0x54c5f4[_0x2195('0x12f')][_0x2195('0x28')](_0x56b7b5,_0x138d20['name']);_0x54c5f4[_0x2195('0x12f')][_0x2195('0x28')](_0x384e4f[_0x2195('0x1b')],_0x138d20[_0x2195('0xe4')]);};_0x34d0b1['conversion'][_0x2195('0x120')]('dataDowncast')['add'](_0x21fdac=>{_0x21fdac['on'](_0x2195('0x2d'),(_0x31350c,_0x22fdd9,_0x383fc0)=>{_0x383fc0[_0x2195('0x38')]['showSuggestionHighlights']&&_0x3d38fd({'showActiveMarkers':!0x1})(_0x31350c,_0x22fdd9,_0x383fc0);},{'priority':'highest'});}),_0x34d0b1[_0x2195('0x85')]['for']('dataDowncast')[_0x2195('0x63')]({'model':_0x2195('0x77'),'view':(_0x1d1c33,_0x4ab2a9)=>_0x4ab2a9['options']['showSuggestionHighlights']?null:{'group':_0x2195('0x77'),'name':_0x1d1c33[_0x2195('0x60')](0xb)}}),_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0x10e'))[_0x2195('0x6f')]({'view':{'name':_0x2195('0x77'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x400869,{writer:_0x3eba75})=>{let _0x47ff11='suggestion:'+_0x400869[_0x2195('0xf3')](_0x2195('0x7e'))+':'+_0x400869[_0x2195('0xf3')]('id');return _0x400869[_0x2195('0xf3')](_0x2195('0xcc'))&&(_0x47ff11+=':'+_0x400869[_0x2195('0xf3')](_0x2195('0xcc'))),_0x3eba75[_0x2195('0x97')]('$marker',{'data-name':_0x47ff11});}}),_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0x10e'))['dataToMarker']({'view':_0x2195('0x77')}),_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0xe7'))[_0x2195('0x34')](_0x3af455=>{_0x3af455['on'](_0x2195('0x2d'),_0x3d38fd(),{'priority':_0x2195('0x94')});}),_0x34d0b1[_0x2195('0x85')][_0x2195('0x120')](_0x2195('0xe7'))[_0x2195('0x34')](_0x215693=>{_0x215693['on'](_0x2195('0x116'),(_0x7ceccf,_0x2ff9a3,_0x341727)=>{const _0x28b57c=_0x341727[_0x2195('0x133')]['markerNameToElements'](_0x2ff9a3[_0x2195('0x21')]);if(_0x28b57c)for(const _0x29da0b of _0x28b57c)_0x29da0b[_0x2195('0xea')](_0x2195('0x15'))||(_0x341727[_0x2195('0xcd')][_0x2195('0x4e')]([_0x2195('0x0'),_0x2195('0x108'),'ck-suggestion-marker--active'],_0x29da0b),_0x341727[_0x2195('0xcd')][_0x2195('0xc5')](_0x2195('0x55'),_0x29da0b),_0x341727[_0x2195('0x133')][_0x2195('0x9f')](_0x29da0b,_0x2ff9a3[_0x2195('0x21')]));},{'priority':'high'});}),_0x34d0b1[_0x2195('0x4')][_0x2195('0x123')][_0x2195('0x51')](_0x980847=>{let _0x18bdcc=!0x1;const _0x5a2399=Array[_0x2195('0xc')](_0x34d0b1[_0x2195('0x4')][_0x2195('0x123')][_0x2195('0xf2')][_0x2195('0xaf')]()),_0x2e3322=new Set();for(const {name:_0x13bad4,data:_0x37c8ef}of _0x5a2399){const {group:_0x38303d,type:_0x31da75,id:_0x40f687}=this[_0x2195('0xb9')](_0x13bad4);if(_0x2195('0x77')!==_0x38303d)continue;const _0x438d0a=this[_0x2195('0x10')][_0x2195('0xe8')](_0x40f687);if(null!=_0x37c8ef[_0x2195('0x100')]){_0x2195('0xa7')==_0x31da75&&(_0x18bdcc=_0x18bdcc||Mt(_0x37c8ef[_0x2195('0x100')],_0x13bad4,_0x980847,_0x34d0b1[_0x2195('0x4')][_0x2195('0x37')]));if(_0x37c8ef[_0x2195('0x100')][_0x2195('0x13d')]||_0x2195('0x10a')==_0x37c8ef[_0x2195('0x100')]['root'][_0x2195('0x65')]||'formatBlock'==_0x31da75&&!Nt(_0x37c8ef[_0x2195('0x100')])||_0x2195('0xa1')==_0x31da75&&!(!_t(_0x4b7d80=_0x37c8ef['newRange'])&&!function(_0x3908c0){return _0x3908c0['start'][_0x2195('0xb4')]==_0x3908c0[_0x2195('0x7')][_0x2195('0x1f')]&&_0x3908c0['start'][_0x2195('0xed')];}(_0x4b7d80)))_0x980847[_0x2195('0x69')](_0x13bad4),_0x18bdcc=!0x0;else{if(!_0x438d0a||!_0x438d0a[_0x2195('0x139')])continue;_0x2e3322['add'](_0x438d0a);}}}var _0x4b7d80;return _0x2e3322['size']>0x0&&(_0x18bdcc=!!this[_0x2195('0x57')](_0x2e3322)||_0x18bdcc),_0x18bdcc;}),_0x34d0b1[_0x2195('0x4')][_0x2195('0x123')][_0x2195('0x51')](_0x5ea08a=>{let _0x49d94c=!0x1;for(const _0x50096c of _0x34d0b1[_0x2195('0x4')][_0x2195('0x123')][_0x2195('0xf2')][_0x2195('0x70')]()){if('insert'!=_0x50096c['type'])continue;const _0x49552f=_0x50096c[_0x2195('0x11f')]['getShiftedBy'](_0x50096c[_0x2195('0x135')]);if(_0x49552f[_0x2195('0xed')])for(const _0x38abf1 of this['_suggestions']['values']()){if(_0x38abf1[_0x2195('0x3f')]||!_0x38abf1[_0x2195('0x139')])continue;if(_0x2195('0x98')!=_0x38abf1[_0x2195('0x33')])continue;const _0x4e856f=_0x38abf1[_0x2195('0xc6')]();if(_0x4e856f[_0x2195('0x90')][_0x2195('0xb4')]!=_0x4e856f[_0x2195('0x7')][_0x2195('0xb4')]&&_0x4e856f['end'][_0x2195('0x6b')](_0x50096c[_0x2195('0x11f')])){const _0x4ebabf=_0x34d0b1['model']['createRange'](_0x4e856f['start'],_0x49552f);_0x5ea08a[_0x2195('0x121')](_0x38abf1[_0x2195('0x13')](),{'range':_0x4ebabf}),_0x49d94c=!0x0;}}}return _0x49d94c;}),_0x34d0b1[_0x2195('0x4')]['markers']['on'](_0x2195('0x49'),(_0x541d90,_0x4fa776,_0x195c67)=>{if(null==_0x195c67){const {id:_0x2e7f45}=this[_0x2195('0xb9')](_0x4fa776[_0x2195('0xe4')]),_0x67a2a4=this['_suggestions'][_0x2195('0xe8')](_0x2e7f45);_0x67a2a4&&_0x67a2a4[_0x2195('0x54')](_0x4fa776[_0x2195('0xe4')]);}}),_0x34d0b1[_0x2195('0x4')][_0x2195('0x123')]['on'](_0x2195('0x7b'),()=>{const _0x5a7b5b=Array[_0x2195('0xc')](_0x34d0b1['model'][_0x2195('0x123')][_0x2195('0xf2')][_0x2195('0xaf')]())[_0x2195('0xfd')](_0x21d63a=>'suggestion'===this[_0x2195('0xb9')](_0x21d63a[_0x2195('0xe4')])[_0x2195('0x50')]);if(0x0===_0x5a7b5b['length'])return;_0x5a7b5b[_0x2195('0x5c')]((_0x363000,_0x1ad99c)=>{const _0x1d496d=_0x363000['data'][_0x2195('0x1e')],_0x2edb73=_0x1ad99c['data'][_0x2195('0x1e')];return null===_0x1d496d&&null===_0x2edb73?0x0:null===_0x1d496d&&null!==_0x2edb73?-0x1:null!==_0x1d496d&&null===_0x2edb73?0x1:_0x1d496d[_0x2195('0x90')][_0x2195('0xd')](_0x2edb73[_0x2195('0x90')])?-0x1:0x1;});const _0x306d0e=new Set(),_0x4fb5b0=new Set();for(const {name:_0x23a435,data:_0x550296}of _0x5a7b5b){const {id:_0x7f0ebe}=this[_0x2195('0xb9')](_0x23a435);if(null===_0x550296[_0x2195('0x1e')]){const _0x229300=this['_handleNewSuggestionMarker'](_0x23a435);_0x4fb5b0[_0x2195('0x34')](_0x229300);}else{const _0x2b08c9=this[_0x2195('0x10')][_0x2195('0xe8')](_0x7f0ebe);null!==_0x550296[_0x2195('0x100')]||_0x2b08c9[_0x2195('0x139')]?(_0x306d0e[_0x2195('0x34')](_0x2b08c9['head']),_0x4fb5b0['add'](_0x2b08c9)):this[_0x2195('0xb7')](_0x2b08c9);}}_0x4fb5b0[_0x2195('0x12b')]>0x0&&this[_0x2195('0x59')](_0x4fb5b0);for(const _0xc26cc of _0x306d0e)this[_0x2195('0xf0')](_0x2195('0x43'),_0xc26cc);}),_0x34d0b1[_0x2195('0x4')]['on']('applyOperation',(_0x2c388b,_0x573907)=>{const _0x3b2375=_0x573907[0x0];if(!this[_0x2195('0x10')]['size'])return;if(!_0x3b2375['isDocumentOperation'])return;if(_0x3b2375[_0x2195('0x111')][_0x2195('0xa0')]||!_0x3b2375[_0x2195('0x111')]['isLocal'])return;let _0x587a0e,_0x3f4f82;switch(_0x3b2375['type']){case _0x2195('0x4b'):_0x587a0e=_0x34d0b1[_0x2195('0x4')]['createPositionAt'](_0x3b2375[_0x2195('0x11f')]),_0x3f4f82=_0x587a0e[_0x2195('0x136')](_0x3b2375[_0x2195('0xab')]);break;case _0x2195('0xe5'):_0x587a0e=_0x34d0b1[_0x2195('0x4')][_0x2195('0xde')](_0x3b2375[_0x2195('0xe2')]),_0x3f4f82=_0x34d0b1[_0x2195('0x4')]['createPositionAt'](_0x3b2375[_0x2195('0x24')]);break;case _0x2195('0x3e'):_0x587a0e=_0x34d0b1[_0x2195('0x4')][_0x2195('0xde')](_0x3b2375['targetPosition']),_0x3f4f82=_0x587a0e[_0x2195('0x136')](_0x3b2375[_0x2195('0xab')]);break;default:return;}const _0x109419=_0x34d0b1[_0x2195('0x4')][_0x2195('0x6c')](_0x587a0e,_0x3f4f82);_0x34d0b1['model'][_0x2195('0xf4')](()=>{for(const {suggestion:_0x2a9129,meta:_0x1d7ce0}of this['_findSuggestions'](_0x109419)){if(_0x2a9129[_0x2195('0x3f')])continue;if('formatInline'==_0x2a9129[_0x2195('0x33')])continue;const _0x580479=_0x2a9129[_0x2195('0xc0')]&&_0x2a9129[_0x2195('0xc0')][_0x2195('0x17')];('formatBlock'!=_0x2a9129[_0x2195('0x33')]||'split'==_0x3b2375[_0x2195('0x33')]&&!_0x580479)&&(_0x1d7ce0[_0x2195('0x5f')]||_0x2195('0xe3')==_0x2a9129[_0x2195('0x33')]&&_0x1d7ce0[_0x2195('0x87')]||_0x2a9129[_0x2195('0xc6')]()['containsRange'](_0x109419)&&this['_breakSuggestionMarker'](_0x2a9129,_0x587a0e,_0x3f4f82));}});},{'priority':_0x2195('0xae')}),_0x34d0b1[_0x2195('0x4')]['on']('deleteContent',(_0x50fe78,_0x2166b4)=>{const _0x13e1cb=_0x2166b4[0x0],_0x4165f4=_0x2166b4[0x1];if(_0x4165f4&&_0x4165f4[_0x2195('0x66')])return;if(this[_0x2195('0xc3')])return;if(!this[_0x2195('0x67')]['value'])return;if(_0x13e1cb[_0x2195('0x13d')])return;const _0x3e6a2a=_0x34d0b1[_0x2195('0x4')][_0x2195('0x37')],{start:_0x5d9b15,end:_0x2e4cc1}=_0x13e1cb[_0x2195('0xc6')](),_0xca7b8a=_0x5d9b15[_0x2195('0xb3')]&&_0x3e6a2a[_0x2195('0xd4')](_0x5d9b15['nodeAfter'])?null:_0x3e6a2a[_0x2195('0x119')](_0x5d9b15,_0x2195('0x64')),_0x3a9a77=_0x2e4cc1[_0x2195('0x1f')]&&_0x3e6a2a['isLimit'](_0x2e4cc1[_0x2195('0x1f')])?null:_0x3e6a2a[_0x2195('0x119')](_0x2e4cc1,_0x2195('0xfb')),_0x6104d7=_0x34d0b1['model'][_0x2195('0x6c')](_0xca7b8a?_0xca7b8a[_0x2195('0x90')]:_0x5d9b15,_0x3a9a77?_0x3a9a77[_0x2195('0x7')]:_0x2e4cc1);_0x34d0b1[_0x2195('0x4')][_0x2195('0xf4')](_0x1a8b57=>{this[_0x2195('0xd2')](_0x6104d7);const _0x11d0b3=_0x34d0b1[_0x2195('0x4')][_0x2195('0x37')][_0x2195('0x119')](_0x6104d7[_0x2195('0x90')]);_0x13e1cb['is']('documentSelection')?_0x1a8b57[_0x2195('0xb0')](_0x11d0b3):_0x13e1cb[_0x2195('0x1c')](_0x11d0b3);}),_0x50fe78[_0x2195('0x76')]();},{'priority':_0x1731a3['normal']+0xa}),_0x34d0b1[_0x2195('0x4')]['on'](_0x2195('0x131'),(_0x16cf7b,_0x5c2952)=>{const _0x52e598=_0x5c2952[_0x5c2952[_0x2195('0x135')]-0x1];_0x52e598&&_0x52e598[_0x2195('0x66')]||this[_0x2195('0xc3')]||this[_0x2195('0x67')][_0x2195('0xc2')]&&(_0x34d0b1[_0x2195('0x4')][_0x2195('0xf4')](()=>{let _0x11b60b=_0x34d0b1[_0x2195('0x4')][_0x2195('0x131')](_0x5c2952[0x0],_0x5c2952[0x1],_0x5c2952[0x2],{'forceDefaultExecution':!0x0});if(!_0x11b60b)return;_0x16cf7b['return']=_0x11b60b[_0x2195('0xa6')]();const _0xedfec5=_0x11b60b[_0x2195('0x7')]['nodeBefore'],_0x1da50b=_0x34d0b1['model'][_0x2195('0x37')];_0xedfec5&&_0x1da50b[_0x2195('0xe')](_0xedfec5)&&!_0x1da50b['isObject'](_0xedfec5)&&(_0x11b60b=_0x34d0b1[_0x2195('0x4')][_0x2195('0x6c')](_0x11b60b[_0x2195('0x90')],_0x34d0b1[_0x2195('0x4')][_0x2195('0xde')](_0xedfec5,_0x2195('0x7')))),this[_0x2195('0x1d')](_0x11b60b);}),_0x16cf7b[_0x2195('0x76')]());},{'priority':_0x2195('0x94')}),this[_0x2195('0x12a')][_0x2195('0x75')][_0x2195('0x34')](_0x2195('0x128'),this[_0x2195('0x67')]),this['enableCommand']('trackChanges');const _0x3804d5=new _0x5e4ad2(_0x34d0b1,this['_suggestions']);_0x34d0b1[_0x2195('0x75')]['add'](_0x2195('0xce'),_0x3804d5),this[_0x2195('0x114')](_0x2195('0xce'));const _0x5768e5=new _0xfca4f8(_0x34d0b1,this['_suggestions']);_0x34d0b1[_0x2195('0x75')][_0x2195('0x34')](_0x2195('0x20'),_0x5768e5),this[_0x2195('0x114')](_0x2195('0x20')),_0x34d0b1['commands'][_0x2195('0x34')](_0x2195('0xa2'),new _0x55da74(_0x34d0b1,_0x3804d5,this[_0x2195('0x10')])),this[_0x2195('0x114')](_0x2195('0xa2')),_0x34d0b1[_0x2195('0x75')][_0x2195('0x34')](_0x2195('0xe1'),new _0x55da74(_0x34d0b1,_0x5768e5,this[_0x2195('0x10')])),this[_0x2195('0x114')](_0x2195('0xe1')),_0x34d0b1[_0x2195('0x75')][_0x2195('0x34')](_0x2195('0x99'),new _0x9e71ef(_0x34d0b1,_0x3804d5,this[_0x2195('0x10')])),this[_0x2195('0x114')](_0x2195('0x99')),_0x34d0b1[_0x2195('0x75')]['add'](_0x2195('0xd8'),new _0x9e71ef(_0x34d0b1,_0x5768e5,this[_0x2195('0x10')])),this['enableCommand']('discardSelectedSuggestions');const _0x3b7e0a=_0x34d0b1[_0x2195('0x3c')][_0x2195('0xe8')](_0x2195('0x130'));this['listenTo'](_0x3b7e0a,_0x2195('0x122'),(_0x54c49d,{threadId:_0xa94310})=>{const _0x10b184=this[_0x2195('0x10')][_0x2195('0xe8')](_0xa94310);_0x10b184&&_0x10b184[_0x2195('0x48')]&&0x1===_0x10b184[_0x2195('0x48')][_0x2195('0x135')]&&this[_0x2195('0x118')](_0xa94310,{'hasComments':!0x0});},{'priority':'low'}),this[_0x2195('0xc4')](_0x3b7e0a,_0x2195('0x83'),(_0xbad412,{threadId:_0x504ed3})=>{const _0x5632ff=this[_0x2195('0x10')]['get'](_0x504ed3);_0x5632ff&&_0x5632ff['commentThread']&&!_0x5632ff[_0x2195('0x48')][_0x2195('0x135')]&&this[_0x2195('0x118')](_0x504ed3,{'hasComments':!0x1});},{'priority':_0x2195('0xdc')});}set['adapter'](_0x1ca98b){if(this[_0x2195('0x92')])throw new _0x143303(_0x2195('0x115'),this);this[_0x2195('0x92')]=_0x1ca98b;}get[_0x2195('0xee')](){return this[_0x2195('0x92')];}['getSuggestions']({skipNotAttached:_0x24eaba=!0x1,toJSON:_0x26b220=!0x1}={}){const _0x369503=[];for(const _0x5f39e6 of this['_suggestions'][_0x2195('0xb')]())_0x24eaba&&!_0x5f39e6[_0x2195('0x139')]||_0x369503['push'](_0x5f39e6);return _0x26b220?_0x369503['map'](_0x6fa5e3=>_0x6fa5e3[_0x2195('0x41')]()):_0x369503;}[_0x2195('0xb8')](_0x577d44){const _0x51f59f=this['_suggestions'][_0x2195('0xe8')](_0x577d44);if(!_0x51f59f)throw new _0x143303('track-changes-suggestion-not-found',this);return _0x51f59f;}['hasSuggestion'](_0x229a3d){return this['_suggestions']['has'](_0x229a3d);}[_0x2195('0xfc')](_0x2c2ff2){const {authorId:_0x550b8d,id:_0xb4189a,attributes:_0x35ba09}=_0x2c2ff2,[_0x2d30f5,_0x3f88dd]=_0x2c2ff2[_0x2195('0x33')][_0x2195('0xe5')](':'),_0x3c893c=this[_0x2195('0x10')]['get'](_0xb4189a)||this[_0x2195('0xd0')](_0x2d30f5,_0x3f88dd,_0xb4189a,_0x550b8d,_0x35ba09);if(this[_0x2195('0x5')](_0x3c893c),this['_checkSuggestionCorrectness'](_0x3c893c,_0x2d30f5,_0x3f88dd||null,_0x550b8d),_0x3c893c[_0x2195('0x12c')]=_0x2c2ff2[_0x2195('0x12c')],_0x35ba09&&_0x35ba09[_0x2195('0x6d')]){const _0x2028ab=_0x35ba09[_0x2195('0x6d')],_0x19e19d=this[_0x2195('0x44')](_0x2028ab[_0x2195('0x23')]);_0x3c893c[_0x2195('0x10b')]=_0x2028ab['createdAt'],_0x3c893c[_0x2195('0xef')]=_0x19e19d,_0x3c893c['isExternal']=!0x0;}else _0x3c893c['authoredAt']=_0x2c2ff2[_0x2195('0x12c')];switch(_0x2c2ff2[_0x2195('0xc0')]&&(_0x3c893c[_0x2195('0xc0')]=_0x2c2ff2[_0x2195('0xc0')]),_0x2c2ff2[_0x2195('0x30')]&&(_0x3c893c['attributes']=_0x2c2ff2[_0x2195('0x30')]),this[_0x2195('0x92')]&&this[_0x2195('0x92')][_0x2195('0x11a')]||(_0x3c893c[_0x2195('0x40')]=!0x0),this[_0x2195('0x129')][_0x2195('0xe8')](_0x3c893c)){case'notReady':this[_0x2195('0x129')][_0x2195('0x8d')](_0x3c893c,_0x2195('0x68'));break;case _0x2195('0x117'):_0x3c893c[_0x2195('0x139')]?(this[_0x2195('0x129')][_0x2195('0x8d')](_0x3c893c,'ready'),this[_0x2195('0xf0')](_0x2195('0x8'),_0x3c893c)):this[_0x2195('0x129')][_0x2195('0x8d')](_0x3c893c,_0x2195('0x95'));}return _0x3c893c;}[_0x2195('0xce')](_0x1c7f80){this[_0x2195('0x66')](()=>{this[_0x2195('0x12a')][_0x2195('0x4')][_0x2195('0xf4')](()=>{for(const _0x7abd7d of _0x1c7f80[_0x2195('0xd1')]())_0x7abd7d['accept']();});});}[_0x2195('0x20')](_0x55d9f2){this['forceDefaultExecution'](()=>{this[_0x2195('0x12a')][_0x2195('0x4')][_0x2195('0xf4')](()=>{for(const _0x248ba7 of _0x55d9f2[_0x2195('0xd1')]())_0x248ba7[_0x2195('0x81')]();});});}[_0x2195('0x114')](_0x2943d9,_0x2e4a23){const _0x50ef22=this['editor']['commands'][_0x2195('0xe8')](_0x2943d9);if(!_0x50ef22)throw new _0x143303(_0x2195('0x82'),this,{'commandName':_0x2943d9});this[_0x2195('0xf9')][_0x2195('0x34')](_0x50ef22),_0x2e4a23&&_0x50ef22['on'](_0x2195('0xac'),(_0x59486d,_0x5731e2)=>{this[_0x2195('0x67')]['value']&&(this['_isForcedDefaultExecutionBlock']||_0x5731e2['length']>0x0&&_0x5731e2[_0x5731e2[_0x2195('0x135')]-0x1]&&_0x5731e2[_0x5731e2[_0x2195('0x135')]-0x1]['forceDefaultExecution']||(_0x2e4a23((..._0x5292ff)=>_0x50ef22[_0x2195('0xac')](..._0x5292ff,{'forceDefaultExecution':!0x0}),..._0x5731e2),_0x59486d[_0x2195('0x76')]()));},{'priority':_0x2195('0x94')});}[_0x2195('0x66')](_0xbd2a3c){let _0x243d72,_0x57e58c;const _0x177a21=this['_isForcedDefaultExecutionBlock'];this[_0x2195('0xc3')]=!0x0;try{_0x243d72=_0xbd2a3c();}catch(_0x10eff5){_0x57e58c=_0x10eff5;}return _0x177a21||(this[_0x2195('0xc3')]=!0x1),_0x57e58c&&_0x143303['rethrowUnexpectedError'](_0x57e58c,this),_0x243d72;}['markInsertion'](_0x21b148,_0x590656=null,_0x11edb3={}){if(_0x21b148[_0x2195('0x13d')])return null;const _0x512e12=this[_0x2195('0x12a')]['plugins'][_0x2195('0xe8')](_0x2195('0x2'))['me'];for(const {suggestion:_0x128d3b,meta:_0x5b3f7d}of this[_0x2195('0x7c')](_0x21b148,_0x2195('0xe3')))if(_0x5b3f7d[_0x2195('0x87')]){if(!_0x5b3f7d[_0x2195('0x47')]){if(!this[_0x2195('0x78')]&&_0x5b3f7d[_0x2195('0x5f')])continue;return _0x128d3b;}if(_0x590656==_0x128d3b['subType']){const _0x1fdebf=_0x128d3b[_0x2195('0xc6')]();return _0x1fdebf['start'][_0x2195('0x6b')](_0x21b148[_0x2195('0x7')])?this['_setSuggestionRange'](_0x128d3b,this[_0x2195('0x126')][_0x2195('0x6c')](_0x21b148[_0x2195('0x90')],_0x1fdebf['end'])):this[_0x2195('0xc7')](_0x128d3b,this[_0x2195('0x126')][_0x2195('0x6c')](_0x1fdebf[_0x2195('0x90')],_0x21b148[_0x2195('0x7')])),_0x128d3b;}}const _0x2b719d=_0x3dda14(),_0x110c62=_0x512e12['id'],_0x1a1b06=_0x590656?_0x2195('0x11b')+_0x590656:_0x2195('0xe3'),_0x5476c4=this['_setSuggestionData']({'id':_0x2b719d,'type':_0x1a1b06,'createdAt':new Date(),'authorId':_0x110c62,'attributes':_0x11edb3});return this[_0x2195('0xb1')](_0x1a1b06,_0x2b719d,_0x110c62,_0x21b148),_0x5476c4;}[_0x2195('0x35')](_0x41096b,_0x30c4f6=_0x2195('0x101'),_0x5068f9={}){const _0xe76513=this[_0x2195('0x12a')][_0x2195('0x3c')][_0x2195('0xe8')]('Users')['me'],_0x1d80c2=this[_0x2195('0x6e')]['getSuggestionCallback'](_0x2195('0xe3'),_0x30c4f6,_0x2195('0x3d'));for(const _0x3609a1 of this[_0x2195('0x27')]())if(_0x3609a1[_0x2195('0xef')]['id']==_0xe76513['id']&&_0x2195('0xe3')==_0x3609a1[_0x2195('0x33')]&&_0x3609a1[_0x2195('0x103')]==_0x30c4f6&&(_0x1d80c2(_0x3609a1[_0x2195('0x2f')](),_0x41096b)||_0x1d80c2(_0x41096b,_0x3609a1[_0x2195('0x2f')]()))){for(const _0x4e700a of _0x41096b)_0x3609a1[_0x2195('0xeb')](_0x4e700a);return _0x3609a1;}if(this[_0x2195('0x78')])for(const _0xf37836 of _0x41096b)for(const {suggestion:_0xf3edf0,meta:_0x10ad3e}of this[_0x2195('0x7c')](_0xf37836,'insertion')){if(!_0x10ad3e['isOwn'])continue;let _0x52ea2c=!0x0;for(const _0x287ab0 of _0xf3edf0[_0x2195('0x2f')]())for(const _0x24c5d7 of _0x41096b)if(!_0x287ab0[_0x2195('0x3a')](_0x24c5d7)){_0x52ea2c=!0x1;break;}if(_0x52ea2c)return _0xf3edf0;}const _0x4f896d=_0x3dda14(),_0x37e892=_0xe76513['id'],_0x4b1d94=_0x2195('0x11b')+_0x30c4f6,_0x23f7b4=this['_setSuggestionData']({'id':_0x4f896d,'type':_0x4b1d94,'createdAt':new Date(),'authorId':_0x37e892,'attributes':_0x5068f9});for(const _0x5a34d1 of _0x41096b)this[_0x2195('0xb1')](_0x4b1d94,_0x4f896d,_0x37e892,_0x5a34d1,_0x1ee015['getMultiRangeId']());return _0x23f7b4;}['markInlineFormat'](_0x49dd55,_0x20c940,_0x3a71cd=null,_0x5cf60d={}){if(_0x3a71cd=_0x3a71cd||$t(_0x20c940),_0x49dd55[_0x2195('0x13d')])return null;if(_0x2195('0x11d')===this['_trackFormatChanges']){const _0x104595=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0xa7'),_0x3a71cd,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x104595([_0x49dd55],_0x20c940,_0x5cf60d)),null;}const _0x55744a=this[_0x2195('0x12a')][_0x2195('0x3c')]['get'](_0x2195('0x2'))['me'],_0x83068d=[];if('always'!==this[_0x2195('0x104')])for(const {suggestion:_0x4b3a57,meta:_0x4370ff}of this['_findSuggestions'](_0x49dd55,_0x2195('0xe3')))_0x4370ff[_0x2195('0x87')]&&!_0x4370ff[_0x2195('0x13e')]&&_0x83068d[_0x2195('0x10f')](..._0x4b3a57[_0x2195('0x2f')]());const _0x4f732c=function(_0x54c29c,_0x521e49){const _0x11ab6f=[];for(const _0x491321 of _0x521e49){const _0x2efaf7=_0x54c29c[_0x2195('0x106')](_0x491321);_0x2efaf7&&_0x11ab6f[_0x2195('0x10f')](_0x2efaf7);}return _0x11ab6f;}(_0x49dd55,_0x83068d),_0x2432a5=function(_0x418b85,_0x4f2f29){const _0x4f21c3=[_0x418b85];for(const _0x4e3400 of _0x4f2f29){let _0x19c3ca=0x0;for(;_0x19c3ca<_0x4f21c3[_0x2195('0x135')];){const _0x3a4a54=_0x4f21c3[_0x19c3ca][_0x2195('0x26')](_0x4e3400);_0x4f21c3['splice'](_0x19c3ca,0x1,..._0x3a4a54),_0x19c3ca+=_0x3a4a54[_0x2195('0x135')];}}return _0x4f21c3;}(_0x49dd55,_0x83068d);_0x4f732c['length']&&this[_0x2195('0x126')][_0x2195('0xf4')](()=>{for(const _0x2f88f1 of _0x4f732c){const _0x515b27=this[_0x2195('0x6e')][_0x2195('0xf')]('formatInline',_0x3a71cd,_0x2195('0x5e'));this[_0x2195('0x66')](()=>_0x515b27([_0x2f88f1],_0x20c940,_0x5cf60d));}});for(const _0x55768c of _0x2432a5){let _0x768bae=null,_0x1c627f=_0x55768c[_0x2195('0x90')],_0x18a2c6=_0x55768c[_0x2195('0x7')];for(const {suggestion:_0x44200b,meta:_0x2b195f}of this['_findSuggestions'](_0x55768c,'formatInline')){if(!_0x2b195f[_0x2195('0x87')])continue;if(_0x44200b[_0x2195('0x103')]!=_0x3a71cd)continue;const _0x5b6eff=_0x44200b[_0x2195('0xc6')]();if(_0x5b6eff['containsRange'](_0x55768c,!0x0))return null;_0x1c627f=_0x1c627f[_0x2195('0xd')](_0x5b6eff['start'])?_0x1c627f:_0x5b6eff['start'],_0x18a2c6=_0x18a2c6[_0x2195('0x4d')](_0x5b6eff[_0x2195('0x7')])?_0x18a2c6:_0x5b6eff[_0x2195('0x7')],_0x768bae?_0x5b6eff[_0x2195('0x90')][_0x2195('0xd')](_0x768bae['getFirstRange']()[_0x2195('0x90')])?(_0x768bae[_0x2195('0x13b')](),_0x768bae=_0x44200b):_0x44200b[_0x2195('0x13b')]():_0x768bae=_0x44200b;}const _0x475abd=this[_0x2195('0x126')]['createRange'](_0x1c627f,_0x18a2c6);if(_0x768bae)this['_setSuggestionRange'](_0x768bae,_0x475abd);else{const _0x40aa61=_0x3dda14(),_0x4e9295=_0x55744a['id'];this[_0x2195('0xdf')]({'id':_0x40aa61,'type':_0x2195('0x86')+_0x3a71cd,'data':_0x20c940,'createdAt':new Date(),'authorId':_0x4e9295,'attributes':_0x5cf60d}),this['_addSuggestionMarker'](_0x2195('0x86')+_0x3a71cd,_0x40aa61,_0x4e9295,_0x475abd);}}return null;}[_0x2195('0x110')](_0x1e42fe,_0x2ecfa1,_0x5d1764=[],_0x5b913e=null,_0x5c6037={}){_0x2ecfa1[_0x2195('0xf8')]||(_0x2ecfa1[_0x2195('0xf8')]=_0x2ecfa1[_0x2195('0x9d')]),_0x2ecfa1[_0x2195('0x17')]=_0x1e42fe['is'](_0x2195('0xbe')),_0x5b913e=_0x5b913e||$t(_0x2ecfa1);const _0x446157=_0x5d1764[_0x2195('0xd5')](_0xa4a9b7=>Rt(_0xa4a9b7,this['_model'])),_0x38efaf=_0x1e42fe['is'](_0x2195('0xbe'))?_0x1e42fe:Rt(_0x1e42fe,this[_0x2195('0x126')]);if(_0x2195('0x11d')===this[_0x2195('0x104')]){const _0x35d98c=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0x98'),_0x5b913e,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x35d98c([_0x38efaf],_0x2ecfa1,_0x5c6037)),null;}_0x446157[_0x2195('0x10f')](_0x38efaf);let _0x321ae6=!0x0;for(const _0x3b7e64 of _0x446157)if(!this[_0x2195('0xa')](_0x3b7e64)){_0x321ae6=!0x1;break;}if(_0x321ae6&&'always'!==this['_trackFormatChanges']){const _0x1f37b1=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0x98'),_0x5b913e,_0x2195('0x5e'));return this['forceDefaultExecution'](()=>_0x1f37b1([_0x38efaf],_0x2ecfa1,_0x5c6037)),null;}let _0x334033=null,_0x50622d=_0x38efaf['start'],_0x1318d3=_0x38efaf[_0x2195('0x7')];for(const {suggestion:_0x3bfbb8,meta:_0x1db7b5}of this[_0x2195('0x7c')](_0x38efaf,_0x2195('0x98'))){if(!_0x1db7b5['isOwn']||_0x1db7b5[_0x2195('0x47')]||_0x1db7b5[_0x2195('0x5f')]||_0x1db7b5[_0x2195('0x13e')])continue;if(_0x3bfbb8['data'][_0x2195('0xf8')]!=_0x2ecfa1[_0x2195('0xf8')])continue;const _0x150b8d=_0x3bfbb8[_0x2195('0xc6')]();if(_0x3bfbb8['subType']==_0x5b913e){if(_0x150b8d[_0x2195('0x3a')](_0x38efaf,!0x0))return null;_0x50622d=_0x50622d[_0x2195('0xd')](_0x150b8d[_0x2195('0x90')])?_0x50622d:_0x150b8d[_0x2195('0x90')],_0x1318d3=_0x1318d3[_0x2195('0x4d')](_0x150b8d[_0x2195('0x7')])?_0x1318d3:_0x150b8d['end'],_0x334033?_0x150b8d[_0x2195('0x90')][_0x2195('0xd')](_0x334033[_0x2195('0xc6')]()['start'])?(_0x334033[_0x2195('0x13b')](),_0x334033=_0x3bfbb8):_0x3bfbb8[_0x2195('0x13b')]():_0x334033=_0x3bfbb8;}else{const _0x197261=_0x38efaf['getIntersection'](_0x150b8d);this['_cutOutSuggestionMarker'](_0x3bfbb8,_0x197261);}}const _0x4a84b1=this[_0x2195('0x12a')][_0x2195('0x3c')]['get']('Users')['me'],_0x59df55=_0x3dda14(),_0x151644=_0x4a84b1['id'];if(_0x334033)return this['_setSuggestionRange'](_0x334033,this[_0x2195('0x126')][_0x2195('0x6c')](_0x50622d,_0x1318d3)),_0x334033;{const _0x3a9680=this[_0x2195('0xdf')]({'id':_0x59df55,'type':_0x2195('0x56')+_0x5b913e,'data':_0x2ecfa1,'createdAt':new Date(),'authorId':_0x151644,'attributes':_0x5c6037});return this['_addSuggestionMarker'](_0x2195('0x56')+_0x5b913e,_0x59df55,_0x151644,this[_0x2195('0x126')][_0x2195('0x6c')](_0x50622d,_0x1318d3)),_0x3a9680;}}[_0x2195('0xd9')](_0x148708,_0x231501,_0xafd1b5=[],_0x58e1ee=null,_0x1b314d={}){_0x231501['formatGroupId']||(_0x231501['formatGroupId']=_0x231501[_0x2195('0x9d')]);const _0x386b02=_0x148708[0x0];_0x231501[_0x2195('0x17')]=_0x386b02['is'](_0x2195('0xbe')),_0x58e1ee=_0x58e1ee||$t(_0x231501);const _0x526e6b=_0xafd1b5[_0x2195('0xd5')](_0x3736c4=>Rt(_0x3736c4,this[_0x2195('0x126')])),_0x3879f2=_0x386b02['is'](_0x2195('0xbe'))?_0x148708:_0x148708['map'](_0xb71725=>Rt(_0xb71725,this['_model']));if(_0x2195('0x11d')===this[_0x2195('0x104')]){const _0x51f42f=this[_0x2195('0x6e')][_0x2195('0xf')]('formatBlock',_0x58e1ee,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x51f42f(_0x3879f2,_0x231501,_0x1b314d)),null;}_0x526e6b[_0x2195('0x10f')](..._0x3879f2);let _0x2f455d=!0x0;for(const _0x5c70a2 of _0x526e6b)if(!this['_rangeIsInLocalUserInsertion'](_0x5c70a2)){_0x2f455d=!0x1;break;}if(_0x2f455d&&_0x2195('0x11')!==this[_0x2195('0x104')]){const _0x27b8b5=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0x98'),_0x58e1ee,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x27b8b5(_0x3879f2,_0x231501,_0x1b314d)),null;}const _0x14a8e4=this[_0x2195('0x12a')]['plugins']['get'](_0x2195('0x2'))['me'];for(const _0x518c91 of this[_0x2195('0x27')]()){if(_0x518c91[_0x2195('0xef')]['id']!=_0x14a8e4['id'])continue;if(_0x2195('0x98')!=_0x518c91[_0x2195('0x33')]||_0x518c91[_0x2195('0xc0')][_0x2195('0xf8')]!=_0x231501[_0x2195('0xf8')])continue;const _0x1c1fc8=_0x518c91[_0x2195('0x103')]==_0x58e1ee;for(let _0x56fd23=0x0;_0x56fd23<_0x3879f2[_0x2195('0x135')];_0x56fd23++){const _0x42ce31=_0x3879f2[_0x56fd23];for(const _0x23e38d of _0x518c91[_0x2195('0x25')]()){const _0x15581d=_0x23e38d[_0x2195('0xd7')]();if(_0x42ce31[_0x2195('0x6b')](_0x15581d)){_0x1c1fc8?(_0x3879f2[_0x2195('0x19')](_0x56fd23,0x1),_0x56fd23--):_0x518c91[_0x2195('0x69')](_0x23e38d[_0x2195('0xe4')]);break;}}}}if(0x0==_0x3879f2[_0x2195('0x135')])return null;const _0x15aa3d=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0x98'),_0x58e1ee,'join');for(const _0x33ed8d of this['getSuggestions']())if(_0x33ed8d[_0x2195('0xef')]['id']==_0x14a8e4['id']&&'formatBlock'==_0x33ed8d[_0x2195('0x33')]&&_0x33ed8d['data'][_0x2195('0xf8')]==_0x231501[_0x2195('0xf8')]&&_0x33ed8d[_0x2195('0x103')]==_0x58e1ee&&(_0x15aa3d(_0x33ed8d['getRanges'](),_0x3879f2)||_0x15aa3d(_0x3879f2,_0x33ed8d['getRanges']()))){for(const _0x467816 of _0x3879f2)_0x33ed8d[_0x2195('0xeb')](_0x467816);return _0x33ed8d;}const _0x22be6d=_0x3dda14(),_0x4ee343=_0x14a8e4['id'],_0xeadb5b=_0x2195('0x56')+_0x58e1ee,_0x5af904=this[_0x2195('0xdf')]({'id':_0x22be6d,'type':_0xeadb5b,'data':_0x231501,'createdAt':new Date(),'authorId':_0x4ee343,'attributes':_0x1b314d});for(const _0x1efa74 of _0x3879f2)this['_addSuggestionMarker'](_0xeadb5b,_0x22be6d,_0x4ee343,_0x1efa74,_0x1ee015[_0x2195('0x8c')]());return _0x5af904;}[_0x2195('0xd2')](_0xc676b5,_0x3e972f=null,_0x2b66a7={}){if(_0xc676b5[_0x2195('0x13d')])return null;const _0x3dcb89=this[_0x2195('0x12a')][_0x2195('0x3c')]['get'](_0x2195('0x2'))['me'],_0x41d4dd=new _0x30ce05(_0xc676b5['start'],_0xc676b5[_0x2195('0x7')]);for(const {suggestion:_0x5e55f4,meta:_0x306b30}of this[_0x2195('0x7c')](_0x41d4dd,'insertion'))if(_0x306b30[_0x2195('0x87')]&&!_0x306b30[_0x2195('0x47')]){if(_0x5e55f4[_0x2195('0x3f')]){const _0x42f58a=_0x5e55f4[_0x2195('0x2f')]()['filter'](_0x55f81f=>'$graveyard'!=_0x55f81f['root'][_0x2195('0x65')]);_0x42f58a[_0x2195('0x124')](_0x655cf5=>_0x41d4dd[_0x2195('0x3a')](_0x655cf5,!0x0))&&_0x5e55f4[_0x2195('0x81')]();if(_0x42f58a[_0x2195('0x12d')](_0x2e4bf1=>_0x2e4bf1[_0x2195('0x3a')](_0x41d4dd,!0x0))){const _0x326635=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0xa1'),_0x3e972f,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x326635([_0x41d4dd],null,_0x2b66a7)),null;}}else{const _0x484e17=_0x41d4dd[_0x2195('0x106')](_0x5e55f4['getFirstRange']());null!==_0x484e17&&_0x5e55f4[_0x2195('0x1')]([_0x484e17],null,_0x2b66a7);}}if(_0x41d4dd[_0x2195('0x46')](),_0x41d4dd[_0x2195('0x13d')]||'$graveyard'==_0x41d4dd[_0x2195('0x3')][_0x2195('0x65')])return null;let _0x5451a5=null,_0x49d1dd=_0x41d4dd[_0x2195('0x90')],_0x516b0c=_0x41d4dd['end'];for(const {suggestion:_0x29535a,meta:_0x12520a}of this[_0x2195('0x7c')](_0x41d4dd,_0x2195('0xa1')))if(_0x12520a[_0x2195('0x87')]){if(_0x29535a[_0x2195('0x3f')]&&this[_0x2195('0x78')]){let _0x28c612=!0x0;for(const _0x3263dd of _0x29535a[_0x2195('0x2f')]()){if(_0x3263dd['containsRange'](_0x41d4dd,!0x0))return _0x29535a;_0x41d4dd[_0x2195('0x3a')](_0x3263dd)||(_0x28c612=!0x1);}_0x28c612&&_0x29535a[_0x2195('0x81')]();}else{const _0x3f1317=_0x29535a[_0x2195('0xc6')]();if(_0x3f1317[_0x2195('0x3a')](_0x41d4dd,!0x0)){if(!this[_0x2195('0x78')]&&_0x12520a[_0x2195('0x5f')])continue;return _0x29535a;}_0x49d1dd=_0x49d1dd['isBefore'](_0x3f1317[_0x2195('0x90')])?_0x49d1dd:_0x3f1317['start'],_0x516b0c=_0x516b0c[_0x2195('0x4d')](_0x3f1317[_0x2195('0x7')])?_0x516b0c:_0x3f1317[_0x2195('0x7')],_0x5451a5?_0x3f1317[_0x2195('0x90')]['isBefore'](_0x5451a5[_0x2195('0xc6')]()[_0x2195('0x90')])?(_0x5451a5[_0x2195('0x13b')](),_0x5451a5=_0x29535a):_0x29535a[_0x2195('0x13b')]():_0x5451a5=_0x29535a;}}if(_0x5451a5)return this[_0x2195('0xc7')](_0x5451a5,this[_0x2195('0x126')]['createRange'](_0x49d1dd,_0x516b0c)),_0x5451a5;{const _0xeb7389=_0x3dda14(),_0x1e8e0c=this[_0x2195('0x126')][_0x2195('0x6c')](_0x49d1dd,_0x516b0c),_0x33866c=_0x3dcb89['id'],_0x106334=_0x3e972f?_0x2195('0x10d')+_0x3e972f:'deletion',_0x95cb90=this[_0x2195('0xdf')]({'id':_0xeb7389,'type':_0x106334,'createdAt':new Date(),'authorId':_0x33866c,'attributes':_0x2b66a7});return this[_0x2195('0xb1')](_0x106334,_0xeb7389,_0x33866c,_0x1e8e0c),_0x95cb90;}}[_0x2195('0xb2')](_0x2e0a1f,_0x5f1340=_0x2195('0x101'),_0x5a085e={}){const _0x401712=this[_0x2195('0x12a')][_0x2195('0x3c')]['get'](_0x2195('0x2'))['me'],_0x3d0694=_0x2e0a1f['map'](_0x542621=>new _0x30ce05(_0x542621[_0x2195('0x90')],_0x542621[_0x2195('0x7')])),_0x5ac1d8=new Set();for(const _0x3f1dfc of _0x3d0694)for(const {suggestion:_0x18b3b2,meta:_0x54486c}of this[_0x2195('0x7c')](_0x3f1dfc,'insertion'))_0x54486c[_0x2195('0x87')]&&!_0x54486c[_0x2195('0x47')]&&_0x5ac1d8[_0x2195('0x34')](_0x18b3b2);for(const _0x286555 of _0x5ac1d8)if(_0x286555['isMultiRange']){const _0x58d5c0=_0x286555[_0x2195('0x2f')]();(!_0x286555[_0x2195('0x30')]||!_0x286555[_0x2195('0x30')][_0x2195('0xf7')])&&(_0x58d5c0['every'](_0x3d1a50=>_0x3d0694[_0x2195('0x12d')](_0x12b4b8=>_0x12b4b8[_0x2195('0x3a')](_0x3d1a50,!0x0)))&&_0x286555[_0x2195('0x81')]());if(_0x3d0694[_0x2195('0x124')](_0x1a1f6d=>_0x58d5c0[_0x2195('0x12d')](_0x78539e=>_0x78539e[_0x2195('0x3a')](_0x1a1f6d,!0x0)))){const _0x1e8369=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0xa1'),_0x5f1340,'accept');return this['forceDefaultExecution'](()=>_0x1e8369(_0x2e0a1f,null,_0x5a085e)),null;}}else{const _0x21e2fd=_0x286555[_0x2195('0xc6')]();_0x3d0694[_0x2195('0x12d')](_0x177603=>_0x177603[_0x2195('0x3a')](_0x21e2fd,!0x0))&&_0x286555['discard']();if(_0x3d0694[_0x2195('0x124')](_0x48a022=>_0x21e2fd[_0x2195('0x3a')](_0x48a022,!0x0))){const _0x170baa=this[_0x2195('0x6e')][_0x2195('0xf')](_0x2195('0xa1'),_0x5f1340,_0x2195('0x5e'));return this[_0x2195('0x66')](()=>_0x170baa(_0x3d0694,null,_0x5a085e)),null;}}const _0x4db3aa=this[_0x2195('0x6e')][_0x2195('0xf')]('deletion',_0x5f1340,_0x2195('0x3d'));let _0x5d12f5=null;for(const _0x48c06c of this['getSuggestions']())if(_0x48c06c[_0x2195('0xef')]['id']==_0x401712['id']&&_0x48c06c[_0x2195('0x139')]&&'deletion'==_0x48c06c[_0x2195('0x33')]&&_0x48c06c[_0x2195('0x103')]==_0x5f1340&&(_0x4db3aa(_0x48c06c['getRanges'](),_0x3d0694)||_0x4db3aa(_0x3d0694,_0x48c06c[_0x2195('0x2f')]()))){if(_0x5d12f5){if(_0x48c06c[_0x2195('0x48')]&&_0x48c06c['commentThread']['length'])continue;for(const _0x41bc3d of _0x48c06c['getRanges']())_0x5d12f5[_0x2195('0x1a')](_0x41bc3d)||_0x5d12f5[_0x2195('0xeb')](_0x41bc3d);_0x48c06c[_0x2195('0x13b')]();}else{_0x5d12f5=_0x48c06c;for(const _0x28f5cc of _0x3d0694)_0x48c06c['isIntersectingWithRange'](_0x28f5cc)||_0x48c06c[_0x2195('0xeb')](_0x28f5cc);}}if(_0x5d12f5)return _0x5d12f5;_0x5ac1d8[_0x2195('0x4a')]();for(const _0x494595 of _0x3d0694)for(const {suggestion:_0x4916c1,meta:_0x2b8308}of this[_0x2195('0x7c')](_0x494595,'deletion'))_0x2b8308[_0x2195('0x87')]&&_0x5ac1d8[_0x2195('0x34')](_0x4916c1);for(const _0x3fb483 of _0x5ac1d8){const _0x338d60=_0x3fb483['getRanges']();if(!_0x5a085e||!_0x5a085e[_0x2195('0xf7')]){if(_0x3d0694[_0x2195('0x124')](_0xa71d30=>_0x338d60[_0x2195('0x12d')](_0xe79b86=>_0xe79b86['containsRange'](_0xa71d30,!0x0))))return _0x3fb483;}(!_0x3fb483[_0x2195('0x30')]||!_0x3fb483['attributes'][_0x2195('0xf7')])&&(_0x338d60[_0x2195('0x124')](_0x2c8c96=>_0x3d0694[_0x2195('0x12d')](_0x49b77f=>_0x49b77f['containsRange'](_0x2c8c96,!0x0)))&&_0x3fb483[_0x2195('0x81')]());}const _0x553139=_0x3dda14(),_0x448651=_0x401712['id'],_0x1c11ba=_0x2195('0x10d')+_0x5f1340,_0x321556=this['_setSuggestionData']({'id':_0x553139,'type':_0x1c11ba,'createdAt':new Date(),'authorId':_0x448651,'attributes':_0x5a085e});for(const _0x3d6568 of _0x3d0694)_0x3d6568[_0x2195('0x46')](),_0x3d6568[_0x2195('0x13d')]||_0x2195('0x10a')==_0x3d6568[_0x2195('0x3')][_0x2195('0x65')]||this['_addSuggestionMarker'](_0x1c11ba,_0x553139,_0x448651,_0x3d6568,_0x1ee015[_0x2195('0x8c')]());return _0x321556;}['_setSuggestionRange'](_0x4bcb79,_0x221cec){const _0x55723e=_0x4bcb79['getFirstMarker']();this[_0x2195('0x126')][_0x2195('0xf4')](_0x20897b=>{_0x20897b[_0x2195('0x121')](_0x55723e,{'range':_0x221cec});});}[_0x2195('0x5')](_0x5bc4ae){const _0x245421=_0x5bc4ae['id'],_0x1a4a31=this[_0x2195('0x12a')]['config']['get'](_0x2195('0x9c'));this[_0x2195('0x91')]['hasCommentThread'](_0x245421)||this[_0x2195('0x91')][_0x2195('0x84')]({'channelId':_0x1a4a31,'threadId':_0x245421,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4137de=this[_0x2195('0x91')]['getCommentThread'](_0x245421);_0x4137de['unbind'](_0x2195('0x61')),_0x4137de[_0x2195('0x61')]=!0x1,_0x5bc4ae[_0x2195('0x48')]=_0x4137de;}[_0x2195('0xc8')](_0x5ec976,_0xac5107,_0xac2a54,_0x1049f8){if(_0x5ec976[_0x2195('0x33')]!=_0xac5107||_0x5ec976[_0x2195('0x103')]!=_0xac2a54||_0x5ec976[_0x2195('0xa9')]['id']!=_0x1049f8)throw this['editor'][_0x2195('0xca')](_0x2195('0xa5')),new _0x143303('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2e6687,_0x56442a){const _0x1b0c6d=_0x2e6687[_0x2195('0xc6')]();if(_0x56442a[_0x2195('0x6b')](_0x1b0c6d))_0x2e6687['removeMarkers']();else{if(_0x1b0c6d[_0x2195('0x3a')](_0x56442a)){const _0x5c1ffb=this[_0x2195('0x126')][_0x2195('0xde')](_0x56442a[_0x2195('0x90')][_0x2195('0x1f')],'end');this[_0x2195('0xc7')](_0x2e6687,this['_model']['createRange'](_0x1b0c6d[_0x2195('0x90')],_0x5c1ffb));const _0xe475fa=_0x3dda14(),_0xb44c1b=_0x2e6687[_0x2195('0xa9')]['id'],_0x358ee1=_0x2e6687[_0x2195('0x33')]+':'+_0x2e6687[_0x2195('0x103')];this[_0x2195('0xdf')]({'id':_0xe475fa,'type':_0x358ee1,'createdAt':new Date(),'authorId':_0xb44c1b,'data':_0x2e6687['data'],'attributes':_0x2e6687[_0x2195('0x30')]});const _0x151a16=this[_0x2195('0x126')][_0x2195('0xde')](_0x56442a[_0x2195('0x7')][_0x2195('0xb4')],_0x2195('0x138')),_0x49f2c5=this[_0x2195('0x126')][_0x2195('0x6c')](_0x151a16,_0x1b0c6d[_0x2195('0x7')]);this[_0x2195('0xb1')](_0x358ee1,_0xe475fa,_0xb44c1b,_0x49f2c5);}else{if(_0x1b0c6d['containsPosition'](_0x56442a[_0x2195('0x90')])){const _0x29d14e=this[_0x2195('0x126')][_0x2195('0xde')](_0x56442a[_0x2195('0x90')][_0x2195('0x1f')],_0x2195('0x7'));this[_0x2195('0xc7')](_0x2e6687,this[_0x2195('0x126')][_0x2195('0x6c')](_0x1b0c6d[_0x2195('0x90')],_0x29d14e));}else{const _0x109d6d=this['_model']['createPositionAt'](_0x56442a[_0x2195('0x7')][_0x2195('0xb4')],_0x2195('0x138'));this[_0x2195('0xc7')](_0x2e6687,this['_model']['createRange'](_0x109d6d,_0x1b0c6d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x373a47){for(const {suggestion:_0x18f4c2,meta:_0x1fdc45}of this[_0x2195('0x7c')](_0x373a47,_0x2195('0xe3'))){if(!_0x1fdc45[_0x2195('0x87')])continue;const _0x3262ca=_0x18f4c2['getRanges']();for(const _0x39912b of _0x3262ca)if(!_0x373a47[_0x2195('0x26')](_0x39912b)[_0x2195('0x135')])return!0x0;}return!0x1;}[_0x2195('0xa8')](_0x5f2ad8){const _0xb1be73=this[_0x2195('0x12a')][_0x2195('0x3c')][_0x2195('0xe8')](_0x2195('0x2'))[_0x2195('0x6a')](_0x5f2ad8);if(!_0xb1be73)throw new _0x143303(_0x2195('0xf1'),this);return _0xb1be73;}[_0x2195('0x44')](_0x167a64){const _0x54cbaa=this[_0x2195('0x12a')][_0x2195('0x3c')][_0x2195('0xe8')](_0x2195('0x2')),_0x2969cf=_0x506120(_0x2195('0x4c')+_0x167a64),_0x32e982=_0x54cbaa[_0x2195('0x6a')](_0x2969cf);return _0x32e982||_0x54cbaa['addUser']({'id':_0x2969cf,'name':_0x167a64});}[_0x2195('0xd0')](_0x500525,_0x3fe6c7,_0x5b8471,_0x4914b4,_0x31a49e){const _0xbfa156=this[_0x2195('0xa8')](_0x4914b4),_0xc7d461=this[_0x2195('0x6e')]['buildSuggestion'](_0x500525,_0x3fe6c7,_0x5b8471,_0xbfa156,_0x31a49e,_0x4d8349=>this[_0x2195('0x118')](_0x5b8471,{'attributes':_0x4d8349}));return this[_0x2195('0xc4')](_0xc7d461,_0x2195('0x5e'),()=>{this[_0x2195('0x118')](_0x5b8471,{'state':'accepted'});},{'priority':_0x2195('0x94')}),this[_0x2195('0xc4')](_0xc7d461,_0x2195('0x81'),()=>{this[_0x2195('0x118')](_0x5b8471,{'state':_0x2195('0xbb')});},{'priority':_0x2195('0x94')}),this[_0x2195('0x10')]['set'](_0x5b8471,_0xc7d461),this[_0x2195('0x129')]['set'](_0xc7d461,_0x2195('0x2a')),_0xc7d461;}[_0x2195('0xb9')](_0x20868e){const _0x15e14f=_0x20868e[_0x2195('0xe5')](':');return{'group':_0x15e14f[0x0],'type':_0x15e14f[0x1],'subType':_0x15e14f[_0x2195('0x135')]>=0x5?_0x15e14f[0x2]:null,'id':_0x15e14f[_0x2195('0x135')]<0x5?_0x15e14f[0x2]:_0x15e14f[0x3],'authorId':_0x15e14f['length']<0x5?_0x15e14f[0x3]:_0x15e14f[0x4],'markerCount':0x6==_0x15e14f[_0x2195('0x135')]?_0x15e14f[0x5]:null};}[_0x2195('0xe6')](_0x94672,_0x241cdf,_0x1adaa2){const _0x5879b7=_0x94672[_0x2195('0xc6')](),_0x1be9ce=_0x5879b7[_0x2195('0x90')],_0x4a8a22=_0x5879b7[_0x2195('0x7')];this['_setSuggestionRange'](_0x94672,this[_0x2195('0x126')]['createRange'](_0x1be9ce,_0x241cdf));const _0x41f698=_0x3dda14(),_0x47d9cf=_0x94672[_0x2195('0xa9')]['id'],_0x836d26=_0x94672['type']+(_0x94672['subType']?':'+_0x94672[_0x2195('0x103')]:'');this[_0x2195('0xdf')]({'id':_0x41f698,'type':_0x836d26,'createdAt':new Date(),'authorId':_0x47d9cf,'originalSuggestionId':_0x94672['id'],'attributes':_0x94672[_0x2195('0x30')],'data':_0x94672[_0x2195('0xc0')]}),'formatBlock'==_0x94672[_0x2195('0x33')]&&(_0x1adaa2=this[_0x2195('0x126')][_0x2195('0xcb')](_0x1adaa2[_0x2195('0xb4')])),this[_0x2195('0xb1')](_0x836d26,_0x41f698,_0x47d9cf,this['_model'][_0x2195('0x6c')](_0x1adaa2,_0x4a8a22));}['_findSuggestions'](_0x1d0e3e,_0x27fd28=null){const _0x4411c=[],_0xb6e655=this[_0x2195('0x126')][_0x2195('0x37')],_0x2e0ecb=this[_0x2195('0x12a')]['plugins'][_0x2195('0xe8')](_0x2195('0x2'))['me'];for(const _0x2dd578 of this[_0x2195('0x27')]())if(_0x2dd578[_0x2195('0x139')]&&(!_0x27fd28||_0x2dd578[_0x2195('0x33')]==_0x27fd28))for(const _0x36d546 of _0x2dd578['getRanges']()){const _0x212d71=_0x1d0e3e[_0x2195('0x90')][_0x2195('0x6b')](_0x36d546[_0x2195('0x7')])||_0x1d0e3e['end'][_0x2195('0x6b')](_0x36d546['start']);if(_0x212d71||_0x1d0e3e[_0x2195('0x106')](_0x36d546)){const _0x1765db=_0x1d0e3e['containsRange'](_0x36d546)&&Bt(_0xb6e655,_0x36d546[_0x2195('0x90')],_0x1d0e3e),_0x16fad0=_0x36d546['containsRange'](_0x1d0e3e)&&Bt(_0xb6e655,_0x1d0e3e[_0x2195('0x90')],_0x36d546);_0x4411c['push']({'suggestion':_0x2dd578,'meta':{'isOwn':_0x2e0ecb==_0x2dd578[_0x2195('0xef')],'isNextTo':_0x212d71,'isInsideObject':_0x1765db,'containsRangeInObject':_0x16fad0}});break;}}return _0x4411c;}['_addSuggestionMarker'](_0x5d501e,_0x2a03fd,_0x5cf814,_0x3eb090,_0x4cadd3){this[_0x2195('0x126')][_0x2195('0xf4')](_0x319835=>{let _0x3ac2fe=_0x2195('0x29')+_0x5d501e+':'+_0x2a03fd+':'+_0x5cf814;_0x4cadd3&&(_0x3ac2fe=_0x3ac2fe+':'+_0x4cadd3),_0x319835[_0x2195('0xd6')](_0x3ac2fe,{'range':_0x3eb090,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2195('0xb7')](_0x2625a9){const _0x5cb981=_0x2625a9[_0x2195('0x89')],_0x1d3afc=_0x2625a9[_0x2195('0xaa')];_0x2625a9[_0x2195('0x89')]=null,null!=_0x5cb981&&(_0x5cb981[_0x2195('0xaa')]=null),_0x2625a9['next']=null,null!=_0x1d3afc&&(_0x1d3afc[_0x2195('0x89')]=null),_0x2195('0x42')==this[_0x2195('0x129')]['get'](_0x2625a9)&&(this[_0x2195('0x129')][_0x2195('0x8d')](_0x2625a9,_0x2195('0x95')),this[_0x2195('0xf0')](_0x2195('0x6'),_0x2625a9,_0x5cb981,_0x1d3afc));}['_setSuggestionData'](_0x220981){const _0x3dd0ba=_0x220981['id'],_0x46a270=this[_0x2195('0xfc')](_0x220981);if(this[_0x2195('0x92')]&&this[_0x2195('0x92')][_0x2195('0x11a')]){const _0x567d55=this[_0x2195('0x12a')][_0x2195('0x3c')][_0x2195('0xe8')](_0x2195('0x12e')),_0x123a4d=_0x46a270[_0x2195('0x36')],_0x1ca0cd=_0x46a270[_0x2195('0x103')]?_0x46a270['type']+':'+_0x46a270['subType']:_0x46a270[_0x2195('0x33')],_0x1dee66=this[_0x2195('0x12a')][_0x2195('0x9b')],_0x46d64a=_0x567d55['add'](_0x4d24ca(_0x1dee66,'PENDING_ACTION_SUGGESTION')),_0x5734a8={'id':_0x3dd0ba,'type':_0x1ca0cd,'hasComments':_0x123a4d,'data':_0x220981[_0x2195('0xc0')]||null,'originalSuggestionId':_0x220981[_0x2195('0x53')]||null,'attributes':_0x46a270[_0x2195('0x30')]};this[_0x2195('0x92')][_0x2195('0x11a')](_0x5734a8)['then'](_0x56718a=>{_0x46a270[_0x2195('0x40')]=!0x0,_0x567d55[_0x2195('0xb6')](_0x46d64a),_0x56718a&&_0x56718a[_0x2195('0x12c')]&&(this[_0x2195('0x10')][_0x2195('0xe8')](_0x3dd0ba)['createdAt']=_0x56718a['createdAt']);})[_0x2195('0x45')](_0x42ba7c=>{throw _0x109f16(_0x2195('0xd3')),this['editor']['model'][_0x2195('0x112')]({'isUndoable':!0x1},()=>{_0x46a270[_0x2195('0x81')]();}),_0x46a270[_0x2195('0x14')](),this[_0x2195('0x10')][_0x2195('0x11e')](_0x46a270['id']),this['_suggestionState'][_0x2195('0x11e')](_0x46a270),_0x42ba7c;});}return _0x46a270;}[_0x2195('0x118')](_0x35950b,_0x113fec){const _0x536c20=this[_0x2195('0x12a')]['plugins'][_0x2195('0xe8')](_0x2195('0x12e')),_0x2f316c=this[_0x2195('0xb8')](_0x35950b);if(this['_adapter']&&this['_adapter'][_0x2195('0x39')]){if(_0x2f316c[_0x2195('0x40')]){const _0x267010=_0x536c20['add'](_0x4d24ca(this[_0x2195('0x12a')]['locale'],_0x2195('0xec')));this[_0x2195('0x92')][_0x2195('0x39')](_0x35950b,_0x113fec)[_0x2195('0xbd')](()=>{_0x536c20['remove'](_0x267010);});}else _0x2f316c['on'](_0x2195('0x9e'),()=>{this['_updateSuggestionData'](_0x35950b,_0x113fec);});}}[_0x2195('0x8a')](_0x38c325){if(!this[_0x2195('0x92')]||!this['_adapter'][_0x2195('0xb8')])throw new _0x143303(_0x2195('0x12'),this);return this['_adapter'][_0x2195('0xb8')](_0x38c325);}[_0x2195('0xc9')](_0x2b3aa2){const {id:_0x1c3d33,type:_0x3e4001,subType:_0xce88b4,authorId:_0x5837a7}=this[_0x2195('0xb9')](_0x2b3aa2),_0x5c0485=this[_0x2195('0x10')][_0x2195('0xe8')](_0x1c3d33)||this[_0x2195('0xd0')](_0x3e4001,_0xce88b4,_0x1c3d33,_0x5837a7,{});switch(this[_0x2195('0xc8')](_0x5c0485,_0x3e4001,_0xce88b4,_0x5837a7),this[_0x2195('0x129')][_0x2195('0xe8')](_0x5c0485)){case'notReady':this[_0x2195('0x8a')](_0x1c3d33)['then'](_0x28532e=>{let _0x2476fc=Promise['resolve']();_0x28532e['hasComments']&&(_0x2476fc=this[_0x2195('0x91')][_0x2195('0x58')]({'channelId':this[_0x2195('0x12a')][_0x2195('0x72')][_0x2195('0xe8')](_0x2195('0x9c')),'threadId':_0x1c3d33})),_0x2476fc['then'](()=>{this['addSuggestionData'](_0x28532e)[_0x2195('0x40')]=!0x0;});}),this[_0x2195('0x129')][_0x2195('0x8d')](_0x5c0485,'markerReady');break;case'removed':this[_0x2195('0x118')](_0x1c3d33,{'state':_0x2195('0x9a')});case _0x2195('0x68'):this[_0x2195('0x129')][_0x2195('0x8d')](_0x5c0485,_0x2195('0x42')),this['fire'](_0x2195('0x8'),_0x5c0485);break;case _0x2195('0x42'):this['fire']('suggestionChanged',_0x5c0485);}return _0x5c0485[_0x2195('0x54')](_0x2b3aa2),_0x5c0485;}[_0x2195('0x59')](_0x2bc978){const _0x234b88=Array[_0x2195('0xc')](_0x2bc978)[_0x2195('0xfd')](_0x5b1e47=>!_0x5b1e47[_0x2195('0x3f')]),_0xf9118e=this[_0x2195('0x27')]({'skipNotAttached':!0x0})[_0x2195('0xfd')](_0x5e7d6e=>!_0x5e7d6e[_0x2195('0x3f')]),_0x100013=_0xf9118e[_0x2195('0xfd')](_0x41f9ed=>!_0x2bc978[_0x2195('0x22')](_0x41f9ed)),_0x2c7017=new Map(_0xf9118e['map'](_0x176fec=>[_0x176fec,this[_0x2195('0x6e')][_0x2195('0xf')](_0x176fec['type'],_0x176fec[_0x2195('0x103')],_0x2195('0x5d'))])),_0x38b131=new Map(_0xf9118e['map'](_0x353f5e=>[_0x353f5e,_0x353f5e[_0x2195('0xc6')]()])),_0x53698e=new Set(),_0x5a9022=new Set();for(let _0x1721fe=0x0;_0x1721fe<_0x234b88[_0x2195('0x135')];_0x1721fe++)_0x319fb5(_0x234b88[_0x1721fe],_0x234b88,_0x1721fe+0x1);for(let _0xc83a46=0x0;_0xc83a46<_0x234b88[_0x2195('0x135')];_0xc83a46++)_0x319fb5(_0x234b88[_0xc83a46],_0x100013,0x0);for(let _0x5b9082=0x0;_0x5b9082<_0x234b88[_0x2195('0x135')];_0x5b9082++){const _0x160886=_0x234b88[_0x5b9082];!_0x5a9022[_0x2195('0x22')](_0x160886)&&_0x160886['previous']&&(_0x160886[_0x2195('0x89')][_0x2195('0xaa')]===_0x160886&&(_0x160886[_0x2195('0x89')][_0x2195('0xaa')]=null),_0x160886[_0x2195('0x89')]=null),!_0x53698e['has'](_0x160886)&&_0x160886['next']&&(_0x160886[_0x2195('0xaa')]['previous']===_0x160886&&(_0x160886[_0x2195('0xaa')][_0x2195('0x89')]=null),_0x160886[_0x2195('0xaa')]=null);}function _0x319fb5(_0x45df60,_0x2e913b,_0x4ab94c){for(let _0x31998a=_0x4ab94c;_0x31998a<_0x2e913b['length'];_0x31998a++){const _0x5b68da=_0x34f572(_0x45df60,_0x2e913b[_0x31998a]);_0x5b68da&&(_0x5b68da[0x0][_0x2195('0xaa')]=_0x5b68da[0x1],_0x5b68da[0x1][_0x2195('0x89')]=_0x5b68da[0x0],_0x53698e[_0x2195('0x34')](_0x5b68da[0x0]),_0x5a9022[_0x2195('0x34')](_0x5b68da[0x1]));}}function _0x34f572(_0x32c11c,_0x5b8449){if(_0x32c11c[_0x2195('0xef')]['id']!==_0x5b8449[_0x2195('0xef')]['id'])return null;const _0x19bfc8=_0x2c7017['get'](_0x32c11c)(_0x32c11c,_0x5b8449,_0x38b131[_0x2195('0xe8')](_0x32c11c),_0x38b131[_0x2195('0xe8')](_0x5b8449));if(!_0x19bfc8)return null;return _0x2c7017[_0x2195('0xe8')](_0x5b8449)(_0x32c11c,_0x5b8449,_0x38b131[_0x2195('0xe8')](_0x32c11c),_0x38b131['get'](_0x5b8449))?_0x19bfc8[0x1][_0x2195('0x48')]&&_0x19bfc8[0x1][_0x2195('0x48')][_0x2195('0x135')]?null:_0x19bfc8:null;}}['_joinWithAdjacentSuggestions'](_0x5a3d96){const _0x529df6=Array[_0x2195('0xc')](_0x5a3d96),_0x22608e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4d06a8=_0x22608e[_0x2195('0xfd')](_0x3fe3dc=>!_0x5a3d96[_0x2195('0x22')](_0x3fe3dc)),_0x15be1d=new Map(_0x529df6[_0x2195('0xd5')](_0x26fa44=>[_0x26fa44,this['_suggestionFactory'][_0x2195('0xf')](_0x26fa44[_0x2195('0x33')],_0x26fa44[_0x2195('0x103')],_0x2195('0x3d'))])),_0x2f87ce=new Map(_0x22608e[_0x2195('0xd5')](_0x50b651=>[_0x50b651,_0x50b651['getRanges']()]));for(let _0x1107c3=0x0;_0x1107c3<_0x529df6[_0x2195('0x135')];_0x1107c3++){if(_0x28e002(this,_0x529df6[_0x1107c3],_0x529df6,_0x1107c3+0x1))return!0x0;}for(let _0x53b3ad=0x0;_0x53b3ad<_0x529df6[_0x2195('0x135')];_0x53b3ad++){if(_0x28e002(this,_0x529df6[_0x53b3ad],_0x4d06a8,0x0))return!0x0;}return!0x1;function _0x28e002(_0xe692fc,_0x33e858,_0x558975,_0x57455b){for(let _0x1d5295=_0x57455b;_0x1d5295<_0x558975['length'];_0x1d5295++){const _0x1c735c=_0x558975[_0x1d5295];if(_0x1c735c[_0x2195('0x33')]!==_0x33e858[_0x2195('0x33')]||_0x1c735c[_0x2195('0xef')]['id']!==_0x33e858[_0x2195('0xef')]['id']||_0x1c735c[_0x2195('0x103')]!==_0x33e858['subType'])continue;const _0x148bee=_0x15be1d[_0x2195('0xe8')](_0x33e858),_0x4bfb61=_0x2f87ce['get'](_0x33e858),_0x20cef3=_0x2f87ce[_0x2195('0xe8')](_0x1c735c),_0x2ceb00=_0x33e858[_0x2195('0x48')]&&_0x33e858['commentThread'][_0x2195('0x135')],_0x3da244=_0x1c735c['commentThread']&&_0x1c735c['commentThread'][_0x2195('0x135')];if(!_0x2ceb00&&_0x148bee(_0x20cef3,_0x4bfb61))return _0xe692fc[_0x2195('0x73')](_0x1c735c,_0x33e858),_0x2f87ce[_0x2195('0x11e')](_0x33e858),!0x0;if(!_0x3da244&&_0x148bee(_0x4bfb61,_0x20cef3))return _0xe692fc['_joinSuggestions'](_0x33e858,_0x1c735c),_0x2f87ce[_0x2195('0x11e')](_0x1c735c),!0x0;}return!0x1;}}[_0x2195('0x73')](_0x579939,_0x2f2fc5){if(_0x579939[_0x2195('0x3f')])for(const _0x3c36eb of _0x2f2fc5[_0x2195('0x2f')]())_0x579939[_0x2195('0xeb')](_0x3c36eb);else{const _0x141bd1=_0x2f2fc5[_0x2195('0xc6')]()[_0x2195('0x7')];this[_0x2195('0xc7')](_0x579939,this[_0x2195('0x126')][_0x2195('0x6c')](_0x579939[_0x2195('0xc6')]()[_0x2195('0x90')],_0x141bd1));}_0x2f2fc5['removeMarkers']();}}class Dt{constructor(_0xe4a1db){this[_0x2195('0xe0')]=_0xe4a1db,this[_0x2195('0x126')]=_0xe4a1db[_0x2195('0x4')],this[_0x2195('0xda')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x2195('0x93')]();}['buildSuggestion'](_0x3668ab,_0x5753aa,_0x2adaa7,_0x1756bb,_0x24ae13,_0x3f1a36){return new _0x1ee015(this['_model'],{'type':_0x3668ab,'subType':_0x5753aa,'id':_0x2adaa7,'author':_0x1756bb,'creator':_0x1756bb,'attributes':_0x24ae13,'onAttributesChange':_0x3f1a36,'onAccept':(..._0x4e2830)=>this[_0x2195('0xf')](_0x3668ab,_0x5753aa,_0x2195('0x5e'))(..._0x4e2830),'onDiscard':(..._0x53a1f0)=>this[_0x2195('0xf')](_0x3668ab,_0x5753aa,'discard')(..._0x53a1f0)});}[_0x2195('0xf5')](_0xbdd343,_0x5dd2e5,_0x41db22,_0x5a37cf){const _0xab4573=_0xbdd343+':'+_0x5dd2e5+':'+_0x41db22;this[_0x2195('0xda')][_0x2195('0x8d')](_0xab4573,_0x5a37cf);}[_0x2195('0xf')](_0x46f31c,_0x470de9,_0x2a2559){const _0x4cfa71=_0x46f31c+':'+_0x470de9+':'+_0x2a2559;return this[_0x2195('0xda')][_0x2195('0xe8')](_0x4cfa71)||this[_0x2195('0x32')][_0x2195('0xe8')](_0x46f31c+':'+_0x2a2559);}['_registerDefaultCallbacks'](){const _0x22c9d5=()=>{},_0x488804=_0x445e92=>{_0x445e92[_0x2195('0x5c')]((_0x244633,_0x13ee7a)=>_0x244633[_0x2195('0x90')]['isBefore'](_0x13ee7a[_0x2195('0x90')])?0x1:-0x1),this['_model'][_0x2195('0xf4')](_0x33ed0a=>{for(const _0x24e693 of _0x445e92){let _0x584517;_0x584517=_0x24e693[_0x2195('0x7')][_0x2195('0xed')]&&_0x24e693[_0x2195('0x7')][_0x2195('0xb4')]==_0x24e693[_0x2195('0x90')][_0x2195('0xb3')]?_0x33ed0a[_0x2195('0x109')](_0x24e693['start'][_0x2195('0xb3')],'on'):_0x33ed0a['createSelection'](_0x24e693),this[_0x2195('0x126')][_0x2195('0xcf')](_0x584517,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xe9a8d9=(_0x329619,_0x2d372f)=>{this[_0x2195('0x126')][_0x2195('0xf4')](_0x565f89=>{const {commandName:_0x4feae1,commandParams:_0x4ba3f4=[]}=_0x2d372f,_0x20398a=_0x329619[_0x2195('0xd5')](_0x10d21f=>(_t(_0x10d21f)&&(_0x10d21f=this[_0x2195('0x126')][_0x2195('0x6c')](_0x10d21f[_0x2195('0x7')])),_0x10d21f))[_0x2195('0xfd')](_0x126fbe=>'$graveyard'!==_0x126fbe['root']['rootName']);if(_0x20398a[_0x2195('0x135')]<0x1)return;const _0x3e9cfa=Array[_0x2195('0xc')](this[_0x2195('0x126')][_0x2195('0x123')]['selection'][_0x2195('0x2f')]())[_0x2195('0xd5')](_0x23366c=>_0x30ce05['fromRange'](_0x23366c));_0x565f89[_0x2195('0xb0')](_0x20398a);for(const _0x3edafc of this[_0x2195('0xe0')]['commands'][_0x2195('0x75')]())_0x3edafc[_0x2195('0xe9')]();_0x4ba3f4[_0x2195('0x10f')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x2195('0xac')](_0x4feae1,..._0x4ba3f4);const _0x52d1a3=_0x3e9cfa[_0x2195('0xfd')](_0x4887af=>_0x2195('0x10a')!=_0x4887af['root'][_0x2195('0x65')]);_0x52d1a3[_0x2195('0x135')]>0x0&&_0x565f89['setSelection'](_0x52d1a3);for(const _0x2e8231 of _0x3e9cfa)_0x2e8231[_0x2195('0x46')]();});},_0x2a81f6=(_0xcfa36,_0x5ebb83)=>0x1==_0xcfa36[_0x2195('0x135')]&&0x1==_0x5ebb83[_0x2195('0x135')]&&_0xcfa36[0x0][_0x2195('0x7')][_0x2195('0x6b')](_0x5ebb83[0x0]['start']),_0x10327e=(_0x44103e,_0x15cd65,_0xb53e3,_0x525d52)=>xt(_0x44103e,_0x15cd65,_0xb53e3,_0x525d52,this['_model'])?[_0x44103e,_0x15cd65]:xt(_0x15cd65,_0x44103e,_0x525d52,_0xb53e3,this[_0x2195('0x126')])?[_0x15cd65,_0x44103e]:null;this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x134'),_0x22c9d5),this[_0x2195('0x32')]['set'](_0x2195('0xb5'),_0x488804),this[_0x2195('0x32')][_0x2195('0x8d')]('insertion:join',_0x2a81f6),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x132'),_0x10327e),this[_0x2195('0x32')]['set']('deletion:accept',_0x488804),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x7f'),_0x22c9d5),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x7d'),_0x2a81f6),this[_0x2195('0x32')][_0x2195('0x8d')]('deletion:chain',_0x10327e),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x8b'),_0xe9a8d9),this[_0x2195('0x32')]['set'](_0x2195('0x10c'),_0x22c9d5),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0xbc'),_0x2a81f6),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x8e'),_0x22c9d5),this['_defaultCallbacks'][_0x2195('0x8d')]('formatBlock:accept',_0xe9a8d9),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x3b'),_0x22c9d5),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x127'),_0x2a81f6),this[_0x2195('0x32')][_0x2195('0x8d')](_0x2195('0x13c'),_0x22c9d5);}}function Bt(_0x4d5ccb,_0x265f74,_0x564610){for(const _0x523d1d of _0x265f74[_0x2195('0xb4')][_0x2195('0x96')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x523d1d[_0x2195('0x3')]==_0x523d1d)return!0x1;if(!_0x564610[_0x2195('0xbf')](_0x523d1d))return!0x1;if(_0x4d5ccb[_0x2195('0x105')](_0x523d1d)||_0x4d5ccb[_0x2195('0xd4')](_0x523d1d))return!0x0;}return!0x1;}function _t(_0x12b454){return _0x12b454[_0x2195('0x7')][_0x2195('0xb4')]==_0x12b454[_0x2195('0x90')][_0x2195('0xb3')]&&_0x12b454['end'][_0x2195('0x62')];}function Mt(_0x1799f5,_0x45a450,_0x158b0d,_0x164359){const _0x3e1947=_0x6abe34=>!_0x6abe34[_0x2195('0x1b')]['is'](_0x2195('0x2e'))&&!_0x164359['isObject'](_0x6abe34[_0x2195('0x1b')]),_0x4a2ab5=_0x1799f5['start'][_0x2195('0x79')](_0x3e1947),_0x3eb48a=_0x1799f5[_0x2195('0x7')]['getLastMatchingPosition'](_0x3e1947,{'direction':_0x2195('0xfb')});return(!_0x1799f5[_0x2195('0x90')][_0x2195('0x6b')](_0x4a2ab5)||!_0x1799f5[_0x2195('0x7')][_0x2195('0x6b')](_0x3eb48a))&&(_0x4a2ab5[_0x2195('0xd')](_0x3eb48a)?_0x158b0d[_0x2195('0x121')](_0x45a450,{'range':_0x158b0d[_0x2195('0x6c')](_0x4a2ab5,_0x3eb48a)}):_0x158b0d[_0x2195('0x69')](_0x45a450),!0x0);}function $t(_0x347ba6){return _0x506120(_0x347ba6);}function Nt(_0x4bed45){const _0x1c53cc=_0x4bed45[_0x2195('0x90')][_0x2195('0xb3')];return _0x1c53cc&&_0x1c53cc['is'](_0x2195('0xfa'));}function Rt(_0x3eb240,_0x336223){const _0x1c4776=_0x336223[_0x2195('0x37')][_0x2195('0x105')](_0x3eb240)||_0x336223[_0x2195('0x37')][_0x2195('0x5a')](_0x3eb240);return _0x336223['createRange'](_0x336223[_0x2195('0xde')](_0x3eb240,_0x2195('0x4f')),_0x1c4776?_0x336223[_0x2195('0x71')](_0x3eb240):_0x336223['createPositionAt'](_0x3eb240,_0x2195('0x7')));}function xt(_0x3d0fa4,_0x3739d0,_0xe1ab4,_0x34cee8,_0x479e22){if(_0xe1ab4['end'][_0x2195('0x6b')](_0x34cee8[_0x2195('0x90')]))return!0x0;if(_0x3d0fa4[_0x2195('0x33')]!=_0x3739d0['type'])return!0x1;if(!_0xe1ab4[_0x2195('0x7')][_0x2195('0x8f')](_0x34cee8[_0x2195('0x90')]))return!0x1;const _0x12e6b7=_0x479e22[_0x2195('0x6c')](_0xe1ab4[_0x2195('0x7')],_0x34cee8['start'])[_0x2195('0xad')]();for(const _0x42730a of _0x12e6b7)if(['elementStart','elementEnd'][_0x2195('0xa3')](_0x42730a[_0x2195('0x33')])&&_0x479e22[_0x2195('0x37')][_0x2195('0xd4')](_0x42730a[_0x2195('0x1b')]))return!0x1;return!0x0;}
|