@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230711.0 → 0.0.0-nightly-20230712.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/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 _0x4958=['dataDowncast','getSuggestion','buildSuggestion','adapter','showSuggestionHighlights','removeMarker','editor','markerReady','selection','range','nodeBefore','removed','removeMarkers','attributes','accept','markers','suggestionUnloaded','catch','track-changes-suggestion-data-mismatch','elementToElement','insertion:discard','isBefore','length','formatBlock:join','acceptAllSuggestions','getItems','rethrowUnexpectedError','elementEnd','enableReadOnlyMode','trackChangesCommand','after','change:activeMarkers','head','change:_saved','split','_addThreadToSuggestion','locale','_setSuggestionRange','formatInline:','fetchCommentThread','addSuggestion','writer','trackChanges.trackFormatChanges','addMarker','discard','_updateSuggestionData','for','getShiftedBy','trackChanges.mergeNestedSuggestions','_getSuggestionData','chain','PENDING_ACTION_SUGGESTION','ck-suggestion-marker-','isEqual','deletion:chain','getAncestors','_addSuggestionMarker','external:','addMarkerName','containerElement','markBlockFormat','elementStart','originalSuggestionId','suggestion-type','marker-count','discardAllSuggestions','detach','getWalker','markInsertion','acceptSuggestion','rootName','isRemovable','every','ready','suggestion:','subType','_isForcedDefaultExecutionBlock','substr','type','resolve','rejected','isObject','document','size','clone','move','track-changes-user-not-found','markerName','getDifference','deleteContent','track-changes-adapter-missing-getsuggestion','formatGroupId','dataToMarker','getSuggestions','containsItem','addMarker:suggestion:formatBlock','differ','_editor','createdAt','listenTo','_checkSuggestionCorrectness','_suggestions','update:suggestion','pluginName','requires','stop','addUser','getFirstMarker','unbind','item','getLastMatchingPosition','targetPosition','formatBlock','data','formatBlock:chain','_suggestionFactory','containsRangeInObject','markMultiRangeBlockFormat','markDeletion','deletion','getCommentThread','insertContent','sort','widget','low','_adapter','_trackFormatChanges','discardSelectedSuggestions','isLocal','getSuggestionCallback','isCollapsed','insertion:','markInlineFormat','_descriptionFactory','insertion','formatInline:discard','getRange','newRange','addClass','open','default','get','_splitMarkerName','registerPostFixer','_rangeIsInLocalUserInsertion','schema','nodeAfter','define','upcast','stopListening','insertion:accept','dataReady','authoredAt','clear','name','Users','applyOperation','authorName','getChangedMarkers','createSelection','_removeSuggestion','_suggestionState','execute','markerNameToElements','always','markerToHighlight','plugins','_breakSuggestionMarker','author','change:data','model','insert','_joinWithAdjacentSuggestions','splitPosition','addSuggestionData','addMarker:suggestion','isExternal','value','getFirstRange','removeComment','forceDefaultExecution','formatBlock:accept','createRange','@external','PendingActions','multipleBlocks','parent','getAllAdjacentSuggestions','ck-suggestion-marker-formatBlock','getUser','formatBlock:discard','fire','_enabledCommands','from','_handleNewSuggestionMarker','formatBlock:','position','setSelection','_saved','_setSuggestionData','discardSuggestion','push','deletion:','markMultiRangeInsertion','hasComments','consumable','multi','element','isInContent','skipNestingCheck','hasCommentThread','map','group','$graveyard','remove','getCustomProperty','_joinSuggestions','$textProxy','batch','deletion:join','updateSuggestion','end','_getAuthorFromId','lowest','addComment','filter','isUndo','commands','containsPosition','values','bindElementToMarker','getAttribute','removeAttribute','_commentsRepository','editingDowncast','isAfter','createPositionAt','isOwn','TrackChangesEditing','addHighlight','init','_createSuggestion','next','consume','commandName','oldRange','addRange','isIntersectingWithRange','enableCommand','backward','deletion:accept','reconvertMarker','high','_mergeNestedSuggestions','isAtEnd','activeMarkers','delete','isBlock','isMultiRange','data-suggestion','createRangeIn','_refreshSuggestionsChain','formatInline:join','ck-suggestion-marker--active','options','fromRange','CommentsRepository','formatInline:chain','collaboration.channelId','has','start','mapper','conversion','change','_model','commentThread','never','set','error-saving-suggestion-data-suggestion-discarded','some','containsRange','_getExternalAuthor','updateMarker','isNextTo','removeClass','markMultiRangeDeletion','_customCallbacks','isAtStart','getNearestSelectionRange','getIntersection','getRanges','isInsideObject','getMultiRangeId','return','join','_findSuggestions','formatInline','insertion:chain','add','isLimit','suggestionChanged','splice','_defaultCallbacks','creator','then','notReady','previous','setAttribute','root','suggestion','ck-suggestion-marker','config','markerToData'];(function(_0x5523b9,_0x495883){const _0x7504f4=function(_0x3d6fc8){while(--_0x3d6fc8){_0x5523b9['push'](_0x5523b9['shift']());}};_0x7504f4(++_0x495883);}(_0x4958,0x1c9));const _0x7504=function(_0x5523b9,_0x495883){_0x5523b9=_0x5523b9-0x0;let _0x7504f4=_0x4958[_0x5523b9];return _0x7504f4;};import{Plugin as _0x30b95d,PendingActions as _0x4004c4}from'ckeditor5/src/core';import{LiveRange as _0x3d2980}from'ckeditor5/src/engine';import{CKEditorError as _0x1d1de9,uid as _0x388e22,priorities as _0x1cae88,logWarning as _0x57acab}from'ckeditor5/src/utils';import{toWidget as _0x4dbb38}from'ckeditor5/src/widget';import{Users as _0xd3db26,hashObject as _0x14fa2d}from'ckeditor5-collaboration/src/collaboration-core';import _0x15bc6b from'./commands/trackchangescommand';import _0x195104 from'./commands/acceptsuggestioncommand';import _0xc8292c from'./commands/discardsuggestioncommand';import _0x4dceee from'./commands/executeonallsuggestionscommand';import _0x495356 from'./commands/executeonselectedsuggestionscommand';import _0x371c78 from'./suggestion';import _0x22902e from'./suggestiondescriptionfactory';import _0x484446 from'./integrations/alignment';import _0x2e665b from'./integrations/basicstyles';import _0x528587 from'./integrations/blockquote';import _0x97a946 from'./integrations/ckbox';import _0x3c07c9 from'./integrations/codeblock';import _0x5631fa from'./integrations/comments';import _0x541d85 from'./integrations/deletecommand';import _0x28518d from'./integrations/documentlist';import _0x4cf19c from'./integrations/entercommand';import _0x421c26 from'./integrations/findandreplace';import _0x3afda2 from'./integrations/font';import _0x216952 from'./integrations/formatpainter';import _0x3c9e7c from'./integrations/heading';import _0x130130 from'./integrations/highlight';import _0x450118 from'./integrations/horizontalline';import _0x3f1675 from'./integrations/htmlembed';import _0xa35434 from'./integrations/image';import _0x3ae5b6 from'./integrations/imagereplace';import _0x22e3bf from'./integrations/importword';import _0x59772b from'./integrations/indent';import _0x4ab31c from'./integrations/inputcommand';import _0x3a8bcd from'./integrations/link';import _0x47dfd7 from'./integrations/list';import _0x308acd from'./integrations/listproperties';import _0x23db37 from'./integrations/mediaembed';import _0x4fd7f0 from'./integrations/mention';import _0x4e5854 from'./integrations/pagebreak';import _0x364769 from'./integrations/paragraph';import _0x4897e1 from'./integrations/removeformat';import _0x445159 from'./integrations/restrictededitingmode';import _0x1bea43 from'./integrations/shiftentercommand';import _0xf132ca from'./integrations/standardeditingmode';import _0x2852e2 from'./integrations/style';import _0x3a2ed8 from'./integrations/table';import _0xa87096 from'./integrations/tablemergesplit';import _0x4542c8 from'./integrations/tableheadings';import _0x58832d from'./integrations/tableclipboard';import _0xd26503 from'./integrations/tablecolumnresize';import _0x26ac69 from'./integrations/template';import _0x3f9a9a from'./integrations/tableofcontents';import _0x4881fa from'./integrations/title';import _0x15b979 from'./integrations/undo';import{getTranslation as _0x1607e6}from'./utils/common-translations';import _0x231ca1 from'./integrations/tablecaption';import _0x49eb47 from'./integrations/documentlistproperties';import _0xa97607 from'./integrations/tableproperties';export default class p extends _0x30b95d{static get[_0x7504('0x111')](){return[_0x7504('0x7a'),_0xd3db26,_0x4004c4,_0x484446,_0x2e665b,_0x528587,_0x97a946,_0x3c07c9,_0x5631fa,_0x541d85,_0x28518d,_0x49eb47,_0x4cf19c,_0x421c26,_0x3afda2,_0x216952,_0x3c9e7c,_0x130130,_0x450118,_0x3f1675,_0xa35434,_0x3ae5b6,_0x22e3bf,_0x59772b,_0x4ab31c,_0x3a8bcd,_0x47dfd7,_0x308acd,_0x23db37,_0x4fd7f0,_0x4e5854,_0x364769,_0x4897e1,_0x445159,_0x1bea43,_0xf132ca,_0x2852e2,_0x3a2ed8,_0xa87096,_0x4542c8,_0x231ca1,_0x58832d,_0xd26503,_0x3f9a9a,_0xa97607,_0x26ac69,_0x4881fa,_0x15b979];}static get[_0x7504('0x110')](){return _0x7504('0x5e');}constructor(_0x176097){function _0x413cc0(_0x3cc423){return _0x3cc423[_0x7504('0x43')](_0x1186c8=>String['fromCharCode'](_0x1186c8))[_0x7504('0x96')]('');}super(_0x176097),this[_0x7504('0x85')](_0x7504('0x6f'),[]),this['on'](_0x7504('0xc8'),(_0x18ed36,_0x567fbd,_0x5920dc,_0x362b7f)=>{this[_0x7504('0x82')][_0x7504('0x81')](()=>{for(const _0x56492b of[..._0x362b7f,..._0x5920dc])this[_0x7504('0x82')][_0x7504('0xb8')]['has'](_0x56492b)&&_0x176097['editing'][_0x7504('0x6b')](_0x56492b);});}),this[_0x7504('0x12e')]=new _0x22902e(this[_0x7504('0xaf')]['model'][_0x7504('0x1')],this[_0x7504('0xaf')][_0x7504('0xcd')]),this[_0x7504('0x126')]=null,this[_0x7504('0x11c')]=new Dt(this['editor']),this[_0x7504('0x10e')]=new Map(),this['_commentsRepository']=_0x176097[_0x7504('0x16')][_0x7504('0x136')](_0x7504('0x7a')),this[_0x7504('0x30')]=new Set(),this['_model']=this[_0x7504('0xaf')][_0x7504('0x1a')],this[_0x7504('0x11')]=new WeakMap(),this[_0x7504('0xf5')]=!0x1,_0x176097[_0x7504('0xa7')][_0x7504('0x3')](_0x7504('0xd3'),_0x7504('0x135')),this[_0x7504('0x127')]=_0x176097[_0x7504('0xa7')][_0x7504('0x136')]('trackChanges.trackFormatChanges'),_0x176097[_0x7504('0xa7')][_0x7504('0x3')](_0x7504('0xd9'),!0x0),this[_0x7504('0x6d')]=_0x176097[_0x7504('0xa7')][_0x7504('0x136')](_0x7504('0xd9')),this[_0x7504('0xc6')]=new _0x15bc6b(_0x176097,this['_enabledCommands']),this[_0x413cc0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x413cc0([0x34,0x30,0x34,0x36,0x31,0x34,0x32,0x32]);}[_0x7504('0x60')](){const _0x3ce101=this['editor'];_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')]('editingDowncast')[_0x7504('0x15')]({'model':_0x7504('0xa5'),'view':_0x5b0b59=>{const {id:_0x3813b2,type:_0x204302}=this[_0x7504('0x137')](_0x5b0b59['markerName']),_0x2cf03a=[_0x7504('0xa6'),_0x7504('0xdd')+_0x204302];let _0x5357fc=0xbb8;return this[_0x7504('0x6f')]['includes'](_0x5b0b59[_0x7504('0x100')])&&(_0x2cf03a[_0x7504('0x39')]('ck-suggestion-marker--active'),_0x5357fc=0xbc2),_0x7504('0x120')==_0x204302&&(_0x5357fc+=0x5),{'classes':_0x2cf03a,'attributes':{'data-suggestion':_0x3813b2},'priority':_0x5357fc};}}),_0x3ce101['conversion'][_0x7504('0xd7')](_0x7504('0xa9'))[_0x7504('0x9a')](_0x345a3f=>{_0x345a3f['on'](_0x7504('0x1f'),(_0x2ad237,_0x4bd591,_0x2f22ab)=>{if(!_0x2f22ab[_0x7504('0x78')][_0x7504('0xad')])return;const _0x97bcd9=_0x4bd591[_0x7504('0x116')];if(!_0x97bcd9)return;const _0x100063=_0x2f22ab[_0x7504('0x7f')]['toViewElement'](_0x97bcd9);_0x3ce101['model']['schema']['isObject'](_0x97bcd9)&&_0x100063&&!_0x100063[_0x7504('0x47')](_0x7504('0x124'))&&_0x100063['is'](_0x7504('0xe4'))&&_0x4dbb38(_0x100063,_0x2f22ab[_0x7504('0xd2')]);},{'priority':_0x7504('0x6c')});}),_0x3ce101[_0x7504('0x80')]['for']('dataDowncast')['markerToHighlight']({'model':_0x7504('0xa5'),'view':(_0x149a3e,_0x322827)=>{if(!_0x322827[_0x7504('0x78')][_0x7504('0xad')])return null;const {type:_0x496faf}=this['_splitMarkerName'](_0x149a3e[_0x7504('0x100')]);return{'classes':[_0x7504('0xa6'),_0x7504('0xdd')+_0x496faf],'priority':0xbb8};}});const _0x40031b=({showActiveMarkers:_0x2d0607=!0x0}={})=>(_0x583781,_0x3b64e3,_0x265b02)=>{if(!_0x3b64e3['item'])return;if(_0x3b64e3[_0x7504('0x116')]['is'](_0x7504('0xb1')))return void _0x265b02['consumable'][_0x7504('0x63')](_0x3b64e3['item'],_0x583781['name']);const _0x1489aa=_0x265b02[_0x7504('0x7f')]['toViewElement'](_0x3b64e3[_0x7504('0x116')]);if(!(_0x3b64e3[_0x7504('0x116')]['is'](_0x7504('0x3f'))&&_0x3ce101[_0x7504('0x1a')][_0x7504('0x1')]['isBlock'](_0x3b64e3['item'])&&!_0x1489aa['getCustomProperty']('addHighlight')))return;const {id:_0x1f2e4b}=this['_splitMarkerName'](_0x3b64e3[_0x7504('0x100')]);_0x265b02[_0x7504('0xd2')][_0x7504('0x133')]([_0x7504('0xa6'),_0x7504('0x2c')],_0x1489aa),_0x265b02['writer'][_0x7504('0xa3')](_0x7504('0x73'),_0x1f2e4b,_0x1489aa),_0x265b02[_0x7504('0x7f')][_0x7504('0x56')](_0x1489aa,_0x3b64e3[_0x7504('0x100')]),_0x2d0607&&(this['activeMarkers']['includes'](_0x3b64e3[_0x7504('0x100')])?_0x265b02[_0x7504('0xd2')][_0x7504('0x133')](_0x7504('0x77'),_0x1489aa):_0x265b02[_0x7504('0xd2')][_0x7504('0x8c')]('ck-suggestion-marker--active',_0x1489aa));for(const _0x4520a0 of _0x3ce101[_0x7504('0x1a')][_0x7504('0x74')](_0x3b64e3[_0x7504('0x116')])[_0x7504('0xc2')]())_0x265b02[_0x7504('0x3d')][_0x7504('0x63')](_0x4520a0,_0x583781['name']);_0x265b02['consumable']['consume'](_0x3b64e3[_0x7504('0x116')],_0x583781['name']);};_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')](_0x7504('0xa9'))[_0x7504('0x9a')](_0x4d2fcb=>{_0x4d2fcb['on']('addMarker:suggestion:formatBlock',(_0x31bfca,_0x15c782,_0x16dc21)=>{_0x16dc21[_0x7504('0x78')][_0x7504('0xad')]&&_0x40031b({'showActiveMarkers':!0x1})(_0x31bfca,_0x15c782,_0x16dc21);},{'priority':'highest'});}),_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')]('dataDowncast')[_0x7504('0xa8')]({'model':_0x7504('0xa5'),'view':(_0x38fa5b,_0x4a5500)=>_0x4a5500[_0x7504('0x78')][_0x7504('0xad')]?null:{'group':_0x7504('0xa5'),'name':_0x38fa5b[_0x7504('0xf6')](0xb)}}),_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')](_0x7504('0x4'))[_0x7504('0xbc')]({'view':{'name':_0x7504('0xa5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x410877,{writer:_0x2608a4})=>{let _0x7a68d1=_0x7504('0xf3')+_0x410877['getAttribute'](_0x7504('0xe8'))+':'+_0x410877[_0x7504('0x57')]('id');return _0x410877[_0x7504('0x57')](_0x7504('0xe9'))&&(_0x7a68d1+=':'+_0x410877[_0x7504('0x57')](_0x7504('0xe9'))),_0x2608a4['createElement']('$marker',{'data-name':_0x7a68d1});}}),_0x3ce101['conversion']['for'](_0x7504('0x4'))[_0x7504('0x105')]({'view':'suggestion'}),_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')](_0x7504('0x5a'))[_0x7504('0x9a')](_0x19e86f=>{_0x19e86f['on'](_0x7504('0x108'),_0x40031b(),{'priority':'high'});}),_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')]('editingDowncast')['add'](_0x346447=>{_0x346447['on']('removeMarker:suggestion:formatBlock',(_0x3e9376,_0x502ad2,_0x1ecf7c)=>{const _0x5831c0=_0x1ecf7c[_0x7504('0x7f')][_0x7504('0x13')](_0x502ad2[_0x7504('0x100')]);if(_0x5831c0)for(const _0x5debb0 of _0x5831c0)_0x5debb0[_0x7504('0x47')](_0x7504('0x5f'))||(_0x1ecf7c[_0x7504('0xd2')][_0x7504('0x8c')]([_0x7504('0xa6'),_0x7504('0x2c'),_0x7504('0x77')],_0x5debb0),_0x1ecf7c['writer'][_0x7504('0x58')](_0x7504('0x73'),_0x5debb0),_0x1ecf7c[_0x7504('0x7f')]['unbindElementFromMarkerName'](_0x5debb0,_0x502ad2['markerName']));},{'priority':_0x7504('0x6c')});}),_0x3ce101[_0x7504('0x1a')][_0x7504('0xfb')]['registerPostFixer'](_0x563cb8=>{let _0x4a146f=!0x1;const _0x39e75f=Array[_0x7504('0x31')](_0x3ce101[_0x7504('0x1a')]['document'][_0x7504('0x109')][_0x7504('0xe')]()),_0x3b69a2=new Set();for(const {name:_0x30848f,data:_0x2075b2}of _0x39e75f){const {group:_0x29c5e0,type:_0x33ca9f,id:_0x9e0cbe}=this['_splitMarkerName'](_0x30848f);if(_0x7504('0xa5')!==_0x29c5e0)continue;const _0x563524=this['_suggestions'][_0x7504('0x136')](_0x9e0cbe);if(null!=_0x2075b2[_0x7504('0x132')]){'formatInline'==_0x33ca9f&&(_0x4a146f=_0x4a146f||Mt(_0x2075b2[_0x7504('0x132')],_0x30848f,_0x563cb8,_0x3ce101['model'][_0x7504('0x1')]));if(_0x2075b2['newRange'][_0x7504('0x12b')]||_0x7504('0x45')==_0x2075b2[_0x7504('0x132')][_0x7504('0xa4')][_0x7504('0xef')]||'formatBlock'==_0x33ca9f&&!Nt(_0x2075b2[_0x7504('0x132')])||_0x7504('0x120')==_0x33ca9f&&!(!_t(_0x15724e=_0x2075b2[_0x7504('0x132')])&&!function(_0x5395df){return _0x5395df[_0x7504('0x7e')][_0x7504('0x2a')]==_0x5395df[_0x7504('0x4d')][_0x7504('0xb3')]&&_0x5395df[_0x7504('0x7e')][_0x7504('0x6e')];}(_0x15724e)))_0x563cb8[_0x7504('0xae')](_0x30848f),_0x4a146f=!0x0;else{if(!_0x563524||!_0x563524[_0x7504('0x40')])continue;_0x3b69a2['add'](_0x563524);}}}var _0x15724e;return _0x3b69a2[_0x7504('0xfc')]>0x0&&(_0x4a146f=!!this['_joinWithAdjacentSuggestions'](_0x3b69a2)||_0x4a146f),_0x4a146f;}),_0x3ce101[_0x7504('0x1a')][_0x7504('0xfb')][_0x7504('0x138')](_0xd3398=>{let _0x45a970=!0x1;for(const _0x45f72f of _0x3ce101[_0x7504('0x1a')]['document']['differ']['getChanges']()){if(_0x7504('0x1b')!=_0x45f72f[_0x7504('0xf7')])continue;const _0x5bcd4a=_0x45f72f['position'][_0x7504('0xd8')](_0x45f72f[_0x7504('0xbf')]);if(_0x5bcd4a[_0x7504('0x6e')])for(const _0x128830 of this[_0x7504('0x10e')]['values']()){if(_0x128830[_0x7504('0x72')]||!_0x128830[_0x7504('0x40')])continue;if(_0x7504('0x119')!=_0x128830[_0x7504('0xf7')])continue;const _0x1903f0=_0x128830[_0x7504('0x22')]();if(_0x1903f0[_0x7504('0x7e')][_0x7504('0x2a')]!=_0x1903f0['end']['parent']&&_0x1903f0[_0x7504('0x4d')][_0x7504('0xde')](_0x45f72f['position'])){const _0x565f05=_0x3ce101['model'][_0x7504('0x26')](_0x1903f0[_0x7504('0x7e')],_0x5bcd4a);_0xd3398['updateMarker'](_0x128830['getFirstMarker'](),{'range':_0x565f05}),_0x45a970=!0x0;}}}return _0x45a970;}),_0x3ce101[_0x7504('0x1a')][_0x7504('0xb8')]['on'](_0x7504('0x10f'),(_0x416770,_0x40f1e1,_0xa606c0)=>{if(null==_0xa606c0){const {id:_0x40c6e9}=this[_0x7504('0x137')](_0x40f1e1[_0x7504('0xa')]),_0x19269b=this[_0x7504('0x10e')][_0x7504('0x136')](_0x40c6e9);_0x19269b&&_0x19269b['addMarkerName'](_0x40f1e1[_0x7504('0xa')]);}}),_0x3ce101[_0x7504('0x1a')]['document']['on'](_0x7504('0x19'),()=>{const _0x2f2c1d=Array[_0x7504('0x31')](_0x3ce101[_0x7504('0x1a')][_0x7504('0xfb')][_0x7504('0x109')][_0x7504('0xe')]())['filter'](_0x361bca=>'suggestion'===this['_splitMarkerName'](_0x361bca[_0x7504('0xa')])[_0x7504('0x44')]);if(0x0===_0x2f2c1d['length'])return;_0x2f2c1d[_0x7504('0x123')]((_0x3f3176,_0x21da3d)=>{const _0x1b153f=_0x3f3176[_0x7504('0x11a')]['oldRange'],_0x292066=_0x21da3d[_0x7504('0x11a')]['oldRange'];return null===_0x1b153f&&null===_0x292066?0x0:null===_0x1b153f&&null!==_0x292066?-0x1:null!==_0x1b153f&&null===_0x292066?0x1:_0x1b153f[_0x7504('0x7e')][_0x7504('0xbe')](_0x292066[_0x7504('0x7e')])?-0x1:0x1;});const _0x461ad9=new Set(),_0x449e63=new Set();for(const {name:_0x1a3366,data:_0x176345}of _0x2f2c1d){const {id:_0x4378de}=this[_0x7504('0x137')](_0x1a3366);if(null===_0x176345[_0x7504('0x65')]){const _0x3fc132=this[_0x7504('0x32')](_0x1a3366);_0x449e63[_0x7504('0x9a')](_0x3fc132);}else{const _0x328baa=this['_suggestions'][_0x7504('0x136')](_0x4378de);null!==_0x176345[_0x7504('0x132')]||_0x328baa[_0x7504('0x40')]?(_0x461ad9[_0x7504('0x9a')](_0x328baa[_0x7504('0xc9')]),_0x449e63['add'](_0x328baa)):this[_0x7504('0x10')](_0x328baa);}}_0x449e63['size']>0x0&&this[_0x7504('0x75')](_0x449e63);for(const _0x339e3b of _0x461ad9)this['fire'](_0x7504('0x9c'),_0x339e3b);}),_0x3ce101[_0x7504('0x1a')]['on'](_0x7504('0xc'),(_0x41178a,_0x53b088)=>{const _0x1c66b3=_0x53b088[0x0];if(!this[_0x7504('0x10e')][_0x7504('0xfc')])return;if(!_0x1c66b3['isDocumentOperation'])return;if(_0x1c66b3[_0x7504('0x4a')][_0x7504('0x52')]||!_0x1c66b3[_0x7504('0x4a')][_0x7504('0x129')])return;let _0x2c6344,_0x19fe3e;switch(_0x1c66b3[_0x7504('0xf7')]){case _0x7504('0x1b'):_0x2c6344=_0x3ce101['model'][_0x7504('0x5c')](_0x1c66b3[_0x7504('0x34')]),_0x19fe3e=_0x2c6344[_0x7504('0xd8')](_0x1c66b3['howMany']);break;case _0x7504('0xcb'):_0x2c6344=_0x3ce101[_0x7504('0x1a')][_0x7504('0x5c')](_0x1c66b3[_0x7504('0x1d')]),_0x19fe3e=_0x3ce101[_0x7504('0x1a')][_0x7504('0x5c')](_0x1c66b3['moveTargetPosition']);break;case _0x7504('0xfe'):_0x2c6344=_0x3ce101[_0x7504('0x1a')]['createPositionAt'](_0x1c66b3[_0x7504('0x118')]),_0x19fe3e=_0x2c6344[_0x7504('0xd8')](_0x1c66b3['howMany']);break;default:return;}const _0x550e33=_0x3ce101[_0x7504('0x1a')][_0x7504('0x26')](_0x2c6344,_0x19fe3e);_0x3ce101[_0x7504('0x1a')]['change'](()=>{for(const {suggestion:_0x3fda46,meta:_0x2f9ed9}of this[_0x7504('0x97')](_0x550e33)){if(_0x3fda46['isMultiRange'])continue;if(_0x7504('0x98')==_0x3fda46[_0x7504('0xf7')])continue;const _0x44652a=_0x3fda46[_0x7504('0x11a')]&&_0x3fda46[_0x7504('0x11a')]['multipleBlocks'];(_0x7504('0x119')!=_0x3fda46[_0x7504('0xf7')]||'split'==_0x1c66b3[_0x7504('0xf7')]&&!_0x44652a)&&(_0x2f9ed9[_0x7504('0x11d')]||_0x7504('0x12f')==_0x3fda46[_0x7504('0xf7')]&&_0x2f9ed9[_0x7504('0x5d')]||_0x3fda46[_0x7504('0x22')]()[_0x7504('0x88')](_0x550e33)&&this[_0x7504('0x17')](_0x3fda46,_0x2c6344,_0x19fe3e));}});},{'priority':_0x7504('0x4f')}),_0x3ce101[_0x7504('0x1a')]['on'](_0x7504('0x102'),(_0x53e716,_0x4a27e1)=>{const _0x5206bb=_0x4a27e1[0x0],_0x174701=_0x4a27e1[0x1];if(_0x174701&&_0x174701[_0x7504('0x24')])return;if(this[_0x7504('0xf5')])return;if(!this['trackChangesCommand'][_0x7504('0x21')])return;if(_0x5206bb[_0x7504('0x12b')])return;const _0x1a87cb=_0x3ce101[_0x7504('0x1a')][_0x7504('0x1')],{start:_0x3ca59f,end:_0x2fcb7d}=_0x5206bb['getFirstRange'](),_0xde4bf4=_0x3ca59f[_0x7504('0x2')]&&_0x1a87cb[_0x7504('0x9b')](_0x3ca59f[_0x7504('0x2')])?null:_0x1a87cb['getNearestSelectionRange'](_0x3ca59f,'forward'),_0x28560f=_0x2fcb7d[_0x7504('0xb3')]&&_0x1a87cb[_0x7504('0x9b')](_0x2fcb7d['nodeBefore'])?null:_0x1a87cb['getNearestSelectionRange'](_0x2fcb7d,_0x7504('0x69')),_0x2eaebd=_0x3ce101[_0x7504('0x1a')][_0x7504('0x26')](_0xde4bf4?_0xde4bf4['start']:_0x3ca59f,_0x28560f?_0x28560f[_0x7504('0x4d')]:_0x2fcb7d);_0x3ce101[_0x7504('0x1a')][_0x7504('0x81')](_0x5832d2=>{this[_0x7504('0x11f')](_0x2eaebd);const _0x12b17d=_0x3ce101['model']['schema'][_0x7504('0x90')](_0x2eaebd['start']);_0x5206bb['is']('documentSelection')?_0x5832d2[_0x7504('0x35')](_0x12b17d):_0x5206bb['setTo'](_0x12b17d);}),_0x53e716['stop']();},{'priority':_0x1cae88['normal']+0xa}),_0x3ce101[_0x7504('0x1a')]['on']('insertContent',(_0x251a6b,_0xb18c20)=>{const _0x4802d4=_0xb18c20[_0xb18c20[_0x7504('0xbf')]-0x1];_0x4802d4&&_0x4802d4['forceDefaultExecution']||this[_0x7504('0xf5')]||this['trackChangesCommand']['value']&&(_0x3ce101[_0x7504('0x1a')]['change'](()=>{let _0x4d434d=_0x3ce101['model'][_0x7504('0x122')](_0xb18c20[0x0],_0xb18c20[0x1],_0xb18c20[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d434d)return;_0x251a6b[_0x7504('0x95')]=_0x4d434d[_0x7504('0xfd')]();const _0x5eb560=_0x4d434d[_0x7504('0x4d')][_0x7504('0xb3')],_0x172131=_0x3ce101[_0x7504('0x1a')][_0x7504('0x1')];_0x5eb560&&_0x172131[_0x7504('0x71')](_0x5eb560)&&!_0x172131[_0x7504('0xfa')](_0x5eb560)&&(_0x4d434d=_0x3ce101[_0x7504('0x1a')][_0x7504('0x26')](_0x4d434d[_0x7504('0x7e')],_0x3ce101[_0x7504('0x1a')][_0x7504('0x5c')](_0x5eb560,_0x7504('0x4d')))),this[_0x7504('0xed')](_0x4d434d);}),_0x251a6b[_0x7504('0x112')]());},{'priority':_0x7504('0x6c')}),this[_0x7504('0xaf')][_0x7504('0x53')]['add']('trackChanges',this[_0x7504('0xc6')]),this['enableCommand']('trackChanges');const _0x566a5b=new _0x195104(_0x3ce101,this[_0x7504('0x10e')]);_0x3ce101[_0x7504('0x53')][_0x7504('0x9a')](_0x7504('0xee'),_0x566a5b),this[_0x7504('0x68')](_0x7504('0xee'));const _0x3029ea=new _0xc8292c(_0x3ce101,this[_0x7504('0x10e')]);_0x3ce101[_0x7504('0x53')]['add'](_0x7504('0x38'),_0x3029ea),this[_0x7504('0x68')](_0x7504('0x38')),_0x3ce101['commands'][_0x7504('0x9a')](_0x7504('0xc1'),new _0x4dceee(_0x3ce101,_0x566a5b,this[_0x7504('0x10e')])),this['enableCommand'](_0x7504('0xc1')),_0x3ce101[_0x7504('0x53')][_0x7504('0x9a')]('discardAllSuggestions',new _0x4dceee(_0x3ce101,_0x3029ea,this[_0x7504('0x10e')])),this[_0x7504('0x68')](_0x7504('0xea')),_0x3ce101[_0x7504('0x53')][_0x7504('0x9a')]('acceptSelectedSuggestions',new _0x495356(_0x3ce101,_0x566a5b,this[_0x7504('0x10e')])),this[_0x7504('0x68')]('acceptSelectedSuggestions'),_0x3ce101[_0x7504('0x53')][_0x7504('0x9a')](_0x7504('0x128'),new _0x495356(_0x3ce101,_0x3029ea,this[_0x7504('0x10e')])),this[_0x7504('0x68')](_0x7504('0x128'));const _0x4ec736=_0x3ce101[_0x7504('0x16')][_0x7504('0x136')]('CommentsRepository');this[_0x7504('0x10c')](_0x4ec736,_0x7504('0x50'),(_0xd40ed6,{threadId:_0x4b5fa7})=>{const _0x27b777=this[_0x7504('0x10e')]['get'](_0x4b5fa7);_0x27b777&&_0x27b777[_0x7504('0x83')]&&0x1===_0x27b777[_0x7504('0x83')][_0x7504('0xbf')]&&this[_0x7504('0xd6')](_0x4b5fa7,{'hasComments':!0x0});},{'priority':'low'}),this[_0x7504('0x10c')](_0x4ec736,_0x7504('0x23'),(_0x31611f,{threadId:_0x4db288})=>{const _0x482b8f=this[_0x7504('0x10e')][_0x7504('0x136')](_0x4db288);_0x482b8f&&_0x482b8f[_0x7504('0x83')]&&!_0x482b8f[_0x7504('0x83')][_0x7504('0xbf')]&&this['_updateSuggestionData'](_0x4db288,{'hasComments':!0x1});},{'priority':_0x7504('0x125')});}set[_0x7504('0xac')](_0x257285){if(this[_0x7504('0x126')])throw new _0x1d1de9('track-changes-adapter-already-set',this);this['_adapter']=_0x257285;}get[_0x7504('0xac')](){return this[_0x7504('0x126')];}[_0x7504('0x106')]({skipNotAttached:_0x421176=!0x1,toJSON:_0x24deaa=!0x1}={}){const _0x78f5d0=[];for(const _0x46f69b of this[_0x7504('0x10e')][_0x7504('0x55')]())_0x421176&&!_0x46f69b['isInContent']||_0x78f5d0[_0x7504('0x39')](_0x46f69b);return _0x24deaa?_0x78f5d0[_0x7504('0x43')](_0x679c3f=>_0x679c3f['toJSON']()):_0x78f5d0;}[_0x7504('0xaa')](_0x124c5c){const _0x14d9d3=this[_0x7504('0x10e')][_0x7504('0x136')](_0x124c5c);if(!_0x14d9d3)throw new _0x1d1de9('track-changes-suggestion-not-found',this);return _0x14d9d3;}['hasSuggestion'](_0x7b5eee){return this[_0x7504('0x10e')][_0x7504('0x7d')](_0x7b5eee);}[_0x7504('0x1e')](_0x437bc2){const {authorId:_0x5e365b,id:_0x46d73d,attributes:_0x2d8042}=_0x437bc2,[_0xc03f12,_0x4e033b]=_0x437bc2[_0x7504('0xf7')][_0x7504('0xcb')](':'),_0x498368=this[_0x7504('0x10e')][_0x7504('0x136')](_0x46d73d)||this['_createSuggestion'](_0xc03f12,_0x4e033b,_0x46d73d,_0x5e365b,_0x2d8042);if(this[_0x7504('0xcc')](_0x498368),this[_0x7504('0x10d')](_0x498368,_0xc03f12,_0x4e033b||null,_0x5e365b),_0x498368['createdAt']=_0x437bc2[_0x7504('0x10b')],_0x2d8042&&_0x2d8042[_0x7504('0x27')]){const _0x10dcd6=_0x2d8042[_0x7504('0x27')],_0x31277b=this[_0x7504('0x89')](_0x10dcd6[_0x7504('0xd')]);_0x498368[_0x7504('0x8')]=_0x10dcd6['createdAt'],_0x498368[_0x7504('0x18')]=_0x31277b,_0x498368[_0x7504('0x20')]=!0x0;}else _0x498368[_0x7504('0x8')]=_0x437bc2[_0x7504('0x10b')];switch(_0x437bc2[_0x7504('0x11a')]&&(_0x498368[_0x7504('0x11a')]=_0x437bc2['data']),_0x437bc2[_0x7504('0xb6')]&&(_0x498368[_0x7504('0xb6')]=_0x437bc2[_0x7504('0xb6')]),this[_0x7504('0x126')]&&this[_0x7504('0x126')][_0x7504('0xd1')]||(_0x498368[_0x7504('0x36')]=!0x0),this[_0x7504('0x11')][_0x7504('0x136')](_0x498368)){case _0x7504('0xa1'):this[_0x7504('0x11')][_0x7504('0x85')](_0x498368,_0x7504('0x7'));break;case _0x7504('0xb0'):_0x498368['isInContent']?(this[_0x7504('0x11')][_0x7504('0x85')](_0x498368,_0x7504('0xf2')),this[_0x7504('0x2f')]('suggestionLoaded',_0x498368)):this['_suggestionState'][_0x7504('0x85')](_0x498368,'removed');}return _0x498368;}['acceptSuggestion'](_0x2ae11f){this[_0x7504('0x24')](()=>{this['editor'][_0x7504('0x1a')]['change'](()=>{for(const _0x128f50 of _0x2ae11f['getAllAdjacentSuggestions']())_0x128f50['accept']();});});}['discardSuggestion'](_0x2e4b0f){this[_0x7504('0x24')](()=>{this[_0x7504('0xaf')]['model'][_0x7504('0x81')](()=>{for(const _0x5abcf8 of _0x2e4b0f[_0x7504('0x2b')]())_0x5abcf8[_0x7504('0xd5')]();});});}[_0x7504('0x68')](_0x1fea85,_0x300314){const _0x141872=this[_0x7504('0xaf')]['commands'][_0x7504('0x136')](_0x1fea85);if(!_0x141872)throw new _0x1d1de9('track-changes-command-not-found',this,{'commandName':_0x1fea85});this[_0x7504('0x30')][_0x7504('0x9a')](_0x141872),_0x300314&&_0x141872['on'](_0x7504('0x12'),(_0xe79b2d,_0x508983)=>{this[_0x7504('0xc6')][_0x7504('0x21')]&&(this['_isForcedDefaultExecutionBlock']||_0x508983[_0x7504('0xbf')]>0x0&&_0x508983[_0x508983[_0x7504('0xbf')]-0x1]&&_0x508983[_0x508983[_0x7504('0xbf')]-0x1][_0x7504('0x24')]||(_0x300314((..._0x277a26)=>_0x141872[_0x7504('0x12')](..._0x277a26,{'forceDefaultExecution':!0x0}),..._0x508983),_0xe79b2d[_0x7504('0x112')]()));},{'priority':_0x7504('0x6c')});}['forceDefaultExecution'](_0x2985ff){let _0x8c8992,_0x2f4edc;const _0x1b9452=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x8c8992=_0x2985ff();}catch(_0x2355d0){_0x2f4edc=_0x2355d0;}return _0x1b9452||(this[_0x7504('0xf5')]=!0x1),_0x2f4edc&&_0x1d1de9[_0x7504('0xc3')](_0x2f4edc,this),_0x8c8992;}[_0x7504('0xed')](_0x346024,_0x1e05c2=null,_0x1d1c94={}){if(_0x346024[_0x7504('0x12b')])return null;const _0x1a049a=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0xb'))['me'];for(const {suggestion:_0xe109f5,meta:_0x298358}of this[_0x7504('0x97')](_0x346024,'insertion'))if(_0x298358[_0x7504('0x5d')]){if(!_0x298358['isNextTo']){if(!this[_0x7504('0x6d')]&&_0x298358['containsRangeInObject'])continue;return _0xe109f5;}if(_0x1e05c2==_0xe109f5[_0x7504('0xf4')]){const _0xe7edfc=_0xe109f5[_0x7504('0x22')]();return _0xe7edfc[_0x7504('0x7e')][_0x7504('0xde')](_0x346024[_0x7504('0x4d')])?this[_0x7504('0xce')](_0xe109f5,this[_0x7504('0x82')][_0x7504('0x26')](_0x346024[_0x7504('0x7e')],_0xe7edfc[_0x7504('0x4d')])):this[_0x7504('0xce')](_0xe109f5,this[_0x7504('0x82')]['createRange'](_0xe7edfc[_0x7504('0x7e')],_0x346024[_0x7504('0x4d')])),_0xe109f5;}}const _0x5a131b=_0x388e22(),_0x349aa4=_0x1a049a['id'],_0x59d37d=_0x1e05c2?_0x7504('0x12c')+_0x1e05c2:'insertion',_0x5c75be=this['_setSuggestionData']({'id':_0x5a131b,'type':_0x59d37d,'createdAt':new Date(),'authorId':_0x349aa4,'attributes':_0x1d1c94});return this[_0x7504('0xe1')](_0x59d37d,_0x5a131b,_0x349aa4,_0x346024),_0x5c75be;}[_0x7504('0x3b')](_0x50a726,_0x8c7149=_0x7504('0x3e'),_0x30e43a={}){const _0x4dab85=this['editor'][_0x7504('0x16')]['get'](_0x7504('0xb'))['me'],_0xb5ca18=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x12f'),_0x8c7149,_0x7504('0x96'));for(const _0x4f6cb0 of this[_0x7504('0x106')]())if(_0x4f6cb0[_0x7504('0x18')]['id']==_0x4dab85['id']&&_0x7504('0x12f')==_0x4f6cb0[_0x7504('0xf7')]&&_0x4f6cb0['subType']==_0x8c7149&&(_0xb5ca18(_0x4f6cb0[_0x7504('0x92')](),_0x50a726)||_0xb5ca18(_0x50a726,_0x4f6cb0[_0x7504('0x92')]()))){for(const _0x528571 of _0x50a726)_0x4f6cb0['addRange'](_0x528571);return _0x4f6cb0;}if(this[_0x7504('0x6d')])for(const _0x3428ce of _0x50a726)for(const {suggestion:_0x52c6cf,meta:_0x489f02}of this[_0x7504('0x97')](_0x3428ce,'insertion')){if(!_0x489f02['isOwn'])continue;let _0x353ae2=!0x0;for(const _0xfc153e of _0x52c6cf['getRanges']())for(const _0x2821f5 of _0x50a726)if(!_0xfc153e['containsRange'](_0x2821f5)){_0x353ae2=!0x1;break;}if(_0x353ae2)return _0x52c6cf;}const _0x2a22a3=_0x388e22(),_0x590b26=_0x4dab85['id'],_0x5dae95=_0x7504('0x12c')+_0x8c7149,_0x418c52=this['_setSuggestionData']({'id':_0x2a22a3,'type':_0x5dae95,'createdAt':new Date(),'authorId':_0x590b26,'attributes':_0x30e43a});for(const _0x540162 of _0x50a726)this[_0x7504('0xe1')](_0x5dae95,_0x2a22a3,_0x590b26,_0x540162,_0x371c78['getMultiRangeId']());return _0x418c52;}[_0x7504('0x12d')](_0x5b6ad4,_0x2570c1,_0x246bcc=null,_0x5d7ee6={}){if(_0x246bcc=_0x246bcc||$t(_0x2570c1),_0x5b6ad4['isCollapsed'])return null;if(_0x7504('0x84')===this[_0x7504('0x127')]){const _0x43a0cf=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x98'),_0x246bcc,_0x7504('0xb7'));return this[_0x7504('0x24')](()=>_0x43a0cf([_0x5b6ad4],_0x2570c1,_0x5d7ee6)),null;}const _0x59d115=this[_0x7504('0xaf')][_0x7504('0x16')]['get'](_0x7504('0xb'))['me'],_0x4f8cc9=[];if(_0x7504('0x14')!==this[_0x7504('0x127')])for(const {suggestion:_0x592594,meta:_0x462c29}of this[_0x7504('0x97')](_0x5b6ad4,'insertion'))_0x462c29[_0x7504('0x5d')]&&!_0x462c29[_0x7504('0x93')]&&_0x4f8cc9[_0x7504('0x39')](..._0x592594[_0x7504('0x92')]());const _0x362947=function(_0x1db19e,_0x1a52c8){const _0x5b15a3=[];for(const _0x1d1857 of _0x1a52c8){const _0x54f672=_0x1db19e['getIntersection'](_0x1d1857);_0x54f672&&_0x5b15a3['push'](_0x54f672);}return _0x5b15a3;}(_0x5b6ad4,_0x4f8cc9),_0x2a4ec2=function(_0x4bef03,_0x586dd6){const _0x43884e=[_0x4bef03];for(const _0x56913f of _0x586dd6){let _0x1d1f89=0x0;for(;_0x1d1f89<_0x43884e[_0x7504('0xbf')];){const _0x23f5df=_0x43884e[_0x1d1f89][_0x7504('0x101')](_0x56913f);_0x43884e[_0x7504('0x9d')](_0x1d1f89,0x1,..._0x23f5df),_0x1d1f89+=_0x23f5df[_0x7504('0xbf')];}}return _0x43884e;}(_0x5b6ad4,_0x4f8cc9);_0x362947[_0x7504('0xbf')]&&this['_model']['change'](()=>{for(const _0xb294be of _0x362947){const _0x29168e=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x98'),_0x246bcc,_0x7504('0xb7'));this[_0x7504('0x24')](()=>_0x29168e([_0xb294be],_0x2570c1,_0x5d7ee6));}});for(const _0x515de2 of _0x2a4ec2){let _0x569161=null,_0x1c7a9e=_0x515de2[_0x7504('0x7e')],_0x2e7d7e=_0x515de2['end'];for(const {suggestion:_0x2ade3a,meta:_0x18669a}of this[_0x7504('0x97')](_0x515de2,_0x7504('0x98'))){if(!_0x18669a[_0x7504('0x5d')])continue;if(_0x2ade3a[_0x7504('0xf4')]!=_0x246bcc)continue;const _0x4e8543=_0x2ade3a[_0x7504('0x22')]();if(_0x4e8543['containsRange'](_0x515de2,!0x0))return null;_0x1c7a9e=_0x1c7a9e[_0x7504('0xbe')](_0x4e8543[_0x7504('0x7e')])?_0x1c7a9e:_0x4e8543[_0x7504('0x7e')],_0x2e7d7e=_0x2e7d7e[_0x7504('0x5b')](_0x4e8543[_0x7504('0x4d')])?_0x2e7d7e:_0x4e8543['end'],_0x569161?_0x4e8543[_0x7504('0x7e')]['isBefore'](_0x569161[_0x7504('0x22')]()[_0x7504('0x7e')])?(_0x569161[_0x7504('0xb5')](),_0x569161=_0x2ade3a):_0x2ade3a[_0x7504('0xb5')]():_0x569161=_0x2ade3a;}const _0x39e168=this['_model']['createRange'](_0x1c7a9e,_0x2e7d7e);if(_0x569161)this[_0x7504('0xce')](_0x569161,_0x39e168);else{const _0x5d7029=_0x388e22(),_0x4afc64=_0x59d115['id'];this[_0x7504('0x37')]({'id':_0x5d7029,'type':'formatInline:'+_0x246bcc,'data':_0x2570c1,'createdAt':new Date(),'authorId':_0x4afc64,'attributes':_0x5d7ee6}),this[_0x7504('0xe1')](_0x7504('0xcf')+_0x246bcc,_0x5d7029,_0x4afc64,_0x39e168);}}return null;}[_0x7504('0xe5')](_0x468cfb,_0x29d58e,_0x423e09=[],_0x53eef0=null,_0x55335a={}){_0x29d58e[_0x7504('0x104')]||(_0x29d58e[_0x7504('0x104')]=_0x29d58e[_0x7504('0x64')]),_0x29d58e['multipleBlocks']=_0x468cfb['is'](_0x7504('0xb2')),_0x53eef0=_0x53eef0||$t(_0x29d58e);const _0x21a8f7=_0x423e09[_0x7504('0x43')](_0x2e4f0c=>Rt(_0x2e4f0c,this[_0x7504('0x82')])),_0x1f45d4=_0x468cfb['is'](_0x7504('0xb2'))?_0x468cfb:Rt(_0x468cfb,this[_0x7504('0x82')]);if('never'===this[_0x7504('0x127')]){const _0x2ce4c0=this[_0x7504('0x11c')][_0x7504('0x12a')]('formatBlock',_0x53eef0,_0x7504('0xb7'));return this['forceDefaultExecution'](()=>_0x2ce4c0([_0x1f45d4],_0x29d58e,_0x55335a)),null;}_0x21a8f7['push'](_0x1f45d4);let _0x58f85b=!0x0;for(const _0x33dfd4 of _0x21a8f7)if(!this[_0x7504('0x0')](_0x33dfd4)){_0x58f85b=!0x1;break;}if(_0x58f85b&&_0x7504('0x14')!==this[_0x7504('0x127')]){const _0x4266bd=this['_suggestionFactory'][_0x7504('0x12a')](_0x7504('0x119'),_0x53eef0,_0x7504('0xb7'));return this[_0x7504('0x24')](()=>_0x4266bd([_0x1f45d4],_0x29d58e,_0x55335a)),null;}let _0x1640aa=null,_0x5bba28=_0x1f45d4[_0x7504('0x7e')],_0x590779=_0x1f45d4[_0x7504('0x4d')];for(const {suggestion:_0x361f27,meta:_0x5e7e9f}of this['_findSuggestions'](_0x1f45d4,_0x7504('0x119'))){if(!_0x5e7e9f[_0x7504('0x5d')]||_0x5e7e9f[_0x7504('0x8b')]||_0x5e7e9f[_0x7504('0x11d')]||_0x5e7e9f[_0x7504('0x93')])continue;if(_0x361f27[_0x7504('0x11a')][_0x7504('0x104')]!=_0x29d58e[_0x7504('0x104')])continue;const _0xc4edec=_0x361f27['getFirstRange']();if(_0x361f27['subType']==_0x53eef0){if(_0xc4edec[_0x7504('0x88')](_0x1f45d4,!0x0))return null;_0x5bba28=_0x5bba28[_0x7504('0xbe')](_0xc4edec['start'])?_0x5bba28:_0xc4edec[_0x7504('0x7e')],_0x590779=_0x590779[_0x7504('0x5b')](_0xc4edec[_0x7504('0x4d')])?_0x590779:_0xc4edec[_0x7504('0x4d')],_0x1640aa?_0xc4edec['start'][_0x7504('0xbe')](_0x1640aa['getFirstRange']()['start'])?(_0x1640aa['removeMarkers'](),_0x1640aa=_0x361f27):_0x361f27[_0x7504('0xb5')]():_0x1640aa=_0x361f27;}else{const _0x4eac5d=_0x1f45d4['getIntersection'](_0xc4edec);this['_cutOutSuggestionMarker'](_0x361f27,_0x4eac5d);}}const _0x5cd13b=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')]('Users')['me'],_0x2badda=_0x388e22(),_0x3dbd2a=_0x5cd13b['id'];if(_0x1640aa)return this[_0x7504('0xce')](_0x1640aa,this[_0x7504('0x82')][_0x7504('0x26')](_0x5bba28,_0x590779)),_0x1640aa;{const _0x138dd5=this['_setSuggestionData']({'id':_0x2badda,'type':'formatBlock:'+_0x53eef0,'data':_0x29d58e,'createdAt':new Date(),'authorId':_0x3dbd2a,'attributes':_0x55335a});return this[_0x7504('0xe1')](_0x7504('0x33')+_0x53eef0,_0x2badda,_0x3dbd2a,this[_0x7504('0x82')][_0x7504('0x26')](_0x5bba28,_0x590779)),_0x138dd5;}}[_0x7504('0x11e')](_0x4af343,_0x30407b,_0x16c678=[],_0x4f9c3a=null,_0x1948f0={}){_0x30407b[_0x7504('0x104')]||(_0x30407b['formatGroupId']=_0x30407b[_0x7504('0x64')]);const _0x1676f5=_0x4af343[0x0];_0x30407b[_0x7504('0x29')]=_0x1676f5['is'](_0x7504('0xb2')),_0x4f9c3a=_0x4f9c3a||$t(_0x30407b);const _0x549dd1=_0x16c678[_0x7504('0x43')](_0x97234e=>Rt(_0x97234e,this['_model'])),_0x1c75be=_0x1676f5['is'](_0x7504('0xb2'))?_0x4af343:_0x4af343[_0x7504('0x43')](_0x139ba2=>Rt(_0x139ba2,this[_0x7504('0x82')]));if(_0x7504('0x84')===this[_0x7504('0x127')]){const _0x326f5b=this[_0x7504('0x11c')][_0x7504('0x12a')]('formatBlock',_0x4f9c3a,_0x7504('0xb7'));return this[_0x7504('0x24')](()=>_0x326f5b(_0x1c75be,_0x30407b,_0x1948f0)),null;}_0x549dd1[_0x7504('0x39')](..._0x1c75be);let _0x1c462c=!0x0;for(const _0x41486e of _0x549dd1)if(!this['_rangeIsInLocalUserInsertion'](_0x41486e)){_0x1c462c=!0x1;break;}if(_0x1c462c&&_0x7504('0x14')!==this[_0x7504('0x127')]){const _0xedb164=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x119'),_0x4f9c3a,'accept');return this[_0x7504('0x24')](()=>_0xedb164(_0x1c75be,_0x30407b,_0x1948f0)),null;}const _0x4366f3=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0xb'))['me'];for(const _0x587d42 of this[_0x7504('0x106')]()){if(_0x587d42[_0x7504('0x18')]['id']!=_0x4366f3['id'])continue;if(_0x7504('0x119')!=_0x587d42['type']||_0x587d42['data'][_0x7504('0x104')]!=_0x30407b[_0x7504('0x104')])continue;const _0xd4e11e=_0x587d42[_0x7504('0xf4')]==_0x4f9c3a;for(let _0x7074d5=0x0;_0x7074d5<_0x1c75be['length'];_0x7074d5++){const _0x467bba=_0x1c75be[_0x7074d5];for(const _0x5468f4 of _0x587d42['getMarkers']()){const _0x404bf6=_0x5468f4[_0x7504('0x131')]();if(_0x467bba[_0x7504('0xde')](_0x404bf6)){_0xd4e11e?(_0x1c75be[_0x7504('0x9d')](_0x7074d5,0x1),_0x7074d5--):_0x587d42['removeMarker'](_0x5468f4[_0x7504('0xa')]);break;}}}}if(0x0==_0x1c75be[_0x7504('0xbf')])return null;const _0x3ef9ee=this[_0x7504('0x11c')][_0x7504('0x12a')]('formatBlock',_0x4f9c3a,'join');for(const _0x1a3a89 of this['getSuggestions']())if(_0x1a3a89[_0x7504('0x18')]['id']==_0x4366f3['id']&&_0x7504('0x119')==_0x1a3a89['type']&&_0x1a3a89[_0x7504('0x11a')][_0x7504('0x104')]==_0x30407b[_0x7504('0x104')]&&_0x1a3a89[_0x7504('0xf4')]==_0x4f9c3a&&(_0x3ef9ee(_0x1a3a89[_0x7504('0x92')](),_0x1c75be)||_0x3ef9ee(_0x1c75be,_0x1a3a89[_0x7504('0x92')]()))){for(const _0x151096 of _0x1c75be)_0x1a3a89[_0x7504('0x66')](_0x151096);return _0x1a3a89;}const _0x2f5ced=_0x388e22(),_0xe05032=_0x4366f3['id'],_0x5df006='formatBlock:'+_0x4f9c3a,_0x39e131=this['_setSuggestionData']({'id':_0x2f5ced,'type':_0x5df006,'data':_0x30407b,'createdAt':new Date(),'authorId':_0xe05032,'attributes':_0x1948f0});for(const _0x1db73c of _0x1c75be)this[_0x7504('0xe1')](_0x5df006,_0x2f5ced,_0xe05032,_0x1db73c,_0x371c78[_0x7504('0x94')]());return _0x39e131;}['markDeletion'](_0x167cb1,_0x34e749=null,_0x54c711={}){if(_0x167cb1[_0x7504('0x12b')])return null;const _0xefc54a=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0xb'))['me'],_0x297a18=new _0x3d2980(_0x167cb1['start'],_0x167cb1['end']);for(const {suggestion:_0x2b3ceb,meta:_0x479c2a}of this[_0x7504('0x97')](_0x297a18,_0x7504('0x12f')))if(_0x479c2a[_0x7504('0x5d')]&&!_0x479c2a[_0x7504('0x8b')]){if(_0x2b3ceb['isMultiRange']){const _0x3ea428=_0x2b3ceb[_0x7504('0x92')]()[_0x7504('0x51')](_0x1856c9=>_0x7504('0x45')!=_0x1856c9[_0x7504('0xa4')]['rootName']);_0x3ea428[_0x7504('0xf1')](_0x3c5f07=>_0x297a18[_0x7504('0x88')](_0x3c5f07,!0x0))&&_0x2b3ceb[_0x7504('0xd5')]();if(_0x3ea428[_0x7504('0x87')](_0x371303=>_0x371303[_0x7504('0x88')](_0x297a18,!0x0))){const _0x4f273e=this['_suggestionFactory'][_0x7504('0x12a')]('deletion',_0x34e749,_0x7504('0xb7'));return this[_0x7504('0x24')](()=>_0x4f273e([_0x297a18],null,_0x54c711)),null;}}else{const _0x4fbdbe=_0x297a18[_0x7504('0x91')](_0x2b3ceb[_0x7504('0x22')]());null!==_0x4fbdbe&&_0x2b3ceb['_onDiscard']([_0x4fbdbe],null,_0x54c711);}}if(_0x297a18[_0x7504('0xeb')](),_0x297a18[_0x7504('0x12b')]||_0x7504('0x45')==_0x297a18[_0x7504('0xa4')][_0x7504('0xef')])return null;let _0x31beae=null,_0x177a71=_0x297a18[_0x7504('0x7e')],_0x372d4f=_0x297a18['end'];for(const {suggestion:_0x589fc2,meta:_0x45dc6f}of this[_0x7504('0x97')](_0x297a18,'deletion'))if(_0x45dc6f[_0x7504('0x5d')]){if(_0x589fc2[_0x7504('0x72')]&&this[_0x7504('0x6d')]){let _0x446246=!0x0;for(const _0x5a916a of _0x589fc2['getRanges']()){if(_0x5a916a[_0x7504('0x88')](_0x297a18,!0x0))return _0x589fc2;_0x297a18[_0x7504('0x88')](_0x5a916a)||(_0x446246=!0x1);}_0x446246&&_0x589fc2['discard']();}else{const _0x22f709=_0x589fc2[_0x7504('0x22')]();if(_0x22f709['containsRange'](_0x297a18,!0x0)){if(!this[_0x7504('0x6d')]&&_0x45dc6f['containsRangeInObject'])continue;return _0x589fc2;}_0x177a71=_0x177a71[_0x7504('0xbe')](_0x22f709[_0x7504('0x7e')])?_0x177a71:_0x22f709[_0x7504('0x7e')],_0x372d4f=_0x372d4f[_0x7504('0x5b')](_0x22f709[_0x7504('0x4d')])?_0x372d4f:_0x22f709['end'],_0x31beae?_0x22f709['start'][_0x7504('0xbe')](_0x31beae['getFirstRange']()[_0x7504('0x7e')])?(_0x31beae[_0x7504('0xb5')](),_0x31beae=_0x589fc2):_0x589fc2[_0x7504('0xb5')]():_0x31beae=_0x589fc2;}}if(_0x31beae)return this['_setSuggestionRange'](_0x31beae,this[_0x7504('0x82')][_0x7504('0x26')](_0x177a71,_0x372d4f)),_0x31beae;{const _0xae9b20=_0x388e22(),_0x4df67e=this['_model']['createRange'](_0x177a71,_0x372d4f),_0x89a006=_0xefc54a['id'],_0x598704=_0x34e749?_0x7504('0x3a')+_0x34e749:_0x7504('0x120'),_0x345fd7=this[_0x7504('0x37')]({'id':_0xae9b20,'type':_0x598704,'createdAt':new Date(),'authorId':_0x89a006,'attributes':_0x54c711});return this[_0x7504('0xe1')](_0x598704,_0xae9b20,_0x89a006,_0x4df67e),_0x345fd7;}}[_0x7504('0x8d')](_0x500b7c,_0x35990f=_0x7504('0x3e'),_0x561fec={}){const _0x3df8c9=this['editor']['plugins'][_0x7504('0x136')](_0x7504('0xb'))['me'],_0x1dfaea=_0x500b7c['map'](_0x2cb810=>new _0x3d2980(_0x2cb810['start'],_0x2cb810['end'])),_0xfaca35=new Set();for(const _0x42acbc of _0x1dfaea)for(const {suggestion:_0xe192df,meta:_0x186267}of this[_0x7504('0x97')](_0x42acbc,_0x7504('0x12f')))_0x186267[_0x7504('0x5d')]&&!_0x186267['isNextTo']&&_0xfaca35['add'](_0xe192df);for(const _0xd480e2 of _0xfaca35)if(_0xd480e2[_0x7504('0x72')]){const _0x554ff6=_0xd480e2[_0x7504('0x92')]();(!_0xd480e2['attributes']||!_0xd480e2['attributes'][_0x7504('0x41')])&&(_0x554ff6[_0x7504('0xf1')](_0x9006b4=>_0x1dfaea['some'](_0x5ee15c=>_0x5ee15c[_0x7504('0x88')](_0x9006b4,!0x0)))&&_0xd480e2['discard']());if(_0x1dfaea[_0x7504('0xf1')](_0x501f4=>_0x554ff6[_0x7504('0x87')](_0x25aa56=>_0x25aa56[_0x7504('0x88')](_0x501f4,!0x0)))){const _0x2c4e1e=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x120'),_0x35990f,_0x7504('0xb7'));return this[_0x7504('0x24')](()=>_0x2c4e1e(_0x500b7c,null,_0x561fec)),null;}}else{const _0x5c00ff=_0xd480e2[_0x7504('0x22')]();_0x1dfaea[_0x7504('0x87')](_0x419756=>_0x419756[_0x7504('0x88')](_0x5c00ff,!0x0))&&_0xd480e2[_0x7504('0xd5')]();if(_0x1dfaea[_0x7504('0xf1')](_0x505cb2=>_0x5c00ff[_0x7504('0x88')](_0x505cb2,!0x0))){const _0x1d2228=this[_0x7504('0x11c')][_0x7504('0x12a')]('deletion',_0x35990f,_0x7504('0xb7'));return this['forceDefaultExecution'](()=>_0x1d2228(_0x1dfaea,null,_0x561fec)),null;}}const _0xb29d7e=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x120'),_0x35990f,'join');let _0x1c9ace=null;for(const _0x3c7f85 of this[_0x7504('0x106')]())if(_0x3c7f85[_0x7504('0x18')]['id']==_0x3df8c9['id']&&_0x3c7f85[_0x7504('0x40')]&&'deletion'==_0x3c7f85[_0x7504('0xf7')]&&_0x3c7f85[_0x7504('0xf4')]==_0x35990f&&(_0xb29d7e(_0x3c7f85[_0x7504('0x92')](),_0x1dfaea)||_0xb29d7e(_0x1dfaea,_0x3c7f85[_0x7504('0x92')]()))){if(_0x1c9ace){if(_0x3c7f85[_0x7504('0x83')]&&_0x3c7f85['commentThread'][_0x7504('0xbf')])continue;for(const _0x5ecf1b of _0x3c7f85[_0x7504('0x92')]())_0x1c9ace[_0x7504('0x67')](_0x5ecf1b)||_0x1c9ace['addRange'](_0x5ecf1b);_0x3c7f85[_0x7504('0xb5')]();}else{_0x1c9ace=_0x3c7f85;for(const _0xa157d6 of _0x1dfaea)_0x3c7f85[_0x7504('0x67')](_0xa157d6)||_0x3c7f85[_0x7504('0x66')](_0xa157d6);}}if(_0x1c9ace)return _0x1c9ace;_0xfaca35[_0x7504('0x9')]();for(const _0xd814a9 of _0x1dfaea)for(const {suggestion:_0x51577e,meta:_0xae4839}of this['_findSuggestions'](_0xd814a9,_0x7504('0x120')))_0xae4839[_0x7504('0x5d')]&&_0xfaca35['add'](_0x51577e);for(const _0x2865e3 of _0xfaca35){const _0x3d470f=_0x2865e3[_0x7504('0x92')]();if(!_0x561fec||!_0x561fec[_0x7504('0x41')]){if(_0x1dfaea[_0x7504('0xf1')](_0x4c619a=>_0x3d470f['some'](_0x29f3cf=>_0x29f3cf[_0x7504('0x88')](_0x4c619a,!0x0))))return _0x2865e3;}(!_0x2865e3[_0x7504('0xb6')]||!_0x2865e3['attributes'][_0x7504('0x41')])&&(_0x3d470f[_0x7504('0xf1')](_0x57d418=>_0x1dfaea[_0x7504('0x87')](_0x5ac431=>_0x5ac431[_0x7504('0x88')](_0x57d418,!0x0)))&&_0x2865e3[_0x7504('0xd5')]());}const _0x3f969b=_0x388e22(),_0x5ae854=_0x3df8c9['id'],_0x2039ee=_0x7504('0x3a')+_0x35990f,_0x5b42f9=this[_0x7504('0x37')]({'id':_0x3f969b,'type':_0x2039ee,'createdAt':new Date(),'authorId':_0x5ae854,'attributes':_0x561fec});for(const _0x277b1e of _0x1dfaea)_0x277b1e[_0x7504('0xeb')](),_0x277b1e['isCollapsed']||'$graveyard'==_0x277b1e['root'][_0x7504('0xef')]||this[_0x7504('0xe1')](_0x2039ee,_0x3f969b,_0x5ae854,_0x277b1e,_0x371c78['getMultiRangeId']());return _0x5b42f9;}['_setSuggestionRange'](_0x3553c0,_0x235ced){const _0x3ba97c=_0x3553c0[_0x7504('0x114')]();this[_0x7504('0x82')][_0x7504('0x81')](_0x1de853=>{_0x1de853[_0x7504('0x8a')](_0x3ba97c,{'range':_0x235ced});});}[_0x7504('0xcc')](_0x253c8d){const _0x3d69a7=_0x253c8d['id'],_0x3c0cbd=this[_0x7504('0xaf')]['config']['get'](_0x7504('0x7c'));this[_0x7504('0x59')][_0x7504('0x42')](_0x3d69a7)||this[_0x7504('0x59')]['addCommentThread']({'channelId':_0x3c0cbd,'threadId':_0x3d69a7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x231065=this['_commentsRepository'][_0x7504('0x121')](_0x3d69a7);_0x231065[_0x7504('0x115')](_0x7504('0xf0')),_0x231065[_0x7504('0xf0')]=!0x1,_0x253c8d[_0x7504('0x83')]=_0x231065;}[_0x7504('0x10d')](_0x38d222,_0x393db2,_0x527087,_0x3cc1d3){if(_0x38d222['type']!=_0x393db2||_0x38d222[_0x7504('0xf4')]!=_0x527087||_0x38d222[_0x7504('0x9f')]['id']!=_0x3cc1d3)throw this['editor'][_0x7504('0xc5')](_0x7504('0xbb')),new _0x1d1de9(_0x7504('0xbb'),this);}['_cutOutSuggestionMarker'](_0x2187e0,_0x381ed5){const _0x5de66f=_0x2187e0[_0x7504('0x22')]();if(_0x381ed5[_0x7504('0xde')](_0x5de66f))_0x2187e0['removeMarkers']();else{if(_0x5de66f[_0x7504('0x88')](_0x381ed5)){const _0x2d1f91=this[_0x7504('0x82')][_0x7504('0x5c')](_0x381ed5[_0x7504('0x7e')][_0x7504('0xb3')],'end');this['_setSuggestionRange'](_0x2187e0,this[_0x7504('0x82')][_0x7504('0x26')](_0x5de66f[_0x7504('0x7e')],_0x2d1f91));const _0x33a755=_0x388e22(),_0x2fc633=_0x2187e0[_0x7504('0x9f')]['id'],_0xfaf781=_0x2187e0['type']+':'+_0x2187e0[_0x7504('0xf4')];this[_0x7504('0x37')]({'id':_0x33a755,'type':_0xfaf781,'createdAt':new Date(),'authorId':_0x2fc633,'data':_0x2187e0['data'],'attributes':_0x2187e0[_0x7504('0xb6')]});const _0x120c62=this['_model'][_0x7504('0x5c')](_0x381ed5[_0x7504('0x4d')][_0x7504('0x2a')],_0x7504('0xc7')),_0x50aa12=this[_0x7504('0x82')][_0x7504('0x26')](_0x120c62,_0x5de66f[_0x7504('0x4d')]);this[_0x7504('0xe1')](_0xfaf781,_0x33a755,_0x2fc633,_0x50aa12);}else{if(_0x5de66f[_0x7504('0x54')](_0x381ed5[_0x7504('0x7e')])){const _0x5f08f0=this['_model'][_0x7504('0x5c')](_0x381ed5[_0x7504('0x7e')][_0x7504('0xb3')],_0x7504('0x4d'));this[_0x7504('0xce')](_0x2187e0,this[_0x7504('0x82')][_0x7504('0x26')](_0x5de66f[_0x7504('0x7e')],_0x5f08f0));}else{const _0x4f9b61=this[_0x7504('0x82')][_0x7504('0x5c')](_0x381ed5[_0x7504('0x4d')][_0x7504('0x2a')],_0x7504('0xc7'));this[_0x7504('0xce')](_0x2187e0,this[_0x7504('0x82')][_0x7504('0x26')](_0x4f9b61,_0x5de66f[_0x7504('0x4d')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2659a9){for(const {suggestion:_0x5ba1c0,meta:_0x3c3929}of this[_0x7504('0x97')](_0x2659a9,'insertion')){if(!_0x3c3929[_0x7504('0x5d')])continue;const _0x3865d2=_0x5ba1c0['getRanges']();for(const _0x40e564 of _0x3865d2)if(!_0x2659a9['getDifference'](_0x40e564)[_0x7504('0xbf')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x58abe7){const _0x165ce6=this[_0x7504('0xaf')]['plugins'][_0x7504('0x136')]('Users')[_0x7504('0x2d')](_0x58abe7);if(!_0x165ce6)throw new _0x1d1de9(_0x7504('0xff'),this);return _0x165ce6;}[_0x7504('0x89')](_0x907a){const _0x1f9bb7=this[_0x7504('0xaf')][_0x7504('0x16')]['get'](_0x7504('0xb')),_0x3cab26=_0x14fa2d(_0x7504('0xe2')+_0x907a),_0xd2978c=_0x1f9bb7['getUser'](_0x3cab26);return _0xd2978c||_0x1f9bb7[_0x7504('0x113')]({'id':_0x3cab26,'name':_0x907a});}[_0x7504('0x61')](_0x56db7e,_0x46dd32,_0x4fb9a7,_0x5c59e3,_0x148700){const _0x96e7fb=this[_0x7504('0x4e')](_0x5c59e3),_0x3c78c6=this[_0x7504('0x11c')][_0x7504('0xab')](_0x56db7e,_0x46dd32,_0x4fb9a7,_0x96e7fb,_0x148700,_0x28cf78=>this[_0x7504('0xd6')](_0x4fb9a7,{'attributes':_0x28cf78}));return this[_0x7504('0x10c')](_0x3c78c6,_0x7504('0xb7'),()=>{this[_0x7504('0xd6')](_0x4fb9a7,{'state':'accepted'});},{'priority':'high'}),this[_0x7504('0x10c')](_0x3c78c6,_0x7504('0xd5'),()=>{this[_0x7504('0xd6')](_0x4fb9a7,{'state':_0x7504('0xf9')});},{'priority':_0x7504('0x6c')}),this[_0x7504('0x10e')][_0x7504('0x85')](_0x4fb9a7,_0x3c78c6),this[_0x7504('0x11')][_0x7504('0x85')](_0x3c78c6,_0x7504('0xa1')),_0x3c78c6;}[_0x7504('0x137')](_0x3d5557){const _0x5eade9=_0x3d5557['split'](':');return{'group':_0x5eade9[0x0],'type':_0x5eade9[0x1],'subType':_0x5eade9[_0x7504('0xbf')]>=0x5?_0x5eade9[0x2]:null,'id':_0x5eade9[_0x7504('0xbf')]<0x5?_0x5eade9[0x2]:_0x5eade9[0x3],'authorId':_0x5eade9[_0x7504('0xbf')]<0x5?_0x5eade9[0x3]:_0x5eade9[0x4],'markerCount':0x6==_0x5eade9[_0x7504('0xbf')]?_0x5eade9[0x5]:null};}[_0x7504('0x17')](_0x3d94fa,_0x33efe1,_0x29c0b8){const _0x136468=_0x3d94fa[_0x7504('0x22')](),_0x382c6b=_0x136468[_0x7504('0x7e')],_0x2446c7=_0x136468[_0x7504('0x4d')];this['_setSuggestionRange'](_0x3d94fa,this[_0x7504('0x82')][_0x7504('0x26')](_0x382c6b,_0x33efe1));const _0x593be8=_0x388e22(),_0xb3b334=_0x3d94fa[_0x7504('0x9f')]['id'],_0x37783d=_0x3d94fa[_0x7504('0xf7')]+(_0x3d94fa[_0x7504('0xf4')]?':'+_0x3d94fa[_0x7504('0xf4')]:'');this[_0x7504('0x37')]({'id':_0x593be8,'type':_0x37783d,'createdAt':new Date(),'authorId':_0xb3b334,'originalSuggestionId':_0x3d94fa['id'],'attributes':_0x3d94fa[_0x7504('0xb6')],'data':_0x3d94fa['data']}),_0x7504('0x119')==_0x3d94fa[_0x7504('0xf7')]&&(_0x29c0b8=this['_model']['createPositionBefore'](_0x29c0b8[_0x7504('0x2a')])),this[_0x7504('0xe1')](_0x37783d,_0x593be8,_0xb3b334,this[_0x7504('0x82')][_0x7504('0x26')](_0x29c0b8,_0x2446c7));}['_findSuggestions'](_0x65885a,_0x1d382e=null){const _0x5f1a4a=[],_0x3257a4=this[_0x7504('0x82')]['schema'],_0x3ebbb2=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0xb'))['me'];for(const _0x4227e9 of this['getSuggestions']())if(_0x4227e9[_0x7504('0x40')]&&(!_0x1d382e||_0x4227e9[_0x7504('0xf7')]==_0x1d382e))for(const _0x414f63 of _0x4227e9[_0x7504('0x92')]()){const _0x3b64dc=_0x65885a[_0x7504('0x7e')][_0x7504('0xde')](_0x414f63[_0x7504('0x4d')])||_0x65885a['end'][_0x7504('0xde')](_0x414f63[_0x7504('0x7e')]);if(_0x3b64dc||_0x65885a[_0x7504('0x91')](_0x414f63)){const _0x1bc5f5=_0x65885a['containsRange'](_0x414f63)&&Bt(_0x3257a4,_0x414f63[_0x7504('0x7e')],_0x65885a),_0x333191=_0x414f63[_0x7504('0x88')](_0x65885a)&&Bt(_0x3257a4,_0x65885a['start'],_0x414f63);_0x5f1a4a[_0x7504('0x39')]({'suggestion':_0x4227e9,'meta':{'isOwn':_0x3ebbb2==_0x4227e9[_0x7504('0x18')],'isNextTo':_0x3b64dc,'isInsideObject':_0x1bc5f5,'containsRangeInObject':_0x333191}});break;}}return _0x5f1a4a;}[_0x7504('0xe1')](_0x237599,_0x582bb8,_0x104258,_0x291dfb,_0x4f1124){this[_0x7504('0x82')]['change'](_0x47ea64=>{let _0xbcc225='suggestion:'+_0x237599+':'+_0x582bb8+':'+_0x104258;_0x4f1124&&(_0xbcc225=_0xbcc225+':'+_0x4f1124),_0x47ea64[_0x7504('0xd4')](_0xbcc225,{'range':_0x291dfb,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x7504('0x10')](_0xa544ea){const _0x2e1d34=_0xa544ea[_0x7504('0xa2')],_0xc6b379=_0xa544ea[_0x7504('0x62')];_0xa544ea[_0x7504('0xa2')]=null,null!=_0x2e1d34&&(_0x2e1d34[_0x7504('0x62')]=null),_0xa544ea['next']=null,null!=_0xc6b379&&(_0xc6b379[_0x7504('0xa2')]=null),'ready'==this[_0x7504('0x11')]['get'](_0xa544ea)&&(this[_0x7504('0x11')][_0x7504('0x85')](_0xa544ea,_0x7504('0xb4')),this[_0x7504('0x2f')](_0x7504('0xb9'),_0xa544ea,_0x2e1d34,_0xc6b379));}[_0x7504('0x37')](_0x204792){const _0x47bd1d=_0x204792['id'],_0x5403d9=this[_0x7504('0x1e')](_0x204792);if(this[_0x7504('0x126')]&&this[_0x7504('0x126')][_0x7504('0xd1')]){const _0x237b3e=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0x28')),_0x74605e=_0x5403d9[_0x7504('0x3c')],_0x380cbc=_0x5403d9['subType']?_0x5403d9[_0x7504('0xf7')]+':'+_0x5403d9[_0x7504('0xf4')]:_0x5403d9[_0x7504('0xf7')],_0x5a4044=this[_0x7504('0xaf')][_0x7504('0xcd')],_0x4e116b=_0x237b3e[_0x7504('0x9a')](_0x1607e6(_0x5a4044,_0x7504('0xdc'))),_0x105b3f={'id':_0x47bd1d,'type':_0x380cbc,'hasComments':_0x74605e,'data':_0x204792[_0x7504('0x11a')]||null,'originalSuggestionId':_0x204792[_0x7504('0xe7')]||null,'attributes':_0x5403d9['attributes']};this['_adapter']['addSuggestion'](_0x105b3f)['then'](_0x583300=>{_0x5403d9['_saved']=!0x0,_0x237b3e['remove'](_0x4e116b),_0x583300&&_0x583300[_0x7504('0x10b')]&&(this[_0x7504('0x10e')]['get'](_0x47bd1d)[_0x7504('0x10b')]=_0x583300[_0x7504('0x10b')]);})[_0x7504('0xba')](_0x224714=>{throw _0x57acab(_0x7504('0x86')),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5403d9[_0x7504('0xd5')]();}),_0x5403d9[_0x7504('0x5')](),this[_0x7504('0x10e')][_0x7504('0x70')](_0x5403d9['id']),this[_0x7504('0x11')][_0x7504('0x70')](_0x5403d9),_0x224714;});}return _0x5403d9;}[_0x7504('0xd6')](_0x3f6eba,_0x8b37c4){const _0x50bc06=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0x28')),_0x232759=this['getSuggestion'](_0x3f6eba);if(this[_0x7504('0x126')]&&this[_0x7504('0x126')][_0x7504('0x4c')]){if(_0x232759[_0x7504('0x36')]){const _0x135e2c=_0x50bc06[_0x7504('0x9a')](_0x1607e6(this[_0x7504('0xaf')][_0x7504('0xcd')],_0x7504('0xdc')));this['_adapter'][_0x7504('0x4c')](_0x3f6eba,_0x8b37c4)[_0x7504('0xa0')](()=>{_0x50bc06[_0x7504('0x46')](_0x135e2c);});}else _0x232759['on'](_0x7504('0xca'),()=>{this[_0x7504('0xd6')](_0x3f6eba,_0x8b37c4);});}}[_0x7504('0xda')](_0x505065){if(!this[_0x7504('0x126')]||!this[_0x7504('0x126')][_0x7504('0xaa')])throw new _0x1d1de9(_0x7504('0x103'),this);return this[_0x7504('0x126')]['getSuggestion'](_0x505065);}[_0x7504('0x32')](_0x32b954){const {id:_0x17c1fa,type:_0x562057,subType:_0x5244db,authorId:_0x12ab9d}=this[_0x7504('0x137')](_0x32b954),_0x1ab31c=this[_0x7504('0x10e')]['get'](_0x17c1fa)||this[_0x7504('0x61')](_0x562057,_0x5244db,_0x17c1fa,_0x12ab9d,{});switch(this[_0x7504('0x10d')](_0x1ab31c,_0x562057,_0x5244db,_0x12ab9d),this['_suggestionState'][_0x7504('0x136')](_0x1ab31c)){case _0x7504('0xa1'):this[_0x7504('0xda')](_0x17c1fa)[_0x7504('0xa0')](_0x3c1ee6=>{let _0x27460b=Promise[_0x7504('0xf8')]();_0x3c1ee6[_0x7504('0x3c')]&&(_0x27460b=this['_commentsRepository'][_0x7504('0xd0')]({'channelId':this[_0x7504('0xaf')][_0x7504('0xa7')][_0x7504('0x136')](_0x7504('0x7c')),'threadId':_0x17c1fa})),_0x27460b[_0x7504('0xa0')](()=>{this['addSuggestionData'](_0x3c1ee6)[_0x7504('0x36')]=!0x0;});}),this[_0x7504('0x11')][_0x7504('0x85')](_0x1ab31c,'markerReady');break;case _0x7504('0xb4'):this[_0x7504('0xd6')](_0x17c1fa,{'state':_0x7504('0x134')});case'dataReady':this[_0x7504('0x11')][_0x7504('0x85')](_0x1ab31c,_0x7504('0xf2')),this[_0x7504('0x2f')]('suggestionLoaded',_0x1ab31c);break;case'ready':this[_0x7504('0x2f')](_0x7504('0x9c'),_0x1ab31c);}return _0x1ab31c[_0x7504('0xe3')](_0x32b954),_0x1ab31c;}[_0x7504('0x75')](_0x39df42){const _0x3c2e10=Array[_0x7504('0x31')](_0x39df42)[_0x7504('0x51')](_0x4af9cb=>!_0x4af9cb[_0x7504('0x72')]),_0x487f57=this['getSuggestions']({'skipNotAttached':!0x0})[_0x7504('0x51')](_0x5d9814=>!_0x5d9814[_0x7504('0x72')]),_0x4df97d=_0x487f57[_0x7504('0x51')](_0x35f512=>!_0x39df42['has'](_0x35f512)),_0x46a559=new Map(_0x487f57[_0x7504('0x43')](_0x65da9e=>[_0x65da9e,this['_suggestionFactory'][_0x7504('0x12a')](_0x65da9e[_0x7504('0xf7')],_0x65da9e['subType'],_0x7504('0xdb'))])),_0x13da34=new Map(_0x487f57[_0x7504('0x43')](_0x37343c=>[_0x37343c,_0x37343c[_0x7504('0x22')]()])),_0x1c7b2c=new Set(),_0x4e1185=new Set();for(let _0x1b8aa0=0x0;_0x1b8aa0<_0x3c2e10[_0x7504('0xbf')];_0x1b8aa0++)_0x135c4a(_0x3c2e10[_0x1b8aa0],_0x3c2e10,_0x1b8aa0+0x1);for(let _0x4218ed=0x0;_0x4218ed<_0x3c2e10[_0x7504('0xbf')];_0x4218ed++)_0x135c4a(_0x3c2e10[_0x4218ed],_0x4df97d,0x0);for(let _0x11d7b2=0x0;_0x11d7b2<_0x3c2e10[_0x7504('0xbf')];_0x11d7b2++){const _0x1966c0=_0x3c2e10[_0x11d7b2];!_0x4e1185['has'](_0x1966c0)&&_0x1966c0[_0x7504('0xa2')]&&(_0x1966c0[_0x7504('0xa2')]['next']===_0x1966c0&&(_0x1966c0[_0x7504('0xa2')]['next']=null),_0x1966c0[_0x7504('0xa2')]=null),!_0x1c7b2c[_0x7504('0x7d')](_0x1966c0)&&_0x1966c0[_0x7504('0x62')]&&(_0x1966c0[_0x7504('0x62')]['previous']===_0x1966c0&&(_0x1966c0['next']['previous']=null),_0x1966c0['next']=null);}function _0x135c4a(_0x3fd5c7,_0x45a2d6,_0x502fa6){for(let _0x18b8af=_0x502fa6;_0x18b8af<_0x45a2d6[_0x7504('0xbf')];_0x18b8af++){const _0x487946=_0x334f14(_0x3fd5c7,_0x45a2d6[_0x18b8af]);_0x487946&&(_0x487946[0x0]['next']=_0x487946[0x1],_0x487946[0x1][_0x7504('0xa2')]=_0x487946[0x0],_0x1c7b2c['add'](_0x487946[0x0]),_0x4e1185[_0x7504('0x9a')](_0x487946[0x1]));}}function _0x334f14(_0x466cb4,_0x1be3c1){if(_0x466cb4[_0x7504('0x18')]['id']!==_0x1be3c1[_0x7504('0x18')]['id'])return null;const _0x5e4cf6=_0x46a559[_0x7504('0x136')](_0x466cb4)(_0x466cb4,_0x1be3c1,_0x13da34[_0x7504('0x136')](_0x466cb4),_0x13da34[_0x7504('0x136')](_0x1be3c1));if(!_0x5e4cf6)return null;return _0x46a559[_0x7504('0x136')](_0x1be3c1)(_0x466cb4,_0x1be3c1,_0x13da34[_0x7504('0x136')](_0x466cb4),_0x13da34['get'](_0x1be3c1))?_0x5e4cf6[0x1][_0x7504('0x83')]&&_0x5e4cf6[0x1]['commentThread'][_0x7504('0xbf')]?null:_0x5e4cf6:null;}}[_0x7504('0x1c')](_0x10e54f){const _0x4a8043=Array['from'](_0x10e54f),_0xe81c61=this[_0x7504('0x106')]({'skipNotAttached':!0x0}),_0x11df03=_0xe81c61['filter'](_0xe22deb=>!_0x10e54f[_0x7504('0x7d')](_0xe22deb)),_0x58eab0=new Map(_0x4a8043[_0x7504('0x43')](_0x464769=>[_0x464769,this[_0x7504('0x11c')][_0x7504('0x12a')](_0x464769['type'],_0x464769[_0x7504('0xf4')],_0x7504('0x96'))])),_0x5a9903=new Map(_0xe81c61['map'](_0x30924b=>[_0x30924b,_0x30924b['getRanges']()]));for(let _0x230e52=0x0;_0x230e52<_0x4a8043[_0x7504('0xbf')];_0x230e52++){if(_0x5aaa80(this,_0x4a8043[_0x230e52],_0x4a8043,_0x230e52+0x1))return!0x0;}for(let _0x5ca00f=0x0;_0x5ca00f<_0x4a8043[_0x7504('0xbf')];_0x5ca00f++){if(_0x5aaa80(this,_0x4a8043[_0x5ca00f],_0x11df03,0x0))return!0x0;}return!0x1;function _0x5aaa80(_0x415639,_0x17710b,_0x595ad5,_0x3bd9e8){for(let _0x2d3a53=_0x3bd9e8;_0x2d3a53<_0x595ad5[_0x7504('0xbf')];_0x2d3a53++){const _0x1de88e=_0x595ad5[_0x2d3a53];if(_0x1de88e[_0x7504('0xf7')]!==_0x17710b[_0x7504('0xf7')]||_0x1de88e[_0x7504('0x18')]['id']!==_0x17710b[_0x7504('0x18')]['id']||_0x1de88e[_0x7504('0xf4')]!==_0x17710b[_0x7504('0xf4')])continue;const _0x3df639=_0x58eab0[_0x7504('0x136')](_0x17710b),_0xe79de6=_0x5a9903[_0x7504('0x136')](_0x17710b),_0x54acb0=_0x5a9903['get'](_0x1de88e),_0x1d2017=_0x17710b[_0x7504('0x83')]&&_0x17710b[_0x7504('0x83')]['length'],_0x1efa2d=_0x1de88e['commentThread']&&_0x1de88e[_0x7504('0x83')][_0x7504('0xbf')];if(!_0x1d2017&&_0x3df639(_0x54acb0,_0xe79de6))return _0x415639[_0x7504('0x48')](_0x1de88e,_0x17710b),_0x5a9903[_0x7504('0x70')](_0x17710b),!0x0;if(!_0x1efa2d&&_0x3df639(_0xe79de6,_0x54acb0))return _0x415639[_0x7504('0x48')](_0x17710b,_0x1de88e),_0x5a9903[_0x7504('0x70')](_0x1de88e),!0x0;}return!0x1;}}[_0x7504('0x48')](_0x25a86e,_0x5709ff){if(_0x25a86e[_0x7504('0x72')])for(const _0x9f8b7a of _0x5709ff['getRanges']())_0x25a86e['addRange'](_0x9f8b7a);else{const _0x357455=_0x5709ff['getFirstRange']()[_0x7504('0x4d')];this['_setSuggestionRange'](_0x25a86e,this['_model']['createRange'](_0x25a86e['getFirstRange']()[_0x7504('0x7e')],_0x357455));}_0x5709ff['removeMarkers']();}}class Dt{constructor(_0x38aca6){this[_0x7504('0x10a')]=_0x38aca6,this[_0x7504('0x82')]=_0x38aca6[_0x7504('0x1a')],this[_0x7504('0x8e')]=new Map(),this[_0x7504('0x9e')]=new Map(),this['_registerDefaultCallbacks']();}[_0x7504('0xab')](_0x2a41a0,_0x18c7ec,_0x17c992,_0x1daa2e,_0x10eae9,_0x1d7ee6){return new _0x371c78(this[_0x7504('0x82')],{'type':_0x2a41a0,'subType':_0x18c7ec,'id':_0x17c992,'author':_0x1daa2e,'creator':_0x1daa2e,'attributes':_0x10eae9,'onAttributesChange':_0x1d7ee6,'onAccept':(..._0x6fdd19)=>this['getSuggestionCallback'](_0x2a41a0,_0x18c7ec,_0x7504('0xb7'))(..._0x6fdd19),'onDiscard':(..._0x4ec520)=>this[_0x7504('0x12a')](_0x2a41a0,_0x18c7ec,_0x7504('0xd5'))(..._0x4ec520)});}['registerCustomCallback'](_0x208b3b,_0x418826,_0x28255b,_0x1615b2){const _0x369505=_0x208b3b+':'+_0x418826+':'+_0x28255b;this[_0x7504('0x8e')][_0x7504('0x85')](_0x369505,_0x1615b2);}['getSuggestionCallback'](_0xbc19c4,_0x5b2e10,_0x5cecab){const _0x3f4199=_0xbc19c4+':'+_0x5b2e10+':'+_0x5cecab;return this[_0x7504('0x8e')][_0x7504('0x136')](_0x3f4199)||this[_0x7504('0x9e')]['get'](_0xbc19c4+':'+_0x5cecab);}['_registerDefaultCallbacks'](){const _0xeb0917=()=>{},_0x5968ca=_0x472030=>{_0x472030['sort']((_0x34c151,_0x1982ac)=>_0x34c151[_0x7504('0x7e')][_0x7504('0xbe')](_0x1982ac[_0x7504('0x7e')])?0x1:-0x1),this['_model'][_0x7504('0x81')](_0x150098=>{for(const _0xfd606c of _0x472030){let _0x5d97ea;_0x5d97ea=_0xfd606c[_0x7504('0x4d')][_0x7504('0x6e')]&&_0xfd606c['end'][_0x7504('0x2a')]==_0xfd606c[_0x7504('0x7e')][_0x7504('0x2')]?_0x150098[_0x7504('0xf')](_0xfd606c[_0x7504('0x7e')][_0x7504('0x2')],'on'):_0x150098[_0x7504('0xf')](_0xfd606c),this[_0x7504('0x82')][_0x7504('0x102')](_0x5d97ea,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2e421c=(_0x215635,_0x5b36c2)=>{this[_0x7504('0x82')][_0x7504('0x81')](_0x556eb8=>{const {commandName:_0x2bb0bd,commandParams:_0x5427b2=[]}=_0x5b36c2,_0x1608a4=_0x215635['map'](_0x3022c9=>(_t(_0x3022c9)&&(_0x3022c9=this[_0x7504('0x82')][_0x7504('0x26')](_0x3022c9[_0x7504('0x4d')])),_0x3022c9))[_0x7504('0x51')](_0x568b43=>_0x7504('0x45')!==_0x568b43[_0x7504('0xa4')][_0x7504('0xef')]);if(_0x1608a4[_0x7504('0xbf')]<0x1)return;const _0x3aa51d=Array[_0x7504('0x31')](this[_0x7504('0x82')][_0x7504('0xfb')]['selection']['getRanges']())[_0x7504('0x43')](_0x4c13a5=>_0x3d2980[_0x7504('0x79')](_0x4c13a5));_0x556eb8[_0x7504('0x35')](_0x1608a4);for(const _0x319e8f of this['_editor']['commands']['commands']())_0x319e8f['refresh']();_0x5427b2['push']({'forceDefaultExecution':!0x0}),this[_0x7504('0x10a')][_0x7504('0x12')](_0x2bb0bd,..._0x5427b2);const _0x4be6e1=_0x3aa51d[_0x7504('0x51')](_0x57efaa=>_0x7504('0x45')!=_0x57efaa[_0x7504('0xa4')][_0x7504('0xef')]);_0x4be6e1[_0x7504('0xbf')]>0x0&&_0x556eb8[_0x7504('0x35')](_0x4be6e1);for(const _0x21794e of _0x3aa51d)_0x21794e['detach']();});},_0x34317d=(_0x5bb7eb,_0x1f3f9a)=>0x1==_0x5bb7eb['length']&&0x1==_0x1f3f9a['length']&&_0x5bb7eb[0x0][_0x7504('0x4d')][_0x7504('0xde')](_0x1f3f9a[0x0][_0x7504('0x7e')]),_0x26f2d3=(_0x2a3d21,_0x16e934,_0x1272b0,_0x537d72)=>xt(_0x2a3d21,_0x16e934,_0x1272b0,_0x537d72,this[_0x7504('0x82')])?[_0x2a3d21,_0x16e934]:xt(_0x16e934,_0x2a3d21,_0x537d72,_0x1272b0,this['_model'])?[_0x16e934,_0x2a3d21]:null;this[_0x7504('0x9e')]['set'](_0x7504('0x6'),_0xeb0917),this['_defaultCallbacks'][_0x7504('0x85')](_0x7504('0xbd'),_0x5968ca),this[_0x7504('0x9e')][_0x7504('0x85')]('insertion:join',_0x34317d),this['_defaultCallbacks'][_0x7504('0x85')](_0x7504('0x99'),_0x26f2d3),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x6a'),_0x5968ca),this[_0x7504('0x9e')][_0x7504('0x85')]('deletion:discard',_0xeb0917),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x4b'),_0x34317d),this['_defaultCallbacks'][_0x7504('0x85')](_0x7504('0xdf'),_0x26f2d3),this['_defaultCallbacks'][_0x7504('0x85')]('formatInline:accept',_0x2e421c),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x130'),_0xeb0917),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x76'),_0x34317d),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x7b'),_0xeb0917),this['_defaultCallbacks']['set'](_0x7504('0x25'),_0x2e421c),this['_defaultCallbacks'][_0x7504('0x85')](_0x7504('0x2e'),_0xeb0917),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0xc0'),_0x34317d),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x11b'),_0xeb0917);}}function Bt(_0x3ae5ef,_0x284e68,_0x5c9055){for(const _0x325629 of _0x284e68[_0x7504('0x2a')][_0x7504('0xe0')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x325629['root']==_0x325629)return!0x1;if(!_0x5c9055[_0x7504('0x107')](_0x325629))return!0x1;if(_0x3ae5ef[_0x7504('0xfa')](_0x325629)||_0x3ae5ef[_0x7504('0x9b')](_0x325629))return!0x0;}return!0x1;}function _t(_0xd65567){return _0xd65567[_0x7504('0x4d')][_0x7504('0x2a')]==_0xd65567[_0x7504('0x7e')][_0x7504('0x2')]&&_0xd65567[_0x7504('0x4d')][_0x7504('0x8f')];}function Mt(_0x31364f,_0x1c974f,_0x731afe,_0x478adf){const _0xeca69a=_0x514e89=>!_0x514e89[_0x7504('0x116')]['is'](_0x7504('0x49'))&&!_0x478adf[_0x7504('0xfa')](_0x514e89[_0x7504('0x116')]),_0x140f9b=_0x31364f['start'][_0x7504('0x117')](_0xeca69a),_0x570921=_0x31364f[_0x7504('0x4d')][_0x7504('0x117')](_0xeca69a,{'direction':_0x7504('0x69')});return(!_0x31364f[_0x7504('0x7e')][_0x7504('0xde')](_0x140f9b)||!_0x31364f['end']['isEqual'](_0x570921))&&(_0x140f9b[_0x7504('0xbe')](_0x570921)?_0x731afe[_0x7504('0x8a')](_0x1c974f,{'range':_0x731afe[_0x7504('0x26')](_0x140f9b,_0x570921)}):_0x731afe[_0x7504('0xae')](_0x1c974f),!0x0);}function $t(_0x15b7ab){return _0x14fa2d(_0x15b7ab);}function Nt(_0x541f44){const _0x2ea2be=_0x541f44[_0x7504('0x7e')][_0x7504('0x2')];return _0x2ea2be&&_0x2ea2be['is'](_0x7504('0x3f'));}function Rt(_0x4e93d1,_0xf143d5){const _0x30a328=_0xf143d5[_0x7504('0x1')][_0x7504('0xfa')](_0x4e93d1)||_0xf143d5['schema']['isSelectable'](_0x4e93d1);return _0xf143d5[_0x7504('0x26')](_0xf143d5[_0x7504('0x5c')](_0x4e93d1,'before'),_0x30a328?_0xf143d5['createPositionAfter'](_0x4e93d1):_0xf143d5[_0x7504('0x5c')](_0x4e93d1,_0x7504('0x4d')));}function xt(_0x4f50c0,_0x2741fa,_0x211ace,_0x1221f5,_0x1822ad){if(_0x211ace[_0x7504('0x4d')]['isEqual'](_0x1221f5['start']))return!0x0;if(_0x4f50c0[_0x7504('0xf7')]!=_0x2741fa[_0x7504('0xf7')])return!0x1;if(!_0x211ace[_0x7504('0x4d')]['isTouching'](_0x1221f5['start']))return!0x1;const _0x3ef143=_0x1822ad[_0x7504('0x26')](_0x211ace[_0x7504('0x4d')],_0x1221f5[_0x7504('0x7e')])[_0x7504('0xec')]();for(const _0x379361 of _0x3ef143)if([_0x7504('0xe6'),_0x7504('0xc4')]['includes'](_0x379361[_0x7504('0xf7')])&&_0x1822ad['schema'][_0x7504('0x9b')](_0x379361[_0x7504('0x116')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x2d08=['attributes','isInContent','refresh','_addThreadToSuggestion','isObject','widget','toViewElement','insertion:chain','getShiftedBy','subType','isEqual','nodeBefore','acceptSuggestion','isSelectable','formatBlock:discard','getAncestors','collaboration.channelId','change:activeMarkers','getMarkers','_mergeNestedSuggestions','track-changes-user-not-found','pluginName','deletion:accept','createSelection','containsPosition','isRemovable','dataDowncast','_setSuggestionData','createPositionBefore','clone','locale','ready','suggestion:','PENDING_ACTION_SUGGESTION','bindElementToMarker','_registerDefaultCallbacks','_createSuggestion','define','CommentsRepository','schema','formatGroupId','forceDefaultExecution','buildSuggestion','options','discardSuggestion','addMarker:suggestion:formatBlock','insertion:accept','getFirstMarker','every','getSuggestionCallback','fromRange','removeMarker:suggestion:formatBlock','markBlockFormat','toJSON','_onDiscard','_saved','set','getChangedMarkers','consume','isTouching','formatBlock:accept','insert','name','isCollapsed','formatBlock:join','removeComment','then','markerToHighlight','editor','containsRangeInObject','TrackChangesEditing','nodeAfter','isBefore','range','ck-suggestion-marker--active','addRange','return','createdAt','ck-suggestion-marker','for','always','createRangeIn','never','resolve','high','editing','trackChanges.mergeNestedSuggestions','insertion:','addClass','creator','addMarkerName','track-changes-adapter-already-set','addSuggestionData','length','fire','_splitMarkerName','isLimit','forward','removeMarker','createPositionAt','splitPosition','_removeSuggestion','showSuggestionHighlights','_joinWithAdjacentSuggestions','_trackFormatChanges','reconvertMarker','_rangeIsInLocalUserInsertion','change:data','size','after','skipNestingCheck','track-changes-adapter-missing-getsuggestion','registerCustomCallback','authorName','add','unbind','_handleNewSuggestionMarker','howMany','formatInline:accept','removeMarkers','getAllAdjacentSuggestions','next','_commentsRepository','deletion:','_getExternalAuthor','getSuggestions','insertContent','_customCallbacks','suggestion','ck-suggestion-marker-','deletion','targetPosition','getAttribute','$graveyard','sort','getUser','formatBlock:chain','join','notReady','markerToData','formatInline:chain','markInsertion','isUndo','document','addMarker:suggestion','_checkSuggestionCorrectness','getRanges','_getAuthorFromId','isAtEnd','selection','formatInline:join','get','type','getDifference','end','addCommentThread','newRange','documentSelection','removeClass','hasComments','default','acceptAllSuggestions','filter','_joinSuggestions','error-saving-suggestion-data-suggestion-discarded','suggestion-type','_addSuggestionMarker','differ','discardSelectedSuggestions','_suggestionFactory','fetchCommentThread','batch','_model','normal','enableReadOnlyMode','createRange','getSuggestion','editingDowncast','getLastMatchingPosition','detach','conversion','_findSuggestions','plugins','marker-count','remove','commentThread','parent','formatInline:discard','backward','setTo','elementStart','ck-suggestion-marker-formatBlock','track-changes-suggestion-data-mismatch','getRange','getNearestSelectionRange','writer','deletion:discard','discard','rootName','change:_saved','includes','updateMarker','removeAttribute','group','element','acceptSelectedSuggestions','track-changes-command-not-found','markers','markerName','createPositionAfter','model','isOwn','trackChanges','low','has','_isForcedDefaultExecutionBlock','formatInline','enableCommand','map','root','markMultiRangeDeletion','rejected','registerPostFixer','move','addUser','_cutOutSuggestionMarker','highest','multi','chain','splice','getCustomProperty','_breakSuggestionMarker','markerReady','formatBlock:','position','upcast','discardAllSuggestions','insertion','accept','suggestionLoaded','getMultiRangeId','_updateSuggestionData','_enabledCommands','_getSuggestionData','values','isBlock','before','_suggestions','dataReady','getFirstRange','markerNameToElements','_editor','hasSuggestion','data-suggestion','author','_suggestionState','oldRange','containsRange','clear','authoredAt','isMultiRange','multipleBlocks','trackChanges.trackFormatChanges','external:','markDeletion','isAfter','enqueueChange','stopListening','listenTo','head','updateSuggestion','setAttribute','_descriptionFactory','isNextTo','value','from','commandName','suggestionChanged','data','rethrowUnexpectedError','formatInline:','isIntersectingWithRange','trackChangesCommand','previous','getItems','_setSuggestionRange','delete','getIntersection','some','change','adapter','stop','commands','Users','addHighlight','$marker','fromCharCode','deletion:chain','_adapter','deletion:join','deleteContent','hasCommentThread','substr','_defaultCallbacks','start','PendingActions','setSelection','elementToElement','config','getWalker','push','consumable','mapper','formatBlock','isInsideObject','item','removed','isExternal','split'];(function(_0x3bb2f7,_0x2d085f){const _0x36d7f6=function(_0x3d5382){while(--_0x3d5382){_0x3bb2f7['push'](_0x3bb2f7['shift']());}};_0x36d7f6(++_0x2d085f);}(_0x2d08,0x15f));const _0x36d7=function(_0x3bb2f7,_0x2d085f){_0x3bb2f7=_0x3bb2f7-0x0;let _0x36d7f6=_0x2d08[_0x3bb2f7];return _0x36d7f6;};import{Plugin as _0x2b774b,PendingActions as _0x31f5cc}from'ckeditor5/src/core';import{LiveRange as _0x256bfb}from'ckeditor5/src/engine';import{CKEditorError as _0x5e2e59,uid as _0x235188,priorities as _0x4e50d7,logWarning as _0x33b32f}from'ckeditor5/src/utils';import{toWidget as _0x4179e4}from'ckeditor5/src/widget';import{Users as _0x4365be,hashObject as _0x52b371}from'ckeditor5-collaboration/src/collaboration-core';import _0x7d462c from'./commands/trackchangescommand';import _0x435636 from'./commands/acceptsuggestioncommand';import _0xbf7df2 from'./commands/discardsuggestioncommand';import _0x1b9423 from'./commands/executeonallsuggestionscommand';import _0x54807a from'./commands/executeonselectedsuggestionscommand';import _0x2c1eb8 from'./suggestion';import _0x505752 from'./suggestiondescriptionfactory';import _0x468305 from'./integrations/alignment';import _0x1ab1c0 from'./integrations/basicstyles';import _0x492e48 from'./integrations/blockquote';import _0x367618 from'./integrations/ckbox';import _0x236507 from'./integrations/codeblock';import _0x2c8c86 from'./integrations/comments';import _0x3f86d1 from'./integrations/deletecommand';import _0x32f345 from'./integrations/documentlist';import _0x4d96d0 from'./integrations/entercommand';import _0x4dcc72 from'./integrations/findandreplace';import _0x6a6918 from'./integrations/font';import _0x5d4522 from'./integrations/formatpainter';import _0x6a449d from'./integrations/heading';import _0x278c1e from'./integrations/highlight';import _0x1c1071 from'./integrations/horizontalline';import _0x196340 from'./integrations/htmlembed';import _0x4ad1f9 from'./integrations/image';import _0xa06ae0 from'./integrations/imagereplace';import _0x1c7c73 from'./integrations/importword';import _0x5e1537 from'./integrations/indent';import _0xd758c7 from'./integrations/inputcommand';import _0x50a90e from'./integrations/link';import _0x39f7f7 from'./integrations/list';import _0x313822 from'./integrations/listproperties';import _0x8b374e from'./integrations/mediaembed';import _0xaa6b20 from'./integrations/mention';import _0xa7714b from'./integrations/pagebreak';import _0x56fa38 from'./integrations/paragraph';import _0x42b82d from'./integrations/removeformat';import _0xa85d68 from'./integrations/restrictededitingmode';import _0x537861 from'./integrations/shiftentercommand';import _0x583149 from'./integrations/standardeditingmode';import _0xd6b93d from'./integrations/style';import _0x39af0d from'./integrations/table';import _0x5bca12 from'./integrations/tablemergesplit';import _0x55f7a1 from'./integrations/tableheadings';import _0x35ed6a from'./integrations/tableclipboard';import _0x4d1423 from'./integrations/tablecolumnresize';import _0x112a72 from'./integrations/template';import _0x212c65 from'./integrations/tableofcontents';import _0x4e9a2b from'./integrations/title';import _0x523781 from'./integrations/undo';import{getTranslation as _0x2e9973}from'./utils/common-translations';import _0xdec815 from'./integrations/tablecaption';import _0x506f99 from'./integrations/documentlistproperties';import _0x3bcdcf from'./integrations/tableproperties';export default class p extends _0x2b774b{static get['requires'](){return[_0x36d7('0x6'),_0x4365be,_0x31f5cc,_0x468305,_0x1ab1c0,_0x492e48,_0x367618,_0x236507,_0x2c8c86,_0x3f86d1,_0x32f345,_0x506f99,_0x4d96d0,_0x4dcc72,_0x6a6918,_0x5d4522,_0x6a449d,_0x278c1e,_0x1c1071,_0x196340,_0x4ad1f9,_0xa06ae0,_0x1c7c73,_0x5e1537,_0xd758c7,_0x50a90e,_0x39f7f7,_0x313822,_0x8b374e,_0xaa6b20,_0xa7714b,_0x56fa38,_0x42b82d,_0xa85d68,_0x537861,_0x583149,_0xd6b93d,_0x39af0d,_0x5bca12,_0x55f7a1,_0xdec815,_0x35ed6a,_0x4d1423,_0x212c65,_0x3bcdcf,_0x112a72,_0x4e9a2b,_0x523781];}static get[_0x36d7('0x134')](){return _0x36d7('0x26');}constructor(_0x58dded){function _0x4c59b0(_0x57ab65){return _0x57ab65['map'](_0x577478=>String[_0x36d7('0x108')](_0x577478))[_0x36d7('0x69')]('');}super(_0x58dded),this['set']('activeMarkers',[]),this['on'](_0x36d7('0x130'),(_0x1b69e6,_0x456def,_0x287e19,_0x5c2520)=>{this['_model']['change'](()=>{for(const _0x2fc182 of[..._0x5c2520,..._0x287e19])this[_0x36d7('0x8c')][_0x36d7('0xaf')][_0x36d7('0xb6')](_0x2fc182)&&_0x58dded[_0x36d7('0x35')][_0x36d7('0x49')](_0x2fc182);});}),this[_0x36d7('0xf0')]=new _0x505752(this[_0x36d7('0x24')][_0x36d7('0xb2')]['schema'],this['editor'][_0x36d7('0x13d')]),this['_adapter']=null,this[_0x36d7('0x89')]=new Dt(this[_0x36d7('0x24')]),this[_0x36d7('0xd7')]=new Map(),this[_0x36d7('0x5a')]=_0x58dded[_0x36d7('0x96')][_0x36d7('0x77')](_0x36d7('0x6')),this['_enabledCommands']=new Set(),this['_model']=this[_0x36d7('0x24')]['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x58dded[_0x36d7('0x114')][_0x36d7('0x5')](_0x36d7('0xe6'),_0x36d7('0x80')),this[_0x36d7('0x48')]=_0x58dded[_0x36d7('0x114')][_0x36d7('0x77')]('trackChanges.trackFormatChanges'),_0x58dded[_0x36d7('0x114')][_0x36d7('0x5')](_0x36d7('0x36'),!0x0),this[_0x36d7('0x132')]=_0x58dded[_0x36d7('0x114')]['get'](_0x36d7('0x36')),this['trackChangesCommand']=new _0x7d462c(_0x58dded,this[_0x36d7('0xd2')]),this[_0x4c59b0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4c59b0([0x34,0x30,0x34,0x36,0x31,0x34,0x32,0x34]);}['init'](){const _0x26dc25=this[_0x36d7('0x24')];_0x26dc25['conversion'][_0x36d7('0x2f')](_0x36d7('0x91'))[_0x36d7('0x23')]({'model':_0x36d7('0x60'),'view':_0x22a098=>{const {id:_0x2a7c38,type:_0x1e55bd}=this['_splitMarkerName'](_0x22a098['markerName']),_0x778903=['ck-suggestion-marker',_0x36d7('0x61')+_0x1e55bd];let _0x147514=0xbb8;return this['activeMarkers'][_0x36d7('0xa8')](_0x22a098[_0x36d7('0xb0')])&&(_0x778903[_0x36d7('0x116')](_0x36d7('0x2a')),_0x147514=0xbc2),_0x36d7('0x62')==_0x1e55bd&&(_0x147514+=0x5),{'classes':_0x778903,'attributes':{'data-suggestion':_0x2a7c38},'priority':_0x147514};}}),_0x26dc25['conversion']['for'](_0x36d7('0x139'))[_0x36d7('0x52')](_0x399502=>{_0x399502['on'](_0x36d7('0x70'),(_0xbfb83e,_0x58c6d9,_0x1a5a2b)=>{if(!_0x1a5a2b[_0x36d7('0xb')][_0x36d7('0x46')])return;const _0x101d43=_0x58c6d9[_0x36d7('0x11b')];if(!_0x101d43)return;const _0x381a2c=_0x1a5a2b[_0x36d7('0x118')][_0x36d7('0x125')](_0x101d43);_0x26dc25[_0x36d7('0xb2')]['schema'][_0x36d7('0x123')](_0x101d43)&&_0x381a2c&&!_0x381a2c[_0x36d7('0xc6')](_0x36d7('0x124'))&&_0x381a2c['is']('containerElement')&&_0x4179e4(_0x381a2c,_0x1a5a2b[_0x36d7('0xa3')]);},{'priority':_0x36d7('0x34')});}),_0x26dc25[_0x36d7('0x94')][_0x36d7('0x2f')](_0x36d7('0x139'))[_0x36d7('0x23')]({'model':'suggestion','view':(_0x618297,_0x39372c)=>{if(!_0x39372c[_0x36d7('0xb')]['showSuggestionHighlights'])return null;const {type:_0x5198ef}=this[_0x36d7('0x3f')](_0x618297[_0x36d7('0xb0')]);return{'classes':[_0x36d7('0x2e'),_0x36d7('0x61')+_0x5198ef],'priority':0xbb8};}});const _0x433a3d=({showActiveMarkers:_0x3f84b4=!0x0}={})=>(_0x4f6476,_0x12d34c,_0x1cec3a)=>{if(!_0x12d34c[_0x36d7('0x11b')])return;if(_0x12d34c[_0x36d7('0x11b')]['is'](_0x36d7('0x75')))return void _0x1cec3a['consumable'][_0x36d7('0x1a')](_0x12d34c[_0x36d7('0x11b')],_0x4f6476[_0x36d7('0x1e')]);const _0x63a92=_0x1cec3a[_0x36d7('0x118')][_0x36d7('0x125')](_0x12d34c['item']);if(!(_0x12d34c[_0x36d7('0x11b')]['is'](_0x36d7('0xac'))&&_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x7')]['isBlock'](_0x12d34c[_0x36d7('0x11b')])&&!_0x63a92[_0x36d7('0xc6')](_0x36d7('0x106'))))return;const {id:_0xb9f4c8}=this[_0x36d7('0x3f')](_0x12d34c['markerName']);_0x1cec3a['writer']['addClass']([_0x36d7('0x2e'),_0x36d7('0x9f')],_0x63a92),_0x1cec3a['writer'][_0x36d7('0xef')](_0x36d7('0xdd'),_0xb9f4c8,_0x63a92),_0x1cec3a[_0x36d7('0x118')][_0x36d7('0x2')](_0x63a92,_0x12d34c[_0x36d7('0xb0')]),_0x3f84b4&&(this['activeMarkers'][_0x36d7('0xa8')](_0x12d34c[_0x36d7('0xb0')])?_0x1cec3a['writer'][_0x36d7('0x38')](_0x36d7('0x2a'),_0x63a92):_0x1cec3a[_0x36d7('0xa3')][_0x36d7('0x7e')](_0x36d7('0x2a'),_0x63a92));for(const _0x518a28 of _0x26dc25[_0x36d7('0xb2')][_0x36d7('0x31')](_0x12d34c[_0x36d7('0x11b')])[_0x36d7('0xfc')]())_0x1cec3a[_0x36d7('0x117')][_0x36d7('0x1a')](_0x518a28,_0x4f6476[_0x36d7('0x1e')]);_0x1cec3a[_0x36d7('0x117')]['consume'](_0x12d34c[_0x36d7('0x11b')],_0x4f6476[_0x36d7('0x1e')]);};_0x26dc25[_0x36d7('0x94')][_0x36d7('0x2f')](_0x36d7('0x139'))[_0x36d7('0x52')](_0x5b295b=>{_0x5b295b['on'](_0x36d7('0xd'),(_0x557e41,_0x14c000,_0x4276f3)=>{_0x4276f3[_0x36d7('0xb')]['showSuggestionHighlights']&&_0x433a3d({'showActiveMarkers':!0x1})(_0x557e41,_0x14c000,_0x4276f3);},{'priority':_0x36d7('0xc2')});}),_0x26dc25['conversion'][_0x36d7('0x2f')](_0x36d7('0x139'))[_0x36d7('0x6b')]({'model':_0x36d7('0x60'),'view':(_0x571a3f,_0x433a87)=>_0x433a87[_0x36d7('0xb')][_0x36d7('0x46')]?null:{'group':_0x36d7('0x60'),'name':_0x571a3f[_0x36d7('0x10e')](0xb)}}),_0x26dc25[_0x36d7('0x94')][_0x36d7('0x2f')](_0x36d7('0xcb'))[_0x36d7('0x113')]({'view':{'name':_0x36d7('0x60'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x8d1c1f,{writer:_0x3ab248})=>{let _0x3c72e5=_0x36d7('0x0')+_0x8d1c1f[_0x36d7('0x64')](_0x36d7('0x85'))+':'+_0x8d1c1f[_0x36d7('0x64')]('id');return _0x8d1c1f[_0x36d7('0x64')]('marker-count')&&(_0x3c72e5+=':'+_0x8d1c1f[_0x36d7('0x64')](_0x36d7('0x97'))),_0x3ab248['createElement'](_0x36d7('0x107'),{'data-name':_0x3c72e5});}}),_0x26dc25['conversion'][_0x36d7('0x2f')]('upcast')['dataToMarker']({'view':_0x36d7('0x60')}),_0x26dc25[_0x36d7('0x94')][_0x36d7('0x2f')](_0x36d7('0x91'))['add'](_0x45a229=>{_0x45a229['on']('addMarker:suggestion:formatBlock',_0x433a3d(),{'priority':_0x36d7('0x34')});}),_0x26dc25[_0x36d7('0x94')]['for'](_0x36d7('0x91'))[_0x36d7('0x52')](_0x22c45f=>{_0x22c45f['on'](_0x36d7('0x13'),(_0x401734,_0x5234ee,_0x5532c7)=>{const _0x12cca5=_0x5532c7[_0x36d7('0x118')][_0x36d7('0xda')](_0x5234ee[_0x36d7('0xb0')]);if(_0x12cca5)for(const _0x5241aa of _0x12cca5)_0x5241aa[_0x36d7('0xc6')](_0x36d7('0x106'))||(_0x5532c7['writer'][_0x36d7('0x7e')]([_0x36d7('0x2e'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5241aa),_0x5532c7[_0x36d7('0xa3')][_0x36d7('0xaa')](_0x36d7('0xdd'),_0x5241aa),_0x5532c7[_0x36d7('0x118')]['unbindElementFromMarkerName'](_0x5241aa,_0x5234ee[_0x36d7('0xb0')]));},{'priority':_0x36d7('0x34')});}),_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x6f')][_0x36d7('0xbe')](_0x2d67c3=>{let _0x558594=!0x1;const _0x1b7319=Array[_0x36d7('0xf3')](_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x6f')][_0x36d7('0x87')][_0x36d7('0x19')]()),_0x2f5f5b=new Set();for(const {name:_0x211992,data:_0x4c0eac}of _0x1b7319){const {group:_0x39f8b7,type:_0x712d6,id:_0x3c4300}=this[_0x36d7('0x3f')](_0x211992);if(_0x36d7('0x60')!==_0x39f8b7)continue;const _0x54e2b4=this[_0x36d7('0xd7')][_0x36d7('0x77')](_0x3c4300);if(null!=_0x4c0eac[_0x36d7('0x7c')]){_0x36d7('0xb8')==_0x712d6&&(_0x558594=_0x558594||Mt(_0x4c0eac[_0x36d7('0x7c')],_0x211992,_0x2d67c3,_0x26dc25['model'][_0x36d7('0x7')]));if(_0x4c0eac[_0x36d7('0x7c')][_0x36d7('0x1f')]||'$graveyard'==_0x4c0eac[_0x36d7('0x7c')][_0x36d7('0xbb')][_0x36d7('0xa6')]||_0x36d7('0x119')==_0x712d6&&!Nt(_0x4c0eac['newRange'])||'deletion'==_0x712d6&&!(!_t(_0x558edd=_0x4c0eac[_0x36d7('0x7c')])&&!function(_0xb3427f){return _0xb3427f[_0x36d7('0x110')][_0x36d7('0x9a')]==_0xb3427f['end'][_0x36d7('0x12a')]&&_0xb3427f[_0x36d7('0x110')][_0x36d7('0x74')];}(_0x558edd)))_0x2d67c3[_0x36d7('0x42')](_0x211992),_0x558594=!0x0;else{if(!_0x54e2b4||!_0x54e2b4[_0x36d7('0x120')])continue;_0x2f5f5b['add'](_0x54e2b4);}}}var _0x558edd;return _0x2f5f5b['size']>0x0&&(_0x558594=!!this['_joinWithAdjacentSuggestions'](_0x2f5f5b)||_0x558594),_0x558594;}),_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x6f')][_0x36d7('0xbe')](_0x398ab9=>{let _0x4d2be7=!0x1;for(const _0x591abf of _0x26dc25[_0x36d7('0xb2')][_0x36d7('0x6f')][_0x36d7('0x87')]['getChanges']()){if(_0x36d7('0x1d')!=_0x591abf['type'])continue;const _0x16aecd=_0x591abf[_0x36d7('0xca')][_0x36d7('0x127')](_0x591abf[_0x36d7('0x3d')]);if(_0x16aecd['isAtEnd'])for(const _0x2636c3 of this[_0x36d7('0xd7')][_0x36d7('0xd4')]()){if(_0x2636c3['isMultiRange']||!_0x2636c3[_0x36d7('0x120')])continue;if(_0x36d7('0x119')!=_0x2636c3['type'])continue;const _0x10b5de=_0x2636c3[_0x36d7('0xd9')]();if(_0x10b5de[_0x36d7('0x110')][_0x36d7('0x9a')]!=_0x10b5de['end'][_0x36d7('0x9a')]&&_0x10b5de[_0x36d7('0x7a')]['isEqual'](_0x591abf[_0x36d7('0xca')])){const _0x13dc38=_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x8f')](_0x10b5de[_0x36d7('0x110')],_0x16aecd);_0x398ab9[_0x36d7('0xa9')](_0x2636c3[_0x36d7('0xf')](),{'range':_0x13dc38}),_0x4d2be7=!0x0;}}}return _0x4d2be7;}),_0x26dc25[_0x36d7('0xb2')]['markers']['on']('update:suggestion',(_0x1fd8ce,_0xf1ac73,_0x1a2e71)=>{if(null==_0x1a2e71){const {id:_0xe8b52d}=this[_0x36d7('0x3f')](_0xf1ac73['name']),_0x15d266=this[_0x36d7('0xd7')]['get'](_0xe8b52d);_0x15d266&&_0x15d266[_0x36d7('0x3a')](_0xf1ac73[_0x36d7('0x1e')]);}}),_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x6f')]['on'](_0x36d7('0x4b'),()=>{const _0x27d5f0=Array[_0x36d7('0xf3')](_0x26dc25['model']['document'][_0x36d7('0x87')][_0x36d7('0x19')]())[_0x36d7('0x82')](_0x4c80d3=>_0x36d7('0x60')===this['_splitMarkerName'](_0x4c80d3[_0x36d7('0x1e')])[_0x36d7('0xab')]);if(0x0===_0x27d5f0[_0x36d7('0x3d')])return;_0x27d5f0['sort']((_0x23a2e3,_0xab52fe)=>{const _0x5fa39e=_0x23a2e3['data'][_0x36d7('0xe0')],_0x2dbe8e=_0xab52fe['data'][_0x36d7('0xe0')];return null===_0x5fa39e&&null===_0x2dbe8e?0x0:null===_0x5fa39e&&null!==_0x2dbe8e?-0x1:null!==_0x5fa39e&&null===_0x2dbe8e?0x1:_0x5fa39e[_0x36d7('0x110')]['isBefore'](_0x2dbe8e[_0x36d7('0x110')])?-0x1:0x1;});const _0x2943be=new Set(),_0x52ba91=new Set();for(const {name:_0x28e5c7,data:_0x10f557}of _0x27d5f0){const {id:_0x5e8d13}=this['_splitMarkerName'](_0x28e5c7);if(null===_0x10f557[_0x36d7('0xe0')]){const _0xec53dc=this[_0x36d7('0x54')](_0x28e5c7);_0x52ba91[_0x36d7('0x52')](_0xec53dc);}else{const _0x1fadc5=this[_0x36d7('0xd7')]['get'](_0x5e8d13);null!==_0x10f557[_0x36d7('0x7c')]||_0x1fadc5[_0x36d7('0x120')]?(_0x2943be[_0x36d7('0x52')](_0x1fadc5[_0x36d7('0xed')]),_0x52ba91['add'](_0x1fadc5)):this[_0x36d7('0x45')](_0x1fadc5);}}_0x52ba91[_0x36d7('0x4c')]>0x0&&this['_refreshSuggestionsChain'](_0x52ba91);for(const _0x28ff4f of _0x2943be)this[_0x36d7('0x3e')](_0x36d7('0xf5'),_0x28ff4f);}),_0x26dc25['model']['on']('applyOperation',(_0x39bea5,_0x4e72d3)=>{const _0x222863=_0x4e72d3[0x0];if(!this['_suggestions']['size'])return;if(!_0x222863['isDocumentOperation'])return;if(_0x222863['batch'][_0x36d7('0x6e')]||!_0x222863[_0x36d7('0x8b')]['isLocal'])return;let _0x2d7f2b,_0x412049;switch(_0x222863[_0x36d7('0x78')]){case _0x36d7('0x1d'):_0x2d7f2b=_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x43')](_0x222863[_0x36d7('0xca')]),_0x412049=_0x2d7f2b[_0x36d7('0x127')](_0x222863[_0x36d7('0x55')]);break;case _0x36d7('0x11e'):_0x2d7f2b=_0x26dc25[_0x36d7('0xb2')]['createPositionAt'](_0x222863[_0x36d7('0x44')]),_0x412049=_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x43')](_0x222863['moveTargetPosition']);break;case _0x36d7('0xbf'):_0x2d7f2b=_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x43')](_0x222863[_0x36d7('0x63')]),_0x412049=_0x2d7f2b[_0x36d7('0x127')](_0x222863[_0x36d7('0x55')]);break;default:return;}const _0x9fbcfd=_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x8f')](_0x2d7f2b,_0x412049);_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x101')](()=>{for(const {suggestion:_0x5b3dce,meta:_0x4e7041}of this[_0x36d7('0x95')](_0x9fbcfd)){if(_0x5b3dce[_0x36d7('0xe4')])continue;if(_0x36d7('0xb8')==_0x5b3dce['type'])continue;const _0x44508a=_0x5b3dce[_0x36d7('0xf6')]&&_0x5b3dce[_0x36d7('0xf6')][_0x36d7('0xe5')];(_0x36d7('0x119')!=_0x5b3dce[_0x36d7('0x78')]||_0x36d7('0x11e')==_0x222863['type']&&!_0x44508a)&&(_0x4e7041[_0x36d7('0x25')]||_0x36d7('0xcd')==_0x5b3dce[_0x36d7('0x78')]&&_0x4e7041[_0x36d7('0xb3')]||_0x5b3dce[_0x36d7('0xd9')]()[_0x36d7('0xe1')](_0x9fbcfd)&&this['_breakSuggestionMarker'](_0x5b3dce,_0x2d7f2b,_0x412049));}});},{'priority':'lowest'}),_0x26dc25['model']['on'](_0x36d7('0x10c'),(_0x3d194d,_0x2fc0b5)=>{const _0x3c2e3f=_0x2fc0b5[0x0],_0x48f7bd=_0x2fc0b5[0x1];if(_0x48f7bd&&_0x48f7bd['forceDefaultExecution'])return;if(this[_0x36d7('0xb7')])return;if(!this[_0x36d7('0xfa')]['value'])return;if(_0x3c2e3f[_0x36d7('0x1f')])return;const _0x4d0f06=_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x7')],{start:_0x1ae68e,end:_0xfe1052}=_0x3c2e3f[_0x36d7('0xd9')](),_0x1dc6a2=_0x1ae68e[_0x36d7('0x27')]&&_0x4d0f06[_0x36d7('0x40')](_0x1ae68e[_0x36d7('0x27')])?null:_0x4d0f06['getNearestSelectionRange'](_0x1ae68e,_0x36d7('0x41')),_0x3d5256=_0xfe1052[_0x36d7('0x12a')]&&_0x4d0f06[_0x36d7('0x40')](_0xfe1052[_0x36d7('0x12a')])?null:_0x4d0f06[_0x36d7('0xa2')](_0xfe1052,_0x36d7('0x9c')),_0x14ce68=_0x26dc25[_0x36d7('0xb2')]['createRange'](_0x1dc6a2?_0x1dc6a2[_0x36d7('0x110')]:_0x1ae68e,_0x3d5256?_0x3d5256[_0x36d7('0x7a')]:_0xfe1052);_0x26dc25['model'][_0x36d7('0x101')](_0x15a61f=>{this[_0x36d7('0xe8')](_0x14ce68);const _0x41883a=_0x26dc25['model'][_0x36d7('0x7')][_0x36d7('0xa2')](_0x14ce68['start']);_0x3c2e3f['is'](_0x36d7('0x7d'))?_0x15a61f['setSelection'](_0x41883a):_0x3c2e3f[_0x36d7('0x9d')](_0x41883a);}),_0x3d194d[_0x36d7('0x103')]();},{'priority':_0x4e50d7[_0x36d7('0x8d')]+0xa}),_0x26dc25['model']['on'](_0x36d7('0x5e'),(_0x38fd76,_0x20d7cd)=>{const _0x22893b=_0x20d7cd[_0x20d7cd[_0x36d7('0x3d')]-0x1];_0x22893b&&_0x22893b['forceDefaultExecution']||this[_0x36d7('0xb7')]||this[_0x36d7('0xfa')]['value']&&(_0x26dc25[_0x36d7('0xb2')]['change'](()=>{let _0x5c821c=_0x26dc25[_0x36d7('0xb2')]['insertContent'](_0x20d7cd[0x0],_0x20d7cd[0x1],_0x20d7cd[0x2],{'forceDefaultExecution':!0x0});if(!_0x5c821c)return;_0x38fd76[_0x36d7('0x2c')]=_0x5c821c[_0x36d7('0x13c')]();const _0x50bc0c=_0x5c821c[_0x36d7('0x7a')][_0x36d7('0x12a')],_0x3e9fba=_0x26dc25['model']['schema'];_0x50bc0c&&_0x3e9fba[_0x36d7('0xd5')](_0x50bc0c)&&!_0x3e9fba[_0x36d7('0x123')](_0x50bc0c)&&(_0x5c821c=_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x8f')](_0x5c821c[_0x36d7('0x110')],_0x26dc25[_0x36d7('0xb2')][_0x36d7('0x43')](_0x50bc0c,_0x36d7('0x7a')))),this[_0x36d7('0x6d')](_0x5c821c);}),_0x38fd76[_0x36d7('0x103')]());},{'priority':_0x36d7('0x34')}),this[_0x36d7('0x24')][_0x36d7('0x104')][_0x36d7('0x52')](_0x36d7('0xb4'),this[_0x36d7('0xfa')]),this[_0x36d7('0xb9')](_0x36d7('0xb4'));const _0x2efc7e=new _0x435636(_0x26dc25,this[_0x36d7('0xd7')]);_0x26dc25[_0x36d7('0x104')]['add'](_0x36d7('0x12b'),_0x2efc7e),this[_0x36d7('0xb9')](_0x36d7('0x12b'));const _0x3cc007=new _0xbf7df2(_0x26dc25,this[_0x36d7('0xd7')]);_0x26dc25[_0x36d7('0x104')][_0x36d7('0x52')](_0x36d7('0xc'),_0x3cc007),this[_0x36d7('0xb9')](_0x36d7('0xc')),_0x26dc25[_0x36d7('0x104')][_0x36d7('0x52')](_0x36d7('0x81'),new _0x1b9423(_0x26dc25,_0x2efc7e,this[_0x36d7('0xd7')])),this[_0x36d7('0xb9')]('acceptAllSuggestions'),_0x26dc25['commands'][_0x36d7('0x52')](_0x36d7('0xcc'),new _0x1b9423(_0x26dc25,_0x3cc007,this[_0x36d7('0xd7')])),this[_0x36d7('0xb9')](_0x36d7('0xcc')),_0x26dc25[_0x36d7('0x104')]['add'](_0x36d7('0xad'),new _0x54807a(_0x26dc25,_0x2efc7e,this[_0x36d7('0xd7')])),this[_0x36d7('0xb9')](_0x36d7('0xad')),_0x26dc25['commands'][_0x36d7('0x52')](_0x36d7('0x88'),new _0x54807a(_0x26dc25,_0x3cc007,this[_0x36d7('0xd7')])),this[_0x36d7('0xb9')]('discardSelectedSuggestions');const _0x3e3a14=_0x26dc25['plugins'][_0x36d7('0x77')](_0x36d7('0x6'));this['listenTo'](_0x3e3a14,'addComment',(_0x4db254,{threadId:_0x3946cd})=>{const _0x28c4cd=this[_0x36d7('0xd7')][_0x36d7('0x77')](_0x3946cd);_0x28c4cd&&_0x28c4cd[_0x36d7('0x99')]&&0x1===_0x28c4cd[_0x36d7('0x99')]['length']&&this[_0x36d7('0xd1')](_0x3946cd,{'hasComments':!0x0});},{'priority':_0x36d7('0xb5')}),this['listenTo'](_0x3e3a14,_0x36d7('0x21'),(_0x2b6734,{threadId:_0x39eb6e})=>{const _0x10b545=this['_suggestions'][_0x36d7('0x77')](_0x39eb6e);_0x10b545&&_0x10b545[_0x36d7('0x99')]&&!_0x10b545[_0x36d7('0x99')][_0x36d7('0x3d')]&&this['_updateSuggestionData'](_0x39eb6e,{'hasComments':!0x1});},{'priority':_0x36d7('0xb5')});}set[_0x36d7('0x102')](_0x265724){if(this[_0x36d7('0x10a')])throw new _0x5e2e59(_0x36d7('0x3b'),this);this[_0x36d7('0x10a')]=_0x265724;}get[_0x36d7('0x102')](){return this[_0x36d7('0x10a')];}['getSuggestions']({skipNotAttached:_0x10c2b3=!0x1,toJSON:_0x334e01=!0x1}={}){const _0xf273c5=[];for(const _0x107602 of this[_0x36d7('0xd7')][_0x36d7('0xd4')]())_0x10c2b3&&!_0x107602[_0x36d7('0x120')]||_0xf273c5[_0x36d7('0x116')](_0x107602);return _0x334e01?_0xf273c5['map'](_0x1152ed=>_0x1152ed[_0x36d7('0x15')]()):_0xf273c5;}[_0x36d7('0x90')](_0x579692){const _0x531003=this[_0x36d7('0xd7')][_0x36d7('0x77')](_0x579692);if(!_0x531003)throw new _0x5e2e59('track-changes-suggestion-not-found',this);return _0x531003;}[_0x36d7('0xdc')](_0x106a09){return this[_0x36d7('0xd7')]['has'](_0x106a09);}[_0x36d7('0x3c')](_0xe823bf){const {authorId:_0x5c347c,id:_0x447bf4,attributes:_0x5a9b3e}=_0xe823bf,[_0x2cb997,_0x3feda0]=_0xe823bf[_0x36d7('0x78')][_0x36d7('0x11e')](':'),_0x508ec7=this[_0x36d7('0xd7')][_0x36d7('0x77')](_0x447bf4)||this[_0x36d7('0x4')](_0x2cb997,_0x3feda0,_0x447bf4,_0x5c347c,_0x5a9b3e);if(this[_0x36d7('0x122')](_0x508ec7),this[_0x36d7('0x71')](_0x508ec7,_0x2cb997,_0x3feda0||null,_0x5c347c),_0x508ec7[_0x36d7('0x2d')]=_0xe823bf[_0x36d7('0x2d')],_0x5a9b3e&&_0x5a9b3e['@external']){const _0x58d5d0=_0x5a9b3e['@external'],_0x5874a0=this[_0x36d7('0x5c')](_0x58d5d0[_0x36d7('0x51')]);_0x508ec7[_0x36d7('0xe3')]=_0x58d5d0[_0x36d7('0x2d')],_0x508ec7['author']=_0x5874a0,_0x508ec7[_0x36d7('0x11d')]=!0x0;}else _0x508ec7[_0x36d7('0xe3')]=_0xe823bf['createdAt'];switch(_0xe823bf['data']&&(_0x508ec7[_0x36d7('0xf6')]=_0xe823bf[_0x36d7('0xf6')]),_0xe823bf[_0x36d7('0x11f')]&&(_0x508ec7[_0x36d7('0x11f')]=_0xe823bf['attributes']),this[_0x36d7('0x10a')]&&this['_adapter']['addSuggestion']||(_0x508ec7[_0x36d7('0x17')]=!0x0),this['_suggestionState'][_0x36d7('0x77')](_0x508ec7)){case _0x36d7('0x6a'):this['_suggestionState'][_0x36d7('0x18')](_0x508ec7,_0x36d7('0xd8'));break;case _0x36d7('0xc8'):_0x508ec7['isInContent']?(this[_0x36d7('0xdf')][_0x36d7('0x18')](_0x508ec7,'ready'),this['fire']('suggestionLoaded',_0x508ec7)):this[_0x36d7('0xdf')]['set'](_0x508ec7,_0x36d7('0x11c'));}return _0x508ec7;}[_0x36d7('0x12b')](_0x561fd4){this[_0x36d7('0x9')](()=>{this['editor']['model'][_0x36d7('0x101')](()=>{for(const _0x381da3 of _0x561fd4[_0x36d7('0x58')]())_0x381da3['accept']();});});}[_0x36d7('0xc')](_0x160fd3){this[_0x36d7('0x9')](()=>{this[_0x36d7('0x24')][_0x36d7('0xb2')][_0x36d7('0x101')](()=>{for(const _0x1cc4a1 of _0x160fd3[_0x36d7('0x58')]())_0x1cc4a1[_0x36d7('0xa5')]();});});}[_0x36d7('0xb9')](_0x30cdae,_0x1802f5){const _0x4aea2b=this[_0x36d7('0x24')][_0x36d7('0x104')][_0x36d7('0x77')](_0x30cdae);if(!_0x4aea2b)throw new _0x5e2e59(_0x36d7('0xae'),this,{'commandName':_0x30cdae});this[_0x36d7('0xd2')]['add'](_0x4aea2b),_0x1802f5&&_0x4aea2b['on']('execute',(_0x1482ee,_0x274af5)=>{this[_0x36d7('0xfa')][_0x36d7('0xf2')]&&(this[_0x36d7('0xb7')]||_0x274af5[_0x36d7('0x3d')]>0x0&&_0x274af5[_0x274af5[_0x36d7('0x3d')]-0x1]&&_0x274af5[_0x274af5[_0x36d7('0x3d')]-0x1][_0x36d7('0x9')]||(_0x1802f5((..._0x536e7b)=>_0x4aea2b['execute'](..._0x536e7b,{'forceDefaultExecution':!0x0}),..._0x274af5),_0x1482ee['stop']()));},{'priority':_0x36d7('0x34')});}['forceDefaultExecution'](_0x2c5aab){let _0x2eeb12,_0x1b4094;const _0x770261=this[_0x36d7('0xb7')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2eeb12=_0x2c5aab();}catch(_0x1d133f){_0x1b4094=_0x1d133f;}return _0x770261||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b4094&&_0x5e2e59[_0x36d7('0xf7')](_0x1b4094,this),_0x2eeb12;}[_0x36d7('0x6d')](_0x3616f7,_0x55edaf=null,_0x5ee5cc={}){if(_0x3616f7[_0x36d7('0x1f')])return null;const _0x3ca663=this[_0x36d7('0x24')]['plugins'][_0x36d7('0x77')]('Users')['me'];for(const {suggestion:_0x40f08a,meta:_0x1a2b2e}of this['_findSuggestions'](_0x3616f7,_0x36d7('0xcd')))if(_0x1a2b2e['isOwn']){if(!_0x1a2b2e[_0x36d7('0xf1')]){if(!this['_mergeNestedSuggestions']&&_0x1a2b2e[_0x36d7('0x25')])continue;return _0x40f08a;}if(_0x55edaf==_0x40f08a[_0x36d7('0x128')]){const _0x28b26c=_0x40f08a[_0x36d7('0xd9')]();return _0x28b26c['start'][_0x36d7('0x129')](_0x3616f7['end'])?this[_0x36d7('0xfd')](_0x40f08a,this[_0x36d7('0x8c')][_0x36d7('0x8f')](_0x3616f7[_0x36d7('0x110')],_0x28b26c[_0x36d7('0x7a')])):this['_setSuggestionRange'](_0x40f08a,this[_0x36d7('0x8c')][_0x36d7('0x8f')](_0x28b26c[_0x36d7('0x110')],_0x3616f7['end'])),_0x40f08a;}}const _0x168426=_0x235188(),_0x2f3e44=_0x3ca663['id'],_0x5ea6d8=_0x55edaf?_0x36d7('0x37')+_0x55edaf:_0x36d7('0xcd'),_0x45ddfb=this[_0x36d7('0x13a')]({'id':_0x168426,'type':_0x5ea6d8,'createdAt':new Date(),'authorId':_0x2f3e44,'attributes':_0x5ee5cc});return this['_addSuggestionMarker'](_0x5ea6d8,_0x168426,_0x2f3e44,_0x3616f7),_0x45ddfb;}['markMultiRangeInsertion'](_0x281516,_0x120551=_0x36d7('0xc3'),_0x416512={}){const _0x5776b4=this['editor']['plugins'][_0x36d7('0x77')](_0x36d7('0x105'))['me'],_0x192294=this[_0x36d7('0x89')][_0x36d7('0x11')](_0x36d7('0xcd'),_0x120551,_0x36d7('0x69'));for(const _0x151dbf of this[_0x36d7('0x5d')]())if(_0x151dbf['author']['id']==_0x5776b4['id']&&_0x36d7('0xcd')==_0x151dbf['type']&&_0x151dbf['subType']==_0x120551&&(_0x192294(_0x151dbf[_0x36d7('0x72')](),_0x281516)||_0x192294(_0x281516,_0x151dbf['getRanges']()))){for(const _0x45a2e3 of _0x281516)_0x151dbf[_0x36d7('0x2b')](_0x45a2e3);return _0x151dbf;}if(this[_0x36d7('0x132')])for(const _0x410edb of _0x281516)for(const {suggestion:_0x7ba790,meta:_0x4a7d05}of this[_0x36d7('0x95')](_0x410edb,_0x36d7('0xcd'))){if(!_0x4a7d05[_0x36d7('0xb3')])continue;let _0x55489e=!0x0;for(const _0x204b9c of _0x7ba790['getRanges']())for(const _0x59d3e7 of _0x281516)if(!_0x204b9c[_0x36d7('0xe1')](_0x59d3e7)){_0x55489e=!0x1;break;}if(_0x55489e)return _0x7ba790;}const _0x33424e=_0x235188(),_0x5efb9b=_0x5776b4['id'],_0x21e14d=_0x36d7('0x37')+_0x120551,_0x309b64=this[_0x36d7('0x13a')]({'id':_0x33424e,'type':_0x21e14d,'createdAt':new Date(),'authorId':_0x5efb9b,'attributes':_0x416512});for(const _0x2264c3 of _0x281516)this[_0x36d7('0x86')](_0x21e14d,_0x33424e,_0x5efb9b,_0x2264c3,_0x2c1eb8['getMultiRangeId']());return _0x309b64;}['markInlineFormat'](_0x3872e1,_0x105b75,_0x46edc2=null,_0x55562e={}){if(_0x46edc2=_0x46edc2||$t(_0x105b75),_0x3872e1[_0x36d7('0x1f')])return null;if(_0x36d7('0x32')===this[_0x36d7('0x48')]){const _0x4d2f72=this[_0x36d7('0x89')][_0x36d7('0x11')]('formatInline',_0x46edc2,_0x36d7('0xce'));return this[_0x36d7('0x9')](()=>_0x4d2f72([_0x3872e1],_0x105b75,_0x55562e)),null;}const _0x6d7f2c=this[_0x36d7('0x24')][_0x36d7('0x96')][_0x36d7('0x77')](_0x36d7('0x105'))['me'],_0x1d2555=[];if(_0x36d7('0x30')!==this[_0x36d7('0x48')])for(const {suggestion:_0x218c9c,meta:_0x902e47}of this[_0x36d7('0x95')](_0x3872e1,_0x36d7('0xcd')))_0x902e47[_0x36d7('0xb3')]&&!_0x902e47['isInsideObject']&&_0x1d2555[_0x36d7('0x116')](..._0x218c9c[_0x36d7('0x72')]());const _0x1f42f6=function(_0xeec198,_0x19ac73){const _0x9491db=[];for(const _0x4ac882 of _0x19ac73){const _0x3704c3=_0xeec198[_0x36d7('0xff')](_0x4ac882);_0x3704c3&&_0x9491db['push'](_0x3704c3);}return _0x9491db;}(_0x3872e1,_0x1d2555),_0x192297=function(_0x1c038b,_0xbed8b9){const _0x2c41fe=[_0x1c038b];for(const _0xc69a98 of _0xbed8b9){let _0x1cd23a=0x0;for(;_0x1cd23a<_0x2c41fe[_0x36d7('0x3d')];){const _0x4e6144=_0x2c41fe[_0x1cd23a][_0x36d7('0x79')](_0xc69a98);_0x2c41fe[_0x36d7('0xc5')](_0x1cd23a,0x1,..._0x4e6144),_0x1cd23a+=_0x4e6144[_0x36d7('0x3d')];}}return _0x2c41fe;}(_0x3872e1,_0x1d2555);_0x1f42f6['length']&&this[_0x36d7('0x8c')][_0x36d7('0x101')](()=>{for(const _0x18199d of _0x1f42f6){const _0x3bb136=this[_0x36d7('0x89')][_0x36d7('0x11')](_0x36d7('0xb8'),_0x46edc2,_0x36d7('0xce'));this[_0x36d7('0x9')](()=>_0x3bb136([_0x18199d],_0x105b75,_0x55562e));}});for(const _0x5623a8 of _0x192297){let _0x2fc250=null,_0x2b54fd=_0x5623a8[_0x36d7('0x110')],_0x50d822=_0x5623a8[_0x36d7('0x7a')];for(const {suggestion:_0x3740b2,meta:_0x44e263}of this[_0x36d7('0x95')](_0x5623a8,'formatInline')){if(!_0x44e263[_0x36d7('0xb3')])continue;if(_0x3740b2[_0x36d7('0x128')]!=_0x46edc2)continue;const _0x62368f=_0x3740b2[_0x36d7('0xd9')]();if(_0x62368f['containsRange'](_0x5623a8,!0x0))return null;_0x2b54fd=_0x2b54fd['isBefore'](_0x62368f[_0x36d7('0x110')])?_0x2b54fd:_0x62368f['start'],_0x50d822=_0x50d822[_0x36d7('0xe9')](_0x62368f[_0x36d7('0x7a')])?_0x50d822:_0x62368f[_0x36d7('0x7a')],_0x2fc250?_0x62368f[_0x36d7('0x110')][_0x36d7('0x28')](_0x2fc250[_0x36d7('0xd9')]()['start'])?(_0x2fc250['removeMarkers'](),_0x2fc250=_0x3740b2):_0x3740b2['removeMarkers']():_0x2fc250=_0x3740b2;}const _0x58056=this['_model'][_0x36d7('0x8f')](_0x2b54fd,_0x50d822);if(_0x2fc250)this[_0x36d7('0xfd')](_0x2fc250,_0x58056);else{const _0x332b2b=_0x235188(),_0x233508=_0x6d7f2c['id'];this[_0x36d7('0x13a')]({'id':_0x332b2b,'type':'formatInline:'+_0x46edc2,'data':_0x105b75,'createdAt':new Date(),'authorId':_0x233508,'attributes':_0x55562e}),this[_0x36d7('0x86')](_0x36d7('0xf8')+_0x46edc2,_0x332b2b,_0x233508,_0x58056);}}return null;}[_0x36d7('0x14')](_0x36616c,_0x241e50,_0xc34f1f=[],_0xf39d12=null,_0x11609d={}){_0x241e50[_0x36d7('0x8')]||(_0x241e50[_0x36d7('0x8')]=_0x241e50[_0x36d7('0xf4')]),_0x241e50[_0x36d7('0xe5')]=_0x36616c['is'](_0x36d7('0x29')),_0xf39d12=_0xf39d12||$t(_0x241e50);const _0x284e75=_0xc34f1f[_0x36d7('0xba')](_0x67e3d5=>Rt(_0x67e3d5,this['_model'])),_0x356865=_0x36616c['is']('range')?_0x36616c:Rt(_0x36616c,this[_0x36d7('0x8c')]);if('never'===this[_0x36d7('0x48')]){const _0x505f32=this[_0x36d7('0x89')]['getSuggestionCallback'](_0x36d7('0x119'),_0xf39d12,'accept');return this[_0x36d7('0x9')](()=>_0x505f32([_0x356865],_0x241e50,_0x11609d)),null;}_0x284e75[_0x36d7('0x116')](_0x356865);let _0x4efe98=!0x0;for(const _0x4fe692 of _0x284e75)if(!this[_0x36d7('0x4a')](_0x4fe692)){_0x4efe98=!0x1;break;}if(_0x4efe98&&_0x36d7('0x30')!==this[_0x36d7('0x48')]){const _0x3ff12a=this[_0x36d7('0x89')][_0x36d7('0x11')](_0x36d7('0x119'),_0xf39d12,_0x36d7('0xce'));return this[_0x36d7('0x9')](()=>_0x3ff12a([_0x356865],_0x241e50,_0x11609d)),null;}let _0x505ef1=null,_0x53cce4=_0x356865[_0x36d7('0x110')],_0x22d5ee=_0x356865[_0x36d7('0x7a')];for(const {suggestion:_0x1f302e,meta:_0x482252}of this['_findSuggestions'](_0x356865,_0x36d7('0x119'))){if(!_0x482252[_0x36d7('0xb3')]||_0x482252[_0x36d7('0xf1')]||_0x482252['containsRangeInObject']||_0x482252[_0x36d7('0x11a')])continue;if(_0x1f302e[_0x36d7('0xf6')]['formatGroupId']!=_0x241e50[_0x36d7('0x8')])continue;const _0x3ff73a=_0x1f302e['getFirstRange']();if(_0x1f302e[_0x36d7('0x128')]==_0xf39d12){if(_0x3ff73a['containsRange'](_0x356865,!0x0))return null;_0x53cce4=_0x53cce4[_0x36d7('0x28')](_0x3ff73a['start'])?_0x53cce4:_0x3ff73a['start'],_0x22d5ee=_0x22d5ee[_0x36d7('0xe9')](_0x3ff73a[_0x36d7('0x7a')])?_0x22d5ee:_0x3ff73a[_0x36d7('0x7a')],_0x505ef1?_0x3ff73a[_0x36d7('0x110')]['isBefore'](_0x505ef1[_0x36d7('0xd9')]()['start'])?(_0x505ef1['removeMarkers'](),_0x505ef1=_0x1f302e):_0x1f302e[_0x36d7('0x57')]():_0x505ef1=_0x1f302e;}else{const _0x49fcbd=_0x356865[_0x36d7('0xff')](_0x3ff73a);this[_0x36d7('0xc1')](_0x1f302e,_0x49fcbd);}}const _0x487334=this['editor']['plugins']['get']('Users')['me'],_0x44e069=_0x235188(),_0x414183=_0x487334['id'];if(_0x505ef1)return this[_0x36d7('0xfd')](_0x505ef1,this[_0x36d7('0x8c')][_0x36d7('0x8f')](_0x53cce4,_0x22d5ee)),_0x505ef1;{const _0x50af07=this[_0x36d7('0x13a')]({'id':_0x44e069,'type':_0x36d7('0xc9')+_0xf39d12,'data':_0x241e50,'createdAt':new Date(),'authorId':_0x414183,'attributes':_0x11609d});return this[_0x36d7('0x86')]('formatBlock:'+_0xf39d12,_0x44e069,_0x414183,this[_0x36d7('0x8c')][_0x36d7('0x8f')](_0x53cce4,_0x22d5ee)),_0x50af07;}}['markMultiRangeBlockFormat'](_0x5d2e9d,_0x39ea80,_0x24f1ee=[],_0x908f4b=null,_0x49fd0e={}){_0x39ea80[_0x36d7('0x8')]||(_0x39ea80['formatGroupId']=_0x39ea80[_0x36d7('0xf4')]);const _0x272bb8=_0x5d2e9d[0x0];_0x39ea80[_0x36d7('0xe5')]=_0x272bb8['is'](_0x36d7('0x29')),_0x908f4b=_0x908f4b||$t(_0x39ea80);const _0x3f95a4=_0x24f1ee[_0x36d7('0xba')](_0x1b89a8=>Rt(_0x1b89a8,this[_0x36d7('0x8c')])),_0x199e79=_0x272bb8['is'](_0x36d7('0x29'))?_0x5d2e9d:_0x5d2e9d['map'](_0x410a1a=>Rt(_0x410a1a,this[_0x36d7('0x8c')]));if(_0x36d7('0x32')===this['_trackFormatChanges']){const _0x397b3c=this[_0x36d7('0x89')][_0x36d7('0x11')](_0x36d7('0x119'),_0x908f4b,_0x36d7('0xce'));return this['forceDefaultExecution'](()=>_0x397b3c(_0x199e79,_0x39ea80,_0x49fd0e)),null;}_0x3f95a4['push'](..._0x199e79);let _0x40fc59=!0x0;for(const _0x1a1dea of _0x3f95a4)if(!this[_0x36d7('0x4a')](_0x1a1dea)){_0x40fc59=!0x1;break;}if(_0x40fc59&&'always'!==this[_0x36d7('0x48')]){const _0x1ec927=this['_suggestionFactory'][_0x36d7('0x11')](_0x36d7('0x119'),_0x908f4b,_0x36d7('0xce'));return this['forceDefaultExecution'](()=>_0x1ec927(_0x199e79,_0x39ea80,_0x49fd0e)),null;}const _0x549ac8=this[_0x36d7('0x24')][_0x36d7('0x96')][_0x36d7('0x77')]('Users')['me'];for(const _0x5484b4 of this[_0x36d7('0x5d')]()){if(_0x5484b4['author']['id']!=_0x549ac8['id'])continue;if(_0x36d7('0x119')!=_0x5484b4[_0x36d7('0x78')]||_0x5484b4[_0x36d7('0xf6')]['formatGroupId']!=_0x39ea80[_0x36d7('0x8')])continue;const _0x42135a=_0x5484b4[_0x36d7('0x128')]==_0x908f4b;for(let _0x52f386=0x0;_0x52f386<_0x199e79[_0x36d7('0x3d')];_0x52f386++){const _0x4226c3=_0x199e79[_0x52f386];for(const _0x410b3a of _0x5484b4[_0x36d7('0x131')]()){const _0x325957=_0x410b3a[_0x36d7('0xa1')]();if(_0x4226c3[_0x36d7('0x129')](_0x325957)){_0x42135a?(_0x199e79['splice'](_0x52f386,0x1),_0x52f386--):_0x5484b4[_0x36d7('0x42')](_0x410b3a[_0x36d7('0x1e')]);break;}}}}if(0x0==_0x199e79[_0x36d7('0x3d')])return null;const _0x743d29=this[_0x36d7('0x89')][_0x36d7('0x11')](_0x36d7('0x119'),_0x908f4b,_0x36d7('0x69'));for(const _0x48de94 of this['getSuggestions']())if(_0x48de94[_0x36d7('0xde')]['id']==_0x549ac8['id']&&'formatBlock'==_0x48de94[_0x36d7('0x78')]&&_0x48de94[_0x36d7('0xf6')][_0x36d7('0x8')]==_0x39ea80['formatGroupId']&&_0x48de94[_0x36d7('0x128')]==_0x908f4b&&(_0x743d29(_0x48de94['getRanges'](),_0x199e79)||_0x743d29(_0x199e79,_0x48de94[_0x36d7('0x72')]()))){for(const _0x397e2d of _0x199e79)_0x48de94[_0x36d7('0x2b')](_0x397e2d);return _0x48de94;}const _0x2ca1b7=_0x235188(),_0x4dbff9=_0x549ac8['id'],_0x4f3aac=_0x36d7('0xc9')+_0x908f4b,_0x1b9312=this[_0x36d7('0x13a')]({'id':_0x2ca1b7,'type':_0x4f3aac,'data':_0x39ea80,'createdAt':new Date(),'authorId':_0x4dbff9,'attributes':_0x49fd0e});for(const _0x17cc94 of _0x199e79)this[_0x36d7('0x86')](_0x4f3aac,_0x2ca1b7,_0x4dbff9,_0x17cc94,_0x2c1eb8[_0x36d7('0xd0')]());return _0x1b9312;}['markDeletion'](_0x36d281,_0x708d2b=null,_0x21ed40={}){if(_0x36d281[_0x36d7('0x1f')])return null;const _0x3cc113=this[_0x36d7('0x24')][_0x36d7('0x96')][_0x36d7('0x77')](_0x36d7('0x105'))['me'],_0x6ab9d5=new _0x256bfb(_0x36d281['start'],_0x36d281[_0x36d7('0x7a')]);for(const {suggestion:_0x22ecd5,meta:_0x145e07}of this['_findSuggestions'](_0x6ab9d5,_0x36d7('0xcd')))if(_0x145e07['isOwn']&&!_0x145e07[_0x36d7('0xf1')]){if(_0x22ecd5['isMultiRange']){const _0x135504=_0x22ecd5[_0x36d7('0x72')]()[_0x36d7('0x82')](_0x30ba59=>_0x36d7('0x65')!=_0x30ba59[_0x36d7('0xbb')]['rootName']);_0x135504['every'](_0x302c34=>_0x6ab9d5['containsRange'](_0x302c34,!0x0))&&_0x22ecd5[_0x36d7('0xa5')]();if(_0x135504[_0x36d7('0x100')](_0x2e03ab=>_0x2e03ab['containsRange'](_0x6ab9d5,!0x0))){const _0x46d83e=this[_0x36d7('0x89')]['getSuggestionCallback'](_0x36d7('0x62'),_0x708d2b,'accept');return this[_0x36d7('0x9')](()=>_0x46d83e([_0x6ab9d5],null,_0x21ed40)),null;}}else{const _0x3b8e1f=_0x6ab9d5['getIntersection'](_0x22ecd5[_0x36d7('0xd9')]());null!==_0x3b8e1f&&_0x22ecd5[_0x36d7('0x16')]([_0x3b8e1f],null,_0x21ed40);}}if(_0x6ab9d5[_0x36d7('0x93')](),_0x6ab9d5[_0x36d7('0x1f')]||'$graveyard'==_0x6ab9d5[_0x36d7('0xbb')][_0x36d7('0xa6')])return null;let _0x3869cf=null,_0x585e54=_0x6ab9d5[_0x36d7('0x110')],_0x3bd219=_0x6ab9d5[_0x36d7('0x7a')];for(const {suggestion:_0x477d02,meta:_0xd39764}of this['_findSuggestions'](_0x6ab9d5,_0x36d7('0x62')))if(_0xd39764['isOwn']){if(_0x477d02[_0x36d7('0xe4')]&&this[_0x36d7('0x132')]){let _0xbd93d3=!0x0;for(const _0x5e1578 of _0x477d02[_0x36d7('0x72')]()){if(_0x5e1578[_0x36d7('0xe1')](_0x6ab9d5,!0x0))return _0x477d02;_0x6ab9d5[_0x36d7('0xe1')](_0x5e1578)||(_0xbd93d3=!0x1);}_0xbd93d3&&_0x477d02[_0x36d7('0xa5')]();}else{const _0x30a16b=_0x477d02[_0x36d7('0xd9')]();if(_0x30a16b[_0x36d7('0xe1')](_0x6ab9d5,!0x0)){if(!this['_mergeNestedSuggestions']&&_0xd39764[_0x36d7('0x25')])continue;return _0x477d02;}_0x585e54=_0x585e54['isBefore'](_0x30a16b[_0x36d7('0x110')])?_0x585e54:_0x30a16b[_0x36d7('0x110')],_0x3bd219=_0x3bd219[_0x36d7('0xe9')](_0x30a16b[_0x36d7('0x7a')])?_0x3bd219:_0x30a16b[_0x36d7('0x7a')],_0x3869cf?_0x30a16b[_0x36d7('0x110')]['isBefore'](_0x3869cf[_0x36d7('0xd9')]()[_0x36d7('0x110')])?(_0x3869cf[_0x36d7('0x57')](),_0x3869cf=_0x477d02):_0x477d02[_0x36d7('0x57')]():_0x3869cf=_0x477d02;}}if(_0x3869cf)return this[_0x36d7('0xfd')](_0x3869cf,this[_0x36d7('0x8c')][_0x36d7('0x8f')](_0x585e54,_0x3bd219)),_0x3869cf;{const _0x4afce1=_0x235188(),_0x3fec0a=this['_model']['createRange'](_0x585e54,_0x3bd219),_0x50ab77=_0x3cc113['id'],_0x5732fe=_0x708d2b?_0x36d7('0x5b')+_0x708d2b:_0x36d7('0x62'),_0x4107a1=this['_setSuggestionData']({'id':_0x4afce1,'type':_0x5732fe,'createdAt':new Date(),'authorId':_0x50ab77,'attributes':_0x21ed40});return this[_0x36d7('0x86')](_0x5732fe,_0x4afce1,_0x50ab77,_0x3fec0a),_0x4107a1;}}[_0x36d7('0xbc')](_0x1b90a8,_0x6d0644=_0x36d7('0xc3'),_0x329f57={}){const _0x4dd2ce=this[_0x36d7('0x24')]['plugins'][_0x36d7('0x77')](_0x36d7('0x105'))['me'],_0x59c874=_0x1b90a8[_0x36d7('0xba')](_0x56426f=>new _0x256bfb(_0x56426f[_0x36d7('0x110')],_0x56426f[_0x36d7('0x7a')])),_0x20e5a6=new Set();for(const _0x1013b4 of _0x59c874)for(const {suggestion:_0x119cc9,meta:_0x581dde}of this[_0x36d7('0x95')](_0x1013b4,_0x36d7('0xcd')))_0x581dde[_0x36d7('0xb3')]&&!_0x581dde['isNextTo']&&_0x20e5a6['add'](_0x119cc9);for(const _0x5c0185 of _0x20e5a6)if(_0x5c0185[_0x36d7('0xe4')]){const _0xfa622f=_0x5c0185[_0x36d7('0x72')]();(!_0x5c0185['attributes']||!_0x5c0185[_0x36d7('0x11f')]['skipNestingCheck'])&&(_0xfa622f[_0x36d7('0x10')](_0x2445d8=>_0x59c874['some'](_0x39ac9d=>_0x39ac9d['containsRange'](_0x2445d8,!0x0)))&&_0x5c0185[_0x36d7('0xa5')]());if(_0x59c874[_0x36d7('0x10')](_0x199a87=>_0xfa622f[_0x36d7('0x100')](_0x2f70f5=>_0x2f70f5[_0x36d7('0xe1')](_0x199a87,!0x0)))){const _0x53226f=this['_suggestionFactory'][_0x36d7('0x11')](_0x36d7('0x62'),_0x6d0644,'accept');return this[_0x36d7('0x9')](()=>_0x53226f(_0x1b90a8,null,_0x329f57)),null;}}else{const _0x4227e6=_0x5c0185['getFirstRange']();_0x59c874['some'](_0x47a83f=>_0x47a83f['containsRange'](_0x4227e6,!0x0))&&_0x5c0185[_0x36d7('0xa5')]();if(_0x59c874[_0x36d7('0x10')](_0x1a4a99=>_0x4227e6['containsRange'](_0x1a4a99,!0x0))){const _0x1a3eff=this[_0x36d7('0x89')][_0x36d7('0x11')](_0x36d7('0x62'),_0x6d0644,_0x36d7('0xce'));return this[_0x36d7('0x9')](()=>_0x1a3eff(_0x59c874,null,_0x329f57)),null;}}const _0x5191e1=this[_0x36d7('0x89')][_0x36d7('0x11')](_0x36d7('0x62'),_0x6d0644,'join');let _0x20f11d=null;for(const _0x1ddaa1 of this[_0x36d7('0x5d')]())if(_0x1ddaa1[_0x36d7('0xde')]['id']==_0x4dd2ce['id']&&_0x1ddaa1['isInContent']&&_0x36d7('0x62')==_0x1ddaa1[_0x36d7('0x78')]&&_0x1ddaa1[_0x36d7('0x128')]==_0x6d0644&&(_0x5191e1(_0x1ddaa1['getRanges'](),_0x59c874)||_0x5191e1(_0x59c874,_0x1ddaa1['getRanges']()))){if(_0x20f11d){if(_0x1ddaa1[_0x36d7('0x99')]&&_0x1ddaa1[_0x36d7('0x99')][_0x36d7('0x3d')])continue;for(const _0x25cc68 of _0x1ddaa1[_0x36d7('0x72')]())_0x20f11d[_0x36d7('0xf9')](_0x25cc68)||_0x20f11d[_0x36d7('0x2b')](_0x25cc68);_0x1ddaa1['removeMarkers']();}else{_0x20f11d=_0x1ddaa1;for(const _0x269509 of _0x59c874)_0x1ddaa1[_0x36d7('0xf9')](_0x269509)||_0x1ddaa1[_0x36d7('0x2b')](_0x269509);}}if(_0x20f11d)return _0x20f11d;_0x20e5a6[_0x36d7('0xe2')]();for(const _0x452297 of _0x59c874)for(const {suggestion:_0x5b0c43,meta:_0x3cd71b}of this[_0x36d7('0x95')](_0x452297,_0x36d7('0x62')))_0x3cd71b[_0x36d7('0xb3')]&&_0x20e5a6[_0x36d7('0x52')](_0x5b0c43);for(const _0xdba8a5 of _0x20e5a6){const _0x183c5c=_0xdba8a5[_0x36d7('0x72')]();if(!_0x329f57||!_0x329f57['skipNestingCheck']){if(_0x59c874[_0x36d7('0x10')](_0x197a88=>_0x183c5c[_0x36d7('0x100')](_0x34e1de=>_0x34e1de[_0x36d7('0xe1')](_0x197a88,!0x0))))return _0xdba8a5;}(!_0xdba8a5[_0x36d7('0x11f')]||!_0xdba8a5[_0x36d7('0x11f')][_0x36d7('0x4e')])&&(_0x183c5c['every'](_0x5a3ab5=>_0x59c874[_0x36d7('0x100')](_0x5ae74a=>_0x5ae74a[_0x36d7('0xe1')](_0x5a3ab5,!0x0)))&&_0xdba8a5[_0x36d7('0xa5')]());}const _0x55d352=_0x235188(),_0x55f737=_0x4dd2ce['id'],_0x21418d='deletion:'+_0x6d0644,_0x4fa18b=this[_0x36d7('0x13a')]({'id':_0x55d352,'type':_0x21418d,'createdAt':new Date(),'authorId':_0x55f737,'attributes':_0x329f57});for(const _0x12d847 of _0x59c874)_0x12d847[_0x36d7('0x93')](),_0x12d847['isCollapsed']||_0x36d7('0x65')==_0x12d847['root'][_0x36d7('0xa6')]||this[_0x36d7('0x86')](_0x21418d,_0x55d352,_0x55f737,_0x12d847,_0x2c1eb8[_0x36d7('0xd0')]());return _0x4fa18b;}[_0x36d7('0xfd')](_0x4638d0,_0x528edf){const _0x52b996=_0x4638d0[_0x36d7('0xf')]();this[_0x36d7('0x8c')][_0x36d7('0x101')](_0x4e3cff=>{_0x4e3cff[_0x36d7('0xa9')](_0x52b996,{'range':_0x528edf});});}[_0x36d7('0x122')](_0x3450c4){const _0x10e027=_0x3450c4['id'],_0x59b9f8=this['editor'][_0x36d7('0x114')][_0x36d7('0x77')](_0x36d7('0x12f'));this[_0x36d7('0x5a')][_0x36d7('0x10d')](_0x10e027)||this[_0x36d7('0x5a')][_0x36d7('0x7b')]({'channelId':_0x59b9f8,'threadId':_0x10e027,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2025cc=this['_commentsRepository']['getCommentThread'](_0x10e027);_0x2025cc[_0x36d7('0x53')](_0x36d7('0x138')),_0x2025cc['isRemovable']=!0x1,_0x3450c4['commentThread']=_0x2025cc;}[_0x36d7('0x71')](_0x195ef7,_0x5471d7,_0x421b35,_0x48036f){if(_0x195ef7['type']!=_0x5471d7||_0x195ef7[_0x36d7('0x128')]!=_0x421b35||_0x195ef7[_0x36d7('0x39')]['id']!=_0x48036f)throw this['editor'][_0x36d7('0x8e')](_0x36d7('0xa0')),new _0x5e2e59(_0x36d7('0xa0'),this);}['_cutOutSuggestionMarker'](_0x44337f,_0x4f0159){const _0x4a4d3d=_0x44337f[_0x36d7('0xd9')]();if(_0x4f0159[_0x36d7('0x129')](_0x4a4d3d))_0x44337f[_0x36d7('0x57')]();else{if(_0x4a4d3d['containsRange'](_0x4f0159)){const _0x2a7f00=this[_0x36d7('0x8c')][_0x36d7('0x43')](_0x4f0159['start'][_0x36d7('0x12a')],_0x36d7('0x7a'));this[_0x36d7('0xfd')](_0x44337f,this[_0x36d7('0x8c')][_0x36d7('0x8f')](_0x4a4d3d[_0x36d7('0x110')],_0x2a7f00));const _0x40cc5e=_0x235188(),_0x50ea21=_0x44337f[_0x36d7('0x39')]['id'],_0x3a8fa3=_0x44337f[_0x36d7('0x78')]+':'+_0x44337f[_0x36d7('0x128')];this[_0x36d7('0x13a')]({'id':_0x40cc5e,'type':_0x3a8fa3,'createdAt':new Date(),'authorId':_0x50ea21,'data':_0x44337f['data'],'attributes':_0x44337f[_0x36d7('0x11f')]});const _0x1c7053=this[_0x36d7('0x8c')][_0x36d7('0x43')](_0x4f0159[_0x36d7('0x7a')][_0x36d7('0x9a')],_0x36d7('0x4d')),_0x37f9eb=this[_0x36d7('0x8c')]['createRange'](_0x1c7053,_0x4a4d3d[_0x36d7('0x7a')]);this[_0x36d7('0x86')](_0x3a8fa3,_0x40cc5e,_0x50ea21,_0x37f9eb);}else{if(_0x4a4d3d[_0x36d7('0x137')](_0x4f0159[_0x36d7('0x110')])){const _0x29c7bf=this[_0x36d7('0x8c')][_0x36d7('0x43')](_0x4f0159['start'][_0x36d7('0x12a')],'end');this[_0x36d7('0xfd')](_0x44337f,this[_0x36d7('0x8c')][_0x36d7('0x8f')](_0x4a4d3d[_0x36d7('0x110')],_0x29c7bf));}else{const _0x16c663=this[_0x36d7('0x8c')]['createPositionAt'](_0x4f0159['end']['parent'],'after');this[_0x36d7('0xfd')](_0x44337f,this[_0x36d7('0x8c')][_0x36d7('0x8f')](_0x16c663,_0x4a4d3d[_0x36d7('0x7a')]));}}}}[_0x36d7('0x4a')](_0xfc397e){for(const {suggestion:_0x54f97c,meta:_0x2b1140}of this['_findSuggestions'](_0xfc397e,_0x36d7('0xcd'))){if(!_0x2b1140[_0x36d7('0xb3')])continue;const _0x498573=_0x54f97c[_0x36d7('0x72')]();for(const _0x11f021 of _0x498573)if(!_0xfc397e[_0x36d7('0x79')](_0x11f021)[_0x36d7('0x3d')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1ed90b){const _0x254471=this[_0x36d7('0x24')]['plugins'][_0x36d7('0x77')](_0x36d7('0x105'))[_0x36d7('0x67')](_0x1ed90b);if(!_0x254471)throw new _0x5e2e59(_0x36d7('0x133'),this);return _0x254471;}[_0x36d7('0x5c')](_0x3c401d){const _0x38468e=this[_0x36d7('0x24')][_0x36d7('0x96')]['get'](_0x36d7('0x105')),_0xbc102f=_0x52b371(_0x36d7('0xe7')+_0x3c401d),_0x1c50b6=_0x38468e[_0x36d7('0x67')](_0xbc102f);return _0x1c50b6||_0x38468e[_0x36d7('0xc0')]({'id':_0xbc102f,'name':_0x3c401d});}[_0x36d7('0x4')](_0x11c067,_0x4f3883,_0x18f6ae,_0x235251,_0x556493){const _0x4c5c6c=this[_0x36d7('0x73')](_0x235251),_0x38b001=this['_suggestionFactory'][_0x36d7('0xa')](_0x11c067,_0x4f3883,_0x18f6ae,_0x4c5c6c,_0x556493,_0x4e6e81=>this[_0x36d7('0xd1')](_0x18f6ae,{'attributes':_0x4e6e81}));return this[_0x36d7('0xec')](_0x38b001,_0x36d7('0xce'),()=>{this[_0x36d7('0xd1')](_0x18f6ae,{'state':'accepted'});},{'priority':_0x36d7('0x34')}),this['listenTo'](_0x38b001,_0x36d7('0xa5'),()=>{this['_updateSuggestionData'](_0x18f6ae,{'state':_0x36d7('0xbd')});},{'priority':_0x36d7('0x34')}),this['_suggestions'][_0x36d7('0x18')](_0x18f6ae,_0x38b001),this[_0x36d7('0xdf')]['set'](_0x38b001,_0x36d7('0x6a')),_0x38b001;}['_splitMarkerName'](_0x2e35d0){const _0x3eb3c5=_0x2e35d0[_0x36d7('0x11e')](':');return{'group':_0x3eb3c5[0x0],'type':_0x3eb3c5[0x1],'subType':_0x3eb3c5[_0x36d7('0x3d')]>=0x5?_0x3eb3c5[0x2]:null,'id':_0x3eb3c5[_0x36d7('0x3d')]<0x5?_0x3eb3c5[0x2]:_0x3eb3c5[0x3],'authorId':_0x3eb3c5['length']<0x5?_0x3eb3c5[0x3]:_0x3eb3c5[0x4],'markerCount':0x6==_0x3eb3c5[_0x36d7('0x3d')]?_0x3eb3c5[0x5]:null};}[_0x36d7('0xc7')](_0x1a3f07,_0x19b5b3,_0xd0ffe3){const _0x8c153f=_0x1a3f07['getFirstRange'](),_0x1832a0=_0x8c153f[_0x36d7('0x110')],_0x7799be=_0x8c153f[_0x36d7('0x7a')];this[_0x36d7('0xfd')](_0x1a3f07,this[_0x36d7('0x8c')]['createRange'](_0x1832a0,_0x19b5b3));const _0x477dda=_0x235188(),_0x28edf5=_0x1a3f07[_0x36d7('0x39')]['id'],_0x5c4efc=_0x1a3f07[_0x36d7('0x78')]+(_0x1a3f07[_0x36d7('0x128')]?':'+_0x1a3f07[_0x36d7('0x128')]:'');this['_setSuggestionData']({'id':_0x477dda,'type':_0x5c4efc,'createdAt':new Date(),'authorId':_0x28edf5,'originalSuggestionId':_0x1a3f07['id'],'attributes':_0x1a3f07[_0x36d7('0x11f')],'data':_0x1a3f07[_0x36d7('0xf6')]}),_0x36d7('0x119')==_0x1a3f07[_0x36d7('0x78')]&&(_0xd0ffe3=this[_0x36d7('0x8c')][_0x36d7('0x13b')](_0xd0ffe3[_0x36d7('0x9a')])),this['_addSuggestionMarker'](_0x5c4efc,_0x477dda,_0x28edf5,this[_0x36d7('0x8c')]['createRange'](_0xd0ffe3,_0x7799be));}['_findSuggestions'](_0x195eb0,_0xea27ee=null){const _0x22bd6d=[],_0x2fdcc8=this[_0x36d7('0x8c')][_0x36d7('0x7')],_0x2d8f91=this[_0x36d7('0x24')][_0x36d7('0x96')][_0x36d7('0x77')]('Users')['me'];for(const _0x2df3a2 of this['getSuggestions']())if(_0x2df3a2[_0x36d7('0x120')]&&(!_0xea27ee||_0x2df3a2[_0x36d7('0x78')]==_0xea27ee))for(const _0x1faea7 of _0x2df3a2[_0x36d7('0x72')]()){const _0x401a5b=_0x195eb0[_0x36d7('0x110')][_0x36d7('0x129')](_0x1faea7[_0x36d7('0x7a')])||_0x195eb0[_0x36d7('0x7a')]['isEqual'](_0x1faea7['start']);if(_0x401a5b||_0x195eb0[_0x36d7('0xff')](_0x1faea7)){const _0x56c124=_0x195eb0['containsRange'](_0x1faea7)&&Bt(_0x2fdcc8,_0x1faea7[_0x36d7('0x110')],_0x195eb0),_0x5098c4=_0x1faea7[_0x36d7('0xe1')](_0x195eb0)&&Bt(_0x2fdcc8,_0x195eb0[_0x36d7('0x110')],_0x1faea7);_0x22bd6d[_0x36d7('0x116')]({'suggestion':_0x2df3a2,'meta':{'isOwn':_0x2d8f91==_0x2df3a2[_0x36d7('0xde')],'isNextTo':_0x401a5b,'isInsideObject':_0x56c124,'containsRangeInObject':_0x5098c4}});break;}}return _0x22bd6d;}[_0x36d7('0x86')](_0xd5288e,_0x446141,_0x4f9190,_0x136f81,_0x3a4b46){this['_model'][_0x36d7('0x101')](_0x4f60d1=>{let _0x3fcf0a=_0x36d7('0x0')+_0xd5288e+':'+_0x446141+':'+_0x4f9190;_0x3a4b46&&(_0x3fcf0a=_0x3fcf0a+':'+_0x3a4b46),_0x4f60d1['addMarker'](_0x3fcf0a,{'range':_0x136f81,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x36d7('0x45')](_0x3ed3f4){const _0x50b5b3=_0x3ed3f4['previous'],_0x32f446=_0x3ed3f4['next'];_0x3ed3f4[_0x36d7('0xfb')]=null,null!=_0x50b5b3&&(_0x50b5b3[_0x36d7('0x59')]=null),_0x3ed3f4['next']=null,null!=_0x32f446&&(_0x32f446[_0x36d7('0xfb')]=null),_0x36d7('0x13e')==this[_0x36d7('0xdf')]['get'](_0x3ed3f4)&&(this[_0x36d7('0xdf')]['set'](_0x3ed3f4,_0x36d7('0x11c')),this[_0x36d7('0x3e')]('suggestionUnloaded',_0x3ed3f4,_0x50b5b3,_0x32f446));}['_setSuggestionData'](_0x21f823){const _0x4172b8=_0x21f823['id'],_0x13881a=this[_0x36d7('0x3c')](_0x21f823);if(this[_0x36d7('0x10a')]&&this[_0x36d7('0x10a')]['addSuggestion']){const _0x33c002=this['editor'][_0x36d7('0x96')][_0x36d7('0x77')](_0x36d7('0x111')),_0x25b7d0=_0x13881a[_0x36d7('0x7f')],_0x3d27d9=_0x13881a['subType']?_0x13881a['type']+':'+_0x13881a['subType']:_0x13881a[_0x36d7('0x78')],_0x388fd8=this[_0x36d7('0x24')][_0x36d7('0x13d')],_0x141353=_0x33c002[_0x36d7('0x52')](_0x2e9973(_0x388fd8,_0x36d7('0x1'))),_0x4bfe40={'id':_0x4172b8,'type':_0x3d27d9,'hasComments':_0x25b7d0,'data':_0x21f823[_0x36d7('0xf6')]||null,'originalSuggestionId':_0x21f823['originalSuggestionId']||null,'attributes':_0x13881a['attributes']};this['_adapter']['addSuggestion'](_0x4bfe40)[_0x36d7('0x22')](_0x196210=>{_0x13881a[_0x36d7('0x17')]=!0x0,_0x33c002['remove'](_0x141353),_0x196210&&_0x196210['createdAt']&&(this[_0x36d7('0xd7')][_0x36d7('0x77')](_0x4172b8)[_0x36d7('0x2d')]=_0x196210[_0x36d7('0x2d')]);})['catch'](_0x2968fd=>{throw _0x33b32f(_0x36d7('0x84')),this['editor']['model'][_0x36d7('0xea')]({'isUndoable':!0x1},()=>{_0x13881a[_0x36d7('0xa5')]();}),_0x13881a[_0x36d7('0xeb')](),this[_0x36d7('0xd7')][_0x36d7('0xfe')](_0x13881a['id']),this[_0x36d7('0xdf')][_0x36d7('0xfe')](_0x13881a),_0x2968fd;});}return _0x13881a;}[_0x36d7('0xd1')](_0xde916b,_0x38d2cd){const _0xf3f530=this[_0x36d7('0x24')]['plugins'][_0x36d7('0x77')](_0x36d7('0x111')),_0x12606b=this[_0x36d7('0x90')](_0xde916b);if(this[_0x36d7('0x10a')]&&this['_adapter'][_0x36d7('0xee')]){if(_0x12606b['_saved']){const _0x408cfa=_0xf3f530[_0x36d7('0x52')](_0x2e9973(this['editor'][_0x36d7('0x13d')],_0x36d7('0x1')));this[_0x36d7('0x10a')][_0x36d7('0xee')](_0xde916b,_0x38d2cd)[_0x36d7('0x22')](()=>{_0xf3f530[_0x36d7('0x98')](_0x408cfa);});}else _0x12606b['on'](_0x36d7('0xa7'),()=>{this[_0x36d7('0xd1')](_0xde916b,_0x38d2cd);});}}['_getSuggestionData'](_0x5afbaf){if(!this[_0x36d7('0x10a')]||!this[_0x36d7('0x10a')][_0x36d7('0x90')])throw new _0x5e2e59(_0x36d7('0x4f'),this);return this[_0x36d7('0x10a')][_0x36d7('0x90')](_0x5afbaf);}[_0x36d7('0x54')](_0x5c8522){const {id:_0x3ad27b,type:_0x3b3e4f,subType:_0x1b65f2,authorId:_0x5dd366}=this[_0x36d7('0x3f')](_0x5c8522),_0x2ada7b=this[_0x36d7('0xd7')][_0x36d7('0x77')](_0x3ad27b)||this[_0x36d7('0x4')](_0x3b3e4f,_0x1b65f2,_0x3ad27b,_0x5dd366,{});switch(this[_0x36d7('0x71')](_0x2ada7b,_0x3b3e4f,_0x1b65f2,_0x5dd366),this['_suggestionState'][_0x36d7('0x77')](_0x2ada7b)){case _0x36d7('0x6a'):this[_0x36d7('0xd3')](_0x3ad27b)['then'](_0x209b21=>{let _0x4909a2=Promise[_0x36d7('0x33')]();_0x209b21['hasComments']&&(_0x4909a2=this['_commentsRepository'][_0x36d7('0x8a')]({'channelId':this['editor']['config']['get'](_0x36d7('0x12f')),'threadId':_0x3ad27b})),_0x4909a2[_0x36d7('0x22')](()=>{this[_0x36d7('0x3c')](_0x209b21)[_0x36d7('0x17')]=!0x0;});}),this['_suggestionState'][_0x36d7('0x18')](_0x2ada7b,_0x36d7('0xc8'));break;case _0x36d7('0x11c'):this[_0x36d7('0xd1')](_0x3ad27b,{'state':'open'});case _0x36d7('0xd8'):this[_0x36d7('0xdf')][_0x36d7('0x18')](_0x2ada7b,_0x36d7('0x13e')),this[_0x36d7('0x3e')](_0x36d7('0xcf'),_0x2ada7b);break;case _0x36d7('0x13e'):this[_0x36d7('0x3e')]('suggestionChanged',_0x2ada7b);}return _0x2ada7b['addMarkerName'](_0x5c8522),_0x2ada7b;}['_refreshSuggestionsChain'](_0x39d465){const _0x2cf823=Array[_0x36d7('0xf3')](_0x39d465)[_0x36d7('0x82')](_0x5a02c0=>!_0x5a02c0[_0x36d7('0xe4')]),_0x41d693=this[_0x36d7('0x5d')]({'skipNotAttached':!0x0})[_0x36d7('0x82')](_0x11c7cf=>!_0x11c7cf[_0x36d7('0xe4')]),_0x2780d1=_0x41d693[_0x36d7('0x82')](_0x44a9fa=>!_0x39d465[_0x36d7('0xb6')](_0x44a9fa)),_0x1fe432=new Map(_0x41d693['map'](_0x423067=>[_0x423067,this['_suggestionFactory'][_0x36d7('0x11')](_0x423067[_0x36d7('0x78')],_0x423067[_0x36d7('0x128')],_0x36d7('0xc4'))])),_0x382308=new Map(_0x41d693['map'](_0x10328f=>[_0x10328f,_0x10328f[_0x36d7('0xd9')]()])),_0x237fe9=new Set(),_0x4ebc0d=new Set();for(let _0x2da203=0x0;_0x2da203<_0x2cf823[_0x36d7('0x3d')];_0x2da203++)_0x129f2d(_0x2cf823[_0x2da203],_0x2cf823,_0x2da203+0x1);for(let _0x13d599=0x0;_0x13d599<_0x2cf823[_0x36d7('0x3d')];_0x13d599++)_0x129f2d(_0x2cf823[_0x13d599],_0x2780d1,0x0);for(let _0x268937=0x0;_0x268937<_0x2cf823[_0x36d7('0x3d')];_0x268937++){const _0x3e0732=_0x2cf823[_0x268937];!_0x4ebc0d[_0x36d7('0xb6')](_0x3e0732)&&_0x3e0732['previous']&&(_0x3e0732[_0x36d7('0xfb')][_0x36d7('0x59')]===_0x3e0732&&(_0x3e0732[_0x36d7('0xfb')][_0x36d7('0x59')]=null),_0x3e0732[_0x36d7('0xfb')]=null),!_0x237fe9['has'](_0x3e0732)&&_0x3e0732[_0x36d7('0x59')]&&(_0x3e0732[_0x36d7('0x59')][_0x36d7('0xfb')]===_0x3e0732&&(_0x3e0732[_0x36d7('0x59')]['previous']=null),_0x3e0732[_0x36d7('0x59')]=null);}function _0x129f2d(_0x2fb0cb,_0x226c66,_0x3555c9){for(let _0x3d8547=_0x3555c9;_0x3d8547<_0x226c66['length'];_0x3d8547++){const _0x370b46=_0x2b91a6(_0x2fb0cb,_0x226c66[_0x3d8547]);_0x370b46&&(_0x370b46[0x0][_0x36d7('0x59')]=_0x370b46[0x1],_0x370b46[0x1][_0x36d7('0xfb')]=_0x370b46[0x0],_0x237fe9['add'](_0x370b46[0x0]),_0x4ebc0d[_0x36d7('0x52')](_0x370b46[0x1]));}}function _0x2b91a6(_0x58c58d,_0x12e300){if(_0x58c58d[_0x36d7('0xde')]['id']!==_0x12e300[_0x36d7('0xde')]['id'])return null;const _0x3fb906=_0x1fe432[_0x36d7('0x77')](_0x58c58d)(_0x58c58d,_0x12e300,_0x382308['get'](_0x58c58d),_0x382308['get'](_0x12e300));if(!_0x3fb906)return null;return _0x1fe432[_0x36d7('0x77')](_0x12e300)(_0x58c58d,_0x12e300,_0x382308[_0x36d7('0x77')](_0x58c58d),_0x382308[_0x36d7('0x77')](_0x12e300))?_0x3fb906[0x1]['commentThread']&&_0x3fb906[0x1][_0x36d7('0x99')][_0x36d7('0x3d')]?null:_0x3fb906:null;}}[_0x36d7('0x47')](_0x2317f6){const _0x382211=Array['from'](_0x2317f6),_0x5b2650=this[_0x36d7('0x5d')]({'skipNotAttached':!0x0}),_0xc2cad6=_0x5b2650['filter'](_0x1ae8f1=>!_0x2317f6[_0x36d7('0xb6')](_0x1ae8f1)),_0x50f13a=new Map(_0x382211[_0x36d7('0xba')](_0x229f8f=>[_0x229f8f,this[_0x36d7('0x89')][_0x36d7('0x11')](_0x229f8f[_0x36d7('0x78')],_0x229f8f[_0x36d7('0x128')],_0x36d7('0x69'))])),_0x4344ed=new Map(_0x5b2650[_0x36d7('0xba')](_0x340b82=>[_0x340b82,_0x340b82['getRanges']()]));for(let _0x30bfe7=0x0;_0x30bfe7<_0x382211[_0x36d7('0x3d')];_0x30bfe7++){if(_0x1f0054(this,_0x382211[_0x30bfe7],_0x382211,_0x30bfe7+0x1))return!0x0;}for(let _0x3ce79=0x0;_0x3ce79<_0x382211[_0x36d7('0x3d')];_0x3ce79++){if(_0x1f0054(this,_0x382211[_0x3ce79],_0xc2cad6,0x0))return!0x0;}return!0x1;function _0x1f0054(_0x8f173f,_0x7acdd0,_0x443a70,_0x1fa978){for(let _0x4fa8f5=_0x1fa978;_0x4fa8f5<_0x443a70[_0x36d7('0x3d')];_0x4fa8f5++){const _0x4ce74d=_0x443a70[_0x4fa8f5];if(_0x4ce74d[_0x36d7('0x78')]!==_0x7acdd0[_0x36d7('0x78')]||_0x4ce74d[_0x36d7('0xde')]['id']!==_0x7acdd0['author']['id']||_0x4ce74d['subType']!==_0x7acdd0[_0x36d7('0x128')])continue;const _0x2be93c=_0x50f13a['get'](_0x7acdd0),_0x8a352b=_0x4344ed[_0x36d7('0x77')](_0x7acdd0),_0x1711f4=_0x4344ed[_0x36d7('0x77')](_0x4ce74d),_0x3ca9d4=_0x7acdd0[_0x36d7('0x99')]&&_0x7acdd0[_0x36d7('0x99')][_0x36d7('0x3d')],_0x42f996=_0x4ce74d[_0x36d7('0x99')]&&_0x4ce74d[_0x36d7('0x99')]['length'];if(!_0x3ca9d4&&_0x2be93c(_0x1711f4,_0x8a352b))return _0x8f173f[_0x36d7('0x83')](_0x4ce74d,_0x7acdd0),_0x4344ed[_0x36d7('0xfe')](_0x7acdd0),!0x0;if(!_0x42f996&&_0x2be93c(_0x8a352b,_0x1711f4))return _0x8f173f[_0x36d7('0x83')](_0x7acdd0,_0x4ce74d),_0x4344ed[_0x36d7('0xfe')](_0x4ce74d),!0x0;}return!0x1;}}[_0x36d7('0x83')](_0x27185a,_0x5c431d){if(_0x27185a[_0x36d7('0xe4')])for(const _0x97ddea of _0x5c431d[_0x36d7('0x72')]())_0x27185a['addRange'](_0x97ddea);else{const _0x226a07=_0x5c431d[_0x36d7('0xd9')]()[_0x36d7('0x7a')];this[_0x36d7('0xfd')](_0x27185a,this[_0x36d7('0x8c')][_0x36d7('0x8f')](_0x27185a[_0x36d7('0xd9')]()['start'],_0x226a07));}_0x5c431d['removeMarkers']();}}class Dt{constructor(_0x111da5){this['_editor']=_0x111da5,this[_0x36d7('0x8c')]=_0x111da5[_0x36d7('0xb2')],this[_0x36d7('0x5f')]=new Map(),this[_0x36d7('0x10f')]=new Map(),this[_0x36d7('0x3')]();}[_0x36d7('0xa')](_0x3de2d5,_0x1e8cbb,_0x5ad3e1,_0xd955c4,_0x4f2a98,_0x389da9){return new _0x2c1eb8(this[_0x36d7('0x8c')],{'type':_0x3de2d5,'subType':_0x1e8cbb,'id':_0x5ad3e1,'author':_0xd955c4,'creator':_0xd955c4,'attributes':_0x4f2a98,'onAttributesChange':_0x389da9,'onAccept':(..._0x443c70)=>this['getSuggestionCallback'](_0x3de2d5,_0x1e8cbb,'accept')(..._0x443c70),'onDiscard':(..._0x4bfcbe)=>this[_0x36d7('0x11')](_0x3de2d5,_0x1e8cbb,'discard')(..._0x4bfcbe)});}[_0x36d7('0x50')](_0x59762f,_0x2417c7,_0x3d40a2,_0x12f46d){const _0x1b5ee8=_0x59762f+':'+_0x2417c7+':'+_0x3d40a2;this[_0x36d7('0x5f')][_0x36d7('0x18')](_0x1b5ee8,_0x12f46d);}[_0x36d7('0x11')](_0x2aba5f,_0x279091,_0x2abd6b){const _0x1dab41=_0x2aba5f+':'+_0x279091+':'+_0x2abd6b;return this[_0x36d7('0x5f')]['get'](_0x1dab41)||this['_defaultCallbacks'][_0x36d7('0x77')](_0x2aba5f+':'+_0x2abd6b);}['_registerDefaultCallbacks'](){const _0xf52c76=()=>{},_0x57b145=_0x2d122d=>{_0x2d122d[_0x36d7('0x66')]((_0x55b2c4,_0x4ed131)=>_0x55b2c4[_0x36d7('0x110')][_0x36d7('0x28')](_0x4ed131[_0x36d7('0x110')])?0x1:-0x1),this[_0x36d7('0x8c')][_0x36d7('0x101')](_0x3a0c4b=>{for(const _0x251462 of _0x2d122d){let _0x13dc3d;_0x13dc3d=_0x251462['end'][_0x36d7('0x74')]&&_0x251462[_0x36d7('0x7a')][_0x36d7('0x9a')]==_0x251462['start'][_0x36d7('0x27')]?_0x3a0c4b[_0x36d7('0x136')](_0x251462[_0x36d7('0x110')][_0x36d7('0x27')],'on'):_0x3a0c4b[_0x36d7('0x136')](_0x251462),this[_0x36d7('0x8c')]['deleteContent'](_0x13dc3d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xc8d144=(_0x5dea9a,_0x390efd)=>{this[_0x36d7('0x8c')]['change'](_0x3d221b=>{const {commandName:_0x4243f7,commandParams:_0x4c9872=[]}=_0x390efd,_0x5c1de8=_0x5dea9a['map'](_0x3f1715=>(_t(_0x3f1715)&&(_0x3f1715=this[_0x36d7('0x8c')][_0x36d7('0x8f')](_0x3f1715[_0x36d7('0x7a')])),_0x3f1715))['filter'](_0x18ef8f=>_0x36d7('0x65')!==_0x18ef8f[_0x36d7('0xbb')][_0x36d7('0xa6')]);if(_0x5c1de8[_0x36d7('0x3d')]<0x1)return;const _0x5bfd1c=Array[_0x36d7('0xf3')](this[_0x36d7('0x8c')][_0x36d7('0x6f')][_0x36d7('0x75')][_0x36d7('0x72')]())[_0x36d7('0xba')](_0x58d21e=>_0x256bfb[_0x36d7('0x12')](_0x58d21e));_0x3d221b['setSelection'](_0x5c1de8);for(const _0x11e594 of this[_0x36d7('0xdb')][_0x36d7('0x104')][_0x36d7('0x104')]())_0x11e594[_0x36d7('0x121')]();_0x4c9872[_0x36d7('0x116')]({'forceDefaultExecution':!0x0}),this[_0x36d7('0xdb')]['execute'](_0x4243f7,..._0x4c9872);const _0x490481=_0x5bfd1c[_0x36d7('0x82')](_0x4b3dd7=>_0x36d7('0x65')!=_0x4b3dd7[_0x36d7('0xbb')][_0x36d7('0xa6')]);_0x490481['length']>0x0&&_0x3d221b[_0x36d7('0x112')](_0x490481);for(const _0x4e933e of _0x5bfd1c)_0x4e933e[_0x36d7('0x93')]();});},_0x2aa43d=(_0x598fa3,_0x2393d5)=>0x1==_0x598fa3[_0x36d7('0x3d')]&&0x1==_0x2393d5[_0x36d7('0x3d')]&&_0x598fa3[0x0][_0x36d7('0x7a')][_0x36d7('0x129')](_0x2393d5[0x0][_0x36d7('0x110')]),_0x4a479e=(_0x585fec,_0x598761,_0x54f5be,_0x52f125)=>xt(_0x585fec,_0x598761,_0x54f5be,_0x52f125,this[_0x36d7('0x8c')])?[_0x585fec,_0x598761]:xt(_0x598761,_0x585fec,_0x52f125,_0x54f5be,this[_0x36d7('0x8c')])?[_0x598761,_0x585fec]:null;this[_0x36d7('0x10f')][_0x36d7('0x18')](_0x36d7('0xe'),_0xf52c76),this[_0x36d7('0x10f')][_0x36d7('0x18')]('insertion:discard',_0x57b145),this[_0x36d7('0x10f')][_0x36d7('0x18')]('insertion:join',_0x2aa43d),this[_0x36d7('0x10f')][_0x36d7('0x18')](_0x36d7('0x126'),_0x4a479e),this[_0x36d7('0x10f')]['set'](_0x36d7('0x135'),_0x57b145),this[_0x36d7('0x10f')][_0x36d7('0x18')](_0x36d7('0xa4'),_0xf52c76),this[_0x36d7('0x10f')]['set'](_0x36d7('0x10b'),_0x2aa43d),this[_0x36d7('0x10f')]['set'](_0x36d7('0x109'),_0x4a479e),this['_defaultCallbacks'][_0x36d7('0x18')](_0x36d7('0x56'),_0xc8d144),this[_0x36d7('0x10f')][_0x36d7('0x18')](_0x36d7('0x9b'),_0xf52c76),this['_defaultCallbacks']['set'](_0x36d7('0x76'),_0x2aa43d),this[_0x36d7('0x10f')][_0x36d7('0x18')](_0x36d7('0x6c'),_0xf52c76),this[_0x36d7('0x10f')][_0x36d7('0x18')](_0x36d7('0x1c'),_0xc8d144),this[_0x36d7('0x10f')][_0x36d7('0x18')](_0x36d7('0x12d'),_0xf52c76),this['_defaultCallbacks'][_0x36d7('0x18')](_0x36d7('0x20'),_0x2aa43d),this[_0x36d7('0x10f')][_0x36d7('0x18')](_0x36d7('0x68'),_0xf52c76);}}function Bt(_0x336554,_0x2656f9,_0x18811b){for(const _0x36fc0b of _0x2656f9[_0x36d7('0x9a')][_0x36d7('0x12e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x36fc0b['root']==_0x36fc0b)return!0x1;if(!_0x18811b['containsItem'](_0x36fc0b))return!0x1;if(_0x336554['isObject'](_0x36fc0b)||_0x336554[_0x36d7('0x40')](_0x36fc0b))return!0x0;}return!0x1;}function _t(_0x44303e){return _0x44303e[_0x36d7('0x7a')][_0x36d7('0x9a')]==_0x44303e[_0x36d7('0x110')][_0x36d7('0x27')]&&_0x44303e['end']['isAtStart'];}function Mt(_0x518f2b,_0x4beb69,_0x2879c1,_0x2e62e5){const _0x2c505a=_0x833ac=>!_0x833ac[_0x36d7('0x11b')]['is']('$textProxy')&&!_0x2e62e5[_0x36d7('0x123')](_0x833ac[_0x36d7('0x11b')]),_0x417858=_0x518f2b[_0x36d7('0x110')][_0x36d7('0x92')](_0x2c505a),_0xc287e3=_0x518f2b['end'][_0x36d7('0x92')](_0x2c505a,{'direction':'backward'});return(!_0x518f2b[_0x36d7('0x110')]['isEqual'](_0x417858)||!_0x518f2b[_0x36d7('0x7a')][_0x36d7('0x129')](_0xc287e3))&&(_0x417858[_0x36d7('0x28')](_0xc287e3)?_0x2879c1[_0x36d7('0xa9')](_0x4beb69,{'range':_0x2879c1[_0x36d7('0x8f')](_0x417858,_0xc287e3)}):_0x2879c1[_0x36d7('0x42')](_0x4beb69),!0x0);}function $t(_0x4ee69e){return _0x52b371(_0x4ee69e);}function Nt(_0x4353b7){const _0x12804b=_0x4353b7[_0x36d7('0x110')][_0x36d7('0x27')];return _0x12804b&&_0x12804b['is'](_0x36d7('0xac'));}function Rt(_0xa1f338,_0x31946e){const _0x34aff3=_0x31946e[_0x36d7('0x7')][_0x36d7('0x123')](_0xa1f338)||_0x31946e[_0x36d7('0x7')][_0x36d7('0x12c')](_0xa1f338);return _0x31946e[_0x36d7('0x8f')](_0x31946e[_0x36d7('0x43')](_0xa1f338,_0x36d7('0xd6')),_0x34aff3?_0x31946e[_0x36d7('0xb1')](_0xa1f338):_0x31946e[_0x36d7('0x43')](_0xa1f338,'end'));}function xt(_0x596e02,_0x57ec1c,_0x43df53,_0x13720f,_0x58040b){if(_0x43df53[_0x36d7('0x7a')][_0x36d7('0x129')](_0x13720f[_0x36d7('0x110')]))return!0x0;if(_0x596e02[_0x36d7('0x78')]!=_0x57ec1c[_0x36d7('0x78')])return!0x1;if(!_0x43df53[_0x36d7('0x7a')][_0x36d7('0x1b')](_0x13720f[_0x36d7('0x110')]))return!0x1;const _0x4a891c=_0x58040b[_0x36d7('0x8f')](_0x43df53[_0x36d7('0x7a')],_0x13720f[_0x36d7('0x110')])[_0x36d7('0x115')]();for(const _0xe4c757 of _0x4a891c)if([_0x36d7('0x9e'),'elementEnd'][_0x36d7('0xa8')](_0xe4c757[_0x36d7('0x78')])&&_0x58040b[_0x36d7('0x7')]['isLimit'](_0xe4c757[_0x36d7('0x11b')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5e99=['addSourceCollector','_createUIButton','isMultiRange','bind','refreshSelectedViews','clear','discardSelectedSuggestions','trackChanges.SuggestionThreadView','listenTo','set','commands','activeAnnotations','TrackChangesUI','keys','CommentView','acceptSelectedSuggestions','change:activeAnnotations','push','comments','getSuggestion','comments.maxCommentsWhenCollapsed','from','length','comments.maxThreadTotalWeight','_initializeController','commentThread','suggestionChanged','getFirstRange','remove','CommentsRepository','_destroyController','add','unbind','locale','plugins','_disableComments','descriptionParts','EditorAnnotations','suggestionLoaded','toMany','activeMarkers','destroy','_handleControllerBuffer','isDirty','Discard\x20all\x20suggestions','_handleSuggestionControllerDelayed','isEnabled','isOn','has','editing','createAnnotation','componentFactory','getDescriptions','button','getMarkerNames','_refreshActiveMarkers','comments.maxCommentCharsWhenCollapsed','commandName','requires','define','createCommentThreadController','actionView','get','TrackChangesEditing','view','_suggestionToController','trackChanges.disableComments','model','acceptAllSuggestions','head','Discard\x20all\x20selected\x20suggestions','filter','isInContent','discardButton','acceptButton','trackChanges','mainView','change:previous','getAllAdjacentSuggestions','pluginName','_descriptionFactory','CommentsUI','focus','size','suggestionUnloaded','reduce','execute','type','init','getRanges','buttonView','switchbutton','addComment','suggestion-','_viewToController','_annotationViews','_updateController','comments.editorConfig','delete','registerAnnotation','getJoined','config','editor','Annotations','Track\x20changes','getMarkers','arrowView','discardAllSuggestions','innerView','createAnnotationView'];(function(_0x102dec,_0x5e9977){const _0x39cd5c=function(_0x4366db){while(--_0x4366db){_0x102dec['push'](_0x102dec['shift']());}};_0x39cd5c(++_0x5e9977);}(_0x5e99,0xa7));const _0x39cd=function(_0x102dec,_0x5e9977){_0x102dec=_0x102dec-0x0;let _0x39cd5c=_0x5e99[_0x102dec];return _0x39cd5c;};import{Plugin as _0x565697}from'ckeditor5/src/core';import{Collection as _0x4d5bcf}from'ckeditor5/src/utils';import{Model as _0x40dd2f,SplitButtonView as _0x434968,createDropdown as _0x46a4ac,addListToDropdown as _0x7d4859}from'ckeditor5/src/ui';import{Users as _0xb54a43,getDateTimeFormatter as _0x31f50f,getAllMarkersDomElementsSorted as _0x52b010}from'ckeditor5-collaboration/src/collaboration-core';import _0x40ac97 from'./trackchangesediting';import _0x52166d from'./ui/suggestioncontroller';import _0x357686 from'./ui/view/suggestionthreadview';import{getTranslation as _0x59c09f}from'./utils/common-translations';import _0x432a7c from'../theme/icons/track-changes.svg';export default class d extends _0x565697{static get[_0x39cd('0x1')](){return[_0x40ac97,_0xb54a43,_0x39cd('0x52'),_0x39cd('0x2e'),_0x39cd('0x5a')];}static get[_0x39cd('0x16')](){return _0x39cd('0x41');}constructor(_0x184fba){super(_0x184fba),this[_0x39cd('0x8')]=new Map(),this[_0x39cd('0x25')]=new Map(),this[_0x39cd('0x26')]=new Map(),this[_0x39cd('0x5f')]=new Map();const _0x794dcf=this[_0x39cd('0x2d')][_0x39cd('0x2c')];_0x794dcf[_0x39cd('0x2')](_0x39cd('0x3c'),_0x357686),_0x794dcf[_0x39cd('0x2')](_0x39cd('0x9'),!0x1),this[_0x39cd('0x58')]=_0x794dcf[_0x39cd('0x5')](_0x39cd('0x9'));}[_0x39cd('0x62')](_0x1a19de,_0x4b504c){0x0===this['_handleControllerBuffer'][_0x39cd('0x1a')]&&setTimeout(()=>{for(const [_0x6f9fe0,_0x3d30d3]of this[_0x39cd('0x5f')]){const _0x5db4e9=this['_suggestionToController'][_0x39cd('0x65')](_0x6f9fe0);_0x5db4e9||_0x3d30d3?_0x5db4e9&&_0x3d30d3&&this['_destroyController'](_0x6f9fe0):this[_0x39cd('0x4d')](_0x6f9fe0);}this[_0x39cd('0x2d')]['plugins'][_0x39cd('0x5')](_0x39cd('0x5a'))[_0x39cd('0x39')](),this[_0x39cd('0x6c')](),this[_0x39cd('0x5f')][_0x39cd('0x3a')]();},0xa),this[_0x39cd('0x5f')][_0x39cd('0x3e')](_0x1a19de,_0x4b504c);}[_0x39cd('0x1f')](){const _0x3121e1=this[_0x39cd('0x2d')],_0x30049e=_0x3121e1[_0x39cd('0x57')][_0x39cd('0x5')](_0x39cd('0x6')),_0x14c30d=_0x3121e1[_0x39cd('0x57')][_0x39cd('0x5')]('Annotations'),_0x30dbd7=_0x3121e1['plugins'][_0x39cd('0x5')](_0x39cd('0x5a')),_0x4cfc62=_0x3121e1[_0x39cd('0x57')][_0x39cd('0x5')](_0x39cd('0x52'));_0x3121e1['ui'][_0x39cd('0x68')][_0x39cd('0x54')](_0x39cd('0x12'),_0x3ca0e4=>this[_0x39cd('0x36')](_0x3ca0e4)),_0x30dbd7[_0x39cd('0x35')](()=>{const _0x2600e9=[];for(const [_0x5e4342,_0x4c4016]of Array['from'](this[_0x39cd('0x8')])){const _0x1ad722=_0x5e4342[_0x39cd('0x15')](),_0x114bc9=[];for(const _0xa5cc6 of _0x1ad722){if(!_0xa5cc6['isInContent'])continue;if(_0xa5cc6[_0x39cd('0x37')]){_0x114bc9['push'](..._0xa5cc6[_0x39cd('0x20')]());continue;}const _0x4e7e5c=_0xa5cc6[_0x39cd('0x50')]();if(_0x114bc9[_0x39cd('0x4b')]>0x0){const _0x7ad621=_0x114bc9[0x0][_0x39cd('0x2b')](_0x4e7e5c);if(_0x7ad621){_0x114bc9[0x0]=_0x7ad621;continue;}}_0x114bc9[_0x39cd('0x46')](_0x4e7e5c);}_0x2600e9[_0x39cd('0x46')]([_0x4c4016[_0x39cd('0x7')],_0x114bc9]);}return _0x2600e9;}),this[_0x39cd('0x3d')](_0x30049e,_0x39cd('0x5b'),(_0xe72bed,_0x53d87c)=>{this[_0x39cd('0x3d')](_0x53d87c,_0x39cd('0x14'),(_0x26db1c,_0x5385b6,_0x585b16,_0x4a7a97)=>{_0x53d87c[_0x39cd('0xf')]&&(null==_0x585b16?(this[_0x39cd('0x27')](_0x4a7a97[_0x39cd('0xc')]),this['_handleSuggestionControllerDelayed'](_0x53d87c,!0x1)):(this[_0x39cd('0x27')](_0x585b16['head']),this[_0x39cd('0x62')](_0x53d87c,!0x0)));}),null===_0x53d87c['previous']?this['_handleSuggestionControllerDelayed'](_0x53d87c,!0x1):this[_0x39cd('0x27')](_0x53d87c[_0x39cd('0xc')]);}),this[_0x39cd('0x3d')](_0x30049e,_0x39cd('0x1b'),(_0x4b6ba4,_0x3b8b2d,_0x3560f6)=>{this['stopListening'](_0x3b8b2d,_0x39cd('0x14')),this[_0x39cd('0x5f')]['delete'](_0x3b8b2d);const _0x32366c=_0x3560f6?_0x3560f6[_0x39cd('0xc')]:_0x3b8b2d,_0x592f13=this['_suggestionToController'][_0x39cd('0x5')](_0x32366c);null!==_0x3560f6&&this[_0x39cd('0x27')](_0x32366c),null===_0x3560f6&&_0x592f13&&this['_destroyController'](_0x3b8b2d);}),this[_0x39cd('0x3d')](_0x30049e,_0x39cd('0x4f'),(_0x30747f,_0x821a7b)=>{this['_updateController'](_0x821a7b);}),this['listenTo'](_0x14c30d,_0x39cd('0x45'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4cfc62,_0x39cd('0x23'),(_0x46d3aa,{threadId:_0x1c4c38,isFromAdapter:_0x2e8beb})=>{if(_0x2e8beb||!_0x30049e['hasSuggestion'](_0x1c4c38))return;const _0x2ba1c7=_0x30049e[_0x39cd('0x48')](_0x1c4c38);this['_suggestionToController'][_0x39cd('0x5')](_0x2ba1c7)['view'][_0x39cd('0x19')]();},{'priority':'lowest'});}[_0x39cd('0x6c')](){const _0x1ac881=this[_0x39cd('0x2d')][_0x39cd('0x57')][_0x39cd('0x5')](_0x39cd('0x2e')),_0x151ece=this['editor']['plugins']['get'](_0x39cd('0x6')),_0x3c50e3=Array[_0x39cd('0x4a')](_0x1ac881[_0x39cd('0x40')],_0x5724c1=>_0x5724c1[_0x39cd('0x33')])[_0x39cd('0xe')](_0xf71252=>this[_0x39cd('0x25')][_0x39cd('0x65')](_0xf71252)),_0x1c70f6=[];for(const _0x2ab51a of _0x3c50e3){const _0x238b3a=this[_0x39cd('0x25')][_0x39cd('0x5')](_0x2ab51a)[_0x39cd('0xa')]['getAllAdjacentSuggestions']();_0x1c70f6[_0x39cd('0x46')](..._0x238b3a[_0x39cd('0x1c')]((_0x113f11,_0x68b016)=>[..._0x113f11,..._0x68b016[_0x39cd('0x6b')]()],[]));}_0x151ece[_0x39cd('0x5d')]=_0x1c70f6;}[_0x39cd('0x36')](_0x28693c){const _0x525990=_0x46a4ac(_0x28693c,_0x434968),_0x30ecbc=this[_0x39cd('0x2d')]['commands'][_0x39cd('0x5')](_0x39cd('0x12')),_0x3893a7=_0x59c09f(_0x28693c,_0x39cd('0x2f'));_0x525990[_0x39cd('0x21')][_0x39cd('0x3e')]({'tooltip':_0x3893a7,'label':_0x3893a7,'icon':_0x432a7c}),_0x525990[_0x39cd('0x21')][_0x39cd('0x38')](_0x39cd('0x64'))['to'](_0x30ecbc,'value'),_0x525990[_0x39cd('0x21')]['on']('execute',()=>{_0x30ecbc[_0x39cd('0x1d')](),this['editor'][_0x39cd('0x66')][_0x39cd('0x7')]['focus']();});const _0x2141b1=new _0x4d5bcf(),_0x3ef39d=[{'type':_0x39cd('0x22'),'model':{'withText':!0x0,'label':_0x3893a7,'commandName':_0x39cd('0x12')}},{'type':'separator'},{'type':_0x39cd('0x6a'),'model':{'withText':!0x0,'label':_0x59c09f(_0x28693c,'Accept\x20all\x20suggestions'),'commandName':_0x39cd('0xb')}},{'type':_0x39cd('0x6a'),'model':{'withText':!0x0,'label':_0x59c09f(_0x28693c,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x39cd('0x44')}},{'type':_0x39cd('0x6a'),'model':{'withText':!0x0,'label':_0x59c09f(_0x28693c,_0x39cd('0x61')),'commandName':_0x39cd('0x32')}},{'type':_0x39cd('0x6a'),'model':{'withText':!0x0,'label':_0x59c09f(_0x28693c,_0x39cd('0xd')),'commandName':_0x39cd('0x3b')}}];for(const _0x43388c of _0x3ef39d){let _0x1dfa64={'type':'separator'};if(_0x43388c[_0x39cd('0xa')]){const _0x589b32=new _0x40dd2f(_0x43388c[_0x39cd('0xa')]),_0x1d341f=this[_0x39cd('0x2d')][_0x39cd('0x3f')][_0x39cd('0x5')](_0x589b32[_0x39cd('0x0')]);_0x589b32[_0x39cd('0x38')](_0x39cd('0x64'),'isEnabled')['to'](_0x1d341f,'value',_0x39cd('0x63')),_0x1dfa64={'type':_0x43388c['type'],'model':_0x589b32};}_0x2141b1[_0x39cd('0x54')](_0x1dfa64);}_0x7d4859(_0x525990,_0x2141b1);const _0x3eb1ce=_0x3ef39d[_0x39cd('0xe')](_0x2260a6=>null!=_0x2260a6[_0x39cd('0xa')])['map'](_0xbe9552=>this[_0x39cd('0x2d')]['commands'][_0x39cd('0x5')](_0xbe9552[_0x39cd('0xa')][_0x39cd('0x0')])),_0xa744cd=_0x525990[_0x39cd('0x21')];return _0xa744cd[_0x39cd('0x4')][_0x39cd('0x55')](_0x39cd('0x63')),_0xa744cd['arrowView']['unbind']('isEnabled'),_0xa744cd['actionView'][_0x39cd('0x38')](_0x39cd('0x63'))['to'](_0x30ecbc,'isEnabled'),_0xa744cd[_0x39cd('0x31')][_0x39cd('0x38')]('isEnabled')[_0x39cd('0x5c')](_0x3eb1ce,_0x39cd('0x63'),(..._0x54d646)=>_0x54d646['some'](_0x35a169=>_0x35a169)),_0x525990['on'](_0x39cd('0x1d'),_0x5d9786=>{this[_0x39cd('0x2d')][_0x39cd('0x1d')](_0x5d9786['source'][_0x39cd('0x0')]),this[_0x39cd('0x2d')][_0x39cd('0x66')]['view'][_0x39cd('0x19')]();}),_0x525990;}['_initializeController'](_0x2bb2ea){const _0x786343=this[_0x39cd('0x2d')],_0x41db48=_0x786343['config'],_0x88bbc2=_0x786343['plugins'][_0x39cd('0x5')](_0x39cd('0x2e')),_0x56c95f=_0x786343[_0x39cd('0x57')]['get']('CommentsRepository'),_0x24e229=_0x786343[_0x39cd('0x57')][_0x39cd('0x5')](_0x39cd('0x5a')),_0x718ee2=_0x786343['plugins'][_0x39cd('0x5')](_0xb54a43)['me'],_0x1d6c07=_0x41db48['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x365407,CommentThreadInputView:_0x4e1e81}=_0x786343['plugins']['get'](_0x39cd('0x18'));let _0xd35d36,_0x358bc1;this[_0x39cd('0x26')][_0x39cd('0x65')](_0x2bb2ea['id'])?(_0x358bc1=this[_0x39cd('0x26')][_0x39cd('0x5')](_0x2bb2ea['id']),_0xd35d36=_0x358bc1['mainView']):(_0xd35d36=new _0x1d6c07(_0x786343[_0x39cd('0x56')],_0x2bb2ea,_0x718ee2,{'disableComments':this[_0x39cd('0x58')],'editorConfig':_0x41db48[_0x39cd('0x5')](_0x39cd('0x28')),'maxCommentsWhenCollapsed':_0x41db48[_0x39cd('0x5')](_0x39cd('0x49')),'maxThreadTotalWeight':_0x41db48[_0x39cd('0x5')](_0x39cd('0x4c')),'maxCommentCharsWhenCollapsed':_0x41db48[_0x39cd('0x5')](_0x39cd('0x6d')),'formatDateTime':_0x31f50f(_0x41db48['get'](_0x39cd('0x56'))),'CommentView':_0x41db48['get'](_0x39cd('0x47'))[_0x39cd('0x43')],'CommentsListView':_0x365407,'CommentThreadInputView':_0x4e1e81}),_0xd35d36[_0x39cd('0x11')]['on'](_0x39cd('0x1d'),()=>{_0x786343[_0x39cd('0x66')]['view'][_0x39cd('0x19')]();}),_0xd35d36[_0x39cd('0x10')]['on'](_0x39cd('0x1d'),()=>{_0x786343[_0x39cd('0x66')][_0x39cd('0x7')][_0x39cd('0x19')]();}),_0x358bc1=_0x88bbc2[_0x39cd('0x34')](this[_0x39cd('0x2d')][_0x39cd('0x56')],_0xd35d36),_0x358bc1['bind']('isDirty')['to'](_0xd35d36,_0x39cd('0x60')),_0x358bc1[_0x39cd('0x38')](_0x39cd('0x4b'))['to'](_0xd35d36),_0x358bc1[_0x39cd('0x38')]('type')['to'](_0xd35d36,_0x39cd('0x1e'),_0x8e85c9=>_0x39cd('0x24')+_0x8e85c9),this[_0x39cd('0x26')][_0x39cd('0x3e')](_0x2bb2ea['id'],_0x358bc1));const _0x20023a=_0x56c95f[_0x39cd('0x3')](_0x2bb2ea[_0x39cd('0x4e')],_0xd35d36),_0x417c96=new _0x52166d(_0x786343,_0x2bb2ea,_0xd35d36,_0x20023a),_0x22ada8=_0x2bb2ea[_0x39cd('0x15')]()[_0x39cd('0xe')](_0x2cea48=>_0x2cea48[_0x39cd('0xf')]);_0xd35d36[_0x39cd('0x59')]=_0x786343['plugins'][_0x39cd('0x5')](_0x39cd('0x6'))[_0x39cd('0x17')][_0x39cd('0x69')](_0x22ada8),this[_0x39cd('0x8')][_0x39cd('0x3e')](_0x2bb2ea,_0x417c96),this['_viewToController'][_0x39cd('0x3e')](_0xd35d36,_0x417c96);const _0x350e12=_0x88bbc2[_0x39cd('0x67')]({'view':_0x358bc1,'target':()=>{const _0x519272=[],_0x35ac83=_0x2bb2ea[_0x39cd('0x15')]()[_0x39cd('0xe')](_0x10d94d=>_0x10d94d[_0x39cd('0xf')]);for(const _0x5639ad of _0x35ac83)_0x519272['push'](..._0x5639ad[_0x39cd('0x30')]());return _0x52b010(_0x786343[_0x39cd('0x66')],_0x519272);},'type':()=>_0x39cd('0x24')+_0x417c96['view'][_0x39cd('0x1e')]});_0x88bbc2['add'](_0x350e12),_0x24e229[_0x39cd('0x2a')](_0x350e12);}['_destroyController'](_0x45a366){const _0x3575cb=this[_0x39cd('0x2d')][_0x39cd('0x57')]['get'](_0x39cd('0x2e')),_0xd280ca=this[_0x39cd('0x8')]['get'](_0x45a366),_0x1dbf44=_0xd280ca['view'],_0x3fd9c3=_0x3575cb['getByInnerView'](_0x1dbf44);_0x3fd9c3&&_0x3575cb[_0x39cd('0x51')](_0x3fd9c3),this[_0x39cd('0x8')][_0x39cd('0x29')](_0x45a366),this[_0x39cd('0x25')]['delete'](_0x1dbf44),_0xd280ca[_0x39cd('0x5e')]();}[_0x39cd('0x27')](_0xf6f8be){if(!_0xf6f8be[_0x39cd('0xf')]||!this[_0x39cd('0x8')][_0x39cd('0x65')](_0xf6f8be))return;const _0x2096a7=this['editor']['plugins']['get'](_0x39cd('0x6')),_0x4e4ba7=this[_0x39cd('0x8')][_0x39cd('0x5')](_0xf6f8be),_0x2aab52=_0xf6f8be['getAllAdjacentSuggestions']();_0x4e4ba7[_0x39cd('0x7')]['descriptionParts']=_0x2096a7[_0x39cd('0x17')][_0x39cd('0x69')](_0x2aab52);}[_0x39cd('0x5e')](){for(const _0x1c87f5 of this[_0x39cd('0x8')][_0x39cd('0x42')]())this[_0x39cd('0x53')](_0x1c87f5);for(const _0x5e814b of this[_0x39cd('0x26')]['values']())_0x5e814b[_0x39cd('0x13')][_0x39cd('0x5e')]();super[_0x39cd('0x5e')]();}}
|
|
23
|
+
const _0x5dc1=['mainView','_refreshActiveMarkers','from','_disableComments','isInContent','TrackChangesUI','type','push','TrackChangesEditing','execute','toMany','unbind','length','actionView','button','_descriptionFactory','_suggestionToController','EditorAnnotations','suggestion-','previous','Annotations','destroy','_destroyController','Discard\x20all\x20selected\x20suggestions','config','trackChanges.disableComments','init','head','getMarkerNames','bind','focus','buttonView','addComment','CommentsUI','_updateController','comments.maxCommentsWhenCollapsed','source','registerAnnotation','suggestionChanged','getSuggestion','_initializeController','listenTo','isDirty','delete','getAllAdjacentSuggestions','discardSelectedSuggestions','createAnnotation','SuggestionThreadView','comments.editorConfig','remove','separator','map','define','value','values','set','model','commands','_viewToController','lowest','isMultiRange','get','_handleSuggestionControllerDelayed','filter','plugins','descriptionParts','acceptButton','acceptSelectedSuggestions','getByInnerView','reduce','switchbutton','comments.maxCommentCharsWhenCollapsed','CommentsRepository','has','pluginName','isEnabled','locale','add','getDescriptions','Discard\x20all\x20suggestions','getMarkers','_createUIButton','createAnnotationView','_handleControllerBuffer','getFirstRange','_annotationViews','activeMarkers','editing','view','commentThread','createCommentThreadController','comments.maxThreadTotalWeight','clear','commandName','arrowView','size','editor','change:previous','addSourceCollector','refreshSelectedViews','suggestionLoaded','trackChanges','getJoined','trackChanges.SuggestionThreadView'];(function(_0x3d8f36,_0x5dc1e7){const _0x33a86c=function(_0x15152f){while(--_0x15152f){_0x3d8f36['push'](_0x3d8f36['shift']());}};_0x33a86c(++_0x5dc1e7);}(_0x5dc1,0x166));const _0x33a8=function(_0x3d8f36,_0x5dc1e7){_0x3d8f36=_0x3d8f36-0x0;let _0x33a86c=_0x5dc1[_0x3d8f36];return _0x33a86c;};import{Plugin as _0x50de75}from'ckeditor5/src/core';import{Collection as _0x1fcadd}from'ckeditor5/src/utils';import{Model as _0x364607,SplitButtonView as _0x56e978,createDropdown as _0x1c9f1e,addListToDropdown as _0x5d04d8}from'ckeditor5/src/ui';import{Users as _0x36c7c7,getDateTimeFormatter as _0x15c568,getAllMarkersDomElementsSorted as _0x12871f}from'ckeditor5-collaboration/src/collaboration-core';import _0x4af49f from'./trackchangesediting';import _0x570bbb from'./ui/suggestioncontroller';import _0x18d486 from'./ui/view/suggestionthreadview';import{getTranslation as _0x4ccad2}from'./utils/common-translations';import _0x94cefe from'../theme/icons/track-changes.svg';export default class d extends _0x50de75{static get['requires'](){return[_0x4af49f,_0x36c7c7,_0x33a8('0x1a'),_0x33a8('0x4e'),'EditorAnnotations'];}static get[_0x33a8('0x1c')](){return _0x33a8('0x3f');}constructor(_0x4c5b6c){super(_0x4c5b6c),this['_suggestionToController']=new Map(),this[_0x33a8('0xc')]=new Map(),this[_0x33a8('0x27')]=new Map(),this[_0x33a8('0x25')]=new Map();const _0x9ac2b=this[_0x33a8('0x32')][_0x33a8('0x52')];_0x9ac2b['define'](_0x33a8('0x39'),_0x18d486),_0x9ac2b[_0x33a8('0x6')](_0x33a8('0x53'),!0x1),this['_disableComments']=_0x9ac2b[_0x33a8('0xf')](_0x33a8('0x53'));}[_0x33a8('0x10')](_0x4d3d9f,_0x5bcbac){0x0===this['_handleControllerBuffer'][_0x33a8('0x31')]&&setTimeout(()=>{for(const [_0x3e2a79,_0x37ccd9]of this[_0x33a8('0x25')]){const _0x3e656a=this[_0x33a8('0x4a')][_0x33a8('0x1b')](_0x3e2a79);_0x3e656a||_0x37ccd9?_0x3e656a&&_0x37ccd9&&this[_0x33a8('0x50')](_0x3e2a79):this[_0x33a8('0x62')](_0x3e2a79);}this[_0x33a8('0x32')][_0x33a8('0x12')]['get'](_0x33a8('0x4b'))[_0x33a8('0x35')](),this[_0x33a8('0x3b')](),this['_handleControllerBuffer'][_0x33a8('0x2e')]();},0xa),this[_0x33a8('0x25')][_0x33a8('0x9')](_0x4d3d9f,_0x5bcbac);}[_0x33a8('0x54')](){const _0xe5acf0=this[_0x33a8('0x32')],_0x283157=_0xe5acf0['plugins'][_0x33a8('0xf')](_0x33a8('0x42')),_0x52444a=_0xe5acf0[_0x33a8('0x12')][_0x33a8('0xf')](_0x33a8('0x4e')),_0x490991=_0xe5acf0['plugins'][_0x33a8('0xf')](_0x33a8('0x4b')),_0x1b92d9=_0xe5acf0[_0x33a8('0x12')][_0x33a8('0xf')](_0x33a8('0x1a'));_0xe5acf0['ui']['componentFactory'][_0x33a8('0x1f')](_0x33a8('0x37'),_0x49f202=>this[_0x33a8('0x23')](_0x49f202)),_0x490991[_0x33a8('0x34')](()=>{const _0x1436ab=[];for(const [_0x21d28f,_0x13b7b8]of Array[_0x33a8('0x3c')](this[_0x33a8('0x4a')])){const _0x2f6b82=_0x21d28f[_0x33a8('0x66')](),_0x161853=[];for(const _0x299e1e of _0x2f6b82){if(!_0x299e1e['isInContent'])continue;if(_0x299e1e[_0x33a8('0xe')]){_0x161853[_0x33a8('0x41')](..._0x299e1e['getRanges']());continue;}const _0x29e774=_0x299e1e[_0x33a8('0x26')]();if(_0x161853[_0x33a8('0x46')]>0x0){const _0x942c2=_0x161853[0x0][_0x33a8('0x38')](_0x29e774);if(_0x942c2){_0x161853[0x0]=_0x942c2;continue;}}_0x161853[_0x33a8('0x41')](_0x29e774);}_0x1436ab[_0x33a8('0x41')]([_0x13b7b8[_0x33a8('0x2a')],_0x161853]);}return _0x1436ab;}),this[_0x33a8('0x63')](_0x283157,_0x33a8('0x36'),(_0x2d91b1,_0x335816)=>{this[_0x33a8('0x63')](_0x335816,_0x33a8('0x33'),(_0x14bcc3,_0x568e18,_0x15b433,_0x49742e)=>{_0x335816['isInContent']&&(null==_0x15b433?(this[_0x33a8('0x5c')](_0x49742e['head']),this[_0x33a8('0x10')](_0x335816,!0x1)):(this[_0x33a8('0x5c')](_0x15b433[_0x33a8('0x55')]),this[_0x33a8('0x10')](_0x335816,!0x0)));}),null===_0x335816[_0x33a8('0x4d')]?this[_0x33a8('0x10')](_0x335816,!0x1):this[_0x33a8('0x5c')](_0x335816[_0x33a8('0x55')]);}),this['listenTo'](_0x283157,'suggestionUnloaded',(_0x2a1d05,_0x329498,_0x19649a)=>{this['stopListening'](_0x329498,_0x33a8('0x33')),this[_0x33a8('0x25')]['delete'](_0x329498);const _0x4679ee=_0x19649a?_0x19649a['head']:_0x329498,_0xa9a007=this[_0x33a8('0x4a')]['get'](_0x4679ee);null!==_0x19649a&&this['_updateController'](_0x4679ee),null===_0x19649a&&_0xa9a007&&this[_0x33a8('0x50')](_0x329498);}),this[_0x33a8('0x63')](_0x283157,_0x33a8('0x60'),(_0x51ff11,_0x4d3654)=>{this[_0x33a8('0x5c')](_0x4d3654);}),this[_0x33a8('0x63')](_0x52444a,'change:activeAnnotations',()=>{this[_0x33a8('0x3b')]();}),this[_0x33a8('0x63')](_0x1b92d9,_0x33a8('0x5a'),(_0x5198ef,{threadId:_0xe08054,isFromAdapter:_0x2642a3})=>{if(_0x2642a3||!_0x283157['hasSuggestion'](_0xe08054))return;const _0x42914c=_0x283157[_0x33a8('0x61')](_0xe08054);this[_0x33a8('0x4a')][_0x33a8('0xf')](_0x42914c)[_0x33a8('0x2a')][_0x33a8('0x58')]();},{'priority':_0x33a8('0xd')});}[_0x33a8('0x3b')](){const _0x56b4d9=this['editor'][_0x33a8('0x12')][_0x33a8('0xf')]('Annotations'),_0x17b156=this[_0x33a8('0x32')]['plugins'][_0x33a8('0xf')]('TrackChangesEditing'),_0x28dd77=Array[_0x33a8('0x3c')](_0x56b4d9['activeAnnotations'],_0x305036=>_0x305036['innerView'])[_0x33a8('0x11')](_0x346536=>this['_viewToController'][_0x33a8('0x1b')](_0x346536)),_0x120538=[];for(const _0x3c4811 of _0x28dd77){const _0x421f63=this[_0x33a8('0xc')][_0x33a8('0xf')](_0x3c4811)[_0x33a8('0xa')][_0x33a8('0x66')]();_0x120538[_0x33a8('0x41')](..._0x421f63[_0x33a8('0x17')]((_0x457bed,_0x3608dd)=>[..._0x457bed,..._0x3608dd[_0x33a8('0x56')]()],[]));}_0x17b156[_0x33a8('0x28')]=_0x120538;}[_0x33a8('0x23')](_0x167d50){const _0x8a0ec5=_0x1c9f1e(_0x167d50,_0x56e978),_0x18896b=this[_0x33a8('0x32')][_0x33a8('0xb')]['get'](_0x33a8('0x37')),_0x199060=_0x4ccad2(_0x167d50,'Track\x20changes');_0x8a0ec5[_0x33a8('0x59')]['set']({'tooltip':_0x199060,'label':_0x199060,'icon':_0x94cefe}),_0x8a0ec5[_0x33a8('0x59')][_0x33a8('0x57')]('isOn')['to'](_0x18896b,'value'),_0x8a0ec5[_0x33a8('0x59')]['on'](_0x33a8('0x43'),()=>{_0x18896b[_0x33a8('0x43')](),this[_0x33a8('0x32')][_0x33a8('0x29')][_0x33a8('0x2a')][_0x33a8('0x58')]();});const _0xa86de=new _0x1fcadd(),_0x22a6bc=[{'type':_0x33a8('0x18'),'model':{'withText':!0x0,'label':_0x199060,'commandName':_0x33a8('0x37')}},{'type':_0x33a8('0x4')},{'type':_0x33a8('0x48'),'model':{'withText':!0x0,'label':_0x4ccad2(_0x167d50,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x33a8('0x48'),'model':{'withText':!0x0,'label':_0x4ccad2(_0x167d50,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x33a8('0x15')}},{'type':'button','model':{'withText':!0x0,'label':_0x4ccad2(_0x167d50,_0x33a8('0x21')),'commandName':'discardAllSuggestions'}},{'type':_0x33a8('0x48'),'model':{'withText':!0x0,'label':_0x4ccad2(_0x167d50,_0x33a8('0x51')),'commandName':_0x33a8('0x67')}}];for(const _0x41cfc8 of _0x22a6bc){let _0x36ac49={'type':_0x33a8('0x4')};if(_0x41cfc8['model']){const _0x12ba76=new _0x364607(_0x41cfc8['model']),_0xd723df=this['editor'][_0x33a8('0xb')]['get'](_0x12ba76[_0x33a8('0x2f')]);_0x12ba76[_0x33a8('0x57')]('isOn',_0x33a8('0x1d'))['to'](_0xd723df,_0x33a8('0x7'),_0x33a8('0x1d')),_0x36ac49={'type':_0x41cfc8['type'],'model':_0x12ba76};}_0xa86de['add'](_0x36ac49);}_0x5d04d8(_0x8a0ec5,_0xa86de);const _0x100ab9=_0x22a6bc[_0x33a8('0x11')](_0xa8cea5=>null!=_0xa8cea5[_0x33a8('0xa')])[_0x33a8('0x5')](_0x44b70a=>this['editor']['commands']['get'](_0x44b70a['model'][_0x33a8('0x2f')])),_0x5372e2=_0x8a0ec5[_0x33a8('0x59')];return _0x5372e2[_0x33a8('0x47')][_0x33a8('0x45')](_0x33a8('0x1d')),_0x5372e2['arrowView'][_0x33a8('0x45')](_0x33a8('0x1d')),_0x5372e2[_0x33a8('0x47')][_0x33a8('0x57')](_0x33a8('0x1d'))['to'](_0x18896b,'isEnabled'),_0x5372e2[_0x33a8('0x30')]['bind'](_0x33a8('0x1d'))[_0x33a8('0x44')](_0x100ab9,'isEnabled',(..._0x45c884)=>_0x45c884['some'](_0x1cfd22=>_0x1cfd22)),_0x8a0ec5['on'](_0x33a8('0x43'),_0x3a69a9=>{this['editor'][_0x33a8('0x43')](_0x3a69a9[_0x33a8('0x5e')]['commandName']),this[_0x33a8('0x32')][_0x33a8('0x29')][_0x33a8('0x2a')][_0x33a8('0x58')]();}),_0x8a0ec5;}[_0x33a8('0x62')](_0x5a3d50){const _0x1ed9f0=this[_0x33a8('0x32')],_0x5922f2=_0x1ed9f0['config'],_0x53cef8=_0x1ed9f0[_0x33a8('0x12')]['get'](_0x33a8('0x4e')),_0x538a1f=_0x1ed9f0['plugins'][_0x33a8('0xf')]('CommentsRepository'),_0x4f35be=_0x1ed9f0[_0x33a8('0x12')][_0x33a8('0xf')](_0x33a8('0x4b')),_0x5ad4bc=_0x1ed9f0[_0x33a8('0x12')][_0x33a8('0xf')](_0x36c7c7)['me'],_0x42df57=_0x5922f2[_0x33a8('0xf')](_0x33a8('0x37'))[_0x33a8('0x1')],{CommentsListView:_0x1e3ae7,CommentThreadInputView:_0x135bd5}=_0x1ed9f0[_0x33a8('0x12')]['get'](_0x33a8('0x5b'));let _0x5778b6,_0x55ca25;this[_0x33a8('0x27')][_0x33a8('0x1b')](_0x5a3d50['id'])?(_0x55ca25=this['_annotationViews']['get'](_0x5a3d50['id']),_0x5778b6=_0x55ca25[_0x33a8('0x3a')]):(_0x5778b6=new _0x42df57(_0x1ed9f0[_0x33a8('0x1e')],_0x5a3d50,_0x5ad4bc,{'disableComments':this[_0x33a8('0x3d')],'editorConfig':_0x5922f2[_0x33a8('0xf')](_0x33a8('0x2')),'maxCommentsWhenCollapsed':_0x5922f2[_0x33a8('0xf')](_0x33a8('0x5d')),'maxThreadTotalWeight':_0x5922f2[_0x33a8('0xf')](_0x33a8('0x2d')),'maxCommentCharsWhenCollapsed':_0x5922f2[_0x33a8('0xf')](_0x33a8('0x19')),'formatDateTime':_0x15c568(_0x5922f2[_0x33a8('0xf')](_0x33a8('0x1e'))),'CommentView':_0x5922f2['get']('comments')['CommentView'],'CommentsListView':_0x1e3ae7,'CommentThreadInputView':_0x135bd5}),_0x5778b6[_0x33a8('0x14')]['on'](_0x33a8('0x43'),()=>{_0x1ed9f0['editing'][_0x33a8('0x2a')]['focus']();}),_0x5778b6['discardButton']['on'](_0x33a8('0x43'),()=>{_0x1ed9f0[_0x33a8('0x29')][_0x33a8('0x2a')][_0x33a8('0x58')]();}),_0x55ca25=_0x53cef8[_0x33a8('0x24')](this[_0x33a8('0x32')][_0x33a8('0x1e')],_0x5778b6),_0x55ca25[_0x33a8('0x57')](_0x33a8('0x64'))['to'](_0x5778b6,_0x33a8('0x64')),_0x55ca25[_0x33a8('0x57')]('length')['to'](_0x5778b6),_0x55ca25['bind'](_0x33a8('0x40'))['to'](_0x5778b6,_0x33a8('0x40'),_0x236578=>_0x33a8('0x4c')+_0x236578),this[_0x33a8('0x27')][_0x33a8('0x9')](_0x5a3d50['id'],_0x55ca25));const _0x2173e2=_0x538a1f[_0x33a8('0x2c')](_0x5a3d50[_0x33a8('0x2b')],_0x5778b6),_0x59249d=new _0x570bbb(_0x1ed9f0,_0x5a3d50,_0x5778b6,_0x2173e2),_0x5d78c6=_0x5a3d50['getAllAdjacentSuggestions']()['filter'](_0x4dfc44=>_0x4dfc44[_0x33a8('0x3e')]);_0x5778b6[_0x33a8('0x13')]=_0x1ed9f0[_0x33a8('0x12')][_0x33a8('0xf')]('TrackChangesEditing')['_descriptionFactory'][_0x33a8('0x20')](_0x5d78c6),this[_0x33a8('0x4a')]['set'](_0x5a3d50,_0x59249d),this[_0x33a8('0xc')]['set'](_0x5778b6,_0x59249d);const _0x132ac1=_0x53cef8[_0x33a8('0x0')]({'view':_0x55ca25,'target':()=>{const _0x1ca5e9=[],_0x562b89=_0x5a3d50[_0x33a8('0x66')]()[_0x33a8('0x11')](_0x30a121=>_0x30a121[_0x33a8('0x3e')]);for(const _0x53254b of _0x562b89)_0x1ca5e9['push'](..._0x53254b[_0x33a8('0x22')]());return _0x12871f(_0x1ed9f0[_0x33a8('0x29')],_0x1ca5e9);},'type':()=>_0x33a8('0x4c')+_0x59249d[_0x33a8('0x2a')][_0x33a8('0x40')]});_0x53cef8[_0x33a8('0x1f')](_0x132ac1),_0x4f35be[_0x33a8('0x5f')](_0x132ac1);}['_destroyController'](_0x4a85c4){const _0x3119a4=this[_0x33a8('0x32')][_0x33a8('0x12')]['get'](_0x33a8('0x4e')),_0x3d0811=this[_0x33a8('0x4a')][_0x33a8('0xf')](_0x4a85c4),_0x51330c=_0x3d0811[_0x33a8('0x2a')],_0x74788b=_0x3119a4[_0x33a8('0x16')](_0x51330c);_0x74788b&&_0x3119a4[_0x33a8('0x3')](_0x74788b),this['_suggestionToController'][_0x33a8('0x65')](_0x4a85c4),this[_0x33a8('0xc')][_0x33a8('0x65')](_0x51330c),_0x3d0811[_0x33a8('0x4f')]();}[_0x33a8('0x5c')](_0x4a9d32){if(!_0x4a9d32['isInContent']||!this[_0x33a8('0x4a')][_0x33a8('0x1b')](_0x4a9d32))return;const _0x2ce5d7=this[_0x33a8('0x32')][_0x33a8('0x12')][_0x33a8('0xf')](_0x33a8('0x42')),_0x5396e5=this[_0x33a8('0x4a')][_0x33a8('0xf')](_0x4a9d32),_0x11ed60=_0x4a9d32['getAllAdjacentSuggestions']();_0x5396e5[_0x33a8('0x2a')][_0x33a8('0x13')]=_0x2ce5d7[_0x33a8('0x49')][_0x33a8('0x20')](_0x11ed60);}[_0x33a8('0x4f')](){for(const _0x2c4a63 of this['_suggestionToController']['keys']())this[_0x33a8('0x50')](_0x2c4a63);for(const _0x2272f9 of this[_0x33a8('0x27')][_0x33a8('0x8')]())_0x2272f9[_0x33a8('0x3a')][_0x33a8('0x4f')]();super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1354=['_pendingAction','change:isDirty','unbind','getRanges','model','acceptSuggestion','isEnabled','canDiscard','_discardCommand','stopListening','remove','bind','PendingActions','destroy','_setPendingAction','add','_acceptCommand','plugins','commentThreadController','canEditAt','view','get','commands','discardSuggestion','_editor','PENDING_ACTION_SUGGESTION','_removePendingAction','execute','locale','canAccept','listenTo'];(function(_0x362040,_0x135495){const _0x4f9a7a=function(_0x3c871f){while(--_0x3c871f){_0x362040['push'](_0x362040['shift']());}};_0x4f9a7a(++_0x135495);}(_0x1354,0x147));const _0x4f9a=function(_0x362040,_0x135495){_0x362040=_0x362040-0x0;let _0x4f9a7a=_0x1354[_0x362040];return _0x4f9a7a;};import{ObservableMixin as _0x8917b4}from'ckeditor5/src/utils';import{getTranslation as _0x14610f}from'../utils/common-translations';export default class qt extends _0x8917b4(){constructor(_0xfc4dc2,_0x1b05f4,_0x5305ea,_0xcebc7c){super(),this['model']=_0x1b05f4,this[_0x4f9a('0x3')]=_0x5305ea,this[_0x4f9a('0x1')]=_0xcebc7c,this[_0x4f9a('0x7')]=_0xfc4dc2,this[_0x4f9a('0x1e')]=_0xfc4dc2['commands']['get'](_0x4f9a('0x13')),this[_0x4f9a('0x16')]=_0xfc4dc2[_0x4f9a('0x5')][_0x4f9a('0x4')](_0x4f9a('0x6')),this[_0x4f9a('0x3')][_0x4f9a('0x19')](_0x4f9a('0x14'))['to'](this[_0x4f9a('0x1e')],this['_discardCommand'],(_0x58b3de,_0x455dc3)=>_0x58b3de||_0x455dc3),this['view'][_0x4f9a('0x19')](_0x4f9a('0xc'))['to'](this['_acceptCommand'],_0x4f9a('0x14'),_0x7c5cac=>_0x7c5cac&&this[_0x4f9a('0x7')][_0x4f9a('0x12')]['canEditAt'](_0x1b05f4[_0x4f9a('0x11')]())),this[_0x4f9a('0x3')][_0x4f9a('0x19')]('canDiscard')['to'](this[_0x4f9a('0x16')],_0x4f9a('0x14'),_0x2721d2=>_0x2721d2&&this[_0x4f9a('0x7')][_0x4f9a('0x12')][_0x4f9a('0x2')](_0x1b05f4[_0x4f9a('0x11')]())),this['_pendingAction']=null,_0x5305ea['isDirty']&&this[_0x4f9a('0x1c')](),this[_0x4f9a('0xd')](_0x5305ea,_0x4f9a('0x13'),()=>this[_0x4f9a('0x13')]()),this[_0x4f9a('0xd')](_0x5305ea,_0x4f9a('0x6'),()=>this[_0x4f9a('0x6')]()),this[_0x4f9a('0xd')](_0x5305ea,_0x4f9a('0xf'),()=>{_0x5305ea['isDirty']?this[_0x4f9a('0x1c')]():this[_0x4f9a('0x9')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0x4f9a('0xa')](this[_0x4f9a('0x12')]['id']);}[_0x4f9a('0x6')](){this[_0x4f9a('0x16')][_0x4f9a('0xa')](this['model']['id']);}[_0x4f9a('0x1b')](){this[_0x4f9a('0x3')]['unbind'](_0x4f9a('0x14')),this[_0x4f9a('0x3')][_0x4f9a('0x10')](_0x4f9a('0xc')),this[_0x4f9a('0x3')][_0x4f9a('0x10')](_0x4f9a('0x15')),this[_0x4f9a('0x17')](),this[_0x4f9a('0x1')][_0x4f9a('0x1b')](),this[_0x4f9a('0xe')]&&this['_removePendingAction']();}[_0x4f9a('0x1c')](){const _0x26ff6=_0x14610f(this[_0x4f9a('0x7')][_0x4f9a('0xb')],_0x4f9a('0x8'));this[_0x4f9a('0xe')]=this[_0x4f9a('0x7')]['plugins'][_0x4f9a('0x4')](_0x4f9a('0x1a'))[_0x4f9a('0x1d')](_0x26ff6);}[_0x4f9a('0x9')](){null!==this[_0x4f9a('0xe')]&&this[_0x4f9a('0x7')][_0x4f9a('0x0')][_0x4f9a('0x4')](_0x4f9a('0x1a'))[_0x4f9a('0x18')](this[_0x4f9a('0xe')]),this[_0x4f9a('0xe')]=null;}}
|