@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230731.0 → 0.0.0-nightly-20230802.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-20230802.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-20230802.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230802.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 _0x6b4f=['conversion','isLimit','always','markInlineFormat','toJSON','howMany','$graveyard','_saved','creator','chain','every','dataDowncast','batch','markMultiRangeInsertion','removed','enableCommand','isNextTo','getSuggestions','collaboration.channelId','track-changes-suggestion-data-mismatch','adapter','track-changes-user-not-found','getAllAdjacentSuggestions','locale','next','selection','group','data','insertion:','formatInline:','acceptSelectedSuggestions','size','elementEnd','sort','removeClass','rethrowUnexpectedError','_registerDefaultCallbacks','writer','_addThreadToSuggestion','CommentsRepository','markerName','setAttribute','multi','addMarker:suggestion:formatBlock','plugins','get','for','authoredAt','getWalker','getChangedMarkers','model','high','accept','_setSuggestionRange','forceDefaultExecution','isInContent','value','getIntersection','_breakSuggestionMarker','removeMarkers','nodeBefore','markMultiRangeBlockFormat','position','removeMarker:suggestion:formatBlock','getCommentThread','fire','length','forward','markInsertion','multipleBlocks','Users','fromCharCode','update:suggestion','_descriptionFactory','createPositionAfter','formatInline:join','_commentsRepository','insertion:accept','isOwn','getFirstRange','differ','documentSelection','addComment','change:_saved','schema','init','markBlockFormat','hasCommentThread','getLastMatchingPosition','formatBlock:discard','backward','from','unbindElementFromMarkerName','formatBlock','deletion:','_enabledCommands','skipNestingCheck','isCollapsed','_suggestionFactory','has','deletion:chain','hasComments','map','containsRange','trackChangesCommand','markMultiRangeDeletion','mapper','TrackChangesEditing','activeMarkers','formatInline:accept','split','filter','_editor','_trackFormatChanges','range','commandName','return','isAtEnd','suggestionLoaded','remove','_mergeNestedSuggestions','catch','normal','config','_rangeIsInLocalUserInsertion','ck-suggestion-marker--active','suggestion-type','deletion','_refreshSuggestionsChain','change','options','execute','commentThread','external:','setSelection','splice','_createSuggestion','ck-suggestion-marker-','commands','removeMarker','enqueueChange','after','isBefore','containsItem','set','enableReadOnlyMode','isObject','markerToHighlight','splitPosition','isDocumentOperation','suggestion','isEqual','markerToData','type','rootName','addMarker:suggestion','head','_updateSuggestionData','@external','_getAuthorFromId','createPositionBefore','_isForcedDefaultExecutionBlock','getSuggestionCallback','getAncestors','buildSuggestion','elementToElement','default','isMultiRange','attributes','notReady','_setSuggestionData','pluginName','authorName','join','isAfter','getAttribute','getFirstMarker','nodeAfter','low','discard','addCommentThread','newRange','containerElement','highest','document','listenTo','formatInline:discard','PendingActions','createSelection','name','parent','_checkSuggestionCorrectness','isInsideObject','getMultiRangeId','insertion:discard','getDifference','trackChanges','_addSuggestionMarker','_adapter','_suggestions','track-changes-command-not-found','isBlock','containsRangeInObject','markDeletion','_removeSuggestion','addMarkerName','detach','never','_splitMarkerName','then','refresh','markerReady','end','acceptSuggestion','data-suggestion','formatGroupId','getChanges','getUser','$marker','discardSelectedSuggestions','_suggestionState','isUndo','subType','element','track-changes-adapter-already-set','ck-suggestion-marker-formatBlock','suggestion:','containsPosition','_defaultCallbacks','isRemovable','delete','start','change:data','insertion:chain','root','getCustomProperty','insert','getNearestSelectionRange','getRanges','change:activeMarkers','author','PENDING_ACTION_SUGGESTION','addRange','values','removeComment','isExternal','updateSuggestion','some','toViewElement','originalSuggestionId','insertion','ck-suggestion-marker','_model','trackChanges.trackFormatChanges','previous','_getExternalAuthor','_customCallbacks','editingDowncast','oldRange','insertContent','move','define','consumable','clone','suggestionUnloaded','_findSuggestions','insertion:join','editor','showSuggestionHighlights','targetPosition','acceptAllSuggestions','_onDiscard','suggestionChanged','upcast','setTo','addSuggestionData','formatBlock:','addMarker','trackChanges.mergeNestedSuggestions','registerPostFixer','createPositionAt','getSuggestion','discardAllSuggestions','createRange','_joinSuggestions','item','stop','markers','_cutOutSuggestionMarker','getShiftedBy','addClass','updateMarker','add','_getSuggestionData','createdAt','formatInline','formatBlock:accept','addUser','deleteContent','includes','discardSuggestion','addSuggestion','deletion:discard','lowest','track-changes-adapter-missing-getsuggestion','isIntersectingWithRange','consume','hasSuggestion','push','ready'];(function(_0x47e581,_0x6b4fa7){const _0x6dbdbb=function(_0xafca27){while(--_0xafca27){_0x47e581['push'](_0x47e581['shift']());}};_0x6dbdbb(++_0x6b4fa7);}(_0x6b4f,0x192));const _0x6dbd=function(_0x47e581,_0x6b4fa7){_0x47e581=_0x47e581-0x0;let _0x6dbdbb=_0x6b4f[_0x47e581];return _0x6dbdbb;};import{Plugin as _0x53d410,PendingActions as _0x217eee}from'ckeditor5/src/core';import{LiveRange as _0x3adeaa}from'ckeditor5/src/engine';import{CKEditorError as _0xac50b6,uid as _0x74c359,priorities as _0x1ee2c4,logWarning as _0xb35b95}from'ckeditor5/src/utils';import{toWidget as _0xf924b5}from'ckeditor5/src/widget';import{Users as _0x2ac3d6,hashObject as _0x237ae9}from'ckeditor5-collaboration/src/collaboration-core';import _0x4d1ccc from'./commands/trackchangescommand';import _0x39e440 from'./commands/acceptsuggestioncommand';import _0x4da722 from'./commands/discardsuggestioncommand';import _0x47ad61 from'./commands/executeonallsuggestionscommand';import _0x2cee14 from'./commands/executeonselectedsuggestionscommand';import _0x485403 from'./suggestion';import _0x2dae01 from'./suggestiondescriptionfactory';import _0x3919c9 from'./integrations/alignment';import _0x2ec07f from'./integrations/basicstyles';import _0x4c4571 from'./integrations/blockquote';import _0x36c409 from'./integrations/ckbox';import _0x4101cd from'./integrations/codeblock';import _0x317399 from'./integrations/comments';import _0x50415b from'./integrations/deletecommand';import _0x3ae0c8 from'./integrations/documentlist';import _0x352c32 from'./integrations/entercommand';import _0xad7f44 from'./integrations/findandreplace';import _0x5bb9c3 from'./integrations/font';import _0xc3f68b from'./integrations/formatpainter';import _0x292788 from'./integrations/heading';import _0x2a5297 from'./integrations/highlight';import _0xff78d1 from'./integrations/horizontalline';import _0x4116d2 from'./integrations/htmlembed';import _0x3fd345 from'./integrations/image';import _0x3e1c09 from'./integrations/imagereplace';import _0x2b46c0 from'./integrations/importword';import _0x1d6ed9 from'./integrations/indent';import _0x20c32a from'./integrations/inputcommand';import _0x119e06 from'./integrations/link';import _0x8aee27 from'./integrations/list';import _0x16526f from'./integrations/listproperties';import _0x4748cc from'./integrations/mediaembed';import _0x11aae8 from'./integrations/mention';import _0x49be9d from'./integrations/pagebreak';import _0x5779ab from'./integrations/paragraph';import _0xc07a62 from'./integrations/removeformat';import _0x56b035 from'./integrations/restrictededitingmode';import _0xf4cc13 from'./integrations/shiftentercommand';import _0x351d0b from'./integrations/standardeditingmode';import _0x428bed from'./integrations/style';import _0x4f50cb from'./integrations/table';import _0x1978e4 from'./integrations/tablemergesplit';import _0x13b053 from'./integrations/tableheadings';import _0x51ac67 from'./integrations/tableclipboard';import _0x2b87ca from'./integrations/tablecolumnresize';import _0x447d6e from'./integrations/template';import _0x27e39a from'./integrations/tableofcontents';import _0x128cb2 from'./integrations/title';import _0x5a78e4 from'./integrations/undo';import{getTranslation as _0x257440}from'./utils/common-translations';import _0x2fbc78 from'./integrations/tablecaption';import _0x3b409c from'./integrations/documentlistproperties';import _0x5c1b5b from'./integrations/tableproperties';export default class p extends _0x53d410{static get['requires'](){return[_0x6dbd('0x101'),_0x2ac3d6,_0x217eee,_0x3919c9,_0x2ec07f,_0x4c4571,_0x36c409,_0x4101cd,_0x317399,_0x50415b,_0x3ae0c8,_0x3b409c,_0x352c32,_0xad7f44,_0x5bb9c3,_0xc3f68b,_0x292788,_0x2a5297,_0xff78d1,_0x4116d2,_0x3fd345,_0x3e1c09,_0x2b46c0,_0x1d6ed9,_0x20c32a,_0x119e06,_0x8aee27,_0x16526f,_0x4748cc,_0x11aae8,_0x49be9d,_0x5779ab,_0xc07a62,_0x56b035,_0xf4cc13,_0x351d0b,_0x428bed,_0x4f50cb,_0x1978e4,_0x13b053,_0x2fbc78,_0x51ac67,_0x2b87ca,_0x27e39a,_0x5c1b5b,_0x447d6e,_0x128cb2,_0x5a78e4];}static get[_0x6dbd('0x4f')](){return _0x6dbd('0xf');}constructor(_0x1477e3){function _0x5dda11(_0x40fdfc){return _0x40fdfc[_0x6dbd('0xa')](_0x5b2f75=>String[_0x6dbd('0x121')](_0x5b2f75))[_0x6dbd('0x51')]('');}super(_0x1477e3),this['set'](_0x6dbd('0x10'),[]),this['on'](_0x6dbd('0x93'),(_0x5b8775,_0x580992,_0x5e289e,_0x658ec8)=>{this[_0x6dbd('0xa0')][_0x6dbd('0x25')](()=>{for(const _0x186cac of[..._0x658ec8,..._0x5e289e])this[_0x6dbd('0xa0')][_0x6dbd('0xc3')][_0x6dbd('0x7')](_0x186cac)&&_0x1477e3['editing']['reconvertMarker'](_0x186cac);});}),this[_0x6dbd('0x123')]=new _0x2dae01(this[_0x6dbd('0xaf')]['model'][_0x6dbd('0x12e')],this['editor'][_0x6dbd('0xf1')]),this[_0x6dbd('0x6a')]=null,this[_0x6dbd('0x6')]=new Dt(this['editor']),this[_0x6dbd('0x6b')]=new Map(),this['_commentsRepository']=_0x1477e3[_0x6dbd('0x106')][_0x6dbd('0x107')](_0x6dbd('0x101')),this[_0x6dbd('0x3')]=new Set(),this[_0x6dbd('0xa0')]=this[_0x6dbd('0xaf')]['model'],this[_0x6dbd('0x80')]=new WeakMap(),this[_0x6dbd('0x45')]=!0x1,_0x1477e3[_0x6dbd('0x1f')][_0x6dbd('0xa9')](_0x6dbd('0xa1'),_0x6dbd('0x4a')),this[_0x6dbd('0x15')]=_0x1477e3['config'][_0x6dbd('0x107')](_0x6dbd('0xa1')),_0x1477e3['config'][_0x6dbd('0xa9')](_0x6dbd('0xba'),!0x0),this[_0x6dbd('0x1c')]=_0x1477e3[_0x6dbd('0x1f')][_0x6dbd('0x107')]('trackChanges.mergeNestedSuggestions'),this[_0x6dbd('0xc')]=new _0x4d1ccc(_0x1477e3,this[_0x6dbd('0x3')]),this[_0x5dda11([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5dda11([0x34,0x30,0x34,0x36,0x31,0x34,0x36,0x32]);}[_0x6dbd('0x12f')](){const _0x56b3c0=this['editor'];_0x56b3c0[_0x6dbd('0xda')][_0x6dbd('0x108')](_0x6dbd('0xa5'))[_0x6dbd('0x37')]({'model':'suggestion','view':_0x582770=>{const {id:_0x4f74bc,type:_0x25d078}=this[_0x6dbd('0x74')](_0x582770[_0x6dbd('0x102')]),_0x413003=['ck-suggestion-marker',_0x6dbd('0x2d')+_0x25d078];let _0x1942da=0xbb8;return this[_0x6dbd('0x10')][_0x6dbd('0xcf')](_0x582770[_0x6dbd('0x102')])&&(_0x413003[_0x6dbd('0xd8')](_0x6dbd('0x21')),_0x1942da=0xbc2),_0x6dbd('0x23')==_0x25d078&&(_0x1942da+=0x5),{'classes':_0x413003,'attributes':{'data-suggestion':_0x4f74bc},'priority':_0x1942da};}}),_0x56b3c0['conversion'][_0x6dbd('0x108')](_0x6dbd('0xe5'))['add'](_0x2690dd=>{_0x2690dd['on'](_0x6dbd('0x3f'),(_0x1b3628,_0x241ef9,_0x45400a)=>{if(!_0x45400a[_0x6dbd('0x26')][_0x6dbd('0xb0')])return;const _0x310c68=_0x241ef9[_0x6dbd('0xc1')];if(!_0x310c68)return;const _0x39d686=_0x45400a['mapper']['toViewElement'](_0x310c68);_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0x12e')][_0x6dbd('0x36')](_0x310c68)&&_0x39d686&&!_0x39d686['getCustomProperty']('widget')&&_0x39d686['is'](_0x6dbd('0x5a'))&&_0xf924b5(_0x39d686,_0x45400a[_0x6dbd('0xff')]);},{'priority':_0x6dbd('0x10d')});}),_0x56b3c0['conversion'][_0x6dbd('0x108')](_0x6dbd('0xe5'))[_0x6dbd('0x37')]({'model':_0x6dbd('0x3a'),'view':(_0x548afc,_0x457920)=>{if(!_0x457920[_0x6dbd('0x26')][_0x6dbd('0xb0')])return null;const {type:_0x5ee0c5}=this['_splitMarkerName'](_0x548afc[_0x6dbd('0x102')]);return{'classes':['ck-suggestion-marker',_0x6dbd('0x2d')+_0x5ee0c5],'priority':0xbb8};}});const _0x1e3dfc=({showActiveMarkers:_0x5c7a73=!0x0}={})=>(_0xe1c086,_0x4b1521,_0x17f271)=>{if(!_0x4b1521[_0x6dbd('0xc1')])return;if(_0x4b1521['item']['is'](_0x6dbd('0xf3')))return void _0x17f271[_0x6dbd('0xaa')][_0x6dbd('0xd6')](_0x4b1521[_0x6dbd('0xc1')],_0xe1c086[_0x6dbd('0x61')]);const _0x300f98=_0x17f271[_0x6dbd('0xe')][_0x6dbd('0x9c')](_0x4b1521[_0x6dbd('0xc1')]);if(!(_0x4b1521[_0x6dbd('0xc1')]['is'](_0x6dbd('0x83'))&&_0x56b3c0['model'][_0x6dbd('0x12e')][_0x6dbd('0x6d')](_0x4b1521['item'])&&!_0x300f98[_0x6dbd('0x8f')]('addHighlight')))return;const {id:_0xaee11a}=this[_0x6dbd('0x74')](_0x4b1521[_0x6dbd('0x102')]);_0x17f271[_0x6dbd('0xff')][_0x6dbd('0xc6')]([_0x6dbd('0x9f'),_0x6dbd('0x85')],_0x300f98),_0x17f271[_0x6dbd('0xff')][_0x6dbd('0x103')]('data-suggestion',_0xaee11a,_0x300f98),_0x17f271[_0x6dbd('0xe')]['bindElementToMarker'](_0x300f98,_0x4b1521[_0x6dbd('0x102')]),_0x5c7a73&&(this['activeMarkers']['includes'](_0x4b1521[_0x6dbd('0x102')])?_0x17f271[_0x6dbd('0xff')][_0x6dbd('0xc6')](_0x6dbd('0x21'),_0x300f98):_0x17f271[_0x6dbd('0xff')][_0x6dbd('0xfc')](_0x6dbd('0x21'),_0x300f98));for(const _0x3e4a4d of _0x56b3c0['model']['createRangeIn'](_0x4b1521['item'])['getItems']())_0x17f271[_0x6dbd('0xaa')][_0x6dbd('0xd6')](_0x3e4a4d,_0xe1c086[_0x6dbd('0x61')]);_0x17f271[_0x6dbd('0xaa')]['consume'](_0x4b1521[_0x6dbd('0xc1')],_0xe1c086[_0x6dbd('0x61')]);};_0x56b3c0[_0x6dbd('0xda')][_0x6dbd('0x108')]('dataDowncast')[_0x6dbd('0xc8')](_0xdd1aee=>{_0xdd1aee['on'](_0x6dbd('0x105'),(_0x274b53,_0x1f6384,_0x52cd97)=>{_0x52cd97[_0x6dbd('0x26')][_0x6dbd('0xb0')]&&_0x1e3dfc({'showActiveMarkers':!0x1})(_0x274b53,_0x1f6384,_0x52cd97);},{'priority':_0x6dbd('0x5b')});}),_0x56b3c0[_0x6dbd('0xda')]['for'](_0x6dbd('0xe5'))[_0x6dbd('0x3c')]({'model':'suggestion','view':(_0x516392,_0x3090b2)=>_0x3090b2[_0x6dbd('0x26')][_0x6dbd('0xb0')]?null:{'group':'suggestion','name':_0x516392['substr'](0xb)}}),_0x56b3c0['conversion']['for'](_0x6dbd('0xb5'))[_0x6dbd('0x49')]({'view':{'name':_0x6dbd('0x3a'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xa53cd9,{writer:_0x526633})=>{let _0x172dba=_0x6dbd('0x86')+_0xa53cd9[_0x6dbd('0x53')](_0x6dbd('0x22'))+':'+_0xa53cd9[_0x6dbd('0x53')]('id');return _0xa53cd9['getAttribute']('marker-count')&&(_0x172dba+=':'+_0xa53cd9['getAttribute']('marker-count')),_0x526633['createElement'](_0x6dbd('0x7e'),{'data-name':_0x172dba});}}),_0x56b3c0['conversion']['for'](_0x6dbd('0xb5'))['dataToMarker']({'view':_0x6dbd('0x3a')}),_0x56b3c0[_0x6dbd('0xda')][_0x6dbd('0x108')](_0x6dbd('0xa5'))[_0x6dbd('0xc8')](_0x597e8a=>{_0x597e8a['on'](_0x6dbd('0x105'),_0x1e3dfc(),{'priority':_0x6dbd('0x10d')});}),_0x56b3c0[_0x6dbd('0xda')]['for']('editingDowncast')[_0x6dbd('0xc8')](_0x512648=>{_0x512648['on'](_0x6dbd('0x119'),(_0x4efb35,_0x107f74,_0x3e8ac5)=>{const _0x257d95=_0x3e8ac5[_0x6dbd('0xe')]['markerNameToElements'](_0x107f74['markerName']);if(_0x257d95)for(const _0x3bf260 of _0x257d95)_0x3bf260[_0x6dbd('0x8f')]('addHighlight')||(_0x3e8ac5[_0x6dbd('0xff')][_0x6dbd('0xfc')]([_0x6dbd('0x9f'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3bf260),_0x3e8ac5[_0x6dbd('0xff')]['removeAttribute'](_0x6dbd('0x7a'),_0x3bf260),_0x3e8ac5[_0x6dbd('0xe')][_0x6dbd('0x0')](_0x3bf260,_0x107f74['markerName']));},{'priority':_0x6dbd('0x10d')});}),_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0x5c')]['registerPostFixer'](_0x4467c1=>{let _0x2a7ee0=!0x1;const _0x4a7acc=Array['from'](_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0x5c')]['differ'][_0x6dbd('0x10b')]()),_0x34def2=new Set();for(const {name:_0x4d7197,data:_0x5e3be2}of _0x4a7acc){const {group:_0x4f3064,type:_0x37cd36,id:_0x542891}=this[_0x6dbd('0x74')](_0x4d7197);if('suggestion'!==_0x4f3064)continue;const _0x2039ed=this[_0x6dbd('0x6b')][_0x6dbd('0x107')](_0x542891);if(null!=_0x5e3be2[_0x6dbd('0x59')]){'formatInline'==_0x37cd36&&(_0x2a7ee0=_0x2a7ee0||Mt(_0x5e3be2['newRange'],_0x4d7197,_0x4467c1,_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0x12e')]));if(_0x5e3be2[_0x6dbd('0x59')][_0x6dbd('0x5')]||_0x6dbd('0xe0')==_0x5e3be2[_0x6dbd('0x59')][_0x6dbd('0x8e')][_0x6dbd('0x3e')]||'formatBlock'==_0x37cd36&&!Nt(_0x5e3be2['newRange'])||_0x6dbd('0x23')==_0x37cd36&&!(!_t(_0x41361e=_0x5e3be2['newRange'])&&!function(_0x28a2b2){return _0x28a2b2['start'][_0x6dbd('0x62')]==_0x28a2b2[_0x6dbd('0x78')][_0x6dbd('0x116')]&&_0x28a2b2[_0x6dbd('0x8b')][_0x6dbd('0x19')];}(_0x41361e)))_0x4467c1[_0x6dbd('0x2f')](_0x4d7197),_0x2a7ee0=!0x0;else{if(!_0x2039ed||!_0x2039ed[_0x6dbd('0x111')])continue;_0x34def2[_0x6dbd('0xc8')](_0x2039ed);}}}var _0x41361e;return _0x34def2[_0x6dbd('0xf9')]>0x0&&(_0x2a7ee0=!!this['_joinWithAdjacentSuggestions'](_0x34def2)||_0x2a7ee0),_0x2a7ee0;}),_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0x5c')][_0x6dbd('0xbb')](_0x1ca8f9=>{let _0x399f97=!0x1;for(const _0x37e8a4 of _0x56b3c0[_0x6dbd('0x10c')]['document'][_0x6dbd('0x12a')][_0x6dbd('0x7c')]()){if(_0x6dbd('0x90')!=_0x37e8a4[_0x6dbd('0x3d')])continue;const _0x8c28fe=_0x37e8a4[_0x6dbd('0x118')][_0x6dbd('0xc5')](_0x37e8a4[_0x6dbd('0x11c')]);if(_0x8c28fe['isAtEnd'])for(const _0x5cd26e of this[_0x6dbd('0x6b')]['values']()){if(_0x5cd26e[_0x6dbd('0x4b')]||!_0x5cd26e[_0x6dbd('0x111')])continue;if(_0x6dbd('0x1')!=_0x5cd26e[_0x6dbd('0x3d')])continue;const _0x2119ee=_0x5cd26e[_0x6dbd('0x129')]();if(_0x2119ee['start'][_0x6dbd('0x62')]!=_0x2119ee[_0x6dbd('0x78')]['parent']&&_0x2119ee[_0x6dbd('0x78')]['isEqual'](_0x37e8a4['position'])){const _0x2cda36=_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0xbf')](_0x2119ee[_0x6dbd('0x8b')],_0x8c28fe);_0x1ca8f9[_0x6dbd('0xc7')](_0x5cd26e[_0x6dbd('0x54')](),{'range':_0x2cda36}),_0x399f97=!0x0;}}}return _0x399f97;}),_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0xc3')]['on'](_0x6dbd('0x122'),(_0x13c722,_0x179a2c,_0x286682)=>{if(null==_0x286682){const {id:_0x1c8409}=this['_splitMarkerName'](_0x179a2c[_0x6dbd('0x61')]),_0x127132=this[_0x6dbd('0x6b')][_0x6dbd('0x107')](_0x1c8409);_0x127132&&_0x127132['addMarkerName'](_0x179a2c[_0x6dbd('0x61')]);}}),_0x56b3c0[_0x6dbd('0x10c')]['document']['on'](_0x6dbd('0x8c'),()=>{const _0x376776=Array[_0x6dbd('0x135')](_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0x5c')][_0x6dbd('0x12a')]['getChangedMarkers']())[_0x6dbd('0x13')](_0x6de15c=>_0x6dbd('0x3a')===this[_0x6dbd('0x74')](_0x6de15c[_0x6dbd('0x61')])[_0x6dbd('0xf4')]);if(0x0===_0x376776['length'])return;_0x376776[_0x6dbd('0xfb')]((_0x16df49,_0x33d080)=>{const _0x5ab443=_0x16df49[_0x6dbd('0xf5')]['oldRange'],_0x11fca5=_0x33d080[_0x6dbd('0xf5')][_0x6dbd('0xa6')];return null===_0x5ab443&&null===_0x11fca5?0x0:null===_0x5ab443&&null!==_0x11fca5?-0x1:null!==_0x5ab443&&null===_0x11fca5?0x1:_0x5ab443[_0x6dbd('0x8b')][_0x6dbd('0x32')](_0x11fca5[_0x6dbd('0x8b')])?-0x1:0x1;});const _0x3b3d74=new Set(),_0x450778=new Set();for(const {name:_0x4da907,data:_0x4fd898}of _0x376776){const {id:_0x4be648}=this[_0x6dbd('0x74')](_0x4da907);if(null===_0x4fd898[_0x6dbd('0xa6')]){const _0x55c185=this['_handleNewSuggestionMarker'](_0x4da907);_0x450778['add'](_0x55c185);}else{const _0x13eb77=this['_suggestions'][_0x6dbd('0x107')](_0x4be648);null!==_0x4fd898[_0x6dbd('0x59')]||_0x13eb77['isInContent']?(_0x3b3d74[_0x6dbd('0xc8')](_0x13eb77[_0x6dbd('0x40')]),_0x450778['add'](_0x13eb77)):this[_0x6dbd('0x70')](_0x13eb77);}}_0x450778['size']>0x0&&this['_refreshSuggestionsChain'](_0x450778);for(const _0xee03d0 of _0x3b3d74)this[_0x6dbd('0x11b')]('suggestionChanged',_0xee03d0);}),_0x56b3c0[_0x6dbd('0x10c')]['on']('applyOperation',(_0x506fc2,_0xabb09c)=>{const _0x1d0210=_0xabb09c[0x0];if(!this[_0x6dbd('0x6b')][_0x6dbd('0xf9')])return;if(!_0x1d0210[_0x6dbd('0x39')])return;if(_0x1d0210[_0x6dbd('0xe6')][_0x6dbd('0x81')]||!_0x1d0210[_0x6dbd('0xe6')]['isLocal'])return;let _0x514768,_0x1e666d;switch(_0x1d0210[_0x6dbd('0x3d')]){case _0x6dbd('0x90'):_0x514768=_0x56b3c0[_0x6dbd('0x10c')]['createPositionAt'](_0x1d0210[_0x6dbd('0x118')]),_0x1e666d=_0x514768[_0x6dbd('0xc5')](_0x1d0210[_0x6dbd('0xdf')]);break;case _0x6dbd('0x12'):_0x514768=_0x56b3c0['model']['createPositionAt'](_0x1d0210[_0x6dbd('0x38')]),_0x1e666d=_0x56b3c0[_0x6dbd('0x10c')]['createPositionAt'](_0x1d0210['moveTargetPosition']);break;case _0x6dbd('0xa8'):_0x514768=_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0xbc')](_0x1d0210[_0x6dbd('0xb1')]),_0x1e666d=_0x514768[_0x6dbd('0xc5')](_0x1d0210[_0x6dbd('0xdf')]);break;default:return;}const _0x5cf254=_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0xbf')](_0x514768,_0x1e666d);_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0x25')](()=>{for(const {suggestion:_0xd97cc,meta:_0x5b9db1}of this['_findSuggestions'](_0x5cf254)){if(_0xd97cc[_0x6dbd('0x4b')])continue;if(_0x6dbd('0xcb')==_0xd97cc[_0x6dbd('0x3d')])continue;const _0x582d87=_0xd97cc[_0x6dbd('0xf5')]&&_0xd97cc[_0x6dbd('0xf5')][_0x6dbd('0x11f')];('formatBlock'!=_0xd97cc['type']||_0x6dbd('0x12')==_0x1d0210['type']&&!_0x582d87)&&(_0x5b9db1[_0x6dbd('0x6e')]||_0x6dbd('0x9e')==_0xd97cc[_0x6dbd('0x3d')]&&_0x5b9db1[_0x6dbd('0x128')]||_0xd97cc['getFirstRange']()['containsRange'](_0x5cf254)&&this[_0x6dbd('0x114')](_0xd97cc,_0x514768,_0x1e666d));}});},{'priority':_0x6dbd('0xd3')}),_0x56b3c0[_0x6dbd('0x10c')]['on']('deleteContent',(_0x526e7b,_0x3ab488)=>{const _0x511fed=_0x3ab488[0x0],_0x2f1906=_0x3ab488[0x1];if(_0x2f1906&&_0x2f1906[_0x6dbd('0x110')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x6dbd('0xc')][_0x6dbd('0x112')])return;if(_0x511fed[_0x6dbd('0x5')])return;const _0x5b5eb7=_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0x12e')],{start:_0x527fc4,end:_0x41fbdc}=_0x511fed[_0x6dbd('0x129')](),_0x524a0e=_0x527fc4[_0x6dbd('0x55')]&&_0x5b5eb7[_0x6dbd('0xdb')](_0x527fc4[_0x6dbd('0x55')])?null:_0x5b5eb7[_0x6dbd('0x91')](_0x527fc4,_0x6dbd('0x11d')),_0x4c2aa6=_0x41fbdc['nodeBefore']&&_0x5b5eb7['isLimit'](_0x41fbdc[_0x6dbd('0x116')])?null:_0x5b5eb7[_0x6dbd('0x91')](_0x41fbdc,_0x6dbd('0x134')),_0x19199f=_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0xbf')](_0x524a0e?_0x524a0e['start']:_0x527fc4,_0x4c2aa6?_0x4c2aa6[_0x6dbd('0x78')]:_0x41fbdc);_0x56b3c0[_0x6dbd('0x10c')]['change'](_0x519d6c=>{this['markDeletion'](_0x19199f);const _0x2060b4=_0x56b3c0[_0x6dbd('0x10c')]['schema'][_0x6dbd('0x91')](_0x19199f[_0x6dbd('0x8b')]);_0x511fed['is'](_0x6dbd('0x12b'))?_0x519d6c['setSelection'](_0x2060b4):_0x511fed[_0x6dbd('0xb6')](_0x2060b4);}),_0x526e7b['stop']();},{'priority':_0x1ee2c4[_0x6dbd('0x1e')]+0xa}),_0x56b3c0[_0x6dbd('0x10c')]['on'](_0x6dbd('0xa7'),(_0x430eda,_0x4e5891)=>{const _0x2b022b=_0x4e5891[_0x4e5891[_0x6dbd('0x11c')]-0x1];_0x2b022b&&_0x2b022b[_0x6dbd('0x110')]||this[_0x6dbd('0x45')]||this[_0x6dbd('0xc')]['value']&&(_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0x25')](()=>{let _0x38eae6=_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0xa7')](_0x4e5891[0x0],_0x4e5891[0x1],_0x4e5891[0x2],{'forceDefaultExecution':!0x0});if(!_0x38eae6)return;_0x430eda[_0x6dbd('0x18')]=_0x38eae6[_0x6dbd('0xab')]();const _0x3118ac=_0x38eae6[_0x6dbd('0x78')]['nodeBefore'],_0x290634=_0x56b3c0[_0x6dbd('0x10c')][_0x6dbd('0x12e')];_0x3118ac&&_0x290634[_0x6dbd('0x6d')](_0x3118ac)&&!_0x290634[_0x6dbd('0x36')](_0x3118ac)&&(_0x38eae6=_0x56b3c0['model'][_0x6dbd('0xbf')](_0x38eae6[_0x6dbd('0x8b')],_0x56b3c0['model']['createPositionAt'](_0x3118ac,_0x6dbd('0x78')))),this[_0x6dbd('0x11e')](_0x38eae6);}),_0x430eda[_0x6dbd('0xc2')]());},{'priority':_0x6dbd('0x10d')}),this[_0x6dbd('0xaf')][_0x6dbd('0x2e')]['add'](_0x6dbd('0x68'),this['trackChangesCommand']),this[_0x6dbd('0xe9')](_0x6dbd('0x68'));const _0x9851f=new _0x39e440(_0x56b3c0,this[_0x6dbd('0x6b')]);_0x56b3c0[_0x6dbd('0x2e')]['add'](_0x6dbd('0x79'),_0x9851f),this[_0x6dbd('0xe9')](_0x6dbd('0x79'));const _0x1819b7=new _0x4da722(_0x56b3c0,this[_0x6dbd('0x6b')]);_0x56b3c0['commands'][_0x6dbd('0xc8')]('discardSuggestion',_0x1819b7),this[_0x6dbd('0xe9')](_0x6dbd('0xd0')),_0x56b3c0[_0x6dbd('0x2e')][_0x6dbd('0xc8')](_0x6dbd('0xb2'),new _0x47ad61(_0x56b3c0,_0x9851f,this[_0x6dbd('0x6b')])),this[_0x6dbd('0xe9')](_0x6dbd('0xb2')),_0x56b3c0['commands'][_0x6dbd('0xc8')](_0x6dbd('0xbe'),new _0x47ad61(_0x56b3c0,_0x1819b7,this[_0x6dbd('0x6b')])),this[_0x6dbd('0xe9')](_0x6dbd('0xbe')),_0x56b3c0[_0x6dbd('0x2e')][_0x6dbd('0xc8')](_0x6dbd('0xf8'),new _0x2cee14(_0x56b3c0,_0x9851f,this[_0x6dbd('0x6b')])),this[_0x6dbd('0xe9')]('acceptSelectedSuggestions'),_0x56b3c0['commands'][_0x6dbd('0xc8')](_0x6dbd('0x7f'),new _0x2cee14(_0x56b3c0,_0x1819b7,this[_0x6dbd('0x6b')])),this[_0x6dbd('0xe9')](_0x6dbd('0x7f'));const _0x586dbd=_0x56b3c0['plugins'][_0x6dbd('0x107')](_0x6dbd('0x101'));this[_0x6dbd('0x5d')](_0x586dbd,_0x6dbd('0x12c'),(_0x315386,{threadId:_0x5233bf})=>{const _0x3a0c5d=this[_0x6dbd('0x6b')]['get'](_0x5233bf);_0x3a0c5d&&_0x3a0c5d['commentThread']&&0x1===_0x3a0c5d[_0x6dbd('0x28')][_0x6dbd('0x11c')]&&this[_0x6dbd('0x41')](_0x5233bf,{'hasComments':!0x0});},{'priority':_0x6dbd('0x56')}),this[_0x6dbd('0x5d')](_0x586dbd,_0x6dbd('0x98'),(_0x84bd45,{threadId:_0x3fb0bf})=>{const _0x2c1efc=this['_suggestions'][_0x6dbd('0x107')](_0x3fb0bf);_0x2c1efc&&_0x2c1efc[_0x6dbd('0x28')]&&!_0x2c1efc['commentThread'][_0x6dbd('0x11c')]&&this[_0x6dbd('0x41')](_0x3fb0bf,{'hasComments':!0x1});},{'priority':_0x6dbd('0x56')});}set[_0x6dbd('0xee')](_0x2839cc){if(this[_0x6dbd('0x6a')])throw new _0xac50b6(_0x6dbd('0x84'),this);this[_0x6dbd('0x6a')]=_0x2839cc;}get[_0x6dbd('0xee')](){return this['_adapter'];}[_0x6dbd('0xeb')]({skipNotAttached:_0x540c60=!0x1,toJSON:_0x44e53f=!0x1}={}){const _0x6b6e83=[];for(const _0x2df013 of this[_0x6dbd('0x6b')][_0x6dbd('0x97')]())_0x540c60&&!_0x2df013[_0x6dbd('0x111')]||_0x6b6e83['push'](_0x2df013);return _0x44e53f?_0x6b6e83[_0x6dbd('0xa')](_0x2a4ef3=>_0x2a4ef3[_0x6dbd('0xde')]()):_0x6b6e83;}[_0x6dbd('0xbd')](_0x428549){const _0x51bd7b=this['_suggestions']['get'](_0x428549);if(!_0x51bd7b)throw new _0xac50b6('track-changes-suggestion-not-found',this);return _0x51bd7b;}[_0x6dbd('0xd7')](_0x3787b1){return this[_0x6dbd('0x6b')]['has'](_0x3787b1);}['addSuggestionData'](_0x1b491a){const {authorId:_0x2c1f61,id:_0x13354f,attributes:_0x3636db}=_0x1b491a,[_0x50c557,_0x6c5247]=_0x1b491a[_0x6dbd('0x3d')]['split'](':'),_0x3eedf0=this[_0x6dbd('0x6b')][_0x6dbd('0x107')](_0x13354f)||this[_0x6dbd('0x2c')](_0x50c557,_0x6c5247,_0x13354f,_0x2c1f61,_0x3636db);if(this[_0x6dbd('0x100')](_0x3eedf0),this['_checkSuggestionCorrectness'](_0x3eedf0,_0x50c557,_0x6c5247||null,_0x2c1f61),_0x3eedf0['createdAt']=_0x1b491a[_0x6dbd('0xca')],_0x3636db&&_0x3636db[_0x6dbd('0x42')]){const _0x382305=_0x3636db['@external'],_0x4ff4ec=this[_0x6dbd('0xa3')](_0x382305[_0x6dbd('0x50')]);_0x3eedf0[_0x6dbd('0x109')]=_0x382305[_0x6dbd('0xca')],_0x3eedf0[_0x6dbd('0x94')]=_0x4ff4ec,_0x3eedf0[_0x6dbd('0x99')]=!0x0;}else _0x3eedf0[_0x6dbd('0x109')]=_0x1b491a[_0x6dbd('0xca')];switch(_0x1b491a[_0x6dbd('0xf5')]&&(_0x3eedf0['data']=_0x1b491a['data']),_0x1b491a[_0x6dbd('0x4c')]&&(_0x3eedf0[_0x6dbd('0x4c')]=_0x1b491a[_0x6dbd('0x4c')]),this[_0x6dbd('0x6a')]&&this['_adapter'][_0x6dbd('0xd1')]||(_0x3eedf0[_0x6dbd('0xe1')]=!0x0),this[_0x6dbd('0x80')]['get'](_0x3eedf0)){case _0x6dbd('0x4d'):this[_0x6dbd('0x80')][_0x6dbd('0x34')](_0x3eedf0,'dataReady');break;case'markerReady':_0x3eedf0[_0x6dbd('0x111')]?(this[_0x6dbd('0x80')]['set'](_0x3eedf0,_0x6dbd('0xd9')),this[_0x6dbd('0x11b')]('suggestionLoaded',_0x3eedf0)):this[_0x6dbd('0x80')][_0x6dbd('0x34')](_0x3eedf0,'removed');}return _0x3eedf0;}['acceptSuggestion'](_0x5caa7f){this[_0x6dbd('0x110')](()=>{this[_0x6dbd('0xaf')][_0x6dbd('0x10c')][_0x6dbd('0x25')](()=>{for(const _0x23672e of _0x5caa7f['getAllAdjacentSuggestions']())_0x23672e['accept']();});});}[_0x6dbd('0xd0')](_0x146a66){this[_0x6dbd('0x110')](()=>{this[_0x6dbd('0xaf')][_0x6dbd('0x10c')]['change'](()=>{for(const _0x246036 of _0x146a66[_0x6dbd('0xf0')]())_0x246036[_0x6dbd('0x57')]();});});}[_0x6dbd('0xe9')](_0x4ed430,_0x30fcd7){const _0xe33f20=this[_0x6dbd('0xaf')][_0x6dbd('0x2e')]['get'](_0x4ed430);if(!_0xe33f20)throw new _0xac50b6(_0x6dbd('0x6c'),this,{'commandName':_0x4ed430});this[_0x6dbd('0x3')][_0x6dbd('0xc8')](_0xe33f20),_0x30fcd7&&_0xe33f20['on'](_0x6dbd('0x27'),(_0x2a8cf9,_0x109c39)=>{this[_0x6dbd('0xc')][_0x6dbd('0x112')]&&(this[_0x6dbd('0x45')]||_0x109c39[_0x6dbd('0x11c')]>0x0&&_0x109c39[_0x109c39['length']-0x1]&&_0x109c39[_0x109c39[_0x6dbd('0x11c')]-0x1]['forceDefaultExecution']||(_0x30fcd7((..._0x1977d6)=>_0xe33f20['execute'](..._0x1977d6,{'forceDefaultExecution':!0x0}),..._0x109c39),_0x2a8cf9['stop']()));},{'priority':_0x6dbd('0x10d')});}[_0x6dbd('0x110')](_0x7f15fb){let _0xacb1ad,_0x50ecf5;const _0x28e66a=this[_0x6dbd('0x45')];this[_0x6dbd('0x45')]=!0x0;try{_0xacb1ad=_0x7f15fb();}catch(_0x3b1632){_0x50ecf5=_0x3b1632;}return _0x28e66a||(this[_0x6dbd('0x45')]=!0x1),_0x50ecf5&&_0xac50b6[_0x6dbd('0xfd')](_0x50ecf5,this),_0xacb1ad;}[_0x6dbd('0x11e')](_0x3648ce,_0x329d21=null,_0xa092c2={}){if(_0x3648ce[_0x6dbd('0x5')])return null;const _0x5a706d=this[_0x6dbd('0xaf')][_0x6dbd('0x106')]['get'](_0x6dbd('0x120'))['me'];for(const {suggestion:_0x5c7ea4,meta:_0x5378c8}of this[_0x6dbd('0xad')](_0x3648ce,'insertion'))if(_0x5378c8['isOwn']){if(!_0x5378c8[_0x6dbd('0xea')]){if(!this[_0x6dbd('0x1c')]&&_0x5378c8[_0x6dbd('0x6e')])continue;return _0x5c7ea4;}if(_0x329d21==_0x5c7ea4[_0x6dbd('0x82')]){const _0x31ef9c=_0x5c7ea4['getFirstRange']();return _0x31ef9c[_0x6dbd('0x8b')]['isEqual'](_0x3648ce[_0x6dbd('0x78')])?this[_0x6dbd('0x10f')](_0x5c7ea4,this['_model'][_0x6dbd('0xbf')](_0x3648ce['start'],_0x31ef9c[_0x6dbd('0x78')])):this[_0x6dbd('0x10f')](_0x5c7ea4,this[_0x6dbd('0xa0')]['createRange'](_0x31ef9c[_0x6dbd('0x8b')],_0x3648ce['end'])),_0x5c7ea4;}}const _0x463c43=_0x74c359(),_0x544a21=_0x5a706d['id'],_0x57c8b9=_0x329d21?_0x6dbd('0xf6')+_0x329d21:'insertion',_0x12c4fc=this[_0x6dbd('0x4e')]({'id':_0x463c43,'type':_0x57c8b9,'createdAt':new Date(),'authorId':_0x544a21,'attributes':_0xa092c2});return this[_0x6dbd('0x69')](_0x57c8b9,_0x463c43,_0x544a21,_0x3648ce),_0x12c4fc;}[_0x6dbd('0xe7')](_0x4ba4ea,_0x44169c='multi',_0x35a62f={}){const _0x2e6dd9=this[_0x6dbd('0xaf')][_0x6dbd('0x106')][_0x6dbd('0x107')](_0x6dbd('0x120'))['me'],_0x571e01=this[_0x6dbd('0x6')][_0x6dbd('0x46')](_0x6dbd('0x9e'),_0x44169c,'join');for(const _0xa56be4 of this[_0x6dbd('0xeb')]())if(_0xa56be4['author']['id']==_0x2e6dd9['id']&&_0x6dbd('0x9e')==_0xa56be4[_0x6dbd('0x3d')]&&_0xa56be4['subType']==_0x44169c&&(_0x571e01(_0xa56be4[_0x6dbd('0x92')](),_0x4ba4ea)||_0x571e01(_0x4ba4ea,_0xa56be4['getRanges']()))){for(const _0x48497c of _0x4ba4ea)_0xa56be4['addRange'](_0x48497c);return _0xa56be4;}if(this[_0x6dbd('0x1c')])for(const _0x1ba9e5 of _0x4ba4ea)for(const {suggestion:_0x5659d0,meta:_0x1041e1}of this[_0x6dbd('0xad')](_0x1ba9e5,_0x6dbd('0x9e'))){if(!_0x1041e1[_0x6dbd('0x128')])continue;let _0x43912e=!0x0;for(const _0x1c30bc of _0x5659d0['getRanges']())for(const _0xdd9b13 of _0x4ba4ea)if(!_0x1c30bc[_0x6dbd('0xb')](_0xdd9b13)){_0x43912e=!0x1;break;}if(_0x43912e)return _0x5659d0;}const _0x132829=_0x74c359(),_0x1ad056=_0x2e6dd9['id'],_0x2604e2=_0x6dbd('0xf6')+_0x44169c,_0x4107a8=this['_setSuggestionData']({'id':_0x132829,'type':_0x2604e2,'createdAt':new Date(),'authorId':_0x1ad056,'attributes':_0x35a62f});for(const _0x323237 of _0x4ba4ea)this[_0x6dbd('0x69')](_0x2604e2,_0x132829,_0x1ad056,_0x323237,_0x485403[_0x6dbd('0x65')]());return _0x4107a8;}[_0x6dbd('0xdd')](_0x1f5868,_0x454446,_0x236a0c=null,_0x326760={}){if(_0x236a0c=_0x236a0c||$t(_0x454446),_0x1f5868[_0x6dbd('0x5')])return null;if(_0x6dbd('0x73')===this['_trackFormatChanges']){const _0x5a31f8=this['_suggestionFactory'][_0x6dbd('0x46')](_0x6dbd('0xcb'),_0x236a0c,_0x6dbd('0x10e'));return this[_0x6dbd('0x110')](()=>_0x5a31f8([_0x1f5868],_0x454446,_0x326760)),null;}const _0x4af177=this[_0x6dbd('0xaf')]['plugins'][_0x6dbd('0x107')](_0x6dbd('0x120'))['me'],_0x20da5c=[];if(_0x6dbd('0xdc')!==this[_0x6dbd('0x15')])for(const {suggestion:_0x14bf0b,meta:_0xbe1f5f}of this[_0x6dbd('0xad')](_0x1f5868,_0x6dbd('0x9e')))_0xbe1f5f['isOwn']&&!_0xbe1f5f[_0x6dbd('0x64')]&&_0x20da5c[_0x6dbd('0xd8')](..._0x14bf0b[_0x6dbd('0x92')]());const _0x13d3ae=function(_0x2acdbc,_0x4e34a6){const _0x1f1f9c=[];for(const _0x4319dc of _0x4e34a6){const _0x9bc0e3=_0x2acdbc[_0x6dbd('0x113')](_0x4319dc);_0x9bc0e3&&_0x1f1f9c['push'](_0x9bc0e3);}return _0x1f1f9c;}(_0x1f5868,_0x20da5c),_0x523c15=function(_0xf1f7a1,_0x4a8150){const _0x20d1c7=[_0xf1f7a1];for(const _0x3a801c of _0x4a8150){let _0x264343=0x0;for(;_0x264343<_0x20d1c7[_0x6dbd('0x11c')];){const _0x3df166=_0x20d1c7[_0x264343][_0x6dbd('0x67')](_0x3a801c);_0x20d1c7[_0x6dbd('0x2b')](_0x264343,0x1,..._0x3df166),_0x264343+=_0x3df166[_0x6dbd('0x11c')];}}return _0x20d1c7;}(_0x1f5868,_0x20da5c);_0x13d3ae[_0x6dbd('0x11c')]&&this[_0x6dbd('0xa0')]['change'](()=>{for(const _0x591a34 of _0x13d3ae){const _0x5abb7f=this['_suggestionFactory']['getSuggestionCallback'](_0x6dbd('0xcb'),_0x236a0c,_0x6dbd('0x10e'));this[_0x6dbd('0x110')](()=>_0x5abb7f([_0x591a34],_0x454446,_0x326760));}});for(const _0x39891a of _0x523c15){let _0x46d315=null,_0x15be46=_0x39891a[_0x6dbd('0x8b')],_0x13480e=_0x39891a['end'];for(const {suggestion:_0x57d218,meta:_0x321dd4}of this[_0x6dbd('0xad')](_0x39891a,'formatInline')){if(!_0x321dd4['isOwn'])continue;if(_0x57d218[_0x6dbd('0x82')]!=_0x236a0c)continue;const _0x419dec=_0x57d218[_0x6dbd('0x129')]();if(_0x419dec[_0x6dbd('0xb')](_0x39891a,!0x0))return null;_0x15be46=_0x15be46[_0x6dbd('0x32')](_0x419dec[_0x6dbd('0x8b')])?_0x15be46:_0x419dec[_0x6dbd('0x8b')],_0x13480e=_0x13480e[_0x6dbd('0x52')](_0x419dec[_0x6dbd('0x78')])?_0x13480e:_0x419dec[_0x6dbd('0x78')],_0x46d315?_0x419dec[_0x6dbd('0x8b')]['isBefore'](_0x46d315[_0x6dbd('0x129')]()[_0x6dbd('0x8b')])?(_0x46d315['removeMarkers'](),_0x46d315=_0x57d218):_0x57d218['removeMarkers']():_0x46d315=_0x57d218;}const _0x1db18c=this[_0x6dbd('0xa0')][_0x6dbd('0xbf')](_0x15be46,_0x13480e);if(_0x46d315)this[_0x6dbd('0x10f')](_0x46d315,_0x1db18c);else{const _0x4fd2f3=_0x74c359(),_0x28a0b9=_0x4af177['id'];this[_0x6dbd('0x4e')]({'id':_0x4fd2f3,'type':_0x6dbd('0xf7')+_0x236a0c,'data':_0x454446,'createdAt':new Date(),'authorId':_0x28a0b9,'attributes':_0x326760}),this['_addSuggestionMarker'](_0x6dbd('0xf7')+_0x236a0c,_0x4fd2f3,_0x28a0b9,_0x1db18c);}}return null;}[_0x6dbd('0x130')](_0x411b0e,_0xa30701,_0x1000c4=[],_0x1b28d7=null,_0x741e7c={}){_0xa30701['formatGroupId']||(_0xa30701[_0x6dbd('0x7b')]=_0xa30701[_0x6dbd('0x17')]),_0xa30701[_0x6dbd('0x11f')]=_0x411b0e['is'](_0x6dbd('0x16')),_0x1b28d7=_0x1b28d7||$t(_0xa30701);const _0x4ee368=_0x1000c4[_0x6dbd('0xa')](_0x39063d=>Rt(_0x39063d,this[_0x6dbd('0xa0')])),_0x312980=_0x411b0e['is'](_0x6dbd('0x16'))?_0x411b0e:Rt(_0x411b0e,this[_0x6dbd('0xa0')]);if(_0x6dbd('0x73')===this['_trackFormatChanges']){const _0x5df373=this[_0x6dbd('0x6')]['getSuggestionCallback'](_0x6dbd('0x1'),_0x1b28d7,'accept');return this[_0x6dbd('0x110')](()=>_0x5df373([_0x312980],_0xa30701,_0x741e7c)),null;}_0x4ee368[_0x6dbd('0xd8')](_0x312980);let _0x2191a6=!0x0;for(const _0x8e8ad9 of _0x4ee368)if(!this[_0x6dbd('0x20')](_0x8e8ad9)){_0x2191a6=!0x1;break;}if(_0x2191a6&&_0x6dbd('0xdc')!==this[_0x6dbd('0x15')]){const _0x272e58=this['_suggestionFactory'][_0x6dbd('0x46')](_0x6dbd('0x1'),_0x1b28d7,_0x6dbd('0x10e'));return this[_0x6dbd('0x110')](()=>_0x272e58([_0x312980],_0xa30701,_0x741e7c)),null;}let _0x25144e=null,_0x4a7b77=_0x312980[_0x6dbd('0x8b')],_0x309f10=_0x312980['end'];for(const {suggestion:_0x43b73e,meta:_0x54dbf7}of this['_findSuggestions'](_0x312980,_0x6dbd('0x1'))){if(!_0x54dbf7[_0x6dbd('0x128')]||_0x54dbf7[_0x6dbd('0xea')]||_0x54dbf7[_0x6dbd('0x6e')]||_0x54dbf7[_0x6dbd('0x64')])continue;if(_0x43b73e[_0x6dbd('0xf5')][_0x6dbd('0x7b')]!=_0xa30701[_0x6dbd('0x7b')])continue;const _0x265509=_0x43b73e[_0x6dbd('0x129')]();if(_0x43b73e[_0x6dbd('0x82')]==_0x1b28d7){if(_0x265509[_0x6dbd('0xb')](_0x312980,!0x0))return null;_0x4a7b77=_0x4a7b77['isBefore'](_0x265509[_0x6dbd('0x8b')])?_0x4a7b77:_0x265509[_0x6dbd('0x8b')],_0x309f10=_0x309f10[_0x6dbd('0x52')](_0x265509[_0x6dbd('0x78')])?_0x309f10:_0x265509[_0x6dbd('0x78')],_0x25144e?_0x265509[_0x6dbd('0x8b')][_0x6dbd('0x32')](_0x25144e[_0x6dbd('0x129')]()[_0x6dbd('0x8b')])?(_0x25144e['removeMarkers'](),_0x25144e=_0x43b73e):_0x43b73e['removeMarkers']():_0x25144e=_0x43b73e;}else{const _0x224ee9=_0x312980[_0x6dbd('0x113')](_0x265509);this[_0x6dbd('0xc4')](_0x43b73e,_0x224ee9);}}const _0x566554=this[_0x6dbd('0xaf')][_0x6dbd('0x106')][_0x6dbd('0x107')]('Users')['me'],_0x15407b=_0x74c359(),_0x1b60f0=_0x566554['id'];if(_0x25144e)return this[_0x6dbd('0x10f')](_0x25144e,this[_0x6dbd('0xa0')][_0x6dbd('0xbf')](_0x4a7b77,_0x309f10)),_0x25144e;{const _0x4b83e3=this['_setSuggestionData']({'id':_0x15407b,'type':_0x6dbd('0xb8')+_0x1b28d7,'data':_0xa30701,'createdAt':new Date(),'authorId':_0x1b60f0,'attributes':_0x741e7c});return this[_0x6dbd('0x69')](_0x6dbd('0xb8')+_0x1b28d7,_0x15407b,_0x1b60f0,this['_model'][_0x6dbd('0xbf')](_0x4a7b77,_0x309f10)),_0x4b83e3;}}[_0x6dbd('0x117')](_0x83c851,_0x59d2b1,_0x536949=[],_0x510d51=null,_0x46e51e={}){_0x59d2b1[_0x6dbd('0x7b')]||(_0x59d2b1[_0x6dbd('0x7b')]=_0x59d2b1[_0x6dbd('0x17')]);const _0x517dd5=_0x83c851[0x0];_0x59d2b1[_0x6dbd('0x11f')]=_0x517dd5['is'](_0x6dbd('0x16')),_0x510d51=_0x510d51||$t(_0x59d2b1);const _0x7d22cf=_0x536949[_0x6dbd('0xa')](_0x5af9c0=>Rt(_0x5af9c0,this[_0x6dbd('0xa0')])),_0x29b480=_0x517dd5['is'](_0x6dbd('0x16'))?_0x83c851:_0x83c851[_0x6dbd('0xa')](_0x57020a=>Rt(_0x57020a,this['_model']));if(_0x6dbd('0x73')===this[_0x6dbd('0x15')]){const _0x32f122=this[_0x6dbd('0x6')]['getSuggestionCallback'](_0x6dbd('0x1'),_0x510d51,'accept');return this[_0x6dbd('0x110')](()=>_0x32f122(_0x29b480,_0x59d2b1,_0x46e51e)),null;}_0x7d22cf[_0x6dbd('0xd8')](..._0x29b480);let _0x308df6=!0x0;for(const _0x2aa16e of _0x7d22cf)if(!this['_rangeIsInLocalUserInsertion'](_0x2aa16e)){_0x308df6=!0x1;break;}if(_0x308df6&&'always'!==this['_trackFormatChanges']){const _0xab8a63=this['_suggestionFactory'][_0x6dbd('0x46')]('formatBlock',_0x510d51,'accept');return this[_0x6dbd('0x110')](()=>_0xab8a63(_0x29b480,_0x59d2b1,_0x46e51e)),null;}const _0x5203b2=this['editor']['plugins'][_0x6dbd('0x107')](_0x6dbd('0x120'))['me'];for(const _0x5819d8 of this[_0x6dbd('0xeb')]()){if(_0x5819d8[_0x6dbd('0x94')]['id']!=_0x5203b2['id'])continue;if(_0x6dbd('0x1')!=_0x5819d8['type']||_0x5819d8[_0x6dbd('0xf5')][_0x6dbd('0x7b')]!=_0x59d2b1[_0x6dbd('0x7b')])continue;const _0xe572c5=_0x5819d8[_0x6dbd('0x82')]==_0x510d51;for(let _0x585afe=0x0;_0x585afe<_0x29b480[_0x6dbd('0x11c')];_0x585afe++){const _0x202b39=_0x29b480[_0x585afe];for(const _0x4e43f5 of _0x5819d8['getMarkers']()){const _0x50e1e4=_0x4e43f5['getRange']();if(_0x202b39[_0x6dbd('0x3b')](_0x50e1e4)){_0xe572c5?(_0x29b480[_0x6dbd('0x2b')](_0x585afe,0x1),_0x585afe--):_0x5819d8['removeMarker'](_0x4e43f5['name']);break;}}}}if(0x0==_0x29b480[_0x6dbd('0x11c')])return null;const _0x894c49=this[_0x6dbd('0x6')][_0x6dbd('0x46')](_0x6dbd('0x1'),_0x510d51,_0x6dbd('0x51'));for(const _0x2a7822 of this[_0x6dbd('0xeb')]())if(_0x2a7822[_0x6dbd('0x94')]['id']==_0x5203b2['id']&&'formatBlock'==_0x2a7822[_0x6dbd('0x3d')]&&_0x2a7822[_0x6dbd('0xf5')][_0x6dbd('0x7b')]==_0x59d2b1['formatGroupId']&&_0x2a7822[_0x6dbd('0x82')]==_0x510d51&&(_0x894c49(_0x2a7822[_0x6dbd('0x92')](),_0x29b480)||_0x894c49(_0x29b480,_0x2a7822[_0x6dbd('0x92')]()))){for(const _0x76144e of _0x29b480)_0x2a7822[_0x6dbd('0x96')](_0x76144e);return _0x2a7822;}const _0x2a107f=_0x74c359(),_0xf7ac7=_0x5203b2['id'],_0x5db5c0=_0x6dbd('0xb8')+_0x510d51,_0x34e2dd=this[_0x6dbd('0x4e')]({'id':_0x2a107f,'type':_0x5db5c0,'data':_0x59d2b1,'createdAt':new Date(),'authorId':_0xf7ac7,'attributes':_0x46e51e});for(const _0x2629f2 of _0x29b480)this[_0x6dbd('0x69')](_0x5db5c0,_0x2a107f,_0xf7ac7,_0x2629f2,_0x485403[_0x6dbd('0x65')]());return _0x34e2dd;}[_0x6dbd('0x6f')](_0x1c8d79,_0x569176=null,_0x4731ad={}){if(_0x1c8d79[_0x6dbd('0x5')])return null;const _0x29bed0=this['editor'][_0x6dbd('0x106')][_0x6dbd('0x107')]('Users')['me'],_0x27dd72=new _0x3adeaa(_0x1c8d79[_0x6dbd('0x8b')],_0x1c8d79[_0x6dbd('0x78')]);for(const {suggestion:_0x55437c,meta:_0x3510ab}of this[_0x6dbd('0xad')](_0x27dd72,_0x6dbd('0x9e')))if(_0x3510ab[_0x6dbd('0x128')]&&!_0x3510ab[_0x6dbd('0xea')]){if(_0x55437c[_0x6dbd('0x4b')]){const _0x249885=_0x55437c[_0x6dbd('0x92')]()['filter'](_0x392346=>_0x6dbd('0xe0')!=_0x392346[_0x6dbd('0x8e')][_0x6dbd('0x3e')]);_0x249885['every'](_0x286b07=>_0x27dd72[_0x6dbd('0xb')](_0x286b07,!0x0))&&_0x55437c[_0x6dbd('0x57')]();if(_0x249885[_0x6dbd('0x9b')](_0x1e2c2b=>_0x1e2c2b[_0x6dbd('0xb')](_0x27dd72,!0x0))){const _0x178455=this['_suggestionFactory'][_0x6dbd('0x46')](_0x6dbd('0x23'),_0x569176,_0x6dbd('0x10e'));return this['forceDefaultExecution'](()=>_0x178455([_0x27dd72],null,_0x4731ad)),null;}}else{const _0x1464ae=_0x27dd72[_0x6dbd('0x113')](_0x55437c['getFirstRange']());null!==_0x1464ae&&_0x55437c[_0x6dbd('0xb3')]([_0x1464ae],null,_0x4731ad);}}if(_0x27dd72[_0x6dbd('0x72')](),_0x27dd72['isCollapsed']||_0x6dbd('0xe0')==_0x27dd72[_0x6dbd('0x8e')][_0x6dbd('0x3e')])return null;let _0x21fbf1=null,_0x637d30=_0x27dd72[_0x6dbd('0x8b')],_0xc49c60=_0x27dd72[_0x6dbd('0x78')];for(const {suggestion:_0x5d468a,meta:_0x3d0525}of this['_findSuggestions'](_0x27dd72,_0x6dbd('0x23')))if(_0x3d0525[_0x6dbd('0x128')]){if(_0x5d468a[_0x6dbd('0x4b')]&&this[_0x6dbd('0x1c')]){let _0x5372bb=!0x0;for(const _0xef1476 of _0x5d468a[_0x6dbd('0x92')]()){if(_0xef1476[_0x6dbd('0xb')](_0x27dd72,!0x0))return _0x5d468a;_0x27dd72[_0x6dbd('0xb')](_0xef1476)||(_0x5372bb=!0x1);}_0x5372bb&&_0x5d468a[_0x6dbd('0x57')]();}else{const _0x53c721=_0x5d468a[_0x6dbd('0x129')]();if(_0x53c721[_0x6dbd('0xb')](_0x27dd72,!0x0)){if(!this[_0x6dbd('0x1c')]&&_0x3d0525[_0x6dbd('0x6e')])continue;return _0x5d468a;}_0x637d30=_0x637d30['isBefore'](_0x53c721[_0x6dbd('0x8b')])?_0x637d30:_0x53c721[_0x6dbd('0x8b')],_0xc49c60=_0xc49c60[_0x6dbd('0x52')](_0x53c721[_0x6dbd('0x78')])?_0xc49c60:_0x53c721['end'],_0x21fbf1?_0x53c721[_0x6dbd('0x8b')][_0x6dbd('0x32')](_0x21fbf1['getFirstRange']()['start'])?(_0x21fbf1[_0x6dbd('0x115')](),_0x21fbf1=_0x5d468a):_0x5d468a[_0x6dbd('0x115')]():_0x21fbf1=_0x5d468a;}}if(_0x21fbf1)return this[_0x6dbd('0x10f')](_0x21fbf1,this[_0x6dbd('0xa0')][_0x6dbd('0xbf')](_0x637d30,_0xc49c60)),_0x21fbf1;{const _0x558d1c=_0x74c359(),_0x1ee2c8=this[_0x6dbd('0xa0')][_0x6dbd('0xbf')](_0x637d30,_0xc49c60),_0x348a49=_0x29bed0['id'],_0x32396e=_0x569176?_0x6dbd('0x2')+_0x569176:_0x6dbd('0x23'),_0x3f97bc=this[_0x6dbd('0x4e')]({'id':_0x558d1c,'type':_0x32396e,'createdAt':new Date(),'authorId':_0x348a49,'attributes':_0x4731ad});return this[_0x6dbd('0x69')](_0x32396e,_0x558d1c,_0x348a49,_0x1ee2c8),_0x3f97bc;}}[_0x6dbd('0xd')](_0x5f513f,_0x17a3e9=_0x6dbd('0x104'),_0x26a280={}){const _0x524c91=this[_0x6dbd('0xaf')][_0x6dbd('0x106')][_0x6dbd('0x107')](_0x6dbd('0x120'))['me'],_0x4d0bdd=_0x5f513f[_0x6dbd('0xa')](_0x56f076=>new _0x3adeaa(_0x56f076[_0x6dbd('0x8b')],_0x56f076[_0x6dbd('0x78')])),_0x44966b=new Set();for(const _0x1d4216 of _0x4d0bdd)for(const {suggestion:_0x3e2eee,meta:_0x124a2d}of this[_0x6dbd('0xad')](_0x1d4216,'insertion'))_0x124a2d[_0x6dbd('0x128')]&&!_0x124a2d[_0x6dbd('0xea')]&&_0x44966b[_0x6dbd('0xc8')](_0x3e2eee);for(const _0x23fe9e of _0x44966b)if(_0x23fe9e[_0x6dbd('0x4b')]){const _0x330e8b=_0x23fe9e[_0x6dbd('0x92')]();(!_0x23fe9e[_0x6dbd('0x4c')]||!_0x23fe9e['attributes'][_0x6dbd('0x4')])&&(_0x330e8b[_0x6dbd('0xe4')](_0x3c6209=>_0x4d0bdd[_0x6dbd('0x9b')](_0x260577=>_0x260577[_0x6dbd('0xb')](_0x3c6209,!0x0)))&&_0x23fe9e['discard']());if(_0x4d0bdd[_0x6dbd('0xe4')](_0x2f75fb=>_0x330e8b['some'](_0x3616b1=>_0x3616b1[_0x6dbd('0xb')](_0x2f75fb,!0x0)))){const _0xe938b8=this['_suggestionFactory'][_0x6dbd('0x46')](_0x6dbd('0x23'),_0x17a3e9,_0x6dbd('0x10e'));return this['forceDefaultExecution'](()=>_0xe938b8(_0x5f513f,null,_0x26a280)),null;}}else{const _0x53de1c=_0x23fe9e['getFirstRange']();_0x4d0bdd[_0x6dbd('0x9b')](_0x484292=>_0x484292['containsRange'](_0x53de1c,!0x0))&&_0x23fe9e[_0x6dbd('0x57')]();if(_0x4d0bdd[_0x6dbd('0xe4')](_0x51e3b8=>_0x53de1c[_0x6dbd('0xb')](_0x51e3b8,!0x0))){const _0x420c25=this[_0x6dbd('0x6')][_0x6dbd('0x46')](_0x6dbd('0x23'),_0x17a3e9,'accept');return this['forceDefaultExecution'](()=>_0x420c25(_0x4d0bdd,null,_0x26a280)),null;}}const _0x396fa1=this[_0x6dbd('0x6')][_0x6dbd('0x46')](_0x6dbd('0x23'),_0x17a3e9,'join');let _0x27b356=null;for(const _0x28de9c of this[_0x6dbd('0xeb')]())if(_0x28de9c[_0x6dbd('0x94')]['id']==_0x524c91['id']&&_0x28de9c[_0x6dbd('0x111')]&&_0x6dbd('0x23')==_0x28de9c['type']&&_0x28de9c[_0x6dbd('0x82')]==_0x17a3e9&&(_0x396fa1(_0x28de9c[_0x6dbd('0x92')](),_0x4d0bdd)||_0x396fa1(_0x4d0bdd,_0x28de9c[_0x6dbd('0x92')]()))){if(_0x27b356){if(_0x28de9c[_0x6dbd('0x28')]&&_0x28de9c[_0x6dbd('0x28')][_0x6dbd('0x11c')])continue;for(const _0x445ad6 of _0x28de9c[_0x6dbd('0x92')]())_0x27b356[_0x6dbd('0xd5')](_0x445ad6)||_0x27b356[_0x6dbd('0x96')](_0x445ad6);_0x28de9c[_0x6dbd('0x115')]();}else{_0x27b356=_0x28de9c;for(const _0x215a8a of _0x4d0bdd)_0x28de9c[_0x6dbd('0xd5')](_0x215a8a)||_0x28de9c[_0x6dbd('0x96')](_0x215a8a);}}if(_0x27b356)return _0x27b356;_0x44966b['clear']();for(const _0x1bed1a of _0x4d0bdd)for(const {suggestion:_0x2a2ca5,meta:_0x51b28a}of this[_0x6dbd('0xad')](_0x1bed1a,_0x6dbd('0x23')))_0x51b28a[_0x6dbd('0x128')]&&_0x44966b[_0x6dbd('0xc8')](_0x2a2ca5);for(const _0xab7df0 of _0x44966b){const _0x5bc81a=_0xab7df0[_0x6dbd('0x92')]();if(!_0x26a280||!_0x26a280[_0x6dbd('0x4')]){if(_0x4d0bdd[_0x6dbd('0xe4')](_0x315a2a=>_0x5bc81a[_0x6dbd('0x9b')](_0x3b026d=>_0x3b026d[_0x6dbd('0xb')](_0x315a2a,!0x0))))return _0xab7df0;}(!_0xab7df0[_0x6dbd('0x4c')]||!_0xab7df0['attributes']['skipNestingCheck'])&&(_0x5bc81a['every'](_0x25da98=>_0x4d0bdd[_0x6dbd('0x9b')](_0xee0e90=>_0xee0e90[_0x6dbd('0xb')](_0x25da98,!0x0)))&&_0xab7df0[_0x6dbd('0x57')]());}const _0x235d08=_0x74c359(),_0xba7327=_0x524c91['id'],_0xafee1f=_0x6dbd('0x2')+_0x17a3e9,_0x535908=this[_0x6dbd('0x4e')]({'id':_0x235d08,'type':_0xafee1f,'createdAt':new Date(),'authorId':_0xba7327,'attributes':_0x26a280});for(const _0x294787 of _0x4d0bdd)_0x294787['detach'](),_0x294787[_0x6dbd('0x5')]||_0x6dbd('0xe0')==_0x294787[_0x6dbd('0x8e')][_0x6dbd('0x3e')]||this[_0x6dbd('0x69')](_0xafee1f,_0x235d08,_0xba7327,_0x294787,_0x485403[_0x6dbd('0x65')]());return _0x535908;}[_0x6dbd('0x10f')](_0x3e0382,_0x4df996){const _0x5da1ef=_0x3e0382['getFirstMarker']();this[_0x6dbd('0xa0')][_0x6dbd('0x25')](_0xe09cd4=>{_0xe09cd4[_0x6dbd('0xc7')](_0x5da1ef,{'range':_0x4df996});});}[_0x6dbd('0x100')](_0x3de72d){const _0x34d3fe=_0x3de72d['id'],_0xc03abd=this[_0x6dbd('0xaf')][_0x6dbd('0x1f')]['get'](_0x6dbd('0xec'));this[_0x6dbd('0x126')][_0x6dbd('0x131')](_0x34d3fe)||this[_0x6dbd('0x126')][_0x6dbd('0x58')]({'channelId':_0xc03abd,'threadId':_0x34d3fe,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x22bb3a=this[_0x6dbd('0x126')][_0x6dbd('0x11a')](_0x34d3fe);_0x22bb3a['unbind']('isRemovable'),_0x22bb3a[_0x6dbd('0x89')]=!0x1,_0x3de72d[_0x6dbd('0x28')]=_0x22bb3a;}[_0x6dbd('0x63')](_0x51d1ff,_0x3690a7,_0x339d5b,_0x4abbb7){if(_0x51d1ff['type']!=_0x3690a7||_0x51d1ff['subType']!=_0x339d5b||_0x51d1ff[_0x6dbd('0xe2')]['id']!=_0x4abbb7)throw this['editor'][_0x6dbd('0x35')]('track-changes-suggestion-data-mismatch'),new _0xac50b6(_0x6dbd('0xed'),this);}[_0x6dbd('0xc4')](_0x4efea6,_0x5cb76e){const _0x341db1=_0x4efea6[_0x6dbd('0x129')]();if(_0x5cb76e[_0x6dbd('0x3b')](_0x341db1))_0x4efea6[_0x6dbd('0x115')]();else{if(_0x341db1[_0x6dbd('0xb')](_0x5cb76e)){const _0x3ad548=this[_0x6dbd('0xa0')]['createPositionAt'](_0x5cb76e[_0x6dbd('0x8b')][_0x6dbd('0x116')],_0x6dbd('0x78'));this['_setSuggestionRange'](_0x4efea6,this[_0x6dbd('0xa0')]['createRange'](_0x341db1[_0x6dbd('0x8b')],_0x3ad548));const _0x39cf06=_0x74c359(),_0x5653d6=_0x4efea6[_0x6dbd('0xe2')]['id'],_0x206c92=_0x4efea6[_0x6dbd('0x3d')]+':'+_0x4efea6[_0x6dbd('0x82')];this[_0x6dbd('0x4e')]({'id':_0x39cf06,'type':_0x206c92,'createdAt':new Date(),'authorId':_0x5653d6,'data':_0x4efea6['data'],'attributes':_0x4efea6[_0x6dbd('0x4c')]});const _0x48c640=this[_0x6dbd('0xa0')][_0x6dbd('0xbc')](_0x5cb76e[_0x6dbd('0x78')][_0x6dbd('0x62')],_0x6dbd('0x31')),_0x5a93f8=this['_model'][_0x6dbd('0xbf')](_0x48c640,_0x341db1[_0x6dbd('0x78')]);this['_addSuggestionMarker'](_0x206c92,_0x39cf06,_0x5653d6,_0x5a93f8);}else{if(_0x341db1[_0x6dbd('0x87')](_0x5cb76e[_0x6dbd('0x8b')])){const _0x3d196c=this[_0x6dbd('0xa0')][_0x6dbd('0xbc')](_0x5cb76e[_0x6dbd('0x8b')]['nodeBefore'],'end');this['_setSuggestionRange'](_0x4efea6,this['_model'][_0x6dbd('0xbf')](_0x341db1[_0x6dbd('0x8b')],_0x3d196c));}else{const _0x27a7c4=this[_0x6dbd('0xa0')][_0x6dbd('0xbc')](_0x5cb76e[_0x6dbd('0x78')][_0x6dbd('0x62')],_0x6dbd('0x31'));this['_setSuggestionRange'](_0x4efea6,this[_0x6dbd('0xa0')][_0x6dbd('0xbf')](_0x27a7c4,_0x341db1[_0x6dbd('0x78')]));}}}}['_rangeIsInLocalUserInsertion'](_0x3a2d81){for(const {suggestion:_0x55f667,meta:_0x1567ac}of this['_findSuggestions'](_0x3a2d81,_0x6dbd('0x9e'))){if(!_0x1567ac[_0x6dbd('0x128')])continue;const _0x223c37=_0x55f667[_0x6dbd('0x92')]();for(const _0x3a4e79 of _0x223c37)if(!_0x3a2d81[_0x6dbd('0x67')](_0x3a4e79)[_0x6dbd('0x11c')])return!0x0;}return!0x1;}[_0x6dbd('0x43')](_0x3b3380){const _0x209bef=this[_0x6dbd('0xaf')][_0x6dbd('0x106')][_0x6dbd('0x107')]('Users')[_0x6dbd('0x7d')](_0x3b3380);if(!_0x209bef)throw new _0xac50b6(_0x6dbd('0xef'),this);return _0x209bef;}[_0x6dbd('0xa3')](_0x17741f){const _0x4f1364=this[_0x6dbd('0xaf')]['plugins'][_0x6dbd('0x107')](_0x6dbd('0x120')),_0x4c281f=_0x237ae9(_0x6dbd('0x29')+_0x17741f),_0x14c768=_0x4f1364[_0x6dbd('0x7d')](_0x4c281f);return _0x14c768||_0x4f1364[_0x6dbd('0xcd')]({'id':_0x4c281f,'name':_0x17741f});}[_0x6dbd('0x2c')](_0x1c389b,_0x156ce2,_0x58f0c5,_0x164437,_0xbf0bd3){const _0x3fd1d6=this[_0x6dbd('0x43')](_0x164437),_0x3466a8=this[_0x6dbd('0x6')]['buildSuggestion'](_0x1c389b,_0x156ce2,_0x58f0c5,_0x3fd1d6,_0xbf0bd3,_0x56763b=>this[_0x6dbd('0x41')](_0x58f0c5,{'attributes':_0x56763b}));return this['listenTo'](_0x3466a8,_0x6dbd('0x10e'),()=>{this[_0x6dbd('0x41')](_0x58f0c5,{'state':'accepted'});},{'priority':'high'}),this[_0x6dbd('0x5d')](_0x3466a8,_0x6dbd('0x57'),()=>{this[_0x6dbd('0x41')](_0x58f0c5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions'][_0x6dbd('0x34')](_0x58f0c5,_0x3466a8),this['_suggestionState']['set'](_0x3466a8,_0x6dbd('0x4d')),_0x3466a8;}[_0x6dbd('0x74')](_0x5b2d41){const _0x4af4dc=_0x5b2d41[_0x6dbd('0x12')](':');return{'group':_0x4af4dc[0x0],'type':_0x4af4dc[0x1],'subType':_0x4af4dc[_0x6dbd('0x11c')]>=0x5?_0x4af4dc[0x2]:null,'id':_0x4af4dc[_0x6dbd('0x11c')]<0x5?_0x4af4dc[0x2]:_0x4af4dc[0x3],'authorId':_0x4af4dc[_0x6dbd('0x11c')]<0x5?_0x4af4dc[0x3]:_0x4af4dc[0x4],'markerCount':0x6==_0x4af4dc['length']?_0x4af4dc[0x5]:null};}['_breakSuggestionMarker'](_0x51ab83,_0x145271,_0x3a9028){const _0x43b79b=_0x51ab83[_0x6dbd('0x129')](),_0x592bde=_0x43b79b[_0x6dbd('0x8b')],_0xab9a6a=_0x43b79b[_0x6dbd('0x78')];this['_setSuggestionRange'](_0x51ab83,this['_model']['createRange'](_0x592bde,_0x145271));const _0x5c7179=_0x74c359(),_0x1554f8=_0x51ab83[_0x6dbd('0xe2')]['id'],_0x472970=_0x51ab83[_0x6dbd('0x3d')]+(_0x51ab83[_0x6dbd('0x82')]?':'+_0x51ab83[_0x6dbd('0x82')]:'');this[_0x6dbd('0x4e')]({'id':_0x5c7179,'type':_0x472970,'createdAt':new Date(),'authorId':_0x1554f8,'originalSuggestionId':_0x51ab83['id'],'attributes':_0x51ab83[_0x6dbd('0x4c')],'data':_0x51ab83['data']}),_0x6dbd('0x1')==_0x51ab83[_0x6dbd('0x3d')]&&(_0x3a9028=this[_0x6dbd('0xa0')][_0x6dbd('0x44')](_0x3a9028['parent'])),this[_0x6dbd('0x69')](_0x472970,_0x5c7179,_0x1554f8,this['_model'][_0x6dbd('0xbf')](_0x3a9028,_0xab9a6a));}[_0x6dbd('0xad')](_0xf9e4bb,_0x38c501=null){const _0x3fb51b=[],_0x4ad6f5=this[_0x6dbd('0xa0')]['schema'],_0x1c510c=this['editor'][_0x6dbd('0x106')][_0x6dbd('0x107')]('Users')['me'];for(const _0x2a88a9 of this[_0x6dbd('0xeb')]())if(_0x2a88a9[_0x6dbd('0x111')]&&(!_0x38c501||_0x2a88a9['type']==_0x38c501))for(const _0x3816cf of _0x2a88a9[_0x6dbd('0x92')]()){const _0xfad0e7=_0xf9e4bb['start'][_0x6dbd('0x3b')](_0x3816cf[_0x6dbd('0x78')])||_0xf9e4bb[_0x6dbd('0x78')][_0x6dbd('0x3b')](_0x3816cf[_0x6dbd('0x8b')]);if(_0xfad0e7||_0xf9e4bb[_0x6dbd('0x113')](_0x3816cf)){const _0x2849b1=_0xf9e4bb[_0x6dbd('0xb')](_0x3816cf)&&Bt(_0x4ad6f5,_0x3816cf['start'],_0xf9e4bb),_0x517941=_0x3816cf[_0x6dbd('0xb')](_0xf9e4bb)&&Bt(_0x4ad6f5,_0xf9e4bb[_0x6dbd('0x8b')],_0x3816cf);_0x3fb51b[_0x6dbd('0xd8')]({'suggestion':_0x2a88a9,'meta':{'isOwn':_0x1c510c==_0x2a88a9[_0x6dbd('0x94')],'isNextTo':_0xfad0e7,'isInsideObject':_0x2849b1,'containsRangeInObject':_0x517941}});break;}}return _0x3fb51b;}[_0x6dbd('0x69')](_0x31b345,_0x1017ef,_0x57f43f,_0x1577dc,_0x910506){this['_model']['change'](_0x575b7b=>{let _0x2fa945=_0x6dbd('0x86')+_0x31b345+':'+_0x1017ef+':'+_0x57f43f;_0x910506&&(_0x2fa945=_0x2fa945+':'+_0x910506),_0x575b7b[_0x6dbd('0xb9')](_0x2fa945,{'range':_0x1577dc,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x368c5c){const _0x15ca6d=_0x368c5c['previous'],_0x548f81=_0x368c5c[_0x6dbd('0xf2')];_0x368c5c[_0x6dbd('0xa2')]=null,null!=_0x15ca6d&&(_0x15ca6d['next']=null),_0x368c5c[_0x6dbd('0xf2')]=null,null!=_0x548f81&&(_0x548f81['previous']=null),_0x6dbd('0xd9')==this[_0x6dbd('0x80')][_0x6dbd('0x107')](_0x368c5c)&&(this[_0x6dbd('0x80')][_0x6dbd('0x34')](_0x368c5c,_0x6dbd('0xe8')),this[_0x6dbd('0x11b')](_0x6dbd('0xac'),_0x368c5c,_0x15ca6d,_0x548f81));}[_0x6dbd('0x4e')](_0x20dd5c){const _0x5c98c4=_0x20dd5c['id'],_0x221d5f=this[_0x6dbd('0xb7')](_0x20dd5c);if(this['_adapter']&&this[_0x6dbd('0x6a')][_0x6dbd('0xd1')]){const _0x576265=this[_0x6dbd('0xaf')][_0x6dbd('0x106')][_0x6dbd('0x107')]('PendingActions'),_0x519636=_0x221d5f['hasComments'],_0x2b23d0=_0x221d5f[_0x6dbd('0x82')]?_0x221d5f[_0x6dbd('0x3d')]+':'+_0x221d5f[_0x6dbd('0x82')]:_0x221d5f['type'],_0x3dbd58=this[_0x6dbd('0xaf')][_0x6dbd('0xf1')],_0x4636a=_0x576265[_0x6dbd('0xc8')](_0x257440(_0x3dbd58,'PENDING_ACTION_SUGGESTION')),_0x111c59={'id':_0x5c98c4,'type':_0x2b23d0,'hasComments':_0x519636,'data':_0x20dd5c['data']||null,'originalSuggestionId':_0x20dd5c[_0x6dbd('0x9d')]||null,'attributes':_0x221d5f[_0x6dbd('0x4c')]};this['_adapter'][_0x6dbd('0xd1')](_0x111c59)['then'](_0x757969=>{_0x221d5f[_0x6dbd('0xe1')]=!0x0,_0x576265[_0x6dbd('0x1b')](_0x4636a),_0x757969&&_0x757969['createdAt']&&(this[_0x6dbd('0x6b')][_0x6dbd('0x107')](_0x5c98c4)[_0x6dbd('0xca')]=_0x757969[_0x6dbd('0xca')]);})[_0x6dbd('0x1d')](_0x3fcd7f=>{throw _0xb35b95('error-saving-suggestion-data-suggestion-discarded'),this[_0x6dbd('0xaf')][_0x6dbd('0x10c')][_0x6dbd('0x30')]({'isUndoable':!0x1},()=>{_0x221d5f['discard']();}),_0x221d5f['stopListening'](),this['_suggestions']['delete'](_0x221d5f['id']),this[_0x6dbd('0x80')][_0x6dbd('0x8a')](_0x221d5f),_0x3fcd7f;});}return _0x221d5f;}['_updateSuggestionData'](_0x5d8773,_0x596e8e){const _0x1b95c5=this[_0x6dbd('0xaf')][_0x6dbd('0x106')]['get'](_0x6dbd('0x5f')),_0x47fe5c=this['getSuggestion'](_0x5d8773);if(this[_0x6dbd('0x6a')]&&this[_0x6dbd('0x6a')][_0x6dbd('0x9a')]){if(_0x47fe5c[_0x6dbd('0xe1')]){const _0x5cefaf=_0x1b95c5[_0x6dbd('0xc8')](_0x257440(this[_0x6dbd('0xaf')][_0x6dbd('0xf1')],_0x6dbd('0x95')));this[_0x6dbd('0x6a')][_0x6dbd('0x9a')](_0x5d8773,_0x596e8e)[_0x6dbd('0x75')](()=>{_0x1b95c5['remove'](_0x5cefaf);});}else _0x47fe5c['on'](_0x6dbd('0x12d'),()=>{this[_0x6dbd('0x41')](_0x5d8773,_0x596e8e);});}}[_0x6dbd('0xc9')](_0x56dfe5){if(!this[_0x6dbd('0x6a')]||!this[_0x6dbd('0x6a')]['getSuggestion'])throw new _0xac50b6(_0x6dbd('0xd4'),this);return this[_0x6dbd('0x6a')][_0x6dbd('0xbd')](_0x56dfe5);}['_handleNewSuggestionMarker'](_0x2d6439){const {id:_0x4aba4d,type:_0x385649,subType:_0x18e6a5,authorId:_0x158167}=this[_0x6dbd('0x74')](_0x2d6439),_0x567d11=this[_0x6dbd('0x6b')][_0x6dbd('0x107')](_0x4aba4d)||this[_0x6dbd('0x2c')](_0x385649,_0x18e6a5,_0x4aba4d,_0x158167,{});switch(this['_checkSuggestionCorrectness'](_0x567d11,_0x385649,_0x18e6a5,_0x158167),this[_0x6dbd('0x80')][_0x6dbd('0x107')](_0x567d11)){case _0x6dbd('0x4d'):this[_0x6dbd('0xc9')](_0x4aba4d)[_0x6dbd('0x75')](_0x2263e5=>{let _0x9ead7c=Promise['resolve']();_0x2263e5[_0x6dbd('0x9')]&&(_0x9ead7c=this[_0x6dbd('0x126')]['fetchCommentThread']({'channelId':this[_0x6dbd('0xaf')][_0x6dbd('0x1f')][_0x6dbd('0x107')](_0x6dbd('0xec')),'threadId':_0x4aba4d})),_0x9ead7c[_0x6dbd('0x75')](()=>{this[_0x6dbd('0xb7')](_0x2263e5)[_0x6dbd('0xe1')]=!0x0;});}),this['_suggestionState']['set'](_0x567d11,_0x6dbd('0x77'));break;case _0x6dbd('0xe8'):this['_updateSuggestionData'](_0x4aba4d,{'state':'open'});case'dataReady':this[_0x6dbd('0x80')][_0x6dbd('0x34')](_0x567d11,_0x6dbd('0xd9')),this['fire'](_0x6dbd('0x1a'),_0x567d11);break;case _0x6dbd('0xd9'):this['fire'](_0x6dbd('0xb4'),_0x567d11);}return _0x567d11[_0x6dbd('0x71')](_0x2d6439),_0x567d11;}[_0x6dbd('0x24')](_0x2b3e61){const _0x27c5ae=Array['from'](_0x2b3e61)['filter'](_0x28d93a=>!_0x28d93a[_0x6dbd('0x4b')]),_0x48678f=this[_0x6dbd('0xeb')]({'skipNotAttached':!0x0})[_0x6dbd('0x13')](_0x2d9361=>!_0x2d9361[_0x6dbd('0x4b')]),_0x3a59a4=_0x48678f[_0x6dbd('0x13')](_0x35f20c=>!_0x2b3e61[_0x6dbd('0x7')](_0x35f20c)),_0x81ea6e=new Map(_0x48678f[_0x6dbd('0xa')](_0x2238c1=>[_0x2238c1,this[_0x6dbd('0x6')][_0x6dbd('0x46')](_0x2238c1[_0x6dbd('0x3d')],_0x2238c1[_0x6dbd('0x82')],_0x6dbd('0xe3'))])),_0x345e3d=new Map(_0x48678f[_0x6dbd('0xa')](_0xd18b58=>[_0xd18b58,_0xd18b58[_0x6dbd('0x129')]()])),_0x4289fd=new Set(),_0x50661d=new Set();for(let _0x24d6ec=0x0;_0x24d6ec<_0x27c5ae[_0x6dbd('0x11c')];_0x24d6ec++)_0x2f986f(_0x27c5ae[_0x24d6ec],_0x27c5ae,_0x24d6ec+0x1);for(let _0x36f36b=0x0;_0x36f36b<_0x27c5ae[_0x6dbd('0x11c')];_0x36f36b++)_0x2f986f(_0x27c5ae[_0x36f36b],_0x3a59a4,0x0);for(let _0x560a96=0x0;_0x560a96<_0x27c5ae[_0x6dbd('0x11c')];_0x560a96++){const _0x4b94f0=_0x27c5ae[_0x560a96];!_0x50661d[_0x6dbd('0x7')](_0x4b94f0)&&_0x4b94f0[_0x6dbd('0xa2')]&&(_0x4b94f0[_0x6dbd('0xa2')][_0x6dbd('0xf2')]===_0x4b94f0&&(_0x4b94f0['previous'][_0x6dbd('0xf2')]=null),_0x4b94f0[_0x6dbd('0xa2')]=null),!_0x4289fd['has'](_0x4b94f0)&&_0x4b94f0['next']&&(_0x4b94f0[_0x6dbd('0xf2')][_0x6dbd('0xa2')]===_0x4b94f0&&(_0x4b94f0[_0x6dbd('0xf2')][_0x6dbd('0xa2')]=null),_0x4b94f0[_0x6dbd('0xf2')]=null);}function _0x2f986f(_0x159422,_0x3802e8,_0x1b381e){for(let _0x32f205=_0x1b381e;_0x32f205<_0x3802e8[_0x6dbd('0x11c')];_0x32f205++){const _0x4610df=_0xedc155(_0x159422,_0x3802e8[_0x32f205]);_0x4610df&&(_0x4610df[0x0][_0x6dbd('0xf2')]=_0x4610df[0x1],_0x4610df[0x1][_0x6dbd('0xa2')]=_0x4610df[0x0],_0x4289fd[_0x6dbd('0xc8')](_0x4610df[0x0]),_0x50661d[_0x6dbd('0xc8')](_0x4610df[0x1]));}}function _0xedc155(_0x4529ec,_0x4a8913){if(_0x4529ec[_0x6dbd('0x94')]['id']!==_0x4a8913[_0x6dbd('0x94')]['id'])return null;const _0x4deecb=_0x81ea6e[_0x6dbd('0x107')](_0x4529ec)(_0x4529ec,_0x4a8913,_0x345e3d[_0x6dbd('0x107')](_0x4529ec),_0x345e3d[_0x6dbd('0x107')](_0x4a8913));if(!_0x4deecb)return null;return _0x81ea6e[_0x6dbd('0x107')](_0x4a8913)(_0x4529ec,_0x4a8913,_0x345e3d[_0x6dbd('0x107')](_0x4529ec),_0x345e3d[_0x6dbd('0x107')](_0x4a8913))?_0x4deecb[0x1][_0x6dbd('0x28')]&&_0x4deecb[0x1][_0x6dbd('0x28')][_0x6dbd('0x11c')]?null:_0x4deecb:null;}}['_joinWithAdjacentSuggestions'](_0x2cc4f8){const _0x2fcf0d=Array[_0x6dbd('0x135')](_0x2cc4f8),_0x36c184=this[_0x6dbd('0xeb')]({'skipNotAttached':!0x0}),_0x36f1ad=_0x36c184['filter'](_0x19f411=>!_0x2cc4f8[_0x6dbd('0x7')](_0x19f411)),_0x2178a3=new Map(_0x2fcf0d['map'](_0x308121=>[_0x308121,this[_0x6dbd('0x6')]['getSuggestionCallback'](_0x308121[_0x6dbd('0x3d')],_0x308121[_0x6dbd('0x82')],_0x6dbd('0x51'))])),_0x3f0462=new Map(_0x36c184['map'](_0x40be27=>[_0x40be27,_0x40be27[_0x6dbd('0x92')]()]));for(let _0xebd961=0x0;_0xebd961<_0x2fcf0d[_0x6dbd('0x11c')];_0xebd961++){if(_0x50ed30(this,_0x2fcf0d[_0xebd961],_0x2fcf0d,_0xebd961+0x1))return!0x0;}for(let _0x50b15b=0x0;_0x50b15b<_0x2fcf0d[_0x6dbd('0x11c')];_0x50b15b++){if(_0x50ed30(this,_0x2fcf0d[_0x50b15b],_0x36f1ad,0x0))return!0x0;}return!0x1;function _0x50ed30(_0x55982e,_0xbe38d0,_0x12e1d2,_0xe805db){for(let _0x5f4098=_0xe805db;_0x5f4098<_0x12e1d2['length'];_0x5f4098++){const _0x178a3b=_0x12e1d2[_0x5f4098];if(_0x178a3b['type']!==_0xbe38d0[_0x6dbd('0x3d')]||_0x178a3b[_0x6dbd('0x94')]['id']!==_0xbe38d0[_0x6dbd('0x94')]['id']||_0x178a3b[_0x6dbd('0x82')]!==_0xbe38d0['subType'])continue;const _0x351193=_0x2178a3[_0x6dbd('0x107')](_0xbe38d0),_0x48c46d=_0x3f0462[_0x6dbd('0x107')](_0xbe38d0),_0x204dc5=_0x3f0462[_0x6dbd('0x107')](_0x178a3b),_0x111d90=_0xbe38d0[_0x6dbd('0x28')]&&_0xbe38d0[_0x6dbd('0x28')]['length'],_0x33503c=_0x178a3b[_0x6dbd('0x28')]&&_0x178a3b[_0x6dbd('0x28')][_0x6dbd('0x11c')];if(!_0x111d90&&_0x351193(_0x204dc5,_0x48c46d))return _0x55982e[_0x6dbd('0xc0')](_0x178a3b,_0xbe38d0),_0x3f0462[_0x6dbd('0x8a')](_0xbe38d0),!0x0;if(!_0x33503c&&_0x351193(_0x48c46d,_0x204dc5))return _0x55982e[_0x6dbd('0xc0')](_0xbe38d0,_0x178a3b),_0x3f0462['delete'](_0x178a3b),!0x0;}return!0x1;}}[_0x6dbd('0xc0')](_0x13252b,_0x19da72){if(_0x13252b['isMultiRange'])for(const _0xde06e of _0x19da72[_0x6dbd('0x92')]())_0x13252b[_0x6dbd('0x96')](_0xde06e);else{const _0x3a51f9=_0x19da72[_0x6dbd('0x129')]()[_0x6dbd('0x78')];this['_setSuggestionRange'](_0x13252b,this['_model'][_0x6dbd('0xbf')](_0x13252b[_0x6dbd('0x129')]()[_0x6dbd('0x8b')],_0x3a51f9));}_0x19da72[_0x6dbd('0x115')]();}}class Dt{constructor(_0x410d78){this[_0x6dbd('0x14')]=_0x410d78,this[_0x6dbd('0xa0')]=_0x410d78[_0x6dbd('0x10c')],this[_0x6dbd('0xa4')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x6dbd('0xfe')]();}[_0x6dbd('0x48')](_0x3a8548,_0x2c0b25,_0x41917a,_0x4bccb8,_0xb2e0f3,_0x4d427c){return new _0x485403(this[_0x6dbd('0xa0')],{'type':_0x3a8548,'subType':_0x2c0b25,'id':_0x41917a,'author':_0x4bccb8,'creator':_0x4bccb8,'attributes':_0xb2e0f3,'onAttributesChange':_0x4d427c,'onAccept':(..._0x46a87d)=>this[_0x6dbd('0x46')](_0x3a8548,_0x2c0b25,_0x6dbd('0x10e'))(..._0x46a87d),'onDiscard':(..._0xd1d588)=>this['getSuggestionCallback'](_0x3a8548,_0x2c0b25,'discard')(..._0xd1d588)});}['registerCustomCallback'](_0x50f521,_0x2cd12f,_0x1e4198,_0x32ac7f){const _0x689727=_0x50f521+':'+_0x2cd12f+':'+_0x1e4198;this[_0x6dbd('0xa4')][_0x6dbd('0x34')](_0x689727,_0x32ac7f);}[_0x6dbd('0x46')](_0x32a0b5,_0x27e765,_0x5c1d93){const _0x36bdf2=_0x32a0b5+':'+_0x27e765+':'+_0x5c1d93;return this[_0x6dbd('0xa4')][_0x6dbd('0x107')](_0x36bdf2)||this[_0x6dbd('0x88')][_0x6dbd('0x107')](_0x32a0b5+':'+_0x5c1d93);}[_0x6dbd('0xfe')](){const _0x44b0f6=()=>{},_0x3b3c4e=_0x44577f=>{_0x44577f['sort']((_0x4a2cff,_0x437136)=>_0x4a2cff[_0x6dbd('0x8b')]['isBefore'](_0x437136[_0x6dbd('0x8b')])?0x1:-0x1),this[_0x6dbd('0xa0')][_0x6dbd('0x25')](_0x4f8664=>{for(const _0x10af78 of _0x44577f){let _0x43bb88;_0x43bb88=_0x10af78[_0x6dbd('0x78')][_0x6dbd('0x19')]&&_0x10af78[_0x6dbd('0x78')][_0x6dbd('0x62')]==_0x10af78[_0x6dbd('0x8b')][_0x6dbd('0x55')]?_0x4f8664['createSelection'](_0x10af78['start']['nodeAfter'],'on'):_0x4f8664[_0x6dbd('0x60')](_0x10af78),this[_0x6dbd('0xa0')][_0x6dbd('0xce')](_0x43bb88,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x15a549=(_0x13eef0,_0x21044c)=>{this[_0x6dbd('0xa0')]['change'](_0x193d9f=>{const {commandName:_0x5d529c,commandParams:_0x69e77e=[]}=_0x21044c,_0x412a23=_0x13eef0['map'](_0x561159=>(_t(_0x561159)&&(_0x561159=this['_model'][_0x6dbd('0xbf')](_0x561159[_0x6dbd('0x78')])),_0x561159))[_0x6dbd('0x13')](_0x3d0161=>_0x6dbd('0xe0')!==_0x3d0161['root']['rootName']);if(_0x412a23[_0x6dbd('0x11c')]<0x1)return;const _0x4029ca=Array[_0x6dbd('0x135')](this[_0x6dbd('0xa0')][_0x6dbd('0x5c')][_0x6dbd('0xf3')][_0x6dbd('0x92')]())['map'](_0x3ee409=>_0x3adeaa['fromRange'](_0x3ee409));_0x193d9f[_0x6dbd('0x2a')](_0x412a23);for(const _0x52d7ac of this['_editor']['commands'][_0x6dbd('0x2e')]())_0x52d7ac[_0x6dbd('0x76')]();_0x69e77e[_0x6dbd('0xd8')]({'forceDefaultExecution':!0x0}),this[_0x6dbd('0x14')][_0x6dbd('0x27')](_0x5d529c,..._0x69e77e);const _0xc55940=_0x4029ca['filter'](_0x22cd34=>'$graveyard'!=_0x22cd34[_0x6dbd('0x8e')]['rootName']);_0xc55940['length']>0x0&&_0x193d9f['setSelection'](_0xc55940);for(const _0x1d4308 of _0x4029ca)_0x1d4308[_0x6dbd('0x72')]();});},_0x4db492=(_0x5846bb,_0x589897)=>0x1==_0x5846bb[_0x6dbd('0x11c')]&&0x1==_0x589897[_0x6dbd('0x11c')]&&_0x5846bb[0x0]['end'][_0x6dbd('0x3b')](_0x589897[0x0][_0x6dbd('0x8b')]),_0x4fc4a8=(_0x5e9255,_0x56619a,_0x50be66,_0x154d60)=>xt(_0x5e9255,_0x56619a,_0x50be66,_0x154d60,this[_0x6dbd('0xa0')])?[_0x5e9255,_0x56619a]:xt(_0x56619a,_0x5e9255,_0x154d60,_0x50be66,this[_0x6dbd('0xa0')])?[_0x56619a,_0x5e9255]:null;this[_0x6dbd('0x88')][_0x6dbd('0x34')](_0x6dbd('0x127'),_0x44b0f6),this[_0x6dbd('0x88')][_0x6dbd('0x34')](_0x6dbd('0x66'),_0x3b3c4e),this[_0x6dbd('0x88')][_0x6dbd('0x34')](_0x6dbd('0xae'),_0x4db492),this[_0x6dbd('0x88')]['set'](_0x6dbd('0x8d'),_0x4fc4a8),this['_defaultCallbacks'][_0x6dbd('0x34')]('deletion:accept',_0x3b3c4e),this[_0x6dbd('0x88')][_0x6dbd('0x34')](_0x6dbd('0xd2'),_0x44b0f6),this['_defaultCallbacks'][_0x6dbd('0x34')]('deletion:join',_0x4db492),this[_0x6dbd('0x88')][_0x6dbd('0x34')](_0x6dbd('0x8'),_0x4fc4a8),this[_0x6dbd('0x88')][_0x6dbd('0x34')](_0x6dbd('0x11'),_0x15a549),this[_0x6dbd('0x88')][_0x6dbd('0x34')](_0x6dbd('0x5e'),_0x44b0f6),this['_defaultCallbacks']['set'](_0x6dbd('0x125'),_0x4db492),this[_0x6dbd('0x88')]['set']('formatInline:chain',_0x44b0f6),this[_0x6dbd('0x88')][_0x6dbd('0x34')](_0x6dbd('0xcc'),_0x15a549),this[_0x6dbd('0x88')]['set'](_0x6dbd('0x133'),_0x44b0f6),this[_0x6dbd('0x88')][_0x6dbd('0x34')]('formatBlock:join',_0x4db492),this['_defaultCallbacks']['set']('formatBlock:chain',_0x44b0f6);}}function Bt(_0x26f99d,_0x5d7b2f,_0x19e270){for(const _0x5c76f2 of _0x5d7b2f['parent'][_0x6dbd('0x47')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5c76f2[_0x6dbd('0x8e')]==_0x5c76f2)return!0x1;if(!_0x19e270[_0x6dbd('0x33')](_0x5c76f2))return!0x1;if(_0x26f99d[_0x6dbd('0x36')](_0x5c76f2)||_0x26f99d[_0x6dbd('0xdb')](_0x5c76f2))return!0x0;}return!0x1;}function _t(_0x300d9c){return _0x300d9c[_0x6dbd('0x78')]['parent']==_0x300d9c['start']['nodeAfter']&&_0x300d9c['end']['isAtStart'];}function Mt(_0x413045,_0x4cc1d4,_0x3e755f,_0x1e735c){const _0x5560c6=_0x4db4bd=>!_0x4db4bd[_0x6dbd('0xc1')]['is']('$textProxy')&&!_0x1e735c[_0x6dbd('0x36')](_0x4db4bd[_0x6dbd('0xc1')]),_0xe700f1=_0x413045[_0x6dbd('0x8b')][_0x6dbd('0x132')](_0x5560c6),_0x5c8784=_0x413045[_0x6dbd('0x78')][_0x6dbd('0x132')](_0x5560c6,{'direction':_0x6dbd('0x134')});return(!_0x413045[_0x6dbd('0x8b')]['isEqual'](_0xe700f1)||!_0x413045[_0x6dbd('0x78')][_0x6dbd('0x3b')](_0x5c8784))&&(_0xe700f1[_0x6dbd('0x32')](_0x5c8784)?_0x3e755f[_0x6dbd('0xc7')](_0x4cc1d4,{'range':_0x3e755f[_0x6dbd('0xbf')](_0xe700f1,_0x5c8784)}):_0x3e755f[_0x6dbd('0x2f')](_0x4cc1d4),!0x0);}function $t(_0x235d5a){return _0x237ae9(_0x235d5a);}function Nt(_0x329168){const _0x33afff=_0x329168[_0x6dbd('0x8b')][_0x6dbd('0x55')];return _0x33afff&&_0x33afff['is'](_0x6dbd('0x83'));}function Rt(_0x1a6d7c,_0x4d2959){const _0x536353=_0x4d2959[_0x6dbd('0x12e')]['isObject'](_0x1a6d7c)||_0x4d2959['schema']['isSelectable'](_0x1a6d7c);return _0x4d2959[_0x6dbd('0xbf')](_0x4d2959['createPositionAt'](_0x1a6d7c,'before'),_0x536353?_0x4d2959[_0x6dbd('0x124')](_0x1a6d7c):_0x4d2959['createPositionAt'](_0x1a6d7c,_0x6dbd('0x78')));}function xt(_0x2fc695,_0x3cf015,_0x3e001d,_0x19c80c,_0x1e6437){if(_0x3e001d['end'][_0x6dbd('0x3b')](_0x19c80c[_0x6dbd('0x8b')]))return!0x0;if(_0x2fc695[_0x6dbd('0x3d')]!=_0x3cf015[_0x6dbd('0x3d')])return!0x1;if(!_0x3e001d[_0x6dbd('0x78')]['isTouching'](_0x19c80c['start']))return!0x1;const _0x505b1a=_0x1e6437[_0x6dbd('0xbf')](_0x3e001d[_0x6dbd('0x78')],_0x19c80c[_0x6dbd('0x8b')])[_0x6dbd('0x10a')]();for(const _0xf410d2 of _0x505b1a)if(['elementStart',_0x6dbd('0xfa')][_0x6dbd('0xcf')](_0xf410d2[_0x6dbd('0x3d')])&&_0x1e6437[_0x6dbd('0x12e')][_0x6dbd('0xdb')](_0xf410d2[_0x6dbd('0xc1')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x58bf=['_joinWithAdjacentSuggestions','formatInline','selection','catch','dataReady','markerToData','CommentsRepository','toJSON','_getSuggestionData','addSuggestionData','resolve','toViewElement','clear','isSelectable','_suggestionState','_saved','suggestion-type','removeMarker','formatInline:join','targetPosition','size','oldRange','requires','getNearestSelectionRange','default','registerCustomCallback','consumable','multipleBlocks','getMultiRangeId','formatInline:discard','isExternal','getRanges','getUser','addMarkerName','trackChanges','isTouching','head','map','getSuggestionCallback','model','addMarker:suggestion','suggestionChanged','deleteContent','discardSuggestion','add','data','authorName','_addThreadToSuggestion','track-changes-adapter-already-set','createElement','isEqual','addHighlight','_joinSuggestions','document','fromRange','deletion:','_suggestions','consume','createRange','get','formatBlock:','locale','range','trackChanges.trackFormatChanges','getCustomProperty','conversion','forceDefaultExecution','addSuggestion','_defaultCallbacks','length','_handleNewSuggestionMarker','dataToMarker','removed','author','ck-suggestion-marker-','insertion','stopListening','PENDING_ACTION_SUGGESTION','before','track-changes-command-not-found','execute','getLastMatchingPosition','isLocal','_findSuggestions','documentSelection','commandName','_addSuggestionMarker','addCommentThread','backward','isBefore','formatBlock','filter','removeAttribute','listenTo','getChanges','isInContent','external:','getFirstRange','enableCommand','rootName','_model','set','isRemovable','getFirstMarker','join','group','hasComments','options','editingDowncast','containsRangeInObject','editor','setTo','activeMarkers','values','isNextTo','deletion:chain','TrackChangesEditing','getAllAdjacentSuggestions','stop','_updateSuggestionData','getCommentThread','batch','_trackFormatChanges','getAttribute','track-changes-suggestion-data-mismatch','suggestion','addRange','normal','isMultiRange','_adapter','has','change','trackChanges.mergeNestedSuggestions','getRange','insertion:','getMarkers','getSuggestions','isInsideObject','value','dataDowncast','containsPosition','never','getIntersection','discardAllSuggestions','push','low','config','isOwn','ck-suggestion-marker','suggestionUnloaded','type','createSelection','addMarker','_breakSuggestionMarker','markInlineFormat','getAncestors','createPositionBefore','updateSuggestion','collaboration.channelId','$graveyard','start','commands','chain','includes','delete','_getExternalAuthor','move','attributes','rethrowUnexpectedError','ck-suggestion-marker-formatBlock','accept','_enabledCommands','skipNestingCheck','high','splitPosition','markers','isAtEnd','_splitMarkerName','parent','deletion:join','markerToHighlight','insertion:chain','hasSuggestion','always','isDocumentOperation','elementEnd','formatInline:','element','authoredAt','acceptSuggestion','position','lowest','insert','data-suggestion','_editor','writer','addMarker:suggestion:formatBlock','nodeAfter','ck-suggestion-marker--active','buildSuggestion','removeClass','_mergeNestedSuggestions','isCollapsed','then','ready','item','insertion:discard','removeMarkers','subType','accepted','removeComment','_refreshSuggestionsChain','split','next','getWalker','bindElementToMarker','Users','substr','for','acceptSelectedSuggestions','_getAuthorFromId','change:data','containsRange','createPositionAfter','suggestionLoaded','_cutOutSuggestionMarker','_checkSuggestionCorrectness','_isForcedDefaultExecutionBlock','multi','addComment','elementStart','_suggestionFactory','highest','addClass','fire','root','reconvertMarker','_descriptionFactory','_rangeIsInLocalUserInsertion','commentThread','schema','every','upcast','@external','return','update:suggestion','adapter','showSuggestionHighlights','createRangeIn','registerPostFixer','isAfter','name','isIntersectingWithRange','_removeSuggestion','creator','mapper','markInsertion','howMany','PendingActions','differ','getItems','_createSuggestion','deletion','_setSuggestionRange','nodeBefore','containsItem','fromCharCode','notReady','isAtStart','discardSelectedSuggestions','change:activeMarkers','markerReady','from','createPositionAt','insertion:accept','widget','previous','remove','_commentsRepository','enqueueChange','unbindElementFromMarkerName','suggestion:','sort','_setSuggestionData','some','formatGroupId','track-changes-user-not-found','getDifference','refresh','containerElement','isObject','detach','end','track-changes-adapter-missing-getsuggestion','deletion:discard','newRange','plugins','getShiftedBy','$marker','updateMarker','splice','setSelection','trackChangesCommand','discard','getSuggestion','isLimit','after','markerName','change:_saved','insertContent','_registerDefaultCallbacks','moveTargetPosition','acceptAllSuggestions','createdAt','_customCallbacks','markMultiRangeInsertion'];(function(_0x8197a2,_0x58bf75){const _0xcedb4e=function(_0xdffd08){while(--_0xdffd08){_0x8197a2['push'](_0x8197a2['shift']());}};_0xcedb4e(++_0x58bf75);}(_0x58bf,0x86));const _0xcedb=function(_0x8197a2,_0x58bf75){_0x8197a2=_0x8197a2-0x0;let _0xcedb4e=_0x58bf[_0x8197a2];return _0xcedb4e;};import{Plugin as _0x382cc3,PendingActions as _0x46aead}from'ckeditor5/src/core';import{LiveRange as _0x5261dd}from'ckeditor5/src/engine';import{CKEditorError as _0x47ae60,uid as _0xa49531,priorities as _0xc6cb6d,logWarning as _0x1900c0}from'ckeditor5/src/utils';import{toWidget as _0x311991}from'ckeditor5/src/widget';import{Users as _0x46108b,hashObject as _0x353f62}from'ckeditor5-collaboration/src/collaboration-core';import _0x8863ac from'./commands/trackchangescommand';import _0x1bfab0 from'./commands/acceptsuggestioncommand';import _0x3fc170 from'./commands/discardsuggestioncommand';import _0x1f8af6 from'./commands/executeonallsuggestionscommand';import _0xd9b9e6 from'./commands/executeonselectedsuggestionscommand';import _0x58c80b from'./suggestion';import _0x4e1a67 from'./suggestiondescriptionfactory';import _0x53ea55 from'./integrations/alignment';import _0x388eea from'./integrations/basicstyles';import _0x463cb3 from'./integrations/blockquote';import _0x3d9841 from'./integrations/ckbox';import _0x451400 from'./integrations/codeblock';import _0x28f376 from'./integrations/comments';import _0x1467d2 from'./integrations/deletecommand';import _0x506980 from'./integrations/documentlist';import _0xc6fe64 from'./integrations/entercommand';import _0x4e0438 from'./integrations/findandreplace';import _0x392e26 from'./integrations/font';import _0x3229a7 from'./integrations/formatpainter';import _0x5ce64e from'./integrations/heading';import _0x3e4ab0 from'./integrations/highlight';import _0xf6dac from'./integrations/horizontalline';import _0x4bbc93 from'./integrations/htmlembed';import _0x1f36ed from'./integrations/image';import _0xa1f734 from'./integrations/imagereplace';import _0xc34074 from'./integrations/importword';import _0x1402c5 from'./integrations/indent';import _0x101a88 from'./integrations/inputcommand';import _0x108521 from'./integrations/link';import _0x599133 from'./integrations/list';import _0x505951 from'./integrations/listproperties';import _0x2cc813 from'./integrations/mediaembed';import _0x33227a from'./integrations/mention';import _0xe830f5 from'./integrations/pagebreak';import _0x14795c from'./integrations/paragraph';import _0x391e27 from'./integrations/removeformat';import _0x4e4d27 from'./integrations/restrictededitingmode';import _0x1b9165 from'./integrations/shiftentercommand';import _0x3d4488 from'./integrations/standardeditingmode';import _0xa46c80 from'./integrations/style';import _0x3b1e29 from'./integrations/table';import _0x7a59f from'./integrations/tablemergesplit';import _0x4f6e0f from'./integrations/tableheadings';import _0x418cf5 from'./integrations/tableclipboard';import _0x5743e1 from'./integrations/tablecolumnresize';import _0x439a04 from'./integrations/template';import _0x21a467 from'./integrations/tableofcontents';import _0x320f8e from'./integrations/title';import _0x268428 from'./integrations/undo';import{getTranslation as _0x1365f6}from'./utils/common-translations';import _0x1ca64c from'./integrations/tablecaption';import _0x42c4df from'./integrations/documentlistproperties';import _0x567b80 from'./integrations/tableproperties';export default class p extends _0x382cc3{static get[_0xcedb('0xcc')](){return['CommentsRepository',_0x46108b,_0x46aead,_0x53ea55,_0x388eea,_0x463cb3,_0x3d9841,_0x451400,_0x28f376,_0x1467d2,_0x506980,_0x42c4df,_0xc6fe64,_0x4e0438,_0x392e26,_0x3229a7,_0x5ce64e,_0x3e4ab0,_0xf6dac,_0x4bbc93,_0x1f36ed,_0xa1f734,_0xc34074,_0x1402c5,_0x101a88,_0x108521,_0x599133,_0x505951,_0x2cc813,_0x33227a,_0xe830f5,_0x14795c,_0x391e27,_0x4e4d27,_0x1b9165,_0x3d4488,_0xa46c80,_0x3b1e29,_0x7a59f,_0x4f6e0f,_0x1ca64c,_0x418cf5,_0x5743e1,_0x21a467,_0x567b80,_0x439a04,_0x320f8e,_0x268428];}static get['pluginName'](){return _0xcedb('0x12a');}constructor(_0x52d609){function _0x37cac4(_0x1b3250){return _0x1b3250[_0xcedb('0xdb')](_0x3313d1=>String[_0xcedb('0x84')](_0x3313d1))[_0xcedb('0x11e')]('');}super(_0x52d609),this[_0xcedb('0x11b')](_0xcedb('0x126'),[]),this['on'](_0xcedb('0x88'),(_0x57f982,_0x37d38e,_0x25bfc8,_0xe3e402)=>{this['_model'][_0xcedb('0x139')](()=>{for(const _0x104ba9 of[..._0xe3e402,..._0x25bfc8])this[_0xcedb('0x11a')][_0xcedb('0x29')][_0xcedb('0x138')](_0x104ba9)&&_0x52d609['editing'][_0xcedb('0x66')](_0x104ba9);});}),this[_0xcedb('0x67')]=new _0x4e1a67(this[_0xcedb('0x124')]['model']['schema'],this[_0xcedb('0x124')]['locale']),this['_adapter']=null,this[_0xcedb('0x61')]=new Dt(this[_0xcedb('0x124')]),this['_suggestions']=new Map(),this[_0xcedb('0x90')]=_0x52d609['plugins'][_0xcedb('0xf1')](_0xcedb('0xbc')),this[_0xcedb('0x25')]=new Set(),this[_0xcedb('0x11a')]=this[_0xcedb('0x124')][_0xcedb('0xdd')],this['_suggestionState']=new WeakMap(),this[_0xcedb('0x5d')]=!0x1,_0x52d609[_0xcedb('0xc')]['define'](_0xcedb('0xf5'),_0xcedb('0xce')),this[_0xcedb('0x130')]=_0x52d609[_0xcedb('0xc')][_0xcedb('0xf1')](_0xcedb('0xf5')),_0x52d609[_0xcedb('0xc')]['define'](_0xcedb('0x13a'),!0x0),this[_0xcedb('0x43')]=_0x52d609['config'][_0xcedb('0xf1')]('trackChanges.mergeNestedSuggestions'),this[_0xcedb('0xa8')]=new _0x8863ac(_0x52d609,this['_enabledCommands']),this[_0x37cac4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x37cac4([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x34]);}['init'](){const _0x45082b=this['editor'];_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x122'))[_0xcedb('0x2e')]({'model':_0xcedb('0x133'),'view':_0xec7efd=>{const {id:_0x172d75,type:_0x4157b3}=this['_splitMarkerName'](_0xec7efd[_0xcedb('0xad')]),_0x32f91a=[_0xcedb('0xe'),_0xcedb('0x100')+_0x4157b3];let _0x5c7aed=0xbb8;return this[_0xcedb('0x126')][_0xcedb('0x1d')](_0xec7efd['markerName'])&&(_0x32f91a[_0xcedb('0xa')]('ck-suggestion-marker--active'),_0x5c7aed=0xbc2),_0xcedb('0x80')==_0x4157b3&&(_0x5c7aed+=0x5),{'classes':_0x32f91a,'attributes':{'data-suggestion':_0x172d75},'priority':_0x5c7aed};}}),_0x45082b[_0xcedb('0xf7')][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0xe2')](_0x27c66f=>{_0x27c66f['on'](_0xcedb('0xde'),(_0x5986a6,_0x58ec56,_0x362e00)=>{if(!_0x362e00['options'][_0xcedb('0x71')])return;const _0x35f102=_0x58ec56[_0xcedb('0x47')];if(!_0x35f102)return;const _0x52b363=_0x362e00[_0xcedb('0x79')][_0xcedb('0xc1')](_0x35f102);_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')][_0xcedb('0x9c')](_0x35f102)&&_0x52b363&&!_0x52b363['getCustomProperty'](_0xcedb('0x8d'))&&_0x52b363['is'](_0xcedb('0x9b'))&&_0x311991(_0x52b363,_0x362e00['writer']);},{'priority':_0xcedb('0x27')});}),_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0x2e')]({'model':_0xcedb('0x133'),'view':(_0x18966b,_0x3966fb)=>{if(!_0x3966fb[_0xcedb('0x121')]['showSuggestionHighlights'])return null;const {type:_0x33ccef}=this[_0xcedb('0x2b')](_0x18966b['markerName']);return{'classes':[_0xcedb('0xe'),'ck-suggestion-marker-'+_0x33ccef],'priority':0xbb8};}});const _0x43738b=({showActiveMarkers:_0x168bc5=!0x0}={})=>(_0x278ab9,_0x2b9472,_0x99b9cc)=>{if(!_0x2b9472['item'])return;if(_0x2b9472[_0xcedb('0x47')]['is'](_0xcedb('0xb8')))return void _0x99b9cc[_0xcedb('0xd0')]['consume'](_0x2b9472[_0xcedb('0x47')],_0x278ab9[_0xcedb('0x75')]);const _0x4defdc=_0x99b9cc[_0xcedb('0x79')][_0xcedb('0xc1')](_0x2b9472[_0xcedb('0x47')]);if(!(_0x2b9472['item']['is'](_0xcedb('0x35'))&&_0x45082b['model'][_0xcedb('0x6a')]['isBlock'](_0x2b9472[_0xcedb('0x47')])&&!_0x4defdc[_0xcedb('0xf6')](_0xcedb('0xe9'))))return;const {id:_0x30fd8e}=this[_0xcedb('0x2b')](_0x2b9472['markerName']);_0x99b9cc[_0xcedb('0x3d')][_0xcedb('0x63')]([_0xcedb('0xe'),_0xcedb('0x23')],_0x4defdc),_0x99b9cc['writer']['setAttribute'](_0xcedb('0x3b'),_0x30fd8e,_0x4defdc),_0x99b9cc[_0xcedb('0x79')][_0xcedb('0x51')](_0x4defdc,_0x2b9472['markerName']),_0x168bc5&&(this[_0xcedb('0x126')][_0xcedb('0x1d')](_0x2b9472[_0xcedb('0xad')])?_0x99b9cc[_0xcedb('0x3d')][_0xcedb('0x63')](_0xcedb('0x40'),_0x4defdc):_0x99b9cc['writer'][_0xcedb('0x42')](_0xcedb('0x40'),_0x4defdc));for(const _0x96efb4 of _0x45082b['model'][_0xcedb('0x72')](_0x2b9472[_0xcedb('0x47')])[_0xcedb('0x7e')]())_0x99b9cc['consumable']['consume'](_0x96efb4,_0x278ab9['name']);_0x99b9cc[_0xcedb('0xd0')][_0xcedb('0xef')](_0x2b9472[_0xcedb('0x47')],_0x278ab9['name']);};_0x45082b[_0xcedb('0xf7')][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0xe2')](_0x280ff7=>{_0x280ff7['on'](_0xcedb('0x3e'),(_0x5153da,_0x414df7,_0x33f723)=>{_0x33f723[_0xcedb('0x121')]['showSuggestionHighlights']&&_0x43738b({'showActiveMarkers':!0x1})(_0x5153da,_0x414df7,_0x33f723);},{'priority':_0xcedb('0x62')});}),_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0xbb')]({'model':_0xcedb('0x133'),'view':(_0x855c23,_0x55e345)=>_0x55e345[_0xcedb('0x121')]['showSuggestionHighlights']?null:{'group':_0xcedb('0x133'),'name':_0x855c23[_0xcedb('0x53')](0xb)}}),_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x6c'))['elementToElement']({'view':{'name':_0xcedb('0x133'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5843de,{writer:_0xbbcdf5})=>{let _0x2c50a2=_0xcedb('0x93')+_0x5843de[_0xcedb('0x131')](_0xcedb('0xc6'))+':'+_0x5843de[_0xcedb('0x131')]('id');return _0x5843de[_0xcedb('0x131')]('marker-count')&&(_0x2c50a2+=':'+_0x5843de['getAttribute']('marker-count')),_0xbbcdf5[_0xcedb('0xe7')](_0xcedb('0xa4'),{'data-name':_0x2c50a2});}}),_0x45082b['conversion'][_0xcedb('0x54')]('upcast')[_0xcedb('0xfd')]({'view':'suggestion'}),_0x45082b[_0xcedb('0xf7')][_0xcedb('0x54')](_0xcedb('0x122'))['add'](_0x147edd=>{_0x147edd['on'](_0xcedb('0x3e'),_0x43738b(),{'priority':_0xcedb('0x27')});}),_0x45082b[_0xcedb('0xf7')]['for'](_0xcedb('0x122'))[_0xcedb('0xe2')](_0xb42a1e=>{_0xb42a1e['on']('removeMarker:suggestion:formatBlock',(_0x5a0aa9,_0x5d9ed9,_0x41487b)=>{const _0x59b838=_0x41487b[_0xcedb('0x79')]['markerNameToElements'](_0x5d9ed9[_0xcedb('0xad')]);if(_0x59b838)for(const _0x5a8fd7 of _0x59b838)_0x5a8fd7[_0xcedb('0xf6')](_0xcedb('0xe9'))||(_0x41487b[_0xcedb('0x3d')][_0xcedb('0x42')]([_0xcedb('0xe'),_0xcedb('0x23'),_0xcedb('0x40')],_0x5a8fd7),_0x41487b[_0xcedb('0x3d')][_0xcedb('0x112')](_0xcedb('0x3b'),_0x5a8fd7),_0x41487b['mapper'][_0xcedb('0x92')](_0x5a8fd7,_0x5d9ed9[_0xcedb('0xad')]));},{'priority':_0xcedb('0x27')});}),_0x45082b[_0xcedb('0xdd')]['document'][_0xcedb('0x73')](_0x527c1e=>{let _0x25993d=!0x1;const _0x41d1a2=Array['from'](_0x45082b[_0xcedb('0xdd')][_0xcedb('0xeb')][_0xcedb('0x7d')]['getChangedMarkers']()),_0x36fc2a=new Set();for(const {name:_0x4b7f47,data:_0x138943}of _0x41d1a2){const {group:_0x5af2da,type:_0xda185d,id:_0x40516f}=this[_0xcedb('0x2b')](_0x4b7f47);if(_0xcedb('0x133')!==_0x5af2da)continue;const _0x452162=this[_0xcedb('0xee')]['get'](_0x40516f);if(null!=_0x138943[_0xcedb('0xa1')]){_0xcedb('0xb7')==_0xda185d&&(_0x25993d=_0x25993d||Mt(_0x138943[_0xcedb('0xa1')],_0x4b7f47,_0x527c1e,_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')]));if(_0x138943[_0xcedb('0xa1')][_0xcedb('0x44')]||_0xcedb('0x19')==_0x138943[_0xcedb('0xa1')]['root'][_0xcedb('0x119')]||'formatBlock'==_0xda185d&&!Nt(_0x138943[_0xcedb('0xa1')])||'deletion'==_0xda185d&&!(!_t(_0x3463a7=_0x138943['newRange'])&&!function(_0x15ca47){return _0x15ca47[_0xcedb('0x1a')][_0xcedb('0x2c')]==_0x15ca47[_0xcedb('0x9e')][_0xcedb('0x82')]&&_0x15ca47[_0xcedb('0x1a')][_0xcedb('0x2a')];}(_0x3463a7)))_0x527c1e[_0xcedb('0xc7')](_0x4b7f47),_0x25993d=!0x0;else{if(!_0x452162||!_0x452162['isInContent'])continue;_0x36fc2a[_0xcedb('0xe2')](_0x452162);}}}var _0x3463a7;return _0x36fc2a[_0xcedb('0xca')]>0x0&&(_0x25993d=!!this['_joinWithAdjacentSuggestions'](_0x36fc2a)||_0x25993d),_0x25993d;}),_0x45082b[_0xcedb('0xdd')][_0xcedb('0xeb')][_0xcedb('0x73')](_0x52755d=>{let _0x9f16e=!0x1;for(const _0x46da21 of _0x45082b[_0xcedb('0xdd')][_0xcedb('0xeb')][_0xcedb('0x7d')][_0xcedb('0x114')]()){if('insert'!=_0x46da21[_0xcedb('0x10')])continue;const _0x57ca18=_0x46da21[_0xcedb('0x38')][_0xcedb('0xa3')](_0x46da21['length']);if(_0x57ca18['isAtEnd'])for(const _0x356b42 of this['_suggestions'][_0xcedb('0x127')]()){if(_0x356b42['isMultiRange']||!_0x356b42[_0xcedb('0x115')])continue;if(_0xcedb('0x110')!=_0x356b42[_0xcedb('0x10')])continue;const _0x4bf137=_0x356b42[_0xcedb('0x117')]();if(_0x4bf137[_0xcedb('0x1a')][_0xcedb('0x2c')]!=_0x4bf137['end'][_0xcedb('0x2c')]&&_0x4bf137['end'][_0xcedb('0xe8')](_0x46da21['position'])){const _0x353dea=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x4bf137['start'],_0x57ca18);_0x52755d[_0xcedb('0xa5')](_0x356b42[_0xcedb('0x11d')](),{'range':_0x353dea}),_0x9f16e=!0x0;}}}return _0x9f16e;}),_0x45082b[_0xcedb('0xdd')][_0xcedb('0x29')]['on'](_0xcedb('0x6f'),(_0x194036,_0x2df80c,_0x56c543)=>{if(null==_0x56c543){const {id:_0x10e2f9}=this[_0xcedb('0x2b')](_0x2df80c['name']),_0x9babaf=this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x10e2f9);_0x9babaf&&_0x9babaf[_0xcedb('0xd7')](_0x2df80c[_0xcedb('0x75')]);}}),_0x45082b['model'][_0xcedb('0xeb')]['on'](_0xcedb('0x57'),()=>{const _0x3be6ba=Array[_0xcedb('0x8a')](_0x45082b['model'][_0xcedb('0xeb')][_0xcedb('0x7d')]['getChangedMarkers']())[_0xcedb('0x111')](_0x4f76a1=>'suggestion'===this['_splitMarkerName'](_0x4f76a1['name'])[_0xcedb('0x11f')]);if(0x0===_0x3be6ba['length'])return;_0x3be6ba['sort']((_0x41ab89,_0x1f80a4)=>{const _0x30a540=_0x41ab89[_0xcedb('0xe3')][_0xcedb('0xcb')],_0x2be1ac=_0x1f80a4['data'][_0xcedb('0xcb')];return null===_0x30a540&&null===_0x2be1ac?0x0:null===_0x30a540&&null!==_0x2be1ac?-0x1:null!==_0x30a540&&null===_0x2be1ac?0x1:_0x30a540['start']['isBefore'](_0x2be1ac[_0xcedb('0x1a')])?-0x1:0x1;});const _0x165b00=new Set(),_0x1fd8a0=new Set();for(const {name:_0x1dc49d,data:_0x572bdd}of _0x3be6ba){const {id:_0x4cebbd}=this[_0xcedb('0x2b')](_0x1dc49d);if(null===_0x572bdd[_0xcedb('0xcb')]){const _0x39f0f4=this[_0xcedb('0xfc')](_0x1dc49d);_0x1fd8a0[_0xcedb('0xe2')](_0x39f0f4);}else{const _0x5a88ed=this[_0xcedb('0xee')]['get'](_0x4cebbd);null!==_0x572bdd['newRange']||_0x5a88ed[_0xcedb('0x115')]?(_0x165b00[_0xcedb('0xe2')](_0x5a88ed[_0xcedb('0xda')]),_0x1fd8a0['add'](_0x5a88ed)):this[_0xcedb('0x77')](_0x5a88ed);}}_0x1fd8a0[_0xcedb('0xca')]>0x0&&this['_refreshSuggestionsChain'](_0x1fd8a0);for(const _0x33fa3c of _0x165b00)this['fire'](_0xcedb('0xdf'),_0x33fa3c);}),_0x45082b[_0xcedb('0xdd')]['on']('applyOperation',(_0x582bb8,_0x3947b4)=>{const _0x5257ed=_0x3947b4[0x0];if(!this[_0xcedb('0xee')][_0xcedb('0xca')])return;if(!_0x5257ed[_0xcedb('0x32')])return;if(_0x5257ed['batch']['isUndo']||!_0x5257ed[_0xcedb('0x12f')][_0xcedb('0x108')])return;let _0x4c5d4d,_0x310a42;switch(_0x5257ed['type']){case _0xcedb('0x3a'):_0x4c5d4d=_0x45082b['model']['createPositionAt'](_0x5257ed['position']),_0x310a42=_0x4c5d4d[_0xcedb('0xa3')](_0x5257ed[_0xcedb('0x7b')]);break;case'split':_0x4c5d4d=_0x45082b['model'][_0xcedb('0x8b')](_0x5257ed[_0xcedb('0x28')]),_0x310a42=_0x45082b[_0xcedb('0xdd')]['createPositionAt'](_0x5257ed[_0xcedb('0xb1')]);break;case _0xcedb('0x20'):_0x4c5d4d=_0x45082b['model'][_0xcedb('0x8b')](_0x5257ed[_0xcedb('0xc9')]),_0x310a42=_0x4c5d4d[_0xcedb('0xa3')](_0x5257ed[_0xcedb('0x7b')]);break;default:return;}const _0x45e7c7=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x4c5d4d,_0x310a42);_0x45082b[_0xcedb('0xdd')][_0xcedb('0x139')](()=>{for(const {suggestion:_0x26eb0f,meta:_0x3b0a70}of this[_0xcedb('0x109')](_0x45e7c7)){if(_0x26eb0f[_0xcedb('0x136')])continue;if('formatInline'==_0x26eb0f[_0xcedb('0x10')])continue;const _0x22dadd=_0x26eb0f[_0xcedb('0xe3')]&&_0x26eb0f[_0xcedb('0xe3')][_0xcedb('0xd1')];(_0xcedb('0x110')!=_0x26eb0f[_0xcedb('0x10')]||_0xcedb('0x4e')==_0x5257ed[_0xcedb('0x10')]&&!_0x22dadd)&&(_0x3b0a70[_0xcedb('0x123')]||_0xcedb('0x101')==_0x26eb0f[_0xcedb('0x10')]&&_0x3b0a70[_0xcedb('0xd')]||_0x26eb0f[_0xcedb('0x117')]()[_0xcedb('0x58')](_0x45e7c7)&&this[_0xcedb('0x13')](_0x26eb0f,_0x4c5d4d,_0x310a42));}});},{'priority':_0xcedb('0x39')}),_0x45082b[_0xcedb('0xdd')]['on'](_0xcedb('0xe0'),(_0x4ea3e0,_0x244917)=>{const _0x5d748f=_0x244917[0x0],_0x26f814=_0x244917[0x1];if(_0x26f814&&_0x26f814[_0xcedb('0xf8')])return;if(this[_0xcedb('0x5d')])return;if(!this[_0xcedb('0xa8')][_0xcedb('0x4')])return;if(_0x5d748f[_0xcedb('0x44')])return;const _0x2bc747=_0x45082b['model'][_0xcedb('0x6a')],{start:_0x48d3a6,end:_0x422eb3}=_0x5d748f[_0xcedb('0x117')](),_0x3fe112=_0x48d3a6[_0xcedb('0x3f')]&&_0x2bc747[_0xcedb('0xab')](_0x48d3a6[_0xcedb('0x3f')])?null:_0x2bc747['getNearestSelectionRange'](_0x48d3a6,'forward'),_0x201528=_0x422eb3[_0xcedb('0x82')]&&_0x2bc747[_0xcedb('0xab')](_0x422eb3[_0xcedb('0x82')])?null:_0x2bc747[_0xcedb('0xcd')](_0x422eb3,'backward'),_0x4b0367=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x3fe112?_0x3fe112[_0xcedb('0x1a')]:_0x48d3a6,_0x201528?_0x201528[_0xcedb('0x9e')]:_0x422eb3);_0x45082b['model'][_0xcedb('0x139')](_0x39dbd5=>{this['markDeletion'](_0x4b0367);const _0x130144=_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')]['getNearestSelectionRange'](_0x4b0367[_0xcedb('0x1a')]);_0x5d748f['is'](_0xcedb('0x10a'))?_0x39dbd5[_0xcedb('0xa7')](_0x130144):_0x5d748f[_0xcedb('0x125')](_0x130144);}),_0x4ea3e0['stop']();},{'priority':_0xc6cb6d[_0xcedb('0x135')]+0xa}),_0x45082b[_0xcedb('0xdd')]['on'](_0xcedb('0xaf'),(_0x221f6a,_0x59660b)=>{const _0x3ea150=_0x59660b[_0x59660b[_0xcedb('0xfb')]-0x1];_0x3ea150&&_0x3ea150[_0xcedb('0xf8')]||this[_0xcedb('0x5d')]||this['trackChangesCommand'][_0xcedb('0x4')]&&(_0x45082b[_0xcedb('0xdd')][_0xcedb('0x139')](()=>{let _0x3b4d0a=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xaf')](_0x59660b[0x0],_0x59660b[0x1],_0x59660b[0x2],{'forceDefaultExecution':!0x0});if(!_0x3b4d0a)return;_0x221f6a[_0xcedb('0x6e')]=_0x3b4d0a['clone']();const _0xa0184b=_0x3b4d0a['end']['nodeBefore'],_0x1b4395=_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')];_0xa0184b&&_0x1b4395['isBlock'](_0xa0184b)&&!_0x1b4395[_0xcedb('0x9c')](_0xa0184b)&&(_0x3b4d0a=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x3b4d0a[_0xcedb('0x1a')],_0x45082b[_0xcedb('0xdd')][_0xcedb('0x8b')](_0xa0184b,_0xcedb('0x9e')))),this['markInsertion'](_0x3b4d0a);}),_0x221f6a['stop']());},{'priority':'high'}),this[_0xcedb('0x124')][_0xcedb('0x1b')]['add']('trackChanges',this['trackChangesCommand']),this['enableCommand'](_0xcedb('0xd8'));const _0x1801eb=new _0x1bfab0(_0x45082b,this['_suggestions']);_0x45082b['commands']['add']('acceptSuggestion',_0x1801eb),this[_0xcedb('0x118')](_0xcedb('0x37'));const _0x24d183=new _0x3fc170(_0x45082b,this[_0xcedb('0xee')]);_0x45082b['commands'][_0xcedb('0xe2')](_0xcedb('0xe1'),_0x24d183),this[_0xcedb('0x118')]('discardSuggestion'),_0x45082b[_0xcedb('0x1b')][_0xcedb('0xe2')](_0xcedb('0xb2'),new _0x1f8af6(_0x45082b,_0x1801eb,this[_0xcedb('0xee')])),this[_0xcedb('0x118')](_0xcedb('0xb2')),_0x45082b[_0xcedb('0x1b')]['add']('discardAllSuggestions',new _0x1f8af6(_0x45082b,_0x24d183,this[_0xcedb('0xee')])),this['enableCommand'](_0xcedb('0x9')),_0x45082b[_0xcedb('0x1b')][_0xcedb('0xe2')](_0xcedb('0x55'),new _0xd9b9e6(_0x45082b,_0x1801eb,this[_0xcedb('0xee')])),this[_0xcedb('0x118')](_0xcedb('0x55')),_0x45082b[_0xcedb('0x1b')][_0xcedb('0xe2')](_0xcedb('0x87'),new _0xd9b9e6(_0x45082b,_0x24d183,this[_0xcedb('0xee')])),this[_0xcedb('0x118')](_0xcedb('0x87'));const _0x35c957=_0x45082b[_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0xbc'));this[_0xcedb('0x113')](_0x35c957,_0xcedb('0x5f'),(_0x306c07,{threadId:_0x2d9656})=>{const _0x15cb8e=this['_suggestions'][_0xcedb('0xf1')](_0x2d9656);_0x15cb8e&&_0x15cb8e['commentThread']&&0x1===_0x15cb8e[_0xcedb('0x69')]['length']&&this[_0xcedb('0x12d')](_0x2d9656,{'hasComments':!0x0});},{'priority':'low'}),this[_0xcedb('0x113')](_0x35c957,_0xcedb('0x4c'),(_0x11354d,{threadId:_0x579ca6})=>{const _0x567525=this[_0xcedb('0xee')]['get'](_0x579ca6);_0x567525&&_0x567525[_0xcedb('0x69')]&&!_0x567525[_0xcedb('0x69')][_0xcedb('0xfb')]&&this[_0xcedb('0x12d')](_0x579ca6,{'hasComments':!0x1});},{'priority':_0xcedb('0xb')});}set[_0xcedb('0x70')](_0x30efac){if(this['_adapter'])throw new _0x47ae60(_0xcedb('0xe6'),this);this[_0xcedb('0x137')]=_0x30efac;}get[_0xcedb('0x70')](){return this[_0xcedb('0x137')];}[_0xcedb('0x2')]({skipNotAttached:_0x239cc7=!0x1,toJSON:_0x2c2706=!0x1}={}){const _0x2c5a44=[];for(const _0x757a57 of this[_0xcedb('0xee')][_0xcedb('0x127')]())_0x239cc7&&!_0x757a57[_0xcedb('0x115')]||_0x2c5a44[_0xcedb('0xa')](_0x757a57);return _0x2c2706?_0x2c5a44['map'](_0x17cfc1=>_0x17cfc1[_0xcedb('0xbd')]()):_0x2c5a44;}[_0xcedb('0xaa')](_0x48eeb4){const _0x4777c7=this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x48eeb4);if(!_0x4777c7)throw new _0x47ae60('track-changes-suggestion-not-found',this);return _0x4777c7;}[_0xcedb('0x30')](_0x38a491){return this['_suggestions'][_0xcedb('0x138')](_0x38a491);}[_0xcedb('0xbf')](_0x1f016f){const {authorId:_0x19022e,id:_0x8b0e76,attributes:_0x1d4b4c}=_0x1f016f,[_0x374fd1,_0x5729ab]=_0x1f016f[_0xcedb('0x10')][_0xcedb('0x4e')](':'),_0x1ee17d=this['_suggestions'][_0xcedb('0xf1')](_0x8b0e76)||this['_createSuggestion'](_0x374fd1,_0x5729ab,_0x8b0e76,_0x19022e,_0x1d4b4c);if(this['_addThreadToSuggestion'](_0x1ee17d),this[_0xcedb('0x5c')](_0x1ee17d,_0x374fd1,_0x5729ab||null,_0x19022e),_0x1ee17d[_0xcedb('0xb3')]=_0x1f016f[_0xcedb('0xb3')],_0x1d4b4c&&_0x1d4b4c[_0xcedb('0x6d')]){const _0x1137c1=_0x1d4b4c[_0xcedb('0x6d')],_0x9157a2=this[_0xcedb('0x1f')](_0x1137c1[_0xcedb('0xe4')]);_0x1ee17d[_0xcedb('0x36')]=_0x1137c1['createdAt'],_0x1ee17d[_0xcedb('0xff')]=_0x9157a2,_0x1ee17d[_0xcedb('0xd4')]=!0x0;}else _0x1ee17d['authoredAt']=_0x1f016f[_0xcedb('0xb3')];switch(_0x1f016f[_0xcedb('0xe3')]&&(_0x1ee17d[_0xcedb('0xe3')]=_0x1f016f[_0xcedb('0xe3')]),_0x1f016f[_0xcedb('0x21')]&&(_0x1ee17d['attributes']=_0x1f016f['attributes']),this[_0xcedb('0x137')]&&this[_0xcedb('0x137')][_0xcedb('0xf9')]||(_0x1ee17d[_0xcedb('0xc5')]=!0x0),this[_0xcedb('0xc4')]['get'](_0x1ee17d)){case _0xcedb('0x85'):this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x1ee17d,_0xcedb('0xba'));break;case _0xcedb('0x89'):_0x1ee17d[_0xcedb('0x115')]?(this['_suggestionState']['set'](_0x1ee17d,_0xcedb('0x46')),this[_0xcedb('0x64')]('suggestionLoaded',_0x1ee17d)):this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x1ee17d,_0xcedb('0xfe'));}return _0x1ee17d;}[_0xcedb('0x37')](_0x58c234){this[_0xcedb('0xf8')](()=>{this['editor'][_0xcedb('0xdd')]['change'](()=>{for(const _0x57a0c1 of _0x58c234['getAllAdjacentSuggestions']())_0x57a0c1[_0xcedb('0x24')]();});});}[_0xcedb('0xe1')](_0x4c06d1){this['forceDefaultExecution'](()=>{this['editor'][_0xcedb('0xdd')][_0xcedb('0x139')](()=>{for(const _0x4295ad of _0x4c06d1[_0xcedb('0x12b')]())_0x4295ad[_0xcedb('0xa9')]();});});}[_0xcedb('0x118')](_0x53381c,_0x5e9ab9){const _0x38ec88=this[_0xcedb('0x124')]['commands'][_0xcedb('0xf1')](_0x53381c);if(!_0x38ec88)throw new _0x47ae60(_0xcedb('0x105'),this,{'commandName':_0x53381c});this[_0xcedb('0x25')]['add'](_0x38ec88),_0x5e9ab9&&_0x38ec88['on'](_0xcedb('0x106'),(_0x11e86f,_0x1d49de)=>{this[_0xcedb('0xa8')][_0xcedb('0x4')]&&(this[_0xcedb('0x5d')]||_0x1d49de[_0xcedb('0xfb')]>0x0&&_0x1d49de[_0x1d49de[_0xcedb('0xfb')]-0x1]&&_0x1d49de[_0x1d49de['length']-0x1]['forceDefaultExecution']||(_0x5e9ab9((..._0x146b61)=>_0x38ec88[_0xcedb('0x106')](..._0x146b61,{'forceDefaultExecution':!0x0}),..._0x1d49de),_0x11e86f[_0xcedb('0x12c')]()));},{'priority':_0xcedb('0x27')});}[_0xcedb('0xf8')](_0x11450a){let _0x3b96f7,_0x2b5bae;const _0x5f45bf=this[_0xcedb('0x5d')];this[_0xcedb('0x5d')]=!0x0;try{_0x3b96f7=_0x11450a();}catch(_0x5370ee){_0x2b5bae=_0x5370ee;}return _0x5f45bf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2b5bae&&_0x47ae60[_0xcedb('0x22')](_0x2b5bae,this),_0x3b96f7;}[_0xcedb('0x7a')](_0x2ebd0f,_0xa22a64=null,_0x552f37={}){if(_0x2ebd0f[_0xcedb('0x44')])return null;const _0x49fd3c=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')]('Users')['me'];for(const {suggestion:_0x3a7dc1,meta:_0x592be9}of this[_0xcedb('0x109')](_0x2ebd0f,_0xcedb('0x101')))if(_0x592be9[_0xcedb('0xd')]){if(!_0x592be9[_0xcedb('0x128')]){if(!this[_0xcedb('0x43')]&&_0x592be9[_0xcedb('0x123')])continue;return _0x3a7dc1;}if(_0xa22a64==_0x3a7dc1[_0xcedb('0x4a')]){const _0x23a489=_0x3a7dc1[_0xcedb('0x117')]();return _0x23a489[_0xcedb('0x1a')][_0xcedb('0xe8')](_0x2ebd0f[_0xcedb('0x9e')])?this['_setSuggestionRange'](_0x3a7dc1,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x2ebd0f[_0xcedb('0x1a')],_0x23a489['end'])):this[_0xcedb('0x81')](_0x3a7dc1,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x23a489[_0xcedb('0x1a')],_0x2ebd0f['end'])),_0x3a7dc1;}}const _0x38f427=_0xa49531(),_0x489a25=_0x49fd3c['id'],_0x257e89=_0xa22a64?_0xcedb('0x0')+_0xa22a64:_0xcedb('0x101'),_0x474123=this[_0xcedb('0x95')]({'id':_0x38f427,'type':_0x257e89,'createdAt':new Date(),'authorId':_0x489a25,'attributes':_0x552f37});return this[_0xcedb('0x10c')](_0x257e89,_0x38f427,_0x489a25,_0x2ebd0f),_0x474123;}[_0xcedb('0xb5')](_0x51a3f4,_0x191438=_0xcedb('0x5e'),_0x5043dd={}){const _0x5c01de=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')]('Users')['me'],_0x2c4eac=this[_0xcedb('0x61')]['getSuggestionCallback'](_0xcedb('0x101'),_0x191438,_0xcedb('0x11e'));for(const _0x786c28 of this[_0xcedb('0x2')]())if(_0x786c28[_0xcedb('0xff')]['id']==_0x5c01de['id']&&_0xcedb('0x101')==_0x786c28[_0xcedb('0x10')]&&_0x786c28['subType']==_0x191438&&(_0x2c4eac(_0x786c28[_0xcedb('0xd5')](),_0x51a3f4)||_0x2c4eac(_0x51a3f4,_0x786c28[_0xcedb('0xd5')]()))){for(const _0x28c290 of _0x51a3f4)_0x786c28[_0xcedb('0x134')](_0x28c290);return _0x786c28;}if(this[_0xcedb('0x43')])for(const _0x73121e of _0x51a3f4)for(const {suggestion:_0x259391,meta:_0x2073ed}of this[_0xcedb('0x109')](_0x73121e,_0xcedb('0x101'))){if(!_0x2073ed[_0xcedb('0xd')])continue;let _0x4a0bbf=!0x0;for(const _0x1ac982 of _0x259391['getRanges']())for(const _0x5bbbbd of _0x51a3f4)if(!_0x1ac982[_0xcedb('0x58')](_0x5bbbbd)){_0x4a0bbf=!0x1;break;}if(_0x4a0bbf)return _0x259391;}const _0x18bb8e=_0xa49531(),_0xd9afdb=_0x5c01de['id'],_0x3249f1='insertion:'+_0x191438,_0x31b247=this[_0xcedb('0x95')]({'id':_0x18bb8e,'type':_0x3249f1,'createdAt':new Date(),'authorId':_0xd9afdb,'attributes':_0x5043dd});for(const _0x4c0bb5 of _0x51a3f4)this['_addSuggestionMarker'](_0x3249f1,_0x18bb8e,_0xd9afdb,_0x4c0bb5,_0x58c80b['getMultiRangeId']());return _0x31b247;}[_0xcedb('0x14')](_0xb31786,_0x2b85c8,_0x4dd615=null,_0x2a69de={}){if(_0x4dd615=_0x4dd615||$t(_0x2b85c8),_0xb31786[_0xcedb('0x44')])return null;if(_0xcedb('0x7')===this['_trackFormatChanges']){const _0x35c25c=this['_suggestionFactory'][_0xcedb('0xdc')]('formatInline',_0x4dd615,_0xcedb('0x24'));return this['forceDefaultExecution'](()=>_0x35c25c([_0xb31786],_0x2b85c8,_0x2a69de)),null;}const _0x1fa461=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')]('Users')['me'],_0x4c9254=[];if(_0xcedb('0x31')!==this[_0xcedb('0x130')])for(const {suggestion:_0x4e44b2,meta:_0x381ebf}of this['_findSuggestions'](_0xb31786,'insertion'))_0x381ebf[_0xcedb('0xd')]&&!_0x381ebf['isInsideObject']&&_0x4c9254['push'](..._0x4e44b2[_0xcedb('0xd5')]());const _0x15426b=function(_0x51f48b,_0x43ff16){const _0x33bb33=[];for(const _0x24d438 of _0x43ff16){const _0x1cb04f=_0x51f48b[_0xcedb('0x8')](_0x24d438);_0x1cb04f&&_0x33bb33['push'](_0x1cb04f);}return _0x33bb33;}(_0xb31786,_0x4c9254),_0x2f73cc=function(_0x5884ab,_0x59dfaa){const _0x4bc02e=[_0x5884ab];for(const _0x25d3cd of _0x59dfaa){let _0x33e629=0x0;for(;_0x33e629<_0x4bc02e[_0xcedb('0xfb')];){const _0x43c781=_0x4bc02e[_0x33e629][_0xcedb('0x99')](_0x25d3cd);_0x4bc02e['splice'](_0x33e629,0x1,..._0x43c781),_0x33e629+=_0x43c781['length'];}}return _0x4bc02e;}(_0xb31786,_0x4c9254);_0x15426b[_0xcedb('0xfb')]&&this['_model'][_0xcedb('0x139')](()=>{for(const _0x506588 of _0x15426b){const _0x4e57ef=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0xb7'),_0x4dd615,'accept');this[_0xcedb('0xf8')](()=>_0x4e57ef([_0x506588],_0x2b85c8,_0x2a69de));}});for(const _0x39baba of _0x2f73cc){let _0x438aca=null,_0xd2009b=_0x39baba[_0xcedb('0x1a')],_0x29739a=_0x39baba[_0xcedb('0x9e')];for(const {suggestion:_0x489773,meta:_0x64e681}of this['_findSuggestions'](_0x39baba,_0xcedb('0xb7'))){if(!_0x64e681[_0xcedb('0xd')])continue;if(_0x489773[_0xcedb('0x4a')]!=_0x4dd615)continue;const _0x5246ed=_0x489773['getFirstRange']();if(_0x5246ed[_0xcedb('0x58')](_0x39baba,!0x0))return null;_0xd2009b=_0xd2009b[_0xcedb('0x10f')](_0x5246ed[_0xcedb('0x1a')])?_0xd2009b:_0x5246ed[_0xcedb('0x1a')],_0x29739a=_0x29739a[_0xcedb('0x74')](_0x5246ed[_0xcedb('0x9e')])?_0x29739a:_0x5246ed['end'],_0x438aca?_0x5246ed[_0xcedb('0x1a')][_0xcedb('0x10f')](_0x438aca[_0xcedb('0x117')]()[_0xcedb('0x1a')])?(_0x438aca['removeMarkers'](),_0x438aca=_0x489773):_0x489773['removeMarkers']():_0x438aca=_0x489773;}const _0x4fa609=this[_0xcedb('0x11a')]['createRange'](_0xd2009b,_0x29739a);if(_0x438aca)this[_0xcedb('0x81')](_0x438aca,_0x4fa609);else{const _0x21c9e3=_0xa49531(),_0xb86c12=_0x1fa461['id'];this[_0xcedb('0x95')]({'id':_0x21c9e3,'type':'formatInline:'+_0x4dd615,'data':_0x2b85c8,'createdAt':new Date(),'authorId':_0xb86c12,'attributes':_0x2a69de}),this[_0xcedb('0x10c')](_0xcedb('0x34')+_0x4dd615,_0x21c9e3,_0xb86c12,_0x4fa609);}}return null;}['markBlockFormat'](_0x223554,_0x324e1e,_0x8094b7=[],_0x50f621=null,_0x652357={}){_0x324e1e[_0xcedb('0x97')]||(_0x324e1e[_0xcedb('0x97')]=_0x324e1e['commandName']),_0x324e1e[_0xcedb('0xd1')]=_0x223554['is']('range'),_0x50f621=_0x50f621||$t(_0x324e1e);const _0x5be72d=_0x8094b7['map'](_0x107410=>Rt(_0x107410,this['_model'])),_0x5d0112=_0x223554['is'](_0xcedb('0xf4'))?_0x223554:Rt(_0x223554,this[_0xcedb('0x11a')]);if(_0xcedb('0x7')===this[_0xcedb('0x130')]){const _0x1ee20e=this['_suggestionFactory']['getSuggestionCallback'](_0xcedb('0x110'),_0x50f621,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x1ee20e([_0x5d0112],_0x324e1e,_0x652357)),null;}_0x5be72d[_0xcedb('0xa')](_0x5d0112);let _0xac0d57=!0x0;for(const _0x7fe67a of _0x5be72d)if(!this[_0xcedb('0x68')](_0x7fe67a)){_0xac0d57=!0x1;break;}if(_0xac0d57&&'always'!==this['_trackFormatChanges']){const _0x65de1d=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x110'),_0x50f621,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x65de1d([_0x5d0112],_0x324e1e,_0x652357)),null;}let _0x198d8d=null,_0x2228f2=_0x5d0112['start'],_0x5bf0c9=_0x5d0112[_0xcedb('0x9e')];for(const {suggestion:_0xdc36fe,meta:_0x26a8b3}of this[_0xcedb('0x109')](_0x5d0112,_0xcedb('0x110'))){if(!_0x26a8b3['isOwn']||_0x26a8b3[_0xcedb('0x128')]||_0x26a8b3[_0xcedb('0x123')]||_0x26a8b3[_0xcedb('0x3')])continue;if(_0xdc36fe[_0xcedb('0xe3')][_0xcedb('0x97')]!=_0x324e1e['formatGroupId'])continue;const _0x269339=_0xdc36fe[_0xcedb('0x117')]();if(_0xdc36fe['subType']==_0x50f621){if(_0x269339[_0xcedb('0x58')](_0x5d0112,!0x0))return null;_0x2228f2=_0x2228f2['isBefore'](_0x269339[_0xcedb('0x1a')])?_0x2228f2:_0x269339[_0xcedb('0x1a')],_0x5bf0c9=_0x5bf0c9[_0xcedb('0x74')](_0x269339[_0xcedb('0x9e')])?_0x5bf0c9:_0x269339['end'],_0x198d8d?_0x269339[_0xcedb('0x1a')][_0xcedb('0x10f')](_0x198d8d[_0xcedb('0x117')]()[_0xcedb('0x1a')])?(_0x198d8d[_0xcedb('0x49')](),_0x198d8d=_0xdc36fe):_0xdc36fe[_0xcedb('0x49')]():_0x198d8d=_0xdc36fe;}else{const _0x539095=_0x5d0112['getIntersection'](_0x269339);this[_0xcedb('0x5b')](_0xdc36fe,_0x539095);}}const _0xc2feae=this[_0xcedb('0x124')]['plugins'][_0xcedb('0xf1')](_0xcedb('0x52'))['me'],_0x229816=_0xa49531(),_0x1abd96=_0xc2feae['id'];if(_0x198d8d)return this[_0xcedb('0x81')](_0x198d8d,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x2228f2,_0x5bf0c9)),_0x198d8d;{const _0x9092e5=this[_0xcedb('0x95')]({'id':_0x229816,'type':_0xcedb('0xf2')+_0x50f621,'data':_0x324e1e,'createdAt':new Date(),'authorId':_0x1abd96,'attributes':_0x652357});return this['_addSuggestionMarker'](_0xcedb('0xf2')+_0x50f621,_0x229816,_0x1abd96,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x2228f2,_0x5bf0c9)),_0x9092e5;}}['markMultiRangeBlockFormat'](_0xa4bab7,_0x5e54bc,_0x5e0092=[],_0x2c088a=null,_0x5d70cc={}){_0x5e54bc[_0xcedb('0x97')]||(_0x5e54bc['formatGroupId']=_0x5e54bc[_0xcedb('0x10b')]);const _0x172db6=_0xa4bab7[0x0];_0x5e54bc['multipleBlocks']=_0x172db6['is'](_0xcedb('0xf4')),_0x2c088a=_0x2c088a||$t(_0x5e54bc);const _0x44fcfb=_0x5e0092[_0xcedb('0xdb')](_0x40def3=>Rt(_0x40def3,this['_model'])),_0xa61d15=_0x172db6['is']('range')?_0xa4bab7:_0xa4bab7[_0xcedb('0xdb')](_0x385166=>Rt(_0x385166,this[_0xcedb('0x11a')]));if(_0xcedb('0x7')===this[_0xcedb('0x130')]){const _0x2cb4f9=this['_suggestionFactory'][_0xcedb('0xdc')](_0xcedb('0x110'),_0x2c088a,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x2cb4f9(_0xa61d15,_0x5e54bc,_0x5d70cc)),null;}_0x44fcfb[_0xcedb('0xa')](..._0xa61d15);let _0x2b6a89=!0x0;for(const _0x4f9c71 of _0x44fcfb)if(!this[_0xcedb('0x68')](_0x4f9c71)){_0x2b6a89=!0x1;break;}if(_0x2b6a89&&_0xcedb('0x31')!==this['_trackFormatChanges']){const _0x30774b=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x110'),_0x2c088a,'accept');return this[_0xcedb('0xf8')](()=>_0x30774b(_0xa61d15,_0x5e54bc,_0x5d70cc)),null;}const _0x296fb0=this['editor'][_0xcedb('0xa2')]['get'](_0xcedb('0x52'))['me'];for(const _0x4de444 of this['getSuggestions']()){if(_0x4de444[_0xcedb('0xff')]['id']!=_0x296fb0['id'])continue;if('formatBlock'!=_0x4de444[_0xcedb('0x10')]||_0x4de444[_0xcedb('0xe3')][_0xcedb('0x97')]!=_0x5e54bc[_0xcedb('0x97')])continue;const _0x351787=_0x4de444['subType']==_0x2c088a;for(let _0x36a9db=0x0;_0x36a9db<_0xa61d15[_0xcedb('0xfb')];_0x36a9db++){const _0x1e89c4=_0xa61d15[_0x36a9db];for(const _0x2577b7 of _0x4de444[_0xcedb('0x1')]()){const _0x1bde85=_0x2577b7[_0xcedb('0x13b')]();if(_0x1e89c4['isEqual'](_0x1bde85)){_0x351787?(_0xa61d15[_0xcedb('0xa6')](_0x36a9db,0x1),_0x36a9db--):_0x4de444['removeMarker'](_0x2577b7[_0xcedb('0x75')]);break;}}}}if(0x0==_0xa61d15[_0xcedb('0xfb')])return null;const _0x5bf7fb=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x110'),_0x2c088a,'join');for(const _0x1e265a of this[_0xcedb('0x2')]())if(_0x1e265a[_0xcedb('0xff')]['id']==_0x296fb0['id']&&_0xcedb('0x110')==_0x1e265a[_0xcedb('0x10')]&&_0x1e265a[_0xcedb('0xe3')][_0xcedb('0x97')]==_0x5e54bc[_0xcedb('0x97')]&&_0x1e265a[_0xcedb('0x4a')]==_0x2c088a&&(_0x5bf7fb(_0x1e265a['getRanges'](),_0xa61d15)||_0x5bf7fb(_0xa61d15,_0x1e265a['getRanges']()))){for(const _0x99c6d7 of _0xa61d15)_0x1e265a[_0xcedb('0x134')](_0x99c6d7);return _0x1e265a;}const _0x585067=_0xa49531(),_0xfad207=_0x296fb0['id'],_0x89873a=_0xcedb('0xf2')+_0x2c088a,_0x4a275a=this[_0xcedb('0x95')]({'id':_0x585067,'type':_0x89873a,'data':_0x5e54bc,'createdAt':new Date(),'authorId':_0xfad207,'attributes':_0x5d70cc});for(const _0x2a9632 of _0xa61d15)this[_0xcedb('0x10c')](_0x89873a,_0x585067,_0xfad207,_0x2a9632,_0x58c80b['getMultiRangeId']());return _0x4a275a;}['markDeletion'](_0x116469,_0x5280e6=null,_0x532b86={}){if(_0x116469[_0xcedb('0x44')])return null;const _0x1834d3=this['editor'][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52'))['me'],_0x209fb7=new _0x5261dd(_0x116469[_0xcedb('0x1a')],_0x116469[_0xcedb('0x9e')]);for(const {suggestion:_0x5c912b,meta:_0x5b0de8}of this['_findSuggestions'](_0x209fb7,_0xcedb('0x101')))if(_0x5b0de8[_0xcedb('0xd')]&&!_0x5b0de8[_0xcedb('0x128')]){if(_0x5c912b['isMultiRange']){const _0x205ff7=_0x5c912b[_0xcedb('0xd5')]()[_0xcedb('0x111')](_0x34648f=>_0xcedb('0x19')!=_0x34648f[_0xcedb('0x65')][_0xcedb('0x119')]);_0x205ff7['every'](_0x11bd58=>_0x209fb7[_0xcedb('0x58')](_0x11bd58,!0x0))&&_0x5c912b[_0xcedb('0xa9')]();if(_0x205ff7[_0xcedb('0x96')](_0x5eb8db=>_0x5eb8db[_0xcedb('0x58')](_0x209fb7,!0x0))){const _0x12ac64=this[_0xcedb('0x61')]['getSuggestionCallback']('deletion',_0x5280e6,'accept');return this['forceDefaultExecution'](()=>_0x12ac64([_0x209fb7],null,_0x532b86)),null;}}else{const _0x11b25b=_0x209fb7['getIntersection'](_0x5c912b[_0xcedb('0x117')]());null!==_0x11b25b&&_0x5c912b['_onDiscard']([_0x11b25b],null,_0x532b86);}}if(_0x209fb7[_0xcedb('0x9d')](),_0x209fb7[_0xcedb('0x44')]||'$graveyard'==_0x209fb7[_0xcedb('0x65')]['rootName'])return null;let _0x5c9a31=null,_0x502ad7=_0x209fb7[_0xcedb('0x1a')],_0x182391=_0x209fb7['end'];for(const {suggestion:_0x4a93a9,meta:_0x4aec13}of this['_findSuggestions'](_0x209fb7,_0xcedb('0x80')))if(_0x4aec13[_0xcedb('0xd')]){if(_0x4a93a9[_0xcedb('0x136')]&&this[_0xcedb('0x43')]){let _0x565d40=!0x0;for(const _0x3e31c8 of _0x4a93a9[_0xcedb('0xd5')]()){if(_0x3e31c8[_0xcedb('0x58')](_0x209fb7,!0x0))return _0x4a93a9;_0x209fb7[_0xcedb('0x58')](_0x3e31c8)||(_0x565d40=!0x1);}_0x565d40&&_0x4a93a9[_0xcedb('0xa9')]();}else{const _0x1e03e4=_0x4a93a9['getFirstRange']();if(_0x1e03e4[_0xcedb('0x58')](_0x209fb7,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x4aec13['containsRangeInObject'])continue;return _0x4a93a9;}_0x502ad7=_0x502ad7['isBefore'](_0x1e03e4[_0xcedb('0x1a')])?_0x502ad7:_0x1e03e4[_0xcedb('0x1a')],_0x182391=_0x182391[_0xcedb('0x74')](_0x1e03e4['end'])?_0x182391:_0x1e03e4[_0xcedb('0x9e')],_0x5c9a31?_0x1e03e4['start']['isBefore'](_0x5c9a31[_0xcedb('0x117')]()[_0xcedb('0x1a')])?(_0x5c9a31[_0xcedb('0x49')](),_0x5c9a31=_0x4a93a9):_0x4a93a9['removeMarkers']():_0x5c9a31=_0x4a93a9;}}if(_0x5c9a31)return this[_0xcedb('0x81')](_0x5c9a31,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x502ad7,_0x182391)),_0x5c9a31;{const _0x1e9580=_0xa49531(),_0x591b5a=this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x502ad7,_0x182391),_0x193776=_0x1834d3['id'],_0x1602e1=_0x5280e6?_0xcedb('0xed')+_0x5280e6:_0xcedb('0x80'),_0x555ed3=this[_0xcedb('0x95')]({'id':_0x1e9580,'type':_0x1602e1,'createdAt':new Date(),'authorId':_0x193776,'attributes':_0x532b86});return this[_0xcedb('0x10c')](_0x1602e1,_0x1e9580,_0x193776,_0x591b5a),_0x555ed3;}}['markMultiRangeDeletion'](_0x4031d2,_0xcd199d='multi',_0x4ba97d={}){const _0x3b430b=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52'))['me'],_0x257306=_0x4031d2[_0xcedb('0xdb')](_0x6e33af=>new _0x5261dd(_0x6e33af[_0xcedb('0x1a')],_0x6e33af[_0xcedb('0x9e')])),_0x19e491=new Set();for(const _0x8c76da of _0x257306)for(const {suggestion:_0x56c4ed,meta:_0x9dfda0}of this['_findSuggestions'](_0x8c76da,'insertion'))_0x9dfda0['isOwn']&&!_0x9dfda0[_0xcedb('0x128')]&&_0x19e491[_0xcedb('0xe2')](_0x56c4ed);for(const _0x40662f of _0x19e491)if(_0x40662f[_0xcedb('0x136')]){const _0x1b6cc6=_0x40662f['getRanges']();(!_0x40662f[_0xcedb('0x21')]||!_0x40662f[_0xcedb('0x21')][_0xcedb('0x26')])&&(_0x1b6cc6[_0xcedb('0x6b')](_0x96ae88=>_0x257306[_0xcedb('0x96')](_0x450b0c=>_0x450b0c[_0xcedb('0x58')](_0x96ae88,!0x0)))&&_0x40662f[_0xcedb('0xa9')]());if(_0x257306[_0xcedb('0x6b')](_0x56628e=>_0x1b6cc6[_0xcedb('0x96')](_0x5022db=>_0x5022db[_0xcedb('0x58')](_0x56628e,!0x0)))){const _0x4ca04b=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x80'),_0xcd199d,_0xcedb('0x24'));return this['forceDefaultExecution'](()=>_0x4ca04b(_0x4031d2,null,_0x4ba97d)),null;}}else{const _0x1a60fe=_0x40662f['getFirstRange']();_0x257306[_0xcedb('0x96')](_0x5c3858=>_0x5c3858['containsRange'](_0x1a60fe,!0x0))&&_0x40662f['discard']();if(_0x257306['every'](_0x15d878=>_0x1a60fe[_0xcedb('0x58')](_0x15d878,!0x0))){const _0x46dab7=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x80'),_0xcd199d,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x46dab7(_0x257306,null,_0x4ba97d)),null;}}const _0xf782b6=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x80'),_0xcd199d,_0xcedb('0x11e'));let _0x1b84f3=null;for(const _0x508578 of this[_0xcedb('0x2')]())if(_0x508578['author']['id']==_0x3b430b['id']&&_0x508578[_0xcedb('0x115')]&&'deletion'==_0x508578['type']&&_0x508578['subType']==_0xcd199d&&(_0xf782b6(_0x508578['getRanges'](),_0x257306)||_0xf782b6(_0x257306,_0x508578[_0xcedb('0xd5')]()))){if(_0x1b84f3){if(_0x508578[_0xcedb('0x69')]&&_0x508578['commentThread'][_0xcedb('0xfb')])continue;for(const _0x5e17e0 of _0x508578['getRanges']())_0x1b84f3[_0xcedb('0x76')](_0x5e17e0)||_0x1b84f3[_0xcedb('0x134')](_0x5e17e0);_0x508578['removeMarkers']();}else{_0x1b84f3=_0x508578;for(const _0x2a5a79 of _0x257306)_0x508578[_0xcedb('0x76')](_0x2a5a79)||_0x508578[_0xcedb('0x134')](_0x2a5a79);}}if(_0x1b84f3)return _0x1b84f3;_0x19e491[_0xcedb('0xc2')]();for(const _0x5f4eb3 of _0x257306)for(const {suggestion:_0xf2b7c6,meta:_0x5dae0b}of this[_0xcedb('0x109')](_0x5f4eb3,_0xcedb('0x80')))_0x5dae0b[_0xcedb('0xd')]&&_0x19e491[_0xcedb('0xe2')](_0xf2b7c6);for(const _0x403bc5 of _0x19e491){const _0x3a89cd=_0x403bc5[_0xcedb('0xd5')]();if(!_0x4ba97d||!_0x4ba97d[_0xcedb('0x26')]){if(_0x257306['every'](_0x8d141f=>_0x3a89cd[_0xcedb('0x96')](_0x30a6a2=>_0x30a6a2['containsRange'](_0x8d141f,!0x0))))return _0x403bc5;}(!_0x403bc5[_0xcedb('0x21')]||!_0x403bc5[_0xcedb('0x21')][_0xcedb('0x26')])&&(_0x3a89cd[_0xcedb('0x6b')](_0x2fc59c=>_0x257306['some'](_0x24a930=>_0x24a930[_0xcedb('0x58')](_0x2fc59c,!0x0)))&&_0x403bc5[_0xcedb('0xa9')]());}const _0x2605e2=_0xa49531(),_0x4e361f=_0x3b430b['id'],_0x27c21a=_0xcedb('0xed')+_0xcd199d,_0x5ef47a=this[_0xcedb('0x95')]({'id':_0x2605e2,'type':_0x27c21a,'createdAt':new Date(),'authorId':_0x4e361f,'attributes':_0x4ba97d});for(const _0x12ee29 of _0x257306)_0x12ee29[_0xcedb('0x9d')](),_0x12ee29[_0xcedb('0x44')]||_0xcedb('0x19')==_0x12ee29[_0xcedb('0x65')]['rootName']||this['_addSuggestionMarker'](_0x27c21a,_0x2605e2,_0x4e361f,_0x12ee29,_0x58c80b[_0xcedb('0xd2')]());return _0x5ef47a;}['_setSuggestionRange'](_0x5d454e,_0x2c435e){const _0x42e3a1=_0x5d454e['getFirstMarker']();this[_0xcedb('0x11a')][_0xcedb('0x139')](_0x3441cb=>{_0x3441cb[_0xcedb('0xa5')](_0x42e3a1,{'range':_0x2c435e});});}[_0xcedb('0xe5')](_0x3592c6){const _0x204a58=_0x3592c6['id'],_0x43d5d0=this['editor']['config']['get'](_0xcedb('0x18'));this[_0xcedb('0x90')]['hasCommentThread'](_0x204a58)||this[_0xcedb('0x90')][_0xcedb('0x10d')]({'channelId':_0x43d5d0,'threadId':_0x204a58,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x58cefd=this[_0xcedb('0x90')][_0xcedb('0x12e')](_0x204a58);_0x58cefd['unbind'](_0xcedb('0x11c')),_0x58cefd[_0xcedb('0x11c')]=!0x1,_0x3592c6[_0xcedb('0x69')]=_0x58cefd;}['_checkSuggestionCorrectness'](_0x46bf0b,_0x119056,_0x45a728,_0x53d027){if(_0x46bf0b[_0xcedb('0x10')]!=_0x119056||_0x46bf0b['subType']!=_0x45a728||_0x46bf0b[_0xcedb('0x78')]['id']!=_0x53d027)throw this[_0xcedb('0x124')]['enableReadOnlyMode'](_0xcedb('0x132')),new _0x47ae60(_0xcedb('0x132'),this);}[_0xcedb('0x5b')](_0x2f91b3,_0x57e3be){const _0x54d040=_0x2f91b3[_0xcedb('0x117')]();if(_0x57e3be['isEqual'](_0x54d040))_0x2f91b3[_0xcedb('0x49')]();else{if(_0x54d040[_0xcedb('0x58')](_0x57e3be)){const _0x5d45a0=this[_0xcedb('0x11a')][_0xcedb('0x8b')](_0x57e3be['start']['nodeBefore'],'end');this[_0xcedb('0x81')](_0x2f91b3,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x54d040[_0xcedb('0x1a')],_0x5d45a0));const _0x51e305=_0xa49531(),_0x2515c8=_0x2f91b3[_0xcedb('0x78')]['id'],_0x3cbc86=_0x2f91b3[_0xcedb('0x10')]+':'+_0x2f91b3[_0xcedb('0x4a')];this[_0xcedb('0x95')]({'id':_0x51e305,'type':_0x3cbc86,'createdAt':new Date(),'authorId':_0x2515c8,'data':_0x2f91b3['data'],'attributes':_0x2f91b3[_0xcedb('0x21')]});const _0x42ec1a=this[_0xcedb('0x11a')]['createPositionAt'](_0x57e3be[_0xcedb('0x9e')][_0xcedb('0x2c')],_0xcedb('0xac')),_0x426a50=this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x42ec1a,_0x54d040[_0xcedb('0x9e')]);this[_0xcedb('0x10c')](_0x3cbc86,_0x51e305,_0x2515c8,_0x426a50);}else{if(_0x54d040[_0xcedb('0x6')](_0x57e3be[_0xcedb('0x1a')])){const _0x4cc16d=this[_0xcedb('0x11a')][_0xcedb('0x8b')](_0x57e3be[_0xcedb('0x1a')]['nodeBefore'],_0xcedb('0x9e'));this[_0xcedb('0x81')](_0x2f91b3,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x54d040['start'],_0x4cc16d));}else{const _0x23173a=this[_0xcedb('0x11a')][_0xcedb('0x8b')](_0x57e3be[_0xcedb('0x9e')][_0xcedb('0x2c')],_0xcedb('0xac'));this[_0xcedb('0x81')](_0x2f91b3,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x23173a,_0x54d040[_0xcedb('0x9e')]));}}}}[_0xcedb('0x68')](_0x46f17){for(const {suggestion:_0x4b2ad3,meta:_0x56e8d6}of this[_0xcedb('0x109')](_0x46f17,_0xcedb('0x101'))){if(!_0x56e8d6[_0xcedb('0xd')])continue;const _0xb0d51b=_0x4b2ad3[_0xcedb('0xd5')]();for(const _0x530189 of _0xb0d51b)if(!_0x46f17[_0xcedb('0x99')](_0x530189)[_0xcedb('0xfb')])return!0x0;}return!0x1;}[_0xcedb('0x56')](_0x46a9b1){const _0x2a9429=this[_0xcedb('0x124')]['plugins'][_0xcedb('0xf1')](_0xcedb('0x52'))[_0xcedb('0xd6')](_0x46a9b1);if(!_0x2a9429)throw new _0x47ae60(_0xcedb('0x98'),this);return _0x2a9429;}[_0xcedb('0x1f')](_0x16ef38){const _0x27690f=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52')),_0x5447ae=_0x353f62(_0xcedb('0x116')+_0x16ef38),_0xa1af89=_0x27690f[_0xcedb('0xd6')](_0x5447ae);return _0xa1af89||_0x27690f['addUser']({'id':_0x5447ae,'name':_0x16ef38});}[_0xcedb('0x7f')](_0x37325b,_0x273e76,_0x47d78d,_0xa341e6,_0x1e9c78){const _0xe3b5df=this[_0xcedb('0x56')](_0xa341e6),_0x5e575d=this['_suggestionFactory']['buildSuggestion'](_0x37325b,_0x273e76,_0x47d78d,_0xe3b5df,_0x1e9c78,_0x4e4801=>this[_0xcedb('0x12d')](_0x47d78d,{'attributes':_0x4e4801}));return this['listenTo'](_0x5e575d,_0xcedb('0x24'),()=>{this[_0xcedb('0x12d')](_0x47d78d,{'state':_0xcedb('0x4b')});},{'priority':'high'}),this['listenTo'](_0x5e575d,_0xcedb('0xa9'),()=>{this[_0xcedb('0x12d')](_0x47d78d,{'state':'rejected'});},{'priority':_0xcedb('0x27')}),this[_0xcedb('0xee')]['set'](_0x47d78d,_0x5e575d),this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x5e575d,'notReady'),_0x5e575d;}['_splitMarkerName'](_0x5eb364){const _0x130cf9=_0x5eb364[_0xcedb('0x4e')](':');return{'group':_0x130cf9[0x0],'type':_0x130cf9[0x1],'subType':_0x130cf9[_0xcedb('0xfb')]>=0x5?_0x130cf9[0x2]:null,'id':_0x130cf9[_0xcedb('0xfb')]<0x5?_0x130cf9[0x2]:_0x130cf9[0x3],'authorId':_0x130cf9[_0xcedb('0xfb')]<0x5?_0x130cf9[0x3]:_0x130cf9[0x4],'markerCount':0x6==_0x130cf9[_0xcedb('0xfb')]?_0x130cf9[0x5]:null};}[_0xcedb('0x13')](_0x3549fa,_0x290549,_0x33d331){const _0x48abba=_0x3549fa['getFirstRange'](),_0x1fa1af=_0x48abba[_0xcedb('0x1a')],_0x2cad15=_0x48abba[_0xcedb('0x9e')];this['_setSuggestionRange'](_0x3549fa,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x1fa1af,_0x290549));const _0x14a5c8=_0xa49531(),_0x296e1c=_0x3549fa[_0xcedb('0x78')]['id'],_0x676413=_0x3549fa[_0xcedb('0x10')]+(_0x3549fa['subType']?':'+_0x3549fa['subType']:'');this[_0xcedb('0x95')]({'id':_0x14a5c8,'type':_0x676413,'createdAt':new Date(),'authorId':_0x296e1c,'originalSuggestionId':_0x3549fa['id'],'attributes':_0x3549fa[_0xcedb('0x21')],'data':_0x3549fa['data']}),_0xcedb('0x110')==_0x3549fa['type']&&(_0x33d331=this[_0xcedb('0x11a')][_0xcedb('0x16')](_0x33d331[_0xcedb('0x2c')])),this[_0xcedb('0x10c')](_0x676413,_0x14a5c8,_0x296e1c,this['_model']['createRange'](_0x33d331,_0x2cad15));}['_findSuggestions'](_0x3e82d5,_0x3fa716=null){const _0x46e99d=[],_0x13cabb=this[_0xcedb('0x11a')]['schema'],_0x3723b7=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52'))['me'];for(const _0xa59ac8 of this['getSuggestions']())if(_0xa59ac8[_0xcedb('0x115')]&&(!_0x3fa716||_0xa59ac8[_0xcedb('0x10')]==_0x3fa716))for(const _0x14ec9c of _0xa59ac8[_0xcedb('0xd5')]()){const _0x26e391=_0x3e82d5[_0xcedb('0x1a')][_0xcedb('0xe8')](_0x14ec9c[_0xcedb('0x9e')])||_0x3e82d5[_0xcedb('0x9e')][_0xcedb('0xe8')](_0x14ec9c[_0xcedb('0x1a')]);if(_0x26e391||_0x3e82d5[_0xcedb('0x8')](_0x14ec9c)){const _0x4138d0=_0x3e82d5[_0xcedb('0x58')](_0x14ec9c)&&Bt(_0x13cabb,_0x14ec9c[_0xcedb('0x1a')],_0x3e82d5),_0x238765=_0x14ec9c[_0xcedb('0x58')](_0x3e82d5)&&Bt(_0x13cabb,_0x3e82d5[_0xcedb('0x1a')],_0x14ec9c);_0x46e99d[_0xcedb('0xa')]({'suggestion':_0xa59ac8,'meta':{'isOwn':_0x3723b7==_0xa59ac8['author'],'isNextTo':_0x26e391,'isInsideObject':_0x4138d0,'containsRangeInObject':_0x238765}});break;}}return _0x46e99d;}[_0xcedb('0x10c')](_0x50dbda,_0xff1662,_0x1f5c2b,_0x267112,_0xaba20b){this[_0xcedb('0x11a')][_0xcedb('0x139')](_0x3266ba=>{let _0x4b0a60='suggestion:'+_0x50dbda+':'+_0xff1662+':'+_0x1f5c2b;_0xaba20b&&(_0x4b0a60=_0x4b0a60+':'+_0xaba20b),_0x3266ba[_0xcedb('0x12')](_0x4b0a60,{'range':_0x267112,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xcedb('0x77')](_0x1669e4){const _0x2f9269=_0x1669e4[_0xcedb('0x8e')],_0x178a30=_0x1669e4[_0xcedb('0x4f')];_0x1669e4['previous']=null,null!=_0x2f9269&&(_0x2f9269[_0xcedb('0x4f')]=null),_0x1669e4[_0xcedb('0x4f')]=null,null!=_0x178a30&&(_0x178a30[_0xcedb('0x8e')]=null),_0xcedb('0x46')==this[_0xcedb('0xc4')][_0xcedb('0xf1')](_0x1669e4)&&(this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x1669e4,_0xcedb('0xfe')),this['fire'](_0xcedb('0xf'),_0x1669e4,_0x2f9269,_0x178a30));}[_0xcedb('0x95')](_0x152e70){const _0x363570=_0x152e70['id'],_0x255169=this['addSuggestionData'](_0x152e70);if(this['_adapter']&&this['_adapter'][_0xcedb('0xf9')]){const _0x4094a5=this['editor']['plugins'][_0xcedb('0xf1')](_0xcedb('0x7c')),_0x445c00=_0x255169['hasComments'],_0x83f88=_0x255169[_0xcedb('0x4a')]?_0x255169[_0xcedb('0x10')]+':'+_0x255169[_0xcedb('0x4a')]:_0x255169[_0xcedb('0x10')],_0x59e422=this[_0xcedb('0x124')]['locale'],_0x3b0f2f=_0x4094a5['add'](_0x1365f6(_0x59e422,_0xcedb('0x103'))),_0x5bbbec={'id':_0x363570,'type':_0x83f88,'hasComments':_0x445c00,'data':_0x152e70['data']||null,'originalSuggestionId':_0x152e70['originalSuggestionId']||null,'attributes':_0x255169['attributes']};this[_0xcedb('0x137')][_0xcedb('0xf9')](_0x5bbbec)[_0xcedb('0x45')](_0x5bba2b=>{_0x255169[_0xcedb('0xc5')]=!0x0,_0x4094a5[_0xcedb('0x8f')](_0x3b0f2f),_0x5bba2b&&_0x5bba2b[_0xcedb('0xb3')]&&(this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x363570)[_0xcedb('0xb3')]=_0x5bba2b[_0xcedb('0xb3')]);})[_0xcedb('0xb9')](_0x1e7b32=>{throw _0x1900c0('error-saving-suggestion-data-suggestion-discarded'),this[_0xcedb('0x124')][_0xcedb('0xdd')][_0xcedb('0x91')]({'isUndoable':!0x1},()=>{_0x255169[_0xcedb('0xa9')]();}),_0x255169[_0xcedb('0x102')](),this[_0xcedb('0xee')][_0xcedb('0x1e')](_0x255169['id']),this[_0xcedb('0xc4')][_0xcedb('0x1e')](_0x255169),_0x1e7b32;});}return _0x255169;}[_0xcedb('0x12d')](_0x591baa,_0x1bdd8e){const _0x2640c7=this[_0xcedb('0x124')]['plugins'][_0xcedb('0xf1')](_0xcedb('0x7c')),_0x3c15ee=this[_0xcedb('0xaa')](_0x591baa);if(this[_0xcedb('0x137')]&&this[_0xcedb('0x137')][_0xcedb('0x17')]){if(_0x3c15ee['_saved']){const _0x536907=_0x2640c7[_0xcedb('0xe2')](_0x1365f6(this[_0xcedb('0x124')][_0xcedb('0xf3')],_0xcedb('0x103')));this[_0xcedb('0x137')][_0xcedb('0x17')](_0x591baa,_0x1bdd8e)[_0xcedb('0x45')](()=>{_0x2640c7[_0xcedb('0x8f')](_0x536907);});}else _0x3c15ee['on'](_0xcedb('0xae'),()=>{this[_0xcedb('0x12d')](_0x591baa,_0x1bdd8e);});}}['_getSuggestionData'](_0x2cb6bc){if(!this['_adapter']||!this[_0xcedb('0x137')]['getSuggestion'])throw new _0x47ae60(_0xcedb('0x9f'),this);return this['_adapter']['getSuggestion'](_0x2cb6bc);}[_0xcedb('0xfc')](_0x349ffa){const {id:_0x5b684b,type:_0x517b43,subType:_0x5d1d07,authorId:_0x4a5ba3}=this[_0xcedb('0x2b')](_0x349ffa),_0x2e1718=this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x5b684b)||this[_0xcedb('0x7f')](_0x517b43,_0x5d1d07,_0x5b684b,_0x4a5ba3,{});switch(this[_0xcedb('0x5c')](_0x2e1718,_0x517b43,_0x5d1d07,_0x4a5ba3),this[_0xcedb('0xc4')][_0xcedb('0xf1')](_0x2e1718)){case _0xcedb('0x85'):this[_0xcedb('0xbe')](_0x5b684b)[_0xcedb('0x45')](_0x3029ec=>{let _0x380faf=Promise[_0xcedb('0xc0')]();_0x3029ec[_0xcedb('0x120')]&&(_0x380faf=this[_0xcedb('0x90')]['fetchCommentThread']({'channelId':this['editor'][_0xcedb('0xc')]['get']('collaboration.channelId'),'threadId':_0x5b684b})),_0x380faf['then'](()=>{this[_0xcedb('0xbf')](_0x3029ec)['_saved']=!0x0;});}),this['_suggestionState'][_0xcedb('0x11b')](_0x2e1718,'markerReady');break;case _0xcedb('0xfe'):this[_0xcedb('0x12d')](_0x5b684b,{'state':'open'});case'dataReady':this['_suggestionState'][_0xcedb('0x11b')](_0x2e1718,'ready'),this[_0xcedb('0x64')](_0xcedb('0x5a'),_0x2e1718);break;case _0xcedb('0x46'):this[_0xcedb('0x64')]('suggestionChanged',_0x2e1718);}return _0x2e1718[_0xcedb('0xd7')](_0x349ffa),_0x2e1718;}[_0xcedb('0x4d')](_0x19b71e){const _0x1edfe0=Array[_0xcedb('0x8a')](_0x19b71e)[_0xcedb('0x111')](_0x42eb84=>!_0x42eb84['isMultiRange']),_0x4fc240=this[_0xcedb('0x2')]({'skipNotAttached':!0x0})[_0xcedb('0x111')](_0x583850=>!_0x583850[_0xcedb('0x136')]),_0x4fd4f4=_0x4fc240[_0xcedb('0x111')](_0x5e1431=>!_0x19b71e[_0xcedb('0x138')](_0x5e1431)),_0x5b9bc6=new Map(_0x4fc240['map'](_0xb4c3c8=>[_0xb4c3c8,this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xb4c3c8['type'],_0xb4c3c8[_0xcedb('0x4a')],_0xcedb('0x1c'))])),_0x2f1f5d=new Map(_0x4fc240[_0xcedb('0xdb')](_0x5aa5da=>[_0x5aa5da,_0x5aa5da[_0xcedb('0x117')]()])),_0x3692b9=new Set(),_0x59d19f=new Set();for(let _0x250c19=0x0;_0x250c19<_0x1edfe0['length'];_0x250c19++)_0x368e4b(_0x1edfe0[_0x250c19],_0x1edfe0,_0x250c19+0x1);for(let _0x239a7e=0x0;_0x239a7e<_0x1edfe0[_0xcedb('0xfb')];_0x239a7e++)_0x368e4b(_0x1edfe0[_0x239a7e],_0x4fd4f4,0x0);for(let _0x2504f1=0x0;_0x2504f1<_0x1edfe0[_0xcedb('0xfb')];_0x2504f1++){const _0x59fd0a=_0x1edfe0[_0x2504f1];!_0x59d19f[_0xcedb('0x138')](_0x59fd0a)&&_0x59fd0a['previous']&&(_0x59fd0a[_0xcedb('0x8e')]['next']===_0x59fd0a&&(_0x59fd0a[_0xcedb('0x8e')]['next']=null),_0x59fd0a[_0xcedb('0x8e')]=null),!_0x3692b9[_0xcedb('0x138')](_0x59fd0a)&&_0x59fd0a[_0xcedb('0x4f')]&&(_0x59fd0a[_0xcedb('0x4f')][_0xcedb('0x8e')]===_0x59fd0a&&(_0x59fd0a[_0xcedb('0x4f')][_0xcedb('0x8e')]=null),_0x59fd0a[_0xcedb('0x4f')]=null);}function _0x368e4b(_0xb3f268,_0x3dff0a,_0x332868){for(let _0x5d6159=_0x332868;_0x5d6159<_0x3dff0a[_0xcedb('0xfb')];_0x5d6159++){const _0x23cb24=_0x5d6be5(_0xb3f268,_0x3dff0a[_0x5d6159]);_0x23cb24&&(_0x23cb24[0x0][_0xcedb('0x4f')]=_0x23cb24[0x1],_0x23cb24[0x1][_0xcedb('0x8e')]=_0x23cb24[0x0],_0x3692b9[_0xcedb('0xe2')](_0x23cb24[0x0]),_0x59d19f[_0xcedb('0xe2')](_0x23cb24[0x1]));}}function _0x5d6be5(_0x2cdfcd,_0x46d11a){if(_0x2cdfcd[_0xcedb('0xff')]['id']!==_0x46d11a[_0xcedb('0xff')]['id'])return null;const _0x18271f=_0x5b9bc6['get'](_0x2cdfcd)(_0x2cdfcd,_0x46d11a,_0x2f1f5d[_0xcedb('0xf1')](_0x2cdfcd),_0x2f1f5d['get'](_0x46d11a));if(!_0x18271f)return null;return _0x5b9bc6[_0xcedb('0xf1')](_0x46d11a)(_0x2cdfcd,_0x46d11a,_0x2f1f5d[_0xcedb('0xf1')](_0x2cdfcd),_0x2f1f5d[_0xcedb('0xf1')](_0x46d11a))?_0x18271f[0x1]['commentThread']&&_0x18271f[0x1][_0xcedb('0x69')][_0xcedb('0xfb')]?null:_0x18271f:null;}}[_0xcedb('0xb6')](_0x7c853b){const _0xbcfbe6=Array['from'](_0x7c853b),_0x26da81=this[_0xcedb('0x2')]({'skipNotAttached':!0x0}),_0x5b3993=_0x26da81['filter'](_0x1d81e2=>!_0x7c853b[_0xcedb('0x138')](_0x1d81e2)),_0x542361=new Map(_0xbcfbe6[_0xcedb('0xdb')](_0x4a13de=>[_0x4a13de,this[_0xcedb('0x61')][_0xcedb('0xdc')](_0x4a13de[_0xcedb('0x10')],_0x4a13de[_0xcedb('0x4a')],_0xcedb('0x11e'))])),_0x4c17a1=new Map(_0x26da81[_0xcedb('0xdb')](_0x5bf81f=>[_0x5bf81f,_0x5bf81f[_0xcedb('0xd5')]()]));for(let _0x1efe9=0x0;_0x1efe9<_0xbcfbe6[_0xcedb('0xfb')];_0x1efe9++){if(_0x4764dd(this,_0xbcfbe6[_0x1efe9],_0xbcfbe6,_0x1efe9+0x1))return!0x0;}for(let _0x138fd0=0x0;_0x138fd0<_0xbcfbe6[_0xcedb('0xfb')];_0x138fd0++){if(_0x4764dd(this,_0xbcfbe6[_0x138fd0],_0x5b3993,0x0))return!0x0;}return!0x1;function _0x4764dd(_0x4eb322,_0x413429,_0x124c65,_0x3b7992){for(let _0x4cb70c=_0x3b7992;_0x4cb70c<_0x124c65[_0xcedb('0xfb')];_0x4cb70c++){const _0x56c8df=_0x124c65[_0x4cb70c];if(_0x56c8df['type']!==_0x413429[_0xcedb('0x10')]||_0x56c8df[_0xcedb('0xff')]['id']!==_0x413429['author']['id']||_0x56c8df[_0xcedb('0x4a')]!==_0x413429[_0xcedb('0x4a')])continue;const _0x12d284=_0x542361[_0xcedb('0xf1')](_0x413429),_0x58d20d=_0x4c17a1[_0xcedb('0xf1')](_0x413429),_0x548a05=_0x4c17a1[_0xcedb('0xf1')](_0x56c8df),_0x2f48fb=_0x413429['commentThread']&&_0x413429[_0xcedb('0x69')][_0xcedb('0xfb')],_0x4ff184=_0x56c8df['commentThread']&&_0x56c8df[_0xcedb('0x69')][_0xcedb('0xfb')];if(!_0x2f48fb&&_0x12d284(_0x548a05,_0x58d20d))return _0x4eb322[_0xcedb('0xea')](_0x56c8df,_0x413429),_0x4c17a1[_0xcedb('0x1e')](_0x413429),!0x0;if(!_0x4ff184&&_0x12d284(_0x58d20d,_0x548a05))return _0x4eb322[_0xcedb('0xea')](_0x413429,_0x56c8df),_0x4c17a1[_0xcedb('0x1e')](_0x56c8df),!0x0;}return!0x1;}}[_0xcedb('0xea')](_0x59d4a9,_0x233158){if(_0x59d4a9[_0xcedb('0x136')])for(const _0x3b2ba1 of _0x233158['getRanges']())_0x59d4a9['addRange'](_0x3b2ba1);else{const _0x833443=_0x233158[_0xcedb('0x117')]()['end'];this[_0xcedb('0x81')](_0x59d4a9,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x59d4a9[_0xcedb('0x117')]()[_0xcedb('0x1a')],_0x833443));}_0x233158[_0xcedb('0x49')]();}}class Dt{constructor(_0x503405){this['_editor']=_0x503405,this[_0xcedb('0x11a')]=_0x503405['model'],this[_0xcedb('0xb4')]=new Map(),this[_0xcedb('0xfa')]=new Map(),this[_0xcedb('0xb0')]();}[_0xcedb('0x41')](_0x20745f,_0x3520a6,_0xbc3114,_0x167c0f,_0x4ee203,_0x8baf68){return new _0x58c80b(this[_0xcedb('0x11a')],{'type':_0x20745f,'subType':_0x3520a6,'id':_0xbc3114,'author':_0x167c0f,'creator':_0x167c0f,'attributes':_0x4ee203,'onAttributesChange':_0x8baf68,'onAccept':(..._0x5884de)=>this[_0xcedb('0xdc')](_0x20745f,_0x3520a6,_0xcedb('0x24'))(..._0x5884de),'onDiscard':(..._0x589286)=>this[_0xcedb('0xdc')](_0x20745f,_0x3520a6,_0xcedb('0xa9'))(..._0x589286)});}[_0xcedb('0xcf')](_0x45a261,_0x9b9fb1,_0x5cbea3,_0x77cdb0){const _0x258f5c=_0x45a261+':'+_0x9b9fb1+':'+_0x5cbea3;this[_0xcedb('0xb4')][_0xcedb('0x11b')](_0x258f5c,_0x77cdb0);}[_0xcedb('0xdc')](_0x374f4a,_0x5666ff,_0x5aea03){const _0x1c3adf=_0x374f4a+':'+_0x5666ff+':'+_0x5aea03;return this[_0xcedb('0xb4')]['get'](_0x1c3adf)||this['_defaultCallbacks'][_0xcedb('0xf1')](_0x374f4a+':'+_0x5aea03);}[_0xcedb('0xb0')](){const _0x9ba042=()=>{},_0x3e3180=_0x5a3e54=>{_0x5a3e54[_0xcedb('0x94')]((_0x2dae6c,_0x51c2ef)=>_0x2dae6c['start'][_0xcedb('0x10f')](_0x51c2ef[_0xcedb('0x1a')])?0x1:-0x1),this[_0xcedb('0x11a')]['change'](_0x427952=>{for(const _0x397e9c of _0x5a3e54){let _0x5a0041;_0x5a0041=_0x397e9c[_0xcedb('0x9e')][_0xcedb('0x2a')]&&_0x397e9c[_0xcedb('0x9e')][_0xcedb('0x2c')]==_0x397e9c['start']['nodeAfter']?_0x427952[_0xcedb('0x11')](_0x397e9c[_0xcedb('0x1a')][_0xcedb('0x3f')],'on'):_0x427952[_0xcedb('0x11')](_0x397e9c),this[_0xcedb('0x11a')][_0xcedb('0xe0')](_0x5a0041,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x57ae2d=(_0x2b2092,_0x2737cb)=>{this[_0xcedb('0x11a')]['change'](_0x45d8ee=>{const {commandName:_0x4a9a31,commandParams:_0x429611=[]}=_0x2737cb,_0x21ac99=_0x2b2092[_0xcedb('0xdb')](_0x48a35f=>(_t(_0x48a35f)&&(_0x48a35f=this[_0xcedb('0x11a')]['createRange'](_0x48a35f[_0xcedb('0x9e')])),_0x48a35f))[_0xcedb('0x111')](_0x4f026d=>_0xcedb('0x19')!==_0x4f026d['root'][_0xcedb('0x119')]);if(_0x21ac99[_0xcedb('0xfb')]<0x1)return;const _0x5c1d6e=Array[_0xcedb('0x8a')](this[_0xcedb('0x11a')][_0xcedb('0xeb')][_0xcedb('0xb8')][_0xcedb('0xd5')]())['map'](_0x1d7aa4=>_0x5261dd[_0xcedb('0xec')](_0x1d7aa4));_0x45d8ee[_0xcedb('0xa7')](_0x21ac99);for(const _0x17645f of this[_0xcedb('0x3c')][_0xcedb('0x1b')][_0xcedb('0x1b')]())_0x17645f[_0xcedb('0x9a')]();_0x429611[_0xcedb('0xa')]({'forceDefaultExecution':!0x0}),this[_0xcedb('0x3c')][_0xcedb('0x106')](_0x4a9a31,..._0x429611);const _0x63fec4=_0x5c1d6e[_0xcedb('0x111')](_0x5ad5b3=>_0xcedb('0x19')!=_0x5ad5b3[_0xcedb('0x65')][_0xcedb('0x119')]);_0x63fec4['length']>0x0&&_0x45d8ee[_0xcedb('0xa7')](_0x63fec4);for(const _0x128fcd of _0x5c1d6e)_0x128fcd[_0xcedb('0x9d')]();});},_0x428e54=(_0x222eb0,_0x105190)=>0x1==_0x222eb0[_0xcedb('0xfb')]&&0x1==_0x105190[_0xcedb('0xfb')]&&_0x222eb0[0x0]['end']['isEqual'](_0x105190[0x0]['start']),_0x444033=(_0x1e9ed1,_0x3f0a3d,_0x3d0d7c,_0x557c7b)=>xt(_0x1e9ed1,_0x3f0a3d,_0x3d0d7c,_0x557c7b,this[_0xcedb('0x11a')])?[_0x1e9ed1,_0x3f0a3d]:xt(_0x3f0a3d,_0x1e9ed1,_0x557c7b,_0x3d0d7c,this[_0xcedb('0x11a')])?[_0x3f0a3d,_0x1e9ed1]:null;this[_0xcedb('0xfa')]['set'](_0xcedb('0x8c'),_0x9ba042),this[_0xcedb('0xfa')][_0xcedb('0x11b')](_0xcedb('0x48'),_0x3e3180),this[_0xcedb('0xfa')]['set']('insertion:join',_0x428e54),this[_0xcedb('0xfa')][_0xcedb('0x11b')](_0xcedb('0x2f'),_0x444033),this['_defaultCallbacks']['set']('deletion:accept',_0x3e3180),this[_0xcedb('0xfa')][_0xcedb('0x11b')](_0xcedb('0xa0'),_0x9ba042),this[_0xcedb('0xfa')]['set'](_0xcedb('0x2d'),_0x428e54),this['_defaultCallbacks'][_0xcedb('0x11b')](_0xcedb('0x129'),_0x444033),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatInline:accept',_0x57ae2d),this['_defaultCallbacks'][_0xcedb('0x11b')](_0xcedb('0xd3'),_0x9ba042),this['_defaultCallbacks'][_0xcedb('0x11b')](_0xcedb('0xc8'),_0x428e54),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatInline:chain',_0x9ba042),this[_0xcedb('0xfa')]['set']('formatBlock:accept',_0x57ae2d),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatBlock:discard',_0x9ba042),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatBlock:join',_0x428e54),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatBlock:chain',_0x9ba042);}}function Bt(_0xb04695,_0x53c22b,_0x6e3bd6){for(const _0x40fdb3 of _0x53c22b[_0xcedb('0x2c')][_0xcedb('0x15')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x40fdb3['root']==_0x40fdb3)return!0x1;if(!_0x6e3bd6[_0xcedb('0x83')](_0x40fdb3))return!0x1;if(_0xb04695[_0xcedb('0x9c')](_0x40fdb3)||_0xb04695[_0xcedb('0xab')](_0x40fdb3))return!0x0;}return!0x1;}function _t(_0x432da0){return _0x432da0[_0xcedb('0x9e')][_0xcedb('0x2c')]==_0x432da0['start'][_0xcedb('0x3f')]&&_0x432da0[_0xcedb('0x9e')][_0xcedb('0x86')];}function Mt(_0x508279,_0x50985d,_0x34dfb5,_0x2e7555){const _0x2ee84e=_0x3a7325=>!_0x3a7325[_0xcedb('0x47')]['is']('$textProxy')&&!_0x2e7555[_0xcedb('0x9c')](_0x3a7325[_0xcedb('0x47')]),_0x46e7bb=_0x508279[_0xcedb('0x1a')]['getLastMatchingPosition'](_0x2ee84e),_0x175cdd=_0x508279[_0xcedb('0x9e')][_0xcedb('0x107')](_0x2ee84e,{'direction':_0xcedb('0x10e')});return(!_0x508279[_0xcedb('0x1a')][_0xcedb('0xe8')](_0x46e7bb)||!_0x508279[_0xcedb('0x9e')][_0xcedb('0xe8')](_0x175cdd))&&(_0x46e7bb[_0xcedb('0x10f')](_0x175cdd)?_0x34dfb5[_0xcedb('0xa5')](_0x50985d,{'range':_0x34dfb5['createRange'](_0x46e7bb,_0x175cdd)}):_0x34dfb5[_0xcedb('0xc7')](_0x50985d),!0x0);}function $t(_0xe17898){return _0x353f62(_0xe17898);}function Nt(_0x11cb3c){const _0x52fd81=_0x11cb3c[_0xcedb('0x1a')][_0xcedb('0x3f')];return _0x52fd81&&_0x52fd81['is']('element');}function Rt(_0x18ee99,_0x1a1798){const _0x38684c=_0x1a1798[_0xcedb('0x6a')][_0xcedb('0x9c')](_0x18ee99)||_0x1a1798[_0xcedb('0x6a')][_0xcedb('0xc3')](_0x18ee99);return _0x1a1798[_0xcedb('0xf0')](_0x1a1798[_0xcedb('0x8b')](_0x18ee99,_0xcedb('0x104')),_0x38684c?_0x1a1798[_0xcedb('0x59')](_0x18ee99):_0x1a1798[_0xcedb('0x8b')](_0x18ee99,'end'));}function xt(_0x40fb74,_0x102da7,_0x6b2537,_0xbc7b65,_0x47d75e){if(_0x6b2537[_0xcedb('0x9e')][_0xcedb('0xe8')](_0xbc7b65['start']))return!0x0;if(_0x40fb74[_0xcedb('0x10')]!=_0x102da7[_0xcedb('0x10')])return!0x1;if(!_0x6b2537[_0xcedb('0x9e')][_0xcedb('0xd9')](_0xbc7b65[_0xcedb('0x1a')]))return!0x1;const _0x393a94=_0x47d75e[_0xcedb('0xf0')](_0x6b2537[_0xcedb('0x9e')],_0xbc7b65[_0xcedb('0x1a')])[_0xcedb('0x50')]();for(const _0x1175b3 of _0x393a94)if([_0xcedb('0x60'),_0xcedb('0x33')][_0xcedb('0x1d')](_0x1175b3['type'])&&_0x47d75e['schema'][_0xcedb('0xab')](_0x1175b3['item']))return!0x1;return!0x0;}
|