@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231222.0 → 0.0.0-nightly-20231224.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.
Files changed (66) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/imagestyle.js +1 -1
  29. package/src/integrations/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.js +1 -1
  32. package/src/integrations/link.js +1 -1
  33. package/src/integrations/list.js +1 -1
  34. package/src/integrations/listproperties.js +1 -1
  35. package/src/integrations/mediaembed.js +1 -1
  36. package/src/integrations/mention.js +1 -1
  37. package/src/integrations/pagebreak.js +1 -1
  38. package/src/integrations/paragraph.js +1 -1
  39. package/src/integrations/removeformat.js +1 -1
  40. package/src/integrations/restrictededitingmode.js +1 -1
  41. package/src/integrations/shiftentercommand.js +1 -1
  42. package/src/integrations/standardeditingmode.js +1 -1
  43. package/src/integrations/style.js +1 -1
  44. package/src/integrations/table.js +1 -1
  45. package/src/integrations/tablecaption.js +1 -1
  46. package/src/integrations/tableclipboard.js +1 -1
  47. package/src/integrations/tablecolumnresize.js +1 -1
  48. package/src/integrations/tableheadings.js +1 -1
  49. package/src/integrations/tablemergesplit.js +1 -1
  50. package/src/integrations/tableofcontents.js +1 -1
  51. package/src/integrations/tableproperties.js +1 -1
  52. package/src/integrations/template.js +1 -1
  53. package/src/integrations/title.js +1 -1
  54. package/src/integrations/undo.js +1 -1
  55. package/src/integrations/utils.js +1 -1
  56. package/src/suggestion.js +1 -1
  57. package/src/suggestiondescriptionfactory.js +1 -1
  58. package/src/trackchanges.js +1 -1
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ec5=['formatBlock','getRanges','isIntersecting','ck-suggestion-marker-formatBlock','multipleBlocks','_isBlockAttribute','$graveyard','markers','_SUGGESTION_ANNOUNCEMENT','reconvertMarker','clear','previous','addMarker:suggestion','formatBlock:join','_defaultCallbacks','trackChanges.trackFormatChanges','isUndo','for','notReady','nodeBefore','suggestionUnloaded','unbindElementFromMarkerName','isRemovable','markerNameToElements','options','setSelection','addComment','markerToData','differ','markDeletion','acceptSuggestion','insertion:accept','enableCommand','markMultiRangeInsertion','position','addMarker','_model','removeMarkers','oldValue','getChanges','key','backward','isInsideObject','ready','insert','PendingActions','next','_addSuggestionMarker','schema','$marker','createElement','start','getWalker','_recordAttributeSuggestionsFromVersion','_suggestionFactory','acceptAllSuggestions','_reduceSuggestionAttributeRange','_registerInlineAttribute','markAttributeChange','toViewElement','CommentsRepository','getCustomProperty','markInsertion','always','_getExternalAuthor','keys','listenTo','PENDING_ACTION_SUGGESTION','suggestion','formatBlock:accept','ck-suggestion-marker-','getUser','_isDataLoaded','formatInline','set','_commentsRepository','config','_getSuggestionData','high','name','stopListening','getNearestSelectionRange','every','getShiftedBy','_rangeIsInLocalUserInsertion','markerName','formatInline:join','_saved','getSuggestionCallback','setAttribute','getRange','insertion:join','requires','createPositionBefore','elementEnd','isIntersectingWithRange','locale','_joinWithAdjacentSuggestions','getItems','error-saving-suggestion-data-suggestion-discarded','head','splice','createRangeIn','documentSelection','type','_updateSuggestionData','oldName','root','ariaLiveAnnouncer','_initAriaMarkerChangeAnnouncements','parent','updateSuggestion','commands','deletion:chain','_createSuggestion','_findSuggestions','_isForcedDefaultExecutionBlock','rootName','isEqual','split','remove','hasCommentThread','newRange','createPositionAfter','toJSON','pop','attributes','announce','ck-suggestion-marker--active','normal','define','pluginName','trackChanges.mergeNestedSuggestions','meta','chain','markInlineFormat','multi','formatBlock:','removeMarker','getIntersection','_addThreadToSuggestion','enqueueChange','from','_registerBlockAttribute','_suggestionState','consume','_reduceExistingSuggestions','track-changes-suggestion-not-found','trackChanges','creator','consumable','suggestionLoaded','isAtStart','getOperations','createSelection','addMarker:suggestion:attribute','discardAllSuggestions','formatInline:accept','_setSuggestionRange','push','track-changes-command-not-found','element','_setSuggestionData','_customCallbacks','insertContent','attribute:','getSuggestion','comments','update:suggestion','addSuggestion','deletion:accept','formatInline:','addMarker:suggestion:formatBlock','external:','_editor','ck-suggestion-marker-formatInline','getAllAdjacentSuggestions','track-changes-user-not-found','filter','howMany','refresh','changeAttribute','splitPosition','getMarkers','forceDefaultExecution','fromCharCode','fire','newName','activeMarkers','subType','isLimit','writer','getFirstMarker','isAfter','removeMarker:suggestion:attribute','insertion:discard','elementToElement','isInContent','removeAttribute','insertion','createdAt','containsRange','substring','removeComment','low','document','deletion:join','plugins','tablePasteChainId','track-changes-adapter-already-set','suggestionChanged','value','containsPosition','mapper','after','_mergeNestedSuggestions','has','isNextTo','deletion:discard','isTouching','isOwn','getDifference','end','collaboration.channelId','containsRangeInObject','addSuggestionData','nodeAfter','getContainedElement','markMultiRangeDeletion','model','some','sort','createPositionAt','detach','authorName','lowest','item','before','$text','formatBlock:discard','isArray','_registerDefaultCallbacks','unbind','skipNestingCheck','change','markerReady','length','_joinSuggestions','rename','default','stop','rejected','execute','isBlock','isMultiRange','isAtEnd','targetPosition','_enabledCommands','suggestion:','_cutOutSuggestionMarker','conversion','startsWith','fetchCommentThread','dataToMarker','return','buildSuggestion','removeClass','suggestion-type','dataDowncast','moveTargetPosition','_blockAttributeKeys','getLastMatchingPosition','createRange','LEAVE','attributeOldValue','newValue','showSuggestionHighlights','acceptSelectedSuggestions','never','format','editing','_recordAttributeChanges','_trackFormatChanges','groupId','widget','author','forEach','enableReadOnlyMode','ck-suggestion-marker','markMultiRangeBlockFormat','isObject','$elementName','deletion:','catch','_descriptionFactory','getAttribute','elementStart','map','addClass','registerPostFixer','updateMarker','markerToHighlight','change:data','_refreshSuggestionsChain','attribute:join','_onDiscard','editor','getCommentThread','addHighlight','assign','markBlockFormat','delete','concat','rethrowUnexpectedError','_processAttributeSuggestions','_handleNewSuggestionMarker','size','bindElementToMarker','track-changes-suggestion-data-mismatch','attribute:discard','editingDowncast','isCollapsed','suggestion:attribute:','formatGroupId','discardSelectedSuggestions','getSuggestions','fromRange','hasComments','warn','deleteContent','removed','marker-count','isBefore','@external','hasSuggestion','add','highest','_inlineAttributeKeys','applyOperation','_refreshAttributeSuggestionsChain','_getAuthorFromId','version','commandName','authoredAt','getFirstRange','insertion:','_suggestions','trackChangesCommand','oldRange','change:_saved','then','_processAttributeChanges','registerCustomCallback','join','addAttribute','change:activeMarkers','find','addRange','accept','batch','formatInline:discard','unshift','_getMarkerAnnouncementText','deletion','_checkSuggestionCorrectness','get','adapter','_splitMarkerName','includes','addMarkerName','history','formatInline:chain','Users','_adapter','track-changes-enable-command-twice','_breakSuggestionMarker','discard','range','upcast','data','TrackChangesEditing','commentThread','attribute'];(function(_0x538c45,_0x5ec5ce){const _0x410319=function(_0x28c20d){while(--_0x28c20d){_0x538c45['push'](_0x538c45['shift']());}};_0x410319(++_0x5ec5ce);}(_0x5ec5,0x1c3));const _0x4103=function(_0x538c45,_0x5ec5ce){_0x538c45=_0x538c45-0x0;let _0x410319=_0x5ec5[_0x538c45];return _0x410319;};import{Plugin as _0x24bd64,PendingActions as _0xee7e0a}from'ckeditor5/src/core.js';import{LiveRange as _0x1394f0}from'ckeditor5/src/engine.js';import{CKEditorError as _0x207a25,uid as _0x5df0ee,priorities as _0x5e7ba1,logWarning as _0x4ac773}from'ckeditor5/src/utils.js';import{toWidget as _0xc74b52}from'ckeditor5/src/widget.js';import{Users as _0x4e0435,hashObject as _0x536ea2,surroundingMarkersDetector as _0x8a1101}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x5c517e from'./commands/trackchangescommand.js';import _0x5dc7df from'./commands/acceptsuggestioncommand.js';import _0x4f1300 from'./commands/discardsuggestioncommand.js';import _0x9cd4a1 from'./commands/executeonallsuggestionscommand.js';import _0x37f312 from'./commands/executeonselectedsuggestionscommand.js';import _0xdfa14c from'./suggestion.js';import _0x1a1e2c from'./suggestiondescriptionfactory.js';import _0x70bed2 from'./integrations/aiassistant.js';import _0x5173da from'./integrations/alignment.js';import _0x36ef09 from'./integrations/basicstyles.js';import _0x4ae2f2 from'./integrations/blockquote.js';import _0x4c161b from'./integrations/ckbox.js';import _0x4d7c5f from'./integrations/codeblock.js';import _0x48dc4a from'./integrations/comments.js';import _0x24ad83 from'./integrations/deletecommand.js';import _0x1e461b from'./integrations/documentlist.js';import _0x1b9557 from'./integrations/documentlistproperties.js';import _0x458b76 from'./integrations/entercommand.js';import _0x489672 from'./integrations/findandreplace.js';import _0x67cc4e from'./integrations/font.js';import _0x48c7fc from'./integrations/formatpainter.js';import _0x427e9b from'./integrations/heading.js';import _0x3db6f7 from'./integrations/highlight.js';import _0x25304d from'./integrations/horizontalline.js';import _0x5e3fe6 from'./integrations/htmlembed.js';import _0x43c3ed from'./integrations/image.js';import _0x5e789e from'./integrations/imagereplace.js';import _0x49310f from'./integrations/imagestyle.js';import _0x3ae34d from'./integrations/importword.js';import _0x2442d5 from'./integrations/indent.js';import _0x2329dd from'./integrations/inputcommand.js';import _0x4c402b from'./integrations/link.js';import _0x29131a from'./integrations/list.js';import _0x27bc5e from'./integrations/listproperties.js';import _0x375cbe from'./integrations/mediaembed.js';import _0x46a101 from'./integrations/mention.js';import _0x3133b6 from'./integrations/pagebreak.js';import _0xc30abd from'./integrations/paragraph.js';import _0x3ea3da from'./integrations/removeformat.js';import _0x509fd8 from'./integrations/restrictededitingmode.js';import _0x1921df from'./integrations/shiftentercommand.js';import _0x4e4eb1 from'./integrations/standardeditingmode.js';import _0x1c62ea from'./integrations/style.js';import _0x4b6ff8 from'./integrations/table.js';import _0x3497b7 from'./integrations/tablemergesplit.js';import _0x1faf0b from'./integrations/tableheadings.js';import _0x345446 from'./integrations/tableclipboard.js';import _0x517000 from'./integrations/tablecolumnresize.js';import _0x394849 from'./integrations/template.js';import _0x2a6f26 from'./integrations/tableofcontents.js';import _0x5aa28f from'./integrations/title.js';import _0x5f1cc6 from'./integrations/undo.js';import _0x4cced8 from'./integrations/tablecaption.js';import _0x2c726c from'./integrations/tableproperties.js';import{getTranslation as _0x1f5924}from'./utils/common-translations.js';import{isEqual as _0x429fef,omit as _0xca117e}from'lodash-es';export const renameAttributeKey='$elementName';export default class p extends _0x24bd64{static get[_0x4103('0x18')](){return['CommentsRepository',_0x4e0435,_0xee7e0a,_0x70bed2,_0x5173da,_0x36ef09,_0x4ae2f2,_0x4c161b,_0x4d7c5f,_0x48dc4a,_0x24ad83,_0x1e461b,_0x1b9557,_0x458b76,_0x489672,_0x67cc4e,_0x48c7fc,_0x427e9b,_0x3db6f7,_0x25304d,_0x5e3fe6,_0x43c3ed,_0x49310f,_0x5e789e,_0x3ae34d,_0x2442d5,_0x2329dd,_0x4c402b,_0x29131a,_0x27bc5e,_0x375cbe,_0x46a101,_0x3133b6,_0xc30abd,_0x3ea3da,_0x509fd8,_0x1921df,_0x4e4eb1,_0x1c62ea,_0x4b6ff8,_0x3497b7,_0x1faf0b,_0x4cced8,_0x345446,_0x517000,_0x2a6f26,_0x2c726c,_0x394849,_0x5aa28f,_0x5f1cc6];}static get[_0x4103('0x3f')](){return _0x4103('0x138');}constructor(_0x2a5cc8){function _0x42a718(_0x5abd8a){return _0x5abd8a[_0x4103('0xe5')](_0xe5328c=>String[_0x4103('0x75')](_0xe5328c))[_0x4103('0x11d')]('');}super(_0x2a5cc8),this['_recordAttributeSuggestionsFromVersion']=null,this[_0x4103('0x6')](_0x4103('0x78'),[]),this['on'](_0x4103('0x11f'),(_0x3226a6,_0x39e345,_0x47589e,_0x603e89)=>{this[_0x4103('0x15f')]['change'](()=>{for(const _0xee64d4 of[..._0x603e89,..._0x47589e])this[_0x4103('0x15f')][_0x4103('0x142')][_0x4103('0x94')](_0xee64d4)&&_0x2a5cc8[_0x4103('0xd4')][_0x4103('0x144')](_0xee64d4);});}),this[_0x4103('0xe2')]=new _0x1a1e2c(this[_0x4103('0xee')][_0x4103('0xa1')][_0x4103('0x16b')],this['editor']['locale']),this[_0x4103('0x131')]=null,this['_suggestionFactory']=new $t(this[_0x4103('0xee')]),this['_suggestions']=new Map(),this[_0x4103('0x7')]=_0x2a5cc8[_0x4103('0x8b')][_0x4103('0x129')](_0x4103('0x177')),this[_0x4103('0xbd')]=new Set(),this[_0x4103('0x15f')]=this[_0x4103('0xee')][_0x4103('0xa1')],this['_suggestionState']=new WeakMap(),this[_0x4103('0x30')]=!0x1,this[_0x4103('0xca')]=new Set([_0x4103('0xdf')]),this['_inlineAttributeKeys']=new Set(),_0x2a5cc8['config'][_0x4103('0x3e')](_0x4103('0x14a'),_0x4103('0xb5')),this[_0x4103('0xd6')]=_0x2a5cc8[_0x4103('0x8')]['get'](_0x4103('0x14a')),_0x2a5cc8['config'][_0x4103('0x3e')](_0x4103('0x40'),!0x0),this[_0x4103('0x93')]=_0x2a5cc8[_0x4103('0x8')][_0x4103('0x129')](_0x4103('0x40')),this['trackChangesCommand']=new _0x5c517e(_0x2a5cc8,this[_0x4103('0xbd')]),this[_0x4103('0x29')](),this[_0x42a718([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x42a718([0x34,0x30,0x34,0x36,0x32,0x34,0x34,0x34]);}['init'](){const _0x52b4c3=this[_0x4103('0xee')],_0x5a5afd=(_0x18d062,_0x2d1529)=>{if(_0x4103('0x13a')!=_0x18d062)return _0x4103('0x2')+_0x18d062;const _0x11f563=_0x2d1529['split']('|')[0x0];return this[_0x4103('0x140')](_0x11f563)?_0x4103('0x13e'):_0x4103('0x6b');};_0x52b4c3['conversion'][_0x4103('0x14c')]('editingDowncast')[_0x4103('0xe9')]({'model':_0x4103('0x0'),'view':_0x512c32=>{const {id:_0x5d1af0,type:_0x3039ea,subType:_0x30b444}=this['_splitMarkerName'](_0x512c32[_0x4103('0x11')]),_0x4a1c28=[_0x4103('0xdc'),_0x5a5afd(_0x3039ea,_0x30b444)];let _0x24ecfa=0xbb8;return this[_0x4103('0x78')][_0x4103('0x12c')](_0x512c32[_0x4103('0x11')])&&(_0x4a1c28['push'](_0x4103('0x3c')),_0x24ecfa=0xbc2),_0x4103('0x127')==_0x3039ea&&(_0x24ecfa+=0x5),{'classes':_0x4a1c28,'attributes':{'data-suggestion':_0x5d1af0},'priority':_0x24ecfa};}}),_0x52b4c3['conversion']['for'](_0x4103('0xc8'))[_0x4103('0x10b')](_0x375c19=>{_0x375c19['on'](_0x4103('0x147'),(_0xeffac8,_0x2d4bcd,_0x1724cd)=>{if(!_0x1724cd[_0x4103('0x153')]['showSuggestionHighlights'])return;const _0xd7a483=_0x2d4bcd[_0x4103('0xa8')];if(!_0xd7a483)return;const _0x5cea9b=_0x1724cd[_0x4103('0x91')][_0x4103('0x176')](_0xd7a483);_0x52b4c3['model'][_0x4103('0x16b')][_0x4103('0xde')](_0xd7a483)&&_0x5cea9b&&!_0x5cea9b['getCustomProperty'](_0x4103('0xd8'))&&_0x5cea9b['is']('containerElement')&&_0xc74b52(_0x5cea9b,_0x1724cd[_0x4103('0x7b')]);},{'priority':_0x4103('0xa')});}),_0x52b4c3[_0x4103('0xc0')][_0x4103('0x14c')](_0x4103('0xc8'))['markerToHighlight']({'model':'suggestion','view':(_0x5d2a35,_0x2ca254)=>{if(!_0x2ca254['options']['showSuggestionHighlights'])return null;const {type:_0x186a3,subType:_0x47c36f}=this['_splitMarkerName'](_0x5d2a35['markerName']);return{'classes':[_0x4103('0xdc'),_0x5a5afd(_0x186a3,_0x47c36f)],'priority':0xbb8};}});const _0x4c38c4=({showActiveMarkers:_0x3fdd90=!0x0,isAttributeSuggestion:_0x10a519=!0x1}={})=>(_0x41b081,_0x576e9d,_0x54a9bd)=>{if(!_0x576e9d['item'])return;const {id:_0x42dd80}=this[_0x4103('0x12b')](_0x576e9d[_0x4103('0x11')]);if(_0x10a519){const _0x5387f2=Pt(this[_0x4103('0x116')]['get'](_0x42dd80));if(!this['_isBlockAttribute'](_0x5387f2))return;}if(_0x576e9d[_0x4103('0xa8')]['is']('selection'))return void _0x54a9bd['consumable'][_0x4103('0x4d')](_0x576e9d[_0x4103('0xa8')],_0x41b081[_0x4103('0xb')]);const _0x24b0af=_0x54a9bd['mapper'][_0x4103('0x176')](_0x576e9d['item']);if(_0x576e9d[_0x4103('0xa8')]['is'](_0x4103('0x5d'))&&_0x52b4c3['model'][_0x4103('0x16b')][_0x4103('0xb9')](_0x576e9d[_0x4103('0xa8')])&&!_0x24b0af[_0x4103('0x178')](_0x4103('0xf0'))){_0x54a9bd[_0x4103('0x7b')][_0x4103('0xe6')]([_0x4103('0xdc'),_0x4103('0x13e')],_0x24b0af),_0x54a9bd[_0x4103('0x7b')][_0x4103('0x15')]('data-suggestion',_0x42dd80,_0x24b0af),_0x54a9bd['mapper'][_0x4103('0xf9')](_0x24b0af,_0x576e9d['markerName']),_0x3fdd90&&(this[_0x4103('0x78')][_0x4103('0x12c')](_0x576e9d['markerName'])?_0x54a9bd[_0x4103('0x7b')][_0x4103('0xe6')]('ck-suggestion-marker--active',_0x24b0af):_0x54a9bd['writer']['removeClass']('ck-suggestion-marker--active',_0x24b0af));for(const _0x174d5c of _0x52b4c3['model'][_0x4103('0x22')](_0x576e9d[_0x4103('0xa8')])[_0x4103('0x1e')]())_0x54a9bd[_0x4103('0x52')][_0x4103('0x4d')](_0x174d5c,_0x41b081[_0x4103('0xb')]);_0x54a9bd[_0x4103('0x52')][_0x4103('0x4d')](_0x576e9d[_0x4103('0xa8')],_0x41b081[_0x4103('0xb')]);}};_0x52b4c3[_0x4103('0xc0')][_0x4103('0x14c')](_0x4103('0xc8'))[_0x4103('0x10b')](_0x18d2c8=>{_0x18d2c8['on'](_0x4103('0x68'),(_0x1b11cf,_0x2056c0,_0x227b32)=>{_0x227b32['options'][_0x4103('0xd0')]&&_0x4c38c4({'showActiveMarkers':!0x1})(_0x1b11cf,_0x2056c0,_0x227b32);},{'priority':_0x4103('0x10c')});}),_0x52b4c3['conversion']['for'](_0x4103('0xc8'))['add'](_0x5c6d3f=>{_0x5c6d3f['on'](_0x4103('0x57'),(_0x430664,_0x2e504a,_0x26bc9e)=>{_0x26bc9e[_0x4103('0x153')][_0x4103('0xd0')]&&_0x4c38c4({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x430664,_0x2e504a,_0x26bc9e);},{'priority':_0x4103('0x10c')});}),_0x52b4c3[_0x4103('0xc0')]['for'](_0x4103('0xc8'))[_0x4103('0x156')]({'model':_0x4103('0x0'),'view':(_0x3f93aa,_0x5ab824)=>_0x5ab824['options'][_0x4103('0xd0')]?null:{'group':_0x4103('0x0'),'name':_0x3f93aa['substr'](0xb)}}),_0x52b4c3['conversion'][_0x4103('0x14c')](_0x4103('0x136'))[_0x4103('0x80')]({'view':{'name':_0x4103('0x0'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x16a3c2,{writer:_0x5bf958})=>{let _0x291e81=_0x4103('0xbe')+_0x16a3c2['getAttribute'](_0x4103('0xc7'))+':'+_0x16a3c2[_0x4103('0xe3')]('id');return _0x16a3c2[_0x4103('0xe3')](_0x4103('0x107'))&&(_0x291e81+=':'+_0x16a3c2[_0x4103('0xe3')](_0x4103('0x107'))),_0x5bf958[_0x4103('0x16d')](_0x4103('0x16c'),{'data-name':_0x291e81});}}),_0x52b4c3['conversion'][_0x4103('0x14c')](_0x4103('0x136'))[_0x4103('0xc3')]({'view':_0x4103('0x0')}),_0x52b4c3[_0x4103('0xc0')][_0x4103('0x14c')](_0x4103('0xfc'))[_0x4103('0x10b')](_0x339c00=>{_0x339c00['on'](_0x4103('0x68'),_0x4c38c4(),{'priority':_0x4103('0xa')});}),_0x52b4c3[_0x4103('0xc0')][_0x4103('0x14c')](_0x4103('0xfc'))[_0x4103('0x10b')](_0x2fe665=>{_0x2fe665['on'](_0x4103('0x57'),_0x4c38c4({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x52b4c3['conversion'][_0x4103('0x14c')](_0x4103('0xfc'))[_0x4103('0x10b')](_0x314ca1=>{_0x314ca1['on']('removeMarker:suggestion:formatBlock',(_0x2b5b85,_0x10653e,_0x5886f0)=>{const _0x1514e9=_0x5886f0[_0x4103('0x91')]['markerNameToElements'](_0x10653e[_0x4103('0x11')]);if(_0x1514e9)for(const _0x1825ec of _0x1514e9)_0x1825ec[_0x4103('0x178')](_0x4103('0xf0'))||(_0x5886f0['writer'][_0x4103('0xc6')]([_0x4103('0xdc'),_0x4103('0x13e'),'ck-suggestion-marker--active'],_0x1825ec),_0x5886f0[_0x4103('0x7b')]['removeAttribute']('data-suggestion',_0x1825ec),_0x5886f0[_0x4103('0x91')][_0x4103('0x150')](_0x1825ec,_0x10653e['markerName']));},{'priority':_0x4103('0xa')});}),_0x52b4c3['conversion'][_0x4103('0x14c')](_0x4103('0xfc'))[_0x4103('0x10b')](_0x4bf4d0=>{_0x4bf4d0['on'](_0x4103('0x7e'),(_0x26ecbe,_0xed07dc,_0x473a64)=>{const _0x4f84c3=_0x473a64[_0x4103('0x91')][_0x4103('0x152')](_0xed07dc['markerName']);if(!_0x4f84c3)return;const {id:_0x4f6f59}=this['_splitMarkerName'](_0xed07dc[_0x4103('0x11')]),_0x455650=Pt(this[_0x4103('0x116')][_0x4103('0x129')](_0x4f6f59));if(this['_isBlockAttribute'](_0x455650))for(const _0x2e99eb of _0x4f84c3)_0x2e99eb[_0x4103('0x178')](_0x4103('0xf0'))||(_0x473a64[_0x4103('0x7b')][_0x4103('0xc6')]([_0x4103('0xdc'),_0x4103('0x13e'),_0x4103('0x3c')],_0x2e99eb),_0x473a64[_0x4103('0x7b')][_0x4103('0x82')]('data-suggestion',_0x2e99eb),_0x473a64['mapper'][_0x4103('0x150')](_0x2e99eb,_0xed07dc[_0x4103('0x11')]));},{'priority':_0x4103('0xa')});}),_0x52b4c3[_0x4103('0xa1')][_0x4103('0x89')][_0x4103('0xe7')](_0x51b9a5=>{let _0x17946b=!0x1;const _0x44d2bb=Array[_0x4103('0x4a')](_0x52b4c3[_0x4103('0xa1')][_0x4103('0x89')][_0x4103('0x157')]['getChangedMarkers']()),_0x3c4414=new Set();for(const {name:_0x214d12,data:_0x327c50}of _0x44d2bb){const {group:_0x1fdb3e,type:_0x2c7d22,subType:_0x102da9,id:_0x89fa5a}=this[_0x4103('0x12b')](_0x214d12);if(_0x4103('0x0')!==_0x1fdb3e)continue;const _0x37d609=this[_0x4103('0x116')][_0x4103('0x129')](_0x89fa5a);if(null!=_0x327c50[_0x4103('0x36')]){'formatInline'==_0x2c7d22&&(_0x17946b=_0x17946b||xt(_0x327c50[_0x4103('0x36')],_0x214d12,_0x51b9a5,_0x52b4c3['model']['schema']));const _0x29652a=_0x4103('0x13a')==_0x2c7d22&&this['_isBlockAttribute'](_0x102da9[_0x4103('0x33')]('|')[0x0]);if(_0x327c50[_0x4103('0x36')][_0x4103('0xfd')]||_0x4103('0x141')==_0x327c50[_0x4103('0x36')][_0x4103('0x27')]['rootName']||_0x4103('0x13b')==_0x2c7d22&&!Rt(_0x327c50[_0x4103('0x36')])||_0x29652a&&!Rt(_0x327c50['newRange'])||_0x4103('0x127')==_0x2c7d22&&!(!Tt(_0x13c20c=_0x327c50['newRange'])&&!function(_0xb09e2e){return _0xb09e2e[_0x4103('0x16e')]['parent']==_0xb09e2e['end'][_0x4103('0x14e')]&&_0xb09e2e['start'][_0x4103('0xbb')];}(_0x13c20c)))_0x51b9a5['removeMarker'](_0x214d12),_0x17946b=!0x0;else{if(!_0x37d609||!_0x37d609[_0x4103('0x81')])continue;_0x3c4414[_0x4103('0x10b')](_0x37d609);}}}var _0x13c20c;return _0x3c4414[_0x4103('0xf8')]>0x0&&(_0x17946b=!!this[_0x4103('0x1d')](_0x3c4414)||_0x17946b),_0x17946b;}),_0x52b4c3['model']['document'][_0x4103('0xe7')](_0x40589a=>{let _0x35569b=!0x1;for(const _0x4bfc99 of _0x52b4c3[_0x4103('0xa1')]['document'][_0x4103('0x157')][_0x4103('0x162')]())if(_0x4103('0x167')==_0x4bfc99['type'])for(const _0x274edd of this[_0x4103('0x116')]['values']()){if(_0x274edd[_0x4103('0xba')]||!_0x274edd[_0x4103('0x81')])continue;const _0x2a20d8='formatBlock'==_0x274edd['type'],_0x5c06d8=Pt(_0x274edd),_0xf54bea=_0x5c06d8&&this['_isBlockAttribute'](_0x5c06d8);if(!_0x2a20d8&&!_0xf54bea)continue;const _0x48ea55=_0x274edd[_0x4103('0x114')]();if(_0x48ea55[_0x4103('0x16e')][_0x4103('0x2a')]!=_0x48ea55[_0x4103('0x9a')][_0x4103('0x2a')]&&!_0x48ea55[_0x4103('0x9a')][_0x4103('0xbb')]){const _0x7d6c93=_0x52b4c3[_0x4103('0xa1')]['createPositionAt'](_0x48ea55['start']['nodeAfter'],_0x4103('0x9a')),_0xac5d77=_0x52b4c3[_0x4103('0xa1')][_0x4103('0xcc')](_0x48ea55['start'],_0x7d6c93);_0x40589a[_0x4103('0xe8')](_0x274edd[_0x4103('0x7c')](),{'range':_0xac5d77}),_0x35569b=!0x0;}}return _0x35569b;}),_0x52b4c3[_0x4103('0xa1')][_0x4103('0x89')][_0x4103('0xe7')](_0x488d5f=>this[_0x4103('0x11b')](_0x488d5f)),_0x52b4c3['model'][_0x4103('0x89')]['registerPostFixer'](_0x4866a7=>!_0x4866a7[_0x4103('0x123')]['isLocal']&&this[_0x4103('0xf6')](_0x4866a7)),_0x52b4c3[_0x4103('0xa1')][_0x4103('0x142')]['on'](_0x4103('0x64'),(_0x12e2ef,_0xedd12b,_0x5ce823)=>{if(null==_0x5ce823){const {id:_0x10a834}=this[_0x4103('0x12b')](_0xedd12b[_0x4103('0xb')]),_0x55eab9=this[_0x4103('0x116')][_0x4103('0x129')](_0x10a834);_0x55eab9&&_0x55eab9[_0x4103('0x12d')](_0xedd12b[_0x4103('0xb')]);}}),_0x52b4c3[_0x4103('0xa1')][_0x4103('0x89')]['on'](_0x4103('0xea'),()=>{const _0x198ea0=Array[_0x4103('0x4a')](_0x52b4c3[_0x4103('0xa1')][_0x4103('0x89')][_0x4103('0x157')]['getChangedMarkers']())[_0x4103('0x6e')](_0x1c74dd=>_0x4103('0x0')===this[_0x4103('0x12b')](_0x1c74dd[_0x4103('0xb')])['group']);if(0x0===_0x198ea0[_0x4103('0xb2')])return;_0x198ea0['sort']((_0x491c65,_0x9cdfcb)=>{const _0x33f172=_0x491c65[_0x4103('0x137')][_0x4103('0x118')],_0x3bd3ea=_0x9cdfcb[_0x4103('0x137')]['oldRange'];return null===_0x33f172&&null===_0x3bd3ea?0x0:null===_0x33f172&&null!==_0x3bd3ea?-0x1:null!==_0x33f172&&null===_0x3bd3ea?0x1:_0x33f172[_0x4103('0x16e')][_0x4103('0x108')](_0x3bd3ea[_0x4103('0x16e')])?-0x1:0x1;});const _0x4c4724=new Set(),_0x2d839b=new Set();for(const {name:_0x393498,data:_0xefe261}of _0x198ea0){const {id:_0x5af52e}=this[_0x4103('0x12b')](_0x393498);if(null===_0xefe261['oldRange']){const _0x4ddead=this[_0x4103('0xf7')](_0x393498);_0x2d839b[_0x4103('0x10b')](_0x4ddead);}else{const _0x2a7039=this[_0x4103('0x116')][_0x4103('0x129')](_0x5af52e);null!==_0xefe261['newRange']||_0x2a7039['isInContent']?(_0x4c4724['add'](_0x2a7039[_0x4103('0x20')]),_0x2d839b[_0x4103('0x10b')](_0x2a7039)):this['_removeSuggestion'](_0x2a7039);}}_0x2d839b[_0x4103('0xf8')]>0x0&&this['_refreshSuggestionsChain'](_0x2d839b);for(const _0x357fe5 of _0x4c4724)this[_0x4103('0x76')](_0x4103('0x8e'),_0x357fe5);}),_0x52b4c3['model']['on'](_0x4103('0x10e'),(_0x136db3,_0x527e72)=>{const _0x464be4=_0x527e72[0x0];if(!this[_0x4103('0x116')][_0x4103('0xf8')])return;if(!_0x464be4['isDocumentOperation'])return;if(_0x464be4[_0x4103('0x123')][_0x4103('0x14b')]||!_0x464be4[_0x4103('0x123')]['isLocal'])return;let _0x5cd9c2,_0x184c14;switch(_0x464be4[_0x4103('0x24')]){case _0x4103('0x167'):_0x5cd9c2=_0x52b4c3['model'][_0x4103('0xa4')](_0x464be4[_0x4103('0x15d')]),_0x184c14=_0x5cd9c2[_0x4103('0xf')](_0x464be4[_0x4103('0x6f')]);break;case _0x4103('0x33'):_0x5cd9c2=_0x52b4c3[_0x4103('0xa1')][_0x4103('0xa4')](_0x464be4[_0x4103('0x72')]),_0x184c14=_0x52b4c3[_0x4103('0xa1')][_0x4103('0xa4')](_0x464be4[_0x4103('0xc9')]);break;case'move':_0x5cd9c2=_0x52b4c3[_0x4103('0xa1')][_0x4103('0xa4')](_0x464be4[_0x4103('0xbc')]),_0x184c14=_0x5cd9c2['getShiftedBy'](_0x464be4[_0x4103('0x6f')]);break;default:return;}const _0x40bd3b=_0x52b4c3[_0x4103('0xa1')][_0x4103('0xcc')](_0x5cd9c2,_0x184c14);_0x52b4c3['model']['change'](()=>{for(const {suggestion:_0x57aa83,meta:_0x425efc}of this[_0x4103('0x2f')](_0x40bd3b)){if(_0x57aa83['isMultiRange'])continue;if(_0x4103('0x5')==_0x57aa83[_0x4103('0x24')])continue;const _0x140f2d=Pt(_0x57aa83);if(_0x140f2d&&this['_isBlockAttribute'](_0x140f2d)&&'split'!=_0x464be4[_0x4103('0x24')])continue;const _0x267d7c=_0x57aa83[_0x4103('0x137')]&&_0x57aa83['data']['multipleBlocks'];(_0x4103('0x13b')!=_0x57aa83[_0x4103('0x24')]||_0x4103('0x33')==_0x464be4[_0x4103('0x24')]&&!_0x267d7c)&&(_0x425efc['containsRangeInObject']||_0x4103('0x83')==_0x57aa83[_0x4103('0x24')]&&_0x425efc['isOwn']||_0x57aa83[_0x4103('0x114')]()['containsRange'](_0x40bd3b)&&this[_0x4103('0x133')](_0x57aa83,_0x5cd9c2,_0x184c14));}});},{'priority':_0x4103('0xa7')}),_0x52b4c3['model']['on'](_0x4103('0x105'),(_0x1ff791,_0x40dacc)=>{const _0x4d8af9=_0x40dacc[0x0],_0x3f01de=_0x40dacc[0x1];if(_0x3f01de&&_0x3f01de[_0x4103('0x74')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x4103('0x8f')])return;if(_0x4d8af9[_0x4103('0xfd')])return;const _0xa28173=_0x52b4c3['model'][_0x4103('0x16b')],{start:_0x37f9ef,end:_0x56b9cb}=_0x4d8af9[_0x4103('0x114')](),_0x401569=_0x37f9ef[_0x4103('0x9e')]&&_0xa28173[_0x4103('0x7a')](_0x37f9ef['nodeAfter'])?null:_0xa28173['getNearestSelectionRange'](_0x37f9ef,'forward'),_0x542dff=_0x56b9cb[_0x4103('0x14e')]&&_0xa28173[_0x4103('0x7a')](_0x56b9cb[_0x4103('0x14e')])?null:_0xa28173[_0x4103('0xd')](_0x56b9cb,_0x4103('0x164')),_0x1c7c9f=_0x52b4c3[_0x4103('0xa1')][_0x4103('0xcc')](_0x401569?_0x401569[_0x4103('0x16e')]:_0x37f9ef,_0x542dff?_0x542dff[_0x4103('0x9a')]:_0x56b9cb);_0x52b4c3[_0x4103('0xa1')][_0x4103('0xb0')](_0x21cd58=>{this[_0x4103('0x158')](_0x1c7c9f);const _0x3a31de=_0x52b4c3[_0x4103('0xa1')][_0x4103('0x16b')]['getNearestSelectionRange'](_0x1c7c9f['start']);_0x4d8af9['is'](_0x4103('0x23'))?_0x21cd58[_0x4103('0x154')](_0x3a31de):_0x4d8af9['setTo'](_0x3a31de);}),_0x1ff791[_0x4103('0xb6')]();},{'priority':_0x5e7ba1[_0x4103('0x3d')]+0xa}),_0x52b4c3[_0x4103('0xa1')]['on'](_0x4103('0x60'),(_0x581c08,_0x121234)=>{const _0x279d28=_0x121234[_0x121234['length']-0x1];_0x279d28&&_0x279d28[_0x4103('0x74')]||this[_0x4103('0x30')]||this['trackChangesCommand'][_0x4103('0x8f')]&&(_0x52b4c3[_0x4103('0xa1')][_0x4103('0xb0')](()=>{let _0x272782=_0x52b4c3[_0x4103('0xa1')]['insertContent'](_0x121234[0x0],_0x121234[0x1],_0x121234[0x2],{'forceDefaultExecution':!0x0});if(!_0x272782)return;_0x581c08[_0x4103('0xc4')]=_0x272782['clone']();const _0x1c0cc5=_0x272782['end'][_0x4103('0x14e')],_0x57236d=_0x52b4c3[_0x4103('0xa1')][_0x4103('0x16b')];_0x1c0cc5&&_0x57236d[_0x4103('0xb9')](_0x1c0cc5)&&!_0x57236d['isObject'](_0x1c0cc5)&&(_0x272782=_0x52b4c3[_0x4103('0xa1')][_0x4103('0xcc')](_0x272782['start'],_0x52b4c3['model'][_0x4103('0xa4')](_0x1c0cc5,_0x4103('0x9a')))),this[_0x4103('0x179')](_0x272782);}),_0x581c08['stop']());},{'priority':_0x4103('0xa')}),this[_0x4103('0xee')][_0x4103('0x2c')][_0x4103('0x10b')]('trackChanges',this['trackChangesCommand']),this[_0x4103('0x15b')]('trackChanges');const _0x599683=new _0x5dc7df(_0x52b4c3,this[_0x4103('0x116')]);_0x52b4c3[_0x4103('0x2c')][_0x4103('0x10b')](_0x4103('0x159'),_0x599683),this[_0x4103('0x15b')](_0x4103('0x159'));const _0x578566=new _0x4f1300(_0x52b4c3,this[_0x4103('0x116')]);_0x52b4c3[_0x4103('0x2c')][_0x4103('0x10b')]('discardSuggestion',_0x578566),this[_0x4103('0x15b')]('discardSuggestion'),_0x52b4c3[_0x4103('0x2c')][_0x4103('0x10b')](_0x4103('0x172'),new _0x9cd4a1(_0x52b4c3,_0x599683,this[_0x4103('0x116')])),this[_0x4103('0x15b')](_0x4103('0x172')),_0x52b4c3[_0x4103('0x2c')]['add'](_0x4103('0x58'),new _0x9cd4a1(_0x52b4c3,_0x578566,this[_0x4103('0x116')])),this[_0x4103('0x15b')]('discardAllSuggestions'),_0x52b4c3[_0x4103('0x2c')][_0x4103('0x10b')](_0x4103('0xd1'),new _0x37f312(_0x52b4c3,_0x599683,this[_0x4103('0x116')])),this[_0x4103('0x15b')](_0x4103('0xd1')),_0x52b4c3[_0x4103('0x2c')][_0x4103('0x10b')](_0x4103('0x100'),new _0x37f312(_0x52b4c3,_0x578566,this[_0x4103('0x116')])),this['enableCommand'](_0x4103('0x100'));const _0x52eada=_0x52b4c3[_0x4103('0x8b')][_0x4103('0x129')](_0x4103('0x177'));this[_0x4103('0x17d')](_0x52eada,_0x4103('0x155'),(_0xa10e7,{threadId:_0x470fa5})=>{const _0x311a3e=this[_0x4103('0x116')][_0x4103('0x129')](_0x470fa5);_0x311a3e&&_0x311a3e[_0x4103('0x139')]&&0x1===_0x311a3e['commentThread']['length']&&this[_0x4103('0x25')](_0x470fa5,{'hasComments':!0x0});},{'priority':_0x4103('0x88')}),this[_0x4103('0x17d')](_0x52eada,_0x4103('0x87'),(_0x2159ea,{threadId:_0xf8ca50})=>{const _0x22c119=this['_suggestions'][_0x4103('0x129')](_0xf8ca50);_0x22c119&&_0x22c119[_0x4103('0x139')]&&!_0x22c119[_0x4103('0x139')]['length']&&this[_0x4103('0x25')](_0xf8ca50,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x329f2f){if(this['_adapter'])throw new _0x207a25(_0x4103('0x8d'),this);this[_0x4103('0x131')]=_0x329f2f;}get[_0x4103('0x12a')](){return this[_0x4103('0x131')];}[_0x4103('0x101')]({skipNotAttached:_0x11cd6f=!0x1,toJSON:_0xba65d8=!0x1}={}){const _0x4a0f9f=[];for(const _0x2f896e of this['_suggestions']['values']())_0x11cd6f&&!_0x2f896e[_0x4103('0x81')]||_0x4a0f9f['push'](_0x2f896e);return _0xba65d8?_0x4a0f9f['map'](_0x4079df=>_0x4079df[_0x4103('0x38')]()):_0x4a0f9f;}[_0x4103('0x62')](_0x166b0b){const _0x39d4d7=this[_0x4103('0x116')][_0x4103('0x129')](_0x166b0b);if(!_0x39d4d7)throw new _0x207a25(_0x4103('0x4f'),this);return _0x39d4d7;}[_0x4103('0x10a')](_0x11f5a3){return this[_0x4103('0x116')][_0x4103('0x94')](_0x11f5a3);}[_0x4103('0x9d')](_0xf6a91e){const {authorId:_0xcdf4da,id:_0x34828e,attributes:_0x366898}=_0xf6a91e,[_0x2b81c1,_0x2f5d5c]=_0xf6a91e[_0x4103('0x24')][_0x4103('0x33')](':'),_0x3649fc=this[_0x4103('0x116')][_0x4103('0x129')](_0x34828e)||this['_createSuggestion'](_0x2b81c1,_0x2f5d5c,_0x34828e,_0xcdf4da,_0x366898);if(this[_0x4103('0x48')](_0x3649fc),this[_0x4103('0x128')](_0x3649fc,_0x2b81c1,_0x2f5d5c||null,_0xcdf4da),_0x3649fc[_0x4103('0x84')]=_0xf6a91e[_0x4103('0x84')],_0x3649fc[_0x4103('0x4')]=!0x0,_0x366898&&_0x366898[_0x4103('0x109')]){const _0x3c2332=_0x366898[_0x4103('0x109')],_0xc7e680=this[_0x4103('0x17b')](_0x3c2332[_0x4103('0xa6')]);_0x3649fc['authoredAt']=_0x3c2332[_0x4103('0x84')],_0x3649fc['author']=_0xc7e680,_0x3649fc['isExternal']=!0x0;}else _0x3649fc[_0x4103('0x113')]=_0xf6a91e[_0x4103('0x84')];switch(_0xf6a91e['data']&&(_0x3649fc[_0x4103('0x137')]=_0xf6a91e['data']),_0xf6a91e['attributes']&&(_0x3649fc[_0x4103('0x3a')]=_0xf6a91e[_0x4103('0x3a')]),this[_0x4103('0x131')]&&this[_0x4103('0x131')][_0x4103('0x65')]||(_0x3649fc[_0x4103('0x13')]=!0x0),this['_suggestionState'][_0x4103('0x129')](_0x3649fc)){case'notReady':this[_0x4103('0x4c')][_0x4103('0x6')](_0x3649fc,'dataReady');break;case _0x4103('0xb1'):_0x3649fc['isInContent']?(this[_0x4103('0xeb')](new Set([_0x3649fc])),this[_0x4103('0x1d')](new Set([_0x3649fc])),this[_0x4103('0x4c')][_0x4103('0x6')](_0x3649fc,_0x4103('0x166')),this[_0x4103('0x76')](_0x4103('0x53'),_0x3649fc)):this[_0x4103('0x4c')][_0x4103('0x6')](_0x3649fc,_0x4103('0x106'));}return _0x3649fc;}[_0x4103('0x159')](_0x610a07){this[_0x4103('0x74')](()=>{this[_0x4103('0xee')][_0x4103('0xa1')][_0x4103('0xb0')](()=>{for(const _0x4fa106 of _0x610a07[_0x4103('0x6c')]())_0x4fa106[_0x4103('0x122')]();});});}['discardSuggestion'](_0x9b4fb3){this[_0x4103('0x74')](()=>{this['editor'][_0x4103('0xa1')][_0x4103('0xb0')](()=>{for(const _0x2d9fb0 of _0x9b4fb3[_0x4103('0x6c')]())_0x2d9fb0[_0x4103('0x134')]();});});}[_0x4103('0x15b')](_0xc29e5f,_0x50b77a){const _0x566179=this[_0x4103('0xee')]['commands'][_0x4103('0x129')](_0xc29e5f);if(!_0x566179)throw new _0x207a25(_0x4103('0x5c'),this,{'commandName':_0xc29e5f});if(this[_0x4103('0xbd')][_0x4103('0x94')](_0x566179))throw new _0x207a25(_0x4103('0x132'),this,{'commandName':_0xc29e5f});this[_0x4103('0xbd')][_0x4103('0x10b')](_0x566179),_0x50b77a&&_0x566179['on'](_0x4103('0xb8'),(_0x418f83,_0x162a8a)=>{this[_0x4103('0x117')][_0x4103('0x8f')]&&(this[_0x4103('0x30')]||(_0x162a8a['length']>0x0&&_0x162a8a[_0x162a8a['length']-0x1]&&_0x162a8a[_0x162a8a['length']-0x1][_0x4103('0x74')]?_0x162a8a[_0x4103('0x39')]():(_0x418f83[_0x4103('0xc4')]=_0x50b77a((..._0x4e78ff)=>_0x566179[_0x4103('0xb8')](..._0x4e78ff,{'forceDefaultExecution':!0x0}),..._0x162a8a),_0x418f83['stop']())));},{'priority':_0x4103('0xa')});}[_0x4103('0x74')](_0x2cf2a5){let _0x5ebf32,_0x36ab1f;const _0x1f476b=this[_0x4103('0x30')];this[_0x4103('0x30')]=!0x0;try{_0x5ebf32=_0x2cf2a5();}catch(_0x5e198d){_0x36ab1f=_0x5e198d;}return _0x1f476b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x36ab1f&&_0x207a25[_0x4103('0xf5')](_0x36ab1f,this),_0x5ebf32;}[_0x4103('0x179')](_0x24ab4a,_0x3d07f0=null,_0x4a7ec5={}){if(_0x24ab4a[_0x4103('0xfd')])return null;const _0xf3416b=this[_0x4103('0xee')][_0x4103('0x8b')][_0x4103('0x129')](_0x4103('0x130'))['me'];for(const {suggestion:_0x3ce4ce,meta:_0x3aa4ed}of this[_0x4103('0x2f')](_0x24ab4a,_0x4103('0x83')))if(_0x3aa4ed[_0x4103('0x98')]){if(!_0x3aa4ed[_0x4103('0x95')]){if(_0x3aa4ed[_0x4103('0x9c')]){if(!this[_0x4103('0x93')]||!Gt(_0x3ce4ce,_0x4a7ec5))continue;return _0x3ce4ce;}if(Gt(_0x3ce4ce,_0x4a7ec5))return _0x3ce4ce;this[_0x4103('0x133')](_0x3ce4ce,_0x24ab4a[_0x4103('0x16e')],_0x24ab4a[_0x4103('0x9a')]);break;}if(_0x3d07f0==_0x3ce4ce[_0x4103('0x79')]&&Gt(_0x3ce4ce,_0x4a7ec5)){const _0x51ef11=_0x3ce4ce['getFirstRange']();return _0x51ef11[_0x4103('0x16e')][_0x4103('0x32')](_0x24ab4a[_0x4103('0x9a')])?this[_0x4103('0x5a')](_0x3ce4ce,this[_0x4103('0x15f')][_0x4103('0xcc')](_0x24ab4a[_0x4103('0x16e')],_0x51ef11['end'])):this[_0x4103('0x5a')](_0x3ce4ce,this[_0x4103('0x15f')][_0x4103('0xcc')](_0x51ef11[_0x4103('0x16e')],_0x24ab4a[_0x4103('0x9a')])),_0x3ce4ce;}}const _0x4643e9=_0x5df0ee(),_0x19460c=_0xf3416b['id'],_0x156c4f=_0x3d07f0?_0x4103('0x115')+_0x3d07f0:_0x4103('0x83'),_0x4754bb=this['_setSuggestionData']({'id':_0x4643e9,'type':_0x156c4f,'createdAt':new Date(),'authorId':_0x19460c,'attributes':_0x4a7ec5});return this[_0x4103('0x16a')](_0x156c4f,_0x4643e9,_0x19460c,_0x24ab4a),_0x4754bb;}[_0x4103('0x15c')](_0xc7a145,_0x3f6cb9='multi',_0x245a14={}){const _0x57cd31=this['editor'][_0x4103('0x8b')][_0x4103('0x129')](_0x4103('0x130'))['me'],_0x3eacb3=this[_0x4103('0x171')][_0x4103('0x14')]('insertion',_0x3f6cb9,'join');for(const _0x2f7ab0 of this[_0x4103('0x101')]())if(_0x2f7ab0[_0x4103('0xd9')]['id']==_0x57cd31['id']&&'insertion'==_0x2f7ab0[_0x4103('0x24')]&&_0x2f7ab0['subType']==_0x3f6cb9&&Gt(_0x2f7ab0,_0x245a14)&&(_0x3eacb3(_0x2f7ab0[_0x4103('0x13c')](),_0xc7a145)||_0x3eacb3(_0xc7a145,_0x2f7ab0[_0x4103('0x13c')]()))){for(const _0x257a56 of _0xc7a145)_0x2f7ab0[_0x4103('0x121')](_0x257a56);return _0x2f7ab0;}for(const {suggestion:_0x300c16,meta:_0x15ecd9}of this[_0x4103('0x2f')](_0xc7a145,_0x4103('0x83'))){if(!_0x15ecd9[_0x4103('0x98')])continue;if(!this['_mergeNestedSuggestions']&&_0x15ecd9[_0x4103('0x9c')])continue;if(!Gt(_0x300c16,_0x245a14))continue;let _0x9a1655=!0x0;for(const _0x58ec93 of _0x300c16[_0x4103('0x13c')]())for(const _0x198039 of _0xc7a145)if(!_0x58ec93['containsRange'](_0x198039)){_0x9a1655=!0x1;break;}if(_0x9a1655)return _0x300c16;}const _0x94a797=_0x5df0ee(),_0x1e8183=_0x57cd31['id'],_0x47cf98=_0x4103('0x115')+_0x3f6cb9,_0x813c2=this[_0x4103('0x5e')]({'id':_0x94a797,'type':_0x47cf98,'createdAt':new Date(),'authorId':_0x1e8183,'attributes':_0x245a14});for(const _0x126209 of _0xc7a145)this['_addSuggestionMarker'](_0x47cf98,_0x94a797,_0x1e8183,_0x126209,_0xdfa14c['getMultiRangeId']());return _0x813c2;}[_0x4103('0x43')](_0x1ba5c3,_0x8efeef,_0x542cf2=null,_0x1b59f5={}){if(_0x542cf2=_0x542cf2||Et(_0x8efeef),_0x1ba5c3[_0x4103('0xfd')])return null;if(_0x4103('0xd2')===this[_0x4103('0xd6')]){const _0x866fab=this[_0x4103('0x171')][_0x4103('0x14')](_0x4103('0x5'),_0x542cf2,_0x4103('0x122'));return this[_0x4103('0x74')](()=>_0x866fab([_0x1ba5c3],_0x8efeef,_0x1b59f5)),null;}const _0x2af79d=this[_0x4103('0xee')][_0x4103('0x8b')][_0x4103('0x129')]('Users')['me'],_0x4cff93=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x379e5b,meta:_0x40e47e}of this[_0x4103('0x2f')](_0x1ba5c3,_0x4103('0x83')))_0x40e47e[_0x4103('0x98')]&&!_0x40e47e[_0x4103('0x165')]&&_0x4cff93[_0x4103('0x5b')](..._0x379e5b[_0x4103('0x13c')]());const _0x1b57c3=function(_0x39f041,_0x1a09c8){const _0x5407a3=[];for(const _0x2029e3 of _0x1a09c8){const _0x339504=_0x39f041['getIntersection'](_0x2029e3);_0x339504&&_0x5407a3[_0x4103('0x5b')](_0x339504);}return _0x5407a3;}(_0x1ba5c3,_0x4cff93),_0x3ac038=function(_0x43baad,_0x4f1e49){const _0x381384=[_0x43baad];for(const _0x461054 of _0x4f1e49){let _0x5180d9=0x0;for(;_0x5180d9<_0x381384[_0x4103('0xb2')];){const _0x5db934=_0x381384[_0x5180d9][_0x4103('0x99')](_0x461054);_0x381384[_0x4103('0x21')](_0x5180d9,0x1,..._0x5db934),_0x5180d9+=_0x5db934[_0x4103('0xb2')];}}return _0x381384;}(_0x1ba5c3,_0x4cff93);_0x1b57c3[_0x4103('0xb2')]&&this[_0x4103('0x15f')][_0x4103('0xb0')](()=>{for(const _0x5a53d1 of _0x1b57c3){const _0x486a81=this[_0x4103('0x171')]['getSuggestionCallback'](_0x4103('0x5'),_0x542cf2,_0x4103('0x122'));this['forceDefaultExecution'](()=>_0x486a81([_0x5a53d1],_0x8efeef,_0x1b59f5));}});for(const _0x850b1b of _0x3ac038){let _0x47bc21=null,_0x46fb35=_0x850b1b['start'],_0x53665a=_0x850b1b[_0x4103('0x9a')];for(const {suggestion:_0x1c7cdc,meta:_0x27e1af}of this[_0x4103('0x2f')](_0x850b1b,_0x4103('0x5'))){if(!_0x27e1af[_0x4103('0x98')])continue;if(_0x1c7cdc[_0x4103('0x79')]!=_0x542cf2)continue;if(!Gt(_0x1c7cdc,_0x1b59f5))continue;const _0x14e395=_0x1c7cdc[_0x4103('0x114')]();if(_0x14e395[_0x4103('0x85')](_0x850b1b,!0x0))return null;_0x46fb35=_0x46fb35['isBefore'](_0x14e395[_0x4103('0x16e')])?_0x46fb35:_0x14e395[_0x4103('0x16e')],_0x53665a=_0x53665a[_0x4103('0x7d')](_0x14e395[_0x4103('0x9a')])?_0x53665a:_0x14e395['end'],_0x47bc21?_0x14e395[_0x4103('0x16e')][_0x4103('0x108')](_0x47bc21[_0x4103('0x114')]()['start'])?(_0x47bc21[_0x4103('0x160')](),_0x47bc21=_0x1c7cdc):_0x1c7cdc[_0x4103('0x160')]():_0x47bc21=_0x1c7cdc;}const _0x23c854=this['_model'][_0x4103('0xcc')](_0x46fb35,_0x53665a);if(_0x47bc21)this[_0x4103('0x5a')](_0x47bc21,_0x23c854);else{const _0x10320e=_0x5df0ee(),_0x4d9d6e=_0x2af79d['id'];this[_0x4103('0x5e')]({'id':_0x10320e,'type':_0x4103('0x67')+_0x542cf2,'data':_0x8efeef,'createdAt':new Date(),'authorId':_0x4d9d6e,'attributes':_0x1b59f5}),this[_0x4103('0x16a')](_0x4103('0x67')+_0x542cf2,_0x10320e,_0x4d9d6e,_0x23c854);}}return null;}[_0x4103('0xf2')](_0x4ba2c7,_0x31543e,_0xc44f30=[],_0x1b1586=null,_0x54ebeb={}){_0x31543e['formatGroupId']||(_0x31543e['formatGroupId']=_0x31543e[_0x4103('0x112')]),_0x31543e[_0x4103('0x13f')]=_0x4ba2c7['is']('range'),_0x1b1586=_0x1b1586||Et(_0x31543e);const _0x2d8f5a=_0xc44f30[_0x4103('0xe5')](_0x550de9=>Ut(_0x550de9,this['_model'])),_0x33b280=_0x4ba2c7['is'](_0x4103('0x135'))?_0x4ba2c7:Ut(_0x4ba2c7,this[_0x4103('0x15f')]);if(_0x4103('0xd2')===this['_trackFormatChanges']){const _0x311c9b=this[_0x4103('0x171')][_0x4103('0x14')](_0x4103('0x13b'),_0x1b1586,'accept');return this[_0x4103('0x74')](()=>_0x311c9b([_0x33b280],_0x31543e,_0x54ebeb)),null;}_0x2d8f5a[_0x4103('0x5b')](_0x33b280);let _0x3da0d0=!0x0;for(const _0x554460 of _0x2d8f5a)if(!this[_0x4103('0x10')](_0x554460)){_0x3da0d0=!0x1;break;}if(_0x3da0d0&&'always'!==this[_0x4103('0xd6')]){const _0x5ddcde=this[_0x4103('0x171')][_0x4103('0x14')]('formatBlock',_0x1b1586,_0x4103('0x122'));return this[_0x4103('0x74')](()=>_0x5ddcde([_0x33b280],_0x31543e,_0x54ebeb)),null;}let _0x508389=null,_0x28a822=_0x33b280[_0x4103('0x16e')],_0x393a97=_0x33b280[_0x4103('0x9a')];for(const {suggestion:_0x4e79c7,meta:_0x12c971}of this[_0x4103('0x2f')](_0x33b280,_0x4103('0x13b'))){if(!_0x12c971[_0x4103('0x98')])continue;if(_0x12c971['isNextTo']||_0x12c971[_0x4103('0x9c')]||_0x12c971[_0x4103('0x165')])continue;if(_0x4e79c7['data'][_0x4103('0xff')]!=_0x31543e[_0x4103('0xff')])continue;if(!Gt(_0x4e79c7,_0x54ebeb))continue;const _0x2cf64e=_0x4e79c7[_0x4103('0x114')]();if(_0x4e79c7[_0x4103('0x79')]==_0x1b1586){if(_0x2cf64e['containsRange'](_0x33b280,!0x0))return null;_0x28a822=_0x28a822[_0x4103('0x108')](_0x2cf64e[_0x4103('0x16e')])?_0x28a822:_0x2cf64e[_0x4103('0x16e')],_0x393a97=_0x393a97[_0x4103('0x7d')](_0x2cf64e[_0x4103('0x9a')])?_0x393a97:_0x2cf64e[_0x4103('0x9a')],_0x508389?_0x2cf64e['start'][_0x4103('0x108')](_0x508389[_0x4103('0x114')]()[_0x4103('0x16e')])?(_0x508389[_0x4103('0x160')](),_0x508389=_0x4e79c7):_0x4e79c7[_0x4103('0x160')]():_0x508389=_0x4e79c7;}else{const _0x3f316d=_0x33b280[_0x4103('0x47')](_0x2cf64e);this[_0x4103('0xbf')](_0x4e79c7,_0x3f316d);}}const _0x1fab90=this[_0x4103('0xee')]['plugins'][_0x4103('0x129')](_0x4103('0x130'))['me'],_0x3f044f=_0x5df0ee(),_0x4c17fb=_0x1fab90['id'];if(_0x508389)return this[_0x4103('0x5a')](_0x508389,this[_0x4103('0x15f')]['createRange'](_0x28a822,_0x393a97)),_0x508389;{const _0x313bb7=this[_0x4103('0x5e')]({'id':_0x3f044f,'type':_0x4103('0x45')+_0x1b1586,'data':_0x31543e,'createdAt':new Date(),'authorId':_0x4c17fb,'attributes':_0x54ebeb});return this[_0x4103('0x16a')]('formatBlock:'+_0x1b1586,_0x3f044f,_0x4c17fb,this[_0x4103('0x15f')][_0x4103('0xcc')](_0x28a822,_0x393a97)),_0x313bb7;}}[_0x4103('0xdd')](_0xf7a675,_0x2a3f09,_0xf08e22=[],_0x18a3f4=null,_0x3c39d7={}){_0x2a3f09['formatGroupId']||(_0x2a3f09[_0x4103('0xff')]=_0x2a3f09[_0x4103('0x112')]);const _0x2b20ff=_0xf7a675[0x0];_0x2a3f09['multipleBlocks']=_0x2b20ff['is'](_0x4103('0x135')),_0x18a3f4=_0x18a3f4||Et(_0x2a3f09);const _0x4c3d3f=_0xf08e22['map'](_0x1faefb=>Ut(_0x1faefb,this['_model'])),_0x167e1d=_0x2b20ff['is'](_0x4103('0x135'))?_0xf7a675:_0xf7a675[_0x4103('0xe5')](_0x568775=>Ut(_0x568775,this[_0x4103('0x15f')]));if(_0x4103('0xd2')===this[_0x4103('0xd6')]){const _0x1e0b61=this[_0x4103('0x171')][_0x4103('0x14')](_0x4103('0x13b'),_0x18a3f4,_0x4103('0x122'));return this[_0x4103('0x74')](()=>_0x1e0b61(_0x167e1d,_0x2a3f09,_0x3c39d7)),null;}_0x4c3d3f['push'](..._0x167e1d);let _0x4f971d=!0x0;for(const _0x5cddad of _0x4c3d3f)if(!this[_0x4103('0x10')](_0x5cddad)){_0x4f971d=!0x1;break;}if(_0x4f971d&&_0x4103('0x17a')!==this[_0x4103('0xd6')]){const _0x2ebfa9=this[_0x4103('0x171')][_0x4103('0x14')](_0x4103('0x13b'),_0x18a3f4,_0x4103('0x122'));return this[_0x4103('0x74')](()=>_0x2ebfa9(_0x167e1d,_0x2a3f09,_0x3c39d7)),null;}const _0x20adf8=this[_0x4103('0xee')][_0x4103('0x8b')][_0x4103('0x129')](_0x4103('0x130'))['me'];for(const _0x4f5dfc of this[_0x4103('0x101')]()){if(_0x4f5dfc['author']['id']!=_0x20adf8['id'])continue;if(_0x4103('0x13b')!=_0x4f5dfc[_0x4103('0x24')]||_0x4f5dfc[_0x4103('0x137')][_0x4103('0xff')]!=_0x2a3f09[_0x4103('0xff')])continue;if(!Gt(_0x4f5dfc,_0x3c39d7))continue;const _0x3793d6=_0x4f5dfc[_0x4103('0x79')]==_0x18a3f4;for(let _0x2c53ca=0x0;_0x2c53ca<_0x167e1d[_0x4103('0xb2')];_0x2c53ca++){const _0x3add4c=_0x167e1d[_0x2c53ca];for(const _0x5ecab5 of _0x4f5dfc[_0x4103('0x73')]()){const _0x19156e=_0x5ecab5[_0x4103('0x16')]();if(_0x3add4c[_0x4103('0x32')](_0x19156e)){_0x3793d6?(_0x167e1d['splice'](_0x2c53ca,0x1),_0x2c53ca--):_0x4f5dfc[_0x4103('0x46')](_0x5ecab5[_0x4103('0xb')]);break;}}}}if(0x0==_0x167e1d[_0x4103('0xb2')])return null;const _0xf54d99=this[_0x4103('0x171')][_0x4103('0x14')](_0x4103('0x13b'),_0x18a3f4,_0x4103('0x11d'));for(const _0x16b185 of this[_0x4103('0x101')]())if(_0x16b185['author']['id']==_0x20adf8['id']&&_0x4103('0x13b')==_0x16b185[_0x4103('0x24')]&&_0x16b185['data']['formatGroupId']==_0x2a3f09[_0x4103('0xff')]&&_0x16b185[_0x4103('0x79')]==_0x18a3f4&&Gt(_0x16b185,_0x3c39d7)&&(_0xf54d99(_0x16b185['getRanges'](),_0x167e1d)||_0xf54d99(_0x167e1d,_0x16b185[_0x4103('0x13c')]()))){for(const _0x40af32 of _0x167e1d)_0x16b185[_0x4103('0x121')](_0x40af32);return _0x16b185;}const _0x2f3d5f=_0x5df0ee(),_0x4134cf=_0x20adf8['id'],_0x150e82=_0x4103('0x45')+_0x18a3f4,_0x17604d=this['_setSuggestionData']({'id':_0x2f3d5f,'type':_0x150e82,'data':_0x2a3f09,'createdAt':new Date(),'authorId':_0x4134cf,'attributes':_0x3c39d7});for(const _0x18684d of _0x167e1d)this[_0x4103('0x16a')](_0x150e82,_0x2f3d5f,_0x4134cf,_0x18684d,_0xdfa14c['getMultiRangeId']());return _0x17604d;}[_0x4103('0x158')](_0x51a6f2,_0x284e5e=null,_0x5393={}){if(_0x51a6f2[_0x4103('0xfd')])return null;const _0x52ab3a=this['editor'][_0x4103('0x8b')][_0x4103('0x129')](_0x4103('0x130'))['me'],_0x1233e6=new _0x1394f0(_0x51a6f2[_0x4103('0x16e')],_0x51a6f2[_0x4103('0x9a')]);for(const {suggestion:_0x4dac91,meta:_0x1af9b0}of this[_0x4103('0x2f')](_0x1233e6,'insertion'))if(_0x1af9b0[_0x4103('0x98')]&&!_0x1af9b0[_0x4103('0x95')]){if(_0x4dac91[_0x4103('0xba')]){const _0x4f4f1e=_0x4dac91[_0x4103('0x13c')]()[_0x4103('0x6e')](_0x1d4cdc=>_0x4103('0x141')!=_0x1d4cdc[_0x4103('0x27')][_0x4103('0x31')]);_0x4f4f1e[_0x4103('0xe')](_0x57781a=>_0x1233e6[_0x4103('0x85')](_0x57781a,!0x0))&&_0x4dac91[_0x4103('0x134')]();if(_0x4f4f1e[_0x4103('0xa2')](_0x48786f=>_0x48786f[_0x4103('0x85')](_0x1233e6,!0x0))){const _0x252ed2=this[_0x4103('0x171')][_0x4103('0x14')]('deletion',_0x284e5e,_0x4103('0x122'));return this[_0x4103('0x74')](()=>_0x252ed2([_0x1233e6],null,_0x5393)),null;}}else{const _0x285b3b=_0x1233e6['getIntersection'](_0x4dac91[_0x4103('0x114')]());null!==_0x285b3b&&_0x4dac91[_0x4103('0xed')]([_0x285b3b],null,_0x5393);}}if(_0x1233e6['detach'](),_0x1233e6['isCollapsed']||_0x4103('0x141')==_0x1233e6[_0x4103('0x27')][_0x4103('0x31')])return null;let _0x3e52c4=null,_0x42c4bb=_0x1233e6[_0x4103('0x16e')],_0x16990e=_0x1233e6[_0x4103('0x9a')];const _0x393905=this[_0x4103('0x2f')](_0x1233e6,_0x4103('0x127'));for(const {suggestion:_0x47b8ac,meta:_0x503f37}of _0x393905){const _0x1d52cb=this[_0x4103('0x15f')][_0x4103('0xcc')](_0x42c4bb,_0x16990e);if(_0x503f37[_0x4103('0x98')]&&(this[_0x4103('0x93')]||!_0x503f37[_0x4103('0x9c')]&&!_0x503f37[_0x4103('0x165')])){if(_0x47b8ac[_0x4103('0xba')]){if(!Gt(_0x47b8ac,_0x5393))continue;let _0x552363=!0x0;for(const _0x33c2fe of _0x47b8ac[_0x4103('0x13c')]()){if(_0x33c2fe[_0x4103('0x85')](_0x1d52cb,!0x0))return _0x47b8ac;_0x1d52cb['containsRange'](_0x33c2fe)||(_0x552363=!0x1);}_0x552363&&_0x47b8ac[_0x4103('0x134')]();}else{const _0x1b3a05=_0x47b8ac[_0x4103('0x114')]();if(_0x1b3a05[_0x4103('0x85')](_0x1d52cb,!0x0))return _0x47b8ac;if(!Gt(_0x47b8ac,_0x5393)){_0x1d52cb[_0x4103('0x85')](_0x1b3a05)?_0x47b8ac[_0x4103('0x160')]():_0x1b3a05[_0x4103('0x90')](_0x42c4bb)?_0x42c4bb=_0x1b3a05[_0x4103('0x9a')]:_0x1b3a05[_0x4103('0x90')](_0x16990e)&&(_0x16990e=_0x1b3a05[_0x4103('0x16e')]);continue;}_0x42c4bb=_0x42c4bb['isBefore'](_0x1b3a05['start'])?_0x42c4bb:_0x1b3a05[_0x4103('0x16e')],_0x16990e=_0x16990e['isAfter'](_0x1b3a05[_0x4103('0x9a')])?_0x16990e:_0x1b3a05[_0x4103('0x9a')],_0x5393=Object[_0x4103('0xf1')]({},_0x47b8ac['attributes']),_0x3e52c4?_0x1b3a05[_0x4103('0x16e')][_0x4103('0x108')](_0x3e52c4[_0x4103('0x114')]()[_0x4103('0x16e')])?(_0x3e52c4[_0x4103('0x160')](),_0x3e52c4=_0x47b8ac):_0x47b8ac[_0x4103('0x160')]():_0x3e52c4=_0x47b8ac;}}}if(_0x3e52c4)return this['_setSuggestionRange'](_0x3e52c4,this[_0x4103('0x15f')][_0x4103('0xcc')](_0x42c4bb,_0x16990e)),_0x3e52c4;{const _0x4f7a03=_0x5df0ee(),_0x43889d=this[_0x4103('0x15f')][_0x4103('0xcc')](_0x42c4bb,_0x16990e),_0x34c4cd=_0x52ab3a['id'],_0x4b53df=_0x284e5e?_0x4103('0xe0')+_0x284e5e:_0x4103('0x127'),_0x29b0c1=this[_0x4103('0x5e')]({'id':_0x4f7a03,'type':_0x4b53df,'createdAt':new Date(),'authorId':_0x34c4cd,'attributes':_0x5393});return this['_addSuggestionMarker'](_0x4b53df,_0x4f7a03,_0x34c4cd,_0x43889d),_0x29b0c1;}}[_0x4103('0xa0')](_0x5012bd,_0x35bfbd=_0x4103('0x44'),_0x24a490={}){const _0x9211f7=this['editor'][_0x4103('0x8b')][_0x4103('0x129')]('Users')['me'],_0x295fc3=_0x5012bd[_0x4103('0xe5')](_0x32bff9=>new _0x1394f0(_0x32bff9[_0x4103('0x16e')],_0x32bff9['end'])),_0x4c17a2=new Set();for(const {suggestion:_0x59ca1a,meta:_0x26a540}of this[_0x4103('0x2f')](_0x295fc3,_0x4103('0x83')))_0x26a540[_0x4103('0x98')]&&!_0x26a540[_0x4103('0x95')]&&_0x4c17a2[_0x4103('0x10b')](_0x59ca1a);for(const _0x2b114b of _0x4c17a2)if(_0x2b114b[_0x4103('0xba')]){const _0x217b3b=_0x2b114b[_0x4103('0x13c')]();(!_0x2b114b[_0x4103('0x3a')]||!_0x2b114b[_0x4103('0x3a')][_0x4103('0xaf')])&&(_0x217b3b['every'](_0xc627c3=>_0x295fc3[_0x4103('0xa2')](_0x5da7bc=>_0x5da7bc['containsRange'](_0xc627c3,!0x0)))&&_0x2b114b[_0x4103('0x134')]());if(_0x295fc3[_0x4103('0xe')](_0x548b81=>_0x217b3b[_0x4103('0xa2')](_0x794f8a=>_0x794f8a[_0x4103('0x85')](_0x548b81,!0x0)))){const _0x4e3166=this['_suggestionFactory'][_0x4103('0x14')](_0x4103('0x127'),_0x35bfbd,_0x4103('0x122'));return this[_0x4103('0x74')](()=>_0x4e3166(_0x5012bd,null,_0x24a490)),null;}}else{const _0x2c53d8=_0x2b114b[_0x4103('0x114')]();_0x295fc3['some'](_0x3c74ab=>_0x3c74ab[_0x4103('0x85')](_0x2c53d8,!0x0))&&_0x2b114b[_0x4103('0x134')]();if(_0x295fc3['every'](_0x24ab36=>_0x2c53d8['containsRange'](_0x24ab36,!0x0))){const _0x17db71=this['_suggestionFactory'][_0x4103('0x14')](_0x4103('0x127'),_0x35bfbd,_0x4103('0x122'));return this[_0x4103('0x74')](()=>_0x17db71(_0x295fc3,null,_0x24a490)),null;}}const _0x558125=this[_0x4103('0x171')][_0x4103('0x14')](_0x4103('0x127'),_0x35bfbd,_0x4103('0x11d'));let _0x4cce21=null;for(const _0x2b0dd8 of this[_0x4103('0x101')]())if(_0x2b0dd8['author']['id']==_0x9211f7['id']&&_0x2b0dd8['isInContent']&&_0x4103('0x127')==_0x2b0dd8[_0x4103('0x24')]&&_0x2b0dd8['subType']==_0x35bfbd&&Gt(_0x2b0dd8,_0x24a490)&&(_0x558125(_0x2b0dd8[_0x4103('0x13c')](),_0x295fc3)||_0x558125(_0x295fc3,_0x2b0dd8[_0x4103('0x13c')]()))){if(_0x4cce21){if(_0x2b0dd8[_0x4103('0x139')]&&_0x2b0dd8[_0x4103('0x139')]['length'])continue;for(const _0x7ca7e3 of _0x2b0dd8['getRanges']())_0x4cce21[_0x4103('0x1b')](_0x7ca7e3)||_0x4cce21['addRange'](_0x7ca7e3);_0x2b0dd8[_0x4103('0x160')]();}else{_0x4cce21=_0x2b0dd8;for(const _0x38f739 of _0x295fc3)_0x2b0dd8[_0x4103('0x1b')](_0x38f739)||_0x2b0dd8['addRange'](_0x38f739);}}if(_0x4cce21)return _0x4cce21;_0x4c17a2[_0x4103('0x145')]();for(const {suggestion:_0x40e83f,meta:_0x37d5ec}of this[_0x4103('0x2f')](_0x295fc3,_0x4103('0x127')))_0x37d5ec[_0x4103('0x98')]&&(this[_0x4103('0x93')]||!_0x37d5ec[_0x4103('0x9c')]&&!_0x37d5ec[_0x4103('0x165')])&&Gt(_0x40e83f,_0x24a490)&&_0x4c17a2[_0x4103('0x10b')](_0x40e83f);for(const _0x2263f8 of _0x4c17a2){const _0x34dd30=_0x2263f8[_0x4103('0x13c')]();if(!_0x24a490||!_0x24a490[_0x4103('0xaf')]){if(_0x295fc3[_0x4103('0xe')](_0x433a1e=>_0x34dd30['some'](_0x4161e1=>_0x4161e1[_0x4103('0x85')](_0x433a1e,!0x0))))return _0x2263f8;}(!_0x2263f8[_0x4103('0x3a')]||!_0x2263f8['attributes']['skipNestingCheck'])&&(_0x34dd30[_0x4103('0xe')](_0x33d1f8=>_0x295fc3[_0x4103('0xa2')](_0x3355bc=>_0x3355bc[_0x4103('0x85')](_0x33d1f8,!0x0)))&&_0x2263f8[_0x4103('0x134')]());}const _0xaf7d9a=_0x5df0ee(),_0x463b0a=_0x9211f7['id'],_0xeee2c7=_0x4103('0xe0')+_0x35bfbd,_0x4e767c=this[_0x4103('0x5e')]({'id':_0xaf7d9a,'type':_0xeee2c7,'createdAt':new Date(),'authorId':_0x463b0a,'attributes':_0x24a490});for(const _0x892ee8 of _0x295fc3)_0x892ee8[_0x4103('0xa5')](),_0x892ee8[_0x4103('0xfd')]||'$graveyard'==_0x892ee8[_0x4103('0x27')][_0x4103('0x31')]||this[_0x4103('0x16a')](_0xeee2c7,_0xaf7d9a,_0x463b0a,_0x892ee8,_0xdfa14c['getMultiRangeId']());return _0x4e767c;}['markAttributeChange'](_0x1df3db,_0x40fe14,_0x162c3a,_0x9a3454,_0x79558f){if(_0x1df3db[_0x4103('0xfd')])return[];if(_0x4103('0xd2')===this[_0x4103('0xd6')])return[];const _0x545cb6=this[_0x4103('0xee')][_0x4103('0x8b')][_0x4103('0x129')](_0x4103('0x130'))['me']['id'],_0x3ea113=Array[_0x4103('0x4a')](this[_0x4103('0x116')]['values']())[_0x4103('0x6e')](_0x5cdda8=>'attribute'==_0x5cdda8[_0x4103('0x24')]&&_0x5cdda8[_0x4103('0x137')][_0x4103('0x163')]==_0x40fe14&&_0x5cdda8['isIntersectingWithRange'](_0x1df3db));if(_0x4103('0xb5')===this[_0x4103('0xd6')]){const _0x55af15=this['_findSuggestions'](_0x1df3db,_0x4103('0x83'))['filter'](({meta:_0x3644be})=>_0x3644be[_0x4103('0x98')]&&!_0x3644be['isInsideObject']&&!_0x3644be[_0x4103('0x95')])[_0x4103('0xe5')](({suggestion:_0x2a1065})=>_0x2a1065);_0x3ea113[_0x4103('0x125')](..._0x55af15);}const _0x3d20c0=new Map([[_0x1df3db,_0x162c3a]]);for(const _0x2ef94 of _0x3ea113){const _0x1a02d6='attribute'==_0x2ef94[_0x4103('0x24')]?_0x2ef94[_0x4103('0x137')][_0x4103('0x161')]:void 0x0,_0x49c016=_0x2ef94[_0x4103('0x114')](),_0x5afb0b=Array[_0x4103('0x4a')](_0x3d20c0[_0x4103('0x17c')]())[_0x4103('0x120')](_0x42b7db=>_0x42b7db[_0x4103('0x13d')](_0x49c016));if(!_0x5afb0b)continue;const _0x22bac6=_0x5afb0b[_0x4103('0x99')](_0x49c016);this[_0x4103('0x140')](_0x40fe14)&&_0x4103('0x83')==_0x2ef94['type']&&0x0!=_0x22bac6[_0x4103('0xb2')]||(_0x3d20c0[_0x4103('0xf3')](_0x5afb0b),_0x22bac6[_0x4103('0xda')](_0x4598bc=>{_0x3d20c0['set'](_0x4598bc,_0x162c3a);}),_0x4103('0x83')!=_0x2ef94[_0x4103('0x24')]&&_0x1a02d6!=_0x9a3454&&_0x3d20c0[_0x4103('0x6')](_0x5afb0b['getIntersection'](_0x49c016),_0x1a02d6));}const _0x5f0c80=[];for(const [_0x1a16fa,_0x57e478]of _0x3d20c0){const _0x33f9f2=_0x5df0ee(),_0x4808e2={'key':_0x40fe14,'oldValue':_0x57e478,'newValue':_0x9a3454};_0x40fe14[_0x4103('0xb2')]>0x25&&console[_0x4103('0x104')]('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.',{'key':_0x40fe14});const _0xa9d5f3=(_0x4103('0x61')+(_0x40fe14+'|'+Et({'newValue':_0x9a3454})))[_0x4103('0x86')](0x0,0x3c),_0x8c6f06=this[_0x4103('0x5e')]({'id':_0x33f9f2,'type':_0xa9d5f3,'data':_0x4808e2,'createdAt':new Date(),'authorId':_0x545cb6,'attributes':_0x79558f});_0x5f0c80[_0x4103('0x5b')](_0x8c6f06),this['_addSuggestionMarker'](_0xa9d5f3,_0x33f9f2,_0x545cb6,_0x1a16fa);}return _0x5f0c80;}[_0x4103('0x4b')](_0x3d5add){this[_0x4103('0xca')][_0x4103('0x10b')](_0x3d5add);}[_0x4103('0x174')](_0x1a0096){this[_0x4103('0x10d')][_0x4103('0x10b')](_0x1a0096);}['_enableDefaultAttributesIntegration'](_0x401bcb,_0x3c5f26=[],_0x5aa42d=[]){this['enableCommand'](_0x401bcb,(_0x27f3a9,..._0x151067)=>{this[_0x4103('0xd5')](()=>{_0x27f3a9(..._0x151067);});});for(const _0x4b49b5 of _0x3c5f26)this[_0x4103('0x174')](_0x4b49b5);for(const _0x356774 of _0x5aa42d)this[_0x4103('0x4b')](_0x356774);}[_0x4103('0x5a')](_0x4f2b27,_0xffe642){const _0x320b02=_0x4f2b27['getFirstMarker']();this[_0x4103('0x15f')][_0x4103('0xb0')](_0x171e93=>{_0x171e93['updateMarker'](_0x320b02,{'range':_0xffe642});});}[_0x4103('0x48')](_0x157e17){const _0x8a0f4a=_0x157e17['id'],_0x3c21bb=this['editor']['config'][_0x4103('0x129')]('collaboration.channelId');this[_0x4103('0x7')][_0x4103('0x35')](_0x8a0f4a)||this[_0x4103('0x7')]['addCommentThread']({'channelId':_0x3c21bb,'threadId':_0x8a0f4a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1a6749=this[_0x4103('0x7')][_0x4103('0xef')](_0x8a0f4a);_0x1a6749[_0x4103('0xae')](_0x4103('0x151')),_0x1a6749[_0x4103('0x151')]=!0x1,_0x157e17[_0x4103('0x139')]=_0x1a6749;}['_checkSuggestionCorrectness'](_0x2afb9e,_0x4d788f,_0x3ea824,_0x526791){if(_0x2afb9e[_0x4103('0x24')]!=_0x4d788f||_0x2afb9e[_0x4103('0x79')]!=_0x3ea824||_0x2afb9e[_0x4103('0x51')]['id']!=_0x526791)throw this[_0x4103('0xee')][_0x4103('0xdb')]('track-changes-suggestion-data-mismatch'),new _0x207a25(_0x4103('0xfa'),this);}[_0x4103('0xbf')](_0x37a03c,_0x4c9feb){const _0x354e61=_0x37a03c[_0x4103('0x114')]();if(_0x4c9feb[_0x4103('0x32')](_0x354e61))_0x37a03c['removeMarkers']();else{if(_0x354e61[_0x4103('0x85')](_0x4c9feb)){const _0x441df8=this[_0x4103('0x15f')][_0x4103('0xa4')](_0x4c9feb[_0x4103('0x16e')]['nodeBefore'],_0x4103('0x9a'));this[_0x4103('0x5a')](_0x37a03c,this[_0x4103('0x15f')]['createRange'](_0x354e61[_0x4103('0x16e')],_0x441df8));const _0x346896=_0x5df0ee(),_0x4f4310=_0x37a03c[_0x4103('0x51')]['id'],_0x346530=_0x37a03c[_0x4103('0x24')]+':'+_0x37a03c['subType'];this[_0x4103('0x5e')]({'id':_0x346896,'type':_0x346530,'createdAt':new Date(),'authorId':_0x4f4310,'data':_0x37a03c[_0x4103('0x137')],'attributes':_0x37a03c[_0x4103('0x3a')]});const _0x2a2698=this[_0x4103('0x15f')]['createPositionAt'](_0x4c9feb[_0x4103('0x9a')][_0x4103('0x2a')],_0x4103('0x92')),_0x430dcf=this['_model'][_0x4103('0xcc')](_0x2a2698,_0x354e61[_0x4103('0x9a')]);this[_0x4103('0x16a')](_0x346530,_0x346896,_0x4f4310,_0x430dcf);}else{if(_0x354e61[_0x4103('0x90')](_0x4c9feb[_0x4103('0x16e')])){const _0x2236bb=this[_0x4103('0x15f')][_0x4103('0xa4')](_0x4c9feb['start'][_0x4103('0x14e')],_0x4103('0x9a'));this[_0x4103('0x5a')](_0x37a03c,this[_0x4103('0x15f')][_0x4103('0xcc')](_0x354e61[_0x4103('0x16e')],_0x2236bb));}else{const _0x3447af=this[_0x4103('0x15f')][_0x4103('0xa4')](_0x4c9feb['end']['parent'],_0x4103('0x92'));this[_0x4103('0x5a')](_0x37a03c,this[_0x4103('0x15f')][_0x4103('0xcc')](_0x3447af,_0x354e61['end']));}}}}[_0x4103('0x10')](_0x12ed41){for(const {suggestion:_0x3f9fc7,meta:_0x28ff80}of this['_findSuggestions'](_0x12ed41,_0x4103('0x83'))){if(!_0x28ff80['isOwn'])continue;const _0x1d63f0=_0x3f9fc7[_0x4103('0x13c')]();for(const _0x50c771 of _0x1d63f0)if(!_0x12ed41['getDifference'](_0x50c771)[_0x4103('0xb2')])return!0x0;}return!0x1;}[_0x4103('0x110')](_0x250a37){const _0x3de47c=this[_0x4103('0xee')][_0x4103('0x8b')][_0x4103('0x129')](_0x4103('0x130'))[_0x4103('0x3')](_0x250a37);if(!_0x3de47c)throw new _0x207a25(_0x4103('0x6d'),this);return _0x3de47c;}[_0x4103('0x17b')](_0x58ff24){const _0x366e03=this[_0x4103('0xee')][_0x4103('0x8b')][_0x4103('0x129')]('Users'),_0x583f79=_0x536ea2(_0x4103('0x69')+_0x58ff24),_0x40b591=_0x366e03[_0x4103('0x3')](_0x583f79);return _0x40b591||_0x366e03['addUser']({'id':_0x583f79,'name':_0x58ff24});}[_0x4103('0x2e')](_0x2530c1,_0x1b49f9,_0x2640cc,_0x131c90,_0x345e87){const _0x5d2cfa=this[_0x4103('0x110')](_0x131c90),_0x491ff0=this[_0x4103('0x171')][_0x4103('0xc5')](_0x2530c1,_0x1b49f9,_0x2640cc,_0x5d2cfa,_0x345e87,_0x5f0284=>this[_0x4103('0x25')](_0x2640cc,{'attributes':_0x5f0284}));return this[_0x4103('0x17d')](_0x491ff0,_0x4103('0x122'),()=>{this[_0x4103('0x25')](_0x2640cc,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x491ff0,'discard',()=>{this['_updateSuggestionData'](_0x2640cc,{'state':_0x4103('0xb7')});},{'priority':_0x4103('0xa')}),this[_0x4103('0x116')][_0x4103('0x6')](_0x2640cc,_0x491ff0),this['_suggestionState'][_0x4103('0x6')](_0x491ff0,_0x4103('0x14d')),_0x491ff0;}[_0x4103('0x12b')](_0x476de6){const _0x540501=_0x476de6[_0x4103('0x33')](':');return{'group':_0x540501[0x0],'type':_0x540501[0x1],'subType':_0x540501[_0x4103('0xb2')]>=0x5?_0x540501[0x2]:null,'id':_0x540501[_0x4103('0xb2')]<0x5?_0x540501[0x2]:_0x540501[0x3],'authorId':_0x540501[_0x4103('0xb2')]<0x5?_0x540501[0x3]:_0x540501[0x4],'markerCount':0x6==_0x540501['length']?_0x540501[0x5]:null};}[_0x4103('0x133')](_0x444060,_0x26e131,_0x180a57){const _0x436e36=_0x444060[_0x4103('0x114')](),_0xc3cb64=_0x436e36[_0x4103('0x16e')],_0x3f3473=_0x436e36[_0x4103('0x9a')];this['_setSuggestionRange'](_0x444060,this[_0x4103('0x15f')][_0x4103('0xcc')](_0xc3cb64,_0x26e131));const _0x5eaafc=_0x5df0ee(),_0x23698a=_0x444060['creator']['id'],_0x521222=_0x444060[_0x4103('0x24')]+(_0x444060[_0x4103('0x79')]?':'+_0x444060[_0x4103('0x79')]:'');this[_0x4103('0x5e')]({'id':_0x5eaafc,'type':_0x521222,'createdAt':new Date(),'authorId':_0x23698a,'originalSuggestionId':_0x444060['id'],'attributes':_0x444060['attributes'],'data':_0x444060[_0x4103('0x137')]});const _0x24c57f=Pt(_0x444060);('formatBlock'==_0x444060[_0x4103('0x24')]||_0x24c57f&&this[_0x4103('0x140')](_0x24c57f))&&(_0x180a57=this[_0x4103('0x15f')][_0x4103('0x19')](_0x180a57[_0x4103('0x2a')])),this[_0x4103('0x16a')](_0x521222,_0x5eaafc,_0x23698a,this[_0x4103('0x15f')][_0x4103('0xcc')](_0x180a57,_0x3f3473));}[_0x4103('0x2f')](_0x22215d,_0x229dd5=null){const _0x429159=[],_0x39bc30=this['editor'][_0x4103('0x8b')][_0x4103('0x129')](_0x4103('0x130'))['me'];Array[_0x4103('0xac')](_0x22215d)||(_0x22215d=[_0x22215d]);for(const _0x5cee93 of this[_0x4103('0x101')]()){if(!_0x5cee93[_0x4103('0x81')])continue;if(_0x229dd5&&_0x5cee93[_0x4103('0x24')]!=_0x229dd5)continue;let _0x7e07bb=!0x1;for(const _0x598efe of _0x5cee93[_0x4103('0x13c')]()){for(const _0x1f0da9 of _0x22215d){const _0x1974f1=_0x1f0da9[_0x4103('0x16e')][_0x4103('0x32')](_0x598efe[_0x4103('0x9a')])||_0x1f0da9[_0x4103('0x9a')]['isEqual'](_0x598efe[_0x4103('0x16e')]);if(_0x1974f1||_0x1f0da9[_0x4103('0x47')](_0x598efe)){const _0x33851e=_0x1f0da9[_0x4103('0x85')](_0x598efe)&&Bt(this[_0x4103('0x15f')][_0x4103('0x16b')],_0x598efe[_0x4103('0x16e')],_0x1f0da9),_0x775a5b=_0x598efe['containsRange'](_0x1f0da9)&&Bt(this[_0x4103('0x15f')][_0x4103('0x16b')],_0x1f0da9['start'],_0x598efe);_0x429159['push']({'suggestion':_0x5cee93,'meta':{'isOwn':_0x39bc30==_0x5cee93[_0x4103('0xd9')],'isNextTo':_0x1974f1,'isInsideObject':_0x33851e,'containsRangeInObject':_0x775a5b}}),_0x7e07bb=!0x0;break;}}if(_0x7e07bb)break;}}return _0x429159;}[_0x4103('0x16a')](_0x3eee2f,_0x40eb5b,_0x26bb2c,_0x14b8ef,_0x5ef735){this[_0x4103('0x15f')][_0x4103('0xb0')](_0x311e10=>{let _0xd00fe2=_0x4103('0xbe')+_0x3eee2f+':'+_0x40eb5b+':'+_0x26bb2c;_0x5ef735&&(_0xd00fe2=_0xd00fe2+':'+_0x5ef735),_0x311e10[_0x4103('0x15e')](_0xd00fe2,{'range':_0x14b8ef,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x7018af){const _0x33e9d0=_0x7018af['previous'],_0x4d1c68=_0x7018af[_0x4103('0x169')];_0x7018af[_0x4103('0x146')]=null,_0x7018af[_0x4103('0x169')]=null,null!=_0x33e9d0&&(_0x33e9d0[_0x4103('0x169')]=_0x4d1c68),null!=_0x4d1c68&&(_0x4d1c68[_0x4103('0x146')]=_0x33e9d0),_0x4103('0x166')==this['_suggestionState']['get'](_0x7018af)&&(this['_suggestionState'][_0x4103('0x6')](_0x7018af,_0x4103('0x106')),this['fire'](_0x4103('0x14f'),_0x7018af,_0x33e9d0,_0x4d1c68));}['_setSuggestionData'](_0x23b77d){const _0x345440=_0x23b77d['id'],_0x384a97=this[_0x4103('0x9d')](_0x23b77d);if(this['_adapter']&&this[_0x4103('0x131')]['addSuggestion']){const _0x56900f=this[_0x4103('0xee')]['plugins'][_0x4103('0x129')](_0x4103('0x168')),_0x32440c=_0x384a97[_0x4103('0x103')],_0x56afd3=_0x384a97[_0x4103('0x79')]?_0x384a97[_0x4103('0x24')]+':'+_0x384a97['subType']:_0x384a97[_0x4103('0x24')],_0x310e4c=this[_0x4103('0xee')][_0x4103('0x1c')],_0x45e881=_0x56900f[_0x4103('0x10b')](_0x1f5924(_0x310e4c,_0x4103('0x17e'))),_0x2ba69c={'id':_0x345440,'type':_0x56afd3,'hasComments':_0x32440c,'data':_0x23b77d[_0x4103('0x137')]||null,'originalSuggestionId':_0x23b77d['originalSuggestionId']||null,'attributes':_0x384a97['attributes']};this[_0x4103('0x131')][_0x4103('0x65')](_0x2ba69c)['then'](_0x2007ce=>{_0x384a97[_0x4103('0x13')]=!0x0,_0x56900f[_0x4103('0x34')](_0x45e881),_0x2007ce&&_0x2007ce[_0x4103('0x84')]&&(this[_0x4103('0x116')][_0x4103('0x129')](_0x345440)[_0x4103('0x84')]=_0x2007ce[_0x4103('0x84')]);})[_0x4103('0xe1')](_0x47f330=>{throw _0x4ac773(_0x4103('0x1f')),this[_0x4103('0xee')][_0x4103('0xa1')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x384a97['discard']();}),_0x384a97[_0x4103('0xc')](),this[_0x4103('0x116')][_0x4103('0xf3')](_0x384a97['id']),this[_0x4103('0x4c')]['delete'](_0x384a97),_0x47f330;});}return _0x384a97;}['_isBlockAttribute'](_0x362ccf){return this[_0x4103('0xca')][_0x4103('0x94')](_0x362ccf);}[_0x4103('0x25')](_0x1d7097,_0x15ccf6){const _0x2117f0=this[_0x4103('0xee')][_0x4103('0x8b')][_0x4103('0x129')]('PendingActions'),_0x20eb1b=this[_0x4103('0x62')](_0x1d7097);if(this[_0x4103('0x131')]&&this[_0x4103('0x131')][_0x4103('0x2b')]){if(_0x20eb1b[_0x4103('0x13')]){const _0x43adb0=_0x2117f0[_0x4103('0x10b')](_0x1f5924(this[_0x4103('0xee')]['locale'],_0x4103('0x17e')));this[_0x4103('0x131')][_0x4103('0x2b')](_0x1d7097,_0x15ccf6)[_0x4103('0x11a')](()=>{_0x2117f0['remove'](_0x43adb0);});}else _0x20eb1b['on'](_0x4103('0x119'),()=>{this[_0x4103('0x25')](_0x1d7097,_0x15ccf6);});}}[_0x4103('0x9')](_0x555dac){if(!this['_adapter']||!this['_adapter'][_0x4103('0x62')])throw new _0x207a25('track-changes-adapter-missing-getsuggestion',this);return this[_0x4103('0x131')][_0x4103('0x62')](_0x555dac);}[_0x4103('0xf7')](_0x1789d1){const {id:_0x5db69b,type:_0x36ed57,subType:_0x4cf0e0,authorId:_0x5a55d1}=this[_0x4103('0x12b')](_0x1789d1),_0x4be9ee=this[_0x4103('0x116')][_0x4103('0x129')](_0x5db69b)||this[_0x4103('0x2e')](_0x36ed57,_0x4cf0e0,_0x5db69b,_0x5a55d1,{});switch(this[_0x4103('0x128')](_0x4be9ee,_0x36ed57,_0x4cf0e0,_0x5a55d1),this[_0x4103('0x4c')][_0x4103('0x129')](_0x4be9ee)){case'notReady':this[_0x4103('0x9')](_0x5db69b)['then'](_0x5c8afb=>{let _0x1268da=Promise['resolve']();_0x5c8afb[_0x4103('0x103')]&&(_0x1268da=this[_0x4103('0x7')][_0x4103('0xc2')]({'channelId':this['editor'][_0x4103('0x8')][_0x4103('0x129')](_0x4103('0x9b')),'threadId':_0x5db69b})),_0x1268da[_0x4103('0x11a')](()=>{this[_0x4103('0x9d')](_0x5c8afb)[_0x4103('0x13')]=!0x0;});}),this[_0x4103('0x4c')][_0x4103('0x6')](_0x4be9ee,_0x4103('0xb1'));break;case _0x4103('0x106'):this[_0x4103('0x25')](_0x5db69b,{'state':'open'});case'dataReady':this[_0x4103('0x4c')][_0x4103('0x6')](_0x4be9ee,_0x4103('0x166')),this[_0x4103('0x76')]('suggestionLoaded',_0x4be9ee);break;case'ready':this[_0x4103('0x76')]('suggestionChanged',_0x4be9ee);}return _0x4be9ee[_0x4103('0x12d')](_0x1789d1),_0x4be9ee;}[_0x4103('0xeb')](_0x10a65e){const _0x2a2e30=Array[_0x4103('0x4a')](_0x10a65e),_0x3cc5a4=_0x2a2e30['filter'](_0x726fd1=>_0x4103('0x13a')==_0x726fd1[_0x4103('0x24')]);this[_0x4103('0x10f')](_0x3cc5a4);const _0x1e823a=_0x2a2e30[_0x4103('0x6e')](_0x49c51b=>!_0x49c51b[_0x4103('0xba')]&&_0x4103('0x13a')!=_0x49c51b[_0x4103('0x24')]),_0x578841=this[_0x4103('0x101')]({'skipNotAttached':!0x0})[_0x4103('0x6e')](_0x56bdfb=>!_0x56bdfb[_0x4103('0xba')]&&_0x4103('0x13a')!=_0x56bdfb[_0x4103('0x24')]),_0xf61cce=_0x578841['filter'](_0x79d91f=>!_0x10a65e['has'](_0x79d91f)),_0x2fee43=new Map(_0x578841[_0x4103('0xe5')](_0x57caaf=>[_0x57caaf,this[_0x4103('0x171')]['getSuggestionCallback'](_0x57caaf[_0x4103('0x24')],_0x57caaf['subType'],_0x4103('0x42'))])),_0x56fe57=new Map(_0x578841[_0x4103('0xe5')](_0x41288f=>[_0x41288f,_0x41288f['getFirstRange']()])),_0x151451=new Set(),_0x56fcc6=new Set();for(let _0x682b1e=0x0;_0x682b1e<_0x1e823a['length'];_0x682b1e++)_0x4b6e6c(_0x1e823a[_0x682b1e],_0x1e823a,_0x682b1e+0x1);for(let _0x5892c2=0x0;_0x5892c2<_0x1e823a[_0x4103('0xb2')];_0x5892c2++)_0x4b6e6c(_0x1e823a[_0x5892c2],_0xf61cce,0x0);const _0x21ba2c=new Set();for(let _0x1e25f3=0x0;_0x1e25f3<_0x1e823a[_0x4103('0xb2')];_0x1e25f3++){const _0x3d0f4b=_0x1e823a[_0x1e25f3];!_0x56fcc6[_0x4103('0x94')](_0x3d0f4b)&&_0x3d0f4b[_0x4103('0x146')]&&(_0x21ba2c[_0x4103('0x10b')](_0x3d0f4b[_0x4103('0x146')]),_0x3d0f4b['previous'][_0x4103('0x169')]===_0x3d0f4b&&(_0x3d0f4b[_0x4103('0x146')][_0x4103('0x169')]=null),_0x3d0f4b[_0x4103('0x146')]=null),!_0x151451[_0x4103('0x94')](_0x3d0f4b)&&_0x3d0f4b[_0x4103('0x169')]&&(_0x21ba2c[_0x4103('0x10b')](_0x3d0f4b[_0x4103('0x169')]),_0x3d0f4b[_0x4103('0x169')][_0x4103('0x146')]===_0x3d0f4b&&(_0x3d0f4b[_0x4103('0x169')]['previous']=null),_0x3d0f4b[_0x4103('0x169')]=null);}function _0x4b6e6c(_0x5948a7,_0x57180f,_0x469f5e){for(let _0x252a38=_0x469f5e;_0x252a38<_0x57180f['length'];_0x252a38++){const _0x4ec60f=_0x5522f9(_0x5948a7,_0x57180f[_0x252a38]);_0x4ec60f&&(_0x4ec60f[0x0][_0x4103('0x169')]=_0x4ec60f[0x1],_0x4ec60f[0x1][_0x4103('0x146')]=_0x4ec60f[0x0],_0x151451['add'](_0x4ec60f[0x0]),_0x56fcc6[_0x4103('0x10b')](_0x4ec60f[0x1]));}}function _0x5522f9(_0x5c6384,_0x5ba068){if(_0x5c6384[_0x4103('0xd9')]['id']!==_0x5ba068['author']['id'])return null;const _0x108fe6=_0x2fee43[_0x4103('0x129')](_0x5c6384)(_0x5c6384,_0x5ba068,_0x56fe57[_0x4103('0x129')](_0x5c6384),_0x56fe57[_0x4103('0x129')](_0x5ba068));if(!_0x108fe6)return null;return _0x2fee43[_0x4103('0x129')](_0x5ba068)(_0x5c6384,_0x5ba068,_0x56fe57[_0x4103('0x129')](_0x5c6384),_0x56fe57['get'](_0x5ba068))?_0x108fe6[0x1][_0x4103('0x139')]&&_0x108fe6[0x1][_0x4103('0x139')]['length']?null:_0x108fe6:null;}_0x21ba2c[_0x4103('0xf8')]&&this['_refreshSuggestionsChain'](_0x21ba2c);}['_refreshAttributeSuggestionsChain'](_0x329a04){if(0x0==_0x329a04[_0x4103('0xb2')])return;const _0x2a69fb=this[_0x4103('0x101')]({'skipNotAttached':!0x0})['filter'](_0xc2e240=>_0x4103('0x13a')==_0xc2e240[_0x4103('0x24')]&&_0xc2e240[_0x4103('0x4')]),_0xfce426=[],_0x494532=new Map();for(const _0xae215b of _0x2a69fb){const _0x447462=_0x536ea2(_0xae215b[_0x4103('0x3a')]);_0x494532[_0x4103('0x94')](_0x447462)||(_0x494532[_0x4103('0x6')](_0x447462,_0xfce426[_0x4103('0xb2')]),_0xfce426[_0x4103('0x5b')]([]));const _0x5988c4=_0x494532[_0x4103('0x129')](_0x447462);_0xfce426[_0x5988c4][_0x4103('0x5b')](_0xae215b);}!function(){_0xfce426['sort']((_0x3b0a09,_0x473702)=>{const _0x1a1e20=_0x3b0a09[0x0]['createdAt'],_0x44237d=_0x473702[0x0]['createdAt'];return _0x1a1e20==_0x44237d?_0x3b0a09[0x0][_0x4103('0x3a')][_0x4103('0xd7')]<_0x473702[0x0][_0x4103('0x3a')][_0x4103('0xd7')]?-0x1:0x1:_0x1a1e20<_0x44237d?-0x1:0x1;});for(const _0x231090 of _0xfce426)_0x231090[_0x4103('0xa3')]((_0x21ada6,_0x398225)=>_0x21ada6['id']<_0x398225['id']?-0x1:0x1);}();for(let _0x5e7a03=0x0;_0x5e7a03<_0xfce426[_0x4103('0xb2')];_0x5e7a03++){if(0x0==_0xfce426[_0x5e7a03][_0x4103('0xb2')])continue;const _0x166fd4=[];for(let _0x1d9863=_0x5e7a03+0x1;_0x1d9863<_0xfce426[_0x4103('0xb2')];_0x1d9863++)0x0!=_0xfce426[_0x1d9863][_0x4103('0xb2')]&&_0x2b98f4(_0xfce426[_0x5e7a03],_0xfce426[_0x1d9863])&&_0x166fd4[_0x4103('0x5b')](_0x1d9863);for(const _0x46ef96 of _0x166fd4)_0xfce426[_0x5e7a03]=_0xfce426[_0x5e7a03][_0x4103('0xf4')](_0xfce426[_0x46ef96]),_0xfce426[_0x46ef96]=[];}for(const _0x10cd61 of _0xfce426)for(let _0x3b4a48=0x0;_0x3b4a48<_0x10cd61[_0x4103('0xb2')];_0x3b4a48++)_0x10cd61[_0x3b4a48]['next']=_0x10cd61[_0x3b4a48+0x1]||null;for(const _0x17b27b of _0xfce426)for(let _0x58de7e=0x0;_0x58de7e<_0x17b27b[_0x4103('0xb2')];_0x58de7e++)_0x17b27b[_0x58de7e][_0x4103('0x146')]=_0x17b27b[_0x58de7e-0x1]||null;function _0x2b98f4(_0x4e3969,_0x28701d){if(_0x4e3969[0x0][_0x4103('0xd9')]!==_0x28701d[0x0][_0x4103('0xd9')])return!0x1;if(!function(_0x3511db,_0x22627a){if(!_0x3511db['hasComments']&&!_0x22627a[_0x4103('0x103')])return!0x0;if(_0x3511db[_0x4103('0x103')]&&_0x22627a[_0x4103('0x103')])return!0x1;if(_0x3511db[_0x4103('0x103')]&&_0x22627a['createdAt']<_0x3511db['commentThread']['comments'][_0x4103('0x129')](0x0)[_0x4103('0x84')])return!0x0;if(_0x22627a['hasComments']&&_0x3511db[_0x4103('0x84')]<_0x22627a['commentThread'][_0x4103('0x63')][_0x4103('0x129')](0x0)[_0x4103('0x84')])return!0x0;return!0x1;}(_0x4e3969[0x0],_0x28701d[0x0]))return!0x1;const _0xdb9266=_0xca117e(_0x4e3969[0x0]['attributes'],_0x4103('0xd7')),_0x3b5ee7=_0xca117e(_0x28701d[0x0][_0x4103('0x3a')],_0x4103('0xd7'));if(!_0x429fef(_0xdb9266,_0x3b5ee7))return!0x1;return!!_0x4e3969[_0x4103('0xe')](_0x122ef9=>_0x28701d[_0x4103('0xa2')](_0x4a7d48=>_0x122ef9[_0x4103('0x114')]()[_0x4103('0x32')](_0x4a7d48['getFirstRange']())))&&_0x28701d[_0x4103('0xe')](_0x4b665f=>_0x4e3969['some'](_0x26b482=>_0x4b665f[_0x4103('0x114')]()[_0x4103('0x32')](_0x26b482[_0x4103('0x114')]())));}}[_0x4103('0x1d')](_0x40ea48){const _0x1336fd=Array[_0x4103('0x4a')](_0x40ea48),_0x1bffa2=this[_0x4103('0x101')]({'skipNotAttached':!0x0}),_0x54faf4=_0x1bffa2['filter'](_0x41a490=>!_0x40ea48[_0x4103('0x94')](_0x41a490)),_0x582ecf=new Map(_0x1336fd[_0x4103('0xe5')](_0x4e4f0b=>[_0x4e4f0b,this[_0x4103('0x171')][_0x4103('0x14')](_0x4e4f0b[_0x4103('0x24')],_0x4e4f0b[_0x4103('0x79')],'join')])),_0x44b3a9=new Map(_0x1bffa2[_0x4103('0xe5')](_0x21a26e=>[_0x21a26e,_0x21a26e['getRanges']()]));for(let _0x57848d=0x0;_0x57848d<_0x1336fd[_0x4103('0xb2')];_0x57848d++){if(_0x41cf5e(this,_0x1336fd[_0x57848d],_0x1336fd,_0x57848d+0x1))return!0x0;}for(let _0x5e3485=0x0;_0x5e3485<_0x1336fd[_0x4103('0xb2')];_0x5e3485++){if(_0x41cf5e(this,_0x1336fd[_0x5e3485],_0x54faf4,0x0))return!0x0;}return!0x1;function _0x41cf5e(_0x1f88fb,_0x5a2881,_0x24c0c4,_0x1527b7){for(let _0x2d9b09=_0x1527b7;_0x2d9b09<_0x24c0c4[_0x4103('0xb2')];_0x2d9b09++){const _0x3c8852=_0x24c0c4[_0x2d9b09];if(_0x3c8852[_0x4103('0x24')]!==_0x5a2881[_0x4103('0x24')]||_0x3c8852[_0x4103('0xd9')]['id']!==_0x5a2881[_0x4103('0xd9')]['id']||_0x3c8852['subType']!==_0x5a2881[_0x4103('0x79')])continue;if(!Vt(_0x5a2881,_0x3c8852))continue;if(_0x4103('0x13a')==_0x5a2881[_0x4103('0x24')]&&_0x5a2881[_0x4103('0x137')][_0x4103('0x161')]!=_0x3c8852[_0x4103('0x137')]['oldValue'])continue;if(_0x4103('0x13a')==_0x5a2881['type']&&_0x1f88fb[_0x4103('0x140')](_0x5a2881[_0x4103('0x137')][_0x4103('0x163')]))continue;if('formatBlock'==_0x5a2881[_0x4103('0x24')]){const _0x94439b=_0x1f88fb[_0x4103('0xee')][_0x4103('0xa1')],_0x4ae235=_0x5a2881[_0x4103('0x9f')]();if(_0x4ae235&&(_0x94439b[_0x4103('0x16b')][_0x4103('0xde')](_0x4ae235)||_0x94439b[_0x4103('0x16b')][_0x4103('0x7a')](_0x4ae235)))continue;}const _0xb4c4e8=_0x582ecf['get'](_0x5a2881),_0x7a1cc4=_0x44b3a9[_0x4103('0x129')](_0x5a2881),_0x48e490=_0x44b3a9['get'](_0x3c8852),_0x31a72e=_0x5a2881['commentThread']&&_0x5a2881[_0x4103('0x139')][_0x4103('0xb2')],_0x1b42d5=_0x3c8852['commentThread']&&_0x3c8852['commentThread']['length'];if(!_0x31a72e&&_0xb4c4e8(_0x48e490,_0x7a1cc4))return _0x1f88fb[_0x4103('0xb3')](_0x3c8852,_0x5a2881),_0x44b3a9[_0x4103('0xf3')](_0x5a2881),!0x0;if(!_0x1b42d5&&_0xb4c4e8(_0x7a1cc4,_0x48e490))return _0x1f88fb['_joinSuggestions'](_0x5a2881,_0x3c8852),_0x44b3a9['delete'](_0x3c8852),!0x0;}return!0x1;}}[_0x4103('0xb3')](_0x1c1597,_0x5b68c7){if(_0x1c1597['isMultiRange'])for(const _0xa50f82 of _0x5b68c7[_0x4103('0x13c')]())_0x1c1597['addRange'](_0xa50f82);else{const _0x11d828=_0x5b68c7['getFirstRange']()[_0x4103('0x9a')];this[_0x4103('0x5a')](_0x1c1597,this['_model'][_0x4103('0xcc')](_0x1c1597[_0x4103('0x114')]()[_0x4103('0x16e')],_0x11d828));}_0x5b68c7[_0x4103('0x160')]();}[_0x4103('0x126')](_0x5b31d9,_0x26af17){const _0x1ea79c=_0x5b31d9['startsWith'](_0x4103('0xd3'))||_0x5b31d9[_0x4103('0xc1')](_0x4103('0x13a'))?'FORMATTING':_0x5b31d9['toUpperCase']();return _0x1f5924(this['editor'][_0x4103('0x1c')],_0x26af17+'_'+_0x1ea79c+_0x4103('0x143'));}[_0x4103('0x29')](){const _0x90534=this[_0x4103('0xee')];_0x8a1101(this[_0x4103('0x15f')],({left:_0x1b0922,entered:_0x22c348})=>{const _0x42a55a=[];for(const _0x4d58c8 of _0x1b0922){const {group:_0x13e0bf,type:_0x1d839d}=this[_0x4103('0x12b')](_0x4d58c8[_0x4103('0xb')]);if('suggestion'===_0x13e0bf){_0x42a55a[_0x4103('0x5b')](this[_0x4103('0x126')](_0x1d839d,_0x4103('0xcd')));break;}}for(const _0x8c908a of _0x22c348){const {group:_0x5edbe2,type:_0x50f059}=this[_0x4103('0x12b')](_0x8c908a['name']);if(_0x4103('0x0')===_0x5edbe2){_0x42a55a['push'](this[_0x4103('0x126')](_0x50f059,'ENTER'));break;}}_0x42a55a['length']&&_0x90534['ui'][_0x4103('0x28')][_0x4103('0x3b')](_0x4103('0x50'),_0x42a55a[_0x4103('0x11d')]('\x20'));});}[_0x4103('0x11b')](_0x17a913){if(null!==this[_0x4103('0x170')])return!0x1;const _0x5e5682=this['editor'],_0x4613fe=_0x5e5682[_0x4103('0xa1')][_0x4103('0x89')][_0x4103('0x157')][_0x4103('0x162')]();if(0x0==_0x4613fe[_0x4103('0xb2')])return!0x1;const _0x50e0f6=[],_0x76588c=_0x4613fe[_0x4103('0x6e')](_0x3d1db9=>'attribute'==_0x3d1db9['type']),_0x4c97fb=_0x4613fe[_0x4103('0x6e')](_0x570e26=>_0x4103('0x167')==_0x570e26[_0x4103('0x24')]&&_0x4103('0xaa')!=_0x570e26[_0x4103('0xb')]),_0x2dc295=_0x4613fe[_0x4103('0x6e')](_0x5c03f7=>'remove'==_0x5c03f7[_0x4103('0x24')]&&_0x4103('0xaa')!=_0x5c03f7['name']);for(const _0x3156cc of _0x76588c)_0x50e0f6[_0x4103('0x5b')]({'key':_0x3156cc['attributeKey'],'newValue':_0x3156cc['attributeNewValue'],'oldValue':_0x3156cc[_0x4103('0xce')],'range':_0x5dca9b(_0x3156cc[_0x4103('0x135')])});for(const _0x29c856 of _0x4c97fb){const _0x1f9c18=_0x2dc295[_0x4103('0x120')](_0x2f3184=>_0x2f3184['position'][_0x4103('0x32')](_0x29c856[_0x4103('0x15d')]));_0x1f9c18&&_0x50e0f6[_0x4103('0x5b')]({'key':'$elementName','newValue':_0x29c856[_0x4103('0xb')],'oldValue':_0x1f9c18[_0x4103('0xb')],'range':_0x5e5682[_0x4103('0xa1')]['createRangeOn'](_0x29c856[_0x4103('0x15d')]['nodeAfter'])});}return 0x0!=_0x50e0f6[_0x4103('0xb2')]&&this[_0x4103('0x4e')](_0x17a913,_0x50e0f6);function _0x5dca9b(_0x472d4c){return null==_0x472d4c[_0x4103('0x9a')][_0x4103('0x14e')]&&_0x472d4c[_0x4103('0x9a')][_0x4103('0x2a')]==_0x472d4c[_0x4103('0x16e')][_0x4103('0x9e')]?Ut(_0x472d4c['start'][_0x4103('0x9e')],_0x5e5682[_0x4103('0xa1')]):_0x472d4c;}}[_0x4103('0xf6')](_0x224db5){let _0x4d751c=!0x1;const _0x2c44cd=this[_0x4103('0xee')][_0x4103('0xa1')][_0x4103('0x89')][_0x4103('0x157')]['getChangedMarkers']()['filter'](_0xc15db5=>_0xc15db5[_0x4103('0x137')][_0x4103('0x36')]&&_0xc15db5[_0x4103('0xb')][_0x4103('0xc1')](_0x4103('0xfe')));for(const _0x28d47c of _0x2c44cd){const {subType:_0x1839f7,id:_0x580847}=this[_0x4103('0x12b')](_0x28d47c[_0x4103('0xb')]),_0x385dbb=_0x1839f7['split']('|')[0x0];for(const _0xaef531 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xaef531['id']!=_0x580847&&_0x4103('0x13a')==_0xaef531[_0x4103('0x24')]&&_0xaef531[_0x4103('0x137')]&&_0xaef531[_0x4103('0x137')][_0x4103('0x163')]==_0x385dbb&&_0xaef531[_0x4103('0x114')]()['isIntersecting'](_0x28d47c[_0x4103('0x137')]['newRange'])&&(this[_0x4103('0x173')](_0xaef531,_0x28d47c['data']['newRange'],_0x224db5),_0x4d751c=!0x0);}return _0x4d751c;}[_0x4103('0xd5')](_0x1c7be5){if(null!==this[_0x4103('0x170')])return void _0x1c7be5();const _0x412842=this[_0x4103('0xee')];this[_0x4103('0x170')]=_0x412842[_0x4103('0xa1')][_0x4103('0x89')][_0x4103('0x111')],_0x1c7be5();const _0x95a82b=new Map();for(const _0x111e3f of _0x412842['model']['document'][_0x4103('0x12e')][_0x4103('0x55')](this[_0x4103('0x170')]))if(['rename',_0x4103('0x11e'),'removeAttribute',_0x4103('0x71')][_0x4103('0x12c')](_0x111e3f[_0x4103('0x24')])){const _0x183f7a=_0x111e3f[_0x4103('0x123')],_0x1a8f00=_0x95a82b[_0x4103('0x129')](_0x183f7a)||[];_0x1a8f00['push'](_0x111e3f),_0x95a82b['set'](_0x183f7a,_0x1a8f00);}this['_recordAttributeSuggestionsFromVersion']=null;for(const [_0x14eb29,_0x26d8cb]of _0x95a82b){const _0x5ac87d=_0x5df0ee();_0x412842[_0x4103('0xa1')][_0x4103('0x49')](_0x14eb29,_0x465211=>{const _0x36c52c=[];for(const _0x1d710b of _0x26d8cb){let _0x4e0a11,_0x112495,_0x5104ed,_0x1bd384;if(_0x4103('0xb4')==_0x1d710b['type']){const _0x53da40=_0x1d710b;_0x4e0a11=Ut(_0x53da40[_0x4103('0x15d')][_0x4103('0x9e')],_0x412842['model']),_0x112495=_0x4103('0xdf'),_0x5104ed=_0x53da40[_0x4103('0x77')],_0x1bd384=_0x53da40[_0x4103('0x26')];}else{const _0x2c61a5=_0x1d710b,_0x4b02f2=this['_isBlockAttribute'](_0x2c61a5[_0x4103('0x163')]),_0x335264=this[_0x4103('0x10d')]['has'](_0x2c61a5[_0x4103('0x163')]);if(!_0x4b02f2&&!_0x335264)continue;_0x4e0a11=_0x4b02f2?Ut(_0x2c61a5[_0x4103('0x135')][_0x4103('0x16e')][_0x4103('0x9e')],_0x412842[_0x4103('0xa1')]):_0x2c61a5['range'],_0x112495=_0x2c61a5['key'],_0x5104ed=_0x4103('0x82')==_0x1d710b['type']?void 0x0:_0x2c61a5[_0x4103('0xcf')],_0x1bd384=_0x2c61a5[_0x4103('0x161')];}this[_0x4103('0x175')](_0x4e0a11,_0x112495,_0x1bd384,_0x5104ed,{'groupId':_0x5ac87d}),_0x36c52c['push']({'range':_0x4e0a11,'key':_0x112495,'newValue':_0x5104ed,'oldValue':_0x1bd384});}this[_0x4103('0x4e')](_0x465211,_0x36c52c);});}}[_0x4103('0x4e')](_0x2f7aa8,_0x511de3){if(0x0==_0x511de3['length'])return!0x1;let _0x35ad39=!0x1;for(const _0x126d1f of _0x511de3){const _0x50c3eb=this['_findSuggestions'](_0x126d1f[_0x4103('0x135')],_0x4103('0x13a'))[_0x4103('0x6e')](_0x12c601=>!_0x12c601[_0x4103('0x41')][_0x4103('0x95')])[_0x4103('0xe5')](_0x22aeaf=>_0x22aeaf[_0x4103('0x0')]),_0x4165b4=_0x536ea2({'newValue':_0x126d1f[_0x4103('0xcf')]});_0x50c3eb['filter'](_0x3731a0=>{const [_0x573c71,_0x36a021]=_0x3731a0[_0x4103('0x79')][_0x4103('0x33')]('|');return _0x573c71==_0x126d1f[_0x4103('0x163')]&&_0x36a021!=_0x4165b4;})[_0x4103('0xda')](_0x5c416f=>{this[_0x4103('0x173')](_0x5c416f,_0x126d1f[_0x4103('0x135')],_0x2f7aa8),_0x35ad39=!0x0;});}return _0x35ad39;}['_reduceSuggestionAttributeRange'](_0x316657,_0x111a81,_0x32d171){const _0x52c483=_0x316657[_0x4103('0x114')]()[_0x4103('0x99')](_0x111a81);0x0!==_0x52c483[_0x4103('0xb2')]?0x1!==_0x52c483[_0x4103('0xb2')]?this[_0x4103('0x133')](_0x316657,_0x111a81[_0x4103('0x16e')],_0x111a81['end']):this[_0x4103('0x5a')](_0x316657,_0x52c483[0x0]):_0x32d171[_0x4103('0x46')](_0x316657['getFirstMarker']());}}class $t{constructor(_0x5e8ecf){this[_0x4103('0x6a')]=_0x5e8ecf,this[_0x4103('0x15f')]=_0x5e8ecf[_0x4103('0xa1')],this['_customCallbacks']=new Map(),this[_0x4103('0x149')]=new Map(),this[_0x4103('0xad')]();}[_0x4103('0xc5')](_0x590c9d,_0x3e8c83,_0x419b8f,_0x38a6ec,_0x1bda25,_0x137600){return new _0xdfa14c(this[_0x4103('0x15f')],{'type':_0x590c9d,'subType':_0x3e8c83,'id':_0x419b8f,'author':_0x38a6ec,'creator':_0x38a6ec,'attributes':_0x1bda25,'onAttributesChange':_0x137600,'onAccept':(..._0x557edb)=>this[_0x4103('0x14')](_0x590c9d,_0x3e8c83,_0x4103('0x122'))(..._0x557edb),'onDiscard':(..._0x45f5fa)=>this[_0x4103('0x14')](_0x590c9d,_0x3e8c83,'discard')(..._0x45f5fa)});}[_0x4103('0x11c')](_0x5ac24c,_0x33624f,_0x462149,_0x31c868){const _0x2bc4f9=_0x5ac24c+':'+_0x33624f+':'+_0x462149;this[_0x4103('0x5f')][_0x4103('0x6')](_0x2bc4f9,_0x31c868);}[_0x4103('0x14')](_0x3263cf,_0x5e6cd2,_0x3e0bd0){const _0x40ffdf=_0x3263cf+':'+_0x5e6cd2+':'+_0x3e0bd0;return this[_0x4103('0x5f')]['get'](_0x40ffdf)||this['_defaultCallbacks'][_0x4103('0x129')](_0x3263cf+':'+_0x3e0bd0);}[_0x4103('0xad')](){const _0x2f93ee=()=>!0x1,_0x2f9897=_0x43ef83=>{_0x43ef83[_0x4103('0xa3')]((_0x5631ad,_0x5e73d3)=>_0x5631ad[_0x4103('0x16e')][_0x4103('0x108')](_0x5e73d3[_0x4103('0x16e')])?0x1:-0x1),this['_model'][_0x4103('0xb0')](_0x128ff6=>{for(const _0x2aeb0c of _0x43ef83){let _0x409648;_0x409648=_0x2aeb0c[_0x4103('0x9a')][_0x4103('0xbb')]&&_0x2aeb0c[_0x4103('0x9a')][_0x4103('0x2a')]==_0x2aeb0c[_0x4103('0x16e')]['nodeAfter']?_0x128ff6[_0x4103('0x56')](_0x2aeb0c[_0x4103('0x16e')]['nodeAfter'],'on'):_0x128ff6[_0x4103('0x56')](_0x2aeb0c),this[_0x4103('0x15f')]['deleteContent'](_0x409648,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5619d8=(_0x4c39b9,_0x42fafb)=>{_0x42fafb&&this['_model'][_0x4103('0xb0')](_0x43cc04=>{const {commandName:_0x43aa49,commandParams:_0x3f8bc1=[]}=_0x42fafb,_0x2ad622=_0x4c39b9['map'](_0x37899a=>(Tt(_0x37899a)&&(_0x37899a=this[_0x4103('0x15f')][_0x4103('0xcc')](_0x37899a[_0x4103('0x9a')])),_0x37899a))['filter'](_0x1d3e9f=>_0x4103('0x141')!==_0x1d3e9f[_0x4103('0x27')][_0x4103('0x31')]);if(_0x2ad622[_0x4103('0xb2')]<0x1)return;const _0x4b6fa7=Array[_0x4103('0x4a')](this[_0x4103('0x15f')][_0x4103('0x89')]['selection']['getRanges']())[_0x4103('0xe5')](_0x3c0cb3=>_0x1394f0[_0x4103('0x102')](_0x3c0cb3));_0x43cc04[_0x4103('0x154')](_0x2ad622);for(const _0x1ed1af of this[_0x4103('0x6a')][_0x4103('0x2c')][_0x4103('0x2c')]())_0x1ed1af[_0x4103('0x70')]();_0x3f8bc1[_0x4103('0x5b')]({'forceDefaultExecution':!0x0}),this[_0x4103('0x6a')][_0x4103('0xb8')](_0x43aa49,..._0x3f8bc1);const _0x1ec3ff=_0x4b6fa7[_0x4103('0x6e')](_0x1b605c=>_0x4103('0x141')!=_0x1b605c[_0x4103('0x27')][_0x4103('0x31')]);_0x1ec3ff[_0x4103('0xb2')]>0x0&&_0x43cc04[_0x4103('0x154')](_0x1ec3ff);for(const _0x24e717 of _0x4b6fa7)_0x24e717[_0x4103('0xa5')]();});},_0x5750dd=(_0x341bfb,_0x1ea72d)=>0x1==_0x341bfb[_0x4103('0xb2')]&&0x1==_0x1ea72d[_0x4103('0xb2')]&&_0x341bfb[0x0]['end'][_0x4103('0x32')](_0x1ea72d[0x0][_0x4103('0x16e')]),_0x57b077=(_0x133498,_0x25c03f,_0x3c5ece,_0x45a229)=>Ot(_0x133498,_0x25c03f,_0x3c5ece,_0x45a229,this[_0x4103('0x15f')])?[_0x133498,_0x25c03f]:Ot(_0x25c03f,_0x133498,_0x45a229,_0x3c5ece,this[_0x4103('0x15f')])?[_0x25c03f,_0x133498]:null;this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0x15a'),_0x2f93ee),this[_0x4103('0x149')]['set'](_0x4103('0x7f'),_0x2f9897),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0x17'),_0x5750dd),this[_0x4103('0x149')]['set']('insertion:chain',_0x57b077),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0x66'),_0x2f9897),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0x96'),_0x2f93ee),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0x8a'),_0x5750dd),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0x2d'),_0x57b077),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0x59'),_0x5619d8),this[_0x4103('0x149')]['set'](_0x4103('0x124'),_0x2f93ee),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0x12'),_0x5750dd),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0x12f'),_0x2f93ee),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0x1'),_0x5619d8),this[_0x4103('0x149')]['set'](_0x4103('0xab'),_0x2f93ee),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0x148'),_0x5750dd),this['_defaultCallbacks'][_0x4103('0x6')]('formatBlock:chain',_0x2f93ee),this[_0x4103('0x149')]['set']('attribute:accept',_0x2f93ee),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0xfb'),(_0x58e8c9,_0x416414)=>{if(!_0x416414)return;const _0x11ff53=this['_editor']['plugins'][_0x4103('0x129')](p);this[_0x4103('0x15f')][_0x4103('0xb0')](_0x98db39=>{if(_0x4103('0xdf')==_0x416414[_0x4103('0x163')])for(const _0x4571d5 of _0x58e8c9){const _0x498308=_0x4571d5['start'][_0x4103('0x9e')],_0x3d9a67=_0x416414[_0x4103('0x161')];_0x98db39['rename'](_0x498308,_0x3d9a67);}else{if(_0x11ff53['_isBlockAttribute'](_0x416414[_0x4103('0x163')]))for(const _0x2bc30c of _0x58e8c9)void 0x0!==_0x416414[_0x4103('0x161')]?_0x98db39[_0x4103('0x15')](_0x416414[_0x4103('0x163')],_0x416414[_0x4103('0x161')],_0x2bc30c[_0x4103('0x16e')][_0x4103('0x9e')]):_0x98db39[_0x4103('0x82')](_0x416414[_0x4103('0x163')],_0x2bc30c['start']['nodeAfter']);else for(const _0x828d5b of _0x58e8c9)_0x416414[_0x4103('0x161')]?_0x98db39['setAttribute'](_0x416414['key'],_0x416414[_0x4103('0x161')],_0x828d5b):_0x98db39['removeAttribute'](_0x416414[_0x4103('0x163')],_0x828d5b);}});}),this[_0x4103('0x149')][_0x4103('0x6')](_0x4103('0xec'),_0x5750dd);}}function Bt(_0x24c193,_0x14f7af,_0x14a401){for(const _0x185454 of _0x14f7af[_0x4103('0x2a')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x185454[_0x4103('0x27')]==_0x185454)return!0x1;if(!_0x14a401['containsItem'](_0x185454))return!0x1;if(_0x24c193['isObject'](_0x185454)||_0x24c193[_0x4103('0x7a')](_0x185454))return!0x0;}return!0x1;}function Tt(_0x117f45){return _0x117f45[_0x4103('0x9a')]['parent']==_0x117f45[_0x4103('0x16e')]['nodeAfter']&&_0x117f45[_0x4103('0x9a')][_0x4103('0x54')];}function xt(_0x23c066,_0x2bf9d0,_0x31ac5f,_0x5ca775){const _0x46019d=_0x39f2e1=>!_0x39f2e1['item']['is']('$textProxy')&&!_0x5ca775['isObject'](_0x39f2e1[_0x4103('0xa8')]),_0x5a2db0=_0x23c066['start']['getLastMatchingPosition'](_0x46019d),_0x194711=_0x23c066[_0x4103('0x9a')][_0x4103('0xcb')](_0x46019d,{'direction':'backward'});return(!_0x23c066[_0x4103('0x16e')][_0x4103('0x32')](_0x5a2db0)||!_0x23c066[_0x4103('0x9a')][_0x4103('0x32')](_0x194711))&&(_0x5a2db0[_0x4103('0x108')](_0x194711)?_0x31ac5f[_0x4103('0xe8')](_0x2bf9d0,{'range':_0x31ac5f[_0x4103('0xcc')](_0x5a2db0,_0x194711)}):_0x31ac5f[_0x4103('0x46')](_0x2bf9d0),!0x0);}function Et(_0x43c141){return _0x536ea2(_0x43c141);}function Rt(_0x1a4e52){const _0x4938f5=_0x1a4e52[_0x4103('0x16e')][_0x4103('0x9e')];return _0x4938f5&&_0x4938f5['is'](_0x4103('0x5d'));}function Ut(_0x4e36f2,_0x434002){const _0x39788d=_0x434002[_0x4103('0x16b')][_0x4103('0xde')](_0x4e36f2)||_0x434002[_0x4103('0x16b')]['isSelectable'](_0x4e36f2);return _0x434002[_0x4103('0xcc')](_0x434002[_0x4103('0xa4')](_0x4e36f2,_0x4103('0xa9')),_0x39788d?_0x434002[_0x4103('0x37')](_0x4e36f2):_0x434002[_0x4103('0xa4')](_0x4e36f2,_0x4103('0x9a')));}function Ot(_0x50c7da,_0x347a63,_0x2f9747,_0x4f01c8,_0xc48cf){if(!Vt(_0x50c7da,_0x347a63))return!0x1;if(_0x2f9747['end']['isEqual'](_0x4f01c8[_0x4103('0x16e')]))return!0x0;if(_0x50c7da[_0x4103('0x24')]!=_0x347a63['type'])return!0x1;if(!_0x2f9747[_0x4103('0x9a')][_0x4103('0x97')](_0x4f01c8[_0x4103('0x16e')]))return!0x1;const _0x17c364=_0xc48cf[_0x4103('0xcc')](_0x2f9747['end'],_0x4f01c8[_0x4103('0x16e')])[_0x4103('0x16f')]();for(const _0x69b1f4 of _0x17c364)if([_0x4103('0xe4'),_0x4103('0x1a')][_0x4103('0x12c')](_0x69b1f4[_0x4103('0x24')])&&_0xc48cf[_0x4103('0x16b')][_0x4103('0x7a')](_0x69b1f4[_0x4103('0xa8')]))return!0x1;return!0x0;}function Vt(_0x5789b7,_0x215115){return!(!_0x5789b7[_0x4103('0x4')]||!_0x215115['_isDataLoaded'])&&_0x429fef(_0x5789b7[_0x4103('0x3a')],_0x215115[_0x4103('0x3a')]);}function Gt(_0x5cadc5,_0xd096d8){const _0x36e8db=Ft(_0x5cadc5[_0x4103('0x3a')]),_0x32773f=Ft(_0xd096d8);if(!_0x5cadc5[_0x4103('0x4')])return!0x1;for(const _0x51c114 of Object[_0x4103('0x17c')](_0x32773f))if(!_0x429fef(_0x36e8db[_0x51c114],_0x32773f[_0x51c114]))return!0x1;return!0x0;}function Ft(_0x5060ec){const _0x41bc61=Object['assign']({},_0x5060ec);return delete _0x41bc61[_0x4103('0xaf')],delete _0x41bc61[_0x4103('0x8c')],_0x41bc61;}function Pt(_0x29bd6a){return _0x4103('0x13a')==_0x29bd6a[_0x4103('0x24')]?_0x29bd6a[_0x4103('0x79')]['split']('|')[0x0]:null;}
23
+ const _0x207c=['keys','markerToData','removeMarker:suggestion:attribute','position','_getAuthorFromId','applyOperation','isArray','oldValue','toViewElement','addClass','createPositionAt','isIntersectingWithRange','root','_recordAttributeSuggestionsFromVersion','markMultiRangeDeletion','deletion:discard','trackChanges.trackFormatChanges','createElement','stop','suggestion','_setSuggestionData','fire','differ','addComment','_breakSuggestionMarker','discardAllSuggestions','getIntersection','has','createdAt','open','ck-suggestion-marker--active','_model','define','assign','isInsideObject','data-suggestion','insertion:','model','ck-suggestion-marker','type','enableReadOnlyMode','_processAttributeChanges','rename','split','isRemovable','_enableDefaultAttributesIntegration','_registerDefaultCallbacks','markBlockFormat','_setSuggestionRange','low','group','_recordAttributeChanges','removeComment','options','buildSuggestion','selection','newName','TrackChangesEditing','_enabledCommands','_saved','groupId','track-changes-adapter-missing-getsuggestion','track-changes-suggestion-data-mismatch','locale','insertion','substring','element','tablePasteChainId','markInsertion','$text','move','refresh','deleteContent','createSelection','isLimit','multi','howMany','commands','after','previous','formatBlock:chain','subType','markMultiRangeBlockFormat','start','Users','announce','then','fromCharCode','containsItem','_updateSuggestionData','reconvertMarker','PendingActions','registerPostFixer','getDifference','rootName','acceptSuggestion','startsWith','rejected','every','getUser','nodeAfter','skipNestingCheck','batch','consumable','containsRangeInObject','isSelectable','length','addMarker:suggestion:formatBlock','discardSelectedSuggestions','change:activeMarkers','_inlineAttributeKeys','config','document','createRange','insertion:join','markerNameToElements','track-changes-enable-command-twice','consume','_processAttributeSuggestions','formatBlock','formatInline','addMarker:suggestion:attribute','removeMarker','acceptAllSuggestions','deletion','author','_onDiscard','creator','attributeNewValue','conversion','detach','removeClass','markMultiRangeInsertion','_getExternalAuthor','marker-count','getCommentThread','getSuggestionCallback','deletion:join','schema','fetchCommentThread','_getSuggestionData','size','_isBlockAttribute','newValue','markDeletion','find','suggestion:','isAtEnd','_joinSuggestions','editing','execute','createRangeIn','formatInline:join','forEach','targetPosition','discard','_refreshAttributeSuggestionsChain','isBefore','warn','_registerInlineAttribute','change','formatBlock:','value','splitPosition','getChangedMarkers','showSuggestionHighlights','attribute:accept','external:','adapter','@external','getSuggestions','ck-suggestion-marker-','set','CommentsRepository','_initAriaMarkerChangeAnnouncements','addMarker','isTouching','discardSuggestion','getCustomProperty','key','containsRange','nodeBefore','_addThreadToSuggestion','formatBlock:accept','pop','formatInline:chain','some','getAttribute','forceDefaultExecution','_customCallbacks','attributes','change:_saved','isDocumentOperation','documentSelection','track-changes-adapter-already-set','addHighlight','attribute:','_reduceExistingSuggestions','_addSuggestionMarker','get','attributeKey','formatBlock:discard','multipleBlocks','_handleNewSuggestionMarker','formatInline:','requires','markers','suggestion-type','setAttribute','hasCommentThread','markerToHighlight','next','item','_createSuggestion','head','isAfter','end','isOwn','unbind','isCollapsed','formatInline:accept','_commentsRepository','return','_isDataLoaded','markerName','changeAttribute','removeAttribute','_mergeNestedSuggestions','_suggestionFactory','_rangeIsInLocalUserInsertion','$graveyard','_reduceSuggestionAttributeRange','isEqual','insertion:chain','editingDowncast','addSuggestionData','addSuggestion','getMultiRangeId','ck-suggestion-marker-formatInline','FORMATTING','$elementName','$textProxy','filter','accepted','addUser','splice','normal','markAttributeChange','suggestionLoaded','delete','hasComments','_registerBlockAttribute','ready','formatGroupId','getRange','elementStart','removeMarker:suggestion:formatBlock','createRangeOn','_suggestionState','setSelection','_findSuggestions','add','clone','parent','LEAVE','_editor','isLocal','_suggestions','insert','trackChanges','suggestionChanged','catch','resolve','containsPosition','clear','isIntersecting','format','isExternal','ck-suggestion-marker-formatBlock','$marker','suggestionUnloaded','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.','isObject','update:suggestion','hasSuggestion','attribute','values','never','deletion:accept','removed','_splitMarkerName','trackChanges.mergeNestedSuggestions','range','commentThread','getLastMatchingPosition','comments','sort','_adapter','default','plugins','containerElement','name','newRange','_isForcedDefaultExecutionBlock','trackChangesCommand','isBlock','upcast','from','unshift','getRanges','remove','track-changes-command-not-found','editor','isAtStart','isMultiRange','suggestion:attribute:','data','push','enableCommand','always','removeMarkers','getSuggestion','_trackFormatChanges','isNextTo','getAncestors','getShiftedBy','addRange','attribute:join','isInContent','widget','enqueueChange','mapper','updateMarker','commandName','getFirstMarker','getFirstRange','_blockAttributeKeys','toUpperCase','addCommentThread','includes','createPositionBefore','addMarkerName','insertion:accept','backward','updateSuggestion','markerReady','oldRange','deletion:','map','getAllAdjacentSuggestions','_refreshSuggestionsChain','ariaLiveAnnouncer','_checkSuggestionCorrectness','getNearestSelectionRange','getItems','authoredAt','high','formatBlock:join','dataDowncast','unbindElementFromMarkerName','_getMarkerAnnouncementText','notReady','for','highest','listenTo','stopListening','addMarker:suggestion','_defaultCallbacks','writer','getChanges','PENDING_ACTION_SUGGESTION','getOperations','before','collaboration.channelId','deletion:chain','_joinWithAdjacentSuggestions','moveTargetPosition','accept','join','insertContent','acceptSelectedSuggestions'];(function(_0x15b198,_0x207c8e){const _0x6e58b1=function(_0x1d0a06){while(--_0x1d0a06){_0x15b198['push'](_0x15b198['shift']());}};_0x6e58b1(++_0x207c8e);}(_0x207c,0xbf));const _0x6e58=function(_0x15b198,_0x207c8e){_0x15b198=_0x15b198-0x0;let _0x6e58b1=_0x207c[_0x15b198];return _0x6e58b1;};import{Plugin as _0x15c193,PendingActions as _0x5328d8}from'ckeditor5/src/core.js';import{LiveRange as _0x16f1c9}from'ckeditor5/src/engine.js';import{CKEditorError as _0x1efb49,uid as _0x1b9186,priorities as _0x2970f9,logWarning as _0x33da38}from'ckeditor5/src/utils.js';import{toWidget as _0x26fc1e}from'ckeditor5/src/widget.js';import{Users as _0x2e74aa,hashObject as _0x5c0e66,surroundingMarkersDetector as _0x2a67d9}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xe57201 from'./commands/trackchangescommand.js';import _0x1673d1 from'./commands/acceptsuggestioncommand.js';import _0x23d053 from'./commands/discardsuggestioncommand.js';import _0x1c3c9c from'./commands/executeonallsuggestionscommand.js';import _0x3b56c5 from'./commands/executeonselectedsuggestionscommand.js';import _0x12d829 from'./suggestion.js';import _0x39bf9e from'./suggestiondescriptionfactory.js';import _0x3cf5a3 from'./integrations/aiassistant.js';import _0x3efe07 from'./integrations/alignment.js';import _0x41e287 from'./integrations/basicstyles.js';import _0x4f515f from'./integrations/blockquote.js';import _0x3f98cd from'./integrations/ckbox.js';import _0x2ae280 from'./integrations/codeblock.js';import _0xd160a4 from'./integrations/comments.js';import _0x40cd03 from'./integrations/deletecommand.js';import _0x278829 from'./integrations/documentlist.js';import _0x7c76c1 from'./integrations/documentlistproperties.js';import _0x39213a from'./integrations/entercommand.js';import _0x40f1ce from'./integrations/findandreplace.js';import _0xd5778b from'./integrations/font.js';import _0x134513 from'./integrations/formatpainter.js';import _0x33e89b from'./integrations/heading.js';import _0x17f295 from'./integrations/highlight.js';import _0x84be69 from'./integrations/horizontalline.js';import _0xa8e268 from'./integrations/htmlembed.js';import _0x4f1488 from'./integrations/image.js';import _0x563618 from'./integrations/imagereplace.js';import _0x1a6f10 from'./integrations/imagestyle.js';import _0x30c79b from'./integrations/importword.js';import _0x229f79 from'./integrations/indent.js';import _0x5bc4b0 from'./integrations/inputcommand.js';import _0x6242ad from'./integrations/link.js';import _0x54d821 from'./integrations/list.js';import _0x33c9be from'./integrations/listproperties.js';import _0x40fd2c from'./integrations/mediaembed.js';import _0x395763 from'./integrations/mention.js';import _0x533436 from'./integrations/pagebreak.js';import _0x5a25e0 from'./integrations/paragraph.js';import _0x574600 from'./integrations/removeformat.js';import _0x4d4c02 from'./integrations/restrictededitingmode.js';import _0xa347ff from'./integrations/shiftentercommand.js';import _0x3ba594 from'./integrations/standardeditingmode.js';import _0x165ff6 from'./integrations/style.js';import _0xcc9b1d from'./integrations/table.js';import _0x2bb574 from'./integrations/tablemergesplit.js';import _0x1e003b from'./integrations/tableheadings.js';import _0x3bce59 from'./integrations/tableclipboard.js';import _0x3ab54b from'./integrations/tablecolumnresize.js';import _0x3273bb from'./integrations/template.js';import _0xe2ffd8 from'./integrations/tableofcontents.js';import _0x5ef19c from'./integrations/title.js';import _0x43ecf9 from'./integrations/undo.js';import _0x53d101 from'./integrations/tablecaption.js';import _0xe25dc3 from'./integrations/tableproperties.js';import{getTranslation as _0x92bc98}from'./utils/common-translations.js';import{isEqual as _0x18815d,omit as _0x1a4270}from'lodash-es';export const renameAttributeKey=_0x6e58('0x31');export default class p extends _0x15c193{static get[_0x6e58('0xe')](){return['CommentsRepository',_0x2e74aa,_0x5328d8,_0x3cf5a3,_0x3efe07,_0x41e287,_0x4f515f,_0x3f98cd,_0x2ae280,_0xd160a4,_0x40cd03,_0x278829,_0x7c76c1,_0x39213a,_0x40f1ce,_0xd5778b,_0x134513,_0x33e89b,_0x17f295,_0x84be69,_0xa8e268,_0x4f1488,_0x1a6f10,_0x563618,_0x30c79b,_0x229f79,_0x5bc4b0,_0x6242ad,_0x54d821,_0x33c9be,_0x40fd2c,_0x395763,_0x533436,_0x5a25e0,_0x574600,_0x4d4c02,_0xa347ff,_0x3ba594,_0x165ff6,_0xcc9b1d,_0x2bb574,_0x1e003b,_0x53d101,_0x3bce59,_0x3ab54b,_0xe2ffd8,_0xe25dc3,_0x3273bb,_0x5ef19c,_0x43ecf9];}static get['pluginName'](){return _0x6e58('0xf7');}constructor(_0x3610eb){function _0x1c3360(_0x4bab57){return _0x4bab57['map'](_0x21cde8=>String[_0x6e58('0x115')](_0x21cde8))['join']('');}super(_0x3610eb),this[_0x6e58('0xcb')]=null,this['set']('activeMarkers',[]),this['on'](_0x6e58('0x12b'),(_0x167b9a,_0x524675,_0x32a4df,_0x212f6d)=>{this[_0x6e58('0xdd')]['change'](()=>{for(const _0x3dab80 of[..._0x212f6d,..._0x32a4df])this[_0x6e58('0xdd')]['markers']['has'](_0x3dab80)&&_0x3610eb[_0x6e58('0x153')][_0x6e58('0x118')](_0x3dab80);});}),this['_descriptionFactory']=new _0x39bf9e(this[_0x6e58('0x79')][_0x6e58('0xe3')][_0x6e58('0x148')],this['editor'][_0x6e58('0xfd')]),this[_0x6e58('0x6a')]=null,this['_suggestionFactory']=new $t(this[_0x6e58('0x79')]),this['_suggestions']=new Map(),this[_0x6e58('0x1e')]=_0x3610eb[_0x6e58('0x6c')][_0x6e58('0x8')](_0x6e58('0x16b')),this[_0x6e58('0xf8')]=new Set(),this[_0x6e58('0xdd')]=this[_0x6e58('0x79')]['model'],this['_suggestionState']=new WeakMap(),this[_0x6e58('0x70')]=!0x1,this[_0x6e58('0x91')]=new Set([_0x6e58('0x31')]),this[_0x6e58('0x12c')]=new Set(),_0x3610eb[_0x6e58('0x12d')][_0x6e58('0xde')](_0x6e58('0xce'),_0x6e58('0x6b')),this[_0x6e58('0x83')]=_0x3610eb['config'][_0x6e58('0x8')]('trackChanges.trackFormatChanges'),_0x3610eb[_0x6e58('0x12d')][_0x6e58('0xde')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x6e58('0x24')]=_0x3610eb[_0x6e58('0x12d')][_0x6e58('0x8')](_0x6e58('0x64')),this[_0x6e58('0x71')]=new _0xe57201(_0x3610eb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1c3360([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1c3360([0x34,0x30,0x34,0x36,0x32,0x34,0x34,0x38]);}['init'](){const _0x5950b4=this['editor'],_0x2fd436=(_0xdbbe0,_0x52f1b1)=>{if('attribute'!=_0xdbbe0)return _0x6e58('0x169')+_0xdbbe0;const _0x35b6cb=_0x52f1b1[_0x6e58('0xe9')]('|')[0x0];return this[_0x6e58('0x14c')](_0x35b6cb)?_0x6e58('0x57'):_0x6e58('0x2f');};_0x5950b4['conversion'][_0x6e58('0xab')]('editingDowncast')[_0x6e58('0x13')]({'model':'suggestion','view':_0x564153=>{const {id:_0x5f4094,type:_0x1f6798,subType:_0x4d5988}=this['_splitMarkerName'](_0x564153[_0x6e58('0x21')]),_0x167446=[_0x6e58('0xe4'),_0x2fd436(_0x1f6798,_0x4d5988)];let _0x3374d8=0xbb8;return this['activeMarkers'][_0x6e58('0x94')](_0x564153[_0x6e58('0x21')])&&(_0x167446[_0x6e58('0x7e')]('ck-suggestion-marker--active'),_0x3374d8=0xbc2),_0x6e58('0x13a')==_0x1f6798&&(_0x3374d8+=0x5),{'classes':_0x167446,'attributes':{'data-suggestion':_0x5f4094},'priority':_0x3374d8};}}),_0x5950b4[_0x6e58('0x13f')][_0x6e58('0xab')]('dataDowncast')[_0x6e58('0x46')](_0x298bfd=>{_0x298bfd['on'](_0x6e58('0xaf'),(_0x313423,_0x3d36a0,_0x46a60f)=>{if(!_0x46a60f[_0x6e58('0xf3')][_0x6e58('0x163')])return;const _0x2c420e=_0x3d36a0[_0x6e58('0x15')];if(!_0x2c420e)return;const _0x34107b=_0x46a60f[_0x6e58('0x8c')][_0x6e58('0xc6')](_0x2c420e);_0x5950b4[_0x6e58('0xe3')][_0x6e58('0x148')][_0x6e58('0x5b')](_0x2c420e)&&_0x34107b&&!_0x34107b[_0x6e58('0x170')](_0x6e58('0x8a'))&&_0x34107b['is'](_0x6e58('0x6d'))&&_0x26fc1e(_0x34107b,_0x46a60f[_0x6e58('0xb1')]);},{'priority':'high'});}),_0x5950b4['conversion'][_0x6e58('0xab')](_0x6e58('0xa7'))[_0x6e58('0x13')]({'model':_0x6e58('0xd1'),'view':(_0x2790b3,_0x158058)=>{if(!_0x158058['options'][_0x6e58('0x163')])return null;const {type:_0x7d3a30,subType:_0x59bbf8}=this[_0x6e58('0x63')](_0x2790b3['markerName']);return{'classes':[_0x6e58('0xe4'),_0x2fd436(_0x7d3a30,_0x59bbf8)],'priority':0xbb8};}});const _0x10c01f=({showActiveMarkers:_0x311a7e=!0x0,isAttributeSuggestion:_0x2e996d=!0x1}={})=>(_0x23e344,_0x462ec3,_0x4bd6f7)=>{if(!_0x462ec3['item'])return;const {id:_0x4f5ac1}=this['_splitMarkerName'](_0x462ec3[_0x6e58('0x21')]);if(_0x2e996d){const _0x1dc2b7=Pt(this[_0x6e58('0x4c')][_0x6e58('0x8')](_0x4f5ac1));if(!this[_0x6e58('0x14c')](_0x1dc2b7))return;}if(_0x462ec3[_0x6e58('0x15')]['is']('selection'))return void _0x4bd6f7[_0x6e58('0x125')][_0x6e58('0x133')](_0x462ec3[_0x6e58('0x15')],_0x23e344['name']);const _0x3cf8c9=_0x4bd6f7[_0x6e58('0x8c')]['toViewElement'](_0x462ec3[_0x6e58('0x15')]);if(_0x462ec3[_0x6e58('0x15')]['is'](_0x6e58('0x100'))&&_0x5950b4[_0x6e58('0xe3')][_0x6e58('0x148')]['isBlock'](_0x462ec3[_0x6e58('0x15')])&&!_0x3cf8c9[_0x6e58('0x170')](_0x6e58('0x4'))){_0x4bd6f7['writer'][_0x6e58('0xc7')]([_0x6e58('0xe4'),_0x6e58('0x57')],_0x3cf8c9),_0x4bd6f7[_0x6e58('0xb1')][_0x6e58('0x11')]('data-suggestion',_0x4f5ac1,_0x3cf8c9),_0x4bd6f7[_0x6e58('0x8c')]['bindElementToMarker'](_0x3cf8c9,_0x462ec3['markerName']),_0x311a7e&&(this['activeMarkers'][_0x6e58('0x94')](_0x462ec3['markerName'])?_0x4bd6f7[_0x6e58('0xb1')][_0x6e58('0xc7')](_0x6e58('0xdc'),_0x3cf8c9):_0x4bd6f7[_0x6e58('0xb1')][_0x6e58('0x141')]('ck-suggestion-marker--active',_0x3cf8c9));for(const _0x1499ba of _0x5950b4[_0x6e58('0xe3')][_0x6e58('0x155')](_0x462ec3['item'])[_0x6e58('0xa3')]())_0x4bd6f7[_0x6e58('0x125')][_0x6e58('0x133')](_0x1499ba,_0x23e344[_0x6e58('0x6e')]);_0x4bd6f7['consumable'][_0x6e58('0x133')](_0x462ec3[_0x6e58('0x15')],_0x23e344['name']);}};_0x5950b4[_0x6e58('0x13f')]['for'](_0x6e58('0xa7'))[_0x6e58('0x46')](_0x55697f=>{_0x55697f['on'](_0x6e58('0x129'),(_0x31262b,_0x1fd29e,_0x3775ea)=>{_0x3775ea[_0x6e58('0xf3')][_0x6e58('0x163')]&&_0x10c01f({'showActiveMarkers':!0x1})(_0x31262b,_0x1fd29e,_0x3775ea);},{'priority':_0x6e58('0xac')});}),_0x5950b4[_0x6e58('0x13f')][_0x6e58('0xab')](_0x6e58('0xa7'))[_0x6e58('0x46')](_0x20a3b0=>{_0x20a3b0['on'](_0x6e58('0x137'),(_0x29434f,_0x296061,_0x2574b0)=>{_0x2574b0[_0x6e58('0xf3')]['showSuggestionHighlights']&&_0x10c01f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x29434f,_0x296061,_0x2574b0);},{'priority':'highest'});}),_0x5950b4['conversion'][_0x6e58('0xab')](_0x6e58('0xa7'))[_0x6e58('0xbf')]({'model':_0x6e58('0xd1'),'view':(_0xaf09f7,_0x4c8ec9)=>_0x4c8ec9['options'][_0x6e58('0x163')]?null:{'group':_0x6e58('0xd1'),'name':_0xaf09f7['substr'](0xb)}}),_0x5950b4[_0x6e58('0x13f')][_0x6e58('0xab')](_0x6e58('0x73'))['elementToElement']({'view':{'name':_0x6e58('0xd1'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ccc26,{writer:_0x2cdba8})=>{let _0x327ba8=_0x6e58('0x150')+_0x3ccc26[_0x6e58('0x179')](_0x6e58('0x10'))+':'+_0x3ccc26[_0x6e58('0x179')]('id');return _0x3ccc26[_0x6e58('0x179')](_0x6e58('0x144'))&&(_0x327ba8+=':'+_0x3ccc26[_0x6e58('0x179')]('marker-count')),_0x2cdba8[_0x6e58('0xcf')](_0x6e58('0x58'),{'data-name':_0x327ba8});}}),_0x5950b4['conversion']['for'](_0x6e58('0x73'))['dataToMarker']({'view':_0x6e58('0xd1')}),_0x5950b4[_0x6e58('0x13f')]['for'](_0x6e58('0x2b'))[_0x6e58('0x46')](_0x4981e3=>{_0x4981e3['on'](_0x6e58('0x129'),_0x10c01f(),{'priority':_0x6e58('0xa5')});}),_0x5950b4[_0x6e58('0x13f')][_0x6e58('0xab')](_0x6e58('0x2b'))['add'](_0x37d051=>{_0x37d051['on'](_0x6e58('0x137'),_0x10c01f({'isAttributeSuggestion':!0x0}),{'priority':_0x6e58('0xa5')});}),_0x5950b4['conversion'][_0x6e58('0xab')](_0x6e58('0x2b'))['add'](_0x2681de=>{_0x2681de['on'](_0x6e58('0x41'),(_0x4518f4,_0x1ecb04,_0x9432e7)=>{const _0x2784e6=_0x9432e7[_0x6e58('0x8c')][_0x6e58('0x131')](_0x1ecb04[_0x6e58('0x21')]);if(_0x2784e6)for(const _0x280297 of _0x2784e6)_0x280297['getCustomProperty'](_0x6e58('0x4'))||(_0x9432e7['writer']['removeClass']([_0x6e58('0xe4'),_0x6e58('0x57'),_0x6e58('0xdc')],_0x280297),_0x9432e7[_0x6e58('0xb1')][_0x6e58('0x23')]('data-suggestion',_0x280297),_0x9432e7['mapper']['unbindElementFromMarkerName'](_0x280297,_0x1ecb04['markerName']));},{'priority':_0x6e58('0xa5')});}),_0x5950b4[_0x6e58('0x13f')][_0x6e58('0xab')](_0x6e58('0x2b'))['add'](_0x2eb711=>{_0x2eb711['on'](_0x6e58('0xc0'),(_0x4a97cb,_0x3f0a4c,_0x420a70)=>{const _0xe304d1=_0x420a70[_0x6e58('0x8c')][_0x6e58('0x131')](_0x3f0a4c[_0x6e58('0x21')]);if(!_0xe304d1)return;const {id:_0x573821}=this[_0x6e58('0x63')](_0x3f0a4c['markerName']),_0x2f39f0=Pt(this['_suggestions'][_0x6e58('0x8')](_0x573821));if(this[_0x6e58('0x14c')](_0x2f39f0))for(const _0x22c5c9 of _0xe304d1)_0x22c5c9[_0x6e58('0x170')](_0x6e58('0x4'))||(_0x420a70[_0x6e58('0xb1')][_0x6e58('0x141')]([_0x6e58('0xe4'),'ck-suggestion-marker-formatBlock',_0x6e58('0xdc')],_0x22c5c9),_0x420a70[_0x6e58('0xb1')]['removeAttribute'](_0x6e58('0xe1'),_0x22c5c9),_0x420a70[_0x6e58('0x8c')][_0x6e58('0xa8')](_0x22c5c9,_0x3f0a4c['markerName']));},{'priority':_0x6e58('0xa5')});}),_0x5950b4['model'][_0x6e58('0x12e')][_0x6e58('0x11a')](_0x20a66b=>{let _0x2fe8c2=!0x1;const _0xf69b3=Array['from'](_0x5950b4[_0x6e58('0xe3')][_0x6e58('0x12e')]['differ'][_0x6e58('0x162')]()),_0x57fa7a=new Set();for(const {name:_0x4fd2c7,data:_0x16b94f}of _0xf69b3){const {group:_0x1fc7ec,type:_0x226644,subType:_0x14495e,id:_0x45d6e6}=this[_0x6e58('0x63')](_0x4fd2c7);if(_0x6e58('0xd1')!==_0x1fc7ec)continue;const _0x18ce67=this['_suggestions'][_0x6e58('0x8')](_0x45d6e6);if(null!=_0x16b94f[_0x6e58('0x6f')]){_0x6e58('0x136')==_0x226644&&(_0x2fe8c2=_0x2fe8c2||xt(_0x16b94f[_0x6e58('0x6f')],_0x4fd2c7,_0x20a66b,_0x5950b4[_0x6e58('0xe3')]['schema']));const _0x24ba36=_0x6e58('0x5e')==_0x226644&&this['_isBlockAttribute'](_0x14495e[_0x6e58('0xe9')]('|')[0x0]);if(_0x16b94f[_0x6e58('0x6f')][_0x6e58('0x1c')]||_0x6e58('0x27')==_0x16b94f[_0x6e58('0x6f')][_0x6e58('0xca')]['rootName']||_0x6e58('0x135')==_0x226644&&!Rt(_0x16b94f[_0x6e58('0x6f')])||_0x24ba36&&!Rt(_0x16b94f['newRange'])||_0x6e58('0x13a')==_0x226644&&!(!Tt(_0x5d35d4=_0x16b94f['newRange'])&&!function(_0x41179e){return _0x41179e['start']['parent']==_0x41179e[_0x6e58('0x19')]['nodeBefore']&&_0x41179e['start']['isAtEnd'];}(_0x5d35d4)))_0x20a66b[_0x6e58('0x138')](_0x4fd2c7),_0x2fe8c2=!0x0;else{if(!_0x18ce67||!_0x18ce67[_0x6e58('0x89')])continue;_0x57fa7a[_0x6e58('0x46')](_0x18ce67);}}}var _0x5d35d4;return _0x57fa7a[_0x6e58('0x14b')]>0x0&&(_0x2fe8c2=!!this['_joinWithAdjacentSuggestions'](_0x57fa7a)||_0x2fe8c2),_0x2fe8c2;}),_0x5950b4['model'][_0x6e58('0x12e')][_0x6e58('0x11a')](_0xa7e7a3=>{let _0x13b6be=!0x1;for(const _0x4c35f3 of _0x5950b4[_0x6e58('0xe3')][_0x6e58('0x12e')]['differ'][_0x6e58('0xb2')]())if(_0x6e58('0x4d')==_0x4c35f3[_0x6e58('0xe5')])for(const _0xd4eab2 of this[_0x6e58('0x4c')][_0x6e58('0x5f')]()){if(_0xd4eab2[_0x6e58('0x7b')]||!_0xd4eab2[_0x6e58('0x89')])continue;const _0x42fe68=_0x6e58('0x135')==_0xd4eab2[_0x6e58('0xe5')],_0x5dfa2e=Pt(_0xd4eab2),_0x4c5f3f=_0x5dfa2e&&this['_isBlockAttribute'](_0x5dfa2e);if(!_0x42fe68&&!_0x4c5f3f)continue;const _0x3f8a92=_0xd4eab2[_0x6e58('0x90')]();if(_0x3f8a92[_0x6e58('0x111')]['parent']!=_0x3f8a92[_0x6e58('0x19')]['parent']&&!_0x3f8a92[_0x6e58('0x19')][_0x6e58('0x151')]){const _0x1bea5f=_0x5950b4['model'][_0x6e58('0xc8')](_0x3f8a92['start'][_0x6e58('0x122')],_0x6e58('0x19')),_0x5aba4b=_0x5950b4[_0x6e58('0xe3')]['createRange'](_0x3f8a92[_0x6e58('0x111')],_0x1bea5f);_0xa7e7a3[_0x6e58('0x8d')](_0xd4eab2[_0x6e58('0x8f')](),{'range':_0x5aba4b}),_0x13b6be=!0x0;}}return _0x13b6be;}),_0x5950b4[_0x6e58('0xe3')][_0x6e58('0x12e')][_0x6e58('0x11a')](_0xfa6b1e=>this['_processAttributeChanges'](_0xfa6b1e)),_0x5950b4[_0x6e58('0xe3')]['document']['registerPostFixer'](_0x3067bd=>!_0x3067bd[_0x6e58('0x124')]['isLocal']&&this[_0x6e58('0x134')](_0x3067bd)),_0x5950b4['model'][_0x6e58('0xf')]['on'](_0x6e58('0x5c'),(_0x845a59,_0x59984e,_0xe8abb9)=>{if(null==_0xe8abb9){const {id:_0x5777a3}=this[_0x6e58('0x63')](_0x59984e[_0x6e58('0x6e')]),_0x12a71d=this[_0x6e58('0x4c')][_0x6e58('0x8')](_0x5777a3);_0x12a71d&&_0x12a71d['addMarkerName'](_0x59984e[_0x6e58('0x6e')]);}}),_0x5950b4[_0x6e58('0xe3')]['document']['on']('change:data',()=>{const _0x332cd2=Array[_0x6e58('0x74')](_0x5950b4[_0x6e58('0xe3')][_0x6e58('0x12e')][_0x6e58('0xd4')]['getChangedMarkers']())['filter'](_0x11c6c2=>'suggestion'===this[_0x6e58('0x63')](_0x11c6c2['name'])[_0x6e58('0xf0')]);if(0x0===_0x332cd2[_0x6e58('0x128')])return;_0x332cd2[_0x6e58('0x69')]((_0x10cafe,_0xd8a838)=>{const _0xab5276=_0x10cafe[_0x6e58('0x7d')]['oldRange'],_0x339a7f=_0xd8a838['data'][_0x6e58('0x9b')];return null===_0xab5276&&null===_0x339a7f?0x0:null===_0xab5276&&null!==_0x339a7f?-0x1:null!==_0xab5276&&null===_0x339a7f?0x1:_0xab5276[_0x6e58('0x111')][_0x6e58('0x15b')](_0x339a7f[_0x6e58('0x111')])?-0x1:0x1;});const _0x5d4592=new Set(),_0x1b2a44=new Set();for(const {name:_0x44b0e1,data:_0x49a4b6}of _0x332cd2){const {id:_0x3241ce}=this[_0x6e58('0x63')](_0x44b0e1);if(null===_0x49a4b6['oldRange']){const _0x3f5ba9=this[_0x6e58('0xc')](_0x44b0e1);_0x1b2a44[_0x6e58('0x46')](_0x3f5ba9);}else{const _0x323ef3=this[_0x6e58('0x4c')][_0x6e58('0x8')](_0x3241ce);null!==_0x49a4b6[_0x6e58('0x6f')]||_0x323ef3[_0x6e58('0x89')]?(_0x5d4592[_0x6e58('0x46')](_0x323ef3[_0x6e58('0x17')]),_0x1b2a44[_0x6e58('0x46')](_0x323ef3)):this['_removeSuggestion'](_0x323ef3);}}_0x1b2a44[_0x6e58('0x14b')]>0x0&&this['_refreshSuggestionsChain'](_0x1b2a44);for(const _0x22fa60 of _0x5d4592)this['fire']('suggestionChanged',_0x22fa60);}),_0x5950b4[_0x6e58('0xe3')]['on'](_0x6e58('0xc3'),(_0x3ca1c4,_0x347781)=>{const _0x9bb139=_0x347781[0x0];if(!this[_0x6e58('0x4c')][_0x6e58('0x14b')])return;if(!_0x9bb139[_0x6e58('0x1')])return;if(_0x9bb139[_0x6e58('0x124')]['isUndo']||!_0x9bb139[_0x6e58('0x124')][_0x6e58('0x4b')])return;let _0x38322a,_0x37e136;switch(_0x9bb139[_0x6e58('0xe5')]){case'insert':_0x38322a=_0x5950b4[_0x6e58('0xe3')][_0x6e58('0xc8')](_0x9bb139[_0x6e58('0xc1')]),_0x37e136=_0x38322a[_0x6e58('0x86')](_0x9bb139[_0x6e58('0x10a')]);break;case _0x6e58('0xe9'):_0x38322a=_0x5950b4[_0x6e58('0xe3')]['createPositionAt'](_0x9bb139[_0x6e58('0x161')]),_0x37e136=_0x5950b4[_0x6e58('0xe3')][_0x6e58('0xc8')](_0x9bb139[_0x6e58('0xb9')]);break;case _0x6e58('0x104'):_0x38322a=_0x5950b4[_0x6e58('0xe3')][_0x6e58('0xc8')](_0x9bb139[_0x6e58('0x158')]),_0x37e136=_0x38322a[_0x6e58('0x86')](_0x9bb139[_0x6e58('0x10a')]);break;default:return;}const _0x1a44e7=_0x5950b4[_0x6e58('0xe3')]['createRange'](_0x38322a,_0x37e136);_0x5950b4['model'][_0x6e58('0x15e')](()=>{for(const {suggestion:_0x4314b2,meta:_0x564742}of this['_findSuggestions'](_0x1a44e7)){if(_0x4314b2[_0x6e58('0x7b')])continue;if('formatInline'==_0x4314b2[_0x6e58('0xe5')])continue;const _0x447dfb=Pt(_0x4314b2);if(_0x447dfb&&this[_0x6e58('0x14c')](_0x447dfb)&&_0x6e58('0xe9')!=_0x9bb139[_0x6e58('0xe5')])continue;const _0x44f7cb=_0x4314b2[_0x6e58('0x7d')]&&_0x4314b2[_0x6e58('0x7d')][_0x6e58('0xb')];(_0x6e58('0x135')!=_0x4314b2['type']||_0x6e58('0xe9')==_0x9bb139[_0x6e58('0xe5')]&&!_0x44f7cb)&&(_0x564742[_0x6e58('0x126')]||_0x6e58('0xfe')==_0x4314b2[_0x6e58('0xe5')]&&_0x564742[_0x6e58('0x1a')]||_0x4314b2['getFirstRange']()[_0x6e58('0x172')](_0x1a44e7)&&this[_0x6e58('0xd6')](_0x4314b2,_0x38322a,_0x37e136));}});},{'priority':'lowest'}),_0x5950b4['model']['on'](_0x6e58('0x106'),(_0x152d73,_0x55ce19)=>{const _0x9afed1=_0x55ce19[0x0],_0x15517b=_0x55ce19[0x1];if(_0x15517b&&_0x15517b[_0x6e58('0x17a')])return;if(this[_0x6e58('0x70')])return;if(!this[_0x6e58('0x71')][_0x6e58('0x160')])return;if(_0x9afed1[_0x6e58('0x1c')])return;const _0x4c2d15=_0x5950b4['model'][_0x6e58('0x148')],{start:_0x570c91,end:_0x261795}=_0x9afed1[_0x6e58('0x90')](),_0x2996df=_0x570c91[_0x6e58('0x122')]&&_0x4c2d15[_0x6e58('0x108')](_0x570c91[_0x6e58('0x122')])?null:_0x4c2d15[_0x6e58('0xa2')](_0x570c91,'forward'),_0x3fa88e=_0x261795[_0x6e58('0x173')]&&_0x4c2d15[_0x6e58('0x108')](_0x261795[_0x6e58('0x173')])?null:_0x4c2d15['getNearestSelectionRange'](_0x261795,_0x6e58('0x98')),_0x23473f=_0x5950b4[_0x6e58('0xe3')][_0x6e58('0x12f')](_0x2996df?_0x2996df[_0x6e58('0x111')]:_0x570c91,_0x3fa88e?_0x3fa88e[_0x6e58('0x19')]:_0x261795);_0x5950b4[_0x6e58('0xe3')][_0x6e58('0x15e')](_0x21efe2=>{this['markDeletion'](_0x23473f);const _0xe7f617=_0x5950b4[_0x6e58('0xe3')][_0x6e58('0x148')][_0x6e58('0xa2')](_0x23473f[_0x6e58('0x111')]);_0x9afed1['is'](_0x6e58('0x2'))?_0x21efe2[_0x6e58('0x44')](_0xe7f617):_0x9afed1['setTo'](_0xe7f617);}),_0x152d73[_0x6e58('0xd0')]();},{'priority':_0x2970f9[_0x6e58('0x37')]+0xa}),_0x5950b4['model']['on']('insertContent',(_0x5ce017,_0x26f9ae)=>{const _0x38921f=_0x26f9ae[_0x26f9ae['length']-0x1];_0x38921f&&_0x38921f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this[_0x6e58('0x71')][_0x6e58('0x160')]&&(_0x5950b4[_0x6e58('0xe3')][_0x6e58('0x15e')](()=>{let _0x4b579c=_0x5950b4[_0x6e58('0xe3')][_0x6e58('0xbc')](_0x26f9ae[0x0],_0x26f9ae[0x1],_0x26f9ae[0x2],{'forceDefaultExecution':!0x0});if(!_0x4b579c)return;_0x5ce017[_0x6e58('0x1f')]=_0x4b579c[_0x6e58('0x47')]();const _0x1aef01=_0x4b579c['end'][_0x6e58('0x173')],_0x29bb4a=_0x5950b4[_0x6e58('0xe3')]['schema'];_0x1aef01&&_0x29bb4a[_0x6e58('0x72')](_0x1aef01)&&!_0x29bb4a[_0x6e58('0x5b')](_0x1aef01)&&(_0x4b579c=_0x5950b4[_0x6e58('0xe3')][_0x6e58('0x12f')](_0x4b579c[_0x6e58('0x111')],_0x5950b4[_0x6e58('0xe3')][_0x6e58('0xc8')](_0x1aef01,_0x6e58('0x19')))),this[_0x6e58('0x102')](_0x4b579c);}),_0x5ce017[_0x6e58('0xd0')]());},{'priority':'high'}),this[_0x6e58('0x79')][_0x6e58('0x10b')][_0x6e58('0x46')](_0x6e58('0x4e'),this[_0x6e58('0x71')]),this[_0x6e58('0x7f')](_0x6e58('0x4e'));const _0x1f3b94=new _0x1673d1(_0x5950b4,this[_0x6e58('0x4c')]);_0x5950b4[_0x6e58('0x10b')][_0x6e58('0x46')](_0x6e58('0x11d'),_0x1f3b94),this['enableCommand'](_0x6e58('0x11d'));const _0x13c47e=new _0x23d053(_0x5950b4,this['_suggestions']);_0x5950b4[_0x6e58('0x10b')]['add'](_0x6e58('0x16f'),_0x13c47e),this[_0x6e58('0x7f')](_0x6e58('0x16f')),_0x5950b4['commands'][_0x6e58('0x46')]('acceptAllSuggestions',new _0x1c3c9c(_0x5950b4,_0x1f3b94,this['_suggestions'])),this[_0x6e58('0x7f')](_0x6e58('0x139')),_0x5950b4[_0x6e58('0x10b')][_0x6e58('0x46')](_0x6e58('0xd7'),new _0x1c3c9c(_0x5950b4,_0x13c47e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5950b4[_0x6e58('0x10b')]['add'](_0x6e58('0xbd'),new _0x3b56c5(_0x5950b4,_0x1f3b94,this[_0x6e58('0x4c')])),this['enableCommand'](_0x6e58('0xbd')),_0x5950b4[_0x6e58('0x10b')][_0x6e58('0x46')](_0x6e58('0x12a'),new _0x3b56c5(_0x5950b4,_0x13c47e,this[_0x6e58('0x4c')])),this[_0x6e58('0x7f')](_0x6e58('0x12a'));const _0x2c5b40=_0x5950b4[_0x6e58('0x6c')][_0x6e58('0x8')](_0x6e58('0x16b'));this[_0x6e58('0xad')](_0x2c5b40,_0x6e58('0xd5'),(_0x2c61c0,{threadId:_0x548b76})=>{const _0xe789fc=this[_0x6e58('0x4c')][_0x6e58('0x8')](_0x548b76);_0xe789fc&&_0xe789fc[_0x6e58('0x66')]&&0x1===_0xe789fc[_0x6e58('0x66')]['length']&&this[_0x6e58('0x117')](_0x548b76,{'hasComments':!0x0});},{'priority':_0x6e58('0xef')}),this[_0x6e58('0xad')](_0x2c5b40,_0x6e58('0xf2'),(_0x1138ad,{threadId:_0x3a6563})=>{const _0x1f30f0=this[_0x6e58('0x4c')][_0x6e58('0x8')](_0x3a6563);_0x1f30f0&&_0x1f30f0['commentThread']&&!_0x1f30f0[_0x6e58('0x66')][_0x6e58('0x128')]&&this[_0x6e58('0x117')](_0x3a6563,{'hasComments':!0x1});},{'priority':'low'});}set[_0x6e58('0x166')](_0x458d47){if(this[_0x6e58('0x6a')])throw new _0x1efb49(_0x6e58('0x3'),this);this[_0x6e58('0x6a')]=_0x458d47;}get[_0x6e58('0x166')](){return this[_0x6e58('0x6a')];}['getSuggestions']({skipNotAttached:_0x467c54=!0x1,toJSON:_0x536299=!0x1}={}){const _0x516162=[];for(const _0x1f0b54 of this[_0x6e58('0x4c')][_0x6e58('0x5f')]())_0x467c54&&!_0x1f0b54[_0x6e58('0x89')]||_0x516162['push'](_0x1f0b54);return _0x536299?_0x516162['map'](_0x4f8eaa=>_0x4f8eaa['toJSON']()):_0x516162;}['getSuggestion'](_0x3bf58a){const _0x1f0ab6=this[_0x6e58('0x4c')]['get'](_0x3bf58a);if(!_0x1f0ab6)throw new _0x1efb49('track-changes-suggestion-not-found',this);return _0x1f0ab6;}[_0x6e58('0x5d')](_0x15c9da){return this[_0x6e58('0x4c')]['has'](_0x15c9da);}[_0x6e58('0x2c')](_0x34ce77){const {authorId:_0x41dd77,id:_0x3ad9c4,attributes:_0x5bd93c}=_0x34ce77,[_0xcdeb3a,_0x1e6940]=_0x34ce77[_0x6e58('0xe5')][_0x6e58('0xe9')](':'),_0x4ac318=this[_0x6e58('0x4c')]['get'](_0x3ad9c4)||this[_0x6e58('0x16')](_0xcdeb3a,_0x1e6940,_0x3ad9c4,_0x41dd77,_0x5bd93c);if(this[_0x6e58('0x174')](_0x4ac318),this['_checkSuggestionCorrectness'](_0x4ac318,_0xcdeb3a,_0x1e6940||null,_0x41dd77),_0x4ac318[_0x6e58('0xda')]=_0x34ce77[_0x6e58('0xda')],_0x4ac318[_0x6e58('0x20')]=!0x0,_0x5bd93c&&_0x5bd93c[_0x6e58('0x167')]){const _0x568a24=_0x5bd93c['@external'],_0x45667b=this['_getExternalAuthor'](_0x568a24['authorName']);_0x4ac318[_0x6e58('0xa4')]=_0x568a24[_0x6e58('0xda')],_0x4ac318['author']=_0x45667b,_0x4ac318[_0x6e58('0x56')]=!0x0;}else _0x4ac318[_0x6e58('0xa4')]=_0x34ce77['createdAt'];switch(_0x34ce77['data']&&(_0x4ac318[_0x6e58('0x7d')]=_0x34ce77['data']),_0x34ce77[_0x6e58('0x17c')]&&(_0x4ac318[_0x6e58('0x17c')]=_0x34ce77['attributes']),this[_0x6e58('0x6a')]&&this['_adapter']['addSuggestion']||(_0x4ac318[_0x6e58('0xf9')]=!0x0),this[_0x6e58('0x43')]['get'](_0x4ac318)){case _0x6e58('0xaa'):this['_suggestionState'][_0x6e58('0x16a')](_0x4ac318,'dataReady');break;case _0x6e58('0x9a'):_0x4ac318[_0x6e58('0x89')]?(this['_refreshSuggestionsChain'](new Set([_0x4ac318])),this[_0x6e58('0xb8')](new Set([_0x4ac318])),this[_0x6e58('0x43')][_0x6e58('0x16a')](_0x4ac318,_0x6e58('0x3d')),this[_0x6e58('0xd3')](_0x6e58('0x39'),_0x4ac318)):this[_0x6e58('0x43')][_0x6e58('0x16a')](_0x4ac318,_0x6e58('0x62'));}return _0x4ac318;}[_0x6e58('0x11d')](_0x36c47a){this[_0x6e58('0x17a')](()=>{this[_0x6e58('0x79')][_0x6e58('0xe3')][_0x6e58('0x15e')](()=>{for(const _0x53a37d of _0x36c47a[_0x6e58('0x9e')]())_0x53a37d['accept']();});});}[_0x6e58('0x16f')](_0x7d1231){this['forceDefaultExecution'](()=>{this[_0x6e58('0x79')]['model'][_0x6e58('0x15e')](()=>{for(const _0x38ef14 of _0x7d1231[_0x6e58('0x9e')]())_0x38ef14['discard']();});});}[_0x6e58('0x7f')](_0x5994ce,_0x3c6e1b){const _0xbe11fc=this[_0x6e58('0x79')]['commands'][_0x6e58('0x8')](_0x5994ce);if(!_0xbe11fc)throw new _0x1efb49(_0x6e58('0x78'),this,{'commandName':_0x5994ce});if(this[_0x6e58('0xf8')][_0x6e58('0xd9')](_0xbe11fc))throw new _0x1efb49(_0x6e58('0x132'),this,{'commandName':_0x5994ce});this[_0x6e58('0xf8')]['add'](_0xbe11fc),_0x3c6e1b&&_0xbe11fc['on'](_0x6e58('0x154'),(_0x3047b5,_0x3d8998)=>{this[_0x6e58('0x71')][_0x6e58('0x160')]&&(this[_0x6e58('0x70')]||(_0x3d8998[_0x6e58('0x128')]>0x0&&_0x3d8998[_0x3d8998[_0x6e58('0x128')]-0x1]&&_0x3d8998[_0x3d8998[_0x6e58('0x128')]-0x1][_0x6e58('0x17a')]?_0x3d8998[_0x6e58('0x176')]():(_0x3047b5[_0x6e58('0x1f')]=_0x3c6e1b((..._0x15168e)=>_0xbe11fc['execute'](..._0x15168e,{'forceDefaultExecution':!0x0}),..._0x3d8998),_0x3047b5[_0x6e58('0xd0')]())));},{'priority':_0x6e58('0xa5')});}['forceDefaultExecution'](_0x39118f){let _0x4b4611,_0x225377;const _0xe4ffd3=this['_isForcedDefaultExecutionBlock'];this[_0x6e58('0x70')]=!0x0;try{_0x4b4611=_0x39118f();}catch(_0x5b99b7){_0x225377=_0x5b99b7;}return _0xe4ffd3||(this[_0x6e58('0x70')]=!0x1),_0x225377&&_0x1efb49['rethrowUnexpectedError'](_0x225377,this),_0x4b4611;}[_0x6e58('0x102')](_0x701d58,_0xa4eb69=null,_0x1dfdf5={}){if(_0x701d58[_0x6e58('0x1c')])return null;const _0x3e93e2=this[_0x6e58('0x79')]['plugins'][_0x6e58('0x8')](_0x6e58('0x112'))['me'];for(const {suggestion:_0x299e78,meta:_0x271d8d}of this[_0x6e58('0x45')](_0x701d58,'insertion'))if(_0x271d8d[_0x6e58('0x1a')]){if(!_0x271d8d[_0x6e58('0x84')]){if(_0x271d8d[_0x6e58('0x126')]){if(!this[_0x6e58('0x24')]||!Gt(_0x299e78,_0x1dfdf5))continue;return _0x299e78;}if(Gt(_0x299e78,_0x1dfdf5))return _0x299e78;this['_breakSuggestionMarker'](_0x299e78,_0x701d58[_0x6e58('0x111')],_0x701d58[_0x6e58('0x19')]);break;}if(_0xa4eb69==_0x299e78[_0x6e58('0x10f')]&&Gt(_0x299e78,_0x1dfdf5)){const _0x5ceb05=_0x299e78[_0x6e58('0x90')]();return _0x5ceb05[_0x6e58('0x111')]['isEqual'](_0x701d58[_0x6e58('0x19')])?this[_0x6e58('0xee')](_0x299e78,this[_0x6e58('0xdd')][_0x6e58('0x12f')](_0x701d58['start'],_0x5ceb05['end'])):this[_0x6e58('0xee')](_0x299e78,this[_0x6e58('0xdd')][_0x6e58('0x12f')](_0x5ceb05[_0x6e58('0x111')],_0x701d58[_0x6e58('0x19')])),_0x299e78;}}const _0x185caa=_0x1b9186(),_0x28a075=_0x3e93e2['id'],_0x39c122=_0xa4eb69?_0x6e58('0xe2')+_0xa4eb69:_0x6e58('0xfe'),_0x5d10fc=this[_0x6e58('0xd2')]({'id':_0x185caa,'type':_0x39c122,'createdAt':new Date(),'authorId':_0x28a075,'attributes':_0x1dfdf5});return this[_0x6e58('0x7')](_0x39c122,_0x185caa,_0x28a075,_0x701d58),_0x5d10fc;}[_0x6e58('0x142')](_0x2f9fbc,_0x34532c=_0x6e58('0x109'),_0x448ceb={}){const _0x3a100e=this[_0x6e58('0x79')][_0x6e58('0x6c')]['get'](_0x6e58('0x112'))['me'],_0x46b43d=this['_suggestionFactory'][_0x6e58('0x146')](_0x6e58('0xfe'),_0x34532c,_0x6e58('0xbb'));for(const _0x1c570f of this[_0x6e58('0x168')]())if(_0x1c570f[_0x6e58('0x13b')]['id']==_0x3a100e['id']&&_0x6e58('0xfe')==_0x1c570f[_0x6e58('0xe5')]&&_0x1c570f['subType']==_0x34532c&&Gt(_0x1c570f,_0x448ceb)&&(_0x46b43d(_0x1c570f[_0x6e58('0x76')](),_0x2f9fbc)||_0x46b43d(_0x2f9fbc,_0x1c570f[_0x6e58('0x76')]()))){for(const _0x4f028d of _0x2f9fbc)_0x1c570f[_0x6e58('0x87')](_0x4f028d);return _0x1c570f;}for(const {suggestion:_0x57ff7e,meta:_0x332d75}of this[_0x6e58('0x45')](_0x2f9fbc,_0x6e58('0xfe'))){if(!_0x332d75[_0x6e58('0x1a')])continue;if(!this[_0x6e58('0x24')]&&_0x332d75[_0x6e58('0x126')])continue;if(!Gt(_0x57ff7e,_0x448ceb))continue;let _0xb146b1=!0x0;for(const _0x4aa2f9 of _0x57ff7e['getRanges']())for(const _0x3fe156 of _0x2f9fbc)if(!_0x4aa2f9['containsRange'](_0x3fe156)){_0xb146b1=!0x1;break;}if(_0xb146b1)return _0x57ff7e;}const _0x18ee08=_0x1b9186(),_0x3c1a0a=_0x3a100e['id'],_0x19e03f=_0x6e58('0xe2')+_0x34532c,_0x48b6e5=this['_setSuggestionData']({'id':_0x18ee08,'type':_0x19e03f,'createdAt':new Date(),'authorId':_0x3c1a0a,'attributes':_0x448ceb});for(const _0x160120 of _0x2f9fbc)this['_addSuggestionMarker'](_0x19e03f,_0x18ee08,_0x3c1a0a,_0x160120,_0x12d829[_0x6e58('0x2e')]());return _0x48b6e5;}['markInlineFormat'](_0xcffe87,_0x23999b,_0x47844e=null,_0x594b67={}){if(_0x47844e=_0x47844e||Et(_0x23999b),_0xcffe87[_0x6e58('0x1c')])return null;if(_0x6e58('0x60')===this[_0x6e58('0x83')]){const _0x51fc1c=this[_0x6e58('0x25')][_0x6e58('0x146')](_0x6e58('0x136'),_0x47844e,_0x6e58('0xba'));return this['forceDefaultExecution'](()=>_0x51fc1c([_0xcffe87],_0x23999b,_0x594b67)),null;}const _0x27d2a4=this['editor'][_0x6e58('0x6c')]['get'](_0x6e58('0x112'))['me'],_0x5db3dc=[];if('always'!==this[_0x6e58('0x83')])for(const {suggestion:_0x33e43f,meta:_0x49b1c7}of this[_0x6e58('0x45')](_0xcffe87,_0x6e58('0xfe')))_0x49b1c7[_0x6e58('0x1a')]&&!_0x49b1c7[_0x6e58('0xe0')]&&_0x5db3dc[_0x6e58('0x7e')](..._0x33e43f['getRanges']());const _0x2b2be4=function(_0x4c3d19,_0x25be46){const _0xe00b6e=[];for(const _0x489493 of _0x25be46){const _0xbd9444=_0x4c3d19['getIntersection'](_0x489493);_0xbd9444&&_0xe00b6e[_0x6e58('0x7e')](_0xbd9444);}return _0xe00b6e;}(_0xcffe87,_0x5db3dc),_0x22b34f=function(_0x3c3750,_0x48a087){const _0x3350ef=[_0x3c3750];for(const _0x2b6903 of _0x48a087){let _0x5f20f2=0x0;for(;_0x5f20f2<_0x3350ef[_0x6e58('0x128')];){const _0x62526e=_0x3350ef[_0x5f20f2]['getDifference'](_0x2b6903);_0x3350ef[_0x6e58('0x36')](_0x5f20f2,0x1,..._0x62526e),_0x5f20f2+=_0x62526e['length'];}}return _0x3350ef;}(_0xcffe87,_0x5db3dc);_0x2b2be4[_0x6e58('0x128')]&&this[_0x6e58('0xdd')][_0x6e58('0x15e')](()=>{for(const _0x2a861a of _0x2b2be4){const _0x1b02d4=this[_0x6e58('0x25')][_0x6e58('0x146')](_0x6e58('0x136'),_0x47844e,_0x6e58('0xba'));this[_0x6e58('0x17a')](()=>_0x1b02d4([_0x2a861a],_0x23999b,_0x594b67));}});for(const _0x1f4863 of _0x22b34f){let _0x4fbf8e=null,_0x360f7e=_0x1f4863[_0x6e58('0x111')],_0x5894df=_0x1f4863[_0x6e58('0x19')];for(const {suggestion:_0x165497,meta:_0x51d123}of this[_0x6e58('0x45')](_0x1f4863,'formatInline')){if(!_0x51d123['isOwn'])continue;if(_0x165497['subType']!=_0x47844e)continue;if(!Gt(_0x165497,_0x594b67))continue;const _0x31114d=_0x165497[_0x6e58('0x90')]();if(_0x31114d[_0x6e58('0x172')](_0x1f4863,!0x0))return null;_0x360f7e=_0x360f7e[_0x6e58('0x15b')](_0x31114d[_0x6e58('0x111')])?_0x360f7e:_0x31114d[_0x6e58('0x111')],_0x5894df=_0x5894df['isAfter'](_0x31114d['end'])?_0x5894df:_0x31114d[_0x6e58('0x19')],_0x4fbf8e?_0x31114d[_0x6e58('0x111')][_0x6e58('0x15b')](_0x4fbf8e['getFirstRange']()[_0x6e58('0x111')])?(_0x4fbf8e['removeMarkers'](),_0x4fbf8e=_0x165497):_0x165497[_0x6e58('0x81')]():_0x4fbf8e=_0x165497;}const _0x90e591=this['_model'][_0x6e58('0x12f')](_0x360f7e,_0x5894df);if(_0x4fbf8e)this[_0x6e58('0xee')](_0x4fbf8e,_0x90e591);else{const _0x30d852=_0x1b9186(),_0x875e02=_0x27d2a4['id'];this[_0x6e58('0xd2')]({'id':_0x30d852,'type':'formatInline:'+_0x47844e,'data':_0x23999b,'createdAt':new Date(),'authorId':_0x875e02,'attributes':_0x594b67}),this[_0x6e58('0x7')](_0x6e58('0xd')+_0x47844e,_0x30d852,_0x875e02,_0x90e591);}}return null;}[_0x6e58('0xed')](_0x191714,_0x4ddd56,_0x4e4dca=[],_0x5e0f00=null,_0x1872e6={}){_0x4ddd56[_0x6e58('0x3e')]||(_0x4ddd56[_0x6e58('0x3e')]=_0x4ddd56[_0x6e58('0x8e')]),_0x4ddd56[_0x6e58('0xb')]=_0x191714['is']('range'),_0x5e0f00=_0x5e0f00||Et(_0x4ddd56);const _0xfaf2d9=_0x4e4dca[_0x6e58('0x9d')](_0x310991=>Ut(_0x310991,this[_0x6e58('0xdd')])),_0x2ce3bf=_0x191714['is'](_0x6e58('0x65'))?_0x191714:Ut(_0x191714,this[_0x6e58('0xdd')]);if(_0x6e58('0x60')===this[_0x6e58('0x83')]){const _0x496897=this[_0x6e58('0x25')][_0x6e58('0x146')](_0x6e58('0x135'),_0x5e0f00,_0x6e58('0xba'));return this['forceDefaultExecution'](()=>_0x496897([_0x2ce3bf],_0x4ddd56,_0x1872e6)),null;}_0xfaf2d9['push'](_0x2ce3bf);let _0x3015ee=!0x0;for(const _0x3deea3 of _0xfaf2d9)if(!this['_rangeIsInLocalUserInsertion'](_0x3deea3)){_0x3015ee=!0x1;break;}if(_0x3015ee&&_0x6e58('0x80')!==this[_0x6e58('0x83')]){const _0x469899=this[_0x6e58('0x25')][_0x6e58('0x146')](_0x6e58('0x135'),_0x5e0f00,_0x6e58('0xba'));return this['forceDefaultExecution'](()=>_0x469899([_0x2ce3bf],_0x4ddd56,_0x1872e6)),null;}let _0x1bf4c4=null,_0x4c229b=_0x2ce3bf['start'],_0x35d1f2=_0x2ce3bf['end'];for(const {suggestion:_0x1a48ae,meta:_0x103ded}of this['_findSuggestions'](_0x2ce3bf,'formatBlock')){if(!_0x103ded[_0x6e58('0x1a')])continue;if(_0x103ded[_0x6e58('0x84')]||_0x103ded[_0x6e58('0x126')]||_0x103ded['isInsideObject'])continue;if(_0x1a48ae[_0x6e58('0x7d')]['formatGroupId']!=_0x4ddd56[_0x6e58('0x3e')])continue;if(!Gt(_0x1a48ae,_0x1872e6))continue;const _0x5abad5=_0x1a48ae[_0x6e58('0x90')]();if(_0x1a48ae[_0x6e58('0x10f')]==_0x5e0f00){if(_0x5abad5[_0x6e58('0x172')](_0x2ce3bf,!0x0))return null;_0x4c229b=_0x4c229b['isBefore'](_0x5abad5['start'])?_0x4c229b:_0x5abad5['start'],_0x35d1f2=_0x35d1f2[_0x6e58('0x18')](_0x5abad5[_0x6e58('0x19')])?_0x35d1f2:_0x5abad5[_0x6e58('0x19')],_0x1bf4c4?_0x5abad5[_0x6e58('0x111')][_0x6e58('0x15b')](_0x1bf4c4[_0x6e58('0x90')]()['start'])?(_0x1bf4c4[_0x6e58('0x81')](),_0x1bf4c4=_0x1a48ae):_0x1a48ae[_0x6e58('0x81')]():_0x1bf4c4=_0x1a48ae;}else{const _0x3c75bc=_0x2ce3bf['getIntersection'](_0x5abad5);this['_cutOutSuggestionMarker'](_0x1a48ae,_0x3c75bc);}}const _0x56ee82=this['editor'][_0x6e58('0x6c')][_0x6e58('0x8')](_0x6e58('0x112'))['me'],_0x484631=_0x1b9186(),_0x474237=_0x56ee82['id'];if(_0x1bf4c4)return this[_0x6e58('0xee')](_0x1bf4c4,this[_0x6e58('0xdd')][_0x6e58('0x12f')](_0x4c229b,_0x35d1f2)),_0x1bf4c4;{const _0x4a1edc=this['_setSuggestionData']({'id':_0x484631,'type':_0x6e58('0x15f')+_0x5e0f00,'data':_0x4ddd56,'createdAt':new Date(),'authorId':_0x474237,'attributes':_0x1872e6});return this[_0x6e58('0x7')](_0x6e58('0x15f')+_0x5e0f00,_0x484631,_0x474237,this['_model'][_0x6e58('0x12f')](_0x4c229b,_0x35d1f2)),_0x4a1edc;}}[_0x6e58('0x110')](_0x1310dc,_0x681572,_0x7050f1=[],_0x41f48=null,_0x329895={}){_0x681572[_0x6e58('0x3e')]||(_0x681572[_0x6e58('0x3e')]=_0x681572[_0x6e58('0x8e')]);const _0x10941c=_0x1310dc[0x0];_0x681572[_0x6e58('0xb')]=_0x10941c['is'](_0x6e58('0x65')),_0x41f48=_0x41f48||Et(_0x681572);const _0x5adba3=_0x7050f1[_0x6e58('0x9d')](_0x27f5c4=>Ut(_0x27f5c4,this[_0x6e58('0xdd')])),_0x18c1a5=_0x10941c['is']('range')?_0x1310dc:_0x1310dc['map'](_0x1338c0=>Ut(_0x1338c0,this[_0x6e58('0xdd')]));if(_0x6e58('0x60')===this[_0x6e58('0x83')]){const _0x4f331d=this['_suggestionFactory']['getSuggestionCallback'](_0x6e58('0x135'),_0x41f48,_0x6e58('0xba'));return this[_0x6e58('0x17a')](()=>_0x4f331d(_0x18c1a5,_0x681572,_0x329895)),null;}_0x5adba3[_0x6e58('0x7e')](..._0x18c1a5);let _0x5e822d=!0x0;for(const _0x6282e9 of _0x5adba3)if(!this[_0x6e58('0x26')](_0x6282e9)){_0x5e822d=!0x1;break;}if(_0x5e822d&&_0x6e58('0x80')!==this['_trackFormatChanges']){const _0xe3179a=this['_suggestionFactory'][_0x6e58('0x146')](_0x6e58('0x135'),_0x41f48,'accept');return this['forceDefaultExecution'](()=>_0xe3179a(_0x18c1a5,_0x681572,_0x329895)),null;}const _0x2f2b7e=this[_0x6e58('0x79')][_0x6e58('0x6c')][_0x6e58('0x8')](_0x6e58('0x112'))['me'];for(const _0x311005 of this['getSuggestions']()){if(_0x311005[_0x6e58('0x13b')]['id']!=_0x2f2b7e['id'])continue;if('formatBlock'!=_0x311005[_0x6e58('0xe5')]||_0x311005[_0x6e58('0x7d')]['formatGroupId']!=_0x681572[_0x6e58('0x3e')])continue;if(!Gt(_0x311005,_0x329895))continue;const _0x2d6d5d=_0x311005['subType']==_0x41f48;for(let _0x1b55c5=0x0;_0x1b55c5<_0x18c1a5[_0x6e58('0x128')];_0x1b55c5++){const _0x365e07=_0x18c1a5[_0x1b55c5];for(const _0x5e2c8a of _0x311005['getMarkers']()){const _0x195c1b=_0x5e2c8a[_0x6e58('0x3f')]();if(_0x365e07[_0x6e58('0x29')](_0x195c1b)){_0x2d6d5d?(_0x18c1a5['splice'](_0x1b55c5,0x1),_0x1b55c5--):_0x311005[_0x6e58('0x138')](_0x5e2c8a[_0x6e58('0x6e')]);break;}}}}if(0x0==_0x18c1a5[_0x6e58('0x128')])return null;const _0x22b3ec=this[_0x6e58('0x25')]['getSuggestionCallback'](_0x6e58('0x135'),_0x41f48,_0x6e58('0xbb'));for(const _0x1c8847 of this['getSuggestions']())if(_0x1c8847[_0x6e58('0x13b')]['id']==_0x2f2b7e['id']&&_0x6e58('0x135')==_0x1c8847[_0x6e58('0xe5')]&&_0x1c8847[_0x6e58('0x7d')][_0x6e58('0x3e')]==_0x681572['formatGroupId']&&_0x1c8847[_0x6e58('0x10f')]==_0x41f48&&Gt(_0x1c8847,_0x329895)&&(_0x22b3ec(_0x1c8847['getRanges'](),_0x18c1a5)||_0x22b3ec(_0x18c1a5,_0x1c8847[_0x6e58('0x76')]()))){for(const _0x36e6dc of _0x18c1a5)_0x1c8847[_0x6e58('0x87')](_0x36e6dc);return _0x1c8847;}const _0x58fcd9=_0x1b9186(),_0x58207b=_0x2f2b7e['id'],_0x165516=_0x6e58('0x15f')+_0x41f48,_0x165b6d=this[_0x6e58('0xd2')]({'id':_0x58fcd9,'type':_0x165516,'data':_0x681572,'createdAt':new Date(),'authorId':_0x58207b,'attributes':_0x329895});for(const _0x234dce of _0x18c1a5)this[_0x6e58('0x7')](_0x165516,_0x58fcd9,_0x58207b,_0x234dce,_0x12d829['getMultiRangeId']());return _0x165b6d;}[_0x6e58('0x14e')](_0x128c24,_0x1776f9=null,_0x3f16c5={}){if(_0x128c24['isCollapsed'])return null;const _0x1d7053=this['editor'][_0x6e58('0x6c')][_0x6e58('0x8')](_0x6e58('0x112'))['me'],_0x946a3f=new _0x16f1c9(_0x128c24['start'],_0x128c24[_0x6e58('0x19')]);for(const {suggestion:_0x109f3d,meta:_0x519d7f}of this['_findSuggestions'](_0x946a3f,_0x6e58('0xfe')))if(_0x519d7f[_0x6e58('0x1a')]&&!_0x519d7f[_0x6e58('0x84')]){if(_0x109f3d[_0x6e58('0x7b')]){const _0x3ccb99=_0x109f3d[_0x6e58('0x76')]()[_0x6e58('0x33')](_0x37588f=>_0x6e58('0x27')!=_0x37588f['root']['rootName']);_0x3ccb99[_0x6e58('0x120')](_0x44deff=>_0x946a3f[_0x6e58('0x172')](_0x44deff,!0x0))&&_0x109f3d[_0x6e58('0x159')]();if(_0x3ccb99[_0x6e58('0x178')](_0x1435fe=>_0x1435fe['containsRange'](_0x946a3f,!0x0))){const _0x318e0=this['_suggestionFactory'][_0x6e58('0x146')](_0x6e58('0x13a'),_0x1776f9,_0x6e58('0xba'));return this['forceDefaultExecution'](()=>_0x318e0([_0x946a3f],null,_0x3f16c5)),null;}}else{const _0x17436d=_0x946a3f[_0x6e58('0xd8')](_0x109f3d[_0x6e58('0x90')]());null!==_0x17436d&&_0x109f3d[_0x6e58('0x13c')]([_0x17436d],null,_0x3f16c5);}}if(_0x946a3f[_0x6e58('0x140')](),_0x946a3f['isCollapsed']||'$graveyard'==_0x946a3f['root'][_0x6e58('0x11c')])return null;let _0x5e5924=null,_0x541d2b=_0x946a3f[_0x6e58('0x111')],_0x42ae88=_0x946a3f[_0x6e58('0x19')];const _0x3fbbfc=this['_findSuggestions'](_0x946a3f,_0x6e58('0x13a'));for(const {suggestion:_0x4e3437,meta:_0x37248e}of _0x3fbbfc){const _0x52ef9a=this['_model']['createRange'](_0x541d2b,_0x42ae88);if(_0x37248e['isOwn']&&(this[_0x6e58('0x24')]||!_0x37248e[_0x6e58('0x126')]&&!_0x37248e['isInsideObject'])){if(_0x4e3437[_0x6e58('0x7b')]){if(!Gt(_0x4e3437,_0x3f16c5))continue;let _0xe5b029=!0x0;for(const _0xf30a66 of _0x4e3437[_0x6e58('0x76')]()){if(_0xf30a66[_0x6e58('0x172')](_0x52ef9a,!0x0))return _0x4e3437;_0x52ef9a['containsRange'](_0xf30a66)||(_0xe5b029=!0x1);}_0xe5b029&&_0x4e3437[_0x6e58('0x159')]();}else{const _0x49ba6d=_0x4e3437[_0x6e58('0x90')]();if(_0x49ba6d[_0x6e58('0x172')](_0x52ef9a,!0x0))return _0x4e3437;if(!Gt(_0x4e3437,_0x3f16c5)){_0x52ef9a['containsRange'](_0x49ba6d)?_0x4e3437[_0x6e58('0x81')]():_0x49ba6d['containsPosition'](_0x541d2b)?_0x541d2b=_0x49ba6d['end']:_0x49ba6d[_0x6e58('0x52')](_0x42ae88)&&(_0x42ae88=_0x49ba6d['start']);continue;}_0x541d2b=_0x541d2b['isBefore'](_0x49ba6d[_0x6e58('0x111')])?_0x541d2b:_0x49ba6d[_0x6e58('0x111')],_0x42ae88=_0x42ae88[_0x6e58('0x18')](_0x49ba6d[_0x6e58('0x19')])?_0x42ae88:_0x49ba6d[_0x6e58('0x19')],_0x3f16c5=Object[_0x6e58('0xdf')]({},_0x4e3437[_0x6e58('0x17c')]),_0x5e5924?_0x49ba6d[_0x6e58('0x111')]['isBefore'](_0x5e5924[_0x6e58('0x90')]()[_0x6e58('0x111')])?(_0x5e5924[_0x6e58('0x81')](),_0x5e5924=_0x4e3437):_0x4e3437[_0x6e58('0x81')]():_0x5e5924=_0x4e3437;}}}if(_0x5e5924)return this['_setSuggestionRange'](_0x5e5924,this[_0x6e58('0xdd')]['createRange'](_0x541d2b,_0x42ae88)),_0x5e5924;{const _0x3bd9b8=_0x1b9186(),_0x4bb17e=this[_0x6e58('0xdd')][_0x6e58('0x12f')](_0x541d2b,_0x42ae88),_0x4fccf5=_0x1d7053['id'],_0x4875c3=_0x1776f9?_0x6e58('0x9c')+_0x1776f9:_0x6e58('0x13a'),_0x53a8a0=this[_0x6e58('0xd2')]({'id':_0x3bd9b8,'type':_0x4875c3,'createdAt':new Date(),'authorId':_0x4fccf5,'attributes':_0x3f16c5});return this[_0x6e58('0x7')](_0x4875c3,_0x3bd9b8,_0x4fccf5,_0x4bb17e),_0x53a8a0;}}[_0x6e58('0xcc')](_0x40d5a8,_0x2dc17d=_0x6e58('0x109'),_0x50b11f={}){const _0x52543d=this[_0x6e58('0x79')][_0x6e58('0x6c')][_0x6e58('0x8')](_0x6e58('0x112'))['me'],_0x1d2f11=_0x40d5a8[_0x6e58('0x9d')](_0x1817ad=>new _0x16f1c9(_0x1817ad['start'],_0x1817ad[_0x6e58('0x19')])),_0x2540cb=new Set();for(const {suggestion:_0x2575cf,meta:_0x3489bf}of this[_0x6e58('0x45')](_0x1d2f11,'insertion'))_0x3489bf['isOwn']&&!_0x3489bf[_0x6e58('0x84')]&&_0x2540cb['add'](_0x2575cf);for(const _0x220d03 of _0x2540cb)if(_0x220d03[_0x6e58('0x7b')]){const _0x3cfa86=_0x220d03['getRanges']();(!_0x220d03[_0x6e58('0x17c')]||!_0x220d03[_0x6e58('0x17c')][_0x6e58('0x123')])&&(_0x3cfa86[_0x6e58('0x120')](_0x2fb9fb=>_0x1d2f11[_0x6e58('0x178')](_0x5a1033=>_0x5a1033[_0x6e58('0x172')](_0x2fb9fb,!0x0)))&&_0x220d03['discard']());if(_0x1d2f11[_0x6e58('0x120')](_0x5c955f=>_0x3cfa86['some'](_0x7d6358=>_0x7d6358[_0x6e58('0x172')](_0x5c955f,!0x0)))){const _0x2a212c=this[_0x6e58('0x25')][_0x6e58('0x146')]('deletion',_0x2dc17d,'accept');return this['forceDefaultExecution'](()=>_0x2a212c(_0x40d5a8,null,_0x50b11f)),null;}}else{const _0x224b75=_0x220d03['getFirstRange']();_0x1d2f11[_0x6e58('0x178')](_0x27b272=>_0x27b272[_0x6e58('0x172')](_0x224b75,!0x0))&&_0x220d03['discard']();if(_0x1d2f11[_0x6e58('0x120')](_0x8d5e9c=>_0x224b75[_0x6e58('0x172')](_0x8d5e9c,!0x0))){const _0x4d12ec=this['_suggestionFactory'][_0x6e58('0x146')](_0x6e58('0x13a'),_0x2dc17d,_0x6e58('0xba'));return this[_0x6e58('0x17a')](()=>_0x4d12ec(_0x1d2f11,null,_0x50b11f)),null;}}const _0x33b972=this[_0x6e58('0x25')][_0x6e58('0x146')](_0x6e58('0x13a'),_0x2dc17d,_0x6e58('0xbb'));let _0x4fdff3=null;for(const _0x28a30e of this[_0x6e58('0x168')]())if(_0x28a30e[_0x6e58('0x13b')]['id']==_0x52543d['id']&&_0x28a30e['isInContent']&&_0x6e58('0x13a')==_0x28a30e['type']&&_0x28a30e[_0x6e58('0x10f')]==_0x2dc17d&&Gt(_0x28a30e,_0x50b11f)&&(_0x33b972(_0x28a30e[_0x6e58('0x76')](),_0x1d2f11)||_0x33b972(_0x1d2f11,_0x28a30e[_0x6e58('0x76')]()))){if(_0x4fdff3){if(_0x28a30e['commentThread']&&_0x28a30e[_0x6e58('0x66')][_0x6e58('0x128')])continue;for(const _0x3ce2ad of _0x28a30e[_0x6e58('0x76')]())_0x4fdff3[_0x6e58('0xc9')](_0x3ce2ad)||_0x4fdff3[_0x6e58('0x87')](_0x3ce2ad);_0x28a30e[_0x6e58('0x81')]();}else{_0x4fdff3=_0x28a30e;for(const _0x1d4b50 of _0x1d2f11)_0x28a30e['isIntersectingWithRange'](_0x1d4b50)||_0x28a30e[_0x6e58('0x87')](_0x1d4b50);}}if(_0x4fdff3)return _0x4fdff3;_0x2540cb[_0x6e58('0x53')]();for(const {suggestion:_0x24f694,meta:_0x4eaf25}of this['_findSuggestions'](_0x1d2f11,_0x6e58('0x13a')))_0x4eaf25['isOwn']&&(this[_0x6e58('0x24')]||!_0x4eaf25[_0x6e58('0x126')]&&!_0x4eaf25['isInsideObject'])&&Gt(_0x24f694,_0x50b11f)&&_0x2540cb[_0x6e58('0x46')](_0x24f694);for(const _0x32326b of _0x2540cb){const _0x3455fe=_0x32326b['getRanges']();if(!_0x50b11f||!_0x50b11f[_0x6e58('0x123')]){if(_0x1d2f11[_0x6e58('0x120')](_0x1fc9c6=>_0x3455fe[_0x6e58('0x178')](_0x3d85ab=>_0x3d85ab[_0x6e58('0x172')](_0x1fc9c6,!0x0))))return _0x32326b;}(!_0x32326b[_0x6e58('0x17c')]||!_0x32326b[_0x6e58('0x17c')][_0x6e58('0x123')])&&(_0x3455fe['every'](_0x2ed479=>_0x1d2f11[_0x6e58('0x178')](_0x3bc392=>_0x3bc392['containsRange'](_0x2ed479,!0x0)))&&_0x32326b[_0x6e58('0x159')]());}const _0xa9a600=_0x1b9186(),_0x15831a=_0x52543d['id'],_0x2bfb73=_0x6e58('0x9c')+_0x2dc17d,_0xab5553=this[_0x6e58('0xd2')]({'id':_0xa9a600,'type':_0x2bfb73,'createdAt':new Date(),'authorId':_0x15831a,'attributes':_0x50b11f});for(const _0x286a49 of _0x1d2f11)_0x286a49[_0x6e58('0x140')](),_0x286a49[_0x6e58('0x1c')]||_0x6e58('0x27')==_0x286a49[_0x6e58('0xca')][_0x6e58('0x11c')]||this[_0x6e58('0x7')](_0x2bfb73,_0xa9a600,_0x15831a,_0x286a49,_0x12d829[_0x6e58('0x2e')]());return _0xab5553;}[_0x6e58('0x38')](_0x447f21,_0x4888f6,_0x40b4a7,_0x4e7592,_0x14daf7){if(_0x447f21['isCollapsed'])return[];if(_0x6e58('0x60')===this[_0x6e58('0x83')])return[];const _0xe50acb=this['editor'][_0x6e58('0x6c')][_0x6e58('0x8')](_0x6e58('0x112'))['me']['id'],_0x7327ba=Array[_0x6e58('0x74')](this['_suggestions']['values']())['filter'](_0x57c0e1=>'attribute'==_0x57c0e1['type']&&_0x57c0e1[_0x6e58('0x7d')][_0x6e58('0x171')]==_0x4888f6&&_0x57c0e1[_0x6e58('0xc9')](_0x447f21));if(_0x6e58('0x6b')===this[_0x6e58('0x83')]){const _0x5e008a=this['_findSuggestions'](_0x447f21,_0x6e58('0xfe'))[_0x6e58('0x33')](({meta:_0x47011d})=>_0x47011d[_0x6e58('0x1a')]&&!_0x47011d[_0x6e58('0xe0')]&&!_0x47011d[_0x6e58('0x84')])[_0x6e58('0x9d')](({suggestion:_0x3708ba})=>_0x3708ba);_0x7327ba[_0x6e58('0x75')](..._0x5e008a);}const _0x5cefbd=new Map([[_0x447f21,_0x40b4a7]]);for(const _0x20f17f of _0x7327ba){const _0x317c2=_0x6e58('0x5e')==_0x20f17f[_0x6e58('0xe5')]?_0x20f17f[_0x6e58('0x7d')][_0x6e58('0xc5')]:void 0x0,_0x4f16c9=_0x20f17f['getFirstRange'](),_0x5e3445=Array[_0x6e58('0x74')](_0x5cefbd['keys']())[_0x6e58('0x14f')](_0x1631c0=>_0x1631c0[_0x6e58('0x54')](_0x4f16c9));if(!_0x5e3445)continue;const _0x232b6d=_0x5e3445[_0x6e58('0x11b')](_0x4f16c9);this['_isBlockAttribute'](_0x4888f6)&&_0x6e58('0xfe')==_0x20f17f[_0x6e58('0xe5')]&&0x0!=_0x232b6d[_0x6e58('0x128')]||(_0x5cefbd['delete'](_0x5e3445),_0x232b6d['forEach'](_0x5a647b=>{_0x5cefbd[_0x6e58('0x16a')](_0x5a647b,_0x40b4a7);}),_0x6e58('0xfe')!=_0x20f17f[_0x6e58('0xe5')]&&_0x317c2!=_0x4e7592&&_0x5cefbd[_0x6e58('0x16a')](_0x5e3445[_0x6e58('0xd8')](_0x4f16c9),_0x317c2));}const _0x49e482=[];for(const [_0x40cfb7,_0x29ac69]of _0x5cefbd){const _0x5c3336=_0x1b9186(),_0x22bc5a={'key':_0x4888f6,'oldValue':_0x29ac69,'newValue':_0x4e7592};_0x4888f6[_0x6e58('0x128')]>0x25&&console[_0x6e58('0x15c')](_0x6e58('0x5a'),{'key':_0x4888f6});const _0x341ce1=(_0x6e58('0x5')+(_0x4888f6+'|'+Et({'newValue':_0x4e7592})))[_0x6e58('0xff')](0x0,0x3c),_0x38246c=this[_0x6e58('0xd2')]({'id':_0x5c3336,'type':_0x341ce1,'data':_0x22bc5a,'createdAt':new Date(),'authorId':_0xe50acb,'attributes':_0x14daf7});_0x49e482[_0x6e58('0x7e')](_0x38246c),this['_addSuggestionMarker'](_0x341ce1,_0x5c3336,_0xe50acb,_0x40cfb7);}return _0x49e482;}[_0x6e58('0x3c')](_0x1247be){this['_blockAttributeKeys']['add'](_0x1247be);}[_0x6e58('0x15d')](_0xa27e24){this[_0x6e58('0x12c')]['add'](_0xa27e24);}[_0x6e58('0xeb')](_0x234815,_0x444338=[],_0x1e6392=[]){this[_0x6e58('0x7f')](_0x234815,(_0x13eb29,..._0x2abfd8)=>{this[_0x6e58('0xf1')](()=>{_0x13eb29(..._0x2abfd8);});});for(const _0x2b42cc of _0x444338)this[_0x6e58('0x15d')](_0x2b42cc);for(const _0x33759a of _0x1e6392)this['_registerBlockAttribute'](_0x33759a);}[_0x6e58('0xee')](_0x31e30f,_0x41be83){const _0x366c5a=_0x31e30f[_0x6e58('0x8f')]();this['_model'][_0x6e58('0x15e')](_0x1e16a1=>{_0x1e16a1[_0x6e58('0x8d')](_0x366c5a,{'range':_0x41be83});});}[_0x6e58('0x174')](_0x3aa8f0){const _0x597875=_0x3aa8f0['id'],_0xb37ef8=this[_0x6e58('0x79')][_0x6e58('0x12d')][_0x6e58('0x8')](_0x6e58('0xb6'));this[_0x6e58('0x1e')][_0x6e58('0x12')](_0x597875)||this['_commentsRepository'][_0x6e58('0x93')]({'channelId':_0xb37ef8,'threadId':_0x597875,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4bf558=this[_0x6e58('0x1e')][_0x6e58('0x145')](_0x597875);_0x4bf558[_0x6e58('0x1b')](_0x6e58('0xea')),_0x4bf558['isRemovable']=!0x1,_0x3aa8f0[_0x6e58('0x66')]=_0x4bf558;}[_0x6e58('0xa1')](_0x27a216,_0x4a6ec7,_0x96e262,_0x2b7534){if(_0x27a216[_0x6e58('0xe5')]!=_0x4a6ec7||_0x27a216[_0x6e58('0x10f')]!=_0x96e262||_0x27a216[_0x6e58('0x13d')]['id']!=_0x2b7534)throw this[_0x6e58('0x79')][_0x6e58('0xe6')](_0x6e58('0xfc')),new _0x1efb49('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x245c66,_0x44eae7){const _0x3eec06=_0x245c66[_0x6e58('0x90')]();if(_0x44eae7[_0x6e58('0x29')](_0x3eec06))_0x245c66[_0x6e58('0x81')]();else{if(_0x3eec06[_0x6e58('0x172')](_0x44eae7)){const _0x4c17c2=this['_model'][_0x6e58('0xc8')](_0x44eae7[_0x6e58('0x111')][_0x6e58('0x173')],_0x6e58('0x19'));this[_0x6e58('0xee')](_0x245c66,this[_0x6e58('0xdd')][_0x6e58('0x12f')](_0x3eec06[_0x6e58('0x111')],_0x4c17c2));const _0x427600=_0x1b9186(),_0x3b0aea=_0x245c66[_0x6e58('0x13d')]['id'],_0xf34d78=_0x245c66[_0x6e58('0xe5')]+':'+_0x245c66[_0x6e58('0x10f')];this[_0x6e58('0xd2')]({'id':_0x427600,'type':_0xf34d78,'createdAt':new Date(),'authorId':_0x3b0aea,'data':_0x245c66[_0x6e58('0x7d')],'attributes':_0x245c66['attributes']});const _0x277aaf=this[_0x6e58('0xdd')]['createPositionAt'](_0x44eae7['end'][_0x6e58('0x48')],_0x6e58('0x10c')),_0x25340b=this['_model']['createRange'](_0x277aaf,_0x3eec06[_0x6e58('0x19')]);this[_0x6e58('0x7')](_0xf34d78,_0x427600,_0x3b0aea,_0x25340b);}else{if(_0x3eec06[_0x6e58('0x52')](_0x44eae7[_0x6e58('0x111')])){const _0x4a0289=this[_0x6e58('0xdd')]['createPositionAt'](_0x44eae7['start'][_0x6e58('0x173')],'end');this['_setSuggestionRange'](_0x245c66,this[_0x6e58('0xdd')]['createRange'](_0x3eec06[_0x6e58('0x111')],_0x4a0289));}else{const _0x4cb32a=this[_0x6e58('0xdd')][_0x6e58('0xc8')](_0x44eae7[_0x6e58('0x19')][_0x6e58('0x48')],_0x6e58('0x10c'));this[_0x6e58('0xee')](_0x245c66,this[_0x6e58('0xdd')][_0x6e58('0x12f')](_0x4cb32a,_0x3eec06[_0x6e58('0x19')]));}}}}[_0x6e58('0x26')](_0x442c4e){for(const {suggestion:_0x48e6c9,meta:_0x371ecc}of this['_findSuggestions'](_0x442c4e,_0x6e58('0xfe'))){if(!_0x371ecc[_0x6e58('0x1a')])continue;const _0x564a47=_0x48e6c9['getRanges']();for(const _0x20966d of _0x564a47)if(!_0x442c4e[_0x6e58('0x11b')](_0x20966d)['length'])return!0x0;}return!0x1;}[_0x6e58('0xc2')](_0x16ae95){const _0x42ccad=this[_0x6e58('0x79')][_0x6e58('0x6c')][_0x6e58('0x8')](_0x6e58('0x112'))[_0x6e58('0x121')](_0x16ae95);if(!_0x42ccad)throw new _0x1efb49('track-changes-user-not-found',this);return _0x42ccad;}[_0x6e58('0x143')](_0x2ce5b3){const _0x2cffee=this['editor'][_0x6e58('0x6c')][_0x6e58('0x8')](_0x6e58('0x112')),_0x4d1bf2=_0x5c0e66(_0x6e58('0x165')+_0x2ce5b3),_0x23cdbc=_0x2cffee[_0x6e58('0x121')](_0x4d1bf2);return _0x23cdbc||_0x2cffee[_0x6e58('0x35')]({'id':_0x4d1bf2,'name':_0x2ce5b3});}['_createSuggestion'](_0x3a6d77,_0x4c6a2c,_0x330c47,_0x20b03a,_0x4c9278){const _0x33c86e=this[_0x6e58('0xc2')](_0x20b03a),_0x473611=this[_0x6e58('0x25')][_0x6e58('0xf4')](_0x3a6d77,_0x4c6a2c,_0x330c47,_0x33c86e,_0x4c9278,_0x310242=>this['_updateSuggestionData'](_0x330c47,{'attributes':_0x310242}));return this[_0x6e58('0xad')](_0x473611,_0x6e58('0xba'),()=>{this[_0x6e58('0x117')](_0x330c47,{'state':_0x6e58('0x34')});},{'priority':_0x6e58('0xa5')}),this[_0x6e58('0xad')](_0x473611,_0x6e58('0x159'),()=>{this[_0x6e58('0x117')](_0x330c47,{'state':_0x6e58('0x11f')});},{'priority':_0x6e58('0xa5')}),this[_0x6e58('0x4c')][_0x6e58('0x16a')](_0x330c47,_0x473611),this[_0x6e58('0x43')][_0x6e58('0x16a')](_0x473611,_0x6e58('0xaa')),_0x473611;}['_splitMarkerName'](_0x4cd565){const _0x35bb7a=_0x4cd565[_0x6e58('0xe9')](':');return{'group':_0x35bb7a[0x0],'type':_0x35bb7a[0x1],'subType':_0x35bb7a[_0x6e58('0x128')]>=0x5?_0x35bb7a[0x2]:null,'id':_0x35bb7a[_0x6e58('0x128')]<0x5?_0x35bb7a[0x2]:_0x35bb7a[0x3],'authorId':_0x35bb7a['length']<0x5?_0x35bb7a[0x3]:_0x35bb7a[0x4],'markerCount':0x6==_0x35bb7a[_0x6e58('0x128')]?_0x35bb7a[0x5]:null};}[_0x6e58('0xd6')](_0x514860,_0x5a632e,_0x462ec5){const _0xe5c570=_0x514860[_0x6e58('0x90')](),_0x437359=_0xe5c570['start'],_0x439d70=_0xe5c570[_0x6e58('0x19')];this[_0x6e58('0xee')](_0x514860,this[_0x6e58('0xdd')]['createRange'](_0x437359,_0x5a632e));const _0x242571=_0x1b9186(),_0xebec9b=_0x514860[_0x6e58('0x13d')]['id'],_0x41e7b0=_0x514860['type']+(_0x514860[_0x6e58('0x10f')]?':'+_0x514860['subType']:'');this['_setSuggestionData']({'id':_0x242571,'type':_0x41e7b0,'createdAt':new Date(),'authorId':_0xebec9b,'originalSuggestionId':_0x514860['id'],'attributes':_0x514860[_0x6e58('0x17c')],'data':_0x514860[_0x6e58('0x7d')]});const _0x5b28d1=Pt(_0x514860);(_0x6e58('0x135')==_0x514860[_0x6e58('0xe5')]||_0x5b28d1&&this[_0x6e58('0x14c')](_0x5b28d1))&&(_0x462ec5=this[_0x6e58('0xdd')][_0x6e58('0x95')](_0x462ec5[_0x6e58('0x48')])),this['_addSuggestionMarker'](_0x41e7b0,_0x242571,_0xebec9b,this[_0x6e58('0xdd')][_0x6e58('0x12f')](_0x462ec5,_0x439d70));}['_findSuggestions'](_0x414777,_0x1ed280=null){const _0x948b55=[],_0x40b4d8=this['editor']['plugins'][_0x6e58('0x8')](_0x6e58('0x112'))['me'];Array[_0x6e58('0xc4')](_0x414777)||(_0x414777=[_0x414777]);for(const _0xd8999f of this[_0x6e58('0x168')]()){if(!_0xd8999f[_0x6e58('0x89')])continue;if(_0x1ed280&&_0xd8999f[_0x6e58('0xe5')]!=_0x1ed280)continue;let _0x3a48b4=!0x1;for(const _0x3e10c0 of _0xd8999f[_0x6e58('0x76')]()){for(const _0x1e3835 of _0x414777){const _0x5be6f0=_0x1e3835[_0x6e58('0x111')][_0x6e58('0x29')](_0x3e10c0[_0x6e58('0x19')])||_0x1e3835[_0x6e58('0x19')][_0x6e58('0x29')](_0x3e10c0[_0x6e58('0x111')]);if(_0x5be6f0||_0x1e3835[_0x6e58('0xd8')](_0x3e10c0)){const _0x4f6948=_0x1e3835['containsRange'](_0x3e10c0)&&Bt(this[_0x6e58('0xdd')][_0x6e58('0x148')],_0x3e10c0['start'],_0x1e3835),_0x4e0b37=_0x3e10c0[_0x6e58('0x172')](_0x1e3835)&&Bt(this[_0x6e58('0xdd')][_0x6e58('0x148')],_0x1e3835[_0x6e58('0x111')],_0x3e10c0);_0x948b55[_0x6e58('0x7e')]({'suggestion':_0xd8999f,'meta':{'isOwn':_0x40b4d8==_0xd8999f['author'],'isNextTo':_0x5be6f0,'isInsideObject':_0x4f6948,'containsRangeInObject':_0x4e0b37}}),_0x3a48b4=!0x0;break;}}if(_0x3a48b4)break;}}return _0x948b55;}[_0x6e58('0x7')](_0x1f4819,_0x4abdc6,_0x11c740,_0x36878d,_0x4066b0){this[_0x6e58('0xdd')][_0x6e58('0x15e')](_0x1b643b=>{let _0x5b26fc=_0x6e58('0x150')+_0x1f4819+':'+_0x4abdc6+':'+_0x11c740;_0x4066b0&&(_0x5b26fc=_0x5b26fc+':'+_0x4066b0),_0x1b643b[_0x6e58('0x16d')](_0x5b26fc,{'range':_0x36878d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x229e6d){const _0xbd0667=_0x229e6d[_0x6e58('0x10d')],_0x36b0a2=_0x229e6d[_0x6e58('0x14')];_0x229e6d[_0x6e58('0x10d')]=null,_0x229e6d[_0x6e58('0x14')]=null,null!=_0xbd0667&&(_0xbd0667['next']=_0x36b0a2),null!=_0x36b0a2&&(_0x36b0a2['previous']=_0xbd0667),'ready'==this[_0x6e58('0x43')][_0x6e58('0x8')](_0x229e6d)&&(this[_0x6e58('0x43')]['set'](_0x229e6d,_0x6e58('0x62')),this[_0x6e58('0xd3')](_0x6e58('0x59'),_0x229e6d,_0xbd0667,_0x36b0a2));}['_setSuggestionData'](_0x1c023e){const _0x4db201=_0x1c023e['id'],_0x504d22=this['addSuggestionData'](_0x1c023e);if(this[_0x6e58('0x6a')]&&this[_0x6e58('0x6a')][_0x6e58('0x2d')]){const _0x3b268d=this[_0x6e58('0x79')][_0x6e58('0x6c')][_0x6e58('0x8')](_0x6e58('0x119')),_0x640d54=_0x504d22[_0x6e58('0x3b')],_0x56daa1=_0x504d22[_0x6e58('0x10f')]?_0x504d22['type']+':'+_0x504d22[_0x6e58('0x10f')]:_0x504d22['type'],_0x377ba2=this[_0x6e58('0x79')][_0x6e58('0xfd')],_0x8fdf7f=_0x3b268d['add'](_0x92bc98(_0x377ba2,_0x6e58('0xb3'))),_0x98a947={'id':_0x4db201,'type':_0x56daa1,'hasComments':_0x640d54,'data':_0x1c023e[_0x6e58('0x7d')]||null,'originalSuggestionId':_0x1c023e['originalSuggestionId']||null,'attributes':_0x504d22[_0x6e58('0x17c')]};this[_0x6e58('0x6a')]['addSuggestion'](_0x98a947)[_0x6e58('0x114')](_0x479704=>{_0x504d22[_0x6e58('0xf9')]=!0x0,_0x3b268d[_0x6e58('0x77')](_0x8fdf7f),_0x479704&&_0x479704['createdAt']&&(this[_0x6e58('0x4c')]['get'](_0x4db201)[_0x6e58('0xda')]=_0x479704[_0x6e58('0xda')]);})[_0x6e58('0x50')](_0x6ef57e=>{throw _0x33da38('error-saving-suggestion-data-suggestion-discarded'),this[_0x6e58('0x79')][_0x6e58('0xe3')][_0x6e58('0x8b')]({'isUndoable':!0x1},()=>{_0x504d22[_0x6e58('0x159')]();}),_0x504d22[_0x6e58('0xae')](),this[_0x6e58('0x4c')][_0x6e58('0x3a')](_0x504d22['id']),this[_0x6e58('0x43')]['delete'](_0x504d22),_0x6ef57e;});}return _0x504d22;}[_0x6e58('0x14c')](_0x9290a6){return this['_blockAttributeKeys']['has'](_0x9290a6);}[_0x6e58('0x117')](_0x160def,_0x1a508d){const _0x5e3035=this[_0x6e58('0x79')][_0x6e58('0x6c')][_0x6e58('0x8')](_0x6e58('0x119')),_0x4978ca=this['getSuggestion'](_0x160def);if(this[_0x6e58('0x6a')]&&this['_adapter'][_0x6e58('0x99')]){if(_0x4978ca[_0x6e58('0xf9')]){const _0x3da4f3=_0x5e3035[_0x6e58('0x46')](_0x92bc98(this[_0x6e58('0x79')]['locale'],'PENDING_ACTION_SUGGESTION'));this[_0x6e58('0x6a')][_0x6e58('0x99')](_0x160def,_0x1a508d)['then'](()=>{_0x5e3035[_0x6e58('0x77')](_0x3da4f3);});}else _0x4978ca['on'](_0x6e58('0x0'),()=>{this[_0x6e58('0x117')](_0x160def,_0x1a508d);});}}[_0x6e58('0x14a')](_0x2df67f){if(!this[_0x6e58('0x6a')]||!this['_adapter'][_0x6e58('0x82')])throw new _0x1efb49(_0x6e58('0xfb'),this);return this[_0x6e58('0x6a')][_0x6e58('0x82')](_0x2df67f);}[_0x6e58('0xc')](_0x10fe08){const {id:_0x108e9f,type:_0x5a534d,subType:_0x2ae5b4,authorId:_0x463833}=this[_0x6e58('0x63')](_0x10fe08),_0x34c1af=this[_0x6e58('0x4c')][_0x6e58('0x8')](_0x108e9f)||this[_0x6e58('0x16')](_0x5a534d,_0x2ae5b4,_0x108e9f,_0x463833,{});switch(this['_checkSuggestionCorrectness'](_0x34c1af,_0x5a534d,_0x2ae5b4,_0x463833),this['_suggestionState'][_0x6e58('0x8')](_0x34c1af)){case'notReady':this[_0x6e58('0x14a')](_0x108e9f)['then'](_0x4ed43c=>{let _0x2008dd=Promise[_0x6e58('0x51')]();_0x4ed43c[_0x6e58('0x3b')]&&(_0x2008dd=this[_0x6e58('0x1e')][_0x6e58('0x149')]({'channelId':this[_0x6e58('0x79')][_0x6e58('0x12d')]['get'](_0x6e58('0xb6')),'threadId':_0x108e9f})),_0x2008dd['then'](()=>{this[_0x6e58('0x2c')](_0x4ed43c)[_0x6e58('0xf9')]=!0x0;});}),this[_0x6e58('0x43')][_0x6e58('0x16a')](_0x34c1af,_0x6e58('0x9a'));break;case _0x6e58('0x62'):this[_0x6e58('0x117')](_0x108e9f,{'state':_0x6e58('0xdb')});case'dataReady':this[_0x6e58('0x43')][_0x6e58('0x16a')](_0x34c1af,_0x6e58('0x3d')),this['fire'](_0x6e58('0x39'),_0x34c1af);break;case _0x6e58('0x3d'):this[_0x6e58('0xd3')](_0x6e58('0x4f'),_0x34c1af);}return _0x34c1af[_0x6e58('0x96')](_0x10fe08),_0x34c1af;}['_refreshSuggestionsChain'](_0x5d455a){const _0x4df9c2=Array[_0x6e58('0x74')](_0x5d455a),_0x5e0257=_0x4df9c2['filter'](_0x213e81=>_0x6e58('0x5e')==_0x213e81[_0x6e58('0xe5')]);this[_0x6e58('0x15a')](_0x5e0257);const _0x189055=_0x4df9c2[_0x6e58('0x33')](_0x6ab9b6=>!_0x6ab9b6['isMultiRange']&&'attribute'!=_0x6ab9b6[_0x6e58('0xe5')]),_0x3d9487=this[_0x6e58('0x168')]({'skipNotAttached':!0x0})['filter'](_0x57a299=>!_0x57a299[_0x6e58('0x7b')]&&_0x6e58('0x5e')!=_0x57a299[_0x6e58('0xe5')]),_0x123e78=_0x3d9487[_0x6e58('0x33')](_0x507166=>!_0x5d455a[_0x6e58('0xd9')](_0x507166)),_0x5e8c1c=new Map(_0x3d9487[_0x6e58('0x9d')](_0x114987=>[_0x114987,this[_0x6e58('0x25')][_0x6e58('0x146')](_0x114987['type'],_0x114987[_0x6e58('0x10f')],'chain')])),_0x43b787=new Map(_0x3d9487[_0x6e58('0x9d')](_0x2c8a80=>[_0x2c8a80,_0x2c8a80['getFirstRange']()])),_0x275245=new Set(),_0x1f5bf2=new Set();for(let _0xc93fa5=0x0;_0xc93fa5<_0x189055[_0x6e58('0x128')];_0xc93fa5++)_0x17e0ef(_0x189055[_0xc93fa5],_0x189055,_0xc93fa5+0x1);for(let _0x1c5393=0x0;_0x1c5393<_0x189055[_0x6e58('0x128')];_0x1c5393++)_0x17e0ef(_0x189055[_0x1c5393],_0x123e78,0x0);const _0x201429=new Set();for(let _0x1ae48b=0x0;_0x1ae48b<_0x189055['length'];_0x1ae48b++){const _0xabd3b6=_0x189055[_0x1ae48b];!_0x1f5bf2[_0x6e58('0xd9')](_0xabd3b6)&&_0xabd3b6[_0x6e58('0x10d')]&&(_0x201429[_0x6e58('0x46')](_0xabd3b6[_0x6e58('0x10d')]),_0xabd3b6['previous'][_0x6e58('0x14')]===_0xabd3b6&&(_0xabd3b6[_0x6e58('0x10d')][_0x6e58('0x14')]=null),_0xabd3b6[_0x6e58('0x10d')]=null),!_0x275245[_0x6e58('0xd9')](_0xabd3b6)&&_0xabd3b6[_0x6e58('0x14')]&&(_0x201429[_0x6e58('0x46')](_0xabd3b6[_0x6e58('0x14')]),_0xabd3b6[_0x6e58('0x14')][_0x6e58('0x10d')]===_0xabd3b6&&(_0xabd3b6['next'][_0x6e58('0x10d')]=null),_0xabd3b6[_0x6e58('0x14')]=null);}function _0x17e0ef(_0x195261,_0x19e871,_0x46d130){for(let _0x2cf5ac=_0x46d130;_0x2cf5ac<_0x19e871[_0x6e58('0x128')];_0x2cf5ac++){const _0x19ed1b=_0x1f42bd(_0x195261,_0x19e871[_0x2cf5ac]);_0x19ed1b&&(_0x19ed1b[0x0][_0x6e58('0x14')]=_0x19ed1b[0x1],_0x19ed1b[0x1][_0x6e58('0x10d')]=_0x19ed1b[0x0],_0x275245[_0x6e58('0x46')](_0x19ed1b[0x0]),_0x1f5bf2[_0x6e58('0x46')](_0x19ed1b[0x1]));}}function _0x1f42bd(_0x13e4a8,_0x5cad14){if(_0x13e4a8['author']['id']!==_0x5cad14[_0x6e58('0x13b')]['id'])return null;const _0x2dcc94=_0x5e8c1c[_0x6e58('0x8')](_0x13e4a8)(_0x13e4a8,_0x5cad14,_0x43b787[_0x6e58('0x8')](_0x13e4a8),_0x43b787['get'](_0x5cad14));if(!_0x2dcc94)return null;return _0x5e8c1c[_0x6e58('0x8')](_0x5cad14)(_0x13e4a8,_0x5cad14,_0x43b787[_0x6e58('0x8')](_0x13e4a8),_0x43b787[_0x6e58('0x8')](_0x5cad14))?_0x2dcc94[0x1]['commentThread']&&_0x2dcc94[0x1][_0x6e58('0x66')][_0x6e58('0x128')]?null:_0x2dcc94:null;}_0x201429[_0x6e58('0x14b')]&&this[_0x6e58('0x9f')](_0x201429);}[_0x6e58('0x15a')](_0x300181){if(0x0==_0x300181[_0x6e58('0x128')])return;const _0x2f160e=this[_0x6e58('0x168')]({'skipNotAttached':!0x0})['filter'](_0x596a0f=>'attribute'==_0x596a0f[_0x6e58('0xe5')]&&_0x596a0f[_0x6e58('0x20')]),_0x3a1c20=[],_0x1789b5=new Map();for(const _0x3b05d6 of _0x2f160e){const _0x41d7fe=_0x5c0e66(_0x3b05d6[_0x6e58('0x17c')]);_0x1789b5['has'](_0x41d7fe)||(_0x1789b5[_0x6e58('0x16a')](_0x41d7fe,_0x3a1c20[_0x6e58('0x128')]),_0x3a1c20['push']([]));const _0x329341=_0x1789b5['get'](_0x41d7fe);_0x3a1c20[_0x329341][_0x6e58('0x7e')](_0x3b05d6);}!function(){_0x3a1c20[_0x6e58('0x69')]((_0x5d003,_0x4ea3ae)=>{const _0x57e926=_0x5d003[0x0][_0x6e58('0xda')],_0x2a50b9=_0x4ea3ae[0x0][_0x6e58('0xda')];return _0x57e926==_0x2a50b9?_0x5d003[0x0][_0x6e58('0x17c')][_0x6e58('0xfa')]<_0x4ea3ae[0x0][_0x6e58('0x17c')][_0x6e58('0xfa')]?-0x1:0x1:_0x57e926<_0x2a50b9?-0x1:0x1;});for(const _0x459cef of _0x3a1c20)_0x459cef[_0x6e58('0x69')]((_0x33c92e,_0xbd4740)=>_0x33c92e['id']<_0xbd4740['id']?-0x1:0x1);}();for(let _0x258226=0x0;_0x258226<_0x3a1c20[_0x6e58('0x128')];_0x258226++){if(0x0==_0x3a1c20[_0x258226]['length'])continue;const _0x1c29fc=[];for(let _0x4b1c67=_0x258226+0x1;_0x4b1c67<_0x3a1c20[_0x6e58('0x128')];_0x4b1c67++)0x0!=_0x3a1c20[_0x4b1c67][_0x6e58('0x128')]&&_0x5b9422(_0x3a1c20[_0x258226],_0x3a1c20[_0x4b1c67])&&_0x1c29fc[_0x6e58('0x7e')](_0x4b1c67);for(const _0x2a17a5 of _0x1c29fc)_0x3a1c20[_0x258226]=_0x3a1c20[_0x258226]['concat'](_0x3a1c20[_0x2a17a5]),_0x3a1c20[_0x2a17a5]=[];}for(const _0x2e41ce of _0x3a1c20)for(let _0xa2f568=0x0;_0xa2f568<_0x2e41ce[_0x6e58('0x128')];_0xa2f568++)_0x2e41ce[_0xa2f568][_0x6e58('0x14')]=_0x2e41ce[_0xa2f568+0x1]||null;for(const _0x3d2a6d of _0x3a1c20)for(let _0x41f66c=0x0;_0x41f66c<_0x3d2a6d[_0x6e58('0x128')];_0x41f66c++)_0x3d2a6d[_0x41f66c]['previous']=_0x3d2a6d[_0x41f66c-0x1]||null;function _0x5b9422(_0x1e9f78,_0x5122ba){if(_0x1e9f78[0x0]['author']!==_0x5122ba[0x0][_0x6e58('0x13b')])return!0x1;if(!function(_0x43f491,_0x36f2c5){if(!_0x43f491[_0x6e58('0x3b')]&&!_0x36f2c5[_0x6e58('0x3b')])return!0x0;if(_0x43f491[_0x6e58('0x3b')]&&_0x36f2c5[_0x6e58('0x3b')])return!0x1;if(_0x43f491['hasComments']&&_0x36f2c5[_0x6e58('0xda')]<_0x43f491['commentThread'][_0x6e58('0x68')][_0x6e58('0x8')](0x0)[_0x6e58('0xda')])return!0x0;if(_0x36f2c5['hasComments']&&_0x43f491[_0x6e58('0xda')]<_0x36f2c5[_0x6e58('0x66')][_0x6e58('0x68')][_0x6e58('0x8')](0x0)[_0x6e58('0xda')])return!0x0;return!0x1;}(_0x1e9f78[0x0],_0x5122ba[0x0]))return!0x1;const _0xb40cdf=_0x1a4270(_0x1e9f78[0x0]['attributes'],'groupId'),_0x59c609=_0x1a4270(_0x5122ba[0x0][_0x6e58('0x17c')],_0x6e58('0xfa'));if(!_0x18815d(_0xb40cdf,_0x59c609))return!0x1;return!!_0x1e9f78[_0x6e58('0x120')](_0x304a97=>_0x5122ba[_0x6e58('0x178')](_0x57275a=>_0x304a97['getFirstRange']()[_0x6e58('0x29')](_0x57275a[_0x6e58('0x90')]())))&&_0x5122ba[_0x6e58('0x120')](_0xc9909=>_0x1e9f78[_0x6e58('0x178')](_0x5afc6f=>_0xc9909[_0x6e58('0x90')]()['isEqual'](_0x5afc6f[_0x6e58('0x90')]())));}}[_0x6e58('0xb8')](_0x51aeac){const _0x554f86=Array[_0x6e58('0x74')](_0x51aeac),_0x58fcc4=this[_0x6e58('0x168')]({'skipNotAttached':!0x0}),_0x2587da=_0x58fcc4[_0x6e58('0x33')](_0x5740ca=>!_0x51aeac[_0x6e58('0xd9')](_0x5740ca)),_0x44b7a2=new Map(_0x554f86[_0x6e58('0x9d')](_0x302bd2=>[_0x302bd2,this[_0x6e58('0x25')][_0x6e58('0x146')](_0x302bd2['type'],_0x302bd2[_0x6e58('0x10f')],_0x6e58('0xbb'))])),_0x235675=new Map(_0x58fcc4[_0x6e58('0x9d')](_0x1505a6=>[_0x1505a6,_0x1505a6['getRanges']()]));for(let _0x4cb49a=0x0;_0x4cb49a<_0x554f86[_0x6e58('0x128')];_0x4cb49a++){if(_0x56effd(this,_0x554f86[_0x4cb49a],_0x554f86,_0x4cb49a+0x1))return!0x0;}for(let _0x585324=0x0;_0x585324<_0x554f86[_0x6e58('0x128')];_0x585324++){if(_0x56effd(this,_0x554f86[_0x585324],_0x2587da,0x0))return!0x0;}return!0x1;function _0x56effd(_0x103687,_0x2f1c8b,_0x414455,_0x461d8f){for(let _0x386e9a=_0x461d8f;_0x386e9a<_0x414455[_0x6e58('0x128')];_0x386e9a++){const _0x4f7952=_0x414455[_0x386e9a];if(_0x4f7952[_0x6e58('0xe5')]!==_0x2f1c8b[_0x6e58('0xe5')]||_0x4f7952['author']['id']!==_0x2f1c8b['author']['id']||_0x4f7952[_0x6e58('0x10f')]!==_0x2f1c8b['subType'])continue;if(!Vt(_0x2f1c8b,_0x4f7952))continue;if(_0x6e58('0x5e')==_0x2f1c8b[_0x6e58('0xe5')]&&_0x2f1c8b[_0x6e58('0x7d')][_0x6e58('0xc5')]!=_0x4f7952['data']['oldValue'])continue;if(_0x6e58('0x5e')==_0x2f1c8b[_0x6e58('0xe5')]&&_0x103687[_0x6e58('0x14c')](_0x2f1c8b[_0x6e58('0x7d')][_0x6e58('0x171')]))continue;if(_0x6e58('0x135')==_0x2f1c8b[_0x6e58('0xe5')]){const _0x22ba8d=_0x103687[_0x6e58('0x79')][_0x6e58('0xe3')],_0xcf7515=_0x2f1c8b['getContainedElement']();if(_0xcf7515&&(_0x22ba8d['schema'][_0x6e58('0x5b')](_0xcf7515)||_0x22ba8d[_0x6e58('0x148')][_0x6e58('0x108')](_0xcf7515)))continue;}const _0xf09673=_0x44b7a2[_0x6e58('0x8')](_0x2f1c8b),_0x23f9e4=_0x235675['get'](_0x2f1c8b),_0x49e933=_0x235675[_0x6e58('0x8')](_0x4f7952),_0x35faf6=_0x2f1c8b[_0x6e58('0x66')]&&_0x2f1c8b[_0x6e58('0x66')][_0x6e58('0x128')],_0x3742ec=_0x4f7952['commentThread']&&_0x4f7952[_0x6e58('0x66')][_0x6e58('0x128')];if(!_0x35faf6&&_0xf09673(_0x49e933,_0x23f9e4))return _0x103687[_0x6e58('0x152')](_0x4f7952,_0x2f1c8b),_0x235675['delete'](_0x2f1c8b),!0x0;if(!_0x3742ec&&_0xf09673(_0x23f9e4,_0x49e933))return _0x103687[_0x6e58('0x152')](_0x2f1c8b,_0x4f7952),_0x235675[_0x6e58('0x3a')](_0x4f7952),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1e9260,_0x41e262){if(_0x1e9260[_0x6e58('0x7b')])for(const _0x235ee of _0x41e262[_0x6e58('0x76')]())_0x1e9260[_0x6e58('0x87')](_0x235ee);else{const _0x107845=_0x41e262[_0x6e58('0x90')]()['end'];this[_0x6e58('0xee')](_0x1e9260,this['_model'][_0x6e58('0x12f')](_0x1e9260[_0x6e58('0x90')]()[_0x6e58('0x111')],_0x107845));}_0x41e262['removeMarkers']();}[_0x6e58('0xa9')](_0xcecb52,_0x4f0657){const _0x4aa4ac=_0xcecb52[_0x6e58('0x11e')](_0x6e58('0x55'))||_0xcecb52[_0x6e58('0x11e')](_0x6e58('0x5e'))?_0x6e58('0x30'):_0xcecb52[_0x6e58('0x92')]();return _0x92bc98(this[_0x6e58('0x79')]['locale'],_0x4f0657+'_'+_0x4aa4ac+'_SUGGESTION_ANNOUNCEMENT');}[_0x6e58('0x16c')](){const _0x3c5570=this['editor'];_0x2a67d9(this[_0x6e58('0xdd')],({left:_0x549031,entered:_0x456059})=>{const _0xae3434=[];for(const _0x5cb4f4 of _0x549031){const {group:_0x45b904,type:_0x148288}=this['_splitMarkerName'](_0x5cb4f4['name']);if(_0x6e58('0xd1')===_0x45b904){_0xae3434[_0x6e58('0x7e')](this[_0x6e58('0xa9')](_0x148288,_0x6e58('0x49')));break;}}for(const _0x5cf60d of _0x456059){const {group:_0x426541,type:_0x656253}=this[_0x6e58('0x63')](_0x5cf60d[_0x6e58('0x6e')]);if('suggestion'===_0x426541){_0xae3434[_0x6e58('0x7e')](this['_getMarkerAnnouncementText'](_0x656253,'ENTER'));break;}}_0xae3434[_0x6e58('0x128')]&&_0x3c5570['ui'][_0x6e58('0xa0')][_0x6e58('0x113')](_0x6e58('0x4e'),_0xae3434['join']('\x20'));});}[_0x6e58('0xe7')](_0x39eacb){if(null!==this[_0x6e58('0xcb')])return!0x1;const _0x4326b3=this[_0x6e58('0x79')],_0x34dbb9=_0x4326b3[_0x6e58('0xe3')][_0x6e58('0x12e')]['differ'][_0x6e58('0xb2')]();if(0x0==_0x34dbb9[_0x6e58('0x128')])return!0x1;const _0x815d13=[],_0x276dfa=_0x34dbb9[_0x6e58('0x33')](_0x5e0e7a=>_0x6e58('0x5e')==_0x5e0e7a[_0x6e58('0xe5')]),_0x29d1f8=_0x34dbb9['filter'](_0xfecfb2=>_0x6e58('0x4d')==_0xfecfb2[_0x6e58('0xe5')]&&'$text'!=_0xfecfb2[_0x6e58('0x6e')]),_0x3cc31a=_0x34dbb9['filter'](_0x53f8aa=>'remove'==_0x53f8aa[_0x6e58('0xe5')]&&_0x6e58('0x103')!=_0x53f8aa[_0x6e58('0x6e')]);for(const _0x627f8e of _0x276dfa)_0x815d13['push']({'key':_0x627f8e[_0x6e58('0x9')],'newValue':_0x627f8e[_0x6e58('0x13e')],'oldValue':_0x627f8e['attributeOldValue'],'range':_0x47ceb5(_0x627f8e[_0x6e58('0x65')])});for(const _0x27f126 of _0x29d1f8){const _0x1babde=_0x3cc31a[_0x6e58('0x14f')](_0x58b325=>_0x58b325[_0x6e58('0xc1')]['isEqual'](_0x27f126[_0x6e58('0xc1')]));_0x1babde&&_0x815d13[_0x6e58('0x7e')]({'key':_0x6e58('0x31'),'newValue':_0x27f126[_0x6e58('0x6e')],'oldValue':_0x1babde[_0x6e58('0x6e')],'range':_0x4326b3[_0x6e58('0xe3')][_0x6e58('0x42')](_0x27f126[_0x6e58('0xc1')][_0x6e58('0x122')])});}return 0x0!=_0x815d13[_0x6e58('0x128')]&&this['_reduceExistingSuggestions'](_0x39eacb,_0x815d13);function _0x47ceb5(_0x3cddde){return null==_0x3cddde[_0x6e58('0x19')][_0x6e58('0x173')]&&_0x3cddde['end'][_0x6e58('0x48')]==_0x3cddde[_0x6e58('0x111')]['nodeAfter']?Ut(_0x3cddde[_0x6e58('0x111')][_0x6e58('0x122')],_0x4326b3[_0x6e58('0xe3')]):_0x3cddde;}}['_processAttributeSuggestions'](_0x329a24){let _0x4fa9bc=!0x1;const _0x11c6fa=this['editor']['model'][_0x6e58('0x12e')][_0x6e58('0xd4')][_0x6e58('0x162')]()['filter'](_0x22b9b5=>_0x22b9b5[_0x6e58('0x7d')][_0x6e58('0x6f')]&&_0x22b9b5['name'][_0x6e58('0x11e')](_0x6e58('0x7c')));for(const _0x28ee0d of _0x11c6fa){const {subType:_0x47e765,id:_0x57cf4f}=this[_0x6e58('0x63')](_0x28ee0d['name']),_0x243200=_0x47e765[_0x6e58('0xe9')]('|')[0x0];for(const _0x46a104 of this[_0x6e58('0x168')]({'skipNotAttached':!0x0}))_0x46a104['id']!=_0x57cf4f&&'attribute'==_0x46a104[_0x6e58('0xe5')]&&_0x46a104['data']&&_0x46a104[_0x6e58('0x7d')][_0x6e58('0x171')]==_0x243200&&_0x46a104[_0x6e58('0x90')]()[_0x6e58('0x54')](_0x28ee0d[_0x6e58('0x7d')][_0x6e58('0x6f')])&&(this[_0x6e58('0x28')](_0x46a104,_0x28ee0d[_0x6e58('0x7d')][_0x6e58('0x6f')],_0x329a24),_0x4fa9bc=!0x0);}return _0x4fa9bc;}[_0x6e58('0xf1')](_0x50e790){if(null!==this[_0x6e58('0xcb')])return void _0x50e790();const _0x91136e=this[_0x6e58('0x79')];this[_0x6e58('0xcb')]=_0x91136e[_0x6e58('0xe3')][_0x6e58('0x12e')]['version'],_0x50e790();const _0xd95353=new Map();for(const _0x3b8516 of _0x91136e['model']['document']['history'][_0x6e58('0xb4')](this[_0x6e58('0xcb')]))if([_0x6e58('0xe8'),'addAttribute',_0x6e58('0x23'),_0x6e58('0x22')][_0x6e58('0x94')](_0x3b8516[_0x6e58('0xe5')])){const _0x485ff1=_0x3b8516[_0x6e58('0x124')],_0x25610d=_0xd95353[_0x6e58('0x8')](_0x485ff1)||[];_0x25610d['push'](_0x3b8516),_0xd95353[_0x6e58('0x16a')](_0x485ff1,_0x25610d);}this[_0x6e58('0xcb')]=null;for(const [_0x592e03,_0x3289f8]of _0xd95353){const _0x25c28a=_0x1b9186();_0x91136e[_0x6e58('0xe3')][_0x6e58('0x8b')](_0x592e03,_0x2746c1=>{const _0x521eb3=[];for(const _0x2d9258 of _0x3289f8){let _0x5f2e79,_0x59b4ec,_0x55f5e8,_0xfd4e07;if(_0x6e58('0xe8')==_0x2d9258[_0x6e58('0xe5')]){const _0x45cb93=_0x2d9258;_0x5f2e79=Ut(_0x45cb93[_0x6e58('0xc1')]['nodeAfter'],_0x91136e['model']),_0x59b4ec='$elementName',_0x55f5e8=_0x45cb93[_0x6e58('0xf6')],_0xfd4e07=_0x45cb93['oldName'];}else{const _0x42498d=_0x2d9258,_0x33a86d=this[_0x6e58('0x14c')](_0x42498d[_0x6e58('0x171')]),_0x25a8b7=this[_0x6e58('0x12c')]['has'](_0x42498d[_0x6e58('0x171')]);if(!_0x33a86d&&!_0x25a8b7)continue;_0x5f2e79=_0x33a86d?Ut(_0x42498d['range'][_0x6e58('0x111')][_0x6e58('0x122')],_0x91136e[_0x6e58('0xe3')]):_0x42498d[_0x6e58('0x65')],_0x59b4ec=_0x42498d['key'],_0x55f5e8=_0x6e58('0x23')==_0x2d9258[_0x6e58('0xe5')]?void 0x0:_0x42498d[_0x6e58('0x14d')],_0xfd4e07=_0x42498d[_0x6e58('0xc5')];}this[_0x6e58('0x38')](_0x5f2e79,_0x59b4ec,_0xfd4e07,_0x55f5e8,{'groupId':_0x25c28a}),_0x521eb3[_0x6e58('0x7e')]({'range':_0x5f2e79,'key':_0x59b4ec,'newValue':_0x55f5e8,'oldValue':_0xfd4e07});}this[_0x6e58('0x6')](_0x2746c1,_0x521eb3);});}}[_0x6e58('0x6')](_0x2f0c9d,_0x344c6e){if(0x0==_0x344c6e['length'])return!0x1;let _0x25a3dc=!0x1;for(const _0x31f55c of _0x344c6e){const _0x97e172=this[_0x6e58('0x45')](_0x31f55c[_0x6e58('0x65')],_0x6e58('0x5e'))[_0x6e58('0x33')](_0x3775c6=>!_0x3775c6['meta']['isNextTo'])[_0x6e58('0x9d')](_0x228bd6=>_0x228bd6[_0x6e58('0xd1')]),_0xe30123=_0x5c0e66({'newValue':_0x31f55c[_0x6e58('0x14d')]});_0x97e172['filter'](_0xa65db3=>{const [_0x2abd9d,_0x2ebb6c]=_0xa65db3[_0x6e58('0x10f')][_0x6e58('0xe9')]('|');return _0x2abd9d==_0x31f55c[_0x6e58('0x171')]&&_0x2ebb6c!=_0xe30123;})[_0x6e58('0x157')](_0x2065bc=>{this['_reduceSuggestionAttributeRange'](_0x2065bc,_0x31f55c[_0x6e58('0x65')],_0x2f0c9d),_0x25a3dc=!0x0;});}return _0x25a3dc;}['_reduceSuggestionAttributeRange'](_0x2493b0,_0x162982,_0x151aa6){const _0x2c98a5=_0x2493b0[_0x6e58('0x90')]()[_0x6e58('0x11b')](_0x162982);0x0!==_0x2c98a5['length']?0x1!==_0x2c98a5[_0x6e58('0x128')]?this[_0x6e58('0xd6')](_0x2493b0,_0x162982[_0x6e58('0x111')],_0x162982['end']):this['_setSuggestionRange'](_0x2493b0,_0x2c98a5[0x0]):_0x151aa6[_0x6e58('0x138')](_0x2493b0['getFirstMarker']());}}class $t{constructor(_0x2ffc55){this['_editor']=_0x2ffc55,this[_0x6e58('0xdd')]=_0x2ffc55[_0x6e58('0xe3')],this[_0x6e58('0x17b')]=new Map(),this[_0x6e58('0xb0')]=new Map(),this[_0x6e58('0xec')]();}[_0x6e58('0xf4')](_0x13c38a,_0xf3e49f,_0x165a34,_0xdedcad,_0x2c7c55,_0x314a70){return new _0x12d829(this[_0x6e58('0xdd')],{'type':_0x13c38a,'subType':_0xf3e49f,'id':_0x165a34,'author':_0xdedcad,'creator':_0xdedcad,'attributes':_0x2c7c55,'onAttributesChange':_0x314a70,'onAccept':(..._0x3b1359)=>this[_0x6e58('0x146')](_0x13c38a,_0xf3e49f,_0x6e58('0xba'))(..._0x3b1359),'onDiscard':(..._0x45b31a)=>this[_0x6e58('0x146')](_0x13c38a,_0xf3e49f,_0x6e58('0x159'))(..._0x45b31a)});}['registerCustomCallback'](_0x21ef2c,_0xf76f7b,_0x1d02d9,_0x5944ad){const _0x1a19d9=_0x21ef2c+':'+_0xf76f7b+':'+_0x1d02d9;this[_0x6e58('0x17b')][_0x6e58('0x16a')](_0x1a19d9,_0x5944ad);}[_0x6e58('0x146')](_0x46b407,_0x5ef665,_0x390865){const _0x2ea0c9=_0x46b407+':'+_0x5ef665+':'+_0x390865;return this[_0x6e58('0x17b')][_0x6e58('0x8')](_0x2ea0c9)||this['_defaultCallbacks'][_0x6e58('0x8')](_0x46b407+':'+_0x390865);}[_0x6e58('0xec')](){const _0x100ff1=()=>!0x1,_0x5a6155=_0x97a334=>{_0x97a334[_0x6e58('0x69')]((_0x247110,_0x1fed25)=>_0x247110['start'][_0x6e58('0x15b')](_0x1fed25[_0x6e58('0x111')])?0x1:-0x1),this[_0x6e58('0xdd')][_0x6e58('0x15e')](_0x51014d=>{for(const _0x13a267 of _0x97a334){let _0x5a05ca;_0x5a05ca=_0x13a267[_0x6e58('0x19')][_0x6e58('0x151')]&&_0x13a267[_0x6e58('0x19')][_0x6e58('0x48')]==_0x13a267[_0x6e58('0x111')][_0x6e58('0x122')]?_0x51014d[_0x6e58('0x107')](_0x13a267[_0x6e58('0x111')][_0x6e58('0x122')],'on'):_0x51014d[_0x6e58('0x107')](_0x13a267),this[_0x6e58('0xdd')][_0x6e58('0x106')](_0x5a05ca,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3c4c27=(_0x4d442d,_0x195200)=>{_0x195200&&this[_0x6e58('0xdd')]['change'](_0xcf79c0=>{const {commandName:_0x4a83be,commandParams:_0x1e15e9=[]}=_0x195200,_0x525b5a=_0x4d442d[_0x6e58('0x9d')](_0x469dd1=>(Tt(_0x469dd1)&&(_0x469dd1=this[_0x6e58('0xdd')][_0x6e58('0x12f')](_0x469dd1['end'])),_0x469dd1))['filter'](_0x2b9707=>'$graveyard'!==_0x2b9707[_0x6e58('0xca')][_0x6e58('0x11c')]);if(_0x525b5a[_0x6e58('0x128')]<0x1)return;const _0x24aaf4=Array['from'](this[_0x6e58('0xdd')][_0x6e58('0x12e')][_0x6e58('0xf5')][_0x6e58('0x76')]())[_0x6e58('0x9d')](_0x5e249f=>_0x16f1c9['fromRange'](_0x5e249f));_0xcf79c0['setSelection'](_0x525b5a);for(const _0xbc6a24 of this['_editor']['commands'][_0x6e58('0x10b')]())_0xbc6a24[_0x6e58('0x105')]();_0x1e15e9[_0x6e58('0x7e')]({'forceDefaultExecution':!0x0}),this[_0x6e58('0x4a')][_0x6e58('0x154')](_0x4a83be,..._0x1e15e9);const _0x5d9a2b=_0x24aaf4[_0x6e58('0x33')](_0x29db95=>_0x6e58('0x27')!=_0x29db95['root'][_0x6e58('0x11c')]);_0x5d9a2b[_0x6e58('0x128')]>0x0&&_0xcf79c0[_0x6e58('0x44')](_0x5d9a2b);for(const _0x131f4a of _0x24aaf4)_0x131f4a[_0x6e58('0x140')]();});},_0x7a7899=(_0x32c875,_0x338a67)=>0x1==_0x32c875[_0x6e58('0x128')]&&0x1==_0x338a67['length']&&_0x32c875[0x0][_0x6e58('0x19')]['isEqual'](_0x338a67[0x0][_0x6e58('0x111')]),_0x4a7c2c=(_0x2c2d4,_0x5cbf8a,_0x30df79,_0xd36af4)=>Ot(_0x2c2d4,_0x5cbf8a,_0x30df79,_0xd36af4,this[_0x6e58('0xdd')])?[_0x2c2d4,_0x5cbf8a]:Ot(_0x5cbf8a,_0x2c2d4,_0xd36af4,_0x30df79,this['_model'])?[_0x5cbf8a,_0x2c2d4]:null;this[_0x6e58('0xb0')][_0x6e58('0x16a')](_0x6e58('0x97'),_0x100ff1),this[_0x6e58('0xb0')][_0x6e58('0x16a')]('insertion:discard',_0x5a6155),this[_0x6e58('0xb0')][_0x6e58('0x16a')](_0x6e58('0x130'),_0x7a7899),this[_0x6e58('0xb0')][_0x6e58('0x16a')](_0x6e58('0x2a'),_0x4a7c2c),this[_0x6e58('0xb0')]['set'](_0x6e58('0x61'),_0x5a6155),this[_0x6e58('0xb0')][_0x6e58('0x16a')](_0x6e58('0xcd'),_0x100ff1),this[_0x6e58('0xb0')]['set'](_0x6e58('0x147'),_0x7a7899),this[_0x6e58('0xb0')][_0x6e58('0x16a')](_0x6e58('0xb7'),_0x4a7c2c),this[_0x6e58('0xb0')]['set'](_0x6e58('0x1d'),_0x3c4c27),this[_0x6e58('0xb0')][_0x6e58('0x16a')]('formatInline:discard',_0x100ff1),this[_0x6e58('0xb0')]['set'](_0x6e58('0x156'),_0x7a7899),this[_0x6e58('0xb0')][_0x6e58('0x16a')](_0x6e58('0x177'),_0x100ff1),this['_defaultCallbacks'][_0x6e58('0x16a')](_0x6e58('0x175'),_0x3c4c27),this[_0x6e58('0xb0')]['set'](_0x6e58('0xa'),_0x100ff1),this[_0x6e58('0xb0')][_0x6e58('0x16a')](_0x6e58('0xa6'),_0x7a7899),this['_defaultCallbacks'][_0x6e58('0x16a')](_0x6e58('0x10e'),_0x100ff1),this[_0x6e58('0xb0')][_0x6e58('0x16a')](_0x6e58('0x164'),_0x100ff1),this[_0x6e58('0xb0')]['set']('attribute:discard',(_0x333c2e,_0x14225d)=>{if(!_0x14225d)return;const _0x4047bf=this[_0x6e58('0x4a')][_0x6e58('0x6c')][_0x6e58('0x8')](p);this[_0x6e58('0xdd')][_0x6e58('0x15e')](_0x28d6e1=>{if(_0x6e58('0x31')==_0x14225d['key'])for(const _0x97705e of _0x333c2e){const _0x40650b=_0x97705e[_0x6e58('0x111')][_0x6e58('0x122')],_0x3d0eeb=_0x14225d['oldValue'];_0x28d6e1[_0x6e58('0xe8')](_0x40650b,_0x3d0eeb);}else{if(_0x4047bf[_0x6e58('0x14c')](_0x14225d[_0x6e58('0x171')]))for(const _0x4340b2 of _0x333c2e)void 0x0!==_0x14225d[_0x6e58('0xc5')]?_0x28d6e1[_0x6e58('0x11')](_0x14225d['key'],_0x14225d['oldValue'],_0x4340b2[_0x6e58('0x111')][_0x6e58('0x122')]):_0x28d6e1[_0x6e58('0x23')](_0x14225d[_0x6e58('0x171')],_0x4340b2[_0x6e58('0x111')]['nodeAfter']);else for(const _0x8d757d of _0x333c2e)_0x14225d[_0x6e58('0xc5')]?_0x28d6e1[_0x6e58('0x11')](_0x14225d[_0x6e58('0x171')],_0x14225d[_0x6e58('0xc5')],_0x8d757d):_0x28d6e1['removeAttribute'](_0x14225d[_0x6e58('0x171')],_0x8d757d);}});}),this['_defaultCallbacks'][_0x6e58('0x16a')](_0x6e58('0x88'),_0x7a7899);}}function Bt(_0x1d6621,_0x269f23,_0x5df2e6){for(const _0x5b7d28 of _0x269f23['parent'][_0x6e58('0x85')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b7d28[_0x6e58('0xca')]==_0x5b7d28)return!0x1;if(!_0x5df2e6[_0x6e58('0x116')](_0x5b7d28))return!0x1;if(_0x1d6621[_0x6e58('0x5b')](_0x5b7d28)||_0x1d6621[_0x6e58('0x108')](_0x5b7d28))return!0x0;}return!0x1;}function Tt(_0x3fb104){return _0x3fb104[_0x6e58('0x19')][_0x6e58('0x48')]==_0x3fb104[_0x6e58('0x111')][_0x6e58('0x122')]&&_0x3fb104['end'][_0x6e58('0x7a')];}function xt(_0x329ab2,_0xe08209,_0x266532,_0x5e2962){const _0x4da74e=_0x208b93=>!_0x208b93['item']['is'](_0x6e58('0x32'))&&!_0x5e2962[_0x6e58('0x5b')](_0x208b93[_0x6e58('0x15')]),_0x3b3d11=_0x329ab2[_0x6e58('0x111')][_0x6e58('0x67')](_0x4da74e),_0x1a11dd=_0x329ab2[_0x6e58('0x19')][_0x6e58('0x67')](_0x4da74e,{'direction':_0x6e58('0x98')});return(!_0x329ab2[_0x6e58('0x111')][_0x6e58('0x29')](_0x3b3d11)||!_0x329ab2[_0x6e58('0x19')][_0x6e58('0x29')](_0x1a11dd))&&(_0x3b3d11['isBefore'](_0x1a11dd)?_0x266532[_0x6e58('0x8d')](_0xe08209,{'range':_0x266532[_0x6e58('0x12f')](_0x3b3d11,_0x1a11dd)}):_0x266532['removeMarker'](_0xe08209),!0x0);}function Et(_0x31da4f){return _0x5c0e66(_0x31da4f);}function Rt(_0x2b2d4d){const _0x39f4da=_0x2b2d4d[_0x6e58('0x111')][_0x6e58('0x122')];return _0x39f4da&&_0x39f4da['is']('element');}function Ut(_0x34734c,_0x88000d){const _0x361c6c=_0x88000d[_0x6e58('0x148')][_0x6e58('0x5b')](_0x34734c)||_0x88000d[_0x6e58('0x148')][_0x6e58('0x127')](_0x34734c);return _0x88000d[_0x6e58('0x12f')](_0x88000d[_0x6e58('0xc8')](_0x34734c,_0x6e58('0xb5')),_0x361c6c?_0x88000d['createPositionAfter'](_0x34734c):_0x88000d[_0x6e58('0xc8')](_0x34734c,'end'));}function Ot(_0x35d3f4,_0x239ec9,_0x38e49a,_0x2a367c,_0x41ec88){if(!Vt(_0x35d3f4,_0x239ec9))return!0x1;if(_0x38e49a[_0x6e58('0x19')]['isEqual'](_0x2a367c[_0x6e58('0x111')]))return!0x0;if(_0x35d3f4['type']!=_0x239ec9[_0x6e58('0xe5')])return!0x1;if(!_0x38e49a[_0x6e58('0x19')][_0x6e58('0x16e')](_0x2a367c[_0x6e58('0x111')]))return!0x1;const _0x2559fc=_0x41ec88[_0x6e58('0x12f')](_0x38e49a[_0x6e58('0x19')],_0x2a367c[_0x6e58('0x111')])['getWalker']();for(const _0x304d9b of _0x2559fc)if([_0x6e58('0x40'),'elementEnd'][_0x6e58('0x94')](_0x304d9b[_0x6e58('0xe5')])&&_0x41ec88[_0x6e58('0x148')][_0x6e58('0x108')](_0x304d9b[_0x6e58('0x15')]))return!0x1;return!0x0;}function Vt(_0x5aa075,_0x277bee){return!(!_0x5aa075[_0x6e58('0x20')]||!_0x277bee['_isDataLoaded'])&&_0x18815d(_0x5aa075[_0x6e58('0x17c')],_0x277bee['attributes']);}function Gt(_0x2dcdfb,_0x397e17){const _0x6180ca=Ft(_0x2dcdfb[_0x6e58('0x17c')]),_0xb9f306=Ft(_0x397e17);if(!_0x2dcdfb['_isDataLoaded'])return!0x1;for(const _0x56acdc of Object[_0x6e58('0xbe')](_0xb9f306))if(!_0x18815d(_0x6180ca[_0x56acdc],_0xb9f306[_0x56acdc]))return!0x1;return!0x0;}function Ft(_0x5ecc49){const _0x5c9206=Object[_0x6e58('0xdf')]({},_0x5ecc49);return delete _0x5c9206[_0x6e58('0x123')],delete _0x5c9206[_0x6e58('0x101')],_0x5c9206;}function Pt(_0x3d038b){return'attribute'==_0x3d038b[_0x6e58('0xe5')]?_0x3d038b[_0x6e58('0x10f')]['split']('|')[0x0]:null;}