@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231020.0 → 0.0.0-nightly-20231022.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-20231020.0",
3
+ "version": "0.0.0-nightly-20231022.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-20231020.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20231020.0",
42
+ "ckeditor5": "0.0.0-nightly-20231022.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20231022.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 _0x52e9=['_suggestionState','chain','includes','has','name','updateSuggestion','element','next','markerNameToElements','track-changes-suggestion-not-found','fetchCommentThread','collaboration.channelId','formatBlock:chain','_handleNewSuggestionMarker','track-changes-command-not-found','setTo','plugins','size','isIntersectingWithRange','_editor','isExternal','insertion','addMarker','createRange','PENDING_ACTION_SUGGESTION','getLastMatchingPosition','nodeAfter','document','_addSuggestionMarker','ready','getSuggestions','skipNestingCheck','discardAllSuggestions','_joinWithAdjacentSuggestions','catch','then','getCustomProperty','forceDefaultExecution','removed','suggestionLoaded','upcast','containsRange','@external','return','attributes','trackChanges.mergeNestedSuggestions','push','accept','addSuggestionData','$marker','error-saving-suggestion-data-suggestion-discarded','removeMarker:suggestion:formatBlock','external:','getAllAdjacentSuggestions','_findSuggestions','nodeBefore','length','markerToData','formatBlock:discard','getSuggestionCallback','_onDiscard','_splitMarkerName','lowest','_mergeNestedSuggestions','value','oldRange','dataDowncast','_defaultCallbacks','isBefore','formatBlock:','schema','containsItem','addRange','updateMarker','formatInline:','createPositionAfter','moveTargetPosition','getMarkers','sort','multipleBlocks','elementEnd','addSuggestion','targetPosition','getNearestSelectionRange','_adapter','splitPosition','_enabledCommands','reconvertMarker','insertion:accept','activeMarkers','getFirstMarker','hasComments','split','range','TrackChangesEditing','requires','mapper','editingDowncast','removeClass','markDeletion','howMany','suggestion:','removeMarkers','deletion','backward','suggestionUnloaded','item','createRangeIn','registerPostFixer','hasSuggestion','formatInline:accept','getWalker','CommentsRepository','formatBlock:join','detach','conversion','addUser','_setSuggestionData','Users','trackChangesCommand','rootName','track-changes-adapter-missing-getsuggestion','data','insertContent','_getSuggestionData','deletion:','head','isOwn','getAttribute','ck-suggestion-marker','addCommentThread','formatInline:join','every','dataReady','containerElement','clear','type','formatInline:discard','markInsertion','markerToHighlight','editor','isMultiRange','formatInline:chain','keys','removeAttribute','_joinSuggestions','normal','_checkSuggestionCorrectness','_createSuggestion','getShiftedBy','acceptAllSuggestions','fromRange','consume','parent','deleteContent','_commentsRepository','markerReady','getChangedMarkers','start','containsPosition','discard','creator','for','get','authorName','addClass','isInsideObject','previous','stop','getRanges','_customCallbacks','removeComment','ck-suggestion-marker-formatBlock','adapter','open','acceptSelectedSuggestions','suggestion-type','setSelection','enqueueChange','insert','markers','writer','change','getRange','createPositionAt','elementStart','addHighlight','remove','isInContent','formatInline','set','getMultiRangeId','always','locale','acceptSuggestion','multi','dataToMarker','authoredAt','isLocal','formatBlock:accept','insertion:join','change:_saved','isNextTo','documentSelection','unbind','change:data','init','_rangeIsInLocalUserInsertion','_suggestions','position','options','listenTo','accepted','values','_saved','data-suggestion','model','change:activeMarkers','rejected','getItems','isBlock','isRemovable','never','$graveyard','isUndo','createElement','commandName','_breakSuggestionMarker','ck-suggestion-marker-','newRange','_refreshSuggestionsChain','addMarker:suggestion','define','markerName','formatBlock','formatGroupId','discardSuggestion','after','isAfter','createSelection','_updateSuggestionData','getCommentThread','hasCommentThread','default','_isForcedDefaultExecutionBlock','setAttribute','join','update:suggestion','trackChanges.trackFormatChanges','delete','isCollapsed','enableCommand','toViewElement','some','suggestionChanged','consumable','execute','isObject','splice','author','end','add','from','createdAt','$textProxy','_isDataLoaded','isEqual','selection','addMarker:suggestion:formatBlock','_trackFormatChanges','getUser','highest','_model','trackChanges','editing','deletion:accept','high','root','_getAuthorFromId','tablePasteChainId','refresh','notReady','low','_suggestionFactory','batch','subType','addMarkerName','commands','unbindElementFromMarkerName','insertion:','isAtEnd','isTouching','getFirstRange','commentThread','buildSuggestion','showSuggestionHighlights','isLimit','_setSuggestionRange','_getExternalAuthor','assign','markMultiRangeBlockFormat','config','fire','insertion:chain','removeMarker','ck-suggestion-marker--active','isDocumentOperation','differ','markBlockFormat','getIntersection','fromCharCode','_descriptionFactory','deletion:chain','elementToElement','PendingActions','_removeSuggestion','getSuggestion','map','suggestion','_addThreadToSuggestion','addComment','filter','containsRangeInObject','widget','marker-count'];(function(_0x2402fe,_0x52e9d8){const _0x1099b1=function(_0x19b796){while(--_0x19b796){_0x2402fe['push'](_0x2402fe['shift']());}};_0x1099b1(++_0x52e9d8);}(_0x52e9,0x6d));const _0x1099=function(_0x2402fe,_0x52e9d8){_0x2402fe=_0x2402fe-0x0;let _0x1099b1=_0x52e9[_0x2402fe];return _0x1099b1;};import{Plugin as _0x49d03f,PendingActions as _0x366406}from'ckeditor5/src/core';import{LiveRange as _0x582436}from'ckeditor5/src/engine';import{CKEditorError as _0x3ae20b,uid as _0x308d28,priorities as _0x3a5197,logWarning as _0x213ab2}from'ckeditor5/src/utils';import{toWidget as _0x1a43b5}from'ckeditor5/src/widget';import{Users as _0x4a567d,hashObject as _0x51d38b}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b9b04 from'./commands/trackchangescommand';import _0x5166c6 from'./commands/acceptsuggestioncommand';import _0x557ab4 from'./commands/discardsuggestioncommand';import _0x54c4d9 from'./commands/executeonallsuggestionscommand';import _0x30831b from'./commands/executeonselectedsuggestionscommand';import _0x2c5f77 from'./suggestion';import _0x6d4ebc from'./suggestiondescriptionfactory';import _0x5af1dd from'./integrations/aiassistant';import _0x4634cd from'./integrations/alignment';import _0x37e3c8 from'./integrations/basicstyles';import _0x36b8d2 from'./integrations/blockquote';import _0x5aa06b from'./integrations/ckbox';import _0x29ed21 from'./integrations/codeblock';import _0x4e17c9 from'./integrations/comments';import _0x1c0c9e from'./integrations/deletecommand';import _0x4b5b39 from'./integrations/documentlist';import _0x1e1f3b from'./integrations/entercommand';import _0x37ce6e from'./integrations/findandreplace';import _0x2cfe22 from'./integrations/font';import _0xbf7a79 from'./integrations/formatpainter';import _0x358a25 from'./integrations/heading';import _0x2abc9b from'./integrations/highlight';import _0x26e805 from'./integrations/horizontalline';import _0x22b531 from'./integrations/htmlembed';import _0x395a5f from'./integrations/image';import _0x1ae4ea from'./integrations/imagereplace';import _0x3933cd from'./integrations/importword';import _0x50cfb0 from'./integrations/indent';import _0x2b5ce2 from'./integrations/inputcommand';import _0x58f4db from'./integrations/link';import _0x32817b from'./integrations/list';import _0x3b41d9 from'./integrations/listproperties';import _0xf61353 from'./integrations/mediaembed';import _0x127500 from'./integrations/mention';import _0x348180 from'./integrations/pagebreak';import _0x446730 from'./integrations/paragraph';import _0x28bd19 from'./integrations/removeformat';import _0x271d68 from'./integrations/restrictededitingmode';import _0x4b21cd from'./integrations/shiftentercommand';import _0xde62dd from'./integrations/standardeditingmode';import _0x1115fe from'./integrations/style';import _0xdeae6a from'./integrations/table';import _0x34155c from'./integrations/tablemergesplit';import _0x41e2b9 from'./integrations/tableheadings';import _0xe3e276 from'./integrations/tableclipboard';import _0x2781cf from'./integrations/tablecolumnresize';import _0x5b709e from'./integrations/template';import _0x106eaa from'./integrations/tableofcontents';import _0x48e54c from'./integrations/title';import _0x356657 from'./integrations/undo';import{getTranslation as _0x6b0c5d}from'./utils/common-translations';import _0x3ef0bf from'./integrations/tablecaption';import _0x5d030b from'./integrations/documentlistproperties';import _0x42a644 from'./integrations/tableproperties';import{isEqual as _0xa68f16}from'lodash-es';export default class p extends _0x49d03f{static get[_0x1099('0x137')](){return[_0x1099('0x3'),_0x4a567d,_0x366406,_0x5af1dd,_0x4634cd,_0x37e3c8,_0x36b8d2,_0x5aa06b,_0x29ed21,_0x4e17c9,_0x1c0c9e,_0x4b5b39,_0x5d030b,_0x1e1f3b,_0x37ce6e,_0x2cfe22,_0xbf7a79,_0x358a25,_0x2abc9b,_0x26e805,_0x22b531,_0x395a5f,_0x1ae4ea,_0x3933cd,_0x50cfb0,_0x2b5ce2,_0x58f4db,_0x32817b,_0x3b41d9,_0xf61353,_0x127500,_0x348180,_0x446730,_0x28bd19,_0x271d68,_0x4b21cd,_0xde62dd,_0x1115fe,_0xdeae6a,_0x34155c,_0x41e2b9,_0x3ef0bf,_0xe3e276,_0x2781cf,_0x106eaa,_0x42a644,_0x5b709e,_0x48e54c,_0x356657];}static get['pluginName'](){return _0x1099('0x136');}constructor(_0x2fdd1d){function _0x1e96e8(_0x3a20ab){return _0x3a20ab[_0x1099('0xd0')](_0x3bfccb=>String[_0x1099('0xc9')](_0x3bfccb))[_0x1099('0x89')]('');}super(_0x2fdd1d),this[_0x1099('0x51')](_0x1099('0x131'),[]),this['on'](_0x1099('0x6c'),(_0x714c8a,_0x2b30ec,_0x331843,_0xe480a1)=>{this['_model'][_0x1099('0x49')](()=>{for(const _0x462f02 of[..._0xe480a1,..._0x331843])this[_0x1099('0xa3')][_0x1099('0x47')]['has'](_0x462f02)&&_0x2fdd1d[_0x1099('0xa5')][_0x1099('0x12f')](_0x462f02);});}),this[_0x1099('0xca')]=new _0x6d4ebc(this['editor'][_0x1099('0x6b')][_0x1099('0x11e')],this[_0x1099('0x1f')][_0x1099('0x54')]),this[_0x1099('0x12c')]=null,this['_suggestionFactory']=new Bt(this['editor']),this[_0x1099('0x63')]=new Map(),this[_0x1099('0x2e')]=_0x2fdd1d[_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x3')),this['_enabledCommands']=new Set(),this[_0x1099('0xa3')]=this[_0x1099('0x1f')][_0x1099('0x6b')],this[_0x1099('0xd8')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x7b')](_0x1099('0x8b'),_0x1099('0x86')),this[_0x1099('0xa0')]=_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x36')](_0x1099('0x8b')),_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x7b')](_0x1099('0x105'),!0x0),this['_mergeNestedSuggestions']=_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x36')](_0x1099('0x105')),this['trackChangesCommand']=new _0x4b9b04(_0x2fdd1d,this[_0x1099('0x12e')]),this[_0x1e96e8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1e96e8([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x30]);}[_0x1099('0x61')](){const _0x535619=this['editor'];_0x535619[_0x1099('0x6')][_0x1099('0x35')]('editingDowncast')[_0x1099('0x1e')]({'model':_0x1099('0xd1'),'view':_0x2e08da=>{const {id:_0x1b05ed,type:_0x53a559}=this['_splitMarkerName'](_0x2e08da[_0x1099('0x7c')]),_0x3061f0=['ck-suggestion-marker',_0x1099('0x77')+_0x53a559];let _0x2ba2c4=0xbb8;return this[_0x1099('0x131')][_0x1099('0xda')](_0x2e08da[_0x1099('0x7c')])&&(_0x3061f0[_0x1099('0x106')]('ck-suggestion-marker--active'),_0x2ba2c4=0xbc2),_0x1099('0x13f')==_0x53a559&&(_0x2ba2c4+=0x5),{'classes':_0x3061f0,'attributes':{'data-suggestion':_0x1b05ed},'priority':_0x2ba2c4};}}),_0x535619['conversion'][_0x1099('0x35')](_0x1099('0x11a'))['add'](_0x23b254=>{_0x23b254['on'](_0x1099('0x7a'),(_0x2377db,_0x986e32,_0x1f56f2)=>{if(!_0x1f56f2[_0x1099('0x65')][_0x1099('0xba')])return;const _0x6754a5=_0x986e32[_0x1099('0x142')];if(!_0x6754a5)return;const _0x419cdf=_0x1f56f2[_0x1099('0x138')][_0x1099('0x8f')](_0x6754a5);_0x535619['model']['schema'][_0x1099('0x94')](_0x6754a5)&&_0x419cdf&&!_0x419cdf[_0x1099('0xfc')](_0x1099('0xd6'))&&_0x419cdf['is'](_0x1099('0x19'))&&_0x1a43b5(_0x419cdf,_0x1f56f2[_0x1099('0x48')]);},{'priority':_0x1099('0xa7')});}),_0x535619[_0x1099('0x6')][_0x1099('0x35')]('dataDowncast')[_0x1099('0x1e')]({'model':_0x1099('0xd1'),'view':(_0x26e9f5,_0x4f22ed)=>{if(!_0x4f22ed['options'][_0x1099('0xba')])return null;const {type:_0x3547cc}=this['_splitMarkerName'](_0x26e9f5[_0x1099('0x7c')]);return{'classes':['ck-suggestion-marker',_0x1099('0x77')+_0x3547cc],'priority':0xbb8};}});const _0x5aa258=({showActiveMarkers:_0x1a3a2b=!0x0}={})=>(_0x1a1ffe,_0x26e0d7,_0x3ed5a6)=>{if(!_0x26e0d7[_0x1099('0x142')])return;if(_0x26e0d7[_0x1099('0x142')]['is'](_0x1099('0x9e')))return void _0x3ed5a6[_0x1099('0x92')][_0x1099('0x2b')](_0x26e0d7[_0x1099('0x142')],_0x1a1ffe[_0x1099('0xdc')]);const _0x58d03a=_0x3ed5a6[_0x1099('0x138')][_0x1099('0x8f')](_0x26e0d7[_0x1099('0x142')]);if(!(_0x26e0d7[_0x1099('0x142')]['is'](_0x1099('0xde'))&&_0x535619[_0x1099('0x6b')][_0x1099('0x11e')][_0x1099('0x6f')](_0x26e0d7[_0x1099('0x142')])&&!_0x58d03a['getCustomProperty'](_0x1099('0x4d'))))return;const {id:_0x44f5c3}=this[_0x1099('0x115')](_0x26e0d7['markerName']);_0x3ed5a6[_0x1099('0x48')][_0x1099('0x38')]([_0x1099('0x14'),_0x1099('0x3f')],_0x58d03a),_0x3ed5a6['writer'][_0x1099('0x88')](_0x1099('0x6a'),_0x44f5c3,_0x58d03a),_0x3ed5a6['mapper']['bindElementToMarker'](_0x58d03a,_0x26e0d7[_0x1099('0x7c')]),_0x1a3a2b&&(this[_0x1099('0x131')]['includes'](_0x26e0d7[_0x1099('0x7c')])?_0x3ed5a6[_0x1099('0x48')][_0x1099('0x38')](_0x1099('0xc4'),_0x58d03a):_0x3ed5a6[_0x1099('0x48')][_0x1099('0x13a')]('ck-suggestion-marker--active',_0x58d03a));for(const _0x57828e of _0x535619['model'][_0x1099('0x143')](_0x26e0d7[_0x1099('0x142')])[_0x1099('0x6e')]())_0x3ed5a6[_0x1099('0x92')][_0x1099('0x2b')](_0x57828e,_0x1a1ffe['name']);_0x3ed5a6[_0x1099('0x92')][_0x1099('0x2b')](_0x26e0d7[_0x1099('0x142')],_0x1a1ffe[_0x1099('0xdc')]);};_0x535619[_0x1099('0x6')][_0x1099('0x35')]('dataDowncast')[_0x1099('0x98')](_0x489905=>{_0x489905['on'](_0x1099('0x9f'),(_0x1d95b7,_0x1985a5,_0x12f82e)=>{_0x12f82e[_0x1099('0x65')][_0x1099('0xba')]&&_0x5aa258({'showActiveMarkers':!0x1})(_0x1d95b7,_0x1985a5,_0x12f82e);},{'priority':_0x1099('0xa2')});}),_0x535619[_0x1099('0x6')]['for']('dataDowncast')[_0x1099('0x111')]({'model':'suggestion','view':(_0x11c8e5,_0x168dc1)=>_0x168dc1[_0x1099('0x65')][_0x1099('0xba')]?null:{'group':_0x1099('0xd1'),'name':_0x11c8e5['substr'](0xb)}}),_0x535619[_0x1099('0x6')][_0x1099('0x35')](_0x1099('0x100'))[_0x1099('0xcc')]({'view':{'name':_0x1099('0xd1'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x440c2c,{writer:_0x4c4c81})=>{let _0x37588c='suggestion:'+_0x440c2c[_0x1099('0x13')](_0x1099('0x43'))+':'+_0x440c2c[_0x1099('0x13')]('id');return _0x440c2c['getAttribute'](_0x1099('0xd7'))&&(_0x37588c+=':'+_0x440c2c['getAttribute']('marker-count')),_0x4c4c81[_0x1099('0x74')](_0x1099('0x109'),{'data-name':_0x37588c});}}),_0x535619['conversion']['for'](_0x1099('0x100'))[_0x1099('0x57')]({'view':_0x1099('0xd1')}),_0x535619['conversion'][_0x1099('0x35')](_0x1099('0x139'))['add'](_0x23cd48=>{_0x23cd48['on'](_0x1099('0x9f'),_0x5aa258(),{'priority':_0x1099('0xa7')});}),_0x535619['conversion'][_0x1099('0x35')](_0x1099('0x139'))[_0x1099('0x98')](_0x3d5715=>{_0x3d5715['on'](_0x1099('0x10b'),(_0x506eb4,_0x194a01,_0x3f0beb)=>{const _0x33cd0b=_0x3f0beb['mapper'][_0x1099('0xe0')](_0x194a01['markerName']);if(_0x33cd0b)for(const _0x118b2c of _0x33cd0b)_0x118b2c['getCustomProperty'](_0x1099('0x4d'))||(_0x3f0beb[_0x1099('0x48')][_0x1099('0x13a')]([_0x1099('0x14'),_0x1099('0x3f'),_0x1099('0xc4')],_0x118b2c),_0x3f0beb[_0x1099('0x48')][_0x1099('0x23')]('data-suggestion',_0x118b2c),_0x3f0beb['mapper'][_0x1099('0xb3')](_0x118b2c,_0x194a01[_0x1099('0x7c')]));},{'priority':_0x1099('0xa7')});}),_0x535619['model'][_0x1099('0xf3')][_0x1099('0x144')](_0x5416ba=>{let _0x105cd2=!0x1;const _0x3fab33=Array['from'](_0x535619[_0x1099('0x6b')]['document'][_0x1099('0xc6')][_0x1099('0x30')]()),_0x277031=new Set();for(const {name:_0x1c9538,data:_0x3cfb96}of _0x3fab33){const {group:_0xc5b505,type:_0x35c02b,id:_0x27afaf}=this[_0x1099('0x115')](_0x1c9538);if(_0x1099('0xd1')!==_0xc5b505)continue;const _0x20bd9c=this['_suggestions'][_0x1099('0x36')](_0x27afaf);if(null!=_0x3cfb96['newRange']){_0x1099('0x50')==_0x35c02b&&(_0x105cd2=_0x105cd2||$t(_0x3cfb96[_0x1099('0x78')],_0x1c9538,_0x5416ba,_0x535619['model'][_0x1099('0x11e')]));if(_0x3cfb96[_0x1099('0x78')]['isCollapsed']||_0x1099('0x72')==_0x3cfb96[_0x1099('0x78')]['root'][_0x1099('0xb')]||_0x1099('0x7d')==_0x35c02b&&!Rt(_0x3cfb96[_0x1099('0x78')])||_0x1099('0x13f')==_0x35c02b&&!(!Mt(_0x383e85=_0x3cfb96[_0x1099('0x78')])&&!function(_0x48acba){return _0x48acba[_0x1099('0x31')][_0x1099('0x2c')]==_0x48acba[_0x1099('0x97')][_0x1099('0x10f')]&&_0x48acba['start']['isAtEnd'];}(_0x383e85)))_0x5416ba[_0x1099('0xc3')](_0x1c9538),_0x105cd2=!0x0;else{if(!_0x20bd9c||!_0x20bd9c['isInContent'])continue;_0x277031[_0x1099('0x98')](_0x20bd9c);}}}var _0x383e85;return _0x277031['size']>0x0&&(_0x105cd2=!!this[_0x1099('0xf9')](_0x277031)||_0x105cd2),_0x105cd2;}),_0x535619[_0x1099('0x6b')][_0x1099('0xf3')]['registerPostFixer'](_0x37a27c=>{let _0x55e26f=!0x1;for(const _0xc01058 of _0x535619[_0x1099('0x6b')][_0x1099('0xf3')]['differ']['getChanges']()){if(_0x1099('0x46')!=_0xc01058[_0x1099('0x1b')])continue;const _0x2157cd=_0xc01058[_0x1099('0x64')][_0x1099('0x28')](_0xc01058[_0x1099('0x110')]);if(_0x2157cd[_0x1099('0xb5')])for(const _0x35e0c2 of this['_suggestions']['values']()){if(_0x35e0c2['isMultiRange']||!_0x35e0c2[_0x1099('0x4f')])continue;if(_0x1099('0x7d')!=_0x35e0c2['type'])continue;const _0x5c9cf6=_0x35e0c2[_0x1099('0xb7')]();if(_0x5c9cf6['start'][_0x1099('0x2c')]!=_0x5c9cf6[_0x1099('0x97')][_0x1099('0x2c')]&&_0x5c9cf6['end'][_0x1099('0x9d')](_0xc01058[_0x1099('0x64')])){const _0x1cc472=_0x535619['model'][_0x1099('0xef')](_0x5c9cf6[_0x1099('0x31')],_0x2157cd);_0x37a27c['updateMarker'](_0x35e0c2[_0x1099('0x132')](),{'range':_0x1cc472}),_0x55e26f=!0x0;}}}return _0x55e26f;}),_0x535619[_0x1099('0x6b')]['markers']['on'](_0x1099('0x8a'),(_0x21df64,_0xed5462,_0x50c690)=>{if(null==_0x50c690){const {id:_0x3f5595}=this[_0x1099('0x115')](_0xed5462[_0x1099('0xdc')]),_0x3a0bd9=this[_0x1099('0x63')][_0x1099('0x36')](_0x3f5595);_0x3a0bd9&&_0x3a0bd9[_0x1099('0xb1')](_0xed5462[_0x1099('0xdc')]);}}),_0x535619[_0x1099('0x6b')][_0x1099('0xf3')]['on'](_0x1099('0x60'),()=>{const _0x2e8762=Array['from'](_0x535619[_0x1099('0x6b')][_0x1099('0xf3')][_0x1099('0xc6')][_0x1099('0x30')]())['filter'](_0x3b6f4a=>_0x1099('0xd1')===this[_0x1099('0x115')](_0x3b6f4a[_0x1099('0xdc')])['group']);if(0x0===_0x2e8762['length'])return;_0x2e8762['sort']((_0x313ec8,_0x415496)=>{const _0x18812f=_0x313ec8[_0x1099('0xd')][_0x1099('0x119')],_0x5a65c=_0x415496[_0x1099('0xd')]['oldRange'];return null===_0x18812f&&null===_0x5a65c?0x0:null===_0x18812f&&null!==_0x5a65c?-0x1:null!==_0x18812f&&null===_0x5a65c?0x1:_0x18812f[_0x1099('0x31')]['isBefore'](_0x5a65c[_0x1099('0x31')])?-0x1:0x1;});const _0x13e4d1=new Set(),_0x5a5bb9=new Set();for(const {name:_0x119a81,data:_0x35fa9d}of _0x2e8762){const {id:_0x2dd069}=this[_0x1099('0x115')](_0x119a81);if(null===_0x35fa9d[_0x1099('0x119')]){const _0x18b3ba=this[_0x1099('0xe5')](_0x119a81);_0x5a5bb9['add'](_0x18b3ba);}else{const _0x46e841=this[_0x1099('0x63')][_0x1099('0x36')](_0x2dd069);null!==_0x35fa9d['newRange']||_0x46e841[_0x1099('0x4f')]?(_0x13e4d1['add'](_0x46e841[_0x1099('0x11')]),_0x5a5bb9['add'](_0x46e841)):this[_0x1099('0xce')](_0x46e841);}}_0x5a5bb9[_0x1099('0xe9')]>0x0&&this[_0x1099('0x79')](_0x5a5bb9);for(const _0x5b8e55 of _0x13e4d1)this[_0x1099('0xc1')](_0x1099('0x91'),_0x5b8e55);}),_0x535619['model']['on']('applyOperation',(_0x116507,_0x54206f)=>{const _0x5d0126=_0x54206f[0x0];if(!this[_0x1099('0x63')][_0x1099('0xe9')])return;if(!_0x5d0126[_0x1099('0xc5')])return;if(_0x5d0126['batch'][_0x1099('0x73')]||!_0x5d0126[_0x1099('0xaf')][_0x1099('0x59')])return;let _0x1036ee,_0x1f2507;switch(_0x5d0126[_0x1099('0x1b')]){case'insert':_0x1036ee=_0x535619[_0x1099('0x6b')]['createPositionAt'](_0x5d0126[_0x1099('0x64')]),_0x1f2507=_0x1036ee[_0x1099('0x28')](_0x5d0126[_0x1099('0x13c')]);break;case _0x1099('0x134'):_0x1036ee=_0x535619[_0x1099('0x6b')][_0x1099('0x4b')](_0x5d0126[_0x1099('0x12d')]),_0x1f2507=_0x535619[_0x1099('0x6b')]['createPositionAt'](_0x5d0126[_0x1099('0x124')]);break;case'move':_0x1036ee=_0x535619[_0x1099('0x6b')]['createPositionAt'](_0x5d0126[_0x1099('0x12a')]),_0x1f2507=_0x1036ee[_0x1099('0x28')](_0x5d0126['howMany']);break;default:return;}const _0x36f870=_0x535619[_0x1099('0x6b')][_0x1099('0xef')](_0x1036ee,_0x1f2507);_0x535619[_0x1099('0x6b')][_0x1099('0x49')](()=>{for(const {suggestion:_0x4f2160,meta:_0x5d35a2}of this[_0x1099('0x10e')](_0x36f870)){if(_0x4f2160[_0x1099('0x20')])continue;if(_0x1099('0x50')==_0x4f2160[_0x1099('0x1b')])continue;const _0x4e2d6d=_0x4f2160['data']&&_0x4f2160[_0x1099('0xd')][_0x1099('0x127')];(_0x1099('0x7d')!=_0x4f2160[_0x1099('0x1b')]||_0x1099('0x134')==_0x5d0126[_0x1099('0x1b')]&&!_0x4e2d6d)&&(_0x5d35a2[_0x1099('0xd5')]||_0x1099('0xed')==_0x4f2160['type']&&_0x5d35a2['isOwn']||_0x4f2160[_0x1099('0xb7')]()['containsRange'](_0x36f870)&&this['_breakSuggestionMarker'](_0x4f2160,_0x1036ee,_0x1f2507));}});},{'priority':_0x1099('0x116')}),_0x535619[_0x1099('0x6b')]['on'](_0x1099('0x2d'),(_0x386356,_0x5df6c1)=>{const _0xb68fb5=_0x5df6c1[0x0],_0x55925d=_0x5df6c1[0x1];if(_0x55925d&&_0x55925d[_0x1099('0xfd')])return;if(this[_0x1099('0x87')])return;if(!this[_0x1099('0xa')]['value'])return;if(_0xb68fb5[_0x1099('0x8d')])return;const _0x51ba13=_0x535619[_0x1099('0x6b')]['schema'],{start:_0x37a85f,end:_0xadce2f}=_0xb68fb5[_0x1099('0xb7')](),_0x23aaaf=_0x37a85f[_0x1099('0xf2')]&&_0x51ba13[_0x1099('0xbb')](_0x37a85f['nodeAfter'])?null:_0x51ba13[_0x1099('0x12b')](_0x37a85f,'forward'),_0x4a32e9=_0xadce2f[_0x1099('0x10f')]&&_0x51ba13[_0x1099('0xbb')](_0xadce2f[_0x1099('0x10f')])?null:_0x51ba13[_0x1099('0x12b')](_0xadce2f,_0x1099('0x140')),_0x129bb0=_0x535619[_0x1099('0x6b')]['createRange'](_0x23aaaf?_0x23aaaf['start']:_0x37a85f,_0x4a32e9?_0x4a32e9[_0x1099('0x97')]:_0xadce2f);_0x535619['model'][_0x1099('0x49')](_0x399968=>{this['markDeletion'](_0x129bb0);const _0x4392be=_0x535619[_0x1099('0x6b')]['schema'][_0x1099('0x12b')](_0x129bb0[_0x1099('0x31')]);_0xb68fb5['is'](_0x1099('0x5e'))?_0x399968[_0x1099('0x44')](_0x4392be):_0xb68fb5[_0x1099('0xe7')](_0x4392be);}),_0x386356[_0x1099('0x3b')]();},{'priority':_0x3a5197[_0x1099('0x25')]+0xa}),_0x535619[_0x1099('0x6b')]['on'](_0x1099('0xe'),(_0x4736c3,_0x3f5e33)=>{const _0x21a9e4=_0x3f5e33[_0x3f5e33[_0x1099('0x110')]-0x1];_0x21a9e4&&_0x21a9e4[_0x1099('0xfd')]||this[_0x1099('0x87')]||this[_0x1099('0xa')]['value']&&(_0x535619[_0x1099('0x6b')][_0x1099('0x49')](()=>{let _0x561959=_0x535619[_0x1099('0x6b')][_0x1099('0xe')](_0x3f5e33[0x0],_0x3f5e33[0x1],_0x3f5e33[0x2],{'forceDefaultExecution':!0x0});if(!_0x561959)return;_0x4736c3[_0x1099('0x103')]=_0x561959['clone']();const _0x3a9f88=_0x561959['end']['nodeBefore'],_0x6a7f22=_0x535619[_0x1099('0x6b')][_0x1099('0x11e')];_0x3a9f88&&_0x6a7f22[_0x1099('0x6f')](_0x3a9f88)&&!_0x6a7f22[_0x1099('0x94')](_0x3a9f88)&&(_0x561959=_0x535619['model']['createRange'](_0x561959[_0x1099('0x31')],_0x535619[_0x1099('0x6b')][_0x1099('0x4b')](_0x3a9f88,_0x1099('0x97')))),this[_0x1099('0x1d')](_0x561959);}),_0x4736c3[_0x1099('0x3b')]());},{'priority':_0x1099('0xa7')}),this['editor']['commands'][_0x1099('0x98')](_0x1099('0xa4'),this[_0x1099('0xa')]),this[_0x1099('0x8e')](_0x1099('0xa4'));const _0x45e681=new _0x5166c6(_0x535619,this[_0x1099('0x63')]);_0x535619[_0x1099('0xb2')][_0x1099('0x98')](_0x1099('0x55'),_0x45e681),this[_0x1099('0x8e')](_0x1099('0x55'));const _0x12e6c2=new _0x557ab4(_0x535619,this[_0x1099('0x63')]);_0x535619[_0x1099('0xb2')]['add'](_0x1099('0x7f'),_0x12e6c2),this[_0x1099('0x8e')](_0x1099('0x7f')),_0x535619[_0x1099('0xb2')][_0x1099('0x98')](_0x1099('0x29'),new _0x54c4d9(_0x535619,_0x45e681,this[_0x1099('0x63')])),this[_0x1099('0x8e')](_0x1099('0x29')),_0x535619['commands'][_0x1099('0x98')](_0x1099('0xf8'),new _0x54c4d9(_0x535619,_0x12e6c2,this[_0x1099('0x63')])),this[_0x1099('0x8e')](_0x1099('0xf8')),_0x535619['commands']['add'](_0x1099('0x42'),new _0x30831b(_0x535619,_0x45e681,this[_0x1099('0x63')])),this['enableCommand']('acceptSelectedSuggestions'),_0x535619[_0x1099('0xb2')][_0x1099('0x98')]('discardSelectedSuggestions',new _0x30831b(_0x535619,_0x12e6c2,this['_suggestions'])),this[_0x1099('0x8e')]('discardSelectedSuggestions');const _0x4b77e2=_0x535619[_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x3'));this['listenTo'](_0x4b77e2,_0x1099('0xd3'),(_0x46219a,{threadId:_0x4cef0d})=>{const _0x3cf4e2=this[_0x1099('0x63')]['get'](_0x4cef0d);_0x3cf4e2&&_0x3cf4e2[_0x1099('0xb8')]&&0x1===_0x3cf4e2['commentThread'][_0x1099('0x110')]&&this['_updateSuggestionData'](_0x4cef0d,{'hasComments':!0x0});},{'priority':_0x1099('0xad')}),this[_0x1099('0x66')](_0x4b77e2,_0x1099('0x3e'),(_0x2af8f7,{threadId:_0x5d9728})=>{const _0x1fb7df=this[_0x1099('0x63')][_0x1099('0x36')](_0x5d9728);_0x1fb7df&&_0x1fb7df[_0x1099('0xb8')]&&!_0x1fb7df[_0x1099('0xb8')][_0x1099('0x110')]&&this[_0x1099('0x83')](_0x5d9728,{'hasComments':!0x1});},{'priority':_0x1099('0xad')});}set[_0x1099('0x40')](_0x2459d7){if(this['_adapter'])throw new _0x3ae20b('track-changes-adapter-already-set',this);this[_0x1099('0x12c')]=_0x2459d7;}get[_0x1099('0x40')](){return this['_adapter'];}[_0x1099('0xf6')]({skipNotAttached:_0x5dd85c=!0x1,toJSON:_0x4b6378=!0x1}={}){const _0x50f613=[];for(const _0x37b308 of this[_0x1099('0x63')][_0x1099('0x68')]())_0x5dd85c&&!_0x37b308['isInContent']||_0x50f613[_0x1099('0x106')](_0x37b308);return _0x4b6378?_0x50f613[_0x1099('0xd0')](_0xa89ce5=>_0xa89ce5['toJSON']()):_0x50f613;}[_0x1099('0xcf')](_0x46e931){const _0x20c0a3=this[_0x1099('0x63')][_0x1099('0x36')](_0x46e931);if(!_0x20c0a3)throw new _0x3ae20b(_0x1099('0xe1'),this);return _0x20c0a3;}[_0x1099('0x0')](_0x2cb441){return this['_suggestions']['has'](_0x2cb441);}['addSuggestionData'](_0x5994ba){const {authorId:_0xcc4dbc,id:_0xd12de7,attributes:_0x336d92}=_0x5994ba,[_0x58475c,_0x8e9f1a]=_0x5994ba['type'][_0x1099('0x134')](':'),_0x3933c0=this[_0x1099('0x63')][_0x1099('0x36')](_0xd12de7)||this[_0x1099('0x27')](_0x58475c,_0x8e9f1a,_0xd12de7,_0xcc4dbc,_0x336d92);if(this[_0x1099('0xd2')](_0x3933c0),this[_0x1099('0x26')](_0x3933c0,_0x58475c,_0x8e9f1a||null,_0xcc4dbc),_0x3933c0[_0x1099('0x9a')]=_0x5994ba[_0x1099('0x9a')],_0x3933c0[_0x1099('0x9c')]=!0x0,_0x336d92&&_0x336d92[_0x1099('0x102')]){const _0x8ece46=_0x336d92[_0x1099('0x102')],_0x523993=this[_0x1099('0xbd')](_0x8ece46[_0x1099('0x37')]);_0x3933c0[_0x1099('0x58')]=_0x8ece46[_0x1099('0x9a')],_0x3933c0[_0x1099('0x96')]=_0x523993,_0x3933c0[_0x1099('0xec')]=!0x0;}else _0x3933c0[_0x1099('0x58')]=_0x5994ba[_0x1099('0x9a')];switch(_0x5994ba['data']&&(_0x3933c0[_0x1099('0xd')]=_0x5994ba[_0x1099('0xd')]),_0x5994ba[_0x1099('0x104')]&&(_0x3933c0['attributes']=_0x5994ba[_0x1099('0x104')]),this['_adapter']&&this[_0x1099('0x12c')]['addSuggestion']||(_0x3933c0[_0x1099('0x69')]=!0x0),this['_suggestionState']['get'](_0x3933c0)){case _0x1099('0xac'):this[_0x1099('0xd8')]['set'](_0x3933c0,_0x1099('0x18'));break;case _0x1099('0x2f'):_0x3933c0['isInContent']?(this['_refreshSuggestionsChain'](new Set([_0x3933c0])),this['_joinWithAdjacentSuggestions'](new Set([_0x3933c0])),this[_0x1099('0xd8')][_0x1099('0x51')](_0x3933c0,'ready'),this['fire'](_0x1099('0xff'),_0x3933c0)):this[_0x1099('0xd8')][_0x1099('0x51')](_0x3933c0,'removed');}return _0x3933c0;}[_0x1099('0x55')](_0x4f7f35){this[_0x1099('0xfd')](()=>{this[_0x1099('0x1f')]['model'][_0x1099('0x49')](()=>{for(const _0xf20064 of _0x4f7f35[_0x1099('0x10d')]())_0xf20064[_0x1099('0x107')]();});});}[_0x1099('0x7f')](_0x3e9995){this[_0x1099('0xfd')](()=>{this[_0x1099('0x1f')][_0x1099('0x6b')][_0x1099('0x49')](()=>{for(const _0x23d2f9 of _0x3e9995[_0x1099('0x10d')]())_0x23d2f9[_0x1099('0x33')]();});});}[_0x1099('0x8e')](_0x596e09,_0x3bdf9b){const _0xfc49a1=this[_0x1099('0x1f')]['commands'][_0x1099('0x36')](_0x596e09);if(!_0xfc49a1)throw new _0x3ae20b(_0x1099('0xe6'),this,{'commandName':_0x596e09});this[_0x1099('0x12e')][_0x1099('0x98')](_0xfc49a1),_0x3bdf9b&&_0xfc49a1['on']('execute',(_0x3f6bab,_0x49ec71)=>{this[_0x1099('0xa')][_0x1099('0x118')]&&(this['_isForcedDefaultExecutionBlock']||_0x49ec71[_0x1099('0x110')]>0x0&&_0x49ec71[_0x49ec71[_0x1099('0x110')]-0x1]&&_0x49ec71[_0x49ec71[_0x1099('0x110')]-0x1][_0x1099('0xfd')]||(_0x3f6bab[_0x1099('0x103')]=_0x3bdf9b((..._0x481143)=>_0xfc49a1[_0x1099('0x93')](..._0x481143,{'forceDefaultExecution':!0x0}),..._0x49ec71),_0x3f6bab[_0x1099('0x3b')]()));},{'priority':_0x1099('0xa7')});}[_0x1099('0xfd')](_0x2e174a){let _0x47285d,_0xb04080;const _0x26af36=this['_isForcedDefaultExecutionBlock'];this[_0x1099('0x87')]=!0x0;try{_0x47285d=_0x2e174a();}catch(_0x1017b6){_0xb04080=_0x1017b6;}return _0x26af36||(this[_0x1099('0x87')]=!0x1),_0xb04080&&_0x3ae20b['rethrowUnexpectedError'](_0xb04080,this),_0x47285d;}[_0x1099('0x1d')](_0x4ce64e,_0x3adc0b=null,_0x9696a1={}){if(_0x4ce64e[_0x1099('0x8d')])return null;const _0x45ff65=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'];for(const {suggestion:_0xef57f7,meta:_0x470cca}of this[_0x1099('0x10e')](_0x4ce64e,'insertion'))if(_0x470cca[_0x1099('0x12')]){if(!_0x470cca[_0x1099('0x5d')]){if(_0x470cca['containsRangeInObject']){if(!this[_0x1099('0x117')]||!Ot(_0xef57f7,_0x9696a1))continue;return _0xef57f7;}if(Ot(_0xef57f7,_0x9696a1))return _0xef57f7;this[_0x1099('0x76')](_0xef57f7,_0x4ce64e[_0x1099('0x31')],_0x4ce64e[_0x1099('0x97')]);break;}if(_0x3adc0b==_0xef57f7[_0x1099('0xb0')]&&Ot(_0xef57f7,_0x9696a1)){const _0x4b0450=_0xef57f7[_0x1099('0xb7')]();return _0x4b0450[_0x1099('0x31')][_0x1099('0x9d')](_0x4ce64e[_0x1099('0x97')])?this['_setSuggestionRange'](_0xef57f7,this[_0x1099('0xa3')]['createRange'](_0x4ce64e['start'],_0x4b0450['end'])):this['_setSuggestionRange'](_0xef57f7,this[_0x1099('0xa3')][_0x1099('0xef')](_0x4b0450['start'],_0x4ce64e[_0x1099('0x97')])),_0xef57f7;}}const _0x3e4d00=_0x308d28(),_0x178966=_0x45ff65['id'],_0x353317=_0x3adc0b?_0x1099('0xb4')+_0x3adc0b:_0x1099('0xed'),_0x1942f2=this[_0x1099('0x8')]({'id':_0x3e4d00,'type':_0x353317,'createdAt':new Date(),'authorId':_0x178966,'attributes':_0x9696a1});return this[_0x1099('0xf4')](_0x353317,_0x3e4d00,_0x178966,_0x4ce64e),_0x1942f2;}['markMultiRangeInsertion'](_0x5a16c4,_0x8d963f=_0x1099('0x56'),_0x392c0c={}){const _0x51d44a=this[_0x1099('0x1f')]['plugins']['get'](_0x1099('0x9'))['me'],_0x3f0a8a=this['_suggestionFactory'][_0x1099('0x113')](_0x1099('0xed'),_0x8d963f,_0x1099('0x89'));for(const _0x123896 of this[_0x1099('0xf6')]())if(_0x123896['author']['id']==_0x51d44a['id']&&_0x1099('0xed')==_0x123896['type']&&_0x123896[_0x1099('0xb0')]==_0x8d963f&&Ot(_0x123896,_0x392c0c)&&(_0x3f0a8a(_0x123896[_0x1099('0x3c')](),_0x5a16c4)||_0x3f0a8a(_0x5a16c4,_0x123896[_0x1099('0x3c')]()))){for(const _0x4d147f of _0x5a16c4)_0x123896[_0x1099('0x120')](_0x4d147f);return _0x123896;}for(const {suggestion:_0x2548c3,meta:_0x19b720}of this[_0x1099('0x10e')](_0x5a16c4,_0x1099('0xed'))){if(!_0x19b720[_0x1099('0x12')])continue;if(!this[_0x1099('0x117')]&&_0x19b720[_0x1099('0xd5')])continue;if(!Ot(_0x2548c3,_0x392c0c))continue;let _0x54ed78=!0x0;for(const _0x2d60a0 of _0x2548c3['getRanges']())for(const _0x5bca06 of _0x5a16c4)if(!_0x2d60a0[_0x1099('0x101')](_0x5bca06)){_0x54ed78=!0x1;break;}if(_0x54ed78)return _0x2548c3;}const _0x21e159=_0x308d28(),_0xef8c20=_0x51d44a['id'],_0x182c5b=_0x1099('0xb4')+_0x8d963f,_0x548f31=this[_0x1099('0x8')]({'id':_0x21e159,'type':_0x182c5b,'createdAt':new Date(),'authorId':_0xef8c20,'attributes':_0x392c0c});for(const _0x42ef13 of _0x5a16c4)this[_0x1099('0xf4')](_0x182c5b,_0x21e159,_0xef8c20,_0x42ef13,_0x2c5f77[_0x1099('0x52')]());return _0x548f31;}['markInlineFormat'](_0x22459a,_0x35718f,_0x5882b0=null,_0x50bc01={}){if(_0x5882b0=_0x5882b0||Nt(_0x35718f),_0x22459a[_0x1099('0x8d')])return null;if('never'===this[_0x1099('0xa0')]){const _0x1c0c1b=this[_0x1099('0xae')]['getSuggestionCallback'](_0x1099('0x50'),_0x5882b0,_0x1099('0x107'));return this['forceDefaultExecution'](()=>_0x1c0c1b([_0x22459a],_0x35718f,_0x50bc01)),null;}const _0xa6b25a=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'],_0x11c40f=[];if(_0x1099('0x53')!==this[_0x1099('0xa0')])for(const {suggestion:_0x178101,meta:_0x516876}of this[_0x1099('0x10e')](_0x22459a,_0x1099('0xed')))_0x516876[_0x1099('0x12')]&&!_0x516876[_0x1099('0x39')]&&_0x11c40f['push'](..._0x178101[_0x1099('0x3c')]());const _0x2729ef=function(_0x54d645,_0x56ba11){const _0x5f266e=[];for(const _0xb90a57 of _0x56ba11){const _0x35060c=_0x54d645['getIntersection'](_0xb90a57);_0x35060c&&_0x5f266e[_0x1099('0x106')](_0x35060c);}return _0x5f266e;}(_0x22459a,_0x11c40f),_0x2d0060=function(_0x5bb673,_0x20f363){const _0x3b73ca=[_0x5bb673];for(const _0x131b46 of _0x20f363){let _0x590197=0x0;for(;_0x590197<_0x3b73ca[_0x1099('0x110')];){const _0x4fa850=_0x3b73ca[_0x590197]['getDifference'](_0x131b46);_0x3b73ca[_0x1099('0x95')](_0x590197,0x1,..._0x4fa850),_0x590197+=_0x4fa850['length'];}}return _0x3b73ca;}(_0x22459a,_0x11c40f);_0x2729ef[_0x1099('0x110')]&&this[_0x1099('0xa3')][_0x1099('0x49')](()=>{for(const _0x1ec4b2 of _0x2729ef){const _0x33a59d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5882b0,_0x1099('0x107'));this['forceDefaultExecution'](()=>_0x33a59d([_0x1ec4b2],_0x35718f,_0x50bc01));}});for(const _0x19f1e2 of _0x2d0060){let _0x38553a=null,_0x2eccec=_0x19f1e2[_0x1099('0x31')],_0x3037b4=_0x19f1e2['end'];for(const {suggestion:_0x2c1d3f,meta:_0xd01e28}of this['_findSuggestions'](_0x19f1e2,_0x1099('0x50'))){if(!_0xd01e28[_0x1099('0x12')])continue;if(_0x2c1d3f[_0x1099('0xb0')]!=_0x5882b0)continue;if(!Ot(_0x2c1d3f,_0x50bc01))continue;const _0x19e125=_0x2c1d3f[_0x1099('0xb7')]();if(_0x19e125[_0x1099('0x101')](_0x19f1e2,!0x0))return null;_0x2eccec=_0x2eccec[_0x1099('0x11c')](_0x19e125[_0x1099('0x31')])?_0x2eccec:_0x19e125[_0x1099('0x31')],_0x3037b4=_0x3037b4[_0x1099('0x81')](_0x19e125['end'])?_0x3037b4:_0x19e125[_0x1099('0x97')],_0x38553a?_0x19e125[_0x1099('0x31')][_0x1099('0x11c')](_0x38553a[_0x1099('0xb7')]()['start'])?(_0x38553a[_0x1099('0x13e')](),_0x38553a=_0x2c1d3f):_0x2c1d3f[_0x1099('0x13e')]():_0x38553a=_0x2c1d3f;}const _0x369bb5=this[_0x1099('0xa3')][_0x1099('0xef')](_0x2eccec,_0x3037b4);if(_0x38553a)this[_0x1099('0xbc')](_0x38553a,_0x369bb5);else{const _0x466d02=_0x308d28(),_0x5e5330=_0xa6b25a['id'];this[_0x1099('0x8')]({'id':_0x466d02,'type':_0x1099('0x122')+_0x5882b0,'data':_0x35718f,'createdAt':new Date(),'authorId':_0x5e5330,'attributes':_0x50bc01}),this['_addSuggestionMarker'](_0x1099('0x122')+_0x5882b0,_0x466d02,_0x5e5330,_0x369bb5);}}return null;}[_0x1099('0xc7')](_0x2f1638,_0x1e32c3,_0x2e7377=[],_0x2518a4=null,_0x477d29={}){_0x1e32c3[_0x1099('0x7e')]||(_0x1e32c3['formatGroupId']=_0x1e32c3[_0x1099('0x75')]),_0x1e32c3[_0x1099('0x127')]=_0x2f1638['is']('range'),_0x2518a4=_0x2518a4||Nt(_0x1e32c3);const _0x11d3bc=_0x2e7377[_0x1099('0xd0')](_0x4a6467=>jt(_0x4a6467,this['_model'])),_0x4332c9=_0x2f1638['is'](_0x1099('0x135'))?_0x2f1638:jt(_0x2f1638,this[_0x1099('0xa3')]);if(_0x1099('0x71')===this['_trackFormatChanges']){const _0x115292=this['_suggestionFactory'][_0x1099('0x113')](_0x1099('0x7d'),_0x2518a4,_0x1099('0x107'));return this['forceDefaultExecution'](()=>_0x115292([_0x4332c9],_0x1e32c3,_0x477d29)),null;}_0x11d3bc[_0x1099('0x106')](_0x4332c9);let _0xec3478=!0x0;for(const _0x3c90e0 of _0x11d3bc)if(!this['_rangeIsInLocalUserInsertion'](_0x3c90e0)){_0xec3478=!0x1;break;}if(_0xec3478&&'always'!==this[_0x1099('0xa0')]){const _0x320917=this['_suggestionFactory'][_0x1099('0x113')](_0x1099('0x7d'),_0x2518a4,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x320917([_0x4332c9],_0x1e32c3,_0x477d29)),null;}let _0x55111c=null,_0x258dbb=_0x4332c9[_0x1099('0x31')],_0x4a43f9=_0x4332c9['end'];for(const {suggestion:_0x5f29d7,meta:_0x200e46}of this[_0x1099('0x10e')](_0x4332c9,_0x1099('0x7d'))){if(!_0x200e46['isOwn'])continue;if(_0x200e46['isNextTo']||_0x200e46[_0x1099('0xd5')]||_0x200e46[_0x1099('0x39')])continue;if(_0x5f29d7[_0x1099('0xd')][_0x1099('0x7e')]!=_0x1e32c3[_0x1099('0x7e')])continue;if(!Ot(_0x5f29d7,_0x477d29))continue;const _0x320f0c=_0x5f29d7[_0x1099('0xb7')]();if(_0x5f29d7[_0x1099('0xb0')]==_0x2518a4){if(_0x320f0c[_0x1099('0x101')](_0x4332c9,!0x0))return null;_0x258dbb=_0x258dbb['isBefore'](_0x320f0c[_0x1099('0x31')])?_0x258dbb:_0x320f0c['start'],_0x4a43f9=_0x4a43f9[_0x1099('0x81')](_0x320f0c['end'])?_0x4a43f9:_0x320f0c[_0x1099('0x97')],_0x55111c?_0x320f0c[_0x1099('0x31')][_0x1099('0x11c')](_0x55111c['getFirstRange']()[_0x1099('0x31')])?(_0x55111c[_0x1099('0x13e')](),_0x55111c=_0x5f29d7):_0x5f29d7[_0x1099('0x13e')]():_0x55111c=_0x5f29d7;}else{const _0x3842a5=_0x4332c9[_0x1099('0xc8')](_0x320f0c);this['_cutOutSuggestionMarker'](_0x5f29d7,_0x3842a5);}}const _0x4aad20=this[_0x1099('0x1f')]['plugins'][_0x1099('0x36')](_0x1099('0x9'))['me'],_0x18f598=_0x308d28(),_0x493822=_0x4aad20['id'];if(_0x55111c)return this['_setSuggestionRange'](_0x55111c,this[_0x1099('0xa3')][_0x1099('0xef')](_0x258dbb,_0x4a43f9)),_0x55111c;{const _0xf68cf=this[_0x1099('0x8')]({'id':_0x18f598,'type':'formatBlock:'+_0x2518a4,'data':_0x1e32c3,'createdAt':new Date(),'authorId':_0x493822,'attributes':_0x477d29});return this[_0x1099('0xf4')](_0x1099('0x11d')+_0x2518a4,_0x18f598,_0x493822,this['_model'][_0x1099('0xef')](_0x258dbb,_0x4a43f9)),_0xf68cf;}}[_0x1099('0xbf')](_0x30e5e0,_0xe201c2,_0x44e197=[],_0x15d9e7=null,_0x118ad2={}){_0xe201c2[_0x1099('0x7e')]||(_0xe201c2[_0x1099('0x7e')]=_0xe201c2['commandName']);const _0x8a6ee8=_0x30e5e0[0x0];_0xe201c2[_0x1099('0x127')]=_0x8a6ee8['is'](_0x1099('0x135')),_0x15d9e7=_0x15d9e7||Nt(_0xe201c2);const _0x44c56d=_0x44e197['map'](_0x5f03c7=>jt(_0x5f03c7,this['_model'])),_0x31e7f4=_0x8a6ee8['is'](_0x1099('0x135'))?_0x30e5e0:_0x30e5e0[_0x1099('0xd0')](_0x4aad50=>jt(_0x4aad50,this[_0x1099('0xa3')]));if(_0x1099('0x71')===this[_0x1099('0xa0')]){const _0x5e9388=this[_0x1099('0xae')][_0x1099('0x113')](_0x1099('0x7d'),_0x15d9e7,'accept');return this[_0x1099('0xfd')](()=>_0x5e9388(_0x31e7f4,_0xe201c2,_0x118ad2)),null;}_0x44c56d['push'](..._0x31e7f4);let _0x1f9918=!0x0;for(const _0x4a1f73 of _0x44c56d)if(!this[_0x1099('0x62')](_0x4a1f73)){_0x1f9918=!0x1;break;}if(_0x1f9918&&_0x1099('0x53')!==this[_0x1099('0xa0')]){const _0x41b08b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15d9e7,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x41b08b(_0x31e7f4,_0xe201c2,_0x118ad2)),null;}const _0xe06005=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'];for(const _0x410e50 of this[_0x1099('0xf6')]()){if(_0x410e50[_0x1099('0x96')]['id']!=_0xe06005['id'])continue;if(_0x1099('0x7d')!=_0x410e50[_0x1099('0x1b')]||_0x410e50[_0x1099('0xd')]['formatGroupId']!=_0xe201c2[_0x1099('0x7e')])continue;if(!Ot(_0x410e50,_0x118ad2))continue;const _0x1e519a=_0x410e50[_0x1099('0xb0')]==_0x15d9e7;for(let _0x49816f=0x0;_0x49816f<_0x31e7f4[_0x1099('0x110')];_0x49816f++){const _0x55a827=_0x31e7f4[_0x49816f];for(const _0x1e833c of _0x410e50[_0x1099('0x125')]()){const _0x27fa72=_0x1e833c[_0x1099('0x4a')]();if(_0x55a827[_0x1099('0x9d')](_0x27fa72)){_0x1e519a?(_0x31e7f4[_0x1099('0x95')](_0x49816f,0x1),_0x49816f--):_0x410e50[_0x1099('0xc3')](_0x1e833c['name']);break;}}}}if(0x0==_0x31e7f4[_0x1099('0x110')])return null;const _0x4411e1=this[_0x1099('0xae')]['getSuggestionCallback']('formatBlock',_0x15d9e7,'join');for(const _0x3e9da6 of this[_0x1099('0xf6')]())if(_0x3e9da6[_0x1099('0x96')]['id']==_0xe06005['id']&&'formatBlock'==_0x3e9da6[_0x1099('0x1b')]&&_0x3e9da6['data'][_0x1099('0x7e')]==_0xe201c2[_0x1099('0x7e')]&&_0x3e9da6[_0x1099('0xb0')]==_0x15d9e7&&Ot(_0x3e9da6,_0x118ad2)&&(_0x4411e1(_0x3e9da6[_0x1099('0x3c')](),_0x31e7f4)||_0x4411e1(_0x31e7f4,_0x3e9da6[_0x1099('0x3c')]()))){for(const _0x5d20f3 of _0x31e7f4)_0x3e9da6['addRange'](_0x5d20f3);return _0x3e9da6;}const _0x1fa2e8=_0x308d28(),_0x4f760e=_0xe06005['id'],_0xd97fee=_0x1099('0x11d')+_0x15d9e7,_0x1225c9=this[_0x1099('0x8')]({'id':_0x1fa2e8,'type':_0xd97fee,'data':_0xe201c2,'createdAt':new Date(),'authorId':_0x4f760e,'attributes':_0x118ad2});for(const _0x4c0569 of _0x31e7f4)this[_0x1099('0xf4')](_0xd97fee,_0x1fa2e8,_0x4f760e,_0x4c0569,_0x2c5f77[_0x1099('0x52')]());return _0x1225c9;}[_0x1099('0x13b')](_0x28f476,_0x1c00b0=null,_0x2f14bb={}){if(_0x28f476[_0x1099('0x8d')])return null;const _0x4bc93c=this[_0x1099('0x1f')]['plugins'][_0x1099('0x36')]('Users')['me'],_0x48c7d3=new _0x582436(_0x28f476[_0x1099('0x31')],_0x28f476['end']);for(const {suggestion:_0x421918,meta:_0x1a7abe}of this[_0x1099('0x10e')](_0x48c7d3,_0x1099('0xed')))if(_0x1a7abe[_0x1099('0x12')]&&!_0x1a7abe[_0x1099('0x5d')]){if(_0x421918[_0x1099('0x20')]){const _0x285721=_0x421918[_0x1099('0x3c')]()[_0x1099('0xd4')](_0x1cc2e7=>'$graveyard'!=_0x1cc2e7[_0x1099('0xa8')][_0x1099('0xb')]);_0x285721[_0x1099('0x17')](_0x5c6a36=>_0x48c7d3[_0x1099('0x101')](_0x5c6a36,!0x0))&&_0x421918[_0x1099('0x33')]();if(_0x285721['some'](_0x14a107=>_0x14a107[_0x1099('0x101')](_0x48c7d3,!0x0))){const _0x426d0b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c00b0,'accept');return this[_0x1099('0xfd')](()=>_0x426d0b([_0x48c7d3],null,_0x2f14bb)),null;}}else{const _0x5b65da=_0x48c7d3[_0x1099('0xc8')](_0x421918[_0x1099('0xb7')]());null!==_0x5b65da&&_0x421918[_0x1099('0x114')]([_0x5b65da],null,_0x2f14bb);}}if(_0x48c7d3[_0x1099('0x5')](),_0x48c7d3[_0x1099('0x8d')]||'$graveyard'==_0x48c7d3['root']['rootName'])return null;let _0x4d298d=null,_0x3b83f7=_0x48c7d3[_0x1099('0x31')],_0x573480=_0x48c7d3[_0x1099('0x97')];const _0x2e8ea1=this[_0x1099('0x10e')](_0x48c7d3,_0x1099('0x13f'));for(const {suggestion:_0xca45be,meta:_0x1b17a2}of _0x2e8ea1){const _0x4a6d48=this['_model'][_0x1099('0xef')](_0x3b83f7,_0x573480);if(_0x1b17a2['isOwn']&&(this[_0x1099('0x117')]||!_0x1b17a2[_0x1099('0xd5')]&&!_0x1b17a2['isInsideObject'])){if(_0xca45be[_0x1099('0x20')]){if(!Ot(_0xca45be,_0x2f14bb))continue;let _0x139211=!0x0;for(const _0x4116d7 of _0xca45be[_0x1099('0x3c')]()){if(_0x4116d7[_0x1099('0x101')](_0x4a6d48,!0x0))return _0xca45be;_0x4a6d48['containsRange'](_0x4116d7)||(_0x139211=!0x1);}_0x139211&&_0xca45be[_0x1099('0x33')]();}else{const _0x101f0d=_0xca45be[_0x1099('0xb7')]();if(_0x101f0d['containsRange'](_0x4a6d48,!0x0))return _0xca45be;if(!Ot(_0xca45be,_0x2f14bb)){_0x4a6d48['containsRange'](_0x101f0d)?_0xca45be[_0x1099('0x13e')]():_0x101f0d[_0x1099('0x32')](_0x3b83f7)?_0x3b83f7=_0x101f0d[_0x1099('0x97')]:_0x101f0d['containsPosition'](_0x573480)&&(_0x573480=_0x101f0d[_0x1099('0x31')]);continue;}_0x3b83f7=_0x3b83f7[_0x1099('0x11c')](_0x101f0d[_0x1099('0x31')])?_0x3b83f7:_0x101f0d[_0x1099('0x31')],_0x573480=_0x573480['isAfter'](_0x101f0d[_0x1099('0x97')])?_0x573480:_0x101f0d[_0x1099('0x97')],_0x2f14bb=Object['assign']({},_0xca45be[_0x1099('0x104')]),_0x4d298d?_0x101f0d[_0x1099('0x31')][_0x1099('0x11c')](_0x4d298d[_0x1099('0xb7')]()[_0x1099('0x31')])?(_0x4d298d[_0x1099('0x13e')](),_0x4d298d=_0xca45be):_0xca45be['removeMarkers']():_0x4d298d=_0xca45be;}}}if(_0x4d298d)return this['_setSuggestionRange'](_0x4d298d,this['_model'][_0x1099('0xef')](_0x3b83f7,_0x573480)),_0x4d298d;{const _0x98790d=_0x308d28(),_0x3ccfb3=this[_0x1099('0xa3')][_0x1099('0xef')](_0x3b83f7,_0x573480),_0x4e95b6=_0x4bc93c['id'],_0x45b843=_0x1c00b0?_0x1099('0x10')+_0x1c00b0:_0x1099('0x13f'),_0x26db54=this[_0x1099('0x8')]({'id':_0x98790d,'type':_0x45b843,'createdAt':new Date(),'authorId':_0x4e95b6,'attributes':_0x2f14bb});return this[_0x1099('0xf4')](_0x45b843,_0x98790d,_0x4e95b6,_0x3ccfb3),_0x26db54;}}['markMultiRangeDeletion'](_0x594cdf,_0x2a8a6d='multi',_0x52a179={}){const _0x29d9a0=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'],_0x49e6ac=_0x594cdf[_0x1099('0xd0')](_0x3d9ad1=>new _0x582436(_0x3d9ad1[_0x1099('0x31')],_0x3d9ad1[_0x1099('0x97')])),_0x5f5a25=new Set();for(const {suggestion:_0x53947a,meta:_0x23fcae}of this[_0x1099('0x10e')](_0x49e6ac,_0x1099('0xed')))_0x23fcae[_0x1099('0x12')]&&!_0x23fcae['isNextTo']&&_0x5f5a25['add'](_0x53947a);for(const _0x398fe0 of _0x5f5a25)if(_0x398fe0[_0x1099('0x20')]){const _0x1985d2=_0x398fe0[_0x1099('0x3c')]();(!_0x398fe0[_0x1099('0x104')]||!_0x398fe0['attributes'][_0x1099('0xf7')])&&(_0x1985d2[_0x1099('0x17')](_0x4ba33b=>_0x49e6ac[_0x1099('0x90')](_0x5d539d=>_0x5d539d['containsRange'](_0x4ba33b,!0x0)))&&_0x398fe0[_0x1099('0x33')]());if(_0x49e6ac[_0x1099('0x17')](_0xe0b42=>_0x1985d2[_0x1099('0x90')](_0x103908=>_0x103908[_0x1099('0x101')](_0xe0b42,!0x0)))){const _0x13bd91=this[_0x1099('0xae')][_0x1099('0x113')](_0x1099('0x13f'),_0x2a8a6d,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x13bd91(_0x594cdf,null,_0x52a179)),null;}}else{const _0x205678=_0x398fe0['getFirstRange']();_0x49e6ac['some'](_0x1eff88=>_0x1eff88[_0x1099('0x101')](_0x205678,!0x0))&&_0x398fe0[_0x1099('0x33')]();if(_0x49e6ac['every'](_0x3e9f5c=>_0x205678[_0x1099('0x101')](_0x3e9f5c,!0x0))){const _0x2a5154=this[_0x1099('0xae')][_0x1099('0x113')](_0x1099('0x13f'),_0x2a8a6d,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x2a5154(_0x49e6ac,null,_0x52a179)),null;}}const _0x1f1349=this[_0x1099('0xae')][_0x1099('0x113')]('deletion',_0x2a8a6d,_0x1099('0x89'));let _0x480f6c=null;for(const _0x3324ce of this[_0x1099('0xf6')]())if(_0x3324ce[_0x1099('0x96')]['id']==_0x29d9a0['id']&&_0x3324ce[_0x1099('0x4f')]&&_0x1099('0x13f')==_0x3324ce[_0x1099('0x1b')]&&_0x3324ce[_0x1099('0xb0')]==_0x2a8a6d&&Ot(_0x3324ce,_0x52a179)&&(_0x1f1349(_0x3324ce[_0x1099('0x3c')](),_0x49e6ac)||_0x1f1349(_0x49e6ac,_0x3324ce[_0x1099('0x3c')]()))){if(_0x480f6c){if(_0x3324ce['commentThread']&&_0x3324ce[_0x1099('0xb8')]['length'])continue;for(const _0x224c9d of _0x3324ce[_0x1099('0x3c')]())_0x480f6c[_0x1099('0xea')](_0x224c9d)||_0x480f6c[_0x1099('0x120')](_0x224c9d);_0x3324ce[_0x1099('0x13e')]();}else{_0x480f6c=_0x3324ce;for(const _0x3bf76f of _0x49e6ac)_0x3324ce[_0x1099('0xea')](_0x3bf76f)||_0x3324ce[_0x1099('0x120')](_0x3bf76f);}}if(_0x480f6c)return _0x480f6c;_0x5f5a25[_0x1099('0x1a')]();for(const {suggestion:_0x50768d,meta:_0x51332f}of this[_0x1099('0x10e')](_0x49e6ac,_0x1099('0x13f')))_0x51332f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x51332f[_0x1099('0xd5')]&&!_0x51332f[_0x1099('0x39')])&&Ot(_0x50768d,_0x52a179)&&_0x5f5a25[_0x1099('0x98')](_0x50768d);for(const _0x3f91de of _0x5f5a25){const _0x42bd8c=_0x3f91de[_0x1099('0x3c')]();if(!_0x52a179||!_0x52a179[_0x1099('0xf7')]){if(_0x49e6ac['every'](_0x5a583d=>_0x42bd8c['some'](_0x44ebfa=>_0x44ebfa['containsRange'](_0x5a583d,!0x0))))return _0x3f91de;}(!_0x3f91de['attributes']||!_0x3f91de[_0x1099('0x104')][_0x1099('0xf7')])&&(_0x42bd8c[_0x1099('0x17')](_0x18c552=>_0x49e6ac[_0x1099('0x90')](_0x5447b4=>_0x5447b4['containsRange'](_0x18c552,!0x0)))&&_0x3f91de[_0x1099('0x33')]());}const _0x5b5196=_0x308d28(),_0x22e162=_0x29d9a0['id'],_0x4a710d=_0x1099('0x10')+_0x2a8a6d,_0x73bb55=this['_setSuggestionData']({'id':_0x5b5196,'type':_0x4a710d,'createdAt':new Date(),'authorId':_0x22e162,'attributes':_0x52a179});for(const _0x58cc37 of _0x49e6ac)_0x58cc37['detach'](),_0x58cc37[_0x1099('0x8d')]||'$graveyard'==_0x58cc37['root'][_0x1099('0xb')]||this[_0x1099('0xf4')](_0x4a710d,_0x5b5196,_0x22e162,_0x58cc37,_0x2c5f77[_0x1099('0x52')]());return _0x73bb55;}[_0x1099('0xbc')](_0x12cb78,_0x113395){const _0x395928=_0x12cb78[_0x1099('0x132')]();this[_0x1099('0xa3')][_0x1099('0x49')](_0x5a11bc=>{_0x5a11bc[_0x1099('0x121')](_0x395928,{'range':_0x113395});});}['_addThreadToSuggestion'](_0x33c781){const _0x502abe=_0x33c781['id'],_0x14a96f=this[_0x1099('0x1f')][_0x1099('0xc0')]['get'](_0x1099('0xe3'));this[_0x1099('0x2e')][_0x1099('0x85')](_0x502abe)||this[_0x1099('0x2e')][_0x1099('0x15')]({'channelId':_0x14a96f,'threadId':_0x502abe,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x27a228=this[_0x1099('0x2e')][_0x1099('0x84')](_0x502abe);_0x27a228[_0x1099('0x5f')]('isRemovable'),_0x27a228[_0x1099('0x70')]=!0x1,_0x33c781[_0x1099('0xb8')]=_0x27a228;}[_0x1099('0x26')](_0x224117,_0x43ca10,_0x5c351a,_0x5b21d5){if(_0x224117[_0x1099('0x1b')]!=_0x43ca10||_0x224117[_0x1099('0xb0')]!=_0x5c351a||_0x224117[_0x1099('0x34')]['id']!=_0x5b21d5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ae20b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x22a087,_0x558135){const _0x39829d=_0x22a087['getFirstRange']();if(_0x558135[_0x1099('0x9d')](_0x39829d))_0x22a087[_0x1099('0x13e')]();else{if(_0x39829d[_0x1099('0x101')](_0x558135)){const _0xfe77a=this['_model'][_0x1099('0x4b')](_0x558135[_0x1099('0x31')][_0x1099('0x10f')],_0x1099('0x97'));this[_0x1099('0xbc')](_0x22a087,this['_model']['createRange'](_0x39829d[_0x1099('0x31')],_0xfe77a));const _0x594309=_0x308d28(),_0x5b2eeb=_0x22a087[_0x1099('0x34')]['id'],_0x263f20=_0x22a087[_0x1099('0x1b')]+':'+_0x22a087[_0x1099('0xb0')];this[_0x1099('0x8')]({'id':_0x594309,'type':_0x263f20,'createdAt':new Date(),'authorId':_0x5b2eeb,'data':_0x22a087[_0x1099('0xd')],'attributes':_0x22a087['attributes']});const _0x1ccdab=this[_0x1099('0xa3')][_0x1099('0x4b')](_0x558135[_0x1099('0x97')]['parent'],_0x1099('0x80')),_0x92470e=this[_0x1099('0xa3')][_0x1099('0xef')](_0x1ccdab,_0x39829d[_0x1099('0x97')]);this[_0x1099('0xf4')](_0x263f20,_0x594309,_0x5b2eeb,_0x92470e);}else{if(_0x39829d['containsPosition'](_0x558135[_0x1099('0x31')])){const _0x5eed7e=this['_model']['createPositionAt'](_0x558135['start'][_0x1099('0x10f')],_0x1099('0x97'));this[_0x1099('0xbc')](_0x22a087,this[_0x1099('0xa3')][_0x1099('0xef')](_0x39829d[_0x1099('0x31')],_0x5eed7e));}else{const _0x5cebb5=this[_0x1099('0xa3')]['createPositionAt'](_0x558135[_0x1099('0x97')][_0x1099('0x2c')],_0x1099('0x80'));this[_0x1099('0xbc')](_0x22a087,this[_0x1099('0xa3')][_0x1099('0xef')](_0x5cebb5,_0x39829d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1e4899){for(const {suggestion:_0x4c8756,meta:_0x2c2c1a}of this['_findSuggestions'](_0x1e4899,_0x1099('0xed'))){if(!_0x2c2c1a[_0x1099('0x12')])continue;const _0x5075f4=_0x4c8756[_0x1099('0x3c')]();for(const _0x469811 of _0x5075f4)if(!_0x1e4899['getDifference'](_0x469811)['length'])return!0x0;}return!0x1;}[_0x1099('0xa9')](_0x1eddec){const _0x4ba8b5=this['editor'][_0x1099('0xe8')]['get']('Users')['getUser'](_0x1eddec);if(!_0x4ba8b5)throw new _0x3ae20b('track-changes-user-not-found',this);return _0x4ba8b5;}['_getExternalAuthor'](_0x170891){const _0x115372=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9')),_0x3a55be=_0x51d38b(_0x1099('0x10c')+_0x170891),_0x11434b=_0x115372[_0x1099('0xa1')](_0x3a55be);return _0x11434b||_0x115372[_0x1099('0x7')]({'id':_0x3a55be,'name':_0x170891});}[_0x1099('0x27')](_0x5c6384,_0x45b93a,_0x31edfe,_0x5cc99e,_0x1b0b23){const _0xf1bde7=this[_0x1099('0xa9')](_0x5cc99e),_0x58c284=this[_0x1099('0xae')]['buildSuggestion'](_0x5c6384,_0x45b93a,_0x31edfe,_0xf1bde7,_0x1b0b23,_0x5716db=>this[_0x1099('0x83')](_0x31edfe,{'attributes':_0x5716db}));return this[_0x1099('0x66')](_0x58c284,_0x1099('0x107'),()=>{this[_0x1099('0x83')](_0x31edfe,{'state':_0x1099('0x67')});},{'priority':_0x1099('0xa7')}),this['listenTo'](_0x58c284,_0x1099('0x33'),()=>{this['_updateSuggestionData'](_0x31edfe,{'state':_0x1099('0x6d')});},{'priority':'high'}),this[_0x1099('0x63')][_0x1099('0x51')](_0x31edfe,_0x58c284),this[_0x1099('0xd8')][_0x1099('0x51')](_0x58c284,_0x1099('0xac')),_0x58c284;}['_splitMarkerName'](_0x2ab235){const _0x35f163=_0x2ab235[_0x1099('0x134')](':');return{'group':_0x35f163[0x0],'type':_0x35f163[0x1],'subType':_0x35f163[_0x1099('0x110')]>=0x5?_0x35f163[0x2]:null,'id':_0x35f163[_0x1099('0x110')]<0x5?_0x35f163[0x2]:_0x35f163[0x3],'authorId':_0x35f163[_0x1099('0x110')]<0x5?_0x35f163[0x3]:_0x35f163[0x4],'markerCount':0x6==_0x35f163[_0x1099('0x110')]?_0x35f163[0x5]:null};}[_0x1099('0x76')](_0x112f3e,_0x3c6fa7,_0x39e6b2){const _0x44f66e=_0x112f3e[_0x1099('0xb7')](),_0x597184=_0x44f66e[_0x1099('0x31')],_0x36e12c=_0x44f66e[_0x1099('0x97')];this[_0x1099('0xbc')](_0x112f3e,this[_0x1099('0xa3')][_0x1099('0xef')](_0x597184,_0x3c6fa7));const _0x2ce866=_0x308d28(),_0x453f1a=_0x112f3e[_0x1099('0x34')]['id'],_0x3fd4c1=_0x112f3e[_0x1099('0x1b')]+(_0x112f3e[_0x1099('0xb0')]?':'+_0x112f3e[_0x1099('0xb0')]:'');this[_0x1099('0x8')]({'id':_0x2ce866,'type':_0x3fd4c1,'createdAt':new Date(),'authorId':_0x453f1a,'originalSuggestionId':_0x112f3e['id'],'attributes':_0x112f3e[_0x1099('0x104')],'data':_0x112f3e[_0x1099('0xd')]}),_0x1099('0x7d')==_0x112f3e[_0x1099('0x1b')]&&(_0x39e6b2=this[_0x1099('0xa3')]['createPositionBefore'](_0x39e6b2['parent'])),this['_addSuggestionMarker'](_0x3fd4c1,_0x2ce866,_0x453f1a,this['_model'][_0x1099('0xef')](_0x39e6b2,_0x36e12c));}[_0x1099('0x10e')](_0x346d5e,_0x2ed3a0=null){const _0x221821=[],_0x5af8e0=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')]('Users')['me'];Array['isArray'](_0x346d5e)||(_0x346d5e=[_0x346d5e]);for(const _0x1f229f of this[_0x1099('0xf6')]()){if(!_0x1f229f[_0x1099('0x4f')])continue;if(_0x2ed3a0&&_0x1f229f['type']!=_0x2ed3a0)continue;let _0x32fe99=!0x1;for(const _0xfa4266 of _0x1f229f[_0x1099('0x3c')]()){for(const _0x50e7e1 of _0x346d5e){const _0x22c898=_0x50e7e1[_0x1099('0x31')]['isEqual'](_0xfa4266[_0x1099('0x97')])||_0x50e7e1[_0x1099('0x97')][_0x1099('0x9d')](_0xfa4266[_0x1099('0x31')]);if(_0x22c898||_0x50e7e1[_0x1099('0xc8')](_0xfa4266)){const _0x2f9714=_0x50e7e1[_0x1099('0x101')](_0xfa4266)&&_t(this[_0x1099('0xa3')][_0x1099('0x11e')],_0xfa4266['start'],_0x50e7e1),_0x328a1e=_0xfa4266[_0x1099('0x101')](_0x50e7e1)&&_t(this[_0x1099('0xa3')][_0x1099('0x11e')],_0x50e7e1[_0x1099('0x31')],_0xfa4266);_0x221821[_0x1099('0x106')]({'suggestion':_0x1f229f,'meta':{'isOwn':_0x5af8e0==_0x1f229f['author'],'isNextTo':_0x22c898,'isInsideObject':_0x2f9714,'containsRangeInObject':_0x328a1e}}),_0x32fe99=!0x0;break;}}if(_0x32fe99)break;}}return _0x221821;}['_addSuggestionMarker'](_0x1523c2,_0x1f7670,_0x259edd,_0x1ef299,_0x55e7eb){this[_0x1099('0xa3')][_0x1099('0x49')](_0x228dd8=>{let _0x11f0b2=_0x1099('0x13d')+_0x1523c2+':'+_0x1f7670+':'+_0x259edd;_0x55e7eb&&(_0x11f0b2=_0x11f0b2+':'+_0x55e7eb),_0x228dd8[_0x1099('0xee')](_0x11f0b2,{'range':_0x1ef299,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1099('0xce')](_0x4f9bff){const _0x4fb768=_0x4f9bff[_0x1099('0x3a')],_0x583442=_0x4f9bff[_0x1099('0xdf')];_0x4f9bff[_0x1099('0x3a')]=null,null!=_0x4fb768&&(_0x4fb768[_0x1099('0xdf')]=null),_0x4f9bff[_0x1099('0xdf')]=null,null!=_0x583442&&(_0x583442[_0x1099('0x3a')]=null),_0x1099('0xf5')==this[_0x1099('0xd8')][_0x1099('0x36')](_0x4f9bff)&&(this[_0x1099('0xd8')][_0x1099('0x51')](_0x4f9bff,'removed'),this[_0x1099('0xc1')](_0x1099('0x141'),_0x4f9bff,_0x4fb768,_0x583442));}[_0x1099('0x8')](_0x49536d){const _0xc323ab=_0x49536d['id'],_0x2ec1c2=this['addSuggestionData'](_0x49536d);if(this[_0x1099('0x12c')]&&this[_0x1099('0x12c')][_0x1099('0x129')]){const _0x2c0f70=this[_0x1099('0x1f')]['plugins'][_0x1099('0x36')](_0x1099('0xcd')),_0xefc558=_0x2ec1c2[_0x1099('0x133')],_0x444c49=_0x2ec1c2[_0x1099('0xb0')]?_0x2ec1c2['type']+':'+_0x2ec1c2['subType']:_0x2ec1c2['type'],_0x5ed3ce=this[_0x1099('0x1f')][_0x1099('0x54')],_0x552ec5=_0x2c0f70[_0x1099('0x98')](_0x6b0c5d(_0x5ed3ce,_0x1099('0xf0'))),_0x15153c={'id':_0xc323ab,'type':_0x444c49,'hasComments':_0xefc558,'data':_0x49536d[_0x1099('0xd')]||null,'originalSuggestionId':_0x49536d['originalSuggestionId']||null,'attributes':_0x2ec1c2[_0x1099('0x104')]};this[_0x1099('0x12c')][_0x1099('0x129')](_0x15153c)['then'](_0x1d4532=>{_0x2ec1c2[_0x1099('0x69')]=!0x0,_0x2c0f70['remove'](_0x552ec5),_0x1d4532&&_0x1d4532['createdAt']&&(this['_suggestions']['get'](_0xc323ab)[_0x1099('0x9a')]=_0x1d4532['createdAt']);})[_0x1099('0xfa')](_0x4d8fdf=>{throw _0x213ab2(_0x1099('0x10a')),this['editor'][_0x1099('0x6b')][_0x1099('0x45')]({'isUndoable':!0x1},()=>{_0x2ec1c2[_0x1099('0x33')]();}),_0x2ec1c2['stopListening'](),this[_0x1099('0x63')]['delete'](_0x2ec1c2['id']),this[_0x1099('0xd8')][_0x1099('0x8c')](_0x2ec1c2),_0x4d8fdf;});}return _0x2ec1c2;}[_0x1099('0x83')](_0x33dde7,_0x56fdd7){const _0x89f045=this['editor'][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0xcd')),_0x166abf=this[_0x1099('0xcf')](_0x33dde7);if(this['_adapter']&&this[_0x1099('0x12c')][_0x1099('0xdd')]){if(_0x166abf[_0x1099('0x69')]){const _0xde06f7=_0x89f045[_0x1099('0x98')](_0x6b0c5d(this[_0x1099('0x1f')][_0x1099('0x54')],_0x1099('0xf0')));this[_0x1099('0x12c')][_0x1099('0xdd')](_0x33dde7,_0x56fdd7)[_0x1099('0xfb')](()=>{_0x89f045[_0x1099('0x4e')](_0xde06f7);});}else _0x166abf['on'](_0x1099('0x5c'),()=>{this[_0x1099('0x83')](_0x33dde7,_0x56fdd7);});}}[_0x1099('0xf')](_0x1d5b87){if(!this['_adapter']||!this[_0x1099('0x12c')][_0x1099('0xcf')])throw new _0x3ae20b(_0x1099('0xc'),this);return this[_0x1099('0x12c')][_0x1099('0xcf')](_0x1d5b87);}['_handleNewSuggestionMarker'](_0x125a6b){const {id:_0x50de60,type:_0x181dc4,subType:_0x351e99,authorId:_0x5a0f69}=this[_0x1099('0x115')](_0x125a6b),_0x39bbe8=this['_suggestions'][_0x1099('0x36')](_0x50de60)||this[_0x1099('0x27')](_0x181dc4,_0x351e99,_0x50de60,_0x5a0f69,{});switch(this[_0x1099('0x26')](_0x39bbe8,_0x181dc4,_0x351e99,_0x5a0f69),this[_0x1099('0xd8')][_0x1099('0x36')](_0x39bbe8)){case _0x1099('0xac'):this[_0x1099('0xf')](_0x50de60)[_0x1099('0xfb')](_0xbcba88=>{let _0x55ceac=Promise['resolve']();_0xbcba88[_0x1099('0x133')]&&(_0x55ceac=this[_0x1099('0x2e')][_0x1099('0xe2')]({'channelId':this[_0x1099('0x1f')]['config'][_0x1099('0x36')](_0x1099('0xe3')),'threadId':_0x50de60})),_0x55ceac['then'](()=>{this[_0x1099('0x108')](_0xbcba88)['_saved']=!0x0;});}),this[_0x1099('0xd8')][_0x1099('0x51')](_0x39bbe8,_0x1099('0x2f'));break;case _0x1099('0xfe'):this[_0x1099('0x83')](_0x50de60,{'state':_0x1099('0x41')});case _0x1099('0x18'):this[_0x1099('0xd8')][_0x1099('0x51')](_0x39bbe8,_0x1099('0xf5')),this[_0x1099('0xc1')](_0x1099('0xff'),_0x39bbe8);break;case _0x1099('0xf5'):this[_0x1099('0xc1')](_0x1099('0x91'),_0x39bbe8);}return _0x39bbe8[_0x1099('0xb1')](_0x125a6b),_0x39bbe8;}['_refreshSuggestionsChain'](_0x5b4daa){const _0x645fce=Array[_0x1099('0x99')](_0x5b4daa)[_0x1099('0xd4')](_0x30998f=>!_0x30998f[_0x1099('0x20')]),_0x567a74=this[_0x1099('0xf6')]({'skipNotAttached':!0x0})[_0x1099('0xd4')](_0x583c89=>!_0x583c89[_0x1099('0x20')]),_0x24b70d=_0x567a74[_0x1099('0xd4')](_0x5be747=>!_0x5b4daa[_0x1099('0xdb')](_0x5be747)),_0x1bd30e=new Map(_0x567a74['map'](_0x397320=>[_0x397320,this[_0x1099('0xae')]['getSuggestionCallback'](_0x397320[_0x1099('0x1b')],_0x397320['subType'],_0x1099('0xd9'))])),_0x40f465=new Map(_0x567a74[_0x1099('0xd0')](_0x465d92=>[_0x465d92,_0x465d92[_0x1099('0xb7')]()])),_0x29fe30=new Set(),_0x5bebc7=new Set();for(let _0x374bba=0x0;_0x374bba<_0x645fce['length'];_0x374bba++)_0x1b2d80(_0x645fce[_0x374bba],_0x645fce,_0x374bba+0x1);for(let _0x92df3f=0x0;_0x92df3f<_0x645fce[_0x1099('0x110')];_0x92df3f++)_0x1b2d80(_0x645fce[_0x92df3f],_0x24b70d,0x0);for(let _0x100503=0x0;_0x100503<_0x645fce['length'];_0x100503++){const _0x1de6b2=_0x645fce[_0x100503];!_0x5bebc7[_0x1099('0xdb')](_0x1de6b2)&&_0x1de6b2[_0x1099('0x3a')]&&(_0x1de6b2[_0x1099('0x3a')][_0x1099('0xdf')]===_0x1de6b2&&(_0x1de6b2[_0x1099('0x3a')][_0x1099('0xdf')]=null),_0x1de6b2['previous']=null),!_0x29fe30[_0x1099('0xdb')](_0x1de6b2)&&_0x1de6b2[_0x1099('0xdf')]&&(_0x1de6b2[_0x1099('0xdf')]['previous']===_0x1de6b2&&(_0x1de6b2[_0x1099('0xdf')][_0x1099('0x3a')]=null),_0x1de6b2[_0x1099('0xdf')]=null);}function _0x1b2d80(_0x25963d,_0x387b52,_0xfa5c96){for(let _0x53c200=_0xfa5c96;_0x53c200<_0x387b52[_0x1099('0x110')];_0x53c200++){const _0x4400e3=_0x26abd5(_0x25963d,_0x387b52[_0x53c200]);_0x4400e3&&(_0x4400e3[0x0][_0x1099('0xdf')]=_0x4400e3[0x1],_0x4400e3[0x1]['previous']=_0x4400e3[0x0],_0x29fe30[_0x1099('0x98')](_0x4400e3[0x0]),_0x5bebc7['add'](_0x4400e3[0x1]));}}function _0x26abd5(_0x519616,_0x4d7151){if(_0x519616[_0x1099('0x96')]['id']!==_0x4d7151[_0x1099('0x96')]['id'])return null;const _0x4d4e53=_0x1bd30e[_0x1099('0x36')](_0x519616)(_0x519616,_0x4d7151,_0x40f465[_0x1099('0x36')](_0x519616),_0x40f465[_0x1099('0x36')](_0x4d7151));if(!_0x4d4e53)return null;return _0x1bd30e[_0x1099('0x36')](_0x4d7151)(_0x519616,_0x4d7151,_0x40f465[_0x1099('0x36')](_0x519616),_0x40f465[_0x1099('0x36')](_0x4d7151))?_0x4d4e53[0x1]['commentThread']&&_0x4d4e53[0x1]['commentThread'][_0x1099('0x110')]?null:_0x4d4e53:null;}}[_0x1099('0xf9')](_0x4fcb35){const _0x37f6bc=Array[_0x1099('0x99')](_0x4fcb35),_0x383170=this[_0x1099('0xf6')]({'skipNotAttached':!0x0}),_0x443834=_0x383170[_0x1099('0xd4')](_0x5666c9=>!_0x4fcb35['has'](_0x5666c9)),_0x5412e0=new Map(_0x37f6bc[_0x1099('0xd0')](_0x17183b=>[_0x17183b,this['_suggestionFactory'][_0x1099('0x113')](_0x17183b['type'],_0x17183b[_0x1099('0xb0')],_0x1099('0x89'))])),_0x8c3f3d=new Map(_0x383170[_0x1099('0xd0')](_0x1bcee1=>[_0x1bcee1,_0x1bcee1[_0x1099('0x3c')]()]));for(let _0x4c6f0f=0x0;_0x4c6f0f<_0x37f6bc['length'];_0x4c6f0f++){if(_0x4f7bd4(this,_0x37f6bc[_0x4c6f0f],_0x37f6bc,_0x4c6f0f+0x1))return!0x0;}for(let _0x5d3967=0x0;_0x5d3967<_0x37f6bc[_0x1099('0x110')];_0x5d3967++){if(_0x4f7bd4(this,_0x37f6bc[_0x5d3967],_0x443834,0x0))return!0x0;}return!0x1;function _0x4f7bd4(_0x5c39c6,_0xde49f3,_0x57abdf,_0x1e0033){for(let _0x41b53b=_0x1e0033;_0x41b53b<_0x57abdf['length'];_0x41b53b++){const _0x42ab25=_0x57abdf[_0x41b53b];if(_0x42ab25[_0x1099('0x1b')]!==_0xde49f3[_0x1099('0x1b')]||_0x42ab25[_0x1099('0x96')]['id']!==_0xde49f3[_0x1099('0x96')]['id']||_0x42ab25[_0x1099('0xb0')]!==_0xde49f3['subType'])continue;if(!Ut(_0xde49f3,_0x42ab25))continue;const _0x22a8c7=_0x5412e0[_0x1099('0x36')](_0xde49f3),_0x1ef37d=_0x8c3f3d['get'](_0xde49f3),_0xe58c1d=_0x8c3f3d[_0x1099('0x36')](_0x42ab25),_0x2e7546=_0xde49f3[_0x1099('0xb8')]&&_0xde49f3['commentThread'][_0x1099('0x110')],_0x812fd7=_0x42ab25[_0x1099('0xb8')]&&_0x42ab25[_0x1099('0xb8')][_0x1099('0x110')];if(!_0x2e7546&&_0x22a8c7(_0xe58c1d,_0x1ef37d))return _0x5c39c6['_joinSuggestions'](_0x42ab25,_0xde49f3),_0x8c3f3d[_0x1099('0x8c')](_0xde49f3),!0x0;if(!_0x812fd7&&_0x22a8c7(_0x1ef37d,_0xe58c1d))return _0x5c39c6['_joinSuggestions'](_0xde49f3,_0x42ab25),_0x8c3f3d['delete'](_0x42ab25),!0x0;}return!0x1;}}[_0x1099('0x24')](_0x40d6bf,_0x56e4e9){if(_0x40d6bf[_0x1099('0x20')])for(const _0x428fdf of _0x56e4e9[_0x1099('0x3c')]())_0x40d6bf[_0x1099('0x120')](_0x428fdf);else{const _0x30e5e6=_0x56e4e9['getFirstRange']()[_0x1099('0x97')];this[_0x1099('0xbc')](_0x40d6bf,this[_0x1099('0xa3')][_0x1099('0xef')](_0x40d6bf['getFirstRange']()['start'],_0x30e5e6));}_0x56e4e9['removeMarkers']();}}class Bt{constructor(_0x1aaca2){this[_0x1099('0xeb')]=_0x1aaca2,this[_0x1099('0xa3')]=_0x1aaca2[_0x1099('0x6b')],this[_0x1099('0x3d')]=new Map(),this[_0x1099('0x11b')]=new Map(),this['_registerDefaultCallbacks']();}[_0x1099('0xb9')](_0x557c69,_0x12e663,_0x3d62ac,_0x36db51,_0x3a99ce,_0x59c561){return new _0x2c5f77(this['_model'],{'type':_0x557c69,'subType':_0x12e663,'id':_0x3d62ac,'author':_0x36db51,'creator':_0x36db51,'attributes':_0x3a99ce,'onAttributesChange':_0x59c561,'onAccept':(..._0x4085a7)=>this['getSuggestionCallback'](_0x557c69,_0x12e663,_0x1099('0x107'))(..._0x4085a7),'onDiscard':(..._0x338e5d)=>this[_0x1099('0x113')](_0x557c69,_0x12e663,_0x1099('0x33'))(..._0x338e5d)});}['registerCustomCallback'](_0x4e94e5,_0x227193,_0x2da58d,_0x5b1dd4){const _0x4b5528=_0x4e94e5+':'+_0x227193+':'+_0x2da58d;this['_customCallbacks'][_0x1099('0x51')](_0x4b5528,_0x5b1dd4);}[_0x1099('0x113')](_0x5d8d5e,_0x3da223,_0x570130){const _0x1781f4=_0x5d8d5e+':'+_0x3da223+':'+_0x570130;return this['_customCallbacks'][_0x1099('0x36')](_0x1781f4)||this[_0x1099('0x11b')]['get'](_0x5d8d5e+':'+_0x570130);}['_registerDefaultCallbacks'](){const _0x44edb5=()=>!0x1,_0x11f77a=_0x579e09=>{_0x579e09[_0x1099('0x126')]((_0x1309bb,_0x1118ac)=>_0x1309bb[_0x1099('0x31')][_0x1099('0x11c')](_0x1118ac[_0x1099('0x31')])?0x1:-0x1),this[_0x1099('0xa3')][_0x1099('0x49')](_0x1f0c09=>{for(const _0x56d7fa of _0x579e09){let _0xa6be26;_0xa6be26=_0x56d7fa['end'][_0x1099('0xb5')]&&_0x56d7fa[_0x1099('0x97')][_0x1099('0x2c')]==_0x56d7fa[_0x1099('0x31')][_0x1099('0xf2')]?_0x1f0c09[_0x1099('0x82')](_0x56d7fa['start'][_0x1099('0xf2')],'on'):_0x1f0c09[_0x1099('0x82')](_0x56d7fa),this[_0x1099('0xa3')][_0x1099('0x2d')](_0xa6be26,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xd78582=(_0x2be835,_0x5592ed)=>{this[_0x1099('0xa3')][_0x1099('0x49')](_0x3fd921=>{const {commandName:_0x3be800,commandParams:_0xf4a5c4=[]}=_0x5592ed,_0x354a24=_0x2be835[_0x1099('0xd0')](_0x19c470=>(Mt(_0x19c470)&&(_0x19c470=this[_0x1099('0xa3')][_0x1099('0xef')](_0x19c470[_0x1099('0x97')])),_0x19c470))[_0x1099('0xd4')](_0x4ae607=>_0x1099('0x72')!==_0x4ae607['root'][_0x1099('0xb')]);if(_0x354a24[_0x1099('0x110')]<0x1)return;const _0x21d0bc=Array[_0x1099('0x99')](this['_model']['document']['selection'][_0x1099('0x3c')]())[_0x1099('0xd0')](_0x385d61=>_0x582436[_0x1099('0x2a')](_0x385d61));_0x3fd921[_0x1099('0x44')](_0x354a24);for(const _0x309c0b of this['_editor'][_0x1099('0xb2')][_0x1099('0xb2')]())_0x309c0b[_0x1099('0xab')]();_0xf4a5c4[_0x1099('0x106')]({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3be800,..._0xf4a5c4);const _0x2145f0=_0x21d0bc[_0x1099('0xd4')](_0x385fd9=>_0x1099('0x72')!=_0x385fd9[_0x1099('0xa8')][_0x1099('0xb')]);_0x2145f0[_0x1099('0x110')]>0x0&&_0x3fd921['setSelection'](_0x2145f0);for(const _0x2edae3 of _0x21d0bc)_0x2edae3[_0x1099('0x5')]();});},_0x3a4269=(_0x4a5582,_0x21da4f)=>0x1==_0x4a5582['length']&&0x1==_0x21da4f[_0x1099('0x110')]&&_0x4a5582[0x0]['end'][_0x1099('0x9d')](_0x21da4f[0x0]['start']),_0x1efb04=(_0x1c988e,_0x1503b7,_0x300475,_0x210a35)=>xt(_0x1c988e,_0x1503b7,_0x300475,_0x210a35,this['_model'])?[_0x1c988e,_0x1503b7]:xt(_0x1503b7,_0x1c988e,_0x210a35,_0x300475,this[_0x1099('0xa3')])?[_0x1503b7,_0x1c988e]:null;this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0x130'),_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')]('insertion:discard',_0x11f77a),this[_0x1099('0x11b')]['set'](_0x1099('0x5b'),_0x3a4269),this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0xc2'),_0x1efb04),this[_0x1099('0x11b')]['set'](_0x1099('0xa6'),_0x11f77a),this[_0x1099('0x11b')][_0x1099('0x51')]('deletion:discard',_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')]('deletion:join',_0x3a4269),this[_0x1099('0x11b')][_0x1099('0x51')](_0x1099('0xcb'),_0x1efb04),this[_0x1099('0x11b')]['set'](_0x1099('0x1'),_0xd78582),this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0x1c'),_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')](_0x1099('0x16'),_0x3a4269),this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0x21'),_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')](_0x1099('0x5a'),_0xd78582),this['_defaultCallbacks']['set'](_0x1099('0x112'),_0x44edb5),this[_0x1099('0x11b')]['set'](_0x1099('0x4'),_0x3a4269),this['_defaultCallbacks']['set'](_0x1099('0xe4'),_0x44edb5);}}function _t(_0x28de76,_0x1ecb2a,_0xa575e3){for(const _0x4f92db of _0x1ecb2a[_0x1099('0x2c')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f92db[_0x1099('0xa8')]==_0x4f92db)return!0x1;if(!_0xa575e3[_0x1099('0x11f')](_0x4f92db))return!0x1;if(_0x28de76['isObject'](_0x4f92db)||_0x28de76[_0x1099('0xbb')](_0x4f92db))return!0x0;}return!0x1;}function Mt(_0x1f74f8){return _0x1f74f8[_0x1099('0x97')][_0x1099('0x2c')]==_0x1f74f8[_0x1099('0x31')][_0x1099('0xf2')]&&_0x1f74f8[_0x1099('0x97')]['isAtStart'];}function $t(_0x4ff728,_0x3d4843,_0x75a86d,_0x31dbbf){const _0x43b6d3=_0x49fdac=>!_0x49fdac[_0x1099('0x142')]['is'](_0x1099('0x9b'))&&!_0x31dbbf[_0x1099('0x94')](_0x49fdac[_0x1099('0x142')]),_0x1332c0=_0x4ff728[_0x1099('0x31')][_0x1099('0xf1')](_0x43b6d3),_0x33b3f3=_0x4ff728[_0x1099('0x97')]['getLastMatchingPosition'](_0x43b6d3,{'direction':_0x1099('0x140')});return(!_0x4ff728[_0x1099('0x31')]['isEqual'](_0x1332c0)||!_0x4ff728[_0x1099('0x97')]['isEqual'](_0x33b3f3))&&(_0x1332c0[_0x1099('0x11c')](_0x33b3f3)?_0x75a86d['updateMarker'](_0x3d4843,{'range':_0x75a86d[_0x1099('0xef')](_0x1332c0,_0x33b3f3)}):_0x75a86d[_0x1099('0xc3')](_0x3d4843),!0x0);}function Nt(_0x5ca9f9){return _0x51d38b(_0x5ca9f9);}function Rt(_0x4c19bf){const _0x450b13=_0x4c19bf[_0x1099('0x31')][_0x1099('0xf2')];return _0x450b13&&_0x450b13['is'](_0x1099('0xde'));}function jt(_0x2c2d7d,_0x4e0c1c){const _0x47bd55=_0x4e0c1c[_0x1099('0x11e')][_0x1099('0x94')](_0x2c2d7d)||_0x4e0c1c['schema']['isSelectable'](_0x2c2d7d);return _0x4e0c1c[_0x1099('0xef')](_0x4e0c1c[_0x1099('0x4b')](_0x2c2d7d,'before'),_0x47bd55?_0x4e0c1c[_0x1099('0x123')](_0x2c2d7d):_0x4e0c1c[_0x1099('0x4b')](_0x2c2d7d,'end'));}function xt(_0x5a7f13,_0x3591c4,_0x553d0f,_0x28518b,_0x16686f){if(!Ut(_0x5a7f13,_0x3591c4))return!0x1;if(_0x553d0f[_0x1099('0x97')]['isEqual'](_0x28518b[_0x1099('0x31')]))return!0x0;if(_0x5a7f13[_0x1099('0x1b')]!=_0x3591c4[_0x1099('0x1b')])return!0x1;if(!_0x553d0f[_0x1099('0x97')][_0x1099('0xb6')](_0x28518b[_0x1099('0x31')]))return!0x1;const _0x27ac39=_0x16686f[_0x1099('0xef')](_0x553d0f[_0x1099('0x97')],_0x28518b[_0x1099('0x31')])[_0x1099('0x2')]();for(const _0x33043a of _0x27ac39)if([_0x1099('0x4c'),_0x1099('0x128')]['includes'](_0x33043a[_0x1099('0x1b')])&&_0x16686f[_0x1099('0x11e')]['isLimit'](_0x33043a['item']))return!0x1;return!0x0;}function Ut(_0x28f908,_0x1cf4db){return!(!_0x28f908[_0x1099('0x9c')]||!_0x1cf4db[_0x1099('0x9c')])&&_0xa68f16(_0x28f908[_0x1099('0x104')],_0x1cf4db[_0x1099('0x104')]);}function Ot(_0x226d86,_0xb3e7c2){const _0x398677=Et(_0x226d86[_0x1099('0x104')]),_0x293bb8=Et(_0xb3e7c2);if(!_0x226d86['_isDataLoaded'])return!0x1;for(const _0x3bdb0f of Object[_0x1099('0x22')](_0x293bb8))if(!_0xa68f16(_0x398677[_0x3bdb0f],_0x293bb8[_0x3bdb0f]))return!0x1;return!0x0;}function Et(_0x4009c9){const _0x3bed17=Object[_0x1099('0xbe')]({},_0x4009c9);return delete _0x3bed17[_0x1099('0xf7')],delete _0x3bed17[_0x1099('0xaa')],_0x3bed17;}
23
+ const _0x35a7=['removeMarkers','isArray','_breakSuggestionMarker','formatInline:accept','addUser','toJSON','insertion:accept','selection','insertion','markInlineFormat','_findSuggestions','_joinSuggestions','from','forceDefaultExecution','addHighlight','group','element','createPositionAfter','containerElement','push','getRanges','elementEnd','_customCallbacks','editing','_onDiscard','formatBlock:accept','for','deletion:','_updateSuggestionData','discard','multi','_getAuthorFromId','isMultiRange','formatInline','_splitMarkerName','isOwn','ready','change:activeMarkers','isAfter','schema','removed','skipNestingCheck','nodeAfter','never','removeMarker','track-changes-suggestion-data-mismatch','_registerDefaultCallbacks','registerCustomCallback','getWalker','dataDowncast','start','$textProxy','_createSuggestion','has','batch','root','trackChanges.trackFormatChanges','getItems','detach','change','insertion:discard','_adapter','_model','isObject','track-changes-adapter-missing-getsuggestion','moveTargetPosition','_checkSuggestionCorrectness','always','widget','isRemovable','trackChangesCommand','mapper','containsItem','addRange','isAtStart','value','data','fromRange','multipleBlocks','enqueueChange','getAllAdjacentSuggestions','_mergeNestedSuggestions','TrackChangesEditing','marker-count','addSuggestionData','elementStart','some','hasCommentThread','isTouching','track-changes-suggestion-not-found','addSuggestion','ck-suggestion-marker','_suggestionFactory','markMultiRangeBlockFormat','unbindElementFromMarkerName','targetPosition','CommentsRepository','_suggestionState','createdAt','split','suggestionChanged','newRange','_setSuggestionRange','createSelection','isBefore','type','createPositionAt','isCollapsed','forward','acceptSelectedSuggestions','_defaultCallbacks','locale','isInsideObject','isAtEnd','isDocumentOperation','updateSuggestion','plugins','updateMarker','isIntersectingWithRange','enableReadOnlyMode','getSuggestion','tablePasteChainId','before','rootName','_getExternalAuthor','sort','low','addCommentThread','_isForcedDefaultExecutionBlock','discardSelectedSuggestions','return','open','removeComment','consume','join','_removeSuggestion','formatBlock:discard','howMany','activeMarkers','discardSuggestion','fromCharCode','addMarker:suggestion','deletion','head','createRangeIn','@external','document','listenTo','options','markerName','stopListening','getShiftedBy','isInContent','_cutOutSuggestionMarker','removeAttribute','backward','_isDataLoaded','consumable','default','isLimit','buildSuggestion','trackChanges.mergeNestedSuggestions','data-suggestion','Users','editor','addClass','$graveyard','isBlock','chain','subType','elementToElement','showSuggestionHighlights','nodeBefore','getMarkers','execute','removeClass','setTo','clone','commentThread','after','differ','requires','$marker','markInsertion','includes','assign','_enabledCommands','isNextTo','_descriptionFactory','getAncestors','documentSelection','acceptAllSuggestions','isSelectable','suggestionLoaded','markerReady','external:','item','ck-suggestion-marker--active','getCommentThread','_rangeIsInLocalUserInsertion','filter','attributes','refresh','formatInline:join','markDeletion','formatInline:','config','getSuggestionCallback','stop','markerToHighlight','high','range','ck-suggestion-marker-formatBlock','deleteContent','createPositionBefore','insertion:chain','_setSuggestionData','authoredAt','isExternal','createRange','formatBlock:','author','_editor','name','size','discardAllSuggestions','_saved','oldRange','_addThreadToSuggestion','markerNameToElements','adapter','end','originalSuggestionId','getLastMatchingPosition','add','markers','fire','addMarker','containsRangeInObject','length','accept','formatBlock','formatInline:discard','toViewElement','getFirstRange','containsRange','lowest','formatBlock:join','next','previous','unbind','values','clear','applyOperation','_commentsRepository','suggestion','bindElementToMarker','suggestionUnloaded','map','delete','dataReady','markMultiRangeDeletion','enableCommand','commandName','_joinWithAdjacentSuggestions','getUser','_addSuggestionMarker','rejected','creator','keys','parent','splice','acceptSuggestion','upcast','formatInline:chain','isLocal','conversion','suggestion:','getSuggestions','init','every','addMarker:suggestion:formatBlock','getNearestSelectionRange','notReady','getChangedMarkers','editingDowncast','ck-suggestion-marker-','hasComments','position','_suggestions','insertion:join','collaboration.channelId','writer','PendingActions','isUndo','markMultiRangeInsertion','addComment','_trackFormatChanges','remove','getAttribute','setSelection','isEqual','define','change:_saved','get','commands','PENDING_ACTION_SUGGESTION','_handleNewSuggestionMarker','getMultiRangeId','suggestion-type','resolve','formatGroupId','_refreshSuggestionsChain','insertion:','getFirstMarker','registerPostFixer','getIntersection','set','addMarkerName','containsPosition','normal','then','model','insert','getCustomProperty','catch'];(function(_0x5041ed,_0x35a728){const _0x3c417f=function(_0x2964c4){while(--_0x2964c4){_0x5041ed['push'](_0x5041ed['shift']());}};_0x3c417f(++_0x35a728);}(_0x35a7,0x1b5));const _0x3c41=function(_0x5041ed,_0x35a728){_0x5041ed=_0x5041ed-0x0;let _0x3c417f=_0x35a7[_0x5041ed];return _0x3c417f;};import{Plugin as _0xcc7ad3,PendingActions as _0x2ac684}from'ckeditor5/src/core';import{LiveRange as _0xe5a593}from'ckeditor5/src/engine';import{CKEditorError as _0x149c43,uid as _0x47dbea,priorities as _0xa4659f,logWarning as _0x151902}from'ckeditor5/src/utils';import{toWidget as _0x55a102}from'ckeditor5/src/widget';import{Users as _0x24abd7,hashObject as _0x4ee5c6}from'ckeditor5-collaboration/src/collaboration-core';import _0x3e0ba5 from'./commands/trackchangescommand';import _0x2e3652 from'./commands/acceptsuggestioncommand';import _0x3335a5 from'./commands/discardsuggestioncommand';import _0x19c964 from'./commands/executeonallsuggestionscommand';import _0x2f37ce from'./commands/executeonselectedsuggestionscommand';import _0x32734f from'./suggestion';import _0x3b26fe from'./suggestiondescriptionfactory';import _0x340feb from'./integrations/aiassistant';import _0x49adac from'./integrations/alignment';import _0x75b8ab from'./integrations/basicstyles';import _0x16f2f9 from'./integrations/blockquote';import _0x5c9f03 from'./integrations/ckbox';import _0x4b80ae from'./integrations/codeblock';import _0x231535 from'./integrations/comments';import _0x5787c9 from'./integrations/deletecommand';import _0x4de95f from'./integrations/documentlist';import _0x15b330 from'./integrations/entercommand';import _0xbfce62 from'./integrations/findandreplace';import _0x451e65 from'./integrations/font';import _0xbc165c from'./integrations/formatpainter';import _0x2804bf from'./integrations/heading';import _0x269478 from'./integrations/highlight';import _0x23b6f0 from'./integrations/horizontalline';import _0x41d6b8 from'./integrations/htmlembed';import _0x33c9d1 from'./integrations/image';import _0x1e9e05 from'./integrations/imagereplace';import _0x5eae9f from'./integrations/importword';import _0xa0bc3e from'./integrations/indent';import _0x2afa09 from'./integrations/inputcommand';import _0x1948bc from'./integrations/link';import _0xa7ca2e from'./integrations/list';import _0x3d68ea from'./integrations/listproperties';import _0x4ec19b from'./integrations/mediaembed';import _0x2d3e55 from'./integrations/mention';import _0x5c44f1 from'./integrations/pagebreak';import _0x73cb8e from'./integrations/paragraph';import _0x230057 from'./integrations/removeformat';import _0x4c52d9 from'./integrations/restrictededitingmode';import _0x2e85ed from'./integrations/shiftentercommand';import _0x461d8b from'./integrations/standardeditingmode';import _0x45e382 from'./integrations/style';import _0x714963 from'./integrations/table';import _0x2183e8 from'./integrations/tablemergesplit';import _0x50351a from'./integrations/tableheadings';import _0x4a7d15 from'./integrations/tableclipboard';import _0x4a27bc from'./integrations/tablecolumnresize';import _0x1304cc from'./integrations/template';import _0x5e18df from'./integrations/tableofcontents';import _0x6e5c from'./integrations/title';import _0x3b9799 from'./integrations/undo';import{getTranslation as _0x5dd432}from'./utils/common-translations';import _0x55ec97 from'./integrations/tablecaption';import _0x5e8027 from'./integrations/documentlistproperties';import _0x12e33e from'./integrations/tableproperties';import{isEqual as _0x524132}from'lodash-es';export default class p extends _0xcc7ad3{static get[_0x3c41('0x46')](){return[_0x3c41('0x137'),_0x24abd7,_0x2ac684,_0x340feb,_0x49adac,_0x75b8ab,_0x16f2f9,_0x5c9f03,_0x4b80ae,_0x231535,_0x5787c9,_0x4de95f,_0x5e8027,_0x15b330,_0xbfce62,_0x451e65,_0xbc165c,_0x2804bf,_0x269478,_0x23b6f0,_0x41d6b8,_0x33c9d1,_0x1e9e05,_0x5eae9f,_0xa0bc3e,_0x2afa09,_0x1948bc,_0xa7ca2e,_0x3d68ea,_0x4ec19b,_0x2d3e55,_0x5c44f1,_0x73cb8e,_0x230057,_0x4c52d9,_0x2e85ed,_0x461d8b,_0x45e382,_0x714963,_0x2183e8,_0x50351a,_0x55ec97,_0x4a7d15,_0x4a27bc,_0x5e18df,_0x12e33e,_0x1304cc,_0x6e5c,_0x3b9799];}static get['pluginName'](){return _0x3c41('0x129');}constructor(_0x1d5df1){function _0x495e91(_0x420183){return _0x420183[_0x3c41('0x93')](_0x3ed498=>String[_0x3c41('0x1d')](_0x3ed498))[_0x3c41('0x17')]('');}super(_0x1d5df1),this[_0x3c41('0xce')](_0x3c41('0x1b'),[]),this['on'](_0x3c41('0xfc'),(_0x437041,_0x36feda,_0x490422,_0x30baf7)=>{this['_model']['change'](()=>{for(const _0x313b7a of[..._0x30baf7,..._0x490422])this[_0x3c41('0x115')][_0x3c41('0x7c')][_0x3c41('0x10c')](_0x313b7a)&&_0x1d5df1[_0x3c41('0xee')]['reconvertMarker'](_0x313b7a);});}),this[_0x3c41('0x4d')]=new _0x3b26fe(this[_0x3c41('0x35')][_0x3c41('0xd3')][_0x3c41('0xfe')],this['editor'][_0x3c41('0x0')]),this['_adapter']=null,this[_0x3c41('0x133')]=new Bt(this[_0x3c41('0x35')]),this['_suggestions']=new Map(),this[_0x3c41('0x8f')]=_0x1d5df1[_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x137')),this['_enabledCommands']=new Set(),this[_0x3c41('0x115')]=this['editor'][_0x3c41('0xd3')],this[_0x3c41('0x138')]=new WeakMap(),this[_0x3c41('0x11')]=!0x1,_0x1d5df1['config'][_0x3c41('0xbf')](_0x3c41('0x10f'),_0x3c41('0x2f')),this['_trackFormatChanges']=_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0x10f')),_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xbf')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x3c41('0x128')]=_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0x32')),this['trackChangesCommand']=new _0x3e0ba5(_0x1d5df1,this[_0x3c41('0x4b')]),this[_0x495e91([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x495e91([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x34]);}[_0x3c41('0xa8')](){const _0x534b7c=this['editor'];_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xae'))[_0x3c41('0x62')]({'model':_0x3c41('0x90'),'view':_0x4c6898=>{const {id:_0x39cb01,type:_0x8dec53}=this[_0x3c41('0xf9')](_0x4c6898[_0x3c41('0x26')]),_0x17bca6=[_0x3c41('0x132'),_0x3c41('0xaf')+_0x8dec53];let _0x804d1b=0xbb8;return this['activeMarkers'][_0x3c41('0x49')](_0x4c6898[_0x3c41('0x26')])&&(_0x17bca6[_0x3c41('0xea')](_0x3c41('0x56')),_0x804d1b=0xbc2),_0x3c41('0x1f')==_0x8dec53&&(_0x804d1b+=0x5),{'classes':_0x17bca6,'attributes':{'data-suggestion':_0x39cb01},'priority':_0x804d1b};}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0x108'))[_0x3c41('0x7b')](_0x2517b1=>{_0x2517b1['on'](_0x3c41('0x1e'),(_0x3b2acb,_0x3245da,_0x5af790)=>{if(!_0x5af790['options']['showSuggestionHighlights'])return;const _0x359e89=_0x3245da[_0x3c41('0x55')];if(!_0x359e89)return;const _0x5662dc=_0x5af790[_0x3c41('0x11e')][_0x3c41('0x84')](_0x359e89);_0x534b7c['model']['schema']['isObject'](_0x359e89)&&_0x5662dc&&!_0x5662dc['getCustomProperty'](_0x3c41('0x11b'))&&_0x5662dc['is'](_0x3c41('0xe9'))&&_0x55a102(_0x5662dc,_0x5af790['writer']);},{'priority':_0x3c41('0x63')});}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0x108'))[_0x3c41('0x62')]({'model':_0x3c41('0x90'),'view':(_0x26fde7,_0x2fca5e)=>{if(!_0x2fca5e[_0x3c41('0x25')][_0x3c41('0x3c')])return null;const {type:_0x3740b0}=this[_0x3c41('0xf9')](_0x26fde7['markerName']);return{'classes':[_0x3c41('0x132'),_0x3c41('0xaf')+_0x3740b0],'priority':0xbb8};}});const _0x7c9ab7=({showActiveMarkers:_0x219be0=!0x0}={})=>(_0x326658,_0x4ff732,_0x4f294c)=>{if(!_0x4ff732[_0x3c41('0x55')])return;if(_0x4ff732['item']['is'](_0x3c41('0xde')))return void _0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x4ff732['item'],_0x326658['name']);const _0x2c7b1a=_0x4f294c[_0x3c41('0x11e')][_0x3c41('0x84')](_0x4ff732[_0x3c41('0x55')]);if(!(_0x4ff732[_0x3c41('0x55')]['is'](_0x3c41('0xe7'))&&_0x534b7c[_0x3c41('0xd3')]['schema'][_0x3c41('0x38')](_0x4ff732[_0x3c41('0x55')])&&!_0x2c7b1a[_0x3c41('0xd5')]('addHighlight')))return;const {id:_0x4e2cad}=this[_0x3c41('0xf9')](_0x4ff732['markerName']);_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x36')]([_0x3c41('0x132'),'ck-suggestion-marker-formatBlock'],_0x2c7b1a),_0x4f294c[_0x3c41('0xb5')]['setAttribute'](_0x3c41('0x33'),_0x4e2cad,_0x2c7b1a),_0x4f294c[_0x3c41('0x11e')][_0x3c41('0x91')](_0x2c7b1a,_0x4ff732[_0x3c41('0x26')]),_0x219be0&&(this[_0x3c41('0x1b')]['includes'](_0x4ff732[_0x3c41('0x26')])?_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x36')](_0x3c41('0x56'),_0x2c7b1a):_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x40')](_0x3c41('0x56'),_0x2c7b1a));for(const _0x252ed6 of _0x534b7c[_0x3c41('0xd3')][_0x3c41('0x21')](_0x4ff732[_0x3c41('0x55')])[_0x3c41('0x110')]())_0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x252ed6,_0x326658[_0x3c41('0x70')]);_0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x4ff732[_0x3c41('0x55')],_0x326658['name']);};_0x534b7c['conversion']['for'](_0x3c41('0x108'))[_0x3c41('0x7b')](_0x361555=>{_0x361555['on'](_0x3c41('0xaa'),(_0x18d60e,_0x51404c,_0x26ab48)=>{_0x26ab48['options'][_0x3c41('0x3c')]&&_0x7c9ab7({'showActiveMarkers':!0x1})(_0x18d60e,_0x51404c,_0x26ab48);},{'priority':'highest'});}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')]('dataDowncast')['markerToData']({'model':_0x3c41('0x90'),'view':(_0x3f3dd7,_0x2f2a5b)=>_0x2f2a5b[_0x3c41('0x25')]['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3f3dd7['substr'](0xb)}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xa2'))[_0x3c41('0x3b')]({'view':{'name':_0x3c41('0x90'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ae280,{writer:_0x238952})=>{let _0x279040=_0x3c41('0xa6')+_0x3ae280[_0x3c41('0xbc')](_0x3c41('0xc6'))+':'+_0x3ae280['getAttribute']('id');return _0x3ae280[_0x3c41('0xbc')](_0x3c41('0x12a'))&&(_0x279040+=':'+_0x3ae280[_0x3c41('0xbc')](_0x3c41('0x12a'))),_0x238952['createElement'](_0x3c41('0x47'),{'data-name':_0x279040});}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xa2'))['dataToMarker']({'view':'suggestion'}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')]('editingDowncast')[_0x3c41('0x7b')](_0x4b276a=>{_0x4b276a['on'](_0x3c41('0xaa'),_0x7c9ab7(),{'priority':_0x3c41('0x63')});}),_0x534b7c['conversion'][_0x3c41('0xf1')](_0x3c41('0xae'))[_0x3c41('0x7b')](_0x9e8108=>{_0x9e8108['on']('removeMarker:suggestion:formatBlock',(_0x289894,_0x3d81dc,_0x324a27)=>{const _0x23cc36=_0x324a27[_0x3c41('0x11e')][_0x3c41('0x76')](_0x3d81dc[_0x3c41('0x26')]);if(_0x23cc36)for(const _0x450795 of _0x23cc36)_0x450795[_0x3c41('0xd5')](_0x3c41('0xe5'))||(_0x324a27['writer'][_0x3c41('0x40')]([_0x3c41('0x132'),_0x3c41('0x65'),_0x3c41('0x56')],_0x450795),_0x324a27[_0x3c41('0xb5')][_0x3c41('0x2b')](_0x3c41('0x33'),_0x450795),_0x324a27[_0x3c41('0x11e')][_0x3c41('0x135')](_0x450795,_0x3d81dc[_0x3c41('0x26')]));},{'priority':_0x3c41('0x63')});}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['registerPostFixer'](_0x33a103=>{let _0x2dee42=!0x1;const _0x509a28=Array['from'](_0x534b7c['model'][_0x3c41('0x23')][_0x3c41('0x45')][_0x3c41('0xad')]()),_0x380aa7=new Set();for(const {name:_0x21b7bb,data:_0x5ab445}of _0x509a28){const {group:_0x2daa5f,type:_0x68280a,id:_0x421689}=this[_0x3c41('0xf9')](_0x21b7bb);if(_0x3c41('0x90')!==_0x2daa5f)continue;const _0x263633=this['_suggestions'][_0x3c41('0xc1')](_0x421689);if(null!=_0x5ab445[_0x3c41('0x13c')]){_0x3c41('0xf8')==_0x68280a&&(_0x2dee42=_0x2dee42||$t(_0x5ab445['newRange'],_0x21b7bb,_0x33a103,_0x534b7c['model'][_0x3c41('0xfe')]));if(_0x5ab445['newRange']['isCollapsed']||_0x3c41('0x37')==_0x5ab445[_0x3c41('0x13c')][_0x3c41('0x10e')][_0x3c41('0xc')]||_0x3c41('0x82')==_0x68280a&&!Rt(_0x5ab445[_0x3c41('0x13c')])||_0x3c41('0x1f')==_0x68280a&&!(!Mt(_0x3606d2=_0x5ab445['newRange'])&&!function(_0x4fa01b){return _0x4fa01b[_0x3c41('0x109')][_0x3c41('0x9f')]==_0x4fa01b[_0x3c41('0x78')][_0x3c41('0x3d')]&&_0x4fa01b[_0x3c41('0x109')][_0x3c41('0x2')];}(_0x3606d2)))_0x33a103[_0x3c41('0x103')](_0x21b7bb),_0x2dee42=!0x0;else{if(!_0x263633||!_0x263633[_0x3c41('0x29')])continue;_0x380aa7[_0x3c41('0x7b')](_0x263633);}}}var _0x3606d2;return _0x380aa7[_0x3c41('0x71')]>0x0&&(_0x2dee42=!!this[_0x3c41('0x99')](_0x380aa7)||_0x2dee42),_0x2dee42;}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')][_0x3c41('0xcc')](_0xd79fc8=>{let _0xfdca99=!0x1;for(const _0x1eaba1 of _0x534b7c['model'][_0x3c41('0x23')][_0x3c41('0x45')]['getChanges']()){if(_0x3c41('0xd4')!=_0x1eaba1['type'])continue;const _0x4db876=_0x1eaba1[_0x3c41('0xb1')][_0x3c41('0x28')](_0x1eaba1[_0x3c41('0x80')]);if(_0x4db876['isAtEnd'])for(const _0x874c97 of this[_0x3c41('0xb2')][_0x3c41('0x8c')]()){if(_0x874c97[_0x3c41('0xf7')]||!_0x874c97[_0x3c41('0x29')])continue;if('formatBlock'!=_0x874c97[_0x3c41('0x140')])continue;const _0x12d53f=_0x874c97[_0x3c41('0x85')]();if(_0x12d53f['start'][_0x3c41('0x9f')]!=_0x12d53f[_0x3c41('0x78')]['parent']&&_0x12d53f[_0x3c41('0x78')][_0x3c41('0xbe')](_0x1eaba1['position'])){const _0x45bfe7=_0x534b7c['model'][_0x3c41('0x6c')](_0x12d53f[_0x3c41('0x109')],_0x4db876);_0xd79fc8[_0x3c41('0x6')](_0x874c97['getFirstMarker'](),{'range':_0x45bfe7}),_0xfdca99=!0x0;}}}return _0xfdca99;}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x7c')]['on']('update:suggestion',(_0xadd441,_0x2e012a,_0x16087a)=>{if(null==_0x16087a){const {id:_0x201009}=this['_splitMarkerName'](_0x2e012a['name']),_0x3271c1=this['_suggestions'][_0x3c41('0xc1')](_0x201009);_0x3271c1&&_0x3271c1[_0x3c41('0xcf')](_0x2e012a[_0x3c41('0x70')]);}}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['on']('change:data',()=>{const _0x13db48=Array[_0x3c41('0xe3')](_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['differ']['getChangedMarkers']())['filter'](_0x172e90=>_0x3c41('0x90')===this[_0x3c41('0xf9')](_0x172e90[_0x3c41('0x70')])[_0x3c41('0xe6')]);if(0x0===_0x13db48[_0x3c41('0x80')])return;_0x13db48['sort']((_0x3b8b1a,_0x6fb5ec)=>{const _0x56ad65=_0x3b8b1a[_0x3c41('0x123')][_0x3c41('0x74')],_0x5468d9=_0x6fb5ec['data'][_0x3c41('0x74')];return null===_0x56ad65&&null===_0x5468d9?0x0:null===_0x56ad65&&null!==_0x5468d9?-0x1:null!==_0x56ad65&&null===_0x5468d9?0x1:_0x56ad65[_0x3c41('0x109')][_0x3c41('0x13f')](_0x5468d9[_0x3c41('0x109')])?-0x1:0x1;});const _0x4357db=new Set(),_0x168812=new Set();for(const {name:_0x14aed1,data:_0x14514c}of _0x13db48){const {id:_0x1f0155}=this[_0x3c41('0xf9')](_0x14aed1);if(null===_0x14514c[_0x3c41('0x74')]){const _0xb8b0b=this[_0x3c41('0xc4')](_0x14aed1);_0x168812[_0x3c41('0x7b')](_0xb8b0b);}else{const _0x29e495=this['_suggestions'][_0x3c41('0xc1')](_0x1f0155);null!==_0x14514c[_0x3c41('0x13c')]||_0x29e495[_0x3c41('0x29')]?(_0x4357db[_0x3c41('0x7b')](_0x29e495[_0x3c41('0x20')]),_0x168812[_0x3c41('0x7b')](_0x29e495)):this[_0x3c41('0x18')](_0x29e495);}}_0x168812['size']>0x0&&this[_0x3c41('0xc9')](_0x168812);for(const _0x2fd383 of _0x4357db)this['fire'](_0x3c41('0x13b'),_0x2fd383);}),_0x534b7c[_0x3c41('0xd3')]['on'](_0x3c41('0x8e'),(_0x191441,_0x36a97c)=>{const _0x26529b=_0x36a97c[0x0];if(!this['_suggestions'][_0x3c41('0x71')])return;if(!_0x26529b[_0x3c41('0x3')])return;if(_0x26529b[_0x3c41('0x10d')][_0x3c41('0xb7')]||!_0x26529b[_0x3c41('0x10d')][_0x3c41('0xa4')])return;let _0x298d93,_0x18e41d;switch(_0x26529b[_0x3c41('0x140')]){case _0x3c41('0xd4'):_0x298d93=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x26529b['position']),_0x18e41d=_0x298d93[_0x3c41('0x28')](_0x26529b[_0x3c41('0x1a')]);break;case _0x3c41('0x13a'):_0x298d93=_0x534b7c[_0x3c41('0xd3')]['createPositionAt'](_0x26529b['splitPosition']),_0x18e41d=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x26529b[_0x3c41('0x118')]);break;case'move':_0x298d93=_0x534b7c[_0x3c41('0xd3')]['createPositionAt'](_0x26529b[_0x3c41('0x136')]),_0x18e41d=_0x298d93[_0x3c41('0x28')](_0x26529b['howMany']);break;default:return;}const _0x52ddc0=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x6c')](_0x298d93,_0x18e41d);_0x534b7c[_0x3c41('0xd3')]['change'](()=>{for(const {suggestion:_0x338fc0,meta:_0x3eef42}of this['_findSuggestions'](_0x52ddc0)){if(_0x338fc0[_0x3c41('0xf7')])continue;if(_0x3c41('0xf8')==_0x338fc0[_0x3c41('0x140')])continue;const _0x530550=_0x338fc0[_0x3c41('0x123')]&&_0x338fc0['data'][_0x3c41('0x125')];(_0x3c41('0x82')!=_0x338fc0['type']||_0x3c41('0x13a')==_0x26529b[_0x3c41('0x140')]&&!_0x530550)&&(_0x3eef42[_0x3c41('0x7f')]||_0x3c41('0xdf')==_0x338fc0[_0x3c41('0x140')]&&_0x3eef42[_0x3c41('0xfa')]||_0x338fc0['getFirstRange']()[_0x3c41('0x86')](_0x52ddc0)&&this[_0x3c41('0xd9')](_0x338fc0,_0x298d93,_0x18e41d));}});},{'priority':_0x3c41('0x87')}),_0x534b7c[_0x3c41('0xd3')]['on'](_0x3c41('0x66'),(_0xcdc238,_0x1924dd)=>{const _0xe3ce25=_0x1924dd[0x0],_0x7d7070=_0x1924dd[0x1];if(_0x7d7070&&_0x7d7070['forceDefaultExecution'])return;if(this[_0x3c41('0x11')])return;if(!this['trackChangesCommand'][_0x3c41('0x122')])return;if(_0xe3ce25['isCollapsed'])return;const _0x3b3893=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0xfe')],{start:_0x38469d,end:_0x2726aa}=_0xe3ce25['getFirstRange'](),_0x58b33e=_0x38469d[_0x3c41('0x101')]&&_0x3b3893[_0x3c41('0x30')](_0x38469d[_0x3c41('0x101')])?null:_0x3b3893[_0x3c41('0xab')](_0x38469d,_0x3c41('0x143')),_0x257c1f=_0x2726aa['nodeBefore']&&_0x3b3893[_0x3c41('0x30')](_0x2726aa[_0x3c41('0x3d')])?null:_0x3b3893[_0x3c41('0xab')](_0x2726aa,'backward'),_0x4c105c=_0x534b7c[_0x3c41('0xd3')]['createRange'](_0x58b33e?_0x58b33e['start']:_0x38469d,_0x257c1f?_0x257c1f[_0x3c41('0x78')]:_0x2726aa);_0x534b7c[_0x3c41('0xd3')]['change'](_0x597fa4=>{this[_0x3c41('0x5d')](_0x4c105c);const _0x1a89fb=_0x534b7c['model'][_0x3c41('0xfe')][_0x3c41('0xab')](_0x4c105c[_0x3c41('0x109')]);_0xe3ce25['is'](_0x3c41('0x4f'))?_0x597fa4['setSelection'](_0x1a89fb):_0xe3ce25[_0x3c41('0x41')](_0x1a89fb);}),_0xcdc238[_0x3c41('0x61')]();},{'priority':_0xa4659f[_0x3c41('0xd1')]+0xa}),_0x534b7c['model']['on']('insertContent',(_0x213975,_0x208817)=>{const _0x41b2c7=_0x208817[_0x208817[_0x3c41('0x80')]-0x1];_0x41b2c7&&_0x41b2c7[_0x3c41('0xe4')]||this[_0x3c41('0x11')]||this[_0x3c41('0x11d')][_0x3c41('0x122')]&&(_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x112')](()=>{let _0x558c10=_0x534b7c[_0x3c41('0xd3')]['insertContent'](_0x208817[0x0],_0x208817[0x1],_0x208817[0x2],{'forceDefaultExecution':!0x0});if(!_0x558c10)return;_0x213975[_0x3c41('0x13')]=_0x558c10[_0x3c41('0x42')]();const _0x3eeae6=_0x558c10[_0x3c41('0x78')][_0x3c41('0x3d')],_0x15261e=_0x534b7c['model'][_0x3c41('0xfe')];_0x3eeae6&&_0x15261e[_0x3c41('0x38')](_0x3eeae6)&&!_0x15261e[_0x3c41('0x116')](_0x3eeae6)&&(_0x558c10=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x6c')](_0x558c10['start'],_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x3eeae6,_0x3c41('0x78')))),this[_0x3c41('0x48')](_0x558c10);}),_0x213975[_0x3c41('0x61')]());},{'priority':'high'}),this[_0x3c41('0x35')][_0x3c41('0xc2')][_0x3c41('0x7b')]('trackChanges',this['trackChangesCommand']),this[_0x3c41('0x97')]('trackChanges');const _0x1ca2b7=new _0x2e3652(_0x534b7c,this[_0x3c41('0xb2')]);_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0xa1'),_0x1ca2b7),this['enableCommand'](_0x3c41('0xa1'));const _0x1414b0=new _0x3335a5(_0x534b7c,this['_suggestions']);_0x534b7c[_0x3c41('0xc2')]['add'](_0x3c41('0x1c'),_0x1414b0),this[_0x3c41('0x97')](_0x3c41('0x1c')),_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0x50'),new _0x19c964(_0x534b7c,_0x1ca2b7,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')]('acceptAllSuggestions'),_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0x72'),new _0x19c964(_0x534b7c,_0x1414b0,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x72')),_0x534b7c['commands'][_0x3c41('0x7b')](_0x3c41('0x144'),new _0x2f37ce(_0x534b7c,_0x1ca2b7,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x144')),_0x534b7c['commands'][_0x3c41('0x7b')]('discardSelectedSuggestions',new _0x2f37ce(_0x534b7c,_0x1414b0,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x12'));const _0x158eeb=_0x534b7c[_0x3c41('0x5')]['get'](_0x3c41('0x137'));this['listenTo'](_0x158eeb,_0x3c41('0xb9'),(_0x2bcd81,{threadId:_0x1e9f45})=>{const _0x2cc7bb=this['_suggestions'][_0x3c41('0xc1')](_0x1e9f45);_0x2cc7bb&&_0x2cc7bb[_0x3c41('0x43')]&&0x1===_0x2cc7bb[_0x3c41('0x43')][_0x3c41('0x80')]&&this[_0x3c41('0xf3')](_0x1e9f45,{'hasComments':!0x0});},{'priority':_0x3c41('0xf')}),this['listenTo'](_0x158eeb,_0x3c41('0x15'),(_0x48f8f3,{threadId:_0x2098d6})=>{const _0x4786bc=this[_0x3c41('0xb2')]['get'](_0x2098d6);_0x4786bc&&_0x4786bc[_0x3c41('0x43')]&&!_0x4786bc[_0x3c41('0x43')]['length']&&this[_0x3c41('0xf3')](_0x2098d6,{'hasComments':!0x1});},{'priority':_0x3c41('0xf')});}set[_0x3c41('0x77')](_0x3773a4){if(this['_adapter'])throw new _0x149c43('track-changes-adapter-already-set',this);this['_adapter']=_0x3773a4;}get[_0x3c41('0x77')](){return this[_0x3c41('0x114')];}['getSuggestions']({skipNotAttached:_0x45cf2a=!0x1,toJSON:_0x45ae6c=!0x1}={}){const _0x1577bb=[];for(const _0x349db3 of this[_0x3c41('0xb2')][_0x3c41('0x8c')]())_0x45cf2a&&!_0x349db3[_0x3c41('0x29')]||_0x1577bb[_0x3c41('0xea')](_0x349db3);return _0x45ae6c?_0x1577bb['map'](_0x3098f5=>_0x3098f5[_0x3c41('0xdc')]()):_0x1577bb;}[_0x3c41('0x9')](_0x26ea28){const _0x4c0767=this[_0x3c41('0xb2')]['get'](_0x26ea28);if(!_0x4c0767)throw new _0x149c43(_0x3c41('0x130'),this);return _0x4c0767;}['hasSuggestion'](_0x5e817f){return this['_suggestions']['has'](_0x5e817f);}['addSuggestionData'](_0xa4d500){const {authorId:_0x544359,id:_0x5e6e30,attributes:_0x1f75a3}=_0xa4d500,[_0x279f8d,_0xc0548]=_0xa4d500['type'][_0x3c41('0x13a')](':'),_0x2b2975=this[_0x3c41('0xb2')]['get'](_0x5e6e30)||this[_0x3c41('0x10b')](_0x279f8d,_0xc0548,_0x5e6e30,_0x544359,_0x1f75a3);if(this[_0x3c41('0x75')](_0x2b2975),this[_0x3c41('0x119')](_0x2b2975,_0x279f8d,_0xc0548||null,_0x544359),_0x2b2975['createdAt']=_0xa4d500[_0x3c41('0x139')],_0x2b2975[_0x3c41('0x2d')]=!0x0,_0x1f75a3&&_0x1f75a3['@external']){const _0x9a1c45=_0x1f75a3[_0x3c41('0x22')],_0x29dbe8=this[_0x3c41('0xd')](_0x9a1c45['authorName']);_0x2b2975[_0x3c41('0x6a')]=_0x9a1c45[_0x3c41('0x139')],_0x2b2975[_0x3c41('0x6e')]=_0x29dbe8,_0x2b2975[_0x3c41('0x6b')]=!0x0;}else _0x2b2975[_0x3c41('0x6a')]=_0xa4d500[_0x3c41('0x139')];switch(_0xa4d500[_0x3c41('0x123')]&&(_0x2b2975[_0x3c41('0x123')]=_0xa4d500['data']),_0xa4d500[_0x3c41('0x5a')]&&(_0x2b2975[_0x3c41('0x5a')]=_0xa4d500[_0x3c41('0x5a')]),this[_0x3c41('0x114')]&&this[_0x3c41('0x114')][_0x3c41('0x131')]||(_0x2b2975[_0x3c41('0x73')]=!0x0),this[_0x3c41('0x138')][_0x3c41('0xc1')](_0x2b2975)){case _0x3c41('0xac'):this['_suggestionState'][_0x3c41('0xce')](_0x2b2975,'dataReady');break;case _0x3c41('0x53'):_0x2b2975[_0x3c41('0x29')]?(this[_0x3c41('0xc9')](new Set([_0x2b2975])),this['_joinWithAdjacentSuggestions'](new Set([_0x2b2975])),this[_0x3c41('0x138')][_0x3c41('0xce')](_0x2b2975,'ready'),this['fire'](_0x3c41('0x52'),_0x2b2975)):this[_0x3c41('0x138')][_0x3c41('0xce')](_0x2b2975,'removed');}return _0x2b2975;}[_0x3c41('0xa1')](_0x30256e){this[_0x3c41('0xe4')](()=>{this[_0x3c41('0x35')]['model'][_0x3c41('0x112')](()=>{for(const _0x20249d of _0x30256e[_0x3c41('0x127')]())_0x20249d['accept']();});});}[_0x3c41('0x1c')](_0x4c77a7){this[_0x3c41('0xe4')](()=>{this['editor'][_0x3c41('0xd3')][_0x3c41('0x112')](()=>{for(const _0x22e226 of _0x4c77a7[_0x3c41('0x127')]())_0x22e226[_0x3c41('0xf4')]();});});}[_0x3c41('0x97')](_0x28bb2b,_0x410629){const _0x1ca036=this[_0x3c41('0x35')]['commands'][_0x3c41('0xc1')](_0x28bb2b);if(!_0x1ca036)throw new _0x149c43('track-changes-command-not-found',this,{'commandName':_0x28bb2b});this[_0x3c41('0x4b')][_0x3c41('0x7b')](_0x1ca036),_0x410629&&_0x1ca036['on'](_0x3c41('0x3f'),(_0x3a213b,_0x462fe8)=>{this[_0x3c41('0x11d')]['value']&&(this[_0x3c41('0x11')]||_0x462fe8[_0x3c41('0x80')]>0x0&&_0x462fe8[_0x462fe8[_0x3c41('0x80')]-0x1]&&_0x462fe8[_0x462fe8[_0x3c41('0x80')]-0x1][_0x3c41('0xe4')]||(_0x3a213b[_0x3c41('0x13')]=_0x410629((..._0x44d8e2)=>_0x1ca036[_0x3c41('0x3f')](..._0x44d8e2,{'forceDefaultExecution':!0x0}),..._0x462fe8),_0x3a213b['stop']()));},{'priority':'high'});}[_0x3c41('0xe4')](_0x2b5190){let _0x37903a,_0x4b861e;const _0x206384=this[_0x3c41('0x11')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x37903a=_0x2b5190();}catch(_0x250b34){_0x4b861e=_0x250b34;}return _0x206384||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4b861e&&_0x149c43['rethrowUnexpectedError'](_0x4b861e,this),_0x37903a;}[_0x3c41('0x48')](_0x8b00b5,_0x27f5bf=null,_0x2a62ef={}){if(_0x8b00b5[_0x3c41('0x142')])return null;const _0x196699=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'];for(const {suggestion:_0xabe631,meta:_0x38c81c}of this['_findSuggestions'](_0x8b00b5,_0x3c41('0xdf')))if(_0x38c81c[_0x3c41('0xfa')]){if(!_0x38c81c['isNextTo']){if(_0x38c81c[_0x3c41('0x7f')]){if(!this[_0x3c41('0x128')]||!Ot(_0xabe631,_0x2a62ef))continue;return _0xabe631;}if(Ot(_0xabe631,_0x2a62ef))return _0xabe631;this['_breakSuggestionMarker'](_0xabe631,_0x8b00b5[_0x3c41('0x109')],_0x8b00b5[_0x3c41('0x78')]);break;}if(_0x27f5bf==_0xabe631[_0x3c41('0x3a')]&&Ot(_0xabe631,_0x2a62ef)){const _0x346388=_0xabe631[_0x3c41('0x85')]();return _0x346388[_0x3c41('0x109')][_0x3c41('0xbe')](_0x8b00b5[_0x3c41('0x78')])?this[_0x3c41('0x13d')](_0xabe631,this[_0x3c41('0x115')]['createRange'](_0x8b00b5[_0x3c41('0x109')],_0x346388[_0x3c41('0x78')])):this[_0x3c41('0x13d')](_0xabe631,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x346388[_0x3c41('0x109')],_0x8b00b5[_0x3c41('0x78')])),_0xabe631;}}const _0x14fa15=_0x47dbea(),_0x585c97=_0x196699['id'],_0x2fe527=_0x27f5bf?_0x3c41('0xca')+_0x27f5bf:_0x3c41('0xdf'),_0x5476c4=this[_0x3c41('0x69')]({'id':_0x14fa15,'type':_0x2fe527,'createdAt':new Date(),'authorId':_0x585c97,'attributes':_0x2a62ef});return this[_0x3c41('0x9b')](_0x2fe527,_0x14fa15,_0x585c97,_0x8b00b5),_0x5476c4;}[_0x3c41('0xb8')](_0x28b89b,_0x17019d='multi',_0x75a660={}){const _0x4dd1f7=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'],_0x125fbd=this[_0x3c41('0x133')][_0x3c41('0x60')]('insertion',_0x17019d,_0x3c41('0x17'));for(const _0x4f2cfc of this[_0x3c41('0xa7')]())if(_0x4f2cfc['author']['id']==_0x4dd1f7['id']&&'insertion'==_0x4f2cfc[_0x3c41('0x140')]&&_0x4f2cfc[_0x3c41('0x3a')]==_0x17019d&&Ot(_0x4f2cfc,_0x75a660)&&(_0x125fbd(_0x4f2cfc[_0x3c41('0xeb')](),_0x28b89b)||_0x125fbd(_0x28b89b,_0x4f2cfc[_0x3c41('0xeb')]()))){for(const _0x49160a of _0x28b89b)_0x4f2cfc[_0x3c41('0x120')](_0x49160a);return _0x4f2cfc;}for(const {suggestion:_0x12b21a,meta:_0x1f4c8f}of this['_findSuggestions'](_0x28b89b,_0x3c41('0xdf'))){if(!_0x1f4c8f[_0x3c41('0xfa')])continue;if(!this[_0x3c41('0x128')]&&_0x1f4c8f[_0x3c41('0x7f')])continue;if(!Ot(_0x12b21a,_0x75a660))continue;let _0x58e14d=!0x0;for(const _0x26f2a1 of _0x12b21a['getRanges']())for(const _0x5d4738 of _0x28b89b)if(!_0x26f2a1[_0x3c41('0x86')](_0x5d4738)){_0x58e14d=!0x1;break;}if(_0x58e14d)return _0x12b21a;}const _0x59a9e6=_0x47dbea(),_0xa6d0e0=_0x4dd1f7['id'],_0x6db77b=_0x3c41('0xca')+_0x17019d,_0xe50887=this[_0x3c41('0x69')]({'id':_0x59a9e6,'type':_0x6db77b,'createdAt':new Date(),'authorId':_0xa6d0e0,'attributes':_0x75a660});for(const _0x23103b of _0x28b89b)this['_addSuggestionMarker'](_0x6db77b,_0x59a9e6,_0xa6d0e0,_0x23103b,_0x32734f[_0x3c41('0xc5')]());return _0xe50887;}[_0x3c41('0xe0')](_0x320ef9,_0x40b9bf,_0x5537b7=null,_0x445bad={}){if(_0x5537b7=_0x5537b7||Nt(_0x40b9bf),_0x320ef9[_0x3c41('0x142')])return null;if(_0x3c41('0x102')===this[_0x3c41('0xba')]){const _0x28d153=this[_0x3c41('0x133')][_0x3c41('0x60')]('formatInline',_0x5537b7,_0x3c41('0x81'));return this['forceDefaultExecution'](()=>_0x28d153([_0x320ef9],_0x40b9bf,_0x445bad)),null;}const _0x39d8ba=this[_0x3c41('0x35')][_0x3c41('0x5')]['get'](_0x3c41('0x34'))['me'],_0x347bb7=[];if(_0x3c41('0x11a')!==this[_0x3c41('0xba')])for(const {suggestion:_0x15fa94,meta:_0x389071}of this[_0x3c41('0xe1')](_0x320ef9,_0x3c41('0xdf')))_0x389071[_0x3c41('0xfa')]&&!_0x389071[_0x3c41('0x1')]&&_0x347bb7[_0x3c41('0xea')](..._0x15fa94[_0x3c41('0xeb')]());const _0x5438cb=function(_0x12c90e,_0xba329e){const _0x41f539=[];for(const _0x3e50b9 of _0xba329e){const _0x308412=_0x12c90e['getIntersection'](_0x3e50b9);_0x308412&&_0x41f539[_0x3c41('0xea')](_0x308412);}return _0x41f539;}(_0x320ef9,_0x347bb7),_0x40068a=function(_0x1b18e8,_0x3664ed){const _0x564d70=[_0x1b18e8];for(const _0x1643bc of _0x3664ed){let _0x1dea24=0x0;for(;_0x1dea24<_0x564d70['length'];){const _0x1ac02e=_0x564d70[_0x1dea24]['getDifference'](_0x1643bc);_0x564d70[_0x3c41('0xa0')](_0x1dea24,0x1,..._0x1ac02e),_0x1dea24+=_0x1ac02e[_0x3c41('0x80')];}}return _0x564d70;}(_0x320ef9,_0x347bb7);_0x5438cb[_0x3c41('0x80')]&&this[_0x3c41('0x115')][_0x3c41('0x112')](()=>{for(const _0x37d66b of _0x5438cb){const _0x399bc7=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0xf8'),_0x5537b7,_0x3c41('0x81'));this['forceDefaultExecution'](()=>_0x399bc7([_0x37d66b],_0x40b9bf,_0x445bad));}});for(const _0x4b7eeb of _0x40068a){let _0x28ec96=null,_0x5de4d5=_0x4b7eeb[_0x3c41('0x109')],_0x1aff71=_0x4b7eeb[_0x3c41('0x78')];for(const {suggestion:_0x2255bc,meta:_0x4cb0a5}of this[_0x3c41('0xe1')](_0x4b7eeb,_0x3c41('0xf8'))){if(!_0x4cb0a5['isOwn'])continue;if(_0x2255bc[_0x3c41('0x3a')]!=_0x5537b7)continue;if(!Ot(_0x2255bc,_0x445bad))continue;const _0x97d2a7=_0x2255bc[_0x3c41('0x85')]();if(_0x97d2a7[_0x3c41('0x86')](_0x4b7eeb,!0x0))return null;_0x5de4d5=_0x5de4d5['isBefore'](_0x97d2a7[_0x3c41('0x109')])?_0x5de4d5:_0x97d2a7[_0x3c41('0x109')],_0x1aff71=_0x1aff71[_0x3c41('0xfd')](_0x97d2a7['end'])?_0x1aff71:_0x97d2a7[_0x3c41('0x78')],_0x28ec96?_0x97d2a7[_0x3c41('0x109')][_0x3c41('0x13f')](_0x28ec96['getFirstRange']()[_0x3c41('0x109')])?(_0x28ec96['removeMarkers'](),_0x28ec96=_0x2255bc):_0x2255bc['removeMarkers']():_0x28ec96=_0x2255bc;}const _0xd97eb5=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5de4d5,_0x1aff71);if(_0x28ec96)this[_0x3c41('0x13d')](_0x28ec96,_0xd97eb5);else{const _0x46e822=_0x47dbea(),_0x532d20=_0x39d8ba['id'];this[_0x3c41('0x69')]({'id':_0x46e822,'type':_0x3c41('0x5e')+_0x5537b7,'data':_0x40b9bf,'createdAt':new Date(),'authorId':_0x532d20,'attributes':_0x445bad}),this[_0x3c41('0x9b')]('formatInline:'+_0x5537b7,_0x46e822,_0x532d20,_0xd97eb5);}}return null;}['markBlockFormat'](_0xdefe38,_0x33a088,_0x836a91=[],_0x14eba4=null,_0xa46b3e={}){_0x33a088[_0x3c41('0xc8')]||(_0x33a088[_0x3c41('0xc8')]=_0x33a088[_0x3c41('0x98')]),_0x33a088[_0x3c41('0x125')]=_0xdefe38['is'](_0x3c41('0x64')),_0x14eba4=_0x14eba4||Nt(_0x33a088);const _0x59bd67=_0x836a91[_0x3c41('0x93')](_0x2d994d=>jt(_0x2d994d,this[_0x3c41('0x115')])),_0x3e8c58=_0xdefe38['is'](_0x3c41('0x64'))?_0xdefe38:jt(_0xdefe38,this['_model']);if('never'===this[_0x3c41('0xba')]){const _0x194045=this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3c41('0x82'),_0x14eba4,'accept');return this['forceDefaultExecution'](()=>_0x194045([_0x3e8c58],_0x33a088,_0xa46b3e)),null;}_0x59bd67[_0x3c41('0xea')](_0x3e8c58);let _0x10f81b=!0x0;for(const _0x2ef409 of _0x59bd67)if(!this[_0x3c41('0x58')](_0x2ef409)){_0x10f81b=!0x1;break;}if(_0x10f81b&&'always'!==this[_0x3c41('0xba')]){const _0x534654=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x82'),_0x14eba4,_0x3c41('0x81'));return this[_0x3c41('0xe4')](()=>_0x534654([_0x3e8c58],_0x33a088,_0xa46b3e)),null;}let _0x410f7a=null,_0x2a7081=_0x3e8c58[_0x3c41('0x109')],_0x596c62=_0x3e8c58['end'];for(const {suggestion:_0x358793,meta:_0x2fa085}of this['_findSuggestions'](_0x3e8c58,'formatBlock')){if(!_0x2fa085[_0x3c41('0xfa')])continue;if(_0x2fa085[_0x3c41('0x4c')]||_0x2fa085[_0x3c41('0x7f')]||_0x2fa085['isInsideObject'])continue;if(_0x358793[_0x3c41('0x123')][_0x3c41('0xc8')]!=_0x33a088['formatGroupId'])continue;if(!Ot(_0x358793,_0xa46b3e))continue;const _0x438ce2=_0x358793[_0x3c41('0x85')]();if(_0x358793['subType']==_0x14eba4){if(_0x438ce2['containsRange'](_0x3e8c58,!0x0))return null;_0x2a7081=_0x2a7081[_0x3c41('0x13f')](_0x438ce2[_0x3c41('0x109')])?_0x2a7081:_0x438ce2[_0x3c41('0x109')],_0x596c62=_0x596c62[_0x3c41('0xfd')](_0x438ce2[_0x3c41('0x78')])?_0x596c62:_0x438ce2[_0x3c41('0x78')],_0x410f7a?_0x438ce2['start'][_0x3c41('0x13f')](_0x410f7a['getFirstRange']()[_0x3c41('0x109')])?(_0x410f7a['removeMarkers'](),_0x410f7a=_0x358793):_0x358793[_0x3c41('0xd7')]():_0x410f7a=_0x358793;}else{const _0x3fac89=_0x3e8c58[_0x3c41('0xcd')](_0x438ce2);this[_0x3c41('0x2a')](_0x358793,_0x3fac89);}}const _0x57292f=this[_0x3c41('0x35')][_0x3c41('0x5')]['get'](_0x3c41('0x34'))['me'],_0x212de3=_0x47dbea(),_0x50145d=_0x57292f['id'];if(_0x410f7a)return this[_0x3c41('0x13d')](_0x410f7a,this['_model']['createRange'](_0x2a7081,_0x596c62)),_0x410f7a;{const _0x3b17df=this['_setSuggestionData']({'id':_0x212de3,'type':_0x3c41('0x6d')+_0x14eba4,'data':_0x33a088,'createdAt':new Date(),'authorId':_0x50145d,'attributes':_0xa46b3e});return this[_0x3c41('0x9b')](_0x3c41('0x6d')+_0x14eba4,_0x212de3,_0x50145d,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x2a7081,_0x596c62)),_0x3b17df;}}[_0x3c41('0x134')](_0x6d2e0c,_0x39f9c0,_0x492dcc=[],_0x50aabb=null,_0x42e290={}){_0x39f9c0['formatGroupId']||(_0x39f9c0['formatGroupId']=_0x39f9c0['commandName']);const _0x8ee0fc=_0x6d2e0c[0x0];_0x39f9c0[_0x3c41('0x125')]=_0x8ee0fc['is'](_0x3c41('0x64')),_0x50aabb=_0x50aabb||Nt(_0x39f9c0);const _0xebf0e8=_0x492dcc[_0x3c41('0x93')](_0xc00508=>jt(_0xc00508,this[_0x3c41('0x115')])),_0x55a70f=_0x8ee0fc['is'](_0x3c41('0x64'))?_0x6d2e0c:_0x6d2e0c[_0x3c41('0x93')](_0x5a81ff=>jt(_0x5a81ff,this[_0x3c41('0x115')]));if('never'===this['_trackFormatChanges']){const _0x5bebde=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x81'));return this['forceDefaultExecution'](()=>_0x5bebde(_0x55a70f,_0x39f9c0,_0x42e290)),null;}_0xebf0e8[_0x3c41('0xea')](..._0x55a70f);let _0x446a7c=!0x0;for(const _0x44a7fc of _0xebf0e8)if(!this['_rangeIsInLocalUserInsertion'](_0x44a7fc)){_0x446a7c=!0x1;break;}if(_0x446a7c&&'always'!==this[_0x3c41('0xba')]){const _0x45f8d7=this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x81'));return this[_0x3c41('0xe4')](()=>_0x45f8d7(_0x55a70f,_0x39f9c0,_0x42e290)),null;}const _0x2b9731=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')]('Users')['me'];for(const _0x3e18a1 of this['getSuggestions']()){if(_0x3e18a1[_0x3c41('0x6e')]['id']!=_0x2b9731['id'])continue;if(_0x3c41('0x82')!=_0x3e18a1[_0x3c41('0x140')]||_0x3e18a1['data'][_0x3c41('0xc8')]!=_0x39f9c0[_0x3c41('0xc8')])continue;if(!Ot(_0x3e18a1,_0x42e290))continue;const _0x3a1154=_0x3e18a1['subType']==_0x50aabb;for(let _0x4632df=0x0;_0x4632df<_0x55a70f['length'];_0x4632df++){const _0x3b8568=_0x55a70f[_0x4632df];for(const _0x35a02b of _0x3e18a1[_0x3c41('0x3e')]()){const _0x566528=_0x35a02b['getRange']();if(_0x3b8568[_0x3c41('0xbe')](_0x566528)){_0x3a1154?(_0x55a70f[_0x3c41('0xa0')](_0x4632df,0x1),_0x4632df--):_0x3e18a1[_0x3c41('0x103')](_0x35a02b[_0x3c41('0x70')]);break;}}}}if(0x0==_0x55a70f['length'])return null;const _0x193e6b=this['_suggestionFactory'][_0x3c41('0x60')](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x17'));for(const _0x171d93 of this[_0x3c41('0xa7')]())if(_0x171d93[_0x3c41('0x6e')]['id']==_0x2b9731['id']&&'formatBlock'==_0x171d93[_0x3c41('0x140')]&&_0x171d93[_0x3c41('0x123')][_0x3c41('0xc8')]==_0x39f9c0[_0x3c41('0xc8')]&&_0x171d93[_0x3c41('0x3a')]==_0x50aabb&&Ot(_0x171d93,_0x42e290)&&(_0x193e6b(_0x171d93[_0x3c41('0xeb')](),_0x55a70f)||_0x193e6b(_0x55a70f,_0x171d93[_0x3c41('0xeb')]()))){for(const _0x56fca3 of _0x55a70f)_0x171d93['addRange'](_0x56fca3);return _0x171d93;}const _0x352fa8=_0x47dbea(),_0x5a0554=_0x2b9731['id'],_0xc21d2e=_0x3c41('0x6d')+_0x50aabb,_0x3d3072=this[_0x3c41('0x69')]({'id':_0x352fa8,'type':_0xc21d2e,'data':_0x39f9c0,'createdAt':new Date(),'authorId':_0x5a0554,'attributes':_0x42e290});for(const _0x2cf681 of _0x55a70f)this[_0x3c41('0x9b')](_0xc21d2e,_0x352fa8,_0x5a0554,_0x2cf681,_0x32734f['getMultiRangeId']());return _0x3d3072;}[_0x3c41('0x5d')](_0x5e8758,_0x37ee87=null,_0x1c0238={}){if(_0x5e8758[_0x3c41('0x142')])return null;const _0x227e01=this[_0x3c41('0x35')]['plugins'][_0x3c41('0xc1')](_0x3c41('0x34'))['me'],_0x308df1=new _0xe5a593(_0x5e8758[_0x3c41('0x109')],_0x5e8758[_0x3c41('0x78')]);for(const {suggestion:_0x509fd5,meta:_0x55ae66}of this['_findSuggestions'](_0x308df1,_0x3c41('0xdf')))if(_0x55ae66['isOwn']&&!_0x55ae66[_0x3c41('0x4c')]){if(_0x509fd5[_0x3c41('0xf7')]){const _0x2b7971=_0x509fd5['getRanges']()[_0x3c41('0x59')](_0x4d7e06=>_0x3c41('0x37')!=_0x4d7e06[_0x3c41('0x10e')][_0x3c41('0xc')]);_0x2b7971[_0x3c41('0xa9')](_0x1c3b91=>_0x308df1[_0x3c41('0x86')](_0x1c3b91,!0x0))&&_0x509fd5['discard']();if(_0x2b7971[_0x3c41('0x12d')](_0x44b7ea=>_0x44b7ea[_0x3c41('0x86')](_0x308df1,!0x0))){const _0x3a6b2e=this[_0x3c41('0x133')]['getSuggestionCallback']('deletion',_0x37ee87,'accept');return this[_0x3c41('0xe4')](()=>_0x3a6b2e([_0x308df1],null,_0x1c0238)),null;}}else{const _0x1dcace=_0x308df1[_0x3c41('0xcd')](_0x509fd5[_0x3c41('0x85')]());null!==_0x1dcace&&_0x509fd5[_0x3c41('0xef')]([_0x1dcace],null,_0x1c0238);}}if(_0x308df1[_0x3c41('0x111')](),_0x308df1[_0x3c41('0x142')]||_0x3c41('0x37')==_0x308df1[_0x3c41('0x10e')]['rootName'])return null;let _0x26c2f9=null,_0x21b2d4=_0x308df1[_0x3c41('0x109')],_0x59e8aa=_0x308df1[_0x3c41('0x78')];const _0x329460=this[_0x3c41('0xe1')](_0x308df1,_0x3c41('0x1f'));for(const {suggestion:_0x1dc60a,meta:_0x15e034}of _0x329460){const _0x19557e=this['_model']['createRange'](_0x21b2d4,_0x59e8aa);if(_0x15e034['isOwn']&&(this[_0x3c41('0x128')]||!_0x15e034[_0x3c41('0x7f')]&&!_0x15e034[_0x3c41('0x1')])){if(_0x1dc60a[_0x3c41('0xf7')]){if(!Ot(_0x1dc60a,_0x1c0238))continue;let _0x4646d5=!0x0;for(const _0x36e673 of _0x1dc60a[_0x3c41('0xeb')]()){if(_0x36e673[_0x3c41('0x86')](_0x19557e,!0x0))return _0x1dc60a;_0x19557e['containsRange'](_0x36e673)||(_0x4646d5=!0x1);}_0x4646d5&&_0x1dc60a['discard']();}else{const _0x168231=_0x1dc60a[_0x3c41('0x85')]();if(_0x168231[_0x3c41('0x86')](_0x19557e,!0x0))return _0x1dc60a;if(!Ot(_0x1dc60a,_0x1c0238)){_0x19557e['containsRange'](_0x168231)?_0x1dc60a['removeMarkers']():_0x168231[_0x3c41('0xd0')](_0x21b2d4)?_0x21b2d4=_0x168231['end']:_0x168231[_0x3c41('0xd0')](_0x59e8aa)&&(_0x59e8aa=_0x168231[_0x3c41('0x109')]);continue;}_0x21b2d4=_0x21b2d4[_0x3c41('0x13f')](_0x168231[_0x3c41('0x109')])?_0x21b2d4:_0x168231[_0x3c41('0x109')],_0x59e8aa=_0x59e8aa[_0x3c41('0xfd')](_0x168231[_0x3c41('0x78')])?_0x59e8aa:_0x168231[_0x3c41('0x78')],_0x1c0238=Object[_0x3c41('0x4a')]({},_0x1dc60a[_0x3c41('0x5a')]),_0x26c2f9?_0x168231[_0x3c41('0x109')][_0x3c41('0x13f')](_0x26c2f9[_0x3c41('0x85')]()[_0x3c41('0x109')])?(_0x26c2f9[_0x3c41('0xd7')](),_0x26c2f9=_0x1dc60a):_0x1dc60a[_0x3c41('0xd7')]():_0x26c2f9=_0x1dc60a;}}}if(_0x26c2f9)return this[_0x3c41('0x13d')](_0x26c2f9,this[_0x3c41('0x115')]['createRange'](_0x21b2d4,_0x59e8aa)),_0x26c2f9;{const _0x1b2a6a=_0x47dbea(),_0x4d1c99=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x21b2d4,_0x59e8aa),_0xb3ffa2=_0x227e01['id'],_0x3f10c1=_0x37ee87?'deletion:'+_0x37ee87:'deletion',_0x5e5309=this[_0x3c41('0x69')]({'id':_0x1b2a6a,'type':_0x3f10c1,'createdAt':new Date(),'authorId':_0xb3ffa2,'attributes':_0x1c0238});return this[_0x3c41('0x9b')](_0x3f10c1,_0x1b2a6a,_0xb3ffa2,_0x4d1c99),_0x5e5309;}}[_0x3c41('0x96')](_0x219f1b,_0x343987=_0x3c41('0xf5'),_0x2bbafe={}){const _0x5aadec=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')]('Users')['me'],_0x92769b=_0x219f1b[_0x3c41('0x93')](_0x4ff373=>new _0xe5a593(_0x4ff373['start'],_0x4ff373[_0x3c41('0x78')])),_0x2aeb5f=new Set();for(const {suggestion:_0x226cf3,meta:_0x321217}of this['_findSuggestions'](_0x92769b,_0x3c41('0xdf')))_0x321217[_0x3c41('0xfa')]&&!_0x321217[_0x3c41('0x4c')]&&_0x2aeb5f[_0x3c41('0x7b')](_0x226cf3);for(const _0xb00f14 of _0x2aeb5f)if(_0xb00f14[_0x3c41('0xf7')]){const _0x1ba51d=_0xb00f14[_0x3c41('0xeb')]();(!_0xb00f14[_0x3c41('0x5a')]||!_0xb00f14[_0x3c41('0x5a')][_0x3c41('0x100')])&&(_0x1ba51d[_0x3c41('0xa9')](_0x5a0b13=>_0x92769b[_0x3c41('0x12d')](_0x27b815=>_0x27b815['containsRange'](_0x5a0b13,!0x0)))&&_0xb00f14[_0x3c41('0xf4')]());if(_0x92769b[_0x3c41('0xa9')](_0x4a1392=>_0x1ba51d[_0x3c41('0x12d')](_0x53e4b3=>_0x53e4b3['containsRange'](_0x4a1392,!0x0)))){const _0x30b96b=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x1f'),_0x343987,'accept');return this[_0x3c41('0xe4')](()=>_0x30b96b(_0x219f1b,null,_0x2bbafe)),null;}}else{const _0xb74c37=_0xb00f14['getFirstRange']();_0x92769b[_0x3c41('0x12d')](_0x4b9027=>_0x4b9027[_0x3c41('0x86')](_0xb74c37,!0x0))&&_0xb00f14[_0x3c41('0xf4')]();if(_0x92769b['every'](_0x8d4b27=>_0xb74c37['containsRange'](_0x8d4b27,!0x0))){const _0x126a3e=this['_suggestionFactory'][_0x3c41('0x60')](_0x3c41('0x1f'),_0x343987,'accept');return this[_0x3c41('0xe4')](()=>_0x126a3e(_0x92769b,null,_0x2bbafe)),null;}}const _0xf18283=this[_0x3c41('0x133')]['getSuggestionCallback']('deletion',_0x343987,_0x3c41('0x17'));let _0x11c605=null;for(const _0xeb3a20 of this[_0x3c41('0xa7')]())if(_0xeb3a20[_0x3c41('0x6e')]['id']==_0x5aadec['id']&&_0xeb3a20[_0x3c41('0x29')]&&_0x3c41('0x1f')==_0xeb3a20['type']&&_0xeb3a20[_0x3c41('0x3a')]==_0x343987&&Ot(_0xeb3a20,_0x2bbafe)&&(_0xf18283(_0xeb3a20['getRanges'](),_0x92769b)||_0xf18283(_0x92769b,_0xeb3a20[_0x3c41('0xeb')]()))){if(_0x11c605){if(_0xeb3a20[_0x3c41('0x43')]&&_0xeb3a20[_0x3c41('0x43')][_0x3c41('0x80')])continue;for(const _0x36cd38 of _0xeb3a20[_0x3c41('0xeb')]())_0x11c605[_0x3c41('0x7')](_0x36cd38)||_0x11c605[_0x3c41('0x120')](_0x36cd38);_0xeb3a20[_0x3c41('0xd7')]();}else{_0x11c605=_0xeb3a20;for(const _0x2bd602 of _0x92769b)_0xeb3a20[_0x3c41('0x7')](_0x2bd602)||_0xeb3a20[_0x3c41('0x120')](_0x2bd602);}}if(_0x11c605)return _0x11c605;_0x2aeb5f[_0x3c41('0x8d')]();for(const {suggestion:_0x45e54a,meta:_0x2d3dec}of this[_0x3c41('0xe1')](_0x92769b,'deletion'))_0x2d3dec[_0x3c41('0xfa')]&&(this[_0x3c41('0x128')]||!_0x2d3dec[_0x3c41('0x7f')]&&!_0x2d3dec['isInsideObject'])&&Ot(_0x45e54a,_0x2bbafe)&&_0x2aeb5f[_0x3c41('0x7b')](_0x45e54a);for(const _0x4adc0f of _0x2aeb5f){const _0x17bf39=_0x4adc0f['getRanges']();if(!_0x2bbafe||!_0x2bbafe[_0x3c41('0x100')]){if(_0x92769b[_0x3c41('0xa9')](_0x284b0f=>_0x17bf39[_0x3c41('0x12d')](_0x72ce1a=>_0x72ce1a[_0x3c41('0x86')](_0x284b0f,!0x0))))return _0x4adc0f;}(!_0x4adc0f[_0x3c41('0x5a')]||!_0x4adc0f[_0x3c41('0x5a')][_0x3c41('0x100')])&&(_0x17bf39[_0x3c41('0xa9')](_0x562650=>_0x92769b[_0x3c41('0x12d')](_0x1dd516=>_0x1dd516[_0x3c41('0x86')](_0x562650,!0x0)))&&_0x4adc0f['discard']());}const _0x4fc84c=_0x47dbea(),_0x59c8a5=_0x5aadec['id'],_0x24ca0b=_0x3c41('0xf2')+_0x343987,_0x30b438=this[_0x3c41('0x69')]({'id':_0x4fc84c,'type':_0x24ca0b,'createdAt':new Date(),'authorId':_0x59c8a5,'attributes':_0x2bbafe});for(const _0x1f4ce3 of _0x92769b)_0x1f4ce3[_0x3c41('0x111')](),_0x1f4ce3[_0x3c41('0x142')]||_0x3c41('0x37')==_0x1f4ce3[_0x3c41('0x10e')][_0x3c41('0xc')]||this['_addSuggestionMarker'](_0x24ca0b,_0x4fc84c,_0x59c8a5,_0x1f4ce3,_0x32734f['getMultiRangeId']());return _0x30b438;}[_0x3c41('0x13d')](_0x35d5df,_0x21be79){const _0x37e25d=_0x35d5df[_0x3c41('0xcb')]();this[_0x3c41('0x115')]['change'](_0x4318df=>{_0x4318df[_0x3c41('0x6')](_0x37e25d,{'range':_0x21be79});});}[_0x3c41('0x75')](_0x5bcf4d){const _0x68dfcc=_0x5bcf4d['id'],_0x1fc068=this['editor'][_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0xb4'));this[_0x3c41('0x8f')][_0x3c41('0x12e')](_0x68dfcc)||this[_0x3c41('0x8f')][_0x3c41('0x10')]({'channelId':_0x1fc068,'threadId':_0x68dfcc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x257673=this[_0x3c41('0x8f')][_0x3c41('0x57')](_0x68dfcc);_0x257673[_0x3c41('0x8b')](_0x3c41('0x11c')),_0x257673[_0x3c41('0x11c')]=!0x1,_0x5bcf4d[_0x3c41('0x43')]=_0x257673;}[_0x3c41('0x119')](_0x117cd3,_0x412879,_0x41329b,_0x35dd3e){if(_0x117cd3[_0x3c41('0x140')]!=_0x412879||_0x117cd3[_0x3c41('0x3a')]!=_0x41329b||_0x117cd3['creator']['id']!=_0x35dd3e)throw this[_0x3c41('0x35')][_0x3c41('0x8')](_0x3c41('0x104')),new _0x149c43(_0x3c41('0x104'),this);}['_cutOutSuggestionMarker'](_0x4332aa,_0x4b8dba){const _0x455579=_0x4332aa[_0x3c41('0x85')]();if(_0x4b8dba[_0x3c41('0xbe')](_0x455579))_0x4332aa[_0x3c41('0xd7')]();else{if(_0x455579[_0x3c41('0x86')](_0x4b8dba)){const _0x568f4d=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba['start'][_0x3c41('0x3d')],_0x3c41('0x78'));this[_0x3c41('0x13d')](_0x4332aa,this['_model'][_0x3c41('0x6c')](_0x455579[_0x3c41('0x109')],_0x568f4d));const _0x388b06=_0x47dbea(),_0x1d5d6f=_0x4332aa['creator']['id'],_0x272c6a=_0x4332aa['type']+':'+_0x4332aa['subType'];this['_setSuggestionData']({'id':_0x388b06,'type':_0x272c6a,'createdAt':new Date(),'authorId':_0x1d5d6f,'data':_0x4332aa[_0x3c41('0x123')],'attributes':_0x4332aa[_0x3c41('0x5a')]});const _0x5662be=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba['end'][_0x3c41('0x9f')],'after'),_0x147891=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5662be,_0x455579[_0x3c41('0x78')]);this[_0x3c41('0x9b')](_0x272c6a,_0x388b06,_0x1d5d6f,_0x147891);}else{if(_0x455579[_0x3c41('0xd0')](_0x4b8dba[_0x3c41('0x109')])){const _0x2c1cb2=this[_0x3c41('0x115')]['createPositionAt'](_0x4b8dba[_0x3c41('0x109')]['nodeBefore'],_0x3c41('0x78'));this[_0x3c41('0x13d')](_0x4332aa,this['_model'][_0x3c41('0x6c')](_0x455579[_0x3c41('0x109')],_0x2c1cb2));}else{const _0x27acb5=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba[_0x3c41('0x78')][_0x3c41('0x9f')],_0x3c41('0x44'));this[_0x3c41('0x13d')](_0x4332aa,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x27acb5,_0x455579[_0x3c41('0x78')]));}}}}[_0x3c41('0x58')](_0x382610){for(const {suggestion:_0x38d169,meta:_0x4fd08f}of this['_findSuggestions'](_0x382610,_0x3c41('0xdf'))){if(!_0x4fd08f[_0x3c41('0xfa')])continue;const _0x27436c=_0x38d169['getRanges']();for(const _0x5053e6 of _0x27436c)if(!_0x382610['getDifference'](_0x5053e6)[_0x3c41('0x80')])return!0x0;}return!0x1;}[_0x3c41('0xf6')](_0x371004){const _0x1434d4=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))[_0x3c41('0x9a')](_0x371004);if(!_0x1434d4)throw new _0x149c43('track-changes-user-not-found',this);return _0x1434d4;}[_0x3c41('0xd')](_0x3a6cca){const _0x30c82a=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34')),_0x25f10d=_0x4ee5c6(_0x3c41('0x54')+_0x3a6cca),_0x500368=_0x30c82a[_0x3c41('0x9a')](_0x25f10d);return _0x500368||_0x30c82a[_0x3c41('0xdb')]({'id':_0x25f10d,'name':_0x3a6cca});}[_0x3c41('0x10b')](_0x52349e,_0x35d6b8,_0x17cdf0,_0x4f0b0f,_0x45905b){const _0x2ed9c1=this['_getAuthorFromId'](_0x4f0b0f),_0x23fa55=this[_0x3c41('0x133')][_0x3c41('0x31')](_0x52349e,_0x35d6b8,_0x17cdf0,_0x2ed9c1,_0x45905b,_0x11057b=>this[_0x3c41('0xf3')](_0x17cdf0,{'attributes':_0x11057b}));return this[_0x3c41('0x24')](_0x23fa55,_0x3c41('0x81'),()=>{this[_0x3c41('0xf3')](_0x17cdf0,{'state':'accepted'});},{'priority':'high'}),this[_0x3c41('0x24')](_0x23fa55,_0x3c41('0xf4'),()=>{this[_0x3c41('0xf3')](_0x17cdf0,{'state':_0x3c41('0x9c')});},{'priority':_0x3c41('0x63')}),this[_0x3c41('0xb2')][_0x3c41('0xce')](_0x17cdf0,_0x23fa55),this[_0x3c41('0x138')][_0x3c41('0xce')](_0x23fa55,_0x3c41('0xac')),_0x23fa55;}[_0x3c41('0xf9')](_0x54fe73){const _0x4c3968=_0x54fe73[_0x3c41('0x13a')](':');return{'group':_0x4c3968[0x0],'type':_0x4c3968[0x1],'subType':_0x4c3968['length']>=0x5?_0x4c3968[0x2]:null,'id':_0x4c3968['length']<0x5?_0x4c3968[0x2]:_0x4c3968[0x3],'authorId':_0x4c3968[_0x3c41('0x80')]<0x5?_0x4c3968[0x3]:_0x4c3968[0x4],'markerCount':0x6==_0x4c3968[_0x3c41('0x80')]?_0x4c3968[0x5]:null};}['_breakSuggestionMarker'](_0x58fda4,_0xebdb1c,_0x93462a){const _0x2b8a04=_0x58fda4['getFirstRange'](),_0x4b13cb=_0x2b8a04[_0x3c41('0x109')],_0x4853e4=_0x2b8a04[_0x3c41('0x78')];this[_0x3c41('0x13d')](_0x58fda4,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x4b13cb,_0xebdb1c));const _0x3b745a=_0x47dbea(),_0x1f7686=_0x58fda4[_0x3c41('0x9d')]['id'],_0x41e0c8=_0x58fda4[_0x3c41('0x140')]+(_0x58fda4['subType']?':'+_0x58fda4[_0x3c41('0x3a')]:'');this[_0x3c41('0x69')]({'id':_0x3b745a,'type':_0x41e0c8,'createdAt':new Date(),'authorId':_0x1f7686,'originalSuggestionId':_0x58fda4['id'],'attributes':_0x58fda4['attributes'],'data':_0x58fda4[_0x3c41('0x123')]}),_0x3c41('0x82')==_0x58fda4['type']&&(_0x93462a=this[_0x3c41('0x115')][_0x3c41('0x67')](_0x93462a['parent'])),this[_0x3c41('0x9b')](_0x41e0c8,_0x3b745a,_0x1f7686,this[_0x3c41('0x115')]['createRange'](_0x93462a,_0x4853e4));}['_findSuggestions'](_0x8cbc4c,_0x5c1c23=null){const _0x40b8c1=[],_0x2131e3=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'];Array[_0x3c41('0xd8')](_0x8cbc4c)||(_0x8cbc4c=[_0x8cbc4c]);for(const _0x3470c3 of this['getSuggestions']()){if(!_0x3470c3['isInContent'])continue;if(_0x5c1c23&&_0x3470c3['type']!=_0x5c1c23)continue;let _0xb70167=!0x1;for(const _0x38fe90 of _0x3470c3[_0x3c41('0xeb')]()){for(const _0x51a406 of _0x8cbc4c){const _0x454763=_0x51a406['start'][_0x3c41('0xbe')](_0x38fe90[_0x3c41('0x78')])||_0x51a406[_0x3c41('0x78')]['isEqual'](_0x38fe90[_0x3c41('0x109')]);if(_0x454763||_0x51a406[_0x3c41('0xcd')](_0x38fe90)){const _0x50550e=_0x51a406[_0x3c41('0x86')](_0x38fe90)&&_t(this[_0x3c41('0x115')][_0x3c41('0xfe')],_0x38fe90[_0x3c41('0x109')],_0x51a406),_0x1aa59a=_0x38fe90['containsRange'](_0x51a406)&&_t(this[_0x3c41('0x115')]['schema'],_0x51a406['start'],_0x38fe90);_0x40b8c1['push']({'suggestion':_0x3470c3,'meta':{'isOwn':_0x2131e3==_0x3470c3[_0x3c41('0x6e')],'isNextTo':_0x454763,'isInsideObject':_0x50550e,'containsRangeInObject':_0x1aa59a}}),_0xb70167=!0x0;break;}}if(_0xb70167)break;}}return _0x40b8c1;}[_0x3c41('0x9b')](_0x58ac50,_0x10d1e4,_0x4df229,_0x245871,_0x594098){this['_model'][_0x3c41('0x112')](_0x1c68aa=>{let _0x173770='suggestion:'+_0x58ac50+':'+_0x10d1e4+':'+_0x4df229;_0x594098&&(_0x173770=_0x173770+':'+_0x594098),_0x1c68aa[_0x3c41('0x7e')](_0x173770,{'range':_0x245871,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3c41('0x18')](_0x42f4ca){const _0x2786c0=_0x42f4ca[_0x3c41('0x8a')],_0x5e3670=_0x42f4ca[_0x3c41('0x89')];_0x42f4ca['previous']=null,null!=_0x2786c0&&(_0x2786c0[_0x3c41('0x89')]=null),_0x42f4ca[_0x3c41('0x89')]=null,null!=_0x5e3670&&(_0x5e3670['previous']=null),_0x3c41('0xfb')==this['_suggestionState'][_0x3c41('0xc1')](_0x42f4ca)&&(this[_0x3c41('0x138')][_0x3c41('0xce')](_0x42f4ca,_0x3c41('0xff')),this[_0x3c41('0x7d')](_0x3c41('0x92'),_0x42f4ca,_0x2786c0,_0x5e3670));}[_0x3c41('0x69')](_0x1fa207){const _0x5d1e24=_0x1fa207['id'],_0x45a02b=this[_0x3c41('0x12b')](_0x1fa207);if(this[_0x3c41('0x114')]&&this[_0x3c41('0x114')]['addSuggestion']){const _0x571031=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0xb6')),_0x1e4711=_0x45a02b[_0x3c41('0xb0')],_0x3a1ea9=_0x45a02b[_0x3c41('0x3a')]?_0x45a02b['type']+':'+_0x45a02b[_0x3c41('0x3a')]:_0x45a02b[_0x3c41('0x140')],_0x37afd3=this[_0x3c41('0x35')]['locale'],_0x40d6c5=_0x571031[_0x3c41('0x7b')](_0x5dd432(_0x37afd3,_0x3c41('0xc3'))),_0x46e32b={'id':_0x5d1e24,'type':_0x3a1ea9,'hasComments':_0x1e4711,'data':_0x1fa207['data']||null,'originalSuggestionId':_0x1fa207[_0x3c41('0x79')]||null,'attributes':_0x45a02b[_0x3c41('0x5a')]};this[_0x3c41('0x114')][_0x3c41('0x131')](_0x46e32b)['then'](_0x2dd0b7=>{_0x45a02b[_0x3c41('0x73')]=!0x0,_0x571031[_0x3c41('0xbb')](_0x40d6c5),_0x2dd0b7&&_0x2dd0b7['createdAt']&&(this['_suggestions'][_0x3c41('0xc1')](_0x5d1e24)[_0x3c41('0x139')]=_0x2dd0b7[_0x3c41('0x139')]);})[_0x3c41('0xd6')](_0x36c5c4=>{throw _0x151902('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model'][_0x3c41('0x126')]({'isUndoable':!0x1},()=>{_0x45a02b[_0x3c41('0xf4')]();}),_0x45a02b[_0x3c41('0x27')](),this[_0x3c41('0xb2')][_0x3c41('0x94')](_0x45a02b['id']),this[_0x3c41('0x138')][_0x3c41('0x94')](_0x45a02b),_0x36c5c4;});}return _0x45a02b;}[_0x3c41('0xf3')](_0x434377,_0x3c3098){const _0xe244d3=this['editor'][_0x3c41('0x5')]['get']('PendingActions'),_0x2dfbff=this['getSuggestion'](_0x434377);if(this[_0x3c41('0x114')]&&this['_adapter'][_0x3c41('0x4')]){if(_0x2dfbff[_0x3c41('0x73')]){const _0x31b915=_0xe244d3[_0x3c41('0x7b')](_0x5dd432(this['editor']['locale'],_0x3c41('0xc3')));this['_adapter']['updateSuggestion'](_0x434377,_0x3c3098)[_0x3c41('0xd2')](()=>{_0xe244d3[_0x3c41('0xbb')](_0x31b915);});}else _0x2dfbff['on'](_0x3c41('0xc0'),()=>{this[_0x3c41('0xf3')](_0x434377,_0x3c3098);});}}['_getSuggestionData'](_0x321520){if(!this[_0x3c41('0x114')]||!this[_0x3c41('0x114')][_0x3c41('0x9')])throw new _0x149c43(_0x3c41('0x117'),this);return this[_0x3c41('0x114')][_0x3c41('0x9')](_0x321520);}[_0x3c41('0xc4')](_0x436909){const {id:_0x5062e9,type:_0x6258,subType:_0x501f17,authorId:_0x1d7efa}=this[_0x3c41('0xf9')](_0x436909),_0xdb1c35=this['_suggestions'][_0x3c41('0xc1')](_0x5062e9)||this['_createSuggestion'](_0x6258,_0x501f17,_0x5062e9,_0x1d7efa,{});switch(this[_0x3c41('0x119')](_0xdb1c35,_0x6258,_0x501f17,_0x1d7efa),this[_0x3c41('0x138')][_0x3c41('0xc1')](_0xdb1c35)){case'notReady':this['_getSuggestionData'](_0x5062e9)['then'](_0x586961=>{let _0x411740=Promise[_0x3c41('0xc7')]();_0x586961[_0x3c41('0xb0')]&&(_0x411740=this[_0x3c41('0x8f')]['fetchCommentThread']({'channelId':this[_0x3c41('0x35')][_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0xb4')),'threadId':_0x5062e9})),_0x411740[_0x3c41('0xd2')](()=>{this[_0x3c41('0x12b')](_0x586961)[_0x3c41('0x73')]=!0x0;});}),this[_0x3c41('0x138')][_0x3c41('0xce')](_0xdb1c35,_0x3c41('0x53'));break;case _0x3c41('0xff'):this[_0x3c41('0xf3')](_0x5062e9,{'state':_0x3c41('0x14')});case _0x3c41('0x95'):this[_0x3c41('0x138')][_0x3c41('0xce')](_0xdb1c35,'ready'),this[_0x3c41('0x7d')]('suggestionLoaded',_0xdb1c35);break;case _0x3c41('0xfb'):this['fire']('suggestionChanged',_0xdb1c35);}return _0xdb1c35[_0x3c41('0xcf')](_0x436909),_0xdb1c35;}[_0x3c41('0xc9')](_0x42e3f6){const _0x2e8f61=Array[_0x3c41('0xe3')](_0x42e3f6)[_0x3c41('0x59')](_0x38a61f=>!_0x38a61f['isMultiRange']),_0x3fdb95=this['getSuggestions']({'skipNotAttached':!0x0})[_0x3c41('0x59')](_0x43d301=>!_0x43d301[_0x3c41('0xf7')]),_0x31e170=_0x3fdb95[_0x3c41('0x59')](_0x4e6cbd=>!_0x42e3f6[_0x3c41('0x10c')](_0x4e6cbd)),_0x5541e8=new Map(_0x3fdb95[_0x3c41('0x93')](_0x13f329=>[_0x13f329,this[_0x3c41('0x133')][_0x3c41('0x60')](_0x13f329[_0x3c41('0x140')],_0x13f329['subType'],_0x3c41('0x39'))])),_0x13a7af=new Map(_0x3fdb95['map'](_0x335e80=>[_0x335e80,_0x335e80[_0x3c41('0x85')]()])),_0x48211d=new Set(),_0x4616f6=new Set();for(let _0x3c7a36=0x0;_0x3c7a36<_0x2e8f61[_0x3c41('0x80')];_0x3c7a36++)_0x130089(_0x2e8f61[_0x3c7a36],_0x2e8f61,_0x3c7a36+0x1);for(let _0x247799=0x0;_0x247799<_0x2e8f61['length'];_0x247799++)_0x130089(_0x2e8f61[_0x247799],_0x31e170,0x0);for(let _0x2700a4=0x0;_0x2700a4<_0x2e8f61[_0x3c41('0x80')];_0x2700a4++){const _0x454a66=_0x2e8f61[_0x2700a4];!_0x4616f6[_0x3c41('0x10c')](_0x454a66)&&_0x454a66[_0x3c41('0x8a')]&&(_0x454a66[_0x3c41('0x8a')][_0x3c41('0x89')]===_0x454a66&&(_0x454a66[_0x3c41('0x8a')][_0x3c41('0x89')]=null),_0x454a66['previous']=null),!_0x48211d[_0x3c41('0x10c')](_0x454a66)&&_0x454a66['next']&&(_0x454a66['next'][_0x3c41('0x8a')]===_0x454a66&&(_0x454a66['next'][_0x3c41('0x8a')]=null),_0x454a66[_0x3c41('0x89')]=null);}function _0x130089(_0x26afda,_0x56a303,_0xd019d9){for(let _0x1af70d=_0xd019d9;_0x1af70d<_0x56a303[_0x3c41('0x80')];_0x1af70d++){const _0x391f8e=_0x5d59b7(_0x26afda,_0x56a303[_0x1af70d]);_0x391f8e&&(_0x391f8e[0x0][_0x3c41('0x89')]=_0x391f8e[0x1],_0x391f8e[0x1][_0x3c41('0x8a')]=_0x391f8e[0x0],_0x48211d['add'](_0x391f8e[0x0]),_0x4616f6[_0x3c41('0x7b')](_0x391f8e[0x1]));}}function _0x5d59b7(_0x172e03,_0x4786b2){if(_0x172e03[_0x3c41('0x6e')]['id']!==_0x4786b2[_0x3c41('0x6e')]['id'])return null;const _0x1c4b6b=_0x5541e8[_0x3c41('0xc1')](_0x172e03)(_0x172e03,_0x4786b2,_0x13a7af['get'](_0x172e03),_0x13a7af['get'](_0x4786b2));if(!_0x1c4b6b)return null;return _0x5541e8[_0x3c41('0xc1')](_0x4786b2)(_0x172e03,_0x4786b2,_0x13a7af[_0x3c41('0xc1')](_0x172e03),_0x13a7af[_0x3c41('0xc1')](_0x4786b2))?_0x1c4b6b[0x1][_0x3c41('0x43')]&&_0x1c4b6b[0x1]['commentThread'][_0x3c41('0x80')]?null:_0x1c4b6b:null;}}[_0x3c41('0x99')](_0x544cb4){const _0x43c5ef=Array[_0x3c41('0xe3')](_0x544cb4),_0x5050f0=this[_0x3c41('0xa7')]({'skipNotAttached':!0x0}),_0x197629=_0x5050f0['filter'](_0x152700=>!_0x544cb4[_0x3c41('0x10c')](_0x152700)),_0x179bea=new Map(_0x43c5ef[_0x3c41('0x93')](_0x3d6a20=>[_0x3d6a20,this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3d6a20[_0x3c41('0x140')],_0x3d6a20[_0x3c41('0x3a')],_0x3c41('0x17'))])),_0x3087f7=new Map(_0x5050f0[_0x3c41('0x93')](_0x58ac0f=>[_0x58ac0f,_0x58ac0f[_0x3c41('0xeb')]()]));for(let _0x1efbe7=0x0;_0x1efbe7<_0x43c5ef[_0x3c41('0x80')];_0x1efbe7++){if(_0x5ba188(this,_0x43c5ef[_0x1efbe7],_0x43c5ef,_0x1efbe7+0x1))return!0x0;}for(let _0x1d8f4a=0x0;_0x1d8f4a<_0x43c5ef['length'];_0x1d8f4a++){if(_0x5ba188(this,_0x43c5ef[_0x1d8f4a],_0x197629,0x0))return!0x0;}return!0x1;function _0x5ba188(_0x56ac21,_0x2cc7a7,_0x279ade,_0x24c1d3){for(let _0x58b649=_0x24c1d3;_0x58b649<_0x279ade[_0x3c41('0x80')];_0x58b649++){const _0xc2eccc=_0x279ade[_0x58b649];if(_0xc2eccc[_0x3c41('0x140')]!==_0x2cc7a7[_0x3c41('0x140')]||_0xc2eccc['author']['id']!==_0x2cc7a7[_0x3c41('0x6e')]['id']||_0xc2eccc[_0x3c41('0x3a')]!==_0x2cc7a7['subType'])continue;if(!Ut(_0x2cc7a7,_0xc2eccc))continue;const _0x56a550=_0x179bea['get'](_0x2cc7a7),_0xdb5571=_0x3087f7[_0x3c41('0xc1')](_0x2cc7a7),_0x4db6aa=_0x3087f7[_0x3c41('0xc1')](_0xc2eccc),_0x54edeb=_0x2cc7a7[_0x3c41('0x43')]&&_0x2cc7a7[_0x3c41('0x43')]['length'],_0xf6a69e=_0xc2eccc[_0x3c41('0x43')]&&_0xc2eccc[_0x3c41('0x43')][_0x3c41('0x80')];if(!_0x54edeb&&_0x56a550(_0x4db6aa,_0xdb5571))return _0x56ac21[_0x3c41('0xe2')](_0xc2eccc,_0x2cc7a7),_0x3087f7['delete'](_0x2cc7a7),!0x0;if(!_0xf6a69e&&_0x56a550(_0xdb5571,_0x4db6aa))return _0x56ac21[_0x3c41('0xe2')](_0x2cc7a7,_0xc2eccc),_0x3087f7['delete'](_0xc2eccc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4bd81d,_0x69444){if(_0x4bd81d[_0x3c41('0xf7')])for(const _0xa47f95 of _0x69444[_0x3c41('0xeb')]())_0x4bd81d[_0x3c41('0x120')](_0xa47f95);else{const _0x101295=_0x69444['getFirstRange']()[_0x3c41('0x78')];this[_0x3c41('0x13d')](_0x4bd81d,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x4bd81d[_0x3c41('0x85')]()[_0x3c41('0x109')],_0x101295));}_0x69444['removeMarkers']();}}class Bt{constructor(_0x3b703a){this[_0x3c41('0x6f')]=_0x3b703a,this[_0x3c41('0x115')]=_0x3b703a[_0x3c41('0xd3')],this[_0x3c41('0xed')]=new Map(),this[_0x3c41('0x145')]=new Map(),this[_0x3c41('0x105')]();}[_0x3c41('0x31')](_0x338a9e,_0x6cad3d,_0x26a64b,_0x378e0d,_0x296cc9,_0x3e0c12){return new _0x32734f(this[_0x3c41('0x115')],{'type':_0x338a9e,'subType':_0x6cad3d,'id':_0x26a64b,'author':_0x378e0d,'creator':_0x378e0d,'attributes':_0x296cc9,'onAttributesChange':_0x3e0c12,'onAccept':(..._0x3fc6fe)=>this['getSuggestionCallback'](_0x338a9e,_0x6cad3d,_0x3c41('0x81'))(..._0x3fc6fe),'onDiscard':(..._0x53e451)=>this['getSuggestionCallback'](_0x338a9e,_0x6cad3d,_0x3c41('0xf4'))(..._0x53e451)});}[_0x3c41('0x106')](_0x5bfd6f,_0x131430,_0x3bc43a,_0x41f06e){const _0x272e72=_0x5bfd6f+':'+_0x131430+':'+_0x3bc43a;this[_0x3c41('0xed')]['set'](_0x272e72,_0x41f06e);}[_0x3c41('0x60')](_0x189991,_0x514e1a,_0x4eb028){const _0x4ac7dd=_0x189991+':'+_0x514e1a+':'+_0x4eb028;return this[_0x3c41('0xed')][_0x3c41('0xc1')](_0x4ac7dd)||this[_0x3c41('0x145')]['get'](_0x189991+':'+_0x4eb028);}[_0x3c41('0x105')](){const _0x5e2c9d=()=>!0x1,_0x1970df=_0x5ead93=>{_0x5ead93[_0x3c41('0xe')]((_0x44dc0b,_0x13e92d)=>_0x44dc0b[_0x3c41('0x109')]['isBefore'](_0x13e92d['start'])?0x1:-0x1),this[_0x3c41('0x115')][_0x3c41('0x112')](_0xe0b276=>{for(const _0x582795 of _0x5ead93){let _0x1ac909;_0x1ac909=_0x582795[_0x3c41('0x78')][_0x3c41('0x2')]&&_0x582795[_0x3c41('0x78')]['parent']==_0x582795[_0x3c41('0x109')]['nodeAfter']?_0xe0b276[_0x3c41('0x13e')](_0x582795['start']['nodeAfter'],'on'):_0xe0b276[_0x3c41('0x13e')](_0x582795),this[_0x3c41('0x115')]['deleteContent'](_0x1ac909,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x234acb=(_0x5453fa,_0x3a628e)=>{this[_0x3c41('0x115')][_0x3c41('0x112')](_0x54f13b=>{const {commandName:_0x74d212,commandParams:_0xa005ca=[]}=_0x3a628e,_0x47ee12=_0x5453fa[_0x3c41('0x93')](_0x5a08cd=>(Mt(_0x5a08cd)&&(_0x5a08cd=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5a08cd[_0x3c41('0x78')])),_0x5a08cd))[_0x3c41('0x59')](_0xe4fd48=>_0x3c41('0x37')!==_0xe4fd48[_0x3c41('0x10e')]['rootName']);if(_0x47ee12[_0x3c41('0x80')]<0x1)return;const _0x23c046=Array['from'](this['_model'][_0x3c41('0x23')]['selection'][_0x3c41('0xeb')]())[_0x3c41('0x93')](_0x572754=>_0xe5a593[_0x3c41('0x124')](_0x572754));_0x54f13b[_0x3c41('0xbd')](_0x47ee12);for(const _0xdd794c of this[_0x3c41('0x6f')][_0x3c41('0xc2')][_0x3c41('0xc2')]())_0xdd794c[_0x3c41('0x5b')]();_0xa005ca[_0x3c41('0xea')]({'forceDefaultExecution':!0x0}),this[_0x3c41('0x6f')][_0x3c41('0x3f')](_0x74d212,..._0xa005ca);const _0x2cbd54=_0x23c046[_0x3c41('0x59')](_0x88a5da=>_0x3c41('0x37')!=_0x88a5da[_0x3c41('0x10e')][_0x3c41('0xc')]);_0x2cbd54[_0x3c41('0x80')]>0x0&&_0x54f13b[_0x3c41('0xbd')](_0x2cbd54);for(const _0x238d6e of _0x23c046)_0x238d6e['detach']();});},_0x4bd0dc=(_0x47f96f,_0x3981df)=>0x1==_0x47f96f[_0x3c41('0x80')]&&0x1==_0x3981df[_0x3c41('0x80')]&&_0x47f96f[0x0][_0x3c41('0x78')][_0x3c41('0xbe')](_0x3981df[0x0]['start']),_0x2d0b25=(_0xadc142,_0x3db0c2,_0xd85bf8,_0x19ddd8)=>xt(_0xadc142,_0x3db0c2,_0xd85bf8,_0x19ddd8,this[_0x3c41('0x115')])?[_0xadc142,_0x3db0c2]:xt(_0x3db0c2,_0xadc142,_0x19ddd8,_0xd85bf8,this[_0x3c41('0x115')])?[_0x3db0c2,_0xadc142]:null;this['_defaultCallbacks'][_0x3c41('0xce')](_0x3c41('0xdd'),_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x113'),_0x1970df),this[_0x3c41('0x145')]['set'](_0x3c41('0xb3'),_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x68'),_0x2d0b25),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:accept',_0x1970df),this['_defaultCallbacks'][_0x3c41('0xce')]('deletion:discard',_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:join',_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:chain',_0x2d0b25),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0xda'),_0x234acb),this['_defaultCallbacks'][_0x3c41('0xce')](_0x3c41('0x83'),_0x5e2c9d),this[_0x3c41('0x145')]['set'](_0x3c41('0x5c'),_0x4bd0dc),this[_0x3c41('0x145')]['set'](_0x3c41('0xa3'),_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0xf0'),_0x234acb),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x19'),_0x5e2c9d),this[_0x3c41('0x145')]['set'](_0x3c41('0x88'),_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')]('formatBlock:chain',_0x5e2c9d);}}function _t(_0x169d6e,_0x5291f2,_0x2d3911){for(const _0x46bc80 of _0x5291f2[_0x3c41('0x9f')][_0x3c41('0x4e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x46bc80[_0x3c41('0x10e')]==_0x46bc80)return!0x1;if(!_0x2d3911[_0x3c41('0x11f')](_0x46bc80))return!0x1;if(_0x169d6e[_0x3c41('0x116')](_0x46bc80)||_0x169d6e['isLimit'](_0x46bc80))return!0x0;}return!0x1;}function Mt(_0x2603e4){return _0x2603e4['end'][_0x3c41('0x9f')]==_0x2603e4['start'][_0x3c41('0x101')]&&_0x2603e4['end'][_0x3c41('0x121')];}function $t(_0x2f3057,_0x5c6461,_0x1f0ce3,_0x43ad37){const _0xe876f3=_0x260de7=>!_0x260de7[_0x3c41('0x55')]['is'](_0x3c41('0x10a'))&&!_0x43ad37[_0x3c41('0x116')](_0x260de7[_0x3c41('0x55')]),_0x2ac1c7=_0x2f3057[_0x3c41('0x109')]['getLastMatchingPosition'](_0xe876f3),_0x40518d=_0x2f3057['end'][_0x3c41('0x7a')](_0xe876f3,{'direction':_0x3c41('0x2c')});return(!_0x2f3057[_0x3c41('0x109')][_0x3c41('0xbe')](_0x2ac1c7)||!_0x2f3057['end']['isEqual'](_0x40518d))&&(_0x2ac1c7['isBefore'](_0x40518d)?_0x1f0ce3[_0x3c41('0x6')](_0x5c6461,{'range':_0x1f0ce3[_0x3c41('0x6c')](_0x2ac1c7,_0x40518d)}):_0x1f0ce3[_0x3c41('0x103')](_0x5c6461),!0x0);}function Nt(_0xe45085){return _0x4ee5c6(_0xe45085);}function Rt(_0x591c47){const _0x15ff1d=_0x591c47[_0x3c41('0x109')][_0x3c41('0x101')];return _0x15ff1d&&_0x15ff1d['is']('element');}function jt(_0x2bc029,_0x34cee1){const _0x2b8c05=_0x34cee1['schema'][_0x3c41('0x116')](_0x2bc029)||_0x34cee1['schema'][_0x3c41('0x51')](_0x2bc029);return _0x34cee1[_0x3c41('0x6c')](_0x34cee1[_0x3c41('0x141')](_0x2bc029,_0x3c41('0xb')),_0x2b8c05?_0x34cee1[_0x3c41('0xe8')](_0x2bc029):_0x34cee1[_0x3c41('0x141')](_0x2bc029,_0x3c41('0x78')));}function xt(_0x221282,_0x1dd102,_0x5bee6a,_0x497865,_0x497979){if(!Ut(_0x221282,_0x1dd102))return!0x1;if(_0x5bee6a['end'][_0x3c41('0xbe')](_0x497865[_0x3c41('0x109')]))return!0x0;if(_0x221282[_0x3c41('0x140')]!=_0x1dd102[_0x3c41('0x140')])return!0x1;if(!_0x5bee6a[_0x3c41('0x78')][_0x3c41('0x12f')](_0x497865['start']))return!0x1;const _0x40342a=_0x497979['createRange'](_0x5bee6a[_0x3c41('0x78')],_0x497865['start'])[_0x3c41('0x107')]();for(const _0x58b0d1 of _0x40342a)if([_0x3c41('0x12c'),_0x3c41('0xec')]['includes'](_0x58b0d1[_0x3c41('0x140')])&&_0x497979[_0x3c41('0xfe')][_0x3c41('0x30')](_0x58b0d1[_0x3c41('0x55')]))return!0x1;return!0x0;}function Ut(_0x310c94,_0x5c895e){return!(!_0x310c94[_0x3c41('0x2d')]||!_0x5c895e['_isDataLoaded'])&&_0x524132(_0x310c94[_0x3c41('0x5a')],_0x5c895e['attributes']);}function Ot(_0x2221af,_0x29a196){const _0x2f4a87=Et(_0x2221af[_0x3c41('0x5a')]),_0x31e941=Et(_0x29a196);if(!_0x2221af[_0x3c41('0x2d')])return!0x1;for(const _0x916825 of Object[_0x3c41('0x9e')](_0x31e941))if(!_0x524132(_0x2f4a87[_0x916825],_0x31e941[_0x916825]))return!0x1;return!0x0;}function Et(_0x8a29d5){const _0x2df627=Object[_0x3c41('0x4a')]({},_0x8a29d5);return delete _0x2df627[_0x3c41('0x100')],delete _0x2df627[_0x3c41('0xa')],_0x2df627;}