@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231022.0 → 0.0.0-nightly-20231024.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/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/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.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/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.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 _0x35a7=['removeMarkers','isArray','_breakSuggestionMarker','formatInline:accept','addUser','toJSON','insertion:accept','selection','insertion','markInlineFormat','_findSuggestions','_joinSuggestions','from','forceDefaultExecution','addHighlight','group','element','createPositionAfter','containerElement','push','getRanges','elementEnd','_customCallbacks','editing','_onDiscard','formatBlock:accept','for','deletion:','_updateSuggestionData','discard','multi','_getAuthorFromId','isMultiRange','formatInline','_splitMarkerName','isOwn','ready','change:activeMarkers','isAfter','schema','removed','skipNestingCheck','nodeAfter','never','removeMarker','track-changes-suggestion-data-mismatch','_registerDefaultCallbacks','registerCustomCallback','getWalker','dataDowncast','start','$textProxy','_createSuggestion','has','batch','root','trackChanges.trackFormatChanges','getItems','detach','change','insertion:discard','_adapter','_model','isObject','track-changes-adapter-missing-getsuggestion','moveTargetPosition','_checkSuggestionCorrectness','always','widget','isRemovable','trackChangesCommand','mapper','containsItem','addRange','isAtStart','value','data','fromRange','multipleBlocks','enqueueChange','getAllAdjacentSuggestions','_mergeNestedSuggestions','TrackChangesEditing','marker-count','addSuggestionData','elementStart','some','hasCommentThread','isTouching','track-changes-suggestion-not-found','addSuggestion','ck-suggestion-marker','_suggestionFactory','markMultiRangeBlockFormat','unbindElementFromMarkerName','targetPosition','CommentsRepository','_suggestionState','createdAt','split','suggestionChanged','newRange','_setSuggestionRange','createSelection','isBefore','type','createPositionAt','isCollapsed','forward','acceptSelectedSuggestions','_defaultCallbacks','locale','isInsideObject','isAtEnd','isDocumentOperation','updateSuggestion','plugins','updateMarker','isIntersectingWithRange','enableReadOnlyMode','getSuggestion','tablePasteChainId','before','rootName','_getExternalAuthor','sort','low','addCommentThread','_isForcedDefaultExecutionBlock','discardSelectedSuggestions','return','open','removeComment','consume','join','_removeSuggestion','formatBlock:discard','howMany','activeMarkers','discardSuggestion','fromCharCode','addMarker:suggestion','deletion','head','createRangeIn','@external','document','listenTo','options','markerName','stopListening','getShiftedBy','isInContent','_cutOutSuggestionMarker','removeAttribute','backward','_isDataLoaded','consumable','default','isLimit','buildSuggestion','trackChanges.mergeNestedSuggestions','data-suggestion','Users','editor','addClass','$graveyard','isBlock','chain','subType','elementToElement','showSuggestionHighlights','nodeBefore','getMarkers','execute','removeClass','setTo','clone','commentThread','after','differ','requires','$marker','markInsertion','includes','assign','_enabledCommands','isNextTo','_descriptionFactory','getAncestors','documentSelection','acceptAllSuggestions','isSelectable','suggestionLoaded','markerReady','external:','item','ck-suggestion-marker--active','getCommentThread','_rangeIsInLocalUserInsertion','filter','attributes','refresh','formatInline:join','markDeletion','formatInline:','config','getSuggestionCallback','stop','markerToHighlight','high','range','ck-suggestion-marker-formatBlock','deleteContent','createPositionBefore','insertion:chain','_setSuggestionData','authoredAt','isExternal','createRange','formatBlock:','author','_editor','name','size','discardAllSuggestions','_saved','oldRange','_addThreadToSuggestion','markerNameToElements','adapter','end','originalSuggestionId','getLastMatchingPosition','add','markers','fire','addMarker','containsRangeInObject','length','accept','formatBlock','formatInline:discard','toViewElement','getFirstRange','containsRange','lowest','formatBlock:join','next','previous','unbind','values','clear','applyOperation','_commentsRepository','suggestion','bindElementToMarker','suggestionUnloaded','map','delete','dataReady','markMultiRangeDeletion','enableCommand','commandName','_joinWithAdjacentSuggestions','getUser','_addSuggestionMarker','rejected','creator','keys','parent','splice','acceptSuggestion','upcast','formatInline:chain','isLocal','conversion','suggestion:','getSuggestions','init','every','addMarker:suggestion:formatBlock','getNearestSelectionRange','notReady','getChangedMarkers','editingDowncast','ck-suggestion-marker-','hasComments','position','_suggestions','insertion:join','collaboration.channelId','writer','PendingActions','isUndo','markMultiRangeInsertion','addComment','_trackFormatChanges','remove','getAttribute','setSelection','isEqual','define','change:_saved','get','commands','PENDING_ACTION_SUGGESTION','_handleNewSuggestionMarker','getMultiRangeId','suggestion-type','resolve','formatGroupId','_refreshSuggestionsChain','insertion:','getFirstMarker','registerPostFixer','getIntersection','set','addMarkerName','containsPosition','normal','then','model','insert','getCustomProperty','catch'];(function(_0x5041ed,_0x35a728){const _0x3c417f=function(_0x2964c4){while(--_0x2964c4){_0x5041ed['push'](_0x5041ed['shift']());}};_0x3c417f(++_0x35a728);}(_0x35a7,0x1b5));const _0x3c41=function(_0x5041ed,_0x35a728){_0x5041ed=_0x5041ed-0x0;let _0x3c417f=_0x35a7[_0x5041ed];return _0x3c417f;};import{Plugin as _0xcc7ad3,PendingActions as _0x2ac684}from'ckeditor5/src/core';import{LiveRange as _0xe5a593}from'ckeditor5/src/engine';import{CKEditorError as _0x149c43,uid as _0x47dbea,priorities as _0xa4659f,logWarning as _0x151902}from'ckeditor5/src/utils';import{toWidget as _0x55a102}from'ckeditor5/src/widget';import{Users as _0x24abd7,hashObject as _0x4ee5c6}from'ckeditor5-collaboration/src/collaboration-core';import _0x3e0ba5 from'./commands/trackchangescommand';import _0x2e3652 from'./commands/acceptsuggestioncommand';import _0x3335a5 from'./commands/discardsuggestioncommand';import _0x19c964 from'./commands/executeonallsuggestionscommand';import _0x2f37ce from'./commands/executeonselectedsuggestionscommand';import _0x32734f from'./suggestion';import _0x3b26fe from'./suggestiondescriptionfactory';import _0x340feb from'./integrations/aiassistant';import _0x49adac from'./integrations/alignment';import _0x75b8ab from'./integrations/basicstyles';import _0x16f2f9 from'./integrations/blockquote';import _0x5c9f03 from'./integrations/ckbox';import _0x4b80ae from'./integrations/codeblock';import _0x231535 from'./integrations/comments';import _0x5787c9 from'./integrations/deletecommand';import _0x4de95f from'./integrations/documentlist';import _0x15b330 from'./integrations/entercommand';import _0xbfce62 from'./integrations/findandreplace';import _0x451e65 from'./integrations/font';import _0xbc165c from'./integrations/formatpainter';import _0x2804bf from'./integrations/heading';import _0x269478 from'./integrations/highlight';import _0x23b6f0 from'./integrations/horizontalline';import _0x41d6b8 from'./integrations/htmlembed';import _0x33c9d1 from'./integrations/image';import _0x1e9e05 from'./integrations/imagereplace';import _0x5eae9f from'./integrations/importword';import _0xa0bc3e from'./integrations/indent';import _0x2afa09 from'./integrations/inputcommand';import _0x1948bc from'./integrations/link';import _0xa7ca2e from'./integrations/list';import _0x3d68ea from'./integrations/listproperties';import _0x4ec19b from'./integrations/mediaembed';import _0x2d3e55 from'./integrations/mention';import _0x5c44f1 from'./integrations/pagebreak';import _0x73cb8e from'./integrations/paragraph';import _0x230057 from'./integrations/removeformat';import _0x4c52d9 from'./integrations/restrictededitingmode';import _0x2e85ed from'./integrations/shiftentercommand';import _0x461d8b from'./integrations/standardeditingmode';import _0x45e382 from'./integrations/style';import _0x714963 from'./integrations/table';import _0x2183e8 from'./integrations/tablemergesplit';import _0x50351a from'./integrations/tableheadings';import _0x4a7d15 from'./integrations/tableclipboard';import _0x4a27bc from'./integrations/tablecolumnresize';import _0x1304cc from'./integrations/template';import _0x5e18df from'./integrations/tableofcontents';import _0x6e5c from'./integrations/title';import _0x3b9799 from'./integrations/undo';import{getTranslation as _0x5dd432}from'./utils/common-translations';import _0x55ec97 from'./integrations/tablecaption';import _0x5e8027 from'./integrations/documentlistproperties';import _0x12e33e from'./integrations/tableproperties';import{isEqual as _0x524132}from'lodash-es';export default class p extends _0xcc7ad3{static get[_0x3c41('0x46')](){return[_0x3c41('0x137'),_0x24abd7,_0x2ac684,_0x340feb,_0x49adac,_0x75b8ab,_0x16f2f9,_0x5c9f03,_0x4b80ae,_0x231535,_0x5787c9,_0x4de95f,_0x5e8027,_0x15b330,_0xbfce62,_0x451e65,_0xbc165c,_0x2804bf,_0x269478,_0x23b6f0,_0x41d6b8,_0x33c9d1,_0x1e9e05,_0x5eae9f,_0xa0bc3e,_0x2afa09,_0x1948bc,_0xa7ca2e,_0x3d68ea,_0x4ec19b,_0x2d3e55,_0x5c44f1,_0x73cb8e,_0x230057,_0x4c52d9,_0x2e85ed,_0x461d8b,_0x45e382,_0x714963,_0x2183e8,_0x50351a,_0x55ec97,_0x4a7d15,_0x4a27bc,_0x5e18df,_0x12e33e,_0x1304cc,_0x6e5c,_0x3b9799];}static get['pluginName'](){return _0x3c41('0x129');}constructor(_0x1d5df1){function _0x495e91(_0x420183){return _0x420183[_0x3c41('0x93')](_0x3ed498=>String[_0x3c41('0x1d')](_0x3ed498))[_0x3c41('0x17')]('');}super(_0x1d5df1),this[_0x3c41('0xce')](_0x3c41('0x1b'),[]),this['on'](_0x3c41('0xfc'),(_0x437041,_0x36feda,_0x490422,_0x30baf7)=>{this['_model']['change'](()=>{for(const _0x313b7a of[..._0x30baf7,..._0x490422])this[_0x3c41('0x115')][_0x3c41('0x7c')][_0x3c41('0x10c')](_0x313b7a)&&_0x1d5df1[_0x3c41('0xee')]['reconvertMarker'](_0x313b7a);});}),this[_0x3c41('0x4d')]=new _0x3b26fe(this[_0x3c41('0x35')][_0x3c41('0xd3')][_0x3c41('0xfe')],this['editor'][_0x3c41('0x0')]),this['_adapter']=null,this[_0x3c41('0x133')]=new Bt(this[_0x3c41('0x35')]),this['_suggestions']=new Map(),this[_0x3c41('0x8f')]=_0x1d5df1[_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x137')),this['_enabledCommands']=new Set(),this[_0x3c41('0x115')]=this['editor'][_0x3c41('0xd3')],this[_0x3c41('0x138')]=new WeakMap(),this[_0x3c41('0x11')]=!0x1,_0x1d5df1['config'][_0x3c41('0xbf')](_0x3c41('0x10f'),_0x3c41('0x2f')),this['_trackFormatChanges']=_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0x10f')),_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xbf')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x3c41('0x128')]=_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0x32')),this['trackChangesCommand']=new _0x3e0ba5(_0x1d5df1,this[_0x3c41('0x4b')]),this[_0x495e91([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x495e91([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x34]);}[_0x3c41('0xa8')](){const _0x534b7c=this['editor'];_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xae'))[_0x3c41('0x62')]({'model':_0x3c41('0x90'),'view':_0x4c6898=>{const {id:_0x39cb01,type:_0x8dec53}=this[_0x3c41('0xf9')](_0x4c6898[_0x3c41('0x26')]),_0x17bca6=[_0x3c41('0x132'),_0x3c41('0xaf')+_0x8dec53];let _0x804d1b=0xbb8;return this['activeMarkers'][_0x3c41('0x49')](_0x4c6898[_0x3c41('0x26')])&&(_0x17bca6[_0x3c41('0xea')](_0x3c41('0x56')),_0x804d1b=0xbc2),_0x3c41('0x1f')==_0x8dec53&&(_0x804d1b+=0x5),{'classes':_0x17bca6,'attributes':{'data-suggestion':_0x39cb01},'priority':_0x804d1b};}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0x108'))[_0x3c41('0x7b')](_0x2517b1=>{_0x2517b1['on'](_0x3c41('0x1e'),(_0x3b2acb,_0x3245da,_0x5af790)=>{if(!_0x5af790['options']['showSuggestionHighlights'])return;const _0x359e89=_0x3245da[_0x3c41('0x55')];if(!_0x359e89)return;const _0x5662dc=_0x5af790[_0x3c41('0x11e')][_0x3c41('0x84')](_0x359e89);_0x534b7c['model']['schema']['isObject'](_0x359e89)&&_0x5662dc&&!_0x5662dc['getCustomProperty'](_0x3c41('0x11b'))&&_0x5662dc['is'](_0x3c41('0xe9'))&&_0x55a102(_0x5662dc,_0x5af790['writer']);},{'priority':_0x3c41('0x63')});}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0x108'))[_0x3c41('0x62')]({'model':_0x3c41('0x90'),'view':(_0x26fde7,_0x2fca5e)=>{if(!_0x2fca5e[_0x3c41('0x25')][_0x3c41('0x3c')])return null;const {type:_0x3740b0}=this[_0x3c41('0xf9')](_0x26fde7['markerName']);return{'classes':[_0x3c41('0x132'),_0x3c41('0xaf')+_0x3740b0],'priority':0xbb8};}});const _0x7c9ab7=({showActiveMarkers:_0x219be0=!0x0}={})=>(_0x326658,_0x4ff732,_0x4f294c)=>{if(!_0x4ff732[_0x3c41('0x55')])return;if(_0x4ff732['item']['is'](_0x3c41('0xde')))return void _0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x4ff732['item'],_0x326658['name']);const _0x2c7b1a=_0x4f294c[_0x3c41('0x11e')][_0x3c41('0x84')](_0x4ff732[_0x3c41('0x55')]);if(!(_0x4ff732[_0x3c41('0x55')]['is'](_0x3c41('0xe7'))&&_0x534b7c[_0x3c41('0xd3')]['schema'][_0x3c41('0x38')](_0x4ff732[_0x3c41('0x55')])&&!_0x2c7b1a[_0x3c41('0xd5')]('addHighlight')))return;const {id:_0x4e2cad}=this[_0x3c41('0xf9')](_0x4ff732['markerName']);_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x36')]([_0x3c41('0x132'),'ck-suggestion-marker-formatBlock'],_0x2c7b1a),_0x4f294c[_0x3c41('0xb5')]['setAttribute'](_0x3c41('0x33'),_0x4e2cad,_0x2c7b1a),_0x4f294c[_0x3c41('0x11e')][_0x3c41('0x91')](_0x2c7b1a,_0x4ff732[_0x3c41('0x26')]),_0x219be0&&(this[_0x3c41('0x1b')]['includes'](_0x4ff732[_0x3c41('0x26')])?_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x36')](_0x3c41('0x56'),_0x2c7b1a):_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x40')](_0x3c41('0x56'),_0x2c7b1a));for(const _0x252ed6 of _0x534b7c[_0x3c41('0xd3')][_0x3c41('0x21')](_0x4ff732[_0x3c41('0x55')])[_0x3c41('0x110')]())_0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x252ed6,_0x326658[_0x3c41('0x70')]);_0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x4ff732[_0x3c41('0x55')],_0x326658['name']);};_0x534b7c['conversion']['for'](_0x3c41('0x108'))[_0x3c41('0x7b')](_0x361555=>{_0x361555['on'](_0x3c41('0xaa'),(_0x18d60e,_0x51404c,_0x26ab48)=>{_0x26ab48['options'][_0x3c41('0x3c')]&&_0x7c9ab7({'showActiveMarkers':!0x1})(_0x18d60e,_0x51404c,_0x26ab48);},{'priority':'highest'});}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')]('dataDowncast')['markerToData']({'model':_0x3c41('0x90'),'view':(_0x3f3dd7,_0x2f2a5b)=>_0x2f2a5b[_0x3c41('0x25')]['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3f3dd7['substr'](0xb)}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xa2'))[_0x3c41('0x3b')]({'view':{'name':_0x3c41('0x90'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ae280,{writer:_0x238952})=>{let _0x279040=_0x3c41('0xa6')+_0x3ae280[_0x3c41('0xbc')](_0x3c41('0xc6'))+':'+_0x3ae280['getAttribute']('id');return _0x3ae280[_0x3c41('0xbc')](_0x3c41('0x12a'))&&(_0x279040+=':'+_0x3ae280[_0x3c41('0xbc')](_0x3c41('0x12a'))),_0x238952['createElement'](_0x3c41('0x47'),{'data-name':_0x279040});}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xa2'))['dataToMarker']({'view':'suggestion'}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')]('editingDowncast')[_0x3c41('0x7b')](_0x4b276a=>{_0x4b276a['on'](_0x3c41('0xaa'),_0x7c9ab7(),{'priority':_0x3c41('0x63')});}),_0x534b7c['conversion'][_0x3c41('0xf1')](_0x3c41('0xae'))[_0x3c41('0x7b')](_0x9e8108=>{_0x9e8108['on']('removeMarker:suggestion:formatBlock',(_0x289894,_0x3d81dc,_0x324a27)=>{const _0x23cc36=_0x324a27[_0x3c41('0x11e')][_0x3c41('0x76')](_0x3d81dc[_0x3c41('0x26')]);if(_0x23cc36)for(const _0x450795 of _0x23cc36)_0x450795[_0x3c41('0xd5')](_0x3c41('0xe5'))||(_0x324a27['writer'][_0x3c41('0x40')]([_0x3c41('0x132'),_0x3c41('0x65'),_0x3c41('0x56')],_0x450795),_0x324a27[_0x3c41('0xb5')][_0x3c41('0x2b')](_0x3c41('0x33'),_0x450795),_0x324a27[_0x3c41('0x11e')][_0x3c41('0x135')](_0x450795,_0x3d81dc[_0x3c41('0x26')]));},{'priority':_0x3c41('0x63')});}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['registerPostFixer'](_0x33a103=>{let _0x2dee42=!0x1;const _0x509a28=Array['from'](_0x534b7c['model'][_0x3c41('0x23')][_0x3c41('0x45')][_0x3c41('0xad')]()),_0x380aa7=new Set();for(const {name:_0x21b7bb,data:_0x5ab445}of _0x509a28){const {group:_0x2daa5f,type:_0x68280a,id:_0x421689}=this[_0x3c41('0xf9')](_0x21b7bb);if(_0x3c41('0x90')!==_0x2daa5f)continue;const _0x263633=this['_suggestions'][_0x3c41('0xc1')](_0x421689);if(null!=_0x5ab445[_0x3c41('0x13c')]){_0x3c41('0xf8')==_0x68280a&&(_0x2dee42=_0x2dee42||$t(_0x5ab445['newRange'],_0x21b7bb,_0x33a103,_0x534b7c['model'][_0x3c41('0xfe')]));if(_0x5ab445['newRange']['isCollapsed']||_0x3c41('0x37')==_0x5ab445[_0x3c41('0x13c')][_0x3c41('0x10e')][_0x3c41('0xc')]||_0x3c41('0x82')==_0x68280a&&!Rt(_0x5ab445[_0x3c41('0x13c')])||_0x3c41('0x1f')==_0x68280a&&!(!Mt(_0x3606d2=_0x5ab445['newRange'])&&!function(_0x4fa01b){return _0x4fa01b[_0x3c41('0x109')][_0x3c41('0x9f')]==_0x4fa01b[_0x3c41('0x78')][_0x3c41('0x3d')]&&_0x4fa01b[_0x3c41('0x109')][_0x3c41('0x2')];}(_0x3606d2)))_0x33a103[_0x3c41('0x103')](_0x21b7bb),_0x2dee42=!0x0;else{if(!_0x263633||!_0x263633[_0x3c41('0x29')])continue;_0x380aa7[_0x3c41('0x7b')](_0x263633);}}}var _0x3606d2;return _0x380aa7[_0x3c41('0x71')]>0x0&&(_0x2dee42=!!this[_0x3c41('0x99')](_0x380aa7)||_0x2dee42),_0x2dee42;}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')][_0x3c41('0xcc')](_0xd79fc8=>{let _0xfdca99=!0x1;for(const _0x1eaba1 of _0x534b7c['model'][_0x3c41('0x23')][_0x3c41('0x45')]['getChanges']()){if(_0x3c41('0xd4')!=_0x1eaba1['type'])continue;const _0x4db876=_0x1eaba1[_0x3c41('0xb1')][_0x3c41('0x28')](_0x1eaba1[_0x3c41('0x80')]);if(_0x4db876['isAtEnd'])for(const _0x874c97 of this[_0x3c41('0xb2')][_0x3c41('0x8c')]()){if(_0x874c97[_0x3c41('0xf7')]||!_0x874c97[_0x3c41('0x29')])continue;if('formatBlock'!=_0x874c97[_0x3c41('0x140')])continue;const _0x12d53f=_0x874c97[_0x3c41('0x85')]();if(_0x12d53f['start'][_0x3c41('0x9f')]!=_0x12d53f[_0x3c41('0x78')]['parent']&&_0x12d53f[_0x3c41('0x78')][_0x3c41('0xbe')](_0x1eaba1['position'])){const _0x45bfe7=_0x534b7c['model'][_0x3c41('0x6c')](_0x12d53f[_0x3c41('0x109')],_0x4db876);_0xd79fc8[_0x3c41('0x6')](_0x874c97['getFirstMarker'](),{'range':_0x45bfe7}),_0xfdca99=!0x0;}}}return _0xfdca99;}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x7c')]['on']('update:suggestion',(_0xadd441,_0x2e012a,_0x16087a)=>{if(null==_0x16087a){const {id:_0x201009}=this['_splitMarkerName'](_0x2e012a['name']),_0x3271c1=this['_suggestions'][_0x3c41('0xc1')](_0x201009);_0x3271c1&&_0x3271c1[_0x3c41('0xcf')](_0x2e012a[_0x3c41('0x70')]);}}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['on']('change:data',()=>{const _0x13db48=Array[_0x3c41('0xe3')](_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['differ']['getChangedMarkers']())['filter'](_0x172e90=>_0x3c41('0x90')===this[_0x3c41('0xf9')](_0x172e90[_0x3c41('0x70')])[_0x3c41('0xe6')]);if(0x0===_0x13db48[_0x3c41('0x80')])return;_0x13db48['sort']((_0x3b8b1a,_0x6fb5ec)=>{const _0x56ad65=_0x3b8b1a[_0x3c41('0x123')][_0x3c41('0x74')],_0x5468d9=_0x6fb5ec['data'][_0x3c41('0x74')];return null===_0x56ad65&&null===_0x5468d9?0x0:null===_0x56ad65&&null!==_0x5468d9?-0x1:null!==_0x56ad65&&null===_0x5468d9?0x1:_0x56ad65[_0x3c41('0x109')][_0x3c41('0x13f')](_0x5468d9[_0x3c41('0x109')])?-0x1:0x1;});const _0x4357db=new Set(),_0x168812=new Set();for(const {name:_0x14aed1,data:_0x14514c}of _0x13db48){const {id:_0x1f0155}=this[_0x3c41('0xf9')](_0x14aed1);if(null===_0x14514c[_0x3c41('0x74')]){const _0xb8b0b=this[_0x3c41('0xc4')](_0x14aed1);_0x168812[_0x3c41('0x7b')](_0xb8b0b);}else{const _0x29e495=this['_suggestions'][_0x3c41('0xc1')](_0x1f0155);null!==_0x14514c[_0x3c41('0x13c')]||_0x29e495[_0x3c41('0x29')]?(_0x4357db[_0x3c41('0x7b')](_0x29e495[_0x3c41('0x20')]),_0x168812[_0x3c41('0x7b')](_0x29e495)):this[_0x3c41('0x18')](_0x29e495);}}_0x168812['size']>0x0&&this[_0x3c41('0xc9')](_0x168812);for(const _0x2fd383 of _0x4357db)this['fire'](_0x3c41('0x13b'),_0x2fd383);}),_0x534b7c[_0x3c41('0xd3')]['on'](_0x3c41('0x8e'),(_0x191441,_0x36a97c)=>{const _0x26529b=_0x36a97c[0x0];if(!this['_suggestions'][_0x3c41('0x71')])return;if(!_0x26529b[_0x3c41('0x3')])return;if(_0x26529b[_0x3c41('0x10d')][_0x3c41('0xb7')]||!_0x26529b[_0x3c41('0x10d')][_0x3c41('0xa4')])return;let _0x298d93,_0x18e41d;switch(_0x26529b[_0x3c41('0x140')]){case _0x3c41('0xd4'):_0x298d93=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x26529b['position']),_0x18e41d=_0x298d93[_0x3c41('0x28')](_0x26529b[_0x3c41('0x1a')]);break;case _0x3c41('0x13a'):_0x298d93=_0x534b7c[_0x3c41('0xd3')]['createPositionAt'](_0x26529b['splitPosition']),_0x18e41d=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x26529b[_0x3c41('0x118')]);break;case'move':_0x298d93=_0x534b7c[_0x3c41('0xd3')]['createPositionAt'](_0x26529b[_0x3c41('0x136')]),_0x18e41d=_0x298d93[_0x3c41('0x28')](_0x26529b['howMany']);break;default:return;}const _0x52ddc0=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x6c')](_0x298d93,_0x18e41d);_0x534b7c[_0x3c41('0xd3')]['change'](()=>{for(const {suggestion:_0x338fc0,meta:_0x3eef42}of this['_findSuggestions'](_0x52ddc0)){if(_0x338fc0[_0x3c41('0xf7')])continue;if(_0x3c41('0xf8')==_0x338fc0[_0x3c41('0x140')])continue;const _0x530550=_0x338fc0[_0x3c41('0x123')]&&_0x338fc0['data'][_0x3c41('0x125')];(_0x3c41('0x82')!=_0x338fc0['type']||_0x3c41('0x13a')==_0x26529b[_0x3c41('0x140')]&&!_0x530550)&&(_0x3eef42[_0x3c41('0x7f')]||_0x3c41('0xdf')==_0x338fc0[_0x3c41('0x140')]&&_0x3eef42[_0x3c41('0xfa')]||_0x338fc0['getFirstRange']()[_0x3c41('0x86')](_0x52ddc0)&&this[_0x3c41('0xd9')](_0x338fc0,_0x298d93,_0x18e41d));}});},{'priority':_0x3c41('0x87')}),_0x534b7c[_0x3c41('0xd3')]['on'](_0x3c41('0x66'),(_0xcdc238,_0x1924dd)=>{const _0xe3ce25=_0x1924dd[0x0],_0x7d7070=_0x1924dd[0x1];if(_0x7d7070&&_0x7d7070['forceDefaultExecution'])return;if(this[_0x3c41('0x11')])return;if(!this['trackChangesCommand'][_0x3c41('0x122')])return;if(_0xe3ce25['isCollapsed'])return;const _0x3b3893=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0xfe')],{start:_0x38469d,end:_0x2726aa}=_0xe3ce25['getFirstRange'](),_0x58b33e=_0x38469d[_0x3c41('0x101')]&&_0x3b3893[_0x3c41('0x30')](_0x38469d[_0x3c41('0x101')])?null:_0x3b3893[_0x3c41('0xab')](_0x38469d,_0x3c41('0x143')),_0x257c1f=_0x2726aa['nodeBefore']&&_0x3b3893[_0x3c41('0x30')](_0x2726aa[_0x3c41('0x3d')])?null:_0x3b3893[_0x3c41('0xab')](_0x2726aa,'backward'),_0x4c105c=_0x534b7c[_0x3c41('0xd3')]['createRange'](_0x58b33e?_0x58b33e['start']:_0x38469d,_0x257c1f?_0x257c1f[_0x3c41('0x78')]:_0x2726aa);_0x534b7c[_0x3c41('0xd3')]['change'](_0x597fa4=>{this[_0x3c41('0x5d')](_0x4c105c);const _0x1a89fb=_0x534b7c['model'][_0x3c41('0xfe')][_0x3c41('0xab')](_0x4c105c[_0x3c41('0x109')]);_0xe3ce25['is'](_0x3c41('0x4f'))?_0x597fa4['setSelection'](_0x1a89fb):_0xe3ce25[_0x3c41('0x41')](_0x1a89fb);}),_0xcdc238[_0x3c41('0x61')]();},{'priority':_0xa4659f[_0x3c41('0xd1')]+0xa}),_0x534b7c['model']['on']('insertContent',(_0x213975,_0x208817)=>{const _0x41b2c7=_0x208817[_0x208817[_0x3c41('0x80')]-0x1];_0x41b2c7&&_0x41b2c7[_0x3c41('0xe4')]||this[_0x3c41('0x11')]||this[_0x3c41('0x11d')][_0x3c41('0x122')]&&(_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x112')](()=>{let _0x558c10=_0x534b7c[_0x3c41('0xd3')]['insertContent'](_0x208817[0x0],_0x208817[0x1],_0x208817[0x2],{'forceDefaultExecution':!0x0});if(!_0x558c10)return;_0x213975[_0x3c41('0x13')]=_0x558c10[_0x3c41('0x42')]();const _0x3eeae6=_0x558c10[_0x3c41('0x78')][_0x3c41('0x3d')],_0x15261e=_0x534b7c['model'][_0x3c41('0xfe')];_0x3eeae6&&_0x15261e[_0x3c41('0x38')](_0x3eeae6)&&!_0x15261e[_0x3c41('0x116')](_0x3eeae6)&&(_0x558c10=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x6c')](_0x558c10['start'],_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x3eeae6,_0x3c41('0x78')))),this[_0x3c41('0x48')](_0x558c10);}),_0x213975[_0x3c41('0x61')]());},{'priority':'high'}),this[_0x3c41('0x35')][_0x3c41('0xc2')][_0x3c41('0x7b')]('trackChanges',this['trackChangesCommand']),this[_0x3c41('0x97')]('trackChanges');const _0x1ca2b7=new _0x2e3652(_0x534b7c,this[_0x3c41('0xb2')]);_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0xa1'),_0x1ca2b7),this['enableCommand'](_0x3c41('0xa1'));const _0x1414b0=new _0x3335a5(_0x534b7c,this['_suggestions']);_0x534b7c[_0x3c41('0xc2')]['add'](_0x3c41('0x1c'),_0x1414b0),this[_0x3c41('0x97')](_0x3c41('0x1c')),_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0x50'),new _0x19c964(_0x534b7c,_0x1ca2b7,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')]('acceptAllSuggestions'),_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0x72'),new _0x19c964(_0x534b7c,_0x1414b0,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x72')),_0x534b7c['commands'][_0x3c41('0x7b')](_0x3c41('0x144'),new _0x2f37ce(_0x534b7c,_0x1ca2b7,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x144')),_0x534b7c['commands'][_0x3c41('0x7b')]('discardSelectedSuggestions',new _0x2f37ce(_0x534b7c,_0x1414b0,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x12'));const _0x158eeb=_0x534b7c[_0x3c41('0x5')]['get'](_0x3c41('0x137'));this['listenTo'](_0x158eeb,_0x3c41('0xb9'),(_0x2bcd81,{threadId:_0x1e9f45})=>{const _0x2cc7bb=this['_suggestions'][_0x3c41('0xc1')](_0x1e9f45);_0x2cc7bb&&_0x2cc7bb[_0x3c41('0x43')]&&0x1===_0x2cc7bb[_0x3c41('0x43')][_0x3c41('0x80')]&&this[_0x3c41('0xf3')](_0x1e9f45,{'hasComments':!0x0});},{'priority':_0x3c41('0xf')}),this['listenTo'](_0x158eeb,_0x3c41('0x15'),(_0x48f8f3,{threadId:_0x2098d6})=>{const _0x4786bc=this[_0x3c41('0xb2')]['get'](_0x2098d6);_0x4786bc&&_0x4786bc[_0x3c41('0x43')]&&!_0x4786bc[_0x3c41('0x43')]['length']&&this[_0x3c41('0xf3')](_0x2098d6,{'hasComments':!0x1});},{'priority':_0x3c41('0xf')});}set[_0x3c41('0x77')](_0x3773a4){if(this['_adapter'])throw new _0x149c43('track-changes-adapter-already-set',this);this['_adapter']=_0x3773a4;}get[_0x3c41('0x77')](){return this[_0x3c41('0x114')];}['getSuggestions']({skipNotAttached:_0x45cf2a=!0x1,toJSON:_0x45ae6c=!0x1}={}){const _0x1577bb=[];for(const _0x349db3 of this[_0x3c41('0xb2')][_0x3c41('0x8c')]())_0x45cf2a&&!_0x349db3[_0x3c41('0x29')]||_0x1577bb[_0x3c41('0xea')](_0x349db3);return _0x45ae6c?_0x1577bb['map'](_0x3098f5=>_0x3098f5[_0x3c41('0xdc')]()):_0x1577bb;}[_0x3c41('0x9')](_0x26ea28){const _0x4c0767=this[_0x3c41('0xb2')]['get'](_0x26ea28);if(!_0x4c0767)throw new _0x149c43(_0x3c41('0x130'),this);return _0x4c0767;}['hasSuggestion'](_0x5e817f){return this['_suggestions']['has'](_0x5e817f);}['addSuggestionData'](_0xa4d500){const {authorId:_0x544359,id:_0x5e6e30,attributes:_0x1f75a3}=_0xa4d500,[_0x279f8d,_0xc0548]=_0xa4d500['type'][_0x3c41('0x13a')](':'),_0x2b2975=this[_0x3c41('0xb2')]['get'](_0x5e6e30)||this[_0x3c41('0x10b')](_0x279f8d,_0xc0548,_0x5e6e30,_0x544359,_0x1f75a3);if(this[_0x3c41('0x75')](_0x2b2975),this[_0x3c41('0x119')](_0x2b2975,_0x279f8d,_0xc0548||null,_0x544359),_0x2b2975['createdAt']=_0xa4d500[_0x3c41('0x139')],_0x2b2975[_0x3c41('0x2d')]=!0x0,_0x1f75a3&&_0x1f75a3['@external']){const _0x9a1c45=_0x1f75a3[_0x3c41('0x22')],_0x29dbe8=this[_0x3c41('0xd')](_0x9a1c45['authorName']);_0x2b2975[_0x3c41('0x6a')]=_0x9a1c45[_0x3c41('0x139')],_0x2b2975[_0x3c41('0x6e')]=_0x29dbe8,_0x2b2975[_0x3c41('0x6b')]=!0x0;}else _0x2b2975[_0x3c41('0x6a')]=_0xa4d500[_0x3c41('0x139')];switch(_0xa4d500[_0x3c41('0x123')]&&(_0x2b2975[_0x3c41('0x123')]=_0xa4d500['data']),_0xa4d500[_0x3c41('0x5a')]&&(_0x2b2975[_0x3c41('0x5a')]=_0xa4d500[_0x3c41('0x5a')]),this[_0x3c41('0x114')]&&this[_0x3c41('0x114')][_0x3c41('0x131')]||(_0x2b2975[_0x3c41('0x73')]=!0x0),this[_0x3c41('0x138')][_0x3c41('0xc1')](_0x2b2975)){case _0x3c41('0xac'):this['_suggestionState'][_0x3c41('0xce')](_0x2b2975,'dataReady');break;case _0x3c41('0x53'):_0x2b2975[_0x3c41('0x29')]?(this[_0x3c41('0xc9')](new Set([_0x2b2975])),this['_joinWithAdjacentSuggestions'](new Set([_0x2b2975])),this[_0x3c41('0x138')][_0x3c41('0xce')](_0x2b2975,'ready'),this['fire'](_0x3c41('0x52'),_0x2b2975)):this[_0x3c41('0x138')][_0x3c41('0xce')](_0x2b2975,'removed');}return _0x2b2975;}[_0x3c41('0xa1')](_0x30256e){this[_0x3c41('0xe4')](()=>{this[_0x3c41('0x35')]['model'][_0x3c41('0x112')](()=>{for(const _0x20249d of _0x30256e[_0x3c41('0x127')]())_0x20249d['accept']();});});}[_0x3c41('0x1c')](_0x4c77a7){this[_0x3c41('0xe4')](()=>{this['editor'][_0x3c41('0xd3')][_0x3c41('0x112')](()=>{for(const _0x22e226 of _0x4c77a7[_0x3c41('0x127')]())_0x22e226[_0x3c41('0xf4')]();});});}[_0x3c41('0x97')](_0x28bb2b,_0x410629){const _0x1ca036=this[_0x3c41('0x35')]['commands'][_0x3c41('0xc1')](_0x28bb2b);if(!_0x1ca036)throw new _0x149c43('track-changes-command-not-found',this,{'commandName':_0x28bb2b});this[_0x3c41('0x4b')][_0x3c41('0x7b')](_0x1ca036),_0x410629&&_0x1ca036['on'](_0x3c41('0x3f'),(_0x3a213b,_0x462fe8)=>{this[_0x3c41('0x11d')]['value']&&(this[_0x3c41('0x11')]||_0x462fe8[_0x3c41('0x80')]>0x0&&_0x462fe8[_0x462fe8[_0x3c41('0x80')]-0x1]&&_0x462fe8[_0x462fe8[_0x3c41('0x80')]-0x1][_0x3c41('0xe4')]||(_0x3a213b[_0x3c41('0x13')]=_0x410629((..._0x44d8e2)=>_0x1ca036[_0x3c41('0x3f')](..._0x44d8e2,{'forceDefaultExecution':!0x0}),..._0x462fe8),_0x3a213b['stop']()));},{'priority':'high'});}[_0x3c41('0xe4')](_0x2b5190){let _0x37903a,_0x4b861e;const _0x206384=this[_0x3c41('0x11')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x37903a=_0x2b5190();}catch(_0x250b34){_0x4b861e=_0x250b34;}return _0x206384||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4b861e&&_0x149c43['rethrowUnexpectedError'](_0x4b861e,this),_0x37903a;}[_0x3c41('0x48')](_0x8b00b5,_0x27f5bf=null,_0x2a62ef={}){if(_0x8b00b5[_0x3c41('0x142')])return null;const _0x196699=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'];for(const {suggestion:_0xabe631,meta:_0x38c81c}of this['_findSuggestions'](_0x8b00b5,_0x3c41('0xdf')))if(_0x38c81c[_0x3c41('0xfa')]){if(!_0x38c81c['isNextTo']){if(_0x38c81c[_0x3c41('0x7f')]){if(!this[_0x3c41('0x128')]||!Ot(_0xabe631,_0x2a62ef))continue;return _0xabe631;}if(Ot(_0xabe631,_0x2a62ef))return _0xabe631;this['_breakSuggestionMarker'](_0xabe631,_0x8b00b5[_0x3c41('0x109')],_0x8b00b5[_0x3c41('0x78')]);break;}if(_0x27f5bf==_0xabe631[_0x3c41('0x3a')]&&Ot(_0xabe631,_0x2a62ef)){const _0x346388=_0xabe631[_0x3c41('0x85')]();return _0x346388[_0x3c41('0x109')][_0x3c41('0xbe')](_0x8b00b5[_0x3c41('0x78')])?this[_0x3c41('0x13d')](_0xabe631,this[_0x3c41('0x115')]['createRange'](_0x8b00b5[_0x3c41('0x109')],_0x346388[_0x3c41('0x78')])):this[_0x3c41('0x13d')](_0xabe631,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x346388[_0x3c41('0x109')],_0x8b00b5[_0x3c41('0x78')])),_0xabe631;}}const _0x14fa15=_0x47dbea(),_0x585c97=_0x196699['id'],_0x2fe527=_0x27f5bf?_0x3c41('0xca')+_0x27f5bf:_0x3c41('0xdf'),_0x5476c4=this[_0x3c41('0x69')]({'id':_0x14fa15,'type':_0x2fe527,'createdAt':new Date(),'authorId':_0x585c97,'attributes':_0x2a62ef});return this[_0x3c41('0x9b')](_0x2fe527,_0x14fa15,_0x585c97,_0x8b00b5),_0x5476c4;}[_0x3c41('0xb8')](_0x28b89b,_0x17019d='multi',_0x75a660={}){const _0x4dd1f7=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'],_0x125fbd=this[_0x3c41('0x133')][_0x3c41('0x60')]('insertion',_0x17019d,_0x3c41('0x17'));for(const _0x4f2cfc of this[_0x3c41('0xa7')]())if(_0x4f2cfc['author']['id']==_0x4dd1f7['id']&&'insertion'==_0x4f2cfc[_0x3c41('0x140')]&&_0x4f2cfc[_0x3c41('0x3a')]==_0x17019d&&Ot(_0x4f2cfc,_0x75a660)&&(_0x125fbd(_0x4f2cfc[_0x3c41('0xeb')](),_0x28b89b)||_0x125fbd(_0x28b89b,_0x4f2cfc[_0x3c41('0xeb')]()))){for(const _0x49160a of _0x28b89b)_0x4f2cfc[_0x3c41('0x120')](_0x49160a);return _0x4f2cfc;}for(const {suggestion:_0x12b21a,meta:_0x1f4c8f}of this['_findSuggestions'](_0x28b89b,_0x3c41('0xdf'))){if(!_0x1f4c8f[_0x3c41('0xfa')])continue;if(!this[_0x3c41('0x128')]&&_0x1f4c8f[_0x3c41('0x7f')])continue;if(!Ot(_0x12b21a,_0x75a660))continue;let _0x58e14d=!0x0;for(const _0x26f2a1 of _0x12b21a['getRanges']())for(const _0x5d4738 of _0x28b89b)if(!_0x26f2a1[_0x3c41('0x86')](_0x5d4738)){_0x58e14d=!0x1;break;}if(_0x58e14d)return _0x12b21a;}const _0x59a9e6=_0x47dbea(),_0xa6d0e0=_0x4dd1f7['id'],_0x6db77b=_0x3c41('0xca')+_0x17019d,_0xe50887=this[_0x3c41('0x69')]({'id':_0x59a9e6,'type':_0x6db77b,'createdAt':new Date(),'authorId':_0xa6d0e0,'attributes':_0x75a660});for(const _0x23103b of _0x28b89b)this['_addSuggestionMarker'](_0x6db77b,_0x59a9e6,_0xa6d0e0,_0x23103b,_0x32734f[_0x3c41('0xc5')]());return _0xe50887;}[_0x3c41('0xe0')](_0x320ef9,_0x40b9bf,_0x5537b7=null,_0x445bad={}){if(_0x5537b7=_0x5537b7||Nt(_0x40b9bf),_0x320ef9[_0x3c41('0x142')])return null;if(_0x3c41('0x102')===this[_0x3c41('0xba')]){const _0x28d153=this[_0x3c41('0x133')][_0x3c41('0x60')]('formatInline',_0x5537b7,_0x3c41('0x81'));return this['forceDefaultExecution'](()=>_0x28d153([_0x320ef9],_0x40b9bf,_0x445bad)),null;}const _0x39d8ba=this[_0x3c41('0x35')][_0x3c41('0x5')]['get'](_0x3c41('0x34'))['me'],_0x347bb7=[];if(_0x3c41('0x11a')!==this[_0x3c41('0xba')])for(const {suggestion:_0x15fa94,meta:_0x389071}of this[_0x3c41('0xe1')](_0x320ef9,_0x3c41('0xdf')))_0x389071[_0x3c41('0xfa')]&&!_0x389071[_0x3c41('0x1')]&&_0x347bb7[_0x3c41('0xea')](..._0x15fa94[_0x3c41('0xeb')]());const _0x5438cb=function(_0x12c90e,_0xba329e){const _0x41f539=[];for(const _0x3e50b9 of _0xba329e){const _0x308412=_0x12c90e['getIntersection'](_0x3e50b9);_0x308412&&_0x41f539[_0x3c41('0xea')](_0x308412);}return _0x41f539;}(_0x320ef9,_0x347bb7),_0x40068a=function(_0x1b18e8,_0x3664ed){const _0x564d70=[_0x1b18e8];for(const _0x1643bc of _0x3664ed){let _0x1dea24=0x0;for(;_0x1dea24<_0x564d70['length'];){const _0x1ac02e=_0x564d70[_0x1dea24]['getDifference'](_0x1643bc);_0x564d70[_0x3c41('0xa0')](_0x1dea24,0x1,..._0x1ac02e),_0x1dea24+=_0x1ac02e[_0x3c41('0x80')];}}return _0x564d70;}(_0x320ef9,_0x347bb7);_0x5438cb[_0x3c41('0x80')]&&this[_0x3c41('0x115')][_0x3c41('0x112')](()=>{for(const _0x37d66b of _0x5438cb){const _0x399bc7=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0xf8'),_0x5537b7,_0x3c41('0x81'));this['forceDefaultExecution'](()=>_0x399bc7([_0x37d66b],_0x40b9bf,_0x445bad));}});for(const _0x4b7eeb of _0x40068a){let _0x28ec96=null,_0x5de4d5=_0x4b7eeb[_0x3c41('0x109')],_0x1aff71=_0x4b7eeb[_0x3c41('0x78')];for(const {suggestion:_0x2255bc,meta:_0x4cb0a5}of this[_0x3c41('0xe1')](_0x4b7eeb,_0x3c41('0xf8'))){if(!_0x4cb0a5['isOwn'])continue;if(_0x2255bc[_0x3c41('0x3a')]!=_0x5537b7)continue;if(!Ot(_0x2255bc,_0x445bad))continue;const _0x97d2a7=_0x2255bc[_0x3c41('0x85')]();if(_0x97d2a7[_0x3c41('0x86')](_0x4b7eeb,!0x0))return null;_0x5de4d5=_0x5de4d5['isBefore'](_0x97d2a7[_0x3c41('0x109')])?_0x5de4d5:_0x97d2a7[_0x3c41('0x109')],_0x1aff71=_0x1aff71[_0x3c41('0xfd')](_0x97d2a7['end'])?_0x1aff71:_0x97d2a7[_0x3c41('0x78')],_0x28ec96?_0x97d2a7[_0x3c41('0x109')][_0x3c41('0x13f')](_0x28ec96['getFirstRange']()[_0x3c41('0x109')])?(_0x28ec96['removeMarkers'](),_0x28ec96=_0x2255bc):_0x2255bc['removeMarkers']():_0x28ec96=_0x2255bc;}const _0xd97eb5=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5de4d5,_0x1aff71);if(_0x28ec96)this[_0x3c41('0x13d')](_0x28ec96,_0xd97eb5);else{const _0x46e822=_0x47dbea(),_0x532d20=_0x39d8ba['id'];this[_0x3c41('0x69')]({'id':_0x46e822,'type':_0x3c41('0x5e')+_0x5537b7,'data':_0x40b9bf,'createdAt':new Date(),'authorId':_0x532d20,'attributes':_0x445bad}),this[_0x3c41('0x9b')]('formatInline:'+_0x5537b7,_0x46e822,_0x532d20,_0xd97eb5);}}return null;}['markBlockFormat'](_0xdefe38,_0x33a088,_0x836a91=[],_0x14eba4=null,_0xa46b3e={}){_0x33a088[_0x3c41('0xc8')]||(_0x33a088[_0x3c41('0xc8')]=_0x33a088[_0x3c41('0x98')]),_0x33a088[_0x3c41('0x125')]=_0xdefe38['is'](_0x3c41('0x64')),_0x14eba4=_0x14eba4||Nt(_0x33a088);const _0x59bd67=_0x836a91[_0x3c41('0x93')](_0x2d994d=>jt(_0x2d994d,this[_0x3c41('0x115')])),_0x3e8c58=_0xdefe38['is'](_0x3c41('0x64'))?_0xdefe38:jt(_0xdefe38,this['_model']);if('never'===this[_0x3c41('0xba')]){const _0x194045=this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3c41('0x82'),_0x14eba4,'accept');return this['forceDefaultExecution'](()=>_0x194045([_0x3e8c58],_0x33a088,_0xa46b3e)),null;}_0x59bd67[_0x3c41('0xea')](_0x3e8c58);let _0x10f81b=!0x0;for(const _0x2ef409 of _0x59bd67)if(!this[_0x3c41('0x58')](_0x2ef409)){_0x10f81b=!0x1;break;}if(_0x10f81b&&'always'!==this[_0x3c41('0xba')]){const _0x534654=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x82'),_0x14eba4,_0x3c41('0x81'));return this[_0x3c41('0xe4')](()=>_0x534654([_0x3e8c58],_0x33a088,_0xa46b3e)),null;}let _0x410f7a=null,_0x2a7081=_0x3e8c58[_0x3c41('0x109')],_0x596c62=_0x3e8c58['end'];for(const {suggestion:_0x358793,meta:_0x2fa085}of this['_findSuggestions'](_0x3e8c58,'formatBlock')){if(!_0x2fa085[_0x3c41('0xfa')])continue;if(_0x2fa085[_0x3c41('0x4c')]||_0x2fa085[_0x3c41('0x7f')]||_0x2fa085['isInsideObject'])continue;if(_0x358793[_0x3c41('0x123')][_0x3c41('0xc8')]!=_0x33a088['formatGroupId'])continue;if(!Ot(_0x358793,_0xa46b3e))continue;const _0x438ce2=_0x358793[_0x3c41('0x85')]();if(_0x358793['subType']==_0x14eba4){if(_0x438ce2['containsRange'](_0x3e8c58,!0x0))return null;_0x2a7081=_0x2a7081[_0x3c41('0x13f')](_0x438ce2[_0x3c41('0x109')])?_0x2a7081:_0x438ce2[_0x3c41('0x109')],_0x596c62=_0x596c62[_0x3c41('0xfd')](_0x438ce2[_0x3c41('0x78')])?_0x596c62:_0x438ce2[_0x3c41('0x78')],_0x410f7a?_0x438ce2['start'][_0x3c41('0x13f')](_0x410f7a['getFirstRange']()[_0x3c41('0x109')])?(_0x410f7a['removeMarkers'](),_0x410f7a=_0x358793):_0x358793[_0x3c41('0xd7')]():_0x410f7a=_0x358793;}else{const _0x3fac89=_0x3e8c58[_0x3c41('0xcd')](_0x438ce2);this[_0x3c41('0x2a')](_0x358793,_0x3fac89);}}const _0x57292f=this[_0x3c41('0x35')][_0x3c41('0x5')]['get'](_0x3c41('0x34'))['me'],_0x212de3=_0x47dbea(),_0x50145d=_0x57292f['id'];if(_0x410f7a)return this[_0x3c41('0x13d')](_0x410f7a,this['_model']['createRange'](_0x2a7081,_0x596c62)),_0x410f7a;{const _0x3b17df=this['_setSuggestionData']({'id':_0x212de3,'type':_0x3c41('0x6d')+_0x14eba4,'data':_0x33a088,'createdAt':new Date(),'authorId':_0x50145d,'attributes':_0xa46b3e});return this[_0x3c41('0x9b')](_0x3c41('0x6d')+_0x14eba4,_0x212de3,_0x50145d,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x2a7081,_0x596c62)),_0x3b17df;}}[_0x3c41('0x134')](_0x6d2e0c,_0x39f9c0,_0x492dcc=[],_0x50aabb=null,_0x42e290={}){_0x39f9c0['formatGroupId']||(_0x39f9c0['formatGroupId']=_0x39f9c0['commandName']);const _0x8ee0fc=_0x6d2e0c[0x0];_0x39f9c0[_0x3c41('0x125')]=_0x8ee0fc['is'](_0x3c41('0x64')),_0x50aabb=_0x50aabb||Nt(_0x39f9c0);const _0xebf0e8=_0x492dcc[_0x3c41('0x93')](_0xc00508=>jt(_0xc00508,this[_0x3c41('0x115')])),_0x55a70f=_0x8ee0fc['is'](_0x3c41('0x64'))?_0x6d2e0c:_0x6d2e0c[_0x3c41('0x93')](_0x5a81ff=>jt(_0x5a81ff,this[_0x3c41('0x115')]));if('never'===this['_trackFormatChanges']){const _0x5bebde=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x81'));return this['forceDefaultExecution'](()=>_0x5bebde(_0x55a70f,_0x39f9c0,_0x42e290)),null;}_0xebf0e8[_0x3c41('0xea')](..._0x55a70f);let _0x446a7c=!0x0;for(const _0x44a7fc of _0xebf0e8)if(!this['_rangeIsInLocalUserInsertion'](_0x44a7fc)){_0x446a7c=!0x1;break;}if(_0x446a7c&&'always'!==this[_0x3c41('0xba')]){const _0x45f8d7=this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x81'));return this[_0x3c41('0xe4')](()=>_0x45f8d7(_0x55a70f,_0x39f9c0,_0x42e290)),null;}const _0x2b9731=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')]('Users')['me'];for(const _0x3e18a1 of this['getSuggestions']()){if(_0x3e18a1[_0x3c41('0x6e')]['id']!=_0x2b9731['id'])continue;if(_0x3c41('0x82')!=_0x3e18a1[_0x3c41('0x140')]||_0x3e18a1['data'][_0x3c41('0xc8')]!=_0x39f9c0[_0x3c41('0xc8')])continue;if(!Ot(_0x3e18a1,_0x42e290))continue;const _0x3a1154=_0x3e18a1['subType']==_0x50aabb;for(let _0x4632df=0x0;_0x4632df<_0x55a70f['length'];_0x4632df++){const _0x3b8568=_0x55a70f[_0x4632df];for(const _0x35a02b of _0x3e18a1[_0x3c41('0x3e')]()){const _0x566528=_0x35a02b['getRange']();if(_0x3b8568[_0x3c41('0xbe')](_0x566528)){_0x3a1154?(_0x55a70f[_0x3c41('0xa0')](_0x4632df,0x1),_0x4632df--):_0x3e18a1[_0x3c41('0x103')](_0x35a02b[_0x3c41('0x70')]);break;}}}}if(0x0==_0x55a70f['length'])return null;const _0x193e6b=this['_suggestionFactory'][_0x3c41('0x60')](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x17'));for(const _0x171d93 of this[_0x3c41('0xa7')]())if(_0x171d93[_0x3c41('0x6e')]['id']==_0x2b9731['id']&&'formatBlock'==_0x171d93[_0x3c41('0x140')]&&_0x171d93[_0x3c41('0x123')][_0x3c41('0xc8')]==_0x39f9c0[_0x3c41('0xc8')]&&_0x171d93[_0x3c41('0x3a')]==_0x50aabb&&Ot(_0x171d93,_0x42e290)&&(_0x193e6b(_0x171d93[_0x3c41('0xeb')](),_0x55a70f)||_0x193e6b(_0x55a70f,_0x171d93[_0x3c41('0xeb')]()))){for(const _0x56fca3 of _0x55a70f)_0x171d93['addRange'](_0x56fca3);return _0x171d93;}const _0x352fa8=_0x47dbea(),_0x5a0554=_0x2b9731['id'],_0xc21d2e=_0x3c41('0x6d')+_0x50aabb,_0x3d3072=this[_0x3c41('0x69')]({'id':_0x352fa8,'type':_0xc21d2e,'data':_0x39f9c0,'createdAt':new Date(),'authorId':_0x5a0554,'attributes':_0x42e290});for(const _0x2cf681 of _0x55a70f)this[_0x3c41('0x9b')](_0xc21d2e,_0x352fa8,_0x5a0554,_0x2cf681,_0x32734f['getMultiRangeId']());return _0x3d3072;}[_0x3c41('0x5d')](_0x5e8758,_0x37ee87=null,_0x1c0238={}){if(_0x5e8758[_0x3c41('0x142')])return null;const _0x227e01=this[_0x3c41('0x35')]['plugins'][_0x3c41('0xc1')](_0x3c41('0x34'))['me'],_0x308df1=new _0xe5a593(_0x5e8758[_0x3c41('0x109')],_0x5e8758[_0x3c41('0x78')]);for(const {suggestion:_0x509fd5,meta:_0x55ae66}of this['_findSuggestions'](_0x308df1,_0x3c41('0xdf')))if(_0x55ae66['isOwn']&&!_0x55ae66[_0x3c41('0x4c')]){if(_0x509fd5[_0x3c41('0xf7')]){const _0x2b7971=_0x509fd5['getRanges']()[_0x3c41('0x59')](_0x4d7e06=>_0x3c41('0x37')!=_0x4d7e06[_0x3c41('0x10e')][_0x3c41('0xc')]);_0x2b7971[_0x3c41('0xa9')](_0x1c3b91=>_0x308df1[_0x3c41('0x86')](_0x1c3b91,!0x0))&&_0x509fd5['discard']();if(_0x2b7971[_0x3c41('0x12d')](_0x44b7ea=>_0x44b7ea[_0x3c41('0x86')](_0x308df1,!0x0))){const _0x3a6b2e=this[_0x3c41('0x133')]['getSuggestionCallback']('deletion',_0x37ee87,'accept');return this[_0x3c41('0xe4')](()=>_0x3a6b2e([_0x308df1],null,_0x1c0238)),null;}}else{const _0x1dcace=_0x308df1[_0x3c41('0xcd')](_0x509fd5[_0x3c41('0x85')]());null!==_0x1dcace&&_0x509fd5[_0x3c41('0xef')]([_0x1dcace],null,_0x1c0238);}}if(_0x308df1[_0x3c41('0x111')](),_0x308df1[_0x3c41('0x142')]||_0x3c41('0x37')==_0x308df1[_0x3c41('0x10e')]['rootName'])return null;let _0x26c2f9=null,_0x21b2d4=_0x308df1[_0x3c41('0x109')],_0x59e8aa=_0x308df1[_0x3c41('0x78')];const _0x329460=this[_0x3c41('0xe1')](_0x308df1,_0x3c41('0x1f'));for(const {suggestion:_0x1dc60a,meta:_0x15e034}of _0x329460){const _0x19557e=this['_model']['createRange'](_0x21b2d4,_0x59e8aa);if(_0x15e034['isOwn']&&(this[_0x3c41('0x128')]||!_0x15e034[_0x3c41('0x7f')]&&!_0x15e034[_0x3c41('0x1')])){if(_0x1dc60a[_0x3c41('0xf7')]){if(!Ot(_0x1dc60a,_0x1c0238))continue;let _0x4646d5=!0x0;for(const _0x36e673 of _0x1dc60a[_0x3c41('0xeb')]()){if(_0x36e673[_0x3c41('0x86')](_0x19557e,!0x0))return _0x1dc60a;_0x19557e['containsRange'](_0x36e673)||(_0x4646d5=!0x1);}_0x4646d5&&_0x1dc60a['discard']();}else{const _0x168231=_0x1dc60a[_0x3c41('0x85')]();if(_0x168231[_0x3c41('0x86')](_0x19557e,!0x0))return _0x1dc60a;if(!Ot(_0x1dc60a,_0x1c0238)){_0x19557e['containsRange'](_0x168231)?_0x1dc60a['removeMarkers']():_0x168231[_0x3c41('0xd0')](_0x21b2d4)?_0x21b2d4=_0x168231['end']:_0x168231[_0x3c41('0xd0')](_0x59e8aa)&&(_0x59e8aa=_0x168231[_0x3c41('0x109')]);continue;}_0x21b2d4=_0x21b2d4[_0x3c41('0x13f')](_0x168231[_0x3c41('0x109')])?_0x21b2d4:_0x168231[_0x3c41('0x109')],_0x59e8aa=_0x59e8aa[_0x3c41('0xfd')](_0x168231[_0x3c41('0x78')])?_0x59e8aa:_0x168231[_0x3c41('0x78')],_0x1c0238=Object[_0x3c41('0x4a')]({},_0x1dc60a[_0x3c41('0x5a')]),_0x26c2f9?_0x168231[_0x3c41('0x109')][_0x3c41('0x13f')](_0x26c2f9[_0x3c41('0x85')]()[_0x3c41('0x109')])?(_0x26c2f9[_0x3c41('0xd7')](),_0x26c2f9=_0x1dc60a):_0x1dc60a[_0x3c41('0xd7')]():_0x26c2f9=_0x1dc60a;}}}if(_0x26c2f9)return this[_0x3c41('0x13d')](_0x26c2f9,this[_0x3c41('0x115')]['createRange'](_0x21b2d4,_0x59e8aa)),_0x26c2f9;{const _0x1b2a6a=_0x47dbea(),_0x4d1c99=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x21b2d4,_0x59e8aa),_0xb3ffa2=_0x227e01['id'],_0x3f10c1=_0x37ee87?'deletion:'+_0x37ee87:'deletion',_0x5e5309=this[_0x3c41('0x69')]({'id':_0x1b2a6a,'type':_0x3f10c1,'createdAt':new Date(),'authorId':_0xb3ffa2,'attributes':_0x1c0238});return this[_0x3c41('0x9b')](_0x3f10c1,_0x1b2a6a,_0xb3ffa2,_0x4d1c99),_0x5e5309;}}[_0x3c41('0x96')](_0x219f1b,_0x343987=_0x3c41('0xf5'),_0x2bbafe={}){const _0x5aadec=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')]('Users')['me'],_0x92769b=_0x219f1b[_0x3c41('0x93')](_0x4ff373=>new _0xe5a593(_0x4ff373['start'],_0x4ff373[_0x3c41('0x78')])),_0x2aeb5f=new Set();for(const {suggestion:_0x226cf3,meta:_0x321217}of this['_findSuggestions'](_0x92769b,_0x3c41('0xdf')))_0x321217[_0x3c41('0xfa')]&&!_0x321217[_0x3c41('0x4c')]&&_0x2aeb5f[_0x3c41('0x7b')](_0x226cf3);for(const _0xb00f14 of _0x2aeb5f)if(_0xb00f14[_0x3c41('0xf7')]){const _0x1ba51d=_0xb00f14[_0x3c41('0xeb')]();(!_0xb00f14[_0x3c41('0x5a')]||!_0xb00f14[_0x3c41('0x5a')][_0x3c41('0x100')])&&(_0x1ba51d[_0x3c41('0xa9')](_0x5a0b13=>_0x92769b[_0x3c41('0x12d')](_0x27b815=>_0x27b815['containsRange'](_0x5a0b13,!0x0)))&&_0xb00f14[_0x3c41('0xf4')]());if(_0x92769b[_0x3c41('0xa9')](_0x4a1392=>_0x1ba51d[_0x3c41('0x12d')](_0x53e4b3=>_0x53e4b3['containsRange'](_0x4a1392,!0x0)))){const _0x30b96b=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x1f'),_0x343987,'accept');return this[_0x3c41('0xe4')](()=>_0x30b96b(_0x219f1b,null,_0x2bbafe)),null;}}else{const _0xb74c37=_0xb00f14['getFirstRange']();_0x92769b[_0x3c41('0x12d')](_0x4b9027=>_0x4b9027[_0x3c41('0x86')](_0xb74c37,!0x0))&&_0xb00f14[_0x3c41('0xf4')]();if(_0x92769b['every'](_0x8d4b27=>_0xb74c37['containsRange'](_0x8d4b27,!0x0))){const _0x126a3e=this['_suggestionFactory'][_0x3c41('0x60')](_0x3c41('0x1f'),_0x343987,'accept');return this[_0x3c41('0xe4')](()=>_0x126a3e(_0x92769b,null,_0x2bbafe)),null;}}const _0xf18283=this[_0x3c41('0x133')]['getSuggestionCallback']('deletion',_0x343987,_0x3c41('0x17'));let _0x11c605=null;for(const _0xeb3a20 of this[_0x3c41('0xa7')]())if(_0xeb3a20[_0x3c41('0x6e')]['id']==_0x5aadec['id']&&_0xeb3a20[_0x3c41('0x29')]&&_0x3c41('0x1f')==_0xeb3a20['type']&&_0xeb3a20[_0x3c41('0x3a')]==_0x343987&&Ot(_0xeb3a20,_0x2bbafe)&&(_0xf18283(_0xeb3a20['getRanges'](),_0x92769b)||_0xf18283(_0x92769b,_0xeb3a20[_0x3c41('0xeb')]()))){if(_0x11c605){if(_0xeb3a20[_0x3c41('0x43')]&&_0xeb3a20[_0x3c41('0x43')][_0x3c41('0x80')])continue;for(const _0x36cd38 of _0xeb3a20[_0x3c41('0xeb')]())_0x11c605[_0x3c41('0x7')](_0x36cd38)||_0x11c605[_0x3c41('0x120')](_0x36cd38);_0xeb3a20[_0x3c41('0xd7')]();}else{_0x11c605=_0xeb3a20;for(const _0x2bd602 of _0x92769b)_0xeb3a20[_0x3c41('0x7')](_0x2bd602)||_0xeb3a20[_0x3c41('0x120')](_0x2bd602);}}if(_0x11c605)return _0x11c605;_0x2aeb5f[_0x3c41('0x8d')]();for(const {suggestion:_0x45e54a,meta:_0x2d3dec}of this[_0x3c41('0xe1')](_0x92769b,'deletion'))_0x2d3dec[_0x3c41('0xfa')]&&(this[_0x3c41('0x128')]||!_0x2d3dec[_0x3c41('0x7f')]&&!_0x2d3dec['isInsideObject'])&&Ot(_0x45e54a,_0x2bbafe)&&_0x2aeb5f[_0x3c41('0x7b')](_0x45e54a);for(const _0x4adc0f of _0x2aeb5f){const _0x17bf39=_0x4adc0f['getRanges']();if(!_0x2bbafe||!_0x2bbafe[_0x3c41('0x100')]){if(_0x92769b[_0x3c41('0xa9')](_0x284b0f=>_0x17bf39[_0x3c41('0x12d')](_0x72ce1a=>_0x72ce1a[_0x3c41('0x86')](_0x284b0f,!0x0))))return _0x4adc0f;}(!_0x4adc0f[_0x3c41('0x5a')]||!_0x4adc0f[_0x3c41('0x5a')][_0x3c41('0x100')])&&(_0x17bf39[_0x3c41('0xa9')](_0x562650=>_0x92769b[_0x3c41('0x12d')](_0x1dd516=>_0x1dd516[_0x3c41('0x86')](_0x562650,!0x0)))&&_0x4adc0f['discard']());}const _0x4fc84c=_0x47dbea(),_0x59c8a5=_0x5aadec['id'],_0x24ca0b=_0x3c41('0xf2')+_0x343987,_0x30b438=this[_0x3c41('0x69')]({'id':_0x4fc84c,'type':_0x24ca0b,'createdAt':new Date(),'authorId':_0x59c8a5,'attributes':_0x2bbafe});for(const _0x1f4ce3 of _0x92769b)_0x1f4ce3[_0x3c41('0x111')](),_0x1f4ce3[_0x3c41('0x142')]||_0x3c41('0x37')==_0x1f4ce3[_0x3c41('0x10e')][_0x3c41('0xc')]||this['_addSuggestionMarker'](_0x24ca0b,_0x4fc84c,_0x59c8a5,_0x1f4ce3,_0x32734f['getMultiRangeId']());return _0x30b438;}[_0x3c41('0x13d')](_0x35d5df,_0x21be79){const _0x37e25d=_0x35d5df[_0x3c41('0xcb')]();this[_0x3c41('0x115')]['change'](_0x4318df=>{_0x4318df[_0x3c41('0x6')](_0x37e25d,{'range':_0x21be79});});}[_0x3c41('0x75')](_0x5bcf4d){const _0x68dfcc=_0x5bcf4d['id'],_0x1fc068=this['editor'][_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0xb4'));this[_0x3c41('0x8f')][_0x3c41('0x12e')](_0x68dfcc)||this[_0x3c41('0x8f')][_0x3c41('0x10')]({'channelId':_0x1fc068,'threadId':_0x68dfcc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x257673=this[_0x3c41('0x8f')][_0x3c41('0x57')](_0x68dfcc);_0x257673[_0x3c41('0x8b')](_0x3c41('0x11c')),_0x257673[_0x3c41('0x11c')]=!0x1,_0x5bcf4d[_0x3c41('0x43')]=_0x257673;}[_0x3c41('0x119')](_0x117cd3,_0x412879,_0x41329b,_0x35dd3e){if(_0x117cd3[_0x3c41('0x140')]!=_0x412879||_0x117cd3[_0x3c41('0x3a')]!=_0x41329b||_0x117cd3['creator']['id']!=_0x35dd3e)throw this[_0x3c41('0x35')][_0x3c41('0x8')](_0x3c41('0x104')),new _0x149c43(_0x3c41('0x104'),this);}['_cutOutSuggestionMarker'](_0x4332aa,_0x4b8dba){const _0x455579=_0x4332aa[_0x3c41('0x85')]();if(_0x4b8dba[_0x3c41('0xbe')](_0x455579))_0x4332aa[_0x3c41('0xd7')]();else{if(_0x455579[_0x3c41('0x86')](_0x4b8dba)){const _0x568f4d=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba['start'][_0x3c41('0x3d')],_0x3c41('0x78'));this[_0x3c41('0x13d')](_0x4332aa,this['_model'][_0x3c41('0x6c')](_0x455579[_0x3c41('0x109')],_0x568f4d));const _0x388b06=_0x47dbea(),_0x1d5d6f=_0x4332aa['creator']['id'],_0x272c6a=_0x4332aa['type']+':'+_0x4332aa['subType'];this['_setSuggestionData']({'id':_0x388b06,'type':_0x272c6a,'createdAt':new Date(),'authorId':_0x1d5d6f,'data':_0x4332aa[_0x3c41('0x123')],'attributes':_0x4332aa[_0x3c41('0x5a')]});const _0x5662be=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba['end'][_0x3c41('0x9f')],'after'),_0x147891=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5662be,_0x455579[_0x3c41('0x78')]);this[_0x3c41('0x9b')](_0x272c6a,_0x388b06,_0x1d5d6f,_0x147891);}else{if(_0x455579[_0x3c41('0xd0')](_0x4b8dba[_0x3c41('0x109')])){const _0x2c1cb2=this[_0x3c41('0x115')]['createPositionAt'](_0x4b8dba[_0x3c41('0x109')]['nodeBefore'],_0x3c41('0x78'));this[_0x3c41('0x13d')](_0x4332aa,this['_model'][_0x3c41('0x6c')](_0x455579[_0x3c41('0x109')],_0x2c1cb2));}else{const _0x27acb5=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba[_0x3c41('0x78')][_0x3c41('0x9f')],_0x3c41('0x44'));this[_0x3c41('0x13d')](_0x4332aa,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x27acb5,_0x455579[_0x3c41('0x78')]));}}}}[_0x3c41('0x58')](_0x382610){for(const {suggestion:_0x38d169,meta:_0x4fd08f}of this['_findSuggestions'](_0x382610,_0x3c41('0xdf'))){if(!_0x4fd08f[_0x3c41('0xfa')])continue;const _0x27436c=_0x38d169['getRanges']();for(const _0x5053e6 of _0x27436c)if(!_0x382610['getDifference'](_0x5053e6)[_0x3c41('0x80')])return!0x0;}return!0x1;}[_0x3c41('0xf6')](_0x371004){const _0x1434d4=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))[_0x3c41('0x9a')](_0x371004);if(!_0x1434d4)throw new _0x149c43('track-changes-user-not-found',this);return _0x1434d4;}[_0x3c41('0xd')](_0x3a6cca){const _0x30c82a=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34')),_0x25f10d=_0x4ee5c6(_0x3c41('0x54')+_0x3a6cca),_0x500368=_0x30c82a[_0x3c41('0x9a')](_0x25f10d);return _0x500368||_0x30c82a[_0x3c41('0xdb')]({'id':_0x25f10d,'name':_0x3a6cca});}[_0x3c41('0x10b')](_0x52349e,_0x35d6b8,_0x17cdf0,_0x4f0b0f,_0x45905b){const _0x2ed9c1=this['_getAuthorFromId'](_0x4f0b0f),_0x23fa55=this[_0x3c41('0x133')][_0x3c41('0x31')](_0x52349e,_0x35d6b8,_0x17cdf0,_0x2ed9c1,_0x45905b,_0x11057b=>this[_0x3c41('0xf3')](_0x17cdf0,{'attributes':_0x11057b}));return this[_0x3c41('0x24')](_0x23fa55,_0x3c41('0x81'),()=>{this[_0x3c41('0xf3')](_0x17cdf0,{'state':'accepted'});},{'priority':'high'}),this[_0x3c41('0x24')](_0x23fa55,_0x3c41('0xf4'),()=>{this[_0x3c41('0xf3')](_0x17cdf0,{'state':_0x3c41('0x9c')});},{'priority':_0x3c41('0x63')}),this[_0x3c41('0xb2')][_0x3c41('0xce')](_0x17cdf0,_0x23fa55),this[_0x3c41('0x138')][_0x3c41('0xce')](_0x23fa55,_0x3c41('0xac')),_0x23fa55;}[_0x3c41('0xf9')](_0x54fe73){const _0x4c3968=_0x54fe73[_0x3c41('0x13a')](':');return{'group':_0x4c3968[0x0],'type':_0x4c3968[0x1],'subType':_0x4c3968['length']>=0x5?_0x4c3968[0x2]:null,'id':_0x4c3968['length']<0x5?_0x4c3968[0x2]:_0x4c3968[0x3],'authorId':_0x4c3968[_0x3c41('0x80')]<0x5?_0x4c3968[0x3]:_0x4c3968[0x4],'markerCount':0x6==_0x4c3968[_0x3c41('0x80')]?_0x4c3968[0x5]:null};}['_breakSuggestionMarker'](_0x58fda4,_0xebdb1c,_0x93462a){const _0x2b8a04=_0x58fda4['getFirstRange'](),_0x4b13cb=_0x2b8a04[_0x3c41('0x109')],_0x4853e4=_0x2b8a04[_0x3c41('0x78')];this[_0x3c41('0x13d')](_0x58fda4,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x4b13cb,_0xebdb1c));const _0x3b745a=_0x47dbea(),_0x1f7686=_0x58fda4[_0x3c41('0x9d')]['id'],_0x41e0c8=_0x58fda4[_0x3c41('0x140')]+(_0x58fda4['subType']?':'+_0x58fda4[_0x3c41('0x3a')]:'');this[_0x3c41('0x69')]({'id':_0x3b745a,'type':_0x41e0c8,'createdAt':new Date(),'authorId':_0x1f7686,'originalSuggestionId':_0x58fda4['id'],'attributes':_0x58fda4['attributes'],'data':_0x58fda4[_0x3c41('0x123')]}),_0x3c41('0x82')==_0x58fda4['type']&&(_0x93462a=this[_0x3c41('0x115')][_0x3c41('0x67')](_0x93462a['parent'])),this[_0x3c41('0x9b')](_0x41e0c8,_0x3b745a,_0x1f7686,this[_0x3c41('0x115')]['createRange'](_0x93462a,_0x4853e4));}['_findSuggestions'](_0x8cbc4c,_0x5c1c23=null){const _0x40b8c1=[],_0x2131e3=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'];Array[_0x3c41('0xd8')](_0x8cbc4c)||(_0x8cbc4c=[_0x8cbc4c]);for(const _0x3470c3 of this['getSuggestions']()){if(!_0x3470c3['isInContent'])continue;if(_0x5c1c23&&_0x3470c3['type']!=_0x5c1c23)continue;let _0xb70167=!0x1;for(const _0x38fe90 of _0x3470c3[_0x3c41('0xeb')]()){for(const _0x51a406 of _0x8cbc4c){const _0x454763=_0x51a406['start'][_0x3c41('0xbe')](_0x38fe90[_0x3c41('0x78')])||_0x51a406[_0x3c41('0x78')]['isEqual'](_0x38fe90[_0x3c41('0x109')]);if(_0x454763||_0x51a406[_0x3c41('0xcd')](_0x38fe90)){const _0x50550e=_0x51a406[_0x3c41('0x86')](_0x38fe90)&&_t(this[_0x3c41('0x115')][_0x3c41('0xfe')],_0x38fe90[_0x3c41('0x109')],_0x51a406),_0x1aa59a=_0x38fe90['containsRange'](_0x51a406)&&_t(this[_0x3c41('0x115')]['schema'],_0x51a406['start'],_0x38fe90);_0x40b8c1['push']({'suggestion':_0x3470c3,'meta':{'isOwn':_0x2131e3==_0x3470c3[_0x3c41('0x6e')],'isNextTo':_0x454763,'isInsideObject':_0x50550e,'containsRangeInObject':_0x1aa59a}}),_0xb70167=!0x0;break;}}if(_0xb70167)break;}}return _0x40b8c1;}[_0x3c41('0x9b')](_0x58ac50,_0x10d1e4,_0x4df229,_0x245871,_0x594098){this['_model'][_0x3c41('0x112')](_0x1c68aa=>{let _0x173770='suggestion:'+_0x58ac50+':'+_0x10d1e4+':'+_0x4df229;_0x594098&&(_0x173770=_0x173770+':'+_0x594098),_0x1c68aa[_0x3c41('0x7e')](_0x173770,{'range':_0x245871,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3c41('0x18')](_0x42f4ca){const _0x2786c0=_0x42f4ca[_0x3c41('0x8a')],_0x5e3670=_0x42f4ca[_0x3c41('0x89')];_0x42f4ca['previous']=null,null!=_0x2786c0&&(_0x2786c0[_0x3c41('0x89')]=null),_0x42f4ca[_0x3c41('0x89')]=null,null!=_0x5e3670&&(_0x5e3670['previous']=null),_0x3c41('0xfb')==this['_suggestionState'][_0x3c41('0xc1')](_0x42f4ca)&&(this[_0x3c41('0x138')][_0x3c41('0xce')](_0x42f4ca,_0x3c41('0xff')),this[_0x3c41('0x7d')](_0x3c41('0x92'),_0x42f4ca,_0x2786c0,_0x5e3670));}[_0x3c41('0x69')](_0x1fa207){const _0x5d1e24=_0x1fa207['id'],_0x45a02b=this[_0x3c41('0x12b')](_0x1fa207);if(this[_0x3c41('0x114')]&&this[_0x3c41('0x114')]['addSuggestion']){const _0x571031=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0xb6')),_0x1e4711=_0x45a02b[_0x3c41('0xb0')],_0x3a1ea9=_0x45a02b[_0x3c41('0x3a')]?_0x45a02b['type']+':'+_0x45a02b[_0x3c41('0x3a')]:_0x45a02b[_0x3c41('0x140')],_0x37afd3=this[_0x3c41('0x35')]['locale'],_0x40d6c5=_0x571031[_0x3c41('0x7b')](_0x5dd432(_0x37afd3,_0x3c41('0xc3'))),_0x46e32b={'id':_0x5d1e24,'type':_0x3a1ea9,'hasComments':_0x1e4711,'data':_0x1fa207['data']||null,'originalSuggestionId':_0x1fa207[_0x3c41('0x79')]||null,'attributes':_0x45a02b[_0x3c41('0x5a')]};this[_0x3c41('0x114')][_0x3c41('0x131')](_0x46e32b)['then'](_0x2dd0b7=>{_0x45a02b[_0x3c41('0x73')]=!0x0,_0x571031[_0x3c41('0xbb')](_0x40d6c5),_0x2dd0b7&&_0x2dd0b7['createdAt']&&(this['_suggestions'][_0x3c41('0xc1')](_0x5d1e24)[_0x3c41('0x139')]=_0x2dd0b7[_0x3c41('0x139')]);})[_0x3c41('0xd6')](_0x36c5c4=>{throw _0x151902('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model'][_0x3c41('0x126')]({'isUndoable':!0x1},()=>{_0x45a02b[_0x3c41('0xf4')]();}),_0x45a02b[_0x3c41('0x27')](),this[_0x3c41('0xb2')][_0x3c41('0x94')](_0x45a02b['id']),this[_0x3c41('0x138')][_0x3c41('0x94')](_0x45a02b),_0x36c5c4;});}return _0x45a02b;}[_0x3c41('0xf3')](_0x434377,_0x3c3098){const _0xe244d3=this['editor'][_0x3c41('0x5')]['get']('PendingActions'),_0x2dfbff=this['getSuggestion'](_0x434377);if(this[_0x3c41('0x114')]&&this['_adapter'][_0x3c41('0x4')]){if(_0x2dfbff[_0x3c41('0x73')]){const _0x31b915=_0xe244d3[_0x3c41('0x7b')](_0x5dd432(this['editor']['locale'],_0x3c41('0xc3')));this['_adapter']['updateSuggestion'](_0x434377,_0x3c3098)[_0x3c41('0xd2')](()=>{_0xe244d3[_0x3c41('0xbb')](_0x31b915);});}else _0x2dfbff['on'](_0x3c41('0xc0'),()=>{this[_0x3c41('0xf3')](_0x434377,_0x3c3098);});}}['_getSuggestionData'](_0x321520){if(!this[_0x3c41('0x114')]||!this[_0x3c41('0x114')][_0x3c41('0x9')])throw new _0x149c43(_0x3c41('0x117'),this);return this[_0x3c41('0x114')][_0x3c41('0x9')](_0x321520);}[_0x3c41('0xc4')](_0x436909){const {id:_0x5062e9,type:_0x6258,subType:_0x501f17,authorId:_0x1d7efa}=this[_0x3c41('0xf9')](_0x436909),_0xdb1c35=this['_suggestions'][_0x3c41('0xc1')](_0x5062e9)||this['_createSuggestion'](_0x6258,_0x501f17,_0x5062e9,_0x1d7efa,{});switch(this[_0x3c41('0x119')](_0xdb1c35,_0x6258,_0x501f17,_0x1d7efa),this[_0x3c41('0x138')][_0x3c41('0xc1')](_0xdb1c35)){case'notReady':this['_getSuggestionData'](_0x5062e9)['then'](_0x586961=>{let _0x411740=Promise[_0x3c41('0xc7')]();_0x586961[_0x3c41('0xb0')]&&(_0x411740=this[_0x3c41('0x8f')]['fetchCommentThread']({'channelId':this[_0x3c41('0x35')][_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0xb4')),'threadId':_0x5062e9})),_0x411740[_0x3c41('0xd2')](()=>{this[_0x3c41('0x12b')](_0x586961)[_0x3c41('0x73')]=!0x0;});}),this[_0x3c41('0x138')][_0x3c41('0xce')](_0xdb1c35,_0x3c41('0x53'));break;case _0x3c41('0xff'):this[_0x3c41('0xf3')](_0x5062e9,{'state':_0x3c41('0x14')});case _0x3c41('0x95'):this[_0x3c41('0x138')][_0x3c41('0xce')](_0xdb1c35,'ready'),this[_0x3c41('0x7d')]('suggestionLoaded',_0xdb1c35);break;case _0x3c41('0xfb'):this['fire']('suggestionChanged',_0xdb1c35);}return _0xdb1c35[_0x3c41('0xcf')](_0x436909),_0xdb1c35;}[_0x3c41('0xc9')](_0x42e3f6){const _0x2e8f61=Array[_0x3c41('0xe3')](_0x42e3f6)[_0x3c41('0x59')](_0x38a61f=>!_0x38a61f['isMultiRange']),_0x3fdb95=this['getSuggestions']({'skipNotAttached':!0x0})[_0x3c41('0x59')](_0x43d301=>!_0x43d301[_0x3c41('0xf7')]),_0x31e170=_0x3fdb95[_0x3c41('0x59')](_0x4e6cbd=>!_0x42e3f6[_0x3c41('0x10c')](_0x4e6cbd)),_0x5541e8=new Map(_0x3fdb95[_0x3c41('0x93')](_0x13f329=>[_0x13f329,this[_0x3c41('0x133')][_0x3c41('0x60')](_0x13f329[_0x3c41('0x140')],_0x13f329['subType'],_0x3c41('0x39'))])),_0x13a7af=new Map(_0x3fdb95['map'](_0x335e80=>[_0x335e80,_0x335e80[_0x3c41('0x85')]()])),_0x48211d=new Set(),_0x4616f6=new Set();for(let _0x3c7a36=0x0;_0x3c7a36<_0x2e8f61[_0x3c41('0x80')];_0x3c7a36++)_0x130089(_0x2e8f61[_0x3c7a36],_0x2e8f61,_0x3c7a36+0x1);for(let _0x247799=0x0;_0x247799<_0x2e8f61['length'];_0x247799++)_0x130089(_0x2e8f61[_0x247799],_0x31e170,0x0);for(let _0x2700a4=0x0;_0x2700a4<_0x2e8f61[_0x3c41('0x80')];_0x2700a4++){const _0x454a66=_0x2e8f61[_0x2700a4];!_0x4616f6[_0x3c41('0x10c')](_0x454a66)&&_0x454a66[_0x3c41('0x8a')]&&(_0x454a66[_0x3c41('0x8a')][_0x3c41('0x89')]===_0x454a66&&(_0x454a66[_0x3c41('0x8a')][_0x3c41('0x89')]=null),_0x454a66['previous']=null),!_0x48211d[_0x3c41('0x10c')](_0x454a66)&&_0x454a66['next']&&(_0x454a66['next'][_0x3c41('0x8a')]===_0x454a66&&(_0x454a66['next'][_0x3c41('0x8a')]=null),_0x454a66[_0x3c41('0x89')]=null);}function _0x130089(_0x26afda,_0x56a303,_0xd019d9){for(let _0x1af70d=_0xd019d9;_0x1af70d<_0x56a303[_0x3c41('0x80')];_0x1af70d++){const _0x391f8e=_0x5d59b7(_0x26afda,_0x56a303[_0x1af70d]);_0x391f8e&&(_0x391f8e[0x0][_0x3c41('0x89')]=_0x391f8e[0x1],_0x391f8e[0x1][_0x3c41('0x8a')]=_0x391f8e[0x0],_0x48211d['add'](_0x391f8e[0x0]),_0x4616f6[_0x3c41('0x7b')](_0x391f8e[0x1]));}}function _0x5d59b7(_0x172e03,_0x4786b2){if(_0x172e03[_0x3c41('0x6e')]['id']!==_0x4786b2[_0x3c41('0x6e')]['id'])return null;const _0x1c4b6b=_0x5541e8[_0x3c41('0xc1')](_0x172e03)(_0x172e03,_0x4786b2,_0x13a7af['get'](_0x172e03),_0x13a7af['get'](_0x4786b2));if(!_0x1c4b6b)return null;return _0x5541e8[_0x3c41('0xc1')](_0x4786b2)(_0x172e03,_0x4786b2,_0x13a7af[_0x3c41('0xc1')](_0x172e03),_0x13a7af[_0x3c41('0xc1')](_0x4786b2))?_0x1c4b6b[0x1][_0x3c41('0x43')]&&_0x1c4b6b[0x1]['commentThread'][_0x3c41('0x80')]?null:_0x1c4b6b:null;}}[_0x3c41('0x99')](_0x544cb4){const _0x43c5ef=Array[_0x3c41('0xe3')](_0x544cb4),_0x5050f0=this[_0x3c41('0xa7')]({'skipNotAttached':!0x0}),_0x197629=_0x5050f0['filter'](_0x152700=>!_0x544cb4[_0x3c41('0x10c')](_0x152700)),_0x179bea=new Map(_0x43c5ef[_0x3c41('0x93')](_0x3d6a20=>[_0x3d6a20,this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3d6a20[_0x3c41('0x140')],_0x3d6a20[_0x3c41('0x3a')],_0x3c41('0x17'))])),_0x3087f7=new Map(_0x5050f0[_0x3c41('0x93')](_0x58ac0f=>[_0x58ac0f,_0x58ac0f[_0x3c41('0xeb')]()]));for(let _0x1efbe7=0x0;_0x1efbe7<_0x43c5ef[_0x3c41('0x80')];_0x1efbe7++){if(_0x5ba188(this,_0x43c5ef[_0x1efbe7],_0x43c5ef,_0x1efbe7+0x1))return!0x0;}for(let _0x1d8f4a=0x0;_0x1d8f4a<_0x43c5ef['length'];_0x1d8f4a++){if(_0x5ba188(this,_0x43c5ef[_0x1d8f4a],_0x197629,0x0))return!0x0;}return!0x1;function _0x5ba188(_0x56ac21,_0x2cc7a7,_0x279ade,_0x24c1d3){for(let _0x58b649=_0x24c1d3;_0x58b649<_0x279ade[_0x3c41('0x80')];_0x58b649++){const _0xc2eccc=_0x279ade[_0x58b649];if(_0xc2eccc[_0x3c41('0x140')]!==_0x2cc7a7[_0x3c41('0x140')]||_0xc2eccc['author']['id']!==_0x2cc7a7[_0x3c41('0x6e')]['id']||_0xc2eccc[_0x3c41('0x3a')]!==_0x2cc7a7['subType'])continue;if(!Ut(_0x2cc7a7,_0xc2eccc))continue;const _0x56a550=_0x179bea['get'](_0x2cc7a7),_0xdb5571=_0x3087f7[_0x3c41('0xc1')](_0x2cc7a7),_0x4db6aa=_0x3087f7[_0x3c41('0xc1')](_0xc2eccc),_0x54edeb=_0x2cc7a7[_0x3c41('0x43')]&&_0x2cc7a7[_0x3c41('0x43')]['length'],_0xf6a69e=_0xc2eccc[_0x3c41('0x43')]&&_0xc2eccc[_0x3c41('0x43')][_0x3c41('0x80')];if(!_0x54edeb&&_0x56a550(_0x4db6aa,_0xdb5571))return _0x56ac21[_0x3c41('0xe2')](_0xc2eccc,_0x2cc7a7),_0x3087f7['delete'](_0x2cc7a7),!0x0;if(!_0xf6a69e&&_0x56a550(_0xdb5571,_0x4db6aa))return _0x56ac21[_0x3c41('0xe2')](_0x2cc7a7,_0xc2eccc),_0x3087f7['delete'](_0xc2eccc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4bd81d,_0x69444){if(_0x4bd81d[_0x3c41('0xf7')])for(const _0xa47f95 of _0x69444[_0x3c41('0xeb')]())_0x4bd81d[_0x3c41('0x120')](_0xa47f95);else{const _0x101295=_0x69444['getFirstRange']()[_0x3c41('0x78')];this[_0x3c41('0x13d')](_0x4bd81d,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x4bd81d[_0x3c41('0x85')]()[_0x3c41('0x109')],_0x101295));}_0x69444['removeMarkers']();}}class Bt{constructor(_0x3b703a){this[_0x3c41('0x6f')]=_0x3b703a,this[_0x3c41('0x115')]=_0x3b703a[_0x3c41('0xd3')],this[_0x3c41('0xed')]=new Map(),this[_0x3c41('0x145')]=new Map(),this[_0x3c41('0x105')]();}[_0x3c41('0x31')](_0x338a9e,_0x6cad3d,_0x26a64b,_0x378e0d,_0x296cc9,_0x3e0c12){return new _0x32734f(this[_0x3c41('0x115')],{'type':_0x338a9e,'subType':_0x6cad3d,'id':_0x26a64b,'author':_0x378e0d,'creator':_0x378e0d,'attributes':_0x296cc9,'onAttributesChange':_0x3e0c12,'onAccept':(..._0x3fc6fe)=>this['getSuggestionCallback'](_0x338a9e,_0x6cad3d,_0x3c41('0x81'))(..._0x3fc6fe),'onDiscard':(..._0x53e451)=>this['getSuggestionCallback'](_0x338a9e,_0x6cad3d,_0x3c41('0xf4'))(..._0x53e451)});}[_0x3c41('0x106')](_0x5bfd6f,_0x131430,_0x3bc43a,_0x41f06e){const _0x272e72=_0x5bfd6f+':'+_0x131430+':'+_0x3bc43a;this[_0x3c41('0xed')]['set'](_0x272e72,_0x41f06e);}[_0x3c41('0x60')](_0x189991,_0x514e1a,_0x4eb028){const _0x4ac7dd=_0x189991+':'+_0x514e1a+':'+_0x4eb028;return this[_0x3c41('0xed')][_0x3c41('0xc1')](_0x4ac7dd)||this[_0x3c41('0x145')]['get'](_0x189991+':'+_0x4eb028);}[_0x3c41('0x105')](){const _0x5e2c9d=()=>!0x1,_0x1970df=_0x5ead93=>{_0x5ead93[_0x3c41('0xe')]((_0x44dc0b,_0x13e92d)=>_0x44dc0b[_0x3c41('0x109')]['isBefore'](_0x13e92d['start'])?0x1:-0x1),this[_0x3c41('0x115')][_0x3c41('0x112')](_0xe0b276=>{for(const _0x582795 of _0x5ead93){let _0x1ac909;_0x1ac909=_0x582795[_0x3c41('0x78')][_0x3c41('0x2')]&&_0x582795[_0x3c41('0x78')]['parent']==_0x582795[_0x3c41('0x109')]['nodeAfter']?_0xe0b276[_0x3c41('0x13e')](_0x582795['start']['nodeAfter'],'on'):_0xe0b276[_0x3c41('0x13e')](_0x582795),this[_0x3c41('0x115')]['deleteContent'](_0x1ac909,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x234acb=(_0x5453fa,_0x3a628e)=>{this[_0x3c41('0x115')][_0x3c41('0x112')](_0x54f13b=>{const {commandName:_0x74d212,commandParams:_0xa005ca=[]}=_0x3a628e,_0x47ee12=_0x5453fa[_0x3c41('0x93')](_0x5a08cd=>(Mt(_0x5a08cd)&&(_0x5a08cd=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5a08cd[_0x3c41('0x78')])),_0x5a08cd))[_0x3c41('0x59')](_0xe4fd48=>_0x3c41('0x37')!==_0xe4fd48[_0x3c41('0x10e')]['rootName']);if(_0x47ee12[_0x3c41('0x80')]<0x1)return;const _0x23c046=Array['from'](this['_model'][_0x3c41('0x23')]['selection'][_0x3c41('0xeb')]())[_0x3c41('0x93')](_0x572754=>_0xe5a593[_0x3c41('0x124')](_0x572754));_0x54f13b[_0x3c41('0xbd')](_0x47ee12);for(const _0xdd794c of this[_0x3c41('0x6f')][_0x3c41('0xc2')][_0x3c41('0xc2')]())_0xdd794c[_0x3c41('0x5b')]();_0xa005ca[_0x3c41('0xea')]({'forceDefaultExecution':!0x0}),this[_0x3c41('0x6f')][_0x3c41('0x3f')](_0x74d212,..._0xa005ca);const _0x2cbd54=_0x23c046[_0x3c41('0x59')](_0x88a5da=>_0x3c41('0x37')!=_0x88a5da[_0x3c41('0x10e')][_0x3c41('0xc')]);_0x2cbd54[_0x3c41('0x80')]>0x0&&_0x54f13b[_0x3c41('0xbd')](_0x2cbd54);for(const _0x238d6e of _0x23c046)_0x238d6e['detach']();});},_0x4bd0dc=(_0x47f96f,_0x3981df)=>0x1==_0x47f96f[_0x3c41('0x80')]&&0x1==_0x3981df[_0x3c41('0x80')]&&_0x47f96f[0x0][_0x3c41('0x78')][_0x3c41('0xbe')](_0x3981df[0x0]['start']),_0x2d0b25=(_0xadc142,_0x3db0c2,_0xd85bf8,_0x19ddd8)=>xt(_0xadc142,_0x3db0c2,_0xd85bf8,_0x19ddd8,this[_0x3c41('0x115')])?[_0xadc142,_0x3db0c2]:xt(_0x3db0c2,_0xadc142,_0x19ddd8,_0xd85bf8,this[_0x3c41('0x115')])?[_0x3db0c2,_0xadc142]:null;this['_defaultCallbacks'][_0x3c41('0xce')](_0x3c41('0xdd'),_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x113'),_0x1970df),this[_0x3c41('0x145')]['set'](_0x3c41('0xb3'),_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x68'),_0x2d0b25),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:accept',_0x1970df),this['_defaultCallbacks'][_0x3c41('0xce')]('deletion:discard',_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:join',_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:chain',_0x2d0b25),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0xda'),_0x234acb),this['_defaultCallbacks'][_0x3c41('0xce')](_0x3c41('0x83'),_0x5e2c9d),this[_0x3c41('0x145')]['set'](_0x3c41('0x5c'),_0x4bd0dc),this[_0x3c41('0x145')]['set'](_0x3c41('0xa3'),_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0xf0'),_0x234acb),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x19'),_0x5e2c9d),this[_0x3c41('0x145')]['set'](_0x3c41('0x88'),_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')]('formatBlock:chain',_0x5e2c9d);}}function _t(_0x169d6e,_0x5291f2,_0x2d3911){for(const _0x46bc80 of _0x5291f2[_0x3c41('0x9f')][_0x3c41('0x4e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x46bc80[_0x3c41('0x10e')]==_0x46bc80)return!0x1;if(!_0x2d3911[_0x3c41('0x11f')](_0x46bc80))return!0x1;if(_0x169d6e[_0x3c41('0x116')](_0x46bc80)||_0x169d6e['isLimit'](_0x46bc80))return!0x0;}return!0x1;}function Mt(_0x2603e4){return _0x2603e4['end'][_0x3c41('0x9f')]==_0x2603e4['start'][_0x3c41('0x101')]&&_0x2603e4['end'][_0x3c41('0x121')];}function $t(_0x2f3057,_0x5c6461,_0x1f0ce3,_0x43ad37){const _0xe876f3=_0x260de7=>!_0x260de7[_0x3c41('0x55')]['is'](_0x3c41('0x10a'))&&!_0x43ad37[_0x3c41('0x116')](_0x260de7[_0x3c41('0x55')]),_0x2ac1c7=_0x2f3057[_0x3c41('0x109')]['getLastMatchingPosition'](_0xe876f3),_0x40518d=_0x2f3057['end'][_0x3c41('0x7a')](_0xe876f3,{'direction':_0x3c41('0x2c')});return(!_0x2f3057[_0x3c41('0x109')][_0x3c41('0xbe')](_0x2ac1c7)||!_0x2f3057['end']['isEqual'](_0x40518d))&&(_0x2ac1c7['isBefore'](_0x40518d)?_0x1f0ce3[_0x3c41('0x6')](_0x5c6461,{'range':_0x1f0ce3[_0x3c41('0x6c')](_0x2ac1c7,_0x40518d)}):_0x1f0ce3[_0x3c41('0x103')](_0x5c6461),!0x0);}function Nt(_0xe45085){return _0x4ee5c6(_0xe45085);}function Rt(_0x591c47){const _0x15ff1d=_0x591c47[_0x3c41('0x109')][_0x3c41('0x101')];return _0x15ff1d&&_0x15ff1d['is']('element');}function jt(_0x2bc029,_0x34cee1){const _0x2b8c05=_0x34cee1['schema'][_0x3c41('0x116')](_0x2bc029)||_0x34cee1['schema'][_0x3c41('0x51')](_0x2bc029);return _0x34cee1[_0x3c41('0x6c')](_0x34cee1[_0x3c41('0x141')](_0x2bc029,_0x3c41('0xb')),_0x2b8c05?_0x34cee1[_0x3c41('0xe8')](_0x2bc029):_0x34cee1[_0x3c41('0x141')](_0x2bc029,_0x3c41('0x78')));}function xt(_0x221282,_0x1dd102,_0x5bee6a,_0x497865,_0x497979){if(!Ut(_0x221282,_0x1dd102))return!0x1;if(_0x5bee6a['end'][_0x3c41('0xbe')](_0x497865[_0x3c41('0x109')]))return!0x0;if(_0x221282[_0x3c41('0x140')]!=_0x1dd102[_0x3c41('0x140')])return!0x1;if(!_0x5bee6a[_0x3c41('0x78')][_0x3c41('0x12f')](_0x497865['start']))return!0x1;const _0x40342a=_0x497979['createRange'](_0x5bee6a[_0x3c41('0x78')],_0x497865['start'])[_0x3c41('0x107')]();for(const _0x58b0d1 of _0x40342a)if([_0x3c41('0x12c'),_0x3c41('0xec')]['includes'](_0x58b0d1[_0x3c41('0x140')])&&_0x497979[_0x3c41('0xfe')][_0x3c41('0x30')](_0x58b0d1[_0x3c41('0x55')]))return!0x1;return!0x0;}function Ut(_0x310c94,_0x5c895e){return!(!_0x310c94[_0x3c41('0x2d')]||!_0x5c895e['_isDataLoaded'])&&_0x524132(_0x310c94[_0x3c41('0x5a')],_0x5c895e['attributes']);}function Ot(_0x2221af,_0x29a196){const _0x2f4a87=Et(_0x2221af[_0x3c41('0x5a')]),_0x31e941=Et(_0x29a196);if(!_0x2221af[_0x3c41('0x2d')])return!0x1;for(const _0x916825 of Object[_0x3c41('0x9e')](_0x31e941))if(!_0x524132(_0x2f4a87[_0x916825],_0x31e941[_0x916825]))return!0x1;return!0x0;}function Et(_0x8a29d5){const _0x2df627=Object[_0x3c41('0x4a')]({},_0x8a29d5);return delete _0x2df627[_0x3c41('0x100')],delete _0x2df627[_0x3c41('0xa')],_0x2df627;}
|
|
23
|
+
const _0x4c00=['root','markerNameToElements','_addThreadToSuggestion','_refreshSuggestionsChain','removed','addSuggestionData','deletion','isExternal','_model','commandName','ck-suggestion-marker','elementStart','listenTo','markDeletion','getRanges','_commentsRepository','insertion','data','hasComments','backward','getFirstRange','start','deletion:discard','tablePasteChainId','formatInline:accept','isSelectable','_checkSuggestionCorrectness','discardAllSuggestions','toViewElement','updateMarker','formatBlock','registerCustomCallback','low','hasCommentThread','bindElementToMarker','length','_suggestionFactory','writer','stop','detach','getLastMatchingPosition','open','multi','formatInline:','update:suggestion','skipNestingCheck','formatInline:chain','trackChanges.trackFormatChanges','isNextTo','getCustomProperty','position','_descriptionFactory','_findSuggestions','values','isEqual','adapter','_createSuggestion','isAfter','createdAt','addRange','containsRange','_joinSuggestions','options','highest','_updateSuggestionData','addMarker:suggestion:formatBlock','isMultiRange','never','_adapter','next','default','name','every','createRange','assign','fire','_suggestions','@external','isAtEnd','item','lowest','addMarkerName','isAtStart','suggestionUnloaded','delete','mapper','setSelection','track-changes-suggestion-data-mismatch','batch','isArray','creator','applyOperation','value','keys','howMany','insert','discardSelectedSuggestions','map','differ','activeMarkers','removeClass','markMultiRangeBlockFormat','model','end','markInlineFormat','pluginName','addClass','track-changes-suggestion-not-found','track-changes-adapter-already-set','define','getSuggestionCallback','hasSuggestion','_trackFormatChanges','fetchCommentThread','trackChanges','_setSuggestionData','some','updateSuggestion','formatInline:join','formatBlock:join','join','isInsideObject','$marker','chain','accepted','_defaultCallbacks','_breakSuggestionMarker','showSuggestionHighlights','deletion:accept','for','clone','addMarker:suggestion','_addSuggestionMarker','accept','trackChanges.mergeNestedSuggestions','unbind','elementEnd','schema','_mergeNestedSuggestions','_rangeIsInLocalUserInsertion','forward','setTo','splice','document','acceptSelectedSuggestions','commands','consumable','createSelection','trackChangesCommand','isBlock','newRange','nodeBefore','formatInline','dataToMarker','originalSuggestionId','formatInline:discard','PENDING_ACTION_SUGGESTION','_isDataLoaded','_removeSuggestion','add','type','change','formatBlock:','getDifference','dataDowncast','then','getIntersection','deletion:','enableReadOnlyMode','high','insertion:','TrackChangesEditing','authoredAt','$textProxy','$graveyard','substr','discardSuggestion','getSuggestion','filter','discard','_getExternalAuthor','notReady','getChanges','track-changes-adapter-missing-getsuggestion','marker-count','markInsertion','formatBlock:accept','enableCommand','oldRange','set','PendingActions','_suggestionState','_saved','rootName','markMultiRangeDeletion','acceptSuggestion','plugins','markerName','getNearestSelectionRange','head','catch','deletion:join','getAttribute','selection','isObject','_getAuthorFromId','createPositionBefore','isOwn','clear','size','markers','Users','sort','getUser','isCollapsed','_editor','insertion:chain','removeMarker','registerPostFixer','isIntersectingWithRange','author','isDocumentOperation','containerElement','formatBlock:discard','getAllAdjacentSuggestions','isLimit','getShiftedBy','_customCallbacks','addSuggestion','forceDefaultExecution','collaboration.channelId','upcast','removeComment','isBefore','_setSuggestionRange','acceptAllSuggestions','getChangedMarkers','_cutOutSuggestionMarker','buildSuggestion','editingDowncast','getRange','targetPosition','containsRangeInObject','fromRange','suggestion:','_isForcedDefaultExecutionBlock','dataReady','parent','insertContent','ck-suggestion-marker-','consume','editor','insertion:discard','ck-suggestion-marker--active','moveTargetPosition','after','_onDiscard','locale','suggestionChanged','containsItem','commentThread','addHighlight','normal','markerToData','suggestion','addMarker','range','attributes','external:','includes','nodeAfter','from','removeAttribute','getMultiRangeId','removeMarkers','conversion','return','config','getItems','previous','ck-suggestion-marker-formatBlock','isInContent','split','get','formatGroupId','push','getSuggestions','change:activeMarkers','_enabledCommands','multipleBlocks','suggestion-type','addUser','unbindElementFromMarkerName','group','_splitMarkerName','fromCharCode','execute','subType','change:data','ready','error-saving-suggestion-data-suggestion-discarded','createPositionAt','createRangeIn','remove','element','getMarkers','CommentsRepository','getFirstMarker','containsPosition','has','markMultiRangeInsertion','splitPosition','always','getWalker','before','authorName','stopListening','setAttribute','markerToHighlight','addCommentThread','_joinWithAdjacentSuggestions','isRemovable'];(function(_0x1c1b32,_0x4c0057){const _0x4c7c83=function(_0x4b9b54){while(--_0x4b9b54){_0x1c1b32['push'](_0x1c1b32['shift']());}};_0x4c7c83(++_0x4c0057);}(_0x4c00,0xda));const _0x4c7c=function(_0x1c1b32,_0x4c0057){_0x1c1b32=_0x1c1b32-0x0;let _0x4c7c83=_0x4c00[_0x1c1b32];return _0x4c7c83;};import{Plugin as _0x5348d7,PendingActions as _0x302d36}from'ckeditor5/src/core';import{LiveRange as _0x4f665b}from'ckeditor5/src/engine';import{CKEditorError as _0x81df42,uid as _0x52451d,priorities as _0x235764,logWarning as _0x44d4db}from'ckeditor5/src/utils';import{toWidget as _0x244c6f}from'ckeditor5/src/widget';import{Users as _0x4ae80b,hashObject as _0x4eb39b}from'ckeditor5-collaboration/src/collaboration-core';import _0x2efa39 from'./commands/trackchangescommand';import _0x423b5d from'./commands/acceptsuggestioncommand';import _0x2bcc83 from'./commands/discardsuggestioncommand';import _0xc58386 from'./commands/executeonallsuggestionscommand';import _0x376181 from'./commands/executeonselectedsuggestionscommand';import _0x5a82f6 from'./suggestion';import _0x3b10b6 from'./suggestiondescriptionfactory';import _0x492b89 from'./integrations/aiassistant';import _0x2697ac from'./integrations/alignment';import _0x17ed43 from'./integrations/basicstyles';import _0x1c8ffe from'./integrations/blockquote';import _0x8a5e06 from'./integrations/ckbox';import _0x3fa3e1 from'./integrations/codeblock';import _0x2e0d55 from'./integrations/comments';import _0x1596f9 from'./integrations/deletecommand';import _0x156363 from'./integrations/documentlist';import _0x89fd65 from'./integrations/entercommand';import _0x508dc7 from'./integrations/findandreplace';import _0x5f1b47 from'./integrations/font';import _0xd5c09c from'./integrations/formatpainter';import _0x1c0904 from'./integrations/heading';import _0x22591c from'./integrations/highlight';import _0x4b9d70 from'./integrations/horizontalline';import _0x34c502 from'./integrations/htmlembed';import _0x6d1eaf from'./integrations/image';import _0x11eba8 from'./integrations/imagereplace';import _0x4934f9 from'./integrations/importword';import _0x4ac83d from'./integrations/indent';import _0x4f71e9 from'./integrations/inputcommand';import _0x3f105e from'./integrations/link';import _0x4b2e31 from'./integrations/list';import _0x5495a4 from'./integrations/listproperties';import _0x283a0e from'./integrations/mediaembed';import _0x5c24a5 from'./integrations/mention';import _0x31ac37 from'./integrations/pagebreak';import _0x5c9d5a from'./integrations/paragraph';import _0x4fb273 from'./integrations/removeformat';import _0x23f528 from'./integrations/restrictededitingmode';import _0x5dd27c from'./integrations/shiftentercommand';import _0x271fa7 from'./integrations/standardeditingmode';import _0x13446e from'./integrations/style';import _0x216db8 from'./integrations/table';import _0x36edd7 from'./integrations/tablemergesplit';import _0x1966fc from'./integrations/tableheadings';import _0x20746b from'./integrations/tableclipboard';import _0x3aaa16 from'./integrations/tablecolumnresize';import _0x66e4af from'./integrations/template';import _0x1af750 from'./integrations/tableofcontents';import _0x41f368 from'./integrations/title';import _0x2e3ae4 from'./integrations/undo';import{getTranslation as _0x4b0140}from'./utils/common-translations';import _0xf76fa7 from'./integrations/tablecaption';import _0x32abba from'./integrations/documentlistproperties';import _0x572041 from'./integrations/tableproperties';import{isEqual as _0x4d46c0}from'lodash-es';export default class p extends _0x5348d7{static get['requires'](){return['CommentsRepository',_0x4ae80b,_0x302d36,_0x492b89,_0x2697ac,_0x17ed43,_0x1c8ffe,_0x8a5e06,_0x3fa3e1,_0x2e0d55,_0x1596f9,_0x156363,_0x32abba,_0x89fd65,_0x508dc7,_0x5f1b47,_0xd5c09c,_0x1c0904,_0x22591c,_0x4b9d70,_0x34c502,_0x6d1eaf,_0x11eba8,_0x4934f9,_0x4ac83d,_0x4f71e9,_0x3f105e,_0x4b2e31,_0x5495a4,_0x283a0e,_0x5c24a5,_0x31ac37,_0x5c9d5a,_0x4fb273,_0x23f528,_0x5dd27c,_0x271fa7,_0x13446e,_0x216db8,_0x36edd7,_0x1966fc,_0xf76fa7,_0x20746b,_0x3aaa16,_0x1af750,_0x572041,_0x66e4af,_0x41f368,_0x2e3ae4];}static get[_0x4c7c('0xd1')](){return _0x4c7c('0x113');}constructor(_0x257696){function _0x57b68a(_0x20a053){return _0x20a053['map'](_0x6a3779=>String[_0x4c7c('0x4d')](_0x6a3779))[_0x4c7c('0xe0')]('');}super(_0x257696),this[_0x4c7c('0x125')](_0x4c7c('0xcb'),[]),this['on'](_0x4c7c('0x45'),(_0x2cec9c,_0x2fd62a,_0x182f07,_0x1cebfb)=>{this['_model']['change'](()=>{for(const _0x3f89b1 of[..._0x1cebfb,..._0x182f07])this[_0x4c7c('0x70')][_0x4c7c('0x13a')]['has'](_0x3f89b1)&&_0x257696['editing']['reconvertMarker'](_0x3f89b1);});}),this[_0x4c7c('0x9b')]=new _0x3b10b6(this[_0x4c7c('0x21')][_0x4c7c('0xce')][_0x4c7c('0xf1')],this[_0x4c7c('0x21')][_0x4c7c('0x27')]),this['_adapter']=null,this['_suggestionFactory']=new Bt(this['editor']),this[_0x4c7c('0xb4')]=new Map(),this[_0x4c7c('0x77')]=_0x257696[_0x4c7c('0x12c')][_0x4c7c('0x41')]('CommentsRepository'),this[_0x4c7c('0x46')]=new Set(),this['_model']=this[_0x4c7c('0x21')][_0x4c7c('0xce')],this[_0x4c7c('0x127')]=new WeakMap(),this[_0x4c7c('0x1b')]=!0x1,_0x257696[_0x4c7c('0x3b')][_0x4c7c('0xd5')](_0x4c7c('0x97'),_0x4c7c('0xae')),this[_0x4c7c('0xd8')]=_0x257696[_0x4c7c('0x3b')][_0x4c7c('0x41')]('trackChanges.trackFormatChanges'),_0x257696[_0x4c7c('0x3b')][_0x4c7c('0xd5')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x4c7c('0xf2')]=_0x257696[_0x4c7c('0x3b')][_0x4c7c('0x41')](_0x4c7c('0xee')),this['trackChangesCommand']=new _0x2efa39(_0x257696,this[_0x4c7c('0x46')]),this[_0x57b68a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57b68a([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x38]);}['init'](){const _0x14f34a=this[_0x4c7c('0x21')];_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')](_0x4c7c('0x15'))[_0x4c7c('0x64')]({'model':_0x4c7c('0x2e'),'view':_0x206137=>{const {id:_0x58f56f,type:_0x4d18e6}=this['_splitMarkerName'](_0x206137[_0x4c7c('0x12d')]),_0x5976d8=[_0x4c7c('0x72'),_0x4c7c('0x1f')+_0x4d18e6];let _0x4dbd40=0xbb8;return this['activeMarkers']['includes'](_0x206137[_0x4c7c('0x12d')])&&(_0x5976d8[_0x4c7c('0x43')](_0x4c7c('0x23')),_0x4dbd40=0xbc2),_0x4c7c('0x6e')==_0x4d18e6&&(_0x4dbd40+=0x5),{'classes':_0x5976d8,'attributes':{'data-suggestion':_0x58f56f},'priority':_0x4dbd40};}}),_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')](_0x4c7c('0x10c'))['add'](_0x568d25=>{_0x568d25['on'](_0x4c7c('0xeb'),(_0x578df5,_0x5a64b6,_0x2ae217)=>{if(!_0x2ae217[_0x4c7c('0xa6')]['showSuggestionHighlights'])return;const _0x399c9b=_0x5a64b6[_0x4c7c('0xb7')];if(!_0x399c9b)return;const _0x158669=_0x2ae217[_0x4c7c('0xbd')]['toViewElement'](_0x399c9b);_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf1')][_0x4c7c('0x134')](_0x399c9b)&&_0x158669&&!_0x158669['getCustomProperty']('widget')&&_0x158669['is'](_0x4c7c('0x4'))&&_0x244c6f(_0x158669,_0x2ae217[_0x4c7c('0x8d')]);},{'priority':_0x4c7c('0x111')});}),_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')](_0x4c7c('0x10c'))[_0x4c7c('0x64')]({'model':'suggestion','view':(_0x31841c,_0x32e130)=>{if(!_0x32e130[_0x4c7c('0xa6')][_0x4c7c('0xe7')])return null;const {type:_0x466e86}=this[_0x4c7c('0x4c')](_0x31841c[_0x4c7c('0x12d')]);return{'classes':[_0x4c7c('0x72'),'ck-suggestion-marker-'+_0x466e86],'priority':0xbb8};}});const _0x44fe8d=({showActiveMarkers:_0x5405d2=!0x0}={})=>(_0x10c0d9,_0x237ddf,_0x208af2)=>{if(!_0x237ddf[_0x4c7c('0xb7')])return;if(_0x237ddf[_0x4c7c('0xb7')]['is'](_0x4c7c('0x133')))return void _0x208af2[_0x4c7c('0xfa')][_0x4c7c('0x20')](_0x237ddf[_0x4c7c('0xb7')],_0x10c0d9['name']);const _0x44ff17=_0x208af2['mapper'][_0x4c7c('0x84')](_0x237ddf[_0x4c7c('0xb7')]);if(!(_0x237ddf['item']['is'](_0x4c7c('0x56'))&&_0x14f34a[_0x4c7c('0xce')]['schema'][_0x4c7c('0xfd')](_0x237ddf[_0x4c7c('0xb7')])&&!_0x44ff17['getCustomProperty'](_0x4c7c('0x2b'))))return;const {id:_0x42ff88}=this[_0x4c7c('0x4c')](_0x237ddf[_0x4c7c('0x12d')]);_0x208af2['writer'][_0x4c7c('0xd2')]([_0x4c7c('0x72'),_0x4c7c('0x3e')],_0x44ff17),_0x208af2[_0x4c7c('0x8d')][_0x4c7c('0x63')]('data-suggestion',_0x42ff88,_0x44ff17),_0x208af2[_0x4c7c('0xbd')][_0x4c7c('0x8a')](_0x44ff17,_0x237ddf[_0x4c7c('0x12d')]),_0x5405d2&&(this[_0x4c7c('0xcb')][_0x4c7c('0x33')](_0x237ddf[_0x4c7c('0x12d')])?_0x208af2[_0x4c7c('0x8d')][_0x4c7c('0xd2')](_0x4c7c('0x23'),_0x44ff17):_0x208af2['writer'][_0x4c7c('0xcc')]('ck-suggestion-marker--active',_0x44ff17));for(const _0x83ee2f of _0x14f34a['model'][_0x4c7c('0x54')](_0x237ddf[_0x4c7c('0xb7')])[_0x4c7c('0x3c')]())_0x208af2[_0x4c7c('0xfa')][_0x4c7c('0x20')](_0x83ee2f,_0x10c0d9['name']);_0x208af2[_0x4c7c('0xfa')][_0x4c7c('0x20')](_0x237ddf[_0x4c7c('0xb7')],_0x10c0d9[_0x4c7c('0xaf')]);};_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')](_0x4c7c('0x10c'))[_0x4c7c('0x107')](_0x448dd9=>{_0x448dd9['on'](_0x4c7c('0xa9'),(_0x1b0c7d,_0x54dd0b,_0x24c056)=>{_0x24c056['options'][_0x4c7c('0xe7')]&&_0x44fe8d({'showActiveMarkers':!0x1})(_0x1b0c7d,_0x54dd0b,_0x24c056);},{'priority':_0x4c7c('0xa7')});}),_0x14f34a['conversion'][_0x4c7c('0xe9')](_0x4c7c('0x10c'))[_0x4c7c('0x2d')]({'model':'suggestion','view':(_0xc5a6ce,_0x40de28)=>_0x40de28[_0x4c7c('0xa6')][_0x4c7c('0xe7')]?null:{'group':_0x4c7c('0x2e'),'name':_0xc5a6ce[_0x4c7c('0x117')](0xb)}}),_0x14f34a['conversion'][_0x4c7c('0xe9')]('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe79b64,{writer:_0x53f088})=>{let _0x1d97a5='suggestion:'+_0xe79b64[_0x4c7c('0x132')](_0x4c7c('0x48'))+':'+_0xe79b64[_0x4c7c('0x132')]('id');return _0xe79b64[_0x4c7c('0x132')](_0x4c7c('0x120'))&&(_0x1d97a5+=':'+_0xe79b64[_0x4c7c('0x132')](_0x4c7c('0x120'))),_0x53f088['createElement'](_0x4c7c('0xe2'),{'data-name':_0x1d97a5});}}),_0x14f34a['conversion']['for'](_0x4c7c('0xd'))[_0x4c7c('0x101')]({'view':_0x4c7c('0x2e')}),_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')](_0x4c7c('0x15'))[_0x4c7c('0x107')](_0x16b88c=>{_0x16b88c['on']('addMarker:suggestion:formatBlock',_0x44fe8d(),{'priority':'high'});}),_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')]('editingDowncast')[_0x4c7c('0x107')](_0x13e079=>{_0x13e079['on']('removeMarker:suggestion:formatBlock',(_0x3ae135,_0x26a9ea,_0x31f7ce)=>{const _0x415ff7=_0x31f7ce['mapper'][_0x4c7c('0x69')](_0x26a9ea[_0x4c7c('0x12d')]);if(_0x415ff7)for(const _0x2e3ce8 of _0x415ff7)_0x2e3ce8[_0x4c7c('0x99')](_0x4c7c('0x2b'))||(_0x31f7ce[_0x4c7c('0x8d')][_0x4c7c('0xcc')]([_0x4c7c('0x72'),'ck-suggestion-marker-formatBlock',_0x4c7c('0x23')],_0x2e3ce8),_0x31f7ce['writer'][_0x4c7c('0x36')]('data-suggestion',_0x2e3ce8),_0x31f7ce[_0x4c7c('0xbd')][_0x4c7c('0x4a')](_0x2e3ce8,_0x26a9ea['markerName']));},{'priority':_0x4c7c('0x111')});}),_0x14f34a['model'][_0x4c7c('0xf7')]['registerPostFixer'](_0x409dde=>{let _0x37d35e=!0x1;const _0x59c7f2=Array[_0x4c7c('0x35')](_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf7')][_0x4c7c('0xca')][_0x4c7c('0x12')]()),_0x155e8e=new Set();for(const {name:_0x58f871,data:_0x56e0bc}of _0x59c7f2){const {group:_0xfeddb2,type:_0x2b5cc6,id:_0x243071}=this['_splitMarkerName'](_0x58f871);if(_0x4c7c('0x2e')!==_0xfeddb2)continue;const _0x5dc571=this[_0x4c7c('0xb4')][_0x4c7c('0x41')](_0x243071);if(null!=_0x56e0bc[_0x4c7c('0xfe')]){_0x4c7c('0x100')==_0x2b5cc6&&(_0x37d35e=_0x37d35e||$t(_0x56e0bc['newRange'],_0x58f871,_0x409dde,_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf1')]));if(_0x56e0bc[_0x4c7c('0xfe')][_0x4c7c('0x13e')]||_0x4c7c('0x116')==_0x56e0bc['newRange'][_0x4c7c('0x68')][_0x4c7c('0x129')]||_0x4c7c('0x86')==_0x2b5cc6&&!Rt(_0x56e0bc['newRange'])||'deletion'==_0x2b5cc6&&!(!Mt(_0x4ca8dd=_0x56e0bc[_0x4c7c('0xfe')])&&!function(_0x4af4ca){return _0x4af4ca[_0x4c7c('0x7d')][_0x4c7c('0x1d')]==_0x4af4ca[_0x4c7c('0xcf')][_0x4c7c('0xff')]&&_0x4af4ca[_0x4c7c('0x7d')][_0x4c7c('0xb6')];}(_0x4ca8dd)))_0x409dde['removeMarker'](_0x58f871),_0x37d35e=!0x0;else{if(!_0x5dc571||!_0x5dc571['isInContent'])continue;_0x155e8e['add'](_0x5dc571);}}}var _0x4ca8dd;return _0x155e8e[_0x4c7c('0x139')]>0x0&&(_0x37d35e=!!this[_0x4c7c('0x66')](_0x155e8e)||_0x37d35e),_0x37d35e;}),_0x14f34a['model'][_0x4c7c('0xf7')][_0x4c7c('0x0')](_0x429fd2=>{let _0x3f6829=!0x1;for(const _0x315b89 of _0x14f34a['model'][_0x4c7c('0xf7')]['differ'][_0x4c7c('0x11e')]()){if(_0x4c7c('0xc7')!=_0x315b89[_0x4c7c('0x108')])continue;const _0x1b2ef2=_0x315b89[_0x4c7c('0x9a')]['getShiftedBy'](_0x315b89[_0x4c7c('0x8b')]);if(_0x1b2ef2[_0x4c7c('0xb6')])for(const _0x17c9ae of this[_0x4c7c('0xb4')][_0x4c7c('0x9d')]()){if(_0x17c9ae['isMultiRange']||!_0x17c9ae[_0x4c7c('0x3f')])continue;if(_0x4c7c('0x86')!=_0x17c9ae[_0x4c7c('0x108')])continue;const _0x50cdce=_0x17c9ae[_0x4c7c('0x7c')]();if(_0x50cdce[_0x4c7c('0x7d')][_0x4c7c('0x1d')]!=_0x50cdce[_0x4c7c('0xcf')]['parent']&&_0x50cdce['end'][_0x4c7c('0x9e')](_0x315b89[_0x4c7c('0x9a')])){const _0x52a6f7=_0x14f34a[_0x4c7c('0xce')]['createRange'](_0x50cdce[_0x4c7c('0x7d')],_0x1b2ef2);_0x429fd2['updateMarker'](_0x17c9ae['getFirstMarker'](),{'range':_0x52a6f7}),_0x3f6829=!0x0;}}}return _0x3f6829;}),_0x14f34a['model'][_0x4c7c('0x13a')]['on'](_0x4c7c('0x94'),(_0x452a17,_0x55bf79,_0x58fcc8)=>{if(null==_0x58fcc8){const {id:_0x326694}=this[_0x4c7c('0x4c')](_0x55bf79['name']),_0x3f1636=this[_0x4c7c('0xb4')][_0x4c7c('0x41')](_0x326694);_0x3f1636&&_0x3f1636[_0x4c7c('0xb9')](_0x55bf79[_0x4c7c('0xaf')]);}}),_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf7')]['on'](_0x4c7c('0x50'),()=>{const _0x3dfccf=Array[_0x4c7c('0x35')](_0x14f34a['model'][_0x4c7c('0xf7')][_0x4c7c('0xca')]['getChangedMarkers']())[_0x4c7c('0x11a')](_0x558c46=>'suggestion'===this[_0x4c7c('0x4c')](_0x558c46[_0x4c7c('0xaf')])[_0x4c7c('0x4b')]);if(0x0===_0x3dfccf[_0x4c7c('0x8b')])return;_0x3dfccf[_0x4c7c('0x13c')]((_0x3233c4,_0x4c5e61)=>{const _0x5c0c44=_0x3233c4[_0x4c7c('0x79')]['oldRange'],_0x7ed09a=_0x4c5e61[_0x4c7c('0x79')][_0x4c7c('0x124')];return null===_0x5c0c44&&null===_0x7ed09a?0x0:null===_0x5c0c44&&null!==_0x7ed09a?-0x1:null!==_0x5c0c44&&null===_0x7ed09a?0x1:_0x5c0c44[_0x4c7c('0x7d')][_0x4c7c('0xf')](_0x7ed09a[_0x4c7c('0x7d')])?-0x1:0x1;});const _0x200e84=new Set(),_0x17e3b3=new Set();for(const {name:_0x20e459,data:_0x2f70d8}of _0x3dfccf){const {id:_0x48de48}=this['_splitMarkerName'](_0x20e459);if(null===_0x2f70d8[_0x4c7c('0x124')]){const _0x1b88c6=this['_handleNewSuggestionMarker'](_0x20e459);_0x17e3b3[_0x4c7c('0x107')](_0x1b88c6);}else{const _0x21eb06=this[_0x4c7c('0xb4')][_0x4c7c('0x41')](_0x48de48);null!==_0x2f70d8[_0x4c7c('0xfe')]||_0x21eb06['isInContent']?(_0x200e84['add'](_0x21eb06[_0x4c7c('0x12f')]),_0x17e3b3[_0x4c7c('0x107')](_0x21eb06)):this[_0x4c7c('0x106')](_0x21eb06);}}_0x17e3b3['size']>0x0&&this[_0x4c7c('0x6b')](_0x17e3b3);for(const _0x4858b7 of _0x200e84)this[_0x4c7c('0xb3')](_0x4c7c('0x28'),_0x4858b7);}),_0x14f34a[_0x4c7c('0xce')]['on'](_0x4c7c('0xc3'),(_0x383c40,_0x1a4e39)=>{const _0x3d952a=_0x1a4e39[0x0];if(!this['_suggestions'][_0x4c7c('0x139')])return;if(!_0x3d952a[_0x4c7c('0x3')])return;if(_0x3d952a[_0x4c7c('0xc0')]['isUndo']||!_0x3d952a[_0x4c7c('0xc0')]['isLocal'])return;let _0x124f08,_0x335cde;switch(_0x3d952a['type']){case _0x4c7c('0xc7'):_0x124f08=_0x14f34a['model'][_0x4c7c('0x53')](_0x3d952a[_0x4c7c('0x9a')]),_0x335cde=_0x124f08['getShiftedBy'](_0x3d952a[_0x4c7c('0xc6')]);break;case'split':_0x124f08=_0x14f34a[_0x4c7c('0xce')]['createPositionAt'](_0x3d952a[_0x4c7c('0x5d')]),_0x335cde=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0x53')](_0x3d952a[_0x4c7c('0x24')]);break;case'move':_0x124f08=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0x53')](_0x3d952a[_0x4c7c('0x17')]),_0x335cde=_0x124f08[_0x4c7c('0x8')](_0x3d952a[_0x4c7c('0xc6')]);break;default:return;}const _0x2ce06b=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xb1')](_0x124f08,_0x335cde);_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0x109')](()=>{for(const {suggestion:_0x3b2002,meta:_0x53c16e}of this[_0x4c7c('0x9c')](_0x2ce06b)){if(_0x3b2002[_0x4c7c('0xaa')])continue;if(_0x4c7c('0x100')==_0x3b2002[_0x4c7c('0x108')])continue;const _0x2fa2d0=_0x3b2002[_0x4c7c('0x79')]&&_0x3b2002['data'][_0x4c7c('0x47')];(_0x4c7c('0x86')!=_0x3b2002[_0x4c7c('0x108')]||_0x4c7c('0x40')==_0x3d952a[_0x4c7c('0x108')]&&!_0x2fa2d0)&&(_0x53c16e['containsRangeInObject']||'insertion'==_0x3b2002[_0x4c7c('0x108')]&&_0x53c16e[_0x4c7c('0x137')]||_0x3b2002[_0x4c7c('0x7c')]()[_0x4c7c('0xa4')](_0x2ce06b)&&this['_breakSuggestionMarker'](_0x3b2002,_0x124f08,_0x335cde));}});},{'priority':_0x4c7c('0xb8')}),_0x14f34a[_0x4c7c('0xce')]['on']('deleteContent',(_0x154160,_0x2c7c20)=>{const _0x112740=_0x2c7c20[0x0],_0x1e432f=_0x2c7c20[0x1];if(_0x1e432f&&_0x1e432f[_0x4c7c('0xb')])return;if(this[_0x4c7c('0x1b')])return;if(!this['trackChangesCommand'][_0x4c7c('0xc4')])return;if(_0x112740[_0x4c7c('0x13e')])return;const _0x575680=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf1')],{start:_0x579241,end:_0x22d270}=_0x112740[_0x4c7c('0x7c')](),_0x21cb51=_0x579241[_0x4c7c('0x34')]&&_0x575680[_0x4c7c('0x7')](_0x579241['nodeAfter'])?null:_0x575680['getNearestSelectionRange'](_0x579241,_0x4c7c('0xf4')),_0xc7d2b=_0x22d270[_0x4c7c('0xff')]&&_0x575680[_0x4c7c('0x7')](_0x22d270[_0x4c7c('0xff')])?null:_0x575680[_0x4c7c('0x12e')](_0x22d270,_0x4c7c('0x7b')),_0x430b41=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xb1')](_0x21cb51?_0x21cb51['start']:_0x579241,_0xc7d2b?_0xc7d2b[_0x4c7c('0xcf')]:_0x22d270);_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0x109')](_0x19fdda=>{this[_0x4c7c('0x75')](_0x430b41);const _0xc69a6c=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf1')][_0x4c7c('0x12e')](_0x430b41['start']);_0x112740['is']('documentSelection')?_0x19fdda[_0x4c7c('0xbe')](_0xc69a6c):_0x112740[_0x4c7c('0xf5')](_0xc69a6c);}),_0x154160[_0x4c7c('0x8e')]();},{'priority':_0x235764[_0x4c7c('0x2c')]+0xa}),_0x14f34a[_0x4c7c('0xce')]['on']('insertContent',(_0x31e148,_0x179092)=>{const _0x3df4bd=_0x179092[_0x179092[_0x4c7c('0x8b')]-0x1];_0x3df4bd&&_0x3df4bd[_0x4c7c('0xb')]||this[_0x4c7c('0x1b')]||this[_0x4c7c('0xfc')][_0x4c7c('0xc4')]&&(_0x14f34a['model'][_0x4c7c('0x109')](()=>{let _0x34adf5=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0x1e')](_0x179092[0x0],_0x179092[0x1],_0x179092[0x2],{'forceDefaultExecution':!0x0});if(!_0x34adf5)return;_0x31e148[_0x4c7c('0x3a')]=_0x34adf5[_0x4c7c('0xea')]();const _0x346f96=_0x34adf5[_0x4c7c('0xcf')][_0x4c7c('0xff')],_0x42e87f=_0x14f34a[_0x4c7c('0xce')]['schema'];_0x346f96&&_0x42e87f[_0x4c7c('0xfd')](_0x346f96)&&!_0x42e87f[_0x4c7c('0x134')](_0x346f96)&&(_0x34adf5=_0x14f34a['model'][_0x4c7c('0xb1')](_0x34adf5['start'],_0x14f34a[_0x4c7c('0xce')]['createPositionAt'](_0x346f96,_0x4c7c('0xcf')))),this[_0x4c7c('0x121')](_0x34adf5);}),_0x31e148['stop']());},{'priority':_0x4c7c('0x111')}),this[_0x4c7c('0x21')][_0x4c7c('0xf9')][_0x4c7c('0x107')](_0x4c7c('0xda'),this[_0x4c7c('0xfc')]),this['enableCommand'](_0x4c7c('0xda'));const _0x418a27=new _0x423b5d(_0x14f34a,this['_suggestions']);_0x14f34a[_0x4c7c('0xf9')][_0x4c7c('0x107')](_0x4c7c('0x12b'),_0x418a27),this[_0x4c7c('0x123')](_0x4c7c('0x12b'));const _0x5f5080=new _0x2bcc83(_0x14f34a,this[_0x4c7c('0xb4')]);_0x14f34a[_0x4c7c('0xf9')][_0x4c7c('0x107')](_0x4c7c('0x118'),_0x5f5080),this[_0x4c7c('0x123')](_0x4c7c('0x118')),_0x14f34a[_0x4c7c('0xf9')]['add']('acceptAllSuggestions',new _0xc58386(_0x14f34a,_0x418a27,this[_0x4c7c('0xb4')])),this[_0x4c7c('0x123')](_0x4c7c('0x11')),_0x14f34a['commands'][_0x4c7c('0x107')](_0x4c7c('0x83'),new _0xc58386(_0x14f34a,_0x5f5080,this[_0x4c7c('0xb4')])),this[_0x4c7c('0x123')]('discardAllSuggestions'),_0x14f34a[_0x4c7c('0xf9')][_0x4c7c('0x107')](_0x4c7c('0xf8'),new _0x376181(_0x14f34a,_0x418a27,this[_0x4c7c('0xb4')])),this[_0x4c7c('0x123')](_0x4c7c('0xf8')),_0x14f34a[_0x4c7c('0xf9')][_0x4c7c('0x107')](_0x4c7c('0xc8'),new _0x376181(_0x14f34a,_0x5f5080,this[_0x4c7c('0xb4')])),this[_0x4c7c('0x123')]('discardSelectedSuggestions');const _0x16eb27=_0x14f34a[_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x58'));this[_0x4c7c('0x74')](_0x16eb27,'addComment',(_0x5208fd,{threadId:_0x1e83ea})=>{const _0x2745dc=this[_0x4c7c('0xb4')]['get'](_0x1e83ea);_0x2745dc&&_0x2745dc[_0x4c7c('0x2a')]&&0x1===_0x2745dc[_0x4c7c('0x2a')][_0x4c7c('0x8b')]&&this[_0x4c7c('0xa8')](_0x1e83ea,{'hasComments':!0x0});},{'priority':_0x4c7c('0x88')}),this[_0x4c7c('0x74')](_0x16eb27,_0x4c7c('0xe'),(_0x50a8cb,{threadId:_0x2b9ff4})=>{const _0x37e48e=this[_0x4c7c('0xb4')]['get'](_0x2b9ff4);_0x37e48e&&_0x37e48e[_0x4c7c('0x2a')]&&!_0x37e48e['commentThread'][_0x4c7c('0x8b')]&&this[_0x4c7c('0xa8')](_0x2b9ff4,{'hasComments':!0x1});},{'priority':_0x4c7c('0x88')});}set[_0x4c7c('0x9f')](_0x2fb2e0){if(this[_0x4c7c('0xac')])throw new _0x81df42(_0x4c7c('0xd4'),this);this['_adapter']=_0x2fb2e0;}get[_0x4c7c('0x9f')](){return this[_0x4c7c('0xac')];}[_0x4c7c('0x44')]({skipNotAttached:_0x1d9cbe=!0x1,toJSON:_0x5571da=!0x1}={}){const _0x4508f4=[];for(const _0x4338a7 of this[_0x4c7c('0xb4')]['values']())_0x1d9cbe&&!_0x4338a7[_0x4c7c('0x3f')]||_0x4508f4[_0x4c7c('0x43')](_0x4338a7);return _0x5571da?_0x4508f4[_0x4c7c('0xc9')](_0x324bcc=>_0x324bcc['toJSON']()):_0x4508f4;}[_0x4c7c('0x119')](_0x2f62d0){const _0x1a645f=this['_suggestions'][_0x4c7c('0x41')](_0x2f62d0);if(!_0x1a645f)throw new _0x81df42(_0x4c7c('0xd3'),this);return _0x1a645f;}[_0x4c7c('0xd7')](_0x49f7e6){return this['_suggestions'][_0x4c7c('0x5b')](_0x49f7e6);}[_0x4c7c('0x6d')](_0x45663f){const {authorId:_0x53cf2b,id:_0x35cab1,attributes:_0x92b90f}=_0x45663f,[_0xa2287b,_0x455276]=_0x45663f['type'][_0x4c7c('0x40')](':'),_0x57b631=this[_0x4c7c('0xb4')][_0x4c7c('0x41')](_0x35cab1)||this[_0x4c7c('0xa0')](_0xa2287b,_0x455276,_0x35cab1,_0x53cf2b,_0x92b90f);if(this['_addThreadToSuggestion'](_0x57b631),this[_0x4c7c('0x82')](_0x57b631,_0xa2287b,_0x455276||null,_0x53cf2b),_0x57b631[_0x4c7c('0xa2')]=_0x45663f[_0x4c7c('0xa2')],_0x57b631[_0x4c7c('0x105')]=!0x0,_0x92b90f&&_0x92b90f[_0x4c7c('0xb5')]){const _0x35a200=_0x92b90f['@external'],_0x5954ca=this['_getExternalAuthor'](_0x35a200[_0x4c7c('0x61')]);_0x57b631[_0x4c7c('0x114')]=_0x35a200[_0x4c7c('0xa2')],_0x57b631['author']=_0x5954ca,_0x57b631[_0x4c7c('0x6f')]=!0x0;}else _0x57b631[_0x4c7c('0x114')]=_0x45663f[_0x4c7c('0xa2')];switch(_0x45663f[_0x4c7c('0x79')]&&(_0x57b631['data']=_0x45663f[_0x4c7c('0x79')]),_0x45663f[_0x4c7c('0x31')]&&(_0x57b631['attributes']=_0x45663f[_0x4c7c('0x31')]),this[_0x4c7c('0xac')]&&this['_adapter'][_0x4c7c('0xa')]||(_0x57b631[_0x4c7c('0x128')]=!0x0),this[_0x4c7c('0x127')][_0x4c7c('0x41')](_0x57b631)){case _0x4c7c('0x11d'):this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0x57b631,_0x4c7c('0x1c'));break;case'markerReady':_0x57b631['isInContent']?(this[_0x4c7c('0x6b')](new Set([_0x57b631])),this[_0x4c7c('0x66')](new Set([_0x57b631])),this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0x57b631,_0x4c7c('0x51')),this[_0x4c7c('0xb3')]('suggestionLoaded',_0x57b631)):this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0x57b631,'removed');}return _0x57b631;}[_0x4c7c('0x12b')](_0x4cbbec){this['forceDefaultExecution'](()=>{this[_0x4c7c('0x21')]['model']['change'](()=>{for(const _0x2cd81b of _0x4cbbec[_0x4c7c('0x6')]())_0x2cd81b['accept']();});});}[_0x4c7c('0x118')](_0x22fafd){this[_0x4c7c('0xb')](()=>{this[_0x4c7c('0x21')][_0x4c7c('0xce')][_0x4c7c('0x109')](()=>{for(const _0x6972c7 of _0x22fafd[_0x4c7c('0x6')]())_0x6972c7['discard']();});});}[_0x4c7c('0x123')](_0x163c07,_0x32375b){const _0x3d7d44=this['editor']['commands']['get'](_0x163c07);if(!_0x3d7d44)throw new _0x81df42('track-changes-command-not-found',this,{'commandName':_0x163c07});this[_0x4c7c('0x46')][_0x4c7c('0x107')](_0x3d7d44),_0x32375b&&_0x3d7d44['on']('execute',(_0x2f6fd7,_0x469f69)=>{this[_0x4c7c('0xfc')][_0x4c7c('0xc4')]&&(this[_0x4c7c('0x1b')]||_0x469f69[_0x4c7c('0x8b')]>0x0&&_0x469f69[_0x469f69[_0x4c7c('0x8b')]-0x1]&&_0x469f69[_0x469f69[_0x4c7c('0x8b')]-0x1][_0x4c7c('0xb')]||(_0x2f6fd7[_0x4c7c('0x3a')]=_0x32375b((..._0xa2e5de)=>_0x3d7d44[_0x4c7c('0x4e')](..._0xa2e5de,{'forceDefaultExecution':!0x0}),..._0x469f69),_0x2f6fd7[_0x4c7c('0x8e')]()));},{'priority':'high'});}['forceDefaultExecution'](_0xf2d782){let _0x4b8f0f,_0x22c4f0;const _0x5c84a9=this[_0x4c7c('0x1b')];this[_0x4c7c('0x1b')]=!0x0;try{_0x4b8f0f=_0xf2d782();}catch(_0x4bad65){_0x22c4f0=_0x4bad65;}return _0x5c84a9||(this[_0x4c7c('0x1b')]=!0x1),_0x22c4f0&&_0x81df42['rethrowUnexpectedError'](_0x22c4f0,this),_0x4b8f0f;}[_0x4c7c('0x121')](_0x515a67,_0x919990=null,_0x37129a={}){if(_0x515a67[_0x4c7c('0x13e')])return null;const _0x1a8409=this['editor'][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'];for(const {suggestion:_0x42ee95,meta:_0x1172cf}of this[_0x4c7c('0x9c')](_0x515a67,_0x4c7c('0x78')))if(_0x1172cf['isOwn']){if(!_0x1172cf[_0x4c7c('0x98')]){if(_0x1172cf[_0x4c7c('0x18')]){if(!this[_0x4c7c('0xf2')]||!Ot(_0x42ee95,_0x37129a))continue;return _0x42ee95;}if(Ot(_0x42ee95,_0x37129a))return _0x42ee95;this[_0x4c7c('0xe6')](_0x42ee95,_0x515a67[_0x4c7c('0x7d')],_0x515a67[_0x4c7c('0xcf')]);break;}if(_0x919990==_0x42ee95[_0x4c7c('0x4f')]&&Ot(_0x42ee95,_0x37129a)){const _0x5f469e=_0x42ee95[_0x4c7c('0x7c')]();return _0x5f469e[_0x4c7c('0x7d')][_0x4c7c('0x9e')](_0x515a67[_0x4c7c('0xcf')])?this[_0x4c7c('0x10')](_0x42ee95,this[_0x4c7c('0x70')][_0x4c7c('0xb1')](_0x515a67[_0x4c7c('0x7d')],_0x5f469e['end'])):this['_setSuggestionRange'](_0x42ee95,this[_0x4c7c('0x70')][_0x4c7c('0xb1')](_0x5f469e[_0x4c7c('0x7d')],_0x515a67[_0x4c7c('0xcf')])),_0x42ee95;}}const _0x53c70d=_0x52451d(),_0x47ad8e=_0x1a8409['id'],_0x6460d5=_0x919990?_0x4c7c('0x112')+_0x919990:'insertion',_0x8c621c=this[_0x4c7c('0xdb')]({'id':_0x53c70d,'type':_0x6460d5,'createdAt':new Date(),'authorId':_0x47ad8e,'attributes':_0x37129a});return this['_addSuggestionMarker'](_0x6460d5,_0x53c70d,_0x47ad8e,_0x515a67),_0x8c621c;}[_0x4c7c('0x5c')](_0x237c9c,_0x21a65b=_0x4c7c('0x92'),_0x20a31d={}){const _0x352ec3=this['editor']['plugins']['get']('Users')['me'],_0x10f1d7=this['_suggestionFactory'][_0x4c7c('0xd6')](_0x4c7c('0x78'),_0x21a65b,_0x4c7c('0xe0'));for(const _0x561064 of this['getSuggestions']())if(_0x561064[_0x4c7c('0x2')]['id']==_0x352ec3['id']&&_0x4c7c('0x78')==_0x561064[_0x4c7c('0x108')]&&_0x561064[_0x4c7c('0x4f')]==_0x21a65b&&Ot(_0x561064,_0x20a31d)&&(_0x10f1d7(_0x561064[_0x4c7c('0x76')](),_0x237c9c)||_0x10f1d7(_0x237c9c,_0x561064[_0x4c7c('0x76')]()))){for(const _0x25ec3e of _0x237c9c)_0x561064['addRange'](_0x25ec3e);return _0x561064;}for(const {suggestion:_0x298b89,meta:_0x3bb698}of this[_0x4c7c('0x9c')](_0x237c9c,_0x4c7c('0x78'))){if(!_0x3bb698[_0x4c7c('0x137')])continue;if(!this[_0x4c7c('0xf2')]&&_0x3bb698[_0x4c7c('0x18')])continue;if(!Ot(_0x298b89,_0x20a31d))continue;let _0x1d889e=!0x0;for(const _0x3f0f10 of _0x298b89[_0x4c7c('0x76')]())for(const _0x192570 of _0x237c9c)if(!_0x3f0f10['containsRange'](_0x192570)){_0x1d889e=!0x1;break;}if(_0x1d889e)return _0x298b89;}const _0x487a34=_0x52451d(),_0x2b3829=_0x352ec3['id'],_0x11c288=_0x4c7c('0x112')+_0x21a65b,_0x7d762d=this['_setSuggestionData']({'id':_0x487a34,'type':_0x11c288,'createdAt':new Date(),'authorId':_0x2b3829,'attributes':_0x20a31d});for(const _0x4b06eb of _0x237c9c)this['_addSuggestionMarker'](_0x11c288,_0x487a34,_0x2b3829,_0x4b06eb,_0x5a82f6[_0x4c7c('0x37')]());return _0x7d762d;}[_0x4c7c('0xd0')](_0x5ce390,_0x53c551,_0x2c8e60=null,_0x750c3b={}){if(_0x2c8e60=_0x2c8e60||Nt(_0x53c551),_0x5ce390[_0x4c7c('0x13e')])return null;if('never'===this[_0x4c7c('0xd8')]){const _0x5a6771=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x100'),_0x2c8e60,'accept');return this[_0x4c7c('0xb')](()=>_0x5a6771([_0x5ce390],_0x53c551,_0x750c3b)),null;}const _0x338ac2=this[_0x4c7c('0x21')][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'],_0x633e28=[];if(_0x4c7c('0x5e')!==this[_0x4c7c('0xd8')])for(const {suggestion:_0x5d2366,meta:_0x1affae}of this['_findSuggestions'](_0x5ce390,_0x4c7c('0x78')))_0x1affae[_0x4c7c('0x137')]&&!_0x1affae[_0x4c7c('0xe1')]&&_0x633e28[_0x4c7c('0x43')](..._0x5d2366[_0x4c7c('0x76')]());const _0x39ba9a=function(_0x3b44dc,_0x3eed85){const _0x33d0e5=[];for(const _0x196772 of _0x3eed85){const _0x15660=_0x3b44dc['getIntersection'](_0x196772);_0x15660&&_0x33d0e5[_0x4c7c('0x43')](_0x15660);}return _0x33d0e5;}(_0x5ce390,_0x633e28),_0x407fa0=function(_0x4ede48,_0x1fceb9){const _0x5ed691=[_0x4ede48];for(const _0x3031cc of _0x1fceb9){let _0x1d7923=0x0;for(;_0x1d7923<_0x5ed691['length'];){const _0x957fce=_0x5ed691[_0x1d7923][_0x4c7c('0x10b')](_0x3031cc);_0x5ed691[_0x4c7c('0xf6')](_0x1d7923,0x1,..._0x957fce),_0x1d7923+=_0x957fce[_0x4c7c('0x8b')];}}return _0x5ed691;}(_0x5ce390,_0x633e28);_0x39ba9a['length']&&this['_model'][_0x4c7c('0x109')](()=>{for(const _0x2be525 of _0x39ba9a){const _0x2e7e7e=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')]('formatInline',_0x2c8e60,'accept');this[_0x4c7c('0xb')](()=>_0x2e7e7e([_0x2be525],_0x53c551,_0x750c3b));}});for(const _0x236339 of _0x407fa0){let _0x23d19c=null,_0x477cb8=_0x236339[_0x4c7c('0x7d')],_0x77a81f=_0x236339[_0x4c7c('0xcf')];for(const {suggestion:_0x25ac3b,meta:_0x234acd}of this['_findSuggestions'](_0x236339,'formatInline')){if(!_0x234acd[_0x4c7c('0x137')])continue;if(_0x25ac3b[_0x4c7c('0x4f')]!=_0x2c8e60)continue;if(!Ot(_0x25ac3b,_0x750c3b))continue;const _0x123ea2=_0x25ac3b['getFirstRange']();if(_0x123ea2['containsRange'](_0x236339,!0x0))return null;_0x477cb8=_0x477cb8[_0x4c7c('0xf')](_0x123ea2[_0x4c7c('0x7d')])?_0x477cb8:_0x123ea2['start'],_0x77a81f=_0x77a81f[_0x4c7c('0xa1')](_0x123ea2[_0x4c7c('0xcf')])?_0x77a81f:_0x123ea2[_0x4c7c('0xcf')],_0x23d19c?_0x123ea2[_0x4c7c('0x7d')][_0x4c7c('0xf')](_0x23d19c[_0x4c7c('0x7c')]()[_0x4c7c('0x7d')])?(_0x23d19c['removeMarkers'](),_0x23d19c=_0x25ac3b):_0x25ac3b[_0x4c7c('0x38')]():_0x23d19c=_0x25ac3b;}const _0x223d74=this['_model'][_0x4c7c('0xb1')](_0x477cb8,_0x77a81f);if(_0x23d19c)this['_setSuggestionRange'](_0x23d19c,_0x223d74);else{const _0x14a300=_0x52451d(),_0x6c5c3=_0x338ac2['id'];this[_0x4c7c('0xdb')]({'id':_0x14a300,'type':'formatInline:'+_0x2c8e60,'data':_0x53c551,'createdAt':new Date(),'authorId':_0x6c5c3,'attributes':_0x750c3b}),this['_addSuggestionMarker'](_0x4c7c('0x93')+_0x2c8e60,_0x14a300,_0x6c5c3,_0x223d74);}}return null;}['markBlockFormat'](_0x5ec617,_0x35d159,_0x42afd0=[],_0x2f3469=null,_0x4b980e={}){_0x35d159[_0x4c7c('0x42')]||(_0x35d159['formatGroupId']=_0x35d159['commandName']),_0x35d159[_0x4c7c('0x47')]=_0x5ec617['is'](_0x4c7c('0x30')),_0x2f3469=_0x2f3469||Nt(_0x35d159);const _0x5d1b63=_0x42afd0['map'](_0x734e38=>jt(_0x734e38,this['_model'])),_0x8805ce=_0x5ec617['is'](_0x4c7c('0x30'))?_0x5ec617:jt(_0x5ec617,this[_0x4c7c('0x70')]);if(_0x4c7c('0xab')===this['_trackFormatChanges']){const _0x5342ff=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x86'),_0x2f3469,_0x4c7c('0xed'));return this[_0x4c7c('0xb')](()=>_0x5342ff([_0x8805ce],_0x35d159,_0x4b980e)),null;}_0x5d1b63['push'](_0x8805ce);let _0x4ed49e=!0x0;for(const _0x50cf93 of _0x5d1b63)if(!this[_0x4c7c('0xf3')](_0x50cf93)){_0x4ed49e=!0x1;break;}if(_0x4ed49e&&_0x4c7c('0x5e')!==this['_trackFormatChanges']){const _0x2ecfa4=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x86'),_0x2f3469,_0x4c7c('0xed'));return this[_0x4c7c('0xb')](()=>_0x2ecfa4([_0x8805ce],_0x35d159,_0x4b980e)),null;}let _0x1a2edd=null,_0x156aca=_0x8805ce[_0x4c7c('0x7d')],_0xec1817=_0x8805ce[_0x4c7c('0xcf')];for(const {suggestion:_0x282eb5,meta:_0x9cd8f1}of this['_findSuggestions'](_0x8805ce,_0x4c7c('0x86'))){if(!_0x9cd8f1[_0x4c7c('0x137')])continue;if(_0x9cd8f1['isNextTo']||_0x9cd8f1[_0x4c7c('0x18')]||_0x9cd8f1[_0x4c7c('0xe1')])continue;if(_0x282eb5[_0x4c7c('0x79')][_0x4c7c('0x42')]!=_0x35d159[_0x4c7c('0x42')])continue;if(!Ot(_0x282eb5,_0x4b980e))continue;const _0x708c1d=_0x282eb5['getFirstRange']();if(_0x282eb5[_0x4c7c('0x4f')]==_0x2f3469){if(_0x708c1d[_0x4c7c('0xa4')](_0x8805ce,!0x0))return null;_0x156aca=_0x156aca[_0x4c7c('0xf')](_0x708c1d[_0x4c7c('0x7d')])?_0x156aca:_0x708c1d[_0x4c7c('0x7d')],_0xec1817=_0xec1817[_0x4c7c('0xa1')](_0x708c1d[_0x4c7c('0xcf')])?_0xec1817:_0x708c1d[_0x4c7c('0xcf')],_0x1a2edd?_0x708c1d['start'][_0x4c7c('0xf')](_0x1a2edd[_0x4c7c('0x7c')]()[_0x4c7c('0x7d')])?(_0x1a2edd[_0x4c7c('0x38')](),_0x1a2edd=_0x282eb5):_0x282eb5['removeMarkers']():_0x1a2edd=_0x282eb5;}else{const _0xb6c506=_0x8805ce[_0x4c7c('0x10e')](_0x708c1d);this[_0x4c7c('0x13')](_0x282eb5,_0xb6c506);}}const _0x4ce919=this[_0x4c7c('0x21')][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'],_0x5a20b6=_0x52451d(),_0x5df202=_0x4ce919['id'];if(_0x1a2edd)return this[_0x4c7c('0x10')](_0x1a2edd,this[_0x4c7c('0x70')]['createRange'](_0x156aca,_0xec1817)),_0x1a2edd;{const _0x304cc8=this[_0x4c7c('0xdb')]({'id':_0x5a20b6,'type':'formatBlock:'+_0x2f3469,'data':_0x35d159,'createdAt':new Date(),'authorId':_0x5df202,'attributes':_0x4b980e});return this[_0x4c7c('0xec')](_0x4c7c('0x10a')+_0x2f3469,_0x5a20b6,_0x5df202,this['_model'][_0x4c7c('0xb1')](_0x156aca,_0xec1817)),_0x304cc8;}}[_0x4c7c('0xcd')](_0x2000cf,_0x446544,_0x3a1b0c=[],_0x13a487=null,_0x1f2487={}){_0x446544['formatGroupId']||(_0x446544[_0x4c7c('0x42')]=_0x446544[_0x4c7c('0x71')]);const _0x4e9017=_0x2000cf[0x0];_0x446544[_0x4c7c('0x47')]=_0x4e9017['is'](_0x4c7c('0x30')),_0x13a487=_0x13a487||Nt(_0x446544);const _0x3eb783=_0x3a1b0c[_0x4c7c('0xc9')](_0x5142a0=>jt(_0x5142a0,this['_model'])),_0x2fb6d6=_0x4e9017['is'](_0x4c7c('0x30'))?_0x2000cf:_0x2000cf[_0x4c7c('0xc9')](_0x4d3e7f=>jt(_0x4d3e7f,this[_0x4c7c('0x70')]));if(_0x4c7c('0xab')===this[_0x4c7c('0xd8')]){const _0xbf3a9f=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x86'),_0x13a487,_0x4c7c('0xed'));return this[_0x4c7c('0xb')](()=>_0xbf3a9f(_0x2fb6d6,_0x446544,_0x1f2487)),null;}_0x3eb783['push'](..._0x2fb6d6);let _0x588524=!0x0;for(const _0x168b4a of _0x3eb783)if(!this['_rangeIsInLocalUserInsertion'](_0x168b4a)){_0x588524=!0x1;break;}if(_0x588524&&_0x4c7c('0x5e')!==this[_0x4c7c('0xd8')]){const _0x258a32=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x86'),_0x13a487,_0x4c7c('0xed'));return this[_0x4c7c('0xb')](()=>_0x258a32(_0x2fb6d6,_0x446544,_0x1f2487)),null;}const _0x3fddb2=this[_0x4c7c('0x21')][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'];for(const _0xe2cd1d of this[_0x4c7c('0x44')]()){if(_0xe2cd1d[_0x4c7c('0x2')]['id']!=_0x3fddb2['id'])continue;if(_0x4c7c('0x86')!=_0xe2cd1d[_0x4c7c('0x108')]||_0xe2cd1d[_0x4c7c('0x79')]['formatGroupId']!=_0x446544[_0x4c7c('0x42')])continue;if(!Ot(_0xe2cd1d,_0x1f2487))continue;const _0x13baf2=_0xe2cd1d[_0x4c7c('0x4f')]==_0x13a487;for(let _0x4b3347=0x0;_0x4b3347<_0x2fb6d6[_0x4c7c('0x8b')];_0x4b3347++){const _0x682d78=_0x2fb6d6[_0x4b3347];for(const _0x396ddf of _0xe2cd1d[_0x4c7c('0x57')]()){const _0x57f288=_0x396ddf[_0x4c7c('0x16')]();if(_0x682d78[_0x4c7c('0x9e')](_0x57f288)){_0x13baf2?(_0x2fb6d6[_0x4c7c('0xf6')](_0x4b3347,0x1),_0x4b3347--):_0xe2cd1d['removeMarker'](_0x396ddf['name']);break;}}}}if(0x0==_0x2fb6d6[_0x4c7c('0x8b')])return null;const _0x18a73f=this[_0x4c7c('0x8c')]['getSuggestionCallback'](_0x4c7c('0x86'),_0x13a487,_0x4c7c('0xe0'));for(const _0x3ce629 of this[_0x4c7c('0x44')]())if(_0x3ce629['author']['id']==_0x3fddb2['id']&&_0x4c7c('0x86')==_0x3ce629[_0x4c7c('0x108')]&&_0x3ce629['data'][_0x4c7c('0x42')]==_0x446544[_0x4c7c('0x42')]&&_0x3ce629[_0x4c7c('0x4f')]==_0x13a487&&Ot(_0x3ce629,_0x1f2487)&&(_0x18a73f(_0x3ce629[_0x4c7c('0x76')](),_0x2fb6d6)||_0x18a73f(_0x2fb6d6,_0x3ce629[_0x4c7c('0x76')]()))){for(const _0x983e37 of _0x2fb6d6)_0x3ce629[_0x4c7c('0xa3')](_0x983e37);return _0x3ce629;}const _0x1ef2cd=_0x52451d(),_0x2eacd7=_0x3fddb2['id'],_0x616b34=_0x4c7c('0x10a')+_0x13a487,_0x1db95f=this[_0x4c7c('0xdb')]({'id':_0x1ef2cd,'type':_0x616b34,'data':_0x446544,'createdAt':new Date(),'authorId':_0x2eacd7,'attributes':_0x1f2487});for(const _0x2a327f of _0x2fb6d6)this[_0x4c7c('0xec')](_0x616b34,_0x1ef2cd,_0x2eacd7,_0x2a327f,_0x5a82f6[_0x4c7c('0x37')]());return _0x1db95f;}[_0x4c7c('0x75')](_0x517c71,_0x386679=null,_0x30a741={}){if(_0x517c71[_0x4c7c('0x13e')])return null;const _0x34bcc5=this[_0x4c7c('0x21')]['plugins'][_0x4c7c('0x41')]('Users')['me'],_0x411f64=new _0x4f665b(_0x517c71['start'],_0x517c71[_0x4c7c('0xcf')]);for(const {suggestion:_0x26cd3a,meta:_0x58bb3c}of this[_0x4c7c('0x9c')](_0x411f64,_0x4c7c('0x78')))if(_0x58bb3c[_0x4c7c('0x137')]&&!_0x58bb3c[_0x4c7c('0x98')]){if(_0x26cd3a[_0x4c7c('0xaa')]){const _0x3cc5a5=_0x26cd3a['getRanges']()['filter'](_0xf878b6=>'$graveyard'!=_0xf878b6[_0x4c7c('0x68')][_0x4c7c('0x129')]);_0x3cc5a5[_0x4c7c('0xb0')](_0x2e0453=>_0x411f64['containsRange'](_0x2e0453,!0x0))&&_0x26cd3a[_0x4c7c('0x11b')]();if(_0x3cc5a5['some'](_0xe70c12=>_0xe70c12['containsRange'](_0x411f64,!0x0))){const _0x2c2fb0=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')]('deletion',_0x386679,'accept');return this[_0x4c7c('0xb')](()=>_0x2c2fb0([_0x411f64],null,_0x30a741)),null;}}else{const _0x34be7f=_0x411f64['getIntersection'](_0x26cd3a[_0x4c7c('0x7c')]());null!==_0x34be7f&&_0x26cd3a[_0x4c7c('0x26')]([_0x34be7f],null,_0x30a741);}}if(_0x411f64[_0x4c7c('0x8f')](),_0x411f64['isCollapsed']||_0x4c7c('0x116')==_0x411f64[_0x4c7c('0x68')]['rootName'])return null;let _0x3298f9=null,_0x2671e9=_0x411f64[_0x4c7c('0x7d')],_0x656bb9=_0x411f64[_0x4c7c('0xcf')];const _0xdf1641=this[_0x4c7c('0x9c')](_0x411f64,_0x4c7c('0x6e'));for(const {suggestion:_0x250210,meta:_0x389af8}of _0xdf1641){const _0x152bde=this[_0x4c7c('0x70')][_0x4c7c('0xb1')](_0x2671e9,_0x656bb9);if(_0x389af8[_0x4c7c('0x137')]&&(this[_0x4c7c('0xf2')]||!_0x389af8[_0x4c7c('0x18')]&&!_0x389af8[_0x4c7c('0xe1')])){if(_0x250210['isMultiRange']){if(!Ot(_0x250210,_0x30a741))continue;let _0x2f3918=!0x0;for(const _0x891a69 of _0x250210['getRanges']()){if(_0x891a69['containsRange'](_0x152bde,!0x0))return _0x250210;_0x152bde['containsRange'](_0x891a69)||(_0x2f3918=!0x1);}_0x2f3918&&_0x250210['discard']();}else{const _0x209543=_0x250210[_0x4c7c('0x7c')]();if(_0x209543[_0x4c7c('0xa4')](_0x152bde,!0x0))return _0x250210;if(!Ot(_0x250210,_0x30a741)){_0x152bde[_0x4c7c('0xa4')](_0x209543)?_0x250210[_0x4c7c('0x38')]():_0x209543['containsPosition'](_0x2671e9)?_0x2671e9=_0x209543['end']:_0x209543[_0x4c7c('0x5a')](_0x656bb9)&&(_0x656bb9=_0x209543['start']);continue;}_0x2671e9=_0x2671e9['isBefore'](_0x209543[_0x4c7c('0x7d')])?_0x2671e9:_0x209543[_0x4c7c('0x7d')],_0x656bb9=_0x656bb9[_0x4c7c('0xa1')](_0x209543['end'])?_0x656bb9:_0x209543[_0x4c7c('0xcf')],_0x30a741=Object[_0x4c7c('0xb2')]({},_0x250210[_0x4c7c('0x31')]),_0x3298f9?_0x209543[_0x4c7c('0x7d')][_0x4c7c('0xf')](_0x3298f9[_0x4c7c('0x7c')]()[_0x4c7c('0x7d')])?(_0x3298f9['removeMarkers'](),_0x3298f9=_0x250210):_0x250210[_0x4c7c('0x38')]():_0x3298f9=_0x250210;}}}if(_0x3298f9)return this[_0x4c7c('0x10')](_0x3298f9,this[_0x4c7c('0x70')]['createRange'](_0x2671e9,_0x656bb9)),_0x3298f9;{const _0x32343f=_0x52451d(),_0x327bf7=this[_0x4c7c('0x70')]['createRange'](_0x2671e9,_0x656bb9),_0x50938c=_0x34bcc5['id'],_0x261640=_0x386679?_0x4c7c('0x10f')+_0x386679:_0x4c7c('0x6e'),_0x58afd8=this[_0x4c7c('0xdb')]({'id':_0x32343f,'type':_0x261640,'createdAt':new Date(),'authorId':_0x50938c,'attributes':_0x30a741});return this[_0x4c7c('0xec')](_0x261640,_0x32343f,_0x50938c,_0x327bf7),_0x58afd8;}}[_0x4c7c('0x12a')](_0x3bd9b1,_0x500f86=_0x4c7c('0x92'),_0x8de20a={}){const _0x3eebaf=this['editor']['plugins'][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'],_0x925571=_0x3bd9b1[_0x4c7c('0xc9')](_0x5963fc=>new _0x4f665b(_0x5963fc[_0x4c7c('0x7d')],_0x5963fc[_0x4c7c('0xcf')])),_0x51d4f8=new Set();for(const {suggestion:_0x2c1797,meta:_0xeeb1d8}of this[_0x4c7c('0x9c')](_0x925571,_0x4c7c('0x78')))_0xeeb1d8[_0x4c7c('0x137')]&&!_0xeeb1d8[_0x4c7c('0x98')]&&_0x51d4f8[_0x4c7c('0x107')](_0x2c1797);for(const _0x1ffe8f of _0x51d4f8)if(_0x1ffe8f[_0x4c7c('0xaa')]){const _0x44be1d=_0x1ffe8f[_0x4c7c('0x76')]();(!_0x1ffe8f[_0x4c7c('0x31')]||!_0x1ffe8f['attributes']['skipNestingCheck'])&&(_0x44be1d['every'](_0x4dce0a=>_0x925571['some'](_0x88f895=>_0x88f895[_0x4c7c('0xa4')](_0x4dce0a,!0x0)))&&_0x1ffe8f[_0x4c7c('0x11b')]());if(_0x925571[_0x4c7c('0xb0')](_0xd5d563=>_0x44be1d[_0x4c7c('0xdc')](_0x5a3277=>_0x5a3277[_0x4c7c('0xa4')](_0xd5d563,!0x0)))){const _0x3dff24=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')]('deletion',_0x500f86,'accept');return this['forceDefaultExecution'](()=>_0x3dff24(_0x3bd9b1,null,_0x8de20a)),null;}}else{const _0x50480a=_0x1ffe8f['getFirstRange']();_0x925571[_0x4c7c('0xdc')](_0x2c245a=>_0x2c245a[_0x4c7c('0xa4')](_0x50480a,!0x0))&&_0x1ffe8f['discard']();if(_0x925571[_0x4c7c('0xb0')](_0x4f669f=>_0x50480a['containsRange'](_0x4f669f,!0x0))){const _0x35d033=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x6e'),_0x500f86,_0x4c7c('0xed'));return this['forceDefaultExecution'](()=>_0x35d033(_0x925571,null,_0x8de20a)),null;}}const _0x2408e6=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x6e'),_0x500f86,_0x4c7c('0xe0'));let _0x4520f7=null;for(const _0x3b9e06 of this[_0x4c7c('0x44')]())if(_0x3b9e06['author']['id']==_0x3eebaf['id']&&_0x3b9e06[_0x4c7c('0x3f')]&&'deletion'==_0x3b9e06['type']&&_0x3b9e06[_0x4c7c('0x4f')]==_0x500f86&&Ot(_0x3b9e06,_0x8de20a)&&(_0x2408e6(_0x3b9e06[_0x4c7c('0x76')](),_0x925571)||_0x2408e6(_0x925571,_0x3b9e06['getRanges']()))){if(_0x4520f7){if(_0x3b9e06[_0x4c7c('0x2a')]&&_0x3b9e06[_0x4c7c('0x2a')][_0x4c7c('0x8b')])continue;for(const _0x310f4b of _0x3b9e06[_0x4c7c('0x76')]())_0x4520f7[_0x4c7c('0x1')](_0x310f4b)||_0x4520f7[_0x4c7c('0xa3')](_0x310f4b);_0x3b9e06[_0x4c7c('0x38')]();}else{_0x4520f7=_0x3b9e06;for(const _0x127c9c of _0x925571)_0x3b9e06[_0x4c7c('0x1')](_0x127c9c)||_0x3b9e06[_0x4c7c('0xa3')](_0x127c9c);}}if(_0x4520f7)return _0x4520f7;_0x51d4f8[_0x4c7c('0x138')]();for(const {suggestion:_0x601476,meta:_0x57547f}of this[_0x4c7c('0x9c')](_0x925571,_0x4c7c('0x6e')))_0x57547f[_0x4c7c('0x137')]&&(this[_0x4c7c('0xf2')]||!_0x57547f['containsRangeInObject']&&!_0x57547f[_0x4c7c('0xe1')])&&Ot(_0x601476,_0x8de20a)&&_0x51d4f8['add'](_0x601476);for(const _0x5307a7 of _0x51d4f8){const _0x5b89d4=_0x5307a7[_0x4c7c('0x76')]();if(!_0x8de20a||!_0x8de20a['skipNestingCheck']){if(_0x925571['every'](_0x5d5c4a=>_0x5b89d4['some'](_0x2ccf62=>_0x2ccf62[_0x4c7c('0xa4')](_0x5d5c4a,!0x0))))return _0x5307a7;}(!_0x5307a7[_0x4c7c('0x31')]||!_0x5307a7[_0x4c7c('0x31')][_0x4c7c('0x95')])&&(_0x5b89d4[_0x4c7c('0xb0')](_0x1f0d88=>_0x925571[_0x4c7c('0xdc')](_0x395225=>_0x395225[_0x4c7c('0xa4')](_0x1f0d88,!0x0)))&&_0x5307a7[_0x4c7c('0x11b')]());}const _0x305320=_0x52451d(),_0x224fe9=_0x3eebaf['id'],_0x5537ff=_0x4c7c('0x10f')+_0x500f86,_0x1c5a7e=this[_0x4c7c('0xdb')]({'id':_0x305320,'type':_0x5537ff,'createdAt':new Date(),'authorId':_0x224fe9,'attributes':_0x8de20a});for(const _0x3c7d37 of _0x925571)_0x3c7d37[_0x4c7c('0x8f')](),_0x3c7d37[_0x4c7c('0x13e')]||_0x4c7c('0x116')==_0x3c7d37['root']['rootName']||this[_0x4c7c('0xec')](_0x5537ff,_0x305320,_0x224fe9,_0x3c7d37,_0x5a82f6[_0x4c7c('0x37')]());return _0x1c5a7e;}[_0x4c7c('0x10')](_0x516b81,_0x13f324){const _0x859bbe=_0x516b81[_0x4c7c('0x59')]();this[_0x4c7c('0x70')][_0x4c7c('0x109')](_0xd96ef3=>{_0xd96ef3[_0x4c7c('0x85')](_0x859bbe,{'range':_0x13f324});});}[_0x4c7c('0x6a')](_0x1e8407){const _0x5313e7=_0x1e8407['id'],_0x58ec41=this['editor'][_0x4c7c('0x3b')][_0x4c7c('0x41')](_0x4c7c('0xc'));this[_0x4c7c('0x77')][_0x4c7c('0x89')](_0x5313e7)||this[_0x4c7c('0x77')][_0x4c7c('0x65')]({'channelId':_0x58ec41,'threadId':_0x5313e7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x468007=this[_0x4c7c('0x77')]['getCommentThread'](_0x5313e7);_0x468007[_0x4c7c('0xef')](_0x4c7c('0x67')),_0x468007[_0x4c7c('0x67')]=!0x1,_0x1e8407[_0x4c7c('0x2a')]=_0x468007;}[_0x4c7c('0x82')](_0x4c5c19,_0x5ccae4,_0x9aec1e,_0x815e40){if(_0x4c5c19[_0x4c7c('0x108')]!=_0x5ccae4||_0x4c5c19[_0x4c7c('0x4f')]!=_0x9aec1e||_0x4c5c19[_0x4c7c('0xc2')]['id']!=_0x815e40)throw this[_0x4c7c('0x21')][_0x4c7c('0x110')](_0x4c7c('0xbf')),new _0x81df42(_0x4c7c('0xbf'),this);}[_0x4c7c('0x13')](_0x2b1bc5,_0x11cb20){const _0x347def=_0x2b1bc5['getFirstRange']();if(_0x11cb20[_0x4c7c('0x9e')](_0x347def))_0x2b1bc5['removeMarkers']();else{if(_0x347def[_0x4c7c('0xa4')](_0x11cb20)){const _0x47709f=this[_0x4c7c('0x70')][_0x4c7c('0x53')](_0x11cb20[_0x4c7c('0x7d')][_0x4c7c('0xff')],_0x4c7c('0xcf'));this['_setSuggestionRange'](_0x2b1bc5,this[_0x4c7c('0x70')]['createRange'](_0x347def['start'],_0x47709f));const _0x4a89a1=_0x52451d(),_0x17dfd1=_0x2b1bc5['creator']['id'],_0x7828ac=_0x2b1bc5[_0x4c7c('0x108')]+':'+_0x2b1bc5[_0x4c7c('0x4f')];this['_setSuggestionData']({'id':_0x4a89a1,'type':_0x7828ac,'createdAt':new Date(),'authorId':_0x17dfd1,'data':_0x2b1bc5['data'],'attributes':_0x2b1bc5[_0x4c7c('0x31')]});const _0x268d26=this['_model'][_0x4c7c('0x53')](_0x11cb20[_0x4c7c('0xcf')][_0x4c7c('0x1d')],_0x4c7c('0x25')),_0x117128=this['_model']['createRange'](_0x268d26,_0x347def['end']);this[_0x4c7c('0xec')](_0x7828ac,_0x4a89a1,_0x17dfd1,_0x117128);}else{if(_0x347def[_0x4c7c('0x5a')](_0x11cb20[_0x4c7c('0x7d')])){const _0x4da06e=this[_0x4c7c('0x70')][_0x4c7c('0x53')](_0x11cb20[_0x4c7c('0x7d')][_0x4c7c('0xff')],_0x4c7c('0xcf'));this[_0x4c7c('0x10')](_0x2b1bc5,this['_model']['createRange'](_0x347def[_0x4c7c('0x7d')],_0x4da06e));}else{const _0x9c9f9a=this['_model'][_0x4c7c('0x53')](_0x11cb20[_0x4c7c('0xcf')]['parent'],_0x4c7c('0x25'));this[_0x4c7c('0x10')](_0x2b1bc5,this['_model']['createRange'](_0x9c9f9a,_0x347def[_0x4c7c('0xcf')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2b21e7){for(const {suggestion:_0x47d600,meta:_0x3f58f3}of this['_findSuggestions'](_0x2b21e7,_0x4c7c('0x78'))){if(!_0x3f58f3[_0x4c7c('0x137')])continue;const _0x579c0a=_0x47d600['getRanges']();for(const _0xea0549 of _0x579c0a)if(!_0x2b21e7[_0x4c7c('0x10b')](_0xea0549)[_0x4c7c('0x8b')])return!0x0;}return!0x1;}[_0x4c7c('0x135')](_0x387181){const _0x36d82f=this['editor'][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))[_0x4c7c('0x13d')](_0x387181);if(!_0x36d82f)throw new _0x81df42('track-changes-user-not-found',this);return _0x36d82f;}[_0x4c7c('0x11c')](_0x15e209){const _0x4d9126=this[_0x4c7c('0x21')][_0x4c7c('0x12c')]['get'](_0x4c7c('0x13b')),_0x5611e1=_0x4eb39b(_0x4c7c('0x32')+_0x15e209),_0x32542b=_0x4d9126['getUser'](_0x5611e1);return _0x32542b||_0x4d9126[_0x4c7c('0x49')]({'id':_0x5611e1,'name':_0x15e209});}[_0x4c7c('0xa0')](_0x1e3858,_0x16c4fd,_0x4d4b5b,_0xedfc76,_0x42c5aa){const _0x4154fa=this['_getAuthorFromId'](_0xedfc76),_0x41321c=this[_0x4c7c('0x8c')][_0x4c7c('0x14')](_0x1e3858,_0x16c4fd,_0x4d4b5b,_0x4154fa,_0x42c5aa,_0x1540ba=>this[_0x4c7c('0xa8')](_0x4d4b5b,{'attributes':_0x1540ba}));return this[_0x4c7c('0x74')](_0x41321c,_0x4c7c('0xed'),()=>{this[_0x4c7c('0xa8')](_0x4d4b5b,{'state':_0x4c7c('0xe4')});},{'priority':_0x4c7c('0x111')}),this[_0x4c7c('0x74')](_0x41321c,'discard',()=>{this[_0x4c7c('0xa8')](_0x4d4b5b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4d4b5b,_0x41321c),this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0x41321c,_0x4c7c('0x11d')),_0x41321c;}[_0x4c7c('0x4c')](_0x2a3729){const _0x33183f=_0x2a3729[_0x4c7c('0x40')](':');return{'group':_0x33183f[0x0],'type':_0x33183f[0x1],'subType':_0x33183f['length']>=0x5?_0x33183f[0x2]:null,'id':_0x33183f[_0x4c7c('0x8b')]<0x5?_0x33183f[0x2]:_0x33183f[0x3],'authorId':_0x33183f[_0x4c7c('0x8b')]<0x5?_0x33183f[0x3]:_0x33183f[0x4],'markerCount':0x6==_0x33183f[_0x4c7c('0x8b')]?_0x33183f[0x5]:null};}['_breakSuggestionMarker'](_0x4d5ecc,_0x709a64,_0xa15e01){const _0x1179b1=_0x4d5ecc[_0x4c7c('0x7c')](),_0xa9a206=_0x1179b1[_0x4c7c('0x7d')],_0x1e64f2=_0x1179b1[_0x4c7c('0xcf')];this['_setSuggestionRange'](_0x4d5ecc,this[_0x4c7c('0x70')][_0x4c7c('0xb1')](_0xa9a206,_0x709a64));const _0x95637e=_0x52451d(),_0x48e8a1=_0x4d5ecc[_0x4c7c('0xc2')]['id'],_0x487966=_0x4d5ecc['type']+(_0x4d5ecc[_0x4c7c('0x4f')]?':'+_0x4d5ecc[_0x4c7c('0x4f')]:'');this[_0x4c7c('0xdb')]({'id':_0x95637e,'type':_0x487966,'createdAt':new Date(),'authorId':_0x48e8a1,'originalSuggestionId':_0x4d5ecc['id'],'attributes':_0x4d5ecc[_0x4c7c('0x31')],'data':_0x4d5ecc[_0x4c7c('0x79')]}),_0x4c7c('0x86')==_0x4d5ecc[_0x4c7c('0x108')]&&(_0xa15e01=this['_model'][_0x4c7c('0x136')](_0xa15e01[_0x4c7c('0x1d')])),this[_0x4c7c('0xec')](_0x487966,_0x95637e,_0x48e8a1,this[_0x4c7c('0x70')]['createRange'](_0xa15e01,_0x1e64f2));}[_0x4c7c('0x9c')](_0x4b5afe,_0x8644ab=null){const _0x43e825=[],_0x459507=this[_0x4c7c('0x21')][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'];Array[_0x4c7c('0xc1')](_0x4b5afe)||(_0x4b5afe=[_0x4b5afe]);for(const _0x27929f of this[_0x4c7c('0x44')]()){if(!_0x27929f[_0x4c7c('0x3f')])continue;if(_0x8644ab&&_0x27929f[_0x4c7c('0x108')]!=_0x8644ab)continue;let _0x7d1bf8=!0x1;for(const _0x2d67ca of _0x27929f['getRanges']()){for(const _0x3af929 of _0x4b5afe){const _0x45425c=_0x3af929[_0x4c7c('0x7d')][_0x4c7c('0x9e')](_0x2d67ca[_0x4c7c('0xcf')])||_0x3af929[_0x4c7c('0xcf')][_0x4c7c('0x9e')](_0x2d67ca[_0x4c7c('0x7d')]);if(_0x45425c||_0x3af929['getIntersection'](_0x2d67ca)){const _0x2bbdf6=_0x3af929[_0x4c7c('0xa4')](_0x2d67ca)&&_t(this[_0x4c7c('0x70')]['schema'],_0x2d67ca[_0x4c7c('0x7d')],_0x3af929),_0x319260=_0x2d67ca[_0x4c7c('0xa4')](_0x3af929)&&_t(this[_0x4c7c('0x70')][_0x4c7c('0xf1')],_0x3af929[_0x4c7c('0x7d')],_0x2d67ca);_0x43e825['push']({'suggestion':_0x27929f,'meta':{'isOwn':_0x459507==_0x27929f['author'],'isNextTo':_0x45425c,'isInsideObject':_0x2bbdf6,'containsRangeInObject':_0x319260}}),_0x7d1bf8=!0x0;break;}}if(_0x7d1bf8)break;}}return _0x43e825;}[_0x4c7c('0xec')](_0x37d8ee,_0x3c5310,_0x2ecd25,_0x4c9492,_0x54da7f){this[_0x4c7c('0x70')][_0x4c7c('0x109')](_0x2445fe=>{let _0xf1288e=_0x4c7c('0x1a')+_0x37d8ee+':'+_0x3c5310+':'+_0x2ecd25;_0x54da7f&&(_0xf1288e=_0xf1288e+':'+_0x54da7f),_0x2445fe[_0x4c7c('0x2f')](_0xf1288e,{'range':_0x4c9492,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4c7c('0x106')](_0x5f085a){const _0x14e31c=_0x5f085a['previous'],_0x571e20=_0x5f085a[_0x4c7c('0xad')];_0x5f085a['previous']=null,null!=_0x14e31c&&(_0x14e31c[_0x4c7c('0xad')]=null),_0x5f085a[_0x4c7c('0xad')]=null,null!=_0x571e20&&(_0x571e20['previous']=null),'ready'==this[_0x4c7c('0x127')][_0x4c7c('0x41')](_0x5f085a)&&(this[_0x4c7c('0x127')]['set'](_0x5f085a,_0x4c7c('0x6c')),this['fire'](_0x4c7c('0xbb'),_0x5f085a,_0x14e31c,_0x571e20));}['_setSuggestionData'](_0x4d35dd){const _0x4653d9=_0x4d35dd['id'],_0x2bef1c=this[_0x4c7c('0x6d')](_0x4d35dd);if(this[_0x4c7c('0xac')]&&this[_0x4c7c('0xac')][_0x4c7c('0xa')]){const _0x45b3ee=this[_0x4c7c('0x21')][_0x4c7c('0x12c')]['get']('PendingActions'),_0x2cfe01=_0x2bef1c[_0x4c7c('0x7a')],_0x169d46=_0x2bef1c[_0x4c7c('0x4f')]?_0x2bef1c['type']+':'+_0x2bef1c[_0x4c7c('0x4f')]:_0x2bef1c[_0x4c7c('0x108')],_0x393571=this[_0x4c7c('0x21')]['locale'],_0x5e15a3=_0x45b3ee[_0x4c7c('0x107')](_0x4b0140(_0x393571,_0x4c7c('0x104'))),_0x34df25={'id':_0x4653d9,'type':_0x169d46,'hasComments':_0x2cfe01,'data':_0x4d35dd['data']||null,'originalSuggestionId':_0x4d35dd[_0x4c7c('0x102')]||null,'attributes':_0x2bef1c['attributes']};this[_0x4c7c('0xac')][_0x4c7c('0xa')](_0x34df25)['then'](_0x311b4a=>{_0x2bef1c[_0x4c7c('0x128')]=!0x0,_0x45b3ee[_0x4c7c('0x55')](_0x5e15a3),_0x311b4a&&_0x311b4a[_0x4c7c('0xa2')]&&(this['_suggestions'][_0x4c7c('0x41')](_0x4653d9)[_0x4c7c('0xa2')]=_0x311b4a[_0x4c7c('0xa2')]);})[_0x4c7c('0x130')](_0x560ec9=>{throw _0x44d4db(_0x4c7c('0x52')),this[_0x4c7c('0x21')][_0x4c7c('0xce')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x2bef1c[_0x4c7c('0x11b')]();}),_0x2bef1c[_0x4c7c('0x62')](),this[_0x4c7c('0xb4')][_0x4c7c('0xbc')](_0x2bef1c['id']),this['_suggestionState'][_0x4c7c('0xbc')](_0x2bef1c),_0x560ec9;});}return _0x2bef1c;}[_0x4c7c('0xa8')](_0x472ade,_0x2ffd39){const _0x59a033=this[_0x4c7c('0x21')][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x126')),_0x3ce8e2=this[_0x4c7c('0x119')](_0x472ade);if(this[_0x4c7c('0xac')]&&this[_0x4c7c('0xac')][_0x4c7c('0xdd')]){if(_0x3ce8e2[_0x4c7c('0x128')]){const _0x406934=_0x59a033[_0x4c7c('0x107')](_0x4b0140(this['editor'][_0x4c7c('0x27')],_0x4c7c('0x104')));this[_0x4c7c('0xac')][_0x4c7c('0xdd')](_0x472ade,_0x2ffd39)[_0x4c7c('0x10d')](()=>{_0x59a033[_0x4c7c('0x55')](_0x406934);});}else _0x3ce8e2['on']('change:_saved',()=>{this[_0x4c7c('0xa8')](_0x472ade,_0x2ffd39);});}}['_getSuggestionData'](_0x57bdb5){if(!this[_0x4c7c('0xac')]||!this[_0x4c7c('0xac')]['getSuggestion'])throw new _0x81df42(_0x4c7c('0x11f'),this);return this[_0x4c7c('0xac')][_0x4c7c('0x119')](_0x57bdb5);}['_handleNewSuggestionMarker'](_0x15f60f){const {id:_0x323ac7,type:_0x1b3db5,subType:_0x1a19dc,authorId:_0x347407}=this[_0x4c7c('0x4c')](_0x15f60f),_0xf33d35=this[_0x4c7c('0xb4')][_0x4c7c('0x41')](_0x323ac7)||this['_createSuggestion'](_0x1b3db5,_0x1a19dc,_0x323ac7,_0x347407,{});switch(this[_0x4c7c('0x82')](_0xf33d35,_0x1b3db5,_0x1a19dc,_0x347407),this[_0x4c7c('0x127')]['get'](_0xf33d35)){case _0x4c7c('0x11d'):this['_getSuggestionData'](_0x323ac7)[_0x4c7c('0x10d')](_0x55102a=>{let _0x3038a3=Promise['resolve']();_0x55102a[_0x4c7c('0x7a')]&&(_0x3038a3=this[_0x4c7c('0x77')][_0x4c7c('0xd9')]({'channelId':this[_0x4c7c('0x21')][_0x4c7c('0x3b')][_0x4c7c('0x41')]('collaboration.channelId'),'threadId':_0x323ac7})),_0x3038a3[_0x4c7c('0x10d')](()=>{this[_0x4c7c('0x6d')](_0x55102a)['_saved']=!0x0;});}),this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0xf33d35,'markerReady');break;case'removed':this[_0x4c7c('0xa8')](_0x323ac7,{'state':_0x4c7c('0x91')});case _0x4c7c('0x1c'):this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0xf33d35,_0x4c7c('0x51')),this[_0x4c7c('0xb3')]('suggestionLoaded',_0xf33d35);break;case _0x4c7c('0x51'):this['fire'](_0x4c7c('0x28'),_0xf33d35);}return _0xf33d35['addMarkerName'](_0x15f60f),_0xf33d35;}[_0x4c7c('0x6b')](_0x5e272a){const _0x328596=Array[_0x4c7c('0x35')](_0x5e272a)['filter'](_0x6d48e1=>!_0x6d48e1[_0x4c7c('0xaa')]),_0x367061=this[_0x4c7c('0x44')]({'skipNotAttached':!0x0})['filter'](_0x4a15a6=>!_0x4a15a6[_0x4c7c('0xaa')]),_0x25184e=_0x367061[_0x4c7c('0x11a')](_0x4011b0=>!_0x5e272a['has'](_0x4011b0)),_0x55a28d=new Map(_0x367061[_0x4c7c('0xc9')](_0x195010=>[_0x195010,this[_0x4c7c('0x8c')]['getSuggestionCallback'](_0x195010[_0x4c7c('0x108')],_0x195010[_0x4c7c('0x4f')],_0x4c7c('0xe3'))])),_0x6844c3=new Map(_0x367061[_0x4c7c('0xc9')](_0x538984=>[_0x538984,_0x538984[_0x4c7c('0x7c')]()])),_0x43b4bf=new Set(),_0x341216=new Set();for(let _0x4c4e30=0x0;_0x4c4e30<_0x328596[_0x4c7c('0x8b')];_0x4c4e30++)_0x2de1f4(_0x328596[_0x4c4e30],_0x328596,_0x4c4e30+0x1);for(let _0x380eb6=0x0;_0x380eb6<_0x328596[_0x4c7c('0x8b')];_0x380eb6++)_0x2de1f4(_0x328596[_0x380eb6],_0x25184e,0x0);for(let _0x45a10a=0x0;_0x45a10a<_0x328596['length'];_0x45a10a++){const _0x2fccdf=_0x328596[_0x45a10a];!_0x341216[_0x4c7c('0x5b')](_0x2fccdf)&&_0x2fccdf[_0x4c7c('0x3d')]&&(_0x2fccdf[_0x4c7c('0x3d')][_0x4c7c('0xad')]===_0x2fccdf&&(_0x2fccdf['previous'][_0x4c7c('0xad')]=null),_0x2fccdf[_0x4c7c('0x3d')]=null),!_0x43b4bf['has'](_0x2fccdf)&&_0x2fccdf['next']&&(_0x2fccdf[_0x4c7c('0xad')][_0x4c7c('0x3d')]===_0x2fccdf&&(_0x2fccdf[_0x4c7c('0xad')][_0x4c7c('0x3d')]=null),_0x2fccdf[_0x4c7c('0xad')]=null);}function _0x2de1f4(_0x5e8c93,_0x4ec90e,_0x405fc1){for(let _0x507002=_0x405fc1;_0x507002<_0x4ec90e[_0x4c7c('0x8b')];_0x507002++){const _0x5a8b14=_0x4ab37f(_0x5e8c93,_0x4ec90e[_0x507002]);_0x5a8b14&&(_0x5a8b14[0x0][_0x4c7c('0xad')]=_0x5a8b14[0x1],_0x5a8b14[0x1]['previous']=_0x5a8b14[0x0],_0x43b4bf[_0x4c7c('0x107')](_0x5a8b14[0x0]),_0x341216[_0x4c7c('0x107')](_0x5a8b14[0x1]));}}function _0x4ab37f(_0x4887ca,_0x358d5f){if(_0x4887ca[_0x4c7c('0x2')]['id']!==_0x358d5f[_0x4c7c('0x2')]['id'])return null;const _0x1b390e=_0x55a28d[_0x4c7c('0x41')](_0x4887ca)(_0x4887ca,_0x358d5f,_0x6844c3[_0x4c7c('0x41')](_0x4887ca),_0x6844c3[_0x4c7c('0x41')](_0x358d5f));if(!_0x1b390e)return null;return _0x55a28d[_0x4c7c('0x41')](_0x358d5f)(_0x4887ca,_0x358d5f,_0x6844c3[_0x4c7c('0x41')](_0x4887ca),_0x6844c3[_0x4c7c('0x41')](_0x358d5f))?_0x1b390e[0x1][_0x4c7c('0x2a')]&&_0x1b390e[0x1]['commentThread']['length']?null:_0x1b390e:null;}}[_0x4c7c('0x66')](_0x8ee6bf){const _0x2b2126=Array[_0x4c7c('0x35')](_0x8ee6bf),_0x53c296=this[_0x4c7c('0x44')]({'skipNotAttached':!0x0}),_0x35f702=_0x53c296['filter'](_0x330ba0=>!_0x8ee6bf[_0x4c7c('0x5b')](_0x330ba0)),_0x2d5216=new Map(_0x2b2126['map'](_0x4973db=>[_0x4973db,this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4973db[_0x4c7c('0x108')],_0x4973db[_0x4c7c('0x4f')],'join')])),_0x5adb25=new Map(_0x53c296[_0x4c7c('0xc9')](_0x26addc=>[_0x26addc,_0x26addc[_0x4c7c('0x76')]()]));for(let _0x1716b3=0x0;_0x1716b3<_0x2b2126['length'];_0x1716b3++){if(_0x2610d5(this,_0x2b2126[_0x1716b3],_0x2b2126,_0x1716b3+0x1))return!0x0;}for(let _0x49401f=0x0;_0x49401f<_0x2b2126[_0x4c7c('0x8b')];_0x49401f++){if(_0x2610d5(this,_0x2b2126[_0x49401f],_0x35f702,0x0))return!0x0;}return!0x1;function _0x2610d5(_0x32ecc8,_0x23cd9c,_0x5a573f,_0x1fb07a){for(let _0x47c71e=_0x1fb07a;_0x47c71e<_0x5a573f['length'];_0x47c71e++){const _0xe6cc31=_0x5a573f[_0x47c71e];if(_0xe6cc31[_0x4c7c('0x108')]!==_0x23cd9c[_0x4c7c('0x108')]||_0xe6cc31[_0x4c7c('0x2')]['id']!==_0x23cd9c[_0x4c7c('0x2')]['id']||_0xe6cc31[_0x4c7c('0x4f')]!==_0x23cd9c[_0x4c7c('0x4f')])continue;if(!Ut(_0x23cd9c,_0xe6cc31))continue;const _0x40ccc8=_0x2d5216[_0x4c7c('0x41')](_0x23cd9c),_0x3845ee=_0x5adb25[_0x4c7c('0x41')](_0x23cd9c),_0x3ea4a6=_0x5adb25[_0x4c7c('0x41')](_0xe6cc31),_0x40bdb7=_0x23cd9c[_0x4c7c('0x2a')]&&_0x23cd9c['commentThread']['length'],_0x588604=_0xe6cc31[_0x4c7c('0x2a')]&&_0xe6cc31['commentThread']['length'];if(!_0x40bdb7&&_0x40ccc8(_0x3ea4a6,_0x3845ee))return _0x32ecc8[_0x4c7c('0xa5')](_0xe6cc31,_0x23cd9c),_0x5adb25[_0x4c7c('0xbc')](_0x23cd9c),!0x0;if(!_0x588604&&_0x40ccc8(_0x3845ee,_0x3ea4a6))return _0x32ecc8[_0x4c7c('0xa5')](_0x23cd9c,_0xe6cc31),_0x5adb25['delete'](_0xe6cc31),!0x0;}return!0x1;}}[_0x4c7c('0xa5')](_0x1e5445,_0x2662d8){if(_0x1e5445[_0x4c7c('0xaa')])for(const _0x19d1d0 of _0x2662d8['getRanges']())_0x1e5445[_0x4c7c('0xa3')](_0x19d1d0);else{const _0x2d4d6d=_0x2662d8[_0x4c7c('0x7c')]()[_0x4c7c('0xcf')];this[_0x4c7c('0x10')](_0x1e5445,this[_0x4c7c('0x70')][_0x4c7c('0xb1')](_0x1e5445[_0x4c7c('0x7c')]()[_0x4c7c('0x7d')],_0x2d4d6d));}_0x2662d8[_0x4c7c('0x38')]();}}class Bt{constructor(_0x5ef894){this['_editor']=_0x5ef894,this[_0x4c7c('0x70')]=_0x5ef894['model'],this[_0x4c7c('0x9')]=new Map(),this[_0x4c7c('0xe5')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4c7c('0x14')](_0x286189,_0x42cb62,_0x2e6555,_0x2c2a68,_0x39aff7,_0x500a5e){return new _0x5a82f6(this[_0x4c7c('0x70')],{'type':_0x286189,'subType':_0x42cb62,'id':_0x2e6555,'author':_0x2c2a68,'creator':_0x2c2a68,'attributes':_0x39aff7,'onAttributesChange':_0x500a5e,'onAccept':(..._0x42e93f)=>this[_0x4c7c('0xd6')](_0x286189,_0x42cb62,_0x4c7c('0xed'))(..._0x42e93f),'onDiscard':(..._0x1744b1)=>this['getSuggestionCallback'](_0x286189,_0x42cb62,_0x4c7c('0x11b'))(..._0x1744b1)});}[_0x4c7c('0x87')](_0x292e5c,_0x8aee76,_0xb27e68,_0x16da83){const _0x3d096b=_0x292e5c+':'+_0x8aee76+':'+_0xb27e68;this[_0x4c7c('0x9')][_0x4c7c('0x125')](_0x3d096b,_0x16da83);}['getSuggestionCallback'](_0x2f5520,_0xbc84d0,_0x6d10e4){const _0x47bdfc=_0x2f5520+':'+_0xbc84d0+':'+_0x6d10e4;return this['_customCallbacks'][_0x4c7c('0x41')](_0x47bdfc)||this['_defaultCallbacks'][_0x4c7c('0x41')](_0x2f5520+':'+_0x6d10e4);}['_registerDefaultCallbacks'](){const _0x39573c=()=>!0x1,_0x3c48d7=_0x13a9d6=>{_0x13a9d6[_0x4c7c('0x13c')]((_0x890a8,_0x1ccf7b)=>_0x890a8[_0x4c7c('0x7d')][_0x4c7c('0xf')](_0x1ccf7b[_0x4c7c('0x7d')])?0x1:-0x1),this[_0x4c7c('0x70')][_0x4c7c('0x109')](_0x47f4db=>{for(const _0x237ed2 of _0x13a9d6){let _0xcb5256;_0xcb5256=_0x237ed2[_0x4c7c('0xcf')]['isAtEnd']&&_0x237ed2[_0x4c7c('0xcf')][_0x4c7c('0x1d')]==_0x237ed2[_0x4c7c('0x7d')][_0x4c7c('0x34')]?_0x47f4db[_0x4c7c('0xfb')](_0x237ed2[_0x4c7c('0x7d')][_0x4c7c('0x34')],'on'):_0x47f4db[_0x4c7c('0xfb')](_0x237ed2),this[_0x4c7c('0x70')]['deleteContent'](_0xcb5256,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2ed673=(_0x4b4f28,_0x2c81b8)=>{this[_0x4c7c('0x70')][_0x4c7c('0x109')](_0x62368e=>{const {commandName:_0x33b8ae,commandParams:_0x11d3c9=[]}=_0x2c81b8,_0x404984=_0x4b4f28[_0x4c7c('0xc9')](_0x1e9330=>(Mt(_0x1e9330)&&(_0x1e9330=this['_model'][_0x4c7c('0xb1')](_0x1e9330[_0x4c7c('0xcf')])),_0x1e9330))['filter'](_0x1a156f=>_0x4c7c('0x116')!==_0x1a156f[_0x4c7c('0x68')]['rootName']);if(_0x404984['length']<0x1)return;const _0x43a5f0=Array[_0x4c7c('0x35')](this[_0x4c7c('0x70')][_0x4c7c('0xf7')]['selection'][_0x4c7c('0x76')]())['map'](_0x13a9cb=>_0x4f665b[_0x4c7c('0x19')](_0x13a9cb));_0x62368e[_0x4c7c('0xbe')](_0x404984);for(const _0x16c855 of this[_0x4c7c('0x13f')][_0x4c7c('0xf9')]['commands']())_0x16c855['refresh']();_0x11d3c9[_0x4c7c('0x43')]({'forceDefaultExecution':!0x0}),this[_0x4c7c('0x13f')][_0x4c7c('0x4e')](_0x33b8ae,..._0x11d3c9);const _0x5a4630=_0x43a5f0[_0x4c7c('0x11a')](_0x3a16d2=>_0x4c7c('0x116')!=_0x3a16d2[_0x4c7c('0x68')]['rootName']);_0x5a4630[_0x4c7c('0x8b')]>0x0&&_0x62368e[_0x4c7c('0xbe')](_0x5a4630);for(const _0xff143f of _0x43a5f0)_0xff143f[_0x4c7c('0x8f')]();});},_0x484eb4=(_0x154685,_0x5e40fd)=>0x1==_0x154685[_0x4c7c('0x8b')]&&0x1==_0x5e40fd[_0x4c7c('0x8b')]&&_0x154685[0x0][_0x4c7c('0xcf')][_0x4c7c('0x9e')](_0x5e40fd[0x0]['start']),_0x17a6a2=(_0x36bb41,_0x53e383,_0x262793,_0x1366a4)=>xt(_0x36bb41,_0x53e383,_0x262793,_0x1366a4,this['_model'])?[_0x36bb41,_0x53e383]:xt(_0x53e383,_0x36bb41,_0x1366a4,_0x262793,this['_model'])?[_0x53e383,_0x36bb41]:null;this[_0x4c7c('0xe5')][_0x4c7c('0x125')]('insertion:accept',_0x39573c),this[_0x4c7c('0xe5')]['set'](_0x4c7c('0x22'),_0x3c48d7),this[_0x4c7c('0xe5')][_0x4c7c('0x125')]('insertion:join',_0x484eb4),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x140'),_0x17a6a2),this['_defaultCallbacks'][_0x4c7c('0x125')](_0x4c7c('0xe8'),_0x3c48d7),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x7e'),_0x39573c),this[_0x4c7c('0xe5')]['set'](_0x4c7c('0x131'),_0x484eb4),this['_defaultCallbacks'][_0x4c7c('0x125')]('deletion:chain',_0x17a6a2),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x80'),_0x2ed673),this['_defaultCallbacks'][_0x4c7c('0x125')](_0x4c7c('0x103'),_0x39573c),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0xde'),_0x484eb4),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x96'),_0x39573c),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x122'),_0x2ed673),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x5'),_0x39573c),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0xdf'),_0x484eb4),this[_0x4c7c('0xe5')][_0x4c7c('0x125')]('formatBlock:chain',_0x39573c);}}function _t(_0x1b0f10,_0x465e90,_0x2af5bd){for(const _0xaa5c26 of _0x465e90[_0x4c7c('0x1d')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xaa5c26[_0x4c7c('0x68')]==_0xaa5c26)return!0x1;if(!_0x2af5bd[_0x4c7c('0x29')](_0xaa5c26))return!0x1;if(_0x1b0f10[_0x4c7c('0x134')](_0xaa5c26)||_0x1b0f10['isLimit'](_0xaa5c26))return!0x0;}return!0x1;}function Mt(_0xbed323){return _0xbed323['end'][_0x4c7c('0x1d')]==_0xbed323['start'][_0x4c7c('0x34')]&&_0xbed323[_0x4c7c('0xcf')][_0x4c7c('0xba')];}function $t(_0x26cb00,_0x39a44c,_0x2112b8,_0x240afb){const _0x52bf9f=_0x547a29=>!_0x547a29[_0x4c7c('0xb7')]['is'](_0x4c7c('0x115'))&&!_0x240afb[_0x4c7c('0x134')](_0x547a29['item']),_0x19c594=_0x26cb00['start']['getLastMatchingPosition'](_0x52bf9f),_0x2b6f11=_0x26cb00[_0x4c7c('0xcf')][_0x4c7c('0x90')](_0x52bf9f,{'direction':_0x4c7c('0x7b')});return(!_0x26cb00['start'][_0x4c7c('0x9e')](_0x19c594)||!_0x26cb00['end']['isEqual'](_0x2b6f11))&&(_0x19c594[_0x4c7c('0xf')](_0x2b6f11)?_0x2112b8['updateMarker'](_0x39a44c,{'range':_0x2112b8[_0x4c7c('0xb1')](_0x19c594,_0x2b6f11)}):_0x2112b8[_0x4c7c('0x141')](_0x39a44c),!0x0);}function Nt(_0x3f3d2b){return _0x4eb39b(_0x3f3d2b);}function Rt(_0x2d75a9){const _0x3946ce=_0x2d75a9[_0x4c7c('0x7d')][_0x4c7c('0x34')];return _0x3946ce&&_0x3946ce['is']('element');}function jt(_0xf0591,_0x216883){const _0x5ba5e2=_0x216883['schema'][_0x4c7c('0x134')](_0xf0591)||_0x216883['schema'][_0x4c7c('0x81')](_0xf0591);return _0x216883[_0x4c7c('0xb1')](_0x216883[_0x4c7c('0x53')](_0xf0591,_0x4c7c('0x60')),_0x5ba5e2?_0x216883['createPositionAfter'](_0xf0591):_0x216883[_0x4c7c('0x53')](_0xf0591,_0x4c7c('0xcf')));}function xt(_0xac6f7d,_0x21a4c3,_0x27af27,_0x5df230,_0x585186){if(!Ut(_0xac6f7d,_0x21a4c3))return!0x1;if(_0x27af27['end'][_0x4c7c('0x9e')](_0x5df230[_0x4c7c('0x7d')]))return!0x0;if(_0xac6f7d[_0x4c7c('0x108')]!=_0x21a4c3['type'])return!0x1;if(!_0x27af27[_0x4c7c('0xcf')]['isTouching'](_0x5df230[_0x4c7c('0x7d')]))return!0x1;const _0x5b5a98=_0x585186['createRange'](_0x27af27[_0x4c7c('0xcf')],_0x5df230[_0x4c7c('0x7d')])[_0x4c7c('0x5f')]();for(const _0x58a143 of _0x5b5a98)if([_0x4c7c('0x73'),_0x4c7c('0xf0')][_0x4c7c('0x33')](_0x58a143[_0x4c7c('0x108')])&&_0x585186[_0x4c7c('0xf1')][_0x4c7c('0x7')](_0x58a143[_0x4c7c('0xb7')]))return!0x1;return!0x0;}function Ut(_0xd6a2c5,_0x556bb4){return!(!_0xd6a2c5[_0x4c7c('0x105')]||!_0x556bb4[_0x4c7c('0x105')])&&_0x4d46c0(_0xd6a2c5[_0x4c7c('0x31')],_0x556bb4[_0x4c7c('0x31')]);}function Ot(_0x5153bc,_0x3c05e4){const _0x17d1fe=Et(_0x5153bc[_0x4c7c('0x31')]),_0xe7c9f6=Et(_0x3c05e4);if(!_0x5153bc[_0x4c7c('0x105')])return!0x1;for(const _0x55a53a of Object[_0x4c7c('0xc5')](_0xe7c9f6))if(!_0x4d46c0(_0x17d1fe[_0x55a53a],_0xe7c9f6[_0x55a53a]))return!0x1;return!0x0;}function Et(_0x575a1a){const _0x19e18a=Object[_0x4c7c('0xb2')]({},_0x575a1a);return delete _0x19e18a['skipNestingCheck'],delete _0x19e18a[_0x4c7c('0x7f')],_0x19e18a;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x44c8=['length','isMultiRange','_refreshActiveMarkers','remove','registerAnnotation','trackChanges.disableComments','requires','source','acceptButton','acceptSelectedSuggestions','head','filter','reduce','_updateController','isInContent','suggestion-','componentFactory','model','getDescriptions','value','push','listenTo','getAllAdjacentSuggestions','commentThread','_handleSuggestionControllerDelayed','_annotationViews','comments.editorConfig','buttonView','getFirstRange','trackChanges.SuggestionThreadView','keys','Discard\x20all\x20selected\x20suggestions','addSourceCollector','button','_handleControllerBuffer','Discard\x20all\x20suggestions','type','getJoined','getByInnerView','trackChanges','addComment','define','_descriptionFactory','getMarkers','_destroyController','arrowView','createAnnotationView','previous','SuggestionThreadView','TrackChangesEditing','Accept\x20all\x20selected\x20suggestions','Accept\x20all\x20suggestions','change:previous','editing','_createUIButton','discardSelectedSuggestions','CommentsRepository','suggestionLoaded','suggestionUnloaded','values','descriptionParts','add','stopListening','from','change:activeAnnotations','bind','some','CommentsUI','innerView','map','size','_initializeController','hasSuggestion','get','discardAllSuggestions','commands','isOn','createAnnotation','refreshSelectedViews','switchbutton','_disableComments','view','Annotations','destroy','comments.maxCommentCharsWhenCollapsed','EditorAnnotations','mainView','set','comments.maxThreadTotalWeight','config','has','separator','init','_viewToController','discardButton','focus','_suggestionToController','_unbindEditors','isEnabled','execute','unbind','lowest','clear','commandName','locale','CommentView','getMarkerNames','editor','delete','_bindAnnotationToEditors','plugins'];(function(_0x3b9540,_0x44c83d){const _0x210ec5=function(_0x28fc6f){while(--_0x28fc6f){_0x3b9540['push'](_0x3b9540['shift']());}};_0x210ec5(++_0x44c83d);}(_0x44c8,0x15e));const _0x210e=function(_0x3b9540,_0x44c83d){_0x3b9540=_0x3b9540-0x0;let _0x210ec5=_0x44c8[_0x3b9540];return _0x210ec5;};import{Plugin as _0x2b84c5}from'ckeditor5/src/core';import{Collection as _0x3ab21}from'ckeditor5/src/utils';import{Model as _0x3c9e72,SplitButtonView as _0x51b32c,createDropdown as _0x11d8aa,addListToDropdown as _0xa10dc1}from'ckeditor5/src/ui';import{Users as _0x4d894e,getDateTimeFormatter as _0x1391a2,getAllMarkersDomElementsSorted as _0x2c19d5}from'ckeditor5-collaboration/src/collaboration-core';import _0x46037e from'./trackchangesediting';import _0x2c3360 from'./ui/suggestioncontroller';import _0x2045d6 from'./ui/view/suggestionthreadview';import{getTranslation as _0x18c610}from'./utils/common-translations';import _0x5ce200 from'../theme/icons/track-changes.svg';export default class d extends _0x2b84c5{static get[_0x210e('0x64')](){return[_0x46037e,_0x4d894e,_0x210e('0x27'),_0x210e('0x41'),_0x210e('0x44')];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xdf301e){super(_0xdf301e),this[_0x210e('0x4f')]=new Map(),this[_0x210e('0x4c')]=new Map(),this['_annotationViews']=new Map(),this[_0x210e('0x11')]=new Map();const _0x54d96b=this[_0x210e('0x5a')][_0x210e('0x48')];_0x54d96b[_0x210e('0x18')](_0x210e('0xc'),_0x2045d6),_0x54d96b[_0x210e('0x18')](_0x210e('0x63'),!0x1),this[_0x210e('0x3f')]=_0x54d96b[_0x210e('0x38')](_0x210e('0x63'));}[_0x210e('0x7')](_0x1dabfc,_0xdab296){0x0===this[_0x210e('0x11')][_0x210e('0x35')]&&setTimeout(()=>{for(const [_0x2a42ff,_0x3f87ee]of this['_handleControllerBuffer']){const _0x357bd0=this[_0x210e('0x4f')]['has'](_0x2a42ff);_0x357bd0||_0x3f87ee?_0x357bd0&&_0x3f87ee&&this[_0x210e('0x1b')](_0x2a42ff):this['_initializeController'](_0x2a42ff);}this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')](_0x210e('0x44'))[_0x210e('0x3d')](),this[_0x210e('0x60')](),this[_0x210e('0x11')][_0x210e('0x55')]();},0xa),this[_0x210e('0x11')][_0x210e('0x46')](_0x1dabfc,_0xdab296);}[_0x210e('0x4b')](){const _0xea8596=this[_0x210e('0x5a')],_0x559f76=_0xea8596['plugins'][_0x210e('0x38')]('TrackChangesEditing'),_0x35c7ea=_0xea8596[_0x210e('0x5d')][_0x210e('0x38')]('Annotations'),_0x418430=_0xea8596['plugins'][_0x210e('0x38')](_0x210e('0x44')),_0x5c8c6b=_0xea8596[_0x210e('0x5d')]['get'](_0x210e('0x27'));_0xea8596['ui'][_0x210e('0x6e')][_0x210e('0x2c')]('trackChanges',_0x24d963=>this[_0x210e('0x25')](_0x24d963)),_0x418430[_0x210e('0xf')](()=>{const _0x2950a9=[];for(const [_0x466690,_0x3fea9f]of Array[_0x210e('0x2e')](this['_suggestionToController'])){const _0xeaa9c6=_0x466690['getAllAdjacentSuggestions'](),_0x3158d7=[];for(const _0x4e1369 of _0xeaa9c6){if(!_0x4e1369[_0x210e('0x6c')])continue;if(_0x4e1369[_0x210e('0x5f')]){_0x3158d7[_0x210e('0x3')](..._0x4e1369['getRanges']());continue;}const _0x2b5519=_0x4e1369[_0x210e('0xb')]();if(_0x3158d7[_0x210e('0x5e')]>0x0){const _0x383160=_0x3158d7[0x0][_0x210e('0x14')](_0x2b5519);if(_0x383160){_0x3158d7[0x0]=_0x383160;continue;}}_0x3158d7[_0x210e('0x3')](_0x2b5519);}_0x2950a9[_0x210e('0x3')]([_0x3fea9f[_0x210e('0x40')],_0x3158d7]);}return _0x2950a9;}),this[_0x210e('0x4')](_0x559f76,_0x210e('0x28'),(_0xc0ea11,_0x153c56)=>{this['listenTo'](_0x153c56,'change:previous',(_0x3d592d,_0x555360,_0x2f09b5,_0x496304)=>{_0x153c56['isInContent']&&(null==_0x2f09b5?(this[_0x210e('0x6b')](_0x496304['head']),this[_0x210e('0x7')](_0x153c56,!0x1)):(this['_updateController'](_0x2f09b5[_0x210e('0x68')]),this[_0x210e('0x7')](_0x153c56,!0x0)));}),null===_0x153c56[_0x210e('0x1e')]?this[_0x210e('0x7')](_0x153c56,!0x1):this[_0x210e('0x6b')](_0x153c56[_0x210e('0x68')]);}),this['listenTo'](_0x559f76,_0x210e('0x29'),(_0x33806a,_0x2a8cd8,_0x33f709)=>{this[_0x210e('0x2d')](_0x2a8cd8,_0x210e('0x23')),this['_handleControllerBuffer'][_0x210e('0x5b')](_0x2a8cd8);const _0x1a9d18=_0x33f709?_0x33f709['head']:_0x2a8cd8,_0x2815b1=this[_0x210e('0x4f')][_0x210e('0x38')](_0x1a9d18);null!==_0x33f709&&this[_0x210e('0x6b')](_0x1a9d18),null===_0x33f709&&_0x2815b1&&this[_0x210e('0x1b')](_0x2a8cd8);}),this[_0x210e('0x4')](_0x559f76,'suggestionChanged',(_0x14c7f7,_0x4304e2)=>{this[_0x210e('0x6b')](_0x4304e2);}),this['listenTo'](_0x35c7ea,_0x210e('0x2f'),()=>{this[_0x210e('0x60')]();}),this['listenTo'](_0x5c8c6b,_0x210e('0x17'),(_0x49738b,{threadId:_0x13f6e4,isFromAdapter:_0x393991})=>{if(_0x393991||!_0x559f76[_0x210e('0x37')](_0x13f6e4))return;const _0x3b3571=_0x559f76['getSuggestion'](_0x13f6e4);this[_0x210e('0x4f')][_0x210e('0x38')](_0x3b3571)[_0x210e('0x40')][_0x210e('0x4e')]();},{'priority':_0x210e('0x54')});}[_0x210e('0x60')](){const _0x569724=this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')]('Annotations'),_0x81f082=this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')]('TrackChangesEditing'),_0x18f4c6=Array['from'](_0x569724['activeAnnotations'],_0x1a1538=>_0x1a1538[_0x210e('0x33')])['filter'](_0x1d45bf=>this[_0x210e('0x4c')][_0x210e('0x49')](_0x1d45bf)),_0x3c4666=[];for(const _0x501acb of _0x18f4c6){const _0x1d4299=this[_0x210e('0x4c')][_0x210e('0x38')](_0x501acb)[_0x210e('0x0')][_0x210e('0x5')]();_0x3c4666['push'](..._0x1d4299[_0x210e('0x6a')]((_0x23990d,_0x4b675c)=>[..._0x23990d,..._0x4b675c[_0x210e('0x59')]()],[]));}_0x81f082['activeMarkers']=_0x3c4666;}[_0x210e('0x25')](_0x23e9fd){const _0x2dec52=_0x11d8aa(_0x23e9fd,_0x51b32c),_0x4fe715=this['editor'][_0x210e('0x3a')]['get'](_0x210e('0x16')),_0x416f6f=_0x18c610(_0x23e9fd,'Track\x20changes');_0x2dec52[_0x210e('0xa')][_0x210e('0x46')]({'tooltip':_0x416f6f,'label':_0x416f6f,'icon':_0x5ce200}),_0x2dec52[_0x210e('0xa')]['bind'](_0x210e('0x3b'))['to'](_0x4fe715,_0x210e('0x2')),_0x2dec52[_0x210e('0xa')]['on'](_0x210e('0x52'),()=>{_0x4fe715[_0x210e('0x52')](),this[_0x210e('0x5a')]['editing']['view'][_0x210e('0x4e')]();});const _0x2d0775=new _0x3ab21(),_0x110d13=[{'type':_0x210e('0x3e'),'model':{'withText':!0x0,'label':_0x416f6f,'commandName':_0x210e('0x16')}},{'type':_0x210e('0x4a')},{'type':'button','model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0x22')),'commandName':'acceptAllSuggestions'}},{'type':_0x210e('0x10'),'model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0x21')),'commandName':_0x210e('0x67')}},{'type':_0x210e('0x10'),'model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0x12')),'commandName':_0x210e('0x39')}},{'type':_0x210e('0x10'),'model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0xe')),'commandName':_0x210e('0x26')}}];for(const _0x249d89 of _0x110d13){let _0x312694={'type':_0x210e('0x4a')};if(_0x249d89[_0x210e('0x0')]){const _0x5e9a74=new _0x3c9e72(_0x249d89[_0x210e('0x0')]),_0x3ead32=this['editor'][_0x210e('0x3a')][_0x210e('0x38')](_0x5e9a74[_0x210e('0x56')]);_0x5e9a74[_0x210e('0x30')](_0x210e('0x3b'),'isEnabled')['to'](_0x3ead32,_0x210e('0x2'),_0x210e('0x51')),_0x312694={'type':_0x249d89['type'],'model':_0x5e9a74};}_0x2d0775['add'](_0x312694);}_0xa10dc1(_0x2dec52,_0x2d0775);const _0x3e0c71=_0x110d13[_0x210e('0x69')](_0x30c8f9=>null!=_0x30c8f9['model'])[_0x210e('0x34')](_0x1b2da6=>this[_0x210e('0x5a')][_0x210e('0x3a')][_0x210e('0x38')](_0x1b2da6['model']['commandName'])),_0x4ad074=_0x2dec52['buttonView'];return _0x4ad074['actionView'][_0x210e('0x53')]('isEnabled'),_0x4ad074[_0x210e('0x1c')][_0x210e('0x53')](_0x210e('0x51')),_0x4ad074['actionView'][_0x210e('0x30')]('isEnabled')['to'](_0x4fe715,_0x210e('0x51')),_0x4ad074[_0x210e('0x1c')][_0x210e('0x30')]('isEnabled')['toMany'](_0x3e0c71,_0x210e('0x51'),(..._0x10e2bf)=>_0x10e2bf[_0x210e('0x31')](_0x59d7fe=>_0x59d7fe)),_0x2dec52['on'](_0x210e('0x52'),_0x6c5151=>{this[_0x210e('0x5a')][_0x210e('0x52')](_0x6c5151[_0x210e('0x65')][_0x210e('0x56')]),this[_0x210e('0x5a')][_0x210e('0x24')][_0x210e('0x40')]['focus']();}),_0x2dec52;}[_0x210e('0x36')](_0x4e8cdd){const _0x98c989=this[_0x210e('0x5a')],_0x4b1587=_0x98c989[_0x210e('0x48')],_0x2e714c=_0x98c989[_0x210e('0x5d')][_0x210e('0x38')]('Annotations'),_0x212e04=_0x98c989[_0x210e('0x5d')][_0x210e('0x38')]('CommentsRepository'),_0x353d5e=_0x98c989[_0x210e('0x5d')]['get']('EditorAnnotations'),_0x9e214d=_0x98c989[_0x210e('0x5d')]['get'](_0x4d894e)['me'],_0x49be24=_0x4b1587[_0x210e('0x38')](_0x210e('0x16'))[_0x210e('0x1f')],{CommentsListView:_0x483411,CommentThreadInputView:_0x44382a}=_0x98c989[_0x210e('0x5d')][_0x210e('0x38')](_0x210e('0x32'));let _0x15b392,_0x321004;this[_0x210e('0x8')][_0x210e('0x49')](_0x4e8cdd['id'])?(_0x321004=this['_annotationViews']['get'](_0x4e8cdd['id']),_0x15b392=_0x321004[_0x210e('0x45')]):(_0x15b392=new _0x49be24(_0x98c989[_0x210e('0x57')],_0x4e8cdd,_0x9e214d,{'disableComments':this['_disableComments'],'editorConfig':_0x4b1587[_0x210e('0x38')](_0x210e('0x9')),'maxCommentsWhenCollapsed':_0x4b1587[_0x210e('0x38')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4b1587[_0x210e('0x38')](_0x210e('0x47')),'maxCommentCharsWhenCollapsed':_0x4b1587[_0x210e('0x38')](_0x210e('0x43')),'formatDateTime':_0x1391a2(_0x4b1587[_0x210e('0x38')](_0x210e('0x57'))),'CommentView':_0x4b1587['get']('comments')[_0x210e('0x58')],'CommentsListView':_0x483411,'CommentThreadInputView':_0x44382a}),_0x15b392[_0x210e('0x66')]['on'](_0x210e('0x52'),()=>{_0x98c989[_0x210e('0x24')][_0x210e('0x40')]['focus']();}),_0x15b392[_0x210e('0x4d')]['on']('execute',()=>{_0x98c989[_0x210e('0x24')][_0x210e('0x40')][_0x210e('0x4e')]();}),_0x321004=_0x2e714c[_0x210e('0x1d')](this[_0x210e('0x5a')][_0x210e('0x57')],_0x15b392),_0x321004[_0x210e('0x30')]('isDirty')['to'](_0x15b392,'isDirty'),_0x321004['bind'](_0x210e('0x5e'))['to'](_0x15b392),_0x321004['bind'](_0x210e('0x13'))['to'](_0x15b392,_0x210e('0x13'),_0xa070e2=>'suggestion-'+_0xa070e2),this[_0x210e('0x8')][_0x210e('0x46')](_0x4e8cdd['id'],_0x321004));const _0x589064=_0x212e04['createCommentThreadController'](_0x4e8cdd[_0x210e('0x6')],_0x15b392),_0x5dc20e=new _0x2c3360(_0x98c989,_0x4e8cdd,_0x15b392,_0x589064),_0x50506a=_0x4e8cdd[_0x210e('0x5')]()['filter'](_0x57f999=>_0x57f999['isInContent']);_0x15b392['descriptionParts']=_0x98c989['plugins'][_0x210e('0x38')](_0x210e('0x20'))[_0x210e('0x19')][_0x210e('0x1')](_0x50506a),this[_0x210e('0x4f')][_0x210e('0x46')](_0x4e8cdd,_0x5dc20e),this[_0x210e('0x4c')]['set'](_0x15b392,_0x5dc20e);const _0x2e9797=_0x2e714c[_0x210e('0x3c')]({'view':_0x321004,'target':()=>{const _0x1f0dee=[],_0x4377cd=_0x4e8cdd[_0x210e('0x5')]()[_0x210e('0x69')](_0xd42791=>_0xd42791[_0x210e('0x6c')]);for(const _0x4e861a of _0x4377cd)_0x1f0dee[_0x210e('0x3')](..._0x4e861a[_0x210e('0x1a')]());return _0x2c19d5(_0x98c989[_0x210e('0x24')],_0x1f0dee);},'type':()=>_0x210e('0x6d')+_0x5dc20e['view'][_0x210e('0x13')]});_0x212e04[_0x210e('0x5c')](_0x15b392,_0x2e9797),_0x2e714c[_0x210e('0x2c')](_0x2e9797),_0x353d5e[_0x210e('0x62')](_0x2e9797);}[_0x210e('0x1b')](_0x5698ea){const _0x39d477=this['editor'][_0x210e('0x5d')][_0x210e('0x38')]('CommentsRepository'),_0x3df7a5=this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')](_0x210e('0x41')),_0x1c8e99=this[_0x210e('0x4f')][_0x210e('0x38')](_0x5698ea),_0x549921=_0x1c8e99[_0x210e('0x40')],_0x15cd76=_0x3df7a5[_0x210e('0x15')](_0x549921);_0x39d477[_0x210e('0x50')](_0x549921),_0x15cd76&&_0x3df7a5[_0x210e('0x61')](_0x15cd76),this['_suggestionToController'][_0x210e('0x5b')](_0x5698ea),this['_viewToController'][_0x210e('0x5b')](_0x549921),_0x1c8e99['destroy']();}[_0x210e('0x6b')](_0xb5f4fa){if(!_0xb5f4fa[_0x210e('0x6c')]||!this[_0x210e('0x4f')][_0x210e('0x49')](_0xb5f4fa))return;const _0x49d964=this[_0x210e('0x5a')]['plugins'][_0x210e('0x38')](_0x210e('0x20')),_0x52816c=this[_0x210e('0x4f')][_0x210e('0x38')](_0xb5f4fa),_0x341ea8=_0xb5f4fa[_0x210e('0x5')]();_0x52816c['view'][_0x210e('0x2b')]=_0x49d964[_0x210e('0x19')][_0x210e('0x1')](_0x341ea8);}[_0x210e('0x42')](){for(const _0x278931 of this[_0x210e('0x4f')][_0x210e('0xd')]())this['_destroyController'](_0x278931);for(const _0x3cc8a0 of this[_0x210e('0x8')][_0x210e('0x2a')]())_0x3cc8a0['mainView'][_0x210e('0x42')]();super[_0x210e('0x42')]();}}
|
|
23
|
+
const _0x3f49=['clear','innerView','getMarkerNames','_viewToController','switchbutton','getAllAdjacentSuggestions','set','from','commandName','getMarkers','destroy','_bindAnnotationToEditors','execute','SuggestionThreadView','push','trackChanges.SuggestionThreadView','createAnnotationView','Accept\x20all\x20selected\x20suggestions','requires','pluginName','bind','suggestionChanged','_destroyController','head','buttonView','_disableComments','acceptButton','plugins','discardButton','getByInnerView','type','separator','hasSuggestion','_initializeController','filter','_descriptionFactory','suggestion-','descriptionParts','_suggestionToController','some','TrackChangesEditing','config','createCommentThreadController','value','comments','TrackChangesUI','unbind','get','commands','isMultiRange','activeMarkers','getJoined','toMany','locale','editor','isInContent','Track\x20changes','_unbindEditors','createAnnotation','_createUIButton','EditorAnnotations','mainView','isOn','isEnabled','comments.maxCommentCharsWhenCollapsed','change:previous','trackChanges','acceptAllSuggestions','getDescriptions','change:activeAnnotations','suggestionUnloaded','editing','discardAllSuggestions','view','add','activeAnnotations','_annotationViews','comments.maxThreadTotalWeight','comments.maxCommentsWhenCollapsed','CommentsRepository','commentThread','button','define','CommentView','refreshSelectedViews','_handleControllerBuffer','map','values','comments.editorConfig','_updateController','init','focus','delete','discardSelectedSuggestions','listenTo','length','_handleSuggestionControllerDelayed','keys','isDirty','CommentsUI','Annotations','lowest','trackChanges.disableComments','model','Discard\x20all\x20suggestions','stopListening','arrowView','_refreshActiveMarkers','has','reduce','source'];(function(_0x38ec1e,_0x3f4956){const _0x5772b1=function(_0x371660){while(--_0x371660){_0x38ec1e['push'](_0x38ec1e['shift']());}};_0x5772b1(++_0x3f4956);}(_0x3f49,0x153));const _0x5772=function(_0x38ec1e,_0x3f4956){_0x38ec1e=_0x38ec1e-0x0;let _0x5772b1=_0x3f49[_0x38ec1e];return _0x5772b1;};import{Plugin as _0x4fea31}from'ckeditor5/src/core';import{Collection as _0x36adad}from'ckeditor5/src/utils';import{Model as _0xf139fd,SplitButtonView as _0x810782,createDropdown as _0x4bb6ae,addListToDropdown as _0x51d19}from'ckeditor5/src/ui';import{Users as _0x26b0d0,getDateTimeFormatter as _0x559090,getAllMarkersDomElementsSorted as _0x378b62}from'ckeditor5-collaboration/src/collaboration-core';import _0x3e4b7e from'./trackchangesediting';import _0xcae3bd from'./ui/suggestioncontroller';import _0xf23068 from'./ui/view/suggestionthreadview';import{getTranslation as _0xc255f4}from'./utils/common-translations';import _0x28248a from'../theme/icons/track-changes.svg';export default class d extends _0x4fea31{static get[_0x5772('0xc')](){return[_0x3e4b7e,_0x26b0d0,_0x5772('0x49'),'Annotations',_0x5772('0x36')];}static get[_0x5772('0xd')](){return _0x5772('0x27');}constructor(_0x4658b3){super(_0x4658b3),this['_suggestionToController']=new Map(),this[_0x5772('0x6c')]=new Map(),this[_0x5772('0x46')]=new Map(),this[_0x5772('0x4f')]=new Map();const _0x36a6bd=this[_0x5772('0x30')][_0x5772('0x23')];_0x36a6bd[_0x5772('0x4c')](_0x5772('0x9'),_0xf23068),_0x36a6bd[_0x5772('0x4c')](_0x5772('0x60'),!0x1),this[_0x5772('0x13')]=_0x36a6bd[_0x5772('0x29')](_0x5772('0x60'));}[_0x5772('0x5a')](_0x2c6a2c,_0x5c467c){0x0===this[_0x5772('0x4f')]['size']&&setTimeout(()=>{for(const [_0x2a454c,_0x1e7417]of this[_0x5772('0x4f')]){const _0x3f8f5f=this['_suggestionToController'][_0x5772('0x66')](_0x2a454c);_0x3f8f5f||_0x1e7417?_0x3f8f5f&&_0x1e7417&&this['_destroyController'](_0x2a454c):this[_0x5772('0x1b')](_0x2a454c);}this[_0x5772('0x30')][_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x36'))[_0x5772('0x4e')](),this['_refreshActiveMarkers'](),this[_0x5772('0x4f')][_0x5772('0x69')]();},0xa),this[_0x5772('0x4f')][_0x5772('0x0')](_0x2c6a2c,_0x5c467c);}[_0x5772('0x54')](){const _0x4ffa25=this[_0x5772('0x30')],_0x340242=_0x4ffa25[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x22')),_0x376237=_0x4ffa25[_0x5772('0x15')]['get'](_0x5772('0x5e')),_0x7f5ebe=_0x4ffa25[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x36')),_0x5a4ef6=_0x4ffa25[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x49'));_0x4ffa25['ui']['componentFactory'][_0x5772('0x44')]('trackChanges',_0x262064=>this['_createUIButton'](_0x262064)),_0x7f5ebe['addSourceCollector'](()=>{const _0x34728b=[];for(const [_0x2fd615,_0x318a0f]of Array['from'](this[_0x5772('0x20')])){const _0xaa9336=_0x2fd615[_0x5772('0x6e')](),_0x5e8a90=[];for(const _0x1452a2 of _0xaa9336){if(!_0x1452a2[_0x5772('0x31')])continue;if(_0x1452a2[_0x5772('0x2b')]){_0x5e8a90[_0x5772('0x8')](..._0x1452a2['getRanges']());continue;}const _0x328de1=_0x1452a2['getFirstRange']();if(_0x5e8a90[_0x5772('0x59')]>0x0){const _0x1980bd=_0x5e8a90[0x0][_0x5772('0x2d')](_0x328de1);if(_0x1980bd){_0x5e8a90[0x0]=_0x1980bd;continue;}}_0x5e8a90[_0x5772('0x8')](_0x328de1);}_0x34728b[_0x5772('0x8')]([_0x318a0f[_0x5772('0x43')],_0x5e8a90]);}return _0x34728b;}),this['listenTo'](_0x340242,'suggestionLoaded',(_0x5490f4,_0x411077)=>{this[_0x5772('0x58')](_0x411077,_0x5772('0x3b'),(_0xe37e15,_0x552435,_0x1459a6,_0x2bbdb1)=>{_0x411077[_0x5772('0x31')]&&(null==_0x1459a6?(this[_0x5772('0x53')](_0x2bbdb1[_0x5772('0x11')]),this[_0x5772('0x5a')](_0x411077,!0x1)):(this[_0x5772('0x53')](_0x1459a6[_0x5772('0x11')]),this[_0x5772('0x5a')](_0x411077,!0x0)));}),null===_0x411077['previous']?this[_0x5772('0x5a')](_0x411077,!0x1):this[_0x5772('0x53')](_0x411077[_0x5772('0x11')]);}),this[_0x5772('0x58')](_0x340242,_0x5772('0x40'),(_0x6ccbfc,_0x550a96,_0x17deb5)=>{this[_0x5772('0x63')](_0x550a96,_0x5772('0x3b')),this[_0x5772('0x4f')][_0x5772('0x56')](_0x550a96);const _0x42f8db=_0x17deb5?_0x17deb5['head']:_0x550a96,_0x22b38c=this['_suggestionToController'][_0x5772('0x29')](_0x42f8db);null!==_0x17deb5&&this[_0x5772('0x53')](_0x42f8db),null===_0x17deb5&&_0x22b38c&&this['_destroyController'](_0x550a96);}),this['listenTo'](_0x340242,_0x5772('0xf'),(_0x35d4b2,_0x242c1e)=>{this['_updateController'](_0x242c1e);}),this[_0x5772('0x58')](_0x376237,_0x5772('0x3f'),()=>{this[_0x5772('0x65')]();}),this[_0x5772('0x58')](_0x5a4ef6,'addComment',(_0x26632b,{threadId:_0x192f81,isFromAdapter:_0x6faf6})=>{if(_0x6faf6||!_0x340242[_0x5772('0x1a')](_0x192f81))return;const _0x30d660=_0x340242['getSuggestion'](_0x192f81);this[_0x5772('0x20')][_0x5772('0x29')](_0x30d660)['view']['focus']();},{'priority':_0x5772('0x5f')});}[_0x5772('0x65')](){const _0x1b8831=this[_0x5772('0x30')][_0x5772('0x15')][_0x5772('0x29')]('Annotations'),_0x40c491=this[_0x5772('0x30')][_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x22')),_0x5ccc65=Array[_0x5772('0x1')](_0x1b8831[_0x5772('0x45')],_0x2eaa0d=>_0x2eaa0d[_0x5772('0x6a')])[_0x5772('0x1c')](_0xe6d8c9=>this[_0x5772('0x6c')][_0x5772('0x66')](_0xe6d8c9)),_0x93e2ae=[];for(const _0x164aed of _0x5ccc65){const _0x54b284=this['_viewToController']['get'](_0x164aed)[_0x5772('0x61')][_0x5772('0x6e')]();_0x93e2ae[_0x5772('0x8')](..._0x54b284[_0x5772('0x67')]((_0x1882ce,_0xc228fc)=>[..._0x1882ce,..._0xc228fc[_0x5772('0x6b')]()],[]));}_0x40c491[_0x5772('0x2c')]=_0x93e2ae;}[_0x5772('0x35')](_0x311467){const _0x4b2a4f=_0x4bb6ae(_0x311467,_0x810782),_0x55b1e6=this['editor'][_0x5772('0x2a')][_0x5772('0x29')]('trackChanges'),_0xd9a5b1=_0xc255f4(_0x311467,_0x5772('0x32'));_0x4b2a4f[_0x5772('0x12')][_0x5772('0x0')]({'tooltip':_0xd9a5b1,'label':_0xd9a5b1,'icon':_0x28248a}),_0x4b2a4f['buttonView'][_0x5772('0xe')](_0x5772('0x38'))['to'](_0x55b1e6,_0x5772('0x25')),_0x4b2a4f[_0x5772('0x12')]['on'](_0x5772('0x6'),()=>{_0x55b1e6[_0x5772('0x6')](),this[_0x5772('0x30')][_0x5772('0x41')][_0x5772('0x43')][_0x5772('0x55')]();});const _0x11363c=new _0x36adad(),_0x170c95=[{'type':_0x5772('0x6d'),'model':{'withText':!0x0,'label':_0xd9a5b1,'commandName':_0x5772('0x3c')}},{'type':_0x5772('0x19')},{'type':_0x5772('0x4b'),'model':{'withText':!0x0,'label':_0xc255f4(_0x311467,'Accept\x20all\x20suggestions'),'commandName':_0x5772('0x3d')}},{'type':_0x5772('0x4b'),'model':{'withText':!0x0,'label':_0xc255f4(_0x311467,_0x5772('0xb')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x5772('0x4b'),'model':{'withText':!0x0,'label':_0xc255f4(_0x311467,_0x5772('0x62')),'commandName':_0x5772('0x42')}},{'type':_0x5772('0x4b'),'model':{'withText':!0x0,'label':_0xc255f4(_0x311467,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x5772('0x57')}}];for(const _0x98df40 of _0x170c95){let _0x5873b0={'type':_0x5772('0x19')};if(_0x98df40[_0x5772('0x61')]){const _0x1ecd96=new _0xf139fd(_0x98df40[_0x5772('0x61')]),_0x3d1e38=this[_0x5772('0x30')]['commands'][_0x5772('0x29')](_0x1ecd96['commandName']);_0x1ecd96['bind'](_0x5772('0x38'),_0x5772('0x39'))['to'](_0x3d1e38,'value',_0x5772('0x39')),_0x5873b0={'type':_0x98df40[_0x5772('0x18')],'model':_0x1ecd96};}_0x11363c[_0x5772('0x44')](_0x5873b0);}_0x51d19(_0x4b2a4f,_0x11363c);const _0x31009c=_0x170c95[_0x5772('0x1c')](_0x2e8165=>null!=_0x2e8165[_0x5772('0x61')])[_0x5772('0x50')](_0x3bc657=>this['editor'][_0x5772('0x2a')][_0x5772('0x29')](_0x3bc657[_0x5772('0x61')][_0x5772('0x2')])),_0xc1e4a=_0x4b2a4f[_0x5772('0x12')];return _0xc1e4a['actionView'][_0x5772('0x28')](_0x5772('0x39')),_0xc1e4a[_0x5772('0x64')][_0x5772('0x28')]('isEnabled'),_0xc1e4a['actionView'][_0x5772('0xe')]('isEnabled')['to'](_0x55b1e6,_0x5772('0x39')),_0xc1e4a['arrowView'][_0x5772('0xe')]('isEnabled')[_0x5772('0x2e')](_0x31009c,'isEnabled',(..._0x672c47)=>_0x672c47[_0x5772('0x21')](_0x1f762a=>_0x1f762a)),_0x4b2a4f['on']('execute',_0x525ba2=>{this[_0x5772('0x30')][_0x5772('0x6')](_0x525ba2[_0x5772('0x68')][_0x5772('0x2')]),this[_0x5772('0x30')][_0x5772('0x41')][_0x5772('0x43')][_0x5772('0x55')]();}),_0x4b2a4f;}[_0x5772('0x1b')](_0x59d13e){const _0x3cdc0a=this[_0x5772('0x30')],_0x56d13a=_0x3cdc0a[_0x5772('0x23')],_0x2b27dc=_0x3cdc0a[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x5e')),_0x5235c5=_0x3cdc0a[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x49')),_0x507842=_0x3cdc0a[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x36')),_0x444fa4=_0x3cdc0a[_0x5772('0x15')][_0x5772('0x29')](_0x26b0d0)['me'],_0x153f9f=_0x56d13a[_0x5772('0x29')](_0x5772('0x3c'))[_0x5772('0x7')],{CommentsListView:_0x3c7dbf,CommentThreadInputView:_0x4b0405}=_0x3cdc0a[_0x5772('0x15')]['get'](_0x5772('0x5d'));let _0x271d43,_0x4beb7c;this[_0x5772('0x46')][_0x5772('0x66')](_0x59d13e['id'])?(_0x4beb7c=this['_annotationViews'][_0x5772('0x29')](_0x59d13e['id']),_0x271d43=_0x4beb7c[_0x5772('0x37')]):(_0x271d43=new _0x153f9f(_0x3cdc0a[_0x5772('0x2f')],_0x59d13e,_0x444fa4,{'disableComments':this[_0x5772('0x13')],'editorConfig':_0x56d13a[_0x5772('0x29')](_0x5772('0x52')),'maxCommentsWhenCollapsed':_0x56d13a[_0x5772('0x29')](_0x5772('0x48')),'maxThreadTotalWeight':_0x56d13a[_0x5772('0x29')](_0x5772('0x47')),'maxCommentCharsWhenCollapsed':_0x56d13a[_0x5772('0x29')](_0x5772('0x3a')),'formatDateTime':_0x559090(_0x56d13a[_0x5772('0x29')](_0x5772('0x2f'))),'CommentView':_0x56d13a[_0x5772('0x29')](_0x5772('0x26'))[_0x5772('0x4d')],'CommentsListView':_0x3c7dbf,'CommentThreadInputView':_0x4b0405}),_0x271d43[_0x5772('0x14')]['on']('execute',()=>{_0x3cdc0a[_0x5772('0x41')][_0x5772('0x43')][_0x5772('0x55')]();}),_0x271d43[_0x5772('0x16')]['on'](_0x5772('0x6'),()=>{_0x3cdc0a[_0x5772('0x41')]['view'][_0x5772('0x55')]();}),_0x4beb7c=_0x2b27dc[_0x5772('0xa')](this[_0x5772('0x30')]['locale'],_0x271d43),_0x4beb7c[_0x5772('0xe')]('isDirty')['to'](_0x271d43,_0x5772('0x5c')),_0x4beb7c[_0x5772('0xe')](_0x5772('0x59'))['to'](_0x271d43),_0x4beb7c['bind'](_0x5772('0x18'))['to'](_0x271d43,_0x5772('0x18'),_0x41c45c=>_0x5772('0x1e')+_0x41c45c),this[_0x5772('0x46')][_0x5772('0x0')](_0x59d13e['id'],_0x4beb7c));const _0x5d6809=_0x5235c5[_0x5772('0x24')](_0x59d13e[_0x5772('0x4a')],_0x271d43),_0x575431=new _0xcae3bd(_0x3cdc0a,_0x59d13e,_0x271d43,_0x5d6809),_0x28372d=_0x59d13e[_0x5772('0x6e')]()[_0x5772('0x1c')](_0x194601=>_0x194601[_0x5772('0x31')]);_0x271d43[_0x5772('0x1f')]=_0x3cdc0a['plugins'][_0x5772('0x29')]('TrackChangesEditing')['_descriptionFactory'][_0x5772('0x3e')](_0x28372d),this[_0x5772('0x20')][_0x5772('0x0')](_0x59d13e,_0x575431),this[_0x5772('0x6c')][_0x5772('0x0')](_0x271d43,_0x575431);const _0x2a1980=_0x2b27dc[_0x5772('0x34')]({'view':_0x4beb7c,'target':()=>{const _0x4f37f5=[],_0x1a804e=_0x59d13e[_0x5772('0x6e')]()[_0x5772('0x1c')](_0xb75447=>_0xb75447[_0x5772('0x31')]);for(const _0x4b89eb of _0x1a804e)_0x4f37f5[_0x5772('0x8')](..._0x4b89eb[_0x5772('0x3')]());return _0x378b62(_0x3cdc0a[_0x5772('0x41')],_0x4f37f5);},'type':()=>_0x5772('0x1e')+_0x575431[_0x5772('0x43')][_0x5772('0x18')]});_0x5235c5[_0x5772('0x5')](_0x271d43,_0x2a1980),_0x2b27dc['add'](_0x2a1980),_0x507842['registerAnnotation'](_0x2a1980);}[_0x5772('0x10')](_0xce2688){const _0x2da2ee=this[_0x5772('0x30')][_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x49')),_0x31508d=this['editor'][_0x5772('0x15')]['get'](_0x5772('0x5e')),_0x8c4148=this[_0x5772('0x20')]['get'](_0xce2688),_0x452a08=_0x8c4148[_0x5772('0x43')],_0x3d4606=_0x31508d[_0x5772('0x17')](_0x452a08);_0x2da2ee[_0x5772('0x33')](_0x452a08),_0x3d4606&&_0x31508d['remove'](_0x3d4606),this['_suggestionToController']['delete'](_0xce2688),this[_0x5772('0x6c')][_0x5772('0x56')](_0x452a08),_0x8c4148[_0x5772('0x4')]();}[_0x5772('0x53')](_0x477584){if(!_0x477584[_0x5772('0x31')]||!this[_0x5772('0x20')]['has'](_0x477584))return;const _0x39e6ca=this['editor'][_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x22')),_0x4323f8=this[_0x5772('0x20')][_0x5772('0x29')](_0x477584),_0x1ea9c0=_0x477584[_0x5772('0x6e')]();_0x4323f8[_0x5772('0x43')][_0x5772('0x1f')]=_0x39e6ca[_0x5772('0x1d')]['getDescriptions'](_0x1ea9c0);}['destroy'](){for(const _0x16cc36 of this[_0x5772('0x20')][_0x5772('0x5b')]())this[_0x5772('0x10')](_0x16cc36);for(const _0x126ee6 of this[_0x5772('0x46')][_0x5772('0x51')]())_0x126ee6[_0x5772('0x37')][_0x5772('0x4')]();super[_0x5772('0x4')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40fd=['PendingActions','isDirty','listenTo','locale','view','canDiscard','_editor','_acceptCommand','remove','_pendingAction','_discardCommand','add','_setPendingAction','acceptSuggestion','canEditAt','commentThreadController','_removePendingAction','stopListening','get','change:isDirty','model','unbind','getRanges','discardSuggestion','isEnabled','bind','execute','commands','destroy','canAccept','plugins'];(function(_0x55b198,_0x40fd36){const _0x7d5a46=function(_0x2b8b2e){while(--_0x2b8b2e){_0x55b198['push'](_0x55b198['shift']());}};_0x7d5a46(++_0x40fd36);}(_0x40fd,0x1cc));const _0x7d5a=function(_0x55b198,_0x40fd36){_0x55b198=_0x55b198-0x0;let _0x7d5a46=_0x40fd[_0x55b198];return _0x7d5a46;};import{ObservableMixin as _0x2d5dee}from'ckeditor5/src/utils';import{getTranslation as _0x1721f8}from'../utils/common-translations';export default class Gt extends _0x2d5dee(){constructor(_0x49ae23,_0x3be441,_0x17580a,_0x3f720e){super(),this['model']=_0x3be441,this[_0x7d5a('0x9')]=_0x17580a,this[_0x7d5a('0x14')]=_0x3f720e,this['_editor']=_0x49ae23,this[_0x7d5a('0xc')]=_0x49ae23[_0x7d5a('0x1')]['get'](_0x7d5a('0x12')),this[_0x7d5a('0xf')]=_0x49ae23['commands']['get'](_0x7d5a('0x1c')),this[_0x7d5a('0x9')][_0x7d5a('0x1e')](_0x7d5a('0x1d'))['to'](this['_acceptCommand'],this[_0x7d5a('0xf')],(_0x1bb734,_0x24969b)=>_0x1bb734||_0x24969b),this[_0x7d5a('0x9')][_0x7d5a('0x1e')](_0x7d5a('0x3'))['to'](this[_0x7d5a('0xc')],_0x7d5a('0x1d'),_0x2c4373=>_0x2c4373&&this[_0x7d5a('0xb')][_0x7d5a('0x19')][_0x7d5a('0x13')](_0x3be441[_0x7d5a('0x1b')]())),this[_0x7d5a('0x9')][_0x7d5a('0x1e')](_0x7d5a('0xa'))['to'](this['_discardCommand'],_0x7d5a('0x1d'),_0x328559=>_0x328559&&this[_0x7d5a('0xb')][_0x7d5a('0x19')][_0x7d5a('0x13')](_0x3be441[_0x7d5a('0x1b')]())),this[_0x7d5a('0xe')]=null,_0x17580a[_0x7d5a('0x6')]&&this[_0x7d5a('0x11')](),this['listenTo'](_0x17580a,_0x7d5a('0x12'),()=>this[_0x7d5a('0x12')]()),this[_0x7d5a('0x7')](_0x17580a,_0x7d5a('0x1c'),()=>this[_0x7d5a('0x1c')]()),this['listenTo'](_0x17580a,_0x7d5a('0x18'),()=>{_0x17580a['isDirty']?this[_0x7d5a('0x11')]():this[_0x7d5a('0x15')]();});}[_0x7d5a('0x12')](){this[_0x7d5a('0xc')]['execute'](this[_0x7d5a('0x19')]['id']);}[_0x7d5a('0x1c')](){this[_0x7d5a('0xf')][_0x7d5a('0x0')](this[_0x7d5a('0x19')]['id']);}[_0x7d5a('0x2')](){this[_0x7d5a('0x9')][_0x7d5a('0x1a')]('isEnabled'),this['view']['unbind'](_0x7d5a('0x3')),this[_0x7d5a('0x9')][_0x7d5a('0x1a')](_0x7d5a('0xa')),this[_0x7d5a('0x16')](),this[_0x7d5a('0x14')][_0x7d5a('0x2')](),this[_0x7d5a('0xe')]&&this[_0x7d5a('0x15')]();}[_0x7d5a('0x11')](){const _0x4e5708=_0x1721f8(this['_editor'][_0x7d5a('0x8')],'PENDING_ACTION_SUGGESTION');this[_0x7d5a('0xe')]=this[_0x7d5a('0xb')][_0x7d5a('0x4')][_0x7d5a('0x17')]('PendingActions')[_0x7d5a('0x10')](_0x4e5708);}[_0x7d5a('0x15')](){null!==this[_0x7d5a('0xe')]&&this['_editor'][_0x7d5a('0x4')][_0x7d5a('0x17')](_0x7d5a('0x5'))[_0x7d5a('0xd')](this[_0x7d5a('0xe')]),this[_0x7d5a('0xe')]=null;}}
|