@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230705.0 → 0.0.0-nightly-20230706.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-20230706.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-20230706.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230706.0",
|
|
44
44
|
"lodash-es": "^4.17.11"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1d21=['isInsideObject','isSelectable','createElement','range','_getAuthorFromId','deletion:discard','_handleNewSuggestionMarker','track-changes-adapter-already-set','_findSuggestions','enqueueChange','discard','getRanges','change','isRemovable','batch','before','_createSuggestion','getSuggestion','getFirstMarker','dataToMarker','previous','options','oldRange','add','map','getItems','trackChangesCommand','isNextTo','always','addHighlight','model','getShiftedBy','newRange','includes','targetPosition','some','registerCustomCallback','clear','trackChanges.mergeNestedSuggestions','setSelection','after','insertion:accept','containsRangeInObject','end','formatInline:discard','_joinSuggestions','low','createPositionAfter','setAttribute','removed','type','isLocal','ck-suggestion-marker-','commands','change:_saved','removeAttribute','containsItem','track-changes-suggestion-data-mismatch','isCollapsed','elementEnd','PENDING_ACTION_SUGGESTION','parent','authoredAt','consume','suggestionChanged','formatBlock:accept','insertion:discard','hasComments','suggestionLoaded','default','push','remove','getDifference','isBefore','_isForcedDefaultExecutionBlock','rejected','external:','substr','getChanges','markerToData','next','locale','updateSuggestion','formatBlock:join','join','showSuggestionHighlights','discardSelectedSuggestions','value','_mergeNestedSuggestions','_suggestions','high','rootName','acceptSuggestion','createdAt','addUser','getNearestSelectionRange','detach','discardAllSuggestions','isInContent','_trackFormatChanges','fetchCommentThread','splitPosition','upcast','_removeSuggestion','elementToElement','track-changes-user-not-found','getIntersection','size','removeMarkers','markInlineFormat','fromRange','forward','formatInline:accept','item','multipleBlocks','isAtStart','getMultiRangeId','hasSuggestion','CommentsRepository','resolve','createPositionAt','markMultiRangeBlockFormat','addMarker:suggestion:formatBlock','subType','_saved','isObject','applyOperation','markInsertion','mapper','never','getMarkers','schema','trackChanges.trackFormatChanges','howMany','isAfter','data','accept','reconvertMarker','dataDowncast','unbind','$textProxy','toViewElement','getUser','getRange','length','position','_refreshSuggestionsChain','dataReady','formatBlock','hasCommentThread','getChangedMarkers','isExternal','isDocumentOperation','formatBlock:','config','_getSuggestionData','for','markerReady','multi','_rangeIsInLocalUserInsertion','createRange','enableReadOnlyMode','addMarker','ck-suggestion-marker','clone','_customCallbacks','getAllAdjacentSuggestions','formatBlock:discard','createPositionBefore','formatBlock:chain','_commentsRepository','marker-count','values','deleteContent','createSelection','_updateSuggestionData','normal','containsRange','insert','sort','toJSON','markerName','containsPosition','_joinWithAdjacentSuggestions','every','creator','acceptSelectedSuggestions','@external','nodeBefore','getSuggestionCallback','then','_editor','conversion','author','editingDowncast','setTo','change:activeMarkers','discardSuggestion','editor','skipNestingCheck','collaboration.channelId','elementStart','adapter','buildSuggestion','filter','root','differ','markMultiRangeDeletion','addCommentThread','addComment','suggestion:','split','addRange','forceDefaultExecution','isMultiRange','removeComment','_adapter','commandName','getFirstRange','addMarkerName','formatInline:','stop','isAtEnd','isLimit','_splitMarkerName','_setSuggestionRange','element','addMarker:suggestion','updateMarker','deletion:','isEqual','name','commentThread','widget','createRangeIn','getSuggestions','writer','getWalker','PendingActions','start','_defaultCallbacks','formatInline','getCustomProperty','_addThreadToSuggestion','formatInline:chain','deletion:chain','_cutOutSuggestionMarker','TrackChangesEditing','deletion:accept','attributes','has','isUndo','ck-suggestion-marker--active','_checkSuggestionCorrectness','addClass','isIntersectingWithRange','nodeAfter','_breakSuggestionMarker','init','addSuggestion','_model','markDeletion','isTouching','getAncestors','originalSuggestionId','update:suggestion','catch','get','_suggestionState','addSuggestionData','_addSuggestionMarker','notReady','from','removeMarker','moveTargetPosition','getAttribute','_getExternalAuthor','authorName','markerToHighlight','error-saving-suggestion-data-suggestion-discarded','track-changes-adapter-missing-getsuggestion','stopListening','$marker','_enabledCommands','deletion','suggestion','ck-suggestion-marker-formatBlock','suggestion-type','highest','markers','insertion:','set','ready','bindElementToMarker','selection','splice','insertion','_suggestionFactory','removeClass','define','listenTo','plugins','insertContent','isOwn','Users','backward','activeMarkers','getLastMatchingPosition','fire','_setSuggestionData','formatGroupId','execute','delete','rethrowUnexpectedError','trackChanges','enableCommand','insertion:join','group','document','removeMarker:suggestion:formatBlock','change:data','acceptAllSuggestions','_onDiscard','data-suggestion','$graveyard','track-changes-command-not-found'];(function(_0x4cf64a,_0x1d21c5){const _0x26bd26=function(_0x269efc){while(--_0x269efc){_0x4cf64a['push'](_0x4cf64a['shift']());}};_0x26bd26(++_0x1d21c5);}(_0x1d21,0x78));const _0x26bd=function(_0x4cf64a,_0x1d21c5){_0x4cf64a=_0x4cf64a-0x0;let _0x26bd26=_0x1d21[_0x4cf64a];return _0x26bd26;};import{Plugin as _0x10f1a0,PendingActions as _0x14901a}from'ckeditor5/src/core';import{LiveRange as _0x597006}from'ckeditor5/src/engine';import{CKEditorError as _0x1d5d2f,uid as _0x4b465a,priorities as _0x30fdd9,logWarning as _0x558002}from'ckeditor5/src/utils';import{toWidget as _0x27696b}from'ckeditor5/src/widget';import{Users as _0x506291,hashObject as _0x56cfb1}from'ckeditor5-collaboration/src/collaboration-core';import _0x6a2f3d from'./commands/trackchangescommand';import _0x4fad80 from'./commands/acceptsuggestioncommand';import _0x1ad3b3 from'./commands/discardsuggestioncommand';import _0x477f91 from'./commands/executeonallsuggestionscommand';import _0x53c874 from'./commands/executeonselectedsuggestionscommand';import _0x4f7e69 from'./suggestion';import _0x5d4d04 from'./suggestiondescriptionfactory';import _0x33b890 from'./integrations/alignment';import _0x163bea from'./integrations/basicstyles';import _0x3ad901 from'./integrations/blockquote';import _0x53d841 from'./integrations/ckbox';import _0x2fe6a9 from'./integrations/codeblock';import _0x5883ce from'./integrations/comments';import _0x1a4ab4 from'./integrations/deletecommand';import _0x3f124d from'./integrations/documentlist';import _0x23da42 from'./integrations/entercommand';import _0x2dab63 from'./integrations/findandreplace';import _0x44f717 from'./integrations/font';import _0x5272db from'./integrations/formatpainter';import _0x964991 from'./integrations/heading';import _0x59f310 from'./integrations/highlight';import _0x13f54e from'./integrations/horizontalline';import _0x33c4cf from'./integrations/htmlembed';import _0x4d3044 from'./integrations/image';import _0x41e32a from'./integrations/imagereplace';import _0x56e3df from'./integrations/importword';import _0xbe5af9 from'./integrations/indent';import _0x46ae6c from'./integrations/inputcommand';import _0x5c749f from'./integrations/link';import _0x504004 from'./integrations/list';import _0x1bbc29 from'./integrations/listproperties';import _0x46322c from'./integrations/mediaembed';import _0x2fd4bd from'./integrations/mention';import _0x35de16 from'./integrations/pagebreak';import _0x3765f4 from'./integrations/paragraph';import _0x49f33a from'./integrations/removeformat';import _0x299683 from'./integrations/restrictededitingmode';import _0x4dadd9 from'./integrations/shiftentercommand';import _0x31bf8a from'./integrations/standardeditingmode';import _0x2f75f5 from'./integrations/style';import _0x2f8cc0 from'./integrations/table';import _0x17248c from'./integrations/tablemergesplit';import _0x396ff7 from'./integrations/tableheadings';import _0x180d57 from'./integrations/tableclipboard';import _0x224305 from'./integrations/tablecolumnresize';import _0x16daa4 from'./integrations/template';import _0x5af8ef from'./integrations/tableofcontents';import _0x37b55b from'./integrations/title';import _0x533a06 from'./integrations/undo';import{getTranslation as _0x5cdd8b}from'./utils/common-translations';import _0x1916d8 from'./integrations/tablecaption';import _0x1d38fc from'./integrations/documentlistproperties';import _0xea144 from'./integrations/tableproperties';export default class p extends _0x10f1a0{static get['requires'](){return[_0x26bd('0x144'),_0x506291,_0x14901a,_0x33b890,_0x163bea,_0x3ad901,_0x53d841,_0x2fe6a9,_0x5883ce,_0x1a4ab4,_0x3f124d,_0x1d38fc,_0x23da42,_0x2dab63,_0x44f717,_0x5272db,_0x964991,_0x59f310,_0x13f54e,_0x33c4cf,_0x4d3044,_0x41e32a,_0x56e3df,_0xbe5af9,_0x46ae6c,_0x5c749f,_0x504004,_0x1bbc29,_0x46322c,_0x2fd4bd,_0x35de16,_0x3765f4,_0x49f33a,_0x299683,_0x4dadd9,_0x31bf8a,_0x2f75f5,_0x2f8cc0,_0x17248c,_0x396ff7,_0x1916d8,_0x180d57,_0x224305,_0x5af8ef,_0xea144,_0x16daa4,_0x37b55b,_0x533a06];}static get['pluginName'](){return _0x26bd('0x7f');}constructor(_0x3f0468){function _0xc940a8(_0xfc76c){return _0xfc76c[_0x26bd('0xe6')](_0xfad3be=>String['fromCharCode'](_0xfad3be))[_0x26bd('0x122')]('');}super(_0x3f0468),this[_0x26bd('0xab')](_0x26bd('0xba'),[]),this['on'](_0x26bd('0x4c'),(_0x1c715b,_0x4037ce,_0x215ae5,_0x1ee64d)=>{this['_model'][_0x26bd('0xda')](()=>{for(const _0x4416cd of[..._0x1ee64d,..._0x215ae5])this['_model']['markers']['has'](_0x4416cd)&&_0x3f0468['editing'][_0x26bd('0x11')](_0x4416cd);});}),this['_descriptionFactory']=new _0x5d4d04(this[_0x26bd('0x4e')][_0x26bd('0xec')][_0x26bd('0xb')],this['editor'][_0x26bd('0x11f')]),this[_0x26bd('0x60')]=null,this['_suggestionFactory']=new Dt(this[_0x26bd('0x4e')]),this[_0x26bd('0x127')]=new Map(),this[_0x26bd('0x32')]=_0x3f0468[_0x26bd('0xb5')][_0x26bd('0x93')](_0x26bd('0x144')),this[_0x26bd('0xa3')]=new Set(),this['_model']=this[_0x26bd('0x4e')]['model'],this[_0x26bd('0x94')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3f0468['config'][_0x26bd('0xb3')](_0x26bd('0xc'),_0x26bd('0x113')),this[_0x26bd('0x131')]=_0x3f0468['config'][_0x26bd('0x93')]('trackChanges.trackFormatChanges'),_0x3f0468[_0x26bd('0x22')][_0x26bd('0xb3')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x26bd('0x126')]=_0x3f0468[_0x26bd('0x22')]['get'](_0x26bd('0xf4')),this[_0x26bd('0xe8')]=new _0x6a2f3d(_0x3f0468,this[_0x26bd('0xa3')]),this[_0xc940a8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xc940a8([0x34,0x30,0x34,0x36,0x31,0x34,0x31,0x30]);}[_0x26bd('0x8a')](){const _0x87f25d=this[_0x26bd('0x4e')];_0x87f25d[_0x26bd('0x48')]['for'](_0x26bd('0x4a'))[_0x26bd('0x9e')]({'model':_0x26bd('0xa5'),'view':_0x98074b=>{const {id:_0x5ca6a6,type:_0x244a34}=this[_0x26bd('0x68')](_0x98074b[_0x26bd('0x3d')]),_0xa21767=['ck-suggestion-marker',_0x26bd('0x102')+_0x244a34];let _0x351ff1=0xbb8;return this[_0x26bd('0xba')][_0x26bd('0xef')](_0x98074b['markerName'])&&(_0xa21767[_0x26bd('0x114')]('ck-suggestion-marker--active'),_0x351ff1=0xbc2),_0x26bd('0xa4')==_0x244a34&&(_0x351ff1+=0x5),{'classes':_0xa21767,'attributes':{'data-suggestion':_0x5ca6a6},'priority':_0x351ff1};}}),_0x87f25d['conversion']['for'](_0x26bd('0x12'))['add'](_0x4d8362=>{_0x4d8362['on'](_0x26bd('0x6b'),(_0x1327c4,_0x5be35d,_0x4b31ef)=>{if(!_0x4b31ef[_0x26bd('0xe3')][_0x26bd('0x123')])return;const _0x8b5ff6=_0x5be35d['item'];if(!_0x8b5ff6)return;const _0x38e47a=_0x4b31ef[_0x26bd('0x8')][_0x26bd('0x15')](_0x8b5ff6);_0x87f25d[_0x26bd('0xec')][_0x26bd('0xb')][_0x26bd('0x5')](_0x8b5ff6)&&_0x38e47a&&!_0x38e47a[_0x26bd('0x7a')](_0x26bd('0x71'))&&_0x38e47a['is']('containerElement')&&_0x27696b(_0x38e47a,_0x4b31ef[_0x26bd('0x74')]);},{'priority':_0x26bd('0x128')});}),_0x87f25d['conversion'][_0x26bd('0x24')](_0x26bd('0x12'))[_0x26bd('0x9e')]({'model':'suggestion','view':(_0x3b4b71,_0x417dfe)=>{if(!_0x417dfe[_0x26bd('0xe3')][_0x26bd('0x123')])return null;const {type:_0x316bb8}=this[_0x26bd('0x68')](_0x3b4b71[_0x26bd('0x3d')]);return{'classes':[_0x26bd('0x2b'),'ck-suggestion-marker-'+_0x316bb8],'priority':0xbb8};}});const _0x248a58=({showActiveMarkers:_0x358e97=!0x0}={})=>(_0x1602dd,_0x2f658c,_0x4f7126)=>{if(!_0x2f658c[_0x26bd('0x13f')])return;if(_0x2f658c[_0x26bd('0x13f')]['is'](_0x26bd('0xae')))return void _0x4f7126['consumable'][_0x26bd('0x10d')](_0x2f658c[_0x26bd('0x13f')],_0x1602dd[_0x26bd('0x6f')]);const _0x4b4307=_0x4f7126[_0x26bd('0x8')][_0x26bd('0x15')](_0x2f658c[_0x26bd('0x13f')]);if(!(_0x2f658c['item']['is'](_0x26bd('0x6a'))&&_0x87f25d[_0x26bd('0xec')]['schema']['isBlock'](_0x2f658c[_0x26bd('0x13f')])&&!_0x4b4307[_0x26bd('0x7a')](_0x26bd('0xeb'))))return;const {id:_0x1826f5}=this[_0x26bd('0x68')](_0x2f658c[_0x26bd('0x3d')]);_0x4f7126[_0x26bd('0x74')][_0x26bd('0x86')]([_0x26bd('0x2b'),_0x26bd('0xa6')],_0x4b4307),_0x4f7126[_0x26bd('0x74')][_0x26bd('0xfe')](_0x26bd('0xcb'),_0x1826f5,_0x4b4307),_0x4f7126['mapper'][_0x26bd('0xad')](_0x4b4307,_0x2f658c['markerName']),_0x358e97&&(this[_0x26bd('0xba')][_0x26bd('0xef')](_0x2f658c[_0x26bd('0x3d')])?_0x4f7126[_0x26bd('0x74')][_0x26bd('0x86')](_0x26bd('0x84'),_0x4b4307):_0x4f7126[_0x26bd('0x74')]['removeClass']('ck-suggestion-marker--active',_0x4b4307));for(const _0x1eb29c of _0x87f25d['model'][_0x26bd('0x72')](_0x2f658c[_0x26bd('0x13f')])[_0x26bd('0xe7')]())_0x4f7126['consumable'][_0x26bd('0x10d')](_0x1eb29c,_0x1602dd['name']);_0x4f7126['consumable'][_0x26bd('0x10d')](_0x2f658c[_0x26bd('0x13f')],_0x1602dd[_0x26bd('0x6f')]);};_0x87f25d[_0x26bd('0x48')][_0x26bd('0x24')]('dataDowncast')['add'](_0x4ed496=>{_0x4ed496['on'](_0x26bd('0x2'),(_0x40156c,_0x1bfabd,_0x5cb987)=>{_0x5cb987[_0x26bd('0xe3')][_0x26bd('0x123')]&&_0x248a58({'showActiveMarkers':!0x1})(_0x40156c,_0x1bfabd,_0x5cb987);},{'priority':_0x26bd('0xa8')});}),_0x87f25d[_0x26bd('0x48')][_0x26bd('0x24')](_0x26bd('0x12'))[_0x26bd('0x11d')]({'model':_0x26bd('0xa5'),'view':(_0x57e27b,_0x3e4fd0)=>_0x3e4fd0[_0x26bd('0xe3')][_0x26bd('0x123')]?null:{'group':_0x26bd('0xa5'),'name':_0x57e27b[_0x26bd('0x11b')](0xb)}}),_0x87f25d[_0x26bd('0x48')][_0x26bd('0x24')]('upcast')[_0x26bd('0x136')]({'view':{'name':_0x26bd('0xa5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x576ac3,{writer:_0x54a4eb})=>{let _0x33bdd0=_0x26bd('0x5a')+_0x576ac3['getAttribute'](_0x26bd('0xa7'))+':'+_0x576ac3[_0x26bd('0x9b')]('id');return _0x576ac3[_0x26bd('0x9b')]('marker-count')&&(_0x33bdd0+=':'+_0x576ac3['getAttribute'](_0x26bd('0x33'))),_0x54a4eb[_0x26bd('0xd0')](_0x26bd('0xa2'),{'data-name':_0x33bdd0});}}),_0x87f25d[_0x26bd('0x48')][_0x26bd('0x24')](_0x26bd('0x134'))[_0x26bd('0xe1')]({'view':_0x26bd('0xa5')}),_0x87f25d[_0x26bd('0x48')][_0x26bd('0x24')](_0x26bd('0x4a'))[_0x26bd('0xe5')](_0x54e607=>{_0x54e607['on'](_0x26bd('0x2'),_0x248a58(),{'priority':_0x26bd('0x128')});}),_0x87f25d[_0x26bd('0x48')]['for'](_0x26bd('0x4a'))[_0x26bd('0xe5')](_0x45c2f2=>{_0x45c2f2['on'](_0x26bd('0xc7'),(_0x38f97d,_0x349a15,_0x39200c)=>{const _0x90c967=_0x39200c['mapper']['markerNameToElements'](_0x349a15[_0x26bd('0x3d')]);if(_0x90c967)for(const _0x3dd94d of _0x90c967)_0x3dd94d[_0x26bd('0x7a')](_0x26bd('0xeb'))||(_0x39200c[_0x26bd('0x74')][_0x26bd('0xb2')]([_0x26bd('0x2b'),_0x26bd('0xa6'),_0x26bd('0x84')],_0x3dd94d),_0x39200c[_0x26bd('0x74')][_0x26bd('0x105')](_0x26bd('0xcb'),_0x3dd94d),_0x39200c['mapper']['unbindElementFromMarkerName'](_0x3dd94d,_0x349a15['markerName']));},{'priority':'high'});}),_0x87f25d[_0x26bd('0xec')][_0x26bd('0xc6')]['registerPostFixer'](_0x418189=>{let _0x1c1121=!0x1;const _0x18a8d7=Array[_0x26bd('0x98')](_0x87f25d[_0x26bd('0xec')][_0x26bd('0xc6')][_0x26bd('0x56')][_0x26bd('0x1e')]()),_0x179661=new Set();for(const {name:_0x308de3,data:_0x4e13c4}of _0x18a8d7){const {group:_0x1bff00,type:_0x83a6f0,id:_0x314e5e}=this['_splitMarkerName'](_0x308de3);if(_0x26bd('0xa5')!==_0x1bff00)continue;const _0x3e025f=this[_0x26bd('0x127')][_0x26bd('0x93')](_0x314e5e);if(null!=_0x4e13c4['newRange']){_0x26bd('0x79')==_0x83a6f0&&(_0x1c1121=_0x1c1121||Mt(_0x4e13c4[_0x26bd('0xee')],_0x308de3,_0x418189,_0x87f25d[_0x26bd('0xec')][_0x26bd('0xb')]));if(_0x4e13c4[_0x26bd('0xee')][_0x26bd('0x108')]||_0x26bd('0xcc')==_0x4e13c4[_0x26bd('0xee')]['root'][_0x26bd('0x129')]||'formatBlock'==_0x83a6f0&&!Nt(_0x4e13c4['newRange'])||_0x26bd('0xa4')==_0x83a6f0&&!(!_t(_0x58585a=_0x4e13c4[_0x26bd('0xee')])&&!function(_0x32c994){return _0x32c994[_0x26bd('0x77')][_0x26bd('0x10b')]==_0x32c994[_0x26bd('0xf9')][_0x26bd('0x44')]&&_0x32c994[_0x26bd('0x77')][_0x26bd('0x66')];}(_0x58585a)))_0x418189[_0x26bd('0x99')](_0x308de3),_0x1c1121=!0x0;else{if(!_0x3e025f||!_0x3e025f[_0x26bd('0x130')])continue;_0x179661[_0x26bd('0xe5')](_0x3e025f);}}}var _0x58585a;return _0x179661[_0x26bd('0x139')]>0x0&&(_0x1c1121=!!this['_joinWithAdjacentSuggestions'](_0x179661)||_0x1c1121),_0x1c1121;}),_0x87f25d['model'][_0x26bd('0xc6')]['registerPostFixer'](_0x1fc32b=>{let _0x42d1d8=!0x1;for(const _0x381afd of _0x87f25d['model'][_0x26bd('0xc6')][_0x26bd('0x56')][_0x26bd('0x11c')]()){if('insert'!=_0x381afd['type'])continue;const _0x572816=_0x381afd[_0x26bd('0x19')][_0x26bd('0xed')](_0x381afd['length']);if(_0x572816[_0x26bd('0x66')])for(const _0x310f60 of this[_0x26bd('0x127')][_0x26bd('0x34')]()){if(_0x310f60[_0x26bd('0x5e')]||!_0x310f60[_0x26bd('0x130')])continue;if(_0x26bd('0x1c')!=_0x310f60[_0x26bd('0x100')])continue;const _0x5ec315=_0x310f60['getFirstRange']();if(_0x5ec315['start'][_0x26bd('0x10b')]!=_0x5ec315['end'][_0x26bd('0x10b')]&&_0x5ec315[_0x26bd('0xf9')][_0x26bd('0x6e')](_0x381afd[_0x26bd('0x19')])){const _0x4cd490=_0x87f25d['model'][_0x26bd('0x28')](_0x5ec315[_0x26bd('0x77')],_0x572816);_0x1fc32b[_0x26bd('0x6c')](_0x310f60[_0x26bd('0xe0')](),{'range':_0x4cd490}),_0x42d1d8=!0x0;}}}return _0x42d1d8;}),_0x87f25d[_0x26bd('0xec')][_0x26bd('0xa9')]['on'](_0x26bd('0x91'),(_0x4315c8,_0x2f2e80,_0x1240f8)=>{if(null==_0x1240f8){const {id:_0x507005}=this[_0x26bd('0x68')](_0x2f2e80[_0x26bd('0x6f')]),_0x3bc8e=this[_0x26bd('0x127')][_0x26bd('0x93')](_0x507005);_0x3bc8e&&_0x3bc8e[_0x26bd('0x63')](_0x2f2e80['name']);}}),_0x87f25d[_0x26bd('0xec')][_0x26bd('0xc6')]['on'](_0x26bd('0xc8'),()=>{const _0x3b8b1e=Array[_0x26bd('0x98')](_0x87f25d['model'][_0x26bd('0xc6')]['differ'][_0x26bd('0x1e')]())['filter'](_0x1fd898=>'suggestion'===this[_0x26bd('0x68')](_0x1fd898[_0x26bd('0x6f')])[_0x26bd('0xc5')]);if(0x0===_0x3b8b1e[_0x26bd('0x18')])return;_0x3b8b1e[_0x26bd('0x3b')]((_0x243258,_0xbbd26c)=>{const _0xf92982=_0x243258[_0x26bd('0xf')][_0x26bd('0xe4')],_0x5d7651=_0xbbd26c[_0x26bd('0xf')][_0x26bd('0xe4')];return null===_0xf92982&&null===_0x5d7651?0x0:null===_0xf92982&&null!==_0x5d7651?-0x1:null!==_0xf92982&&null===_0x5d7651?0x1:_0xf92982['start'][_0x26bd('0x117')](_0x5d7651['start'])?-0x1:0x1;});const _0xf091d7=new Set(),_0x539649=new Set();for(const {name:_0x403c35,data:_0x2aba49}of _0x3b8b1e){const {id:_0x4f8ede}=this[_0x26bd('0x68')](_0x403c35);if(null===_0x2aba49[_0x26bd('0xe4')]){const _0x1a8ecd=this[_0x26bd('0xd4')](_0x403c35);_0x539649['add'](_0x1a8ecd);}else{const _0x573578=this[_0x26bd('0x127')][_0x26bd('0x93')](_0x4f8ede);null!==_0x2aba49[_0x26bd('0xee')]||_0x573578[_0x26bd('0x130')]?(_0xf091d7['add'](_0x573578['head']),_0x539649[_0x26bd('0xe5')](_0x573578)):this[_0x26bd('0x135')](_0x573578);}}_0x539649[_0x26bd('0x139')]>0x0&&this['_refreshSuggestionsChain'](_0x539649);for(const _0x2d8daa of _0xf091d7)this[_0x26bd('0xbc')](_0x26bd('0x10e'),_0x2d8daa);}),_0x87f25d[_0x26bd('0xec')]['on'](_0x26bd('0x6'),(_0x38d351,_0x4c0a04)=>{const _0x1e0b61=_0x4c0a04[0x0];if(!this[_0x26bd('0x127')]['size'])return;if(!_0x1e0b61[_0x26bd('0x20')])return;if(_0x1e0b61[_0x26bd('0xdc')][_0x26bd('0x83')]||!_0x1e0b61[_0x26bd('0xdc')][_0x26bd('0x101')])return;let _0x37b5c3,_0x157637;switch(_0x1e0b61[_0x26bd('0x100')]){case _0x26bd('0x3a'):_0x37b5c3=_0x87f25d[_0x26bd('0xec')]['createPositionAt'](_0x1e0b61[_0x26bd('0x19')]),_0x157637=_0x37b5c3[_0x26bd('0xed')](_0x1e0b61['howMany']);break;case _0x26bd('0x5b'):_0x37b5c3=_0x87f25d[_0x26bd('0xec')][_0x26bd('0x0')](_0x1e0b61[_0x26bd('0x133')]),_0x157637=_0x87f25d[_0x26bd('0xec')]['createPositionAt'](_0x1e0b61[_0x26bd('0x9a')]);break;case'move':_0x37b5c3=_0x87f25d['model'][_0x26bd('0x0')](_0x1e0b61[_0x26bd('0xf0')]),_0x157637=_0x37b5c3['getShiftedBy'](_0x1e0b61[_0x26bd('0xd')]);break;default:return;}const _0x1d0a21=_0x87f25d[_0x26bd('0xec')][_0x26bd('0x28')](_0x37b5c3,_0x157637);_0x87f25d[_0x26bd('0xec')][_0x26bd('0xda')](()=>{for(const {suggestion:_0x3f76aa,meta:_0xd4d8ea}of this[_0x26bd('0xd6')](_0x1d0a21)){if(_0x3f76aa['isMultiRange'])continue;if(_0x26bd('0x79')==_0x3f76aa[_0x26bd('0x100')])continue;const _0x40f70c=_0x3f76aa[_0x26bd('0xf')]&&_0x3f76aa[_0x26bd('0xf')]['multipleBlocks'];(_0x26bd('0x1c')!=_0x3f76aa[_0x26bd('0x100')]||_0x26bd('0x5b')==_0x1e0b61[_0x26bd('0x100')]&&!_0x40f70c)&&(_0xd4d8ea[_0x26bd('0xf8')]||_0x26bd('0xb0')==_0x3f76aa[_0x26bd('0x100')]&&_0xd4d8ea['isOwn']||_0x3f76aa['getFirstRange']()[_0x26bd('0x39')](_0x1d0a21)&&this[_0x26bd('0x89')](_0x3f76aa,_0x37b5c3,_0x157637));}});},{'priority':'lowest'}),_0x87f25d['model']['on']('deleteContent',(_0x198dff,_0x2761b5)=>{const _0x34d8c5=_0x2761b5[0x0],_0x238dbd=_0x2761b5[0x1];if(_0x238dbd&&_0x238dbd[_0x26bd('0x5d')])return;if(this[_0x26bd('0x118')])return;if(!this[_0x26bd('0xe8')][_0x26bd('0x125')])return;if(_0x34d8c5['isCollapsed'])return;const _0x35fad9=_0x87f25d[_0x26bd('0xec')][_0x26bd('0xb')],{start:_0x172fd3,end:_0xa43642}=_0x34d8c5[_0x26bd('0x62')](),_0x1a31d7=_0x172fd3[_0x26bd('0x88')]&&_0x35fad9[_0x26bd('0x67')](_0x172fd3[_0x26bd('0x88')])?null:_0x35fad9['getNearestSelectionRange'](_0x172fd3,_0x26bd('0x13d')),_0x27a7a1=_0xa43642[_0x26bd('0x44')]&&_0x35fad9['isLimit'](_0xa43642[_0x26bd('0x44')])?null:_0x35fad9[_0x26bd('0x12d')](_0xa43642,_0x26bd('0xb9')),_0x542151=_0x87f25d[_0x26bd('0xec')][_0x26bd('0x28')](_0x1a31d7?_0x1a31d7[_0x26bd('0x77')]:_0x172fd3,_0x27a7a1?_0x27a7a1[_0x26bd('0xf9')]:_0xa43642);_0x87f25d[_0x26bd('0xec')][_0x26bd('0xda')](_0x58c512=>{this[_0x26bd('0x8d')](_0x542151);const _0x181457=_0x87f25d[_0x26bd('0xec')][_0x26bd('0xb')]['getNearestSelectionRange'](_0x542151[_0x26bd('0x77')]);_0x34d8c5['is']('documentSelection')?_0x58c512['setSelection'](_0x181457):_0x34d8c5[_0x26bd('0x4b')](_0x181457);}),_0x198dff[_0x26bd('0x65')]();},{'priority':_0x30fdd9[_0x26bd('0x38')]+0xa}),_0x87f25d[_0x26bd('0xec')]['on'](_0x26bd('0xb6'),(_0x43d201,_0x3e41c2)=>{const _0x23118e=_0x3e41c2[_0x3e41c2[_0x26bd('0x18')]-0x1];_0x23118e&&_0x23118e['forceDefaultExecution']||this[_0x26bd('0x118')]||this[_0x26bd('0xe8')][_0x26bd('0x125')]&&(_0x87f25d['model']['change'](()=>{let _0x5df682=_0x87f25d['model']['insertContent'](_0x3e41c2[0x0],_0x3e41c2[0x1],_0x3e41c2[0x2],{'forceDefaultExecution':!0x0});if(!_0x5df682)return;_0x43d201['return']=_0x5df682[_0x26bd('0x2c')]();const _0x1cd8a5=_0x5df682[_0x26bd('0xf9')]['nodeBefore'],_0x3fdd2e=_0x87f25d[_0x26bd('0xec')]['schema'];_0x1cd8a5&&_0x3fdd2e['isBlock'](_0x1cd8a5)&&!_0x3fdd2e[_0x26bd('0x5')](_0x1cd8a5)&&(_0x5df682=_0x87f25d[_0x26bd('0xec')]['createRange'](_0x5df682['start'],_0x87f25d['model'][_0x26bd('0x0')](_0x1cd8a5,_0x26bd('0xf9')))),this['markInsertion'](_0x5df682);}),_0x43d201['stop']());},{'priority':_0x26bd('0x128')}),this[_0x26bd('0x4e')]['commands'][_0x26bd('0xe5')](_0x26bd('0xc2'),this[_0x26bd('0xe8')]),this[_0x26bd('0xc3')](_0x26bd('0xc2'));const _0x58519b=new _0x4fad80(_0x87f25d,this['_suggestions']);_0x87f25d[_0x26bd('0x103')]['add'](_0x26bd('0x12a'),_0x58519b),this[_0x26bd('0xc3')](_0x26bd('0x12a'));const _0x17f5d1=new _0x1ad3b3(_0x87f25d,this[_0x26bd('0x127')]);_0x87f25d[_0x26bd('0x103')][_0x26bd('0xe5')](_0x26bd('0x4d'),_0x17f5d1),this[_0x26bd('0xc3')]('discardSuggestion'),_0x87f25d[_0x26bd('0x103')]['add']('acceptAllSuggestions',new _0x477f91(_0x87f25d,_0x58519b,this['_suggestions'])),this['enableCommand'](_0x26bd('0xc9')),_0x87f25d['commands'][_0x26bd('0xe5')](_0x26bd('0x12f'),new _0x477f91(_0x87f25d,_0x17f5d1,this[_0x26bd('0x127')])),this[_0x26bd('0xc3')](_0x26bd('0x12f')),_0x87f25d['commands'][_0x26bd('0xe5')](_0x26bd('0x42'),new _0x53c874(_0x87f25d,_0x58519b,this[_0x26bd('0x127')])),this[_0x26bd('0xc3')](_0x26bd('0x42')),_0x87f25d[_0x26bd('0x103')][_0x26bd('0xe5')](_0x26bd('0x124'),new _0x53c874(_0x87f25d,_0x17f5d1,this[_0x26bd('0x127')])),this[_0x26bd('0xc3')](_0x26bd('0x124'));const _0xa33b9=_0x87f25d[_0x26bd('0xb5')][_0x26bd('0x93')]('CommentsRepository');this[_0x26bd('0xb4')](_0xa33b9,_0x26bd('0x59'),(_0xfafaf4,{threadId:_0x5d2729})=>{const _0x525cda=this[_0x26bd('0x127')]['get'](_0x5d2729);_0x525cda&&_0x525cda[_0x26bd('0x70')]&&0x1===_0x525cda['commentThread'][_0x26bd('0x18')]&&this[_0x26bd('0x37')](_0x5d2729,{'hasComments':!0x0});},{'priority':_0x26bd('0xfc')}),this[_0x26bd('0xb4')](_0xa33b9,_0x26bd('0x5f'),(_0x49b413,{threadId:_0x4493bb})=>{const _0x526d37=this['_suggestions'][_0x26bd('0x93')](_0x4493bb);_0x526d37&&_0x526d37[_0x26bd('0x70')]&&!_0x526d37[_0x26bd('0x70')]['length']&&this[_0x26bd('0x37')](_0x4493bb,{'hasComments':!0x1});},{'priority':'low'});}set[_0x26bd('0x52')](_0xf5ce29){if(this[_0x26bd('0x60')])throw new _0x1d5d2f(_0x26bd('0xd5'),this);this['_adapter']=_0xf5ce29;}get[_0x26bd('0x52')](){return this[_0x26bd('0x60')];}[_0x26bd('0x73')]({skipNotAttached:_0x3736e7=!0x1,toJSON:_0x301743=!0x1}={}){const _0x26a5de=[];for(const _0x409167 of this[_0x26bd('0x127')][_0x26bd('0x34')]())_0x3736e7&&!_0x409167[_0x26bd('0x130')]||_0x26a5de[_0x26bd('0x114')](_0x409167);return _0x301743?_0x26a5de[_0x26bd('0xe6')](_0x130411=>_0x130411[_0x26bd('0x3c')]()):_0x26a5de;}[_0x26bd('0xdf')](_0x4a7eb3){const _0x1b2692=this['_suggestions']['get'](_0x4a7eb3);if(!_0x1b2692)throw new _0x1d5d2f('track-changes-suggestion-not-found',this);return _0x1b2692;}[_0x26bd('0x143')](_0x4c9cb5){return this[_0x26bd('0x127')]['has'](_0x4c9cb5);}[_0x26bd('0x95')](_0x58cefd){const {authorId:_0x179957,id:_0x1760c4,attributes:_0x531cc8}=_0x58cefd,[_0x5acfdc,_0x66ea3a]=_0x58cefd[_0x26bd('0x100')][_0x26bd('0x5b')](':'),_0x54901f=this[_0x26bd('0x127')][_0x26bd('0x93')](_0x1760c4)||this['_createSuggestion'](_0x5acfdc,_0x66ea3a,_0x1760c4,_0x179957,_0x531cc8);if(this[_0x26bd('0x7b')](_0x54901f),this['_checkSuggestionCorrectness'](_0x54901f,_0x5acfdc,_0x66ea3a||null,_0x179957),_0x54901f[_0x26bd('0x12b')]=_0x58cefd['createdAt'],_0x531cc8&&_0x531cc8['@external']){const _0xc97358=_0x531cc8[_0x26bd('0x43')],_0x4fa119=this['_getExternalAuthor'](_0xc97358[_0x26bd('0x9d')]);_0x54901f[_0x26bd('0x10c')]=_0xc97358[_0x26bd('0x12b')],_0x54901f[_0x26bd('0x49')]=_0x4fa119,_0x54901f[_0x26bd('0x1f')]=!0x0;}else _0x54901f[_0x26bd('0x10c')]=_0x58cefd[_0x26bd('0x12b')];switch(_0x58cefd[_0x26bd('0xf')]&&(_0x54901f['data']=_0x58cefd[_0x26bd('0xf')]),_0x58cefd[_0x26bd('0x81')]&&(_0x54901f[_0x26bd('0x81')]=_0x58cefd['attributes']),this[_0x26bd('0x60')]&&this[_0x26bd('0x60')][_0x26bd('0x8b')]||(_0x54901f[_0x26bd('0x4')]=!0x0),this[_0x26bd('0x94')][_0x26bd('0x93')](_0x54901f)){case'notReady':this[_0x26bd('0x94')][_0x26bd('0xab')](_0x54901f,_0x26bd('0x1b'));break;case _0x26bd('0x25'):_0x54901f[_0x26bd('0x130')]?(this[_0x26bd('0x94')][_0x26bd('0xab')](_0x54901f,_0x26bd('0xac')),this[_0x26bd('0xbc')](_0x26bd('0x112'),_0x54901f)):this[_0x26bd('0x94')][_0x26bd('0xab')](_0x54901f,_0x26bd('0xff'));}return _0x54901f;}[_0x26bd('0x12a')](_0x45a97e){this[_0x26bd('0x5d')](()=>{this[_0x26bd('0x4e')][_0x26bd('0xec')][_0x26bd('0xda')](()=>{for(const _0x43085d of _0x45a97e[_0x26bd('0x2e')]())_0x43085d['accept']();});});}[_0x26bd('0x4d')](_0x4be832){this[_0x26bd('0x5d')](()=>{this[_0x26bd('0x4e')][_0x26bd('0xec')][_0x26bd('0xda')](()=>{for(const _0x59929f of _0x4be832['getAllAdjacentSuggestions']())_0x59929f[_0x26bd('0xd8')]();});});}[_0x26bd('0xc3')](_0x37102f,_0x54a38f){const _0x300e7e=this['editor'][_0x26bd('0x103')][_0x26bd('0x93')](_0x37102f);if(!_0x300e7e)throw new _0x1d5d2f(_0x26bd('0xcd'),this,{'commandName':_0x37102f});this[_0x26bd('0xa3')]['add'](_0x300e7e),_0x54a38f&&_0x300e7e['on'](_0x26bd('0xbf'),(_0xe86c4f,_0x1450c2)=>{this['trackChangesCommand'][_0x26bd('0x125')]&&(this['_isForcedDefaultExecutionBlock']||_0x1450c2[_0x26bd('0x18')]>0x0&&_0x1450c2[_0x1450c2['length']-0x1]&&_0x1450c2[_0x1450c2['length']-0x1][_0x26bd('0x5d')]||(_0x54a38f((..._0x52e3a3)=>_0x300e7e[_0x26bd('0xbf')](..._0x52e3a3,{'forceDefaultExecution':!0x0}),..._0x1450c2),_0xe86c4f[_0x26bd('0x65')]()));},{'priority':_0x26bd('0x128')});}['forceDefaultExecution'](_0x2e3add){let _0x3520f9,_0x238b73;const _0x2c9714=this[_0x26bd('0x118')];this[_0x26bd('0x118')]=!0x0;try{_0x3520f9=_0x2e3add();}catch(_0xe042db){_0x238b73=_0xe042db;}return _0x2c9714||(this[_0x26bd('0x118')]=!0x1),_0x238b73&&_0x1d5d2f[_0x26bd('0xc1')](_0x238b73,this),_0x3520f9;}[_0x26bd('0x7')](_0x3d0ccc,_0x286f82=null,_0x43c52b={}){if(_0x3d0ccc[_0x26bd('0x108')])return null;const _0x1b0ed1=this[_0x26bd('0x4e')][_0x26bd('0xb5')][_0x26bd('0x93')](_0x26bd('0xb8'))['me'];for(const {suggestion:_0x475a0a,meta:_0x50c887}of this['_findSuggestions'](_0x3d0ccc,_0x26bd('0xb0')))if(_0x50c887['isOwn']){if(!_0x50c887[_0x26bd('0xe9')]){if(!this['_mergeNestedSuggestions']&&_0x50c887[_0x26bd('0xf8')])continue;return _0x475a0a;}if(_0x286f82==_0x475a0a[_0x26bd('0x3')]){const _0x4aa94e=_0x475a0a[_0x26bd('0x62')]();return _0x4aa94e['start'][_0x26bd('0x6e')](_0x3d0ccc['end'])?this[_0x26bd('0x69')](_0x475a0a,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x3d0ccc[_0x26bd('0x77')],_0x4aa94e[_0x26bd('0xf9')])):this[_0x26bd('0x69')](_0x475a0a,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x4aa94e[_0x26bd('0x77')],_0x3d0ccc['end'])),_0x475a0a;}}const _0x3b0631=_0x4b465a(),_0x294177=_0x1b0ed1['id'],_0x30b7bc=_0x286f82?_0x26bd('0xaa')+_0x286f82:_0x26bd('0xb0'),_0x4dd807=this[_0x26bd('0xbd')]({'id':_0x3b0631,'type':_0x30b7bc,'createdAt':new Date(),'authorId':_0x294177,'attributes':_0x43c52b});return this[_0x26bd('0x96')](_0x30b7bc,_0x3b0631,_0x294177,_0x3d0ccc),_0x4dd807;}['markMultiRangeInsertion'](_0x4d517e,_0x473082=_0x26bd('0x26'),_0x378f9e={}){const _0x5075df=this[_0x26bd('0x4e')]['plugins'][_0x26bd('0x93')](_0x26bd('0xb8'))['me'],_0x2439a4=this['_suggestionFactory'][_0x26bd('0x45')](_0x26bd('0xb0'),_0x473082,'join');for(const _0x1472cf of this[_0x26bd('0x73')]())if(_0x1472cf[_0x26bd('0x49')]['id']==_0x5075df['id']&&_0x26bd('0xb0')==_0x1472cf['type']&&_0x1472cf['subType']==_0x473082&&(_0x2439a4(_0x1472cf[_0x26bd('0xd9')](),_0x4d517e)||_0x2439a4(_0x4d517e,_0x1472cf[_0x26bd('0xd9')]()))){for(const _0x2e6e4d of _0x4d517e)_0x1472cf[_0x26bd('0x5c')](_0x2e6e4d);return _0x1472cf;}if(this['_mergeNestedSuggestions'])for(const _0x2dcd88 of _0x4d517e)for(const {suggestion:_0x1c05d1,meta:_0x573b5f}of this['_findSuggestions'](_0x2dcd88,_0x26bd('0xb0'))){if(!_0x573b5f[_0x26bd('0xb7')])continue;let _0x2e8ace=!0x0;for(const _0x2960c9 of _0x1c05d1[_0x26bd('0xd9')]())for(const _0x7e93cf of _0x4d517e)if(!_0x2960c9['containsRange'](_0x7e93cf)){_0x2e8ace=!0x1;break;}if(_0x2e8ace)return _0x1c05d1;}const _0x23b46d=_0x4b465a(),_0x2d16cd=_0x5075df['id'],_0x4f225e=_0x26bd('0xaa')+_0x473082,_0x359e3b=this[_0x26bd('0xbd')]({'id':_0x23b46d,'type':_0x4f225e,'createdAt':new Date(),'authorId':_0x2d16cd,'attributes':_0x378f9e});for(const _0x3880ae of _0x4d517e)this['_addSuggestionMarker'](_0x4f225e,_0x23b46d,_0x2d16cd,_0x3880ae,_0x4f7e69[_0x26bd('0x142')]());return _0x359e3b;}[_0x26bd('0x13b')](_0x3b8eca,_0x202b94,_0x4d8943=null,_0x55ad08={}){if(_0x4d8943=_0x4d8943||$t(_0x202b94),_0x3b8eca[_0x26bd('0x108')])return null;if(_0x26bd('0x9')===this[_0x26bd('0x131')]){const _0x3db1d7=this['_suggestionFactory'][_0x26bd('0x45')]('formatInline',_0x4d8943,'accept');return this[_0x26bd('0x5d')](()=>_0x3db1d7([_0x3b8eca],_0x202b94,_0x55ad08)),null;}const _0x5af973=this['editor'][_0x26bd('0xb5')][_0x26bd('0x93')](_0x26bd('0xb8'))['me'],_0x387bee=[];if(_0x26bd('0xea')!==this[_0x26bd('0x131')])for(const {suggestion:_0xea4ef4,meta:_0x28c0c4}of this[_0x26bd('0xd6')](_0x3b8eca,_0x26bd('0xb0')))_0x28c0c4['isOwn']&&!_0x28c0c4[_0x26bd('0xce')]&&_0x387bee[_0x26bd('0x114')](..._0xea4ef4['getRanges']());const _0x1f7085=function(_0x44beaf,_0x3cda57){const _0x285b2c=[];for(const _0x25a4ae of _0x3cda57){const _0x2e0c8d=_0x44beaf[_0x26bd('0x138')](_0x25a4ae);_0x2e0c8d&&_0x285b2c[_0x26bd('0x114')](_0x2e0c8d);}return _0x285b2c;}(_0x3b8eca,_0x387bee),_0x2a5140=function(_0x44caf8,_0x49756f){const _0x2b1063=[_0x44caf8];for(const _0x38341d of _0x49756f){let _0x471c4c=0x0;for(;_0x471c4c<_0x2b1063['length'];){const _0x5df968=_0x2b1063[_0x471c4c][_0x26bd('0x116')](_0x38341d);_0x2b1063[_0x26bd('0xaf')](_0x471c4c,0x1,..._0x5df968),_0x471c4c+=_0x5df968['length'];}}return _0x2b1063;}(_0x3b8eca,_0x387bee);_0x1f7085[_0x26bd('0x18')]&&this[_0x26bd('0x8c')][_0x26bd('0xda')](()=>{for(const _0x446c04 of _0x1f7085){const _0x4212a8=this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x26bd('0x79'),_0x4d8943,'accept');this[_0x26bd('0x5d')](()=>_0x4212a8([_0x446c04],_0x202b94,_0x55ad08));}});for(const _0x4661d5 of _0x2a5140){let _0x2a2e87=null,_0x212141=_0x4661d5[_0x26bd('0x77')],_0xa3be09=_0x4661d5['end'];for(const {suggestion:_0x2aabb7,meta:_0x4af8fe}of this[_0x26bd('0xd6')](_0x4661d5,_0x26bd('0x79'))){if(!_0x4af8fe['isOwn'])continue;if(_0x2aabb7[_0x26bd('0x3')]!=_0x4d8943)continue;const _0x1a3c81=_0x2aabb7[_0x26bd('0x62')]();if(_0x1a3c81[_0x26bd('0x39')](_0x4661d5,!0x0))return null;_0x212141=_0x212141[_0x26bd('0x117')](_0x1a3c81[_0x26bd('0x77')])?_0x212141:_0x1a3c81[_0x26bd('0x77')],_0xa3be09=_0xa3be09[_0x26bd('0xe')](_0x1a3c81[_0x26bd('0xf9')])?_0xa3be09:_0x1a3c81['end'],_0x2a2e87?_0x1a3c81[_0x26bd('0x77')][_0x26bd('0x117')](_0x2a2e87[_0x26bd('0x62')]()[_0x26bd('0x77')])?(_0x2a2e87[_0x26bd('0x13a')](),_0x2a2e87=_0x2aabb7):_0x2aabb7[_0x26bd('0x13a')]():_0x2a2e87=_0x2aabb7;}const _0x5676c4=this['_model'][_0x26bd('0x28')](_0x212141,_0xa3be09);if(_0x2a2e87)this[_0x26bd('0x69')](_0x2a2e87,_0x5676c4);else{const _0x4c5ebe=_0x4b465a(),_0x257231=_0x5af973['id'];this['_setSuggestionData']({'id':_0x4c5ebe,'type':_0x26bd('0x64')+_0x4d8943,'data':_0x202b94,'createdAt':new Date(),'authorId':_0x257231,'attributes':_0x55ad08}),this[_0x26bd('0x96')]('formatInline:'+_0x4d8943,_0x4c5ebe,_0x257231,_0x5676c4);}}return null;}['markBlockFormat'](_0x23373c,_0x48ece9,_0x3770d8=[],_0x3b8a87=null,_0x171e9d={}){_0x48ece9[_0x26bd('0xbe')]||(_0x48ece9['formatGroupId']=_0x48ece9[_0x26bd('0x61')]),_0x48ece9[_0x26bd('0x140')]=_0x23373c['is'](_0x26bd('0xd1')),_0x3b8a87=_0x3b8a87||$t(_0x48ece9);const _0x52b3aa=_0x3770d8[_0x26bd('0xe6')](_0x3c958e=>Rt(_0x3c958e,this['_model'])),_0x3afc63=_0x23373c['is'](_0x26bd('0xd1'))?_0x23373c:Rt(_0x23373c,this['_model']);if('never'===this[_0x26bd('0x131')]){const _0x257d8e=this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x26bd('0x1c'),_0x3b8a87,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x257d8e([_0x3afc63],_0x48ece9,_0x171e9d)),null;}_0x52b3aa[_0x26bd('0x114')](_0x3afc63);let _0x2785b2=!0x0;for(const _0x15dc2a of _0x52b3aa)if(!this[_0x26bd('0x27')](_0x15dc2a)){_0x2785b2=!0x1;break;}if(_0x2785b2&&_0x26bd('0xea')!==this[_0x26bd('0x131')]){const _0x218b3a=this[_0x26bd('0xb1')][_0x26bd('0x45')]('formatBlock',_0x3b8a87,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x218b3a([_0x3afc63],_0x48ece9,_0x171e9d)),null;}let _0x4cef61=null,_0xb62e48=_0x3afc63[_0x26bd('0x77')],_0x4f0e60=_0x3afc63['end'];for(const {suggestion:_0xcc6635,meta:_0x4d4293}of this[_0x26bd('0xd6')](_0x3afc63,_0x26bd('0x1c'))){if(!_0x4d4293['isOwn']||_0x4d4293[_0x26bd('0xe9')]||_0x4d4293['containsRangeInObject']||_0x4d4293['isInsideObject'])continue;if(_0xcc6635[_0x26bd('0xf')]['formatGroupId']!=_0x48ece9[_0x26bd('0xbe')])continue;const _0x5dffa8=_0xcc6635[_0x26bd('0x62')]();if(_0xcc6635[_0x26bd('0x3')]==_0x3b8a87){if(_0x5dffa8[_0x26bd('0x39')](_0x3afc63,!0x0))return null;_0xb62e48=_0xb62e48[_0x26bd('0x117')](_0x5dffa8[_0x26bd('0x77')])?_0xb62e48:_0x5dffa8[_0x26bd('0x77')],_0x4f0e60=_0x4f0e60[_0x26bd('0xe')](_0x5dffa8[_0x26bd('0xf9')])?_0x4f0e60:_0x5dffa8[_0x26bd('0xf9')],_0x4cef61?_0x5dffa8[_0x26bd('0x77')][_0x26bd('0x117')](_0x4cef61['getFirstRange']()[_0x26bd('0x77')])?(_0x4cef61[_0x26bd('0x13a')](),_0x4cef61=_0xcc6635):_0xcc6635[_0x26bd('0x13a')]():_0x4cef61=_0xcc6635;}else{const _0x268927=_0x3afc63[_0x26bd('0x138')](_0x5dffa8);this[_0x26bd('0x7e')](_0xcc6635,_0x268927);}}const _0x492c8c=this[_0x26bd('0x4e')]['plugins'][_0x26bd('0x93')]('Users')['me'],_0x238955=_0x4b465a(),_0x3e29db=_0x492c8c['id'];if(_0x4cef61)return this[_0x26bd('0x69')](_0x4cef61,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0xb62e48,_0x4f0e60)),_0x4cef61;{const _0x25eee5=this[_0x26bd('0xbd')]({'id':_0x238955,'type':_0x26bd('0x21')+_0x3b8a87,'data':_0x48ece9,'createdAt':new Date(),'authorId':_0x3e29db,'attributes':_0x171e9d});return this['_addSuggestionMarker'](_0x26bd('0x21')+_0x3b8a87,_0x238955,_0x3e29db,this['_model'][_0x26bd('0x28')](_0xb62e48,_0x4f0e60)),_0x25eee5;}}[_0x26bd('0x1')](_0x57b11c,_0x4c9b66,_0x48a343=[],_0x8c7647=null,_0x1c121a={}){_0x4c9b66['formatGroupId']||(_0x4c9b66[_0x26bd('0xbe')]=_0x4c9b66['commandName']);const _0x2afc30=_0x57b11c[0x0];_0x4c9b66['multipleBlocks']=_0x2afc30['is'](_0x26bd('0xd1')),_0x8c7647=_0x8c7647||$t(_0x4c9b66);const _0x2747e0=_0x48a343[_0x26bd('0xe6')](_0x219869=>Rt(_0x219869,this[_0x26bd('0x8c')])),_0x2857b9=_0x2afc30['is']('range')?_0x57b11c:_0x57b11c[_0x26bd('0xe6')](_0x5c2e7f=>Rt(_0x5c2e7f,this[_0x26bd('0x8c')]));if(_0x26bd('0x9')===this[_0x26bd('0x131')]){const _0x4bcd08=this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x26bd('0x1c'),_0x8c7647,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x4bcd08(_0x2857b9,_0x4c9b66,_0x1c121a)),null;}_0x2747e0[_0x26bd('0x114')](..._0x2857b9);let _0x2e28e5=!0x0;for(const _0x1d6d3d of _0x2747e0)if(!this['_rangeIsInLocalUserInsertion'](_0x1d6d3d)){_0x2e28e5=!0x1;break;}if(_0x2e28e5&&_0x26bd('0xea')!==this[_0x26bd('0x131')]){const _0x284528=this['_suggestionFactory'][_0x26bd('0x45')](_0x26bd('0x1c'),_0x8c7647,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x284528(_0x2857b9,_0x4c9b66,_0x1c121a)),null;}const _0x38d9af=this['editor']['plugins'][_0x26bd('0x93')]('Users')['me'];for(const _0x37d6a8 of this[_0x26bd('0x73')]()){if(_0x37d6a8['author']['id']!=_0x38d9af['id'])continue;if(_0x26bd('0x1c')!=_0x37d6a8['type']||_0x37d6a8[_0x26bd('0xf')][_0x26bd('0xbe')]!=_0x4c9b66[_0x26bd('0xbe')])continue;const _0x2a2cd0=_0x37d6a8[_0x26bd('0x3')]==_0x8c7647;for(let _0x5b751b=0x0;_0x5b751b<_0x2857b9['length'];_0x5b751b++){const _0x1fad53=_0x2857b9[_0x5b751b];for(const _0x526581 of _0x37d6a8[_0x26bd('0xa')]()){const _0x4bdb2c=_0x526581[_0x26bd('0x17')]();if(_0x1fad53[_0x26bd('0x6e')](_0x4bdb2c)){_0x2a2cd0?(_0x2857b9[_0x26bd('0xaf')](_0x5b751b,0x1),_0x5b751b--):_0x37d6a8[_0x26bd('0x99')](_0x526581[_0x26bd('0x6f')]);break;}}}}if(0x0==_0x2857b9[_0x26bd('0x18')])return null;const _0xd63634=this[_0x26bd('0xb1')]['getSuggestionCallback'](_0x26bd('0x1c'),_0x8c7647,_0x26bd('0x122'));for(const _0x5700ef of this[_0x26bd('0x73')]())if(_0x5700ef[_0x26bd('0x49')]['id']==_0x38d9af['id']&&_0x26bd('0x1c')==_0x5700ef[_0x26bd('0x100')]&&_0x5700ef['data'][_0x26bd('0xbe')]==_0x4c9b66[_0x26bd('0xbe')]&&_0x5700ef['subType']==_0x8c7647&&(_0xd63634(_0x5700ef[_0x26bd('0xd9')](),_0x2857b9)||_0xd63634(_0x2857b9,_0x5700ef[_0x26bd('0xd9')]()))){for(const _0x928774 of _0x2857b9)_0x5700ef[_0x26bd('0x5c')](_0x928774);return _0x5700ef;}const _0x1f6639=_0x4b465a(),_0x4cd34b=_0x38d9af['id'],_0x1bceb6=_0x26bd('0x21')+_0x8c7647,_0x39cdfe=this[_0x26bd('0xbd')]({'id':_0x1f6639,'type':_0x1bceb6,'data':_0x4c9b66,'createdAt':new Date(),'authorId':_0x4cd34b,'attributes':_0x1c121a});for(const _0x159cb5 of _0x2857b9)this[_0x26bd('0x96')](_0x1bceb6,_0x1f6639,_0x4cd34b,_0x159cb5,_0x4f7e69[_0x26bd('0x142')]());return _0x39cdfe;}[_0x26bd('0x8d')](_0x93168d,_0x24afea=null,_0x1443ed={}){if(_0x93168d[_0x26bd('0x108')])return null;const _0x4e6c42=this[_0x26bd('0x4e')][_0x26bd('0xb5')][_0x26bd('0x93')]('Users')['me'],_0x3703ee=new _0x597006(_0x93168d[_0x26bd('0x77')],_0x93168d[_0x26bd('0xf9')]);for(const {suggestion:_0x4e25d2,meta:_0x48e8f8}of this[_0x26bd('0xd6')](_0x3703ee,_0x26bd('0xb0')))if(_0x48e8f8[_0x26bd('0xb7')]&&!_0x48e8f8[_0x26bd('0xe9')]){if(_0x4e25d2[_0x26bd('0x5e')]){const _0x2e39d4=_0x4e25d2[_0x26bd('0xd9')]()[_0x26bd('0x54')](_0x2d7275=>_0x26bd('0xcc')!=_0x2d7275[_0x26bd('0x55')][_0x26bd('0x129')]);_0x2e39d4['every'](_0x27b2aa=>_0x3703ee['containsRange'](_0x27b2aa,!0x0))&&_0x4e25d2[_0x26bd('0xd8')]();if(_0x2e39d4[_0x26bd('0xf1')](_0x4054ec=>_0x4054ec['containsRange'](_0x3703ee,!0x0))){const _0x5bae81=this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x26bd('0xa4'),_0x24afea,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x5bae81([_0x3703ee],null,_0x1443ed)),null;}}else{const _0x313484=_0x3703ee[_0x26bd('0x138')](_0x4e25d2['getFirstRange']());null!==_0x313484&&_0x4e25d2[_0x26bd('0xca')]([_0x313484],null,_0x1443ed);}}if(_0x3703ee[_0x26bd('0x12e')](),_0x3703ee['isCollapsed']||_0x26bd('0xcc')==_0x3703ee['root'][_0x26bd('0x129')])return null;let _0x351ff6=null,_0x3b1645=_0x3703ee[_0x26bd('0x77')],_0x4e0753=_0x3703ee[_0x26bd('0xf9')];for(const {suggestion:_0x124fb7,meta:_0x31dd61}of this['_findSuggestions'](_0x3703ee,_0x26bd('0xa4')))if(_0x31dd61['isOwn']){if(_0x124fb7[_0x26bd('0x5e')]&&this[_0x26bd('0x126')]){let _0x17d277=!0x0;for(const _0xc9076c of _0x124fb7[_0x26bd('0xd9')]()){if(_0xc9076c[_0x26bd('0x39')](_0x3703ee,!0x0))return _0x124fb7;_0x3703ee[_0x26bd('0x39')](_0xc9076c)||(_0x17d277=!0x1);}_0x17d277&&_0x124fb7[_0x26bd('0xd8')]();}else{const _0xf02267=_0x124fb7[_0x26bd('0x62')]();if(_0xf02267[_0x26bd('0x39')](_0x3703ee,!0x0)){if(!this[_0x26bd('0x126')]&&_0x31dd61['containsRangeInObject'])continue;return _0x124fb7;}_0x3b1645=_0x3b1645[_0x26bd('0x117')](_0xf02267[_0x26bd('0x77')])?_0x3b1645:_0xf02267['start'],_0x4e0753=_0x4e0753[_0x26bd('0xe')](_0xf02267[_0x26bd('0xf9')])?_0x4e0753:_0xf02267['end'],_0x351ff6?_0xf02267[_0x26bd('0x77')]['isBefore'](_0x351ff6['getFirstRange']()['start'])?(_0x351ff6[_0x26bd('0x13a')](),_0x351ff6=_0x124fb7):_0x124fb7['removeMarkers']():_0x351ff6=_0x124fb7;}}if(_0x351ff6)return this[_0x26bd('0x69')](_0x351ff6,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x3b1645,_0x4e0753)),_0x351ff6;{const _0x524595=_0x4b465a(),_0x43ee0a=this[_0x26bd('0x8c')]['createRange'](_0x3b1645,_0x4e0753),_0x4d44c8=_0x4e6c42['id'],_0x4f26e7=_0x24afea?_0x26bd('0x6d')+_0x24afea:_0x26bd('0xa4'),_0x21d481=this[_0x26bd('0xbd')]({'id':_0x524595,'type':_0x4f26e7,'createdAt':new Date(),'authorId':_0x4d44c8,'attributes':_0x1443ed});return this[_0x26bd('0x96')](_0x4f26e7,_0x524595,_0x4d44c8,_0x43ee0a),_0x21d481;}}[_0x26bd('0x57')](_0x2792cb,_0x11d80e=_0x26bd('0x26'),_0x1707eb={}){const _0xaff242=this[_0x26bd('0x4e')]['plugins'][_0x26bd('0x93')](_0x26bd('0xb8'))['me'],_0x13c2b6=_0x2792cb[_0x26bd('0xe6')](_0x5124f5=>new _0x597006(_0x5124f5['start'],_0x5124f5['end'])),_0x58f3f9=new Set();for(const _0x2b341a of _0x13c2b6)for(const {suggestion:_0x232adf,meta:_0x4f4f1c}of this[_0x26bd('0xd6')](_0x2b341a,_0x26bd('0xb0')))_0x4f4f1c[_0x26bd('0xb7')]&&!_0x4f4f1c[_0x26bd('0xe9')]&&_0x58f3f9[_0x26bd('0xe5')](_0x232adf);for(const _0x3584b1 of _0x58f3f9)if(_0x3584b1[_0x26bd('0x5e')]){const _0x24fad2=_0x3584b1[_0x26bd('0xd9')]();(!_0x3584b1[_0x26bd('0x81')]||!_0x3584b1[_0x26bd('0x81')][_0x26bd('0x4f')])&&(_0x24fad2['every'](_0x518c56=>_0x13c2b6[_0x26bd('0xf1')](_0x484a7c=>_0x484a7c[_0x26bd('0x39')](_0x518c56,!0x0)))&&_0x3584b1[_0x26bd('0xd8')]());if(_0x13c2b6[_0x26bd('0x40')](_0x19df8d=>_0x24fad2[_0x26bd('0xf1')](_0x32488b=>_0x32488b[_0x26bd('0x39')](_0x19df8d,!0x0)))){const _0x1f9cd8=this[_0x26bd('0xb1')][_0x26bd('0x45')]('deletion',_0x11d80e,_0x26bd('0x10'));return this['forceDefaultExecution'](()=>_0x1f9cd8(_0x2792cb,null,_0x1707eb)),null;}}else{const _0x1590a8=_0x3584b1[_0x26bd('0x62')]();_0x13c2b6['some'](_0x25c19f=>_0x25c19f[_0x26bd('0x39')](_0x1590a8,!0x0))&&_0x3584b1[_0x26bd('0xd8')]();if(_0x13c2b6['every'](_0x501f94=>_0x1590a8[_0x26bd('0x39')](_0x501f94,!0x0))){const _0x43f908=this['_suggestionFactory'][_0x26bd('0x45')]('deletion',_0x11d80e,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x43f908(_0x13c2b6,null,_0x1707eb)),null;}}const _0x38447e=this['_suggestionFactory'][_0x26bd('0x45')](_0x26bd('0xa4'),_0x11d80e,'join');let _0x1c465c=null;for(const _0x508b82 of this[_0x26bd('0x73')]())if(_0x508b82[_0x26bd('0x49')]['id']==_0xaff242['id']&&_0x508b82[_0x26bd('0x130')]&&_0x26bd('0xa4')==_0x508b82[_0x26bd('0x100')]&&_0x508b82[_0x26bd('0x3')]==_0x11d80e&&(_0x38447e(_0x508b82[_0x26bd('0xd9')](),_0x13c2b6)||_0x38447e(_0x13c2b6,_0x508b82[_0x26bd('0xd9')]()))){if(_0x1c465c){if(_0x508b82[_0x26bd('0x70')]&&_0x508b82[_0x26bd('0x70')][_0x26bd('0x18')])continue;for(const _0x367665 of _0x508b82['getRanges']())_0x1c465c[_0x26bd('0x87')](_0x367665)||_0x1c465c[_0x26bd('0x5c')](_0x367665);_0x508b82[_0x26bd('0x13a')]();}else{_0x1c465c=_0x508b82;for(const _0x575c82 of _0x13c2b6)_0x508b82[_0x26bd('0x87')](_0x575c82)||_0x508b82[_0x26bd('0x5c')](_0x575c82);}}if(_0x1c465c)return _0x1c465c;_0x58f3f9[_0x26bd('0xf3')]();for(const _0x1f65b0 of _0x13c2b6)for(const {suggestion:_0x3099e0,meta:_0x979a35}of this[_0x26bd('0xd6')](_0x1f65b0,_0x26bd('0xa4')))_0x979a35['isOwn']&&_0x58f3f9[_0x26bd('0xe5')](_0x3099e0);for(const _0x24e000 of _0x58f3f9){const _0x11a415=_0x24e000[_0x26bd('0xd9')]();if(!_0x1707eb||!_0x1707eb[_0x26bd('0x4f')]){if(_0x13c2b6[_0x26bd('0x40')](_0x320ccd=>_0x11a415[_0x26bd('0xf1')](_0x3ec763=>_0x3ec763[_0x26bd('0x39')](_0x320ccd,!0x0))))return _0x24e000;}(!_0x24e000[_0x26bd('0x81')]||!_0x24e000[_0x26bd('0x81')][_0x26bd('0x4f')])&&(_0x11a415['every'](_0x1b3549=>_0x13c2b6[_0x26bd('0xf1')](_0x3c5930=>_0x3c5930[_0x26bd('0x39')](_0x1b3549,!0x0)))&&_0x24e000[_0x26bd('0xd8')]());}const _0x25357f=_0x4b465a(),_0x4d1395=_0xaff242['id'],_0x4d5997=_0x26bd('0x6d')+_0x11d80e,_0x18297d=this[_0x26bd('0xbd')]({'id':_0x25357f,'type':_0x4d5997,'createdAt':new Date(),'authorId':_0x4d1395,'attributes':_0x1707eb});for(const _0x3ed568 of _0x13c2b6)_0x3ed568[_0x26bd('0x12e')](),_0x3ed568['isCollapsed']||_0x26bd('0xcc')==_0x3ed568[_0x26bd('0x55')][_0x26bd('0x129')]||this[_0x26bd('0x96')](_0x4d5997,_0x25357f,_0x4d1395,_0x3ed568,_0x4f7e69['getMultiRangeId']());return _0x18297d;}[_0x26bd('0x69')](_0x24815e,_0x5ef6b7){const _0x587744=_0x24815e['getFirstMarker']();this[_0x26bd('0x8c')][_0x26bd('0xda')](_0x3fe105=>{_0x3fe105[_0x26bd('0x6c')](_0x587744,{'range':_0x5ef6b7});});}[_0x26bd('0x7b')](_0x50dd4d){const _0x330561=_0x50dd4d['id'],_0x129a84=this[_0x26bd('0x4e')][_0x26bd('0x22')][_0x26bd('0x93')](_0x26bd('0x50'));this[_0x26bd('0x32')][_0x26bd('0x1d')](_0x330561)||this[_0x26bd('0x32')][_0x26bd('0x58')]({'channelId':_0x129a84,'threadId':_0x330561,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x556d10=this[_0x26bd('0x32')]['getCommentThread'](_0x330561);_0x556d10[_0x26bd('0x13')](_0x26bd('0xdb')),_0x556d10[_0x26bd('0xdb')]=!0x1,_0x50dd4d[_0x26bd('0x70')]=_0x556d10;}[_0x26bd('0x85')](_0x4065e1,_0x29fb42,_0x1e6411,_0x2655cc){if(_0x4065e1[_0x26bd('0x100')]!=_0x29fb42||_0x4065e1['subType']!=_0x1e6411||_0x4065e1[_0x26bd('0x41')]['id']!=_0x2655cc)throw this[_0x26bd('0x4e')][_0x26bd('0x29')](_0x26bd('0x107')),new _0x1d5d2f(_0x26bd('0x107'),this);}[_0x26bd('0x7e')](_0x39d548,_0x4e7195){const _0x1a753a=_0x39d548[_0x26bd('0x62')]();if(_0x4e7195[_0x26bd('0x6e')](_0x1a753a))_0x39d548['removeMarkers']();else{if(_0x1a753a[_0x26bd('0x39')](_0x4e7195)){const _0x3abcae=this['_model'][_0x26bd('0x0')](_0x4e7195[_0x26bd('0x77')][_0x26bd('0x44')],_0x26bd('0xf9'));this['_setSuggestionRange'](_0x39d548,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x1a753a[_0x26bd('0x77')],_0x3abcae));const _0x47d345=_0x4b465a(),_0x234d88=_0x39d548[_0x26bd('0x41')]['id'],_0xddce46=_0x39d548['type']+':'+_0x39d548[_0x26bd('0x3')];this[_0x26bd('0xbd')]({'id':_0x47d345,'type':_0xddce46,'createdAt':new Date(),'authorId':_0x234d88,'data':_0x39d548[_0x26bd('0xf')],'attributes':_0x39d548[_0x26bd('0x81')]});const _0x3f8d47=this[_0x26bd('0x8c')][_0x26bd('0x0')](_0x4e7195[_0x26bd('0xf9')][_0x26bd('0x10b')],_0x26bd('0xf6')),_0x45c52e=this['_model'][_0x26bd('0x28')](_0x3f8d47,_0x1a753a[_0x26bd('0xf9')]);this['_addSuggestionMarker'](_0xddce46,_0x47d345,_0x234d88,_0x45c52e);}else{if(_0x1a753a[_0x26bd('0x3e')](_0x4e7195[_0x26bd('0x77')])){const _0x4bd1c8=this[_0x26bd('0x8c')][_0x26bd('0x0')](_0x4e7195[_0x26bd('0x77')]['nodeBefore'],_0x26bd('0xf9'));this[_0x26bd('0x69')](_0x39d548,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x1a753a[_0x26bd('0x77')],_0x4bd1c8));}else{const _0x299498=this[_0x26bd('0x8c')][_0x26bd('0x0')](_0x4e7195['end']['parent'],_0x26bd('0xf6'));this[_0x26bd('0x69')](_0x39d548,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x299498,_0x1a753a[_0x26bd('0xf9')]));}}}}[_0x26bd('0x27')](_0x550a47){for(const {suggestion:_0x14f94,meta:_0x4c56fe}of this[_0x26bd('0xd6')](_0x550a47,_0x26bd('0xb0'))){if(!_0x4c56fe['isOwn'])continue;const _0x520960=_0x14f94[_0x26bd('0xd9')]();for(const _0x5d51a8 of _0x520960)if(!_0x550a47[_0x26bd('0x116')](_0x5d51a8)[_0x26bd('0x18')])return!0x0;}return!0x1;}[_0x26bd('0xd2')](_0x507b99){const _0x3ba49f=this[_0x26bd('0x4e')]['plugins'][_0x26bd('0x93')](_0x26bd('0xb8'))[_0x26bd('0x16')](_0x507b99);if(!_0x3ba49f)throw new _0x1d5d2f(_0x26bd('0x137'),this);return _0x3ba49f;}[_0x26bd('0x9c')](_0x1265aa){const _0x21d11c=this['editor'][_0x26bd('0xb5')][_0x26bd('0x93')](_0x26bd('0xb8')),_0xb4cf84=_0x56cfb1(_0x26bd('0x11a')+_0x1265aa),_0x3ced70=_0x21d11c[_0x26bd('0x16')](_0xb4cf84);return _0x3ced70||_0x21d11c[_0x26bd('0x12c')]({'id':_0xb4cf84,'name':_0x1265aa});}[_0x26bd('0xde')](_0x1060fe,_0x31fc49,_0x4f65da,_0x34c162,_0x414861){const _0x5d5667=this[_0x26bd('0xd2')](_0x34c162),_0x2ad855=this[_0x26bd('0xb1')][_0x26bd('0x53')](_0x1060fe,_0x31fc49,_0x4f65da,_0x5d5667,_0x414861,_0x4e6c21=>this['_updateSuggestionData'](_0x4f65da,{'attributes':_0x4e6c21}));return this['listenTo'](_0x2ad855,_0x26bd('0x10'),()=>{this[_0x26bd('0x37')](_0x4f65da,{'state':'accepted'});},{'priority':_0x26bd('0x128')}),this[_0x26bd('0xb4')](_0x2ad855,_0x26bd('0xd8'),()=>{this['_updateSuggestionData'](_0x4f65da,{'state':_0x26bd('0x119')});},{'priority':'high'}),this[_0x26bd('0x127')]['set'](_0x4f65da,_0x2ad855),this[_0x26bd('0x94')][_0x26bd('0xab')](_0x2ad855,'notReady'),_0x2ad855;}[_0x26bd('0x68')](_0x297696){const _0x2612fa=_0x297696[_0x26bd('0x5b')](':');return{'group':_0x2612fa[0x0],'type':_0x2612fa[0x1],'subType':_0x2612fa['length']>=0x5?_0x2612fa[0x2]:null,'id':_0x2612fa[_0x26bd('0x18')]<0x5?_0x2612fa[0x2]:_0x2612fa[0x3],'authorId':_0x2612fa[_0x26bd('0x18')]<0x5?_0x2612fa[0x3]:_0x2612fa[0x4],'markerCount':0x6==_0x2612fa[_0x26bd('0x18')]?_0x2612fa[0x5]:null};}[_0x26bd('0x89')](_0x2e9a5c,_0x21b17d,_0x16310a){const _0x39c6fb=_0x2e9a5c[_0x26bd('0x62')](),_0x36fed1=_0x39c6fb[_0x26bd('0x77')],_0x5f140b=_0x39c6fb[_0x26bd('0xf9')];this['_setSuggestionRange'](_0x2e9a5c,this['_model'][_0x26bd('0x28')](_0x36fed1,_0x21b17d));const _0x48d72a=_0x4b465a(),_0x572f3d=_0x2e9a5c[_0x26bd('0x41')]['id'],_0x41602f=_0x2e9a5c[_0x26bd('0x100')]+(_0x2e9a5c['subType']?':'+_0x2e9a5c['subType']:'');this['_setSuggestionData']({'id':_0x48d72a,'type':_0x41602f,'createdAt':new Date(),'authorId':_0x572f3d,'originalSuggestionId':_0x2e9a5c['id'],'attributes':_0x2e9a5c['attributes'],'data':_0x2e9a5c['data']}),_0x26bd('0x1c')==_0x2e9a5c['type']&&(_0x16310a=this['_model'][_0x26bd('0x30')](_0x16310a[_0x26bd('0x10b')])),this[_0x26bd('0x96')](_0x41602f,_0x48d72a,_0x572f3d,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x16310a,_0x5f140b));}[_0x26bd('0xd6')](_0xa090a0,_0x400859=null){const _0x144887=[],_0x421d04=this[_0x26bd('0x8c')]['schema'],_0x1e2fc1=this[_0x26bd('0x4e')][_0x26bd('0xb5')][_0x26bd('0x93')]('Users')['me'];for(const _0x1a3485 of this[_0x26bd('0x73')]())if(_0x1a3485['isInContent']&&(!_0x400859||_0x1a3485['type']==_0x400859))for(const _0x32aeb1 of _0x1a3485[_0x26bd('0xd9')]()){const _0x2445ca=_0xa090a0[_0x26bd('0x77')]['isEqual'](_0x32aeb1[_0x26bd('0xf9')])||_0xa090a0[_0x26bd('0xf9')][_0x26bd('0x6e')](_0x32aeb1[_0x26bd('0x77')]);if(_0x2445ca||_0xa090a0[_0x26bd('0x138')](_0x32aeb1)){const _0x4eaf58=_0xa090a0['containsRange'](_0x32aeb1)&&Bt(_0x421d04,_0x32aeb1[_0x26bd('0x77')],_0xa090a0),_0x541219=_0x32aeb1[_0x26bd('0x39')](_0xa090a0)&&Bt(_0x421d04,_0xa090a0[_0x26bd('0x77')],_0x32aeb1);_0x144887['push']({'suggestion':_0x1a3485,'meta':{'isOwn':_0x1e2fc1==_0x1a3485['author'],'isNextTo':_0x2445ca,'isInsideObject':_0x4eaf58,'containsRangeInObject':_0x541219}});break;}}return _0x144887;}[_0x26bd('0x96')](_0x1fb300,_0x16dfdf,_0x3e6b86,_0x22eaa1,_0x56707e){this['_model'][_0x26bd('0xda')](_0x28d50e=>{let _0x3c6170=_0x26bd('0x5a')+_0x1fb300+':'+_0x16dfdf+':'+_0x3e6b86;_0x56707e&&(_0x3c6170=_0x3c6170+':'+_0x56707e),_0x28d50e[_0x26bd('0x2a')](_0x3c6170,{'range':_0x22eaa1,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x26bd('0x135')](_0x35a3d2){const _0x56ecee=_0x35a3d2[_0x26bd('0xe2')],_0x3eb1c1=_0x35a3d2['next'];_0x35a3d2[_0x26bd('0xe2')]=null,null!=_0x56ecee&&(_0x56ecee['next']=null),_0x35a3d2[_0x26bd('0x11e')]=null,null!=_0x3eb1c1&&(_0x3eb1c1['previous']=null),_0x26bd('0xac')==this[_0x26bd('0x94')][_0x26bd('0x93')](_0x35a3d2)&&(this[_0x26bd('0x94')][_0x26bd('0xab')](_0x35a3d2,_0x26bd('0xff')),this[_0x26bd('0xbc')]('suggestionUnloaded',_0x35a3d2,_0x56ecee,_0x3eb1c1));}[_0x26bd('0xbd')](_0x68a81e){const _0xc2e484=_0x68a81e['id'],_0x360c5d=this[_0x26bd('0x95')](_0x68a81e);if(this[_0x26bd('0x60')]&&this[_0x26bd('0x60')][_0x26bd('0x8b')]){const _0x454e7e=this[_0x26bd('0x4e')]['plugins'][_0x26bd('0x93')]('PendingActions'),_0x1b7ac7=_0x360c5d[_0x26bd('0x111')],_0x363c82=_0x360c5d[_0x26bd('0x3')]?_0x360c5d[_0x26bd('0x100')]+':'+_0x360c5d['subType']:_0x360c5d[_0x26bd('0x100')],_0x35fa35=this[_0x26bd('0x4e')]['locale'],_0x3fe42e=_0x454e7e[_0x26bd('0xe5')](_0x5cdd8b(_0x35fa35,_0x26bd('0x10a'))),_0x3fe7d3={'id':_0xc2e484,'type':_0x363c82,'hasComments':_0x1b7ac7,'data':_0x68a81e[_0x26bd('0xf')]||null,'originalSuggestionId':_0x68a81e[_0x26bd('0x90')]||null,'attributes':_0x360c5d[_0x26bd('0x81')]};this[_0x26bd('0x60')][_0x26bd('0x8b')](_0x3fe7d3)['then'](_0x173cb6=>{_0x360c5d[_0x26bd('0x4')]=!0x0,_0x454e7e['remove'](_0x3fe42e),_0x173cb6&&_0x173cb6['createdAt']&&(this[_0x26bd('0x127')][_0x26bd('0x93')](_0xc2e484)[_0x26bd('0x12b')]=_0x173cb6['createdAt']);})[_0x26bd('0x92')](_0x3f3b10=>{throw _0x558002(_0x26bd('0x9f')),this['editor'][_0x26bd('0xec')][_0x26bd('0xd7')]({'isUndoable':!0x1},()=>{_0x360c5d[_0x26bd('0xd8')]();}),_0x360c5d[_0x26bd('0xa1')](),this['_suggestions'][_0x26bd('0xc0')](_0x360c5d['id']),this[_0x26bd('0x94')][_0x26bd('0xc0')](_0x360c5d),_0x3f3b10;});}return _0x360c5d;}[_0x26bd('0x37')](_0x599a80,_0x4aa3a9){const _0x3bc83d=this[_0x26bd('0x4e')][_0x26bd('0xb5')]['get'](_0x26bd('0x76')),_0x150acd=this[_0x26bd('0xdf')](_0x599a80);if(this[_0x26bd('0x60')]&&this[_0x26bd('0x60')][_0x26bd('0x120')]){if(_0x150acd[_0x26bd('0x4')]){const _0x50d5b4=_0x3bc83d[_0x26bd('0xe5')](_0x5cdd8b(this[_0x26bd('0x4e')][_0x26bd('0x11f')],_0x26bd('0x10a')));this[_0x26bd('0x60')][_0x26bd('0x120')](_0x599a80,_0x4aa3a9)['then'](()=>{_0x3bc83d[_0x26bd('0x115')](_0x50d5b4);});}else _0x150acd['on'](_0x26bd('0x104'),()=>{this[_0x26bd('0x37')](_0x599a80,_0x4aa3a9);});}}[_0x26bd('0x23')](_0x3eca07){if(!this['_adapter']||!this[_0x26bd('0x60')][_0x26bd('0xdf')])throw new _0x1d5d2f(_0x26bd('0xa0'),this);return this[_0x26bd('0x60')][_0x26bd('0xdf')](_0x3eca07);}[_0x26bd('0xd4')](_0x34524c){const {id:_0x23450a,type:_0x1c8aa3,subType:_0x10d1b3,authorId:_0x4d0722}=this[_0x26bd('0x68')](_0x34524c),_0x56f965=this[_0x26bd('0x127')][_0x26bd('0x93')](_0x23450a)||this['_createSuggestion'](_0x1c8aa3,_0x10d1b3,_0x23450a,_0x4d0722,{});switch(this['_checkSuggestionCorrectness'](_0x56f965,_0x1c8aa3,_0x10d1b3,_0x4d0722),this[_0x26bd('0x94')][_0x26bd('0x93')](_0x56f965)){case _0x26bd('0x97'):this[_0x26bd('0x23')](_0x23450a)['then'](_0x199cd6=>{let _0x8d691d=Promise[_0x26bd('0x145')]();_0x199cd6[_0x26bd('0x111')]&&(_0x8d691d=this[_0x26bd('0x32')][_0x26bd('0x132')]({'channelId':this['editor'][_0x26bd('0x22')][_0x26bd('0x93')](_0x26bd('0x50')),'threadId':_0x23450a})),_0x8d691d[_0x26bd('0x46')](()=>{this[_0x26bd('0x95')](_0x199cd6)['_saved']=!0x0;});}),this[_0x26bd('0x94')][_0x26bd('0xab')](_0x56f965,'markerReady');break;case _0x26bd('0xff'):this['_updateSuggestionData'](_0x23450a,{'state':'open'});case _0x26bd('0x1b'):this[_0x26bd('0x94')][_0x26bd('0xab')](_0x56f965,'ready'),this[_0x26bd('0xbc')](_0x26bd('0x112'),_0x56f965);break;case _0x26bd('0xac'):this[_0x26bd('0xbc')](_0x26bd('0x10e'),_0x56f965);}return _0x56f965['addMarkerName'](_0x34524c),_0x56f965;}[_0x26bd('0x1a')](_0x1009ce){const _0x41248b=Array[_0x26bd('0x98')](_0x1009ce)['filter'](_0x25d824=>!_0x25d824[_0x26bd('0x5e')]),_0x53f41a=this[_0x26bd('0x73')]({'skipNotAttached':!0x0})[_0x26bd('0x54')](_0x222b92=>!_0x222b92[_0x26bd('0x5e')]),_0x1c22de=_0x53f41a[_0x26bd('0x54')](_0x2bf7ff=>!_0x1009ce[_0x26bd('0x82')](_0x2bf7ff)),_0x443ca8=new Map(_0x53f41a[_0x26bd('0xe6')](_0x2e1811=>[_0x2e1811,this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x2e1811['type'],_0x2e1811['subType'],'chain')])),_0x212866=new Map(_0x53f41a['map'](_0x5d51c1=>[_0x5d51c1,_0x5d51c1[_0x26bd('0x62')]()])),_0x38a23e=new Set(),_0x4ff7ef=new Set();for(let _0x3dded4=0x0;_0x3dded4<_0x41248b[_0x26bd('0x18')];_0x3dded4++)_0x833d9e(_0x41248b[_0x3dded4],_0x41248b,_0x3dded4+0x1);for(let _0x5ad83e=0x0;_0x5ad83e<_0x41248b['length'];_0x5ad83e++)_0x833d9e(_0x41248b[_0x5ad83e],_0x1c22de,0x0);for(let _0x1303ae=0x0;_0x1303ae<_0x41248b[_0x26bd('0x18')];_0x1303ae++){const _0x5ada0c=_0x41248b[_0x1303ae];!_0x4ff7ef['has'](_0x5ada0c)&&_0x5ada0c[_0x26bd('0xe2')]&&(_0x5ada0c[_0x26bd('0xe2')][_0x26bd('0x11e')]===_0x5ada0c&&(_0x5ada0c[_0x26bd('0xe2')][_0x26bd('0x11e')]=null),_0x5ada0c[_0x26bd('0xe2')]=null),!_0x38a23e[_0x26bd('0x82')](_0x5ada0c)&&_0x5ada0c['next']&&(_0x5ada0c[_0x26bd('0x11e')]['previous']===_0x5ada0c&&(_0x5ada0c[_0x26bd('0x11e')][_0x26bd('0xe2')]=null),_0x5ada0c[_0x26bd('0x11e')]=null);}function _0x833d9e(_0x184189,_0x4c4652,_0x213cfa){for(let _0x13aac4=_0x213cfa;_0x13aac4<_0x4c4652['length'];_0x13aac4++){const _0x7fd493=_0x1bc3da(_0x184189,_0x4c4652[_0x13aac4]);_0x7fd493&&(_0x7fd493[0x0][_0x26bd('0x11e')]=_0x7fd493[0x1],_0x7fd493[0x1][_0x26bd('0xe2')]=_0x7fd493[0x0],_0x38a23e['add'](_0x7fd493[0x0]),_0x4ff7ef[_0x26bd('0xe5')](_0x7fd493[0x1]));}}function _0x1bc3da(_0xef53ad,_0x446fbe){if(_0xef53ad['author']['id']!==_0x446fbe['author']['id'])return null;const _0x4cf84b=_0x443ca8[_0x26bd('0x93')](_0xef53ad)(_0xef53ad,_0x446fbe,_0x212866['get'](_0xef53ad),_0x212866['get'](_0x446fbe));if(!_0x4cf84b)return null;return _0x443ca8[_0x26bd('0x93')](_0x446fbe)(_0xef53ad,_0x446fbe,_0x212866[_0x26bd('0x93')](_0xef53ad),_0x212866[_0x26bd('0x93')](_0x446fbe))?_0x4cf84b[0x1]['commentThread']&&_0x4cf84b[0x1][_0x26bd('0x70')][_0x26bd('0x18')]?null:_0x4cf84b:null;}}[_0x26bd('0x3f')](_0x532f3d){const _0x173180=Array[_0x26bd('0x98')](_0x532f3d),_0x420976=this[_0x26bd('0x73')]({'skipNotAttached':!0x0}),_0x6504b6=_0x420976['filter'](_0x5d2c89=>!_0x532f3d[_0x26bd('0x82')](_0x5d2c89)),_0x4b68e3=new Map(_0x173180[_0x26bd('0xe6')](_0x15101f=>[_0x15101f,this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x15101f['type'],_0x15101f[_0x26bd('0x3')],_0x26bd('0x122'))])),_0x4ce54e=new Map(_0x420976[_0x26bd('0xe6')](_0x1ace04=>[_0x1ace04,_0x1ace04[_0x26bd('0xd9')]()]));for(let _0x5590e1=0x0;_0x5590e1<_0x173180[_0x26bd('0x18')];_0x5590e1++){if(_0x2d9c78(this,_0x173180[_0x5590e1],_0x173180,_0x5590e1+0x1))return!0x0;}for(let _0xc6b7f9=0x0;_0xc6b7f9<_0x173180['length'];_0xc6b7f9++){if(_0x2d9c78(this,_0x173180[_0xc6b7f9],_0x6504b6,0x0))return!0x0;}return!0x1;function _0x2d9c78(_0x177f02,_0x553461,_0x4fb244,_0x317793){for(let _0x40c214=_0x317793;_0x40c214<_0x4fb244['length'];_0x40c214++){const _0x58ca50=_0x4fb244[_0x40c214];if(_0x58ca50['type']!==_0x553461['type']||_0x58ca50[_0x26bd('0x49')]['id']!==_0x553461['author']['id']||_0x58ca50[_0x26bd('0x3')]!==_0x553461[_0x26bd('0x3')])continue;const _0x945ea8=_0x4b68e3[_0x26bd('0x93')](_0x553461),_0x5148c4=_0x4ce54e[_0x26bd('0x93')](_0x553461),_0x309557=_0x4ce54e[_0x26bd('0x93')](_0x58ca50),_0x39d98d=_0x553461[_0x26bd('0x70')]&&_0x553461[_0x26bd('0x70')][_0x26bd('0x18')],_0x2761ef=_0x58ca50[_0x26bd('0x70')]&&_0x58ca50[_0x26bd('0x70')]['length'];if(!_0x39d98d&&_0x945ea8(_0x309557,_0x5148c4))return _0x177f02[_0x26bd('0xfb')](_0x58ca50,_0x553461),_0x4ce54e[_0x26bd('0xc0')](_0x553461),!0x0;if(!_0x2761ef&&_0x945ea8(_0x5148c4,_0x309557))return _0x177f02[_0x26bd('0xfb')](_0x553461,_0x58ca50),_0x4ce54e[_0x26bd('0xc0')](_0x58ca50),!0x0;}return!0x1;}}[_0x26bd('0xfb')](_0x586dad,_0x458bce){if(_0x586dad['isMultiRange'])for(const _0x2c8bc5 of _0x458bce[_0x26bd('0xd9')]())_0x586dad[_0x26bd('0x5c')](_0x2c8bc5);else{const _0xc26c7b=_0x458bce[_0x26bd('0x62')]()[_0x26bd('0xf9')];this[_0x26bd('0x69')](_0x586dad,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x586dad[_0x26bd('0x62')]()[_0x26bd('0x77')],_0xc26c7b));}_0x458bce['removeMarkers']();}}class Dt{constructor(_0x151b20){this[_0x26bd('0x47')]=_0x151b20,this['_model']=_0x151b20[_0x26bd('0xec')],this['_customCallbacks']=new Map(),this[_0x26bd('0x78')]=new Map(),this['_registerDefaultCallbacks']();}[_0x26bd('0x53')](_0x1042a1,_0x1c2a22,_0x3f2824,_0x17baa0,_0x79c6ef,_0xd78a91){return new _0x4f7e69(this[_0x26bd('0x8c')],{'type':_0x1042a1,'subType':_0x1c2a22,'id':_0x3f2824,'author':_0x17baa0,'creator':_0x17baa0,'attributes':_0x79c6ef,'onAttributesChange':_0xd78a91,'onAccept':(..._0x594e6c)=>this[_0x26bd('0x45')](_0x1042a1,_0x1c2a22,_0x26bd('0x10'))(..._0x594e6c),'onDiscard':(..._0x16c0d9)=>this[_0x26bd('0x45')](_0x1042a1,_0x1c2a22,_0x26bd('0xd8'))(..._0x16c0d9)});}[_0x26bd('0xf2')](_0x1ce86c,_0x443e5f,_0x31c521,_0x2140a3){const _0x1122f0=_0x1ce86c+':'+_0x443e5f+':'+_0x31c521;this[_0x26bd('0x2d')][_0x26bd('0xab')](_0x1122f0,_0x2140a3);}[_0x26bd('0x45')](_0x534ffc,_0x2814e1,_0x2a5937){const _0x592206=_0x534ffc+':'+_0x2814e1+':'+_0x2a5937;return this[_0x26bd('0x2d')]['get'](_0x592206)||this['_defaultCallbacks'][_0x26bd('0x93')](_0x534ffc+':'+_0x2a5937);}['_registerDefaultCallbacks'](){const _0x128726=()=>{},_0x791fb2=_0x21c812=>{_0x21c812[_0x26bd('0x3b')]((_0xa414d9,_0x2e00f6)=>_0xa414d9['start'][_0x26bd('0x117')](_0x2e00f6[_0x26bd('0x77')])?0x1:-0x1),this[_0x26bd('0x8c')][_0x26bd('0xda')](_0x1b7be3=>{for(const _0x1d5b7f of _0x21c812){let _0x11faac;_0x11faac=_0x1d5b7f[_0x26bd('0xf9')]['isAtEnd']&&_0x1d5b7f[_0x26bd('0xf9')]['parent']==_0x1d5b7f['start']['nodeAfter']?_0x1b7be3[_0x26bd('0x36')](_0x1d5b7f[_0x26bd('0x77')][_0x26bd('0x88')],'on'):_0x1b7be3[_0x26bd('0x36')](_0x1d5b7f),this[_0x26bd('0x8c')][_0x26bd('0x35')](_0x11faac,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1090b3=(_0x3cfe62,_0x32875e)=>{this[_0x26bd('0x8c')][_0x26bd('0xda')](_0xa1364e=>{const {commandName:_0x3eca73,commandParams:_0x3d2edb=[]}=_0x32875e,_0x501b9b=_0x3cfe62['map'](_0x5684b2=>(_t(_0x5684b2)&&(_0x5684b2=this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x5684b2[_0x26bd('0xf9')])),_0x5684b2))[_0x26bd('0x54')](_0x915249=>_0x26bd('0xcc')!==_0x915249['root'][_0x26bd('0x129')]);if(_0x501b9b['length']<0x1)return;const _0x12551f=Array[_0x26bd('0x98')](this['_model'][_0x26bd('0xc6')][_0x26bd('0xae')][_0x26bd('0xd9')]())[_0x26bd('0xe6')](_0x2e0f3b=>_0x597006[_0x26bd('0x13c')](_0x2e0f3b));_0xa1364e['setSelection'](_0x501b9b);for(const _0x751fb5 of this[_0x26bd('0x47')][_0x26bd('0x103')][_0x26bd('0x103')]())_0x751fb5['refresh']();_0x3d2edb[_0x26bd('0x114')]({'forceDefaultExecution':!0x0}),this[_0x26bd('0x47')]['execute'](_0x3eca73,..._0x3d2edb);const _0x590809=_0x12551f[_0x26bd('0x54')](_0x55289e=>_0x26bd('0xcc')!=_0x55289e['root'][_0x26bd('0x129')]);_0x590809[_0x26bd('0x18')]>0x0&&_0xa1364e[_0x26bd('0xf5')](_0x590809);for(const _0x1e7b25 of _0x12551f)_0x1e7b25['detach']();});},_0x4760c1=(_0x55054a,_0x4d9c3b)=>0x1==_0x55054a[_0x26bd('0x18')]&&0x1==_0x4d9c3b[_0x26bd('0x18')]&&_0x55054a[0x0][_0x26bd('0xf9')][_0x26bd('0x6e')](_0x4d9c3b[0x0][_0x26bd('0x77')]),_0x53d7cb=(_0xa4d4e1,_0x19921a,_0x2f44ec,_0x4a6124)=>xt(_0xa4d4e1,_0x19921a,_0x2f44ec,_0x4a6124,this['_model'])?[_0xa4d4e1,_0x19921a]:xt(_0x19921a,_0xa4d4e1,_0x4a6124,_0x2f44ec,this['_model'])?[_0x19921a,_0xa4d4e1]:null;this[_0x26bd('0x78')]['set'](_0x26bd('0xf7'),_0x128726),this[_0x26bd('0x78')][_0x26bd('0xab')](_0x26bd('0x110'),_0x791fb2),this[_0x26bd('0x78')][_0x26bd('0xab')](_0x26bd('0xc4'),_0x4760c1),this[_0x26bd('0x78')][_0x26bd('0xab')]('insertion:chain',_0x53d7cb),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0x80'),_0x791fb2),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0xd3'),_0x128726),this['_defaultCallbacks'][_0x26bd('0xab')]('deletion:join',_0x4760c1),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0x7d'),_0x53d7cb),this[_0x26bd('0x78')]['set'](_0x26bd('0x13e'),_0x1090b3),this[_0x26bd('0x78')][_0x26bd('0xab')](_0x26bd('0xfa'),_0x128726),this[_0x26bd('0x78')][_0x26bd('0xab')]('formatInline:join',_0x4760c1),this[_0x26bd('0x78')][_0x26bd('0xab')](_0x26bd('0x7c'),_0x128726),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0x10f'),_0x1090b3),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0x2f'),_0x128726),this[_0x26bd('0x78')][_0x26bd('0xab')](_0x26bd('0x121'),_0x4760c1),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0x31'),_0x128726);}}function Bt(_0x3e031b,_0x3f34e6,_0x2976ce){for(const _0x1e73b2 of _0x3f34e6[_0x26bd('0x10b')][_0x26bd('0x8f')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1e73b2[_0x26bd('0x55')]==_0x1e73b2)return!0x1;if(!_0x2976ce[_0x26bd('0x106')](_0x1e73b2))return!0x1;if(_0x3e031b['isObject'](_0x1e73b2)||_0x3e031b[_0x26bd('0x67')](_0x1e73b2))return!0x0;}return!0x1;}function _t(_0x4b7d7c){return _0x4b7d7c['end'][_0x26bd('0x10b')]==_0x4b7d7c[_0x26bd('0x77')][_0x26bd('0x88')]&&_0x4b7d7c[_0x26bd('0xf9')][_0x26bd('0x141')];}function Mt(_0x14e8ed,_0x29799a,_0x742acc,_0x105461){const _0xe4b572=_0x1f32a3=>!_0x1f32a3[_0x26bd('0x13f')]['is'](_0x26bd('0x14'))&&!_0x105461[_0x26bd('0x5')](_0x1f32a3[_0x26bd('0x13f')]),_0x4a9eea=_0x14e8ed[_0x26bd('0x77')][_0x26bd('0xbb')](_0xe4b572),_0x3676b6=_0x14e8ed[_0x26bd('0xf9')][_0x26bd('0xbb')](_0xe4b572,{'direction':_0x26bd('0xb9')});return(!_0x14e8ed[_0x26bd('0x77')][_0x26bd('0x6e')](_0x4a9eea)||!_0x14e8ed[_0x26bd('0xf9')]['isEqual'](_0x3676b6))&&(_0x4a9eea[_0x26bd('0x117')](_0x3676b6)?_0x742acc[_0x26bd('0x6c')](_0x29799a,{'range':_0x742acc['createRange'](_0x4a9eea,_0x3676b6)}):_0x742acc['removeMarker'](_0x29799a),!0x0);}function $t(_0x325292){return _0x56cfb1(_0x325292);}function Nt(_0x457812){const _0x55afb3=_0x457812[_0x26bd('0x77')][_0x26bd('0x88')];return _0x55afb3&&_0x55afb3['is'](_0x26bd('0x6a'));}function Rt(_0x55553f,_0xd4796f){const _0x437e67=_0xd4796f[_0x26bd('0xb')][_0x26bd('0x5')](_0x55553f)||_0xd4796f['schema'][_0x26bd('0xcf')](_0x55553f);return _0xd4796f[_0x26bd('0x28')](_0xd4796f[_0x26bd('0x0')](_0x55553f,_0x26bd('0xdd')),_0x437e67?_0xd4796f[_0x26bd('0xfd')](_0x55553f):_0xd4796f[_0x26bd('0x0')](_0x55553f,_0x26bd('0xf9')));}function xt(_0x3311b7,_0x4b8f32,_0x8b468a,_0x581177,_0x73aa20){if(_0x8b468a['end'][_0x26bd('0x6e')](_0x581177[_0x26bd('0x77')]))return!0x0;if(_0x3311b7[_0x26bd('0x100')]!=_0x4b8f32['type'])return!0x1;if(!_0x8b468a[_0x26bd('0xf9')][_0x26bd('0x8e')](_0x581177[_0x26bd('0x77')]))return!0x1;const _0x235f97=_0x73aa20[_0x26bd('0x28')](_0x8b468a[_0x26bd('0xf9')],_0x581177[_0x26bd('0x77')])[_0x26bd('0x75')]();for(const _0x128d79 of _0x235f97)if([_0x26bd('0x51'),_0x26bd('0x109')][_0x26bd('0xef')](_0x128d79[_0x26bd('0x100')])&&_0x73aa20[_0x26bd('0xb')][_0x26bd('0x67')](_0x128d79[_0x26bd('0x13f')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x445c=['then','conversion','deletion:join','setTo','backward','attributes','insertContent','always','_rangeIsInLocalUserInsertion','marker-count','createRangeIn','formatInline:','locale','addComment','_splitMarkerName','formatBlock:join','some','authoredAt','has','author','widget','formatBlock:','removeMarker','oldRange','markerName','getFirstRange','skipNestingCheck','_breakSuggestionMarker','subType','markInlineFormat','elementToElement','trackChangesCommand','markMultiRangeDeletion','_onDiscard','item','enqueueChange','getAllAdjacentSuggestions','isInsideObject','moveTargetPosition','removeMarkers','adapter','insertion:chain','_joinSuggestions','getRange','getAttribute','unbind','collaboration.channelId','_suggestionState','low','isNextTo','forward','next','$graveyard','editingDowncast','suggestionLoaded','setSelection','_descriptionFactory','accept','remove','enableReadOnlyMode','hasSuggestion','isSelectable','discardAllSuggestions','isAfter','change:activeMarkers','every','commandName','discard','insertion:accept','stopListening','showSuggestionHighlights','isAtEnd','getDifference','fetchCommentThread','differ','_model','howMany','isInContent','size','createPositionAfter','start','after','discardSuggestion','addRange','isObject','insert','_editor','init','updateMarker','rethrowUnexpectedError','_setSuggestionRange','substr','getChangedMarkers','_checkSuggestionCorrectness','activeMarkers','addClass','options','selection','getRanges','highest','getUser','delete','dataReady','_getExternalAuthor','isTouching','isRemovable','elementStart','formatInline:accept','lowest','createSelection','never','markBlockFormat','length','position','_saved','split','normal','add','get','containsItem','pluginName','requires','TrackChangesEditing','containsRange','suggestion-type','_getAuthorFromId','getMarkers','dataDowncast','suggestionUnloaded','suggestion:','set','schema','_customCallbacks','detach','range','markDeletion','markerToData','trackChanges','data','removed','getIntersection','previous','multipleBlocks','registerCustomCallback','head','createElement','formatBlock:accept','containsRangeInObject','markerReady','change','_cutOutSuggestionMarker','authorName','splice','formatBlock:chain','getItems','acceptSelectedSuggestions','_setSuggestionData','data-suggestion','track-changes-adapter-already-set','map','hasCommentThread','isExternal','createPositionAt','getShiftedBy','_updateSuggestionData','addSuggestion','_trackFormatChanges','_suggestionFactory','insertion:','nodeBefore','formatInline','_handleNewSuggestionMarker','bindElementToMarker','track-changes-suggestion-not-found','from','ck-suggestion-marker-formatBlock','isLocal','end','batch','isCollapsed','getCustomProperty','track-changes-suggestion-data-mismatch','listenTo','addMarker:suggestion','CommentsRepository','suggestion','suggestionChanged','parent','ck-suggestion-marker--active','Users','notReady','updateSuggestion','values','clone','removeMarker:suggestion:formatBlock','dataToMarker','_refreshSuggestionsChain','_findSuggestions','isIntersectingWithRange','type','targetPosition','define','getSuggestion','element','addCommentThread','writer','hasComments','ready','commands','getSuggestions','deletion','isBlock','model','nodeAfter','deletion:','getMultiRangeId','commentThread','formatInline:chain','markers','value','splitPosition','_mergeNestedSuggestions','execute','root','_isForcedDefaultExecutionBlock','markerToHighlight','ck-suggestion-marker-','document','getChanges','getFirstMarker','getNearestSelectionRange','getSuggestionCallback','PENDING_ACTION_SUGGESTION','removeComment','isMultiRange','group','stop','addHighlight','addMarker','multi','insertion:join','fromCharCode','removeClass','_addThreadToSuggestion','createRange','high','toJSON','addMarkerName','fromRange','registerPostFixer','getAncestors','accepted','@external','error-saving-suggestion-data-suggestion-discarded','documentSelection','acceptAllSuggestions','_adapter','plugins','markInsertion','filter','markMultiRangeBlockFormat','_enabledCommands','isUndo','config','getWalker','_commentsRepository','consume','toViewElement','join','_createSuggestion','trackChanges.trackFormatChanges','PendingActions','push','elementEnd','for','_suggestions','insertion','isBefore','enableCommand','reconvertMarker','upcast','fire','forceDefaultExecution','discardSelectedSuggestions','clear','editor','formatGroupId','isLimit','refresh','trackChanges.mergeNestedSuggestions','_addSuggestionMarker','_joinWithAdjacentSuggestions','containsPosition','_registerDefaultCallbacks','addMarker:suggestion:formatBlock','consumable','addSuggestionData','newRange','formatBlock','buildSuggestion','deleteContent','rootName','name','ck-suggestion-marker','isDocumentOperation','_defaultCallbacks','getLastMatchingPosition','deletion:chain','formatInline:discard','includes','mapper','resolve','_removeSuggestion','isEqual','createdAt','isOwn','external:','applyOperation','default','change:_saved','creator'];(function(_0x1f0853,_0x445ce8){const _0x3cc073=function(_0x4a8b22){while(--_0x4a8b22){_0x1f0853['push'](_0x1f0853['shift']());}};_0x3cc073(++_0x445ce8);}(_0x445c,0xe6));const _0x3cc0=function(_0x1f0853,_0x445ce8){_0x1f0853=_0x1f0853-0x0;let _0x3cc073=_0x445c[_0x1f0853];return _0x3cc073;};import{Plugin as _0x294816,PendingActions as _0x1cabea}from'ckeditor5/src/core';import{LiveRange as _0x4b431b}from'ckeditor5/src/engine';import{CKEditorError as _0x352f3d,uid as _0x29dde6,priorities as _0x39fcb1,logWarning as _0x512b36}from'ckeditor5/src/utils';import{toWidget as _0x526dc8}from'ckeditor5/src/widget';import{Users as _0x49dde2,hashObject as _0x17e8a1}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b8acc from'./commands/trackchangescommand';import _0x3c867c from'./commands/acceptsuggestioncommand';import _0x89ac98 from'./commands/discardsuggestioncommand';import _0x1156fe from'./commands/executeonallsuggestionscommand';import _0x2fccee from'./commands/executeonselectedsuggestionscommand';import _0x1bda2a from'./suggestion';import _0x2edd7c from'./suggestiondescriptionfactory';import _0x425b75 from'./integrations/alignment';import _0x369667 from'./integrations/basicstyles';import _0x250293 from'./integrations/blockquote';import _0x240b2b from'./integrations/ckbox';import _0x3d2007 from'./integrations/codeblock';import _0x1d7607 from'./integrations/comments';import _0x39e631 from'./integrations/deletecommand';import _0x430e69 from'./integrations/documentlist';import _0x192c8f from'./integrations/entercommand';import _0x1c76f0 from'./integrations/findandreplace';import _0x40a97a from'./integrations/font';import _0x14bf93 from'./integrations/formatpainter';import _0x521ccc from'./integrations/heading';import _0x2aa956 from'./integrations/highlight';import _0x42e05e from'./integrations/horizontalline';import _0x4c023e from'./integrations/htmlembed';import _0x1d9489 from'./integrations/image';import _0x25cd74 from'./integrations/imagereplace';import _0x3f6c9b from'./integrations/importword';import _0x1ece04 from'./integrations/indent';import _0x2757a9 from'./integrations/inputcommand';import _0x28c13c from'./integrations/link';import _0x6423a4 from'./integrations/list';import _0x2bc1f0 from'./integrations/listproperties';import _0x167f8f from'./integrations/mediaembed';import _0x2f9922 from'./integrations/mention';import _0x21e79b from'./integrations/pagebreak';import _0x234507 from'./integrations/paragraph';import _0xebcea1 from'./integrations/removeformat';import _0x4e9827 from'./integrations/restrictededitingmode';import _0x443267 from'./integrations/shiftentercommand';import _0x59d316 from'./integrations/standardeditingmode';import _0x45c07b from'./integrations/style';import _0x571ef from'./integrations/table';import _0x4924ef from'./integrations/tablemergesplit';import _0x1fe183 from'./integrations/tableheadings';import _0x53e2c8 from'./integrations/tableclipboard';import _0x2a142f from'./integrations/tablecolumnresize';import _0x1e965e from'./integrations/template';import _0xdcb17f from'./integrations/tableofcontents';import _0x2ffdcd from'./integrations/title';import _0x235e46 from'./integrations/undo';import{getTranslation as _0x5b8049}from'./utils/common-translations';import _0xff5417 from'./integrations/tablecaption';import _0x5b630d from'./integrations/documentlistproperties';import _0x14c8f4 from'./integrations/tableproperties';export default class p extends _0x294816{static get[_0x3cc0('0xd4')](){return[_0x3cc0('0x113'),_0x49dde2,_0x1cabea,_0x425b75,_0x369667,_0x250293,_0x240b2b,_0x3d2007,_0x1d7607,_0x39e631,_0x430e69,_0x5b630d,_0x192c8f,_0x1c76f0,_0x40a97a,_0x14bf93,_0x521ccc,_0x2aa956,_0x42e05e,_0x4c023e,_0x1d9489,_0x25cd74,_0x3f6c9b,_0x1ece04,_0x2757a9,_0x28c13c,_0x6423a4,_0x2bc1f0,_0x167f8f,_0x2f9922,_0x21e79b,_0x234507,_0xebcea1,_0x4e9827,_0x443267,_0x59d316,_0x45c07b,_0x571ef,_0x4924ef,_0x1fe183,_0xff5417,_0x53e2c8,_0x2a142f,_0xdcb17f,_0x14c8f4,_0x1e965e,_0x2ffdcd,_0x235e46];}static get[_0x3cc0('0xd3')](){return _0x3cc0('0xd5');}constructor(_0x14b6ad){function _0x15f9aa(_0x83ae84){return _0x83ae84[_0x3cc0('0xfa')](_0x43e0e1=>String[_0x3cc0('0xb')](_0x43e0e1))[_0x3cc0('0x26')]('');}super(_0x14b6ad),this[_0x3cc0('0xdd')](_0x3cc0('0xb9'),[]),this['on'](_0x3cc0('0x9b'),(_0x17f9fe,_0x32eca7,_0x2f34e2,_0x50d0ee)=>{this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](()=>{for(const _0x430cc6 of[..._0x50d0ee,..._0x2f34e2])this['_model'][_0x3cc0('0x135')]['has'](_0x430cc6)&&_0x14b6ad['editing'][_0x3cc0('0x31')](_0x430cc6);});}),this[_0x3cc0('0x93')]=new _0x2edd7c(this[_0x3cc0('0x37')]['model']['schema'],this['editor'][_0x3cc0('0x67')]),this[_0x3cc0('0x1a')]=null,this[_0x3cc0('0x102')]=new Dt(this[_0x3cc0('0x37')]),this[_0x3cc0('0x2d')]=new Map(),this[_0x3cc0('0x23')]=_0x14b6ad[_0x3cc0('0x1b')][_0x3cc0('0xd1')]('CommentsRepository'),this['_enabledCommands']=new Set(),this[_0x3cc0('0xa6')]=this[_0x3cc0('0x37')][_0x3cc0('0x12f')],this['_suggestionState']=new WeakMap(),this[_0x3cc0('0x13b')]=!0x1,_0x14b6ad[_0x3cc0('0x21')][_0x3cc0('0x124')](_0x3cc0('0x28'),_0x3cc0('0x58')),this[_0x3cc0('0x101')]=_0x14b6ad[_0x3cc0('0x21')][_0x3cc0('0xd1')]('trackChanges.trackFormatChanges'),_0x14b6ad['config'][_0x3cc0('0x124')](_0x3cc0('0x3b'),!0x0),this[_0x3cc0('0x138')]=_0x14b6ad[_0x3cc0('0x21')][_0x3cc0('0xd1')](_0x3cc0('0x3b')),this[_0x3cc0('0x7a')]=new _0x4b8acc(_0x14b6ad,this[_0x3cc0('0x1f')]),this[_0x15f9aa([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x15f9aa([0x34,0x30,0x34,0x36,0x31,0x34,0x31,0x32]);}[_0x3cc0('0xb2')](){const _0x139679=this[_0x3cc0('0x37')];_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x90'))[_0x3cc0('0x13c')]({'model':_0x3cc0('0x114'),'view':_0x829a7a=>{const {id:_0x16d97a,type:_0x38fe10}=this[_0x3cc0('0x69')](_0x829a7a[_0x3cc0('0x73')]),_0x4a3a2d=[_0x3cc0('0x49'),_0x3cc0('0x13d')+_0x38fe10];let _0x44ab8d=0xbb8;return this[_0x3cc0('0xb9')][_0x3cc0('0x4f')](_0x829a7a[_0x3cc0('0x73')])&&(_0x4a3a2d[_0x3cc0('0x2a')](_0x3cc0('0x117')),_0x44ab8d=0xbc2),'deletion'==_0x38fe10&&(_0x44ab8d+=0x5),{'classes':_0x4a3a2d,'attributes':{'data-suggestion':_0x16d97a},'priority':_0x44ab8d};}}),_0x139679[_0x3cc0('0x5c')]['for'](_0x3cc0('0xda'))[_0x3cc0('0xd0')](_0x1e472d=>{_0x1e472d['on'](_0x3cc0('0x112'),(_0x44c9e0,_0x3bade4,_0x1a61da)=>{if(!_0x1a61da[_0x3cc0('0xbb')][_0x3cc0('0xa1')])return;const _0x345f4b=_0x3bade4[_0x3cc0('0x7d')];if(!_0x345f4b)return;const _0x8b5cbe=_0x1a61da[_0x3cc0('0x50')][_0x3cc0('0x25')](_0x345f4b);_0x139679[_0x3cc0('0x12f')]['schema']['isObject'](_0x345f4b)&&_0x8b5cbe&&!_0x8b5cbe['getCustomProperty'](_0x3cc0('0x6f'))&&_0x8b5cbe['is']('containerElement')&&_0x526dc8(_0x8b5cbe,_0x1a61da[_0x3cc0('0x128')]);},{'priority':_0x3cc0('0xf')});}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0xda'))[_0x3cc0('0x13c')]({'model':'suggestion','view':(_0x1c3b9d,_0x317169)=>{if(!_0x317169[_0x3cc0('0xbb')]['showSuggestionHighlights'])return null;const {type:_0x539519}=this[_0x3cc0('0x69')](_0x1c3b9d[_0x3cc0('0x73')]);return{'classes':[_0x3cc0('0x49'),'ck-suggestion-marker-'+_0x539519],'priority':0xbb8};}});const _0x3343f2=({showActiveMarkers:_0x2a46db=!0x0}={})=>(_0x40dedc,_0x22aaf8,_0x23e0a0)=>{if(!_0x22aaf8[_0x3cc0('0x7d')])return;if(_0x22aaf8[_0x3cc0('0x7d')]['is'](_0x3cc0('0xbc')))return void _0x23e0a0['consumable'][_0x3cc0('0x24')](_0x22aaf8[_0x3cc0('0x7d')],_0x40dedc[_0x3cc0('0x48')]);const _0x44bd8f=_0x23e0a0['mapper'][_0x3cc0('0x25')](_0x22aaf8[_0x3cc0('0x7d')]);if(!(_0x22aaf8['item']['is']('element')&&_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xde')][_0x3cc0('0x12e')](_0x22aaf8['item'])&&!_0x44bd8f['getCustomProperty'](_0x3cc0('0x7'))))return;const {id:_0x273273}=this[_0x3cc0('0x69')](_0x22aaf8[_0x3cc0('0x73')]);_0x23e0a0[_0x3cc0('0x128')][_0x3cc0('0xba')]([_0x3cc0('0x49'),_0x3cc0('0x10a')],_0x44bd8f),_0x23e0a0[_0x3cc0('0x128')]['setAttribute'](_0x3cc0('0xf8'),_0x273273,_0x44bd8f),_0x23e0a0[_0x3cc0('0x50')][_0x3cc0('0x107')](_0x44bd8f,_0x22aaf8['markerName']),_0x2a46db&&(this[_0x3cc0('0xb9')][_0x3cc0('0x4f')](_0x22aaf8['markerName'])?_0x23e0a0['writer'][_0x3cc0('0xba')](_0x3cc0('0x117'),_0x44bd8f):_0x23e0a0[_0x3cc0('0x128')][_0x3cc0('0xc')](_0x3cc0('0x117'),_0x44bd8f));for(const _0x2be561 of _0x139679['model'][_0x3cc0('0x65')](_0x22aaf8[_0x3cc0('0x7d')])[_0x3cc0('0xf5')]())_0x23e0a0['consumable']['consume'](_0x2be561,_0x40dedc[_0x3cc0('0x48')]);_0x23e0a0[_0x3cc0('0x41')]['consume'](_0x22aaf8['item'],_0x40dedc[_0x3cc0('0x48')]);};_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')]('dataDowncast')['add'](_0x329c2d=>{_0x329c2d['on']('addMarker:suggestion:formatBlock',(_0x46306d,_0x2d9cc6,_0x316848)=>{_0x316848[_0x3cc0('0xbb')]['showSuggestionHighlights']&&_0x3343f2({'showActiveMarkers':!0x1})(_0x46306d,_0x2d9cc6,_0x316848);},{'priority':_0x3cc0('0xbe')});}),_0x139679[_0x3cc0('0x5c')]['for'](_0x3cc0('0xda'))[_0x3cc0('0xe3')]({'model':_0x3cc0('0x114'),'view':(_0x88ce75,_0x1e41ca)=>_0x1e41ca[_0x3cc0('0xbb')][_0x3cc0('0xa1')]?null:{'group':_0x3cc0('0x114'),'name':_0x88ce75[_0x3cc0('0xb6')](0xb)}}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x32'))[_0x3cc0('0x79')]({'view':{'name':_0x3cc0('0x114'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2fc32f,{writer:_0x52a0c5})=>{let _0x4b216d=_0x3cc0('0xdc')+_0x2fc32f['getAttribute'](_0x3cc0('0xd7'))+':'+_0x2fc32f[_0x3cc0('0x87')]('id');return _0x2fc32f[_0x3cc0('0x87')](_0x3cc0('0x64'))&&(_0x4b216d+=':'+_0x2fc32f[_0x3cc0('0x87')]('marker-count')),_0x52a0c5[_0x3cc0('0xec')]('$marker',{'data-name':_0x4b216d});}}),_0x139679[_0x3cc0('0x5c')]['for'](_0x3cc0('0x32'))[_0x3cc0('0x11e')]({'view':_0x3cc0('0x114')}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x90'))[_0x3cc0('0xd0')](_0x3322d1=>{_0x3322d1['on'](_0x3cc0('0x40'),_0x3343f2(),{'priority':'high'});}),_0x139679[_0x3cc0('0x5c')][_0x3cc0('0x2c')](_0x3cc0('0x90'))[_0x3cc0('0xd0')](_0x2b2e48=>{_0x2b2e48['on'](_0x3cc0('0x11d'),(_0x31ab7a,_0x2c1858,_0x3a213f)=>{const _0xda3841=_0x3a213f['mapper']['markerNameToElements'](_0x2c1858[_0x3cc0('0x73')]);if(_0xda3841)for(const _0x160004 of _0xda3841)_0x160004[_0x3cc0('0x10f')](_0x3cc0('0x7'))||(_0x3a213f[_0x3cc0('0x128')][_0x3cc0('0xc')]([_0x3cc0('0x49'),_0x3cc0('0x10a'),'ck-suggestion-marker--active'],_0x160004),_0x3a213f[_0x3cc0('0x128')]['removeAttribute'](_0x3cc0('0xf8'),_0x160004),_0x3a213f['mapper']['unbindElementFromMarkerName'](_0x160004,_0x2c1858[_0x3cc0('0x73')]));},{'priority':_0x3cc0('0xf')});}),_0x139679[_0x3cc0('0x12f')][_0x3cc0('0x13e')][_0x3cc0('0x13')](_0x5cd0d5=>{let _0x3064e3=!0x1;const _0x71ce4c=Array['from'](_0x139679[_0x3cc0('0x12f')][_0x3cc0('0x13e')][_0x3cc0('0xa5')][_0x3cc0('0xb7')]()),_0x5aa45f=new Set();for(const {name:_0x365861,data:_0x3b5882}of _0x71ce4c){const {group:_0x25049a,type:_0x5f32d8,id:_0x46fc2d}=this[_0x3cc0('0x69')](_0x365861);if(_0x3cc0('0x114')!==_0x25049a)continue;const _0x4be194=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x46fc2d);if(null!=_0x3b5882[_0x3cc0('0x43')]){_0x3cc0('0x105')==_0x5f32d8&&(_0x3064e3=_0x3064e3||Mt(_0x3b5882['newRange'],_0x365861,_0x5cd0d5,_0x139679['model']['schema']));if(_0x3b5882[_0x3cc0('0x43')]['isCollapsed']||_0x3cc0('0x8f')==_0x3b5882[_0x3cc0('0x43')]['root']['rootName']||_0x3cc0('0x44')==_0x5f32d8&&!Nt(_0x3b5882['newRange'])||'deletion'==_0x5f32d8&&!(!_t(_0x35f5ab=_0x3b5882[_0x3cc0('0x43')])&&!function(_0x31c0e3){return _0x31c0e3[_0x3cc0('0xab')][_0x3cc0('0x116')]==_0x31c0e3[_0x3cc0('0x10c')][_0x3cc0('0x104')]&&_0x31c0e3[_0x3cc0('0xab')]['isAtEnd'];}(_0x35f5ab)))_0x5cd0d5[_0x3cc0('0x71')](_0x365861),_0x3064e3=!0x0;else{if(!_0x4be194||!_0x4be194['isInContent'])continue;_0x5aa45f[_0x3cc0('0xd0')](_0x4be194);}}}var _0x35f5ab;return _0x5aa45f['size']>0x0&&(_0x3064e3=!!this[_0x3cc0('0x3d')](_0x5aa45f)||_0x3064e3),_0x3064e3;}),_0x139679['model']['document'][_0x3cc0('0x13')](_0x42b28c=>{let _0x420257=!0x1;for(const _0x4b7ca2 of _0x139679[_0x3cc0('0x12f')][_0x3cc0('0x13e')][_0x3cc0('0xa5')][_0x3cc0('0x13f')]()){if(_0x3cc0('0xb0')!=_0x4b7ca2[_0x3cc0('0x122')])continue;const _0x4573db=_0x4b7ca2['position'][_0x3cc0('0xfe')](_0x4b7ca2[_0x3cc0('0xcb')]);if(_0x4573db['isAtEnd'])for(const _0x541960 of this['_suggestions'][_0x3cc0('0x11b')]()){if(_0x541960['isMultiRange']||!_0x541960[_0x3cc0('0xa8')])continue;if(_0x3cc0('0x44')!=_0x541960[_0x3cc0('0x122')])continue;const _0x123c6d=_0x541960[_0x3cc0('0x74')]();if(_0x123c6d[_0x3cc0('0xab')]['parent']!=_0x123c6d[_0x3cc0('0x10c')][_0x3cc0('0x116')]&&_0x123c6d[_0x3cc0('0x10c')][_0x3cc0('0x53')](_0x4b7ca2[_0x3cc0('0xcc')])){const _0x434e1c=_0x139679['model'][_0x3cc0('0xe')](_0x123c6d[_0x3cc0('0xab')],_0x4573db);_0x42b28c['updateMarker'](_0x541960[_0x3cc0('0x140')](),{'range':_0x434e1c}),_0x420257=!0x0;}}}return _0x420257;}),_0x139679['model'][_0x3cc0('0x135')]['on']('update:suggestion',(_0x3e04b4,_0x25c4ff,_0x41d56f)=>{if(null==_0x41d56f){const {id:_0x44e0fd}=this[_0x3cc0('0x69')](_0x25c4ff[_0x3cc0('0x48')]),_0xa2ae1c=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x44e0fd);_0xa2ae1c&&_0xa2ae1c[_0x3cc0('0x11')](_0x25c4ff[_0x3cc0('0x48')]);}}),_0x139679[_0x3cc0('0x12f')]['document']['on']('change:data',()=>{const _0x258ce3=Array[_0x3cc0('0x109')](_0x139679['model'][_0x3cc0('0x13e')][_0x3cc0('0xa5')]['getChangedMarkers']())[_0x3cc0('0x1d')](_0x407a67=>'suggestion'===this[_0x3cc0('0x69')](_0x407a67[_0x3cc0('0x48')])[_0x3cc0('0x5')]);if(0x0===_0x258ce3[_0x3cc0('0xcb')])return;_0x258ce3['sort']((_0x18a57d,_0x2914b0)=>{const _0x2c086e=_0x18a57d['data'][_0x3cc0('0x72')],_0x25182b=_0x2914b0[_0x3cc0('0xe5')][_0x3cc0('0x72')];return null===_0x2c086e&&null===_0x25182b?0x0:null===_0x2c086e&&null!==_0x25182b?-0x1:null!==_0x2c086e&&null===_0x25182b?0x1:_0x2c086e[_0x3cc0('0xab')][_0x3cc0('0x2f')](_0x25182b[_0x3cc0('0xab')])?-0x1:0x1;});const _0x52ac04=new Set(),_0x2adc10=new Set();for(const {name:_0x154719,data:_0x26adc1}of _0x258ce3){const {id:_0x7821a4}=this['_splitMarkerName'](_0x154719);if(null===_0x26adc1[_0x3cc0('0x72')]){const _0x49eff3=this['_handleNewSuggestionMarker'](_0x154719);_0x2adc10[_0x3cc0('0xd0')](_0x49eff3);}else{const _0x301c4b=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x7821a4);null!==_0x26adc1[_0x3cc0('0x43')]||_0x301c4b['isInContent']?(_0x52ac04[_0x3cc0('0xd0')](_0x301c4b[_0x3cc0('0xeb')]),_0x2adc10['add'](_0x301c4b)):this[_0x3cc0('0x52')](_0x301c4b);}}_0x2adc10[_0x3cc0('0xa9')]>0x0&&this[_0x3cc0('0x11f')](_0x2adc10);for(const _0x419fd4 of _0x52ac04)this[_0x3cc0('0x33')](_0x3cc0('0x115'),_0x419fd4);}),_0x139679[_0x3cc0('0x12f')]['on'](_0x3cc0('0x57'),(_0x5949ba,_0x3a685c)=>{const _0x5d9df1=_0x3a685c[0x0];if(!this[_0x3cc0('0x2d')][_0x3cc0('0xa9')])return;if(!_0x5d9df1[_0x3cc0('0x4a')])return;if(_0x5d9df1['batch'][_0x3cc0('0x20')]||!_0x5d9df1[_0x3cc0('0x10d')][_0x3cc0('0x10b')])return;let _0x2b5383,_0x27922e;switch(_0x5d9df1[_0x3cc0('0x122')]){case'insert':_0x2b5383=_0x139679['model'][_0x3cc0('0xfd')](_0x5d9df1[_0x3cc0('0xcc')]),_0x27922e=_0x2b5383['getShiftedBy'](_0x5d9df1['howMany']);break;case'split':_0x2b5383=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xfd')](_0x5d9df1[_0x3cc0('0x137')]),_0x27922e=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xfd')](_0x5d9df1[_0x3cc0('0x81')]);break;case'move':_0x2b5383=_0x139679[_0x3cc0('0x12f')]['createPositionAt'](_0x5d9df1[_0x3cc0('0x123')]),_0x27922e=_0x2b5383['getShiftedBy'](_0x5d9df1[_0x3cc0('0xa7')]);break;default:return;}const _0x5a9de0=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xe')](_0x2b5383,_0x27922e);_0x139679[_0x3cc0('0x12f')]['change'](()=>{for(const {suggestion:_0x1940f5,meta:_0x3c7e15}of this[_0x3cc0('0x120')](_0x5a9de0)){if(_0x1940f5[_0x3cc0('0x4')])continue;if('formatInline'==_0x1940f5[_0x3cc0('0x122')])continue;const _0x1a0c21=_0x1940f5[_0x3cc0('0xe5')]&&_0x1940f5[_0x3cc0('0xe5')][_0x3cc0('0xe9')];('formatBlock'!=_0x1940f5['type']||'split'==_0x5d9df1['type']&&!_0x1a0c21)&&(_0x3c7e15[_0x3cc0('0xee')]||_0x3cc0('0x2e')==_0x1940f5[_0x3cc0('0x122')]&&_0x3c7e15[_0x3cc0('0x55')]||_0x1940f5[_0x3cc0('0x74')]()[_0x3cc0('0xd6')](_0x5a9de0)&&this['_breakSuggestionMarker'](_0x1940f5,_0x2b5383,_0x27922e));}});},{'priority':_0x3cc0('0xc7')}),_0x139679[_0x3cc0('0x12f')]['on'](_0x3cc0('0x46'),(_0x374758,_0x1ecbd4)=>{const _0x35b13f=_0x1ecbd4[0x0],_0x30edfc=_0x1ecbd4[0x1];if(_0x30edfc&&_0x30edfc[_0x3cc0('0x34')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x35b13f[_0x3cc0('0x10e')])return;const _0x3d0f9=_0x139679[_0x3cc0('0x12f')]['schema'],{start:_0x5da603,end:_0x1934fe}=_0x35b13f[_0x3cc0('0x74')](),_0xb15961=_0x5da603['nodeAfter']&&_0x3d0f9[_0x3cc0('0x39')](_0x5da603[_0x3cc0('0x130')])?null:_0x3d0f9[_0x3cc0('0x0')](_0x5da603,_0x3cc0('0x8d')),_0x92950c=_0x1934fe[_0x3cc0('0x104')]&&_0x3d0f9[_0x3cc0('0x39')](_0x1934fe[_0x3cc0('0x104')])?null:_0x3d0f9[_0x3cc0('0x0')](_0x1934fe,_0x3cc0('0x5f')),_0x3a58b2=_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xe')](_0xb15961?_0xb15961[_0x3cc0('0xab')]:_0x5da603,_0x92950c?_0x92950c[_0x3cc0('0x10c')]:_0x1934fe);_0x139679[_0x3cc0('0x12f')][_0x3cc0('0xf0')](_0xd832e5=>{this[_0x3cc0('0xe2')](_0x3a58b2);const _0x743df9=_0x139679[_0x3cc0('0x12f')]['schema'][_0x3cc0('0x0')](_0x3a58b2[_0x3cc0('0xab')]);_0x35b13f['is'](_0x3cc0('0x18'))?_0xd832e5[_0x3cc0('0x92')](_0x743df9):_0x35b13f[_0x3cc0('0x5e')](_0x743df9);}),_0x374758[_0x3cc0('0x6')]();},{'priority':_0x39fcb1[_0x3cc0('0xcf')]+0xa}),_0x139679['model']['on'](_0x3cc0('0x61'),(_0x5d14c4,_0x243393)=>{const _0x20696e=_0x243393[_0x243393[_0x3cc0('0xcb')]-0x1];_0x20696e&&_0x20696e[_0x3cc0('0x34')]||this[_0x3cc0('0x13b')]||this[_0x3cc0('0x7a')][_0x3cc0('0x136')]&&(_0x139679[_0x3cc0('0x12f')]['change'](()=>{let _0x3d8055=_0x139679[_0x3cc0('0x12f')]['insertContent'](_0x243393[0x0],_0x243393[0x1],_0x243393[0x2],{'forceDefaultExecution':!0x0});if(!_0x3d8055)return;_0x5d14c4['return']=_0x3d8055[_0x3cc0('0x11c')]();const _0xc12982=_0x3d8055[_0x3cc0('0x10c')][_0x3cc0('0x104')],_0x1a1ebc=_0x139679[_0x3cc0('0x12f')]['schema'];_0xc12982&&_0x1a1ebc[_0x3cc0('0x12e')](_0xc12982)&&!_0x1a1ebc[_0x3cc0('0xaf')](_0xc12982)&&(_0x3d8055=_0x139679[_0x3cc0('0x12f')]['createRange'](_0x3d8055[_0x3cc0('0xab')],_0x139679['model'][_0x3cc0('0xfd')](_0xc12982,_0x3cc0('0x10c')))),this[_0x3cc0('0x1c')](_0x3d8055);}),_0x5d14c4[_0x3cc0('0x6')]());},{'priority':_0x3cc0('0xf')}),this[_0x3cc0('0x37')][_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0xe4'),this[_0x3cc0('0x7a')]),this[_0x3cc0('0x30')](_0x3cc0('0xe4'));const _0x283eff=new _0x3c867c(_0x139679,this[_0x3cc0('0x2d')]);_0x139679['commands'][_0x3cc0('0xd0')]('acceptSuggestion',_0x283eff),this[_0x3cc0('0x30')]('acceptSuggestion');const _0x1cf63d=new _0x89ac98(_0x139679,this[_0x3cc0('0x2d')]);_0x139679[_0x3cc0('0x12b')]['add']('discardSuggestion',_0x1cf63d),this[_0x3cc0('0x30')](_0x3cc0('0xad')),_0x139679['commands'][_0x3cc0('0xd0')]('acceptAllSuggestions',new _0x1156fe(_0x139679,_0x283eff,this['_suggestions'])),this[_0x3cc0('0x30')](_0x3cc0('0x19')),_0x139679[_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0x99'),new _0x1156fe(_0x139679,_0x1cf63d,this[_0x3cc0('0x2d')])),this[_0x3cc0('0x30')](_0x3cc0('0x99')),_0x139679[_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0xf6'),new _0x2fccee(_0x139679,_0x283eff,this[_0x3cc0('0x2d')])),this[_0x3cc0('0x30')](_0x3cc0('0xf6')),_0x139679[_0x3cc0('0x12b')][_0x3cc0('0xd0')](_0x3cc0('0x35'),new _0x2fccee(_0x139679,_0x1cf63d,this[_0x3cc0('0x2d')])),this[_0x3cc0('0x30')](_0x3cc0('0x35'));const _0x3219e6=_0x139679[_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x113'));this[_0x3cc0('0x111')](_0x3219e6,_0x3cc0('0x68'),(_0x8acd2f,{threadId:_0x11905b})=>{const _0x2c418b=this[_0x3cc0('0x2d')]['get'](_0x11905b);_0x2c418b&&_0x2c418b[_0x3cc0('0x133')]&&0x1===_0x2c418b[_0x3cc0('0x133')][_0x3cc0('0xcb')]&&this[_0x3cc0('0xff')](_0x11905b,{'hasComments':!0x0});},{'priority':_0x3cc0('0x8b')}),this[_0x3cc0('0x111')](_0x3219e6,_0x3cc0('0x3'),(_0x221b36,{threadId:_0x10d3c3})=>{const _0xe972ff=this[_0x3cc0('0x2d')]['get'](_0x10d3c3);_0xe972ff&&_0xe972ff[_0x3cc0('0x133')]&&!_0xe972ff[_0x3cc0('0x133')][_0x3cc0('0xcb')]&&this[_0x3cc0('0xff')](_0x10d3c3,{'hasComments':!0x1});},{'priority':_0x3cc0('0x8b')});}set[_0x3cc0('0x83')](_0x2efe5c){if(this[_0x3cc0('0x1a')])throw new _0x352f3d(_0x3cc0('0xf9'),this);this['_adapter']=_0x2efe5c;}get[_0x3cc0('0x83')](){return this[_0x3cc0('0x1a')];}[_0x3cc0('0x12c')]({skipNotAttached:_0x3f028d=!0x1,toJSON:_0x4cdf31=!0x1}={}){const _0x5bf3ef=[];for(const _0x553287 of this[_0x3cc0('0x2d')]['values']())_0x3f028d&&!_0x553287[_0x3cc0('0xa8')]||_0x5bf3ef[_0x3cc0('0x2a')](_0x553287);return _0x4cdf31?_0x5bf3ef[_0x3cc0('0xfa')](_0x13f525=>_0x13f525[_0x3cc0('0x10')]()):_0x5bf3ef;}[_0x3cc0('0x125')](_0xd11c0c){const _0x5b9885=this['_suggestions']['get'](_0xd11c0c);if(!_0x5b9885)throw new _0x352f3d(_0x3cc0('0x108'),this);return _0x5b9885;}[_0x3cc0('0x97')](_0x46af1c){return this[_0x3cc0('0x2d')][_0x3cc0('0x6d')](_0x46af1c);}[_0x3cc0('0x42')](_0x43ece4){const {authorId:_0x6211a1,id:_0x4cd6be,attributes:_0x46053c}=_0x43ece4,[_0x26077d,_0x308df4]=_0x43ece4[_0x3cc0('0x122')][_0x3cc0('0xce')](':'),_0x36533d=this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x4cd6be)||this[_0x3cc0('0x27')](_0x26077d,_0x308df4,_0x4cd6be,_0x6211a1,_0x46053c);if(this[_0x3cc0('0xd')](_0x36533d),this[_0x3cc0('0xb8')](_0x36533d,_0x26077d,_0x308df4||null,_0x6211a1),_0x36533d[_0x3cc0('0x54')]=_0x43ece4['createdAt'],_0x46053c&&_0x46053c[_0x3cc0('0x16')]){const _0x2fc851=_0x46053c[_0x3cc0('0x16')],_0x1668d4=this[_0x3cc0('0xc2')](_0x2fc851[_0x3cc0('0xf2')]);_0x36533d[_0x3cc0('0x6c')]=_0x2fc851[_0x3cc0('0x54')],_0x36533d['author']=_0x1668d4,_0x36533d[_0x3cc0('0xfc')]=!0x0;}else _0x36533d[_0x3cc0('0x6c')]=_0x43ece4[_0x3cc0('0x54')];switch(_0x43ece4[_0x3cc0('0xe5')]&&(_0x36533d[_0x3cc0('0xe5')]=_0x43ece4[_0x3cc0('0xe5')]),_0x43ece4[_0x3cc0('0x60')]&&(_0x36533d[_0x3cc0('0x60')]=_0x43ece4[_0x3cc0('0x60')]),this['_adapter']&&this['_adapter'][_0x3cc0('0x100')]||(_0x36533d[_0x3cc0('0xcd')]=!0x0),this[_0x3cc0('0x8a')][_0x3cc0('0xd1')](_0x36533d)){case _0x3cc0('0x119'):this['_suggestionState']['set'](_0x36533d,'dataReady');break;case _0x3cc0('0xef'):_0x36533d[_0x3cc0('0xa8')]?(this[_0x3cc0('0x8a')]['set'](_0x36533d,_0x3cc0('0x12a')),this['fire']('suggestionLoaded',_0x36533d)):this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x36533d,_0x3cc0('0xe6'));}return _0x36533d;}['acceptSuggestion'](_0x52568c){this[_0x3cc0('0x34')](()=>{this[_0x3cc0('0x37')][_0x3cc0('0x12f')][_0x3cc0('0xf0')](()=>{for(const _0x589c47 of _0x52568c[_0x3cc0('0x7f')]())_0x589c47[_0x3cc0('0x94')]();});});}['discardSuggestion'](_0x5b2047){this[_0x3cc0('0x34')](()=>{this['editor']['model']['change'](()=>{for(const _0x42b39a of _0x5b2047[_0x3cc0('0x7f')]())_0x42b39a['discard']();});});}['enableCommand'](_0x34c398,_0x5a229f){const _0x28f84c=this[_0x3cc0('0x37')][_0x3cc0('0x12b')][_0x3cc0('0xd1')](_0x34c398);if(!_0x28f84c)throw new _0x352f3d('track-changes-command-not-found',this,{'commandName':_0x34c398});this[_0x3cc0('0x1f')]['add'](_0x28f84c),_0x5a229f&&_0x28f84c['on'](_0x3cc0('0x139'),(_0xc35717,_0x2def8b)=>{this['trackChangesCommand'][_0x3cc0('0x136')]&&(this[_0x3cc0('0x13b')]||_0x2def8b[_0x3cc0('0xcb')]>0x0&&_0x2def8b[_0x2def8b['length']-0x1]&&_0x2def8b[_0x2def8b[_0x3cc0('0xcb')]-0x1][_0x3cc0('0x34')]||(_0x5a229f((..._0x4c6eb3)=>_0x28f84c[_0x3cc0('0x139')](..._0x4c6eb3,{'forceDefaultExecution':!0x0}),..._0x2def8b),_0xc35717[_0x3cc0('0x6')]()));},{'priority':_0x3cc0('0xf')});}[_0x3cc0('0x34')](_0x2aa1a4){let _0x1f8ec6,_0xb0f2df;const _0x33f8a6=this[_0x3cc0('0x13b')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1f8ec6=_0x2aa1a4();}catch(_0x29f024){_0xb0f2df=_0x29f024;}return _0x33f8a6||(this[_0x3cc0('0x13b')]=!0x1),_0xb0f2df&&_0x352f3d[_0x3cc0('0xb4')](_0xb0f2df,this),_0x1f8ec6;}[_0x3cc0('0x1c')](_0x21dbc0,_0x11c7db=null,_0x5bf691={}){if(_0x21dbc0[_0x3cc0('0x10e')])return null;const _0x58faaa=this[_0x3cc0('0x37')][_0x3cc0('0x1b')]['get'](_0x3cc0('0x118'))['me'];for(const {suggestion:_0x1a6801,meta:_0x2407d3}of this['_findSuggestions'](_0x21dbc0,_0x3cc0('0x2e')))if(_0x2407d3[_0x3cc0('0x55')]){if(!_0x2407d3[_0x3cc0('0x8c')]){if(!this[_0x3cc0('0x138')]&&_0x2407d3['containsRangeInObject'])continue;return _0x1a6801;}if(_0x11c7db==_0x1a6801[_0x3cc0('0x77')]){const _0x24fe78=_0x1a6801[_0x3cc0('0x74')]();return _0x24fe78[_0x3cc0('0xab')][_0x3cc0('0x53')](_0x21dbc0[_0x3cc0('0x10c')])?this[_0x3cc0('0xb5')](_0x1a6801,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x21dbc0['start'],_0x24fe78[_0x3cc0('0x10c')])):this[_0x3cc0('0xb5')](_0x1a6801,this[_0x3cc0('0xa6')]['createRange'](_0x24fe78[_0x3cc0('0xab')],_0x21dbc0[_0x3cc0('0x10c')])),_0x1a6801;}}const _0x3f1c5f=_0x29dde6(),_0x30f5e9=_0x58faaa['id'],_0x514c73=_0x11c7db?'insertion:'+_0x11c7db:_0x3cc0('0x2e'),_0xa3ecf3=this[_0x3cc0('0xf7')]({'id':_0x3f1c5f,'type':_0x514c73,'createdAt':new Date(),'authorId':_0x30f5e9,'attributes':_0x5bf691});return this[_0x3cc0('0x3c')](_0x514c73,_0x3f1c5f,_0x30f5e9,_0x21dbc0),_0xa3ecf3;}['markMultiRangeInsertion'](_0x4b3382,_0x557bfe=_0x3cc0('0x9'),_0x17ead1={}){const _0x2d0732=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x352022=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x2e'),_0x557bfe,_0x3cc0('0x26'));for(const _0x4f9c2f of this[_0x3cc0('0x12c')]())if(_0x4f9c2f[_0x3cc0('0x6e')]['id']==_0x2d0732['id']&&_0x3cc0('0x2e')==_0x4f9c2f[_0x3cc0('0x122')]&&_0x4f9c2f[_0x3cc0('0x77')]==_0x557bfe&&(_0x352022(_0x4f9c2f[_0x3cc0('0xbd')](),_0x4b3382)||_0x352022(_0x4b3382,_0x4f9c2f[_0x3cc0('0xbd')]()))){for(const _0x12db36 of _0x4b3382)_0x4f9c2f[_0x3cc0('0xae')](_0x12db36);return _0x4f9c2f;}if(this['_mergeNestedSuggestions'])for(const _0x436b5a of _0x4b3382)for(const {suggestion:_0x1d2421,meta:_0x1ba489}of this[_0x3cc0('0x120')](_0x436b5a,'insertion')){if(!_0x1ba489[_0x3cc0('0x55')])continue;let _0x2f1f69=!0x0;for(const _0x23cb8d of _0x1d2421['getRanges']())for(const _0x3b3ad0 of _0x4b3382)if(!_0x23cb8d[_0x3cc0('0xd6')](_0x3b3ad0)){_0x2f1f69=!0x1;break;}if(_0x2f1f69)return _0x1d2421;}const _0x4c1a3a=_0x29dde6(),_0x28b27a=_0x2d0732['id'],_0x57e6c5=_0x3cc0('0x103')+_0x557bfe,_0x2ca978=this[_0x3cc0('0xf7')]({'id':_0x4c1a3a,'type':_0x57e6c5,'createdAt':new Date(),'authorId':_0x28b27a,'attributes':_0x17ead1});for(const _0x2aaa94 of _0x4b3382)this[_0x3cc0('0x3c')](_0x57e6c5,_0x4c1a3a,_0x28b27a,_0x2aaa94,_0x1bda2a[_0x3cc0('0x132')]());return _0x2ca978;}[_0x3cc0('0x78')](_0x12a1b7,_0x289254,_0x43847e=null,_0x29c67e={}){if(_0x43847e=_0x43847e||$t(_0x289254),_0x12a1b7[_0x3cc0('0x10e')])return null;if(_0x3cc0('0xc9')===this[_0x3cc0('0x101')]){const _0x4b39df=this[_0x3cc0('0x102')][_0x3cc0('0x1')]('formatInline',_0x43847e,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0x4b39df([_0x12a1b7],_0x289254,_0x29c67e)),null;}const _0x59a3b4=this['editor']['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x4d36ea=[];if('always'!==this[_0x3cc0('0x101')])for(const {suggestion:_0x401b53,meta:_0x33f757}of this[_0x3cc0('0x120')](_0x12a1b7,_0x3cc0('0x2e')))_0x33f757[_0x3cc0('0x55')]&&!_0x33f757[_0x3cc0('0x80')]&&_0x4d36ea[_0x3cc0('0x2a')](..._0x401b53[_0x3cc0('0xbd')]());const _0x54b5bf=function(_0xb31020,_0x496778){const _0x2e759b=[];for(const _0x1f90d3 of _0x496778){const _0x120b90=_0xb31020[_0x3cc0('0xe7')](_0x1f90d3);_0x120b90&&_0x2e759b[_0x3cc0('0x2a')](_0x120b90);}return _0x2e759b;}(_0x12a1b7,_0x4d36ea),_0x21269d=function(_0x17c476,_0x34d326){const _0x1026df=[_0x17c476];for(const _0x1a3c57 of _0x34d326){let _0x13fa35=0x0;for(;_0x13fa35<_0x1026df[_0x3cc0('0xcb')];){const _0x3d84d2=_0x1026df[_0x13fa35][_0x3cc0('0xa3')](_0x1a3c57);_0x1026df[_0x3cc0('0xf3')](_0x13fa35,0x1,..._0x3d84d2),_0x13fa35+=_0x3d84d2[_0x3cc0('0xcb')];}}return _0x1026df;}(_0x12a1b7,_0x4d36ea);_0x54b5bf[_0x3cc0('0xcb')]&&this['_model'][_0x3cc0('0xf0')](()=>{for(const _0xc627de of _0x54b5bf){const _0x2dda8b=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x105'),_0x43847e,_0x3cc0('0x94'));this['forceDefaultExecution'](()=>_0x2dda8b([_0xc627de],_0x289254,_0x29c67e));}});for(const _0x2c6b59 of _0x21269d){let _0x5e351d=null,_0x58c2e3=_0x2c6b59[_0x3cc0('0xab')],_0x375cc6=_0x2c6b59[_0x3cc0('0x10c')];for(const {suggestion:_0x2b534a,meta:_0x4899c5}of this[_0x3cc0('0x120')](_0x2c6b59,_0x3cc0('0x105'))){if(!_0x4899c5[_0x3cc0('0x55')])continue;if(_0x2b534a[_0x3cc0('0x77')]!=_0x43847e)continue;const _0x49a698=_0x2b534a[_0x3cc0('0x74')]();if(_0x49a698['containsRange'](_0x2c6b59,!0x0))return null;_0x58c2e3=_0x58c2e3[_0x3cc0('0x2f')](_0x49a698[_0x3cc0('0xab')])?_0x58c2e3:_0x49a698[_0x3cc0('0xab')],_0x375cc6=_0x375cc6['isAfter'](_0x49a698[_0x3cc0('0x10c')])?_0x375cc6:_0x49a698[_0x3cc0('0x10c')],_0x5e351d?_0x49a698['start'][_0x3cc0('0x2f')](_0x5e351d[_0x3cc0('0x74')]()[_0x3cc0('0xab')])?(_0x5e351d[_0x3cc0('0x82')](),_0x5e351d=_0x2b534a):_0x2b534a['removeMarkers']():_0x5e351d=_0x2b534a;}const _0x270191=this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x58c2e3,_0x375cc6);if(_0x5e351d)this[_0x3cc0('0xb5')](_0x5e351d,_0x270191);else{const _0x585ddf=_0x29dde6(),_0x238334=_0x59a3b4['id'];this['_setSuggestionData']({'id':_0x585ddf,'type':_0x3cc0('0x66')+_0x43847e,'data':_0x289254,'createdAt':new Date(),'authorId':_0x238334,'attributes':_0x29c67e}),this['_addSuggestionMarker']('formatInline:'+_0x43847e,_0x585ddf,_0x238334,_0x270191);}}return null;}[_0x3cc0('0xca')](_0x3f59b5,_0x34d1d8,_0x5cff6e=[],_0x83b524=null,_0x3b103d={}){_0x34d1d8['formatGroupId']||(_0x34d1d8[_0x3cc0('0x38')]=_0x34d1d8[_0x3cc0('0x9d')]),_0x34d1d8[_0x3cc0('0xe9')]=_0x3f59b5['is'](_0x3cc0('0xe1')),_0x83b524=_0x83b524||$t(_0x34d1d8);const _0xfac13f=_0x5cff6e[_0x3cc0('0xfa')](_0x1d0bab=>Rt(_0x1d0bab,this[_0x3cc0('0xa6')])),_0x337d98=_0x3f59b5['is']('range')?_0x3f59b5:Rt(_0x3f59b5,this[_0x3cc0('0xa6')]);if('never'===this[_0x3cc0('0x101')]){const _0x15dd7f=this[_0x3cc0('0x102')]['getSuggestionCallback'](_0x3cc0('0x44'),_0x83b524,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0x15dd7f([_0x337d98],_0x34d1d8,_0x3b103d)),null;}_0xfac13f[_0x3cc0('0x2a')](_0x337d98);let _0x43ebe4=!0x0;for(const _0x2874dd of _0xfac13f)if(!this[_0x3cc0('0x63')](_0x2874dd)){_0x43ebe4=!0x1;break;}if(_0x43ebe4&&_0x3cc0('0x62')!==this[_0x3cc0('0x101')]){const _0x50cfc6=this[_0x3cc0('0x102')]['getSuggestionCallback']('formatBlock',_0x83b524,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0x50cfc6([_0x337d98],_0x34d1d8,_0x3b103d)),null;}let _0x33aa18=null,_0x45e83d=_0x337d98[_0x3cc0('0xab')],_0x4441f3=_0x337d98[_0x3cc0('0x10c')];for(const {suggestion:_0xec5f8c,meta:_0x5d95f8}of this[_0x3cc0('0x120')](_0x337d98,_0x3cc0('0x44'))){if(!_0x5d95f8[_0x3cc0('0x55')]||_0x5d95f8[_0x3cc0('0x8c')]||_0x5d95f8[_0x3cc0('0xee')]||_0x5d95f8[_0x3cc0('0x80')])continue;if(_0xec5f8c[_0x3cc0('0xe5')]['formatGroupId']!=_0x34d1d8['formatGroupId'])continue;const _0x2e4b94=_0xec5f8c[_0x3cc0('0x74')]();if(_0xec5f8c[_0x3cc0('0x77')]==_0x83b524){if(_0x2e4b94[_0x3cc0('0xd6')](_0x337d98,!0x0))return null;_0x45e83d=_0x45e83d[_0x3cc0('0x2f')](_0x2e4b94['start'])?_0x45e83d:_0x2e4b94[_0x3cc0('0xab')],_0x4441f3=_0x4441f3[_0x3cc0('0x9a')](_0x2e4b94[_0x3cc0('0x10c')])?_0x4441f3:_0x2e4b94[_0x3cc0('0x10c')],_0x33aa18?_0x2e4b94[_0x3cc0('0xab')][_0x3cc0('0x2f')](_0x33aa18[_0x3cc0('0x74')]()[_0x3cc0('0xab')])?(_0x33aa18[_0x3cc0('0x82')](),_0x33aa18=_0xec5f8c):_0xec5f8c[_0x3cc0('0x82')]():_0x33aa18=_0xec5f8c;}else{const _0x55adea=_0x337d98[_0x3cc0('0xe7')](_0x2e4b94);this[_0x3cc0('0xf1')](_0xec5f8c,_0x55adea);}}const _0x5ed850=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x3921e9=_0x29dde6(),_0xe75430=_0x5ed850['id'];if(_0x33aa18)return this[_0x3cc0('0xb5')](_0x33aa18,this['_model']['createRange'](_0x45e83d,_0x4441f3)),_0x33aa18;{const _0x5e3da2=this[_0x3cc0('0xf7')]({'id':_0x3921e9,'type':_0x3cc0('0x70')+_0x83b524,'data':_0x34d1d8,'createdAt':new Date(),'authorId':_0xe75430,'attributes':_0x3b103d});return this['_addSuggestionMarker'](_0x3cc0('0x70')+_0x83b524,_0x3921e9,_0xe75430,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x45e83d,_0x4441f3)),_0x5e3da2;}}[_0x3cc0('0x1e')](_0x216552,_0x5422cd,_0x207bb1=[],_0xbf2790=null,_0x4ca5d6={}){_0x5422cd['formatGroupId']||(_0x5422cd[_0x3cc0('0x38')]=_0x5422cd[_0x3cc0('0x9d')]);const _0xd62a6a=_0x216552[0x0];_0x5422cd[_0x3cc0('0xe9')]=_0xd62a6a['is'](_0x3cc0('0xe1')),_0xbf2790=_0xbf2790||$t(_0x5422cd);const _0x2c618a=_0x207bb1[_0x3cc0('0xfa')](_0x5e1e64=>Rt(_0x5e1e64,this[_0x3cc0('0xa6')])),_0x8840f0=_0xd62a6a['is'](_0x3cc0('0xe1'))?_0x216552:_0x216552['map'](_0x5ef98c=>Rt(_0x5ef98c,this[_0x3cc0('0xa6')]));if('never'===this[_0x3cc0('0x101')]){const _0xcf301e=this['_suggestionFactory'][_0x3cc0('0x1')]('formatBlock',_0xbf2790,_0x3cc0('0x94'));return this['forceDefaultExecution'](()=>_0xcf301e(_0x8840f0,_0x5422cd,_0x4ca5d6)),null;}_0x2c618a[_0x3cc0('0x2a')](..._0x8840f0);let _0x3d5ebe=!0x0;for(const _0x502d49 of _0x2c618a)if(!this[_0x3cc0('0x63')](_0x502d49)){_0x3d5ebe=!0x1;break;}if(_0x3d5ebe&&_0x3cc0('0x62')!==this['_trackFormatChanges']){const _0x340bd3=this[_0x3cc0('0x102')]['getSuggestionCallback']('formatBlock',_0xbf2790,'accept');return this['forceDefaultExecution'](()=>_0x340bd3(_0x8840f0,_0x5422cd,_0x4ca5d6)),null;}const _0x1c14b3=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')]('Users')['me'];for(const _0x1845b9 of this['getSuggestions']()){if(_0x1845b9[_0x3cc0('0x6e')]['id']!=_0x1c14b3['id'])continue;if('formatBlock'!=_0x1845b9['type']||_0x1845b9[_0x3cc0('0xe5')][_0x3cc0('0x38')]!=_0x5422cd[_0x3cc0('0x38')])continue;const _0x3aafd6=_0x1845b9[_0x3cc0('0x77')]==_0xbf2790;for(let _0x3dfe79=0x0;_0x3dfe79<_0x8840f0[_0x3cc0('0xcb')];_0x3dfe79++){const _0x1af049=_0x8840f0[_0x3dfe79];for(const _0x3d11a5 of _0x1845b9[_0x3cc0('0xd9')]()){const _0x440ae0=_0x3d11a5[_0x3cc0('0x86')]();if(_0x1af049[_0x3cc0('0x53')](_0x440ae0)){_0x3aafd6?(_0x8840f0[_0x3cc0('0xf3')](_0x3dfe79,0x1),_0x3dfe79--):_0x1845b9['removeMarker'](_0x3d11a5[_0x3cc0('0x48')]);break;}}}}if(0x0==_0x8840f0[_0x3cc0('0xcb')])return null;const _0x44b530=this[_0x3cc0('0x102')][_0x3cc0('0x1')]('formatBlock',_0xbf2790,_0x3cc0('0x26'));for(const _0x5c13f3 of this['getSuggestions']())if(_0x5c13f3[_0x3cc0('0x6e')]['id']==_0x1c14b3['id']&&_0x3cc0('0x44')==_0x5c13f3[_0x3cc0('0x122')]&&_0x5c13f3[_0x3cc0('0xe5')][_0x3cc0('0x38')]==_0x5422cd[_0x3cc0('0x38')]&&_0x5c13f3[_0x3cc0('0x77')]==_0xbf2790&&(_0x44b530(_0x5c13f3['getRanges'](),_0x8840f0)||_0x44b530(_0x8840f0,_0x5c13f3[_0x3cc0('0xbd')]()))){for(const _0xccdd29 of _0x8840f0)_0x5c13f3['addRange'](_0xccdd29);return _0x5c13f3;}const _0x5670b6=_0x29dde6(),_0x4088c6=_0x1c14b3['id'],_0x3cdc73=_0x3cc0('0x70')+_0xbf2790,_0x1cdcd7=this[_0x3cc0('0xf7')]({'id':_0x5670b6,'type':_0x3cdc73,'data':_0x5422cd,'createdAt':new Date(),'authorId':_0x4088c6,'attributes':_0x4ca5d6});for(const _0x4e5a42 of _0x8840f0)this[_0x3cc0('0x3c')](_0x3cdc73,_0x5670b6,_0x4088c6,_0x4e5a42,_0x1bda2a[_0x3cc0('0x132')]());return _0x1cdcd7;}[_0x3cc0('0xe2')](_0x162871,_0x289e99=null,_0x292773={}){if(_0x162871[_0x3cc0('0x10e')])return null;const _0x2df081=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'],_0x4c6b8f=new _0x4b431b(_0x162871['start'],_0x162871[_0x3cc0('0x10c')]);for(const {suggestion:_0x2357d8,meta:_0x12fc73}of this['_findSuggestions'](_0x4c6b8f,'insertion'))if(_0x12fc73[_0x3cc0('0x55')]&&!_0x12fc73['isNextTo']){if(_0x2357d8['isMultiRange']){const _0x2f9296=_0x2357d8[_0x3cc0('0xbd')]()[_0x3cc0('0x1d')](_0x49d9e5=>_0x3cc0('0x8f')!=_0x49d9e5['root']['rootName']);_0x2f9296[_0x3cc0('0x9c')](_0x33da3c=>_0x4c6b8f[_0x3cc0('0xd6')](_0x33da3c,!0x0))&&_0x2357d8['discard']();if(_0x2f9296[_0x3cc0('0x6b')](_0x1841be=>_0x1841be[_0x3cc0('0xd6')](_0x4c6b8f,!0x0))){const _0x35c68b=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x12d'),_0x289e99,_0x3cc0('0x94'));return this[_0x3cc0('0x34')](()=>_0x35c68b([_0x4c6b8f],null,_0x292773)),null;}}else{const _0x54b7c0=_0x4c6b8f['getIntersection'](_0x2357d8[_0x3cc0('0x74')]());null!==_0x54b7c0&&_0x2357d8[_0x3cc0('0x7c')]([_0x54b7c0],null,_0x292773);}}if(_0x4c6b8f[_0x3cc0('0xe0')](),_0x4c6b8f[_0x3cc0('0x10e')]||_0x3cc0('0x8f')==_0x4c6b8f['root'][_0x3cc0('0x47')])return null;let _0x488d48=null,_0x4673fb=_0x4c6b8f[_0x3cc0('0xab')],_0x409b69=_0x4c6b8f[_0x3cc0('0x10c')];for(const {suggestion:_0x405eaa,meta:_0x4206b1}of this[_0x3cc0('0x120')](_0x4c6b8f,_0x3cc0('0x12d')))if(_0x4206b1[_0x3cc0('0x55')]){if(_0x405eaa[_0x3cc0('0x4')]&&this[_0x3cc0('0x138')]){let _0x33d307=!0x0;for(const _0x2b11ae of _0x405eaa['getRanges']()){if(_0x2b11ae['containsRange'](_0x4c6b8f,!0x0))return _0x405eaa;_0x4c6b8f[_0x3cc0('0xd6')](_0x2b11ae)||(_0x33d307=!0x1);}_0x33d307&&_0x405eaa[_0x3cc0('0x9e')]();}else{const _0x21749f=_0x405eaa['getFirstRange']();if(_0x21749f[_0x3cc0('0xd6')](_0x4c6b8f,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x4206b1[_0x3cc0('0xee')])continue;return _0x405eaa;}_0x4673fb=_0x4673fb[_0x3cc0('0x2f')](_0x21749f[_0x3cc0('0xab')])?_0x4673fb:_0x21749f[_0x3cc0('0xab')],_0x409b69=_0x409b69[_0x3cc0('0x9a')](_0x21749f[_0x3cc0('0x10c')])?_0x409b69:_0x21749f['end'],_0x488d48?_0x21749f['start'][_0x3cc0('0x2f')](_0x488d48[_0x3cc0('0x74')]()['start'])?(_0x488d48[_0x3cc0('0x82')](),_0x488d48=_0x405eaa):_0x405eaa[_0x3cc0('0x82')]():_0x488d48=_0x405eaa;}}if(_0x488d48)return this['_setSuggestionRange'](_0x488d48,this['_model'][_0x3cc0('0xe')](_0x4673fb,_0x409b69)),_0x488d48;{const _0x5344ff=_0x29dde6(),_0x199531=this['_model'][_0x3cc0('0xe')](_0x4673fb,_0x409b69),_0x57ea3f=_0x2df081['id'],_0xd985a1=_0x289e99?_0x3cc0('0x131')+_0x289e99:'deletion',_0x49ee5b=this[_0x3cc0('0xf7')]({'id':_0x5344ff,'type':_0xd985a1,'createdAt':new Date(),'authorId':_0x57ea3f,'attributes':_0x292773});return this[_0x3cc0('0x3c')](_0xd985a1,_0x5344ff,_0x57ea3f,_0x199531),_0x49ee5b;}}[_0x3cc0('0x7b')](_0x4d19ce,_0x136a60=_0x3cc0('0x9'),_0x5e78fc={}){const _0x4648f2=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')]('Users')['me'],_0x6c511b=_0x4d19ce[_0x3cc0('0xfa')](_0x3e5a28=>new _0x4b431b(_0x3e5a28[_0x3cc0('0xab')],_0x3e5a28[_0x3cc0('0x10c')])),_0xb4c1f7=new Set();for(const _0x23dbc9 of _0x6c511b)for(const {suggestion:_0x4870a3,meta:_0x706b28}of this[_0x3cc0('0x120')](_0x23dbc9,_0x3cc0('0x2e')))_0x706b28['isOwn']&&!_0x706b28[_0x3cc0('0x8c')]&&_0xb4c1f7[_0x3cc0('0xd0')](_0x4870a3);for(const _0x19b9a5 of _0xb4c1f7)if(_0x19b9a5[_0x3cc0('0x4')]){const _0x40fce4=_0x19b9a5[_0x3cc0('0xbd')]();(!_0x19b9a5[_0x3cc0('0x60')]||!_0x19b9a5[_0x3cc0('0x60')]['skipNestingCheck'])&&(_0x40fce4[_0x3cc0('0x9c')](_0x3b9522=>_0x6c511b[_0x3cc0('0x6b')](_0x8bc670=>_0x8bc670[_0x3cc0('0xd6')](_0x3b9522,!0x0)))&&_0x19b9a5[_0x3cc0('0x9e')]());if(_0x6c511b[_0x3cc0('0x9c')](_0x3a6061=>_0x40fce4[_0x3cc0('0x6b')](_0x2d0292=>_0x2d0292[_0x3cc0('0xd6')](_0x3a6061,!0x0)))){const _0x3482db=this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x3cc0('0x12d'),_0x136a60,_0x3cc0('0x94'));return this[_0x3cc0('0x34')](()=>_0x3482db(_0x4d19ce,null,_0x5e78fc)),null;}}else{const _0x1d8ba7=_0x19b9a5[_0x3cc0('0x74')]();_0x6c511b[_0x3cc0('0x6b')](_0xc883b0=>_0xc883b0[_0x3cc0('0xd6')](_0x1d8ba7,!0x0))&&_0x19b9a5[_0x3cc0('0x9e')]();if(_0x6c511b[_0x3cc0('0x9c')](_0x439bfd=>_0x1d8ba7[_0x3cc0('0xd6')](_0x439bfd,!0x0))){const _0x3f1df4=this[_0x3cc0('0x102')]['getSuggestionCallback']('deletion',_0x136a60,_0x3cc0('0x94'));return this[_0x3cc0('0x34')](()=>_0x3f1df4(_0x6c511b,null,_0x5e78fc)),null;}}const _0x270ea2=this[_0x3cc0('0x102')][_0x3cc0('0x1')]('deletion',_0x136a60,_0x3cc0('0x26'));let _0x528638=null;for(const _0x583e38 of this['getSuggestions']())if(_0x583e38[_0x3cc0('0x6e')]['id']==_0x4648f2['id']&&_0x583e38[_0x3cc0('0xa8')]&&_0x3cc0('0x12d')==_0x583e38[_0x3cc0('0x122')]&&_0x583e38[_0x3cc0('0x77')]==_0x136a60&&(_0x270ea2(_0x583e38[_0x3cc0('0xbd')](),_0x6c511b)||_0x270ea2(_0x6c511b,_0x583e38['getRanges']()))){if(_0x528638){if(_0x583e38['commentThread']&&_0x583e38[_0x3cc0('0x133')]['length'])continue;for(const _0x1708c0 of _0x583e38[_0x3cc0('0xbd')]())_0x528638['isIntersectingWithRange'](_0x1708c0)||_0x528638[_0x3cc0('0xae')](_0x1708c0);_0x583e38['removeMarkers']();}else{_0x528638=_0x583e38;for(const _0x331517 of _0x6c511b)_0x583e38[_0x3cc0('0x121')](_0x331517)||_0x583e38[_0x3cc0('0xae')](_0x331517);}}if(_0x528638)return _0x528638;_0xb4c1f7[_0x3cc0('0x36')]();for(const _0x3661e2 of _0x6c511b)for(const {suggestion:_0x2f3d89,meta:_0x2adb2e}of this['_findSuggestions'](_0x3661e2,_0x3cc0('0x12d')))_0x2adb2e[_0x3cc0('0x55')]&&_0xb4c1f7[_0x3cc0('0xd0')](_0x2f3d89);for(const _0xec63e9 of _0xb4c1f7){const _0xdc10d6=_0xec63e9[_0x3cc0('0xbd')]();if(!_0x5e78fc||!_0x5e78fc['skipNestingCheck']){if(_0x6c511b[_0x3cc0('0x9c')](_0x22b843=>_0xdc10d6[_0x3cc0('0x6b')](_0x4a372b=>_0x4a372b[_0x3cc0('0xd6')](_0x22b843,!0x0))))return _0xec63e9;}(!_0xec63e9[_0x3cc0('0x60')]||!_0xec63e9['attributes'][_0x3cc0('0x75')])&&(_0xdc10d6[_0x3cc0('0x9c')](_0x2a3376=>_0x6c511b['some'](_0x8a13c0=>_0x8a13c0[_0x3cc0('0xd6')](_0x2a3376,!0x0)))&&_0xec63e9['discard']());}const _0x1d2446=_0x29dde6(),_0x5b0f36=_0x4648f2['id'],_0x28d43a=_0x3cc0('0x131')+_0x136a60,_0xaf89c6=this[_0x3cc0('0xf7')]({'id':_0x1d2446,'type':_0x28d43a,'createdAt':new Date(),'authorId':_0x5b0f36,'attributes':_0x5e78fc});for(const _0x581ba8 of _0x6c511b)_0x581ba8[_0x3cc0('0xe0')](),_0x581ba8[_0x3cc0('0x10e')]||_0x3cc0('0x8f')==_0x581ba8[_0x3cc0('0x13a')][_0x3cc0('0x47')]||this[_0x3cc0('0x3c')](_0x28d43a,_0x1d2446,_0x5b0f36,_0x581ba8,_0x1bda2a[_0x3cc0('0x132')]());return _0xaf89c6;}[_0x3cc0('0xb5')](_0x2e7a7f,_0x2b6235){const _0x4ad902=_0x2e7a7f[_0x3cc0('0x140')]();this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](_0x331331=>{_0x331331[_0x3cc0('0xb3')](_0x4ad902,{'range':_0x2b6235});});}['_addThreadToSuggestion'](_0x4f671b){const _0x458702=_0x4f671b['id'],_0x4f0879=this[_0x3cc0('0x37')][_0x3cc0('0x21')]['get'](_0x3cc0('0x89'));this[_0x3cc0('0x23')][_0x3cc0('0xfb')](_0x458702)||this[_0x3cc0('0x23')][_0x3cc0('0x127')]({'channelId':_0x4f0879,'threadId':_0x458702,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x55267a=this[_0x3cc0('0x23')]['getCommentThread'](_0x458702);_0x55267a[_0x3cc0('0x88')](_0x3cc0('0xc4')),_0x55267a[_0x3cc0('0xc4')]=!0x1,_0x4f671b[_0x3cc0('0x133')]=_0x55267a;}['_checkSuggestionCorrectness'](_0x387317,_0x528d16,_0x176495,_0x3235ea){if(_0x387317[_0x3cc0('0x122')]!=_0x528d16||_0x387317[_0x3cc0('0x77')]!=_0x176495||_0x387317[_0x3cc0('0x5a')]['id']!=_0x3235ea)throw this[_0x3cc0('0x37')][_0x3cc0('0x96')](_0x3cc0('0x110')),new _0x352f3d(_0x3cc0('0x110'),this);}[_0x3cc0('0xf1')](_0x1b8ed1,_0x93dc43){const _0x1d08c8=_0x1b8ed1['getFirstRange']();if(_0x93dc43[_0x3cc0('0x53')](_0x1d08c8))_0x1b8ed1[_0x3cc0('0x82')]();else{if(_0x1d08c8[_0x3cc0('0xd6')](_0x93dc43)){const _0x1d7163=this[_0x3cc0('0xa6')][_0x3cc0('0xfd')](_0x93dc43[_0x3cc0('0xab')][_0x3cc0('0x104')],_0x3cc0('0x10c'));this[_0x3cc0('0xb5')](_0x1b8ed1,this['_model'][_0x3cc0('0xe')](_0x1d08c8[_0x3cc0('0xab')],_0x1d7163));const _0x248da5=_0x29dde6(),_0x199a0a=_0x1b8ed1[_0x3cc0('0x5a')]['id'],_0x468698=_0x1b8ed1['type']+':'+_0x1b8ed1['subType'];this[_0x3cc0('0xf7')]({'id':_0x248da5,'type':_0x468698,'createdAt':new Date(),'authorId':_0x199a0a,'data':_0x1b8ed1[_0x3cc0('0xe5')],'attributes':_0x1b8ed1[_0x3cc0('0x60')]});const _0x569cae=this[_0x3cc0('0xa6')][_0x3cc0('0xfd')](_0x93dc43[_0x3cc0('0x10c')][_0x3cc0('0x116')],_0x3cc0('0xac')),_0x3d49d3=this['_model'][_0x3cc0('0xe')](_0x569cae,_0x1d08c8['end']);this['_addSuggestionMarker'](_0x468698,_0x248da5,_0x199a0a,_0x3d49d3);}else{if(_0x1d08c8[_0x3cc0('0x3e')](_0x93dc43[_0x3cc0('0xab')])){const _0x150185=this[_0x3cc0('0xa6')]['createPositionAt'](_0x93dc43['start'][_0x3cc0('0x104')],_0x3cc0('0x10c'));this[_0x3cc0('0xb5')](_0x1b8ed1,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x1d08c8['start'],_0x150185));}else{const _0x17c890=this[_0x3cc0('0xa6')][_0x3cc0('0xfd')](_0x93dc43[_0x3cc0('0x10c')][_0x3cc0('0x116')],_0x3cc0('0xac'));this[_0x3cc0('0xb5')](_0x1b8ed1,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x17c890,_0x1d08c8[_0x3cc0('0x10c')]));}}}}[_0x3cc0('0x63')](_0x198df0){for(const {suggestion:_0x531223,meta:_0x296e45}of this[_0x3cc0('0x120')](_0x198df0,_0x3cc0('0x2e'))){if(!_0x296e45[_0x3cc0('0x55')])continue;const _0xaffd09=_0x531223[_0x3cc0('0xbd')]();for(const _0x22317d of _0xaffd09)if(!_0x198df0[_0x3cc0('0xa3')](_0x22317d)[_0x3cc0('0xcb')])return!0x0;}return!0x1;}[_0x3cc0('0xd8')](_0x144e49){const _0x193242=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))[_0x3cc0('0xbf')](_0x144e49);if(!_0x193242)throw new _0x352f3d('track-changes-user-not-found',this);return _0x193242;}[_0x3cc0('0xc2')](_0x24932a){const _0xf509d5=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x118')),_0x2be01e=_0x17e8a1(_0x3cc0('0x56')+_0x24932a),_0x54e627=_0xf509d5['getUser'](_0x2be01e);return _0x54e627||_0xf509d5['addUser']({'id':_0x2be01e,'name':_0x24932a});}[_0x3cc0('0x27')](_0x3f5541,_0x6cadb8,_0x5233d3,_0x3e09de,_0x17c7ad){const _0x3ce767=this['_getAuthorFromId'](_0x3e09de),_0x198a4d=this['_suggestionFactory'][_0x3cc0('0x45')](_0x3f5541,_0x6cadb8,_0x5233d3,_0x3ce767,_0x17c7ad,_0x32d52b=>this[_0x3cc0('0xff')](_0x5233d3,{'attributes':_0x32d52b}));return this[_0x3cc0('0x111')](_0x198a4d,_0x3cc0('0x94'),()=>{this['_updateSuggestionData'](_0x5233d3,{'state':_0x3cc0('0x15')});},{'priority':_0x3cc0('0xf')}),this[_0x3cc0('0x111')](_0x198a4d,_0x3cc0('0x9e'),()=>{this['_updateSuggestionData'](_0x5233d3,{'state':'rejected'});},{'priority':_0x3cc0('0xf')}),this[_0x3cc0('0x2d')][_0x3cc0('0xdd')](_0x5233d3,_0x198a4d),this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x198a4d,_0x3cc0('0x119')),_0x198a4d;}[_0x3cc0('0x69')](_0xc35a2){const _0x82ef70=_0xc35a2[_0x3cc0('0xce')](':');return{'group':_0x82ef70[0x0],'type':_0x82ef70[0x1],'subType':_0x82ef70[_0x3cc0('0xcb')]>=0x5?_0x82ef70[0x2]:null,'id':_0x82ef70['length']<0x5?_0x82ef70[0x2]:_0x82ef70[0x3],'authorId':_0x82ef70['length']<0x5?_0x82ef70[0x3]:_0x82ef70[0x4],'markerCount':0x6==_0x82ef70[_0x3cc0('0xcb')]?_0x82ef70[0x5]:null};}[_0x3cc0('0x76')](_0x1cf70f,_0x164653,_0x3e5c50){const _0x36a8d3=_0x1cf70f['getFirstRange'](),_0xe37142=_0x36a8d3['start'],_0x2d3133=_0x36a8d3['end'];this['_setSuggestionRange'](_0x1cf70f,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0xe37142,_0x164653));const _0x19d7c0=_0x29dde6(),_0x344264=_0x1cf70f[_0x3cc0('0x5a')]['id'],_0x3426b5=_0x1cf70f[_0x3cc0('0x122')]+(_0x1cf70f[_0x3cc0('0x77')]?':'+_0x1cf70f['subType']:'');this[_0x3cc0('0xf7')]({'id':_0x19d7c0,'type':_0x3426b5,'createdAt':new Date(),'authorId':_0x344264,'originalSuggestionId':_0x1cf70f['id'],'attributes':_0x1cf70f['attributes'],'data':_0x1cf70f[_0x3cc0('0xe5')]}),_0x3cc0('0x44')==_0x1cf70f['type']&&(_0x3e5c50=this[_0x3cc0('0xa6')]['createPositionBefore'](_0x3e5c50['parent'])),this['_addSuggestionMarker'](_0x3426b5,_0x19d7c0,_0x344264,this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x3e5c50,_0x2d3133));}['_findSuggestions'](_0x26de94,_0x3a9068=null){const _0x2ee395=[],_0x59a676=this[_0x3cc0('0xa6')][_0x3cc0('0xde')],_0x2e52a3=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x118'))['me'];for(const _0x115569 of this[_0x3cc0('0x12c')]())if(_0x115569[_0x3cc0('0xa8')]&&(!_0x3a9068||_0x115569[_0x3cc0('0x122')]==_0x3a9068))for(const _0x56db4b of _0x115569[_0x3cc0('0xbd')]()){const _0x3ac388=_0x26de94[_0x3cc0('0xab')][_0x3cc0('0x53')](_0x56db4b[_0x3cc0('0x10c')])||_0x26de94[_0x3cc0('0x10c')]['isEqual'](_0x56db4b[_0x3cc0('0xab')]);if(_0x3ac388||_0x26de94[_0x3cc0('0xe7')](_0x56db4b)){const _0x36c349=_0x26de94[_0x3cc0('0xd6')](_0x56db4b)&&Bt(_0x59a676,_0x56db4b[_0x3cc0('0xab')],_0x26de94),_0x18a522=_0x56db4b[_0x3cc0('0xd6')](_0x26de94)&&Bt(_0x59a676,_0x26de94['start'],_0x56db4b);_0x2ee395[_0x3cc0('0x2a')]({'suggestion':_0x115569,'meta':{'isOwn':_0x2e52a3==_0x115569[_0x3cc0('0x6e')],'isNextTo':_0x3ac388,'isInsideObject':_0x36c349,'containsRangeInObject':_0x18a522}});break;}}return _0x2ee395;}['_addSuggestionMarker'](_0x2c1df8,_0x3fab5f,_0x3b00cc,_0x1ffd86,_0x5d3ecc){this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](_0x21a9aa=>{let _0x37deff=_0x3cc0('0xdc')+_0x2c1df8+':'+_0x3fab5f+':'+_0x3b00cc;_0x5d3ecc&&(_0x37deff=_0x37deff+':'+_0x5d3ecc),_0x21a9aa[_0x3cc0('0x8')](_0x37deff,{'range':_0x1ffd86,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3cc0('0x52')](_0x595c6d){const _0x2bd52f=_0x595c6d[_0x3cc0('0xe8')],_0x2d5e59=_0x595c6d[_0x3cc0('0x8e')];_0x595c6d[_0x3cc0('0xe8')]=null,null!=_0x2bd52f&&(_0x2bd52f[_0x3cc0('0x8e')]=null),_0x595c6d[_0x3cc0('0x8e')]=null,null!=_0x2d5e59&&(_0x2d5e59['previous']=null),_0x3cc0('0x12a')==this[_0x3cc0('0x8a')][_0x3cc0('0xd1')](_0x595c6d)&&(this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x595c6d,_0x3cc0('0xe6')),this[_0x3cc0('0x33')](_0x3cc0('0xdb'),_0x595c6d,_0x2bd52f,_0x2d5e59));}[_0x3cc0('0xf7')](_0x575556){const _0x759f31=_0x575556['id'],_0x2bf85c=this[_0x3cc0('0x42')](_0x575556);if(this['_adapter']&&this['_adapter'][_0x3cc0('0x100')]){const _0x53d119=this[_0x3cc0('0x37')][_0x3cc0('0x1b')][_0x3cc0('0xd1')](_0x3cc0('0x29')),_0x1798ff=_0x2bf85c[_0x3cc0('0x129')],_0xdc66ed=_0x2bf85c[_0x3cc0('0x77')]?_0x2bf85c['type']+':'+_0x2bf85c[_0x3cc0('0x77')]:_0x2bf85c[_0x3cc0('0x122')],_0x507f77=this[_0x3cc0('0x37')][_0x3cc0('0x67')],_0x48a532=_0x53d119[_0x3cc0('0xd0')](_0x5b8049(_0x507f77,_0x3cc0('0x2'))),_0x5ade19={'id':_0x759f31,'type':_0xdc66ed,'hasComments':_0x1798ff,'data':_0x575556[_0x3cc0('0xe5')]||null,'originalSuggestionId':_0x575556['originalSuggestionId']||null,'attributes':_0x2bf85c[_0x3cc0('0x60')]};this['_adapter']['addSuggestion'](_0x5ade19)[_0x3cc0('0x5b')](_0x721b0f=>{_0x2bf85c[_0x3cc0('0xcd')]=!0x0,_0x53d119[_0x3cc0('0x95')](_0x48a532),_0x721b0f&&_0x721b0f['createdAt']&&(this[_0x3cc0('0x2d')][_0x3cc0('0xd1')](_0x759f31)[_0x3cc0('0x54')]=_0x721b0f['createdAt']);})['catch'](_0x401967=>{throw _0x512b36(_0x3cc0('0x17')),this[_0x3cc0('0x37')][_0x3cc0('0x12f')][_0x3cc0('0x7e')]({'isUndoable':!0x1},()=>{_0x2bf85c[_0x3cc0('0x9e')]();}),_0x2bf85c[_0x3cc0('0xa0')](),this[_0x3cc0('0x2d')]['delete'](_0x2bf85c['id']),this[_0x3cc0('0x8a')][_0x3cc0('0xc0')](_0x2bf85c),_0x401967;});}return _0x2bf85c;}[_0x3cc0('0xff')](_0x345be0,_0xcdb56e){const _0x4ad8d6=this[_0x3cc0('0x37')]['plugins'][_0x3cc0('0xd1')](_0x3cc0('0x29')),_0x46475c=this[_0x3cc0('0x125')](_0x345be0);if(this[_0x3cc0('0x1a')]&&this['_adapter']['updateSuggestion']){if(_0x46475c['_saved']){const _0x2d320e=_0x4ad8d6[_0x3cc0('0xd0')](_0x5b8049(this['editor']['locale'],_0x3cc0('0x2')));this[_0x3cc0('0x1a')][_0x3cc0('0x11a')](_0x345be0,_0xcdb56e)[_0x3cc0('0x5b')](()=>{_0x4ad8d6[_0x3cc0('0x95')](_0x2d320e);});}else _0x46475c['on'](_0x3cc0('0x59'),()=>{this[_0x3cc0('0xff')](_0x345be0,_0xcdb56e);});}}['_getSuggestionData'](_0x3c3ac5){if(!this[_0x3cc0('0x1a')]||!this['_adapter'][_0x3cc0('0x125')])throw new _0x352f3d('track-changes-adapter-missing-getsuggestion',this);return this[_0x3cc0('0x1a')][_0x3cc0('0x125')](_0x3c3ac5);}[_0x3cc0('0x106')](_0x25055a){const {id:_0x5a7d2c,type:_0x3bfeb4,subType:_0x498a62,authorId:_0x51b147}=this[_0x3cc0('0x69')](_0x25055a),_0x2c42e8=this[_0x3cc0('0x2d')]['get'](_0x5a7d2c)||this['_createSuggestion'](_0x3bfeb4,_0x498a62,_0x5a7d2c,_0x51b147,{});switch(this[_0x3cc0('0xb8')](_0x2c42e8,_0x3bfeb4,_0x498a62,_0x51b147),this['_suggestionState'][_0x3cc0('0xd1')](_0x2c42e8)){case _0x3cc0('0x119'):this['_getSuggestionData'](_0x5a7d2c)['then'](_0xb93145=>{let _0x2c46f8=Promise[_0x3cc0('0x51')]();_0xb93145['hasComments']&&(_0x2c46f8=this[_0x3cc0('0x23')][_0x3cc0('0xa4')]({'channelId':this[_0x3cc0('0x37')]['config'][_0x3cc0('0xd1')](_0x3cc0('0x89')),'threadId':_0x5a7d2c})),_0x2c46f8[_0x3cc0('0x5b')](()=>{this[_0x3cc0('0x42')](_0xb93145)[_0x3cc0('0xcd')]=!0x0;});}),this[_0x3cc0('0x8a')][_0x3cc0('0xdd')](_0x2c42e8,_0x3cc0('0xef'));break;case _0x3cc0('0xe6'):this['_updateSuggestionData'](_0x5a7d2c,{'state':'open'});case _0x3cc0('0xc1'):this[_0x3cc0('0x8a')]['set'](_0x2c42e8,'ready'),this[_0x3cc0('0x33')](_0x3cc0('0x91'),_0x2c42e8);break;case _0x3cc0('0x12a'):this[_0x3cc0('0x33')](_0x3cc0('0x115'),_0x2c42e8);}return _0x2c42e8[_0x3cc0('0x11')](_0x25055a),_0x2c42e8;}['_refreshSuggestionsChain'](_0x294738){const _0x12de30=Array['from'](_0x294738)['filter'](_0x5b5862=>!_0x5b5862[_0x3cc0('0x4')]),_0x5b9ebc=this[_0x3cc0('0x12c')]({'skipNotAttached':!0x0})[_0x3cc0('0x1d')](_0x5a7942=>!_0x5a7942[_0x3cc0('0x4')]),_0x5953e2=_0x5b9ebc[_0x3cc0('0x1d')](_0x1bcac8=>!_0x294738[_0x3cc0('0x6d')](_0x1bcac8)),_0x274a73=new Map(_0x5b9ebc['map'](_0x42ce87=>[_0x42ce87,this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x42ce87[_0x3cc0('0x122')],_0x42ce87['subType'],'chain')])),_0x70e971=new Map(_0x5b9ebc['map'](_0x3de679=>[_0x3de679,_0x3de679[_0x3cc0('0x74')]()])),_0x2ff6eb=new Set(),_0x21f92a=new Set();for(let _0x51059c=0x0;_0x51059c<_0x12de30[_0x3cc0('0xcb')];_0x51059c++)_0x5326c7(_0x12de30[_0x51059c],_0x12de30,_0x51059c+0x1);for(let _0x5f8c71=0x0;_0x5f8c71<_0x12de30['length'];_0x5f8c71++)_0x5326c7(_0x12de30[_0x5f8c71],_0x5953e2,0x0);for(let _0x473c53=0x0;_0x473c53<_0x12de30['length'];_0x473c53++){const _0x55dc6e=_0x12de30[_0x473c53];!_0x21f92a[_0x3cc0('0x6d')](_0x55dc6e)&&_0x55dc6e[_0x3cc0('0xe8')]&&(_0x55dc6e[_0x3cc0('0xe8')][_0x3cc0('0x8e')]===_0x55dc6e&&(_0x55dc6e[_0x3cc0('0xe8')][_0x3cc0('0x8e')]=null),_0x55dc6e['previous']=null),!_0x2ff6eb[_0x3cc0('0x6d')](_0x55dc6e)&&_0x55dc6e['next']&&(_0x55dc6e['next'][_0x3cc0('0xe8')]===_0x55dc6e&&(_0x55dc6e[_0x3cc0('0x8e')][_0x3cc0('0xe8')]=null),_0x55dc6e[_0x3cc0('0x8e')]=null);}function _0x5326c7(_0x97fd7c,_0x14d6ab,_0x39b86d){for(let _0x4df2aa=_0x39b86d;_0x4df2aa<_0x14d6ab[_0x3cc0('0xcb')];_0x4df2aa++){const _0x20f1d4=_0x2cfc3e(_0x97fd7c,_0x14d6ab[_0x4df2aa]);_0x20f1d4&&(_0x20f1d4[0x0][_0x3cc0('0x8e')]=_0x20f1d4[0x1],_0x20f1d4[0x1]['previous']=_0x20f1d4[0x0],_0x2ff6eb[_0x3cc0('0xd0')](_0x20f1d4[0x0]),_0x21f92a['add'](_0x20f1d4[0x1]));}}function _0x2cfc3e(_0x36cd35,_0x4343f8){if(_0x36cd35[_0x3cc0('0x6e')]['id']!==_0x4343f8[_0x3cc0('0x6e')]['id'])return null;const _0x457046=_0x274a73[_0x3cc0('0xd1')](_0x36cd35)(_0x36cd35,_0x4343f8,_0x70e971[_0x3cc0('0xd1')](_0x36cd35),_0x70e971[_0x3cc0('0xd1')](_0x4343f8));if(!_0x457046)return null;return _0x274a73['get'](_0x4343f8)(_0x36cd35,_0x4343f8,_0x70e971[_0x3cc0('0xd1')](_0x36cd35),_0x70e971[_0x3cc0('0xd1')](_0x4343f8))?_0x457046[0x1][_0x3cc0('0x133')]&&_0x457046[0x1][_0x3cc0('0x133')][_0x3cc0('0xcb')]?null:_0x457046:null;}}[_0x3cc0('0x3d')](_0x581f75){const _0x2f359d=Array[_0x3cc0('0x109')](_0x581f75),_0x34588b=this['getSuggestions']({'skipNotAttached':!0x0}),_0xa0da94=_0x34588b[_0x3cc0('0x1d')](_0x29fcd9=>!_0x581f75[_0x3cc0('0x6d')](_0x29fcd9)),_0x5b02a2=new Map(_0x2f359d[_0x3cc0('0xfa')](_0x5aead7=>[_0x5aead7,this[_0x3cc0('0x102')][_0x3cc0('0x1')](_0x5aead7[_0x3cc0('0x122')],_0x5aead7[_0x3cc0('0x77')],_0x3cc0('0x26'))])),_0x382147=new Map(_0x34588b['map'](_0x39a1aa=>[_0x39a1aa,_0x39a1aa['getRanges']()]));for(let _0xe20481=0x0;_0xe20481<_0x2f359d['length'];_0xe20481++){if(_0x1bb35c(this,_0x2f359d[_0xe20481],_0x2f359d,_0xe20481+0x1))return!0x0;}for(let _0x511e86=0x0;_0x511e86<_0x2f359d[_0x3cc0('0xcb')];_0x511e86++){if(_0x1bb35c(this,_0x2f359d[_0x511e86],_0xa0da94,0x0))return!0x0;}return!0x1;function _0x1bb35c(_0x3fb99c,_0x224a45,_0x51948c,_0x21ae56){for(let _0x225e0e=_0x21ae56;_0x225e0e<_0x51948c[_0x3cc0('0xcb')];_0x225e0e++){const _0x4a9fac=_0x51948c[_0x225e0e];if(_0x4a9fac[_0x3cc0('0x122')]!==_0x224a45['type']||_0x4a9fac['author']['id']!==_0x224a45[_0x3cc0('0x6e')]['id']||_0x4a9fac[_0x3cc0('0x77')]!==_0x224a45[_0x3cc0('0x77')])continue;const _0x30e3cf=_0x5b02a2[_0x3cc0('0xd1')](_0x224a45),_0x4ccb7f=_0x382147['get'](_0x224a45),_0x22cf07=_0x382147['get'](_0x4a9fac),_0x5745b8=_0x224a45[_0x3cc0('0x133')]&&_0x224a45[_0x3cc0('0x133')]['length'],_0x2480ce=_0x4a9fac[_0x3cc0('0x133')]&&_0x4a9fac[_0x3cc0('0x133')][_0x3cc0('0xcb')];if(!_0x5745b8&&_0x30e3cf(_0x22cf07,_0x4ccb7f))return _0x3fb99c[_0x3cc0('0x85')](_0x4a9fac,_0x224a45),_0x382147['delete'](_0x224a45),!0x0;if(!_0x2480ce&&_0x30e3cf(_0x4ccb7f,_0x22cf07))return _0x3fb99c[_0x3cc0('0x85')](_0x224a45,_0x4a9fac),_0x382147[_0x3cc0('0xc0')](_0x4a9fac),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5667bc,_0x6dc044){if(_0x5667bc[_0x3cc0('0x4')])for(const _0x3ff882 of _0x6dc044[_0x3cc0('0xbd')]())_0x5667bc['addRange'](_0x3ff882);else{const _0x16056f=_0x6dc044[_0x3cc0('0x74')]()[_0x3cc0('0x10c')];this[_0x3cc0('0xb5')](_0x5667bc,this[_0x3cc0('0xa6')]['createRange'](_0x5667bc[_0x3cc0('0x74')]()[_0x3cc0('0xab')],_0x16056f));}_0x6dc044['removeMarkers']();}}class Dt{constructor(_0x98ff17){this['_editor']=_0x98ff17,this[_0x3cc0('0xa6')]=_0x98ff17[_0x3cc0('0x12f')],this['_customCallbacks']=new Map(),this[_0x3cc0('0x4b')]=new Map(),this[_0x3cc0('0x3f')]();}[_0x3cc0('0x45')](_0x214c16,_0x142b64,_0x5926d9,_0x32b7af,_0x2af1af,_0x2baccb){return new _0x1bda2a(this[_0x3cc0('0xa6')],{'type':_0x214c16,'subType':_0x142b64,'id':_0x5926d9,'author':_0x32b7af,'creator':_0x32b7af,'attributes':_0x2af1af,'onAttributesChange':_0x2baccb,'onAccept':(..._0xd6c9e6)=>this[_0x3cc0('0x1')](_0x214c16,_0x142b64,_0x3cc0('0x94'))(..._0xd6c9e6),'onDiscard':(..._0x53181b)=>this['getSuggestionCallback'](_0x214c16,_0x142b64,_0x3cc0('0x9e'))(..._0x53181b)});}[_0x3cc0('0xea')](_0x1dee36,_0x3466b5,_0x118e45,_0x1c3bb9){const _0x5e365d=_0x1dee36+':'+_0x3466b5+':'+_0x118e45;this[_0x3cc0('0xdf')][_0x3cc0('0xdd')](_0x5e365d,_0x1c3bb9);}['getSuggestionCallback'](_0x2fd81d,_0x154f39,_0x3252fc){const _0x3ea2b9=_0x2fd81d+':'+_0x154f39+':'+_0x3252fc;return this[_0x3cc0('0xdf')][_0x3cc0('0xd1')](_0x3ea2b9)||this[_0x3cc0('0x4b')][_0x3cc0('0xd1')](_0x2fd81d+':'+_0x3252fc);}['_registerDefaultCallbacks'](){const _0x445da4=()=>{},_0x588f05=_0x21adf7=>{_0x21adf7['sort']((_0x159691,_0x47b76f)=>_0x159691[_0x3cc0('0xab')][_0x3cc0('0x2f')](_0x47b76f['start'])?0x1:-0x1),this['_model'][_0x3cc0('0xf0')](_0x5b04d9=>{for(const _0x41ecd7 of _0x21adf7){let _0x414503;_0x414503=_0x41ecd7[_0x3cc0('0x10c')][_0x3cc0('0xa2')]&&_0x41ecd7[_0x3cc0('0x10c')]['parent']==_0x41ecd7['start']['nodeAfter']?_0x5b04d9['createSelection'](_0x41ecd7['start']['nodeAfter'],'on'):_0x5b04d9[_0x3cc0('0xc8')](_0x41ecd7),this[_0x3cc0('0xa6')][_0x3cc0('0x46')](_0x414503,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3a94df=(_0x488de9,_0x147f61)=>{this[_0x3cc0('0xa6')][_0x3cc0('0xf0')](_0xc5ca7b=>{const {commandName:_0x5c924c,commandParams:_0x8c494=[]}=_0x147f61,_0x9ae626=_0x488de9['map'](_0x342139=>(_t(_0x342139)&&(_0x342139=this[_0x3cc0('0xa6')][_0x3cc0('0xe')](_0x342139['end'])),_0x342139))['filter'](_0x4ec1dd=>'$graveyard'!==_0x4ec1dd[_0x3cc0('0x13a')][_0x3cc0('0x47')]);if(_0x9ae626['length']<0x1)return;const _0x11adde=Array['from'](this['_model'][_0x3cc0('0x13e')][_0x3cc0('0xbc')][_0x3cc0('0xbd')]())[_0x3cc0('0xfa')](_0x51369b=>_0x4b431b[_0x3cc0('0x12')](_0x51369b));_0xc5ca7b[_0x3cc0('0x92')](_0x9ae626);for(const _0x2e17fb of this[_0x3cc0('0xb1')]['commands'][_0x3cc0('0x12b')]())_0x2e17fb[_0x3cc0('0x3a')]();_0x8c494['push']({'forceDefaultExecution':!0x0}),this[_0x3cc0('0xb1')]['execute'](_0x5c924c,..._0x8c494);const _0x5a7196=_0x11adde[_0x3cc0('0x1d')](_0x3ffbdb=>'$graveyard'!=_0x3ffbdb[_0x3cc0('0x13a')][_0x3cc0('0x47')]);_0x5a7196[_0x3cc0('0xcb')]>0x0&&_0xc5ca7b[_0x3cc0('0x92')](_0x5a7196);for(const _0xe4618a of _0x11adde)_0xe4618a[_0x3cc0('0xe0')]();});},_0x5c0f0c=(_0x56f290,_0x1d1db7)=>0x1==_0x56f290[_0x3cc0('0xcb')]&&0x1==_0x1d1db7[_0x3cc0('0xcb')]&&_0x56f290[0x0]['end'][_0x3cc0('0x53')](_0x1d1db7[0x0][_0x3cc0('0xab')]),_0x37f5e5=(_0x5f0d26,_0x5532d7,_0x1f4f1c,_0x21808b)=>xt(_0x5f0d26,_0x5532d7,_0x1f4f1c,_0x21808b,this[_0x3cc0('0xa6')])?[_0x5f0d26,_0x5532d7]:xt(_0x5532d7,_0x5f0d26,_0x21808b,_0x1f4f1c,this[_0x3cc0('0xa6')])?[_0x5532d7,_0x5f0d26]:null;this[_0x3cc0('0x4b')]['set'](_0x3cc0('0x9f'),_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')]('insertion:discard',_0x588f05),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0xa'),_0x5c0f0c),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x84'),_0x37f5e5),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')]('deletion:accept',_0x588f05),this['_defaultCallbacks']['set']('deletion:discard',_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x5d'),_0x5c0f0c),this['_defaultCallbacks'][_0x3cc0('0xdd')](_0x3cc0('0x4d'),_0x37f5e5),this[_0x3cc0('0x4b')]['set'](_0x3cc0('0xc6'),_0x3a94df),this[_0x3cc0('0x4b')]['set'](_0x3cc0('0x4e'),_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')]('formatInline:join',_0x5c0f0c),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x134'),_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0xed'),_0x3a94df),this['_defaultCallbacks']['set']('formatBlock:discard',_0x445da4),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0x6a'),_0x5c0f0c),this[_0x3cc0('0x4b')][_0x3cc0('0xdd')](_0x3cc0('0xf4'),_0x445da4);}}function Bt(_0x313545,_0x1f327b,_0x28e98e){for(const _0x5e7d1c of _0x1f327b['parent'][_0x3cc0('0x14')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e7d1c[_0x3cc0('0x13a')]==_0x5e7d1c)return!0x1;if(!_0x28e98e[_0x3cc0('0xd2')](_0x5e7d1c))return!0x1;if(_0x313545[_0x3cc0('0xaf')](_0x5e7d1c)||_0x313545[_0x3cc0('0x39')](_0x5e7d1c))return!0x0;}return!0x1;}function _t(_0xddd045){return _0xddd045[_0x3cc0('0x10c')][_0x3cc0('0x116')]==_0xddd045[_0x3cc0('0xab')]['nodeAfter']&&_0xddd045['end']['isAtStart'];}function Mt(_0x47e689,_0x529a60,_0x169448,_0x248208){const _0x18ad42=_0x48b436=>!_0x48b436['item']['is']('$textProxy')&&!_0x248208[_0x3cc0('0xaf')](_0x48b436[_0x3cc0('0x7d')]),_0x7b4552=_0x47e689[_0x3cc0('0xab')][_0x3cc0('0x4c')](_0x18ad42),_0x26967f=_0x47e689['end'][_0x3cc0('0x4c')](_0x18ad42,{'direction':_0x3cc0('0x5f')});return(!_0x47e689['start'][_0x3cc0('0x53')](_0x7b4552)||!_0x47e689['end'][_0x3cc0('0x53')](_0x26967f))&&(_0x7b4552[_0x3cc0('0x2f')](_0x26967f)?_0x169448[_0x3cc0('0xb3')](_0x529a60,{'range':_0x169448[_0x3cc0('0xe')](_0x7b4552,_0x26967f)}):_0x169448['removeMarker'](_0x529a60),!0x0);}function $t(_0x5e8ebc){return _0x17e8a1(_0x5e8ebc);}function Nt(_0x958db1){const _0x38c871=_0x958db1[_0x3cc0('0xab')][_0x3cc0('0x130')];return _0x38c871&&_0x38c871['is'](_0x3cc0('0x126'));}function Rt(_0x33b6fd,_0xd5cf47){const _0x4b3fd7=_0xd5cf47[_0x3cc0('0xde')][_0x3cc0('0xaf')](_0x33b6fd)||_0xd5cf47[_0x3cc0('0xde')][_0x3cc0('0x98')](_0x33b6fd);return _0xd5cf47[_0x3cc0('0xe')](_0xd5cf47[_0x3cc0('0xfd')](_0x33b6fd,'before'),_0x4b3fd7?_0xd5cf47[_0x3cc0('0xaa')](_0x33b6fd):_0xd5cf47[_0x3cc0('0xfd')](_0x33b6fd,_0x3cc0('0x10c')));}function xt(_0x16373b,_0x56705d,_0x3cc7e6,_0x4e2ad7,_0x121d11){if(_0x3cc7e6[_0x3cc0('0x10c')]['isEqual'](_0x4e2ad7[_0x3cc0('0xab')]))return!0x0;if(_0x16373b[_0x3cc0('0x122')]!=_0x56705d[_0x3cc0('0x122')])return!0x1;if(!_0x3cc7e6['end'][_0x3cc0('0xc3')](_0x4e2ad7[_0x3cc0('0xab')]))return!0x1;const _0x4dca14=_0x121d11[_0x3cc0('0xe')](_0x3cc7e6[_0x3cc0('0x10c')],_0x4e2ad7[_0x3cc0('0xab')])[_0x3cc0('0x22')]();for(const _0x55de7b of _0x4dca14)if([_0x3cc0('0xc5'),_0x3cc0('0x2b')][_0x3cc0('0x4f')](_0x55de7b[_0x3cc0('0x122')])&&_0x121d11[_0x3cc0('0xde')]['isLimit'](_0x55de7b[_0x3cc0('0x7d')]))return!0x1;return!0x0;}
|