@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231018.0 → 0.0.0-nightly-20231020.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 _0x3481=['isMultiRange','value','author','insertion','after','highest','getSuggestions','return','_updateSuggestionData','range','push','chain','_trackFormatChanges','addCommentThread','discard','_checkSuggestionCorrectness','_getSuggestionData','position','@external','Users','PendingActions','moveTargetPosition','options','_setSuggestionRange','plugins','detach','catch','every','attributes','removed','differ','markInsertion','markerNameToElements','hasSuggestion','editor','toViewElement','set','getIntersection','remove','default','stop','_suggestions','addSuggestionData','keys','isInsideObject','getRange','isAfter','suggestion','addRange','fromCharCode','formatInline:chain','add','_customCallbacks','then','item','createRange','addSuggestion','toJSON','markerName','applyOperation','some','splitPosition','delete','suggestionChanged','_createSuggestion','define','track-changes-adapter-already-set','_suggestionState','next','containsPosition','upcast','change:activeMarkers','markMultiRangeDeletion','change','formatGroupId','insertion:discard','forward','rootName','get','locale','isSelectable','createdAt','skipNestingCheck','_setSuggestionData','_mergeNestedSuggestions','discardSuggestion','getUser','adapter','deletion:chain','insertion:','update:suggestion','removeMarker:suggestion:formatBlock','hasComments','suggestion-type','high','track-changes-command-not-found','enableCommand','error-saving-suggestion-data-suggestion-discarded','getRanges','$marker','_cutOutSuggestionMarker','_model','_getExternalAuthor','registerPostFixer','_descriptionFactory','markMultiRangeInsertion','config','document','_enabledCommands','for','lowest','showSuggestionHighlights','_registerDefaultCallbacks','getLastMatchingPosition','discardSelectedSuggestions','rejected','isLimit','enqueueChange','markerToData','isLocal','includes','isIntersectingWithRange','consume','fire','createPositionAfter','_breakSuggestionMarker','data','getMultiRangeId','reconvertMarker','elementStart','isTouching','formatInline:','_saved','init','tablePasteChainId','resolve','markerToHighlight','_refreshSuggestionsChain','from','getAllAdjacentSuggestions','commands','howMany','enableReadOnlyMode','markMultiRangeBlockFormat','getDifference','setSelection','split','discardAllSuggestions','insertion:accept','nodeBefore','has','isOwn','collaboration.channelId','getSuggestionCallback','ck-suggestion-marker','getAncestors','setTo','getItems','parent','getCustomProperty','containerElement','addMarker:suggestion','unbindElementFromMarkerName','isInContent','addHighlight','ready','isExternal','createPositionAt','getChanges','isArray','elementEnd','_handleNewSuggestionMarker','multipleBlocks','formatInline:accept','createSelection','creator','addMarker:suggestion:formatBlock','ck-suggestion-marker-','filter','hasCommentThread','consumable','suggestion:','external:','trackChanges','markers','acceptAllSuggestions','_findSuggestions','isBlock','addUser','registerCustomCallback','markInlineFormat','acceptSuggestion','isCollapsed','deletion','createElement','name','conversion','commandName','_isDataLoaded','_addThreadToSuggestion','containsRangeInObject','formatBlock:accept','accept','isEqual','fromRange','removeMarker','originalSuggestionId','widget','schema','pluginName','end','deletion:discard','join','removeAttribute','authoredAt','assign','updateSuggestion','markBlockFormat','_commentsRepository','splice','_joinSuggestions','deleteContent','previous','containsRange','fetchCommentThread','requires','formatBlock:chain','getFirstMarker','element','always','execute','isRemovable','notReady','oldRange','formatBlock:join','getSuggestion','values','newRange','PENDING_ACTION_SUGGESTION','formatInline','updateMarker','suggestionLoaded','move','CommentsRepository','editingDowncast','formatBlock','getShiftedBy','backward','insertContent','$graveyard','activeMarkers','_adapter','getNearestSelectionRange','isUndo','trackChanges.mergeNestedSuggestions','_addSuggestionMarker','isAtEnd','createPositionBefore','nodeAfter','isObject','addMarkerName','trackChanges.trackFormatChanges','root','data-suggestion','stopListening','_editor','subType','sort','multi','markerReady','getAttribute','removeClass','_suggestionFactory','type','_joinWithAdjacentSuggestions','insert','formatBlock:discard','addComment','buildSuggestion','track-changes-user-not-found','forceDefaultExecution','deletion:','createRangeIn','trackChangesCommand','suggestionUnloaded','writer','isNextTo','open','addMarker','deletion:accept','model','map','acceptSelectedSuggestions','getFirstRange','formatInline:join','head','TrackChangesEditing','unbind','commentThread','start','isAtStart','mapper','dataReady','batch','_defaultCallbacks','containsItem','removeMarkers','_splitMarkerName','listenTo','refresh','length','_removeSuggestion','_isForcedDefaultExecutionBlock','dataDowncast','selection','clone','formatBlock:','_rangeIsInLocalUserInsertion','addClass','isBefore','ck-suggestion-marker--active','group','size','ck-suggestion-marker-formatBlock','low'];(function(_0x574b33,_0x34813b){const _0x3d5eec=function(_0x4c38e5){while(--_0x4c38e5){_0x574b33['push'](_0x574b33['shift']());}};_0x3d5eec(++_0x34813b);}(_0x3481,0x1d3));const _0x3d5e=function(_0x574b33,_0x34813b){_0x574b33=_0x574b33-0x0;let _0x3d5eec=_0x3481[_0x574b33];return _0x3d5eec;};import{Plugin as _0x2c6fc4,PendingActions as _0x42a800}from'ckeditor5/src/core';import{LiveRange as _0x43231c}from'ckeditor5/src/engine';import{CKEditorError as _0x407a23,uid as _0x59e8c4,priorities as _0x372370,logWarning as _0x54b295}from'ckeditor5/src/utils';import{toWidget as _0x2956e3}from'ckeditor5/src/widget';import{Users as _0x37b1a6,hashObject as _0x544d40}from'ckeditor5-collaboration/src/collaboration-core';import _0x307cab from'./commands/trackchangescommand';import _0x36f33e from'./commands/acceptsuggestioncommand';import _0x2749cc from'./commands/discardsuggestioncommand';import _0x8ecd0f from'./commands/executeonallsuggestionscommand';import _0x4ab4a7 from'./commands/executeonselectedsuggestionscommand';import _0x439cc9 from'./suggestion';import _0x4652fd from'./suggestiondescriptionfactory';import _0x448949 from'./integrations/aiassistant';import _0x240b75 from'./integrations/alignment';import _0x35540b from'./integrations/basicstyles';import _0x1d962c from'./integrations/blockquote';import _0x37aeb0 from'./integrations/ckbox';import _0x96a1b from'./integrations/codeblock';import _0x5e3042 from'./integrations/comments';import _0x3cfa1c from'./integrations/deletecommand';import _0x50252f from'./integrations/documentlist';import _0x26800c from'./integrations/entercommand';import _0x1c91ac from'./integrations/findandreplace';import _0x2b2e6e from'./integrations/font';import _0x566329 from'./integrations/formatpainter';import _0x558ec7 from'./integrations/heading';import _0x30137f from'./integrations/highlight';import _0x369a52 from'./integrations/horizontalline';import _0x1a9cad from'./integrations/htmlembed';import _0x37ef12 from'./integrations/image';import _0x4bc03d from'./integrations/imagereplace';import _0x16a1b8 from'./integrations/importword';import _0x30230d from'./integrations/indent';import _0x5ada57 from'./integrations/inputcommand';import _0x152f68 from'./integrations/link';import _0x5c8d31 from'./integrations/list';import _0x1a9277 from'./integrations/listproperties';import _0x151926 from'./integrations/mediaembed';import _0x2ba83e from'./integrations/mention';import _0x1f2fc8 from'./integrations/pagebreak';import _0x16c7cd from'./integrations/paragraph';import _0x3471d8 from'./integrations/removeformat';import _0x5b5cfe from'./integrations/restrictededitingmode';import _0x58979e from'./integrations/shiftentercommand';import _0x31743e from'./integrations/standardeditingmode';import _0x4ab311 from'./integrations/style';import _0x5b8b13 from'./integrations/table';import _0x516094 from'./integrations/tablemergesplit';import _0x293f87 from'./integrations/tableheadings';import _0x5d5715 from'./integrations/tableclipboard';import _0x5d0df0 from'./integrations/tablecolumnresize';import _0x518d72 from'./integrations/template';import _0x5ecc3e from'./integrations/tableofcontents';import _0x412b10 from'./integrations/title';import _0x149884 from'./integrations/undo';import{getTranslation as _0x47b482}from'./utils/common-translations';import _0x34a9fa from'./integrations/tablecaption';import _0xdf43fc from'./integrations/documentlistproperties';import _0xcd9733 from'./integrations/tableproperties';import{isEqual as _0x170aad}from'lodash-es';export default class p extends _0x2c6fc4{static get[_0x3d5e('0x53')](){return[_0x3d5e('0x65'),_0x37b1a6,_0x42a800,_0x448949,_0x240b75,_0x35540b,_0x1d962c,_0x37aeb0,_0x96a1b,_0x5e3042,_0x3cfa1c,_0x50252f,_0xdf43fc,_0x26800c,_0x1c91ac,_0x2b2e6e,_0x566329,_0x558ec7,_0x30137f,_0x369a52,_0x1a9cad,_0x37ef12,_0x4bc03d,_0x16a1b8,_0x30230d,_0x5ada57,_0x152f68,_0x5c8d31,_0x1a9277,_0x151926,_0x2ba83e,_0x1f2fc8,_0x16c7cd,_0x3471d8,_0x5b5cfe,_0x58979e,_0x31743e,_0x4ab311,_0x5b8b13,_0x516094,_0x293f87,_0x34a9fa,_0x5d5715,_0x5d0df0,_0x5ecc3e,_0xcd9733,_0x518d72,_0x412b10,_0x149884];}static get[_0x3d5e('0x43')](){return _0x3d5e('0x9a');}constructor(_0x8219d1){function _0x4efb92(_0x4fcceb){return _0x4fcceb[_0x3d5e('0x95')](_0x167002=>String[_0x3d5e('0xe8')](_0x167002))['join']('');}super(_0x8219d1),this['set'](_0x3d5e('0x6c'),[]),this['on'](_0x3d5e('0xfe'),(_0x52d4a5,_0x323491,_0x2fc581,_0x48832c)=>{this[_0x3d5e('0x11c')][_0x3d5e('0x100')](()=>{for(const _0xdf8ee3 of[..._0x48832c,..._0x2fc581])this[_0x3d5e('0x11c')][_0x3d5e('0x2a')][_0x3d5e('0x8')](_0xdf8ee3)&&_0x8219d1['editing'][_0x3d5e('0x137')](_0xdf8ee3);});}),this[_0x3d5e('0x11f')]=new _0x4652fd(this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x42')],this[_0x3d5e('0xd9')][_0x3d5e('0x106')]),this[_0x3d5e('0x6d')]=null,this[_0x3d5e('0x82')]=new Bt(this['editor']),this[_0x3d5e('0xe0')]=new Map(),this[_0x3d5e('0x4c')]=_0x8219d1[_0x3d5e('0xcf')][_0x3d5e('0x105')]('CommentsRepository'),this[_0x3d5e('0x123')]=new Set(),this['_model']=this['editor'][_0x3d5e('0x94')],this[_0x3d5e('0xfa')]=new WeakMap(),this[_0x3d5e('0xaa')]=!0x1,_0x8219d1[_0x3d5e('0x121')][_0x3d5e('0xf8')](_0x3d5e('0x77'),_0x3d5e('0xde')),this[_0x3d5e('0xc3')]=_0x8219d1[_0x3d5e('0x121')]['get'](_0x3d5e('0x77')),_0x8219d1[_0x3d5e('0x121')][_0x3d5e('0xf8')](_0x3d5e('0x70'),!0x0),this['_mergeNestedSuggestions']=_0x8219d1[_0x3d5e('0x121')][_0x3d5e('0x105')](_0x3d5e('0x70')),this[_0x3d5e('0x8d')]=new _0x307cab(_0x8219d1,this[_0x3d5e('0x123')]),this[_0x4efb92([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4efb92([0x34,0x30,0x34,0x36,0x32,0x30,0x33,0x36]);}[_0x3d5e('0x13c')](){const _0x16bd4f=this[_0x3d5e('0xd9')];_0x16bd4f['conversion'][_0x3d5e('0x124')](_0x3d5e('0x66'))[_0x3d5e('0x13f')]({'model':_0x3d5e('0xe6'),'view':_0x1f4fb3=>{const {id:_0x4cf9bd,type:_0x1f3b6a}=this[_0x3d5e('0xa5')](_0x1f4fb3[_0x3d5e('0xf1')]),_0x22dd12=[_0x3d5e('0xc'),_0x3d5e('0x23')+_0x1f3b6a];let _0x4d27d8=0xbb8;return this['activeMarkers'][_0x3d5e('0x12f')](_0x1f4fb3[_0x3d5e('0xf1')])&&(_0x22dd12[_0x3d5e('0xc1')]('ck-suggestion-marker--active'),_0x4d27d8=0xbc2),_0x3d5e('0x33')==_0x1f3b6a&&(_0x4d27d8+=0x5),{'classes':_0x22dd12,'attributes':{'data-suggestion':_0x4cf9bd},'priority':_0x4d27d8};}}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xab'))['add'](_0x3e64b7=>{_0x3e64b7['on'](_0x3d5e('0x13'),(_0x118b6f,_0x381a9f,_0x33efd7)=>{if(!_0x33efd7[_0x3d5e('0xcd')][_0x3d5e('0x126')])return;const _0x1bffd6=_0x381a9f['item'];if(!_0x1bffd6)return;const _0x34b872=_0x33efd7[_0x3d5e('0x9f')]['toViewElement'](_0x1bffd6);_0x16bd4f['model'][_0x3d5e('0x42')][_0x3d5e('0x75')](_0x1bffd6)&&_0x34b872&&!_0x34b872[_0x3d5e('0x11')](_0x3d5e('0x41'))&&_0x34b872['is'](_0x3d5e('0x12'))&&_0x2956e3(_0x34b872,_0x33efd7['writer']);},{'priority':'high'});}),_0x16bd4f['conversion'][_0x3d5e('0x124')](_0x3d5e('0xab'))['markerToHighlight']({'model':_0x3d5e('0xe6'),'view':(_0x350f37,_0x1a1863)=>{if(!_0x1a1863[_0x3d5e('0xcd')][_0x3d5e('0x126')])return null;const {type:_0x1ec080}=this[_0x3d5e('0xa5')](_0x350f37[_0x3d5e('0xf1')]);return{'classes':[_0x3d5e('0xc'),_0x3d5e('0x23')+_0x1ec080],'priority':0xbb8};}});const _0x426c47=({showActiveMarkers:_0x4d99e1=!0x0}={})=>(_0x31f8ae,_0x3274d7,_0x5d478c)=>{if(!_0x3274d7[_0x3d5e('0xed')])return;if(_0x3274d7[_0x3d5e('0xed')]['is'](_0x3d5e('0xac')))return void _0x5d478c['consumable'][_0x3d5e('0x131')](_0x3274d7[_0x3d5e('0xed')],_0x31f8ae['name']);const _0x371dce=_0x5d478c[_0x3d5e('0x9f')][_0x3d5e('0xda')](_0x3274d7['item']);if(!(_0x3274d7[_0x3d5e('0xed')]['is']('element')&&_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x42')][_0x3d5e('0x2d')](_0x3274d7['item'])&&!_0x371dce['getCustomProperty']('addHighlight')))return;const {id:_0x693da}=this['_splitMarkerName'](_0x3274d7[_0x3d5e('0xf1')]);_0x5d478c[_0x3d5e('0x8f')][_0x3d5e('0xb0')]([_0x3d5e('0xc'),_0x3d5e('0xb5')],_0x371dce),_0x5d478c[_0x3d5e('0x8f')]['setAttribute'](_0x3d5e('0x79'),_0x693da,_0x371dce),_0x5d478c[_0x3d5e('0x9f')]['bindElementToMarker'](_0x371dce,_0x3274d7[_0x3d5e('0xf1')]),_0x4d99e1&&(this[_0x3d5e('0x6c')]['includes'](_0x3274d7['markerName'])?_0x5d478c[_0x3d5e('0x8f')][_0x3d5e('0xb0')](_0x3d5e('0xb2'),_0x371dce):_0x5d478c[_0x3d5e('0x8f')][_0x3d5e('0x81')](_0x3d5e('0xb2'),_0x371dce));for(const _0x139a0a of _0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x8c')](_0x3274d7['item'])[_0x3d5e('0xf')]())_0x5d478c[_0x3d5e('0x26')][_0x3d5e('0x131')](_0x139a0a,_0x31f8ae[_0x3d5e('0x35')]);_0x5d478c['consumable'][_0x3d5e('0x131')](_0x3274d7[_0x3d5e('0xed')],_0x31f8ae[_0x3d5e('0x35')]);};_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xab'))[_0x3d5e('0xea')](_0x13d960=>{_0x13d960['on'](_0x3d5e('0x22'),(_0x32ed0e,_0x199aed,_0x45fd30)=>{_0x45fd30['options']['showSuggestionHighlights']&&_0x426c47({'showActiveMarkers':!0x1})(_0x32ed0e,_0x199aed,_0x45fd30);},{'priority':_0x3d5e('0xbc')});}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xab'))[_0x3d5e('0x12d')]({'model':'suggestion','view':(_0x3cf6fd,_0x21c43b)=>_0x21c43b[_0x3d5e('0xcd')][_0x3d5e('0x126')]?null:{'group':_0x3d5e('0xe6'),'name':_0x3cf6fd['substr'](0xb)}}),_0x16bd4f['conversion']['for'](_0x3d5e('0xfd'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1bdee1,{writer:_0x426e8a})=>{let _0xd6a4c6=_0x3d5e('0x27')+_0x1bdee1[_0x3d5e('0x80')](_0x3d5e('0x114'))+':'+_0x1bdee1[_0x3d5e('0x80')]('id');return _0x1bdee1[_0x3d5e('0x80')]('marker-count')&&(_0xd6a4c6+=':'+_0x1bdee1['getAttribute']('marker-count')),_0x426e8a[_0x3d5e('0x34')](_0x3d5e('0x11a'),{'data-name':_0xd6a4c6});}}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xfd'))['dataToMarker']({'view':_0x3d5e('0xe6')}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0x66'))[_0x3d5e('0xea')](_0x38887b=>{_0x38887b['on'](_0x3d5e('0x22'),_0x426c47(),{'priority':_0x3d5e('0x115')});}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0x66'))[_0x3d5e('0xea')](_0x4d1506=>{_0x4d1506['on'](_0x3d5e('0x112'),(_0x24be6a,_0x3c8425,_0x4db599)=>{const _0x2f31eb=_0x4db599[_0x3d5e('0x9f')][_0x3d5e('0xd7')](_0x3c8425[_0x3d5e('0xf1')]);if(_0x2f31eb)for(const _0x3f5193 of _0x2f31eb)_0x3f5193[_0x3d5e('0x11')](_0x3d5e('0x16'))||(_0x4db599['writer'][_0x3d5e('0x81')]([_0x3d5e('0xc'),_0x3d5e('0xb5'),_0x3d5e('0xb2')],_0x3f5193),_0x4db599[_0x3d5e('0x8f')][_0x3d5e('0x47')](_0x3d5e('0x79'),_0x3f5193),_0x4db599[_0x3d5e('0x9f')][_0x3d5e('0x14')](_0x3f5193,_0x3c8425[_0x3d5e('0xf1')]));},{'priority':_0x3d5e('0x115')});}),_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')]['registerPostFixer'](_0x4ca596=>{let _0x3ba77b=!0x1;const _0x5d1c16=Array[_0x3d5e('0x141')](_0x16bd4f[_0x3d5e('0x94')]['document']['differ']['getChangedMarkers']()),_0x171db4=new Set();for(const {name:_0x9d9220,data:_0x244d64}of _0x5d1c16){const {group:_0x5420c1,type:_0x42c954,id:_0x2d60cf}=this[_0x3d5e('0xa5')](_0x9d9220);if(_0x3d5e('0xe6')!==_0x5420c1)continue;const _0x26647b=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x2d60cf);if(null!=_0x244d64[_0x3d5e('0x5f')]){_0x3d5e('0x61')==_0x42c954&&(_0x3ba77b=_0x3ba77b||$t(_0x244d64[_0x3d5e('0x5f')],_0x9d9220,_0x4ca596,_0x16bd4f['model'][_0x3d5e('0x42')]));if(_0x244d64['newRange'][_0x3d5e('0x32')]||'$graveyard'==_0x244d64[_0x3d5e('0x5f')]['root'][_0x3d5e('0x104')]||'formatBlock'==_0x42c954&&!Rt(_0x244d64['newRange'])||_0x3d5e('0x33')==_0x42c954&&!(!Mt(_0x273da1=_0x244d64[_0x3d5e('0x5f')])&&!function(_0x15fc4d){return _0x15fc4d[_0x3d5e('0x9d')]['parent']==_0x15fc4d[_0x3d5e('0x44')][_0x3d5e('0x7')]&&_0x15fc4d[_0x3d5e('0x9d')][_0x3d5e('0x72')];}(_0x273da1)))_0x4ca596[_0x3d5e('0x3f')](_0x9d9220),_0x3ba77b=!0x0;else{if(!_0x26647b||!_0x26647b[_0x3d5e('0x15')])continue;_0x171db4[_0x3d5e('0xea')](_0x26647b);}}}var _0x273da1;return _0x171db4[_0x3d5e('0xb4')]>0x0&&(_0x3ba77b=!!this[_0x3d5e('0x84')](_0x171db4)||_0x3ba77b),_0x3ba77b;}),_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')][_0x3d5e('0x11e')](_0xf993f1=>{let _0x219dc4=!0x1;for(const _0x138d91 of _0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')][_0x3d5e('0xd5')][_0x3d5e('0x1a')]()){if(_0x3d5e('0x85')!=_0x138d91[_0x3d5e('0x83')])continue;const _0x484311=_0x138d91[_0x3d5e('0xc8')][_0x3d5e('0x68')](_0x138d91['length']);if(_0x484311[_0x3d5e('0x72')])for(const _0x5e38a0 of this['_suggestions'][_0x3d5e('0x5e')]()){if(_0x5e38a0[_0x3d5e('0xb7')]||!_0x5e38a0[_0x3d5e('0x15')])continue;if(_0x3d5e('0x67')!=_0x5e38a0[_0x3d5e('0x83')])continue;const _0x3f8fd5=_0x5e38a0['getFirstRange']();if(_0x3f8fd5[_0x3d5e('0x9d')]['parent']!=_0x3f8fd5[_0x3d5e('0x44')][_0x3d5e('0x10')]&&_0x3f8fd5['end']['isEqual'](_0x138d91[_0x3d5e('0xc8')])){const _0x261d15=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0xee')](_0x3f8fd5[_0x3d5e('0x9d')],_0x484311);_0xf993f1[_0x3d5e('0x62')](_0x5e38a0[_0x3d5e('0x55')](),{'range':_0x261d15}),_0x219dc4=!0x0;}}}return _0x219dc4;}),_0x16bd4f[_0x3d5e('0x94')]['markers']['on'](_0x3d5e('0x111'),(_0x3f8ffa,_0x363d82,_0x242920)=>{if(null==_0x242920){const {id:_0x3b7c10}=this['_splitMarkerName'](_0x363d82[_0x3d5e('0x35')]),_0x289924=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x3b7c10);_0x289924&&_0x289924['addMarkerName'](_0x363d82[_0x3d5e('0x35')]);}}),_0x16bd4f[_0x3d5e('0x94')]['document']['on']('change:data',()=>{const _0x52c891=Array[_0x3d5e('0x141')](_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')][_0x3d5e('0xd5')]['getChangedMarkers']())['filter'](_0x167d3c=>'suggestion'===this['_splitMarkerName'](_0x167d3c[_0x3d5e('0x35')])[_0x3d5e('0xb3')]);if(0x0===_0x52c891[_0x3d5e('0xa8')])return;_0x52c891[_0x3d5e('0x7d')]((_0x9413da,_0x3f9721)=>{const _0x437601=_0x9413da['data'][_0x3d5e('0x5b')],_0x4f45e9=_0x3f9721['data'][_0x3d5e('0x5b')];return null===_0x437601&&null===_0x4f45e9?0x0:null===_0x437601&&null!==_0x4f45e9?-0x1:null!==_0x437601&&null===_0x4f45e9?0x1:_0x437601[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x4f45e9[_0x3d5e('0x9d')])?-0x1:0x1;});const _0x39731c=new Set(),_0x535606=new Set();for(const {name:_0x307c1c,data:_0x3c2967}of _0x52c891){const {id:_0x8dedf2}=this['_splitMarkerName'](_0x307c1c);if(null===_0x3c2967[_0x3d5e('0x5b')]){const _0x3a8d36=this['_handleNewSuggestionMarker'](_0x307c1c);_0x535606[_0x3d5e('0xea')](_0x3a8d36);}else{const _0x2aced0=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x8dedf2);null!==_0x3c2967[_0x3d5e('0x5f')]||_0x2aced0[_0x3d5e('0x15')]?(_0x39731c['add'](_0x2aced0[_0x3d5e('0x99')]),_0x535606[_0x3d5e('0xea')](_0x2aced0)):this[_0x3d5e('0xa9')](_0x2aced0);}}_0x535606[_0x3d5e('0xb4')]>0x0&&this[_0x3d5e('0x140')](_0x535606);for(const _0x1a211b of _0x39731c)this['fire'](_0x3d5e('0xf6'),_0x1a211b);}),_0x16bd4f[_0x3d5e('0x94')]['on'](_0x3d5e('0xf2'),(_0x3ea956,_0x33431a)=>{const _0x42689c=_0x33431a[0x0];if(!this[_0x3d5e('0xe0')][_0x3d5e('0xb4')])return;if(!_0x42689c['isDocumentOperation'])return;if(_0x42689c['batch'][_0x3d5e('0x6f')]||!_0x42689c[_0x3d5e('0xa1')][_0x3d5e('0x12e')])return;let _0x537b10,_0x3b4b07;switch(_0x42689c[_0x3d5e('0x83')]){case _0x3d5e('0x85'):_0x537b10=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c[_0x3d5e('0xc8')]),_0x3b4b07=_0x537b10[_0x3d5e('0x68')](_0x42689c[_0x3d5e('0x144')]);break;case _0x3d5e('0x4'):_0x537b10=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c[_0x3d5e('0xf4')]),_0x3b4b07=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c[_0x3d5e('0xcc')]);break;case _0x3d5e('0x64'):_0x537b10=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c['targetPosition']),_0x3b4b07=_0x537b10['getShiftedBy'](_0x42689c[_0x3d5e('0x144')]);break;default:return;}const _0x4d20bd=_0x16bd4f['model'][_0x3d5e('0xee')](_0x537b10,_0x3b4b07);_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x100')](()=>{for(const {suggestion:_0x34604b,meta:_0x269d77}of this[_0x3d5e('0x2c')](_0x4d20bd)){if(_0x34604b[_0x3d5e('0xb7')])continue;if(_0x3d5e('0x61')==_0x34604b['type'])continue;const _0x4acac1=_0x34604b[_0x3d5e('0x135')]&&_0x34604b['data'][_0x3d5e('0x1e')];(_0x3d5e('0x67')!=_0x34604b[_0x3d5e('0x83')]||_0x3d5e('0x4')==_0x42689c[_0x3d5e('0x83')]&&!_0x4acac1)&&(_0x269d77[_0x3d5e('0x3a')]||_0x3d5e('0xba')==_0x34604b[_0x3d5e('0x83')]&&_0x269d77[_0x3d5e('0x9')]||_0x34604b[_0x3d5e('0x97')]()[_0x3d5e('0x51')](_0x4d20bd)&&this[_0x3d5e('0x134')](_0x34604b,_0x537b10,_0x3b4b07));}});},{'priority':_0x3d5e('0x125')}),_0x16bd4f['model']['on'](_0x3d5e('0x4f'),(_0x54a040,_0x4f1701)=>{const _0x21ec5a=_0x4f1701[0x0],_0x2ef749=_0x4f1701[0x1];if(_0x2ef749&&_0x2ef749[_0x3d5e('0x8a')])return;if(this[_0x3d5e('0xaa')])return;if(!this['trackChangesCommand'][_0x3d5e('0xb8')])return;if(_0x21ec5a[_0x3d5e('0x32')])return;const _0x1371f2=_0x16bd4f['model'][_0x3d5e('0x42')],{start:_0x1abd76,end:_0x2d9b0d}=_0x21ec5a[_0x3d5e('0x97')](),_0x2e0114=_0x1abd76[_0x3d5e('0x74')]&&_0x1371f2[_0x3d5e('0x12b')](_0x1abd76[_0x3d5e('0x74')])?null:_0x1371f2[_0x3d5e('0x6e')](_0x1abd76,_0x3d5e('0x103')),_0xc39a8e=_0x2d9b0d[_0x3d5e('0x7')]&&_0x1371f2[_0x3d5e('0x12b')](_0x2d9b0d[_0x3d5e('0x7')])?null:_0x1371f2[_0x3d5e('0x6e')](_0x2d9b0d,_0x3d5e('0x69')),_0x295bfe=_0x16bd4f['model'][_0x3d5e('0xee')](_0x2e0114?_0x2e0114[_0x3d5e('0x9d')]:_0x1abd76,_0xc39a8e?_0xc39a8e[_0x3d5e('0x44')]:_0x2d9b0d);_0x16bd4f[_0x3d5e('0x94')]['change'](_0x1957ea=>{this['markDeletion'](_0x295bfe);const _0x5bce8f=_0x16bd4f[_0x3d5e('0x94')]['schema'][_0x3d5e('0x6e')](_0x295bfe[_0x3d5e('0x9d')]);_0x21ec5a['is']('documentSelection')?_0x1957ea[_0x3d5e('0x3')](_0x5bce8f):_0x21ec5a[_0x3d5e('0xe')](_0x5bce8f);}),_0x54a040[_0x3d5e('0xdf')]();},{'priority':_0x372370['normal']+0xa}),_0x16bd4f[_0x3d5e('0x94')]['on'](_0x3d5e('0x6a'),(_0x4a4838,_0x188021)=>{const _0x233f49=_0x188021[_0x188021['length']-0x1];_0x233f49&&_0x233f49[_0x3d5e('0x8a')]||this[_0x3d5e('0xaa')]||this[_0x3d5e('0x8d')]['value']&&(_0x16bd4f[_0x3d5e('0x94')]['change'](()=>{let _0x321b53=_0x16bd4f['model']['insertContent'](_0x188021[0x0],_0x188021[0x1],_0x188021[0x2],{'forceDefaultExecution':!0x0});if(!_0x321b53)return;_0x4a4838[_0x3d5e('0xbe')]=_0x321b53[_0x3d5e('0xad')]();const _0x5aa0e8=_0x321b53[_0x3d5e('0x44')][_0x3d5e('0x7')],_0x32c436=_0x16bd4f[_0x3d5e('0x94')]['schema'];_0x5aa0e8&&_0x32c436[_0x3d5e('0x2d')](_0x5aa0e8)&&!_0x32c436[_0x3d5e('0x75')](_0x5aa0e8)&&(_0x321b53=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0xee')](_0x321b53[_0x3d5e('0x9d')],_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x5aa0e8,'end'))),this[_0x3d5e('0xd6')](_0x321b53);}),_0x4a4838[_0x3d5e('0xdf')]());},{'priority':_0x3d5e('0x115')}),this[_0x3d5e('0xd9')][_0x3d5e('0x143')]['add'](_0x3d5e('0x29'),this[_0x3d5e('0x8d')]),this['enableCommand'](_0x3d5e('0x29'));const _0x298501=new _0x36f33e(_0x16bd4f,this[_0x3d5e('0xe0')]);_0x16bd4f['commands'][_0x3d5e('0xea')](_0x3d5e('0x31'),_0x298501),this[_0x3d5e('0x117')]('acceptSuggestion');const _0x515008=new _0x2749cc(_0x16bd4f,this[_0x3d5e('0xe0')]);_0x16bd4f['commands'][_0x3d5e('0xea')]('discardSuggestion',_0x515008),this[_0x3d5e('0x117')](_0x3d5e('0x10c')),_0x16bd4f[_0x3d5e('0x143')][_0x3d5e('0xea')](_0x3d5e('0x2b'),new _0x8ecd0f(_0x16bd4f,_0x298501,this['_suggestions'])),this[_0x3d5e('0x117')](_0x3d5e('0x2b')),_0x16bd4f[_0x3d5e('0x143')]['add'](_0x3d5e('0x5'),new _0x8ecd0f(_0x16bd4f,_0x515008,this[_0x3d5e('0xe0')])),this[_0x3d5e('0x117')](_0x3d5e('0x5')),_0x16bd4f[_0x3d5e('0x143')][_0x3d5e('0xea')]('acceptSelectedSuggestions',new _0x4ab4a7(_0x16bd4f,_0x298501,this['_suggestions'])),this[_0x3d5e('0x117')](_0x3d5e('0x96')),_0x16bd4f[_0x3d5e('0x143')]['add'](_0x3d5e('0x129'),new _0x4ab4a7(_0x16bd4f,_0x515008,this[_0x3d5e('0xe0')])),this[_0x3d5e('0x117')](_0x3d5e('0x129'));const _0x5a3c0a=_0x16bd4f[_0x3d5e('0xcf')]['get']('CommentsRepository');this[_0x3d5e('0xa6')](_0x5a3c0a,_0x3d5e('0x87'),(_0x1f97c3,{threadId:_0x5a9333})=>{const _0x4e33ff=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x5a9333);_0x4e33ff&&_0x4e33ff[_0x3d5e('0x9c')]&&0x1===_0x4e33ff[_0x3d5e('0x9c')]['length']&&this[_0x3d5e('0xbf')](_0x5a9333,{'hasComments':!0x0});},{'priority':_0x3d5e('0xb6')}),this['listenTo'](_0x5a3c0a,'removeComment',(_0x1c4f8b,{threadId:_0x3a378b})=>{const _0x2ce182=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x3a378b);_0x2ce182&&_0x2ce182[_0x3d5e('0x9c')]&&!_0x2ce182[_0x3d5e('0x9c')][_0x3d5e('0xa8')]&&this['_updateSuggestionData'](_0x3a378b,{'hasComments':!0x1});},{'priority':_0x3d5e('0xb6')});}set[_0x3d5e('0x10e')](_0x5b1ae2){if(this[_0x3d5e('0x6d')])throw new _0x407a23(_0x3d5e('0xf9'),this);this['_adapter']=_0x5b1ae2;}get[_0x3d5e('0x10e')](){return this[_0x3d5e('0x6d')];}['getSuggestions']({skipNotAttached:_0x38f867=!0x1,toJSON:_0x39cd3c=!0x1}={}){const _0x20cb15=[];for(const _0x364141 of this['_suggestions'][_0x3d5e('0x5e')]())_0x38f867&&!_0x364141['isInContent']||_0x20cb15[_0x3d5e('0xc1')](_0x364141);return _0x39cd3c?_0x20cb15[_0x3d5e('0x95')](_0x11ef06=>_0x11ef06[_0x3d5e('0xf0')]()):_0x20cb15;}[_0x3d5e('0x5d')](_0x123a74){const _0x391ad9=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x123a74);if(!_0x391ad9)throw new _0x407a23('track-changes-suggestion-not-found',this);return _0x391ad9;}[_0x3d5e('0xd8')](_0x1da081){return this[_0x3d5e('0xe0')][_0x3d5e('0x8')](_0x1da081);}[_0x3d5e('0xe1')](_0x4a9115){const {authorId:_0x101c68,id:_0x4b0598,attributes:_0x12ad6c}=_0x4a9115,[_0x2ee3b4,_0x2678e1]=_0x4a9115[_0x3d5e('0x83')][_0x3d5e('0x4')](':'),_0x1ad9c5=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x4b0598)||this[_0x3d5e('0xf7')](_0x2ee3b4,_0x2678e1,_0x4b0598,_0x101c68,_0x12ad6c);if(this[_0x3d5e('0x39')](_0x1ad9c5),this[_0x3d5e('0xc6')](_0x1ad9c5,_0x2ee3b4,_0x2678e1||null,_0x101c68),_0x1ad9c5[_0x3d5e('0x108')]=_0x4a9115[_0x3d5e('0x108')],_0x1ad9c5['_isDataLoaded']=!0x0,_0x12ad6c&&_0x12ad6c[_0x3d5e('0xc9')]){const _0x10b786=_0x12ad6c[_0x3d5e('0xc9')],_0x4215b6=this[_0x3d5e('0x11d')](_0x10b786['authorName']);_0x1ad9c5['authoredAt']=_0x10b786['createdAt'],_0x1ad9c5[_0x3d5e('0xb9')]=_0x4215b6,_0x1ad9c5[_0x3d5e('0x18')]=!0x0;}else _0x1ad9c5[_0x3d5e('0x48')]=_0x4a9115[_0x3d5e('0x108')];switch(_0x4a9115['data']&&(_0x1ad9c5[_0x3d5e('0x135')]=_0x4a9115[_0x3d5e('0x135')]),_0x4a9115[_0x3d5e('0xd3')]&&(_0x1ad9c5['attributes']=_0x4a9115[_0x3d5e('0xd3')]),this[_0x3d5e('0x6d')]&&this[_0x3d5e('0x6d')]['addSuggestion']||(_0x1ad9c5['_saved']=!0x0),this[_0x3d5e('0xfa')][_0x3d5e('0x105')](_0x1ad9c5)){case _0x3d5e('0x5a'):this['_suggestionState'][_0x3d5e('0xdb')](_0x1ad9c5,_0x3d5e('0xa0'));break;case _0x3d5e('0x7f'):_0x1ad9c5[_0x3d5e('0x15')]?(this[_0x3d5e('0x140')](new Set([_0x1ad9c5])),this['_joinWithAdjacentSuggestions'](new Set([_0x1ad9c5])),this['_suggestionState']['set'](_0x1ad9c5,_0x3d5e('0x17')),this[_0x3d5e('0x132')](_0x3d5e('0x63'),_0x1ad9c5)):this[_0x3d5e('0xfa')][_0x3d5e('0xdb')](_0x1ad9c5,'removed');}return _0x1ad9c5;}['acceptSuggestion'](_0xc9c298){this[_0x3d5e('0x8a')](()=>{this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x100')](()=>{for(const _0x1bd4d8 of _0xc9c298[_0x3d5e('0x142')]())_0x1bd4d8['accept']();});});}[_0x3d5e('0x10c')](_0x1c1f65){this[_0x3d5e('0x8a')](()=>{this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x100')](()=>{for(const _0x1f1894 of _0x1c1f65[_0x3d5e('0x142')]())_0x1f1894[_0x3d5e('0xc5')]();});});}['enableCommand'](_0x1e752e,_0x125626){const _0x398ae8=this[_0x3d5e('0xd9')][_0x3d5e('0x143')]['get'](_0x1e752e);if(!_0x398ae8)throw new _0x407a23(_0x3d5e('0x116'),this,{'commandName':_0x1e752e});this[_0x3d5e('0x123')][_0x3d5e('0xea')](_0x398ae8),_0x125626&&_0x398ae8['on'](_0x3d5e('0x58'),(_0x1c09ba,_0x20514a)=>{this['trackChangesCommand'][_0x3d5e('0xb8')]&&(this[_0x3d5e('0xaa')]||_0x20514a[_0x3d5e('0xa8')]>0x0&&_0x20514a[_0x20514a[_0x3d5e('0xa8')]-0x1]&&_0x20514a[_0x20514a[_0x3d5e('0xa8')]-0x1][_0x3d5e('0x8a')]||(_0x1c09ba['return']=_0x125626((..._0x300770)=>_0x398ae8[_0x3d5e('0x58')](..._0x300770,{'forceDefaultExecution':!0x0}),..._0x20514a),_0x1c09ba[_0x3d5e('0xdf')]()));},{'priority':_0x3d5e('0x115')});}[_0x3d5e('0x8a')](_0x507fd6){let _0x50bf65,_0x2291b0;const _0x503cf1=this[_0x3d5e('0xaa')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50bf65=_0x507fd6();}catch(_0x172fed){_0x2291b0=_0x172fed;}return _0x503cf1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2291b0&&_0x407a23['rethrowUnexpectedError'](_0x2291b0,this),_0x50bf65;}['markInsertion'](_0x181aab,_0x357f0e=null,_0x478da2={}){if(_0x181aab[_0x3d5e('0x32')])return null;const _0x19cb23=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'];for(const {suggestion:_0x3b896a,meta:_0x33bf45}of this[_0x3d5e('0x2c')](_0x181aab,_0x3d5e('0xba')))if(_0x33bf45[_0x3d5e('0x9')]){if(!_0x33bf45[_0x3d5e('0x90')]){if(_0x33bf45[_0x3d5e('0x3a')]){if(!this[_0x3d5e('0x10b')]||!Ot(_0x3b896a,_0x478da2))continue;return _0x3b896a;}if(Ot(_0x3b896a,_0x478da2))return _0x3b896a;this['_breakSuggestionMarker'](_0x3b896a,_0x181aab[_0x3d5e('0x9d')],_0x181aab[_0x3d5e('0x44')]);break;}if(_0x357f0e==_0x3b896a['subType']&&Ot(_0x3b896a,_0x478da2)){const _0x2091f9=_0x3b896a[_0x3d5e('0x97')]();return _0x2091f9['start'][_0x3d5e('0x3d')](_0x181aab[_0x3d5e('0x44')])?this[_0x3d5e('0xce')](_0x3b896a,this['_model'][_0x3d5e('0xee')](_0x181aab[_0x3d5e('0x9d')],_0x2091f9[_0x3d5e('0x44')])):this[_0x3d5e('0xce')](_0x3b896a,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2091f9['start'],_0x181aab[_0x3d5e('0x44')])),_0x3b896a;}}const _0x180e96=_0x59e8c4(),_0x55ea90=_0x19cb23['id'],_0x3c39ec=_0x357f0e?_0x3d5e('0x110')+_0x357f0e:_0x3d5e('0xba'),_0x283572=this['_setSuggestionData']({'id':_0x180e96,'type':_0x3c39ec,'createdAt':new Date(),'authorId':_0x55ea90,'attributes':_0x478da2});return this[_0x3d5e('0x71')](_0x3c39ec,_0x180e96,_0x55ea90,_0x181aab),_0x283572;}[_0x3d5e('0x120')](_0x12e93b,_0xde0a23=_0x3d5e('0x7e'),_0x26c8cf={}){const _0xd4caab=this['editor']['plugins'][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'],_0x54b1c4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xde0a23,_0x3d5e('0x46'));for(const _0x3e51a9 of this[_0x3d5e('0xbd')]())if(_0x3e51a9[_0x3d5e('0xb9')]['id']==_0xd4caab['id']&&_0x3d5e('0xba')==_0x3e51a9[_0x3d5e('0x83')]&&_0x3e51a9['subType']==_0xde0a23&&Ot(_0x3e51a9,_0x26c8cf)&&(_0x54b1c4(_0x3e51a9[_0x3d5e('0x119')](),_0x12e93b)||_0x54b1c4(_0x12e93b,_0x3e51a9[_0x3d5e('0x119')]()))){for(const _0x306fe6 of _0x12e93b)_0x3e51a9[_0x3d5e('0xe7')](_0x306fe6);return _0x3e51a9;}for(const {suggestion:_0xe29f73,meta:_0x4e0991}of this[_0x3d5e('0x2c')](_0x12e93b,_0x3d5e('0xba'))){if(!_0x4e0991[_0x3d5e('0x9')])continue;if(!this[_0x3d5e('0x10b')]&&_0x4e0991['containsRangeInObject'])continue;if(!Ot(_0xe29f73,_0x26c8cf))continue;let _0x4baed1=!0x0;for(const _0x169fdf of _0xe29f73[_0x3d5e('0x119')]())for(const _0x35ccca of _0x12e93b)if(!_0x169fdf[_0x3d5e('0x51')](_0x35ccca)){_0x4baed1=!0x1;break;}if(_0x4baed1)return _0xe29f73;}const _0x333da0=_0x59e8c4(),_0x53d89b=_0xd4caab['id'],_0x168397=_0x3d5e('0x110')+_0xde0a23,_0xa72143=this[_0x3d5e('0x10a')]({'id':_0x333da0,'type':_0x168397,'createdAt':new Date(),'authorId':_0x53d89b,'attributes':_0x26c8cf});for(const _0x40c86e of _0x12e93b)this[_0x3d5e('0x71')](_0x168397,_0x333da0,_0x53d89b,_0x40c86e,_0x439cc9[_0x3d5e('0x136')]());return _0xa72143;}[_0x3d5e('0x30')](_0x127472,_0x3d047c,_0x1526f8=null,_0x42bd0e={}){if(_0x1526f8=_0x1526f8||Nt(_0x3d047c),_0x127472[_0x3d5e('0x32')])return null;if('never'===this[_0x3d5e('0xc3')]){const _0x4661ea=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x61'),_0x1526f8,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x4661ea([_0x127472],_0x3d047c,_0x42bd0e)),null;}const _0x44388e=this[_0x3d5e('0xd9')]['plugins'][_0x3d5e('0x105')]('Users')['me'],_0x2a3051=[];if('always'!==this[_0x3d5e('0xc3')])for(const {suggestion:_0x4a45fd,meta:_0x5931d6}of this[_0x3d5e('0x2c')](_0x127472,'insertion'))_0x5931d6['isOwn']&&!_0x5931d6[_0x3d5e('0xe3')]&&_0x2a3051[_0x3d5e('0xc1')](..._0x4a45fd[_0x3d5e('0x119')]());const _0x21795a=function(_0x1400bc,_0x1ab7c4){const _0x5750a8=[];for(const _0x27abff of _0x1ab7c4){const _0x83eb84=_0x1400bc[_0x3d5e('0xdc')](_0x27abff);_0x83eb84&&_0x5750a8[_0x3d5e('0xc1')](_0x83eb84);}return _0x5750a8;}(_0x127472,_0x2a3051),_0x2fc2b7=function(_0x57ec34,_0x249ac7){const _0x539c23=[_0x57ec34];for(const _0x353f95 of _0x249ac7){let _0xef1ca=0x0;for(;_0xef1ca<_0x539c23['length'];){const _0x4a13c8=_0x539c23[_0xef1ca][_0x3d5e('0x2')](_0x353f95);_0x539c23['splice'](_0xef1ca,0x1,..._0x4a13c8),_0xef1ca+=_0x4a13c8[_0x3d5e('0xa8')];}}return _0x539c23;}(_0x127472,_0x2a3051);_0x21795a['length']&&this[_0x3d5e('0x11c')][_0x3d5e('0x100')](()=>{for(const _0x4bb72f of _0x21795a){const _0x18e97b=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x61'),_0x1526f8,_0x3d5e('0x3c'));this[_0x3d5e('0x8a')](()=>_0x18e97b([_0x4bb72f],_0x3d047c,_0x42bd0e));}});for(const _0xa4eb3d of _0x2fc2b7){let _0x298ccf=null,_0x1bfec1=_0xa4eb3d['start'],_0x2b0fb2=_0xa4eb3d[_0x3d5e('0x44')];for(const {suggestion:_0x25f72b,meta:_0x5d5995}of this['_findSuggestions'](_0xa4eb3d,'formatInline')){if(!_0x5d5995[_0x3d5e('0x9')])continue;if(_0x25f72b[_0x3d5e('0x7c')]!=_0x1526f8)continue;if(!Ot(_0x25f72b,_0x42bd0e))continue;const _0x298c7c=_0x25f72b['getFirstRange']();if(_0x298c7c['containsRange'](_0xa4eb3d,!0x0))return null;_0x1bfec1=_0x1bfec1[_0x3d5e('0xb1')](_0x298c7c[_0x3d5e('0x9d')])?_0x1bfec1:_0x298c7c[_0x3d5e('0x9d')],_0x2b0fb2=_0x2b0fb2[_0x3d5e('0xe5')](_0x298c7c['end'])?_0x2b0fb2:_0x298c7c['end'],_0x298ccf?_0x298c7c[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x298ccf[_0x3d5e('0x97')]()[_0x3d5e('0x9d')])?(_0x298ccf[_0x3d5e('0xa4')](),_0x298ccf=_0x25f72b):_0x25f72b[_0x3d5e('0xa4')]():_0x298ccf=_0x25f72b;}const _0xe407bb=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x1bfec1,_0x2b0fb2);if(_0x298ccf)this[_0x3d5e('0xce')](_0x298ccf,_0xe407bb);else{const _0x265885=_0x59e8c4(),_0x49b870=_0x44388e['id'];this[_0x3d5e('0x10a')]({'id':_0x265885,'type':_0x3d5e('0x13a')+_0x1526f8,'data':_0x3d047c,'createdAt':new Date(),'authorId':_0x49b870,'attributes':_0x42bd0e}),this[_0x3d5e('0x71')](_0x3d5e('0x13a')+_0x1526f8,_0x265885,_0x49b870,_0xe407bb);}}return null;}[_0x3d5e('0x4b')](_0x1374fe,_0x5ababe,_0x85eb9=[],_0x4a1334=null,_0x2e38e4={}){_0x5ababe['formatGroupId']||(_0x5ababe[_0x3d5e('0x101')]=_0x5ababe['commandName']),_0x5ababe[_0x3d5e('0x1e')]=_0x1374fe['is'](_0x3d5e('0xc0')),_0x4a1334=_0x4a1334||Nt(_0x5ababe);const _0x28be54=_0x85eb9[_0x3d5e('0x95')](_0x1c2b2f=>jt(_0x1c2b2f,this['_model'])),_0x145550=_0x1374fe['is'](_0x3d5e('0xc0'))?_0x1374fe:jt(_0x1374fe,this[_0x3d5e('0x11c')]);if('never'===this['_trackFormatChanges']){const _0x4595b8=this[_0x3d5e('0x82')]['getSuggestionCallback'](_0x3d5e('0x67'),_0x4a1334,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x4595b8([_0x145550],_0x5ababe,_0x2e38e4)),null;}_0x28be54['push'](_0x145550);let _0x19a7ac=!0x0;for(const _0xa11140 of _0x28be54)if(!this[_0x3d5e('0xaf')](_0xa11140)){_0x19a7ac=!0x1;break;}if(_0x19a7ac&&_0x3d5e('0x57')!==this['_trackFormatChanges']){const _0x34e573=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x67'),_0x4a1334,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x34e573([_0x145550],_0x5ababe,_0x2e38e4)),null;}let _0x92ddb3=null,_0x5c18e8=_0x145550['start'],_0x146f38=_0x145550[_0x3d5e('0x44')];for(const {suggestion:_0x509512,meta:_0x23199a}of this[_0x3d5e('0x2c')](_0x145550,_0x3d5e('0x67'))){if(!_0x23199a['isOwn'])continue;if(_0x23199a[_0x3d5e('0x90')]||_0x23199a[_0x3d5e('0x3a')]||_0x23199a[_0x3d5e('0xe3')])continue;if(_0x509512[_0x3d5e('0x135')][_0x3d5e('0x101')]!=_0x5ababe[_0x3d5e('0x101')])continue;if(!Ot(_0x509512,_0x2e38e4))continue;const _0x4ae105=_0x509512['getFirstRange']();if(_0x509512[_0x3d5e('0x7c')]==_0x4a1334){if(_0x4ae105['containsRange'](_0x145550,!0x0))return null;_0x5c18e8=_0x5c18e8[_0x3d5e('0xb1')](_0x4ae105['start'])?_0x5c18e8:_0x4ae105['start'],_0x146f38=_0x146f38[_0x3d5e('0xe5')](_0x4ae105[_0x3d5e('0x44')])?_0x146f38:_0x4ae105[_0x3d5e('0x44')],_0x92ddb3?_0x4ae105[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x92ddb3[_0x3d5e('0x97')]()['start'])?(_0x92ddb3[_0x3d5e('0xa4')](),_0x92ddb3=_0x509512):_0x509512[_0x3d5e('0xa4')]():_0x92ddb3=_0x509512;}else{const _0x3f95c6=_0x145550['getIntersection'](_0x4ae105);this[_0x3d5e('0x11b')](_0x509512,_0x3f95c6);}}const _0x2806fa=this['editor'][_0x3d5e('0xcf')]['get'](_0x3d5e('0xca'))['me'],_0x36b9a1=_0x59e8c4(),_0x40c546=_0x2806fa['id'];if(_0x92ddb3)return this[_0x3d5e('0xce')](_0x92ddb3,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x5c18e8,_0x146f38)),_0x92ddb3;{const _0x34d739=this[_0x3d5e('0x10a')]({'id':_0x36b9a1,'type':'formatBlock:'+_0x4a1334,'data':_0x5ababe,'createdAt':new Date(),'authorId':_0x40c546,'attributes':_0x2e38e4});return this[_0x3d5e('0x71')](_0x3d5e('0xae')+_0x4a1334,_0x36b9a1,_0x40c546,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x5c18e8,_0x146f38)),_0x34d739;}}[_0x3d5e('0x1')](_0x5b1146,_0x397e6e,_0xd78133=[],_0xd53a45=null,_0x50ff73={}){_0x397e6e[_0x3d5e('0x101')]||(_0x397e6e['formatGroupId']=_0x397e6e[_0x3d5e('0x37')]);const _0x39fb32=_0x5b1146[0x0];_0x397e6e[_0x3d5e('0x1e')]=_0x39fb32['is'](_0x3d5e('0xc0')),_0xd53a45=_0xd53a45||Nt(_0x397e6e);const _0x3d5385=_0xd78133[_0x3d5e('0x95')](_0x59f891=>jt(_0x59f891,this[_0x3d5e('0x11c')])),_0x206229=_0x39fb32['is'](_0x3d5e('0xc0'))?_0x5b1146:_0x5b1146[_0x3d5e('0x95')](_0x5c067e=>jt(_0x5c067e,this[_0x3d5e('0x11c')]));if('never'===this[_0x3d5e('0xc3')]){const _0x32ec65=this[_0x3d5e('0x82')]['getSuggestionCallback'](_0x3d5e('0x67'),_0xd53a45,_0x3d5e('0x3c'));return this['forceDefaultExecution'](()=>_0x32ec65(_0x206229,_0x397e6e,_0x50ff73)),null;}_0x3d5385['push'](..._0x206229);let _0x1e6e0b=!0x0;for(const _0x4b070e of _0x3d5385)if(!this[_0x3d5e('0xaf')](_0x4b070e)){_0x1e6e0b=!0x1;break;}if(_0x1e6e0b&&_0x3d5e('0x57')!==this['_trackFormatChanges']){const _0x183248=this['_suggestionFactory']['getSuggestionCallback'](_0x3d5e('0x67'),_0xd53a45,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x183248(_0x206229,_0x397e6e,_0x50ff73)),null;}const _0x5ecef0=this['editor']['plugins'][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'];for(const _0x22738a of this[_0x3d5e('0xbd')]()){if(_0x22738a[_0x3d5e('0xb9')]['id']!=_0x5ecef0['id'])continue;if(_0x3d5e('0x67')!=_0x22738a[_0x3d5e('0x83')]||_0x22738a[_0x3d5e('0x135')]['formatGroupId']!=_0x397e6e['formatGroupId'])continue;if(!Ot(_0x22738a,_0x50ff73))continue;const _0x4877f3=_0x22738a[_0x3d5e('0x7c')]==_0xd53a45;for(let _0x5e1820=0x0;_0x5e1820<_0x206229[_0x3d5e('0xa8')];_0x5e1820++){const _0x2178d9=_0x206229[_0x5e1820];for(const _0x2d8d11 of _0x22738a['getMarkers']()){const _0x128e2c=_0x2d8d11[_0x3d5e('0xe4')]();if(_0x2178d9['isEqual'](_0x128e2c)){_0x4877f3?(_0x206229[_0x3d5e('0x4d')](_0x5e1820,0x1),_0x5e1820--):_0x22738a[_0x3d5e('0x3f')](_0x2d8d11[_0x3d5e('0x35')]);break;}}}}if(0x0==_0x206229[_0x3d5e('0xa8')])return null;const _0x5df338=this[_0x3d5e('0x82')][_0x3d5e('0xb')]('formatBlock',_0xd53a45,'join');for(const _0x1408a5 of this[_0x3d5e('0xbd')]())if(_0x1408a5['author']['id']==_0x5ecef0['id']&&_0x3d5e('0x67')==_0x1408a5[_0x3d5e('0x83')]&&_0x1408a5[_0x3d5e('0x135')][_0x3d5e('0x101')]==_0x397e6e['formatGroupId']&&_0x1408a5['subType']==_0xd53a45&&Ot(_0x1408a5,_0x50ff73)&&(_0x5df338(_0x1408a5[_0x3d5e('0x119')](),_0x206229)||_0x5df338(_0x206229,_0x1408a5[_0x3d5e('0x119')]()))){for(const _0x4c77fd of _0x206229)_0x1408a5[_0x3d5e('0xe7')](_0x4c77fd);return _0x1408a5;}const _0x55e76f=_0x59e8c4(),_0x20275f=_0x5ecef0['id'],_0x57eef0=_0x3d5e('0xae')+_0xd53a45,_0x1d01df=this[_0x3d5e('0x10a')]({'id':_0x55e76f,'type':_0x57eef0,'data':_0x397e6e,'createdAt':new Date(),'authorId':_0x20275f,'attributes':_0x50ff73});for(const _0xa5415a of _0x206229)this['_addSuggestionMarker'](_0x57eef0,_0x55e76f,_0x20275f,_0xa5415a,_0x439cc9['getMultiRangeId']());return _0x1d01df;}['markDeletion'](_0x1fd885,_0x400294=null,_0x73f3e0={}){if(_0x1fd885[_0x3d5e('0x32')])return null;const _0x36c22b=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')]('Users')['me'],_0x3ca37e=new _0x43231c(_0x1fd885['start'],_0x1fd885[_0x3d5e('0x44')]);for(const {suggestion:_0x53f199,meta:_0x1202d1}of this['_findSuggestions'](_0x3ca37e,_0x3d5e('0xba')))if(_0x1202d1['isOwn']&&!_0x1202d1[_0x3d5e('0x90')]){if(_0x53f199[_0x3d5e('0xb7')]){const _0x25d83d=_0x53f199['getRanges']()[_0x3d5e('0x24')](_0x54ea24=>_0x3d5e('0x6b')!=_0x54ea24[_0x3d5e('0x78')]['rootName']);_0x25d83d[_0x3d5e('0xd2')](_0x12231a=>_0x3ca37e[_0x3d5e('0x51')](_0x12231a,!0x0))&&_0x53f199[_0x3d5e('0xc5')]();if(_0x25d83d[_0x3d5e('0xf3')](_0x3f442b=>_0x3f442b['containsRange'](_0x3ca37e,!0x0))){const _0x501d0a=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x33'),_0x400294,'accept');return this[_0x3d5e('0x8a')](()=>_0x501d0a([_0x3ca37e],null,_0x73f3e0)),null;}}else{const _0x471d9a=_0x3ca37e['getIntersection'](_0x53f199[_0x3d5e('0x97')]());null!==_0x471d9a&&_0x53f199['_onDiscard']([_0x471d9a],null,_0x73f3e0);}}if(_0x3ca37e[_0x3d5e('0xd0')](),_0x3ca37e[_0x3d5e('0x32')]||_0x3d5e('0x6b')==_0x3ca37e['root'][_0x3d5e('0x104')])return null;let _0x14b69a=null,_0x2faf94=_0x3ca37e['start'],_0x193cb4=_0x3ca37e[_0x3d5e('0x44')];const _0x4df307=this[_0x3d5e('0x2c')](_0x3ca37e,_0x3d5e('0x33'));for(const {suggestion:_0x53b474,meta:_0x342aa4}of _0x4df307){const _0x30c443=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2faf94,_0x193cb4);if(_0x342aa4[_0x3d5e('0x9')]&&(this[_0x3d5e('0x10b')]||!_0x342aa4[_0x3d5e('0x3a')]&&!_0x342aa4[_0x3d5e('0xe3')])){if(_0x53b474[_0x3d5e('0xb7')]){if(!Ot(_0x53b474,_0x73f3e0))continue;let _0x1f4e4e=!0x0;for(const _0x58978e of _0x53b474[_0x3d5e('0x119')]()){if(_0x58978e['containsRange'](_0x30c443,!0x0))return _0x53b474;_0x30c443[_0x3d5e('0x51')](_0x58978e)||(_0x1f4e4e=!0x1);}_0x1f4e4e&&_0x53b474['discard']();}else{const _0x61c87a=_0x53b474[_0x3d5e('0x97')]();if(_0x61c87a[_0x3d5e('0x51')](_0x30c443,!0x0))return _0x53b474;if(!Ot(_0x53b474,_0x73f3e0)){_0x30c443['containsRange'](_0x61c87a)?_0x53b474[_0x3d5e('0xa4')]():_0x61c87a['containsPosition'](_0x2faf94)?_0x2faf94=_0x61c87a['end']:_0x61c87a[_0x3d5e('0xfc')](_0x193cb4)&&(_0x193cb4=_0x61c87a['start']);continue;}_0x2faf94=_0x2faf94[_0x3d5e('0xb1')](_0x61c87a['start'])?_0x2faf94:_0x61c87a['start'],_0x193cb4=_0x193cb4[_0x3d5e('0xe5')](_0x61c87a[_0x3d5e('0x44')])?_0x193cb4:_0x61c87a[_0x3d5e('0x44')],_0x73f3e0=Object[_0x3d5e('0x49')]({},_0x53b474[_0x3d5e('0xd3')]),_0x14b69a?_0x61c87a['start'][_0x3d5e('0xb1')](_0x14b69a[_0x3d5e('0x97')]()[_0x3d5e('0x9d')])?(_0x14b69a['removeMarkers'](),_0x14b69a=_0x53b474):_0x53b474[_0x3d5e('0xa4')]():_0x14b69a=_0x53b474;}}}if(_0x14b69a)return this[_0x3d5e('0xce')](_0x14b69a,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2faf94,_0x193cb4)),_0x14b69a;{const _0x32932e=_0x59e8c4(),_0x22120d=this[_0x3d5e('0x11c')]['createRange'](_0x2faf94,_0x193cb4),_0x5e4d7e=_0x36c22b['id'],_0x2ebce5=_0x400294?_0x3d5e('0x8b')+_0x400294:_0x3d5e('0x33'),_0x111530=this[_0x3d5e('0x10a')]({'id':_0x32932e,'type':_0x2ebce5,'createdAt':new Date(),'authorId':_0x5e4d7e,'attributes':_0x73f3e0});return this[_0x3d5e('0x71')](_0x2ebce5,_0x32932e,_0x5e4d7e,_0x22120d),_0x111530;}}[_0x3d5e('0xff')](_0x162270,_0x2a98f3=_0x3d5e('0x7e'),_0x31ac67={}){const _0x4a225d=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'],_0x24b8c5=_0x162270[_0x3d5e('0x95')](_0x3c1975=>new _0x43231c(_0x3c1975[_0x3d5e('0x9d')],_0x3c1975[_0x3d5e('0x44')])),_0x14f423=new Set();for(const {suggestion:_0x3d3067,meta:_0x32728f}of this[_0x3d5e('0x2c')](_0x24b8c5,_0x3d5e('0xba')))_0x32728f[_0x3d5e('0x9')]&&!_0x32728f['isNextTo']&&_0x14f423[_0x3d5e('0xea')](_0x3d3067);for(const _0x1c3a23 of _0x14f423)if(_0x1c3a23[_0x3d5e('0xb7')]){const _0x2e23a5=_0x1c3a23['getRanges']();(!_0x1c3a23[_0x3d5e('0xd3')]||!_0x1c3a23[_0x3d5e('0xd3')][_0x3d5e('0x109')])&&(_0x2e23a5[_0x3d5e('0xd2')](_0x3e75c1=>_0x24b8c5['some'](_0x27bfff=>_0x27bfff[_0x3d5e('0x51')](_0x3e75c1,!0x0)))&&_0x1c3a23['discard']());if(_0x24b8c5['every'](_0x25331d=>_0x2e23a5['some'](_0x1fd5c3=>_0x1fd5c3[_0x3d5e('0x51')](_0x25331d,!0x0)))){const _0x4dff72=this[_0x3d5e('0x82')][_0x3d5e('0xb')]('deletion',_0x2a98f3,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x4dff72(_0x162270,null,_0x31ac67)),null;}}else{const _0x39dde6=_0x1c3a23[_0x3d5e('0x97')]();_0x24b8c5['some'](_0x516fba=>_0x516fba['containsRange'](_0x39dde6,!0x0))&&_0x1c3a23[_0x3d5e('0xc5')]();if(_0x24b8c5[_0x3d5e('0xd2')](_0x40a18d=>_0x39dde6[_0x3d5e('0x51')](_0x40a18d,!0x0))){const _0x1c71ab=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x33'),_0x2a98f3,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x1c71ab(_0x24b8c5,null,_0x31ac67)),null;}}const _0xcd8bfe=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x33'),_0x2a98f3,_0x3d5e('0x46'));let _0x42169b=null;for(const _0x5deb02 of this['getSuggestions']())if(_0x5deb02[_0x3d5e('0xb9')]['id']==_0x4a225d['id']&&_0x5deb02[_0x3d5e('0x15')]&&'deletion'==_0x5deb02[_0x3d5e('0x83')]&&_0x5deb02[_0x3d5e('0x7c')]==_0x2a98f3&&Ot(_0x5deb02,_0x31ac67)&&(_0xcd8bfe(_0x5deb02['getRanges'](),_0x24b8c5)||_0xcd8bfe(_0x24b8c5,_0x5deb02['getRanges']()))){if(_0x42169b){if(_0x5deb02['commentThread']&&_0x5deb02[_0x3d5e('0x9c')][_0x3d5e('0xa8')])continue;for(const _0x38aeb2 of _0x5deb02['getRanges']())_0x42169b['isIntersectingWithRange'](_0x38aeb2)||_0x42169b[_0x3d5e('0xe7')](_0x38aeb2);_0x5deb02[_0x3d5e('0xa4')]();}else{_0x42169b=_0x5deb02;for(const _0x2518b3 of _0x24b8c5)_0x5deb02[_0x3d5e('0x130')](_0x2518b3)||_0x5deb02[_0x3d5e('0xe7')](_0x2518b3);}}if(_0x42169b)return _0x42169b;_0x14f423['clear']();for(const {suggestion:_0x1a5e12,meta:_0x2fe9f9}of this[_0x3d5e('0x2c')](_0x24b8c5,'deletion'))_0x2fe9f9[_0x3d5e('0x9')]&&(this[_0x3d5e('0x10b')]||!_0x2fe9f9[_0x3d5e('0x3a')]&&!_0x2fe9f9[_0x3d5e('0xe3')])&&Ot(_0x1a5e12,_0x31ac67)&&_0x14f423[_0x3d5e('0xea')](_0x1a5e12);for(const _0x55cbe7 of _0x14f423){const _0x435d7a=_0x55cbe7[_0x3d5e('0x119')]();if(!_0x31ac67||!_0x31ac67[_0x3d5e('0x109')]){if(_0x24b8c5[_0x3d5e('0xd2')](_0x2b0560=>_0x435d7a[_0x3d5e('0xf3')](_0x18c54c=>_0x18c54c[_0x3d5e('0x51')](_0x2b0560,!0x0))))return _0x55cbe7;}(!_0x55cbe7[_0x3d5e('0xd3')]||!_0x55cbe7[_0x3d5e('0xd3')][_0x3d5e('0x109')])&&(_0x435d7a[_0x3d5e('0xd2')](_0x48fab2=>_0x24b8c5['some'](_0x839720=>_0x839720[_0x3d5e('0x51')](_0x48fab2,!0x0)))&&_0x55cbe7['discard']());}const _0x3b12db=_0x59e8c4(),_0x5182e5=_0x4a225d['id'],_0x81a373=_0x3d5e('0x8b')+_0x2a98f3,_0x2ec41b=this[_0x3d5e('0x10a')]({'id':_0x3b12db,'type':_0x81a373,'createdAt':new Date(),'authorId':_0x5182e5,'attributes':_0x31ac67});for(const _0x1fb006 of _0x24b8c5)_0x1fb006['detach'](),_0x1fb006[_0x3d5e('0x32')]||_0x3d5e('0x6b')==_0x1fb006[_0x3d5e('0x78')]['rootName']||this['_addSuggestionMarker'](_0x81a373,_0x3b12db,_0x5182e5,_0x1fb006,_0x439cc9['getMultiRangeId']());return _0x2ec41b;}[_0x3d5e('0xce')](_0x962874,_0x4bf21b){const _0x9aaeb=_0x962874[_0x3d5e('0x55')]();this[_0x3d5e('0x11c')][_0x3d5e('0x100')](_0x655071=>{_0x655071[_0x3d5e('0x62')](_0x9aaeb,{'range':_0x4bf21b});});}[_0x3d5e('0x39')](_0x250931){const _0x30a9f2=_0x250931['id'],_0x4957ff=this[_0x3d5e('0xd9')]['config']['get'](_0x3d5e('0xa'));this[_0x3d5e('0x4c')][_0x3d5e('0x25')](_0x30a9f2)||this['_commentsRepository'][_0x3d5e('0xc4')]({'channelId':_0x4957ff,'threadId':_0x30a9f2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd76dc1=this[_0x3d5e('0x4c')]['getCommentThread'](_0x30a9f2);_0xd76dc1[_0x3d5e('0x9b')](_0x3d5e('0x59')),_0xd76dc1[_0x3d5e('0x59')]=!0x1,_0x250931['commentThread']=_0xd76dc1;}['_checkSuggestionCorrectness'](_0x8db817,_0x2e4500,_0xe73518,_0x271407){if(_0x8db817[_0x3d5e('0x83')]!=_0x2e4500||_0x8db817['subType']!=_0xe73518||_0x8db817[_0x3d5e('0x21')]['id']!=_0x271407)throw this[_0x3d5e('0xd9')][_0x3d5e('0x0')]('track-changes-suggestion-data-mismatch'),new _0x407a23('track-changes-suggestion-data-mismatch',this);}[_0x3d5e('0x11b')](_0x3f96c3,_0xfa99f9){const _0x39f9ac=_0x3f96c3[_0x3d5e('0x97')]();if(_0xfa99f9[_0x3d5e('0x3d')](_0x39f9ac))_0x3f96c3[_0x3d5e('0xa4')]();else{if(_0x39f9ac[_0x3d5e('0x51')](_0xfa99f9)){const _0x46925b=this[_0x3d5e('0x11c')]['createPositionAt'](_0xfa99f9['start'][_0x3d5e('0x7')],_0x3d5e('0x44'));this[_0x3d5e('0xce')](_0x3f96c3,this['_model'][_0x3d5e('0xee')](_0x39f9ac['start'],_0x46925b));const _0x477bb9=_0x59e8c4(),_0x2e419e=_0x3f96c3[_0x3d5e('0x21')]['id'],_0x335b90=_0x3f96c3['type']+':'+_0x3f96c3[_0x3d5e('0x7c')];this[_0x3d5e('0x10a')]({'id':_0x477bb9,'type':_0x335b90,'createdAt':new Date(),'authorId':_0x2e419e,'data':_0x3f96c3[_0x3d5e('0x135')],'attributes':_0x3f96c3['attributes']});const _0x3ec040=this[_0x3d5e('0x11c')][_0x3d5e('0x19')](_0xfa99f9[_0x3d5e('0x44')][_0x3d5e('0x10')],_0x3d5e('0xbb')),_0x1a4db6=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x3ec040,_0x39f9ac[_0x3d5e('0x44')]);this[_0x3d5e('0x71')](_0x335b90,_0x477bb9,_0x2e419e,_0x1a4db6);}else{if(_0x39f9ac['containsPosition'](_0xfa99f9['start'])){const _0x46e894=this[_0x3d5e('0x11c')]['createPositionAt'](_0xfa99f9[_0x3d5e('0x9d')][_0x3d5e('0x7')],_0x3d5e('0x44'));this[_0x3d5e('0xce')](_0x3f96c3,this['_model']['createRange'](_0x39f9ac[_0x3d5e('0x9d')],_0x46e894));}else{const _0x3e6983=this[_0x3d5e('0x11c')][_0x3d5e('0x19')](_0xfa99f9[_0x3d5e('0x44')][_0x3d5e('0x10')],_0x3d5e('0xbb'));this[_0x3d5e('0xce')](_0x3f96c3,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x3e6983,_0x39f9ac['end']));}}}}[_0x3d5e('0xaf')](_0xd33596){for(const {suggestion:_0x2cf082,meta:_0x48e5bb}of this['_findSuggestions'](_0xd33596,'insertion')){if(!_0x48e5bb[_0x3d5e('0x9')])continue;const _0x50ba9b=_0x2cf082[_0x3d5e('0x119')]();for(const _0xdeb9db of _0x50ba9b)if(!_0xd33596[_0x3d5e('0x2')](_0xdeb9db)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5c660d){const _0x44c5b3=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')]['get'](_0x3d5e('0xca'))[_0x3d5e('0x10d')](_0x5c660d);if(!_0x44c5b3)throw new _0x407a23(_0x3d5e('0x89'),this);return _0x44c5b3;}[_0x3d5e('0x11d')](_0x7d11d5){const _0x448904=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')]['get'](_0x3d5e('0xca')),_0x5e4921=_0x544d40(_0x3d5e('0x28')+_0x7d11d5),_0xb44b2d=_0x448904['getUser'](_0x5e4921);return _0xb44b2d||_0x448904[_0x3d5e('0x2e')]({'id':_0x5e4921,'name':_0x7d11d5});}['_createSuggestion'](_0x350afc,_0x1ae0e4,_0x477b12,_0xfad97a,_0x4a8ba7){const _0x70059a=this['_getAuthorFromId'](_0xfad97a),_0x5ec7ba=this[_0x3d5e('0x82')][_0x3d5e('0x88')](_0x350afc,_0x1ae0e4,_0x477b12,_0x70059a,_0x4a8ba7,_0x3ba3e1=>this[_0x3d5e('0xbf')](_0x477b12,{'attributes':_0x3ba3e1}));return this[_0x3d5e('0xa6')](_0x5ec7ba,'accept',()=>{this[_0x3d5e('0xbf')](_0x477b12,{'state':'accepted'});},{'priority':_0x3d5e('0x115')}),this[_0x3d5e('0xa6')](_0x5ec7ba,_0x3d5e('0xc5'),()=>{this['_updateSuggestionData'](_0x477b12,{'state':_0x3d5e('0x12a')});},{'priority':'high'}),this['_suggestions'][_0x3d5e('0xdb')](_0x477b12,_0x5ec7ba),this[_0x3d5e('0xfa')][_0x3d5e('0xdb')](_0x5ec7ba,_0x3d5e('0x5a')),_0x5ec7ba;}[_0x3d5e('0xa5')](_0x5c7fa0){const _0x258b46=_0x5c7fa0[_0x3d5e('0x4')](':');return{'group':_0x258b46[0x0],'type':_0x258b46[0x1],'subType':_0x258b46[_0x3d5e('0xa8')]>=0x5?_0x258b46[0x2]:null,'id':_0x258b46[_0x3d5e('0xa8')]<0x5?_0x258b46[0x2]:_0x258b46[0x3],'authorId':_0x258b46[_0x3d5e('0xa8')]<0x5?_0x258b46[0x3]:_0x258b46[0x4],'markerCount':0x6==_0x258b46[_0x3d5e('0xa8')]?_0x258b46[0x5]:null};}[_0x3d5e('0x134')](_0x2c3216,_0x24bf59,_0x47d3b7){const _0x104ac8=_0x2c3216[_0x3d5e('0x97')](),_0x126419=_0x104ac8[_0x3d5e('0x9d')],_0x7caca=_0x104ac8[_0x3d5e('0x44')];this[_0x3d5e('0xce')](_0x2c3216,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x126419,_0x24bf59));const _0x16fc59=_0x59e8c4(),_0x40ad79=_0x2c3216['creator']['id'],_0x1c5da3=_0x2c3216[_0x3d5e('0x83')]+(_0x2c3216['subType']?':'+_0x2c3216[_0x3d5e('0x7c')]:'');this[_0x3d5e('0x10a')]({'id':_0x16fc59,'type':_0x1c5da3,'createdAt':new Date(),'authorId':_0x40ad79,'originalSuggestionId':_0x2c3216['id'],'attributes':_0x2c3216['attributes'],'data':_0x2c3216['data']}),'formatBlock'==_0x2c3216[_0x3d5e('0x83')]&&(_0x47d3b7=this[_0x3d5e('0x11c')][_0x3d5e('0x73')](_0x47d3b7['parent'])),this[_0x3d5e('0x71')](_0x1c5da3,_0x16fc59,_0x40ad79,this['_model'][_0x3d5e('0xee')](_0x47d3b7,_0x7caca));}[_0x3d5e('0x2c')](_0x5e7727,_0x50609a=null){const _0x70a990=[],_0x525a05=this[_0x3d5e('0xd9')]['plugins'][_0x3d5e('0x105')]('Users')['me'];Array[_0x3d5e('0x1b')](_0x5e7727)||(_0x5e7727=[_0x5e7727]);for(const _0x369949 of this[_0x3d5e('0xbd')]()){if(!_0x369949[_0x3d5e('0x15')])continue;if(_0x50609a&&_0x369949[_0x3d5e('0x83')]!=_0x50609a)continue;let _0x51f72f=!0x1;for(const _0x23c7a9 of _0x369949[_0x3d5e('0x119')]()){for(const _0x29ce7a of _0x5e7727){const _0x240a59=_0x29ce7a[_0x3d5e('0x9d')]['isEqual'](_0x23c7a9[_0x3d5e('0x44')])||_0x29ce7a[_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x23c7a9['start']);if(_0x240a59||_0x29ce7a['getIntersection'](_0x23c7a9)){const _0x161d52=_0x29ce7a[_0x3d5e('0x51')](_0x23c7a9)&&_t(this[_0x3d5e('0x11c')][_0x3d5e('0x42')],_0x23c7a9[_0x3d5e('0x9d')],_0x29ce7a),_0x597353=_0x23c7a9['containsRange'](_0x29ce7a)&&_t(this['_model'][_0x3d5e('0x42')],_0x29ce7a[_0x3d5e('0x9d')],_0x23c7a9);_0x70a990[_0x3d5e('0xc1')]({'suggestion':_0x369949,'meta':{'isOwn':_0x525a05==_0x369949[_0x3d5e('0xb9')],'isNextTo':_0x240a59,'isInsideObject':_0x161d52,'containsRangeInObject':_0x597353}}),_0x51f72f=!0x0;break;}}if(_0x51f72f)break;}}return _0x70a990;}[_0x3d5e('0x71')](_0x5a378c,_0x86fedb,_0x23caf1,_0x3d8158,_0x518bf3){this[_0x3d5e('0x11c')]['change'](_0x8a8997=>{let _0x189398=_0x3d5e('0x27')+_0x5a378c+':'+_0x86fedb+':'+_0x23caf1;_0x518bf3&&(_0x189398=_0x189398+':'+_0x518bf3),_0x8a8997[_0x3d5e('0x92')](_0x189398,{'range':_0x3d8158,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x57210e){const _0x100b0a=_0x57210e[_0x3d5e('0x50')],_0x5f1ef0=_0x57210e[_0x3d5e('0xfb')];_0x57210e['previous']=null,null!=_0x100b0a&&(_0x100b0a[_0x3d5e('0xfb')]=null),_0x57210e[_0x3d5e('0xfb')]=null,null!=_0x5f1ef0&&(_0x5f1ef0[_0x3d5e('0x50')]=null),_0x3d5e('0x17')==this[_0x3d5e('0xfa')][_0x3d5e('0x105')](_0x57210e)&&(this[_0x3d5e('0xfa')][_0x3d5e('0xdb')](_0x57210e,_0x3d5e('0xd4')),this[_0x3d5e('0x132')](_0x3d5e('0x8e'),_0x57210e,_0x100b0a,_0x5f1ef0));}[_0x3d5e('0x10a')](_0xef393c){const _0x35cf49=_0xef393c['id'],_0x10bdfe=this[_0x3d5e('0xe1')](_0xef393c);if(this[_0x3d5e('0x6d')]&&this[_0x3d5e('0x6d')][_0x3d5e('0xef')]){const _0x3ee44d=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xcb')),_0x5ba469=_0x10bdfe['hasComments'],_0x3349a0=_0x10bdfe[_0x3d5e('0x7c')]?_0x10bdfe['type']+':'+_0x10bdfe['subType']:_0x10bdfe[_0x3d5e('0x83')],_0x15d396=this[_0x3d5e('0xd9')]['locale'],_0x244a18=_0x3ee44d[_0x3d5e('0xea')](_0x47b482(_0x15d396,'PENDING_ACTION_SUGGESTION')),_0x567614={'id':_0x35cf49,'type':_0x3349a0,'hasComments':_0x5ba469,'data':_0xef393c[_0x3d5e('0x135')]||null,'originalSuggestionId':_0xef393c[_0x3d5e('0x40')]||null,'attributes':_0x10bdfe[_0x3d5e('0xd3')]};this['_adapter'][_0x3d5e('0xef')](_0x567614)['then'](_0x38b134=>{_0x10bdfe['_saved']=!0x0,_0x3ee44d[_0x3d5e('0xdd')](_0x244a18),_0x38b134&&_0x38b134[_0x3d5e('0x108')]&&(this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x35cf49)['createdAt']=_0x38b134['createdAt']);})[_0x3d5e('0xd1')](_0x22c21d=>{throw _0x54b295(_0x3d5e('0x118')),this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x12c')]({'isUndoable':!0x1},()=>{_0x10bdfe[_0x3d5e('0xc5')]();}),_0x10bdfe[_0x3d5e('0x7a')](),this[_0x3d5e('0xe0')]['delete'](_0x10bdfe['id']),this[_0x3d5e('0xfa')]['delete'](_0x10bdfe),_0x22c21d;});}return _0x10bdfe;}[_0x3d5e('0xbf')](_0x19250c,_0x55fd30){const _0x3a513b=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xcb')),_0x3bf1c9=this[_0x3d5e('0x5d')](_0x19250c);if(this['_adapter']&&this[_0x3d5e('0x6d')][_0x3d5e('0x4a')]){if(_0x3bf1c9[_0x3d5e('0x13b')]){const _0x4143e9=_0x3a513b[_0x3d5e('0xea')](_0x47b482(this[_0x3d5e('0xd9')][_0x3d5e('0x106')],_0x3d5e('0x60')));this['_adapter'][_0x3d5e('0x4a')](_0x19250c,_0x55fd30)[_0x3d5e('0xec')](()=>{_0x3a513b[_0x3d5e('0xdd')](_0x4143e9);});}else _0x3bf1c9['on']('change:_saved',()=>{this[_0x3d5e('0xbf')](_0x19250c,_0x55fd30);});}}[_0x3d5e('0xc7')](_0x1126d1){if(!this['_adapter']||!this[_0x3d5e('0x6d')]['getSuggestion'])throw new _0x407a23('track-changes-adapter-missing-getsuggestion',this);return this[_0x3d5e('0x6d')]['getSuggestion'](_0x1126d1);}[_0x3d5e('0x1d')](_0x2d7ce8){const {id:_0x5d85ff,type:_0x2f0e47,subType:_0x33c1fd,authorId:_0x2548c6}=this[_0x3d5e('0xa5')](_0x2d7ce8),_0x43e745=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x5d85ff)||this['_createSuggestion'](_0x2f0e47,_0x33c1fd,_0x5d85ff,_0x2548c6,{});switch(this[_0x3d5e('0xc6')](_0x43e745,_0x2f0e47,_0x33c1fd,_0x2548c6),this[_0x3d5e('0xfa')][_0x3d5e('0x105')](_0x43e745)){case _0x3d5e('0x5a'):this['_getSuggestionData'](_0x5d85ff)[_0x3d5e('0xec')](_0x5c1ab4=>{let _0x3261ed=Promise[_0x3d5e('0x13e')]();_0x5c1ab4[_0x3d5e('0x113')]&&(_0x3261ed=this[_0x3d5e('0x4c')][_0x3d5e('0x52')]({'channelId':this[_0x3d5e('0xd9')][_0x3d5e('0x121')]['get'](_0x3d5e('0xa')),'threadId':_0x5d85ff})),_0x3261ed[_0x3d5e('0xec')](()=>{this['addSuggestionData'](_0x5c1ab4)[_0x3d5e('0x13b')]=!0x0;});}),this['_suggestionState'][_0x3d5e('0xdb')](_0x43e745,_0x3d5e('0x7f'));break;case _0x3d5e('0xd4'):this[_0x3d5e('0xbf')](_0x5d85ff,{'state':_0x3d5e('0x91')});case _0x3d5e('0xa0'):this['_suggestionState'][_0x3d5e('0xdb')](_0x43e745,_0x3d5e('0x17')),this[_0x3d5e('0x132')](_0x3d5e('0x63'),_0x43e745);break;case _0x3d5e('0x17'):this[_0x3d5e('0x132')](_0x3d5e('0xf6'),_0x43e745);}return _0x43e745[_0x3d5e('0x76')](_0x2d7ce8),_0x43e745;}['_refreshSuggestionsChain'](_0x18e067){const _0x3df9d3=Array[_0x3d5e('0x141')](_0x18e067)['filter'](_0x597b2f=>!_0x597b2f[_0x3d5e('0xb7')]),_0x3e1186=this['getSuggestions']({'skipNotAttached':!0x0})[_0x3d5e('0x24')](_0x390d93=>!_0x390d93[_0x3d5e('0xb7')]),_0x3ad3e3=_0x3e1186[_0x3d5e('0x24')](_0x23d1a8=>!_0x18e067[_0x3d5e('0x8')](_0x23d1a8)),_0x507b42=new Map(_0x3e1186['map'](_0x199159=>[_0x199159,this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x199159[_0x3d5e('0x83')],_0x199159[_0x3d5e('0x7c')],_0x3d5e('0xc2'))])),_0xe10cf2=new Map(_0x3e1186[_0x3d5e('0x95')](_0x18bfc0=>[_0x18bfc0,_0x18bfc0['getFirstRange']()])),_0x551752=new Set(),_0x40b25a=new Set();for(let _0xe3d68a=0x0;_0xe3d68a<_0x3df9d3[_0x3d5e('0xa8')];_0xe3d68a++)_0x4ad369(_0x3df9d3[_0xe3d68a],_0x3df9d3,_0xe3d68a+0x1);for(let _0x6d2591=0x0;_0x6d2591<_0x3df9d3[_0x3d5e('0xa8')];_0x6d2591++)_0x4ad369(_0x3df9d3[_0x6d2591],_0x3ad3e3,0x0);for(let _0x397bda=0x0;_0x397bda<_0x3df9d3[_0x3d5e('0xa8')];_0x397bda++){const _0x19ef01=_0x3df9d3[_0x397bda];!_0x40b25a['has'](_0x19ef01)&&_0x19ef01['previous']&&(_0x19ef01[_0x3d5e('0x50')][_0x3d5e('0xfb')]===_0x19ef01&&(_0x19ef01[_0x3d5e('0x50')][_0x3d5e('0xfb')]=null),_0x19ef01[_0x3d5e('0x50')]=null),!_0x551752['has'](_0x19ef01)&&_0x19ef01[_0x3d5e('0xfb')]&&(_0x19ef01[_0x3d5e('0xfb')]['previous']===_0x19ef01&&(_0x19ef01[_0x3d5e('0xfb')][_0x3d5e('0x50')]=null),_0x19ef01[_0x3d5e('0xfb')]=null);}function _0x4ad369(_0x307ef0,_0x1bc569,_0x4a03b7){for(let _0xd9cfca=_0x4a03b7;_0xd9cfca<_0x1bc569[_0x3d5e('0xa8')];_0xd9cfca++){const _0x4b29cb=_0x3051c3(_0x307ef0,_0x1bc569[_0xd9cfca]);_0x4b29cb&&(_0x4b29cb[0x0][_0x3d5e('0xfb')]=_0x4b29cb[0x1],_0x4b29cb[0x1][_0x3d5e('0x50')]=_0x4b29cb[0x0],_0x551752[_0x3d5e('0xea')](_0x4b29cb[0x0]),_0x40b25a[_0x3d5e('0xea')](_0x4b29cb[0x1]));}}function _0x3051c3(_0x39c6db,_0x2946fa){if(_0x39c6db['author']['id']!==_0x2946fa[_0x3d5e('0xb9')]['id'])return null;const _0xdbb27c=_0x507b42[_0x3d5e('0x105')](_0x39c6db)(_0x39c6db,_0x2946fa,_0xe10cf2[_0x3d5e('0x105')](_0x39c6db),_0xe10cf2['get'](_0x2946fa));if(!_0xdbb27c)return null;return _0x507b42['get'](_0x2946fa)(_0x39c6db,_0x2946fa,_0xe10cf2[_0x3d5e('0x105')](_0x39c6db),_0xe10cf2['get'](_0x2946fa))?_0xdbb27c[0x1]['commentThread']&&_0xdbb27c[0x1]['commentThread'][_0x3d5e('0xa8')]?null:_0xdbb27c:null;}}[_0x3d5e('0x84')](_0x44f826){const _0xde96c6=Array[_0x3d5e('0x141')](_0x44f826),_0xaae951=this[_0x3d5e('0xbd')]({'skipNotAttached':!0x0}),_0x1e33cf=_0xaae951[_0x3d5e('0x24')](_0x54deb4=>!_0x44f826['has'](_0x54deb4)),_0x1c16e3=new Map(_0xde96c6[_0x3d5e('0x95')](_0x559f0f=>[_0x559f0f,this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x559f0f[_0x3d5e('0x83')],_0x559f0f[_0x3d5e('0x7c')],'join')])),_0x2d80de=new Map(_0xaae951[_0x3d5e('0x95')](_0x5cfd36=>[_0x5cfd36,_0x5cfd36['getRanges']()]));for(let _0x5470ab=0x0;_0x5470ab<_0xde96c6[_0x3d5e('0xa8')];_0x5470ab++){if(_0x1d6d8a(this,_0xde96c6[_0x5470ab],_0xde96c6,_0x5470ab+0x1))return!0x0;}for(let _0x77db64=0x0;_0x77db64<_0xde96c6[_0x3d5e('0xa8')];_0x77db64++){if(_0x1d6d8a(this,_0xde96c6[_0x77db64],_0x1e33cf,0x0))return!0x0;}return!0x1;function _0x1d6d8a(_0x4cb924,_0x215e25,_0x25919a,_0x5b0b04){for(let _0x4119ab=_0x5b0b04;_0x4119ab<_0x25919a[_0x3d5e('0xa8')];_0x4119ab++){const _0x215cbc=_0x25919a[_0x4119ab];if(_0x215cbc[_0x3d5e('0x83')]!==_0x215e25[_0x3d5e('0x83')]||_0x215cbc[_0x3d5e('0xb9')]['id']!==_0x215e25['author']['id']||_0x215cbc[_0x3d5e('0x7c')]!==_0x215e25['subType'])continue;if(!Ut(_0x215e25,_0x215cbc))continue;const _0x4fd9b2=_0x1c16e3[_0x3d5e('0x105')](_0x215e25),_0x14d1b8=_0x2d80de[_0x3d5e('0x105')](_0x215e25),_0x80a485=_0x2d80de[_0x3d5e('0x105')](_0x215cbc),_0x3ac3f2=_0x215e25[_0x3d5e('0x9c')]&&_0x215e25['commentThread'][_0x3d5e('0xa8')],_0x33f318=_0x215cbc['commentThread']&&_0x215cbc[_0x3d5e('0x9c')]['length'];if(!_0x3ac3f2&&_0x4fd9b2(_0x80a485,_0x14d1b8))return _0x4cb924[_0x3d5e('0x4e')](_0x215cbc,_0x215e25),_0x2d80de[_0x3d5e('0xf5')](_0x215e25),!0x0;if(!_0x33f318&&_0x4fd9b2(_0x14d1b8,_0x80a485))return _0x4cb924[_0x3d5e('0x4e')](_0x215e25,_0x215cbc),_0x2d80de['delete'](_0x215cbc),!0x0;}return!0x1;}}[_0x3d5e('0x4e')](_0x58a50a,_0x401b89){if(_0x58a50a[_0x3d5e('0xb7')])for(const _0x11630b of _0x401b89['getRanges']())_0x58a50a['addRange'](_0x11630b);else{const _0x37711c=_0x401b89[_0x3d5e('0x97')]()['end'];this['_setSuggestionRange'](_0x58a50a,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x58a50a[_0x3d5e('0x97')]()[_0x3d5e('0x9d')],_0x37711c));}_0x401b89[_0x3d5e('0xa4')]();}}class Bt{constructor(_0x373ea7){this[_0x3d5e('0x7b')]=_0x373ea7,this[_0x3d5e('0x11c')]=_0x373ea7['model'],this[_0x3d5e('0xeb')]=new Map(),this[_0x3d5e('0xa2')]=new Map(),this[_0x3d5e('0x127')]();}[_0x3d5e('0x88')](_0x1980cc,_0x31a713,_0xe5143,_0xbaff65,_0x5d4f77,_0xcdc590){return new _0x439cc9(this[_0x3d5e('0x11c')],{'type':_0x1980cc,'subType':_0x31a713,'id':_0xe5143,'author':_0xbaff65,'creator':_0xbaff65,'attributes':_0x5d4f77,'onAttributesChange':_0xcdc590,'onAccept':(..._0x3e7c3a)=>this[_0x3d5e('0xb')](_0x1980cc,_0x31a713,_0x3d5e('0x3c'))(..._0x3e7c3a),'onDiscard':(..._0x509e56)=>this['getSuggestionCallback'](_0x1980cc,_0x31a713,'discard')(..._0x509e56)});}[_0x3d5e('0x2f')](_0x44eafe,_0x29fd92,_0x5bacf1,_0x2808cf){const _0x40110f=_0x44eafe+':'+_0x29fd92+':'+_0x5bacf1;this[_0x3d5e('0xeb')][_0x3d5e('0xdb')](_0x40110f,_0x2808cf);}[_0x3d5e('0xb')](_0x507f13,_0x323b20,_0x1701b9){const _0x243b63=_0x507f13+':'+_0x323b20+':'+_0x1701b9;return this['_customCallbacks'][_0x3d5e('0x105')](_0x243b63)||this[_0x3d5e('0xa2')][_0x3d5e('0x105')](_0x507f13+':'+_0x1701b9);}['_registerDefaultCallbacks'](){const _0x32e84f=()=>!0x1,_0x476090=_0x21a754=>{_0x21a754['sort']((_0x367f56,_0x234b36)=>_0x367f56[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x234b36[_0x3d5e('0x9d')])?0x1:-0x1),this[_0x3d5e('0x11c')]['change'](_0x190af9=>{for(const _0x1afe32 of _0x21a754){let _0x2ba759;_0x2ba759=_0x1afe32[_0x3d5e('0x44')][_0x3d5e('0x72')]&&_0x1afe32['end'][_0x3d5e('0x10')]==_0x1afe32[_0x3d5e('0x9d')][_0x3d5e('0x74')]?_0x190af9['createSelection'](_0x1afe32[_0x3d5e('0x9d')]['nodeAfter'],'on'):_0x190af9[_0x3d5e('0x20')](_0x1afe32),this['_model'][_0x3d5e('0x4f')](_0x2ba759,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x716374=(_0x52ac8a,_0x174e07)=>{this[_0x3d5e('0x11c')][_0x3d5e('0x100')](_0x19d1df=>{const {commandName:_0x2cf16e,commandParams:_0x120d94=[]}=_0x174e07,_0x21aa56=_0x52ac8a['map'](_0x2eb7ef=>(Mt(_0x2eb7ef)&&(_0x2eb7ef=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2eb7ef['end'])),_0x2eb7ef))['filter'](_0x18e994=>_0x3d5e('0x6b')!==_0x18e994[_0x3d5e('0x78')][_0x3d5e('0x104')]);if(_0x21aa56[_0x3d5e('0xa8')]<0x1)return;const _0xc6bdf5=Array[_0x3d5e('0x141')](this[_0x3d5e('0x11c')]['document']['selection'][_0x3d5e('0x119')]())[_0x3d5e('0x95')](_0x4d4c24=>_0x43231c[_0x3d5e('0x3e')](_0x4d4c24));_0x19d1df['setSelection'](_0x21aa56);for(const _0x178259 of this[_0x3d5e('0x7b')][_0x3d5e('0x143')][_0x3d5e('0x143')]())_0x178259[_0x3d5e('0xa7')]();_0x120d94[_0x3d5e('0xc1')]({'forceDefaultExecution':!0x0}),this[_0x3d5e('0x7b')]['execute'](_0x2cf16e,..._0x120d94);const _0x25fd9e=_0xc6bdf5[_0x3d5e('0x24')](_0x3fc1ad=>_0x3d5e('0x6b')!=_0x3fc1ad['root']['rootName']);_0x25fd9e[_0x3d5e('0xa8')]>0x0&&_0x19d1df[_0x3d5e('0x3')](_0x25fd9e);for(const _0x5a0551 of _0xc6bdf5)_0x5a0551[_0x3d5e('0xd0')]();});},_0x339749=(_0xe4c0db,_0x3efed9)=>0x1==_0xe4c0db[_0x3d5e('0xa8')]&&0x1==_0x3efed9[_0x3d5e('0xa8')]&&_0xe4c0db[0x0][_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x3efed9[0x0]['start']),_0x220498=(_0x269e75,_0x502e5b,_0x1c0903,_0x47b777)=>xt(_0x269e75,_0x502e5b,_0x1c0903,_0x47b777,this['_model'])?[_0x269e75,_0x502e5b]:xt(_0x502e5b,_0x269e75,_0x47b777,_0x1c0903,this[_0x3d5e('0x11c')])?[_0x502e5b,_0x269e75]:null;this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x6'),_0x32e84f),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x102'),_0x476090),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('insertion:join',_0x339749),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('insertion:chain',_0x220498),this[_0x3d5e('0xa2')]['set'](_0x3d5e('0x93'),_0x476090),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x45'),_0x32e84f),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('deletion:join',_0x339749),this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x10f'),_0x220498),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x1f'),_0x716374),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('formatInline:discard',_0x32e84f),this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x98'),_0x339749),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0xe9'),_0x32e84f),this[_0x3d5e('0xa2')]['set'](_0x3d5e('0x3b'),_0x716374),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x86'),_0x32e84f),this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x5c'),_0x339749),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x54'),_0x32e84f);}}function _t(_0x3af93b,_0x415dae,_0x1738a8){for(const _0x510c75 of _0x415dae['parent'][_0x3d5e('0xd')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x510c75[_0x3d5e('0x78')]==_0x510c75)return!0x1;if(!_0x1738a8[_0x3d5e('0xa3')](_0x510c75))return!0x1;if(_0x3af93b[_0x3d5e('0x75')](_0x510c75)||_0x3af93b[_0x3d5e('0x12b')](_0x510c75))return!0x0;}return!0x1;}function Mt(_0x27714e){return _0x27714e[_0x3d5e('0x44')][_0x3d5e('0x10')]==_0x27714e[_0x3d5e('0x9d')]['nodeAfter']&&_0x27714e[_0x3d5e('0x44')][_0x3d5e('0x9e')];}function $t(_0x26cdd6,_0x4e6d04,_0x53fdc6,_0x2f1d01){const _0x374c7a=_0x58f6e6=>!_0x58f6e6[_0x3d5e('0xed')]['is']('$textProxy')&&!_0x2f1d01[_0x3d5e('0x75')](_0x58f6e6[_0x3d5e('0xed')]),_0x3587e3=_0x26cdd6[_0x3d5e('0x9d')][_0x3d5e('0x128')](_0x374c7a),_0x48e20e=_0x26cdd6[_0x3d5e('0x44')][_0x3d5e('0x128')](_0x374c7a,{'direction':_0x3d5e('0x69')});return(!_0x26cdd6[_0x3d5e('0x9d')][_0x3d5e('0x3d')](_0x3587e3)||!_0x26cdd6[_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x48e20e))&&(_0x3587e3[_0x3d5e('0xb1')](_0x48e20e)?_0x53fdc6[_0x3d5e('0x62')](_0x4e6d04,{'range':_0x53fdc6[_0x3d5e('0xee')](_0x3587e3,_0x48e20e)}):_0x53fdc6['removeMarker'](_0x4e6d04),!0x0);}function Nt(_0x38e79b){return _0x544d40(_0x38e79b);}function Rt(_0x4855fa){const _0x5e53ba=_0x4855fa['start'][_0x3d5e('0x74')];return _0x5e53ba&&_0x5e53ba['is'](_0x3d5e('0x56'));}function jt(_0x1e151f,_0x14ba7e){const _0x20bde3=_0x14ba7e[_0x3d5e('0x42')]['isObject'](_0x1e151f)||_0x14ba7e[_0x3d5e('0x42')][_0x3d5e('0x107')](_0x1e151f);return _0x14ba7e[_0x3d5e('0xee')](_0x14ba7e[_0x3d5e('0x19')](_0x1e151f,'before'),_0x20bde3?_0x14ba7e[_0x3d5e('0x133')](_0x1e151f):_0x14ba7e[_0x3d5e('0x19')](_0x1e151f,_0x3d5e('0x44')));}function xt(_0x448dff,_0x1c7fc7,_0x2804e6,_0x55590d,_0x55eb4e){if(!Ut(_0x448dff,_0x1c7fc7))return!0x1;if(_0x2804e6[_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x55590d['start']))return!0x0;if(_0x448dff[_0x3d5e('0x83')]!=_0x1c7fc7[_0x3d5e('0x83')])return!0x1;if(!_0x2804e6[_0x3d5e('0x44')][_0x3d5e('0x139')](_0x55590d[_0x3d5e('0x9d')]))return!0x1;const _0x215369=_0x55eb4e[_0x3d5e('0xee')](_0x2804e6[_0x3d5e('0x44')],_0x55590d['start'])['getWalker']();for(const _0x335f2d of _0x215369)if([_0x3d5e('0x138'),_0x3d5e('0x1c')]['includes'](_0x335f2d[_0x3d5e('0x83')])&&_0x55eb4e[_0x3d5e('0x42')]['isLimit'](_0x335f2d[_0x3d5e('0xed')]))return!0x1;return!0x0;}function Ut(_0x3c91bb,_0x372e02){return!(!_0x3c91bb[_0x3d5e('0x38')]||!_0x372e02[_0x3d5e('0x38')])&&_0x170aad(_0x3c91bb['attributes'],_0x372e02[_0x3d5e('0xd3')]);}function Ot(_0x3dfceb,_0x5c5093){const _0x2ad104=Et(_0x3dfceb[_0x3d5e('0xd3')]),_0x288906=Et(_0x5c5093);if(!_0x3dfceb['_isDataLoaded'])return!0x1;for(const _0x893135 of Object[_0x3d5e('0xe2')](_0x288906))if(!_0x170aad(_0x2ad104[_0x893135],_0x288906[_0x893135]))return!0x1;return!0x0;}function Et(_0x2ab307){const _0x28113b=Object[_0x3d5e('0x49')]({},_0x2ab307);return delete _0x28113b[_0x3d5e('0x109')],delete _0x28113b[_0x3d5e('0x13d')],_0x28113b;}
|
|
23
|
+
const _0x52e9=['_suggestionState','chain','includes','has','name','updateSuggestion','element','next','markerNameToElements','track-changes-suggestion-not-found','fetchCommentThread','collaboration.channelId','formatBlock:chain','_handleNewSuggestionMarker','track-changes-command-not-found','setTo','plugins','size','isIntersectingWithRange','_editor','isExternal','insertion','addMarker','createRange','PENDING_ACTION_SUGGESTION','getLastMatchingPosition','nodeAfter','document','_addSuggestionMarker','ready','getSuggestions','skipNestingCheck','discardAllSuggestions','_joinWithAdjacentSuggestions','catch','then','getCustomProperty','forceDefaultExecution','removed','suggestionLoaded','upcast','containsRange','@external','return','attributes','trackChanges.mergeNestedSuggestions','push','accept','addSuggestionData','$marker','error-saving-suggestion-data-suggestion-discarded','removeMarker:suggestion:formatBlock','external:','getAllAdjacentSuggestions','_findSuggestions','nodeBefore','length','markerToData','formatBlock:discard','getSuggestionCallback','_onDiscard','_splitMarkerName','lowest','_mergeNestedSuggestions','value','oldRange','dataDowncast','_defaultCallbacks','isBefore','formatBlock:','schema','containsItem','addRange','updateMarker','formatInline:','createPositionAfter','moveTargetPosition','getMarkers','sort','multipleBlocks','elementEnd','addSuggestion','targetPosition','getNearestSelectionRange','_adapter','splitPosition','_enabledCommands','reconvertMarker','insertion:accept','activeMarkers','getFirstMarker','hasComments','split','range','TrackChangesEditing','requires','mapper','editingDowncast','removeClass','markDeletion','howMany','suggestion:','removeMarkers','deletion','backward','suggestionUnloaded','item','createRangeIn','registerPostFixer','hasSuggestion','formatInline:accept','getWalker','CommentsRepository','formatBlock:join','detach','conversion','addUser','_setSuggestionData','Users','trackChangesCommand','rootName','track-changes-adapter-missing-getsuggestion','data','insertContent','_getSuggestionData','deletion:','head','isOwn','getAttribute','ck-suggestion-marker','addCommentThread','formatInline:join','every','dataReady','containerElement','clear','type','formatInline:discard','markInsertion','markerToHighlight','editor','isMultiRange','formatInline:chain','keys','removeAttribute','_joinSuggestions','normal','_checkSuggestionCorrectness','_createSuggestion','getShiftedBy','acceptAllSuggestions','fromRange','consume','parent','deleteContent','_commentsRepository','markerReady','getChangedMarkers','start','containsPosition','discard','creator','for','get','authorName','addClass','isInsideObject','previous','stop','getRanges','_customCallbacks','removeComment','ck-suggestion-marker-formatBlock','adapter','open','acceptSelectedSuggestions','suggestion-type','setSelection','enqueueChange','insert','markers','writer','change','getRange','createPositionAt','elementStart','addHighlight','remove','isInContent','formatInline','set','getMultiRangeId','always','locale','acceptSuggestion','multi','dataToMarker','authoredAt','isLocal','formatBlock:accept','insertion:join','change:_saved','isNextTo','documentSelection','unbind','change:data','init','_rangeIsInLocalUserInsertion','_suggestions','position','options','listenTo','accepted','values','_saved','data-suggestion','model','change:activeMarkers','rejected','getItems','isBlock','isRemovable','never','$graveyard','isUndo','createElement','commandName','_breakSuggestionMarker','ck-suggestion-marker-','newRange','_refreshSuggestionsChain','addMarker:suggestion','define','markerName','formatBlock','formatGroupId','discardSuggestion','after','isAfter','createSelection','_updateSuggestionData','getCommentThread','hasCommentThread','default','_isForcedDefaultExecutionBlock','setAttribute','join','update:suggestion','trackChanges.trackFormatChanges','delete','isCollapsed','enableCommand','toViewElement','some','suggestionChanged','consumable','execute','isObject','splice','author','end','add','from','createdAt','$textProxy','_isDataLoaded','isEqual','selection','addMarker:suggestion:formatBlock','_trackFormatChanges','getUser','highest','_model','trackChanges','editing','deletion:accept','high','root','_getAuthorFromId','tablePasteChainId','refresh','notReady','low','_suggestionFactory','batch','subType','addMarkerName','commands','unbindElementFromMarkerName','insertion:','isAtEnd','isTouching','getFirstRange','commentThread','buildSuggestion','showSuggestionHighlights','isLimit','_setSuggestionRange','_getExternalAuthor','assign','markMultiRangeBlockFormat','config','fire','insertion:chain','removeMarker','ck-suggestion-marker--active','isDocumentOperation','differ','markBlockFormat','getIntersection','fromCharCode','_descriptionFactory','deletion:chain','elementToElement','PendingActions','_removeSuggestion','getSuggestion','map','suggestion','_addThreadToSuggestion','addComment','filter','containsRangeInObject','widget','marker-count'];(function(_0x2402fe,_0x52e9d8){const _0x1099b1=function(_0x19b796){while(--_0x19b796){_0x2402fe['push'](_0x2402fe['shift']());}};_0x1099b1(++_0x52e9d8);}(_0x52e9,0x6d));const _0x1099=function(_0x2402fe,_0x52e9d8){_0x2402fe=_0x2402fe-0x0;let _0x1099b1=_0x52e9[_0x2402fe];return _0x1099b1;};import{Plugin as _0x49d03f,PendingActions as _0x366406}from'ckeditor5/src/core';import{LiveRange as _0x582436}from'ckeditor5/src/engine';import{CKEditorError as _0x3ae20b,uid as _0x308d28,priorities as _0x3a5197,logWarning as _0x213ab2}from'ckeditor5/src/utils';import{toWidget as _0x1a43b5}from'ckeditor5/src/widget';import{Users as _0x4a567d,hashObject as _0x51d38b}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b9b04 from'./commands/trackchangescommand';import _0x5166c6 from'./commands/acceptsuggestioncommand';import _0x557ab4 from'./commands/discardsuggestioncommand';import _0x54c4d9 from'./commands/executeonallsuggestionscommand';import _0x30831b from'./commands/executeonselectedsuggestionscommand';import _0x2c5f77 from'./suggestion';import _0x6d4ebc from'./suggestiondescriptionfactory';import _0x5af1dd from'./integrations/aiassistant';import _0x4634cd from'./integrations/alignment';import _0x37e3c8 from'./integrations/basicstyles';import _0x36b8d2 from'./integrations/blockquote';import _0x5aa06b from'./integrations/ckbox';import _0x29ed21 from'./integrations/codeblock';import _0x4e17c9 from'./integrations/comments';import _0x1c0c9e from'./integrations/deletecommand';import _0x4b5b39 from'./integrations/documentlist';import _0x1e1f3b from'./integrations/entercommand';import _0x37ce6e from'./integrations/findandreplace';import _0x2cfe22 from'./integrations/font';import _0xbf7a79 from'./integrations/formatpainter';import _0x358a25 from'./integrations/heading';import _0x2abc9b from'./integrations/highlight';import _0x26e805 from'./integrations/horizontalline';import _0x22b531 from'./integrations/htmlembed';import _0x395a5f from'./integrations/image';import _0x1ae4ea from'./integrations/imagereplace';import _0x3933cd from'./integrations/importword';import _0x50cfb0 from'./integrations/indent';import _0x2b5ce2 from'./integrations/inputcommand';import _0x58f4db from'./integrations/link';import _0x32817b from'./integrations/list';import _0x3b41d9 from'./integrations/listproperties';import _0xf61353 from'./integrations/mediaembed';import _0x127500 from'./integrations/mention';import _0x348180 from'./integrations/pagebreak';import _0x446730 from'./integrations/paragraph';import _0x28bd19 from'./integrations/removeformat';import _0x271d68 from'./integrations/restrictededitingmode';import _0x4b21cd from'./integrations/shiftentercommand';import _0xde62dd from'./integrations/standardeditingmode';import _0x1115fe from'./integrations/style';import _0xdeae6a from'./integrations/table';import _0x34155c from'./integrations/tablemergesplit';import _0x41e2b9 from'./integrations/tableheadings';import _0xe3e276 from'./integrations/tableclipboard';import _0x2781cf from'./integrations/tablecolumnresize';import _0x5b709e from'./integrations/template';import _0x106eaa from'./integrations/tableofcontents';import _0x48e54c from'./integrations/title';import _0x356657 from'./integrations/undo';import{getTranslation as _0x6b0c5d}from'./utils/common-translations';import _0x3ef0bf from'./integrations/tablecaption';import _0x5d030b from'./integrations/documentlistproperties';import _0x42a644 from'./integrations/tableproperties';import{isEqual as _0xa68f16}from'lodash-es';export default class p extends _0x49d03f{static get[_0x1099('0x137')](){return[_0x1099('0x3'),_0x4a567d,_0x366406,_0x5af1dd,_0x4634cd,_0x37e3c8,_0x36b8d2,_0x5aa06b,_0x29ed21,_0x4e17c9,_0x1c0c9e,_0x4b5b39,_0x5d030b,_0x1e1f3b,_0x37ce6e,_0x2cfe22,_0xbf7a79,_0x358a25,_0x2abc9b,_0x26e805,_0x22b531,_0x395a5f,_0x1ae4ea,_0x3933cd,_0x50cfb0,_0x2b5ce2,_0x58f4db,_0x32817b,_0x3b41d9,_0xf61353,_0x127500,_0x348180,_0x446730,_0x28bd19,_0x271d68,_0x4b21cd,_0xde62dd,_0x1115fe,_0xdeae6a,_0x34155c,_0x41e2b9,_0x3ef0bf,_0xe3e276,_0x2781cf,_0x106eaa,_0x42a644,_0x5b709e,_0x48e54c,_0x356657];}static get['pluginName'](){return _0x1099('0x136');}constructor(_0x2fdd1d){function _0x1e96e8(_0x3a20ab){return _0x3a20ab[_0x1099('0xd0')](_0x3bfccb=>String[_0x1099('0xc9')](_0x3bfccb))[_0x1099('0x89')]('');}super(_0x2fdd1d),this[_0x1099('0x51')](_0x1099('0x131'),[]),this['on'](_0x1099('0x6c'),(_0x714c8a,_0x2b30ec,_0x331843,_0xe480a1)=>{this['_model'][_0x1099('0x49')](()=>{for(const _0x462f02 of[..._0xe480a1,..._0x331843])this[_0x1099('0xa3')][_0x1099('0x47')]['has'](_0x462f02)&&_0x2fdd1d[_0x1099('0xa5')][_0x1099('0x12f')](_0x462f02);});}),this[_0x1099('0xca')]=new _0x6d4ebc(this['editor'][_0x1099('0x6b')][_0x1099('0x11e')],this[_0x1099('0x1f')][_0x1099('0x54')]),this[_0x1099('0x12c')]=null,this['_suggestionFactory']=new Bt(this['editor']),this[_0x1099('0x63')]=new Map(),this[_0x1099('0x2e')]=_0x2fdd1d[_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x3')),this['_enabledCommands']=new Set(),this[_0x1099('0xa3')]=this[_0x1099('0x1f')][_0x1099('0x6b')],this[_0x1099('0xd8')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x7b')](_0x1099('0x8b'),_0x1099('0x86')),this[_0x1099('0xa0')]=_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x36')](_0x1099('0x8b')),_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x7b')](_0x1099('0x105'),!0x0),this['_mergeNestedSuggestions']=_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x36')](_0x1099('0x105')),this['trackChangesCommand']=new _0x4b9b04(_0x2fdd1d,this[_0x1099('0x12e')]),this[_0x1e96e8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1e96e8([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x30]);}[_0x1099('0x61')](){const _0x535619=this['editor'];_0x535619[_0x1099('0x6')][_0x1099('0x35')]('editingDowncast')[_0x1099('0x1e')]({'model':_0x1099('0xd1'),'view':_0x2e08da=>{const {id:_0x1b05ed,type:_0x53a559}=this['_splitMarkerName'](_0x2e08da[_0x1099('0x7c')]),_0x3061f0=['ck-suggestion-marker',_0x1099('0x77')+_0x53a559];let _0x2ba2c4=0xbb8;return this[_0x1099('0x131')][_0x1099('0xda')](_0x2e08da[_0x1099('0x7c')])&&(_0x3061f0[_0x1099('0x106')]('ck-suggestion-marker--active'),_0x2ba2c4=0xbc2),_0x1099('0x13f')==_0x53a559&&(_0x2ba2c4+=0x5),{'classes':_0x3061f0,'attributes':{'data-suggestion':_0x1b05ed},'priority':_0x2ba2c4};}}),_0x535619['conversion'][_0x1099('0x35')](_0x1099('0x11a'))['add'](_0x23b254=>{_0x23b254['on'](_0x1099('0x7a'),(_0x2377db,_0x986e32,_0x1f56f2)=>{if(!_0x1f56f2[_0x1099('0x65')][_0x1099('0xba')])return;const _0x6754a5=_0x986e32[_0x1099('0x142')];if(!_0x6754a5)return;const _0x419cdf=_0x1f56f2[_0x1099('0x138')][_0x1099('0x8f')](_0x6754a5);_0x535619['model']['schema'][_0x1099('0x94')](_0x6754a5)&&_0x419cdf&&!_0x419cdf[_0x1099('0xfc')](_0x1099('0xd6'))&&_0x419cdf['is'](_0x1099('0x19'))&&_0x1a43b5(_0x419cdf,_0x1f56f2[_0x1099('0x48')]);},{'priority':_0x1099('0xa7')});}),_0x535619[_0x1099('0x6')][_0x1099('0x35')]('dataDowncast')[_0x1099('0x1e')]({'model':_0x1099('0xd1'),'view':(_0x26e9f5,_0x4f22ed)=>{if(!_0x4f22ed['options'][_0x1099('0xba')])return null;const {type:_0x3547cc}=this['_splitMarkerName'](_0x26e9f5[_0x1099('0x7c')]);return{'classes':['ck-suggestion-marker',_0x1099('0x77')+_0x3547cc],'priority':0xbb8};}});const _0x5aa258=({showActiveMarkers:_0x1a3a2b=!0x0}={})=>(_0x1a1ffe,_0x26e0d7,_0x3ed5a6)=>{if(!_0x26e0d7[_0x1099('0x142')])return;if(_0x26e0d7[_0x1099('0x142')]['is'](_0x1099('0x9e')))return void _0x3ed5a6[_0x1099('0x92')][_0x1099('0x2b')](_0x26e0d7[_0x1099('0x142')],_0x1a1ffe[_0x1099('0xdc')]);const _0x58d03a=_0x3ed5a6[_0x1099('0x138')][_0x1099('0x8f')](_0x26e0d7[_0x1099('0x142')]);if(!(_0x26e0d7[_0x1099('0x142')]['is'](_0x1099('0xde'))&&_0x535619[_0x1099('0x6b')][_0x1099('0x11e')][_0x1099('0x6f')](_0x26e0d7[_0x1099('0x142')])&&!_0x58d03a['getCustomProperty'](_0x1099('0x4d'))))return;const {id:_0x44f5c3}=this[_0x1099('0x115')](_0x26e0d7['markerName']);_0x3ed5a6[_0x1099('0x48')][_0x1099('0x38')]([_0x1099('0x14'),_0x1099('0x3f')],_0x58d03a),_0x3ed5a6['writer'][_0x1099('0x88')](_0x1099('0x6a'),_0x44f5c3,_0x58d03a),_0x3ed5a6['mapper']['bindElementToMarker'](_0x58d03a,_0x26e0d7[_0x1099('0x7c')]),_0x1a3a2b&&(this[_0x1099('0x131')]['includes'](_0x26e0d7[_0x1099('0x7c')])?_0x3ed5a6[_0x1099('0x48')][_0x1099('0x38')](_0x1099('0xc4'),_0x58d03a):_0x3ed5a6[_0x1099('0x48')][_0x1099('0x13a')]('ck-suggestion-marker--active',_0x58d03a));for(const _0x57828e of _0x535619['model'][_0x1099('0x143')](_0x26e0d7[_0x1099('0x142')])[_0x1099('0x6e')]())_0x3ed5a6[_0x1099('0x92')][_0x1099('0x2b')](_0x57828e,_0x1a1ffe['name']);_0x3ed5a6[_0x1099('0x92')][_0x1099('0x2b')](_0x26e0d7[_0x1099('0x142')],_0x1a1ffe[_0x1099('0xdc')]);};_0x535619[_0x1099('0x6')][_0x1099('0x35')]('dataDowncast')[_0x1099('0x98')](_0x489905=>{_0x489905['on'](_0x1099('0x9f'),(_0x1d95b7,_0x1985a5,_0x12f82e)=>{_0x12f82e[_0x1099('0x65')][_0x1099('0xba')]&&_0x5aa258({'showActiveMarkers':!0x1})(_0x1d95b7,_0x1985a5,_0x12f82e);},{'priority':_0x1099('0xa2')});}),_0x535619[_0x1099('0x6')]['for']('dataDowncast')[_0x1099('0x111')]({'model':'suggestion','view':(_0x11c8e5,_0x168dc1)=>_0x168dc1[_0x1099('0x65')][_0x1099('0xba')]?null:{'group':_0x1099('0xd1'),'name':_0x11c8e5['substr'](0xb)}}),_0x535619[_0x1099('0x6')][_0x1099('0x35')](_0x1099('0x100'))[_0x1099('0xcc')]({'view':{'name':_0x1099('0xd1'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x440c2c,{writer:_0x4c4c81})=>{let _0x37588c='suggestion:'+_0x440c2c[_0x1099('0x13')](_0x1099('0x43'))+':'+_0x440c2c[_0x1099('0x13')]('id');return _0x440c2c['getAttribute'](_0x1099('0xd7'))&&(_0x37588c+=':'+_0x440c2c['getAttribute']('marker-count')),_0x4c4c81[_0x1099('0x74')](_0x1099('0x109'),{'data-name':_0x37588c});}}),_0x535619['conversion']['for'](_0x1099('0x100'))[_0x1099('0x57')]({'view':_0x1099('0xd1')}),_0x535619['conversion'][_0x1099('0x35')](_0x1099('0x139'))['add'](_0x23cd48=>{_0x23cd48['on'](_0x1099('0x9f'),_0x5aa258(),{'priority':_0x1099('0xa7')});}),_0x535619['conversion'][_0x1099('0x35')](_0x1099('0x139'))[_0x1099('0x98')](_0x3d5715=>{_0x3d5715['on'](_0x1099('0x10b'),(_0x506eb4,_0x194a01,_0x3f0beb)=>{const _0x33cd0b=_0x3f0beb['mapper'][_0x1099('0xe0')](_0x194a01['markerName']);if(_0x33cd0b)for(const _0x118b2c of _0x33cd0b)_0x118b2c['getCustomProperty'](_0x1099('0x4d'))||(_0x3f0beb[_0x1099('0x48')][_0x1099('0x13a')]([_0x1099('0x14'),_0x1099('0x3f'),_0x1099('0xc4')],_0x118b2c),_0x3f0beb[_0x1099('0x48')][_0x1099('0x23')]('data-suggestion',_0x118b2c),_0x3f0beb['mapper'][_0x1099('0xb3')](_0x118b2c,_0x194a01[_0x1099('0x7c')]));},{'priority':_0x1099('0xa7')});}),_0x535619['model'][_0x1099('0xf3')][_0x1099('0x144')](_0x5416ba=>{let _0x105cd2=!0x1;const _0x3fab33=Array['from'](_0x535619[_0x1099('0x6b')]['document'][_0x1099('0xc6')][_0x1099('0x30')]()),_0x277031=new Set();for(const {name:_0x1c9538,data:_0x3cfb96}of _0x3fab33){const {group:_0xc5b505,type:_0x35c02b,id:_0x27afaf}=this[_0x1099('0x115')](_0x1c9538);if(_0x1099('0xd1')!==_0xc5b505)continue;const _0x20bd9c=this['_suggestions'][_0x1099('0x36')](_0x27afaf);if(null!=_0x3cfb96['newRange']){_0x1099('0x50')==_0x35c02b&&(_0x105cd2=_0x105cd2||$t(_0x3cfb96[_0x1099('0x78')],_0x1c9538,_0x5416ba,_0x535619['model'][_0x1099('0x11e')]));if(_0x3cfb96[_0x1099('0x78')]['isCollapsed']||_0x1099('0x72')==_0x3cfb96[_0x1099('0x78')]['root'][_0x1099('0xb')]||_0x1099('0x7d')==_0x35c02b&&!Rt(_0x3cfb96[_0x1099('0x78')])||_0x1099('0x13f')==_0x35c02b&&!(!Mt(_0x383e85=_0x3cfb96[_0x1099('0x78')])&&!function(_0x48acba){return _0x48acba[_0x1099('0x31')][_0x1099('0x2c')]==_0x48acba[_0x1099('0x97')][_0x1099('0x10f')]&&_0x48acba['start']['isAtEnd'];}(_0x383e85)))_0x5416ba[_0x1099('0xc3')](_0x1c9538),_0x105cd2=!0x0;else{if(!_0x20bd9c||!_0x20bd9c['isInContent'])continue;_0x277031[_0x1099('0x98')](_0x20bd9c);}}}var _0x383e85;return _0x277031['size']>0x0&&(_0x105cd2=!!this[_0x1099('0xf9')](_0x277031)||_0x105cd2),_0x105cd2;}),_0x535619[_0x1099('0x6b')][_0x1099('0xf3')]['registerPostFixer'](_0x37a27c=>{let _0x55e26f=!0x1;for(const _0xc01058 of _0x535619[_0x1099('0x6b')][_0x1099('0xf3')]['differ']['getChanges']()){if(_0x1099('0x46')!=_0xc01058[_0x1099('0x1b')])continue;const _0x2157cd=_0xc01058[_0x1099('0x64')][_0x1099('0x28')](_0xc01058[_0x1099('0x110')]);if(_0x2157cd[_0x1099('0xb5')])for(const _0x35e0c2 of this['_suggestions']['values']()){if(_0x35e0c2['isMultiRange']||!_0x35e0c2[_0x1099('0x4f')])continue;if(_0x1099('0x7d')!=_0x35e0c2['type'])continue;const _0x5c9cf6=_0x35e0c2[_0x1099('0xb7')]();if(_0x5c9cf6['start'][_0x1099('0x2c')]!=_0x5c9cf6[_0x1099('0x97')][_0x1099('0x2c')]&&_0x5c9cf6['end'][_0x1099('0x9d')](_0xc01058[_0x1099('0x64')])){const _0x1cc472=_0x535619['model'][_0x1099('0xef')](_0x5c9cf6[_0x1099('0x31')],_0x2157cd);_0x37a27c['updateMarker'](_0x35e0c2[_0x1099('0x132')](),{'range':_0x1cc472}),_0x55e26f=!0x0;}}}return _0x55e26f;}),_0x535619[_0x1099('0x6b')]['markers']['on'](_0x1099('0x8a'),(_0x21df64,_0xed5462,_0x50c690)=>{if(null==_0x50c690){const {id:_0x3f5595}=this[_0x1099('0x115')](_0xed5462[_0x1099('0xdc')]),_0x3a0bd9=this[_0x1099('0x63')][_0x1099('0x36')](_0x3f5595);_0x3a0bd9&&_0x3a0bd9[_0x1099('0xb1')](_0xed5462[_0x1099('0xdc')]);}}),_0x535619[_0x1099('0x6b')][_0x1099('0xf3')]['on'](_0x1099('0x60'),()=>{const _0x2e8762=Array['from'](_0x535619[_0x1099('0x6b')][_0x1099('0xf3')][_0x1099('0xc6')][_0x1099('0x30')]())['filter'](_0x3b6f4a=>_0x1099('0xd1')===this[_0x1099('0x115')](_0x3b6f4a[_0x1099('0xdc')])['group']);if(0x0===_0x2e8762['length'])return;_0x2e8762['sort']((_0x313ec8,_0x415496)=>{const _0x18812f=_0x313ec8[_0x1099('0xd')][_0x1099('0x119')],_0x5a65c=_0x415496[_0x1099('0xd')]['oldRange'];return null===_0x18812f&&null===_0x5a65c?0x0:null===_0x18812f&&null!==_0x5a65c?-0x1:null!==_0x18812f&&null===_0x5a65c?0x1:_0x18812f[_0x1099('0x31')]['isBefore'](_0x5a65c[_0x1099('0x31')])?-0x1:0x1;});const _0x13e4d1=new Set(),_0x5a5bb9=new Set();for(const {name:_0x119a81,data:_0x35fa9d}of _0x2e8762){const {id:_0x2dd069}=this[_0x1099('0x115')](_0x119a81);if(null===_0x35fa9d[_0x1099('0x119')]){const _0x18b3ba=this[_0x1099('0xe5')](_0x119a81);_0x5a5bb9['add'](_0x18b3ba);}else{const _0x46e841=this[_0x1099('0x63')][_0x1099('0x36')](_0x2dd069);null!==_0x35fa9d['newRange']||_0x46e841[_0x1099('0x4f')]?(_0x13e4d1['add'](_0x46e841[_0x1099('0x11')]),_0x5a5bb9['add'](_0x46e841)):this[_0x1099('0xce')](_0x46e841);}}_0x5a5bb9[_0x1099('0xe9')]>0x0&&this[_0x1099('0x79')](_0x5a5bb9);for(const _0x5b8e55 of _0x13e4d1)this[_0x1099('0xc1')](_0x1099('0x91'),_0x5b8e55);}),_0x535619['model']['on']('applyOperation',(_0x116507,_0x54206f)=>{const _0x5d0126=_0x54206f[0x0];if(!this[_0x1099('0x63')][_0x1099('0xe9')])return;if(!_0x5d0126[_0x1099('0xc5')])return;if(_0x5d0126['batch'][_0x1099('0x73')]||!_0x5d0126[_0x1099('0xaf')][_0x1099('0x59')])return;let _0x1036ee,_0x1f2507;switch(_0x5d0126[_0x1099('0x1b')]){case'insert':_0x1036ee=_0x535619[_0x1099('0x6b')]['createPositionAt'](_0x5d0126[_0x1099('0x64')]),_0x1f2507=_0x1036ee[_0x1099('0x28')](_0x5d0126[_0x1099('0x13c')]);break;case _0x1099('0x134'):_0x1036ee=_0x535619[_0x1099('0x6b')][_0x1099('0x4b')](_0x5d0126[_0x1099('0x12d')]),_0x1f2507=_0x535619[_0x1099('0x6b')]['createPositionAt'](_0x5d0126[_0x1099('0x124')]);break;case'move':_0x1036ee=_0x535619[_0x1099('0x6b')]['createPositionAt'](_0x5d0126[_0x1099('0x12a')]),_0x1f2507=_0x1036ee[_0x1099('0x28')](_0x5d0126['howMany']);break;default:return;}const _0x36f870=_0x535619[_0x1099('0x6b')][_0x1099('0xef')](_0x1036ee,_0x1f2507);_0x535619[_0x1099('0x6b')][_0x1099('0x49')](()=>{for(const {suggestion:_0x4f2160,meta:_0x5d35a2}of this[_0x1099('0x10e')](_0x36f870)){if(_0x4f2160[_0x1099('0x20')])continue;if(_0x1099('0x50')==_0x4f2160[_0x1099('0x1b')])continue;const _0x4e2d6d=_0x4f2160['data']&&_0x4f2160[_0x1099('0xd')][_0x1099('0x127')];(_0x1099('0x7d')!=_0x4f2160[_0x1099('0x1b')]||_0x1099('0x134')==_0x5d0126[_0x1099('0x1b')]&&!_0x4e2d6d)&&(_0x5d35a2[_0x1099('0xd5')]||_0x1099('0xed')==_0x4f2160['type']&&_0x5d35a2['isOwn']||_0x4f2160[_0x1099('0xb7')]()['containsRange'](_0x36f870)&&this['_breakSuggestionMarker'](_0x4f2160,_0x1036ee,_0x1f2507));}});},{'priority':_0x1099('0x116')}),_0x535619[_0x1099('0x6b')]['on'](_0x1099('0x2d'),(_0x386356,_0x5df6c1)=>{const _0xb68fb5=_0x5df6c1[0x0],_0x55925d=_0x5df6c1[0x1];if(_0x55925d&&_0x55925d[_0x1099('0xfd')])return;if(this[_0x1099('0x87')])return;if(!this[_0x1099('0xa')]['value'])return;if(_0xb68fb5[_0x1099('0x8d')])return;const _0x51ba13=_0x535619[_0x1099('0x6b')]['schema'],{start:_0x37a85f,end:_0xadce2f}=_0xb68fb5[_0x1099('0xb7')](),_0x23aaaf=_0x37a85f[_0x1099('0xf2')]&&_0x51ba13[_0x1099('0xbb')](_0x37a85f['nodeAfter'])?null:_0x51ba13[_0x1099('0x12b')](_0x37a85f,'forward'),_0x4a32e9=_0xadce2f[_0x1099('0x10f')]&&_0x51ba13[_0x1099('0xbb')](_0xadce2f[_0x1099('0x10f')])?null:_0x51ba13[_0x1099('0x12b')](_0xadce2f,_0x1099('0x140')),_0x129bb0=_0x535619[_0x1099('0x6b')]['createRange'](_0x23aaaf?_0x23aaaf['start']:_0x37a85f,_0x4a32e9?_0x4a32e9[_0x1099('0x97')]:_0xadce2f);_0x535619['model'][_0x1099('0x49')](_0x399968=>{this['markDeletion'](_0x129bb0);const _0x4392be=_0x535619[_0x1099('0x6b')]['schema'][_0x1099('0x12b')](_0x129bb0[_0x1099('0x31')]);_0xb68fb5['is'](_0x1099('0x5e'))?_0x399968[_0x1099('0x44')](_0x4392be):_0xb68fb5[_0x1099('0xe7')](_0x4392be);}),_0x386356[_0x1099('0x3b')]();},{'priority':_0x3a5197[_0x1099('0x25')]+0xa}),_0x535619[_0x1099('0x6b')]['on'](_0x1099('0xe'),(_0x4736c3,_0x3f5e33)=>{const _0x21a9e4=_0x3f5e33[_0x3f5e33[_0x1099('0x110')]-0x1];_0x21a9e4&&_0x21a9e4[_0x1099('0xfd')]||this[_0x1099('0x87')]||this[_0x1099('0xa')]['value']&&(_0x535619[_0x1099('0x6b')][_0x1099('0x49')](()=>{let _0x561959=_0x535619[_0x1099('0x6b')][_0x1099('0xe')](_0x3f5e33[0x0],_0x3f5e33[0x1],_0x3f5e33[0x2],{'forceDefaultExecution':!0x0});if(!_0x561959)return;_0x4736c3[_0x1099('0x103')]=_0x561959['clone']();const _0x3a9f88=_0x561959['end']['nodeBefore'],_0x6a7f22=_0x535619[_0x1099('0x6b')][_0x1099('0x11e')];_0x3a9f88&&_0x6a7f22[_0x1099('0x6f')](_0x3a9f88)&&!_0x6a7f22[_0x1099('0x94')](_0x3a9f88)&&(_0x561959=_0x535619['model']['createRange'](_0x561959[_0x1099('0x31')],_0x535619[_0x1099('0x6b')][_0x1099('0x4b')](_0x3a9f88,_0x1099('0x97')))),this[_0x1099('0x1d')](_0x561959);}),_0x4736c3[_0x1099('0x3b')]());},{'priority':_0x1099('0xa7')}),this['editor']['commands'][_0x1099('0x98')](_0x1099('0xa4'),this[_0x1099('0xa')]),this[_0x1099('0x8e')](_0x1099('0xa4'));const _0x45e681=new _0x5166c6(_0x535619,this[_0x1099('0x63')]);_0x535619[_0x1099('0xb2')][_0x1099('0x98')](_0x1099('0x55'),_0x45e681),this[_0x1099('0x8e')](_0x1099('0x55'));const _0x12e6c2=new _0x557ab4(_0x535619,this[_0x1099('0x63')]);_0x535619[_0x1099('0xb2')]['add'](_0x1099('0x7f'),_0x12e6c2),this[_0x1099('0x8e')](_0x1099('0x7f')),_0x535619[_0x1099('0xb2')][_0x1099('0x98')](_0x1099('0x29'),new _0x54c4d9(_0x535619,_0x45e681,this[_0x1099('0x63')])),this[_0x1099('0x8e')](_0x1099('0x29')),_0x535619['commands'][_0x1099('0x98')](_0x1099('0xf8'),new _0x54c4d9(_0x535619,_0x12e6c2,this[_0x1099('0x63')])),this[_0x1099('0x8e')](_0x1099('0xf8')),_0x535619['commands']['add'](_0x1099('0x42'),new _0x30831b(_0x535619,_0x45e681,this[_0x1099('0x63')])),this['enableCommand']('acceptSelectedSuggestions'),_0x535619[_0x1099('0xb2')][_0x1099('0x98')]('discardSelectedSuggestions',new _0x30831b(_0x535619,_0x12e6c2,this['_suggestions'])),this[_0x1099('0x8e')]('discardSelectedSuggestions');const _0x4b77e2=_0x535619[_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x3'));this['listenTo'](_0x4b77e2,_0x1099('0xd3'),(_0x46219a,{threadId:_0x4cef0d})=>{const _0x3cf4e2=this[_0x1099('0x63')]['get'](_0x4cef0d);_0x3cf4e2&&_0x3cf4e2[_0x1099('0xb8')]&&0x1===_0x3cf4e2['commentThread'][_0x1099('0x110')]&&this['_updateSuggestionData'](_0x4cef0d,{'hasComments':!0x0});},{'priority':_0x1099('0xad')}),this[_0x1099('0x66')](_0x4b77e2,_0x1099('0x3e'),(_0x2af8f7,{threadId:_0x5d9728})=>{const _0x1fb7df=this[_0x1099('0x63')][_0x1099('0x36')](_0x5d9728);_0x1fb7df&&_0x1fb7df[_0x1099('0xb8')]&&!_0x1fb7df[_0x1099('0xb8')][_0x1099('0x110')]&&this[_0x1099('0x83')](_0x5d9728,{'hasComments':!0x1});},{'priority':_0x1099('0xad')});}set[_0x1099('0x40')](_0x2459d7){if(this['_adapter'])throw new _0x3ae20b('track-changes-adapter-already-set',this);this[_0x1099('0x12c')]=_0x2459d7;}get[_0x1099('0x40')](){return this['_adapter'];}[_0x1099('0xf6')]({skipNotAttached:_0x5dd85c=!0x1,toJSON:_0x4b6378=!0x1}={}){const _0x50f613=[];for(const _0x37b308 of this[_0x1099('0x63')][_0x1099('0x68')]())_0x5dd85c&&!_0x37b308['isInContent']||_0x50f613[_0x1099('0x106')](_0x37b308);return _0x4b6378?_0x50f613[_0x1099('0xd0')](_0xa89ce5=>_0xa89ce5['toJSON']()):_0x50f613;}[_0x1099('0xcf')](_0x46e931){const _0x20c0a3=this[_0x1099('0x63')][_0x1099('0x36')](_0x46e931);if(!_0x20c0a3)throw new _0x3ae20b(_0x1099('0xe1'),this);return _0x20c0a3;}[_0x1099('0x0')](_0x2cb441){return this['_suggestions']['has'](_0x2cb441);}['addSuggestionData'](_0x5994ba){const {authorId:_0xcc4dbc,id:_0xd12de7,attributes:_0x336d92}=_0x5994ba,[_0x58475c,_0x8e9f1a]=_0x5994ba['type'][_0x1099('0x134')](':'),_0x3933c0=this[_0x1099('0x63')][_0x1099('0x36')](_0xd12de7)||this[_0x1099('0x27')](_0x58475c,_0x8e9f1a,_0xd12de7,_0xcc4dbc,_0x336d92);if(this[_0x1099('0xd2')](_0x3933c0),this[_0x1099('0x26')](_0x3933c0,_0x58475c,_0x8e9f1a||null,_0xcc4dbc),_0x3933c0[_0x1099('0x9a')]=_0x5994ba[_0x1099('0x9a')],_0x3933c0[_0x1099('0x9c')]=!0x0,_0x336d92&&_0x336d92[_0x1099('0x102')]){const _0x8ece46=_0x336d92[_0x1099('0x102')],_0x523993=this[_0x1099('0xbd')](_0x8ece46[_0x1099('0x37')]);_0x3933c0[_0x1099('0x58')]=_0x8ece46[_0x1099('0x9a')],_0x3933c0[_0x1099('0x96')]=_0x523993,_0x3933c0[_0x1099('0xec')]=!0x0;}else _0x3933c0[_0x1099('0x58')]=_0x5994ba[_0x1099('0x9a')];switch(_0x5994ba['data']&&(_0x3933c0[_0x1099('0xd')]=_0x5994ba[_0x1099('0xd')]),_0x5994ba[_0x1099('0x104')]&&(_0x3933c0['attributes']=_0x5994ba[_0x1099('0x104')]),this['_adapter']&&this[_0x1099('0x12c')]['addSuggestion']||(_0x3933c0[_0x1099('0x69')]=!0x0),this['_suggestionState']['get'](_0x3933c0)){case _0x1099('0xac'):this[_0x1099('0xd8')]['set'](_0x3933c0,_0x1099('0x18'));break;case _0x1099('0x2f'):_0x3933c0['isInContent']?(this['_refreshSuggestionsChain'](new Set([_0x3933c0])),this['_joinWithAdjacentSuggestions'](new Set([_0x3933c0])),this[_0x1099('0xd8')][_0x1099('0x51')](_0x3933c0,'ready'),this['fire'](_0x1099('0xff'),_0x3933c0)):this[_0x1099('0xd8')][_0x1099('0x51')](_0x3933c0,'removed');}return _0x3933c0;}[_0x1099('0x55')](_0x4f7f35){this[_0x1099('0xfd')](()=>{this[_0x1099('0x1f')]['model'][_0x1099('0x49')](()=>{for(const _0xf20064 of _0x4f7f35[_0x1099('0x10d')]())_0xf20064[_0x1099('0x107')]();});});}[_0x1099('0x7f')](_0x3e9995){this[_0x1099('0xfd')](()=>{this[_0x1099('0x1f')][_0x1099('0x6b')][_0x1099('0x49')](()=>{for(const _0x23d2f9 of _0x3e9995[_0x1099('0x10d')]())_0x23d2f9[_0x1099('0x33')]();});});}[_0x1099('0x8e')](_0x596e09,_0x3bdf9b){const _0xfc49a1=this[_0x1099('0x1f')]['commands'][_0x1099('0x36')](_0x596e09);if(!_0xfc49a1)throw new _0x3ae20b(_0x1099('0xe6'),this,{'commandName':_0x596e09});this[_0x1099('0x12e')][_0x1099('0x98')](_0xfc49a1),_0x3bdf9b&&_0xfc49a1['on']('execute',(_0x3f6bab,_0x49ec71)=>{this[_0x1099('0xa')][_0x1099('0x118')]&&(this['_isForcedDefaultExecutionBlock']||_0x49ec71[_0x1099('0x110')]>0x0&&_0x49ec71[_0x49ec71[_0x1099('0x110')]-0x1]&&_0x49ec71[_0x49ec71[_0x1099('0x110')]-0x1][_0x1099('0xfd')]||(_0x3f6bab[_0x1099('0x103')]=_0x3bdf9b((..._0x481143)=>_0xfc49a1[_0x1099('0x93')](..._0x481143,{'forceDefaultExecution':!0x0}),..._0x49ec71),_0x3f6bab[_0x1099('0x3b')]()));},{'priority':_0x1099('0xa7')});}[_0x1099('0xfd')](_0x2e174a){let _0x47285d,_0xb04080;const _0x26af36=this['_isForcedDefaultExecutionBlock'];this[_0x1099('0x87')]=!0x0;try{_0x47285d=_0x2e174a();}catch(_0x1017b6){_0xb04080=_0x1017b6;}return _0x26af36||(this[_0x1099('0x87')]=!0x1),_0xb04080&&_0x3ae20b['rethrowUnexpectedError'](_0xb04080,this),_0x47285d;}[_0x1099('0x1d')](_0x4ce64e,_0x3adc0b=null,_0x9696a1={}){if(_0x4ce64e[_0x1099('0x8d')])return null;const _0x45ff65=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'];for(const {suggestion:_0xef57f7,meta:_0x470cca}of this[_0x1099('0x10e')](_0x4ce64e,'insertion'))if(_0x470cca[_0x1099('0x12')]){if(!_0x470cca[_0x1099('0x5d')]){if(_0x470cca['containsRangeInObject']){if(!this[_0x1099('0x117')]||!Ot(_0xef57f7,_0x9696a1))continue;return _0xef57f7;}if(Ot(_0xef57f7,_0x9696a1))return _0xef57f7;this[_0x1099('0x76')](_0xef57f7,_0x4ce64e[_0x1099('0x31')],_0x4ce64e[_0x1099('0x97')]);break;}if(_0x3adc0b==_0xef57f7[_0x1099('0xb0')]&&Ot(_0xef57f7,_0x9696a1)){const _0x4b0450=_0xef57f7[_0x1099('0xb7')]();return _0x4b0450[_0x1099('0x31')][_0x1099('0x9d')](_0x4ce64e[_0x1099('0x97')])?this['_setSuggestionRange'](_0xef57f7,this[_0x1099('0xa3')]['createRange'](_0x4ce64e['start'],_0x4b0450['end'])):this['_setSuggestionRange'](_0xef57f7,this[_0x1099('0xa3')][_0x1099('0xef')](_0x4b0450['start'],_0x4ce64e[_0x1099('0x97')])),_0xef57f7;}}const _0x3e4d00=_0x308d28(),_0x178966=_0x45ff65['id'],_0x353317=_0x3adc0b?_0x1099('0xb4')+_0x3adc0b:_0x1099('0xed'),_0x1942f2=this[_0x1099('0x8')]({'id':_0x3e4d00,'type':_0x353317,'createdAt':new Date(),'authorId':_0x178966,'attributes':_0x9696a1});return this[_0x1099('0xf4')](_0x353317,_0x3e4d00,_0x178966,_0x4ce64e),_0x1942f2;}['markMultiRangeInsertion'](_0x5a16c4,_0x8d963f=_0x1099('0x56'),_0x392c0c={}){const _0x51d44a=this[_0x1099('0x1f')]['plugins']['get'](_0x1099('0x9'))['me'],_0x3f0a8a=this['_suggestionFactory'][_0x1099('0x113')](_0x1099('0xed'),_0x8d963f,_0x1099('0x89'));for(const _0x123896 of this[_0x1099('0xf6')]())if(_0x123896['author']['id']==_0x51d44a['id']&&_0x1099('0xed')==_0x123896['type']&&_0x123896[_0x1099('0xb0')]==_0x8d963f&&Ot(_0x123896,_0x392c0c)&&(_0x3f0a8a(_0x123896[_0x1099('0x3c')](),_0x5a16c4)||_0x3f0a8a(_0x5a16c4,_0x123896[_0x1099('0x3c')]()))){for(const _0x4d147f of _0x5a16c4)_0x123896[_0x1099('0x120')](_0x4d147f);return _0x123896;}for(const {suggestion:_0x2548c3,meta:_0x19b720}of this[_0x1099('0x10e')](_0x5a16c4,_0x1099('0xed'))){if(!_0x19b720[_0x1099('0x12')])continue;if(!this[_0x1099('0x117')]&&_0x19b720[_0x1099('0xd5')])continue;if(!Ot(_0x2548c3,_0x392c0c))continue;let _0x54ed78=!0x0;for(const _0x2d60a0 of _0x2548c3['getRanges']())for(const _0x5bca06 of _0x5a16c4)if(!_0x2d60a0[_0x1099('0x101')](_0x5bca06)){_0x54ed78=!0x1;break;}if(_0x54ed78)return _0x2548c3;}const _0x21e159=_0x308d28(),_0xef8c20=_0x51d44a['id'],_0x182c5b=_0x1099('0xb4')+_0x8d963f,_0x548f31=this[_0x1099('0x8')]({'id':_0x21e159,'type':_0x182c5b,'createdAt':new Date(),'authorId':_0xef8c20,'attributes':_0x392c0c});for(const _0x42ef13 of _0x5a16c4)this[_0x1099('0xf4')](_0x182c5b,_0x21e159,_0xef8c20,_0x42ef13,_0x2c5f77[_0x1099('0x52')]());return _0x548f31;}['markInlineFormat'](_0x22459a,_0x35718f,_0x5882b0=null,_0x50bc01={}){if(_0x5882b0=_0x5882b0||Nt(_0x35718f),_0x22459a[_0x1099('0x8d')])return null;if('never'===this[_0x1099('0xa0')]){const _0x1c0c1b=this[_0x1099('0xae')]['getSuggestionCallback'](_0x1099('0x50'),_0x5882b0,_0x1099('0x107'));return this['forceDefaultExecution'](()=>_0x1c0c1b([_0x22459a],_0x35718f,_0x50bc01)),null;}const _0xa6b25a=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'],_0x11c40f=[];if(_0x1099('0x53')!==this[_0x1099('0xa0')])for(const {suggestion:_0x178101,meta:_0x516876}of this[_0x1099('0x10e')](_0x22459a,_0x1099('0xed')))_0x516876[_0x1099('0x12')]&&!_0x516876[_0x1099('0x39')]&&_0x11c40f['push'](..._0x178101[_0x1099('0x3c')]());const _0x2729ef=function(_0x54d645,_0x56ba11){const _0x5f266e=[];for(const _0xb90a57 of _0x56ba11){const _0x35060c=_0x54d645['getIntersection'](_0xb90a57);_0x35060c&&_0x5f266e[_0x1099('0x106')](_0x35060c);}return _0x5f266e;}(_0x22459a,_0x11c40f),_0x2d0060=function(_0x5bb673,_0x20f363){const _0x3b73ca=[_0x5bb673];for(const _0x131b46 of _0x20f363){let _0x590197=0x0;for(;_0x590197<_0x3b73ca[_0x1099('0x110')];){const _0x4fa850=_0x3b73ca[_0x590197]['getDifference'](_0x131b46);_0x3b73ca[_0x1099('0x95')](_0x590197,0x1,..._0x4fa850),_0x590197+=_0x4fa850['length'];}}return _0x3b73ca;}(_0x22459a,_0x11c40f);_0x2729ef[_0x1099('0x110')]&&this[_0x1099('0xa3')][_0x1099('0x49')](()=>{for(const _0x1ec4b2 of _0x2729ef){const _0x33a59d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5882b0,_0x1099('0x107'));this['forceDefaultExecution'](()=>_0x33a59d([_0x1ec4b2],_0x35718f,_0x50bc01));}});for(const _0x19f1e2 of _0x2d0060){let _0x38553a=null,_0x2eccec=_0x19f1e2[_0x1099('0x31')],_0x3037b4=_0x19f1e2['end'];for(const {suggestion:_0x2c1d3f,meta:_0xd01e28}of this['_findSuggestions'](_0x19f1e2,_0x1099('0x50'))){if(!_0xd01e28[_0x1099('0x12')])continue;if(_0x2c1d3f[_0x1099('0xb0')]!=_0x5882b0)continue;if(!Ot(_0x2c1d3f,_0x50bc01))continue;const _0x19e125=_0x2c1d3f[_0x1099('0xb7')]();if(_0x19e125[_0x1099('0x101')](_0x19f1e2,!0x0))return null;_0x2eccec=_0x2eccec[_0x1099('0x11c')](_0x19e125[_0x1099('0x31')])?_0x2eccec:_0x19e125[_0x1099('0x31')],_0x3037b4=_0x3037b4[_0x1099('0x81')](_0x19e125['end'])?_0x3037b4:_0x19e125[_0x1099('0x97')],_0x38553a?_0x19e125[_0x1099('0x31')][_0x1099('0x11c')](_0x38553a[_0x1099('0xb7')]()['start'])?(_0x38553a[_0x1099('0x13e')](),_0x38553a=_0x2c1d3f):_0x2c1d3f[_0x1099('0x13e')]():_0x38553a=_0x2c1d3f;}const _0x369bb5=this[_0x1099('0xa3')][_0x1099('0xef')](_0x2eccec,_0x3037b4);if(_0x38553a)this[_0x1099('0xbc')](_0x38553a,_0x369bb5);else{const _0x466d02=_0x308d28(),_0x5e5330=_0xa6b25a['id'];this[_0x1099('0x8')]({'id':_0x466d02,'type':_0x1099('0x122')+_0x5882b0,'data':_0x35718f,'createdAt':new Date(),'authorId':_0x5e5330,'attributes':_0x50bc01}),this['_addSuggestionMarker'](_0x1099('0x122')+_0x5882b0,_0x466d02,_0x5e5330,_0x369bb5);}}return null;}[_0x1099('0xc7')](_0x2f1638,_0x1e32c3,_0x2e7377=[],_0x2518a4=null,_0x477d29={}){_0x1e32c3[_0x1099('0x7e')]||(_0x1e32c3['formatGroupId']=_0x1e32c3[_0x1099('0x75')]),_0x1e32c3[_0x1099('0x127')]=_0x2f1638['is']('range'),_0x2518a4=_0x2518a4||Nt(_0x1e32c3);const _0x11d3bc=_0x2e7377[_0x1099('0xd0')](_0x4a6467=>jt(_0x4a6467,this['_model'])),_0x4332c9=_0x2f1638['is'](_0x1099('0x135'))?_0x2f1638:jt(_0x2f1638,this[_0x1099('0xa3')]);if(_0x1099('0x71')===this['_trackFormatChanges']){const _0x115292=this['_suggestionFactory'][_0x1099('0x113')](_0x1099('0x7d'),_0x2518a4,_0x1099('0x107'));return this['forceDefaultExecution'](()=>_0x115292([_0x4332c9],_0x1e32c3,_0x477d29)),null;}_0x11d3bc[_0x1099('0x106')](_0x4332c9);let _0xec3478=!0x0;for(const _0x3c90e0 of _0x11d3bc)if(!this['_rangeIsInLocalUserInsertion'](_0x3c90e0)){_0xec3478=!0x1;break;}if(_0xec3478&&'always'!==this[_0x1099('0xa0')]){const _0x320917=this['_suggestionFactory'][_0x1099('0x113')](_0x1099('0x7d'),_0x2518a4,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x320917([_0x4332c9],_0x1e32c3,_0x477d29)),null;}let _0x55111c=null,_0x258dbb=_0x4332c9[_0x1099('0x31')],_0x4a43f9=_0x4332c9['end'];for(const {suggestion:_0x5f29d7,meta:_0x200e46}of this[_0x1099('0x10e')](_0x4332c9,_0x1099('0x7d'))){if(!_0x200e46['isOwn'])continue;if(_0x200e46['isNextTo']||_0x200e46[_0x1099('0xd5')]||_0x200e46[_0x1099('0x39')])continue;if(_0x5f29d7[_0x1099('0xd')][_0x1099('0x7e')]!=_0x1e32c3[_0x1099('0x7e')])continue;if(!Ot(_0x5f29d7,_0x477d29))continue;const _0x320f0c=_0x5f29d7[_0x1099('0xb7')]();if(_0x5f29d7[_0x1099('0xb0')]==_0x2518a4){if(_0x320f0c[_0x1099('0x101')](_0x4332c9,!0x0))return null;_0x258dbb=_0x258dbb['isBefore'](_0x320f0c[_0x1099('0x31')])?_0x258dbb:_0x320f0c['start'],_0x4a43f9=_0x4a43f9[_0x1099('0x81')](_0x320f0c['end'])?_0x4a43f9:_0x320f0c[_0x1099('0x97')],_0x55111c?_0x320f0c[_0x1099('0x31')][_0x1099('0x11c')](_0x55111c['getFirstRange']()[_0x1099('0x31')])?(_0x55111c[_0x1099('0x13e')](),_0x55111c=_0x5f29d7):_0x5f29d7[_0x1099('0x13e')]():_0x55111c=_0x5f29d7;}else{const _0x3842a5=_0x4332c9[_0x1099('0xc8')](_0x320f0c);this['_cutOutSuggestionMarker'](_0x5f29d7,_0x3842a5);}}const _0x4aad20=this[_0x1099('0x1f')]['plugins'][_0x1099('0x36')](_0x1099('0x9'))['me'],_0x18f598=_0x308d28(),_0x493822=_0x4aad20['id'];if(_0x55111c)return this['_setSuggestionRange'](_0x55111c,this[_0x1099('0xa3')][_0x1099('0xef')](_0x258dbb,_0x4a43f9)),_0x55111c;{const _0xf68cf=this[_0x1099('0x8')]({'id':_0x18f598,'type':'formatBlock:'+_0x2518a4,'data':_0x1e32c3,'createdAt':new Date(),'authorId':_0x493822,'attributes':_0x477d29});return this[_0x1099('0xf4')](_0x1099('0x11d')+_0x2518a4,_0x18f598,_0x493822,this['_model'][_0x1099('0xef')](_0x258dbb,_0x4a43f9)),_0xf68cf;}}[_0x1099('0xbf')](_0x30e5e0,_0xe201c2,_0x44e197=[],_0x15d9e7=null,_0x118ad2={}){_0xe201c2[_0x1099('0x7e')]||(_0xe201c2[_0x1099('0x7e')]=_0xe201c2['commandName']);const _0x8a6ee8=_0x30e5e0[0x0];_0xe201c2[_0x1099('0x127')]=_0x8a6ee8['is'](_0x1099('0x135')),_0x15d9e7=_0x15d9e7||Nt(_0xe201c2);const _0x44c56d=_0x44e197['map'](_0x5f03c7=>jt(_0x5f03c7,this['_model'])),_0x31e7f4=_0x8a6ee8['is'](_0x1099('0x135'))?_0x30e5e0:_0x30e5e0[_0x1099('0xd0')](_0x4aad50=>jt(_0x4aad50,this[_0x1099('0xa3')]));if(_0x1099('0x71')===this[_0x1099('0xa0')]){const _0x5e9388=this[_0x1099('0xae')][_0x1099('0x113')](_0x1099('0x7d'),_0x15d9e7,'accept');return this[_0x1099('0xfd')](()=>_0x5e9388(_0x31e7f4,_0xe201c2,_0x118ad2)),null;}_0x44c56d['push'](..._0x31e7f4);let _0x1f9918=!0x0;for(const _0x4a1f73 of _0x44c56d)if(!this[_0x1099('0x62')](_0x4a1f73)){_0x1f9918=!0x1;break;}if(_0x1f9918&&_0x1099('0x53')!==this[_0x1099('0xa0')]){const _0x41b08b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15d9e7,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x41b08b(_0x31e7f4,_0xe201c2,_0x118ad2)),null;}const _0xe06005=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'];for(const _0x410e50 of this[_0x1099('0xf6')]()){if(_0x410e50[_0x1099('0x96')]['id']!=_0xe06005['id'])continue;if(_0x1099('0x7d')!=_0x410e50[_0x1099('0x1b')]||_0x410e50[_0x1099('0xd')]['formatGroupId']!=_0xe201c2[_0x1099('0x7e')])continue;if(!Ot(_0x410e50,_0x118ad2))continue;const _0x1e519a=_0x410e50[_0x1099('0xb0')]==_0x15d9e7;for(let _0x49816f=0x0;_0x49816f<_0x31e7f4[_0x1099('0x110')];_0x49816f++){const _0x55a827=_0x31e7f4[_0x49816f];for(const _0x1e833c of _0x410e50[_0x1099('0x125')]()){const _0x27fa72=_0x1e833c[_0x1099('0x4a')]();if(_0x55a827[_0x1099('0x9d')](_0x27fa72)){_0x1e519a?(_0x31e7f4[_0x1099('0x95')](_0x49816f,0x1),_0x49816f--):_0x410e50[_0x1099('0xc3')](_0x1e833c['name']);break;}}}}if(0x0==_0x31e7f4[_0x1099('0x110')])return null;const _0x4411e1=this[_0x1099('0xae')]['getSuggestionCallback']('formatBlock',_0x15d9e7,'join');for(const _0x3e9da6 of this[_0x1099('0xf6')]())if(_0x3e9da6[_0x1099('0x96')]['id']==_0xe06005['id']&&'formatBlock'==_0x3e9da6[_0x1099('0x1b')]&&_0x3e9da6['data'][_0x1099('0x7e')]==_0xe201c2[_0x1099('0x7e')]&&_0x3e9da6[_0x1099('0xb0')]==_0x15d9e7&&Ot(_0x3e9da6,_0x118ad2)&&(_0x4411e1(_0x3e9da6[_0x1099('0x3c')](),_0x31e7f4)||_0x4411e1(_0x31e7f4,_0x3e9da6[_0x1099('0x3c')]()))){for(const _0x5d20f3 of _0x31e7f4)_0x3e9da6['addRange'](_0x5d20f3);return _0x3e9da6;}const _0x1fa2e8=_0x308d28(),_0x4f760e=_0xe06005['id'],_0xd97fee=_0x1099('0x11d')+_0x15d9e7,_0x1225c9=this[_0x1099('0x8')]({'id':_0x1fa2e8,'type':_0xd97fee,'data':_0xe201c2,'createdAt':new Date(),'authorId':_0x4f760e,'attributes':_0x118ad2});for(const _0x4c0569 of _0x31e7f4)this[_0x1099('0xf4')](_0xd97fee,_0x1fa2e8,_0x4f760e,_0x4c0569,_0x2c5f77[_0x1099('0x52')]());return _0x1225c9;}[_0x1099('0x13b')](_0x28f476,_0x1c00b0=null,_0x2f14bb={}){if(_0x28f476[_0x1099('0x8d')])return null;const _0x4bc93c=this[_0x1099('0x1f')]['plugins'][_0x1099('0x36')]('Users')['me'],_0x48c7d3=new _0x582436(_0x28f476[_0x1099('0x31')],_0x28f476['end']);for(const {suggestion:_0x421918,meta:_0x1a7abe}of this[_0x1099('0x10e')](_0x48c7d3,_0x1099('0xed')))if(_0x1a7abe[_0x1099('0x12')]&&!_0x1a7abe[_0x1099('0x5d')]){if(_0x421918[_0x1099('0x20')]){const _0x285721=_0x421918[_0x1099('0x3c')]()[_0x1099('0xd4')](_0x1cc2e7=>'$graveyard'!=_0x1cc2e7[_0x1099('0xa8')][_0x1099('0xb')]);_0x285721[_0x1099('0x17')](_0x5c6a36=>_0x48c7d3[_0x1099('0x101')](_0x5c6a36,!0x0))&&_0x421918[_0x1099('0x33')]();if(_0x285721['some'](_0x14a107=>_0x14a107[_0x1099('0x101')](_0x48c7d3,!0x0))){const _0x426d0b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c00b0,'accept');return this[_0x1099('0xfd')](()=>_0x426d0b([_0x48c7d3],null,_0x2f14bb)),null;}}else{const _0x5b65da=_0x48c7d3[_0x1099('0xc8')](_0x421918[_0x1099('0xb7')]());null!==_0x5b65da&&_0x421918[_0x1099('0x114')]([_0x5b65da],null,_0x2f14bb);}}if(_0x48c7d3[_0x1099('0x5')](),_0x48c7d3[_0x1099('0x8d')]||'$graveyard'==_0x48c7d3['root']['rootName'])return null;let _0x4d298d=null,_0x3b83f7=_0x48c7d3[_0x1099('0x31')],_0x573480=_0x48c7d3[_0x1099('0x97')];const _0x2e8ea1=this[_0x1099('0x10e')](_0x48c7d3,_0x1099('0x13f'));for(const {suggestion:_0xca45be,meta:_0x1b17a2}of _0x2e8ea1){const _0x4a6d48=this['_model'][_0x1099('0xef')](_0x3b83f7,_0x573480);if(_0x1b17a2['isOwn']&&(this[_0x1099('0x117')]||!_0x1b17a2[_0x1099('0xd5')]&&!_0x1b17a2['isInsideObject'])){if(_0xca45be[_0x1099('0x20')]){if(!Ot(_0xca45be,_0x2f14bb))continue;let _0x139211=!0x0;for(const _0x4116d7 of _0xca45be[_0x1099('0x3c')]()){if(_0x4116d7[_0x1099('0x101')](_0x4a6d48,!0x0))return _0xca45be;_0x4a6d48['containsRange'](_0x4116d7)||(_0x139211=!0x1);}_0x139211&&_0xca45be[_0x1099('0x33')]();}else{const _0x101f0d=_0xca45be[_0x1099('0xb7')]();if(_0x101f0d['containsRange'](_0x4a6d48,!0x0))return _0xca45be;if(!Ot(_0xca45be,_0x2f14bb)){_0x4a6d48['containsRange'](_0x101f0d)?_0xca45be[_0x1099('0x13e')]():_0x101f0d[_0x1099('0x32')](_0x3b83f7)?_0x3b83f7=_0x101f0d[_0x1099('0x97')]:_0x101f0d['containsPosition'](_0x573480)&&(_0x573480=_0x101f0d[_0x1099('0x31')]);continue;}_0x3b83f7=_0x3b83f7[_0x1099('0x11c')](_0x101f0d[_0x1099('0x31')])?_0x3b83f7:_0x101f0d[_0x1099('0x31')],_0x573480=_0x573480['isAfter'](_0x101f0d[_0x1099('0x97')])?_0x573480:_0x101f0d[_0x1099('0x97')],_0x2f14bb=Object['assign']({},_0xca45be[_0x1099('0x104')]),_0x4d298d?_0x101f0d[_0x1099('0x31')][_0x1099('0x11c')](_0x4d298d[_0x1099('0xb7')]()[_0x1099('0x31')])?(_0x4d298d[_0x1099('0x13e')](),_0x4d298d=_0xca45be):_0xca45be['removeMarkers']():_0x4d298d=_0xca45be;}}}if(_0x4d298d)return this['_setSuggestionRange'](_0x4d298d,this['_model'][_0x1099('0xef')](_0x3b83f7,_0x573480)),_0x4d298d;{const _0x98790d=_0x308d28(),_0x3ccfb3=this[_0x1099('0xa3')][_0x1099('0xef')](_0x3b83f7,_0x573480),_0x4e95b6=_0x4bc93c['id'],_0x45b843=_0x1c00b0?_0x1099('0x10')+_0x1c00b0:_0x1099('0x13f'),_0x26db54=this[_0x1099('0x8')]({'id':_0x98790d,'type':_0x45b843,'createdAt':new Date(),'authorId':_0x4e95b6,'attributes':_0x2f14bb});return this[_0x1099('0xf4')](_0x45b843,_0x98790d,_0x4e95b6,_0x3ccfb3),_0x26db54;}}['markMultiRangeDeletion'](_0x594cdf,_0x2a8a6d='multi',_0x52a179={}){const _0x29d9a0=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'],_0x49e6ac=_0x594cdf[_0x1099('0xd0')](_0x3d9ad1=>new _0x582436(_0x3d9ad1[_0x1099('0x31')],_0x3d9ad1[_0x1099('0x97')])),_0x5f5a25=new Set();for(const {suggestion:_0x53947a,meta:_0x23fcae}of this[_0x1099('0x10e')](_0x49e6ac,_0x1099('0xed')))_0x23fcae[_0x1099('0x12')]&&!_0x23fcae['isNextTo']&&_0x5f5a25['add'](_0x53947a);for(const _0x398fe0 of _0x5f5a25)if(_0x398fe0[_0x1099('0x20')]){const _0x1985d2=_0x398fe0[_0x1099('0x3c')]();(!_0x398fe0[_0x1099('0x104')]||!_0x398fe0['attributes'][_0x1099('0xf7')])&&(_0x1985d2[_0x1099('0x17')](_0x4ba33b=>_0x49e6ac[_0x1099('0x90')](_0x5d539d=>_0x5d539d['containsRange'](_0x4ba33b,!0x0)))&&_0x398fe0[_0x1099('0x33')]());if(_0x49e6ac[_0x1099('0x17')](_0xe0b42=>_0x1985d2[_0x1099('0x90')](_0x103908=>_0x103908[_0x1099('0x101')](_0xe0b42,!0x0)))){const _0x13bd91=this[_0x1099('0xae')][_0x1099('0x113')](_0x1099('0x13f'),_0x2a8a6d,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x13bd91(_0x594cdf,null,_0x52a179)),null;}}else{const _0x205678=_0x398fe0['getFirstRange']();_0x49e6ac['some'](_0x1eff88=>_0x1eff88[_0x1099('0x101')](_0x205678,!0x0))&&_0x398fe0[_0x1099('0x33')]();if(_0x49e6ac['every'](_0x3e9f5c=>_0x205678[_0x1099('0x101')](_0x3e9f5c,!0x0))){const _0x2a5154=this[_0x1099('0xae')][_0x1099('0x113')](_0x1099('0x13f'),_0x2a8a6d,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x2a5154(_0x49e6ac,null,_0x52a179)),null;}}const _0x1f1349=this[_0x1099('0xae')][_0x1099('0x113')]('deletion',_0x2a8a6d,_0x1099('0x89'));let _0x480f6c=null;for(const _0x3324ce of this[_0x1099('0xf6')]())if(_0x3324ce[_0x1099('0x96')]['id']==_0x29d9a0['id']&&_0x3324ce[_0x1099('0x4f')]&&_0x1099('0x13f')==_0x3324ce[_0x1099('0x1b')]&&_0x3324ce[_0x1099('0xb0')]==_0x2a8a6d&&Ot(_0x3324ce,_0x52a179)&&(_0x1f1349(_0x3324ce[_0x1099('0x3c')](),_0x49e6ac)||_0x1f1349(_0x49e6ac,_0x3324ce[_0x1099('0x3c')]()))){if(_0x480f6c){if(_0x3324ce['commentThread']&&_0x3324ce[_0x1099('0xb8')]['length'])continue;for(const _0x224c9d of _0x3324ce[_0x1099('0x3c')]())_0x480f6c[_0x1099('0xea')](_0x224c9d)||_0x480f6c[_0x1099('0x120')](_0x224c9d);_0x3324ce[_0x1099('0x13e')]();}else{_0x480f6c=_0x3324ce;for(const _0x3bf76f of _0x49e6ac)_0x3324ce[_0x1099('0xea')](_0x3bf76f)||_0x3324ce[_0x1099('0x120')](_0x3bf76f);}}if(_0x480f6c)return _0x480f6c;_0x5f5a25[_0x1099('0x1a')]();for(const {suggestion:_0x50768d,meta:_0x51332f}of this[_0x1099('0x10e')](_0x49e6ac,_0x1099('0x13f')))_0x51332f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x51332f[_0x1099('0xd5')]&&!_0x51332f[_0x1099('0x39')])&&Ot(_0x50768d,_0x52a179)&&_0x5f5a25[_0x1099('0x98')](_0x50768d);for(const _0x3f91de of _0x5f5a25){const _0x42bd8c=_0x3f91de[_0x1099('0x3c')]();if(!_0x52a179||!_0x52a179[_0x1099('0xf7')]){if(_0x49e6ac['every'](_0x5a583d=>_0x42bd8c['some'](_0x44ebfa=>_0x44ebfa['containsRange'](_0x5a583d,!0x0))))return _0x3f91de;}(!_0x3f91de['attributes']||!_0x3f91de[_0x1099('0x104')][_0x1099('0xf7')])&&(_0x42bd8c[_0x1099('0x17')](_0x18c552=>_0x49e6ac[_0x1099('0x90')](_0x5447b4=>_0x5447b4['containsRange'](_0x18c552,!0x0)))&&_0x3f91de[_0x1099('0x33')]());}const _0x5b5196=_0x308d28(),_0x22e162=_0x29d9a0['id'],_0x4a710d=_0x1099('0x10')+_0x2a8a6d,_0x73bb55=this['_setSuggestionData']({'id':_0x5b5196,'type':_0x4a710d,'createdAt':new Date(),'authorId':_0x22e162,'attributes':_0x52a179});for(const _0x58cc37 of _0x49e6ac)_0x58cc37['detach'](),_0x58cc37[_0x1099('0x8d')]||'$graveyard'==_0x58cc37['root'][_0x1099('0xb')]||this[_0x1099('0xf4')](_0x4a710d,_0x5b5196,_0x22e162,_0x58cc37,_0x2c5f77[_0x1099('0x52')]());return _0x73bb55;}[_0x1099('0xbc')](_0x12cb78,_0x113395){const _0x395928=_0x12cb78[_0x1099('0x132')]();this[_0x1099('0xa3')][_0x1099('0x49')](_0x5a11bc=>{_0x5a11bc[_0x1099('0x121')](_0x395928,{'range':_0x113395});});}['_addThreadToSuggestion'](_0x33c781){const _0x502abe=_0x33c781['id'],_0x14a96f=this[_0x1099('0x1f')][_0x1099('0xc0')]['get'](_0x1099('0xe3'));this[_0x1099('0x2e')][_0x1099('0x85')](_0x502abe)||this[_0x1099('0x2e')][_0x1099('0x15')]({'channelId':_0x14a96f,'threadId':_0x502abe,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x27a228=this[_0x1099('0x2e')][_0x1099('0x84')](_0x502abe);_0x27a228[_0x1099('0x5f')]('isRemovable'),_0x27a228[_0x1099('0x70')]=!0x1,_0x33c781[_0x1099('0xb8')]=_0x27a228;}[_0x1099('0x26')](_0x224117,_0x43ca10,_0x5c351a,_0x5b21d5){if(_0x224117[_0x1099('0x1b')]!=_0x43ca10||_0x224117[_0x1099('0xb0')]!=_0x5c351a||_0x224117[_0x1099('0x34')]['id']!=_0x5b21d5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ae20b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x22a087,_0x558135){const _0x39829d=_0x22a087['getFirstRange']();if(_0x558135[_0x1099('0x9d')](_0x39829d))_0x22a087[_0x1099('0x13e')]();else{if(_0x39829d[_0x1099('0x101')](_0x558135)){const _0xfe77a=this['_model'][_0x1099('0x4b')](_0x558135[_0x1099('0x31')][_0x1099('0x10f')],_0x1099('0x97'));this[_0x1099('0xbc')](_0x22a087,this['_model']['createRange'](_0x39829d[_0x1099('0x31')],_0xfe77a));const _0x594309=_0x308d28(),_0x5b2eeb=_0x22a087[_0x1099('0x34')]['id'],_0x263f20=_0x22a087[_0x1099('0x1b')]+':'+_0x22a087[_0x1099('0xb0')];this[_0x1099('0x8')]({'id':_0x594309,'type':_0x263f20,'createdAt':new Date(),'authorId':_0x5b2eeb,'data':_0x22a087[_0x1099('0xd')],'attributes':_0x22a087['attributes']});const _0x1ccdab=this[_0x1099('0xa3')][_0x1099('0x4b')](_0x558135[_0x1099('0x97')]['parent'],_0x1099('0x80')),_0x92470e=this[_0x1099('0xa3')][_0x1099('0xef')](_0x1ccdab,_0x39829d[_0x1099('0x97')]);this[_0x1099('0xf4')](_0x263f20,_0x594309,_0x5b2eeb,_0x92470e);}else{if(_0x39829d['containsPosition'](_0x558135[_0x1099('0x31')])){const _0x5eed7e=this['_model']['createPositionAt'](_0x558135['start'][_0x1099('0x10f')],_0x1099('0x97'));this[_0x1099('0xbc')](_0x22a087,this[_0x1099('0xa3')][_0x1099('0xef')](_0x39829d[_0x1099('0x31')],_0x5eed7e));}else{const _0x5cebb5=this[_0x1099('0xa3')]['createPositionAt'](_0x558135[_0x1099('0x97')][_0x1099('0x2c')],_0x1099('0x80'));this[_0x1099('0xbc')](_0x22a087,this[_0x1099('0xa3')][_0x1099('0xef')](_0x5cebb5,_0x39829d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1e4899){for(const {suggestion:_0x4c8756,meta:_0x2c2c1a}of this['_findSuggestions'](_0x1e4899,_0x1099('0xed'))){if(!_0x2c2c1a[_0x1099('0x12')])continue;const _0x5075f4=_0x4c8756[_0x1099('0x3c')]();for(const _0x469811 of _0x5075f4)if(!_0x1e4899['getDifference'](_0x469811)['length'])return!0x0;}return!0x1;}[_0x1099('0xa9')](_0x1eddec){const _0x4ba8b5=this['editor'][_0x1099('0xe8')]['get']('Users')['getUser'](_0x1eddec);if(!_0x4ba8b5)throw new _0x3ae20b('track-changes-user-not-found',this);return _0x4ba8b5;}['_getExternalAuthor'](_0x170891){const _0x115372=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9')),_0x3a55be=_0x51d38b(_0x1099('0x10c')+_0x170891),_0x11434b=_0x115372[_0x1099('0xa1')](_0x3a55be);return _0x11434b||_0x115372[_0x1099('0x7')]({'id':_0x3a55be,'name':_0x170891});}[_0x1099('0x27')](_0x5c6384,_0x45b93a,_0x31edfe,_0x5cc99e,_0x1b0b23){const _0xf1bde7=this[_0x1099('0xa9')](_0x5cc99e),_0x58c284=this[_0x1099('0xae')]['buildSuggestion'](_0x5c6384,_0x45b93a,_0x31edfe,_0xf1bde7,_0x1b0b23,_0x5716db=>this[_0x1099('0x83')](_0x31edfe,{'attributes':_0x5716db}));return this[_0x1099('0x66')](_0x58c284,_0x1099('0x107'),()=>{this[_0x1099('0x83')](_0x31edfe,{'state':_0x1099('0x67')});},{'priority':_0x1099('0xa7')}),this['listenTo'](_0x58c284,_0x1099('0x33'),()=>{this['_updateSuggestionData'](_0x31edfe,{'state':_0x1099('0x6d')});},{'priority':'high'}),this[_0x1099('0x63')][_0x1099('0x51')](_0x31edfe,_0x58c284),this[_0x1099('0xd8')][_0x1099('0x51')](_0x58c284,_0x1099('0xac')),_0x58c284;}['_splitMarkerName'](_0x2ab235){const _0x35f163=_0x2ab235[_0x1099('0x134')](':');return{'group':_0x35f163[0x0],'type':_0x35f163[0x1],'subType':_0x35f163[_0x1099('0x110')]>=0x5?_0x35f163[0x2]:null,'id':_0x35f163[_0x1099('0x110')]<0x5?_0x35f163[0x2]:_0x35f163[0x3],'authorId':_0x35f163[_0x1099('0x110')]<0x5?_0x35f163[0x3]:_0x35f163[0x4],'markerCount':0x6==_0x35f163[_0x1099('0x110')]?_0x35f163[0x5]:null};}[_0x1099('0x76')](_0x112f3e,_0x3c6fa7,_0x39e6b2){const _0x44f66e=_0x112f3e[_0x1099('0xb7')](),_0x597184=_0x44f66e[_0x1099('0x31')],_0x36e12c=_0x44f66e[_0x1099('0x97')];this[_0x1099('0xbc')](_0x112f3e,this[_0x1099('0xa3')][_0x1099('0xef')](_0x597184,_0x3c6fa7));const _0x2ce866=_0x308d28(),_0x453f1a=_0x112f3e[_0x1099('0x34')]['id'],_0x3fd4c1=_0x112f3e[_0x1099('0x1b')]+(_0x112f3e[_0x1099('0xb0')]?':'+_0x112f3e[_0x1099('0xb0')]:'');this[_0x1099('0x8')]({'id':_0x2ce866,'type':_0x3fd4c1,'createdAt':new Date(),'authorId':_0x453f1a,'originalSuggestionId':_0x112f3e['id'],'attributes':_0x112f3e[_0x1099('0x104')],'data':_0x112f3e[_0x1099('0xd')]}),_0x1099('0x7d')==_0x112f3e[_0x1099('0x1b')]&&(_0x39e6b2=this[_0x1099('0xa3')]['createPositionBefore'](_0x39e6b2['parent'])),this['_addSuggestionMarker'](_0x3fd4c1,_0x2ce866,_0x453f1a,this['_model'][_0x1099('0xef')](_0x39e6b2,_0x36e12c));}[_0x1099('0x10e')](_0x346d5e,_0x2ed3a0=null){const _0x221821=[],_0x5af8e0=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')]('Users')['me'];Array['isArray'](_0x346d5e)||(_0x346d5e=[_0x346d5e]);for(const _0x1f229f of this[_0x1099('0xf6')]()){if(!_0x1f229f[_0x1099('0x4f')])continue;if(_0x2ed3a0&&_0x1f229f['type']!=_0x2ed3a0)continue;let _0x32fe99=!0x1;for(const _0xfa4266 of _0x1f229f[_0x1099('0x3c')]()){for(const _0x50e7e1 of _0x346d5e){const _0x22c898=_0x50e7e1[_0x1099('0x31')]['isEqual'](_0xfa4266[_0x1099('0x97')])||_0x50e7e1[_0x1099('0x97')][_0x1099('0x9d')](_0xfa4266[_0x1099('0x31')]);if(_0x22c898||_0x50e7e1[_0x1099('0xc8')](_0xfa4266)){const _0x2f9714=_0x50e7e1[_0x1099('0x101')](_0xfa4266)&&_t(this[_0x1099('0xa3')][_0x1099('0x11e')],_0xfa4266['start'],_0x50e7e1),_0x328a1e=_0xfa4266[_0x1099('0x101')](_0x50e7e1)&&_t(this[_0x1099('0xa3')][_0x1099('0x11e')],_0x50e7e1[_0x1099('0x31')],_0xfa4266);_0x221821[_0x1099('0x106')]({'suggestion':_0x1f229f,'meta':{'isOwn':_0x5af8e0==_0x1f229f['author'],'isNextTo':_0x22c898,'isInsideObject':_0x2f9714,'containsRangeInObject':_0x328a1e}}),_0x32fe99=!0x0;break;}}if(_0x32fe99)break;}}return _0x221821;}['_addSuggestionMarker'](_0x1523c2,_0x1f7670,_0x259edd,_0x1ef299,_0x55e7eb){this[_0x1099('0xa3')][_0x1099('0x49')](_0x228dd8=>{let _0x11f0b2=_0x1099('0x13d')+_0x1523c2+':'+_0x1f7670+':'+_0x259edd;_0x55e7eb&&(_0x11f0b2=_0x11f0b2+':'+_0x55e7eb),_0x228dd8[_0x1099('0xee')](_0x11f0b2,{'range':_0x1ef299,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1099('0xce')](_0x4f9bff){const _0x4fb768=_0x4f9bff[_0x1099('0x3a')],_0x583442=_0x4f9bff[_0x1099('0xdf')];_0x4f9bff[_0x1099('0x3a')]=null,null!=_0x4fb768&&(_0x4fb768[_0x1099('0xdf')]=null),_0x4f9bff[_0x1099('0xdf')]=null,null!=_0x583442&&(_0x583442[_0x1099('0x3a')]=null),_0x1099('0xf5')==this[_0x1099('0xd8')][_0x1099('0x36')](_0x4f9bff)&&(this[_0x1099('0xd8')][_0x1099('0x51')](_0x4f9bff,'removed'),this[_0x1099('0xc1')](_0x1099('0x141'),_0x4f9bff,_0x4fb768,_0x583442));}[_0x1099('0x8')](_0x49536d){const _0xc323ab=_0x49536d['id'],_0x2ec1c2=this['addSuggestionData'](_0x49536d);if(this[_0x1099('0x12c')]&&this[_0x1099('0x12c')][_0x1099('0x129')]){const _0x2c0f70=this[_0x1099('0x1f')]['plugins'][_0x1099('0x36')](_0x1099('0xcd')),_0xefc558=_0x2ec1c2[_0x1099('0x133')],_0x444c49=_0x2ec1c2[_0x1099('0xb0')]?_0x2ec1c2['type']+':'+_0x2ec1c2['subType']:_0x2ec1c2['type'],_0x5ed3ce=this[_0x1099('0x1f')][_0x1099('0x54')],_0x552ec5=_0x2c0f70[_0x1099('0x98')](_0x6b0c5d(_0x5ed3ce,_0x1099('0xf0'))),_0x15153c={'id':_0xc323ab,'type':_0x444c49,'hasComments':_0xefc558,'data':_0x49536d[_0x1099('0xd')]||null,'originalSuggestionId':_0x49536d['originalSuggestionId']||null,'attributes':_0x2ec1c2[_0x1099('0x104')]};this[_0x1099('0x12c')][_0x1099('0x129')](_0x15153c)['then'](_0x1d4532=>{_0x2ec1c2[_0x1099('0x69')]=!0x0,_0x2c0f70['remove'](_0x552ec5),_0x1d4532&&_0x1d4532['createdAt']&&(this['_suggestions']['get'](_0xc323ab)[_0x1099('0x9a')]=_0x1d4532['createdAt']);})[_0x1099('0xfa')](_0x4d8fdf=>{throw _0x213ab2(_0x1099('0x10a')),this['editor'][_0x1099('0x6b')][_0x1099('0x45')]({'isUndoable':!0x1},()=>{_0x2ec1c2[_0x1099('0x33')]();}),_0x2ec1c2['stopListening'](),this[_0x1099('0x63')]['delete'](_0x2ec1c2['id']),this[_0x1099('0xd8')][_0x1099('0x8c')](_0x2ec1c2),_0x4d8fdf;});}return _0x2ec1c2;}[_0x1099('0x83')](_0x33dde7,_0x56fdd7){const _0x89f045=this['editor'][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0xcd')),_0x166abf=this[_0x1099('0xcf')](_0x33dde7);if(this['_adapter']&&this[_0x1099('0x12c')][_0x1099('0xdd')]){if(_0x166abf[_0x1099('0x69')]){const _0xde06f7=_0x89f045[_0x1099('0x98')](_0x6b0c5d(this[_0x1099('0x1f')][_0x1099('0x54')],_0x1099('0xf0')));this[_0x1099('0x12c')][_0x1099('0xdd')](_0x33dde7,_0x56fdd7)[_0x1099('0xfb')](()=>{_0x89f045[_0x1099('0x4e')](_0xde06f7);});}else _0x166abf['on'](_0x1099('0x5c'),()=>{this[_0x1099('0x83')](_0x33dde7,_0x56fdd7);});}}[_0x1099('0xf')](_0x1d5b87){if(!this['_adapter']||!this[_0x1099('0x12c')][_0x1099('0xcf')])throw new _0x3ae20b(_0x1099('0xc'),this);return this[_0x1099('0x12c')][_0x1099('0xcf')](_0x1d5b87);}['_handleNewSuggestionMarker'](_0x125a6b){const {id:_0x50de60,type:_0x181dc4,subType:_0x351e99,authorId:_0x5a0f69}=this[_0x1099('0x115')](_0x125a6b),_0x39bbe8=this['_suggestions'][_0x1099('0x36')](_0x50de60)||this[_0x1099('0x27')](_0x181dc4,_0x351e99,_0x50de60,_0x5a0f69,{});switch(this[_0x1099('0x26')](_0x39bbe8,_0x181dc4,_0x351e99,_0x5a0f69),this[_0x1099('0xd8')][_0x1099('0x36')](_0x39bbe8)){case _0x1099('0xac'):this[_0x1099('0xf')](_0x50de60)[_0x1099('0xfb')](_0xbcba88=>{let _0x55ceac=Promise['resolve']();_0xbcba88[_0x1099('0x133')]&&(_0x55ceac=this[_0x1099('0x2e')][_0x1099('0xe2')]({'channelId':this[_0x1099('0x1f')]['config'][_0x1099('0x36')](_0x1099('0xe3')),'threadId':_0x50de60})),_0x55ceac['then'](()=>{this[_0x1099('0x108')](_0xbcba88)['_saved']=!0x0;});}),this[_0x1099('0xd8')][_0x1099('0x51')](_0x39bbe8,_0x1099('0x2f'));break;case _0x1099('0xfe'):this[_0x1099('0x83')](_0x50de60,{'state':_0x1099('0x41')});case _0x1099('0x18'):this[_0x1099('0xd8')][_0x1099('0x51')](_0x39bbe8,_0x1099('0xf5')),this[_0x1099('0xc1')](_0x1099('0xff'),_0x39bbe8);break;case _0x1099('0xf5'):this[_0x1099('0xc1')](_0x1099('0x91'),_0x39bbe8);}return _0x39bbe8[_0x1099('0xb1')](_0x125a6b),_0x39bbe8;}['_refreshSuggestionsChain'](_0x5b4daa){const _0x645fce=Array[_0x1099('0x99')](_0x5b4daa)[_0x1099('0xd4')](_0x30998f=>!_0x30998f[_0x1099('0x20')]),_0x567a74=this[_0x1099('0xf6')]({'skipNotAttached':!0x0})[_0x1099('0xd4')](_0x583c89=>!_0x583c89[_0x1099('0x20')]),_0x24b70d=_0x567a74[_0x1099('0xd4')](_0x5be747=>!_0x5b4daa[_0x1099('0xdb')](_0x5be747)),_0x1bd30e=new Map(_0x567a74['map'](_0x397320=>[_0x397320,this[_0x1099('0xae')]['getSuggestionCallback'](_0x397320[_0x1099('0x1b')],_0x397320['subType'],_0x1099('0xd9'))])),_0x40f465=new Map(_0x567a74[_0x1099('0xd0')](_0x465d92=>[_0x465d92,_0x465d92[_0x1099('0xb7')]()])),_0x29fe30=new Set(),_0x5bebc7=new Set();for(let _0x374bba=0x0;_0x374bba<_0x645fce['length'];_0x374bba++)_0x1b2d80(_0x645fce[_0x374bba],_0x645fce,_0x374bba+0x1);for(let _0x92df3f=0x0;_0x92df3f<_0x645fce[_0x1099('0x110')];_0x92df3f++)_0x1b2d80(_0x645fce[_0x92df3f],_0x24b70d,0x0);for(let _0x100503=0x0;_0x100503<_0x645fce['length'];_0x100503++){const _0x1de6b2=_0x645fce[_0x100503];!_0x5bebc7[_0x1099('0xdb')](_0x1de6b2)&&_0x1de6b2[_0x1099('0x3a')]&&(_0x1de6b2[_0x1099('0x3a')][_0x1099('0xdf')]===_0x1de6b2&&(_0x1de6b2[_0x1099('0x3a')][_0x1099('0xdf')]=null),_0x1de6b2['previous']=null),!_0x29fe30[_0x1099('0xdb')](_0x1de6b2)&&_0x1de6b2[_0x1099('0xdf')]&&(_0x1de6b2[_0x1099('0xdf')]['previous']===_0x1de6b2&&(_0x1de6b2[_0x1099('0xdf')][_0x1099('0x3a')]=null),_0x1de6b2[_0x1099('0xdf')]=null);}function _0x1b2d80(_0x25963d,_0x387b52,_0xfa5c96){for(let _0x53c200=_0xfa5c96;_0x53c200<_0x387b52[_0x1099('0x110')];_0x53c200++){const _0x4400e3=_0x26abd5(_0x25963d,_0x387b52[_0x53c200]);_0x4400e3&&(_0x4400e3[0x0][_0x1099('0xdf')]=_0x4400e3[0x1],_0x4400e3[0x1]['previous']=_0x4400e3[0x0],_0x29fe30[_0x1099('0x98')](_0x4400e3[0x0]),_0x5bebc7['add'](_0x4400e3[0x1]));}}function _0x26abd5(_0x519616,_0x4d7151){if(_0x519616[_0x1099('0x96')]['id']!==_0x4d7151[_0x1099('0x96')]['id'])return null;const _0x4d4e53=_0x1bd30e[_0x1099('0x36')](_0x519616)(_0x519616,_0x4d7151,_0x40f465[_0x1099('0x36')](_0x519616),_0x40f465[_0x1099('0x36')](_0x4d7151));if(!_0x4d4e53)return null;return _0x1bd30e[_0x1099('0x36')](_0x4d7151)(_0x519616,_0x4d7151,_0x40f465[_0x1099('0x36')](_0x519616),_0x40f465[_0x1099('0x36')](_0x4d7151))?_0x4d4e53[0x1]['commentThread']&&_0x4d4e53[0x1]['commentThread'][_0x1099('0x110')]?null:_0x4d4e53:null;}}[_0x1099('0xf9')](_0x4fcb35){const _0x37f6bc=Array[_0x1099('0x99')](_0x4fcb35),_0x383170=this[_0x1099('0xf6')]({'skipNotAttached':!0x0}),_0x443834=_0x383170[_0x1099('0xd4')](_0x5666c9=>!_0x4fcb35['has'](_0x5666c9)),_0x5412e0=new Map(_0x37f6bc[_0x1099('0xd0')](_0x17183b=>[_0x17183b,this['_suggestionFactory'][_0x1099('0x113')](_0x17183b['type'],_0x17183b[_0x1099('0xb0')],_0x1099('0x89'))])),_0x8c3f3d=new Map(_0x383170[_0x1099('0xd0')](_0x1bcee1=>[_0x1bcee1,_0x1bcee1[_0x1099('0x3c')]()]));for(let _0x4c6f0f=0x0;_0x4c6f0f<_0x37f6bc['length'];_0x4c6f0f++){if(_0x4f7bd4(this,_0x37f6bc[_0x4c6f0f],_0x37f6bc,_0x4c6f0f+0x1))return!0x0;}for(let _0x5d3967=0x0;_0x5d3967<_0x37f6bc[_0x1099('0x110')];_0x5d3967++){if(_0x4f7bd4(this,_0x37f6bc[_0x5d3967],_0x443834,0x0))return!0x0;}return!0x1;function _0x4f7bd4(_0x5c39c6,_0xde49f3,_0x57abdf,_0x1e0033){for(let _0x41b53b=_0x1e0033;_0x41b53b<_0x57abdf['length'];_0x41b53b++){const _0x42ab25=_0x57abdf[_0x41b53b];if(_0x42ab25[_0x1099('0x1b')]!==_0xde49f3[_0x1099('0x1b')]||_0x42ab25[_0x1099('0x96')]['id']!==_0xde49f3[_0x1099('0x96')]['id']||_0x42ab25[_0x1099('0xb0')]!==_0xde49f3['subType'])continue;if(!Ut(_0xde49f3,_0x42ab25))continue;const _0x22a8c7=_0x5412e0[_0x1099('0x36')](_0xde49f3),_0x1ef37d=_0x8c3f3d['get'](_0xde49f3),_0xe58c1d=_0x8c3f3d[_0x1099('0x36')](_0x42ab25),_0x2e7546=_0xde49f3[_0x1099('0xb8')]&&_0xde49f3['commentThread'][_0x1099('0x110')],_0x812fd7=_0x42ab25[_0x1099('0xb8')]&&_0x42ab25[_0x1099('0xb8')][_0x1099('0x110')];if(!_0x2e7546&&_0x22a8c7(_0xe58c1d,_0x1ef37d))return _0x5c39c6['_joinSuggestions'](_0x42ab25,_0xde49f3),_0x8c3f3d[_0x1099('0x8c')](_0xde49f3),!0x0;if(!_0x812fd7&&_0x22a8c7(_0x1ef37d,_0xe58c1d))return _0x5c39c6['_joinSuggestions'](_0xde49f3,_0x42ab25),_0x8c3f3d['delete'](_0x42ab25),!0x0;}return!0x1;}}[_0x1099('0x24')](_0x40d6bf,_0x56e4e9){if(_0x40d6bf[_0x1099('0x20')])for(const _0x428fdf of _0x56e4e9[_0x1099('0x3c')]())_0x40d6bf[_0x1099('0x120')](_0x428fdf);else{const _0x30e5e6=_0x56e4e9['getFirstRange']()[_0x1099('0x97')];this[_0x1099('0xbc')](_0x40d6bf,this[_0x1099('0xa3')][_0x1099('0xef')](_0x40d6bf['getFirstRange']()['start'],_0x30e5e6));}_0x56e4e9['removeMarkers']();}}class Bt{constructor(_0x1aaca2){this[_0x1099('0xeb')]=_0x1aaca2,this[_0x1099('0xa3')]=_0x1aaca2[_0x1099('0x6b')],this[_0x1099('0x3d')]=new Map(),this[_0x1099('0x11b')]=new Map(),this['_registerDefaultCallbacks']();}[_0x1099('0xb9')](_0x557c69,_0x12e663,_0x3d62ac,_0x36db51,_0x3a99ce,_0x59c561){return new _0x2c5f77(this['_model'],{'type':_0x557c69,'subType':_0x12e663,'id':_0x3d62ac,'author':_0x36db51,'creator':_0x36db51,'attributes':_0x3a99ce,'onAttributesChange':_0x59c561,'onAccept':(..._0x4085a7)=>this['getSuggestionCallback'](_0x557c69,_0x12e663,_0x1099('0x107'))(..._0x4085a7),'onDiscard':(..._0x338e5d)=>this[_0x1099('0x113')](_0x557c69,_0x12e663,_0x1099('0x33'))(..._0x338e5d)});}['registerCustomCallback'](_0x4e94e5,_0x227193,_0x2da58d,_0x5b1dd4){const _0x4b5528=_0x4e94e5+':'+_0x227193+':'+_0x2da58d;this['_customCallbacks'][_0x1099('0x51')](_0x4b5528,_0x5b1dd4);}[_0x1099('0x113')](_0x5d8d5e,_0x3da223,_0x570130){const _0x1781f4=_0x5d8d5e+':'+_0x3da223+':'+_0x570130;return this['_customCallbacks'][_0x1099('0x36')](_0x1781f4)||this[_0x1099('0x11b')]['get'](_0x5d8d5e+':'+_0x570130);}['_registerDefaultCallbacks'](){const _0x44edb5=()=>!0x1,_0x11f77a=_0x579e09=>{_0x579e09[_0x1099('0x126')]((_0x1309bb,_0x1118ac)=>_0x1309bb[_0x1099('0x31')][_0x1099('0x11c')](_0x1118ac[_0x1099('0x31')])?0x1:-0x1),this[_0x1099('0xa3')][_0x1099('0x49')](_0x1f0c09=>{for(const _0x56d7fa of _0x579e09){let _0xa6be26;_0xa6be26=_0x56d7fa['end'][_0x1099('0xb5')]&&_0x56d7fa[_0x1099('0x97')][_0x1099('0x2c')]==_0x56d7fa[_0x1099('0x31')][_0x1099('0xf2')]?_0x1f0c09[_0x1099('0x82')](_0x56d7fa['start'][_0x1099('0xf2')],'on'):_0x1f0c09[_0x1099('0x82')](_0x56d7fa),this[_0x1099('0xa3')][_0x1099('0x2d')](_0xa6be26,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xd78582=(_0x2be835,_0x5592ed)=>{this[_0x1099('0xa3')][_0x1099('0x49')](_0x3fd921=>{const {commandName:_0x3be800,commandParams:_0xf4a5c4=[]}=_0x5592ed,_0x354a24=_0x2be835[_0x1099('0xd0')](_0x19c470=>(Mt(_0x19c470)&&(_0x19c470=this[_0x1099('0xa3')][_0x1099('0xef')](_0x19c470[_0x1099('0x97')])),_0x19c470))[_0x1099('0xd4')](_0x4ae607=>_0x1099('0x72')!==_0x4ae607['root'][_0x1099('0xb')]);if(_0x354a24[_0x1099('0x110')]<0x1)return;const _0x21d0bc=Array[_0x1099('0x99')](this['_model']['document']['selection'][_0x1099('0x3c')]())[_0x1099('0xd0')](_0x385d61=>_0x582436[_0x1099('0x2a')](_0x385d61));_0x3fd921[_0x1099('0x44')](_0x354a24);for(const _0x309c0b of this['_editor'][_0x1099('0xb2')][_0x1099('0xb2')]())_0x309c0b[_0x1099('0xab')]();_0xf4a5c4[_0x1099('0x106')]({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3be800,..._0xf4a5c4);const _0x2145f0=_0x21d0bc[_0x1099('0xd4')](_0x385fd9=>_0x1099('0x72')!=_0x385fd9[_0x1099('0xa8')][_0x1099('0xb')]);_0x2145f0[_0x1099('0x110')]>0x0&&_0x3fd921['setSelection'](_0x2145f0);for(const _0x2edae3 of _0x21d0bc)_0x2edae3[_0x1099('0x5')]();});},_0x3a4269=(_0x4a5582,_0x21da4f)=>0x1==_0x4a5582['length']&&0x1==_0x21da4f[_0x1099('0x110')]&&_0x4a5582[0x0]['end'][_0x1099('0x9d')](_0x21da4f[0x0]['start']),_0x1efb04=(_0x1c988e,_0x1503b7,_0x300475,_0x210a35)=>xt(_0x1c988e,_0x1503b7,_0x300475,_0x210a35,this['_model'])?[_0x1c988e,_0x1503b7]:xt(_0x1503b7,_0x1c988e,_0x210a35,_0x300475,this[_0x1099('0xa3')])?[_0x1503b7,_0x1c988e]:null;this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0x130'),_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')]('insertion:discard',_0x11f77a),this[_0x1099('0x11b')]['set'](_0x1099('0x5b'),_0x3a4269),this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0xc2'),_0x1efb04),this[_0x1099('0x11b')]['set'](_0x1099('0xa6'),_0x11f77a),this[_0x1099('0x11b')][_0x1099('0x51')]('deletion:discard',_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')]('deletion:join',_0x3a4269),this[_0x1099('0x11b')][_0x1099('0x51')](_0x1099('0xcb'),_0x1efb04),this[_0x1099('0x11b')]['set'](_0x1099('0x1'),_0xd78582),this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0x1c'),_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')](_0x1099('0x16'),_0x3a4269),this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0x21'),_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')](_0x1099('0x5a'),_0xd78582),this['_defaultCallbacks']['set'](_0x1099('0x112'),_0x44edb5),this[_0x1099('0x11b')]['set'](_0x1099('0x4'),_0x3a4269),this['_defaultCallbacks']['set'](_0x1099('0xe4'),_0x44edb5);}}function _t(_0x28de76,_0x1ecb2a,_0xa575e3){for(const _0x4f92db of _0x1ecb2a[_0x1099('0x2c')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f92db[_0x1099('0xa8')]==_0x4f92db)return!0x1;if(!_0xa575e3[_0x1099('0x11f')](_0x4f92db))return!0x1;if(_0x28de76['isObject'](_0x4f92db)||_0x28de76[_0x1099('0xbb')](_0x4f92db))return!0x0;}return!0x1;}function Mt(_0x1f74f8){return _0x1f74f8[_0x1099('0x97')][_0x1099('0x2c')]==_0x1f74f8[_0x1099('0x31')][_0x1099('0xf2')]&&_0x1f74f8[_0x1099('0x97')]['isAtStart'];}function $t(_0x4ff728,_0x3d4843,_0x75a86d,_0x31dbbf){const _0x43b6d3=_0x49fdac=>!_0x49fdac[_0x1099('0x142')]['is'](_0x1099('0x9b'))&&!_0x31dbbf[_0x1099('0x94')](_0x49fdac[_0x1099('0x142')]),_0x1332c0=_0x4ff728[_0x1099('0x31')][_0x1099('0xf1')](_0x43b6d3),_0x33b3f3=_0x4ff728[_0x1099('0x97')]['getLastMatchingPosition'](_0x43b6d3,{'direction':_0x1099('0x140')});return(!_0x4ff728[_0x1099('0x31')]['isEqual'](_0x1332c0)||!_0x4ff728[_0x1099('0x97')]['isEqual'](_0x33b3f3))&&(_0x1332c0[_0x1099('0x11c')](_0x33b3f3)?_0x75a86d['updateMarker'](_0x3d4843,{'range':_0x75a86d[_0x1099('0xef')](_0x1332c0,_0x33b3f3)}):_0x75a86d[_0x1099('0xc3')](_0x3d4843),!0x0);}function Nt(_0x5ca9f9){return _0x51d38b(_0x5ca9f9);}function Rt(_0x4c19bf){const _0x450b13=_0x4c19bf[_0x1099('0x31')][_0x1099('0xf2')];return _0x450b13&&_0x450b13['is'](_0x1099('0xde'));}function jt(_0x2c2d7d,_0x4e0c1c){const _0x47bd55=_0x4e0c1c[_0x1099('0x11e')][_0x1099('0x94')](_0x2c2d7d)||_0x4e0c1c['schema']['isSelectable'](_0x2c2d7d);return _0x4e0c1c[_0x1099('0xef')](_0x4e0c1c[_0x1099('0x4b')](_0x2c2d7d,'before'),_0x47bd55?_0x4e0c1c[_0x1099('0x123')](_0x2c2d7d):_0x4e0c1c[_0x1099('0x4b')](_0x2c2d7d,'end'));}function xt(_0x5a7f13,_0x3591c4,_0x553d0f,_0x28518b,_0x16686f){if(!Ut(_0x5a7f13,_0x3591c4))return!0x1;if(_0x553d0f[_0x1099('0x97')]['isEqual'](_0x28518b[_0x1099('0x31')]))return!0x0;if(_0x5a7f13[_0x1099('0x1b')]!=_0x3591c4[_0x1099('0x1b')])return!0x1;if(!_0x553d0f[_0x1099('0x97')][_0x1099('0xb6')](_0x28518b[_0x1099('0x31')]))return!0x1;const _0x27ac39=_0x16686f[_0x1099('0xef')](_0x553d0f[_0x1099('0x97')],_0x28518b[_0x1099('0x31')])[_0x1099('0x2')]();for(const _0x33043a of _0x27ac39)if([_0x1099('0x4c'),_0x1099('0x128')]['includes'](_0x33043a[_0x1099('0x1b')])&&_0x16686f[_0x1099('0x11e')]['isLimit'](_0x33043a['item']))return!0x1;return!0x0;}function Ut(_0x28f908,_0x1cf4db){return!(!_0x28f908[_0x1099('0x9c')]||!_0x1cf4db[_0x1099('0x9c')])&&_0xa68f16(_0x28f908[_0x1099('0x104')],_0x1cf4db[_0x1099('0x104')]);}function Ot(_0x226d86,_0xb3e7c2){const _0x398677=Et(_0x226d86[_0x1099('0x104')]),_0x293bb8=Et(_0xb3e7c2);if(!_0x226d86['_isDataLoaded'])return!0x1;for(const _0x3bdb0f of Object[_0x1099('0x22')](_0x293bb8))if(!_0xa68f16(_0x398677[_0x3bdb0f],_0x293bb8[_0x3bdb0f]))return!0x1;return!0x0;}function Et(_0x4009c9){const _0x3bed17=Object[_0x1099('0xbe')]({},_0x4009c9);return delete _0x3bed17[_0x1099('0xf7')],delete _0x3bed17[_0x1099('0xaa')],_0x3bed17;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x55d0=['activeMarkers','isInContent','EditorAnnotations','trackChanges.SuggestionThreadView','acceptAllSuggestions','listenTo','_suggestionToController','_createUIButton','lowest','trackChanges.disableComments','change:previous','_disableComments','getFirstRange','from','destroy','commandName','innerView','values','set','_viewToController','_handleControllerBuffer','_descriptionFactory','mainView','discardSelectedSuggestions','refreshSelectedViews','getDescriptions','_updateController','buttonView','suggestionLoaded','addSourceCollector','TrackChangesUI','_initializeController','locale','getAllAdjacentSuggestions','commands','createAnnotation','model','_unbindEditors','suggestionChanged','suggestion-','commentThread','CommentsRepository','comments.maxThreadTotalWeight','size','Annotations','SuggestionThreadView','_handleSuggestionControllerDelayed','editing','getByInnerView','getSuggestion','descriptionParts','arrowView','filter','getMarkerNames','isDirty','acceptButton','registerAnnotation','head','keys','Discard\x20all\x20suggestions','view','_refreshActiveMarkers','_destroyController','type','unbind','plugins','delete','add','TrackChangesEditing','button','actionView','getJoined','suggestionUnloaded','config','CommentView','push','Discard\x20all\x20selected\x20suggestions','addComment','isOn','toMany','length','source','focus','value','activeAnnotations','comments.editorConfig','componentFactory','getMarkers','_annotationViews','comments.maxCommentsWhenCollapsed','pluginName','requires','has','change:activeAnnotations','previous','execute','hasSuggestion','clear','Accept\x20all\x20selected\x20suggestions','discardAllSuggestions','separator','editor','isMultiRange','trackChanges','map','get','some','stopListening','CommentsUI','bind','isEnabled','define'];(function(_0x260de9,_0x55d010){const _0x32a060=function(_0x117da3){while(--_0x117da3){_0x260de9['push'](_0x260de9['shift']());}};_0x32a060(++_0x55d010);}(_0x55d0,0x103));const _0x32a0=function(_0x260de9,_0x55d010){_0x260de9=_0x260de9-0x0;let _0x32a060=_0x55d0[_0x260de9];return _0x32a060;};import{Plugin as _0x584a2b}from'ckeditor5/src/core';import{Collection as _0x36c42c}from'ckeditor5/src/utils';import{Model as _0x3a43ed,SplitButtonView as _0x3f6f03,createDropdown as _0xce0e68,addListToDropdown as _0x450e1f}from'ckeditor5/src/ui';import{Users as _0x4f251e,getDateTimeFormatter as _0x2d481c,getAllMarkersDomElementsSorted as _0x4a20e0}from'ckeditor5-collaboration/src/collaboration-core';import _0x21cb1a from'./trackchangesediting';import _0x2a6362 from'./ui/suggestioncontroller';import _0x301142 from'./ui/view/suggestionthreadview';import{getTranslation as _0x147a99}from'./utils/common-translations';import _0x1d0aea from'../theme/icons/track-changes.svg';export default class d extends _0x584a2b{static get[_0x32a0('0x38')](){return[_0x21cb1a,_0x4f251e,_0x32a0('0x6'),_0x32a0('0x9'),_0x32a0('0x4f')];}static get[_0x32a0('0x37')](){return _0x32a0('0x6b');}constructor(_0x1e4f16){super(_0x1e4f16),this[_0x32a0('0x53')]=new Map(),this[_0x32a0('0x60')]=new Map(),this[_0x32a0('0x35')]=new Map(),this[_0x32a0('0x61')]=new Map();const _0x203467=this[_0x32a0('0x42')][_0x32a0('0x26')];_0x203467[_0x32a0('0x4c')](_0x32a0('0x50'),_0x301142),_0x203467['define'](_0x32a0('0x56'),!0x1),this['_disableComments']=_0x203467[_0x32a0('0x46')](_0x32a0('0x56'));}['_handleSuggestionControllerDelayed'](_0x2c4b2a,_0x214b1f){0x0===this[_0x32a0('0x61')][_0x32a0('0x8')]&&setTimeout(()=>{for(const [_0x30b69f,_0x3f36d7]of this[_0x32a0('0x61')]){const _0x30f7e2=this['_suggestionToController']['has'](_0x30b69f);_0x30f7e2||_0x3f36d7?_0x30f7e2&&_0x3f36d7&&this[_0x32a0('0x1b')](_0x30b69f):this['_initializeController'](_0x30b69f);}this[_0x32a0('0x42')]['plugins']['get'](_0x32a0('0x4f'))[_0x32a0('0x65')](),this[_0x32a0('0x1a')](),this[_0x32a0('0x61')][_0x32a0('0x3e')]();},0xa),this[_0x32a0('0x61')][_0x32a0('0x5f')](_0x2c4b2a,_0x214b1f);}['init'](){const _0x430ed3=this['editor'],_0x1032b4=_0x430ed3[_0x32a0('0x1e')]['get']('TrackChangesEditing'),_0x245287=_0x430ed3[_0x32a0('0x1e')][_0x32a0('0x46')]('Annotations'),_0x3b7ed9=_0x430ed3[_0x32a0('0x1e')][_0x32a0('0x46')](_0x32a0('0x4f')),_0x1dfa1e=_0x430ed3[_0x32a0('0x1e')][_0x32a0('0x46')]('CommentsRepository');_0x430ed3['ui'][_0x32a0('0x33')][_0x32a0('0x20')](_0x32a0('0x44'),_0x41d65e=>this[_0x32a0('0x54')](_0x41d65e)),_0x3b7ed9[_0x32a0('0x6a')](()=>{const _0x2fed47=[];for(const [_0x5620a1,_0x4d792a]of Array[_0x32a0('0x5a')](this[_0x32a0('0x53')])){const _0x27b33a=_0x5620a1[_0x32a0('0x6e')](),_0x5e2c09=[];for(const _0x34dd45 of _0x27b33a){if(!_0x34dd45[_0x32a0('0x4e')])continue;if(_0x34dd45[_0x32a0('0x43')]){_0x5e2c09['push'](..._0x34dd45['getRanges']());continue;}const _0x58b5d8=_0x34dd45[_0x32a0('0x59')]();if(_0x5e2c09[_0x32a0('0x2d')]>0x0){const _0x476912=_0x5e2c09[0x0][_0x32a0('0x24')](_0x58b5d8);if(_0x476912){_0x5e2c09[0x0]=_0x476912;continue;}}_0x5e2c09[_0x32a0('0x28')](_0x58b5d8);}_0x2fed47[_0x32a0('0x28')]([_0x4d792a[_0x32a0('0x19')],_0x5e2c09]);}return _0x2fed47;}),this[_0x32a0('0x52')](_0x1032b4,_0x32a0('0x69'),(_0x574fca,_0x294233)=>{this[_0x32a0('0x52')](_0x294233,_0x32a0('0x57'),(_0x5da5b1,_0x574b4f,_0x298755,_0x368c4c)=>{_0x294233['isInContent']&&(null==_0x298755?(this[_0x32a0('0x67')](_0x368c4c[_0x32a0('0x16')]),this[_0x32a0('0xb')](_0x294233,!0x1)):(this[_0x32a0('0x67')](_0x298755[_0x32a0('0x16')]),this[_0x32a0('0xb')](_0x294233,!0x0)));}),null===_0x294233[_0x32a0('0x3b')]?this[_0x32a0('0xb')](_0x294233,!0x1):this[_0x32a0('0x67')](_0x294233[_0x32a0('0x16')]);}),this['listenTo'](_0x1032b4,_0x32a0('0x25'),(_0x18f0d2,_0x50fc47,_0x2adc49)=>{this[_0x32a0('0x48')](_0x50fc47,_0x32a0('0x57')),this['_handleControllerBuffer'][_0x32a0('0x1f')](_0x50fc47);const _0x2d6f09=_0x2adc49?_0x2adc49['head']:_0x50fc47,_0x3e22d3=this[_0x32a0('0x53')]['get'](_0x2d6f09);null!==_0x2adc49&&this['_updateController'](_0x2d6f09),null===_0x2adc49&&_0x3e22d3&&this[_0x32a0('0x1b')](_0x50fc47);}),this[_0x32a0('0x52')](_0x1032b4,_0x32a0('0x3'),(_0x539a3a,_0x1af26c)=>{this[_0x32a0('0x67')](_0x1af26c);}),this[_0x32a0('0x52')](_0x245287,_0x32a0('0x3a'),()=>{this[_0x32a0('0x1a')]();}),this['listenTo'](_0x1dfa1e,_0x32a0('0x2a'),(_0x270593,{threadId:_0xf69aea,isFromAdapter:_0x4da65b})=>{if(_0x4da65b||!_0x1032b4[_0x32a0('0x3d')](_0xf69aea))return;const _0x46a643=_0x1032b4[_0x32a0('0xe')](_0xf69aea);this[_0x32a0('0x53')][_0x32a0('0x46')](_0x46a643)[_0x32a0('0x19')][_0x32a0('0x2f')]();},{'priority':_0x32a0('0x55')});}[_0x32a0('0x1a')](){const _0x534ac5=this[_0x32a0('0x42')][_0x32a0('0x1e')][_0x32a0('0x46')](_0x32a0('0x9')),_0x15b1f7=this[_0x32a0('0x42')][_0x32a0('0x1e')]['get'](_0x32a0('0x21')),_0x520a9e=Array['from'](_0x534ac5[_0x32a0('0x31')],_0x4ec423=>_0x4ec423[_0x32a0('0x5d')])['filter'](_0x5d9621=>this[_0x32a0('0x60')][_0x32a0('0x39')](_0x5d9621)),_0x3a81d3=[];for(const _0x4a8f00 of _0x520a9e){const _0x1da285=this[_0x32a0('0x60')]['get'](_0x4a8f00)[_0x32a0('0x1')]['getAllAdjacentSuggestions']();_0x3a81d3[_0x32a0('0x28')](..._0x1da285['reduce']((_0x57e909,_0x494779)=>[..._0x57e909,..._0x494779[_0x32a0('0x12')]()],[]));}_0x15b1f7[_0x32a0('0x4d')]=_0x3a81d3;}[_0x32a0('0x54')](_0x33e09d){const _0x49de38=_0xce0e68(_0x33e09d,_0x3f6f03),_0x2c0f5b=this['editor']['commands'][_0x32a0('0x46')](_0x32a0('0x44')),_0x248466=_0x147a99(_0x33e09d,'Track\x20changes');_0x49de38['buttonView'][_0x32a0('0x5f')]({'tooltip':_0x248466,'label':_0x248466,'icon':_0x1d0aea}),_0x49de38['buttonView'][_0x32a0('0x4a')](_0x32a0('0x2b'))['to'](_0x2c0f5b,_0x32a0('0x30')),_0x49de38['buttonView']['on']('execute',()=>{_0x2c0f5b[_0x32a0('0x3c')](),this[_0x32a0('0x42')][_0x32a0('0xc')][_0x32a0('0x19')]['focus']();});const _0x4af871=new _0x36c42c(),_0x14b302=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x248466,'commandName':_0x32a0('0x44')}},{'type':_0x32a0('0x41')},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,'Accept\x20all\x20suggestions'),'commandName':_0x32a0('0x51')}},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,_0x32a0('0x3f')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,_0x32a0('0x18')),'commandName':_0x32a0('0x40')}},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,_0x32a0('0x29')),'commandName':_0x32a0('0x64')}}];for(const _0x48f4b3 of _0x14b302){let _0x28e7b2={'type':_0x32a0('0x41')};if(_0x48f4b3[_0x32a0('0x1')]){const _0x1fc248=new _0x3a43ed(_0x48f4b3['model']),_0x194aca=this['editor'][_0x32a0('0x6f')][_0x32a0('0x46')](_0x1fc248['commandName']);_0x1fc248[_0x32a0('0x4a')](_0x32a0('0x2b'),_0x32a0('0x4b'))['to'](_0x194aca,_0x32a0('0x30'),_0x32a0('0x4b')),_0x28e7b2={'type':_0x48f4b3['type'],'model':_0x1fc248};}_0x4af871['add'](_0x28e7b2);}_0x450e1f(_0x49de38,_0x4af871);const _0xcd0aa5=_0x14b302[_0x32a0('0x11')](_0x339fa8=>null!=_0x339fa8[_0x32a0('0x1')])[_0x32a0('0x45')](_0x363e09=>this[_0x32a0('0x42')][_0x32a0('0x6f')]['get'](_0x363e09[_0x32a0('0x1')][_0x32a0('0x5c')])),_0x3c324a=_0x49de38[_0x32a0('0x68')];return _0x3c324a[_0x32a0('0x23')][_0x32a0('0x1d')](_0x32a0('0x4b')),_0x3c324a[_0x32a0('0x10')]['unbind'](_0x32a0('0x4b')),_0x3c324a[_0x32a0('0x23')][_0x32a0('0x4a')](_0x32a0('0x4b'))['to'](_0x2c0f5b,_0x32a0('0x4b')),_0x3c324a['arrowView'][_0x32a0('0x4a')]('isEnabled')[_0x32a0('0x2c')](_0xcd0aa5,_0x32a0('0x4b'),(..._0x44ba42)=>_0x44ba42[_0x32a0('0x47')](_0xf40b07=>_0xf40b07)),_0x49de38['on'](_0x32a0('0x3c'),_0x133d11=>{this[_0x32a0('0x42')][_0x32a0('0x3c')](_0x133d11[_0x32a0('0x2e')][_0x32a0('0x5c')]),this['editor']['editing']['view']['focus']();}),_0x49de38;}[_0x32a0('0x6c')](_0x15e217){const _0x5d6d15=this[_0x32a0('0x42')],_0x554393=_0x5d6d15[_0x32a0('0x26')],_0x452690=_0x5d6d15[_0x32a0('0x1e')]['get'](_0x32a0('0x9')),_0x3a84e3=_0x5d6d15[_0x32a0('0x1e')]['get'](_0x32a0('0x6')),_0x3b6800=_0x5d6d15[_0x32a0('0x1e')][_0x32a0('0x46')](_0x32a0('0x4f')),_0x55fc62=_0x5d6d15[_0x32a0('0x1e')][_0x32a0('0x46')](_0x4f251e)['me'],_0x1b6979=_0x554393[_0x32a0('0x46')](_0x32a0('0x44'))[_0x32a0('0xa')],{CommentsListView:_0x160ac9,CommentThreadInputView:_0x22c40c}=_0x5d6d15['plugins']['get'](_0x32a0('0x49'));let _0x5a966b,_0xf6a9e5;this[_0x32a0('0x35')][_0x32a0('0x39')](_0x15e217['id'])?(_0xf6a9e5=this['_annotationViews'][_0x32a0('0x46')](_0x15e217['id']),_0x5a966b=_0xf6a9e5[_0x32a0('0x63')]):(_0x5a966b=new _0x1b6979(_0x5d6d15[_0x32a0('0x6d')],_0x15e217,_0x55fc62,{'disableComments':this[_0x32a0('0x58')],'editorConfig':_0x554393['get'](_0x32a0('0x32')),'maxCommentsWhenCollapsed':_0x554393['get'](_0x32a0('0x36')),'maxThreadTotalWeight':_0x554393['get'](_0x32a0('0x7')),'maxCommentCharsWhenCollapsed':_0x554393[_0x32a0('0x46')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2d481c(_0x554393[_0x32a0('0x46')]('locale')),'CommentView':_0x554393[_0x32a0('0x46')]('comments')[_0x32a0('0x27')],'CommentsListView':_0x160ac9,'CommentThreadInputView':_0x22c40c}),_0x5a966b[_0x32a0('0x14')]['on'](_0x32a0('0x3c'),()=>{_0x5d6d15[_0x32a0('0xc')][_0x32a0('0x19')][_0x32a0('0x2f')]();}),_0x5a966b['discardButton']['on'](_0x32a0('0x3c'),()=>{_0x5d6d15[_0x32a0('0xc')]['view']['focus']();}),_0xf6a9e5=_0x452690['createAnnotationView'](this[_0x32a0('0x42')]['locale'],_0x5a966b),_0xf6a9e5[_0x32a0('0x4a')](_0x32a0('0x13'))['to'](_0x5a966b,_0x32a0('0x13')),_0xf6a9e5[_0x32a0('0x4a')]('length')['to'](_0x5a966b),_0xf6a9e5[_0x32a0('0x4a')](_0x32a0('0x1c'))['to'](_0x5a966b,_0x32a0('0x1c'),_0x21f9d3=>_0x32a0('0x4')+_0x21f9d3),this['_annotationViews']['set'](_0x15e217['id'],_0xf6a9e5));const _0x4c3989=_0x3a84e3['createCommentThreadController'](_0x15e217[_0x32a0('0x5')],_0x5a966b),_0x313341=new _0x2a6362(_0x5d6d15,_0x15e217,_0x5a966b,_0x4c3989),_0x3d7c38=_0x15e217[_0x32a0('0x6e')]()['filter'](_0x1caa2f=>_0x1caa2f['isInContent']);_0x5a966b[_0x32a0('0xf')]=_0x5d6d15[_0x32a0('0x1e')][_0x32a0('0x46')]('TrackChangesEditing')[_0x32a0('0x62')][_0x32a0('0x66')](_0x3d7c38),this[_0x32a0('0x53')][_0x32a0('0x5f')](_0x15e217,_0x313341),this[_0x32a0('0x60')][_0x32a0('0x5f')](_0x5a966b,_0x313341);const _0x323512=_0x452690[_0x32a0('0x0')]({'view':_0xf6a9e5,'target':()=>{const _0x595551=[],_0x139f70=_0x15e217['getAllAdjacentSuggestions']()['filter'](_0x35acd5=>_0x35acd5[_0x32a0('0x4e')]);for(const _0x2f1d53 of _0x139f70)_0x595551['push'](..._0x2f1d53[_0x32a0('0x34')]());return _0x4a20e0(_0x5d6d15[_0x32a0('0xc')],_0x595551);},'type':()=>'suggestion-'+_0x313341[_0x32a0('0x19')]['type']});_0x3a84e3['_bindAnnotationToEditors'](_0x5a966b,_0x323512),_0x452690[_0x32a0('0x20')](_0x323512),_0x3b6800[_0x32a0('0x15')](_0x323512);}['_destroyController'](_0x1189a8){const _0x202ee6=this[_0x32a0('0x42')]['plugins']['get']('CommentsRepository'),_0x4a21d8=this['editor'][_0x32a0('0x1e')]['get']('Annotations'),_0xcfb624=this[_0x32a0('0x53')][_0x32a0('0x46')](_0x1189a8),_0x10b2b5=_0xcfb624[_0x32a0('0x19')],_0x15ecd8=_0x4a21d8[_0x32a0('0xd')](_0x10b2b5);_0x202ee6[_0x32a0('0x2')](_0x10b2b5),_0x15ecd8&&_0x4a21d8['remove'](_0x15ecd8),this[_0x32a0('0x53')][_0x32a0('0x1f')](_0x1189a8),this['_viewToController'][_0x32a0('0x1f')](_0x10b2b5),_0xcfb624[_0x32a0('0x5b')]();}[_0x32a0('0x67')](_0x344d26){if(!_0x344d26[_0x32a0('0x4e')]||!this['_suggestionToController']['has'](_0x344d26))return;const _0x415e0a=this[_0x32a0('0x42')]['plugins'][_0x32a0('0x46')](_0x32a0('0x21')),_0x6b3707=this[_0x32a0('0x53')]['get'](_0x344d26),_0x41c284=_0x344d26[_0x32a0('0x6e')]();_0x6b3707[_0x32a0('0x19')]['descriptionParts']=_0x415e0a['_descriptionFactory'][_0x32a0('0x66')](_0x41c284);}[_0x32a0('0x5b')](){for(const _0x2bc1bb of this[_0x32a0('0x53')][_0x32a0('0x17')]())this['_destroyController'](_0x2bc1bb);for(const _0x5bbac6 of this['_annotationViews'][_0x32a0('0x5e')]())_0x5bbac6[_0x32a0('0x63')][_0x32a0('0x5b')]();super[_0x32a0('0x5b')]();}}
|
|
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')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x267b=['execute','commentThreadController','stopListening','listenTo','destroy','_editor','_discardCommand','remove','isEnabled','acceptSuggestion','canDiscard','_removePendingAction','view','canAccept','PendingActions','canEditAt','unbind','commands','getRanges','_acceptCommand','add','change:isDirty','_setPendingAction','model','locale','plugins','discardSuggestion','get','_pendingAction','PENDING_ACTION_SUGGESTION'];(function(_0x133e4e,_0x267b4f){const _0x3e63c4=function(_0x2eb41b){while(--_0x2eb41b){_0x133e4e['push'](_0x133e4e['shift']());}};_0x3e63c4(++_0x267b4f);}(_0x267b,0xb4));const _0x3e63=function(_0x133e4e,_0x267b4f){_0x133e4e=_0x133e4e-0x0;let _0x3e63c4=_0x267b[_0x133e4e];return _0x3e63c4;};import{ObservableMixin as _0x4df3cc}from'ckeditor5/src/utils';import{getTranslation as _0x1eabfe}from'../utils/common-translations';export default class Gt extends _0x4df3cc(){constructor(_0x49dea0,_0x1941b6,_0x3380e7,_0xbbde7e){super(),this[_0x3e63('0x17')]=_0x1941b6,this[_0x3e63('0xc')]=_0x3380e7,this[_0x3e63('0x1')]=_0xbbde7e,this[_0x3e63('0x5')]=_0x49dea0,this[_0x3e63('0x13')]=_0x49dea0[_0x3e63('0x11')]['get'](_0x3e63('0x9')),this[_0x3e63('0x6')]=_0x49dea0[_0x3e63('0x11')]['get']('discardSuggestion'),this[_0x3e63('0xc')]['bind'](_0x3e63('0x8'))['to'](this['_acceptCommand'],this[_0x3e63('0x6')],(_0x2ac310,_0x1bf5a3)=>_0x2ac310||_0x1bf5a3),this[_0x3e63('0xc')]['bind'](_0x3e63('0xd'))['to'](this[_0x3e63('0x13')],'isEnabled',_0x46eb36=>_0x46eb36&&this['_editor'][_0x3e63('0x17')][_0x3e63('0xf')](_0x1941b6[_0x3e63('0x12')]())),this[_0x3e63('0xc')]['bind'](_0x3e63('0xa'))['to'](this['_discardCommand'],'isEnabled',_0x757f1d=>_0x757f1d&&this[_0x3e63('0x5')][_0x3e63('0x17')][_0x3e63('0xf')](_0x1941b6['getRanges']())),this[_0x3e63('0x1c')]=null,_0x3380e7['isDirty']&&this['_setPendingAction'](),this[_0x3e63('0x3')](_0x3380e7,_0x3e63('0x9'),()=>this['acceptSuggestion']()),this['listenTo'](_0x3380e7,_0x3e63('0x1a'),()=>this[_0x3e63('0x1a')]()),this['listenTo'](_0x3380e7,_0x3e63('0x15'),()=>{_0x3380e7['isDirty']?this[_0x3e63('0x16')]():this[_0x3e63('0xb')]();});}['acceptSuggestion'](){this[_0x3e63('0x13')][_0x3e63('0x0')](this['model']['id']);}[_0x3e63('0x1a')](){this[_0x3e63('0x6')][_0x3e63('0x0')](this[_0x3e63('0x17')]['id']);}[_0x3e63('0x4')](){this[_0x3e63('0xc')][_0x3e63('0x10')](_0x3e63('0x8')),this['view'][_0x3e63('0x10')](_0x3e63('0xd')),this[_0x3e63('0xc')][_0x3e63('0x10')](_0x3e63('0xa')),this[_0x3e63('0x2')](),this[_0x3e63('0x1')][_0x3e63('0x4')](),this[_0x3e63('0x1c')]&&this[_0x3e63('0xb')]();}[_0x3e63('0x16')](){const _0x3794ae=_0x1eabfe(this[_0x3e63('0x5')][_0x3e63('0x18')],_0x3e63('0x1d'));this[_0x3e63('0x1c')]=this[_0x3e63('0x5')][_0x3e63('0x19')][_0x3e63('0x1b')](_0x3e63('0xe'))[_0x3e63('0x14')](_0x3794ae);}['_removePendingAction'](){null!==this[_0x3e63('0x1c')]&&this[_0x3e63('0x5')][_0x3e63('0x19')]['get'](_0x3e63('0xe'))[_0x3e63('0x7')](this[_0x3e63('0x1c')]),this[_0x3e63('0x1c')]=null;}}
|