@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230815.0 → 0.0.0-nightly-20230816.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "0.0.0-nightly-20230815.0",
3
+ "version": "0.0.0-nightly-20230816.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -39,8 +39,8 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "ckeditor5": "0.0.0-nightly-20230815.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20230815.0",
42
+ "ckeditor5": "0.0.0-nightly-20230816.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20230816.0",
44
44
  "lodash-es": "4.17.21"
45
45
  },
46
46
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5910=['_setSuggestionRange','insertion:discard','before','forceDefaultExecution','define','setAttribute','_isForcedDefaultExecutionBlock','ck-suggestion-marker-formatBlock','ck-suggestion-marker','collaboration.channelId','_findSuggestions','getUser','value','removeMarkers','_adapter','_customCallbacks','updateMarker','track-changes-adapter-already-set','updateSuggestion','splitPosition','pluginName','_addThreadToSuggestion','has','isBlock','containsRangeInObject','elementEnd','elementToElement','delete','_model','toJSON','commentThread','dataDowncast','parent','markerToHighlight','createPositionAt','elementStart','insertion:accept','$graveyard','formatGroupId','isInContent','editingDowncast','getNearestSelectionRange','clone','_cutOutSuggestionMarker','range','isDocumentOperation','containsPosition','multi','createRange','mapper','rethrowUnexpectedError','formatBlock','rejected','root','isObject','PENDING_ACTION_SUGGESTION','backward','removeClass','adapter','suggestion:','_editor','hasCommentThread','getRanges','high','markerName','suggestion','track-changes-suggestion-not-found','every','formatInline:chain','toViewElement','moveTargetPosition','conversion','isLimit','config','deletion:','open','_descriptionFactory','ck-suggestion-marker-','remove','isMultiRange','insertion','containsRange','execute','formatBlock:discard','selection','commands','_suggestions','createdAt','markMultiRangeBlockFormat','formatInline:discard','isRemovable','isIntersectingWithRange','move','nodeBefore','deleteContent','removeMarker','getFirstMarker','_splitMarkerName','consumable','never','getIntersection','trackChanges.mergeNestedSuggestions','get','ready','formatBlock:chain','addMarkerName','_joinSuggestions','external:','getCommentThread','change:data','isTouching','author','insertion:join','getMarkers','stop','removeMarker:suggestion:formatBlock','_saved','removeComment','plugins','addUser','group','getDifference','getAttribute','_setSuggestionData','track-changes-adapter-missing-getsuggestion','track-changes-suggestion-data-mismatch','normal','_removeSuggestion','markBlockFormat','_checkSuggestionCorrectness','_enabledCommands','isEqual','for','from','isBefore','trackChanges.trackFormatChanges','map','rootName','fire','skipNestingCheck','getSuggestions','some','suggestionChanged','oldRange','buildSuggestion','locale','accepted','after','item','isAtEnd','_createSuggestion','authorName','insertContent','containerElement','newRange','detach','then','getChangedMarkers','deletion','document','differ','includes','notReady','setTo','set','suggestionLoaded','getShiftedBy','editor','getSuggestionCallback','subType','isCollapsed','markMultiRangeDeletion','getMultiRangeId','markMultiRangeInsertion','acceptSuggestion','removed','_handleNewSuggestionMarker','getSuggestion','join','_joinWithAdjacentSuggestions','CommentsRepository','options','getItems','previous','_addSuggestionMarker','lowest','add','getFirstRange','widget','enableCommand','isExternal','originalSuggestionId','formatInline:','name','data','_registerDefaultCallbacks','isUndo','end','markDeletion','markerReady','addHighlight','trackChanges','filter','_mergeNestedSuggestions','markers','_refreshSuggestionsChain','discard','_breakSuggestionMarker','unbindElementFromMarkerName','isInsideObject','_getAuthorFromId','ck-suggestion-marker--active','getCustomProperty','change','upcast','sort','schema','low','_defaultCallbacks','formatInline','insert','isLocal','containsItem','createElement','_suggestionFactory','getAncestors','setSelection','applyOperation','always','formatInline:accept','formatBlock:','targetPosition','start','getAllAdjacentSuggestions','multipleBlocks','data-suggestion','values','position','highest','createPositionAfter','splice','deletion:discard','addComment','acceptAllSuggestions','consume','hasComments','markInsertion','formatInline:join','getWalker','createPositionBefore','authoredAt','trackChangesCommand','_getSuggestionData','@external','insertion:chain','formatBlock:accept','substr','listenTo','track-changes-user-not-found','TrackChangesEditing','_getExternalAuthor','removeAttribute','isAfter','size','accept','writer','dataReady','addSuggestionData','formatBlock:join','registerPostFixer','discardSelectedSuggestions','activeMarkers','acceptSelectedSuggestions','fromRange','length','insertion:','markerNameToElements','_updateSuggestionData','$textProxy','_suggestionState','creator','isOwn','enqueueChange','attributes','_commentsRepository','addRange','addSuggestion','nodeAfter','deletion:accept','batch','marker-count','isAtStart','push','_rangeIsInLocalUserInsertion','Users','stopListening','documentSelection','commandName','showSuggestionHighlights','_trackFormatChanges','addMarker:suggestion:formatBlock','hasSuggestion','getLastMatchingPosition','requires','catch','isNextTo','createSelection','track-changes-command-not-found','forward','discardAllSuggestions','$marker','type','PendingActions','bindElementToMarker','next','createRangeIn','addClass','howMany','split','model','discardSuggestion','markerToData'];(function(_0x1885cf,_0x5910b4){const _0x153446=function(_0x280dce){while(--_0x280dce){_0x1885cf['push'](_0x1885cf['shift']());}};_0x153446(++_0x5910b4);}(_0x5910,0xcb));const _0x1534=function(_0x1885cf,_0x5910b4){_0x1885cf=_0x1885cf-0x0;let _0x153446=_0x5910[_0x1885cf];return _0x153446;};import{Plugin as _0x1110e2,PendingActions as _0x3f326c}from'ckeditor5/src/core';import{LiveRange as _0x4f72a0}from'ckeditor5/src/engine';import{CKEditorError as _0x176d2e,uid as _0x19a36d,priorities as _0x343bfd,logWarning as _0x267a4f}from'ckeditor5/src/utils';import{toWidget as _0x247a90}from'ckeditor5/src/widget';import{Users as _0x47d03f,hashObject as _0x4f07df}from'ckeditor5-collaboration/src/collaboration-core';import _0x529ea1 from'./commands/trackchangescommand';import _0xe38df3 from'./commands/acceptsuggestioncommand';import _0x365bd0 from'./commands/discardsuggestioncommand';import _0x415839 from'./commands/executeonallsuggestionscommand';import _0x2a43f0 from'./commands/executeonselectedsuggestionscommand';import _0x4a0ffc from'./suggestion';import _0x2b4db4 from'./suggestiondescriptionfactory';import _0x1a0a31 from'./integrations/alignment';import _0x4857c8 from'./integrations/basicstyles';import _0x12feca from'./integrations/blockquote';import _0x59559c from'./integrations/ckbox';import _0x17f861 from'./integrations/codeblock';import _0x2ebd8a from'./integrations/comments';import _0x3a14e4 from'./integrations/deletecommand';import _0x15f1a6 from'./integrations/documentlist';import _0x2b212f from'./integrations/entercommand';import _0x207807 from'./integrations/findandreplace';import _0x3fcb7c from'./integrations/font';import _0x2834d2 from'./integrations/formatpainter';import _0x5ad3eb from'./integrations/heading';import _0x28d61c from'./integrations/highlight';import _0x220fcf from'./integrations/horizontalline';import _0x356fe6 from'./integrations/htmlembed';import _0x4f57a7 from'./integrations/image';import _0x33071a from'./integrations/imagereplace';import _0x2d606b from'./integrations/importword';import _0x15cfa3 from'./integrations/indent';import _0x38564a from'./integrations/inputcommand';import _0x445320 from'./integrations/link';import _0x381ec4 from'./integrations/list';import _0x26d5aa from'./integrations/listproperties';import _0x546c22 from'./integrations/mediaembed';import _0x24a04c from'./integrations/mention';import _0x2f145a from'./integrations/pagebreak';import _0x3c9811 from'./integrations/paragraph';import _0x4ca9ef from'./integrations/removeformat';import _0x227c89 from'./integrations/restrictededitingmode';import _0x16806a from'./integrations/shiftentercommand';import _0x3799bb from'./integrations/standardeditingmode';import _0x23cf57 from'./integrations/style';import _0x12e0d6 from'./integrations/table';import _0x3badd9 from'./integrations/tablemergesplit';import _0x5c91bd from'./integrations/tableheadings';import _0x20e43a from'./integrations/tableclipboard';import _0x517864 from'./integrations/tablecolumnresize';import _0x631ccb from'./integrations/template';import _0x5067de from'./integrations/tableofcontents';import _0x475f98 from'./integrations/title';import _0xbe648f from'./integrations/undo';import{getTranslation as _0x2a4ca4}from'./utils/common-translations';import _0x1d0be4 from'./integrations/tablecaption';import _0x1221a6 from'./integrations/documentlistproperties';import _0x4fde75 from'./integrations/tableproperties';export default class p extends _0x1110e2{static get[_0x1534('0x64')](){return[_0x1534('0x12b'),_0x47d03f,_0x3f326c,_0x1a0a31,_0x4857c8,_0x12feca,_0x59559c,_0x17f861,_0x2ebd8a,_0x3a14e4,_0x15f1a6,_0x1221a6,_0x2b212f,_0x207807,_0x3fcb7c,_0x2834d2,_0x5ad3eb,_0x28d61c,_0x220fcf,_0x356fe6,_0x4f57a7,_0x33071a,_0x2d606b,_0x15cfa3,_0x38564a,_0x445320,_0x381ec4,_0x26d5aa,_0x546c22,_0x24a04c,_0x2f145a,_0x3c9811,_0x4ca9ef,_0x227c89,_0x16806a,_0x3799bb,_0x23cf57,_0x12e0d6,_0x3badd9,_0x5c91bd,_0x1d0be4,_0x20e43a,_0x517864,_0x5067de,_0x4fde75,_0x631ccb,_0x475f98,_0xbe648f];}static get[_0x1534('0x8b')](){return _0x1534('0x38');}constructor(_0x4afc99){function _0x98c5c6(_0xc005d0){return _0xc005d0[_0x1534('0xff')](_0x217611=>String['fromCharCode'](_0x217611))[_0x1534('0x129')]('');}super(_0x4afc99),this[_0x1534('0x11b')](_0x1534('0x44'),[]),this['on']('change:activeMarkers',(_0x39b759,_0xa2e78b,_0x4c56b0,_0x420883)=>{this[_0x1534('0x93')]['change'](()=>{for(const _0x2c3b17 of[..._0x420883,..._0x4c56b0])this['_model'][_0x1534('0x1')][_0x1534('0x8d')](_0x2c3b17)&&_0x4afc99['editing']['reconvertMarker'](_0x2c3b17);});}),this[_0x1534('0xc3')]=new _0x2b4db4(this['editor'][_0x1534('0x74')][_0x1534('0xd')],this[_0x1534('0x11e')][_0x1534('0x108')]),this[_0x1534('0x85')]=null,this[_0x1534('0x15')]=new Dt(this[_0x1534('0x11e')]),this[_0x1534('0xcd')]=new Map(),this[_0x1534('0x51')]=_0x4afc99[_0x1534('0xed')]['get'](_0x1534('0x12b')),this[_0x1534('0xf9')]=new Set(),this[_0x1534('0x93')]=this[_0x1534('0x11e')][_0x1534('0x74')],this[_0x1534('0x4c')]=new WeakMap(),this[_0x1534('0x7d')]=!0x1,_0x4afc99[_0x1534('0xc0')][_0x1534('0x7b')](_0x1534('0xfe'),'default'),this[_0x1534('0x60')]=_0x4afc99[_0x1534('0xc0')]['get'](_0x1534('0xfe')),_0x4afc99[_0x1534('0xc0')][_0x1534('0x7b')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x1534('0x0')]=_0x4afc99['config']['get'](_0x1534('0xdc')),this[_0x1534('0x30')]=new _0x529ea1(_0x4afc99,this[_0x1534('0xf9')]),this[_0x98c5c6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x98c5c6([0x34,0x30,0x34,0x36,0x31,0x36,0x33,0x30]);}['init'](){const _0x1ed4be=this['editor'];_0x1ed4be[_0x1534('0xbe')][_0x1534('0xfb')](_0x1534('0x9f'))[_0x1534('0x98')]({'model':_0x1534('0xb8'),'view':_0x2f494b=>{const {id:_0x24da03,type:_0x341e74}=this['_splitMarkerName'](_0x2f494b[_0x1534('0xb7')]),_0x4b2fcd=[_0x1534('0x7f'),_0x1534('0xc4')+_0x341e74];let _0x2233f5=0xbb8;return this[_0x1534('0x44')][_0x1534('0x118')](_0x2f494b[_0x1534('0xb7')])&&(_0x4b2fcd['push'](_0x1534('0x8')),_0x2233f5=0xbc2),_0x1534('0x115')==_0x341e74&&(_0x2233f5+=0x5),{'classes':_0x4b2fcd,'attributes':{'data-suggestion':_0x24da03},'priority':_0x2233f5};}}),_0x1ed4be[_0x1534('0xbe')][_0x1534('0xfb')](_0x1534('0x96'))[_0x1534('0x131')](_0x4e20d2=>{_0x4e20d2['on']('addMarker:suggestion',(_0x139be3,_0x36691a,_0x5ceb8e)=>{if(!_0x5ceb8e[_0x1534('0x12c')][_0x1534('0x5f')])return;const _0x3e9548=_0x36691a['item'];if(!_0x3e9548)return;const _0x8b9e8c=_0x5ceb8e[_0x1534('0xa8')][_0x1534('0xbc')](_0x3e9548);_0x1ed4be['model'][_0x1534('0xd')][_0x1534('0xad')](_0x3e9548)&&_0x8b9e8c&&!_0x8b9e8c[_0x1534('0x9')](_0x1534('0x133'))&&_0x8b9e8c['is'](_0x1534('0x110'))&&_0x247a90(_0x8b9e8c,_0x5ceb8e[_0x1534('0x3e')]);},{'priority':_0x1534('0xb6')});}),_0x1ed4be[_0x1534('0xbe')]['for'](_0x1534('0x96'))['markerToHighlight']({'model':_0x1534('0xb8'),'view':(_0x4e9c35,_0xc37e7c)=>{if(!_0xc37e7c['options'][_0x1534('0x5f')])return null;const {type:_0x136a23}=this[_0x1534('0xd8')](_0x4e9c35[_0x1534('0xb7')]);return{'classes':[_0x1534('0x7f'),'ck-suggestion-marker-'+_0x136a23],'priority':0xbb8};}});const _0x291abd=({showActiveMarkers:_0x21e999=!0x0}={})=>(_0x496d79,_0x40d18e,_0x4f2fb4)=>{if(!_0x40d18e[_0x1534('0x10b')])return;if(_0x40d18e['item']['is'](_0x1534('0xcb')))return void _0x4f2fb4[_0x1534('0xd9')]['consume'](_0x40d18e[_0x1534('0x10b')],_0x496d79[_0x1534('0x138')]);const _0xa4a0e4=_0x4f2fb4[_0x1534('0xa8')][_0x1534('0xbc')](_0x40d18e[_0x1534('0x10b')]);if(!(_0x40d18e[_0x1534('0x10b')]['is']('element')&&_0x1ed4be['model']['schema'][_0x1534('0x8e')](_0x40d18e[_0x1534('0x10b')])&&!_0xa4a0e4[_0x1534('0x9')](_0x1534('0x13f'))))return;const {id:_0x493943}=this['_splitMarkerName'](_0x40d18e['markerName']);_0x4f2fb4[_0x1534('0x3e')]['addClass']([_0x1534('0x7f'),_0x1534('0x7e')],_0xa4a0e4),_0x4f2fb4[_0x1534('0x3e')][_0x1534('0x7c')](_0x1534('0x20'),_0x493943,_0xa4a0e4),_0x4f2fb4[_0x1534('0xa8')][_0x1534('0x6e')](_0xa4a0e4,_0x40d18e['markerName']),_0x21e999&&(this['activeMarkers'][_0x1534('0x118')](_0x40d18e['markerName'])?_0x4f2fb4[_0x1534('0x3e')][_0x1534('0x71')](_0x1534('0x8'),_0xa4a0e4):_0x4f2fb4[_0x1534('0x3e')][_0x1534('0xb0')](_0x1534('0x8'),_0xa4a0e4));for(const _0x51390c of _0x1ed4be['model'][_0x1534('0x70')](_0x40d18e['item'])[_0x1534('0x12d')]())_0x4f2fb4['consumable'][_0x1534('0x29')](_0x51390c,_0x496d79[_0x1534('0x138')]);_0x4f2fb4[_0x1534('0xd9')][_0x1534('0x29')](_0x40d18e[_0x1534('0x10b')],_0x496d79['name']);};_0x1ed4be['conversion'][_0x1534('0xfb')](_0x1534('0x96'))[_0x1534('0x131')](_0x5b00c3=>{_0x5b00c3['on'](_0x1534('0x61'),(_0x48556c,_0x16ef9f,_0x144411)=>{_0x144411[_0x1534('0x12c')][_0x1534('0x5f')]&&_0x291abd({'showActiveMarkers':!0x1})(_0x48556c,_0x16ef9f,_0x144411);},{'priority':_0x1534('0x23')});}),_0x1ed4be[_0x1534('0xbe')][_0x1534('0xfb')](_0x1534('0x96'))[_0x1534('0x76')]({'model':_0x1534('0xb8'),'view':(_0x213b75,_0x32b153)=>_0x32b153[_0x1534('0x12c')][_0x1534('0x5f')]?null:{'group':'suggestion','name':_0x213b75[_0x1534('0x35')](0xb)}}),_0x1ed4be[_0x1534('0xbe')]['for'](_0x1534('0xb'))[_0x1534('0x91')]({'view':{'name':_0x1534('0xb8'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c9280,{writer:_0x2ef721})=>{let _0x420806='suggestion:'+_0x1c9280[_0x1534('0xf1')]('suggestion-type')+':'+_0x1c9280[_0x1534('0xf1')]('id');return _0x1c9280[_0x1534('0xf1')]('marker-count')&&(_0x420806+=':'+_0x1c9280[_0x1534('0xf1')](_0x1534('0x57'))),_0x2ef721[_0x1534('0x14')](_0x1534('0x6b'),{'data-name':_0x420806});}}),_0x1ed4be[_0x1534('0xbe')][_0x1534('0xfb')](_0x1534('0xb'))['dataToMarker']({'view':_0x1534('0xb8')}),_0x1ed4be['conversion']['for'](_0x1534('0x9f'))[_0x1534('0x131')](_0x671f08=>{_0x671f08['on']('addMarker:suggestion:formatBlock',_0x291abd(),{'priority':_0x1534('0xb6')});}),_0x1ed4be[_0x1534('0xbe')]['for']('editingDowncast')['add'](_0x2e01be=>{_0x2e01be['on'](_0x1534('0xea'),(_0x4ef44d,_0x4140ed,_0xfdac38)=>{const _0x2bc50a=_0xfdac38[_0x1534('0xa8')][_0x1534('0x49')](_0x4140ed[_0x1534('0xb7')]);if(_0x2bc50a)for(const _0x35d1be of _0x2bc50a)_0x35d1be['getCustomProperty'](_0x1534('0x13f'))||(_0xfdac38[_0x1534('0x3e')][_0x1534('0xb0')](['ck-suggestion-marker',_0x1534('0x7e'),_0x1534('0x8')],_0x35d1be),_0xfdac38[_0x1534('0x3e')][_0x1534('0x3a')](_0x1534('0x20'),_0x35d1be),_0xfdac38['mapper'][_0x1534('0x5')](_0x35d1be,_0x4140ed['markerName']));},{'priority':_0x1534('0xb6')});}),_0x1ed4be[_0x1534('0x74')]['document'][_0x1534('0x42')](_0x8a68dd=>{let _0x378da7=!0x1;const _0x22cc3b=Array[_0x1534('0xfc')](_0x1ed4be[_0x1534('0x74')][_0x1534('0x116')][_0x1534('0x117')][_0x1534('0x114')]()),_0x5bec1f=new Set();for(const {name:_0x31b92a,data:_0x202185}of _0x22cc3b){const {group:_0x46b774,type:_0x2d9cf9,id:_0x502b19}=this['_splitMarkerName'](_0x31b92a);if(_0x1534('0xb8')!==_0x46b774)continue;const _0x18a9cb=this['_suggestions']['get'](_0x502b19);if(null!=_0x202185[_0x1534('0x111')]){_0x1534('0x10')==_0x2d9cf9&&(_0x378da7=_0x378da7||Mt(_0x202185[_0x1534('0x111')],_0x31b92a,_0x8a68dd,_0x1ed4be['model'][_0x1534('0xd')]));if(_0x202185[_0x1534('0x111')][_0x1534('0x121')]||'$graveyard'==_0x202185[_0x1534('0x111')][_0x1534('0xac')]['rootName']||_0x1534('0xaa')==_0x2d9cf9&&!Nt(_0x202185[_0x1534('0x111')])||_0x1534('0x115')==_0x2d9cf9&&!(!_t(_0x9ba6cf=_0x202185['newRange'])&&!function(_0x1216e9){return _0x1216e9[_0x1534('0x1d')][_0x1534('0x97')]==_0x1216e9['end'][_0x1534('0xd4')]&&_0x1216e9['start'][_0x1534('0x10c')];}(_0x9ba6cf)))_0x8a68dd['removeMarker'](_0x31b92a),_0x378da7=!0x0;else{if(!_0x18a9cb||!_0x18a9cb[_0x1534('0x9e')])continue;_0x5bec1f[_0x1534('0x131')](_0x18a9cb);}}}var _0x9ba6cf;return _0x5bec1f[_0x1534('0x3c')]>0x0&&(_0x378da7=!!this['_joinWithAdjacentSuggestions'](_0x5bec1f)||_0x378da7),_0x378da7;}),_0x1ed4be[_0x1534('0x74')][_0x1534('0x116')][_0x1534('0x42')](_0x2e583b=>{let _0x4801a6=!0x1;for(const _0x4774e7 of _0x1ed4be['model'][_0x1534('0x116')][_0x1534('0x117')]['getChanges']()){if(_0x1534('0x11')!=_0x4774e7[_0x1534('0x6c')])continue;const _0x50a2ba=_0x4774e7[_0x1534('0x22')][_0x1534('0x11d')](_0x4774e7['length']);if(_0x50a2ba[_0x1534('0x10c')])for(const _0x2117ca of this[_0x1534('0xcd')]['values']()){if(_0x2117ca[_0x1534('0xc6')]||!_0x2117ca[_0x1534('0x9e')])continue;if(_0x1534('0xaa')!=_0x2117ca[_0x1534('0x6c')])continue;const _0x432f85=_0x2117ca[_0x1534('0x132')]();if(_0x432f85[_0x1534('0x1d')]['parent']!=_0x432f85[_0x1534('0x13c')][_0x1534('0x97')]&&_0x432f85[_0x1534('0x13c')]['isEqual'](_0x4774e7[_0x1534('0x22')])){const _0x5c9c18=_0x1ed4be[_0x1534('0x74')]['createRange'](_0x432f85['start'],_0x50a2ba);_0x2e583b[_0x1534('0x87')](_0x2117ca[_0x1534('0xd7')](),{'range':_0x5c9c18}),_0x4801a6=!0x0;}}}return _0x4801a6;}),_0x1ed4be[_0x1534('0x74')][_0x1534('0x1')]['on']('update:suggestion',(_0x4fbd42,_0xf41572,_0x128052)=>{if(null==_0x128052){const {id:_0x1c0b11}=this[_0x1534('0xd8')](_0xf41572[_0x1534('0x138')]),_0xd4fdb9=this[_0x1534('0xcd')][_0x1534('0xdd')](_0x1c0b11);_0xd4fdb9&&_0xd4fdb9[_0x1534('0xe0')](_0xf41572[_0x1534('0x138')]);}}),_0x1ed4be[_0x1534('0x74')][_0x1534('0x116')]['on'](_0x1534('0xe4'),()=>{const _0x373373=Array[_0x1534('0xfc')](_0x1ed4be[_0x1534('0x74')][_0x1534('0x116')][_0x1534('0x117')][_0x1534('0x114')]())[_0x1534('0x141')](_0x4c3f15=>'suggestion'===this[_0x1534('0xd8')](_0x4c3f15[_0x1534('0x138')])[_0x1534('0xef')]);if(0x0===_0x373373['length'])return;_0x373373['sort']((_0x1e3fb3,_0x2ea57e)=>{const _0x5dc8c6=_0x1e3fb3[_0x1534('0x139')][_0x1534('0x106')],_0x2c7027=_0x2ea57e[_0x1534('0x139')][_0x1534('0x106')];return null===_0x5dc8c6&&null===_0x2c7027?0x0:null===_0x5dc8c6&&null!==_0x2c7027?-0x1:null!==_0x5dc8c6&&null===_0x2c7027?0x1:_0x5dc8c6[_0x1534('0x1d')][_0x1534('0xfd')](_0x2c7027[_0x1534('0x1d')])?-0x1:0x1;});const _0x453eb8=new Set(),_0x45865f=new Set();for(const {name:_0x3dbb8e,data:_0x5edc2b}of _0x373373){const {id:_0xd1de40}=this[_0x1534('0xd8')](_0x3dbb8e);if(null===_0x5edc2b[_0x1534('0x106')]){const _0xdbcde8=this['_handleNewSuggestionMarker'](_0x3dbb8e);_0x45865f['add'](_0xdbcde8);}else{const _0x284c1d=this['_suggestions'][_0x1534('0xdd')](_0xd1de40);null!==_0x5edc2b['newRange']||_0x284c1d['isInContent']?(_0x453eb8[_0x1534('0x131')](_0x284c1d['head']),_0x45865f[_0x1534('0x131')](_0x284c1d)):this[_0x1534('0xf6')](_0x284c1d);}}_0x45865f['size']>0x0&&this['_refreshSuggestionsChain'](_0x45865f);for(const _0x51c58f of _0x453eb8)this[_0x1534('0x101')](_0x1534('0x105'),_0x51c58f);}),_0x1ed4be['model']['on'](_0x1534('0x18'),(_0x57edc6,_0x20a72a)=>{const _0x14dae=_0x20a72a[0x0];if(!this[_0x1534('0xcd')][_0x1534('0x3c')])return;if(!_0x14dae[_0x1534('0xa4')])return;if(_0x14dae['batch'][_0x1534('0x13b')]||!_0x14dae[_0x1534('0x56')][_0x1534('0x12')])return;let _0x4c908b,_0x4a8202;switch(_0x14dae[_0x1534('0x6c')]){case _0x1534('0x11'):_0x4c908b=_0x1ed4be[_0x1534('0x74')]['createPositionAt'](_0x14dae[_0x1534('0x22')]),_0x4a8202=_0x4c908b[_0x1534('0x11d')](_0x14dae[_0x1534('0x72')]);break;case'split':_0x4c908b=_0x1ed4be[_0x1534('0x74')][_0x1534('0x99')](_0x14dae[_0x1534('0x8a')]),_0x4a8202=_0x1ed4be[_0x1534('0x74')][_0x1534('0x99')](_0x14dae[_0x1534('0xbd')]);break;case _0x1534('0xd3'):_0x4c908b=_0x1ed4be['model']['createPositionAt'](_0x14dae[_0x1534('0x1c')]),_0x4a8202=_0x4c908b[_0x1534('0x11d')](_0x14dae[_0x1534('0x72')]);break;default:return;}const _0x363bef=_0x1ed4be[_0x1534('0x74')]['createRange'](_0x4c908b,_0x4a8202);_0x1ed4be['model'][_0x1534('0xa')](()=>{for(const {suggestion:_0x1fcd72,meta:_0x5f25c8}of this[_0x1534('0x81')](_0x363bef)){if(_0x1fcd72[_0x1534('0xc6')])continue;if('formatInline'==_0x1fcd72[_0x1534('0x6c')])continue;const _0x54c971=_0x1fcd72[_0x1534('0x139')]&&_0x1fcd72[_0x1534('0x139')][_0x1534('0x1f')];('formatBlock'!=_0x1fcd72[_0x1534('0x6c')]||'split'==_0x14dae[_0x1534('0x6c')]&&!_0x54c971)&&(_0x5f25c8['containsRangeInObject']||_0x1534('0xc7')==_0x1fcd72['type']&&_0x5f25c8[_0x1534('0x4e')]||_0x1fcd72[_0x1534('0x132')]()[_0x1534('0xc8')](_0x363bef)&&this[_0x1534('0x4')](_0x1fcd72,_0x4c908b,_0x4a8202));}});},{'priority':_0x1534('0x130')}),_0x1ed4be[_0x1534('0x74')]['on'](_0x1534('0xd5'),(_0x4d61fb,_0x4d39ce)=>{const _0xa9cc85=_0x4d39ce[0x0],_0x14f51b=_0x4d39ce[0x1];if(_0x14f51b&&_0x14f51b[_0x1534('0x7a')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x1534('0x30')][_0x1534('0x83')])return;if(_0xa9cc85['isCollapsed'])return;const _0x16e617=_0x1ed4be[_0x1534('0x74')]['schema'],{start:_0x3dd04d,end:_0x59e033}=_0xa9cc85[_0x1534('0x132')](),_0x338a6c=_0x3dd04d['nodeAfter']&&_0x16e617[_0x1534('0xbf')](_0x3dd04d[_0x1534('0x54')])?null:_0x16e617[_0x1534('0xa0')](_0x3dd04d,_0x1534('0x69')),_0x19d2a9=_0x59e033['nodeBefore']&&_0x16e617[_0x1534('0xbf')](_0x59e033[_0x1534('0xd4')])?null:_0x16e617[_0x1534('0xa0')](_0x59e033,_0x1534('0xaf')),_0x12daf6=_0x1ed4be[_0x1534('0x74')][_0x1534('0xa7')](_0x338a6c?_0x338a6c['start']:_0x3dd04d,_0x19d2a9?_0x19d2a9[_0x1534('0x13c')]:_0x59e033);_0x1ed4be['model'][_0x1534('0xa')](_0x118f87=>{this[_0x1534('0x13d')](_0x12daf6);const _0x1e1bf6=_0x1ed4be['model'][_0x1534('0xd')]['getNearestSelectionRange'](_0x12daf6[_0x1534('0x1d')]);_0xa9cc85['is'](_0x1534('0x5d'))?_0x118f87[_0x1534('0x17')](_0x1e1bf6):_0xa9cc85[_0x1534('0x11a')](_0x1e1bf6);}),_0x4d61fb[_0x1534('0xe9')]();},{'priority':_0x343bfd[_0x1534('0xf5')]+0xa}),_0x1ed4be[_0x1534('0x74')]['on'](_0x1534('0x10f'),(_0x1d6119,_0x2c3977)=>{const _0x2bcd21=_0x2c3977[_0x2c3977[_0x1534('0x47')]-0x1];_0x2bcd21&&_0x2bcd21[_0x1534('0x7a')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0x1534('0x83')]&&(_0x1ed4be['model'][_0x1534('0xa')](()=>{let _0x15cb92=_0x1ed4be[_0x1534('0x74')][_0x1534('0x10f')](_0x2c3977[0x0],_0x2c3977[0x1],_0x2c3977[0x2],{'forceDefaultExecution':!0x0});if(!_0x15cb92)return;_0x1d6119['return']=_0x15cb92[_0x1534('0xa1')]();const _0x17d53c=_0x15cb92['end']['nodeBefore'],_0x45dbd9=_0x1ed4be['model']['schema'];_0x17d53c&&_0x45dbd9[_0x1534('0x8e')](_0x17d53c)&&!_0x45dbd9['isObject'](_0x17d53c)&&(_0x15cb92=_0x1ed4be[_0x1534('0x74')]['createRange'](_0x15cb92[_0x1534('0x1d')],_0x1ed4be[_0x1534('0x74')][_0x1534('0x99')](_0x17d53c,_0x1534('0x13c')))),this['markInsertion'](_0x15cb92);}),_0x1d6119[_0x1534('0xe9')]());},{'priority':_0x1534('0xb6')}),this[_0x1534('0x11e')]['commands'][_0x1534('0x131')](_0x1534('0x140'),this[_0x1534('0x30')]),this[_0x1534('0x134')](_0x1534('0x140'));const _0x771c3a=new _0xe38df3(_0x1ed4be,this[_0x1534('0xcd')]);_0x1ed4be[_0x1534('0xcc')][_0x1534('0x131')]('acceptSuggestion',_0x771c3a),this['enableCommand'](_0x1534('0x125'));const _0x1d2d74=new _0x365bd0(_0x1ed4be,this[_0x1534('0xcd')]);_0x1ed4be[_0x1534('0xcc')]['add'](_0x1534('0x75'),_0x1d2d74),this[_0x1534('0x134')](_0x1534('0x75')),_0x1ed4be[_0x1534('0xcc')]['add'](_0x1534('0x28'),new _0x415839(_0x1ed4be,_0x771c3a,this[_0x1534('0xcd')])),this['enableCommand'](_0x1534('0x28')),_0x1ed4be[_0x1534('0xcc')][_0x1534('0x131')]('discardAllSuggestions',new _0x415839(_0x1ed4be,_0x1d2d74,this[_0x1534('0xcd')])),this[_0x1534('0x134')](_0x1534('0x6a')),_0x1ed4be[_0x1534('0xcc')]['add']('acceptSelectedSuggestions',new _0x2a43f0(_0x1ed4be,_0x771c3a,this[_0x1534('0xcd')])),this['enableCommand'](_0x1534('0x45')),_0x1ed4be[_0x1534('0xcc')]['add'](_0x1534('0x43'),new _0x2a43f0(_0x1ed4be,_0x1d2d74,this[_0x1534('0xcd')])),this[_0x1534('0x134')](_0x1534('0x43'));const _0x3bb0bd=_0x1ed4be[_0x1534('0xed')]['get'](_0x1534('0x12b'));this['listenTo'](_0x3bb0bd,_0x1534('0x27'),(_0x5f3928,{threadId:_0x1c5d9f})=>{const _0x50d90a=this[_0x1534('0xcd')][_0x1534('0xdd')](_0x1c5d9f);_0x50d90a&&_0x50d90a[_0x1534('0x95')]&&0x1===_0x50d90a[_0x1534('0x95')][_0x1534('0x47')]&&this['_updateSuggestionData'](_0x1c5d9f,{'hasComments':!0x0});},{'priority':'low'}),this[_0x1534('0x36')](_0x3bb0bd,_0x1534('0xec'),(_0x4ab8e0,{threadId:_0xab23b2})=>{const _0x657f54=this['_suggestions'][_0x1534('0xdd')](_0xab23b2);_0x657f54&&_0x657f54['commentThread']&&!_0x657f54[_0x1534('0x95')][_0x1534('0x47')]&&this['_updateSuggestionData'](_0xab23b2,{'hasComments':!0x1});},{'priority':_0x1534('0xe')});}set['adapter'](_0x10a887){if(this[_0x1534('0x85')])throw new _0x176d2e(_0x1534('0x88'),this);this[_0x1534('0x85')]=_0x10a887;}get[_0x1534('0xb1')](){return this[_0x1534('0x85')];}[_0x1534('0x103')]({skipNotAttached:_0x47db59=!0x1,toJSON:_0x1658ae=!0x1}={}){const _0x2e9771=[];for(const _0x39af5a of this[_0x1534('0xcd')][_0x1534('0x21')]())_0x47db59&&!_0x39af5a[_0x1534('0x9e')]||_0x2e9771[_0x1534('0x59')](_0x39af5a);return _0x1658ae?_0x2e9771[_0x1534('0xff')](_0x53d936=>_0x53d936[_0x1534('0x94')]()):_0x2e9771;}[_0x1534('0x128')](_0x56a666){const _0x35e733=this['_suggestions'][_0x1534('0xdd')](_0x56a666);if(!_0x35e733)throw new _0x176d2e(_0x1534('0xb9'),this);return _0x35e733;}[_0x1534('0x62')](_0x233a80){return this[_0x1534('0xcd')][_0x1534('0x8d')](_0x233a80);}[_0x1534('0x40')](_0x2937b2){const {authorId:_0x238b26,id:_0x51a0e3,attributes:_0x245ea2}=_0x2937b2,[_0x182b82,_0x2a537f]=_0x2937b2[_0x1534('0x6c')][_0x1534('0x73')](':'),_0x5a5320=this[_0x1534('0xcd')]['get'](_0x51a0e3)||this['_createSuggestion'](_0x182b82,_0x2a537f,_0x51a0e3,_0x238b26,_0x245ea2);if(this[_0x1534('0x8c')](_0x5a5320),this[_0x1534('0xf8')](_0x5a5320,_0x182b82,_0x2a537f||null,_0x238b26),_0x5a5320[_0x1534('0xce')]=_0x2937b2['createdAt'],_0x245ea2&&_0x245ea2[_0x1534('0x32')]){const _0x3ad38d=_0x245ea2[_0x1534('0x32')],_0x20bc39=this[_0x1534('0x39')](_0x3ad38d[_0x1534('0x10e')]);_0x5a5320[_0x1534('0x2f')]=_0x3ad38d[_0x1534('0xce')],_0x5a5320[_0x1534('0xe6')]=_0x20bc39,_0x5a5320[_0x1534('0x135')]=!0x0;}else _0x5a5320[_0x1534('0x2f')]=_0x2937b2['createdAt'];switch(_0x2937b2[_0x1534('0x139')]&&(_0x5a5320[_0x1534('0x139')]=_0x2937b2['data']),_0x2937b2[_0x1534('0x50')]&&(_0x5a5320[_0x1534('0x50')]=_0x2937b2[_0x1534('0x50')]),this[_0x1534('0x85')]&&this[_0x1534('0x85')][_0x1534('0x53')]||(_0x5a5320[_0x1534('0xeb')]=!0x0),this['_suggestionState'][_0x1534('0xdd')](_0x5a5320)){case _0x1534('0x119'):this[_0x1534('0x4c')]['set'](_0x5a5320,'dataReady');break;case'markerReady':_0x5a5320[_0x1534('0x9e')]?(this[_0x1534('0x4c')][_0x1534('0x11b')](_0x5a5320,'ready'),this[_0x1534('0x101')](_0x1534('0x11c'),_0x5a5320)):this[_0x1534('0x4c')][_0x1534('0x11b')](_0x5a5320,_0x1534('0x126'));}return _0x5a5320;}[_0x1534('0x125')](_0x5e4179){this[_0x1534('0x7a')](()=>{this[_0x1534('0x11e')][_0x1534('0x74')][_0x1534('0xa')](()=>{for(const _0x35f2b5 of _0x5e4179[_0x1534('0x1e')]())_0x35f2b5[_0x1534('0x3d')]();});});}['discardSuggestion'](_0x14ce40){this[_0x1534('0x7a')](()=>{this[_0x1534('0x11e')][_0x1534('0x74')][_0x1534('0xa')](()=>{for(const _0x8e200a of _0x14ce40['getAllAdjacentSuggestions']())_0x8e200a[_0x1534('0x3')]();});});}[_0x1534('0x134')](_0x565a07,_0x541601){const _0xbc4e2c=this[_0x1534('0x11e')][_0x1534('0xcc')][_0x1534('0xdd')](_0x565a07);if(!_0xbc4e2c)throw new _0x176d2e(_0x1534('0x68'),this,{'commandName':_0x565a07});this[_0x1534('0xf9')][_0x1534('0x131')](_0xbc4e2c),_0x541601&&_0xbc4e2c['on'](_0x1534('0xc9'),(_0x2f47ac,_0x29f3fe)=>{this[_0x1534('0x30')][_0x1534('0x83')]&&(this['_isForcedDefaultExecutionBlock']||_0x29f3fe[_0x1534('0x47')]>0x0&&_0x29f3fe[_0x29f3fe['length']-0x1]&&_0x29f3fe[_0x29f3fe[_0x1534('0x47')]-0x1][_0x1534('0x7a')]||(_0x541601((..._0x57cec0)=>_0xbc4e2c[_0x1534('0xc9')](..._0x57cec0,{'forceDefaultExecution':!0x0}),..._0x29f3fe),_0x2f47ac[_0x1534('0xe9')]()));},{'priority':_0x1534('0xb6')});}[_0x1534('0x7a')](_0x2cd193){let _0xe32f83,_0x2c78e7;const _0x243008=this[_0x1534('0x7d')];this[_0x1534('0x7d')]=!0x0;try{_0xe32f83=_0x2cd193();}catch(_0x477b39){_0x2c78e7=_0x477b39;}return _0x243008||(this[_0x1534('0x7d')]=!0x1),_0x2c78e7&&_0x176d2e[_0x1534('0xa9')](_0x2c78e7,this),_0xe32f83;}[_0x1534('0x2b')](_0x58a9c7,_0x4ce548=null,_0x1e7892={}){if(_0x58a9c7['isCollapsed'])return null;const _0x54ed4a=this[_0x1534('0x11e')][_0x1534('0xed')]['get'](_0x1534('0x5b'))['me'];for(const {suggestion:_0x7dbd2c,meta:_0xe568a9}of this[_0x1534('0x81')](_0x58a9c7,_0x1534('0xc7')))if(_0xe568a9['isOwn']){if(!_0xe568a9[_0x1534('0x66')]){if(!this[_0x1534('0x0')]&&_0xe568a9['containsRangeInObject'])continue;return _0x7dbd2c;}if(_0x4ce548==_0x7dbd2c[_0x1534('0x120')]){const _0x109075=_0x7dbd2c['getFirstRange']();return _0x109075[_0x1534('0x1d')][_0x1534('0xfa')](_0x58a9c7[_0x1534('0x13c')])?this['_setSuggestionRange'](_0x7dbd2c,this[_0x1534('0x93')][_0x1534('0xa7')](_0x58a9c7[_0x1534('0x1d')],_0x109075['end'])):this[_0x1534('0x77')](_0x7dbd2c,this[_0x1534('0x93')][_0x1534('0xa7')](_0x109075[_0x1534('0x1d')],_0x58a9c7[_0x1534('0x13c')])),_0x7dbd2c;}}const _0x54cf3f=_0x19a36d(),_0x5eb42a=_0x54ed4a['id'],_0x110f79=_0x4ce548?'insertion:'+_0x4ce548:_0x1534('0xc7'),_0x2c19c8=this[_0x1534('0xf2')]({'id':_0x54cf3f,'type':_0x110f79,'createdAt':new Date(),'authorId':_0x5eb42a,'attributes':_0x1e7892});return this['_addSuggestionMarker'](_0x110f79,_0x54cf3f,_0x5eb42a,_0x58a9c7),_0x2c19c8;}[_0x1534('0x124')](_0x5fc7d2,_0x26f87a=_0x1534('0xa6'),_0x136d4b={}){const _0x25402b=this[_0x1534('0x11e')]['plugins'][_0x1534('0xdd')](_0x1534('0x5b'))['me'],_0x35a044=this['_suggestionFactory'][_0x1534('0x11f')]('insertion',_0x26f87a,_0x1534('0x129'));for(const _0x5cea47 of this[_0x1534('0x103')]())if(_0x5cea47[_0x1534('0xe6')]['id']==_0x25402b['id']&&_0x1534('0xc7')==_0x5cea47[_0x1534('0x6c')]&&_0x5cea47[_0x1534('0x120')]==_0x26f87a&&(_0x35a044(_0x5cea47[_0x1534('0xb5')](),_0x5fc7d2)||_0x35a044(_0x5fc7d2,_0x5cea47['getRanges']()))){for(const _0x17dbdf of _0x5fc7d2)_0x5cea47[_0x1534('0x52')](_0x17dbdf);return _0x5cea47;}if(this[_0x1534('0x0')])for(const _0xca0dbd of _0x5fc7d2)for(const {suggestion:_0x57fbdb,meta:_0x3831ce}of this[_0x1534('0x81')](_0xca0dbd,_0x1534('0xc7'))){if(!_0x3831ce[_0x1534('0x4e')])continue;let _0x21bb91=!0x0;for(const _0x1f881e of _0x57fbdb[_0x1534('0xb5')]())for(const _0x18939b of _0x5fc7d2)if(!_0x1f881e[_0x1534('0xc8')](_0x18939b)){_0x21bb91=!0x1;break;}if(_0x21bb91)return _0x57fbdb;}const _0x129397=_0x19a36d(),_0x599eaf=_0x25402b['id'],_0x3e9149=_0x1534('0x48')+_0x26f87a,_0x545bd0=this[_0x1534('0xf2')]({'id':_0x129397,'type':_0x3e9149,'createdAt':new Date(),'authorId':_0x599eaf,'attributes':_0x136d4b});for(const _0x10c9cd of _0x5fc7d2)this[_0x1534('0x12f')](_0x3e9149,_0x129397,_0x599eaf,_0x10c9cd,_0x4a0ffc[_0x1534('0x123')]());return _0x545bd0;}['markInlineFormat'](_0x5913f4,_0x3e7371,_0x2fb175=null,_0x3424f3={}){if(_0x2fb175=_0x2fb175||$t(_0x3e7371),_0x5913f4[_0x1534('0x121')])return null;if(_0x1534('0xda')===this[_0x1534('0x60')]){const _0x24377d=this['_suggestionFactory'][_0x1534('0x11f')]('formatInline',_0x2fb175,'accept');return this[_0x1534('0x7a')](()=>_0x24377d([_0x5913f4],_0x3e7371,_0x3424f3)),null;}const _0x4b296d=this[_0x1534('0x11e')][_0x1534('0xed')][_0x1534('0xdd')](_0x1534('0x5b'))['me'],_0x56b2c7=[];if(_0x1534('0x19')!==this[_0x1534('0x60')])for(const {suggestion:_0x5890f9,meta:_0x424f57}of this[_0x1534('0x81')](_0x5913f4,'insertion'))_0x424f57[_0x1534('0x4e')]&&!_0x424f57[_0x1534('0x6')]&&_0x56b2c7[_0x1534('0x59')](..._0x5890f9['getRanges']());const _0x1b880b=function(_0x3817c0,_0x20b050){const _0xf8c817=[];for(const _0x1934b2 of _0x20b050){const _0x478337=_0x3817c0['getIntersection'](_0x1934b2);_0x478337&&_0xf8c817[_0x1534('0x59')](_0x478337);}return _0xf8c817;}(_0x5913f4,_0x56b2c7),_0x48de1a=function(_0x5312d5,_0x411644){const _0x20f364=[_0x5312d5];for(const _0x1849a7 of _0x411644){let _0x2ef046=0x0;for(;_0x2ef046<_0x20f364[_0x1534('0x47')];){const _0x18f3e8=_0x20f364[_0x2ef046][_0x1534('0xf0')](_0x1849a7);_0x20f364[_0x1534('0x25')](_0x2ef046,0x1,..._0x18f3e8),_0x2ef046+=_0x18f3e8['length'];}}return _0x20f364;}(_0x5913f4,_0x56b2c7);_0x1b880b[_0x1534('0x47')]&&this[_0x1534('0x93')]['change'](()=>{for(const _0x49c134 of _0x1b880b){const _0x137ac6=this['_suggestionFactory'][_0x1534('0x11f')](_0x1534('0x10'),_0x2fb175,'accept');this[_0x1534('0x7a')](()=>_0x137ac6([_0x49c134],_0x3e7371,_0x3424f3));}});for(const _0x3df6de of _0x48de1a){let _0x3a0c1a=null,_0x21d27a=_0x3df6de[_0x1534('0x1d')],_0x7b5fea=_0x3df6de[_0x1534('0x13c')];for(const {suggestion:_0x34e4b1,meta:_0x571092}of this[_0x1534('0x81')](_0x3df6de,_0x1534('0x10'))){if(!_0x571092['isOwn'])continue;if(_0x34e4b1[_0x1534('0x120')]!=_0x2fb175)continue;const _0x528bf1=_0x34e4b1['getFirstRange']();if(_0x528bf1[_0x1534('0xc8')](_0x3df6de,!0x0))return null;_0x21d27a=_0x21d27a[_0x1534('0xfd')](_0x528bf1['start'])?_0x21d27a:_0x528bf1['start'],_0x7b5fea=_0x7b5fea[_0x1534('0x3b')](_0x528bf1[_0x1534('0x13c')])?_0x7b5fea:_0x528bf1[_0x1534('0x13c')],_0x3a0c1a?_0x528bf1['start'][_0x1534('0xfd')](_0x3a0c1a[_0x1534('0x132')]()[_0x1534('0x1d')])?(_0x3a0c1a[_0x1534('0x84')](),_0x3a0c1a=_0x34e4b1):_0x34e4b1['removeMarkers']():_0x3a0c1a=_0x34e4b1;}const _0x2b848d=this[_0x1534('0x93')][_0x1534('0xa7')](_0x21d27a,_0x7b5fea);if(_0x3a0c1a)this['_setSuggestionRange'](_0x3a0c1a,_0x2b848d);else{const _0x53dd09=_0x19a36d(),_0xd0644e=_0x4b296d['id'];this[_0x1534('0xf2')]({'id':_0x53dd09,'type':_0x1534('0x137')+_0x2fb175,'data':_0x3e7371,'createdAt':new Date(),'authorId':_0xd0644e,'attributes':_0x3424f3}),this['_addSuggestionMarker'](_0x1534('0x137')+_0x2fb175,_0x53dd09,_0xd0644e,_0x2b848d);}}return null;}[_0x1534('0xf7')](_0x24f682,_0x33e076,_0x223f81=[],_0x45506d=null,_0x37465={}){_0x33e076['formatGroupId']||(_0x33e076[_0x1534('0x9d')]=_0x33e076[_0x1534('0x5e')]),_0x33e076[_0x1534('0x1f')]=_0x24f682['is']('range'),_0x45506d=_0x45506d||$t(_0x33e076);const _0x26fcef=_0x223f81[_0x1534('0xff')](_0x12276a=>Rt(_0x12276a,this[_0x1534('0x93')])),_0x3fd94f=_0x24f682['is']('range')?_0x24f682:Rt(_0x24f682,this[_0x1534('0x93')]);if(_0x1534('0xda')===this[_0x1534('0x60')]){const _0x1fac2a=this[_0x1534('0x15')][_0x1534('0x11f')](_0x1534('0xaa'),_0x45506d,_0x1534('0x3d'));return this['forceDefaultExecution'](()=>_0x1fac2a([_0x3fd94f],_0x33e076,_0x37465)),null;}_0x26fcef[_0x1534('0x59')](_0x3fd94f);let _0x444acc=!0x0;for(const _0xdd2c2f of _0x26fcef)if(!this[_0x1534('0x5a')](_0xdd2c2f)){_0x444acc=!0x1;break;}if(_0x444acc&&'always'!==this['_trackFormatChanges']){const _0x441eea=this[_0x1534('0x15')][_0x1534('0x11f')](_0x1534('0xaa'),_0x45506d,'accept');return this[_0x1534('0x7a')](()=>_0x441eea([_0x3fd94f],_0x33e076,_0x37465)),null;}let _0x2e5ae5=null,_0x38b5da=_0x3fd94f['start'],_0xd0ab63=_0x3fd94f[_0x1534('0x13c')];for(const {suggestion:_0x34b460,meta:_0x204de0}of this[_0x1534('0x81')](_0x3fd94f,_0x1534('0xaa'))){if(!_0x204de0[_0x1534('0x4e')]||_0x204de0[_0x1534('0x66')]||_0x204de0[_0x1534('0x8f')]||_0x204de0[_0x1534('0x6')])continue;if(_0x34b460[_0x1534('0x139')][_0x1534('0x9d')]!=_0x33e076[_0x1534('0x9d')])continue;const _0x232718=_0x34b460[_0x1534('0x132')]();if(_0x34b460[_0x1534('0x120')]==_0x45506d){if(_0x232718['containsRange'](_0x3fd94f,!0x0))return null;_0x38b5da=_0x38b5da[_0x1534('0xfd')](_0x232718[_0x1534('0x1d')])?_0x38b5da:_0x232718[_0x1534('0x1d')],_0xd0ab63=_0xd0ab63[_0x1534('0x3b')](_0x232718['end'])?_0xd0ab63:_0x232718[_0x1534('0x13c')],_0x2e5ae5?_0x232718[_0x1534('0x1d')]['isBefore'](_0x2e5ae5['getFirstRange']()[_0x1534('0x1d')])?(_0x2e5ae5[_0x1534('0x84')](),_0x2e5ae5=_0x34b460):_0x34b460['removeMarkers']():_0x2e5ae5=_0x34b460;}else{const _0x1a8589=_0x3fd94f[_0x1534('0xdb')](_0x232718);this[_0x1534('0xa2')](_0x34b460,_0x1a8589);}}const _0x4a862e=this[_0x1534('0x11e')]['plugins'][_0x1534('0xdd')](_0x1534('0x5b'))['me'],_0x448e8e=_0x19a36d(),_0x312051=_0x4a862e['id'];if(_0x2e5ae5)return this[_0x1534('0x77')](_0x2e5ae5,this['_model']['createRange'](_0x38b5da,_0xd0ab63)),_0x2e5ae5;{const _0x2cdf1e=this[_0x1534('0xf2')]({'id':_0x448e8e,'type':_0x1534('0x1b')+_0x45506d,'data':_0x33e076,'createdAt':new Date(),'authorId':_0x312051,'attributes':_0x37465});return this[_0x1534('0x12f')](_0x1534('0x1b')+_0x45506d,_0x448e8e,_0x312051,this[_0x1534('0x93')][_0x1534('0xa7')](_0x38b5da,_0xd0ab63)),_0x2cdf1e;}}[_0x1534('0xcf')](_0x127e7e,_0x42f343,_0x5f5a6a=[],_0x4dfa9a=null,_0x10a8ec={}){_0x42f343['formatGroupId']||(_0x42f343[_0x1534('0x9d')]=_0x42f343[_0x1534('0x5e')]);const _0x42b9c7=_0x127e7e[0x0];_0x42f343['multipleBlocks']=_0x42b9c7['is'](_0x1534('0xa3')),_0x4dfa9a=_0x4dfa9a||$t(_0x42f343);const _0x5314b3=_0x5f5a6a['map'](_0x3f6855=>Rt(_0x3f6855,this[_0x1534('0x93')])),_0x4b7e7c=_0x42b9c7['is'](_0x1534('0xa3'))?_0x127e7e:_0x127e7e[_0x1534('0xff')](_0xbb48b7=>Rt(_0xbb48b7,this[_0x1534('0x93')]));if(_0x1534('0xda')===this[_0x1534('0x60')]){const _0x4c187a=this['_suggestionFactory'][_0x1534('0x11f')]('formatBlock',_0x4dfa9a,_0x1534('0x3d'));return this['forceDefaultExecution'](()=>_0x4c187a(_0x4b7e7c,_0x42f343,_0x10a8ec)),null;}_0x5314b3[_0x1534('0x59')](..._0x4b7e7c);let _0x402603=!0x0;for(const _0x18e874 of _0x5314b3)if(!this[_0x1534('0x5a')](_0x18e874)){_0x402603=!0x1;break;}if(_0x402603&&_0x1534('0x19')!==this[_0x1534('0x60')]){const _0x1ac5ea=this[_0x1534('0x15')][_0x1534('0x11f')]('formatBlock',_0x4dfa9a,_0x1534('0x3d'));return this['forceDefaultExecution'](()=>_0x1ac5ea(_0x4b7e7c,_0x42f343,_0x10a8ec)),null;}const _0xe4a44c=this[_0x1534('0x11e')][_0x1534('0xed')]['get'](_0x1534('0x5b'))['me'];for(const _0x6ed8e4 of this[_0x1534('0x103')]()){if(_0x6ed8e4[_0x1534('0xe6')]['id']!=_0xe4a44c['id'])continue;if(_0x1534('0xaa')!=_0x6ed8e4[_0x1534('0x6c')]||_0x6ed8e4[_0x1534('0x139')]['formatGroupId']!=_0x42f343[_0x1534('0x9d')])continue;const _0x507fb7=_0x6ed8e4[_0x1534('0x120')]==_0x4dfa9a;for(let _0x26d9f1=0x0;_0x26d9f1<_0x4b7e7c['length'];_0x26d9f1++){const _0x1347cf=_0x4b7e7c[_0x26d9f1];for(const _0x2c0941 of _0x6ed8e4[_0x1534('0xe8')]()){const _0x3417e0=_0x2c0941['getRange']();if(_0x1347cf[_0x1534('0xfa')](_0x3417e0)){_0x507fb7?(_0x4b7e7c[_0x1534('0x25')](_0x26d9f1,0x1),_0x26d9f1--):_0x6ed8e4[_0x1534('0xd6')](_0x2c0941['name']);break;}}}}if(0x0==_0x4b7e7c[_0x1534('0x47')])return null;const _0x5b1418=this[_0x1534('0x15')][_0x1534('0x11f')](_0x1534('0xaa'),_0x4dfa9a,_0x1534('0x129'));for(const _0x11e7a1 of this[_0x1534('0x103')]())if(_0x11e7a1[_0x1534('0xe6')]['id']==_0xe4a44c['id']&&_0x1534('0xaa')==_0x11e7a1['type']&&_0x11e7a1[_0x1534('0x139')][_0x1534('0x9d')]==_0x42f343[_0x1534('0x9d')]&&_0x11e7a1['subType']==_0x4dfa9a&&(_0x5b1418(_0x11e7a1['getRanges'](),_0x4b7e7c)||_0x5b1418(_0x4b7e7c,_0x11e7a1[_0x1534('0xb5')]()))){for(const _0x4e14e2 of _0x4b7e7c)_0x11e7a1[_0x1534('0x52')](_0x4e14e2);return _0x11e7a1;}const _0x412e8f=_0x19a36d(),_0x1fdb65=_0xe4a44c['id'],_0x472535='formatBlock:'+_0x4dfa9a,_0x47d806=this[_0x1534('0xf2')]({'id':_0x412e8f,'type':_0x472535,'data':_0x42f343,'createdAt':new Date(),'authorId':_0x1fdb65,'attributes':_0x10a8ec});for(const _0x426283 of _0x4b7e7c)this[_0x1534('0x12f')](_0x472535,_0x412e8f,_0x1fdb65,_0x426283,_0x4a0ffc[_0x1534('0x123')]());return _0x47d806;}[_0x1534('0x13d')](_0x475285,_0x286086=null,_0x2ee09f={}){if(_0x475285[_0x1534('0x121')])return null;const _0x5eba37=this[_0x1534('0x11e')][_0x1534('0xed')][_0x1534('0xdd')](_0x1534('0x5b'))['me'],_0x1a880f=new _0x4f72a0(_0x475285[_0x1534('0x1d')],_0x475285['end']);for(const {suggestion:_0x1c1264,meta:_0x543d0f}of this[_0x1534('0x81')](_0x1a880f,_0x1534('0xc7')))if(_0x543d0f[_0x1534('0x4e')]&&!_0x543d0f['isNextTo']){if(_0x1c1264[_0x1534('0xc6')]){const _0x535fce=_0x1c1264[_0x1534('0xb5')]()[_0x1534('0x141')](_0x5e850e=>_0x1534('0x9c')!=_0x5e850e[_0x1534('0xac')][_0x1534('0x100')]);_0x535fce[_0x1534('0xba')](_0x44fad0=>_0x1a880f[_0x1534('0xc8')](_0x44fad0,!0x0))&&_0x1c1264[_0x1534('0x3')]();if(_0x535fce[_0x1534('0x104')](_0x4e36a3=>_0x4e36a3[_0x1534('0xc8')](_0x1a880f,!0x0))){const _0x14e02b=this[_0x1534('0x15')]['getSuggestionCallback']('deletion',_0x286086,_0x1534('0x3d'));return this[_0x1534('0x7a')](()=>_0x14e02b([_0x1a880f],null,_0x2ee09f)),null;}}else{const _0x478f5f=_0x1a880f[_0x1534('0xdb')](_0x1c1264[_0x1534('0x132')]());null!==_0x478f5f&&_0x1c1264['_onDiscard']([_0x478f5f],null,_0x2ee09f);}}if(_0x1a880f['detach'](),_0x1a880f['isCollapsed']||'$graveyard'==_0x1a880f[_0x1534('0xac')][_0x1534('0x100')])return null;let _0x2594f9=null,_0x121396=_0x1a880f[_0x1534('0x1d')],_0x4bac64=_0x1a880f['end'];for(const {suggestion:_0x99f4e8,meta:_0x30a948}of this[_0x1534('0x81')](_0x1a880f,'deletion'))if(_0x30a948['isOwn']){if(_0x99f4e8['isMultiRange']&&this[_0x1534('0x0')]){let _0x1a27f5=!0x0;for(const _0x4b7519 of _0x99f4e8['getRanges']()){if(_0x4b7519['containsRange'](_0x1a880f,!0x0))return _0x99f4e8;_0x1a880f['containsRange'](_0x4b7519)||(_0x1a27f5=!0x1);}_0x1a27f5&&_0x99f4e8[_0x1534('0x3')]();}else{const _0x2069cc=_0x99f4e8[_0x1534('0x132')]();if(_0x2069cc[_0x1534('0xc8')](_0x1a880f,!0x0)){if(!this[_0x1534('0x0')]&&_0x30a948['containsRangeInObject'])continue;return _0x99f4e8;}_0x121396=_0x121396[_0x1534('0xfd')](_0x2069cc[_0x1534('0x1d')])?_0x121396:_0x2069cc[_0x1534('0x1d')],_0x4bac64=_0x4bac64['isAfter'](_0x2069cc[_0x1534('0x13c')])?_0x4bac64:_0x2069cc[_0x1534('0x13c')],_0x2594f9?_0x2069cc[_0x1534('0x1d')]['isBefore'](_0x2594f9[_0x1534('0x132')]()[_0x1534('0x1d')])?(_0x2594f9[_0x1534('0x84')](),_0x2594f9=_0x99f4e8):_0x99f4e8[_0x1534('0x84')]():_0x2594f9=_0x99f4e8;}}if(_0x2594f9)return this[_0x1534('0x77')](_0x2594f9,this[_0x1534('0x93')]['createRange'](_0x121396,_0x4bac64)),_0x2594f9;{const _0x5a7350=_0x19a36d(),_0xf505af=this[_0x1534('0x93')][_0x1534('0xa7')](_0x121396,_0x4bac64),_0x248546=_0x5eba37['id'],_0x3c7257=_0x286086?_0x1534('0xc1')+_0x286086:_0x1534('0x115'),_0x43bae5=this['_setSuggestionData']({'id':_0x5a7350,'type':_0x3c7257,'createdAt':new Date(),'authorId':_0x248546,'attributes':_0x2ee09f});return this[_0x1534('0x12f')](_0x3c7257,_0x5a7350,_0x248546,_0xf505af),_0x43bae5;}}[_0x1534('0x122')](_0x2254f4,_0x4130b5=_0x1534('0xa6'),_0x51e5e9={}){const _0x1bd921=this['editor']['plugins']['get'](_0x1534('0x5b'))['me'],_0x59d680=_0x2254f4[_0x1534('0xff')](_0xf24072=>new _0x4f72a0(_0xf24072[_0x1534('0x1d')],_0xf24072[_0x1534('0x13c')])),_0x3d354d=new Set();for(const _0xf43bd5 of _0x59d680)for(const {suggestion:_0x26cabe,meta:_0x229d83}of this[_0x1534('0x81')](_0xf43bd5,_0x1534('0xc7')))_0x229d83[_0x1534('0x4e')]&&!_0x229d83[_0x1534('0x66')]&&_0x3d354d['add'](_0x26cabe);for(const _0x40fc03 of _0x3d354d)if(_0x40fc03[_0x1534('0xc6')]){const _0x510eb9=_0x40fc03[_0x1534('0xb5')]();(!_0x40fc03[_0x1534('0x50')]||!_0x40fc03[_0x1534('0x50')][_0x1534('0x102')])&&(_0x510eb9[_0x1534('0xba')](_0x562056=>_0x59d680['some'](_0x3746d8=>_0x3746d8[_0x1534('0xc8')](_0x562056,!0x0)))&&_0x40fc03[_0x1534('0x3')]());if(_0x59d680[_0x1534('0xba')](_0x41ea0a=>_0x510eb9[_0x1534('0x104')](_0x53e497=>_0x53e497[_0x1534('0xc8')](_0x41ea0a,!0x0)))){const _0x59c609=this[_0x1534('0x15')]['getSuggestionCallback']('deletion',_0x4130b5,_0x1534('0x3d'));return this[_0x1534('0x7a')](()=>_0x59c609(_0x2254f4,null,_0x51e5e9)),null;}}else{const _0xaf6649=_0x40fc03[_0x1534('0x132')]();_0x59d680[_0x1534('0x104')](_0x45cd41=>_0x45cd41[_0x1534('0xc8')](_0xaf6649,!0x0))&&_0x40fc03['discard']();if(_0x59d680[_0x1534('0xba')](_0x334c06=>_0xaf6649[_0x1534('0xc8')](_0x334c06,!0x0))){const _0x227498=this['_suggestionFactory']['getSuggestionCallback'](_0x1534('0x115'),_0x4130b5,'accept');return this[_0x1534('0x7a')](()=>_0x227498(_0x59d680,null,_0x51e5e9)),null;}}const _0x18fa34=this['_suggestionFactory'][_0x1534('0x11f')](_0x1534('0x115'),_0x4130b5,_0x1534('0x129'));let _0x2585f8=null;for(const _0x7a5d72 of this[_0x1534('0x103')]())if(_0x7a5d72[_0x1534('0xe6')]['id']==_0x1bd921['id']&&_0x7a5d72[_0x1534('0x9e')]&&_0x1534('0x115')==_0x7a5d72[_0x1534('0x6c')]&&_0x7a5d72['subType']==_0x4130b5&&(_0x18fa34(_0x7a5d72[_0x1534('0xb5')](),_0x59d680)||_0x18fa34(_0x59d680,_0x7a5d72[_0x1534('0xb5')]()))){if(_0x2585f8){if(_0x7a5d72['commentThread']&&_0x7a5d72[_0x1534('0x95')][_0x1534('0x47')])continue;for(const _0x507b11 of _0x7a5d72[_0x1534('0xb5')]())_0x2585f8[_0x1534('0xd2')](_0x507b11)||_0x2585f8[_0x1534('0x52')](_0x507b11);_0x7a5d72[_0x1534('0x84')]();}else{_0x2585f8=_0x7a5d72;for(const _0x235e3e of _0x59d680)_0x7a5d72[_0x1534('0xd2')](_0x235e3e)||_0x7a5d72[_0x1534('0x52')](_0x235e3e);}}if(_0x2585f8)return _0x2585f8;_0x3d354d['clear']();for(const _0x2ff90c of _0x59d680)for(const {suggestion:_0x54c4ff,meta:_0x460fed}of this[_0x1534('0x81')](_0x2ff90c,_0x1534('0x115')))_0x460fed['isOwn']&&_0x3d354d[_0x1534('0x131')](_0x54c4ff);for(const _0x2b1d80 of _0x3d354d){const _0x11d46d=_0x2b1d80['getRanges']();if(!_0x51e5e9||!_0x51e5e9[_0x1534('0x102')]){if(_0x59d680[_0x1534('0xba')](_0x483790=>_0x11d46d[_0x1534('0x104')](_0x33f908=>_0x33f908['containsRange'](_0x483790,!0x0))))return _0x2b1d80;}(!_0x2b1d80[_0x1534('0x50')]||!_0x2b1d80[_0x1534('0x50')][_0x1534('0x102')])&&(_0x11d46d[_0x1534('0xba')](_0x685901=>_0x59d680[_0x1534('0x104')](_0x39b6c8=>_0x39b6c8[_0x1534('0xc8')](_0x685901,!0x0)))&&_0x2b1d80[_0x1534('0x3')]());}const _0x46904c=_0x19a36d(),_0x401528=_0x1bd921['id'],_0x2c4c20='deletion:'+_0x4130b5,_0x58e37f=this['_setSuggestionData']({'id':_0x46904c,'type':_0x2c4c20,'createdAt':new Date(),'authorId':_0x401528,'attributes':_0x51e5e9});for(const _0x276808 of _0x59d680)_0x276808['detach'](),_0x276808[_0x1534('0x121')]||_0x1534('0x9c')==_0x276808[_0x1534('0xac')]['rootName']||this['_addSuggestionMarker'](_0x2c4c20,_0x46904c,_0x401528,_0x276808,_0x4a0ffc[_0x1534('0x123')]());return _0x58e37f;}['_setSuggestionRange'](_0x212c7a,_0x1ddb02){const _0x39705d=_0x212c7a[_0x1534('0xd7')]();this['_model']['change'](_0x51d4b6=>{_0x51d4b6[_0x1534('0x87')](_0x39705d,{'range':_0x1ddb02});});}[_0x1534('0x8c')](_0x4eafb1){const _0x146f2d=_0x4eafb1['id'],_0x35f71e=this[_0x1534('0x11e')][_0x1534('0xc0')][_0x1534('0xdd')](_0x1534('0x80'));this['_commentsRepository'][_0x1534('0xb4')](_0x146f2d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x35f71e,'threadId':_0x146f2d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x48733f=this[_0x1534('0x51')][_0x1534('0xe3')](_0x146f2d);_0x48733f['unbind'](_0x1534('0xd1')),_0x48733f[_0x1534('0xd1')]=!0x1,_0x4eafb1[_0x1534('0x95')]=_0x48733f;}[_0x1534('0xf8')](_0x3ac274,_0x39fea5,_0x57dd21,_0x5f483f){if(_0x3ac274['type']!=_0x39fea5||_0x3ac274[_0x1534('0x120')]!=_0x57dd21||_0x3ac274[_0x1534('0x4d')]['id']!=_0x5f483f)throw this[_0x1534('0x11e')]['enableReadOnlyMode'](_0x1534('0xf4')),new _0x176d2e('track-changes-suggestion-data-mismatch',this);}[_0x1534('0xa2')](_0x567bdf,_0x571a87){const _0x48e4ac=_0x567bdf[_0x1534('0x132')]();if(_0x571a87[_0x1534('0xfa')](_0x48e4ac))_0x567bdf[_0x1534('0x84')]();else{if(_0x48e4ac['containsRange'](_0x571a87)){const _0x39ee89=this[_0x1534('0x93')]['createPositionAt'](_0x571a87[_0x1534('0x1d')][_0x1534('0xd4')],_0x1534('0x13c'));this[_0x1534('0x77')](_0x567bdf,this['_model'][_0x1534('0xa7')](_0x48e4ac[_0x1534('0x1d')],_0x39ee89));const _0xa41534=_0x19a36d(),_0x52a18b=_0x567bdf[_0x1534('0x4d')]['id'],_0x152608=_0x567bdf[_0x1534('0x6c')]+':'+_0x567bdf[_0x1534('0x120')];this[_0x1534('0xf2')]({'id':_0xa41534,'type':_0x152608,'createdAt':new Date(),'authorId':_0x52a18b,'data':_0x567bdf['data'],'attributes':_0x567bdf[_0x1534('0x50')]});const _0x27ac4e=this[_0x1534('0x93')][_0x1534('0x99')](_0x571a87[_0x1534('0x13c')]['parent'],_0x1534('0x10a')),_0x556748=this[_0x1534('0x93')][_0x1534('0xa7')](_0x27ac4e,_0x48e4ac[_0x1534('0x13c')]);this[_0x1534('0x12f')](_0x152608,_0xa41534,_0x52a18b,_0x556748);}else{if(_0x48e4ac[_0x1534('0xa5')](_0x571a87[_0x1534('0x1d')])){const _0x3918ae=this[_0x1534('0x93')][_0x1534('0x99')](_0x571a87[_0x1534('0x1d')][_0x1534('0xd4')],_0x1534('0x13c'));this['_setSuggestionRange'](_0x567bdf,this['_model'][_0x1534('0xa7')](_0x48e4ac['start'],_0x3918ae));}else{const _0x6a3cf9=this[_0x1534('0x93')]['createPositionAt'](_0x571a87['end'][_0x1534('0x97')],_0x1534('0x10a'));this[_0x1534('0x77')](_0x567bdf,this['_model'][_0x1534('0xa7')](_0x6a3cf9,_0x48e4ac['end']));}}}}[_0x1534('0x5a')](_0x1dccb0){for(const {suggestion:_0x3dcf62,meta:_0x5d3777}of this[_0x1534('0x81')](_0x1dccb0,_0x1534('0xc7'))){if(!_0x5d3777[_0x1534('0x4e')])continue;const _0x36c88c=_0x3dcf62[_0x1534('0xb5')]();for(const _0x1722f7 of _0x36c88c)if(!_0x1dccb0['getDifference'](_0x1722f7)[_0x1534('0x47')])return!0x0;}return!0x1;}[_0x1534('0x7')](_0x2fa01b){const _0x30b96c=this['editor'][_0x1534('0xed')][_0x1534('0xdd')](_0x1534('0x5b'))[_0x1534('0x82')](_0x2fa01b);if(!_0x30b96c)throw new _0x176d2e(_0x1534('0x37'),this);return _0x30b96c;}[_0x1534('0x39')](_0x47e092){const _0x4abfde=this['editor'][_0x1534('0xed')][_0x1534('0xdd')](_0x1534('0x5b')),_0x12c57d=_0x4f07df(_0x1534('0xe2')+_0x47e092),_0x54364f=_0x4abfde[_0x1534('0x82')](_0x12c57d);return _0x54364f||_0x4abfde[_0x1534('0xee')]({'id':_0x12c57d,'name':_0x47e092});}[_0x1534('0x10d')](_0xd7c8a,_0x5f29b3,_0x4bc08d,_0x3b16ab,_0x7599a5){const _0x5e4ab4=this[_0x1534('0x7')](_0x3b16ab),_0x304c01=this[_0x1534('0x15')][_0x1534('0x107')](_0xd7c8a,_0x5f29b3,_0x4bc08d,_0x5e4ab4,_0x7599a5,_0x7627a5=>this['_updateSuggestionData'](_0x4bc08d,{'attributes':_0x7627a5}));return this[_0x1534('0x36')](_0x304c01,'accept',()=>{this[_0x1534('0x4a')](_0x4bc08d,{'state':_0x1534('0x109')});},{'priority':_0x1534('0xb6')}),this[_0x1534('0x36')](_0x304c01,_0x1534('0x3'),()=>{this[_0x1534('0x4a')](_0x4bc08d,{'state':_0x1534('0xab')});},{'priority':'high'}),this['_suggestions'][_0x1534('0x11b')](_0x4bc08d,_0x304c01),this['_suggestionState'][_0x1534('0x11b')](_0x304c01,_0x1534('0x119')),_0x304c01;}[_0x1534('0xd8')](_0x195332){const _0x40dd24=_0x195332[_0x1534('0x73')](':');return{'group':_0x40dd24[0x0],'type':_0x40dd24[0x1],'subType':_0x40dd24[_0x1534('0x47')]>=0x5?_0x40dd24[0x2]:null,'id':_0x40dd24[_0x1534('0x47')]<0x5?_0x40dd24[0x2]:_0x40dd24[0x3],'authorId':_0x40dd24[_0x1534('0x47')]<0x5?_0x40dd24[0x3]:_0x40dd24[0x4],'markerCount':0x6==_0x40dd24['length']?_0x40dd24[0x5]:null};}[_0x1534('0x4')](_0x4acf21,_0x225570,_0x2b8a5e){const _0x5102f1=_0x4acf21[_0x1534('0x132')](),_0x30cf48=_0x5102f1[_0x1534('0x1d')],_0x356200=_0x5102f1['end'];this[_0x1534('0x77')](_0x4acf21,this[_0x1534('0x93')][_0x1534('0xa7')](_0x30cf48,_0x225570));const _0x443911=_0x19a36d(),_0x1badf2=_0x4acf21[_0x1534('0x4d')]['id'],_0x1ea3b9=_0x4acf21[_0x1534('0x6c')]+(_0x4acf21[_0x1534('0x120')]?':'+_0x4acf21[_0x1534('0x120')]:'');this[_0x1534('0xf2')]({'id':_0x443911,'type':_0x1ea3b9,'createdAt':new Date(),'authorId':_0x1badf2,'originalSuggestionId':_0x4acf21['id'],'attributes':_0x4acf21[_0x1534('0x50')],'data':_0x4acf21[_0x1534('0x139')]}),'formatBlock'==_0x4acf21[_0x1534('0x6c')]&&(_0x2b8a5e=this[_0x1534('0x93')][_0x1534('0x2e')](_0x2b8a5e[_0x1534('0x97')])),this[_0x1534('0x12f')](_0x1ea3b9,_0x443911,_0x1badf2,this[_0x1534('0x93')][_0x1534('0xa7')](_0x2b8a5e,_0x356200));}[_0x1534('0x81')](_0x182fb6,_0x18336c=null){const _0x439083=[],_0xb96d23=this[_0x1534('0x93')][_0x1534('0xd')],_0x13d2a1=this[_0x1534('0x11e')][_0x1534('0xed')][_0x1534('0xdd')](_0x1534('0x5b'))['me'];for(const _0x3e6498 of this[_0x1534('0x103')]())if(_0x3e6498[_0x1534('0x9e')]&&(!_0x18336c||_0x3e6498['type']==_0x18336c))for(const _0x321606 of _0x3e6498['getRanges']()){const _0xd97b21=_0x182fb6[_0x1534('0x1d')][_0x1534('0xfa')](_0x321606['end'])||_0x182fb6[_0x1534('0x13c')]['isEqual'](_0x321606[_0x1534('0x1d')]);if(_0xd97b21||_0x182fb6[_0x1534('0xdb')](_0x321606)){const _0x52805e=_0x182fb6[_0x1534('0xc8')](_0x321606)&&Bt(_0xb96d23,_0x321606[_0x1534('0x1d')],_0x182fb6),_0x54adff=_0x321606[_0x1534('0xc8')](_0x182fb6)&&Bt(_0xb96d23,_0x182fb6[_0x1534('0x1d')],_0x321606);_0x439083['push']({'suggestion':_0x3e6498,'meta':{'isOwn':_0x13d2a1==_0x3e6498['author'],'isNextTo':_0xd97b21,'isInsideObject':_0x52805e,'containsRangeInObject':_0x54adff}});break;}}return _0x439083;}['_addSuggestionMarker'](_0x31b6c3,_0x17021e,_0x2040e9,_0x4bee4f,_0x3889a0){this[_0x1534('0x93')][_0x1534('0xa')](_0x49a8c8=>{let _0x3b0d32=_0x1534('0xb2')+_0x31b6c3+':'+_0x17021e+':'+_0x2040e9;_0x3889a0&&(_0x3b0d32=_0x3b0d32+':'+_0x3889a0),_0x49a8c8['addMarker'](_0x3b0d32,{'range':_0x4bee4f,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1534('0xf6')](_0x425ea8){const _0x72c9cb=_0x425ea8[_0x1534('0x12e')],_0x9d2781=_0x425ea8[_0x1534('0x6f')];_0x425ea8[_0x1534('0x12e')]=null,null!=_0x72c9cb&&(_0x72c9cb['next']=null),_0x425ea8[_0x1534('0x6f')]=null,null!=_0x9d2781&&(_0x9d2781[_0x1534('0x12e')]=null),'ready'==this[_0x1534('0x4c')]['get'](_0x425ea8)&&(this[_0x1534('0x4c')]['set'](_0x425ea8,'removed'),this['fire']('suggestionUnloaded',_0x425ea8,_0x72c9cb,_0x9d2781));}[_0x1534('0xf2')](_0x300a0c){const _0x550576=_0x300a0c['id'],_0x1de2ae=this[_0x1534('0x40')](_0x300a0c);if(this[_0x1534('0x85')]&&this[_0x1534('0x85')][_0x1534('0x53')]){const _0x365434=this[_0x1534('0x11e')]['plugins'][_0x1534('0xdd')]('PendingActions'),_0x35ef7d=_0x1de2ae[_0x1534('0x2a')],_0x4b7356=_0x1de2ae[_0x1534('0x120')]?_0x1de2ae[_0x1534('0x6c')]+':'+_0x1de2ae[_0x1534('0x120')]:_0x1de2ae['type'],_0x27f16a=this[_0x1534('0x11e')][_0x1534('0x108')],_0x356cd9=_0x365434['add'](_0x2a4ca4(_0x27f16a,'PENDING_ACTION_SUGGESTION')),_0xc6ea31={'id':_0x550576,'type':_0x4b7356,'hasComments':_0x35ef7d,'data':_0x300a0c[_0x1534('0x139')]||null,'originalSuggestionId':_0x300a0c[_0x1534('0x136')]||null,'attributes':_0x1de2ae[_0x1534('0x50')]};this[_0x1534('0x85')]['addSuggestion'](_0xc6ea31)[_0x1534('0x113')](_0x394eb1=>{_0x1de2ae['_saved']=!0x0,_0x365434['remove'](_0x356cd9),_0x394eb1&&_0x394eb1[_0x1534('0xce')]&&(this[_0x1534('0xcd')]['get'](_0x550576)[_0x1534('0xce')]=_0x394eb1['createdAt']);})[_0x1534('0x65')](_0x19b62d=>{throw _0x267a4f('error-saving-suggestion-data-suggestion-discarded'),this[_0x1534('0x11e')][_0x1534('0x74')][_0x1534('0x4f')]({'isUndoable':!0x1},()=>{_0x1de2ae['discard']();}),_0x1de2ae[_0x1534('0x5c')](),this[_0x1534('0xcd')][_0x1534('0x92')](_0x1de2ae['id']),this[_0x1534('0x4c')][_0x1534('0x92')](_0x1de2ae),_0x19b62d;});}return _0x1de2ae;}[_0x1534('0x4a')](_0x90281a,_0x9f5e71){const _0x23815a=this[_0x1534('0x11e')][_0x1534('0xed')][_0x1534('0xdd')](_0x1534('0x6d')),_0x5c14b4=this[_0x1534('0x128')](_0x90281a);if(this[_0x1534('0x85')]&&this[_0x1534('0x85')]['updateSuggestion']){if(_0x5c14b4[_0x1534('0xeb')]){const _0x51209c=_0x23815a[_0x1534('0x131')](_0x2a4ca4(this[_0x1534('0x11e')][_0x1534('0x108')],_0x1534('0xae')));this[_0x1534('0x85')][_0x1534('0x89')](_0x90281a,_0x9f5e71)[_0x1534('0x113')](()=>{_0x23815a[_0x1534('0xc5')](_0x51209c);});}else _0x5c14b4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x90281a,_0x9f5e71);});}}[_0x1534('0x31')](_0x4583f1){if(!this[_0x1534('0x85')]||!this[_0x1534('0x85')][_0x1534('0x128')])throw new _0x176d2e(_0x1534('0xf3'),this);return this[_0x1534('0x85')][_0x1534('0x128')](_0x4583f1);}[_0x1534('0x127')](_0x19c092){const {id:_0x73feec,type:_0x14a827,subType:_0x17f7ff,authorId:_0x470131}=this[_0x1534('0xd8')](_0x19c092),_0x281bcf=this[_0x1534('0xcd')]['get'](_0x73feec)||this[_0x1534('0x10d')](_0x14a827,_0x17f7ff,_0x73feec,_0x470131,{});switch(this[_0x1534('0xf8')](_0x281bcf,_0x14a827,_0x17f7ff,_0x470131),this[_0x1534('0x4c')][_0x1534('0xdd')](_0x281bcf)){case'notReady':this[_0x1534('0x31')](_0x73feec)[_0x1534('0x113')](_0x134a91=>{let _0x2d0a40=Promise['resolve']();_0x134a91[_0x1534('0x2a')]&&(_0x2d0a40=this[_0x1534('0x51')]['fetchCommentThread']({'channelId':this[_0x1534('0x11e')][_0x1534('0xc0')][_0x1534('0xdd')](_0x1534('0x80')),'threadId':_0x73feec})),_0x2d0a40[_0x1534('0x113')](()=>{this['addSuggestionData'](_0x134a91)[_0x1534('0xeb')]=!0x0;});}),this[_0x1534('0x4c')][_0x1534('0x11b')](_0x281bcf,_0x1534('0x13e'));break;case _0x1534('0x126'):this[_0x1534('0x4a')](_0x73feec,{'state':_0x1534('0xc2')});case _0x1534('0x3f'):this[_0x1534('0x4c')][_0x1534('0x11b')](_0x281bcf,_0x1534('0xde')),this[_0x1534('0x101')]('suggestionLoaded',_0x281bcf);break;case _0x1534('0xde'):this[_0x1534('0x101')]('suggestionChanged',_0x281bcf);}return _0x281bcf[_0x1534('0xe0')](_0x19c092),_0x281bcf;}[_0x1534('0x2')](_0x56f0eb){const _0x338286=Array[_0x1534('0xfc')](_0x56f0eb)[_0x1534('0x141')](_0x46dbf2=>!_0x46dbf2[_0x1534('0xc6')]),_0x595ae3=this[_0x1534('0x103')]({'skipNotAttached':!0x0})['filter'](_0x3d31b0=>!_0x3d31b0[_0x1534('0xc6')]),_0x32f56e=_0x595ae3[_0x1534('0x141')](_0x3163f6=>!_0x56f0eb[_0x1534('0x8d')](_0x3163f6)),_0x2a2737=new Map(_0x595ae3[_0x1534('0xff')](_0x2486db=>[_0x2486db,this[_0x1534('0x15')][_0x1534('0x11f')](_0x2486db[_0x1534('0x6c')],_0x2486db[_0x1534('0x120')],'chain')])),_0x137890=new Map(_0x595ae3[_0x1534('0xff')](_0x4bbd3d=>[_0x4bbd3d,_0x4bbd3d['getFirstRange']()])),_0x40a94a=new Set(),_0x5285ed=new Set();for(let _0x5af557=0x0;_0x5af557<_0x338286[_0x1534('0x47')];_0x5af557++)_0x1f3f94(_0x338286[_0x5af557],_0x338286,_0x5af557+0x1);for(let _0x5b57b1=0x0;_0x5b57b1<_0x338286[_0x1534('0x47')];_0x5b57b1++)_0x1f3f94(_0x338286[_0x5b57b1],_0x32f56e,0x0);for(let _0x4ed923=0x0;_0x4ed923<_0x338286[_0x1534('0x47')];_0x4ed923++){const _0x19b5de=_0x338286[_0x4ed923];!_0x5285ed[_0x1534('0x8d')](_0x19b5de)&&_0x19b5de[_0x1534('0x12e')]&&(_0x19b5de[_0x1534('0x12e')][_0x1534('0x6f')]===_0x19b5de&&(_0x19b5de[_0x1534('0x12e')][_0x1534('0x6f')]=null),_0x19b5de[_0x1534('0x12e')]=null),!_0x40a94a[_0x1534('0x8d')](_0x19b5de)&&_0x19b5de[_0x1534('0x6f')]&&(_0x19b5de[_0x1534('0x6f')][_0x1534('0x12e')]===_0x19b5de&&(_0x19b5de['next'][_0x1534('0x12e')]=null),_0x19b5de[_0x1534('0x6f')]=null);}function _0x1f3f94(_0x3ad84b,_0x228d9b,_0x5a3a18){for(let _0x3951d3=_0x5a3a18;_0x3951d3<_0x228d9b['length'];_0x3951d3++){const _0x4334e7=_0x56ccf3(_0x3ad84b,_0x228d9b[_0x3951d3]);_0x4334e7&&(_0x4334e7[0x0][_0x1534('0x6f')]=_0x4334e7[0x1],_0x4334e7[0x1][_0x1534('0x12e')]=_0x4334e7[0x0],_0x40a94a[_0x1534('0x131')](_0x4334e7[0x0]),_0x5285ed[_0x1534('0x131')](_0x4334e7[0x1]));}}function _0x56ccf3(_0x495631,_0x3600ef){if(_0x495631[_0x1534('0xe6')]['id']!==_0x3600ef[_0x1534('0xe6')]['id'])return null;const _0x4d623e=_0x2a2737[_0x1534('0xdd')](_0x495631)(_0x495631,_0x3600ef,_0x137890[_0x1534('0xdd')](_0x495631),_0x137890[_0x1534('0xdd')](_0x3600ef));if(!_0x4d623e)return null;return _0x2a2737[_0x1534('0xdd')](_0x3600ef)(_0x495631,_0x3600ef,_0x137890['get'](_0x495631),_0x137890[_0x1534('0xdd')](_0x3600ef))?_0x4d623e[0x1]['commentThread']&&_0x4d623e[0x1][_0x1534('0x95')][_0x1534('0x47')]?null:_0x4d623e:null;}}[_0x1534('0x12a')](_0x4a3963){const _0x286899=Array[_0x1534('0xfc')](_0x4a3963),_0xf7f1d8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3401bb=_0xf7f1d8[_0x1534('0x141')](_0x24b4f4=>!_0x4a3963[_0x1534('0x8d')](_0x24b4f4)),_0x50f196=new Map(_0x286899[_0x1534('0xff')](_0x805452=>[_0x805452,this['_suggestionFactory'][_0x1534('0x11f')](_0x805452[_0x1534('0x6c')],_0x805452[_0x1534('0x120')],_0x1534('0x129'))])),_0x410575=new Map(_0xf7f1d8[_0x1534('0xff')](_0x2c2f82=>[_0x2c2f82,_0x2c2f82['getRanges']()]));for(let _0x46feb5=0x0;_0x46feb5<_0x286899[_0x1534('0x47')];_0x46feb5++){if(_0x4ffc2e(this,_0x286899[_0x46feb5],_0x286899,_0x46feb5+0x1))return!0x0;}for(let _0x268ba9=0x0;_0x268ba9<_0x286899[_0x1534('0x47')];_0x268ba9++){if(_0x4ffc2e(this,_0x286899[_0x268ba9],_0x3401bb,0x0))return!0x0;}return!0x1;function _0x4ffc2e(_0x26661b,_0x291690,_0x219079,_0x4f3aa1){for(let _0x3ae777=_0x4f3aa1;_0x3ae777<_0x219079['length'];_0x3ae777++){const _0x4aae8e=_0x219079[_0x3ae777];if(_0x4aae8e[_0x1534('0x6c')]!==_0x291690[_0x1534('0x6c')]||_0x4aae8e[_0x1534('0xe6')]['id']!==_0x291690[_0x1534('0xe6')]['id']||_0x4aae8e['subType']!==_0x291690[_0x1534('0x120')])continue;const _0x4f277f=_0x50f196['get'](_0x291690),_0x507ed7=_0x410575[_0x1534('0xdd')](_0x291690),_0x25484f=_0x410575[_0x1534('0xdd')](_0x4aae8e),_0x3a1758=_0x291690[_0x1534('0x95')]&&_0x291690[_0x1534('0x95')]['length'],_0x37142e=_0x4aae8e['commentThread']&&_0x4aae8e[_0x1534('0x95')]['length'];if(!_0x3a1758&&_0x4f277f(_0x25484f,_0x507ed7))return _0x26661b[_0x1534('0xe1')](_0x4aae8e,_0x291690),_0x410575[_0x1534('0x92')](_0x291690),!0x0;if(!_0x37142e&&_0x4f277f(_0x507ed7,_0x25484f))return _0x26661b['_joinSuggestions'](_0x291690,_0x4aae8e),_0x410575[_0x1534('0x92')](_0x4aae8e),!0x0;}return!0x1;}}[_0x1534('0xe1')](_0x3c886c,_0x45d9e7){if(_0x3c886c[_0x1534('0xc6')])for(const _0x41d6e3 of _0x45d9e7[_0x1534('0xb5')]())_0x3c886c[_0x1534('0x52')](_0x41d6e3);else{const _0x35a7f8=_0x45d9e7[_0x1534('0x132')]()['end'];this[_0x1534('0x77')](_0x3c886c,this[_0x1534('0x93')][_0x1534('0xa7')](_0x3c886c[_0x1534('0x132')]()[_0x1534('0x1d')],_0x35a7f8));}_0x45d9e7[_0x1534('0x84')]();}}class Dt{constructor(_0x4248e8){this['_editor']=_0x4248e8,this[_0x1534('0x93')]=_0x4248e8[_0x1534('0x74')],this[_0x1534('0x86')]=new Map(),this[_0x1534('0xf')]=new Map(),this[_0x1534('0x13a')]();}['buildSuggestion'](_0x1bd2aa,_0x220dfa,_0xc156aa,_0xc19746,_0x314ef6,_0x4b317c){return new _0x4a0ffc(this[_0x1534('0x93')],{'type':_0x1bd2aa,'subType':_0x220dfa,'id':_0xc156aa,'author':_0xc19746,'creator':_0xc19746,'attributes':_0x314ef6,'onAttributesChange':_0x4b317c,'onAccept':(..._0x47308e)=>this[_0x1534('0x11f')](_0x1bd2aa,_0x220dfa,_0x1534('0x3d'))(..._0x47308e),'onDiscard':(..._0x188372)=>this[_0x1534('0x11f')](_0x1bd2aa,_0x220dfa,'discard')(..._0x188372)});}['registerCustomCallback'](_0x38cb26,_0x2b6303,_0x18313b,_0x565774){const _0x56c0b5=_0x38cb26+':'+_0x2b6303+':'+_0x18313b;this['_customCallbacks'][_0x1534('0x11b')](_0x56c0b5,_0x565774);}[_0x1534('0x11f')](_0x511605,_0x59b23f,_0x459386){const _0x54c610=_0x511605+':'+_0x59b23f+':'+_0x459386;return this[_0x1534('0x86')][_0x1534('0xdd')](_0x54c610)||this[_0x1534('0xf')]['get'](_0x511605+':'+_0x459386);}['_registerDefaultCallbacks'](){const _0x15acca=()=>{},_0x254a71=_0x54fe43=>{_0x54fe43[_0x1534('0xc')]((_0x597153,_0x57d04a)=>_0x597153['start'][_0x1534('0xfd')](_0x57d04a[_0x1534('0x1d')])?0x1:-0x1),this[_0x1534('0x93')]['change'](_0xd49c38=>{for(const _0x1a2e44 of _0x54fe43){let _0x137068;_0x137068=_0x1a2e44['end']['isAtEnd']&&_0x1a2e44[_0x1534('0x13c')][_0x1534('0x97')]==_0x1a2e44['start'][_0x1534('0x54')]?_0xd49c38[_0x1534('0x67')](_0x1a2e44['start'][_0x1534('0x54')],'on'):_0xd49c38[_0x1534('0x67')](_0x1a2e44),this[_0x1534('0x93')][_0x1534('0xd5')](_0x137068,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5cb06a=(_0x1a2818,_0x393468)=>{this[_0x1534('0x93')][_0x1534('0xa')](_0x236c37=>{const {commandName:_0x304929,commandParams:_0xd82d01=[]}=_0x393468,_0x1d12b5=_0x1a2818[_0x1534('0xff')](_0x37770d=>(_t(_0x37770d)&&(_0x37770d=this[_0x1534('0x93')]['createRange'](_0x37770d['end'])),_0x37770d))[_0x1534('0x141')](_0x3b2dd4=>_0x1534('0x9c')!==_0x3b2dd4['root'][_0x1534('0x100')]);if(_0x1d12b5[_0x1534('0x47')]<0x1)return;const _0x1ed870=Array[_0x1534('0xfc')](this['_model'][_0x1534('0x116')][_0x1534('0xcb')][_0x1534('0xb5')]())['map'](_0x18a0fe=>_0x4f72a0[_0x1534('0x46')](_0x18a0fe));_0x236c37[_0x1534('0x17')](_0x1d12b5);for(const _0x2b9b4a of this[_0x1534('0xb3')][_0x1534('0xcc')][_0x1534('0xcc')]())_0x2b9b4a['refresh']();_0xd82d01['push']({'forceDefaultExecution':!0x0}),this['_editor'][_0x1534('0xc9')](_0x304929,..._0xd82d01);const _0x59adfd=_0x1ed870[_0x1534('0x141')](_0x17ee06=>_0x1534('0x9c')!=_0x17ee06['root'][_0x1534('0x100')]);_0x59adfd[_0x1534('0x47')]>0x0&&_0x236c37[_0x1534('0x17')](_0x59adfd);for(const _0x103670 of _0x1ed870)_0x103670[_0x1534('0x112')]();});},_0x4d7b2d=(_0x48bec0,_0x6d0964)=>0x1==_0x48bec0['length']&&0x1==_0x6d0964[_0x1534('0x47')]&&_0x48bec0[0x0][_0x1534('0x13c')]['isEqual'](_0x6d0964[0x0][_0x1534('0x1d')]),_0x2f1799=(_0x14ce47,_0x3f11a7,_0x14b23a,_0x247ee8)=>xt(_0x14ce47,_0x3f11a7,_0x14b23a,_0x247ee8,this[_0x1534('0x93')])?[_0x14ce47,_0x3f11a7]:xt(_0x3f11a7,_0x14ce47,_0x247ee8,_0x14b23a,this[_0x1534('0x93')])?[_0x3f11a7,_0x14ce47]:null;this[_0x1534('0xf')][_0x1534('0x11b')](_0x1534('0x9b'),_0x15acca),this[_0x1534('0xf')][_0x1534('0x11b')](_0x1534('0x78'),_0x254a71),this[_0x1534('0xf')]['set'](_0x1534('0xe7'),_0x4d7b2d),this[_0x1534('0xf')]['set'](_0x1534('0x33'),_0x2f1799),this[_0x1534('0xf')][_0x1534('0x11b')](_0x1534('0x55'),_0x254a71),this[_0x1534('0xf')]['set'](_0x1534('0x26'),_0x15acca),this[_0x1534('0xf')][_0x1534('0x11b')]('deletion:join',_0x4d7b2d),this[_0x1534('0xf')][_0x1534('0x11b')]('deletion:chain',_0x2f1799),this['_defaultCallbacks'][_0x1534('0x11b')](_0x1534('0x1a'),_0x5cb06a),this[_0x1534('0xf')][_0x1534('0x11b')](_0x1534('0xd0'),_0x15acca),this[_0x1534('0xf')][_0x1534('0x11b')](_0x1534('0x2c'),_0x4d7b2d),this[_0x1534('0xf')][_0x1534('0x11b')](_0x1534('0xbb'),_0x15acca),this['_defaultCallbacks'][_0x1534('0x11b')](_0x1534('0x34'),_0x5cb06a),this[_0x1534('0xf')][_0x1534('0x11b')](_0x1534('0xca'),_0x15acca),this[_0x1534('0xf')]['set'](_0x1534('0x41'),_0x4d7b2d),this[_0x1534('0xf')]['set'](_0x1534('0xdf'),_0x15acca);}}function Bt(_0x24dde5,_0x24708a,_0x3dd789){for(const _0x47be10 of _0x24708a[_0x1534('0x97')][_0x1534('0x16')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x47be10[_0x1534('0xac')]==_0x47be10)return!0x1;if(!_0x3dd789[_0x1534('0x13')](_0x47be10))return!0x1;if(_0x24dde5[_0x1534('0xad')](_0x47be10)||_0x24dde5[_0x1534('0xbf')](_0x47be10))return!0x0;}return!0x1;}function _t(_0x24df16){return _0x24df16[_0x1534('0x13c')]['parent']==_0x24df16[_0x1534('0x1d')][_0x1534('0x54')]&&_0x24df16['end'][_0x1534('0x58')];}function Mt(_0x51c5ca,_0x8a654c,_0x33d5d0,_0x4873c4){const _0x507e67=_0x1b41d9=>!_0x1b41d9[_0x1534('0x10b')]['is'](_0x1534('0x4b'))&&!_0x4873c4[_0x1534('0xad')](_0x1b41d9[_0x1534('0x10b')]),_0x13d5fb=_0x51c5ca[_0x1534('0x1d')][_0x1534('0x63')](_0x507e67),_0x26ea20=_0x51c5ca[_0x1534('0x13c')][_0x1534('0x63')](_0x507e67,{'direction':_0x1534('0xaf')});return(!_0x51c5ca[_0x1534('0x1d')][_0x1534('0xfa')](_0x13d5fb)||!_0x51c5ca['end'][_0x1534('0xfa')](_0x26ea20))&&(_0x13d5fb[_0x1534('0xfd')](_0x26ea20)?_0x33d5d0[_0x1534('0x87')](_0x8a654c,{'range':_0x33d5d0[_0x1534('0xa7')](_0x13d5fb,_0x26ea20)}):_0x33d5d0[_0x1534('0xd6')](_0x8a654c),!0x0);}function $t(_0x3d54f3){return _0x4f07df(_0x3d54f3);}function Nt(_0x274e7a){const _0xe8d75c=_0x274e7a[_0x1534('0x1d')][_0x1534('0x54')];return _0xe8d75c&&_0xe8d75c['is']('element');}function Rt(_0x3190e5,_0x5c7e41){const _0x28772c=_0x5c7e41[_0x1534('0xd')][_0x1534('0xad')](_0x3190e5)||_0x5c7e41[_0x1534('0xd')]['isSelectable'](_0x3190e5);return _0x5c7e41[_0x1534('0xa7')](_0x5c7e41['createPositionAt'](_0x3190e5,_0x1534('0x79')),_0x28772c?_0x5c7e41[_0x1534('0x24')](_0x3190e5):_0x5c7e41['createPositionAt'](_0x3190e5,_0x1534('0x13c')));}function xt(_0x40e06b,_0x26c36f,_0x51fcb3,_0x10b5f7,_0x287b6f){if(_0x51fcb3['end']['isEqual'](_0x10b5f7[_0x1534('0x1d')]))return!0x0;if(_0x40e06b[_0x1534('0x6c')]!=_0x26c36f[_0x1534('0x6c')])return!0x1;if(!_0x51fcb3[_0x1534('0x13c')][_0x1534('0xe5')](_0x10b5f7[_0x1534('0x1d')]))return!0x1;const _0x547e2a=_0x287b6f['createRange'](_0x51fcb3[_0x1534('0x13c')],_0x10b5f7[_0x1534('0x1d')])[_0x1534('0x2d')]();for(const _0x43cbbf of _0x547e2a)if([_0x1534('0x9a'),_0x1534('0x90')][_0x1534('0x118')](_0x43cbbf[_0x1534('0x6c')])&&_0x287b6f['schema'][_0x1534('0xbf')](_0x43cbbf['item']))return!0x1;return!0x0;}
23
+ const _0x2928=['isObject','group','creator','position','options','_mergeNestedSuggestions','createdAt','markMultiRangeDeletion','ready','_checkSuggestionCorrectness','ck-suggestion-marker-','multi','_addSuggestionMarker','filter','isMultiRange','markerName','rootName','_registerDefaultCallbacks','editing','formatBlock:','createRange','subType','_descriptionFactory','containsItem','stop','howMany','_suggestionFactory','reconvertMarker','createElement','catch','after','track-changes-user-not-found','getRange','trackChanges.trackFormatChanges','root','originalSuggestionId','setSelection','removeAttribute','markMultiRangeBlockFormat','pluginName','nodeBefore','suggestionLoaded','insertContent','isSelectable','TrackChangesEditing','return','CommentsRepository','createPositionAfter','toJSON','insert','containsRangeInObject','push','buildSuggestion','createRangeIn','widget','conversion','_isForcedDefaultExecutionBlock','addHighlight','config','_defaultCallbacks','PendingActions','never','schema','addMarker:suggestion:formatBlock','selection','addCommentThread','isExternal','bindElementToMarker','includes','_trackFormatChanges','item','formatBlock','backward','track-changes-adapter-missing-getsuggestion','_suggestionState','start','_setSuggestionRange','enqueueChange','data-suggestion','authorName','isAfter','fire','getMultiRangeId','formatInline:accept','model','size','every','getCustomProperty','some','dataDowncast','removeComment','hasCommentThread','formatBlock:discard','always','_handleNewSuggestionMarker','_addThreadToSuggestion','formatInline:discard','getFirstMarker','head','_updateSuggestionData','from','getMarkers','getUser','isEqual','update:suggestion','differ','hasComments','_adapter','next','splitPosition','$graveyard','add','formatInline','then','getNearestSelectionRange','_saved','isRemovable','_commentsRepository','acceptSuggestion','_editor','markerReady','ck-suggestion-marker','isInContent','forceDefaultExecution','name','markerNameToElements','suggestionChanged','change','_rangeIsInLocalUserInsertion','length','suggestion-type','mapper','getLastMatchingPosition','commands','removeMarkers','split','documentSelection','unbindElementFromMarkerName','deletion:accept','trackChanges.mergeNestedSuggestions','addMarkerName','moveTargetPosition','activeMarkers','_model','map','suggestion:','author','ck-suggestion-marker--active','setTo','data','get','highest','getFirstRange','_breakSuggestionMarker','listenTo','_findSuggestions','applyOperation','createPositionAt','track-changes-suggestion-data-mismatch','containsPosition','formatInline:chain','element','has','enableReadOnlyMode','addSuggestionData','ck-suggestion-marker-formatBlock','$marker','getSuggestionCallback','acceptAllSuggestions','_splitMarkerName','values','registerPostFixer','trackChanges','insertion:accept','splice','join','discardSelectedSuggestions','type','unbind','registerCustomCallback','previous','targetPosition','discardSuggestion','accept','isNextTo','authoredAt','value','document','removed','discardAllSuggestions','plugins','getSuggestion','markInsertion','markers','_refreshSuggestionsChain','low','addMarker:suggestion','_enabledCommands','createSelection','elementEnd','high','sort','remove','for','getItems','enableCommand','init','change:_saved','_createSuggestion','clone','getAttribute','@external','_onDiscard','commentThread','removeMarker','resolve','removeClass','containsRange','deletion:join','_joinSuggestions','forward','_setSuggestionData','formatInline:','collaboration.channelId','isIntersectingWithRange','getDifference','showSuggestionHighlights','newRange','execute','isLocal','isUndo','deletion','multipleBlocks','upcast','setAttribute','normal','isTouching','isLimit','insertion:chain','deletion:chain','substr','nodeAfter','updateMarker','trackChangesCommand','updateSuggestion','rejected','addComment','locale','consumable','chain','getIntersection','dataReady','discard','markMultiRangeInsertion','commandName','removeMarker:suggestion:formatBlock','isBlock','track-changes-suggestion-not-found','getChangedMarkers','getAllAdjacentSuggestions','deleteContent','getRanges','getShiftedBy','detach','default','notReady','_joinWithAdjacentSuggestions','acceptSelectedSuggestions','addClass','change:data','writer','editor','getSuggestions','track-changes-command-not-found','Users','elementStart','define','insertion','markDeletion','editingDowncast','dataToMarker','error-saving-suggestion-data-suggestion-discarded','refresh','isAtEnd','skipNestingCheck','getWalker','delete','oldRange','addSuggestion','addRange','insertion:','getCommentThread','deletion:','isCollapsed','_getAuthorFromId','batch','adapter','isBefore','formatGroupId','markInlineFormat','external:','formatBlock:accept','isDocumentOperation','createPositionBefore','markerToHighlight','consume','PENDING_ACTION_SUGGESTION','isOwn','attributes','set','suggestion','_removeSuggestion','end','move','fromRange','parent','suggestionUnloaded','_cutOutSuggestionMarker','getAncestors','_suggestions','range','clear','_getSuggestionData','change:activeMarkers','_customCallbacks','isInsideObject'];(function(_0x276c62,_0x2928f7){const _0x7e0b26=function(_0x1f5715){while(--_0x1f5715){_0x276c62['push'](_0x276c62['shift']());}};_0x7e0b26(++_0x2928f7);}(_0x2928,0x109));const _0x7e0b=function(_0x276c62,_0x2928f7){_0x276c62=_0x276c62-0x0;let _0x7e0b26=_0x2928[_0x276c62];return _0x7e0b26;};import{Plugin as _0x321376,PendingActions as _0x520fbc}from'ckeditor5/src/core';import{LiveRange as _0x491aa7}from'ckeditor5/src/engine';import{CKEditorError as _0x58fb70,uid as _0x1862e6,priorities as _0xf969cc,logWarning as _0x2f4b48}from'ckeditor5/src/utils';import{toWidget as _0x37d5c8}from'ckeditor5/src/widget';import{Users as _0x3bd855,hashObject as _0x1685bc}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ab93a from'./commands/trackchangescommand';import _0x3b4901 from'./commands/acceptsuggestioncommand';import _0x433a42 from'./commands/discardsuggestioncommand';import _0x28e3b2 from'./commands/executeonallsuggestionscommand';import _0x16f9ac from'./commands/executeonselectedsuggestionscommand';import _0x232d62 from'./suggestion';import _0x929de5 from'./suggestiondescriptionfactory';import _0x46390a from'./integrations/alignment';import _0x5bc39d from'./integrations/basicstyles';import _0x3fabc7 from'./integrations/blockquote';import _0x5c8300 from'./integrations/ckbox';import _0x1336c0 from'./integrations/codeblock';import _0x5ebef3 from'./integrations/comments';import _0x501c8d from'./integrations/deletecommand';import _0x51bd62 from'./integrations/documentlist';import _0x13d70b from'./integrations/entercommand';import _0x84dcad from'./integrations/findandreplace';import _0x21b2af from'./integrations/font';import _0xa36196 from'./integrations/formatpainter';import _0x1f25b3 from'./integrations/heading';import _0x1aae36 from'./integrations/highlight';import _0x2813b1 from'./integrations/horizontalline';import _0x15fbd0 from'./integrations/htmlembed';import _0x1c9fb3 from'./integrations/image';import _0x1c9f51 from'./integrations/imagereplace';import _0x2ba43c from'./integrations/importword';import _0x16afbd from'./integrations/indent';import _0x28a733 from'./integrations/inputcommand';import _0x3fdfa3 from'./integrations/link';import _0x253459 from'./integrations/list';import _0x9d363 from'./integrations/listproperties';import _0x1cdd9f from'./integrations/mediaembed';import _0x47d786 from'./integrations/mention';import _0x498742 from'./integrations/pagebreak';import _0x20b1f8 from'./integrations/paragraph';import _0x4436ef from'./integrations/removeformat';import _0x47fb5a from'./integrations/restrictededitingmode';import _0x22659d from'./integrations/shiftentercommand';import _0x29deed from'./integrations/standardeditingmode';import _0x40b576 from'./integrations/style';import _0x4e4e61 from'./integrations/table';import _0x4b7877 from'./integrations/tablemergesplit';import _0x367a89 from'./integrations/tableheadings';import _0x14e9e3 from'./integrations/tableclipboard';import _0x31d3ab from'./integrations/tablecolumnresize';import _0x1051a8 from'./integrations/template';import _0x46015f from'./integrations/tableofcontents';import _0x5b2246 from'./integrations/title';import _0xe3760a from'./integrations/undo';import{getTranslation as _0x25f2c4}from'./utils/common-translations';import _0x3ddec0 from'./integrations/tablecaption';import _0x98523b from'./integrations/documentlistproperties';import _0x14be67 from'./integrations/tableproperties';export default class p extends _0x321376{static get['requires'](){return['CommentsRepository',_0x3bd855,_0x520fbc,_0x46390a,_0x5bc39d,_0x3fabc7,_0x5c8300,_0x1336c0,_0x5ebef3,_0x501c8d,_0x51bd62,_0x98523b,_0x13d70b,_0x84dcad,_0x21b2af,_0xa36196,_0x1f25b3,_0x1aae36,_0x2813b1,_0x15fbd0,_0x1c9fb3,_0x1c9f51,_0x2ba43c,_0x16afbd,_0x28a733,_0x3fdfa3,_0x253459,_0x9d363,_0x1cdd9f,_0x47d786,_0x498742,_0x20b1f8,_0x4436ef,_0x47fb5a,_0x22659d,_0x29deed,_0x40b576,_0x4e4e61,_0x4b7877,_0x367a89,_0x3ddec0,_0x14e9e3,_0x31d3ab,_0x46015f,_0x14be67,_0x1051a8,_0x5b2246,_0xe3760a];}static get[_0x7e0b('0x64')](){return _0x7e0b('0x69');}constructor(_0x2d1cf4){function _0x10c953(_0x2bb088){return _0x2bb088[_0x7e0b('0xcd')](_0x4309aa=>String['fromCharCode'](_0x4309aa))[_0x7e0b('0xec')]('');}super(_0x2d1cf4),this[_0x7e0b('0x2c')]('activeMarkers',[]),this['on'](_0x7e0b('0x3a'),(_0x53208a,_0x46fd8b,_0xbf4de6,_0x14352d)=>{this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](()=>{for(const _0x101118 of[..._0x14352d,..._0xbf4de6])this[_0x7e0b('0xcc')][_0x7e0b('0xfe')][_0x7e0b('0xdf')](_0x101118)&&_0x2d1cf4[_0x7e0b('0x4f')][_0x7e0b('0x58')](_0x101118);});}),this[_0x7e0b('0x53')]=new _0x929de5(this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0x7b')],this[_0x7e0b('0x6')][_0x7e0b('0x134')]),this['_adapter']=null,this[_0x7e0b('0x57')]=new Dt(this['editor']),this[_0x7e0b('0x36')]=new Map(),this['_commentsRepository']=_0x2d1cf4[_0x7e0b('0xfb')]['get'](_0x7e0b('0x6b')),this['_enabledCommands']=new Set(),this[_0x7e0b('0xcc')]=this[_0x7e0b('0x6')][_0x7e0b('0x91')],this[_0x7e0b('0x87')]=new WeakMap(),this[_0x7e0b('0x75')]=!0x1,_0x2d1cf4[_0x7e0b('0x77')]['define']('trackChanges.trackFormatChanges',_0x7e0b('0x145')),this[_0x7e0b('0x82')]=_0x2d1cf4[_0x7e0b('0x77')][_0x7e0b('0xd3')](_0x7e0b('0x5e')),_0x2d1cf4[_0x7e0b('0x77')][_0x7e0b('0xb')](_0x7e0b('0xc8'),!0x0),this[_0x7e0b('0x42')]=_0x2d1cf4[_0x7e0b('0x77')]['get']('trackChanges.mergeNestedSuggestions'),this[_0x7e0b('0x130')]=new _0x3ab93a(_0x2d1cf4,this['_enabledCommands']),this[_0x10c953([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10c953([0x34,0x30,0x34,0x36,0x31,0x36,0x33,0x32]);}[_0x7e0b('0x10b')](){const _0x3db3e4=this['editor'];_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0xe'))[_0x7e0b('0x27')]({'model':'suggestion','view':_0x4f3c62=>{const {id:_0x1432aa,type:_0x5142c5}=this['_splitMarkerName'](_0x4f3c62['markerName']),_0x2e185a=[_0x7e0b('0xb6'),_0x7e0b('0x47')+_0x5142c5];let _0x570db1=0xbb8;return this[_0x7e0b('0xcb')][_0x7e0b('0x81')](_0x4f3c62['markerName'])&&(_0x2e185a['push'](_0x7e0b('0xd0')),_0x570db1=0xbc2),'deletion'==_0x5142c5&&(_0x570db1+=0x5),{'classes':_0x2e185a,'attributes':{'data-suggestion':_0x1432aa},'priority':_0x570db1};}}),_0x3db3e4['conversion'][_0x7e0b('0x108')](_0x7e0b('0x96'))[_0x7e0b('0xac')](_0x4ce6fa=>{_0x4ce6fa['on'](_0x7e0b('0x101'),(_0x517b73,_0x472d83,_0x38af86)=>{if(!_0x38af86['options'][_0x7e0b('0x11f')])return;const _0x1ca598=_0x472d83['item'];if(!_0x1ca598)return;const _0x40c0b3=_0x38af86[_0x7e0b('0xc0')]['toViewElement'](_0x1ca598);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')][_0x7e0b('0x3d')](_0x1ca598)&&_0x40c0b3&&!_0x40c0b3[_0x7e0b('0x94')](_0x7e0b('0x73'))&&_0x40c0b3['is']('containerElement')&&_0x37d5c8(_0x40c0b3,_0x38af86['writer']);},{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x74')]['for'](_0x7e0b('0x96'))[_0x7e0b('0x27')]({'model':_0x7e0b('0x2d'),'view':(_0x21adf7,_0x2181a7)=>{if(!_0x2181a7[_0x7e0b('0x41')][_0x7e0b('0x11f')])return null;const {type:_0x3b0ad1}=this[_0x7e0b('0xe6')](_0x21adf7[_0x7e0b('0x4c')]);return{'classes':['ck-suggestion-marker',_0x7e0b('0x47')+_0x3b0ad1],'priority':0xbb8};}});const _0x41f028=({showActiveMarkers:_0x455852=!0x0}={})=>(_0x4c2214,_0x3a04f7,_0x10f6fc)=>{if(!_0x3a04f7[_0x7e0b('0x83')])return;if(_0x3a04f7[_0x7e0b('0x83')]['is'](_0x7e0b('0x7d')))return void _0x10f6fc[_0x7e0b('0x135')][_0x7e0b('0x28')](_0x3a04f7[_0x7e0b('0x83')],_0x4c2214[_0x7e0b('0xb9')]);const _0x3ba81f=_0x10f6fc[_0x7e0b('0xc0')]['toViewElement'](_0x3a04f7[_0x7e0b('0x83')]);if(!(_0x3a04f7['item']['is'](_0x7e0b('0xde'))&&_0x3db3e4[_0x7e0b('0x91')]['schema'][_0x7e0b('0x13d')](_0x3a04f7['item'])&&!_0x3ba81f[_0x7e0b('0x94')](_0x7e0b('0x76'))))return;const {id:_0x3b99b2}=this[_0x7e0b('0xe6')](_0x3a04f7[_0x7e0b('0x4c')]);_0x10f6fc['writer']['addClass']([_0x7e0b('0xb6'),_0x7e0b('0xe2')],_0x3ba81f),_0x10f6fc[_0x7e0b('0x5')][_0x7e0b('0x127')](_0x7e0b('0x8b'),_0x3b99b2,_0x3ba81f),_0x10f6fc[_0x7e0b('0xc0')][_0x7e0b('0x80')](_0x3ba81f,_0x3a04f7[_0x7e0b('0x4c')]),_0x455852&&(this[_0x7e0b('0xcb')][_0x7e0b('0x81')](_0x3a04f7['markerName'])?_0x10f6fc['writer'][_0x7e0b('0x3')](_0x7e0b('0xd0'),_0x3ba81f):_0x10f6fc['writer'][_0x7e0b('0x115')](_0x7e0b('0xd0'),_0x3ba81f));for(const _0x599772 of _0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x72')](_0x3a04f7[_0x7e0b('0x83')])[_0x7e0b('0x109')]())_0x10f6fc['consumable'][_0x7e0b('0x28')](_0x599772,_0x4c2214[_0x7e0b('0xb9')]);_0x10f6fc[_0x7e0b('0x135')][_0x7e0b('0x28')](_0x3a04f7['item'],_0x4c2214['name']);};_0x3db3e4['conversion'][_0x7e0b('0x108')](_0x7e0b('0x96'))[_0x7e0b('0xac')](_0x55c3ae=>{_0x55c3ae['on'](_0x7e0b('0x7c'),(_0x6ff516,_0x12bb06,_0x1098c9)=>{_0x1098c9['options'][_0x7e0b('0x11f')]&&_0x41f028({'showActiveMarkers':!0x1})(_0x6ff516,_0x12bb06,_0x1098c9);},{'priority':_0x7e0b('0xd4')});}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x96'))['markerToData']({'model':_0x7e0b('0x2d'),'view':(_0x1a610b,_0x2459d7)=>_0x2459d7[_0x7e0b('0x41')][_0x7e0b('0x11f')]?null:{'group':_0x7e0b('0x2d'),'name':_0x1a610b[_0x7e0b('0x12d')](0xb)}}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x126'))['elementToElement']({'view':{'name':_0x7e0b('0x2d'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5b8e34,{writer:_0x8d5bc})=>{let _0x3ac5aa='suggestion:'+_0x5b8e34[_0x7e0b('0x10f')](_0x7e0b('0xbf'))+':'+_0x5b8e34['getAttribute']('id');return _0x5b8e34['getAttribute']('marker-count')&&(_0x3ac5aa+=':'+_0x5b8e34[_0x7e0b('0x10f')]('marker-count')),_0x8d5bc[_0x7e0b('0x59')](_0x7e0b('0xe3'),{'data-name':_0x3ac5aa});}}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x126'))[_0x7e0b('0xf')]({'view':'suggestion'}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0xe'))[_0x7e0b('0xac')](_0x379d06=>{_0x379d06['on'](_0x7e0b('0x7c'),_0x41f028(),{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x74')]['for']('editingDowncast')[_0x7e0b('0xac')](_0x546f4b=>{_0x546f4b['on'](_0x7e0b('0x13c'),(_0x249c24,_0x3f78b8,_0x5b6170)=>{const _0x4683ee=_0x5b6170[_0x7e0b('0xc0')][_0x7e0b('0xba')](_0x3f78b8[_0x7e0b('0x4c')]);if(_0x4683ee)for(const _0x27038a of _0x4683ee)_0x27038a[_0x7e0b('0x94')](_0x7e0b('0x76'))||(_0x5b6170['writer']['removeClass']([_0x7e0b('0xb6'),'ck-suggestion-marker-formatBlock',_0x7e0b('0xd0')],_0x27038a),_0x5b6170[_0x7e0b('0x5')][_0x7e0b('0x62')]('data-suggestion',_0x27038a),_0x5b6170[_0x7e0b('0xc0')][_0x7e0b('0xc6')](_0x27038a,_0x3f78b8[_0x7e0b('0x4c')]));},{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xe8')](_0x68975=>{let _0x34306d=!0x1;const _0x5f3864=Array['from'](_0x3db3e4[_0x7e0b('0x91')]['document']['differ'][_0x7e0b('0x13f')]()),_0x304d04=new Set();for(const {name:_0x3e2fc0,data:_0x4206a2}of _0x5f3864){const {group:_0x343103,type:_0x22e4f9,id:_0x3680b8}=this['_splitMarkerName'](_0x3e2fc0);if(_0x7e0b('0x2d')!==_0x343103)continue;const _0x32b5aa=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x3680b8);if(null!=_0x4206a2['newRange']){_0x7e0b('0xad')==_0x22e4f9&&(_0x34306d=_0x34306d||Mt(_0x4206a2[_0x7e0b('0x120')],_0x3e2fc0,_0x68975,_0x3db3e4['model'][_0x7e0b('0x7b')]));if(_0x4206a2[_0x7e0b('0x120')][_0x7e0b('0x1c')]||_0x7e0b('0xab')==_0x4206a2[_0x7e0b('0x120')][_0x7e0b('0x5f')][_0x7e0b('0x4d')]||_0x7e0b('0x84')==_0x22e4f9&&!Nt(_0x4206a2[_0x7e0b('0x120')])||'deletion'==_0x22e4f9&&!(!_t(_0x53f75b=_0x4206a2[_0x7e0b('0x120')])&&!function(_0x54668f){return _0x54668f['start'][_0x7e0b('0x32')]==_0x54668f[_0x7e0b('0x2f')]['nodeBefore']&&_0x54668f['start'][_0x7e0b('0x12')];}(_0x53f75b)))_0x68975[_0x7e0b('0x113')](_0x3e2fc0),_0x34306d=!0x0;else{if(!_0x32b5aa||!_0x32b5aa[_0x7e0b('0xb7')])continue;_0x304d04[_0x7e0b('0xac')](_0x32b5aa);}}}var _0x53f75b;return _0x304d04[_0x7e0b('0x92')]>0x0&&(_0x34306d=!!this[_0x7e0b('0x1')](_0x304d04)||_0x34306d),_0x34306d;}),_0x3db3e4['model'][_0x7e0b('0xf8')][_0x7e0b('0xe8')](_0x3d829d=>{let _0x5d128f=!0x1;for(const _0x1279db of _0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xa6')]['getChanges']()){if(_0x7e0b('0x6e')!=_0x1279db[_0x7e0b('0xee')])continue;const _0x214359=_0x1279db['position']['getShiftedBy'](_0x1279db[_0x7e0b('0xbe')]);if(_0x214359['isAtEnd'])for(const _0x36ce40 of this[_0x7e0b('0x36')][_0x7e0b('0xe7')]()){if(_0x36ce40['isMultiRange']||!_0x36ce40[_0x7e0b('0xb7')])continue;if(_0x7e0b('0x84')!=_0x36ce40[_0x7e0b('0xee')])continue;const _0x17595a=_0x36ce40[_0x7e0b('0xd5')]();if(_0x17595a['start'][_0x7e0b('0x32')]!=_0x17595a[_0x7e0b('0x2f')][_0x7e0b('0x32')]&&_0x17595a['end'][_0x7e0b('0xa4')](_0x1279db[_0x7e0b('0x40')])){const _0x455508=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x17595a['start'],_0x214359);_0x3d829d['updateMarker'](_0x36ce40[_0x7e0b('0x9e')](),{'range':_0x455508}),_0x5d128f=!0x0;}}}return _0x5d128f;}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xfe')]['on'](_0x7e0b('0xa5'),(_0x59db46,_0x286fbc,_0x4ce649)=>{if(null==_0x4ce649){const {id:_0x1144e1}=this['_splitMarkerName'](_0x286fbc[_0x7e0b('0xb9')]),_0x5b1f65=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x1144e1);_0x5b1f65&&_0x5b1f65[_0x7e0b('0xc9')](_0x286fbc[_0x7e0b('0xb9')]);}}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')]['on'](_0x7e0b('0x4'),()=>{const _0x418fd2=Array[_0x7e0b('0xa1')](_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xa6')][_0x7e0b('0x13f')]())['filter'](_0xad5cd2=>_0x7e0b('0x2d')===this[_0x7e0b('0xe6')](_0xad5cd2[_0x7e0b('0xb9')])[_0x7e0b('0x3e')]);if(0x0===_0x418fd2[_0x7e0b('0xbe')])return;_0x418fd2[_0x7e0b('0x106')]((_0x5aafa4,_0x49912f)=>{const _0x8c6685=_0x5aafa4['data'][_0x7e0b('0x16')],_0x4321f5=_0x49912f['data'][_0x7e0b('0x16')];return null===_0x8c6685&&null===_0x4321f5?0x0:null===_0x8c6685&&null!==_0x4321f5?-0x1:null!==_0x8c6685&&null===_0x4321f5?0x1:_0x8c6685['start']['isBefore'](_0x4321f5[_0x7e0b('0x88')])?-0x1:0x1;});const _0x446e7b=new Set(),_0x43aaef=new Set();for(const {name:_0x5f19f4,data:_0x4c4081}of _0x418fd2){const {id:_0x4425c3}=this[_0x7e0b('0xe6')](_0x5f19f4);if(null===_0x4c4081[_0x7e0b('0x16')]){const _0x4ccecb=this[_0x7e0b('0x9b')](_0x5f19f4);_0x43aaef[_0x7e0b('0xac')](_0x4ccecb);}else{const _0xaaa503=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x4425c3);null!==_0x4c4081['newRange']||_0xaaa503[_0x7e0b('0xb7')]?(_0x446e7b[_0x7e0b('0xac')](_0xaaa503[_0x7e0b('0x9f')]),_0x43aaef['add'](_0xaaa503)):this[_0x7e0b('0x2e')](_0xaaa503);}}_0x43aaef['size']>0x0&&this[_0x7e0b('0xff')](_0x43aaef);for(const _0x21ccfb of _0x446e7b)this[_0x7e0b('0x8e')](_0x7e0b('0xbb'),_0x21ccfb);}),_0x3db3e4['model']['on'](_0x7e0b('0xd9'),(_0x4398bd,_0x59c986)=>{const _0x383316=_0x59c986[0x0];if(!this[_0x7e0b('0x36')]['size'])return;if(!_0x383316[_0x7e0b('0x25')])return;if(_0x383316[_0x7e0b('0x1e')][_0x7e0b('0x123')]||!_0x383316[_0x7e0b('0x1e')][_0x7e0b('0x122')])return;let _0x124e73,_0x1074e0;switch(_0x383316[_0x7e0b('0xee')]){case'insert':_0x124e73=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xda')](_0x383316[_0x7e0b('0x40')]),_0x1074e0=_0x124e73['getShiftedBy'](_0x383316[_0x7e0b('0x56')]);break;case _0x7e0b('0xc4'):_0x124e73=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xaa')]),_0x1074e0=_0x3db3e4['model'][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xca')]);break;case _0x7e0b('0x30'):_0x124e73=_0x3db3e4['model'][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xf2')]),_0x1074e0=_0x124e73[_0x7e0b('0x143')](_0x383316[_0x7e0b('0x56')]);break;default:return;}const _0x3d051c=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x124e73,_0x1074e0);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const {suggestion:_0x2f2bfb,meta:_0x71c7b}of this['_findSuggestions'](_0x3d051c)){if(_0x2f2bfb['isMultiRange'])continue;if(_0x7e0b('0xad')==_0x2f2bfb[_0x7e0b('0xee')])continue;const _0x26c107=_0x2f2bfb['data']&&_0x2f2bfb[_0x7e0b('0xd2')][_0x7e0b('0x125')];(_0x7e0b('0x84')!=_0x2f2bfb['type']||_0x7e0b('0xc4')==_0x383316['type']&&!_0x26c107)&&(_0x71c7b[_0x7e0b('0x6f')]||_0x7e0b('0xc')==_0x2f2bfb['type']&&_0x71c7b[_0x7e0b('0x2a')]||_0x2f2bfb['getFirstRange']()[_0x7e0b('0x116')](_0x3d051c)&&this[_0x7e0b('0xd6')](_0x2f2bfb,_0x124e73,_0x1074e0));}});},{'priority':'lowest'}),_0x3db3e4[_0x7e0b('0x91')]['on'](_0x7e0b('0x141'),(_0x3dc275,_0x23ef7a)=>{const _0x581212=_0x23ef7a[0x0],_0x624f7a=_0x23ef7a[0x1];if(_0x624f7a&&_0x624f7a[_0x7e0b('0xb8')])return;if(this[_0x7e0b('0x75')])return;if(!this[_0x7e0b('0x130')][_0x7e0b('0xf7')])return;if(_0x581212[_0x7e0b('0x1c')])return;const _0x2cfdbe=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')],{start:_0x5db3fd,end:_0x181faa}=_0x581212[_0x7e0b('0xd5')](),_0x54954d=_0x5db3fd[_0x7e0b('0x12e')]&&_0x2cfdbe['isLimit'](_0x5db3fd[_0x7e0b('0x12e')])?null:_0x2cfdbe[_0x7e0b('0xaf')](_0x5db3fd,_0x7e0b('0x119')),_0x2841dd=_0x181faa[_0x7e0b('0x65')]&&_0x2cfdbe[_0x7e0b('0x12a')](_0x181faa[_0x7e0b('0x65')])?null:_0x2cfdbe[_0x7e0b('0xaf')](_0x181faa,_0x7e0b('0x85')),_0x140e06=_0x3db3e4['model'][_0x7e0b('0x51')](_0x54954d?_0x54954d[_0x7e0b('0x88')]:_0x5db3fd,_0x2841dd?_0x2841dd['end']:_0x181faa);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](_0xe243d7=>{this[_0x7e0b('0xd')](_0x140e06);const _0x3fe944=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')][_0x7e0b('0xaf')](_0x140e06[_0x7e0b('0x88')]);_0x581212['is'](_0x7e0b('0xc5'))?_0xe243d7[_0x7e0b('0x61')](_0x3fe944):_0x581212[_0x7e0b('0xd1')](_0x3fe944);}),_0x3dc275[_0x7e0b('0x55')]();},{'priority':_0xf969cc[_0x7e0b('0x128')]+0xa}),_0x3db3e4[_0x7e0b('0x91')]['on'](_0x7e0b('0x67'),(_0x2b7587,_0x53d36c)=>{const _0xfa6446=_0x53d36c[_0x53d36c[_0x7e0b('0xbe')]-0x1];_0xfa6446&&_0xfa6446['forceDefaultExecution']||this[_0x7e0b('0x75')]||this[_0x7e0b('0x130')][_0x7e0b('0xf7')]&&(_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{let _0x310459=_0x3db3e4['model'][_0x7e0b('0x67')](_0x53d36c[0x0],_0x53d36c[0x1],_0x53d36c[0x2],{'forceDefaultExecution':!0x0});if(!_0x310459)return;_0x2b7587[_0x7e0b('0x6a')]=_0x310459[_0x7e0b('0x10e')]();const _0x28aead=_0x310459[_0x7e0b('0x2f')][_0x7e0b('0x65')],_0x7ca8d4=_0x3db3e4['model']['schema'];_0x28aead&&_0x7ca8d4[_0x7e0b('0x13d')](_0x28aead)&&!_0x7ca8d4['isObject'](_0x28aead)&&(_0x310459=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x310459[_0x7e0b('0x88')],_0x3db3e4[_0x7e0b('0x91')]['createPositionAt'](_0x28aead,_0x7e0b('0x2f')))),this[_0x7e0b('0xfd')](_0x310459);}),_0x2b7587['stop']());},{'priority':_0x7e0b('0x105')}),this[_0x7e0b('0x6')][_0x7e0b('0xc2')]['add'](_0x7e0b('0xe9'),this[_0x7e0b('0x130')]),this[_0x7e0b('0x10a')](_0x7e0b('0xe9'));const _0x2d6d1e=new _0x3b4901(_0x3db3e4,this[_0x7e0b('0x36')]);_0x3db3e4['commands'][_0x7e0b('0xac')]('acceptSuggestion',_0x2d6d1e),this['enableCommand'](_0x7e0b('0xb3'));const _0x2e76b4=new _0x433a42(_0x3db3e4,this['_suggestions']);_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xf3'),_0x2e76b4),this[_0x7e0b('0x10a')](_0x7e0b('0xf3')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xe5'),new _0x28e3b2(_0x3db3e4,_0x2d6d1e,this['_suggestions'])),this[_0x7e0b('0x10a')](_0x7e0b('0xe5')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xfa'),new _0x28e3b2(_0x3db3e4,_0x2e76b4,this[_0x7e0b('0x36')])),this[_0x7e0b('0x10a')](_0x7e0b('0xfa')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0x2'),new _0x16f9ac(_0x3db3e4,_0x2d6d1e,this['_suggestions'])),this[_0x7e0b('0x10a')](_0x7e0b('0x2')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xed'),new _0x16f9ac(_0x3db3e4,_0x2e76b4,this[_0x7e0b('0x36')])),this['enableCommand'](_0x7e0b('0xed'));const _0x2c5538=_0x3db3e4[_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x6b'));this[_0x7e0b('0xd7')](_0x2c5538,_0x7e0b('0x133'),(_0x34e5dc,{threadId:_0x231807})=>{const _0x330e0f=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x231807);_0x330e0f&&_0x330e0f[_0x7e0b('0x112')]&&0x1===_0x330e0f[_0x7e0b('0x112')][_0x7e0b('0xbe')]&&this['_updateSuggestionData'](_0x231807,{'hasComments':!0x0});},{'priority':_0x7e0b('0x100')}),this[_0x7e0b('0xd7')](_0x2c5538,_0x7e0b('0x97'),(_0xa2faeb,{threadId:_0x2538aa})=>{const _0x986047=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x2538aa);_0x986047&&_0x986047[_0x7e0b('0x112')]&&!_0x986047['commentThread'][_0x7e0b('0xbe')]&&this[_0x7e0b('0xa0')](_0x2538aa,{'hasComments':!0x1});},{'priority':_0x7e0b('0x100')});}set[_0x7e0b('0x1f')](_0xd29e1){if(this['_adapter'])throw new _0x58fb70('track-changes-adapter-already-set',this);this[_0x7e0b('0xa8')]=_0xd29e1;}get[_0x7e0b('0x1f')](){return this[_0x7e0b('0xa8')];}['getSuggestions']({skipNotAttached:_0x5eb0b2=!0x1,toJSON:_0x177403=!0x1}={}){const _0x269ae9=[];for(const _0x4112a2 of this[_0x7e0b('0x36')][_0x7e0b('0xe7')]())_0x5eb0b2&&!_0x4112a2[_0x7e0b('0xb7')]||_0x269ae9[_0x7e0b('0x70')](_0x4112a2);return _0x177403?_0x269ae9[_0x7e0b('0xcd')](_0x5742f6=>_0x5742f6[_0x7e0b('0x6d')]()):_0x269ae9;}[_0x7e0b('0xfc')](_0x295ae9){const _0x13074f=this[_0x7e0b('0x36')]['get'](_0x295ae9);if(!_0x13074f)throw new _0x58fb70(_0x7e0b('0x13e'),this);return _0x13074f;}['hasSuggestion'](_0x3e6869){return this[_0x7e0b('0x36')][_0x7e0b('0xdf')](_0x3e6869);}[_0x7e0b('0xe1')](_0x59d7a4){const {authorId:_0x33b11f,id:_0x24b98b,attributes:_0x4d5cc6}=_0x59d7a4,[_0x5e7706,_0x572aaf]=_0x59d7a4[_0x7e0b('0xee')][_0x7e0b('0xc4')](':'),_0x26c2a5=this[_0x7e0b('0x36')]['get'](_0x24b98b)||this[_0x7e0b('0x10d')](_0x5e7706,_0x572aaf,_0x24b98b,_0x33b11f,_0x4d5cc6);if(this[_0x7e0b('0x9c')](_0x26c2a5),this[_0x7e0b('0x46')](_0x26c2a5,_0x5e7706,_0x572aaf||null,_0x33b11f),_0x26c2a5[_0x7e0b('0x43')]=_0x59d7a4['createdAt'],_0x4d5cc6&&_0x4d5cc6[_0x7e0b('0x110')]){const _0x50ba99=_0x4d5cc6['@external'],_0x4b227c=this['_getExternalAuthor'](_0x50ba99[_0x7e0b('0x8c')]);_0x26c2a5[_0x7e0b('0xf6')]=_0x50ba99[_0x7e0b('0x43')],_0x26c2a5[_0x7e0b('0xcf')]=_0x4b227c,_0x26c2a5[_0x7e0b('0x7f')]=!0x0;}else _0x26c2a5[_0x7e0b('0xf6')]=_0x59d7a4[_0x7e0b('0x43')];switch(_0x59d7a4[_0x7e0b('0xd2')]&&(_0x26c2a5[_0x7e0b('0xd2')]=_0x59d7a4[_0x7e0b('0xd2')]),_0x59d7a4['attributes']&&(_0x26c2a5['attributes']=_0x59d7a4[_0x7e0b('0x2b')]),this['_adapter']&&this[_0x7e0b('0xa8')]['addSuggestion']||(_0x26c2a5[_0x7e0b('0xb0')]=!0x0),this['_suggestionState']['get'](_0x26c2a5)){case _0x7e0b('0x0'):this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0x138'));break;case _0x7e0b('0xb5'):_0x26c2a5[_0x7e0b('0xb7')]?(this['_suggestionState'][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0x45')),this[_0x7e0b('0x8e')](_0x7e0b('0x66'),_0x26c2a5)):this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0xf9'));}return _0x26c2a5;}[_0x7e0b('0xb3')](_0x89a8f0){this[_0x7e0b('0xb8')](()=>{this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const _0x19c168 of _0x89a8f0[_0x7e0b('0x140')]())_0x19c168[_0x7e0b('0xf4')]();});});}[_0x7e0b('0xf3')](_0x111c46){this[_0x7e0b('0xb8')](()=>{this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const _0x5692de of _0x111c46[_0x7e0b('0x140')]())_0x5692de['discard']();});});}[_0x7e0b('0x10a')](_0x24f15b,_0x17e2c0){const _0x5e0a72=this[_0x7e0b('0x6')][_0x7e0b('0xc2')][_0x7e0b('0xd3')](_0x24f15b);if(!_0x5e0a72)throw new _0x58fb70(_0x7e0b('0x8'),this,{'commandName':_0x24f15b});this[_0x7e0b('0x102')][_0x7e0b('0xac')](_0x5e0a72),_0x17e2c0&&_0x5e0a72['on']('execute',(_0x242d50,_0x3d5e4b)=>{this[_0x7e0b('0x130')]['value']&&(this[_0x7e0b('0x75')]||_0x3d5e4b[_0x7e0b('0xbe')]>0x0&&_0x3d5e4b[_0x3d5e4b[_0x7e0b('0xbe')]-0x1]&&_0x3d5e4b[_0x3d5e4b[_0x7e0b('0xbe')]-0x1][_0x7e0b('0xb8')]||(_0x17e2c0((..._0x4f6dde)=>_0x5e0a72[_0x7e0b('0x121')](..._0x4f6dde,{'forceDefaultExecution':!0x0}),..._0x3d5e4b),_0x242d50['stop']()));},{'priority':'high'});}[_0x7e0b('0xb8')](_0x4a43db){let _0x2adcbc,_0x2af685;const _0x4fe3d0=this[_0x7e0b('0x75')];this[_0x7e0b('0x75')]=!0x0;try{_0x2adcbc=_0x4a43db();}catch(_0x1d71aa){_0x2af685=_0x1d71aa;}return _0x4fe3d0||(this[_0x7e0b('0x75')]=!0x1),_0x2af685&&_0x58fb70['rethrowUnexpectedError'](_0x2af685,this),_0x2adcbc;}[_0x7e0b('0xfd')](_0xca550c,_0xb5c730=null,_0x1635e5={}){if(_0xca550c['isCollapsed'])return null;const _0x3b52bb=this['editor'][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'];for(const {suggestion:_0x256682,meta:_0xf6e4f9}of this[_0x7e0b('0xd8')](_0xca550c,_0x7e0b('0xc')))if(_0xf6e4f9[_0x7e0b('0x2a')]){if(!_0xf6e4f9['isNextTo']){if(!this[_0x7e0b('0x42')]&&_0xf6e4f9[_0x7e0b('0x6f')])continue;return _0x256682;}if(_0xb5c730==_0x256682[_0x7e0b('0x52')]){const _0x64c672=_0x256682[_0x7e0b('0xd5')]();return _0x64c672['start']['isEqual'](_0xca550c['end'])?this[_0x7e0b('0x89')](_0x256682,this['_model'][_0x7e0b('0x51')](_0xca550c['start'],_0x64c672[_0x7e0b('0x2f')])):this['_setSuggestionRange'](_0x256682,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x64c672[_0x7e0b('0x88')],_0xca550c[_0x7e0b('0x2f')])),_0x256682;}}const _0x31a99f=_0x1862e6(),_0x3b169d=_0x3b52bb['id'],_0x5b41c0=_0xb5c730?_0x7e0b('0x19')+_0xb5c730:_0x7e0b('0xc'),_0x1cfc09=this[_0x7e0b('0x11a')]({'id':_0x31a99f,'type':_0x5b41c0,'createdAt':new Date(),'authorId':_0x3b169d,'attributes':_0x1635e5});return this[_0x7e0b('0x49')](_0x5b41c0,_0x31a99f,_0x3b169d,_0xca550c),_0x1cfc09;}[_0x7e0b('0x13a')](_0x2bb7ab,_0x134322=_0x7e0b('0x48'),_0x4755fe={}){const _0x1fbdf3=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'],_0xb7fad2=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('insertion',_0x134322,_0x7e0b('0xec'));for(const _0x31f79d of this[_0x7e0b('0x7')]())if(_0x31f79d['author']['id']==_0x1fbdf3['id']&&_0x7e0b('0xc')==_0x31f79d[_0x7e0b('0xee')]&&_0x31f79d[_0x7e0b('0x52')]==_0x134322&&(_0xb7fad2(_0x31f79d[_0x7e0b('0x142')](),_0x2bb7ab)||_0xb7fad2(_0x2bb7ab,_0x31f79d[_0x7e0b('0x142')]()))){for(const _0x5025a5 of _0x2bb7ab)_0x31f79d[_0x7e0b('0x18')](_0x5025a5);return _0x31f79d;}if(this['_mergeNestedSuggestions'])for(const _0x59aef7 of _0x2bb7ab)for(const {suggestion:_0x3a53b7,meta:_0x4e4ece}of this['_findSuggestions'](_0x59aef7,_0x7e0b('0xc'))){if(!_0x4e4ece[_0x7e0b('0x2a')])continue;let _0x2c651b=!0x0;for(const _0x427839 of _0x3a53b7[_0x7e0b('0x142')]())for(const _0x42a68d of _0x2bb7ab)if(!_0x427839[_0x7e0b('0x116')](_0x42a68d)){_0x2c651b=!0x1;break;}if(_0x2c651b)return _0x3a53b7;}const _0x4085b0=_0x1862e6(),_0xd6650=_0x1fbdf3['id'],_0x399b98=_0x7e0b('0x19')+_0x134322,_0x14321d=this[_0x7e0b('0x11a')]({'id':_0x4085b0,'type':_0x399b98,'createdAt':new Date(),'authorId':_0xd6650,'attributes':_0x4755fe});for(const _0x561506 of _0x2bb7ab)this['_addSuggestionMarker'](_0x399b98,_0x4085b0,_0xd6650,_0x561506,_0x232d62[_0x7e0b('0x8f')]());return _0x14321d;}[_0x7e0b('0x22')](_0x1c5c15,_0x1c071c,_0x49f541=null,_0x60eb4a={}){if(_0x49f541=_0x49f541||$t(_0x1c071c),_0x1c5c15[_0x7e0b('0x1c')])return null;if(_0x7e0b('0x7a')===this[_0x7e0b('0x82')]){const _0x1d97d1=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0xad'),_0x49f541,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x1d97d1([_0x1c5c15],_0x1c071c,_0x60eb4a)),null;}const _0x4d684a=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')['me'],_0x1bb58f=[];if('always'!==this[_0x7e0b('0x82')])for(const {suggestion:_0x402948,meta:_0x93e36e}of this['_findSuggestions'](_0x1c5c15,_0x7e0b('0xc')))_0x93e36e['isOwn']&&!_0x93e36e['isInsideObject']&&_0x1bb58f[_0x7e0b('0x70')](..._0x402948[_0x7e0b('0x142')]());const _0x1e8fa9=function(_0x51835e,_0x46c69e){const _0x314a8f=[];for(const _0x1a1b0b of _0x46c69e){const _0x1733e0=_0x51835e[_0x7e0b('0x137')](_0x1a1b0b);_0x1733e0&&_0x314a8f[_0x7e0b('0x70')](_0x1733e0);}return _0x314a8f;}(_0x1c5c15,_0x1bb58f),_0x54ac21=function(_0x499b44,_0x4453e3){const _0x1c1d17=[_0x499b44];for(const _0x4ecdd8 of _0x4453e3){let _0xbca074=0x0;for(;_0xbca074<_0x1c1d17[_0x7e0b('0xbe')];){const _0x3147f8=_0x1c1d17[_0xbca074][_0x7e0b('0x11e')](_0x4ecdd8);_0x1c1d17['splice'](_0xbca074,0x1,..._0x3147f8),_0xbca074+=_0x3147f8['length'];}}return _0x1c1d17;}(_0x1c5c15,_0x1bb58f);_0x1e8fa9[_0x7e0b('0xbe')]&&this[_0x7e0b('0xcc')]['change'](()=>{for(const _0x56494a of _0x1e8fa9){const _0xa401ca=this['_suggestionFactory'][_0x7e0b('0xe4')]('formatInline',_0x49f541,'accept');this[_0x7e0b('0xb8')](()=>_0xa401ca([_0x56494a],_0x1c071c,_0x60eb4a));}});for(const _0x38ec93 of _0x54ac21){let _0x3b6bda=null,_0x58533e=_0x38ec93[_0x7e0b('0x88')],_0x350aa0=_0x38ec93['end'];for(const {suggestion:_0x4ce2f7,meta:_0x40a755}of this[_0x7e0b('0xd8')](_0x38ec93,'formatInline')){if(!_0x40a755[_0x7e0b('0x2a')])continue;if(_0x4ce2f7[_0x7e0b('0x52')]!=_0x49f541)continue;const _0x4c2e34=_0x4ce2f7[_0x7e0b('0xd5')]();if(_0x4c2e34[_0x7e0b('0x116')](_0x38ec93,!0x0))return null;_0x58533e=_0x58533e[_0x7e0b('0x20')](_0x4c2e34[_0x7e0b('0x88')])?_0x58533e:_0x4c2e34['start'],_0x350aa0=_0x350aa0[_0x7e0b('0x8d')](_0x4c2e34['end'])?_0x350aa0:_0x4c2e34['end'],_0x3b6bda?_0x4c2e34[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x3b6bda['getFirstRange']()[_0x7e0b('0x88')])?(_0x3b6bda[_0x7e0b('0xc3')](),_0x3b6bda=_0x4ce2f7):_0x4ce2f7[_0x7e0b('0xc3')]():_0x3b6bda=_0x4ce2f7;}const _0x5b8d7b=this[_0x7e0b('0xcc')]['createRange'](_0x58533e,_0x350aa0);if(_0x3b6bda)this[_0x7e0b('0x89')](_0x3b6bda,_0x5b8d7b);else{const _0x1e745c=_0x1862e6(),_0x5b9080=_0x4d684a['id'];this['_setSuggestionData']({'id':_0x1e745c,'type':_0x7e0b('0x11b')+_0x49f541,'data':_0x1c071c,'createdAt':new Date(),'authorId':_0x5b9080,'attributes':_0x60eb4a}),this[_0x7e0b('0x49')](_0x7e0b('0x11b')+_0x49f541,_0x1e745c,_0x5b9080,_0x5b8d7b);}}return null;}['markBlockFormat'](_0x36f9b7,_0x2364ea,_0x279a07=[],_0x447b4e=null,_0x201840={}){_0x2364ea[_0x7e0b('0x21')]||(_0x2364ea[_0x7e0b('0x21')]=_0x2364ea['commandName']),_0x2364ea[_0x7e0b('0x125')]=_0x36f9b7['is'](_0x7e0b('0x37')),_0x447b4e=_0x447b4e||$t(_0x2364ea);const _0x311dbe=_0x279a07['map'](_0x36ffcd=>Rt(_0x36ffcd,this['_model'])),_0x303bad=_0x36f9b7['is'](_0x7e0b('0x37'))?_0x36f9b7:Rt(_0x36f9b7,this[_0x7e0b('0xcc')]);if(_0x7e0b('0x7a')===this[_0x7e0b('0x82')]){const _0x472997=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x447b4e,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x472997([_0x303bad],_0x2364ea,_0x201840)),null;}_0x311dbe['push'](_0x303bad);let _0x547e44=!0x0;for(const _0x1e9b28 of _0x311dbe)if(!this[_0x7e0b('0xbd')](_0x1e9b28)){_0x547e44=!0x1;break;}if(_0x547e44&&_0x7e0b('0x9a')!==this[_0x7e0b('0x82')]){const _0x5df665=this['_suggestionFactory'][_0x7e0b('0xe4')](_0x7e0b('0x84'),_0x447b4e,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x5df665([_0x303bad],_0x2364ea,_0x201840)),null;}let _0x3a01c9=null,_0x2d7d26=_0x303bad['start'],_0x10ff75=_0x303bad[_0x7e0b('0x2f')];for(const {suggestion:_0x3ac22f,meta:_0x51f309}of this[_0x7e0b('0xd8')](_0x303bad,_0x7e0b('0x84'))){if(!_0x51f309[_0x7e0b('0x2a')]||_0x51f309[_0x7e0b('0xf5')]||_0x51f309[_0x7e0b('0x6f')]||_0x51f309[_0x7e0b('0x3c')])continue;if(_0x3ac22f[_0x7e0b('0xd2')][_0x7e0b('0x21')]!=_0x2364ea[_0x7e0b('0x21')])continue;const _0x2e0ed9=_0x3ac22f[_0x7e0b('0xd5')]();if(_0x3ac22f['subType']==_0x447b4e){if(_0x2e0ed9[_0x7e0b('0x116')](_0x303bad,!0x0))return null;_0x2d7d26=_0x2d7d26[_0x7e0b('0x20')](_0x2e0ed9[_0x7e0b('0x88')])?_0x2d7d26:_0x2e0ed9['start'],_0x10ff75=_0x10ff75[_0x7e0b('0x8d')](_0x2e0ed9[_0x7e0b('0x2f')])?_0x10ff75:_0x2e0ed9[_0x7e0b('0x2f')],_0x3a01c9?_0x2e0ed9[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x3a01c9[_0x7e0b('0xd5')]()['start'])?(_0x3a01c9[_0x7e0b('0xc3')](),_0x3a01c9=_0x3ac22f):_0x3ac22f[_0x7e0b('0xc3')]():_0x3a01c9=_0x3ac22f;}else{const _0x2bc298=_0x303bad[_0x7e0b('0x137')](_0x2e0ed9);this[_0x7e0b('0x34')](_0x3ac22f,_0x2bc298);}}const _0x45a94a=this[_0x7e0b('0x6')]['plugins'][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'],_0x1288fa=_0x1862e6(),_0x3ab646=_0x45a94a['id'];if(_0x3a01c9)return this[_0x7e0b('0x89')](_0x3a01c9,this['_model'][_0x7e0b('0x51')](_0x2d7d26,_0x10ff75)),_0x3a01c9;{const _0x26f148=this[_0x7e0b('0x11a')]({'id':_0x1288fa,'type':_0x7e0b('0x50')+_0x447b4e,'data':_0x2364ea,'createdAt':new Date(),'authorId':_0x3ab646,'attributes':_0x201840});return this['_addSuggestionMarker'](_0x7e0b('0x50')+_0x447b4e,_0x1288fa,_0x3ab646,this[_0x7e0b('0xcc')]['createRange'](_0x2d7d26,_0x10ff75)),_0x26f148;}}[_0x7e0b('0x63')](_0x46e1c6,_0x3e5e73,_0x4150fe=[],_0x6e4355=null,_0x3c12e4={}){_0x3e5e73[_0x7e0b('0x21')]||(_0x3e5e73[_0x7e0b('0x21')]=_0x3e5e73[_0x7e0b('0x13b')]);const _0x2de93c=_0x46e1c6[0x0];_0x3e5e73['multipleBlocks']=_0x2de93c['is'](_0x7e0b('0x37')),_0x6e4355=_0x6e4355||$t(_0x3e5e73);const _0xe10ca=_0x4150fe[_0x7e0b('0xcd')](_0x150e14=>Rt(_0x150e14,this[_0x7e0b('0xcc')])),_0x2eba05=_0x2de93c['is'](_0x7e0b('0x37'))?_0x46e1c6:_0x46e1c6[_0x7e0b('0xcd')](_0x1dd816=>Rt(_0x1dd816,this['_model']));if(_0x7e0b('0x7a')===this['_trackFormatChanges']){const _0xed68c3=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x6e4355,'accept');return this[_0x7e0b('0xb8')](()=>_0xed68c3(_0x2eba05,_0x3e5e73,_0x3c12e4)),null;}_0xe10ca[_0x7e0b('0x70')](..._0x2eba05);let _0x3ab87a=!0x0;for(const _0x4a0079 of _0xe10ca)if(!this[_0x7e0b('0xbd')](_0x4a0079)){_0x3ab87a=!0x1;break;}if(_0x3ab87a&&_0x7e0b('0x9a')!==this['_trackFormatChanges']){const _0x228809=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x6e4355,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x228809(_0x2eba05,_0x3e5e73,_0x3c12e4)),null;}const _0x4f5383=this['editor'][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9'))['me'];for(const _0x48a5a1 of this['getSuggestions']()){if(_0x48a5a1['author']['id']!=_0x4f5383['id'])continue;if(_0x7e0b('0x84')!=_0x48a5a1[_0x7e0b('0xee')]||_0x48a5a1[_0x7e0b('0xd2')]['formatGroupId']!=_0x3e5e73[_0x7e0b('0x21')])continue;const _0x3a542c=_0x48a5a1[_0x7e0b('0x52')]==_0x6e4355;for(let _0xe60c5e=0x0;_0xe60c5e<_0x2eba05['length'];_0xe60c5e++){const _0x2b99b5=_0x2eba05[_0xe60c5e];for(const _0x1b9cee of _0x48a5a1[_0x7e0b('0xa2')]()){const _0x446ff6=_0x1b9cee[_0x7e0b('0x5d')]();if(_0x2b99b5[_0x7e0b('0xa4')](_0x446ff6)){_0x3a542c?(_0x2eba05[_0x7e0b('0xeb')](_0xe60c5e,0x1),_0xe60c5e--):_0x48a5a1[_0x7e0b('0x113')](_0x1b9cee['name']);break;}}}}if(0x0==_0x2eba05[_0x7e0b('0xbe')])return null;const _0x5d5abc=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0x84'),_0x6e4355,_0x7e0b('0xec'));for(const _0x310c95 of this['getSuggestions']())if(_0x310c95[_0x7e0b('0xcf')]['id']==_0x4f5383['id']&&_0x7e0b('0x84')==_0x310c95[_0x7e0b('0xee')]&&_0x310c95[_0x7e0b('0xd2')][_0x7e0b('0x21')]==_0x3e5e73[_0x7e0b('0x21')]&&_0x310c95[_0x7e0b('0x52')]==_0x6e4355&&(_0x5d5abc(_0x310c95[_0x7e0b('0x142')](),_0x2eba05)||_0x5d5abc(_0x2eba05,_0x310c95[_0x7e0b('0x142')]()))){for(const _0x12c45f of _0x2eba05)_0x310c95['addRange'](_0x12c45f);return _0x310c95;}const _0x27953b=_0x1862e6(),_0x11e11f=_0x4f5383['id'],_0xaa4480=_0x7e0b('0x50')+_0x6e4355,_0x519e8a=this['_setSuggestionData']({'id':_0x27953b,'type':_0xaa4480,'data':_0x3e5e73,'createdAt':new Date(),'authorId':_0x11e11f,'attributes':_0x3c12e4});for(const _0xb1f0a9 of _0x2eba05)this['_addSuggestionMarker'](_0xaa4480,_0x27953b,_0x11e11f,_0xb1f0a9,_0x232d62[_0x7e0b('0x8f')]());return _0x519e8a;}[_0x7e0b('0xd')](_0x299b18,_0x3d1fcd=null,_0xc042cb={}){if(_0x299b18[_0x7e0b('0x1c')])return null;const _0x23065f=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')['me'],_0x46c732=new _0x491aa7(_0x299b18[_0x7e0b('0x88')],_0x299b18[_0x7e0b('0x2f')]);for(const {suggestion:_0x1838be,meta:_0x25cd15}of this[_0x7e0b('0xd8')](_0x46c732,_0x7e0b('0xc')))if(_0x25cd15[_0x7e0b('0x2a')]&&!_0x25cd15[_0x7e0b('0xf5')]){if(_0x1838be[_0x7e0b('0x4b')]){const _0x20bad6=_0x1838be['getRanges']()[_0x7e0b('0x4a')](_0x5130a8=>_0x7e0b('0xab')!=_0x5130a8[_0x7e0b('0x5f')][_0x7e0b('0x4d')]);_0x20bad6[_0x7e0b('0x93')](_0x508db2=>_0x46c732[_0x7e0b('0x116')](_0x508db2,!0x0))&&_0x1838be[_0x7e0b('0x139')]();if(_0x20bad6['some'](_0x4a6d1b=>_0x4a6d1b[_0x7e0b('0x116')](_0x46c732,!0x0))){const _0x42f404=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('deletion',_0x3d1fcd,_0x7e0b('0xf4'));return this['forceDefaultExecution'](()=>_0x42f404([_0x46c732],null,_0xc042cb)),null;}}else{const _0x263c37=_0x46c732[_0x7e0b('0x137')](_0x1838be['getFirstRange']());null!==_0x263c37&&_0x1838be[_0x7e0b('0x111')]([_0x263c37],null,_0xc042cb);}}if(_0x46c732[_0x7e0b('0x144')](),_0x46c732['isCollapsed']||_0x7e0b('0xab')==_0x46c732[_0x7e0b('0x5f')][_0x7e0b('0x4d')])return null;let _0x650384=null,_0x47e24e=_0x46c732['start'],_0x4b275e=_0x46c732[_0x7e0b('0x2f')];for(const {suggestion:_0x15cfd8,meta:_0x293a5d}of this[_0x7e0b('0xd8')](_0x46c732,'deletion'))if(_0x293a5d[_0x7e0b('0x2a')]){if(_0x15cfd8[_0x7e0b('0x4b')]&&this[_0x7e0b('0x42')]){let _0x3d5cd8=!0x0;for(const _0x453086 of _0x15cfd8[_0x7e0b('0x142')]()){if(_0x453086[_0x7e0b('0x116')](_0x46c732,!0x0))return _0x15cfd8;_0x46c732[_0x7e0b('0x116')](_0x453086)||(_0x3d5cd8=!0x1);}_0x3d5cd8&&_0x15cfd8[_0x7e0b('0x139')]();}else{const _0x5b23d4=_0x15cfd8[_0x7e0b('0xd5')]();if(_0x5b23d4[_0x7e0b('0x116')](_0x46c732,!0x0)){if(!this[_0x7e0b('0x42')]&&_0x293a5d[_0x7e0b('0x6f')])continue;return _0x15cfd8;}_0x47e24e=_0x47e24e[_0x7e0b('0x20')](_0x5b23d4[_0x7e0b('0x88')])?_0x47e24e:_0x5b23d4[_0x7e0b('0x88')],_0x4b275e=_0x4b275e[_0x7e0b('0x8d')](_0x5b23d4[_0x7e0b('0x2f')])?_0x4b275e:_0x5b23d4[_0x7e0b('0x2f')],_0x650384?_0x5b23d4[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x650384[_0x7e0b('0xd5')]()['start'])?(_0x650384['removeMarkers'](),_0x650384=_0x15cfd8):_0x15cfd8[_0x7e0b('0xc3')]():_0x650384=_0x15cfd8;}}if(_0x650384)return this['_setSuggestionRange'](_0x650384,this[_0x7e0b('0xcc')]['createRange'](_0x47e24e,_0x4b275e)),_0x650384;{const _0x5dccee=_0x1862e6(),_0x399c8e=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x47e24e,_0x4b275e),_0x36abf5=_0x23065f['id'],_0x359fca=_0x3d1fcd?_0x7e0b('0x1b')+_0x3d1fcd:_0x7e0b('0x124'),_0x28af88=this[_0x7e0b('0x11a')]({'id':_0x5dccee,'type':_0x359fca,'createdAt':new Date(),'authorId':_0x36abf5,'attributes':_0xc042cb});return this[_0x7e0b('0x49')](_0x359fca,_0x5dccee,_0x36abf5,_0x399c8e),_0x28af88;}}[_0x7e0b('0x44')](_0x264db5,_0x35c65b=_0x7e0b('0x48'),_0x5a1319={}){const _0x25f478=this[_0x7e0b('0x6')][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9'))['me'],_0x30c39f=_0x264db5[_0x7e0b('0xcd')](_0x35ed13=>new _0x491aa7(_0x35ed13[_0x7e0b('0x88')],_0x35ed13[_0x7e0b('0x2f')])),_0xbabaae=new Set();for(const _0x54a1d8 of _0x30c39f)for(const {suggestion:_0x33a635,meta:_0x259d26}of this[_0x7e0b('0xd8')](_0x54a1d8,_0x7e0b('0xc')))_0x259d26[_0x7e0b('0x2a')]&&!_0x259d26[_0x7e0b('0xf5')]&&_0xbabaae[_0x7e0b('0xac')](_0x33a635);for(const _0x35cb04 of _0xbabaae)if(_0x35cb04[_0x7e0b('0x4b')]){const _0x28d7ba=_0x35cb04[_0x7e0b('0x142')]();(!_0x35cb04['attributes']||!_0x35cb04[_0x7e0b('0x2b')][_0x7e0b('0x13')])&&(_0x28d7ba['every'](_0x3ca08a=>_0x30c39f[_0x7e0b('0x95')](_0x3bcbc3=>_0x3bcbc3['containsRange'](_0x3ca08a,!0x0)))&&_0x35cb04[_0x7e0b('0x139')]());if(_0x30c39f[_0x7e0b('0x93')](_0x865c5=>_0x28d7ba[_0x7e0b('0x95')](_0x27c03c=>_0x27c03c[_0x7e0b('0x116')](_0x865c5,!0x0)))){const _0x2089ca=this['_suggestionFactory']['getSuggestionCallback'](_0x7e0b('0x124'),_0x35c65b,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x2089ca(_0x264db5,null,_0x5a1319)),null;}}else{const _0x394533=_0x35cb04['getFirstRange']();_0x30c39f[_0x7e0b('0x95')](_0x4bc796=>_0x4bc796[_0x7e0b('0x116')](_0x394533,!0x0))&&_0x35cb04[_0x7e0b('0x139')]();if(_0x30c39f['every'](_0x1b1c32=>_0x394533['containsRange'](_0x1b1c32,!0x0))){const _0x53f96d=this[_0x7e0b('0x57')]['getSuggestionCallback']('deletion',_0x35c65b,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x53f96d(_0x30c39f,null,_0x5a1319)),null;}}const _0x8e0b2b=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0x124'),_0x35c65b,_0x7e0b('0xec'));let _0x1db33f=null;for(const _0x42ee77 of this['getSuggestions']())if(_0x42ee77[_0x7e0b('0xcf')]['id']==_0x25f478['id']&&_0x42ee77[_0x7e0b('0xb7')]&&_0x7e0b('0x124')==_0x42ee77['type']&&_0x42ee77[_0x7e0b('0x52')]==_0x35c65b&&(_0x8e0b2b(_0x42ee77['getRanges'](),_0x30c39f)||_0x8e0b2b(_0x30c39f,_0x42ee77[_0x7e0b('0x142')]()))){if(_0x1db33f){if(_0x42ee77['commentThread']&&_0x42ee77[_0x7e0b('0x112')][_0x7e0b('0xbe')])continue;for(const _0x443fac of _0x42ee77['getRanges']())_0x1db33f[_0x7e0b('0x11d')](_0x443fac)||_0x1db33f[_0x7e0b('0x18')](_0x443fac);_0x42ee77[_0x7e0b('0xc3')]();}else{_0x1db33f=_0x42ee77;for(const _0x74112 of _0x30c39f)_0x42ee77[_0x7e0b('0x11d')](_0x74112)||_0x42ee77[_0x7e0b('0x18')](_0x74112);}}if(_0x1db33f)return _0x1db33f;_0xbabaae[_0x7e0b('0x38')]();for(const _0x17495c of _0x30c39f)for(const {suggestion:_0x20612d,meta:_0x507167}of this['_findSuggestions'](_0x17495c,_0x7e0b('0x124')))_0x507167[_0x7e0b('0x2a')]&&_0xbabaae[_0x7e0b('0xac')](_0x20612d);for(const _0x13c6b6 of _0xbabaae){const _0xb20573=_0x13c6b6[_0x7e0b('0x142')]();if(!_0x5a1319||!_0x5a1319[_0x7e0b('0x13')]){if(_0x30c39f[_0x7e0b('0x93')](_0x52207a=>_0xb20573[_0x7e0b('0x95')](_0x395e33=>_0x395e33['containsRange'](_0x52207a,!0x0))))return _0x13c6b6;}(!_0x13c6b6['attributes']||!_0x13c6b6[_0x7e0b('0x2b')][_0x7e0b('0x13')])&&(_0xb20573[_0x7e0b('0x93')](_0x1d24bc=>_0x30c39f[_0x7e0b('0x95')](_0x47fc67=>_0x47fc67[_0x7e0b('0x116')](_0x1d24bc,!0x0)))&&_0x13c6b6[_0x7e0b('0x139')]());}const _0x3ae1ed=_0x1862e6(),_0x2d0c2c=_0x25f478['id'],_0x343966='deletion:'+_0x35c65b,_0x3014ad=this[_0x7e0b('0x11a')]({'id':_0x3ae1ed,'type':_0x343966,'createdAt':new Date(),'authorId':_0x2d0c2c,'attributes':_0x5a1319});for(const _0x87c642 of _0x30c39f)_0x87c642[_0x7e0b('0x144')](),_0x87c642[_0x7e0b('0x1c')]||_0x7e0b('0xab')==_0x87c642[_0x7e0b('0x5f')]['rootName']||this[_0x7e0b('0x49')](_0x343966,_0x3ae1ed,_0x2d0c2c,_0x87c642,_0x232d62['getMultiRangeId']());return _0x3014ad;}[_0x7e0b('0x89')](_0x277bcb,_0x5ec64e){const _0xdda608=_0x277bcb[_0x7e0b('0x9e')]();this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0x17ec8a=>{_0x17ec8a[_0x7e0b('0x12f')](_0xdda608,{'range':_0x5ec64e});});}[_0x7e0b('0x9c')](_0x320c47){const _0x279c5a=_0x320c47['id'],_0x7054d5=this[_0x7e0b('0x6')]['config'][_0x7e0b('0xd3')]('collaboration.channelId');this[_0x7e0b('0xb2')][_0x7e0b('0x98')](_0x279c5a)||this[_0x7e0b('0xb2')][_0x7e0b('0x7e')]({'channelId':_0x7054d5,'threadId':_0x279c5a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4dd02e=this[_0x7e0b('0xb2')][_0x7e0b('0x1a')](_0x279c5a);_0x4dd02e[_0x7e0b('0xef')](_0x7e0b('0xb1')),_0x4dd02e['isRemovable']=!0x1,_0x320c47[_0x7e0b('0x112')]=_0x4dd02e;}[_0x7e0b('0x46')](_0xa63780,_0x56887d,_0x32600f,_0x2753da){if(_0xa63780[_0x7e0b('0xee')]!=_0x56887d||_0xa63780['subType']!=_0x32600f||_0xa63780[_0x7e0b('0x3f')]['id']!=_0x2753da)throw this[_0x7e0b('0x6')][_0x7e0b('0xe0')](_0x7e0b('0xdb')),new _0x58fb70('track-changes-suggestion-data-mismatch',this);}[_0x7e0b('0x34')](_0x40532b,_0x22123c){const _0x335a3e=_0x40532b[_0x7e0b('0xd5')]();if(_0x22123c[_0x7e0b('0xa4')](_0x335a3e))_0x40532b[_0x7e0b('0xc3')]();else{if(_0x335a3e['containsRange'](_0x22123c)){const _0x76ec58=this[_0x7e0b('0xcc')]['createPositionAt'](_0x22123c[_0x7e0b('0x88')][_0x7e0b('0x65')],_0x7e0b('0x2f'));this['_setSuggestionRange'](_0x40532b,this['_model'][_0x7e0b('0x51')](_0x335a3e[_0x7e0b('0x88')],_0x76ec58));const _0x2cb229=_0x1862e6(),_0x5654c8=_0x40532b[_0x7e0b('0x3f')]['id'],_0x1a965e=_0x40532b[_0x7e0b('0xee')]+':'+_0x40532b[_0x7e0b('0x52')];this['_setSuggestionData']({'id':_0x2cb229,'type':_0x1a965e,'createdAt':new Date(),'authorId':_0x5654c8,'data':_0x40532b[_0x7e0b('0xd2')],'attributes':_0x40532b[_0x7e0b('0x2b')]});const _0xf3b54c=this[_0x7e0b('0xcc')][_0x7e0b('0xda')](_0x22123c[_0x7e0b('0x2f')][_0x7e0b('0x32')],_0x7e0b('0x5b')),_0x2d1199=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0xf3b54c,_0x335a3e[_0x7e0b('0x2f')]);this['_addSuggestionMarker'](_0x1a965e,_0x2cb229,_0x5654c8,_0x2d1199);}else{if(_0x335a3e[_0x7e0b('0xdc')](_0x22123c[_0x7e0b('0x88')])){const _0xedaf8c=this[_0x7e0b('0xcc')][_0x7e0b('0xda')](_0x22123c[_0x7e0b('0x88')][_0x7e0b('0x65')],_0x7e0b('0x2f'));this[_0x7e0b('0x89')](_0x40532b,this['_model'][_0x7e0b('0x51')](_0x335a3e[_0x7e0b('0x88')],_0xedaf8c));}else{const _0x455e20=this[_0x7e0b('0xcc')]['createPositionAt'](_0x22123c['end']['parent'],_0x7e0b('0x5b'));this[_0x7e0b('0x89')](_0x40532b,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x455e20,_0x335a3e['end']));}}}}[_0x7e0b('0xbd')](_0x5cb8a7){for(const {suggestion:_0xd79f82,meta:_0x128edb}of this[_0x7e0b('0xd8')](_0x5cb8a7,_0x7e0b('0xc'))){if(!_0x128edb['isOwn'])continue;const _0x4de765=_0xd79f82[_0x7e0b('0x142')]();for(const _0x3dcc9e of _0x4de765)if(!_0x5cb8a7[_0x7e0b('0x11e')](_0x3dcc9e)[_0x7e0b('0xbe')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x589c04){const _0x1863b2=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')[_0x7e0b('0xa3')](_0x589c04);if(!_0x1863b2)throw new _0x58fb70(_0x7e0b('0x5c'),this);return _0x1863b2;}['_getExternalAuthor'](_0x58818f){const _0x577637=this['editor'][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9')),_0x3cd3ff=_0x1685bc(_0x7e0b('0x23')+_0x58818f),_0x3973f5=_0x577637['getUser'](_0x3cd3ff);return _0x3973f5||_0x577637['addUser']({'id':_0x3cd3ff,'name':_0x58818f});}[_0x7e0b('0x10d')](_0x812417,_0x5e45c3,_0x260b29,_0x332367,_0x3f49c6){const _0x4d9246=this[_0x7e0b('0x1d')](_0x332367),_0x26358a=this[_0x7e0b('0x57')][_0x7e0b('0x71')](_0x812417,_0x5e45c3,_0x260b29,_0x4d9246,_0x3f49c6,_0x4aa897=>this[_0x7e0b('0xa0')](_0x260b29,{'attributes':_0x4aa897}));return this['listenTo'](_0x26358a,_0x7e0b('0xf4'),()=>{this['_updateSuggestionData'](_0x260b29,{'state':'accepted'});},{'priority':_0x7e0b('0x105')}),this[_0x7e0b('0xd7')](_0x26358a,_0x7e0b('0x139'),()=>{this[_0x7e0b('0xa0')](_0x260b29,{'state':_0x7e0b('0x132')});},{'priority':'high'}),this[_0x7e0b('0x36')][_0x7e0b('0x2c')](_0x260b29,_0x26358a),this['_suggestionState']['set'](_0x26358a,_0x7e0b('0x0')),_0x26358a;}[_0x7e0b('0xe6')](_0x32fd19){const _0x2c77f0=_0x32fd19['split'](':');return{'group':_0x2c77f0[0x0],'type':_0x2c77f0[0x1],'subType':_0x2c77f0[_0x7e0b('0xbe')]>=0x5?_0x2c77f0[0x2]:null,'id':_0x2c77f0[_0x7e0b('0xbe')]<0x5?_0x2c77f0[0x2]:_0x2c77f0[0x3],'authorId':_0x2c77f0[_0x7e0b('0xbe')]<0x5?_0x2c77f0[0x3]:_0x2c77f0[0x4],'markerCount':0x6==_0x2c77f0[_0x7e0b('0xbe')]?_0x2c77f0[0x5]:null};}['_breakSuggestionMarker'](_0x31b3f4,_0x5c9ab7,_0x5914f5){const _0x2ada24=_0x31b3f4[_0x7e0b('0xd5')](),_0x45039e=_0x2ada24[_0x7e0b('0x88')],_0x42807e=_0x2ada24[_0x7e0b('0x2f')];this[_0x7e0b('0x89')](_0x31b3f4,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x45039e,_0x5c9ab7));const _0x9c365b=_0x1862e6(),_0x5312d8=_0x31b3f4[_0x7e0b('0x3f')]['id'],_0x59a7ae=_0x31b3f4['type']+(_0x31b3f4[_0x7e0b('0x52')]?':'+_0x31b3f4['subType']:'');this[_0x7e0b('0x11a')]({'id':_0x9c365b,'type':_0x59a7ae,'createdAt':new Date(),'authorId':_0x5312d8,'originalSuggestionId':_0x31b3f4['id'],'attributes':_0x31b3f4[_0x7e0b('0x2b')],'data':_0x31b3f4['data']}),_0x7e0b('0x84')==_0x31b3f4[_0x7e0b('0xee')]&&(_0x5914f5=this['_model'][_0x7e0b('0x26')](_0x5914f5[_0x7e0b('0x32')])),this[_0x7e0b('0x49')](_0x59a7ae,_0x9c365b,_0x5312d8,this['_model'][_0x7e0b('0x51')](_0x5914f5,_0x42807e));}[_0x7e0b('0xd8')](_0x2503d5,_0x22187c=null){const _0x486438=[],_0x45aef1=this['_model']['schema'],_0x2ca04e=this[_0x7e0b('0x6')]['plugins'][_0x7e0b('0xd3')]('Users')['me'];for(const _0x16f974 of this[_0x7e0b('0x7')]())if(_0x16f974[_0x7e0b('0xb7')]&&(!_0x22187c||_0x16f974[_0x7e0b('0xee')]==_0x22187c))for(const _0x38d4e1 of _0x16f974[_0x7e0b('0x142')]()){const _0x2298aa=_0x2503d5[_0x7e0b('0x88')][_0x7e0b('0xa4')](_0x38d4e1[_0x7e0b('0x2f')])||_0x2503d5[_0x7e0b('0x2f')][_0x7e0b('0xa4')](_0x38d4e1[_0x7e0b('0x88')]);if(_0x2298aa||_0x2503d5['getIntersection'](_0x38d4e1)){const _0x4968ee=_0x2503d5['containsRange'](_0x38d4e1)&&Bt(_0x45aef1,_0x38d4e1[_0x7e0b('0x88')],_0x2503d5),_0x3ef930=_0x38d4e1[_0x7e0b('0x116')](_0x2503d5)&&Bt(_0x45aef1,_0x2503d5[_0x7e0b('0x88')],_0x38d4e1);_0x486438[_0x7e0b('0x70')]({'suggestion':_0x16f974,'meta':{'isOwn':_0x2ca04e==_0x16f974[_0x7e0b('0xcf')],'isNextTo':_0x2298aa,'isInsideObject':_0x4968ee,'containsRangeInObject':_0x3ef930}});break;}}return _0x486438;}['_addSuggestionMarker'](_0x1dba94,_0x54cec8,_0x195ff6,_0x4b22ac,_0x48761f){this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0x47979d=>{let _0x3a0465=_0x7e0b('0xce')+_0x1dba94+':'+_0x54cec8+':'+_0x195ff6;_0x48761f&&(_0x3a0465=_0x3a0465+':'+_0x48761f),_0x47979d['addMarker'](_0x3a0465,{'range':_0x4b22ac,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x7e0b('0x2e')](_0x47bf86){const _0x49b64e=_0x47bf86[_0x7e0b('0xf1')],_0x4cb72b=_0x47bf86[_0x7e0b('0xa9')];_0x47bf86[_0x7e0b('0xf1')]=null,null!=_0x49b64e&&(_0x49b64e[_0x7e0b('0xa9')]=null),_0x47bf86[_0x7e0b('0xa9')]=null,null!=_0x4cb72b&&(_0x4cb72b[_0x7e0b('0xf1')]=null),_0x7e0b('0x45')==this[_0x7e0b('0x87')]['get'](_0x47bf86)&&(this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x47bf86,'removed'),this[_0x7e0b('0x8e')](_0x7e0b('0x33'),_0x47bf86,_0x49b64e,_0x4cb72b));}[_0x7e0b('0x11a')](_0x366703){const _0x1bd044=_0x366703['id'],_0x38ce50=this[_0x7e0b('0xe1')](_0x366703);if(this[_0x7e0b('0xa8')]&&this[_0x7e0b('0xa8')][_0x7e0b('0x17')]){const _0x51a7db=this['editor'][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('PendingActions'),_0x5eb50d=_0x38ce50['hasComments'],_0x5c1c1c=_0x38ce50['subType']?_0x38ce50['type']+':'+_0x38ce50[_0x7e0b('0x52')]:_0x38ce50[_0x7e0b('0xee')],_0x455b9f=this[_0x7e0b('0x6')][_0x7e0b('0x134')],_0x32a96a=_0x51a7db[_0x7e0b('0xac')](_0x25f2c4(_0x455b9f,_0x7e0b('0x29'))),_0x1ada71={'id':_0x1bd044,'type':_0x5c1c1c,'hasComments':_0x5eb50d,'data':_0x366703['data']||null,'originalSuggestionId':_0x366703[_0x7e0b('0x60')]||null,'attributes':_0x38ce50['attributes']};this[_0x7e0b('0xa8')][_0x7e0b('0x17')](_0x1ada71)['then'](_0x3e3a8b=>{_0x38ce50[_0x7e0b('0xb0')]=!0x0,_0x51a7db[_0x7e0b('0x107')](_0x32a96a),_0x3e3a8b&&_0x3e3a8b[_0x7e0b('0x43')]&&(this['_suggestions'][_0x7e0b('0xd3')](_0x1bd044)[_0x7e0b('0x43')]=_0x3e3a8b[_0x7e0b('0x43')]);})[_0x7e0b('0x5a')](_0x2cf0a9=>{throw _0x2f4b48(_0x7e0b('0x10')),this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0x8a')]({'isUndoable':!0x1},()=>{_0x38ce50[_0x7e0b('0x139')]();}),_0x38ce50['stopListening'](),this[_0x7e0b('0x36')][_0x7e0b('0x15')](_0x38ce50['id']),this[_0x7e0b('0x87')][_0x7e0b('0x15')](_0x38ce50),_0x2cf0a9;});}return _0x38ce50;}['_updateSuggestionData'](_0x2b0e1d,_0x283c51){const _0x1d07bb=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x79')),_0x479a9e=this[_0x7e0b('0xfc')](_0x2b0e1d);if(this[_0x7e0b('0xa8')]&&this['_adapter'][_0x7e0b('0x131')]){if(_0x479a9e[_0x7e0b('0xb0')]){const _0x1024b0=_0x1d07bb['add'](_0x25f2c4(this[_0x7e0b('0x6')]['locale'],_0x7e0b('0x29')));this[_0x7e0b('0xa8')][_0x7e0b('0x131')](_0x2b0e1d,_0x283c51)[_0x7e0b('0xae')](()=>{_0x1d07bb['remove'](_0x1024b0);});}else _0x479a9e['on'](_0x7e0b('0x10c'),()=>{this['_updateSuggestionData'](_0x2b0e1d,_0x283c51);});}}[_0x7e0b('0x39')](_0x549c35){if(!this[_0x7e0b('0xa8')]||!this[_0x7e0b('0xa8')][_0x7e0b('0xfc')])throw new _0x58fb70(_0x7e0b('0x86'),this);return this[_0x7e0b('0xa8')]['getSuggestion'](_0x549c35);}['_handleNewSuggestionMarker'](_0x309d92){const {id:_0x74948f,type:_0x334e56,subType:_0x188c97,authorId:_0x7ddaf6}=this[_0x7e0b('0xe6')](_0x309d92),_0x5d46f2=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x74948f)||this[_0x7e0b('0x10d')](_0x334e56,_0x188c97,_0x74948f,_0x7ddaf6,{});switch(this[_0x7e0b('0x46')](_0x5d46f2,_0x334e56,_0x188c97,_0x7ddaf6),this[_0x7e0b('0x87')][_0x7e0b('0xd3')](_0x5d46f2)){case _0x7e0b('0x0'):this[_0x7e0b('0x39')](_0x74948f)[_0x7e0b('0xae')](_0x2bc9c2=>{let _0x54ab26=Promise[_0x7e0b('0x114')]();_0x2bc9c2[_0x7e0b('0xa7')]&&(_0x54ab26=this[_0x7e0b('0xb2')]['fetchCommentThread']({'channelId':this[_0x7e0b('0x6')][_0x7e0b('0x77')][_0x7e0b('0xd3')](_0x7e0b('0x11c')),'threadId':_0x74948f})),_0x54ab26[_0x7e0b('0xae')](()=>{this[_0x7e0b('0xe1')](_0x2bc9c2)['_saved']=!0x0;});}),this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x5d46f2,_0x7e0b('0xb5'));break;case _0x7e0b('0xf9'):this[_0x7e0b('0xa0')](_0x74948f,{'state':'open'});case _0x7e0b('0x138'):this[_0x7e0b('0x87')]['set'](_0x5d46f2,_0x7e0b('0x45')),this[_0x7e0b('0x8e')]('suggestionLoaded',_0x5d46f2);break;case _0x7e0b('0x45'):this[_0x7e0b('0x8e')](_0x7e0b('0xbb'),_0x5d46f2);}return _0x5d46f2[_0x7e0b('0xc9')](_0x309d92),_0x5d46f2;}[_0x7e0b('0xff')](_0x3cde14){const _0x547ed0=Array[_0x7e0b('0xa1')](_0x3cde14)[_0x7e0b('0x4a')](_0x7f6afb=>!_0x7f6afb[_0x7e0b('0x4b')]),_0x255e6b=this[_0x7e0b('0x7')]({'skipNotAttached':!0x0})[_0x7e0b('0x4a')](_0x433823=>!_0x433823[_0x7e0b('0x4b')]),_0x435280=_0x255e6b['filter'](_0x537a8d=>!_0x3cde14[_0x7e0b('0xdf')](_0x537a8d)),_0x96803f=new Map(_0x255e6b['map'](_0x14ca1f=>[_0x14ca1f,this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x14ca1f[_0x7e0b('0xee')],_0x14ca1f[_0x7e0b('0x52')],_0x7e0b('0x136'))])),_0x3d12e7=new Map(_0x255e6b['map'](_0x2d1eb5=>[_0x2d1eb5,_0x2d1eb5['getFirstRange']()])),_0x469c83=new Set(),_0x288ac0=new Set();for(let _0x5009a4=0x0;_0x5009a4<_0x547ed0[_0x7e0b('0xbe')];_0x5009a4++)_0x2529fd(_0x547ed0[_0x5009a4],_0x547ed0,_0x5009a4+0x1);for(let _0x10e7eb=0x0;_0x10e7eb<_0x547ed0[_0x7e0b('0xbe')];_0x10e7eb++)_0x2529fd(_0x547ed0[_0x10e7eb],_0x435280,0x0);for(let _0x1ee8e3=0x0;_0x1ee8e3<_0x547ed0[_0x7e0b('0xbe')];_0x1ee8e3++){const _0x2f5dd0=_0x547ed0[_0x1ee8e3];!_0x288ac0[_0x7e0b('0xdf')](_0x2f5dd0)&&_0x2f5dd0[_0x7e0b('0xf1')]&&(_0x2f5dd0[_0x7e0b('0xf1')]['next']===_0x2f5dd0&&(_0x2f5dd0['previous'][_0x7e0b('0xa9')]=null),_0x2f5dd0[_0x7e0b('0xf1')]=null),!_0x469c83[_0x7e0b('0xdf')](_0x2f5dd0)&&_0x2f5dd0[_0x7e0b('0xa9')]&&(_0x2f5dd0['next'][_0x7e0b('0xf1')]===_0x2f5dd0&&(_0x2f5dd0[_0x7e0b('0xa9')]['previous']=null),_0x2f5dd0[_0x7e0b('0xa9')]=null);}function _0x2529fd(_0xdaf3da,_0x525ae1,_0x2a83ff){for(let _0x446f80=_0x2a83ff;_0x446f80<_0x525ae1[_0x7e0b('0xbe')];_0x446f80++){const _0x308cc8=_0x55c8e3(_0xdaf3da,_0x525ae1[_0x446f80]);_0x308cc8&&(_0x308cc8[0x0][_0x7e0b('0xa9')]=_0x308cc8[0x1],_0x308cc8[0x1][_0x7e0b('0xf1')]=_0x308cc8[0x0],_0x469c83[_0x7e0b('0xac')](_0x308cc8[0x0]),_0x288ac0['add'](_0x308cc8[0x1]));}}function _0x55c8e3(_0x1d8a79,_0x31eb6c){if(_0x1d8a79[_0x7e0b('0xcf')]['id']!==_0x31eb6c[_0x7e0b('0xcf')]['id'])return null;const _0x1f6a7d=_0x96803f[_0x7e0b('0xd3')](_0x1d8a79)(_0x1d8a79,_0x31eb6c,_0x3d12e7[_0x7e0b('0xd3')](_0x1d8a79),_0x3d12e7['get'](_0x31eb6c));if(!_0x1f6a7d)return null;return _0x96803f[_0x7e0b('0xd3')](_0x31eb6c)(_0x1d8a79,_0x31eb6c,_0x3d12e7[_0x7e0b('0xd3')](_0x1d8a79),_0x3d12e7[_0x7e0b('0xd3')](_0x31eb6c))?_0x1f6a7d[0x1][_0x7e0b('0x112')]&&_0x1f6a7d[0x1][_0x7e0b('0x112')]['length']?null:_0x1f6a7d:null;}}[_0x7e0b('0x1')](_0x1f63a4){const _0x4e7561=Array[_0x7e0b('0xa1')](_0x1f63a4),_0x1ed4ab=this[_0x7e0b('0x7')]({'skipNotAttached':!0x0}),_0x1276d4=_0x1ed4ab[_0x7e0b('0x4a')](_0x88de27=>!_0x1f63a4['has'](_0x88de27)),_0x3aa887=new Map(_0x4e7561[_0x7e0b('0xcd')](_0x39253c=>[_0x39253c,this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x39253c[_0x7e0b('0xee')],_0x39253c[_0x7e0b('0x52')],'join')])),_0x993455=new Map(_0x1ed4ab[_0x7e0b('0xcd')](_0x306e60=>[_0x306e60,_0x306e60[_0x7e0b('0x142')]()]));for(let _0x5d8f41=0x0;_0x5d8f41<_0x4e7561[_0x7e0b('0xbe')];_0x5d8f41++){if(_0x34e6d8(this,_0x4e7561[_0x5d8f41],_0x4e7561,_0x5d8f41+0x1))return!0x0;}for(let _0x4b45c4=0x0;_0x4b45c4<_0x4e7561[_0x7e0b('0xbe')];_0x4b45c4++){if(_0x34e6d8(this,_0x4e7561[_0x4b45c4],_0x1276d4,0x0))return!0x0;}return!0x1;function _0x34e6d8(_0x28102d,_0x467bc7,_0x27b67e,_0x1bbb3b){for(let _0x584968=_0x1bbb3b;_0x584968<_0x27b67e[_0x7e0b('0xbe')];_0x584968++){const _0x24447e=_0x27b67e[_0x584968];if(_0x24447e['type']!==_0x467bc7[_0x7e0b('0xee')]||_0x24447e[_0x7e0b('0xcf')]['id']!==_0x467bc7[_0x7e0b('0xcf')]['id']||_0x24447e[_0x7e0b('0x52')]!==_0x467bc7[_0x7e0b('0x52')])continue;const _0x201897=_0x3aa887[_0x7e0b('0xd3')](_0x467bc7),_0x1bfca2=_0x993455[_0x7e0b('0xd3')](_0x467bc7),_0x3496a9=_0x993455['get'](_0x24447e),_0x1e11a7=_0x467bc7['commentThread']&&_0x467bc7[_0x7e0b('0x112')]['length'],_0x295116=_0x24447e[_0x7e0b('0x112')]&&_0x24447e[_0x7e0b('0x112')][_0x7e0b('0xbe')];if(!_0x1e11a7&&_0x201897(_0x3496a9,_0x1bfca2))return _0x28102d[_0x7e0b('0x118')](_0x24447e,_0x467bc7),_0x993455['delete'](_0x467bc7),!0x0;if(!_0x295116&&_0x201897(_0x1bfca2,_0x3496a9))return _0x28102d['_joinSuggestions'](_0x467bc7,_0x24447e),_0x993455[_0x7e0b('0x15')](_0x24447e),!0x0;}return!0x1;}}[_0x7e0b('0x118')](_0x2927a7,_0x5442ec){if(_0x2927a7[_0x7e0b('0x4b')])for(const _0x2f22a6 of _0x5442ec['getRanges']())_0x2927a7[_0x7e0b('0x18')](_0x2f22a6);else{const _0x270e52=_0x5442ec[_0x7e0b('0xd5')]()['end'];this[_0x7e0b('0x89')](_0x2927a7,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x2927a7[_0x7e0b('0xd5')]()[_0x7e0b('0x88')],_0x270e52));}_0x5442ec[_0x7e0b('0xc3')]();}}class Dt{constructor(_0xd47833){this['_editor']=_0xd47833,this[_0x7e0b('0xcc')]=_0xd47833[_0x7e0b('0x91')],this[_0x7e0b('0x3b')]=new Map(),this[_0x7e0b('0x78')]=new Map(),this[_0x7e0b('0x4e')]();}[_0x7e0b('0x71')](_0x48045c,_0x363884,_0x3a9931,_0x374b16,_0x12741e,_0x2bacbc){return new _0x232d62(this[_0x7e0b('0xcc')],{'type':_0x48045c,'subType':_0x363884,'id':_0x3a9931,'author':_0x374b16,'creator':_0x374b16,'attributes':_0x12741e,'onAttributesChange':_0x2bacbc,'onAccept':(..._0x7ed563)=>this[_0x7e0b('0xe4')](_0x48045c,_0x363884,_0x7e0b('0xf4'))(..._0x7ed563),'onDiscard':(..._0x412786)=>this[_0x7e0b('0xe4')](_0x48045c,_0x363884,'discard')(..._0x412786)});}[_0x7e0b('0xf0')](_0x121069,_0x681c9c,_0x198eac,_0x21d725){const _0x3ee56d=_0x121069+':'+_0x681c9c+':'+_0x198eac;this[_0x7e0b('0x3b')]['set'](_0x3ee56d,_0x21d725);}[_0x7e0b('0xe4')](_0x1233eb,_0x4227e2,_0x1df37a){const _0x3f08ea=_0x1233eb+':'+_0x4227e2+':'+_0x1df37a;return this[_0x7e0b('0x3b')][_0x7e0b('0xd3')](_0x3f08ea)||this[_0x7e0b('0x78')][_0x7e0b('0xd3')](_0x1233eb+':'+_0x1df37a);}[_0x7e0b('0x4e')](){const _0x1c305a=()=>{},_0x4e563c=_0x278653=>{_0x278653[_0x7e0b('0x106')]((_0x5dcc5a,_0x5213df)=>_0x5dcc5a[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x5213df[_0x7e0b('0x88')])?0x1:-0x1),this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0xabd811=>{for(const _0x186086 of _0x278653){let _0x2a854e;_0x2a854e=_0x186086[_0x7e0b('0x2f')]['isAtEnd']&&_0x186086['end'][_0x7e0b('0x32')]==_0x186086['start'][_0x7e0b('0x12e')]?_0xabd811['createSelection'](_0x186086[_0x7e0b('0x88')][_0x7e0b('0x12e')],'on'):_0xabd811[_0x7e0b('0x103')](_0x186086),this[_0x7e0b('0xcc')][_0x7e0b('0x141')](_0x2a854e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x18a1b2=(_0x4907b5,_0x227bb5)=>{this['_model'][_0x7e0b('0xbc')](_0x1bba84=>{const {commandName:_0x575e40,commandParams:_0x595e6b=[]}=_0x227bb5,_0x1034e5=_0x4907b5[_0x7e0b('0xcd')](_0x46e38f=>(_t(_0x46e38f)&&(_0x46e38f=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x46e38f[_0x7e0b('0x2f')])),_0x46e38f))[_0x7e0b('0x4a')](_0x4dce27=>'$graveyard'!==_0x4dce27[_0x7e0b('0x5f')][_0x7e0b('0x4d')]);if(_0x1034e5[_0x7e0b('0xbe')]<0x1)return;const _0x5ba33c=Array[_0x7e0b('0xa1')](this['_model'][_0x7e0b('0xf8')][_0x7e0b('0x7d')]['getRanges']())['map'](_0x350b7f=>_0x491aa7[_0x7e0b('0x31')](_0x350b7f));_0x1bba84[_0x7e0b('0x61')](_0x1034e5);for(const _0x229aae of this[_0x7e0b('0xb4')][_0x7e0b('0xc2')][_0x7e0b('0xc2')]())_0x229aae[_0x7e0b('0x11')]();_0x595e6b[_0x7e0b('0x70')]({'forceDefaultExecution':!0x0}),this[_0x7e0b('0xb4')][_0x7e0b('0x121')](_0x575e40,..._0x595e6b);const _0x528e92=_0x5ba33c[_0x7e0b('0x4a')](_0x1ac59c=>'$graveyard'!=_0x1ac59c[_0x7e0b('0x5f')]['rootName']);_0x528e92['length']>0x0&&_0x1bba84['setSelection'](_0x528e92);for(const _0x28348a of _0x5ba33c)_0x28348a[_0x7e0b('0x144')]();});},_0x17817f=(_0x5106cc,_0x4282c3)=>0x1==_0x5106cc[_0x7e0b('0xbe')]&&0x1==_0x4282c3[_0x7e0b('0xbe')]&&_0x5106cc[0x0][_0x7e0b('0x2f')]['isEqual'](_0x4282c3[0x0][_0x7e0b('0x88')]),_0x26b62d=(_0x1f1d85,_0x37807b,_0x4edfae,_0x299fd1)=>xt(_0x1f1d85,_0x37807b,_0x4edfae,_0x299fd1,this[_0x7e0b('0xcc')])?[_0x1f1d85,_0x37807b]:xt(_0x37807b,_0x1f1d85,_0x299fd1,_0x4edfae,this[_0x7e0b('0xcc')])?[_0x37807b,_0x1f1d85]:null;this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0xea'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('insertion:discard',_0x4e563c),this['_defaultCallbacks'][_0x7e0b('0x2c')]('insertion:join',_0x17817f),this['_defaultCallbacks'][_0x7e0b('0x2c')](_0x7e0b('0x12b'),_0x26b62d),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0xc7'),_0x4e563c),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('deletion:discard',_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x117'),_0x17817f),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x12c'),_0x26b62d),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x90'),_0x18a1b2),this['_defaultCallbacks']['set'](_0x7e0b('0x9d'),_0x1c305a),this['_defaultCallbacks'][_0x7e0b('0x2c')]('formatInline:join',_0x17817f),this[_0x7e0b('0x78')]['set'](_0x7e0b('0xdd'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x24'),_0x18a1b2),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x99'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('formatBlock:join',_0x17817f),this['_defaultCallbacks'][_0x7e0b('0x2c')]('formatBlock:chain',_0x1c305a);}}function Bt(_0x7cdbb3,_0x585bb4,_0xfcb79b){for(const _0x4d0682 of _0x585bb4['parent'][_0x7e0b('0x35')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4d0682['root']==_0x4d0682)return!0x1;if(!_0xfcb79b[_0x7e0b('0x54')](_0x4d0682))return!0x1;if(_0x7cdbb3['isObject'](_0x4d0682)||_0x7cdbb3[_0x7e0b('0x12a')](_0x4d0682))return!0x0;}return!0x1;}function _t(_0xcd12a6){return _0xcd12a6['end'][_0x7e0b('0x32')]==_0xcd12a6[_0x7e0b('0x88')]['nodeAfter']&&_0xcd12a6['end']['isAtStart'];}function Mt(_0x563208,_0x554fde,_0x3791c2,_0x2bd65d){const _0x155f4d=_0x5df75d=>!_0x5df75d['item']['is']('$textProxy')&&!_0x2bd65d[_0x7e0b('0x3d')](_0x5df75d[_0x7e0b('0x83')]),_0x2886a4=_0x563208[_0x7e0b('0x88')][_0x7e0b('0xc1')](_0x155f4d),_0x324c1c=_0x563208['end'][_0x7e0b('0xc1')](_0x155f4d,{'direction':'backward'});return(!_0x563208[_0x7e0b('0x88')][_0x7e0b('0xa4')](_0x2886a4)||!_0x563208['end']['isEqual'](_0x324c1c))&&(_0x2886a4['isBefore'](_0x324c1c)?_0x3791c2[_0x7e0b('0x12f')](_0x554fde,{'range':_0x3791c2[_0x7e0b('0x51')](_0x2886a4,_0x324c1c)}):_0x3791c2[_0x7e0b('0x113')](_0x554fde),!0x0);}function $t(_0x2120ff){return _0x1685bc(_0x2120ff);}function Nt(_0x526a58){const _0x5a52dd=_0x526a58[_0x7e0b('0x88')][_0x7e0b('0x12e')];return _0x5a52dd&&_0x5a52dd['is'](_0x7e0b('0xde'));}function Rt(_0x1f556a,_0x905b13){const _0x16dbb7=_0x905b13[_0x7e0b('0x7b')][_0x7e0b('0x3d')](_0x1f556a)||_0x905b13[_0x7e0b('0x7b')][_0x7e0b('0x68')](_0x1f556a);return _0x905b13['createRange'](_0x905b13[_0x7e0b('0xda')](_0x1f556a,'before'),_0x16dbb7?_0x905b13[_0x7e0b('0x6c')](_0x1f556a):_0x905b13['createPositionAt'](_0x1f556a,'end'));}function xt(_0x2ec874,_0xdcdf5,_0x42ca3a,_0x3cc74c,_0x2f36e9){if(_0x42ca3a['end'][_0x7e0b('0xa4')](_0x3cc74c[_0x7e0b('0x88')]))return!0x0;if(_0x2ec874[_0x7e0b('0xee')]!=_0xdcdf5['type'])return!0x1;if(!_0x42ca3a[_0x7e0b('0x2f')][_0x7e0b('0x129')](_0x3cc74c['start']))return!0x1;const _0x46cd38=_0x2f36e9[_0x7e0b('0x51')](_0x42ca3a['end'],_0x3cc74c[_0x7e0b('0x88')])[_0x7e0b('0x14')]();for(const _0x25b06a of _0x46cd38)if([_0x7e0b('0xa'),_0x7e0b('0x104')]['includes'](_0x25b06a[_0x7e0b('0xee')])&&_0x2f36e9[_0x7e0b('0x7b')][_0x7e0b('0x12a')](_0x25b06a[_0x7e0b('0x83')]))return!0x1;return!0x0;}