@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230801.0 → 0.0.0-nightly-20230802.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-
|
|
3
|
+
"version": "0.0.0-nightly-20230802.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-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20230802.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230802.0",
|
|
44
44
|
"lodash-es": "4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xdbf4=['deletion','formatInline','_joinWithAdjacentSuggestions','position','suggestionUnloaded','attributes','isIntersectingWithRange','next','multi','formatBlock','fire','marker-count','formatBlock:chain','$marker','enableReadOnlyMode','discardSuggestion','addMarker:suggestion:formatBlock','length','resolve','formatBlock:join','track-changes-suggestion-data-mismatch','_addSuggestionMarker','element','_onDiscard','_createSuggestion','values','catch','_updateSuggestionData','showSuggestionHighlights','insertion:accept','oldRange','deletion:','_getSuggestionData','_splitMarkerName','add','getCommentThread','split','getUser','commandName','error-saving-suggestion-data-suggestion-discarded','_adapter','registerPostFixer','set','acceptSuggestion','nodeBefore','ck-suggestion-marker-','removeClass','getCustomProperty','containsRangeInObject','markDeletion','addHighlight','track-changes-command-not-found','batch','getChangedMarkers','_breakSuggestionMarker','_setSuggestionRange','every','trackChanges.mergeNestedSuggestions','item','moveTargetPosition','_defaultCallbacks','execute','addComment','parent','hasSuggestion','getIntersection','model','_cutOutSuggestionMarker','markBlockFormat','from','update:suggestion','some','isMultiRange','removeMarker:suggestion:formatBlock','never','$textProxy','createPositionAt','rejected','accept','fromCharCode','isEqual','isInContent','high','containsRange','markInsertion','hasComments','rootName','removed','_findSuggestions','registerCustomCallback','selection','createdAt','head','change:activeMarkers','data-suggestion','splice','addCommentThread','discard','isBlock','commentThread','isTouching','isAtEnd','formatBlock:accept','isUndo','deletion:join','isSelectable','clone','isDocumentOperation','notReady','forceDefaultExecution','getShiftedBy','getChanges','always','isBefore','getSuggestionCallback','_enabledCommands','addMarker:suggestion','isOwn','removeMarkers','document','removeMarker','_isForcedDefaultExecutionBlock','get','addUser','newRange','subType','_registerDefaultCallbacks','isAtStart','$graveyard','remove','options','end','conversion','config','push','formatInline:chain','removeAttribute','isInsideObject','Users','differ','multipleBlocks','detach','getFirstMarker','acceptSelectedSuggestions','ck-suggestion-marker','track-changes-adapter-missing-getsuggestion','PENDING_ACTION_SUGGESTION','createRangeIn','sort','before','ready','markerReady','size','_saved','addClass','addRange','change','insertContent','adapter','getMultiRangeId','unbind','authorName','default','applyOperation','createPositionBefore','has','createRange','includes','targetPosition','enableCommand','getAllAdjacentSuggestions','insertion:join','listenTo','widget','_getAuthorFromId','plugins','_trackFormatChanges','for','data','getMarkers','_checkSuggestionCorrectness','getNearestSelectionRange','getSuggestion','activeMarkers','_setSuggestionData','previous','clear','getLastMatchingPosition','documentSelection','markMultiRangeBlockFormat','filter','suggestionChanged','dataDowncast','deletion:chain','consumable','after','_suggestions','normal','containerElement','trackChanges.trackFormatChanges','_joinSuggestions','nodeAfter','_mergeNestedSuggestions','setTo','range','_commentsRepository','map','markerName','getAttribute','locale','skipNestingCheck','value','formatInline:discard','isCollapsed','fetchCommentThread','updateMarker','splitPosition','delete','_suggestionState','isAfter','_model','_descriptionFactory','isRemovable','markInlineFormat','createElement','getSuggestions','creator','insertion:','join','howMany','ck-suggestion-marker--active','collaboration.channelId','root','_rangeIsInLocalUserInsertion','track-changes-user-not-found','upcast','return','start','TrackChangesEditing','acceptAllSuggestions','getDifference','isNextTo','then','suggestion','low','markerToHighlight','_editor','init','author','isLimit','buildSuggestion','formatGroupId','refresh','stop','_customCallbacks','deleteContent','updateSuggestion','formatBlock:','toViewElement','isObject','change:_saved','_removeSuggestion','change:data','editingDowncast','insertion','consume','createSelection','markers','type','unbindElementFromMarkerName','insert','getWalker','commands','PendingActions','move','_getExternalAuthor','addMarkerName','_refreshSuggestionsChain','getFirstRange','define','writer','track-changes-suggestion-not-found','mapper','authoredAt','setSelection','discardSelectedSuggestions','_suggestionFactory','addSuggestion','pluginName','forward','editor','discardAllSuggestions','formatInline:','trackChanges','group','@external','CommentsRepository','getRanges','dataReady','formatInline:accept','dataToMarker','markMultiRangeDeletion','open','addSuggestionData','name','_handleNewSuggestionMarker','_addThreadToSuggestion','schema','trackChangesCommand','external:','formatBlock:discard'];(function(_0x43380f,_0xdbf437){const _0x57d869=function(_0x4ebc06){while(--_0x4ebc06){_0x43380f['push'](_0x43380f['shift']());}};_0x57d869(++_0xdbf437);}(_0xdbf4,0x17e));const _0x57d8=function(_0x43380f,_0xdbf437){_0x43380f=_0x43380f-0x0;let _0x57d869=_0xdbf4[_0x43380f];return _0x57d869;};import{Plugin as _0x487fb5,PendingActions as _0x5b667d}from'ckeditor5/src/core';import{LiveRange as _0x4c845b}from'ckeditor5/src/engine';import{CKEditorError as _0x11ad5e,uid as _0x3645d4,priorities as _0x483807,logWarning as _0x2fcea7}from'ckeditor5/src/utils';import{toWidget as _0x53e7cf}from'ckeditor5/src/widget';import{Users as _0x642c8f,hashObject as _0x463637}from'ckeditor5-collaboration/src/collaboration-core';import _0x183698 from'./commands/trackchangescommand';import _0x248555 from'./commands/acceptsuggestioncommand';import _0x569a01 from'./commands/discardsuggestioncommand';import _0x44495e from'./commands/executeonallsuggestionscommand';import _0x462de7 from'./commands/executeonselectedsuggestionscommand';import _0x159187 from'./suggestion';import _0x583393 from'./suggestiondescriptionfactory';import _0x2683a8 from'./integrations/alignment';import _0x147a1e from'./integrations/basicstyles';import _0x36ea43 from'./integrations/blockquote';import _0xe7083d from'./integrations/ckbox';import _0x58f56a from'./integrations/codeblock';import _0x453fa6 from'./integrations/comments';import _0x21a867 from'./integrations/deletecommand';import _0x5acfe8 from'./integrations/documentlist';import _0x4ed359 from'./integrations/entercommand';import _0x558aec from'./integrations/findandreplace';import _0x2fa1d8 from'./integrations/font';import _0xebdd6d from'./integrations/formatpainter';import _0x2507ac from'./integrations/heading';import _0x3aaca6 from'./integrations/highlight';import _0x5d1d41 from'./integrations/horizontalline';import _0x3acd6b from'./integrations/htmlembed';import _0x43b20b from'./integrations/image';import _0x383b30 from'./integrations/imagereplace';import _0x3aaace from'./integrations/importword';import _0x4326b5 from'./integrations/indent';import _0x4a0798 from'./integrations/inputcommand';import _0x2403db from'./integrations/link';import _0x3c4d74 from'./integrations/list';import _0x380be6 from'./integrations/listproperties';import _0x2ac77a from'./integrations/mediaembed';import _0x3f7b6b from'./integrations/mention';import _0x3f65c7 from'./integrations/pagebreak';import _0x59dfaf from'./integrations/paragraph';import _0x1c1e75 from'./integrations/removeformat';import _0x2b852b from'./integrations/restrictededitingmode';import _0x42a928 from'./integrations/shiftentercommand';import _0x44d98f from'./integrations/standardeditingmode';import _0x3fd3f0 from'./integrations/style';import _0x531240 from'./integrations/table';import _0x5ca1be from'./integrations/tablemergesplit';import _0x2fda9d from'./integrations/tableheadings';import _0x599c53 from'./integrations/tableclipboard';import _0x36033b from'./integrations/tablecolumnresize';import _0x1ddb41 from'./integrations/template';import _0x30ac08 from'./integrations/tableofcontents';import _0x2435d7 from'./integrations/title';import _0x5a67fb from'./integrations/undo';import{getTranslation as _0x5af54b}from'./utils/common-translations';import _0x51b2ba from'./integrations/tablecaption';import _0x1fe22b from'./integrations/documentlistproperties';import _0x48a4ff from'./integrations/tableproperties';export default class p extends _0x487fb5{static get['requires'](){return['CommentsRepository',_0x642c8f,_0x5b667d,_0x2683a8,_0x147a1e,_0x36ea43,_0xe7083d,_0x58f56a,_0x453fa6,_0x21a867,_0x5acfe8,_0x1fe22b,_0x4ed359,_0x558aec,_0x2fa1d8,_0xebdd6d,_0x2507ac,_0x3aaca6,_0x5d1d41,_0x3acd6b,_0x43b20b,_0x383b30,_0x3aaace,_0x4326b5,_0x4a0798,_0x2403db,_0x3c4d74,_0x380be6,_0x2ac77a,_0x3f7b6b,_0x3f65c7,_0x59dfaf,_0x1c1e75,_0x2b852b,_0x42a928,_0x44d98f,_0x3fd3f0,_0x531240,_0x5ca1be,_0x2fda9d,_0x51b2ba,_0x599c53,_0x36033b,_0x30ac08,_0x48a4ff,_0x1ddb41,_0x2435d7,_0x5a67fb];}static get[_0x57d8('0xd9')](){return _0x57d8('0xa7');}constructor(_0x7082b){function _0x34b3ee(_0x3fe288){return _0x3fe288[_0x57d8('0x87')](_0x51d464=>String[_0x57d8('0x8')](_0x51d464))[_0x57d8('0x9d')]('');}super(_0x7082b),this[_0x57d8('0x11a')](_0x57d8('0x70'),[]),this['on'](_0x57d8('0x16'),(_0x389c6f,_0x48be14,_0x562698,_0x4f17c6)=>{this['_model']['change'](()=>{for(const _0x289c49 of[..._0x4f17c6,..._0x562698])this['_model']['markers']['has'](_0x289c49)&&_0x7082b['editing']['reconvertMarker'](_0x289c49);});}),this[_0x57d8('0x96')]=new _0x583393(this['editor'][_0x57d8('0x132')]['schema'],this[_0x57d8('0xdb')][_0x57d8('0x8a')]),this[_0x57d8('0x118')]=null,this[_0x57d8('0xd7')]=new Dt(this[_0x57d8('0xdb')]),this[_0x57d8('0x7d')]=new Map(),this['_commentsRepository']=_0x7082b[_0x57d8('0x68')]['get']('CommentsRepository'),this[_0x57d8('0x2c')]=new Set(),this[_0x57d8('0x95')]=this[_0x57d8('0xdb')][_0x57d8('0x132')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x7082b[_0x57d8('0x3e')][_0x57d8('0xd0')](_0x57d8('0x80'),_0x57d8('0x5b')),this[_0x57d8('0x69')]=_0x7082b[_0x57d8('0x3e')][_0x57d8('0x33')]('trackChanges.trackFormatChanges'),_0x7082b[_0x57d8('0x3e')][_0x57d8('0xd0')](_0x57d8('0x129'),!0x0),this[_0x57d8('0x83')]=_0x7082b[_0x57d8('0x3e')][_0x57d8('0x33')]('trackChanges.mergeNestedSuggestions'),this[_0x57d8('0xed')]=new _0x183698(_0x7082b,this[_0x57d8('0x2c')]),this[_0x34b3ee([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x34b3ee([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x32]);}[_0x57d8('0xb0')](){const _0x4880b3=this[_0x57d8('0xdb')];_0x4880b3[_0x57d8('0x3d')][_0x57d8('0x6a')](_0x57d8('0xc0'))[_0x57d8('0xae')]({'model':_0x57d8('0xac'),'view':_0x1395cc=>{const {id:_0x15d351,type:_0x59cd70}=this[_0x57d8('0x111')](_0x1395cc['markerName']),_0x391606=[_0x57d8('0x49'),_0x57d8('0x11d')+_0x59cd70];let _0x3a3ae3=0xbb8;return this[_0x57d8('0x70')][_0x57d8('0x60')](_0x1395cc[_0x57d8('0x88')])&&(_0x391606['push'](_0x57d8('0x9f')),_0x3a3ae3=0xbc2),_0x57d8('0xf0')==_0x59cd70&&(_0x3a3ae3+=0x5),{'classes':_0x391606,'attributes':{'data-suggestion':_0x15d351},'priority':_0x3a3ae3};}}),_0x4880b3[_0x57d8('0x3d')]['for'](_0x57d8('0x79'))[_0x57d8('0x112')](_0x242235=>{_0x242235['on'](_0x57d8('0x2d'),(_0x5b0a7f,_0x50cb1c,_0x3fdfdd)=>{if(!_0x3fdfdd['options']['showSuggestionHighlights'])return;const _0x15d10d=_0x50cb1c[_0x57d8('0x12a')];if(!_0x15d10d)return;const _0x595e13=_0x3fdfdd[_0x57d8('0xd3')]['toViewElement'](_0x15d10d);_0x4880b3[_0x57d8('0x132')][_0x57d8('0xec')][_0x57d8('0xbc')](_0x15d10d)&&_0x595e13&&!_0x595e13[_0x57d8('0x11f')](_0x57d8('0x66'))&&_0x595e13['is'](_0x57d8('0x7f'))&&_0x53e7cf(_0x595e13,_0x3fdfdd[_0x57d8('0xd1')]);},{'priority':_0x57d8('0xb')});}),_0x4880b3['conversion']['for'](_0x57d8('0x79'))[_0x57d8('0xae')]({'model':_0x57d8('0xac'),'view':(_0x3fcc9a,_0x16b471)=>{if(!_0x16b471[_0x57d8('0x3b')][_0x57d8('0x10c')])return null;const {type:_0xb1df78}=this[_0x57d8('0x111')](_0x3fcc9a[_0x57d8('0x88')]);return{'classes':['ck-suggestion-marker',_0x57d8('0x11d')+_0xb1df78],'priority':0xbb8};}});const _0x2ce34b=({showActiveMarkers:_0x6e3748=!0x0}={})=>(_0x50e6d8,_0x499e56,_0x244cc4)=>{if(!_0x499e56[_0x57d8('0x12a')])return;if(_0x499e56['item']['is'](_0x57d8('0x13')))return void _0x244cc4['consumable'][_0x57d8('0xc2')](_0x499e56[_0x57d8('0x12a')],_0x50e6d8[_0x57d8('0xe9')]);const _0x332ee3=_0x244cc4[_0x57d8('0xd3')][_0x57d8('0xbb')](_0x499e56['item']);if(!(_0x499e56[_0x57d8('0x12a')]['is'](_0x57d8('0x106'))&&_0x4880b3[_0x57d8('0x132')][_0x57d8('0xec')][_0x57d8('0x1b')](_0x499e56[_0x57d8('0x12a')])&&!_0x332ee3[_0x57d8('0x11f')](_0x57d8('0x122'))))return;const {id:_0x593cc9}=this[_0x57d8('0x111')](_0x499e56[_0x57d8('0x88')]);_0x244cc4['writer'][_0x57d8('0x53')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x332ee3),_0x244cc4[_0x57d8('0xd1')]['setAttribute'](_0x57d8('0x17'),_0x593cc9,_0x332ee3),_0x244cc4['mapper']['bindElementToMarker'](_0x332ee3,_0x499e56['markerName']),_0x6e3748&&(this['activeMarkers'][_0x57d8('0x60')](_0x499e56[_0x57d8('0x88')])?_0x244cc4['writer']['addClass'](_0x57d8('0x9f'),_0x332ee3):_0x244cc4[_0x57d8('0xd1')][_0x57d8('0x11e')](_0x57d8('0x9f'),_0x332ee3));for(const _0x3eba08 of _0x4880b3[_0x57d8('0x132')][_0x57d8('0x4c')](_0x499e56[_0x57d8('0x12a')])['getItems']())_0x244cc4[_0x57d8('0x7b')][_0x57d8('0xc2')](_0x3eba08,_0x50e6d8['name']);_0x244cc4['consumable'][_0x57d8('0xc2')](_0x499e56[_0x57d8('0x12a')],_0x50e6d8[_0x57d8('0xe9')]);};_0x4880b3[_0x57d8('0x3d')][_0x57d8('0x6a')](_0x57d8('0x79'))[_0x57d8('0x112')](_0x40560c=>{_0x40560c['on'](_0x57d8('0x100'),(_0x51ffd3,_0x15f8fc,_0x8bc93a)=>{_0x8bc93a[_0x57d8('0x3b')]['showSuggestionHighlights']&&_0x2ce34b({'showActiveMarkers':!0x1})(_0x51ffd3,_0x15f8fc,_0x8bc93a);},{'priority':'highest'});}),_0x4880b3['conversion'][_0x57d8('0x6a')](_0x57d8('0x79'))['markerToData']({'model':_0x57d8('0xac'),'view':(_0x4d212a,_0x348639)=>_0x348639[_0x57d8('0x3b')][_0x57d8('0x10c')]?null:{'group':_0x57d8('0xac'),'name':_0x4d212a['substr'](0xb)}}),_0x4880b3[_0x57d8('0x3d')]['for'](_0x57d8('0xa4'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4af0fd,{writer:_0x3cbdfe})=>{let _0x5646da='suggestion:'+_0x4af0fd['getAttribute']('suggestion-type')+':'+_0x4af0fd[_0x57d8('0x89')]('id');return _0x4af0fd['getAttribute'](_0x57d8('0xfb'))&&(_0x5646da+=':'+_0x4af0fd[_0x57d8('0x89')](_0x57d8('0xfb'))),_0x3cbdfe[_0x57d8('0x99')](_0x57d8('0xfd'),{'data-name':_0x5646da});}}),_0x4880b3[_0x57d8('0x3d')][_0x57d8('0x6a')]('upcast')[_0x57d8('0xe5')]({'view':_0x57d8('0xac')}),_0x4880b3[_0x57d8('0x3d')][_0x57d8('0x6a')](_0x57d8('0xc0'))[_0x57d8('0x112')](_0x3a5525=>{_0x3a5525['on'](_0x57d8('0x100'),_0x2ce34b(),{'priority':_0x57d8('0xb')});}),_0x4880b3[_0x57d8('0x3d')]['for'](_0x57d8('0xc0'))[_0x57d8('0x112')](_0x3f5e5f=>{_0x3f5e5f['on'](_0x57d8('0x2'),(_0x491708,_0x51cb70,_0x11dd9b)=>{const _0x454432=_0x11dd9b[_0x57d8('0xd3')]['markerNameToElements'](_0x51cb70[_0x57d8('0x88')]);if(_0x454432)for(const _0x39d9e2 of _0x454432)_0x39d9e2['getCustomProperty']('addHighlight')||(_0x11dd9b[_0x57d8('0xd1')][_0x57d8('0x11e')]([_0x57d8('0x49'),'ck-suggestion-marker-formatBlock',_0x57d8('0x9f')],_0x39d9e2),_0x11dd9b[_0x57d8('0xd1')][_0x57d8('0x41')]('data-suggestion',_0x39d9e2),_0x11dd9b[_0x57d8('0xd3')][_0x57d8('0xc6')](_0x39d9e2,_0x51cb70[_0x57d8('0x88')]));},{'priority':_0x57d8('0xb')});}),_0x4880b3[_0x57d8('0x132')][_0x57d8('0x30')][_0x57d8('0x119')](_0x263877=>{let _0x3c281d=!0x1;const _0x143e8b=Array[_0x57d8('0x135')](_0x4880b3[_0x57d8('0x132')][_0x57d8('0x30')][_0x57d8('0x44')][_0x57d8('0x125')]()),_0x1b0294=new Set();for(const {name:_0x4ad9d5,data:_0x51d874}of _0x143e8b){const {group:_0x366f54,type:_0x4a3290,id:_0x5eeec6}=this['_splitMarkerName'](_0x4ad9d5);if(_0x57d8('0xac')!==_0x366f54)continue;const _0x584668=this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x5eeec6);if(null!=_0x51d874['newRange']){_0x57d8('0xf1')==_0x4a3290&&(_0x3c281d=_0x3c281d||Mt(_0x51d874[_0x57d8('0x35')],_0x4ad9d5,_0x263877,_0x4880b3[_0x57d8('0x132')]['schema']));if(_0x51d874['newRange']['isCollapsed']||_0x57d8('0x39')==_0x51d874[_0x57d8('0x35')]['root']['rootName']||_0x57d8('0xf9')==_0x4a3290&&!Nt(_0x51d874[_0x57d8('0x35')])||_0x57d8('0xf0')==_0x4a3290&&!(!_t(_0x4c47b7=_0x51d874[_0x57d8('0x35')])&&!function(_0x16a689){return _0x16a689[_0x57d8('0xa6')][_0x57d8('0x12f')]==_0x16a689[_0x57d8('0x3c')][_0x57d8('0x11c')]&&_0x16a689[_0x57d8('0xa6')][_0x57d8('0x1e')];}(_0x4c47b7)))_0x263877[_0x57d8('0x31')](_0x4ad9d5),_0x3c281d=!0x0;else{if(!_0x584668||!_0x584668['isInContent'])continue;_0x1b0294[_0x57d8('0x112')](_0x584668);}}}var _0x4c47b7;return _0x1b0294['size']>0x0&&(_0x3c281d=!!this[_0x57d8('0xf2')](_0x1b0294)||_0x3c281d),_0x3c281d;}),_0x4880b3[_0x57d8('0x132')][_0x57d8('0x30')][_0x57d8('0x119')](_0x39e459=>{let _0x1c3072=!0x1;for(const _0x16ec6b of _0x4880b3[_0x57d8('0x132')]['document']['differ'][_0x57d8('0x28')]()){if(_0x57d8('0xc7')!=_0x16ec6b['type'])continue;const _0x237716=_0x16ec6b[_0x57d8('0xf3')][_0x57d8('0x27')](_0x16ec6b[_0x57d8('0x101')]);if(_0x237716[_0x57d8('0x1e')])for(const _0x246fcb of this[_0x57d8('0x7d')][_0x57d8('0x109')]()){if(_0x246fcb[_0x57d8('0x1')]||!_0x246fcb[_0x57d8('0xa')])continue;if(_0x57d8('0xf9')!=_0x246fcb[_0x57d8('0xc5')])continue;const _0x468e30=_0x246fcb['getFirstRange']();if(_0x468e30[_0x57d8('0xa6')][_0x57d8('0x12f')]!=_0x468e30[_0x57d8('0x3c')][_0x57d8('0x12f')]&&_0x468e30[_0x57d8('0x3c')][_0x57d8('0x9')](_0x16ec6b[_0x57d8('0xf3')])){const _0x27f816=_0x4880b3[_0x57d8('0x132')]['createRange'](_0x468e30[_0x57d8('0xa6')],_0x237716);_0x39e459[_0x57d8('0x90')](_0x246fcb[_0x57d8('0x47')](),{'range':_0x27f816}),_0x1c3072=!0x0;}}}return _0x1c3072;}),_0x4880b3[_0x57d8('0x132')][_0x57d8('0xc4')]['on'](_0x57d8('0x136'),(_0x4cdcf4,_0x2f2786,_0x308f2c)=>{if(null==_0x308f2c){const {id:_0x1226c4}=this[_0x57d8('0x111')](_0x2f2786[_0x57d8('0xe9')]),_0x3ecf9b=this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x1226c4);_0x3ecf9b&&_0x3ecf9b[_0x57d8('0xcd')](_0x2f2786['name']);}}),_0x4880b3[_0x57d8('0x132')][_0x57d8('0x30')]['on'](_0x57d8('0xbf'),()=>{const _0x47dae0=Array[_0x57d8('0x135')](_0x4880b3[_0x57d8('0x132')]['document'][_0x57d8('0x44')][_0x57d8('0x125')]())[_0x57d8('0x77')](_0x140df5=>_0x57d8('0xac')===this['_splitMarkerName'](_0x140df5[_0x57d8('0xe9')])[_0x57d8('0xdf')]);if(0x0===_0x47dae0['length'])return;_0x47dae0[_0x57d8('0x4d')]((_0x46767e,_0x2bc239)=>{const _0x4fb6ad=_0x46767e['data'][_0x57d8('0x10e')],_0x3a49f0=_0x2bc239['data'][_0x57d8('0x10e')];return null===_0x4fb6ad&&null===_0x3a49f0?0x0:null===_0x4fb6ad&&null!==_0x3a49f0?-0x1:null!==_0x4fb6ad&&null===_0x3a49f0?0x1:_0x4fb6ad[_0x57d8('0xa6')][_0x57d8('0x2a')](_0x3a49f0['start'])?-0x1:0x1;});const _0x1ec4c5=new Set(),_0x592388=new Set();for(const {name:_0x1dd537,data:_0x5dd1fc}of _0x47dae0){const {id:_0x509b9e}=this[_0x57d8('0x111')](_0x1dd537);if(null===_0x5dd1fc[_0x57d8('0x10e')]){const _0x492412=this[_0x57d8('0xea')](_0x1dd537);_0x592388[_0x57d8('0x112')](_0x492412);}else{const _0x3fc034=this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x509b9e);null!==_0x5dd1fc[_0x57d8('0x35')]||_0x3fc034[_0x57d8('0xa')]?(_0x1ec4c5[_0x57d8('0x112')](_0x3fc034[_0x57d8('0x15')]),_0x592388[_0x57d8('0x112')](_0x3fc034)):this[_0x57d8('0xbe')](_0x3fc034);}}_0x592388[_0x57d8('0x51')]>0x0&&this[_0x57d8('0xce')](_0x592388);for(const _0x276ecc of _0x1ec4c5)this['fire'](_0x57d8('0x78'),_0x276ecc);}),_0x4880b3[_0x57d8('0x132')]['on'](_0x57d8('0x5c'),(_0x120439,_0x14f22b)=>{const _0x2fc172=_0x14f22b[0x0];if(!this[_0x57d8('0x7d')][_0x57d8('0x51')])return;if(!_0x2fc172[_0x57d8('0x24')])return;if(_0x2fc172['batch'][_0x57d8('0x20')]||!_0x2fc172[_0x57d8('0x124')]['isLocal'])return;let _0x1494be,_0x4e64b7;switch(_0x2fc172[_0x57d8('0xc5')]){case _0x57d8('0xc7'):_0x1494be=_0x4880b3['model'][_0x57d8('0x5')](_0x2fc172[_0x57d8('0xf3')]),_0x4e64b7=_0x1494be['getShiftedBy'](_0x2fc172['howMany']);break;case _0x57d8('0x114'):_0x1494be=_0x4880b3[_0x57d8('0x132')][_0x57d8('0x5')](_0x2fc172[_0x57d8('0x91')]),_0x4e64b7=_0x4880b3['model'][_0x57d8('0x5')](_0x2fc172[_0x57d8('0x12b')]);break;case _0x57d8('0xcb'):_0x1494be=_0x4880b3[_0x57d8('0x132')]['createPositionAt'](_0x2fc172[_0x57d8('0x61')]),_0x4e64b7=_0x1494be['getShiftedBy'](_0x2fc172[_0x57d8('0x9e')]);break;default:return;}const _0x57b8de=_0x4880b3[_0x57d8('0x132')]['createRange'](_0x1494be,_0x4e64b7);_0x4880b3[_0x57d8('0x132')][_0x57d8('0x55')](()=>{for(const {suggestion:_0x4633a2,meta:_0x142c67}of this[_0x57d8('0x11')](_0x57b8de)){if(_0x4633a2[_0x57d8('0x1')])continue;if(_0x57d8('0xf1')==_0x4633a2[_0x57d8('0xc5')])continue;const _0x14f2fb=_0x4633a2[_0x57d8('0x6b')]&&_0x4633a2['data'][_0x57d8('0x45')];(_0x57d8('0xf9')!=_0x4633a2[_0x57d8('0xc5')]||_0x57d8('0x114')==_0x2fc172[_0x57d8('0xc5')]&&!_0x14f2fb)&&(_0x142c67['containsRangeInObject']||_0x57d8('0xc1')==_0x4633a2['type']&&_0x142c67[_0x57d8('0x2e')]||_0x4633a2[_0x57d8('0xcf')]()[_0x57d8('0xc')](_0x57b8de)&&this[_0x57d8('0x126')](_0x4633a2,_0x1494be,_0x4e64b7));}});},{'priority':'lowest'}),_0x4880b3[_0x57d8('0x132')]['on']('deleteContent',(_0x35b0a6,_0x32e363)=>{const _0x49751f=_0x32e363[0x0],_0x76c98f=_0x32e363[0x1];if(_0x76c98f&&_0x76c98f[_0x57d8('0x26')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x49751f[_0x57d8('0x8e')])return;const _0x400123=_0x4880b3['model'][_0x57d8('0xec')],{start:_0x471d25,end:_0x298f48}=_0x49751f['getFirstRange'](),_0x46fe37=_0x471d25[_0x57d8('0x82')]&&_0x400123['isLimit'](_0x471d25[_0x57d8('0x82')])?null:_0x400123['getNearestSelectionRange'](_0x471d25,_0x57d8('0xda')),_0x5d2efe=_0x298f48[_0x57d8('0x11c')]&&_0x400123['isLimit'](_0x298f48[_0x57d8('0x11c')])?null:_0x400123[_0x57d8('0x6e')](_0x298f48,'backward'),_0x546c08=_0x4880b3[_0x57d8('0x132')]['createRange'](_0x46fe37?_0x46fe37['start']:_0x471d25,_0x5d2efe?_0x5d2efe['end']:_0x298f48);_0x4880b3[_0x57d8('0x132')][_0x57d8('0x55')](_0x59c8ad=>{this[_0x57d8('0x121')](_0x546c08);const _0x4c95b2=_0x4880b3['model'][_0x57d8('0xec')][_0x57d8('0x6e')](_0x546c08[_0x57d8('0xa6')]);_0x49751f['is'](_0x57d8('0x75'))?_0x59c8ad[_0x57d8('0xd5')](_0x4c95b2):_0x49751f[_0x57d8('0x84')](_0x4c95b2);}),_0x35b0a6['stop']();},{'priority':_0x483807[_0x57d8('0x7e')]+0xa}),_0x4880b3[_0x57d8('0x132')]['on']('insertContent',(_0x430cf5,_0x5db50d)=>{const _0x51856d=_0x5db50d[_0x5db50d[_0x57d8('0x101')]-0x1];_0x51856d&&_0x51856d['forceDefaultExecution']||this[_0x57d8('0x32')]||this[_0x57d8('0xed')]['value']&&(_0x4880b3[_0x57d8('0x132')][_0x57d8('0x55')](()=>{let _0x1c6e33=_0x4880b3[_0x57d8('0x132')][_0x57d8('0x56')](_0x5db50d[0x0],_0x5db50d[0x1],_0x5db50d[0x2],{'forceDefaultExecution':!0x0});if(!_0x1c6e33)return;_0x430cf5[_0x57d8('0xa5')]=_0x1c6e33[_0x57d8('0x23')]();const _0x49b5b4=_0x1c6e33[_0x57d8('0x3c')][_0x57d8('0x11c')],_0x3e246c=_0x4880b3[_0x57d8('0x132')][_0x57d8('0xec')];_0x49b5b4&&_0x3e246c['isBlock'](_0x49b5b4)&&!_0x3e246c[_0x57d8('0xbc')](_0x49b5b4)&&(_0x1c6e33=_0x4880b3['model']['createRange'](_0x1c6e33[_0x57d8('0xa6')],_0x4880b3['model'][_0x57d8('0x5')](_0x49b5b4,_0x57d8('0x3c')))),this[_0x57d8('0xd')](_0x1c6e33);}),_0x430cf5[_0x57d8('0xb6')]());},{'priority':'high'}),this['editor']['commands'][_0x57d8('0x112')](_0x57d8('0xde'),this['trackChangesCommand']),this[_0x57d8('0x62')](_0x57d8('0xde'));const _0x58b83f=new _0x248555(_0x4880b3,this[_0x57d8('0x7d')]);_0x4880b3[_0x57d8('0xc9')][_0x57d8('0x112')](_0x57d8('0x11b'),_0x58b83f),this[_0x57d8('0x62')]('acceptSuggestion');const _0x74e2a4=new _0x569a01(_0x4880b3,this[_0x57d8('0x7d')]);_0x4880b3[_0x57d8('0xc9')]['add'](_0x57d8('0xff'),_0x74e2a4),this[_0x57d8('0x62')](_0x57d8('0xff')),_0x4880b3[_0x57d8('0xc9')][_0x57d8('0x112')](_0x57d8('0xa8'),new _0x44495e(_0x4880b3,_0x58b83f,this['_suggestions'])),this[_0x57d8('0x62')]('acceptAllSuggestions'),_0x4880b3[_0x57d8('0xc9')]['add'](_0x57d8('0xdc'),new _0x44495e(_0x4880b3,_0x74e2a4,this[_0x57d8('0x7d')])),this[_0x57d8('0x62')](_0x57d8('0xdc')),_0x4880b3[_0x57d8('0xc9')][_0x57d8('0x112')](_0x57d8('0x48'),new _0x462de7(_0x4880b3,_0x58b83f,this['_suggestions'])),this[_0x57d8('0x62')](_0x57d8('0x48')),_0x4880b3['commands'][_0x57d8('0x112')](_0x57d8('0xd6'),new _0x462de7(_0x4880b3,_0x74e2a4,this[_0x57d8('0x7d')])),this[_0x57d8('0x62')](_0x57d8('0xd6'));const _0x359c5f=_0x4880b3[_0x57d8('0x68')][_0x57d8('0x33')](_0x57d8('0xe1'));this[_0x57d8('0x65')](_0x359c5f,_0x57d8('0x12e'),(_0x114800,{threadId:_0x24b673})=>{const _0x2c19d=this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x24b673);_0x2c19d&&_0x2c19d['commentThread']&&0x1===_0x2c19d[_0x57d8('0x1c')]['length']&&this['_updateSuggestionData'](_0x24b673,{'hasComments':!0x0});},{'priority':_0x57d8('0xad')}),this[_0x57d8('0x65')](_0x359c5f,'removeComment',(_0x3f77ad,{threadId:_0x2c852d})=>{const _0xe2fcb4=this['_suggestions'][_0x57d8('0x33')](_0x2c852d);_0xe2fcb4&&_0xe2fcb4[_0x57d8('0x1c')]&&!_0xe2fcb4['commentThread'][_0x57d8('0x101')]&&this['_updateSuggestionData'](_0x2c852d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x23a2f8){if(this['_adapter'])throw new _0x11ad5e('track-changes-adapter-already-set',this);this[_0x57d8('0x118')]=_0x23a2f8;}get[_0x57d8('0x57')](){return this[_0x57d8('0x118')];}[_0x57d8('0x9a')]({skipNotAttached:_0x30ea25=!0x1,toJSON:_0x4b561f=!0x1}={}){const _0x2e5e08=[];for(const _0xe6d5ba of this[_0x57d8('0x7d')]['values']())_0x30ea25&&!_0xe6d5ba[_0x57d8('0xa')]||_0x2e5e08[_0x57d8('0x3f')](_0xe6d5ba);return _0x4b561f?_0x2e5e08[_0x57d8('0x87')](_0x543d32=>_0x543d32['toJSON']()):_0x2e5e08;}['getSuggestion'](_0x2ac3a6){const _0xb3344e=this[_0x57d8('0x7d')]['get'](_0x2ac3a6);if(!_0xb3344e)throw new _0x11ad5e(_0x57d8('0xd2'),this);return _0xb3344e;}[_0x57d8('0x130')](_0x4c16af){return this[_0x57d8('0x7d')]['has'](_0x4c16af);}[_0x57d8('0xe8')](_0x299771){const {authorId:_0xf13f04,id:_0x3d8cf6,attributes:_0x17c2f8}=_0x299771,[_0x2d28a6,_0x1905b2]=_0x299771[_0x57d8('0xc5')][_0x57d8('0x114')](':'),_0x3d9dd7=this[_0x57d8('0x7d')]['get'](_0x3d8cf6)||this['_createSuggestion'](_0x2d28a6,_0x1905b2,_0x3d8cf6,_0xf13f04,_0x17c2f8);if(this[_0x57d8('0xeb')](_0x3d9dd7),this[_0x57d8('0x6d')](_0x3d9dd7,_0x2d28a6,_0x1905b2||null,_0xf13f04),_0x3d9dd7[_0x57d8('0x14')]=_0x299771[_0x57d8('0x14')],_0x17c2f8&&_0x17c2f8[_0x57d8('0xe0')]){const _0x593c9b=_0x17c2f8[_0x57d8('0xe0')],_0x42b9d6=this['_getExternalAuthor'](_0x593c9b[_0x57d8('0x5a')]);_0x3d9dd7[_0x57d8('0xd4')]=_0x593c9b[_0x57d8('0x14')],_0x3d9dd7[_0x57d8('0xb1')]=_0x42b9d6,_0x3d9dd7['isExternal']=!0x0;}else _0x3d9dd7[_0x57d8('0xd4')]=_0x299771[_0x57d8('0x14')];switch(_0x299771[_0x57d8('0x6b')]&&(_0x3d9dd7[_0x57d8('0x6b')]=_0x299771[_0x57d8('0x6b')]),_0x299771[_0x57d8('0xf5')]&&(_0x3d9dd7[_0x57d8('0xf5')]=_0x299771['attributes']),this[_0x57d8('0x118')]&&this[_0x57d8('0x118')][_0x57d8('0xd8')]||(_0x3d9dd7[_0x57d8('0x52')]=!0x0),this['_suggestionState'][_0x57d8('0x33')](_0x3d9dd7)){case'notReady':this[_0x57d8('0x93')][_0x57d8('0x11a')](_0x3d9dd7,_0x57d8('0xe3'));break;case _0x57d8('0x50'):_0x3d9dd7[_0x57d8('0xa')]?(this[_0x57d8('0x93')][_0x57d8('0x11a')](_0x3d9dd7,'ready'),this[_0x57d8('0xfa')]('suggestionLoaded',_0x3d9dd7)):this[_0x57d8('0x93')]['set'](_0x3d9dd7,_0x57d8('0x10'));}return _0x3d9dd7;}['acceptSuggestion'](_0x2dfa3a){this[_0x57d8('0x26')](()=>{this[_0x57d8('0xdb')][_0x57d8('0x132')]['change'](()=>{for(const _0x23fcfa of _0x2dfa3a[_0x57d8('0x63')]())_0x23fcfa[_0x57d8('0x7')]();});});}[_0x57d8('0xff')](_0x558192){this[_0x57d8('0x26')](()=>{this['editor'][_0x57d8('0x132')][_0x57d8('0x55')](()=>{for(const _0x41b04a of _0x558192[_0x57d8('0x63')]())_0x41b04a['discard']();});});}['enableCommand'](_0xc5abe3,_0x2745d1){const _0xdd082f=this['editor'][_0x57d8('0xc9')][_0x57d8('0x33')](_0xc5abe3);if(!_0xdd082f)throw new _0x11ad5e(_0x57d8('0x123'),this,{'commandName':_0xc5abe3});this[_0x57d8('0x2c')][_0x57d8('0x112')](_0xdd082f),_0x2745d1&&_0xdd082f['on']('execute',(_0xdcad2f,_0x4b2f58)=>{this[_0x57d8('0xed')][_0x57d8('0x8c')]&&(this['_isForcedDefaultExecutionBlock']||_0x4b2f58['length']>0x0&&_0x4b2f58[_0x4b2f58[_0x57d8('0x101')]-0x1]&&_0x4b2f58[_0x4b2f58[_0x57d8('0x101')]-0x1][_0x57d8('0x26')]||(_0x2745d1((..._0xebf19a)=>_0xdd082f[_0x57d8('0x12d')](..._0xebf19a,{'forceDefaultExecution':!0x0}),..._0x4b2f58),_0xdcad2f[_0x57d8('0xb6')]()));},{'priority':_0x57d8('0xb')});}[_0x57d8('0x26')](_0x2dece9){let _0x3894d5,_0x178332;const _0x171232=this['_isForcedDefaultExecutionBlock'];this[_0x57d8('0x32')]=!0x0;try{_0x3894d5=_0x2dece9();}catch(_0x1ccf31){_0x178332=_0x1ccf31;}return _0x171232||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x178332&&_0x11ad5e['rethrowUnexpectedError'](_0x178332,this),_0x3894d5;}[_0x57d8('0xd')](_0x40b2d3,_0xfc4245=null,_0x58252b={}){if(_0x40b2d3[_0x57d8('0x8e')])return null;const _0x3b297c=this[_0x57d8('0xdb')][_0x57d8('0x68')][_0x57d8('0x33')]('Users')['me'];for(const {suggestion:_0x145e81,meta:_0x13cd6a}of this[_0x57d8('0x11')](_0x40b2d3,_0x57d8('0xc1')))if(_0x13cd6a[_0x57d8('0x2e')]){if(!_0x13cd6a[_0x57d8('0xaa')]){if(!this['_mergeNestedSuggestions']&&_0x13cd6a[_0x57d8('0x120')])continue;return _0x145e81;}if(_0xfc4245==_0x145e81[_0x57d8('0x36')]){const _0x79de2b=_0x145e81[_0x57d8('0xcf')]();return _0x79de2b[_0x57d8('0xa6')]['isEqual'](_0x40b2d3[_0x57d8('0x3c')])?this[_0x57d8('0x127')](_0x145e81,this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x40b2d3['start'],_0x79de2b[_0x57d8('0x3c')])):this['_setSuggestionRange'](_0x145e81,this['_model'][_0x57d8('0x5f')](_0x79de2b[_0x57d8('0xa6')],_0x40b2d3[_0x57d8('0x3c')])),_0x145e81;}}const _0xbbadf8=_0x3645d4(),_0x43bbc6=_0x3b297c['id'],_0x38ff96=_0xfc4245?'insertion:'+_0xfc4245:_0x57d8('0xc1'),_0x4f04ed=this[_0x57d8('0x71')]({'id':_0xbbadf8,'type':_0x38ff96,'createdAt':new Date(),'authorId':_0x43bbc6,'attributes':_0x58252b});return this[_0x57d8('0x105')](_0x38ff96,_0xbbadf8,_0x43bbc6,_0x40b2d3),_0x4f04ed;}['markMultiRangeInsertion'](_0x46c0f6,_0x50e5ec=_0x57d8('0xf8'),_0x356252={}){const _0x49dd4f=this[_0x57d8('0xdb')]['plugins'][_0x57d8('0x33')]('Users')['me'],_0x1343ea=this[_0x57d8('0xd7')][_0x57d8('0x2b')]('insertion',_0x50e5ec,_0x57d8('0x9d'));for(const _0x4f2098 of this['getSuggestions']())if(_0x4f2098[_0x57d8('0xb1')]['id']==_0x49dd4f['id']&&_0x57d8('0xc1')==_0x4f2098[_0x57d8('0xc5')]&&_0x4f2098[_0x57d8('0x36')]==_0x50e5ec&&(_0x1343ea(_0x4f2098['getRanges'](),_0x46c0f6)||_0x1343ea(_0x46c0f6,_0x4f2098[_0x57d8('0xe2')]()))){for(const _0x4b5a0e of _0x46c0f6)_0x4f2098[_0x57d8('0x54')](_0x4b5a0e);return _0x4f2098;}if(this['_mergeNestedSuggestions'])for(const _0x1fb073 of _0x46c0f6)for(const {suggestion:_0x290881,meta:_0x3d4104}of this[_0x57d8('0x11')](_0x1fb073,_0x57d8('0xc1'))){if(!_0x3d4104[_0x57d8('0x2e')])continue;let _0x2fd7d5=!0x0;for(const _0x427a04 of _0x290881['getRanges']())for(const _0x33d2d0 of _0x46c0f6)if(!_0x427a04['containsRange'](_0x33d2d0)){_0x2fd7d5=!0x1;break;}if(_0x2fd7d5)return _0x290881;}const _0x1e5d60=_0x3645d4(),_0x27a366=_0x49dd4f['id'],_0x5242b7=_0x57d8('0x9c')+_0x50e5ec,_0x3588e2=this[_0x57d8('0x71')]({'id':_0x1e5d60,'type':_0x5242b7,'createdAt':new Date(),'authorId':_0x27a366,'attributes':_0x356252});for(const _0x585bb4 of _0x46c0f6)this[_0x57d8('0x105')](_0x5242b7,_0x1e5d60,_0x27a366,_0x585bb4,_0x159187[_0x57d8('0x58')]());return _0x3588e2;}[_0x57d8('0x98')](_0x447d74,_0x51f974,_0x5c0821=null,_0x34cee9={}){if(_0x5c0821=_0x5c0821||$t(_0x51f974),_0x447d74[_0x57d8('0x8e')])return null;if(_0x57d8('0x3')===this[_0x57d8('0x69')]){const _0x4d8aa0=this[_0x57d8('0xd7')]['getSuggestionCallback'](_0x57d8('0xf1'),_0x5c0821,'accept');return this[_0x57d8('0x26')](()=>_0x4d8aa0([_0x447d74],_0x51f974,_0x34cee9)),null;}const _0x496ec8=this[_0x57d8('0xdb')][_0x57d8('0x68')]['get'](_0x57d8('0x43'))['me'],_0x2f0d8e=[];if(_0x57d8('0x29')!==this[_0x57d8('0x69')])for(const {suggestion:_0x118e1f,meta:_0x5a7aba}of this[_0x57d8('0x11')](_0x447d74,_0x57d8('0xc1')))_0x5a7aba[_0x57d8('0x2e')]&&!_0x5a7aba[_0x57d8('0x42')]&&_0x2f0d8e[_0x57d8('0x3f')](..._0x118e1f[_0x57d8('0xe2')]());const _0x432660=function(_0x343c1a,_0xd43b4b){const _0xb4bbea=[];for(const _0x4c4bda of _0xd43b4b){const _0x21ef9b=_0x343c1a[_0x57d8('0x131')](_0x4c4bda);_0x21ef9b&&_0xb4bbea['push'](_0x21ef9b);}return _0xb4bbea;}(_0x447d74,_0x2f0d8e),_0x2f5f04=function(_0x4e9c3b,_0x40cdfc){const _0x29088f=[_0x4e9c3b];for(const _0x4f0b13 of _0x40cdfc){let _0x45fad7=0x0;for(;_0x45fad7<_0x29088f[_0x57d8('0x101')];){const _0x584606=_0x29088f[_0x45fad7][_0x57d8('0xa9')](_0x4f0b13);_0x29088f['splice'](_0x45fad7,0x1,..._0x584606),_0x45fad7+=_0x584606[_0x57d8('0x101')];}}return _0x29088f;}(_0x447d74,_0x2f0d8e);_0x432660[_0x57d8('0x101')]&&this[_0x57d8('0x95')][_0x57d8('0x55')](()=>{for(const _0x1abef9 of _0x432660){const _0x5785cf=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf1'),_0x5c0821,_0x57d8('0x7'));this[_0x57d8('0x26')](()=>_0x5785cf([_0x1abef9],_0x51f974,_0x34cee9));}});for(const _0x577afd of _0x2f5f04){let _0x29c451=null,_0x5cb555=_0x577afd[_0x57d8('0xa6')],_0x4f4c99=_0x577afd[_0x57d8('0x3c')];for(const {suggestion:_0xf1f401,meta:_0x1af77a}of this[_0x57d8('0x11')](_0x577afd,_0x57d8('0xf1'))){if(!_0x1af77a[_0x57d8('0x2e')])continue;if(_0xf1f401[_0x57d8('0x36')]!=_0x5c0821)continue;const _0x57b46d=_0xf1f401[_0x57d8('0xcf')]();if(_0x57b46d['containsRange'](_0x577afd,!0x0))return null;_0x5cb555=_0x5cb555['isBefore'](_0x57b46d[_0x57d8('0xa6')])?_0x5cb555:_0x57b46d[_0x57d8('0xa6')],_0x4f4c99=_0x4f4c99[_0x57d8('0x94')](_0x57b46d[_0x57d8('0x3c')])?_0x4f4c99:_0x57b46d[_0x57d8('0x3c')],_0x29c451?_0x57b46d['start']['isBefore'](_0x29c451[_0x57d8('0xcf')]()[_0x57d8('0xa6')])?(_0x29c451[_0x57d8('0x2f')](),_0x29c451=_0xf1f401):_0xf1f401[_0x57d8('0x2f')]():_0x29c451=_0xf1f401;}const _0x58d0d7=this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x5cb555,_0x4f4c99);if(_0x29c451)this['_setSuggestionRange'](_0x29c451,_0x58d0d7);else{const _0x4ce145=_0x3645d4(),_0x52e5a4=_0x496ec8['id'];this[_0x57d8('0x71')]({'id':_0x4ce145,'type':_0x57d8('0xdd')+_0x5c0821,'data':_0x51f974,'createdAt':new Date(),'authorId':_0x52e5a4,'attributes':_0x34cee9}),this[_0x57d8('0x105')](_0x57d8('0xdd')+_0x5c0821,_0x4ce145,_0x52e5a4,_0x58d0d7);}}return null;}[_0x57d8('0x134')](_0x4b0494,_0x37fa28,_0x41d7c7=[],_0x33d068=null,_0x69e9a8={}){_0x37fa28[_0x57d8('0xb4')]||(_0x37fa28['formatGroupId']=_0x37fa28[_0x57d8('0x116')]),_0x37fa28['multipleBlocks']=_0x4b0494['is'](_0x57d8('0x85')),_0x33d068=_0x33d068||$t(_0x37fa28);const _0x270084=_0x41d7c7[_0x57d8('0x87')](_0x12fb0f=>Rt(_0x12fb0f,this[_0x57d8('0x95')])),_0x38432b=_0x4b0494['is']('range')?_0x4b0494:Rt(_0x4b0494,this[_0x57d8('0x95')]);if('never'===this[_0x57d8('0x69')]){const _0x447732=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf9'),_0x33d068,_0x57d8('0x7'));return this[_0x57d8('0x26')](()=>_0x447732([_0x38432b],_0x37fa28,_0x69e9a8)),null;}_0x270084[_0x57d8('0x3f')](_0x38432b);let _0x21c07e=!0x0;for(const _0x30178c of _0x270084)if(!this[_0x57d8('0xa2')](_0x30178c)){_0x21c07e=!0x1;break;}if(_0x21c07e&&_0x57d8('0x29')!==this['_trackFormatChanges']){const _0x246686=this[_0x57d8('0xd7')][_0x57d8('0x2b')]('formatBlock',_0x33d068,_0x57d8('0x7'));return this['forceDefaultExecution'](()=>_0x246686([_0x38432b],_0x37fa28,_0x69e9a8)),null;}let _0x375c6d=null,_0x10ec6d=_0x38432b[_0x57d8('0xa6')],_0x1450f6=_0x38432b[_0x57d8('0x3c')];for(const {suggestion:_0x5ada4d,meta:_0x5d541c}of this[_0x57d8('0x11')](_0x38432b,'formatBlock')){if(!_0x5d541c[_0x57d8('0x2e')]||_0x5d541c[_0x57d8('0xaa')]||_0x5d541c[_0x57d8('0x120')]||_0x5d541c['isInsideObject'])continue;if(_0x5ada4d[_0x57d8('0x6b')][_0x57d8('0xb4')]!=_0x37fa28[_0x57d8('0xb4')])continue;const _0x8cd5f9=_0x5ada4d[_0x57d8('0xcf')]();if(_0x5ada4d[_0x57d8('0x36')]==_0x33d068){if(_0x8cd5f9['containsRange'](_0x38432b,!0x0))return null;_0x10ec6d=_0x10ec6d[_0x57d8('0x2a')](_0x8cd5f9[_0x57d8('0xa6')])?_0x10ec6d:_0x8cd5f9[_0x57d8('0xa6')],_0x1450f6=_0x1450f6['isAfter'](_0x8cd5f9['end'])?_0x1450f6:_0x8cd5f9[_0x57d8('0x3c')],_0x375c6d?_0x8cd5f9[_0x57d8('0xa6')][_0x57d8('0x2a')](_0x375c6d['getFirstRange']()[_0x57d8('0xa6')])?(_0x375c6d[_0x57d8('0x2f')](),_0x375c6d=_0x5ada4d):_0x5ada4d[_0x57d8('0x2f')]():_0x375c6d=_0x5ada4d;}else{const _0x3c697a=_0x38432b[_0x57d8('0x131')](_0x8cd5f9);this[_0x57d8('0x133')](_0x5ada4d,_0x3c697a);}}const _0x3d9abc=this[_0x57d8('0xdb')][_0x57d8('0x68')][_0x57d8('0x33')](_0x57d8('0x43'))['me'],_0x218007=_0x3645d4(),_0x3b5be8=_0x3d9abc['id'];if(_0x375c6d)return this[_0x57d8('0x127')](_0x375c6d,this['_model'][_0x57d8('0x5f')](_0x10ec6d,_0x1450f6)),_0x375c6d;{const _0x11db48=this['_setSuggestionData']({'id':_0x218007,'type':_0x57d8('0xba')+_0x33d068,'data':_0x37fa28,'createdAt':new Date(),'authorId':_0x3b5be8,'attributes':_0x69e9a8});return this[_0x57d8('0x105')]('formatBlock:'+_0x33d068,_0x218007,_0x3b5be8,this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x10ec6d,_0x1450f6)),_0x11db48;}}[_0x57d8('0x76')](_0x44e2f3,_0x8ad3c0,_0x2824cc=[],_0x30633c=null,_0x194a75={}){_0x8ad3c0[_0x57d8('0xb4')]||(_0x8ad3c0[_0x57d8('0xb4')]=_0x8ad3c0[_0x57d8('0x116')]);const _0x5f244a=_0x44e2f3[0x0];_0x8ad3c0[_0x57d8('0x45')]=_0x5f244a['is']('range'),_0x30633c=_0x30633c||$t(_0x8ad3c0);const _0x557e5a=_0x2824cc['map'](_0x41300e=>Rt(_0x41300e,this[_0x57d8('0x95')])),_0x1cf53b=_0x5f244a['is'](_0x57d8('0x85'))?_0x44e2f3:_0x44e2f3[_0x57d8('0x87')](_0x556731=>Rt(_0x556731,this[_0x57d8('0x95')]));if(_0x57d8('0x3')===this['_trackFormatChanges']){const _0x4c762f=this[_0x57d8('0xd7')][_0x57d8('0x2b')]('formatBlock',_0x30633c,_0x57d8('0x7'));return this[_0x57d8('0x26')](()=>_0x4c762f(_0x1cf53b,_0x8ad3c0,_0x194a75)),null;}_0x557e5a['push'](..._0x1cf53b);let _0x8b35ef=!0x0;for(const _0x1c3c28 of _0x557e5a)if(!this[_0x57d8('0xa2')](_0x1c3c28)){_0x8b35ef=!0x1;break;}if(_0x8b35ef&&'always'!==this[_0x57d8('0x69')]){const _0x205199=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf9'),_0x30633c,_0x57d8('0x7'));return this[_0x57d8('0x26')](()=>_0x205199(_0x1cf53b,_0x8ad3c0,_0x194a75)),null;}const _0x3e641d=this[_0x57d8('0xdb')][_0x57d8('0x68')][_0x57d8('0x33')](_0x57d8('0x43'))['me'];for(const _0x2ba9c1 of this[_0x57d8('0x9a')]()){if(_0x2ba9c1[_0x57d8('0xb1')]['id']!=_0x3e641d['id'])continue;if(_0x57d8('0xf9')!=_0x2ba9c1[_0x57d8('0xc5')]||_0x2ba9c1[_0x57d8('0x6b')][_0x57d8('0xb4')]!=_0x8ad3c0[_0x57d8('0xb4')])continue;const _0x542b21=_0x2ba9c1['subType']==_0x30633c;for(let _0x470100=0x0;_0x470100<_0x1cf53b['length'];_0x470100++){const _0x16928b=_0x1cf53b[_0x470100];for(const _0x53cc58 of _0x2ba9c1[_0x57d8('0x6c')]()){const _0x2d962e=_0x53cc58['getRange']();if(_0x16928b[_0x57d8('0x9')](_0x2d962e)){_0x542b21?(_0x1cf53b[_0x57d8('0x18')](_0x470100,0x1),_0x470100--):_0x2ba9c1[_0x57d8('0x31')](_0x53cc58[_0x57d8('0xe9')]);break;}}}}if(0x0==_0x1cf53b['length'])return null;const _0x5ebd9f=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf9'),_0x30633c,'join');for(const _0x3c0986 of this['getSuggestions']())if(_0x3c0986[_0x57d8('0xb1')]['id']==_0x3e641d['id']&&_0x57d8('0xf9')==_0x3c0986[_0x57d8('0xc5')]&&_0x3c0986[_0x57d8('0x6b')][_0x57d8('0xb4')]==_0x8ad3c0[_0x57d8('0xb4')]&&_0x3c0986['subType']==_0x30633c&&(_0x5ebd9f(_0x3c0986[_0x57d8('0xe2')](),_0x1cf53b)||_0x5ebd9f(_0x1cf53b,_0x3c0986[_0x57d8('0xe2')]()))){for(const _0x2ec5c4 of _0x1cf53b)_0x3c0986[_0x57d8('0x54')](_0x2ec5c4);return _0x3c0986;}const _0x442504=_0x3645d4(),_0x4c0551=_0x3e641d['id'],_0x43be62=_0x57d8('0xba')+_0x30633c,_0x37c0f1=this['_setSuggestionData']({'id':_0x442504,'type':_0x43be62,'data':_0x8ad3c0,'createdAt':new Date(),'authorId':_0x4c0551,'attributes':_0x194a75});for(const _0x2d5725 of _0x1cf53b)this[_0x57d8('0x105')](_0x43be62,_0x442504,_0x4c0551,_0x2d5725,_0x159187[_0x57d8('0x58')]());return _0x37c0f1;}[_0x57d8('0x121')](_0x40084c,_0x4379aa=null,_0x2deb6a={}){if(_0x40084c[_0x57d8('0x8e')])return null;const _0x10b818=this[_0x57d8('0xdb')]['plugins'][_0x57d8('0x33')](_0x57d8('0x43'))['me'],_0x119547=new _0x4c845b(_0x40084c['start'],_0x40084c[_0x57d8('0x3c')]);for(const {suggestion:_0x1d08c7,meta:_0x3d96f9}of this[_0x57d8('0x11')](_0x119547,'insertion'))if(_0x3d96f9['isOwn']&&!_0x3d96f9[_0x57d8('0xaa')]){if(_0x1d08c7[_0x57d8('0x1')]){const _0x1256c2=_0x1d08c7[_0x57d8('0xe2')]()[_0x57d8('0x77')](_0x4cb493=>_0x57d8('0x39')!=_0x4cb493[_0x57d8('0xa1')][_0x57d8('0xf')]);_0x1256c2[_0x57d8('0x128')](_0xeb1f04=>_0x119547[_0x57d8('0xc')](_0xeb1f04,!0x0))&&_0x1d08c7[_0x57d8('0x1a')]();if(_0x1256c2[_0x57d8('0x0')](_0xa0d100=>_0xa0d100[_0x57d8('0xc')](_0x119547,!0x0))){const _0x30cd5a=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf0'),_0x4379aa,_0x57d8('0x7'));return this[_0x57d8('0x26')](()=>_0x30cd5a([_0x119547],null,_0x2deb6a)),null;}}else{const _0x559e38=_0x119547[_0x57d8('0x131')](_0x1d08c7[_0x57d8('0xcf')]());null!==_0x559e38&&_0x1d08c7[_0x57d8('0x107')]([_0x559e38],null,_0x2deb6a);}}if(_0x119547['detach'](),_0x119547[_0x57d8('0x8e')]||_0x57d8('0x39')==_0x119547[_0x57d8('0xa1')][_0x57d8('0xf')])return null;let _0x5ef4d7=null,_0x374435=_0x119547[_0x57d8('0xa6')],_0x11b705=_0x119547[_0x57d8('0x3c')];for(const {suggestion:_0x44cd4f,meta:_0x12afac}of this[_0x57d8('0x11')](_0x119547,_0x57d8('0xf0')))if(_0x12afac[_0x57d8('0x2e')]){if(_0x44cd4f['isMultiRange']&&this[_0x57d8('0x83')]){let _0x31ed3f=!0x0;for(const _0xdf286d of _0x44cd4f['getRanges']()){if(_0xdf286d['containsRange'](_0x119547,!0x0))return _0x44cd4f;_0x119547['containsRange'](_0xdf286d)||(_0x31ed3f=!0x1);}_0x31ed3f&&_0x44cd4f['discard']();}else{const _0x311a8a=_0x44cd4f[_0x57d8('0xcf')]();if(_0x311a8a[_0x57d8('0xc')](_0x119547,!0x0)){if(!this[_0x57d8('0x83')]&&_0x12afac[_0x57d8('0x120')])continue;return _0x44cd4f;}_0x374435=_0x374435[_0x57d8('0x2a')](_0x311a8a[_0x57d8('0xa6')])?_0x374435:_0x311a8a[_0x57d8('0xa6')],_0x11b705=_0x11b705[_0x57d8('0x94')](_0x311a8a[_0x57d8('0x3c')])?_0x11b705:_0x311a8a['end'],_0x5ef4d7?_0x311a8a[_0x57d8('0xa6')][_0x57d8('0x2a')](_0x5ef4d7[_0x57d8('0xcf')]()[_0x57d8('0xa6')])?(_0x5ef4d7[_0x57d8('0x2f')](),_0x5ef4d7=_0x44cd4f):_0x44cd4f[_0x57d8('0x2f')]():_0x5ef4d7=_0x44cd4f;}}if(_0x5ef4d7)return this['_setSuggestionRange'](_0x5ef4d7,this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x374435,_0x11b705)),_0x5ef4d7;{const _0x45bb23=_0x3645d4(),_0xe1aa0c=this['_model'][_0x57d8('0x5f')](_0x374435,_0x11b705),_0x14e836=_0x10b818['id'],_0x2f4ffa=_0x4379aa?_0x57d8('0x10f')+_0x4379aa:_0x57d8('0xf0'),_0x2ce551=this[_0x57d8('0x71')]({'id':_0x45bb23,'type':_0x2f4ffa,'createdAt':new Date(),'authorId':_0x14e836,'attributes':_0x2deb6a});return this[_0x57d8('0x105')](_0x2f4ffa,_0x45bb23,_0x14e836,_0xe1aa0c),_0x2ce551;}}[_0x57d8('0xe6')](_0x39b6a9,_0x5e37e6=_0x57d8('0xf8'),_0x4256bf={}){const _0x4baa33=this['editor']['plugins'][_0x57d8('0x33')](_0x57d8('0x43'))['me'],_0x56c34f=_0x39b6a9[_0x57d8('0x87')](_0x2a2f26=>new _0x4c845b(_0x2a2f26[_0x57d8('0xa6')],_0x2a2f26[_0x57d8('0x3c')])),_0x203138=new Set();for(const _0x307ff9 of _0x56c34f)for(const {suggestion:_0x177605,meta:_0x3a2cf7}of this[_0x57d8('0x11')](_0x307ff9,_0x57d8('0xc1')))_0x3a2cf7['isOwn']&&!_0x3a2cf7['isNextTo']&&_0x203138[_0x57d8('0x112')](_0x177605);for(const _0x1f9cad of _0x203138)if(_0x1f9cad['isMultiRange']){const _0x5e5bcb=_0x1f9cad['getRanges']();(!_0x1f9cad[_0x57d8('0xf5')]||!_0x1f9cad[_0x57d8('0xf5')][_0x57d8('0x8b')])&&(_0x5e5bcb[_0x57d8('0x128')](_0x1875d2=>_0x56c34f['some'](_0x53496a=>_0x53496a[_0x57d8('0xc')](_0x1875d2,!0x0)))&&_0x1f9cad[_0x57d8('0x1a')]());if(_0x56c34f['every'](_0x43a474=>_0x5e5bcb[_0x57d8('0x0')](_0x28995d=>_0x28995d[_0x57d8('0xc')](_0x43a474,!0x0)))){const _0x461acd=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf0'),_0x5e37e6,_0x57d8('0x7'));return this['forceDefaultExecution'](()=>_0x461acd(_0x39b6a9,null,_0x4256bf)),null;}}else{const _0xaf283a=_0x1f9cad['getFirstRange']();_0x56c34f[_0x57d8('0x0')](_0x835885=>_0x835885[_0x57d8('0xc')](_0xaf283a,!0x0))&&_0x1f9cad[_0x57d8('0x1a')]();if(_0x56c34f[_0x57d8('0x128')](_0x5484c1=>_0xaf283a[_0x57d8('0xc')](_0x5484c1,!0x0))){const _0x6cc086=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e37e6,_0x57d8('0x7'));return this[_0x57d8('0x26')](()=>_0x6cc086(_0x56c34f,null,_0x4256bf)),null;}}const _0x549b33=this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x57d8('0xf0'),_0x5e37e6,_0x57d8('0x9d'));let _0x52776a=null;for(const _0x133241 of this[_0x57d8('0x9a')]())if(_0x133241[_0x57d8('0xb1')]['id']==_0x4baa33['id']&&_0x133241['isInContent']&&'deletion'==_0x133241[_0x57d8('0xc5')]&&_0x133241['subType']==_0x5e37e6&&(_0x549b33(_0x133241['getRanges'](),_0x56c34f)||_0x549b33(_0x56c34f,_0x133241[_0x57d8('0xe2')]()))){if(_0x52776a){if(_0x133241[_0x57d8('0x1c')]&&_0x133241['commentThread'][_0x57d8('0x101')])continue;for(const _0x4edb40 of _0x133241[_0x57d8('0xe2')]())_0x52776a[_0x57d8('0xf6')](_0x4edb40)||_0x52776a[_0x57d8('0x54')](_0x4edb40);_0x133241[_0x57d8('0x2f')]();}else{_0x52776a=_0x133241;for(const _0x5418fa of _0x56c34f)_0x133241['isIntersectingWithRange'](_0x5418fa)||_0x133241['addRange'](_0x5418fa);}}if(_0x52776a)return _0x52776a;_0x203138[_0x57d8('0x73')]();for(const _0x59cbb7 of _0x56c34f)for(const {suggestion:_0x3739cc,meta:_0x3b52cc}of this[_0x57d8('0x11')](_0x59cbb7,'deletion'))_0x3b52cc['isOwn']&&_0x203138['add'](_0x3739cc);for(const _0x2889de of _0x203138){const _0x5c366d=_0x2889de[_0x57d8('0xe2')]();if(!_0x4256bf||!_0x4256bf['skipNestingCheck']){if(_0x56c34f['every'](_0xa5bbbd=>_0x5c366d['some'](_0x30e9f6=>_0x30e9f6[_0x57d8('0xc')](_0xa5bbbd,!0x0))))return _0x2889de;}(!_0x2889de[_0x57d8('0xf5')]||!_0x2889de[_0x57d8('0xf5')][_0x57d8('0x8b')])&&(_0x5c366d[_0x57d8('0x128')](_0x1d0fb5=>_0x56c34f[_0x57d8('0x0')](_0x1a1a25=>_0x1a1a25['containsRange'](_0x1d0fb5,!0x0)))&&_0x2889de[_0x57d8('0x1a')]());}const _0x2552fd=_0x3645d4(),_0x57104b=_0x4baa33['id'],_0x1e3d23=_0x57d8('0x10f')+_0x5e37e6,_0x31626f=this[_0x57d8('0x71')]({'id':_0x2552fd,'type':_0x1e3d23,'createdAt':new Date(),'authorId':_0x57104b,'attributes':_0x4256bf});for(const _0x160b62 of _0x56c34f)_0x160b62[_0x57d8('0x46')](),_0x160b62['isCollapsed']||_0x57d8('0x39')==_0x160b62[_0x57d8('0xa1')][_0x57d8('0xf')]||this['_addSuggestionMarker'](_0x1e3d23,_0x2552fd,_0x57104b,_0x160b62,_0x159187[_0x57d8('0x58')]());return _0x31626f;}[_0x57d8('0x127')](_0x2c7c02,_0x1bd90d){const _0xe0e087=_0x2c7c02[_0x57d8('0x47')]();this['_model'][_0x57d8('0x55')](_0x18f74b=>{_0x18f74b[_0x57d8('0x90')](_0xe0e087,{'range':_0x1bd90d});});}[_0x57d8('0xeb')](_0x45b41c){const _0x53db89=_0x45b41c['id'],_0x3ce6d7=this[_0x57d8('0xdb')]['config'][_0x57d8('0x33')](_0x57d8('0xa0'));this[_0x57d8('0x86')]['hasCommentThread'](_0x53db89)||this[_0x57d8('0x86')][_0x57d8('0x19')]({'channelId':_0x3ce6d7,'threadId':_0x53db89,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2a5576=this[_0x57d8('0x86')][_0x57d8('0x113')](_0x53db89);_0x2a5576[_0x57d8('0x59')](_0x57d8('0x97')),_0x2a5576[_0x57d8('0x97')]=!0x1,_0x45b41c[_0x57d8('0x1c')]=_0x2a5576;}[_0x57d8('0x6d')](_0x28c0e9,_0x59e030,_0x5e22b5,_0x3f63d2){if(_0x28c0e9[_0x57d8('0xc5')]!=_0x59e030||_0x28c0e9[_0x57d8('0x36')]!=_0x5e22b5||_0x28c0e9[_0x57d8('0x9b')]['id']!=_0x3f63d2)throw this[_0x57d8('0xdb')][_0x57d8('0xfe')](_0x57d8('0x104')),new _0x11ad5e(_0x57d8('0x104'),this);}['_cutOutSuggestionMarker'](_0x6b79ca,_0x4e7561){const _0x2b7c92=_0x6b79ca[_0x57d8('0xcf')]();if(_0x4e7561['isEqual'](_0x2b7c92))_0x6b79ca['removeMarkers']();else{if(_0x2b7c92[_0x57d8('0xc')](_0x4e7561)){const _0xc456b2=this[_0x57d8('0x95')][_0x57d8('0x5')](_0x4e7561[_0x57d8('0xa6')][_0x57d8('0x11c')],_0x57d8('0x3c'));this[_0x57d8('0x127')](_0x6b79ca,this['_model'][_0x57d8('0x5f')](_0x2b7c92[_0x57d8('0xa6')],_0xc456b2));const _0x53b6a4=_0x3645d4(),_0x5c3a24=_0x6b79ca[_0x57d8('0x9b')]['id'],_0x460bdb=_0x6b79ca[_0x57d8('0xc5')]+':'+_0x6b79ca[_0x57d8('0x36')];this['_setSuggestionData']({'id':_0x53b6a4,'type':_0x460bdb,'createdAt':new Date(),'authorId':_0x5c3a24,'data':_0x6b79ca['data'],'attributes':_0x6b79ca[_0x57d8('0xf5')]});const _0x26f3cd=this[_0x57d8('0x95')][_0x57d8('0x5')](_0x4e7561[_0x57d8('0x3c')]['parent'],_0x57d8('0x7c')),_0x2f1605=this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x26f3cd,_0x2b7c92[_0x57d8('0x3c')]);this[_0x57d8('0x105')](_0x460bdb,_0x53b6a4,_0x5c3a24,_0x2f1605);}else{if(_0x2b7c92['containsPosition'](_0x4e7561['start'])){const _0x5c9fc9=this[_0x57d8('0x95')][_0x57d8('0x5')](_0x4e7561[_0x57d8('0xa6')][_0x57d8('0x11c')],_0x57d8('0x3c'));this[_0x57d8('0x127')](_0x6b79ca,this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x2b7c92[_0x57d8('0xa6')],_0x5c9fc9));}else{const _0x56443b=this[_0x57d8('0x95')][_0x57d8('0x5')](_0x4e7561['end'][_0x57d8('0x12f')],_0x57d8('0x7c'));this[_0x57d8('0x127')](_0x6b79ca,this['_model'][_0x57d8('0x5f')](_0x56443b,_0x2b7c92['end']));}}}}[_0x57d8('0xa2')](_0x3c4071){for(const {suggestion:_0x29d6fe,meta:_0x3dc130}of this[_0x57d8('0x11')](_0x3c4071,_0x57d8('0xc1'))){if(!_0x3dc130['isOwn'])continue;const _0x56fc67=_0x29d6fe[_0x57d8('0xe2')]();for(const _0x262962 of _0x56fc67)if(!_0x3c4071[_0x57d8('0xa9')](_0x262962)[_0x57d8('0x101')])return!0x0;}return!0x1;}[_0x57d8('0x67')](_0xcde678){const _0x5bbed7=this['editor']['plugins'][_0x57d8('0x33')](_0x57d8('0x43'))[_0x57d8('0x115')](_0xcde678);if(!_0x5bbed7)throw new _0x11ad5e(_0x57d8('0xa3'),this);return _0x5bbed7;}[_0x57d8('0xcc')](_0x4c5b26){const _0x5797e9=this['editor'][_0x57d8('0x68')][_0x57d8('0x33')](_0x57d8('0x43')),_0x30a01e=_0x463637(_0x57d8('0xee')+_0x4c5b26),_0x22f7da=_0x5797e9[_0x57d8('0x115')](_0x30a01e);return _0x22f7da||_0x5797e9[_0x57d8('0x34')]({'id':_0x30a01e,'name':_0x4c5b26});}[_0x57d8('0x108')](_0x46cac3,_0x64376b,_0x500906,_0x143d11,_0xa49edd){const _0xfc9980=this[_0x57d8('0x67')](_0x143d11),_0xda893a=this[_0x57d8('0xd7')][_0x57d8('0xb3')](_0x46cac3,_0x64376b,_0x500906,_0xfc9980,_0xa49edd,_0x401365=>this[_0x57d8('0x10b')](_0x500906,{'attributes':_0x401365}));return this[_0x57d8('0x65')](_0xda893a,_0x57d8('0x7'),()=>{this[_0x57d8('0x10b')](_0x500906,{'state':'accepted'});},{'priority':'high'}),this[_0x57d8('0x65')](_0xda893a,_0x57d8('0x1a'),()=>{this[_0x57d8('0x10b')](_0x500906,{'state':_0x57d8('0x6')});},{'priority':_0x57d8('0xb')}),this[_0x57d8('0x7d')][_0x57d8('0x11a')](_0x500906,_0xda893a),this[_0x57d8('0x93')][_0x57d8('0x11a')](_0xda893a,_0x57d8('0x25')),_0xda893a;}['_splitMarkerName'](_0x139564){const _0x569949=_0x139564['split'](':');return{'group':_0x569949[0x0],'type':_0x569949[0x1],'subType':_0x569949[_0x57d8('0x101')]>=0x5?_0x569949[0x2]:null,'id':_0x569949['length']<0x5?_0x569949[0x2]:_0x569949[0x3],'authorId':_0x569949[_0x57d8('0x101')]<0x5?_0x569949[0x3]:_0x569949[0x4],'markerCount':0x6==_0x569949[_0x57d8('0x101')]?_0x569949[0x5]:null};}['_breakSuggestionMarker'](_0x2b604f,_0x2c8b3f,_0x18af46){const _0x532a6e=_0x2b604f['getFirstRange'](),_0x1ef5ac=_0x532a6e[_0x57d8('0xa6')],_0xbdb443=_0x532a6e[_0x57d8('0x3c')];this[_0x57d8('0x127')](_0x2b604f,this[_0x57d8('0x95')][_0x57d8('0x5f')](_0x1ef5ac,_0x2c8b3f));const _0x597ea4=_0x3645d4(),_0x1dbace=_0x2b604f[_0x57d8('0x9b')]['id'],_0xebd02c=_0x2b604f[_0x57d8('0xc5')]+(_0x2b604f[_0x57d8('0x36')]?':'+_0x2b604f[_0x57d8('0x36')]:'');this[_0x57d8('0x71')]({'id':_0x597ea4,'type':_0xebd02c,'createdAt':new Date(),'authorId':_0x1dbace,'originalSuggestionId':_0x2b604f['id'],'attributes':_0x2b604f[_0x57d8('0xf5')],'data':_0x2b604f[_0x57d8('0x6b')]}),_0x57d8('0xf9')==_0x2b604f[_0x57d8('0xc5')]&&(_0x18af46=this[_0x57d8('0x95')][_0x57d8('0x5d')](_0x18af46[_0x57d8('0x12f')])),this[_0x57d8('0x105')](_0xebd02c,_0x597ea4,_0x1dbace,this['_model'][_0x57d8('0x5f')](_0x18af46,_0xbdb443));}[_0x57d8('0x11')](_0x37eac3,_0x30cff3=null){const _0x51b4af=[],_0xe96bee=this['_model'][_0x57d8('0xec')],_0x5cfbc1=this[_0x57d8('0xdb')][_0x57d8('0x68')]['get'](_0x57d8('0x43'))['me'];for(const _0x2d520f of this[_0x57d8('0x9a')]())if(_0x2d520f[_0x57d8('0xa')]&&(!_0x30cff3||_0x2d520f[_0x57d8('0xc5')]==_0x30cff3))for(const _0x4625d7 of _0x2d520f['getRanges']()){const _0x2a40ca=_0x37eac3['start']['isEqual'](_0x4625d7[_0x57d8('0x3c')])||_0x37eac3['end'][_0x57d8('0x9')](_0x4625d7['start']);if(_0x2a40ca||_0x37eac3[_0x57d8('0x131')](_0x4625d7)){const _0x4f3de3=_0x37eac3['containsRange'](_0x4625d7)&&Bt(_0xe96bee,_0x4625d7['start'],_0x37eac3),_0x446769=_0x4625d7[_0x57d8('0xc')](_0x37eac3)&&Bt(_0xe96bee,_0x37eac3['start'],_0x4625d7);_0x51b4af[_0x57d8('0x3f')]({'suggestion':_0x2d520f,'meta':{'isOwn':_0x5cfbc1==_0x2d520f[_0x57d8('0xb1')],'isNextTo':_0x2a40ca,'isInsideObject':_0x4f3de3,'containsRangeInObject':_0x446769}});break;}}return _0x51b4af;}[_0x57d8('0x105')](_0x25e719,_0x6a7ccd,_0xb878fe,_0x1821a0,_0x4ec26f){this[_0x57d8('0x95')][_0x57d8('0x55')](_0x2599bb=>{let _0x2f9a46='suggestion:'+_0x25e719+':'+_0x6a7ccd+':'+_0xb878fe;_0x4ec26f&&(_0x2f9a46=_0x2f9a46+':'+_0x4ec26f),_0x2599bb['addMarker'](_0x2f9a46,{'range':_0x1821a0,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x57d8('0xbe')](_0x52201d){const _0x182c1a=_0x52201d['previous'],_0x103f07=_0x52201d[_0x57d8('0xf7')];_0x52201d[_0x57d8('0x72')]=null,null!=_0x182c1a&&(_0x182c1a['next']=null),_0x52201d[_0x57d8('0xf7')]=null,null!=_0x103f07&&(_0x103f07['previous']=null),_0x57d8('0x4f')==this['_suggestionState'][_0x57d8('0x33')](_0x52201d)&&(this[_0x57d8('0x93')][_0x57d8('0x11a')](_0x52201d,_0x57d8('0x10')),this[_0x57d8('0xfa')](_0x57d8('0xf4'),_0x52201d,_0x182c1a,_0x103f07));}[_0x57d8('0x71')](_0x15f122){const _0x54c58d=_0x15f122['id'],_0x555a8a=this[_0x57d8('0xe8')](_0x15f122);if(this[_0x57d8('0x118')]&&this[_0x57d8('0x118')][_0x57d8('0xd8')]){const _0x4c24a3=this['editor']['plugins']['get'](_0x57d8('0xca')),_0x6b3ae1=_0x555a8a[_0x57d8('0xe')],_0x299c8d=_0x555a8a[_0x57d8('0x36')]?_0x555a8a['type']+':'+_0x555a8a['subType']:_0x555a8a['type'],_0x2cc181=this[_0x57d8('0xdb')][_0x57d8('0x8a')],_0x5bedd7=_0x4c24a3[_0x57d8('0x112')](_0x5af54b(_0x2cc181,'PENDING_ACTION_SUGGESTION')),_0x351557={'id':_0x54c58d,'type':_0x299c8d,'hasComments':_0x6b3ae1,'data':_0x15f122[_0x57d8('0x6b')]||null,'originalSuggestionId':_0x15f122['originalSuggestionId']||null,'attributes':_0x555a8a[_0x57d8('0xf5')]};this['_adapter'][_0x57d8('0xd8')](_0x351557)['then'](_0x56d296=>{_0x555a8a[_0x57d8('0x52')]=!0x0,_0x4c24a3['remove'](_0x5bedd7),_0x56d296&&_0x56d296[_0x57d8('0x14')]&&(this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x54c58d)['createdAt']=_0x56d296[_0x57d8('0x14')]);})[_0x57d8('0x10a')](_0x12948b=>{throw _0x2fcea7(_0x57d8('0x117')),this[_0x57d8('0xdb')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x555a8a[_0x57d8('0x1a')]();}),_0x555a8a['stopListening'](),this[_0x57d8('0x7d')][_0x57d8('0x92')](_0x555a8a['id']),this[_0x57d8('0x93')]['delete'](_0x555a8a),_0x12948b;});}return _0x555a8a;}[_0x57d8('0x10b')](_0x2b68b1,_0x17d9b8){const _0x371ef1=this[_0x57d8('0xdb')][_0x57d8('0x68')][_0x57d8('0x33')]('PendingActions'),_0x4fb98a=this[_0x57d8('0x6f')](_0x2b68b1);if(this['_adapter']&&this[_0x57d8('0x118')]['updateSuggestion']){if(_0x4fb98a[_0x57d8('0x52')]){const _0xf7a049=_0x371ef1[_0x57d8('0x112')](_0x5af54b(this[_0x57d8('0xdb')][_0x57d8('0x8a')],_0x57d8('0x4b')));this[_0x57d8('0x118')][_0x57d8('0xb9')](_0x2b68b1,_0x17d9b8)[_0x57d8('0xab')](()=>{_0x371ef1[_0x57d8('0x3a')](_0xf7a049);});}else _0x4fb98a['on'](_0x57d8('0xbd'),()=>{this[_0x57d8('0x10b')](_0x2b68b1,_0x17d9b8);});}}[_0x57d8('0x110')](_0x1d8b61){if(!this[_0x57d8('0x118')]||!this[_0x57d8('0x118')][_0x57d8('0x6f')])throw new _0x11ad5e(_0x57d8('0x4a'),this);return this['_adapter'][_0x57d8('0x6f')](_0x1d8b61);}[_0x57d8('0xea')](_0x24c75a){const {id:_0x13444e,type:_0x3e200f,subType:_0x5dcacd,authorId:_0x592192}=this[_0x57d8('0x111')](_0x24c75a),_0x209596=this[_0x57d8('0x7d')][_0x57d8('0x33')](_0x13444e)||this[_0x57d8('0x108')](_0x3e200f,_0x5dcacd,_0x13444e,_0x592192,{});switch(this[_0x57d8('0x6d')](_0x209596,_0x3e200f,_0x5dcacd,_0x592192),this[_0x57d8('0x93')]['get'](_0x209596)){case _0x57d8('0x25'):this['_getSuggestionData'](_0x13444e)['then'](_0x4d5dd5=>{let _0x5be7f0=Promise[_0x57d8('0x102')]();_0x4d5dd5[_0x57d8('0xe')]&&(_0x5be7f0=this[_0x57d8('0x86')][_0x57d8('0x8f')]({'channelId':this[_0x57d8('0xdb')]['config'][_0x57d8('0x33')](_0x57d8('0xa0')),'threadId':_0x13444e})),_0x5be7f0['then'](()=>{this[_0x57d8('0xe8')](_0x4d5dd5)[_0x57d8('0x52')]=!0x0;});}),this[_0x57d8('0x93')][_0x57d8('0x11a')](_0x209596,_0x57d8('0x50'));break;case _0x57d8('0x10'):this[_0x57d8('0x10b')](_0x13444e,{'state':_0x57d8('0xe7')});case'dataReady':this[_0x57d8('0x93')][_0x57d8('0x11a')](_0x209596,'ready'),this[_0x57d8('0xfa')]('suggestionLoaded',_0x209596);break;case _0x57d8('0x4f'):this[_0x57d8('0xfa')](_0x57d8('0x78'),_0x209596);}return _0x209596[_0x57d8('0xcd')](_0x24c75a),_0x209596;}[_0x57d8('0xce')](_0xd3c613){const _0x594cf7=Array[_0x57d8('0x135')](_0xd3c613)[_0x57d8('0x77')](_0xb87b7b=>!_0xb87b7b[_0x57d8('0x1')]),_0x3f7dad=this[_0x57d8('0x9a')]({'skipNotAttached':!0x0})[_0x57d8('0x77')](_0x3cf5aa=>!_0x3cf5aa[_0x57d8('0x1')]),_0x55bcd4=_0x3f7dad[_0x57d8('0x77')](_0x648754=>!_0xd3c613[_0x57d8('0x5e')](_0x648754)),_0x4eff54=new Map(_0x3f7dad['map'](_0x42b23f=>[_0x42b23f,this[_0x57d8('0xd7')]['getSuggestionCallback'](_0x42b23f[_0x57d8('0xc5')],_0x42b23f['subType'],'chain')])),_0x3f9c04=new Map(_0x3f7dad[_0x57d8('0x87')](_0x46f702=>[_0x46f702,_0x46f702[_0x57d8('0xcf')]()])),_0x223391=new Set(),_0xd3a8e7=new Set();for(let _0x19b151=0x0;_0x19b151<_0x594cf7[_0x57d8('0x101')];_0x19b151++)_0x3e805a(_0x594cf7[_0x19b151],_0x594cf7,_0x19b151+0x1);for(let _0x10d2e9=0x0;_0x10d2e9<_0x594cf7[_0x57d8('0x101')];_0x10d2e9++)_0x3e805a(_0x594cf7[_0x10d2e9],_0x55bcd4,0x0);for(let _0x179ef2=0x0;_0x179ef2<_0x594cf7[_0x57d8('0x101')];_0x179ef2++){const _0x3d7bd9=_0x594cf7[_0x179ef2];!_0xd3a8e7[_0x57d8('0x5e')](_0x3d7bd9)&&_0x3d7bd9['previous']&&(_0x3d7bd9[_0x57d8('0x72')]['next']===_0x3d7bd9&&(_0x3d7bd9[_0x57d8('0x72')][_0x57d8('0xf7')]=null),_0x3d7bd9[_0x57d8('0x72')]=null),!_0x223391[_0x57d8('0x5e')](_0x3d7bd9)&&_0x3d7bd9['next']&&(_0x3d7bd9['next'][_0x57d8('0x72')]===_0x3d7bd9&&(_0x3d7bd9[_0x57d8('0xf7')][_0x57d8('0x72')]=null),_0x3d7bd9[_0x57d8('0xf7')]=null);}function _0x3e805a(_0x10b3cb,_0x2441c5,_0x3ed1de){for(let _0x1c5986=_0x3ed1de;_0x1c5986<_0x2441c5['length'];_0x1c5986++){const _0x57c6b7=_0x39a107(_0x10b3cb,_0x2441c5[_0x1c5986]);_0x57c6b7&&(_0x57c6b7[0x0][_0x57d8('0xf7')]=_0x57c6b7[0x1],_0x57c6b7[0x1][_0x57d8('0x72')]=_0x57c6b7[0x0],_0x223391[_0x57d8('0x112')](_0x57c6b7[0x0]),_0xd3a8e7['add'](_0x57c6b7[0x1]));}}function _0x39a107(_0x470a39,_0x2f17eb){if(_0x470a39[_0x57d8('0xb1')]['id']!==_0x2f17eb['author']['id'])return null;const _0x435d07=_0x4eff54[_0x57d8('0x33')](_0x470a39)(_0x470a39,_0x2f17eb,_0x3f9c04['get'](_0x470a39),_0x3f9c04['get'](_0x2f17eb));if(!_0x435d07)return null;return _0x4eff54[_0x57d8('0x33')](_0x2f17eb)(_0x470a39,_0x2f17eb,_0x3f9c04[_0x57d8('0x33')](_0x470a39),_0x3f9c04['get'](_0x2f17eb))?_0x435d07[0x1][_0x57d8('0x1c')]&&_0x435d07[0x1][_0x57d8('0x1c')][_0x57d8('0x101')]?null:_0x435d07:null;}}[_0x57d8('0xf2')](_0x182c1f){const _0x3356b4=Array['from'](_0x182c1f),_0x34411f=this[_0x57d8('0x9a')]({'skipNotAttached':!0x0}),_0x5b1144=_0x34411f[_0x57d8('0x77')](_0x11e56e=>!_0x182c1f[_0x57d8('0x5e')](_0x11e56e)),_0x41935b=new Map(_0x3356b4[_0x57d8('0x87')](_0x34b1e9=>[_0x34b1e9,this[_0x57d8('0xd7')][_0x57d8('0x2b')](_0x34b1e9[_0x57d8('0xc5')],_0x34b1e9[_0x57d8('0x36')],_0x57d8('0x9d'))])),_0x1ff25b=new Map(_0x34411f[_0x57d8('0x87')](_0x341af0=>[_0x341af0,_0x341af0[_0x57d8('0xe2')]()]));for(let _0x2beb06=0x0;_0x2beb06<_0x3356b4[_0x57d8('0x101')];_0x2beb06++){if(_0xb81ee(this,_0x3356b4[_0x2beb06],_0x3356b4,_0x2beb06+0x1))return!0x0;}for(let _0x3b8bf6=0x0;_0x3b8bf6<_0x3356b4[_0x57d8('0x101')];_0x3b8bf6++){if(_0xb81ee(this,_0x3356b4[_0x3b8bf6],_0x5b1144,0x0))return!0x0;}return!0x1;function _0xb81ee(_0x2ba1c0,_0x566595,_0x1f2c60,_0x443b1c){for(let _0x52c38f=_0x443b1c;_0x52c38f<_0x1f2c60[_0x57d8('0x101')];_0x52c38f++){const _0x13cf30=_0x1f2c60[_0x52c38f];if(_0x13cf30['type']!==_0x566595[_0x57d8('0xc5')]||_0x13cf30[_0x57d8('0xb1')]['id']!==_0x566595[_0x57d8('0xb1')]['id']||_0x13cf30[_0x57d8('0x36')]!==_0x566595[_0x57d8('0x36')])continue;const _0x345d60=_0x41935b[_0x57d8('0x33')](_0x566595),_0xe29c32=_0x1ff25b['get'](_0x566595),_0x54226d=_0x1ff25b['get'](_0x13cf30),_0x2b90c6=_0x566595[_0x57d8('0x1c')]&&_0x566595[_0x57d8('0x1c')][_0x57d8('0x101')],_0x58f0ac=_0x13cf30[_0x57d8('0x1c')]&&_0x13cf30['commentThread'][_0x57d8('0x101')];if(!_0x2b90c6&&_0x345d60(_0x54226d,_0xe29c32))return _0x2ba1c0[_0x57d8('0x81')](_0x13cf30,_0x566595),_0x1ff25b[_0x57d8('0x92')](_0x566595),!0x0;if(!_0x58f0ac&&_0x345d60(_0xe29c32,_0x54226d))return _0x2ba1c0[_0x57d8('0x81')](_0x566595,_0x13cf30),_0x1ff25b[_0x57d8('0x92')](_0x13cf30),!0x0;}return!0x1;}}[_0x57d8('0x81')](_0x5e8bd5,_0x1989b2){if(_0x5e8bd5[_0x57d8('0x1')])for(const _0x59f735 of _0x1989b2[_0x57d8('0xe2')]())_0x5e8bd5[_0x57d8('0x54')](_0x59f735);else{const _0x8e0959=_0x1989b2[_0x57d8('0xcf')]()['end'];this['_setSuggestionRange'](_0x5e8bd5,this['_model']['createRange'](_0x5e8bd5[_0x57d8('0xcf')]()['start'],_0x8e0959));}_0x1989b2[_0x57d8('0x2f')]();}}class Dt{constructor(_0x299d1b){this[_0x57d8('0xaf')]=_0x299d1b,this[_0x57d8('0x95')]=_0x299d1b[_0x57d8('0x132')],this[_0x57d8('0xb7')]=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}[_0x57d8('0xb3')](_0x50b44e,_0x1f740d,_0x54fc7f,_0x14b8fa,_0x2abf64,_0x16f25a){return new _0x159187(this['_model'],{'type':_0x50b44e,'subType':_0x1f740d,'id':_0x54fc7f,'author':_0x14b8fa,'creator':_0x14b8fa,'attributes':_0x2abf64,'onAttributesChange':_0x16f25a,'onAccept':(..._0x28498f)=>this['getSuggestionCallback'](_0x50b44e,_0x1f740d,_0x57d8('0x7'))(..._0x28498f),'onDiscard':(..._0xa37758)=>this[_0x57d8('0x2b')](_0x50b44e,_0x1f740d,'discard')(..._0xa37758)});}[_0x57d8('0x12')](_0x5988ae,_0x3aac84,_0x6e5491,_0x61e4dd){const _0x5b6779=_0x5988ae+':'+_0x3aac84+':'+_0x6e5491;this[_0x57d8('0xb7')]['set'](_0x5b6779,_0x61e4dd);}['getSuggestionCallback'](_0x23789e,_0x2eef30,_0x150baf){const _0x48e3df=_0x23789e+':'+_0x2eef30+':'+_0x150baf;return this['_customCallbacks']['get'](_0x48e3df)||this[_0x57d8('0x12c')][_0x57d8('0x33')](_0x23789e+':'+_0x150baf);}[_0x57d8('0x37')](){const _0x1cf9b5=()=>{},_0x591379=_0x5321da=>{_0x5321da[_0x57d8('0x4d')]((_0x250ef0,_0x4d95de)=>_0x250ef0[_0x57d8('0xa6')][_0x57d8('0x2a')](_0x4d95de[_0x57d8('0xa6')])?0x1:-0x1),this[_0x57d8('0x95')][_0x57d8('0x55')](_0x1ac071=>{for(const _0x5038df of _0x5321da){let _0x4e00f4;_0x4e00f4=_0x5038df['end'][_0x57d8('0x1e')]&&_0x5038df['end'][_0x57d8('0x12f')]==_0x5038df[_0x57d8('0xa6')][_0x57d8('0x82')]?_0x1ac071[_0x57d8('0xc3')](_0x5038df[_0x57d8('0xa6')][_0x57d8('0x82')],'on'):_0x1ac071[_0x57d8('0xc3')](_0x5038df),this[_0x57d8('0x95')][_0x57d8('0xb8')](_0x4e00f4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x428d56=(_0x1ec52b,_0x108fc7)=>{this['_model'][_0x57d8('0x55')](_0x4eb1c3=>{const {commandName:_0xe469e0,commandParams:_0x16cc03=[]}=_0x108fc7,_0x75828e=_0x1ec52b[_0x57d8('0x87')](_0x2136c9=>(_t(_0x2136c9)&&(_0x2136c9=this['_model'][_0x57d8('0x5f')](_0x2136c9['end'])),_0x2136c9))['filter'](_0x3ce0b2=>_0x57d8('0x39')!==_0x3ce0b2[_0x57d8('0xa1')][_0x57d8('0xf')]);if(_0x75828e[_0x57d8('0x101')]<0x1)return;const _0x3a64c7=Array['from'](this[_0x57d8('0x95')]['document']['selection']['getRanges']())[_0x57d8('0x87')](_0x35c434=>_0x4c845b['fromRange'](_0x35c434));_0x4eb1c3[_0x57d8('0xd5')](_0x75828e);for(const _0x562393 of this['_editor'][_0x57d8('0xc9')]['commands']())_0x562393[_0x57d8('0xb5')]();_0x16cc03[_0x57d8('0x3f')]({'forceDefaultExecution':!0x0}),this[_0x57d8('0xaf')]['execute'](_0xe469e0,..._0x16cc03);const _0x5e9d26=_0x3a64c7[_0x57d8('0x77')](_0x3d48dc=>'$graveyard'!=_0x3d48dc[_0x57d8('0xa1')][_0x57d8('0xf')]);_0x5e9d26['length']>0x0&&_0x4eb1c3[_0x57d8('0xd5')](_0x5e9d26);for(const _0x1ea1ae of _0x3a64c7)_0x1ea1ae['detach']();});},_0x185cfc=(_0x21e159,_0x427b97)=>0x1==_0x21e159['length']&&0x1==_0x427b97[_0x57d8('0x101')]&&_0x21e159[0x0][_0x57d8('0x3c')][_0x57d8('0x9')](_0x427b97[0x0]['start']),_0x106e9a=(_0x5bd558,_0x445f58,_0x5e5248,_0x352752)=>xt(_0x5bd558,_0x445f58,_0x5e5248,_0x352752,this[_0x57d8('0x95')])?[_0x5bd558,_0x445f58]:xt(_0x445f58,_0x5bd558,_0x352752,_0x5e5248,this[_0x57d8('0x95')])?[_0x445f58,_0x5bd558]:null;this['_defaultCallbacks'][_0x57d8('0x11a')](_0x57d8('0x10d'),_0x1cf9b5),this[_0x57d8('0x12c')][_0x57d8('0x11a')]('insertion:discard',_0x591379),this[_0x57d8('0x12c')][_0x57d8('0x11a')](_0x57d8('0x64'),_0x185cfc),this[_0x57d8('0x12c')][_0x57d8('0x11a')]('insertion:chain',_0x106e9a),this[_0x57d8('0x12c')]['set']('deletion:accept',_0x591379),this[_0x57d8('0x12c')][_0x57d8('0x11a')]('deletion:discard',_0x1cf9b5),this[_0x57d8('0x12c')][_0x57d8('0x11a')](_0x57d8('0x21'),_0x185cfc),this[_0x57d8('0x12c')][_0x57d8('0x11a')](_0x57d8('0x7a'),_0x106e9a),this[_0x57d8('0x12c')]['set'](_0x57d8('0xe4'),_0x428d56),this[_0x57d8('0x12c')]['set'](_0x57d8('0x8d'),_0x1cf9b5),this['_defaultCallbacks'][_0x57d8('0x11a')]('formatInline:join',_0x185cfc),this[_0x57d8('0x12c')]['set'](_0x57d8('0x40'),_0x1cf9b5),this[_0x57d8('0x12c')]['set'](_0x57d8('0x1f'),_0x428d56),this['_defaultCallbacks']['set'](_0x57d8('0xef'),_0x1cf9b5),this['_defaultCallbacks'][_0x57d8('0x11a')](_0x57d8('0x103'),_0x185cfc),this[_0x57d8('0x12c')][_0x57d8('0x11a')](_0x57d8('0xfc'),_0x1cf9b5);}}function Bt(_0x2b44a5,_0x56250d,_0x43999b){for(const _0x3bed17 of _0x56250d[_0x57d8('0x12f')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3bed17[_0x57d8('0xa1')]==_0x3bed17)return!0x1;if(!_0x43999b['containsItem'](_0x3bed17))return!0x1;if(_0x2b44a5[_0x57d8('0xbc')](_0x3bed17)||_0x2b44a5[_0x57d8('0xb2')](_0x3bed17))return!0x0;}return!0x1;}function _t(_0x4510ef){return _0x4510ef[_0x57d8('0x3c')][_0x57d8('0x12f')]==_0x4510ef[_0x57d8('0xa6')]['nodeAfter']&&_0x4510ef[_0x57d8('0x3c')][_0x57d8('0x38')];}function Mt(_0x56be2b,_0x1ff872,_0xaae1b6,_0xfe631a){const _0x1b3674=_0x478217=>!_0x478217[_0x57d8('0x12a')]['is'](_0x57d8('0x4'))&&!_0xfe631a[_0x57d8('0xbc')](_0x478217[_0x57d8('0x12a')]),_0x5c7ff7=_0x56be2b[_0x57d8('0xa6')][_0x57d8('0x74')](_0x1b3674),_0x39f826=_0x56be2b[_0x57d8('0x3c')][_0x57d8('0x74')](_0x1b3674,{'direction':'backward'});return(!_0x56be2b[_0x57d8('0xa6')][_0x57d8('0x9')](_0x5c7ff7)||!_0x56be2b[_0x57d8('0x3c')][_0x57d8('0x9')](_0x39f826))&&(_0x5c7ff7[_0x57d8('0x2a')](_0x39f826)?_0xaae1b6['updateMarker'](_0x1ff872,{'range':_0xaae1b6[_0x57d8('0x5f')](_0x5c7ff7,_0x39f826)}):_0xaae1b6[_0x57d8('0x31')](_0x1ff872),!0x0);}function $t(_0x2030a1){return _0x463637(_0x2030a1);}function Nt(_0x2eb862){const _0x17e1d3=_0x2eb862[_0x57d8('0xa6')]['nodeAfter'];return _0x17e1d3&&_0x17e1d3['is'](_0x57d8('0x106'));}function Rt(_0x5b9cb8,_0x184e84){const _0x5ef018=_0x184e84[_0x57d8('0xec')]['isObject'](_0x5b9cb8)||_0x184e84[_0x57d8('0xec')][_0x57d8('0x22')](_0x5b9cb8);return _0x184e84[_0x57d8('0x5f')](_0x184e84['createPositionAt'](_0x5b9cb8,_0x57d8('0x4e')),_0x5ef018?_0x184e84['createPositionAfter'](_0x5b9cb8):_0x184e84['createPositionAt'](_0x5b9cb8,_0x57d8('0x3c')));}function xt(_0x7e8e63,_0x1c4bf,_0x15e183,_0x10f4a6,_0xa9838f){if(_0x15e183['end']['isEqual'](_0x10f4a6['start']))return!0x0;if(_0x7e8e63[_0x57d8('0xc5')]!=_0x1c4bf[_0x57d8('0xc5')])return!0x1;if(!_0x15e183[_0x57d8('0x3c')][_0x57d8('0x1d')](_0x10f4a6[_0x57d8('0xa6')]))return!0x1;const _0x5456a5=_0xa9838f['createRange'](_0x15e183[_0x57d8('0x3c')],_0x10f4a6[_0x57d8('0xa6')])[_0x57d8('0xc8')]();for(const _0x119345 of _0x5456a5)if(['elementStart','elementEnd']['includes'](_0x119345[_0x57d8('0xc5')])&&_0xa9838f[_0x57d8('0xec')][_0x57d8('0xb2')](_0x119345[_0x57d8('0x12a')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x58bf=['_joinWithAdjacentSuggestions','formatInline','selection','catch','dataReady','markerToData','CommentsRepository','toJSON','_getSuggestionData','addSuggestionData','resolve','toViewElement','clear','isSelectable','_suggestionState','_saved','suggestion-type','removeMarker','formatInline:join','targetPosition','size','oldRange','requires','getNearestSelectionRange','default','registerCustomCallback','consumable','multipleBlocks','getMultiRangeId','formatInline:discard','isExternal','getRanges','getUser','addMarkerName','trackChanges','isTouching','head','map','getSuggestionCallback','model','addMarker:suggestion','suggestionChanged','deleteContent','discardSuggestion','add','data','authorName','_addThreadToSuggestion','track-changes-adapter-already-set','createElement','isEqual','addHighlight','_joinSuggestions','document','fromRange','deletion:','_suggestions','consume','createRange','get','formatBlock:','locale','range','trackChanges.trackFormatChanges','getCustomProperty','conversion','forceDefaultExecution','addSuggestion','_defaultCallbacks','length','_handleNewSuggestionMarker','dataToMarker','removed','author','ck-suggestion-marker-','insertion','stopListening','PENDING_ACTION_SUGGESTION','before','track-changes-command-not-found','execute','getLastMatchingPosition','isLocal','_findSuggestions','documentSelection','commandName','_addSuggestionMarker','addCommentThread','backward','isBefore','formatBlock','filter','removeAttribute','listenTo','getChanges','isInContent','external:','getFirstRange','enableCommand','rootName','_model','set','isRemovable','getFirstMarker','join','group','hasComments','options','editingDowncast','containsRangeInObject','editor','setTo','activeMarkers','values','isNextTo','deletion:chain','TrackChangesEditing','getAllAdjacentSuggestions','stop','_updateSuggestionData','getCommentThread','batch','_trackFormatChanges','getAttribute','track-changes-suggestion-data-mismatch','suggestion','addRange','normal','isMultiRange','_adapter','has','change','trackChanges.mergeNestedSuggestions','getRange','insertion:','getMarkers','getSuggestions','isInsideObject','value','dataDowncast','containsPosition','never','getIntersection','discardAllSuggestions','push','low','config','isOwn','ck-suggestion-marker','suggestionUnloaded','type','createSelection','addMarker','_breakSuggestionMarker','markInlineFormat','getAncestors','createPositionBefore','updateSuggestion','collaboration.channelId','$graveyard','start','commands','chain','includes','delete','_getExternalAuthor','move','attributes','rethrowUnexpectedError','ck-suggestion-marker-formatBlock','accept','_enabledCommands','skipNestingCheck','high','splitPosition','markers','isAtEnd','_splitMarkerName','parent','deletion:join','markerToHighlight','insertion:chain','hasSuggestion','always','isDocumentOperation','elementEnd','formatInline:','element','authoredAt','acceptSuggestion','position','lowest','insert','data-suggestion','_editor','writer','addMarker:suggestion:formatBlock','nodeAfter','ck-suggestion-marker--active','buildSuggestion','removeClass','_mergeNestedSuggestions','isCollapsed','then','ready','item','insertion:discard','removeMarkers','subType','accepted','removeComment','_refreshSuggestionsChain','split','next','getWalker','bindElementToMarker','Users','substr','for','acceptSelectedSuggestions','_getAuthorFromId','change:data','containsRange','createPositionAfter','suggestionLoaded','_cutOutSuggestionMarker','_checkSuggestionCorrectness','_isForcedDefaultExecutionBlock','multi','addComment','elementStart','_suggestionFactory','highest','addClass','fire','root','reconvertMarker','_descriptionFactory','_rangeIsInLocalUserInsertion','commentThread','schema','every','upcast','@external','return','update:suggestion','adapter','showSuggestionHighlights','createRangeIn','registerPostFixer','isAfter','name','isIntersectingWithRange','_removeSuggestion','creator','mapper','markInsertion','howMany','PendingActions','differ','getItems','_createSuggestion','deletion','_setSuggestionRange','nodeBefore','containsItem','fromCharCode','notReady','isAtStart','discardSelectedSuggestions','change:activeMarkers','markerReady','from','createPositionAt','insertion:accept','widget','previous','remove','_commentsRepository','enqueueChange','unbindElementFromMarkerName','suggestion:','sort','_setSuggestionData','some','formatGroupId','track-changes-user-not-found','getDifference','refresh','containerElement','isObject','detach','end','track-changes-adapter-missing-getsuggestion','deletion:discard','newRange','plugins','getShiftedBy','$marker','updateMarker','splice','setSelection','trackChangesCommand','discard','getSuggestion','isLimit','after','markerName','change:_saved','insertContent','_registerDefaultCallbacks','moveTargetPosition','acceptAllSuggestions','createdAt','_customCallbacks','markMultiRangeInsertion'];(function(_0x8197a2,_0x58bf75){const _0xcedb4e=function(_0xdffd08){while(--_0xdffd08){_0x8197a2['push'](_0x8197a2['shift']());}};_0xcedb4e(++_0x58bf75);}(_0x58bf,0x86));const _0xcedb=function(_0x8197a2,_0x58bf75){_0x8197a2=_0x8197a2-0x0;let _0xcedb4e=_0x58bf[_0x8197a2];return _0xcedb4e;};import{Plugin as _0x382cc3,PendingActions as _0x46aead}from'ckeditor5/src/core';import{LiveRange as _0x5261dd}from'ckeditor5/src/engine';import{CKEditorError as _0x47ae60,uid as _0xa49531,priorities as _0xc6cb6d,logWarning as _0x1900c0}from'ckeditor5/src/utils';import{toWidget as _0x311991}from'ckeditor5/src/widget';import{Users as _0x46108b,hashObject as _0x353f62}from'ckeditor5-collaboration/src/collaboration-core';import _0x8863ac from'./commands/trackchangescommand';import _0x1bfab0 from'./commands/acceptsuggestioncommand';import _0x3fc170 from'./commands/discardsuggestioncommand';import _0x1f8af6 from'./commands/executeonallsuggestionscommand';import _0xd9b9e6 from'./commands/executeonselectedsuggestionscommand';import _0x58c80b from'./suggestion';import _0x4e1a67 from'./suggestiondescriptionfactory';import _0x53ea55 from'./integrations/alignment';import _0x388eea from'./integrations/basicstyles';import _0x463cb3 from'./integrations/blockquote';import _0x3d9841 from'./integrations/ckbox';import _0x451400 from'./integrations/codeblock';import _0x28f376 from'./integrations/comments';import _0x1467d2 from'./integrations/deletecommand';import _0x506980 from'./integrations/documentlist';import _0xc6fe64 from'./integrations/entercommand';import _0x4e0438 from'./integrations/findandreplace';import _0x392e26 from'./integrations/font';import _0x3229a7 from'./integrations/formatpainter';import _0x5ce64e from'./integrations/heading';import _0x3e4ab0 from'./integrations/highlight';import _0xf6dac from'./integrations/horizontalline';import _0x4bbc93 from'./integrations/htmlembed';import _0x1f36ed from'./integrations/image';import _0xa1f734 from'./integrations/imagereplace';import _0xc34074 from'./integrations/importword';import _0x1402c5 from'./integrations/indent';import _0x101a88 from'./integrations/inputcommand';import _0x108521 from'./integrations/link';import _0x599133 from'./integrations/list';import _0x505951 from'./integrations/listproperties';import _0x2cc813 from'./integrations/mediaembed';import _0x33227a from'./integrations/mention';import _0xe830f5 from'./integrations/pagebreak';import _0x14795c from'./integrations/paragraph';import _0x391e27 from'./integrations/removeformat';import _0x4e4d27 from'./integrations/restrictededitingmode';import _0x1b9165 from'./integrations/shiftentercommand';import _0x3d4488 from'./integrations/standardeditingmode';import _0xa46c80 from'./integrations/style';import _0x3b1e29 from'./integrations/table';import _0x7a59f from'./integrations/tablemergesplit';import _0x4f6e0f from'./integrations/tableheadings';import _0x418cf5 from'./integrations/tableclipboard';import _0x5743e1 from'./integrations/tablecolumnresize';import _0x439a04 from'./integrations/template';import _0x21a467 from'./integrations/tableofcontents';import _0x320f8e from'./integrations/title';import _0x268428 from'./integrations/undo';import{getTranslation as _0x1365f6}from'./utils/common-translations';import _0x1ca64c from'./integrations/tablecaption';import _0x42c4df from'./integrations/documentlistproperties';import _0x567b80 from'./integrations/tableproperties';export default class p extends _0x382cc3{static get[_0xcedb('0xcc')](){return['CommentsRepository',_0x46108b,_0x46aead,_0x53ea55,_0x388eea,_0x463cb3,_0x3d9841,_0x451400,_0x28f376,_0x1467d2,_0x506980,_0x42c4df,_0xc6fe64,_0x4e0438,_0x392e26,_0x3229a7,_0x5ce64e,_0x3e4ab0,_0xf6dac,_0x4bbc93,_0x1f36ed,_0xa1f734,_0xc34074,_0x1402c5,_0x101a88,_0x108521,_0x599133,_0x505951,_0x2cc813,_0x33227a,_0xe830f5,_0x14795c,_0x391e27,_0x4e4d27,_0x1b9165,_0x3d4488,_0xa46c80,_0x3b1e29,_0x7a59f,_0x4f6e0f,_0x1ca64c,_0x418cf5,_0x5743e1,_0x21a467,_0x567b80,_0x439a04,_0x320f8e,_0x268428];}static get['pluginName'](){return _0xcedb('0x12a');}constructor(_0x52d609){function _0x37cac4(_0x1b3250){return _0x1b3250[_0xcedb('0xdb')](_0x3313d1=>String[_0xcedb('0x84')](_0x3313d1))[_0xcedb('0x11e')]('');}super(_0x52d609),this[_0xcedb('0x11b')](_0xcedb('0x126'),[]),this['on'](_0xcedb('0x88'),(_0x57f982,_0x37d38e,_0x25bfc8,_0xe3e402)=>{this['_model'][_0xcedb('0x139')](()=>{for(const _0x104ba9 of[..._0xe3e402,..._0x25bfc8])this[_0xcedb('0x11a')][_0xcedb('0x29')][_0xcedb('0x138')](_0x104ba9)&&_0x52d609['editing'][_0xcedb('0x66')](_0x104ba9);});}),this[_0xcedb('0x67')]=new _0x4e1a67(this[_0xcedb('0x124')]['model']['schema'],this[_0xcedb('0x124')]['locale']),this['_adapter']=null,this[_0xcedb('0x61')]=new Dt(this[_0xcedb('0x124')]),this['_suggestions']=new Map(),this[_0xcedb('0x90')]=_0x52d609['plugins'][_0xcedb('0xf1')](_0xcedb('0xbc')),this[_0xcedb('0x25')]=new Set(),this[_0xcedb('0x11a')]=this[_0xcedb('0x124')][_0xcedb('0xdd')],this['_suggestionState']=new WeakMap(),this[_0xcedb('0x5d')]=!0x1,_0x52d609[_0xcedb('0xc')]['define'](_0xcedb('0xf5'),_0xcedb('0xce')),this[_0xcedb('0x130')]=_0x52d609[_0xcedb('0xc')][_0xcedb('0xf1')](_0xcedb('0xf5')),_0x52d609[_0xcedb('0xc')]['define'](_0xcedb('0x13a'),!0x0),this[_0xcedb('0x43')]=_0x52d609['config'][_0xcedb('0xf1')]('trackChanges.mergeNestedSuggestions'),this[_0xcedb('0xa8')]=new _0x8863ac(_0x52d609,this['_enabledCommands']),this[_0x37cac4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x37cac4([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x34]);}['init'](){const _0x45082b=this['editor'];_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x122'))[_0xcedb('0x2e')]({'model':_0xcedb('0x133'),'view':_0xec7efd=>{const {id:_0x172d75,type:_0x4157b3}=this['_splitMarkerName'](_0xec7efd[_0xcedb('0xad')]),_0x32f91a=[_0xcedb('0xe'),_0xcedb('0x100')+_0x4157b3];let _0x5c7aed=0xbb8;return this[_0xcedb('0x126')][_0xcedb('0x1d')](_0xec7efd['markerName'])&&(_0x32f91a[_0xcedb('0xa')]('ck-suggestion-marker--active'),_0x5c7aed=0xbc2),_0xcedb('0x80')==_0x4157b3&&(_0x5c7aed+=0x5),{'classes':_0x32f91a,'attributes':{'data-suggestion':_0x172d75},'priority':_0x5c7aed};}}),_0x45082b[_0xcedb('0xf7')][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0xe2')](_0x27c66f=>{_0x27c66f['on'](_0xcedb('0xde'),(_0x5986a6,_0x58ec56,_0x362e00)=>{if(!_0x362e00['options'][_0xcedb('0x71')])return;const _0x35f102=_0x58ec56[_0xcedb('0x47')];if(!_0x35f102)return;const _0x52b363=_0x362e00[_0xcedb('0x79')][_0xcedb('0xc1')](_0x35f102);_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')][_0xcedb('0x9c')](_0x35f102)&&_0x52b363&&!_0x52b363['getCustomProperty'](_0xcedb('0x8d'))&&_0x52b363['is'](_0xcedb('0x9b'))&&_0x311991(_0x52b363,_0x362e00['writer']);},{'priority':_0xcedb('0x27')});}),_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0x2e')]({'model':_0xcedb('0x133'),'view':(_0x18966b,_0x3966fb)=>{if(!_0x3966fb[_0xcedb('0x121')]['showSuggestionHighlights'])return null;const {type:_0x33ccef}=this[_0xcedb('0x2b')](_0x18966b['markerName']);return{'classes':[_0xcedb('0xe'),'ck-suggestion-marker-'+_0x33ccef],'priority':0xbb8};}});const _0x43738b=({showActiveMarkers:_0x168bc5=!0x0}={})=>(_0x278ab9,_0x2b9472,_0x99b9cc)=>{if(!_0x2b9472['item'])return;if(_0x2b9472[_0xcedb('0x47')]['is'](_0xcedb('0xb8')))return void _0x99b9cc[_0xcedb('0xd0')]['consume'](_0x2b9472[_0xcedb('0x47')],_0x278ab9[_0xcedb('0x75')]);const _0x4defdc=_0x99b9cc[_0xcedb('0x79')][_0xcedb('0xc1')](_0x2b9472[_0xcedb('0x47')]);if(!(_0x2b9472['item']['is'](_0xcedb('0x35'))&&_0x45082b['model'][_0xcedb('0x6a')]['isBlock'](_0x2b9472[_0xcedb('0x47')])&&!_0x4defdc[_0xcedb('0xf6')](_0xcedb('0xe9'))))return;const {id:_0x30fd8e}=this[_0xcedb('0x2b')](_0x2b9472['markerName']);_0x99b9cc[_0xcedb('0x3d')][_0xcedb('0x63')]([_0xcedb('0xe'),_0xcedb('0x23')],_0x4defdc),_0x99b9cc['writer']['setAttribute'](_0xcedb('0x3b'),_0x30fd8e,_0x4defdc),_0x99b9cc[_0xcedb('0x79')][_0xcedb('0x51')](_0x4defdc,_0x2b9472['markerName']),_0x168bc5&&(this[_0xcedb('0x126')][_0xcedb('0x1d')](_0x2b9472[_0xcedb('0xad')])?_0x99b9cc[_0xcedb('0x3d')][_0xcedb('0x63')](_0xcedb('0x40'),_0x4defdc):_0x99b9cc['writer'][_0xcedb('0x42')](_0xcedb('0x40'),_0x4defdc));for(const _0x96efb4 of _0x45082b['model'][_0xcedb('0x72')](_0x2b9472[_0xcedb('0x47')])[_0xcedb('0x7e')]())_0x99b9cc['consumable']['consume'](_0x96efb4,_0x278ab9['name']);_0x99b9cc[_0xcedb('0xd0')][_0xcedb('0xef')](_0x2b9472[_0xcedb('0x47')],_0x278ab9['name']);};_0x45082b[_0xcedb('0xf7')][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0xe2')](_0x280ff7=>{_0x280ff7['on'](_0xcedb('0x3e'),(_0x5153da,_0x414df7,_0x33f723)=>{_0x33f723[_0xcedb('0x121')]['showSuggestionHighlights']&&_0x43738b({'showActiveMarkers':!0x1})(_0x5153da,_0x414df7,_0x33f723);},{'priority':_0xcedb('0x62')});}),_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0xbb')]({'model':_0xcedb('0x133'),'view':(_0x855c23,_0x55e345)=>_0x55e345[_0xcedb('0x121')]['showSuggestionHighlights']?null:{'group':_0xcedb('0x133'),'name':_0x855c23[_0xcedb('0x53')](0xb)}}),_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x6c'))['elementToElement']({'view':{'name':_0xcedb('0x133'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5843de,{writer:_0xbbcdf5})=>{let _0x2c50a2=_0xcedb('0x93')+_0x5843de[_0xcedb('0x131')](_0xcedb('0xc6'))+':'+_0x5843de[_0xcedb('0x131')]('id');return _0x5843de[_0xcedb('0x131')]('marker-count')&&(_0x2c50a2+=':'+_0x5843de['getAttribute']('marker-count')),_0xbbcdf5[_0xcedb('0xe7')](_0xcedb('0xa4'),{'data-name':_0x2c50a2});}}),_0x45082b['conversion'][_0xcedb('0x54')]('upcast')[_0xcedb('0xfd')]({'view':'suggestion'}),_0x45082b[_0xcedb('0xf7')][_0xcedb('0x54')](_0xcedb('0x122'))['add'](_0x147edd=>{_0x147edd['on'](_0xcedb('0x3e'),_0x43738b(),{'priority':_0xcedb('0x27')});}),_0x45082b[_0xcedb('0xf7')]['for'](_0xcedb('0x122'))[_0xcedb('0xe2')](_0xb42a1e=>{_0xb42a1e['on']('removeMarker:suggestion:formatBlock',(_0x5a0aa9,_0x5d9ed9,_0x41487b)=>{const _0x59b838=_0x41487b[_0xcedb('0x79')]['markerNameToElements'](_0x5d9ed9[_0xcedb('0xad')]);if(_0x59b838)for(const _0x5a8fd7 of _0x59b838)_0x5a8fd7[_0xcedb('0xf6')](_0xcedb('0xe9'))||(_0x41487b[_0xcedb('0x3d')][_0xcedb('0x42')]([_0xcedb('0xe'),_0xcedb('0x23'),_0xcedb('0x40')],_0x5a8fd7),_0x41487b[_0xcedb('0x3d')][_0xcedb('0x112')](_0xcedb('0x3b'),_0x5a8fd7),_0x41487b['mapper'][_0xcedb('0x92')](_0x5a8fd7,_0x5d9ed9[_0xcedb('0xad')]));},{'priority':_0xcedb('0x27')});}),_0x45082b[_0xcedb('0xdd')]['document'][_0xcedb('0x73')](_0x527c1e=>{let _0x25993d=!0x1;const _0x41d1a2=Array['from'](_0x45082b[_0xcedb('0xdd')][_0xcedb('0xeb')][_0xcedb('0x7d')]['getChangedMarkers']()),_0x36fc2a=new Set();for(const {name:_0x4b7f47,data:_0x138943}of _0x41d1a2){const {group:_0x5af2da,type:_0xda185d,id:_0x40516f}=this[_0xcedb('0x2b')](_0x4b7f47);if(_0xcedb('0x133')!==_0x5af2da)continue;const _0x452162=this[_0xcedb('0xee')]['get'](_0x40516f);if(null!=_0x138943[_0xcedb('0xa1')]){_0xcedb('0xb7')==_0xda185d&&(_0x25993d=_0x25993d||Mt(_0x138943[_0xcedb('0xa1')],_0x4b7f47,_0x527c1e,_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')]));if(_0x138943[_0xcedb('0xa1')][_0xcedb('0x44')]||_0xcedb('0x19')==_0x138943[_0xcedb('0xa1')]['root'][_0xcedb('0x119')]||'formatBlock'==_0xda185d&&!Nt(_0x138943[_0xcedb('0xa1')])||'deletion'==_0xda185d&&!(!_t(_0x3463a7=_0x138943['newRange'])&&!function(_0x15ca47){return _0x15ca47[_0xcedb('0x1a')][_0xcedb('0x2c')]==_0x15ca47[_0xcedb('0x9e')][_0xcedb('0x82')]&&_0x15ca47[_0xcedb('0x1a')][_0xcedb('0x2a')];}(_0x3463a7)))_0x527c1e[_0xcedb('0xc7')](_0x4b7f47),_0x25993d=!0x0;else{if(!_0x452162||!_0x452162['isInContent'])continue;_0x36fc2a[_0xcedb('0xe2')](_0x452162);}}}var _0x3463a7;return _0x36fc2a[_0xcedb('0xca')]>0x0&&(_0x25993d=!!this['_joinWithAdjacentSuggestions'](_0x36fc2a)||_0x25993d),_0x25993d;}),_0x45082b[_0xcedb('0xdd')][_0xcedb('0xeb')][_0xcedb('0x73')](_0x52755d=>{let _0x9f16e=!0x1;for(const _0x46da21 of _0x45082b[_0xcedb('0xdd')][_0xcedb('0xeb')][_0xcedb('0x7d')][_0xcedb('0x114')]()){if('insert'!=_0x46da21[_0xcedb('0x10')])continue;const _0x57ca18=_0x46da21[_0xcedb('0x38')][_0xcedb('0xa3')](_0x46da21['length']);if(_0x57ca18['isAtEnd'])for(const _0x356b42 of this['_suggestions'][_0xcedb('0x127')]()){if(_0x356b42['isMultiRange']||!_0x356b42[_0xcedb('0x115')])continue;if(_0xcedb('0x110')!=_0x356b42[_0xcedb('0x10')])continue;const _0x4bf137=_0x356b42[_0xcedb('0x117')]();if(_0x4bf137[_0xcedb('0x1a')][_0xcedb('0x2c')]!=_0x4bf137['end'][_0xcedb('0x2c')]&&_0x4bf137['end'][_0xcedb('0xe8')](_0x46da21['position'])){const _0x353dea=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x4bf137['start'],_0x57ca18);_0x52755d[_0xcedb('0xa5')](_0x356b42[_0xcedb('0x11d')](),{'range':_0x353dea}),_0x9f16e=!0x0;}}}return _0x9f16e;}),_0x45082b[_0xcedb('0xdd')][_0xcedb('0x29')]['on'](_0xcedb('0x6f'),(_0x194036,_0x2df80c,_0x56c543)=>{if(null==_0x56c543){const {id:_0x10e2f9}=this[_0xcedb('0x2b')](_0x2df80c['name']),_0x9babaf=this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x10e2f9);_0x9babaf&&_0x9babaf[_0xcedb('0xd7')](_0x2df80c[_0xcedb('0x75')]);}}),_0x45082b['model'][_0xcedb('0xeb')]['on'](_0xcedb('0x57'),()=>{const _0x3be6ba=Array[_0xcedb('0x8a')](_0x45082b['model'][_0xcedb('0xeb')][_0xcedb('0x7d')]['getChangedMarkers']())[_0xcedb('0x111')](_0x4f76a1=>'suggestion'===this['_splitMarkerName'](_0x4f76a1['name'])[_0xcedb('0x11f')]);if(0x0===_0x3be6ba['length'])return;_0x3be6ba['sort']((_0x41ab89,_0x1f80a4)=>{const _0x30a540=_0x41ab89[_0xcedb('0xe3')][_0xcedb('0xcb')],_0x2be1ac=_0x1f80a4['data'][_0xcedb('0xcb')];return null===_0x30a540&&null===_0x2be1ac?0x0:null===_0x30a540&&null!==_0x2be1ac?-0x1:null!==_0x30a540&&null===_0x2be1ac?0x1:_0x30a540['start']['isBefore'](_0x2be1ac[_0xcedb('0x1a')])?-0x1:0x1;});const _0x165b00=new Set(),_0x1fd8a0=new Set();for(const {name:_0x1dc49d,data:_0x572bdd}of _0x3be6ba){const {id:_0x4cebbd}=this[_0xcedb('0x2b')](_0x1dc49d);if(null===_0x572bdd[_0xcedb('0xcb')]){const _0x39f0f4=this[_0xcedb('0xfc')](_0x1dc49d);_0x1fd8a0[_0xcedb('0xe2')](_0x39f0f4);}else{const _0x5a88ed=this[_0xcedb('0xee')]['get'](_0x4cebbd);null!==_0x572bdd['newRange']||_0x5a88ed[_0xcedb('0x115')]?(_0x165b00[_0xcedb('0xe2')](_0x5a88ed[_0xcedb('0xda')]),_0x1fd8a0['add'](_0x5a88ed)):this[_0xcedb('0x77')](_0x5a88ed);}}_0x1fd8a0[_0xcedb('0xca')]>0x0&&this['_refreshSuggestionsChain'](_0x1fd8a0);for(const _0x33fa3c of _0x165b00)this['fire'](_0xcedb('0xdf'),_0x33fa3c);}),_0x45082b[_0xcedb('0xdd')]['on']('applyOperation',(_0x582bb8,_0x3947b4)=>{const _0x5257ed=_0x3947b4[0x0];if(!this[_0xcedb('0xee')][_0xcedb('0xca')])return;if(!_0x5257ed[_0xcedb('0x32')])return;if(_0x5257ed['batch']['isUndo']||!_0x5257ed[_0xcedb('0x12f')][_0xcedb('0x108')])return;let _0x4c5d4d,_0x310a42;switch(_0x5257ed['type']){case _0xcedb('0x3a'):_0x4c5d4d=_0x45082b['model']['createPositionAt'](_0x5257ed['position']),_0x310a42=_0x4c5d4d[_0xcedb('0xa3')](_0x5257ed[_0xcedb('0x7b')]);break;case'split':_0x4c5d4d=_0x45082b['model'][_0xcedb('0x8b')](_0x5257ed[_0xcedb('0x28')]),_0x310a42=_0x45082b[_0xcedb('0xdd')]['createPositionAt'](_0x5257ed[_0xcedb('0xb1')]);break;case _0xcedb('0x20'):_0x4c5d4d=_0x45082b['model'][_0xcedb('0x8b')](_0x5257ed[_0xcedb('0xc9')]),_0x310a42=_0x4c5d4d[_0xcedb('0xa3')](_0x5257ed[_0xcedb('0x7b')]);break;default:return;}const _0x45e7c7=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x4c5d4d,_0x310a42);_0x45082b[_0xcedb('0xdd')][_0xcedb('0x139')](()=>{for(const {suggestion:_0x26eb0f,meta:_0x3b0a70}of this[_0xcedb('0x109')](_0x45e7c7)){if(_0x26eb0f[_0xcedb('0x136')])continue;if('formatInline'==_0x26eb0f[_0xcedb('0x10')])continue;const _0x22dadd=_0x26eb0f[_0xcedb('0xe3')]&&_0x26eb0f[_0xcedb('0xe3')][_0xcedb('0xd1')];(_0xcedb('0x110')!=_0x26eb0f[_0xcedb('0x10')]||_0xcedb('0x4e')==_0x5257ed[_0xcedb('0x10')]&&!_0x22dadd)&&(_0x3b0a70[_0xcedb('0x123')]||_0xcedb('0x101')==_0x26eb0f[_0xcedb('0x10')]&&_0x3b0a70[_0xcedb('0xd')]||_0x26eb0f[_0xcedb('0x117')]()[_0xcedb('0x58')](_0x45e7c7)&&this[_0xcedb('0x13')](_0x26eb0f,_0x4c5d4d,_0x310a42));}});},{'priority':_0xcedb('0x39')}),_0x45082b[_0xcedb('0xdd')]['on'](_0xcedb('0xe0'),(_0x4ea3e0,_0x244917)=>{const _0x5d748f=_0x244917[0x0],_0x26f814=_0x244917[0x1];if(_0x26f814&&_0x26f814[_0xcedb('0xf8')])return;if(this[_0xcedb('0x5d')])return;if(!this[_0xcedb('0xa8')][_0xcedb('0x4')])return;if(_0x5d748f[_0xcedb('0x44')])return;const _0x2bc747=_0x45082b['model'][_0xcedb('0x6a')],{start:_0x48d3a6,end:_0x422eb3}=_0x5d748f[_0xcedb('0x117')](),_0x3fe112=_0x48d3a6[_0xcedb('0x3f')]&&_0x2bc747[_0xcedb('0xab')](_0x48d3a6[_0xcedb('0x3f')])?null:_0x2bc747['getNearestSelectionRange'](_0x48d3a6,'forward'),_0x201528=_0x422eb3[_0xcedb('0x82')]&&_0x2bc747[_0xcedb('0xab')](_0x422eb3[_0xcedb('0x82')])?null:_0x2bc747[_0xcedb('0xcd')](_0x422eb3,'backward'),_0x4b0367=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x3fe112?_0x3fe112[_0xcedb('0x1a')]:_0x48d3a6,_0x201528?_0x201528[_0xcedb('0x9e')]:_0x422eb3);_0x45082b['model'][_0xcedb('0x139')](_0x39dbd5=>{this['markDeletion'](_0x4b0367);const _0x130144=_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')]['getNearestSelectionRange'](_0x4b0367[_0xcedb('0x1a')]);_0x5d748f['is'](_0xcedb('0x10a'))?_0x39dbd5[_0xcedb('0xa7')](_0x130144):_0x5d748f[_0xcedb('0x125')](_0x130144);}),_0x4ea3e0['stop']();},{'priority':_0xc6cb6d[_0xcedb('0x135')]+0xa}),_0x45082b[_0xcedb('0xdd')]['on'](_0xcedb('0xaf'),(_0x221f6a,_0x59660b)=>{const _0x3ea150=_0x59660b[_0x59660b[_0xcedb('0xfb')]-0x1];_0x3ea150&&_0x3ea150[_0xcedb('0xf8')]||this[_0xcedb('0x5d')]||this['trackChangesCommand'][_0xcedb('0x4')]&&(_0x45082b[_0xcedb('0xdd')][_0xcedb('0x139')](()=>{let _0x3b4d0a=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xaf')](_0x59660b[0x0],_0x59660b[0x1],_0x59660b[0x2],{'forceDefaultExecution':!0x0});if(!_0x3b4d0a)return;_0x221f6a[_0xcedb('0x6e')]=_0x3b4d0a['clone']();const _0xa0184b=_0x3b4d0a['end']['nodeBefore'],_0x1b4395=_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')];_0xa0184b&&_0x1b4395['isBlock'](_0xa0184b)&&!_0x1b4395[_0xcedb('0x9c')](_0xa0184b)&&(_0x3b4d0a=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x3b4d0a[_0xcedb('0x1a')],_0x45082b[_0xcedb('0xdd')][_0xcedb('0x8b')](_0xa0184b,_0xcedb('0x9e')))),this['markInsertion'](_0x3b4d0a);}),_0x221f6a['stop']());},{'priority':'high'}),this[_0xcedb('0x124')][_0xcedb('0x1b')]['add']('trackChanges',this['trackChangesCommand']),this['enableCommand'](_0xcedb('0xd8'));const _0x1801eb=new _0x1bfab0(_0x45082b,this['_suggestions']);_0x45082b['commands']['add']('acceptSuggestion',_0x1801eb),this[_0xcedb('0x118')](_0xcedb('0x37'));const _0x24d183=new _0x3fc170(_0x45082b,this[_0xcedb('0xee')]);_0x45082b['commands'][_0xcedb('0xe2')](_0xcedb('0xe1'),_0x24d183),this[_0xcedb('0x118')]('discardSuggestion'),_0x45082b[_0xcedb('0x1b')][_0xcedb('0xe2')](_0xcedb('0xb2'),new _0x1f8af6(_0x45082b,_0x1801eb,this[_0xcedb('0xee')])),this[_0xcedb('0x118')](_0xcedb('0xb2')),_0x45082b[_0xcedb('0x1b')]['add']('discardAllSuggestions',new _0x1f8af6(_0x45082b,_0x24d183,this[_0xcedb('0xee')])),this['enableCommand'](_0xcedb('0x9')),_0x45082b[_0xcedb('0x1b')][_0xcedb('0xe2')](_0xcedb('0x55'),new _0xd9b9e6(_0x45082b,_0x1801eb,this[_0xcedb('0xee')])),this[_0xcedb('0x118')](_0xcedb('0x55')),_0x45082b[_0xcedb('0x1b')][_0xcedb('0xe2')](_0xcedb('0x87'),new _0xd9b9e6(_0x45082b,_0x24d183,this[_0xcedb('0xee')])),this[_0xcedb('0x118')](_0xcedb('0x87'));const _0x35c957=_0x45082b[_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0xbc'));this[_0xcedb('0x113')](_0x35c957,_0xcedb('0x5f'),(_0x306c07,{threadId:_0x2d9656})=>{const _0x15cb8e=this['_suggestions'][_0xcedb('0xf1')](_0x2d9656);_0x15cb8e&&_0x15cb8e['commentThread']&&0x1===_0x15cb8e[_0xcedb('0x69')]['length']&&this[_0xcedb('0x12d')](_0x2d9656,{'hasComments':!0x0});},{'priority':'low'}),this[_0xcedb('0x113')](_0x35c957,_0xcedb('0x4c'),(_0x11354d,{threadId:_0x579ca6})=>{const _0x567525=this[_0xcedb('0xee')]['get'](_0x579ca6);_0x567525&&_0x567525[_0xcedb('0x69')]&&!_0x567525[_0xcedb('0x69')][_0xcedb('0xfb')]&&this[_0xcedb('0x12d')](_0x579ca6,{'hasComments':!0x1});},{'priority':_0xcedb('0xb')});}set[_0xcedb('0x70')](_0x30efac){if(this['_adapter'])throw new _0x47ae60(_0xcedb('0xe6'),this);this[_0xcedb('0x137')]=_0x30efac;}get[_0xcedb('0x70')](){return this[_0xcedb('0x137')];}[_0xcedb('0x2')]({skipNotAttached:_0x239cc7=!0x1,toJSON:_0x2c2706=!0x1}={}){const _0x2c5a44=[];for(const _0x757a57 of this[_0xcedb('0xee')][_0xcedb('0x127')]())_0x239cc7&&!_0x757a57[_0xcedb('0x115')]||_0x2c5a44[_0xcedb('0xa')](_0x757a57);return _0x2c2706?_0x2c5a44['map'](_0x17cfc1=>_0x17cfc1[_0xcedb('0xbd')]()):_0x2c5a44;}[_0xcedb('0xaa')](_0x48eeb4){const _0x4777c7=this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x48eeb4);if(!_0x4777c7)throw new _0x47ae60('track-changes-suggestion-not-found',this);return _0x4777c7;}[_0xcedb('0x30')](_0x38a491){return this['_suggestions'][_0xcedb('0x138')](_0x38a491);}[_0xcedb('0xbf')](_0x1f016f){const {authorId:_0x19022e,id:_0x8b0e76,attributes:_0x1d4b4c}=_0x1f016f,[_0x374fd1,_0x5729ab]=_0x1f016f[_0xcedb('0x10')][_0xcedb('0x4e')](':'),_0x1ee17d=this['_suggestions'][_0xcedb('0xf1')](_0x8b0e76)||this['_createSuggestion'](_0x374fd1,_0x5729ab,_0x8b0e76,_0x19022e,_0x1d4b4c);if(this['_addThreadToSuggestion'](_0x1ee17d),this[_0xcedb('0x5c')](_0x1ee17d,_0x374fd1,_0x5729ab||null,_0x19022e),_0x1ee17d[_0xcedb('0xb3')]=_0x1f016f[_0xcedb('0xb3')],_0x1d4b4c&&_0x1d4b4c[_0xcedb('0x6d')]){const _0x1137c1=_0x1d4b4c[_0xcedb('0x6d')],_0x9157a2=this[_0xcedb('0x1f')](_0x1137c1[_0xcedb('0xe4')]);_0x1ee17d[_0xcedb('0x36')]=_0x1137c1['createdAt'],_0x1ee17d[_0xcedb('0xff')]=_0x9157a2,_0x1ee17d[_0xcedb('0xd4')]=!0x0;}else _0x1ee17d['authoredAt']=_0x1f016f[_0xcedb('0xb3')];switch(_0x1f016f[_0xcedb('0xe3')]&&(_0x1ee17d[_0xcedb('0xe3')]=_0x1f016f[_0xcedb('0xe3')]),_0x1f016f[_0xcedb('0x21')]&&(_0x1ee17d['attributes']=_0x1f016f['attributes']),this[_0xcedb('0x137')]&&this[_0xcedb('0x137')][_0xcedb('0xf9')]||(_0x1ee17d[_0xcedb('0xc5')]=!0x0),this[_0xcedb('0xc4')]['get'](_0x1ee17d)){case _0xcedb('0x85'):this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x1ee17d,_0xcedb('0xba'));break;case _0xcedb('0x89'):_0x1ee17d[_0xcedb('0x115')]?(this['_suggestionState']['set'](_0x1ee17d,_0xcedb('0x46')),this[_0xcedb('0x64')]('suggestionLoaded',_0x1ee17d)):this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x1ee17d,_0xcedb('0xfe'));}return _0x1ee17d;}[_0xcedb('0x37')](_0x58c234){this[_0xcedb('0xf8')](()=>{this['editor'][_0xcedb('0xdd')]['change'](()=>{for(const _0x57a0c1 of _0x58c234['getAllAdjacentSuggestions']())_0x57a0c1[_0xcedb('0x24')]();});});}[_0xcedb('0xe1')](_0x4c06d1){this['forceDefaultExecution'](()=>{this['editor'][_0xcedb('0xdd')][_0xcedb('0x139')](()=>{for(const _0x4295ad of _0x4c06d1[_0xcedb('0x12b')]())_0x4295ad[_0xcedb('0xa9')]();});});}[_0xcedb('0x118')](_0x53381c,_0x5e9ab9){const _0x38ec88=this[_0xcedb('0x124')]['commands'][_0xcedb('0xf1')](_0x53381c);if(!_0x38ec88)throw new _0x47ae60(_0xcedb('0x105'),this,{'commandName':_0x53381c});this[_0xcedb('0x25')]['add'](_0x38ec88),_0x5e9ab9&&_0x38ec88['on'](_0xcedb('0x106'),(_0x11e86f,_0x1d49de)=>{this[_0xcedb('0xa8')][_0xcedb('0x4')]&&(this[_0xcedb('0x5d')]||_0x1d49de[_0xcedb('0xfb')]>0x0&&_0x1d49de[_0x1d49de[_0xcedb('0xfb')]-0x1]&&_0x1d49de[_0x1d49de['length']-0x1]['forceDefaultExecution']||(_0x5e9ab9((..._0x146b61)=>_0x38ec88[_0xcedb('0x106')](..._0x146b61,{'forceDefaultExecution':!0x0}),..._0x1d49de),_0x11e86f[_0xcedb('0x12c')]()));},{'priority':_0xcedb('0x27')});}[_0xcedb('0xf8')](_0x11450a){let _0x3b96f7,_0x2b5bae;const _0x5f45bf=this[_0xcedb('0x5d')];this[_0xcedb('0x5d')]=!0x0;try{_0x3b96f7=_0x11450a();}catch(_0x5370ee){_0x2b5bae=_0x5370ee;}return _0x5f45bf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2b5bae&&_0x47ae60[_0xcedb('0x22')](_0x2b5bae,this),_0x3b96f7;}[_0xcedb('0x7a')](_0x2ebd0f,_0xa22a64=null,_0x552f37={}){if(_0x2ebd0f[_0xcedb('0x44')])return null;const _0x49fd3c=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')]('Users')['me'];for(const {suggestion:_0x3a7dc1,meta:_0x592be9}of this[_0xcedb('0x109')](_0x2ebd0f,_0xcedb('0x101')))if(_0x592be9[_0xcedb('0xd')]){if(!_0x592be9[_0xcedb('0x128')]){if(!this[_0xcedb('0x43')]&&_0x592be9[_0xcedb('0x123')])continue;return _0x3a7dc1;}if(_0xa22a64==_0x3a7dc1[_0xcedb('0x4a')]){const _0x23a489=_0x3a7dc1[_0xcedb('0x117')]();return _0x23a489[_0xcedb('0x1a')][_0xcedb('0xe8')](_0x2ebd0f[_0xcedb('0x9e')])?this['_setSuggestionRange'](_0x3a7dc1,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x2ebd0f[_0xcedb('0x1a')],_0x23a489['end'])):this[_0xcedb('0x81')](_0x3a7dc1,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x23a489[_0xcedb('0x1a')],_0x2ebd0f['end'])),_0x3a7dc1;}}const _0x38f427=_0xa49531(),_0x489a25=_0x49fd3c['id'],_0x257e89=_0xa22a64?_0xcedb('0x0')+_0xa22a64:_0xcedb('0x101'),_0x474123=this[_0xcedb('0x95')]({'id':_0x38f427,'type':_0x257e89,'createdAt':new Date(),'authorId':_0x489a25,'attributes':_0x552f37});return this[_0xcedb('0x10c')](_0x257e89,_0x38f427,_0x489a25,_0x2ebd0f),_0x474123;}[_0xcedb('0xb5')](_0x51a3f4,_0x191438=_0xcedb('0x5e'),_0x5043dd={}){const _0x5c01de=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')]('Users')['me'],_0x2c4eac=this[_0xcedb('0x61')]['getSuggestionCallback'](_0xcedb('0x101'),_0x191438,_0xcedb('0x11e'));for(const _0x786c28 of this[_0xcedb('0x2')]())if(_0x786c28[_0xcedb('0xff')]['id']==_0x5c01de['id']&&_0xcedb('0x101')==_0x786c28[_0xcedb('0x10')]&&_0x786c28['subType']==_0x191438&&(_0x2c4eac(_0x786c28[_0xcedb('0xd5')](),_0x51a3f4)||_0x2c4eac(_0x51a3f4,_0x786c28[_0xcedb('0xd5')]()))){for(const _0x28c290 of _0x51a3f4)_0x786c28[_0xcedb('0x134')](_0x28c290);return _0x786c28;}if(this[_0xcedb('0x43')])for(const _0x73121e of _0x51a3f4)for(const {suggestion:_0x259391,meta:_0x2073ed}of this[_0xcedb('0x109')](_0x73121e,_0xcedb('0x101'))){if(!_0x2073ed[_0xcedb('0xd')])continue;let _0x4a0bbf=!0x0;for(const _0x1ac982 of _0x259391['getRanges']())for(const _0x5bbbbd of _0x51a3f4)if(!_0x1ac982[_0xcedb('0x58')](_0x5bbbbd)){_0x4a0bbf=!0x1;break;}if(_0x4a0bbf)return _0x259391;}const _0x18bb8e=_0xa49531(),_0xd9afdb=_0x5c01de['id'],_0x3249f1='insertion:'+_0x191438,_0x31b247=this[_0xcedb('0x95')]({'id':_0x18bb8e,'type':_0x3249f1,'createdAt':new Date(),'authorId':_0xd9afdb,'attributes':_0x5043dd});for(const _0x4c0bb5 of _0x51a3f4)this['_addSuggestionMarker'](_0x3249f1,_0x18bb8e,_0xd9afdb,_0x4c0bb5,_0x58c80b['getMultiRangeId']());return _0x31b247;}[_0xcedb('0x14')](_0xb31786,_0x2b85c8,_0x4dd615=null,_0x2a69de={}){if(_0x4dd615=_0x4dd615||$t(_0x2b85c8),_0xb31786[_0xcedb('0x44')])return null;if(_0xcedb('0x7')===this['_trackFormatChanges']){const _0x35c25c=this['_suggestionFactory'][_0xcedb('0xdc')]('formatInline',_0x4dd615,_0xcedb('0x24'));return this['forceDefaultExecution'](()=>_0x35c25c([_0xb31786],_0x2b85c8,_0x2a69de)),null;}const _0x1fa461=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')]('Users')['me'],_0x4c9254=[];if(_0xcedb('0x31')!==this[_0xcedb('0x130')])for(const {suggestion:_0x4e44b2,meta:_0x381ebf}of this['_findSuggestions'](_0xb31786,'insertion'))_0x381ebf[_0xcedb('0xd')]&&!_0x381ebf['isInsideObject']&&_0x4c9254['push'](..._0x4e44b2[_0xcedb('0xd5')]());const _0x15426b=function(_0x51f48b,_0x43ff16){const _0x33bb33=[];for(const _0x24d438 of _0x43ff16){const _0x1cb04f=_0x51f48b[_0xcedb('0x8')](_0x24d438);_0x1cb04f&&_0x33bb33['push'](_0x1cb04f);}return _0x33bb33;}(_0xb31786,_0x4c9254),_0x2f73cc=function(_0x5884ab,_0x59dfaa){const _0x4bc02e=[_0x5884ab];for(const _0x25d3cd of _0x59dfaa){let _0x33e629=0x0;for(;_0x33e629<_0x4bc02e[_0xcedb('0xfb')];){const _0x43c781=_0x4bc02e[_0x33e629][_0xcedb('0x99')](_0x25d3cd);_0x4bc02e['splice'](_0x33e629,0x1,..._0x43c781),_0x33e629+=_0x43c781['length'];}}return _0x4bc02e;}(_0xb31786,_0x4c9254);_0x15426b[_0xcedb('0xfb')]&&this['_model'][_0xcedb('0x139')](()=>{for(const _0x506588 of _0x15426b){const _0x4e57ef=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0xb7'),_0x4dd615,'accept');this[_0xcedb('0xf8')](()=>_0x4e57ef([_0x506588],_0x2b85c8,_0x2a69de));}});for(const _0x39baba of _0x2f73cc){let _0x438aca=null,_0xd2009b=_0x39baba[_0xcedb('0x1a')],_0x29739a=_0x39baba[_0xcedb('0x9e')];for(const {suggestion:_0x489773,meta:_0x64e681}of this['_findSuggestions'](_0x39baba,_0xcedb('0xb7'))){if(!_0x64e681[_0xcedb('0xd')])continue;if(_0x489773[_0xcedb('0x4a')]!=_0x4dd615)continue;const _0x5246ed=_0x489773['getFirstRange']();if(_0x5246ed[_0xcedb('0x58')](_0x39baba,!0x0))return null;_0xd2009b=_0xd2009b[_0xcedb('0x10f')](_0x5246ed[_0xcedb('0x1a')])?_0xd2009b:_0x5246ed[_0xcedb('0x1a')],_0x29739a=_0x29739a[_0xcedb('0x74')](_0x5246ed[_0xcedb('0x9e')])?_0x29739a:_0x5246ed['end'],_0x438aca?_0x5246ed[_0xcedb('0x1a')][_0xcedb('0x10f')](_0x438aca[_0xcedb('0x117')]()[_0xcedb('0x1a')])?(_0x438aca['removeMarkers'](),_0x438aca=_0x489773):_0x489773['removeMarkers']():_0x438aca=_0x489773;}const _0x4fa609=this[_0xcedb('0x11a')]['createRange'](_0xd2009b,_0x29739a);if(_0x438aca)this[_0xcedb('0x81')](_0x438aca,_0x4fa609);else{const _0x21c9e3=_0xa49531(),_0xb86c12=_0x1fa461['id'];this[_0xcedb('0x95')]({'id':_0x21c9e3,'type':'formatInline:'+_0x4dd615,'data':_0x2b85c8,'createdAt':new Date(),'authorId':_0xb86c12,'attributes':_0x2a69de}),this[_0xcedb('0x10c')](_0xcedb('0x34')+_0x4dd615,_0x21c9e3,_0xb86c12,_0x4fa609);}}return null;}['markBlockFormat'](_0x223554,_0x324e1e,_0x8094b7=[],_0x50f621=null,_0x652357={}){_0x324e1e[_0xcedb('0x97')]||(_0x324e1e[_0xcedb('0x97')]=_0x324e1e['commandName']),_0x324e1e[_0xcedb('0xd1')]=_0x223554['is']('range'),_0x50f621=_0x50f621||$t(_0x324e1e);const _0x5be72d=_0x8094b7['map'](_0x107410=>Rt(_0x107410,this['_model'])),_0x5d0112=_0x223554['is'](_0xcedb('0xf4'))?_0x223554:Rt(_0x223554,this[_0xcedb('0x11a')]);if(_0xcedb('0x7')===this[_0xcedb('0x130')]){const _0x1ee20e=this['_suggestionFactory']['getSuggestionCallback'](_0xcedb('0x110'),_0x50f621,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x1ee20e([_0x5d0112],_0x324e1e,_0x652357)),null;}_0x5be72d[_0xcedb('0xa')](_0x5d0112);let _0xac0d57=!0x0;for(const _0x7fe67a of _0x5be72d)if(!this[_0xcedb('0x68')](_0x7fe67a)){_0xac0d57=!0x1;break;}if(_0xac0d57&&'always'!==this['_trackFormatChanges']){const _0x65de1d=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x110'),_0x50f621,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x65de1d([_0x5d0112],_0x324e1e,_0x652357)),null;}let _0x198d8d=null,_0x2228f2=_0x5d0112['start'],_0x5bf0c9=_0x5d0112[_0xcedb('0x9e')];for(const {suggestion:_0xdc36fe,meta:_0x26a8b3}of this[_0xcedb('0x109')](_0x5d0112,_0xcedb('0x110'))){if(!_0x26a8b3['isOwn']||_0x26a8b3[_0xcedb('0x128')]||_0x26a8b3[_0xcedb('0x123')]||_0x26a8b3[_0xcedb('0x3')])continue;if(_0xdc36fe[_0xcedb('0xe3')][_0xcedb('0x97')]!=_0x324e1e['formatGroupId'])continue;const _0x269339=_0xdc36fe[_0xcedb('0x117')]();if(_0xdc36fe['subType']==_0x50f621){if(_0x269339[_0xcedb('0x58')](_0x5d0112,!0x0))return null;_0x2228f2=_0x2228f2['isBefore'](_0x269339[_0xcedb('0x1a')])?_0x2228f2:_0x269339[_0xcedb('0x1a')],_0x5bf0c9=_0x5bf0c9[_0xcedb('0x74')](_0x269339[_0xcedb('0x9e')])?_0x5bf0c9:_0x269339['end'],_0x198d8d?_0x269339[_0xcedb('0x1a')][_0xcedb('0x10f')](_0x198d8d[_0xcedb('0x117')]()[_0xcedb('0x1a')])?(_0x198d8d[_0xcedb('0x49')](),_0x198d8d=_0xdc36fe):_0xdc36fe[_0xcedb('0x49')]():_0x198d8d=_0xdc36fe;}else{const _0x539095=_0x5d0112['getIntersection'](_0x269339);this[_0xcedb('0x5b')](_0xdc36fe,_0x539095);}}const _0xc2feae=this[_0xcedb('0x124')]['plugins'][_0xcedb('0xf1')](_0xcedb('0x52'))['me'],_0x229816=_0xa49531(),_0x1abd96=_0xc2feae['id'];if(_0x198d8d)return this[_0xcedb('0x81')](_0x198d8d,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x2228f2,_0x5bf0c9)),_0x198d8d;{const _0x9092e5=this[_0xcedb('0x95')]({'id':_0x229816,'type':_0xcedb('0xf2')+_0x50f621,'data':_0x324e1e,'createdAt':new Date(),'authorId':_0x1abd96,'attributes':_0x652357});return this['_addSuggestionMarker'](_0xcedb('0xf2')+_0x50f621,_0x229816,_0x1abd96,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x2228f2,_0x5bf0c9)),_0x9092e5;}}['markMultiRangeBlockFormat'](_0xa4bab7,_0x5e54bc,_0x5e0092=[],_0x2c088a=null,_0x5d70cc={}){_0x5e54bc[_0xcedb('0x97')]||(_0x5e54bc['formatGroupId']=_0x5e54bc[_0xcedb('0x10b')]);const _0x172db6=_0xa4bab7[0x0];_0x5e54bc['multipleBlocks']=_0x172db6['is'](_0xcedb('0xf4')),_0x2c088a=_0x2c088a||$t(_0x5e54bc);const _0x44fcfb=_0x5e0092[_0xcedb('0xdb')](_0x40def3=>Rt(_0x40def3,this['_model'])),_0xa61d15=_0x172db6['is']('range')?_0xa4bab7:_0xa4bab7[_0xcedb('0xdb')](_0x385166=>Rt(_0x385166,this[_0xcedb('0x11a')]));if(_0xcedb('0x7')===this[_0xcedb('0x130')]){const _0x2cb4f9=this['_suggestionFactory'][_0xcedb('0xdc')](_0xcedb('0x110'),_0x2c088a,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x2cb4f9(_0xa61d15,_0x5e54bc,_0x5d70cc)),null;}_0x44fcfb[_0xcedb('0xa')](..._0xa61d15);let _0x2b6a89=!0x0;for(const _0x4f9c71 of _0x44fcfb)if(!this[_0xcedb('0x68')](_0x4f9c71)){_0x2b6a89=!0x1;break;}if(_0x2b6a89&&_0xcedb('0x31')!==this['_trackFormatChanges']){const _0x30774b=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x110'),_0x2c088a,'accept');return this[_0xcedb('0xf8')](()=>_0x30774b(_0xa61d15,_0x5e54bc,_0x5d70cc)),null;}const _0x296fb0=this['editor'][_0xcedb('0xa2')]['get'](_0xcedb('0x52'))['me'];for(const _0x4de444 of this['getSuggestions']()){if(_0x4de444[_0xcedb('0xff')]['id']!=_0x296fb0['id'])continue;if('formatBlock'!=_0x4de444[_0xcedb('0x10')]||_0x4de444[_0xcedb('0xe3')][_0xcedb('0x97')]!=_0x5e54bc[_0xcedb('0x97')])continue;const _0x351787=_0x4de444['subType']==_0x2c088a;for(let _0x36a9db=0x0;_0x36a9db<_0xa61d15[_0xcedb('0xfb')];_0x36a9db++){const _0x1e89c4=_0xa61d15[_0x36a9db];for(const _0x2577b7 of _0x4de444[_0xcedb('0x1')]()){const _0x1bde85=_0x2577b7[_0xcedb('0x13b')]();if(_0x1e89c4['isEqual'](_0x1bde85)){_0x351787?(_0xa61d15[_0xcedb('0xa6')](_0x36a9db,0x1),_0x36a9db--):_0x4de444['removeMarker'](_0x2577b7[_0xcedb('0x75')]);break;}}}}if(0x0==_0xa61d15[_0xcedb('0xfb')])return null;const _0x5bf7fb=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x110'),_0x2c088a,'join');for(const _0x1e265a of this[_0xcedb('0x2')]())if(_0x1e265a[_0xcedb('0xff')]['id']==_0x296fb0['id']&&_0xcedb('0x110')==_0x1e265a[_0xcedb('0x10')]&&_0x1e265a[_0xcedb('0xe3')][_0xcedb('0x97')]==_0x5e54bc[_0xcedb('0x97')]&&_0x1e265a[_0xcedb('0x4a')]==_0x2c088a&&(_0x5bf7fb(_0x1e265a['getRanges'](),_0xa61d15)||_0x5bf7fb(_0xa61d15,_0x1e265a['getRanges']()))){for(const _0x99c6d7 of _0xa61d15)_0x1e265a[_0xcedb('0x134')](_0x99c6d7);return _0x1e265a;}const _0x585067=_0xa49531(),_0xfad207=_0x296fb0['id'],_0x89873a=_0xcedb('0xf2')+_0x2c088a,_0x4a275a=this[_0xcedb('0x95')]({'id':_0x585067,'type':_0x89873a,'data':_0x5e54bc,'createdAt':new Date(),'authorId':_0xfad207,'attributes':_0x5d70cc});for(const _0x2a9632 of _0xa61d15)this[_0xcedb('0x10c')](_0x89873a,_0x585067,_0xfad207,_0x2a9632,_0x58c80b['getMultiRangeId']());return _0x4a275a;}['markDeletion'](_0x116469,_0x5280e6=null,_0x532b86={}){if(_0x116469[_0xcedb('0x44')])return null;const _0x1834d3=this['editor'][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52'))['me'],_0x209fb7=new _0x5261dd(_0x116469[_0xcedb('0x1a')],_0x116469[_0xcedb('0x9e')]);for(const {suggestion:_0x5c912b,meta:_0x5b0de8}of this['_findSuggestions'](_0x209fb7,_0xcedb('0x101')))if(_0x5b0de8[_0xcedb('0xd')]&&!_0x5b0de8[_0xcedb('0x128')]){if(_0x5c912b['isMultiRange']){const _0x205ff7=_0x5c912b[_0xcedb('0xd5')]()[_0xcedb('0x111')](_0x34648f=>_0xcedb('0x19')!=_0x34648f[_0xcedb('0x65')][_0xcedb('0x119')]);_0x205ff7['every'](_0x11bd58=>_0x209fb7[_0xcedb('0x58')](_0x11bd58,!0x0))&&_0x5c912b[_0xcedb('0xa9')]();if(_0x205ff7[_0xcedb('0x96')](_0x5eb8db=>_0x5eb8db[_0xcedb('0x58')](_0x209fb7,!0x0))){const _0x12ac64=this[_0xcedb('0x61')]['getSuggestionCallback']('deletion',_0x5280e6,'accept');return this['forceDefaultExecution'](()=>_0x12ac64([_0x209fb7],null,_0x532b86)),null;}}else{const _0x11b25b=_0x209fb7['getIntersection'](_0x5c912b[_0xcedb('0x117')]());null!==_0x11b25b&&_0x5c912b['_onDiscard']([_0x11b25b],null,_0x532b86);}}if(_0x209fb7[_0xcedb('0x9d')](),_0x209fb7[_0xcedb('0x44')]||'$graveyard'==_0x209fb7[_0xcedb('0x65')]['rootName'])return null;let _0x5c9a31=null,_0x502ad7=_0x209fb7[_0xcedb('0x1a')],_0x182391=_0x209fb7['end'];for(const {suggestion:_0x4a93a9,meta:_0x4aec13}of this['_findSuggestions'](_0x209fb7,_0xcedb('0x80')))if(_0x4aec13[_0xcedb('0xd')]){if(_0x4a93a9[_0xcedb('0x136')]&&this[_0xcedb('0x43')]){let _0x565d40=!0x0;for(const _0x3e31c8 of _0x4a93a9[_0xcedb('0xd5')]()){if(_0x3e31c8[_0xcedb('0x58')](_0x209fb7,!0x0))return _0x4a93a9;_0x209fb7[_0xcedb('0x58')](_0x3e31c8)||(_0x565d40=!0x1);}_0x565d40&&_0x4a93a9[_0xcedb('0xa9')]();}else{const _0x1e03e4=_0x4a93a9['getFirstRange']();if(_0x1e03e4[_0xcedb('0x58')](_0x209fb7,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x4aec13['containsRangeInObject'])continue;return _0x4a93a9;}_0x502ad7=_0x502ad7['isBefore'](_0x1e03e4[_0xcedb('0x1a')])?_0x502ad7:_0x1e03e4[_0xcedb('0x1a')],_0x182391=_0x182391[_0xcedb('0x74')](_0x1e03e4['end'])?_0x182391:_0x1e03e4[_0xcedb('0x9e')],_0x5c9a31?_0x1e03e4['start']['isBefore'](_0x5c9a31[_0xcedb('0x117')]()[_0xcedb('0x1a')])?(_0x5c9a31[_0xcedb('0x49')](),_0x5c9a31=_0x4a93a9):_0x4a93a9['removeMarkers']():_0x5c9a31=_0x4a93a9;}}if(_0x5c9a31)return this[_0xcedb('0x81')](_0x5c9a31,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x502ad7,_0x182391)),_0x5c9a31;{const _0x1e9580=_0xa49531(),_0x591b5a=this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x502ad7,_0x182391),_0x193776=_0x1834d3['id'],_0x1602e1=_0x5280e6?_0xcedb('0xed')+_0x5280e6:_0xcedb('0x80'),_0x555ed3=this[_0xcedb('0x95')]({'id':_0x1e9580,'type':_0x1602e1,'createdAt':new Date(),'authorId':_0x193776,'attributes':_0x532b86});return this[_0xcedb('0x10c')](_0x1602e1,_0x1e9580,_0x193776,_0x591b5a),_0x555ed3;}}['markMultiRangeDeletion'](_0x4031d2,_0xcd199d='multi',_0x4ba97d={}){const _0x3b430b=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52'))['me'],_0x257306=_0x4031d2[_0xcedb('0xdb')](_0x6e33af=>new _0x5261dd(_0x6e33af[_0xcedb('0x1a')],_0x6e33af[_0xcedb('0x9e')])),_0x19e491=new Set();for(const _0x8c76da of _0x257306)for(const {suggestion:_0x56c4ed,meta:_0x9dfda0}of this['_findSuggestions'](_0x8c76da,'insertion'))_0x9dfda0['isOwn']&&!_0x9dfda0[_0xcedb('0x128')]&&_0x19e491[_0xcedb('0xe2')](_0x56c4ed);for(const _0x40662f of _0x19e491)if(_0x40662f[_0xcedb('0x136')]){const _0x1b6cc6=_0x40662f['getRanges']();(!_0x40662f[_0xcedb('0x21')]||!_0x40662f[_0xcedb('0x21')][_0xcedb('0x26')])&&(_0x1b6cc6[_0xcedb('0x6b')](_0x96ae88=>_0x257306[_0xcedb('0x96')](_0x450b0c=>_0x450b0c[_0xcedb('0x58')](_0x96ae88,!0x0)))&&_0x40662f[_0xcedb('0xa9')]());if(_0x257306[_0xcedb('0x6b')](_0x56628e=>_0x1b6cc6[_0xcedb('0x96')](_0x5022db=>_0x5022db[_0xcedb('0x58')](_0x56628e,!0x0)))){const _0x4ca04b=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x80'),_0xcd199d,_0xcedb('0x24'));return this['forceDefaultExecution'](()=>_0x4ca04b(_0x4031d2,null,_0x4ba97d)),null;}}else{const _0x1a60fe=_0x40662f['getFirstRange']();_0x257306[_0xcedb('0x96')](_0x5c3858=>_0x5c3858['containsRange'](_0x1a60fe,!0x0))&&_0x40662f['discard']();if(_0x257306['every'](_0x15d878=>_0x1a60fe[_0xcedb('0x58')](_0x15d878,!0x0))){const _0x46dab7=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x80'),_0xcd199d,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x46dab7(_0x257306,null,_0x4ba97d)),null;}}const _0xf782b6=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x80'),_0xcd199d,_0xcedb('0x11e'));let _0x1b84f3=null;for(const _0x508578 of this[_0xcedb('0x2')]())if(_0x508578['author']['id']==_0x3b430b['id']&&_0x508578[_0xcedb('0x115')]&&'deletion'==_0x508578['type']&&_0x508578['subType']==_0xcd199d&&(_0xf782b6(_0x508578['getRanges'](),_0x257306)||_0xf782b6(_0x257306,_0x508578[_0xcedb('0xd5')]()))){if(_0x1b84f3){if(_0x508578[_0xcedb('0x69')]&&_0x508578['commentThread'][_0xcedb('0xfb')])continue;for(const _0x5e17e0 of _0x508578['getRanges']())_0x1b84f3[_0xcedb('0x76')](_0x5e17e0)||_0x1b84f3[_0xcedb('0x134')](_0x5e17e0);_0x508578['removeMarkers']();}else{_0x1b84f3=_0x508578;for(const _0x2a5a79 of _0x257306)_0x508578[_0xcedb('0x76')](_0x2a5a79)||_0x508578[_0xcedb('0x134')](_0x2a5a79);}}if(_0x1b84f3)return _0x1b84f3;_0x19e491[_0xcedb('0xc2')]();for(const _0x5f4eb3 of _0x257306)for(const {suggestion:_0xf2b7c6,meta:_0x5dae0b}of this[_0xcedb('0x109')](_0x5f4eb3,_0xcedb('0x80')))_0x5dae0b[_0xcedb('0xd')]&&_0x19e491[_0xcedb('0xe2')](_0xf2b7c6);for(const _0x403bc5 of _0x19e491){const _0x3a89cd=_0x403bc5[_0xcedb('0xd5')]();if(!_0x4ba97d||!_0x4ba97d[_0xcedb('0x26')]){if(_0x257306['every'](_0x8d141f=>_0x3a89cd[_0xcedb('0x96')](_0x30a6a2=>_0x30a6a2['containsRange'](_0x8d141f,!0x0))))return _0x403bc5;}(!_0x403bc5[_0xcedb('0x21')]||!_0x403bc5[_0xcedb('0x21')][_0xcedb('0x26')])&&(_0x3a89cd[_0xcedb('0x6b')](_0x2fc59c=>_0x257306['some'](_0x24a930=>_0x24a930[_0xcedb('0x58')](_0x2fc59c,!0x0)))&&_0x403bc5[_0xcedb('0xa9')]());}const _0x2605e2=_0xa49531(),_0x4e361f=_0x3b430b['id'],_0x27c21a=_0xcedb('0xed')+_0xcd199d,_0x5ef47a=this[_0xcedb('0x95')]({'id':_0x2605e2,'type':_0x27c21a,'createdAt':new Date(),'authorId':_0x4e361f,'attributes':_0x4ba97d});for(const _0x12ee29 of _0x257306)_0x12ee29[_0xcedb('0x9d')](),_0x12ee29[_0xcedb('0x44')]||_0xcedb('0x19')==_0x12ee29[_0xcedb('0x65')]['rootName']||this['_addSuggestionMarker'](_0x27c21a,_0x2605e2,_0x4e361f,_0x12ee29,_0x58c80b[_0xcedb('0xd2')]());return _0x5ef47a;}['_setSuggestionRange'](_0x5d454e,_0x2c435e){const _0x42e3a1=_0x5d454e['getFirstMarker']();this[_0xcedb('0x11a')][_0xcedb('0x139')](_0x3441cb=>{_0x3441cb[_0xcedb('0xa5')](_0x42e3a1,{'range':_0x2c435e});});}[_0xcedb('0xe5')](_0x3592c6){const _0x204a58=_0x3592c6['id'],_0x43d5d0=this['editor']['config']['get'](_0xcedb('0x18'));this[_0xcedb('0x90')]['hasCommentThread'](_0x204a58)||this[_0xcedb('0x90')][_0xcedb('0x10d')]({'channelId':_0x43d5d0,'threadId':_0x204a58,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x58cefd=this[_0xcedb('0x90')][_0xcedb('0x12e')](_0x204a58);_0x58cefd['unbind'](_0xcedb('0x11c')),_0x58cefd[_0xcedb('0x11c')]=!0x1,_0x3592c6[_0xcedb('0x69')]=_0x58cefd;}['_checkSuggestionCorrectness'](_0x46bf0b,_0x119056,_0x45a728,_0x53d027){if(_0x46bf0b[_0xcedb('0x10')]!=_0x119056||_0x46bf0b['subType']!=_0x45a728||_0x46bf0b[_0xcedb('0x78')]['id']!=_0x53d027)throw this[_0xcedb('0x124')]['enableReadOnlyMode'](_0xcedb('0x132')),new _0x47ae60(_0xcedb('0x132'),this);}[_0xcedb('0x5b')](_0x2f91b3,_0x57e3be){const _0x54d040=_0x2f91b3[_0xcedb('0x117')]();if(_0x57e3be['isEqual'](_0x54d040))_0x2f91b3[_0xcedb('0x49')]();else{if(_0x54d040[_0xcedb('0x58')](_0x57e3be)){const _0x5d45a0=this[_0xcedb('0x11a')][_0xcedb('0x8b')](_0x57e3be['start']['nodeBefore'],'end');this[_0xcedb('0x81')](_0x2f91b3,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x54d040[_0xcedb('0x1a')],_0x5d45a0));const _0x51e305=_0xa49531(),_0x2515c8=_0x2f91b3[_0xcedb('0x78')]['id'],_0x3cbc86=_0x2f91b3[_0xcedb('0x10')]+':'+_0x2f91b3[_0xcedb('0x4a')];this[_0xcedb('0x95')]({'id':_0x51e305,'type':_0x3cbc86,'createdAt':new Date(),'authorId':_0x2515c8,'data':_0x2f91b3['data'],'attributes':_0x2f91b3[_0xcedb('0x21')]});const _0x42ec1a=this[_0xcedb('0x11a')]['createPositionAt'](_0x57e3be[_0xcedb('0x9e')][_0xcedb('0x2c')],_0xcedb('0xac')),_0x426a50=this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x42ec1a,_0x54d040[_0xcedb('0x9e')]);this[_0xcedb('0x10c')](_0x3cbc86,_0x51e305,_0x2515c8,_0x426a50);}else{if(_0x54d040[_0xcedb('0x6')](_0x57e3be[_0xcedb('0x1a')])){const _0x4cc16d=this[_0xcedb('0x11a')][_0xcedb('0x8b')](_0x57e3be[_0xcedb('0x1a')]['nodeBefore'],_0xcedb('0x9e'));this[_0xcedb('0x81')](_0x2f91b3,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x54d040['start'],_0x4cc16d));}else{const _0x23173a=this[_0xcedb('0x11a')][_0xcedb('0x8b')](_0x57e3be[_0xcedb('0x9e')][_0xcedb('0x2c')],_0xcedb('0xac'));this[_0xcedb('0x81')](_0x2f91b3,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x23173a,_0x54d040[_0xcedb('0x9e')]));}}}}[_0xcedb('0x68')](_0x46f17){for(const {suggestion:_0x4b2ad3,meta:_0x56e8d6}of this[_0xcedb('0x109')](_0x46f17,_0xcedb('0x101'))){if(!_0x56e8d6[_0xcedb('0xd')])continue;const _0xb0d51b=_0x4b2ad3[_0xcedb('0xd5')]();for(const _0x530189 of _0xb0d51b)if(!_0x46f17[_0xcedb('0x99')](_0x530189)[_0xcedb('0xfb')])return!0x0;}return!0x1;}[_0xcedb('0x56')](_0x46a9b1){const _0x2a9429=this[_0xcedb('0x124')]['plugins'][_0xcedb('0xf1')](_0xcedb('0x52'))[_0xcedb('0xd6')](_0x46a9b1);if(!_0x2a9429)throw new _0x47ae60(_0xcedb('0x98'),this);return _0x2a9429;}[_0xcedb('0x1f')](_0x16ef38){const _0x27690f=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52')),_0x5447ae=_0x353f62(_0xcedb('0x116')+_0x16ef38),_0xa1af89=_0x27690f[_0xcedb('0xd6')](_0x5447ae);return _0xa1af89||_0x27690f['addUser']({'id':_0x5447ae,'name':_0x16ef38});}[_0xcedb('0x7f')](_0x37325b,_0x273e76,_0x47d78d,_0xa341e6,_0x1e9c78){const _0xe3b5df=this[_0xcedb('0x56')](_0xa341e6),_0x5e575d=this['_suggestionFactory']['buildSuggestion'](_0x37325b,_0x273e76,_0x47d78d,_0xe3b5df,_0x1e9c78,_0x4e4801=>this[_0xcedb('0x12d')](_0x47d78d,{'attributes':_0x4e4801}));return this['listenTo'](_0x5e575d,_0xcedb('0x24'),()=>{this[_0xcedb('0x12d')](_0x47d78d,{'state':_0xcedb('0x4b')});},{'priority':'high'}),this['listenTo'](_0x5e575d,_0xcedb('0xa9'),()=>{this[_0xcedb('0x12d')](_0x47d78d,{'state':'rejected'});},{'priority':_0xcedb('0x27')}),this[_0xcedb('0xee')]['set'](_0x47d78d,_0x5e575d),this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x5e575d,'notReady'),_0x5e575d;}['_splitMarkerName'](_0x5eb364){const _0x130cf9=_0x5eb364[_0xcedb('0x4e')](':');return{'group':_0x130cf9[0x0],'type':_0x130cf9[0x1],'subType':_0x130cf9[_0xcedb('0xfb')]>=0x5?_0x130cf9[0x2]:null,'id':_0x130cf9[_0xcedb('0xfb')]<0x5?_0x130cf9[0x2]:_0x130cf9[0x3],'authorId':_0x130cf9[_0xcedb('0xfb')]<0x5?_0x130cf9[0x3]:_0x130cf9[0x4],'markerCount':0x6==_0x130cf9[_0xcedb('0xfb')]?_0x130cf9[0x5]:null};}[_0xcedb('0x13')](_0x3549fa,_0x290549,_0x33d331){const _0x48abba=_0x3549fa['getFirstRange'](),_0x1fa1af=_0x48abba[_0xcedb('0x1a')],_0x2cad15=_0x48abba[_0xcedb('0x9e')];this['_setSuggestionRange'](_0x3549fa,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x1fa1af,_0x290549));const _0x14a5c8=_0xa49531(),_0x296e1c=_0x3549fa[_0xcedb('0x78')]['id'],_0x676413=_0x3549fa[_0xcedb('0x10')]+(_0x3549fa['subType']?':'+_0x3549fa['subType']:'');this[_0xcedb('0x95')]({'id':_0x14a5c8,'type':_0x676413,'createdAt':new Date(),'authorId':_0x296e1c,'originalSuggestionId':_0x3549fa['id'],'attributes':_0x3549fa[_0xcedb('0x21')],'data':_0x3549fa['data']}),_0xcedb('0x110')==_0x3549fa['type']&&(_0x33d331=this[_0xcedb('0x11a')][_0xcedb('0x16')](_0x33d331[_0xcedb('0x2c')])),this[_0xcedb('0x10c')](_0x676413,_0x14a5c8,_0x296e1c,this['_model']['createRange'](_0x33d331,_0x2cad15));}['_findSuggestions'](_0x3e82d5,_0x3fa716=null){const _0x46e99d=[],_0x13cabb=this[_0xcedb('0x11a')]['schema'],_0x3723b7=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52'))['me'];for(const _0xa59ac8 of this['getSuggestions']())if(_0xa59ac8[_0xcedb('0x115')]&&(!_0x3fa716||_0xa59ac8[_0xcedb('0x10')]==_0x3fa716))for(const _0x14ec9c of _0xa59ac8[_0xcedb('0xd5')]()){const _0x26e391=_0x3e82d5[_0xcedb('0x1a')][_0xcedb('0xe8')](_0x14ec9c[_0xcedb('0x9e')])||_0x3e82d5[_0xcedb('0x9e')][_0xcedb('0xe8')](_0x14ec9c[_0xcedb('0x1a')]);if(_0x26e391||_0x3e82d5[_0xcedb('0x8')](_0x14ec9c)){const _0x4138d0=_0x3e82d5[_0xcedb('0x58')](_0x14ec9c)&&Bt(_0x13cabb,_0x14ec9c[_0xcedb('0x1a')],_0x3e82d5),_0x238765=_0x14ec9c[_0xcedb('0x58')](_0x3e82d5)&&Bt(_0x13cabb,_0x3e82d5[_0xcedb('0x1a')],_0x14ec9c);_0x46e99d[_0xcedb('0xa')]({'suggestion':_0xa59ac8,'meta':{'isOwn':_0x3723b7==_0xa59ac8['author'],'isNextTo':_0x26e391,'isInsideObject':_0x4138d0,'containsRangeInObject':_0x238765}});break;}}return _0x46e99d;}[_0xcedb('0x10c')](_0x50dbda,_0xff1662,_0x1f5c2b,_0x267112,_0xaba20b){this[_0xcedb('0x11a')][_0xcedb('0x139')](_0x3266ba=>{let _0x4b0a60='suggestion:'+_0x50dbda+':'+_0xff1662+':'+_0x1f5c2b;_0xaba20b&&(_0x4b0a60=_0x4b0a60+':'+_0xaba20b),_0x3266ba[_0xcedb('0x12')](_0x4b0a60,{'range':_0x267112,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xcedb('0x77')](_0x1669e4){const _0x2f9269=_0x1669e4[_0xcedb('0x8e')],_0x178a30=_0x1669e4[_0xcedb('0x4f')];_0x1669e4['previous']=null,null!=_0x2f9269&&(_0x2f9269[_0xcedb('0x4f')]=null),_0x1669e4[_0xcedb('0x4f')]=null,null!=_0x178a30&&(_0x178a30[_0xcedb('0x8e')]=null),_0xcedb('0x46')==this[_0xcedb('0xc4')][_0xcedb('0xf1')](_0x1669e4)&&(this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x1669e4,_0xcedb('0xfe')),this['fire'](_0xcedb('0xf'),_0x1669e4,_0x2f9269,_0x178a30));}[_0xcedb('0x95')](_0x152e70){const _0x363570=_0x152e70['id'],_0x255169=this['addSuggestionData'](_0x152e70);if(this['_adapter']&&this['_adapter'][_0xcedb('0xf9')]){const _0x4094a5=this['editor']['plugins'][_0xcedb('0xf1')](_0xcedb('0x7c')),_0x445c00=_0x255169['hasComments'],_0x83f88=_0x255169[_0xcedb('0x4a')]?_0x255169[_0xcedb('0x10')]+':'+_0x255169[_0xcedb('0x4a')]:_0x255169[_0xcedb('0x10')],_0x59e422=this[_0xcedb('0x124')]['locale'],_0x3b0f2f=_0x4094a5['add'](_0x1365f6(_0x59e422,_0xcedb('0x103'))),_0x5bbbec={'id':_0x363570,'type':_0x83f88,'hasComments':_0x445c00,'data':_0x152e70['data']||null,'originalSuggestionId':_0x152e70['originalSuggestionId']||null,'attributes':_0x255169['attributes']};this[_0xcedb('0x137')][_0xcedb('0xf9')](_0x5bbbec)[_0xcedb('0x45')](_0x5bba2b=>{_0x255169[_0xcedb('0xc5')]=!0x0,_0x4094a5[_0xcedb('0x8f')](_0x3b0f2f),_0x5bba2b&&_0x5bba2b[_0xcedb('0xb3')]&&(this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x363570)[_0xcedb('0xb3')]=_0x5bba2b[_0xcedb('0xb3')]);})[_0xcedb('0xb9')](_0x1e7b32=>{throw _0x1900c0('error-saving-suggestion-data-suggestion-discarded'),this[_0xcedb('0x124')][_0xcedb('0xdd')][_0xcedb('0x91')]({'isUndoable':!0x1},()=>{_0x255169[_0xcedb('0xa9')]();}),_0x255169[_0xcedb('0x102')](),this[_0xcedb('0xee')][_0xcedb('0x1e')](_0x255169['id']),this[_0xcedb('0xc4')][_0xcedb('0x1e')](_0x255169),_0x1e7b32;});}return _0x255169;}[_0xcedb('0x12d')](_0x591baa,_0x1bdd8e){const _0x2640c7=this[_0xcedb('0x124')]['plugins'][_0xcedb('0xf1')](_0xcedb('0x7c')),_0x3c15ee=this[_0xcedb('0xaa')](_0x591baa);if(this[_0xcedb('0x137')]&&this[_0xcedb('0x137')][_0xcedb('0x17')]){if(_0x3c15ee['_saved']){const _0x536907=_0x2640c7[_0xcedb('0xe2')](_0x1365f6(this[_0xcedb('0x124')][_0xcedb('0xf3')],_0xcedb('0x103')));this[_0xcedb('0x137')][_0xcedb('0x17')](_0x591baa,_0x1bdd8e)[_0xcedb('0x45')](()=>{_0x2640c7[_0xcedb('0x8f')](_0x536907);});}else _0x3c15ee['on'](_0xcedb('0xae'),()=>{this[_0xcedb('0x12d')](_0x591baa,_0x1bdd8e);});}}['_getSuggestionData'](_0x2cb6bc){if(!this['_adapter']||!this[_0xcedb('0x137')]['getSuggestion'])throw new _0x47ae60(_0xcedb('0x9f'),this);return this['_adapter']['getSuggestion'](_0x2cb6bc);}[_0xcedb('0xfc')](_0x349ffa){const {id:_0x5b684b,type:_0x517b43,subType:_0x5d1d07,authorId:_0x4a5ba3}=this[_0xcedb('0x2b')](_0x349ffa),_0x2e1718=this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x5b684b)||this[_0xcedb('0x7f')](_0x517b43,_0x5d1d07,_0x5b684b,_0x4a5ba3,{});switch(this[_0xcedb('0x5c')](_0x2e1718,_0x517b43,_0x5d1d07,_0x4a5ba3),this[_0xcedb('0xc4')][_0xcedb('0xf1')](_0x2e1718)){case _0xcedb('0x85'):this[_0xcedb('0xbe')](_0x5b684b)[_0xcedb('0x45')](_0x3029ec=>{let _0x380faf=Promise[_0xcedb('0xc0')]();_0x3029ec[_0xcedb('0x120')]&&(_0x380faf=this[_0xcedb('0x90')]['fetchCommentThread']({'channelId':this['editor'][_0xcedb('0xc')]['get']('collaboration.channelId'),'threadId':_0x5b684b})),_0x380faf['then'](()=>{this[_0xcedb('0xbf')](_0x3029ec)['_saved']=!0x0;});}),this['_suggestionState'][_0xcedb('0x11b')](_0x2e1718,'markerReady');break;case _0xcedb('0xfe'):this[_0xcedb('0x12d')](_0x5b684b,{'state':'open'});case'dataReady':this['_suggestionState'][_0xcedb('0x11b')](_0x2e1718,'ready'),this[_0xcedb('0x64')](_0xcedb('0x5a'),_0x2e1718);break;case _0xcedb('0x46'):this[_0xcedb('0x64')]('suggestionChanged',_0x2e1718);}return _0x2e1718[_0xcedb('0xd7')](_0x349ffa),_0x2e1718;}[_0xcedb('0x4d')](_0x19b71e){const _0x1edfe0=Array[_0xcedb('0x8a')](_0x19b71e)[_0xcedb('0x111')](_0x42eb84=>!_0x42eb84['isMultiRange']),_0x4fc240=this[_0xcedb('0x2')]({'skipNotAttached':!0x0})[_0xcedb('0x111')](_0x583850=>!_0x583850[_0xcedb('0x136')]),_0x4fd4f4=_0x4fc240[_0xcedb('0x111')](_0x5e1431=>!_0x19b71e[_0xcedb('0x138')](_0x5e1431)),_0x5b9bc6=new Map(_0x4fc240['map'](_0xb4c3c8=>[_0xb4c3c8,this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xb4c3c8['type'],_0xb4c3c8[_0xcedb('0x4a')],_0xcedb('0x1c'))])),_0x2f1f5d=new Map(_0x4fc240[_0xcedb('0xdb')](_0x5aa5da=>[_0x5aa5da,_0x5aa5da[_0xcedb('0x117')]()])),_0x3692b9=new Set(),_0x59d19f=new Set();for(let _0x250c19=0x0;_0x250c19<_0x1edfe0['length'];_0x250c19++)_0x368e4b(_0x1edfe0[_0x250c19],_0x1edfe0,_0x250c19+0x1);for(let _0x239a7e=0x0;_0x239a7e<_0x1edfe0[_0xcedb('0xfb')];_0x239a7e++)_0x368e4b(_0x1edfe0[_0x239a7e],_0x4fd4f4,0x0);for(let _0x2504f1=0x0;_0x2504f1<_0x1edfe0[_0xcedb('0xfb')];_0x2504f1++){const _0x59fd0a=_0x1edfe0[_0x2504f1];!_0x59d19f[_0xcedb('0x138')](_0x59fd0a)&&_0x59fd0a['previous']&&(_0x59fd0a[_0xcedb('0x8e')]['next']===_0x59fd0a&&(_0x59fd0a[_0xcedb('0x8e')]['next']=null),_0x59fd0a[_0xcedb('0x8e')]=null),!_0x3692b9[_0xcedb('0x138')](_0x59fd0a)&&_0x59fd0a[_0xcedb('0x4f')]&&(_0x59fd0a[_0xcedb('0x4f')][_0xcedb('0x8e')]===_0x59fd0a&&(_0x59fd0a[_0xcedb('0x4f')][_0xcedb('0x8e')]=null),_0x59fd0a[_0xcedb('0x4f')]=null);}function _0x368e4b(_0xb3f268,_0x3dff0a,_0x332868){for(let _0x5d6159=_0x332868;_0x5d6159<_0x3dff0a[_0xcedb('0xfb')];_0x5d6159++){const _0x23cb24=_0x5d6be5(_0xb3f268,_0x3dff0a[_0x5d6159]);_0x23cb24&&(_0x23cb24[0x0][_0xcedb('0x4f')]=_0x23cb24[0x1],_0x23cb24[0x1][_0xcedb('0x8e')]=_0x23cb24[0x0],_0x3692b9[_0xcedb('0xe2')](_0x23cb24[0x0]),_0x59d19f[_0xcedb('0xe2')](_0x23cb24[0x1]));}}function _0x5d6be5(_0x2cdfcd,_0x46d11a){if(_0x2cdfcd[_0xcedb('0xff')]['id']!==_0x46d11a[_0xcedb('0xff')]['id'])return null;const _0x18271f=_0x5b9bc6['get'](_0x2cdfcd)(_0x2cdfcd,_0x46d11a,_0x2f1f5d[_0xcedb('0xf1')](_0x2cdfcd),_0x2f1f5d['get'](_0x46d11a));if(!_0x18271f)return null;return _0x5b9bc6[_0xcedb('0xf1')](_0x46d11a)(_0x2cdfcd,_0x46d11a,_0x2f1f5d[_0xcedb('0xf1')](_0x2cdfcd),_0x2f1f5d[_0xcedb('0xf1')](_0x46d11a))?_0x18271f[0x1]['commentThread']&&_0x18271f[0x1][_0xcedb('0x69')][_0xcedb('0xfb')]?null:_0x18271f:null;}}[_0xcedb('0xb6')](_0x7c853b){const _0xbcfbe6=Array['from'](_0x7c853b),_0x26da81=this[_0xcedb('0x2')]({'skipNotAttached':!0x0}),_0x5b3993=_0x26da81['filter'](_0x1d81e2=>!_0x7c853b[_0xcedb('0x138')](_0x1d81e2)),_0x542361=new Map(_0xbcfbe6[_0xcedb('0xdb')](_0x4a13de=>[_0x4a13de,this[_0xcedb('0x61')][_0xcedb('0xdc')](_0x4a13de[_0xcedb('0x10')],_0x4a13de[_0xcedb('0x4a')],_0xcedb('0x11e'))])),_0x4c17a1=new Map(_0x26da81[_0xcedb('0xdb')](_0x5bf81f=>[_0x5bf81f,_0x5bf81f[_0xcedb('0xd5')]()]));for(let _0x1efe9=0x0;_0x1efe9<_0xbcfbe6[_0xcedb('0xfb')];_0x1efe9++){if(_0x4764dd(this,_0xbcfbe6[_0x1efe9],_0xbcfbe6,_0x1efe9+0x1))return!0x0;}for(let _0x138fd0=0x0;_0x138fd0<_0xbcfbe6[_0xcedb('0xfb')];_0x138fd0++){if(_0x4764dd(this,_0xbcfbe6[_0x138fd0],_0x5b3993,0x0))return!0x0;}return!0x1;function _0x4764dd(_0x4eb322,_0x413429,_0x124c65,_0x3b7992){for(let _0x4cb70c=_0x3b7992;_0x4cb70c<_0x124c65[_0xcedb('0xfb')];_0x4cb70c++){const _0x56c8df=_0x124c65[_0x4cb70c];if(_0x56c8df['type']!==_0x413429[_0xcedb('0x10')]||_0x56c8df[_0xcedb('0xff')]['id']!==_0x413429['author']['id']||_0x56c8df[_0xcedb('0x4a')]!==_0x413429[_0xcedb('0x4a')])continue;const _0x12d284=_0x542361[_0xcedb('0xf1')](_0x413429),_0x58d20d=_0x4c17a1[_0xcedb('0xf1')](_0x413429),_0x548a05=_0x4c17a1[_0xcedb('0xf1')](_0x56c8df),_0x2f48fb=_0x413429['commentThread']&&_0x413429[_0xcedb('0x69')][_0xcedb('0xfb')],_0x4ff184=_0x56c8df['commentThread']&&_0x56c8df[_0xcedb('0x69')][_0xcedb('0xfb')];if(!_0x2f48fb&&_0x12d284(_0x548a05,_0x58d20d))return _0x4eb322[_0xcedb('0xea')](_0x56c8df,_0x413429),_0x4c17a1[_0xcedb('0x1e')](_0x413429),!0x0;if(!_0x4ff184&&_0x12d284(_0x58d20d,_0x548a05))return _0x4eb322[_0xcedb('0xea')](_0x413429,_0x56c8df),_0x4c17a1[_0xcedb('0x1e')](_0x56c8df),!0x0;}return!0x1;}}[_0xcedb('0xea')](_0x59d4a9,_0x233158){if(_0x59d4a9[_0xcedb('0x136')])for(const _0x3b2ba1 of _0x233158['getRanges']())_0x59d4a9['addRange'](_0x3b2ba1);else{const _0x833443=_0x233158[_0xcedb('0x117')]()['end'];this[_0xcedb('0x81')](_0x59d4a9,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x59d4a9[_0xcedb('0x117')]()[_0xcedb('0x1a')],_0x833443));}_0x233158[_0xcedb('0x49')]();}}class Dt{constructor(_0x503405){this['_editor']=_0x503405,this[_0xcedb('0x11a')]=_0x503405['model'],this[_0xcedb('0xb4')]=new Map(),this[_0xcedb('0xfa')]=new Map(),this[_0xcedb('0xb0')]();}[_0xcedb('0x41')](_0x20745f,_0x3520a6,_0xbc3114,_0x167c0f,_0x4ee203,_0x8baf68){return new _0x58c80b(this[_0xcedb('0x11a')],{'type':_0x20745f,'subType':_0x3520a6,'id':_0xbc3114,'author':_0x167c0f,'creator':_0x167c0f,'attributes':_0x4ee203,'onAttributesChange':_0x8baf68,'onAccept':(..._0x5884de)=>this[_0xcedb('0xdc')](_0x20745f,_0x3520a6,_0xcedb('0x24'))(..._0x5884de),'onDiscard':(..._0x589286)=>this[_0xcedb('0xdc')](_0x20745f,_0x3520a6,_0xcedb('0xa9'))(..._0x589286)});}[_0xcedb('0xcf')](_0x45a261,_0x9b9fb1,_0x5cbea3,_0x77cdb0){const _0x258f5c=_0x45a261+':'+_0x9b9fb1+':'+_0x5cbea3;this[_0xcedb('0xb4')][_0xcedb('0x11b')](_0x258f5c,_0x77cdb0);}[_0xcedb('0xdc')](_0x374f4a,_0x5666ff,_0x5aea03){const _0x1c3adf=_0x374f4a+':'+_0x5666ff+':'+_0x5aea03;return this[_0xcedb('0xb4')]['get'](_0x1c3adf)||this['_defaultCallbacks'][_0xcedb('0xf1')](_0x374f4a+':'+_0x5aea03);}[_0xcedb('0xb0')](){const _0x9ba042=()=>{},_0x3e3180=_0x5a3e54=>{_0x5a3e54[_0xcedb('0x94')]((_0x2dae6c,_0x51c2ef)=>_0x2dae6c['start'][_0xcedb('0x10f')](_0x51c2ef[_0xcedb('0x1a')])?0x1:-0x1),this[_0xcedb('0x11a')]['change'](_0x427952=>{for(const _0x397e9c of _0x5a3e54){let _0x5a0041;_0x5a0041=_0x397e9c[_0xcedb('0x9e')][_0xcedb('0x2a')]&&_0x397e9c[_0xcedb('0x9e')][_0xcedb('0x2c')]==_0x397e9c['start']['nodeAfter']?_0x427952[_0xcedb('0x11')](_0x397e9c[_0xcedb('0x1a')][_0xcedb('0x3f')],'on'):_0x427952[_0xcedb('0x11')](_0x397e9c),this[_0xcedb('0x11a')][_0xcedb('0xe0')](_0x5a0041,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x57ae2d=(_0x2b2092,_0x2737cb)=>{this[_0xcedb('0x11a')]['change'](_0x45d8ee=>{const {commandName:_0x4a9a31,commandParams:_0x429611=[]}=_0x2737cb,_0x21ac99=_0x2b2092[_0xcedb('0xdb')](_0x48a35f=>(_t(_0x48a35f)&&(_0x48a35f=this[_0xcedb('0x11a')]['createRange'](_0x48a35f[_0xcedb('0x9e')])),_0x48a35f))[_0xcedb('0x111')](_0x4f026d=>_0xcedb('0x19')!==_0x4f026d['root'][_0xcedb('0x119')]);if(_0x21ac99[_0xcedb('0xfb')]<0x1)return;const _0x5c1d6e=Array[_0xcedb('0x8a')](this[_0xcedb('0x11a')][_0xcedb('0xeb')][_0xcedb('0xb8')][_0xcedb('0xd5')]())['map'](_0x1d7aa4=>_0x5261dd[_0xcedb('0xec')](_0x1d7aa4));_0x45d8ee[_0xcedb('0xa7')](_0x21ac99);for(const _0x17645f of this[_0xcedb('0x3c')][_0xcedb('0x1b')][_0xcedb('0x1b')]())_0x17645f[_0xcedb('0x9a')]();_0x429611[_0xcedb('0xa')]({'forceDefaultExecution':!0x0}),this[_0xcedb('0x3c')][_0xcedb('0x106')](_0x4a9a31,..._0x429611);const _0x63fec4=_0x5c1d6e[_0xcedb('0x111')](_0x5ad5b3=>_0xcedb('0x19')!=_0x5ad5b3[_0xcedb('0x65')][_0xcedb('0x119')]);_0x63fec4['length']>0x0&&_0x45d8ee[_0xcedb('0xa7')](_0x63fec4);for(const _0x128fcd of _0x5c1d6e)_0x128fcd[_0xcedb('0x9d')]();});},_0x428e54=(_0x222eb0,_0x105190)=>0x1==_0x222eb0[_0xcedb('0xfb')]&&0x1==_0x105190[_0xcedb('0xfb')]&&_0x222eb0[0x0]['end']['isEqual'](_0x105190[0x0]['start']),_0x444033=(_0x1e9ed1,_0x3f0a3d,_0x3d0d7c,_0x557c7b)=>xt(_0x1e9ed1,_0x3f0a3d,_0x3d0d7c,_0x557c7b,this[_0xcedb('0x11a')])?[_0x1e9ed1,_0x3f0a3d]:xt(_0x3f0a3d,_0x1e9ed1,_0x557c7b,_0x3d0d7c,this[_0xcedb('0x11a')])?[_0x3f0a3d,_0x1e9ed1]:null;this[_0xcedb('0xfa')]['set'](_0xcedb('0x8c'),_0x9ba042),this[_0xcedb('0xfa')][_0xcedb('0x11b')](_0xcedb('0x48'),_0x3e3180),this[_0xcedb('0xfa')]['set']('insertion:join',_0x428e54),this[_0xcedb('0xfa')][_0xcedb('0x11b')](_0xcedb('0x2f'),_0x444033),this['_defaultCallbacks']['set']('deletion:accept',_0x3e3180),this[_0xcedb('0xfa')][_0xcedb('0x11b')](_0xcedb('0xa0'),_0x9ba042),this[_0xcedb('0xfa')]['set'](_0xcedb('0x2d'),_0x428e54),this['_defaultCallbacks'][_0xcedb('0x11b')](_0xcedb('0x129'),_0x444033),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatInline:accept',_0x57ae2d),this['_defaultCallbacks'][_0xcedb('0x11b')](_0xcedb('0xd3'),_0x9ba042),this['_defaultCallbacks'][_0xcedb('0x11b')](_0xcedb('0xc8'),_0x428e54),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatInline:chain',_0x9ba042),this[_0xcedb('0xfa')]['set']('formatBlock:accept',_0x57ae2d),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatBlock:discard',_0x9ba042),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatBlock:join',_0x428e54),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatBlock:chain',_0x9ba042);}}function Bt(_0xb04695,_0x53c22b,_0x6e3bd6){for(const _0x40fdb3 of _0x53c22b[_0xcedb('0x2c')][_0xcedb('0x15')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x40fdb3['root']==_0x40fdb3)return!0x1;if(!_0x6e3bd6[_0xcedb('0x83')](_0x40fdb3))return!0x1;if(_0xb04695[_0xcedb('0x9c')](_0x40fdb3)||_0xb04695[_0xcedb('0xab')](_0x40fdb3))return!0x0;}return!0x1;}function _t(_0x432da0){return _0x432da0[_0xcedb('0x9e')][_0xcedb('0x2c')]==_0x432da0['start'][_0xcedb('0x3f')]&&_0x432da0[_0xcedb('0x9e')][_0xcedb('0x86')];}function Mt(_0x508279,_0x50985d,_0x34dfb5,_0x2e7555){const _0x2ee84e=_0x3a7325=>!_0x3a7325[_0xcedb('0x47')]['is']('$textProxy')&&!_0x2e7555[_0xcedb('0x9c')](_0x3a7325[_0xcedb('0x47')]),_0x46e7bb=_0x508279[_0xcedb('0x1a')]['getLastMatchingPosition'](_0x2ee84e),_0x175cdd=_0x508279[_0xcedb('0x9e')][_0xcedb('0x107')](_0x2ee84e,{'direction':_0xcedb('0x10e')});return(!_0x508279[_0xcedb('0x1a')][_0xcedb('0xe8')](_0x46e7bb)||!_0x508279[_0xcedb('0x9e')][_0xcedb('0xe8')](_0x175cdd))&&(_0x46e7bb[_0xcedb('0x10f')](_0x175cdd)?_0x34dfb5[_0xcedb('0xa5')](_0x50985d,{'range':_0x34dfb5['createRange'](_0x46e7bb,_0x175cdd)}):_0x34dfb5[_0xcedb('0xc7')](_0x50985d),!0x0);}function $t(_0xe17898){return _0x353f62(_0xe17898);}function Nt(_0x11cb3c){const _0x52fd81=_0x11cb3c[_0xcedb('0x1a')][_0xcedb('0x3f')];return _0x52fd81&&_0x52fd81['is']('element');}function Rt(_0x18ee99,_0x1a1798){const _0x38684c=_0x1a1798[_0xcedb('0x6a')][_0xcedb('0x9c')](_0x18ee99)||_0x1a1798[_0xcedb('0x6a')][_0xcedb('0xc3')](_0x18ee99);return _0x1a1798[_0xcedb('0xf0')](_0x1a1798[_0xcedb('0x8b')](_0x18ee99,_0xcedb('0x104')),_0x38684c?_0x1a1798[_0xcedb('0x59')](_0x18ee99):_0x1a1798[_0xcedb('0x8b')](_0x18ee99,'end'));}function xt(_0x40fb74,_0x102da7,_0x6b2537,_0xbc7b65,_0x47d75e){if(_0x6b2537[_0xcedb('0x9e')][_0xcedb('0xe8')](_0xbc7b65['start']))return!0x0;if(_0x40fb74[_0xcedb('0x10')]!=_0x102da7[_0xcedb('0x10')])return!0x1;if(!_0x6b2537[_0xcedb('0x9e')][_0xcedb('0xd9')](_0xbc7b65[_0xcedb('0x1a')]))return!0x1;const _0x393a94=_0x47d75e[_0xcedb('0xf0')](_0x6b2537[_0xcedb('0x9e')],_0xbc7b65[_0xcedb('0x1a')])[_0xcedb('0x50')]();for(const _0x1175b3 of _0x393a94)if([_0xcedb('0x60'),_0xcedb('0x33')][_0xcedb('0x1d')](_0x1175b3['type'])&&_0x47d75e['schema'][_0xcedb('0xab')](_0x1175b3['item']))return!0x1;return!0x0;}
|