@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231008.0 → 0.0.0-nightly-20231009.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-20231008.0",
3
+ "version": "0.0.0-nightly-20231009.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-20231008.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20231008.0",
42
+ "ckeditor5": "0.0.0-nightly-20231009.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20231009.0",
44
44
  "lodash-es": "4.17.21"
45
45
  },
46
46
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c28=['addMarker','elementToElement','addClass','parent','markMultiRangeBlockFormat','default','suggestion:','markBlockFormat','enableCommand','_setSuggestionData','end','track-changes-suggestion-not-found','pluginName','trackChanges.mergeNestedSuggestions','accept','_getSuggestionData','catch','after','discard','addUser','hasCommentThread','getIntersection','size','toViewElement','init','start','_suggestionFactory','rejected','consumable','formatBlock:discard','subType','PENDING_ACTION_SUGGESTION','_findSuggestions','isBefore','refresh','getShiftedBy','from','trackChanges','isMultiRange','discardSuggestion','markMultiRangeInsertion','showSuggestionHighlights','_rangeIsInLocalUserInsertion','editing','_editor','setSelection','remove','getWalker','howMany','getLastMatchingPosition','insertion:join','chain','deleteContent','getRange','_setSuggestionRange','every','_addThreadToSuggestion','_breakSuggestionMarker','createElement','_splitMarkerName','addRange','hasSuggestion','collaboration.channelId','discardAllSuggestions','isAfter','getDifference','marker-count','highest','addMarker:suggestion:formatBlock','ck-suggestion-marker','_model','removed','_customCallbacks','isRemovable','getCustomProperty','widget','for','_defaultCallbacks','_saved','isLimit','listenTo','setTo','authoredAt','deletion','rootName','formatInline:accept','writer','conversion','error-saving-suggestion-data-suggestion-discarded','markers','markerToData','add','return','_joinSuggestions','editingDowncast','_handleNewSuggestionMarker','options','containsItem','_getAuthorFromId','bindElementToMarker','ck-suggestion-marker--active','getAttribute','unbind','track-changes-suggestion-data-mismatch','markInlineFormat','isExternal','length','insertion:discard','getNearestSelectionRange','notReady','oldRange','upcast','unbindElementFromMarkerName','Users','isLocal','removeClass','_enabledCommands','markMultiRangeDeletion','clone','updateSuggestion','fromCharCode','multipleBlocks','trackChangesCommand','ck-suggestion-marker-','commentThread','getAncestors','isIntersectingWithRange','isDocumentOperation','document','_adapter','previous','push','enableReadOnlyMode','change:data','markerName','_refreshSuggestionsChain','containerElement','removeMarker','isInsideObject','isInContent','some','name','acceptAllSuggestions','trackChanges.trackFormatChanges','removeMarkers','buildSuggestion','getFirstRange','isNextTo','insertion:chain','ready','isCollapsed','execute','isAtStart','addSuggestion','markInsertion','commandName','elementStart','requires','suggestion','insertion:','acceptSelectedSuggestions','authorName','always','containsRange','join','clear','applyOperation','_isForcedDefaultExecutionBlock','getCommentThread','formatInline:join','mapper','isSelectable','createPositionAt','change','data','_suggestions','define','reconvertMarker','formatInline:','dataToMarker','detach','getItems','assign','filter','deletion:accept','containsRangeInObject','$marker','multi','never','_registerDefaultCallbacks','formatBlock:chain','_joinWithAdjacentSuggestions','getAllAdjacentSuggestions','getRanges','model','getSuggestionCallback','_createSuggestion','fire','isArray','schema','includes','selection','updateMarker','$graveyard','_mergeNestedSuggestions','accepted','then','containsPosition','differ','author','suggestionChanged','documentSelection','_suggestionState','consume','moveTargetPosition','newRange','removeMarker:suggestion:formatBlock','isAtEnd','next','insert','formatBlock','data-suggestion','backward','config','deletion:','getMultiRangeId','getChangedMarkers','position','stopListening','locale','createPositionAfter','range','markerToHighlight','hasComments','map','markerReady','createdAt','resolve','insertion','getFirstMarker','_updateSuggestionData','formatInline:discard','values','track-changes-adapter-missing-getsuggestion','TrackChangesEditing','isEqual','_trackFormatChanges','getSuggestion','substr','formatBlock:','_addSuggestionMarker','acceptSuggestion','track-changes-adapter-already-set','adapter','enqueueChange','PendingActions','track-changes-command-not-found','addHighlight','value','change:_saved','has','_removeSuggestion','open','formatGroupId','item','addMarkerName','set','creator','stop','high','getChanges','CommentsRepository','element','getUser','sort','_isDataLoaded','commands','low','forceDefaultExecution','markDeletion','formatBlock:accept','dataDowncast','isOwn','_commentsRepository','nodeAfter','split','suggestionLoaded','activeMarkers','_cutOutSuggestionMarker','createRange','registerPostFixer','group','skipNestingCheck','attributes','getSuggestions','type','addComment','move','_checkSuggestionCorrectness','ck-suggestion-marker-formatBlock','_getExternalAuthor','lowest','createRangeIn','splice','isObject','root','formatInline','insertion:accept','nodeBefore','registerCustomCallback','isBlock','plugins','get','createSelection','@external','editor','addSuggestionData','discardSelectedSuggestions'];(function(_0x318098,_0x1c2855){const _0x2a8df8=function(_0x4edf0a){while(--_0x4edf0a){_0x318098['push'](_0x318098['shift']());}};_0x2a8df8(++_0x1c2855);}(_0x1c28,0x134));const _0x2a8d=function(_0x318098,_0x1c2855){_0x318098=_0x318098-0x0;let _0x2a8df8=_0x1c28[_0x318098];return _0x2a8df8;};import{Plugin as _0x24c9ab,PendingActions as _0x22c7b0}from'ckeditor5/src/core';import{LiveRange as _0x26055e}from'ckeditor5/src/engine';import{CKEditorError as _0x2dc620,uid as _0x5b25c0,priorities as _0x48ac32,logWarning as _0xb39196}from'ckeditor5/src/utils';import{toWidget as _0x182b72}from'ckeditor5/src/widget';import{Users as _0xfab982,hashObject as _0x3e1291}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f2369 from'./commands/trackchangescommand';import _0x1cb86a from'./commands/acceptsuggestioncommand';import _0x886f73 from'./commands/discardsuggestioncommand';import _0x484cff from'./commands/executeonallsuggestionscommand';import _0x3eb395 from'./commands/executeonselectedsuggestionscommand';import _0xc5d2f7 from'./suggestion';import _0x4d279b from'./suggestiondescriptionfactory';import _0xe50163 from'./integrations/aiassistant';import _0x311395 from'./integrations/alignment';import _0x53f321 from'./integrations/basicstyles';import _0x5003ff from'./integrations/blockquote';import _0x4037b8 from'./integrations/ckbox';import _0x230d1b from'./integrations/codeblock';import _0x56a4b4 from'./integrations/comments';import _0x3d4e9a from'./integrations/deletecommand';import _0x1c3282 from'./integrations/documentlist';import _0x580fba from'./integrations/entercommand';import _0x3aae10 from'./integrations/findandreplace';import _0x33eb7b from'./integrations/font';import _0x5198cb from'./integrations/formatpainter';import _0x5a3feb from'./integrations/heading';import _0xdc0968 from'./integrations/highlight';import _0x16cd12 from'./integrations/horizontalline';import _0x19338c from'./integrations/htmlembed';import _0x48087f from'./integrations/image';import _0x28886b from'./integrations/imagereplace';import _0x1309a6 from'./integrations/importword';import _0x10cba5 from'./integrations/indent';import _0x38e03d from'./integrations/inputcommand';import _0x57ba67 from'./integrations/link';import _0x5c6bc3 from'./integrations/list';import _0x519b0e from'./integrations/listproperties';import _0x5905a7 from'./integrations/mediaembed';import _0x585ca2 from'./integrations/mention';import _0x5519be from'./integrations/pagebreak';import _0x48ef68 from'./integrations/paragraph';import _0x4e6fdb from'./integrations/removeformat';import _0x485b64 from'./integrations/restrictededitingmode';import _0x13ffa5 from'./integrations/shiftentercommand';import _0x4608fa from'./integrations/standardeditingmode';import _0xb97a3e from'./integrations/style';import _0x5d8093 from'./integrations/table';import _0x152b90 from'./integrations/tablemergesplit';import _0x3afd65 from'./integrations/tableheadings';import _0x485542 from'./integrations/tableclipboard';import _0x30f38d from'./integrations/tablecolumnresize';import _0x24717c from'./integrations/template';import _0xe5a41 from'./integrations/tableofcontents';import _0x21d3fd from'./integrations/title';import _0x792de from'./integrations/undo';import{getTranslation as _0x4c2a35}from'./utils/common-translations';import _0x1b424f from'./integrations/tablecaption';import _0x27296d from'./integrations/documentlistproperties';import _0x171a90 from'./integrations/tableproperties';import{isEqual as _0x40833b}from'lodash-es';export default class p extends _0x24c9ab{static get[_0x2a8d('0xa7')](){return['CommentsRepository',_0xfab982,_0x22c7b0,_0xe50163,_0x311395,_0x53f321,_0x5003ff,_0x4037b8,_0x230d1b,_0x56a4b4,_0x3d4e9a,_0x1c3282,_0x27296d,_0x580fba,_0x3aae10,_0x33eb7b,_0x5198cb,_0x5a3feb,_0xdc0968,_0x16cd12,_0x19338c,_0x48087f,_0x28886b,_0x1309a6,_0x10cba5,_0x38e03d,_0x57ba67,_0x5c6bc3,_0x519b0e,_0x5905a7,_0x585ca2,_0x5519be,_0x48ef68,_0x4e6fdb,_0x485b64,_0x13ffa5,_0x4608fa,_0xb97a3e,_0x5d8093,_0x152b90,_0x3afd65,_0x1b424f,_0x485542,_0x30f38d,_0xe5a41,_0x171a90,_0x24717c,_0x21d3fd,_0x792de];}static get[_0x2a8d('0x16')](){return _0x2a8d('0xfe');}constructor(_0xe2deef){function _0x3b33ef(_0x1fe6af){return _0x1fe6af[_0x2a8d('0xf4')](_0x11a60b=>String[_0x2a8d('0x82')](_0x11a60b))[_0x2a8d('0xae')]('');}super(_0xe2deef),this[_0x2a8d('0x114')](_0x2a8d('0x129'),[]),this['on']('change:activeMarkers',(_0x2284fa,_0x5601ac,_0x51624b,_0x448f03)=>{this[_0x2a8d('0x50')][_0x2a8d('0xb7')](()=>{for(const _0x27c615 of[..._0x448f03,..._0x51624b])this[_0x2a8d('0x50')][_0x2a8d('0x63')][_0x2a8d('0x10e')](_0x27c615)&&_0xe2deef[_0x2a8d('0x35')][_0x2a8d('0xbb')](_0x27c615);});}),this['_descriptionFactory']=new _0x4d279b(this[_0x2a8d('0x7')][_0x2a8d('0xcc')]['schema'],this[_0x2a8d('0x7')][_0x2a8d('0xef')]),this[_0x2a8d('0x8b')]=null,this[_0x2a8d('0x24')]=new Bt(this['editor']),this[_0x2a8d('0xb9')]=new Map(),this['_commentsRepository']=_0xe2deef[_0x2a8d('0x3')]['get'](_0x2a8d('0x119')),this['_enabledCommands']=new Set(),this[_0x2a8d('0x50')]=this[_0x2a8d('0x7')]['model'],this[_0x2a8d('0xde')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xe2deef[_0x2a8d('0xe9')]['define'](_0x2a8d('0x99'),_0x2a8d('0xf')),this[_0x2a8d('0x100')]=_0xe2deef[_0x2a8d('0xe9')][_0x2a8d('0x4')]('trackChanges.trackFormatChanges'),_0xe2deef[_0x2a8d('0xe9')][_0x2a8d('0xba')](_0x2a8d('0x17'),!0x0),this['_mergeNestedSuggestions']=_0xe2deef['config']['get'](_0x2a8d('0x17')),this[_0x2a8d('0x84')]=new _0x2f2369(_0xe2deef,this[_0x2a8d('0x7e')]),this[_0x3b33ef([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3b33ef([0x34,0x30,0x34,0x36,0x32,0x30,0x31,0x36]);}[_0x2a8d('0x22')](){const _0x3bde1a=this[_0x2a8d('0x7')];_0x3bde1a['conversion'][_0x2a8d('0x56')]('editingDowncast')[_0x2a8d('0xf2')]({'model':'suggestion','view':_0x3e2ceb=>{const {id:_0x32438a,type:_0x2f68b3}=this[_0x2a8d('0x45')](_0x3e2ceb[_0x2a8d('0x90')]),_0x40be1e=[_0x2a8d('0x4f'),_0x2a8d('0x85')+_0x2f68b3];let _0x590b6f=0xbb8;return this[_0x2a8d('0x129')][_0x2a8d('0xd2')](_0x3e2ceb[_0x2a8d('0x90')])&&(_0x40be1e['push'](_0x2a8d('0x6e')),_0x590b6f=0xbc2),_0x2a8d('0x5d')==_0x2f68b3&&(_0x590b6f+=0x5),{'classes':_0x40be1e,'attributes':{'data-suggestion':_0x32438a},'priority':_0x590b6f};}}),_0x3bde1a[_0x2a8d('0x61')][_0x2a8d('0x56')](_0x2a8d('0x123'))[_0x2a8d('0x65')](_0x28cee4=>{_0x28cee4['on']('addMarker:suggestion',(_0x324daf,_0x415090,_0x40a332)=>{if(!_0x40a332[_0x2a8d('0x6a')]['showSuggestionHighlights'])return;const _0x1ab33c=_0x415090[_0x2a8d('0x112')];if(!_0x1ab33c)return;const _0x436fce=_0x40a332[_0x2a8d('0xb4')]['toViewElement'](_0x1ab33c);_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xd1')][_0x2a8d('0x13a')](_0x1ab33c)&&_0x436fce&&!_0x436fce[_0x2a8d('0x54')](_0x2a8d('0x55'))&&_0x436fce['is'](_0x2a8d('0x92'))&&_0x182b72(_0x436fce,_0x40a332[_0x2a8d('0x60')]);},{'priority':'high'});}),_0x3bde1a['conversion'][_0x2a8d('0x56')](_0x2a8d('0x123'))[_0x2a8d('0xf2')]({'model':_0x2a8d('0xa8'),'view':(_0x1ff3e9,_0x3776ce)=>{if(!_0x3776ce[_0x2a8d('0x6a')][_0x2a8d('0x33')])return null;const {type:_0x13d4c0}=this[_0x2a8d('0x45')](_0x1ff3e9[_0x2a8d('0x90')]);return{'classes':[_0x2a8d('0x4f'),_0x2a8d('0x85')+_0x13d4c0],'priority':0xbb8};}});const _0x291073=({showActiveMarkers:_0x485f95=!0x0}={})=>(_0x17d79f,_0x196ecb,_0x507c07)=>{if(!_0x196ecb[_0x2a8d('0x112')])return;if(_0x196ecb['item']['is']('selection'))return void _0x507c07['consumable'][_0x2a8d('0xdf')](_0x196ecb[_0x2a8d('0x112')],_0x17d79f[_0x2a8d('0x97')]);const _0x2530c2=_0x507c07[_0x2a8d('0xb4')][_0x2a8d('0x21')](_0x196ecb['item']);if(!(_0x196ecb[_0x2a8d('0x112')]['is'](_0x2a8d('0x11a'))&&_0x3bde1a['model'][_0x2a8d('0xd1')][_0x2a8d('0x2')](_0x196ecb['item'])&&!_0x2530c2['getCustomProperty'](_0x2a8d('0x10b'))))return;const {id:_0x171c6a}=this[_0x2a8d('0x45')](_0x196ecb['markerName']);_0x507c07[_0x2a8d('0x60')][_0x2a8d('0xc')](['ck-suggestion-marker',_0x2a8d('0x135')],_0x2530c2),_0x507c07[_0x2a8d('0x60')]['setAttribute']('data-suggestion',_0x171c6a,_0x2530c2),_0x507c07['mapper'][_0x2a8d('0x6d')](_0x2530c2,_0x196ecb['markerName']),_0x485f95&&(this[_0x2a8d('0x129')][_0x2a8d('0xd2')](_0x196ecb[_0x2a8d('0x90')])?_0x507c07[_0x2a8d('0x60')]['addClass'](_0x2a8d('0x6e'),_0x2530c2):_0x507c07[_0x2a8d('0x60')][_0x2a8d('0x7d')](_0x2a8d('0x6e'),_0x2530c2));for(const _0x4ad5c4 of _0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x138')](_0x196ecb[_0x2a8d('0x112')])[_0x2a8d('0xbf')]())_0x507c07[_0x2a8d('0x26')]['consume'](_0x4ad5c4,_0x17d79f[_0x2a8d('0x97')]);_0x507c07[_0x2a8d('0x26')][_0x2a8d('0xdf')](_0x196ecb[_0x2a8d('0x112')],_0x17d79f[_0x2a8d('0x97')]);};_0x3bde1a[_0x2a8d('0x61')][_0x2a8d('0x56')](_0x2a8d('0x123'))[_0x2a8d('0x65')](_0x3de4f1=>{_0x3de4f1['on'](_0x2a8d('0x4e'),(_0x461a4c,_0x494415,_0x1caa53)=>{_0x1caa53['options'][_0x2a8d('0x33')]&&_0x291073({'showActiveMarkers':!0x1})(_0x461a4c,_0x494415,_0x1caa53);},{'priority':_0x2a8d('0x4d')});}),_0x3bde1a[_0x2a8d('0x61')][_0x2a8d('0x56')](_0x2a8d('0x123'))[_0x2a8d('0x64')]({'model':_0x2a8d('0xa8'),'view':(_0x23ce80,_0x25c9f4)=>_0x25c9f4['options'][_0x2a8d('0x33')]?null:{'group':_0x2a8d('0xa8'),'name':_0x23ce80[_0x2a8d('0x102')](0xb)}}),_0x3bde1a[_0x2a8d('0x61')][_0x2a8d('0x56')](_0x2a8d('0x79'))[_0x2a8d('0xb')]({'view':{'name':_0x2a8d('0xa8'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c1087,{writer:_0x3971e2})=>{let _0x24b497=_0x2a8d('0x10')+_0x5c1087[_0x2a8d('0x6f')]('suggestion-type')+':'+_0x5c1087['getAttribute']('id');return _0x5c1087[_0x2a8d('0x6f')](_0x2a8d('0x4c'))&&(_0x24b497+=':'+_0x5c1087[_0x2a8d('0x6f')](_0x2a8d('0x4c'))),_0x3971e2[_0x2a8d('0x44')](_0x2a8d('0xc4'),{'data-name':_0x24b497});}}),_0x3bde1a['conversion']['for']('upcast')[_0x2a8d('0xbd')]({'view':_0x2a8d('0xa8')}),_0x3bde1a['conversion'][_0x2a8d('0x56')]('editingDowncast')['add'](_0x4c4762=>{_0x4c4762['on']('addMarker:suggestion:formatBlock',_0x291073(),{'priority':_0x2a8d('0x117')});}),_0x3bde1a['conversion'][_0x2a8d('0x56')](_0x2a8d('0x68'))[_0x2a8d('0x65')](_0x4328cc=>{_0x4328cc['on'](_0x2a8d('0xe2'),(_0x469d64,_0x64a51f,_0x2f4c13)=>{const _0x2e7029=_0x2f4c13[_0x2a8d('0xb4')]['markerNameToElements'](_0x64a51f['markerName']);if(_0x2e7029)for(const _0x29aa80 of _0x2e7029)_0x29aa80[_0x2a8d('0x54')]('addHighlight')||(_0x2f4c13['writer'][_0x2a8d('0x7d')]([_0x2a8d('0x4f'),_0x2a8d('0x135'),_0x2a8d('0x6e')],_0x29aa80),_0x2f4c13[_0x2a8d('0x60')]['removeAttribute'](_0x2a8d('0xe7'),_0x29aa80),_0x2f4c13[_0x2a8d('0xb4')][_0x2a8d('0x7a')](_0x29aa80,_0x64a51f[_0x2a8d('0x90')]));},{'priority':'high'});}),_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x8a')][_0x2a8d('0x12c')](_0xd81167=>{let _0x2c97a9=!0x1;const _0x397b58=Array[_0x2a8d('0x2e')](_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x8a')][_0x2a8d('0xda')]['getChangedMarkers']()),_0x2b1e43=new Set();for(const {name:_0x4dd7b8,data:_0x5a1ca8}of _0x397b58){const {group:_0x209c8a,type:_0x44aa5f,id:_0x1be6bc}=this[_0x2a8d('0x45')](_0x4dd7b8);if(_0x2a8d('0xa8')!==_0x209c8a)continue;const _0x33855f=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x1be6bc);if(null!=_0x5a1ca8['newRange']){_0x2a8d('0x13c')==_0x44aa5f&&(_0x2c97a9=_0x2c97a9||$t(_0x5a1ca8[_0x2a8d('0xe1')],_0x4dd7b8,_0xd81167,_0x3bde1a[_0x2a8d('0xcc')]['schema']));if(_0x5a1ca8[_0x2a8d('0xe1')][_0x2a8d('0xa0')]||'$graveyard'==_0x5a1ca8[_0x2a8d('0xe1')]['root'][_0x2a8d('0x5e')]||_0x2a8d('0xe6')==_0x44aa5f&&!Rt(_0x5a1ca8['newRange'])||_0x2a8d('0x5d')==_0x44aa5f&&!(!Mt(_0x210f3c=_0x5a1ca8[_0x2a8d('0xe1')])&&!function(_0x56fe19){return _0x56fe19[_0x2a8d('0x23')]['parent']==_0x56fe19[_0x2a8d('0x14')][_0x2a8d('0x0')]&&_0x56fe19[_0x2a8d('0x23')]['isAtEnd'];}(_0x210f3c)))_0xd81167[_0x2a8d('0x93')](_0x4dd7b8),_0x2c97a9=!0x0;else{if(!_0x33855f||!_0x33855f['isInContent'])continue;_0x2b1e43[_0x2a8d('0x65')](_0x33855f);}}}var _0x210f3c;return _0x2b1e43[_0x2a8d('0x20')]>0x0&&(_0x2c97a9=!!this[_0x2a8d('0xc9')](_0x2b1e43)||_0x2c97a9),_0x2c97a9;}),_0x3bde1a['model'][_0x2a8d('0x8a')][_0x2a8d('0x12c')](_0x2e121b=>{let _0xb644b=!0x1;for(const _0x3449b7 of _0x3bde1a['model'][_0x2a8d('0x8a')][_0x2a8d('0xda')][_0x2a8d('0x118')]()){if(_0x2a8d('0xe5')!=_0x3449b7[_0x2a8d('0x131')])continue;const _0x579eaa=_0x3449b7[_0x2a8d('0xed')]['getShiftedBy'](_0x3449b7[_0x2a8d('0x74')]);if(_0x579eaa['isAtEnd'])for(const _0x509a60 of this[_0x2a8d('0xb9')][_0x2a8d('0xfc')]()){if(_0x509a60[_0x2a8d('0x30')]||!_0x509a60[_0x2a8d('0x95')])continue;if(_0x2a8d('0xe6')!=_0x509a60[_0x2a8d('0x131')])continue;const _0x54a2b2=_0x509a60[_0x2a8d('0x9c')]();if(_0x54a2b2[_0x2a8d('0x23')][_0x2a8d('0xd')]!=_0x54a2b2['end']['parent']&&_0x54a2b2['end'][_0x2a8d('0xff')](_0x3449b7[_0x2a8d('0xed')])){const _0x2f37a4=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x12b')](_0x54a2b2['start'],_0x579eaa);_0x2e121b[_0x2a8d('0xd4')](_0x509a60[_0x2a8d('0xf9')](),{'range':_0x2f37a4}),_0xb644b=!0x0;}}}return _0xb644b;}),_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x63')]['on']('update:suggestion',(_0x5d3d4f,_0x4ae2fb,_0x5603b1)=>{if(null==_0x5603b1){const {id:_0x2395d1}=this[_0x2a8d('0x45')](_0x4ae2fb[_0x2a8d('0x97')]),_0x1436e3=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x2395d1);_0x1436e3&&_0x1436e3[_0x2a8d('0x113')](_0x4ae2fb[_0x2a8d('0x97')]);}}),_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x8a')]['on'](_0x2a8d('0x8f'),()=>{const _0x54fadd=Array[_0x2a8d('0x2e')](_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x8a')]['differ'][_0x2a8d('0xec')]())['filter'](_0x1d233c=>'suggestion'===this[_0x2a8d('0x45')](_0x1d233c[_0x2a8d('0x97')])[_0x2a8d('0x12d')]);if(0x0===_0x54fadd[_0x2a8d('0x74')])return;_0x54fadd[_0x2a8d('0x11c')]((_0x5479e9,_0xc3b987)=>{const _0x316165=_0x5479e9['data'][_0x2a8d('0x78')],_0x76a705=_0xc3b987['data'][_0x2a8d('0x78')];return null===_0x316165&&null===_0x76a705?0x0:null===_0x316165&&null!==_0x76a705?-0x1:null!==_0x316165&&null===_0x76a705?0x1:_0x316165[_0x2a8d('0x23')][_0x2a8d('0x2b')](_0x76a705[_0x2a8d('0x23')])?-0x1:0x1;});const _0x1d5221=new Set(),_0xa294ca=new Set();for(const {name:_0x3fdfb7,data:_0x2ddc4f}of _0x54fadd){const {id:_0x4b3cec}=this[_0x2a8d('0x45')](_0x3fdfb7);if(null===_0x2ddc4f[_0x2a8d('0x78')]){const _0x21d7b9=this[_0x2a8d('0x69')](_0x3fdfb7);_0xa294ca[_0x2a8d('0x65')](_0x21d7b9);}else{const _0x214e78=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x4b3cec);null!==_0x2ddc4f[_0x2a8d('0xe1')]||_0x214e78[_0x2a8d('0x95')]?(_0x1d5221[_0x2a8d('0x65')](_0x214e78['head']),_0xa294ca[_0x2a8d('0x65')](_0x214e78)):this[_0x2a8d('0x10f')](_0x214e78);}}_0xa294ca[_0x2a8d('0x20')]>0x0&&this[_0x2a8d('0x91')](_0xa294ca);for(const _0x4a3b36 of _0x1d5221)this[_0x2a8d('0xcf')](_0x2a8d('0xdc'),_0x4a3b36);}),_0x3bde1a[_0x2a8d('0xcc')]['on'](_0x2a8d('0xb0'),(_0x535cbe,_0x4b1541)=>{const _0x325c9b=_0x4b1541[0x0];if(!this[_0x2a8d('0xb9')][_0x2a8d('0x20')])return;if(!_0x325c9b[_0x2a8d('0x89')])return;if(_0x325c9b['batch']['isUndo']||!_0x325c9b['batch'][_0x2a8d('0x7c')])return;let _0x523e4f,_0x41ed0b;switch(_0x325c9b[_0x2a8d('0x131')]){case _0x2a8d('0xe5'):_0x523e4f=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xb6')](_0x325c9b[_0x2a8d('0xed')]),_0x41ed0b=_0x523e4f[_0x2a8d('0x2d')](_0x325c9b[_0x2a8d('0x3a')]);break;case'split':_0x523e4f=_0x3bde1a['model'][_0x2a8d('0xb6')](_0x325c9b['splitPosition']),_0x41ed0b=_0x3bde1a[_0x2a8d('0xcc')]['createPositionAt'](_0x325c9b[_0x2a8d('0xe0')]);break;case _0x2a8d('0x133'):_0x523e4f=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xb6')](_0x325c9b['targetPosition']),_0x41ed0b=_0x523e4f['getShiftedBy'](_0x325c9b[_0x2a8d('0x3a')]);break;default:return;}const _0x33da41=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x12b')](_0x523e4f,_0x41ed0b);_0x3bde1a['model'][_0x2a8d('0xb7')](()=>{for(const {suggestion:_0x17682f,meta:_0x5e1ff3}of this['_findSuggestions'](_0x33da41)){if(_0x17682f[_0x2a8d('0x30')])continue;if(_0x2a8d('0x13c')==_0x17682f[_0x2a8d('0x131')])continue;const _0x301d20=_0x17682f['data']&&_0x17682f[_0x2a8d('0xb8')][_0x2a8d('0x83')];(_0x2a8d('0xe6')!=_0x17682f[_0x2a8d('0x131')]||_0x2a8d('0x127')==_0x325c9b[_0x2a8d('0x131')]&&!_0x301d20)&&(_0x5e1ff3[_0x2a8d('0xc3')]||_0x2a8d('0xf8')==_0x17682f[_0x2a8d('0x131')]&&_0x5e1ff3[_0x2a8d('0x124')]||_0x17682f[_0x2a8d('0x9c')]()[_0x2a8d('0xad')](_0x33da41)&&this[_0x2a8d('0x43')](_0x17682f,_0x523e4f,_0x41ed0b));}});},{'priority':_0x2a8d('0x137')}),_0x3bde1a[_0x2a8d('0xcc')]['on']('deleteContent',(_0x25b87c,_0x1d2e8d)=>{const _0x3c0c60=_0x1d2e8d[0x0],_0x4b80d0=_0x1d2e8d[0x1];if(_0x4b80d0&&_0x4b80d0[_0x2a8d('0x120')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x2a8d('0x84')][_0x2a8d('0x10c')])return;if(_0x3c0c60['isCollapsed'])return;const _0x2c0633=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xd1')],{start:_0x5849aa,end:_0x187d87}=_0x3c0c60[_0x2a8d('0x9c')](),_0x30ea12=_0x5849aa[_0x2a8d('0x126')]&&_0x2c0633['isLimit'](_0x5849aa[_0x2a8d('0x126')])?null:_0x2c0633[_0x2a8d('0x76')](_0x5849aa,'forward'),_0xeb64ed=_0x187d87[_0x2a8d('0x0')]&&_0x2c0633[_0x2a8d('0x59')](_0x187d87['nodeBefore'])?null:_0x2c0633['getNearestSelectionRange'](_0x187d87,_0x2a8d('0xe8')),_0x4fa078=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0x12b')](_0x30ea12?_0x30ea12['start']:_0x5849aa,_0xeb64ed?_0xeb64ed[_0x2a8d('0x14')]:_0x187d87);_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xb7')](_0x5f08a0=>{this[_0x2a8d('0x121')](_0x4fa078);const _0x537499=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xd1')][_0x2a8d('0x76')](_0x4fa078['start']);_0x3c0c60['is'](_0x2a8d('0xdd'))?_0x5f08a0[_0x2a8d('0x37')](_0x537499):_0x3c0c60[_0x2a8d('0x5b')](_0x537499);}),_0x25b87c[_0x2a8d('0x116')]();},{'priority':_0x48ac32['normal']+0xa}),_0x3bde1a[_0x2a8d('0xcc')]['on']('insertContent',(_0x58c14e,_0x2eeee2)=>{const _0x126731=_0x2eeee2[_0x2eeee2[_0x2a8d('0x74')]-0x1];_0x126731&&_0x126731['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this[_0x2a8d('0x84')]['value']&&(_0x3bde1a['model']['change'](()=>{let _0x20dc26=_0x3bde1a['model']['insertContent'](_0x2eeee2[0x0],_0x2eeee2[0x1],_0x2eeee2[0x2],{'forceDefaultExecution':!0x0});if(!_0x20dc26)return;_0x58c14e[_0x2a8d('0x66')]=_0x20dc26[_0x2a8d('0x80')]();const _0x569ffb=_0x20dc26[_0x2a8d('0x14')][_0x2a8d('0x0')],_0x10d544=_0x3bde1a[_0x2a8d('0xcc')][_0x2a8d('0xd1')];_0x569ffb&&_0x10d544[_0x2a8d('0x2')](_0x569ffb)&&!_0x10d544[_0x2a8d('0x13a')](_0x569ffb)&&(_0x20dc26=_0x3bde1a['model']['createRange'](_0x20dc26[_0x2a8d('0x23')],_0x3bde1a['model'][_0x2a8d('0xb6')](_0x569ffb,_0x2a8d('0x14')))),this['markInsertion'](_0x20dc26);}),_0x58c14e[_0x2a8d('0x116')]());},{'priority':_0x2a8d('0x117')}),this['editor']['commands'][_0x2a8d('0x65')](_0x2a8d('0x2f'),this[_0x2a8d('0x84')]),this[_0x2a8d('0x12')](_0x2a8d('0x2f'));const _0x55c879=new _0x1cb86a(_0x3bde1a,this[_0x2a8d('0xb9')]);_0x3bde1a[_0x2a8d('0x11e')][_0x2a8d('0x65')](_0x2a8d('0x105'),_0x55c879),this[_0x2a8d('0x12')](_0x2a8d('0x105'));const _0x4dcfdc=new _0x886f73(_0x3bde1a,this[_0x2a8d('0xb9')]);_0x3bde1a[_0x2a8d('0x11e')][_0x2a8d('0x65')](_0x2a8d('0x31'),_0x4dcfdc),this[_0x2a8d('0x12')](_0x2a8d('0x31')),_0x3bde1a[_0x2a8d('0x11e')]['add']('acceptAllSuggestions',new _0x484cff(_0x3bde1a,_0x55c879,this[_0x2a8d('0xb9')])),this[_0x2a8d('0x12')](_0x2a8d('0x98')),_0x3bde1a[_0x2a8d('0x11e')][_0x2a8d('0x65')](_0x2a8d('0x49'),new _0x484cff(_0x3bde1a,_0x4dcfdc,this['_suggestions'])),this[_0x2a8d('0x12')](_0x2a8d('0x49')),_0x3bde1a[_0x2a8d('0x11e')]['add'](_0x2a8d('0xaa'),new _0x3eb395(_0x3bde1a,_0x55c879,this[_0x2a8d('0xb9')])),this[_0x2a8d('0x12')](_0x2a8d('0xaa')),_0x3bde1a[_0x2a8d('0x11e')][_0x2a8d('0x65')](_0x2a8d('0x9'),new _0x3eb395(_0x3bde1a,_0x4dcfdc,this[_0x2a8d('0xb9')])),this[_0x2a8d('0x12')](_0x2a8d('0x9'));const _0x3a9033=_0x3bde1a[_0x2a8d('0x3')]['get'](_0x2a8d('0x119'));this[_0x2a8d('0x5a')](_0x3a9033,_0x2a8d('0x132'),(_0x490327,{threadId:_0x186c28})=>{const _0x767e85=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x186c28);_0x767e85&&_0x767e85[_0x2a8d('0x86')]&&0x1===_0x767e85[_0x2a8d('0x86')][_0x2a8d('0x74')]&&this[_0x2a8d('0xfa')](_0x186c28,{'hasComments':!0x0});},{'priority':'low'}),this[_0x2a8d('0x5a')](_0x3a9033,'removeComment',(_0x4980a4,{threadId:_0x4f84c0})=>{const _0x709341=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x4f84c0);_0x709341&&_0x709341[_0x2a8d('0x86')]&&!_0x709341[_0x2a8d('0x86')][_0x2a8d('0x74')]&&this[_0x2a8d('0xfa')](_0x4f84c0,{'hasComments':!0x1});},{'priority':_0x2a8d('0x11f')});}set['adapter'](_0x2361cd){if(this[_0x2a8d('0x8b')])throw new _0x2dc620(_0x2a8d('0x106'),this);this[_0x2a8d('0x8b')]=_0x2361cd;}get[_0x2a8d('0x107')](){return this[_0x2a8d('0x8b')];}['getSuggestions']({skipNotAttached:_0x4dd598=!0x1,toJSON:_0x5a030b=!0x1}={}){const _0x2296fd=[];for(const _0x4b0d0e of this[_0x2a8d('0xb9')][_0x2a8d('0xfc')]())_0x4dd598&&!_0x4b0d0e[_0x2a8d('0x95')]||_0x2296fd[_0x2a8d('0x8d')](_0x4b0d0e);return _0x5a030b?_0x2296fd[_0x2a8d('0xf4')](_0x40d4be=>_0x40d4be['toJSON']()):_0x2296fd;}[_0x2a8d('0x101')](_0x209620){const _0x17f959=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x209620);if(!_0x17f959)throw new _0x2dc620(_0x2a8d('0x15'),this);return _0x17f959;}[_0x2a8d('0x47')](_0x2801a9){return this['_suggestions'][_0x2a8d('0x10e')](_0x2801a9);}[_0x2a8d('0x8')](_0x54f08b){const {authorId:_0x41959a,id:_0x581fe9,attributes:_0x3e10de}=_0x54f08b,[_0x4e7595,_0x419eac]=_0x54f08b['type']['split'](':'),_0x53f305=this[_0x2a8d('0xb9')][_0x2a8d('0x4')](_0x581fe9)||this[_0x2a8d('0xce')](_0x4e7595,_0x419eac,_0x581fe9,_0x41959a,_0x3e10de);if(this['_addThreadToSuggestion'](_0x53f305),this[_0x2a8d('0x134')](_0x53f305,_0x4e7595,_0x419eac||null,_0x41959a),_0x53f305[_0x2a8d('0xf6')]=_0x54f08b[_0x2a8d('0xf6')],_0x53f305[_0x2a8d('0x11d')]=!0x0,_0x3e10de&&_0x3e10de[_0x2a8d('0x6')]){const _0x3330ca=_0x3e10de['@external'],_0x5c16cb=this[_0x2a8d('0x136')](_0x3330ca[_0x2a8d('0xab')]);_0x53f305[_0x2a8d('0x5c')]=_0x3330ca[_0x2a8d('0xf6')],_0x53f305[_0x2a8d('0xdb')]=_0x5c16cb,_0x53f305[_0x2a8d('0x73')]=!0x0;}else _0x53f305[_0x2a8d('0x5c')]=_0x54f08b['createdAt'];switch(_0x54f08b[_0x2a8d('0xb8')]&&(_0x53f305[_0x2a8d('0xb8')]=_0x54f08b['data']),_0x54f08b[_0x2a8d('0x12f')]&&(_0x53f305[_0x2a8d('0x12f')]=_0x54f08b['attributes']),this[_0x2a8d('0x8b')]&&this['_adapter'][_0x2a8d('0xa3')]||(_0x53f305[_0x2a8d('0x58')]=!0x0),this['_suggestionState'][_0x2a8d('0x4')](_0x53f305)){case _0x2a8d('0x77'):this[_0x2a8d('0xde')]['set'](_0x53f305,'dataReady');break;case _0x2a8d('0xf5'):_0x53f305['isInContent']?(this['_refreshSuggestionsChain'](new Set([_0x53f305])),this['_joinWithAdjacentSuggestions'](new Set([_0x53f305])),this[_0x2a8d('0xde')]['set'](_0x53f305,'ready'),this[_0x2a8d('0xcf')](_0x2a8d('0x128'),_0x53f305)):this[_0x2a8d('0xde')]['set'](_0x53f305,_0x2a8d('0x51'));}return _0x53f305;}[_0x2a8d('0x105')](_0x7565c2){this[_0x2a8d('0x120')](()=>{this[_0x2a8d('0x7')][_0x2a8d('0xcc')][_0x2a8d('0xb7')](()=>{for(const _0x8b2db1 of _0x7565c2[_0x2a8d('0xca')]())_0x8b2db1[_0x2a8d('0x18')]();});});}[_0x2a8d('0x31')](_0x475487){this[_0x2a8d('0x120')](()=>{this[_0x2a8d('0x7')][_0x2a8d('0xcc')]['change'](()=>{for(const _0x472b51 of _0x475487['getAllAdjacentSuggestions']())_0x472b51[_0x2a8d('0x1c')]();});});}[_0x2a8d('0x12')](_0x26a72d,_0x47d04a){const _0x1f49d7=this['editor']['commands'][_0x2a8d('0x4')](_0x26a72d);if(!_0x1f49d7)throw new _0x2dc620(_0x2a8d('0x10a'),this,{'commandName':_0x26a72d});this[_0x2a8d('0x7e')][_0x2a8d('0x65')](_0x1f49d7),_0x47d04a&&_0x1f49d7['on']('execute',(_0x5cf54f,_0x4bd90c)=>{this[_0x2a8d('0x84')][_0x2a8d('0x10c')]&&(this[_0x2a8d('0xb1')]||_0x4bd90c[_0x2a8d('0x74')]>0x0&&_0x4bd90c[_0x4bd90c['length']-0x1]&&_0x4bd90c[_0x4bd90c[_0x2a8d('0x74')]-0x1][_0x2a8d('0x120')]||(_0x47d04a((..._0x1121a8)=>_0x1f49d7[_0x2a8d('0xa1')](..._0x1121a8,{'forceDefaultExecution':!0x0}),..._0x4bd90c),_0x5cf54f['stop']()));},{'priority':_0x2a8d('0x117')});}[_0x2a8d('0x120')](_0x56eeee){let _0x2a4b44,_0x177b1f;const _0x56ac70=this['_isForcedDefaultExecutionBlock'];this[_0x2a8d('0xb1')]=!0x0;try{_0x2a4b44=_0x56eeee();}catch(_0x38b71d){_0x177b1f=_0x38b71d;}return _0x56ac70||(this[_0x2a8d('0xb1')]=!0x1),_0x177b1f&&_0x2dc620['rethrowUnexpectedError'](_0x177b1f,this),_0x2a4b44;}[_0x2a8d('0xa4')](_0x13032f,_0x274ca6=null,_0x27febc={}){if(_0x13032f[_0x2a8d('0xa0')])return null;const _0x1d0c07=this['editor'][_0x2a8d('0x3')][_0x2a8d('0x4')]('Users')['me'];for(const {suggestion:_0x493c93,meta:_0x1b87b7}of this[_0x2a8d('0x2a')](_0x13032f,_0x2a8d('0xf8')))if(_0x1b87b7[_0x2a8d('0x124')]){if(!_0x1b87b7['isNextTo']){if(_0x1b87b7[_0x2a8d('0xc3')]){if(!this[_0x2a8d('0xd6')]||!Ot(_0x493c93,_0x27febc))continue;return _0x493c93;}if(Ot(_0x493c93,_0x27febc))return _0x493c93;this[_0x2a8d('0x43')](_0x493c93,_0x13032f['start'],_0x13032f[_0x2a8d('0x14')]);break;}if(_0x274ca6==_0x493c93[_0x2a8d('0x28')]&&Ot(_0x493c93,_0x27febc)){const _0x382c39=_0x493c93['getFirstRange']();return _0x382c39[_0x2a8d('0x23')][_0x2a8d('0xff')](_0x13032f['end'])?this[_0x2a8d('0x40')](_0x493c93,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x13032f[_0x2a8d('0x23')],_0x382c39[_0x2a8d('0x14')])):this[_0x2a8d('0x40')](_0x493c93,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x382c39['start'],_0x13032f['end'])),_0x493c93;}}const _0x6152d5=_0x5b25c0(),_0x14d34d=_0x1d0c07['id'],_0xa8dbb0=_0x274ca6?'insertion:'+_0x274ca6:_0x2a8d('0xf8'),_0xfcdb1e=this[_0x2a8d('0x13')]({'id':_0x6152d5,'type':_0xa8dbb0,'createdAt':new Date(),'authorId':_0x14d34d,'attributes':_0x27febc});return this['_addSuggestionMarker'](_0xa8dbb0,_0x6152d5,_0x14d34d,_0x13032f),_0xfcdb1e;}[_0x2a8d('0x32')](_0x18923e,_0x534827=_0x2a8d('0xc5'),_0x436d89={}){const _0xf938ca=this[_0x2a8d('0x7')]['plugins']['get'](_0x2a8d('0x7b'))['me'],_0x2d6a5b=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0xf8'),_0x534827,_0x2a8d('0xae'));for(const _0x245e42 of this[_0x2a8d('0x130')]())if(_0x245e42['author']['id']==_0xf938ca['id']&&_0x2a8d('0xf8')==_0x245e42['type']&&_0x245e42[_0x2a8d('0x28')]==_0x534827&&Ot(_0x245e42,_0x436d89)&&(_0x2d6a5b(_0x245e42[_0x2a8d('0xcb')](),_0x18923e)||_0x2d6a5b(_0x18923e,_0x245e42[_0x2a8d('0xcb')]()))){for(const _0x115d07 of _0x18923e)_0x245e42[_0x2a8d('0x46')](_0x115d07);return _0x245e42;}for(const {suggestion:_0x50247a,meta:_0x5c31b7}of this[_0x2a8d('0x2a')](_0x18923e,_0x2a8d('0xf8'))){if(!_0x5c31b7['isOwn'])continue;if(!this[_0x2a8d('0xd6')]&&_0x5c31b7['containsRangeInObject'])continue;if(!Ot(_0x50247a,_0x436d89))continue;let _0x1c7a78=!0x0;for(const _0xc74ee5 of _0x50247a[_0x2a8d('0xcb')]())for(const _0x3443e7 of _0x18923e)if(!_0xc74ee5['containsRange'](_0x3443e7)){_0x1c7a78=!0x1;break;}if(_0x1c7a78)return _0x50247a;}const _0x3bc6a3=_0x5b25c0(),_0x2ac9e7=_0xf938ca['id'],_0x38bc6d=_0x2a8d('0xa9')+_0x534827,_0x1d31be=this[_0x2a8d('0x13')]({'id':_0x3bc6a3,'type':_0x38bc6d,'createdAt':new Date(),'authorId':_0x2ac9e7,'attributes':_0x436d89});for(const _0x2cc7a8 of _0x18923e)this['_addSuggestionMarker'](_0x38bc6d,_0x3bc6a3,_0x2ac9e7,_0x2cc7a8,_0xc5d2f7[_0x2a8d('0xeb')]());return _0x1d31be;}[_0x2a8d('0x72')](_0x27389e,_0x4e6c5c,_0xad986f=null,_0x430189={}){if(_0xad986f=_0xad986f||Nt(_0x4e6c5c),_0x27389e[_0x2a8d('0xa0')])return null;if(_0x2a8d('0xc6')===this[_0x2a8d('0x100')]){const _0x467643=this['_suggestionFactory']['getSuggestionCallback'](_0x2a8d('0x13c'),_0xad986f,_0x2a8d('0x18'));return this[_0x2a8d('0x120')](()=>_0x467643([_0x27389e],_0x4e6c5c,_0x430189)),null;}const _0x3b93a8=this['editor']['plugins'][_0x2a8d('0x4')](_0x2a8d('0x7b'))['me'],_0x5c9609=[];if('always'!==this[_0x2a8d('0x100')])for(const {suggestion:_0x3c2415,meta:_0x3c653c}of this[_0x2a8d('0x2a')](_0x27389e,_0x2a8d('0xf8')))_0x3c653c[_0x2a8d('0x124')]&&!_0x3c653c[_0x2a8d('0x94')]&&_0x5c9609[_0x2a8d('0x8d')](..._0x3c2415[_0x2a8d('0xcb')]());const _0x3399d2=function(_0x133400,_0x3e6d6e){const _0x5725ed=[];for(const _0xadafd8 of _0x3e6d6e){const _0xee7e9=_0x133400[_0x2a8d('0x1f')](_0xadafd8);_0xee7e9&&_0x5725ed[_0x2a8d('0x8d')](_0xee7e9);}return _0x5725ed;}(_0x27389e,_0x5c9609),_0x2b7133=function(_0x5e84c9,_0x548e79){const _0x4f9506=[_0x5e84c9];for(const _0x225dc5 of _0x548e79){let _0x2b723a=0x0;for(;_0x2b723a<_0x4f9506[_0x2a8d('0x74')];){const _0x89f2a3=_0x4f9506[_0x2b723a][_0x2a8d('0x4b')](_0x225dc5);_0x4f9506[_0x2a8d('0x139')](_0x2b723a,0x1,..._0x89f2a3),_0x2b723a+=_0x89f2a3[_0x2a8d('0x74')];}}return _0x4f9506;}(_0x27389e,_0x5c9609);_0x3399d2[_0x2a8d('0x74')]&&this[_0x2a8d('0x50')][_0x2a8d('0xb7')](()=>{for(const _0x4072b1 of _0x3399d2){const _0x3b4596=this[_0x2a8d('0x24')]['getSuggestionCallback'](_0x2a8d('0x13c'),_0xad986f,_0x2a8d('0x18'));this['forceDefaultExecution'](()=>_0x3b4596([_0x4072b1],_0x4e6c5c,_0x430189));}});for(const _0x45a495 of _0x2b7133){let _0x976e28=null,_0x29c481=_0x45a495[_0x2a8d('0x23')],_0xf12914=_0x45a495[_0x2a8d('0x14')];for(const {suggestion:_0x17a291,meta:_0x306bfe}of this[_0x2a8d('0x2a')](_0x45a495,'formatInline')){if(!_0x306bfe[_0x2a8d('0x124')])continue;if(_0x17a291['subType']!=_0xad986f)continue;if(!Ot(_0x17a291,_0x430189))continue;const _0x1e2b78=_0x17a291[_0x2a8d('0x9c')]();if(_0x1e2b78[_0x2a8d('0xad')](_0x45a495,!0x0))return null;_0x29c481=_0x29c481[_0x2a8d('0x2b')](_0x1e2b78[_0x2a8d('0x23')])?_0x29c481:_0x1e2b78['start'],_0xf12914=_0xf12914[_0x2a8d('0x4a')](_0x1e2b78['end'])?_0xf12914:_0x1e2b78[_0x2a8d('0x14')],_0x976e28?_0x1e2b78['start']['isBefore'](_0x976e28[_0x2a8d('0x9c')]()['start'])?(_0x976e28[_0x2a8d('0x9a')](),_0x976e28=_0x17a291):_0x17a291[_0x2a8d('0x9a')]():_0x976e28=_0x17a291;}const _0x2d0bca=this[_0x2a8d('0x50')]['createRange'](_0x29c481,_0xf12914);if(_0x976e28)this[_0x2a8d('0x40')](_0x976e28,_0x2d0bca);else{const _0xebcb32=_0x5b25c0(),_0x239b83=_0x3b93a8['id'];this[_0x2a8d('0x13')]({'id':_0xebcb32,'type':'formatInline:'+_0xad986f,'data':_0x4e6c5c,'createdAt':new Date(),'authorId':_0x239b83,'attributes':_0x430189}),this[_0x2a8d('0x104')](_0x2a8d('0xbc')+_0xad986f,_0xebcb32,_0x239b83,_0x2d0bca);}}return null;}[_0x2a8d('0x11')](_0x49612a,_0x177610,_0x3f71dd=[],_0x2a1687=null,_0x2d48ae={}){_0x177610[_0x2a8d('0x111')]||(_0x177610[_0x2a8d('0x111')]=_0x177610[_0x2a8d('0xa5')]),_0x177610[_0x2a8d('0x83')]=_0x49612a['is'](_0x2a8d('0xf1')),_0x2a1687=_0x2a1687||Nt(_0x177610);const _0x42caf5=_0x3f71dd[_0x2a8d('0xf4')](_0x408f77=>jt(_0x408f77,this['_model'])),_0x3b73a0=_0x49612a['is']('range')?_0x49612a:jt(_0x49612a,this['_model']);if(_0x2a8d('0xc6')===this[_0x2a8d('0x100')]){const _0x254aef=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0xe6'),_0x2a1687,_0x2a8d('0x18'));return this['forceDefaultExecution'](()=>_0x254aef([_0x3b73a0],_0x177610,_0x2d48ae)),null;}_0x42caf5['push'](_0x3b73a0);let _0x4218a1=!0x0;for(const _0x2556bb of _0x42caf5)if(!this['_rangeIsInLocalUserInsertion'](_0x2556bb)){_0x4218a1=!0x1;break;}if(_0x4218a1&&'always'!==this['_trackFormatChanges']){const _0x139bad=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0xe6'),_0x2a1687,'accept');return this[_0x2a8d('0x120')](()=>_0x139bad([_0x3b73a0],_0x177610,_0x2d48ae)),null;}let _0x5ef63f=null,_0x38d41f=_0x3b73a0[_0x2a8d('0x23')],_0x1bff64=_0x3b73a0['end'];for(const {suggestion:_0x2a35c8,meta:_0x42dcf7}of this['_findSuggestions'](_0x3b73a0,_0x2a8d('0xe6'))){if(!_0x42dcf7[_0x2a8d('0x124')])continue;if(_0x42dcf7[_0x2a8d('0x9d')]||_0x42dcf7['containsRangeInObject']||_0x42dcf7['isInsideObject'])continue;if(_0x2a35c8[_0x2a8d('0xb8')]['formatGroupId']!=_0x177610['formatGroupId'])continue;if(!Ot(_0x2a35c8,_0x2d48ae))continue;const _0x3a3b69=_0x2a35c8[_0x2a8d('0x9c')]();if(_0x2a35c8['subType']==_0x2a1687){if(_0x3a3b69['containsRange'](_0x3b73a0,!0x0))return null;_0x38d41f=_0x38d41f['isBefore'](_0x3a3b69['start'])?_0x38d41f:_0x3a3b69[_0x2a8d('0x23')],_0x1bff64=_0x1bff64[_0x2a8d('0x4a')](_0x3a3b69['end'])?_0x1bff64:_0x3a3b69['end'],_0x5ef63f?_0x3a3b69[_0x2a8d('0x23')][_0x2a8d('0x2b')](_0x5ef63f[_0x2a8d('0x9c')]()[_0x2a8d('0x23')])?(_0x5ef63f[_0x2a8d('0x9a')](),_0x5ef63f=_0x2a35c8):_0x2a35c8[_0x2a8d('0x9a')]():_0x5ef63f=_0x2a35c8;}else{const _0x227aeb=_0x3b73a0[_0x2a8d('0x1f')](_0x3a3b69);this['_cutOutSuggestionMarker'](_0x2a35c8,_0x227aeb);}}const _0x492be5=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')](_0x2a8d('0x7b'))['me'],_0x12a2b1=_0x5b25c0(),_0x2186d1=_0x492be5['id'];if(_0x5ef63f)return this[_0x2a8d('0x40')](_0x5ef63f,this[_0x2a8d('0x50')]['createRange'](_0x38d41f,_0x1bff64)),_0x5ef63f;{const _0x17582d=this[_0x2a8d('0x13')]({'id':_0x12a2b1,'type':_0x2a8d('0x103')+_0x2a1687,'data':_0x177610,'createdAt':new Date(),'authorId':_0x2186d1,'attributes':_0x2d48ae});return this[_0x2a8d('0x104')](_0x2a8d('0x103')+_0x2a1687,_0x12a2b1,_0x2186d1,this['_model'][_0x2a8d('0x12b')](_0x38d41f,_0x1bff64)),_0x17582d;}}[_0x2a8d('0xe')](_0x44dda4,_0x5b4895,_0x100419=[],_0x5783fb=null,_0x4fc800={}){_0x5b4895[_0x2a8d('0x111')]||(_0x5b4895[_0x2a8d('0x111')]=_0x5b4895['commandName']);const _0x4a6728=_0x44dda4[0x0];_0x5b4895[_0x2a8d('0x83')]=_0x4a6728['is'](_0x2a8d('0xf1')),_0x5783fb=_0x5783fb||Nt(_0x5b4895);const _0x4ec615=_0x100419[_0x2a8d('0xf4')](_0x361c82=>jt(_0x361c82,this[_0x2a8d('0x50')])),_0x6ee883=_0x4a6728['is'](_0x2a8d('0xf1'))?_0x44dda4:_0x44dda4[_0x2a8d('0xf4')](_0x298e05=>jt(_0x298e05,this['_model']));if(_0x2a8d('0xc6')===this[_0x2a8d('0x100')]){const _0x51386f=this['_suggestionFactory'][_0x2a8d('0xcd')](_0x2a8d('0xe6'),_0x5783fb,_0x2a8d('0x18'));return this[_0x2a8d('0x120')](()=>_0x51386f(_0x6ee883,_0x5b4895,_0x4fc800)),null;}_0x4ec615['push'](..._0x6ee883);let _0x17a28a=!0x0;for(const _0x372b8a of _0x4ec615)if(!this['_rangeIsInLocalUserInsertion'](_0x372b8a)){_0x17a28a=!0x1;break;}if(_0x17a28a&&_0x2a8d('0xac')!==this[_0x2a8d('0x100')]){const _0x4d9b61=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0xe6'),_0x5783fb,_0x2a8d('0x18'));return this[_0x2a8d('0x120')](()=>_0x4d9b61(_0x6ee883,_0x5b4895,_0x4fc800)),null;}const _0x25f267=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')](_0x2a8d('0x7b'))['me'];for(const _0xd04df3 of this[_0x2a8d('0x130')]()){if(_0xd04df3[_0x2a8d('0xdb')]['id']!=_0x25f267['id'])continue;if(_0x2a8d('0xe6')!=_0xd04df3['type']||_0xd04df3[_0x2a8d('0xb8')][_0x2a8d('0x111')]!=_0x5b4895['formatGroupId'])continue;if(!Ot(_0xd04df3,_0x4fc800))continue;const _0x1ebf61=_0xd04df3['subType']==_0x5783fb;for(let _0x2cc806=0x0;_0x2cc806<_0x6ee883[_0x2a8d('0x74')];_0x2cc806++){const _0x403e5e=_0x6ee883[_0x2cc806];for(const _0x1ada99 of _0xd04df3['getMarkers']()){const _0x23d880=_0x1ada99[_0x2a8d('0x3f')]();if(_0x403e5e['isEqual'](_0x23d880)){_0x1ebf61?(_0x6ee883[_0x2a8d('0x139')](_0x2cc806,0x1),_0x2cc806--):_0xd04df3[_0x2a8d('0x93')](_0x1ada99[_0x2a8d('0x97')]);break;}}}}if(0x0==_0x6ee883[_0x2a8d('0x74')])return null;const _0x4acc03=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0xe6'),_0x5783fb,_0x2a8d('0xae'));for(const _0x22a72c of this[_0x2a8d('0x130')]())if(_0x22a72c[_0x2a8d('0xdb')]['id']==_0x25f267['id']&&_0x2a8d('0xe6')==_0x22a72c[_0x2a8d('0x131')]&&_0x22a72c[_0x2a8d('0xb8')][_0x2a8d('0x111')]==_0x5b4895['formatGroupId']&&_0x22a72c['subType']==_0x5783fb&&Ot(_0x22a72c,_0x4fc800)&&(_0x4acc03(_0x22a72c[_0x2a8d('0xcb')](),_0x6ee883)||_0x4acc03(_0x6ee883,_0x22a72c['getRanges']()))){for(const _0x209117 of _0x6ee883)_0x22a72c[_0x2a8d('0x46')](_0x209117);return _0x22a72c;}const _0x1d3782=_0x5b25c0(),_0x461b00=_0x25f267['id'],_0x4e42c6=_0x2a8d('0x103')+_0x5783fb,_0x599825=this[_0x2a8d('0x13')]({'id':_0x1d3782,'type':_0x4e42c6,'data':_0x5b4895,'createdAt':new Date(),'authorId':_0x461b00,'attributes':_0x4fc800});for(const _0x648629 of _0x6ee883)this['_addSuggestionMarker'](_0x4e42c6,_0x1d3782,_0x461b00,_0x648629,_0xc5d2f7[_0x2a8d('0xeb')]());return _0x599825;}[_0x2a8d('0x121')](_0x48cd41,_0x732c9c=null,_0xc2af21={}){if(_0x48cd41[_0x2a8d('0xa0')])return null;const _0x445b07=this[_0x2a8d('0x7')]['plugins'][_0x2a8d('0x4')](_0x2a8d('0x7b'))['me'],_0x340ec4=new _0x26055e(_0x48cd41['start'],_0x48cd41[_0x2a8d('0x14')]);for(const {suggestion:_0x45df04,meta:_0x27492d}of this[_0x2a8d('0x2a')](_0x340ec4,_0x2a8d('0xf8')))if(_0x27492d[_0x2a8d('0x124')]&&!_0x27492d['isNextTo']){if(_0x45df04[_0x2a8d('0x30')]){const _0x5db3de=_0x45df04[_0x2a8d('0xcb')]()[_0x2a8d('0xc1')](_0x1eb543=>_0x2a8d('0xd5')!=_0x1eb543[_0x2a8d('0x13b')]['rootName']);_0x5db3de[_0x2a8d('0x41')](_0xf744b2=>_0x340ec4['containsRange'](_0xf744b2,!0x0))&&_0x45df04[_0x2a8d('0x1c')]();if(_0x5db3de[_0x2a8d('0x96')](_0x260d93=>_0x260d93[_0x2a8d('0xad')](_0x340ec4,!0x0))){const _0x1cf6ad=this[_0x2a8d('0x24')][_0x2a8d('0xcd')]('deletion',_0x732c9c,'accept');return this[_0x2a8d('0x120')](()=>_0x1cf6ad([_0x340ec4],null,_0xc2af21)),null;}}else{const _0xb38960=_0x340ec4['getIntersection'](_0x45df04[_0x2a8d('0x9c')]());null!==_0xb38960&&_0x45df04['_onDiscard']([_0xb38960],null,_0xc2af21);}}if(_0x340ec4[_0x2a8d('0xbe')](),_0x340ec4['isCollapsed']||'$graveyard'==_0x340ec4[_0x2a8d('0x13b')][_0x2a8d('0x5e')])return null;let _0x29a94f=null,_0x4e34a3=_0x340ec4[_0x2a8d('0x23')],_0x3fe8db=_0x340ec4[_0x2a8d('0x14')];const _0x41c93d=this[_0x2a8d('0x2a')](_0x340ec4,_0x2a8d('0x5d'));for(const {suggestion:_0x317fe0,meta:_0xf6269e}of _0x41c93d){const _0x5a9f86=this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x4e34a3,_0x3fe8db);if(_0xf6269e['isOwn']&&(this[_0x2a8d('0xd6')]||!_0xf6269e[_0x2a8d('0xc3')]&&!_0xf6269e[_0x2a8d('0x94')])){if(_0x317fe0[_0x2a8d('0x30')]){if(!Ot(_0x317fe0,_0xc2af21))continue;let _0x262749=!0x0;for(const _0x1f808b of _0x317fe0[_0x2a8d('0xcb')]()){if(_0x1f808b[_0x2a8d('0xad')](_0x5a9f86,!0x0))return _0x317fe0;_0x5a9f86['containsRange'](_0x1f808b)||(_0x262749=!0x1);}_0x262749&&_0x317fe0[_0x2a8d('0x1c')]();}else{const _0x46ffb1=_0x317fe0[_0x2a8d('0x9c')]();if(_0x46ffb1[_0x2a8d('0xad')](_0x5a9f86,!0x0))return _0x317fe0;if(!Ot(_0x317fe0,_0xc2af21)){_0x5a9f86[_0x2a8d('0xad')](_0x46ffb1)?_0x317fe0[_0x2a8d('0x9a')]():_0x46ffb1['containsPosition'](_0x4e34a3)?_0x4e34a3=_0x46ffb1[_0x2a8d('0x14')]:_0x46ffb1['containsPosition'](_0x3fe8db)&&(_0x3fe8db=_0x46ffb1[_0x2a8d('0x23')]);continue;}_0x4e34a3=_0x4e34a3[_0x2a8d('0x2b')](_0x46ffb1[_0x2a8d('0x23')])?_0x4e34a3:_0x46ffb1[_0x2a8d('0x23')],_0x3fe8db=_0x3fe8db[_0x2a8d('0x4a')](_0x46ffb1[_0x2a8d('0x14')])?_0x3fe8db:_0x46ffb1[_0x2a8d('0x14')],_0xc2af21=Object['assign']({},_0x317fe0['attributes']),_0x29a94f?_0x46ffb1[_0x2a8d('0x23')]['isBefore'](_0x29a94f[_0x2a8d('0x9c')]()[_0x2a8d('0x23')])?(_0x29a94f[_0x2a8d('0x9a')](),_0x29a94f=_0x317fe0):_0x317fe0[_0x2a8d('0x9a')]():_0x29a94f=_0x317fe0;}}}if(_0x29a94f)return this[_0x2a8d('0x40')](_0x29a94f,this[_0x2a8d('0x50')]['createRange'](_0x4e34a3,_0x3fe8db)),_0x29a94f;{const _0x40bafe=_0x5b25c0(),_0x4f0ff3=this[_0x2a8d('0x50')]['createRange'](_0x4e34a3,_0x3fe8db),_0x4ab3ee=_0x445b07['id'],_0x545c88=_0x732c9c?_0x2a8d('0xea')+_0x732c9c:_0x2a8d('0x5d'),_0xf7d6f0=this[_0x2a8d('0x13')]({'id':_0x40bafe,'type':_0x545c88,'createdAt':new Date(),'authorId':_0x4ab3ee,'attributes':_0xc2af21});return this['_addSuggestionMarker'](_0x545c88,_0x40bafe,_0x4ab3ee,_0x4f0ff3),_0xf7d6f0;}}[_0x2a8d('0x7f')](_0x1120a2,_0x563081=_0x2a8d('0xc5'),_0x46f324={}){const _0x393da6=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')](_0x2a8d('0x7b'))['me'],_0x3a3d8f=_0x1120a2[_0x2a8d('0xf4')](_0x5b4f29=>new _0x26055e(_0x5b4f29['start'],_0x5b4f29[_0x2a8d('0x14')])),_0x5a33b0=new Set();for(const {suggestion:_0x5739db,meta:_0x28ddf1}of this['_findSuggestions'](_0x3a3d8f,'insertion'))_0x28ddf1[_0x2a8d('0x124')]&&!_0x28ddf1[_0x2a8d('0x9d')]&&_0x5a33b0[_0x2a8d('0x65')](_0x5739db);for(const _0x1e65ef of _0x5a33b0)if(_0x1e65ef['isMultiRange']){const _0x2e3954=_0x1e65ef[_0x2a8d('0xcb')]();(!_0x1e65ef[_0x2a8d('0x12f')]||!_0x1e65ef['attributes'][_0x2a8d('0x12e')])&&(_0x2e3954[_0x2a8d('0x41')](_0x2e8810=>_0x3a3d8f['some'](_0x4949eb=>_0x4949eb[_0x2a8d('0xad')](_0x2e8810,!0x0)))&&_0x1e65ef[_0x2a8d('0x1c')]());if(_0x3a3d8f[_0x2a8d('0x41')](_0x5ca07c=>_0x2e3954[_0x2a8d('0x96')](_0xb82f9c=>_0xb82f9c[_0x2a8d('0xad')](_0x5ca07c,!0x0)))){const _0x2c4b35=this['_suggestionFactory'][_0x2a8d('0xcd')](_0x2a8d('0x5d'),_0x563081,_0x2a8d('0x18'));return this[_0x2a8d('0x120')](()=>_0x2c4b35(_0x1120a2,null,_0x46f324)),null;}}else{const _0x3bf878=_0x1e65ef[_0x2a8d('0x9c')]();_0x3a3d8f[_0x2a8d('0x96')](_0x4b708=>_0x4b708[_0x2a8d('0xad')](_0x3bf878,!0x0))&&_0x1e65ef[_0x2a8d('0x1c')]();if(_0x3a3d8f[_0x2a8d('0x41')](_0x50f972=>_0x3bf878[_0x2a8d('0xad')](_0x50f972,!0x0))){const _0x4ae56e=this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x2a8d('0x5d'),_0x563081,_0x2a8d('0x18'));return this[_0x2a8d('0x120')](()=>_0x4ae56e(_0x3a3d8f,null,_0x46f324)),null;}}const _0x55af5a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x563081,_0x2a8d('0xae'));let _0x12a882=null;for(const _0x1ce045 of this[_0x2a8d('0x130')]())if(_0x1ce045['author']['id']==_0x393da6['id']&&_0x1ce045[_0x2a8d('0x95')]&&_0x2a8d('0x5d')==_0x1ce045[_0x2a8d('0x131')]&&_0x1ce045[_0x2a8d('0x28')]==_0x563081&&Ot(_0x1ce045,_0x46f324)&&(_0x55af5a(_0x1ce045['getRanges'](),_0x3a3d8f)||_0x55af5a(_0x3a3d8f,_0x1ce045[_0x2a8d('0xcb')]()))){if(_0x12a882){if(_0x1ce045[_0x2a8d('0x86')]&&_0x1ce045[_0x2a8d('0x86')][_0x2a8d('0x74')])continue;for(const _0xd0e543 of _0x1ce045[_0x2a8d('0xcb')]())_0x12a882['isIntersectingWithRange'](_0xd0e543)||_0x12a882[_0x2a8d('0x46')](_0xd0e543);_0x1ce045['removeMarkers']();}else{_0x12a882=_0x1ce045;for(const _0x4ee6b9 of _0x3a3d8f)_0x1ce045[_0x2a8d('0x88')](_0x4ee6b9)||_0x1ce045['addRange'](_0x4ee6b9);}}if(_0x12a882)return _0x12a882;_0x5a33b0[_0x2a8d('0xaf')]();for(const {suggestion:_0x2f79c2,meta:_0x282af2}of this[_0x2a8d('0x2a')](_0x3a3d8f,'deletion'))_0x282af2['isOwn']&&(this[_0x2a8d('0xd6')]||!_0x282af2['containsRangeInObject']&&!_0x282af2['isInsideObject'])&&Ot(_0x2f79c2,_0x46f324)&&_0x5a33b0[_0x2a8d('0x65')](_0x2f79c2);for(const _0x305474 of _0x5a33b0){const _0x37fabc=_0x305474[_0x2a8d('0xcb')]();if(!_0x46f324||!_0x46f324[_0x2a8d('0x12e')]){if(_0x3a3d8f['every'](_0x11d662=>_0x37fabc[_0x2a8d('0x96')](_0x266028=>_0x266028[_0x2a8d('0xad')](_0x11d662,!0x0))))return _0x305474;}(!_0x305474['attributes']||!_0x305474['attributes']['skipNestingCheck'])&&(_0x37fabc[_0x2a8d('0x41')](_0x4a6ab5=>_0x3a3d8f[_0x2a8d('0x96')](_0x553eeb=>_0x553eeb[_0x2a8d('0xad')](_0x4a6ab5,!0x0)))&&_0x305474[_0x2a8d('0x1c')]());}const _0x36355e=_0x5b25c0(),_0x2e91be=_0x393da6['id'],_0x56b73d=_0x2a8d('0xea')+_0x563081,_0x548ea6=this[_0x2a8d('0x13')]({'id':_0x36355e,'type':_0x56b73d,'createdAt':new Date(),'authorId':_0x2e91be,'attributes':_0x46f324});for(const _0xa334f0 of _0x3a3d8f)_0xa334f0[_0x2a8d('0xbe')](),_0xa334f0[_0x2a8d('0xa0')]||_0x2a8d('0xd5')==_0xa334f0[_0x2a8d('0x13b')][_0x2a8d('0x5e')]||this[_0x2a8d('0x104')](_0x56b73d,_0x36355e,_0x2e91be,_0xa334f0,_0xc5d2f7[_0x2a8d('0xeb')]());return _0x548ea6;}[_0x2a8d('0x40')](_0x40c31d,_0x1d8c09){const _0x2b7aa2=_0x40c31d['getFirstMarker']();this['_model']['change'](_0x97b0ce=>{_0x97b0ce['updateMarker'](_0x2b7aa2,{'range':_0x1d8c09});});}[_0x2a8d('0x42')](_0x3fee3e){const _0x1b37d1=_0x3fee3e['id'],_0x407fd3=this['editor'][_0x2a8d('0xe9')][_0x2a8d('0x4')](_0x2a8d('0x48'));this[_0x2a8d('0x125')][_0x2a8d('0x1e')](_0x1b37d1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x407fd3,'threadId':_0x1b37d1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x23d4f1=this[_0x2a8d('0x125')][_0x2a8d('0xb2')](_0x1b37d1);_0x23d4f1[_0x2a8d('0x70')]('isRemovable'),_0x23d4f1[_0x2a8d('0x53')]=!0x1,_0x3fee3e['commentThread']=_0x23d4f1;}[_0x2a8d('0x134')](_0x50809c,_0x5e59cc,_0x605320,_0x1e40e0){if(_0x50809c[_0x2a8d('0x131')]!=_0x5e59cc||_0x50809c['subType']!=_0x605320||_0x50809c[_0x2a8d('0x115')]['id']!=_0x1e40e0)throw this[_0x2a8d('0x7')][_0x2a8d('0x8e')](_0x2a8d('0x71')),new _0x2dc620('track-changes-suggestion-data-mismatch',this);}[_0x2a8d('0x12a')](_0x4718b9,_0x147f10){const _0x3a84de=_0x4718b9['getFirstRange']();if(_0x147f10[_0x2a8d('0xff')](_0x3a84de))_0x4718b9[_0x2a8d('0x9a')]();else{if(_0x3a84de[_0x2a8d('0xad')](_0x147f10)){const _0x4cf604=this['_model'][_0x2a8d('0xb6')](_0x147f10[_0x2a8d('0x23')]['nodeBefore'],'end');this['_setSuggestionRange'](_0x4718b9,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x3a84de[_0x2a8d('0x23')],_0x4cf604));const _0x3ee4eb=_0x5b25c0(),_0x3171a7=_0x4718b9[_0x2a8d('0x115')]['id'],_0xaf73e7=_0x4718b9[_0x2a8d('0x131')]+':'+_0x4718b9['subType'];this['_setSuggestionData']({'id':_0x3ee4eb,'type':_0xaf73e7,'createdAt':new Date(),'authorId':_0x3171a7,'data':_0x4718b9['data'],'attributes':_0x4718b9['attributes']});const _0x31e20d=this[_0x2a8d('0x50')][_0x2a8d('0xb6')](_0x147f10[_0x2a8d('0x14')]['parent'],_0x2a8d('0x1b')),_0x42b001=this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x31e20d,_0x3a84de[_0x2a8d('0x14')]);this['_addSuggestionMarker'](_0xaf73e7,_0x3ee4eb,_0x3171a7,_0x42b001);}else{if(_0x3a84de[_0x2a8d('0xd9')](_0x147f10[_0x2a8d('0x23')])){const _0x3f7848=this['_model']['createPositionAt'](_0x147f10[_0x2a8d('0x23')][_0x2a8d('0x0')],_0x2a8d('0x14'));this[_0x2a8d('0x40')](_0x4718b9,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x3a84de[_0x2a8d('0x23')],_0x3f7848));}else{const _0x48510e=this[_0x2a8d('0x50')][_0x2a8d('0xb6')](_0x147f10[_0x2a8d('0x14')][_0x2a8d('0xd')],_0x2a8d('0x1b'));this[_0x2a8d('0x40')](_0x4718b9,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x48510e,_0x3a84de[_0x2a8d('0x14')]));}}}}[_0x2a8d('0x34')](_0x889385){for(const {suggestion:_0x567d5,meta:_0x15c3fe}of this[_0x2a8d('0x2a')](_0x889385,_0x2a8d('0xf8'))){if(!_0x15c3fe[_0x2a8d('0x124')])continue;const _0x3ed507=_0x567d5[_0x2a8d('0xcb')]();for(const _0x36916c of _0x3ed507)if(!_0x889385[_0x2a8d('0x4b')](_0x36916c)[_0x2a8d('0x74')])return!0x0;}return!0x1;}[_0x2a8d('0x6c')](_0x452ab6){const _0x50bf79=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')]('Users')[_0x2a8d('0x11b')](_0x452ab6);if(!_0x50bf79)throw new _0x2dc620('track-changes-user-not-found',this);return _0x50bf79;}[_0x2a8d('0x136')](_0x2d7e7d){const _0x414c37=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')](_0x2a8d('0x7b')),_0x5d72bc=_0x3e1291('external:'+_0x2d7e7d),_0x3ba7b0=_0x414c37[_0x2a8d('0x11b')](_0x5d72bc);return _0x3ba7b0||_0x414c37[_0x2a8d('0x1d')]({'id':_0x5d72bc,'name':_0x2d7e7d});}[_0x2a8d('0xce')](_0x2edc25,_0x296b0c,_0x47f095,_0xa20659,_0x2ea1ac){const _0x19635e=this[_0x2a8d('0x6c')](_0xa20659),_0x438b03=this['_suggestionFactory'][_0x2a8d('0x9b')](_0x2edc25,_0x296b0c,_0x47f095,_0x19635e,_0x2ea1ac,_0x1c4f03=>this['_updateSuggestionData'](_0x47f095,{'attributes':_0x1c4f03}));return this['listenTo'](_0x438b03,_0x2a8d('0x18'),()=>{this[_0x2a8d('0xfa')](_0x47f095,{'state':_0x2a8d('0xd7')});},{'priority':_0x2a8d('0x117')}),this[_0x2a8d('0x5a')](_0x438b03,_0x2a8d('0x1c'),()=>{this['_updateSuggestionData'](_0x47f095,{'state':_0x2a8d('0x25')});},{'priority':_0x2a8d('0x117')}),this[_0x2a8d('0xb9')][_0x2a8d('0x114')](_0x47f095,_0x438b03),this[_0x2a8d('0xde')][_0x2a8d('0x114')](_0x438b03,_0x2a8d('0x77')),_0x438b03;}[_0x2a8d('0x45')](_0x2cac54){const _0x24575c=_0x2cac54[_0x2a8d('0x127')](':');return{'group':_0x24575c[0x0],'type':_0x24575c[0x1],'subType':_0x24575c[_0x2a8d('0x74')]>=0x5?_0x24575c[0x2]:null,'id':_0x24575c[_0x2a8d('0x74')]<0x5?_0x24575c[0x2]:_0x24575c[0x3],'authorId':_0x24575c['length']<0x5?_0x24575c[0x3]:_0x24575c[0x4],'markerCount':0x6==_0x24575c[_0x2a8d('0x74')]?_0x24575c[0x5]:null};}[_0x2a8d('0x43')](_0x1b6591,_0x4fef28,_0x14f874){const _0x198507=_0x1b6591[_0x2a8d('0x9c')](),_0xa08b5a=_0x198507['start'],_0x3abd07=_0x198507[_0x2a8d('0x14')];this['_setSuggestionRange'](_0x1b6591,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0xa08b5a,_0x4fef28));const _0x47bf2c=_0x5b25c0(),_0x1bf472=_0x1b6591[_0x2a8d('0x115')]['id'],_0x2d4e53=_0x1b6591[_0x2a8d('0x131')]+(_0x1b6591[_0x2a8d('0x28')]?':'+_0x1b6591['subType']:'');this[_0x2a8d('0x13')]({'id':_0x47bf2c,'type':_0x2d4e53,'createdAt':new Date(),'authorId':_0x1bf472,'originalSuggestionId':_0x1b6591['id'],'attributes':_0x1b6591[_0x2a8d('0x12f')],'data':_0x1b6591[_0x2a8d('0xb8')]}),'formatBlock'==_0x1b6591[_0x2a8d('0x131')]&&(_0x14f874=this[_0x2a8d('0x50')]['createPositionBefore'](_0x14f874['parent'])),this['_addSuggestionMarker'](_0x2d4e53,_0x47bf2c,_0x1bf472,this[_0x2a8d('0x50')]['createRange'](_0x14f874,_0x3abd07));}[_0x2a8d('0x2a')](_0x29b922,_0x106cae=null){const _0x54c5cd=[],_0xe84455=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')]('Users')['me'];Array[_0x2a8d('0xd0')](_0x29b922)||(_0x29b922=[_0x29b922]);for(const _0x5f1dfb of this[_0x2a8d('0x130')]()){if(!_0x5f1dfb[_0x2a8d('0x95')])continue;if(_0x106cae&&_0x5f1dfb['type']!=_0x106cae)continue;let _0xeff617=!0x1;for(const _0x2f2b9c of _0x5f1dfb[_0x2a8d('0xcb')]()){for(const _0x1c040a of _0x29b922){const _0x4ea669=_0x1c040a[_0x2a8d('0x23')][_0x2a8d('0xff')](_0x2f2b9c[_0x2a8d('0x14')])||_0x1c040a['end']['isEqual'](_0x2f2b9c[_0x2a8d('0x23')]);if(_0x4ea669||_0x1c040a[_0x2a8d('0x1f')](_0x2f2b9c)){const _0x5b74ea=_0x1c040a['containsRange'](_0x2f2b9c)&&_t(this[_0x2a8d('0x50')][_0x2a8d('0xd1')],_0x2f2b9c[_0x2a8d('0x23')],_0x1c040a),_0x553107=_0x2f2b9c[_0x2a8d('0xad')](_0x1c040a)&&_t(this[_0x2a8d('0x50')][_0x2a8d('0xd1')],_0x1c040a['start'],_0x2f2b9c);_0x54c5cd[_0x2a8d('0x8d')]({'suggestion':_0x5f1dfb,'meta':{'isOwn':_0xe84455==_0x5f1dfb[_0x2a8d('0xdb')],'isNextTo':_0x4ea669,'isInsideObject':_0x5b74ea,'containsRangeInObject':_0x553107}}),_0xeff617=!0x0;break;}}if(_0xeff617)break;}}return _0x54c5cd;}['_addSuggestionMarker'](_0x1a026c,_0x148aac,_0x132e3c,_0x5c7bb2,_0x2215be){this[_0x2a8d('0x50')][_0x2a8d('0xb7')](_0x1dd876=>{let _0x13cf3b=_0x2a8d('0x10')+_0x1a026c+':'+_0x148aac+':'+_0x132e3c;_0x2215be&&(_0x13cf3b=_0x13cf3b+':'+_0x2215be),_0x1dd876[_0x2a8d('0xa')](_0x13cf3b,{'range':_0x5c7bb2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3d7428){const _0x4dd427=_0x3d7428[_0x2a8d('0x8c')],_0x2006fb=_0x3d7428['next'];_0x3d7428[_0x2a8d('0x8c')]=null,null!=_0x4dd427&&(_0x4dd427[_0x2a8d('0xe4')]=null),_0x3d7428[_0x2a8d('0xe4')]=null,null!=_0x2006fb&&(_0x2006fb['previous']=null),_0x2a8d('0x9f')==this[_0x2a8d('0xde')]['get'](_0x3d7428)&&(this[_0x2a8d('0xde')]['set'](_0x3d7428,_0x2a8d('0x51')),this[_0x2a8d('0xcf')]('suggestionUnloaded',_0x3d7428,_0x4dd427,_0x2006fb));}[_0x2a8d('0x13')](_0x3b3f20){const _0x327e40=_0x3b3f20['id'],_0x44c71f=this[_0x2a8d('0x8')](_0x3b3f20);if(this[_0x2a8d('0x8b')]&&this[_0x2a8d('0x8b')][_0x2a8d('0xa3')]){const _0x15387d=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')]('PendingActions'),_0x5b596b=_0x44c71f[_0x2a8d('0xf3')],_0x873c88=_0x44c71f['subType']?_0x44c71f['type']+':'+_0x44c71f[_0x2a8d('0x28')]:_0x44c71f[_0x2a8d('0x131')],_0x2694c7=this['editor'][_0x2a8d('0xef')],_0x483512=_0x15387d[_0x2a8d('0x65')](_0x4c2a35(_0x2694c7,_0x2a8d('0x29'))),_0x111c98={'id':_0x327e40,'type':_0x873c88,'hasComments':_0x5b596b,'data':_0x3b3f20[_0x2a8d('0xb8')]||null,'originalSuggestionId':_0x3b3f20['originalSuggestionId']||null,'attributes':_0x44c71f[_0x2a8d('0x12f')]};this['_adapter'][_0x2a8d('0xa3')](_0x111c98)[_0x2a8d('0xd8')](_0x1c257e=>{_0x44c71f[_0x2a8d('0x58')]=!0x0,_0x15387d[_0x2a8d('0x38')](_0x483512),_0x1c257e&&_0x1c257e[_0x2a8d('0xf6')]&&(this['_suggestions']['get'](_0x327e40)[_0x2a8d('0xf6')]=_0x1c257e[_0x2a8d('0xf6')]);})[_0x2a8d('0x1a')](_0x121a3b=>{throw _0xb39196(_0x2a8d('0x62')),this['editor'][_0x2a8d('0xcc')][_0x2a8d('0x108')]({'isUndoable':!0x1},()=>{_0x44c71f[_0x2a8d('0x1c')]();}),_0x44c71f[_0x2a8d('0xee')](),this['_suggestions']['delete'](_0x44c71f['id']),this[_0x2a8d('0xde')]['delete'](_0x44c71f),_0x121a3b;});}return _0x44c71f;}[_0x2a8d('0xfa')](_0x1c9b88,_0x5a0eab){const _0x1c0c03=this[_0x2a8d('0x7')][_0x2a8d('0x3')][_0x2a8d('0x4')](_0x2a8d('0x109')),_0x59d3ce=this[_0x2a8d('0x101')](_0x1c9b88);if(this[_0x2a8d('0x8b')]&&this[_0x2a8d('0x8b')][_0x2a8d('0x81')]){if(_0x59d3ce['_saved']){const _0x173f3e=_0x1c0c03[_0x2a8d('0x65')](_0x4c2a35(this[_0x2a8d('0x7')][_0x2a8d('0xef')],'PENDING_ACTION_SUGGESTION'));this[_0x2a8d('0x8b')][_0x2a8d('0x81')](_0x1c9b88,_0x5a0eab)['then'](()=>{_0x1c0c03['remove'](_0x173f3e);});}else _0x59d3ce['on'](_0x2a8d('0x10d'),()=>{this[_0x2a8d('0xfa')](_0x1c9b88,_0x5a0eab);});}}[_0x2a8d('0x19')](_0x40a970){if(!this['_adapter']||!this[_0x2a8d('0x8b')][_0x2a8d('0x101')])throw new _0x2dc620(_0x2a8d('0xfd'),this);return this[_0x2a8d('0x8b')]['getSuggestion'](_0x40a970);}[_0x2a8d('0x69')](_0x4f8411){const {id:_0x3b2f5b,type:_0x42904b,subType:_0x191bf3,authorId:_0x53f01e}=this[_0x2a8d('0x45')](_0x4f8411),_0x4b7a0e=this['_suggestions']['get'](_0x3b2f5b)||this[_0x2a8d('0xce')](_0x42904b,_0x191bf3,_0x3b2f5b,_0x53f01e,{});switch(this[_0x2a8d('0x134')](_0x4b7a0e,_0x42904b,_0x191bf3,_0x53f01e),this[_0x2a8d('0xde')]['get'](_0x4b7a0e)){case _0x2a8d('0x77'):this['_getSuggestionData'](_0x3b2f5b)[_0x2a8d('0xd8')](_0x1b6f3e=>{let _0x486e5f=Promise[_0x2a8d('0xf7')]();_0x1b6f3e[_0x2a8d('0xf3')]&&(_0x486e5f=this['_commentsRepository']['fetchCommentThread']({'channelId':this[_0x2a8d('0x7')]['config']['get'](_0x2a8d('0x48')),'threadId':_0x3b2f5b})),_0x486e5f['then'](()=>{this[_0x2a8d('0x8')](_0x1b6f3e)[_0x2a8d('0x58')]=!0x0;});}),this[_0x2a8d('0xde')][_0x2a8d('0x114')](_0x4b7a0e,_0x2a8d('0xf5'));break;case _0x2a8d('0x51'):this['_updateSuggestionData'](_0x3b2f5b,{'state':_0x2a8d('0x110')});case'dataReady':this[_0x2a8d('0xde')]['set'](_0x4b7a0e,_0x2a8d('0x9f')),this[_0x2a8d('0xcf')](_0x2a8d('0x128'),_0x4b7a0e);break;case'ready':this['fire']('suggestionChanged',_0x4b7a0e);}return _0x4b7a0e[_0x2a8d('0x113')](_0x4f8411),_0x4b7a0e;}[_0x2a8d('0x91')](_0x168e4d){const _0x3f8047=Array[_0x2a8d('0x2e')](_0x168e4d)['filter'](_0x28a78c=>!_0x28a78c['isMultiRange']),_0x13e81d=this[_0x2a8d('0x130')]({'skipNotAttached':!0x0})[_0x2a8d('0xc1')](_0xb06343=>!_0xb06343[_0x2a8d('0x30')]),_0x465aa6=_0x13e81d['filter'](_0x1390d1=>!_0x168e4d[_0x2a8d('0x10e')](_0x1390d1)),_0x5e2f33=new Map(_0x13e81d[_0x2a8d('0xf4')](_0x4ec2be=>[_0x4ec2be,this[_0x2a8d('0x24')][_0x2a8d('0xcd')](_0x4ec2be[_0x2a8d('0x131')],_0x4ec2be[_0x2a8d('0x28')],_0x2a8d('0x3d'))])),_0xeb28d4=new Map(_0x13e81d['map'](_0x5e99c5=>[_0x5e99c5,_0x5e99c5['getFirstRange']()])),_0x46a903=new Set(),_0xb15c37=new Set();for(let _0x452e9d=0x0;_0x452e9d<_0x3f8047[_0x2a8d('0x74')];_0x452e9d++)_0x21ff27(_0x3f8047[_0x452e9d],_0x3f8047,_0x452e9d+0x1);for(let _0x993135=0x0;_0x993135<_0x3f8047[_0x2a8d('0x74')];_0x993135++)_0x21ff27(_0x3f8047[_0x993135],_0x465aa6,0x0);for(let _0x38df3c=0x0;_0x38df3c<_0x3f8047[_0x2a8d('0x74')];_0x38df3c++){const _0x2caa71=_0x3f8047[_0x38df3c];!_0xb15c37['has'](_0x2caa71)&&_0x2caa71[_0x2a8d('0x8c')]&&(_0x2caa71['previous'][_0x2a8d('0xe4')]===_0x2caa71&&(_0x2caa71['previous'][_0x2a8d('0xe4')]=null),_0x2caa71[_0x2a8d('0x8c')]=null),!_0x46a903[_0x2a8d('0x10e')](_0x2caa71)&&_0x2caa71[_0x2a8d('0xe4')]&&(_0x2caa71[_0x2a8d('0xe4')][_0x2a8d('0x8c')]===_0x2caa71&&(_0x2caa71[_0x2a8d('0xe4')][_0x2a8d('0x8c')]=null),_0x2caa71['next']=null);}function _0x21ff27(_0x51a3ba,_0x4d6d45,_0xb2dab7){for(let _0x4f7c1f=_0xb2dab7;_0x4f7c1f<_0x4d6d45['length'];_0x4f7c1f++){const _0x3348f5=_0x2d94aa(_0x51a3ba,_0x4d6d45[_0x4f7c1f]);_0x3348f5&&(_0x3348f5[0x0][_0x2a8d('0xe4')]=_0x3348f5[0x1],_0x3348f5[0x1][_0x2a8d('0x8c')]=_0x3348f5[0x0],_0x46a903[_0x2a8d('0x65')](_0x3348f5[0x0]),_0xb15c37[_0x2a8d('0x65')](_0x3348f5[0x1]));}}function _0x2d94aa(_0x3e10cd,_0x140525){if(_0x3e10cd[_0x2a8d('0xdb')]['id']!==_0x140525[_0x2a8d('0xdb')]['id'])return null;const _0x18a0aa=_0x5e2f33['get'](_0x3e10cd)(_0x3e10cd,_0x140525,_0xeb28d4[_0x2a8d('0x4')](_0x3e10cd),_0xeb28d4[_0x2a8d('0x4')](_0x140525));if(!_0x18a0aa)return null;return _0x5e2f33[_0x2a8d('0x4')](_0x140525)(_0x3e10cd,_0x140525,_0xeb28d4[_0x2a8d('0x4')](_0x3e10cd),_0xeb28d4[_0x2a8d('0x4')](_0x140525))?_0x18a0aa[0x1][_0x2a8d('0x86')]&&_0x18a0aa[0x1][_0x2a8d('0x86')][_0x2a8d('0x74')]?null:_0x18a0aa:null;}}[_0x2a8d('0xc9')](_0x54ab1d){const _0x830f02=Array['from'](_0x54ab1d),_0x458d08=this[_0x2a8d('0x130')]({'skipNotAttached':!0x0}),_0x5dac71=_0x458d08[_0x2a8d('0xc1')](_0x246020=>!_0x54ab1d[_0x2a8d('0x10e')](_0x246020)),_0x1c6015=new Map(_0x830f02['map'](_0x3fd596=>[_0x3fd596,this['_suggestionFactory'][_0x2a8d('0xcd')](_0x3fd596['type'],_0x3fd596[_0x2a8d('0x28')],_0x2a8d('0xae'))])),_0x408bc1=new Map(_0x458d08['map'](_0x3090b7=>[_0x3090b7,_0x3090b7[_0x2a8d('0xcb')]()]));for(let _0x3947df=0x0;_0x3947df<_0x830f02[_0x2a8d('0x74')];_0x3947df++){if(_0x2b5c31(this,_0x830f02[_0x3947df],_0x830f02,_0x3947df+0x1))return!0x0;}for(let _0x3e812f=0x0;_0x3e812f<_0x830f02[_0x2a8d('0x74')];_0x3e812f++){if(_0x2b5c31(this,_0x830f02[_0x3e812f],_0x5dac71,0x0))return!0x0;}return!0x1;function _0x2b5c31(_0xc129a,_0x158707,_0x32ca60,_0x1cc4e2){for(let _0x5ebbc0=_0x1cc4e2;_0x5ebbc0<_0x32ca60[_0x2a8d('0x74')];_0x5ebbc0++){const _0x39b836=_0x32ca60[_0x5ebbc0];if(_0x39b836[_0x2a8d('0x131')]!==_0x158707[_0x2a8d('0x131')]||_0x39b836[_0x2a8d('0xdb')]['id']!==_0x158707[_0x2a8d('0xdb')]['id']||_0x39b836[_0x2a8d('0x28')]!==_0x158707[_0x2a8d('0x28')])continue;if(!Ut(_0x158707,_0x39b836))continue;const _0x2551b4=_0x1c6015['get'](_0x158707),_0x133cee=_0x408bc1[_0x2a8d('0x4')](_0x158707),_0x328601=_0x408bc1[_0x2a8d('0x4')](_0x39b836),_0x122943=_0x158707[_0x2a8d('0x86')]&&_0x158707[_0x2a8d('0x86')]['length'],_0x40d295=_0x39b836[_0x2a8d('0x86')]&&_0x39b836[_0x2a8d('0x86')][_0x2a8d('0x74')];if(!_0x122943&&_0x2551b4(_0x328601,_0x133cee))return _0xc129a[_0x2a8d('0x67')](_0x39b836,_0x158707),_0x408bc1['delete'](_0x158707),!0x0;if(!_0x40d295&&_0x2551b4(_0x133cee,_0x328601))return _0xc129a[_0x2a8d('0x67')](_0x158707,_0x39b836),_0x408bc1['delete'](_0x39b836),!0x0;}return!0x1;}}[_0x2a8d('0x67')](_0x40ec58,_0x3d421d){if(_0x40ec58[_0x2a8d('0x30')])for(const _0x395b2c of _0x3d421d[_0x2a8d('0xcb')]())_0x40ec58[_0x2a8d('0x46')](_0x395b2c);else{const _0x319416=_0x3d421d[_0x2a8d('0x9c')]()['end'];this[_0x2a8d('0x40')](_0x40ec58,this[_0x2a8d('0x50')][_0x2a8d('0x12b')](_0x40ec58[_0x2a8d('0x9c')]()[_0x2a8d('0x23')],_0x319416));}_0x3d421d[_0x2a8d('0x9a')]();}}class Bt{constructor(_0x21c4c1){this[_0x2a8d('0x36')]=_0x21c4c1,this[_0x2a8d('0x50')]=_0x21c4c1[_0x2a8d('0xcc')],this[_0x2a8d('0x52')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x2a8d('0xc7')]();}[_0x2a8d('0x9b')](_0x1a006b,_0x1b62dc,_0x390eee,_0x59e92d,_0x468fac,_0x49130d){return new _0xc5d2f7(this[_0x2a8d('0x50')],{'type':_0x1a006b,'subType':_0x1b62dc,'id':_0x390eee,'author':_0x59e92d,'creator':_0x59e92d,'attributes':_0x468fac,'onAttributesChange':_0x49130d,'onAccept':(..._0x50747d)=>this[_0x2a8d('0xcd')](_0x1a006b,_0x1b62dc,_0x2a8d('0x18'))(..._0x50747d),'onDiscard':(..._0x4ed8fc)=>this[_0x2a8d('0xcd')](_0x1a006b,_0x1b62dc,_0x2a8d('0x1c'))(..._0x4ed8fc)});}[_0x2a8d('0x1')](_0x5c1a14,_0x3bd9cc,_0x29f439,_0x138eab){const _0x457f0a=_0x5c1a14+':'+_0x3bd9cc+':'+_0x29f439;this[_0x2a8d('0x52')][_0x2a8d('0x114')](_0x457f0a,_0x138eab);}[_0x2a8d('0xcd')](_0x5bf301,_0x55800b,_0x323532){const _0x2cf7cb=_0x5bf301+':'+_0x55800b+':'+_0x323532;return this[_0x2a8d('0x52')][_0x2a8d('0x4')](_0x2cf7cb)||this[_0x2a8d('0x57')]['get'](_0x5bf301+':'+_0x323532);}[_0x2a8d('0xc7')](){const _0x336f81=()=>!0x1,_0x25b9e2=_0x5a99a1=>{_0x5a99a1[_0x2a8d('0x11c')]((_0x26d4e9,_0x1232f8)=>_0x26d4e9[_0x2a8d('0x23')][_0x2a8d('0x2b')](_0x1232f8[_0x2a8d('0x23')])?0x1:-0x1),this[_0x2a8d('0x50')]['change'](_0x3b0268=>{for(const _0x3239e8 of _0x5a99a1){let _0x572ec6;_0x572ec6=_0x3239e8[_0x2a8d('0x14')][_0x2a8d('0xe3')]&&_0x3239e8[_0x2a8d('0x14')][_0x2a8d('0xd')]==_0x3239e8[_0x2a8d('0x23')]['nodeAfter']?_0x3b0268[_0x2a8d('0x5')](_0x3239e8['start'][_0x2a8d('0x126')],'on'):_0x3b0268['createSelection'](_0x3239e8),this[_0x2a8d('0x50')][_0x2a8d('0x3e')](_0x572ec6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3d961f=(_0x5728fe,_0x24183a)=>{this[_0x2a8d('0x50')][_0x2a8d('0xb7')](_0x2510fd=>{const {commandName:_0x10a819,commandParams:_0x4d05e2=[]}=_0x24183a,_0x44c944=_0x5728fe[_0x2a8d('0xf4')](_0x2b24ab=>(Mt(_0x2b24ab)&&(_0x2b24ab=this[_0x2a8d('0x50')]['createRange'](_0x2b24ab['end'])),_0x2b24ab))[_0x2a8d('0xc1')](_0x26693d=>_0x2a8d('0xd5')!==_0x26693d[_0x2a8d('0x13b')]['rootName']);if(_0x44c944['length']<0x1)return;const _0x4a107d=Array[_0x2a8d('0x2e')](this['_model'][_0x2a8d('0x8a')][_0x2a8d('0xd3')][_0x2a8d('0xcb')]())[_0x2a8d('0xf4')](_0x3cbf64=>_0x26055e['fromRange'](_0x3cbf64));_0x2510fd[_0x2a8d('0x37')](_0x44c944);for(const _0x20788e of this[_0x2a8d('0x36')][_0x2a8d('0x11e')][_0x2a8d('0x11e')]())_0x20788e[_0x2a8d('0x2c')]();_0x4d05e2['push']({'forceDefaultExecution':!0x0}),this[_0x2a8d('0x36')][_0x2a8d('0xa1')](_0x10a819,..._0x4d05e2);const _0x1a6c7c=_0x4a107d[_0x2a8d('0xc1')](_0xe7deb1=>_0x2a8d('0xd5')!=_0xe7deb1[_0x2a8d('0x13b')][_0x2a8d('0x5e')]);_0x1a6c7c[_0x2a8d('0x74')]>0x0&&_0x2510fd[_0x2a8d('0x37')](_0x1a6c7c);for(const _0x1b5780 of _0x4a107d)_0x1b5780[_0x2a8d('0xbe')]();});},_0x47d257=(_0x2cdb44,_0x5abaef)=>0x1==_0x2cdb44[_0x2a8d('0x74')]&&0x1==_0x5abaef['length']&&_0x2cdb44[0x0][_0x2a8d('0x14')][_0x2a8d('0xff')](_0x5abaef[0x0]['start']),_0x429a09=(_0x193b2f,_0x432f4c,_0x486a81,_0x49b517)=>xt(_0x193b2f,_0x432f4c,_0x486a81,_0x49b517,this[_0x2a8d('0x50')])?[_0x193b2f,_0x432f4c]:xt(_0x432f4c,_0x193b2f,_0x49b517,_0x486a81,this[_0x2a8d('0x50')])?[_0x432f4c,_0x193b2f]:null;this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0x13d'),_0x336f81),this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0x75'),_0x25b9e2),this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0x3c'),_0x47d257),this['_defaultCallbacks'][_0x2a8d('0x114')](_0x2a8d('0x9e'),_0x429a09),this[_0x2a8d('0x57')]['set'](_0x2a8d('0xc2'),_0x25b9e2),this['_defaultCallbacks']['set']('deletion:discard',_0x336f81),this[_0x2a8d('0x57')][_0x2a8d('0x114')]('deletion:join',_0x47d257),this['_defaultCallbacks'][_0x2a8d('0x114')]('deletion:chain',_0x429a09),this['_defaultCallbacks']['set'](_0x2a8d('0x5f'),_0x3d961f),this[_0x2a8d('0x57')]['set'](_0x2a8d('0xfb'),_0x336f81),this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0xb3'),_0x47d257),this[_0x2a8d('0x57')]['set']('formatInline:chain',_0x336f81),this[_0x2a8d('0x57')]['set'](_0x2a8d('0x122'),_0x3d961f),this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0x27'),_0x336f81),this[_0x2a8d('0x57')][_0x2a8d('0x114')]('formatBlock:join',_0x47d257),this[_0x2a8d('0x57')][_0x2a8d('0x114')](_0x2a8d('0xc8'),_0x336f81);}}function _t(_0x49d52e,_0x4fc203,_0x2259a1){for(const _0x4b2dab of _0x4fc203[_0x2a8d('0xd')][_0x2a8d('0x87')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4b2dab['root']==_0x4b2dab)return!0x1;if(!_0x2259a1[_0x2a8d('0x6b')](_0x4b2dab))return!0x1;if(_0x49d52e[_0x2a8d('0x13a')](_0x4b2dab)||_0x49d52e['isLimit'](_0x4b2dab))return!0x0;}return!0x1;}function Mt(_0x4092ff){return _0x4092ff['end'][_0x2a8d('0xd')]==_0x4092ff[_0x2a8d('0x23')][_0x2a8d('0x126')]&&_0x4092ff['end'][_0x2a8d('0xa2')];}function $t(_0x2b986a,_0x58e8ed,_0x1a25cb,_0xc6c4ed){const _0x2fd102=_0x535738=>!_0x535738[_0x2a8d('0x112')]['is']('$textProxy')&&!_0xc6c4ed[_0x2a8d('0x13a')](_0x535738['item']),_0x581340=_0x2b986a[_0x2a8d('0x23')][_0x2a8d('0x3b')](_0x2fd102),_0x561ac5=_0x2b986a[_0x2a8d('0x14')][_0x2a8d('0x3b')](_0x2fd102,{'direction':'backward'});return(!_0x2b986a[_0x2a8d('0x23')][_0x2a8d('0xff')](_0x581340)||!_0x2b986a[_0x2a8d('0x14')][_0x2a8d('0xff')](_0x561ac5))&&(_0x581340[_0x2a8d('0x2b')](_0x561ac5)?_0x1a25cb[_0x2a8d('0xd4')](_0x58e8ed,{'range':_0x1a25cb[_0x2a8d('0x12b')](_0x581340,_0x561ac5)}):_0x1a25cb['removeMarker'](_0x58e8ed),!0x0);}function Nt(_0x4451ba){return _0x3e1291(_0x4451ba);}function Rt(_0x2bfba4){const _0x37a91b=_0x2bfba4['start'][_0x2a8d('0x126')];return _0x37a91b&&_0x37a91b['is'](_0x2a8d('0x11a'));}function jt(_0x1dd998,_0x3fb2ed){const _0x3049af=_0x3fb2ed[_0x2a8d('0xd1')]['isObject'](_0x1dd998)||_0x3fb2ed['schema'][_0x2a8d('0xb5')](_0x1dd998);return _0x3fb2ed[_0x2a8d('0x12b')](_0x3fb2ed[_0x2a8d('0xb6')](_0x1dd998,'before'),_0x3049af?_0x3fb2ed[_0x2a8d('0xf0')](_0x1dd998):_0x3fb2ed[_0x2a8d('0xb6')](_0x1dd998,_0x2a8d('0x14')));}function xt(_0x4026e5,_0x189375,_0x39f411,_0x32fc37,_0x5de4e7){if(!Ut(_0x4026e5,_0x189375))return!0x1;if(_0x39f411[_0x2a8d('0x14')]['isEqual'](_0x32fc37['start']))return!0x0;if(_0x4026e5[_0x2a8d('0x131')]!=_0x189375[_0x2a8d('0x131')])return!0x1;if(!_0x39f411['end']['isTouching'](_0x32fc37['start']))return!0x1;const _0x282152=_0x5de4e7['createRange'](_0x39f411['end'],_0x32fc37['start'])[_0x2a8d('0x39')]();for(const _0x1cfcbc of _0x282152)if([_0x2a8d('0xa6'),'elementEnd'][_0x2a8d('0xd2')](_0x1cfcbc[_0x2a8d('0x131')])&&_0x5de4e7[_0x2a8d('0xd1')][_0x2a8d('0x59')](_0x1cfcbc['item']))return!0x1;return!0x0;}function Ut(_0x56ba7f,_0x12e795){return!(!_0x56ba7f[_0x2a8d('0x11d')]||!_0x12e795['_isDataLoaded'])&&_0x40833b(_0x56ba7f[_0x2a8d('0x12f')],_0x12e795[_0x2a8d('0x12f')]);}function Ot(_0x4aaee2,_0x51738a){const _0x38b598=Et(_0x4aaee2[_0x2a8d('0x12f')]),_0x3e8ffa=Et(_0x51738a);if(!_0x4aaee2[_0x2a8d('0x11d')])return!0x1;for(const _0x48da28 of Object['keys'](_0x3e8ffa))if(!_0x40833b(_0x38b598[_0x48da28],_0x3e8ffa[_0x48da28]))return!0x1;return!0x0;}function Et(_0x4492ba){const _0x4b5f02=Object[_0x2a8d('0xc0')]({},_0x4492ba);return delete _0x4b5f02[_0x2a8d('0x12e')],delete _0x4b5f02['tablePasteChainId'],_0x4b5f02;}
23
+ const _0x544a=['split','formatInline:chain','getFirstRange','suggestion-type','return','_suggestions','editingDowncast','_splitMarkerName','collaboration.channelId','addMarker','deletion:','setTo','nodeBefore','change:_saved','fromCharCode','highest','move','accept','_commentsRepository','filter','isArray','schema','addMarkerName','consumable','registerPostFixer','listenTo','reconvertMarker','fetchCommentThread','data','_isDataLoaded','acceptSuggestion','isBlock','enqueueChange','type','plugins','PENDING_ACTION_SUGGESTION','assign','isOwn','editor','trackChangesCommand','selection','getFirstMarker','insertion:chain','addSuggestionData','change:data','never','deletion:join','getRange','_trackFormatChanges','@external','consume','for','isUndo','containsRange','_customCallbacks','rethrowUnexpectedError','isCollapsed','includes','elementStart','isAtEnd','updateSuggestion','delete','formatGroupId','element','suggestionLoaded','substr','containerElement','document','markerReady','sort','formatBlock','normal','addMarker:suggestion','unbindElementFromMarkerName','track-changes-suggestion-data-mismatch','markerNameToElements','removeMarkers','_editor','addComment','insertion:','targetPosition','enableReadOnlyMode','_createSuggestion','_setSuggestionRange','suggestion','getDifference','isMultiRange','_model','markInsertion','formatInline:','open','model','isObject','high','_getAuthorFromId','forceDefaultExecution','writer','markDeletion','deletion','_joinSuggestions','isDocumentOperation','getCommentThread','next','addRange','removeMarker','getSuggestionCallback','_onDiscard','authoredAt','formatBlock:chain','multi','getIntersection','change:activeMarkers','_mergeNestedSuggestions','low','add','creator','range','insert','execute','markMultiRangeInsertion','originalSuggestionId','addUser','_rangeIsInLocalUserInsertion','containsRangeInObject','isEqual','before','always','values','dataReady','isInsideObject','addMarker:suggestion:formatBlock','$textProxy','CommentsRepository','_adapter','position','formatBlock:','_enabledCommands','notReady','differ','upcast','splice','markerName','value','containsPosition','default','_joinWithAdjacentSuggestions','isRemovable','acceptSelectedSuggestions','_handleNewSuggestionMarker','detach','name','getAllAdjacentSuggestions','resolve','stopListening','containsItem','dataToMarker','group','toJSON','unbind','documentSelection','formatBlock:accept','length','commands','commandName','elementToElement','some','pluginName','insertion','formatInline','_breakSuggestionMarker','marker-count','addSuggestion','createRange','end','rootName','dataDowncast','ck-suggestion-marker-','then','setSelection','markers','bindElementToMarker','formatInline:accept','track-changes-suggestion-not-found','removed','data-suggestion','accepted','isLimit','_refreshSuggestionsChain','getChangedMarkers','isNextTo','getSuggestions','_addSuggestionMarker','isIntersectingWithRange','getMultiRangeId','markMultiRangeBlockFormat','head','ck-suggestion-marker-formatBlock','isLocal','discardSelectedSuggestions','createSelection','_isForcedDefaultExecutionBlock','toViewElement','item','_getExternalAuthor','track-changes-user-not-found','_defaultCallbacks','_saved','splitPosition','Users','isSelectable','remove','suggestionChanged','createdAt','trackChanges','multipleBlocks','backward','_descriptionFactory','isAtStart','createPositionAfter','_addThreadToSuggestion','author','isExternal','push','get','size','deletion:accept','fire','forward','setAttribute','previous','join','authorName','trackChanges.trackFormatChanges','applyOperation','_registerDefaultCallbacks','widget','getLastMatchingPosition','_checkSuggestionCorrectness','start','attributes','root','refresh','deletion:chain','_updateSuggestionData','showSuggestionHighlights','getAttribute','_removeSuggestion','getNearestSelectionRange','getChanges','_suggestionFactory','updateMarker','TrackChangesEditing','has','define','config','requires','ready','mapper','clear','lowest','options','getUser','createPositionAt','ck-suggestion-marker--active','error-saving-suggestion-data-suggestion-discarded','parent','after','_suggestionState','addClass','set','ck-suggestion-marker','discardSuggestion','adapter','isInContent','PendingActions','addHighlight','change','from','update:suggestion','removeMarker:suggestion:formatBlock','getShiftedBy','conversion','_setSuggestionData','newRange','stop','fromRange','_cutOutSuggestionMarker','suggestion:','acceptAllSuggestions','trackChanges.mergeNestedSuggestions','enableCommand','map','markMultiRangeDeletion','$graveyard','insertion:discard','every','getRanges','activeMarkers','init','track-changes-adapter-missing-getsuggestion','deleteContent','getMarkers','getWalker','getSuggestion','moveTargetPosition','editing','skipNestingCheck','subType','nodeAfter','isBefore','_findSuggestions','discardAllSuggestions','discard','_getSuggestionData','isAfter','keys','$marker','batch','commentThread','oldRange','isTouching','locale'];(function(_0x8b78b8,_0x544a83){const _0x136e21=function(_0x38330){while(--_0x38330){_0x8b78b8['push'](_0x8b78b8['shift']());}};_0x136e21(++_0x544a83);}(_0x544a,0x88));const _0x136e=function(_0x8b78b8,_0x544a83){_0x8b78b8=_0x8b78b8-0x0;let _0x136e21=_0x544a[_0x8b78b8];return _0x136e21;};import{Plugin as _0x3a5f12,PendingActions as _0x4b646f}from'ckeditor5/src/core';import{LiveRange as _0x29be02}from'ckeditor5/src/engine';import{CKEditorError as _0x22b8c7,uid as _0x354618,priorities as _0x115b37,logWarning as _0x5a5021}from'ckeditor5/src/utils';import{toWidget as _0x5d25eb}from'ckeditor5/src/widget';import{Users as _0x208cf5,hashObject as _0x299fef}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b93cb from'./commands/trackchangescommand';import _0x1dd3f0 from'./commands/acceptsuggestioncommand';import _0x1c7d38 from'./commands/discardsuggestioncommand';import _0x2e1d64 from'./commands/executeonallsuggestionscommand';import _0x4b8353 from'./commands/executeonselectedsuggestionscommand';import _0x38d814 from'./suggestion';import _0x42d1b9 from'./suggestiondescriptionfactory';import _0x30bc12 from'./integrations/aiassistant';import _0xe85023 from'./integrations/alignment';import _0x3a69da from'./integrations/basicstyles';import _0x43500d from'./integrations/blockquote';import _0x6643a4 from'./integrations/ckbox';import _0x2974e6 from'./integrations/codeblock';import _0x28a640 from'./integrations/comments';import _0x84c1bf from'./integrations/deletecommand';import _0x322a3f from'./integrations/documentlist';import _0x445109 from'./integrations/entercommand';import _0x3c5a8f from'./integrations/findandreplace';import _0x364822 from'./integrations/font';import _0x1f69ef from'./integrations/formatpainter';import _0x248709 from'./integrations/heading';import _0x1f60ad from'./integrations/highlight';import _0x11f6cf from'./integrations/horizontalline';import _0x39d042 from'./integrations/htmlembed';import _0xd068eb from'./integrations/image';import _0x54eb59 from'./integrations/imagereplace';import _0x2c82ea from'./integrations/importword';import _0x115c4b from'./integrations/indent';import _0x4c178e from'./integrations/inputcommand';import _0x562815 from'./integrations/link';import _0x115bff from'./integrations/list';import _0x3aea83 from'./integrations/listproperties';import _0x2f39f1 from'./integrations/mediaembed';import _0x373f09 from'./integrations/mention';import _0x962660 from'./integrations/pagebreak';import _0x551e8c from'./integrations/paragraph';import _0x5f4db8 from'./integrations/removeformat';import _0x2ef65c from'./integrations/restrictededitingmode';import _0x172814 from'./integrations/shiftentercommand';import _0x2e0e62 from'./integrations/standardeditingmode';import _0x3ed66a from'./integrations/style';import _0x2c87dd from'./integrations/table';import _0x1d29ca from'./integrations/tablemergesplit';import _0x33935c from'./integrations/tableheadings';import _0x4ba4bb from'./integrations/tableclipboard';import _0x15fecd from'./integrations/tablecolumnresize';import _0x356c9c from'./integrations/template';import _0xb48820 from'./integrations/tableofcontents';import _0x2bd791 from'./integrations/title';import _0x5c36df from'./integrations/undo';import{getTranslation as _0x302a9d}from'./utils/common-translations';import _0x2d6f83 from'./integrations/tablecaption';import _0x413505 from'./integrations/documentlistproperties';import _0x41dec4 from'./integrations/tableproperties';import{isEqual as _0x548309}from'lodash-es';export default class p extends _0x3a5f12{static get[_0x136e('0x77')](){return[_0x136e('0x13e'),_0x208cf5,_0x4b646f,_0x30bc12,_0xe85023,_0x3a69da,_0x43500d,_0x6643a4,_0x2974e6,_0x28a640,_0x84c1bf,_0x322a3f,_0x413505,_0x445109,_0x3c5a8f,_0x364822,_0x1f69ef,_0x248709,_0x1f60ad,_0x11f6cf,_0x39d042,_0xd068eb,_0x54eb59,_0x2c82ea,_0x115c4b,_0x4c178e,_0x562815,_0x115bff,_0x3aea83,_0x2f39f1,_0x373f09,_0x962660,_0x551e8c,_0x5f4db8,_0x2ef65c,_0x172814,_0x2e0e62,_0x3ed66a,_0x2c87dd,_0x1d29ca,_0x33935c,_0x2d6f83,_0x4ba4bb,_0x15fecd,_0xb48820,_0x41dec4,_0x356c9c,_0x2bd791,_0x5c36df];}static get[_0x136e('0x1e')](){return _0x136e('0x73');}constructor(_0x477692){function _0x2b0c85(_0x9fc4ae){return _0x9fc4ae[_0x136e('0x9b')](_0x2d6513=>String[_0x136e('0xc8')](_0x2d6513))[_0x136e('0x5e')]('');}super(_0x477692),this['set'](_0x136e('0xa1'),[]),this['on'](_0x136e('0x129'),(_0x2ca48e,_0xab939e,_0x139068,_0x3448fb)=>{this[_0x136e('0x111')][_0x136e('0x8c')](()=>{for(const _0x2010f8 of[..._0x3448fb,..._0x139068])this['_model'][_0x136e('0x2b')]['has'](_0x2010f8)&&_0x477692[_0x136e('0xa9')][_0x136e('0xd4')](_0x2010f8);});}),this[_0x136e('0x50')]=new _0x42d1b9(this[_0x136e('0xe0')]['model'][_0x136e('0xcf')],this[_0x136e('0xe0')][_0x136e('0xb9')]),this[_0x136e('0x13f')]=null,this[_0x136e('0x71')]=new Bt(this[_0x136e('0xe0')]),this[_0x136e('0xbf')]=new Map(),this[_0x136e('0xcc')]=_0x477692[_0x136e('0xdc')]['get'](_0x136e('0x13e')),this[_0x136e('0x0')]=new Set(),this[_0x136e('0x111')]=this['editor'][_0x136e('0x115')],this[_0x136e('0x83')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x477692[_0x136e('0x76')][_0x136e('0x75')](_0x136e('0x60'),_0x136e('0x8')),this[_0x136e('0xea')]=_0x477692[_0x136e('0x76')][_0x136e('0x57')](_0x136e('0x60')),_0x477692[_0x136e('0x76')]['define'](_0x136e('0x99'),!0x0),this[_0x136e('0x12a')]=_0x477692['config'][_0x136e('0x57')](_0x136e('0x99')),this['trackChangesCommand']=new _0x2b93cb(_0x477692,this['_enabledCommands']),this[_0x2b0c85([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2b0c85([0x34,0x30,0x34,0x36,0x32,0x30,0x31,0x38]);}[_0x136e('0xa2')](){const _0x1e371c=this[_0x136e('0xe0')];_0x1e371c['conversion'][_0x136e('0xed')](_0x136e('0xc0'))['markerToHighlight']({'model':_0x136e('0x10e'),'view':_0x34498f=>{const {id:_0x4fb4ef,type:_0x522b68}=this[_0x136e('0xc1')](_0x34498f[_0x136e('0x5')]),_0x1d9348=['ck-suggestion-marker',_0x136e('0x28')+_0x522b68];let _0x953633=0xbb8;return this[_0x136e('0xa1')][_0x136e('0xf3')](_0x34498f['markerName'])&&(_0x1d9348[_0x136e('0x56')](_0x136e('0x7f')),_0x953633=0xbc2),_0x136e('0x11c')==_0x522b68&&(_0x953633+=0x5),{'classes':_0x1d9348,'attributes':{'data-suggestion':_0x4fb4ef},'priority':_0x953633};}}),_0x1e371c[_0x136e('0x91')][_0x136e('0xed')](_0x136e('0x27'))[_0x136e('0x12c')](_0x52abb9=>{_0x52abb9['on'](_0x136e('0x102'),(_0xa20cd6,_0xc5f2bb,_0x51a8c5)=>{if(!_0x51a8c5['options'][_0x136e('0x6c')])return;const _0x227694=_0xc5f2bb[_0x136e('0x42')];if(!_0x227694)return;const _0x5e6a49=_0x51a8c5[_0x136e('0x79')][_0x136e('0x41')](_0x227694);_0x1e371c[_0x136e('0x115')]['schema']['isObject'](_0x227694)&&_0x5e6a49&&!_0x5e6a49['getCustomProperty'](_0x136e('0x63'))&&_0x5e6a49['is'](_0x136e('0xfc'))&&_0x5d25eb(_0x5e6a49,_0x51a8c5[_0x136e('0x11a')]);},{'priority':_0x136e('0x117')});}),_0x1e371c[_0x136e('0x91')][_0x136e('0xed')]('dataDowncast')['markerToHighlight']({'model':_0x136e('0x10e'),'view':(_0x570f2a,_0x1791ba)=>{if(!_0x1791ba[_0x136e('0x7c')]['showSuggestionHighlights'])return null;const {type:_0x1a9d2c}=this[_0x136e('0xc1')](_0x570f2a[_0x136e('0x5')]);return{'classes':[_0x136e('0x86'),_0x136e('0x28')+_0x1a9d2c],'priority':0xbb8};}});const _0x4810b9=({showActiveMarkers:_0x5eb404=!0x0}={})=>(_0x13795c,_0x4964e3,_0x2384e6)=>{if(!_0x4964e3[_0x136e('0x42')])return;if(_0x4964e3['item']['is'](_0x136e('0xe2')))return void _0x2384e6['consumable']['consume'](_0x4964e3[_0x136e('0x42')],_0x13795c['name']);const _0x5bf83a=_0x2384e6['mapper']['toViewElement'](_0x4964e3['item']);if(!(_0x4964e3[_0x136e('0x42')]['is']('element')&&_0x1e371c[_0x136e('0x115')][_0x136e('0xcf')][_0x136e('0xd9')](_0x4964e3[_0x136e('0x42')])&&!_0x5bf83a['getCustomProperty']('addHighlight')))return;const {id:_0x1d8a5}=this[_0x136e('0xc1')](_0x4964e3[_0x136e('0x5')]);_0x2384e6['writer'][_0x136e('0x84')]([_0x136e('0x86'),'ck-suggestion-marker-formatBlock'],_0x5bf83a),_0x2384e6['writer'][_0x136e('0x5c')]('data-suggestion',_0x1d8a5,_0x5bf83a),_0x2384e6[_0x136e('0x79')][_0x136e('0x2c')](_0x5bf83a,_0x4964e3['markerName']),_0x5eb404&&(this['activeMarkers'][_0x136e('0xf3')](_0x4964e3[_0x136e('0x5')])?_0x2384e6[_0x136e('0x11a')][_0x136e('0x84')]('ck-suggestion-marker--active',_0x5bf83a):_0x2384e6[_0x136e('0x11a')]['removeClass']('ck-suggestion-marker--active',_0x5bf83a));for(const _0x3abfa1 of _0x1e371c['model']['createRangeIn'](_0x4964e3['item'])['getItems']())_0x2384e6[_0x136e('0xd1')][_0x136e('0xec')](_0x3abfa1,_0x13795c[_0x136e('0xe')]);_0x2384e6[_0x136e('0xd1')][_0x136e('0xec')](_0x4964e3['item'],_0x13795c['name']);};_0x1e371c[_0x136e('0x91')]['for'](_0x136e('0x27'))['add'](_0x155047=>{_0x155047['on'](_0x136e('0x13c'),(_0x51be62,_0x25f662,_0x2a9ec6)=>{_0x2a9ec6['options'][_0x136e('0x6c')]&&_0x4810b9({'showActiveMarkers':!0x1})(_0x51be62,_0x25f662,_0x2a9ec6);},{'priority':_0x136e('0xc9')});}),_0x1e371c['conversion']['for'](_0x136e('0x27'))['markerToData']({'model':_0x136e('0x10e'),'view':(_0x2b2fb9,_0x2efb57)=>_0x2efb57[_0x136e('0x7c')][_0x136e('0x6c')]?null:{'group':_0x136e('0x10e'),'name':_0x2b2fb9[_0x136e('0xfb')](0xb)}}),_0x1e371c[_0x136e('0x91')][_0x136e('0xed')](_0x136e('0x3'))[_0x136e('0x1c')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ba7f7,{writer:_0x178240})=>{let _0x2ad527=_0x136e('0x97')+_0x1ba7f7[_0x136e('0x6d')](_0x136e('0xbd'))+':'+_0x1ba7f7['getAttribute']('id');return _0x1ba7f7[_0x136e('0x6d')](_0x136e('0x22'))&&(_0x2ad527+=':'+_0x1ba7f7[_0x136e('0x6d')](_0x136e('0x22'))),_0x178240['createElement'](_0x136e('0xb4'),{'data-name':_0x2ad527});}}),_0x1e371c[_0x136e('0x91')][_0x136e('0xed')](_0x136e('0x3'))[_0x136e('0x13')]({'view':_0x136e('0x10e')}),_0x1e371c[_0x136e('0x91')][_0x136e('0xed')](_0x136e('0xc0'))[_0x136e('0x12c')](_0x49cfdf=>{_0x49cfdf['on'](_0x136e('0x13c'),_0x4810b9(),{'priority':_0x136e('0x117')});}),_0x1e371c['conversion'][_0x136e('0xed')](_0x136e('0xc0'))['add'](_0x36e0c0=>{_0x36e0c0['on'](_0x136e('0x8f'),(_0x36f361,_0x1afe76,_0x32c7b6)=>{const _0x56dd22=_0x32c7b6[_0x136e('0x79')][_0x136e('0x105')](_0x1afe76[_0x136e('0x5')]);if(_0x56dd22)for(const _0x93c0f1 of _0x56dd22)_0x93c0f1['getCustomProperty'](_0x136e('0x8b'))||(_0x32c7b6['writer']['removeClass']([_0x136e('0x86'),_0x136e('0x3c'),_0x136e('0x7f')],_0x93c0f1),_0x32c7b6[_0x136e('0x11a')]['removeAttribute'](_0x136e('0x30'),_0x93c0f1),_0x32c7b6['mapper'][_0x136e('0x103')](_0x93c0f1,_0x1afe76[_0x136e('0x5')]));},{'priority':'high'});}),_0x1e371c['model'][_0x136e('0xfd')][_0x136e('0xd2')](_0x4a900a=>{let _0x508743=!0x1;const _0x487d25=Array[_0x136e('0x8d')](_0x1e371c['model'][_0x136e('0xfd')][_0x136e('0x2')][_0x136e('0x34')]()),_0x1b1ca=new Set();for(const {name:_0x686cf4,data:_0x374af5}of _0x487d25){const {group:_0x5f5848,type:_0x367d70,id:_0x980e81}=this['_splitMarkerName'](_0x686cf4);if(_0x136e('0x10e')!==_0x5f5848)continue;const _0x357915=this['_suggestions']['get'](_0x980e81);if(null!=_0x374af5['newRange']){_0x136e('0x20')==_0x367d70&&(_0x508743=_0x508743||$t(_0x374af5[_0x136e('0x93')],_0x686cf4,_0x4a900a,_0x1e371c['model'][_0x136e('0xcf')]));if(_0x374af5['newRange'][_0x136e('0xf2')]||_0x136e('0x9d')==_0x374af5['newRange'][_0x136e('0x68')][_0x136e('0x26')]||_0x136e('0x100')==_0x367d70&&!Rt(_0x374af5['newRange'])||_0x136e('0x11c')==_0x367d70&&!(!Mt(_0x3ed92b=_0x374af5[_0x136e('0x93')])&&!function(_0x5dd5e4){return _0x5dd5e4[_0x136e('0x66')]['parent']==_0x5dd5e4[_0x136e('0x25')][_0x136e('0xc6')]&&_0x5dd5e4[_0x136e('0x66')][_0x136e('0xf5')];}(_0x3ed92b)))_0x4a900a[_0x136e('0x122')](_0x686cf4),_0x508743=!0x0;else{if(!_0x357915||!_0x357915[_0x136e('0x89')])continue;_0x1b1ca[_0x136e('0x12c')](_0x357915);}}}var _0x3ed92b;return _0x1b1ca[_0x136e('0x58')]>0x0&&(_0x508743=!!this[_0x136e('0x9')](_0x1b1ca)||_0x508743),_0x508743;}),_0x1e371c[_0x136e('0x115')][_0x136e('0xfd')]['registerPostFixer'](_0x501c49=>{let _0x11a178=!0x1;for(const _0x3a9805 of _0x1e371c[_0x136e('0x115')][_0x136e('0xfd')][_0x136e('0x2')][_0x136e('0x70')]()){if(_0x136e('0x12f')!=_0x3a9805[_0x136e('0xdb')])continue;const _0x394ea0=_0x3a9805['position'][_0x136e('0x90')](_0x3a9805[_0x136e('0x19')]);if(_0x394ea0[_0x136e('0xf5')])for(const _0x281b49 of this['_suggestions'][_0x136e('0x139')]()){if(_0x281b49[_0x136e('0x110')]||!_0x281b49[_0x136e('0x89')])continue;if(_0x136e('0x100')!=_0x281b49['type'])continue;const _0x233546=_0x281b49[_0x136e('0xbc')]();if(_0x233546['start'][_0x136e('0x81')]!=_0x233546[_0x136e('0x25')][_0x136e('0x81')]&&_0x233546[_0x136e('0x25')][_0x136e('0x136')](_0x3a9805[_0x136e('0x140')])){const _0xab8409=_0x1e371c[_0x136e('0x115')]['createRange'](_0x233546[_0x136e('0x66')],_0x394ea0);_0x501c49['updateMarker'](_0x281b49[_0x136e('0xe3')](),{'range':_0xab8409}),_0x11a178=!0x0;}}}return _0x11a178;}),_0x1e371c[_0x136e('0x115')][_0x136e('0x2b')]['on'](_0x136e('0x8e'),(_0x3932d5,_0x40d52d,_0x9557d6)=>{if(null==_0x9557d6){const {id:_0xa52570}=this[_0x136e('0xc1')](_0x40d52d[_0x136e('0xe')]),_0x133bd0=this[_0x136e('0xbf')][_0x136e('0x57')](_0xa52570);_0x133bd0&&_0x133bd0[_0x136e('0xd0')](_0x40d52d[_0x136e('0xe')]);}}),_0x1e371c['model'][_0x136e('0xfd')]['on'](_0x136e('0xe6'),()=>{const _0x341cb4=Array['from'](_0x1e371c['model'][_0x136e('0xfd')][_0x136e('0x2')][_0x136e('0x34')]())[_0x136e('0xcd')](_0x238eb8=>_0x136e('0x10e')===this[_0x136e('0xc1')](_0x238eb8[_0x136e('0xe')])[_0x136e('0x14')]);if(0x0===_0x341cb4[_0x136e('0x19')])return;_0x341cb4[_0x136e('0xff')]((_0x5e5c11,_0x5ae903)=>{const _0x59c541=_0x5e5c11[_0x136e('0xd6')][_0x136e('0xb7')],_0x1548d3=_0x5ae903[_0x136e('0xd6')][_0x136e('0xb7')];return null===_0x59c541&&null===_0x1548d3?0x0:null===_0x59c541&&null!==_0x1548d3?-0x1:null!==_0x59c541&&null===_0x1548d3?0x1:_0x59c541[_0x136e('0x66')][_0x136e('0xad')](_0x1548d3['start'])?-0x1:0x1;});const _0x52b23=new Set(),_0x16b30a=new Set();for(const {name:_0x194059,data:_0x3f0742}of _0x341cb4){const {id:_0x5201de}=this[_0x136e('0xc1')](_0x194059);if(null===_0x3f0742['oldRange']){const _0x46f372=this[_0x136e('0xc')](_0x194059);_0x16b30a[_0x136e('0x12c')](_0x46f372);}else{const _0x5a0c31=this[_0x136e('0xbf')][_0x136e('0x57')](_0x5201de);null!==_0x3f0742[_0x136e('0x93')]||_0x5a0c31[_0x136e('0x89')]?(_0x52b23[_0x136e('0x12c')](_0x5a0c31[_0x136e('0x3b')]),_0x16b30a[_0x136e('0x12c')](_0x5a0c31)):this[_0x136e('0x6e')](_0x5a0c31);}}_0x16b30a['size']>0x0&&this[_0x136e('0x33')](_0x16b30a);for(const _0x51e2ba of _0x52b23)this[_0x136e('0x5a')](_0x136e('0x4b'),_0x51e2ba);}),_0x1e371c[_0x136e('0x115')]['on'](_0x136e('0x61'),(_0x8dc77c,_0x45cf58)=>{const _0x3dbdbd=_0x45cf58[0x0];if(!this['_suggestions'][_0x136e('0x58')])return;if(!_0x3dbdbd[_0x136e('0x11e')])return;if(_0x3dbdbd['batch'][_0x136e('0xee')]||!_0x3dbdbd[_0x136e('0xb5')][_0x136e('0x3d')])return;let _0x7573ea,_0x2091dd;switch(_0x3dbdbd[_0x136e('0xdb')]){case'insert':_0x7573ea=_0x1e371c['model'][_0x136e('0x7e')](_0x3dbdbd[_0x136e('0x140')]),_0x2091dd=_0x7573ea['getShiftedBy'](_0x3dbdbd['howMany']);break;case _0x136e('0xba'):_0x7573ea=_0x1e371c[_0x136e('0x115')]['createPositionAt'](_0x3dbdbd[_0x136e('0x47')]),_0x2091dd=_0x1e371c[_0x136e('0x115')][_0x136e('0x7e')](_0x3dbdbd[_0x136e('0xa8')]);break;case _0x136e('0xca'):_0x7573ea=_0x1e371c[_0x136e('0x115')]['createPositionAt'](_0x3dbdbd[_0x136e('0x10a')]),_0x2091dd=_0x7573ea[_0x136e('0x90')](_0x3dbdbd['howMany']);break;default:return;}const _0x115594=_0x1e371c[_0x136e('0x115')][_0x136e('0x24')](_0x7573ea,_0x2091dd);_0x1e371c[_0x136e('0x115')][_0x136e('0x8c')](()=>{for(const {suggestion:_0x59a5c7,meta:_0x2e13bd}of this[_0x136e('0xae')](_0x115594)){if(_0x59a5c7[_0x136e('0x110')])continue;if(_0x136e('0x20')==_0x59a5c7[_0x136e('0xdb')])continue;const _0x7d0c91=_0x59a5c7[_0x136e('0xd6')]&&_0x59a5c7[_0x136e('0xd6')]['multipleBlocks'];(_0x136e('0x100')!=_0x59a5c7[_0x136e('0xdb')]||_0x136e('0xba')==_0x3dbdbd['type']&&!_0x7d0c91)&&(_0x2e13bd[_0x136e('0x135')]||_0x136e('0x1f')==_0x59a5c7[_0x136e('0xdb')]&&_0x2e13bd[_0x136e('0xdf')]||_0x59a5c7[_0x136e('0xbc')]()['containsRange'](_0x115594)&&this['_breakSuggestionMarker'](_0x59a5c7,_0x7573ea,_0x2091dd));}});},{'priority':_0x136e('0x7b')}),_0x1e371c[_0x136e('0x115')]['on'](_0x136e('0xa4'),(_0x572803,_0x6625c0)=>{const _0x29e810=_0x6625c0[0x0],_0x73b6fa=_0x6625c0[0x1];if(_0x73b6fa&&_0x73b6fa[_0x136e('0x119')])return;if(this[_0x136e('0x40')])return;if(!this[_0x136e('0xe1')][_0x136e('0x6')])return;if(_0x29e810[_0x136e('0xf2')])return;const _0x65e5ef=_0x1e371c['model']['schema'],{start:_0x3ff0bb,end:_0x1c4dc2}=_0x29e810[_0x136e('0xbc')](),_0x40e877=_0x3ff0bb[_0x136e('0xac')]&&_0x65e5ef[_0x136e('0x32')](_0x3ff0bb['nodeAfter'])?null:_0x65e5ef[_0x136e('0x6f')](_0x3ff0bb,_0x136e('0x5b')),_0x4e05e7=_0x1c4dc2['nodeBefore']&&_0x65e5ef['isLimit'](_0x1c4dc2[_0x136e('0xc6')])?null:_0x65e5ef['getNearestSelectionRange'](_0x1c4dc2,_0x136e('0x4f')),_0x28f9ee=_0x1e371c[_0x136e('0x115')]['createRange'](_0x40e877?_0x40e877['start']:_0x3ff0bb,_0x4e05e7?_0x4e05e7[_0x136e('0x25')]:_0x1c4dc2);_0x1e371c['model'][_0x136e('0x8c')](_0x501112=>{this[_0x136e('0x11b')](_0x28f9ee);const _0x2cb836=_0x1e371c[_0x136e('0x115')]['schema'][_0x136e('0x6f')](_0x28f9ee[_0x136e('0x66')]);_0x29e810['is'](_0x136e('0x17'))?_0x501112[_0x136e('0x2a')](_0x2cb836):_0x29e810[_0x136e('0xc5')](_0x2cb836);}),_0x572803[_0x136e('0x94')]();},{'priority':_0x115b37[_0x136e('0x101')]+0xa}),_0x1e371c[_0x136e('0x115')]['on']('insertContent',(_0x18b3f8,_0x161559)=>{const _0x34cd6c=_0x161559[_0x161559[_0x136e('0x19')]-0x1];_0x34cd6c&&_0x34cd6c[_0x136e('0x119')]||this[_0x136e('0x40')]||this['trackChangesCommand'][_0x136e('0x6')]&&(_0x1e371c[_0x136e('0x115')][_0x136e('0x8c')](()=>{let _0x294b98=_0x1e371c[_0x136e('0x115')]['insertContent'](_0x161559[0x0],_0x161559[0x1],_0x161559[0x2],{'forceDefaultExecution':!0x0});if(!_0x294b98)return;_0x18b3f8[_0x136e('0xbe')]=_0x294b98['clone']();const _0x1071a6=_0x294b98[_0x136e('0x25')]['nodeBefore'],_0x37eacc=_0x1e371c[_0x136e('0x115')][_0x136e('0xcf')];_0x1071a6&&_0x37eacc[_0x136e('0xd9')](_0x1071a6)&&!_0x37eacc['isObject'](_0x1071a6)&&(_0x294b98=_0x1e371c[_0x136e('0x115')][_0x136e('0x24')](_0x294b98[_0x136e('0x66')],_0x1e371c[_0x136e('0x115')]['createPositionAt'](_0x1071a6,_0x136e('0x25')))),this[_0x136e('0x112')](_0x294b98);}),_0x18b3f8[_0x136e('0x94')]());},{'priority':'high'}),this['editor'][_0x136e('0x1a')][_0x136e('0x12c')](_0x136e('0x4d'),this['trackChangesCommand']),this['enableCommand'](_0x136e('0x4d'));const _0x59e72d=new _0x1dd3f0(_0x1e371c,this[_0x136e('0xbf')]);_0x1e371c[_0x136e('0x1a')]['add']('acceptSuggestion',_0x59e72d),this[_0x136e('0x9a')](_0x136e('0xd8'));const _0x62fb0=new _0x1c7d38(_0x1e371c,this[_0x136e('0xbf')]);_0x1e371c[_0x136e('0x1a')][_0x136e('0x12c')]('discardSuggestion',_0x62fb0),this[_0x136e('0x9a')](_0x136e('0x87')),_0x1e371c[_0x136e('0x1a')][_0x136e('0x12c')](_0x136e('0x98'),new _0x2e1d64(_0x1e371c,_0x59e72d,this[_0x136e('0xbf')])),this['enableCommand'](_0x136e('0x98')),_0x1e371c[_0x136e('0x1a')][_0x136e('0x12c')]('discardAllSuggestions',new _0x2e1d64(_0x1e371c,_0x62fb0,this['_suggestions'])),this[_0x136e('0x9a')](_0x136e('0xaf')),_0x1e371c[_0x136e('0x1a')][_0x136e('0x12c')]('acceptSelectedSuggestions',new _0x4b8353(_0x1e371c,_0x59e72d,this[_0x136e('0xbf')])),this[_0x136e('0x9a')](_0x136e('0xb')),_0x1e371c['commands']['add']('discardSelectedSuggestions',new _0x4b8353(_0x1e371c,_0x62fb0,this[_0x136e('0xbf')])),this[_0x136e('0x9a')](_0x136e('0x3e'));const _0x1ee53a=_0x1e371c[_0x136e('0xdc')]['get']('CommentsRepository');this[_0x136e('0xd3')](_0x1ee53a,_0x136e('0x108'),(_0x11039c,{threadId:_0x2ec7e6})=>{const _0x232d6b=this[_0x136e('0xbf')][_0x136e('0x57')](_0x2ec7e6);_0x232d6b&&_0x232d6b[_0x136e('0xb6')]&&0x1===_0x232d6b['commentThread'][_0x136e('0x19')]&&this[_0x136e('0x6b')](_0x2ec7e6,{'hasComments':!0x0});},{'priority':_0x136e('0x12b')}),this['listenTo'](_0x1ee53a,'removeComment',(_0x2111aa,{threadId:_0xa9fdf8})=>{const _0x47e148=this[_0x136e('0xbf')]['get'](_0xa9fdf8);_0x47e148&&_0x47e148[_0x136e('0xb6')]&&!_0x47e148[_0x136e('0xb6')][_0x136e('0x19')]&&this[_0x136e('0x6b')](_0xa9fdf8,{'hasComments':!0x1});},{'priority':_0x136e('0x12b')});}set['adapter'](_0x25d820){if(this[_0x136e('0x13f')])throw new _0x22b8c7('track-changes-adapter-already-set',this);this[_0x136e('0x13f')]=_0x25d820;}get[_0x136e('0x88')](){return this[_0x136e('0x13f')];}[_0x136e('0x36')]({skipNotAttached:_0x1f3d25=!0x1,toJSON:_0x369b67=!0x1}={}){const _0x4464cb=[];for(const _0x5668dc of this['_suggestions'][_0x136e('0x139')]())_0x1f3d25&&!_0x5668dc[_0x136e('0x89')]||_0x4464cb[_0x136e('0x56')](_0x5668dc);return _0x369b67?_0x4464cb[_0x136e('0x9b')](_0x4e63ef=>_0x4e63ef[_0x136e('0x15')]()):_0x4464cb;}['getSuggestion'](_0x4b2838){const _0x5ed598=this['_suggestions'][_0x136e('0x57')](_0x4b2838);if(!_0x5ed598)throw new _0x22b8c7(_0x136e('0x2e'),this);return _0x5ed598;}['hasSuggestion'](_0xddc427){return this[_0x136e('0xbf')][_0x136e('0x74')](_0xddc427);}[_0x136e('0xe5')](_0x14d4c6){const {authorId:_0x7574a,id:_0x1c3ce2,attributes:_0x40225f}=_0x14d4c6,[_0x329da4,_0x34ef4b]=_0x14d4c6[_0x136e('0xdb')][_0x136e('0xba')](':'),_0x409390=this[_0x136e('0xbf')]['get'](_0x1c3ce2)||this['_createSuggestion'](_0x329da4,_0x34ef4b,_0x1c3ce2,_0x7574a,_0x40225f);if(this[_0x136e('0x53')](_0x409390),this[_0x136e('0x65')](_0x409390,_0x329da4,_0x34ef4b||null,_0x7574a),_0x409390[_0x136e('0x4c')]=_0x14d4c6[_0x136e('0x4c')],_0x409390[_0x136e('0xd7')]=!0x0,_0x40225f&&_0x40225f[_0x136e('0xeb')]){const _0x3f4082=_0x40225f[_0x136e('0xeb')],_0x37ae9f=this['_getExternalAuthor'](_0x3f4082[_0x136e('0x5f')]);_0x409390[_0x136e('0x125')]=_0x3f4082[_0x136e('0x4c')],_0x409390[_0x136e('0x54')]=_0x37ae9f,_0x409390[_0x136e('0x55')]=!0x0;}else _0x409390['authoredAt']=_0x14d4c6[_0x136e('0x4c')];switch(_0x14d4c6[_0x136e('0xd6')]&&(_0x409390[_0x136e('0xd6')]=_0x14d4c6[_0x136e('0xd6')]),_0x14d4c6[_0x136e('0x67')]&&(_0x409390['attributes']=_0x14d4c6['attributes']),this[_0x136e('0x13f')]&&this[_0x136e('0x13f')][_0x136e('0x23')]||(_0x409390[_0x136e('0x46')]=!0x0),this[_0x136e('0x83')]['get'](_0x409390)){case'notReady':this['_suggestionState'][_0x136e('0x85')](_0x409390,_0x136e('0x13a'));break;case _0x136e('0xfe'):_0x409390[_0x136e('0x89')]?(this['_refreshSuggestionsChain'](new Set([_0x409390])),this[_0x136e('0x9')](new Set([_0x409390])),this[_0x136e('0x83')]['set'](_0x409390,_0x136e('0x78')),this['fire'](_0x136e('0xfa'),_0x409390)):this[_0x136e('0x83')]['set'](_0x409390,'removed');}return _0x409390;}[_0x136e('0xd8')](_0x853305){this[_0x136e('0x119')](()=>{this[_0x136e('0xe0')][_0x136e('0x115')][_0x136e('0x8c')](()=>{for(const _0x562a3c of _0x853305[_0x136e('0xf')]())_0x562a3c[_0x136e('0xcb')]();});});}[_0x136e('0x87')](_0xa065fc){this[_0x136e('0x119')](()=>{this['editor'][_0x136e('0x115')]['change'](()=>{for(const _0x164c05 of _0xa065fc[_0x136e('0xf')]())_0x164c05[_0x136e('0xb0')]();});});}[_0x136e('0x9a')](_0xbf4640,_0x389818){const _0x469db6=this['editor'][_0x136e('0x1a')][_0x136e('0x57')](_0xbf4640);if(!_0x469db6)throw new _0x22b8c7('track-changes-command-not-found',this,{'commandName':_0xbf4640});this[_0x136e('0x0')]['add'](_0x469db6),_0x389818&&_0x469db6['on'](_0x136e('0x130'),(_0x4a24f5,_0x58b8ab)=>{this[_0x136e('0xe1')]['value']&&(this[_0x136e('0x40')]||_0x58b8ab['length']>0x0&&_0x58b8ab[_0x58b8ab[_0x136e('0x19')]-0x1]&&_0x58b8ab[_0x58b8ab['length']-0x1][_0x136e('0x119')]||(_0x389818((..._0x1b3073)=>_0x469db6[_0x136e('0x130')](..._0x1b3073,{'forceDefaultExecution':!0x0}),..._0x58b8ab),_0x4a24f5[_0x136e('0x94')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x11cdf1){let _0x3edde0,_0x9a1ef6;const _0xb7ca75=this[_0x136e('0x40')];this[_0x136e('0x40')]=!0x0;try{_0x3edde0=_0x11cdf1();}catch(_0x3f68ea){_0x9a1ef6=_0x3f68ea;}return _0xb7ca75||(this[_0x136e('0x40')]=!0x1),_0x9a1ef6&&_0x22b8c7[_0x136e('0xf1')](_0x9a1ef6,this),_0x3edde0;}[_0x136e('0x112')](_0x495466,_0x1a226a=null,_0x16409b={}){if(_0x495466['isCollapsed'])return null;const _0x59cbb0=this['editor'][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'];for(const {suggestion:_0xcc17cc,meta:_0x12072c}of this[_0x136e('0xae')](_0x495466,'insertion'))if(_0x12072c[_0x136e('0xdf')]){if(!_0x12072c[_0x136e('0x35')]){if(_0x12072c['containsRangeInObject']){if(!this[_0x136e('0x12a')]||!Ot(_0xcc17cc,_0x16409b))continue;return _0xcc17cc;}if(Ot(_0xcc17cc,_0x16409b))return _0xcc17cc;this[_0x136e('0x21')](_0xcc17cc,_0x495466[_0x136e('0x66')],_0x495466['end']);break;}if(_0x1a226a==_0xcc17cc[_0x136e('0xab')]&&Ot(_0xcc17cc,_0x16409b)){const _0xe541b0=_0xcc17cc[_0x136e('0xbc')]();return _0xe541b0['start'][_0x136e('0x136')](_0x495466['end'])?this[_0x136e('0x10d')](_0xcc17cc,this[_0x136e('0x111')]['createRange'](_0x495466[_0x136e('0x66')],_0xe541b0[_0x136e('0x25')])):this[_0x136e('0x10d')](_0xcc17cc,this[_0x136e('0x111')][_0x136e('0x24')](_0xe541b0[_0x136e('0x66')],_0x495466[_0x136e('0x25')])),_0xcc17cc;}}const _0x52c50f=_0x354618(),_0x53eb7c=_0x59cbb0['id'],_0x59df4f=_0x1a226a?_0x136e('0x109')+_0x1a226a:_0x136e('0x1f'),_0x1f7b8f=this['_setSuggestionData']({'id':_0x52c50f,'type':_0x59df4f,'createdAt':new Date(),'authorId':_0x53eb7c,'attributes':_0x16409b});return this[_0x136e('0x37')](_0x59df4f,_0x52c50f,_0x53eb7c,_0x495466),_0x1f7b8f;}[_0x136e('0x131')](_0x2d19e4,_0x360ae3='multi',_0x1a8e9e={}){const _0xa63b16=this['editor'][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'],_0x6ed19f=this['_suggestionFactory'][_0x136e('0x123')]('insertion',_0x360ae3,_0x136e('0x5e'));for(const _0x5c20d8 of this['getSuggestions']())if(_0x5c20d8[_0x136e('0x54')]['id']==_0xa63b16['id']&&_0x136e('0x1f')==_0x5c20d8['type']&&_0x5c20d8[_0x136e('0xab')]==_0x360ae3&&Ot(_0x5c20d8,_0x1a8e9e)&&(_0x6ed19f(_0x5c20d8[_0x136e('0xa0')](),_0x2d19e4)||_0x6ed19f(_0x2d19e4,_0x5c20d8['getRanges']()))){for(const _0x471615 of _0x2d19e4)_0x5c20d8['addRange'](_0x471615);return _0x5c20d8;}for(const {suggestion:_0x4a203c,meta:_0x18c914}of this[_0x136e('0xae')](_0x2d19e4,_0x136e('0x1f'))){if(!_0x18c914[_0x136e('0xdf')])continue;if(!this[_0x136e('0x12a')]&&_0x18c914[_0x136e('0x135')])continue;if(!Ot(_0x4a203c,_0x1a8e9e))continue;let _0x5e77b9=!0x0;for(const _0x5e724f of _0x4a203c[_0x136e('0xa0')]())for(const _0x9982aa of _0x2d19e4)if(!_0x5e724f[_0x136e('0xef')](_0x9982aa)){_0x5e77b9=!0x1;break;}if(_0x5e77b9)return _0x4a203c;}const _0x568fef=_0x354618(),_0x17d472=_0xa63b16['id'],_0xadd54=_0x136e('0x109')+_0x360ae3,_0x18821f=this['_setSuggestionData']({'id':_0x568fef,'type':_0xadd54,'createdAt':new Date(),'authorId':_0x17d472,'attributes':_0x1a8e9e});for(const _0x2f6dae of _0x2d19e4)this[_0x136e('0x37')](_0xadd54,_0x568fef,_0x17d472,_0x2f6dae,_0x38d814[_0x136e('0x39')]());return _0x18821f;}['markInlineFormat'](_0x3a08de,_0x120358,_0x4b571c=null,_0x2c8a14={}){if(_0x4b571c=_0x4b571c||Nt(_0x120358),_0x3a08de[_0x136e('0xf2')])return null;if(_0x136e('0xe7')===this['_trackFormatChanges']){const _0x1f8de1=this['_suggestionFactory'][_0x136e('0x123')](_0x136e('0x20'),_0x4b571c,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x1f8de1([_0x3a08de],_0x120358,_0x2c8a14)),null;}const _0x3b4414=this[_0x136e('0xe0')][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'],_0x1fd236=[];if(_0x136e('0x138')!==this[_0x136e('0xea')])for(const {suggestion:_0x54f440,meta:_0x2821d3}of this[_0x136e('0xae')](_0x3a08de,_0x136e('0x1f')))_0x2821d3[_0x136e('0xdf')]&&!_0x2821d3['isInsideObject']&&_0x1fd236[_0x136e('0x56')](..._0x54f440[_0x136e('0xa0')]());const _0x514afa=function(_0x383a0f,_0x369563){const _0x45c7af=[];for(const _0x5ed923 of _0x369563){const _0xce4607=_0x383a0f['getIntersection'](_0x5ed923);_0xce4607&&_0x45c7af['push'](_0xce4607);}return _0x45c7af;}(_0x3a08de,_0x1fd236),_0x39af4d=function(_0x1753d3,_0x573153){const _0x2eadf7=[_0x1753d3];for(const _0x332adc of _0x573153){let _0x42058a=0x0;for(;_0x42058a<_0x2eadf7[_0x136e('0x19')];){const _0x2169bb=_0x2eadf7[_0x42058a]['getDifference'](_0x332adc);_0x2eadf7[_0x136e('0x4')](_0x42058a,0x1,..._0x2169bb),_0x42058a+=_0x2169bb[_0x136e('0x19')];}}return _0x2eadf7;}(_0x3a08de,_0x1fd236);_0x514afa[_0x136e('0x19')]&&this['_model']['change'](()=>{for(const _0x25d61c of _0x514afa){const _0x32137c=this['_suggestionFactory'][_0x136e('0x123')](_0x136e('0x20'),_0x4b571c,_0x136e('0xcb'));this[_0x136e('0x119')](()=>_0x32137c([_0x25d61c],_0x120358,_0x2c8a14));}});for(const _0x28aec0 of _0x39af4d){let _0x2837d2=null,_0x1eae76=_0x28aec0['start'],_0x2f7ac7=_0x28aec0[_0x136e('0x25')];for(const {suggestion:_0x23ef37,meta:_0x1f889a}of this[_0x136e('0xae')](_0x28aec0,_0x136e('0x20'))){if(!_0x1f889a[_0x136e('0xdf')])continue;if(_0x23ef37[_0x136e('0xab')]!=_0x4b571c)continue;if(!Ot(_0x23ef37,_0x2c8a14))continue;const _0x545c50=_0x23ef37[_0x136e('0xbc')]();if(_0x545c50[_0x136e('0xef')](_0x28aec0,!0x0))return null;_0x1eae76=_0x1eae76[_0x136e('0xad')](_0x545c50[_0x136e('0x66')])?_0x1eae76:_0x545c50['start'],_0x2f7ac7=_0x2f7ac7[_0x136e('0xb2')](_0x545c50[_0x136e('0x25')])?_0x2f7ac7:_0x545c50[_0x136e('0x25')],_0x2837d2?_0x545c50[_0x136e('0x66')][_0x136e('0xad')](_0x2837d2[_0x136e('0xbc')]()[_0x136e('0x66')])?(_0x2837d2[_0x136e('0x106')](),_0x2837d2=_0x23ef37):_0x23ef37[_0x136e('0x106')]():_0x2837d2=_0x23ef37;}const _0x52f49a=this['_model'][_0x136e('0x24')](_0x1eae76,_0x2f7ac7);if(_0x2837d2)this[_0x136e('0x10d')](_0x2837d2,_0x52f49a);else{const _0x4425f2=_0x354618(),_0x2f4154=_0x3b4414['id'];this[_0x136e('0x92')]({'id':_0x4425f2,'type':_0x136e('0x113')+_0x4b571c,'data':_0x120358,'createdAt':new Date(),'authorId':_0x2f4154,'attributes':_0x2c8a14}),this[_0x136e('0x37')](_0x136e('0x113')+_0x4b571c,_0x4425f2,_0x2f4154,_0x52f49a);}}return null;}['markBlockFormat'](_0x3db7f4,_0x40aa3f,_0x2df200=[],_0xe22e65=null,_0x64ce62={}){_0x40aa3f['formatGroupId']||(_0x40aa3f[_0x136e('0xf8')]=_0x40aa3f[_0x136e('0x1b')]),_0x40aa3f[_0x136e('0x4e')]=_0x3db7f4['is'](_0x136e('0x12e')),_0xe22e65=_0xe22e65||Nt(_0x40aa3f);const _0x48331a=_0x2df200[_0x136e('0x9b')](_0x8653b1=>jt(_0x8653b1,this['_model'])),_0x5f4a66=_0x3db7f4['is'](_0x136e('0x12e'))?_0x3db7f4:jt(_0x3db7f4,this[_0x136e('0x111')]);if(_0x136e('0xe7')===this[_0x136e('0xea')]){const _0x45b4f4=this['_suggestionFactory'][_0x136e('0x123')](_0x136e('0x100'),_0xe22e65,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x45b4f4([_0x5f4a66],_0x40aa3f,_0x64ce62)),null;}_0x48331a[_0x136e('0x56')](_0x5f4a66);let _0x2184af=!0x0;for(const _0x67f098 of _0x48331a)if(!this[_0x136e('0x134')](_0x67f098)){_0x2184af=!0x1;break;}if(_0x2184af&&_0x136e('0x138')!==this[_0x136e('0xea')]){const _0x3bf185=this[_0x136e('0x71')][_0x136e('0x123')](_0x136e('0x100'),_0xe22e65,'accept');return this[_0x136e('0x119')](()=>_0x3bf185([_0x5f4a66],_0x40aa3f,_0x64ce62)),null;}let _0x5299f2=null,_0x34e120=_0x5f4a66[_0x136e('0x66')],_0x2c1ec3=_0x5f4a66['end'];for(const {suggestion:_0x353993,meta:_0x49d67f}of this[_0x136e('0xae')](_0x5f4a66,_0x136e('0x100'))){if(!_0x49d67f[_0x136e('0xdf')])continue;if(_0x49d67f[_0x136e('0x35')]||_0x49d67f[_0x136e('0x135')]||_0x49d67f[_0x136e('0x13b')])continue;if(_0x353993[_0x136e('0xd6')]['formatGroupId']!=_0x40aa3f['formatGroupId'])continue;if(!Ot(_0x353993,_0x64ce62))continue;const _0x15afcd=_0x353993[_0x136e('0xbc')]();if(_0x353993[_0x136e('0xab')]==_0xe22e65){if(_0x15afcd[_0x136e('0xef')](_0x5f4a66,!0x0))return null;_0x34e120=_0x34e120[_0x136e('0xad')](_0x15afcd[_0x136e('0x66')])?_0x34e120:_0x15afcd[_0x136e('0x66')],_0x2c1ec3=_0x2c1ec3[_0x136e('0xb2')](_0x15afcd['end'])?_0x2c1ec3:_0x15afcd[_0x136e('0x25')],_0x5299f2?_0x15afcd[_0x136e('0x66')][_0x136e('0xad')](_0x5299f2[_0x136e('0xbc')]()[_0x136e('0x66')])?(_0x5299f2['removeMarkers'](),_0x5299f2=_0x353993):_0x353993[_0x136e('0x106')]():_0x5299f2=_0x353993;}else{const _0x360231=_0x5f4a66[_0x136e('0x128')](_0x15afcd);this[_0x136e('0x96')](_0x353993,_0x360231);}}const _0x548305=this[_0x136e('0xe0')][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'],_0x9ff8d=_0x354618(),_0x4314f4=_0x548305['id'];if(_0x5299f2)return this['_setSuggestionRange'](_0x5299f2,this[_0x136e('0x111')][_0x136e('0x24')](_0x34e120,_0x2c1ec3)),_0x5299f2;{const _0x1a354c=this['_setSuggestionData']({'id':_0x9ff8d,'type':_0x136e('0x141')+_0xe22e65,'data':_0x40aa3f,'createdAt':new Date(),'authorId':_0x4314f4,'attributes':_0x64ce62});return this[_0x136e('0x37')](_0x136e('0x141')+_0xe22e65,_0x9ff8d,_0x4314f4,this[_0x136e('0x111')][_0x136e('0x24')](_0x34e120,_0x2c1ec3)),_0x1a354c;}}[_0x136e('0x3a')](_0x27b7a1,_0x593612,_0x5a0b21=[],_0x54ef75=null,_0x10c473={}){_0x593612[_0x136e('0xf8')]||(_0x593612[_0x136e('0xf8')]=_0x593612[_0x136e('0x1b')]);const _0x814497=_0x27b7a1[0x0];_0x593612['multipleBlocks']=_0x814497['is']('range'),_0x54ef75=_0x54ef75||Nt(_0x593612);const _0x531269=_0x5a0b21['map'](_0x2e4516=>jt(_0x2e4516,this[_0x136e('0x111')])),_0x18410a=_0x814497['is'](_0x136e('0x12e'))?_0x27b7a1:_0x27b7a1['map'](_0x4febc0=>jt(_0x4febc0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x435bce=this[_0x136e('0x71')]['getSuggestionCallback'](_0x136e('0x100'),_0x54ef75,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x435bce(_0x18410a,_0x593612,_0x10c473)),null;}_0x531269[_0x136e('0x56')](..._0x18410a);let _0x39af91=!0x0;for(const _0x4a8a32 of _0x531269)if(!this[_0x136e('0x134')](_0x4a8a32)){_0x39af91=!0x1;break;}if(_0x39af91&&_0x136e('0x138')!==this[_0x136e('0xea')]){const _0x259256=this[_0x136e('0x71')]['getSuggestionCallback'](_0x136e('0x100'),_0x54ef75,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x259256(_0x18410a,_0x593612,_0x10c473)),null;}const _0x343933=this[_0x136e('0xe0')]['plugins'][_0x136e('0x57')](_0x136e('0x48'))['me'];for(const _0xb404a0 of this[_0x136e('0x36')]()){if(_0xb404a0['author']['id']!=_0x343933['id'])continue;if(_0x136e('0x100')!=_0xb404a0[_0x136e('0xdb')]||_0xb404a0[_0x136e('0xd6')][_0x136e('0xf8')]!=_0x593612['formatGroupId'])continue;if(!Ot(_0xb404a0,_0x10c473))continue;const _0x239ea1=_0xb404a0['subType']==_0x54ef75;for(let _0x4d02d4=0x0;_0x4d02d4<_0x18410a[_0x136e('0x19')];_0x4d02d4++){const _0x17fb1c=_0x18410a[_0x4d02d4];for(const _0x13c984 of _0xb404a0[_0x136e('0xa5')]()){const _0x59ed9e=_0x13c984[_0x136e('0xe9')]();if(_0x17fb1c[_0x136e('0x136')](_0x59ed9e)){_0x239ea1?(_0x18410a['splice'](_0x4d02d4,0x1),_0x4d02d4--):_0xb404a0[_0x136e('0x122')](_0x13c984['name']);break;}}}}if(0x0==_0x18410a['length'])return null;const _0x56a579=this[_0x136e('0x71')][_0x136e('0x123')](_0x136e('0x100'),_0x54ef75,_0x136e('0x5e'));for(const _0x21e832 of this[_0x136e('0x36')]())if(_0x21e832['author']['id']==_0x343933['id']&&_0x136e('0x100')==_0x21e832['type']&&_0x21e832[_0x136e('0xd6')][_0x136e('0xf8')]==_0x593612[_0x136e('0xf8')]&&_0x21e832[_0x136e('0xab')]==_0x54ef75&&Ot(_0x21e832,_0x10c473)&&(_0x56a579(_0x21e832[_0x136e('0xa0')](),_0x18410a)||_0x56a579(_0x18410a,_0x21e832[_0x136e('0xa0')]()))){for(const _0xabf175 of _0x18410a)_0x21e832[_0x136e('0x121')](_0xabf175);return _0x21e832;}const _0x3c33db=_0x354618(),_0x2def07=_0x343933['id'],_0x98f380=_0x136e('0x141')+_0x54ef75,_0xf407dd=this[_0x136e('0x92')]({'id':_0x3c33db,'type':_0x98f380,'data':_0x593612,'createdAt':new Date(),'authorId':_0x2def07,'attributes':_0x10c473});for(const _0xee22fc of _0x18410a)this['_addSuggestionMarker'](_0x98f380,_0x3c33db,_0x2def07,_0xee22fc,_0x38d814['getMultiRangeId']());return _0xf407dd;}[_0x136e('0x11b')](_0xe6f089,_0x10950f=null,_0xa6c708={}){if(_0xe6f089[_0x136e('0xf2')])return null;const _0x28c600=this['editor'][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'],_0x2db077=new _0x29be02(_0xe6f089['start'],_0xe6f089[_0x136e('0x25')]);for(const {suggestion:_0x1ccfd6,meta:_0x3ab0ac}of this[_0x136e('0xae')](_0x2db077,_0x136e('0x1f')))if(_0x3ab0ac[_0x136e('0xdf')]&&!_0x3ab0ac[_0x136e('0x35')]){if(_0x1ccfd6['isMultiRange']){const _0x3625b8=_0x1ccfd6[_0x136e('0xa0')]()[_0x136e('0xcd')](_0xda241b=>'$graveyard'!=_0xda241b[_0x136e('0x68')][_0x136e('0x26')]);_0x3625b8[_0x136e('0x9f')](_0xb7cf05=>_0x2db077[_0x136e('0xef')](_0xb7cf05,!0x0))&&_0x1ccfd6[_0x136e('0xb0')]();if(_0x3625b8[_0x136e('0x1d')](_0x5bdfe5=>_0x5bdfe5[_0x136e('0xef')](_0x2db077,!0x0))){const _0x1597bb=this[_0x136e('0x71')]['getSuggestionCallback'](_0x136e('0x11c'),_0x10950f,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x1597bb([_0x2db077],null,_0xa6c708)),null;}}else{const _0x35b224=_0x2db077['getIntersection'](_0x1ccfd6[_0x136e('0xbc')]());null!==_0x35b224&&_0x1ccfd6[_0x136e('0x124')]([_0x35b224],null,_0xa6c708);}}if(_0x2db077['detach'](),_0x2db077[_0x136e('0xf2')]||_0x136e('0x9d')==_0x2db077['root'][_0x136e('0x26')])return null;let _0x4c6c59=null,_0x48cd74=_0x2db077[_0x136e('0x66')],_0x16da8a=_0x2db077[_0x136e('0x25')];const _0x284cbc=this[_0x136e('0xae')](_0x2db077,'deletion');for(const {suggestion:_0x48f590,meta:_0x47806a}of _0x284cbc){const _0x905d27=this['_model'][_0x136e('0x24')](_0x48cd74,_0x16da8a);if(_0x47806a[_0x136e('0xdf')]&&(this['_mergeNestedSuggestions']||!_0x47806a[_0x136e('0x135')]&&!_0x47806a['isInsideObject'])){if(_0x48f590[_0x136e('0x110')]){if(!Ot(_0x48f590,_0xa6c708))continue;let _0x1193dc=!0x0;for(const _0x81535b of _0x48f590['getRanges']()){if(_0x81535b[_0x136e('0xef')](_0x905d27,!0x0))return _0x48f590;_0x905d27[_0x136e('0xef')](_0x81535b)||(_0x1193dc=!0x1);}_0x1193dc&&_0x48f590[_0x136e('0xb0')]();}else{const _0x5460a9=_0x48f590['getFirstRange']();if(_0x5460a9[_0x136e('0xef')](_0x905d27,!0x0))return _0x48f590;if(!Ot(_0x48f590,_0xa6c708)){_0x905d27['containsRange'](_0x5460a9)?_0x48f590[_0x136e('0x106')]():_0x5460a9[_0x136e('0x7')](_0x48cd74)?_0x48cd74=_0x5460a9['end']:_0x5460a9[_0x136e('0x7')](_0x16da8a)&&(_0x16da8a=_0x5460a9[_0x136e('0x66')]);continue;}_0x48cd74=_0x48cd74[_0x136e('0xad')](_0x5460a9['start'])?_0x48cd74:_0x5460a9[_0x136e('0x66')],_0x16da8a=_0x16da8a[_0x136e('0xb2')](_0x5460a9[_0x136e('0x25')])?_0x16da8a:_0x5460a9['end'],_0xa6c708=Object[_0x136e('0xde')]({},_0x48f590[_0x136e('0x67')]),_0x4c6c59?_0x5460a9[_0x136e('0x66')][_0x136e('0xad')](_0x4c6c59[_0x136e('0xbc')]()[_0x136e('0x66')])?(_0x4c6c59[_0x136e('0x106')](),_0x4c6c59=_0x48f590):_0x48f590[_0x136e('0x106')]():_0x4c6c59=_0x48f590;}}}if(_0x4c6c59)return this[_0x136e('0x10d')](_0x4c6c59,this[_0x136e('0x111')][_0x136e('0x24')](_0x48cd74,_0x16da8a)),_0x4c6c59;{const _0x3f9fa4=_0x354618(),_0x437da0=this['_model'][_0x136e('0x24')](_0x48cd74,_0x16da8a),_0x3c0bcd=_0x28c600['id'],_0x5b8d2e=_0x10950f?_0x136e('0xc4')+_0x10950f:_0x136e('0x11c'),_0x3e18d0=this[_0x136e('0x92')]({'id':_0x3f9fa4,'type':_0x5b8d2e,'createdAt':new Date(),'authorId':_0x3c0bcd,'attributes':_0xa6c708});return this[_0x136e('0x37')](_0x5b8d2e,_0x3f9fa4,_0x3c0bcd,_0x437da0),_0x3e18d0;}}[_0x136e('0x9c')](_0x2db201,_0x3529a3=_0x136e('0x127'),_0x907e9e={}){const _0x19fdb7=this[_0x136e('0xe0')][_0x136e('0xdc')][_0x136e('0x57')]('Users')['me'],_0x25ad94=_0x2db201['map'](_0x2b8faa=>new _0x29be02(_0x2b8faa[_0x136e('0x66')],_0x2b8faa[_0x136e('0x25')])),_0xe3025f=new Set();for(const {suggestion:_0x2f3561,meta:_0xf4b8ac}of this['_findSuggestions'](_0x25ad94,_0x136e('0x1f')))_0xf4b8ac[_0x136e('0xdf')]&&!_0xf4b8ac[_0x136e('0x35')]&&_0xe3025f[_0x136e('0x12c')](_0x2f3561);for(const _0x103877 of _0xe3025f)if(_0x103877[_0x136e('0x110')]){const _0x1780c7=_0x103877['getRanges']();(!_0x103877[_0x136e('0x67')]||!_0x103877[_0x136e('0x67')]['skipNestingCheck'])&&(_0x1780c7[_0x136e('0x9f')](_0x22a39c=>_0x25ad94['some'](_0x410662=>_0x410662[_0x136e('0xef')](_0x22a39c,!0x0)))&&_0x103877[_0x136e('0xb0')]());if(_0x25ad94[_0x136e('0x9f')](_0x159005=>_0x1780c7['some'](_0x51b08b=>_0x51b08b['containsRange'](_0x159005,!0x0)))){const _0x3203a4=this[_0x136e('0x71')][_0x136e('0x123')](_0x136e('0x11c'),_0x3529a3,_0x136e('0xcb'));return this['forceDefaultExecution'](()=>_0x3203a4(_0x2db201,null,_0x907e9e)),null;}}else{const _0x36acb2=_0x103877[_0x136e('0xbc')]();_0x25ad94['some'](_0x4de1b9=>_0x4de1b9[_0x136e('0xef')](_0x36acb2,!0x0))&&_0x103877[_0x136e('0xb0')]();if(_0x25ad94[_0x136e('0x9f')](_0x330eb6=>_0x36acb2[_0x136e('0xef')](_0x330eb6,!0x0))){const _0x2c7482=this[_0x136e('0x71')][_0x136e('0x123')](_0x136e('0x11c'),_0x3529a3,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x2c7482(_0x25ad94,null,_0x907e9e)),null;}}const _0xca9d83=this[_0x136e('0x71')]['getSuggestionCallback']('deletion',_0x3529a3,'join');let _0x25fef6=null;for(const _0x88cb0a of this[_0x136e('0x36')]())if(_0x88cb0a[_0x136e('0x54')]['id']==_0x19fdb7['id']&&_0x88cb0a[_0x136e('0x89')]&&_0x136e('0x11c')==_0x88cb0a[_0x136e('0xdb')]&&_0x88cb0a[_0x136e('0xab')]==_0x3529a3&&Ot(_0x88cb0a,_0x907e9e)&&(_0xca9d83(_0x88cb0a[_0x136e('0xa0')](),_0x25ad94)||_0xca9d83(_0x25ad94,_0x88cb0a[_0x136e('0xa0')]()))){if(_0x25fef6){if(_0x88cb0a['commentThread']&&_0x88cb0a['commentThread'][_0x136e('0x19')])continue;for(const _0x57387e of _0x88cb0a[_0x136e('0xa0')]())_0x25fef6[_0x136e('0x38')](_0x57387e)||_0x25fef6['addRange'](_0x57387e);_0x88cb0a['removeMarkers']();}else{_0x25fef6=_0x88cb0a;for(const _0x27bfe4 of _0x25ad94)_0x88cb0a[_0x136e('0x38')](_0x27bfe4)||_0x88cb0a['addRange'](_0x27bfe4);}}if(_0x25fef6)return _0x25fef6;_0xe3025f[_0x136e('0x7a')]();for(const {suggestion:_0x256d65,meta:_0xb79e61}of this[_0x136e('0xae')](_0x25ad94,_0x136e('0x11c')))_0xb79e61[_0x136e('0xdf')]&&(this[_0x136e('0x12a')]||!_0xb79e61['containsRangeInObject']&&!_0xb79e61['isInsideObject'])&&Ot(_0x256d65,_0x907e9e)&&_0xe3025f['add'](_0x256d65);for(const _0x18158a of _0xe3025f){const _0x42f684=_0x18158a[_0x136e('0xa0')]();if(!_0x907e9e||!_0x907e9e[_0x136e('0xaa')]){if(_0x25ad94[_0x136e('0x9f')](_0x2d552a=>_0x42f684[_0x136e('0x1d')](_0x4d1d51=>_0x4d1d51['containsRange'](_0x2d552a,!0x0))))return _0x18158a;}(!_0x18158a[_0x136e('0x67')]||!_0x18158a[_0x136e('0x67')][_0x136e('0xaa')])&&(_0x42f684[_0x136e('0x9f')](_0x300191=>_0x25ad94[_0x136e('0x1d')](_0x3404ef=>_0x3404ef[_0x136e('0xef')](_0x300191,!0x0)))&&_0x18158a['discard']());}const _0x2fcef8=_0x354618(),_0x5eac0d=_0x19fdb7['id'],_0x4fdda3=_0x136e('0xc4')+_0x3529a3,_0x2259f=this[_0x136e('0x92')]({'id':_0x2fcef8,'type':_0x4fdda3,'createdAt':new Date(),'authorId':_0x5eac0d,'attributes':_0x907e9e});for(const _0x14be3f of _0x25ad94)_0x14be3f[_0x136e('0xd')](),_0x14be3f[_0x136e('0xf2')]||'$graveyard'==_0x14be3f['root'][_0x136e('0x26')]||this['_addSuggestionMarker'](_0x4fdda3,_0x2fcef8,_0x5eac0d,_0x14be3f,_0x38d814['getMultiRangeId']());return _0x2259f;}[_0x136e('0x10d')](_0x35b549,_0x2503a4){const _0x24004d=_0x35b549['getFirstMarker']();this[_0x136e('0x111')][_0x136e('0x8c')](_0x557217=>{_0x557217[_0x136e('0x72')](_0x24004d,{'range':_0x2503a4});});}[_0x136e('0x53')](_0x2a5e71){const _0x4a7384=_0x2a5e71['id'],_0x4f06d9=this[_0x136e('0xe0')][_0x136e('0x76')]['get'](_0x136e('0xc2'));this['_commentsRepository']['hasCommentThread'](_0x4a7384)||this[_0x136e('0xcc')]['addCommentThread']({'channelId':_0x4f06d9,'threadId':_0x4a7384,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5c3062=this[_0x136e('0xcc')][_0x136e('0x11f')](_0x4a7384);_0x5c3062[_0x136e('0x16')](_0x136e('0xa')),_0x5c3062[_0x136e('0xa')]=!0x1,_0x2a5e71[_0x136e('0xb6')]=_0x5c3062;}[_0x136e('0x65')](_0x1d556e,_0x58933e,_0x28f7c5,_0x18f5c4){if(_0x1d556e[_0x136e('0xdb')]!=_0x58933e||_0x1d556e[_0x136e('0xab')]!=_0x28f7c5||_0x1d556e[_0x136e('0x12d')]['id']!=_0x18f5c4)throw this[_0x136e('0xe0')][_0x136e('0x10b')](_0x136e('0x104')),new _0x22b8c7('track-changes-suggestion-data-mismatch',this);}[_0x136e('0x96')](_0x2dfdea,_0x4ffb48){const _0x156449=_0x2dfdea[_0x136e('0xbc')]();if(_0x4ffb48[_0x136e('0x136')](_0x156449))_0x2dfdea['removeMarkers']();else{if(_0x156449[_0x136e('0xef')](_0x4ffb48)){const _0x1fcb1d=this['_model'][_0x136e('0x7e')](_0x4ffb48[_0x136e('0x66')][_0x136e('0xc6')],_0x136e('0x25'));this[_0x136e('0x10d')](_0x2dfdea,this[_0x136e('0x111')][_0x136e('0x24')](_0x156449[_0x136e('0x66')],_0x1fcb1d));const _0x28b1c7=_0x354618(),_0x540d38=_0x2dfdea[_0x136e('0x12d')]['id'],_0x41e16c=_0x2dfdea[_0x136e('0xdb')]+':'+_0x2dfdea[_0x136e('0xab')];this[_0x136e('0x92')]({'id':_0x28b1c7,'type':_0x41e16c,'createdAt':new Date(),'authorId':_0x540d38,'data':_0x2dfdea['data'],'attributes':_0x2dfdea[_0x136e('0x67')]});const _0x3921bd=this[_0x136e('0x111')][_0x136e('0x7e')](_0x4ffb48[_0x136e('0x25')]['parent'],_0x136e('0x82')),_0x382dac=this['_model'][_0x136e('0x24')](_0x3921bd,_0x156449[_0x136e('0x25')]);this[_0x136e('0x37')](_0x41e16c,_0x28b1c7,_0x540d38,_0x382dac);}else{if(_0x156449['containsPosition'](_0x4ffb48[_0x136e('0x66')])){const _0x1bb0d7=this['_model'][_0x136e('0x7e')](_0x4ffb48['start'][_0x136e('0xc6')],_0x136e('0x25'));this[_0x136e('0x10d')](_0x2dfdea,this[_0x136e('0x111')][_0x136e('0x24')](_0x156449['start'],_0x1bb0d7));}else{const _0x3c774d=this['_model'][_0x136e('0x7e')](_0x4ffb48['end'][_0x136e('0x81')],_0x136e('0x82'));this[_0x136e('0x10d')](_0x2dfdea,this['_model'][_0x136e('0x24')](_0x3c774d,_0x156449[_0x136e('0x25')]));}}}}[_0x136e('0x134')](_0x29503a){for(const {suggestion:_0x10075b,meta:_0x3bdb11}of this['_findSuggestions'](_0x29503a,_0x136e('0x1f'))){if(!_0x3bdb11[_0x136e('0xdf')])continue;const _0x2dd116=_0x10075b[_0x136e('0xa0')]();for(const _0x53bad7 of _0x2dd116)if(!_0x29503a[_0x136e('0x10f')](_0x53bad7)['length'])return!0x0;}return!0x1;}[_0x136e('0x118')](_0x86fb7f){const _0x32ad72=this[_0x136e('0xe0')][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))[_0x136e('0x7d')](_0x86fb7f);if(!_0x32ad72)throw new _0x22b8c7(_0x136e('0x44'),this);return _0x32ad72;}[_0x136e('0x43')](_0x59bbec){const _0x36b583=this['editor']['plugins']['get'](_0x136e('0x48')),_0x3019b1=_0x299fef('external:'+_0x59bbec),_0x2eac50=_0x36b583[_0x136e('0x7d')](_0x3019b1);return _0x2eac50||_0x36b583[_0x136e('0x133')]({'id':_0x3019b1,'name':_0x59bbec});}[_0x136e('0x10c')](_0x457857,_0x568e49,_0x2e7983,_0x27c38e,_0x471eb4){const _0x5734f1=this[_0x136e('0x118')](_0x27c38e),_0x36472f=this[_0x136e('0x71')]['buildSuggestion'](_0x457857,_0x568e49,_0x2e7983,_0x5734f1,_0x471eb4,_0x1252ee=>this[_0x136e('0x6b')](_0x2e7983,{'attributes':_0x1252ee}));return this[_0x136e('0xd3')](_0x36472f,_0x136e('0xcb'),()=>{this[_0x136e('0x6b')](_0x2e7983,{'state':_0x136e('0x31')});},{'priority':_0x136e('0x117')}),this['listenTo'](_0x36472f,_0x136e('0xb0'),()=>{this[_0x136e('0x6b')](_0x2e7983,{'state':'rejected'});},{'priority':_0x136e('0x117')}),this[_0x136e('0xbf')][_0x136e('0x85')](_0x2e7983,_0x36472f),this[_0x136e('0x83')][_0x136e('0x85')](_0x36472f,_0x136e('0x1')),_0x36472f;}[_0x136e('0xc1')](_0x47479a){const _0x506b06=_0x47479a[_0x136e('0xba')](':');return{'group':_0x506b06[0x0],'type':_0x506b06[0x1],'subType':_0x506b06[_0x136e('0x19')]>=0x5?_0x506b06[0x2]:null,'id':_0x506b06[_0x136e('0x19')]<0x5?_0x506b06[0x2]:_0x506b06[0x3],'authorId':_0x506b06[_0x136e('0x19')]<0x5?_0x506b06[0x3]:_0x506b06[0x4],'markerCount':0x6==_0x506b06[_0x136e('0x19')]?_0x506b06[0x5]:null};}[_0x136e('0x21')](_0x2ebf6d,_0x2a768a,_0x1e8724){const _0x56b721=_0x2ebf6d[_0x136e('0xbc')](),_0x2f9a7a=_0x56b721['start'],_0x4824c5=_0x56b721['end'];this[_0x136e('0x10d')](_0x2ebf6d,this[_0x136e('0x111')]['createRange'](_0x2f9a7a,_0x2a768a));const _0xd421b1=_0x354618(),_0x427354=_0x2ebf6d[_0x136e('0x12d')]['id'],_0x2855cc=_0x2ebf6d[_0x136e('0xdb')]+(_0x2ebf6d['subType']?':'+_0x2ebf6d['subType']:'');this[_0x136e('0x92')]({'id':_0xd421b1,'type':_0x2855cc,'createdAt':new Date(),'authorId':_0x427354,'originalSuggestionId':_0x2ebf6d['id'],'attributes':_0x2ebf6d[_0x136e('0x67')],'data':_0x2ebf6d[_0x136e('0xd6')]}),_0x136e('0x100')==_0x2ebf6d[_0x136e('0xdb')]&&(_0x1e8724=this[_0x136e('0x111')]['createPositionBefore'](_0x1e8724[_0x136e('0x81')])),this[_0x136e('0x37')](_0x2855cc,_0xd421b1,_0x427354,this[_0x136e('0x111')][_0x136e('0x24')](_0x1e8724,_0x4824c5));}[_0x136e('0xae')](_0x586d95,_0x5f0227=null){const _0x1b73cf=[],_0x317a54=this[_0x136e('0xe0')][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'];Array[_0x136e('0xce')](_0x586d95)||(_0x586d95=[_0x586d95]);for(const _0x5235fd of this[_0x136e('0x36')]()){if(!_0x5235fd[_0x136e('0x89')])continue;if(_0x5f0227&&_0x5235fd['type']!=_0x5f0227)continue;let _0xa82913=!0x1;for(const _0x2b953a of _0x5235fd[_0x136e('0xa0')]()){for(const _0x13ee1e of _0x586d95){const _0x344340=_0x13ee1e['start']['isEqual'](_0x2b953a[_0x136e('0x25')])||_0x13ee1e[_0x136e('0x25')][_0x136e('0x136')](_0x2b953a[_0x136e('0x66')]);if(_0x344340||_0x13ee1e['getIntersection'](_0x2b953a)){const _0x4db83d=_0x13ee1e[_0x136e('0xef')](_0x2b953a)&&_t(this['_model'][_0x136e('0xcf')],_0x2b953a[_0x136e('0x66')],_0x13ee1e),_0x3a849e=_0x2b953a['containsRange'](_0x13ee1e)&&_t(this[_0x136e('0x111')][_0x136e('0xcf')],_0x13ee1e[_0x136e('0x66')],_0x2b953a);_0x1b73cf[_0x136e('0x56')]({'suggestion':_0x5235fd,'meta':{'isOwn':_0x317a54==_0x5235fd[_0x136e('0x54')],'isNextTo':_0x344340,'isInsideObject':_0x4db83d,'containsRangeInObject':_0x3a849e}}),_0xa82913=!0x0;break;}}if(_0xa82913)break;}}return _0x1b73cf;}['_addSuggestionMarker'](_0xf0ce5,_0x29c2cb,_0x5b0931,_0xf682d0,_0x3f5091){this[_0x136e('0x111')]['change'](_0x523406=>{let _0x570e8b=_0x136e('0x97')+_0xf0ce5+':'+_0x29c2cb+':'+_0x5b0931;_0x3f5091&&(_0x570e8b=_0x570e8b+':'+_0x3f5091),_0x523406[_0x136e('0xc3')](_0x570e8b,{'range':_0xf682d0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x19d10b){const _0x246567=_0x19d10b['previous'],_0x563f84=_0x19d10b[_0x136e('0x120')];_0x19d10b[_0x136e('0x5d')]=null,null!=_0x246567&&(_0x246567['next']=null),_0x19d10b[_0x136e('0x120')]=null,null!=_0x563f84&&(_0x563f84['previous']=null),_0x136e('0x78')==this[_0x136e('0x83')]['get'](_0x19d10b)&&(this[_0x136e('0x83')][_0x136e('0x85')](_0x19d10b,_0x136e('0x2f')),this[_0x136e('0x5a')]('suggestionUnloaded',_0x19d10b,_0x246567,_0x563f84));}[_0x136e('0x92')](_0x3a7890){const _0x172c25=_0x3a7890['id'],_0x3efeec=this[_0x136e('0xe5')](_0x3a7890);if(this[_0x136e('0x13f')]&&this[_0x136e('0x13f')][_0x136e('0x23')]){const _0x18a550=this['editor']['plugins']['get'](_0x136e('0x8a')),_0x399da5=_0x3efeec['hasComments'],_0x5e1f0b=_0x3efeec[_0x136e('0xab')]?_0x3efeec[_0x136e('0xdb')]+':'+_0x3efeec[_0x136e('0xab')]:_0x3efeec[_0x136e('0xdb')],_0x94fc80=this[_0x136e('0xe0')][_0x136e('0xb9')],_0x10ccde=_0x18a550['add'](_0x302a9d(_0x94fc80,_0x136e('0xdd'))),_0x48e186={'id':_0x172c25,'type':_0x5e1f0b,'hasComments':_0x399da5,'data':_0x3a7890[_0x136e('0xd6')]||null,'originalSuggestionId':_0x3a7890[_0x136e('0x132')]||null,'attributes':_0x3efeec[_0x136e('0x67')]};this[_0x136e('0x13f')][_0x136e('0x23')](_0x48e186)['then'](_0x2d9e48=>{_0x3efeec[_0x136e('0x46')]=!0x0,_0x18a550[_0x136e('0x4a')](_0x10ccde),_0x2d9e48&&_0x2d9e48['createdAt']&&(this[_0x136e('0xbf')]['get'](_0x172c25)[_0x136e('0x4c')]=_0x2d9e48[_0x136e('0x4c')]);})['catch'](_0x21f4c7=>{throw _0x5a5021(_0x136e('0x80')),this['editor']['model'][_0x136e('0xda')]({'isUndoable':!0x1},()=>{_0x3efeec[_0x136e('0xb0')]();}),_0x3efeec[_0x136e('0x11')](),this['_suggestions'][_0x136e('0xf7')](_0x3efeec['id']),this[_0x136e('0x83')][_0x136e('0xf7')](_0x3efeec),_0x21f4c7;});}return _0x3efeec;}[_0x136e('0x6b')](_0x58539b,_0x14fefd){const _0x3b1302=this[_0x136e('0xe0')]['plugins']['get'](_0x136e('0x8a')),_0x1f483e=this[_0x136e('0xa7')](_0x58539b);if(this[_0x136e('0x13f')]&&this[_0x136e('0x13f')][_0x136e('0xf6')]){if(_0x1f483e[_0x136e('0x46')]){const _0x347179=_0x3b1302['add'](_0x302a9d(this[_0x136e('0xe0')][_0x136e('0xb9')],_0x136e('0xdd')));this[_0x136e('0x13f')][_0x136e('0xf6')](_0x58539b,_0x14fefd)[_0x136e('0x29')](()=>{_0x3b1302['remove'](_0x347179);});}else _0x1f483e['on'](_0x136e('0xc7'),()=>{this[_0x136e('0x6b')](_0x58539b,_0x14fefd);});}}['_getSuggestionData'](_0x4dd780){if(!this[_0x136e('0x13f')]||!this[_0x136e('0x13f')][_0x136e('0xa7')])throw new _0x22b8c7(_0x136e('0xa3'),this);return this[_0x136e('0x13f')]['getSuggestion'](_0x4dd780);}[_0x136e('0xc')](_0x2a9891){const {id:_0x471d93,type:_0x17333f,subType:_0x17d31b,authorId:_0x35bbf3}=this['_splitMarkerName'](_0x2a9891),_0x22b8c9=this[_0x136e('0xbf')][_0x136e('0x57')](_0x471d93)||this[_0x136e('0x10c')](_0x17333f,_0x17d31b,_0x471d93,_0x35bbf3,{});switch(this[_0x136e('0x65')](_0x22b8c9,_0x17333f,_0x17d31b,_0x35bbf3),this[_0x136e('0x83')][_0x136e('0x57')](_0x22b8c9)){case _0x136e('0x1'):this[_0x136e('0xb1')](_0x471d93)[_0x136e('0x29')](_0x3f8d9c=>{let _0x31cbe0=Promise[_0x136e('0x10')]();_0x3f8d9c['hasComments']&&(_0x31cbe0=this[_0x136e('0xcc')][_0x136e('0xd5')]({'channelId':this['editor'][_0x136e('0x76')][_0x136e('0x57')](_0x136e('0xc2')),'threadId':_0x471d93})),_0x31cbe0['then'](()=>{this[_0x136e('0xe5')](_0x3f8d9c)['_saved']=!0x0;});}),this['_suggestionState'][_0x136e('0x85')](_0x22b8c9,'markerReady');break;case _0x136e('0x2f'):this[_0x136e('0x6b')](_0x471d93,{'state':_0x136e('0x114')});case'dataReady':this['_suggestionState'][_0x136e('0x85')](_0x22b8c9,_0x136e('0x78')),this[_0x136e('0x5a')](_0x136e('0xfa'),_0x22b8c9);break;case'ready':this[_0x136e('0x5a')](_0x136e('0x4b'),_0x22b8c9);}return _0x22b8c9['addMarkerName'](_0x2a9891),_0x22b8c9;}[_0x136e('0x33')](_0x455e02){const _0x210d28=Array[_0x136e('0x8d')](_0x455e02)[_0x136e('0xcd')](_0x29c41e=>!_0x29c41e[_0x136e('0x110')]),_0xf9bba2=this[_0x136e('0x36')]({'skipNotAttached':!0x0})[_0x136e('0xcd')](_0x357ff4=>!_0x357ff4['isMultiRange']),_0x160098=_0xf9bba2[_0x136e('0xcd')](_0x5ac8f1=>!_0x455e02[_0x136e('0x74')](_0x5ac8f1)),_0x54c806=new Map(_0xf9bba2['map'](_0x114076=>[_0x114076,this[_0x136e('0x71')][_0x136e('0x123')](_0x114076[_0x136e('0xdb')],_0x114076[_0x136e('0xab')],'chain')])),_0x2b2443=new Map(_0xf9bba2[_0x136e('0x9b')](_0x1ebead=>[_0x1ebead,_0x1ebead[_0x136e('0xbc')]()])),_0x3f0a21=new Set(),_0x39706d=new Set();for(let _0x47cf96=0x0;_0x47cf96<_0x210d28[_0x136e('0x19')];_0x47cf96++)_0x61ba22(_0x210d28[_0x47cf96],_0x210d28,_0x47cf96+0x1);for(let _0x3efd04=0x0;_0x3efd04<_0x210d28[_0x136e('0x19')];_0x3efd04++)_0x61ba22(_0x210d28[_0x3efd04],_0x160098,0x0);for(let _0x407ae3=0x0;_0x407ae3<_0x210d28['length'];_0x407ae3++){const _0x5237e9=_0x210d28[_0x407ae3];!_0x39706d[_0x136e('0x74')](_0x5237e9)&&_0x5237e9['previous']&&(_0x5237e9['previous'][_0x136e('0x120')]===_0x5237e9&&(_0x5237e9[_0x136e('0x5d')][_0x136e('0x120')]=null),_0x5237e9[_0x136e('0x5d')]=null),!_0x3f0a21[_0x136e('0x74')](_0x5237e9)&&_0x5237e9[_0x136e('0x120')]&&(_0x5237e9[_0x136e('0x120')][_0x136e('0x5d')]===_0x5237e9&&(_0x5237e9['next'][_0x136e('0x5d')]=null),_0x5237e9[_0x136e('0x120')]=null);}function _0x61ba22(_0x6d5e2f,_0x1b1bf1,_0x2935a6){for(let _0x48ffd4=_0x2935a6;_0x48ffd4<_0x1b1bf1[_0x136e('0x19')];_0x48ffd4++){const _0x3fb143=_0x1b8b88(_0x6d5e2f,_0x1b1bf1[_0x48ffd4]);_0x3fb143&&(_0x3fb143[0x0]['next']=_0x3fb143[0x1],_0x3fb143[0x1][_0x136e('0x5d')]=_0x3fb143[0x0],_0x3f0a21[_0x136e('0x12c')](_0x3fb143[0x0]),_0x39706d['add'](_0x3fb143[0x1]));}}function _0x1b8b88(_0x380819,_0x29451a){if(_0x380819[_0x136e('0x54')]['id']!==_0x29451a[_0x136e('0x54')]['id'])return null;const _0x4bdee4=_0x54c806[_0x136e('0x57')](_0x380819)(_0x380819,_0x29451a,_0x2b2443[_0x136e('0x57')](_0x380819),_0x2b2443['get'](_0x29451a));if(!_0x4bdee4)return null;return _0x54c806[_0x136e('0x57')](_0x29451a)(_0x380819,_0x29451a,_0x2b2443[_0x136e('0x57')](_0x380819),_0x2b2443[_0x136e('0x57')](_0x29451a))?_0x4bdee4[0x1][_0x136e('0xb6')]&&_0x4bdee4[0x1][_0x136e('0xb6')][_0x136e('0x19')]?null:_0x4bdee4:null;}}['_joinWithAdjacentSuggestions'](_0x39b819){const _0x4b592c=Array[_0x136e('0x8d')](_0x39b819),_0x3c823f=this[_0x136e('0x36')]({'skipNotAttached':!0x0}),_0x506c3b=_0x3c823f[_0x136e('0xcd')](_0x294149=>!_0x39b819['has'](_0x294149)),_0x1e6ca1=new Map(_0x4b592c['map'](_0x4a2733=>[_0x4a2733,this[_0x136e('0x71')][_0x136e('0x123')](_0x4a2733['type'],_0x4a2733[_0x136e('0xab')],'join')])),_0x5ad6bc=new Map(_0x3c823f[_0x136e('0x9b')](_0x36ae4a=>[_0x36ae4a,_0x36ae4a[_0x136e('0xa0')]()]));for(let _0x3ba715=0x0;_0x3ba715<_0x4b592c[_0x136e('0x19')];_0x3ba715++){if(_0xc63972(this,_0x4b592c[_0x3ba715],_0x4b592c,_0x3ba715+0x1))return!0x0;}for(let _0x4e4712=0x0;_0x4e4712<_0x4b592c[_0x136e('0x19')];_0x4e4712++){if(_0xc63972(this,_0x4b592c[_0x4e4712],_0x506c3b,0x0))return!0x0;}return!0x1;function _0xc63972(_0x5dcc9d,_0x3dcc45,_0x1067b,_0x36859b){for(let _0x8228c6=_0x36859b;_0x8228c6<_0x1067b['length'];_0x8228c6++){const _0x4011f7=_0x1067b[_0x8228c6];if(_0x4011f7['type']!==_0x3dcc45[_0x136e('0xdb')]||_0x4011f7['author']['id']!==_0x3dcc45[_0x136e('0x54')]['id']||_0x4011f7[_0x136e('0xab')]!==_0x3dcc45[_0x136e('0xab')])continue;if(!Ut(_0x3dcc45,_0x4011f7))continue;const _0x517411=_0x1e6ca1['get'](_0x3dcc45),_0x591f02=_0x5ad6bc[_0x136e('0x57')](_0x3dcc45),_0x24e229=_0x5ad6bc[_0x136e('0x57')](_0x4011f7),_0x55fc3b=_0x3dcc45[_0x136e('0xb6')]&&_0x3dcc45[_0x136e('0xb6')][_0x136e('0x19')],_0x360433=_0x4011f7['commentThread']&&_0x4011f7[_0x136e('0xb6')][_0x136e('0x19')];if(!_0x55fc3b&&_0x517411(_0x24e229,_0x591f02))return _0x5dcc9d[_0x136e('0x11d')](_0x4011f7,_0x3dcc45),_0x5ad6bc['delete'](_0x3dcc45),!0x0;if(!_0x360433&&_0x517411(_0x591f02,_0x24e229))return _0x5dcc9d[_0x136e('0x11d')](_0x3dcc45,_0x4011f7),_0x5ad6bc[_0x136e('0xf7')](_0x4011f7),!0x0;}return!0x1;}}[_0x136e('0x11d')](_0x2ea405,_0x36199f){if(_0x2ea405[_0x136e('0x110')])for(const _0xf335c1 of _0x36199f[_0x136e('0xa0')]())_0x2ea405[_0x136e('0x121')](_0xf335c1);else{const _0x38f3e0=_0x36199f[_0x136e('0xbc')]()[_0x136e('0x25')];this[_0x136e('0x10d')](_0x2ea405,this[_0x136e('0x111')][_0x136e('0x24')](_0x2ea405[_0x136e('0xbc')]()[_0x136e('0x66')],_0x38f3e0));}_0x36199f['removeMarkers']();}}class Bt{constructor(_0x2dfc64){this[_0x136e('0x107')]=_0x2dfc64,this[_0x136e('0x111')]=_0x2dfc64[_0x136e('0x115')],this[_0x136e('0xf0')]=new Map(),this[_0x136e('0x45')]=new Map(),this[_0x136e('0x62')]();}['buildSuggestion'](_0x4b3e0c,_0x44e160,_0x44ef87,_0x3e2637,_0x7ab20b,_0x5d1e4e){return new _0x38d814(this[_0x136e('0x111')],{'type':_0x4b3e0c,'subType':_0x44e160,'id':_0x44ef87,'author':_0x3e2637,'creator':_0x3e2637,'attributes':_0x7ab20b,'onAttributesChange':_0x5d1e4e,'onAccept':(..._0x1f082e)=>this[_0x136e('0x123')](_0x4b3e0c,_0x44e160,_0x136e('0xcb'))(..._0x1f082e),'onDiscard':(..._0x59ec69)=>this['getSuggestionCallback'](_0x4b3e0c,_0x44e160,_0x136e('0xb0'))(..._0x59ec69)});}['registerCustomCallback'](_0x5c88b3,_0x53bf18,_0x17f6eb,_0x496ea2){const _0x15fe59=_0x5c88b3+':'+_0x53bf18+':'+_0x17f6eb;this[_0x136e('0xf0')][_0x136e('0x85')](_0x15fe59,_0x496ea2);}['getSuggestionCallback'](_0x4d2c62,_0x38e6d9,_0x3f22e0){const _0x5021f0=_0x4d2c62+':'+_0x38e6d9+':'+_0x3f22e0;return this[_0x136e('0xf0')][_0x136e('0x57')](_0x5021f0)||this['_defaultCallbacks'][_0x136e('0x57')](_0x4d2c62+':'+_0x3f22e0);}['_registerDefaultCallbacks'](){const _0x4c880e=()=>!0x1,_0x25cf8f=_0x403e2b=>{_0x403e2b[_0x136e('0xff')]((_0xb413bd,_0x2fc994)=>_0xb413bd['start'][_0x136e('0xad')](_0x2fc994[_0x136e('0x66')])?0x1:-0x1),this['_model'][_0x136e('0x8c')](_0x128ee0=>{for(const _0x20226d of _0x403e2b){let _0x44a34f;_0x44a34f=_0x20226d[_0x136e('0x25')][_0x136e('0xf5')]&&_0x20226d[_0x136e('0x25')]['parent']==_0x20226d[_0x136e('0x66')][_0x136e('0xac')]?_0x128ee0[_0x136e('0x3f')](_0x20226d['start'][_0x136e('0xac')],'on'):_0x128ee0[_0x136e('0x3f')](_0x20226d),this[_0x136e('0x111')]['deleteContent'](_0x44a34f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x376923=(_0x3b9623,_0x78e375)=>{this[_0x136e('0x111')][_0x136e('0x8c')](_0x425724=>{const {commandName:_0x4f77fe,commandParams:_0x19c457=[]}=_0x78e375,_0x5ef88d=_0x3b9623['map'](_0x297db2=>(Mt(_0x297db2)&&(_0x297db2=this['_model'][_0x136e('0x24')](_0x297db2[_0x136e('0x25')])),_0x297db2))[_0x136e('0xcd')](_0x366d61=>_0x136e('0x9d')!==_0x366d61[_0x136e('0x68')][_0x136e('0x26')]);if(_0x5ef88d[_0x136e('0x19')]<0x1)return;const _0x32b741=Array[_0x136e('0x8d')](this['_model'][_0x136e('0xfd')][_0x136e('0xe2')][_0x136e('0xa0')]())[_0x136e('0x9b')](_0x188768=>_0x29be02[_0x136e('0x95')](_0x188768));_0x425724['setSelection'](_0x5ef88d);for(const _0x389797 of this[_0x136e('0x107')][_0x136e('0x1a')]['commands']())_0x389797[_0x136e('0x69')]();_0x19c457[_0x136e('0x56')]({'forceDefaultExecution':!0x0}),this[_0x136e('0x107')][_0x136e('0x130')](_0x4f77fe,..._0x19c457);const _0x4e9160=_0x32b741[_0x136e('0xcd')](_0x5a8b68=>_0x136e('0x9d')!=_0x5a8b68[_0x136e('0x68')]['rootName']);_0x4e9160[_0x136e('0x19')]>0x0&&_0x425724['setSelection'](_0x4e9160);for(const _0x3a2bb5 of _0x32b741)_0x3a2bb5[_0x136e('0xd')]();});},_0x116883=(_0x421bec,_0x4b6a65)=>0x1==_0x421bec[_0x136e('0x19')]&&0x1==_0x4b6a65['length']&&_0x421bec[0x0][_0x136e('0x25')][_0x136e('0x136')](_0x4b6a65[0x0][_0x136e('0x66')]),_0x392273=(_0x250efd,_0x5d6d6e,_0x57637c,_0x9df2a2)=>xt(_0x250efd,_0x5d6d6e,_0x57637c,_0x9df2a2,this[_0x136e('0x111')])?[_0x250efd,_0x5d6d6e]:xt(_0x5d6d6e,_0x250efd,_0x9df2a2,_0x57637c,this[_0x136e('0x111')])?[_0x5d6d6e,_0x250efd]:null;this[_0x136e('0x45')][_0x136e('0x85')]('insertion:accept',_0x4c880e),this['_defaultCallbacks']['set'](_0x136e('0x9e'),_0x25cf8f),this[_0x136e('0x45')]['set']('insertion:join',_0x116883),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0xe4'),_0x392273),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0x59'),_0x25cf8f),this[_0x136e('0x45')]['set']('deletion:discard',_0x4c880e),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0xe8'),_0x116883),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0x6a'),_0x392273),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0x2d'),_0x376923),this[_0x136e('0x45')][_0x136e('0x85')]('formatInline:discard',_0x4c880e),this[_0x136e('0x45')]['set']('formatInline:join',_0x116883),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0xbb'),_0x4c880e),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0x18'),_0x376923),this[_0x136e('0x45')][_0x136e('0x85')]('formatBlock:discard',_0x4c880e),this[_0x136e('0x45')][_0x136e('0x85')]('formatBlock:join',_0x116883),this['_defaultCallbacks'][_0x136e('0x85')](_0x136e('0x126'),_0x4c880e);}}function _t(_0x14d9bc,_0x316acd,_0x1beb68){for(const _0x26d8bf of _0x316acd[_0x136e('0x81')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x26d8bf['root']==_0x26d8bf)return!0x1;if(!_0x1beb68[_0x136e('0x12')](_0x26d8bf))return!0x1;if(_0x14d9bc[_0x136e('0x116')](_0x26d8bf)||_0x14d9bc['isLimit'](_0x26d8bf))return!0x0;}return!0x1;}function Mt(_0x36364a){return _0x36364a[_0x136e('0x25')][_0x136e('0x81')]==_0x36364a[_0x136e('0x66')][_0x136e('0xac')]&&_0x36364a['end'][_0x136e('0x51')];}function $t(_0x297c0a,_0x5017f6,_0x21f520,_0x1b72c8){const _0x5c0a12=_0x400387=>!_0x400387[_0x136e('0x42')]['is'](_0x136e('0x13d'))&&!_0x1b72c8[_0x136e('0x116')](_0x400387[_0x136e('0x42')]),_0x9cb263=_0x297c0a[_0x136e('0x66')][_0x136e('0x64')](_0x5c0a12),_0x132320=_0x297c0a['end'][_0x136e('0x64')](_0x5c0a12,{'direction':_0x136e('0x4f')});return(!_0x297c0a['start'][_0x136e('0x136')](_0x9cb263)||!_0x297c0a[_0x136e('0x25')][_0x136e('0x136')](_0x132320))&&(_0x9cb263[_0x136e('0xad')](_0x132320)?_0x21f520[_0x136e('0x72')](_0x5017f6,{'range':_0x21f520[_0x136e('0x24')](_0x9cb263,_0x132320)}):_0x21f520['removeMarker'](_0x5017f6),!0x0);}function Nt(_0x542c32){return _0x299fef(_0x542c32);}function Rt(_0x114f5e){const _0x2ef806=_0x114f5e['start'][_0x136e('0xac')];return _0x2ef806&&_0x2ef806['is'](_0x136e('0xf9'));}function jt(_0x5111fb,_0x40528a){const _0x379baa=_0x40528a[_0x136e('0xcf')]['isObject'](_0x5111fb)||_0x40528a['schema'][_0x136e('0x49')](_0x5111fb);return _0x40528a[_0x136e('0x24')](_0x40528a[_0x136e('0x7e')](_0x5111fb,_0x136e('0x137')),_0x379baa?_0x40528a[_0x136e('0x52')](_0x5111fb):_0x40528a[_0x136e('0x7e')](_0x5111fb,_0x136e('0x25')));}function xt(_0x26949e,_0x28bc72,_0x5bd67f,_0x401bad,_0x1cf2ce){if(!Ut(_0x26949e,_0x28bc72))return!0x1;if(_0x5bd67f[_0x136e('0x25')]['isEqual'](_0x401bad[_0x136e('0x66')]))return!0x0;if(_0x26949e['type']!=_0x28bc72[_0x136e('0xdb')])return!0x1;if(!_0x5bd67f['end'][_0x136e('0xb8')](_0x401bad[_0x136e('0x66')]))return!0x1;const _0x29fbfa=_0x1cf2ce[_0x136e('0x24')](_0x5bd67f['end'],_0x401bad[_0x136e('0x66')])[_0x136e('0xa6')]();for(const _0x405242 of _0x29fbfa)if([_0x136e('0xf4'),'elementEnd'][_0x136e('0xf3')](_0x405242[_0x136e('0xdb')])&&_0x1cf2ce[_0x136e('0xcf')][_0x136e('0x32')](_0x405242['item']))return!0x1;return!0x0;}function Ut(_0x45e92b,_0x4e13bf){return!(!_0x45e92b[_0x136e('0xd7')]||!_0x4e13bf[_0x136e('0xd7')])&&_0x548309(_0x45e92b[_0x136e('0x67')],_0x4e13bf[_0x136e('0x67')]);}function Ot(_0x45fc04,_0x48c0cd){const _0x31e650=Et(_0x45fc04[_0x136e('0x67')]),_0x209aa1=Et(_0x48c0cd);if(!_0x45fc04[_0x136e('0xd7')])return!0x1;for(const _0x38ea6a of Object[_0x136e('0xb3')](_0x209aa1))if(!_0x548309(_0x31e650[_0x38ea6a],_0x209aa1[_0x38ea6a]))return!0x1;return!0x0;}function Et(_0x4cca05){const _0x339eae=Object[_0x136e('0xde')]({},_0x4cca05);return delete _0x339eae['skipNestingCheck'],delete _0x339eae['tablePasteChainId'],_0x339eae;}