@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240122.0 → 0.0.0-nightly-20240124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x505b=['acceptSelectedSuggestions','attributes','oldRange','data','toUpperCase','_rangeIsInLocalUserInsertion','fire','after','track-changes-suggestion-data-mismatch','deleteContent','_cutOutSuggestionMarker','getSuggestions','suggestion','suggestionUnloaded','markBlockFormat','formatBlock:accept','_getAuthorFromId','rootName','addClass','change','trackChanges.mergeNestedSuggestions','forEach','change:data','discard','deletion:discard','trackChanges','_handleNewSuggestionMarker','model','removed','mapper','buildSuggestion','getAllAdjacentSuggestions','define','attributeNewValue','includes','head','newRange','_onDiscard','multipleBlocks','subType','containsRange','@external','multi','getIntersection','isArray','formatInline:chain','notReady','enableReadOnlyMode','registerCustomCallback','ck-suggestion-marker-formatBlock','suggestion-type','containsPosition','groupId','formatBlock:join','applyOperation','track-changes-enable-command-twice','isOwn','remove','isIntersectingWithRange','addSuggestion','_model','markAttributeChange','value','author','addSuggestionData','createdAt','_enabledCommands','isLimit','consumable','isInContent','bindElementToMarker','containerElement','document','highest','listenTo','hasComments','isLocal','change:activeMarkers','values','consume','formatInline:accept','config','get','ck-suggestion-marker-formatInline','isBlock','_editor','_isForcedDefaultExecutionBlock','_mergeNestedSuggestions','formatBlock:chain','suggestion:attribute:','options','oldValue','hasCommentThread','addMarker','group','from','end','forward','getChangedMarkers','init','selection','resolve','getSuggestion','_descriptionFactory','insertion:join','name','delete','_refreshSuggestionsChain','formatInline','getCustomProperty','detach','_registerInlineAttribute','root','track-changes-suggestion-not-found','lowest','markMultiRangeDeletion','getMultiRangeId','announce','createSelection','createRange','attribute:join','some','_getSuggestionData','hasSuggestion','_suggestions','_findSuggestions','editingDowncast','containsRangeInObject','$elementName','$text','before','_processAttributeChanges','setAttribute','_splitMarkerName','never','pop','createElement','splice','newValue','creator','editor','removeMarker','isIntersecting','_addSuggestionMarker','accept','$graveyard','insert','addCommentThread','plugins','insertion','_getExternalAuthor','isAfter','getContainedElement','addMarker:suggestion:formatBlock','_setSuggestionData','track-changes-adapter-missing-getsuggestion','Users','for','toJSON','dataReady','push','_SUGGESTION_ANNOUNCEMENT','data-suggestion','return','attribute','attribute:','every','track-changes-command-not-found','addRange','batch','markerName','$marker','formatInline:discard','_initAriaMarkerChangeAnnouncements','enqueueChange','_reduceExistingSuggestions','format','LEAVE','isBefore','_getMarkerAnnouncementText','tablePasteChainId','markMultiRangeInsertion','removeAttribute','registerPostFixer','isMultiRange','suggestionLoaded','markInlineFormat','suggestionChanged','splitPosition','toViewElement','commentThread','ready','_removeSuggestion','map','getItems','nodeAfter','insertion:accept','_customCallbacks','isObject','_processAttributeSuggestions','unbindElementFromMarkerName','editing','activeMarkers','_recordAttributeChanges','addHighlight','position','getShiftedBy','TrackChangesEditing','size','isRemovable','getSuggestionCallback','_joinSuggestions','acceptAllSuggestions','getAttribute','backward','addMarkerName','_setSuggestionRange','_blockAttributeKeys','_adapter','_trackFormatChanges','deletion:accept','collaboration.channelId','unbind','setSelection','type','skipNestingCheck','join','isEqual','locale','fromRange','markMultiRangeBlockFormat','requires','getRanges','schema','_isDataLoaded','external:','getDifference','formatInline:','insertContent','getNearestSelectionRange','removeMarkers','parent','addMarker:suggestion:attribute','howMany','split','_refreshAttributeSuggestionsChain','getFirstMarker','adapter','isCollapsed','getAncestors','isUndo','deletion:','commandName','isNextTo','stop','insertion:','_isRegisteredAttribute','track-changes-user-not-found','markerNameToElements','markers','showSuggestionHighlights','containsItem','comments','start','markerReady','removeClass','marker-count','assign','change:_saved','_suggestionState','_element','_updateSuggestionData','isDocumentOperation','dataDowncast','_inlineAttributeKeys','markerToData','rethrowUnexpectedError','formatGroupId','default','sort','_registerBlockAttribute','originalSuggestionId','trackChangesCommand','item','formatInline:join','high','elementStart','updateSuggestion','set','writer','attributeOldValue','addUser','catch','conversion','markInsertion','_getAttributeKey','ck-suggestion-marker-','_saved','then','upcast','insertion:chain','getMarkers','deletion','isInsideObject','add','forceDefaultExecution','formatBlock:discard','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.','fromCharCode','formatBlock','accepted','getCommentThread','execute','elementEnd','_defaultCallbacks','key','ENTER','track-changes-adapter-already-set','acceptSuggestion','markDeletion','ck-suggestion-marker','getChanges','deletion:chain','element','CommentsRepository','_suggestionFactory','getLastMatchingPosition','previous','markerToHighlight','_reduceSuggestionAttributeRange','_registerDefaultCallbacks','pluginName','_breakSuggestionMarker','createPositionAt','enableCommand','_commentsRepository','find','differ','filter','has','getUser','always','trackChanges.trackFormatChanges','low','getFirstRange','update:suggestion','normal','next','authoredAt','range','updateMarker','authorName','startsWith','_joinWithAdjacentSuggestions','_createSuggestion','fetchCommentThread','_recordAttributeSuggestions','_afterChanges','_checkSuggestionCorrectness','createPositionBefore','FORMATTING','move','formatBlock:','concat','_enableDefaultAttributesIntegration','_addThreadToSuggestion','ck-suggestion-marker--active','discardSelectedSuggestions','isAtEnd','warn','discardAllSuggestions','discardSuggestion','commands','_isBlockAttribute','attributeKey','length','nodeBefore'];(function(_0x1bbd9a,_0x505b5e){const _0x482e1e=function(_0x4fde0d){while(--_0x4fde0d){_0x1bbd9a['push'](_0x1bbd9a['shift']());}};_0x482e1e(++_0x505b5e);}(_0x505b,0xd8));const _0x482e=function(_0x1bbd9a,_0x505b5e){_0x1bbd9a=_0x1bbd9a-0x0;let _0x482e1e=_0x505b[_0x1bbd9a];return _0x482e1e;};import{Plugin as _0x8475d0,PendingActions as _0x2299ad}from'ckeditor5/src/core.js';import{LiveRange as _0x5be075}from'ckeditor5/src/engine.js';import{CKEditorError as _0x101e5f,uid as _0x10d598,priorities as _0x3269bc,logWarning as _0x207c48}from'ckeditor5/src/utils.js';import{toWidget as _0x5e5b34}from'ckeditor5/src/widget.js';import{Users as _0x3c67c3,hashObject as _0x30c611,surroundingMarkersDetector as _0x4d5183}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xb24a0c from'./commands/trackchangescommand.js';import _0x1a974b from'./commands/acceptsuggestioncommand.js';import _0x84f211 from'./commands/discardsuggestioncommand.js';import _0x2c1061 from'./commands/executeonallsuggestionscommand.js';import _0x5226b8 from'./commands/executeonselectedsuggestionscommand.js';import _0x28914f from'./suggestion.js';import _0xfc3cc7 from'./suggestiondescriptionfactory.js';import _0x554e50 from'./integrations/aiassistant.js';import _0xe7595c from'./integrations/alignment.js';import _0x56f8a7 from'./integrations/basicstyles.js';import _0x29f9c9 from'./integrations/blockquote.js';import _0x4f7b9f from'./integrations/casechange.js';import _0x267123 from'./integrations/ckbox.js';import _0x5f3f90 from'./integrations/codeblock.js';import _0x49b4d5 from'./integrations/comments.js';import _0x3f90eb from'./integrations/deletecommand.js';import _0x496e0a from'./integrations/list.js';import _0x2e9727 from'./integrations/listproperties.js';import _0x28c585 from'./integrations/entercommand.js';import _0x44345b from'./integrations/findandreplace.js';import _0x17609f from'./integrations/font.js';import _0x337425 from'./integrations/formatpainter.js';import _0x581a19 from'./integrations/heading.js';import _0xb4c8af from'./integrations/highlight.js';import _0x507043 from'./integrations/horizontalline.js';import _0x1a8f25 from'./integrations/htmlembed.js';import _0x4c48e4 from'./integrations/image.js';import _0x2f7810 from'./integrations/imagereplace.js';import _0x2bb78c from'./integrations/imagestyle.js';import _0x885c7d from'./integrations/importword.js';import _0x3606a9 from'./integrations/indent.js';import _0xae1b95 from'./integrations/inputcommand.js';import _0x35a438 from'./integrations/link.js';import _0x32f6d4 from'./integrations/legacylist.js';import _0x212e93 from'./integrations/legacylistproperties.js';import _0x422c04 from'./integrations/mediaembed.js';import _0x2ac3f6 from'./integrations/mention.js';import _0x25c487 from'./integrations/pagebreak.js';import _0x74acc7 from'./integrations/paragraph.js';import _0x396739 from'./integrations/removeformat.js';import _0x553730 from'./integrations/restrictededitingmode.js';import _0x1317aa from'./integrations/shiftentercommand.js';import _0x5133c8 from'./integrations/standardeditingmode.js';import _0x1f27f9 from'./integrations/style.js';import _0x173e5a from'./integrations/table.js';import _0x1e4e77 from'./integrations/tablemergesplit.js';import _0x1cd0ec from'./integrations/tableheadings.js';import _0x44952f from'./integrations/tableclipboard.js';import _0x4d48e7 from'./integrations/tablecolumnresize.js';import _0x3f7bf3 from'./integrations/template.js';import _0x18af6c from'./integrations/tableofcontents.js';import _0x4c5a6d from'./integrations/title.js';import _0x59fb76 from'./integrations/undo.js';import _0x14bbff from'./integrations/tablecaption.js';import _0x5f137d from'./integrations/tableproperties.js';import{getTranslation as _0x1df92a}from'./utils/common-translations.js';import{isEqual as _0x453c36,omit as _0x30c130}from'lodash-es';export const renameAttributeKey=_0x482e('0x121');export default class p extends _0x8475d0{static get[_0x482e('0xf')](){return[_0x482e('0x6c'),_0x3c67c3,_0x2299ad,_0x554e50,_0xe7595c,_0x56f8a7,_0x29f9c9,_0x267123,_0x4f7b9f,_0x5f3f90,_0x49b4d5,_0x3f90eb,_0x28c585,_0x44345b,_0x17609f,_0x337425,_0x581a19,_0xb4c8af,_0x507043,_0x1a8f25,_0x4c48e4,_0x2bb78c,_0x2f7810,_0x885c7d,_0x3606a9,_0xae1b95,_0x32f6d4,_0x212e93,_0x35a438,_0x496e0a,_0x2e9727,_0x422c04,_0x2ac3f6,_0x25c487,_0x74acc7,_0x396739,_0x553730,_0x1317aa,_0x5133c8,_0x1f27f9,_0x173e5a,_0x1e4e77,_0x1cd0ec,_0x14bbff,_0x44952f,_0x4d48e7,_0x18af6c,_0x5f137d,_0x3f7bf3,_0x4c5a6d,_0x59fb76];}static get[_0x482e('0x73')](){return _0x482e('0x170');}constructor(_0xbe85fa){function _0xa612c7(_0x507276){return _0x507276['map'](_0x550d22=>String[_0x482e('0x5c')](_0x550d22))[_0x482e('0xa')]('');}super(_0xbe85fa),this[_0x482e('0x8c')]=!0x1,this[_0x482e('0x48')](_0x482e('0x16b'),[]),this['on'](_0x482e('0xee'),(_0x948f03,_0x467670,_0x242d94,_0x3ffc3d)=>{this['_model'][_0x482e('0xb4')](()=>{for(const _0x3e6cb8 of[..._0x3ffc3d,..._0x242d94])this['_model'][_0x482e('0x2b')]['has'](_0x3e6cb8)&&_0xbe85fa[_0x482e('0x16a')]['reconvertMarker'](_0x3e6cb8);});}),this[_0x482e('0x108')]=new _0xfc3cc7(this[_0x482e('0x12d')][_0x482e('0xbc')]['schema'],this[_0x482e('0x12d')]['locale']),this['_adapter']=null,this['_suggestionFactory']=new Bt(this[_0x482e('0x12d')]),this[_0x482e('0x11d')]=new Map(),this['_commentsRepository']=_0xbe85fa[_0x482e('0x135')][_0x482e('0xf3')](_0x482e('0x6c')),this['_enabledCommands']=new Set(),this[_0x482e('0xdd')]=this['editor']['model'],this[_0x482e('0x35')]=new WeakMap(),this[_0x482e('0xf7')]=!0x1,this[_0x482e('0x1')]=new Set(['$elementName']),this['_inlineAttributeKeys']=new Set(),_0xbe85fa[_0x482e('0xf2')][_0x482e('0xc1')](_0x482e('0x7e'),_0x482e('0x3e')),this[_0x482e('0x3')]=_0xbe85fa[_0x482e('0xf2')][_0x482e('0xf3')](_0x482e('0x7e')),_0xbe85fa['config']['define'](_0x482e('0xb5'),!0x0),this[_0x482e('0xf8')]=_0xbe85fa['config'][_0x482e('0xf3')](_0x482e('0xb5')),this[_0x482e('0x42')]=new _0xb24a0c(_0xbe85fa,this[_0x482e('0xe3')]),this[_0x482e('0x14e')](),this[_0xa612c7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xa612c7([0x34,0x30,0x34,0x38,0x30,0x32,0x34,0x34]);}[_0x482e('0x104')](){const _0x9f682c=this['editor'],_0xc9067d=(_0x8449dd,_0x333a3b)=>{if(_0x482e('0x145')!=_0x8449dd)return _0x482e('0x50')+_0x8449dd;const _0x5e6fe0=_0x333a3b[_0x482e('0x1c')]('|')[0x0];return this['_isBlockAttribute'](_0x5e6fe0)?'ck-suggestion-marker-formatBlock':_0x482e('0xf4');};_0x9f682c[_0x482e('0x4d')][_0x482e('0x13e')](_0x482e('0x11f'))[_0x482e('0x70')]({'model':'suggestion','view':_0x111dff=>{const {id:_0x182a9f,type:_0x2623b6,subType:_0xf949c0}=this[_0x482e('0x126')](_0x111dff[_0x482e('0x14b')]),_0x37a479=[_0x482e('0x68'),_0xc9067d(_0x2623b6,_0xf949c0)];let _0x1790c7=0xbb8;return this[_0x482e('0x16b')]['includes'](_0x111dff[_0x482e('0x14b')])&&(_0x37a479[_0x482e('0x141')](_0x482e('0x96')),_0x1790c7=0xbc2),_0x482e('0x56')==_0x2623b6&&(_0x1790c7+=0x5),{'classes':_0x37a479,'attributes':{'data-suggestion':_0x182a9f},'priority':_0x1790c7};}}),_0x9f682c[_0x482e('0x4d')][_0x482e('0x13e')](_0x482e('0x39'))['add'](_0x2d8f0d=>{_0x2d8f0d['on']('addMarker:suggestion',(_0x17cb00,_0x4db2bc,_0x36c4b6)=>{if(!_0x36c4b6[_0x482e('0xfb')]['showSuggestionHighlights'])return;const _0x37e7e4=_0x4db2bc['item'];if(!_0x37e7e4)return;const _0x49fe83=_0x36c4b6[_0x482e('0xbe')]['toViewElement'](_0x37e7e4);_0x9f682c[_0x482e('0xbc')][_0x482e('0x11')][_0x482e('0x167')](_0x37e7e4)&&_0x49fe83&&!_0x49fe83[_0x482e('0x10e')]('widget')&&_0x49fe83['is'](_0x482e('0xe8'))&&_0x5e5b34(_0x49fe83,_0x36c4b6[_0x482e('0x49')]);},{'priority':_0x482e('0x45')});}),_0x9f682c[_0x482e('0x4d')][_0x482e('0x13e')](_0x482e('0x39'))[_0x482e('0x70')]({'model':_0x482e('0xad'),'view':(_0x4f2ec4,_0x226c92)=>{if(!_0x226c92['options'][_0x482e('0x2c')])return null;const {type:_0x3a0578,subType:_0x4637b7}=this[_0x482e('0x126')](_0x4f2ec4['markerName']);return{'classes':[_0x482e('0x68'),_0xc9067d(_0x3a0578,_0x4637b7)],'priority':0xbb8};}});const _0x4c7ac2=({showActiveMarkers:_0x539823=!0x0,isAttributeSuggestion:_0x59d998=!0x1}={})=>(_0x35adbc,_0x5926f6,_0x428edc)=>{if(!_0x5926f6['item'])return;const {id:_0x2c9ce9}=this[_0x482e('0x126')](_0x5926f6[_0x482e('0x14b')]);if(_0x59d998){const _0x4ba3b5=this[_0x482e('0x11d')][_0x482e('0xf3')](_0x2c9ce9),_0x1cd336=this[_0x482e('0x4f')](_0x4ba3b5);if(!this[_0x482e('0x9d')](_0x1cd336))return;}if(_0x5926f6[_0x482e('0x43')]['is'](_0x482e('0x105')))return void _0x428edc[_0x482e('0xe5')]['consume'](_0x5926f6[_0x482e('0x43')],_0x35adbc[_0x482e('0x10a')]);const _0x519eef=_0x428edc[_0x482e('0xbe')][_0x482e('0x15e')](_0x5926f6[_0x482e('0x43')]);if(_0x5926f6['item']['is'](_0x482e('0x6b'))&&_0x9f682c[_0x482e('0xbc')][_0x482e('0x11')][_0x482e('0xf5')](_0x5926f6['item'])&&!_0x519eef['getCustomProperty'](_0x482e('0x16d'))){_0x428edc[_0x482e('0x49')][_0x482e('0xb3')]([_0x482e('0x68'),_0x482e('0xd2')],_0x519eef),_0x428edc['writer'][_0x482e('0x125')]('data-suggestion',_0x2c9ce9,_0x519eef),_0x428edc[_0x482e('0xbe')][_0x482e('0xe7')](_0x519eef,_0x5926f6['markerName']),_0x539823&&(this[_0x482e('0x16b')][_0x482e('0xc3')](_0x5926f6[_0x482e('0x14b')])?_0x428edc['writer'][_0x482e('0xb3')](_0x482e('0x96'),_0x519eef):_0x428edc['writer'][_0x482e('0x31')](_0x482e('0x96'),_0x519eef));for(const _0x534c36 of _0x9f682c['model']['createRangeIn'](_0x5926f6[_0x482e('0x43')])[_0x482e('0x163')]())_0x428edc['consumable'][_0x482e('0xf0')](_0x534c36,_0x35adbc['name']);_0x428edc['consumable'][_0x482e('0xf0')](_0x5926f6['item'],_0x35adbc[_0x482e('0x10a')]);}};_0x9f682c[_0x482e('0x4d')]['for'](_0x482e('0x39'))[_0x482e('0x58')](_0x55c0b8=>{_0x55c0b8['on'](_0x482e('0x13a'),(_0x44e306,_0x55f52e,_0x20e7f0)=>{_0x20e7f0[_0x482e('0xfb')][_0x482e('0x2c')]&&_0x4c7ac2({'showActiveMarkers':!0x1})(_0x44e306,_0x55f52e,_0x20e7f0);},{'priority':_0x482e('0xea')});}),_0x9f682c[_0x482e('0x4d')][_0x482e('0x13e')](_0x482e('0x39'))[_0x482e('0x58')](_0x378dac=>{_0x378dac['on']('addMarker:suggestion:attribute',(_0x3d6deb,_0x100dbc,_0x34be32)=>{_0x34be32[_0x482e('0xfb')]['showSuggestionHighlights']&&_0x4c7ac2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3d6deb,_0x100dbc,_0x34be32);},{'priority':_0x482e('0xea')});}),_0x9f682c['conversion'][_0x482e('0x13e')](_0x482e('0x39'))[_0x482e('0x3b')]({'model':_0x482e('0xad'),'view':(_0xe78f90,_0x4085d7)=>_0x4085d7['options'][_0x482e('0x2c')]?null:{'group':_0x482e('0xad'),'name':_0xe78f90['substr'](0xb)}}),_0x9f682c['conversion'][_0x482e('0x13e')](_0x482e('0x53'))['elementToElement']({'view':{'name':_0x482e('0xad'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x27de92,{writer:_0x52c3e8})=>{let _0x1ef4cd='suggestion:'+_0x27de92[_0x482e('0x176')](_0x482e('0xd3'))+':'+_0x27de92[_0x482e('0x176')]('id');return _0x27de92[_0x482e('0x176')](_0x482e('0x32'))&&(_0x1ef4cd+=':'+_0x27de92['getAttribute'](_0x482e('0x32'))),_0x52c3e8[_0x482e('0x129')](_0x482e('0x14c'),{'data-name':_0x1ef4cd});}}),_0x9f682c[_0x482e('0x4d')][_0x482e('0x13e')](_0x482e('0x53'))['dataToMarker']({'view':_0x482e('0xad')}),_0x9f682c['conversion'][_0x482e('0x13e')]('editingDowncast')['add'](_0x1284ee=>{_0x1284ee['on']('addMarker:suggestion:formatBlock',_0x4c7ac2(),{'priority':_0x482e('0x45')});}),_0x9f682c['conversion'][_0x482e('0x13e')](_0x482e('0x11f'))[_0x482e('0x58')](_0x464643=>{_0x464643['on'](_0x482e('0x1a'),_0x4c7ac2({'isAttributeSuggestion':!0x0}),{'priority':_0x482e('0x45')});}),_0x9f682c['conversion'][_0x482e('0x13e')](_0x482e('0x11f'))[_0x482e('0x58')](_0x46681d=>{_0x46681d['on']('removeMarker:suggestion:formatBlock',(_0x188379,_0x3835c5,_0x4c0ca2)=>{const _0x3ac543=_0x4c0ca2['mapper'][_0x482e('0x2a')](_0x3835c5[_0x482e('0x14b')]);if(_0x3ac543)for(const _0x1bce0e of _0x3ac543)_0x1bce0e[_0x482e('0x10e')]('addHighlight')||(_0x4c0ca2[_0x482e('0x49')][_0x482e('0x31')](['ck-suggestion-marker',_0x482e('0xd2'),_0x482e('0x96')],_0x1bce0e),_0x4c0ca2[_0x482e('0x49')][_0x482e('0x157')](_0x482e('0x143'),_0x1bce0e),_0x4c0ca2[_0x482e('0xbe')][_0x482e('0x169')](_0x1bce0e,_0x3835c5[_0x482e('0x14b')]));},{'priority':_0x482e('0x45')});}),_0x9f682c[_0x482e('0x4d')][_0x482e('0x13e')](_0x482e('0x11f'))[_0x482e('0x58')](_0x51adbe=>{_0x51adbe['on']('removeMarker:suggestion:attribute',(_0x5b0099,_0x48257a,_0x449e53)=>{const _0x163ee1=_0x449e53['mapper'][_0x482e('0x2a')](_0x48257a[_0x482e('0x14b')]);if(!_0x163ee1)return;const {id:_0x59b0f5}=this['_splitMarkerName'](_0x48257a['markerName']),_0x49fbf5=this['_suggestions'][_0x482e('0xf3')](_0x59b0f5),_0x16d4b0=this[_0x482e('0x4f')](_0x49fbf5);if(this['_isBlockAttribute'](_0x16d4b0))for(const _0x664313 of _0x163ee1)_0x664313['getCustomProperty'](_0x482e('0x16d'))||(_0x449e53[_0x482e('0x49')]['removeClass']([_0x482e('0x68'),_0x482e('0xd2'),_0x482e('0x96')],_0x664313),_0x449e53[_0x482e('0x49')][_0x482e('0x157')]('data-suggestion',_0x664313),_0x449e53[_0x482e('0xbe')][_0x482e('0x169')](_0x664313,_0x48257a[_0x482e('0x14b')]));},{'priority':_0x482e('0x45')});}),_0x9f682c[_0x482e('0xbc')][_0x482e('0xe9')][_0x482e('0x158')](_0x5eb356=>{let _0x2eda0d=!0x1;const _0x3d80f3=Array[_0x482e('0x100')](_0x9f682c[_0x482e('0xbc')][_0x482e('0xe9')][_0x482e('0x79')]['getChangedMarkers']()),_0x2e5091=new Set();for(const {name:_0x531a4b,data:_0x3252fd}of _0x3d80f3){const {group:_0x37ec13,type:_0x5b7e0f,subType:_0x5e2e15,id:_0x449d7a}=this[_0x482e('0x126')](_0x531a4b);if(_0x482e('0xad')!==_0x37ec13)continue;const _0x2eb675=this[_0x482e('0x11d')]['get'](_0x449d7a);if(null!=_0x3252fd[_0x482e('0xc5')]){_0x482e('0x10d')==_0x5b7e0f&&(_0x2eda0d=_0x2eda0d||Tt(_0x3252fd['newRange'],_0x531a4b,_0x5eb356,_0x9f682c[_0x482e('0xbc')][_0x482e('0x11')]));const _0xcc4ce6=_0x482e('0x145')==_0x5b7e0f&&this['_isBlockAttribute'](_0x5e2e15[_0x482e('0x1c')]('|')[0x0]);if(_0x3252fd['newRange']['isCollapsed']||_0x482e('0x132')==_0x3252fd['newRange'][_0x482e('0x111')][_0x482e('0xb2')]||_0x482e('0x5d')==_0x5b7e0f&&!Vt(_0x3252fd[_0x482e('0xc5')])||_0xcc4ce6&&!Vt(_0x3252fd['newRange'])||_0x482e('0x56')==_0x5b7e0f&&!(!Rt(_0x46c5ba=_0x3252fd[_0x482e('0xc5')])&&!function(_0x426a48){return _0x426a48['start'][_0x482e('0x19')]==_0x426a48[_0x482e('0x101')][_0x482e('0xa0')]&&_0x426a48[_0x482e('0x2f')][_0x482e('0x98')];}(_0x46c5ba)))_0x5eb356[_0x482e('0x12e')](_0x531a4b),_0x2eda0d=!0x0;else{if(!_0x2eb675||!_0x2eb675[_0x482e('0xe6')])continue;_0x2e5091[_0x482e('0x58')](_0x2eb675);}}}var _0x46c5ba;return _0x2e5091[_0x482e('0x171')]>0x0&&(_0x2eda0d=!!this['_joinWithAdjacentSuggestions'](_0x2e5091)||_0x2eda0d),_0x2eda0d;}),_0x9f682c[_0x482e('0xbc')]['document'][_0x482e('0x158')](_0x5b0890=>{let _0x130929=!0x1;for(const _0x77e3c0 of _0x9f682c[_0x482e('0xbc')][_0x482e('0xe9')]['differ']['getChanges']())if('insert'==_0x77e3c0[_0x482e('0x8')])for(const _0x51b8c0 of this[_0x482e('0x11d')][_0x482e('0xef')]()){if(_0x51b8c0[_0x482e('0x159')]||!_0x51b8c0['isInContent'])continue;const _0xa9fec0=_0x482e('0x5d')==_0x51b8c0[_0x482e('0x8')],_0x314264=this[_0x482e('0x4f')](_0x51b8c0),_0x3c81e4=_0x314264&&this[_0x482e('0x9d')](_0x314264);if(!_0xa9fec0&&!_0x3c81e4)continue;const _0x352dd2=_0x51b8c0['getFirstRange']();if(_0x352dd2['start']['parent']!=_0x352dd2[_0x482e('0x101')][_0x482e('0x19')]&&!_0x352dd2['end'][_0x482e('0x98')]){const _0x4af347=_0x9f682c['model']['createPositionAt'](_0x352dd2[_0x482e('0x2f')][_0x482e('0x164')],_0x482e('0x101')),_0x4e4aa1=_0x9f682c[_0x482e('0xbc')]['createRange'](_0x352dd2[_0x482e('0x2f')],_0x4af347);_0x5b0890[_0x482e('0x86')](_0x51b8c0[_0x482e('0x1e')](),{'range':_0x4e4aa1}),_0x130929=!0x0;}}return _0x130929;}),_0x9f682c[_0x482e('0xbc')][_0x482e('0xe9')][_0x482e('0x158')](_0x410b6b=>this[_0x482e('0x124')](_0x410b6b)),_0x9f682c[_0x482e('0xbc')]['document'][_0x482e('0x158')](_0x2bf22b=>!_0x2bf22b['batch'][_0x482e('0xed')]&&this[_0x482e('0x168')](_0x2bf22b)),_0x9f682c['model']['on'](_0x482e('0x8d'),()=>{this[_0x482e('0x8c')]=!0x1;}),_0x9f682c[_0x482e('0xbc')][_0x482e('0xe9')]['on'](_0x482e('0xb7'),(_0xd8eeab,_0x184c8a)=>{if(!_0x184c8a[_0x482e('0xed')]||_0x184c8a['isUndo'])return;if(!this[_0x482e('0x8c')])return;const _0x5ed1a2=_0x9f682c[_0x482e('0xbc')][_0x482e('0xe9')][_0x482e('0x79')][_0x482e('0x69')]();if(0x0==_0x5ed1a2[_0x482e('0x9f')])return;const _0xd8b81=[],_0x129e46=_0x5ed1a2[_0x482e('0x7a')](_0x1216f5=>_0x482e('0x145')==_0x1216f5[_0x482e('0x8')]),_0x5f4159=_0x5ed1a2[_0x482e('0x7a')](_0x17201a=>_0x482e('0x133')==_0x17201a[_0x482e('0x8')]&&_0x482e('0x122')!=_0x17201a['name']),_0x5b2f03=_0x5ed1a2[_0x482e('0x7a')](_0xfe8195=>_0x482e('0xda')==_0xfe8195[_0x482e('0x8')]&&_0x482e('0x122')!=_0xfe8195[_0x482e('0x10a')]);for(const _0x40f9b0 of _0x129e46)this[_0x482e('0x28')](_0x40f9b0['attributeKey'])&&_0xd8b81[_0x482e('0x141')]({'key':_0x40f9b0[_0x482e('0x9e')],'newValue':_0x40f9b0[_0x482e('0xc2')],'oldValue':_0x40f9b0['attributeOldValue'],'range':Ut(_0x40f9b0[_0x482e('0x85')],_0x9f682c[_0x482e('0xbc')])});for(const _0x5007bc of _0x5f4159){const _0x5ac4c3=_0x5b2f03[_0x482e('0x78')](_0x11fbca=>_0x11fbca[_0x482e('0x36')]===_0x5007bc[_0x482e('0x36')]);if(_0x5ac4c3){const _0x46c880=Ot(_0x5007bc['position'][_0x482e('0x164')],_0x9f682c['model']);_0x5ac4c3[_0x482e('0x10a')]!==_0x5007bc[_0x482e('0x10a')]&&_0xd8b81[_0x482e('0x141')]({'key':_0x482e('0x121'),'newValue':_0x5007bc['name'],'oldValue':_0x5ac4c3[_0x482e('0x10a')],'range':_0x46c880});for(const [_0x43bfd5,_0x458d1a]of _0x5ac4c3[_0x482e('0xa2')]){if(!this['_isRegisteredAttribute'](_0x43bfd5))continue;const _0xde08bb=_0x5007bc[_0x482e('0xa2')]['get'](_0x43bfd5);_0x458d1a!==_0xde08bb&&_0xd8b81['push']({'key':_0x43bfd5,'newValue':_0xde08bb,'oldValue':_0x458d1a,'range':_0x46c880});}for(const [_0x5e726b,_0x5cb3e3]of _0x5007bc[_0x482e('0xa2')])this[_0x482e('0x28')](_0x5e726b)&&(_0x5ac4c3[_0x482e('0xa2')]['has'](_0x5e726b)||_0xd8b81[_0x482e('0x141')]({'key':_0x5e726b,'newValue':_0x5cb3e3,'oldValue':null,'range':_0x46c880}));}}0x0!=_0xd8b81[_0x482e('0x9f')]&&_0x9f682c['model'][_0x482e('0x14f')](_0x184c8a,_0x20d85f=>{const _0x4ff593=_0x10d598();for(const {range:_0x5b3778,key:_0x1d306c,oldValue:_0x15866f,newValue:_0x259598}of _0xd8b81)this[_0x482e('0xde')](_0x5b3778,_0x1d306c,_0x15866f,_0x259598,{'groupId':_0x4ff593});this[_0x482e('0x150')](_0x20d85f,_0xd8b81);});},{'priority':'lowest'}),_0x9f682c[_0x482e('0xbc')][_0x482e('0x2b')]['on'](_0x482e('0x81'),(_0x1a7042,_0xf83de1,_0x2ea9bd)=>{if(null==_0x2ea9bd){const {id:_0xb98131}=this[_0x482e('0x126')](_0xf83de1[_0x482e('0x10a')]),_0x3d4eba=this[_0x482e('0x11d')][_0x482e('0xf3')](_0xb98131);_0x3d4eba&&_0x3d4eba[_0x482e('0x178')](_0xf83de1['name']);}}),_0x9f682c[_0x482e('0xbc')]['document']['on'](_0x482e('0xb7'),()=>{const _0x25f5b5=Array[_0x482e('0x100')](_0x9f682c[_0x482e('0xbc')][_0x482e('0xe9')][_0x482e('0x79')][_0x482e('0x103')]())[_0x482e('0x7a')](_0x139f05=>_0x482e('0xad')===this[_0x482e('0x126')](_0x139f05[_0x482e('0x10a')])[_0x482e('0xff')]);if(0x0===_0x25f5b5['length'])return;_0x25f5b5['sort']((_0x475374,_0x5b4342)=>{const _0x18a0a9=_0x475374[_0x482e('0xa4')][_0x482e('0xa3')],_0x1b2601=_0x5b4342[_0x482e('0xa4')]['oldRange'];return null===_0x18a0a9&&null===_0x1b2601?0x0:null===_0x18a0a9&&null!==_0x1b2601?-0x1:null!==_0x18a0a9&&null===_0x1b2601?0x1:_0x18a0a9[_0x482e('0x2f')][_0x482e('0x153')](_0x1b2601['start'])?-0x1:0x1;});const _0x4556bd=new Set(),_0x4747bc=new Set();for(const {name:_0x1c35b8,data:_0x360e70}of _0x25f5b5){const {id:_0x1d6874}=this['_splitMarkerName'](_0x1c35b8);if(null===_0x360e70[_0x482e('0xa3')]){const _0x3e387d=this[_0x482e('0xbb')](_0x1c35b8);_0x4747bc[_0x482e('0x58')](_0x3e387d);}else{const _0xf174b3=this[_0x482e('0x11d')][_0x482e('0xf3')](_0x1d6874);null!==_0x360e70[_0x482e('0xc5')]||_0xf174b3[_0x482e('0xe6')]?(_0x4556bd[_0x482e('0x58')](_0xf174b3[_0x482e('0xc4')]),_0x4747bc[_0x482e('0x58')](_0xf174b3)):this[_0x482e('0x161')](_0xf174b3);}}_0x4747bc[_0x482e('0x171')]>0x0&&this[_0x482e('0x10c')](_0x4747bc);for(const _0x48bd27 of _0x4556bd)this[_0x482e('0xa7')](_0x482e('0x15c'),_0x48bd27);}),_0x9f682c['model']['on'](_0x482e('0xd7'),(_0x41a839,_0x1a9bea)=>{const _0x5b990f=_0x1a9bea[0x0];if(!this[_0x482e('0x11d')][_0x482e('0x171')])return;if(!_0x5b990f[_0x482e('0x38')])return;if(_0x5b990f[_0x482e('0x14a')][_0x482e('0x22')]||!_0x5b990f['batch'][_0x482e('0xed')])return;let _0x1fae15,_0x2bfcd7;switch(_0x5b990f['type']){case _0x482e('0x133'):_0x1fae15=_0x9f682c[_0x482e('0xbc')][_0x482e('0x75')](_0x5b990f[_0x482e('0x16e')]),_0x2bfcd7=_0x1fae15[_0x482e('0x16f')](_0x5b990f[_0x482e('0x1b')]);break;case'split':_0x1fae15=_0x9f682c[_0x482e('0xbc')][_0x482e('0x75')](_0x5b990f[_0x482e('0x15d')]),_0x2bfcd7=_0x9f682c[_0x482e('0xbc')][_0x482e('0x75')](_0x5b990f['moveTargetPosition']);break;case _0x482e('0x91'):_0x1fae15=_0x9f682c['model'][_0x482e('0x75')](_0x5b990f['targetPosition']),_0x2bfcd7=_0x1fae15[_0x482e('0x16f')](_0x5b990f[_0x482e('0x1b')]);break;default:return;}const _0x3dafa5=_0x9f682c[_0x482e('0xbc')][_0x482e('0x118')](_0x1fae15,_0x2bfcd7);_0x9f682c['model'][_0x482e('0xb4')](()=>{for(const {suggestion:_0xf03696,meta:_0x4f7613}of this['_findSuggestions'](_0x3dafa5)){if(_0xf03696[_0x482e('0x159')])continue;if('formatInline'==_0xf03696['type'])continue;const _0x535649=this[_0x482e('0x4f')](_0xf03696);if(_0x535649&&this['_isBlockAttribute'](_0x535649)&&_0x482e('0x1c')!=_0x5b990f['type'])continue;const _0x49e3be=_0xf03696[_0x482e('0xa4')]&&_0xf03696[_0x482e('0xa4')][_0x482e('0xc7')];(_0x482e('0x5d')!=_0xf03696[_0x482e('0x8')]||_0x482e('0x1c')==_0x5b990f['type']&&!_0x49e3be)&&(_0x4f7613[_0x482e('0x120')]||'insertion'==_0xf03696[_0x482e('0x8')]&&_0x4f7613[_0x482e('0xd9')]||_0xf03696['getFirstRange']()[_0x482e('0xc9')](_0x3dafa5)&&this[_0x482e('0x74')](_0xf03696,_0x1fae15,_0x2bfcd7));}});},{'priority':_0x482e('0x113')}),_0x9f682c[_0x482e('0xbc')]['on'](_0x482e('0xaa'),(_0x388747,_0x57059a)=>{const _0x48b4dc=_0x57059a[0x0],_0x285ec0=_0x57059a[0x1];if(_0x285ec0&&_0x285ec0['forceDefaultExecution'])return;if(this[_0x482e('0xf7')])return;if(!this['trackChangesCommand'][_0x482e('0xdf')])return;if(_0x48b4dc[_0x482e('0x20')])return;const _0x443026=_0x9f682c['model']['schema'],{start:_0x4684e5,end:_0x2c1567}=_0x48b4dc[_0x482e('0x80')](),_0x1a9074=_0x4684e5[_0x482e('0x164')]&&_0x443026['isLimit'](_0x4684e5[_0x482e('0x164')])?null:_0x443026[_0x482e('0x17')](_0x4684e5,_0x482e('0x102')),_0x2a35=_0x2c1567[_0x482e('0xa0')]&&_0x443026[_0x482e('0xe4')](_0x2c1567['nodeBefore'])?null:_0x443026[_0x482e('0x17')](_0x2c1567,_0x482e('0x177')),_0x377986=_0x9f682c[_0x482e('0xbc')]['createRange'](_0x1a9074?_0x1a9074['start']:_0x4684e5,_0x2a35?_0x2a35[_0x482e('0x101')]:_0x2c1567);_0x9f682c[_0x482e('0xbc')]['change'](_0x4ee9bf=>{this[_0x482e('0x67')](_0x377986);const _0x271f81=_0x9f682c[_0x482e('0xbc')][_0x482e('0x11')][_0x482e('0x17')](_0x377986[_0x482e('0x2f')]);_0x48b4dc['is']('documentSelection')?_0x4ee9bf['setSelection'](_0x271f81):_0x48b4dc['setTo'](_0x271f81);}),_0x388747[_0x482e('0x26')]();},{'priority':_0x3269bc[_0x482e('0x82')]+0xa}),_0x9f682c[_0x482e('0xbc')]['on'](_0x482e('0x16'),(_0xf34ff8,_0x512324)=>{const _0x17b254=_0x512324[_0x512324[_0x482e('0x9f')]-0x1];_0x17b254&&_0x17b254['forceDefaultExecution']||this[_0x482e('0xf7')]||this[_0x482e('0x42')][_0x482e('0xdf')]&&(_0x9f682c['model'][_0x482e('0xb4')](()=>{let _0x570448=_0x9f682c[_0x482e('0xbc')][_0x482e('0x16')](_0x512324[0x0],_0x512324[0x1],_0x512324[0x2],{'forceDefaultExecution':!0x0});if(!_0x570448)return;_0xf34ff8[_0x482e('0x144')]=_0x570448['clone']();const _0x9446ef=_0x570448['end'][_0x482e('0xa0')],_0x2f830f=_0x9f682c[_0x482e('0xbc')]['schema'];_0x9446ef&&_0x2f830f[_0x482e('0xf5')](_0x9446ef)&&!_0x2f830f[_0x482e('0x167')](_0x9446ef)&&(_0x570448=_0x9f682c[_0x482e('0xbc')][_0x482e('0x118')](_0x570448['start'],_0x9f682c[_0x482e('0xbc')][_0x482e('0x75')](_0x9446ef,_0x482e('0x101')))),this[_0x482e('0x4e')](_0x570448);}),_0xf34ff8[_0x482e('0x26')]());},{'priority':_0x482e('0x45')}),this[_0x482e('0x12d')][_0x482e('0x9c')][_0x482e('0x58')](_0x482e('0xba'),this[_0x482e('0x42')]),this[_0x482e('0x76')](_0x482e('0xba'));const _0x32521d=new _0x1a974b(_0x9f682c,this[_0x482e('0x11d')]);_0x9f682c[_0x482e('0x9c')]['add'](_0x482e('0x66'),_0x32521d),this[_0x482e('0x76')](_0x482e('0x66'));const _0x4d319e=new _0x84f211(_0x9f682c,this[_0x482e('0x11d')]);_0x9f682c[_0x482e('0x9c')][_0x482e('0x58')](_0x482e('0x9b'),_0x4d319e),this['enableCommand'](_0x482e('0x9b')),_0x9f682c[_0x482e('0x9c')][_0x482e('0x58')](_0x482e('0x175'),new _0x2c1061(_0x9f682c,_0x32521d,this[_0x482e('0x11d')])),this['enableCommand'](_0x482e('0x175')),_0x9f682c[_0x482e('0x9c')]['add'](_0x482e('0x9a'),new _0x2c1061(_0x9f682c,_0x4d319e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x9f682c[_0x482e('0x9c')][_0x482e('0x58')](_0x482e('0xa1'),new _0x5226b8(_0x9f682c,_0x32521d,this[_0x482e('0x11d')])),this['enableCommand'](_0x482e('0xa1')),_0x9f682c[_0x482e('0x9c')][_0x482e('0x58')](_0x482e('0x97'),new _0x5226b8(_0x9f682c,_0x4d319e,this['_suggestions'])),this['enableCommand'](_0x482e('0x97'));const _0x3feeaf=_0x9f682c[_0x482e('0x135')][_0x482e('0xf3')](_0x482e('0x6c'));this[_0x482e('0xeb')](_0x3feeaf,'addComment',(_0x1cd05d,{threadId:_0x3335dd})=>{const _0x23c264=this[_0x482e('0x11d')]['get'](_0x3335dd);_0x23c264&&_0x23c264[_0x482e('0x15f')]&&0x1===_0x23c264[_0x482e('0x15f')][_0x482e('0x9f')]&&this[_0x482e('0x37')](_0x3335dd,{'hasComments':!0x0});},{'priority':_0x482e('0x7f')}),this[_0x482e('0xeb')](_0x3feeaf,'removeComment',(_0x2cffa7,{threadId:_0x21f88c})=>{const _0x16a3da=this[_0x482e('0x11d')][_0x482e('0xf3')](_0x21f88c);_0x16a3da&&_0x16a3da[_0x482e('0x15f')]&&!_0x16a3da[_0x482e('0x15f')]['length']&&this[_0x482e('0x37')](_0x21f88c,{'hasComments':!0x1});},{'priority':'low'});}set[_0x482e('0x1f')](_0x3718de){if(this[_0x482e('0x2')])throw new _0x101e5f(_0x482e('0x65'),this);this['_adapter']=_0x3718de;}get['adapter'](){return this[_0x482e('0x2')];}['getSuggestions']({skipNotAttached:_0x3e0674=!0x1,toJSON:_0x16f8d2=!0x1}={}){const _0x505554=[];for(const _0x191a37 of this[_0x482e('0x11d')][_0x482e('0xef')]())_0x3e0674&&!_0x191a37[_0x482e('0xe6')]||_0x505554[_0x482e('0x141')](_0x191a37);return _0x16f8d2?_0x505554[_0x482e('0x162')](_0x2622b9=>_0x2622b9[_0x482e('0x13f')]()):_0x505554;}[_0x482e('0x107')](_0x5f3c61){const _0x144dab=this[_0x482e('0x11d')][_0x482e('0xf3')](_0x5f3c61);if(!_0x144dab)throw new _0x101e5f(_0x482e('0x112'),this);return _0x144dab;}[_0x482e('0x11c')](_0x16cfda){return this[_0x482e('0x11d')][_0x482e('0x7b')](_0x16cfda);}[_0x482e('0xe1')](_0x4eb5eb){const {authorId:_0x294ac2,id:_0x452ff6,attributes:_0x3a8ec2}=_0x4eb5eb,[_0x130e91,_0x192577]=_0x4eb5eb[_0x482e('0x8')][_0x482e('0x1c')](':'),_0x10b37d=this[_0x482e('0x11d')][_0x482e('0xf3')](_0x452ff6)||this[_0x482e('0x8a')](_0x130e91,_0x192577,_0x452ff6,_0x294ac2,_0x3a8ec2);if(this[_0x482e('0x95')](_0x10b37d),this[_0x482e('0x8e')](_0x10b37d,_0x130e91,_0x192577||null,_0x294ac2),_0x10b37d['createdAt']=_0x4eb5eb[_0x482e('0xe2')],_0x10b37d[_0x482e('0x12')]=!0x0,_0x3a8ec2&&_0x3a8ec2[_0x482e('0xca')]){const _0x36cf53=_0x3a8ec2[_0x482e('0xca')],_0x2eebf6=this[_0x482e('0x137')](_0x36cf53[_0x482e('0x87')]);_0x10b37d[_0x482e('0x84')]=_0x36cf53['createdAt'],_0x10b37d[_0x482e('0xe0')]=_0x2eebf6,_0x10b37d['isExternal']=!0x0;}else _0x10b37d[_0x482e('0x84')]=_0x4eb5eb[_0x482e('0xe2')];switch(_0x4eb5eb[_0x482e('0xa4')]&&(_0x10b37d[_0x482e('0xa4')]=_0x4eb5eb['data']),_0x4eb5eb['attributes']&&(_0x10b37d[_0x482e('0xa2')]=_0x4eb5eb[_0x482e('0xa2')]),this[_0x482e('0x2')]&&this['_adapter'][_0x482e('0xdc')]||(_0x10b37d[_0x482e('0x51')]=!0x0),this['_suggestionState'][_0x482e('0xf3')](_0x10b37d)){case _0x482e('0xcf'):this[_0x482e('0x35')][_0x482e('0x48')](_0x10b37d,_0x482e('0x140'));break;case _0x482e('0x30'):_0x10b37d[_0x482e('0xe6')]?(this[_0x482e('0x89')](new Set([_0x10b37d])),this['_refreshSuggestionsChain'](new Set([_0x10b37d])),this['_suggestionState']['set'](_0x10b37d,_0x482e('0x160')),this[_0x482e('0xa7')](_0x482e('0x15a'),_0x10b37d)):this['_suggestionState']['set'](_0x10b37d,_0x482e('0xbd'));}return _0x10b37d;}['acceptSuggestion'](_0x46bc87){this[_0x482e('0x59')](()=>{this[_0x482e('0x12d')]['model'][_0x482e('0xb4')](()=>{for(const _0xed4c63 of _0x46bc87[_0x482e('0xc0')]())_0xed4c63['accept']();});});}[_0x482e('0x9b')](_0x3d48d1){this[_0x482e('0x59')](()=>{this['editor'][_0x482e('0xbc')][_0x482e('0xb4')](()=>{for(const _0x2ca3e4 of _0x3d48d1[_0x482e('0xc0')]())_0x2ca3e4[_0x482e('0xb8')]();});});}[_0x482e('0x76')](_0x4fc601,_0x33963b){const _0x3746e9=this[_0x482e('0x12d')][_0x482e('0x9c')]['get'](_0x4fc601);if(!_0x3746e9)throw new _0x101e5f(_0x482e('0x148'),this,{'commandName':_0x4fc601});if(this[_0x482e('0xe3')][_0x482e('0x7b')](_0x3746e9))throw new _0x101e5f(_0x482e('0xd8'),this,{'commandName':_0x4fc601});this[_0x482e('0xe3')][_0x482e('0x58')](_0x3746e9),_0x33963b&&_0x3746e9['on'](_0x482e('0x60'),(_0x42d76d,_0x53bad9)=>{this[_0x482e('0x42')][_0x482e('0xdf')]&&(this[_0x482e('0xf7')]||(_0x53bad9[_0x482e('0x9f')]>0x0&&_0x53bad9[_0x53bad9[_0x482e('0x9f')]-0x1]&&_0x53bad9[_0x53bad9['length']-0x1][_0x482e('0x59')]?_0x53bad9[_0x482e('0x128')]():(_0x42d76d['return']=_0x33963b((..._0x4cf674)=>_0x3746e9[_0x482e('0x60')](..._0x4cf674,{'forceDefaultExecution':!0x0}),..._0x53bad9),_0x42d76d[_0x482e('0x26')]())));},{'priority':'high'});}[_0x482e('0x59')](_0x2aa7ef){let _0x5a3f4f,_0x4ffb7f;const _0x57042d=this[_0x482e('0xf7')];this[_0x482e('0xf7')]=!0x0;try{_0x5a3f4f=_0x2aa7ef();}catch(_0x59fffc){_0x4ffb7f=_0x59fffc;}return _0x57042d||(this[_0x482e('0xf7')]=!0x1),_0x4ffb7f&&_0x101e5f[_0x482e('0x3c')](_0x4ffb7f,this),_0x5a3f4f;}[_0x482e('0x4e')](_0x34b21f,_0x1c6258=null,_0x449abb={}){if(_0x34b21f[_0x482e('0x20')])return null;const _0x39649d=this[_0x482e('0x12d')][_0x482e('0x135')][_0x482e('0xf3')](_0x482e('0x13d'))['me'];for(const {suggestion:_0x14be26,meta:_0x40621a}of this[_0x482e('0x11e')](_0x34b21f,_0x482e('0x136')))if(_0x40621a['isOwn']){if(!_0x40621a[_0x482e('0x25')]){if(_0x40621a[_0x482e('0x120')]){if(!this[_0x482e('0xf8')]||!Pt(_0x14be26,_0x449abb))continue;return _0x14be26;}if(Pt(_0x14be26,_0x449abb))return _0x14be26;this['_breakSuggestionMarker'](_0x14be26,_0x34b21f[_0x482e('0x2f')],_0x34b21f[_0x482e('0x101')]);break;}if(_0x1c6258==_0x14be26[_0x482e('0xc8')]&&Pt(_0x14be26,_0x449abb)){const _0x5f484a=_0x14be26['getFirstRange']();return _0x5f484a['start'][_0x482e('0xb')](_0x34b21f[_0x482e('0x101')])?this['_setSuggestionRange'](_0x14be26,this['_model'][_0x482e('0x118')](_0x34b21f['start'],_0x5f484a[_0x482e('0x101')])):this[_0x482e('0x0')](_0x14be26,this[_0x482e('0xdd')]['createRange'](_0x5f484a['start'],_0x34b21f['end'])),_0x14be26;}}const _0x1b8869=_0x10d598(),_0x335eb5=_0x39649d['id'],_0x2eb42c=_0x1c6258?'insertion:'+_0x1c6258:_0x482e('0x136'),_0x35ca27=this[_0x482e('0x13b')]({'id':_0x1b8869,'type':_0x2eb42c,'createdAt':new Date(),'authorId':_0x335eb5,'attributes':_0x449abb});return this[_0x482e('0x130')](_0x2eb42c,_0x1b8869,_0x335eb5,_0x34b21f),_0x35ca27;}[_0x482e('0x156')](_0x5b77ef,_0x44cbe8=_0x482e('0xcb'),_0x3b70f7={}){const _0x19be3f=this['editor'][_0x482e('0x135')][_0x482e('0xf3')](_0x482e('0x13d'))['me'],_0x1137fc=this[_0x482e('0x6d')][_0x482e('0x173')]('insertion',_0x44cbe8,_0x482e('0xa'));for(const _0x2038fe of this['getSuggestions']())if(_0x2038fe[_0x482e('0xe0')]['id']==_0x19be3f['id']&&'insertion'==_0x2038fe[_0x482e('0x8')]&&_0x2038fe[_0x482e('0xc8')]==_0x44cbe8&&Pt(_0x2038fe,_0x3b70f7)&&(_0x1137fc(_0x2038fe['getRanges'](),_0x5b77ef)||_0x1137fc(_0x5b77ef,_0x2038fe['getRanges']()))){for(const _0x47060a of _0x5b77ef)_0x2038fe[_0x482e('0x149')](_0x47060a);return _0x2038fe;}for(const {suggestion:_0x28f668,meta:_0x5c6aad}of this[_0x482e('0x11e')](_0x5b77ef,'insertion')){if(!_0x5c6aad[_0x482e('0xd9')])continue;if(!this[_0x482e('0xf8')]&&_0x5c6aad[_0x482e('0x120')])continue;if(!Pt(_0x28f668,_0x3b70f7))continue;let _0x41f573=!0x0;for(const _0x19d354 of _0x28f668['getRanges']())for(const _0x3eba53 of _0x5b77ef)if(!_0x19d354['containsRange'](_0x3eba53)){_0x41f573=!0x1;break;}if(_0x41f573)return _0x28f668;}const _0x5d1347=_0x10d598(),_0x4e8a1f=_0x19be3f['id'],_0x237690=_0x482e('0x27')+_0x44cbe8,_0x58e7bf=this[_0x482e('0x13b')]({'id':_0x5d1347,'type':_0x237690,'createdAt':new Date(),'authorId':_0x4e8a1f,'attributes':_0x3b70f7});for(const _0x4eb7ff of _0x5b77ef)this['_addSuggestionMarker'](_0x237690,_0x5d1347,_0x4e8a1f,_0x4eb7ff,_0x28914f[_0x482e('0x115')]());return _0x58e7bf;}[_0x482e('0x15b')](_0x1910d8,_0x3762d2,_0x1d8cf4=null,_0x4d7f83={}){if(_0x1d8cf4=_0x1d8cf4||Et(_0x3762d2),_0x1910d8[_0x482e('0x20')])return null;if(_0x482e('0x127')===this[_0x482e('0x3')]){const _0x21ab34=this['_suggestionFactory'][_0x482e('0x173')](_0x482e('0x10d'),_0x1d8cf4,'accept');return this[_0x482e('0x59')](()=>_0x21ab34([_0x1910d8],_0x3762d2,_0x4d7f83)),null;}const _0x2119b2=this[_0x482e('0x12d')][_0x482e('0x135')]['get'](_0x482e('0x13d'))['me'],_0x5212d5=[];if(_0x482e('0x7d')!==this[_0x482e('0x3')])for(const {suggestion:_0x5af188,meta:_0x45ac38}of this[_0x482e('0x11e')](_0x1910d8,_0x482e('0x136')))_0x45ac38[_0x482e('0xd9')]&&!_0x45ac38[_0x482e('0x57')]&&_0x5212d5[_0x482e('0x141')](..._0x5af188[_0x482e('0x10')]());const _0x4649e1=function(_0x476eee,_0x981280){const _0x58b1d0=[];for(const _0x18b8a5 of _0x981280){const _0x20823d=_0x476eee['getIntersection'](_0x18b8a5);_0x20823d&&_0x58b1d0['push'](_0x20823d);}return _0x58b1d0;}(_0x1910d8,_0x5212d5),_0x30a125=function(_0x183130,_0x4e3a9e){const _0x29fb08=[_0x183130];for(const _0x4d60c0 of _0x4e3a9e){let _0x5aa0f7=0x0;for(;_0x5aa0f7<_0x29fb08['length'];){const _0x421bf2=_0x29fb08[_0x5aa0f7]['getDifference'](_0x4d60c0);_0x29fb08[_0x482e('0x12a')](_0x5aa0f7,0x1,..._0x421bf2),_0x5aa0f7+=_0x421bf2[_0x482e('0x9f')];}}return _0x29fb08;}(_0x1910d8,_0x5212d5);_0x4649e1[_0x482e('0x9f')]&&this[_0x482e('0xdd')][_0x482e('0xb4')](()=>{for(const _0x1d0c84 of _0x4649e1){const _0x1802b7=this[_0x482e('0x6d')]['getSuggestionCallback'](_0x482e('0x10d'),_0x1d8cf4,_0x482e('0x131'));this[_0x482e('0x59')](()=>_0x1802b7([_0x1d0c84],_0x3762d2,_0x4d7f83));}});for(const _0x25845d of _0x30a125){let _0x282568=null,_0x2bc079=_0x25845d[_0x482e('0x2f')],_0x132b37=_0x25845d[_0x482e('0x101')];for(const {suggestion:_0x5282b1,meta:_0xea3289}of this[_0x482e('0x11e')](_0x25845d,'formatInline')){if(!_0xea3289[_0x482e('0xd9')])continue;if(_0x5282b1[_0x482e('0xc8')]!=_0x1d8cf4)continue;if(!Pt(_0x5282b1,_0x4d7f83))continue;const _0x2d0700=_0x5282b1[_0x482e('0x80')]();if(_0x2d0700['containsRange'](_0x25845d,!0x0))return null;_0x2bc079=_0x2bc079['isBefore'](_0x2d0700['start'])?_0x2bc079:_0x2d0700[_0x482e('0x2f')],_0x132b37=_0x132b37['isAfter'](_0x2d0700[_0x482e('0x101')])?_0x132b37:_0x2d0700['end'],_0x282568?_0x2d0700[_0x482e('0x2f')][_0x482e('0x153')](_0x282568[_0x482e('0x80')]()[_0x482e('0x2f')])?(_0x282568['removeMarkers'](),_0x282568=_0x5282b1):_0x5282b1[_0x482e('0x18')]():_0x282568=_0x5282b1;}const _0x2bfa7b=this['_model'][_0x482e('0x118')](_0x2bc079,_0x132b37);if(_0x282568)this['_setSuggestionRange'](_0x282568,_0x2bfa7b);else{const _0xdc8003=_0x10d598(),_0x79fd12=_0x2119b2['id'];this['_setSuggestionData']({'id':_0xdc8003,'type':_0x482e('0x15')+_0x1d8cf4,'data':_0x3762d2,'createdAt':new Date(),'authorId':_0x79fd12,'attributes':_0x4d7f83}),this[_0x482e('0x130')](_0x482e('0x15')+_0x1d8cf4,_0xdc8003,_0x79fd12,_0x2bfa7b);}}return null;}[_0x482e('0xaf')](_0x2b2ab8,_0x563020,_0x4ad4ad=[],_0x1e0bbd=null,_0x3c2ba3={}){_0x563020[_0x482e('0x3d')]||(_0x563020['formatGroupId']=_0x563020[_0x482e('0x24')]),_0x563020[_0x482e('0xc7')]=_0x2b2ab8['is'](_0x482e('0x85')),_0x1e0bbd=_0x1e0bbd||Et(_0x563020);const _0x4ccd2b=_0x4ad4ad[_0x482e('0x162')](_0x4268ca=>Ot(_0x4268ca,this['_model'])),_0x53f70d=_0x2b2ab8['is'](_0x482e('0x85'))?_0x2b2ab8:Ot(_0x2b2ab8,this['_model']);if(_0x482e('0x127')===this[_0x482e('0x3')]){const _0x4cba28=this[_0x482e('0x6d')][_0x482e('0x173')]('formatBlock',_0x1e0bbd,_0x482e('0x131'));return this[_0x482e('0x59')](()=>_0x4cba28([_0x53f70d],_0x563020,_0x3c2ba3)),null;}_0x4ccd2b[_0x482e('0x141')](_0x53f70d);let _0x272599=!0x0;for(const _0x34b409 of _0x4ccd2b)if(!this[_0x482e('0xa6')](_0x34b409)){_0x272599=!0x1;break;}if(_0x272599&&_0x482e('0x7d')!==this[_0x482e('0x3')]){const _0x40c8bc=this['_suggestionFactory'][_0x482e('0x173')](_0x482e('0x5d'),_0x1e0bbd,'accept');return this[_0x482e('0x59')](()=>_0x40c8bc([_0x53f70d],_0x563020,_0x3c2ba3)),null;}let _0x432ed8=null,_0x2ecc83=_0x53f70d[_0x482e('0x2f')],_0x5f2507=_0x53f70d[_0x482e('0x101')];for(const {suggestion:_0x245b86,meta:_0x5bfbfb}of this[_0x482e('0x11e')](_0x53f70d,_0x482e('0x5d'))){if(!_0x5bfbfb[_0x482e('0xd9')])continue;if(_0x5bfbfb['isNextTo']||_0x5bfbfb[_0x482e('0x120')]||_0x5bfbfb[_0x482e('0x57')])continue;if(_0x245b86['data'][_0x482e('0x3d')]!=_0x563020['formatGroupId'])continue;if(!Pt(_0x245b86,_0x3c2ba3))continue;const _0x14606b=_0x245b86[_0x482e('0x80')]();if(_0x245b86[_0x482e('0xc8')]==_0x1e0bbd){if(_0x14606b['containsRange'](_0x53f70d,!0x0))return null;_0x2ecc83=_0x2ecc83[_0x482e('0x153')](_0x14606b[_0x482e('0x2f')])?_0x2ecc83:_0x14606b[_0x482e('0x2f')],_0x5f2507=_0x5f2507[_0x482e('0x138')](_0x14606b[_0x482e('0x101')])?_0x5f2507:_0x14606b['end'],_0x432ed8?_0x14606b['start']['isBefore'](_0x432ed8[_0x482e('0x80')]()['start'])?(_0x432ed8['removeMarkers'](),_0x432ed8=_0x245b86):_0x245b86[_0x482e('0x18')]():_0x432ed8=_0x245b86;}else{const _0x50029a=_0x53f70d[_0x482e('0xcc')](_0x14606b);this['_cutOutSuggestionMarker'](_0x245b86,_0x50029a);}}const _0x52fe3c=this[_0x482e('0x12d')][_0x482e('0x135')][_0x482e('0xf3')]('Users')['me'],_0x252dcf=_0x10d598(),_0x2296ab=_0x52fe3c['id'];if(_0x432ed8)return this['_setSuggestionRange'](_0x432ed8,this[_0x482e('0xdd')][_0x482e('0x118')](_0x2ecc83,_0x5f2507)),_0x432ed8;{const _0xdd8669=this[_0x482e('0x13b')]({'id':_0x252dcf,'type':_0x482e('0x92')+_0x1e0bbd,'data':_0x563020,'createdAt':new Date(),'authorId':_0x2296ab,'attributes':_0x3c2ba3});return this[_0x482e('0x130')]('formatBlock:'+_0x1e0bbd,_0x252dcf,_0x2296ab,this['_model']['createRange'](_0x2ecc83,_0x5f2507)),_0xdd8669;}}[_0x482e('0xe')](_0x11258e,_0x2b4870,_0x1a96e3=[],_0x4dbf78=null,_0x3a8101={}){_0x2b4870[_0x482e('0x3d')]||(_0x2b4870[_0x482e('0x3d')]=_0x2b4870[_0x482e('0x24')]);const _0x22a390=_0x11258e[0x0];_0x2b4870['multipleBlocks']=_0x22a390['is'](_0x482e('0x85')),_0x4dbf78=_0x4dbf78||Et(_0x2b4870);const _0x2e7f45=_0x1a96e3[_0x482e('0x162')](_0x1bdd0f=>Ot(_0x1bdd0f,this[_0x482e('0xdd')])),_0x4be9ab=_0x22a390['is'](_0x482e('0x85'))?_0x11258e:_0x11258e[_0x482e('0x162')](_0x10dc0c=>Ot(_0x10dc0c,this['_model']));if(_0x482e('0x127')===this[_0x482e('0x3')]){const _0x11bc43=this[_0x482e('0x6d')][_0x482e('0x173')](_0x482e('0x5d'),_0x4dbf78,'accept');return this['forceDefaultExecution'](()=>_0x11bc43(_0x4be9ab,_0x2b4870,_0x3a8101)),null;}_0x2e7f45[_0x482e('0x141')](..._0x4be9ab);let _0x34554a=!0x0;for(const _0x511997 of _0x2e7f45)if(!this[_0x482e('0xa6')](_0x511997)){_0x34554a=!0x1;break;}if(_0x34554a&&_0x482e('0x7d')!==this['_trackFormatChanges']){const _0x60411=this[_0x482e('0x6d')][_0x482e('0x173')](_0x482e('0x5d'),_0x4dbf78,_0x482e('0x131'));return this[_0x482e('0x59')](()=>_0x60411(_0x4be9ab,_0x2b4870,_0x3a8101)),null;}const _0x3cce2c=this[_0x482e('0x12d')][_0x482e('0x135')]['get'](_0x482e('0x13d'))['me'];for(const _0x2d1ef5 of this[_0x482e('0xac')]()){if(_0x2d1ef5[_0x482e('0xe0')]['id']!=_0x3cce2c['id'])continue;if('formatBlock'!=_0x2d1ef5[_0x482e('0x8')]||_0x2d1ef5['data'][_0x482e('0x3d')]!=_0x2b4870[_0x482e('0x3d')])continue;if(!Pt(_0x2d1ef5,_0x3a8101))continue;const _0x16f51d=_0x2d1ef5[_0x482e('0xc8')]==_0x4dbf78;for(let _0x4e876e=0x0;_0x4e876e<_0x4be9ab['length'];_0x4e876e++){const _0xb27bcc=_0x4be9ab[_0x4e876e];for(const _0x35b826 of _0x2d1ef5[_0x482e('0x55')]()){const _0x3a1342=_0x35b826['getRange']();if(_0xb27bcc['isEqual'](_0x3a1342)){_0x16f51d?(_0x4be9ab['splice'](_0x4e876e,0x1),_0x4e876e--):_0x2d1ef5['removeMarker'](_0x35b826[_0x482e('0x10a')]);break;}}}}if(0x0==_0x4be9ab['length'])return null;const _0x5a1fed=this[_0x482e('0x6d')]['getSuggestionCallback'](_0x482e('0x5d'),_0x4dbf78,'join');for(const _0x2a91bf of this[_0x482e('0xac')]())if(_0x2a91bf[_0x482e('0xe0')]['id']==_0x3cce2c['id']&&_0x482e('0x5d')==_0x2a91bf[_0x482e('0x8')]&&_0x2a91bf[_0x482e('0xa4')][_0x482e('0x3d')]==_0x2b4870['formatGroupId']&&_0x2a91bf[_0x482e('0xc8')]==_0x4dbf78&&Pt(_0x2a91bf,_0x3a8101)&&(_0x5a1fed(_0x2a91bf[_0x482e('0x10')](),_0x4be9ab)||_0x5a1fed(_0x4be9ab,_0x2a91bf[_0x482e('0x10')]()))){for(const _0x1d59a8 of _0x4be9ab)_0x2a91bf[_0x482e('0x149')](_0x1d59a8);return _0x2a91bf;}const _0x11cf96=_0x10d598(),_0xa84cc0=_0x3cce2c['id'],_0x1c8ae1='formatBlock:'+_0x4dbf78,_0x4900e0=this[_0x482e('0x13b')]({'id':_0x11cf96,'type':_0x1c8ae1,'data':_0x2b4870,'createdAt':new Date(),'authorId':_0xa84cc0,'attributes':_0x3a8101});for(const _0x2c87be of _0x4be9ab)this[_0x482e('0x130')](_0x1c8ae1,_0x11cf96,_0xa84cc0,_0x2c87be,_0x28914f[_0x482e('0x115')]());return _0x4900e0;}['markDeletion'](_0x5c2c2a,_0x371e5c=null,_0x1c7972={}){if(_0x5c2c2a['isCollapsed'])return null;const _0x1f690c=this['editor'][_0x482e('0x135')][_0x482e('0xf3')](_0x482e('0x13d'))['me'],_0x3df111=new _0x5be075(_0x5c2c2a[_0x482e('0x2f')],_0x5c2c2a[_0x482e('0x101')]);for(const {suggestion:_0x474a02,meta:_0x253431}of this[_0x482e('0x11e')](_0x3df111,'insertion'))if(_0x253431[_0x482e('0xd9')]&&!_0x253431['isNextTo']){if(_0x474a02[_0x482e('0x159')]){const _0x28c818=_0x474a02[_0x482e('0x10')]()[_0x482e('0x7a')](_0x47c082=>_0x482e('0x132')!=_0x47c082['root'][_0x482e('0xb2')]);_0x28c818[_0x482e('0x147')](_0x255244=>_0x3df111[_0x482e('0xc9')](_0x255244,!0x0))&&_0x474a02[_0x482e('0xb8')]();if(_0x28c818[_0x482e('0x11a')](_0xe94537=>_0xe94537['containsRange'](_0x3df111,!0x0))){const _0x3a3134=this['_suggestionFactory'][_0x482e('0x173')](_0x482e('0x56'),_0x371e5c,_0x482e('0x131'));return this[_0x482e('0x59')](()=>_0x3a3134([_0x3df111],null,_0x1c7972)),null;}}else{const _0x1cbf79=_0x3df111[_0x482e('0xcc')](_0x474a02['getFirstRange']());null!==_0x1cbf79&&_0x474a02[_0x482e('0xc6')]([_0x1cbf79],null,_0x1c7972);}}if(_0x3df111[_0x482e('0x10f')](),_0x3df111[_0x482e('0x20')]||_0x482e('0x132')==_0x3df111[_0x482e('0x111')][_0x482e('0xb2')])return null;let _0x24616c=null,_0x5cfccb=_0x3df111[_0x482e('0x2f')],_0x15e07d=_0x3df111['end'];const _0x366e96=this['_findSuggestions'](_0x3df111,_0x482e('0x56'));for(const {suggestion:_0x39455f,meta:_0x36bb4e}of _0x366e96){const _0x3e8852=this['_model'][_0x482e('0x118')](_0x5cfccb,_0x15e07d);if(_0x36bb4e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x36bb4e['containsRangeInObject']&&!_0x36bb4e['isInsideObject'])){if(_0x39455f[_0x482e('0x159')]){if(!Pt(_0x39455f,_0x1c7972))continue;let _0x412025=!0x0;for(const _0x58e5fc of _0x39455f[_0x482e('0x10')]()){if(_0x58e5fc[_0x482e('0xc9')](_0x3e8852,!0x0))return _0x39455f;_0x3e8852[_0x482e('0xc9')](_0x58e5fc)||(_0x412025=!0x1);}_0x412025&&_0x39455f[_0x482e('0xb8')]();}else{const _0x580ca8=_0x39455f['getFirstRange']();if(_0x580ca8[_0x482e('0xc9')](_0x3e8852,!0x0))return _0x39455f;if(!Pt(_0x39455f,_0x1c7972)){_0x3e8852[_0x482e('0xc9')](_0x580ca8)?_0x39455f[_0x482e('0x18')]():_0x580ca8[_0x482e('0xd4')](_0x5cfccb)?_0x5cfccb=_0x580ca8[_0x482e('0x101')]:_0x580ca8['containsPosition'](_0x15e07d)&&(_0x15e07d=_0x580ca8[_0x482e('0x2f')]);continue;}_0x5cfccb=_0x5cfccb[_0x482e('0x153')](_0x580ca8[_0x482e('0x2f')])?_0x5cfccb:_0x580ca8[_0x482e('0x2f')],_0x15e07d=_0x15e07d[_0x482e('0x138')](_0x580ca8['end'])?_0x15e07d:_0x580ca8['end'],_0x1c7972=Object[_0x482e('0x33')]({},_0x39455f[_0x482e('0xa2')]),_0x24616c?_0x580ca8['start']['isBefore'](_0x24616c[_0x482e('0x80')]()[_0x482e('0x2f')])?(_0x24616c[_0x482e('0x18')](),_0x24616c=_0x39455f):_0x39455f[_0x482e('0x18')]():_0x24616c=_0x39455f;}}}if(_0x24616c)return this[_0x482e('0x0')](_0x24616c,this[_0x482e('0xdd')][_0x482e('0x118')](_0x5cfccb,_0x15e07d)),_0x24616c;{const _0x377eb6=_0x10d598(),_0x5a6939=this['_model']['createRange'](_0x5cfccb,_0x15e07d),_0x5ee5ba=_0x1f690c['id'],_0x26e33c=_0x371e5c?_0x482e('0x23')+_0x371e5c:'deletion',_0x29aaa5=this[_0x482e('0x13b')]({'id':_0x377eb6,'type':_0x26e33c,'createdAt':new Date(),'authorId':_0x5ee5ba,'attributes':_0x1c7972});return this[_0x482e('0x130')](_0x26e33c,_0x377eb6,_0x5ee5ba,_0x5a6939),_0x29aaa5;}}[_0x482e('0x114')](_0x196f92,_0x223772=_0x482e('0xcb'),_0x31f56f={}){const _0x11662a=this[_0x482e('0x12d')][_0x482e('0x135')][_0x482e('0xf3')](_0x482e('0x13d'))['me'],_0x25162d=_0x196f92[_0x482e('0x162')](_0x14d778=>new _0x5be075(_0x14d778['start'],_0x14d778['end'])),_0x363d20=new Set();for(const {suggestion:_0x5c083d,meta:_0x20921b}of this[_0x482e('0x11e')](_0x25162d,'insertion'))_0x20921b['isOwn']&&!_0x20921b[_0x482e('0x25')]&&_0x363d20[_0x482e('0x58')](_0x5c083d);for(const _0x2af5ad of _0x363d20)if(_0x2af5ad[_0x482e('0x159')]){const _0x15373b=_0x2af5ad[_0x482e('0x10')]();(!_0x2af5ad[_0x482e('0xa2')]||!_0x2af5ad[_0x482e('0xa2')][_0x482e('0x9')])&&(_0x15373b[_0x482e('0x147')](_0x2ef86b=>_0x25162d[_0x482e('0x11a')](_0x4f60de=>_0x4f60de[_0x482e('0xc9')](_0x2ef86b,!0x0)))&&_0x2af5ad[_0x482e('0xb8')]());if(_0x25162d[_0x482e('0x147')](_0x2a868e=>_0x15373b[_0x482e('0x11a')](_0x288a9b=>_0x288a9b[_0x482e('0xc9')](_0x2a868e,!0x0)))){const _0x2022a5=this['_suggestionFactory'][_0x482e('0x173')](_0x482e('0x56'),_0x223772,'accept');return this[_0x482e('0x59')](()=>_0x2022a5(_0x196f92,null,_0x31f56f)),null;}}else{const _0x67d788=_0x2af5ad[_0x482e('0x80')]();_0x25162d[_0x482e('0x11a')](_0x25e887=>_0x25e887[_0x482e('0xc9')](_0x67d788,!0x0))&&_0x2af5ad['discard']();if(_0x25162d['every'](_0x487e60=>_0x67d788[_0x482e('0xc9')](_0x487e60,!0x0))){const _0x4cea1f=this[_0x482e('0x6d')][_0x482e('0x173')](_0x482e('0x56'),_0x223772,_0x482e('0x131'));return this[_0x482e('0x59')](()=>_0x4cea1f(_0x25162d,null,_0x31f56f)),null;}}const _0x2d94ae=this[_0x482e('0x6d')][_0x482e('0x173')](_0x482e('0x56'),_0x223772,_0x482e('0xa'));let _0x252161=null;for(const _0x1f9fb4 of this['getSuggestions']())if(_0x1f9fb4[_0x482e('0xe0')]['id']==_0x11662a['id']&&_0x1f9fb4['isInContent']&&_0x482e('0x56')==_0x1f9fb4[_0x482e('0x8')]&&_0x1f9fb4[_0x482e('0xc8')]==_0x223772&&Pt(_0x1f9fb4,_0x31f56f)&&(_0x2d94ae(_0x1f9fb4[_0x482e('0x10')](),_0x25162d)||_0x2d94ae(_0x25162d,_0x1f9fb4['getRanges']()))){if(_0x252161){if(_0x1f9fb4[_0x482e('0x15f')]&&_0x1f9fb4[_0x482e('0x15f')][_0x482e('0x9f')])continue;for(const _0x55005d of _0x1f9fb4[_0x482e('0x10')]())_0x252161[_0x482e('0xdb')](_0x55005d)||_0x252161[_0x482e('0x149')](_0x55005d);_0x1f9fb4[_0x482e('0x18')]();}else{_0x252161=_0x1f9fb4;for(const _0x3efcee of _0x25162d)_0x1f9fb4['isIntersectingWithRange'](_0x3efcee)||_0x1f9fb4[_0x482e('0x149')](_0x3efcee);}}if(_0x252161)return _0x252161;_0x363d20['clear']();for(const {suggestion:_0xcdb4f9,meta:_0x468a27}of this['_findSuggestions'](_0x25162d,_0x482e('0x56')))_0x468a27['isOwn']&&(this[_0x482e('0xf8')]||!_0x468a27['containsRangeInObject']&&!_0x468a27['isInsideObject'])&&Pt(_0xcdb4f9,_0x31f56f)&&_0x363d20[_0x482e('0x58')](_0xcdb4f9);for(const _0x306724 of _0x363d20){const _0x4e4c8a=_0x306724[_0x482e('0x10')]();if(!_0x31f56f||!_0x31f56f[_0x482e('0x9')]){if(_0x25162d[_0x482e('0x147')](_0x3824d9=>_0x4e4c8a['some'](_0x14a15d=>_0x14a15d[_0x482e('0xc9')](_0x3824d9,!0x0))))return _0x306724;}(!_0x306724[_0x482e('0xa2')]||!_0x306724[_0x482e('0xa2')][_0x482e('0x9')])&&(_0x4e4c8a['every'](_0x2c98dc=>_0x25162d[_0x482e('0x11a')](_0x461f8f=>_0x461f8f[_0x482e('0xc9')](_0x2c98dc,!0x0)))&&_0x306724[_0x482e('0xb8')]());}const _0x28b444=_0x10d598(),_0x2d177f=_0x11662a['id'],_0x1b9fc4=_0x482e('0x23')+_0x223772,_0x550ab3=this[_0x482e('0x13b')]({'id':_0x28b444,'type':_0x1b9fc4,'createdAt':new Date(),'authorId':_0x2d177f,'attributes':_0x31f56f});for(const _0x2d4952 of _0x25162d)_0x2d4952['detach'](),_0x2d4952[_0x482e('0x20')]||_0x482e('0x132')==_0x2d4952[_0x482e('0x111')]['rootName']||this[_0x482e('0x130')](_0x1b9fc4,_0x28b444,_0x2d177f,_0x2d4952,_0x28914f[_0x482e('0x115')]());return _0x550ab3;}[_0x482e('0xde')](_0x939e2b,_0xdef8b0,_0xc19140,_0x4a35fd,_0x9118c6){if(_0x939e2b[_0x482e('0x20')])return[];if(_0x482e('0x127')===this[_0x482e('0x3')])return[];const _0x457033=this[_0x482e('0x12d')][_0x482e('0x135')][_0x482e('0xf3')]('Users')['me']['id'],_0x36a703=Array[_0x482e('0x100')](this[_0x482e('0x11d')][_0x482e('0xef')]())[_0x482e('0x7a')](_0x57b474=>_0x482e('0x145')==_0x57b474[_0x482e('0x8')]&&_0x57b474[_0x482e('0xa4')][_0x482e('0x63')]==_0xdef8b0&&_0x57b474[_0x482e('0xdb')](_0x939e2b));if(_0x482e('0x3e')===this[_0x482e('0x3')]){const _0x2da7f2=this['_findSuggestions'](_0x939e2b,_0x482e('0x136'))[_0x482e('0x7a')](({meta:_0x528347})=>_0x528347[_0x482e('0xd9')]&&!_0x528347['isInsideObject']&&!_0x528347[_0x482e('0x25')])[_0x482e('0x162')](({suggestion:_0x41d18c})=>_0x41d18c);_0x36a703['unshift'](..._0x2da7f2);}const _0x348ce7=new Map([[_0x939e2b,_0xc19140]]);for(const _0x313d45 of _0x36a703){const _0x56e70f='attribute'==_0x313d45['type']?_0x313d45[_0x482e('0xa4')][_0x482e('0xfc')]:void 0x0,_0x349c36=_0x313d45[_0x482e('0x80')](),_0x217287=Array[_0x482e('0x100')](_0x348ce7['keys']())['find'](_0x3e70c7=>_0x3e70c7[_0x482e('0x12f')](_0x349c36));if(!_0x217287)continue;const _0xdeae96=_0x217287[_0x482e('0x14')](_0x349c36);this[_0x482e('0x9d')](_0xdef8b0)&&'insertion'==_0x313d45[_0x482e('0x8')]&&0x0!=_0xdeae96[_0x482e('0x9f')]||(_0x348ce7['delete'](_0x217287),_0xdeae96[_0x482e('0xb6')](_0x33d7bc=>{_0x348ce7[_0x482e('0x48')](_0x33d7bc,_0xc19140);}),_0x482e('0x136')!=_0x313d45[_0x482e('0x8')]&&_0x56e70f!=_0x4a35fd&&_0x348ce7[_0x482e('0x48')](_0x217287[_0x482e('0xcc')](_0x349c36),_0x56e70f));}const _0x20813d=[];for(const [_0x1bd1df,_0x21ff64]of _0x348ce7){const _0x2f1ade=_0x10d598(),_0x50bb1f={'key':_0xdef8b0,'oldValue':_0x21ff64,'newValue':_0x4a35fd};_0xdef8b0[_0x482e('0x9f')]>0x25&&console[_0x482e('0x99')](_0x482e('0x5b'),{'key':_0xdef8b0});const _0x4c2312=(_0x482e('0x146')+(_0xdef8b0+'|'+Et({'newValue':_0x4a35fd})))['substring'](0x0,0x3c),_0x19b0c0=this['_setSuggestionData']({'id':_0x2f1ade,'type':_0x4c2312,'data':_0x50bb1f,'createdAt':new Date(),'authorId':_0x457033,'attributes':_0x9118c6});_0x20813d[_0x482e('0x141')](_0x19b0c0),this[_0x482e('0x130')](_0x4c2312,_0x2f1ade,_0x457033,_0x1bd1df);}return _0x20813d;}['_registerBlockAttribute'](_0x4de922){this[_0x482e('0x1')][_0x482e('0x58')](_0x4de922);}[_0x482e('0x110')](_0x555aea){this['_inlineAttributeKeys']['add'](_0x555aea);}[_0x482e('0x94')](_0x4fb46b,_0x59b372=[],_0x41baf5=[]){this[_0x482e('0x76')](_0x4fb46b,(_0x240f6d,..._0x5cb6af)=>{this[_0x482e('0x16c')](()=>{_0x240f6d(..._0x5cb6af);});});for(const _0x5cfa2c of _0x59b372)this[_0x482e('0x110')](_0x5cfa2c);for(const _0x3ce2a4 of _0x41baf5)this[_0x482e('0x40')](_0x3ce2a4);}[_0x482e('0x4f')](_0x3afd10){return _0x482e('0x145')==_0x3afd10[_0x482e('0x8')]?_0x3afd10[_0x482e('0xc8')][_0x482e('0x1c')]('|')[0x0]:null;}[_0x482e('0x0')](_0x15a9a6,_0x349ad9){const _0x21ab4e=_0x15a9a6['getFirstMarker']();this[_0x482e('0xdd')]['change'](_0x5e6224=>{_0x5e6224[_0x482e('0x86')](_0x21ab4e,{'range':_0x349ad9});});}[_0x482e('0x95')](_0x4cc6c6){const _0x4a2366=_0x4cc6c6['id'],_0x246d6a=this[_0x482e('0x12d')][_0x482e('0xf2')]['get'](_0x482e('0x5'));this[_0x482e('0x77')][_0x482e('0xfd')](_0x4a2366)||this[_0x482e('0x77')][_0x482e('0x134')]({'channelId':_0x246d6a,'threadId':_0x4a2366,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f2f6e=this['_commentsRepository'][_0x482e('0x5f')](_0x4a2366);_0x3f2f6e[_0x482e('0x6')](_0x482e('0x172')),_0x3f2f6e['isRemovable']=!0x1,_0x4cc6c6[_0x482e('0x15f')]=_0x3f2f6e;}[_0x482e('0x8e')](_0xe38152,_0x224d58,_0x3c58bd,_0x346300){if(_0xe38152['type']!=_0x224d58||_0xe38152['subType']!=_0x3c58bd||_0xe38152[_0x482e('0x12c')]['id']!=_0x346300)throw this['editor'][_0x482e('0xd0')](_0x482e('0xa9')),new _0x101e5f('track-changes-suggestion-data-mismatch',this);}[_0x482e('0xab')](_0x4078e5,_0x29b3ee){const _0x411e7a=_0x4078e5[_0x482e('0x80')]();if(_0x29b3ee[_0x482e('0xb')](_0x411e7a))_0x4078e5['removeMarkers']();else{if(_0x411e7a[_0x482e('0xc9')](_0x29b3ee)){const _0x3c414b=this[_0x482e('0xdd')][_0x482e('0x75')](_0x29b3ee['start'][_0x482e('0xa0')],_0x482e('0x101'));this['_setSuggestionRange'](_0x4078e5,this[_0x482e('0xdd')][_0x482e('0x118')](_0x411e7a[_0x482e('0x2f')],_0x3c414b));const _0x51e097=_0x10d598(),_0x456077=_0x4078e5['creator']['id'],_0x4fc5e9=_0x4078e5['type']+':'+_0x4078e5[_0x482e('0xc8')];this['_setSuggestionData']({'id':_0x51e097,'type':_0x4fc5e9,'createdAt':new Date(),'authorId':_0x456077,'data':_0x4078e5['data'],'attributes':_0x4078e5[_0x482e('0xa2')]});const _0x3d79c7=this[_0x482e('0xdd')][_0x482e('0x75')](_0x29b3ee[_0x482e('0x101')][_0x482e('0x19')],_0x482e('0xa8')),_0x32c2c4=this[_0x482e('0xdd')][_0x482e('0x118')](_0x3d79c7,_0x411e7a[_0x482e('0x101')]);this[_0x482e('0x130')](_0x4fc5e9,_0x51e097,_0x456077,_0x32c2c4);}else{if(_0x411e7a[_0x482e('0xd4')](_0x29b3ee[_0x482e('0x2f')])){const _0x3f4e0c=this[_0x482e('0xdd')]['createPositionAt'](_0x29b3ee[_0x482e('0x2f')][_0x482e('0xa0')],_0x482e('0x101'));this[_0x482e('0x0')](_0x4078e5,this['_model'][_0x482e('0x118')](_0x411e7a[_0x482e('0x2f')],_0x3f4e0c));}else{const _0xd2dde2=this[_0x482e('0xdd')]['createPositionAt'](_0x29b3ee[_0x482e('0x101')]['parent'],_0x482e('0xa8'));this[_0x482e('0x0')](_0x4078e5,this['_model']['createRange'](_0xd2dde2,_0x411e7a[_0x482e('0x101')]));}}}}[_0x482e('0xa6')](_0x5d0eed){for(const {suggestion:_0xa52002,meta:_0x1aea7d}of this[_0x482e('0x11e')](_0x5d0eed,_0x482e('0x136'))){if(!_0x1aea7d[_0x482e('0xd9')])continue;const _0x92f8b8=_0xa52002[_0x482e('0x10')]();for(const _0x1550c4 of _0x92f8b8)if(!_0x5d0eed[_0x482e('0x14')](_0x1550c4)[_0x482e('0x9f')])return!0x0;}return!0x1;}[_0x482e('0xb1')](_0xa022ef){const _0x355f5e=this[_0x482e('0x12d')]['plugins'][_0x482e('0xf3')](_0x482e('0x13d'))[_0x482e('0x7c')](_0xa022ef);if(!_0x355f5e)throw new _0x101e5f(_0x482e('0x29'),this);return _0x355f5e;}[_0x482e('0x137')](_0x17721c){const _0x2e9c39=this[_0x482e('0x12d')][_0x482e('0x135')][_0x482e('0xf3')]('Users'),_0x5603e3=_0x30c611(_0x482e('0x13')+_0x17721c),_0x433f3b=_0x2e9c39[_0x482e('0x7c')](_0x5603e3);return _0x433f3b||_0x2e9c39[_0x482e('0x4b')]({'id':_0x5603e3,'name':_0x17721c});}[_0x482e('0x8a')](_0x5b93a9,_0x1d21c3,_0x27d6c3,_0x99ea8d,_0x20cfaf){const _0x4bd4d8=this['_getAuthorFromId'](_0x99ea8d),_0x274153=this[_0x482e('0x6d')][_0x482e('0xbf')](_0x5b93a9,_0x1d21c3,_0x27d6c3,_0x4bd4d8,_0x20cfaf,_0x5de82d=>{this['_updateSuggestionData'](_0x27d6c3,{'attributes':_0x5de82d});const _0x50bd94=this[_0x482e('0x107')](_0x27d6c3);this[_0x482e('0x89')](new Set([_0x50bd94])),this[_0x482e('0x10c')](new Set([_0x50bd94]));});return this['listenTo'](_0x274153,_0x482e('0x131'),()=>{this[_0x482e('0x37')](_0x27d6c3,{'state':_0x482e('0x5e')});},{'priority':_0x482e('0x45')}),this[_0x482e('0xeb')](_0x274153,_0x482e('0xb8'),()=>{this[_0x482e('0x37')](_0x27d6c3,{'state':'rejected'});},{'priority':_0x482e('0x45')}),this[_0x482e('0x11d')][_0x482e('0x48')](_0x27d6c3,_0x274153),this['_suggestionState'][_0x482e('0x48')](_0x274153,'notReady'),_0x274153;}[_0x482e('0x126')](_0x5d1682){const _0x378cbc=_0x5d1682[_0x482e('0x1c')](':');return{'group':_0x378cbc[0x0],'type':_0x378cbc[0x1],'subType':_0x378cbc[_0x482e('0x9f')]>=0x5?_0x378cbc[0x2]:null,'id':_0x378cbc[_0x482e('0x9f')]<0x5?_0x378cbc[0x2]:_0x378cbc[0x3],'authorId':_0x378cbc[_0x482e('0x9f')]<0x5?_0x378cbc[0x3]:_0x378cbc[0x4],'markerCount':0x6==_0x378cbc[_0x482e('0x9f')]?_0x378cbc[0x5]:null};}[_0x482e('0x74')](_0x509b12,_0x3ebb81,_0x1d90e){const _0x23f5c0=_0x509b12[_0x482e('0x80')](),_0x3741b8=_0x23f5c0[_0x482e('0x2f')],_0x1cf238=_0x23f5c0[_0x482e('0x101')];this['_setSuggestionRange'](_0x509b12,this[_0x482e('0xdd')]['createRange'](_0x3741b8,_0x3ebb81));const _0x1c71fe=_0x10d598(),_0x2863df=_0x509b12[_0x482e('0x12c')]['id'],_0x27820f=_0x509b12['type']+(_0x509b12[_0x482e('0xc8')]?':'+_0x509b12['subType']:'');this[_0x482e('0x13b')]({'id':_0x1c71fe,'type':_0x27820f,'createdAt':new Date(),'authorId':_0x2863df,'originalSuggestionId':_0x509b12['id'],'attributes':_0x509b12[_0x482e('0xa2')],'data':_0x509b12[_0x482e('0xa4')]});const _0xe11e2c=this[_0x482e('0x4f')](_0x509b12);('formatBlock'==_0x509b12['type']||_0xe11e2c&&this[_0x482e('0x9d')](_0xe11e2c))&&(_0x1d90e=this['_model'][_0x482e('0x8f')](_0x1d90e[_0x482e('0x19')])),this[_0x482e('0x130')](_0x27820f,_0x1c71fe,_0x2863df,this[_0x482e('0xdd')][_0x482e('0x118')](_0x1d90e,_0x1cf238));}[_0x482e('0x11e')](_0x17bb53,_0x395e92=null){const _0x17cf99=[],_0x1738a=this[_0x482e('0x12d')]['plugins'][_0x482e('0xf3')](_0x482e('0x13d'))['me'];Array[_0x482e('0xcd')](_0x17bb53)||(_0x17bb53=[_0x17bb53]);for(const _0x3da3c4 of this[_0x482e('0xac')]()){if(!_0x3da3c4[_0x482e('0xe6')])continue;if(_0x395e92&&_0x3da3c4[_0x482e('0x8')]!=_0x395e92)continue;let _0x26556f=!0x1;for(const _0x3ef821 of _0x3da3c4['getRanges']()){for(const _0x2c9c32 of _0x17bb53){const _0x386b5b=_0x2c9c32['start']['isEqual'](_0x3ef821['end'])||_0x2c9c32['end'][_0x482e('0xb')](_0x3ef821[_0x482e('0x2f')]);if(_0x386b5b||_0x2c9c32[_0x482e('0xcc')](_0x3ef821)){const _0x31b394=_0x2c9c32[_0x482e('0xc9')](_0x3ef821)&&xt(this['_model'][_0x482e('0x11')],_0x3ef821['start'],_0x2c9c32),_0x5c3aae=_0x3ef821[_0x482e('0xc9')](_0x2c9c32)&&xt(this[_0x482e('0xdd')]['schema'],_0x2c9c32[_0x482e('0x2f')],_0x3ef821);_0x17cf99[_0x482e('0x141')]({'suggestion':_0x3da3c4,'meta':{'isOwn':_0x1738a==_0x3da3c4['author'],'isNextTo':_0x386b5b,'isInsideObject':_0x31b394,'containsRangeInObject':_0x5c3aae}}),_0x26556f=!0x0;break;}}if(_0x26556f)break;}}return _0x17cf99;}['_addSuggestionMarker'](_0x115ee1,_0x1e9d35,_0x233778,_0x167392,_0x5a942d){this['_model'][_0x482e('0xb4')](_0x3c63db=>{let _0x39966d='suggestion:'+_0x115ee1+':'+_0x1e9d35+':'+_0x233778;_0x5a942d&&(_0x39966d=_0x39966d+':'+_0x5a942d),_0x3c63db[_0x482e('0xfe')](_0x39966d,{'range':_0x167392,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x482e('0x161')](_0x14fdff){const _0x2dd10b=_0x14fdff[_0x482e('0x6f')],_0x51aff2=_0x14fdff[_0x482e('0x83')];_0x14fdff[_0x482e('0x6f')]=null,_0x14fdff['next']=null,null!=_0x2dd10b&&_0x2dd10b[_0x482e('0x83')]==_0x14fdff&&(_0x2dd10b[_0x482e('0x83')]=_0x51aff2),null!=_0x51aff2&&_0x51aff2[_0x482e('0x6f')]==_0x14fdff&&(_0x51aff2[_0x482e('0x6f')]=_0x2dd10b),_0x482e('0x160')==this[_0x482e('0x35')][_0x482e('0xf3')](_0x14fdff)&&(this['_suggestionState'][_0x482e('0x48')](_0x14fdff,_0x482e('0xbd')),this[_0x482e('0xa7')](_0x482e('0xae'),_0x14fdff,_0x2dd10b,_0x51aff2));}[_0x482e('0x13b')](_0x3859af){const _0x1ff8ec=_0x3859af['id'],_0x1fe128=this['addSuggestionData'](_0x3859af);if(this[_0x482e('0x2')]&&this[_0x482e('0x2')][_0x482e('0xdc')]){const _0x4cc179=this['editor'][_0x482e('0x135')][_0x482e('0xf3')]('PendingActions'),_0x339596=_0x1fe128['hasComments'],_0x45f105=_0x1fe128[_0x482e('0xc8')]?_0x1fe128[_0x482e('0x8')]+':'+_0x1fe128[_0x482e('0xc8')]:_0x1fe128['type'],_0x340bf7=this[_0x482e('0x12d')]['locale'],_0x43fea5=_0x4cc179[_0x482e('0x58')](_0x1df92a(_0x340bf7,'PENDING_ACTION_SUGGESTION')),_0x5a6d9d={'id':_0x1ff8ec,'type':_0x45f105,'hasComments':_0x339596,'data':_0x3859af[_0x482e('0xa4')]||null,'originalSuggestionId':_0x3859af[_0x482e('0x41')]||null,'attributes':_0x1fe128[_0x482e('0xa2')]};this[_0x482e('0x2')][_0x482e('0xdc')](_0x5a6d9d)[_0x482e('0x52')](_0x30a1a3=>{_0x1fe128['_saved']=!0x0,_0x4cc179[_0x482e('0xda')](_0x43fea5),_0x30a1a3&&_0x30a1a3[_0x482e('0xe2')]&&(this[_0x482e('0x11d')][_0x482e('0xf3')](_0x1ff8ec)[_0x482e('0xe2')]=_0x30a1a3[_0x482e('0xe2')]);})[_0x482e('0x4c')](_0x20c347=>{throw _0x207c48('error-saving-suggestion-data-suggestion-discarded'),this[_0x482e('0x12d')][_0x482e('0xbc')][_0x482e('0x14f')]({'isUndoable':!0x1},()=>{_0x1fe128[_0x482e('0xb8')]();}),_0x1fe128['stopListening'](),this[_0x482e('0x11d')][_0x482e('0x10b')](_0x1fe128['id']),this['_suggestionState'][_0x482e('0x10b')](_0x1fe128),_0x20c347;});}return _0x1fe128;}[_0x482e('0x9d')](_0xecc511){return this[_0x482e('0x1')][_0x482e('0x7b')](_0xecc511);}['_updateSuggestionData'](_0x299f26,_0x5db3d0){const _0x4d98a2=this[_0x482e('0x12d')]['plugins']['get']('PendingActions'),_0x2ed61b=this['getSuggestion'](_0x299f26);if(this[_0x482e('0x2')]&&this[_0x482e('0x2')][_0x482e('0x47')]){if(_0x2ed61b[_0x482e('0x51')]){const _0x3e2d66=_0x4d98a2['add'](_0x1df92a(this[_0x482e('0x12d')][_0x482e('0xc')],'PENDING_ACTION_SUGGESTION'));this[_0x482e('0x2')][_0x482e('0x47')](_0x299f26,_0x5db3d0)[_0x482e('0x52')](()=>{_0x4d98a2[_0x482e('0xda')](_0x3e2d66);});}else _0x2ed61b['on'](_0x482e('0x34'),()=>{this[_0x482e('0x37')](_0x299f26,_0x5db3d0);});}}[_0x482e('0x11b')](_0x170814){if(!this[_0x482e('0x2')]||!this['_adapter']['getSuggestion'])throw new _0x101e5f(_0x482e('0x13c'),this);return this[_0x482e('0x2')]['getSuggestion'](_0x170814);}[_0x482e('0xbb')](_0xef3b89){const {id:_0x4a2e3b,type:_0x49b14f,subType:_0x1479a2,authorId:_0x222636}=this[_0x482e('0x126')](_0xef3b89),_0x47b81c=this[_0x482e('0x11d')][_0x482e('0xf3')](_0x4a2e3b)||this[_0x482e('0x8a')](_0x49b14f,_0x1479a2,_0x4a2e3b,_0x222636,{});switch(this[_0x482e('0x8e')](_0x47b81c,_0x49b14f,_0x1479a2,_0x222636),this[_0x482e('0x35')]['get'](_0x47b81c)){case _0x482e('0xcf'):this[_0x482e('0x11b')](_0x4a2e3b)['then'](_0x2f1c3c=>{let _0x129845=Promise[_0x482e('0x106')]();_0x2f1c3c['hasComments']&&(_0x129845=this[_0x482e('0x77')][_0x482e('0x8b')]({'channelId':this[_0x482e('0x12d')][_0x482e('0xf2')][_0x482e('0xf3')](_0x482e('0x5')),'threadId':_0x4a2e3b})),_0x129845[_0x482e('0x52')](()=>{this['addSuggestionData'](_0x2f1c3c)[_0x482e('0x51')]=!0x0;});}),this['_suggestionState'][_0x482e('0x48')](_0x47b81c,_0x482e('0x30'));break;case'removed':this[_0x482e('0x37')](_0x4a2e3b,{'state':'open'});case _0x482e('0x140'):this[_0x482e('0x35')][_0x482e('0x48')](_0x47b81c,_0x482e('0x160')),this['fire'](_0x482e('0x15a'),_0x47b81c);break;case _0x482e('0x160'):this['fire'](_0x482e('0x15c'),_0x47b81c);}return _0x47b81c[_0x482e('0x178')](_0xef3b89),_0x47b81c;}[_0x482e('0x10c')](_0x65471e){const _0x30aa71=Array[_0x482e('0x100')](_0x65471e),_0x3fa2c9=_0x30aa71[_0x482e('0x7a')](_0x5a6ca4=>_0x482e('0x145')==_0x5a6ca4['type']);this[_0x482e('0x1d')](_0x3fa2c9);const _0x53d7a2=_0x30aa71[_0x482e('0x7a')](_0x52e572=>!_0x52e572[_0x482e('0x159')]&&_0x482e('0x145')!=_0x52e572[_0x482e('0x8')]),_0x4db21c=this[_0x482e('0xac')]({'skipNotAttached':!0x0})[_0x482e('0x7a')](_0xee6762=>!_0xee6762[_0x482e('0x159')]&&_0x482e('0x145')!=_0xee6762[_0x482e('0x8')]),_0x2694b9=_0x4db21c[_0x482e('0x7a')](_0x11aee6=>!_0x65471e[_0x482e('0x7b')](_0x11aee6)),_0x14e145=new Map(_0x4db21c['map'](_0x36d5bc=>[_0x36d5bc,this['_suggestionFactory']['getSuggestionCallback'](_0x36d5bc[_0x482e('0x8')],_0x36d5bc[_0x482e('0xc8')],'chain')])),_0x17a07c=new Map(_0x4db21c[_0x482e('0x162')](_0x2f399c=>[_0x2f399c,_0x2f399c[_0x482e('0x80')]()])),_0x311062=new Set(),_0x4b9013=new Set();for(let _0x3695fb=0x0;_0x3695fb<_0x53d7a2[_0x482e('0x9f')];_0x3695fb++)_0x3a2e23(_0x53d7a2[_0x3695fb],_0x53d7a2,_0x3695fb+0x1);for(let _0x4ae34c=0x0;_0x4ae34c<_0x53d7a2[_0x482e('0x9f')];_0x4ae34c++)_0x3a2e23(_0x53d7a2[_0x4ae34c],_0x2694b9,0x0);const _0x3728e1=new Set();for(let _0x12cdb6=0x0;_0x12cdb6<_0x53d7a2[_0x482e('0x9f')];_0x12cdb6++){const _0x3868fa=_0x53d7a2[_0x12cdb6];!_0x4b9013[_0x482e('0x7b')](_0x3868fa)&&_0x3868fa[_0x482e('0x6f')]&&(_0x3728e1[_0x482e('0x58')](_0x3868fa[_0x482e('0x6f')]),_0x3868fa[_0x482e('0x6f')][_0x482e('0x83')]===_0x3868fa&&(_0x3868fa[_0x482e('0x6f')][_0x482e('0x83')]=null),_0x3868fa[_0x482e('0x6f')]=null),!_0x311062[_0x482e('0x7b')](_0x3868fa)&&_0x3868fa['next']&&(_0x3728e1[_0x482e('0x58')](_0x3868fa[_0x482e('0x83')]),_0x3868fa[_0x482e('0x83')][_0x482e('0x6f')]===_0x3868fa&&(_0x3868fa[_0x482e('0x83')]['previous']=null),_0x3868fa[_0x482e('0x83')]=null);}function _0x3a2e23(_0x520773,_0x2ec6c1,_0x42963d){for(let _0x1370b6=_0x42963d;_0x1370b6<_0x2ec6c1[_0x482e('0x9f')];_0x1370b6++){const _0x5d0169=_0x41256b(_0x520773,_0x2ec6c1[_0x1370b6]);_0x5d0169&&(_0x5d0169[0x0][_0x482e('0x83')]=_0x5d0169[0x1],_0x5d0169[0x1][_0x482e('0x6f')]=_0x5d0169[0x0],_0x311062[_0x482e('0x58')](_0x5d0169[0x0]),_0x4b9013[_0x482e('0x58')](_0x5d0169[0x1]));}}function _0x41256b(_0x4306ff,_0x3a8ed5){if(_0x4306ff[_0x482e('0xe0')]['id']!==_0x3a8ed5['author']['id'])return null;const _0x457328=_0x14e145[_0x482e('0xf3')](_0x4306ff)(_0x4306ff,_0x3a8ed5,_0x17a07c['get'](_0x4306ff),_0x17a07c['get'](_0x3a8ed5));if(!_0x457328)return null;return _0x14e145['get'](_0x3a8ed5)(_0x4306ff,_0x3a8ed5,_0x17a07c[_0x482e('0xf3')](_0x4306ff),_0x17a07c[_0x482e('0xf3')](_0x3a8ed5))?_0x457328[0x1][_0x482e('0x15f')]&&_0x457328[0x1]['commentThread'][_0x482e('0x9f')]?null:_0x457328:null;}_0x3728e1[_0x482e('0x171')]&&this[_0x482e('0x10c')](_0x3728e1);}[_0x482e('0x1d')](_0x1040ff){if(0x0==_0x1040ff['length'])return;const _0x1e0c9d=this['getSuggestions']({'skipNotAttached':!0x0})[_0x482e('0x7a')](_0x2a1fd0=>_0x482e('0x145')==_0x2a1fd0[_0x482e('0x8')]&&_0x2a1fd0[_0x482e('0x12')]),_0x5136f0=[],_0x37f7a8=new Map();for(const _0x5517fc of _0x1e0c9d){const _0x3d0afa=_0x30c611(_0x5517fc['attributes']);_0x37f7a8[_0x482e('0x7b')](_0x3d0afa)||(_0x37f7a8['set'](_0x3d0afa,_0x5136f0[_0x482e('0x9f')]),_0x5136f0[_0x482e('0x141')]([]));const _0x315e50=_0x37f7a8['get'](_0x3d0afa);_0x5136f0[_0x315e50]['push'](_0x5517fc);}!function(){_0x5136f0[_0x482e('0x3f')]((_0x246c1f,_0x373729)=>{const _0x1b8788=_0x246c1f[0x0][_0x482e('0xe2')],_0x175ac3=_0x373729[0x0]['createdAt'];return _0x1b8788==_0x175ac3?_0x246c1f[0x0][_0x482e('0xa2')][_0x482e('0xd5')]<_0x373729[0x0][_0x482e('0xa2')][_0x482e('0xd5')]?-0x1:0x1:_0x1b8788<_0x175ac3?-0x1:0x1;});for(const _0x53ffff of _0x5136f0)_0x53ffff['sort']((_0x1906e0,_0x4b4f01)=>_0x1906e0['id']<_0x4b4f01['id']?-0x1:0x1);}();for(let _0x4f9f35=0x0;_0x4f9f35<_0x5136f0['length'];_0x4f9f35++){if(0x0==_0x5136f0[_0x4f9f35][_0x482e('0x9f')])continue;const _0x7fbd6c=[];for(let _0x50586d=_0x4f9f35+0x1;_0x50586d<_0x5136f0[_0x482e('0x9f')];_0x50586d++)0x0!=_0x5136f0[_0x50586d][_0x482e('0x9f')]&&_0x39ab3c(_0x5136f0[_0x4f9f35],_0x5136f0[_0x50586d])&&_0x7fbd6c[_0x482e('0x141')](_0x50586d);for(const _0x34a589 of _0x7fbd6c)_0x5136f0[_0x4f9f35]=_0x5136f0[_0x4f9f35][_0x482e('0x93')](_0x5136f0[_0x34a589]),_0x5136f0[_0x34a589]=[];}for(const _0x2a88b4 of _0x5136f0)for(let _0x4c6ba9=0x0;_0x4c6ba9<_0x2a88b4[_0x482e('0x9f')];_0x4c6ba9++)_0x2a88b4[_0x4c6ba9][_0x482e('0x83')]=_0x2a88b4[_0x4c6ba9+0x1]||null;for(const _0x5e8e83 of _0x5136f0)for(let _0x383ceb=0x0;_0x383ceb<_0x5e8e83['length'];_0x383ceb++)_0x5e8e83[_0x383ceb][_0x482e('0x6f')]=_0x5e8e83[_0x383ceb-0x1]||null;function _0x39ab3c(_0x52d74d,_0x5f36e7){if(_0x52d74d[0x0]['attributes'][_0x482e('0xd5')]!==_0x5f36e7[0x0][_0x482e('0xa2')][_0x482e('0xd5')]&&_0x52d74d[0x0][_0x482e('0xe0')]!==_0x5f36e7[0x0][_0x482e('0xe0')])return!0x1;if(!function(_0x591c7d,_0x5c1579){if(!_0x591c7d['hasComments']&&!_0x5c1579[_0x482e('0xec')])return!0x0;if(_0x591c7d['hasComments']&&_0x5c1579['hasComments'])return!0x1;if(_0x591c7d[_0x482e('0xec')]&&_0x5c1579[_0x482e('0xe2')]<_0x591c7d[_0x482e('0x15f')][_0x482e('0x2e')][_0x482e('0xf3')](0x0)['createdAt'])return!0x0;if(_0x5c1579[_0x482e('0xec')]&&_0x591c7d[_0x482e('0xe2')]<_0x5c1579['commentThread'][_0x482e('0x2e')]['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x52d74d[0x0],_0x5f36e7[0x0]))return!0x1;const _0x16e2ad=_0x30c130(_0x52d74d[0x0]['attributes'],_0x482e('0xd5')),_0x5de5b9=_0x30c130(_0x5f36e7[0x0][_0x482e('0xa2')],_0x482e('0xd5'));if(!_0x453c36(_0x16e2ad,_0x5de5b9))return!0x1;return!!_0x52d74d['every'](_0x2743e1=>_0x5f36e7['some'](_0x48582d=>_0x2743e1['getFirstRange']()['isEqual'](_0x48582d[_0x482e('0x80')]())))&&_0x5f36e7[_0x482e('0x147')](_0x22a61a=>_0x52d74d[_0x482e('0x11a')](_0xcc069f=>_0x22a61a['getFirstRange']()[_0x482e('0xb')](_0xcc069f['getFirstRange']())));}}[_0x482e('0x89')](_0x37ca19){const _0x3c05b0=Array['from'](_0x37ca19),_0x1b3b17=this[_0x482e('0xac')]({'skipNotAttached':!0x0}),_0xfcd555=_0x1b3b17[_0x482e('0x7a')](_0x3173d7=>!_0x37ca19[_0x482e('0x7b')](_0x3173d7)),_0x509544=new Map(_0x3c05b0[_0x482e('0x162')](_0x23f156=>[_0x23f156,this[_0x482e('0x6d')][_0x482e('0x173')](_0x23f156[_0x482e('0x8')],_0x23f156[_0x482e('0xc8')],_0x482e('0xa'))])),_0x4c4f1a=new Map(_0x1b3b17[_0x482e('0x162')](_0x436cc2=>[_0x436cc2,_0x436cc2['getRanges']()]));for(let _0x3a0133=0x0;_0x3a0133<_0x3c05b0[_0x482e('0x9f')];_0x3a0133++){if(_0x3ebbb8(this,_0x3c05b0[_0x3a0133],_0x3c05b0,_0x3a0133+0x1))return!0x0;}for(let _0x4e266c=0x0;_0x4e266c<_0x3c05b0['length'];_0x4e266c++){if(_0x3ebbb8(this,_0x3c05b0[_0x4e266c],_0xfcd555,0x0))return!0x0;}return!0x1;function _0x3ebbb8(_0x148709,_0x260613,_0x96028b,_0x20aaf3){for(let _0x2685e6=_0x20aaf3;_0x2685e6<_0x96028b[_0x482e('0x9f')];_0x2685e6++){const _0x34e3cb=_0x96028b[_0x2685e6];if(_0x34e3cb['type']!==_0x260613['type']||_0x34e3cb[_0x482e('0xe0')]['id']!==_0x260613[_0x482e('0xe0')]['id']||_0x34e3cb[_0x482e('0xc8')]!==_0x260613[_0x482e('0xc8')])continue;if(!Ft(_0x260613,_0x34e3cb,[_0x482e('0xd5')]))continue;if(_0x482e('0x145')==_0x260613['type']&&_0x260613[_0x482e('0xa4')]['oldValue']!=_0x34e3cb['data'][_0x482e('0xfc')])continue;if(_0x482e('0x145')==_0x260613['type']&&_0x148709['_isBlockAttribute'](_0x260613[_0x482e('0xa4')][_0x482e('0x63')]))continue;if('formatBlock'==_0x260613[_0x482e('0x8')]){const _0x42d17=_0x148709[_0x482e('0x12d')]['model'],_0x2c0e4c=_0x260613[_0x482e('0x139')]();if(_0x2c0e4c&&(_0x42d17[_0x482e('0x11')][_0x482e('0x167')](_0x2c0e4c)||_0x42d17[_0x482e('0x11')]['isLimit'](_0x2c0e4c)))continue;}const _0x1adbea=_0x509544[_0x482e('0xf3')](_0x260613),_0x558816=_0x4c4f1a['get'](_0x260613),_0x30f5dd=_0x4c4f1a[_0x482e('0xf3')](_0x34e3cb),_0x1844e7=_0x260613[_0x482e('0x15f')]&&_0x260613[_0x482e('0x15f')][_0x482e('0x9f')],_0x108de0=_0x34e3cb[_0x482e('0x15f')]&&_0x34e3cb[_0x482e('0x15f')][_0x482e('0x9f')];if(!_0x1844e7&&_0x1adbea(_0x30f5dd,_0x558816))return _0x148709['_joinSuggestions'](_0x34e3cb,_0x260613),_0x4c4f1a['delete'](_0x260613),!0x0;if(!_0x108de0&&_0x1adbea(_0x558816,_0x30f5dd))return _0x148709[_0x482e('0x174')](_0x260613,_0x34e3cb),_0x4c4f1a[_0x482e('0x10b')](_0x34e3cb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5dfda7,_0x70376e){if(_0x5dfda7['isMultiRange'])for(const _0x1b1933 of _0x70376e[_0x482e('0x10')]())_0x5dfda7[_0x482e('0x149')](_0x1b1933);else{const _0x4cc05b=_0x70376e['getFirstRange']()['end'];this[_0x482e('0x0')](_0x5dfda7,this[_0x482e('0xdd')][_0x482e('0x118')](_0x5dfda7[_0x482e('0x80')]()[_0x482e('0x2f')],_0x4cc05b));}_0x70376e[_0x482e('0x18')]();}[_0x482e('0x154')](_0x2c062f,_0x318135){const _0x57eca3=_0x2c062f[_0x482e('0x88')](_0x482e('0x151'))||_0x2c062f['startsWith'](_0x482e('0x145'))?_0x482e('0x90'):_0x2c062f[_0x482e('0xa5')]();return _0x1df92a(this[_0x482e('0x12d')][_0x482e('0xc')],_0x318135+'_'+_0x57eca3+_0x482e('0x142'));}[_0x482e('0x14e')](){const _0x21fa4d=this['editor'];_0x4d5183(this[_0x482e('0xdd')],({left:_0x702d74,entered:_0x4e38a7})=>{const _0x86dd09=[];for(const _0xbe5e99 of _0x702d74){const {group:_0x5da9fc,type:_0x17af16}=this['_splitMarkerName'](_0xbe5e99['name']);if('suggestion'===_0x5da9fc){_0x86dd09[_0x482e('0x141')](this[_0x482e('0x154')](_0x17af16,_0x482e('0x152')));break;}}for(const _0x4d9f42 of _0x4e38a7){const {group:_0x137963,type:_0x5c00e7}=this[_0x482e('0x126')](_0x4d9f42['name']);if(_0x482e('0xad')===_0x137963){_0x86dd09[_0x482e('0x141')](this['_getMarkerAnnouncementText'](_0x5c00e7,_0x482e('0x64')));break;}}_0x86dd09[_0x482e('0x9f')]&&_0x21fa4d['ui']['ariaLiveAnnouncer'][_0x482e('0x116')](_0x482e('0xba'),_0x86dd09['join']('\x20'));});}[_0x482e('0x124')](_0x427cce){if(this['_recordAttributeSuggestions'])return!0x1;const _0x55ef9d=this[_0x482e('0x12d')],_0x56d57b=_0x55ef9d[_0x482e('0xbc')]['document'][_0x482e('0x79')][_0x482e('0x69')]();if(0x0==_0x56d57b['length'])return!0x1;const _0x1f8a4c=[],_0xe72cd7=_0x56d57b[_0x482e('0x7a')](_0x6cf0a5=>_0x482e('0x145')==_0x6cf0a5[_0x482e('0x8')]),_0xceaea0=_0x56d57b['filter'](_0x29a9ee=>_0x482e('0x133')==_0x29a9ee[_0x482e('0x8')]&&_0x482e('0x122')!=_0x29a9ee[_0x482e('0x10a')]),_0x3441a1=_0x56d57b[_0x482e('0x7a')](_0x786a42=>_0x482e('0xda')==_0x786a42[_0x482e('0x8')]&&_0x482e('0x122')!=_0x786a42[_0x482e('0x10a')]);for(const _0x247c41 of _0xe72cd7)_0x1f8a4c[_0x482e('0x141')]({'key':_0x247c41[_0x482e('0x9e')],'newValue':_0x247c41[_0x482e('0xc2')],'oldValue':_0x247c41[_0x482e('0x4a')],'range':Ut(_0x247c41[_0x482e('0x85')],_0x55ef9d[_0x482e('0xbc')])});for(const _0x5c59bf of _0xceaea0){const _0x1e470f=_0x3441a1[_0x482e('0x78')](_0x36e65a=>_0x36e65a[_0x482e('0x16e')]['isEqual'](_0x5c59bf['position']));_0x1e470f&&_0x1f8a4c[_0x482e('0x141')]({'key':'$elementName','newValue':_0x5c59bf['name'],'oldValue':_0x1e470f[_0x482e('0x10a')],'range':_0x55ef9d[_0x482e('0xbc')]['createRangeOn'](_0x5c59bf[_0x482e('0x16e')][_0x482e('0x164')])});}return 0x0!=_0x1f8a4c['length']&&this[_0x482e('0x150')](_0x427cce,_0x1f8a4c);}[_0x482e('0x168')](_0x25d63f){let _0x13fdd3=!0x1;const _0x27919d=this['editor']['model']['document'][_0x482e('0x79')][_0x482e('0x103')]()[_0x482e('0x7a')](_0x189b0f=>_0x189b0f[_0x482e('0xa4')][_0x482e('0xc5')]&&_0x189b0f['name'][_0x482e('0x88')](_0x482e('0xfa')));for(const _0x250367 of _0x27919d){const {subType:_0x302139,id:_0x1af26d}=this[_0x482e('0x126')](_0x250367[_0x482e('0x10a')]),_0x18842d=_0x302139['split']('|')[0x0];for(const _0x29deaf of this[_0x482e('0xac')]({'skipNotAttached':!0x0}))_0x29deaf['id']!=_0x1af26d&&_0x482e('0x145')==_0x29deaf[_0x482e('0x8')]&&_0x29deaf[_0x482e('0xa4')]&&_0x29deaf[_0x482e('0xa4')][_0x482e('0x63')]==_0x18842d&&_0x29deaf[_0x482e('0x80')]()['isIntersecting'](_0x250367[_0x482e('0xa4')]['newRange'])&&(this[_0x482e('0x71')](_0x29deaf,_0x250367['data'][_0x482e('0xc5')],_0x25d63f),_0x13fdd3=!0x0);}return _0x13fdd3;}[_0x482e('0x16c')](_0x1ecf4c){this[_0x482e('0x12d')],(this['_recordAttributeSuggestions']=!0x0,_0x1ecf4c());}[_0x482e('0x28')](_0x1845eb){const _0x5756e4=this[_0x482e('0x9d')](_0x1845eb),_0x479a31=this[_0x482e('0x3a')][_0x482e('0x7b')](_0x1845eb);return _0x5756e4||_0x479a31;}[_0x482e('0x150')](_0x3e64c2,_0x25f857){if(0x0==_0x25f857['length'])return!0x1;let _0x3b69c6=!0x1;for(const _0x400413 of _0x25f857){const _0x18ada3=this[_0x482e('0x11e')](_0x400413[_0x482e('0x85')],_0x482e('0x145'))[_0x482e('0x7a')](_0x3b3a66=>!_0x3b3a66['meta'][_0x482e('0x25')])['map'](_0x274110=>_0x274110[_0x482e('0xad')]),_0x449b3e=_0x30c611({'newValue':_0x400413[_0x482e('0x12b')]});_0x18ada3[_0x482e('0x7a')](_0x574215=>{const [_0x44bf65,_0x4a7488]=_0x574215[_0x482e('0xc8')][_0x482e('0x1c')]('|');return _0x44bf65==_0x400413[_0x482e('0x63')]&&_0x4a7488!=_0x449b3e;})[_0x482e('0xb6')](_0x446ab0=>{this[_0x482e('0x71')](_0x446ab0,_0x400413['range'],_0x3e64c2),_0x3b69c6=!0x0;});}return _0x3b69c6;}['_reduceSuggestionAttributeRange'](_0x4b0e77,_0x4271d1,_0x5d1db9){const _0x3c71ae=_0x4b0e77['getFirstRange']()['getDifference'](_0x4271d1);0x0!==_0x3c71ae[_0x482e('0x9f')]?0x1!==_0x3c71ae['length']?this[_0x482e('0x74')](_0x4b0e77,_0x4271d1['start'],_0x4271d1[_0x482e('0x101')]):this[_0x482e('0x0')](_0x4b0e77,_0x3c71ae[0x0]):_0x5d1db9['removeMarker'](_0x4b0e77['getFirstMarker']());}}class Bt{constructor(_0x56a26b){this[_0x482e('0xf6')]=_0x56a26b,this[_0x482e('0xdd')]=_0x56a26b[_0x482e('0xbc')],this[_0x482e('0x166')]=new Map(),this[_0x482e('0x62')]=new Map(),this[_0x482e('0x72')]();}[_0x482e('0xbf')](_0x193d70,_0x438159,_0x1d5155,_0x30a5f4,_0x4c74c9,_0x70efe7){return new _0x28914f(this['_model'],{'type':_0x193d70,'subType':_0x438159,'id':_0x1d5155,'author':_0x30a5f4,'creator':_0x30a5f4,'attributes':_0x4c74c9,'onAttributesChange':_0x70efe7,'onAccept':(..._0x152ea0)=>this[_0x482e('0x173')](_0x193d70,_0x438159,'accept')(..._0x152ea0),'onDiscard':(..._0x337a2a)=>this[_0x482e('0x173')](_0x193d70,_0x438159,_0x482e('0xb8'))(..._0x337a2a)});}[_0x482e('0xd1')](_0x3dc2e0,_0x54ae4c,_0x555724,_0x53c4d4){const _0x415fb4=_0x3dc2e0+':'+_0x54ae4c+':'+_0x555724;this['_customCallbacks'][_0x482e('0x48')](_0x415fb4,_0x53c4d4);}[_0x482e('0x173')](_0x7da4fa,_0x33242a,_0x417e03){const _0x5698fc=_0x7da4fa+':'+_0x33242a+':'+_0x417e03;return this[_0x482e('0x166')][_0x482e('0xf3')](_0x5698fc)||this['_defaultCallbacks'][_0x482e('0xf3')](_0x7da4fa+':'+_0x417e03);}[_0x482e('0x72')](){const _0x52bdfe=()=>!0x1,_0x512af0=_0x5c507d=>{_0x5c507d['sort']((_0x23020c,_0x318213)=>_0x23020c[_0x482e('0x2f')][_0x482e('0x153')](_0x318213['start'])?0x1:-0x1),this[_0x482e('0xdd')][_0x482e('0xb4')](_0x59644b=>{for(const _0x31bcd1 of _0x5c507d){let _0x17ce8e;_0x17ce8e=_0x31bcd1[_0x482e('0x101')]['isAtEnd']&&_0x31bcd1[_0x482e('0x101')][_0x482e('0x19')]==_0x31bcd1[_0x482e('0x2f')][_0x482e('0x164')]?_0x59644b[_0x482e('0x117')](_0x31bcd1[_0x482e('0x2f')][_0x482e('0x164')],'on'):_0x59644b[_0x482e('0x117')](_0x31bcd1),this[_0x482e('0xdd')][_0x482e('0xaa')](_0x17ce8e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5bacf3=(_0x2d3282,_0x3db3a4)=>{_0x3db3a4&&this['_model']['change'](_0x196a86=>{const {commandName:_0x3ab99d,commandParams:_0x2b8224=[]}=_0x3db3a4,_0x3757f4=_0x2d3282[_0x482e('0x162')](_0x1d2dee=>(Rt(_0x1d2dee)&&(_0x1d2dee=this['_model'][_0x482e('0x118')](_0x1d2dee['end'])),_0x1d2dee))[_0x482e('0x7a')](_0x30ba50=>_0x482e('0x132')!==_0x30ba50[_0x482e('0x111')][_0x482e('0xb2')]);if(_0x3757f4['length']<0x1)return;const _0x10e1a0=Array[_0x482e('0x100')](this[_0x482e('0xdd')][_0x482e('0xe9')][_0x482e('0x105')][_0x482e('0x10')]())[_0x482e('0x162')](_0x538e82=>_0x5be075[_0x482e('0xd')](_0x538e82));_0x196a86[_0x482e('0x7')](_0x3757f4);for(const _0x45fe54 of this[_0x482e('0xf6')][_0x482e('0x9c')][_0x482e('0x9c')]())_0x45fe54['refresh']();_0x2b8224[_0x482e('0x141')]({'forceDefaultExecution':!0x0}),this[_0x482e('0xf6')]['execute'](_0x3ab99d,..._0x2b8224);const _0x440703=_0x10e1a0['filter'](_0x27a87f=>_0x482e('0x132')!=_0x27a87f[_0x482e('0x111')]['rootName']);_0x440703['length']>0x0&&_0x196a86[_0x482e('0x7')](_0x440703);for(const _0x4810e9 of _0x10e1a0)_0x4810e9[_0x482e('0x10f')]();});},_0x16092a=(_0x200768,_0x6a86f6)=>0x1==_0x200768[_0x482e('0x9f')]&&0x1==_0x6a86f6[_0x482e('0x9f')]&&_0x200768[0x0][_0x482e('0x101')]['isEqual'](_0x6a86f6[0x0][_0x482e('0x2f')]),_0x902fe1=(_0x15d4c3,_0x5047d5,_0x3c974c,_0x1b993f)=>Gt(_0x15d4c3,_0x5047d5,_0x3c974c,_0x1b993f,this[_0x482e('0xdd')])?[_0x15d4c3,_0x5047d5]:Gt(_0x5047d5,_0x15d4c3,_0x1b993f,_0x3c974c,this[_0x482e('0xdd')])?[_0x5047d5,_0x15d4c3]:null;this[_0x482e('0x62')][_0x482e('0x48')](_0x482e('0x165'),_0x52bdfe),this[_0x482e('0x62')]['set']('insertion:discard',_0x512af0),this[_0x482e('0x62')][_0x482e('0x48')](_0x482e('0x109'),_0x16092a),this[_0x482e('0x62')]['set'](_0x482e('0x54'),_0x902fe1),this[_0x482e('0x62')][_0x482e('0x48')](_0x482e('0x4'),_0x512af0),this[_0x482e('0x62')]['set'](_0x482e('0xb9'),_0x52bdfe),this['_defaultCallbacks'][_0x482e('0x48')]('deletion:join',_0x16092a),this[_0x482e('0x62')]['set'](_0x482e('0x6a'),_0x902fe1),this[_0x482e('0x62')][_0x482e('0x48')](_0x482e('0xf1'),_0x5bacf3),this[_0x482e('0x62')]['set'](_0x482e('0x14d'),_0x52bdfe),this[_0x482e('0x62')]['set'](_0x482e('0x44'),_0x16092a),this[_0x482e('0x62')][_0x482e('0x48')](_0x482e('0xce'),_0x52bdfe),this[_0x482e('0x62')][_0x482e('0x48')](_0x482e('0xb0'),_0x5bacf3),this['_defaultCallbacks'][_0x482e('0x48')](_0x482e('0x5a'),_0x52bdfe),this[_0x482e('0x62')][_0x482e('0x48')](_0x482e('0xd6'),_0x16092a),this[_0x482e('0x62')]['set'](_0x482e('0xf9'),_0x52bdfe),this[_0x482e('0x62')][_0x482e('0x48')]('attribute:accept',_0x52bdfe),this['_defaultCallbacks'][_0x482e('0x48')]('attribute:discard',(_0x22a28f,_0x4fdefc)=>{if(!_0x4fdefc)return;const _0x5e180f=this[_0x482e('0xf6')][_0x482e('0x135')]['get'](p);this[_0x482e('0xdd')]['change'](_0x40695c=>{if(_0x482e('0x121')==_0x4fdefc['key'])for(const _0x221dc2 of _0x22a28f){const _0x106f6d=_0x221dc2[_0x482e('0x2f')][_0x482e('0x164')],_0x5d37f7=_0x4fdefc[_0x482e('0xfc')];_0x40695c['rename'](_0x106f6d,_0x5d37f7);}else{if(_0x5e180f[_0x482e('0x9d')](_0x4fdefc['key']))for(const _0x5bb38e of _0x22a28f)void 0x0!==_0x4fdefc[_0x482e('0xfc')]?_0x40695c[_0x482e('0x125')](_0x4fdefc[_0x482e('0x63')],_0x4fdefc['oldValue'],_0x5bb38e[_0x482e('0x2f')][_0x482e('0x164')]):_0x40695c[_0x482e('0x157')](_0x4fdefc[_0x482e('0x63')],_0x5bb38e[_0x482e('0x2f')][_0x482e('0x164')]);else for(const _0x409f33 of _0x22a28f)_0x4fdefc[_0x482e('0xfc')]?_0x40695c[_0x482e('0x125')](_0x4fdefc[_0x482e('0x63')],_0x4fdefc[_0x482e('0xfc')],_0x409f33):_0x40695c[_0x482e('0x157')](_0x4fdefc[_0x482e('0x63')],_0x409f33);}});}),this[_0x482e('0x62')][_0x482e('0x48')](_0x482e('0x119'),_0x16092a);}}function xt(_0x15809b,_0x2a5b00,_0x8d4f6a){for(const _0xbce365 of _0x2a5b00['parent'][_0x482e('0x21')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xbce365[_0x482e('0x111')]==_0xbce365)return!0x1;if(!_0x8d4f6a[_0x482e('0x2d')](_0xbce365))return!0x1;if(_0x15809b[_0x482e('0x167')](_0xbce365)||_0x15809b[_0x482e('0xe4')](_0xbce365))return!0x0;}return!0x1;}function Rt(_0x469e36){return _0x469e36[_0x482e('0x101')]['parent']==_0x469e36[_0x482e('0x2f')][_0x482e('0x164')]&&_0x469e36[_0x482e('0x101')]['isAtStart'];}function Tt(_0x53c0e3,_0x5bd9cc,_0x3388b0,_0x3b89c9){const _0x2af9d9=_0x5e24f2=>!_0x5e24f2[_0x482e('0x43')]['is']('$textProxy')&&!_0x3b89c9[_0x482e('0x167')](_0x5e24f2[_0x482e('0x43')]),_0x186458=_0x53c0e3[_0x482e('0x2f')]['getLastMatchingPosition'](_0x2af9d9),_0x4ff149=_0x53c0e3['end'][_0x482e('0x6e')](_0x2af9d9,{'direction':'backward'});return(!_0x53c0e3[_0x482e('0x2f')]['isEqual'](_0x186458)||!_0x53c0e3[_0x482e('0x101')]['isEqual'](_0x4ff149))&&(_0x186458['isBefore'](_0x4ff149)?_0x3388b0[_0x482e('0x86')](_0x5bd9cc,{'range':_0x3388b0[_0x482e('0x118')](_0x186458,_0x4ff149)}):_0x3388b0['removeMarker'](_0x5bd9cc),!0x0);}function Et(_0x2904dc){return _0x30c611(_0x2904dc);}function Vt(_0x4f956d){const _0x2f8a9=_0x4f956d[_0x482e('0x2f')][_0x482e('0x164')];return _0x2f8a9&&_0x2f8a9['is']('element');}function Ut(_0x391b4d,_0x6117be){return null==_0x391b4d[_0x482e('0x101')][_0x482e('0xa0')]&&_0x391b4d[_0x482e('0x101')][_0x482e('0x19')]==_0x391b4d[_0x482e('0x2f')][_0x482e('0x164')]?Ot(_0x391b4d[_0x482e('0x2f')][_0x482e('0x164')],_0x6117be):_0x391b4d;}function Ot(_0x17b043,_0x164c01){const _0x13076a=_0x164c01['schema'][_0x482e('0x167')](_0x17b043)||_0x164c01[_0x482e('0x11')]['isSelectable'](_0x17b043);return _0x164c01['createRange'](_0x164c01[_0x482e('0x75')](_0x17b043,_0x482e('0x123')),_0x13076a?_0x164c01['createPositionAfter'](_0x17b043):_0x164c01[_0x482e('0x75')](_0x17b043,'end'));}function Gt(_0x4e353b,_0x3302db,_0x4baa45,_0xa98baf,_0x159e9e){if(!Ft(_0x4e353b,_0x3302db))return!0x1;if(_0x4baa45[_0x482e('0x101')][_0x482e('0xb')](_0xa98baf[_0x482e('0x2f')]))return!0x0;if(_0x4e353b[_0x482e('0x8')]!=_0x3302db[_0x482e('0x8')])return!0x1;if(!_0x4baa45[_0x482e('0x101')]['isTouching'](_0xa98baf['start']))return!0x1;const _0xc73ae7=_0x159e9e[_0x482e('0x118')](_0x4baa45[_0x482e('0x101')],_0xa98baf[_0x482e('0x2f')])['getWalker']();for(const _0x23c897 of _0xc73ae7)if([_0x482e('0x46'),_0x482e('0x61')]['includes'](_0x23c897['type'])&&_0x159e9e[_0x482e('0x11')][_0x482e('0xe4')](_0x23c897['item']))return!0x1;return!0x0;}function Ft(_0x12b1cd,_0x7e4c09,_0x547df7=[]){return!(!_0x12b1cd[_0x482e('0x12')]||!_0x7e4c09[_0x482e('0x12')])&&_0x453c36(_0x30c130(_0x12b1cd[_0x482e('0xa2')],_0x547df7),_0x30c130(_0x7e4c09['attributes'],_0x547df7));}function Pt(_0x26f511,_0x261f22){const _0x5e5f42=Lt(_0x26f511['attributes']),_0x37bc02=Lt(_0x261f22);if(!_0x26f511[_0x482e('0x12')])return!0x1;for(const _0x1fd957 of Object['keys'](_0x37bc02))if(!_0x453c36(_0x5e5f42[_0x1fd957],_0x37bc02[_0x1fd957]))return!0x1;return!0x0;}function Lt(_0x9c8be){const _0x5cf751=Object['assign']({},_0x9c8be);return delete _0x5cf751[_0x482e('0x9')],delete _0x5cf751[_0x482e('0x155')],_0x5cf751;}
|
|
23
|
+
const _0x339a=['open','end','markerName','map','add','announce','never','isBlock','formatInline:discard','_registerBlockAttribute','_trackFormatChanges','removeMarker','plugins','acceptSuggestion','markerReady','unbindElementFromMarkerName','_adapter','activeMarkers','commands','toJSON','newRange','formatInline:accept','marker-count','elementStart','_joinWithAdjacentSuggestions','writer','addCommentThread','createRangeIn','getItems','size','rootName','_model','_registerDefaultCallbacks','_suggestionFactory','_getAttributeKey','getCustomProperty','deletion:accept','_setSuggestionRange','newValue','pop','track-changes-suggestion-not-found','isBefore','ck-suggestion-marker-formatInline','markInlineFormat','subType','getNearestSelectionRange','_isBlockAttribute','parent','containsItem','ready','differ','position','getRanges','formatBlock','isObject','formatBlock:discard','adapter','meta','isMultiRange','registerPostFixer','always','moveTargetPosition','insertion:chain','hasComments','_blockAttributeKeys','_getMarkerAnnouncementText','track-changes-enable-command-twice','default','discardAllSuggestions','clone','_refreshSuggestionsChain','_isForcedDefaultExecutionBlock','trackChanges','getShiftedBy','addMarker:suggestion:attribute','every','upcast','deletion:discard','ck-suggestion-marker-formatBlock','stopListening','get','CommentsRepository','detach','fire','removeMarkers','TrackChangesEditing','isAfter','mapper','markMultiRangeBlockFormat','PendingActions','_getExternalAuthor','_reduceExistingSuggestions','insertion','includes','getMarkers','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.','ck-suggestion-marker--active','locale','deletion:chain','markBlockFormat','$graveyard','containsRange','_isRegisteredAttribute','key','config','removeMarker:suggestion:formatBlock','ck-suggestion-marker-','hasCommentThread','dataToMarker','_recordAttributeSuggestions','addSuggestion','elementToElement','isLimit','formatBlock:accept','attribute:accept','getCommentThread','ck-suggestion-marker','_checkSuggestionCorrectness','suggestion:attribute:','isLocal','isEqual','forward','_editor','insertContent','backward','createElement','createSelection','root','skipNestingCheck','$marker','track-changes-user-not-found','removeMarker:suggestion:attribute','registerCustomCallback','getAllAdjacentSuggestions','_inlineAttributeKeys','Users','track-changes-adapter-missing-getsuggestion','containsRangeInObject','tablePasteChainId','push','_splitMarkerName','enableCommand','_cutOutSuggestionMarker','attribute:discard','_suggestions','howMany','updateSuggestion','isUndo','move','_addSuggestionMarker','_getSuggestionData','low','_enableDefaultAttributesIntegration','PENDING_ACTION_SUGGESTION','documentSelection','from','getContainedElement','showSuggestionHighlights','consumable','_rangeIsInLocalUserInsertion','execute','nodeAfter','_defaultCallbacks','commandName','oldValue','oldRange','deletion:join','isOwn','document','model','_customCallbacks','isIntersectingWithRange','getIntersection','insertion:','track-changes-command-not-found','$text','clear','markers','FORMATTING','schema','containsPosition','formatInline:join','resolve','delete','isExternal','getUser','creator','range','change:data','$elementName','splice','error-saving-suggestion-data-suggestion-discarded','getLastMatchingPosition','formatGroupId','_saved','trackChanges.trackFormatChanges','concat','element','getMultiRangeId','selection','deletion:','getSuggestionCallback','external:','formatInline:','substring','isAtStart','change','ariaLiveAnnouncer','stop','highest','collaboration.channelId','return','forceDefaultExecution','_getAuthorFromId','addMarker','listenTo','editing','isAtEnd','formatBlock:','attributeKey','createRange','_recordAttributeChanges','getAttribute','next','startsWith','type','_joinSuggestions','isIntersecting','setTo','dataDowncast','getFirstRange','suggestionChanged','_mergeNestedSuggestions','getChangedMarkers','conversion','addRange','fromCharCode','getDifference','attribute','addHighlight','addMarkerName','_initAriaMarkerChangeAnnouncements','authoredAt','isInContent','createPositionBefore','formatBlock:join','_afterChanges','_findSuggestions','before','_updateSuggestionData','catch','accept','getFirstMarker','accepted','has','_addThreadToSuggestion','isArray','toViewElement','createPositionAfter','editor','_handleNewSuggestionMarker','_createSuggestion','normal','addComment','fetchCommentThread','discardSelectedSuggestions','fromRange','toUpperCase','multi','item','$textProxy','format','markDeletion','_breakSuggestionMarker','start','chain','consume','createdAt','_refreshAttributeSuggestionsChain','suggestion','lowest','previous','_suggestionState','attribute:join','change:activeMarkers','addUser','markAttributeChange','pluginName','for','getWalker','attributeNewValue','markerNameToElements','join','enqueueChange','rejected','values','getSuggestion','filter','discardSuggestion','set','name','markMultiRangeInsertion','containerElement','groupId','length','getRange','enableReadOnlyMode','comments','define','acceptSelectedSuggestions','_setSuggestionData','suggestion:','_commentsRepository','notReady','buildSuggestion','setSelection','dataReady','getAncestors','formatInline:chain','updateMarker','reconvertMarker','value','rethrowUnexpectedError','multipleBlocks','deletion','createPositionAt','setAttribute','keys','track-changes-suggestion-data-mismatch','data-suggestion','trackChangesCommand','author','remove','originalSuggestionId','editingDowncast','init','attributeOldValue','isNextTo','after','addSuggestionData','change:_saved','_isDataLoaded','split','isInsideObject','insertion:discard','markerToHighlight','addClass','formatInline','removeClass','markMultiRangeDeletion','some','then','_processAttributeChanges','find','@external','insert','forEach','commentThread','_registerInlineAttribute','suggestionLoaded','_enabledCommands','sort','isCollapsed','options','attributes','removed','discard','high','removeAttribute','_removeSuggestion','getSuggestions','_onDiscard','batch','formatBlock:chain','_reduceSuggestionAttributeRange','data','trackChanges.mergeNestedSuggestions','_descriptionFactory','nodeBefore','getChanges','warn','addMarker:suggestion'];(function(_0x306401,_0x339a2d){const _0x30241a=function(_0x46df72){while(--_0x46df72){_0x306401['push'](_0x306401['shift']());}};_0x30241a(++_0x339a2d);}(_0x339a,0x12f));const _0x3024=function(_0x306401,_0x339a2d){_0x306401=_0x306401-0x0;let _0x30241a=_0x339a[_0x306401];return _0x30241a;};import{Plugin as _0x7dd224,PendingActions as _0x12b474}from'ckeditor5/src/core.js';import{LiveRange as _0x205e8b}from'ckeditor5/src/engine.js';import{CKEditorError as _0x255fda,uid as _0x25b08a,priorities as _0x277c40,logWarning as _0x59dd10}from'ckeditor5/src/utils.js';import{toWidget as _0x582c0d}from'ckeditor5/src/widget.js';import{Users as _0x2b5144,hashObject as _0x4a1e6a,surroundingMarkersDetector as _0x471275}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x465380 from'./commands/trackchangescommand.js';import _0x5a1e43 from'./commands/acceptsuggestioncommand.js';import _0xc4b4ed from'./commands/discardsuggestioncommand.js';import _0x5918cc from'./commands/executeonallsuggestionscommand.js';import _0x58fc2a from'./commands/executeonselectedsuggestionscommand.js';import _0x1f2ce3 from'./suggestion.js';import _0x1618ee from'./suggestiondescriptionfactory.js';import _0x4a63f4 from'./integrations/aiassistant.js';import _0x29c374 from'./integrations/alignment.js';import _0x8abd13 from'./integrations/basicstyles.js';import _0x4ce919 from'./integrations/blockquote.js';import _0x20492e from'./integrations/casechange.js';import _0x48e0ac from'./integrations/ckbox.js';import _0x42a55a from'./integrations/codeblock.js';import _0xd1271c from'./integrations/comments.js';import _0x4d87b6 from'./integrations/deletecommand.js';import _0x4f69a6 from'./integrations/list.js';import _0x27e9d0 from'./integrations/listproperties.js';import _0x70c667 from'./integrations/entercommand.js';import _0x42805d from'./integrations/findandreplace.js';import _0x59090a from'./integrations/font.js';import _0x41299d from'./integrations/formatpainter.js';import _0x41e347 from'./integrations/heading.js';import _0x542e5a from'./integrations/highlight.js';import _0x413bc7 from'./integrations/horizontalline.js';import _0x5d0349 from'./integrations/htmlembed.js';import _0x4263c1 from'./integrations/image.js';import _0x30e568 from'./integrations/imagereplace.js';import _0x36b564 from'./integrations/imagestyle.js';import _0x12c210 from'./integrations/importword.js';import _0x31f901 from'./integrations/indent.js';import _0x4cad25 from'./integrations/inputcommand.js';import _0x58a30f from'./integrations/link.js';import _0x296531 from'./integrations/legacylist.js';import _0x1ddeba from'./integrations/legacylistproperties.js';import _0x49a662 from'./integrations/mediaembed.js';import _0x399ac2 from'./integrations/mention.js';import _0x1cc671 from'./integrations/pagebreak.js';import _0x2ec65a from'./integrations/paragraph.js';import _0x1dadb1 from'./integrations/removeformat.js';import _0x5f11c0 from'./integrations/restrictededitingmode.js';import _0x1b4730 from'./integrations/shiftentercommand.js';import _0x1b27eb from'./integrations/standardeditingmode.js';import _0x172ae1 from'./integrations/style.js';import _0x1076dd from'./integrations/table.js';import _0x3acb78 from'./integrations/tablemergesplit.js';import _0x3bf472 from'./integrations/tableheadings.js';import _0x50d5f6 from'./integrations/tableclipboard.js';import _0x2cab1b from'./integrations/tablecolumnresize.js';import _0x1818fc from'./integrations/template.js';import _0x1b9997 from'./integrations/tableofcontents.js';import _0x5df3c7 from'./integrations/title.js';import _0x5cd449 from'./integrations/undo.js';import _0x49bb0b from'./integrations/tablecaption.js';import _0x2eb079 from'./integrations/tableproperties.js';import{getTranslation as _0x44f115}from'./utils/common-translations.js';import{isEqual as _0x2963a5,omit as _0x5a017a}from'lodash-es';export const renameAttributeKey=_0x3024('0x10e');export default class p extends _0x7dd224{static get['requires'](){return['CommentsRepository',_0x2b5144,_0x12b474,_0x4a63f4,_0x29c374,_0x8abd13,_0x4ce919,_0x48e0ac,_0x20492e,_0x42a55a,_0xd1271c,_0x4d87b6,_0x70c667,_0x42805d,_0x59090a,_0x41299d,_0x41e347,_0x542e5a,_0x413bc7,_0x5d0349,_0x4263c1,_0x36b564,_0x30e568,_0x12c210,_0x31f901,_0x4cad25,_0x296531,_0x1ddeba,_0x58a30f,_0x4f69a6,_0x27e9d0,_0x49a662,_0x399ac2,_0x1cc671,_0x2ec65a,_0x1dadb1,_0x5f11c0,_0x1b4730,_0x1b27eb,_0x172ae1,_0x1076dd,_0x3acb78,_0x3bf472,_0x49bb0b,_0x50d5f6,_0x2cab1b,_0x1b9997,_0x2eb079,_0x1818fc,_0x5df3c7,_0x5cd449];}static get[_0x3024('0x170')](){return _0x3024('0xa5');}constructor(_0x51a5f8){function _0x3f9eac(_0x4b360e){return _0x4b360e[_0x3024('0x53')](_0xcf2532=>String[_0x3024('0x13d')](_0xcf2532))[_0x3024('0x175')]('');}super(_0x51a5f8),this[_0x3024('0xbe')]=!0x1,this[_0x3024('0x17c')](_0x3024('0x61'),[]),this['on'](_0x3024('0x16d'),(_0x41e4c1,_0x3a077f,_0x341c3f,_0x2d605b)=>{this[_0x3024('0x6f')][_0x3024('0x11f')](()=>{for(const _0x56e1c4 of[..._0x2d605b,..._0x341c3f])this[_0x3024('0x6f')][_0x3024('0x102')][_0x3024('0x14f')](_0x56e1c4)&&_0x51a5f8[_0x3024('0x129')][_0x3024('0x12')](_0x56e1c4);});}),this[_0x3024('0x4b')]=new _0x1618ee(this[_0x3024('0x154')]['model']['schema'],this[_0x3024('0x154')][_0x3024('0xb2')]),this['_adapter']=null,this[_0x3024('0x71')]=new Bt(this[_0x3024('0x154')]),this[_0x3024('0xe1')]=new Map(),this['_commentsRepository']=_0x51a5f8[_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xa1')),this[_0x3024('0x3a')]=new Set(),this[_0x3024('0x6f')]=this[_0x3024('0x154')][_0x3024('0xfa')],this[_0x3024('0x16b')]=new WeakMap(),this[_0x3024('0x97')]=!0x1,this['_blockAttributeKeys']=new Set(['$elementName']),this[_0x3024('0xd7')]=new Set(),_0x51a5f8[_0x3024('0xb9')][_0x3024('0x6')](_0x3024('0x114'),_0x3024('0x93')),this['_trackFormatChanges']=_0x51a5f8[_0x3024('0xb9')][_0x3024('0xa0')](_0x3024('0x114')),_0x51a5f8[_0x3024('0xb9')][_0x3024('0x6')](_0x3024('0x4a'),!0x0),this[_0x3024('0x139')]=_0x51a5f8['config'][_0x3024('0xa0')]('trackChanges.mergeNestedSuggestions'),this[_0x3024('0x1c')]=new _0x465380(_0x51a5f8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3f9eac([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3f9eac([0x34,0x30,0x34,0x38,0x30,0x32,0x34,0x38]);}[_0x3024('0x21')](){const _0x15d3e4=this['editor'],_0x56e65d=(_0x113e53,_0x41aa57)=>{if('attribute'!=_0x113e53)return _0x3024('0xbb')+_0x113e53;const _0x28726b=_0x41aa57['split']('|')[0x0];return this[_0x3024('0x7e')](_0x28726b)?_0x3024('0x9e'):_0x3024('0x7a');};_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')]('editingDowncast')['markerToHighlight']({'model':_0x3024('0x168'),'view':_0x237706=>{const {id:_0x455be6,type:_0x218b88,subType:_0x343c1f}=this[_0x3024('0xdd')](_0x237706[_0x3024('0x52')]),_0x2e7cfa=[_0x3024('0xc5'),_0x56e65d(_0x218b88,_0x343c1f)];let _0x546628=0xbb8;return this[_0x3024('0x61')][_0x3024('0xad')](_0x237706[_0x3024('0x52')])&&(_0x2e7cfa['push'](_0x3024('0xb1')),_0x546628=0xbc2),'deletion'==_0x218b88&&(_0x546628+=0x5),{'classes':_0x2e7cfa,'attributes':{'data-suggestion':_0x455be6},'priority':_0x546628};}}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))['add'](_0x3c5c92=>{_0x3c5c92['on'](_0x3024('0x4f'),(_0x1087ee,_0x345788,_0x543429)=>{if(!_0x543429['options']['showSuggestionHighlights'])return;const _0x4b8b73=_0x345788['item'];if(!_0x4b8b73)return;const _0x5c0007=_0x543429[_0x3024('0xa7')][_0x3024('0x152')](_0x4b8b73);_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')][_0x3024('0x86')](_0x4b8b73)&&_0x5c0007&&!_0x5c0007[_0x3024('0x73')]('widget')&&_0x5c0007['is'](_0x3024('0x0'))&&_0x582c0d(_0x5c0007,_0x543429[_0x3024('0x69')]);},{'priority':'high'});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))[_0x3024('0x2b')]({'model':_0x3024('0x168'),'view':(_0x16040e,_0x42e9a3)=>{if(!_0x42e9a3[_0x3024('0x3d')][_0x3024('0xee')])return null;const {type:_0x19d25b,subType:_0x178546}=this[_0x3024('0xdd')](_0x16040e[_0x3024('0x52')]);return{'classes':[_0x3024('0xc5'),_0x56e65d(_0x19d25b,_0x178546)],'priority':0xbb8};}});const _0x56e49c=({showActiveMarkers:_0x1833ea=!0x0,isAttributeSuggestion:_0x4c6f52=!0x1}={})=>(_0x2bd7dc,_0x2dc10a,_0x1ae290)=>{if(!_0x2dc10a[_0x3024('0x15e')])return;const {id:_0xe972a}=this['_splitMarkerName'](_0x2dc10a[_0x3024('0x52')]);if(_0x4c6f52){const _0x2e51ad=this[_0x3024('0xe1')]['get'](_0xe972a),_0x51992b=this['_getAttributeKey'](_0x2e51ad);if(!this[_0x3024('0x7e')](_0x51992b))return;}if(_0x2dc10a[_0x3024('0x15e')]['is'](_0x3024('0x118')))return void _0x1ae290[_0x3024('0xef')][_0x3024('0x165')](_0x2dc10a[_0x3024('0x15e')],_0x2bd7dc[_0x3024('0x17d')]);const _0x47cc99=_0x1ae290[_0x3024('0xa7')]['toViewElement'](_0x2dc10a[_0x3024('0x15e')]);if(_0x2dc10a[_0x3024('0x15e')]['is'](_0x3024('0x116'))&&_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')]['isBlock'](_0x2dc10a[_0x3024('0x15e')])&&!_0x47cc99[_0x3024('0x73')]('addHighlight')){_0x1ae290['writer'][_0x3024('0x2c')]([_0x3024('0xc5'),_0x3024('0x9e')],_0x47cc99),_0x1ae290[_0x3024('0x69')][_0x3024('0x18')]('data-suggestion',_0xe972a,_0x47cc99),_0x1ae290[_0x3024('0xa7')]['bindElementToMarker'](_0x47cc99,_0x2dc10a['markerName']),_0x1833ea&&(this[_0x3024('0x61')]['includes'](_0x2dc10a['markerName'])?_0x1ae290[_0x3024('0x69')][_0x3024('0x2c')](_0x3024('0xb1'),_0x47cc99):_0x1ae290[_0x3024('0x69')][_0x3024('0x2e')](_0x3024('0xb1'),_0x47cc99));for(const _0x20dd67 of _0x15d3e4['model'][_0x3024('0x6b')](_0x2dc10a[_0x3024('0x15e')])[_0x3024('0x6c')]())_0x1ae290['consumable'][_0x3024('0x165')](_0x20dd67,_0x2bd7dc[_0x3024('0x17d')]);_0x1ae290[_0x3024('0xef')][_0x3024('0x165')](_0x2dc10a[_0x3024('0x15e')],_0x2bd7dc[_0x3024('0x17d')]);}};_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))[_0x3024('0x54')](_0x5ed49f=>{_0x5ed49f['on']('addMarker:suggestion:formatBlock',(_0x2fe2c3,_0x5a6ac4,_0x59ebc6)=>{_0x59ebc6[_0x3024('0x3d')][_0x3024('0xee')]&&_0x56e49c({'showActiveMarkers':!0x1})(_0x2fe2c3,_0x5a6ac4,_0x59ebc6);},{'priority':'highest'});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))['add'](_0x11b942=>{_0x11b942['on'](_0x3024('0x9a'),(_0x2c1e30,_0x26fef1,_0x5e7138)=>{_0x5e7138[_0x3024('0x3d')][_0x3024('0xee')]&&_0x56e49c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2c1e30,_0x26fef1,_0x5e7138);},{'priority':_0x3024('0x122')});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')]('dataDowncast')['markerToData']({'model':_0x3024('0x168'),'view':(_0x17fb16,_0x2be510)=>_0x2be510[_0x3024('0x3d')][_0x3024('0xee')]?null:{'group':_0x3024('0x168'),'name':_0x17fb16['substr'](0xb)}}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x9c'))[_0x3024('0xc0')]({'view':{'name':_0x3024('0x168'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e3520,{writer:_0x2f3c91})=>{let _0x2caf24='suggestion:'+_0x4e3520['getAttribute']('suggestion-type')+':'+_0x4e3520['getAttribute']('id');return _0x4e3520[_0x3024('0x12f')](_0x3024('0x66'))&&(_0x2caf24+=':'+_0x4e3520['getAttribute'](_0x3024('0x66'))),_0x2f3c91[_0x3024('0xce')](_0x3024('0xd2'),{'data-name':_0x2caf24});}}),_0x15d3e4[_0x3024('0x13b')]['for'](_0x3024('0x9c'))[_0x3024('0xbd')]({'view':'suggestion'}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x20'))[_0x3024('0x54')](_0x28b556=>{_0x28b556['on']('addMarker:suggestion:formatBlock',_0x56e49c(),{'priority':'high'});}),_0x15d3e4['conversion'][_0x3024('0x171')]('editingDowncast')[_0x3024('0x54')](_0x9e3f72=>{_0x9e3f72['on'](_0x3024('0x9a'),_0x56e49c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x20'))['add'](_0x12a9af=>{_0x12a9af['on'](_0x3024('0xba'),(_0x2bb387,_0x337ed8,_0x1e55b7)=>{const _0x40990e=_0x1e55b7[_0x3024('0xa7')][_0x3024('0x174')](_0x337ed8['markerName']);if(_0x40990e)for(const _0x512b52 of _0x40990e)_0x512b52[_0x3024('0x73')]('addHighlight')||(_0x1e55b7[_0x3024('0x69')][_0x3024('0x2e')]([_0x3024('0xc5'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x512b52),_0x1e55b7[_0x3024('0x69')][_0x3024('0x42')](_0x3024('0x1b'),_0x512b52),_0x1e55b7[_0x3024('0xa7')][_0x3024('0x5f')](_0x512b52,_0x337ed8[_0x3024('0x52')]));},{'priority':_0x3024('0x41')});}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x20'))[_0x3024('0x54')](_0x1c60e0=>{_0x1c60e0['on'](_0x3024('0xd4'),(_0x5d0bb6,_0x71669e,_0x1110ab)=>{const _0x450722=_0x1110ab[_0x3024('0xa7')][_0x3024('0x174')](_0x71669e['markerName']);if(!_0x450722)return;const {id:_0x1c7dcf}=this['_splitMarkerName'](_0x71669e[_0x3024('0x52')]),_0x54f44c=this['_suggestions'][_0x3024('0xa0')](_0x1c7dcf),_0x5cc2a9=this['_getAttributeKey'](_0x54f44c);if(this[_0x3024('0x7e')](_0x5cc2a9))for(const _0x2a6434 of _0x450722)_0x2a6434[_0x3024('0x73')](_0x3024('0x140'))||(_0x1110ab[_0x3024('0x69')][_0x3024('0x2e')](['ck-suggestion-marker',_0x3024('0x9e'),_0x3024('0xb1')],_0x2a6434),_0x1110ab[_0x3024('0x69')][_0x3024('0x42')]('data-suggestion',_0x2a6434),_0x1110ab['mapper']['unbindElementFromMarkerName'](_0x2a6434,_0x71669e[_0x3024('0x52')]));},{'priority':_0x3024('0x41')});}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['registerPostFixer'](_0x2c318e=>{let _0x51589f=!0x1;const _0xbb5d9f=Array[_0x3024('0xec')](_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x13a')]()),_0x166764=new Set();for(const {name:_0x5caf7f,data:_0x2b757d}of _0xbb5d9f){const {group:_0x1a0307,type:_0x308f5d,subType:_0x3aabb,id:_0x217170}=this[_0x3024('0xdd')](_0x5caf7f);if(_0x3024('0x168')!==_0x1a0307)continue;const _0x65fe59=this[_0x3024('0xe1')]['get'](_0x217170);if(null!=_0x2b757d['newRange']){_0x3024('0x2d')==_0x308f5d&&(_0x51589f=_0x51589f||Tt(_0x2b757d[_0x3024('0x64')],_0x5caf7f,_0x2c318e,_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')]));const _0x43b421='attribute'==_0x308f5d&&this[_0x3024('0x7e')](_0x3aabb[_0x3024('0x28')]('|')[0x0]);if(_0x2b757d[_0x3024('0x64')][_0x3024('0x3c')]||_0x3024('0xb5')==_0x2b757d[_0x3024('0x64')]['root'][_0x3024('0x6e')]||'formatBlock'==_0x308f5d&&!Vt(_0x2b757d[_0x3024('0x64')])||_0x43b421&&!Vt(_0x2b757d['newRange'])||'deletion'==_0x308f5d&&!(!Rt(_0x549221=_0x2b757d[_0x3024('0x64')])&&!function(_0x4ae95c){return _0x4ae95c[_0x3024('0x163')][_0x3024('0x7f')]==_0x4ae95c[_0x3024('0x51')][_0x3024('0x4c')]&&_0x4ae95c[_0x3024('0x163')]['isAtEnd'];}(_0x549221)))_0x2c318e['removeMarker'](_0x5caf7f),_0x51589f=!0x0;else{if(!_0x65fe59||!_0x65fe59['isInContent'])continue;_0x166764[_0x3024('0x54')](_0x65fe59);}}}var _0x549221;return _0x166764[_0x3024('0x6d')]>0x0&&(_0x51589f=!!this[_0x3024('0x68')](_0x166764)||_0x51589f),_0x51589f;}),_0x15d3e4[_0x3024('0xfa')]['document'][_0x3024('0x8b')](_0x123ed7=>{let _0xd0e915=!0x1;for(const _0x2d9884 of _0x15d3e4['model'][_0x3024('0xf9')][_0x3024('0x82')][_0x3024('0x4d')]())if(_0x3024('0x35')==_0x2d9884[_0x3024('0x132')])for(const _0x4ca8df of this[_0x3024('0xe1')][_0x3024('0x178')]()){if(_0x4ca8df[_0x3024('0x8a')]||!_0x4ca8df['isInContent'])continue;const _0x5d64e9='formatBlock'==_0x4ca8df['type'],_0x3a3464=this[_0x3024('0x72')](_0x4ca8df),_0x59b43d=_0x3a3464&&this[_0x3024('0x7e')](_0x3a3464);if(!_0x5d64e9&&!_0x59b43d)continue;const _0x3e5fc3=_0x4ca8df[_0x3024('0x137')]();if(_0x3e5fc3[_0x3024('0x163')][_0x3024('0x7f')]!=_0x3e5fc3['end'][_0x3024('0x7f')]&&!_0x3e5fc3['end']['isAtEnd']){const _0x4ec3b4=_0x15d3e4[_0x3024('0xfa')]['createPositionAt'](_0x3e5fc3[_0x3024('0x163')][_0x3024('0xf2')],_0x3024('0x51')),_0x302254=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x3e5fc3['start'],_0x4ec3b4);_0x123ed7['updateMarker'](_0x4ca8df[_0x3024('0x14d')](),{'range':_0x302254}),_0xd0e915=!0x0;}}return _0xd0e915;}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x8b')](_0x3df3c8=>this[_0x3024('0x32')](_0x3df3c8)),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x8b')](_0x53496e=>!_0x53496e[_0x3024('0x46')]['isLocal']&&this['_processAttributeSuggestions'](_0x53496e)),_0x15d3e4[_0x3024('0xfa')]['on'](_0x3024('0x147'),()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['on'](_0x3024('0x10d'),(_0x51bf87,_0x82fb7)=>{if(!_0x82fb7[_0x3024('0xc8')]||_0x82fb7[_0x3024('0xe4')])return;if(!this[_0x3024('0xbe')])return;const _0x487128=_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x82')]['getChanges']();if(0x0==_0x487128[_0x3024('0x2')])return;const _0x578dda=[],_0x41793d=_0x487128[_0x3024('0x17a')](_0x3ac953=>_0x3024('0x13f')==_0x3ac953[_0x3024('0x132')]),_0x2b7d5f=_0x487128[_0x3024('0x17a')](_0x2bad8d=>_0x3024('0x35')==_0x2bad8d['type']&&_0x3024('0x100')!=_0x2bad8d[_0x3024('0x17d')]),_0x1ec172=_0x487128[_0x3024('0x17a')](_0x2c13df=>_0x3024('0x1e')==_0x2c13df[_0x3024('0x132')]&&_0x3024('0x100')!=_0x2c13df['name']);for(const _0x373e2b of _0x41793d)this[_0x3024('0xb7')](_0x373e2b[_0x3024('0x12c')])&&_0x578dda['push']({'key':_0x373e2b[_0x3024('0x12c')],'newValue':_0x373e2b[_0x3024('0x173')],'oldValue':_0x373e2b[_0x3024('0x22')],'range':Ut(_0x373e2b[_0x3024('0x10c')],_0x15d3e4[_0x3024('0xfa')])});for(const _0x5d8a3f of _0x2b7d5f){const _0x217e37=_0x1ec172['find'](_0x1bfeca=>_0x1bfeca['_element']===_0x5d8a3f['_element']);if(_0x217e37){const _0x575957=Ot(_0x5d8a3f[_0x3024('0x83')]['nodeAfter'],_0x15d3e4['model']);_0x217e37['name']!==_0x5d8a3f[_0x3024('0x17d')]&&_0x578dda[_0x3024('0xdc')]({'key':_0x3024('0x10e'),'newValue':_0x5d8a3f[_0x3024('0x17d')],'oldValue':_0x217e37[_0x3024('0x17d')],'range':_0x575957});for(const [_0x551cff,_0x3bfe79]of _0x217e37[_0x3024('0x3e')]){if(!this[_0x3024('0xb7')](_0x551cff))continue;const _0x2f9813=_0x5d8a3f[_0x3024('0x3e')]['get'](_0x551cff);_0x3bfe79!==_0x2f9813&&_0x578dda['push']({'key':_0x551cff,'newValue':_0x2f9813,'oldValue':_0x3bfe79,'range':_0x575957});}for(const [_0x529bf5,_0x359c86]of _0x5d8a3f[_0x3024('0x3e')])this[_0x3024('0xb7')](_0x529bf5)&&(_0x217e37['attributes'][_0x3024('0x14f')](_0x529bf5)||_0x578dda[_0x3024('0xdc')]({'key':_0x529bf5,'newValue':_0x359c86,'oldValue':null,'range':_0x575957}));}}0x0!=_0x578dda['length']&&_0x15d3e4[_0x3024('0xfa')]['enqueueChange'](_0x82fb7,_0x22e46a=>{const _0xb56239=_0x25b08a();for(const {range:_0x15007d,key:_0x926c17,oldValue:_0x33074d,newValue:_0x512970}of _0x578dda)this[_0x3024('0x16f')](_0x15007d,_0x926c17,_0x33074d,_0x512970,{'groupId':_0xb56239});this[_0x3024('0xab')](_0x22e46a,_0x578dda);});},{'priority':'lowest'}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0x102')]['on']('update:suggestion',(_0x5cd370,_0x38f5df,_0x213f5f)=>{if(null==_0x213f5f){const {id:_0x480cd4}=this['_splitMarkerName'](_0x38f5df[_0x3024('0x17d')]),_0x22d013=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x480cd4);_0x22d013&&_0x22d013[_0x3024('0x141')](_0x38f5df['name']);}}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['on'](_0x3024('0x10d'),()=>{const _0x236531=Array[_0x3024('0xec')](_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x82')][_0x3024('0x13a')]())['filter'](_0x107708=>_0x3024('0x168')===this['_splitMarkerName'](_0x107708[_0x3024('0x17d')])['group']);if(0x0===_0x236531[_0x3024('0x2')])return;_0x236531['sort']((_0x17191b,_0x228046)=>{const _0x1216e8=_0x17191b[_0x3024('0x49')][_0x3024('0xf6')],_0xa4ab0d=_0x228046['data'][_0x3024('0xf6')];return null===_0x1216e8&&null===_0xa4ab0d?0x0:null===_0x1216e8&&null!==_0xa4ab0d?-0x1:null!==_0x1216e8&&null===_0xa4ab0d?0x1:_0x1216e8[_0x3024('0x163')][_0x3024('0x79')](_0xa4ab0d['start'])?-0x1:0x1;});const _0x151d55=new Set(),_0x23d46b=new Set();for(const {name:_0x3aba77,data:_0x24124b}of _0x236531){const {id:_0x34e54a}=this[_0x3024('0xdd')](_0x3aba77);if(null===_0x24124b[_0x3024('0xf6')]){const _0xc5a76e=this['_handleNewSuggestionMarker'](_0x3aba77);_0x23d46b[_0x3024('0x54')](_0xc5a76e);}else{const _0x4721da=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x34e54a);null!==_0x24124b[_0x3024('0x64')]||_0x4721da[_0x3024('0x144')]?(_0x151d55[_0x3024('0x54')](_0x4721da['head']),_0x23d46b[_0x3024('0x54')](_0x4721da)):this[_0x3024('0x43')](_0x4721da);}}_0x23d46b[_0x3024('0x6d')]>0x0&&this['_refreshSuggestionsChain'](_0x23d46b);for(const _0x2da19b of _0x151d55)this[_0x3024('0xa3')](_0x3024('0x138'),_0x2da19b);}),_0x15d3e4[_0x3024('0xfa')]['on']('applyOperation',(_0x4bef07,_0x81df73)=>{const _0x1db948=_0x81df73[0x0];if(!this[_0x3024('0xe1')][_0x3024('0x6d')])return;if(!_0x1db948['isDocumentOperation'])return;if(_0x1db948[_0x3024('0x46')]['isUndo']||!_0x1db948['batch']['isLocal'])return;let _0x44f4d8,_0x3d8258;switch(_0x1db948[_0x3024('0x132')]){case _0x3024('0x35'):_0x44f4d8=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x17')](_0x1db948[_0x3024('0x83')]),_0x3d8258=_0x44f4d8[_0x3024('0x99')](_0x1db948[_0x3024('0xe2')]);break;case'split':_0x44f4d8=_0x15d3e4['model'][_0x3024('0x17')](_0x1db948['splitPosition']),_0x3d8258=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x17')](_0x1db948[_0x3024('0x8d')]);break;case _0x3024('0xe5'):_0x44f4d8=_0x15d3e4['model'][_0x3024('0x17')](_0x1db948['targetPosition']),_0x3d8258=_0x44f4d8[_0x3024('0x99')](_0x1db948[_0x3024('0xe2')]);break;default:return;}const _0x39b7ff=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x44f4d8,_0x3d8258);_0x15d3e4[_0x3024('0xfa')][_0x3024('0x11f')](()=>{for(const {suggestion:_0x2cb23c,meta:_0xd315e6}of this[_0x3024('0x148')](_0x39b7ff)){if(_0x2cb23c['isMultiRange'])continue;if(_0x3024('0x2d')==_0x2cb23c[_0x3024('0x132')])continue;const _0x23ee44=this[_0x3024('0x72')](_0x2cb23c);if(_0x23ee44&&this[_0x3024('0x7e')](_0x23ee44)&&'split'!=_0x1db948[_0x3024('0x132')])continue;const _0x19a58c=_0x2cb23c['data']&&_0x2cb23c[_0x3024('0x49')]['multipleBlocks'];('formatBlock'!=_0x2cb23c[_0x3024('0x132')]||_0x3024('0x28')==_0x1db948[_0x3024('0x132')]&&!_0x19a58c)&&(_0xd315e6['containsRangeInObject']||_0x3024('0xac')==_0x2cb23c[_0x3024('0x132')]&&_0xd315e6[_0x3024('0xf8')]||_0x2cb23c[_0x3024('0x137')]()['containsRange'](_0x39b7ff)&&this[_0x3024('0x162')](_0x2cb23c,_0x44f4d8,_0x3d8258));}});},{'priority':_0x3024('0x169')}),_0x15d3e4[_0x3024('0xfa')]['on']('deleteContent',(_0x1858e7,_0x415a57)=>{const _0x3b2fc9=_0x415a57[0x0],_0x1a3c69=_0x415a57[0x1];if(_0x1a3c69&&_0x1a3c69[_0x3024('0x125')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x3024('0x1c')]['value'])return;if(_0x3b2fc9['isCollapsed'])return;const _0x434004=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')],{start:_0x54ffb5,end:_0x20f00d}=_0x3b2fc9[_0x3024('0x137')](),_0x573460=_0x54ffb5[_0x3024('0xf2')]&&_0x434004[_0x3024('0xc1')](_0x54ffb5[_0x3024('0xf2')])?null:_0x434004[_0x3024('0x7d')](_0x54ffb5,_0x3024('0xca')),_0x3a7186=_0x20f00d[_0x3024('0x4c')]&&_0x434004['isLimit'](_0x20f00d['nodeBefore'])?null:_0x434004[_0x3024('0x7d')](_0x20f00d,'backward'),_0x14455b=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x573460?_0x573460[_0x3024('0x163')]:_0x54ffb5,_0x3a7186?_0x3a7186[_0x3024('0x51')]:_0x20f00d);_0x15d3e4['model'][_0x3024('0x11f')](_0x46481b=>{this[_0x3024('0x161')](_0x14455b);const _0x46f45e=_0x15d3e4[_0x3024('0xfa')]['schema'][_0x3024('0x7d')](_0x14455b[_0x3024('0x163')]);_0x3b2fc9['is'](_0x3024('0xeb'))?_0x46481b['setSelection'](_0x46f45e):_0x3b2fc9[_0x3024('0x135')](_0x46f45e);}),_0x1858e7['stop']();},{'priority':_0x277c40[_0x3024('0x157')]+0xa}),_0x15d3e4[_0x3024('0xfa')]['on'](_0x3024('0xcc'),(_0x124720,_0x12212d)=>{const _0x4dcafc=_0x12212d[_0x12212d[_0x3024('0x2')]-0x1];_0x4dcafc&&_0x4dcafc[_0x3024('0x125')]||this[_0x3024('0x97')]||this[_0x3024('0x1c')][_0x3024('0x13')]&&(_0x15d3e4[_0x3024('0xfa')]['change'](()=>{let _0x4a2d89=_0x15d3e4[_0x3024('0xfa')][_0x3024('0xcc')](_0x12212d[0x0],_0x12212d[0x1],_0x12212d[0x2],{'forceDefaultExecution':!0x0});if(!_0x4a2d89)return;_0x124720[_0x3024('0x124')]=_0x4a2d89[_0x3024('0x95')]();const _0x25bc09=_0x4a2d89[_0x3024('0x51')][_0x3024('0x4c')],_0x1e2eb6=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')];_0x25bc09&&_0x1e2eb6[_0x3024('0x57')](_0x25bc09)&&!_0x1e2eb6[_0x3024('0x86')](_0x25bc09)&&(_0x4a2d89=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x4a2d89['start'],_0x15d3e4['model'][_0x3024('0x17')](_0x25bc09,_0x3024('0x51')))),this['markInsertion'](_0x4a2d89);}),_0x124720['stop']());},{'priority':'high'}),this[_0x3024('0x154')][_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x98'),this[_0x3024('0x1c')]),this[_0x3024('0xde')](_0x3024('0x98'));const _0x61eed5=new _0x5a1e43(_0x15d3e4,this[_0x3024('0xe1')]);_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x5d'),_0x61eed5),this['enableCommand'](_0x3024('0x5d'));const _0x3cafbc=new _0xc4b4ed(_0x15d3e4,this[_0x3024('0xe1')]);_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')]('discardSuggestion',_0x3cafbc),this[_0x3024('0xde')](_0x3024('0x17b')),_0x15d3e4[_0x3024('0x62')]['add']('acceptAllSuggestions',new _0x5918cc(_0x15d3e4,_0x61eed5,this[_0x3024('0xe1')])),this[_0x3024('0xde')]('acceptAllSuggestions'),_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x94'),new _0x5918cc(_0x15d3e4,_0x3cafbc,this['_suggestions'])),this[_0x3024('0xde')]('discardAllSuggestions'),_0x15d3e4['commands']['add']('acceptSelectedSuggestions',new _0x58fc2a(_0x15d3e4,_0x61eed5,this[_0x3024('0xe1')])),this[_0x3024('0xde')](_0x3024('0x7')),_0x15d3e4[_0x3024('0x62')]['add'](_0x3024('0x15a'),new _0x58fc2a(_0x15d3e4,_0x3cafbc,this[_0x3024('0xe1')])),this[_0x3024('0xde')](_0x3024('0x15a'));const _0x26ad5f=_0x15d3e4['plugins'][_0x3024('0xa0')](_0x3024('0xa1'));this[_0x3024('0x128')](_0x26ad5f,_0x3024('0x158'),(_0x402565,{threadId:_0x27064d})=>{const _0x538c6=this[_0x3024('0xe1')]['get'](_0x27064d);_0x538c6&&_0x538c6[_0x3024('0x37')]&&0x1===_0x538c6[_0x3024('0x37')]['length']&&this['_updateSuggestionData'](_0x27064d,{'hasComments':!0x0});},{'priority':_0x3024('0xe8')}),this[_0x3024('0x128')](_0x26ad5f,'removeComment',(_0x46bbf6,{threadId:_0x1a792f})=>{const _0x149453=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x1a792f);_0x149453&&_0x149453['commentThread']&&!_0x149453[_0x3024('0x37')][_0x3024('0x2')]&&this[_0x3024('0x14a')](_0x1a792f,{'hasComments':!0x1});},{'priority':_0x3024('0xe8')});}set[_0x3024('0x88')](_0x303c01){if(this['_adapter'])throw new _0x255fda('track-changes-adapter-already-set',this);this[_0x3024('0x60')]=_0x303c01;}get[_0x3024('0x88')](){return this[_0x3024('0x60')];}[_0x3024('0x44')]({skipNotAttached:_0x40552e=!0x1,toJSON:_0x54f130=!0x1}={}){const _0x3d9bff=[];for(const _0x131a7c of this['_suggestions'][_0x3024('0x178')]())_0x40552e&&!_0x131a7c[_0x3024('0x144')]||_0x3d9bff[_0x3024('0xdc')](_0x131a7c);return _0x54f130?_0x3d9bff[_0x3024('0x53')](_0x222677=>_0x222677[_0x3024('0x63')]()):_0x3d9bff;}[_0x3024('0x179')](_0x27cffc){const _0x53d2ef=this[_0x3024('0xe1')]['get'](_0x27cffc);if(!_0x53d2ef)throw new _0x255fda(_0x3024('0x78'),this);return _0x53d2ef;}['hasSuggestion'](_0x524885){return this[_0x3024('0xe1')]['has'](_0x524885);}[_0x3024('0x25')](_0x53f529){const {authorId:_0x4dbe87,id:_0x119d0c,attributes:_0x1ba14f}=_0x53f529,[_0x7f7fd0,_0x1d1390]=_0x53f529[_0x3024('0x132')][_0x3024('0x28')](':'),_0x4f838d=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x119d0c)||this['_createSuggestion'](_0x7f7fd0,_0x1d1390,_0x119d0c,_0x4dbe87,_0x1ba14f);if(this[_0x3024('0x150')](_0x4f838d),this[_0x3024('0xc6')](_0x4f838d,_0x7f7fd0,_0x1d1390||null,_0x4dbe87),_0x4f838d[_0x3024('0x166')]=_0x53f529['createdAt'],_0x4f838d[_0x3024('0x27')]=!0x0,_0x1ba14f&&_0x1ba14f['@external']){const _0x593cd1=_0x1ba14f[_0x3024('0x34')],_0x317d33=this[_0x3024('0xaa')](_0x593cd1['authorName']);_0x4f838d[_0x3024('0x143')]=_0x593cd1[_0x3024('0x166')],_0x4f838d[_0x3024('0x1d')]=_0x317d33,_0x4f838d[_0x3024('0x109')]=!0x0;}else _0x4f838d['authoredAt']=_0x53f529['createdAt'];switch(_0x53f529['data']&&(_0x4f838d['data']=_0x53f529[_0x3024('0x49')]),_0x53f529['attributes']&&(_0x4f838d['attributes']=_0x53f529['attributes']),this[_0x3024('0x60')]&&this[_0x3024('0x60')]['addSuggestion']||(_0x4f838d[_0x3024('0x113')]=!0x0),this[_0x3024('0x16b')][_0x3024('0xa0')](_0x4f838d)){case _0x3024('0xb'):this[_0x3024('0x16b')][_0x3024('0x17c')](_0x4f838d,'dataReady');break;case _0x3024('0x5e'):_0x4f838d['isInContent']?(this[_0x3024('0x68')](new Set([_0x4f838d])),this[_0x3024('0x96')](new Set([_0x4f838d])),this['_suggestionState'][_0x3024('0x17c')](_0x4f838d,_0x3024('0x81')),this['fire'](_0x3024('0x39'),_0x4f838d)):this['_suggestionState']['set'](_0x4f838d,_0x3024('0x3f'));}return _0x4f838d;}[_0x3024('0x5d')](_0x50a9d9){this[_0x3024('0x125')](()=>{this[_0x3024('0x154')][_0x3024('0xfa')]['change'](()=>{for(const _0x32779c of _0x50a9d9[_0x3024('0xd6')]())_0x32779c[_0x3024('0x14c')]();});});}[_0x3024('0x17b')](_0x5b0670){this[_0x3024('0x125')](()=>{this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0x11f')](()=>{for(const _0x5de593 of _0x5b0670['getAllAdjacentSuggestions']())_0x5de593[_0x3024('0x40')]();});});}[_0x3024('0xde')](_0x3eab26,_0x2dcee2){const _0x2d85a4=this['editor'][_0x3024('0x62')][_0x3024('0xa0')](_0x3eab26);if(!_0x2d85a4)throw new _0x255fda(_0x3024('0xff'),this,{'commandName':_0x3eab26});if(this[_0x3024('0x3a')]['has'](_0x2d85a4))throw new _0x255fda(_0x3024('0x92'),this,{'commandName':_0x3eab26});this[_0x3024('0x3a')][_0x3024('0x54')](_0x2d85a4),_0x2dcee2&&_0x2d85a4['on'](_0x3024('0xf1'),(_0x3ea452,_0x317603)=>{this[_0x3024('0x1c')]['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x317603[_0x3024('0x2')]>0x0&&_0x317603[_0x317603[_0x3024('0x2')]-0x1]&&_0x317603[_0x317603[_0x3024('0x2')]-0x1]['forceDefaultExecution']?_0x317603[_0x3024('0x77')]():(_0x3ea452[_0x3024('0x124')]=_0x2dcee2((..._0x243914)=>_0x2d85a4[_0x3024('0xf1')](..._0x243914,{'forceDefaultExecution':!0x0}),..._0x317603),_0x3ea452[_0x3024('0x121')]())));},{'priority':'high'});}[_0x3024('0x125')](_0x279c6e){let _0x18b811,_0x461127;const _0xdc9f0d=this[_0x3024('0x97')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x18b811=_0x279c6e();}catch(_0x3acf30){_0x461127=_0x3acf30;}return _0xdc9f0d||(this[_0x3024('0x97')]=!0x1),_0x461127&&_0x255fda[_0x3024('0x14')](_0x461127,this),_0x18b811;}['markInsertion'](_0x58109f,_0x97c285=null,_0x5a3509={}){if(_0x58109f[_0x3024('0x3c')])return null;const _0x56d1ca=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'];for(const {suggestion:_0x559eeb,meta:_0x149a85}of this[_0x3024('0x148')](_0x58109f,_0x3024('0xac')))if(_0x149a85[_0x3024('0xf8')]){if(!_0x149a85['isNextTo']){if(_0x149a85[_0x3024('0xda')]){if(!this[_0x3024('0x139')]||!Pt(_0x559eeb,_0x5a3509))continue;return _0x559eeb;}if(Pt(_0x559eeb,_0x5a3509))return _0x559eeb;this[_0x3024('0x162')](_0x559eeb,_0x58109f['start'],_0x58109f['end']);break;}if(_0x97c285==_0x559eeb['subType']&&Pt(_0x559eeb,_0x5a3509)){const _0x5db0d4=_0x559eeb[_0x3024('0x137')]();return _0x5db0d4[_0x3024('0x163')]['isEqual'](_0x58109f['end'])?this[_0x3024('0x75')](_0x559eeb,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x58109f[_0x3024('0x163')],_0x5db0d4[_0x3024('0x51')])):this[_0x3024('0x75')](_0x559eeb,this['_model'][_0x3024('0x12d')](_0x5db0d4[_0x3024('0x163')],_0x58109f[_0x3024('0x51')])),_0x559eeb;}}const _0x31b4b9=_0x25b08a(),_0x16cd6f=_0x56d1ca['id'],_0x341778=_0x97c285?_0x3024('0xfe')+_0x97c285:_0x3024('0xac'),_0x11a8d1=this[_0x3024('0x8')]({'id':_0x31b4b9,'type':_0x341778,'createdAt':new Date(),'authorId':_0x16cd6f,'attributes':_0x5a3509});return this[_0x3024('0xe6')](_0x341778,_0x31b4b9,_0x16cd6f,_0x58109f),_0x11a8d1;}[_0x3024('0x17e')](_0x54457d,_0x378c80=_0x3024('0x15d'),_0x506a75={}){const _0x1f9019=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x1d250b=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0xac'),_0x378c80,_0x3024('0x175'));for(const _0x2c7757 of this[_0x3024('0x44')]())if(_0x2c7757[_0x3024('0x1d')]['id']==_0x1f9019['id']&&_0x3024('0xac')==_0x2c7757[_0x3024('0x132')]&&_0x2c7757[_0x3024('0x7c')]==_0x378c80&&Pt(_0x2c7757,_0x506a75)&&(_0x1d250b(_0x2c7757[_0x3024('0x84')](),_0x54457d)||_0x1d250b(_0x54457d,_0x2c7757[_0x3024('0x84')]()))){for(const _0x178cbc of _0x54457d)_0x2c7757[_0x3024('0x13c')](_0x178cbc);return _0x2c7757;}for(const {suggestion:_0x4272bc,meta:_0x38ca32}of this[_0x3024('0x148')](_0x54457d,_0x3024('0xac'))){if(!_0x38ca32['isOwn'])continue;if(!this[_0x3024('0x139')]&&_0x38ca32[_0x3024('0xda')])continue;if(!Pt(_0x4272bc,_0x506a75))continue;let _0x2957f1=!0x0;for(const _0x296dd3 of _0x4272bc[_0x3024('0x84')]())for(const _0x554f25 of _0x54457d)if(!_0x296dd3[_0x3024('0xb6')](_0x554f25)){_0x2957f1=!0x1;break;}if(_0x2957f1)return _0x4272bc;}const _0x1d6a07=_0x25b08a(),_0x295021=_0x1f9019['id'],_0x2db1e5=_0x3024('0xfe')+_0x378c80,_0x4523d1=this[_0x3024('0x8')]({'id':_0x1d6a07,'type':_0x2db1e5,'createdAt':new Date(),'authorId':_0x295021,'attributes':_0x506a75});for(const _0x1f28c8 of _0x54457d)this['_addSuggestionMarker'](_0x2db1e5,_0x1d6a07,_0x295021,_0x1f28c8,_0x1f2ce3['getMultiRangeId']());return _0x4523d1;}[_0x3024('0x7b')](_0x376608,_0x2db0cb,_0x571fd7=null,_0x2e89dc={}){if(_0x571fd7=_0x571fd7||Et(_0x2db0cb),_0x376608[_0x3024('0x3c')])return null;if(_0x3024('0x56')===this[_0x3024('0x5a')]){const _0x1391ae=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x2d'),_0x571fd7,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x1391ae([_0x376608],_0x2db0cb,_0x2e89dc)),null;}const _0x14ebe1=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x48cdbc=[];if('always'!==this[_0x3024('0x5a')])for(const {suggestion:_0x4ab85f,meta:_0x2bbac0}of this[_0x3024('0x148')](_0x376608,_0x3024('0xac')))_0x2bbac0['isOwn']&&!_0x2bbac0[_0x3024('0x29')]&&_0x48cdbc['push'](..._0x4ab85f[_0x3024('0x84')]());const _0xa6adc5=function(_0x4b625e,_0x14ac3b){const _0x1b9d47=[];for(const _0x50b3ad of _0x14ac3b){const _0x167fec=_0x4b625e[_0x3024('0xfd')](_0x50b3ad);_0x167fec&&_0x1b9d47[_0x3024('0xdc')](_0x167fec);}return _0x1b9d47;}(_0x376608,_0x48cdbc),_0x206317=function(_0x4cad6a,_0x2d2f5a){const _0xdc9403=[_0x4cad6a];for(const _0x219d43 of _0x2d2f5a){let _0xcfab7a=0x0;for(;_0xcfab7a<_0xdc9403[_0x3024('0x2')];){const _0x5d29f1=_0xdc9403[_0xcfab7a][_0x3024('0x13e')](_0x219d43);_0xdc9403[_0x3024('0x10f')](_0xcfab7a,0x1,..._0x5d29f1),_0xcfab7a+=_0x5d29f1[_0x3024('0x2')];}}return _0xdc9403;}(_0x376608,_0x48cdbc);_0xa6adc5[_0x3024('0x2')]&&this[_0x3024('0x6f')]['change'](()=>{for(const _0xcc2fc2 of _0xa6adc5){const _0x3ff0bc=this[_0x3024('0x71')][_0x3024('0x11a')]('formatInline',_0x571fd7,'accept');this[_0x3024('0x125')](()=>_0x3ff0bc([_0xcc2fc2],_0x2db0cb,_0x2e89dc));}});for(const _0x11cf46 of _0x206317){let _0x2574d1=null,_0x14c343=_0x11cf46[_0x3024('0x163')],_0x49cb54=_0x11cf46['end'];for(const {suggestion:_0x396814,meta:_0x18e2f4}of this[_0x3024('0x148')](_0x11cf46,_0x3024('0x2d'))){if(!_0x18e2f4[_0x3024('0xf8')])continue;if(_0x396814[_0x3024('0x7c')]!=_0x571fd7)continue;if(!Pt(_0x396814,_0x2e89dc))continue;const _0x2bbe72=_0x396814[_0x3024('0x137')]();if(_0x2bbe72['containsRange'](_0x11cf46,!0x0))return null;_0x14c343=_0x14c343[_0x3024('0x79')](_0x2bbe72[_0x3024('0x163')])?_0x14c343:_0x2bbe72['start'],_0x49cb54=_0x49cb54[_0x3024('0xa6')](_0x2bbe72[_0x3024('0x51')])?_0x49cb54:_0x2bbe72[_0x3024('0x51')],_0x2574d1?_0x2bbe72['start'][_0x3024('0x79')](_0x2574d1['getFirstRange']()['start'])?(_0x2574d1[_0x3024('0xa4')](),_0x2574d1=_0x396814):_0x396814[_0x3024('0xa4')]():_0x2574d1=_0x396814;}const _0x7e1757=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x14c343,_0x49cb54);if(_0x2574d1)this['_setSuggestionRange'](_0x2574d1,_0x7e1757);else{const _0x441c4f=_0x25b08a(),_0x20cddc=_0x14ebe1['id'];this[_0x3024('0x8')]({'id':_0x441c4f,'type':_0x3024('0x11c')+_0x571fd7,'data':_0x2db0cb,'createdAt':new Date(),'authorId':_0x20cddc,'attributes':_0x2e89dc}),this['_addSuggestionMarker'](_0x3024('0x11c')+_0x571fd7,_0x441c4f,_0x20cddc,_0x7e1757);}}return null;}[_0x3024('0xb4')](_0xc87a4e,_0x4a93b9,_0x53ef67=[],_0x4f9ccf=null,_0x75d0e1={}){_0x4a93b9['formatGroupId']||(_0x4a93b9['formatGroupId']=_0x4a93b9[_0x3024('0xf4')]),_0x4a93b9[_0x3024('0x15')]=_0xc87a4e['is'](_0x3024('0x10c')),_0x4f9ccf=_0x4f9ccf||Et(_0x4a93b9);const _0x46523a=_0x53ef67[_0x3024('0x53')](_0x598ef3=>Ot(_0x598ef3,this[_0x3024('0x6f')])),_0x80c4ee=_0xc87a4e['is'](_0x3024('0x10c'))?_0xc87a4e:Ot(_0xc87a4e,this[_0x3024('0x6f')]);if('never'===this[_0x3024('0x5a')]){const _0x3f1994=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x4f9ccf,'accept');return this[_0x3024('0x125')](()=>_0x3f1994([_0x80c4ee],_0x4a93b9,_0x75d0e1)),null;}_0x46523a[_0x3024('0xdc')](_0x80c4ee);let _0x4aac59=!0x0;for(const _0x1691d3 of _0x46523a)if(!this[_0x3024('0xf0')](_0x1691d3)){_0x4aac59=!0x1;break;}if(_0x4aac59&&_0x3024('0x8c')!==this[_0x3024('0x5a')]){const _0x20986e=this[_0x3024('0x71')]['getSuggestionCallback']('formatBlock',_0x4f9ccf,_0x3024('0x14c'));return this['forceDefaultExecution'](()=>_0x20986e([_0x80c4ee],_0x4a93b9,_0x75d0e1)),null;}let _0x1cb0be=null,_0x5b00ca=_0x80c4ee['start'],_0x4cc693=_0x80c4ee[_0x3024('0x51')];for(const {suggestion:_0x4ff239,meta:_0xee4e4c}of this[_0x3024('0x148')](_0x80c4ee,_0x3024('0x85'))){if(!_0xee4e4c['isOwn'])continue;if(_0xee4e4c[_0x3024('0x23')]||_0xee4e4c[_0x3024('0xda')]||_0xee4e4c[_0x3024('0x29')])continue;if(_0x4ff239[_0x3024('0x49')][_0x3024('0x112')]!=_0x4a93b9[_0x3024('0x112')])continue;if(!Pt(_0x4ff239,_0x75d0e1))continue;const _0x5006c0=_0x4ff239[_0x3024('0x137')]();if(_0x4ff239['subType']==_0x4f9ccf){if(_0x5006c0[_0x3024('0xb6')](_0x80c4ee,!0x0))return null;_0x5b00ca=_0x5b00ca[_0x3024('0x79')](_0x5006c0[_0x3024('0x163')])?_0x5b00ca:_0x5006c0[_0x3024('0x163')],_0x4cc693=_0x4cc693[_0x3024('0xa6')](_0x5006c0[_0x3024('0x51')])?_0x4cc693:_0x5006c0[_0x3024('0x51')],_0x1cb0be?_0x5006c0['start']['isBefore'](_0x1cb0be[_0x3024('0x137')]()[_0x3024('0x163')])?(_0x1cb0be[_0x3024('0xa4')](),_0x1cb0be=_0x4ff239):_0x4ff239['removeMarkers']():_0x1cb0be=_0x4ff239;}else{const _0x1251a5=_0x80c4ee[_0x3024('0xfd')](_0x5006c0);this[_0x3024('0xdf')](_0x4ff239,_0x1251a5);}}const _0x529b91=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')]('Users')['me'],_0x12e4ec=_0x25b08a(),_0x444e49=_0x529b91['id'];if(_0x1cb0be)return this[_0x3024('0x75')](_0x1cb0be,this['_model'][_0x3024('0x12d')](_0x5b00ca,_0x4cc693)),_0x1cb0be;{const _0x1574f5=this['_setSuggestionData']({'id':_0x12e4ec,'type':'formatBlock:'+_0x4f9ccf,'data':_0x4a93b9,'createdAt':new Date(),'authorId':_0x444e49,'attributes':_0x75d0e1});return this[_0x3024('0xe6')](_0x3024('0x12b')+_0x4f9ccf,_0x12e4ec,_0x444e49,this[_0x3024('0x6f')]['createRange'](_0x5b00ca,_0x4cc693)),_0x1574f5;}}[_0x3024('0xa8')](_0x479a47,_0x338d31,_0x4eafda=[],_0x420224=null,_0x5ddff3={}){_0x338d31[_0x3024('0x112')]||(_0x338d31[_0x3024('0x112')]=_0x338d31['commandName']);const _0x4af162=_0x479a47[0x0];_0x338d31[_0x3024('0x15')]=_0x4af162['is'](_0x3024('0x10c')),_0x420224=_0x420224||Et(_0x338d31);const _0x4032cd=_0x4eafda[_0x3024('0x53')](_0x462fa1=>Ot(_0x462fa1,this[_0x3024('0x6f')])),_0x4840e3=_0x4af162['is']('range')?_0x479a47:_0x479a47[_0x3024('0x53')](_0x26e655=>Ot(_0x26e655,this[_0x3024('0x6f')]));if(_0x3024('0x56')===this[_0x3024('0x5a')]){const _0x5b5217=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x5b5217(_0x4840e3,_0x338d31,_0x5ddff3)),null;}_0x4032cd[_0x3024('0xdc')](..._0x4840e3);let _0x38cefc=!0x0;for(const _0x595161 of _0x4032cd)if(!this[_0x3024('0xf0')](_0x595161)){_0x38cefc=!0x1;break;}if(_0x38cefc&&_0x3024('0x8c')!==this[_0x3024('0x5a')]){const _0x599486=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x599486(_0x4840e3,_0x338d31,_0x5ddff3)),null;}const _0x424fa0=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')]('Users')['me'];for(const _0x412e1a of this[_0x3024('0x44')]()){if(_0x412e1a[_0x3024('0x1d')]['id']!=_0x424fa0['id'])continue;if(_0x3024('0x85')!=_0x412e1a[_0x3024('0x132')]||_0x412e1a[_0x3024('0x49')][_0x3024('0x112')]!=_0x338d31[_0x3024('0x112')])continue;if(!Pt(_0x412e1a,_0x5ddff3))continue;const _0x51e10a=_0x412e1a[_0x3024('0x7c')]==_0x420224;for(let _0x5778e9=0x0;_0x5778e9<_0x4840e3[_0x3024('0x2')];_0x5778e9++){const _0x52b640=_0x4840e3[_0x5778e9];for(const _0x4787af of _0x412e1a[_0x3024('0xae')]()){const _0x4201d0=_0x4787af[_0x3024('0x3')]();if(_0x52b640[_0x3024('0xc9')](_0x4201d0)){_0x51e10a?(_0x4840e3['splice'](_0x5778e9,0x1),_0x5778e9--):_0x412e1a['removeMarker'](_0x4787af[_0x3024('0x17d')]);break;}}}}if(0x0==_0x4840e3['length'])return null;const _0x3d24b6=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x175'));for(const _0x27d382 of this[_0x3024('0x44')]())if(_0x27d382['author']['id']==_0x424fa0['id']&&_0x3024('0x85')==_0x27d382['type']&&_0x27d382[_0x3024('0x49')][_0x3024('0x112')]==_0x338d31[_0x3024('0x112')]&&_0x27d382[_0x3024('0x7c')]==_0x420224&&Pt(_0x27d382,_0x5ddff3)&&(_0x3d24b6(_0x27d382['getRanges'](),_0x4840e3)||_0x3d24b6(_0x4840e3,_0x27d382[_0x3024('0x84')]()))){for(const _0x12808c of _0x4840e3)_0x27d382[_0x3024('0x13c')](_0x12808c);return _0x27d382;}const _0x46c71e=_0x25b08a(),_0x295fb8=_0x424fa0['id'],_0x6ae9e7=_0x3024('0x12b')+_0x420224,_0x5c08d0=this[_0x3024('0x8')]({'id':_0x46c71e,'type':_0x6ae9e7,'data':_0x338d31,'createdAt':new Date(),'authorId':_0x295fb8,'attributes':_0x5ddff3});for(const _0x58c7b0 of _0x4840e3)this[_0x3024('0xe6')](_0x6ae9e7,_0x46c71e,_0x295fb8,_0x58c7b0,_0x1f2ce3['getMultiRangeId']());return _0x5c08d0;}[_0x3024('0x161')](_0x40c864,_0x1f3ab2=null,_0x5a6147={}){if(_0x40c864['isCollapsed'])return null;const _0x29af35=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'],_0x15cafd=new _0x205e8b(_0x40c864[_0x3024('0x163')],_0x40c864[_0x3024('0x51')]);for(const {suggestion:_0xa4608d,meta:_0x2b913f}of this[_0x3024('0x148')](_0x15cafd,_0x3024('0xac')))if(_0x2b913f[_0x3024('0xf8')]&&!_0x2b913f[_0x3024('0x23')]){if(_0xa4608d[_0x3024('0x8a')]){const _0x5665a1=_0xa4608d['getRanges']()[_0x3024('0x17a')](_0x2fd3b1=>_0x3024('0xb5')!=_0x2fd3b1[_0x3024('0xd0')][_0x3024('0x6e')]);_0x5665a1[_0x3024('0x9b')](_0x3913fb=>_0x15cafd['containsRange'](_0x3913fb,!0x0))&&_0xa4608d['discard']();if(_0x5665a1[_0x3024('0x30')](_0x27c499=>_0x27c499[_0x3024('0xb6')](_0x15cafd,!0x0))){const _0x478747=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x16'),_0x1f3ab2,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x478747([_0x15cafd],null,_0x5a6147)),null;}}else{const _0x1094e8=_0x15cafd[_0x3024('0xfd')](_0xa4608d[_0x3024('0x137')]());null!==_0x1094e8&&_0xa4608d[_0x3024('0x45')]([_0x1094e8],null,_0x5a6147);}}if(_0x15cafd[_0x3024('0xa2')](),_0x15cafd[_0x3024('0x3c')]||_0x3024('0xb5')==_0x15cafd[_0x3024('0xd0')]['rootName'])return null;let _0xd3fcf8=null,_0x47bdd7=_0x15cafd['start'],_0x238608=_0x15cafd[_0x3024('0x51')];const _0x3658c7=this[_0x3024('0x148')](_0x15cafd,'deletion');for(const {suggestion:_0x18dc85,meta:_0x1bc42a}of _0x3658c7){const _0x29d969=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x47bdd7,_0x238608);if(_0x1bc42a[_0x3024('0xf8')]&&(this[_0x3024('0x139')]||!_0x1bc42a['containsRangeInObject']&&!_0x1bc42a[_0x3024('0x29')])){if(_0x18dc85['isMultiRange']){if(!Pt(_0x18dc85,_0x5a6147))continue;let _0x529096=!0x0;for(const _0x2fb155 of _0x18dc85[_0x3024('0x84')]()){if(_0x2fb155[_0x3024('0xb6')](_0x29d969,!0x0))return _0x18dc85;_0x29d969[_0x3024('0xb6')](_0x2fb155)||(_0x529096=!0x1);}_0x529096&&_0x18dc85[_0x3024('0x40')]();}else{const _0x5b8a65=_0x18dc85['getFirstRange']();if(_0x5b8a65[_0x3024('0xb6')](_0x29d969,!0x0))return _0x18dc85;if(!Pt(_0x18dc85,_0x5a6147)){_0x29d969[_0x3024('0xb6')](_0x5b8a65)?_0x18dc85[_0x3024('0xa4')]():_0x5b8a65[_0x3024('0x105')](_0x47bdd7)?_0x47bdd7=_0x5b8a65[_0x3024('0x51')]:_0x5b8a65[_0x3024('0x105')](_0x238608)&&(_0x238608=_0x5b8a65['start']);continue;}_0x47bdd7=_0x47bdd7[_0x3024('0x79')](_0x5b8a65[_0x3024('0x163')])?_0x47bdd7:_0x5b8a65[_0x3024('0x163')],_0x238608=_0x238608[_0x3024('0xa6')](_0x5b8a65[_0x3024('0x51')])?_0x238608:_0x5b8a65[_0x3024('0x51')],_0x5a6147=Object['assign']({},_0x18dc85['attributes']),_0xd3fcf8?_0x5b8a65[_0x3024('0x163')]['isBefore'](_0xd3fcf8[_0x3024('0x137')]()['start'])?(_0xd3fcf8[_0x3024('0xa4')](),_0xd3fcf8=_0x18dc85):_0x18dc85[_0x3024('0xa4')]():_0xd3fcf8=_0x18dc85;}}}if(_0xd3fcf8)return this[_0x3024('0x75')](_0xd3fcf8,this['_model'][_0x3024('0x12d')](_0x47bdd7,_0x238608)),_0xd3fcf8;{const _0x5e4e32=_0x25b08a(),_0x5c6d91=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x47bdd7,_0x238608),_0x441b48=_0x29af35['id'],_0x3a1cc4=_0x1f3ab2?_0x3024('0x119')+_0x1f3ab2:'deletion',_0x35ee1d=this['_setSuggestionData']({'id':_0x5e4e32,'type':_0x3a1cc4,'createdAt':new Date(),'authorId':_0x441b48,'attributes':_0x5a6147});return this['_addSuggestionMarker'](_0x3a1cc4,_0x5e4e32,_0x441b48,_0x5c6d91),_0x35ee1d;}}[_0x3024('0x2f')](_0x2b916d,_0x2753ba='multi',_0x5bd077={}){const _0x39e2d2=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x12dd5c=_0x2b916d[_0x3024('0x53')](_0x1ada4a=>new _0x205e8b(_0x1ada4a[_0x3024('0x163')],_0x1ada4a[_0x3024('0x51')])),_0x43852e=new Set();for(const {suggestion:_0x5986f8,meta:_0x52b6a4}of this[_0x3024('0x148')](_0x12dd5c,'insertion'))_0x52b6a4[_0x3024('0xf8')]&&!_0x52b6a4['isNextTo']&&_0x43852e['add'](_0x5986f8);for(const _0x274bf3 of _0x43852e)if(_0x274bf3[_0x3024('0x8a')]){const _0x1797bb=_0x274bf3[_0x3024('0x84')]();(!_0x274bf3['attributes']||!_0x274bf3[_0x3024('0x3e')]['skipNestingCheck'])&&(_0x1797bb[_0x3024('0x9b')](_0x1cac32=>_0x12dd5c[_0x3024('0x30')](_0x198858=>_0x198858['containsRange'](_0x1cac32,!0x0)))&&_0x274bf3[_0x3024('0x40')]());if(_0x12dd5c[_0x3024('0x9b')](_0x4a27c7=>_0x1797bb[_0x3024('0x30')](_0x4c775d=>_0x4c775d[_0x3024('0xb6')](_0x4a27c7,!0x0)))){const _0x4056d4=this[_0x3024('0x71')][_0x3024('0x11a')]('deletion',_0x2753ba,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x4056d4(_0x2b916d,null,_0x5bd077)),null;}}else{const _0x3a736b=_0x274bf3[_0x3024('0x137')]();_0x12dd5c['some'](_0x2127f0=>_0x2127f0[_0x3024('0xb6')](_0x3a736b,!0x0))&&_0x274bf3['discard']();if(_0x12dd5c[_0x3024('0x9b')](_0x102528=>_0x3a736b[_0x3024('0xb6')](_0x102528,!0x0))){const _0x41a6f7=this['_suggestionFactory'][_0x3024('0x11a')](_0x3024('0x16'),_0x2753ba,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x41a6f7(_0x12dd5c,null,_0x5bd077)),null;}}const _0x3960af=this['_suggestionFactory'][_0x3024('0x11a')](_0x3024('0x16'),_0x2753ba,'join');let _0x523174=null;for(const _0x1651ce of this[_0x3024('0x44')]())if(_0x1651ce['author']['id']==_0x39e2d2['id']&&_0x1651ce[_0x3024('0x144')]&&_0x3024('0x16')==_0x1651ce['type']&&_0x1651ce[_0x3024('0x7c')]==_0x2753ba&&Pt(_0x1651ce,_0x5bd077)&&(_0x3960af(_0x1651ce[_0x3024('0x84')](),_0x12dd5c)||_0x3960af(_0x12dd5c,_0x1651ce['getRanges']()))){if(_0x523174){if(_0x1651ce[_0x3024('0x37')]&&_0x1651ce[_0x3024('0x37')][_0x3024('0x2')])continue;for(const _0x468fe1 of _0x1651ce[_0x3024('0x84')]())_0x523174['isIntersectingWithRange'](_0x468fe1)||_0x523174['addRange'](_0x468fe1);_0x1651ce[_0x3024('0xa4')]();}else{_0x523174=_0x1651ce;for(const _0x52182f of _0x12dd5c)_0x1651ce['isIntersectingWithRange'](_0x52182f)||_0x1651ce['addRange'](_0x52182f);}}if(_0x523174)return _0x523174;_0x43852e[_0x3024('0x101')]();for(const {suggestion:_0x45bc73,meta:_0x287b4b}of this[_0x3024('0x148')](_0x12dd5c,_0x3024('0x16')))_0x287b4b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x287b4b[_0x3024('0xda')]&&!_0x287b4b['isInsideObject'])&&Pt(_0x45bc73,_0x5bd077)&&_0x43852e[_0x3024('0x54')](_0x45bc73);for(const _0x4bddc of _0x43852e){const _0x4aab0c=_0x4bddc['getRanges']();if(!_0x5bd077||!_0x5bd077['skipNestingCheck']){if(_0x12dd5c['every'](_0x573cc8=>_0x4aab0c[_0x3024('0x30')](_0x475ed9=>_0x475ed9[_0x3024('0xb6')](_0x573cc8,!0x0))))return _0x4bddc;}(!_0x4bddc['attributes']||!_0x4bddc[_0x3024('0x3e')][_0x3024('0xd1')])&&(_0x4aab0c[_0x3024('0x9b')](_0x119593=>_0x12dd5c[_0x3024('0x30')](_0x6729d3=>_0x6729d3[_0x3024('0xb6')](_0x119593,!0x0)))&&_0x4bddc['discard']());}const _0x1264c8=_0x25b08a(),_0x38c844=_0x39e2d2['id'],_0xd33703=_0x3024('0x119')+_0x2753ba,_0x2083c0=this[_0x3024('0x8')]({'id':_0x1264c8,'type':_0xd33703,'createdAt':new Date(),'authorId':_0x38c844,'attributes':_0x5bd077});for(const _0x1df1a5 of _0x12dd5c)_0x1df1a5[_0x3024('0xa2')](),_0x1df1a5[_0x3024('0x3c')]||_0x3024('0xb5')==_0x1df1a5[_0x3024('0xd0')][_0x3024('0x6e')]||this[_0x3024('0xe6')](_0xd33703,_0x1264c8,_0x38c844,_0x1df1a5,_0x1f2ce3[_0x3024('0x117')]());return _0x2083c0;}[_0x3024('0x16f')](_0x40fe36,_0xe294c8,_0x27e892,_0x1de251,_0x13a079){if(_0x40fe36[_0x3024('0x3c')])return[];if(_0x3024('0x56')===this[_0x3024('0x5a')])return[];const _0x1facc7=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me']['id'],_0x25a1fb=Array['from'](this[_0x3024('0xe1')][_0x3024('0x178')]())['filter'](_0x1736dc=>_0x3024('0x13f')==_0x1736dc['type']&&_0x1736dc[_0x3024('0x49')][_0x3024('0xb8')]==_0xe294c8&&_0x1736dc[_0x3024('0xfc')](_0x40fe36));if(_0x3024('0x93')===this['_trackFormatChanges']){const _0x260eb4=this[_0x3024('0x148')](_0x40fe36,_0x3024('0xac'))['filter'](({meta:_0xfac6a9})=>_0xfac6a9[_0x3024('0xf8')]&&!_0xfac6a9[_0x3024('0x29')]&&!_0xfac6a9['isNextTo'])[_0x3024('0x53')](({suggestion:_0x432012})=>_0x432012);_0x25a1fb['unshift'](..._0x260eb4);}const _0x3f491a=new Map([[_0x40fe36,_0x27e892]]);for(const _0x1c4425 of _0x25a1fb){const _0x134cb1='attribute'==_0x1c4425['type']?_0x1c4425[_0x3024('0x49')][_0x3024('0xf5')]:void 0x0,_0x5697a8=_0x1c4425['getFirstRange'](),_0x4b3cd4=Array['from'](_0x3f491a[_0x3024('0x19')]())[_0x3024('0x33')](_0x14a73d=>_0x14a73d[_0x3024('0x134')](_0x5697a8));if(!_0x4b3cd4)continue;const _0x2cc487=_0x4b3cd4[_0x3024('0x13e')](_0x5697a8);this[_0x3024('0x7e')](_0xe294c8)&&'insertion'==_0x1c4425['type']&&0x0!=_0x2cc487['length']||(_0x3f491a[_0x3024('0x108')](_0x4b3cd4),_0x2cc487['forEach'](_0x18fcd9=>{_0x3f491a[_0x3024('0x17c')](_0x18fcd9,_0x27e892);}),_0x3024('0xac')!=_0x1c4425[_0x3024('0x132')]&&_0x134cb1!=_0x1de251&&_0x3f491a[_0x3024('0x17c')](_0x4b3cd4[_0x3024('0xfd')](_0x5697a8),_0x134cb1));}const _0x229d91=[];for(const [_0x493653,_0x4bcedd]of _0x3f491a){const _0x225398=_0x25b08a(),_0xe10387={'key':_0xe294c8,'oldValue':_0x4bcedd,'newValue':_0x1de251};_0xe294c8['length']>0x25&&console[_0x3024('0x4e')](_0x3024('0xb0'),{'key':_0xe294c8});const _0x4c9dec=('attribute:'+(_0xe294c8+'|'+Et({'newValue':_0x1de251})))[_0x3024('0x11d')](0x0,0x3c),_0x21cafc=this[_0x3024('0x8')]({'id':_0x225398,'type':_0x4c9dec,'data':_0xe10387,'createdAt':new Date(),'authorId':_0x1facc7,'attributes':_0x13a079});_0x229d91[_0x3024('0xdc')](_0x21cafc),this['_addSuggestionMarker'](_0x4c9dec,_0x225398,_0x1facc7,_0x493653);}return _0x229d91;}[_0x3024('0x59')](_0x2db657){this[_0x3024('0x90')][_0x3024('0x54')](_0x2db657);}[_0x3024('0x38')](_0x2d47b8){this['_inlineAttributeKeys'][_0x3024('0x54')](_0x2d47b8);}[_0x3024('0xe9')](_0x5dd4d5,_0x3cd8a1=[],_0x48cf9e=[]){this[_0x3024('0xde')](_0x5dd4d5,(_0x5c48c6,..._0x1404e4)=>{this[_0x3024('0x12e')](()=>{_0x5c48c6(..._0x1404e4);});});for(const _0x45df8c of _0x3cd8a1)this[_0x3024('0x38')](_0x45df8c);for(const _0x4b5c79 of _0x48cf9e)this[_0x3024('0x59')](_0x4b5c79);}[_0x3024('0x72')](_0x4bb513){return _0x3024('0x13f')==_0x4bb513[_0x3024('0x132')]?_0x4bb513[_0x3024('0x7c')][_0x3024('0x28')]('|')[0x0]:null;}[_0x3024('0x75')](_0x1028d8,_0x640f35){const _0x3572d4=_0x1028d8['getFirstMarker']();this[_0x3024('0x6f')][_0x3024('0x11f')](_0x5bf5c7=>{_0x5bf5c7[_0x3024('0x11')](_0x3572d4,{'range':_0x640f35});});}[_0x3024('0x150')](_0x5a3497){const _0x223808=_0x5a3497['id'],_0x2a47c5=this[_0x3024('0x154')][_0x3024('0xb9')]['get'](_0x3024('0x123'));this[_0x3024('0xa')][_0x3024('0xbc')](_0x223808)||this[_0x3024('0xa')][_0x3024('0x6a')]({'channelId':_0x2a47c5,'threadId':_0x223808,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5087e4=this[_0x3024('0xa')][_0x3024('0xc4')](_0x223808);_0x5087e4['unbind']('isRemovable'),_0x5087e4['isRemovable']=!0x1,_0x5a3497['commentThread']=_0x5087e4;}[_0x3024('0xc6')](_0x4f2e07,_0x4ec40f,_0x1ad4c8,_0xb18d5d){if(_0x4f2e07['type']!=_0x4ec40f||_0x4f2e07[_0x3024('0x7c')]!=_0x1ad4c8||_0x4f2e07[_0x3024('0x10b')]['id']!=_0xb18d5d)throw this[_0x3024('0x154')][_0x3024('0x4')]('track-changes-suggestion-data-mismatch'),new _0x255fda(_0x3024('0x1a'),this);}[_0x3024('0xdf')](_0x5529e4,_0x144ad6){const _0xb4225f=_0x5529e4[_0x3024('0x137')]();if(_0x144ad6[_0x3024('0xc9')](_0xb4225f))_0x5529e4[_0x3024('0xa4')]();else{if(_0xb4225f['containsRange'](_0x144ad6)){const _0x5ea3c0=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x163')]['nodeBefore'],_0x3024('0x51'));this['_setSuggestionRange'](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0xb4225f[_0x3024('0x163')],_0x5ea3c0));const _0x225724=_0x25b08a(),_0x26b772=_0x5529e4['creator']['id'],_0xcd470b=_0x5529e4[_0x3024('0x132')]+':'+_0x5529e4[_0x3024('0x7c')];this[_0x3024('0x8')]({'id':_0x225724,'type':_0xcd470b,'createdAt':new Date(),'authorId':_0x26b772,'data':_0x5529e4[_0x3024('0x49')],'attributes':_0x5529e4[_0x3024('0x3e')]});const _0x168d8d=this['_model']['createPositionAt'](_0x144ad6['end']['parent'],_0x3024('0x24')),_0x2d6cbb=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x168d8d,_0xb4225f['end']);this[_0x3024('0xe6')](_0xcd470b,_0x225724,_0x26b772,_0x2d6cbb);}else{if(_0xb4225f[_0x3024('0x105')](_0x144ad6[_0x3024('0x163')])){const _0x46ad52=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x163')][_0x3024('0x4c')],_0x3024('0x51'));this[_0x3024('0x75')](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0xb4225f[_0x3024('0x163')],_0x46ad52));}else{const _0x9c5590=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x51')][_0x3024('0x7f')],_0x3024('0x24'));this[_0x3024('0x75')](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x9c5590,_0xb4225f['end']));}}}}[_0x3024('0xf0')](_0x15c421){for(const {suggestion:_0x13c762,meta:_0x735e3a}of this[_0x3024('0x148')](_0x15c421,_0x3024('0xac'))){if(!_0x735e3a[_0x3024('0xf8')])continue;const _0xbc7b18=_0x13c762[_0x3024('0x84')]();for(const _0x5e9362 of _0xbc7b18)if(!_0x15c421[_0x3024('0x13e')](_0x5e9362)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1d05e6){const _0x3c350c=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['getUser'](_0x1d05e6);if(!_0x3c350c)throw new _0x255fda(_0x3024('0xd3'),this);return _0x3c350c;}[_0x3024('0xaa')](_0x1221ff){const _0x15fff5=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8')),_0x463567=_0x4a1e6a(_0x3024('0x11b')+_0x1221ff),_0x4ac671=_0x15fff5[_0x3024('0x10a')](_0x463567);return _0x4ac671||_0x15fff5[_0x3024('0x16e')]({'id':_0x463567,'name':_0x1221ff});}['_createSuggestion'](_0x6f507c,_0x386fad,_0x4fa913,_0x43e1cd,_0x2f17e3){const _0x4e7ec8=this[_0x3024('0x126')](_0x43e1cd),_0x35eed7=this[_0x3024('0x71')][_0x3024('0xc')](_0x6f507c,_0x386fad,_0x4fa913,_0x4e7ec8,_0x2f17e3,_0x2aec11=>{this[_0x3024('0x14a')](_0x4fa913,{'attributes':_0x2aec11});const _0x156a89=this[_0x3024('0x179')](_0x4fa913);this[_0x3024('0x68')](new Set([_0x156a89])),this['_refreshSuggestionsChain'](new Set([_0x156a89]));});return this[_0x3024('0x128')](_0x35eed7,_0x3024('0x14c'),()=>{this['_updateSuggestionData'](_0x4fa913,{'state':_0x3024('0x14e')});},{'priority':_0x3024('0x41')}),this[_0x3024('0x128')](_0x35eed7,_0x3024('0x40'),()=>{this['_updateSuggestionData'](_0x4fa913,{'state':_0x3024('0x177')});},{'priority':_0x3024('0x41')}),this['_suggestions'][_0x3024('0x17c')](_0x4fa913,_0x35eed7),this[_0x3024('0x16b')][_0x3024('0x17c')](_0x35eed7,_0x3024('0xb')),_0x35eed7;}[_0x3024('0xdd')](_0x3a144e){const _0x2ba0fb=_0x3a144e[_0x3024('0x28')](':');return{'group':_0x2ba0fb[0x0],'type':_0x2ba0fb[0x1],'subType':_0x2ba0fb[_0x3024('0x2')]>=0x5?_0x2ba0fb[0x2]:null,'id':_0x2ba0fb[_0x3024('0x2')]<0x5?_0x2ba0fb[0x2]:_0x2ba0fb[0x3],'authorId':_0x2ba0fb[_0x3024('0x2')]<0x5?_0x2ba0fb[0x3]:_0x2ba0fb[0x4],'markerCount':0x6==_0x2ba0fb[_0x3024('0x2')]?_0x2ba0fb[0x5]:null};}[_0x3024('0x162')](_0x499e7b,_0x7d11c5,_0x3ddf6d){const _0x39b4c7=_0x499e7b['getFirstRange'](),_0x35506e=_0x39b4c7[_0x3024('0x163')],_0x2ad953=_0x39b4c7[_0x3024('0x51')];this[_0x3024('0x75')](_0x499e7b,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x35506e,_0x7d11c5));const _0x493ea4=_0x25b08a(),_0x3c4be1=_0x499e7b['creator']['id'],_0xd16c89=_0x499e7b[_0x3024('0x132')]+(_0x499e7b[_0x3024('0x7c')]?':'+_0x499e7b[_0x3024('0x7c')]:'');this[_0x3024('0x8')]({'id':_0x493ea4,'type':_0xd16c89,'createdAt':new Date(),'authorId':_0x3c4be1,'originalSuggestionId':_0x499e7b['id'],'attributes':_0x499e7b[_0x3024('0x3e')],'data':_0x499e7b['data']});const _0x1e646d=this[_0x3024('0x72')](_0x499e7b);(_0x3024('0x85')==_0x499e7b[_0x3024('0x132')]||_0x1e646d&&this[_0x3024('0x7e')](_0x1e646d))&&(_0x3ddf6d=this[_0x3024('0x6f')][_0x3024('0x145')](_0x3ddf6d[_0x3024('0x7f')])),this['_addSuggestionMarker'](_0xd16c89,_0x493ea4,_0x3c4be1,this[_0x3024('0x6f')]['createRange'](_0x3ddf6d,_0x2ad953));}[_0x3024('0x148')](_0x4a2b75,_0x28988b=null){const _0x82472e=[],_0x418ec2=this['editor'][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'];Array[_0x3024('0x151')](_0x4a2b75)||(_0x4a2b75=[_0x4a2b75]);for(const _0x28946a of this['getSuggestions']()){if(!_0x28946a[_0x3024('0x144')])continue;if(_0x28988b&&_0x28946a[_0x3024('0x132')]!=_0x28988b)continue;let _0x4785e4=!0x1;for(const _0x134aa7 of _0x28946a[_0x3024('0x84')]()){for(const _0x7bb8ad of _0x4a2b75){const _0x4f61d1=_0x7bb8ad['start'][_0x3024('0xc9')](_0x134aa7[_0x3024('0x51')])||_0x7bb8ad['end'][_0x3024('0xc9')](_0x134aa7['start']);if(_0x4f61d1||_0x7bb8ad[_0x3024('0xfd')](_0x134aa7)){const _0x127f84=_0x7bb8ad[_0x3024('0xb6')](_0x134aa7)&&xt(this[_0x3024('0x6f')][_0x3024('0x104')],_0x134aa7['start'],_0x7bb8ad),_0x4dbe35=_0x134aa7[_0x3024('0xb6')](_0x7bb8ad)&&xt(this['_model'][_0x3024('0x104')],_0x7bb8ad['start'],_0x134aa7);_0x82472e[_0x3024('0xdc')]({'suggestion':_0x28946a,'meta':{'isOwn':_0x418ec2==_0x28946a['author'],'isNextTo':_0x4f61d1,'isInsideObject':_0x127f84,'containsRangeInObject':_0x4dbe35}}),_0x4785e4=!0x0;break;}}if(_0x4785e4)break;}}return _0x82472e;}['_addSuggestionMarker'](_0x16657b,_0x291a35,_0x6383de,_0x5c4e60,_0x13ce1a){this[_0x3024('0x6f')][_0x3024('0x11f')](_0x4b5ccc=>{let _0x2fac6e=_0x3024('0x9')+_0x16657b+':'+_0x291a35+':'+_0x6383de;_0x13ce1a&&(_0x2fac6e=_0x2fac6e+':'+_0x13ce1a),_0x4b5ccc[_0x3024('0x127')](_0x2fac6e,{'range':_0x5c4e60,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3024('0x43')](_0x19e4c5){const _0x1027b3=_0x19e4c5['previous'],_0x45e3e5=_0x19e4c5[_0x3024('0x130')];_0x19e4c5['previous']=null,_0x19e4c5[_0x3024('0x130')]=null,null!=_0x1027b3&&_0x1027b3[_0x3024('0x130')]==_0x19e4c5&&(_0x1027b3[_0x3024('0x130')]=_0x45e3e5),null!=_0x45e3e5&&_0x45e3e5['previous']==_0x19e4c5&&(_0x45e3e5[_0x3024('0x16a')]=_0x1027b3),'ready'==this[_0x3024('0x16b')][_0x3024('0xa0')](_0x19e4c5)&&(this[_0x3024('0x16b')]['set'](_0x19e4c5,_0x3024('0x3f')),this[_0x3024('0xa3')](_0x3024('0xaf'),_0x19e4c5,_0x1027b3,_0x45e3e5));}['_setSuggestionData'](_0x5dc8ca){const _0x4c7e76=_0x5dc8ca['id'],_0x44c105=this[_0x3024('0x25')](_0x5dc8ca);if(this['_adapter']&&this['_adapter'][_0x3024('0xbf')]){const _0x53560f=this['editor']['plugins'][_0x3024('0xa0')](_0x3024('0xa9')),_0x91df99=_0x44c105[_0x3024('0x8f')],_0xd63110=_0x44c105[_0x3024('0x7c')]?_0x44c105[_0x3024('0x132')]+':'+_0x44c105['subType']:_0x44c105[_0x3024('0x132')],_0x63d1fb=this[_0x3024('0x154')]['locale'],_0x577a98=_0x53560f[_0x3024('0x54')](_0x44f115(_0x63d1fb,_0x3024('0xea'))),_0x56959e={'id':_0x4c7e76,'type':_0xd63110,'hasComments':_0x91df99,'data':_0x5dc8ca[_0x3024('0x49')]||null,'originalSuggestionId':_0x5dc8ca[_0x3024('0x1f')]||null,'attributes':_0x44c105['attributes']};this[_0x3024('0x60')][_0x3024('0xbf')](_0x56959e)[_0x3024('0x31')](_0x19eb95=>{_0x44c105[_0x3024('0x113')]=!0x0,_0x53560f[_0x3024('0x1e')](_0x577a98),_0x19eb95&&_0x19eb95[_0x3024('0x166')]&&(this[_0x3024('0xe1')][_0x3024('0xa0')](_0x4c7e76)[_0x3024('0x166')]=_0x19eb95[_0x3024('0x166')]);})[_0x3024('0x14b')](_0x4e9110=>{throw _0x59dd10(_0x3024('0x110')),this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0x176')]({'isUndoable':!0x1},()=>{_0x44c105['discard']();}),_0x44c105[_0x3024('0x9f')](),this[_0x3024('0xe1')]['delete'](_0x44c105['id']),this[_0x3024('0x16b')][_0x3024('0x108')](_0x44c105),_0x4e9110;});}return _0x44c105;}[_0x3024('0x7e')](_0x71710b){return this['_blockAttributeKeys']['has'](_0x71710b);}['_updateSuggestionData'](_0x128fe8,_0x424b25){const _0x3fb59a=this[_0x3024('0x154')]['plugins'][_0x3024('0xa0')](_0x3024('0xa9')),_0x6e8d0a=this['getSuggestion'](_0x128fe8);if(this[_0x3024('0x60')]&&this[_0x3024('0x60')][_0x3024('0xe3')]){if(_0x6e8d0a[_0x3024('0x113')]){const _0x941a16=_0x3fb59a[_0x3024('0x54')](_0x44f115(this[_0x3024('0x154')][_0x3024('0xb2')],_0x3024('0xea')));this[_0x3024('0x60')]['updateSuggestion'](_0x128fe8,_0x424b25)[_0x3024('0x31')](()=>{_0x3fb59a[_0x3024('0x1e')](_0x941a16);});}else _0x6e8d0a['on'](_0x3024('0x26'),()=>{this['_updateSuggestionData'](_0x128fe8,_0x424b25);});}}[_0x3024('0xe7')](_0x1e1584){if(!this['_adapter']||!this[_0x3024('0x60')][_0x3024('0x179')])throw new _0x255fda(_0x3024('0xd9'),this);return this[_0x3024('0x60')][_0x3024('0x179')](_0x1e1584);}[_0x3024('0x155')](_0x547eeb){const {id:_0x691f76,type:_0x545b63,subType:_0x23fdfc,authorId:_0x19e3c5}=this[_0x3024('0xdd')](_0x547eeb),_0x585b54=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x691f76)||this[_0x3024('0x156')](_0x545b63,_0x23fdfc,_0x691f76,_0x19e3c5,{});switch(this[_0x3024('0xc6')](_0x585b54,_0x545b63,_0x23fdfc,_0x19e3c5),this[_0x3024('0x16b')]['get'](_0x585b54)){case _0x3024('0xb'):this['_getSuggestionData'](_0x691f76)[_0x3024('0x31')](_0x598523=>{let _0x8a951f=Promise[_0x3024('0x107')]();_0x598523[_0x3024('0x8f')]&&(_0x8a951f=this[_0x3024('0xa')][_0x3024('0x159')]({'channelId':this['editor'][_0x3024('0xb9')]['get'](_0x3024('0x123')),'threadId':_0x691f76})),_0x8a951f['then'](()=>{this[_0x3024('0x25')](_0x598523)['_saved']=!0x0;});}),this[_0x3024('0x16b')][_0x3024('0x17c')](_0x585b54,_0x3024('0x5e'));break;case _0x3024('0x3f'):this[_0x3024('0x14a')](_0x691f76,{'state':_0x3024('0x50')});case _0x3024('0xe'):this['_suggestionState'][_0x3024('0x17c')](_0x585b54,_0x3024('0x81')),this['fire'](_0x3024('0x39'),_0x585b54);break;case _0x3024('0x81'):this['fire'](_0x3024('0x138'),_0x585b54);}return _0x585b54[_0x3024('0x141')](_0x547eeb),_0x585b54;}[_0x3024('0x96')](_0x232c92){const _0x42f068=Array['from'](_0x232c92),_0x4c0801=_0x42f068['filter'](_0x4f3aad=>_0x3024('0x13f')==_0x4f3aad[_0x3024('0x132')]);this[_0x3024('0x167')](_0x4c0801);const _0x118566=_0x42f068['filter'](_0x427fb5=>!_0x427fb5[_0x3024('0x8a')]&&_0x3024('0x13f')!=_0x427fb5['type']),_0x12fad3=this[_0x3024('0x44')]({'skipNotAttached':!0x0})[_0x3024('0x17a')](_0x28caf8=>!_0x28caf8['isMultiRange']&&_0x3024('0x13f')!=_0x28caf8[_0x3024('0x132')]),_0x5111b1=_0x12fad3[_0x3024('0x17a')](_0xbccd5e=>!_0x232c92[_0x3024('0x14f')](_0xbccd5e)),_0x40661f=new Map(_0x12fad3[_0x3024('0x53')](_0x31403f=>[_0x31403f,this[_0x3024('0x71')][_0x3024('0x11a')](_0x31403f[_0x3024('0x132')],_0x31403f[_0x3024('0x7c')],_0x3024('0x164'))])),_0x510c3f=new Map(_0x12fad3['map'](_0x1c8813=>[_0x1c8813,_0x1c8813[_0x3024('0x137')]()])),_0x238bc5=new Set(),_0x4bdcd4=new Set();for(let _0x1a459c=0x0;_0x1a459c<_0x118566[_0x3024('0x2')];_0x1a459c++)_0x5998d4(_0x118566[_0x1a459c],_0x118566,_0x1a459c+0x1);for(let _0x487b94=0x0;_0x487b94<_0x118566['length'];_0x487b94++)_0x5998d4(_0x118566[_0x487b94],_0x5111b1,0x0);const _0x14241f=new Set();for(let _0x4f34f5=0x0;_0x4f34f5<_0x118566[_0x3024('0x2')];_0x4f34f5++){const _0x5b0748=_0x118566[_0x4f34f5];!_0x4bdcd4[_0x3024('0x14f')](_0x5b0748)&&_0x5b0748[_0x3024('0x16a')]&&(_0x14241f[_0x3024('0x54')](_0x5b0748[_0x3024('0x16a')]),_0x5b0748['previous'][_0x3024('0x130')]===_0x5b0748&&(_0x5b0748['previous'][_0x3024('0x130')]=null),_0x5b0748[_0x3024('0x16a')]=null),!_0x238bc5[_0x3024('0x14f')](_0x5b0748)&&_0x5b0748['next']&&(_0x14241f[_0x3024('0x54')](_0x5b0748[_0x3024('0x130')]),_0x5b0748[_0x3024('0x130')]['previous']===_0x5b0748&&(_0x5b0748['next']['previous']=null),_0x5b0748[_0x3024('0x130')]=null);}function _0x5998d4(_0x35deae,_0x4b394b,_0x405b35){for(let _0x568d83=_0x405b35;_0x568d83<_0x4b394b['length'];_0x568d83++){const _0x2b430b=_0x435224(_0x35deae,_0x4b394b[_0x568d83]);_0x2b430b&&(_0x2b430b[0x0][_0x3024('0x130')]=_0x2b430b[0x1],_0x2b430b[0x1][_0x3024('0x16a')]=_0x2b430b[0x0],_0x238bc5[_0x3024('0x54')](_0x2b430b[0x0]),_0x4bdcd4['add'](_0x2b430b[0x1]));}}function _0x435224(_0x50c474,_0x40c063){if(_0x50c474['author']['id']!==_0x40c063[_0x3024('0x1d')]['id'])return null;const _0x3b5307=_0x40661f['get'](_0x50c474)(_0x50c474,_0x40c063,_0x510c3f[_0x3024('0xa0')](_0x50c474),_0x510c3f[_0x3024('0xa0')](_0x40c063));if(!_0x3b5307)return null;return _0x40661f[_0x3024('0xa0')](_0x40c063)(_0x50c474,_0x40c063,_0x510c3f[_0x3024('0xa0')](_0x50c474),_0x510c3f[_0x3024('0xa0')](_0x40c063))?_0x3b5307[0x1][_0x3024('0x37')]&&_0x3b5307[0x1][_0x3024('0x37')]['length']?null:_0x3b5307:null;}_0x14241f[_0x3024('0x6d')]&&this[_0x3024('0x96')](_0x14241f);}[_0x3024('0x167')](_0x2c3dc1){if(0x0==_0x2c3dc1[_0x3024('0x2')])return;const _0x259fd6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2abe87=>'attribute'==_0x2abe87[_0x3024('0x132')]&&_0x2abe87['_isDataLoaded']),_0xd29c86=[],_0x3034da=new Map();for(const _0x15d7cc of _0x259fd6){const _0x39e619=_0x4a1e6a(_0x15d7cc[_0x3024('0x3e')]);_0x3034da['has'](_0x39e619)||(_0x3034da[_0x3024('0x17c')](_0x39e619,_0xd29c86['length']),_0xd29c86[_0x3024('0xdc')]([]));const _0x4720d5=_0x3034da[_0x3024('0xa0')](_0x39e619);_0xd29c86[_0x4720d5][_0x3024('0xdc')](_0x15d7cc);}!function(){_0xd29c86['sort']((_0x446619,_0x714fc4)=>{const _0x4573fd=_0x446619[0x0]['createdAt'],_0x264eeb=_0x714fc4[0x0]['createdAt'];return _0x4573fd==_0x264eeb?_0x446619[0x0]['attributes'][_0x3024('0x1')]<_0x714fc4[0x0][_0x3024('0x3e')][_0x3024('0x1')]?-0x1:0x1:_0x4573fd<_0x264eeb?-0x1:0x1;});for(const _0xf3aa4 of _0xd29c86)_0xf3aa4[_0x3024('0x3b')]((_0x1b8104,_0x148c1a)=>_0x1b8104['id']<_0x148c1a['id']?-0x1:0x1);}();for(let _0x51884c=0x0;_0x51884c<_0xd29c86['length'];_0x51884c++){if(0x0==_0xd29c86[_0x51884c][_0x3024('0x2')])continue;const _0x147cd1=[];for(let _0x5499b6=_0x51884c+0x1;_0x5499b6<_0xd29c86[_0x3024('0x2')];_0x5499b6++)0x0!=_0xd29c86[_0x5499b6][_0x3024('0x2')]&&_0x3ef553(_0xd29c86[_0x51884c],_0xd29c86[_0x5499b6])&&_0x147cd1[_0x3024('0xdc')](_0x5499b6);for(const _0x43db33 of _0x147cd1)_0xd29c86[_0x51884c]=_0xd29c86[_0x51884c][_0x3024('0x115')](_0xd29c86[_0x43db33]),_0xd29c86[_0x43db33]=[];}for(const _0x124e69 of _0xd29c86)for(let _0x53604c=0x0;_0x53604c<_0x124e69[_0x3024('0x2')];_0x53604c++)_0x124e69[_0x53604c][_0x3024('0x130')]=_0x124e69[_0x53604c+0x1]||null;for(const _0x4ee21f of _0xd29c86)for(let _0x10c9dd=0x0;_0x10c9dd<_0x4ee21f[_0x3024('0x2')];_0x10c9dd++)_0x4ee21f[_0x10c9dd][_0x3024('0x16a')]=_0x4ee21f[_0x10c9dd-0x1]||null;function _0x3ef553(_0x4dcc31,_0x209d39){if(_0x4dcc31[0x0][_0x3024('0x3e')][_0x3024('0x1')]!==_0x209d39[0x0][_0x3024('0x3e')]['groupId']&&_0x4dcc31[0x0][_0x3024('0x1d')]!==_0x209d39[0x0]['author'])return!0x1;if(!function(_0x253df1,_0x176ca4){if(!_0x253df1[_0x3024('0x8f')]&&!_0x176ca4[_0x3024('0x8f')])return!0x0;if(_0x253df1[_0x3024('0x8f')]&&_0x176ca4[_0x3024('0x8f')])return!0x1;if(_0x253df1[_0x3024('0x8f')]&&_0x176ca4[_0x3024('0x166')]<_0x253df1[_0x3024('0x37')][_0x3024('0x5')]['get'](0x0)[_0x3024('0x166')])return!0x0;if(_0x176ca4['hasComments']&&_0x253df1[_0x3024('0x166')]<_0x176ca4[_0x3024('0x37')][_0x3024('0x5')][_0x3024('0xa0')](0x0)[_0x3024('0x166')])return!0x0;return!0x1;}(_0x4dcc31[0x0],_0x209d39[0x0]))return!0x1;const _0x253833=_0x5a017a(_0x4dcc31[0x0][_0x3024('0x3e')],'groupId'),_0x48df63=_0x5a017a(_0x209d39[0x0][_0x3024('0x3e')],_0x3024('0x1'));if(!_0x2963a5(_0x253833,_0x48df63))return!0x1;return!!_0x4dcc31[_0x3024('0x9b')](_0x2b1801=>_0x209d39[_0x3024('0x30')](_0x5e79c7=>_0x2b1801[_0x3024('0x137')]()[_0x3024('0xc9')](_0x5e79c7['getFirstRange']())))&&_0x209d39['every'](_0x1fa442=>_0x4dcc31['some'](_0x53ea61=>_0x1fa442[_0x3024('0x137')]()['isEqual'](_0x53ea61[_0x3024('0x137')]())));}}[_0x3024('0x68')](_0x4d8794){const _0x391185=Array[_0x3024('0xec')](_0x4d8794),_0x28c190=this['getSuggestions']({'skipNotAttached':!0x0}),_0x7d52d3=_0x28c190[_0x3024('0x17a')](_0x26b6e1=>!_0x4d8794[_0x3024('0x14f')](_0x26b6e1)),_0x5f2519=new Map(_0x391185['map'](_0x24aeed=>[_0x24aeed,this[_0x3024('0x71')][_0x3024('0x11a')](_0x24aeed[_0x3024('0x132')],_0x24aeed[_0x3024('0x7c')],_0x3024('0x175'))])),_0x262efb=new Map(_0x28c190[_0x3024('0x53')](_0x53db9c=>[_0x53db9c,_0x53db9c[_0x3024('0x84')]()]));for(let _0x38fa5b=0x0;_0x38fa5b<_0x391185[_0x3024('0x2')];_0x38fa5b++){if(_0x1a4c1e(this,_0x391185[_0x38fa5b],_0x391185,_0x38fa5b+0x1))return!0x0;}for(let _0x51cbb8=0x0;_0x51cbb8<_0x391185[_0x3024('0x2')];_0x51cbb8++){if(_0x1a4c1e(this,_0x391185[_0x51cbb8],_0x7d52d3,0x0))return!0x0;}return!0x1;function _0x1a4c1e(_0x826590,_0x21e1e9,_0x1e4491,_0x77e2e9){for(let _0x48626d=_0x77e2e9;_0x48626d<_0x1e4491[_0x3024('0x2')];_0x48626d++){const _0x5e9502=_0x1e4491[_0x48626d];if(_0x5e9502[_0x3024('0x132')]!==_0x21e1e9[_0x3024('0x132')]||_0x5e9502[_0x3024('0x1d')]['id']!==_0x21e1e9[_0x3024('0x1d')]['id']||_0x5e9502[_0x3024('0x7c')]!==_0x21e1e9[_0x3024('0x7c')])continue;if(!Ft(_0x21e1e9,_0x5e9502,['groupId']))continue;if(_0x3024('0x13f')==_0x21e1e9['type']&&_0x21e1e9[_0x3024('0x49')][_0x3024('0xf5')]!=_0x5e9502['data'][_0x3024('0xf5')])continue;if(_0x3024('0x13f')==_0x21e1e9[_0x3024('0x132')]&&_0x826590[_0x3024('0x7e')](_0x21e1e9[_0x3024('0x49')][_0x3024('0xb8')]))continue;if(_0x3024('0x85')==_0x21e1e9[_0x3024('0x132')]){const _0x2d9d55=_0x826590[_0x3024('0x154')]['model'],_0x285a03=_0x21e1e9[_0x3024('0xed')]();if(_0x285a03&&(_0x2d9d55[_0x3024('0x104')][_0x3024('0x86')](_0x285a03)||_0x2d9d55['schema'][_0x3024('0xc1')](_0x285a03)))continue;}const _0x2939b9=_0x5f2519['get'](_0x21e1e9),_0x2b2773=_0x262efb[_0x3024('0xa0')](_0x21e1e9),_0xabbb81=_0x262efb[_0x3024('0xa0')](_0x5e9502),_0xa39de6=_0x21e1e9[_0x3024('0x37')]&&_0x21e1e9[_0x3024('0x37')][_0x3024('0x2')],_0x384b2d=_0x5e9502['commentThread']&&_0x5e9502['commentThread'][_0x3024('0x2')];if(!_0xa39de6&&_0x2939b9(_0xabbb81,_0x2b2773))return _0x826590[_0x3024('0x133')](_0x5e9502,_0x21e1e9),_0x262efb['delete'](_0x21e1e9),!0x0;if(!_0x384b2d&&_0x2939b9(_0x2b2773,_0xabbb81))return _0x826590['_joinSuggestions'](_0x21e1e9,_0x5e9502),_0x262efb['delete'](_0x5e9502),!0x0;}return!0x1;}}[_0x3024('0x133')](_0x570e1e,_0x5b2a20){if(_0x570e1e['isMultiRange'])for(const _0x236588 of _0x5b2a20[_0x3024('0x84')]())_0x570e1e['addRange'](_0x236588);else{const _0x4501a3=_0x5b2a20['getFirstRange']()[_0x3024('0x51')];this[_0x3024('0x75')](_0x570e1e,this['_model'][_0x3024('0x12d')](_0x570e1e[_0x3024('0x137')]()[_0x3024('0x163')],_0x4501a3));}_0x5b2a20[_0x3024('0xa4')]();}['_getMarkerAnnouncementText'](_0x5867e0,_0x55daad){const _0x526751=_0x5867e0[_0x3024('0x131')](_0x3024('0x160'))||_0x5867e0['startsWith'](_0x3024('0x13f'))?_0x3024('0x103'):_0x5867e0[_0x3024('0x15c')]();return _0x44f115(this[_0x3024('0x154')]['locale'],_0x55daad+'_'+_0x526751+'_SUGGESTION_ANNOUNCEMENT');}[_0x3024('0x142')](){const _0x43daed=this[_0x3024('0x154')];_0x471275(this[_0x3024('0x6f')],({left:_0x36c3d5,entered:_0x31460d})=>{const _0x31b552=[];for(const _0x578499 of _0x36c3d5){const {group:_0x16b92f,type:_0xf1eb13}=this['_splitMarkerName'](_0x578499['name']);if(_0x3024('0x168')===_0x16b92f){_0x31b552[_0x3024('0xdc')](this[_0x3024('0x91')](_0xf1eb13,'LEAVE'));break;}}for(const _0xe701d0 of _0x31460d){const {group:_0x6637b7,type:_0x3cc97c}=this[_0x3024('0xdd')](_0xe701d0[_0x3024('0x17d')]);if(_0x3024('0x168')===_0x6637b7){_0x31b552['push'](this[_0x3024('0x91')](_0x3cc97c,'ENTER'));break;}}_0x31b552[_0x3024('0x2')]&&_0x43daed['ui'][_0x3024('0x120')][_0x3024('0x55')](_0x3024('0x98'),_0x31b552[_0x3024('0x175')]('\x20'));});}[_0x3024('0x32')](_0x379c7f){if(this[_0x3024('0xbe')])return!0x1;const _0xe5715a=this[_0x3024('0x154')],_0x2f68fb=_0xe5715a[_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x4d')]();if(0x0==_0x2f68fb[_0x3024('0x2')])return!0x1;const _0x51dd18=[],_0x60fa50=_0x2f68fb[_0x3024('0x17a')](_0x5ab1de=>_0x3024('0x13f')==_0x5ab1de[_0x3024('0x132')]),_0x6e32ff=_0x2f68fb[_0x3024('0x17a')](_0xe610b0=>_0x3024('0x35')==_0xe610b0['type']&&_0x3024('0x100')!=_0xe610b0['name']),_0x181f1b=_0x2f68fb[_0x3024('0x17a')](_0x2ce394=>_0x3024('0x1e')==_0x2ce394[_0x3024('0x132')]&&'$text'!=_0x2ce394[_0x3024('0x17d')]);for(const _0x54195b of _0x60fa50)_0x51dd18[_0x3024('0xdc')]({'key':_0x54195b[_0x3024('0x12c')],'newValue':_0x54195b['attributeNewValue'],'oldValue':_0x54195b[_0x3024('0x22')],'range':Ut(_0x54195b[_0x3024('0x10c')],_0xe5715a[_0x3024('0xfa')])});for(const _0x53aa50 of _0x6e32ff){const _0x100cda=_0x181f1b[_0x3024('0x33')](_0x3f9747=>_0x3f9747[_0x3024('0x83')][_0x3024('0xc9')](_0x53aa50[_0x3024('0x83')]));_0x100cda&&_0x51dd18[_0x3024('0xdc')]({'key':_0x3024('0x10e'),'newValue':_0x53aa50[_0x3024('0x17d')],'oldValue':_0x100cda[_0x3024('0x17d')],'range':_0xe5715a[_0x3024('0xfa')]['createRangeOn'](_0x53aa50[_0x3024('0x83')]['nodeAfter'])});}return 0x0!=_0x51dd18[_0x3024('0x2')]&&this[_0x3024('0xab')](_0x379c7f,_0x51dd18);}['_processAttributeSuggestions'](_0x55efda){let _0xfd803f=!0x1;const _0x523020=this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x13a')]()[_0x3024('0x17a')](_0x582e17=>_0x582e17['data'][_0x3024('0x64')]&&_0x582e17['name'][_0x3024('0x131')](_0x3024('0xc7')));for(const _0x3d331e of _0x523020){const {subType:_0x10e632,id:_0x29b9db}=this[_0x3024('0xdd')](_0x3d331e[_0x3024('0x17d')]),_0x669740=_0x10e632[_0x3024('0x28')]('|')[0x0];for(const _0x9c9bac of this[_0x3024('0x44')]({'skipNotAttached':!0x0}))_0x9c9bac['id']!=_0x29b9db&&'attribute'==_0x9c9bac[_0x3024('0x132')]&&_0x9c9bac[_0x3024('0x49')]&&_0x9c9bac['data'][_0x3024('0xb8')]==_0x669740&&_0x9c9bac[_0x3024('0x137')]()[_0x3024('0x134')](_0x3d331e[_0x3024('0x49')]['newRange'])&&(this[_0x3024('0x48')](_0x9c9bac,_0x3d331e['data'][_0x3024('0x64')],_0x55efda),_0xfd803f=!0x0);}return _0xfd803f;}[_0x3024('0x12e')](_0xbfee5b){this[_0x3024('0x154')],(this[_0x3024('0xbe')]=!0x0,_0xbfee5b());}[_0x3024('0xb7')](_0x211ba0){const _0x3ca0b5=this['_isBlockAttribute'](_0x211ba0),_0x4e2de5=this[_0x3024('0xd7')][_0x3024('0x14f')](_0x211ba0);return _0x3ca0b5||_0x4e2de5;}['_reduceExistingSuggestions'](_0x4a645d,_0x5a8068){if(0x0==_0x5a8068['length'])return!0x1;let _0x2aa86b=!0x1;for(const _0x16be1b of _0x5a8068){const _0x5b908d=this[_0x3024('0x148')](_0x16be1b['range'],_0x3024('0x13f'))[_0x3024('0x17a')](_0x3c3692=>!_0x3c3692[_0x3024('0x89')][_0x3024('0x23')])[_0x3024('0x53')](_0x5c7ac3=>_0x5c7ac3['suggestion']),_0x1a89d7=_0x4a1e6a({'newValue':_0x16be1b[_0x3024('0x76')]});_0x5b908d[_0x3024('0x17a')](_0x59473c=>{const [_0x847c0e,_0x38e8af]=_0x59473c[_0x3024('0x7c')][_0x3024('0x28')]('|');return _0x847c0e==_0x16be1b[_0x3024('0xb8')]&&_0x38e8af!=_0x1a89d7;})[_0x3024('0x36')](_0x2dba06=>{this['_reduceSuggestionAttributeRange'](_0x2dba06,_0x16be1b[_0x3024('0x10c')],_0x4a645d),_0x2aa86b=!0x0;});}return _0x2aa86b;}['_reduceSuggestionAttributeRange'](_0xa821d2,_0x24f636,_0x48e644){const _0x32ee03=_0xa821d2[_0x3024('0x137')]()[_0x3024('0x13e')](_0x24f636);0x0!==_0x32ee03[_0x3024('0x2')]?0x1!==_0x32ee03['length']?this[_0x3024('0x162')](_0xa821d2,_0x24f636[_0x3024('0x163')],_0x24f636['end']):this[_0x3024('0x75')](_0xa821d2,_0x32ee03[0x0]):_0x48e644[_0x3024('0x5b')](_0xa821d2[_0x3024('0x14d')]());}}class Bt{constructor(_0x4b00f9){this[_0x3024('0xcb')]=_0x4b00f9,this['_model']=_0x4b00f9[_0x3024('0xfa')],this['_customCallbacks']=new Map(),this[_0x3024('0xf3')]=new Map(),this['_registerDefaultCallbacks']();}[_0x3024('0xc')](_0x53f81d,_0x3ce7ab,_0x23945a,_0x52054c,_0x43a494,_0xefb61e){return new _0x1f2ce3(this[_0x3024('0x6f')],{'type':_0x53f81d,'subType':_0x3ce7ab,'id':_0x23945a,'author':_0x52054c,'creator':_0x52054c,'attributes':_0x43a494,'onAttributesChange':_0xefb61e,'onAccept':(..._0x2ad376)=>this[_0x3024('0x11a')](_0x53f81d,_0x3ce7ab,_0x3024('0x14c'))(..._0x2ad376),'onDiscard':(..._0x51cc64)=>this[_0x3024('0x11a')](_0x53f81d,_0x3ce7ab,'discard')(..._0x51cc64)});}[_0x3024('0xd5')](_0x41c913,_0x4e6d30,_0x45e9c0,_0x497e20){const _0x414e1c=_0x41c913+':'+_0x4e6d30+':'+_0x45e9c0;this[_0x3024('0xfb')][_0x3024('0x17c')](_0x414e1c,_0x497e20);}[_0x3024('0x11a')](_0x5f4a6b,_0x2e566a,_0x346cbc){const _0x314900=_0x5f4a6b+':'+_0x2e566a+':'+_0x346cbc;return this[_0x3024('0xfb')][_0x3024('0xa0')](_0x314900)||this[_0x3024('0xf3')]['get'](_0x5f4a6b+':'+_0x346cbc);}[_0x3024('0x70')](){const _0x56bed8=()=>!0x1,_0x58de8d=_0x2f78b4=>{_0x2f78b4[_0x3024('0x3b')]((_0x5e5c14,_0x5ad484)=>_0x5e5c14['start'][_0x3024('0x79')](_0x5ad484[_0x3024('0x163')])?0x1:-0x1),this['_model'][_0x3024('0x11f')](_0x59456e=>{for(const _0x58bc65 of _0x2f78b4){let _0x662168;_0x662168=_0x58bc65['end'][_0x3024('0x12a')]&&_0x58bc65[_0x3024('0x51')][_0x3024('0x7f')]==_0x58bc65[_0x3024('0x163')][_0x3024('0xf2')]?_0x59456e[_0x3024('0xcf')](_0x58bc65[_0x3024('0x163')]['nodeAfter'],'on'):_0x59456e[_0x3024('0xcf')](_0x58bc65),this['_model']['deleteContent'](_0x662168,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1bdf32=(_0x295db5,_0x14f3ed)=>{_0x14f3ed&&this['_model']['change'](_0x3e0dcb=>{const {commandName:_0x535004,commandParams:_0x390942=[]}=_0x14f3ed,_0x188e14=_0x295db5[_0x3024('0x53')](_0x4e7849=>(Rt(_0x4e7849)&&(_0x4e7849=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x4e7849['end'])),_0x4e7849))['filter'](_0x2b9a6b=>_0x3024('0xb5')!==_0x2b9a6b[_0x3024('0xd0')][_0x3024('0x6e')]);if(_0x188e14[_0x3024('0x2')]<0x1)return;const _0xb76483=Array[_0x3024('0xec')](this[_0x3024('0x6f')]['document'][_0x3024('0x118')][_0x3024('0x84')]())['map'](_0x54ab81=>_0x205e8b[_0x3024('0x15b')](_0x54ab81));_0x3e0dcb[_0x3024('0xd')](_0x188e14);for(const _0x209b22 of this[_0x3024('0xcb')]['commands']['commands']())_0x209b22['refresh']();_0x390942[_0x3024('0xdc')]({'forceDefaultExecution':!0x0}),this[_0x3024('0xcb')][_0x3024('0xf1')](_0x535004,..._0x390942);const _0x445ed2=_0xb76483[_0x3024('0x17a')](_0x5c45b2=>_0x3024('0xb5')!=_0x5c45b2[_0x3024('0xd0')][_0x3024('0x6e')]);_0x445ed2['length']>0x0&&_0x3e0dcb[_0x3024('0xd')](_0x445ed2);for(const _0x400d0d of _0xb76483)_0x400d0d['detach']();});},_0x1c987c=(_0xc71e00,_0x45f011)=>0x1==_0xc71e00[_0x3024('0x2')]&&0x1==_0x45f011['length']&&_0xc71e00[0x0][_0x3024('0x51')][_0x3024('0xc9')](_0x45f011[0x0][_0x3024('0x163')]),_0xc9ab48=(_0x2f3d8a,_0x4069e6,_0x5a577e,_0x5cda3c)=>Gt(_0x2f3d8a,_0x4069e6,_0x5a577e,_0x5cda3c,this[_0x3024('0x6f')])?[_0x2f3d8a,_0x4069e6]:Gt(_0x4069e6,_0x2f3d8a,_0x5cda3c,_0x5a577e,this[_0x3024('0x6f')])?[_0x4069e6,_0x2f3d8a]:null;this[_0x3024('0xf3')][_0x3024('0x17c')]('insertion:accept',_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x2a'),_0x58de8d),this['_defaultCallbacks']['set']('insertion:join',_0x1c987c),this[_0x3024('0xf3')]['set'](_0x3024('0x8e'),_0xc9ab48),this[_0x3024('0xf3')]['set'](_0x3024('0x74'),_0x58de8d),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0x9d'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0xf7'),_0x1c987c),this[_0x3024('0xf3')]['set'](_0x3024('0xb3'),_0xc9ab48),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x65'),_0x1bdf32),this[_0x3024('0xf3')]['set'](_0x3024('0x58'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x106'),_0x1c987c),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x10'),_0x56bed8),this[_0x3024('0xf3')]['set'](_0x3024('0xc2'),_0x1bdf32),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x87'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x146'),_0x1c987c),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x47'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0xc3'),_0x56bed8),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0xe0'),(_0x4283a1,_0x3b286c)=>{if(!_0x3b286c)return;const _0x4fe540=this[_0x3024('0xcb')]['plugins'][_0x3024('0xa0')](p);this[_0x3024('0x6f')][_0x3024('0x11f')](_0xc1f66b=>{if('$elementName'==_0x3b286c['key'])for(const _0x351796 of _0x4283a1){const _0x323a80=_0x351796[_0x3024('0x163')]['nodeAfter'],_0x4e5124=_0x3b286c['oldValue'];_0xc1f66b['rename'](_0x323a80,_0x4e5124);}else{if(_0x4fe540[_0x3024('0x7e')](_0x3b286c['key']))for(const _0xac1e81 of _0x4283a1)void 0x0!==_0x3b286c['oldValue']?_0xc1f66b[_0x3024('0x18')](_0x3b286c['key'],_0x3b286c[_0x3024('0xf5')],_0xac1e81[_0x3024('0x163')][_0x3024('0xf2')]):_0xc1f66b[_0x3024('0x42')](_0x3b286c[_0x3024('0xb8')],_0xac1e81[_0x3024('0x163')][_0x3024('0xf2')]);else for(const _0x31a22a of _0x4283a1)_0x3b286c[_0x3024('0xf5')]?_0xc1f66b[_0x3024('0x18')](_0x3b286c[_0x3024('0xb8')],_0x3b286c[_0x3024('0xf5')],_0x31a22a):_0xc1f66b[_0x3024('0x42')](_0x3b286c['key'],_0x31a22a);}});}),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0x16c'),_0x1c987c);}}function xt(_0x8d611d,_0x11b7d7,_0x2d8bb2){for(const _0x1564dd of _0x11b7d7[_0x3024('0x7f')][_0x3024('0xf')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1564dd[_0x3024('0xd0')]==_0x1564dd)return!0x1;if(!_0x2d8bb2[_0x3024('0x80')](_0x1564dd))return!0x1;if(_0x8d611d['isObject'](_0x1564dd)||_0x8d611d[_0x3024('0xc1')](_0x1564dd))return!0x0;}return!0x1;}function Rt(_0x5f514d){return _0x5f514d['end'][_0x3024('0x7f')]==_0x5f514d[_0x3024('0x163')][_0x3024('0xf2')]&&_0x5f514d[_0x3024('0x51')][_0x3024('0x11e')];}function Tt(_0x590a22,_0x414f4e,_0x379cd5,_0x236590){const _0x156a1f=_0x2fe15e=>!_0x2fe15e['item']['is'](_0x3024('0x15f'))&&!_0x236590[_0x3024('0x86')](_0x2fe15e['item']),_0x582da0=_0x590a22[_0x3024('0x163')][_0x3024('0x111')](_0x156a1f),_0x734f88=_0x590a22[_0x3024('0x51')]['getLastMatchingPosition'](_0x156a1f,{'direction':_0x3024('0xcd')});return(!_0x590a22[_0x3024('0x163')][_0x3024('0xc9')](_0x582da0)||!_0x590a22[_0x3024('0x51')][_0x3024('0xc9')](_0x734f88))&&(_0x582da0[_0x3024('0x79')](_0x734f88)?_0x379cd5[_0x3024('0x11')](_0x414f4e,{'range':_0x379cd5[_0x3024('0x12d')](_0x582da0,_0x734f88)}):_0x379cd5['removeMarker'](_0x414f4e),!0x0);}function Et(_0x4634f9){return _0x4a1e6a(_0x4634f9);}function Vt(_0x97cd0){const _0x49a638=_0x97cd0[_0x3024('0x163')]['nodeAfter'];return _0x49a638&&_0x49a638['is']('element');}function Ut(_0x1ed39d,_0x10571e){return null==_0x1ed39d['end'][_0x3024('0x4c')]&&_0x1ed39d[_0x3024('0x51')][_0x3024('0x7f')]==_0x1ed39d['start'][_0x3024('0xf2')]?Ot(_0x1ed39d[_0x3024('0x163')][_0x3024('0xf2')],_0x10571e):_0x1ed39d;}function Ot(_0x40649d,_0x26f47d){const _0xb459bf=_0x26f47d['schema']['isObject'](_0x40649d)||_0x26f47d[_0x3024('0x104')]['isSelectable'](_0x40649d);return _0x26f47d[_0x3024('0x12d')](_0x26f47d['createPositionAt'](_0x40649d,_0x3024('0x149')),_0xb459bf?_0x26f47d[_0x3024('0x153')](_0x40649d):_0x26f47d[_0x3024('0x17')](_0x40649d,_0x3024('0x51')));}function Gt(_0x5d0630,_0x3d8217,_0x2f8c7e,_0x3e84f6,_0x52d8be){if(!Ft(_0x5d0630,_0x3d8217))return!0x1;if(_0x2f8c7e[_0x3024('0x51')][_0x3024('0xc9')](_0x3e84f6[_0x3024('0x163')]))return!0x0;if(_0x5d0630[_0x3024('0x132')]!=_0x3d8217[_0x3024('0x132')])return!0x1;if(!_0x2f8c7e[_0x3024('0x51')]['isTouching'](_0x3e84f6[_0x3024('0x163')]))return!0x1;const _0x36dc69=_0x52d8be[_0x3024('0x12d')](_0x2f8c7e[_0x3024('0x51')],_0x3e84f6['start'])[_0x3024('0x172')]();for(const _0x480150 of _0x36dc69)if([_0x3024('0x67'),'elementEnd'][_0x3024('0xad')](_0x480150[_0x3024('0x132')])&&_0x52d8be[_0x3024('0x104')][_0x3024('0xc1')](_0x480150['item']))return!0x1;return!0x0;}function Ft(_0x218f8b,_0x5de237,_0x41bc5a=[]){return!(!_0x218f8b[_0x3024('0x27')]||!_0x5de237[_0x3024('0x27')])&&_0x2963a5(_0x5a017a(_0x218f8b[_0x3024('0x3e')],_0x41bc5a),_0x5a017a(_0x5de237[_0x3024('0x3e')],_0x41bc5a));}function Pt(_0x5c97bb,_0x94e3fa){const _0x225779=Lt(_0x5c97bb['attributes']),_0x1b588b=Lt(_0x94e3fa);if(!_0x5c97bb[_0x3024('0x27')])return!0x1;for(const _0x5e149d of Object[_0x3024('0x19')](_0x1b588b))if(!_0x2963a5(_0x225779[_0x5e149d],_0x1b588b[_0x5e149d]))return!0x1;return!0x0;}function Lt(_0x4fb839){const _0x3130aa=Object['assign']({},_0x4fb839);return delete _0x3130aa['skipNestingCheck'],delete _0x3130aa[_0x3024('0xdb')],_0x3130aa;}
|