@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240205.0 → 0.0.0-nightly-20240206.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/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xd20e=['setAttribute','_updateSuggestionData','lowest','_joinSuggestions','insertion:','data-suggestion','suggestionChanged','attribute','createPositionAt','_afterChanges','notReady','ck-suggestion-marker-formatInline','$graveyard','after','markers','suggestionLoaded','never','isInContent','_setSuggestionRange','getShiftedBy','attributes','_getAttributeKey','some','addMarker:suggestion:formatBlock','track-changes-adapter-missing-getsuggestion','$elementName','markInlineFormat','acceptSelectedSuggestions','newValue','_trackFormatChanges','showSuggestionHighlights','creator','formatBlock:discard','dataReady','addCommentThread','isArray','selection','clone','attribute:join','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','splitPosition','subType','ck-suggestion-marker--active','removeMarkers','data','formatInline','addMarker','oldRange','TrackChangesEditing','split','markerNameToElements','dataToMarker','_defaultCallbacks','conversion','_registerBlockAttribute','_splitMarkerName','attributeOldValue','concat','createRange','_initAriaMarkerChangeAnnouncements','bindElementToMarker','formatInline:','discardAllSuggestions','createPositionBefore','deletion','isMultiRange','resolve','addComment','clear','document','pop','track-changes-enable-command-twice','_reduceExistingSuggestions','author','removeMarker:suggestion:formatBlock','isObject','writer','isIntersecting','_recordAttributeSuggestions','enableCommand','_blockAttributeKeys','removeMarker','suggestion:attribute:','reconvertMarker','range','markMultiRangeInsertion','groupId','_suggestions','_commentsRepository','_isBlockAttribute','element','_addSuggestionMarker','elementEnd','root','FORMATTING','collaboration.channelId','change:_saved','external:','sort','attributeKey','formatBlock:accept','define','oldValue','removed','_getAuthorFromId','return','getContainedElement','filter','addSuggestionData','group','isExternal','high','catch','removeMarker:suggestion:attribute','_suggestionFactory','getRange','removeClass','suggestion','hasSuggestion','track-changes-suggestion-not-found','plugins','values','from','formatBlock:join','name','listenTo','before','markDeletion','createdAt','change','ck-suggestion-marker-','addUser','deleteContent','start','change:data','isDocumentOperation','hasComments','_reduceSuggestionAttributeRange','_cutOutSuggestionMarker','trackChanges.mergeNestedSuggestions','getNearestSelectionRange','documentSelection','_SUGGESTION_ANNOUNCEMENT','$marker','_processAttributeSuggestions','ck-suggestion-marker','upcast','buildSuggestion','locale','isAtStart','_descriptionFactory','_onDiscard','_checkSuggestionCorrectness','editingDowncast','rejected','_model','isTouching','_getMarkerAnnouncementText','add','deletion:chain','_adapter','deletion:join','formatInline:discard','howMany','getChangedMarkers','_recordAttributeChanges','formatInline:chain','deletion:discard','keys','isInsideObject','formatBlock:','containsPosition','containsItem','getAllAdjacentSuggestions','skipNestingCheck','announce','trackChanges.trackFormatChanges','setSelection','low','authoredAt','dataDowncast','ck-suggestion-marker-formatBlock','length','_getExternalAuthor','rootName','execute','getMultiRangeId','getAttribute','getFirstRange','remove','multi','updateMarker','stopListening','discardSelectedSuggestions','isBlock','unbindElementFromMarkerName','_registerInlineAttribute','discardSuggestion','$textProxy','containsRange','options','_handleNewSuggestionMarker','isLimit','join','createPositionAfter','key','addHighlight','targetPosition','getLastMatchingPosition','updateSuggestion','type','PENDING_ACTION_SUGGESTION','insertion:chain','markerToData','Users','model','multipleBlocks','LEAVE','init','markMultiRangeDeletion','getSuggestionCallback','move','_enabledCommands','config','_processAttributeChanges','addSuggestion','tablePasteChainId','toJSON','isBefore','track-changes-adapter-already-set','find','suggestionUnloaded','isLocal','_editor','getDifference','every','attribute:accept','adapter','forEach','addRange','differ','next','insertContent','_removeSuggestion','acceptSuggestion','discard','meta','_isForcedDefaultExecutionBlock','markAttributeChange','ready','CommentsRepository','isAfter','open','markInsertion','for','detach','activeMarkers','startsWith','_inlineAttributeKeys','then','_joinWithAdjacentSuggestions','deletion:accept','schema','removeAttribute','includes','ENTER','insertion:accept','enqueueChange','newRange','size','parent','addMarker:suggestion:attribute','get','_addThreadToSuggestion','isIntersectingWithRange','isCollapsed','trackChangesCommand','_breakSuggestionMarker','markMultiRangeBlockFormat','isRemovable','widget','isOwn','getCommentThread','fire','formatBlock:chain','unshift','accepted','accept','addClass','toUpperCase','getFirstMarker','getCustomProperty','$text','isUndo','toViewElement','highest','isAtEnd','consume','format','formatBlock','_rangeIsInLocalUserInsertion','_getSuggestionData','commands','setTo','nodeAfter','editor','backward','_mergeNestedSuggestions','getIntersection','containerElement','push','insertion','createSelection','attributeNewValue','getUser','_registerDefaultCallbacks','insert','formatGroupId','_isDataLoaded','has','track-changes-command-not-found','getSuggestion','markerToHighlight','delete','commandName','getChanges','mapper','registerPostFixer','chain','position','isSelectable','addMarker:suggestion','always','originalSuggestionId','track-changes-user-not-found','track-changes-suggestion-data-mismatch','deletion:','getRanges','normal','set','isEqual','batch','error-saving-suggestion-data-suggestion-discarded','fromRange','markBlockFormat','trackChanges','substring','_createSuggestion','_refreshAttributeSuggestionsChain','attribute:','pluginName','consumable','nodeBefore','_customCallbacks','_findSuggestions','requires','_setSuggestionData','fromCharCode','_refreshSuggestionsChain','value','substr','acceptAllSuggestions','_element','stop','markerReady','createRangeIn','_saved','getMarkers','ariaLiveAnnouncer','map','elementStart','forceDefaultExecution','_isRegisteredAttribute','_suggestionState','markerName','update:suggestion','containsRangeInObject','moveTargetPosition','@external','isNextTo','end','previous','suggestion:','getSuggestions','item','PendingActions','commentThread','splice'];(function(_0x60b80b,_0xd20eb3){const _0x36600f=function(_0x371a55){while(--_0x371a55){_0x60b80b['push'](_0x60b80b['shift']());}};_0x36600f(++_0xd20eb3);}(_0xd20e,0x7d));const _0x3660=function(_0x60b80b,_0xd20eb3){_0x60b80b=_0x60b80b-0x0;let _0x36600f=_0xd20e[_0x60b80b];return _0x36600f;};import{Plugin as _0x3c9383,PendingActions as _0x1cdc7d}from'ckeditor5/src/core.js';import{LiveRange as _0x29f361}from'ckeditor5/src/engine.js';import{CKEditorError as _0x235f7d,uid as _0x1999fc,priorities as _0x142769,logWarning as _0x439b7d}from'ckeditor5/src/utils.js';import{toWidget as _0x2c6472}from'ckeditor5/src/widget.js';import{Users as _0x15e9b9,hashObject as _0x41b87a,surroundingMarkersDetector as _0x5605f2}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x35d373 from'./commands/trackchangescommand.js';import _0x3cdaf5 from'./commands/acceptsuggestioncommand.js';import _0x594a78 from'./commands/discardsuggestioncommand.js';import _0x1d9f72 from'./commands/executeonallsuggestionscommand.js';import _0x544cf5 from'./commands/executeonselectedsuggestionscommand.js';import _0x28cade from'./suggestion.js';import _0xde1972 from'./suggestiondescriptionfactory.js';import _0x5386a6 from'./integrations/aiassistant.js';import _0x164612 from'./integrations/alignment.js';import _0x3c92ec from'./integrations/basicstyles.js';import _0x11ebb7 from'./integrations/blockquote.js';import _0x3c31aa from'./integrations/casechange.js';import _0xcb1e7e from'./integrations/ckbox.js';import _0x368d9d from'./integrations/codeblock.js';import _0x12bd54 from'./integrations/comments.js';import _0x33a1e5 from'./integrations/deletecommand.js';import _0x7b6dd0 from'./integrations/list.js';import _0x1caf4c from'./integrations/listproperties.js';import _0x641967 from'./integrations/entercommand.js';import _0x21f04d from'./integrations/findandreplace.js';import _0xc1eaef from'./integrations/font.js';import _0x5a5dd7 from'./integrations/formatpainter.js';import _0x3d730d from'./integrations/heading.js';import _0x4b6227 from'./integrations/highlight.js';import _0x10d012 from'./integrations/horizontalline.js';import _0x9eef51 from'./integrations/htmlembed.js';import _0x2aad4e from'./integrations/image.js';import _0x30879a from'./integrations/imagereplace.js';import _0x279f80 from'./integrations/imagestyle.js';import _0x2a5ed8 from'./integrations/importword.js';import _0x156e42 from'./integrations/indent.js';import _0x372d4e from'./integrations/inputcommand.js';import _0x430e74 from'./integrations/link.js';import _0x372331 from'./integrations/legacylist.js';import _0x17d078 from'./integrations/legacylistproperties.js';import _0x855a10 from'./integrations/mediaembed.js';import _0x11cc28 from'./integrations/mention.js';import _0x13639e from'./integrations/pagebreak.js';import _0x1e5ee5 from'./integrations/paragraph.js';import _0x545705 from'./integrations/removeformat.js';import _0x456b3a from'./integrations/restrictededitingmode.js';import _0x11cadb from'./integrations/shiftentercommand.js';import _0x20d4d5 from'./integrations/standardeditingmode.js';import _0x3980be from'./integrations/style.js';import _0x2c36bf from'./integrations/table.js';import _0x5d5b18 from'./integrations/tablemergesplit.js';import _0x50a913 from'./integrations/tableheadings.js';import _0x220ff3 from'./integrations/tableclipboard.js';import _0x4969c9 from'./integrations/tablecolumnresize.js';import _0x23978e from'./integrations/template.js';import _0x5379e1 from'./integrations/tableofcontents.js';import _0x463477 from'./integrations/title.js';import _0x1396d9 from'./integrations/undo.js';import _0xf541f2 from'./integrations/tablecaption.js';import _0x1b9d57 from'./integrations/tableproperties.js';import{getTranslation as _0x5e26b6}from'./utils/common-translations.js';import{isEqual as _0x5b572f,omit as _0x23195e}from'lodash-es';export const renameAttributeKey='$elementName';export default class p extends _0x3c9383{static get[_0x3660('0xe6')](){return[_0x3660('0x7d'),_0x15e9b9,_0x1cdc7d,_0x5386a6,_0x164612,_0x3c92ec,_0x11ebb7,_0xcb1e7e,_0x3c31aa,_0x368d9d,_0x12bd54,_0x33a1e5,_0x641967,_0x21f04d,_0xc1eaef,_0x5a5dd7,_0x3d730d,_0x4b6227,_0x10d012,_0x9eef51,_0x2aad4e,_0x279f80,_0x30879a,_0x2a5ed8,_0x156e42,_0x372d4e,_0x372331,_0x17d078,_0x430e74,_0x7b6dd0,_0x1caf4c,_0x855a10,_0x11cc28,_0x13639e,_0x1e5ee5,_0x545705,_0x456b3a,_0x11cadb,_0x20d4d5,_0x3980be,_0x2c36bf,_0x5d5b18,_0x50a913,_0xf541f2,_0x220ff3,_0x4969c9,_0x5379e1,_0x1b9d57,_0x23978e,_0x463477,_0x1396d9];}static get[_0x3660('0xe1')](){return _0x3660('0x137');}constructor(_0x5e5cc6){function _0x3a7287(_0x3d4b0b){return _0x3d4b0b[_0x3660('0xf4')](_0x488a4a=>String[_0x3660('0xe8')](_0x488a4a))[_0x3660('0x4e')]('');}super(_0x5e5cc6),this[_0x3660('0x155')]=!0x1,this[_0x3660('0xd6')](_0x3660('0x83'),[]),this['on']('change:activeMarkers',(_0x427391,_0x23860f,_0xedaa42,_0x10c7cc)=>{this['_model'][_0x3660('0x4')](()=>{for(const _0x4bb321 of[..._0x10c7cc,..._0xedaa42])this[_0x3660('0x1e')][_0x3660('0x115')]['has'](_0x4bb321)&&_0x5e5cc6['editing'][_0x3660('0x15a')](_0x4bb321);});}),this[_0x3660('0x19')]=new _0xde1972(this[_0x3660('0xb4')][_0x3660('0x5a')][_0x3660('0x89')],this[_0x3660('0xb4')][_0x3660('0x17')]),this[_0x3660('0x23')]=null,this[_0x3660('0x179')]=new Bt(this['editor']),this[_0x3660('0x15e')]=new Map(),this['_commentsRepository']=_0x5e5cc6[_0x3660('0x17f')][_0x3660('0x93')](_0x3660('0x7d')),this[_0x3660('0x61')]=new Set(),this[_0x3660('0x1e')]=this[_0x3660('0xb4')][_0x3660('0x5a')],this[_0x3660('0xf8')]=new WeakMap(),this[_0x3660('0x7a')]=!0x1,this[_0x3660('0x157')]=new Set([_0x3660('0x120')]),this[_0x3660('0x85')]=new Set(),_0x5e5cc6['config']['define'](_0x3660('0x33'),'default'),this[_0x3660('0x124')]=_0x5e5cc6['config'][_0x3660('0x93')]('trackChanges.trackFormatChanges'),_0x5e5cc6[_0x3660('0x62')][_0x3660('0x16c')](_0x3660('0xe'),!0x0),this[_0x3660('0xb6')]=_0x5e5cc6[_0x3660('0x62')][_0x3660('0x93')](_0x3660('0xe')),this[_0x3660('0x97')]=new _0x35d373(_0x5e5cc6,this['_enabledCommands']),this[_0x3660('0x142')](),this[_0x3a7287([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3a7287([0x34,0x30,0x34,0x38,0x30,0x34,0x31,0x30]);}[_0x3660('0x5d')](){const _0x4e8cf5=this[_0x3660('0xb4')],_0x169e40=(_0x2ddcea,_0x16f715)=>{if(_0x3660('0x10e')!=_0x2ddcea)return _0x3660('0x5')+_0x2ddcea;const _0x43ba02=_0x16f715[_0x3660('0x138')]('|')[0x0];return this[_0x3660('0x160')](_0x43ba02)?_0x3660('0x38'):_0x3660('0x112');};_0x4e8cf5['conversion'][_0x3660('0x81')](_0x3660('0x1c'))[_0x3660('0xc5')]({'model':_0x3660('0x17c'),'view':_0x5d9b26=>{const {id:_0x245a0e,type:_0x434a93,subType:_0x21e334}=this[_0x3660('0x13e')](_0x5d9b26['markerName']),_0x2727f1=[_0x3660('0x14'),_0x169e40(_0x434a93,_0x21e334)];let _0x1e1f7d=0xbb8;return this[_0x3660('0x83')][_0x3660('0x8b')](_0x5d9b26[_0x3660('0xf9')])&&(_0x2727f1[_0x3660('0xb9')](_0x3660('0x131')),_0x1e1f7d=0xbc2),_0x3660('0x147')==_0x434a93&&(_0x1e1f7d+=0x5),{'classes':_0x2727f1,'attributes':{'data-suggestion':_0x245a0e},'priority':_0x1e1f7d};}}),_0x4e8cf5['conversion'][_0x3660('0x81')](_0x3660('0x37'))[_0x3660('0x21')](_0x1b5d2b=>{_0x1b5d2b['on'](_0x3660('0xce'),(_0xcd3218,_0x849a4,_0x179057)=>{if(!_0x179057['options'][_0x3660('0x125')])return;const _0x31f42b=_0x849a4[_0x3660('0x103')];if(!_0x31f42b)return;const _0x4dda15=_0x179057[_0x3660('0xc9')][_0x3660('0xa9')](_0x31f42b);_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x89')][_0x3660('0x152')](_0x31f42b)&&_0x4dda15&&!_0x4dda15[_0x3660('0xa6')](_0x3660('0x9b'))&&_0x4dda15['is'](_0x3660('0xb8'))&&_0x2c6472(_0x4dda15,_0x179057['writer']);},{'priority':_0x3660('0x176')});}),_0x4e8cf5['conversion'][_0x3660('0x81')]('dataDowncast')[_0x3660('0xc5')]({'model':_0x3660('0x17c'),'view':(_0x7ff64c,_0x5f07de)=>{if(!_0x5f07de[_0x3660('0x4b')]['showSuggestionHighlights'])return null;const {type:_0x32c872,subType:_0x3ce17b}=this[_0x3660('0x13e')](_0x7ff64c[_0x3660('0xf9')]);return{'classes':[_0x3660('0x14'),_0x169e40(_0x32c872,_0x3ce17b)],'priority':0xbb8};}});const _0x3e5786=({showActiveMarkers:_0x70025b=!0x0,isAttributeSuggestion:_0x458f74=!0x1}={})=>(_0x338375,_0x440d2a,_0x40e235)=>{if(!_0x440d2a[_0x3660('0x103')])return;const {id:_0x5e1638}=this[_0x3660('0x13e')](_0x440d2a[_0x3660('0xf9')]);if(_0x458f74){const _0x2905da=this['_suggestions'][_0x3660('0x93')](_0x5e1638),_0x2057b3=this['_getAttributeKey'](_0x2905da);if(!this[_0x3660('0x160')](_0x2057b3))return;}if(_0x440d2a['item']['is'](_0x3660('0x12b')))return void _0x40e235[_0x3660('0xe2')][_0x3660('0xac')](_0x440d2a[_0x3660('0x103')],_0x338375[_0x3660('0x183')]);const _0x347b84=_0x40e235[_0x3660('0xc9')][_0x3660('0xa9')](_0x440d2a[_0x3660('0x103')]);if(_0x440d2a[_0x3660('0x103')]['is'](_0x3660('0x161'))&&_0x4e8cf5['model'][_0x3660('0x89')]['isBlock'](_0x440d2a[_0x3660('0x103')])&&!_0x347b84['getCustomProperty'](_0x3660('0x51'))){_0x40e235[_0x3660('0x153')]['addClass']([_0x3660('0x14'),_0x3660('0x38')],_0x347b84),_0x40e235[_0x3660('0x153')][_0x3660('0x107')](_0x3660('0x10c'),_0x5e1638,_0x347b84),_0x40e235['mapper'][_0x3660('0x143')](_0x347b84,_0x440d2a[_0x3660('0xf9')]),_0x70025b&&(this[_0x3660('0x83')][_0x3660('0x8b')](_0x440d2a[_0x3660('0xf9')])?_0x40e235['writer'][_0x3660('0xa3')]('ck-suggestion-marker--active',_0x347b84):_0x40e235[_0x3660('0x153')][_0x3660('0x17b')](_0x3660('0x131'),_0x347b84));for(const _0x3664fc of _0x4e8cf5[_0x3660('0x5a')][_0x3660('0xf0')](_0x440d2a[_0x3660('0x103')])['getItems']())_0x40e235[_0x3660('0xe2')][_0x3660('0xac')](_0x3664fc,_0x338375[_0x3660('0x183')]);_0x40e235['consumable'][_0x3660('0xac')](_0x440d2a[_0x3660('0x103')],_0x338375[_0x3660('0x183')]);}};_0x4e8cf5[_0x3660('0x13c')][_0x3660('0x81')]('dataDowncast')[_0x3660('0x21')](_0x442171=>{_0x442171['on'](_0x3660('0x11e'),(_0xffd3f8,_0x3d60a7,_0x2ddcbf)=>{_0x2ddcbf[_0x3660('0x4b')]['showSuggestionHighlights']&&_0x3e5786({'showActiveMarkers':!0x1})(_0xffd3f8,_0x3d60a7,_0x2ddcbf);},{'priority':_0x3660('0xaa')});}),_0x4e8cf5['conversion'][_0x3660('0x81')](_0x3660('0x37'))[_0x3660('0x21')](_0x5803a8=>{_0x5803a8['on'](_0x3660('0x92'),(_0x4f92ac,_0x119bb3,_0x1da606)=>{_0x1da606[_0x3660('0x4b')][_0x3660('0x125')]&&_0x3e5786({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4f92ac,_0x119bb3,_0x1da606);},{'priority':_0x3660('0xaa')});}),_0x4e8cf5['conversion'][_0x3660('0x81')](_0x3660('0x37'))[_0x3660('0x58')]({'model':_0x3660('0x17c'),'view':(_0x46f1c3,_0x1ce21b)=>_0x1ce21b[_0x3660('0x4b')][_0x3660('0x125')]?null:{'group':_0x3660('0x17c'),'name':_0x46f1c3[_0x3660('0xeb')](0xb)}}),_0x4e8cf5[_0x3660('0x13c')]['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x326a0d,{writer:_0x1ec693})=>{let _0x347945=_0x3660('0x101')+_0x326a0d['getAttribute']('suggestion-type')+':'+_0x326a0d['getAttribute']('id');return _0x326a0d[_0x3660('0x3e')]('marker-count')&&(_0x347945+=':'+_0x326a0d['getAttribute']('marker-count')),_0x1ec693['createElement'](_0x3660('0x12'),{'data-name':_0x347945});}}),_0x4e8cf5[_0x3660('0x13c')][_0x3660('0x81')](_0x3660('0x15'))[_0x3660('0x13a')]({'view':_0x3660('0x17c')}),_0x4e8cf5[_0x3660('0x13c')][_0x3660('0x81')](_0x3660('0x1c'))[_0x3660('0x21')](_0x558e70=>{_0x558e70['on']('addMarker:suggestion:formatBlock',_0x3e5786(),{'priority':_0x3660('0x176')});}),_0x4e8cf5['conversion']['for'](_0x3660('0x1c'))[_0x3660('0x21')](_0x4f7db0=>{_0x4f7db0['on'](_0x3660('0x92'),_0x3e5786({'isAttributeSuggestion':!0x0}),{'priority':_0x3660('0x176')});}),_0x4e8cf5[_0x3660('0x13c')]['for'](_0x3660('0x1c'))[_0x3660('0x21')](_0x4bed41=>{_0x4bed41['on'](_0x3660('0x151'),(_0xd2afee,_0x51b5c3,_0x359b8e)=>{const _0x29950b=_0x359b8e['mapper'][_0x3660('0x139')](_0x51b5c3[_0x3660('0xf9')]);if(_0x29950b)for(const _0x3f6c74 of _0x29950b)_0x3f6c74['getCustomProperty']('addHighlight')||(_0x359b8e[_0x3660('0x153')][_0x3660('0x17b')]([_0x3660('0x14'),_0x3660('0x38'),'ck-suggestion-marker--active'],_0x3f6c74),_0x359b8e['writer'][_0x3660('0x8a')](_0x3660('0x10c'),_0x3f6c74),_0x359b8e[_0x3660('0xc9')][_0x3660('0x46')](_0x3f6c74,_0x51b5c3['markerName']));},{'priority':_0x3660('0x176')});}),_0x4e8cf5[_0x3660('0x13c')]['for'](_0x3660('0x1c'))['add'](_0x3a6e6a=>{_0x3a6e6a['on'](_0x3660('0x178'),(_0x235a21,_0x403797,_0x572679)=>{const _0x1a40c4=_0x572679[_0x3660('0xc9')]['markerNameToElements'](_0x403797[_0x3660('0xf9')]);if(!_0x1a40c4)return;const {id:_0xa4bf09}=this[_0x3660('0x13e')](_0x403797[_0x3660('0xf9')]),_0x36368e=this[_0x3660('0x15e')]['get'](_0xa4bf09),_0x4ccd2f=this[_0x3660('0x11c')](_0x36368e);if(this[_0x3660('0x160')](_0x4ccd2f))for(const _0x2bd908 of _0x1a40c4)_0x2bd908[_0x3660('0xa6')](_0x3660('0x51'))||(_0x572679[_0x3660('0x153')][_0x3660('0x17b')]([_0x3660('0x14'),_0x3660('0x38'),'ck-suggestion-marker--active'],_0x2bd908),_0x572679[_0x3660('0x153')][_0x3660('0x8a')]('data-suggestion',_0x2bd908),_0x572679[_0x3660('0xc9')][_0x3660('0x46')](_0x2bd908,_0x403797['markerName']));},{'priority':_0x3660('0x176')});}),_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x14c')][_0x3660('0xca')](_0x20bd35=>{let _0xcdd69a=!0x1;const _0x5c9ccd=Array['from'](_0x4e8cf5[_0x3660('0x5a')]['document']['differ'][_0x3660('0x27')]()),_0x247f03=new Set();for(const {name:_0x55fab4,data:_0x1b22fc}of _0x5c9ccd){const {group:_0x5349e7,type:_0x51d9ba,subType:_0x191d5f,id:_0x1c4537}=this['_splitMarkerName'](_0x55fab4);if(_0x3660('0x17c')!==_0x5349e7)continue;const _0x5c0e89=this['_suggestions'][_0x3660('0x93')](_0x1c4537);if(null!=_0x1b22fc[_0x3660('0x8f')]){_0x3660('0x134')==_0x51d9ba&&(_0xcdd69a=_0xcdd69a||Tt(_0x1b22fc[_0x3660('0x8f')],_0x55fab4,_0x20bd35,_0x4e8cf5['model'][_0x3660('0x89')]));const _0x40cb61='attribute'==_0x51d9ba&&this[_0x3660('0x160')](_0x191d5f[_0x3660('0x138')]('|')[0x0]);if(_0x1b22fc[_0x3660('0x8f')][_0x3660('0x96')]||_0x3660('0x113')==_0x1b22fc['newRange']['root']['rootName']||_0x3660('0xae')==_0x51d9ba&&!Vt(_0x1b22fc[_0x3660('0x8f')])||_0x40cb61&&!Vt(_0x1b22fc['newRange'])||'deletion'==_0x51d9ba&&!(!Rt(_0x42c372=_0x1b22fc[_0x3660('0x8f')])&&!function(_0x2375b0){return _0x2375b0[_0x3660('0x8')]['parent']==_0x2375b0[_0x3660('0xff')][_0x3660('0xe3')]&&_0x2375b0[_0x3660('0x8')]['isAtEnd'];}(_0x42c372)))_0x20bd35[_0x3660('0x158')](_0x55fab4),_0xcdd69a=!0x0;else{if(!_0x5c0e89||!_0x5c0e89[_0x3660('0x118')])continue;_0x247f03[_0x3660('0x21')](_0x5c0e89);}}}var _0x42c372;return _0x247f03[_0x3660('0x90')]>0x0&&(_0xcdd69a=!!this[_0x3660('0x87')](_0x247f03)||_0xcdd69a),_0xcdd69a;}),_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x14c')][_0x3660('0xca')](_0x14cefc=>{let _0x13264d=!0x1;for(const _0x493127 of _0x4e8cf5[_0x3660('0x5a')][_0x3660('0x14c')][_0x3660('0x73')]['getChanges']())if('insert'==_0x493127[_0x3660('0x55')])for(const _0x1430ab of this[_0x3660('0x15e')][_0x3660('0x180')]()){if(_0x1430ab['isMultiRange']||!_0x1430ab['isInContent'])continue;const _0x95ab53=_0x3660('0xae')==_0x1430ab[_0x3660('0x55')],_0x50cdf0=this[_0x3660('0x11c')](_0x1430ab),_0x2ad062=_0x50cdf0&&this[_0x3660('0x160')](_0x50cdf0);if(!_0x95ab53&&!_0x2ad062)continue;const _0x350871=_0x1430ab[_0x3660('0x3f')]();if(_0x350871[_0x3660('0x8')]['parent']!=_0x350871[_0x3660('0xff')][_0x3660('0x91')]&&!_0x350871[_0x3660('0xff')][_0x3660('0xab')]){const _0x181e6b=_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x10f')](_0x350871[_0x3660('0x8')][_0x3660('0xb3')],_0x3660('0xff')),_0xce0f95=_0x4e8cf5['model'][_0x3660('0x141')](_0x350871[_0x3660('0x8')],_0x181e6b);_0x14cefc[_0x3660('0x42')](_0x1430ab[_0x3660('0xa5')](),{'range':_0xce0f95}),_0x13264d=!0x0;}}return _0x13264d;}),_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x14c')][_0x3660('0xca')](_0xa33a0d=>this[_0x3660('0x63')](_0xa33a0d)),_0x4e8cf5[_0x3660('0x5a')]['document'][_0x3660('0xca')](_0x5233c0=>!_0x5233c0[_0x3660('0xd8')]['isLocal']&&this[_0x3660('0x13')](_0x5233c0)),_0x4e8cf5[_0x3660('0x5a')]['on'](_0x3660('0x110'),()=>{this[_0x3660('0x155')]=!0x1;}),_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x14c')]['on'](_0x3660('0x9'),(_0x3fe35c,_0x4d17d5)=>{if(!_0x4d17d5['isLocal']||_0x4d17d5['isUndo'])return;if(!this[_0x3660('0x155')])return;const _0x3f0bea=_0x4e8cf5['model'][_0x3660('0x14c')][_0x3660('0x73')][_0x3660('0xc8')]();if(0x0==_0x3f0bea[_0x3660('0x39')])return;const _0x2c0470=[],_0x4a9fb3=_0x3f0bea['filter'](_0x48ee68=>_0x3660('0x10e')==_0x48ee68['type']),_0x2e339c=_0x3f0bea['filter'](_0x3c752a=>_0x3660('0xbf')==_0x3c752a[_0x3660('0x55')]&&_0x3660('0xa7')!=_0x3c752a[_0x3660('0x183')]),_0x43ff0b=_0x3f0bea[_0x3660('0x172')](_0x32dc40=>_0x3660('0x40')==_0x32dc40['type']&&_0x3660('0xa7')!=_0x32dc40[_0x3660('0x183')]);for(const _0x4e7a73 of _0x4a9fb3)this[_0x3660('0xf7')](_0x4e7a73[_0x3660('0x16a')])&&_0x2c0470[_0x3660('0xb9')]({'key':_0x4e7a73[_0x3660('0x16a')],'newValue':_0x4e7a73[_0x3660('0xbc')],'oldValue':_0x4e7a73[_0x3660('0x13f')],'range':Ut(_0x4e7a73['range'],_0x4e8cf5['model'])});for(const _0x14ab0f of _0x2e339c){const _0x1fb6fe=_0x43ff0b[_0x3660('0x69')](_0x20624b=>_0x20624b['_element']===_0x14ab0f[_0x3660('0xed')]);if(_0x1fb6fe){const _0x3e9968=Ot(_0x14ab0f['position'][_0x3660('0xb3')],_0x4e8cf5[_0x3660('0x5a')]);_0x1fb6fe[_0x3660('0x183')]!==_0x14ab0f['name']&&_0x2c0470[_0x3660('0xb9')]({'key':'$elementName','newValue':_0x14ab0f[_0x3660('0x183')],'oldValue':_0x1fb6fe['name'],'range':_0x3e9968});for(const [_0x356238,_0x2bf69d]of _0x1fb6fe[_0x3660('0x11b')]){if(!this['_isRegisteredAttribute'](_0x356238))continue;const _0x78c90=_0x14ab0f[_0x3660('0x11b')][_0x3660('0x93')](_0x356238);_0x2bf69d!==_0x78c90&&_0x2c0470[_0x3660('0xb9')]({'key':_0x356238,'newValue':_0x78c90,'oldValue':_0x2bf69d,'range':_0x3e9968});}for(const [_0x3b3e06,_0x1a7682]of _0x14ab0f['attributes'])this['_isRegisteredAttribute'](_0x3b3e06)&&(_0x1fb6fe[_0x3660('0x11b')][_0x3660('0xc2')](_0x3b3e06)||_0x2c0470[_0x3660('0xb9')]({'key':_0x3b3e06,'newValue':_0x1a7682,'oldValue':null,'range':_0x3e9968}));}}0x0!=_0x2c0470[_0x3660('0x39')]&&_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x8e')](_0x4d17d5,_0x4d1ad3=>{const _0x146ec3=_0x1999fc();for(const {range:_0x5f1639,key:_0x18a3a7,oldValue:_0x170c00,newValue:_0xa25f74}of _0x2c0470)this[_0x3660('0x7b')](_0x5f1639,_0x18a3a7,_0x170c00,_0xa25f74,{'groupId':_0x146ec3});this['_reduceExistingSuggestions'](_0x4d1ad3,_0x2c0470);});},{'priority':_0x3660('0x109')}),_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x115')]['on'](_0x3660('0xfa'),(_0x14e540,_0x1ff528,_0x3ac613)=>{if(null==_0x3ac613){const {id:_0x459134}=this[_0x3660('0x13e')](_0x1ff528[_0x3660('0x183')]),_0x2900ba=this[_0x3660('0x15e')][_0x3660('0x93')](_0x459134);_0x2900ba&&_0x2900ba['addMarkerName'](_0x1ff528[_0x3660('0x183')]);}}),_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x14c')]['on'](_0x3660('0x9'),()=>{const _0x1fadfe=Array[_0x3660('0x181')](_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x14c')]['differ'][_0x3660('0x27')]())[_0x3660('0x172')](_0x1918df=>_0x3660('0x17c')===this[_0x3660('0x13e')](_0x1918df['name'])[_0x3660('0x174')]);if(0x0===_0x1fadfe[_0x3660('0x39')])return;_0x1fadfe[_0x3660('0x169')]((_0x9f8920,_0x1484aa)=>{const _0x56b21d=_0x9f8920[_0x3660('0x133')][_0x3660('0x136')],_0x3eb2e0=_0x1484aa['data'][_0x3660('0x136')];return null===_0x56b21d&&null===_0x3eb2e0?0x0:null===_0x56b21d&&null!==_0x3eb2e0?-0x1:null!==_0x56b21d&&null===_0x3eb2e0?0x1:_0x56b21d[_0x3660('0x8')][_0x3660('0x67')](_0x3eb2e0[_0x3660('0x8')])?-0x1:0x1;});const _0x2e9f80=new Set(),_0x265c38=new Set();for(const {name:_0xb67b8e,data:_0x5d4819}of _0x1fadfe){const {id:_0x59b91a}=this[_0x3660('0x13e')](_0xb67b8e);if(null===_0x5d4819[_0x3660('0x136')]){const _0x5b41cb=this['_handleNewSuggestionMarker'](_0xb67b8e);_0x265c38[_0x3660('0x21')](_0x5b41cb);}else{const _0x5d1fde=this[_0x3660('0x15e')][_0x3660('0x93')](_0x59b91a);null!==_0x5d4819[_0x3660('0x8f')]||_0x5d1fde[_0x3660('0x118')]?(_0x2e9f80[_0x3660('0x21')](_0x5d1fde['head']),_0x265c38[_0x3660('0x21')](_0x5d1fde)):this[_0x3660('0x76')](_0x5d1fde);}}_0x265c38[_0x3660('0x90')]>0x0&&this[_0x3660('0xe9')](_0x265c38);for(const _0xcf98e2 of _0x2e9f80)this[_0x3660('0x9e')]('suggestionChanged',_0xcf98e2);}),_0x4e8cf5[_0x3660('0x5a')]['on']('applyOperation',(_0x4c67f7,_0x458672)=>{const _0x42e3e7=_0x458672[0x0];if(!this[_0x3660('0x15e')][_0x3660('0x90')])return;if(!_0x42e3e7[_0x3660('0xa')])return;if(_0x42e3e7[_0x3660('0xd8')][_0x3660('0xa8')]||!_0x42e3e7[_0x3660('0xd8')][_0x3660('0x6b')])return;let _0x3d80e9,_0x5c97e9;switch(_0x42e3e7[_0x3660('0x55')]){case _0x3660('0xbf'):_0x3d80e9=_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x10f')](_0x42e3e7[_0x3660('0xcc')]),_0x5c97e9=_0x3d80e9[_0x3660('0x11a')](_0x42e3e7[_0x3660('0x26')]);break;case _0x3660('0x138'):_0x3d80e9=_0x4e8cf5[_0x3660('0x5a')]['createPositionAt'](_0x42e3e7[_0x3660('0x12f')]),_0x5c97e9=_0x4e8cf5['model'][_0x3660('0x10f')](_0x42e3e7[_0x3660('0xfc')]);break;case _0x3660('0x60'):_0x3d80e9=_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x10f')](_0x42e3e7[_0x3660('0x52')]),_0x5c97e9=_0x3d80e9[_0x3660('0x11a')](_0x42e3e7[_0x3660('0x26')]);break;default:return;}const _0x45113e=_0x4e8cf5[_0x3660('0x5a')]['createRange'](_0x3d80e9,_0x5c97e9);_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x4')](()=>{for(const {suggestion:_0x426d91,meta:_0x5a3a83}of this['_findSuggestions'](_0x45113e)){if(_0x426d91[_0x3660('0x148')])continue;if('formatInline'==_0x426d91[_0x3660('0x55')])continue;const _0x4c230c=this[_0x3660('0x11c')](_0x426d91);if(_0x4c230c&&this[_0x3660('0x160')](_0x4c230c)&&_0x3660('0x138')!=_0x42e3e7[_0x3660('0x55')])continue;const _0x3d9ff0=_0x426d91[_0x3660('0x133')]&&_0x426d91[_0x3660('0x133')][_0x3660('0x5b')];(_0x3660('0xae')!=_0x426d91[_0x3660('0x55')]||_0x3660('0x138')==_0x42e3e7[_0x3660('0x55')]&&!_0x3d9ff0)&&(_0x5a3a83[_0x3660('0xfb')]||_0x3660('0xba')==_0x426d91[_0x3660('0x55')]&&_0x5a3a83[_0x3660('0x9c')]||_0x426d91[_0x3660('0x3f')]()[_0x3660('0x4a')](_0x45113e)&&this[_0x3660('0x98')](_0x426d91,_0x3d80e9,_0x5c97e9));}});},{'priority':_0x3660('0x109')}),_0x4e8cf5[_0x3660('0x5a')]['on'](_0x3660('0x7'),(_0x2356ec,_0x8e710f)=>{const _0x40a832=_0x8e710f[0x0],_0xf98433=_0x8e710f[0x1];if(_0xf98433&&_0xf98433[_0x3660('0xf6')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x3660('0xea')])return;if(_0x40a832['isCollapsed'])return;const _0x15abdb=_0x4e8cf5['model']['schema'],{start:_0xee2ef7,end:_0x40a119}=_0x40a832['getFirstRange'](),_0xc292e8=_0xee2ef7[_0x3660('0xb3')]&&_0x15abdb['isLimit'](_0xee2ef7[_0x3660('0xb3')])?null:_0x15abdb[_0x3660('0xf')](_0xee2ef7,'forward'),_0x301c42=_0x40a119[_0x3660('0xe3')]&&_0x15abdb[_0x3660('0x4d')](_0x40a119[_0x3660('0xe3')])?null:_0x15abdb['getNearestSelectionRange'](_0x40a119,_0x3660('0xb5')),_0x47bdd8=_0x4e8cf5['model'][_0x3660('0x141')](_0xc292e8?_0xc292e8[_0x3660('0x8')]:_0xee2ef7,_0x301c42?_0x301c42[_0x3660('0xff')]:_0x40a119);_0x4e8cf5['model'][_0x3660('0x4')](_0x501cbc=>{this[_0x3660('0x2')](_0x47bdd8);const _0x4ccc6d=_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x89')][_0x3660('0xf')](_0x47bdd8['start']);_0x40a832['is'](_0x3660('0x10'))?_0x501cbc['setSelection'](_0x4ccc6d):_0x40a832[_0x3660('0xb2')](_0x4ccc6d);}),_0x2356ec['stop']();},{'priority':_0x142769[_0x3660('0xd5')]+0xa}),_0x4e8cf5[_0x3660('0x5a')]['on']('insertContent',(_0x43a30c,_0x4ab7fd)=>{const _0x9a312=_0x4ab7fd[_0x4ab7fd['length']-0x1];_0x9a312&&_0x9a312[_0x3660('0xf6')]||this['_isForcedDefaultExecutionBlock']||this[_0x3660('0x97')][_0x3660('0xea')]&&(_0x4e8cf5['model']['change'](()=>{let _0x14134b=_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x75')](_0x4ab7fd[0x0],_0x4ab7fd[0x1],_0x4ab7fd[0x2],{'forceDefaultExecution':!0x0});if(!_0x14134b)return;_0x43a30c[_0x3660('0x170')]=_0x14134b[_0x3660('0x12c')]();const _0x28016f=_0x14134b[_0x3660('0xff')][_0x3660('0xe3')],_0x4dd8f3=_0x4e8cf5[_0x3660('0x5a')][_0x3660('0x89')];_0x28016f&&_0x4dd8f3[_0x3660('0x45')](_0x28016f)&&!_0x4dd8f3[_0x3660('0x152')](_0x28016f)&&(_0x14134b=_0x4e8cf5['model'][_0x3660('0x141')](_0x14134b['start'],_0x4e8cf5['model'][_0x3660('0x10f')](_0x28016f,_0x3660('0xff')))),this[_0x3660('0x80')](_0x14134b);}),_0x43a30c[_0x3660('0xee')]());},{'priority':_0x3660('0x176')}),this[_0x3660('0xb4')]['commands'][_0x3660('0x21')](_0x3660('0xdc'),this[_0x3660('0x97')]),this[_0x3660('0x156')](_0x3660('0xdc'));const _0x11498a=new _0x3cdaf5(_0x4e8cf5,this['_suggestions']);_0x4e8cf5[_0x3660('0xb1')][_0x3660('0x21')]('acceptSuggestion',_0x11498a),this[_0x3660('0x156')](_0x3660('0x77'));const _0x3e7444=new _0x594a78(_0x4e8cf5,this['_suggestions']);_0x4e8cf5[_0x3660('0xb1')]['add']('discardSuggestion',_0x3e7444),this['enableCommand'](_0x3660('0x48')),_0x4e8cf5[_0x3660('0xb1')]['add'](_0x3660('0xec'),new _0x1d9f72(_0x4e8cf5,_0x11498a,this[_0x3660('0x15e')])),this[_0x3660('0x156')](_0x3660('0xec')),_0x4e8cf5[_0x3660('0xb1')][_0x3660('0x21')](_0x3660('0x145'),new _0x1d9f72(_0x4e8cf5,_0x3e7444,this['_suggestions'])),this[_0x3660('0x156')](_0x3660('0x145')),_0x4e8cf5[_0x3660('0xb1')][_0x3660('0x21')](_0x3660('0x122'),new _0x544cf5(_0x4e8cf5,_0x11498a,this[_0x3660('0x15e')])),this[_0x3660('0x156')](_0x3660('0x122')),_0x4e8cf5[_0x3660('0xb1')][_0x3660('0x21')](_0x3660('0x44'),new _0x544cf5(_0x4e8cf5,_0x3e7444,this[_0x3660('0x15e')])),this[_0x3660('0x156')](_0x3660('0x44'));const _0x98814a=_0x4e8cf5[_0x3660('0x17f')][_0x3660('0x93')](_0x3660('0x7d'));this[_0x3660('0x0')](_0x98814a,_0x3660('0x14a'),(_0x3bc6f3,{threadId:_0x467279})=>{const _0x24e18a=this['_suggestions'][_0x3660('0x93')](_0x467279);_0x24e18a&&_0x24e18a[_0x3660('0x105')]&&0x1===_0x24e18a[_0x3660('0x105')]['length']&&this[_0x3660('0x108')](_0x467279,{'hasComments':!0x0});},{'priority':_0x3660('0x35')}),this[_0x3660('0x0')](_0x98814a,'removeComment',(_0x3cbf06,{threadId:_0x133923})=>{const _0x178529=this[_0x3660('0x15e')]['get'](_0x133923);_0x178529&&_0x178529[_0x3660('0x105')]&&!_0x178529['commentThread'][_0x3660('0x39')]&&this['_updateSuggestionData'](_0x133923,{'hasComments':!0x1});},{'priority':_0x3660('0x35')});}set[_0x3660('0x70')](_0x43f6fe){if(this[_0x3660('0x23')])throw new _0x235f7d(_0x3660('0x68'),this);this[_0x3660('0x23')]=_0x43f6fe;}get['adapter'](){return this['_adapter'];}[_0x3660('0x102')]({skipNotAttached:_0x333121=!0x1,toJSON:_0x4c9c2a=!0x1}={}){const _0x32c7eb=[];for(const _0x4c036b of this[_0x3660('0x15e')]['values']())_0x333121&&!_0x4c036b['isInContent']||_0x32c7eb[_0x3660('0xb9')](_0x4c036b);return _0x4c9c2a?_0x32c7eb[_0x3660('0xf4')](_0x5e39d5=>_0x5e39d5[_0x3660('0x66')]()):_0x32c7eb;}['getSuggestion'](_0x59874b){const _0x2ccde9=this['_suggestions']['get'](_0x59874b);if(!_0x2ccde9)throw new _0x235f7d(_0x3660('0x17e'),this);return _0x2ccde9;}[_0x3660('0x17d')](_0x95d5c0){return this[_0x3660('0x15e')][_0x3660('0xc2')](_0x95d5c0);}['addSuggestionData'](_0x3f460f){const {authorId:_0x2947c4,id:_0xcb8e4e,attributes:_0x524555}=_0x3f460f,[_0x4beba9,_0x524207]=_0x3f460f['type'][_0x3660('0x138')](':'),_0x463b65=this['_suggestions'][_0x3660('0x93')](_0xcb8e4e)||this['_createSuggestion'](_0x4beba9,_0x524207,_0xcb8e4e,_0x2947c4,_0x524555);if(this[_0x3660('0x94')](_0x463b65),this[_0x3660('0x1b')](_0x463b65,_0x4beba9,_0x524207||null,_0x2947c4),_0x463b65[_0x3660('0x3')]=_0x3f460f[_0x3660('0x3')],_0x463b65['_isDataLoaded']=!0x0,_0x524555&&_0x524555[_0x3660('0xfd')]){const _0x5f0389=_0x524555[_0x3660('0xfd')],_0x30da64=this['_getExternalAuthor'](_0x5f0389['authorName']);_0x463b65[_0x3660('0x36')]=_0x5f0389[_0x3660('0x3')],_0x463b65[_0x3660('0x150')]=_0x30da64,_0x463b65[_0x3660('0x175')]=!0x0;}else _0x463b65['authoredAt']=_0x3f460f[_0x3660('0x3')];switch(_0x3f460f['data']&&(_0x463b65[_0x3660('0x133')]=_0x3f460f[_0x3660('0x133')]),_0x3f460f[_0x3660('0x11b')]&&(_0x463b65['attributes']=_0x3f460f[_0x3660('0x11b')]),this[_0x3660('0x23')]&&this['_adapter'][_0x3660('0x64')]||(_0x463b65[_0x3660('0xf1')]=!0x0),this[_0x3660('0xf8')][_0x3660('0x93')](_0x463b65)){case _0x3660('0x111'):this[_0x3660('0xf8')]['set'](_0x463b65,_0x3660('0x128'));break;case'markerReady':_0x463b65['isInContent']?(this[_0x3660('0x87')](new Set([_0x463b65])),this[_0x3660('0xe9')](new Set([_0x463b65])),this['_suggestionState'][_0x3660('0xd6')](_0x463b65,_0x3660('0x7c')),this[_0x3660('0x9e')]('suggestionLoaded',_0x463b65)):this[_0x3660('0xf8')]['set'](_0x463b65,'removed');}return _0x463b65;}[_0x3660('0x77')](_0x51ec28){this[_0x3660('0xf6')](()=>{this[_0x3660('0xb4')]['model'][_0x3660('0x4')](()=>{for(const _0x3e96ab of _0x51ec28['getAllAdjacentSuggestions']())_0x3e96ab['accept']();});});}[_0x3660('0x48')](_0x30c243){this[_0x3660('0xf6')](()=>{this[_0x3660('0xb4')][_0x3660('0x5a')][_0x3660('0x4')](()=>{for(const _0x52e3ff of _0x30c243[_0x3660('0x30')]())_0x52e3ff[_0x3660('0x78')]();});});}['enableCommand'](_0x336c3c,_0x1a3074){const _0x552250=this[_0x3660('0xb4')][_0x3660('0xb1')][_0x3660('0x93')](_0x336c3c);if(!_0x552250)throw new _0x235f7d(_0x3660('0xc3'),this,{'commandName':_0x336c3c});if(this[_0x3660('0x61')][_0x3660('0xc2')](_0x552250))throw new _0x235f7d(_0x3660('0x14e'),this,{'commandName':_0x336c3c});this[_0x3660('0x61')][_0x3660('0x21')](_0x552250),_0x1a3074&&_0x552250['on'](_0x3660('0x3c'),(_0x2dffc3,_0x5836c1)=>{this[_0x3660('0x97')]['value']&&(this[_0x3660('0x7a')]||(_0x5836c1[_0x3660('0x39')]>0x0&&_0x5836c1[_0x5836c1['length']-0x1]&&_0x5836c1[_0x5836c1[_0x3660('0x39')]-0x1][_0x3660('0xf6')]?_0x5836c1[_0x3660('0x14d')]():(_0x2dffc3[_0x3660('0x170')]=_0x1a3074((..._0x1f5fbf)=>_0x552250['execute'](..._0x1f5fbf,{'forceDefaultExecution':!0x0}),..._0x5836c1),_0x2dffc3['stop']())));},{'priority':_0x3660('0x176')});}[_0x3660('0xf6')](_0x2dbf9e){let _0xf0f35a,_0x2e7998;const _0x1671f9=this[_0x3660('0x7a')];this[_0x3660('0x7a')]=!0x0;try{_0xf0f35a=_0x2dbf9e();}catch(_0x2af5c0){_0x2e7998=_0x2af5c0;}return _0x1671f9||(this[_0x3660('0x7a')]=!0x1),_0x2e7998&&_0x235f7d['rethrowUnexpectedError'](_0x2e7998,this),_0xf0f35a;}['markInsertion'](_0x5898d0,_0x247271=null,_0x1aff13={}){if(_0x5898d0[_0x3660('0x96')])return null;const _0x395469=this['editor'][_0x3660('0x17f')][_0x3660('0x93')](_0x3660('0x59'))['me'];for(const {suggestion:_0x2ff6cc,meta:_0x246f97}of this['_findSuggestions'](_0x5898d0,'insertion'))if(_0x246f97['isOwn']){if(!_0x246f97[_0x3660('0xfe')]){if(_0x246f97[_0x3660('0xfb')]){if(!this[_0x3660('0xb6')]||!Pt(_0x2ff6cc,_0x1aff13))continue;return _0x2ff6cc;}if(Pt(_0x2ff6cc,_0x1aff13))return _0x2ff6cc;this['_breakSuggestionMarker'](_0x2ff6cc,_0x5898d0[_0x3660('0x8')],_0x5898d0['end']);break;}if(_0x247271==_0x2ff6cc['subType']&&Pt(_0x2ff6cc,_0x1aff13)){const _0x4ff146=_0x2ff6cc[_0x3660('0x3f')]();return _0x4ff146[_0x3660('0x8')]['isEqual'](_0x5898d0[_0x3660('0xff')])?this[_0x3660('0x119')](_0x2ff6cc,this[_0x3660('0x1e')][_0x3660('0x141')](_0x5898d0[_0x3660('0x8')],_0x4ff146[_0x3660('0xff')])):this[_0x3660('0x119')](_0x2ff6cc,this['_model'][_0x3660('0x141')](_0x4ff146[_0x3660('0x8')],_0x5898d0[_0x3660('0xff')])),_0x2ff6cc;}}const _0x21b3eb=_0x1999fc(),_0x3f205b=_0x395469['id'],_0x21bb97=_0x247271?_0x3660('0x10b')+_0x247271:'insertion',_0x179e5a=this[_0x3660('0xe7')]({'id':_0x21b3eb,'type':_0x21bb97,'createdAt':new Date(),'authorId':_0x3f205b,'attributes':_0x1aff13});return this[_0x3660('0x162')](_0x21bb97,_0x21b3eb,_0x3f205b,_0x5898d0),_0x179e5a;}[_0x3660('0x15c')](_0x2b34ce,_0x529de4=_0x3660('0x41'),_0x327760={}){const _0x1b810e=this[_0x3660('0xb4')]['plugins'][_0x3660('0x93')](_0x3660('0x59'))['me'],_0x53ddb1=this[_0x3660('0x179')][_0x3660('0x5f')](_0x3660('0xba'),_0x529de4,'join');for(const _0x1cbb9f of this[_0x3660('0x102')]())if(_0x1cbb9f[_0x3660('0x150')]['id']==_0x1b810e['id']&&'insertion'==_0x1cbb9f[_0x3660('0x55')]&&_0x1cbb9f[_0x3660('0x130')]==_0x529de4&&Pt(_0x1cbb9f,_0x327760)&&(_0x53ddb1(_0x1cbb9f['getRanges'](),_0x2b34ce)||_0x53ddb1(_0x2b34ce,_0x1cbb9f[_0x3660('0xd4')]()))){for(const _0x1457c0 of _0x2b34ce)_0x1cbb9f[_0x3660('0x72')](_0x1457c0);return _0x1cbb9f;}for(const {suggestion:_0x4f5040,meta:_0x16d334}of this[_0x3660('0xe5')](_0x2b34ce,_0x3660('0xba'))){if(!_0x16d334['isOwn'])continue;if(!this[_0x3660('0xb6')]&&_0x16d334[_0x3660('0xfb')])continue;if(!Pt(_0x4f5040,_0x327760))continue;let _0x3df4a4=!0x0;for(const _0x161eb6 of _0x4f5040[_0x3660('0xd4')]())for(const _0x1f4442 of _0x2b34ce)if(!_0x161eb6[_0x3660('0x4a')](_0x1f4442)){_0x3df4a4=!0x1;break;}if(_0x3df4a4)return _0x4f5040;}const _0x4fba3b=_0x1999fc(),_0x11aae9=_0x1b810e['id'],_0x37862a=_0x3660('0x10b')+_0x529de4,_0x443b51=this[_0x3660('0xe7')]({'id':_0x4fba3b,'type':_0x37862a,'createdAt':new Date(),'authorId':_0x11aae9,'attributes':_0x327760});for(const _0x304dbf of _0x2b34ce)this[_0x3660('0x162')](_0x37862a,_0x4fba3b,_0x11aae9,_0x304dbf,_0x28cade['getMultiRangeId']());return _0x443b51;}[_0x3660('0x121')](_0x319b1f,_0xaa547d,_0x384fdb=null,_0xfa1ab0={}){if(_0x384fdb=_0x384fdb||Et(_0xaa547d),_0x319b1f[_0x3660('0x96')])return null;if('never'===this['_trackFormatChanges']){const _0x46dc50=this[_0x3660('0x179')][_0x3660('0x5f')](_0x3660('0x134'),_0x384fdb,_0x3660('0xa2'));return this[_0x3660('0xf6')](()=>_0x46dc50([_0x319b1f],_0xaa547d,_0xfa1ab0)),null;}const _0x2dbfec=this[_0x3660('0xb4')]['plugins'][_0x3660('0x93')]('Users')['me'],_0x383ea5=[];if(_0x3660('0xcf')!==this['_trackFormatChanges'])for(const {suggestion:_0x508925,meta:_0x2ab769}of this[_0x3660('0xe5')](_0x319b1f,_0x3660('0xba')))_0x2ab769['isOwn']&&!_0x2ab769[_0x3660('0x2c')]&&_0x383ea5[_0x3660('0xb9')](..._0x508925[_0x3660('0xd4')]());const _0x523479=function(_0x3677d5,_0x509c4a){const _0x4fa65b=[];for(const _0x3c631f of _0x509c4a){const _0x4601b2=_0x3677d5[_0x3660('0xb7')](_0x3c631f);_0x4601b2&&_0x4fa65b[_0x3660('0xb9')](_0x4601b2);}return _0x4fa65b;}(_0x319b1f,_0x383ea5),_0x268167=function(_0x31ad03,_0x2bc763){const _0x5d4aa3=[_0x31ad03];for(const _0x5b064d of _0x2bc763){let _0x208e63=0x0;for(;_0x208e63<_0x5d4aa3[_0x3660('0x39')];){const _0x244b68=_0x5d4aa3[_0x208e63]['getDifference'](_0x5b064d);_0x5d4aa3['splice'](_0x208e63,0x1,..._0x244b68),_0x208e63+=_0x244b68[_0x3660('0x39')];}}return _0x5d4aa3;}(_0x319b1f,_0x383ea5);_0x523479[_0x3660('0x39')]&&this['_model']['change'](()=>{for(const _0xd23d74 of _0x523479){const _0x603855=this[_0x3660('0x179')][_0x3660('0x5f')](_0x3660('0x134'),_0x384fdb,'accept');this[_0x3660('0xf6')](()=>_0x603855([_0xd23d74],_0xaa547d,_0xfa1ab0));}});for(const _0x2fc77a of _0x268167){let _0x51fde9=null,_0x5cd568=_0x2fc77a[_0x3660('0x8')],_0x1dba6f=_0x2fc77a[_0x3660('0xff')];for(const {suggestion:_0x343805,meta:_0x2a414a}of this['_findSuggestions'](_0x2fc77a,_0x3660('0x134'))){if(!_0x2a414a[_0x3660('0x9c')])continue;if(_0x343805[_0x3660('0x130')]!=_0x384fdb)continue;if(!Pt(_0x343805,_0xfa1ab0))continue;const _0x555406=_0x343805['getFirstRange']();if(_0x555406['containsRange'](_0x2fc77a,!0x0))return null;_0x5cd568=_0x5cd568[_0x3660('0x67')](_0x555406[_0x3660('0x8')])?_0x5cd568:_0x555406['start'],_0x1dba6f=_0x1dba6f[_0x3660('0x7e')](_0x555406[_0x3660('0xff')])?_0x1dba6f:_0x555406[_0x3660('0xff')],_0x51fde9?_0x555406[_0x3660('0x8')][_0x3660('0x67')](_0x51fde9['getFirstRange']()[_0x3660('0x8')])?(_0x51fde9[_0x3660('0x132')](),_0x51fde9=_0x343805):_0x343805['removeMarkers']():_0x51fde9=_0x343805;}const _0x50d6cf=this[_0x3660('0x1e')][_0x3660('0x141')](_0x5cd568,_0x1dba6f);if(_0x51fde9)this['_setSuggestionRange'](_0x51fde9,_0x50d6cf);else{const _0xa1407c=_0x1999fc(),_0x28c910=_0x2dbfec['id'];this[_0x3660('0xe7')]({'id':_0xa1407c,'type':_0x3660('0x144')+_0x384fdb,'data':_0xaa547d,'createdAt':new Date(),'authorId':_0x28c910,'attributes':_0xfa1ab0}),this['_addSuggestionMarker'](_0x3660('0x144')+_0x384fdb,_0xa1407c,_0x28c910,_0x50d6cf);}}return null;}[_0x3660('0xdb')](_0x3efcfc,_0x13c191,_0x4904eb=[],_0x26ca5a=null,_0x5a996e={}){_0x13c191[_0x3660('0xc0')]||(_0x13c191[_0x3660('0xc0')]=_0x13c191[_0x3660('0xc7')]),_0x13c191[_0x3660('0x5b')]=_0x3efcfc['is'](_0x3660('0x15b')),_0x26ca5a=_0x26ca5a||Et(_0x13c191);const _0x4e1533=_0x4904eb['map'](_0x4a52e3=>Ot(_0x4a52e3,this['_model'])),_0x441886=_0x3efcfc['is'](_0x3660('0x15b'))?_0x3efcfc:Ot(_0x3efcfc,this[_0x3660('0x1e')]);if(_0x3660('0x117')===this['_trackFormatChanges']){const _0x9e1b7e=this['_suggestionFactory'][_0x3660('0x5f')](_0x3660('0xae'),_0x26ca5a,_0x3660('0xa2'));return this[_0x3660('0xf6')](()=>_0x9e1b7e([_0x441886],_0x13c191,_0x5a996e)),null;}_0x4e1533[_0x3660('0xb9')](_0x441886);let _0x2c1a3f=!0x0;for(const _0x212759 of _0x4e1533)if(!this['_rangeIsInLocalUserInsertion'](_0x212759)){_0x2c1a3f=!0x1;break;}if(_0x2c1a3f&&_0x3660('0xcf')!==this[_0x3660('0x124')]){const _0x4ace76=this[_0x3660('0x179')][_0x3660('0x5f')](_0x3660('0xae'),_0x26ca5a,_0x3660('0xa2'));return this[_0x3660('0xf6')](()=>_0x4ace76([_0x441886],_0x13c191,_0x5a996e)),null;}let _0xcd1024=null,_0x534e9c=_0x441886['start'],_0xe7ebf2=_0x441886[_0x3660('0xff')];for(const {suggestion:_0x4ef03e,meta:_0x2f0220}of this[_0x3660('0xe5')](_0x441886,'formatBlock')){if(!_0x2f0220[_0x3660('0x9c')])continue;if(_0x2f0220[_0x3660('0xfe')]||_0x2f0220['containsRangeInObject']||_0x2f0220[_0x3660('0x2c')])continue;if(_0x4ef03e[_0x3660('0x133')][_0x3660('0xc0')]!=_0x13c191[_0x3660('0xc0')])continue;if(!Pt(_0x4ef03e,_0x5a996e))continue;const _0x2e3495=_0x4ef03e[_0x3660('0x3f')]();if(_0x4ef03e[_0x3660('0x130')]==_0x26ca5a){if(_0x2e3495[_0x3660('0x4a')](_0x441886,!0x0))return null;_0x534e9c=_0x534e9c[_0x3660('0x67')](_0x2e3495[_0x3660('0x8')])?_0x534e9c:_0x2e3495['start'],_0xe7ebf2=_0xe7ebf2['isAfter'](_0x2e3495[_0x3660('0xff')])?_0xe7ebf2:_0x2e3495[_0x3660('0xff')],_0xcd1024?_0x2e3495[_0x3660('0x8')]['isBefore'](_0xcd1024[_0x3660('0x3f')]()[_0x3660('0x8')])?(_0xcd1024[_0x3660('0x132')](),_0xcd1024=_0x4ef03e):_0x4ef03e[_0x3660('0x132')]():_0xcd1024=_0x4ef03e;}else{const _0x1c4cbc=_0x441886['getIntersection'](_0x2e3495);this[_0x3660('0xd')](_0x4ef03e,_0x1c4cbc);}}const _0x3a3f93=this[_0x3660('0xb4')][_0x3660('0x17f')][_0x3660('0x93')](_0x3660('0x59'))['me'],_0x180176=_0x1999fc(),_0x14df64=_0x3a3f93['id'];if(_0xcd1024)return this['_setSuggestionRange'](_0xcd1024,this[_0x3660('0x1e')][_0x3660('0x141')](_0x534e9c,_0xe7ebf2)),_0xcd1024;{const _0x48c9ad=this[_0x3660('0xe7')]({'id':_0x180176,'type':_0x3660('0x2d')+_0x26ca5a,'data':_0x13c191,'createdAt':new Date(),'authorId':_0x14df64,'attributes':_0x5a996e});return this[_0x3660('0x162')](_0x3660('0x2d')+_0x26ca5a,_0x180176,_0x14df64,this[_0x3660('0x1e')][_0x3660('0x141')](_0x534e9c,_0xe7ebf2)),_0x48c9ad;}}[_0x3660('0x99')](_0x45f174,_0x301cbb,_0x579559=[],_0x928913=null,_0xb5e60={}){_0x301cbb[_0x3660('0xc0')]||(_0x301cbb['formatGroupId']=_0x301cbb['commandName']);const _0x29ef18=_0x45f174[0x0];_0x301cbb['multipleBlocks']=_0x29ef18['is'](_0x3660('0x15b')),_0x928913=_0x928913||Et(_0x301cbb);const _0x592657=_0x579559[_0x3660('0xf4')](_0x16d1c7=>Ot(_0x16d1c7,this[_0x3660('0x1e')])),_0x57fefe=_0x29ef18['is'](_0x3660('0x15b'))?_0x45f174:_0x45f174[_0x3660('0xf4')](_0x3ca04c=>Ot(_0x3ca04c,this[_0x3660('0x1e')]));if(_0x3660('0x117')===this[_0x3660('0x124')]){const _0x125068=this[_0x3660('0x179')][_0x3660('0x5f')](_0x3660('0xae'),_0x928913,_0x3660('0xa2'));return this[_0x3660('0xf6')](()=>_0x125068(_0x57fefe,_0x301cbb,_0xb5e60)),null;}_0x592657['push'](..._0x57fefe);let _0x4887b=!0x0;for(const _0x1f0cb1 of _0x592657)if(!this[_0x3660('0xaf')](_0x1f0cb1)){_0x4887b=!0x1;break;}if(_0x4887b&&_0x3660('0xcf')!==this[_0x3660('0x124')]){const _0x40fb8c=this[_0x3660('0x179')][_0x3660('0x5f')](_0x3660('0xae'),_0x928913,_0x3660('0xa2'));return this[_0x3660('0xf6')](()=>_0x40fb8c(_0x57fefe,_0x301cbb,_0xb5e60)),null;}const _0x1d23ed=this[_0x3660('0xb4')][_0x3660('0x17f')]['get'](_0x3660('0x59'))['me'];for(const _0x9115c6 of this[_0x3660('0x102')]()){if(_0x9115c6['author']['id']!=_0x1d23ed['id'])continue;if(_0x3660('0xae')!=_0x9115c6[_0x3660('0x55')]||_0x9115c6[_0x3660('0x133')]['formatGroupId']!=_0x301cbb['formatGroupId'])continue;if(!Pt(_0x9115c6,_0xb5e60))continue;const _0x2c3f64=_0x9115c6['subType']==_0x928913;for(let _0x357f75=0x0;_0x357f75<_0x57fefe[_0x3660('0x39')];_0x357f75++){const _0x504555=_0x57fefe[_0x357f75];for(const _0x4ca7ec of _0x9115c6[_0x3660('0xf2')]()){const _0xb622a0=_0x4ca7ec[_0x3660('0x17a')]();if(_0x504555['isEqual'](_0xb622a0)){_0x2c3f64?(_0x57fefe[_0x3660('0x106')](_0x357f75,0x1),_0x357f75--):_0x9115c6['removeMarker'](_0x4ca7ec[_0x3660('0x183')]);break;}}}}if(0x0==_0x57fefe[_0x3660('0x39')])return null;const _0x2d6304=this['_suggestionFactory']['getSuggestionCallback'](_0x3660('0xae'),_0x928913,'join');for(const _0x4a8dca of this['getSuggestions']())if(_0x4a8dca[_0x3660('0x150')]['id']==_0x1d23ed['id']&&_0x3660('0xae')==_0x4a8dca[_0x3660('0x55')]&&_0x4a8dca[_0x3660('0x133')][_0x3660('0xc0')]==_0x301cbb[_0x3660('0xc0')]&&_0x4a8dca['subType']==_0x928913&&Pt(_0x4a8dca,_0xb5e60)&&(_0x2d6304(_0x4a8dca[_0x3660('0xd4')](),_0x57fefe)||_0x2d6304(_0x57fefe,_0x4a8dca[_0x3660('0xd4')]()))){for(const _0x1ed753 of _0x57fefe)_0x4a8dca[_0x3660('0x72')](_0x1ed753);return _0x4a8dca;}const _0x3b5bf4=_0x1999fc(),_0x14d201=_0x1d23ed['id'],_0x2abbbe=_0x3660('0x2d')+_0x928913,_0x173df1=this[_0x3660('0xe7')]({'id':_0x3b5bf4,'type':_0x2abbbe,'data':_0x301cbb,'createdAt':new Date(),'authorId':_0x14d201,'attributes':_0xb5e60});for(const _0x28ca4b of _0x57fefe)this['_addSuggestionMarker'](_0x2abbbe,_0x3b5bf4,_0x14d201,_0x28ca4b,_0x28cade[_0x3660('0x3d')]());return _0x173df1;}[_0x3660('0x2')](_0x30163,_0x331e07=null,_0x5e44b7={}){if(_0x30163[_0x3660('0x96')])return null;const _0x469a30=this[_0x3660('0xb4')][_0x3660('0x17f')]['get'](_0x3660('0x59'))['me'],_0x340ebf=new _0x29f361(_0x30163[_0x3660('0x8')],_0x30163[_0x3660('0xff')]);for(const {suggestion:_0x2f9736,meta:_0x2df855}of this[_0x3660('0xe5')](_0x340ebf,_0x3660('0xba')))if(_0x2df855[_0x3660('0x9c')]&&!_0x2df855['isNextTo']){if(_0x2f9736[_0x3660('0x148')]){const _0x3d3d2b=_0x2f9736[_0x3660('0xd4')]()[_0x3660('0x172')](_0x29ab31=>'$graveyard'!=_0x29ab31[_0x3660('0x164')][_0x3660('0x3b')]);_0x3d3d2b[_0x3660('0x6e')](_0x23c984=>_0x340ebf['containsRange'](_0x23c984,!0x0))&&_0x2f9736[_0x3660('0x78')]();if(_0x3d3d2b[_0x3660('0x11d')](_0x1461a6=>_0x1461a6[_0x3660('0x4a')](_0x340ebf,!0x0))){const _0x2a36cc=this[_0x3660('0x179')]['getSuggestionCallback']('deletion',_0x331e07,_0x3660('0xa2'));return this[_0x3660('0xf6')](()=>_0x2a36cc([_0x340ebf],null,_0x5e44b7)),null;}}else{const _0x41dc99=_0x340ebf[_0x3660('0xb7')](_0x2f9736[_0x3660('0x3f')]());null!==_0x41dc99&&_0x2f9736[_0x3660('0x1a')]([_0x41dc99],null,_0x5e44b7);}}if(_0x340ebf['detach'](),_0x340ebf[_0x3660('0x96')]||'$graveyard'==_0x340ebf[_0x3660('0x164')][_0x3660('0x3b')])return null;let _0x527b8b=null,_0x4dcb2f=_0x340ebf[_0x3660('0x8')],_0x513c80=_0x340ebf[_0x3660('0xff')];const _0x272385=this[_0x3660('0xe5')](_0x340ebf,_0x3660('0x147'));for(const {suggestion:_0x1e517a,meta:_0x5d7769}of _0x272385){const _0x57f135=this[_0x3660('0x1e')]['createRange'](_0x4dcb2f,_0x513c80);if(_0x5d7769['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5d7769['containsRangeInObject']&&!_0x5d7769['isInsideObject'])){if(_0x1e517a[_0x3660('0x148')]){if(!Pt(_0x1e517a,_0x5e44b7))continue;let _0xa3cb=!0x0;for(const _0x9a52a of _0x1e517a[_0x3660('0xd4')]()){if(_0x9a52a[_0x3660('0x4a')](_0x57f135,!0x0))return _0x1e517a;_0x57f135[_0x3660('0x4a')](_0x9a52a)||(_0xa3cb=!0x1);}_0xa3cb&&_0x1e517a[_0x3660('0x78')]();}else{const _0x25cf2d=_0x1e517a[_0x3660('0x3f')]();if(_0x25cf2d[_0x3660('0x4a')](_0x57f135,!0x0))return _0x1e517a;if(!Pt(_0x1e517a,_0x5e44b7)){_0x57f135[_0x3660('0x4a')](_0x25cf2d)?_0x1e517a['removeMarkers']():_0x25cf2d[_0x3660('0x2e')](_0x4dcb2f)?_0x4dcb2f=_0x25cf2d[_0x3660('0xff')]:_0x25cf2d[_0x3660('0x2e')](_0x513c80)&&(_0x513c80=_0x25cf2d[_0x3660('0x8')]);continue;}_0x4dcb2f=_0x4dcb2f[_0x3660('0x67')](_0x25cf2d[_0x3660('0x8')])?_0x4dcb2f:_0x25cf2d['start'],_0x513c80=_0x513c80[_0x3660('0x7e')](_0x25cf2d[_0x3660('0xff')])?_0x513c80:_0x25cf2d[_0x3660('0xff')],_0x5e44b7=Object['assign']({},_0x1e517a[_0x3660('0x11b')]),_0x527b8b?_0x25cf2d[_0x3660('0x8')][_0x3660('0x67')](_0x527b8b['getFirstRange']()[_0x3660('0x8')])?(_0x527b8b[_0x3660('0x132')](),_0x527b8b=_0x1e517a):_0x1e517a[_0x3660('0x132')]():_0x527b8b=_0x1e517a;}}}if(_0x527b8b)return this[_0x3660('0x119')](_0x527b8b,this[_0x3660('0x1e')][_0x3660('0x141')](_0x4dcb2f,_0x513c80)),_0x527b8b;{const _0x32deb0=_0x1999fc(),_0x5982da=this[_0x3660('0x1e')]['createRange'](_0x4dcb2f,_0x513c80),_0x41cbe0=_0x469a30['id'],_0x572d4a=_0x331e07?_0x3660('0xd3')+_0x331e07:_0x3660('0x147'),_0x34274c=this[_0x3660('0xe7')]({'id':_0x32deb0,'type':_0x572d4a,'createdAt':new Date(),'authorId':_0x41cbe0,'attributes':_0x5e44b7});return this[_0x3660('0x162')](_0x572d4a,_0x32deb0,_0x41cbe0,_0x5982da),_0x34274c;}}[_0x3660('0x5e')](_0x4c9059,_0x224774='multi',_0x2b61ab={}){const _0x3c3ec4=this['editor']['plugins']['get'](_0x3660('0x59'))['me'],_0x463539=_0x4c9059[_0x3660('0xf4')](_0x15d52a=>new _0x29f361(_0x15d52a['start'],_0x15d52a[_0x3660('0xff')])),_0xa94b18=new Set();for(const {suggestion:_0x2f95cf,meta:_0x3e1ac7}of this[_0x3660('0xe5')](_0x463539,_0x3660('0xba')))_0x3e1ac7[_0x3660('0x9c')]&&!_0x3e1ac7[_0x3660('0xfe')]&&_0xa94b18[_0x3660('0x21')](_0x2f95cf);for(const _0x1777b4 of _0xa94b18)if(_0x1777b4[_0x3660('0x148')]){const _0x913fbb=_0x1777b4['getRanges']();(!_0x1777b4['attributes']||!_0x1777b4[_0x3660('0x11b')][_0x3660('0x31')])&&(_0x913fbb[_0x3660('0x6e')](_0x5dea0d=>_0x463539[_0x3660('0x11d')](_0x584a9e=>_0x584a9e[_0x3660('0x4a')](_0x5dea0d,!0x0)))&&_0x1777b4['discard']());if(_0x463539[_0x3660('0x6e')](_0x175cb9=>_0x913fbb['some'](_0x61e729=>_0x61e729['containsRange'](_0x175cb9,!0x0)))){const _0x28ba67=this[_0x3660('0x179')][_0x3660('0x5f')]('deletion',_0x224774,_0x3660('0xa2'));return this[_0x3660('0xf6')](()=>_0x28ba67(_0x4c9059,null,_0x2b61ab)),null;}}else{const _0x5d2eb3=_0x1777b4[_0x3660('0x3f')]();_0x463539[_0x3660('0x11d')](_0x323275=>_0x323275[_0x3660('0x4a')](_0x5d2eb3,!0x0))&&_0x1777b4[_0x3660('0x78')]();if(_0x463539[_0x3660('0x6e')](_0x5346a2=>_0x5d2eb3[_0x3660('0x4a')](_0x5346a2,!0x0))){const _0x3d4898=this[_0x3660('0x179')][_0x3660('0x5f')](_0x3660('0x147'),_0x224774,'accept');return this['forceDefaultExecution'](()=>_0x3d4898(_0x463539,null,_0x2b61ab)),null;}}const _0x28251f=this[_0x3660('0x179')][_0x3660('0x5f')](_0x3660('0x147'),_0x224774,_0x3660('0x4e'));let _0x193f7f=null;for(const _0x240375 of this[_0x3660('0x102')]())if(_0x240375[_0x3660('0x150')]['id']==_0x3c3ec4['id']&&_0x240375[_0x3660('0x118')]&&_0x3660('0x147')==_0x240375[_0x3660('0x55')]&&_0x240375[_0x3660('0x130')]==_0x224774&&Pt(_0x240375,_0x2b61ab)&&(_0x28251f(_0x240375[_0x3660('0xd4')](),_0x463539)||_0x28251f(_0x463539,_0x240375[_0x3660('0xd4')]()))){if(_0x193f7f){if(_0x240375[_0x3660('0x105')]&&_0x240375[_0x3660('0x105')][_0x3660('0x39')])continue;for(const _0x1bfb53 of _0x240375['getRanges']())_0x193f7f[_0x3660('0x95')](_0x1bfb53)||_0x193f7f[_0x3660('0x72')](_0x1bfb53);_0x240375['removeMarkers']();}else{_0x193f7f=_0x240375;for(const _0x58d42a of _0x463539)_0x240375[_0x3660('0x95')](_0x58d42a)||_0x240375[_0x3660('0x72')](_0x58d42a);}}if(_0x193f7f)return _0x193f7f;_0xa94b18[_0x3660('0x14b')]();for(const {suggestion:_0x3e9404,meta:_0x5cdda8}of this[_0x3660('0xe5')](_0x463539,_0x3660('0x147')))_0x5cdda8['isOwn']&&(this[_0x3660('0xb6')]||!_0x5cdda8[_0x3660('0xfb')]&&!_0x5cdda8[_0x3660('0x2c')])&&Pt(_0x3e9404,_0x2b61ab)&&_0xa94b18['add'](_0x3e9404);for(const _0x3d84fe of _0xa94b18){const _0x482d36=_0x3d84fe[_0x3660('0xd4')]();if(!_0x2b61ab||!_0x2b61ab[_0x3660('0x31')]){if(_0x463539[_0x3660('0x6e')](_0x5422b3=>_0x482d36[_0x3660('0x11d')](_0x4c8467=>_0x4c8467[_0x3660('0x4a')](_0x5422b3,!0x0))))return _0x3d84fe;}(!_0x3d84fe[_0x3660('0x11b')]||!_0x3d84fe[_0x3660('0x11b')][_0x3660('0x31')])&&(_0x482d36[_0x3660('0x6e')](_0xee7939=>_0x463539[_0x3660('0x11d')](_0x5e0fe0=>_0x5e0fe0[_0x3660('0x4a')](_0xee7939,!0x0)))&&_0x3d84fe[_0x3660('0x78')]());}const _0x1eac5d=_0x1999fc(),_0x29526d=_0x3c3ec4['id'],_0x1f4a34=_0x3660('0xd3')+_0x224774,_0x12e042=this[_0x3660('0xe7')]({'id':_0x1eac5d,'type':_0x1f4a34,'createdAt':new Date(),'authorId':_0x29526d,'attributes':_0x2b61ab});for(const _0x38b69a of _0x463539)_0x38b69a['detach'](),_0x38b69a[_0x3660('0x96')]||'$graveyard'==_0x38b69a[_0x3660('0x164')]['rootName']||this[_0x3660('0x162')](_0x1f4a34,_0x1eac5d,_0x29526d,_0x38b69a,_0x28cade[_0x3660('0x3d')]());return _0x12e042;}[_0x3660('0x7b')](_0x595993,_0x21e99b,_0xca3a6b,_0x2544d7,_0x4989c8){if(_0x595993[_0x3660('0x96')])return[];if(_0x3660('0x117')===this['_trackFormatChanges'])return[];const _0x15f573=this[_0x3660('0xb4')][_0x3660('0x17f')][_0x3660('0x93')](_0x3660('0x59'))['me']['id'],_0x21a7ea=Array[_0x3660('0x181')](this[_0x3660('0x15e')][_0x3660('0x180')]())[_0x3660('0x172')](_0x42d0cf=>'attribute'==_0x42d0cf[_0x3660('0x55')]&&_0x42d0cf[_0x3660('0x133')][_0x3660('0x50')]==_0x21e99b&&_0x42d0cf[_0x3660('0x95')](_0x595993));if('default'===this[_0x3660('0x124')]){const _0x2ccc4d=this[_0x3660('0xe5')](_0x595993,'insertion')[_0x3660('0x172')](({meta:_0x153b8b})=>_0x153b8b[_0x3660('0x9c')]&&!_0x153b8b[_0x3660('0x2c')]&&!_0x153b8b[_0x3660('0xfe')])[_0x3660('0xf4')](({suggestion:_0x2599f3})=>_0x2599f3);_0x21a7ea[_0x3660('0xa0')](..._0x2ccc4d);}const _0x3a3198=new Map([[_0x595993,_0xca3a6b]]);for(const _0xcd0994 of _0x21a7ea){const _0x30b83b=_0x3660('0x10e')==_0xcd0994['type']?_0xcd0994[_0x3660('0x133')]['oldValue']:void 0x0,_0x3c68b8=_0xcd0994['getFirstRange'](),_0x3e59ae=Array['from'](_0x3a3198[_0x3660('0x2b')]())['find'](_0x2add57=>_0x2add57[_0x3660('0x154')](_0x3c68b8));if(!_0x3e59ae)continue;const _0x3432ad=_0x3e59ae[_0x3660('0x6d')](_0x3c68b8);this['_isBlockAttribute'](_0x21e99b)&&'insertion'==_0xcd0994[_0x3660('0x55')]&&0x0!=_0x3432ad[_0x3660('0x39')]||(_0x3a3198[_0x3660('0xc6')](_0x3e59ae),_0x3432ad['forEach'](_0x23f657=>{_0x3a3198[_0x3660('0xd6')](_0x23f657,_0xca3a6b);}),_0x3660('0xba')!=_0xcd0994[_0x3660('0x55')]&&_0x30b83b!=_0x2544d7&&_0x3a3198[_0x3660('0xd6')](_0x3e59ae[_0x3660('0xb7')](_0x3c68b8),_0x30b83b));}const _0x98fb35=[];for(const [_0x343702,_0x4997d6]of _0x3a3198){const _0x56df48=_0x1999fc(),_0x44e2d0={'key':_0x21e99b,'oldValue':_0x4997d6,'newValue':_0x2544d7};_0x21e99b['length']>0x25&&console['warn'](_0x3660('0x12e'),{'key':_0x21e99b});const _0x1e9373=(_0x3660('0xe0')+(_0x21e99b+'|'+Et({'newValue':_0x2544d7})))[_0x3660('0xdd')](0x0,0x3c),_0x51f0d6=this['_setSuggestionData']({'id':_0x56df48,'type':_0x1e9373,'data':_0x44e2d0,'createdAt':new Date(),'authorId':_0x15f573,'attributes':_0x4989c8});_0x98fb35[_0x3660('0xb9')](_0x51f0d6),this['_addSuggestionMarker'](_0x1e9373,_0x56df48,_0x15f573,_0x343702);}return _0x98fb35;}[_0x3660('0x13d')](_0xd89d55){this[_0x3660('0x157')][_0x3660('0x21')](_0xd89d55);}[_0x3660('0x47')](_0x3c5447){this[_0x3660('0x85')][_0x3660('0x21')](_0x3c5447);}['_enableDefaultAttributesIntegration'](_0x2e6462,_0x35f095=[],_0x2942d8=[]){this[_0x3660('0x156')](_0x2e6462,(_0x1b39bc,..._0x11a252)=>{this[_0x3660('0x28')](()=>{_0x1b39bc(..._0x11a252);});});for(const _0xaa6106 of _0x35f095)this['_registerInlineAttribute'](_0xaa6106);for(const _0x3a3591 of _0x2942d8)this[_0x3660('0x13d')](_0x3a3591);}['_getAttributeKey'](_0x536ab3){return'attribute'==_0x536ab3[_0x3660('0x55')]?_0x536ab3[_0x3660('0x130')][_0x3660('0x138')]('|')[0x0]:null;}['_setSuggestionRange'](_0x376f2f,_0x33975c){const _0x1e388d=_0x376f2f[_0x3660('0xa5')]();this['_model'][_0x3660('0x4')](_0x1b82ad=>{_0x1b82ad['updateMarker'](_0x1e388d,{'range':_0x33975c});});}[_0x3660('0x94')](_0x5aa578){const _0x26c98f=_0x5aa578['id'],_0x6642a8=this[_0x3660('0xb4')]['config']['get'](_0x3660('0x166'));this[_0x3660('0x15f')]['hasCommentThread'](_0x26c98f)||this[_0x3660('0x15f')][_0x3660('0x129')]({'channelId':_0x6642a8,'threadId':_0x26c98f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f7485=this[_0x3660('0x15f')][_0x3660('0x9d')](_0x26c98f);_0x1f7485['unbind']('isRemovable'),_0x1f7485[_0x3660('0x9a')]=!0x1,_0x5aa578[_0x3660('0x105')]=_0x1f7485;}['_checkSuggestionCorrectness'](_0x58c9a9,_0x30b246,_0x187c88,_0x230d02){if(_0x58c9a9['type']!=_0x30b246||_0x58c9a9[_0x3660('0x130')]!=_0x187c88||_0x58c9a9[_0x3660('0x126')]['id']!=_0x230d02)throw this[_0x3660('0xb4')]['enableReadOnlyMode'](_0x3660('0xd2')),new _0x235f7d(_0x3660('0xd2'),this);}[_0x3660('0xd')](_0x3ccc5f,_0x1ee935){const _0x38c9dd=_0x3ccc5f[_0x3660('0x3f')]();if(_0x1ee935['isEqual'](_0x38c9dd))_0x3ccc5f['removeMarkers']();else{if(_0x38c9dd[_0x3660('0x4a')](_0x1ee935)){const _0x2dc176=this['_model'][_0x3660('0x10f')](_0x1ee935[_0x3660('0x8')][_0x3660('0xe3')],_0x3660('0xff'));this['_setSuggestionRange'](_0x3ccc5f,this[_0x3660('0x1e')][_0x3660('0x141')](_0x38c9dd[_0x3660('0x8')],_0x2dc176));const _0x4e88ba=_0x1999fc(),_0x475280=_0x3ccc5f['creator']['id'],_0x263349=_0x3ccc5f[_0x3660('0x55')]+':'+_0x3ccc5f[_0x3660('0x130')];this[_0x3660('0xe7')]({'id':_0x4e88ba,'type':_0x263349,'createdAt':new Date(),'authorId':_0x475280,'data':_0x3ccc5f[_0x3660('0x133')],'attributes':_0x3ccc5f[_0x3660('0x11b')]});const _0x4e81a7=this[_0x3660('0x1e')][_0x3660('0x10f')](_0x1ee935[_0x3660('0xff')]['parent'],_0x3660('0x114')),_0x5b1cf4=this['_model'][_0x3660('0x141')](_0x4e81a7,_0x38c9dd[_0x3660('0xff')]);this[_0x3660('0x162')](_0x263349,_0x4e88ba,_0x475280,_0x5b1cf4);}else{if(_0x38c9dd['containsPosition'](_0x1ee935['start'])){const _0x1a63dd=this[_0x3660('0x1e')][_0x3660('0x10f')](_0x1ee935[_0x3660('0x8')][_0x3660('0xe3')],_0x3660('0xff'));this[_0x3660('0x119')](_0x3ccc5f,this[_0x3660('0x1e')][_0x3660('0x141')](_0x38c9dd[_0x3660('0x8')],_0x1a63dd));}else{const _0x369f90=this[_0x3660('0x1e')][_0x3660('0x10f')](_0x1ee935[_0x3660('0xff')][_0x3660('0x91')],'after');this[_0x3660('0x119')](_0x3ccc5f,this[_0x3660('0x1e')][_0x3660('0x141')](_0x369f90,_0x38c9dd['end']));}}}}[_0x3660('0xaf')](_0x26607f){for(const {suggestion:_0x167d68,meta:_0x16f3d5}of this[_0x3660('0xe5')](_0x26607f,_0x3660('0xba'))){if(!_0x16f3d5[_0x3660('0x9c')])continue;const _0x27228a=_0x167d68['getRanges']();for(const _0xa87d05 of _0x27228a)if(!_0x26607f[_0x3660('0x6d')](_0xa87d05)['length'])return!0x0;}return!0x1;}[_0x3660('0x16f')](_0x497d45){const _0x1aa030=this[_0x3660('0xb4')]['plugins'][_0x3660('0x93')](_0x3660('0x59'))[_0x3660('0xbd')](_0x497d45);if(!_0x1aa030)throw new _0x235f7d(_0x3660('0xd1'),this);return _0x1aa030;}[_0x3660('0x3a')](_0x5db9a1){const _0x4b1865=this[_0x3660('0xb4')]['plugins'][_0x3660('0x93')](_0x3660('0x59')),_0x2a6c79=_0x41b87a(_0x3660('0x168')+_0x5db9a1),_0x14f429=_0x4b1865[_0x3660('0xbd')](_0x2a6c79);return _0x14f429||_0x4b1865[_0x3660('0x6')]({'id':_0x2a6c79,'name':_0x5db9a1});}[_0x3660('0xde')](_0x1b3dc3,_0x15353a,_0x277a4e,_0x292ddf,_0x473278){const _0x1ea9cf=this[_0x3660('0x16f')](_0x292ddf),_0x1bb945=this[_0x3660('0x179')][_0x3660('0x16')](_0x1b3dc3,_0x15353a,_0x277a4e,_0x1ea9cf,_0x473278,_0x410bb2=>{this[_0x3660('0x108')](_0x277a4e,{'attributes':_0x410bb2});const _0x29a743=this[_0x3660('0xc4')](_0x277a4e);this[_0x3660('0x87')](new Set([_0x29a743])),this[_0x3660('0xe9')](new Set([_0x29a743]));});return this[_0x3660('0x0')](_0x1bb945,_0x3660('0xa2'),()=>{this['_updateSuggestionData'](_0x277a4e,{'state':_0x3660('0xa1')});},{'priority':_0x3660('0x176')}),this[_0x3660('0x0')](_0x1bb945,_0x3660('0x78'),()=>{this[_0x3660('0x108')](_0x277a4e,{'state':_0x3660('0x1d')});},{'priority':_0x3660('0x176')}),this[_0x3660('0x15e')][_0x3660('0xd6')](_0x277a4e,_0x1bb945),this[_0x3660('0xf8')]['set'](_0x1bb945,'notReady'),_0x1bb945;}[_0x3660('0x13e')](_0x4b634d){const _0x4092d8=_0x4b634d[_0x3660('0x138')](':');return{'group':_0x4092d8[0x0],'type':_0x4092d8[0x1],'subType':_0x4092d8['length']>=0x5?_0x4092d8[0x2]:null,'id':_0x4092d8['length']<0x5?_0x4092d8[0x2]:_0x4092d8[0x3],'authorId':_0x4092d8[_0x3660('0x39')]<0x5?_0x4092d8[0x3]:_0x4092d8[0x4],'markerCount':0x6==_0x4092d8[_0x3660('0x39')]?_0x4092d8[0x5]:null};}[_0x3660('0x98')](_0x2ded4a,_0xdb0f85,_0x233a52){const _0x5563da=_0x2ded4a[_0x3660('0x3f')](),_0x5176e8=_0x5563da[_0x3660('0x8')],_0x3a076f=_0x5563da['end'];this[_0x3660('0x119')](_0x2ded4a,this[_0x3660('0x1e')]['createRange'](_0x5176e8,_0xdb0f85));const _0x57fbd9=_0x1999fc(),_0x26f2d2=_0x2ded4a['creator']['id'],_0x34ce37=_0x2ded4a['type']+(_0x2ded4a[_0x3660('0x130')]?':'+_0x2ded4a[_0x3660('0x130')]:'');this[_0x3660('0xe7')]({'id':_0x57fbd9,'type':_0x34ce37,'createdAt':new Date(),'authorId':_0x26f2d2,'originalSuggestionId':_0x2ded4a['id'],'attributes':_0x2ded4a[_0x3660('0x11b')],'data':_0x2ded4a['data']});const _0x2b515e=this[_0x3660('0x11c')](_0x2ded4a);(_0x3660('0xae')==_0x2ded4a[_0x3660('0x55')]||_0x2b515e&&this[_0x3660('0x160')](_0x2b515e))&&(_0x233a52=this[_0x3660('0x1e')][_0x3660('0x146')](_0x233a52[_0x3660('0x91')])),this[_0x3660('0x162')](_0x34ce37,_0x57fbd9,_0x26f2d2,this[_0x3660('0x1e')][_0x3660('0x141')](_0x233a52,_0x3a076f));}[_0x3660('0xe5')](_0x227665,_0x44ac2c=null){const _0x1334c6=[],_0x4fa32f=this[_0x3660('0xb4')][_0x3660('0x17f')][_0x3660('0x93')](_0x3660('0x59'))['me'];Array[_0x3660('0x12a')](_0x227665)||(_0x227665=[_0x227665]);for(const _0x5afd12 of this['getSuggestions']()){if(!_0x5afd12[_0x3660('0x118')])continue;if(_0x44ac2c&&_0x5afd12[_0x3660('0x55')]!=_0x44ac2c)continue;let _0x325a0f=!0x1;for(const _0x124085 of _0x5afd12[_0x3660('0xd4')]()){for(const _0x3dc99c of _0x227665){const _0x55d047=_0x3dc99c['start'][_0x3660('0xd7')](_0x124085['end'])||_0x3dc99c[_0x3660('0xff')][_0x3660('0xd7')](_0x124085['start']);if(_0x55d047||_0x3dc99c['getIntersection'](_0x124085)){const _0x5f2cc5=_0x3dc99c[_0x3660('0x4a')](_0x124085)&&xt(this['_model'][_0x3660('0x89')],_0x124085[_0x3660('0x8')],_0x3dc99c),_0x3a47b8=_0x124085['containsRange'](_0x3dc99c)&&xt(this[_0x3660('0x1e')][_0x3660('0x89')],_0x3dc99c[_0x3660('0x8')],_0x124085);_0x1334c6[_0x3660('0xb9')]({'suggestion':_0x5afd12,'meta':{'isOwn':_0x4fa32f==_0x5afd12[_0x3660('0x150')],'isNextTo':_0x55d047,'isInsideObject':_0x5f2cc5,'containsRangeInObject':_0x3a47b8}}),_0x325a0f=!0x0;break;}}if(_0x325a0f)break;}}return _0x1334c6;}[_0x3660('0x162')](_0x4d73f4,_0x3707db,_0x99fadc,_0x567ba0,_0x4a8f93){this[_0x3660('0x1e')]['change'](_0x20f73b=>{let _0xc752da=_0x3660('0x101')+_0x4d73f4+':'+_0x3707db+':'+_0x99fadc;_0x4a8f93&&(_0xc752da=_0xc752da+':'+_0x4a8f93),_0x20f73b[_0x3660('0x135')](_0xc752da,{'range':_0x567ba0,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3660('0x76')](_0x5acd81){const _0xe2924a=_0x5acd81[_0x3660('0x100')],_0x5ef15d=_0x5acd81['next'];_0x5acd81[_0x3660('0x100')]=null,_0x5acd81[_0x3660('0x74')]=null,null!=_0xe2924a&&_0xe2924a['next']==_0x5acd81&&(_0xe2924a['next']=_0x5ef15d),null!=_0x5ef15d&&_0x5ef15d[_0x3660('0x100')]==_0x5acd81&&(_0x5ef15d['previous']=_0xe2924a),_0x3660('0x7c')==this[_0x3660('0xf8')][_0x3660('0x93')](_0x5acd81)&&(this[_0x3660('0xf8')][_0x3660('0xd6')](_0x5acd81,_0x3660('0x16e')),this[_0x3660('0x9e')](_0x3660('0x6a'),_0x5acd81,_0xe2924a,_0x5ef15d));}[_0x3660('0xe7')](_0x192da2){const _0x302e80=_0x192da2['id'],_0x15e387=this[_0x3660('0x173')](_0x192da2);if(this[_0x3660('0x23')]&&this[_0x3660('0x23')][_0x3660('0x64')]){const _0x525789=this[_0x3660('0xb4')][_0x3660('0x17f')]['get'](_0x3660('0x104')),_0x3260a4=_0x15e387[_0x3660('0xb')],_0xb61b05=_0x15e387[_0x3660('0x130')]?_0x15e387['type']+':'+_0x15e387[_0x3660('0x130')]:_0x15e387[_0x3660('0x55')],_0x127425=this[_0x3660('0xb4')][_0x3660('0x17')],_0x33b9a7=_0x525789[_0x3660('0x21')](_0x5e26b6(_0x127425,'PENDING_ACTION_SUGGESTION')),_0xa02902={'id':_0x302e80,'type':_0xb61b05,'hasComments':_0x3260a4,'data':_0x192da2[_0x3660('0x133')]||null,'originalSuggestionId':_0x192da2[_0x3660('0xd0')]||null,'attributes':_0x15e387[_0x3660('0x11b')]};this[_0x3660('0x23')][_0x3660('0x64')](_0xa02902)['then'](_0x4c9e1b=>{_0x15e387[_0x3660('0xf1')]=!0x0,_0x525789[_0x3660('0x40')](_0x33b9a7),_0x4c9e1b&&_0x4c9e1b['createdAt']&&(this[_0x3660('0x15e')][_0x3660('0x93')](_0x302e80)['createdAt']=_0x4c9e1b[_0x3660('0x3')]);})[_0x3660('0x177')](_0x51f5a5=>{throw _0x439b7d(_0x3660('0xd9')),this['editor'][_0x3660('0x5a')][_0x3660('0x8e')]({'isUndoable':!0x1},()=>{_0x15e387['discard']();}),_0x15e387[_0x3660('0x43')](),this['_suggestions'][_0x3660('0xc6')](_0x15e387['id']),this[_0x3660('0xf8')]['delete'](_0x15e387),_0x51f5a5;});}return _0x15e387;}['_isBlockAttribute'](_0x3a60a8){return this[_0x3660('0x157')][_0x3660('0xc2')](_0x3a60a8);}[_0x3660('0x108')](_0x33e9b9,_0xe12608){const _0x636d63=this[_0x3660('0xb4')][_0x3660('0x17f')][_0x3660('0x93')]('PendingActions'),_0x4b5307=this[_0x3660('0xc4')](_0x33e9b9);if(this[_0x3660('0x23')]&&this[_0x3660('0x23')]['updateSuggestion']){if(_0x4b5307[_0x3660('0xf1')]){const _0x4c11cf=_0x636d63[_0x3660('0x21')](_0x5e26b6(this[_0x3660('0xb4')]['locale'],_0x3660('0x56')));this[_0x3660('0x23')][_0x3660('0x54')](_0x33e9b9,_0xe12608)[_0x3660('0x86')](()=>{_0x636d63[_0x3660('0x40')](_0x4c11cf);});}else _0x4b5307['on'](_0x3660('0x167'),()=>{this[_0x3660('0x108')](_0x33e9b9,_0xe12608);});}}[_0x3660('0xb0')](_0x4fa32a){if(!this[_0x3660('0x23')]||!this[_0x3660('0x23')]['getSuggestion'])throw new _0x235f7d(_0x3660('0x11f'),this);return this[_0x3660('0x23')][_0x3660('0xc4')](_0x4fa32a);}[_0x3660('0x4c')](_0x5309b8){const {id:_0x9e596,type:_0x7cbf0a,subType:_0x1cf6ef,authorId:_0x3812f8}=this[_0x3660('0x13e')](_0x5309b8),_0x2d6d25=this[_0x3660('0x15e')][_0x3660('0x93')](_0x9e596)||this[_0x3660('0xde')](_0x7cbf0a,_0x1cf6ef,_0x9e596,_0x3812f8,{});switch(this['_checkSuggestionCorrectness'](_0x2d6d25,_0x7cbf0a,_0x1cf6ef,_0x3812f8),this['_suggestionState'][_0x3660('0x93')](_0x2d6d25)){case _0x3660('0x111'):this['_getSuggestionData'](_0x9e596)[_0x3660('0x86')](_0x5bb422=>{let _0x2caae3=Promise[_0x3660('0x149')]();_0x5bb422[_0x3660('0xb')]&&(_0x2caae3=this[_0x3660('0x15f')]['fetchCommentThread']({'channelId':this[_0x3660('0xb4')]['config']['get']('collaboration.channelId'),'threadId':_0x9e596})),_0x2caae3[_0x3660('0x86')](()=>{this[_0x3660('0x173')](_0x5bb422)[_0x3660('0xf1')]=!0x0;});}),this[_0x3660('0xf8')][_0x3660('0xd6')](_0x2d6d25,_0x3660('0xef'));break;case _0x3660('0x16e'):this[_0x3660('0x108')](_0x9e596,{'state':_0x3660('0x7f')});case _0x3660('0x128'):this[_0x3660('0xf8')][_0x3660('0xd6')](_0x2d6d25,_0x3660('0x7c')),this[_0x3660('0x9e')](_0x3660('0x116'),_0x2d6d25);break;case _0x3660('0x7c'):this[_0x3660('0x9e')](_0x3660('0x10d'),_0x2d6d25);}return _0x2d6d25['addMarkerName'](_0x5309b8),_0x2d6d25;}[_0x3660('0xe9')](_0xe59247){const _0x4daa65=Array[_0x3660('0x181')](_0xe59247),_0xbaf9db=_0x4daa65[_0x3660('0x172')](_0x110105=>_0x3660('0x10e')==_0x110105[_0x3660('0x55')]);this['_refreshAttributeSuggestionsChain'](_0xbaf9db);const _0x5b5342=_0x4daa65[_0x3660('0x172')](_0x19c7e4=>!_0x19c7e4[_0x3660('0x148')]&&_0x3660('0x10e')!=_0x19c7e4[_0x3660('0x55')]),_0x13b6e0=this[_0x3660('0x102')]({'skipNotAttached':!0x0})[_0x3660('0x172')](_0x389f0f=>!_0x389f0f[_0x3660('0x148')]&&'attribute'!=_0x389f0f[_0x3660('0x55')]),_0x32e2ef=_0x13b6e0[_0x3660('0x172')](_0x58f385=>!_0xe59247['has'](_0x58f385)),_0x1b00e4=new Map(_0x13b6e0[_0x3660('0xf4')](_0x3dcbcb=>[_0x3dcbcb,this['_suggestionFactory']['getSuggestionCallback'](_0x3dcbcb['type'],_0x3dcbcb['subType'],_0x3660('0xcb'))])),_0x280af0=new Map(_0x13b6e0[_0x3660('0xf4')](_0x961b69=>[_0x961b69,_0x961b69[_0x3660('0x3f')]()])),_0x49cee1=new Set(),_0x31a311=new Set();for(let _0x2a09f8=0x0;_0x2a09f8<_0x5b5342['length'];_0x2a09f8++)_0x359baa(_0x5b5342[_0x2a09f8],_0x5b5342,_0x2a09f8+0x1);for(let _0x400576=0x0;_0x400576<_0x5b5342[_0x3660('0x39')];_0x400576++)_0x359baa(_0x5b5342[_0x400576],_0x32e2ef,0x0);const _0x57ccec=new Set();for(let _0x404511=0x0;_0x404511<_0x5b5342[_0x3660('0x39')];_0x404511++){const _0x315860=_0x5b5342[_0x404511];!_0x31a311['has'](_0x315860)&&_0x315860[_0x3660('0x100')]&&(_0x57ccec[_0x3660('0x21')](_0x315860[_0x3660('0x100')]),_0x315860[_0x3660('0x100')][_0x3660('0x74')]===_0x315860&&(_0x315860[_0x3660('0x100')]['next']=null),_0x315860[_0x3660('0x100')]=null),!_0x49cee1[_0x3660('0xc2')](_0x315860)&&_0x315860[_0x3660('0x74')]&&(_0x57ccec[_0x3660('0x21')](_0x315860['next']),_0x315860[_0x3660('0x74')]['previous']===_0x315860&&(_0x315860[_0x3660('0x74')]['previous']=null),_0x315860[_0x3660('0x74')]=null);}function _0x359baa(_0x3eb6fe,_0x1c6968,_0x74d4f5){for(let _0x16142b=_0x74d4f5;_0x16142b<_0x1c6968[_0x3660('0x39')];_0x16142b++){const _0x33205c=_0x197c1a(_0x3eb6fe,_0x1c6968[_0x16142b]);_0x33205c&&(_0x33205c[0x0]['next']=_0x33205c[0x1],_0x33205c[0x1][_0x3660('0x100')]=_0x33205c[0x0],_0x49cee1['add'](_0x33205c[0x0]),_0x31a311[_0x3660('0x21')](_0x33205c[0x1]));}}function _0x197c1a(_0xe24c1f,_0x2f2249){if(_0xe24c1f[_0x3660('0x150')]['id']!==_0x2f2249[_0x3660('0x150')]['id'])return null;const _0x4f92f8=_0x1b00e4[_0x3660('0x93')](_0xe24c1f)(_0xe24c1f,_0x2f2249,_0x280af0[_0x3660('0x93')](_0xe24c1f),_0x280af0['get'](_0x2f2249));if(!_0x4f92f8)return null;return _0x1b00e4['get'](_0x2f2249)(_0xe24c1f,_0x2f2249,_0x280af0[_0x3660('0x93')](_0xe24c1f),_0x280af0[_0x3660('0x93')](_0x2f2249))?_0x4f92f8[0x1][_0x3660('0x105')]&&_0x4f92f8[0x1][_0x3660('0x105')]['length']?null:_0x4f92f8:null;}_0x57ccec[_0x3660('0x90')]&&this['_refreshSuggestionsChain'](_0x57ccec);}[_0x3660('0xdf')](_0x273749){if(0x0==_0x273749[_0x3660('0x39')])return;const _0x50f055=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1119c9=>_0x3660('0x10e')==_0x1119c9[_0x3660('0x55')]&&_0x1119c9[_0x3660('0xc1')]),_0x513b46=[],_0x3885ec=new Map();for(const _0xd0089a of _0x50f055){const _0x3fcd60=_0x41b87a(_0xd0089a[_0x3660('0x11b')]);_0x3885ec[_0x3660('0xc2')](_0x3fcd60)||(_0x3885ec[_0x3660('0xd6')](_0x3fcd60,_0x513b46['length']),_0x513b46['push']([]));const _0x2039ac=_0x3885ec['get'](_0x3fcd60);_0x513b46[_0x2039ac][_0x3660('0xb9')](_0xd0089a);}!function(){_0x513b46[_0x3660('0x169')]((_0x299e97,_0x59901)=>{const _0x31b961=_0x299e97[0x0]['createdAt'],_0x245c16=_0x59901[0x0][_0x3660('0x3')];return _0x31b961==_0x245c16?_0x299e97[0x0]['attributes'][_0x3660('0x15d')]<_0x59901[0x0]['attributes'][_0x3660('0x15d')]?-0x1:0x1:_0x31b961<_0x245c16?-0x1:0x1;});for(const _0x34dd7f of _0x513b46)_0x34dd7f['sort']((_0x55da8e,_0x3c9208)=>_0x55da8e['id']<_0x3c9208['id']?-0x1:0x1);}();for(let _0x2d5f83=0x0;_0x2d5f83<_0x513b46['length'];_0x2d5f83++){if(0x0==_0x513b46[_0x2d5f83][_0x3660('0x39')])continue;const _0x2f3f1b=[];for(let _0x250fee=_0x2d5f83+0x1;_0x250fee<_0x513b46['length'];_0x250fee++)0x0!=_0x513b46[_0x250fee][_0x3660('0x39')]&&_0x2be9c5(_0x513b46[_0x2d5f83],_0x513b46[_0x250fee])&&_0x2f3f1b[_0x3660('0xb9')](_0x250fee);for(const _0x2e607f of _0x2f3f1b)_0x513b46[_0x2d5f83]=_0x513b46[_0x2d5f83][_0x3660('0x140')](_0x513b46[_0x2e607f]),_0x513b46[_0x2e607f]=[];}for(const _0x219b8d of _0x513b46)for(let _0x10b082=0x0;_0x10b082<_0x219b8d[_0x3660('0x39')];_0x10b082++)_0x219b8d[_0x10b082][_0x3660('0x74')]=_0x219b8d[_0x10b082+0x1]||null;for(const _0x4b7cf6 of _0x513b46)for(let _0x4dd640=0x0;_0x4dd640<_0x4b7cf6[_0x3660('0x39')];_0x4dd640++)_0x4b7cf6[_0x4dd640][_0x3660('0x100')]=_0x4b7cf6[_0x4dd640-0x1]||null;function _0x2be9c5(_0x5064b5,_0x43bd1c){if(_0x5064b5[0x0][_0x3660('0x11b')]['groupId']!==_0x43bd1c[0x0][_0x3660('0x11b')]['groupId']&&_0x5064b5[0x0]['author']!==_0x43bd1c[0x0][_0x3660('0x150')])return!0x1;if(!function(_0x26209a,_0xe35ffa){if(!_0x26209a[_0x3660('0xb')]&&!_0xe35ffa['hasComments'])return!0x0;if(_0x26209a['hasComments']&&_0xe35ffa[_0x3660('0xb')])return!0x1;if(_0x26209a[_0x3660('0xb')]&&_0xe35ffa[_0x3660('0x3')]<_0x26209a[_0x3660('0x105')]['comments']['get'](0x0)[_0x3660('0x3')])return!0x0;if(_0xe35ffa['hasComments']&&_0x26209a[_0x3660('0x3')]<_0xe35ffa[_0x3660('0x105')]['comments'][_0x3660('0x93')](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5064b5[0x0],_0x43bd1c[0x0]))return!0x1;const _0x373832=_0x23195e(_0x5064b5[0x0]['attributes'],'groupId'),_0x528ead=_0x23195e(_0x43bd1c[0x0][_0x3660('0x11b')],_0x3660('0x15d'));if(!_0x5b572f(_0x373832,_0x528ead))return!0x1;return!!_0x5064b5[_0x3660('0x6e')](_0x49771b=>_0x43bd1c[_0x3660('0x11d')](_0x33d186=>_0x49771b[_0x3660('0x3f')]()[_0x3660('0xd7')](_0x33d186['getFirstRange']())))&&_0x43bd1c['every'](_0x256c48=>_0x5064b5[_0x3660('0x11d')](_0x119bb4=>_0x256c48[_0x3660('0x3f')]()[_0x3660('0xd7')](_0x119bb4[_0x3660('0x3f')]())));}}[_0x3660('0x87')](_0x5d8765){const _0x13cb0f=Array[_0x3660('0x181')](_0x5d8765),_0xbf45af=this[_0x3660('0x102')]({'skipNotAttached':!0x0}),_0x33cfc5=_0xbf45af[_0x3660('0x172')](_0x2f800b=>!_0x5d8765[_0x3660('0xc2')](_0x2f800b)),_0x10754e=new Map(_0x13cb0f[_0x3660('0xf4')](_0x830b8=>[_0x830b8,this[_0x3660('0x179')][_0x3660('0x5f')](_0x830b8[_0x3660('0x55')],_0x830b8[_0x3660('0x130')],_0x3660('0x4e'))])),_0x3dba03=new Map(_0xbf45af[_0x3660('0xf4')](_0x54648c=>[_0x54648c,_0x54648c[_0x3660('0xd4')]()]));for(let _0x1fc81e=0x0;_0x1fc81e<_0x13cb0f[_0x3660('0x39')];_0x1fc81e++){if(_0x45ba3b(this,_0x13cb0f[_0x1fc81e],_0x13cb0f,_0x1fc81e+0x1))return!0x0;}for(let _0x254cb0=0x0;_0x254cb0<_0x13cb0f[_0x3660('0x39')];_0x254cb0++){if(_0x45ba3b(this,_0x13cb0f[_0x254cb0],_0x33cfc5,0x0))return!0x0;}return!0x1;function _0x45ba3b(_0x54a2ab,_0x3cd4d1,_0x3adf0d,_0x5285a4){for(let _0x215ead=_0x5285a4;_0x215ead<_0x3adf0d[_0x3660('0x39')];_0x215ead++){const _0x47bd68=_0x3adf0d[_0x215ead];if(_0x47bd68[_0x3660('0x55')]!==_0x3cd4d1['type']||_0x47bd68[_0x3660('0x150')]['id']!==_0x3cd4d1[_0x3660('0x150')]['id']||_0x47bd68[_0x3660('0x130')]!==_0x3cd4d1['subType'])continue;if(!Ft(_0x3cd4d1,_0x47bd68,[_0x3660('0x15d')]))continue;if(_0x3660('0x10e')==_0x3cd4d1['type']&&_0x3cd4d1['data'][_0x3660('0x16d')]!=_0x47bd68['data'][_0x3660('0x16d')])continue;if('attribute'==_0x3cd4d1[_0x3660('0x55')]&&_0x54a2ab[_0x3660('0x160')](_0x3cd4d1[_0x3660('0x133')]['key']))continue;if('formatBlock'==_0x3cd4d1[_0x3660('0x55')]){const _0x2e7e77=_0x54a2ab[_0x3660('0xb4')]['model'],_0x402f25=_0x3cd4d1[_0x3660('0x171')]();if(_0x402f25&&(_0x2e7e77['schema'][_0x3660('0x152')](_0x402f25)||_0x2e7e77[_0x3660('0x89')]['isLimit'](_0x402f25)))continue;}const _0x206d87=_0x10754e['get'](_0x3cd4d1),_0x49dd8a=_0x3dba03[_0x3660('0x93')](_0x3cd4d1),_0x127ae7=_0x3dba03[_0x3660('0x93')](_0x47bd68),_0x35ac98=_0x3cd4d1['commentThread']&&_0x3cd4d1[_0x3660('0x105')]['length'],_0x24e56a=_0x47bd68[_0x3660('0x105')]&&_0x47bd68['commentThread']['length'];if(!_0x35ac98&&_0x206d87(_0x127ae7,_0x49dd8a))return _0x54a2ab['_joinSuggestions'](_0x47bd68,_0x3cd4d1),_0x3dba03[_0x3660('0xc6')](_0x3cd4d1),!0x0;if(!_0x24e56a&&_0x206d87(_0x49dd8a,_0x127ae7))return _0x54a2ab[_0x3660('0x10a')](_0x3cd4d1,_0x47bd68),_0x3dba03[_0x3660('0xc6')](_0x47bd68),!0x0;}return!0x1;}}['_joinSuggestions'](_0x145200,_0x1c000f){if(_0x145200[_0x3660('0x148')])for(const _0x4764bd of _0x1c000f[_0x3660('0xd4')]())_0x145200['addRange'](_0x4764bd);else{const _0x52e8e8=_0x1c000f[_0x3660('0x3f')]()['end'];this['_setSuggestionRange'](_0x145200,this[_0x3660('0x1e')][_0x3660('0x141')](_0x145200[_0x3660('0x3f')]()['start'],_0x52e8e8));}_0x1c000f[_0x3660('0x132')]();}[_0x3660('0x20')](_0x5d71a0,_0x5d6d75){const _0x338956=_0x5d71a0[_0x3660('0x84')](_0x3660('0xad'))||_0x5d71a0[_0x3660('0x84')](_0x3660('0x10e'))?_0x3660('0x165'):_0x5d71a0[_0x3660('0xa4')]();return _0x5e26b6(this['editor'][_0x3660('0x17')],_0x5d6d75+'_'+_0x338956+_0x3660('0x11'));}[_0x3660('0x142')](){const _0xf77312=this[_0x3660('0xb4')];_0x5605f2(this[_0x3660('0x1e')],({left:_0x458168,entered:_0x11b4b8})=>{const _0x5e6baa=[];for(const _0x45710b of _0x458168){const {group:_0x5aeedf,type:_0xdf1671}=this[_0x3660('0x13e')](_0x45710b[_0x3660('0x183')]);if(_0x3660('0x17c')===_0x5aeedf){_0x5e6baa[_0x3660('0xb9')](this['_getMarkerAnnouncementText'](_0xdf1671,_0x3660('0x5c')));break;}}for(const _0x1de35e of _0x11b4b8){const {group:_0x4728a1,type:_0x103e5d}=this[_0x3660('0x13e')](_0x1de35e[_0x3660('0x183')]);if(_0x3660('0x17c')===_0x4728a1){_0x5e6baa[_0x3660('0xb9')](this[_0x3660('0x20')](_0x103e5d,_0x3660('0x8c')));break;}}_0x5e6baa[_0x3660('0x39')]&&_0xf77312['ui'][_0x3660('0xf3')][_0x3660('0x32')](_0x3660('0xdc'),_0x5e6baa[_0x3660('0x4e')]('\x20'));});}[_0x3660('0x63')](_0x12eb9d){if(this[_0x3660('0x155')])return!0x1;const _0x3aa6e1=this['editor'],_0x4e25df=_0x3aa6e1[_0x3660('0x5a')]['document'][_0x3660('0x73')][_0x3660('0xc8')]();if(0x0==_0x4e25df['length'])return!0x1;const _0x5c4606=[],_0x538c6b=_0x4e25df[_0x3660('0x172')](_0x51a429=>'attribute'==_0x51a429[_0x3660('0x55')]),_0x300e54=_0x4e25df[_0x3660('0x172')](_0x44e8aa=>_0x3660('0xbf')==_0x44e8aa[_0x3660('0x55')]&&_0x3660('0xa7')!=_0x44e8aa['name']),_0x5ac3c8=_0x4e25df[_0x3660('0x172')](_0x1ef221=>_0x3660('0x40')==_0x1ef221['type']&&_0x3660('0xa7')!=_0x1ef221[_0x3660('0x183')]);for(const _0x27940c of _0x538c6b)_0x5c4606[_0x3660('0xb9')]({'key':_0x27940c['attributeKey'],'newValue':_0x27940c['attributeNewValue'],'oldValue':_0x27940c['attributeOldValue'],'range':Ut(_0x27940c[_0x3660('0x15b')],_0x3aa6e1[_0x3660('0x5a')])});for(const _0x3c4a77 of _0x300e54){const _0x33840f=_0x5ac3c8[_0x3660('0x69')](_0x574cc5=>_0x574cc5[_0x3660('0xcc')][_0x3660('0xd7')](_0x3c4a77[_0x3660('0xcc')]));_0x33840f&&_0x5c4606[_0x3660('0xb9')]({'key':_0x3660('0x120'),'newValue':_0x3c4a77[_0x3660('0x183')],'oldValue':_0x33840f[_0x3660('0x183')],'range':_0x3aa6e1[_0x3660('0x5a')]['createRangeOn'](_0x3c4a77[_0x3660('0xcc')][_0x3660('0xb3')])});}return 0x0!=_0x5c4606[_0x3660('0x39')]&&this[_0x3660('0x14f')](_0x12eb9d,_0x5c4606);}[_0x3660('0x13')](_0x3853ec){let _0x37faf2=!0x1;const _0x36e2e0=this['editor'][_0x3660('0x5a')][_0x3660('0x14c')][_0x3660('0x73')]['getChangedMarkers']()['filter'](_0x102005=>_0x102005['data'][_0x3660('0x8f')]&&_0x102005['name'][_0x3660('0x84')](_0x3660('0x159')));for(const _0x5b15c1 of _0x36e2e0){const {subType:_0x7534c3,id:_0x227d4d}=this[_0x3660('0x13e')](_0x5b15c1['name']),_0x4706ca=_0x7534c3[_0x3660('0x138')]('|')[0x0];for(const _0x1b1c08 of this[_0x3660('0x102')]({'skipNotAttached':!0x0}))_0x1b1c08['id']!=_0x227d4d&&_0x3660('0x10e')==_0x1b1c08[_0x3660('0x55')]&&_0x1b1c08[_0x3660('0x133')]&&_0x1b1c08['data']['key']==_0x4706ca&&_0x1b1c08['getFirstRange']()[_0x3660('0x154')](_0x5b15c1[_0x3660('0x133')][_0x3660('0x8f')])&&(this[_0x3660('0xc')](_0x1b1c08,_0x5b15c1[_0x3660('0x133')][_0x3660('0x8f')],_0x3853ec),_0x37faf2=!0x0);}return _0x37faf2;}['_recordAttributeChanges'](_0x2b0f58){this[_0x3660('0xb4')],(this[_0x3660('0x155')]=!0x0,_0x2b0f58());}['_isRegisteredAttribute'](_0x19b59d){const _0x2ce25f=this[_0x3660('0x160')](_0x19b59d),_0x5d2a74=this[_0x3660('0x85')][_0x3660('0xc2')](_0x19b59d);return _0x2ce25f||_0x5d2a74;}[_0x3660('0x14f')](_0x3f50eb,_0x436a24){if(0x0==_0x436a24[_0x3660('0x39')])return!0x1;let _0x5c6cc3=!0x1;for(const _0x29743f of _0x436a24){const _0x3ef0e6=this[_0x3660('0xe5')](_0x29743f['range'],_0x3660('0x10e'))[_0x3660('0x172')](_0x32cd56=>!_0x32cd56[_0x3660('0x79')][_0x3660('0xfe')])[_0x3660('0xf4')](_0x40e7fe=>_0x40e7fe[_0x3660('0x17c')]),_0x23460d=_0x41b87a({'newValue':_0x29743f[_0x3660('0x123')]});_0x3ef0e6[_0x3660('0x172')](_0x12e698=>{const [_0x926103,_0x312de3]=_0x12e698[_0x3660('0x130')][_0x3660('0x138')]('|');return _0x926103==_0x29743f[_0x3660('0x50')]&&_0x312de3!=_0x23460d;})[_0x3660('0x71')](_0x2a4ce7=>{this[_0x3660('0xc')](_0x2a4ce7,_0x29743f[_0x3660('0x15b')],_0x3f50eb),_0x5c6cc3=!0x0;});}return _0x5c6cc3;}['_reduceSuggestionAttributeRange'](_0x1a9c1f,_0x5b7c6b,_0x3b3a34){const _0x2f19fa=_0x1a9c1f[_0x3660('0x3f')]()[_0x3660('0x6d')](_0x5b7c6b);0x0!==_0x2f19fa['length']?0x1!==_0x2f19fa[_0x3660('0x39')]?this['_breakSuggestionMarker'](_0x1a9c1f,_0x5b7c6b[_0x3660('0x8')],_0x5b7c6b[_0x3660('0xff')]):this[_0x3660('0x119')](_0x1a9c1f,_0x2f19fa[0x0]):_0x3b3a34[_0x3660('0x158')](_0x1a9c1f['getFirstMarker']());}}class Bt{constructor(_0x304bdd){this[_0x3660('0x6c')]=_0x304bdd,this[_0x3660('0x1e')]=_0x304bdd[_0x3660('0x5a')],this[_0x3660('0xe4')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x3660('0xbe')]();}[_0x3660('0x16')](_0x1a7192,_0x49a3f6,_0x463e7a,_0x27dd39,_0x3d6985,_0x23fc51){return new _0x28cade(this[_0x3660('0x1e')],{'type':_0x1a7192,'subType':_0x49a3f6,'id':_0x463e7a,'author':_0x27dd39,'creator':_0x27dd39,'attributes':_0x3d6985,'onAttributesChange':_0x23fc51,'onAccept':(..._0x432575)=>this['getSuggestionCallback'](_0x1a7192,_0x49a3f6,_0x3660('0xa2'))(..._0x432575),'onDiscard':(..._0x462797)=>this[_0x3660('0x5f')](_0x1a7192,_0x49a3f6,_0x3660('0x78'))(..._0x462797)});}['registerCustomCallback'](_0x3f6828,_0x51ddd1,_0x303974,_0x360c00){const _0xbf1878=_0x3f6828+':'+_0x51ddd1+':'+_0x303974;this[_0x3660('0xe4')][_0x3660('0xd6')](_0xbf1878,_0x360c00);}[_0x3660('0x5f')](_0x1f976d,_0x57f07d,_0x342eca){const _0x233209=_0x1f976d+':'+_0x57f07d+':'+_0x342eca;return this['_customCallbacks'][_0x3660('0x93')](_0x233209)||this[_0x3660('0x13b')]['get'](_0x1f976d+':'+_0x342eca);}['_registerDefaultCallbacks'](){const _0x47c6a8=()=>!0x1,_0x3c234e=_0x540387=>{_0x540387[_0x3660('0x169')]((_0x59a44b,_0x130ab9)=>_0x59a44b['start'][_0x3660('0x67')](_0x130ab9['start'])?0x1:-0x1),this[_0x3660('0x1e')][_0x3660('0x4')](_0x30b187=>{for(const _0x3dbe34 of _0x540387){let _0x4a324d;_0x4a324d=_0x3dbe34['end'][_0x3660('0xab')]&&_0x3dbe34['end']['parent']==_0x3dbe34[_0x3660('0x8')][_0x3660('0xb3')]?_0x30b187[_0x3660('0xbb')](_0x3dbe34['start']['nodeAfter'],'on'):_0x30b187[_0x3660('0xbb')](_0x3dbe34),this[_0x3660('0x1e')][_0x3660('0x7')](_0x4a324d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3f3854=(_0x39734a,_0x1b9ac5)=>{_0x1b9ac5&&this['_model'][_0x3660('0x4')](_0x3e827e=>{const {commandName:_0x29c9ad,commandParams:_0x37f09e=[]}=_0x1b9ac5,_0x1ac0d3=_0x39734a[_0x3660('0xf4')](_0x219dc6=>(Rt(_0x219dc6)&&(_0x219dc6=this[_0x3660('0x1e')][_0x3660('0x141')](_0x219dc6[_0x3660('0xff')])),_0x219dc6))[_0x3660('0x172')](_0x37a808=>_0x3660('0x113')!==_0x37a808[_0x3660('0x164')]['rootName']);if(_0x1ac0d3[_0x3660('0x39')]<0x1)return;const _0x4a1f45=Array[_0x3660('0x181')](this[_0x3660('0x1e')][_0x3660('0x14c')][_0x3660('0x12b')][_0x3660('0xd4')]())[_0x3660('0xf4')](_0x25c757=>_0x29f361[_0x3660('0xda')](_0x25c757));_0x3e827e['setSelection'](_0x1ac0d3);for(const _0x3d8259 of this[_0x3660('0x6c')][_0x3660('0xb1')][_0x3660('0xb1')]())_0x3d8259['refresh']();_0x37f09e['push']({'forceDefaultExecution':!0x0}),this[_0x3660('0x6c')]['execute'](_0x29c9ad,..._0x37f09e);const _0x4a56f8=_0x4a1f45[_0x3660('0x172')](_0xceda29=>_0x3660('0x113')!=_0xceda29[_0x3660('0x164')]['rootName']);_0x4a56f8[_0x3660('0x39')]>0x0&&_0x3e827e[_0x3660('0x34')](_0x4a56f8);for(const _0x2dcf06 of _0x4a1f45)_0x2dcf06[_0x3660('0x82')]();});},_0x48d664=(_0x3c0d83,_0x5bf4d4)=>0x1==_0x3c0d83[_0x3660('0x39')]&&0x1==_0x5bf4d4[_0x3660('0x39')]&&_0x3c0d83[0x0]['end'][_0x3660('0xd7')](_0x5bf4d4[0x0][_0x3660('0x8')]),_0x1cab1e=(_0x31aca9,_0x1237f6,_0xb471df,_0x42553f)=>Gt(_0x31aca9,_0x1237f6,_0xb471df,_0x42553f,this[_0x3660('0x1e')])?[_0x31aca9,_0x1237f6]:Gt(_0x1237f6,_0x31aca9,_0x42553f,_0xb471df,this['_model'])?[_0x1237f6,_0x31aca9]:null;this[_0x3660('0x13b')][_0x3660('0xd6')](_0x3660('0x8d'),_0x47c6a8),this[_0x3660('0x13b')]['set']('insertion:discard',_0x3c234e),this[_0x3660('0x13b')][_0x3660('0xd6')]('insertion:join',_0x48d664),this[_0x3660('0x13b')][_0x3660('0xd6')](_0x3660('0x57'),_0x1cab1e),this[_0x3660('0x13b')][_0x3660('0xd6')](_0x3660('0x88'),_0x3c234e),this[_0x3660('0x13b')][_0x3660('0xd6')](_0x3660('0x2a'),_0x47c6a8),this[_0x3660('0x13b')]['set'](_0x3660('0x24'),_0x48d664),this[_0x3660('0x13b')][_0x3660('0xd6')](_0x3660('0x22'),_0x1cab1e),this['_defaultCallbacks'][_0x3660('0xd6')]('formatInline:accept',_0x3f3854),this[_0x3660('0x13b')][_0x3660('0xd6')](_0x3660('0x25'),_0x47c6a8),this[_0x3660('0x13b')][_0x3660('0xd6')]('formatInline:join',_0x48d664),this[_0x3660('0x13b')][_0x3660('0xd6')](_0x3660('0x29'),_0x47c6a8),this[_0x3660('0x13b')][_0x3660('0xd6')](_0x3660('0x16b'),_0x3f3854),this[_0x3660('0x13b')][_0x3660('0xd6')](_0x3660('0x127'),_0x47c6a8),this[_0x3660('0x13b')][_0x3660('0xd6')](_0x3660('0x182'),_0x48d664),this[_0x3660('0x13b')][_0x3660('0xd6')](_0x3660('0x9f'),_0x47c6a8),this[_0x3660('0x13b')]['set'](_0x3660('0x6f'),_0x47c6a8),this['_defaultCallbacks']['set']('attribute:discard',(_0x38198e,_0x5c334a)=>{if(!_0x5c334a)return;const _0x44ae89=this[_0x3660('0x6c')][_0x3660('0x17f')]['get'](p);this[_0x3660('0x1e')][_0x3660('0x4')](_0x288b09=>{if(_0x3660('0x120')==_0x5c334a[_0x3660('0x50')])for(const _0x24ea74 of _0x38198e){const _0x2573f6=_0x24ea74[_0x3660('0x8')][_0x3660('0xb3')],_0x5b1b63=_0x5c334a[_0x3660('0x16d')];_0x288b09['rename'](_0x2573f6,_0x5b1b63);}else{if(_0x44ae89[_0x3660('0x160')](_0x5c334a[_0x3660('0x50')]))for(const _0x3310a0 of _0x38198e)void 0x0!==_0x5c334a[_0x3660('0x16d')]?_0x288b09[_0x3660('0x107')](_0x5c334a['key'],_0x5c334a[_0x3660('0x16d')],_0x3310a0[_0x3660('0x8')][_0x3660('0xb3')]):_0x288b09['removeAttribute'](_0x5c334a[_0x3660('0x50')],_0x3310a0[_0x3660('0x8')][_0x3660('0xb3')]);else for(const _0x1bb97c of _0x38198e)_0x5c334a[_0x3660('0x16d')]?_0x288b09['setAttribute'](_0x5c334a[_0x3660('0x50')],_0x5c334a[_0x3660('0x16d')],_0x1bb97c):_0x288b09['removeAttribute'](_0x5c334a[_0x3660('0x50')],_0x1bb97c);}});}),this[_0x3660('0x13b')]['set'](_0x3660('0x12d'),_0x48d664);}}function xt(_0x159dce,_0x1a01e7,_0x55d076){for(const _0x924fb of _0x1a01e7[_0x3660('0x91')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x924fb[_0x3660('0x164')]==_0x924fb)return!0x1;if(!_0x55d076[_0x3660('0x2f')](_0x924fb))return!0x1;if(_0x159dce[_0x3660('0x152')](_0x924fb)||_0x159dce[_0x3660('0x4d')](_0x924fb))return!0x0;}return!0x1;}function Rt(_0x442ecc){return _0x442ecc['end'][_0x3660('0x91')]==_0x442ecc[_0x3660('0x8')]['nodeAfter']&&_0x442ecc[_0x3660('0xff')][_0x3660('0x18')];}function Tt(_0x12ce7,_0xb3d8ff,_0x19382c,_0x148d5d){const _0x2e7c53=_0x4bc77b=>!_0x4bc77b[_0x3660('0x103')]['is'](_0x3660('0x49'))&&!_0x148d5d['isObject'](_0x4bc77b[_0x3660('0x103')]),_0x290dbf=_0x12ce7[_0x3660('0x8')]['getLastMatchingPosition'](_0x2e7c53),_0x223bcf=_0x12ce7[_0x3660('0xff')][_0x3660('0x53')](_0x2e7c53,{'direction':_0x3660('0xb5')});return(!_0x12ce7[_0x3660('0x8')][_0x3660('0xd7')](_0x290dbf)||!_0x12ce7[_0x3660('0xff')]['isEqual'](_0x223bcf))&&(_0x290dbf[_0x3660('0x67')](_0x223bcf)?_0x19382c[_0x3660('0x42')](_0xb3d8ff,{'range':_0x19382c[_0x3660('0x141')](_0x290dbf,_0x223bcf)}):_0x19382c[_0x3660('0x158')](_0xb3d8ff),!0x0);}function Et(_0x596890){return _0x41b87a(_0x596890);}function Vt(_0x226e7e){const _0x95d540=_0x226e7e[_0x3660('0x8')]['nodeAfter'];return _0x95d540&&_0x95d540['is'](_0x3660('0x161'));}function Ut(_0x3d4502,_0x5a2543){return null==_0x3d4502[_0x3660('0xff')][_0x3660('0xe3')]&&_0x3d4502[_0x3660('0xff')][_0x3660('0x91')]==_0x3d4502[_0x3660('0x8')][_0x3660('0xb3')]?Ot(_0x3d4502['start'][_0x3660('0xb3')],_0x5a2543):_0x3d4502;}function Ot(_0x3c388e,_0x544a65){const _0x56dcca=_0x544a65[_0x3660('0x89')][_0x3660('0x152')](_0x3c388e)||_0x544a65[_0x3660('0x89')][_0x3660('0xcd')](_0x3c388e);return _0x544a65[_0x3660('0x141')](_0x544a65['createPositionAt'](_0x3c388e,_0x3660('0x1')),_0x56dcca?_0x544a65[_0x3660('0x4f')](_0x3c388e):_0x544a65[_0x3660('0x10f')](_0x3c388e,'end'));}function Gt(_0xb6a1da,_0x478e37,_0x4f0b5b,_0x2b652c,_0x413524){if(!Ft(_0xb6a1da,_0x478e37))return!0x1;if(_0x4f0b5b[_0x3660('0xff')][_0x3660('0xd7')](_0x2b652c[_0x3660('0x8')]))return!0x0;if(_0xb6a1da[_0x3660('0x55')]!=_0x478e37[_0x3660('0x55')])return!0x1;if(!_0x4f0b5b['end'][_0x3660('0x1f')](_0x2b652c[_0x3660('0x8')]))return!0x1;const _0x353c77=_0x413524[_0x3660('0x141')](_0x4f0b5b[_0x3660('0xff')],_0x2b652c[_0x3660('0x8')])['getWalker']();for(const _0x2e2424 of _0x353c77)if([_0x3660('0xf5'),_0x3660('0x163')]['includes'](_0x2e2424['type'])&&_0x413524['schema'][_0x3660('0x4d')](_0x2e2424[_0x3660('0x103')]))return!0x1;return!0x0;}function Ft(_0x22033e,_0x5f53c6,_0x120a82=[]){return!(!_0x22033e['_isDataLoaded']||!_0x5f53c6['_isDataLoaded'])&&_0x5b572f(_0x23195e(_0x22033e['attributes'],_0x120a82),_0x23195e(_0x5f53c6[_0x3660('0x11b')],_0x120a82));}function Pt(_0x4c0b1e,_0x1ac9a6){const _0x551879=Lt(_0x4c0b1e[_0x3660('0x11b')]),_0x559b52=Lt(_0x1ac9a6);if(!_0x4c0b1e[_0x3660('0xc1')])return!0x1;for(const _0x29934e of Object['keys'](_0x559b52))if(!_0x5b572f(_0x551879[_0x29934e],_0x559b52[_0x29934e]))return!0x1;return!0x0;}function Lt(_0x141b1c){const _0x3d2217=Object['assign']({},_0x141b1c);return delete _0x3d2217['skipNestingCheck'],delete _0x3d2217[_0x3660('0x65')],_0x3d2217;}
|
|
23
|
+
const _0x58e9=['suggestionUnloaded','_adapter','isObject','trackChanges.mergeNestedSuggestions','includes','delete','formatInline:join','element','getDifference','isLimit','split','_removeSuggestion','announce','item','$text','writer','filter','_editor','clone','getAncestors','updateSuggestion','activeMarkers','documentSelection','insertion:discard','oldValue','discardSelectedSuggestions','track-changes-adapter-missing-getsuggestion','error-saving-suggestion-data-suggestion-discarded','createdAt','_isBlockAttribute','commandName','getSuggestions','removeMarker:suggestion:formatBlock','isBefore','removed','isLocal','_reduceSuggestionAttributeRange','insert','attribute','length','rootName','discardAllSuggestions','_joinWithAdjacentSuggestions','next','enableReadOnlyMode','splice','pluginName','isInContent','removeMarker','_registerInlineAttribute','_refreshSuggestionsChain','addMarker:suggestion','markerReady','data-suggestion','keys','deletion:discard','_getExternalAuthor','trackChanges.trackFormatChanges','add','widget','isArray','end','markerNameToElements','_refreshAttributeSuggestionsChain','TrackChangesEditing','change:data','elementToElement','_customCallbacks','_checkSuggestionCorrectness','getWalker','oldRange','_getAttributeKey','plugins','ck-suggestion-marker-','isCollapsed','_suggestionState','sort','group','@external','suggestion-type','createElement','stop','rethrowUnexpectedError','attribute:join','enableCommand','after','ck-suggestion-marker--active','_model','always','getFirstRange','_createSuggestion','containsItem','Users','value','formatInline','multipleBlocks','meta','isIntersectingWithRange','getFirstMarker','_reduceExistingSuggestions','removeMarkers','targetPosition','trackChanges','getNearestSelectionRange','track-changes-enable-command-twice','trackChangesCommand','isMultiRange','hasSuggestion','values','markMultiRangeInsertion','nodeAfter','markerName','_SUGGESTION_ANNOUNCEMENT','notReady','insertion','_updateSuggestionData','position','commentThread','addRange','consumable','formatInline:accept','concat','_suggestionFactory','removeComment','createRange','getItems','isExternal','isInsideObject','formatBlock:chain','getShiftedBy','getChanges','execute','move','acceptSelectedSuggestions','_mergeNestedSuggestions','change','deletion:','subType','howMany','_getAuthorFromId','_handleNewSuggestionMarker','detach','formatInline:discard','type','_addThreadToSuggestion','getLastMatchingPosition','containsRangeInObject','_recordAttributeSuggestions','update:suggestion','_trackFormatChanges','insertion:','substr','consume','fire','conversion','removeMarker:suggestion:attribute','forceDefaultExecution','createSelection','setSelection','attributes','size','dataDowncast','suggestion:','insertion:accept','enqueueChange','getAttribute','accepted','adapter','getUser','originalSuggestionId','attribute:','$marker','_enabledCommands','formatGroupId','head','previous','addMarkerName','markAttributeChange','createPositionAt','containsPosition','getAllAdjacentSuggestions','editor','FORMATTING','key','_onDiscard','name','applyOperation','before','_saved','_isForcedDefaultExecutionBlock','getCommentThread','formatInline:','registerPostFixer','_getMarkerAnnouncementText','isNextTo','attributeNewValue','highest','isTouching','addClass','_isRegisteredAttribute','track-changes-command-not-found','_processAttributeChanges','addMarker:suggestion:formatBlock','pop','markerToHighlight','bindElementToMarker','$elementName','_processAttributeSuggestions','isSelectable','formatBlock:','refresh','_findSuggestions','removeClass','toViewElement','_addSuggestionMarker','define','track-changes-suggestion-data-mismatch','acceptAllSuggestions','stopListening','PENDING_ACTION_SUGGESTION','batch','locale','find','suggestion','differ','markInsertion','ready','for','range','isAfter','deletion','groupId','_breakSuggestionMarker','elementStart','map','newRange','authoredAt','high','suggestionChanged','createPositionBefore','editing','normal','options','creator','_commentsRepository','setAttribute','insertion:join','warn','isAtEnd','hasCommentThread','requires','assign','formatInline:chain','elementEnd','schema','format','set','_registerDefaultCallbacks','toUpperCase','_cutOutSuggestionMarker','splitPosition','_getSuggestionData','isIntersecting','_inlineAttributeKeys','formatBlock:discard','attributeKey','ck-suggestion-marker-formatBlock','listenTo','collaboration.channelId','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','ck-suggestion-marker-formatInline','default','addSuggestion','isRemovable','init','containerElement','addCommentThread','suggestionLoaded','_blockAttributeKeys','createPositionAfter','from','then','PendingActions','selection','isOwn','_setSuggestionData','markMultiRangeBlockFormat','track-changes-user-not-found','updateMarker','createRangeOn','_splitMarkerName','_defaultCallbacks','unbindElementFromMarkerName','markDeletion','suggestion:attribute:','buildSuggestion','removeAttribute','isUndo','startsWith','deleteContent','getMarkers','addMarker','editingDowncast','insertion:chain','fromCharCode','ariaLiveAnnouncer','addSuggestionData','fromRange','model','getMultiRangeId','insertContent','formatBlock:join','forward','parent','change:_saved','start','getChangedMarkers','document','chain','commands','substring','hasComments','never','upcast','nodeBefore','_suggestions','markBlockFormat','accept','_setSuggestionRange','deletion:chain','CommentsRepository','marker-count','getCustomProperty','discardSuggestion','multi','comments','addHighlight','has','_initAriaMarkerChangeAnnouncements','config','isBlock','getRanges','some','data','formatBlock','toJSON','_recordAttributeChanges','discard','containsRange','_descriptionFactory','track-changes-adapter-already-set','_afterChanges','_rangeIsInLocalUserInsertion','dataToMarker','getSuggestion','unbind','newValue','lowest','acceptSuggestion','low','_registerBlockAttribute','getIntersection','push','author','createRangeIn','isEqual','skipNestingCheck','attributeOldValue','root','_isDataLoaded','every','mapper','forEach','ck-suggestion-marker','markers','_joinSuggestions','getSuggestionCallback','get','$graveyard','markInlineFormat','dataReady','showSuggestionHighlights','join','fetchCommentThread'];(function(_0x53e563,_0x58e951){const _0x5f43be=function(_0x3b5e2e){while(--_0x3b5e2e){_0x53e563['push'](_0x53e563['shift']());}};_0x5f43be(++_0x58e951);}(_0x58e9,0x1c4));const _0x5f43=function(_0x53e563,_0x58e951){_0x53e563=_0x53e563-0x0;let _0x5f43be=_0x58e9[_0x53e563];return _0x5f43be;};import{Plugin as _0x5955b4,PendingActions as _0x352dd2}from'ckeditor5/src/core.js';import{LiveRange as _0x128c3b}from'ckeditor5/src/engine.js';import{CKEditorError as _0x32eb26,uid as _0x3c9c75,priorities as _0x1597d5,logWarning as _0x344a5e}from'ckeditor5/src/utils.js';import{toWidget as _0x3cdf15}from'ckeditor5/src/widget.js';import{Users as _0x49a5e0,hashObject as _0x58b5e8,surroundingMarkersDetector as _0x51b1bb}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x2bb047 from'./commands/trackchangescommand.js';import _0x5a96fc from'./commands/acceptsuggestioncommand.js';import _0x45e3aa from'./commands/discardsuggestioncommand.js';import _0x25f892 from'./commands/executeonallsuggestionscommand.js';import _0x12109a from'./commands/executeonselectedsuggestionscommand.js';import _0x1c904e from'./suggestion.js';import _0x2472e2 from'./suggestiondescriptionfactory.js';import _0x5d354f from'./integrations/aiassistant.js';import _0x1ae309 from'./integrations/alignment.js';import _0x2ae1c5 from'./integrations/basicstyles.js';import _0x58bf53 from'./integrations/blockquote.js';import _0x2a013a from'./integrations/casechange.js';import _0x54501e from'./integrations/ckbox.js';import _0x2499b3 from'./integrations/codeblock.js';import _0x44e012 from'./integrations/comments.js';import _0x480cf0 from'./integrations/deletecommand.js';import _0x1eda3e from'./integrations/list.js';import _0x201418 from'./integrations/listproperties.js';import _0x25280a from'./integrations/entercommand.js';import _0x16a1a0 from'./integrations/findandreplace.js';import _0x30afca from'./integrations/font.js';import _0x6ba7b1 from'./integrations/formatpainter.js';import _0xc0ffbc from'./integrations/heading.js';import _0x1b727a from'./integrations/highlight.js';import _0x21621d from'./integrations/horizontalline.js';import _0x41b805 from'./integrations/htmlembed.js';import _0x21ecc8 from'./integrations/image.js';import _0x108150 from'./integrations/imagereplace.js';import _0x4e863b from'./integrations/imagestyle.js';import _0x419890 from'./integrations/importword.js';import _0x2e9bc9 from'./integrations/indent.js';import _0x56134d from'./integrations/inputcommand.js';import _0x28499c from'./integrations/link.js';import _0x4ed5d9 from'./integrations/legacylist.js';import _0x406436 from'./integrations/legacylistproperties.js';import _0x1e61b7 from'./integrations/mediaembed.js';import _0x52d842 from'./integrations/mention.js';import _0x4a3908 from'./integrations/pagebreak.js';import _0x1906a3 from'./integrations/paragraph.js';import _0x57e6ce from'./integrations/removeformat.js';import _0x2b2161 from'./integrations/restrictededitingmode.js';import _0x2bcd38 from'./integrations/shiftentercommand.js';import _0xb313f5 from'./integrations/standardeditingmode.js';import _0x315a32 from'./integrations/style.js';import _0x24d0c3 from'./integrations/table.js';import _0x2ae09a from'./integrations/tablemergesplit.js';import _0xa313e4 from'./integrations/tableheadings.js';import _0x2982c5 from'./integrations/tableclipboard.js';import _0xf2f971 from'./integrations/tablecolumnresize.js';import _0x22bdf7 from'./integrations/template.js';import _0x488da1 from'./integrations/tableofcontents.js';import _0xf09b07 from'./integrations/title.js';import _0x50f851 from'./integrations/undo.js';import _0x295058 from'./integrations/tablecaption.js';import _0x32e572 from'./integrations/tableproperties.js';import{getTranslation as _0x73b0d4}from'./utils/common-translations.js';import{isEqual as _0x54b28f,omit as _0x4e25e9}from'lodash-es';export const renameAttributeKey=_0x5f43('0x8a');export default class p extends _0x5955b4{static get[_0x5f43('0xb6')](){return[_0x5f43('0x106'),_0x49a5e0,_0x352dd2,_0x5d354f,_0x1ae309,_0x2ae1c5,_0x58bf53,_0x54501e,_0x2a013a,_0x2499b3,_0x44e012,_0x480cf0,_0x25280a,_0x16a1a0,_0x30afca,_0x6ba7b1,_0xc0ffbc,_0x1b727a,_0x21621d,_0x41b805,_0x21ecc8,_0x4e863b,_0x108150,_0x419890,_0x2e9bc9,_0x56134d,_0x4ed5d9,_0x406436,_0x28499c,_0x1eda3e,_0x201418,_0x1e61b7,_0x52d842,_0x4a3908,_0x1906a3,_0x57e6ce,_0x2b2161,_0x2bcd38,_0xb313f5,_0x315a32,_0x24d0c3,_0x2ae09a,_0xa313e4,_0x295058,_0x2982c5,_0xf2f971,_0x488da1,_0x32e572,_0x22bdf7,_0xf09b07,_0x50f851];}static get[_0x5f43('0x16a')](){return _0x5f43('0x17c');}constructor(_0x20ff7e){function _0x5e7c2b(_0x4f7e77){return _0x4f7e77[_0x5f43('0xa6')](_0x227ddc=>String[_0x5f43('0xec')](_0x227ddc))[_0x5f43('0x13a')]('');}super(_0x20ff7e),this['_recordAttributeSuggestions']=!0x1,this[_0x5f43('0xbc')](_0x5f43('0x151'),[]),this['on']('change:activeMarkers',(_0x3d0013,_0xc6e33d,_0x32c3f0,_0x38eb42)=>{this[_0x5f43('0x13')]['change'](()=>{for(const _0x53f95b of[..._0x38eb42,..._0x32c3f0])this[_0x5f43('0x13')][_0x5f43('0x132')][_0x5f43('0x10d')](_0x53f95b)&&_0x20ff7e[_0x5f43('0xac')]['reconvertMarker'](_0x53f95b);});}),this[_0x5f43('0x119')]=new _0x2472e2(this[_0x5f43('0x71')][_0x5f43('0xf0')][_0x5f43('0xba')],this[_0x5f43('0x71')][_0x5f43('0x99')]),this[_0x5f43('0x13d')]=null,this[_0x5f43('0x36')]=new Bt(this[_0x5f43('0x71')]),this[_0x5f43('0x101')]=new Map(),this['_commentsRepository']=_0x20ff7e[_0x5f43('0x4')][_0x5f43('0x135')](_0x5f43('0x106')),this[_0x5f43('0x68')]=new Set(),this[_0x5f43('0x13')]=this[_0x5f43('0x71')][_0x5f43('0xf0')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this[_0x5f43('0xd2')]=new Set([_0x5f43('0x8a')]),this['_inlineAttributeKeys']=new Set(),_0x20ff7e[_0x5f43('0x10f')]['define'](_0x5f43('0x175'),_0x5f43('0xcb')),this[_0x5f43('0x51')]=_0x20ff7e[_0x5f43('0x10f')][_0x5f43('0x135')](_0x5f43('0x175')),_0x20ff7e['config'][_0x5f43('0x93')](_0x5f43('0x13f'),!0x0),this[_0x5f43('0x42')]=_0x20ff7e[_0x5f43('0x10f')]['get']('trackChanges.mergeNestedSuggestions'),this[_0x5f43('0x25')]=new _0x2bb047(_0x20ff7e,this[_0x5f43('0x68')]),this[_0x5f43('0x10e')](),this[_0x5e7c2b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5e7c2b([0x34,0x30,0x34,0x38,0x30,0x34,0x31,0x32]);}[_0x5f43('0xce')](){const _0x236c02=this[_0x5f43('0x71')],_0x1965c6=(_0x274a6f,_0xe499c8)=>{if(_0x5f43('0x162')!=_0x274a6f)return _0x5f43('0x5')+_0x274a6f;const _0x4c740f=_0xe499c8[_0x5f43('0x146')]('|')[0x0];return this[_0x5f43('0x159')](_0x4c740f)?_0x5f43('0xc6'):_0x5f43('0xca');};_0x236c02['conversion']['for']('editingDowncast')[_0x5f43('0x88')]({'model':_0x5f43('0x9b'),'view':_0x59d85d=>{const {id:_0x15cf47,type:_0x21359f,subType:_0x459507}=this[_0x5f43('0xde')](_0x59d85d['markerName']),_0x516148=[_0x5f43('0x131'),_0x1965c6(_0x21359f,_0x459507)];let _0x2a43dd=0xbb8;return this[_0x5f43('0x151')]['includes'](_0x59d85d[_0x5f43('0x2b')])&&(_0x516148[_0x5f43('0x126')](_0x5f43('0x12')),_0x2a43dd=0xbc2),'deletion'==_0x21359f&&(_0x2a43dd+=0x5),{'classes':_0x516148,'attributes':{'data-suggestion':_0x15cf47},'priority':_0x2a43dd};}}),_0x236c02[_0x5f43('0x56')][_0x5f43('0x9f')](_0x5f43('0x5d'))[_0x5f43('0x176')](_0x4f022d=>{_0x4f022d['on'](_0x5f43('0x16f'),(_0x39083a,_0x454c34,_0x277449)=>{if(!_0x277449['options'][_0x5f43('0x139')])return;const _0x3a9420=_0x454c34[_0x5f43('0x149')];if(!_0x3a9420)return;const _0x2defc2=_0x277449[_0x5f43('0x12f')]['toViewElement'](_0x3a9420);_0x236c02['model'][_0x5f43('0xba')]['isObject'](_0x3a9420)&&_0x2defc2&&!_0x2defc2[_0x5f43('0x108')](_0x5f43('0x177'))&&_0x2defc2['is'](_0x5f43('0xcf'))&&_0x3cdf15(_0x2defc2,_0x277449[_0x5f43('0x14b')]);},{'priority':'high'});}),_0x236c02['conversion'][_0x5f43('0x9f')]('dataDowncast')[_0x5f43('0x88')]({'model':_0x5f43('0x9b'),'view':(_0x5309de,_0x3c5ed8)=>{if(!_0x3c5ed8['options'][_0x5f43('0x139')])return null;const {type:_0x1ea14e,subType:_0x5adeac}=this[_0x5f43('0xde')](_0x5309de['markerName']);return{'classes':['ck-suggestion-marker',_0x1965c6(_0x1ea14e,_0x5adeac)],'priority':0xbb8};}});const _0xbcb513=({showActiveMarkers:_0x5d3d98=!0x0,isAttributeSuggestion:_0x3c02a7=!0x1}={})=>(_0x5cc3e1,_0x3680b4,_0x54e392)=>{if(!_0x3680b4[_0x5f43('0x149')])return;const {id:_0x36a89a}=this[_0x5f43('0xde')](_0x3680b4[_0x5f43('0x2b')]);if(_0x3c02a7){const _0xdfe35d=this['_suggestions'][_0x5f43('0x135')](_0x36a89a),_0x122117=this[_0x5f43('0x3')](_0xdfe35d);if(!this[_0x5f43('0x159')](_0x122117))return;}if(_0x3680b4[_0x5f43('0x149')]['is'](_0x5f43('0xd7')))return void _0x54e392[_0x5f43('0x33')][_0x5f43('0x54')](_0x3680b4['item'],_0x5cc3e1[_0x5f43('0x75')]);const _0x3ed59e=_0x54e392[_0x5f43('0x12f')][_0x5f43('0x91')](_0x3680b4[_0x5f43('0x149')]);if(_0x3680b4[_0x5f43('0x149')]['is'](_0x5f43('0x143'))&&_0x236c02[_0x5f43('0xf0')]['schema']['isBlock'](_0x3680b4[_0x5f43('0x149')])&&!_0x3ed59e['getCustomProperty'](_0x5f43('0x10c'))){_0x54e392[_0x5f43('0x14b')]['addClass']([_0x5f43('0x131'),_0x5f43('0xc6')],_0x3ed59e),_0x54e392['writer']['setAttribute'](_0x5f43('0x171'),_0x36a89a,_0x3ed59e),_0x54e392[_0x5f43('0x12f')][_0x5f43('0x89')](_0x3ed59e,_0x3680b4[_0x5f43('0x2b')]),_0x5d3d98&&(this[_0x5f43('0x151')]['includes'](_0x3680b4[_0x5f43('0x2b')])?_0x54e392[_0x5f43('0x14b')][_0x5f43('0x82')](_0x5f43('0x12'),_0x3ed59e):_0x54e392[_0x5f43('0x14b')]['removeClass'](_0x5f43('0x12'),_0x3ed59e));for(const _0xd57ac2 of _0x236c02[_0x5f43('0xf0')][_0x5f43('0x128')](_0x3680b4[_0x5f43('0x149')])[_0x5f43('0x39')]())_0x54e392[_0x5f43('0x33')]['consume'](_0xd57ac2,_0x5cc3e1[_0x5f43('0x75')]);_0x54e392[_0x5f43('0x33')][_0x5f43('0x54')](_0x3680b4['item'],_0x5cc3e1['name']);}};_0x236c02[_0x5f43('0x56')][_0x5f43('0x9f')](_0x5f43('0x5d'))[_0x5f43('0x176')](_0x22f145=>{_0x22f145['on'](_0x5f43('0x86'),(_0x56874d,_0x449262,_0xb0a267)=>{_0xb0a267[_0x5f43('0xae')]['showSuggestionHighlights']&&_0xbcb513({'showActiveMarkers':!0x1})(_0x56874d,_0x449262,_0xb0a267);},{'priority':_0x5f43('0x80')});}),_0x236c02[_0x5f43('0x56')][_0x5f43('0x9f')]('dataDowncast')[_0x5f43('0x176')](_0x3deaeb=>{_0x3deaeb['on']('addMarker:suggestion:attribute',(_0x270843,_0x26a0ca,_0x30ee09)=>{_0x30ee09['options']['showSuggestionHighlights']&&_0xbcb513({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x270843,_0x26a0ca,_0x30ee09);},{'priority':'highest'});}),_0x236c02[_0x5f43('0x56')][_0x5f43('0x9f')]('dataDowncast')['markerToData']({'model':_0x5f43('0x9b'),'view':(_0x3824c8,_0x463708)=>_0x463708[_0x5f43('0xae')]['showSuggestionHighlights']?null:{'group':_0x5f43('0x9b'),'name':_0x3824c8[_0x5f43('0x53')](0xb)}}),_0x236c02[_0x5f43('0x56')][_0x5f43('0x9f')](_0x5f43('0xff'))[_0x5f43('0x17e')]({'view':{'name':_0x5f43('0x9b'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xb02f14,{writer:_0x13a2aa})=>{let _0x51ce22=_0x5f43('0x5e')+_0xb02f14[_0x5f43('0x61')](_0x5f43('0xb'))+':'+_0xb02f14['getAttribute']('id');return _0xb02f14['getAttribute'](_0x5f43('0x107'))&&(_0x51ce22+=':'+_0xb02f14[_0x5f43('0x61')](_0x5f43('0x107'))),_0x13a2aa[_0x5f43('0xc')](_0x5f43('0x67'),{'data-name':_0x51ce22});}}),_0x236c02[_0x5f43('0x56')][_0x5f43('0x9f')]('upcast')[_0x5f43('0x11d')]({'view':_0x5f43('0x9b')}),_0x236c02[_0x5f43('0x56')][_0x5f43('0x9f')](_0x5f43('0xea'))[_0x5f43('0x176')](_0x317a44=>{_0x317a44['on'](_0x5f43('0x86'),_0xbcb513(),{'priority':_0x5f43('0xa9')});}),_0x236c02[_0x5f43('0x56')][_0x5f43('0x9f')](_0x5f43('0xea'))['add'](_0x1c17f7=>{_0x1c17f7['on']('addMarker:suggestion:attribute',_0xbcb513({'isAttributeSuggestion':!0x0}),{'priority':_0x5f43('0xa9')});}),_0x236c02[_0x5f43('0x56')][_0x5f43('0x9f')]('editingDowncast')[_0x5f43('0x176')](_0x53bd26=>{_0x53bd26['on'](_0x5f43('0x15c'),(_0x1a5a7a,_0x370544,_0x27c5f7)=>{const _0x574185=_0x27c5f7[_0x5f43('0x12f')]['markerNameToElements'](_0x370544['markerName']);if(_0x574185)for(const _0x23a7f3 of _0x574185)_0x23a7f3[_0x5f43('0x108')](_0x5f43('0x10c'))||(_0x27c5f7['writer'][_0x5f43('0x90')]([_0x5f43('0x131'),_0x5f43('0xc6'),_0x5f43('0x12')],_0x23a7f3),_0x27c5f7[_0x5f43('0x14b')][_0x5f43('0xe4')](_0x5f43('0x171'),_0x23a7f3),_0x27c5f7[_0x5f43('0x12f')][_0x5f43('0xe0')](_0x23a7f3,_0x370544[_0x5f43('0x2b')]));},{'priority':_0x5f43('0xa9')});}),_0x236c02['conversion'][_0x5f43('0x9f')](_0x5f43('0xea'))['add'](_0x21197f=>{_0x21197f['on'](_0x5f43('0x57'),(_0x2680d7,_0x35a611,_0x30a3d1)=>{const _0x4e6da2=_0x30a3d1[_0x5f43('0x12f')][_0x5f43('0x17a')](_0x35a611['markerName']);if(!_0x4e6da2)return;const {id:_0x39cd7b}=this['_splitMarkerName'](_0x35a611[_0x5f43('0x2b')]),_0x4d6605=this[_0x5f43('0x101')]['get'](_0x39cd7b),_0x136779=this['_getAttributeKey'](_0x4d6605);if(this[_0x5f43('0x159')](_0x136779))for(const _0x1eb2ce of _0x4e6da2)_0x1eb2ce['getCustomProperty'](_0x5f43('0x10c'))||(_0x30a3d1[_0x5f43('0x14b')][_0x5f43('0x90')]([_0x5f43('0x131'),_0x5f43('0xc6'),_0x5f43('0x12')],_0x1eb2ce),_0x30a3d1[_0x5f43('0x14b')][_0x5f43('0xe4')](_0x5f43('0x171'),_0x1eb2ce),_0x30a3d1[_0x5f43('0x12f')][_0x5f43('0xe0')](_0x1eb2ce,_0x35a611[_0x5f43('0x2b')]));},{'priority':'high'});}),_0x236c02['model'][_0x5f43('0xf9')]['registerPostFixer'](_0x29e0bc=>{let _0x442dfb=!0x1;const _0x262972=Array[_0x5f43('0xd4')](_0x236c02[_0x5f43('0xf0')][_0x5f43('0xf9')][_0x5f43('0x9c')][_0x5f43('0xf8')]()),_0x543f97=new Set();for(const {name:_0x163a8a,data:_0x1397ef}of _0x262972){const {group:_0x79e0c5,type:_0x1f2eca,subType:_0x418a2d,id:_0x4f414b}=this[_0x5f43('0xde')](_0x163a8a);if(_0x5f43('0x9b')!==_0x79e0c5)continue;const _0x1f9f2f=this[_0x5f43('0x101')][_0x5f43('0x135')](_0x4f414b);if(null!=_0x1397ef['newRange']){_0x5f43('0x1a')==_0x1f2eca&&(_0x442dfb=_0x442dfb||Tt(_0x1397ef['newRange'],_0x163a8a,_0x29e0bc,_0x236c02[_0x5f43('0xf0')]['schema']));const _0x35f341='attribute'==_0x1f2eca&&this['_isBlockAttribute'](_0x418a2d[_0x5f43('0x146')]('|')[0x0]);if(_0x1397ef[_0x5f43('0xa7')][_0x5f43('0x6')]||_0x5f43('0x136')==_0x1397ef['newRange'][_0x5f43('0x12c')][_0x5f43('0x164')]||_0x5f43('0x114')==_0x1f2eca&&!Vt(_0x1397ef[_0x5f43('0xa7')])||_0x35f341&&!Vt(_0x1397ef['newRange'])||'deletion'==_0x1f2eca&&!(!Rt(_0x13e987=_0x1397ef['newRange'])&&!function(_0x10e848){return _0x10e848[_0x5f43('0xf7')][_0x5f43('0xf5')]==_0x10e848['end'][_0x5f43('0x100')]&&_0x10e848['start'][_0x5f43('0xb4')];}(_0x13e987)))_0x29e0bc[_0x5f43('0x16c')](_0x163a8a),_0x442dfb=!0x0;else{if(!_0x1f9f2f||!_0x1f9f2f[_0x5f43('0x16b')])continue;_0x543f97[_0x5f43('0x176')](_0x1f9f2f);}}}var _0x13e987;return _0x543f97[_0x5f43('0x5c')]>0x0&&(_0x442dfb=!!this['_joinWithAdjacentSuggestions'](_0x543f97)||_0x442dfb),_0x442dfb;}),_0x236c02['model']['document'][_0x5f43('0x7c')](_0x3c0f6c=>{let _0x2bbc3e=!0x1;for(const _0x2b4bb3 of _0x236c02[_0x5f43('0xf0')]['document'][_0x5f43('0x9c')][_0x5f43('0x3e')]())if(_0x5f43('0x161')==_0x2b4bb3[_0x5f43('0x4b')])for(const _0x26ffbf of this[_0x5f43('0x101')][_0x5f43('0x28')]()){if(_0x26ffbf[_0x5f43('0x26')]||!_0x26ffbf[_0x5f43('0x16b')])continue;const _0x41e5c1=_0x5f43('0x114')==_0x26ffbf[_0x5f43('0x4b')],_0x5acbab=this[_0x5f43('0x3')](_0x26ffbf),_0x2ba065=_0x5acbab&&this['_isBlockAttribute'](_0x5acbab);if(!_0x41e5c1&&!_0x2ba065)continue;const _0x4141aa=_0x26ffbf[_0x5f43('0x15')]();if(_0x4141aa[_0x5f43('0xf7')][_0x5f43('0xf5')]!=_0x4141aa[_0x5f43('0x179')]['parent']&&!_0x4141aa[_0x5f43('0x179')][_0x5f43('0xb4')]){const _0x56a263=_0x236c02[_0x5f43('0xf0')]['createPositionAt'](_0x4141aa[_0x5f43('0xf7')][_0x5f43('0x2a')],'end'),_0x47602a=_0x236c02['model'][_0x5f43('0x38')](_0x4141aa[_0x5f43('0xf7')],_0x56a263);_0x3c0f6c['updateMarker'](_0x26ffbf[_0x5f43('0x1e')](),{'range':_0x47602a}),_0x2bbc3e=!0x0;}}return _0x2bbc3e;}),_0x236c02[_0x5f43('0xf0')]['document'][_0x5f43('0x7c')](_0x42b1e6=>this[_0x5f43('0x85')](_0x42b1e6)),_0x236c02[_0x5f43('0xf0')][_0x5f43('0xf9')][_0x5f43('0x7c')](_0x46040f=>!_0x46040f[_0x5f43('0x98')][_0x5f43('0x15f')]&&this[_0x5f43('0x8b')](_0x46040f)),_0x236c02[_0x5f43('0xf0')]['on'](_0x5f43('0x11b'),()=>{this[_0x5f43('0x4f')]=!0x1;}),_0x236c02['model'][_0x5f43('0xf9')]['on']('change:data',(_0x4f96e0,_0x74e343)=>{if(!_0x74e343[_0x5f43('0x15f')]||_0x74e343[_0x5f43('0xe5')])return;if(!this[_0x5f43('0x4f')])return;const _0x1f292d=_0x236c02[_0x5f43('0xf0')][_0x5f43('0xf9')][_0x5f43('0x9c')][_0x5f43('0x3e')]();if(0x0==_0x1f292d[_0x5f43('0x163')])return;const _0x1d2049=[],_0x470e5d=_0x1f292d['filter'](_0x27f4bf=>_0x5f43('0x162')==_0x27f4bf[_0x5f43('0x4b')]),_0xe2032=_0x1f292d['filter'](_0x2aabea=>_0x5f43('0x161')==_0x2aabea[_0x5f43('0x4b')]&&_0x5f43('0x14a')!=_0x2aabea[_0x5f43('0x75')]),_0x10fa54=_0x1f292d[_0x5f43('0x14c')](_0x477a82=>'remove'==_0x477a82[_0x5f43('0x4b')]&&_0x5f43('0x14a')!=_0x477a82['name']);for(const _0x27df19 of _0x470e5d)this[_0x5f43('0x83')](_0x27df19['attributeKey'])&&_0x1d2049[_0x5f43('0x126')]({'key':_0x27df19[_0x5f43('0xc5')],'newValue':_0x27df19[_0x5f43('0x7f')],'oldValue':_0x27df19[_0x5f43('0x12b')],'range':Ut(_0x27df19[_0x5f43('0xa0')],_0x236c02[_0x5f43('0xf0')])});for(const _0x4e829e of _0xe2032){const _0x2951b6=_0x10fa54[_0x5f43('0x9a')](_0x39490c=>_0x39490c['_element']===_0x4e829e['_element']);if(_0x2951b6){const _0x4bb245=Ot(_0x4e829e[_0x5f43('0x30')][_0x5f43('0x2a')],_0x236c02[_0x5f43('0xf0')]);_0x2951b6['name']!==_0x4e829e[_0x5f43('0x75')]&&_0x1d2049['push']({'key':_0x5f43('0x8a'),'newValue':_0x4e829e['name'],'oldValue':_0x2951b6[_0x5f43('0x75')],'range':_0x4bb245});for(const [_0x41626a,_0x21e98b]of _0x2951b6[_0x5f43('0x5b')]){if(!this[_0x5f43('0x83')](_0x41626a))continue;const _0x45a5f9=_0x4e829e[_0x5f43('0x5b')][_0x5f43('0x135')](_0x41626a);_0x21e98b!==_0x45a5f9&&_0x1d2049[_0x5f43('0x126')]({'key':_0x41626a,'newValue':_0x45a5f9,'oldValue':_0x21e98b,'range':_0x4bb245});}for(const [_0x37f5dc,_0x206b58]of _0x4e829e[_0x5f43('0x5b')])this[_0x5f43('0x83')](_0x37f5dc)&&(_0x2951b6['attributes']['has'](_0x37f5dc)||_0x1d2049[_0x5f43('0x126')]({'key':_0x37f5dc,'newValue':_0x206b58,'oldValue':null,'range':_0x4bb245}));}}0x0!=_0x1d2049['length']&&_0x236c02[_0x5f43('0xf0')][_0x5f43('0x60')](_0x74e343,_0x337b15=>{const _0x1d7639=_0x3c9c75();for(const {range:_0x4d31bc,key:_0x404fe7,oldValue:_0x4e0444,newValue:_0x48efba}of _0x1d2049)this['markAttributeChange'](_0x4d31bc,_0x404fe7,_0x4e0444,_0x48efba,{'groupId':_0x1d7639});this[_0x5f43('0x1f')](_0x337b15,_0x1d2049);});},{'priority':_0x5f43('0x121')}),_0x236c02[_0x5f43('0xf0')][_0x5f43('0x132')]['on'](_0x5f43('0x50'),(_0x1cb1a2,_0x5c30d5,_0x3a7d5e)=>{if(null==_0x3a7d5e){const {id:_0x46e90e}=this[_0x5f43('0xde')](_0x5c30d5[_0x5f43('0x75')]),_0x4328b6=this[_0x5f43('0x101')][_0x5f43('0x135')](_0x46e90e);_0x4328b6&&_0x4328b6[_0x5f43('0x6c')](_0x5c30d5[_0x5f43('0x75')]);}}),_0x236c02[_0x5f43('0xf0')][_0x5f43('0xf9')]['on'](_0x5f43('0x17d'),()=>{const _0x55fff8=Array[_0x5f43('0xd4')](_0x236c02[_0x5f43('0xf0')][_0x5f43('0xf9')][_0x5f43('0x9c')][_0x5f43('0xf8')]())['filter'](_0x45ff64=>_0x5f43('0x9b')===this[_0x5f43('0xde')](_0x45ff64[_0x5f43('0x75')])[_0x5f43('0x9')]);if(0x0===_0x55fff8[_0x5f43('0x163')])return;_0x55fff8[_0x5f43('0x8')]((_0x401f67,_0x327bb5)=>{const _0x393785=_0x401f67[_0x5f43('0x113')][_0x5f43('0x2')],_0x550141=_0x327bb5['data'][_0x5f43('0x2')];return null===_0x393785&&null===_0x550141?0x0:null===_0x393785&&null!==_0x550141?-0x1:null!==_0x393785&&null===_0x550141?0x1:_0x393785['start']['isBefore'](_0x550141[_0x5f43('0xf7')])?-0x1:0x1;});const _0x1bf33a=new Set(),_0x2f3579=new Set();for(const {name:_0x2d3bd6,data:_0x5e38cb}of _0x55fff8){const {id:_0x2018bb}=this[_0x5f43('0xde')](_0x2d3bd6);if(null===_0x5e38cb[_0x5f43('0x2')]){const _0x38c943=this['_handleNewSuggestionMarker'](_0x2d3bd6);_0x2f3579[_0x5f43('0x176')](_0x38c943);}else{const _0x5acfaf=this[_0x5f43('0x101')][_0x5f43('0x135')](_0x2018bb);null!==_0x5e38cb['newRange']||_0x5acfaf[_0x5f43('0x16b')]?(_0x1bf33a[_0x5f43('0x176')](_0x5acfaf[_0x5f43('0x6a')]),_0x2f3579[_0x5f43('0x176')](_0x5acfaf)):this[_0x5f43('0x147')](_0x5acfaf);}}_0x2f3579[_0x5f43('0x5c')]>0x0&&this[_0x5f43('0x16e')](_0x2f3579);for(const _0x55d0f3 of _0x1bf33a)this['fire'](_0x5f43('0xaa'),_0x55d0f3);}),_0x236c02[_0x5f43('0xf0')]['on'](_0x5f43('0x76'),(_0x3d61f3,_0x30eb7a)=>{const _0x3e5cc6=_0x30eb7a[0x0];if(!this[_0x5f43('0x101')][_0x5f43('0x5c')])return;if(!_0x3e5cc6['isDocumentOperation'])return;if(_0x3e5cc6['batch']['isUndo']||!_0x3e5cc6['batch'][_0x5f43('0x15f')])return;let _0x3b7d32,_0x26cccb;switch(_0x3e5cc6['type']){case'insert':_0x3b7d32=_0x236c02[_0x5f43('0xf0')][_0x5f43('0x6e')](_0x3e5cc6[_0x5f43('0x30')]),_0x26cccb=_0x3b7d32['getShiftedBy'](_0x3e5cc6[_0x5f43('0x46')]);break;case _0x5f43('0x146'):_0x3b7d32=_0x236c02[_0x5f43('0xf0')][_0x5f43('0x6e')](_0x3e5cc6[_0x5f43('0xc0')]),_0x26cccb=_0x236c02[_0x5f43('0xf0')][_0x5f43('0x6e')](_0x3e5cc6['moveTargetPosition']);break;case _0x5f43('0x40'):_0x3b7d32=_0x236c02[_0x5f43('0xf0')][_0x5f43('0x6e')](_0x3e5cc6[_0x5f43('0x21')]),_0x26cccb=_0x3b7d32[_0x5f43('0x3d')](_0x3e5cc6['howMany']);break;default:return;}const _0x5759fa=_0x236c02['model'][_0x5f43('0x38')](_0x3b7d32,_0x26cccb);_0x236c02[_0x5f43('0xf0')][_0x5f43('0x43')](()=>{for(const {suggestion:_0x2e13ae,meta:_0x500efb}of this[_0x5f43('0x8f')](_0x5759fa)){if(_0x2e13ae[_0x5f43('0x26')])continue;if(_0x5f43('0x1a')==_0x2e13ae['type'])continue;const _0x37a426=this[_0x5f43('0x3')](_0x2e13ae);if(_0x37a426&&this[_0x5f43('0x159')](_0x37a426)&&'split'!=_0x3e5cc6[_0x5f43('0x4b')])continue;const _0x40f782=_0x2e13ae[_0x5f43('0x113')]&&_0x2e13ae[_0x5f43('0x113')][_0x5f43('0x1b')];(_0x5f43('0x114')!=_0x2e13ae[_0x5f43('0x4b')]||_0x5f43('0x146')==_0x3e5cc6[_0x5f43('0x4b')]&&!_0x40f782)&&(_0x500efb[_0x5f43('0x4e')]||_0x5f43('0x2e')==_0x2e13ae[_0x5f43('0x4b')]&&_0x500efb[_0x5f43('0xd8')]||_0x2e13ae['getFirstRange']()[_0x5f43('0x118')](_0x5759fa)&&this['_breakSuggestionMarker'](_0x2e13ae,_0x3b7d32,_0x26cccb));}});},{'priority':_0x5f43('0x121')}),_0x236c02[_0x5f43('0xf0')]['on']('deleteContent',(_0x1cab5f,_0x386b68)=>{const _0x353e66=_0x386b68[0x0],_0x342947=_0x386b68[0x1];if(_0x342947&&_0x342947['forceDefaultExecution'])return;if(this[_0x5f43('0x79')])return;if(!this[_0x5f43('0x25')][_0x5f43('0x19')])return;if(_0x353e66[_0x5f43('0x6')])return;const _0x1caec5=_0x236c02['model']['schema'],{start:_0x2ce170,end:_0x5cdeaa}=_0x353e66[_0x5f43('0x15')](),_0x352f79=_0x2ce170[_0x5f43('0x2a')]&&_0x1caec5['isLimit'](_0x2ce170[_0x5f43('0x2a')])?null:_0x1caec5[_0x5f43('0x23')](_0x2ce170,_0x5f43('0xf4')),_0x1499dd=_0x5cdeaa['nodeBefore']&&_0x1caec5[_0x5f43('0x145')](_0x5cdeaa[_0x5f43('0x100')])?null:_0x1caec5[_0x5f43('0x23')](_0x5cdeaa,'backward'),_0xcd98bb=_0x236c02['model'][_0x5f43('0x38')](_0x352f79?_0x352f79[_0x5f43('0xf7')]:_0x2ce170,_0x1499dd?_0x1499dd[_0x5f43('0x179')]:_0x5cdeaa);_0x236c02[_0x5f43('0xf0')]['change'](_0x24bbc0=>{this[_0x5f43('0xe1')](_0xcd98bb);const _0x48754e=_0x236c02[_0x5f43('0xf0')][_0x5f43('0xba')]['getNearestSelectionRange'](_0xcd98bb[_0x5f43('0xf7')]);_0x353e66['is'](_0x5f43('0x152'))?_0x24bbc0['setSelection'](_0x48754e):_0x353e66['setTo'](_0x48754e);}),_0x1cab5f[_0x5f43('0xd')]();},{'priority':_0x1597d5[_0x5f43('0xad')]+0xa}),_0x236c02[_0x5f43('0xf0')]['on'](_0x5f43('0xf2'),(_0xc04c8b,_0x1a670f)=>{const _0x252e43=_0x1a670f[_0x1a670f[_0x5f43('0x163')]-0x1];_0x252e43&&_0x252e43[_0x5f43('0x58')]||this[_0x5f43('0x79')]||this[_0x5f43('0x25')]['value']&&(_0x236c02[_0x5f43('0xf0')][_0x5f43('0x43')](()=>{let _0x5a9651=_0x236c02[_0x5f43('0xf0')][_0x5f43('0xf2')](_0x1a670f[0x0],_0x1a670f[0x1],_0x1a670f[0x2],{'forceDefaultExecution':!0x0});if(!_0x5a9651)return;_0xc04c8b['return']=_0x5a9651[_0x5f43('0x14e')]();const _0x43fd0f=_0x5a9651[_0x5f43('0x179')]['nodeBefore'],_0x20a021=_0x236c02['model'][_0x5f43('0xba')];_0x43fd0f&&_0x20a021[_0x5f43('0x110')](_0x43fd0f)&&!_0x20a021[_0x5f43('0x13e')](_0x43fd0f)&&(_0x5a9651=_0x236c02[_0x5f43('0xf0')]['createRange'](_0x5a9651[_0x5f43('0xf7')],_0x236c02[_0x5f43('0xf0')][_0x5f43('0x6e')](_0x43fd0f,_0x5f43('0x179')))),this[_0x5f43('0x9d')](_0x5a9651);}),_0xc04c8b[_0x5f43('0xd')]());},{'priority':_0x5f43('0xa9')}),this[_0x5f43('0x71')][_0x5f43('0xfb')][_0x5f43('0x176')]('trackChanges',this[_0x5f43('0x25')]),this[_0x5f43('0x10')](_0x5f43('0x22'));const _0x4fb16c=new _0x5a96fc(_0x236c02,this['_suggestions']);_0x236c02[_0x5f43('0xfb')][_0x5f43('0x176')]('acceptSuggestion',_0x4fb16c),this[_0x5f43('0x10')](_0x5f43('0x122'));const _0x576fc4=new _0x45e3aa(_0x236c02,this[_0x5f43('0x101')]);_0x236c02[_0x5f43('0xfb')][_0x5f43('0x176')]('discardSuggestion',_0x576fc4),this[_0x5f43('0x10')](_0x5f43('0x109')),_0x236c02[_0x5f43('0xfb')]['add'](_0x5f43('0x95'),new _0x25f892(_0x236c02,_0x4fb16c,this[_0x5f43('0x101')])),this[_0x5f43('0x10')](_0x5f43('0x95')),_0x236c02['commands'][_0x5f43('0x176')](_0x5f43('0x165'),new _0x25f892(_0x236c02,_0x576fc4,this[_0x5f43('0x101')])),this['enableCommand'](_0x5f43('0x165')),_0x236c02[_0x5f43('0xfb')]['add']('acceptSelectedSuggestions',new _0x12109a(_0x236c02,_0x4fb16c,this[_0x5f43('0x101')])),this[_0x5f43('0x10')](_0x5f43('0x41')),_0x236c02[_0x5f43('0xfb')][_0x5f43('0x176')](_0x5f43('0x155'),new _0x12109a(_0x236c02,_0x576fc4,this[_0x5f43('0x101')])),this[_0x5f43('0x10')]('discardSelectedSuggestions');const _0x449031=_0x236c02['plugins']['get'](_0x5f43('0x106'));this[_0x5f43('0xc7')](_0x449031,'addComment',(_0x3b3062,{threadId:_0x21ee1a})=>{const _0x15ff0e=this[_0x5f43('0x101')]['get'](_0x21ee1a);_0x15ff0e&&_0x15ff0e[_0x5f43('0x31')]&&0x1===_0x15ff0e['commentThread'][_0x5f43('0x163')]&&this[_0x5f43('0x2f')](_0x21ee1a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x449031,_0x5f43('0x37'),(_0x5d0c61,{threadId:_0x5f1df2})=>{const _0x224424=this[_0x5f43('0x101')][_0x5f43('0x135')](_0x5f1df2);_0x224424&&_0x224424[_0x5f43('0x31')]&&!_0x224424[_0x5f43('0x31')][_0x5f43('0x163')]&&this['_updateSuggestionData'](_0x5f1df2,{'hasComments':!0x1});},{'priority':_0x5f43('0x123')});}set[_0x5f43('0x63')](_0x2a1bff){if(this[_0x5f43('0x13d')])throw new _0x32eb26(_0x5f43('0x11a'),this);this[_0x5f43('0x13d')]=_0x2a1bff;}get[_0x5f43('0x63')](){return this[_0x5f43('0x13d')];}[_0x5f43('0x15b')]({skipNotAttached:_0x5c9146=!0x1,toJSON:_0xbb87b1=!0x1}={}){const _0x28161b=[];for(const _0x8509cd of this['_suggestions']['values']())_0x5c9146&&!_0x8509cd[_0x5f43('0x16b')]||_0x28161b[_0x5f43('0x126')](_0x8509cd);return _0xbb87b1?_0x28161b[_0x5f43('0xa6')](_0x592b71=>_0x592b71[_0x5f43('0x115')]()):_0x28161b;}[_0x5f43('0x11e')](_0x44f769){const _0x31a867=this[_0x5f43('0x101')][_0x5f43('0x135')](_0x44f769);if(!_0x31a867)throw new _0x32eb26('track-changes-suggestion-not-found',this);return _0x31a867;}[_0x5f43('0x27')](_0x469aed){return this[_0x5f43('0x101')]['has'](_0x469aed);}[_0x5f43('0xee')](_0x4a4df1){const {authorId:_0x5187db,id:_0x43e5f4,attributes:_0x48279f}=_0x4a4df1,[_0x59b393,_0x308eab]=_0x4a4df1[_0x5f43('0x4b')][_0x5f43('0x146')](':'),_0x3a49ca=this[_0x5f43('0x101')]['get'](_0x43e5f4)||this[_0x5f43('0x16')](_0x59b393,_0x308eab,_0x43e5f4,_0x5187db,_0x48279f);if(this[_0x5f43('0x4c')](_0x3a49ca),this['_checkSuggestionCorrectness'](_0x3a49ca,_0x59b393,_0x308eab||null,_0x5187db),_0x3a49ca[_0x5f43('0x158')]=_0x4a4df1[_0x5f43('0x158')],_0x3a49ca['_isDataLoaded']=!0x0,_0x48279f&&_0x48279f[_0x5f43('0xa')]){const _0x5da1f2=_0x48279f[_0x5f43('0xa')],_0x159337=this[_0x5f43('0x174')](_0x5da1f2['authorName']);_0x3a49ca[_0x5f43('0xa8')]=_0x5da1f2[_0x5f43('0x158')],_0x3a49ca[_0x5f43('0x127')]=_0x159337,_0x3a49ca[_0x5f43('0x3a')]=!0x0;}else _0x3a49ca['authoredAt']=_0x4a4df1[_0x5f43('0x158')];switch(_0x4a4df1['data']&&(_0x3a49ca[_0x5f43('0x113')]=_0x4a4df1['data']),_0x4a4df1[_0x5f43('0x5b')]&&(_0x3a49ca['attributes']=_0x4a4df1[_0x5f43('0x5b')]),this[_0x5f43('0x13d')]&&this[_0x5f43('0x13d')][_0x5f43('0xcc')]||(_0x3a49ca[_0x5f43('0x78')]=!0x0),this[_0x5f43('0x7')][_0x5f43('0x135')](_0x3a49ca)){case _0x5f43('0x2d'):this[_0x5f43('0x7')][_0x5f43('0xbc')](_0x3a49ca,'dataReady');break;case _0x5f43('0x170'):_0x3a49ca['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3a49ca])),this[_0x5f43('0x16e')](new Set([_0x3a49ca])),this[_0x5f43('0x7')][_0x5f43('0xbc')](_0x3a49ca,_0x5f43('0x9e')),this[_0x5f43('0x55')](_0x5f43('0xd1'),_0x3a49ca)):this[_0x5f43('0x7')][_0x5f43('0xbc')](_0x3a49ca,'removed');}return _0x3a49ca;}[_0x5f43('0x122')](_0x562e2d){this['forceDefaultExecution'](()=>{this['editor']['model'][_0x5f43('0x43')](()=>{for(const _0x23d5f2 of _0x562e2d[_0x5f43('0x70')]())_0x23d5f2[_0x5f43('0x103')]();});});}[_0x5f43('0x109')](_0x2d1569){this[_0x5f43('0x58')](()=>{this[_0x5f43('0x71')][_0x5f43('0xf0')][_0x5f43('0x43')](()=>{for(const _0x4446f0 of _0x2d1569[_0x5f43('0x70')]())_0x4446f0[_0x5f43('0x117')]();});});}[_0x5f43('0x10')](_0x3d66c8,_0x322ab5){const _0x5cdd7e=this[_0x5f43('0x71')][_0x5f43('0xfb')][_0x5f43('0x135')](_0x3d66c8);if(!_0x5cdd7e)throw new _0x32eb26(_0x5f43('0x84'),this,{'commandName':_0x3d66c8});if(this['_enabledCommands'][_0x5f43('0x10d')](_0x5cdd7e))throw new _0x32eb26(_0x5f43('0x24'),this,{'commandName':_0x3d66c8});this[_0x5f43('0x68')][_0x5f43('0x176')](_0x5cdd7e),_0x322ab5&&_0x5cdd7e['on'](_0x5f43('0x3f'),(_0x2dd616,_0x5d44c9)=>{this[_0x5f43('0x25')][_0x5f43('0x19')]&&(this['_isForcedDefaultExecutionBlock']||(_0x5d44c9[_0x5f43('0x163')]>0x0&&_0x5d44c9[_0x5d44c9[_0x5f43('0x163')]-0x1]&&_0x5d44c9[_0x5d44c9[_0x5f43('0x163')]-0x1][_0x5f43('0x58')]?_0x5d44c9[_0x5f43('0x87')]():(_0x2dd616['return']=_0x322ab5((..._0x333858)=>_0x5cdd7e[_0x5f43('0x3f')](..._0x333858,{'forceDefaultExecution':!0x0}),..._0x5d44c9),_0x2dd616['stop']())));},{'priority':'high'});}[_0x5f43('0x58')](_0x3c449b){let _0x5a6dce,_0x1960b6;const _0x3f6384=this[_0x5f43('0x79')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5a6dce=_0x3c449b();}catch(_0x424088){_0x1960b6=_0x424088;}return _0x3f6384||(this[_0x5f43('0x79')]=!0x1),_0x1960b6&&_0x32eb26[_0x5f43('0xe')](_0x1960b6,this),_0x5a6dce;}[_0x5f43('0x9d')](_0x5555ac,_0x447157=null,_0x405903={}){if(_0x5555ac['isCollapsed'])return null;const _0x433fc2=this[_0x5f43('0x71')][_0x5f43('0x4')][_0x5f43('0x135')](_0x5f43('0x18'))['me'];for(const {suggestion:_0x3d6b29,meta:_0x3abdc6}of this[_0x5f43('0x8f')](_0x5555ac,'insertion'))if(_0x3abdc6[_0x5f43('0xd8')]){if(!_0x3abdc6[_0x5f43('0x7e')]){if(_0x3abdc6[_0x5f43('0x4e')]){if(!this[_0x5f43('0x42')]||!Pt(_0x3d6b29,_0x405903))continue;return _0x3d6b29;}if(Pt(_0x3d6b29,_0x405903))return _0x3d6b29;this[_0x5f43('0xa4')](_0x3d6b29,_0x5555ac['start'],_0x5555ac[_0x5f43('0x179')]);break;}if(_0x447157==_0x3d6b29[_0x5f43('0x45')]&&Pt(_0x3d6b29,_0x405903)){const _0x43c063=_0x3d6b29['getFirstRange']();return _0x43c063['start'][_0x5f43('0x129')](_0x5555ac['end'])?this['_setSuggestionRange'](_0x3d6b29,this[_0x5f43('0x13')]['createRange'](_0x5555ac[_0x5f43('0xf7')],_0x43c063[_0x5f43('0x179')])):this['_setSuggestionRange'](_0x3d6b29,this[_0x5f43('0x13')][_0x5f43('0x38')](_0x43c063[_0x5f43('0xf7')],_0x5555ac['end'])),_0x3d6b29;}}const _0x151493=_0x3c9c75(),_0x391da7=_0x433fc2['id'],_0x31d64f=_0x447157?_0x5f43('0x52')+_0x447157:_0x5f43('0x2e'),_0x29000f=this[_0x5f43('0xd9')]({'id':_0x151493,'type':_0x31d64f,'createdAt':new Date(),'authorId':_0x391da7,'attributes':_0x405903});return this[_0x5f43('0x92')](_0x31d64f,_0x151493,_0x391da7,_0x5555ac),_0x29000f;}[_0x5f43('0x29')](_0x4b3170,_0xc8f0e0=_0x5f43('0x10a'),_0x49b339={}){const _0x64ecd0=this['editor'][_0x5f43('0x4')][_0x5f43('0x135')](_0x5f43('0x18'))['me'],_0x17e5cc=this['_suggestionFactory'][_0x5f43('0x134')](_0x5f43('0x2e'),_0xc8f0e0,_0x5f43('0x13a'));for(const _0x106446 of this[_0x5f43('0x15b')]())if(_0x106446['author']['id']==_0x64ecd0['id']&&_0x5f43('0x2e')==_0x106446[_0x5f43('0x4b')]&&_0x106446[_0x5f43('0x45')]==_0xc8f0e0&&Pt(_0x106446,_0x49b339)&&(_0x17e5cc(_0x106446['getRanges'](),_0x4b3170)||_0x17e5cc(_0x4b3170,_0x106446[_0x5f43('0x111')]()))){for(const _0x401f82 of _0x4b3170)_0x106446[_0x5f43('0x32')](_0x401f82);return _0x106446;}for(const {suggestion:_0x1cf8ab,meta:_0x40b388}of this[_0x5f43('0x8f')](_0x4b3170,_0x5f43('0x2e'))){if(!_0x40b388['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x40b388['containsRangeInObject'])continue;if(!Pt(_0x1cf8ab,_0x49b339))continue;let _0x7eece7=!0x0;for(const _0x1fed12 of _0x1cf8ab[_0x5f43('0x111')]())for(const _0x8d959e of _0x4b3170)if(!_0x1fed12[_0x5f43('0x118')](_0x8d959e)){_0x7eece7=!0x1;break;}if(_0x7eece7)return _0x1cf8ab;}const _0xa371d2=_0x3c9c75(),_0x494ef7=_0x64ecd0['id'],_0x85014f=_0x5f43('0x52')+_0xc8f0e0,_0x1c131a=this[_0x5f43('0xd9')]({'id':_0xa371d2,'type':_0x85014f,'createdAt':new Date(),'authorId':_0x494ef7,'attributes':_0x49b339});for(const _0xa8e8ab of _0x4b3170)this[_0x5f43('0x92')](_0x85014f,_0xa371d2,_0x494ef7,_0xa8e8ab,_0x1c904e[_0x5f43('0xf1')]());return _0x1c131a;}[_0x5f43('0x137')](_0x7203df,_0x338857,_0x2aee7a=null,_0x2003b8={}){if(_0x2aee7a=_0x2aee7a||Et(_0x338857),_0x7203df['isCollapsed'])return null;if(_0x5f43('0xfe')===this[_0x5f43('0x51')]){const _0x3386b0=this[_0x5f43('0x36')][_0x5f43('0x134')]('formatInline',_0x2aee7a,_0x5f43('0x103'));return this['forceDefaultExecution'](()=>_0x3386b0([_0x7203df],_0x338857,_0x2003b8)),null;}const _0x2744ab=this[_0x5f43('0x71')][_0x5f43('0x4')][_0x5f43('0x135')]('Users')['me'],_0x11482b=[];if(_0x5f43('0x14')!==this[_0x5f43('0x51')])for(const {suggestion:_0xd34841,meta:_0x35b05f}of this['_findSuggestions'](_0x7203df,'insertion'))_0x35b05f[_0x5f43('0xd8')]&&!_0x35b05f[_0x5f43('0x3b')]&&_0x11482b['push'](..._0xd34841[_0x5f43('0x111')]());const _0x1e98c6=function(_0x115106,_0x2fabcd){const _0x34be89=[];for(const _0x20572d of _0x2fabcd){const _0x579b39=_0x115106[_0x5f43('0x125')](_0x20572d);_0x579b39&&_0x34be89['push'](_0x579b39);}return _0x34be89;}(_0x7203df,_0x11482b),_0x492544=function(_0x1faa20,_0x91fcdc){const _0x1ef75c=[_0x1faa20];for(const _0x34b4f3 of _0x91fcdc){let _0x20f7fd=0x0;for(;_0x20f7fd<_0x1ef75c[_0x5f43('0x163')];){const _0x3b97ec=_0x1ef75c[_0x20f7fd][_0x5f43('0x144')](_0x34b4f3);_0x1ef75c[_0x5f43('0x169')](_0x20f7fd,0x1,..._0x3b97ec),_0x20f7fd+=_0x3b97ec['length'];}}return _0x1ef75c;}(_0x7203df,_0x11482b);_0x1e98c6['length']&&this['_model'][_0x5f43('0x43')](()=>{for(const _0x4d8728 of _0x1e98c6){const _0x170707=this['_suggestionFactory'][_0x5f43('0x134')]('formatInline',_0x2aee7a,'accept');this[_0x5f43('0x58')](()=>_0x170707([_0x4d8728],_0x338857,_0x2003b8));}});for(const _0x232343 of _0x492544){let _0xb5008c=null,_0x3ac78d=_0x232343[_0x5f43('0xf7')],_0x506b4a=_0x232343['end'];for(const {suggestion:_0x1701a8,meta:_0x283720}of this[_0x5f43('0x8f')](_0x232343,_0x5f43('0x1a'))){if(!_0x283720[_0x5f43('0xd8')])continue;if(_0x1701a8[_0x5f43('0x45')]!=_0x2aee7a)continue;if(!Pt(_0x1701a8,_0x2003b8))continue;const _0x995c06=_0x1701a8[_0x5f43('0x15')]();if(_0x995c06[_0x5f43('0x118')](_0x232343,!0x0))return null;_0x3ac78d=_0x3ac78d[_0x5f43('0x15d')](_0x995c06[_0x5f43('0xf7')])?_0x3ac78d:_0x995c06[_0x5f43('0xf7')],_0x506b4a=_0x506b4a[_0x5f43('0xa1')](_0x995c06['end'])?_0x506b4a:_0x995c06[_0x5f43('0x179')],_0xb5008c?_0x995c06[_0x5f43('0xf7')][_0x5f43('0x15d')](_0xb5008c[_0x5f43('0x15')]()['start'])?(_0xb5008c['removeMarkers'](),_0xb5008c=_0x1701a8):_0x1701a8[_0x5f43('0x20')]():_0xb5008c=_0x1701a8;}const _0x241eff=this[_0x5f43('0x13')][_0x5f43('0x38')](_0x3ac78d,_0x506b4a);if(_0xb5008c)this[_0x5f43('0x104')](_0xb5008c,_0x241eff);else{const _0x30e72b=_0x3c9c75(),_0x404d2e=_0x2744ab['id'];this['_setSuggestionData']({'id':_0x30e72b,'type':_0x5f43('0x7b')+_0x2aee7a,'data':_0x338857,'createdAt':new Date(),'authorId':_0x404d2e,'attributes':_0x2003b8}),this[_0x5f43('0x92')](_0x5f43('0x7b')+_0x2aee7a,_0x30e72b,_0x404d2e,_0x241eff);}}return null;}[_0x5f43('0x102')](_0x52aef8,_0x8cc53a,_0x29cc6=[],_0x452d9a=null,_0x4d2c62={}){_0x8cc53a[_0x5f43('0x69')]||(_0x8cc53a[_0x5f43('0x69')]=_0x8cc53a[_0x5f43('0x15a')]),_0x8cc53a[_0x5f43('0x1b')]=_0x52aef8['is'](_0x5f43('0xa0')),_0x452d9a=_0x452d9a||Et(_0x8cc53a);const _0x203548=_0x29cc6[_0x5f43('0xa6')](_0x30e09b=>Ot(_0x30e09b,this[_0x5f43('0x13')])),_0x2c3e32=_0x52aef8['is'](_0x5f43('0xa0'))?_0x52aef8:Ot(_0x52aef8,this[_0x5f43('0x13')]);if(_0x5f43('0xfe')===this['_trackFormatChanges']){const _0x31bd82=this[_0x5f43('0x36')][_0x5f43('0x134')](_0x5f43('0x114'),_0x452d9a,_0x5f43('0x103'));return this[_0x5f43('0x58')](()=>_0x31bd82([_0x2c3e32],_0x8cc53a,_0x4d2c62)),null;}_0x203548['push'](_0x2c3e32);let _0x5eadf1=!0x0;for(const _0x2a4150 of _0x203548)if(!this[_0x5f43('0x11c')](_0x2a4150)){_0x5eadf1=!0x1;break;}if(_0x5eadf1&&_0x5f43('0x14')!==this['_trackFormatChanges']){const _0x35d8e5=this[_0x5f43('0x36')]['getSuggestionCallback'](_0x5f43('0x114'),_0x452d9a,'accept');return this[_0x5f43('0x58')](()=>_0x35d8e5([_0x2c3e32],_0x8cc53a,_0x4d2c62)),null;}let _0x423587=null,_0x55f9ef=_0x2c3e32['start'],_0x3507e6=_0x2c3e32[_0x5f43('0x179')];for(const {suggestion:_0x44f806,meta:_0x726ee1}of this[_0x5f43('0x8f')](_0x2c3e32,_0x5f43('0x114'))){if(!_0x726ee1[_0x5f43('0xd8')])continue;if(_0x726ee1[_0x5f43('0x7e')]||_0x726ee1[_0x5f43('0x4e')]||_0x726ee1[_0x5f43('0x3b')])continue;if(_0x44f806[_0x5f43('0x113')]['formatGroupId']!=_0x8cc53a[_0x5f43('0x69')])continue;if(!Pt(_0x44f806,_0x4d2c62))continue;const _0xf65467=_0x44f806[_0x5f43('0x15')]();if(_0x44f806['subType']==_0x452d9a){if(_0xf65467['containsRange'](_0x2c3e32,!0x0))return null;_0x55f9ef=_0x55f9ef[_0x5f43('0x15d')](_0xf65467['start'])?_0x55f9ef:_0xf65467[_0x5f43('0xf7')],_0x3507e6=_0x3507e6[_0x5f43('0xa1')](_0xf65467[_0x5f43('0x179')])?_0x3507e6:_0xf65467[_0x5f43('0x179')],_0x423587?_0xf65467[_0x5f43('0xf7')]['isBefore'](_0x423587[_0x5f43('0x15')]()[_0x5f43('0xf7')])?(_0x423587[_0x5f43('0x20')](),_0x423587=_0x44f806):_0x44f806[_0x5f43('0x20')]():_0x423587=_0x44f806;}else{const _0x374a54=_0x2c3e32[_0x5f43('0x125')](_0xf65467);this[_0x5f43('0xbf')](_0x44f806,_0x374a54);}}const _0x26c6e7=this[_0x5f43('0x71')][_0x5f43('0x4')]['get'](_0x5f43('0x18'))['me'],_0x59ee0e=_0x3c9c75(),_0x3c4d8d=_0x26c6e7['id'];if(_0x423587)return this[_0x5f43('0x104')](_0x423587,this[_0x5f43('0x13')][_0x5f43('0x38')](_0x55f9ef,_0x3507e6)),_0x423587;{const _0x4da469=this[_0x5f43('0xd9')]({'id':_0x59ee0e,'type':_0x5f43('0x8d')+_0x452d9a,'data':_0x8cc53a,'createdAt':new Date(),'authorId':_0x3c4d8d,'attributes':_0x4d2c62});return this[_0x5f43('0x92')](_0x5f43('0x8d')+_0x452d9a,_0x59ee0e,_0x3c4d8d,this['_model']['createRange'](_0x55f9ef,_0x3507e6)),_0x4da469;}}[_0x5f43('0xda')](_0x30caa9,_0x308ce4,_0x5e51d6=[],_0x3c680c=null,_0x3960d3={}){_0x308ce4[_0x5f43('0x69')]||(_0x308ce4[_0x5f43('0x69')]=_0x308ce4[_0x5f43('0x15a')]);const _0xa86dec=_0x30caa9[0x0];_0x308ce4[_0x5f43('0x1b')]=_0xa86dec['is'](_0x5f43('0xa0')),_0x3c680c=_0x3c680c||Et(_0x308ce4);const _0x580806=_0x5e51d6['map'](_0x5a7a5f=>Ot(_0x5a7a5f,this[_0x5f43('0x13')])),_0x2a554a=_0xa86dec['is'](_0x5f43('0xa0'))?_0x30caa9:_0x30caa9[_0x5f43('0xa6')](_0x224203=>Ot(_0x224203,this[_0x5f43('0x13')]));if('never'===this['_trackFormatChanges']){const _0x10f6e7=this['_suggestionFactory'][_0x5f43('0x134')]('formatBlock',_0x3c680c,_0x5f43('0x103'));return this[_0x5f43('0x58')](()=>_0x10f6e7(_0x2a554a,_0x308ce4,_0x3960d3)),null;}_0x580806[_0x5f43('0x126')](..._0x2a554a);let _0xfaa41c=!0x0;for(const _0x25c9c7 of _0x580806)if(!this[_0x5f43('0x11c')](_0x25c9c7)){_0xfaa41c=!0x1;break;}if(_0xfaa41c&&_0x5f43('0x14')!==this[_0x5f43('0x51')]){const _0x3bec1d=this[_0x5f43('0x36')][_0x5f43('0x134')]('formatBlock',_0x3c680c,_0x5f43('0x103'));return this[_0x5f43('0x58')](()=>_0x3bec1d(_0x2a554a,_0x308ce4,_0x3960d3)),null;}const _0x45703e=this[_0x5f43('0x71')][_0x5f43('0x4')][_0x5f43('0x135')](_0x5f43('0x18'))['me'];for(const _0x55a1e6 of this[_0x5f43('0x15b')]()){if(_0x55a1e6[_0x5f43('0x127')]['id']!=_0x45703e['id'])continue;if(_0x5f43('0x114')!=_0x55a1e6[_0x5f43('0x4b')]||_0x55a1e6['data'][_0x5f43('0x69')]!=_0x308ce4[_0x5f43('0x69')])continue;if(!Pt(_0x55a1e6,_0x3960d3))continue;const _0x38b659=_0x55a1e6['subType']==_0x3c680c;for(let _0x4405ca=0x0;_0x4405ca<_0x2a554a[_0x5f43('0x163')];_0x4405ca++){const _0x449625=_0x2a554a[_0x4405ca];for(const _0x14b697 of _0x55a1e6[_0x5f43('0xe8')]()){const _0x3c49b7=_0x14b697['getRange']();if(_0x449625[_0x5f43('0x129')](_0x3c49b7)){_0x38b659?(_0x2a554a[_0x5f43('0x169')](_0x4405ca,0x1),_0x4405ca--):_0x55a1e6['removeMarker'](_0x14b697[_0x5f43('0x75')]);break;}}}}if(0x0==_0x2a554a[_0x5f43('0x163')])return null;const _0x3269e3=this[_0x5f43('0x36')][_0x5f43('0x134')](_0x5f43('0x114'),_0x3c680c,_0x5f43('0x13a'));for(const _0x12b58a of this['getSuggestions']())if(_0x12b58a['author']['id']==_0x45703e['id']&&'formatBlock'==_0x12b58a[_0x5f43('0x4b')]&&_0x12b58a[_0x5f43('0x113')][_0x5f43('0x69')]==_0x308ce4['formatGroupId']&&_0x12b58a[_0x5f43('0x45')]==_0x3c680c&&Pt(_0x12b58a,_0x3960d3)&&(_0x3269e3(_0x12b58a[_0x5f43('0x111')](),_0x2a554a)||_0x3269e3(_0x2a554a,_0x12b58a[_0x5f43('0x111')]()))){for(const _0x1b4d59 of _0x2a554a)_0x12b58a[_0x5f43('0x32')](_0x1b4d59);return _0x12b58a;}const _0x32bae2=_0x3c9c75(),_0x5dd05c=_0x45703e['id'],_0x56ce7b=_0x5f43('0x8d')+_0x3c680c,_0x4ba3ac=this[_0x5f43('0xd9')]({'id':_0x32bae2,'type':_0x56ce7b,'data':_0x308ce4,'createdAt':new Date(),'authorId':_0x5dd05c,'attributes':_0x3960d3});for(const _0x29ff2d of _0x2a554a)this['_addSuggestionMarker'](_0x56ce7b,_0x32bae2,_0x5dd05c,_0x29ff2d,_0x1c904e[_0x5f43('0xf1')]());return _0x4ba3ac;}[_0x5f43('0xe1')](_0x517c8e,_0x2373a1=null,_0x51f9a6={}){if(_0x517c8e[_0x5f43('0x6')])return null;const _0x34d60a=this['editor'][_0x5f43('0x4')][_0x5f43('0x135')]('Users')['me'],_0x40f881=new _0x128c3b(_0x517c8e[_0x5f43('0xf7')],_0x517c8e[_0x5f43('0x179')]);for(const {suggestion:_0x58838a,meta:_0x1a6b6b}of this['_findSuggestions'](_0x40f881,_0x5f43('0x2e')))if(_0x1a6b6b[_0x5f43('0xd8')]&&!_0x1a6b6b[_0x5f43('0x7e')]){if(_0x58838a[_0x5f43('0x26')]){const _0x89b817=_0x58838a[_0x5f43('0x111')]()['filter'](_0x2e30ff=>_0x5f43('0x136')!=_0x2e30ff[_0x5f43('0x12c')][_0x5f43('0x164')]);_0x89b817[_0x5f43('0x12e')](_0x28fe48=>_0x40f881[_0x5f43('0x118')](_0x28fe48,!0x0))&&_0x58838a[_0x5f43('0x117')]();if(_0x89b817[_0x5f43('0x112')](_0x45245b=>_0x45245b[_0x5f43('0x118')](_0x40f881,!0x0))){const _0x48b50e=this['_suggestionFactory'][_0x5f43('0x134')]('deletion',_0x2373a1,_0x5f43('0x103'));return this[_0x5f43('0x58')](()=>_0x48b50e([_0x40f881],null,_0x51f9a6)),null;}}else{const _0x4c8c86=_0x40f881[_0x5f43('0x125')](_0x58838a[_0x5f43('0x15')]());null!==_0x4c8c86&&_0x58838a[_0x5f43('0x74')]([_0x4c8c86],null,_0x51f9a6);}}if(_0x40f881[_0x5f43('0x49')](),_0x40f881[_0x5f43('0x6')]||_0x5f43('0x136')==_0x40f881['root'][_0x5f43('0x164')])return null;let _0xaed670=null,_0x2efc52=_0x40f881[_0x5f43('0xf7')],_0x1e850f=_0x40f881[_0x5f43('0x179')];const _0x88cb2a=this[_0x5f43('0x8f')](_0x40f881,_0x5f43('0xa2'));for(const {suggestion:_0x54c16e,meta:_0x2989cb}of _0x88cb2a){const _0x2fbef3=this[_0x5f43('0x13')][_0x5f43('0x38')](_0x2efc52,_0x1e850f);if(_0x2989cb[_0x5f43('0xd8')]&&(this[_0x5f43('0x42')]||!_0x2989cb['containsRangeInObject']&&!_0x2989cb[_0x5f43('0x3b')])){if(_0x54c16e[_0x5f43('0x26')]){if(!Pt(_0x54c16e,_0x51f9a6))continue;let _0x40359b=!0x0;for(const _0x2200ae of _0x54c16e[_0x5f43('0x111')]()){if(_0x2200ae['containsRange'](_0x2fbef3,!0x0))return _0x54c16e;_0x2fbef3[_0x5f43('0x118')](_0x2200ae)||(_0x40359b=!0x1);}_0x40359b&&_0x54c16e['discard']();}else{const _0x43ec7b=_0x54c16e['getFirstRange']();if(_0x43ec7b['containsRange'](_0x2fbef3,!0x0))return _0x54c16e;if(!Pt(_0x54c16e,_0x51f9a6)){_0x2fbef3[_0x5f43('0x118')](_0x43ec7b)?_0x54c16e[_0x5f43('0x20')]():_0x43ec7b[_0x5f43('0x6f')](_0x2efc52)?_0x2efc52=_0x43ec7b[_0x5f43('0x179')]:_0x43ec7b[_0x5f43('0x6f')](_0x1e850f)&&(_0x1e850f=_0x43ec7b[_0x5f43('0xf7')]);continue;}_0x2efc52=_0x2efc52['isBefore'](_0x43ec7b[_0x5f43('0xf7')])?_0x2efc52:_0x43ec7b[_0x5f43('0xf7')],_0x1e850f=_0x1e850f['isAfter'](_0x43ec7b[_0x5f43('0x179')])?_0x1e850f:_0x43ec7b['end'],_0x51f9a6=Object[_0x5f43('0xb7')]({},_0x54c16e['attributes']),_0xaed670?_0x43ec7b['start'][_0x5f43('0x15d')](_0xaed670[_0x5f43('0x15')]()[_0x5f43('0xf7')])?(_0xaed670[_0x5f43('0x20')](),_0xaed670=_0x54c16e):_0x54c16e[_0x5f43('0x20')]():_0xaed670=_0x54c16e;}}}if(_0xaed670)return this['_setSuggestionRange'](_0xaed670,this[_0x5f43('0x13')][_0x5f43('0x38')](_0x2efc52,_0x1e850f)),_0xaed670;{const _0x57ed5e=_0x3c9c75(),_0x72c98e=this['_model'][_0x5f43('0x38')](_0x2efc52,_0x1e850f),_0x3e9d99=_0x34d60a['id'],_0x399782=_0x2373a1?_0x5f43('0x44')+_0x2373a1:_0x5f43('0xa2'),_0x339979=this[_0x5f43('0xd9')]({'id':_0x57ed5e,'type':_0x399782,'createdAt':new Date(),'authorId':_0x3e9d99,'attributes':_0x51f9a6});return this[_0x5f43('0x92')](_0x399782,_0x57ed5e,_0x3e9d99,_0x72c98e),_0x339979;}}['markMultiRangeDeletion'](_0x359e7e,_0x208c7a=_0x5f43('0x10a'),_0x35a6f5={}){const _0x43576a=this[_0x5f43('0x71')]['plugins']['get'](_0x5f43('0x18'))['me'],_0x3cfbea=_0x359e7e[_0x5f43('0xa6')](_0xf1a3e9=>new _0x128c3b(_0xf1a3e9[_0x5f43('0xf7')],_0xf1a3e9[_0x5f43('0x179')])),_0x3b0e3d=new Set();for(const {suggestion:_0x180a91,meta:_0x3925af}of this['_findSuggestions'](_0x3cfbea,_0x5f43('0x2e')))_0x3925af[_0x5f43('0xd8')]&&!_0x3925af['isNextTo']&&_0x3b0e3d['add'](_0x180a91);for(const _0xf6a9b0 of _0x3b0e3d)if(_0xf6a9b0[_0x5f43('0x26')]){const _0x273181=_0xf6a9b0['getRanges']();(!_0xf6a9b0[_0x5f43('0x5b')]||!_0xf6a9b0[_0x5f43('0x5b')][_0x5f43('0x12a')])&&(_0x273181['every'](_0x1f2cb1=>_0x3cfbea[_0x5f43('0x112')](_0x267613=>_0x267613['containsRange'](_0x1f2cb1,!0x0)))&&_0xf6a9b0[_0x5f43('0x117')]());if(_0x3cfbea[_0x5f43('0x12e')](_0x1990a0=>_0x273181[_0x5f43('0x112')](_0x521ad6=>_0x521ad6['containsRange'](_0x1990a0,!0x0)))){const _0x3353bb=this['_suggestionFactory'][_0x5f43('0x134')]('deletion',_0x208c7a,'accept');return this[_0x5f43('0x58')](()=>_0x3353bb(_0x359e7e,null,_0x35a6f5)),null;}}else{const _0x833f11=_0xf6a9b0[_0x5f43('0x15')]();_0x3cfbea[_0x5f43('0x112')](_0x16ca06=>_0x16ca06[_0x5f43('0x118')](_0x833f11,!0x0))&&_0xf6a9b0[_0x5f43('0x117')]();if(_0x3cfbea[_0x5f43('0x12e')](_0x23d383=>_0x833f11[_0x5f43('0x118')](_0x23d383,!0x0))){const _0x42e286=this[_0x5f43('0x36')][_0x5f43('0x134')](_0x5f43('0xa2'),_0x208c7a,_0x5f43('0x103'));return this[_0x5f43('0x58')](()=>_0x42e286(_0x3cfbea,null,_0x35a6f5)),null;}}const _0x5c485b=this[_0x5f43('0x36')][_0x5f43('0x134')](_0x5f43('0xa2'),_0x208c7a,_0x5f43('0x13a'));let _0x2eac75=null;for(const _0x175481 of this['getSuggestions']())if(_0x175481['author']['id']==_0x43576a['id']&&_0x175481[_0x5f43('0x16b')]&&_0x5f43('0xa2')==_0x175481[_0x5f43('0x4b')]&&_0x175481[_0x5f43('0x45')]==_0x208c7a&&Pt(_0x175481,_0x35a6f5)&&(_0x5c485b(_0x175481[_0x5f43('0x111')](),_0x3cfbea)||_0x5c485b(_0x3cfbea,_0x175481['getRanges']()))){if(_0x2eac75){if(_0x175481['commentThread']&&_0x175481['commentThread'][_0x5f43('0x163')])continue;for(const _0x225528 of _0x175481[_0x5f43('0x111')]())_0x2eac75['isIntersectingWithRange'](_0x225528)||_0x2eac75['addRange'](_0x225528);_0x175481[_0x5f43('0x20')]();}else{_0x2eac75=_0x175481;for(const _0x1b68e9 of _0x3cfbea)_0x175481[_0x5f43('0x1d')](_0x1b68e9)||_0x175481[_0x5f43('0x32')](_0x1b68e9);}}if(_0x2eac75)return _0x2eac75;_0x3b0e3d['clear']();for(const {suggestion:_0x42d1c7,meta:_0xe18fa6}of this[_0x5f43('0x8f')](_0x3cfbea,'deletion'))_0xe18fa6[_0x5f43('0xd8')]&&(this[_0x5f43('0x42')]||!_0xe18fa6[_0x5f43('0x4e')]&&!_0xe18fa6[_0x5f43('0x3b')])&&Pt(_0x42d1c7,_0x35a6f5)&&_0x3b0e3d['add'](_0x42d1c7);for(const _0x379c61 of _0x3b0e3d){const _0x1c03c4=_0x379c61[_0x5f43('0x111')]();if(!_0x35a6f5||!_0x35a6f5['skipNestingCheck']){if(_0x3cfbea[_0x5f43('0x12e')](_0x20aebf=>_0x1c03c4['some'](_0x3f65af=>_0x3f65af['containsRange'](_0x20aebf,!0x0))))return _0x379c61;}(!_0x379c61[_0x5f43('0x5b')]||!_0x379c61[_0x5f43('0x5b')][_0x5f43('0x12a')])&&(_0x1c03c4[_0x5f43('0x12e')](_0x3f46c0=>_0x3cfbea[_0x5f43('0x112')](_0x2100d0=>_0x2100d0[_0x5f43('0x118')](_0x3f46c0,!0x0)))&&_0x379c61['discard']());}const _0x305c70=_0x3c9c75(),_0x4da780=_0x43576a['id'],_0x4cb081='deletion:'+_0x208c7a,_0x44e04f=this[_0x5f43('0xd9')]({'id':_0x305c70,'type':_0x4cb081,'createdAt':new Date(),'authorId':_0x4da780,'attributes':_0x35a6f5});for(const _0x395498 of _0x3cfbea)_0x395498[_0x5f43('0x49')](),_0x395498[_0x5f43('0x6')]||_0x5f43('0x136')==_0x395498[_0x5f43('0x12c')][_0x5f43('0x164')]||this['_addSuggestionMarker'](_0x4cb081,_0x305c70,_0x4da780,_0x395498,_0x1c904e[_0x5f43('0xf1')]());return _0x44e04f;}[_0x5f43('0x6d')](_0x137664,_0x29f89c,_0x45cf06,_0x173f10,_0x48a595){if(_0x137664[_0x5f43('0x6')])return[];if('never'===this[_0x5f43('0x51')])return[];const _0x3125d2=this[_0x5f43('0x71')][_0x5f43('0x4')]['get'](_0x5f43('0x18'))['me']['id'],_0x2917af=Array['from'](this[_0x5f43('0x101')][_0x5f43('0x28')]())[_0x5f43('0x14c')](_0x442830=>'attribute'==_0x442830[_0x5f43('0x4b')]&&_0x442830[_0x5f43('0x113')][_0x5f43('0x73')]==_0x29f89c&&_0x442830[_0x5f43('0x1d')](_0x137664));if(_0x5f43('0xcb')===this[_0x5f43('0x51')]){const _0x79a6=this[_0x5f43('0x8f')](_0x137664,_0x5f43('0x2e'))['filter'](({meta:_0x168eb2})=>_0x168eb2[_0x5f43('0xd8')]&&!_0x168eb2[_0x5f43('0x3b')]&&!_0x168eb2['isNextTo'])[_0x5f43('0xa6')](({suggestion:_0x485037})=>_0x485037);_0x2917af['unshift'](..._0x79a6);}const _0x102988=new Map([[_0x137664,_0x45cf06]]);for(const _0x46396c of _0x2917af){const _0x33b6f4=_0x5f43('0x162')==_0x46396c['type']?_0x46396c[_0x5f43('0x113')][_0x5f43('0x154')]:void 0x0,_0x2afea3=_0x46396c[_0x5f43('0x15')](),_0x1c2000=Array[_0x5f43('0xd4')](_0x102988[_0x5f43('0x172')]())[_0x5f43('0x9a')](_0x143a68=>_0x143a68[_0x5f43('0xc2')](_0x2afea3));if(!_0x1c2000)continue;const _0x1cc4b0=_0x1c2000['getDifference'](_0x2afea3);this['_isBlockAttribute'](_0x29f89c)&&_0x5f43('0x2e')==_0x46396c['type']&&0x0!=_0x1cc4b0['length']||(_0x102988[_0x5f43('0x141')](_0x1c2000),_0x1cc4b0['forEach'](_0x42ac97=>{_0x102988['set'](_0x42ac97,_0x45cf06);}),_0x5f43('0x2e')!=_0x46396c['type']&&_0x33b6f4!=_0x173f10&&_0x102988[_0x5f43('0xbc')](_0x1c2000[_0x5f43('0x125')](_0x2afea3),_0x33b6f4));}const _0x57d107=[];for(const [_0x41cfbf,_0x59f1fa]of _0x102988){const _0x3a9cd3=_0x3c9c75(),_0x53162f={'key':_0x29f89c,'oldValue':_0x59f1fa,'newValue':_0x173f10};_0x29f89c['length']>0x25&&console[_0x5f43('0xb3')](_0x5f43('0xc9'),{'key':_0x29f89c});const _0x5e3119=(_0x5f43('0x66')+(_0x29f89c+'|'+Et({'newValue':_0x173f10})))[_0x5f43('0xfc')](0x0,0x3c),_0x19bc6d=this[_0x5f43('0xd9')]({'id':_0x3a9cd3,'type':_0x5e3119,'data':_0x53162f,'createdAt':new Date(),'authorId':_0x3125d2,'attributes':_0x48a595});_0x57d107[_0x5f43('0x126')](_0x19bc6d),this[_0x5f43('0x92')](_0x5e3119,_0x3a9cd3,_0x3125d2,_0x41cfbf);}return _0x57d107;}[_0x5f43('0x124')](_0x3125c4){this[_0x5f43('0xd2')]['add'](_0x3125c4);}[_0x5f43('0x16d')](_0x603f1d){this[_0x5f43('0xc3')][_0x5f43('0x176')](_0x603f1d);}['_enableDefaultAttributesIntegration'](_0xae858a,_0x8ea31b=[],_0x488816=[]){this[_0x5f43('0x10')](_0xae858a,(_0x1c42a7,..._0x468a11)=>{this[_0x5f43('0x116')](()=>{_0x1c42a7(..._0x468a11);});});for(const _0x1e7c9e of _0x8ea31b)this['_registerInlineAttribute'](_0x1e7c9e);for(const _0x3157c2 of _0x488816)this[_0x5f43('0x124')](_0x3157c2);}[_0x5f43('0x3')](_0x5212c0){return'attribute'==_0x5212c0[_0x5f43('0x4b')]?_0x5212c0['subType'][_0x5f43('0x146')]('|')[0x0]:null;}[_0x5f43('0x104')](_0x374eff,_0x3e3fcb){const _0x3620c0=_0x374eff[_0x5f43('0x1e')]();this[_0x5f43('0x13')][_0x5f43('0x43')](_0x32ed98=>{_0x32ed98[_0x5f43('0xdc')](_0x3620c0,{'range':_0x3e3fcb});});}['_addThreadToSuggestion'](_0x3bfa8d){const _0x5f5616=_0x3bfa8d['id'],_0x48d355=this[_0x5f43('0x71')]['config'][_0x5f43('0x135')](_0x5f43('0xc8'));this[_0x5f43('0xb0')][_0x5f43('0xb5')](_0x5f5616)||this[_0x5f43('0xb0')][_0x5f43('0xd0')]({'channelId':_0x48d355,'threadId':_0x5f5616,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4fae89=this[_0x5f43('0xb0')][_0x5f43('0x7a')](_0x5f5616);_0x4fae89[_0x5f43('0x11f')](_0x5f43('0xcd')),_0x4fae89[_0x5f43('0xcd')]=!0x1,_0x3bfa8d[_0x5f43('0x31')]=_0x4fae89;}[_0x5f43('0x0')](_0x62cfb5,_0x1bdc79,_0x12cf22,_0x274647){if(_0x62cfb5['type']!=_0x1bdc79||_0x62cfb5[_0x5f43('0x45')]!=_0x12cf22||_0x62cfb5[_0x5f43('0xaf')]['id']!=_0x274647)throw this['editor'][_0x5f43('0x168')]('track-changes-suggestion-data-mismatch'),new _0x32eb26(_0x5f43('0x94'),this);}[_0x5f43('0xbf')](_0x2eb22b,_0x6f3d17){const _0x4f25ff=_0x2eb22b['getFirstRange']();if(_0x6f3d17[_0x5f43('0x129')](_0x4f25ff))_0x2eb22b[_0x5f43('0x20')]();else{if(_0x4f25ff[_0x5f43('0x118')](_0x6f3d17)){const _0x1a240d=this[_0x5f43('0x13')]['createPositionAt'](_0x6f3d17['start']['nodeBefore'],_0x5f43('0x179'));this[_0x5f43('0x104')](_0x2eb22b,this[_0x5f43('0x13')][_0x5f43('0x38')](_0x4f25ff[_0x5f43('0xf7')],_0x1a240d));const _0x365076=_0x3c9c75(),_0x587b7d=_0x2eb22b[_0x5f43('0xaf')]['id'],_0x2c5dcd=_0x2eb22b['type']+':'+_0x2eb22b[_0x5f43('0x45')];this[_0x5f43('0xd9')]({'id':_0x365076,'type':_0x2c5dcd,'createdAt':new Date(),'authorId':_0x587b7d,'data':_0x2eb22b[_0x5f43('0x113')],'attributes':_0x2eb22b[_0x5f43('0x5b')]});const _0x2cedd4=this[_0x5f43('0x13')][_0x5f43('0x6e')](_0x6f3d17[_0x5f43('0x179')][_0x5f43('0xf5')],_0x5f43('0x11')),_0x229f78=this['_model'][_0x5f43('0x38')](_0x2cedd4,_0x4f25ff[_0x5f43('0x179')]);this[_0x5f43('0x92')](_0x2c5dcd,_0x365076,_0x587b7d,_0x229f78);}else{if(_0x4f25ff[_0x5f43('0x6f')](_0x6f3d17[_0x5f43('0xf7')])){const _0x4ebfea=this['_model'][_0x5f43('0x6e')](_0x6f3d17[_0x5f43('0xf7')][_0x5f43('0x100')],'end');this[_0x5f43('0x104')](_0x2eb22b,this[_0x5f43('0x13')][_0x5f43('0x38')](_0x4f25ff[_0x5f43('0xf7')],_0x4ebfea));}else{const _0x50f849=this[_0x5f43('0x13')][_0x5f43('0x6e')](_0x6f3d17[_0x5f43('0x179')]['parent'],_0x5f43('0x11'));this[_0x5f43('0x104')](_0x2eb22b,this[_0x5f43('0x13')][_0x5f43('0x38')](_0x50f849,_0x4f25ff[_0x5f43('0x179')]));}}}}[_0x5f43('0x11c')](_0x3eb2c4){for(const {suggestion:_0x190551,meta:_0xbd5df2}of this['_findSuggestions'](_0x3eb2c4,_0x5f43('0x2e'))){if(!_0xbd5df2[_0x5f43('0xd8')])continue;const _0x2aad3e=_0x190551[_0x5f43('0x111')]();for(const _0x35e48f of _0x2aad3e)if(!_0x3eb2c4['getDifference'](_0x35e48f)['length'])return!0x0;}return!0x1;}[_0x5f43('0x47')](_0x3e61e3){const _0x24242=this[_0x5f43('0x71')][_0x5f43('0x4')][_0x5f43('0x135')]('Users')[_0x5f43('0x64')](_0x3e61e3);if(!_0x24242)throw new _0x32eb26(_0x5f43('0xdb'),this);return _0x24242;}['_getExternalAuthor'](_0x12d5bd){const _0x4cce34=this[_0x5f43('0x71')][_0x5f43('0x4')]['get'](_0x5f43('0x18')),_0x198e75=_0x58b5e8('external:'+_0x12d5bd),_0x47110c=_0x4cce34['getUser'](_0x198e75);return _0x47110c||_0x4cce34['addUser']({'id':_0x198e75,'name':_0x12d5bd});}['_createSuggestion'](_0x2a0f85,_0x47bdce,_0x4e0761,_0x4a57f1,_0x134635){const _0x2a5691=this[_0x5f43('0x47')](_0x4a57f1),_0x193064=this[_0x5f43('0x36')][_0x5f43('0xe3')](_0x2a0f85,_0x47bdce,_0x4e0761,_0x2a5691,_0x134635,_0x513aef=>{this[_0x5f43('0x2f')](_0x4e0761,{'attributes':_0x513aef});const _0x6a17ad=this['getSuggestion'](_0x4e0761);this[_0x5f43('0x166')](new Set([_0x6a17ad])),this[_0x5f43('0x16e')](new Set([_0x6a17ad]));});return this[_0x5f43('0xc7')](_0x193064,_0x5f43('0x103'),()=>{this[_0x5f43('0x2f')](_0x4e0761,{'state':_0x5f43('0x62')});},{'priority':_0x5f43('0xa9')}),this['listenTo'](_0x193064,_0x5f43('0x117'),()=>{this['_updateSuggestionData'](_0x4e0761,{'state':'rejected'});},{'priority':_0x5f43('0xa9')}),this[_0x5f43('0x101')][_0x5f43('0xbc')](_0x4e0761,_0x193064),this[_0x5f43('0x7')]['set'](_0x193064,_0x5f43('0x2d')),_0x193064;}[_0x5f43('0xde')](_0xe2e63c){const _0x4e46b4=_0xe2e63c[_0x5f43('0x146')](':');return{'group':_0x4e46b4[0x0],'type':_0x4e46b4[0x1],'subType':_0x4e46b4[_0x5f43('0x163')]>=0x5?_0x4e46b4[0x2]:null,'id':_0x4e46b4[_0x5f43('0x163')]<0x5?_0x4e46b4[0x2]:_0x4e46b4[0x3],'authorId':_0x4e46b4[_0x5f43('0x163')]<0x5?_0x4e46b4[0x3]:_0x4e46b4[0x4],'markerCount':0x6==_0x4e46b4[_0x5f43('0x163')]?_0x4e46b4[0x5]:null};}[_0x5f43('0xa4')](_0x2e735c,_0x21ab21,_0x580a79){const _0x4f8525=_0x2e735c[_0x5f43('0x15')](),_0x373540=_0x4f8525[_0x5f43('0xf7')],_0xe705c6=_0x4f8525[_0x5f43('0x179')];this[_0x5f43('0x104')](_0x2e735c,this[_0x5f43('0x13')][_0x5f43('0x38')](_0x373540,_0x21ab21));const _0x2ba016=_0x3c9c75(),_0x222a45=_0x2e735c[_0x5f43('0xaf')]['id'],_0x4c2553=_0x2e735c[_0x5f43('0x4b')]+(_0x2e735c[_0x5f43('0x45')]?':'+_0x2e735c[_0x5f43('0x45')]:'');this['_setSuggestionData']({'id':_0x2ba016,'type':_0x4c2553,'createdAt':new Date(),'authorId':_0x222a45,'originalSuggestionId':_0x2e735c['id'],'attributes':_0x2e735c[_0x5f43('0x5b')],'data':_0x2e735c[_0x5f43('0x113')]});const _0x525f9f=this[_0x5f43('0x3')](_0x2e735c);('formatBlock'==_0x2e735c[_0x5f43('0x4b')]||_0x525f9f&&this['_isBlockAttribute'](_0x525f9f))&&(_0x580a79=this[_0x5f43('0x13')][_0x5f43('0xab')](_0x580a79[_0x5f43('0xf5')])),this[_0x5f43('0x92')](_0x4c2553,_0x2ba016,_0x222a45,this['_model']['createRange'](_0x580a79,_0xe705c6));}['_findSuggestions'](_0x513780,_0x493e2d=null){const _0x543c8c=[],_0x48441a=this[_0x5f43('0x71')][_0x5f43('0x4')][_0x5f43('0x135')](_0x5f43('0x18'))['me'];Array[_0x5f43('0x178')](_0x513780)||(_0x513780=[_0x513780]);for(const _0x49247d of this[_0x5f43('0x15b')]()){if(!_0x49247d[_0x5f43('0x16b')])continue;if(_0x493e2d&&_0x49247d['type']!=_0x493e2d)continue;let _0x27750c=!0x1;for(const _0x2030f0 of _0x49247d[_0x5f43('0x111')]()){for(const _0x486ab8 of _0x513780){const _0x4569b4=_0x486ab8['start'][_0x5f43('0x129')](_0x2030f0[_0x5f43('0x179')])||_0x486ab8[_0x5f43('0x179')][_0x5f43('0x129')](_0x2030f0[_0x5f43('0xf7')]);if(_0x4569b4||_0x486ab8[_0x5f43('0x125')](_0x2030f0)){const _0x1c2258=_0x486ab8[_0x5f43('0x118')](_0x2030f0)&&xt(this['_model']['schema'],_0x2030f0['start'],_0x486ab8),_0xcee56c=_0x2030f0[_0x5f43('0x118')](_0x486ab8)&&xt(this[_0x5f43('0x13')][_0x5f43('0xba')],_0x486ab8[_0x5f43('0xf7')],_0x2030f0);_0x543c8c[_0x5f43('0x126')]({'suggestion':_0x49247d,'meta':{'isOwn':_0x48441a==_0x49247d['author'],'isNextTo':_0x4569b4,'isInsideObject':_0x1c2258,'containsRangeInObject':_0xcee56c}}),_0x27750c=!0x0;break;}}if(_0x27750c)break;}}return _0x543c8c;}[_0x5f43('0x92')](_0xaf1ac2,_0x5e668f,_0x3a11d9,_0xc9dce8,_0x2998fb){this[_0x5f43('0x13')][_0x5f43('0x43')](_0x282c88=>{let _0x2f709f=_0x5f43('0x5e')+_0xaf1ac2+':'+_0x5e668f+':'+_0x3a11d9;_0x2998fb&&(_0x2f709f=_0x2f709f+':'+_0x2998fb),_0x282c88[_0x5f43('0xe9')](_0x2f709f,{'range':_0xc9dce8,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5f43('0x147')](_0x4f8885){const _0x26c511=_0x4f8885['previous'],_0x5c697b=_0x4f8885[_0x5f43('0x167')];_0x4f8885['previous']=null,_0x4f8885[_0x5f43('0x167')]=null,null!=_0x26c511&&_0x26c511[_0x5f43('0x167')]==_0x4f8885&&(_0x26c511[_0x5f43('0x167')]=_0x5c697b),null!=_0x5c697b&&_0x5c697b[_0x5f43('0x6b')]==_0x4f8885&&(_0x5c697b['previous']=_0x26c511),_0x5f43('0x9e')==this[_0x5f43('0x7')][_0x5f43('0x135')](_0x4f8885)&&(this[_0x5f43('0x7')][_0x5f43('0xbc')](_0x4f8885,_0x5f43('0x15e')),this[_0x5f43('0x55')](_0x5f43('0x13c'),_0x4f8885,_0x26c511,_0x5c697b));}['_setSuggestionData'](_0x3c26b2){const _0x502570=_0x3c26b2['id'],_0x1bdeea=this[_0x5f43('0xee')](_0x3c26b2);if(this['_adapter']&&this[_0x5f43('0x13d')][_0x5f43('0xcc')]){const _0x227fbb=this[_0x5f43('0x71')][_0x5f43('0x4')][_0x5f43('0x135')](_0x5f43('0xd6')),_0x30335b=_0x1bdeea[_0x5f43('0xfd')],_0x1d3914=_0x1bdeea[_0x5f43('0x45')]?_0x1bdeea[_0x5f43('0x4b')]+':'+_0x1bdeea[_0x5f43('0x45')]:_0x1bdeea[_0x5f43('0x4b')],_0x3ec201=this[_0x5f43('0x71')][_0x5f43('0x99')],_0x501bfc=_0x227fbb['add'](_0x73b0d4(_0x3ec201,_0x5f43('0x97'))),_0x1e3556={'id':_0x502570,'type':_0x1d3914,'hasComments':_0x30335b,'data':_0x3c26b2[_0x5f43('0x113')]||null,'originalSuggestionId':_0x3c26b2[_0x5f43('0x65')]||null,'attributes':_0x1bdeea[_0x5f43('0x5b')]};this['_adapter'][_0x5f43('0xcc')](_0x1e3556)[_0x5f43('0xd5')](_0x26d5d4=>{_0x1bdeea['_saved']=!0x0,_0x227fbb['remove'](_0x501bfc),_0x26d5d4&&_0x26d5d4[_0x5f43('0x158')]&&(this[_0x5f43('0x101')]['get'](_0x502570)[_0x5f43('0x158')]=_0x26d5d4[_0x5f43('0x158')]);})['catch'](_0x266664=>{throw _0x344a5e(_0x5f43('0x157')),this[_0x5f43('0x71')][_0x5f43('0xf0')][_0x5f43('0x60')]({'isUndoable':!0x1},()=>{_0x1bdeea[_0x5f43('0x117')]();}),_0x1bdeea[_0x5f43('0x96')](),this[_0x5f43('0x101')][_0x5f43('0x141')](_0x1bdeea['id']),this[_0x5f43('0x7')][_0x5f43('0x141')](_0x1bdeea),_0x266664;});}return _0x1bdeea;}['_isBlockAttribute'](_0x5d58fa){return this[_0x5f43('0xd2')][_0x5f43('0x10d')](_0x5d58fa);}[_0x5f43('0x2f')](_0x25a7f8,_0x5bce30){const _0x1bf188=this[_0x5f43('0x71')]['plugins'][_0x5f43('0x135')](_0x5f43('0xd6')),_0x1bf62e=this[_0x5f43('0x11e')](_0x25a7f8);if(this[_0x5f43('0x13d')]&&this[_0x5f43('0x13d')]['updateSuggestion']){if(_0x1bf62e[_0x5f43('0x78')]){const _0x3abb91=_0x1bf188[_0x5f43('0x176')](_0x73b0d4(this[_0x5f43('0x71')][_0x5f43('0x99')],_0x5f43('0x97')));this[_0x5f43('0x13d')][_0x5f43('0x150')](_0x25a7f8,_0x5bce30)['then'](()=>{_0x1bf188['remove'](_0x3abb91);});}else _0x1bf62e['on'](_0x5f43('0xf6'),()=>{this[_0x5f43('0x2f')](_0x25a7f8,_0x5bce30);});}}[_0x5f43('0xc1')](_0x2fe81a){if(!this[_0x5f43('0x13d')]||!this['_adapter'][_0x5f43('0x11e')])throw new _0x32eb26(_0x5f43('0x156'),this);return this['_adapter'][_0x5f43('0x11e')](_0x2fe81a);}[_0x5f43('0x48')](_0x342900){const {id:_0x40ff89,type:_0x126d50,subType:_0x120935,authorId:_0x5736b8}=this['_splitMarkerName'](_0x342900),_0x46bdf5=this[_0x5f43('0x101')][_0x5f43('0x135')](_0x40ff89)||this['_createSuggestion'](_0x126d50,_0x120935,_0x40ff89,_0x5736b8,{});switch(this[_0x5f43('0x0')](_0x46bdf5,_0x126d50,_0x120935,_0x5736b8),this[_0x5f43('0x7')][_0x5f43('0x135')](_0x46bdf5)){case _0x5f43('0x2d'):this[_0x5f43('0xc1')](_0x40ff89)[_0x5f43('0xd5')](_0x180cd8=>{let _0x54abab=Promise['resolve']();_0x180cd8[_0x5f43('0xfd')]&&(_0x54abab=this[_0x5f43('0xb0')][_0x5f43('0x13b')]({'channelId':this['editor'][_0x5f43('0x10f')][_0x5f43('0x135')](_0x5f43('0xc8')),'threadId':_0x40ff89})),_0x54abab[_0x5f43('0xd5')](()=>{this[_0x5f43('0xee')](_0x180cd8)['_saved']=!0x0;});}),this[_0x5f43('0x7')][_0x5f43('0xbc')](_0x46bdf5,_0x5f43('0x170'));break;case'removed':this[_0x5f43('0x2f')](_0x40ff89,{'state':'open'});case _0x5f43('0x138'):this[_0x5f43('0x7')][_0x5f43('0xbc')](_0x46bdf5,'ready'),this['fire'](_0x5f43('0xd1'),_0x46bdf5);break;case'ready':this[_0x5f43('0x55')](_0x5f43('0xaa'),_0x46bdf5);}return _0x46bdf5[_0x5f43('0x6c')](_0x342900),_0x46bdf5;}[_0x5f43('0x16e')](_0x4d5ec3){const _0x1279bd=Array[_0x5f43('0xd4')](_0x4d5ec3),_0x76390=_0x1279bd[_0x5f43('0x14c')](_0x18c940=>_0x5f43('0x162')==_0x18c940[_0x5f43('0x4b')]);this[_0x5f43('0x17b')](_0x76390);const _0x239f2e=_0x1279bd['filter'](_0x3b1b42=>!_0x3b1b42[_0x5f43('0x26')]&&_0x5f43('0x162')!=_0x3b1b42[_0x5f43('0x4b')]),_0x1598c9=this[_0x5f43('0x15b')]({'skipNotAttached':!0x0})['filter'](_0xca863a=>!_0xca863a[_0x5f43('0x26')]&&_0x5f43('0x162')!=_0xca863a[_0x5f43('0x4b')]),_0x1c88ae=_0x1598c9[_0x5f43('0x14c')](_0x537892=>!_0x4d5ec3[_0x5f43('0x10d')](_0x537892)),_0x4324df=new Map(_0x1598c9['map'](_0x46779f=>[_0x46779f,this['_suggestionFactory'][_0x5f43('0x134')](_0x46779f[_0x5f43('0x4b')],_0x46779f[_0x5f43('0x45')],_0x5f43('0xfa'))])),_0x2bc1bc=new Map(_0x1598c9[_0x5f43('0xa6')](_0x1686c5=>[_0x1686c5,_0x1686c5[_0x5f43('0x15')]()])),_0x56eb36=new Set(),_0x12f619=new Set();for(let _0x581526=0x0;_0x581526<_0x239f2e['length'];_0x581526++)_0x444e70(_0x239f2e[_0x581526],_0x239f2e,_0x581526+0x1);for(let _0x3feea0=0x0;_0x3feea0<_0x239f2e['length'];_0x3feea0++)_0x444e70(_0x239f2e[_0x3feea0],_0x1c88ae,0x0);const _0x4db883=new Set();for(let _0x21517f=0x0;_0x21517f<_0x239f2e[_0x5f43('0x163')];_0x21517f++){const _0x4e4585=_0x239f2e[_0x21517f];!_0x12f619[_0x5f43('0x10d')](_0x4e4585)&&_0x4e4585['previous']&&(_0x4db883[_0x5f43('0x176')](_0x4e4585[_0x5f43('0x6b')]),_0x4e4585['previous'][_0x5f43('0x167')]===_0x4e4585&&(_0x4e4585[_0x5f43('0x6b')][_0x5f43('0x167')]=null),_0x4e4585[_0x5f43('0x6b')]=null),!_0x56eb36[_0x5f43('0x10d')](_0x4e4585)&&_0x4e4585[_0x5f43('0x167')]&&(_0x4db883[_0x5f43('0x176')](_0x4e4585[_0x5f43('0x167')]),_0x4e4585[_0x5f43('0x167')][_0x5f43('0x6b')]===_0x4e4585&&(_0x4e4585[_0x5f43('0x167')][_0x5f43('0x6b')]=null),_0x4e4585[_0x5f43('0x167')]=null);}function _0x444e70(_0x13d5c5,_0x1a0e3d,_0x193e99){for(let _0x37cec5=_0x193e99;_0x37cec5<_0x1a0e3d[_0x5f43('0x163')];_0x37cec5++){const _0x1c57c1=_0x76519(_0x13d5c5,_0x1a0e3d[_0x37cec5]);_0x1c57c1&&(_0x1c57c1[0x0][_0x5f43('0x167')]=_0x1c57c1[0x1],_0x1c57c1[0x1]['previous']=_0x1c57c1[0x0],_0x56eb36['add'](_0x1c57c1[0x0]),_0x12f619[_0x5f43('0x176')](_0x1c57c1[0x1]));}}function _0x76519(_0x547c33,_0x2702fa){if(_0x547c33['author']['id']!==_0x2702fa[_0x5f43('0x127')]['id'])return null;const _0x3388af=_0x4324df[_0x5f43('0x135')](_0x547c33)(_0x547c33,_0x2702fa,_0x2bc1bc['get'](_0x547c33),_0x2bc1bc[_0x5f43('0x135')](_0x2702fa));if(!_0x3388af)return null;return _0x4324df[_0x5f43('0x135')](_0x2702fa)(_0x547c33,_0x2702fa,_0x2bc1bc[_0x5f43('0x135')](_0x547c33),_0x2bc1bc[_0x5f43('0x135')](_0x2702fa))?_0x3388af[0x1]['commentThread']&&_0x3388af[0x1][_0x5f43('0x31')][_0x5f43('0x163')]?null:_0x3388af:null;}_0x4db883['size']&&this['_refreshSuggestionsChain'](_0x4db883);}['_refreshAttributeSuggestionsChain'](_0x5e9a57){if(0x0==_0x5e9a57['length'])return;const _0x1daeae=this[_0x5f43('0x15b')]({'skipNotAttached':!0x0})[_0x5f43('0x14c')](_0x38edd9=>_0x5f43('0x162')==_0x38edd9[_0x5f43('0x4b')]&&_0x38edd9[_0x5f43('0x12d')]),_0x8a1db=[],_0x44e3db=new Map();for(const _0x17c7fd of _0x1daeae){const _0x1258a3=_0x58b5e8(_0x17c7fd[_0x5f43('0x5b')]);_0x44e3db[_0x5f43('0x10d')](_0x1258a3)||(_0x44e3db[_0x5f43('0xbc')](_0x1258a3,_0x8a1db[_0x5f43('0x163')]),_0x8a1db[_0x5f43('0x126')]([]));const _0x85fdde=_0x44e3db[_0x5f43('0x135')](_0x1258a3);_0x8a1db[_0x85fdde][_0x5f43('0x126')](_0x17c7fd);}!function(){_0x8a1db['sort']((_0xae73a,_0x3828f2)=>{const _0x2fc939=_0xae73a[0x0][_0x5f43('0x158')],_0x2079cd=_0x3828f2[0x0]['createdAt'];return _0x2fc939==_0x2079cd?_0xae73a[0x0][_0x5f43('0x5b')][_0x5f43('0xa3')]<_0x3828f2[0x0][_0x5f43('0x5b')]['groupId']?-0x1:0x1:_0x2fc939<_0x2079cd?-0x1:0x1;});for(const _0xa22700 of _0x8a1db)_0xa22700[_0x5f43('0x8')]((_0x3eed3c,_0x272fcb)=>_0x3eed3c['id']<_0x272fcb['id']?-0x1:0x1);}();for(let _0x454d9d=0x0;_0x454d9d<_0x8a1db[_0x5f43('0x163')];_0x454d9d++){if(0x0==_0x8a1db[_0x454d9d][_0x5f43('0x163')])continue;const _0x37d884=[];for(let _0x1c018d=_0x454d9d+0x1;_0x1c018d<_0x8a1db[_0x5f43('0x163')];_0x1c018d++)0x0!=_0x8a1db[_0x1c018d][_0x5f43('0x163')]&&_0x4114a0(_0x8a1db[_0x454d9d],_0x8a1db[_0x1c018d])&&_0x37d884[_0x5f43('0x126')](_0x1c018d);for(const _0xe4eadc of _0x37d884)_0x8a1db[_0x454d9d]=_0x8a1db[_0x454d9d][_0x5f43('0x35')](_0x8a1db[_0xe4eadc]),_0x8a1db[_0xe4eadc]=[];}for(const _0x506531 of _0x8a1db)for(let _0xa1faa7=0x0;_0xa1faa7<_0x506531[_0x5f43('0x163')];_0xa1faa7++)_0x506531[_0xa1faa7][_0x5f43('0x167')]=_0x506531[_0xa1faa7+0x1]||null;for(const _0x3b6c6f of _0x8a1db)for(let _0x19c99a=0x0;_0x19c99a<_0x3b6c6f[_0x5f43('0x163')];_0x19c99a++)_0x3b6c6f[_0x19c99a]['previous']=_0x3b6c6f[_0x19c99a-0x1]||null;function _0x4114a0(_0x5ada4f,_0x30c079){if(_0x5ada4f[0x0]['attributes']['groupId']!==_0x30c079[0x0][_0x5f43('0x5b')][_0x5f43('0xa3')]&&_0x5ada4f[0x0][_0x5f43('0x127')]!==_0x30c079[0x0][_0x5f43('0x127')])return!0x1;if(!function(_0x216c54,_0x39a4ad){if(!_0x216c54[_0x5f43('0xfd')]&&!_0x39a4ad[_0x5f43('0xfd')])return!0x0;if(_0x216c54[_0x5f43('0xfd')]&&_0x39a4ad[_0x5f43('0xfd')])return!0x1;if(_0x216c54['hasComments']&&_0x39a4ad[_0x5f43('0x158')]<_0x216c54[_0x5f43('0x31')][_0x5f43('0x10b')][_0x5f43('0x135')](0x0)[_0x5f43('0x158')])return!0x0;if(_0x39a4ad[_0x5f43('0xfd')]&&_0x216c54[_0x5f43('0x158')]<_0x39a4ad[_0x5f43('0x31')]['comments'][_0x5f43('0x135')](0x0)[_0x5f43('0x158')])return!0x0;return!0x1;}(_0x5ada4f[0x0],_0x30c079[0x0]))return!0x1;const _0x5450b2=_0x4e25e9(_0x5ada4f[0x0]['attributes'],_0x5f43('0xa3')),_0x13b6ea=_0x4e25e9(_0x30c079[0x0][_0x5f43('0x5b')],_0x5f43('0xa3'));if(!_0x54b28f(_0x5450b2,_0x13b6ea))return!0x1;return!!_0x5ada4f[_0x5f43('0x12e')](_0x987a67=>_0x30c079[_0x5f43('0x112')](_0x4640d1=>_0x987a67[_0x5f43('0x15')]()[_0x5f43('0x129')](_0x4640d1['getFirstRange']())))&&_0x30c079[_0x5f43('0x12e')](_0x5bd13e=>_0x5ada4f['some'](_0x3388d2=>_0x5bd13e[_0x5f43('0x15')]()[_0x5f43('0x129')](_0x3388d2[_0x5f43('0x15')]())));}}[_0x5f43('0x166')](_0xa5f0a8){const _0x3dd9f3=Array['from'](_0xa5f0a8),_0x411e37=this[_0x5f43('0x15b')]({'skipNotAttached':!0x0}),_0x59446d=_0x411e37['filter'](_0x5e71fd=>!_0xa5f0a8['has'](_0x5e71fd)),_0x5c187e=new Map(_0x3dd9f3[_0x5f43('0xa6')](_0x4e8580=>[_0x4e8580,this['_suggestionFactory'][_0x5f43('0x134')](_0x4e8580['type'],_0x4e8580[_0x5f43('0x45')],_0x5f43('0x13a'))])),_0x33a9a3=new Map(_0x411e37[_0x5f43('0xa6')](_0x174889=>[_0x174889,_0x174889[_0x5f43('0x111')]()]));for(let _0x579d85=0x0;_0x579d85<_0x3dd9f3[_0x5f43('0x163')];_0x579d85++){if(_0x2d1803(this,_0x3dd9f3[_0x579d85],_0x3dd9f3,_0x579d85+0x1))return!0x0;}for(let _0x71d922=0x0;_0x71d922<_0x3dd9f3[_0x5f43('0x163')];_0x71d922++){if(_0x2d1803(this,_0x3dd9f3[_0x71d922],_0x59446d,0x0))return!0x0;}return!0x1;function _0x2d1803(_0x5c7b6b,_0x313b54,_0x559155,_0x3d3473){for(let _0x348213=_0x3d3473;_0x348213<_0x559155[_0x5f43('0x163')];_0x348213++){const _0x2b3a7f=_0x559155[_0x348213];if(_0x2b3a7f[_0x5f43('0x4b')]!==_0x313b54[_0x5f43('0x4b')]||_0x2b3a7f[_0x5f43('0x127')]['id']!==_0x313b54[_0x5f43('0x127')]['id']||_0x2b3a7f[_0x5f43('0x45')]!==_0x313b54[_0x5f43('0x45')])continue;if(!Ft(_0x313b54,_0x2b3a7f,[_0x5f43('0xa3')]))continue;if(_0x5f43('0x162')==_0x313b54[_0x5f43('0x4b')]&&_0x313b54[_0x5f43('0x113')]['oldValue']!=_0x2b3a7f['data'][_0x5f43('0x154')])continue;if(_0x5f43('0x162')==_0x313b54[_0x5f43('0x4b')]&&_0x5c7b6b[_0x5f43('0x159')](_0x313b54[_0x5f43('0x113')][_0x5f43('0x73')]))continue;if(_0x5f43('0x114')==_0x313b54[_0x5f43('0x4b')]){const _0x41f479=_0x5c7b6b[_0x5f43('0x71')][_0x5f43('0xf0')],_0x2aeda5=_0x313b54['getContainedElement']();if(_0x2aeda5&&(_0x41f479[_0x5f43('0xba')][_0x5f43('0x13e')](_0x2aeda5)||_0x41f479[_0x5f43('0xba')][_0x5f43('0x145')](_0x2aeda5)))continue;}const _0x4b3b98=_0x5c187e['get'](_0x313b54),_0x44039a=_0x33a9a3[_0x5f43('0x135')](_0x313b54),_0x55113d=_0x33a9a3[_0x5f43('0x135')](_0x2b3a7f),_0x1e290f=_0x313b54['commentThread']&&_0x313b54[_0x5f43('0x31')][_0x5f43('0x163')],_0x5c039b=_0x2b3a7f['commentThread']&&_0x2b3a7f[_0x5f43('0x31')][_0x5f43('0x163')];if(!_0x1e290f&&_0x4b3b98(_0x55113d,_0x44039a))return _0x5c7b6b[_0x5f43('0x133')](_0x2b3a7f,_0x313b54),_0x33a9a3[_0x5f43('0x141')](_0x313b54),!0x0;if(!_0x5c039b&&_0x4b3b98(_0x44039a,_0x55113d))return _0x5c7b6b[_0x5f43('0x133')](_0x313b54,_0x2b3a7f),_0x33a9a3['delete'](_0x2b3a7f),!0x0;}return!0x1;}}[_0x5f43('0x133')](_0x366b13,_0x97252){if(_0x366b13[_0x5f43('0x26')])for(const _0x142e3d of _0x97252[_0x5f43('0x111')]())_0x366b13['addRange'](_0x142e3d);else{const _0x53b318=_0x97252[_0x5f43('0x15')]()[_0x5f43('0x179')];this[_0x5f43('0x104')](_0x366b13,this['_model'][_0x5f43('0x38')](_0x366b13[_0x5f43('0x15')]()[_0x5f43('0xf7')],_0x53b318));}_0x97252[_0x5f43('0x20')]();}['_getMarkerAnnouncementText'](_0x5033b1,_0x1143c5){const _0x1d5437=_0x5033b1[_0x5f43('0xe6')](_0x5f43('0xbb'))||_0x5033b1[_0x5f43('0xe6')](_0x5f43('0x162'))?_0x5f43('0x72'):_0x5033b1[_0x5f43('0xbe')]();return _0x73b0d4(this[_0x5f43('0x71')]['locale'],_0x1143c5+'_'+_0x1d5437+_0x5f43('0x2c'));}[_0x5f43('0x10e')](){const _0x8f7c36=this[_0x5f43('0x71')];_0x51b1bb(this['_model'],({left:_0x3a421b,entered:_0x6a83dd})=>{const _0x1f6c7f=[];for(const _0x531c7f of _0x3a421b){const {group:_0xa01b0,type:_0x25a3af}=this[_0x5f43('0xde')](_0x531c7f[_0x5f43('0x75')]);if(_0x5f43('0x9b')===_0xa01b0){_0x1f6c7f[_0x5f43('0x126')](this[_0x5f43('0x7d')](_0x25a3af,'LEAVE'));break;}}for(const _0x52c31a of _0x6a83dd){const {group:_0x4c210a,type:_0x4a1166}=this[_0x5f43('0xde')](_0x52c31a['name']);if('suggestion'===_0x4c210a){_0x1f6c7f[_0x5f43('0x126')](this['_getMarkerAnnouncementText'](_0x4a1166,'ENTER'));break;}}_0x1f6c7f['length']&&_0x8f7c36['ui'][_0x5f43('0xed')][_0x5f43('0x148')]('trackChanges',_0x1f6c7f[_0x5f43('0x13a')]('\x20'));});}[_0x5f43('0x85')](_0x437c6a){if(this[_0x5f43('0x4f')])return!0x1;const _0x49e552=this[_0x5f43('0x71')],_0x5a9b7c=_0x49e552[_0x5f43('0xf0')][_0x5f43('0xf9')][_0x5f43('0x9c')]['getChanges']();if(0x0==_0x5a9b7c[_0x5f43('0x163')])return!0x1;const _0x5e5ff5=[],_0x4d45e6=_0x5a9b7c['filter'](_0x3cefb5=>_0x5f43('0x162')==_0x3cefb5[_0x5f43('0x4b')]),_0x25982e=_0x5a9b7c[_0x5f43('0x14c')](_0x2cbc62=>_0x5f43('0x161')==_0x2cbc62[_0x5f43('0x4b')]&&_0x5f43('0x14a')!=_0x2cbc62[_0x5f43('0x75')]),_0x220b40=_0x5a9b7c['filter'](_0x275fc0=>'remove'==_0x275fc0['type']&&'$text'!=_0x275fc0[_0x5f43('0x75')]);for(const _0x2fc28c of _0x4d45e6)_0x5e5ff5[_0x5f43('0x126')]({'key':_0x2fc28c[_0x5f43('0xc5')],'newValue':_0x2fc28c[_0x5f43('0x7f')],'oldValue':_0x2fc28c[_0x5f43('0x12b')],'range':Ut(_0x2fc28c[_0x5f43('0xa0')],_0x49e552[_0x5f43('0xf0')])});for(const _0x554343 of _0x25982e){const _0x1572a4=_0x220b40[_0x5f43('0x9a')](_0x3ecb7d=>_0x3ecb7d[_0x5f43('0x30')]['isEqual'](_0x554343[_0x5f43('0x30')]));_0x1572a4&&_0x5e5ff5['push']({'key':_0x5f43('0x8a'),'newValue':_0x554343[_0x5f43('0x75')],'oldValue':_0x1572a4['name'],'range':_0x49e552[_0x5f43('0xf0')][_0x5f43('0xdd')](_0x554343[_0x5f43('0x30')][_0x5f43('0x2a')])});}return 0x0!=_0x5e5ff5[_0x5f43('0x163')]&&this[_0x5f43('0x1f')](_0x437c6a,_0x5e5ff5);}['_processAttributeSuggestions'](_0x17be5f){let _0x31619e=!0x1;const _0x4b4976=this['editor'][_0x5f43('0xf0')][_0x5f43('0xf9')][_0x5f43('0x9c')][_0x5f43('0xf8')]()[_0x5f43('0x14c')](_0x13654a=>_0x13654a[_0x5f43('0x113')][_0x5f43('0xa7')]&&_0x13654a[_0x5f43('0x75')]['startsWith'](_0x5f43('0xe2')));for(const _0x31dc50 of _0x4b4976){const {subType:_0x576eef,id:_0x5a628b}=this[_0x5f43('0xde')](_0x31dc50[_0x5f43('0x75')]),_0x5be644=_0x576eef[_0x5f43('0x146')]('|')[0x0];for(const _0x348750 of this[_0x5f43('0x15b')]({'skipNotAttached':!0x0}))_0x348750['id']!=_0x5a628b&&_0x5f43('0x162')==_0x348750[_0x5f43('0x4b')]&&_0x348750['data']&&_0x348750[_0x5f43('0x113')][_0x5f43('0x73')]==_0x5be644&&_0x348750[_0x5f43('0x15')]()['isIntersecting'](_0x31dc50[_0x5f43('0x113')][_0x5f43('0xa7')])&&(this[_0x5f43('0x160')](_0x348750,_0x31dc50[_0x5f43('0x113')][_0x5f43('0xa7')],_0x17be5f),_0x31619e=!0x0);}return _0x31619e;}['_recordAttributeChanges'](_0x2b0edf){this[_0x5f43('0x71')],(this[_0x5f43('0x4f')]=!0x0,_0x2b0edf());}['_isRegisteredAttribute'](_0x5ba1ed){const _0xaeaecf=this[_0x5f43('0x159')](_0x5ba1ed),_0x516ed9=this[_0x5f43('0xc3')][_0x5f43('0x10d')](_0x5ba1ed);return _0xaeaecf||_0x516ed9;}[_0x5f43('0x1f')](_0x2caa46,_0xbea2ba){if(0x0==_0xbea2ba[_0x5f43('0x163')])return!0x1;let _0x215692=!0x1;for(const _0x47e197 of _0xbea2ba){const _0x3f70c2=this[_0x5f43('0x8f')](_0x47e197[_0x5f43('0xa0')],_0x5f43('0x162'))[_0x5f43('0x14c')](_0x2266f6=>!_0x2266f6[_0x5f43('0x1c')][_0x5f43('0x7e')])[_0x5f43('0xa6')](_0x163166=>_0x163166['suggestion']),_0x14a344=_0x58b5e8({'newValue':_0x47e197[_0x5f43('0x120')]});_0x3f70c2[_0x5f43('0x14c')](_0x28711b=>{const [_0xd1c99c,_0x43ea48]=_0x28711b[_0x5f43('0x45')]['split']('|');return _0xd1c99c==_0x47e197[_0x5f43('0x73')]&&_0x43ea48!=_0x14a344;})[_0x5f43('0x130')](_0x191114=>{this[_0x5f43('0x160')](_0x191114,_0x47e197[_0x5f43('0xa0')],_0x2caa46),_0x215692=!0x0;});}return _0x215692;}[_0x5f43('0x160')](_0x239dde,_0x3027d6,_0x2bf6ea){const _0x33e01b=_0x239dde[_0x5f43('0x15')]()[_0x5f43('0x144')](_0x3027d6);0x0!==_0x33e01b[_0x5f43('0x163')]?0x1!==_0x33e01b['length']?this[_0x5f43('0xa4')](_0x239dde,_0x3027d6[_0x5f43('0xf7')],_0x3027d6['end']):this[_0x5f43('0x104')](_0x239dde,_0x33e01b[0x0]):_0x2bf6ea[_0x5f43('0x16c')](_0x239dde[_0x5f43('0x1e')]());}}class Bt{constructor(_0x5b800a){this[_0x5f43('0x14d')]=_0x5b800a,this['_model']=_0x5b800a[_0x5f43('0xf0')],this[_0x5f43('0x17f')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x5f43('0xbd')]();}[_0x5f43('0xe3')](_0x3e25ff,_0x1a1128,_0x4b8bde,_0x5977d2,_0x37a46d,_0x32abb8){return new _0x1c904e(this[_0x5f43('0x13')],{'type':_0x3e25ff,'subType':_0x1a1128,'id':_0x4b8bde,'author':_0x5977d2,'creator':_0x5977d2,'attributes':_0x37a46d,'onAttributesChange':_0x32abb8,'onAccept':(..._0x1d52c9)=>this[_0x5f43('0x134')](_0x3e25ff,_0x1a1128,_0x5f43('0x103'))(..._0x1d52c9),'onDiscard':(..._0x243369)=>this[_0x5f43('0x134')](_0x3e25ff,_0x1a1128,_0x5f43('0x117'))(..._0x243369)});}['registerCustomCallback'](_0x2e285e,_0x56ffcf,_0x45cd44,_0x8ee83b){const _0x27b4e1=_0x2e285e+':'+_0x56ffcf+':'+_0x45cd44;this[_0x5f43('0x17f')][_0x5f43('0xbc')](_0x27b4e1,_0x8ee83b);}[_0x5f43('0x134')](_0x2cc6a6,_0x4a64b4,_0x514054){const _0x384066=_0x2cc6a6+':'+_0x4a64b4+':'+_0x514054;return this[_0x5f43('0x17f')][_0x5f43('0x135')](_0x384066)||this[_0x5f43('0xdf')]['get'](_0x2cc6a6+':'+_0x514054);}['_registerDefaultCallbacks'](){const _0x2d5af2=()=>!0x1,_0x35c7d7=_0x45428d=>{_0x45428d['sort']((_0x4a337c,_0x2bd8e5)=>_0x4a337c[_0x5f43('0xf7')]['isBefore'](_0x2bd8e5[_0x5f43('0xf7')])?0x1:-0x1),this[_0x5f43('0x13')]['change'](_0x5b0b1e=>{for(const _0x47b2b4 of _0x45428d){let _0x2dc964;_0x2dc964=_0x47b2b4['end'][_0x5f43('0xb4')]&&_0x47b2b4['end'][_0x5f43('0xf5')]==_0x47b2b4[_0x5f43('0xf7')]['nodeAfter']?_0x5b0b1e[_0x5f43('0x59')](_0x47b2b4[_0x5f43('0xf7')][_0x5f43('0x2a')],'on'):_0x5b0b1e[_0x5f43('0x59')](_0x47b2b4),this[_0x5f43('0x13')][_0x5f43('0xe7')](_0x2dc964,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x24892f=(_0x2fe724,_0x33cf75)=>{_0x33cf75&&this['_model']['change'](_0x530a9a=>{const {commandName:_0x3ceaac,commandParams:_0x487f87=[]}=_0x33cf75,_0x49124a=_0x2fe724[_0x5f43('0xa6')](_0x2a2b33=>(Rt(_0x2a2b33)&&(_0x2a2b33=this[_0x5f43('0x13')][_0x5f43('0x38')](_0x2a2b33[_0x5f43('0x179')])),_0x2a2b33))[_0x5f43('0x14c')](_0x493fba=>_0x5f43('0x136')!==_0x493fba[_0x5f43('0x12c')]['rootName']);if(_0x49124a['length']<0x1)return;const _0x18f39a=Array[_0x5f43('0xd4')](this[_0x5f43('0x13')][_0x5f43('0xf9')][_0x5f43('0xd7')][_0x5f43('0x111')]())[_0x5f43('0xa6')](_0x346ab1=>_0x128c3b[_0x5f43('0xef')](_0x346ab1));_0x530a9a[_0x5f43('0x5a')](_0x49124a);for(const _0x387c2a of this[_0x5f43('0x14d')][_0x5f43('0xfb')][_0x5f43('0xfb')]())_0x387c2a[_0x5f43('0x8e')]();_0x487f87[_0x5f43('0x126')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x5f43('0x3f')](_0x3ceaac,..._0x487f87);const _0x7739f3=_0x18f39a[_0x5f43('0x14c')](_0x44a8de=>'$graveyard'!=_0x44a8de[_0x5f43('0x12c')]['rootName']);_0x7739f3[_0x5f43('0x163')]>0x0&&_0x530a9a[_0x5f43('0x5a')](_0x7739f3);for(const _0x37402a of _0x18f39a)_0x37402a['detach']();});},_0x2242c1=(_0x746718,_0x3dfe33)=>0x1==_0x746718[_0x5f43('0x163')]&&0x1==_0x3dfe33[_0x5f43('0x163')]&&_0x746718[0x0][_0x5f43('0x179')][_0x5f43('0x129')](_0x3dfe33[0x0][_0x5f43('0xf7')]),_0x271575=(_0x344d3a,_0x245a42,_0x168264,_0x3e8d4a)=>Gt(_0x344d3a,_0x245a42,_0x168264,_0x3e8d4a,this['_model'])?[_0x344d3a,_0x245a42]:Gt(_0x245a42,_0x344d3a,_0x3e8d4a,_0x168264,this['_model'])?[_0x245a42,_0x344d3a]:null;this[_0x5f43('0xdf')]['set'](_0x5f43('0x5f'),_0x2d5af2),this['_defaultCallbacks']['set'](_0x5f43('0x153'),_0x35c7d7),this['_defaultCallbacks'][_0x5f43('0xbc')](_0x5f43('0xb2'),_0x2242c1),this[_0x5f43('0xdf')][_0x5f43('0xbc')](_0x5f43('0xeb'),_0x271575),this[_0x5f43('0xdf')][_0x5f43('0xbc')]('deletion:accept',_0x35c7d7),this[_0x5f43('0xdf')][_0x5f43('0xbc')](_0x5f43('0x173'),_0x2d5af2),this[_0x5f43('0xdf')]['set']('deletion:join',_0x2242c1),this[_0x5f43('0xdf')]['set'](_0x5f43('0x105'),_0x271575),this[_0x5f43('0xdf')]['set'](_0x5f43('0x34'),_0x24892f),this[_0x5f43('0xdf')][_0x5f43('0xbc')](_0x5f43('0x4a'),_0x2d5af2),this[_0x5f43('0xdf')]['set'](_0x5f43('0x142'),_0x2242c1),this[_0x5f43('0xdf')][_0x5f43('0xbc')](_0x5f43('0xb8'),_0x2d5af2),this[_0x5f43('0xdf')]['set']('formatBlock:accept',_0x24892f),this[_0x5f43('0xdf')][_0x5f43('0xbc')](_0x5f43('0xc4'),_0x2d5af2),this[_0x5f43('0xdf')][_0x5f43('0xbc')](_0x5f43('0xf3'),_0x2242c1),this[_0x5f43('0xdf')]['set'](_0x5f43('0x3c'),_0x2d5af2),this[_0x5f43('0xdf')]['set']('attribute:accept',_0x2d5af2),this[_0x5f43('0xdf')][_0x5f43('0xbc')]('attribute:discard',(_0x5acc66,_0x5bf984)=>{if(!_0x5bf984)return;const _0x189612=this[_0x5f43('0x14d')]['plugins'][_0x5f43('0x135')](p);this[_0x5f43('0x13')][_0x5f43('0x43')](_0x10d96d=>{if(_0x5f43('0x8a')==_0x5bf984[_0x5f43('0x73')])for(const _0x274f5f of _0x5acc66){const _0xa3f184=_0x274f5f['start'][_0x5f43('0x2a')],_0x5e851c=_0x5bf984['oldValue'];_0x10d96d['rename'](_0xa3f184,_0x5e851c);}else{if(_0x189612[_0x5f43('0x159')](_0x5bf984[_0x5f43('0x73')]))for(const _0x74e206 of _0x5acc66)void 0x0!==_0x5bf984[_0x5f43('0x154')]?_0x10d96d[_0x5f43('0xb1')](_0x5bf984[_0x5f43('0x73')],_0x5bf984[_0x5f43('0x154')],_0x74e206['start'][_0x5f43('0x2a')]):_0x10d96d[_0x5f43('0xe4')](_0x5bf984[_0x5f43('0x73')],_0x74e206[_0x5f43('0xf7')][_0x5f43('0x2a')]);else for(const _0x589ea3 of _0x5acc66)_0x5bf984['oldValue']?_0x10d96d['setAttribute'](_0x5bf984['key'],_0x5bf984['oldValue'],_0x589ea3):_0x10d96d[_0x5f43('0xe4')](_0x5bf984[_0x5f43('0x73')],_0x589ea3);}});}),this[_0x5f43('0xdf')]['set'](_0x5f43('0xf'),_0x2242c1);}}function xt(_0x2c5b5d,_0x36929a,_0x4848d1){for(const _0x17ab09 of _0x36929a['parent'][_0x5f43('0x14f')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x17ab09[_0x5f43('0x12c')]==_0x17ab09)return!0x1;if(!_0x4848d1[_0x5f43('0x17')](_0x17ab09))return!0x1;if(_0x2c5b5d['isObject'](_0x17ab09)||_0x2c5b5d[_0x5f43('0x145')](_0x17ab09))return!0x0;}return!0x1;}function Rt(_0x283fc5){return _0x283fc5['end'][_0x5f43('0xf5')]==_0x283fc5[_0x5f43('0xf7')][_0x5f43('0x2a')]&&_0x283fc5[_0x5f43('0x179')]['isAtStart'];}function Tt(_0xa8b0d,_0x5ea29f,_0x517c64,_0x10f9a8){const _0x6b204=_0x1faea8=>!_0x1faea8[_0x5f43('0x149')]['is']('$textProxy')&&!_0x10f9a8[_0x5f43('0x13e')](_0x1faea8[_0x5f43('0x149')]),_0x29753a=_0xa8b0d[_0x5f43('0xf7')][_0x5f43('0x4d')](_0x6b204),_0x548818=_0xa8b0d[_0x5f43('0x179')][_0x5f43('0x4d')](_0x6b204,{'direction':'backward'});return(!_0xa8b0d[_0x5f43('0xf7')][_0x5f43('0x129')](_0x29753a)||!_0xa8b0d['end'][_0x5f43('0x129')](_0x548818))&&(_0x29753a[_0x5f43('0x15d')](_0x548818)?_0x517c64[_0x5f43('0xdc')](_0x5ea29f,{'range':_0x517c64[_0x5f43('0x38')](_0x29753a,_0x548818)}):_0x517c64['removeMarker'](_0x5ea29f),!0x0);}function Et(_0x441f9a){return _0x58b5e8(_0x441f9a);}function Vt(_0x325df4){const _0x1160d2=_0x325df4['start'][_0x5f43('0x2a')];return _0x1160d2&&_0x1160d2['is'](_0x5f43('0x143'));}function Ut(_0x6fbeff,_0x156d57){return null==_0x6fbeff[_0x5f43('0x179')]['nodeBefore']&&_0x6fbeff[_0x5f43('0x179')][_0x5f43('0xf5')]==_0x6fbeff[_0x5f43('0xf7')][_0x5f43('0x2a')]?Ot(_0x6fbeff['start'][_0x5f43('0x2a')],_0x156d57):_0x6fbeff;}function Ot(_0x2d6fad,_0x186a12){const _0x4dd7d7=_0x186a12['schema']['isObject'](_0x2d6fad)||_0x186a12[_0x5f43('0xba')][_0x5f43('0x8c')](_0x2d6fad);return _0x186a12['createRange'](_0x186a12[_0x5f43('0x6e')](_0x2d6fad,_0x5f43('0x77')),_0x4dd7d7?_0x186a12[_0x5f43('0xd3')](_0x2d6fad):_0x186a12[_0x5f43('0x6e')](_0x2d6fad,_0x5f43('0x179')));}function Gt(_0x21a322,_0x14731f,_0x10f2b8,_0x5667da,_0x40b7bc){if(!Ft(_0x21a322,_0x14731f))return!0x1;if(_0x10f2b8[_0x5f43('0x179')][_0x5f43('0x129')](_0x5667da[_0x5f43('0xf7')]))return!0x0;if(_0x21a322[_0x5f43('0x4b')]!=_0x14731f[_0x5f43('0x4b')])return!0x1;if(!_0x10f2b8[_0x5f43('0x179')][_0x5f43('0x81')](_0x5667da[_0x5f43('0xf7')]))return!0x1;const _0x54e1cd=_0x40b7bc[_0x5f43('0x38')](_0x10f2b8[_0x5f43('0x179')],_0x5667da[_0x5f43('0xf7')])[_0x5f43('0x1')]();for(const _0x2fff99 of _0x54e1cd)if([_0x5f43('0xa5'),_0x5f43('0xb9')][_0x5f43('0x140')](_0x2fff99[_0x5f43('0x4b')])&&_0x40b7bc['schema'][_0x5f43('0x145')](_0x2fff99[_0x5f43('0x149')]))return!0x1;return!0x0;}function Ft(_0x3cf937,_0x5f3e8e,_0x3e7c4d=[]){return!(!_0x3cf937[_0x5f43('0x12d')]||!_0x5f3e8e[_0x5f43('0x12d')])&&_0x54b28f(_0x4e25e9(_0x3cf937['attributes'],_0x3e7c4d),_0x4e25e9(_0x5f3e8e[_0x5f43('0x5b')],_0x3e7c4d));}function Pt(_0x52697b,_0x4b2f29){const _0x4ccab7=Lt(_0x52697b[_0x5f43('0x5b')]),_0x12266=Lt(_0x4b2f29);if(!_0x52697b['_isDataLoaded'])return!0x1;for(const _0x5b76b6 of Object[_0x5f43('0x172')](_0x12266))if(!_0x54b28f(_0x4ccab7[_0x5b76b6],_0x12266[_0x5b76b6]))return!0x1;return!0x0;}function Lt(_0x2f6e49){const _0x47a2ac=Object[_0x5f43('0xb7')]({},_0x2f6e49);return delete _0x47a2ac['skipNestingCheck'],delete _0x47a2ac['tablePasteChainId'],_0x47a2ac;}
|