@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250316.0 → 0.0.0-nightly-20250317.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/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x11a32a,Plugin as _0x2fff63,PendingActions as _0x1aaf18}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4090ca,ObservableMixin as _0x5f4cc5,uid as _0x164670,priorities as _0x4d7128,insertToPriorityArray as _0x3868ec,logWarning as _0x259c9e,getEnvKeystrokeText as _0x17eec3,FocusTracker as _0x4e2add,KeystrokeHandler as _0x4bd764,Collection as _0x263022}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1bb85f,IconCancel as _0x5ac248,IconTrackChanges as _0x1ef357}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x15c9c5,View as _0x3e415b,ViewCollection as _0x58d0a4,FocusCycler as _0x24fe94,ViewModel as _0x5ae4dc,createDropdown as _0x127d03,SplitButtonView as _0x123677,addListToDropdown as _0x430d85,MenuBarMenuView as _0x45615f,MenuBarMenuListView as _0x461916,ListSeparatorView as _0x20c88a,MenuBarMenuListItemView as _0x4ebf6d,MenuBarMenuListItemButtonView as _0x5e99f4,BodyCollection as _0x444071,Dialog as _0x55eaf3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x305a6b,hashObject as _0x5ae330,surroundingMarkersDetector as _0x258e32,FOCUS_ANNOTATION_KEYSTROKE as _0x56e5e7,AriaDescriptionView as _0x55e8f4,setupThreadKeyboardNavigation as _0x1c73f0,trimHtml as ti,UserView as _0x5b0652,LateFocusButtonView as _0x2f7fc4,getDateTimeFormatter as _0x4c0ba5,getAllMarkersDomElementsSorted as _0x155431,sanitizeEditorConfig as _0x371b9a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x61405c,LiveRange as _0x542068,LivePosition as _0x1e0e67,DowncastWriter as _0x40dea1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x55923b,toWidget as _0x322811}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1848c9,set as _0x550952,isEqual as _0x5e7928,unset as _0x1e47e2,omit as Vt}from'es-toolkit/compat';import{Delete as _0x577b3c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x132c6c,ShiftEnter as _0x11cac9}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x11a32a{['_enabledCommands'];constructor(_0x54c4d4,_0x177893){super(_0x54c4d4),this['_enabledCommands']=_0x177893,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x577e94 of this['editor']['commands']['commands']())_0x577e94['affectsData']&&!this['_enabledCommands']['has'](_0x577e94)&&_0x577e94['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x296f74 of this['editor']['commands']['commands']())_0x296f74['affectsData']&&!this['_enabledCommands']['has'](_0x296f74)&&_0x296f74['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x11a32a{['_suggestions'];constructor(_0x4180ea,_0x5a3dfc){super(_0x4180ea),this['_suggestions']=_0x5a3dfc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3eebec){const _0x4d4a02=this['_suggestions']['get'](_0x3eebec);if(!_0x4d4a02)throw new _0x4090ca('track-changes-accept-suggestion-not-found',this);const _0x278ebe=_0x4d4a02['getRanges']();this['editor']['model']['canEditAt'](_0x278ebe)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4d4a02);}}class R extends _0x11a32a{['_suggestions'];constructor(_0x17ab85,_0x2b14c7){super(_0x17ab85),this['_suggestions']=_0x2b14c7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3dd24b){const _0x4d9590=this['_suggestions']['get'](_0x3dd24b);if(!_0x4d9590)throw new _0x4090ca('track-changes-discard-suggestion-not-found',this);const _0x5c00e8=_0x4d9590['getRanges']();this['editor']['model']['canEditAt'](_0x5c00e8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4d9590);}}function ls(_0x2915c5,_0x31ea86){let _0x17119c='';return _0x17119c+=_0x2915c5['split']('*')['map']((_0x50a6b5,_0xb7015b)=>_0xb7015b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x50a6b5)+'</span>':nn(_0x50a6b5))['join'](''),_0x31ea86&&(_0x17119c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x31ea86['value']+'\x22\x20title=\x22'+_0x31ea86['title']+'\x22></span>'),_0x17119c;}function nn(_0x59fb66){const _0x78b775=document['createElement']('span');return _0x78b775['innerText']=_0x59fb66,_0x78b775['innerHTML'];}function ts(_0xdce125){return _0xdce125['sort']((_0x6b0e45,_0x4450e0)=>'deletion'==_0x6b0e45['type']&&'deletion'!=_0x4450e0['type']?-0x1:'deletion'!=_0x6b0e45['type']&&'deletion'==_0x4450e0['type']?0x1:0x0);}function Zt(_0x38dd94,_0xa2499f){let _0x36527e,_0x379fc1=0x0;const _0x546934=[],_0x113172=_0xa2499f['schema'];for(;_0x379fc1<_0x38dd94['length'];){const _0x1c530d=_0x38dd94[_0x379fc1],_0x9652a2=_0x38dd94[_0x379fc1+0x1];_0x36527e||(_0x36527e=_0xa2499f['createPositionBefore'](_0x1c530d)),on(_0xa2499f,_0x1c530d,_0x9652a2)||(_0x546934['push'](_0xa2499f['createRange'](_0x36527e,_0x113172['isObject'](_0x1c530d)?_0xa2499f['createPositionAfter'](_0x1c530d):_0xa2499f['createPositionAt'](_0x1c530d,'end'))),_0x36527e=null),_0x379fc1++;}return _0x546934;}function on(_0x6f7776,_0x4b14ef,_0x24a21b){if(!_0x24a21b)return!0x1;const _0x386b68=_0x6f7776['createPositionAfter'](_0x4b14ef),_0x43b7d3=_0x6f7776['createPositionBefore'](_0x24a21b);return _0x386b68['isTouching'](_0x43b7d3);}function rs(_0x12f38b,_0xf7ea71,_0x5e1fc0){for(;_0x5e1fc0['length'];){const _0x451e4a=_0x5e1fc0['splice'](0x0,0x64);_0x12f38b['change'](()=>{for(const _0x340d2c of _0x451e4a)_0x340d2c['isInContent']&&_0xf7ea71['execute'](_0x340d2c['id']);});}}class x extends _0x11a32a{['_command'];['_suggestions'];constructor(_0x542003,_0x8eb06,_0x3c8bb8){super(_0x542003),this['_command']=_0x8eb06,this['_suggestions']=_0x3c8bb8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x27011f=Array['from'](this['_suggestions']['values']())['some'](_0x322b5b=>_0x322b5b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x27011f;}['execute'](){const _0x18bc3a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x388a22 of _0x18bc3a){const _0x3c5b58=_0x388a22['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3c5b58))return;}rs(this['editor']['model'],this['_command'],_0x18bc3a);}}class E extends _0x11a32a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a2d9f,_0x429ff0,_0x3882e3){super(_0x4a2d9f),this['_command']=_0x429ff0,this['_suggestions']=_0x3882e3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1b205f=this['editor']['model']['document']['selection'],_0x48f6d5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x7186ea,_0x1d5229){const _0x59cbe2=Array['from'](_0x7186ea['getRanges']()),_0xcf09f0=new Set();for(const _0xd1b453 of _0x1d5229)if(_0xd1b453['isInContent']){for(const _0x1ef573 of _0x59cbe2)for(const _0x1ea97c of _0xd1b453['getRanges']())(_0x1ef573['isIntersecting'](_0x1ea97c)||_0x7186ea['isCollapsed']&&!_0xd1b453['isMultiRange']&&_0xd1b453['next']&&_0x1ea97c['end']['isTouching'](_0x1ef573['start']))&&_0xcf09f0['add'](_0xd1b453);}return _0xcf09f0;}(_0x1b205f,_0x48f6d5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x46aab7=ts(Array['from'](this['_selectedSuggestions']));for(const _0xd3d574 of _0x46aab7){const _0x180b00=_0xd3d574['getRanges']();if(!this['editor']['model']['canEditAt'](_0x180b00))return;}rs(this['editor']['model'],this['_command'],_0x46aab7);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x5f4cc5(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x52131a,_0x36f97c){super(),this['id']=_0x36f97c['id'],this['type']=_0x36f97c['type'],this['subType']=_0x36f97c['subType']||null,this['author']=_0x36f97c['author'],this['creator']=_0x36f97c['creator']||_0x36f97c['author'],this['isExternal']=Boolean(_0x36f97c['attributes']&&_0x36f97c['attributes']['@external']),this['data']=null,this['_model']=_0x52131a,this['_onAccept']=_0x36f97c['onAccept'],this['_onDiscard']=_0x36f97c['onDiscard'],this['_onAttributesChange']=_0x36f97c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x36f97c['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x19a12c=this;for(;_0x19a12c['previous'];)_0x19a12c=_0x19a12c['previous'];return _0x19a12c;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1f5b84){this['_markerNames']['add'](_0x1f5b84);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x17ed4c=>this['_model']['markers']['get'](_0x17ed4c))['filter'](_0x30b859=>_0x30b859);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x8aaedd=>{for(const _0x13e365 of this['getMarkers']())_0x8aaedd['removeMarker'](_0x13e365);}),this['_markerNames']['clear']();}['removeMarker'](_0x2c43a5){this['_model']['change'](_0x79b238=>{_0x79b238['removeMarker'](_0x2c43a5);}),this['_markerNames']['delete'](_0x2c43a5);}['addRange'](_0x497387){const _0x2d9926='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2d9926),this['_model']['change'](_0x5b7071=>{_0x5b7071['addMarker'](_0x2d9926,{'range':_0x497387,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xdf547){for(const _0x5db8ef of this['getRanges']())if(_0x5db8ef['isIntersecting'](_0xdf547))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1216ec=>_0x1216ec['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4ef42a,_0x596603)=>[..._0x4ef42a,..._0x596603['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x8d9236=this['getRanges']();if(0x1!=_0x8d9236['length'])return null;const _0x2f617c=_0x8d9236[0x0],_0x142cca=_0x2f617c['start']['nodeAfter'],_0x217d92=_0x2f617c['end']['nodeBefore'];return _0x142cca instanceof _0x61405c?_0x142cca!=_0x217d92?null:_0x142cca:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x46d05d=[];let _0x32ab54=this['head'];for(;_0x32ab54;)_0x46d05d['push'](_0x32ab54),_0x32ab54=_0x32ab54['next'];return _0x46d05d;}['setAttribute'](_0x5ca8d2,_0xe2a225){const _0x26f7f8=_0x1848c9(this['attributes']);_0x550952(_0x26f7f8,_0x5ca8d2,_0xe2a225),_0x5e7928(_0x26f7f8,this['attributes'])||(this['attributes']=_0x26f7f8,this['_onAttributesChange'](_0x26f7f8));}['removeAttribute'](_0x283f04){const _0x2d41f5=_0x1848c9(this['attributes']);_0x1e47e2(_0x2d41f5,_0x283f04),_0x5e7928(_0x2d41f5,this['attributes'])||(this['attributes']=_0x2d41f5,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x164670()['substr'](0x1,0x5);}}function c(_0x5341ca,_0x5e62f1,_0x29eb9b){const _0x4ffa37=_0x5341ca['t'],t=_0x5341ca['t'];switch(_0x5e62f1){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x29eb9b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x29eb9b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x29eb9b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x29eb9b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x29eb9b);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x29eb9b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x29eb9b);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x29eb9b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x29eb9b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x29eb9b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x29eb9b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x29eb9b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x29eb9b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x29eb9b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x29eb9b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x29eb9b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x29eb9b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x29eb9b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x29eb9b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x29eb9b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x29eb9b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x29eb9b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x29eb9b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x29eb9b);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x29eb9b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x29eb9b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x29eb9b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x29eb9b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x29eb9b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x29eb9b);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x29eb9b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x29eb9b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x29eb9b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x29eb9b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x29eb9b);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x29eb9b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x29eb9b);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x29eb9b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x29eb9b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x29eb9b);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x29eb9b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x29eb9b);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x29eb9b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x29eb9b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x29eb9b);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x29eb9b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x29eb9b);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x4ffa37({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x29eb9b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ffa37({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x29eb9b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x29eb9b);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x29eb9b);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x29eb9b);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x29eb9b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5e62f1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x538284,_0x1f55f8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x538284,this['_locale']=_0x1f55f8;}['getDescriptions'](_0x4d5ffe){const _0x2f8d14=[],_0x589ada=new Set(),_0x46a4bb=new Set();for(let _0x2167ae=0x0;_0x2167ae<_0x4d5ffe['length'];_0x2167ae++){const _0x17dc32=_0x4d5ffe[_0x2167ae];if(!_0x17dc32['isInContent'])continue;const _0x24b1c0=this['_handleCustomCallbackDescription'](_0x17dc32);if(_0x24b1c0){if(null!=_0x17dc32['subType']){if(_0x589ada['has'](_0x17dc32['subType']))continue;_0x589ada['add'](_0x17dc32['subType']);}_0x2f8d14['push'](_0x24b1c0);}else{if('attribute'!=_0x17dc32['type'])'insertion'!=_0x17dc32['type']&&'deletion'!=_0x17dc32['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2f8d14,_0x17dc32,_0x4d5ffe[_0x2167ae+0x1]);else{const _0x5050ae=_0x17dc32['data']['key'];if(_0x46a4bb['has'](_0x5050ae))continue;_0x46a4bb['add'](_0x17dc32['data']['key']),_0x5050ae==u?this['_handleRenameSuggestionDescription'](_0x2f8d14,_0x17dc32):this['_handleAttributeSuggestionDescription'](_0x2f8d14,_0x17dc32);}}}return this['_resolveDescriptionItems'](_0x2f8d14);}['registerDescriptionCallback'](_0x5493a8){this['_customCallbacks']['push'](_0x5493a8);}['registerElementLabel'](_0x1152a8,_0x27e6fe,_0x4aacdb=_0x4d7128['normal']){'function'==typeof _0x1152a8?_0x3868ec(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1152a8,'label':_0x27e6fe,'priority':_0x4aacdb}):this['_itemLabels']['set'](_0x1152a8,_0x27e6fe);}['registerAttributeLabel'](_0x128af9,_0x3e6662){this['_attributeLabels']['set'](_0x128af9,_0x3e6662);}['getItemLabel'](_0x34a262,_0x5e1f39=0x1){let _0x214969;for(const _0x1907c9 of this['_itemLabelsCallbacks'])if(_0x1907c9['matchingCallback'](_0x34a262)){_0x214969=_0x1907c9['label'];break;}return _0x214969||(_0x214969=this['_itemLabels']['get'](_0x34a262['name'])),_0x214969?_0x214969(_0x5e1f39):0x1!==_0x5e1f39?_0x5e1f39+'\x20'+_0x34a262['name']+'s':''+_0x34a262['name'];}['_addDescriptionItems'](_0x2a7d54,_0x7b4eec){const _0x39b582=_0x7b4eec['getFirstRange']()['getWalker'](),_0x13641a='insertion'==_0x7b4eec['type']?'add':'remove';for(const _0x5c919e of _0x39b582){const _0x29c5d3=_0x5c919e['item'],_0x450829=_0x2a7d54[_0x2a7d54['length']-0x1];if(_0x29c5d3['is']('$textProxy'))_0x450829&&_0x450829['type']['indexOf']('Container')>-0x1&&_0x2a7d54['pop'](),_0x450829&&'text'==_0x450829['type']?_0x450829[_0x13641a]+=_0x29c5d3['data']:_0x2a7d54['push']({'type':'text','add':'add'==_0x13641a?_0x29c5d3['data']:'','remove':'remove'==_0x13641a?_0x29c5d3['data']:''});else{if(this['_schema']['isObject'](_0x29c5d3)){const _0x1f326f=_0x29c5d3;if(_0x450829&&_0x450829['type']['indexOf']('Container')>-0x1&&_0x2a7d54['pop'](),'elementEnd'==_0x5c919e['type'])continue;_0x450829&&_0x450829['type']==_0x13641a+'Object'&&_0x450829['element']['name']==_0x1f326f['name']?_0x450829['quantity']++:_0x2a7d54['push']({'type':_0x13641a+'Object','element':_0x1f326f,'quantity':0x1}),_0x39b582['skip'](_0x298ea3=>!('elementEnd'==_0x298ea3['type']&&_0x298ea3['item']==_0x29c5d3));}else{if(this['_schema']['checkChild'](_0x29c5d3,'$text')||_0x29c5d3['is']('element','softBreak')){const _0x483fd9=_0x29c5d3;if('add'==_0x13641a&&'elementStart'==_0x5c919e['type']||'remove'==_0x13641a&&'elementEnd'==_0x5c919e['type'])continue;if(_0x450829&&-0x1==_0x450829['type']['indexOf']('Container')){'text'==_0x450829['type']&&(_0x450829[_0x13641a]+='\x0a');continue;}let _0x3b111e;if(_0x3b111e='add'==_0x13641a?_0x483fd9['nextSibling']&&!this['_schema']['isObject'](_0x483fd9['nextSibling'])?_0x483fd9['nextSibling']:null:_0x483fd9['previousSibling']&&!this['_schema']['isObject'](_0x483fd9['previousSibling'])?_0x483fd9['previousSibling']:null,_0x483fd9['isEmpty']||_0x3b111e&&_0x3b111e['isEmpty']){const _0x263341=_0x3b111e&&_0x3b111e['isEmpty']?_0x3b111e:_0x483fd9;_0x450829&&_0x450829['type']==_0x13641a+'EmptyContainer'&&_0x450829['element']['name']==_0x263341['name']?_0x450829['quantity']++:_0x2a7d54['push']({'type':_0x13641a+'EmptyContainer','element':_0x263341,'quantity':0x1});}else _0x2a7d54['push']({'type':_0x13641a+'Container','element':_0x483fd9});}}}}}['_resolveDescriptionItems'](_0x204dfa){const _0x42fa19=this['_locale'],_0x3598b9=[],_0x92a47c=[],_0x1b049e=[];for(const _0x11c30e of _0x204dfa)switch(_0x11c30e['type']){case'text':if(_0x11c30e['add']=_0x11c30e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x11c30e['remove']=_0x11c30e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x11c30e['add']&&''!=_0x11c30e['remove']){_0x3598b9['push']({'type':'replace','content':c(_0x42fa19,'REPLACE_TEXT',['\x22'+_0x11c30e['remove']+'\x22','\x22'+_0x11c30e['add']+'\x22'])});continue;}if(null!=_0x11c30e['add']['match'](/^ +$/)){_0x3598b9['push']({'type':'insertion','content':c(_0x42fa19,'*Insert:*\x20%0',c(_0x42fa19,'ELEMENT_SPACE',_0x11c30e['add']['length']))});continue;}if(null!=_0x11c30e['remove']['match'](/^ +$/)){_0x3598b9['push']({'type':'deletion','content':c(_0x42fa19,'*Remove:*\x20%0',c(_0x42fa19,'ELEMENT_SPACE',_0x11c30e['remove']['length']))});continue;}if(''!=_0x11c30e['add']){_0x3598b9['push']({'type':'insertion','content':c(_0x42fa19,'*Insert:*\x20%0','\x22'+_0x11c30e['add']+'\x22')});continue;}_0x3598b9['push']({'type':'deletion','content':c(_0x42fa19,'*Remove:*\x20%0','\x22'+_0x11c30e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3598b9['push']({'type':'insertion','content':c(_0x42fa19,'*Insert:*\x20%0',this['getItemLabel'](_0x11c30e['element'],_0x11c30e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3598b9['push']({'type':'deletion','content':c(_0x42fa19,'*Remove:*\x20%0',this['getItemLabel'](_0x11c30e['element'],_0x11c30e['quantity']))});continue;case'addContainer':_0x3598b9['push']({'type':'insertion','content':c(_0x42fa19,'*Split:*\x20%0',this['getItemLabel'](_0x11c30e['element'],_0x11c30e['quantity']))});continue;case'removeContainer':_0x3598b9['push']({'type':'deletion','content':c(_0x42fa19,'*Merge:*\x20%0',this['getItemLabel'](_0x11c30e['element'],_0x11c30e['quantity']))});continue;case'addFormat':_0x92a47c['push'](_0x11c30e['key']);continue;case'removeFormat':_0x1b049e['push'](_0x11c30e['key']);continue;default:_0x3598b9['push'](_0x11c30e);}if(_0x92a47c['length']){const _0x57fdb4=_0x92a47c['map'](_0x37e434=>this['_attributeLabels']['has'](_0x37e434)?this['_attributeLabels']['get'](_0x37e434):_0x37e434)['join'](',\x20');_0x3598b9['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x57fdb4)});}if(_0x1b049e['length']){const _0x2318a5=_0x1b049e['map'](_0x1dab3d=>this['_attributeLabels']['has'](_0x1dab3d)?this['_attributeLabels']['get'](_0x1dab3d):_0x1dab3d)['join'](',\x20');_0x3598b9['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2318a5)});}return _0x3598b9;}['_handleCustomCallbackDescription'](_0x140b2c){for(const _0x33d345 of this['_customCallbacks']){const _0x4f667b=_0x33d345(_0x140b2c);if(_0x4f667b&&'type'in _0x4f667b)return _0x4f667b;}}['_handleAttributeSuggestionDescription'](_0x14c00d,_0x3c4d6f){const _0x11af13=_0x3c4d6f['data'],_0x586ed6=void 0x0===_0x11af13['newValue']?'removeFormat':'addFormat';_0x14c00d['push']({'type':_0x586ed6,'key':_0x11af13['key']});}['_handleRenameSuggestionDescription'](_0x18b64b,_0x1506cd){_0x18b64b['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1506cd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1abe98,_0x5856f7,_0x573159){if(this['_addDescriptionItems'](_0x1abe98,_0x5856f7),_0x573159&&_0x573159['getFirstRange']()&&!_0x5856f7['getFirstRange']()['end']['isEqual'](_0x573159['getFirstRange']()['start'])){const _0x47a4fb=_0x1abe98[_0x1abe98['length']-0x1],_0x30008c='insertion'==_0x5856f7['type']?'add':'remove';_0x47a4fb&&'text'==_0x47a4fb['type']&&(_0x47a4fb[_0x30008c]+='\x0a');}}}class U extends _0x2fff63{['afterInit'](){const _0x401f61=this['editor'],_0x4859ee=_0x401f61['plugins']['get']('TrackChangesEditing');_0x401f61['commands']['get']('showAIAssistant')&&_0x4859ee['enableCommand']('showAIAssistant');}}class V extends _0x2fff63{['afterInit'](){const _0x166875=this['editor'],_0x552b7c=_0x166875['locale'];if(!_0x166875['plugins']['has']('AlignmentEditing'))return;const _0x405648=_0x166875['plugins']['get']('TrackChangesEditing');_0x405648['enableDefaultAttributesIntegration']('alignment'),_0x405648['registerBlockAttribute']('alignment'),_0x405648['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x552b7c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a8886=this['editor'],_0x56d796=_0x2a8886['locale'];_0x2a8886['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x167429=>{if('formatBlock'!=_0x167429['type'])return;const {data:_0x5a9d79}=_0x167429;if(_0x5a9d79&&'alignment'==_0x5a9d79['commandName']){const _0x1953fb=_0x5a9d79['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x56d796,'*Format:*\x20%0',function(_0x342739){switch(_0x342739){case'left':return c(_0x56d796,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x56d796,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x56d796,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x56d796,'FORMAT_JUSTIFY_TEXT');}}(_0x1953fb))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x2fff63{['afterInit'](){const _0xb4b9b4=this['editor'],_0x4ee2c3=_0xb4b9b4['plugins']['get']('TrackChangesEditing'),_0x182216=_0xb4b9b4['locale'];for(const _0x3c277f of Yt){if(!_0xb4b9b4['plugins']['has'](_0x3c277f))continue;const _0x39fd01=_0x3c277f['slice'](0x0,-0x7)['toLowerCase'](),_0x128cb4='FORMAT_'+_0x39fd01['toUpperCase']();_0x4ee2c3['enableDefaultAttributesIntegration'](_0x39fd01),_0x4ee2c3['registerInlineAttribute'](_0x39fd01),_0x4ee2c3['descriptionFactory']['registerAttributeLabel'](_0x39fd01,c(_0x182216,_0x128cb4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43f6f5=this['editor'],_0xf2d320=_0x43f6f5['locale'],_0x5b9b14=_0x43f6f5['plugins']['get']('TrackChangesEditing');function _0x514dd3(_0x5a864f,_0x2ee41d){_0x5b9b14['descriptionFactory']['registerDescriptionCallback'](_0x397997=>{if('formatInline'!=_0x397997['type'])return;const {data:_0x5d7e0b}=_0x397997;return _0x5d7e0b&&_0x5d7e0b['commandName']===_0x5a864f?_0x5d7e0b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xf2d320,'*Format:*\x20%0',_0x2ee41d)}:{'type':'format','content':c(_0xf2d320,'*Remove\x20format:*\x20%0',_0x2ee41d)}:void 0x0;});}_0x514dd3('bold',c(_0xf2d320,'FORMAT_BOLD')),_0x514dd3('italic',c(_0xf2d320,'FORMAT_ITALIC')),_0x514dd3('underline',c(_0xf2d320,'FORMAT_UNDERLINE')),_0x514dd3('code',c(_0xf2d320,'FORMAT_CODE')),_0x514dd3('strikethrough',c(_0xf2d320,'FORMAT_STRIKETHROUGH')),_0x514dd3('subscript',c(_0xf2d320,'FORMAT_SUBSCRIPT')),_0x514dd3('superscript',c(_0xf2d320,'FORMAT_SUPERSCRIPT'));}}class G extends _0x2fff63{['afterInit'](){const _0x158081=this['editor'],_0x414b1e=_0x158081['locale'];if(!_0x158081['plugins']['has']('BlockQuoteEditing'))return;const _0x5e6034=_0x158081['plugins']['get']('TrackChangesEditing'),_0x47dbe5=this['editor']['commands']['get']('blockQuote');_0x5e6034['enableCommand']('blockQuote',(_0x4a7cd9,_0x1f1b97={})=>{const _0x18f4bb=this['editor']['model']['document']['selection'],_0x2ffb4e=_0x1f1b97&&void 0x0!==_0x1f1b97['forceValue']?_0x1f1b97['forceValue']:!_0x47dbe5['value'];let _0x27b3a7=[];if(_0x2ffb4e){const _0x1a3ffb=Array['from'](_0x18f4bb['getSelectedBlocks']())['filter'](_0x37dc1b=>to(_0x37dc1b)||function(_0x55052f,_0x3c5476){const _0x319b09=_0x3c5476['checkChild'](_0x55052f['parent'],'blockQuote'),_0x23e9c0=_0x3c5476['checkChild'](['$root','blockQuote'],_0x55052f);return _0x319b09&&_0x23e9c0;}(_0x37dc1b,this['editor']['model']['schema']));_0x27b3a7=Zt(_0x1a3ffb,_0x158081['model']);}else{const _0xfa8625=Array['from'](_0x18f4bb['getSelectedBlocks']())['filter'](_0x26bbb1=>to(_0x26bbb1));_0x27b3a7=Zt(_0xfa8625,_0x158081['model']);}_0x158081['model']['change'](()=>{for(const _0x19b6c8 of _0x27b3a7)_0x5e6034['markBlockFormat'](_0x19b6c8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2ffb4e}]});});}),_0x5e6034['descriptionFactory']['registerDescriptionCallback'](_0x2234f7=>{const {data:_0x9cb223}=_0x2234f7;if(_0x9cb223&&'blockQuote'==_0x9cb223['commandName']){const _0x19d3b4=c(_0x414b1e,'ELEMENT_BLOCK_QUOTE');return _0x9cb223['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x414b1e,'*Set\x20format:*\x20%0',_0x19d3b4)}:{'type':'format','content':c(_0x414b1e,'*Remove\x20format:*\x20%0',_0x19d3b4)};}});}}function to(_0xd24bf3){return'blockQuote'==_0xd24bf3['parent']['name'];}class L extends _0x2fff63{['afterInit'](){const _0x464acf=this['editor'],_0x2f34d3=_0x464acf['locale'],_0x20a598=_0x464acf['plugins']['get']('TrackChangesEditing');_0x464acf['plugins']['has']('BookmarkEditing')&&(_0x20a598['enableCommand']('insertBookmark'),_0x20a598['enableDefaultAttributesIntegration']('updateBookmark'),_0x20a598['registerBlockAttribute']('bookmarkId'),_0x20a598['descriptionFactory']['registerDescriptionCallback'](_0x19b902=>{if('insertion'!=_0x19b902['type']&&'deletion'!=_0x19b902['type']&&'attribute'!=_0x19b902['type'])return;const _0x164216=_0x19b902['getContainedElement']();if(null==_0x164216)return;if(!_0x164216['is']('element','bookmark'))return;const _0x566fb3=_0x164216['getAttribute']('bookmarkId');if('insertion'==_0x19b902['type'])return{'type':'insertion','content':c(_0x2f34d3,'*Insert:*\x20%0','\x22'+_0x566fb3+'\x22\x20'+c(_0x2f34d3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x19b902['type'])return{'type':'deletion','content':c(_0x2f34d3,'*Remove:*\x20%0','\x22'+_0x566fb3+'\x22\x20'+c(_0x2f34d3,'ELEMENT_BOOKMARK'))};const {data:_0x83c397}=_0x19b902;if(!_0x83c397||'bookmarkId'!=_0x83c397['key'])return;return{'type':'format','content':c(_0x2f34d3,'*Set\x20bookmark:*\x20%0','\x22'+_0x83c397['newValue']+'\x22')};}));}}class J extends _0x2fff63{['afterInit'](){const _0x51cc1b=this['editor'];_0x51cc1b['plugins']['has']('CaseChange')&&(_0x51cc1b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x51cc1b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x51cc1b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2fff63{['afterInit'](){const _0x327f0e=this['editor'];_0x327f0e['commands']['get']('ckbox')&&_0x327f0e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x2fff63{['afterInit'](){const _0x2ea6b9=this['editor'];if(!_0x2ea6b9['plugins']['has']('CodeBlock'))return;const _0x12076c=_0x2ea6b9['plugins']['get']('TrackChangesEditing'),_0x597089=_0x2ea6b9['locale'],_0x24be96=_0x2ea6b9['config']['get']('codeBlock')['languages'],_0x4c2e74=_0x2ea6b9['commands']['get']('codeBlock');_0x12076c['enableCommand']('indentCodeBlock'),_0x12076c['enableCommand']('outdentCodeBlock'),_0x12076c['enableCommand']('codeBlock',(_0x230b47,_0x3864b0={})=>{const _0x526058=_0x2ea6b9['model'],_0x5c1bac=_0x2ea6b9['model']['document']['selection'],_0x2b4982=_0x3864b0&&void 0x0!==_0x3864b0['forceValue']?_0x3864b0['forceValue']:!_0x4c2e74['value'];let _0x5d9e6e;_0x3864b0['language']||(_0x3864b0['language']=_0x24be96[0x0]['language']),_0x5d9e6e=_0x2b4982?Array['from'](_0x5c1bac['getSelectedBlocks']())['filter'](_0xb95b03=>oo(_0xb95b03)||function(_0x530066,_0x268018){if(_0x530066['is']('rootElement')||_0x268018['isLimit'](_0x530066))return!0x1;return _0x268018['checkChild'](_0x530066['parent'],'codeBlock');}(_0xb95b03,_0x526058['schema'])):Array['from'](_0x5c1bac['getSelectedBlocks']())['filter'](_0xe462=>oo(_0xe462));const _0x1f94c6=Zt(_0x5d9e6e,_0x526058);_0x526058['change'](()=>{for(const _0x3be057 of _0x1f94c6)_0x12076c['markBlockFormat'](_0x3be057,{'commandName':'codeBlock','commandParams':[{..._0x3864b0,'forceValue':_0x2b4982}],'formatGroupId':'blockName'});});}),(_0x12076c['descriptionFactory']['registerElementLabel']('codeBlock',_0x2b99ab=>c(_0x597089,'ELEMENT_CODE_BLOCK',_0x2b99ab)),_0x12076c['descriptionFactory']['registerDescriptionCallback'](_0x2e6ee8=>{if('formatBlock'!=_0x2e6ee8['type'])return;const _0x174f4f=_0x597089['t'],{data:_0x46ecba}=_0x2e6ee8;if(!_0x46ecba||'codeBlock'!=_0x46ecba['commandName'])return;const _0x3983e3=_0x46ecba['commandParams'][0x0]['language'],_0x254378=_0x174f4f(_0x24be96['find'](_0x523846=>_0x523846['language']===_0x3983e3)['label'])['toLowerCase']();return _0x46ecba['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x597089,'*Set\x20format:*\x20%0',c(_0x597089,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x254378+')')}:{'type':'format','content':c(_0x597089,'*Remove\x20format:*\x20%0',c(_0x597089,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x4bcf51){return'codeBlock'==_0x4bcf51['name'];}class q extends _0x2fff63{['afterInit'](){const _0x3daa9f=this['editor'];if(!_0x3daa9f['plugins']['has']('CommentsEditing'))return;_0x3daa9f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x16dd5c,_0x4c4d02,_0x1447c7){const _0x155508=[];for(const _0x5cff21 of _0x4c4d02['getItems']())_0x5cff21['hasAttribute'](_0x16dd5c)&&_0x155508['push'](_0x1447c7['createRangeOn'](_0x5cff21));return _0x155508;}function De(_0x2ccbe8,_0x18390f,{showActiveMarker:_0x8bd592=!0x0}={}){const _0x5b3585=_0x2ccbe8['plugins']['get']('TrackChangesEditing');return(_0x288260,_0x3cb9c0,_0x45c6b6)=>{if(!_0x45c6b6['consumable']['test'](_0x3cb9c0['markerRange'],_0x288260['name']))return;const _0x5c7b38=_0x3cb9c0['markerRange']['getWalker'](),_0x2a84f7=_0x3cb9c0['markerRange']['start'],_0x576dd0=_0x2ccbe8['model']['schema'];let _0x60e830=null,_0x495180=null,_0x858e8d=!0x1,_0x147271=!0x1;for(const _0x4e164b of _0x5c7b38){const _0x4108a3=_0x4e164b['item'];_0x858e8d=_0x858e8d||_0x576dd0['isContent'](_0x4108a3);const _0x97cde2=_0x45c6b6['mapper']['toViewElement'](_0x4108a3);if(_0x97cde2&&_0x97cde2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e164b['type']&&(_0x576dd0['isBlock'](_0x4108a3)&&!_0x576dd0['isLimit'](_0x4108a3)&&(_0x4108a3['nextSibling']||_0x2a84f7['isAtEnd']?_0x60e830&&_0x60e830['parent']==_0x4108a3||(_0x60e830=_0x4108a3,_0x40d535(_0x4e164b['previousPosition']),_0x147271=!0x0):_0x495180=_0x495180||_0x4e164b['previousPosition']));}function _0x40d535(_0x2c841d){const {authorId:_0x242d89}=_0x5b3585['_splitMarkerName'](_0x3cb9c0['markerName']),_0x561251=_0x45c6b6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18390f,'data-author-id':_0x242d89}),_0x5446fc=_0x45c6b6['mapper']['toViewPosition'](_0x2c841d);_0x8bd592&&_0x5b3585['activeMarkers']['includes'](_0x3cb9c0['markerName'])&&_0x45c6b6['writer']['addClass']('ck-suggestion-marker--active',_0x561251),_0x45c6b6['writer']['insert'](_0x5446fc,_0x561251),_0x45c6b6['mapper']['bindElementToMarker'](_0x561251,_0x3cb9c0['markerName']);}_0x858e8d||_0x147271||!_0x495180||_0x40d535(_0x495180);};}class z extends _0x2fff63{static get['requires'](){return[_0x577b3c];}['init'](){const _0x1b8056=this['editor'],_0x20b59d=_0x1b8056['plugins']['get']('TrackChangesEditing');_0x20b59d['enableCommand']('delete');const _0x2ba706=_0x1b8056['commands']['get']('deleteForward');_0x20b59d['enableCommand']('deleteForward',(_0x40e580,_0x2c5f02={})=>{const _0x4a5fa3=_0x1b8056['model']['createSelection'](_0x1b8056['model']['document']['selection']);_0x4a5fa3['isCollapsed']&&_0x1b8056['model']['modifySelection'](_0x4a5fa3,{'direction':'forward','unit':_0x2c5f02['unit']});const _0x2cce29=_0x4a5fa3['getFirstRange'](),_0x3da246=_0x542068['fromRange'](_0x2cce29);let _0x2f32cf;_0x40e580(_0x2c5f02),_0x2f32cf='$graveyard'==_0x3da246['root']['rootName']?_0x1b8056['model']['createRange'](_0x2cce29['start']):_0x1b8056['model']['createRange'](_0x3da246['start'],_0x3da246['end']),_0x3da246['detach'](),_0x1b8056['model']['enqueueChange'](_0x2ba706['buffer']['batch'],_0x578142=>{_0x2ba706['buffer']['lock'](),_0x578142['setSelection'](_0x578142['createRange'](_0x2f32cf['end'])),_0x2ba706['buffer']['unlock']();});}),_0x1b8056['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1b8056,'merge'),{'priority':'high'}),_0x1b8056['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5e4d6e,_0x26f4b9,_0x515e00)=>{_0x515e00['options']['showSuggestionHighlights']&&De(_0x1b8056,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5e4d6e,_0x26f4b9,_0x515e00);},{'priority':'high'}),_0x1b8056['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2bf0d7,_0x368157,_0xd3ca74)=>{const _0x1a89bb=_0xd3ca74['mapper']['markerNameToElements'](_0x368157['markerName']);if(_0x1a89bb){for(const _0x5e1748 of _0x1a89bb)_0x5e1748['is']('uiElement')&&(_0xd3ca74['mapper']['unbindElementFromMarkerName'](_0x5e1748,_0x368157['markerName']),_0xd3ca74['writer']['remove'](_0x5e1748));}},{'priority':'high'});}}class W extends _0x2fff63{['afterInit'](){const _0x25628f=this['editor'];if(!_0x25628f['plugins']['has']('ListEditing'))return;const _0x1e3847=_0x25628f['locale'],_0x11c165=_0x25628f['plugins']['get']('TrackChangesEditing'),_0x14cdf8=_0x25628f['plugins']['has']('TodoListEditing'),_0x1ce858=!!_0x25628f['config']['get']('list.multiBlock');function _0x2fb3d0(_0xb02a4a){return{'type':'format','content':''+c(_0x1e3847,'*Set\x20format:*\x20%0',_0xb02a4a)};}function _0x3b808f(_0x41d7d7){return{'type':'format','content':''+c(_0x1e3847,'*Remove\x20format:*\x20%0',_0x41d7d7)};}_0x11c165['enableDefaultAttributesIntegration']('numberedList'),_0x11c165['enableDefaultAttributesIntegration']('bulletedList'),_0x11c165['enableDefaultAttributesIntegration']('customNumberedList'),_0x11c165['enableDefaultAttributesIntegration']('customBulletedList'),_0x11c165['enableDefaultAttributesIntegration']('indentList'),_0x11c165['enableDefaultAttributesIntegration']('outdentList'),_0x11c165['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x11c165['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x11c165['registerBlockAttribute']('listItemId'),_0x11c165['registerBlockAttribute']('listType'),_0x11c165['registerBlockAttribute']('listIndent'),_0x1ce858&&(_0x11c165['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x11c165['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x14cdf8&&(_0x11c165['enableDefaultAttributesIntegration']('todoList'),_0x11c165['enableDefaultAttributesIntegration']('checkTodoList'),_0x11c165['registerBlockAttribute']('todoListChecked'),_0x11c165['descriptionFactory']['registerDescriptionCallback'](_0x34bb3d=>{const {data:_0x351926}=_0x34bb3d;if(_0x351926&&'todoListChecked'==_0x351926['key'])return{'type':'format','content':_0x351926['newValue']?c(_0x1e3847,'*Check\x20item*'):c(_0x1e3847,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x487028=>{if(_0x487028['batch']['isUndo'])return!0x1;let _0x2ba91a=!0x1;const _0x1e27c6=_0x11c165['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c1455=>'todoListChecked'===_0x11c165['_getAttributeKey'](_0x5c1455));for(const _0x3f8908 of _0x1e27c6){'todo'!=_0x3f8908['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x11c165['_findSuggestions'](_0x3f8908['getFirstRange'](),'attribute')['find'](_0x48f3c4=>'listType'===_0x11c165['_getAttributeKey'](_0x48f3c4['suggestion']))||(_0x487028['removeMarker'](_0x3f8908['getFirstMarker']()),_0x2ba91a=!0x0));}return _0x2ba91a;})),_0x11c165['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x1e3847,'FORMAT_INDENT'));const _0x451689={'type':'format','content':''};_0x11c165['descriptionFactory']['registerDescriptionCallback'](_0x2d2d6a=>{const {data:_0x2e6b46}=_0x2d2d6a;if(!_0x2e6b46||'listType'!=_0x2e6b46['key'])return;let _0x4dc126=_0x2d2d6a['head'];for(;_0x4dc126;){if(_0x4dc126['data']&&(('listStyle'==_0x4dc126['data']['key']||'listMarkerStyle'==_0x4dc126['data']['key'])&&(_0x4dc126['data']['newValue']&&'default'!=_0x4dc126['data']['newValue']||'default'!=_0x4dc126['data']['oldValue']&&!_0x2e6b46['newValue'])||!_0x1ce858&&_0x4dc126['data']['key']==u))return _0x451689;_0x4dc126=_0x4dc126['next'];}if(null==_0x2e6b46['newValue'])switch(_0x2e6b46['oldValue']){case'bulleted':return _0x3b808f(c(_0x1e3847,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3b808f(c(_0x1e3847,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3b808f(c(_0x1e3847,'ELEMENT_TODO_LIST'));}switch(_0x2e6b46['newValue']){case'bulleted':return _0x2fb3d0(c(_0x1e3847,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2fb3d0(c(_0x1e3847,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2fb3d0(c(_0x1e3847,'ELEMENT_TODO_LIST'));}}),_0x11c165['descriptionFactory']['registerDescriptionCallback'](_0x8b115b=>{const {data:_0x39a1e1}=_0x8b115b;if(_0x39a1e1&&'listIndent'==_0x39a1e1['key'])return null==_0x39a1e1['newValue']||null==_0x39a1e1['oldValue']&&0x0==_0x39a1e1['newValue']?_0x451689:void 0x0;}),_0x11c165['descriptionFactory']['registerDescriptionCallback'](_0x22c1e8=>{if('attribute'!=_0x22c1e8['type'])return;const {data:_0x217c9a}=_0x22c1e8;if(!_0x217c9a||'listItemId'!=_0x217c9a['key'])return;const _0x27130f=Te(_0x22c1e8);return'newValue'==_0x27130f?{'type':'format','content':c(_0x1e3847,'*Merge:*\x20list\x20item')}:'oldValue'==_0x27130f?{'type':'format','content':c(_0x1e3847,'*Split:*\x20list\x20item')}:_0x451689;}),_0x25628f['model']['document']['registerPostFixer'](_0x122df0=>this['listItemIdFixer'](_0x122df0)),_0x25628f['model']['document']['registerPostFixer'](_0x23257e=>this['noTrackChangesFixer'](_0x23257e)),_0x25628f['model']['document']['on']('change:data',(_0x157c13,_0x4dd9b5)=>{if(_0x4dd9b5['isUndo']||!_0x4dd9b5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x560638){if(_0x560638['batch']['isUndo']||!_0x560638['batch']['isLocal'])return!0x1;let _0xdb9ccb=!0x1;const _0x8b37ba=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2faeb5=>_0x2faeb5['data']&&'listItemId'==_0x2faeb5['data']['key'])['filter'](_0x4a704a=>_0x4a704a['data']['newValue']&&_0x4a704a['data']['oldValue']);for(const _0x12051f of _0x8b37ba)Te(_0x12051f)||(_0x560638['removeMarker'](_0x12051f['getFirstMarker']()),_0xdb9ccb=!0x0);return _0xdb9ccb;}['noTrackChangesFixer'](_0x1df27e){if(_0x1df27e['batch']['isUndo']||!_0x1df27e['batch']['isLocal'])return!0x1;const _0x5af417=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5af417['trackChangesCommand']['value'])return!0x1;let _0x205810=!0x1;const _0x3ba19b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1059da=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1b7936=>'attribute'==_0x1b7936['type'])['filter'](_0x57a90a=>_0x3ba19b['includes'](_0x57a90a['attributeKey']));if(0x0==_0x1059da['length'])return _0x205810;for(const _0x45b443 of _0x1059da){const _0x203cd3=_0x5af417['_findSuggestions'](_0x45b443['range'],'attribute')['filter'](_0x2e6be0=>!_0x2e6be0['meta']['isNextTo'])['map'](_0x58d3ef=>_0x58d3ef['suggestion'])['filter'](_0x3dea0e=>{const _0x53f404=_0x5af417['_getAttributeKey'](_0x3dea0e);return _0x3ba19b['includes'](_0x53f404);});if(_0x203cd3['length']){for(const _0x15147a of _0x203cd3)_0x1df27e['removeMarker'](_0x15147a['getFirstMarker']());_0x205810=!0x0;}}return _0x205810;}['assureChains'](){const _0x15bea0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35659c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3f5708;const _0x18337b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x9cc654=>{if(_0x9cc654['data']['oldRange']||!_0x9cc654['data']['newRange'])return null;if(!_0x9cc654['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x145ad2}=_0x15bea0['_splitMarkerName'](_0x9cc654['name']);if(!_0x15bea0['hasSuggestion'](_0x145ad2))return null;const _0x25ee28=_0x15bea0['getSuggestion'](_0x145ad2);return _0x35659c['includes'](_0x25ee28['data']['key']);})['map'](_0x57aeb9=>{const {id:_0x5ead9f}=_0x15bea0['_splitMarkerName'](_0x57aeb9['name']),_0x1cf44d=_0x15bea0['getSuggestion'](_0x5ead9f);return _0x3f5708=_0x1cf44d['attributes']['groupId'],_0x1cf44d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x18337b['size'])return;const _0x3312a2=_0x15bea0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c983a=>'attribute'==_0x5c983a['type']&&_0x5c983a['data']&&_0x35659c['includes'](_0x5c983a['data']['key'])&&_0x5c983a['attributes']['groupId']!=_0x3f5708)['map'](_0x3a17dc=>({'listItem':_0x3a17dc['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3a17dc['attributes']['groupId']})),_0x5b9ecb=new Set();for(const {groupId:_0x17b027,listItem:_0x18f46a}of _0x3312a2)_0x18337b['has'](_0x18f46a)&&_0x5b9ecb['add'](_0x17b027);for(const _0x4a0631 of _0x15bea0['getSuggestions']())_0x5b9ecb['has'](_0x4a0631['attributes']['groupId'])&&_0x4a0631['setAttribute']('groupId',_0x3f5708);}['_supportLegacySuggestions'](){const _0x440f5d=this['editor'],_0x2f9e1b=_0x440f5d['locale'],_0x17068c=_0x440f5d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x17068c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x453cc2,_0x5d464e){const _0x1af85d=[];for(let _0x497e92 of _0x453cc2)_0x497e92['start']['nodeAfter']===_0x497e92['end']['parent']&&(_0x497e92=_0x440f5d['model']['createRange'](_0x440f5d['model']['createPositionAt'](_0x497e92['start']['nodeAfter'],0x0))),_0x1af85d['push'](_0x497e92);_0x440f5d['model']['change'](_0x592382=>{const _0x3128cf=_0x440f5d['model']['document']['selection'],_0x32f178=Array['from'](_0x3128cf['getRanges']())['map'](_0x4289ea=>_0x542068['fromRange'](_0x4289ea));_0x592382['setSelection'](_0x1af85d),_0x440f5d['commands']['get'](_0x5d464e['commandName'])['refresh'](),_0x5d464e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x440f5d['execute'](_0x5d464e['commandName'],..._0x5d464e['commandParams']),_0x592382['setSelection'](_0x32f178);for(const _0xc0165c of _0x32f178)_0xc0165c['detach']();});}),_0x17068c['descriptionFactory']['registerElementLabel'](function(_0x43ec23){const _0x32059d=!_0x440f5d['model']['schema']['isObject'](_0x43ec23),_0x5ce296=_0x43ec23['previousSibling'],_0x477a26=_0x43ec23['nextSibling'],_0x2fd28a=_0x43ec23['getAttribute']('listItemId'),_0x282470=!_0x5ce296||_0x5ce296['getAttribute']('listItemId')!==_0x2fd28a,_0x4cdb7d=!_0x477a26||_0x477a26['getAttribute']('listItemId')!==_0x2fd28a;return _0x32059d&&Boolean(_0x2fd28a)&&_0x282470&&_0x4cdb7d;},_0x2885ba=>c(_0x2f9e1b,'ELEMENT_LIST_ITEM',_0x2885ba));}['_registerLegacyDescription'](){const _0x328336=this['editor'],_0x210fe2=_0x328336['locale'];function _0x315a57(_0x59919a){const _0x486a85=_0x328336['commands']['get']('bulletedList')['value'],_0xe565d7=_0x328336['commands']['get']('numberedList')['value'];return'numberedList'===_0x59919a?_0x486a85:_0xe565d7;}_0x328336['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x144cf0){if('formatBlock'!=_0x144cf0['type'])return;const {data:_0x5d4466}=_0x144cf0;if(!_0x5d4466)return;let _0x3c6ebb,_0x199dba,_0x25b9ce,_0x552df2;switch(_0x5d4466['commandName']){case'bulletedList':_0x25b9ce=_0x5d4466['commandParams'][0x0]['forceValue'],_0x552df2=_0x315a57(_0x5d4466['commandName']),_0x3c6ebb=_0x25b9ce?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x552df2&&_0x328336['config']['get']('list.multiBlock')||(_0x3c6ebb='*Change\x20to:*\x20%0'),_0x199dba={'type':'format','content':c(_0x210fe2,_0x3c6ebb,c(_0x210fe2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x25b9ce=_0x5d4466['commandParams'][0x0]['forceValue'],_0x552df2=_0x315a57(_0x5d4466['commandName']),_0x3c6ebb=_0x25b9ce?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x552df2&&_0x328336['config']['get']('list.multiBlock')||(_0x3c6ebb='*Change\x20to:*\x20%0'),_0x199dba={'type':'format','content':c(_0x210fe2,_0x3c6ebb,c(_0x210fe2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3c6ebb='*Indent:*\x20%0',_0x199dba={'type':'format','content':c(_0x210fe2,_0x3c6ebb,c(_0x210fe2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3c6ebb=function(_0x180137){const _0x1ef1fb=_0x180137['getFirstRange']();let _0x4f8dee=_0x1ef1fb['start']['nodeAfter'];for(;_0x4f8dee&&_0x1ef1fb['containsItem'](_0x4f8dee);){if(_0x4f8dee['getAttribute']('listIndent')>0x0)return!0x1;_0x4f8dee=_0x4f8dee['nextSibling'];}return!0x0;}(_0x144cf0)?c(_0x210fe2,'*Format:*\x20remove\x20from\x20%0',c(_0x210fe2,function(_0x533080){return'ELEMENT_'+_0x533080['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x144cf0))):c(_0x210fe2,'*Outdent:*\x20%0',c(_0x210fe2,'ELEMENT_LIST_ITEM')),_0x199dba={'type':'format','content':_0x3c6ebb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5d4466['multipleBlocks']&&(_0x3c6ebb='*Merge:*\x20%0',_0x199dba={'type':'deletion','content':c(_0x210fe2,_0x3c6ebb,c(_0x210fe2,'ELEMENT_LIST_ITEM'))});}return _0x199dba;});}}function Te(_0x2e5255){let _0x296452=_0x2e5255['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x296452;){const _0xf5d6b5=_0x296452['getAttribute']('listItemId');if(!_0xf5d6b5)return!0x1;if(_0xf5d6b5==_0x2e5255['data']['newValue'])return'newValue';if(_0xf5d6b5==_0x2e5255['data']['oldValue'])return'oldValue';_0x296452=_0x296452['previousSibling'];}return!0x1;}class Se extends _0x2fff63{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3aaedf=this['editor']['config']['get']('list.properties'),_0x1054a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x3aaedf['styles']&&(_0x1054a5['enableDefaultAttributesIntegration']('listStyle'),_0x1054a5['registerBlockAttribute']('listStyle')),_0x3aaedf['reversed']&&(_0x1054a5['enableDefaultAttributesIntegration']('listReversed'),_0x1054a5['registerBlockAttribute']('listReversed')),_0x3aaedf['startIndex']&&(_0x1054a5['enableDefaultAttributesIntegration']('listStart'),_0x1054a5['registerBlockAttribute']('listStart'));const _0x58e87c={'type':'format','content':''};_0x1054a5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2e7b5c=this['editor']['locale'];_0x1054a5['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2e7b5c,'FORMAT_LIST_REVERSED')),_0x1054a5['descriptionFactory']['registerDescriptionCallback'](_0x1ccdaf=>{const {data:_0x337eaa}=_0x1ccdaf;if(_0x337eaa&&'listReversed'==_0x337eaa['key'])return null==_0x337eaa['newValue']||0x0==_0x337eaa['newValue']&&null==_0x337eaa['oldValue']?_0x58e87c:void 0x0;}),_0x1054a5['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2e7b5c,'FORMAT_LIST_START')),_0x1054a5['descriptionFactory']['registerDescriptionCallback'](_0x43b463=>{const {data:_0x8f7c52}=_0x43b463;if(_0x8f7c52&&'listStart'==_0x8f7c52['key'])return null==_0x8f7c52['newValue']||0x1==_0x8f7c52['newValue']&&null==_0x8f7c52['oldValue']?_0x58e87c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x802ce0=>{if(_0x802ce0['batch']['isUndo'])return!0x1;let _0x5ad9cd=!0x1;const _0x45fcea=_0x1054a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39a11b=>{const _0x2126fa=_0x1054a5['_getAttributeKey'](_0x39a11b);return'listStart'==_0x2126fa||'listReversed'==_0x2126fa;});for(const _0x4aae97 of _0x45fcea){const _0x5404a0=_0x4aae97['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5404a0||'customNumbered'==_0x5404a0)continue;_0x1054a5['_findSuggestions'](_0x4aae97['getFirstRange'](),'attribute')['find'](_0x42fdfc=>'listType'==_0x1054a5['_getAttributeKey'](_0x42fdfc['suggestion']))||(_0x802ce0['removeMarker'](_0x4aae97['getFirstMarker']()),_0x5ad9cd=!0x0);}return _0x5ad9cd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3b1d0a){const _0x1baa08=this['editor']['locale'],{data:_0x5ae55b}=_0x3b1d0a,_0x4e2f4e={'type':'format','content':''};if(!_0x5ae55b||'listStyle'!=_0x5ae55b['key'])return;if(!_0x5ae55b['oldValue'])return'default'==_0x5ae55b['newValue']?_0x4e2f4e:{'type':'format','content':''+c(_0x1baa08,'*Set\x20format:*\x20%0',c(_0x1baa08,this['_getTranslationKeyForListStyle'](_0x5ae55b['newValue'])))};if(!_0x5ae55b['newValue']){if('default'==_0x5ae55b['oldValue'])return _0x4e2f4e;let _0xe9874e=_0x3b1d0a['head'];for(;_0xe9874e;){if(_0xe9874e['data']&&'listType'==_0xe9874e['data']['key']&&_0xe9874e['data']['newValue'])return _0x4e2f4e;_0xe9874e=_0xe9874e['next'];}return{'type':'format','content':''+c(_0x1baa08,'*Remove\x20format:*\x20%0',c(_0x1baa08,this['_getTranslationKeyForListStyle'](_0x5ae55b['oldValue'])))};}if('default'!=_0x5ae55b['newValue'])return{'type':'format','content':''+c(_0x1baa08,'*Set\x20format:*\x20%0',c(_0x1baa08,this['_getTranslationKeyForListStyle'](_0x5ae55b['newValue'])))};let _0x17f2b6=_0x3b1d0a['head'];for(;_0x17f2b6;){if(_0x17f2b6['data']&&'listType'==_0x17f2b6['data']['key']&&_0x17f2b6['data']['newValue']&&_0x17f2b6['data']['oldValue'])return _0x4e2f4e;_0x17f2b6=_0x17f2b6['next'];}return{'type':'format','content':c(_0x1baa08,'*Set\x20format:*\x20%0',c(_0x1baa08,'ELEMENT_'+_0x3b1d0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1d1720=this['editor'],_0x3da892=_0x1d1720['locale'];_0x1d1720['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29f1bf=>{if('formatBlock'!=_0x29f1bf['type'])return;const {data:_0x1d9d35}=_0x29f1bf;if(!_0x1d9d35)return;let _0x2a7445,_0x8e3277;switch(_0x1d9d35['commandName']){case'listStyle':_0x2a7445='*Change\x20to:*\x20%0',_0x8e3277={'type':'format','content':c(_0x3da892,_0x2a7445,c(_0x3da892,this['_getTranslationKeyForListStyle'](_0x1d9d35['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2a7445=_0x1d9d35['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x8e3277={'type':'format','content':c(_0x3da892,_0x2a7445)};break;case'listStart':_0x2a7445='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x8e3277={'type':'format','content':c(_0x3da892,_0x2a7445,_0x1d9d35['commandParams'][0x0]['startIndex'])};}return _0x8e3277;});}['_getTranslationKeyForListStyle'](_0x15fd67){return'ELEMENT_'+function(_0x368097){if(_e['includes'](_0x368097))return'bulleted';if(Re['includes'](_0x368097))return'numbered';return null;}(_0x15fd67)['toUpperCase']()+'_LIST_'+_0x15fd67['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2fff63{['afterInit'](){const _0x153d6c=this['editor'];_0x153d6c['commands']['get']('emoji')&&_0x153d6c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2fff63{static get['requires'](){return[_0x132c6c];}['init'](){const _0x595a3f=this['editor'],_0x182661=_0x595a3f['plugins']['get']('TrackChangesEditing'),_0x2c4702=_0x595a3f['commands']['get']('enter');_0x182661['enableCommand']('enter',()=>{_0x595a3f['model']['change'](_0x4934b8=>{const _0x60a6c7=_0x595a3f['model']['document']['selection'],_0x544550=_0x60a6c7['getFirstPosition'](),_0x4844da=_0x542068['fromRange'](_0x60a6c7['getFirstRange']());if(_0x2c4702['enterBlock'](_0x4934b8)){const _0x4aa1cb=_0x595a3f['model']['createPositionAt'](_0x544550['parent']['nextSibling'],0x0),_0x56159b=_0x4934b8['createRange'](_0x544550,_0x4aa1cb);_0x182661['markInsertion'](_0x56159b);}else _0x4934b8['setSelection'](_0x4934b8['createRange'](_0x4844da['end']));_0x4844da['detach'](),_0x2c4702['fire']('afterExecute',{'writer':_0x4934b8});});}),_0x595a3f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x595a3f,'split'),{'priority':'high'}),_0x595a3f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4692eb,_0x87ba4c,_0x34bef4)=>{const _0x3761ae=_0x34bef4['mapper']['markerNameToElements'](_0x87ba4c['markerName']);if(_0x3761ae){for(const _0x527693 of _0x3761ae)_0x527693['hasClass']('ck-suggestion-marker-split')&&(_0x34bef4['mapper']['unbindElementFromMarkerName'](_0x527693,_0x87ba4c['markerName']),_0x34bef4['writer']['remove'](_0x527693));}},{'priority':'high'}),_0x595a3f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x203767,_0x4c1e51,_0x27bb56)=>{_0x27bb56['options']['showSuggestionHighlights']&&De(_0x595a3f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x203767,_0x4c1e51,_0x27bb56);},{'priority':'high'});}}class Z extends _0x2fff63{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4b5889=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b5889['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4b5889['enableCommand']('findNext'),_0x4b5889['enableCommand']('findPrevious'),_0x4b5889['enableCommand']('replace'),_0x4b5889['enableCommand']('replaceAll');}['handleFindCommand'](_0x64495f,_0x3d01f6,_0x5c19f9={}){const _0x2708fc=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x64495f(_0x5736f4=>{let _0x4e163b=('string'==typeof _0x3d01f6?_0x2708fc['findByTextCallback'](_0x3d01f6,_0x5c19f9):_0x3d01f6)(_0x5736f4);Array['isArray'](_0x4e163b)&&(_0x4e163b={'results':_0x4e163b,'searchText':'string'==typeof _0x3d01f6?_0x3d01f6:''});const _0x16087b=_0x4e163b['results']['filter'](_0x3fdf7a=>!0x1===this['_isInDeletionRange'](_0x3fdf7a,_0x5736f4['item']));return{..._0x4e163b,'results':_0x16087b};},_0x5c19f9);}['_isInDeletionRange'](_0x26a3fe,_0x2fce0e){const _0xadd0c8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fce0e,_0x26a3fe['start']),this['editor']['model']['createPositionAt'](_0x2fce0e,_0x26a3fe['end']));for(const _0x35de50 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xadd0c8['getIntersection'](_0x35de50['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x2fff63{['afterInit'](){const _0x78350f=this['editor']['locale'],_0x4614fa=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4935e3,commandName:_0xd35173}of eo)this['editor']['plugins']['has'](_0x4935e3)&&(_0x4614fa['enableDefaultAttributesIntegration'](_0xd35173),_0x4614fa['registerInlineAttribute'](_0xd35173));_0x4614fa['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x78350f,'FORMAT_FONT_SIZE')),_0x4614fa['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x78350f,'FORMAT_FONT_FAMILY')),_0x4614fa['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x78350f,'FORMAT_FONT_COLOR')),_0x4614fa['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x78350f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4286cb=this['editor'],_0x11b206=_0x4286cb['locale'];_0x4286cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc722b9=>{const _0x5518ae=_0x11b206['t'];if('formatInline'!=_0xc722b9['type'])return;const {data:_0x4fae10}=_0xc722b9;if(null!=_0x4fae10){if('fontSize'==_0x4fae10['commandName']){const _0x134dd0=_0x4fae10['commandParams'][0x0]['value'];if(_0x134dd0){const _0x477261=_0x5518ae(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x574b51=>_0x574b51['model']==_0x134dd0)['title'])['toLowerCase']();return{'type':'format','content':c(_0x11b206,'*Set\x20font\x20size:*\x20%0',_0x477261)};}return{'type':'format','content':c(_0x11b206,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4fae10['commandName']){const _0x507147=_0x4fae10['commandParams'][0x0]['value'];return _0x507147?{'type':'format','content':c(_0x11b206,'*Set\x20font\x20family:*\x20%0',_0x507147)}:{'type':'format','content':c(_0x11b206,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4fae10['commandName']){const _0xa868bf=_0x4fae10['commandParams'][0x0]['value'];if(_0xa868bf){const _0x427e9e=_0x15c9c5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x36b8ea=>_0x36b8ea['model']==_0xa868bf);let _0x188198=_0xa868bf,_0x3ee509='';return _0x427e9e&&(_0x188198=_0x427e9e['label'],_0x3ee509=_0x5518ae(_0x188198)['toLowerCase']()),{'type':'format','content':c(_0x11b206,'*Set\x20font\x20color:*\x20%0',_0x3ee509)['trim'](),'color':{'value':_0xa868bf,'title':_0x3ee509||_0x188198}};}return{'type':'format','content':c(_0x11b206,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4fae10['commandName']){const _0x47824b=_0x4fae10['commandParams'][0x0]['value'];if(_0x47824b){const _0x5466fb=_0x15c9c5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x9d7b06=>_0x9d7b06['model']==_0x47824b);let _0x1c149f=_0x47824b,_0x3d0e36='';return _0x5466fb&&(_0x1c149f=_0x5466fb['label'],_0x3d0e36=_0x5518ae(_0x1c149f)['toLowerCase']()),{'type':'format','content':c(_0x11b206,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d0e36)['trim'](),'color':{'value':_0x47824b,'title':_0x3d0e36||_0x1c149f}};}return{'type':'format','content':c(_0x11b206,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2fff63{['afterInit'](){const _0x2826b8=this['editor'],_0x1c6153=_0x2826b8['plugins']['get']('TrackChangesEditing'),_0x1f3e0a=_0x2826b8['commands']['get']('copyFormat'),_0x3e2e00=_0x2826b8['commands']['get']('pasteFormat');_0x1f3e0a&&_0x3e2e00&&(_0x1c6153['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c6153['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x241b83=this['editor'],_0x4e740d=_0x241b83['locale'];_0x241b83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b55a2=>{if('formatBlock'!=_0x2b55a2['type']&&'formatInline'!=_0x2b55a2['type'])return;const {data:_0x172dc4}=_0x2b55a2;if(_0x172dc4&&'pasteFormat'===_0x172dc4['commandName']){const _0x7da51b=[],_0x3c0e7f=_0x172dc4['commandParams'][0x0];for(const [_0x296642,_0x2b7ee2]of Object['entries'](_0x3c0e7f))_0x7da51b['push'](ro(_0x241b83,_0x296642,_0x2b7ee2));return _0x7da51b['length']?{'type':'format','content':c(_0x4e740d,'*Set\x20format\x20to:*\x20%0',_0x7da51b['join'](',\x20'))}:{'type':'format','content':c(_0x4e740d,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x593056,_0x372824,_0x171cd0){const _0x14325f=_0x593056['locale']['t'],_0x42bf24=_0x372824['split'](/(?=[A-Z])/)['join']('\x20'),_0x414780=_0x14325f(_0x42bf24['charAt'](0x0)['toUpperCase']()+_0x42bf24['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x171cd0)return _0x414780;if('fontColor'===_0x372824||'fontBackgroundColor'===_0x372824){const _0x380e53=_0x15c9c5(_0x593056['config']['get']('fontColor.colors'))['find'](_0x4c7707=>_0x4c7707['model']==_0x171cd0);return _0x414780+'\x20('+(_0x380e53?_0x14325f(_0x380e53['label'])['toLowerCase']():_0x171cd0)+')';}if('fontSize'===_0x372824&&isNaN(parseFloat(_0x171cd0))){const _0x52e627=_0x593056['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x593056['config']['get']('fontSize.options'))['find'](_0x3e7e30=>_0x3e7e30['model']==_0x171cd0);return _0x414780+'\x20('+(_0x52e627?_0x14325f(_0x52e627['title'])['toLowerCase']():_0x171cd0)+')';}return _0x414780+'\x20('+_0x171cd0+')';}class nt extends _0x2fff63{['_headingOptions'];['afterInit'](){const _0x57ee8a=this['editor'];if(!_0x57ee8a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x57ee8a['config']['get']('heading.options');const _0x234740=_0x57ee8a['locale'],_0x36523a=_0x57ee8a['plugins']['get']('TrackChangesEditing');_0x36523a['enableDefaultAttributesIntegration']('heading');for(const _0x364e05 of this['_headingOptions'])'paragraph'!=_0x364e05['model']&&_0x36523a['descriptionFactory']['registerElementLabel'](_0x364e05['model'],_0x1010b3=>{const _0x4a2dbc=this['_getHeadingLevel'](_0x364e05['model']);return null!==_0x4a2dbc?_0x286a73(_0x1010b3,_0x4a2dbc):_0x511a7(_0x1010b3,_0x364e05['title']);});function _0x286a73(_0x35e810,_0x2b83d9){return c(_0x234740,'ELEMENT_HEADING',[_0x35e810,_0x2b83d9]);}function _0x511a7(_0x5be529,_0x448e76){return c(_0x234740,'ELEMENT_HEADING_CUSTOM',[_0x5be529,_0x448e76]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a16e4=this['editor'],_0x37127e=_0x5a16e4['locale'];function _0xf46215(_0x5be344,_0x1c17a6){return c(_0x37127e,'ELEMENT_HEADING_CUSTOM',[_0x5be344,_0x1c17a6]);}_0x5a16e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fb3c5=>{if('formatBlock'!=_0x3fb3c5['type'])return;const {data:_0x465a48}=_0x3fb3c5;if(_0x465a48&&'heading'==_0x465a48['commandName']){const _0x11b1ad=_0x465a48['commandParams'][0x0]['value'],_0x16ff37=this['_getHeadingLevel'](_0x11b1ad);if(null!==_0x16ff37)return{'type':'format','content':c(_0x37127e,'*Change\x20to:*\x20%0',(_0x3410e2=0x1,_0x445a00=_0x16ff37,c(_0x37127e,'ELEMENT_HEADING',[_0x3410e2,_0x445a00])))};const _0x3b3881=this['_headingOptions']['find'](_0x5ebf00=>_0x5ebf00['model']===_0x11b1ad)['title'];return{'type':'format','content':c(_0x37127e,'*Change\x20to:*\x20%0',_0xf46215(0x1,_0x3b3881))};}var _0x3410e2,_0x445a00;});}['_getHeadingLevel'](_0x27ad58){const _0x50186c=_0x27ad58['match'](/^heading(\d+)/);if(_0x50186c)return _0x50186c[0x1];const _0x2d1027=this['_headingOptions']?.['find'](_0x279b6a=>_0x279b6a['model']==_0x27ad58);if(_0x2d1027&&_0x2d1027['view']){const _0x4df0e1=_0x2d1027['view'],_0x355d79=(_0x4df0e1['name']??_0x4df0e1)['match'](/^h(\d+)/);if(_0x355d79)return _0x355d79[0x1];}return null;}}class it extends _0x2fff63{['afterInit'](){const _0x12b396=this['editor'];if(!_0x12b396['plugins']['has']('HighlightEditing'))return;const _0x159637=_0x12b396['plugins']['get']('TrackChangesEditing'),_0x42c7fc=_0x12b396['locale'];_0x159637['enableDefaultAttributesIntegration']('highlight'),_0x159637['registerInlineAttribute']('highlight'),_0x159637['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x42c7fc,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21c5f8=this['editor'],_0x13afed=_0x21c5f8['locale'];_0x21c5f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x450fd5=>{if('formatInline'!=_0x450fd5['type'])return;const {data:_0x1c7655}=_0x450fd5;if(_0x1c7655&&'highlight'==_0x1c7655['commandName']){const _0x7c66bb=_0x13afed['t'],_0x3b0c39=_0x1c7655['commandParams'][0x0]['value'];if(_0x3b0c39){const _0x44196e=_0x21c5f8['config']['get']('highlight.options')['find'](_0x324192=>_0x324192['model']==_0x3b0c39),_0x44e4dd=_0x7c66bb(_0x44196e['title'])['toLowerCase']();return{'type':'format','content':c(_0x13afed,'*Set\x20highlight:*\x20%0',_0x44e4dd),'color':{'value':_0x44196e['color'],'title':_0x44196e['title']}};}return{'type':'format','content':c(_0x13afed,'*Remove\x20highlight*',c(_0x13afed,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2fff63{['afterInit'](){const _0x297ccc=this['editor'];if(!_0x297ccc['plugins']['has']('HorizontalLineEditing'))return;_0x297ccc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x45cc26=_0x297ccc['plugins']['get']('TrackChangesEditing'),_0xc3b0c2=_0x297ccc['locale'];_0x45cc26['descriptionFactory']['registerElementLabel']('horizontalLine',_0xa19c72=>c(_0xc3b0c2,'ELEMENT_HORIZONTAL_LINE',_0xa19c72)),_0x297ccc['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1764a5,{writer:_0x17b4ba,options:_0xe9369a})=>{if(!_0xe9369a['showSuggestionHighlights'])return null;const _0x290594=_0x17b4ba['createContainerElement']('div'),_0x9ac728=_0x17b4ba['createEmptyElement']('hr');return _0x17b4ba['addClass']('ck-horizontal-line',_0x290594),_0x17b4ba['insert'](_0x17b4ba['createPositionAt'](_0x290594,0x0),_0x9ac728),_0x290594;},'converterPriority':'high'});}}class ot extends _0x2fff63{['afterInit'](){const _0x454140=this['editor'];if(!_0x454140['plugins']['has']('HtmlEmbed'))return;const _0x5a2b51=_0x454140['plugins']['get']('TrackChangesEditing'),_0x1c2cee=_0x454140['locale'];_0x5a2b51['descriptionFactory']['registerElementLabel']('rawHtml',_0x5807d6=>c(_0x1c2cee,'ELEMENT_HTML_EMBED',_0x5807d6)),_0x5a2b51['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5a2b51['registerBlockAttribute']('value'),_0x5a2b51['descriptionFactory']['registerDescriptionCallback'](_0x438d22=>{if('attribute'!=_0x438d22['type'])return;const {data:_0x23a173}=_0x438d22;if(_0x23a173&&'value'==_0x23a173['key']&&_0x438d22['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4d6d01=c(_0x1c2cee,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1c2cee,'*Change\x20%0\x20content*',_0x4d6d01)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b1f45=this['editor'],_0x1ef4b4=_0x1b1f45['locale'];_0x1b1f45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd27d=>{if('formatBlock'!=_0x2fd27d['type'])return;const {data:_0x3b1535}=_0x2fd27d;if(_0x3b1535&&'htmlEmbed'==_0x3b1535['commandName']){const _0x216e59=c(_0x1ef4b4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1ef4b4,'*Change\x20%0\x20content*',_0x216e59)};}});}}class rt extends _0x2fff63{['afterInit'](){const _0x2b0468=this['editor'];if(!_0x2b0468['plugins']['has']('ImageEditing'))return;const _0x585127=_0x2b0468['plugins']['get']('TrackChangesEditing'),_0x375b0f=_0x2b0468['plugins']['get']('ImageUtils'),_0x9a58a6=_0x2b0468['locale'];_0x585127['enableCommand']('insertImage'),_0x585127['descriptionFactory']['registerElementLabel']('imageBlock',_0x3886e0=>c(_0x9a58a6,'ELEMENT_IMAGE',_0x3886e0)),_0x585127['descriptionFactory']['registerElementLabel']('imageInline',_0x6cb006=>c(_0x9a58a6,'ELEMENT_INLINE_IMAGE',_0x6cb006)),_0x585127['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x9a58a6,'ELEMENT_CAPTION')),_0x2b0468['plugins']['has']('ImageUploadEditing')&&_0x585127['enableCommand']('uploadImage'),_0x2b0468['plugins']['has']('ImageBlockEditing')&&_0x2b0468['plugins']['has']('ImageInlineEditing')&&(_0x585127['enableCommand']('imageTypeInline',(_0x456585,_0x176146)=>{const _0x2925ed=_0x375b0f['getClosestSelectedImageElement'](_0x2b0468['model']['document']['selection']);_0x2b0468['model']['change'](()=>{_0x585127['markBlockFormat'](_0x2925ed,{'commandName':'imageTypeInline','commandParams':[_0x176146]},[],'convertBlockImageToInline');});}),_0x585127['enableCommand']('imageTypeBlock',(_0x4211bb,_0x189acf)=>{_0x2b0468['model']['change'](_0xc50749=>{let _0x1e000d=_0x375b0f['getClosestSelectedImageElement'](_0x2b0468['model']['document']['selection']),_0x82621a=_0xc50749['createRangeOn'](_0x1e000d);const _0x202287=_0x1e0e67['fromPosition'](_0x82621a['start'],'toPrevious'),_0x556bd3=_0x1e0e67['fromPosition'](_0x82621a['end'],'toNext');_0x585127['forceDefaultExecution'](()=>_0x4211bb(_0x189acf)),_0x1e000d=_0x375b0f['getClosestSelectedImageElement'](_0x2b0468['model']['document']['selection']),_0x82621a=_0xc50749['createRangeOn'](_0x1e000d);const _0x5e9ac8=_0xc50749['createRange'](_0x202287,_0x556bd3);_0x202287['detach'](),_0x556bd3['detach'](),_0x585127['markBlockFormat'](_0x1e000d,{'commandName':'imageTypeInline','commandParams':[_0x189acf]},[],'convertInlineImageToBlock'),_0x5e9ac8['start']['isBefore'](_0x82621a['start'])&&_0x585127['markInsertion'](_0xc50749['createRange'](_0x5e9ac8['start'],_0x82621a['start']),'convertInlineImageToBlock'),_0x82621a['end']['isBefore'](_0x5e9ac8['end'])&&_0x585127['markInsertion'](_0xc50749['createRange'](_0x82621a['end'],_0x5e9ac8['end']),'convertInlineImageToBlock');});}),_0x585127['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x585127['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x585127['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x585127['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x585127['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x585127['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x6c27e2])=>{const _0xfc0a98=_0x585127['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x530431=_0x6c27e2['start'],_0xe833b6=_0x6c27e2['end'];const _0xc49079=_0x2b0468['model']['schema']['getNearestSelectionRange'](_0x530431,'backward'),_0x10b947=_0x2b0468['model']['schema']['getNearestSelectionRange'](_0xe833b6,'forward');_0xc49079['isCollapsed']&&(_0x530431=_0xc49079['start']),_0x10b947['isCollapsed']&&(_0xe833b6=_0x10b947['end']),_0xfc0a98([_0x2b0468['model']['createRange'](_0x530431,_0xe833b6)]);}),_0x585127['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2bac9a),_0x585127['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2bac9a)),_0x2b0468['plugins']['has']('ImageCaptionEditing')&&(_0x585127['enableCommand']('toggleImageCaption',(_0x3032fe,_0x23ff9e)=>{const _0x470e4c=_0x2b0468['plugins']['get']('ImageCaptionUtils');let _0x542bb4=_0x375b0f['getClosestSelectedImageElement'](_0x2b0468['model']['document']['selection']),_0x76aa8b=_0x470e4c['getCaptionFromImageModelElement'](_0x542bb4);_0x2b0468['model']['change'](()=>{if(_0x76aa8b)return void _0x585127['markDeletion'](_0x2b0468['model']['createRangeOn'](_0x76aa8b));const _0x155b97=_0x375b0f['isBlockImage'](_0x542bb4);_0x3032fe(_0x23ff9e),_0x542bb4=_0x375b0f['getClosestSelectedImageElement'](_0x2b0468['model']['document']['selection']),_0x76aa8b=_0x470e4c['getCaptionFromImageModelElement'](_0x542bb4),_0x585127['markInsertion'](_0x2b0468['model']['createRangeOn'](_0x76aa8b),_0x155b97?null:'imageCaption');});}),_0x585127['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2bac9a));const _0x55f6ae=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5636a1(_0x20dd6d,_0x270f3c){const _0x4d6e71=_0x55f6ae['findIndex'](({type:_0x33c391,subType:_0x23afea})=>_0x20dd6d['type']==_0x33c391&&_0x20dd6d['subType']==_0x23afea),_0x593e3c=_0x55f6ae['findIndex'](({type:_0x6e64eb,subType:_0x5ad497})=>_0x270f3c['type']==_0x6e64eb&&_0x270f3c['subType']==_0x5ad497);if(_0x4d6e71<0x0||_0x593e3c<0x0)return!0x1;const _0x3c272b=_0x20dd6d['getFirstRange'](),_0x3b42fd=_0x270f3c['getFirstRange']();if((0x0==_0x4d6e71||0x1==_0x4d6e71)&&0x2==_0x593e3c&&_0x3c272b['isIntersecting'](_0x3b42fd))return!0x0;if(0x2==_0x4d6e71&&0x3==_0x593e3c){const _0x5b0e4b=_0x585127['_findSuggestions'](_0x3c272b,'insertion')['filter'](({suggestion:_0x1905e2,meta:_0xfe9046})=>_0xfe9046['isOwn']&&'convertInlineImageToBlock'==_0x1905e2['subType']);if(_0x5b0e4b['length']>0x1&&_0x3b42fd['end']['isEqual'](_0x3c272b['start']))return!0x0;if(0x1==_0x5b0e4b['length']&&(_0x3c272b['start']['isEqual'](_0x3b42fd['end'])||_0x3c272b['end']['isEqual'](_0x3b42fd['start'])))return!0x0;}if(0x3==_0x4d6e71&&0x3==_0x593e3c&&_0x3c272b['start']['isBefore'](_0x3b42fd['start'])){const _0x384886=_0x3c272b['end']['nodeAfter'],_0x51635d=_0x3b42fd['start']['nodeBefore'];return _0x375b0f['isBlockImage'](_0x384886)&&_0x384886===_0x51635d;}return!0x1;}function _0x2bac9a(_0x10615d,_0x5f408b){return _0x5636a1(_0x10615d,_0x5f408b)?[_0x10615d,_0x5f408b]:_0x5636a1(_0x5f408b,_0x10615d)?[_0x5f408b,_0x10615d]:null;}_0x2b0468['plugins']['has']('ImageResize')&&(_0x585127['enableDefaultAttributesIntegration']('resizeImage'),_0x585127['registerBlockAttribute']('resizedWidth'),_0x585127['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x9a58a6,'FORMAT_IMAGE_SIZE'))),_0x2b0468['plugins']['has']('ImageTextAlternativeEditing')&&(_0x585127['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x585127['registerBlockAttribute']('alt')),_0x2b0468['plugins']['has']('PictureEditing')&&(_0x585127['registerBlockAttribute']('sources'),_0x585127['descriptionFactory']['registerDescriptionCallback'](_0x317b54=>{if('attribute'!=_0x317b54['type'])return;const {data:_0x47c837}=_0x317b54;return _0x47c837&&'sources'==_0x47c837['key']?{'type':'format','content':''}:void 0x0;})),_0x2b0468['plugins']['has']('ImageSizeAttributes')&&(_0x585127['registerBlockAttribute']('width'),_0x585127['registerBlockAttribute']('height'),_0x585127['descriptionFactory']['registerDescriptionCallback'](_0x598567=>{if('attribute'!=_0x598567['type'])return;const {data:_0x4cc743}=_0x598567;return!_0x4cc743||'width'!=_0x4cc743['key']&&'height'!=_0x4cc743['key']?void 0x0:{'type':'format','content':''};})),_0x585127['descriptionFactory']['registerDescriptionCallback'](_0xede36a=>{if(!!_0x55f6ae['find'](({type:_0x4aacd9,subType:_0x1feaa9})=>_0xede36a['type']==_0x4aacd9&&_0xede36a['subType']==_0x1feaa9))return _0xede36a['previous']?{}:void 0x0;}),_0x585127['descriptionFactory']['registerDescriptionCallback'](_0x20051d=>{if('insertion'==_0x20051d['type']||'deletion'==_0x20051d['type']){const _0x19715c=_0x20051d['getContainedElement']();if(_0x19715c&&_0x19715c['is']('element','caption'))return{'type':'insertion'==_0x20051d['type']?'addObject':'removeObject','element':_0x19715c,'quantity':0x1};}}),_0x585127['descriptionFactory']['registerDescriptionCallback'](_0x4766aa=>'formatBlock'==_0x4766aa['type']&&'convertInlineImageToBlock'==_0x4766aa['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4766aa['type']&&'convertBlockImageToInline'==_0x4766aa['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x585127['descriptionFactory']['registerDescriptionCallback'](_0x4b8211=>{if('attribute'!=_0x4b8211['type'])return;const {data:_0x172ab6}=_0x4b8211;if(!_0x172ab6||'alt'!=_0x172ab6['key'])return;const _0x5038f0=_0x172ab6['newValue'];return _0x5038f0?{'type':'format','content':c(_0x9a58a6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5038f0+'\x22')}:{'type':'format','content':c(_0x9a58a6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491c16=this['editor'],_0x24c57a=_0x491c16['locale'];_0x491c16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c71be=>{if('formatBlock'!=_0x4c71be['type']&&'formatInline'!=_0x4c71be['type'])return;const {data:_0x361eb1}=_0x4c71be;if(_0x361eb1){if('imageTextAlternative'==_0x361eb1['commandName']){const _0x17d14d=_0x361eb1['commandParams'][0x0]['newValue'];return _0x17d14d?{'type':'format','content':c(_0x24c57a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x17d14d+'\x22')}:{'type':'format','content':c(_0x24c57a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x361eb1['commandName']){const _0x58cfaf=_0x361eb1['commandParams'][0x0]['width'];return _0x58cfaf?{'type':'format','content':c(_0x24c57a,'*Set\x20image\x20width:*\x20%0',_0x58cfaf)}:{'type':'format','content':c(_0x24c57a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2fff63{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x183dcf=this['editor']['locale'],_0x5953ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x5953ce['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5953ce['registerBlockAttribute']('src'),_0x5953ce['descriptionFactory']['registerDescriptionCallback'](_0x3b3d35=>{if('attribute'!=_0x3b3d35['type'])return;const {data:_0x1a6d5f}=_0x3b3d35;return _0x1a6d5f&&'src'==_0x1a6d5f['key']?_0x1a6d5f['newValue']&&_0x1a6d5f['oldValue']?{'type':'format','content':c(_0x183dcf,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x18e36a=this['editor']['plugins']['get']('TrackChangesEditing');_0x18e36a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x18e36a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x18e36a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x18e36a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18b37a=this['editor'],_0x575ae6=_0x18b37a['locale'];_0x18b37a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa8d839=>{if('formatBlock'!=_0xa8d839['type']&&'formatInline'!=_0xa8d839['type'])return;const {data:_0x113312}=_0xa8d839;if(!_0x113312||'replaceImageSource'!=_0x113312['commandName'])return;return{'type':'format','content':c(_0x575ae6,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2fff63{['afterInit'](){const _0x114340=this['editor'];if(!_0x114340['plugins']['has']('ImageStyleEditing'))return;const _0x2d0c40=_0x114340['plugins']['get']('TrackChangesEditing'),_0x3e20c3=_0x114340['plugins']['get']('ImageUtils'),_0x9f1093={};_0x2d0c40['enableCommand']('imageStyle',(_0x54fad4,_0x507fbc)=>{const _0x2dc4d8=_0x114340['plugins']['get']('Users')['me'],_0x198566=_0x114340['commands']['get']('imageStyle');let _0x410c0c=_0x3e20c3['getClosestSelectedImageElement'](_0x114340['model']['document']['selection']),_0x2089e3=_0x114340['model']['createRangeOn'](_0x410c0c),_0xf4593a=_0x198566['value'];if(_0xf4593a==_0x507fbc['value'])return;const _0x107cf1={'commandName':'imageStyle','commandParams':[_0x507fbc],'formatGroupId':_0x164670()};_0x114340['model']['change'](()=>{if(_0x2d0c40['getSuggestions']()['filter'](_0x37771b=>_0x37771b['isInContent']&&_0x2dc4d8==_0x37771b['author']&&('formatBlock'==_0x37771b['type']||'formatInline'==_0x37771b['type'])&&('imageStylePreApply'==_0x37771b['subType']||'imageStylePostApply'==_0x37771b['subType'])&&_0x37771b['getFirstRange']()['isEqual'](_0x2089e3))['forEach'](_0x632d6=>_0x2d0c40['discardSuggestion'](_0x632d6['head'])),_0x410c0c=_0x3e20c3['getClosestSelectedImageElement'](_0x114340['model']['document']['selection']),_0x2089e3=_0x114340['model']['createRangeOn'](_0x410c0c),_0x198566['refresh'](),_0x114340['commands']['get']('imageTypeInline')['refresh'](),_0x114340['commands']['get']('imageTypeBlock')['refresh'](),_0xf4593a=_0x198566['value'],_0xf4593a!=_0x507fbc['value'])return _0x3e20c3['isInlineImage'](_0x410c0c)&&_0x198566['shouldConvertImageType'](_0x507fbc['value'],_0x410c0c)?(_0x54fad4({..._0x507fbc,'setImageSizes':!0x1}),_0x410c0c=_0x3e20c3['getClosestSelectedImageElement'](_0x114340['model']['document']['selection']),void _0x2d0c40['markBlockFormat'](_0x410c0c,{..._0x107cf1,'commandReversedParams':[{'value':_0xf4593a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3e20c3['isBlockImage'](_0x410c0c)?_0x2d0c40['markBlockFormat'](_0x410c0c,_0x107cf1,[],'imageStylePostApply'):_0x2d0c40['markInlineFormat'](_0x2089e3,_0x107cf1,'imageStylePostApply'));});});for(const _0x44410c of _0x114340['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x9f1093[_0x44410c['name']]=_0x44410c['title']['toLowerCase']();_0x2d0c40['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2d0c40['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2d0c40['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2d0c40['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x57a3f0])=>{_0x3e20c3['setImageNaturalSizeAttributes'](_0x57a3f0['getContainedElement']());}),_0x2d0c40['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3785ad,_0x1138ac)=>{_0x2d0c40['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3785ad,{'commandName':_0x1138ac['commandName'],'commandParams':_0x1138ac['commandReversedParams']});}),_0x2d0c40['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x39573f,_0x2dc69c){if(_0x431f76(_0x39573f,_0x2dc69c))return[_0x39573f,_0x2dc69c];if(_0x431f76(_0x2dc69c,_0x39573f))return[_0x2dc69c,_0x39573f];return null;});const _0x57a9fd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x431f76(_0x572abf,_0x276c5e){const _0x2c5bf1=_0x57a9fd['findIndex'](({type:_0x84f2b2,subType:_0x2573a7})=>_0x572abf['type']==_0x84f2b2&&_0x572abf['subType']==_0x2573a7),_0x4faeb6=_0x57a9fd['findIndex'](({type:_0x3d3b78,subType:_0x49ef46})=>_0x276c5e['type']==_0x3d3b78&&_0x276c5e['subType']==_0x49ef46);if(_0x2c5bf1<0x0||_0x4faeb6<0x0)return!0x1;const _0x9dcb45=_0x572abf['getFirstRange'](),_0x98df06=_0x276c5e['getFirstRange']();if((0x0==_0x2c5bf1||0x1==_0x2c5bf1)&&0x2==_0x4faeb6&&_0x9dcb45['isIntersecting'](_0x98df06))return!0x0;if(0x2==_0x2c5bf1&&0x3==_0x4faeb6){const _0x2812a9=_0x2d0c40['_findSuggestions'](_0x9dcb45,'insertion')['filter'](({suggestion:_0x229061,meta:_0x1fc82e})=>_0x1fc82e['isOwn']&&'convertInlineImageToBlock'==_0x229061['subType']);if(_0x2812a9['length']>0x1&&_0x98df06['end']['isEqual'](_0x9dcb45['start']))return!0x0;if(0x1==_0x2812a9['length']&&(_0x9dcb45['start']['isEqual'](_0x98df06['end'])||_0x9dcb45['end']['isEqual'](_0x98df06['start'])))return!0x0;}if(0x3==_0x2c5bf1&&0x3==_0x4faeb6&&_0x9dcb45['start']['isBefore'](_0x98df06['start'])){const _0x215650=_0x9dcb45['end']['nodeAfter'],_0x4c0b96=_0x98df06['start']['nodeBefore'];return _0x3e20c3['isBlockImage'](_0x215650)&&_0x215650===_0x4c0b96;}return!0x1;}_0x114340['model']['document']['registerPostFixer'](()=>{let _0x52162b=!0x1;const _0x466e81=Array['from'](_0x114340['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4615d4,data:_0x2096ee}of _0x466e81){const {group:_0x3534f8,type:_0x5af834,subType:_0x47d544,id:_0x248a47}=_0x2d0c40['_splitMarkerName'](_0x4615d4);if('suggestion'==_0x3534f8&&_0x2d0c40['hasSuggestion'](_0x248a47)){if('formatBlock'==_0x5af834&&('imageStylePreApply'==_0x47d544||'imageStylePostApply'==_0x47d544)){const _0x6bdb4a=_0x2d0c40['getSuggestion'](_0x248a47);if(_0x2096ee['newRange']){const _0x2472fd=_0x6bdb4a['getFirstRange']()['getContainedElement']();if(_0x3e20c3['isBlockImage'](_0x2472fd))continue;_0x2d0c40['discardSuggestion'](_0x6bdb4a),_0x52162b=!0x0;}}if('insertion'==_0x5af834&&'imageCaption'==_0x47d544&&!_0x2096ee['newRange']){const _0xcc99dc=_0x2d0c40['getSuggestion'](_0x248a47);_0xcc99dc['next']&&_0xcc99dc['next']['isInContent']&&(_0x2d0c40['discardSuggestion'](_0xcc99dc['next']),_0x52162b=!0x0);}}}return _0x52162b;}),this['_registerLegacyDescription'](_0x9f1093);}['_registerLegacyDescription'](_0x34f6a9){const _0x2a870e=this['editor'],_0x259ed5=_0x2a870e['locale'];_0x2a870e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5acfaa=>{if('formatBlock'!=_0x5acfaa['type']&&'formatInline'!=_0x5acfaa['type'])return;const {data:_0x378b6a}=_0x5acfaa;if(!_0x378b6a||'imageStyle'!=_0x378b6a['commandName'])return;const _0x291864=_0x378b6a['commandParams'][0x0]['value'];return _0x1bcda3('side'===_0x291864?c(_0x259ed5,'FORMAT_SIDE_IMAGE'):_0x34f6a9[_0x291864]||_0x291864);function _0x1bcda3(_0x3ab96e){return{'type':'format','content':c(_0x259ed5,'*Format:*\x20%0',_0x3ab96e)};}});}}class ut extends _0x2fff63{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x6f3162){super(_0x6f3162),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2f66f4=this['editor'],_0x5392c9=_0x2f66f4['commands']['get']('importWord'),_0x4a0cb6=_0x2f66f4['commands']['get']('trackChanges');_0x5392c9&&(_0x5392c9['on']('execute',(_0x20790a,[,_0x177051])=>{this['_trackChangesValueDuringImport']=_0x4a0cb6['value'],_0x177051['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5392c9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5392c9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4a0cb6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2f66f4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x411c1c,_0x5cfcc9){const {suggestions:_0x807e27}=_0x5cfcc9,_0x5f330a=this['editor']['commands']['get']('trackChanges'),_0x2c13cd=_0x5f330a['value'];this['_trackChangesValueDuringImport']!==_0x2c13cd&&(_0x5f330a['execute'](),this['_trackChangesExecuted']=!0x0),_0x807e27&&_0x807e27['forEach'](({id:_0x2be7b7,type:_0x2926b1,author:_0x40da6e,created_at:_0x2654c0})=>{const _0x213c4c={'id':_0x2be7b7,'type':_0x2926b1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x40da6e,'createdAt':_0x2654c0?new Date(_0x2654c0):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x213c4c);});}}class ft extends _0x2fff63{['afterInit'](){const _0x22d0fc=this['editor'],_0x2a2389=_0x22d0fc['plugins']['get']('TrackChangesEditing');if(_0x22d0fc['plugins']['has']('IndentEditing')&&(_0x2a2389['enableCommand']('indent'),_0x2a2389['enableCommand']('outdent')),_0x22d0fc['plugins']['has']('IndentBlock')){for(const _0x4476b0 of['indentBlock','outdentBlock'])_0x2a2389['enableDefaultAttributesIntegration'](_0x4476b0);}const _0x5e2e00=_0x22d0fc['locale'];_0x2a2389['registerBlockAttribute']('blockIndent'),_0x2a2389['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5e2e00,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x319d9c=this['editor'],_0x723f79=_0x319d9c['locale'],_0x29814c=_0x319d9c['plugins']['get']('TrackChangesEditing');_0x29814c['descriptionFactory']['registerDescriptionCallback'](_0x69a3d3=>{if('formatBlock'!=_0x69a3d3['type'])return;const {data:_0x5bed2e}=_0x69a3d3;if(!_0x5bed2e)return;if('indentBlock'!=_0x5bed2e['commandName']&&'outdentBlock'!=_0x5bed2e['commandName'])return;const _0x4634a8=_0x69a3d3['getItems']()[0x0],_0x570be0=_0x29814c['descriptionFactory']['getItemLabel'](_0x4634a8);return'indentBlock'==_0x5bed2e['commandName']?{'type':'format','content':c(_0x723f79,'*Indent:*\x20%0',_0x570be0)}:'outdentBlock'==_0x5bed2e['commandName']?{'type':'format','content':c(_0x723f79,'*Outdent:*\x20%0',_0x570be0)}:void 0x0;});}}class ht extends _0x2fff63{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2fff63{['afterInit'](){const _0xfd7a2b=this['editor'];if(!_0xfd7a2b['plugins']['has']('LinkEditing'))return;const _0x5dcba0=_0xfd7a2b['plugins']['get']('TrackChangesEditing'),_0x52df3a=_0xfd7a2b['commands']['get']('link');_0x5dcba0['enableDefaultAttributesIntegration']('link'),_0x5dcba0['enableDefaultAttributesIntegration']('unlink'),_0x5dcba0['registerInlineAttribute']('linkHref');for(const _0x36c2c5 of _0x52df3a['manualDecorators'])_0x5dcba0['registerInlineAttribute'](_0x36c2c5['id']),_0x5dcba0['descriptionFactory']['registerAttributeLabel'](_0x36c2c5['id'],'link\x20('+_0x36c2c5['label']['toLowerCase']()+')');_0x5dcba0['descriptionFactory']['registerDescriptionCallback'](_0x287e5a=>{if('attribute'!=_0x287e5a['type'])return;const {data:_0x59e3ba}=_0x287e5a;if(!_0x59e3ba||'linkHref'!=_0x59e3ba['key'])return;const _0x368f15=_0x59e3ba['newValue'],_0x277ad3=_0xfd7a2b['locale'];return{'type':'format','content':null==_0x368f15?c(_0x277ad3,'*Remove\x20link*'):c(_0x277ad3,'*Set\x20link:*\x20%0','\x22'+_0x368f15+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c781c=this['editor'],_0x187f20=_0x1c781c['locale'];_0x1c781c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x288b63=>{if('formatInline'!=_0x288b63['type'])return;const {data:_0x2dcdee}=_0x288b63;if(_0x2dcdee){if('link'==_0x2dcdee['commandName']){const _0x5c5923=_0x2dcdee['commandParams'][0x0];return{'type':'format','content':c(_0x187f20,'*Set\x20link:*\x20%0','\x22'+_0x5c5923+'\x22')};}return'unlink'==_0x2dcdee['commandName']?{'type':'format','content':c(_0x187f20,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2fff63{['afterInit'](){const _0x2cfde8=this['editor'],_0x3ed8d0=_0x2cfde8['locale'];if(!_0x2cfde8['plugins']['has']('LegacyListEditing'))return;const _0x20e1c1=_0x2cfde8['plugins']['get']('TrackChangesEditing'),_0x379489=_0x2cfde8['plugins']['has']('LegacyTodoListEditing');function _0x305dab(_0x30bdc7){return()=>{const _0x41c4dc=_0x2cfde8['model']['document']['selection'],_0x3daa09=_0x2cfde8['commands']['get'](_0x30bdc7);if(_0x3daa09['value'])return void _0x2cfde8['execute']('paragraph',{});const _0x51541a=_0x30bdc7['slice'](0x0,-0x4),_0x1c34ce=function(_0x2d50ff,_0x1b93bc,_0x4bc8ac){let _0x11c178=Array['from'](_0x2d50ff)['filter'](_0x2d9aaf=>function(_0x2e4089,_0x21d8d8){return _0x21d8d8['checkChild'](_0x2e4089['parent'],'listItem')&&!_0x21d8d8['isObject'](_0x2e4089);}(_0x2d9aaf,_0x4bc8ac));_0x11c178=_0x11c178['filter'](_0x10953a=>!_0x10953a['is']('element','listItem')||_0x10953a['getAttribute']('listType')!=_0x1b93bc);const _0x3984d5=new Set();for(const _0x2cadf6 of _0x11c178)_0x2cadf6['is']('element','listItem')?_0x3984d5['add'](Le(_0x2cadf6)):_0x3984d5['add'](_0x2cadf6);return Array['from'](_0x3984d5);}(_0x41c4dc['getSelectedBlocks'](),_0x51541a,_0x2cfde8['model']['schema']);_0x2cfde8['model']['change'](()=>{for(const _0x3e63fe of _0x1c34ce)_0x20e1c1['markBlockFormat'](_0x3e63fe,{'commandName':_0x30bdc7,'commandParams':[{'forceValue':!_0x3daa09['value']}],'formatGroupId':'blockName'},Ee(_0x3e63fe));});};}function _0x43a58d(_0x31679a){return()=>{const _0xe4aba2=function(_0x4f4246){let _0x2cbe05=Array['from'](_0x4f4246);const _0x5ba05d=_0x2cbe05['findIndex'](_0x28500a=>'listItem'!=_0x28500a['name']);return _0x5ba05d>-0x1&&(_0x2cbe05=_0x2cbe05['slice'](0x0,_0x5ba05d)),_0x2cbe05;}(_0x2cfde8['model']['document']['selection']['getSelectedBlocks']()),_0x47a948=_0x2cfde8['model']['createRange'](_0x2cfde8['model']['createPositionAt'](_0xe4aba2[0x0],'before'),_0x2cfde8['model']['createPositionAt'](_0xe4aba2[_0xe4aba2['length']-0x1],'end'));_0x2cfde8['model']['change'](()=>{_0x20e1c1['markBlockFormat'](_0x47a948,{'commandName':_0x31679a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x45a57b){const _0x5d1b05=new Set();for(const _0x116fe4 of _0x45a57b){let _0x119d93=_0x116fe4['nextSibling'];for(;_0x119d93&&_0x119d93['getAttribute']('listIndent')>_0x116fe4['getAttribute']('listIndent');)_0x5d1b05['add'](_0x119d93),_0x119d93=_0x119d93['nextSibling'];}return Array['from'](_0x5d1b05);}(_0xe4aba2));});};}_0x20e1c1['enableCommand']('numberedList',_0x305dab('numberedList')),_0x20e1c1['enableCommand']('bulletedList',_0x305dab('bulletedList')),_0x379489&&_0x20e1c1['enableCommand']('todoList',_0x305dab('todoList')),_0x20e1c1['enableCommand']('indentList',_0x43a58d('indentList')),_0x20e1c1['enableCommand']('outdentList',_0x43a58d('outdentList')),_0x379489&&_0x20e1c1['enableCommand']('checkTodoList',()=>{const _0x46072c=_0x2cfde8['commands']['get']('checkTodoList'),_0x1714f2=Array['from'](_0x46072c['_selectedElements']);_0x1714f2['filter'](_0x961892=>_0x961892['getAttribute']('todoListChecked')!=_0x46072c['value']),_0x2cfde8['model']['change'](()=>{for(const _0x5a31e6 of _0x1714f2)_0x20e1c1['markBlockFormat'](_0x5a31e6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x46072c['value']}]});});}),_0x20e1c1['descriptionFactory']['registerElementLabel']('listItem',_0x49c48c=>c(_0x3ed8d0,'ELEMENT_LIST_ITEM',_0x49c48c)),_0x20e1c1['descriptionFactory']['registerDescriptionCallback'](_0x552185=>{if('formatBlock'!=_0x552185['type']&&'formatInline'!=_0x552185['type'])return;const {data:_0x5cb7ce}=_0x552185;if(_0x5cb7ce){if('numberedList'==_0x5cb7ce['commandName']||'bulletedList'==_0x5cb7ce['commandName']||'todoList'==_0x5cb7ce['commandName'])switch(_0x5cb7ce['commandName']['replace']('List','')){case'bulleted':return _0x484d86(c(_0x3ed8d0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x484d86(c(_0x3ed8d0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x484d86(c(_0x3ed8d0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5cb7ce['commandName'])return{'type':'format','content':c(_0x3ed8d0,'*Indent:*\x20%0',c(_0x3ed8d0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5cb7ce['commandName'])return{'type':'format','content':c(_0x3ed8d0,'*Outdent:*\x20%0',c(_0x3ed8d0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5cb7ce['commandName'])return _0x5cb7ce['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3ed8d0,'*Check\x20item*')}:{'type':'format','content':c(_0x3ed8d0,'*Uncheck\x20item*')};}function _0x484d86(_0x52199e){return{'type':'format','content':c(_0x3ed8d0,'*Change\x20to:*\x20%0',_0x52199e)};}});}}function Le(_0x237ab7){const _0x171b98=_0x237ab7['getAttribute']('listIndent');if(0x0==_0x171b98)return _0x237ab7;let _0x340ab6=_0x237ab7;for(;_0x237ab7['previousSibling']&&_0x237ab7['previousSibling']['is']('element','listItem');){const _0x1e570e=_0x237ab7['previousSibling']['getAttribute']('listIndent');if(_0x1e570e==_0x171b98)_0x340ab6=_0x237ab7['previousSibling'];else{if(_0x1e570e<_0x171b98)break;}_0x237ab7=_0x237ab7['previousSibling'];}return _0x340ab6;}function Ee(_0x3a968c){const _0xf2618e=[];if(_0x3a968c['is']('element','listItem')&&_0x3a968c['getAttribute']('listIndent')>0x0){let _0x1d94be=_0x3a968c['nextSibling'];for(;_0x1d94be&&'listItem'==_0x1d94be['name']&&_0x1d94be['getAttribute']('listIndent')==_0x3a968c['getAttribute']('listIndent');)_0xf2618e['push'](_0x1d94be),_0x1d94be=_0x1d94be['nextSibling'];}return _0xf2618e;}class Q extends _0x2fff63{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x24fa94=this['editor']['config']['get']('list.properties'),_0x57cdd5=this['editor']['plugins']['get']('TrackChangesEditing');_0x24fa94['styles']&&_0x57cdd5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x24fa94['reversed']&&_0x57cdd5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x24fa94['startIndex']&&_0x57cdd5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x57cdd5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x337aaa,_0x44f496={}){const _0x151d55=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ce8d9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x151d55['markMultiRangeBlockFormat'](_0x1ce8d9,{'commandName':'listStyle','commandParams':[{'type':_0x44f496['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x16fb16,_0x28bca4={}){const _0x55b23b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x784d21=this['_getSuggestionBlocks'](_0x3208bf=>_0x3208bf['is']('element','listItem')&&'numbered'===_0x3208bf['getAttribute']('listType'));if(_0x784d21['length']<0x1)return;const _0x1cc999=_0x784d21['map'](_0x952ae=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x952ae,'before'),this['editor']['model']['createPositionAt'](_0x952ae,0x0)));this['editor']['model']['change'](()=>{_0x55b23b['markMultiRangeBlockFormat'](_0x1cc999,{'commandName':'listReversed','commandParams':[{'reversed':_0x28bca4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xe758af,_0x47d24b={}){const _0x3fd386=this['editor']['plugins']['get']('TrackChangesEditing'),_0x119f99=this['_getSuggestionBlocks'](_0x16ce20=>_0x16ce20['is']('element','listItem')&&'numbered'===_0x16ce20['getAttribute']('listType'));if(_0x119f99['length']<0x1)return;const _0x91ccfb=_0x119f99['map'](_0x37037b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37037b,'before'),this['editor']['model']['createPositionAt'](_0x37037b,0x0)));this['editor']['model']['change'](()=>{_0x3fd386['markMultiRangeBlockFormat'](_0x91ccfb,{'commandName':'listStart','commandParams':[{'startIndex':_0x47d24b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1eee79){if('formatBlock'!=_0x1eee79['type']&&'formatInline'!=_0x1eee79['type'])return;const _0x15087e=this['editor']['locale'],{data:_0x2fa120}=_0x1eee79;if(!_0x2fa120)return;let _0xac67ae,_0x495ab7;switch(_0x2fa120['commandName']){case'listStyle':_0xac67ae='*Change\x20to:*\x20%0',_0x495ab7={'type':'format','content':c(_0x15087e,_0xac67ae,c(_0x15087e,this['_getTranslationKeyForListStyle'](_0x2fa120['commandParams'][0x0]['type'])))};break;case'listReversed':_0xac67ae=_0x2fa120['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x495ab7={'type':'format','content':c(_0x15087e,_0xac67ae)};break;case'listStart':_0xac67ae='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x495ab7={'type':'format','content':c(_0x15087e,_0xac67ae,_0x2fa120['commandParams'][0x0]['startIndex'])};}return _0x495ab7;}['_getSuggestionBlocksForListStyle'](){const _0x15e48b=this['editor']['plugins']['get']('LegacyListUtils');let _0xa80561=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xa80561[0x0]?.['is']('element','listItem')&&_0xa80561['unshift'](..._0x15e48b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xa80561[_0xa80561['length']-0x1]?.['is']('element','listItem')&&_0xa80561['push'](..._0x15e48b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xa80561=[...new Set(_0xa80561)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xa80561=_0xa80561['filter'](_0x10bcd8=>_0x10bcd8['is']('element','listItem'))),_0xa80561;}['_getSuggestionBlocks'](_0x3fd826){const _0x4cdc11=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bc051=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3fd826)['map'](_0x3d5897=>{const _0x2b1381=this['editor']['model']['createPositionAt'](_0x3d5897,0x0);return[..._0x4cdc11['getSiblingNodes'](_0x2b1381,'backward'),..._0x4cdc11['getSiblingNodes'](_0x2b1381,'forward')];})['flat']();return _0x2bc051=[...new Set(_0x2bc051)],_0x2bc051;}['_getTranslationKeyForListStyle'](_0x1d0294){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1d0294)||'default')['toUpperCase']()+'_LIST_'+_0x1d0294['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2fff63{['afterInit'](){const _0x2ef512=this['editor'];if(!_0x2ef512['plugins']['has']('MediaEmbedEditing'))return;const _0xa8e89e=_0x2ef512['plugins']['get']('TrackChangesEditing'),_0x71f254=_0x2ef512['locale'];_0xa8e89e['enableCommand']('mediaEmbed'),_0xa8e89e['descriptionFactory']['registerElementLabel']('media',_0x2483ab=>c(_0x71f254,'ELEMENT_MEDIA',_0x2483ab)),_0x2ef512['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4c45f9,{writer:_0x514904,options:_0x40a6ee})=>{if(_0x40a6ee['showSuggestionHighlights'])return _0x514904['createEmptyElement']('div');},'converterPriority':'high'}),_0x2ef512['data']['downcastDispatcher']['on']('attribute:url:media',(_0x17fcbd,_0x10170c,_0xe577c3)=>{_0xe577c3['options']['showSuggestionHighlights']&&_0x17fcbd['stop']();},{'priority':'high'});}}class pt extends _0x2fff63{['afterInit'](){const _0x31a8ae=this['editor'];_0x31a8ae['plugins']['has']('MentionEditing')&&_0x31a8ae['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2fff63{['afterInit'](){const _0x5b9c15=this['editor'];if(!_0x5b9c15['plugins']['has']('MergeFieldsEditing'))return;const _0x266a7f=_0x5b9c15['plugins']['get']('TrackChangesEditing'),_0x415eac=_0x5b9c15['locale'];_0x266a7f['enableCommand']('insertMergeField'),_0x266a7f['enableCommand']('insertMergeFieldBlock'),_0x266a7f['enableCommand']('insertMergeFieldImage'),_0x266a7f['descriptionFactory']['registerElementLabel']('mergeField',_0x160bdf=>c(_0x415eac,'ELEMENT_MERGE_FIELD',_0x160bdf)),_0x266a7f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2c819f=>c(_0x415eac,'ELEMENT_MERGE_FIELD',_0x2c819f)),_0x266a7f['descriptionFactory']['registerDescriptionCallback'](_0x18df3b=>{if('insertion'!=_0x18df3b['type']&&'deletion'!=_0x18df3b['type'])return;const _0x11c2cd=_0x18df3b['getContainedElement']();if(null==_0x11c2cd)return;const _0x3585a3=_0x5b9c15['plugins']['get']('MergeFieldsEditing');let _0x29d8c6;switch(_0x3585a3['getMergeFieldType'](_0x11c2cd)){case null:return;case'image':{const _0x54e3bd=_0x3585a3['unwrapAffixes'](_0x11c2cd['getAttribute']('src'));_0x29d8c6=_0x3585a3['getLabel'](_0x54e3bd)||_0x54e3bd;break;}default:{const _0x247024=_0x11c2cd['getAttribute']('id');_0x29d8c6=_0x3585a3['getLabel'](_0x247024)||_0x247024;break;}}return'insertion'==_0x18df3b['type']?{'type':'insertion','content':c(_0x415eac,'*Insert:*\x20%0','\x22'+_0x29d8c6+'\x22\x20'+c(_0x415eac,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x415eac,'*Remove:*\x20%0','\x22'+_0x29d8c6+'\x22\x20'+c(_0x415eac,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2fff63{['afterInit'](){const _0x384c1e=this['editor'],_0x315284=_0x384c1e['plugins']['get']('TrackChangesEditing');_0x384c1e['plugins']['has']('MultiLevelList')&&(_0x315284['enableDefaultAttributesIntegration']('multiLevelList'),_0x315284['registerBlockAttribute']('listMarkerStyle'),_0x315284['descriptionFactory']['registerDescriptionCallback'](_0xad53aa=>this['handleDescriptions'](_0xad53aa)));}['handleDescriptions'](_0xaecae6){const _0x909da5=this['editor']['locale'],{data:_0x150ea3}=_0xaecae6,_0x415609={'type':'format','content':''};if(_0x150ea3&&'listMarkerStyle'==_0x150ea3['key']){if(!_0x150ea3['oldValue'])return{'type':'format','content':c(_0x909da5,'*Set\x20format:*\x20%0',c(_0x909da5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x150ea3['newValue']+')'};if(!_0x150ea3['newValue']){let _0x4bbe33=_0xaecae6['head'];for(;_0x4bbe33;){if(_0x4bbe33['data']&&'listType'==_0x4bbe33['data']['key']&&_0x4bbe33['data']['newValue'])return _0x415609;_0x4bbe33=_0x4bbe33['next'];}return{'type':'format','content':c(_0x909da5,'*Remove\x20format:*\x20%0',c(_0x909da5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x150ea3['oldValue']+')'};}}}}class bt extends _0x2fff63{['afterInit'](){const _0x440414=this['editor'];if(!_0x440414['plugins']['has']('PageBreakEditing'))return;_0x440414['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x25f051=_0x440414['plugins']['get']('TrackChangesEditing'),_0x3276eb=_0x440414['locale'];_0x25f051['descriptionFactory']['registerElementLabel']('pageBreak',_0x1b19fd=>c(_0x3276eb,'ELEMENT_PAGE_BREAK',_0x1b19fd));}}class yt extends _0x2fff63{['afterInit'](){const _0x2b3528=this['editor'];if(!_0x2b3528['plugins']['has']('Paragraph'))return;const _0xb76b80=_0x2b3528['locale'],_0x3c316c=_0x2b3528['plugins']['get']('TrackChangesEditing');_0x3c316c['descriptionFactory']['registerElementLabel']('paragraph',_0x331bd4=>c(_0xb76b80,'ELEMENT_PARAGRAPH',_0x331bd4)),_0x3c316c['enableDefaultAttributesIntegration']('paragraph'),_0x3c316c['enableCommand']('insertParagraph'),_0x2b3528['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2b3528),{'priority':'highest'}),_0x2b3528['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15ffc3,_0x5b0619,_0x21c3ea)=>{_0x21c3ea['options']['showSuggestionHighlights']&&nr(_0x2b3528,{'showActiveMarker':!0x1})(_0x15ffc3,_0x5b0619,_0x21c3ea);},{'priority':'highest'});const _0x6cf649=_0x3c316c['descriptionFactory'];_0x6cf649['registerDescriptionCallback'](_0x209384=>{if('insertion'!==_0x209384['type'])return;const {start:_0x2fea6a,end:_0x3481a9}=_0x209384['getFirstRange']();if(!_0x2fea6a['isTouching'](_0x3481a9)||!_0x2fea6a['nodeAfter'])return;const _0x388006=_0x2b3528['model']['schema'],_0x549eee=_0x2fea6a['nodeAfter'];return _0x388006['isBlock'](_0x549eee)&&!_0x388006['isLimit'](_0x549eee)&&_0x388006['checkChild'](_0x549eee,'$text')?{'type':'insertion','content':c(_0xb76b80,'*Insert:*\x20%0',_0x6cf649['getItemLabel'](_0x549eee,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27b4b6=this['editor'],_0x514f22=_0x27b4b6['locale'];_0x27b4b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x975b79=>{if('formatBlock'!=_0x975b79['type'])return;const {data:_0x471590}=_0x975b79;return _0x471590&&'paragraph'==_0x471590['commandName']?{'type':'format','content':c(_0x514f22,'*Change\x20to:*\x20%0',c(_0x514f22,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x43d8ea,{showActiveMarker:_0xa08df0=!0x0}={}){return(_0x1d6ecb,_0x3eb1cf,_0x12aa1a)=>{const _0x51bf4f=_0x43d8ea['plugins']['get']('TrackChangesEditing'),_0x2888d1=_0x3eb1cf['markerRange']['start'],_0x760f1=_0x3eb1cf['markerRange']['end'],_0x5aac1b=_0x43d8ea['model']['schema'];if(!_0x2888d1['isTouching'](_0x760f1)||!_0x2888d1['nodeAfter'])return;const _0x4b41bd=_0x2888d1['nodeAfter'];if(_0x5aac1b['isBlock'](_0x4b41bd)&&!_0x5aac1b['isLimit'](_0x4b41bd)&&_0x5aac1b['checkChild'](_0x4b41bd,'$text')){if(!_0x12aa1a['consumable']['consume'](_0x3eb1cf['markerRange'],_0x1d6ecb['name']))return;const {authorId:_0x4afc39}=_0x51bf4f['_splitMarkerName'](_0x3eb1cf['markerName']),_0x3c4adc=_0x12aa1a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4afc39}),_0x259011=_0x12aa1a['mapper']['toViewPosition'](_0x760f1);_0xa08df0&&_0x51bf4f['activeMarkers']['includes'](_0x3eb1cf['markerName'])&&_0x12aa1a['writer']['addClass']('ck-suggestion-marker--active',_0x3c4adc),_0x12aa1a['writer']['insert'](_0x259011,_0x3c4adc),_0x12aa1a['mapper']['bindElementToMarker'](_0x3c4adc,_0x3eb1cf['markerName']);}};}class jt extends _0x2fff63{['afterInit'](){const _0x22c38e=this['editor'];_0x22c38e['commands']['get']('replaceSource')&&_0x22c38e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2fff63{['afterInit'](){const _0x216eaf=this['editor'];if(!_0x216eaf['plugins']['has']('RemoveFormatEditing'))return;_0x216eaf['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a5a4d=this['editor'];_0x1a5a4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d79c9=>{if('formatBlock'!=_0x1d79c9['type']&&'formatInline'!=_0x1d79c9['type'])return;const {data:_0x2b3fec}=_0x1d79c9;return _0x2b3fec&&'removeFormat'==_0x2b3fec['commandName']?{'type':'format','content':c(_0x1a5a4d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2fff63{['afterInit'](){const _0x2b4b27=this['editor'];if(!_0x2b4b27['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x27fbd0=_0x2b4b27['plugins']['get']('TrackChangesEditing');_0x27fbd0['enableCommand']('goToPreviousRestrictedEditingException'),_0x27fbd0['enableCommand']('goToNextRestrictedEditingException');const _0x4bb409=_0x2b4b27['plugins']['get']('RestrictedEditingModeEditing');_0x4bb409['enableCommand']('trackChanges'),_0x4bb409['enableCommand']('acceptSuggestion'),_0x4bb409['enableCommand']('discardSuggestion'),_0x4bb409['enableCommand']('acceptAllSuggestions'),_0x4bb409['enableCommand']('discardAllSuggestions'),_0x4bb409['enableCommand']('acceptSelectedSuggestions'),_0x4bb409['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2fff63{static get['requires'](){return[_0x11cac9];}['init'](){const _0x2dcb1f=this['editor'],_0x169c81=_0x2dcb1f['plugins']['get']('TrackChangesEditing');_0x169c81['enableCommand']('shiftEnter'),_0x2dcb1f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2dcb1f),{'priority':'high'}),_0x2dcb1f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2dcb1f),{'priority':'high'}),_0x2dcb1f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f8af0,_0x18450e,_0x4c089c)=>{_0x4c089c['options']['showSuggestionHighlights']&&je(_0x2dcb1f,{'showActiveMarker':!0x1})(_0x2f8af0,_0x18450e,_0x4c089c);}),_0x169c81['descriptionFactory']['registerElementLabel']('softBreak',_0x2b3164=>c(_0x2dcb1f['locale'],'ELEMENT_LINE_BREAK',_0x2b3164));}}function je(_0x5e39a8,{showActiveMarker:_0x3ef1f7=!0x0}={}){return(_0x47b78a,_0x401107,_0x59a966)=>{const _0x2259fe=_0x5e39a8['plugins']['get']('TrackChangesEditing');if(!_0x59a966['consumable']['test'](_0x401107['markerRange'],_0x47b78a['name']))return;const _0x404fcd=_0x5e39a8['model'];for(const _0x31b7f2 of _0x401107['markerRange']['getItems']()){if(!_0x31b7f2['is']('element','softBreak'))continue;const _0x2ec8e7='deletion'==_0x401107['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x503efb}=_0x2259fe['_splitMarkerName'](_0x401107['markerName']),_0x3fcce2=_0x59a966['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ec8e7,'data-author-id':_0x503efb}),_0xf6a3b8=_0x59a966['mapper']['toViewPosition'](_0x404fcd['createPositionBefore'](_0x31b7f2));_0x3ef1f7&&_0x2259fe['activeMarkers']['includes'](_0x401107['markerName'])&&_0x59a966['writer']['addClass']('ck-suggestion-marker--active',_0x3fcce2),_0x59a966['writer']['insert'](_0xf6a3b8,_0x3fcce2),_0x59a966['mapper']['bindElementToMarker'](_0x3fcce2,_0x401107['markerName']);}};}class _t extends _0x2fff63{['afterInit'](){const _0x384b62=this['editor'],_0xfdec5b=_0x384b62['model'],_0x344d23=_0x384b62['locale'];if(!_0x384b62['plugins']['has']('StandardEditingModeEditing'))return;const _0xcd5daf=_0x384b62['plugins']['get']('TrackChangesEditing'),_0x56f559='restrictedEditingException',_0x1c3059=_0x384b62['commands']['get'](_0x56f559);_0xcd5daf['enableCommand'](_0x56f559,(_0x3b9f56,_0x2d62ae={})=>{const _0x27b230=_0xfdec5b['document']['selection'];if(_0x27b230['isCollapsed'])return void _0x3b9f56(_0x2d62ae);const _0x50e9a6=void 0x0!==_0x2d62ae['forceValue']?_0x2d62ae['forceValue']:!_0x1c3059['value'];_0xfdec5b['change'](()=>{const _0x47caaa=Array['from'](_0x27b230['getRanges']());for(const _0x3bb1fc of _0x47caaa){const _0x3a646c=_0x50e9a6?[_0x3bb1fc]:io(_0x56f559,_0x3bb1fc,_0xfdec5b);for(const _0x5b7674 of _0x3a646c)_0xcd5daf['markInlineFormat'](_0x5b7674,{'commandName':_0x56f559,'commandParams':[{'forceValue':_0x50e9a6}]});}});}),_0xcd5daf['descriptionFactory']['registerDescriptionCallback'](_0x3bbae7=>{if('formatBlock'!=_0x3bbae7['type']&&'formatInline'!=_0x3bbae7['type'])return;const {data:_0x2dafbe}=_0x3bbae7;return _0x2dafbe&&_0x2dafbe['commandName']==_0x56f559?_0x2dafbe['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x344d23,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x344d23,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x2fff63{['afterInit'](){const _0x143ad6=this['editor'];if(!_0x143ad6['plugins']['has']('Style')||!_0x143ad6['plugins']['has']('DataSchema'))return;const _0x7b83c7=_0x143ad6['plugins']['get']('TrackChangesEditing'),_0x175b85=_0x143ad6['locale'],_0x1bb447=_0x143ad6['config']['get']('style')||{},_0x2e00bd=_0x143ad6['plugins']['get']('GeneralHtmlSupport'),_0x4db6af=_0x143ad6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x143ad6['plugins']['get']('DataSchema'),_0x1bb447['definitions']);_0x7b83c7['enableDefaultAttributesIntegration']('style');const _0x81decd=new Set();for(const _0x522afd of _0x4db6af['block']){const _0x38e809=_0x2e00bd['getGhsAttributeNameForElement'](_0x522afd['element']);_0x81decd['add'](_0x38e809);}const _0x5c7f64=new Set();for(const _0x54d528 of _0x4db6af['inline']){const _0x937f4d=_0x2e00bd['getGhsAttributeNameForElement'](_0x54d528['element']);_0x5c7f64['add'](_0x937f4d);for(const _0xb8ea42 of _0x54d528['ghsAttributes'])_0x5c7f64['add'](_0xb8ea42);}for(const _0x15827d of _0x81decd)_0x7b83c7['registerBlockAttribute'](_0x15827d),_0x7b83c7['descriptionFactory']['registerAttributeLabel'](_0x15827d,c(_0x175b85,'FORMAT_STYLE'));for(const _0x72b4eb of _0x5c7f64)_0x7b83c7['registerInlineAttribute'](_0x72b4eb),_0x7b83c7['descriptionFactory']['registerAttributeLabel'](_0x72b4eb,c(_0x175b85,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cfaa4=this['editor'],_0x3d0be4=_0x1cfaa4['locale'];_0x1cfaa4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45c4bd=>{if('formatBlock'!=_0x45c4bd['type']&&'formatInline'!=_0x45c4bd['type'])return;const {data:_0x49a661}=_0x45c4bd;return _0x49a661&&'style'===_0x49a661['commandName']?_0x49a661['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3d0be4,'*Set\x20format:*\x20%0',_0x49a661['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3d0be4,'*Remove\x20format:*\x20%0',_0x49a661['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2fff63{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x122d46){super(_0x122d46),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x50afc6=this['editor'],_0x3cb1a4=_0x50afc6['model']['document']['selection'];if(!_0x50afc6['plugins']['has']('TableEditing'))return;const _0x311ddc=_0x50afc6['locale'],_0x521aba=_0x50afc6['plugins']['get']('TrackChangesEditing'),_0x1c7ad3=_0x50afc6['plugins']['get']('TableUtils');_0x521aba['descriptionFactory']['registerElementLabel']('table',_0x3894cb=>c(_0x311ddc,'ELEMENT_TABLE',_0x3894cb)),this['_setupColumnsRowsFixing'](),_0x521aba['enableCommand']('insertTable'),_0x521aba['enableCommand']('selectTableRow'),_0x521aba['enableCommand']('selectTableColumn');for(const _0x9f008 of['insertTableRowAbove','insertTableRowBelow']){const _0x62f43f=_0x50afc6['commands']['get'](_0x9f008);_0x521aba['enableCommand'](_0x9f008,_0x409b15=>{_0x50afc6['model']['change'](_0x2f487b=>{_0x409b15();const _0x30f8b7='above'===_0x62f43f['order'],_0xd42d6d=_0x1c7ad3['getSelectionAffectedTableCells'](_0x3cb1a4),_0x276837=_0x1c7ad3['getRowIndexes'](_0xd42d6d),_0x2ef048=_0x30f8b7?_0x276837['first']-0x1:_0x276837['last']+0x1,_0x5265ab=_0xd42d6d[0x0]['findAncestor']('table'),_0x123bdb=_0x1c7ad3['createTableWalker'](_0x5265ab,{'startRow':_0x2ef048,'endRow':_0x2ef048}),_0x3512f7=Array['from'](_0x123bdb)['map'](_0x19963c=>_0x2f487b['createRangeOn'](_0x19963c['cell']));_0x521aba['markMultiRangeInsertion'](_0x3512f7,'tableRow');});});}for(const _0x5a1720 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1a4884=_0x50afc6['commands']['get'](_0x5a1720);_0x521aba['enableCommand'](_0x5a1720,_0x29bf6e=>{_0x50afc6['model']['change'](_0xd203e0=>{_0x29bf6e();const _0x13dd1b='left'===_0x1a4884['order'],_0x14b674=_0x1c7ad3['getSelectionAffectedTableCells'](_0x3cb1a4),_0x3e340c=_0x1c7ad3['getColumnIndexes'](_0x14b674),_0x3e6211=_0x13dd1b?_0x3e340c['first']-0x1:_0x3e340c['last']+0x1,_0x70cbee=_0x14b674[0x0]['findAncestor']('table'),_0x20731f=_0x1c7ad3['createTableWalker'](_0x70cbee,{'startRow':0x0,'column':_0x3e6211,'includeAllSlots':!0x1}),_0x1d6bbc=Array['from'](_0x20731f)['map'](_0x572058=>_0xd203e0['createRangeOn'](_0x572058['cell']));_0x521aba['markMultiRangeInsertion'](_0x1d6bbc,'tableColumn');});});}for(const _0x49f3dc of['removeTableRow','removeTableColumn']){const _0x4b324e=_0x49f3dc['substr'](0xb),_0x4f4af1=_0x4b324e['toLowerCase'](),_0x1c2c85=_0x4f4af1['substr'](0x0,0x3)+'span',_0x482ba4='table'+_0x4b324e,_0x5ab81b='min'+_0x4b324e,_0x5023d0='max'+_0x4b324e;_0x521aba['enableCommand'](_0x49f3dc,()=>{_0x50afc6['model']['change'](_0x4654c2=>{const _0x351233=_0x1c7ad3['getSelectionAffectedTableCells'](_0x3cb1a4),_0x35d962=_0x351233[0x0]['findAncestor']('table');let _0x446dd6;if('removeTableRow'==_0x49f3dc){const _0x407a2f=_0x1c7ad3['getRowIndexes'](_0x351233);_0x446dd6={'startRow':_0x407a2f['first'],'endRow':_0x407a2f['last'],'includeAllSlots':!0x0};}else{const _0x5cfe5d=_0x1c7ad3['getColumnIndexes'](_0x351233);_0x446dd6={'startColumn':_0x5cfe5d['first'],'endColumn':_0x5cfe5d['last'],'includeAllSlots':!0x0};}const _0x4b7659=_0x1c7ad3['createTableWalker'](_0x35d962,_0x446dd6),_0xf5b1bb=Array['from'](_0x4b7659)['map'](({cell:_0x375617})=>_0x375617),_0x30a52b=Ne(_0xf5b1bb['filter'](_0x448ba5=>_0x448ba5['hasAttribute'](_0x1c2c85))),_0x2b8d5f=Ne(_0xf5b1bb['filter'](_0x59eb9d=>!_0x59eb9d['hasAttribute'](_0x1c2c85)))['map'](_0x1b1652=>_0x4654c2['createRangeOn'](_0x1b1652)),_0x1a5ee5=_0x521aba['markMultiRangeDeletion'](_0x2b8d5f,_0x482ba4);if(_0x1a5ee5&&('tableRow'==_0x1a5ee5['subType']||'tableColumn'==_0x1a5ee5['subType'])){const _0x5f45e9=this['_getSuggestionCoords'](_0x1a5ee5);for(const _0x41231d of _0x30a52b){const _0x3917c0=_0x4654c2['createRangeOn'](_0x41231d),_0x1af51d=_0x1c7ad3['getCellLocation'](_0x41231d),_0x14d259=_0x41231d['getAttribute'](_0x1c2c85)-0x1,_0x5b3d9d=_0x5f45e9[_0x5ab81b],_0x1fbc42=_0x5f45e9[_0x5023d0];_0x5b3d9d<=_0x1af51d[_0x4f4af1]&&_0x1af51d[_0x4f4af1]+_0x14d259<=_0x1fbc42&&_0x1a5ee5['addRange'](_0x3917c0);}}});});}function _0x1bb402(_0x5cd88b){const _0x514dc4=Array['from'](_0x3cb1a4['getRanges']())['map'](_0xdf1a81=>_0x542068['fromRange'](_0xdf1a81));_0x50afc6['model']['change'](_0x53bcd9=>{const _0x1e0426=_0x53bcd9['batch'];_0x5cd88b=_0x5cd88b['filter'](_0x5a711c=>'$graveyard'!=_0x5a711c['root']['rootName']),_0x53bcd9['setSelection'](_0x5cd88b),_0x50afc6['commands']['get']('removeTableRow')['refresh'](),_0x50afc6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x50afc6['model']['enqueueChange'](()=>{_0x50afc6['model']['enqueueChange'](_0x1e0426,_0x469387=>{const _0x5401a3=_0x514dc4['filter'](_0x2e0803=>'$graveyard'!=_0x2e0803['root']['rootName']);_0x5401a3['length']>0x0&&_0x469387['setSelection'](_0x5401a3);for(const _0x1c683f of _0x514dc4)_0x1c683f['detach']();});});});}function _0x9174d8(_0x1b79fc){_0x50afc6['model']['change'](_0x212120=>{const _0x36c286=Array['from'](_0x3cb1a4['getRanges']())['map'](_0x551eaf=>_0x542068['fromRange'](_0x551eaf)),_0x374703=[];for(const _0x222599 of _0x1b79fc)for(const _0x187ab7 of _0x222599['getItems']({'shallow':!0x0}))_0x374703['push'](_0x187ab7);for(const _0x5a3056 of _0x374703)'$graveyard'!=_0x5a3056['root']['rootName']&&(_0x212120['setSelection'](_0x212120['createPositionAt'](_0x5a3056,0x0)),_0x50afc6['commands']['get']('removeTableColumn')['refresh'](),_0x50afc6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3f740e=_0x36c286['filter'](_0x192855=>'$graveyard'!=_0x192855['root']['rootName']);_0x3f740e['length']>0x0&&_0x212120['setSelection'](_0x3f740e);for(const _0x3cfa55 of _0x36c286)_0x3cfa55['detach']();});}function _0x43146d(_0x3c96b5,_0x23d427){return _0x23d427['every'](_0x5b83d1=>_0x3c96b5['some'](_0x58e28d=>_0x58e28d['end']['isEqual'](_0x5b83d1['start'])||_0x5b83d1['end']['isEqual'](_0x58e28d['start'])));}function _0x361d47(_0x6fda55,_0x15bcd2){return!_0x6fda55['some'](_0x5aadeb=>_0x15bcd2['some'](_0x1ff73a=>_0x5aadeb['isIntersecting'](_0x1ff73a)))&&_0x6fda55['some'](_0x44d9d3=>_0x15bcd2['some'](_0x4330d1=>_0x44d9d3['end']['isTouching'](_0x4330d1['start'])));}_0x50afc6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ac8bd,_0x3f6077,_0x4079dd)=>{if(!_0x4079dd['options']['showSuggestionHighlights'])return;const _0x4b948b=_0x3f6077['item'];if(!_0x4b948b)return;const _0x1cc975=_0x4079dd['mapper']['toViewElement'](_0x4b948b);function _0x886cc1(_0x1a7236){return Array['isArray'](_0x1a7236)?_0x1a7236:[_0x1a7236];}_0x1cc975&&'tableCell'===_0x4b948b['name']&&_0x55923b(_0x1cc975,_0x4079dd['writer'],(_0x1eab35,_0x5567e3,_0x1d91b8)=>_0x1d91b8['addClass'](_0x886cc1(_0x5567e3['classes']),_0x1eab35),(_0x392280,_0x4347cc,_0x183628)=>_0x183628['removeClass'](_0x886cc1(_0x4347cc['classes']),_0x392280));},{'priority':'highest'}),_0x521aba['descriptionFactory']['registerDescriptionCallback'](_0x29f993=>{if('insertion'!=_0x29f993['type']&&'deletion'!=_0x29f993['type'])return;const _0xc2caeb=_0x29f993['getContainedElement']();if(null!=_0xc2caeb&&_0xc2caeb['is']('element','table')){if('insertion'==_0x29f993['type']){const _0x35d35c=_0x29f993['getItems']()['filter'](_0x14de62=>_0x14de62['is']('$textProxy'))['map'](_0x77243e=>_0x77243e['data']);if(_0x35d35c['length'])return{'type':'insertion','content':c(_0x311ddc,'*Insert:*\x20%0',c(_0x311ddc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x35d35c['join']('\x20')+'\x22'))};}if('deletion'==_0x29f993['type']){const _0x2e9bce=_0x29f993['getItems']()['filter'](_0x48178a=>_0x48178a['is']('$textProxy'))['map'](_0x158c1c=>_0x158c1c['data']);if(_0x2e9bce['length'])return{'type':'deletion','content':c(_0x311ddc,'*Remove:*\x20%0',c(_0x311ddc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2e9bce['join']('\x20')+'\x22'))};}}}),_0x521aba['descriptionFactory']['registerDescriptionCallback'](_0x4f3b85=>{if('tableRow'==_0x4f3b85['subType']){const _0x5e2896=_0x4f3b85['getItems']()['filter'](_0x19271c=>_0x19271c['is']('$textProxy'))['map'](_0x12f935=>_0x12f935['data']),_0x4ab78f=this['_getSuggestionCoords'](_0x4f3b85),_0x7295f=_0x4ab78f['maxRow']-_0x4ab78f['minRow']+0x1;if('insertion'==_0x4f3b85['type'])return _0x5e2896['length']?{'type':'insertion','content':c(_0x311ddc,'*Insert:*\x20%0',c(_0x311ddc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x7295f,'\x22'+_0x5e2896['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x311ddc,'*Insert:*\x20%0',c(_0x311ddc,'ELEMENT_TABLE_ROW',_0x7295f))};if('deletion'==_0x4f3b85['type'])return _0x5e2896['length']?{'type':'deletion','content':c(_0x311ddc,'*Remove:*\x20%0',c(_0x311ddc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x7295f,'\x22'+_0x5e2896['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x311ddc,'*Remove:*\x20%0',c(_0x311ddc,'ELEMENT_TABLE_ROW',_0x7295f))};}if('tableColumn'==_0x4f3b85['subType']){const _0x4a5222=_0x4f3b85['getItems']()['filter'](_0x3d0d37=>_0x3d0d37['is']('$textProxy'))['map'](_0x5b1477=>_0x5b1477['data']),_0x48c9a4=this['_getSuggestionCoords'](_0x4f3b85),_0x1d0c43=_0x48c9a4['maxColumn']-_0x48c9a4['minColumn']+0x1;if('insertion'==_0x4f3b85['type'])return _0x4a5222['length']?{'type':'insertion','content':c(_0x311ddc,'*Insert:*\x20%0',c(_0x311ddc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d0c43,'\x22'+_0x4a5222['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x311ddc,'*Insert:*\x20%0',c(_0x311ddc,'ELEMENT_TABLE_COLUMN',_0x1d0c43))};if('deletion'==_0x4f3b85['type'])return _0x4a5222['length']?{'type':'deletion','content':c(_0x311ddc,'*Remove:*\x20%0',c(_0x311ddc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d0c43,'\x22'+_0x4a5222['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x311ddc,'*Remove:*\x20%0',c(_0x311ddc,'ELEMENT_TABLE_COLUMN',_0x1d0c43))};}}),_0x521aba['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1bb402),_0x521aba['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1bb402),_0x521aba['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x9174d8),_0x521aba['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x9174d8),_0x521aba['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x43146d),_0x521aba['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x43146d),_0x521aba['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x361d47),_0x521aba['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x361d47);}['_acceptFormatSuggestionCallbackFactory'](){const _0x9b2757=this['editor'],_0x7cc33a=_0x9b2757['model']['document']['selection'];return(_0x360441,_0x2e4af9)=>{_0x9b2757['model']['change'](_0x26ad5c=>{const {commandName:_0x426c0b,commandParams:_0x1a403d}=_0x2e4af9;let _0x581ee8=_0x360441[0x0]['end']['nodeBefore'];_0x1a403d&&_0x1a403d[0x0]&&!0x1===_0x1a403d[0x0]['forceValue']&&(_0x581ee8=_0x360441[0x0]['start']['nodeAfter']);const _0x2672e6=_0x26ad5c['createRangeIn'](_0x581ee8);if('$graveyard'==_0x2672e6['root']['rootName'])return;const _0x485c10=Array['from'](_0x7cc33a['getRanges']())['map'](_0xd845ed=>_0x542068['fromRange'](_0xd845ed));_0x26ad5c['setSelection'](_0x2672e6),_0x9b2757['commands']['get'](_0x426c0b)['refresh'](),_0x1a403d['push']({'forceDefaultExecution':!0x0}),_0x9b2757['execute'](_0x426c0b,..._0x1a403d);const _0x34fa06=_0x485c10['filter'](_0x1451e2=>'$graveyard'!=_0x1451e2['root']['rootName']);_0x34fa06['length']>0x0&&_0x26ad5c['setSelection'](_0x34fa06);for(const _0x4699b9 of _0x485c10)_0x4699b9['detach']();});};}['_getCoordsForCells'](_0xe47a6){const _0x2aed35=this['editor']['plugins']['get']('TableUtils');let _0x3dd8b3=Number['MAX_SAFE_INTEGER'],_0x10e109=Number['MIN_SAFE_INTEGER'],_0x4c6981=Number['MAX_SAFE_INTEGER'],_0x12f591=Number['MIN_SAFE_INTEGER'];for(const _0x144822 of _0xe47a6){if('$graveyard'==_0x144822['root']['rootName'])continue;const {row:_0x3250d4,column:_0x279b51}=_0x2aed35['getCellLocation'](_0x144822),_0x349053=_0x144822['hasAttribute']('rowspan')?_0x144822['getAttribute']('rowspan')-0x1:0x0,_0xee6a49=_0x144822['hasAttribute']('colspan')?_0x144822['getAttribute']('colspan')-0x1:0x0;_0x3dd8b3=_0x3250d4<_0x3dd8b3?_0x3250d4:_0x3dd8b3,_0x10e109=_0x3250d4+_0x349053>_0x10e109?_0x3250d4+_0x349053:_0x10e109,_0x4c6981=_0x279b51<_0x4c6981?_0x279b51:_0x4c6981,_0x12f591=_0x279b51+_0xee6a49>_0x12f591?_0x279b51+_0xee6a49:_0x12f591;}return{'minRow':_0x3dd8b3,'maxRow':_0x10e109,'minColumn':_0x4c6981,'maxColumn':_0x12f591};}['_setupColumnsRowsFixing'](){const _0x1e2efe=this['editor'],_0x3709fd=_0x1e2efe['plugins']['get']('TrackChangesEditing'),_0x436f16=_0x1e2efe['plugins']['get']('TableUtils');_0x1e2efe['model']['document']['on']('change:data',()=>{const _0x4cd29a=Array['from'](_0x1e2efe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48c32c,data:_0x10b15b}of _0x4cd29a){const {group:_0x3a8c01,id:_0x547208,subType:_0x46951a}=_0x3709fd['_splitMarkerName'](_0x48c32c);if('suggestion'!=_0x3a8c01)continue;if(null!=_0x10b15b['oldRange'])continue;const _0x1886a2=_0x3709fd['getSuggestion'](_0x547208);this['_tablePostFixingSubtypes']['includes'](_0x46951a)&&this['_tableSuggestions']['add'](_0x1886a2);}},{'priority':'low'});const _0x24a6b9=(_0x5e5c07,_0x5ed203)=>{let _0x4be80a=!0x1;const _0xd3258d=_0x5ed203['createRangeOn'](_0x5e5c07),_0x42ea45=_0x5e5c07['findAncestor']('table'),_0x269f1a=_0x436f16['getCellLocation'](_0x5e5c07);for(const _0x738a51 of this['_tableSuggestions']){const _0x21ad71=_0x738a51['subType'],_0xbe35b1=_0x21ad71['startsWith']('tablePaste'),_0x2e23fe=_0x21ad71['substr'](_0xbe35b1?0xa:0x5),_0x197969=_0x2e23fe['toLowerCase'](),_0x366c62=_0x197969['substr'](0x0,0x3)+'span',_0x32cc9c='min'+_0x2e23fe,_0x256e81='max'+_0x2e23fe;if(!_0x738a51['isInContent'])continue;if(_0x42ea45!=_0x738a51['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x738a51['isIntersectingWithRange'](_0xd3258d))continue;const _0x4042ef=_0x5e5c07['hasAttribute'](_0x366c62)?_0x5e5c07['getAttribute'](_0x366c62)-0x1:0x0,_0x2d7054=this['_getSuggestionCoords'](_0x738a51),_0x2e40c7=_0x2d7054[_0x32cc9c],_0x482c4f=_0x2d7054[_0x256e81];_0x2e40c7<=_0x269f1a[_0x197969]&&_0x269f1a[_0x197969]+_0x4042ef<=_0x482c4f&&(_0x738a51['addRange'](_0xd3258d),_0x4be80a=!0x0);}return _0x4be80a;};_0x1e2efe['model']['document']['registerPostFixer'](_0x36279f=>{let _0x13d076=!0x1;for(const _0x5339b8 of _0x1e2efe['model']['document']['differ']['getChanges']())if('insert'==_0x5339b8['type']){if('tableRow'==_0x5339b8['name']){for(const _0x1aa197 of _0x5339b8['position']['nodeAfter']['getChildren']())_0x13d076=_0x13d076||_0x24a6b9(_0x1aa197,_0x36279f);}else'tableCell'==_0x5339b8['name']&&(_0x13d076=_0x13d076||_0x24a6b9(_0x5339b8['position']['nodeAfter'],_0x36279f));}return _0x13d076;});}['_getSuggestionCoords'](_0x2658da){return this['_getCoordsForCells'](_0x2658da['getRanges']()['map'](_0x2dde18=>_0x2dde18['start']['nodeAfter']));}}function Ne(_0xe23b20){return Array['from'](new Set(_0xe23b20)['values']());}class Nt extends _0x2fff63{static get['requires'](){return[Ct];}['afterInit'](){const _0x1f2389=this['editor'],_0x4efe25=_0x1f2389['model']['document']['selection'],_0x2da548=_0x1f2389['locale'];if(!_0x1f2389['plugins']['has']('TableEditing'))return;const _0x2010af=_0x1f2389['plugins']['get']('TrackChangesEditing'),_0x24c960=_0x1f2389['plugins']['get']('TableUtils'),_0x5a1e38=_0x1f2389['plugins']['get'](Ct);_0x5a1e38['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2010af['enableCommand']('mergeTableCells',()=>{const _0x159731=_0x24c960['getSelectionAffectedTableCells'](_0x1f2389['model']['document']['selection']);_0x1f2389['model']['change'](()=>{_0x2010af['markMultiRangeBlockFormat'](_0x159731,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1f2389['commands']['get']('mergeTableCells')['on']('execute',(_0x41f7d9,_0x41e2cc)=>{_0x1f2389['commands']['get']('trackChanges')['value']&&(_0x41e2cc['length']>0x0&&_0x41e2cc[_0x41e2cc['length']-0x1]&&_0x41e2cc[_0x41e2cc['length']-0x1]['forceDefaultExecution']||_0x2010af['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x41f7d9['stop']());},{'priority':'highest'});for(const _0x9c4da9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x62b9d9=_0x1f2389['commands']['get'](_0x9c4da9);_0x2010af['enableCommand'](_0x9c4da9,()=>{const _0x1134c7=_0x1f2389['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e4c62=>_0x3e4c62['is']('element','tableCell')),_0xd98e8a=_0x62b9d9['value'];_0x1f2389['model']['change'](()=>{_0x2010af['markMultiRangeBlockFormat']([_0x1134c7,_0xd98e8a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3faffe of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3a3089=_0x1f2389['commands']['get'](_0x3faffe);_0x2010af['enableCommand'](_0x3faffe,()=>{const _0x13645b=_0x24c960['getSelectionAffectedTableCells'](_0x1f2389['model']['document']['selection'])[0x0],_0x1a5f26=_0x13645b['findAncestor']('table'),{column:_0x484f95,row:_0xe5691b}=_0x24c960['getCellLocation'](_0x13645b);let _0x395301=[];if('horizontally'==_0x3a3089['direction']){const _0x806aae=_0x24c960['createTableWalker'](_0x1a5f26,{'startRow':_0xe5691b,'endRow':_0xe5691b,'includeAllSlots':!0x0});_0x395301=Array['from'](_0x806aae)['map'](_0x2a58e7=>_0x2a58e7['cell']);}else{const _0xeb4deb=_0x24c960['createTableWalker'](_0x1a5f26,{'column':_0x484f95,'includeAllSlots':!0x0});_0x395301=Array['from'](_0xeb4deb)['map'](_0x194d95=>_0x194d95['cell']);}_0x1f2389['model']['change'](_0xa64156=>{_0x2010af['markBlockFormat'](_0xa64156['createRangeOn'](_0x13645b),{'commandName':_0x3faffe,'commandParams':[]},_0x395301,_0x3faffe);});});}_0x2010af['descriptionFactory']['registerDescriptionCallback'](_0xa4f452=>{if('formatBlock'!=_0xa4f452['type']&&'formatInline'!=_0xa4f452['type'])return;const {data:_0x12c960}=_0xa4f452;return _0x12c960&&'mergeTableCells'==_0x12c960['commandName']?{'type':'format','content':c(_0x2da548,'*Merge\x20cells*')}:void 0x0;}),_0x2010af['descriptionFactory']['registerDescriptionCallback'](_0x1337e6=>{if('formatBlock'!=_0x1337e6['type']&&'formatInline'!=_0x1337e6['type'])return;const {data:_0x36e6d1}=_0x1337e6;return _0x36e6d1?'splitTableCellVertically'==_0x36e6d1['commandName']?{'type':'format','content':c(_0x2da548,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x36e6d1['commandName']?{'type':'format','content':c(_0x2da548,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1ce9ba=_0x5a1e38['_acceptFormatSuggestionCallbackFactory']();for(const _0x5a365e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2010af['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a365e,'accept',_0x1ce9ba);for(const _0x50ae5c of['splitTableCellVertically','splitTableCellHorizontally'])_0x2010af['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50ae5c,'accept',_0x1ce9ba);_0x2010af['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xfbc5b=>{_0x1f2389['model']['change'](_0x2e45ad=>{const _0x4e9af7=Array['from'](_0x4efe25['getRanges']())['map'](_0x25d4fa=>_0x542068['fromRange'](_0x25d4fa));_0x2e45ad['setSelection'](_0xfbc5b),_0x1f2389['commands']['get']('mergeTableCells')['refresh'](),_0x1f2389['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2e80f6=_0x4e9af7['filter'](_0x23d221=>'$graveyard'!=_0x23d221['root']['rootName']);_0x2e80f6['length']>0x0&&_0x2e45ad['setSelection'](_0x2e80f6);for(const _0x1b5ada of _0x4e9af7)_0x1b5ada['detach']();});});for(const _0x2728ce of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3a26b4=_0x1f2389['commands']['get'](_0x2728ce);_0x3a26b4['on']('set:isEnabled',(_0x4d68c1,_0x102def,_0x275997)=>{if(_0x275997){const _0x1a183e=_0x1f2389['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3450cc=>_0x3450cc['is']('element','tableCell'));this['_areMergableCells'](_0x3a26b4['value'],_0x1a183e)||(_0x4d68c1['return']=!0x1,_0x4d68c1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3b6133=this['editor']['commands']['get']('mergeTableCells'),_0x24abdf=this['editor']['plugins']['get']('TableUtils');if(!_0x3b6133['isEnabled'])return!0x1;const _0x47ad09=_0x24abdf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xcc90cb of _0x47ad09)for(const _0x2eaa7c of _0x47ad09)if(_0xcc90cb!=_0x2eaa7c&&!this['_areMergableCells'](_0xcc90cb,_0x2eaa7c))return!0x1;return!0x0;}['_areMergableCells'](_0x5e7122,_0x17ce9c){const _0x536206=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa3a565=this['editor']['model']['createRangeOn'](_0x5e7122),_0x1f61a8=this['editor']['model']['createRangeOn'](_0x17ce9c),_0x2f7481=new Set(),_0x3014ca=new Set();for(const _0x262800 of _0x536206['getSuggestions']())if(('insertion'==_0x262800['type']||'deletion'==_0x262800['type']||'mergeTableCells'==_0x262800['subType'])&&_0x262800['isInContent']){for(const _0x2cf97f of _0x262800['getRanges']())_0x2cf97f['containsRange'](_0xa3a565,!0x0)&&_0x2f7481['add'](_0x262800['type']+':'+_0x262800['author']['id']),_0x2cf97f['containsRange'](_0x1f61a8,!0x0)&&_0x3014ca['add'](_0x262800['type']+':'+_0x262800['author']['id']);}if(_0x2f7481['size']!=_0x3014ca['size'])return!0x1;for(const _0x4746e9 of _0x2f7481)if(!_0x3014ca['has'](_0x4746e9))return!0x1;return!0x0;}}class Dt extends _0x2fff63{static get['requires'](){return[Ct];}['afterInit'](){const _0x3de96e=this['editor'];if(!_0x3de96e['plugins']['has']('TableEditing'))return;const _0x28c8cf=_0x3de96e['locale'],_0x3adda2=_0x3de96e['plugins']['get']('TrackChangesEditing');_0x3adda2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3adda2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3adda2['registerBlockAttribute']('headingRows'),_0x3adda2['registerBlockAttribute']('headingColumns'),_0x3adda2['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x28c8cf,'FORMAT_HEADER_ROW')),_0x3adda2['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x28c8cf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x52e475=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23c7a7=this['editor']['plugins']['get']('TableUtils'),_0x5e053f=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x12fbd9({showActiveMarker:_0x2029f1=!0x0,setDataAttribute:_0x156a98=!0x0}={}){return(_0x2e2724,_0x397be3,_0x3154ef)=>{const {type:_0x31f377,id:_0xf63422}=_0x52e475['_splitMarkerName'](_0x397be3['markerName']),_0x4b281f=_0x52e475['getSuggestion'](_0xf63422),_0x4f852f=_0x4b281f['data'];if('formatBlock'!=_0x4b281f['type']||!_0x4f852f||'setTableColumnHeader'!=_0x4f852f['commandName'])return;if(_0x397be3['item'])return void _0x2e2724['stop']();if(!_0x3154ef['consumable']['consume'](_0x397be3['markerRange'],_0x2e2724['name']))return;const _0x3fea63=_0x397be3['markerRange']['start']['nodeAfter'],_0x1ab439=_0x397be3['markerRange']['end']['nodeBefore'],_0x56f668=_0x3fea63['parent']['parent'],{column:_0x3bceba}=_0x23c7a7['getCellLocation'](_0x3fea63),{column:_0x2cf99a}=_0x23c7a7['getCellLocation'](_0x1ab439);for(let _0x4ec9ec=_0x3bceba;_0x4ec9ec<=_0x2cf99a;_0x4ec9ec++){const _0x394b77=_0x23c7a7['createTableWalker'](_0x56f668,{'column':_0x4ec9ec,'includeAllSlots':!0x1});for(const _0x36d2ce of _0x394b77){const _0x1bd9dc=_0x36d2ce['cell'],_0x1db9da=_0x3154ef['mapper']['toViewElement'](_0x1bd9dc);_0x3154ef['writer']['addClass']('ck-suggestion-marker-'+_0x31f377,_0x1db9da),_0x156a98&&_0x3154ef['writer']['setAttribute']('data-suggestion',_0xf63422,_0x1db9da),_0x3154ef['mapper']['bindElementToMarker'](_0x1db9da,_0x397be3['markerName']),_0x2029f1&&(_0x52e475['activeMarkers']['includes'](_0x397be3['markerName'])?_0x3154ef['writer']['addClass']('ck-suggestion-marker--active',_0x1db9da):_0x3154ef['writer']['removeClass']('ck-suggestion-marker--active',_0x1db9da));}}};}_0x52e475['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5e053f),_0x52e475['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5e053f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x12fbd9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x48c2fc,_0x1d75dd,_0x1a919f)=>{_0x1a919f['options']['showSuggestionHighlights']&&_0x12fbd9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x48c2fc,_0x1d75dd,_0x1a919f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1391c9,_0x1a5670,_0xa33037)=>{const {type:_0x4fcca3,id:_0x2f163e}=_0x52e475['_splitMarkerName'](_0x1a5670['markerName']),_0x82b944=_0x52e475['getSuggestion'](_0x2f163e),_0x511ac7=_0x82b944['data'];if('formatBlock'!=_0x82b944['type']||!_0x511ac7||'setTableColumnHeader'!=_0x511ac7['commandName'])return;const _0x1619bc=_0xa33037['mapper']['markerNameToElements'](_0x1a5670['markerName']);if(_0x1619bc){for(const _0x21bcf8 of _0x1619bc)_0xa33037['writer']['removeClass']('ck-suggestion-marker-'+_0x4fcca3,_0x21bcf8),_0xa33037['writer']['removeClass']('ck-suggestion-marker--active',_0x21bcf8),_0xa33037['writer']['removeAttribute']('data-suggestion',_0x21bcf8),_0xa33037['mapper']['unbindElementFromMarkerName'](_0x21bcf8,_0x1a5670['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bfb20=this['editor'],_0x51143e=_0x3bfb20['locale'];function _0x3ef142(_0x333a0c){return{'type':'format','content':c(_0x51143e,'*Format:*\x20%0',_0x333a0c)};}_0x3bfb20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c6b69=>{if('formatBlock'!=_0x2c6b69['type'])return;const {data:_0xbae434}=_0x2c6b69;if(_0xbae434){if('setTableRowHeader'==_0xbae434['commandName']){const _0x3404e5=_0xbae434['commandParams'][0x0]['forceValue'];return _0x3ef142(c(_0x51143e,_0x3404e5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xbae434['commandName']){const _0x250367=_0xbae434['commandParams'][0x0]['forceValue'];return _0x3ef142(c(_0x51143e,_0x250367?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0xfefebc=>[_0xfefebc,null]));class Mt extends _0x2fff63{static get['requires'](){return[Ct];}['afterInit'](){const _0x215930=this['editor'];if(!_0x215930['plugins']['has']('TableClipboard'))return;const _0x922f1d=_0x215930['plugins']['get']('TrackChangesEditing'),_0x348fef=_0x215930['plugins']['get']('TableUtils'),_0x35e29a=_0x215930['plugins']['get'](Ct),_0x14b644=_0x215930['plugins']['get']('TableClipboard');_0x35e29a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x215930['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x215930['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x419878=null;_0x215930['model']['on']('insertContent',(_0x33c007,_0x52c071)=>{const [_0x58d274,_0x176bd4]=_0x52c071,_0x1e2a2f=_0x52c071[_0x52c071['length']-0x1];_0x1e2a2f&&_0x1e2a2f['forceDefaultExecution']||_0x922f1d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x268261,_0xd44d8e,_0x137e22,_0x1fb331,_0xb4b9c3){if(_0xd44d8e&&!_0xd44d8e['is']('documentSelection'))return!0x1;const _0x2fbf7f=_0xb4b9c3['getTableIfOnlyTableInContent'](_0x268261,_0x137e22);if(!_0x2fbf7f||!Ue(_0x2fbf7f,void 0x0,_0x1fb331))return!0x1;const _0x39aca7=_0x1fb331['getSelectionAffectedTableCells'](_0x137e22['document']['selection']);if(!_0x39aca7['length'])return!0x1;const _0x53bb9b=_0x39aca7[0x0]['findAncestor']('table'),_0x18afef=_0x1fb331['getRowIndexes'](_0x39aca7),_0x2679f4=_0x1fb331['getColumnIndexes'](_0x39aca7),_0x59bea1={'startRow':_0x18afef['first'],'endRow':_0x18afef['last'],'startColumn':_0x2679f4['first'],'endColumn':_0x2679f4['last']};return 0x1==_0x39aca7['length']&&(_0x59bea1['endRow']+=_0x1fb331['getRows'](_0x2fbf7f)-0x1,_0x59bea1['endColumn']+=_0x1fb331['getColumns'](_0x2fbf7f)-0x1),Ue(_0x53bb9b,_0x59bea1,_0x1fb331);}(_0x58d274,_0x176bd4,_0x215930['model'],_0x348fef,_0x14b644)&&(_0x33c007['stop'](),_0x419878={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x215930['model']['change'](()=>{_0x215930['model']['insertContent'](_0x52c071[0x0],_0x52c071[0x1],_0x52c071[0x2],{'forceDefaultExecution':!0x0});const _0x5473df=_0x164670(),{rowInsertionRanges:_0xd53b6d,columnInsertionRanges:_0x4ab859,insertionRanges:_0x4892c2,deletionRanges:_0x3757f5,cells:_0x1c3418}=_0x419878;_0xd53b6d['length']&&_0x922f1d['markMultiRangeInsertion'](_0xd53b6d,'tablePasteRow',{'tablePasteChainId':_0x5473df}),_0x4ab859['length']&&_0x922f1d['markMultiRangeInsertion'](_0x4ab859,'tablePasteColumn',{'tablePasteChainId':_0x5473df}),_0x4892c2['length']&&(_0x922f1d['markMultiRangeInsertion'](_0x4892c2,'tablePaste',{'tablePasteChainId':_0x5473df,'skipNestingCheck':!0x0}),_0x4892c2['forEach'](_0x28b0cd=>_0x28b0cd['detach']?.())),_0x3757f5['length']&&(_0x922f1d['markMultiRangeDeletion'](_0x3757f5,'tablePaste',{'tablePasteChainId':_0x5473df,'skipNestingCheck':!0x0}),_0x3757f5['forEach'](_0x169279=>_0x169279['detach']?.()));const _0x1e0b40=_0x922f1d['markMultiRangeBlockFormat'](_0x1c3418['map'](({element:_0x290ff9})=>_0x290ff9),{'formatGroupId':_0x164670()},[],'tablePasteCell',{'tablePasteChainId':_0x5473df});if(_0x1e0b40){const _0x3ce0d0=_0x1e0b40['getMarkers'](),_0x437103=[];for(const {element:_0x2688a2,attributes:_0x139170}of _0x1c3418){if(!_0x139170)continue;const _0x49a9c1=_0x215930['model']['createRangeOn'](_0x2688a2),_0x23c1f1=_0x3ce0d0['find'](_0x38c1b1=>_0x38c1b1['getRange']()['isEqual'](_0x49a9c1));_0x23c1f1&&_0x437103['push']([_0x23c1f1['name'],_0x139170]);}_0x437103['length']&&_0x1e0b40['setAttribute']('markerAttributes',Object['fromEntries'](_0x437103));}_0x419878=null;}));},{'priority':_0x4d7128['high']+0xa}),_0x215930['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4ee008,_0x2094c4)=>{const [_0xa5c9ab,_0x6c5db9,,_0x2df697]=_0x2094c4;if(!_0x419878)return;_0x4ee008['stop']();const _0x123cb6=_0xa5c9ab['cell'],_0x2cd497=_0x6c5db9,_0x3dfc3f=Oe(_0x123cb6),_0x173eda=Oe(_0x2cd497);_0x4ee008['return']=_0x123cb6;let _0x18b878=null,_0x5c8081=null;if(_0x173eda||_0x3dfc3f){if(_0x3dfc3f&&!_0x173eda){_0x2df697['remove'](_0x123cb6['getChild'](0x0));for(const _0x1af36f of Array['from'](_0x2cd497['getChildren']()))_0x2df697['insert'](_0x1af36f,_0x123cb6,'end');const _0x53fac3=_0x419878['rowInsertionIndexes']['includes'](_0xa5c9ab['row']),_0x450f72=_0x419878['columnInsertionIndexes']['includes'](_0xa5c9ab['column']);_0x53fac3||_0x450f72||(_0x18b878=_0x542068['fromRange'](_0x2df697['createRangeIn'](_0x123cb6)));}else _0x173eda&&!_0x3dfc3f&&(_0x5c8081=_0x2df697['createRangeIn'](_0x123cb6));}else{const _0x26bb1e=_0x2df697['createElement']('tableCellSuggestion'),_0x1881e3=_0x2df697['createElement']('tableCellSuggestion');_0x2df697['wrap'](_0x2df697['createRangeIn'](_0x123cb6),_0x1881e3),_0x2df697['insert'](_0x26bb1e,_0x123cb6,0x0);for(const _0x506d9d of Array['from'](_0x2cd497['getChildren']()))_0x2df697['insert'](_0x506d9d,_0x26bb1e,'end');_0x18b878=_0x542068['fromRange'](_0x2df697['createRangeOn'](_0x26bb1e)),_0x5c8081=_0x542068['fromRange'](_0x2df697['createRangeOn'](_0x1881e3));}const _0x30cc89=Array['from'](_0x2cd497['getAttributes']())['filter'](([_0x491398])=>Be['includes'](_0x491398));_0x419878['cells']['push']({'element':_0x123cb6,'attributes':_0x30cc89['length']?Object['fromEntries'](_0x30cc89):null}),_0x18b878&&_0x419878['insertionRanges']['push'](_0x18b878),_0x5c8081&&_0x419878['deletionRanges']['push'](_0x5c8081);},{'priority':'high'}),_0x348fef['on']('insertColumns',(_0x5b1f9c,_0x3abd6b)=>{const [_0x17dcb7,_0x1e9738={}]=_0x3abd6b;if(!_0x419878)return;const _0xf6df8a=_0x1e9738['at']||0x0,_0x37587b=_0x1e9738['columns']||0x1;_0x419878['columnInsertionIndexes']=new Array(_0x37587b)['fill'](_0xf6df8a)['map']((_0x28c14d,_0x55765d)=>_0x28c14d+_0x55765d);for(const {cell:_0x55e4c0}of _0x348fef['createTableWalker'](_0x17dcb7,{'startColumn':_0xf6df8a,'endColumn':_0xf6df8a+_0x37587b-0x1}))_0x419878['columnInsertionRanges']['push'](_0x215930['model']['createRangeOn'](_0x55e4c0));},{'priority':'low'}),_0x348fef['on']('insertRows',(_0x5a549e,_0x36c2a3)=>{const [_0x42942e,_0x227716={}]=_0x36c2a3;if(!_0x419878)return;const _0x29d92a=_0x227716['at']||0x0,_0x4a3f57=_0x227716['rows']||0x1;_0x419878['rowInsertionIndexes']=new Array(_0x4a3f57)['fill'](_0x29d92a)['map']((_0x42556b,_0x10e4c2)=>_0x42556b+_0x10e4c2);for(const {cell:_0x274632}of _0x348fef['createTableWalker'](_0x42942e,{'startRow':_0x29d92a,'endRow':_0x29d92a+_0x4a3f57-0x1}))_0x419878['rowInsertionRanges']['push'](_0x215930['model']['createRangeOn'](_0x274632));},{'priority':'low'}),_0x922f1d['descriptionFactory']['registerDescriptionCallback'](_0x35b2d3=>{if(_0x35b2d3['subType']&&_0x35b2d3['subType']['startsWith']('tablePaste'))return _0x35b2d3['previous']?{}:{'type':'insertion','content':c(_0x215930['locale'],'*Replace\x20table\x20cells*')};});const _0x375171=()=>!0x1;for(const _0x1bff90 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x922f1d['_suggestionFactory']['registerCustomCallback']('insertion',_0x1bff90,'join',_0x375171),_0x922f1d['_suggestionFactory']['registerCustomCallback']('deletion',_0x1bff90,'join',_0x375171),_0x922f1d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1bff90,'join',_0x375171);_0x922f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x375171),_0x922f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1870bb,_0x467ea9,_0x5f0820)=>{const _0x4ce60a=_0x1870bb['map'](_0x3033b6=>_0x3033b6['getContainedElement']())['filter'](_0x1535f0=>_0x1535f0),_0x555dd1=new Map(_0x4ce60a['map'](_0x22dcf8=>[_0x22dcf8,null]));if(_0x419878){for(const {element:_0x283fdf,attributes:_0x166942}of _0x419878['cells'])_0x166942&&_0x555dd1['set'](_0x283fdf,_0x166942);}else{if(_0x5f0820&&_0x5f0820['markerAttributes'])for(const [_0x33451a,_0x241f09]of Object['entries'](_0x5f0820['markerAttributes'])){const _0x40ae5e=_0x215930['model']['markers']['get'](_0x33451a),_0x5bf175=_0x40ae5e?_0x40ae5e['getRange']()['getContainedElement']():null;_0x5bf175&&_0x555dd1['set'](_0x5bf175,_0x241f09);}}_0x215930['model']['change'](_0x49b679=>{for(const [_0x30b33e,_0x32500b]of _0x555dd1)_0x49b679['setAttributes']({...xe,..._0x32500b},_0x30b33e);});});const _0x197003=(_0x332be1,_0x54c3df)=>{_0x922f1d['_suggestionFactory']['registerCustomCallback'](_0x332be1,'tablePaste',_0x54c3df,(_0x45d1d7,_0x49183e,_0x21fbf3)=>{_0x215930['model']['change'](_0x2951b2=>{const _0x4142ee=[];for(const _0x594a7d of _0x45d1d7){const _0x97e176=_0x594a7d['start']['nodeAfter'];_0x97e176['is']('element','tableCellSuggestion')&&_0x4142ee['push'](_0x97e176);}_0x922f1d['_suggestionFactory']['getSuggestionCallback'](_0x332be1,null,_0x54c3df)(_0x45d1d7,_0x49183e,_0x21fbf3);for(const _0x520376 of _0x4142ee)'$graveyard'!=_0x520376['root']['rootName']&&_0x2951b2['unwrap'](_0x520376);});});};_0x197003('insertion','accept'),_0x197003('insertion','discard'),_0x197003('deletion','accept'),_0x197003('deletion','discard'),_0x922f1d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5db13d=>{const _0x4c9493=_0x5db13d['map'](_0x3ae884=>_0x3ae884['getContainedElement']()),_0x1128c5=_0x4c9493[0x0]['findAncestor']('table'),{minRow:_0x3170eb,maxRow:_0x143286}=_0x35e29a['_getCoordsForCells'](_0x4c9493);_0x348fef['removeRows'](_0x1128c5,{'at':_0x3170eb,'rows':_0x143286-_0x3170eb+0x1});}),_0x922f1d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5b1fd9=>{const _0x5e7684=_0x5b1fd9['map'](_0x800520=>_0x800520['getContainedElement']()),_0x57f24e=_0x5e7684[0x0]['findAncestor']('table'),{minColumn:_0x2efee4,maxColumn:_0x4a6a53}=_0x35e29a['_getCoordsForCells'](_0x5e7684);_0x348fef['removeColumns'](_0x57f24e,{'at':_0x2efee4,'columns':_0x4a6a53-_0x2efee4+0x1});});const _0x5439f7=(_0x5da5e8,_0x57a721)=>{if(!_0x57a721['subType']||!_0x57a721['subType']['startsWith']('tablePaste'))return;const _0x30f2a6=_0x57a721['attributes']['tablePasteChainId'],_0xf38a46=_0x922f1d['getSuggestions']()['filter'](_0x6f52a9=>_0x6f52a9['isInContent']&&_0x6f52a9['attributes']&&_0x6f52a9['attributes']['tablePasteChainId']==_0x30f2a6);_0xf38a46['length']&&_0x57a721['getAllAdjacentSuggestions']()['length']!=_0xf38a46['length']&&_0xf38a46['reduce']((_0x15cf3c,_0x32736c)=>(_0x15cf3c['next']=_0x32736c,_0x32736c['previous']=_0x15cf3c,_0x32736c));};function _0x192ff9(_0x2aa81c,_0x1a7d16=!0x0){const {id:_0x14ca1f,authorId:_0x597702}=_0x922f1d['_splitMarkerName'](_0x2aa81c['markerName']),_0x5d72fb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xb82e28=_0x922f1d['activeMarkers']['includes'](_0x2aa81c['markerName']);return _0xb82e28&&_0x5d72fb['push']('ck-suggestion-marker--active'),{'classes':_0x5d72fb,'attributes':{'data-suggestion':_0x14ca1f,'data-author-id':_0x597702},'priority':_0xb82e28&&_0x1a7d16?0xbc2:0xbb8};}_0x922f1d['on']('suggestionLoaded',_0x5439f7,{'priority':'high'}),_0x922f1d['on']('suggestionUnloaded',_0x5439f7,{'priority':'high'}),_0x215930['model']['document']['registerPostFixer'](()=>{let _0x48ae5f=!0x1;const _0x14c50d=Array['from'](_0x215930['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x596de8,data:_0x31d70d}of _0x14c50d){const {group:_0x12589d,type:_0x136dfd,id:_0x1730e8}=_0x922f1d['_splitMarkerName'](_0x596de8);if('suggestion'!=_0x12589d||'deletion'!=_0x136dfd||_0x31d70d['oldRange'])continue;if(!_0x922f1d['hasSuggestion'](_0x1730e8))continue;const _0x676034=_0x922f1d['getSuggestion'](_0x1730e8)['getRanges'](),_0x539567=_0x215930['plugins']['get']('Users')['me'];for(const _0x289a8f of _0x922f1d['getSuggestions']()){if(!_0x289a8f['isInContent']||_0x289a8f['author']!=_0x539567)continue;if('formatBlock'!=_0x289a8f['type']||'tablePasteCell'!=_0x289a8f['subType'])continue;if(_0x289a8f['getRanges']()['every'](_0x3f4073=>_0x676034['some'](_0x5e2873=>_0x5e2873['containsRange'](_0x3f4073,!0x0)))){for(const _0x44682 of _0x289a8f['getAllAdjacentSuggestions']())_0x44682['isInContent']&&(_0x44682['discard'](),_0x48ae5f=!0x0);}}}return _0x48ae5f;}),_0x215930['model']['document']['registerPostFixer'](_0x4da1f0=>{const _0x405714=_0x215930['commands']['get']('redo');if(!_0x405714||!_0x405714['_createdBatches']['has'](_0x4da1f0['batch']))return!0x1;let _0x2ef46b=!0x1;const _0x4bd1c0=_0x215930['plugins']['get']('Users')['me'],_0x5989a8=_0x215930['model']['document']['differ']['getChanges'](),_0xa2acc4=Array['from'](_0x215930['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1c2d44,data:_0xb99764})=>{const {group:_0x11f513,subType:_0x1e149f,authorId:_0x4f9a00}=_0x922f1d['_splitMarkerName'](_0x1c2d44);return'suggestion'==_0x11f513&&'tablePaste'==_0x1e149f&&_0x4f9a00==_0x4bd1c0['id']&&!_0xb99764['oldRange'];});for(const _0x3ebc9e of _0x5989a8){if('insert'!=_0x3ebc9e['type']||'tableCellSuggestion'!=_0x3ebc9e['name']||0x1!=_0x3ebc9e['length'])continue;const _0x475951=_0x4da1f0['createRange'](_0x3ebc9e['position'],_0x3ebc9e['position']['getShiftedBy'](0x1));if(!_0xa2acc4['find'](({data:_0x3a9296})=>_0x3a9296['newRange']['isEqual'](_0x475951))){for(const {name:_0x40a028,data:_0xb08d51}of _0xa2acc4)if(_0x475951['containsRange'](_0xb08d51['newRange'])){_0x4da1f0['updateMarker'](_0x40a028,{'range':_0x475951}),_0x2ef46b=!0x0;break;}}}return _0x2ef46b;}),_0x215930['model']['document']['registerPostFixer'](_0x270886=>{let _0xe24f93=!0x1;const _0x5a7027=_0x215930['plugins']['get']('Users')['me'],_0x8b00cc=_0x922f1d['getSuggestions']()['filter'](_0xb37a7d=>_0xb37a7d['isInContent']&&_0xb37a7d['author']==_0x5a7027),_0x510555=new Set(),_0x38ab2c=new Set();for(const _0x593369 of _0x8b00cc)if('tablePaste'==_0x593369['subType'])for(const _0x1801e7 of _0x593369['getMarkers']()){const _0x50a183=_0x1801e7['getRange']()['getContainedElement']();if(_0x50a183){if(_0x50a183['is']('element','tableCellSuggestion')&&Oe(_0x50a183)){_0x593369['removeMarker'](_0x1801e7['name']),_0x510555['add'](_0x50a183),_0xe24f93=!0x0;const _0x433a10=_0x50a183['nextSibling'],_0x529712=_0x50a183['previousSibling'],_0x25290f=_0x433a10&&_0x433a10['is']('element','tableCellSuggestion'),_0x2b99c3=_0x529712&&_0x529712['is']('element','tableCellSuggestion');_0x25290f&&!_0x510555['has'](_0x433a10)&&_0x38ab2c['add'](_0x433a10),_0x2b99c3&&!_0x510555['has'](_0x529712)&&_0x38ab2c['add'](_0x529712);}else _0x50a183['is']('element','paragraph')&&_0x50a183['isEmpty']&&(_0x593369['removeMarker'](_0x1801e7['name']),_0xe24f93=!0x0);}}else{if('tablePasteCell'==_0x593369['subType']){if(!_0x593369['attributes']||!_0x593369['attributes']['tablePasteChainId'])continue;const _0x4c7533=_0x593369['attributes']['markerAttributes'];if(_0x4c7533&&Object['keys'](_0x4c7533)['length'])continue;const _0x926cee=_0x593369['attributes']['tablePasteChainId'];let _0x32b088=!0x0,_0x4cb2ca=!0x0;for(const _0xd0e078 of _0x8b00cc)if(_0xd0e078['subType']&&_0xd0e078['subType']['startsWith']('tablePaste')){if(!_0xd0e078['attributes']['tablePasteChainId']){_0x4cb2ca=!0x1;break;}if(_0xd0e078['id']!=_0x593369['id']&&_0xd0e078['attributes']['tablePasteChainId']==_0x926cee){_0x32b088=!0x1;break;}}_0x4cb2ca&&_0x32b088&&(_0x593369['removeMarkers'](),_0xe24f93=!0x0);}}for(const _0x17c0ce of _0x510555)_0x270886['remove'](_0x17c0ce);for(const _0x43e47d of _0x38ab2c)_0x270886['unwrap'](_0x43e47d);return _0xe24f93;}),_0x215930['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x191af7=>_0x192ff9(_0x191af7),'converterPriority':'high'}),_0x215930['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3d0ffe,_0x9a178e)=>_0x9a178e['options']['showSuggestionHighlights']?_0x192ff9(_0x3d0ffe,!0x1):null,'converterPriority':'high'});const _0x5379b6=_0x215930['editing']['view'];this['listenTo'](_0x5379b6['document'],'clipboardOutput',(_0x15e09b,_0xe9e3c9)=>{const _0x38b0cc=[];for(const _0x571214 of _0x5379b6['createRangeIn'](_0xe9e3c9['content'])['getItems']())_0x571214['is']('element','suggestion-td')&&_0x38b0cc['push'](_0x571214);_0x5379b6['change'](_0x4681fb=>{for(const _0x2bcaf4 of _0x38b0cc)_0x4681fb['move'](_0x4681fb['createRangeIn'](_0x2bcaf4),_0x4681fb['createPositionBefore'](_0x2bcaf4)),_0x4681fb['remove'](_0x2bcaf4);});});}}function Oe(_0x5ce6c9){if(_0x5ce6c9['isEmpty'])return!0x0;const _0x3242c0=_0x5ce6c9['getChild'](0x0);return _0x3242c0['is']('element','paragraph')&&_0x3242c0['isEmpty'];}function Ue(_0x54c948,_0x52d563={},_0x12751c){for(const {isAnchor:_0x66c1ea,cellHeight:_0x2248e9,cellWidth:_0x232ae5}of _0x12751c['createTableWalker'](_0x54c948,{'includeAllSlots':!0x0,..._0x52d563}))if(!_0x66c1ea||0x1!=_0x2248e9||0x1!=_0x232ae5)return!0x1;return!0x0;}class $t extends _0x2fff63{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x39dc4e=this['editor']['plugins']['get']('TrackChangesEditing');_0x39dc4e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x39dc4e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x39dc4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x39dc4e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x39dc4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x39dc4e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x50686c,_0x26c066){const _0x240405=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ec20f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x316b0e=_0x26c066['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3b2421=_0x2ec20f['getColumnGroupElement'](_0x316b0e);let _0x281fb9=_0x3b2421?_0x2ec20f['getTableColumnsWidths'](_0x3b2421):null,_0x1139ee=_0x316b0e['getAttribute']('tableWidth')||null;const _0x70a89c=_0x26c066['tableWidth']||_0x1139ee,_0x3c8483=_0x26c066['columnWidths']||_0x281fb9,_0x2e2af9=this['editor']['plugins']['get']('Users')['me'];for(const _0x29bc3a of _0x240405['getSuggestions']()){const _0x24a7bd=_0x29bc3a['getContainedElement']();if('resizeTable'===_0x29bc3a['subType']&&_0x24a7bd===_0x316b0e){_0x29bc3a['author']!==_0x2e2af9&&_0x29bc3a['discard']();const _0x205ace=_0x29bc3a['data']['commandParams'];_0x1139ee=_0x205ace[0x0]['tableWidth'],_0x281fb9=_0x205ace[0x0]['columnWidths'];break;}}_0x50686c({'table':_0x316b0e,'tableWidth':_0x70a89c,'columnWidths':_0x3c8483}),_0x240405['markBlockFormat'](_0x316b0e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1139ee,'columnWidths':_0x281fb9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x11ccac){if('formatBlock'!=_0x11ccac['type']&&'formatInline'!=_0x11ccac['type'])return;const {data:_0x3d8f00}=_0x11ccac;if(_0x3d8f00&&'resizeTable'===_0x3d8f00['formatGroupId']){const _0x2aaaea='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2aaaea)};}}}class Bt extends _0x2fff63{['afterInit'](){const _0x414692=this['editor'];_0x414692['plugins']['has']('Template')&&_0x414692['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x2fff63{['afterInit'](){const _0x1e1dc0=this['editor'];if(!_0x1e1dc0['commands']['get']('insertTableOfContents'))return;_0x1e1dc0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x13e18d=_0x1e1dc0['plugins']['get']('TrackChangesEditing'),_0x11ac02=_0x1e1dc0['locale'];_0x13e18d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x54237f=>c(_0x11ac02,'ELEMENT_TABLE_OF_CONTENTS',_0x54237f));}}class Rt extends _0x2fff63{['afterInit'](){const _0x403f42=this['editor'];if(!_0x403f42['plugins']['has']('Title'))return;const _0xa1cd8a=_0x403f42['plugins']['get']('TrackChangesEditing');_0xa1cd8a['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x403f42['locale'],'ELEMENT_TITLE')),_0x403f42['model']['document']['registerPostFixer'](_0x205f7c=>{let _0x5ed1bd=!0x1;const _0x1ba739=Array['from'](_0x403f42['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x63fc88,data:_0x497b8e}of _0x1ba739){const {group:_0x19e412}=_0xa1cd8a['_splitMarkerName'](_0x63fc88);if('suggestion'!==_0x19e412||!_0x497b8e['newRange'])continue;const _0x39940b=_0x497b8e['newRange'],_0x1d09bc=_0x39940b['end']['nodeBefore'];if(!_0x1d09bc||!_0x1d09bc['is']('element','title-content'))continue;if(!_0x39940b['start']['isTouching'](_0x39940b['end']))continue;const _0x1c2317=_0x403f42['model']['schema']['getNearestSelectionRange'](_0x39940b['end'],'forward');if(_0x1c2317&&_0x1c2317['isCollapsed']){const _0x132054=_0x205f7c['createRange'](_0x39940b['start'],_0x1c2317['start']);_0x132054['isEqual'](_0x39940b)||(_0x205f7c['updateMarker'](_0x63fc88,{'range':_0x132054}),_0x5ed1bd=!0x0);}_0x5ed1bd||(_0x205f7c['removeMarker'](_0x63fc88),_0x5ed1bd=!0x0);}return _0x5ed1bd;});}}class xt extends _0x2fff63{['afterInit'](){const _0x51c532=this['editor'],_0x22213e=_0x51c532['plugins']['get']('TrackChangesEditing');_0x51c532['plugins']['has']('Uploadcare')&&(_0x22213e['enableCommand']('uploadcare'),_0x51c532['plugins']['has']('UploadcareImageEdit')&&(_0x22213e['enableCommand']('uploadcareImageEdit'),_0x22213e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x22213e['registerBlockAttribute']('uploadcareImageId'),_0x22213e['descriptionFactory']['registerDescriptionCallback'](_0x3964b2=>{if('attribute'!=_0x3964b2['type'])return;const {data:_0x17dd81}=_0x3964b2;return _0x17dd81&&'uploadcareImageId'==_0x17dd81['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x2fff63{['afterInit'](){const _0x48ac81=this['editor'],_0x5ad0c7=_0x48ac81['plugins']['get']('TrackChangesEditing');_0x48ac81['plugins']['has']('UndoEditing')&&(_0x5ad0c7['enableCommand']('undo'),_0x5ad0c7['enableCommand']('redo'));}}class Et extends _0x2fff63{static get['requires'](){return[Ct];}['afterInit'](){const _0x524ab5=this['editor'];if(!_0x524ab5['plugins']['has']('TableCaptionEditing'))return;_0x524ab5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x2fff63{['tableProperties'];['tableCellProperties'];constructor(_0x222f83){super(_0x222f83),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4f3406=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x505707 of this['tableProperties'])_0x4f3406['enableCommand'](_0x505707,(_0x12c397,_0x4516e7)=>{const _0x50dbd6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x505707,[_0x50dbd6],this['tableProperties'],'tableProperties',_0x12c397,_0x4516e7);});_0x4f3406['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4f3406['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f3406['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x9483d7,_0x1de2d4)=>this['handleDiscardAction'](this['tableProperties'],_0x9483d7,_0x1de2d4)),_0x4f3406['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1301ad of this['tableCellProperties'])_0x4f3406['enableCommand'](_0x1301ad,(_0x1be187,_0x4f5d50)=>{const _0x494471=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1301ad,_0x494471,this['tableCellProperties'],'tableCellProperties',_0x1be187,_0x4f5d50);});_0x4f3406['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4f3406['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f3406['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1e3be9,_0xf2df8b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1e3be9,_0xf2df8b)),_0x4f3406['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4f3406['descriptionFactory']['registerDescriptionCallback'](_0x5ae952=>this['handleSuggestionDescription'](_0x5ae952));}['_handlePropertyChange'](_0x7ddf19,_0x18ad6b,_0x26f9a7,_0x4de084,_0x275b9b,_0x29b932){const _0x1bc5aa=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x29b932['batch'],()=>{for(const _0x51fa70 of _0x18ad6b){if(this['_getSuggestion'](_0x51fa70,_0x4de084))_0x275b9b(_0x29b932);else{const _0x130aeb={};for(const _0x4f82b4 of _0x26f9a7){const _0x53ab98=_0x51fa70['getAttribute'](_0x4f82b4);void 0x0!==_0x53ab98&&(_0x130aeb[_0x4f82b4]=_0x53ab98);}_0x275b9b(_0x29b932),_0x1bc5aa['markBlockFormat'](_0x51fa70,{'commandParams':[_0x130aeb]},[],_0x4de084);}}});}['handleDiscardAction'](_0x285a52,_0x5e5d0e,_0x54d44c){const _0x4c02a7=_0x5e5d0e[0x0]['start']['nodeAfter'],_0x542caa=_0x54d44c['commandParams'][0x0];this['editor']['model']['change'](_0x23e7bc=>{for(const _0x291451 of _0x285a52)void 0x0!==_0x542caa[_0x291451]?_0x23e7bc['setAttribute'](_0x291451,_0x542caa[_0x291451],_0x4c02a7):_0x23e7bc['removeAttribute'](_0x291451,_0x4c02a7);});}['handleSuggestionDescription'](_0x478e7e){if(_0x478e7e['data'])switch(_0x478e7e['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x47be54,_0x5a782b){const _0xb9f1e8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2f08fe of _0xb9f1e8['getSuggestions']({'skipNotAttached':!0x0})){const _0xffd7b4=_0x2f08fe['getContainedElement']();if(_0x2f08fe['subType']===_0x5a782b&&_0xffd7b4===_0x47be54)return _0x2f08fe;}return null;}}const u='$elementName';class p extends _0x2fff63{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x305a6b,_0x1aaf18,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e8621){super(_0x2e8621),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x165798,_0x23ad09,_0x4a9cb3,_0x1694ed)=>{this['_model']['change'](()=>{for(const _0x340f57 of[..._0x1694ed,..._0x4a9cb3])this['_model']['markers']['has'](_0x340f57)&&_0x2e8621['editing']['reconvertMarker'](_0x340f57);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2e8621['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2e8621['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2e8621['config']['get']('trackChanges.trackFormatChanges'),_0x2e8621['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2e8621['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2e8621,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5ccec0=this['editor'],_0x433c63=(_0x39ac3f,_0x310ec7)=>{if('attribute'!=_0x39ac3f)return'ck-suggestion-marker-'+_0x39ac3f;const _0x44bc56=_0x310ec7['split']('|')[0x0];return this['_isBlockAttribute'](_0x44bc56)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5ccec0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x351866=>{const {id:_0x2b08de,authorId:_0x36f599,type:_0xc9d205,subType:_0x5ed6df}=this['_splitMarkerName'](_0x351866['markerName']),_0x37bae2=['ck-suggestion-marker',_0x433c63(_0xc9d205,_0x5ed6df)];let _0x595781=0xbb8;return this['activeMarkers']['includes'](_0x351866['markerName'])&&(_0x37bae2['push']('ck-suggestion-marker--active'),_0x595781=0xbc2),'deletion'==_0xc9d205&&(_0x595781+=0x5),{'classes':_0x37bae2,'attributes':{'data-suggestion':_0x2b08de,'data-author-id':_0x36f599},'priority':_0x595781};}}),_0x5ccec0['conversion']['for']('dataDowncast')['add'](_0x25ce0d=>{_0x25ce0d['on']('addMarker:suggestion',(_0x234530,_0x4dd73a,_0x1aa738)=>{if(!_0x1aa738['options']['showSuggestionHighlights'])return;const _0xd9c11d=_0x4dd73a['item'];if(!_0xd9c11d)return;const _0x116b8c=_0x1aa738['mapper']['toViewElement'](_0xd9c11d);_0x5ccec0['model']['schema']['isObject'](_0xd9c11d)&&_0x116b8c&&!_0x116b8c['getCustomProperty']('widget')&&_0x116b8c['is']('containerElement')&&_0x322811(_0x116b8c,_0x1aa738['writer']);},{'priority':'high'});}),_0x5ccec0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3ccfb7,_0x5eeb3d)=>{if(!_0x5eeb3d['options']['showSuggestionHighlights'])return null;const {type:_0x4e7ab1,subType:_0x582b6c}=this['_splitMarkerName'](_0x3ccfb7['markerName']);return{'classes':['ck-suggestion-marker',_0x433c63(_0x4e7ab1,_0x582b6c)],'priority':0xbb8};}});const _0xca64d3=({showActiveMarkers:_0x2a7884=!0x0,isAttributeSuggestion:_0x4e6567=!0x1}={})=>(_0x13a144,_0x3b0f4c,_0x58051a)=>{if(!_0x3b0f4c['item'])return;const {id:_0x156c7d,authorId:_0x13304d}=this['_splitMarkerName'](_0x3b0f4c['markerName']);if(_0x4e6567){const _0x4f032b=this['_suggestions']['get'](_0x156c7d),_0xdf0bf=this['_getAttributeKey'](_0x4f032b);if(!this['_isBlockAttribute'](_0xdf0bf))return;}if(_0x3b0f4c['item']['is']('selection'))return void _0x58051a['consumable']['consume'](_0x3b0f4c['item'],_0x13a144['name']);const _0x3bc49d=_0x58051a['mapper']['toViewElement'](_0x3b0f4c['item']);if(_0x3b0f4c['item']['is']('element')&&_0x5ccec0['model']['schema']['isBlock'](_0x3b0f4c['item'])&&!_0x3bc49d['getCustomProperty']('addHighlight')){_0x58051a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3bc49d),_0x58051a['writer']['setAttribute']('data-suggestion',_0x156c7d,_0x3bc49d),_0x58051a['writer']['setAttribute']('data-author-id',_0x13304d,_0x3bc49d),_0x58051a['mapper']['bindElementToMarker'](_0x3bc49d,_0x3b0f4c['markerName']),_0x2a7884&&(this['activeMarkers']['includes'](_0x3b0f4c['markerName'])?_0x58051a['writer']['addClass']('ck-suggestion-marker--active',_0x3bc49d):_0x58051a['writer']['removeClass']('ck-suggestion-marker--active',_0x3bc49d));for(const _0x4acce4 of _0x5ccec0['model']['createRangeIn'](_0x3b0f4c['item'])['getItems']())_0x58051a['consumable']['consume'](_0x4acce4,_0x13a144['name']);_0x58051a['consumable']['consume'](_0x3b0f4c['item'],_0x13a144['name']);}};_0x5ccec0['conversion']['for']('dataDowncast')['add'](_0x2e64d8=>{_0x2e64d8['on']('addMarker:suggestion:formatBlock',(_0x2e02dc,_0x165f6a,_0x1352f4)=>{_0x1352f4['options']['showSuggestionHighlights']&&_0xca64d3({'showActiveMarkers':!0x1})(_0x2e02dc,_0x165f6a,_0x1352f4);},{'priority':'highest'});}),_0x5ccec0['conversion']['for']('dataDowncast')['add'](_0x5b8777=>{_0x5b8777['on']('addMarker:suggestion:attribute',(_0x4be595,_0x5a3476,_0x537d5b)=>{_0x537d5b['options']['showSuggestionHighlights']&&_0xca64d3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4be595,_0x5a3476,_0x537d5b);},{'priority':'highest'});}),_0x5ccec0['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2e0396,_0x59dc02)=>_0x59dc02['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2e0396['substr'](0xb)}}),_0x5ccec0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x591a66,{writer:_0x4d1d33})=>{let _0x2d076e='suggestion:'+_0x591a66['getAttribute']('suggestion-type')+':'+_0x591a66['getAttribute']('id');return _0x591a66['getAttribute']('marker-count')&&(_0x2d076e+=':'+_0x591a66['getAttribute']('marker-count')),_0x4d1d33['createElement']('$marker',{'data-name':_0x2d076e});}}),_0x5ccec0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5ccec0['conversion']['for']('editingDowncast')['add'](_0x1f0405=>{_0x1f0405['on']('addMarker:suggestion:formatBlock',_0xca64d3(),{'priority':'high'});}),_0x5ccec0['conversion']['for']('editingDowncast')['add'](_0x4224f7=>{_0x4224f7['on']('addMarker:suggestion:attribute',_0xca64d3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5ccec0['conversion']['for']('editingDowncast')['add'](_0x35993e=>{_0x35993e['on']('removeMarker:suggestion:formatBlock',(_0x3a5bb9,_0x4c750d,_0x1b5c96)=>{const _0x3115c9=_0x1b5c96['mapper']['markerNameToElements'](_0x4c750d['markerName']);if(_0x3115c9){for(const _0x426dc5 of _0x3115c9)_0x426dc5['getCustomProperty']('addHighlight')||(_0x1b5c96['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x426dc5),_0x1b5c96['writer']['removeAttribute']('data-suggestion',_0x426dc5),_0x1b5c96['writer']['removeAttribute']('data-author-id',_0x426dc5),_0x1b5c96['mapper']['unbindElementFromMarkerName'](_0x426dc5,_0x4c750d['markerName']));}},{'priority':'high'});}),_0x5ccec0['conversion']['for']('editingDowncast')['add'](_0xf66592=>{_0xf66592['on']('removeMarker:suggestion:attribute',(_0x36e9eb,_0x39d626,_0x4b7dcc)=>{const _0x535b80=_0x4b7dcc['mapper']['markerNameToElements'](_0x39d626['markerName']);if(!_0x535b80)return;const {id:_0x5f2262}=this['_splitMarkerName'](_0x39d626['markerName']),_0x48977a=this['_suggestions']['get'](_0x5f2262),_0x1ee405=this['_getAttributeKey'](_0x48977a);if(this['_isBlockAttribute'](_0x1ee405)){for(const _0x172fa5 of _0x535b80)_0x172fa5['getCustomProperty']('addHighlight')||(_0x4b7dcc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x172fa5),_0x4b7dcc['writer']['removeAttribute']('data-suggestion',_0x172fa5),_0x4b7dcc['writer']['removeAttribute']('data-author-id',_0x172fa5),_0x4b7dcc['mapper']['unbindElementFromMarkerName'](_0x172fa5,_0x39d626['markerName']));}},{'priority':'high'});}),_0x5ccec0['model']['document']['registerPostFixer'](_0x351105=>{let _0x133be0=!0x1;const _0x586500=Array['from'](_0x5ccec0['model']['document']['differ']['getChangedMarkers']()),_0x292a95=new Set();for(const {name:_0x355813,data:_0x1ea0b4}of _0x586500){const {group:_0x539463,type:_0x48b4d1,subType:_0x3686ac,id:_0x1c3d03}=this['_splitMarkerName'](_0x355813);if('suggestion'!==_0x539463)continue;const _0x3d0740=this['_suggestions']['get'](_0x1c3d03);if(null!=_0x1ea0b4['newRange']){'formatInline'==_0x48b4d1&&(_0x133be0=_0x133be0||Lt(_0x1ea0b4['newRange'],_0x355813,_0x351105,_0x5ccec0['model']['schema']));const _0x3effcb='attribute'==_0x48b4d1&&this['_isBlockAttribute'](_0x3686ac['split']('|')[0x0]);if(_0x1ea0b4['newRange']['isCollapsed']||'$graveyard'==_0x1ea0b4['newRange']['root']['rootName']||'formatBlock'==_0x48b4d1&&!Kt(_0x1ea0b4['newRange'])||_0x3effcb&&!Kt(_0x1ea0b4['newRange'])||'deletion'==_0x48b4d1&&!(!Gt(_0x1c2fcc=_0x1ea0b4['newRange'])&&!function(_0x4dd572){return _0x4dd572['start']['parent']==_0x4dd572['end']['nodeBefore']&&_0x4dd572['start']['isAtEnd'];}(_0x1c2fcc)))_0x351105['removeMarker'](_0x355813),_0x133be0=!0x0;else{if(!_0x3d0740||!_0x3d0740['isInContent'])continue;if(_0x1ea0b4['newRange']&&_0x1ea0b4['oldRange']&&_0x1ea0b4['newRange']['isEqual'](_0x1ea0b4['oldRange']))continue;_0x292a95['add'](_0x3d0740);}}}var _0x1c2fcc;return _0x292a95['size']>0x0&&(_0x133be0=!!this['_joinWithAdjacentSuggestions'](_0x292a95)||_0x133be0),_0x133be0;}),_0x5ccec0['model']['document']['registerPostFixer'](_0x5c4890=>{let _0x5c6718=!0x1;for(const _0x27d46e of _0x5ccec0['model']['document']['differ']['getChanges']())if('insert'==_0x27d46e['type'])for(const _0x40228e of this['_suggestions']['values']()){if(_0x40228e['isMultiRange']||!_0x40228e['isInContent'])continue;const _0x511d80='formatBlock'==_0x40228e['type'],_0x1e1cb5=this['_getAttributeKey'](_0x40228e),_0x10baac=_0x1e1cb5&&this['_isBlockAttribute'](_0x1e1cb5);if(!_0x511d80&&!_0x10baac)continue;const _0x501057=_0x40228e['getFirstRange']();if(_0x501057['start']['parent']!=_0x501057['end']['parent']&&!_0x501057['end']['isAtEnd']){const _0x56e10c=_0x5ccec0['model']['createPositionAt'](_0x501057['start']['nodeAfter'],'end'),_0x19df2d=_0x5ccec0['model']['createRange'](_0x501057['start'],_0x56e10c);_0x5c4890['updateMarker'](_0x40228e['getFirstMarker'](),{'range':_0x19df2d}),_0x5c6718=!0x0;}}return _0x5c6718;}),_0x5ccec0['model']['document']['registerPostFixer'](_0x2b97e4=>this['_processAttributeChanges'](_0x2b97e4)),_0x5ccec0['model']['document']['registerPostFixer'](_0x17300b=>!_0x17300b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x17300b)),_0x5ccec0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5ccec0['model']['document']['on']('change:data',(_0x90343a,_0x9156dc)=>{if(!_0x9156dc['isLocal']||_0x9156dc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x52b37f=_0x5ccec0['model']['document']['differ']['getChanges']();if(0x0==_0x52b37f['length'])return;const _0x57b4e0=[],_0x4112ea=_0x52b37f['filter'](_0x599efa=>'attribute'==_0x599efa['type']),_0x40355c=_0x52b37f['filter'](_0x457cf5=>'insert'==_0x457cf5['type']&&'$text'!=_0x457cf5['name']);for(const _0x4b0959 of _0x4112ea)this['_isRegisteredAttribute'](_0x4b0959['attributeKey'])&&_0x57b4e0['push']({'key':_0x4b0959['attributeKey'],'newValue':_0x4b0959['attributeNewValue'],'oldValue':_0x4b0959['attributeOldValue'],'range':Ht(_0x4b0959['range'],_0x5ccec0['model'])});for(const _0x4ddba0 of _0x40355c){if('rename'!=_0x4ddba0['action']&&'refresh'!=_0x4ddba0['action'])continue;const _0x3a829c=qt(_0x4ddba0['position']['nodeAfter'],_0x5ccec0['model']),_0x13c46d=_0x4ddba0['before'];'rename'==_0x4ddba0['action']&&_0x57b4e0['push']({'key':u,'newValue':_0x4ddba0['name'],'oldValue':_0x13c46d['name'],'range':_0x3a829c});for(const [_0x70a7d1,_0x9c0897]of _0x13c46d['attributes']){if(!this['_isRegisteredAttribute'](_0x70a7d1))continue;const _0x4c3537=_0x4ddba0['attributes']['get'](_0x70a7d1);_0x9c0897!==_0x4c3537&&_0x57b4e0['push']({'key':_0x70a7d1,'newValue':_0x4c3537,'oldValue':_0x9c0897,'range':_0x3a829c});}for(const [_0x4e615d,_0x4bec36]of _0x4ddba0['attributes'])this['_isRegisteredAttribute'](_0x4e615d)&&(_0x13c46d['attributes']['has'](_0x4e615d)||_0x57b4e0['push']({'key':_0x4e615d,'newValue':_0x4bec36,'oldValue':null,'range':_0x3a829c}));}0x0!=_0x57b4e0['length']&&_0x5ccec0['model']['enqueueChange'](_0x9156dc,_0x5047fa=>{const _0x4c8e21=_0x164670();for(const {range:_0x29374a,key:_0x49a4bc,oldValue:_0x53c674,newValue:_0x5e8aec}of _0x57b4e0)this['markAttributeChange'](_0x29374a,_0x49a4bc,_0x53c674,_0x5e8aec,{'groupId':_0x4c8e21});this['_reduceExistingSuggestions'](_0x5047fa,_0x57b4e0);});},{'priority':'lowest'}),_0x5ccec0['model']['markers']['on']('update:suggestion',(_0x3a0dfe,_0x4d02d1,_0x2f194b)=>{if(null==_0x2f194b){const {id:_0xef9954}=this['_splitMarkerName'](_0x4d02d1['name']),_0x1866f9=this['_suggestions']['get'](_0xef9954);_0x1866f9&&_0x1866f9['addMarkerName'](_0x4d02d1['name']);}}),_0x5ccec0['model']['document']['on']('change:data',()=>{const _0x78c4aa=Array['from'](_0x5ccec0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3d2631=>'suggestion'===this['_splitMarkerName'](_0x3d2631['name'])['group']);if(0x0===_0x78c4aa['length'])return;_0x78c4aa['sort']((_0x4dcd80,_0x14bc4b)=>{const _0x1eb595=_0x4dcd80['data']['oldRange'],_0x478f85=_0x14bc4b['data']['oldRange'];return null===_0x1eb595&&null===_0x478f85?0x0:null===_0x1eb595&&null!==_0x478f85?-0x1:null!==_0x1eb595&&null===_0x478f85?0x1:_0x1eb595['start']['isBefore'](_0x478f85['start'])?-0x1:0x1;});const _0x1c7d3c=new Set(),_0x488d72=new Set();for(const {name:_0xf7df4e,data:_0x2b0c1a}of _0x78c4aa){const {id:_0x2fb71a}=this['_splitMarkerName'](_0xf7df4e);if(null===_0x2b0c1a['oldRange']){const _0x2a5062=this['_handleNewSuggestionMarker'](_0xf7df4e);_0x488d72['add'](_0x2a5062);}else{const _0x594dec=this['_suggestions']['get'](_0x2fb71a);null!==_0x2b0c1a['newRange']||_0x594dec['isInContent']?(_0x1c7d3c['add'](_0x594dec['head']),_0x488d72['add'](_0x594dec)):this['_removeSuggestion'](_0x594dec);}}_0x488d72['size']>0x0&&this['_refreshSuggestionsChain'](_0x488d72);for(const _0x3bdb00 of _0x1c7d3c)this['fire']('suggestionChanged',_0x3bdb00);}),_0x5ccec0['model']['on']('applyOperation',(_0x258fc0,_0x93ba49)=>{const _0x2f3028=_0x93ba49[0x0];if(!this['_suggestions']['size'])return;if(!_0x2f3028['isDocumentOperation'])return;if(_0x2f3028['batch']['isUndo']||!_0x2f3028['batch']['isLocal'])return;let _0x191dcf,_0x373232;switch(_0x2f3028['type']){case'insert':_0x191dcf=_0x5ccec0['model']['createPositionAt'](_0x2f3028['position']),_0x373232=_0x191dcf['getShiftedBy'](_0x2f3028['howMany']);break;case'split':_0x191dcf=_0x5ccec0['model']['createPositionAt'](_0x2f3028['splitPosition']),_0x373232=_0x5ccec0['model']['createPositionAt'](_0x2f3028['moveTargetPosition']);break;case'move':_0x191dcf=_0x5ccec0['model']['createPositionAt'](_0x2f3028['targetPosition']),_0x373232=_0x191dcf['getShiftedBy'](_0x2f3028['howMany']);break;default:return;}const _0x57e798=_0x5ccec0['model']['createRange'](_0x191dcf,_0x373232);_0x5ccec0['model']['change'](()=>{for(const {suggestion:_0x5b8145,meta:_0x3435a9}of this['_findSuggestions'](_0x57e798)){if(_0x5b8145['isMultiRange'])continue;if('formatInline'==_0x5b8145['type'])continue;const _0x54cb7e=this['_getAttributeKey'](_0x5b8145);if(_0x54cb7e&&this['_isBlockAttribute'](_0x54cb7e)&&'split'!=_0x2f3028['type'])continue;const _0x4303bf=_0x5b8145['data']&&_0x5b8145['data']['multipleBlocks'];('formatBlock'!=_0x5b8145['type']||'split'==_0x2f3028['type']&&!_0x4303bf)&&(_0x3435a9['containsRangeInObject']||'insertion'==_0x5b8145['type']&&_0x3435a9['isOwn']||_0x5b8145['getFirstRange']()['containsRange'](_0x57e798)&&this['_breakSuggestionMarker'](_0x5b8145,_0x191dcf,_0x373232));}});},{'priority':'lowest'}),_0x5ccec0['model']['on']('deleteContent',(_0xe29d9f,_0x3ac436)=>{const _0x3e52f0=_0x3ac436[0x0],_0x2a985b=_0x3ac436[0x1];if(_0x2a985b&&_0x2a985b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3e52f0['isCollapsed'])return;const _0x31dc0e=_0x5ccec0['model']['schema'],{start:_0x44470b,end:_0x52cd77}=_0x3e52f0['getFirstRange'](),_0x148c60=_0x44470b['nodeAfter']&&_0x31dc0e['isLimit'](_0x44470b['nodeAfter'])?null:_0x31dc0e['getNearestSelectionRange'](_0x44470b,'forward'),_0x3c7310=_0x52cd77['nodeBefore']&&_0x31dc0e['isLimit'](_0x52cd77['nodeBefore'])?null:_0x31dc0e['getNearestSelectionRange'](_0x52cd77,'backward'),_0x4de046=_0x5ccec0['model']['createRange'](_0x148c60?_0x148c60['start']:_0x44470b,_0x3c7310?_0x3c7310['end']:_0x52cd77);_0x5ccec0['model']['change'](_0xc632d6=>{this['markDeletion'](_0x4de046);const _0x241fe9=_0x5ccec0['model']['schema']['getNearestSelectionRange'](_0x4de046['start']);_0x3e52f0['is']('documentSelection')?_0xc632d6['setSelection'](_0x241fe9):_0x3e52f0['setTo'](_0x241fe9);}),_0xe29d9f['stop']();},{'priority':_0x4d7128['normal']+0xa}),_0x5ccec0['model']['on']('insertContent',(_0x55dc9b,_0x39ee93)=>{const _0x4d65b4=_0x39ee93[_0x39ee93['length']-0x1];_0x4d65b4&&_0x4d65b4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5ccec0['model']['change'](()=>{let _0x1e765e=_0x5ccec0['model']['insertContent'](_0x39ee93[0x0],_0x39ee93[0x1],_0x39ee93[0x2],{'forceDefaultExecution':!0x0});if(!_0x1e765e)return;_0x55dc9b['return']=_0x1e765e['clone']();const _0x534654=_0x1e765e['end']['nodeBefore'],_0xbfe996=_0x5ccec0['model']['schema'];_0x534654&&_0xbfe996['isBlock'](_0x534654)&&!_0xbfe996['isObject'](_0x534654)&&(_0x1e765e=_0x5ccec0['model']['createRange'](_0x1e765e['start'],_0x5ccec0['model']['createPositionAt'](_0x534654,'end'))),this['markInsertion'](_0x1e765e);}),_0x55dc9b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x59ee93=new O(_0x5ccec0,this['_suggestions']);_0x5ccec0['commands']['add']('acceptSuggestion',_0x59ee93),this['enableCommand']('acceptSuggestion');const _0x3aa391=new R(_0x5ccec0,this['_suggestions']);_0x5ccec0['commands']['add']('discardSuggestion',_0x3aa391),this['enableCommand']('discardSuggestion'),_0x5ccec0['commands']['add']('acceptAllSuggestions',new x(_0x5ccec0,_0x59ee93,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5ccec0['commands']['add']('discardAllSuggestions',new x(_0x5ccec0,_0x3aa391,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5ccec0['commands']['add']('acceptSelectedSuggestions',new E(_0x5ccec0,_0x59ee93,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5ccec0['commands']['add']('discardSelectedSuggestions',new E(_0x5ccec0,_0x3aa391,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xa97417=_0x5ccec0['plugins']['get']('CommentsRepository');this['listenTo'](_0xa97417,'addComment',(_0x585e7e,{threadId:_0x4bd9c0})=>{const _0x2401fe=this['_suggestions']['get'](_0x4bd9c0);_0x2401fe&&_0x2401fe['commentThread']&&0x1===_0x2401fe['commentThread']['length']&&this['_updateSuggestionData'](_0x4bd9c0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xa97417,'removeComment',(_0x108478,{threadId:_0x2837b2})=>{const _0x1e265e=this['_suggestions']['get'](_0x2837b2);_0x1e265e&&_0x1e265e['commentThread']&&!_0x1e265e['commentThread']['length']&&this['_updateSuggestionData'](_0x2837b2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xa15698){const _0x39e657=_0x4f1bba([0x61,0x47,0x32,0x4d,0x6b,0x58,0x34,0x42,0x6a,0x6f,0x64,0x41,0x4b,0x67,0x39,0x35,0x75,0x71,0x70,0x45,0x51,0x4c,0x6d,0x4f,0x50,0x37,0x48,0x78,0x59,0x63,0x79,0x57,0x36,0x69,0x54,0x30,0x68,0x6e,0x56,0x65,0x73,0x52,0x33,0x72,0x7a,0x4a,0x31,0x49,0x38,0x74,0x46,0x77,0x5a,0x44,0x55,0x66,0x53,0x76,0x4e,0x43,0x6c,0x62]),_0x494d24=0x4fba003c,_0x2a408c=0x4fbd6274^_0x494d24,_0x3e4d25=window[_0x4f1bba([0x44,0x61,0x74,0x65])][_0x4f1bba([0x6e,0x6f,0x77])](),_0x5058ee=_0xa15698[_0x4f1bba([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47a20e=new window[(_0x4f1bba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d3270=>{_0x5058ee[_0x4f1bba([0x6f,0x6e,0x63,0x65])](_0x4f1bba([0x72,0x65,0x61,0x64,0x79]),_0x1d3270);}),_0x2d6e8f={[_0x4f1bba([0x6b,0x74,0x79])]:_0x4f1bba([0x45,0x43]),[_0x4f1bba([0x75,0x73,0x65])]:_0x4f1bba([0x73,0x69,0x67]),[_0x4f1bba([0x63,0x72,0x76])]:_0x4f1bba([0x50,0x2d,0x32,0x35,0x36]),[_0x4f1bba([0x78])]:_0x4f1bba([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4f1bba([0x79])]:_0x4f1bba([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4f1bba([0x61,0x6c,0x67])]:_0x4f1bba([0x45,0x53,0x32,0x35,0x36])},_0x17827f=_0x5058ee[_0x4f1bba([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f1bba([0x67,0x65,0x74])](_0x4f1bba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4c3417(){let _0x5cea91,_0x2a3b00=null,_0x10364b=null;try{if(_0x17827f==_0x4f1bba([0x47,0x50,0x4c]))return _0x4f1bba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5cea91=_0x1a11e1(),!_0x5cea91)return _0x4f1bba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5cea91[_0x4f1bba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10364b=_0x51bd6a(_0x5cea91[_0x4f1bba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5cea91[_0x4f1bba([0x6a,0x74,0x69])])),await _0xf19cc8()?_0x530546()?_0x29f9ef()?_0x4f1bba([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x450869()?(_0x5cea91[_0x4f1bba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f1bba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a3b00=_0x2064b3(_0x4f1bba([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5cea91[_0x4f1bba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f1bba([0x74,0x72,0x69,0x61,0x6c])&&(_0x2a3b00=_0x2064b3(_0x4f1bba([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36d7db()):_0x4f1bba([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f1bba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f1bba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1a72b3){return _0x4f1bba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x29f9ef(){const _0x299c28=[_0x4f1bba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f1bba([0x74,0x72,0x69,0x61,0x6c])][_0x4f1bba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cea91[_0x4f1bba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e4d25/0x3e8:0xe10*_0x2a408c;return _0x5cea91[_0x4f1bba([0x65,0x78,0x70])]<_0x299c28;}function _0x530546(){const _0x464ec5=_0x5cea91[_0x4f1bba([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x464ec5)return!0x1;if(_0x464ec5[_0x4f1bba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1bba([0x2a])))return!0x0;if(_0x464ec5[_0x4f1bba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1bba([0x54,0x43])))return!0x0;if(_0x464ec5[_0x4f1bba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1bba([0x52,0x54,0x43]))){if(_0xba7c68())return!0x0;if(_0x30b9cc()||_0x486c05())return!0x0;}return!0x1;}function _0x450869(){const _0x3ca50c=_0x5cea91[_0x4f1bba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ca50c||0x0==_0x3ca50c[_0x4f1bba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x497ffa}=new URL(window[_0x4f1bba([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ca50c[_0x4f1bba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x497ffa))return!0x0;const _0x3940cd=_0x497ffa[_0x4f1bba([0x73,0x70,0x6c,0x69,0x74])](_0x4f1bba([0x2e]));return _0x3ca50c[_0x4f1bba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ed905=>_0x1ed905[_0x4f1bba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f1bba([0x2a])))[_0x4f1bba([0x6d,0x61,0x70])](_0x24e7de=>_0x24e7de[_0x4f1bba([0x73,0x70,0x6c,0x69,0x74])](_0x4f1bba([0x2e])))[_0x4f1bba([0x73,0x6f,0x6d,0x65])](_0x26ba60=>_0x3940cd[_0x4f1bba([0x65,0x76,0x65,0x72,0x79])]((_0x2d2340,_0x32bef5)=>_0x26ba60[_0x32bef5]===_0x2d2340||_0x26ba60[_0x32bef5]===_0x4f1bba([0x2a])));}function _0x36d7db(){return _0x2a3b00&&_0x10364b?new window[(_0x4f1bba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55033e,_0x55014b)=>{_0x2a3b00[_0x4f1bba([0x74,0x68,0x65,0x6e])](_0x55033e,_0x55014b),_0x10364b[_0x4f1bba([0x74,0x68,0x65,0x6e])](_0x1ca6b4=>{_0x1ca6b4!=_0x4f1bba([0x56,0x61,0x6c,0x69,0x64])&&_0x55033e(_0x1ca6b4);},_0x55014b);}):_0x2a3b00||_0x10364b||_0x4f1bba([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51bd6a(_0x503a48,_0x149f65){return new window[(_0x4f1bba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ece62=>{if(_0x1b7ed6())return _0x1ece62(_0x4f1bba([0x56,0x61,0x6c,0x69,0x64]));_0x565ad3(),_0x5058ee[_0x4f1bba([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f1bba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2be848=!0x1;const _0x1ec39f=_0x164670();function _0x290664(_0xb8a942){return!!_0xb8a942&&(typeof _0xb8a942===_0x4f1bba([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb8a942===_0x4f1bba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb8a942[_0x4f1bba([0x74,0x68,0x65,0x6e])]===_0x4f1bba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb8a942[_0x4f1bba([0x63,0x61,0x74,0x63,0x68])]===_0x4f1bba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ba24c(_0x89ab6f){_0x204d67(_0x89ab6f)[_0x4f1bba([0x74,0x68,0x65,0x6e])](_0x184446=>{if(!_0x184446||_0x184446[_0x4f1bba([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f1bba([0x6f,0x6b]))return _0x4f1bba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x353b5d(_0x1a438e(_0x1ec39f+_0x149f65))!=_0x184446[_0x4f1bba([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f1bba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f1bba([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f1bba([0x74,0x68,0x65,0x6e])](_0x305205=>(_0x24fa30(),_0x305205),()=>{const _0x335bb8=_0x47665f();return null==_0x335bb8?(_0x24fa30(),_0x4f1bba([0x56,0x61,0x6c,0x69,0x64])):_0x4f1bba(_0x3e4d25-_0x335bb8>(0x6bb6843c^_0x494d24)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f1bba([0x74,0x68,0x65,0x6e])](_0x1ece62)[_0x4f1bba([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ece62(_0x4f1bba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20ef8f=0x4f8ceebc^_0x494d24;function _0x24fa30(){const _0x1fb6bd=_0x4f1bba([0x6c,0x6c,0x63,0x74,0x2d])+_0x353b5d(_0x1a438e(_0x503a48)),_0x44e5e9=_0x4a140d(_0x353b5d(window[_0x4f1bba([0x4d,0x61,0x74,0x68])][_0x4f1bba([0x63,0x65,0x69,0x6c])](_0x3e4d25/_0x20ef8f)));window[_0x4f1bba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f1bba([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fb6bd,_0x44e5e9);}function _0x47665f(){const _0x5d8431=_0x4f1bba([0x6c,0x6c,0x63,0x74,0x2d])+_0x353b5d(_0x1a438e(_0x503a48)),_0x33c10b=window[_0x4f1bba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f1bba([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d8431);return _0x33c10b?window[_0x4f1bba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a140d(_0x33c10b),0x10)*_0x20ef8f:null;}function _0x204d67(_0x4a1d62){return new window[(_0x4f1bba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3173b9,_0x1ab16b)=>{_0x4a1d62[_0x4f1bba([0x74,0x68,0x65,0x6e])](_0x3173b9,_0x1ab16b),window[_0x4f1bba([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ab16b,0x4fbbd4fc^_0x494d24);});}}_0x5058ee[_0x4f1bba([0x6f,0x6e])](_0x4f1bba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4dcebf,_0x181c07)=>{if(_0x181c07[0x0]!=_0x503a48)return _0x1ece62(_0x4f1bba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x181c07[0x1]={..._0x181c07[0x1],[_0x4f1bba([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1ec39f};},{[_0x4f1bba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f1bba([0x68,0x69,0x67,0x68])}),_0x5058ee[_0x4f1bba([0x6f,0x6e])](_0x4f1bba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x507e17=>{_0x290664(_0x507e17[_0x4f1bba([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2be848=!0x0,_0x4ba24c(_0x507e17[_0x4f1bba([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f1bba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f1bba([0x6c,0x6f,0x77])}),_0x47a20e[_0x4f1bba([0x74,0x68,0x65,0x6e])](()=>{_0x2be848||_0x1ece62(_0x4f1bba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b7ed6(){return _0x5058ee[_0x4f1bba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f1bba([0x76,0x69,0x65,0x77])][_0x4f1bba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f1bba([0x61,0x75,0x74,0x6f]);}function _0x565ad3(){_0x5058ee[_0x4f1bba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f1bba([0x76,0x69,0x65,0x77])][_0x4f1bba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f1bba([0x61,0x75,0x74,0x6f]);}}function _0x2064b3(_0x2ca1f5){const _0x1eb1b7=[new window[(_0x4f1bba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1871b6=>setTimeout(_0x1871b6,0x4fb33ef0^_0x494d24)),_0x47a20e[_0x4f1bba([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f1bba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b61c0=>{let _0x253798=0x0;_0x5058ee[_0x4f1bba([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1bba([0x6f,0x6e])](_0x4f1bba([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3cde1b,_0x4caabc)=>{_0x4caabc[0x0][_0x4f1bba([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x253798++,_0x253798==(0x4fba01c4^_0x494d24)&&(_0x5b61c0(),_0x3cde1b[_0x4f1bba([0x6f,0x66,0x66])]());});}))];return window[_0x4f1bba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f1bba([0x72,0x61,0x63,0x65])](_0x1eb1b7)[_0x4f1bba([0x74,0x68,0x65,0x6e])](()=>_0x2ca1f5);}async function _0x19ea4d(){await _0x47a20e,_0x5058ee[_0x4f1bba([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1bba([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4da7f2,_0x5058ee[_0x4f1bba([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f1bba([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4da7f2,_0x5058ee[_0x4f1bba([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f1bba([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xba7c68(){return _0x37b702(_0x4f1bba([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4049b9(_0x4f1bba([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f1bba([0x73,0x74,0x61,0x74,0x65])]==_0x4f1bba([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x30b9cc(){return _0x37b702(_0x4f1bba([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x486c05(){return _0x37b702(_0x4f1bba([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x353098(_0x22287b){const _0x591de9=_0x6b15b();_0x5058ee[_0x591de9]=_0x4f1bba([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22287b,_0x22287b!=_0x4f1bba([0x56,0x61,0x6c,0x69,0x64])&&_0x19ea4d();}function _0x6b15b(){const _0x47ed70=window[_0x4f1bba([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f1bba([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f1bba([0x6e,0x6f,0x77])]())[_0x4f1bba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f1bba([0x2e]),'');let _0x487c6d=_0x4f1bba([0x61]);for(let _0x49953a=0x0;_0x49953a<_0x47ed70[_0x4f1bba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49953a+=0x2){let _0x5b4e11=window[_0x4f1bba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47ed70[_0x4f1bba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49953a,_0x49953a+0x2));_0x5b4e11>=_0x39e657[_0x4f1bba([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b4e11-=_0x39e657[_0x4f1bba([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x487c6d+=_0x39e657[_0x5b4e11];}return _0x487c6d;}function _0x1a11e1(){const _0x132870=_0x17827f[_0x4f1bba([0x73,0x70,0x6c,0x69,0x74])](_0x4f1bba([0x2e]));if(0x3!=_0x132870[_0x4f1bba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a3a05(_0x132870[0x1]);function _0x5a3a05(_0x43d2c3){const _0x2ce8cd=_0x26be7e(_0x43d2c3);return _0x2ce8cd&&_0x3776c1()?_0x2ce8cd:null;function _0x3776c1(){const _0x500f32=_0x2ce8cd[_0x4f1bba([0x6a,0x74,0x69])],_0x204998=window[_0x4f1bba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x500f32[_0x4f1bba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x500f32[_0x4f1bba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a75fc={..._0x2ce8cd,[_0x4f1bba([0x6a,0x74,0x69])]:_0x500f32[_0x4f1bba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x500f32[_0x4f1bba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a75fc[_0x4f1bba([0x76,0x63])],_0x1a438e(_0x3a75fc)==_0x204998;}}}async function _0xf19cc8(){let _0x1b16cb=!0x0;try{const _0x59f404=_0x17827f[_0x4f1bba([0x73,0x70,0x6c,0x69,0x74])](_0x4f1bba([0x2e])),[_0x16144e,_0x3fb7cd,_0x3032d3]=_0x59f404;return _0x16cec9(_0x16144e),await _0x2140f5(_0x16144e,_0x3fb7cd,_0x3032d3),_0x1b16cb;}catch(_0x263104){return!0x1;}function _0x16cec9(_0x28050a){const _0x5d9d3a=_0x26be7e(_0x28050a);_0x5d9d3a&&_0x5d9d3a[_0x4f1bba([0x61,0x6c,0x67])]==_0x4f1bba([0x45,0x53,0x32,0x35,0x36])||(_0x1b16cb=!0x1);}async function _0x2140f5(_0x6dc605,_0x1fd2f9,_0x1ba3e4){const _0x574578=window[_0x4f1bba([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f1bba([0x66,0x72,0x6f,0x6d])](_0x402798(_0x1ba3e4),_0x1dc6e0=>_0x1dc6e0[_0x4f1bba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3a1645=new window[(_0x4f1bba([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f1bba([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6dc605+_0x4f1bba([0x2e])+_0x1fd2f9),_0x35657b=window[_0x4f1bba([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f1bba([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x35657b)return;const _0x4902e7=await _0x35657b[_0x4f1bba([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f1bba([0x6a,0x77,0x6b]),_0x2d6e8f,{[_0x4f1bba([0x6e,0x61,0x6d,0x65])]:_0x4f1bba([0x45,0x43,0x44,0x53,0x41]),[_0x4f1bba([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f1bba([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f1bba([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x35657b[_0x4f1bba([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f1bba([0x6e,0x61,0x6d,0x65])]:_0x4f1bba([0x45,0x43,0x44,0x53,0x41]),[_0x4f1bba([0x68,0x61,0x73,0x68])]:{[_0x4f1bba([0x6e,0x61,0x6d,0x65])]:_0x4f1bba([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4902e7,_0x574578,_0x3a1645)||(_0x1b16cb=!0x1);}}function _0x26be7e(_0x681626){return _0x681626[_0x4f1bba([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f1bba([0x65,0x79]))?JSON[_0x4f1bba([0x70,0x61,0x72,0x73,0x65])](_0x402798(_0x681626)):null;}function _0x402798(_0x3a28ea){return window[_0x4f1bba([0x61,0x74,0x6f,0x62])](_0x3a28ea[_0x4f1bba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f1bba([0x2b]))[_0x4f1bba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f1bba([0x2f])));}function _0x1a438e(_0x12c366){let _0x32d3d2=0x1505;function _0x14ada5(_0x392873){for(let _0x5952cf=0x0;_0x5952cf<_0x392873[_0x4f1bba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5952cf++){const _0x521ba3=_0x392873[_0x4f1bba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5952cf);_0x32d3d2=(_0x32d3d2<<0x5)+_0x32d3d2+_0x521ba3,_0x32d3d2&=_0x32d3d2;}}function _0x2b115b(_0x1d5ff9){Array[_0x4f1bba([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d5ff9)?_0x1d5ff9[_0x4f1bba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b115b):_0x1d5ff9&&typeof _0x1d5ff9==_0x4f1bba([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f1bba([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d5ff9)[_0x4f1bba([0x73,0x6f,0x72,0x74])]()[_0x4f1bba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4316ef,_0x49b1a8])=>{_0x14ada5(_0x4316ef),_0x2b115b(_0x49b1a8);}):_0x14ada5(window[_0x4f1bba([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d5ff9));}return _0x2b115b(_0x12c366),_0x32d3d2>>>0x0;}function _0x353b5d(_0x5d0db8){return _0x5d0db8[_0x4f1bba([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f1bba([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f1bba([0x30]));}function _0x4a140d(_0x5364ba){return _0x5364ba[_0x4f1bba([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f1bba([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f1bba([0x6a,0x6f,0x69,0x6e])]('');}function _0x37b702(_0x26f4f3){return _0x5058ee[_0x4f1bba([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f1bba([0x68,0x61,0x73])](_0x26f4f3);}function _0x4049b9(_0x15cce5){return _0x5058ee[_0x4f1bba([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f1bba([0x67,0x65,0x74])](_0x15cce5);}function _0x4da7f2(){}function _0x4f1bba(_0xadfce8){return _0xadfce8['map'](_0x46eb8b=>String['fromCharCode'](_0x46eb8b))['join']('');}_0x353098(await _0x4c3417());}(this);}set['adapter'](_0x1cec83){if(this['_adapter'])throw new _0x4090ca('track-changes-adapter-already-set',this);this['_adapter']=_0x1cec83;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2d3239=!0x1,toJSON:_0x64ff2c=!0x1}={}){const _0x5d251b=[];for(const _0x5296b7 of this['_suggestions']['values']())_0x2d3239&&!_0x5296b7['isInContent']||_0x5d251b['push'](_0x5296b7);return _0x64ff2c?_0x5d251b['map'](_0x24d85f=>_0x24d85f['toJSON']()):_0x5d251b;}['getSuggestion'](_0x468377){const _0x39c92b=this['_suggestions']['get'](_0x468377);if(!_0x39c92b)throw new _0x4090ca('track-changes-suggestion-not-found',this);return _0x39c92b;}['hasSuggestion'](_0x31ac7f){return this['_suggestions']['has'](_0x31ac7f);}['addSuggestionData'](_0x237428){const {authorId:_0x1874ba,id:_0x6fadeb,attributes:_0x5a21d7}=_0x237428,[_0x5cdcae,_0x246fb9]=_0x237428['type']['split'](':'),_0x40a592=this['_suggestions']['get'](_0x6fadeb)||this['_createSuggestion'](_0x5cdcae,_0x246fb9,_0x6fadeb,_0x1874ba,_0x5a21d7);if(this['_addThreadToSuggestion'](_0x40a592),this['_checkSuggestionCorrectness'](_0x40a592,_0x5cdcae,_0x246fb9||null,_0x1874ba),_0x40a592['createdAt']=_0x237428['createdAt'],_0x40a592['_isDataLoaded']=!0x0,_0x5a21d7&&_0x5a21d7['@external']){const _0x35ab08=_0x5a21d7['@external'],_0x3781a3=this['_getExternalAuthor'](_0x35ab08['authorName']);_0x40a592['authoredAt']=_0x35ab08['createdAt'],_0x40a592['author']=_0x3781a3,_0x40a592['isExternal']=!0x0;}else _0x40a592['authoredAt']=_0x237428['createdAt'];switch(_0x237428['data']&&(_0x40a592['data']=_0x237428['data']),_0x237428['attributes']&&(_0x40a592['attributes']=_0x237428['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x40a592['_saved']=!0x0),this['_suggestionState']['get'](_0x40a592)){case'notReady':this['_suggestionState']['set'](_0x40a592,'dataReady');break;case'markerReady':_0x40a592['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x40a592])),this['_refreshSuggestionsChain'](new Set([_0x40a592])),this['_suggestionState']['set'](_0x40a592,'ready'),this['fire']('suggestionLoaded',_0x40a592)):this['_suggestionState']['set'](_0x40a592,'removed');}return _0x40a592;}['acceptSuggestion'](_0x28611d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x493e4e of _0x28611d['getAllAdjacentSuggestions']())_0x493e4e['accept']();});});}['discardSuggestion'](_0x379741){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c4552 of _0x379741['getAllAdjacentSuggestions']())_0x3c4552['discard']();});});}['enableCommand'](_0xd5b54c,_0x5df6e3){const _0x9bf677=this['editor']['commands']['get'](_0xd5b54c);if(!_0x9bf677)throw new _0x4090ca('track-changes-command-not-found',this,{'commandName':_0xd5b54c});if(this['_enabledCommands']['has'](_0x9bf677))throw new _0x4090ca('track-changes-enable-command-twice',this,{'commandName':_0xd5b54c});this['_enabledCommands']['add'](_0x9bf677),_0x5df6e3&&_0x9bf677['on']('execute',(_0xc8c75c,_0x59436f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x59436f['length']>0x0&&_0x59436f[_0x59436f['length']-0x1]&&_0x59436f[_0x59436f['length']-0x1]['forceDefaultExecution']?_0x59436f['pop']():(_0xc8c75c['return']=_0x5df6e3((..._0x4e971a)=>_0x9bf677['execute'](..._0x4e971a,{'forceDefaultExecution':!0x0}),..._0x59436f),_0xc8c75c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x137c59){let _0xeff8dc,_0x214bea;const _0x456dfd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xeff8dc=_0x137c59();}catch(_0x192e65){_0x214bea=_0x192e65;}return _0x456dfd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x214bea&&_0x4090ca['rethrowUnexpectedError'](_0x214bea,this),_0xeff8dc;}['markInsertion'](_0x22ebc8,_0x16b805=null,_0x433321={}){if(_0x22ebc8['isCollapsed'])return null;const _0x290c71=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x45994e,meta:_0x48cdae}of this['_findSuggestions'](_0x22ebc8,'insertion'))if(_0x48cdae['isOwn']){if(!_0x48cdae['isNextTo']){if(_0x48cdae['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x45994e,_0x433321))continue;return _0x45994e;}if(Qt(_0x45994e,_0x433321))return _0x45994e;this['_breakSuggestionMarker'](_0x45994e,_0x22ebc8['start'],_0x22ebc8['end']);break;}if(_0x16b805==_0x45994e['subType']&&Qt(_0x45994e,_0x433321)){const _0xd98922=_0x45994e['getFirstRange']();return _0xd98922['start']['isEqual'](_0x22ebc8['end'])?this['_setSuggestionRange'](_0x45994e,this['_model']['createRange'](_0x22ebc8['start'],_0xd98922['end'])):this['_setSuggestionRange'](_0x45994e,this['_model']['createRange'](_0xd98922['start'],_0x22ebc8['end'])),_0x45994e;}}const _0x9beb94=_0x164670(),_0x548a96=_0x290c71['id'],_0xa3634d=_0x16b805?'insertion:'+_0x16b805:'insertion',_0x782420=this['_setSuggestionData']({'id':_0x9beb94,'type':_0xa3634d,'createdAt':new Date(),'authorId':_0x548a96,'attributes':_0x433321});return this['_addSuggestionMarker'](_0xa3634d,_0x9beb94,_0x548a96,_0x22ebc8),_0x782420;}['markMultiRangeInsertion'](_0x52e4e6,_0x40bcfa='multi',_0x4174f5={}){const _0x110b19=this['editor']['plugins']['get']('Users')['me'],_0x11f591=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x40bcfa,'join');for(const _0x27d6f5 of this['getSuggestions']())if(_0x27d6f5['author']['id']==_0x110b19['id']&&'insertion'==_0x27d6f5['type']&&_0x27d6f5['subType']==_0x40bcfa&&Qt(_0x27d6f5,_0x4174f5)&&(_0x11f591(_0x27d6f5['getRanges'](),_0x52e4e6)||_0x11f591(_0x52e4e6,_0x27d6f5['getRanges']()))){for(const _0xa46d of _0x52e4e6)_0x27d6f5['addRange'](_0xa46d);return _0x27d6f5;}for(const {suggestion:_0x257047,meta:_0x105893}of this['_findSuggestions'](_0x52e4e6,'insertion')){if(!_0x105893['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x105893['containsRangeInObject'])continue;if(!Qt(_0x257047,_0x4174f5))continue;let _0x58c1ef=!0x0;for(const _0xdcd242 of _0x257047['getRanges']())for(const _0x1d3f02 of _0x52e4e6)if(!_0xdcd242['containsRange'](_0x1d3f02)){_0x58c1ef=!0x1;break;}if(_0x58c1ef)return _0x257047;}const _0x272e86=_0x164670(),_0x310cbb=_0x110b19['id'],_0x23975b='insertion:'+_0x40bcfa,_0x14f589=this['_setSuggestionData']({'id':_0x272e86,'type':_0x23975b,'createdAt':new Date(),'authorId':_0x310cbb,'attributes':_0x4174f5});for(const _0x5895ff of _0x52e4e6)this['_addSuggestionMarker'](_0x23975b,_0x272e86,_0x310cbb,_0x5895ff,o['getMultiRangeId']());return _0x14f589;}['markInlineFormat'](_0x9acb51,_0x1810ca,_0x13406e=null,_0x53d658={}){if(_0x13406e=_0x13406e||Jt(_0x1810ca),_0x9acb51['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd8fa6e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13406e,'accept');return this['forceDefaultExecution'](()=>_0xd8fa6e([_0x9acb51],_0x1810ca,_0x53d658)),null;}const _0x1d4a3a=this['editor']['plugins']['get']('Users')['me'],_0x3cf42c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x405518,meta:_0x70e6a0}of this['_findSuggestions'](_0x9acb51,'insertion'))_0x70e6a0['isOwn']&&!_0x70e6a0['isInsideObject']&&_0x3cf42c['push'](..._0x405518['getRanges']());}const _0x9fec9f=function(_0x28b20f,_0x265448){const _0x3d81b8=[];for(const _0x3c2a21 of _0x265448){const _0x53ff9e=_0x28b20f['getIntersection'](_0x3c2a21);_0x53ff9e&&_0x3d81b8['push'](_0x53ff9e);}return _0x3d81b8;}(_0x9acb51,_0x3cf42c),_0x37b14e=function(_0x21a9d6,_0x32c5f3){const _0x5a7db5=[_0x21a9d6];for(const _0x2f008a of _0x32c5f3){let _0x1e569e=0x0;for(;_0x1e569e<_0x5a7db5['length'];){const _0x200567=_0x5a7db5[_0x1e569e]['getDifference'](_0x2f008a);_0x5a7db5['splice'](_0x1e569e,0x1,..._0x200567),_0x1e569e+=_0x200567['length'];}}return _0x5a7db5;}(_0x9acb51,_0x3cf42c);_0x9fec9f['length']&&this['_model']['change'](()=>{for(const _0x38c13f of _0x9fec9f){const _0x4616ba=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x13406e,'accept');this['forceDefaultExecution'](()=>_0x4616ba([_0x38c13f],_0x1810ca,_0x53d658));}});for(const _0x92aede of _0x37b14e){let _0x33a2ed=null,_0x5b45d3=_0x92aede['start'],_0x3b9208=_0x92aede['end'];for(const {suggestion:_0x5f233c,meta:_0x19e553}of this['_findSuggestions'](_0x92aede,'formatInline')){if(!_0x19e553['isOwn'])continue;if(_0x5f233c['subType']!=_0x13406e)continue;if(!Qt(_0x5f233c,_0x53d658))continue;const _0x18af5=_0x5f233c['getFirstRange']();if(_0x18af5['containsRange'](_0x92aede,!0x0))return null;_0x5b45d3=_0x5b45d3['isBefore'](_0x18af5['start'])?_0x5b45d3:_0x18af5['start'],_0x3b9208=_0x3b9208['isAfter'](_0x18af5['end'])?_0x3b9208:_0x18af5['end'],_0x33a2ed?_0x18af5['start']['isBefore'](_0x33a2ed['getFirstRange']()['start'])?(_0x33a2ed['removeMarkers'](),_0x33a2ed=_0x5f233c):_0x5f233c['removeMarkers']():_0x33a2ed=_0x5f233c;}const _0x3e5675=this['_model']['createRange'](_0x5b45d3,_0x3b9208);if(_0x33a2ed)this['_setSuggestionRange'](_0x33a2ed,_0x3e5675);else{const _0x446d0f=_0x164670(),_0x306d1a=_0x1d4a3a['id'];this['_setSuggestionData']({'id':_0x446d0f,'type':'formatInline:'+_0x13406e,'data':_0x1810ca,'createdAt':new Date(),'authorId':_0x306d1a,'attributes':_0x53d658}),this['_addSuggestionMarker']('formatInline:'+_0x13406e,_0x446d0f,_0x306d1a,_0x3e5675);}}return null;}['markBlockFormat'](_0x310a4a,_0x41a874,_0x2cda3e=[],_0x5708e0=null,_0x240acf={}){_0x41a874['formatGroupId']||(_0x41a874['formatGroupId']=_0x41a874['commandName']),_0x41a874['multipleBlocks']=_0x310a4a['is']('range'),_0x5708e0=_0x5708e0||Jt(_0x41a874);const _0xf87df0=_0x2cda3e['map'](_0x2353f8=>qt(_0x2353f8,this['_model'])),_0x199fcc=_0x310a4a['is']('range')?_0x310a4a:qt(_0x310a4a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x38a03e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5708e0,'accept');return this['forceDefaultExecution'](()=>_0x38a03e([_0x199fcc],_0x41a874,_0x240acf)),null;}_0xf87df0['push'](_0x199fcc);let _0x4ccb1c=!0x0;for(const _0x5f17f2 of _0xf87df0)if(!this['_rangeIsInLocalUserInsertion'](_0x5f17f2)){_0x4ccb1c=!0x1;break;}if(_0x4ccb1c&&'always'!==this['_trackFormatChanges']){const _0x337001=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5708e0,'accept');return this['forceDefaultExecution'](()=>_0x337001([_0x199fcc],_0x41a874,_0x240acf)),null;}let _0x3a8b2d=null,_0xce7f28=_0x199fcc['start'],_0x36913f=_0x199fcc['end'];for(const {suggestion:_0x2d9482,meta:_0x54ca5f}of this['_findSuggestions'](_0x199fcc,'formatBlock')){if(!_0x54ca5f['isOwn'])continue;if(_0x54ca5f['isNextTo']||_0x54ca5f['containsRangeInObject']||_0x54ca5f['isInsideObject'])continue;if(_0x2d9482['data']['formatGroupId']!=_0x41a874['formatGroupId'])continue;if(!Qt(_0x2d9482,_0x240acf))continue;const _0x2a0a57=_0x2d9482['getFirstRange']();if(_0x2d9482['subType']==_0x5708e0){if(_0x2a0a57['containsRange'](_0x199fcc,!0x0))return null;_0xce7f28=_0xce7f28['isBefore'](_0x2a0a57['start'])?_0xce7f28:_0x2a0a57['start'],_0x36913f=_0x36913f['isAfter'](_0x2a0a57['end'])?_0x36913f:_0x2a0a57['end'],_0x3a8b2d?_0x2a0a57['start']['isBefore'](_0x3a8b2d['getFirstRange']()['start'])?(_0x3a8b2d['removeMarkers'](),_0x3a8b2d=_0x2d9482):_0x2d9482['removeMarkers']():_0x3a8b2d=_0x2d9482;}else{const _0x1766a9=_0x199fcc['getIntersection'](_0x2a0a57);this['_cutOutSuggestionMarker'](_0x2d9482,_0x1766a9);}}const _0x576e86=this['editor']['plugins']['get']('Users')['me'],_0x1f91f2=_0x164670(),_0x52f96c=_0x576e86['id'];if(_0x3a8b2d)return this['_setSuggestionRange'](_0x3a8b2d,this['_model']['createRange'](_0xce7f28,_0x36913f)),_0x3a8b2d;{const _0x548c95=this['_setSuggestionData']({'id':_0x1f91f2,'type':'formatBlock:'+_0x5708e0,'data':_0x41a874,'createdAt':new Date(),'authorId':_0x52f96c,'attributes':_0x240acf});return this['_addSuggestionMarker']('formatBlock:'+_0x5708e0,_0x1f91f2,_0x52f96c,this['_model']['createRange'](_0xce7f28,_0x36913f)),_0x548c95;}}['markMultiRangeBlockFormat'](_0x344385,_0x3fca8c,_0x536dfc=[],_0x49a753=null,_0x41e8c7={}){_0x3fca8c['formatGroupId']||(_0x3fca8c['formatGroupId']=_0x3fca8c['commandName']);const _0x138da3=_0x344385[0x0];_0x3fca8c['multipleBlocks']=_0x138da3['is']('range'),_0x49a753=_0x49a753||Jt(_0x3fca8c);const _0x329962=_0x536dfc['map'](_0x3fd8fb=>qt(_0x3fd8fb,this['_model'])),_0x5397da=_0x138da3['is']('range')?_0x344385:_0x344385['map'](_0x28737b=>qt(_0x28737b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x153835=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49a753,'accept');return this['forceDefaultExecution'](()=>_0x153835(_0x5397da,_0x3fca8c,_0x41e8c7)),null;}_0x329962['push'](..._0x5397da);let _0x1fc976=!0x0;for(const _0xbcd264 of _0x329962)if(!this['_rangeIsInLocalUserInsertion'](_0xbcd264)){_0x1fc976=!0x1;break;}if(_0x1fc976&&'always'!==this['_trackFormatChanges']){const _0x4e11e8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49a753,'accept');return this['forceDefaultExecution'](()=>_0x4e11e8(_0x5397da,_0x3fca8c,_0x41e8c7)),null;}const _0x10a3f7=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d623d of this['getSuggestions']()){if(_0x3d623d['author']['id']!=_0x10a3f7['id'])continue;if('formatBlock'!=_0x3d623d['type']||_0x3d623d['data']['formatGroupId']!=_0x3fca8c['formatGroupId'])continue;if(!Qt(_0x3d623d,_0x41e8c7))continue;const _0x454547=_0x3d623d['subType']==_0x49a753;for(let _0x77d62b=0x0;_0x77d62b<_0x5397da['length'];_0x77d62b++){const _0x385d37=_0x5397da[_0x77d62b];for(const _0x1b7353 of _0x3d623d['getMarkers']()){const _0x11a39e=_0x1b7353['getRange']();if(_0x385d37['isEqual'](_0x11a39e)){_0x454547?(_0x5397da['splice'](_0x77d62b,0x1),_0x77d62b--):_0x3d623d['removeMarker'](_0x1b7353['name']);break;}}}}if(0x0==_0x5397da['length'])return null;const _0x5e3f73=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49a753,'join');for(const _0x3ffa93 of this['getSuggestions']())if(_0x3ffa93['author']['id']==_0x10a3f7['id']&&'formatBlock'==_0x3ffa93['type']&&_0x3ffa93['data']['formatGroupId']==_0x3fca8c['formatGroupId']&&_0x3ffa93['subType']==_0x49a753&&Qt(_0x3ffa93,_0x41e8c7)&&(_0x5e3f73(_0x3ffa93['getRanges'](),_0x5397da)||_0x5e3f73(_0x5397da,_0x3ffa93['getRanges']()))){for(const _0x26d4b3 of _0x5397da)_0x3ffa93['addRange'](_0x26d4b3);return _0x3ffa93;}const _0x4501e2=_0x164670(),_0x547541=_0x10a3f7['id'],_0xeffbf6='formatBlock:'+_0x49a753,_0x4e70c9=this['_setSuggestionData']({'id':_0x4501e2,'type':_0xeffbf6,'data':_0x3fca8c,'createdAt':new Date(),'authorId':_0x547541,'attributes':_0x41e8c7});for(const _0x11e449 of _0x5397da)this['_addSuggestionMarker'](_0xeffbf6,_0x4501e2,_0x547541,_0x11e449,o['getMultiRangeId']());return _0x4e70c9;}['markDeletion'](_0x504ac2,_0x767a6d=null,_0x1493d0={}){if(_0x504ac2['isCollapsed'])return null;const _0x3993fc=this['editor']['plugins']['get']('Users')['me'],_0x1299ed=new _0x542068(_0x504ac2['start'],_0x504ac2['end']);for(const {suggestion:_0x3a2598,meta:_0x431671}of this['_findSuggestions'](_0x1299ed,'insertion'))if(_0x431671['isOwn']&&!_0x431671['isNextTo']){if(_0x3a2598['isMultiRange']){const _0x358047=_0x3a2598['getRanges']()['filter'](_0xcdd68e=>'$graveyard'!=_0xcdd68e['root']['rootName']);_0x358047['every'](_0x316aa9=>_0x1299ed['containsRange'](_0x316aa9,!0x0))&&_0x3a2598['discard']();if(_0x358047['some'](_0x37ab09=>_0x37ab09['containsRange'](_0x1299ed,!0x0))){const _0x5f9b69=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x767a6d,'accept');return this['forceDefaultExecution'](()=>_0x5f9b69([_0x1299ed],null,_0x1493d0)),null;}}else{const _0x3aa0f7=_0x1299ed['getIntersection'](_0x3a2598['getFirstRange']());null!==_0x3aa0f7&&_0x3a2598['_onDiscard']([_0x3aa0f7],null,_0x1493d0);}}if(_0x1299ed['detach'](),_0x1299ed['isCollapsed']||'$graveyard'==_0x1299ed['root']['rootName'])return null;let _0x2da6ea=null,_0x5d8e01=_0x1299ed['start'],_0x22dfab=_0x1299ed['end'];const _0x4574de=this['_findSuggestions'](_0x1299ed,'deletion');for(const {suggestion:_0x26dbc9,meta:_0x509c6e}of _0x4574de){const _0x74a75f=this['_model']['createRange'](_0x5d8e01,_0x22dfab);if(_0x509c6e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x509c6e['containsRangeInObject']&&!_0x509c6e['isInsideObject'])){if(_0x26dbc9['isMultiRange']){if(!Qt(_0x26dbc9,_0x1493d0))continue;let _0x29d341=!0x0;for(const _0x5b4248 of _0x26dbc9['getRanges']()){if(_0x5b4248['containsRange'](_0x74a75f,!0x0))return _0x26dbc9;_0x74a75f['containsRange'](_0x5b4248)||(_0x29d341=!0x1);}_0x29d341&&_0x26dbc9['discard']();}else{const _0x421590=_0x26dbc9['getFirstRange']();if(_0x421590['containsRange'](_0x74a75f,!0x0))return _0x26dbc9;if(!Qt(_0x26dbc9,_0x1493d0)){_0x74a75f['containsRange'](_0x421590)?_0x26dbc9['removeMarkers']():_0x421590['containsPosition'](_0x5d8e01)?_0x5d8e01=_0x421590['end']:_0x421590['containsPosition'](_0x22dfab)&&(_0x22dfab=_0x421590['start']);continue;}_0x5d8e01=_0x5d8e01['isBefore'](_0x421590['start'])?_0x5d8e01:_0x421590['start'],_0x22dfab=_0x22dfab['isAfter'](_0x421590['end'])?_0x22dfab:_0x421590['end'],_0x1493d0=Object['assign']({},_0x26dbc9['attributes']),_0x2da6ea?_0x421590['start']['isBefore'](_0x2da6ea['getFirstRange']()['start'])?(_0x2da6ea['removeMarkers'](),_0x2da6ea=_0x26dbc9):_0x26dbc9['removeMarkers']():_0x2da6ea=_0x26dbc9;}}}if(_0x2da6ea)return this['_setSuggestionRange'](_0x2da6ea,this['_model']['createRange'](_0x5d8e01,_0x22dfab)),_0x2da6ea;{const _0x393391=_0x164670(),_0x2bb89c=this['_model']['createRange'](_0x5d8e01,_0x22dfab),_0xed9b2f=_0x3993fc['id'],_0x4435a9=_0x767a6d?'deletion:'+_0x767a6d:'deletion',_0x3df446=this['_setSuggestionData']({'id':_0x393391,'type':_0x4435a9,'createdAt':new Date(),'authorId':_0xed9b2f,'attributes':_0x1493d0});return this['_addSuggestionMarker'](_0x4435a9,_0x393391,_0xed9b2f,_0x2bb89c),_0x3df446;}}['markMultiRangeDeletion'](_0x1bf55f,_0x2f509c='multi',_0xb63303={}){const _0x1d922b=this['editor']['plugins']['get']('Users')['me'],_0x232953=_0x1bf55f['map'](_0x42773a=>new _0x542068(_0x42773a['start'],_0x42773a['end'])),_0x59ad00=new Set();for(const {suggestion:_0x36c2e5,meta:_0xf0dc67}of this['_findSuggestions'](_0x232953,'insertion'))_0xf0dc67['isOwn']&&!_0xf0dc67['isNextTo']&&_0x59ad00['add'](_0x36c2e5);for(const _0x322161 of _0x59ad00)if(_0x322161['isMultiRange']){const _0x5e86d2=_0x322161['getRanges']();(!_0x322161['attributes']||!_0x322161['attributes']['skipNestingCheck'])&&(_0x5e86d2['every'](_0x206299=>_0x232953['some'](_0x1ae4cf=>_0x1ae4cf['containsRange'](_0x206299,!0x0)))&&_0x322161['discard']());if(_0x232953['every'](_0x98a4d5=>_0x5e86d2['some'](_0xfcb805=>_0xfcb805['containsRange'](_0x98a4d5,!0x0)))){const _0x1f8b17=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f509c,'accept');return this['forceDefaultExecution'](()=>_0x1f8b17(_0x1bf55f,null,_0xb63303)),null;}}else{const _0x38df57=_0x322161['getFirstRange']();_0x232953['some'](_0x418430=>_0x418430['containsRange'](_0x38df57,!0x0))&&_0x322161['discard']();if(_0x232953['every'](_0x5c79b9=>_0x38df57['containsRange'](_0x5c79b9,!0x0))){const _0x49d8b6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f509c,'accept');return this['forceDefaultExecution'](()=>_0x49d8b6(_0x232953,null,_0xb63303)),null;}}const _0x412445=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f509c,'join');let _0x58bed6=null;for(const _0x5f3baa of this['getSuggestions']())if(_0x5f3baa['author']['id']==_0x1d922b['id']&&_0x5f3baa['isInContent']&&'deletion'==_0x5f3baa['type']&&_0x5f3baa['subType']==_0x2f509c&&Qt(_0x5f3baa,_0xb63303)&&(_0x412445(_0x5f3baa['getRanges'](),_0x232953)||_0x412445(_0x232953,_0x5f3baa['getRanges']()))){if(_0x58bed6){if(_0x5f3baa['commentThread']&&_0x5f3baa['commentThread']['length'])continue;for(const _0x5283a0 of _0x5f3baa['getRanges']())_0x58bed6['isIntersectingWithRange'](_0x5283a0)||_0x58bed6['addRange'](_0x5283a0);_0x5f3baa['removeMarkers']();}else{_0x58bed6=_0x5f3baa;for(const _0x41d7e9 of _0x232953)_0x5f3baa['isIntersectingWithRange'](_0x41d7e9)||_0x5f3baa['addRange'](_0x41d7e9);}}if(_0x58bed6)return _0x58bed6;_0x59ad00['clear']();for(const {suggestion:_0x1071a6,meta:_0x28b95b}of this['_findSuggestions'](_0x232953,'deletion'))_0x28b95b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x28b95b['containsRangeInObject']&&!_0x28b95b['isInsideObject'])&&Qt(_0x1071a6,_0xb63303)&&_0x59ad00['add'](_0x1071a6);for(const _0xcea24d of _0x59ad00){const _0x34b3e4=_0xcea24d['getRanges']();if(!_0xb63303||!_0xb63303['skipNestingCheck']){if(_0x232953['every'](_0x3726dd=>_0x34b3e4['some'](_0x3f4e5f=>_0x3f4e5f['containsRange'](_0x3726dd,!0x0))))return _0xcea24d;}(!_0xcea24d['attributes']||!_0xcea24d['attributes']['skipNestingCheck'])&&(_0x34b3e4['every'](_0x50b6cc=>_0x232953['some'](_0x9c8d30=>_0x9c8d30['containsRange'](_0x50b6cc,!0x0)))&&_0xcea24d['discard']());}const _0x4367cb=_0x164670(),_0x1b28a0=_0x1d922b['id'],_0x1e90e0='deletion:'+_0x2f509c,_0xd045f1=this['_setSuggestionData']({'id':_0x4367cb,'type':_0x1e90e0,'createdAt':new Date(),'authorId':_0x1b28a0,'attributes':_0xb63303});for(const _0xe35a63 of _0x232953)_0xe35a63['detach'](),_0xe35a63['isCollapsed']||'$graveyard'==_0xe35a63['root']['rootName']||this['_addSuggestionMarker'](_0x1e90e0,_0x4367cb,_0x1b28a0,_0xe35a63,o['getMultiRangeId']());return _0xd045f1;}['markAttributeChange'](_0x1e221a,_0x4b1335,_0x629061,_0x5e834a,_0x4b567f){if(_0x1e221a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5428c7=this['editor']['plugins']['get']('Users')['me']['id'],_0x152f47=Array['from'](this['_suggestions']['values']())['filter'](_0xf24b55=>'attribute'==_0xf24b55['type']&&_0xf24b55['data']['key']==_0x4b1335&&_0xf24b55['isIntersectingWithRange'](_0x1e221a));if('default'===this['_trackFormatChanges']){const _0x562823=this['_findSuggestions'](_0x1e221a,'insertion')['filter'](({meta:_0x4bd5c4})=>_0x4bd5c4['isOwn']&&!_0x4bd5c4['isInsideObject']&&!_0x4bd5c4['isNextTo'])['map'](({suggestion:_0xfd935c})=>_0xfd935c);_0x152f47['unshift'](..._0x562823);}const _0x546326=new Map([[_0x1e221a,_0x629061]]);for(const _0x53f64b of _0x152f47){const _0x397771='attribute'==_0x53f64b['type']?_0x53f64b['data']['oldValue']:void 0x0,_0xe0f441=_0x53f64b['getFirstRange'](),_0x70b0e3=Array['from'](_0x546326['keys']())['find'](_0x56df08=>_0x56df08['isIntersecting'](_0xe0f441));if(!_0x70b0e3)continue;const _0x1a51ca=_0x70b0e3['getDifference'](_0xe0f441);this['_isBlockAttribute'](_0x4b1335)&&'insertion'==_0x53f64b['type']&&0x0!=_0x1a51ca['length']||(_0x546326['delete'](_0x70b0e3),_0x1a51ca['forEach'](_0x36857e=>{_0x546326['set'](_0x36857e,_0x629061);}),'insertion'!=_0x53f64b['type']&&_0x397771!=_0x5e834a&&_0x546326['set'](_0x70b0e3['getIntersection'](_0xe0f441),_0x397771));}const _0x5ae811=[];for(const [_0x40d1e7,_0x35e6ae]of _0x546326){const _0x5c48d3=_0x164670(),_0x273a13={'key':_0x4b1335,'oldValue':_0x35e6ae,'newValue':_0x5e834a};_0x4b1335['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x4b1335});const _0x3ac520=('attribute:'+(_0x4b1335+'|'+Jt({'newValue':_0x5e834a})))['substring'](0x0,0x3c),_0x12e94f=this['_setSuggestionData']({'id':_0x5c48d3,'type':_0x3ac520,'data':_0x273a13,'createdAt':new Date(),'authorId':_0x5428c7,'attributes':_0x4b567f});_0x5ae811['push'](_0x12e94f),this['_addSuggestionMarker'](_0x3ac520,_0x5c48d3,_0x5428c7,_0x40d1e7);}return _0x5ae811;}['enableDefaultAttributesIntegration'](_0x569716){this['enableCommand'](_0x569716,(_0x8c68fe,..._0x422001)=>{this['_recordAttributeChanges'](()=>{_0x8c68fe(..._0x422001);});});}['registerBlockAttribute'](_0x20235b){this['_blockAttributeKeys']['add'](_0x20235b);}['registerInlineAttribute'](_0x257da2){this['_inlineAttributeKeys']['add'](_0x257da2);}['_getAttributeKey'](_0xe9e91e){return'attribute'==_0xe9e91e['type']?_0xe9e91e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x24d96a,_0x2e86dd){const _0x892911=_0x24d96a['getFirstMarker']();this['_model']['change'](_0x1f92d7=>{_0x1f92d7['updateMarker'](_0x892911,{'range':_0x2e86dd});});}['_addThreadToSuggestion'](_0x25a626){const _0x14bb82=_0x25a626['id'],_0x2b87d6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x14bb82)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2b87d6,'threadId':_0x14bb82,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x35bc6a=this['_commentsRepository']['getCommentThread'](_0x14bb82);_0x35bc6a['unbind']('isRemovable'),_0x35bc6a['isRemovable']=!0x1,_0x25a626['commentThread']=_0x35bc6a;}['_checkSuggestionCorrectness'](_0x181ace,_0x30074e,_0x275c30,_0x246580){if(_0x181ace['type']!=_0x30074e||_0x181ace['subType']!=_0x275c30||_0x181ace['creator']['id']!=_0x246580)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4090ca('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5496b5,_0x3d62c7){const _0x3879fd=_0x5496b5['getFirstRange']();if(_0x3d62c7['isEqual'](_0x3879fd))_0x5496b5['removeMarkers']();else{if(_0x3879fd['containsRange'](_0x3d62c7)){const _0x1fe74f=this['_model']['createPositionAt'](_0x3d62c7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5496b5,this['_model']['createRange'](_0x3879fd['start'],_0x1fe74f));const _0x4077d8=_0x164670(),_0x324c3d=_0x5496b5['creator']['id'],_0x224d92=_0x5496b5['type']+':'+_0x5496b5['subType'];this['_setSuggestionData']({'id':_0x4077d8,'type':_0x224d92,'createdAt':new Date(),'authorId':_0x324c3d,'data':_0x5496b5['data'],'attributes':_0x5496b5['attributes']});const _0x38d77f=this['_model']['createPositionAt'](_0x3d62c7['end']['parent'],'after'),_0x4c96f6=this['_model']['createRange'](_0x38d77f,_0x3879fd['end']);this['_addSuggestionMarker'](_0x224d92,_0x4077d8,_0x324c3d,_0x4c96f6);}else{if(_0x3879fd['containsPosition'](_0x3d62c7['start'])){const _0x80778=this['_model']['createPositionAt'](_0x3d62c7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5496b5,this['_model']['createRange'](_0x3879fd['start'],_0x80778));}else{const _0x5b1b27=this['_model']['createPositionAt'](_0x3d62c7['end']['parent'],'after');this['_setSuggestionRange'](_0x5496b5,this['_model']['createRange'](_0x5b1b27,_0x3879fd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2420b6){for(const {suggestion:_0x5f3821,meta:_0x5a93cb}of this['_findSuggestions'](_0x2420b6,'insertion')){if(!_0x5a93cb['isOwn'])continue;const _0x594c8b=_0x5f3821['getRanges']();for(const _0x50ea64 of _0x594c8b)if(!_0x2420b6['getDifference'](_0x50ea64)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5905f3){const _0x1f48e3=this['editor']['plugins']['get']('Users')['getUser'](_0x5905f3);if(!_0x1f48e3)throw new _0x4090ca('track-changes-user-not-found',this);return _0x1f48e3;}['_getExternalAuthor'](_0x40b7fa){const _0x2a74fd=this['editor']['plugins']['get']('Users'),_0x1e6065=_0x5ae330('external:'+_0x40b7fa),_0x4de895=_0x2a74fd['getUser'](_0x1e6065);return _0x4de895||_0x2a74fd['addUser']({'id':_0x1e6065,'name':_0x40b7fa});}['_createSuggestion'](_0x8a3a82,_0x24fd26,_0x4fd965,_0xd0e1f3,_0x53c625){const _0x349280=this['_getAuthorFromId'](_0xd0e1f3),_0x3341db=this['_suggestionFactory']['buildSuggestion'](_0x8a3a82,_0x24fd26,_0x4fd965,_0x349280,_0x53c625,_0x457dbc=>{this['_updateSuggestionData'](_0x4fd965,{'attributes':_0x457dbc});const _0x26e3e8=this['getSuggestion'](_0x4fd965);this['_joinWithAdjacentSuggestions'](new Set([_0x26e3e8])),this['_refreshSuggestionsChain'](new Set([_0x26e3e8]));});return this['listenTo'](_0x3341db,'accept',()=>{this['_updateSuggestionData'](_0x4fd965,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3341db,'discard',()=>{this['_updateSuggestionData'](_0x4fd965,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4fd965,_0x3341db),this['_suggestionState']['set'](_0x3341db,'notReady'),_0x3341db;}['_splitMarkerName'](_0x4b3b21){const _0x1639ea=_0x4b3b21['split'](':');return{'group':_0x1639ea[0x0],'type':_0x1639ea[0x1],'subType':_0x1639ea['length']>=0x5?_0x1639ea[0x2]:null,'id':_0x1639ea['length']<0x5?_0x1639ea[0x2]:_0x1639ea[0x3],'authorId':_0x1639ea['length']<0x5?_0x1639ea[0x3]:_0x1639ea[0x4],'markerCount':0x6==_0x1639ea['length']?_0x1639ea[0x5]:null};}['_breakSuggestionMarker'](_0x2570b5,_0x51d3fe,_0x569b90){const _0x3b65a1=_0x2570b5['getFirstRange'](),_0x5804b5=_0x3b65a1['start'],_0x145c1a=_0x3b65a1['end'];this['_setSuggestionRange'](_0x2570b5,this['_model']['createRange'](_0x5804b5,_0x51d3fe));const _0x1460e4=_0x164670(),_0x4a457b=_0x2570b5['creator']['id'],_0x4072d8=_0x2570b5['type']+(_0x2570b5['subType']?':'+_0x2570b5['subType']:'');this['_setSuggestionData']({'id':_0x1460e4,'type':_0x4072d8,'createdAt':new Date(),'authorId':_0x4a457b,'originalSuggestionId':_0x2570b5['id'],'attributes':_0x2570b5['attributes'],'data':_0x2570b5['data']});const _0x3c57f8=this['_getAttributeKey'](_0x2570b5);('formatBlock'==_0x2570b5['type']||_0x3c57f8&&this['_isBlockAttribute'](_0x3c57f8))&&(_0x569b90=this['_model']['createPositionBefore'](_0x569b90['parent'])),this['_addSuggestionMarker'](_0x4072d8,_0x1460e4,_0x4a457b,this['_model']['createRange'](_0x569b90,_0x145c1a));}['_findSuggestions'](_0x10e82e,_0x456cdc=null){const _0x4bf77c=[],_0x1d98c3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x10e82e)||(_0x10e82e=[_0x10e82e]);for(const _0x2f88a6 of this['getSuggestions']()){if(!_0x2f88a6['isInContent'])continue;if(_0x456cdc&&_0x2f88a6['type']!=_0x456cdc)continue;let _0x1fc56f=!0x1;for(const _0x1bbba7 of _0x2f88a6['getRanges']()){for(const _0x423f40 of _0x10e82e){const _0x395c86=_0x423f40['start']['isEqual'](_0x1bbba7['end'])||_0x423f40['end']['isEqual'](_0x1bbba7['start']);if(_0x395c86||_0x423f40['getIntersection'](_0x1bbba7)){const _0x2dd931=_0x423f40['containsRange'](_0x1bbba7)&&Pt(this['_model']['schema'],_0x1bbba7['start'],_0x423f40),_0x4afdd2=_0x1bbba7['containsRange'](_0x423f40)&&Pt(this['_model']['schema'],_0x423f40['start'],_0x1bbba7);_0x4bf77c['push']({'suggestion':_0x2f88a6,'meta':{'isOwn':_0x1d98c3==_0x2f88a6['author'],'isNextTo':_0x395c86,'isInsideObject':_0x2dd931,'containsRangeInObject':_0x4afdd2}}),_0x1fc56f=!0x0;break;}}if(_0x1fc56f)break;}}return _0x4bf77c;}['_addSuggestionMarker'](_0x38b160,_0x450f5d,_0x4d6020,_0x447f17,_0x546302){this['_model']['change'](_0x3c4db3=>{let _0x384ff1='suggestion:'+_0x38b160+':'+_0x450f5d+':'+_0x4d6020;_0x546302&&(_0x384ff1=_0x384ff1+':'+_0x546302),_0x3c4db3['addMarker'](_0x384ff1,{'range':_0x447f17,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x310f64){const _0x347a65=_0x310f64['previous'],_0x104d71=_0x310f64['next'];_0x310f64['previous']=null,_0x310f64['next']=null,null!=_0x347a65&&_0x347a65['next']==_0x310f64&&(_0x347a65['next']=_0x104d71),null!=_0x104d71&&_0x104d71['previous']==_0x310f64&&(_0x104d71['previous']=_0x347a65),'ready'==this['_suggestionState']['get'](_0x310f64)&&(this['_suggestionState']['set'](_0x310f64,'removed'),this['fire']('suggestionUnloaded',_0x310f64,_0x347a65,_0x104d71));}['_setSuggestionData'](_0x43b109){const _0xb0ddf8=_0x43b109['id'],_0x268167=this['addSuggestionData'](_0x43b109);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xaf8367=this['editor']['plugins']['get']('PendingActions'),_0xf364a6=_0x268167['hasComments'],_0x3ea757=_0x268167['subType']?_0x268167['type']+':'+_0x268167['subType']:_0x268167['type'],_0x29bc5d=this['editor']['locale'],_0x4c07da=_0xaf8367['add'](c(_0x29bc5d,'PENDING_ACTION_SUGGESTION')),_0x55a2d7={'id':_0xb0ddf8,'type':_0x3ea757,'hasComments':_0xf364a6,'data':_0x43b109['data']||null,'originalSuggestionId':_0x43b109['originalSuggestionId']||null,'attributes':_0x268167['attributes']};this['_adapter']['addSuggestion'](_0x55a2d7)['then'](_0x25e1de=>{_0x268167['_saved']=!0x0,_0xaf8367['remove'](_0x4c07da),_0x25e1de&&_0x25e1de['createdAt']&&(this['_suggestions']['get'](_0xb0ddf8)['createdAt']=_0x25e1de['createdAt']);})['catch'](_0x14b32c=>{throw _0x259c9e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x268167['discard']();}),_0x268167['stopListening'](),this['_suggestions']['delete'](_0x268167['id']),this['_suggestionState']['delete'](_0x268167),_0x14b32c;});}return _0x268167;}['_isBlockAttribute'](_0x5c212b){return this['_blockAttributeKeys']['has'](_0x5c212b);}['_updateSuggestionData'](_0xfdba1b,_0x5380ea){const _0x2ae8dc=this['editor']['plugins']['get']('PendingActions'),_0x1e6339=this['getSuggestion'](_0xfdba1b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1e6339['_saved']){const _0x2a1499=_0x2ae8dc['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xfdba1b,_0x5380ea)['then'](()=>{_0x2ae8dc['remove'](_0x2a1499);});}else _0x1e6339['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xfdba1b,_0x5380ea);});}}['_getSuggestionData'](_0x222c78){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4090ca('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x222c78);}['_handleNewSuggestionMarker'](_0x370dc4){const {id:_0x17454f,type:_0x2ede84,subType:_0x2f56ad,authorId:_0x5091e0}=this['_splitMarkerName'](_0x370dc4),_0x1e77bf=this['_suggestions']['get'](_0x17454f)||this['_createSuggestion'](_0x2ede84,_0x2f56ad,_0x17454f,_0x5091e0,{});switch(this['_checkSuggestionCorrectness'](_0x1e77bf,_0x2ede84,_0x2f56ad,_0x5091e0),this['_suggestionState']['get'](_0x1e77bf)){case'notReady':this['_getSuggestionData'](_0x17454f)['then'](_0x4faab9=>{let _0x2bb1bf=Promise['resolve']();_0x4faab9['hasComments']&&(_0x2bb1bf=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x17454f})),_0x2bb1bf['then'](()=>{this['addSuggestionData'](_0x4faab9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1e77bf,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x17454f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1e77bf,'ready'),this['fire']('suggestionLoaded',_0x1e77bf);break;case'ready':this['fire']('suggestionChanged',_0x1e77bf);}return _0x1e77bf['addMarkerName'](_0x370dc4),_0x1e77bf;}['_refreshSuggestionsChain'](_0x2dfed3){const _0x17110b=Array['from'](_0x2dfed3),_0x4194b4=_0x17110b['filter'](_0x2d0177=>'attribute'==_0x2d0177['type']);this['_refreshAttributeSuggestionsChain'](_0x4194b4);const _0x1fd04e=_0x17110b['filter'](_0x5daeb4=>!_0x5daeb4['isMultiRange']&&'attribute'!=_0x5daeb4['type']),_0x1b3d46=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42d83a=>!_0x42d83a['isMultiRange']&&'attribute'!=_0x42d83a['type']),_0x44b8f8=_0x1b3d46['filter'](_0x1bbdbe=>!_0x2dfed3['has'](_0x1bbdbe)),_0x51ea57=new Map(_0x1b3d46['map'](_0x5289d6=>[_0x5289d6,this['_suggestionFactory']['getSuggestionCallback'](_0x5289d6['type'],_0x5289d6['subType'],'chain')])),_0x4457a7=new Map(_0x1b3d46['map'](_0x344bd2=>[_0x344bd2,_0x344bd2['getFirstRange']()])),_0x2edf15=new Set(),_0x83ab50=new Set();for(let _0x193db8=0x0;_0x193db8<_0x1fd04e['length'];_0x193db8++)_0x255d9c(_0x1fd04e[_0x193db8],_0x1fd04e,_0x193db8+0x1);for(let _0x1fac6f=0x0;_0x1fac6f<_0x1fd04e['length'];_0x1fac6f++)_0x255d9c(_0x1fd04e[_0x1fac6f],_0x44b8f8,0x0);const _0x3ef1c1=new Set();for(let _0x3a9b78=0x0;_0x3a9b78<_0x1fd04e['length'];_0x3a9b78++){const _0x3fd3b5=_0x1fd04e[_0x3a9b78];!_0x83ab50['has'](_0x3fd3b5)&&_0x3fd3b5['previous']&&(_0x3ef1c1['add'](_0x3fd3b5['previous']),_0x3fd3b5['previous']['next']===_0x3fd3b5&&(_0x3fd3b5['previous']['next']=null),_0x3fd3b5['previous']=null),!_0x2edf15['has'](_0x3fd3b5)&&_0x3fd3b5['next']&&(_0x3ef1c1['add'](_0x3fd3b5['next']),_0x3fd3b5['next']['previous']===_0x3fd3b5&&(_0x3fd3b5['next']['previous']=null),_0x3fd3b5['next']=null);}function _0x255d9c(_0x411dec,_0x13f5fb,_0x390c51){for(let _0x13de68=_0x390c51;_0x13de68<_0x13f5fb['length'];_0x13de68++){const _0x48506f=_0x5332f7(_0x411dec,_0x13f5fb[_0x13de68]);_0x48506f&&(_0x48506f[0x0]['next']=_0x48506f[0x1],_0x48506f[0x1]['previous']=_0x48506f[0x0],_0x2edf15['add'](_0x48506f[0x0]),_0x83ab50['add'](_0x48506f[0x1]));}}function _0x5332f7(_0x517b52,_0x2be183){if(_0x517b52['author']['id']!==_0x2be183['author']['id'])return null;const _0x6a64ec=_0x51ea57['get'](_0x517b52)(_0x517b52,_0x2be183,_0x4457a7['get'](_0x517b52),_0x4457a7['get'](_0x2be183));if(!_0x6a64ec)return null;return _0x51ea57['get'](_0x2be183)(_0x517b52,_0x2be183,_0x4457a7['get'](_0x517b52),_0x4457a7['get'](_0x2be183))?_0x6a64ec[0x1]['commentThread']&&_0x6a64ec[0x1]['commentThread']['length']?null:_0x6a64ec:null;}_0x3ef1c1['size']&&this['_refreshSuggestionsChain'](_0x3ef1c1);}['_refreshAttributeSuggestionsChain'](_0x19fc3b){if(0x0==_0x19fc3b['length'])return;const _0x389e4a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10c33e=>'attribute'==_0x10c33e['type']&&_0x10c33e['_isDataLoaded']),_0x4ef44f=[],_0x485b6e=new Map();for(const _0x44d0c5 of _0x389e4a){const _0x581c4b=_0x5ae330(_0x44d0c5['attributes']);_0x485b6e['has'](_0x581c4b)||(_0x485b6e['set'](_0x581c4b,_0x4ef44f['length']),_0x4ef44f['push']([]));const _0x57d949=_0x485b6e['get'](_0x581c4b);_0x4ef44f[_0x57d949]['push'](_0x44d0c5);}!(function(){_0x4ef44f['sort']((_0x5f55ac,_0x586a3f)=>{const _0x4ae149=_0x5f55ac[0x0]['createdAt'],_0x518b75=_0x586a3f[0x0]['createdAt'];return _0x4ae149==_0x518b75?_0x5f55ac[0x0]['attributes']['groupId']<_0x586a3f[0x0]['attributes']['groupId']?-0x1:0x1:_0x4ae149<_0x518b75?-0x1:0x1;});for(const _0x378b15 of _0x4ef44f)_0x378b15['sort']((_0x481d62,_0x9d377d)=>_0x481d62['id']<_0x9d377d['id']?-0x1:0x1);}());for(let _0x1dd933=0x0;_0x1dd933<_0x4ef44f['length'];_0x1dd933++){if(0x0==_0x4ef44f[_0x1dd933]['length'])continue;const _0x197a92=[];for(let _0x3f4658=_0x1dd933+0x1;_0x3f4658<_0x4ef44f['length'];_0x3f4658++)0x0!=_0x4ef44f[_0x3f4658]['length']&&_0x35c395(_0x4ef44f[_0x1dd933],_0x4ef44f[_0x3f4658])&&_0x197a92['push'](_0x3f4658);for(const _0x301978 of _0x197a92)_0x4ef44f[_0x1dd933]=_0x4ef44f[_0x1dd933]['concat'](_0x4ef44f[_0x301978]),_0x4ef44f[_0x301978]=[];}for(const _0x32754e of _0x4ef44f)for(let _0x3129a4=0x0;_0x3129a4<_0x32754e['length'];_0x3129a4++){const _0x1e42e4=_0x32754e[_0x3129a4+0x1]||null;_0x32754e[_0x3129a4]['next']!==_0x1e42e4&&(_0x32754e[_0x3129a4]['next']=_0x1e42e4);}for(const _0x10126a of _0x4ef44f)for(let _0x3fa8c5=0x0;_0x3fa8c5<_0x10126a['length'];_0x3fa8c5++){const _0x44bdba=_0x10126a[_0x3fa8c5-0x1]||null;_0x10126a[_0x3fa8c5]['previous']!==_0x44bdba&&(_0x10126a[_0x3fa8c5]['previous']=_0x44bdba);}function _0x35c395(_0x3ecc76,_0x45e144){if(_0x3ecc76[0x0]['attributes']['groupId']!==_0x45e144[0x0]['attributes']['groupId']&&_0x3ecc76[0x0]['author']!==_0x45e144[0x0]['author'])return!0x1;if(!function(_0x143aa7,_0x9ff9f1){if(!_0x143aa7['hasComments']&&!_0x9ff9f1['hasComments'])return!0x0;if(_0x143aa7['hasComments']&&_0x9ff9f1['hasComments'])return!0x1;if(_0x143aa7['hasComments']&&_0x9ff9f1['createdAt']<_0x143aa7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x9ff9f1['hasComments']&&_0x143aa7['createdAt']<_0x9ff9f1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3ecc76[0x0],_0x45e144[0x0]))return!0x1;const _0x1ebab0=Vt(_0x3ecc76[0x0]['attributes'],'groupId'),_0x46a991=Vt(_0x45e144[0x0]['attributes'],'groupId');if(!_0x5e7928(_0x1ebab0,_0x46a991))return!0x1;return!!_0x3ecc76['every'](_0x9473b3=>_0x45e144['some'](_0x582d1b=>_0x9473b3['getFirstRange']()['isEqual'](_0x582d1b['getFirstRange']())))&&_0x45e144['every'](_0x42a01c=>_0x3ecc76['some'](_0x369866=>_0x42a01c['getFirstRange']()['isEqual'](_0x369866['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x103abc){const _0x4cbdff=Array['from'](_0x103abc),_0xeba398=this['getSuggestions']({'skipNotAttached':!0x0}),_0x102946=_0xeba398['filter'](_0x211781=>!_0x103abc['has'](_0x211781)),_0x45cb37=new Map(_0x4cbdff['map'](_0x3de2a5=>[_0x3de2a5,this['_suggestionFactory']['getSuggestionCallback'](_0x3de2a5['type'],_0x3de2a5['subType'],'join')])),_0x4d1b41=new Map(_0xeba398['map'](_0x36fd1c=>[_0x36fd1c,_0x36fd1c['getRanges']()]));for(let _0x416bc9=0x0;_0x416bc9<_0x4cbdff['length'];_0x416bc9++){if(_0x371acb(this,_0x4cbdff[_0x416bc9],_0x4cbdff,_0x416bc9+0x1))return!0x0;}for(let _0x3986e2=0x0;_0x3986e2<_0x4cbdff['length'];_0x3986e2++){if(_0x371acb(this,_0x4cbdff[_0x3986e2],_0x102946,0x0))return!0x0;}return!0x1;function _0x371acb(_0x41e540,_0x1943db,_0x121753,_0x5a6f7d){for(let _0x4f0da8=_0x5a6f7d;_0x4f0da8<_0x121753['length'];_0x4f0da8++){const _0x4120ad=_0x121753[_0x4f0da8];if(_0x4120ad['type']!==_0x1943db['type']||_0x4120ad['author']['id']!==_0x1943db['author']['id']||_0x4120ad['subType']!==_0x1943db['subType'])continue;if(!Wt(_0x1943db,_0x4120ad))continue;if('attribute'==_0x1943db['type']&&_0x1943db['data']['oldValue']!=_0x4120ad['data']['oldValue'])continue;if('attribute'==_0x1943db['type']&&_0x41e540['_isBlockAttribute'](_0x1943db['data']['key']))continue;if('formatBlock'==_0x1943db['type']){const _0x453d73=_0x41e540['editor']['model'],_0xb482c4=_0x1943db['getContainedElement']();if(_0xb482c4&&(_0x453d73['schema']['isObject'](_0xb482c4)||_0x453d73['schema']['isLimit'](_0xb482c4)))continue;}const _0x136960=_0x45cb37['get'](_0x1943db),_0x163676=_0x4d1b41['get'](_0x1943db),_0x2a6fab=_0x4d1b41['get'](_0x4120ad),_0x25c529=_0x1943db['commentThread']&&_0x1943db['commentThread']['length'],_0x111172=_0x4120ad['commentThread']&&_0x4120ad['commentThread']['length'];if(!_0x25c529&&_0x136960(_0x2a6fab,_0x163676))return _0x41e540['_joinSuggestions'](_0x4120ad,_0x1943db),_0x4d1b41['delete'](_0x1943db),!0x0;if(!_0x111172&&_0x136960(_0x163676,_0x2a6fab))return _0x41e540['_joinSuggestions'](_0x1943db,_0x4120ad),_0x4d1b41['delete'](_0x4120ad),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3d79bc,_0x5e8f22){if(_0x3d79bc['isMultiRange']){for(const _0x11d20e of _0x5e8f22['getRanges']())_0x3d79bc['addRange'](_0x11d20e);}else{const _0x9c79e8=_0x5e8f22['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3d79bc,this['_model']['createRange'](_0x3d79bc['getFirstRange']()['start'],_0x9c79e8));}_0x5e8f22['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1b4ecd,_0x371ea3,_0x4e1ee7){const _0x3eb43f=_0x1b4ecd['startsWith']('format')||_0x1b4ecd['startsWith']('attribute')?'FORMATTING':_0x1b4ecd['toUpperCase']();return c(this['editor']['locale'],_0x371ea3+'_'+_0x3eb43f+'_SUGGESTION_ANNOUNCEMENT',_0x4e1ee7);}['_initAriaMarkerChangeAnnouncements'](){const _0x2edd79=this['editor'];if(!_0x2edd79['ui'])return;const {ariaLiveAnnouncer:_0x20034b}=_0x2edd79['ui'];_0x258e32(this['_model'],({left:_0x31ab75,entered:_0x3aa3ec})=>{for(const _0x402b59 of _0x31ab75){const {group:_0x4474f5,type:_0x1d561b}=this['_splitMarkerName'](_0x402b59['name']);if('suggestion'===_0x4474f5){_0x20034b['announce'](this['_getMarkerAnnouncementText'](_0x1d561b,'LEAVE'));break;}}for(const _0x57287b of _0x3aa3ec){const {group:_0x4ccc87,type:_0x36a5f5}=this['_splitMarkerName'](_0x57287b['name']);if('suggestion'===_0x4ccc87){_0x20034b['announce'](this['_getMarkerAnnouncementText'](_0x36a5f5,'ENTER',_0x17eec3(_0x56e5e7)));break;}}});}['_processAttributeChanges'](_0x3e77b7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x53e2bc=this['editor'],_0x5f37f9=_0x53e2bc['model']['document']['differ']['getChanges']();if(0x0==_0x5f37f9['length'])return!0x1;const _0x4b4e29=[],_0x3c9d17=_0x5f37f9['filter'](_0xf35d02=>'attribute'==_0xf35d02['type']),_0x504390=_0x5f37f9['filter'](_0x417cca=>'insert'==_0x417cca['type']&&'$text'!=_0x417cca['name']),_0x1caead=_0x5f37f9['filter'](_0x533f29=>'remove'==_0x533f29['type']&&'$text'!=_0x533f29['name']);for(const _0x1a4f9f of _0x3c9d17)_0x4b4e29['push']({'key':_0x1a4f9f['attributeKey'],'newValue':_0x1a4f9f['attributeNewValue'],'oldValue':_0x1a4f9f['attributeOldValue'],'range':Ht(_0x1a4f9f['range'],_0x53e2bc['model'])});for(const _0x4e5f30 of _0x504390){const _0xd095f5=_0x1caead['find'](_0x31a14b=>_0x31a14b['position']['isEqual'](_0x4e5f30['position']));_0xd095f5&&_0x4b4e29['push']({'key':u,'newValue':_0x4e5f30['name'],'oldValue':_0xd095f5['name'],'range':_0x53e2bc['model']['createRangeOn'](_0x4e5f30['position']['nodeAfter'])});}return 0x0!=_0x4b4e29['length']&&this['_reduceExistingSuggestions'](_0x3e77b7,_0x4b4e29);}['_processAttributeSuggestions'](_0x2e358e){let _0x38dadc=!0x1;const _0x526310=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30e570=>_0x30e570['data']['newRange']&&_0x30e570['name']['startsWith']('suggestion:attribute:'));for(const _0x30a3ad of _0x526310){const {subType:_0x100570,id:_0x578ba}=this['_splitMarkerName'](_0x30a3ad['name']),_0x4fc3e2=_0x100570['split']('|')[0x0];for(const _0x26d2b7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x26d2b7['id']!=_0x578ba&&'attribute'==_0x26d2b7['type']&&_0x26d2b7['data']&&_0x26d2b7['data']['key']==_0x4fc3e2&&_0x26d2b7['getFirstRange']()['isIntersecting'](_0x30a3ad['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x26d2b7,_0x30a3ad['data']['newRange'],_0x2e358e),_0x38dadc=!0x0);}return _0x38dadc;}['_recordAttributeChanges'](_0x518a3e){this['_recordAttributeSuggestions']=!0x0,_0x518a3e();}['_isRegisteredAttribute'](_0x62adde){const _0x558bc1=this['_isBlockAttribute'](_0x62adde),_0x42bf61=this['_inlineAttributeKeys']['has'](_0x62adde);return _0x558bc1||_0x42bf61;}['_reduceExistingSuggestions'](_0x2161b9,_0x4feef8){if(0x0==_0x4feef8['length'])return!0x1;let _0x11a54c=!0x1;for(const _0x1e7432 of _0x4feef8){const _0x529526=this['_findSuggestions'](_0x1e7432['range'],'attribute')['filter'](_0x74a9f6=>!_0x74a9f6['meta']['isNextTo'])['map'](_0x2eafa8=>_0x2eafa8['suggestion']),_0x9701f1=_0x5ae330({'newValue':_0x1e7432['newValue']});_0x529526['filter'](_0xb36a10=>{const [_0x42224f,_0x52658e]=_0xb36a10['subType']['split']('|');return _0x42224f==_0x1e7432['key']&&_0x52658e!=_0x9701f1;})['forEach'](_0x34d492=>{this['_reduceSuggestionAttributeRange'](_0x34d492,_0x1e7432['range'],_0x2161b9),_0x11a54c=!0x0;});}return _0x11a54c;}['_reduceSuggestionAttributeRange'](_0x3e5ed5,_0x24a907,_0x33946e){const _0x1757a7=_0x3e5ed5['getFirstRange']()['getDifference'](_0x24a907);0x0!==_0x1757a7['length']?0x1!==_0x1757a7['length']?this['_breakSuggestionMarker'](_0x3e5ed5,_0x24a907['start'],_0x24a907['end']):this['_setSuggestionRange'](_0x3e5ed5,_0x1757a7[0x0]):_0x33946e['removeMarker'](_0x3e5ed5['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x534d16){this['_editor']=_0x534d16,this['_model']=_0x534d16['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x32017a,_0x2cc8e9,_0x51771a,_0x34ba25,_0x21a109,_0xbcdf24){return new o(this['_model'],{'type':_0x32017a,'subType':_0x2cc8e9,'id':_0x51771a,'author':_0x34ba25,'creator':_0x34ba25,'attributes':_0x21a109,'onAttributesChange':_0xbcdf24,'onAccept':(..._0xe4ba5d)=>this['getSuggestionCallback'](_0x32017a,_0x2cc8e9,'accept')(..._0xe4ba5d),'onDiscard':(..._0x221d8c)=>this['getSuggestionCallback'](_0x32017a,_0x2cc8e9,'discard')(..._0x221d8c)});}['registerCustomCallback'](_0x594bd0,_0xffbd9c,_0x3ff3dc,_0x82b682){const _0x21c75d=_0x594bd0+':'+_0xffbd9c+':'+_0x3ff3dc;this['_customCallbacks']['set'](_0x21c75d,_0x82b682);}['getSuggestionCallback'](_0x12263f,_0x2cb94d,_0x19d203){const _0x34a92a=_0x12263f+':'+_0x2cb94d+':'+_0x19d203;return this['_customCallbacks']['get'](_0x34a92a)||this['_defaultCallbacks']['get'](_0x12263f+':'+_0x19d203);}['_registerDefaultCallbacks'](){const _0x45e955=()=>!0x1,_0x51b0d2=_0x3f1082=>{_0x3f1082['sort']((_0x58cdaa,_0x1c10da)=>_0x58cdaa['start']['isBefore'](_0x1c10da['start'])?0x1:-0x1),this['_model']['change'](_0x3a586d=>{for(const _0x317306 of _0x3f1082){let _0x6f02b2;_0x6f02b2=_0x317306['end']['isAtEnd']&&_0x317306['end']['parent']==_0x317306['start']['nodeAfter']?_0x3a586d['createSelection'](_0x317306['start']['nodeAfter'],'on'):_0x3a586d['createSelection'](_0x317306),this['_model']['deleteContent'](_0x6f02b2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x259d16=(_0x2254ca,_0x315804)=>{_0x315804&&this['_model']['change'](_0x31fafa=>{const {commandName:_0x43e8b6,commandParams:_0x484158=[]}=_0x315804,_0x4b1104=_0x2254ca['map'](_0x153481=>(Gt(_0x153481)&&(_0x153481=this['_model']['createRange'](_0x153481['end'])),_0x153481))['filter'](_0x38334c=>'$graveyard'!==_0x38334c['root']['rootName']);if(_0x4b1104['length']<0x1)return;const _0x17dd9f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5c514f=>_0x542068['fromRange'](_0x5c514f));_0x31fafa['setSelection'](_0x4b1104);for(const _0x3ab2cb of this['_editor']['commands']['commands']())_0x3ab2cb['refresh']();_0x484158['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x43e8b6,..._0x484158);const _0x369fa4=_0x17dd9f['filter'](_0x16303b=>'$graveyard'!=_0x16303b['root']['rootName']);_0x369fa4['length']>0x0&&_0x31fafa['setSelection'](_0x369fa4);for(const _0x1573b1 of _0x17dd9f)_0x1573b1['detach']();});},_0x481037=(_0x4f9543,_0x38bb9a)=>0x1==_0x4f9543['length']&&0x1==_0x38bb9a['length']&&_0x4f9543[0x0]['end']['isEqual'](_0x38bb9a[0x0]['start']),_0x2027fe=(_0x24658f,_0x439a55,_0x40e34e,_0x1f51a5)=>zt(_0x24658f,_0x439a55,_0x40e34e,_0x1f51a5)?[_0x24658f,_0x439a55]:zt(_0x439a55,_0x24658f,_0x1f51a5,_0x40e34e)?[_0x439a55,_0x24658f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x45e955),this['_defaultCallbacks']['set']('insertion:discard',_0x51b0d2),this['_defaultCallbacks']['set']('insertion:join',_0x481037),this['_defaultCallbacks']['set']('insertion:chain',_0x2027fe),this['_defaultCallbacks']['set']('deletion:accept',_0x51b0d2),this['_defaultCallbacks']['set']('deletion:discard',_0x45e955),this['_defaultCallbacks']['set']('deletion:join',_0x481037),this['_defaultCallbacks']['set']('deletion:chain',_0x2027fe),this['_defaultCallbacks']['set']('formatInline:accept',_0x259d16),this['_defaultCallbacks']['set']('formatInline:discard',_0x45e955),this['_defaultCallbacks']['set']('formatInline:join',_0x481037),this['_defaultCallbacks']['set']('formatInline:chain',_0x45e955),this['_defaultCallbacks']['set']('formatBlock:accept',_0x259d16),this['_defaultCallbacks']['set']('formatBlock:discard',_0x45e955),this['_defaultCallbacks']['set']('formatBlock:join',_0x481037),this['_defaultCallbacks']['set']('formatBlock:chain',_0x45e955),this['_defaultCallbacks']['set']('attribute:accept',_0x45e955),this['_defaultCallbacks']['set']('attribute:discard',(_0x4a4a7b,_0x270466)=>{if(!_0x270466)return;const _0x200c8c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3936f0=>{if(_0x270466['key']==u)for(const _0x1e8bfc of _0x4a4a7b){const _0x22c3c3=_0x1e8bfc['start']['nodeAfter'],_0x84ae73=_0x270466['oldValue'];_0x3936f0['rename'](_0x22c3c3,_0x84ae73);}else{if(_0x200c8c['_isBlockAttribute'](_0x270466['key'])){for(const _0x3ba8aa of _0x4a4a7b)void 0x0!==_0x270466['oldValue']?_0x3936f0['setAttribute'](_0x270466['key'],_0x270466['oldValue'],_0x3ba8aa['start']['nodeAfter']):_0x3936f0['removeAttribute'](_0x270466['key'],_0x3ba8aa['start']['nodeAfter']);}else{for(const _0x6dec72 of _0x4a4a7b)_0x270466['oldValue']?_0x3936f0['setAttribute'](_0x270466['key'],_0x270466['oldValue'],_0x6dec72):_0x3936f0['removeAttribute'](_0x270466['key'],_0x6dec72);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x481037);}}function Pt(_0x54669f,_0x9fed64,_0x110cec){for(const _0x9a9625 of _0x9fed64['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x9a9625['root']==_0x9a9625)return!0x1;if(!_0x110cec['containsItem'](_0x9a9625))return!0x1;if(_0x54669f['isObject'](_0x9a9625)||_0x54669f['isLimit'](_0x9a9625))return!0x0;}return!0x1;}function Gt(_0x72e66f){return _0x72e66f['end']['parent']==_0x72e66f['start']['nodeAfter']&&_0x72e66f['end']['isAtStart'];}function Lt(_0x355408,_0x27df9a,_0x471c5b,_0x2b9701){const _0x3f84c7=_0x3557b5=>!_0x3557b5['item']['is']('$textProxy')&&!_0x2b9701['isObject'](_0x3557b5['item']),_0xedb9fd=_0x355408['start']['getLastMatchingPosition'](_0x3f84c7),_0x251440=_0x355408['end']['getLastMatchingPosition'](_0x3f84c7,{'direction':'backward'});return(!_0x355408['start']['isEqual'](_0xedb9fd)||!_0x355408['end']['isEqual'](_0x251440))&&(_0xedb9fd['isBefore'](_0x251440)?_0x471c5b['updateMarker'](_0x27df9a,{'range':_0x471c5b['createRange'](_0xedb9fd,_0x251440)}):_0x471c5b['removeMarker'](_0x27df9a),!0x0);}function Jt(_0x4d6e8d){return _0x5ae330(_0x4d6e8d);}function Kt(_0xac2dde){const _0x2704a8=_0xac2dde['start']['nodeAfter'];return _0x2704a8&&_0x2704a8['is']('element');}function Ht(_0x319527,_0x32ae4a){return null==_0x319527['end']['nodeBefore']&&_0x319527['end']['parent']==_0x319527['start']['nodeAfter']?qt(_0x319527['start']['nodeAfter'],_0x32ae4a):_0x319527;}function qt(_0x115b22,_0x252044){const _0x115752=_0x252044['schema']['isObject'](_0x115b22)||_0x252044['schema']['isSelectable'](_0x115b22);return _0x252044['createRange'](_0x252044['createPositionAt'](_0x115b22,'before'),_0x115752?_0x252044['createPositionAfter'](_0x115b22):_0x252044['createPositionAt'](_0x115b22,'end'));}function zt(_0x5c7472,_0x3bf8b3,_0x442e8f,_0x4b852e){return!!Wt(_0x5c7472,_0x3bf8b3)&&_0x442e8f['end']['isEqual'](_0x4b852e['start']);}function Wt(_0x3c8672,_0x227aaf){if(!_0x3c8672['_isDataLoaded']||!_0x227aaf['_isDataLoaded'])return!0x1;const _0x437f4f=new Set(Object['keys'](_0x3c8672['attributes'])),_0xf714de=new Set(Object['keys'](_0x227aaf['attributes']));if(_0x437f4f['delete']('groupId'),_0xf714de['delete']('groupId'),0x0==_0x437f4f['size']&&0x0==_0xf714de['size'])return!0x0;if(_0x437f4f['size']!=_0xf714de['size'])return!0x1;const _0x54654f={..._0x3c8672['attributes']},_0x48d828={..._0x227aaf['attributes']};return delete _0x54654f['groupId'],delete _0x48d828['groupId'],JSON['stringify'](_0x54654f)==JSON['stringify'](_0x48d828);}function Qt(_0xcdd8f2,_0x2d20e6){const _0x5e3b5a=Xt(_0xcdd8f2['attributes']),_0x7efcbb=Xt(_0x2d20e6);if(!_0xcdd8f2['_isDataLoaded'])return!0x1;for(const _0x382578 of Object['keys'](_0x7efcbb))if(!_0x5e7928(_0x5e3b5a[_0x382578],_0x7efcbb[_0x382578]))return!0x1;return!0x0;}function Xt(_0x599d6d){const _0x39efed=Object['assign']({},_0x599d6d);return delete _0x39efed['skipNestingCheck'],delete _0x39efed['tablePasteChainId'],_0x39efed;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x5f4cc5(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xd1abb1,_0x297f63,_0xddbe0b,_0x36c77a){super(),this['model']=_0x297f63,this['view']=_0xddbe0b,this['commentThreadController']=_0x36c77a,this['_editor']=_0xd1abb1,this['_acceptCommand']=_0xd1abb1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xd1abb1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3a661b,_0x222d8d)=>_0x3a661b||_0x222d8d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x142469=>_0x142469&&this['_editor']['model']['canEditAt'](_0x297f63['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2b9b38=>_0x2b9b38&&this['_editor']['model']['canEditAt'](_0x297f63['getRanges']())),this['_pendingAction']=null,_0xddbe0b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xddbe0b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xddbe0b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xddbe0b,'change:isDirty',()=>{_0xddbe0b['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x39bcf0=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x39bcf0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3e415b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1c6e63,_0x290563,_0x53d129,_0x27c6a8){super(_0x1c6e63),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x55e8f4(_0x1c6e63,c(_0x1c6e63,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x290563['authoredAt']),this['bind']('authoredAt')['to'](_0x290563),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x290563,'authoredAt',this,'descriptionParts',(_0x1ce5f3,_0x458945,_0x39f9c5)=>{const _0x43a133=_0x39f9c5['map'](_0x34997c=>ls(_0x34997c['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1ce5f3-0x1,_0x290563['author']['name'],_0x458945?_0x27c6a8['formatDateTime'](_0x458945):'',new DOMParser()['parseFromString'](_0x43a133,'text/html')['body']['textContent']]);}),this['focusables']=new _0x58d0a4(),this['focusTracker']=new _0x4e2add(),this['keystrokes']=new _0x4bd764(),this['focusCycler']=new _0x24fe94({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x26dce3=>_0x26dce3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x290563,this['_localUser']=_0x53d129,this['_config']=_0x27c6a8,_0x27c6a8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1c73f0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x46f7c9}=this['_config'];this['commentsListView']=new _0x46f7c9(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x5cef75=>_0x5cef75+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x70ece,_0x3492d6)=>_0x70ece||!!_0x3492d6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4d0a91}=this['_config'],_0x1d9054=new _0x4d0a91(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3bdaef=_0x1d9054['commentInputView'];return _0x1d9054['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3bdaef,'value',(_0x21a897,_0x39b2ff,_0x46c2fa)=>!!_0x46c2fa||_0x21a897&&!_0x39b2ff),_0x3bdaef['on']('submit',(_0x524eb6,_0x20cc5d)=>{this['fire']('addComment',_0x20cc5d),_0x3bdaef['editor']['setData']('');}),_0x3bdaef['on']('cancel',()=>this['focus']()),_0x3bdaef['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1d9054;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4285da,_0x25bf0f,_0x10f3ac,_0x598311){super(_0x4285da,_0x25bf0f,_0x10f3ac,_0x598311),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5a45dc=>_0x5a45dc&&_0x5a45dc[0x0]?_0x5a45dc[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1940a7,_0xfc97d2)=>{let _0x1381a4='';for(const _0x57ea23 of _0x1940a7)_0x1381a4+='<p>'+ls(_0x57ea23['content'],_0x57ea23['color'])+'</p>';return _0xfc97d2?_0x1381a4:ti(_0x1381a4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x598311['SuggestionView'](_0x4285da,_0x25bf0f,{'formatDateTime':_0x598311['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x33a478=this['bindTemplate'],_0x3df2fd=[this['suggestionView']];return this['commentsListView']&&_0x3df2fd['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3df2fd['push'](this['commentThreadInputView']),_0x3df2fd['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x33a478['if']('isActive','ck-suggestion-wrapper--active'),_0x33a478['to']('type',_0x31fb5f=>'ck-suggestion-'+_0x31fb5f),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x33a478['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3df2fd};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x3e415b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40e77f,_0xd6e781,_0x231180){super(_0x40e77f),this['_model']=_0xd6e781,this['_config']=_0x231180,this['set']('description',''),this['bind']('authoredAt')['to'](_0xd6e781),this['acceptButton']=this['_createButton'](c(_0x40e77f,'Accept\x20suggestion'),_0x1bb85f,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x40e77f,'Discard\x20suggestion'),_0x5ac248,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5b0652(_0x40e77f,_0xd6e781['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x58d0a4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4e2add(),this['keystrokes']=new _0x4bd764(),this['focusCycler']=new _0x24fe94({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x32d33e=>_0x32d33e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2b9192=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2b9192['innerHTML']=this['description'],this['on']('change:description',(_0x475dff,_0x11acde,_0x39d6aa)=>{_0x2b9192['innerHTML']=_0x39d6aa;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x18ed93=this['bindTemplate'],_0x23844c=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x18ed93['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x18ed93['to']('authoredAt',_0xb03d92=>this['_config']['formatDateTime'](_0xb03d92))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x23844c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x23844c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x476896,_0x414619,_0x486ae3,_0x2789b6,_0x4d5baa){const _0x35393b=new _0x2f7fc4(this['locale']);return _0x35393b['set']({'label':_0x476896,'icon':_0x414619,'tooltip':!0x0,'tooltipPosition':_0x4d5baa}),_0x35393b['extendTemplate']({'attributes':{'class':_0x486ae3}}),_0x35393b['on']('execute',()=>{this['fire'](_0x2789b6,this['_model']['id']);}),_0x35393b;}['_setupKeyboardNavigation'](){const _0x2da8aa=this['element'];this['keystrokes']['listenTo'](_0x2da8aa);for(const _0x2db7f7 of this['focusables'])this['focusTracker']['add'](_0x2db7f7['element']),this['keystrokes']['listenTo'](_0x2db7f7['element']);this['keystrokes']['set']('enter',(_0x48d9f7,_0x4bd532)=>{_0x2da8aa===_0x48d9f7['target']&&(this['focusCycler']['focusFirst'](),_0x4bd532());}),this['keystrokes']['set']('esc',(_0x51908d,_0x533df9)=>{_0x2da8aa!==_0x51908d['target']&&(this['focus'](),_0x533df9());});}}class d extends _0x2fff63{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x305a6b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d3e71){super(_0x5d3e71),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xe00584=this['editor']['config'];_0xe00584['define']('trackChanges.SuggestionThreadView',fe),_0xe00584['define']('trackChanges.SuggestionView',we),_0xe00584['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xe00584['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xdc9f84,_0x36abe5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5c2ae8,_0x268049]of this['_handleControllerBuffer']){const _0x405afc=this['_suggestionToController']['has'](_0x5c2ae8);_0x405afc||_0x268049?_0x405afc&&_0x268049&&this['_destroyController'](_0x5c2ae8):this['_initializeController'](_0x5c2ae8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xdc9f84,_0x36abe5);}['init'](){const _0x3df74c=this['editor'],_0xe8fc1d=_0x3df74c['plugins']['get']('TrackChangesEditing'),_0x485fc5=_0x3df74c['plugins']['get']('Annotations'),_0x5ab82d=_0x3df74c['plugins']['get']('EditorAnnotations'),_0xeb9c5e=_0x3df74c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5ab82d['addSourceCollector'](()=>{const _0x2fb3d8=[];for(const [_0x477bec,_0x191ae9]of Array['from'](this['_suggestionToController'])){const _0x12598b=_0x477bec['getAllAdjacentSuggestions'](),_0x58b312=[];for(const _0x16491b of _0x12598b){if(!_0x16491b['isInContent'])continue;if(_0x16491b['isMultiRange']){_0x58b312['push'](..._0x16491b['getRanges']());continue;}const _0x447c03=_0x16491b['getFirstRange']();if(_0x58b312['length']>0x0){const _0xc9b4d0=_0x58b312[0x0]['getJoined'](_0x447c03);if(_0xc9b4d0){_0x58b312[0x0]=_0xc9b4d0;continue;}}_0x58b312['push'](_0x447c03);}_0x2fb3d8['push']([_0x191ae9['view'],_0x58b312]);}return _0x2fb3d8;}),this['listenTo'](_0xe8fc1d,'suggestionLoaded',(_0x105609,_0x2a6e80)=>{this['listenTo'](_0x2a6e80,'change:previous',(_0x5180ac,_0x9ae853,_0x16841f,_0x2cf4f0)=>{_0x2a6e80['isInContent']&&(null==_0x16841f?(this['_updateController'](_0x2cf4f0['head']),this['_handleSuggestionControllerDelayed'](_0x2a6e80,!0x1)):(this['_updateController'](_0x16841f['head']),null==_0x2cf4f0&&this['_handleSuggestionControllerDelayed'](_0x2a6e80,!0x0)));}),null!==_0x2a6e80['previous']?this['_updateController'](_0x2a6e80['head']):this['_handleSuggestionControllerDelayed'](_0x2a6e80,!0x1);}),this['listenTo'](_0xe8fc1d,'suggestionUnloaded',(_0x4754f7,_0x9d1f7d,_0x22d687)=>{this['stopListening'](_0x9d1f7d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x9d1f7d),this['_suggestionToController']['has'](_0x9d1f7d)&&this['_destroyController'](_0x9d1f7d),_0x22d687&&this['_updateController'](_0x22d687['head']);}),this['listenTo'](_0xe8fc1d,'suggestionChanged',(_0x5ddedd,_0x5e89b5)=>{this['_updateController'](_0x5e89b5);}),this['listenTo'](_0x485fc5,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xeb9c5e,'addComment',(_0x2f4292,{threadId:_0x3e91c1,isFromAdapter:_0x1a9e6b})=>{if(_0x1a9e6b||!_0xe8fc1d['hasSuggestion'](_0x3e91c1))return;const _0xc86090=_0xe8fc1d['getSuggestion'](_0x3e91c1);this['_suggestionToController']['get'](_0xc86090)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x455b5a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x54207c;for(const _0x2239e8 in _0x455b5a){const _0x55d513=_0x2239e8,_0x3a0477=_0x455b5a[_0x55d513];if('trackChangesLicenseKeyValid'==_0x3a0477||'trackChangesLicenseKeyInvalid'==_0x3a0477||'trackChangesLicenseKeyExpired'==_0x3a0477||'trackChangesLicenseKeyDomainLimit'==_0x3a0477||'trackChangesLicenseKeyNotAllowed'==_0x3a0477||'trackChangesLicenseKeyEvaluationLimit'==_0x3a0477||'trackChangesLicenseKeyTrialLimit'==_0x3a0477||'trackChangesLicenseKeyUsageLimit'==_0x3a0477){delete _0x455b5a[_0x55d513],_0x54207c=_0x3a0477,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x54207c&&_0x455b5a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x54207c&&_0x455b5a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x54207c&&_0x455b5a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x54207c&&_0x455b5a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x54207c&&_0x455b5a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x54207c&&_0x455b5a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x54207c&&_0x455b5a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x15f98c=this['editor']['plugins']['get']('Annotations'),_0x1fe0f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d22e1=Array['from'](_0x15f98c['activeAnnotations'],_0x5433f0=>_0x5433f0['innerView'])['filter'](_0x464ce2=>this['_viewToController']['has'](_0x464ce2)),_0x564256=[];for(const _0x2fa806 of _0x3d22e1){const _0x20a685=this['_viewToController']['get'](_0x2fa806)['model']['getAllAdjacentSuggestions']();_0x564256['push'](..._0x20a685['reduce']((_0x2b5cae,_0x5c38c3)=>[..._0x2b5cae,..._0x5c38c3['getMarkerNames']()],[]));}_0x1fe0f7['activeMarkers']=_0x564256;}['_addUIComponentsToFactory'](){const _0xf4984=this['editor'],_0x3510cf=_0xf4984['locale'],_0x2a5df5=c(_0x3510cf,'Track\x20changes'),_0x3e4620=new _0x263022([{'type':'switchbutton','model':new _0x5ae4dc({'withText':!0x0,'isToggleable':!0x0,'label':_0x2a5df5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5ae4dc({'withText':!0x0,'label':c(_0x3510cf,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5ae4dc({'withText':!0x0,'label':c(_0x3510cf,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5ae4dc({'withText':!0x0,'label':c(_0x3510cf,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5ae4dc({'withText':!0x0,'label':c(_0x3510cf,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xf4984['plugins']['has']('TrackChangesPreview')&&_0x3e4620['addMany']([{'type':'separator'},{'type':'button','model':new _0x5ae4dc({'withText':!0x0,'label':c(_0x3510cf,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x42a4eb of _0x3e4620)if(ke(_0x42a4eb)){const _0x489a57=_0xf4984['commands']['get'](_0x42a4eb['model']['commandName']);_0x42a4eb['model']['bind']('isOn','isEnabled')['to'](_0x489a57,'value','isEnabled');}_0xf4984['ui']['componentFactory']['add']('trackChanges',_0x21ff4a=>this['_createToolbarButton'](_0x21ff4a,_0x3e4620,_0x2a5df5)),_0xf4984['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5b1572=>this['_createMenuBarMenu'](_0x5b1572,_0x3e4620,_0x2a5df5));}['_createToolbarButton'](_0x46b2a2,_0x30ad4e,_0x16debf){const _0x559412=_0x127d03(_0x46b2a2,_0x123677),_0x11b7ca=this['editor']['commands']['get']('trackChanges');_0x559412['buttonView']['set']({'tooltip':_0x16debf,'label':_0x16debf,'icon':_0x1ef357}),_0x559412['buttonView']['bind']('isOn')['to'](_0x11b7ca,'value'),_0x559412['buttonView']['on']('execute',()=>{_0x11b7ca['execute'](),this['editor']['editing']['view']['focus']();}),_0x430d85(_0x559412,_0x30ad4e,{'role':'menu'});const _0x50b1a2=[];for(const _0xe73d76 of _0x30ad4e)ke(_0xe73d76)&&_0x50b1a2['push'](this['editor']['commands']['get'](_0xe73d76['model']['commandName']));const _0x5023cf=_0x559412['buttonView'];return _0x5023cf['actionView']['unbind']('isEnabled'),_0x5023cf['arrowView']['unbind']('isEnabled'),_0x5023cf['actionView']['bind']('isEnabled')['to'](_0x11b7ca,'isEnabled'),_0x5023cf['arrowView']['bind']('isEnabled')['toMany'](_0x50b1a2,'isEnabled',(..._0x29be78)=>_0x29be78['some'](_0x21b72f=>_0x21b72f)),_0x559412['on']('execute',_0x4605b0=>{this['editor']['execute'](_0x4605b0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x559412;}['_createMenuBarMenu'](_0x466275,_0x46a4db,_0x471903){const _0x53baea=new _0x45615f(_0x466275),_0x49cfbf=this['editor']['commands']['get']('trackChanges');_0x53baea['buttonView']['set']({'label':_0x471903,'icon':_0x1ef357});const _0x23f20d=new _0x461916(_0x466275);for(const _0x3000a8 of _0x46a4db){if('separator'==_0x3000a8['type']){_0x23f20d['items']['add'](new _0x20c88a(_0x466275));continue;}const _0x55cc9f=new _0x4ebf6d(_0x466275,_0x53baea),_0x500a42=new _0x5e99f4(_0x466275),_0x19d5c4=_0x3000a8['model'];_0x500a42['bind'](...Object['keys'](_0x19d5c4))['to'](_0x19d5c4),_0x500a42['delegate']('execute')['to'](_0x53baea),_0x500a42['on']('execute',()=>{this['editor']['execute'](_0x19d5c4['commandName']),this['editor']['editing']['view']['focus']();}),_0x55cc9f['children']['add'](_0x500a42),_0x23f20d['items']['add'](_0x55cc9f);}return _0x53baea['bind']('isEnabled')['to'](_0x49cfbf,'isEnabled'),_0x53baea['panelView']['children']['add'](_0x23f20d),_0x53baea;}['_initializeController'](_0x2b0a19){const _0x368cbe=this['editor'],_0x23d65b=_0x368cbe['config'],_0x18132e=_0x368cbe['plugins']['get']('Annotations'),_0x548d98=_0x368cbe['plugins']['get']('CommentsRepository'),_0x48a167=_0x368cbe['plugins']['get']('EditorAnnotations'),_0x2de6d4=_0x368cbe['plugins']['get'](_0x305a6b)['me'],_0x2d6f45=_0x23d65b['get']('trackChanges')['SuggestionThreadView'],_0x1a6ae5=_0x23d65b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2b3b2b,CommentThreadInputView:_0x4b43bd}=_0x368cbe['plugins']['get']('CommentsUI');let _0x1f972e,_0x56767b,_0x4b399e;this['_annotationViews']['has'](_0x2b0a19['id'])?(_0x56767b=this['_annotationViews']['get'](_0x2b0a19['id']),_0x1f972e=_0x56767b['mainView']):(_0x1f972e=new _0x2d6f45(_0x368cbe['locale'],_0x2b0a19,_0x2de6d4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x23d65b['get']('comments.editorConfig'),'licenseKey':_0x23d65b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x23d65b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x23d65b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x23d65b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4c0ba5(_0x23d65b['get']('locale')),'CommentView':_0x23d65b['get']('comments')['CommentView'],'CommentsListView':_0x2b3b2b,'CommentThreadInputView':_0x4b43bd,'SuggestionView':_0x1a6ae5}),_0x1f972e['suggestionView']['acceptButton']['on']('execute',()=>{_0x368cbe['editing']['view']['focus']();}),_0x1f972e['suggestionView']['discardButton']['on']('execute',()=>{_0x368cbe['editing']['view']['focus']();}),_0x56767b=_0x18132e['createAnnotationView'](this['editor']['locale'],_0x1f972e),_0x56767b['bind']('isDirty')['to'](_0x1f972e,'isDirty'),_0x56767b['bind']('length')['to'](_0x1f972e),_0x56767b['bind']('type')['to'](_0x1f972e,'type',_0x2e40ae=>'suggestion-'+_0x2e40ae),_0x1f972e['on']('escape',()=>{_0x4b399e['fire']('escape');}),this['_annotationViews']['set'](_0x2b0a19['id'],_0x56767b));const _0xfbb6a2=_0x548d98['createCommentThreadController'](_0x2b0a19['commentThread'],_0x1f972e),_0x224cb0=new pe(_0x368cbe,_0x2b0a19,_0x1f972e,_0xfbb6a2),_0x5a28fd=_0x2b0a19['getAllAdjacentSuggestions']()['filter'](_0x326db6=>_0x326db6['isInContent']);_0x1f972e['descriptionParts']=_0x368cbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5a28fd),this['_suggestionToController']['set'](_0x2b0a19,_0x224cb0),this['_viewToController']['set'](_0x1f972e,_0x224cb0),_0x4b399e=_0x18132e['createAnnotation']({'view':_0x56767b,'target':()=>{const _0x505bdd=[],_0x1bc72b=_0x2b0a19['getAllAdjacentSuggestions']()['filter'](_0x2e2826=>_0x2e2826['isInContent']);for(const _0x1506ac of _0x1bc72b)_0x505bdd['push'](..._0x1506ac['getMarkers']());return _0x155431(_0x368cbe['editing'],_0x505bdd);},'type':()=>'suggestion-'+_0x224cb0['view']['type']}),_0x548d98['_bindAnnotationToEditors'](_0x1f972e,_0x4b399e),_0x18132e['add'](_0x4b399e),_0x48a167['registerAnnotation'](_0x4b399e);}['_destroyController'](_0x1f9567){const _0x6a5ccf=this['editor']['plugins']['get']('CommentsRepository'),_0xa8c24e=this['editor']['plugins']['get']('Annotations'),_0x5f5177=this['_suggestionToController']['get'](_0x1f9567),_0x24c02c=_0x5f5177['view'],_0xf0f6b8=_0xa8c24e['getByInnerView'](_0x24c02c);_0x6a5ccf['_unbindEditors'](_0x24c02c),_0xf0f6b8&&_0xa8c24e['remove'](_0xf0f6b8),this['_suggestionToController']['delete'](_0x1f9567),this['_viewToController']['delete'](_0x24c02c),_0x5f5177['destroy']();}['_updateController'](_0x1e53df){if(!_0x1e53df['isInContent']||!this['_suggestionToController']['has'](_0x1e53df))return;const _0x3f91c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1166f1=this['_suggestionToController']['get'](_0x1e53df),_0x2be49f=_0x1e53df['getAllAdjacentSuggestions']();_0x1166f1['view']['descriptionParts']=_0x3f91c4['descriptionFactory']['getDescriptions'](_0x2be49f);}['destroy'](){for(const _0x6234a2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x6234a2);for(const _0x39b9c9 of this['_annotationViews']['values']())_0x39b9c9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3d5caa){return'model'in _0x3d5caa;}class k extends _0x2fff63{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x20498a){this['editor']['plugins']['get'](p)['adapter']=_0x20498a;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4c0d10){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4c0d10);}['getSuggestions']({skipNotAttached:_0x20ee06=!0x1,toJSON:_0x460e23=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x20ee06,'toJSON':_0x460e23});}['getSuggestion'](_0x331797){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x331797);}}const w=['Pagination'];class T extends _0x2fff63{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xdcfdb2=this['editor'];if(_0xdcfdb2['config']['define']('trackChangesData.editorCreator',_0x29fce7=>{const _0xe62032=_0xdcfdb2['model']['document']['getRootNames']()['reduce']((_0xa8dcc4,_0x16266d)=>(_0xa8dcc4[_0x16266d]='',_0xa8dcc4),{});return _0xdcfdb2['constructor']['create'](_0xe62032,_0x29fce7);}),'function'!=typeof _0xdcfdb2['config']['get']('trackChangesData')['editorCreator'])throw new _0x4090ca('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x447c20){return N(this['editor'],!0x0,_0x447c20);}['getDataWithDiscardedSuggestions'](_0x10edaa){return N(this['editor'],!0x1,_0x10edaa);}}class D extends _0x2fff63{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa41d80){function _0x522bb5(_0x27fc07){return _0x27fc07['map'](_0x5dfc63=>String['fromCharCode'](_0x5dfc63))['join']('');}super(_0xa41d80),this['result']='end',_0xa41d80[_0x522bb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x522bb5([0x76,0x69,0x65,0x77])][_0x522bb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x522bb5([0x61,0x75,0x74,0x6f]),_0xa41d80[_0x522bb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x522bb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x522bb5([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x522bb5([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x522bb5([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x48c51e){return void 0x0!==_0x48c51e['getRootsAttributes'];}async function N(_0x126ca9,_0x2eec1d,_0x400462){const _0x13b8f8=_0x371b9a(_0x126ca9,w);_0x13b8f8['plugins']['push'](p,D),_0x13b8f8['rootsAttributes']=Fe(_0x126ca9)?_0x126ca9['getRootsAttributes']():void 0x0;const _0x1c5eea=document['createDocumentFragment'](),_0x496174=_0x126ca9['config']['get']('trackChangesData')['editorCreator'],_0x4d23ae=await _0x496174(_0x13b8f8,()=>function(_0x2477f3){const _0x78de1e=document['createElement']('div');return _0x2477f3['appendChild'](_0x78de1e),_0x78de1e;}(_0x1c5eea));!function(_0x1e7f61,_0xa28d91){const _0x3c9a32=_0x1e7f61['model']['document']['getRootNames']()['reduce']((_0x1d19c5,_0x29a1ea)=>(_0x1d19c5[_0x29a1ea]=_0x1e7f61['data']['get']({'rootName':_0x29a1ea}),_0x1d19c5),{}),_0x2acbf8=_0x1e7f61['plugins']['get']('Users')['users']['map'](_0x55227a=>({'id':_0x55227a['id'],'name':_0x55227a['name']})),_0x18fbb4=_0x1e7f61['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x431a2e=_0x1e7f61['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d2183=_0xa28d91['plugins']['get']('Users'),_0x4e50d8=_0xa28d91['plugins']['get']('TrackChangesEditing'),_0x4ab452=_0xa28d91['plugins']['get']('CommentsRepository');for(const _0x17ad87 of _0x4ab452['getCommentThreads']())_0x17ad87['remove']();for(const _0x56506e of _0x2acbf8)_0x2d2183['getUser'](_0x56506e['id'])||_0x2d2183['addUser'](_0x56506e);_0x2d2183['me']||_0x2d2183['useAnonymousUser']();for(const _0x4568ef of _0x431a2e)_0x4ab452['addCommentThread'](_0x4568ef);for(const _0x574180 of _0x18fbb4)_0x4e50d8['addSuggestionData'](_0x574180);_0xa28d91['data']['set'](_0x3c9a32);}(_0x126ca9,_0x4d23ae),_0x4d23ae['execute'](_0x2eec1d?'acceptAllSuggestions':'discardAllSuggestions');const _0xa35b33=Fe(_0x4d23ae)?_0x4d23ae['getFullData'](_0x400462):_0x4d23ae['data']['get'](_0x400462);return await _0x4d23ae['destroy'](),_0xa35b33;}class Me extends _0x3e415b{['options'];constructor(_0x3f55c3,_0x395b8f){super(_0x3f55c3),this['options']=_0x395b8f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x809c9a,_0x201d2f){if(!this['element'])return;const _0x4542dc=[];for(const [_0x6200d5,_0x47c6f1]of _0x809c9a){const _0x3a2dc1=document['createElement']('div');_0x3a2dc1['setAttribute']('data-ck-root-name',_0x6200d5),_0x3a2dc1['className']=_0x47c6f1['classes']+'\x20ck-track-changes-preview__root-container',_0x3a2dc1['innerHTML']=_0x47c6f1['content'],_0x4542dc['push'](_0x3a2dc1);}_0x201d2f(this['element'],_0x4542dc),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x11a32a{constructor(_0x53b299){super(_0x53b299),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2cc677=this['editor'],_0x1fa2cf=_0x2cc677['locale'],_0x40ec63=_0x2cc677['plugins']['get']('Dialog');let _0x341570;const _0x42cef2=function(_0xd04bf8){const _0x1f9a9c={};if('editables'in _0xd04bf8['ui']['view']){for(const [_0x3b2b5b,_0x2d543a]of Object['entries'](_0xd04bf8['ui']['view']['editables']))_0x1f9a9c[_0x3b2b5b]=_0x2d543a['element'];}else _0x1f9a9c[_0xd04bf8['model']['document']['getRootNames']()[0x0]]=_0xd04bf8['ui']['view']['editable']['element'];return _0x1f9a9c;}(_0x2cc677),_0x4f28cd=function(_0xd99786){let _0x5722e0=0x0;for(const _0x49e791 of Object['values'](_0xd99786))_0x5722e0=Math['max'](_0x5722e0,_0x49e791['getBoundingClientRect']()['width']);let _0x7e5e6e=0x0;for(const _0x14d5d4 of Object['values'](_0xd99786))_0x7e5e6e+=_0x14d5d4['getBoundingClientRect']()['height'];const _0x443076=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xb8fc7d=Math['min'](_0x7e5e6e,_0x443076);return{'width':_0x5722e0,'height':_0xb8fc7d};}(_0x42cef2);_0x40ec63['show']({'id':'finalContentPreview','title':c(_0x1fa2cf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1fa2cf,{'dialogRects':_0x4f28cd}),'onHide':()=>{_0x341570['detachFromDom']();},'onShow':()=>{_0x2cc677['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4480f2=>{const _0x1061e1=this['_standarizeRootsData'](_0x4480f2,_0x2cc677,_0x42cef2);_0x40ec63['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1061e1,_0x2cc677['config']['get']('trackChanges.preview.renderFunction'));}),_0x341570=new _0x444071(_0x1fa2cf,[_0x40ec63['view']]),_0x341570['attachToDom'](),_0x341570['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2cc677['once']('destroy',()=>{_0x341570['detachFromDom']();});const _0x438a79=_0x40ec63['view']['headerView']['class'];_0x40ec63['view']['headerView']['class']=_0x438a79?_0x438a79+'\x20ck-reset_all':'ck-reset_all',_0x40ec63['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x40ec63['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2ba80c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3c852f=_0x2ba80c['previewMode'],_0x15deb5={};if('$labels'===_0x3c852f){for(const _0x46e65f of _0x2ba80c['getMergeFieldsIds']())_0x15deb5[_0x46e65f]=_0x2ba80c['getLabel'](_0x46e65f)||_0x46e65f;}else{const _0x1991e8='$defaultValues'===_0x3c852f?_0x2ba80c['getDefaultValues']():_0x2ba80c['getDataSetValues'](_0x3c852f,!0x0);for(const _0x193bff of Object['entries'](_0x1991e8)){const [_0x5bf1c7,_0x39a1fe]=_0x193bff;_0x15deb5[_0x5bf1c7]=null!==_0x39a1fe?_0x39a1fe:_0x2ba80c['getLabel'](_0x5bf1c7)||_0x5bf1c7;}}return{'mergeFieldsData':_0x15deb5};}['_standarizeRootsData'](_0x46dab7,_0x42964b,_0x128f20){let _0x38dabb;if('string'==typeof _0x46dab7){const _0x2af1ba=_0x42964b['model']['document']['getRootNames']()[0x0];_0x38dabb={[_0x2af1ba]:_0x46dab7};}else _0x38dabb=_0x46dab7;const _0x25f9f6=this['_fixMediaEmbeds'](_0x38dabb,_0x42964b),_0x5ccd48=function(_0x379b53,_0x1cdb83){for(const [_0x3df283,_0xc929f2]of _0x379b53)_0xc929f2['classes']=_0x1cdb83[_0x3df283]['classList']['value']['replace']('ck-focused','');return _0x379b53;}(this['_sortRoots'](_0x42964b)['reduce']((_0x5b5840,_0x123e80)=>(_0x5b5840['push']([_0x123e80,{'content':_0x25f9f6[_0x123e80],'classes':''}]),_0x5b5840),[]),_0x128f20);return _0x5ccd48;}['_fixMediaEmbeds'](_0x1f0e97,_0x422c23){if(!_0x422c23['plugins']['has']('MediaEmbedEditing'))return _0x1f0e97;const _0x38f572=_0x422c23['plugins']['get']('MediaEmbedEditing');for(const [_0x9b2d96,_0x2d6c01]of Object['entries'](_0x1f0e97)){const _0x37dc53=document['createElement']('div');_0x37dc53['innerHTML']=_0x2d6c01,(_0x37dc53['querySelectorAll']('figure.media')['forEach'](_0x1ab0af=>{const _0x496687=_0x1ab0af['querySelector']('oembed');if(_0x496687){const _0x27f3cc=_0x496687['getAttribute']('url');if(_0x27f3cc){const _0x523307=_0x38f572['registry']['getMediaViewElement'](new _0x40dea1(_0x422c23['editing']['view']['document']),_0x27f3cc,{'elementName':'','renderForEditingView':!0x0}),_0x317074=document['createElement']('div');_0x317074['classList']['add']('ck-media__wrapper'),_0x523307['render'](_0x317074,_0x422c23['editing']['view']['domConverter']),_0x496687['replaceWith'](_0x317074);}}}),_0x1f0e97[_0x9b2d96]=_0x37dc53['innerHTML']);}return _0x1f0e97;}['_sortRoots'](_0x4a785b){if(!function(_0x59af61){return void 0x0!==_0x59af61['getRootsAttributes'];}(_0x4a785b))return _0x4a785b['model']['document']['getRootNames']();const _0x21fd5a=[],_0x2d2027=new Map();for(const _0x3d049e of _0x4a785b['model']['document']['getRootNames']()){const _0x49c0f7=_0x4a785b['editing']['view']['getDomRoot'](_0x3d049e)['getClientRects']()['item'](0x0);_0x21fd5a['push'](_0x3d049e),_0x2d2027['set'](_0x3d049e,_0x49c0f7);}return _0x21fd5a['sort']((_0x1299ec,_0x158b0c)=>{const _0xf02557=_0x2d2027['get'](_0x1299ec),_0xcdc3f7=_0x2d2027['get'](_0x158b0c);return _0xf02557['y']-_0xcdc3f7['y']||_0xf02557['x']-_0xcdc3f7['x'];}),_0x21fd5a;}}class te extends _0x2fff63{static get['requires'](){return[T,_0x55eaf3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29b4c9){super(_0x29b4c9),_0x29b4c9['commands']['add']('previewFinalContent',new re(this['editor'])),_0x29b4c9['config']['define']('trackChanges.preview.renderFunction',(_0x30c9a5,_0x19fe9d)=>{for(const _0x46c9c8 of _0x19fe9d)_0x30c9a5['appendChild'](_0x46c9c8);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x1ab01a,Plugin as _0x307cfb,PendingActions as _0x166579}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x52489f,ObservableMixin as _0x51c58c,uid as _0x2b49b6,priorities as _0x4d0204,insertToPriorityArray as _0x5554c0,logWarning as _0x399ba0,getEnvKeystrokeText as _0x490251,FocusTracker as _0x13c5dc,KeystrokeHandler as _0x36964d,Collection as _0x5be8f1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x150ec3,IconCancel as _0x13288b,IconTrackChanges as _0x334860}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x141a17,View as _0x30d4d1,ViewCollection as _0x4e0298,FocusCycler as _0x110ff0,ViewModel as _0x244af2,createDropdown as _0x4ee41f,SplitButtonView as _0x5a0a73,addListToDropdown as _0x13d791,MenuBarMenuView as _0x425b5b,MenuBarMenuListView as _0x337c8d,ListSeparatorView as _0x451473,MenuBarMenuListItemView as _0x1ee616,MenuBarMenuListItemButtonView as _0xb53895,BodyCollection as _0x3a656f,Dialog as _0x3fccae}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2ea921,hashObject as _0x4ed5ba,surroundingMarkersDetector as _0x28ac5c,FOCUS_ANNOTATION_KEYSTROKE as _0x379c3a,AriaDescriptionView as _0x262fbf,setupThreadKeyboardNavigation as _0x9e78b0,trimHtml as ti,UserView as _0x28b6d7,LateFocusButtonView as _0x5962f8,getDateTimeFormatter as _0x22b113,getAllMarkersDomElementsSorted as _0x1750b2,sanitizeEditorConfig as _0x19f056}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x143328,LiveRange as _0x10a155,LivePosition as _0x1863e8,DowncastWriter as _0x4ea2cc}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3950f5,toWidget as _0x42437d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x232559,set as _0x7b284c,isEqual as _0x403583,unset as _0x5b24bb,omit as Vt}from'es-toolkit/compat';import{Delete as _0x4d6fdc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xd175f6,ShiftEnter as _0x1fc86b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x1ab01a{['_enabledCommands'];constructor(_0x226875,_0x5ec39c){super(_0x226875),this['_enabledCommands']=_0x5ec39c,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x2fa4cb of this['editor']['commands']['commands']())_0x2fa4cb['affectsData']&&!this['_enabledCommands']['has'](_0x2fa4cb)&&_0x2fa4cb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3a1099 of this['editor']['commands']['commands']())_0x3a1099['affectsData']&&!this['_enabledCommands']['has'](_0x3a1099)&&_0x3a1099['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x1ab01a{['_suggestions'];constructor(_0x3dccca,_0x5343cb){super(_0x3dccca),this['_suggestions']=_0x5343cb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x12e194){const _0x236b59=this['_suggestions']['get'](_0x12e194);if(!_0x236b59)throw new _0x52489f('track-changes-accept-suggestion-not-found',this);const _0x21b0d4=_0x236b59['getRanges']();this['editor']['model']['canEditAt'](_0x21b0d4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x236b59);}}class R extends _0x1ab01a{['_suggestions'];constructor(_0xa2cd51,_0x308b6b){super(_0xa2cd51),this['_suggestions']=_0x308b6b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1810b8){const _0x21e43b=this['_suggestions']['get'](_0x1810b8);if(!_0x21e43b)throw new _0x52489f('track-changes-discard-suggestion-not-found',this);const _0x50b1ed=_0x21e43b['getRanges']();this['editor']['model']['canEditAt'](_0x50b1ed)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x21e43b);}}function ls(_0x32f919,_0x36695e){let _0x561001='';return _0x561001+=_0x32f919['split']('*')['map']((_0x3d48cc,_0x3c51b4)=>_0x3c51b4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3d48cc)+'</span>':nn(_0x3d48cc))['join'](''),_0x36695e&&(_0x561001+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x36695e['value']+'\x22\x20title=\x22'+_0x36695e['title']+'\x22></span>'),_0x561001;}function nn(_0x5ddfc9){const _0x417f48=document['createElement']('span');return _0x417f48['innerText']=_0x5ddfc9,_0x417f48['innerHTML'];}function ts(_0x2a5f5a){return _0x2a5f5a['sort']((_0x51e376,_0x67bc26)=>'deletion'==_0x51e376['type']&&'deletion'!=_0x67bc26['type']?-0x1:'deletion'!=_0x51e376['type']&&'deletion'==_0x67bc26['type']?0x1:0x0);}function Zt(_0x35d8d8,_0x3bf2db){let _0x5afcd3,_0xe43288=0x0;const _0x47963d=[],_0x2bf4df=_0x3bf2db['schema'];for(;_0xe43288<_0x35d8d8['length'];){const _0x4a72d3=_0x35d8d8[_0xe43288],_0x5592d4=_0x35d8d8[_0xe43288+0x1];_0x5afcd3||(_0x5afcd3=_0x3bf2db['createPositionBefore'](_0x4a72d3)),on(_0x3bf2db,_0x4a72d3,_0x5592d4)||(_0x47963d['push'](_0x3bf2db['createRange'](_0x5afcd3,_0x2bf4df['isObject'](_0x4a72d3)?_0x3bf2db['createPositionAfter'](_0x4a72d3):_0x3bf2db['createPositionAt'](_0x4a72d3,'end'))),_0x5afcd3=null),_0xe43288++;}return _0x47963d;}function on(_0x1d2bf9,_0x18f4fa,_0x3c4d5a){if(!_0x3c4d5a)return!0x1;const _0x5964cc=_0x1d2bf9['createPositionAfter'](_0x18f4fa),_0x1be15d=_0x1d2bf9['createPositionBefore'](_0x3c4d5a);return _0x5964cc['isTouching'](_0x1be15d);}function rs(_0x3aaa35,_0x191ba3,_0x507039){for(;_0x507039['length'];){const _0x43fa0d=_0x507039['splice'](0x0,0x64);_0x3aaa35['change'](()=>{for(const _0x564b64 of _0x43fa0d)_0x564b64['isInContent']&&_0x191ba3['execute'](_0x564b64['id']);});}}class x extends _0x1ab01a{['_command'];['_suggestions'];constructor(_0x1532e7,_0x54a09f,_0x1a8ad1){super(_0x1532e7),this['_command']=_0x54a09f,this['_suggestions']=_0x1a8ad1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4cfd22=Array['from'](this['_suggestions']['values']())['some'](_0x19c482=>_0x19c482['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4cfd22;}['execute'](){const _0xdba424=ts(Array['from'](this['_suggestions']['values']()));for(const _0x28ee9c of _0xdba424){const _0x4c1fdd=_0x28ee9c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4c1fdd))return;}rs(this['editor']['model'],this['_command'],_0xdba424);}}class E extends _0x1ab01a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5cb843,_0x10cbb4,_0x5e6e38){super(_0x5cb843),this['_command']=_0x10cbb4,this['_suggestions']=_0x5e6e38,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a2c7f=this['editor']['model']['document']['selection'],_0x48db02=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x31b274,_0x417fd4){const _0x27efa4=Array['from'](_0x31b274['getRanges']()),_0x1e2767=new Set();for(const _0x2b1d08 of _0x417fd4)if(_0x2b1d08['isInContent']){for(const _0xb89dac of _0x27efa4)for(const _0x3c5ff2 of _0x2b1d08['getRanges']())(_0xb89dac['isIntersecting'](_0x3c5ff2)||_0x31b274['isCollapsed']&&!_0x2b1d08['isMultiRange']&&_0x2b1d08['next']&&_0x3c5ff2['end']['isTouching'](_0xb89dac['start']))&&_0x1e2767['add'](_0x2b1d08);}return _0x1e2767;}(_0x3a2c7f,_0x48db02),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x35f146=ts(Array['from'](this['_selectedSuggestions']));for(const _0x478e3a of _0x35f146){const _0x2628cc=_0x478e3a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2628cc))return;}rs(this['editor']['model'],this['_command'],_0x35f146);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x51c58c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x454544,_0x582102){super(),this['id']=_0x582102['id'],this['type']=_0x582102['type'],this['subType']=_0x582102['subType']||null,this['author']=_0x582102['author'],this['creator']=_0x582102['creator']||_0x582102['author'],this['isExternal']=Boolean(_0x582102['attributes']&&_0x582102['attributes']['@external']),this['data']=null,this['_model']=_0x454544,this['_onAccept']=_0x582102['onAccept'],this['_onDiscard']=_0x582102['onDiscard'],this['_onAttributesChange']=_0x582102['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x582102['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x653a7e=this;for(;_0x653a7e['previous'];)_0x653a7e=_0x653a7e['previous'];return _0x653a7e;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x51b20c){this['_markerNames']['add'](_0x51b20c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x448747=>this['_model']['markers']['get'](_0x448747))['filter'](_0x4b4fc0=>_0x4b4fc0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x539e28=>{for(const _0x4de8b7 of this['getMarkers']())_0x539e28['removeMarker'](_0x4de8b7);}),this['_markerNames']['clear']();}['removeMarker'](_0xc1764f){this['_model']['change'](_0x53ceab=>{_0x53ceab['removeMarker'](_0xc1764f);}),this['_markerNames']['delete'](_0xc1764f);}['addRange'](_0x419445){const _0x2854b0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2854b0),this['_model']['change'](_0x309625=>{_0x309625['addMarker'](_0x2854b0,{'range':_0x419445,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3fe580){for(const _0x58bb30 of this['getRanges']())if(_0x58bb30['isIntersecting'](_0x3fe580))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2abbb9=>_0x2abbb9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5326e4,_0x3e7da9)=>[..._0x5326e4,..._0x3e7da9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x37542d=this['getRanges']();if(0x1!=_0x37542d['length'])return null;const _0x3d9e59=_0x37542d[0x0],_0x182cc4=_0x3d9e59['start']['nodeAfter'],_0x54b51c=_0x3d9e59['end']['nodeBefore'];return _0x182cc4 instanceof _0x143328?_0x182cc4!=_0x54b51c?null:_0x182cc4:null;}['accept'](){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['getAllAdjacentSuggestions'](){const _0x5af0ca=[];let _0x44a2e1=this['head'];for(;_0x44a2e1;)_0x5af0ca['push'](_0x44a2e1),_0x44a2e1=_0x44a2e1['next'];return _0x5af0ca;}['setAttribute'](_0x1b64cd,_0x5c8caa){const _0x3ab17d=_0x232559(this['attributes']);_0x7b284c(_0x3ab17d,_0x1b64cd,_0x5c8caa),_0x403583(_0x3ab17d,this['attributes'])||(this['attributes']=_0x3ab17d,this['_onAttributesChange'](_0x3ab17d));}['removeAttribute'](_0x2d34b8){const _0x26344a=_0x232559(this['attributes']);_0x5b24bb(_0x26344a,_0x2d34b8),_0x403583(_0x26344a,this['attributes'])||(this['attributes']=_0x26344a,this['_onAttributesChange'](this['attributes']));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x2b49b6()['substr'](0x1,0x5);}}function c(_0x50081c,_0x25554c,_0x5a614e){const _0x450bff=_0x50081c['t'],t=_0x50081c['t'];switch(_0x25554c){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x5a614e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5a614e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5a614e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5a614e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5a614e);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x5a614e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5a614e);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a614e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5a614e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5a614e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5a614e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5a614e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5a614e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5a614e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5a614e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5a614e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5a614e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5a614e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5a614e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5a614e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5a614e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5a614e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5a614e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5a614e);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x5a614e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5a614e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5a614e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5a614e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5a614e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5a614e);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x5a614e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5a614e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5a614e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5a614e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5a614e);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x5a614e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5a614e);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x5a614e);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5a614e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5a614e);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x5a614e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5a614e);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x5a614e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5a614e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5a614e);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x5a614e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5a614e);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x450bff({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5a614e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x450bff({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5a614e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5a614e);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x5a614e);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x5a614e);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x5a614e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x25554c;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x39c572,_0x1083c9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x39c572,this['_locale']=_0x1083c9;}['getDescriptions'](_0xee2a7a){const _0x2a6869=[],_0x125986=new Set(),_0x148702=new Set();for(let _0x1ef95d=0x0;_0x1ef95d<_0xee2a7a['length'];_0x1ef95d++){const _0x563f07=_0xee2a7a[_0x1ef95d];if(!_0x563f07['isInContent'])continue;const _0x1bc598=this['_handleCustomCallbackDescription'](_0x563f07);if(_0x1bc598){if(null!=_0x563f07['subType']){if(_0x125986['has'](_0x563f07['subType']))continue;_0x125986['add'](_0x563f07['subType']);}_0x2a6869['push'](_0x1bc598);}else{if('attribute'!=_0x563f07['type'])'insertion'!=_0x563f07['type']&&'deletion'!=_0x563f07['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2a6869,_0x563f07,_0xee2a7a[_0x1ef95d+0x1]);else{const _0x35275b=_0x563f07['data']['key'];if(_0x148702['has'](_0x35275b))continue;_0x148702['add'](_0x563f07['data']['key']),_0x35275b==u?this['_handleRenameSuggestionDescription'](_0x2a6869,_0x563f07):this['_handleAttributeSuggestionDescription'](_0x2a6869,_0x563f07);}}}return this['_resolveDescriptionItems'](_0x2a6869);}['registerDescriptionCallback'](_0x240eb3){this['_customCallbacks']['push'](_0x240eb3);}['registerElementLabel'](_0xd53977,_0x4a9273,_0x3724b8=_0x4d0204['normal']){'function'==typeof _0xd53977?_0x5554c0(this['_itemLabelsCallbacks'],{'matchingCallback':_0xd53977,'label':_0x4a9273,'priority':_0x3724b8}):this['_itemLabels']['set'](_0xd53977,_0x4a9273);}['registerAttributeLabel'](_0x1aad72,_0x32473b){this['_attributeLabels']['set'](_0x1aad72,_0x32473b);}['getItemLabel'](_0x4f6df1,_0x39c9ba=0x1){let _0x144306;for(const _0x55dfed of this['_itemLabelsCallbacks'])if(_0x55dfed['matchingCallback'](_0x4f6df1)){_0x144306=_0x55dfed['label'];break;}return _0x144306||(_0x144306=this['_itemLabels']['get'](_0x4f6df1['name'])),_0x144306?_0x144306(_0x39c9ba):0x1!==_0x39c9ba?_0x39c9ba+'\x20'+_0x4f6df1['name']+'s':''+_0x4f6df1['name'];}['_addDescriptionItems'](_0x16ec92,_0x5e0c3f){const _0x2c25b6=_0x5e0c3f['getFirstRange']()['getWalker'](),_0x371d44='insertion'==_0x5e0c3f['type']?'add':'remove';for(const _0x3a5c98 of _0x2c25b6){const _0x3b1296=_0x3a5c98['item'],_0x29b6df=_0x16ec92[_0x16ec92['length']-0x1];if(_0x3b1296['is']('$textProxy'))_0x29b6df&&_0x29b6df['type']['indexOf']('Container')>-0x1&&_0x16ec92['pop'](),_0x29b6df&&'text'==_0x29b6df['type']?_0x29b6df[_0x371d44]+=_0x3b1296['data']:_0x16ec92['push']({'type':'text','add':'add'==_0x371d44?_0x3b1296['data']:'','remove':'remove'==_0x371d44?_0x3b1296['data']:''});else{if(this['_schema']['isObject'](_0x3b1296)){const _0x5afe87=_0x3b1296;if(_0x29b6df&&_0x29b6df['type']['indexOf']('Container')>-0x1&&_0x16ec92['pop'](),'elementEnd'==_0x3a5c98['type'])continue;_0x29b6df&&_0x29b6df['type']==_0x371d44+'Object'&&_0x29b6df['element']['name']==_0x5afe87['name']?_0x29b6df['quantity']++:_0x16ec92['push']({'type':_0x371d44+'Object','element':_0x5afe87,'quantity':0x1}),_0x2c25b6['skip'](_0x55f102=>!('elementEnd'==_0x55f102['type']&&_0x55f102['item']==_0x3b1296));}else{if(this['_schema']['checkChild'](_0x3b1296,'$text')||_0x3b1296['is']('element','softBreak')){const _0x7b12c=_0x3b1296;if('add'==_0x371d44&&'elementStart'==_0x3a5c98['type']||'remove'==_0x371d44&&'elementEnd'==_0x3a5c98['type'])continue;if(_0x29b6df&&-0x1==_0x29b6df['type']['indexOf']('Container')){'text'==_0x29b6df['type']&&(_0x29b6df[_0x371d44]+='\x0a');continue;}let _0x4ea2e9;if(_0x4ea2e9='add'==_0x371d44?_0x7b12c['nextSibling']&&!this['_schema']['isObject'](_0x7b12c['nextSibling'])?_0x7b12c['nextSibling']:null:_0x7b12c['previousSibling']&&!this['_schema']['isObject'](_0x7b12c['previousSibling'])?_0x7b12c['previousSibling']:null,_0x7b12c['isEmpty']||_0x4ea2e9&&_0x4ea2e9['isEmpty']){const _0xc9903a=_0x4ea2e9&&_0x4ea2e9['isEmpty']?_0x4ea2e9:_0x7b12c;_0x29b6df&&_0x29b6df['type']==_0x371d44+'EmptyContainer'&&_0x29b6df['element']['name']==_0xc9903a['name']?_0x29b6df['quantity']++:_0x16ec92['push']({'type':_0x371d44+'EmptyContainer','element':_0xc9903a,'quantity':0x1});}else _0x16ec92['push']({'type':_0x371d44+'Container','element':_0x7b12c});}}}}}['_resolveDescriptionItems'](_0x162f58){const _0x52b7c4=this['_locale'],_0x4218c6=[],_0x4c6575=[],_0x259919=[];for(const _0x39f538 of _0x162f58)switch(_0x39f538['type']){case'text':if(_0x39f538['add']=_0x39f538['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x39f538['remove']=_0x39f538['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x39f538['add']&&''!=_0x39f538['remove']){_0x4218c6['push']({'type':'replace','content':c(_0x52b7c4,'REPLACE_TEXT',['\x22'+_0x39f538['remove']+'\x22','\x22'+_0x39f538['add']+'\x22'])});continue;}if(null!=_0x39f538['add']['match'](/^ +$/)){_0x4218c6['push']({'type':'insertion','content':c(_0x52b7c4,'*Insert:*\x20%0',c(_0x52b7c4,'ELEMENT_SPACE',_0x39f538['add']['length']))});continue;}if(null!=_0x39f538['remove']['match'](/^ +$/)){_0x4218c6['push']({'type':'deletion','content':c(_0x52b7c4,'*Remove:*\x20%0',c(_0x52b7c4,'ELEMENT_SPACE',_0x39f538['remove']['length']))});continue;}if(''!=_0x39f538['add']){_0x4218c6['push']({'type':'insertion','content':c(_0x52b7c4,'*Insert:*\x20%0','\x22'+_0x39f538['add']+'\x22')});continue;}_0x4218c6['push']({'type':'deletion','content':c(_0x52b7c4,'*Remove:*\x20%0','\x22'+_0x39f538['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4218c6['push']({'type':'insertion','content':c(_0x52b7c4,'*Insert:*\x20%0',this['getItemLabel'](_0x39f538['element'],_0x39f538['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4218c6['push']({'type':'deletion','content':c(_0x52b7c4,'*Remove:*\x20%0',this['getItemLabel'](_0x39f538['element'],_0x39f538['quantity']))});continue;case'addContainer':_0x4218c6['push']({'type':'insertion','content':c(_0x52b7c4,'*Split:*\x20%0',this['getItemLabel'](_0x39f538['element'],_0x39f538['quantity']))});continue;case'removeContainer':_0x4218c6['push']({'type':'deletion','content':c(_0x52b7c4,'*Merge:*\x20%0',this['getItemLabel'](_0x39f538['element'],_0x39f538['quantity']))});continue;case'addFormat':_0x4c6575['push'](_0x39f538['key']);continue;case'removeFormat':_0x259919['push'](_0x39f538['key']);continue;default:_0x4218c6['push'](_0x39f538);}if(_0x4c6575['length']){const _0x4b61a3=_0x4c6575['map'](_0x113e10=>this['_attributeLabels']['has'](_0x113e10)?this['_attributeLabels']['get'](_0x113e10):_0x113e10)['join'](',\x20');_0x4218c6['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4b61a3)});}if(_0x259919['length']){const _0x3be12b=_0x259919['map'](_0x37b8a6=>this['_attributeLabels']['has'](_0x37b8a6)?this['_attributeLabels']['get'](_0x37b8a6):_0x37b8a6)['join'](',\x20');_0x4218c6['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3be12b)});}return _0x4218c6;}['_handleCustomCallbackDescription'](_0x512ebd){for(const _0x473d0a of this['_customCallbacks']){const _0xb0d793=_0x473d0a(_0x512ebd);if(_0xb0d793&&'type'in _0xb0d793)return _0xb0d793;}}['_handleAttributeSuggestionDescription'](_0x37678b,_0x1cc2cb){const _0x44a93f=_0x1cc2cb['data'],_0x52a280=void 0x0===_0x44a93f['newValue']?'removeFormat':'addFormat';_0x37678b['push']({'type':_0x52a280,'key':_0x44a93f['key']});}['_handleRenameSuggestionDescription'](_0x5d0ced,_0x435faa){_0x5d0ced['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x435faa['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x199355,_0x577da8,_0x53f246){if(this['_addDescriptionItems'](_0x199355,_0x577da8),_0x53f246&&_0x53f246['getFirstRange']()&&!_0x577da8['getFirstRange']()['end']['isEqual'](_0x53f246['getFirstRange']()['start'])){const _0x27c779=_0x199355[_0x199355['length']-0x1],_0x753305='insertion'==_0x577da8['type']?'add':'remove';_0x27c779&&'text'==_0x27c779['type']&&(_0x27c779[_0x753305]+='\x0a');}}}class U extends _0x307cfb{['afterInit'](){const _0x1450fd=this['editor'],_0x570c95=_0x1450fd['plugins']['get']('TrackChangesEditing');_0x1450fd['commands']['get']('showAIAssistant')&&_0x570c95['enableCommand']('showAIAssistant');}}class V extends _0x307cfb{['afterInit'](){const _0x15f048=this['editor'],_0x1e43f7=_0x15f048['locale'];if(!_0x15f048['plugins']['has']('AlignmentEditing'))return;const _0x36a43e=_0x15f048['plugins']['get']('TrackChangesEditing');_0x36a43e['enableDefaultAttributesIntegration']('alignment'),_0x36a43e['registerBlockAttribute']('alignment'),_0x36a43e['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x1e43f7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19263c=this['editor'],_0x333e3d=_0x19263c['locale'];_0x19263c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x242fa7=>{if('formatBlock'!=_0x242fa7['type'])return;const {data:_0x2a2646}=_0x242fa7;if(_0x2a2646&&'alignment'==_0x2a2646['commandName']){const _0x58de9b=_0x2a2646['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x333e3d,'*Format:*\x20%0',function(_0x3dbea8){switch(_0x3dbea8){case'left':return c(_0x333e3d,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x333e3d,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x333e3d,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x333e3d,'FORMAT_JUSTIFY_TEXT');}}(_0x58de9b))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x307cfb{['afterInit'](){const _0xe87bb0=this['editor'],_0x567308=_0xe87bb0['plugins']['get']('TrackChangesEditing'),_0x2a770e=_0xe87bb0['locale'];for(const _0x28bb3b of Yt){if(!_0xe87bb0['plugins']['has'](_0x28bb3b))continue;const _0x4cdd7f=_0x28bb3b['slice'](0x0,-0x7)['toLowerCase'](),_0x3637ef='FORMAT_'+_0x4cdd7f['toUpperCase']();_0x567308['enableDefaultAttributesIntegration'](_0x4cdd7f),_0x567308['registerInlineAttribute'](_0x4cdd7f),_0x567308['descriptionFactory']['registerAttributeLabel'](_0x4cdd7f,c(_0x2a770e,_0x3637ef));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e825b=this['editor'],_0x7fa298=_0x3e825b['locale'],_0x231f0f=_0x3e825b['plugins']['get']('TrackChangesEditing');function _0x534ef9(_0x58cc74,_0x2d55e2){_0x231f0f['descriptionFactory']['registerDescriptionCallback'](_0x490989=>{if('formatInline'!=_0x490989['type'])return;const {data:_0x47ff3d}=_0x490989;return _0x47ff3d&&_0x47ff3d['commandName']===_0x58cc74?_0x47ff3d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x7fa298,'*Format:*\x20%0',_0x2d55e2)}:{'type':'format','content':c(_0x7fa298,'*Remove\x20format:*\x20%0',_0x2d55e2)}:void 0x0;});}_0x534ef9('bold',c(_0x7fa298,'FORMAT_BOLD')),_0x534ef9('italic',c(_0x7fa298,'FORMAT_ITALIC')),_0x534ef9('underline',c(_0x7fa298,'FORMAT_UNDERLINE')),_0x534ef9('code',c(_0x7fa298,'FORMAT_CODE')),_0x534ef9('strikethrough',c(_0x7fa298,'FORMAT_STRIKETHROUGH')),_0x534ef9('subscript',c(_0x7fa298,'FORMAT_SUBSCRIPT')),_0x534ef9('superscript',c(_0x7fa298,'FORMAT_SUPERSCRIPT'));}}class G extends _0x307cfb{['afterInit'](){const _0x4e6127=this['editor'],_0x391592=_0x4e6127['locale'];if(!_0x4e6127['plugins']['has']('BlockQuoteEditing'))return;const _0x3c1ed4=_0x4e6127['plugins']['get']('TrackChangesEditing'),_0x549a09=this['editor']['commands']['get']('blockQuote');_0x3c1ed4['enableCommand']('blockQuote',(_0x693368,_0x1c24c7={})=>{const _0x3a1504=this['editor']['model']['document']['selection'],_0x5759ad=_0x1c24c7&&void 0x0!==_0x1c24c7['forceValue']?_0x1c24c7['forceValue']:!_0x549a09['value'];let _0x160f72=[];if(_0x5759ad){const _0x236e1d=Array['from'](_0x3a1504['getSelectedBlocks']())['filter'](_0x371372=>to(_0x371372)||function(_0x218bb2,_0x323404){const _0x2de774=_0x323404['checkChild'](_0x218bb2['parent'],'blockQuote'),_0x1c6b3b=_0x323404['checkChild'](['$root','blockQuote'],_0x218bb2);return _0x2de774&&_0x1c6b3b;}(_0x371372,this['editor']['model']['schema']));_0x160f72=Zt(_0x236e1d,_0x4e6127['model']);}else{const _0x3ec516=Array['from'](_0x3a1504['getSelectedBlocks']())['filter'](_0x2a2ec2=>to(_0x2a2ec2));_0x160f72=Zt(_0x3ec516,_0x4e6127['model']);}_0x4e6127['model']['change'](()=>{for(const _0x416ca2 of _0x160f72)_0x3c1ed4['markBlockFormat'](_0x416ca2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5759ad}]});});}),_0x3c1ed4['descriptionFactory']['registerDescriptionCallback'](_0x5b8c29=>{const {data:_0x53e45d}=_0x5b8c29;if(_0x53e45d&&'blockQuote'==_0x53e45d['commandName']){const _0x5e169d=c(_0x391592,'ELEMENT_BLOCK_QUOTE');return _0x53e45d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x391592,'*Set\x20format:*\x20%0',_0x5e169d)}:{'type':'format','content':c(_0x391592,'*Remove\x20format:*\x20%0',_0x5e169d)};}});}}function to(_0x286c4a){return'blockQuote'==_0x286c4a['parent']['name'];}class L extends _0x307cfb{['afterInit'](){const _0x212ebc=this['editor'],_0x5cdc9d=_0x212ebc['locale'],_0x8b67d8=_0x212ebc['plugins']['get']('TrackChangesEditing');_0x212ebc['plugins']['has']('BookmarkEditing')&&(_0x8b67d8['enableCommand']('insertBookmark'),_0x8b67d8['enableDefaultAttributesIntegration']('updateBookmark'),_0x8b67d8['registerBlockAttribute']('bookmarkId'),_0x8b67d8['descriptionFactory']['registerDescriptionCallback'](_0x827430=>{if('insertion'!=_0x827430['type']&&'deletion'!=_0x827430['type']&&'attribute'!=_0x827430['type'])return;const _0x55c813=_0x827430['getContainedElement']();if(null==_0x55c813)return;if(!_0x55c813['is']('element','bookmark'))return;const _0x3d2850=_0x55c813['getAttribute']('bookmarkId');if('insertion'==_0x827430['type'])return{'type':'insertion','content':c(_0x5cdc9d,'*Insert:*\x20%0','\x22'+_0x3d2850+'\x22\x20'+c(_0x5cdc9d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x827430['type'])return{'type':'deletion','content':c(_0x5cdc9d,'*Remove:*\x20%0','\x22'+_0x3d2850+'\x22\x20'+c(_0x5cdc9d,'ELEMENT_BOOKMARK'))};const {data:_0x4f91c5}=_0x827430;if(!_0x4f91c5||'bookmarkId'!=_0x4f91c5['key'])return;return{'type':'format','content':c(_0x5cdc9d,'*Set\x20bookmark:*\x20%0','\x22'+_0x4f91c5['newValue']+'\x22')};}));}}class J extends _0x307cfb{['afterInit'](){const _0x5577b7=this['editor'];_0x5577b7['plugins']['has']('CaseChange')&&(_0x5577b7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5577b7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5577b7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x307cfb{['afterInit'](){const _0x35e8df=this['editor'];_0x35e8df['commands']['get']('ckbox')&&_0x35e8df['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x307cfb{['afterInit'](){const _0x3d2854=this['editor'];if(!_0x3d2854['plugins']['has']('CodeBlock'))return;const _0x1d208e=_0x3d2854['plugins']['get']('TrackChangesEditing'),_0x1e2684=_0x3d2854['locale'],_0x5cbe33=_0x3d2854['config']['get']('codeBlock')['languages'],_0x59d55b=_0x3d2854['commands']['get']('codeBlock');_0x1d208e['enableCommand']('indentCodeBlock'),_0x1d208e['enableCommand']('outdentCodeBlock'),_0x1d208e['enableCommand']('codeBlock',(_0x1819c5,_0xacfab1={})=>{const _0x2602a0=_0x3d2854['model'],_0x46ca8a=_0x3d2854['model']['document']['selection'],_0x2e7565=_0xacfab1&&void 0x0!==_0xacfab1['forceValue']?_0xacfab1['forceValue']:!_0x59d55b['value'];let _0x25b917;_0xacfab1['language']||(_0xacfab1['language']=_0x5cbe33[0x0]['language']),_0x25b917=_0x2e7565?Array['from'](_0x46ca8a['getSelectedBlocks']())['filter'](_0xded951=>oo(_0xded951)||function(_0x5b42ce,_0x5a3513){if(_0x5b42ce['is']('rootElement')||_0x5a3513['isLimit'](_0x5b42ce))return!0x1;return _0x5a3513['checkChild'](_0x5b42ce['parent'],'codeBlock');}(_0xded951,_0x2602a0['schema'])):Array['from'](_0x46ca8a['getSelectedBlocks']())['filter'](_0x3cc6ea=>oo(_0x3cc6ea));const _0x202f27=Zt(_0x25b917,_0x2602a0);_0x2602a0['change'](()=>{for(const _0x508f8b of _0x202f27)_0x1d208e['markBlockFormat'](_0x508f8b,{'commandName':'codeBlock','commandParams':[{..._0xacfab1,'forceValue':_0x2e7565}],'formatGroupId':'blockName'});});}),(_0x1d208e['descriptionFactory']['registerElementLabel']('codeBlock',_0x181888=>c(_0x1e2684,'ELEMENT_CODE_BLOCK',_0x181888)),_0x1d208e['descriptionFactory']['registerDescriptionCallback'](_0x2645b9=>{if('formatBlock'!=_0x2645b9['type'])return;const _0x59df32=_0x1e2684['t'],{data:_0x3fc8dd}=_0x2645b9;if(!_0x3fc8dd||'codeBlock'!=_0x3fc8dd['commandName'])return;const _0x839a13=_0x3fc8dd['commandParams'][0x0]['language'],_0x3c4bde=_0x59df32(_0x5cbe33['find'](_0x29a140=>_0x29a140['language']===_0x839a13)['label'])['toLowerCase']();return _0x3fc8dd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1e2684,'*Set\x20format:*\x20%0',c(_0x1e2684,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c4bde+')')}:{'type':'format','content':c(_0x1e2684,'*Remove\x20format:*\x20%0',c(_0x1e2684,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x4707dc){return'codeBlock'==_0x4707dc['name'];}class q extends _0x307cfb{['afterInit'](){const _0x2a3763=this['editor'];if(!_0x2a3763['plugins']['has']('CommentsEditing'))return;_0x2a3763['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2b7035,_0x5a3c1d,_0x166bcc){const _0x1414ee=[];for(const _0x9d2850 of _0x5a3c1d['getItems']())_0x9d2850['hasAttribute'](_0x2b7035)&&_0x1414ee['push'](_0x166bcc['createRangeOn'](_0x9d2850));return _0x1414ee;}function De(_0x51f5cc,_0x5d26f3,{showActiveMarker:_0x4fa5c4=!0x0}={}){const _0x47186d=_0x51f5cc['plugins']['get']('TrackChangesEditing');return(_0x445868,_0x4e34ff,_0x571923)=>{if(!_0x571923['consumable']['test'](_0x4e34ff['markerRange'],_0x445868['name']))return;const _0x20c93f=_0x4e34ff['markerRange']['getWalker'](),_0x23957c=_0x4e34ff['markerRange']['start'],_0x4afcee=_0x51f5cc['model']['schema'];let _0x38b9c6=null,_0x40791a=null,_0x488cb3=!0x1,_0x356095=!0x1;for(const _0x2b5738 of _0x20c93f){const _0x43ab8d=_0x2b5738['item'];_0x488cb3=_0x488cb3||_0x4afcee['isContent'](_0x43ab8d);const _0xbd1194=_0x571923['mapper']['toViewElement'](_0x43ab8d);if(_0xbd1194&&_0xbd1194['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2b5738['type']&&(_0x4afcee['isBlock'](_0x43ab8d)&&!_0x4afcee['isLimit'](_0x43ab8d)&&(_0x43ab8d['nextSibling']||_0x23957c['isAtEnd']?_0x38b9c6&&_0x38b9c6['parent']==_0x43ab8d||(_0x38b9c6=_0x43ab8d,_0xbbc77c(_0x2b5738['previousPosition']),_0x356095=!0x0):_0x40791a=_0x40791a||_0x2b5738['previousPosition']));}function _0xbbc77c(_0x38a1ae){const {authorId:_0x3fa450}=_0x47186d['_splitMarkerName'](_0x4e34ff['markerName']),_0x1d8d5b=_0x571923['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d26f3,'data-author-id':_0x3fa450}),_0x4b4c0e=_0x571923['mapper']['toViewPosition'](_0x38a1ae);_0x4fa5c4&&_0x47186d['activeMarkers']['includes'](_0x4e34ff['markerName'])&&_0x571923['writer']['addClass']('ck-suggestion-marker--active',_0x1d8d5b),_0x571923['writer']['insert'](_0x4b4c0e,_0x1d8d5b),_0x571923['mapper']['bindElementToMarker'](_0x1d8d5b,_0x4e34ff['markerName']);}_0x488cb3||_0x356095||!_0x40791a||_0xbbc77c(_0x40791a);};}class z extends _0x307cfb{static get['requires'](){return[_0x4d6fdc];}['init'](){const _0x376a74=this['editor'],_0xdb4b07=_0x376a74['plugins']['get']('TrackChangesEditing');_0xdb4b07['enableCommand']('delete');const _0x1db363=_0x376a74['commands']['get']('deleteForward');_0xdb4b07['enableCommand']('deleteForward',(_0x540fdb,_0x5bb873={})=>{const _0x43f569=_0x376a74['model']['createSelection'](_0x376a74['model']['document']['selection']);_0x43f569['isCollapsed']&&_0x376a74['model']['modifySelection'](_0x43f569,{'direction':'forward','unit':_0x5bb873['unit']});const _0x2460a1=_0x43f569['getFirstRange'](),_0x5555f5=_0x10a155['fromRange'](_0x2460a1);let _0x1ab9de;_0x540fdb(_0x5bb873),_0x1ab9de='$graveyard'==_0x5555f5['root']['rootName']?_0x376a74['model']['createRange'](_0x2460a1['start']):_0x376a74['model']['createRange'](_0x5555f5['start'],_0x5555f5['end']),_0x5555f5['detach'](),_0x376a74['model']['enqueueChange'](_0x1db363['buffer']['batch'],_0x1b9238=>{_0x1db363['buffer']['lock'](),_0x1b9238['setSelection'](_0x1b9238['createRange'](_0x1ab9de['end'])),_0x1db363['buffer']['unlock']();});}),_0x376a74['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x376a74,'merge'),{'priority':'high'}),_0x376a74['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5422f7,_0x1d8395,_0x4de992)=>{_0x4de992['options']['showSuggestionHighlights']&&De(_0x376a74,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5422f7,_0x1d8395,_0x4de992);},{'priority':'high'}),_0x376a74['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fd26c,_0xf1537d,_0x16883a)=>{const _0x35996e=_0x16883a['mapper']['markerNameToElements'](_0xf1537d['markerName']);if(_0x35996e){for(const _0x3c17a8 of _0x35996e)_0x3c17a8['is']('uiElement')&&(_0x16883a['mapper']['unbindElementFromMarkerName'](_0x3c17a8,_0xf1537d['markerName']),_0x16883a['writer']['remove'](_0x3c17a8));}},{'priority':'high'});}}class W extends _0x307cfb{['afterInit'](){const _0x303b0c=this['editor'];if(!_0x303b0c['plugins']['has']('ListEditing'))return;const _0x246572=_0x303b0c['locale'],_0x3bd443=_0x303b0c['plugins']['get']('TrackChangesEditing'),_0x40ce37=_0x303b0c['plugins']['has']('TodoListEditing'),_0x261c37=!!_0x303b0c['config']['get']('list.multiBlock');function _0x4d5208(_0x193653){return{'type':'format','content':''+c(_0x246572,'*Set\x20format:*\x20%0',_0x193653)};}function _0x3e2398(_0x30cbfa){return{'type':'format','content':''+c(_0x246572,'*Remove\x20format:*\x20%0',_0x30cbfa)};}_0x3bd443['enableDefaultAttributesIntegration']('numberedList'),_0x3bd443['enableDefaultAttributesIntegration']('bulletedList'),_0x3bd443['enableDefaultAttributesIntegration']('customNumberedList'),_0x3bd443['enableDefaultAttributesIntegration']('customBulletedList'),_0x3bd443['enableDefaultAttributesIntegration']('indentList'),_0x3bd443['enableDefaultAttributesIntegration']('outdentList'),_0x3bd443['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3bd443['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3bd443['registerBlockAttribute']('listItemId'),_0x3bd443['registerBlockAttribute']('listType'),_0x3bd443['registerBlockAttribute']('listIndent'),_0x261c37&&(_0x3bd443['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3bd443['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x40ce37&&(_0x3bd443['enableDefaultAttributesIntegration']('todoList'),_0x3bd443['enableDefaultAttributesIntegration']('checkTodoList'),_0x3bd443['registerBlockAttribute']('todoListChecked'),_0x3bd443['descriptionFactory']['registerDescriptionCallback'](_0x437f7a=>{const {data:_0xf0ba61}=_0x437f7a;if(_0xf0ba61&&'todoListChecked'==_0xf0ba61['key'])return{'type':'format','content':_0xf0ba61['newValue']?c(_0x246572,'*Check\x20item*'):c(_0x246572,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x42a279=>{if(_0x42a279['batch']['isUndo'])return!0x1;let _0x9dc309=!0x1;const _0x5ba6de=_0x3bd443['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x362699=>'todoListChecked'===_0x3bd443['_getAttributeKey'](_0x362699));for(const _0xf2d750 of _0x5ba6de){'todo'!=_0xf2d750['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3bd443['_findSuggestions'](_0xf2d750['getFirstRange'](),'attribute')['find'](_0x2a6596=>'listType'===_0x3bd443['_getAttributeKey'](_0x2a6596['suggestion']))||(_0x42a279['removeMarker'](_0xf2d750['getFirstMarker']()),_0x9dc309=!0x0));}return _0x9dc309;})),_0x3bd443['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x246572,'FORMAT_INDENT'));const _0x2bbe07={'type':'format','content':''};_0x3bd443['descriptionFactory']['registerDescriptionCallback'](_0x554ace=>{const {data:_0x1cc62e}=_0x554ace;if(!_0x1cc62e||'listType'!=_0x1cc62e['key'])return;let _0x8b7d92=_0x554ace['head'];for(;_0x8b7d92;){if(_0x8b7d92['data']&&(('listStyle'==_0x8b7d92['data']['key']||'listMarkerStyle'==_0x8b7d92['data']['key'])&&(_0x8b7d92['data']['newValue']&&'default'!=_0x8b7d92['data']['newValue']||'default'!=_0x8b7d92['data']['oldValue']&&!_0x1cc62e['newValue'])||!_0x261c37&&_0x8b7d92['data']['key']==u))return _0x2bbe07;_0x8b7d92=_0x8b7d92['next'];}if(null==_0x1cc62e['newValue'])switch(_0x1cc62e['oldValue']){case'bulleted':return _0x3e2398(c(_0x246572,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e2398(c(_0x246572,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e2398(c(_0x246572,'ELEMENT_TODO_LIST'));}switch(_0x1cc62e['newValue']){case'bulleted':return _0x4d5208(c(_0x246572,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d5208(c(_0x246572,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d5208(c(_0x246572,'ELEMENT_TODO_LIST'));}}),_0x3bd443['descriptionFactory']['registerDescriptionCallback'](_0x4bf4c3=>{const {data:_0x32087e}=_0x4bf4c3;if(_0x32087e&&'listIndent'==_0x32087e['key'])return null==_0x32087e['newValue']||null==_0x32087e['oldValue']&&0x0==_0x32087e['newValue']?_0x2bbe07:void 0x0;}),_0x3bd443['descriptionFactory']['registerDescriptionCallback'](_0x374098=>{if('attribute'!=_0x374098['type'])return;const {data:_0x34db9c}=_0x374098;if(!_0x34db9c||'listItemId'!=_0x34db9c['key'])return;const _0x234c8e=Te(_0x374098);return'newValue'==_0x234c8e?{'type':'format','content':c(_0x246572,'*Merge:*\x20list\x20item')}:'oldValue'==_0x234c8e?{'type':'format','content':c(_0x246572,'*Split:*\x20list\x20item')}:_0x2bbe07;}),_0x303b0c['model']['document']['registerPostFixer'](_0x46957a=>this['listItemIdFixer'](_0x46957a)),_0x303b0c['model']['document']['registerPostFixer'](_0x1b974e=>this['noTrackChangesFixer'](_0x1b974e)),_0x303b0c['model']['document']['on']('change:data',(_0x44010c,_0x2e9629)=>{if(_0x2e9629['isUndo']||!_0x2e9629['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x37e831){if(_0x37e831['batch']['isUndo']||!_0x37e831['batch']['isLocal'])return!0x1;let _0x1d6e42=!0x1;const _0x5223b3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x439cee=>_0x439cee['data']&&'listItemId'==_0x439cee['data']['key'])['filter'](_0x3927ec=>_0x3927ec['data']['newValue']&&_0x3927ec['data']['oldValue']);for(const _0x5369fc of _0x5223b3)Te(_0x5369fc)||(_0x37e831['removeMarker'](_0x5369fc['getFirstMarker']()),_0x1d6e42=!0x0);return _0x1d6e42;}['noTrackChangesFixer'](_0x1faa16){if(_0x1faa16['batch']['isUndo']||!_0x1faa16['batch']['isLocal'])return!0x1;const _0x2a8d05=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2a8d05['trackChangesCommand']['value'])return!0x1;let _0x2f726d=!0x1;const _0x8fd911=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3b7076=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2304a7=>'attribute'==_0x2304a7['type'])['filter'](_0x5723bf=>_0x8fd911['includes'](_0x5723bf['attributeKey']));if(0x0==_0x3b7076['length'])return _0x2f726d;for(const _0x8bcc49 of _0x3b7076){const _0x3c10b9=_0x2a8d05['_findSuggestions'](_0x8bcc49['range'],'attribute')['filter'](_0x5f3809=>!_0x5f3809['meta']['isNextTo'])['map'](_0x4c18f0=>_0x4c18f0['suggestion'])['filter'](_0x2d36cd=>{const _0x591c4e=_0x2a8d05['_getAttributeKey'](_0x2d36cd);return _0x8fd911['includes'](_0x591c4e);});if(_0x3c10b9['length']){for(const _0x41a811 of _0x3c10b9)_0x1faa16['removeMarker'](_0x41a811['getFirstMarker']());_0x2f726d=!0x0;}}return _0x2f726d;}['assureChains'](){const _0x2cbffe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ded7f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x328c7c;const _0x1d8cd5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x179cd2=>{if(_0x179cd2['data']['oldRange']||!_0x179cd2['data']['newRange'])return null;if(!_0x179cd2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2119c2}=_0x2cbffe['_splitMarkerName'](_0x179cd2['name']);if(!_0x2cbffe['hasSuggestion'](_0x2119c2))return null;const _0x5d0529=_0x2cbffe['getSuggestion'](_0x2119c2);return _0x1ded7f['includes'](_0x5d0529['data']['key']);})['map'](_0x4fdcb7=>{const {id:_0xacbb2c}=_0x2cbffe['_splitMarkerName'](_0x4fdcb7['name']),_0x26f445=_0x2cbffe['getSuggestion'](_0xacbb2c);return _0x328c7c=_0x26f445['attributes']['groupId'],_0x26f445['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1d8cd5['size'])return;const _0xfeaefa=_0x2cbffe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x354c60=>'attribute'==_0x354c60['type']&&_0x354c60['data']&&_0x1ded7f['includes'](_0x354c60['data']['key'])&&_0x354c60['attributes']['groupId']!=_0x328c7c)['map'](_0x270c68=>({'listItem':_0x270c68['getFirstRange']()['start']['nodeAfter'],'groupId':_0x270c68['attributes']['groupId']})),_0x44a6a9=new Set();for(const {groupId:_0x2ec3c7,listItem:_0xcf0bd0}of _0xfeaefa)_0x1d8cd5['has'](_0xcf0bd0)&&_0x44a6a9['add'](_0x2ec3c7);for(const _0x29d5c4 of _0x2cbffe['getSuggestions']())_0x44a6a9['has'](_0x29d5c4['attributes']['groupId'])&&_0x29d5c4['setAttribute']('groupId',_0x328c7c);}['_supportLegacySuggestions'](){const _0x8f9f16=this['editor'],_0x24734e=_0x8f9f16['locale'],_0x301dc1=_0x8f9f16['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x301dc1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5bfbb6,_0x427335){const _0x5b9d04=[];for(let _0x4c3716 of _0x5bfbb6)_0x4c3716['start']['nodeAfter']===_0x4c3716['end']['parent']&&(_0x4c3716=_0x8f9f16['model']['createRange'](_0x8f9f16['model']['createPositionAt'](_0x4c3716['start']['nodeAfter'],0x0))),_0x5b9d04['push'](_0x4c3716);_0x8f9f16['model']['change'](_0x5e9299=>{const _0x4665e0=_0x8f9f16['model']['document']['selection'],_0x4ff131=Array['from'](_0x4665e0['getRanges']())['map'](_0x5d2a85=>_0x10a155['fromRange'](_0x5d2a85));_0x5e9299['setSelection'](_0x5b9d04),_0x8f9f16['commands']['get'](_0x427335['commandName'])['refresh'](),_0x427335['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x8f9f16['execute'](_0x427335['commandName'],..._0x427335['commandParams']),_0x5e9299['setSelection'](_0x4ff131);for(const _0x4145bc of _0x4ff131)_0x4145bc['detach']();});}),_0x301dc1['descriptionFactory']['registerElementLabel'](function(_0x13e793){const _0x15c953=!_0x8f9f16['model']['schema']['isObject'](_0x13e793),_0x298afd=_0x13e793['previousSibling'],_0x1d2ba1=_0x13e793['nextSibling'],_0x271f2d=_0x13e793['getAttribute']('listItemId'),_0x51b164=!_0x298afd||_0x298afd['getAttribute']('listItemId')!==_0x271f2d,_0x1a3cca=!_0x1d2ba1||_0x1d2ba1['getAttribute']('listItemId')!==_0x271f2d;return _0x15c953&&Boolean(_0x271f2d)&&_0x51b164&&_0x1a3cca;},_0x87ff9c=>c(_0x24734e,'ELEMENT_LIST_ITEM',_0x87ff9c));}['_registerLegacyDescription'](){const _0x2409d5=this['editor'],_0xb3bc35=_0x2409d5['locale'];function _0x6b2ce5(_0x5377bd){const _0x3c2a9d=_0x2409d5['commands']['get']('bulletedList')['value'],_0x1de299=_0x2409d5['commands']['get']('numberedList')['value'];return'numberedList'===_0x5377bd?_0x3c2a9d:_0x1de299;}_0x2409d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ffc9f){if('formatBlock'!=_0x1ffc9f['type'])return;const {data:_0x105525}=_0x1ffc9f;if(!_0x105525)return;let _0x552f83,_0x78fe6d,_0x2bfeb7,_0x342575;switch(_0x105525['commandName']){case'bulletedList':_0x2bfeb7=_0x105525['commandParams'][0x0]['forceValue'],_0x342575=_0x6b2ce5(_0x105525['commandName']),_0x552f83=_0x2bfeb7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x342575&&_0x2409d5['config']['get']('list.multiBlock')||(_0x552f83='*Change\x20to:*\x20%0'),_0x78fe6d={'type':'format','content':c(_0xb3bc35,_0x552f83,c(_0xb3bc35,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2bfeb7=_0x105525['commandParams'][0x0]['forceValue'],_0x342575=_0x6b2ce5(_0x105525['commandName']),_0x552f83=_0x2bfeb7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x342575&&_0x2409d5['config']['get']('list.multiBlock')||(_0x552f83='*Change\x20to:*\x20%0'),_0x78fe6d={'type':'format','content':c(_0xb3bc35,_0x552f83,c(_0xb3bc35,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x552f83='*Indent:*\x20%0',_0x78fe6d={'type':'format','content':c(_0xb3bc35,_0x552f83,c(_0xb3bc35,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x552f83=function(_0x4a546b){const _0x5961b2=_0x4a546b['getFirstRange']();let _0x3b3f9c=_0x5961b2['start']['nodeAfter'];for(;_0x3b3f9c&&_0x5961b2['containsItem'](_0x3b3f9c);){if(_0x3b3f9c['getAttribute']('listIndent')>0x0)return!0x1;_0x3b3f9c=_0x3b3f9c['nextSibling'];}return!0x0;}(_0x1ffc9f)?c(_0xb3bc35,'*Format:*\x20remove\x20from\x20%0',c(_0xb3bc35,function(_0xb8b401){return'ELEMENT_'+_0xb8b401['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ffc9f))):c(_0xb3bc35,'*Outdent:*\x20%0',c(_0xb3bc35,'ELEMENT_LIST_ITEM')),_0x78fe6d={'type':'format','content':_0x552f83};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x105525['multipleBlocks']&&(_0x552f83='*Merge:*\x20%0',_0x78fe6d={'type':'deletion','content':c(_0xb3bc35,_0x552f83,c(_0xb3bc35,'ELEMENT_LIST_ITEM'))});}return _0x78fe6d;});}}function Te(_0x5884ca){let _0x48d88e=_0x5884ca['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x48d88e;){const _0x4f6fca=_0x48d88e['getAttribute']('listItemId');if(!_0x4f6fca)return!0x1;if(_0x4f6fca==_0x5884ca['data']['newValue'])return'newValue';if(_0x4f6fca==_0x5884ca['data']['oldValue'])return'oldValue';_0x48d88e=_0x48d88e['previousSibling'];}return!0x1;}class Se extends _0x307cfb{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ffecc=this['editor']['config']['get']('list.properties'),_0x823386=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ffecc['styles']&&(_0x823386['enableDefaultAttributesIntegration']('listStyle'),_0x823386['registerBlockAttribute']('listStyle')),_0x1ffecc['reversed']&&(_0x823386['enableDefaultAttributesIntegration']('listReversed'),_0x823386['registerBlockAttribute']('listReversed')),_0x1ffecc['startIndex']&&(_0x823386['enableDefaultAttributesIntegration']('listStart'),_0x823386['registerBlockAttribute']('listStart'));const _0x27b263={'type':'format','content':''};_0x823386['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xdc8ab6=this['editor']['locale'];_0x823386['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0xdc8ab6,'FORMAT_LIST_REVERSED')),_0x823386['descriptionFactory']['registerDescriptionCallback'](_0x39bdd4=>{const {data:_0x396ae8}=_0x39bdd4;if(_0x396ae8&&'listReversed'==_0x396ae8['key'])return null==_0x396ae8['newValue']||0x0==_0x396ae8['newValue']&&null==_0x396ae8['oldValue']?_0x27b263:void 0x0;}),_0x823386['descriptionFactory']['registerAttributeLabel']('listStart',c(_0xdc8ab6,'FORMAT_LIST_START')),_0x823386['descriptionFactory']['registerDescriptionCallback'](_0x41306e=>{const {data:_0x543fba}=_0x41306e;if(_0x543fba&&'listStart'==_0x543fba['key'])return null==_0x543fba['newValue']||0x1==_0x543fba['newValue']&&null==_0x543fba['oldValue']?_0x27b263:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4b001c=>{if(_0x4b001c['batch']['isUndo'])return!0x1;let _0xdd0b7d=!0x1;const _0x5eef88=_0x823386['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c607d=>{const _0x2f9900=_0x823386['_getAttributeKey'](_0x5c607d);return'listStart'==_0x2f9900||'listReversed'==_0x2f9900;});for(const _0x30f013 of _0x5eef88){const _0x4fc7e6=_0x30f013['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4fc7e6||'customNumbered'==_0x4fc7e6)continue;_0x823386['_findSuggestions'](_0x30f013['getFirstRange'](),'attribute')['find'](_0x177c7b=>'listType'==_0x823386['_getAttributeKey'](_0x177c7b['suggestion']))||(_0x4b001c['removeMarker'](_0x30f013['getFirstMarker']()),_0xdd0b7d=!0x0);}return _0xdd0b7d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3693ed){const _0x3d656f=this['editor']['locale'],{data:_0x558af7}=_0x3693ed,_0x58cc44={'type':'format','content':''};if(!_0x558af7||'listStyle'!=_0x558af7['key'])return;if(!_0x558af7['oldValue'])return'default'==_0x558af7['newValue']?_0x58cc44:{'type':'format','content':''+c(_0x3d656f,'*Set\x20format:*\x20%0',c(_0x3d656f,this['_getTranslationKeyForListStyle'](_0x558af7['newValue'])))};if(!_0x558af7['newValue']){if('default'==_0x558af7['oldValue'])return _0x58cc44;let _0x1609f2=_0x3693ed['head'];for(;_0x1609f2;){if(_0x1609f2['data']&&'listType'==_0x1609f2['data']['key']&&_0x1609f2['data']['newValue'])return _0x58cc44;_0x1609f2=_0x1609f2['next'];}return{'type':'format','content':''+c(_0x3d656f,'*Remove\x20format:*\x20%0',c(_0x3d656f,this['_getTranslationKeyForListStyle'](_0x558af7['oldValue'])))};}if('default'!=_0x558af7['newValue'])return{'type':'format','content':''+c(_0x3d656f,'*Set\x20format:*\x20%0',c(_0x3d656f,this['_getTranslationKeyForListStyle'](_0x558af7['newValue'])))};let _0x58b582=_0x3693ed['head'];for(;_0x58b582;){if(_0x58b582['data']&&'listType'==_0x58b582['data']['key']&&_0x58b582['data']['newValue']&&_0x58b582['data']['oldValue'])return _0x58cc44;_0x58b582=_0x58b582['next'];}return{'type':'format','content':c(_0x3d656f,'*Set\x20format:*\x20%0',c(_0x3d656f,'ELEMENT_'+_0x3693ed['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x972adb=this['editor'],_0x898bb3=_0x972adb['locale'];_0x972adb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2df0f3=>{if('formatBlock'!=_0x2df0f3['type'])return;const {data:_0x57f895}=_0x2df0f3;if(!_0x57f895)return;let _0x3e9bd3,_0x31f902;switch(_0x57f895['commandName']){case'listStyle':_0x3e9bd3='*Change\x20to:*\x20%0',_0x31f902={'type':'format','content':c(_0x898bb3,_0x3e9bd3,c(_0x898bb3,this['_getTranslationKeyForListStyle'](_0x57f895['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3e9bd3=_0x57f895['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x31f902={'type':'format','content':c(_0x898bb3,_0x3e9bd3)};break;case'listStart':_0x3e9bd3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x31f902={'type':'format','content':c(_0x898bb3,_0x3e9bd3,_0x57f895['commandParams'][0x0]['startIndex'])};}return _0x31f902;});}['_getTranslationKeyForListStyle'](_0xb783f0){return'ELEMENT_'+function(_0x2d17ed){if(_e['includes'](_0x2d17ed))return'bulleted';if(Re['includes'](_0x2d17ed))return'numbered';return null;}(_0xb783f0)['toUpperCase']()+'_LIST_'+_0xb783f0['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x307cfb{['afterInit'](){const _0x3abcc1=this['editor'];_0x3abcc1['commands']['get']('emoji')&&_0x3abcc1['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x307cfb{static get['requires'](){return[_0xd175f6];}['init'](){const _0x3975d7=this['editor'],_0x14170e=_0x3975d7['plugins']['get']('TrackChangesEditing'),_0x2ae576=_0x3975d7['commands']['get']('enter');_0x14170e['enableCommand']('enter',()=>{_0x3975d7['model']['change'](_0xcc4094=>{const _0x4335ad=_0x3975d7['model']['document']['selection'],_0x4ee812=_0x4335ad['getFirstPosition'](),_0x1dbde8=_0x10a155['fromRange'](_0x4335ad['getFirstRange']());if(_0x2ae576['enterBlock'](_0xcc4094)){const _0x1a9130=_0x3975d7['model']['createPositionAt'](_0x4ee812['parent']['nextSibling'],0x0),_0x4806e8=_0xcc4094['createRange'](_0x4ee812,_0x1a9130);_0x14170e['markInsertion'](_0x4806e8);}else _0xcc4094['setSelection'](_0xcc4094['createRange'](_0x1dbde8['end']));_0x1dbde8['detach'](),_0x2ae576['fire']('afterExecute',{'writer':_0xcc4094});});}),_0x3975d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3975d7,'split'),{'priority':'high'}),_0x3975d7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2fde67,_0x13bff3,_0x1765d1)=>{const _0x274a47=_0x1765d1['mapper']['markerNameToElements'](_0x13bff3['markerName']);if(_0x274a47){for(const _0x2abb8c of _0x274a47)_0x2abb8c['hasClass']('ck-suggestion-marker-split')&&(_0x1765d1['mapper']['unbindElementFromMarkerName'](_0x2abb8c,_0x13bff3['markerName']),_0x1765d1['writer']['remove'](_0x2abb8c));}},{'priority':'high'}),_0x3975d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xfd2e86,_0x22402c,_0x333d92)=>{_0x333d92['options']['showSuggestionHighlights']&&De(_0x3975d7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xfd2e86,_0x22402c,_0x333d92);},{'priority':'high'});}}class Z extends _0x307cfb{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x50118b=this['editor']['plugins']['get']('TrackChangesEditing');_0x50118b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x50118b['enableCommand']('findNext'),_0x50118b['enableCommand']('findPrevious'),_0x50118b['enableCommand']('replace'),_0x50118b['enableCommand']('replaceAll');}['handleFindCommand'](_0x327631,_0x3df514,_0x3eac47={}){const _0x16e30b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x327631(_0x7c5d38=>{let _0x5436dd=('string'==typeof _0x3df514?_0x16e30b['findByTextCallback'](_0x3df514,_0x3eac47):_0x3df514)(_0x7c5d38);Array['isArray'](_0x5436dd)&&(_0x5436dd={'results':_0x5436dd,'searchText':'string'==typeof _0x3df514?_0x3df514:''});const _0x4c2c6b=_0x5436dd['results']['filter'](_0x421bbd=>!0x1===this['_isInDeletionRange'](_0x421bbd,_0x7c5d38['item']));return{..._0x5436dd,'results':_0x4c2c6b};},_0x3eac47);}['_isInDeletionRange'](_0x5b9a75,_0x396495){const _0x4cdf04=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x396495,_0x5b9a75['start']),this['editor']['model']['createPositionAt'](_0x396495,_0x5b9a75['end']));for(const _0x42fed3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4cdf04['getIntersection'](_0x42fed3['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x307cfb{['afterInit'](){const _0x45520a=this['editor']['locale'],_0x40f067=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x301e45,commandName:_0x229faf}of eo)this['editor']['plugins']['has'](_0x301e45)&&(_0x40f067['enableDefaultAttributesIntegration'](_0x229faf),_0x40f067['registerInlineAttribute'](_0x229faf));_0x40f067['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x45520a,'FORMAT_FONT_SIZE')),_0x40f067['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x45520a,'FORMAT_FONT_FAMILY')),_0x40f067['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x45520a,'FORMAT_FONT_COLOR')),_0x40f067['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x45520a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x182e9e=this['editor'],_0x1d73d7=_0x182e9e['locale'];_0x182e9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e3c9f=>{const _0x4545c7=_0x1d73d7['t'];if('formatInline'!=_0x4e3c9f['type'])return;const {data:_0x2e732e}=_0x4e3c9f;if(null!=_0x2e732e){if('fontSize'==_0x2e732e['commandName']){const _0x9b23ab=_0x2e732e['commandParams'][0x0]['value'];if(_0x9b23ab){const _0x4fcc73=_0x4545c7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xd3a09c=>_0xd3a09c['model']==_0x9b23ab)['title'])['toLowerCase']();return{'type':'format','content':c(_0x1d73d7,'*Set\x20font\x20size:*\x20%0',_0x4fcc73)};}return{'type':'format','content':c(_0x1d73d7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2e732e['commandName']){const _0x5ed6d7=_0x2e732e['commandParams'][0x0]['value'];return _0x5ed6d7?{'type':'format','content':c(_0x1d73d7,'*Set\x20font\x20family:*\x20%0',_0x5ed6d7)}:{'type':'format','content':c(_0x1d73d7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2e732e['commandName']){const _0x36e6fb=_0x2e732e['commandParams'][0x0]['value'];if(_0x36e6fb){const _0x1cc7e7=_0x141a17(this['editor']['config']['get']('fontColor.colors'))['find'](_0x14f9f1=>_0x14f9f1['model']==_0x36e6fb);let _0x5e107b=_0x36e6fb,_0x4539f7='';return _0x1cc7e7&&(_0x5e107b=_0x1cc7e7['label'],_0x4539f7=_0x4545c7(_0x5e107b)['toLowerCase']()),{'type':'format','content':c(_0x1d73d7,'*Set\x20font\x20color:*\x20%0',_0x4539f7)['trim'](),'color':{'value':_0x36e6fb,'title':_0x4539f7||_0x5e107b}};}return{'type':'format','content':c(_0x1d73d7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2e732e['commandName']){const _0x453e43=_0x2e732e['commandParams'][0x0]['value'];if(_0x453e43){const _0x151501=_0x141a17(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x292b00=>_0x292b00['model']==_0x453e43);let _0x413408=_0x453e43,_0x1dffcd='';return _0x151501&&(_0x413408=_0x151501['label'],_0x1dffcd=_0x4545c7(_0x413408)['toLowerCase']()),{'type':'format','content':c(_0x1d73d7,'*Set\x20font\x20background\x20color:*\x20%0',_0x1dffcd)['trim'](),'color':{'value':_0x453e43,'title':_0x1dffcd||_0x413408}};}return{'type':'format','content':c(_0x1d73d7,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x307cfb{['afterInit'](){const _0x1cae41=this['editor'],_0x3cce0b=_0x1cae41['plugins']['get']('TrackChangesEditing'),_0x80a7=_0x1cae41['commands']['get']('copyFormat'),_0x140577=_0x1cae41['commands']['get']('pasteFormat');_0x80a7&&_0x140577&&(_0x3cce0b['enableDefaultAttributesIntegration']('pasteFormat'),_0x3cce0b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x371c1b=this['editor'],_0x4e9d51=_0x371c1b['locale'];_0x371c1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12a235=>{if('formatBlock'!=_0x12a235['type']&&'formatInline'!=_0x12a235['type'])return;const {data:_0x4eca1c}=_0x12a235;if(_0x4eca1c&&'pasteFormat'===_0x4eca1c['commandName']){const _0x7b54e9=[],_0x44ca24=_0x4eca1c['commandParams'][0x0];for(const [_0x370422,_0x1e05dd]of Object['entries'](_0x44ca24))_0x7b54e9['push'](ro(_0x371c1b,_0x370422,_0x1e05dd));return _0x7b54e9['length']?{'type':'format','content':c(_0x4e9d51,'*Set\x20format\x20to:*\x20%0',_0x7b54e9['join'](',\x20'))}:{'type':'format','content':c(_0x4e9d51,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5b3c16,_0x7ed968,_0x2c0a8b){const _0x3df0aa=_0x5b3c16['locale']['t'],_0x5c0fd6=_0x7ed968['split'](/(?=[A-Z])/)['join']('\x20'),_0x4064d5=_0x3df0aa(_0x5c0fd6['charAt'](0x0)['toUpperCase']()+_0x5c0fd6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2c0a8b)return _0x4064d5;if('fontColor'===_0x7ed968||'fontBackgroundColor'===_0x7ed968){const _0x3cee90=_0x141a17(_0x5b3c16['config']['get']('fontColor.colors'))['find'](_0x1fd7e2=>_0x1fd7e2['model']==_0x2c0a8b);return _0x4064d5+'\x20('+(_0x3cee90?_0x3df0aa(_0x3cee90['label'])['toLowerCase']():_0x2c0a8b)+')';}if('fontSize'===_0x7ed968&&isNaN(parseFloat(_0x2c0a8b))){const _0x57b675=_0x5b3c16['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5b3c16['config']['get']('fontSize.options'))['find'](_0x2f58dd=>_0x2f58dd['model']==_0x2c0a8b);return _0x4064d5+'\x20('+(_0x57b675?_0x3df0aa(_0x57b675['title'])['toLowerCase']():_0x2c0a8b)+')';}return _0x4064d5+'\x20('+_0x2c0a8b+')';}class nt extends _0x307cfb{['_headingOptions'];['afterInit'](){const _0x5f4396=this['editor'];if(!_0x5f4396['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5f4396['config']['get']('heading.options');const _0x203145=_0x5f4396['locale'],_0x1304e0=_0x5f4396['plugins']['get']('TrackChangesEditing');_0x1304e0['enableDefaultAttributesIntegration']('heading');for(const _0x1aecbb of this['_headingOptions'])'paragraph'!=_0x1aecbb['model']&&_0x1304e0['descriptionFactory']['registerElementLabel'](_0x1aecbb['model'],_0x27ba61=>{const _0x11276d=this['_getHeadingLevel'](_0x1aecbb['model']);return null!==_0x11276d?_0x585fea(_0x27ba61,_0x11276d):_0x575f33(_0x27ba61,_0x1aecbb['title']);});function _0x585fea(_0x3ce607,_0x51d436){return c(_0x203145,'ELEMENT_HEADING',[_0x3ce607,_0x51d436]);}function _0x575f33(_0x42eb0c,_0x31fec5){return c(_0x203145,'ELEMENT_HEADING_CUSTOM',[_0x42eb0c,_0x31fec5]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24835a=this['editor'],_0x4d7c9a=_0x24835a['locale'];function _0x5883b1(_0x561d6b,_0x31596d){return c(_0x4d7c9a,'ELEMENT_HEADING_CUSTOM',[_0x561d6b,_0x31596d]);}_0x24835a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ee24=>{if('formatBlock'!=_0x27ee24['type'])return;const {data:_0x5dd6ab}=_0x27ee24;if(_0x5dd6ab&&'heading'==_0x5dd6ab['commandName']){const _0x5e9cb8=_0x5dd6ab['commandParams'][0x0]['value'],_0x47795e=this['_getHeadingLevel'](_0x5e9cb8);if(null!==_0x47795e)return{'type':'format','content':c(_0x4d7c9a,'*Change\x20to:*\x20%0',(_0x5810eb=0x1,_0x3af3da=_0x47795e,c(_0x4d7c9a,'ELEMENT_HEADING',[_0x5810eb,_0x3af3da])))};const _0x3525f8=this['_headingOptions']['find'](_0x4bfd2b=>_0x4bfd2b['model']===_0x5e9cb8)['title'];return{'type':'format','content':c(_0x4d7c9a,'*Change\x20to:*\x20%0',_0x5883b1(0x1,_0x3525f8))};}var _0x5810eb,_0x3af3da;});}['_getHeadingLevel'](_0x381129){const _0x141674=_0x381129['match'](/^heading(\d+)/);if(_0x141674)return _0x141674[0x1];const _0x3b7581=this['_headingOptions']?.['find'](_0x84a375=>_0x84a375['model']==_0x381129);if(_0x3b7581&&_0x3b7581['view']){const _0x413d71=_0x3b7581['view'],_0x334815=(_0x413d71['name']??_0x413d71)['match'](/^h(\d+)/);if(_0x334815)return _0x334815[0x1];}return null;}}class it extends _0x307cfb{['afterInit'](){const _0x5f501b=this['editor'];if(!_0x5f501b['plugins']['has']('HighlightEditing'))return;const _0x411fdd=_0x5f501b['plugins']['get']('TrackChangesEditing'),_0x1fe085=_0x5f501b['locale'];_0x411fdd['enableDefaultAttributesIntegration']('highlight'),_0x411fdd['registerInlineAttribute']('highlight'),_0x411fdd['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1fe085,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f48a9=this['editor'],_0x20cf81=_0x4f48a9['locale'];_0x4f48a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dccaa=>{if('formatInline'!=_0x5dccaa['type'])return;const {data:_0x136a9c}=_0x5dccaa;if(_0x136a9c&&'highlight'==_0x136a9c['commandName']){const _0x266df1=_0x20cf81['t'],_0x339e62=_0x136a9c['commandParams'][0x0]['value'];if(_0x339e62){const _0x121f96=_0x4f48a9['config']['get']('highlight.options')['find'](_0x22a4f2=>_0x22a4f2['model']==_0x339e62),_0x3d113e=_0x266df1(_0x121f96['title'])['toLowerCase']();return{'type':'format','content':c(_0x20cf81,'*Set\x20highlight:*\x20%0',_0x3d113e),'color':{'value':_0x121f96['color'],'title':_0x121f96['title']}};}return{'type':'format','content':c(_0x20cf81,'*Remove\x20highlight*',c(_0x20cf81,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x307cfb{['afterInit'](){const _0x40aa47=this['editor'];if(!_0x40aa47['plugins']['has']('HorizontalLineEditing'))return;_0x40aa47['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xe4e1e5=_0x40aa47['plugins']['get']('TrackChangesEditing'),_0x2b3099=_0x40aa47['locale'];_0xe4e1e5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x385010=>c(_0x2b3099,'ELEMENT_HORIZONTAL_LINE',_0x385010)),_0x40aa47['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1299b7,{writer:_0x3546b6,options:_0x2cf3cc})=>{if(!_0x2cf3cc['showSuggestionHighlights'])return null;const _0xddc73e=_0x3546b6['createContainerElement']('div'),_0x3bca63=_0x3546b6['createEmptyElement']('hr');return _0x3546b6['addClass']('ck-horizontal-line',_0xddc73e),_0x3546b6['insert'](_0x3546b6['createPositionAt'](_0xddc73e,0x0),_0x3bca63),_0xddc73e;},'converterPriority':'high'});}}class ot extends _0x307cfb{['afterInit'](){const _0x26d6d8=this['editor'];if(!_0x26d6d8['plugins']['has']('HtmlEmbed'))return;const _0x58d41b=_0x26d6d8['plugins']['get']('TrackChangesEditing'),_0x32c0d3=_0x26d6d8['locale'];_0x58d41b['descriptionFactory']['registerElementLabel']('rawHtml',_0xd8402d=>c(_0x32c0d3,'ELEMENT_HTML_EMBED',_0xd8402d)),_0x58d41b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x58d41b['registerBlockAttribute']('value'),_0x58d41b['descriptionFactory']['registerDescriptionCallback'](_0x5af427=>{if('attribute'!=_0x5af427['type'])return;const {data:_0x308adc}=_0x5af427;if(_0x308adc&&'value'==_0x308adc['key']&&_0x5af427['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x364e17=c(_0x32c0d3,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x32c0d3,'*Change\x20%0\x20content*',_0x364e17)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d3e54=this['editor'],_0x47f5d7=_0x3d3e54['locale'];_0x3d3e54['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b7547=>{if('formatBlock'!=_0x2b7547['type'])return;const {data:_0x2482de}=_0x2b7547;if(_0x2482de&&'htmlEmbed'==_0x2482de['commandName']){const _0x411398=c(_0x47f5d7,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x47f5d7,'*Change\x20%0\x20content*',_0x411398)};}});}}class rt extends _0x307cfb{['afterInit'](){const _0xf4f66b=this['editor'];if(!_0xf4f66b['plugins']['has']('ImageEditing'))return;const _0x158437=_0xf4f66b['plugins']['get']('TrackChangesEditing'),_0x4fcbc5=_0xf4f66b['plugins']['get']('ImageUtils'),_0x493a56=_0xf4f66b['locale'];_0x158437['enableCommand']('insertImage'),_0x158437['descriptionFactory']['registerElementLabel']('imageBlock',_0x2c8724=>c(_0x493a56,'ELEMENT_IMAGE',_0x2c8724)),_0x158437['descriptionFactory']['registerElementLabel']('imageInline',_0x2ab240=>c(_0x493a56,'ELEMENT_INLINE_IMAGE',_0x2ab240)),_0x158437['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x493a56,'ELEMENT_CAPTION')),_0xf4f66b['plugins']['has']('ImageUploadEditing')&&_0x158437['enableCommand']('uploadImage'),_0xf4f66b['plugins']['has']('ImageBlockEditing')&&_0xf4f66b['plugins']['has']('ImageInlineEditing')&&(_0x158437['enableCommand']('imageTypeInline',(_0x5303b5,_0x4a2997)=>{const _0x535a10=_0x4fcbc5['getClosestSelectedImageElement'](_0xf4f66b['model']['document']['selection']);_0xf4f66b['model']['change'](()=>{_0x158437['markBlockFormat'](_0x535a10,{'commandName':'imageTypeInline','commandParams':[_0x4a2997]},[],'convertBlockImageToInline');});}),_0x158437['enableCommand']('imageTypeBlock',(_0x46a31b,_0x45be19)=>{_0xf4f66b['model']['change'](_0x54c491=>{let _0x5c4382=_0x4fcbc5['getClosestSelectedImageElement'](_0xf4f66b['model']['document']['selection']),_0x175c1d=_0x54c491['createRangeOn'](_0x5c4382);const _0x4b3d0c=_0x1863e8['fromPosition'](_0x175c1d['start'],'toPrevious'),_0x11e8ba=_0x1863e8['fromPosition'](_0x175c1d['end'],'toNext');_0x158437['forceDefaultExecution'](()=>_0x46a31b(_0x45be19)),_0x5c4382=_0x4fcbc5['getClosestSelectedImageElement'](_0xf4f66b['model']['document']['selection']),_0x175c1d=_0x54c491['createRangeOn'](_0x5c4382);const _0x5dd897=_0x54c491['createRange'](_0x4b3d0c,_0x11e8ba);_0x4b3d0c['detach'](),_0x11e8ba['detach'](),_0x158437['markBlockFormat'](_0x5c4382,{'commandName':'imageTypeInline','commandParams':[_0x45be19]},[],'convertInlineImageToBlock'),_0x5dd897['start']['isBefore'](_0x175c1d['start'])&&_0x158437['markInsertion'](_0x54c491['createRange'](_0x5dd897['start'],_0x175c1d['start']),'convertInlineImageToBlock'),_0x175c1d['end']['isBefore'](_0x5dd897['end'])&&_0x158437['markInsertion'](_0x54c491['createRange'](_0x175c1d['end'],_0x5dd897['end']),'convertInlineImageToBlock');});}),_0x158437['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x158437['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x158437['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x158437['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x158437['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x158437['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5f49f9])=>{const _0x3d8c92=_0x158437['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3a8bf4=_0x5f49f9['start'],_0x530bb5=_0x5f49f9['end'];const _0xc2856d=_0xf4f66b['model']['schema']['getNearestSelectionRange'](_0x3a8bf4,'backward'),_0x14b369=_0xf4f66b['model']['schema']['getNearestSelectionRange'](_0x530bb5,'forward');_0xc2856d['isCollapsed']&&(_0x3a8bf4=_0xc2856d['start']),_0x14b369['isCollapsed']&&(_0x530bb5=_0x14b369['end']),_0x3d8c92([_0xf4f66b['model']['createRange'](_0x3a8bf4,_0x530bb5)]);}),_0x158437['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x471d8e),_0x158437['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x471d8e)),_0xf4f66b['plugins']['has']('ImageCaptionEditing')&&(_0x158437['enableCommand']('toggleImageCaption',(_0x92ea13,_0x4703c9)=>{const _0x5c86a9=_0xf4f66b['plugins']['get']('ImageCaptionUtils');let _0x107399=_0x4fcbc5['getClosestSelectedImageElement'](_0xf4f66b['model']['document']['selection']),_0x232e8d=_0x5c86a9['getCaptionFromImageModelElement'](_0x107399);_0xf4f66b['model']['change'](()=>{if(_0x232e8d)return void _0x158437['markDeletion'](_0xf4f66b['model']['createRangeOn'](_0x232e8d));const _0x1e4a2=_0x4fcbc5['isBlockImage'](_0x107399);_0x92ea13(_0x4703c9),_0x107399=_0x4fcbc5['getClosestSelectedImageElement'](_0xf4f66b['model']['document']['selection']),_0x232e8d=_0x5c86a9['getCaptionFromImageModelElement'](_0x107399),_0x158437['markInsertion'](_0xf4f66b['model']['createRangeOn'](_0x232e8d),_0x1e4a2?null:'imageCaption');});}),_0x158437['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x471d8e));const _0x4ad896=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x9d3199(_0x42d23c,_0x1d5b5e){const _0x43d765=_0x4ad896['findIndex'](({type:_0x4ae59c,subType:_0x18c769})=>_0x42d23c['type']==_0x4ae59c&&_0x42d23c['subType']==_0x18c769),_0x275239=_0x4ad896['findIndex'](({type:_0x421dca,subType:_0x410029})=>_0x1d5b5e['type']==_0x421dca&&_0x1d5b5e['subType']==_0x410029);if(_0x43d765<0x0||_0x275239<0x0)return!0x1;const _0x1b8031=_0x42d23c['getFirstRange'](),_0x1b788f=_0x1d5b5e['getFirstRange']();if((0x0==_0x43d765||0x1==_0x43d765)&&0x2==_0x275239&&_0x1b8031['isIntersecting'](_0x1b788f))return!0x0;if(0x2==_0x43d765&&0x3==_0x275239){const _0x4c0bad=_0x158437['_findSuggestions'](_0x1b8031,'insertion')['filter'](({suggestion:_0xc3b30b,meta:_0x568b5b})=>_0x568b5b['isOwn']&&'convertInlineImageToBlock'==_0xc3b30b['subType']);if(_0x4c0bad['length']>0x1&&_0x1b788f['end']['isEqual'](_0x1b8031['start']))return!0x0;if(0x1==_0x4c0bad['length']&&(_0x1b8031['start']['isEqual'](_0x1b788f['end'])||_0x1b8031['end']['isEqual'](_0x1b788f['start'])))return!0x0;}if(0x3==_0x43d765&&0x3==_0x275239&&_0x1b8031['start']['isBefore'](_0x1b788f['start'])){const _0x3ec4ae=_0x1b8031['end']['nodeAfter'],_0x9ebaee=_0x1b788f['start']['nodeBefore'];return _0x4fcbc5['isBlockImage'](_0x3ec4ae)&&_0x3ec4ae===_0x9ebaee;}return!0x1;}function _0x471d8e(_0x25e175,_0x31abec){return _0x9d3199(_0x25e175,_0x31abec)?[_0x25e175,_0x31abec]:_0x9d3199(_0x31abec,_0x25e175)?[_0x31abec,_0x25e175]:null;}_0xf4f66b['plugins']['has']('ImageResize')&&(_0x158437['enableDefaultAttributesIntegration']('resizeImage'),_0x158437['registerBlockAttribute']('resizedWidth'),_0x158437['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x493a56,'FORMAT_IMAGE_SIZE'))),_0xf4f66b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x158437['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x158437['registerBlockAttribute']('alt')),_0xf4f66b['plugins']['has']('PictureEditing')&&(_0x158437['registerBlockAttribute']('sources'),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x131c9f=>{if('attribute'!=_0x131c9f['type'])return;const {data:_0x1693a0}=_0x131c9f;return _0x1693a0&&'sources'==_0x1693a0['key']?{'type':'format','content':''}:void 0x0;})),_0xf4f66b['plugins']['has']('ImageSizeAttributes')&&(_0x158437['registerBlockAttribute']('width'),_0x158437['registerBlockAttribute']('height'),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x35aeb7=>{if('attribute'!=_0x35aeb7['type'])return;const {data:_0x1d77fd}=_0x35aeb7;return!_0x1d77fd||'width'!=_0x1d77fd['key']&&'height'!=_0x1d77fd['key']?void 0x0:{'type':'format','content':''};})),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x1fe47f=>{if(!!_0x4ad896['find'](({type:_0xd80a88,subType:_0x56356b})=>_0x1fe47f['type']==_0xd80a88&&_0x1fe47f['subType']==_0x56356b))return _0x1fe47f['previous']?{}:void 0x0;}),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x55d2ae=>{if('insertion'==_0x55d2ae['type']||'deletion'==_0x55d2ae['type']){const _0x54805f=_0x55d2ae['getContainedElement']();if(_0x54805f&&_0x54805f['is']('element','caption'))return{'type':'insertion'==_0x55d2ae['type']?'addObject':'removeObject','element':_0x54805f,'quantity':0x1};}}),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x262b09=>'formatBlock'==_0x262b09['type']&&'convertInlineImageToBlock'==_0x262b09['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x262b09['type']&&'convertBlockImageToInline'==_0x262b09['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x158437['descriptionFactory']['registerDescriptionCallback'](_0x5d5bdf=>{if('attribute'!=_0x5d5bdf['type'])return;const {data:_0x107033}=_0x5d5bdf;if(!_0x107033||'alt'!=_0x107033['key'])return;const _0x42dbe1=_0x107033['newValue'];return _0x42dbe1?{'type':'format','content':c(_0x493a56,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x42dbe1+'\x22')}:{'type':'format','content':c(_0x493a56,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f0a90=this['editor'],_0x12ac8b=_0x4f0a90['locale'];_0x4f0a90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4edbc6=>{if('formatBlock'!=_0x4edbc6['type']&&'formatInline'!=_0x4edbc6['type'])return;const {data:_0x545122}=_0x4edbc6;if(_0x545122){if('imageTextAlternative'==_0x545122['commandName']){const _0x25c8c7=_0x545122['commandParams'][0x0]['newValue'];return _0x25c8c7?{'type':'format','content':c(_0x12ac8b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x25c8c7+'\x22')}:{'type':'format','content':c(_0x12ac8b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x545122['commandName']){const _0x53657b=_0x545122['commandParams'][0x0]['width'];return _0x53657b?{'type':'format','content':c(_0x12ac8b,'*Set\x20image\x20width:*\x20%0',_0x53657b)}:{'type':'format','content':c(_0x12ac8b,'*Reset\x20image\x20width*')};}}});}}class at extends _0x307cfb{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5ddc24=this['editor']['locale'],_0x17027e=this['editor']['plugins']['get']('TrackChangesEditing');_0x17027e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x17027e['registerBlockAttribute']('src'),_0x17027e['descriptionFactory']['registerDescriptionCallback'](_0x27f828=>{if('attribute'!=_0x27f828['type'])return;const {data:_0x3bb375}=_0x27f828;return _0x3bb375&&'src'==_0x3bb375['key']?_0x3bb375['newValue']&&_0x3bb375['oldValue']?{'type':'format','content':c(_0x5ddc24,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x126017=this['editor']['plugins']['get']('TrackChangesEditing');_0x126017['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x126017['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x126017['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x126017['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c5c90=this['editor'],_0x1fe048=_0x4c5c90['locale'];_0x4c5c90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c05cc=>{if('formatBlock'!=_0x4c05cc['type']&&'formatInline'!=_0x4c05cc['type'])return;const {data:_0x25d7cf}=_0x4c05cc;if(!_0x25d7cf||'replaceImageSource'!=_0x25d7cf['commandName'])return;return{'type':'format','content':c(_0x1fe048,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x307cfb{['afterInit'](){const _0x303fb5=this['editor'];if(!_0x303fb5['plugins']['has']('ImageStyleEditing'))return;const _0x5cf761=_0x303fb5['plugins']['get']('TrackChangesEditing'),_0x5519fc=_0x303fb5['plugins']['get']('ImageUtils'),_0x4c1fe6={};_0x5cf761['enableCommand']('imageStyle',(_0x434001,_0x5b2f7b)=>{const _0x1d7e70=_0x303fb5['plugins']['get']('Users')['me'],_0x54acc8=_0x303fb5['commands']['get']('imageStyle');let _0x34a91e=_0x5519fc['getClosestSelectedImageElement'](_0x303fb5['model']['document']['selection']),_0x52fd2c=_0x303fb5['model']['createRangeOn'](_0x34a91e),_0x4cf833=_0x54acc8['value'];if(_0x4cf833==_0x5b2f7b['value'])return;const _0x43d1a6={'commandName':'imageStyle','commandParams':[_0x5b2f7b],'formatGroupId':_0x2b49b6()};_0x303fb5['model']['change'](()=>{if(_0x5cf761['getSuggestions']()['filter'](_0x557be1=>_0x557be1['isInContent']&&_0x1d7e70==_0x557be1['author']&&('formatBlock'==_0x557be1['type']||'formatInline'==_0x557be1['type'])&&('imageStylePreApply'==_0x557be1['subType']||'imageStylePostApply'==_0x557be1['subType'])&&_0x557be1['getFirstRange']()['isEqual'](_0x52fd2c))['forEach'](_0x4ceb35=>_0x5cf761['discardSuggestion'](_0x4ceb35['head'])),_0x34a91e=_0x5519fc['getClosestSelectedImageElement'](_0x303fb5['model']['document']['selection']),_0x52fd2c=_0x303fb5['model']['createRangeOn'](_0x34a91e),_0x54acc8['refresh'](),_0x303fb5['commands']['get']('imageTypeInline')['refresh'](),_0x303fb5['commands']['get']('imageTypeBlock')['refresh'](),_0x4cf833=_0x54acc8['value'],_0x4cf833!=_0x5b2f7b['value'])return _0x5519fc['isInlineImage'](_0x34a91e)&&_0x54acc8['shouldConvertImageType'](_0x5b2f7b['value'],_0x34a91e)?(_0x434001({..._0x5b2f7b,'setImageSizes':!0x1}),_0x34a91e=_0x5519fc['getClosestSelectedImageElement'](_0x303fb5['model']['document']['selection']),void _0x5cf761['markBlockFormat'](_0x34a91e,{..._0x43d1a6,'commandReversedParams':[{'value':_0x4cf833||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5519fc['isBlockImage'](_0x34a91e)?_0x5cf761['markBlockFormat'](_0x34a91e,_0x43d1a6,[],'imageStylePostApply'):_0x5cf761['markInlineFormat'](_0x52fd2c,_0x43d1a6,'imageStylePostApply'));});});for(const _0x47803a of _0x303fb5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4c1fe6[_0x47803a['name']]=_0x47803a['title']['toLowerCase']();_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x211270])=>{_0x5519fc['setImageNaturalSizeAttributes'](_0x211270['getContainedElement']());}),_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4acbf2,_0x3db828)=>{_0x5cf761['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4acbf2,{'commandName':_0x3db828['commandName'],'commandParams':_0x3db828['commandReversedParams']});}),_0x5cf761['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x59330a,_0x4616fa){if(_0x3e84ce(_0x59330a,_0x4616fa))return[_0x59330a,_0x4616fa];if(_0x3e84ce(_0x4616fa,_0x59330a))return[_0x4616fa,_0x59330a];return null;});const _0x566b25=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e84ce(_0x5efaa7,_0x1f0b2c){const _0x1a49a8=_0x566b25['findIndex'](({type:_0xc71aa1,subType:_0x15148d})=>_0x5efaa7['type']==_0xc71aa1&&_0x5efaa7['subType']==_0x15148d),_0x54fd2b=_0x566b25['findIndex'](({type:_0x377c7a,subType:_0x4b8196})=>_0x1f0b2c['type']==_0x377c7a&&_0x1f0b2c['subType']==_0x4b8196);if(_0x1a49a8<0x0||_0x54fd2b<0x0)return!0x1;const _0x6e61f0=_0x5efaa7['getFirstRange'](),_0x45fc51=_0x1f0b2c['getFirstRange']();if((0x0==_0x1a49a8||0x1==_0x1a49a8)&&0x2==_0x54fd2b&&_0x6e61f0['isIntersecting'](_0x45fc51))return!0x0;if(0x2==_0x1a49a8&&0x3==_0x54fd2b){const _0x11a97b=_0x5cf761['_findSuggestions'](_0x6e61f0,'insertion')['filter'](({suggestion:_0x4ba309,meta:_0x1ea492})=>_0x1ea492['isOwn']&&'convertInlineImageToBlock'==_0x4ba309['subType']);if(_0x11a97b['length']>0x1&&_0x45fc51['end']['isEqual'](_0x6e61f0['start']))return!0x0;if(0x1==_0x11a97b['length']&&(_0x6e61f0['start']['isEqual'](_0x45fc51['end'])||_0x6e61f0['end']['isEqual'](_0x45fc51['start'])))return!0x0;}if(0x3==_0x1a49a8&&0x3==_0x54fd2b&&_0x6e61f0['start']['isBefore'](_0x45fc51['start'])){const _0x3d2508=_0x6e61f0['end']['nodeAfter'],_0x47a5ba=_0x45fc51['start']['nodeBefore'];return _0x5519fc['isBlockImage'](_0x3d2508)&&_0x3d2508===_0x47a5ba;}return!0x1;}_0x303fb5['model']['document']['registerPostFixer'](()=>{let _0x3b8554=!0x1;const _0x2784cf=Array['from'](_0x303fb5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45aadd,data:_0x5ce21b}of _0x2784cf){const {group:_0x4d4c9d,type:_0x34f9fe,subType:_0x5449da,id:_0x173ca3}=_0x5cf761['_splitMarkerName'](_0x45aadd);if('suggestion'==_0x4d4c9d&&_0x5cf761['hasSuggestion'](_0x173ca3)){if('formatBlock'==_0x34f9fe&&('imageStylePreApply'==_0x5449da||'imageStylePostApply'==_0x5449da)){const _0x1f1564=_0x5cf761['getSuggestion'](_0x173ca3);if(_0x5ce21b['newRange']){const _0x70694e=_0x1f1564['getFirstRange']()['getContainedElement']();if(_0x5519fc['isBlockImage'](_0x70694e))continue;_0x5cf761['discardSuggestion'](_0x1f1564),_0x3b8554=!0x0;}}if('insertion'==_0x34f9fe&&'imageCaption'==_0x5449da&&!_0x5ce21b['newRange']){const _0x1fac01=_0x5cf761['getSuggestion'](_0x173ca3);_0x1fac01['next']&&_0x1fac01['next']['isInContent']&&(_0x5cf761['discardSuggestion'](_0x1fac01['next']),_0x3b8554=!0x0);}}}return _0x3b8554;}),this['_registerLegacyDescription'](_0x4c1fe6);}['_registerLegacyDescription'](_0x11a9d9){const _0x5e3768=this['editor'],_0x134246=_0x5e3768['locale'];_0x5e3768['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20bff5=>{if('formatBlock'!=_0x20bff5['type']&&'formatInline'!=_0x20bff5['type'])return;const {data:_0x86bc88}=_0x20bff5;if(!_0x86bc88||'imageStyle'!=_0x86bc88['commandName'])return;const _0x359f4b=_0x86bc88['commandParams'][0x0]['value'];return _0x33b641('side'===_0x359f4b?c(_0x134246,'FORMAT_SIDE_IMAGE'):_0x11a9d9[_0x359f4b]||_0x359f4b);function _0x33b641(_0x460861){return{'type':'format','content':c(_0x134246,'*Format:*\x20%0',_0x460861)};}});}}class ut extends _0x307cfb{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x282bcb){super(_0x282bcb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x48863b=this['editor'],_0x15629f=_0x48863b['commands']['get']('importWord'),_0x2c6026=_0x48863b['commands']['get']('trackChanges');_0x15629f&&(_0x15629f['on']('execute',(_0x534f4a,[,_0x1e8471])=>{this['_trackChangesValueDuringImport']=_0x2c6026['value'],_0x1e8471['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x15629f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x15629f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c6026['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x48863b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xf828ad,_0x1a4657){const {suggestions:_0x5e61ee}=_0x1a4657,_0x1689c3=this['editor']['commands']['get']('trackChanges'),_0x175488=_0x1689c3['value'];this['_trackChangesValueDuringImport']!==_0x175488&&(_0x1689c3['execute'](),this['_trackChangesExecuted']=!0x0),_0x5e61ee&&_0x5e61ee['forEach'](({id:_0x168800,type:_0x44ab92,author:_0x2a6241,created_at:_0x2ed5af})=>{const _0x2965ec={'id':_0x168800,'type':_0x44ab92,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2a6241,'createdAt':_0x2ed5af?new Date(_0x2ed5af):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2965ec);});}}class ft extends _0x307cfb{['afterInit'](){const _0x4538f2=this['editor'],_0x542e80=_0x4538f2['plugins']['get']('TrackChangesEditing');if(_0x4538f2['plugins']['has']('IndentEditing')&&(_0x542e80['enableCommand']('indent'),_0x542e80['enableCommand']('outdent')),_0x4538f2['plugins']['has']('IndentBlock')){for(const _0x22daee of['indentBlock','outdentBlock'])_0x542e80['enableDefaultAttributesIntegration'](_0x22daee);}const _0x4f6b66=_0x4538f2['locale'];_0x542e80['registerBlockAttribute']('blockIndent'),_0x542e80['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x4f6b66,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d05db=this['editor'],_0x1dd1d8=_0x3d05db['locale'],_0x45c394=_0x3d05db['plugins']['get']('TrackChangesEditing');_0x45c394['descriptionFactory']['registerDescriptionCallback'](_0xcf7f7c=>{if('formatBlock'!=_0xcf7f7c['type'])return;const {data:_0x504502}=_0xcf7f7c;if(!_0x504502)return;if('indentBlock'!=_0x504502['commandName']&&'outdentBlock'!=_0x504502['commandName'])return;const _0x5d00c8=_0xcf7f7c['getItems']()[0x0],_0x208856=_0x45c394['descriptionFactory']['getItemLabel'](_0x5d00c8);return'indentBlock'==_0x504502['commandName']?{'type':'format','content':c(_0x1dd1d8,'*Indent:*\x20%0',_0x208856)}:'outdentBlock'==_0x504502['commandName']?{'type':'format','content':c(_0x1dd1d8,'*Outdent:*\x20%0',_0x208856)}:void 0x0;});}}class ht extends _0x307cfb{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x307cfb{['afterInit'](){const _0x5d9d47=this['editor'];if(!_0x5d9d47['plugins']['has']('LinkEditing'))return;const _0x4bd0c6=_0x5d9d47['plugins']['get']('TrackChangesEditing'),_0x14fe35=_0x5d9d47['commands']['get']('link');_0x4bd0c6['enableDefaultAttributesIntegration']('link'),_0x4bd0c6['enableDefaultAttributesIntegration']('unlink'),_0x4bd0c6['registerInlineAttribute']('linkHref');for(const _0x2fb5a2 of _0x14fe35['manualDecorators'])_0x4bd0c6['registerInlineAttribute'](_0x2fb5a2['id']),_0x4bd0c6['descriptionFactory']['registerAttributeLabel'](_0x2fb5a2['id'],'link\x20('+_0x2fb5a2['label']['toLowerCase']()+')');_0x4bd0c6['descriptionFactory']['registerDescriptionCallback'](_0x5a5665=>{if('attribute'!=_0x5a5665['type'])return;const {data:_0x8c9d5f}=_0x5a5665;if(!_0x8c9d5f||'linkHref'!=_0x8c9d5f['key'])return;const _0x10422f=_0x8c9d5f['newValue'],_0x3a553d=_0x5d9d47['locale'];return{'type':'format','content':null==_0x10422f?c(_0x3a553d,'*Remove\x20link*'):c(_0x3a553d,'*Set\x20link:*\x20%0','\x22'+_0x10422f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14bcef=this['editor'],_0x2e1b6a=_0x14bcef['locale'];_0x14bcef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184ec6=>{if('formatInline'!=_0x184ec6['type'])return;const {data:_0x5c5bf6}=_0x184ec6;if(_0x5c5bf6){if('link'==_0x5c5bf6['commandName']){const _0x11151a=_0x5c5bf6['commandParams'][0x0];return{'type':'format','content':c(_0x2e1b6a,'*Set\x20link:*\x20%0','\x22'+_0x11151a+'\x22')};}return'unlink'==_0x5c5bf6['commandName']?{'type':'format','content':c(_0x2e1b6a,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x307cfb{['afterInit'](){const _0x4ac0d4=this['editor'],_0x4e4cf0=_0x4ac0d4['locale'];if(!_0x4ac0d4['plugins']['has']('LegacyListEditing'))return;const _0x2efceb=_0x4ac0d4['plugins']['get']('TrackChangesEditing'),_0x500bd5=_0x4ac0d4['plugins']['has']('LegacyTodoListEditing');function _0x335468(_0xe31f63){return()=>{const _0x465cb6=_0x4ac0d4['model']['document']['selection'],_0x574f2f=_0x4ac0d4['commands']['get'](_0xe31f63);if(_0x574f2f['value'])return void _0x4ac0d4['execute']('paragraph',{});const _0x10df29=_0xe31f63['slice'](0x0,-0x4),_0x58f6b4=function(_0x4d98e3,_0x278c6d,_0x2e1a2d){let _0x59c603=Array['from'](_0x4d98e3)['filter'](_0x4ac795=>function(_0x3a7644,_0x13beda){return _0x13beda['checkChild'](_0x3a7644['parent'],'listItem')&&!_0x13beda['isObject'](_0x3a7644);}(_0x4ac795,_0x2e1a2d));_0x59c603=_0x59c603['filter'](_0x325c81=>!_0x325c81['is']('element','listItem')||_0x325c81['getAttribute']('listType')!=_0x278c6d);const _0x271dc1=new Set();for(const _0x15b3a7 of _0x59c603)_0x15b3a7['is']('element','listItem')?_0x271dc1['add'](Le(_0x15b3a7)):_0x271dc1['add'](_0x15b3a7);return Array['from'](_0x271dc1);}(_0x465cb6['getSelectedBlocks'](),_0x10df29,_0x4ac0d4['model']['schema']);_0x4ac0d4['model']['change'](()=>{for(const _0x11ddf3 of _0x58f6b4)_0x2efceb['markBlockFormat'](_0x11ddf3,{'commandName':_0xe31f63,'commandParams':[{'forceValue':!_0x574f2f['value']}],'formatGroupId':'blockName'},Ee(_0x11ddf3));});};}function _0x31c2cb(_0x571d88){return()=>{const _0x331df5=function(_0x35c4a2){let _0x18238a=Array['from'](_0x35c4a2);const _0x330ba1=_0x18238a['findIndex'](_0x4dc591=>'listItem'!=_0x4dc591['name']);return _0x330ba1>-0x1&&(_0x18238a=_0x18238a['slice'](0x0,_0x330ba1)),_0x18238a;}(_0x4ac0d4['model']['document']['selection']['getSelectedBlocks']()),_0x459332=_0x4ac0d4['model']['createRange'](_0x4ac0d4['model']['createPositionAt'](_0x331df5[0x0],'before'),_0x4ac0d4['model']['createPositionAt'](_0x331df5[_0x331df5['length']-0x1],'end'));_0x4ac0d4['model']['change'](()=>{_0x2efceb['markBlockFormat'](_0x459332,{'commandName':_0x571d88,'commandParams':[],'formatGroupId':'listIndent'},function(_0xd251de){const _0x2c684d=new Set();for(const _0x4504f8 of _0xd251de){let _0xbe48f2=_0x4504f8['nextSibling'];for(;_0xbe48f2&&_0xbe48f2['getAttribute']('listIndent')>_0x4504f8['getAttribute']('listIndent');)_0x2c684d['add'](_0xbe48f2),_0xbe48f2=_0xbe48f2['nextSibling'];}return Array['from'](_0x2c684d);}(_0x331df5));});};}_0x2efceb['enableCommand']('numberedList',_0x335468('numberedList')),_0x2efceb['enableCommand']('bulletedList',_0x335468('bulletedList')),_0x500bd5&&_0x2efceb['enableCommand']('todoList',_0x335468('todoList')),_0x2efceb['enableCommand']('indentList',_0x31c2cb('indentList')),_0x2efceb['enableCommand']('outdentList',_0x31c2cb('outdentList')),_0x500bd5&&_0x2efceb['enableCommand']('checkTodoList',()=>{const _0x5ad246=_0x4ac0d4['commands']['get']('checkTodoList'),_0x41f29b=Array['from'](_0x5ad246['_selectedElements']);_0x41f29b['filter'](_0x4fb4b1=>_0x4fb4b1['getAttribute']('todoListChecked')!=_0x5ad246['value']),_0x4ac0d4['model']['change'](()=>{for(const _0x216f15 of _0x41f29b)_0x2efceb['markBlockFormat'](_0x216f15,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5ad246['value']}]});});}),_0x2efceb['descriptionFactory']['registerElementLabel']('listItem',_0x3b1dd2=>c(_0x4e4cf0,'ELEMENT_LIST_ITEM',_0x3b1dd2)),_0x2efceb['descriptionFactory']['registerDescriptionCallback'](_0x5e9261=>{if('formatBlock'!=_0x5e9261['type']&&'formatInline'!=_0x5e9261['type'])return;const {data:_0x7f630a}=_0x5e9261;if(_0x7f630a){if('numberedList'==_0x7f630a['commandName']||'bulletedList'==_0x7f630a['commandName']||'todoList'==_0x7f630a['commandName'])switch(_0x7f630a['commandName']['replace']('List','')){case'bulleted':return _0x2755a6(c(_0x4e4cf0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2755a6(c(_0x4e4cf0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2755a6(c(_0x4e4cf0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x7f630a['commandName'])return{'type':'format','content':c(_0x4e4cf0,'*Indent:*\x20%0',c(_0x4e4cf0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x7f630a['commandName'])return{'type':'format','content':c(_0x4e4cf0,'*Outdent:*\x20%0',c(_0x4e4cf0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x7f630a['commandName'])return _0x7f630a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4e4cf0,'*Check\x20item*')}:{'type':'format','content':c(_0x4e4cf0,'*Uncheck\x20item*')};}function _0x2755a6(_0x467e57){return{'type':'format','content':c(_0x4e4cf0,'*Change\x20to:*\x20%0',_0x467e57)};}});}}function Le(_0x3c2ee1){const _0x17c7e5=_0x3c2ee1['getAttribute']('listIndent');if(0x0==_0x17c7e5)return _0x3c2ee1;let _0x1362f3=_0x3c2ee1;for(;_0x3c2ee1['previousSibling']&&_0x3c2ee1['previousSibling']['is']('element','listItem');){const _0x554066=_0x3c2ee1['previousSibling']['getAttribute']('listIndent');if(_0x554066==_0x17c7e5)_0x1362f3=_0x3c2ee1['previousSibling'];else{if(_0x554066<_0x17c7e5)break;}_0x3c2ee1=_0x3c2ee1['previousSibling'];}return _0x1362f3;}function Ee(_0x5d9e1e){const _0x372d66=[];if(_0x5d9e1e['is']('element','listItem')&&_0x5d9e1e['getAttribute']('listIndent')>0x0){let _0x35adb7=_0x5d9e1e['nextSibling'];for(;_0x35adb7&&'listItem'==_0x35adb7['name']&&_0x35adb7['getAttribute']('listIndent')==_0x5d9e1e['getAttribute']('listIndent');)_0x372d66['push'](_0x35adb7),_0x35adb7=_0x35adb7['nextSibling'];}return _0x372d66;}class Q extends _0x307cfb{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3cf40a=this['editor']['config']['get']('list.properties'),_0xadce43=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cf40a['styles']&&_0xadce43['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3cf40a['reversed']&&_0xadce43['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3cf40a['startIndex']&&_0xadce43['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xadce43['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3a2292,_0x350c9f={}){const _0x1d2c90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x391bad=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1d2c90['markMultiRangeBlockFormat'](_0x391bad,{'commandName':'listStyle','commandParams':[{'type':_0x350c9f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2f7872,_0x427324={}){const _0x56eecf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dc90e=this['_getSuggestionBlocks'](_0x624e26=>_0x624e26['is']('element','listItem')&&'numbered'===_0x624e26['getAttribute']('listType'));if(_0x3dc90e['length']<0x1)return;const _0x297d76=_0x3dc90e['map'](_0x173fae=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x173fae,'before'),this['editor']['model']['createPositionAt'](_0x173fae,0x0)));this['editor']['model']['change'](()=>{_0x56eecf['markMultiRangeBlockFormat'](_0x297d76,{'commandName':'listReversed','commandParams':[{'reversed':_0x427324['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x15c7fe,_0x5527a3={}){const _0x229744=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b08c=this['_getSuggestionBlocks'](_0x2e041f=>_0x2e041f['is']('element','listItem')&&'numbered'===_0x2e041f['getAttribute']('listType'));if(_0x4b08c['length']<0x1)return;const _0x286bb3=_0x4b08c['map'](_0xab1855=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xab1855,'before'),this['editor']['model']['createPositionAt'](_0xab1855,0x0)));this['editor']['model']['change'](()=>{_0x229744['markMultiRangeBlockFormat'](_0x286bb3,{'commandName':'listStart','commandParams':[{'startIndex':_0x5527a3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x570d31){if('formatBlock'!=_0x570d31['type']&&'formatInline'!=_0x570d31['type'])return;const _0x102247=this['editor']['locale'],{data:_0x1115af}=_0x570d31;if(!_0x1115af)return;let _0x322232,_0x1f9e4d;switch(_0x1115af['commandName']){case'listStyle':_0x322232='*Change\x20to:*\x20%0',_0x1f9e4d={'type':'format','content':c(_0x102247,_0x322232,c(_0x102247,this['_getTranslationKeyForListStyle'](_0x1115af['commandParams'][0x0]['type'])))};break;case'listReversed':_0x322232=_0x1115af['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f9e4d={'type':'format','content':c(_0x102247,_0x322232)};break;case'listStart':_0x322232='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f9e4d={'type':'format','content':c(_0x102247,_0x322232,_0x1115af['commandParams'][0x0]['startIndex'])};}return _0x1f9e4d;}['_getSuggestionBlocksForListStyle'](){const _0xee6bc7=this['editor']['plugins']['get']('LegacyListUtils');let _0x322291=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x322291[0x0]?.['is']('element','listItem')&&_0x322291['unshift'](..._0xee6bc7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x322291[_0x322291['length']-0x1]?.['is']('element','listItem')&&_0x322291['push'](..._0xee6bc7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x322291=[...new Set(_0x322291)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x322291=_0x322291['filter'](_0x5324de=>_0x5324de['is']('element','listItem'))),_0x322291;}['_getSuggestionBlocks'](_0x27fed3){const _0x3bb25d=this['editor']['plugins']['get']('LegacyListUtils');let _0x3aec5f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x27fed3)['map'](_0x224806=>{const _0x2a60e5=this['editor']['model']['createPositionAt'](_0x224806,0x0);return[..._0x3bb25d['getSiblingNodes'](_0x2a60e5,'backward'),..._0x3bb25d['getSiblingNodes'](_0x2a60e5,'forward')];})['flat']();return _0x3aec5f=[...new Set(_0x3aec5f)],_0x3aec5f;}['_getTranslationKeyForListStyle'](_0x900321){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x900321)||'default')['toUpperCase']()+'_LIST_'+_0x900321['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x307cfb{['afterInit'](){const _0x1c1dcc=this['editor'];if(!_0x1c1dcc['plugins']['has']('MediaEmbedEditing'))return;const _0x2cba34=_0x1c1dcc['plugins']['get']('TrackChangesEditing'),_0x2c0277=_0x1c1dcc['locale'];_0x2cba34['enableCommand']('mediaEmbed'),_0x2cba34['descriptionFactory']['registerElementLabel']('media',_0x33a5c3=>c(_0x2c0277,'ELEMENT_MEDIA',_0x33a5c3)),_0x1c1dcc['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5b53f8,{writer:_0x228854,options:_0x2e8eff})=>{if(_0x2e8eff['showSuggestionHighlights'])return _0x228854['createEmptyElement']('div');},'converterPriority':'high'}),_0x1c1dcc['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3e5718,_0x43df03,_0x308e55)=>{_0x308e55['options']['showSuggestionHighlights']&&_0x3e5718['stop']();},{'priority':'high'});}}class pt extends _0x307cfb{['afterInit'](){const _0x4656a0=this['editor'];_0x4656a0['plugins']['has']('MentionEditing')&&_0x4656a0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x307cfb{['afterInit'](){const _0x5d241c=this['editor'];if(!_0x5d241c['plugins']['has']('MergeFieldsEditing'))return;const _0x235aee=_0x5d241c['plugins']['get']('TrackChangesEditing'),_0x8feeec=_0x5d241c['locale'];_0x235aee['enableCommand']('insertMergeField'),_0x235aee['enableCommand']('insertMergeFieldBlock'),_0x235aee['enableCommand']('insertMergeFieldImage'),_0x235aee['descriptionFactory']['registerElementLabel']('mergeField',_0x8b8066=>c(_0x8feeec,'ELEMENT_MERGE_FIELD',_0x8b8066)),_0x235aee['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3ea222=>c(_0x8feeec,'ELEMENT_MERGE_FIELD',_0x3ea222)),_0x235aee['descriptionFactory']['registerDescriptionCallback'](_0x1d2322=>{if('insertion'!=_0x1d2322['type']&&'deletion'!=_0x1d2322['type'])return;const _0x2f68d9=_0x1d2322['getContainedElement']();if(null==_0x2f68d9)return;const _0x1e0453=_0x5d241c['plugins']['get']('MergeFieldsEditing');let _0x4da3d4;switch(_0x1e0453['getMergeFieldType'](_0x2f68d9)){case null:return;case'image':{const _0x1188d1=_0x1e0453['unwrapAffixes'](_0x2f68d9['getAttribute']('src'));_0x4da3d4=_0x1e0453['getLabel'](_0x1188d1)||_0x1188d1;break;}default:{const _0x849298=_0x2f68d9['getAttribute']('id');_0x4da3d4=_0x1e0453['getLabel'](_0x849298)||_0x849298;break;}}return'insertion'==_0x1d2322['type']?{'type':'insertion','content':c(_0x8feeec,'*Insert:*\x20%0','\x22'+_0x4da3d4+'\x22\x20'+c(_0x8feeec,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x8feeec,'*Remove:*\x20%0','\x22'+_0x4da3d4+'\x22\x20'+c(_0x8feeec,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x307cfb{['afterInit'](){const _0x176ac4=this['editor'],_0x1e53db=_0x176ac4['plugins']['get']('TrackChangesEditing');_0x176ac4['plugins']['has']('MultiLevelList')&&(_0x1e53db['enableDefaultAttributesIntegration']('multiLevelList'),_0x1e53db['registerBlockAttribute']('listMarkerStyle'),_0x1e53db['descriptionFactory']['registerDescriptionCallback'](_0x1afbb6=>this['handleDescriptions'](_0x1afbb6)));}['handleDescriptions'](_0x5e8cf5){const _0x58930a=this['editor']['locale'],{data:_0x361025}=_0x5e8cf5,_0x49114f={'type':'format','content':''};if(_0x361025&&'listMarkerStyle'==_0x361025['key']){if(!_0x361025['oldValue'])return{'type':'format','content':c(_0x58930a,'*Set\x20format:*\x20%0',c(_0x58930a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x361025['newValue']+')'};if(!_0x361025['newValue']){let _0x26a115=_0x5e8cf5['head'];for(;_0x26a115;){if(_0x26a115['data']&&'listType'==_0x26a115['data']['key']&&_0x26a115['data']['newValue'])return _0x49114f;_0x26a115=_0x26a115['next'];}return{'type':'format','content':c(_0x58930a,'*Remove\x20format:*\x20%0',c(_0x58930a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x361025['oldValue']+')'};}}}}class bt extends _0x307cfb{['afterInit'](){const _0x29a2d9=this['editor'];if(!_0x29a2d9['plugins']['has']('PageBreakEditing'))return;_0x29a2d9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3eac39=_0x29a2d9['plugins']['get']('TrackChangesEditing'),_0x1daac3=_0x29a2d9['locale'];_0x3eac39['descriptionFactory']['registerElementLabel']('pageBreak',_0x1fc544=>c(_0x1daac3,'ELEMENT_PAGE_BREAK',_0x1fc544));}}class yt extends _0x307cfb{['afterInit'](){const _0xda2a2e=this['editor'];if(!_0xda2a2e['plugins']['has']('Paragraph'))return;const _0x2b216b=_0xda2a2e['locale'],_0x5a0d48=_0xda2a2e['plugins']['get']('TrackChangesEditing');_0x5a0d48['descriptionFactory']['registerElementLabel']('paragraph',_0x54ee73=>c(_0x2b216b,'ELEMENT_PARAGRAPH',_0x54ee73)),_0x5a0d48['enableDefaultAttributesIntegration']('paragraph'),_0x5a0d48['enableCommand']('insertParagraph'),_0xda2a2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xda2a2e),{'priority':'highest'}),_0xda2a2e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2de3b8,_0x5012fb,_0x4db449)=>{_0x4db449['options']['showSuggestionHighlights']&&nr(_0xda2a2e,{'showActiveMarker':!0x1})(_0x2de3b8,_0x5012fb,_0x4db449);},{'priority':'highest'});const _0x251353=_0x5a0d48['descriptionFactory'];_0x251353['registerDescriptionCallback'](_0xc3a13b=>{if('insertion'!==_0xc3a13b['type'])return;const {start:_0x294725,end:_0x3d85c5}=_0xc3a13b['getFirstRange']();if(!_0x294725['isTouching'](_0x3d85c5)||!_0x294725['nodeAfter'])return;const _0x27669f=_0xda2a2e['model']['schema'],_0x56adcc=_0x294725['nodeAfter'];return _0x27669f['isBlock'](_0x56adcc)&&!_0x27669f['isLimit'](_0x56adcc)&&_0x27669f['checkChild'](_0x56adcc,'$text')?{'type':'insertion','content':c(_0x2b216b,'*Insert:*\x20%0',_0x251353['getItemLabel'](_0x56adcc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x393c83=this['editor'],_0x40b112=_0x393c83['locale'];_0x393c83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a679=>{if('formatBlock'!=_0x19a679['type'])return;const {data:_0x5def18}=_0x19a679;return _0x5def18&&'paragraph'==_0x5def18['commandName']?{'type':'format','content':c(_0x40b112,'*Change\x20to:*\x20%0',c(_0x40b112,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2227c1,{showActiveMarker:_0x485d1e=!0x0}={}){return(_0x4d9842,_0xd5d34b,_0x588228)=>{const _0x2c1ce7=_0x2227c1['plugins']['get']('TrackChangesEditing'),_0x5f255f=_0xd5d34b['markerRange']['start'],_0x46e4b1=_0xd5d34b['markerRange']['end'],_0x43d323=_0x2227c1['model']['schema'];if(!_0x5f255f['isTouching'](_0x46e4b1)||!_0x5f255f['nodeAfter'])return;const _0x4224c5=_0x5f255f['nodeAfter'];if(_0x43d323['isBlock'](_0x4224c5)&&!_0x43d323['isLimit'](_0x4224c5)&&_0x43d323['checkChild'](_0x4224c5,'$text')){if(!_0x588228['consumable']['consume'](_0xd5d34b['markerRange'],_0x4d9842['name']))return;const {authorId:_0x3489df}=_0x2c1ce7['_splitMarkerName'](_0xd5d34b['markerName']),_0x520401=_0x588228['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3489df}),_0x5bdb9a=_0x588228['mapper']['toViewPosition'](_0x46e4b1);_0x485d1e&&_0x2c1ce7['activeMarkers']['includes'](_0xd5d34b['markerName'])&&_0x588228['writer']['addClass']('ck-suggestion-marker--active',_0x520401),_0x588228['writer']['insert'](_0x5bdb9a,_0x520401),_0x588228['mapper']['bindElementToMarker'](_0x520401,_0xd5d34b['markerName']);}};}class jt extends _0x307cfb{['afterInit'](){const _0x33a179=this['editor'];_0x33a179['commands']['get']('replaceSource')&&_0x33a179['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x307cfb{['afterInit'](){const _0x131c7e=this['editor'];if(!_0x131c7e['plugins']['has']('RemoveFormatEditing'))return;_0x131c7e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x403d3d=this['editor'];_0x403d3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x515977=>{if('formatBlock'!=_0x515977['type']&&'formatInline'!=_0x515977['type'])return;const {data:_0x2833df}=_0x515977;return _0x2833df&&'removeFormat'==_0x2833df['commandName']?{'type':'format','content':c(_0x403d3d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x307cfb{['afterInit'](){const _0xe94472=this['editor'];if(!_0xe94472['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x388cd4=_0xe94472['plugins']['get']('TrackChangesEditing');_0x388cd4['enableCommand']('goToPreviousRestrictedEditingException'),_0x388cd4['enableCommand']('goToNextRestrictedEditingException');const _0x2b4528=_0xe94472['plugins']['get']('RestrictedEditingModeEditing');_0x2b4528['enableCommand']('trackChanges'),_0x2b4528['enableCommand']('acceptSuggestion'),_0x2b4528['enableCommand']('discardSuggestion'),_0x2b4528['enableCommand']('acceptAllSuggestions'),_0x2b4528['enableCommand']('discardAllSuggestions'),_0x2b4528['enableCommand']('acceptSelectedSuggestions'),_0x2b4528['enableCommand']('discardSelectedSuggestions');}}class It extends _0x307cfb{static get['requires'](){return[_0x1fc86b];}['init'](){const _0x1fa7ad=this['editor'],_0x1b5967=_0x1fa7ad['plugins']['get']('TrackChangesEditing');_0x1b5967['enableCommand']('shiftEnter'),_0x1fa7ad['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1fa7ad),{'priority':'high'}),_0x1fa7ad['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1fa7ad),{'priority':'high'}),_0x1fa7ad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x114e94,_0x33153e,_0xda92ce)=>{_0xda92ce['options']['showSuggestionHighlights']&&je(_0x1fa7ad,{'showActiveMarker':!0x1})(_0x114e94,_0x33153e,_0xda92ce);}),_0x1b5967['descriptionFactory']['registerElementLabel']('softBreak',_0x59a3f3=>c(_0x1fa7ad['locale'],'ELEMENT_LINE_BREAK',_0x59a3f3));}}function je(_0x40bdb5,{showActiveMarker:_0x504a76=!0x0}={}){return(_0x4f8104,_0x5ddbf6,_0x28b8da)=>{const _0x1e4a46=_0x40bdb5['plugins']['get']('TrackChangesEditing');if(!_0x28b8da['consumable']['test'](_0x5ddbf6['markerRange'],_0x4f8104['name']))return;const _0x1e645b=_0x40bdb5['model'];for(const _0x10129e of _0x5ddbf6['markerRange']['getItems']()){if(!_0x10129e['is']('element','softBreak'))continue;const _0x51c430='deletion'==_0x5ddbf6['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x7dbd1e}=_0x1e4a46['_splitMarkerName'](_0x5ddbf6['markerName']),_0x1d85b3=_0x28b8da['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51c430,'data-author-id':_0x7dbd1e}),_0x233164=_0x28b8da['mapper']['toViewPosition'](_0x1e645b['createPositionBefore'](_0x10129e));_0x504a76&&_0x1e4a46['activeMarkers']['includes'](_0x5ddbf6['markerName'])&&_0x28b8da['writer']['addClass']('ck-suggestion-marker--active',_0x1d85b3),_0x28b8da['writer']['insert'](_0x233164,_0x1d85b3),_0x28b8da['mapper']['bindElementToMarker'](_0x1d85b3,_0x5ddbf6['markerName']);}};}class _t extends _0x307cfb{['afterInit'](){const _0x5e3ba4=this['editor'],_0x264327=_0x5e3ba4['model'],_0x1afba8=_0x5e3ba4['locale'];if(!_0x5e3ba4['plugins']['has']('StandardEditingModeEditing'))return;const _0x1057af=_0x5e3ba4['plugins']['get']('TrackChangesEditing'),_0xf59ea9='restrictedEditingException',_0x2cfd06=_0x5e3ba4['commands']['get'](_0xf59ea9);_0x1057af['enableCommand'](_0xf59ea9,(_0x41c01e,_0x3b0429={})=>{const _0x312bb0=_0x264327['document']['selection'];if(_0x312bb0['isCollapsed'])return void _0x41c01e(_0x3b0429);const _0x47891c=void 0x0!==_0x3b0429['forceValue']?_0x3b0429['forceValue']:!_0x2cfd06['value'];_0x264327['change'](()=>{const _0x141a46=Array['from'](_0x312bb0['getRanges']());for(const _0x3187d4 of _0x141a46){const _0x2d66b9=_0x47891c?[_0x3187d4]:io(_0xf59ea9,_0x3187d4,_0x264327);for(const _0xfa3518 of _0x2d66b9)_0x1057af['markInlineFormat'](_0xfa3518,{'commandName':_0xf59ea9,'commandParams':[{'forceValue':_0x47891c}]});}});}),_0x1057af['descriptionFactory']['registerDescriptionCallback'](_0x38e346=>{if('formatBlock'!=_0x38e346['type']&&'formatInline'!=_0x38e346['type'])return;const {data:_0x1c6243}=_0x38e346;return _0x1c6243&&_0x1c6243['commandName']==_0xf59ea9?_0x1c6243['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1afba8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1afba8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x307cfb{['afterInit'](){const _0x361b9f=this['editor'];if(!_0x361b9f['plugins']['has']('Style')||!_0x361b9f['plugins']['has']('DataSchema'))return;const _0x21252d=_0x361b9f['plugins']['get']('TrackChangesEditing'),_0x3427b6=_0x361b9f['locale'],_0x32c2c4=_0x361b9f['config']['get']('style')||{},_0x4185a2=_0x361b9f['plugins']['get']('GeneralHtmlSupport'),_0x556f5e=_0x361b9f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x361b9f['plugins']['get']('DataSchema'),_0x32c2c4['definitions']);_0x21252d['enableDefaultAttributesIntegration']('style');const _0xe6c84d=new Set();for(const _0x57e422 of _0x556f5e['block']){const _0x84be2=_0x4185a2['getGhsAttributeNameForElement'](_0x57e422['element']);_0xe6c84d['add'](_0x84be2);}const _0x4c1a0f=new Set();for(const _0x11e738 of _0x556f5e['inline']){const _0x4e9f20=_0x4185a2['getGhsAttributeNameForElement'](_0x11e738['element']);_0x4c1a0f['add'](_0x4e9f20);for(const _0x3cd53e of _0x11e738['ghsAttributes'])_0x4c1a0f['add'](_0x3cd53e);}for(const _0x51aa01 of _0xe6c84d)_0x21252d['registerBlockAttribute'](_0x51aa01),_0x21252d['descriptionFactory']['registerAttributeLabel'](_0x51aa01,c(_0x3427b6,'FORMAT_STYLE'));for(const _0x43bbf0 of _0x4c1a0f)_0x21252d['registerInlineAttribute'](_0x43bbf0),_0x21252d['descriptionFactory']['registerAttributeLabel'](_0x43bbf0,c(_0x3427b6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fdd27=this['editor'],_0x55c73a=_0x2fdd27['locale'];_0x2fdd27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14a927=>{if('formatBlock'!=_0x14a927['type']&&'formatInline'!=_0x14a927['type'])return;const {data:_0x3f440}=_0x14a927;return _0x3f440&&'style'===_0x3f440['commandName']?_0x3f440['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x55c73a,'*Set\x20format:*\x20%0',_0x3f440['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x55c73a,'*Remove\x20format:*\x20%0',_0x3f440['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x307cfb{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3c51ca){super(_0x3c51ca),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xfacb13=this['editor'],_0x12b9f5=_0xfacb13['model']['document']['selection'];if(!_0xfacb13['plugins']['has']('TableEditing'))return;const _0x341692=_0xfacb13['locale'],_0x51a98b=_0xfacb13['plugins']['get']('TrackChangesEditing'),_0x28312f=_0xfacb13['plugins']['get']('TableUtils');_0x51a98b['descriptionFactory']['registerElementLabel']('table',_0x57c617=>c(_0x341692,'ELEMENT_TABLE',_0x57c617)),this['_setupColumnsRowsFixing'](),_0x51a98b['enableCommand']('insertTable'),_0x51a98b['enableCommand']('selectTableRow'),_0x51a98b['enableCommand']('selectTableColumn');for(const _0x235062 of['insertTableRowAbove','insertTableRowBelow']){const _0x105c95=_0xfacb13['commands']['get'](_0x235062);_0x51a98b['enableCommand'](_0x235062,_0x1d7a74=>{_0xfacb13['model']['change'](_0xeef051=>{_0x1d7a74();const _0x3c3252='above'===_0x105c95['order'],_0x198c01=_0x28312f['getSelectionAffectedTableCells'](_0x12b9f5),_0x136f10=_0x28312f['getRowIndexes'](_0x198c01),_0x2022c6=_0x3c3252?_0x136f10['first']-0x1:_0x136f10['last']+0x1,_0x3f70e6=_0x198c01[0x0]['findAncestor']('table'),_0x147d95=_0x28312f['createTableWalker'](_0x3f70e6,{'startRow':_0x2022c6,'endRow':_0x2022c6}),_0x4e1e09=Array['from'](_0x147d95)['map'](_0x5b2a7c=>_0xeef051['createRangeOn'](_0x5b2a7c['cell']));_0x51a98b['markMultiRangeInsertion'](_0x4e1e09,'tableRow');});});}for(const _0x55651e of['insertTableColumnLeft','insertTableColumnRight']){const _0x4ca501=_0xfacb13['commands']['get'](_0x55651e);_0x51a98b['enableCommand'](_0x55651e,_0x3ce1cf=>{_0xfacb13['model']['change'](_0x2a4706=>{_0x3ce1cf();const _0x1d4b34='left'===_0x4ca501['order'],_0x228aa3=_0x28312f['getSelectionAffectedTableCells'](_0x12b9f5),_0x198b11=_0x28312f['getColumnIndexes'](_0x228aa3),_0x50ce80=_0x1d4b34?_0x198b11['first']-0x1:_0x198b11['last']+0x1,_0x5a098d=_0x228aa3[0x0]['findAncestor']('table'),_0x5cd97c=_0x28312f['createTableWalker'](_0x5a098d,{'startRow':0x0,'column':_0x50ce80,'includeAllSlots':!0x1}),_0x11e530=Array['from'](_0x5cd97c)['map'](_0x5b86c8=>_0x2a4706['createRangeOn'](_0x5b86c8['cell']));_0x51a98b['markMultiRangeInsertion'](_0x11e530,'tableColumn');});});}for(const _0x41aa1f of['removeTableRow','removeTableColumn']){const _0x57f73b=_0x41aa1f['substr'](0xb),_0x150066=_0x57f73b['toLowerCase'](),_0x7e69b9=_0x150066['substr'](0x0,0x3)+'span',_0x1faa26='table'+_0x57f73b,_0x513a2f='min'+_0x57f73b,_0x2ee578='max'+_0x57f73b;_0x51a98b['enableCommand'](_0x41aa1f,()=>{_0xfacb13['model']['change'](_0x27d293=>{const _0x25e240=_0x28312f['getSelectionAffectedTableCells'](_0x12b9f5),_0x464ed2=_0x25e240[0x0]['findAncestor']('table');let _0x412116;if('removeTableRow'==_0x41aa1f){const _0x41324d=_0x28312f['getRowIndexes'](_0x25e240);_0x412116={'startRow':_0x41324d['first'],'endRow':_0x41324d['last'],'includeAllSlots':!0x0};}else{const _0x307c85=_0x28312f['getColumnIndexes'](_0x25e240);_0x412116={'startColumn':_0x307c85['first'],'endColumn':_0x307c85['last'],'includeAllSlots':!0x0};}const _0x2b5b44=_0x28312f['createTableWalker'](_0x464ed2,_0x412116),_0xcd3c22=Array['from'](_0x2b5b44)['map'](({cell:_0x594229})=>_0x594229),_0x1c4c3d=Ne(_0xcd3c22['filter'](_0x3e5c9f=>_0x3e5c9f['hasAttribute'](_0x7e69b9))),_0x350c5f=Ne(_0xcd3c22['filter'](_0x3525f7=>!_0x3525f7['hasAttribute'](_0x7e69b9)))['map'](_0x6059c0=>_0x27d293['createRangeOn'](_0x6059c0)),_0x134525=_0x51a98b['markMultiRangeDeletion'](_0x350c5f,_0x1faa26);if(_0x134525&&('tableRow'==_0x134525['subType']||'tableColumn'==_0x134525['subType'])){const _0x579c37=this['_getSuggestionCoords'](_0x134525);for(const _0x5d32b3 of _0x1c4c3d){const _0x492de0=_0x27d293['createRangeOn'](_0x5d32b3),_0x168251=_0x28312f['getCellLocation'](_0x5d32b3),_0x2ecc3a=_0x5d32b3['getAttribute'](_0x7e69b9)-0x1,_0xae3a4b=_0x579c37[_0x513a2f],_0x2366dc=_0x579c37[_0x2ee578];_0xae3a4b<=_0x168251[_0x150066]&&_0x168251[_0x150066]+_0x2ecc3a<=_0x2366dc&&_0x134525['addRange'](_0x492de0);}}});});}function _0x51f8cb(_0x5890c5){const _0x321508=Array['from'](_0x12b9f5['getRanges']())['map'](_0x49025a=>_0x10a155['fromRange'](_0x49025a));_0xfacb13['model']['change'](_0x1c0f6a=>{const _0x9e39f=_0x1c0f6a['batch'];_0x5890c5=_0x5890c5['filter'](_0x28a5c4=>'$graveyard'!=_0x28a5c4['root']['rootName']),_0x1c0f6a['setSelection'](_0x5890c5),_0xfacb13['commands']['get']('removeTableRow')['refresh'](),_0xfacb13['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xfacb13['model']['enqueueChange'](()=>{_0xfacb13['model']['enqueueChange'](_0x9e39f,_0x244061=>{const _0x35257e=_0x321508['filter'](_0x499bd9=>'$graveyard'!=_0x499bd9['root']['rootName']);_0x35257e['length']>0x0&&_0x244061['setSelection'](_0x35257e);for(const _0x5ef455 of _0x321508)_0x5ef455['detach']();});});});}function _0x4264e1(_0x35ffb8){_0xfacb13['model']['change'](_0x416ea7=>{const _0x55ab1b=Array['from'](_0x12b9f5['getRanges']())['map'](_0xb2766f=>_0x10a155['fromRange'](_0xb2766f)),_0x365fbf=[];for(const _0x49b61f of _0x35ffb8)for(const _0x552c57 of _0x49b61f['getItems']({'shallow':!0x0}))_0x365fbf['push'](_0x552c57);for(const _0x2a1feb of _0x365fbf)'$graveyard'!=_0x2a1feb['root']['rootName']&&(_0x416ea7['setSelection'](_0x416ea7['createPositionAt'](_0x2a1feb,0x0)),_0xfacb13['commands']['get']('removeTableColumn')['refresh'](),_0xfacb13['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2cf388=_0x55ab1b['filter'](_0x161441=>'$graveyard'!=_0x161441['root']['rootName']);_0x2cf388['length']>0x0&&_0x416ea7['setSelection'](_0x2cf388);for(const _0x5abb8c of _0x55ab1b)_0x5abb8c['detach']();});}function _0x1c7101(_0x23e859,_0x3726b9){return _0x3726b9['every'](_0x3bb270=>_0x23e859['some'](_0x4fbe37=>_0x4fbe37['end']['isEqual'](_0x3bb270['start'])||_0x3bb270['end']['isEqual'](_0x4fbe37['start'])));}function _0x36cd26(_0x4ffbb8,_0x5e1093){return!_0x4ffbb8['some'](_0x2c2150=>_0x5e1093['some'](_0x5b6c5f=>_0x2c2150['isIntersecting'](_0x5b6c5f)))&&_0x4ffbb8['some'](_0x159e4b=>_0x5e1093['some'](_0x4da7e9=>_0x159e4b['end']['isTouching'](_0x4da7e9['start'])));}_0xfacb13['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc2eafd,_0x8960c9,_0x415b55)=>{if(!_0x415b55['options']['showSuggestionHighlights'])return;const _0x5d3295=_0x8960c9['item'];if(!_0x5d3295)return;const _0x37c4e6=_0x415b55['mapper']['toViewElement'](_0x5d3295);function _0x4c3680(_0x35300e){return Array['isArray'](_0x35300e)?_0x35300e:[_0x35300e];}_0x37c4e6&&'tableCell'===_0x5d3295['name']&&_0x3950f5(_0x37c4e6,_0x415b55['writer'],(_0x39a19d,_0x4e4d66,_0x5967eb)=>_0x5967eb['addClass'](_0x4c3680(_0x4e4d66['classes']),_0x39a19d),(_0xb07a1f,_0x588ea2,_0xd15df2)=>_0xd15df2['removeClass'](_0x4c3680(_0x588ea2['classes']),_0xb07a1f));},{'priority':'highest'}),_0x51a98b['descriptionFactory']['registerDescriptionCallback'](_0x4a90a8=>{if('insertion'!=_0x4a90a8['type']&&'deletion'!=_0x4a90a8['type'])return;const _0x5e100c=_0x4a90a8['getContainedElement']();if(null!=_0x5e100c&&_0x5e100c['is']('element','table')){if('insertion'==_0x4a90a8['type']){const _0xf77232=_0x4a90a8['getItems']()['filter'](_0x550f1d=>_0x550f1d['is']('$textProxy'))['map'](_0x4f1b17=>_0x4f1b17['data']);if(_0xf77232['length'])return{'type':'insertion','content':c(_0x341692,'*Insert:*\x20%0',c(_0x341692,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf77232['join']('\x20')+'\x22'))};}if('deletion'==_0x4a90a8['type']){const _0x613da3=_0x4a90a8['getItems']()['filter'](_0x388cce=>_0x388cce['is']('$textProxy'))['map'](_0x59a4fb=>_0x59a4fb['data']);if(_0x613da3['length'])return{'type':'deletion','content':c(_0x341692,'*Remove:*\x20%0',c(_0x341692,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x613da3['join']('\x20')+'\x22'))};}}}),_0x51a98b['descriptionFactory']['registerDescriptionCallback'](_0x3ac931=>{if('tableRow'==_0x3ac931['subType']){const _0x246ba5=_0x3ac931['getItems']()['filter'](_0x1559a9=>_0x1559a9['is']('$textProxy'))['map'](_0x56fed0=>_0x56fed0['data']),_0x2deede=this['_getSuggestionCoords'](_0x3ac931),_0x57e5fb=_0x2deede['maxRow']-_0x2deede['minRow']+0x1;if('insertion'==_0x3ac931['type'])return _0x246ba5['length']?{'type':'insertion','content':c(_0x341692,'*Insert:*\x20%0',c(_0x341692,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57e5fb,'\x22'+_0x246ba5['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x341692,'*Insert:*\x20%0',c(_0x341692,'ELEMENT_TABLE_ROW',_0x57e5fb))};if('deletion'==_0x3ac931['type'])return _0x246ba5['length']?{'type':'deletion','content':c(_0x341692,'*Remove:*\x20%0',c(_0x341692,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57e5fb,'\x22'+_0x246ba5['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x341692,'*Remove:*\x20%0',c(_0x341692,'ELEMENT_TABLE_ROW',_0x57e5fb))};}if('tableColumn'==_0x3ac931['subType']){const _0x32b1d4=_0x3ac931['getItems']()['filter'](_0x28b92c=>_0x28b92c['is']('$textProxy'))['map'](_0x134c91=>_0x134c91['data']),_0x4953d9=this['_getSuggestionCoords'](_0x3ac931),_0x44905d=_0x4953d9['maxColumn']-_0x4953d9['minColumn']+0x1;if('insertion'==_0x3ac931['type'])return _0x32b1d4['length']?{'type':'insertion','content':c(_0x341692,'*Insert:*\x20%0',c(_0x341692,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44905d,'\x22'+_0x32b1d4['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x341692,'*Insert:*\x20%0',c(_0x341692,'ELEMENT_TABLE_COLUMN',_0x44905d))};if('deletion'==_0x3ac931['type'])return _0x32b1d4['length']?{'type':'deletion','content':c(_0x341692,'*Remove:*\x20%0',c(_0x341692,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x44905d,'\x22'+_0x32b1d4['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x341692,'*Remove:*\x20%0',c(_0x341692,'ELEMENT_TABLE_COLUMN',_0x44905d))};}}),_0x51a98b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x51f8cb),_0x51a98b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x51f8cb),_0x51a98b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4264e1),_0x51a98b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4264e1),_0x51a98b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1c7101),_0x51a98b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1c7101),_0x51a98b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x36cd26),_0x51a98b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x36cd26);}['_acceptFormatSuggestionCallbackFactory'](){const _0x19ef71=this['editor'],_0x275738=_0x19ef71['model']['document']['selection'];return(_0x4ddf00,_0x2aa28a)=>{_0x19ef71['model']['change'](_0x35d567=>{const {commandName:_0x83a617,commandParams:_0x37dc3b}=_0x2aa28a;let _0x240b1a=_0x4ddf00[0x0]['end']['nodeBefore'];_0x37dc3b&&_0x37dc3b[0x0]&&!0x1===_0x37dc3b[0x0]['forceValue']&&(_0x240b1a=_0x4ddf00[0x0]['start']['nodeAfter']);const _0x1dfe07=_0x35d567['createRangeIn'](_0x240b1a);if('$graveyard'==_0x1dfe07['root']['rootName'])return;const _0x58b7d6=Array['from'](_0x275738['getRanges']())['map'](_0x4e44e8=>_0x10a155['fromRange'](_0x4e44e8));_0x35d567['setSelection'](_0x1dfe07),_0x19ef71['commands']['get'](_0x83a617)['refresh'](),_0x37dc3b['push']({'forceDefaultExecution':!0x0}),_0x19ef71['execute'](_0x83a617,..._0x37dc3b);const _0xafdc3=_0x58b7d6['filter'](_0x2e558a=>'$graveyard'!=_0x2e558a['root']['rootName']);_0xafdc3['length']>0x0&&_0x35d567['setSelection'](_0xafdc3);for(const _0x2cc8f0 of _0x58b7d6)_0x2cc8f0['detach']();});};}['_getCoordsForCells'](_0x355c81){const _0xafb305=this['editor']['plugins']['get']('TableUtils');let _0x55b1c0=Number['MAX_SAFE_INTEGER'],_0x20cc60=Number['MIN_SAFE_INTEGER'],_0x35bbdc=Number['MAX_SAFE_INTEGER'],_0x41c2c7=Number['MIN_SAFE_INTEGER'];for(const _0x4af37b of _0x355c81){if('$graveyard'==_0x4af37b['root']['rootName'])continue;const {row:_0x87d25b,column:_0x15753f}=_0xafb305['getCellLocation'](_0x4af37b),_0x1f62b4=_0x4af37b['hasAttribute']('rowspan')?_0x4af37b['getAttribute']('rowspan')-0x1:0x0,_0xc87ada=_0x4af37b['hasAttribute']('colspan')?_0x4af37b['getAttribute']('colspan')-0x1:0x0;_0x55b1c0=_0x87d25b<_0x55b1c0?_0x87d25b:_0x55b1c0,_0x20cc60=_0x87d25b+_0x1f62b4>_0x20cc60?_0x87d25b+_0x1f62b4:_0x20cc60,_0x35bbdc=_0x15753f<_0x35bbdc?_0x15753f:_0x35bbdc,_0x41c2c7=_0x15753f+_0xc87ada>_0x41c2c7?_0x15753f+_0xc87ada:_0x41c2c7;}return{'minRow':_0x55b1c0,'maxRow':_0x20cc60,'minColumn':_0x35bbdc,'maxColumn':_0x41c2c7};}['_setupColumnsRowsFixing'](){const _0x259125=this['editor'],_0x52f10f=_0x259125['plugins']['get']('TrackChangesEditing'),_0x4e9020=_0x259125['plugins']['get']('TableUtils');_0x259125['model']['document']['on']('change:data',()=>{const _0x3678cb=Array['from'](_0x259125['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d7bc0,data:_0x19519e}of _0x3678cb){const {group:_0x1d9be5,id:_0x1523ba,subType:_0x2ac8fa}=_0x52f10f['_splitMarkerName'](_0x5d7bc0);if('suggestion'!=_0x1d9be5)continue;if(null!=_0x19519e['oldRange'])continue;const _0x46f758=_0x52f10f['getSuggestion'](_0x1523ba);this['_tablePostFixingSubtypes']['includes'](_0x2ac8fa)&&this['_tableSuggestions']['add'](_0x46f758);}},{'priority':'low'});const _0x530300=(_0x3d9e8b,_0x4a9375)=>{let _0xbf30d2=!0x1;const _0x556d9c=_0x4a9375['createRangeOn'](_0x3d9e8b),_0x387116=_0x3d9e8b['findAncestor']('table'),_0x576ace=_0x4e9020['getCellLocation'](_0x3d9e8b);for(const _0x3ecc9f of this['_tableSuggestions']){const _0x25817c=_0x3ecc9f['subType'],_0x2ab550=_0x25817c['startsWith']('tablePaste'),_0x3a4f41=_0x25817c['substr'](_0x2ab550?0xa:0x5),_0x22fe43=_0x3a4f41['toLowerCase'](),_0xedde5e=_0x22fe43['substr'](0x0,0x3)+'span',_0x58fc56='min'+_0x3a4f41,_0x549a02='max'+_0x3a4f41;if(!_0x3ecc9f['isInContent'])continue;if(_0x387116!=_0x3ecc9f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3ecc9f['isIntersectingWithRange'](_0x556d9c))continue;const _0x59cf15=_0x3d9e8b['hasAttribute'](_0xedde5e)?_0x3d9e8b['getAttribute'](_0xedde5e)-0x1:0x0,_0x51e228=this['_getSuggestionCoords'](_0x3ecc9f),_0x1aee49=_0x51e228[_0x58fc56],_0xb841a=_0x51e228[_0x549a02];_0x1aee49<=_0x576ace[_0x22fe43]&&_0x576ace[_0x22fe43]+_0x59cf15<=_0xb841a&&(_0x3ecc9f['addRange'](_0x556d9c),_0xbf30d2=!0x0);}return _0xbf30d2;};_0x259125['model']['document']['registerPostFixer'](_0x3d8700=>{let _0x177e5e=!0x1;for(const _0x2c0af4 of _0x259125['model']['document']['differ']['getChanges']())if('insert'==_0x2c0af4['type']){if('tableRow'==_0x2c0af4['name']){for(const _0x4b1473 of _0x2c0af4['position']['nodeAfter']['getChildren']())_0x177e5e=_0x177e5e||_0x530300(_0x4b1473,_0x3d8700);}else'tableCell'==_0x2c0af4['name']&&(_0x177e5e=_0x177e5e||_0x530300(_0x2c0af4['position']['nodeAfter'],_0x3d8700));}return _0x177e5e;});}['_getSuggestionCoords'](_0x11aca3){return this['_getCoordsForCells'](_0x11aca3['getRanges']()['map'](_0x27c9b9=>_0x27c9b9['start']['nodeAfter']));}}function Ne(_0x5bfbec){return Array['from'](new Set(_0x5bfbec)['values']());}class Nt extends _0x307cfb{static get['requires'](){return[Ct];}['afterInit'](){const _0x44ecb3=this['editor'],_0x58474c=_0x44ecb3['model']['document']['selection'],_0x595215=_0x44ecb3['locale'];if(!_0x44ecb3['plugins']['has']('TableEditing'))return;const _0x3d5931=_0x44ecb3['plugins']['get']('TrackChangesEditing'),_0x5d9900=_0x44ecb3['plugins']['get']('TableUtils'),_0x4d244c=_0x44ecb3['plugins']['get'](Ct);_0x4d244c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d5931['enableCommand']('mergeTableCells',()=>{const _0x167795=_0x5d9900['getSelectionAffectedTableCells'](_0x44ecb3['model']['document']['selection']);_0x44ecb3['model']['change'](()=>{_0x3d5931['markMultiRangeBlockFormat'](_0x167795,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x44ecb3['commands']['get']('mergeTableCells')['on']('execute',(_0x293b91,_0x41fa31)=>{_0x44ecb3['commands']['get']('trackChanges')['value']&&(_0x41fa31['length']>0x0&&_0x41fa31[_0x41fa31['length']-0x1]&&_0x41fa31[_0x41fa31['length']-0x1]['forceDefaultExecution']||_0x3d5931['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x293b91['stop']());},{'priority':'highest'});for(const _0x309a09 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4a773f=_0x44ecb3['commands']['get'](_0x309a09);_0x3d5931['enableCommand'](_0x309a09,()=>{const _0x58e51e=_0x44ecb3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x9c6822=>_0x9c6822['is']('element','tableCell')),_0x5756ce=_0x4a773f['value'];_0x44ecb3['model']['change'](()=>{_0x3d5931['markMultiRangeBlockFormat']([_0x58e51e,_0x5756ce],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x405cce of['splitTableCellVertically','splitTableCellHorizontally']){const _0xdcf533=_0x44ecb3['commands']['get'](_0x405cce);_0x3d5931['enableCommand'](_0x405cce,()=>{const _0x533f5b=_0x5d9900['getSelectionAffectedTableCells'](_0x44ecb3['model']['document']['selection'])[0x0],_0x12f33c=_0x533f5b['findAncestor']('table'),{column:_0x1cad0a,row:_0x5cdd03}=_0x5d9900['getCellLocation'](_0x533f5b);let _0x54e62e=[];if('horizontally'==_0xdcf533['direction']){const _0x465136=_0x5d9900['createTableWalker'](_0x12f33c,{'startRow':_0x5cdd03,'endRow':_0x5cdd03,'includeAllSlots':!0x0});_0x54e62e=Array['from'](_0x465136)['map'](_0x47a095=>_0x47a095['cell']);}else{const _0x888ba9=_0x5d9900['createTableWalker'](_0x12f33c,{'column':_0x1cad0a,'includeAllSlots':!0x0});_0x54e62e=Array['from'](_0x888ba9)['map'](_0x3dcd79=>_0x3dcd79['cell']);}_0x44ecb3['model']['change'](_0x3aa261=>{_0x3d5931['markBlockFormat'](_0x3aa261['createRangeOn'](_0x533f5b),{'commandName':_0x405cce,'commandParams':[]},_0x54e62e,_0x405cce);});});}_0x3d5931['descriptionFactory']['registerDescriptionCallback'](_0x54bec9=>{if('formatBlock'!=_0x54bec9['type']&&'formatInline'!=_0x54bec9['type'])return;const {data:_0x22d1a8}=_0x54bec9;return _0x22d1a8&&'mergeTableCells'==_0x22d1a8['commandName']?{'type':'format','content':c(_0x595215,'*Merge\x20cells*')}:void 0x0;}),_0x3d5931['descriptionFactory']['registerDescriptionCallback'](_0xdcb617=>{if('formatBlock'!=_0xdcb617['type']&&'formatInline'!=_0xdcb617['type'])return;const {data:_0x579726}=_0xdcb617;return _0x579726?'splitTableCellVertically'==_0x579726['commandName']?{'type':'format','content':c(_0x595215,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x579726['commandName']?{'type':'format','content':c(_0x595215,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3e3c76=_0x4d244c['_acceptFormatSuggestionCallbackFactory']();for(const _0x63f55a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d5931['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x63f55a,'accept',_0x3e3c76);for(const _0x393993 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d5931['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x393993,'accept',_0x3e3c76);_0x3d5931['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x165fd3=>{_0x44ecb3['model']['change'](_0x1dfb8a=>{const _0x5eb50a=Array['from'](_0x58474c['getRanges']())['map'](_0x418509=>_0x10a155['fromRange'](_0x418509));_0x1dfb8a['setSelection'](_0x165fd3),_0x44ecb3['commands']['get']('mergeTableCells')['refresh'](),_0x44ecb3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x117b8a=_0x5eb50a['filter'](_0x464d25=>'$graveyard'!=_0x464d25['root']['rootName']);_0x117b8a['length']>0x0&&_0x1dfb8a['setSelection'](_0x117b8a);for(const _0x5543a3 of _0x5eb50a)_0x5543a3['detach']();});});for(const _0x4381fe of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5ac8c0=_0x44ecb3['commands']['get'](_0x4381fe);_0x5ac8c0['on']('set:isEnabled',(_0x5327de,_0x34233f,_0x5d3575)=>{if(_0x5d3575){const _0x4b07de=_0x44ecb3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc404d5=>_0xc404d5['is']('element','tableCell'));this['_areMergableCells'](_0x5ac8c0['value'],_0x4b07de)||(_0x5327de['return']=!0x1,_0x5327de['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2591d5=this['editor']['commands']['get']('mergeTableCells'),_0x108d3b=this['editor']['plugins']['get']('TableUtils');if(!_0x2591d5['isEnabled'])return!0x1;const _0x31dafb=_0x108d3b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x43239b of _0x31dafb)for(const _0x8c27de of _0x31dafb)if(_0x43239b!=_0x8c27de&&!this['_areMergableCells'](_0x43239b,_0x8c27de))return!0x1;return!0x0;}['_areMergableCells'](_0x6e8fd9,_0x1dc087){const _0xbcdeeb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22d07f=this['editor']['model']['createRangeOn'](_0x6e8fd9),_0x4af3b9=this['editor']['model']['createRangeOn'](_0x1dc087),_0x5740dc=new Set(),_0x2b2af3=new Set();for(const _0x1476c3 of _0xbcdeeb['getSuggestions']())if(('insertion'==_0x1476c3['type']||'deletion'==_0x1476c3['type']||'mergeTableCells'==_0x1476c3['subType'])&&_0x1476c3['isInContent']){for(const _0x258304 of _0x1476c3['getRanges']())_0x258304['containsRange'](_0x22d07f,!0x0)&&_0x5740dc['add'](_0x1476c3['type']+':'+_0x1476c3['author']['id']),_0x258304['containsRange'](_0x4af3b9,!0x0)&&_0x2b2af3['add'](_0x1476c3['type']+':'+_0x1476c3['author']['id']);}if(_0x5740dc['size']!=_0x2b2af3['size'])return!0x1;for(const _0x56910d of _0x5740dc)if(!_0x2b2af3['has'](_0x56910d))return!0x1;return!0x0;}}class Dt extends _0x307cfb{static get['requires'](){return[Ct];}['afterInit'](){const _0x3bf73f=this['editor'];if(!_0x3bf73f['plugins']['has']('TableEditing'))return;const _0x26df81=_0x3bf73f['locale'],_0x576ed1=_0x3bf73f['plugins']['get']('TrackChangesEditing');_0x576ed1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x576ed1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x576ed1['registerBlockAttribute']('headingRows'),_0x576ed1['registerBlockAttribute']('headingColumns'),_0x576ed1['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x26df81,'FORMAT_HEADER_ROW')),_0x576ed1['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x26df81,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x40cf1c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51c112=this['editor']['plugins']['get']('TableUtils'),_0x322546=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1855da({showActiveMarker:_0x1d3aed=!0x0,setDataAttribute:_0x5c511d=!0x0}={}){return(_0x34b6bc,_0x48ee35,_0x552e1e)=>{const {type:_0x52b2a0,id:_0x4953d3}=_0x40cf1c['_splitMarkerName'](_0x48ee35['markerName']),_0x47cc5a=_0x40cf1c['getSuggestion'](_0x4953d3),_0x5bf32e=_0x47cc5a['data'];if('formatBlock'!=_0x47cc5a['type']||!_0x5bf32e||'setTableColumnHeader'!=_0x5bf32e['commandName'])return;if(_0x48ee35['item'])return void _0x34b6bc['stop']();if(!_0x552e1e['consumable']['consume'](_0x48ee35['markerRange'],_0x34b6bc['name']))return;const _0x5453aa=_0x48ee35['markerRange']['start']['nodeAfter'],_0x41dec9=_0x48ee35['markerRange']['end']['nodeBefore'],_0x58bb66=_0x5453aa['parent']['parent'],{column:_0x582ae9}=_0x51c112['getCellLocation'](_0x5453aa),{column:_0x507433}=_0x51c112['getCellLocation'](_0x41dec9);for(let _0x144c00=_0x582ae9;_0x144c00<=_0x507433;_0x144c00++){const _0x10e660=_0x51c112['createTableWalker'](_0x58bb66,{'column':_0x144c00,'includeAllSlots':!0x1});for(const _0x3b5daa of _0x10e660){const _0x4ee187=_0x3b5daa['cell'],_0x392b7f=_0x552e1e['mapper']['toViewElement'](_0x4ee187);_0x552e1e['writer']['addClass']('ck-suggestion-marker-'+_0x52b2a0,_0x392b7f),_0x5c511d&&_0x552e1e['writer']['setAttribute']('data-suggestion',_0x4953d3,_0x392b7f),_0x552e1e['mapper']['bindElementToMarker'](_0x392b7f,_0x48ee35['markerName']),_0x1d3aed&&(_0x40cf1c['activeMarkers']['includes'](_0x48ee35['markerName'])?_0x552e1e['writer']['addClass']('ck-suggestion-marker--active',_0x392b7f):_0x552e1e['writer']['removeClass']('ck-suggestion-marker--active',_0x392b7f));}}};}_0x40cf1c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x322546),_0x40cf1c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x322546),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1855da(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a32ff,_0x6e5692,_0x358375)=>{_0x358375['options']['showSuggestionHighlights']&&_0x1855da({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3a32ff,_0x6e5692,_0x358375);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x26c649,_0x4e2a0f,_0x1a2e16)=>{const {type:_0x5de7cd,id:_0x33e521}=_0x40cf1c['_splitMarkerName'](_0x4e2a0f['markerName']),_0x520fb1=_0x40cf1c['getSuggestion'](_0x33e521),_0x3062c1=_0x520fb1['data'];if('formatBlock'!=_0x520fb1['type']||!_0x3062c1||'setTableColumnHeader'!=_0x3062c1['commandName'])return;const _0x55e00d=_0x1a2e16['mapper']['markerNameToElements'](_0x4e2a0f['markerName']);if(_0x55e00d){for(const _0x400d8e of _0x55e00d)_0x1a2e16['writer']['removeClass']('ck-suggestion-marker-'+_0x5de7cd,_0x400d8e),_0x1a2e16['writer']['removeClass']('ck-suggestion-marker--active',_0x400d8e),_0x1a2e16['writer']['removeAttribute']('data-suggestion',_0x400d8e),_0x1a2e16['mapper']['unbindElementFromMarkerName'](_0x400d8e,_0x4e2a0f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1516ce=this['editor'],_0x425961=_0x1516ce['locale'];function _0x913e06(_0x1a4f4a){return{'type':'format','content':c(_0x425961,'*Format:*\x20%0',_0x1a4f4a)};}_0x1516ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25facb=>{if('formatBlock'!=_0x25facb['type'])return;const {data:_0x10e1eb}=_0x25facb;if(_0x10e1eb){if('setTableRowHeader'==_0x10e1eb['commandName']){const _0x54a2a2=_0x10e1eb['commandParams'][0x0]['forceValue'];return _0x913e06(c(_0x425961,_0x54a2a2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x10e1eb['commandName']){const _0x1e01e7=_0x10e1eb['commandParams'][0x0]['forceValue'];return _0x913e06(c(_0x425961,_0x1e01e7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2b9352=>[_0x2b9352,null]));class Mt extends _0x307cfb{static get['requires'](){return[Ct];}['afterInit'](){const _0xf04f4b=this['editor'];if(!_0xf04f4b['plugins']['has']('TableClipboard'))return;const _0xd13fc0=_0xf04f4b['plugins']['get']('TrackChangesEditing'),_0x29049f=_0xf04f4b['plugins']['get']('TableUtils'),_0x368e94=_0xf04f4b['plugins']['get'](Ct),_0xa218b4=_0xf04f4b['plugins']['get']('TableClipboard');_0x368e94['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xf04f4b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xf04f4b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xae9ad7=null;_0xf04f4b['model']['on']('insertContent',(_0x5a52e3,_0x29249c)=>{const [_0xce0112,_0x175815]=_0x29249c,_0x21203e=_0x29249c[_0x29249c['length']-0x1];_0x21203e&&_0x21203e['forceDefaultExecution']||_0xd13fc0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3eea31,_0x544341,_0x114e5f,_0x57d0f5,_0x10992a){if(_0x544341&&!_0x544341['is']('documentSelection'))return!0x1;const _0x477beb=_0x10992a['getTableIfOnlyTableInContent'](_0x3eea31,_0x114e5f);if(!_0x477beb||!Ue(_0x477beb,void 0x0,_0x57d0f5))return!0x1;const _0x348f95=_0x57d0f5['getSelectionAffectedTableCells'](_0x114e5f['document']['selection']);if(!_0x348f95['length'])return!0x1;const _0x41a7c3=_0x348f95[0x0]['findAncestor']('table'),_0x1c0158=_0x57d0f5['getRowIndexes'](_0x348f95),_0x7f10d5=_0x57d0f5['getColumnIndexes'](_0x348f95),_0x46f4e1={'startRow':_0x1c0158['first'],'endRow':_0x1c0158['last'],'startColumn':_0x7f10d5['first'],'endColumn':_0x7f10d5['last']};return 0x1==_0x348f95['length']&&(_0x46f4e1['endRow']+=_0x57d0f5['getRows'](_0x477beb)-0x1,_0x46f4e1['endColumn']+=_0x57d0f5['getColumns'](_0x477beb)-0x1),Ue(_0x41a7c3,_0x46f4e1,_0x57d0f5);}(_0xce0112,_0x175815,_0xf04f4b['model'],_0x29049f,_0xa218b4)&&(_0x5a52e3['stop'](),_0xae9ad7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xf04f4b['model']['change'](()=>{_0xf04f4b['model']['insertContent'](_0x29249c[0x0],_0x29249c[0x1],_0x29249c[0x2],{'forceDefaultExecution':!0x0});const _0x1cd01f=_0x2b49b6(),{rowInsertionRanges:_0x539053,columnInsertionRanges:_0x3a5653,insertionRanges:_0x182bea,deletionRanges:_0x534fb2,cells:_0x21ed8f}=_0xae9ad7;_0x539053['length']&&_0xd13fc0['markMultiRangeInsertion'](_0x539053,'tablePasteRow',{'tablePasteChainId':_0x1cd01f}),_0x3a5653['length']&&_0xd13fc0['markMultiRangeInsertion'](_0x3a5653,'tablePasteColumn',{'tablePasteChainId':_0x1cd01f}),_0x182bea['length']&&(_0xd13fc0['markMultiRangeInsertion'](_0x182bea,'tablePaste',{'tablePasteChainId':_0x1cd01f,'skipNestingCheck':!0x0}),_0x182bea['forEach'](_0x590ca2=>_0x590ca2['detach']?.())),_0x534fb2['length']&&(_0xd13fc0['markMultiRangeDeletion'](_0x534fb2,'tablePaste',{'tablePasteChainId':_0x1cd01f,'skipNestingCheck':!0x0}),_0x534fb2['forEach'](_0x4ebd93=>_0x4ebd93['detach']?.()));const _0x257a74=_0xd13fc0['markMultiRangeBlockFormat'](_0x21ed8f['map'](({element:_0x516d02})=>_0x516d02),{'formatGroupId':_0x2b49b6()},[],'tablePasteCell',{'tablePasteChainId':_0x1cd01f});if(_0x257a74){const _0x2d38f4=_0x257a74['getMarkers'](),_0x118796=[];for(const {element:_0x24d18a,attributes:_0x30a9d0}of _0x21ed8f){if(!_0x30a9d0)continue;const _0x3298d5=_0xf04f4b['model']['createRangeOn'](_0x24d18a),_0x215244=_0x2d38f4['find'](_0x53c417=>_0x53c417['getRange']()['isEqual'](_0x3298d5));_0x215244&&_0x118796['push']([_0x215244['name'],_0x30a9d0]);}_0x118796['length']&&_0x257a74['setAttribute']('markerAttributes',Object['fromEntries'](_0x118796));}_0xae9ad7=null;}));},{'priority':_0x4d0204['high']+0xa}),_0xf04f4b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4c4b27,_0x2b10cb)=>{const [_0x5a144a,_0x2d63a3,,_0x5dbbb]=_0x2b10cb;if(!_0xae9ad7)return;_0x4c4b27['stop']();const _0x194369=_0x5a144a['cell'],_0x3d1659=_0x2d63a3,_0x4e483c=Oe(_0x194369),_0xfc88a9=Oe(_0x3d1659);_0x4c4b27['return']=_0x194369;let _0x5bf526=null,_0x23a00e=null;if(_0xfc88a9||_0x4e483c){if(_0x4e483c&&!_0xfc88a9){_0x5dbbb['remove'](_0x194369['getChild'](0x0));for(const _0x55d876 of Array['from'](_0x3d1659['getChildren']()))_0x5dbbb['insert'](_0x55d876,_0x194369,'end');const _0x3d2fa2=_0xae9ad7['rowInsertionIndexes']['includes'](_0x5a144a['row']),_0x45ed3f=_0xae9ad7['columnInsertionIndexes']['includes'](_0x5a144a['column']);_0x3d2fa2||_0x45ed3f||(_0x5bf526=_0x10a155['fromRange'](_0x5dbbb['createRangeIn'](_0x194369)));}else _0xfc88a9&&!_0x4e483c&&(_0x23a00e=_0x5dbbb['createRangeIn'](_0x194369));}else{const _0x3d1c8c=_0x5dbbb['createElement']('tableCellSuggestion'),_0x2452de=_0x5dbbb['createElement']('tableCellSuggestion');_0x5dbbb['wrap'](_0x5dbbb['createRangeIn'](_0x194369),_0x2452de),_0x5dbbb['insert'](_0x3d1c8c,_0x194369,0x0);for(const _0x4583ae of Array['from'](_0x3d1659['getChildren']()))_0x5dbbb['insert'](_0x4583ae,_0x3d1c8c,'end');_0x5bf526=_0x10a155['fromRange'](_0x5dbbb['createRangeOn'](_0x3d1c8c)),_0x23a00e=_0x10a155['fromRange'](_0x5dbbb['createRangeOn'](_0x2452de));}const _0x40773e=Array['from'](_0x3d1659['getAttributes']())['filter'](([_0x2c8115])=>Be['includes'](_0x2c8115));_0xae9ad7['cells']['push']({'element':_0x194369,'attributes':_0x40773e['length']?Object['fromEntries'](_0x40773e):null}),_0x5bf526&&_0xae9ad7['insertionRanges']['push'](_0x5bf526),_0x23a00e&&_0xae9ad7['deletionRanges']['push'](_0x23a00e);},{'priority':'high'}),_0x29049f['on']('insertColumns',(_0x25f9e4,_0x951589)=>{const [_0x2cdaba,_0x214a0f={}]=_0x951589;if(!_0xae9ad7)return;const _0x142817=_0x214a0f['at']||0x0,_0x381e25=_0x214a0f['columns']||0x1;_0xae9ad7['columnInsertionIndexes']=new Array(_0x381e25)['fill'](_0x142817)['map']((_0x1d30c0,_0x5418c6)=>_0x1d30c0+_0x5418c6);for(const {cell:_0xb51fc2}of _0x29049f['createTableWalker'](_0x2cdaba,{'startColumn':_0x142817,'endColumn':_0x142817+_0x381e25-0x1}))_0xae9ad7['columnInsertionRanges']['push'](_0xf04f4b['model']['createRangeOn'](_0xb51fc2));},{'priority':'low'}),_0x29049f['on']('insertRows',(_0x2e27ef,_0x54c536)=>{const [_0x1ed5be,_0x35e4bf={}]=_0x54c536;if(!_0xae9ad7)return;const _0x27853c=_0x35e4bf['at']||0x0,_0x18c775=_0x35e4bf['rows']||0x1;_0xae9ad7['rowInsertionIndexes']=new Array(_0x18c775)['fill'](_0x27853c)['map']((_0x19d599,_0x4f3317)=>_0x19d599+_0x4f3317);for(const {cell:_0x380ebb}of _0x29049f['createTableWalker'](_0x1ed5be,{'startRow':_0x27853c,'endRow':_0x27853c+_0x18c775-0x1}))_0xae9ad7['rowInsertionRanges']['push'](_0xf04f4b['model']['createRangeOn'](_0x380ebb));},{'priority':'low'}),_0xd13fc0['descriptionFactory']['registerDescriptionCallback'](_0x4d52cc=>{if(_0x4d52cc['subType']&&_0x4d52cc['subType']['startsWith']('tablePaste'))return _0x4d52cc['previous']?{}:{'type':'insertion','content':c(_0xf04f4b['locale'],'*Replace\x20table\x20cells*')};});const _0x12228c=()=>!0x1;for(const _0x174c27 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xd13fc0['_suggestionFactory']['registerCustomCallback']('insertion',_0x174c27,'join',_0x12228c),_0xd13fc0['_suggestionFactory']['registerCustomCallback']('deletion',_0x174c27,'join',_0x12228c),_0xd13fc0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x174c27,'join',_0x12228c);_0xd13fc0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x12228c),_0xd13fc0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4591f2,_0x36cc1f,_0x13c389)=>{const _0x577715=_0x4591f2['map'](_0x599170=>_0x599170['getContainedElement']())['filter'](_0x5c42a5=>_0x5c42a5),_0x584570=new Map(_0x577715['map'](_0x54d328=>[_0x54d328,null]));if(_0xae9ad7){for(const {element:_0x489bba,attributes:_0x204d20}of _0xae9ad7['cells'])_0x204d20&&_0x584570['set'](_0x489bba,_0x204d20);}else{if(_0x13c389&&_0x13c389['markerAttributes'])for(const [_0x3a5efa,_0x2867a0]of Object['entries'](_0x13c389['markerAttributes'])){const _0x3c2321=_0xf04f4b['model']['markers']['get'](_0x3a5efa),_0x2c184c=_0x3c2321?_0x3c2321['getRange']()['getContainedElement']():null;_0x2c184c&&_0x584570['set'](_0x2c184c,_0x2867a0);}}_0xf04f4b['model']['change'](_0x4c42ce=>{for(const [_0x3516f6,_0x396bc1]of _0x584570)_0x4c42ce['setAttributes']({...xe,..._0x396bc1},_0x3516f6);});});const _0x51ed89=(_0x38173c,_0x29e31d)=>{_0xd13fc0['_suggestionFactory']['registerCustomCallback'](_0x38173c,'tablePaste',_0x29e31d,(_0x3e925d,_0x5dc8ef,_0x5e72a2)=>{_0xf04f4b['model']['change'](_0x213147=>{const _0x5670fd=[];for(const _0x250387 of _0x3e925d){const _0x426040=_0x250387['start']['nodeAfter'];_0x426040['is']('element','tableCellSuggestion')&&_0x5670fd['push'](_0x426040);}_0xd13fc0['_suggestionFactory']['getSuggestionCallback'](_0x38173c,null,_0x29e31d)(_0x3e925d,_0x5dc8ef,_0x5e72a2);for(const _0x387487 of _0x5670fd)'$graveyard'!=_0x387487['root']['rootName']&&_0x213147['unwrap'](_0x387487);});});};_0x51ed89('insertion','accept'),_0x51ed89('insertion','discard'),_0x51ed89('deletion','accept'),_0x51ed89('deletion','discard'),_0xd13fc0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5971c2=>{const _0x155771=_0x5971c2['map'](_0x289b53=>_0x289b53['getContainedElement']()),_0x302e46=_0x155771[0x0]['findAncestor']('table'),{minRow:_0x52f9a5,maxRow:_0x18245e}=_0x368e94['_getCoordsForCells'](_0x155771);_0x29049f['removeRows'](_0x302e46,{'at':_0x52f9a5,'rows':_0x18245e-_0x52f9a5+0x1});}),_0xd13fc0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x257fab=>{const _0x78333f=_0x257fab['map'](_0x6bcd7c=>_0x6bcd7c['getContainedElement']()),_0x5cb37f=_0x78333f[0x0]['findAncestor']('table'),{minColumn:_0x5db32d,maxColumn:_0x2964e2}=_0x368e94['_getCoordsForCells'](_0x78333f);_0x29049f['removeColumns'](_0x5cb37f,{'at':_0x5db32d,'columns':_0x2964e2-_0x5db32d+0x1});});const _0x5e4b64=(_0x305316,_0x1ab20e)=>{if(!_0x1ab20e['subType']||!_0x1ab20e['subType']['startsWith']('tablePaste'))return;const _0x29fb00=_0x1ab20e['attributes']['tablePasteChainId'],_0x19a5b0=_0xd13fc0['getSuggestions']()['filter'](_0x108451=>_0x108451['isInContent']&&_0x108451['attributes']&&_0x108451['attributes']['tablePasteChainId']==_0x29fb00);_0x19a5b0['length']&&_0x1ab20e['getAllAdjacentSuggestions']()['length']!=_0x19a5b0['length']&&_0x19a5b0['reduce']((_0xc7fdf0,_0x5d780a)=>(_0xc7fdf0['next']=_0x5d780a,_0x5d780a['previous']=_0xc7fdf0,_0x5d780a));};function _0x52ac9a(_0x3881b7,_0x1c3ac2=!0x0){const {id:_0x26f209,authorId:_0x512235}=_0xd13fc0['_splitMarkerName'](_0x3881b7['markerName']),_0x4fe0eb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ad116=_0xd13fc0['activeMarkers']['includes'](_0x3881b7['markerName']);return _0x1ad116&&_0x4fe0eb['push']('ck-suggestion-marker--active'),{'classes':_0x4fe0eb,'attributes':{'data-suggestion':_0x26f209,'data-author-id':_0x512235},'priority':_0x1ad116&&_0x1c3ac2?0xbc2:0xbb8};}_0xd13fc0['on']('suggestionLoaded',_0x5e4b64,{'priority':'high'}),_0xd13fc0['on']('suggestionUnloaded',_0x5e4b64,{'priority':'high'}),_0xf04f4b['model']['document']['registerPostFixer'](()=>{let _0xfc620c=!0x1;const _0x15bdbe=Array['from'](_0xf04f4b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40b0e6,data:_0x211122}of _0x15bdbe){const {group:_0x135d68,type:_0x5318bd,id:_0x56da88}=_0xd13fc0['_splitMarkerName'](_0x40b0e6);if('suggestion'!=_0x135d68||'deletion'!=_0x5318bd||_0x211122['oldRange'])continue;if(!_0xd13fc0['hasSuggestion'](_0x56da88))continue;const _0x331cf1=_0xd13fc0['getSuggestion'](_0x56da88)['getRanges'](),_0xda2ec9=_0xf04f4b['plugins']['get']('Users')['me'];for(const _0x5d70e2 of _0xd13fc0['getSuggestions']()){if(!_0x5d70e2['isInContent']||_0x5d70e2['author']!=_0xda2ec9)continue;if('formatBlock'!=_0x5d70e2['type']||'tablePasteCell'!=_0x5d70e2['subType'])continue;if(_0x5d70e2['getRanges']()['every'](_0x15ea59=>_0x331cf1['some'](_0x31af90=>_0x31af90['containsRange'](_0x15ea59,!0x0)))){for(const _0x32a5ad of _0x5d70e2['getAllAdjacentSuggestions']())_0x32a5ad['isInContent']&&(_0x32a5ad['discard'](),_0xfc620c=!0x0);}}}return _0xfc620c;}),_0xf04f4b['model']['document']['registerPostFixer'](_0x2f45da=>{const _0x30f79d=_0xf04f4b['commands']['get']('redo');if(!_0x30f79d||!_0x30f79d['_createdBatches']['has'](_0x2f45da['batch']))return!0x1;let _0x1ed823=!0x1;const _0xd7c4d3=_0xf04f4b['plugins']['get']('Users')['me'],_0x13f9e1=_0xf04f4b['model']['document']['differ']['getChanges'](),_0x4e914f=Array['from'](_0xf04f4b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x165f81,data:_0x2064db})=>{const {group:_0x42bd0b,subType:_0x2ba7ac,authorId:_0x172cf7}=_0xd13fc0['_splitMarkerName'](_0x165f81);return'suggestion'==_0x42bd0b&&'tablePaste'==_0x2ba7ac&&_0x172cf7==_0xd7c4d3['id']&&!_0x2064db['oldRange'];});for(const _0x80c100 of _0x13f9e1){if('insert'!=_0x80c100['type']||'tableCellSuggestion'!=_0x80c100['name']||0x1!=_0x80c100['length'])continue;const _0x398d2e=_0x2f45da['createRange'](_0x80c100['position'],_0x80c100['position']['getShiftedBy'](0x1));if(!_0x4e914f['find'](({data:_0x2f4d9e})=>_0x2f4d9e['newRange']['isEqual'](_0x398d2e))){for(const {name:_0x131e83,data:_0x3676f4}of _0x4e914f)if(_0x398d2e['containsRange'](_0x3676f4['newRange'])){_0x2f45da['updateMarker'](_0x131e83,{'range':_0x398d2e}),_0x1ed823=!0x0;break;}}}return _0x1ed823;}),_0xf04f4b['model']['document']['registerPostFixer'](_0x46fd67=>{let _0x500d77=!0x1;const _0x53f46a=_0xf04f4b['plugins']['get']('Users')['me'],_0x357b66=_0xd13fc0['getSuggestions']()['filter'](_0x599d8d=>_0x599d8d['isInContent']&&_0x599d8d['author']==_0x53f46a),_0x178758=new Set(),_0x570434=new Set();for(const _0x38f42a of _0x357b66)if('tablePaste'==_0x38f42a['subType'])for(const _0x56e4e5 of _0x38f42a['getMarkers']()){const _0xae7f33=_0x56e4e5['getRange']()['getContainedElement']();if(_0xae7f33){if(_0xae7f33['is']('element','tableCellSuggestion')&&Oe(_0xae7f33)){_0x38f42a['removeMarker'](_0x56e4e5['name']),_0x178758['add'](_0xae7f33),_0x500d77=!0x0;const _0x30b028=_0xae7f33['nextSibling'],_0xc43610=_0xae7f33['previousSibling'],_0x4f9520=_0x30b028&&_0x30b028['is']('element','tableCellSuggestion'),_0x11d30f=_0xc43610&&_0xc43610['is']('element','tableCellSuggestion');_0x4f9520&&!_0x178758['has'](_0x30b028)&&_0x570434['add'](_0x30b028),_0x11d30f&&!_0x178758['has'](_0xc43610)&&_0x570434['add'](_0xc43610);}else _0xae7f33['is']('element','paragraph')&&_0xae7f33['isEmpty']&&(_0x38f42a['removeMarker'](_0x56e4e5['name']),_0x500d77=!0x0);}}else{if('tablePasteCell'==_0x38f42a['subType']){if(!_0x38f42a['attributes']||!_0x38f42a['attributes']['tablePasteChainId'])continue;const _0x48eed3=_0x38f42a['attributes']['markerAttributes'];if(_0x48eed3&&Object['keys'](_0x48eed3)['length'])continue;const _0x308f66=_0x38f42a['attributes']['tablePasteChainId'];let _0x1137b4=!0x0,_0x3e029f=!0x0;for(const _0x389e06 of _0x357b66)if(_0x389e06['subType']&&_0x389e06['subType']['startsWith']('tablePaste')){if(!_0x389e06['attributes']['tablePasteChainId']){_0x3e029f=!0x1;break;}if(_0x389e06['id']!=_0x38f42a['id']&&_0x389e06['attributes']['tablePasteChainId']==_0x308f66){_0x1137b4=!0x1;break;}}_0x3e029f&&_0x1137b4&&(_0x38f42a['removeMarkers'](),_0x500d77=!0x0);}}for(const _0x23f8d6 of _0x178758)_0x46fd67['remove'](_0x23f8d6);for(const _0x31f02c of _0x570434)_0x46fd67['unwrap'](_0x31f02c);return _0x500d77;}),_0xf04f4b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x371eba=>_0x52ac9a(_0x371eba),'converterPriority':'high'}),_0xf04f4b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3bd935,_0x287b45)=>_0x287b45['options']['showSuggestionHighlights']?_0x52ac9a(_0x3bd935,!0x1):null,'converterPriority':'high'});const _0x109479=_0xf04f4b['editing']['view'];this['listenTo'](_0x109479['document'],'clipboardOutput',(_0x497045,_0x1b554b)=>{const _0x4c31a7=[];for(const _0x478e3d of _0x109479['createRangeIn'](_0x1b554b['content'])['getItems']())_0x478e3d['is']('element','suggestion-td')&&_0x4c31a7['push'](_0x478e3d);_0x109479['change'](_0x176c5c=>{for(const _0x223182 of _0x4c31a7)_0x176c5c['move'](_0x176c5c['createRangeIn'](_0x223182),_0x176c5c['createPositionBefore'](_0x223182)),_0x176c5c['remove'](_0x223182);});});}}function Oe(_0x207a85){if(_0x207a85['isEmpty'])return!0x0;const _0x175a61=_0x207a85['getChild'](0x0);return _0x175a61['is']('element','paragraph')&&_0x175a61['isEmpty'];}function Ue(_0x137cd6,_0x43bcd9={},_0x46bff6){for(const {isAnchor:_0x19b75b,cellHeight:_0x2b5bbf,cellWidth:_0x3d0298}of _0x46bff6['createTableWalker'](_0x137cd6,{'includeAllSlots':!0x0,..._0x43bcd9}))if(!_0x19b75b||0x1!=_0x2b5bbf||0x1!=_0x3d0298)return!0x1;return!0x0;}class $t extends _0x307cfb{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5ddd7b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ddd7b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5ddd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5ddd7b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ddd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5ddd7b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5ddd7b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1d224a,_0x14cf79){const _0x225b6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c29de=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x341973=_0x14cf79['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x27805f=_0x4c29de['getColumnGroupElement'](_0x341973);let _0xc8c4f4=_0x27805f?_0x4c29de['getTableColumnsWidths'](_0x27805f):null,_0x1c0301=_0x341973['getAttribute']('tableWidth')||null;const _0x2cbb45=_0x14cf79['tableWidth']||_0x1c0301,_0x5baac4=_0x14cf79['columnWidths']||_0xc8c4f4,_0x4f64f9=this['editor']['plugins']['get']('Users')['me'];for(const _0x40972c of _0x225b6a['getSuggestions']()){const _0x5822e9=_0x40972c['getContainedElement']();if('resizeTable'===_0x40972c['subType']&&_0x5822e9===_0x341973){_0x40972c['author']!==_0x4f64f9&&_0x40972c['discard']();const _0x58bc9f=_0x40972c['data']['commandParams'];_0x1c0301=_0x58bc9f[0x0]['tableWidth'],_0xc8c4f4=_0x58bc9f[0x0]['columnWidths'];break;}}_0x1d224a({'table':_0x341973,'tableWidth':_0x2cbb45,'columnWidths':_0x5baac4}),_0x225b6a['markBlockFormat'](_0x341973,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1c0301,'columnWidths':_0xc8c4f4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5a6320){if('formatBlock'!=_0x5a6320['type']&&'formatInline'!=_0x5a6320['type'])return;const {data:_0x931961}=_0x5a6320;if(_0x931961&&'resizeTable'===_0x931961['formatGroupId']){const _0xf49913='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0xf49913)};}}}class Bt extends _0x307cfb{['afterInit'](){const _0x18ad20=this['editor'];_0x18ad20['plugins']['has']('Template')&&_0x18ad20['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x307cfb{['afterInit'](){const _0x1c14da=this['editor'];if(!_0x1c14da['commands']['get']('insertTableOfContents'))return;_0x1c14da['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x524e12=_0x1c14da['plugins']['get']('TrackChangesEditing'),_0x1f870e=_0x1c14da['locale'];_0x524e12['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3acad2=>c(_0x1f870e,'ELEMENT_TABLE_OF_CONTENTS',_0x3acad2));}}class Rt extends _0x307cfb{['afterInit'](){const _0x5c4fd4=this['editor'];if(!_0x5c4fd4['plugins']['has']('Title'))return;const _0xadc76=_0x5c4fd4['plugins']['get']('TrackChangesEditing');_0xadc76['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5c4fd4['locale'],'ELEMENT_TITLE')),_0x5c4fd4['model']['document']['registerPostFixer'](_0x262607=>{let _0x31bed6=!0x1;const _0x5d351d=Array['from'](_0x5c4fd4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd93de5,data:_0x4d156a}of _0x5d351d){const {group:_0x6810bd}=_0xadc76['_splitMarkerName'](_0xd93de5);if('suggestion'!==_0x6810bd||!_0x4d156a['newRange'])continue;const _0x516f93=_0x4d156a['newRange'],_0x194f37=_0x516f93['end']['nodeBefore'];if(!_0x194f37||!_0x194f37['is']('element','title-content'))continue;if(!_0x516f93['start']['isTouching'](_0x516f93['end']))continue;const _0x5584b7=_0x5c4fd4['model']['schema']['getNearestSelectionRange'](_0x516f93['end'],'forward');if(_0x5584b7&&_0x5584b7['isCollapsed']){const _0x4f950f=_0x262607['createRange'](_0x516f93['start'],_0x5584b7['start']);_0x4f950f['isEqual'](_0x516f93)||(_0x262607['updateMarker'](_0xd93de5,{'range':_0x4f950f}),_0x31bed6=!0x0);}_0x31bed6||(_0x262607['removeMarker'](_0xd93de5),_0x31bed6=!0x0);}return _0x31bed6;});}}class xt extends _0x307cfb{['afterInit'](){const _0x443c9d=this['editor'],_0x27da9c=_0x443c9d['plugins']['get']('TrackChangesEditing');_0x443c9d['plugins']['has']('Uploadcare')&&(_0x27da9c['enableCommand']('uploadcare'),_0x443c9d['plugins']['has']('UploadcareImageEdit')&&(_0x27da9c['enableCommand']('uploadcareImageEdit'),_0x27da9c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x27da9c['registerBlockAttribute']('uploadcareImageId'),_0x27da9c['descriptionFactory']['registerDescriptionCallback'](_0x946bfb=>{if('attribute'!=_0x946bfb['type'])return;const {data:_0x3fac0a}=_0x946bfb;return _0x3fac0a&&'uploadcareImageId'==_0x3fac0a['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x307cfb{['afterInit'](){const _0x1f7be0=this['editor'],_0x3a21c8=_0x1f7be0['plugins']['get']('TrackChangesEditing');_0x1f7be0['plugins']['has']('UndoEditing')&&(_0x3a21c8['enableCommand']('undo'),_0x3a21c8['enableCommand']('redo'));}}class Et extends _0x307cfb{static get['requires'](){return[Ct];}['afterInit'](){const _0x3ad8e7=this['editor'];if(!_0x3ad8e7['plugins']['has']('TableCaptionEditing'))return;_0x3ad8e7['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x307cfb{['tableProperties'];['tableCellProperties'];constructor(_0xce2626){super(_0xce2626),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1d5f1a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x39add7 of this['tableProperties'])_0x1d5f1a['enableCommand'](_0x39add7,(_0x22d62a,_0x647caf)=>{const _0x671a18=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x39add7,[_0x671a18],this['tableProperties'],'tableProperties',_0x22d62a,_0x647caf);});_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1d5f1a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5d0b88,_0xab449e)=>this['handleDiscardAction'](this['tableProperties'],_0x5d0b88,_0xab449e)),_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3ae691 of this['tableCellProperties'])_0x1d5f1a['enableCommand'](_0x3ae691,(_0x3ffece,_0x1e4a45)=>{const _0x440a02=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3ae691,_0x440a02,this['tableCellProperties'],'tableCellProperties',_0x3ffece,_0x1e4a45);});_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1d5f1a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x446923,_0x628a79)=>this['handleDiscardAction'](this['tableCellProperties'],_0x446923,_0x628a79)),_0x1d5f1a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1d5f1a['descriptionFactory']['registerDescriptionCallback'](_0x42c9e6=>this['handleSuggestionDescription'](_0x42c9e6));}['_handlePropertyChange'](_0x40c2ac,_0x33a528,_0x50a4ad,_0x3d84b4,_0x3382bd,_0x481628){const _0x230432=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x481628['batch'],()=>{for(const _0x38eb54 of _0x33a528){if(this['_getSuggestion'](_0x38eb54,_0x3d84b4))_0x3382bd(_0x481628);else{const _0x4a0e4c={};for(const _0x4d19e0 of _0x50a4ad){const _0x1d8f03=_0x38eb54['getAttribute'](_0x4d19e0);void 0x0!==_0x1d8f03&&(_0x4a0e4c[_0x4d19e0]=_0x1d8f03);}_0x3382bd(_0x481628),_0x230432['markBlockFormat'](_0x38eb54,{'commandParams':[_0x4a0e4c]},[],_0x3d84b4);}}});}['handleDiscardAction'](_0x12d8f3,_0x1c59c1,_0x2d9c23){const _0x33a91e=_0x1c59c1[0x0]['start']['nodeAfter'],_0x4b47eb=_0x2d9c23['commandParams'][0x0];this['editor']['model']['change'](_0x3eab7a=>{for(const _0x412257 of _0x12d8f3)void 0x0!==_0x4b47eb[_0x412257]?_0x3eab7a['setAttribute'](_0x412257,_0x4b47eb[_0x412257],_0x33a91e):_0x3eab7a['removeAttribute'](_0x412257,_0x33a91e);});}['handleSuggestionDescription'](_0x41423b){if(_0x41423b['data'])switch(_0x41423b['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x59baff,_0x4cf627){const _0x35a5e9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x57fa74 of _0x35a5e9['getSuggestions']({'skipNotAttached':!0x0})){const _0x21b4ec=_0x57fa74['getContainedElement']();if(_0x57fa74['subType']===_0x4cf627&&_0x21b4ec===_0x59baff)return _0x57fa74;}return null;}}const u='$elementName';class p extends _0x307cfb{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2ea921,_0x166579,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4732c2){super(_0x4732c2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xc1f016,_0x1090ba,_0x3730b6,_0x34ef7d)=>{this['_model']['change'](()=>{for(const _0x41b908 of[..._0x34ef7d,..._0x3730b6])this['_model']['markers']['has'](_0x41b908)&&_0x4732c2['editing']['reconvertMarker'](_0x41b908);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4732c2['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x4732c2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4732c2['config']['get']('trackChanges.trackFormatChanges'),_0x4732c2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4732c2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4732c2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x45ae10=this['editor'],_0x2901b6=(_0x377db0,_0x14f59b)=>{if('attribute'!=_0x377db0)return'ck-suggestion-marker-'+_0x377db0;const _0x511ef2=_0x14f59b['split']('|')[0x0];return this['_isBlockAttribute'](_0x511ef2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x45ae10['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x143288=>{const {id:_0xaefcd7,authorId:_0x33c062,type:_0x4a4678,subType:_0x3aadb8}=this['_splitMarkerName'](_0x143288['markerName']),_0x10a35d=['ck-suggestion-marker',_0x2901b6(_0x4a4678,_0x3aadb8)];let _0x3b8e84=0xbb8;return this['activeMarkers']['includes'](_0x143288['markerName'])&&(_0x10a35d['push']('ck-suggestion-marker--active'),_0x3b8e84=0xbc2),'deletion'==_0x4a4678&&(_0x3b8e84+=0x5),{'classes':_0x10a35d,'attributes':{'data-suggestion':_0xaefcd7,'data-author-id':_0x33c062},'priority':_0x3b8e84};}}),_0x45ae10['conversion']['for']('dataDowncast')['add'](_0x1ba138=>{_0x1ba138['on']('addMarker:suggestion',(_0x44442c,_0x3650c0,_0x49d3c1)=>{if(!_0x49d3c1['options']['showSuggestionHighlights'])return;const _0x3678ad=_0x3650c0['item'];if(!_0x3678ad)return;const _0x4ae8db=_0x49d3c1['mapper']['toViewElement'](_0x3678ad);_0x45ae10['model']['schema']['isObject'](_0x3678ad)&&_0x4ae8db&&!_0x4ae8db['getCustomProperty']('widget')&&_0x4ae8db['is']('containerElement')&&_0x42437d(_0x4ae8db,_0x49d3c1['writer']);},{'priority':'high'});}),_0x45ae10['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4d7e42,_0x307a01)=>{if(!_0x307a01['options']['showSuggestionHighlights'])return null;const {type:_0x56f9e3,subType:_0x2e009f}=this['_splitMarkerName'](_0x4d7e42['markerName']);return{'classes':['ck-suggestion-marker',_0x2901b6(_0x56f9e3,_0x2e009f)],'priority':0xbb8};}});const _0x151c4b=({showActiveMarkers:_0x26e972=!0x0,isAttributeSuggestion:_0x186063=!0x1}={})=>(_0x2236ed,_0x5699b8,_0x6b2755)=>{if(!_0x5699b8['item'])return;const {id:_0x3bfdef,authorId:_0x1600d4}=this['_splitMarkerName'](_0x5699b8['markerName']);if(_0x186063){const _0x3c8522=this['_suggestions']['get'](_0x3bfdef),_0x8a55b9=this['_getAttributeKey'](_0x3c8522);if(!this['_isBlockAttribute'](_0x8a55b9))return;}if(_0x5699b8['item']['is']('selection'))return void _0x6b2755['consumable']['consume'](_0x5699b8['item'],_0x2236ed['name']);const _0xf0cf54=_0x6b2755['mapper']['toViewElement'](_0x5699b8['item']);if(_0x5699b8['item']['is']('element')&&_0x45ae10['model']['schema']['isBlock'](_0x5699b8['item'])&&!_0xf0cf54['getCustomProperty']('addHighlight')){_0x6b2755['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xf0cf54),_0x6b2755['writer']['setAttribute']('data-suggestion',_0x3bfdef,_0xf0cf54),_0x6b2755['writer']['setAttribute']('data-author-id',_0x1600d4,_0xf0cf54),_0x6b2755['mapper']['bindElementToMarker'](_0xf0cf54,_0x5699b8['markerName']),_0x26e972&&(this['activeMarkers']['includes'](_0x5699b8['markerName'])?_0x6b2755['writer']['addClass']('ck-suggestion-marker--active',_0xf0cf54):_0x6b2755['writer']['removeClass']('ck-suggestion-marker--active',_0xf0cf54));for(const _0x19650a of _0x45ae10['model']['createRangeIn'](_0x5699b8['item'])['getItems']())_0x6b2755['consumable']['consume'](_0x19650a,_0x2236ed['name']);_0x6b2755['consumable']['consume'](_0x5699b8['item'],_0x2236ed['name']);}};_0x45ae10['conversion']['for']('dataDowncast')['add'](_0x2deaa2=>{_0x2deaa2['on']('addMarker:suggestion:formatBlock',(_0x3fe04a,_0x2b3b04,_0x2e165d)=>{_0x2e165d['options']['showSuggestionHighlights']&&_0x151c4b({'showActiveMarkers':!0x1})(_0x3fe04a,_0x2b3b04,_0x2e165d);},{'priority':'highest'});}),_0x45ae10['conversion']['for']('dataDowncast')['add'](_0x27e4d0=>{_0x27e4d0['on']('addMarker:suggestion:attribute',(_0x7b36f5,_0x33a7e5,_0x5434a6)=>{_0x5434a6['options']['showSuggestionHighlights']&&_0x151c4b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x7b36f5,_0x33a7e5,_0x5434a6);},{'priority':'highest'});}),_0x45ae10['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x54fa30,_0x3b1c72)=>_0x3b1c72['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x54fa30['substr'](0xb)}}),_0x45ae10['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x59a099,{writer:_0x4f47ad})=>{let _0x1578e8='suggestion:'+_0x59a099['getAttribute']('suggestion-type')+':'+_0x59a099['getAttribute']('id');return _0x59a099['getAttribute']('marker-count')&&(_0x1578e8+=':'+_0x59a099['getAttribute']('marker-count')),_0x4f47ad['createElement']('$marker',{'data-name':_0x1578e8});}}),_0x45ae10['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x45ae10['conversion']['for']('editingDowncast')['add'](_0x2db897=>{_0x2db897['on']('addMarker:suggestion:formatBlock',_0x151c4b(),{'priority':'high'});}),_0x45ae10['conversion']['for']('editingDowncast')['add'](_0x7e33c=>{_0x7e33c['on']('addMarker:suggestion:attribute',_0x151c4b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x45ae10['conversion']['for']('editingDowncast')['add'](_0x2f89c5=>{_0x2f89c5['on']('removeMarker:suggestion:formatBlock',(_0x457bd4,_0x3e0cf4,_0x56e524)=>{const _0x4137c7=_0x56e524['mapper']['markerNameToElements'](_0x3e0cf4['markerName']);if(_0x4137c7){for(const _0x52e251 of _0x4137c7)_0x52e251['getCustomProperty']('addHighlight')||(_0x56e524['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x52e251),_0x56e524['writer']['removeAttribute']('data-suggestion',_0x52e251),_0x56e524['writer']['removeAttribute']('data-author-id',_0x52e251),_0x56e524['mapper']['unbindElementFromMarkerName'](_0x52e251,_0x3e0cf4['markerName']));}},{'priority':'high'});}),_0x45ae10['conversion']['for']('editingDowncast')['add'](_0x56d582=>{_0x56d582['on']('removeMarker:suggestion:attribute',(_0x366616,_0x1a38ac,_0x3132b2)=>{const _0x293063=_0x3132b2['mapper']['markerNameToElements'](_0x1a38ac['markerName']);if(!_0x293063)return;const {id:_0x579f7f}=this['_splitMarkerName'](_0x1a38ac['markerName']),_0x39d992=this['_suggestions']['get'](_0x579f7f),_0x5e90ae=this['_getAttributeKey'](_0x39d992);if(this['_isBlockAttribute'](_0x5e90ae)){for(const _0x4d9e5b of _0x293063)_0x4d9e5b['getCustomProperty']('addHighlight')||(_0x3132b2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d9e5b),_0x3132b2['writer']['removeAttribute']('data-suggestion',_0x4d9e5b),_0x3132b2['writer']['removeAttribute']('data-author-id',_0x4d9e5b),_0x3132b2['mapper']['unbindElementFromMarkerName'](_0x4d9e5b,_0x1a38ac['markerName']));}},{'priority':'high'});}),_0x45ae10['model']['document']['registerPostFixer'](_0x382771=>{let _0x4ec51f=!0x1;const _0x1065d7=Array['from'](_0x45ae10['model']['document']['differ']['getChangedMarkers']()),_0x355b09=new Set();for(const {name:_0x147936,data:_0xba7c61}of _0x1065d7){const {group:_0xf4480b,type:_0x14f0a5,subType:_0x3e0753,id:_0x1c0095}=this['_splitMarkerName'](_0x147936);if('suggestion'!==_0xf4480b)continue;const _0x5463cd=this['_suggestions']['get'](_0x1c0095);if(null!=_0xba7c61['newRange']){'formatInline'==_0x14f0a5&&(_0x4ec51f=_0x4ec51f||Lt(_0xba7c61['newRange'],_0x147936,_0x382771,_0x45ae10['model']['schema']));const _0x2a68a9='attribute'==_0x14f0a5&&this['_isBlockAttribute'](_0x3e0753['split']('|')[0x0]);if(_0xba7c61['newRange']['isCollapsed']||'$graveyard'==_0xba7c61['newRange']['root']['rootName']||'formatBlock'==_0x14f0a5&&!Kt(_0xba7c61['newRange'])||_0x2a68a9&&!Kt(_0xba7c61['newRange'])||'deletion'==_0x14f0a5&&!(!Gt(_0x1b0517=_0xba7c61['newRange'])&&!function(_0x1888a8){return _0x1888a8['start']['parent']==_0x1888a8['end']['nodeBefore']&&_0x1888a8['start']['isAtEnd'];}(_0x1b0517)))_0x382771['removeMarker'](_0x147936),_0x4ec51f=!0x0;else{if(!_0x5463cd||!_0x5463cd['isInContent'])continue;if(_0xba7c61['newRange']&&_0xba7c61['oldRange']&&_0xba7c61['newRange']['isEqual'](_0xba7c61['oldRange']))continue;_0x355b09['add'](_0x5463cd);}}}var _0x1b0517;return _0x355b09['size']>0x0&&(_0x4ec51f=!!this['_joinWithAdjacentSuggestions'](_0x355b09)||_0x4ec51f),_0x4ec51f;}),_0x45ae10['model']['document']['registerPostFixer'](_0x28942b=>{let _0x29020e=!0x1;for(const _0x33314 of _0x45ae10['model']['document']['differ']['getChanges']())if('insert'==_0x33314['type'])for(const _0x4f8d97 of this['_suggestions']['values']()){if(_0x4f8d97['isMultiRange']||!_0x4f8d97['isInContent'])continue;const _0x365697='formatBlock'==_0x4f8d97['type'],_0x141452=this['_getAttributeKey'](_0x4f8d97),_0x45df8f=_0x141452&&this['_isBlockAttribute'](_0x141452);if(!_0x365697&&!_0x45df8f)continue;const _0x64bdbc=_0x4f8d97['getFirstRange']();if(_0x64bdbc['start']['parent']!=_0x64bdbc['end']['parent']&&!_0x64bdbc['end']['isAtEnd']){const _0x3579b5=_0x45ae10['model']['createPositionAt'](_0x64bdbc['start']['nodeAfter'],'end'),_0x5b9ee1=_0x45ae10['model']['createRange'](_0x64bdbc['start'],_0x3579b5);_0x28942b['updateMarker'](_0x4f8d97['getFirstMarker'](),{'range':_0x5b9ee1}),_0x29020e=!0x0;}}return _0x29020e;}),_0x45ae10['model']['document']['registerPostFixer'](_0x100e03=>this['_processAttributeChanges'](_0x100e03)),_0x45ae10['model']['document']['registerPostFixer'](_0x1d9c62=>!_0x1d9c62['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1d9c62)),_0x45ae10['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x45ae10['model']['document']['on']('change:data',(_0x5b7620,_0x216f70)=>{if(!_0x216f70['isLocal']||_0x216f70['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2daaf3=_0x45ae10['model']['document']['differ']['getChanges']();if(0x0==_0x2daaf3['length'])return;const _0x4033a9=[],_0x2e1873=_0x2daaf3['filter'](_0x4d871c=>'attribute'==_0x4d871c['type']),_0x481984=_0x2daaf3['filter'](_0xdc31e2=>'insert'==_0xdc31e2['type']&&'$text'!=_0xdc31e2['name']);for(const _0x36796b of _0x2e1873)this['_isRegisteredAttribute'](_0x36796b['attributeKey'])&&_0x4033a9['push']({'key':_0x36796b['attributeKey'],'newValue':_0x36796b['attributeNewValue'],'oldValue':_0x36796b['attributeOldValue'],'range':Ht(_0x36796b['range'],_0x45ae10['model'])});for(const _0x49c66b of _0x481984){if('rename'!=_0x49c66b['action']&&'refresh'!=_0x49c66b['action'])continue;const _0x1f582a=qt(_0x49c66b['position']['nodeAfter'],_0x45ae10['model']),_0x59b927=_0x49c66b['before'];'rename'==_0x49c66b['action']&&_0x4033a9['push']({'key':u,'newValue':_0x49c66b['name'],'oldValue':_0x59b927['name'],'range':_0x1f582a});for(const [_0x416b57,_0x3ce870]of _0x59b927['attributes']){if(!this['_isRegisteredAttribute'](_0x416b57))continue;const _0x5da8b0=_0x49c66b['attributes']['get'](_0x416b57);_0x3ce870!==_0x5da8b0&&_0x4033a9['push']({'key':_0x416b57,'newValue':_0x5da8b0,'oldValue':_0x3ce870,'range':_0x1f582a});}for(const [_0x1f2206,_0x4f731e]of _0x49c66b['attributes'])this['_isRegisteredAttribute'](_0x1f2206)&&(_0x59b927['attributes']['has'](_0x1f2206)||_0x4033a9['push']({'key':_0x1f2206,'newValue':_0x4f731e,'oldValue':null,'range':_0x1f582a}));}0x0!=_0x4033a9['length']&&_0x45ae10['model']['enqueueChange'](_0x216f70,_0x6c41ee=>{const _0x4ab63e=_0x2b49b6();for(const {range:_0x2fae14,key:_0x22aff6,oldValue:_0x25bd7d,newValue:_0x38a1e6}of _0x4033a9)this['markAttributeChange'](_0x2fae14,_0x22aff6,_0x25bd7d,_0x38a1e6,{'groupId':_0x4ab63e});this['_reduceExistingSuggestions'](_0x6c41ee,_0x4033a9);});},{'priority':'lowest'}),_0x45ae10['model']['markers']['on']('update:suggestion',(_0x128446,_0x16d4f1,_0x325a9a)=>{if(null==_0x325a9a){const {id:_0x12d85f}=this['_splitMarkerName'](_0x16d4f1['name']),_0x3ebeb0=this['_suggestions']['get'](_0x12d85f);_0x3ebeb0&&_0x3ebeb0['addMarkerName'](_0x16d4f1['name']);}}),_0x45ae10['model']['document']['on']('change:data',()=>{const _0x231c10=Array['from'](_0x45ae10['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4a0233=>'suggestion'===this['_splitMarkerName'](_0x4a0233['name'])['group']);if(0x0===_0x231c10['length'])return;_0x231c10['sort']((_0x3a731c,_0x2a1442)=>{const _0x3f4345=_0x3a731c['data']['oldRange'],_0x4e0b31=_0x2a1442['data']['oldRange'];return null===_0x3f4345&&null===_0x4e0b31?0x0:null===_0x3f4345&&null!==_0x4e0b31?-0x1:null!==_0x3f4345&&null===_0x4e0b31?0x1:_0x3f4345['start']['isBefore'](_0x4e0b31['start'])?-0x1:0x1;});const _0x2f1445=new Set(),_0x2ba70b=new Set();for(const {name:_0x648c64,data:_0x9659c7}of _0x231c10){const {id:_0x1e9962}=this['_splitMarkerName'](_0x648c64);if(null===_0x9659c7['oldRange']){const _0x21ab42=this['_handleNewSuggestionMarker'](_0x648c64);_0x2ba70b['add'](_0x21ab42);}else{const _0x49bb2b=this['_suggestions']['get'](_0x1e9962);null!==_0x9659c7['newRange']||_0x49bb2b['isInContent']?(_0x2f1445['add'](_0x49bb2b['head']),_0x2ba70b['add'](_0x49bb2b)):this['_removeSuggestion'](_0x49bb2b);}}_0x2ba70b['size']>0x0&&this['_refreshSuggestionsChain'](_0x2ba70b);for(const _0x491c86 of _0x2f1445)this['fire']('suggestionChanged',_0x491c86);}),_0x45ae10['model']['on']('applyOperation',(_0x5f6608,_0xb557e5)=>{const _0x10e8b0=_0xb557e5[0x0];if(!this['_suggestions']['size'])return;if(!_0x10e8b0['isDocumentOperation'])return;if(_0x10e8b0['batch']['isUndo']||!_0x10e8b0['batch']['isLocal'])return;let _0x5ef812,_0x26a680;switch(_0x10e8b0['type']){case'insert':_0x5ef812=_0x45ae10['model']['createPositionAt'](_0x10e8b0['position']),_0x26a680=_0x5ef812['getShiftedBy'](_0x10e8b0['howMany']);break;case'split':_0x5ef812=_0x45ae10['model']['createPositionAt'](_0x10e8b0['splitPosition']),_0x26a680=_0x45ae10['model']['createPositionAt'](_0x10e8b0['moveTargetPosition']);break;case'move':_0x5ef812=_0x45ae10['model']['createPositionAt'](_0x10e8b0['targetPosition']),_0x26a680=_0x5ef812['getShiftedBy'](_0x10e8b0['howMany']);break;default:return;}const _0x23d075=_0x45ae10['model']['createRange'](_0x5ef812,_0x26a680);_0x45ae10['model']['change'](()=>{for(const {suggestion:_0x167fbc,meta:_0x257f5f}of this['_findSuggestions'](_0x23d075)){if(_0x167fbc['isMultiRange'])continue;if('formatInline'==_0x167fbc['type'])continue;const _0x4655de=this['_getAttributeKey'](_0x167fbc);if(_0x4655de&&this['_isBlockAttribute'](_0x4655de)&&'split'!=_0x10e8b0['type'])continue;const _0x448500=_0x167fbc['data']&&_0x167fbc['data']['multipleBlocks'];('formatBlock'!=_0x167fbc['type']||'split'==_0x10e8b0['type']&&!_0x448500)&&(_0x257f5f['containsRangeInObject']||'insertion'==_0x167fbc['type']&&_0x257f5f['isOwn']||_0x167fbc['getFirstRange']()['containsRange'](_0x23d075)&&this['_breakSuggestionMarker'](_0x167fbc,_0x5ef812,_0x26a680));}});},{'priority':'lowest'}),_0x45ae10['model']['on']('deleteContent',(_0x2ddfb1,_0x2def32)=>{const _0x269429=_0x2def32[0x0],_0x54fa49=_0x2def32[0x1];if(_0x54fa49&&_0x54fa49['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x269429['isCollapsed'])return;const _0x2369ff=_0x45ae10['model']['schema'],{start:_0x223c46,end:_0xc357bb}=_0x269429['getFirstRange'](),_0xfe066a=_0x223c46['nodeAfter']&&_0x2369ff['isLimit'](_0x223c46['nodeAfter'])?null:_0x2369ff['getNearestSelectionRange'](_0x223c46,'forward'),_0xf66cd0=_0xc357bb['nodeBefore']&&_0x2369ff['isLimit'](_0xc357bb['nodeBefore'])?null:_0x2369ff['getNearestSelectionRange'](_0xc357bb,'backward'),_0x473a78=_0x45ae10['model']['createRange'](_0xfe066a?_0xfe066a['start']:_0x223c46,_0xf66cd0?_0xf66cd0['end']:_0xc357bb);_0x45ae10['model']['change'](_0x5afa36=>{this['markDeletion'](_0x473a78);const _0x281943=_0x45ae10['model']['schema']['getNearestSelectionRange'](_0x473a78['start']);_0x269429['is']('documentSelection')?_0x5afa36['setSelection'](_0x281943):_0x269429['setTo'](_0x281943);}),_0x2ddfb1['stop']();},{'priority':_0x4d0204['normal']+0xa}),_0x45ae10['model']['on']('insertContent',(_0x5b0907,_0x26bf29)=>{const _0x533aa8=_0x26bf29[_0x26bf29['length']-0x1];_0x533aa8&&_0x533aa8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45ae10['model']['change'](()=>{let _0x3bec3c=_0x45ae10['model']['insertContent'](_0x26bf29[0x0],_0x26bf29[0x1],_0x26bf29[0x2],{'forceDefaultExecution':!0x0});if(!_0x3bec3c)return;_0x5b0907['return']=_0x3bec3c['clone']();const _0x4264d6=_0x3bec3c['end']['nodeBefore'],_0x394d51=_0x45ae10['model']['schema'];_0x4264d6&&_0x394d51['isBlock'](_0x4264d6)&&!_0x394d51['isObject'](_0x4264d6)&&(_0x3bec3c=_0x45ae10['model']['createRange'](_0x3bec3c['start'],_0x45ae10['model']['createPositionAt'](_0x4264d6,'end'))),this['markInsertion'](_0x3bec3c);}),_0x5b0907['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3880ce=new O(_0x45ae10,this['_suggestions']);_0x45ae10['commands']['add']('acceptSuggestion',_0x3880ce),this['enableCommand']('acceptSuggestion');const _0x497324=new R(_0x45ae10,this['_suggestions']);_0x45ae10['commands']['add']('discardSuggestion',_0x497324),this['enableCommand']('discardSuggestion'),_0x45ae10['commands']['add']('acceptAllSuggestions',new x(_0x45ae10,_0x3880ce,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x45ae10['commands']['add']('discardAllSuggestions',new x(_0x45ae10,_0x497324,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x45ae10['commands']['add']('acceptSelectedSuggestions',new E(_0x45ae10,_0x3880ce,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x45ae10['commands']['add']('discardSelectedSuggestions',new E(_0x45ae10,_0x497324,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2dfef2=_0x45ae10['plugins']['get']('CommentsRepository');this['listenTo'](_0x2dfef2,'addComment',(_0x26a9b4,{threadId:_0x3b8d83})=>{const _0xc892e9=this['_suggestions']['get'](_0x3b8d83);_0xc892e9&&_0xc892e9['commentThread']&&0x1===_0xc892e9['commentThread']['length']&&this['_updateSuggestionData'](_0x3b8d83,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2dfef2,'removeComment',(_0x59d334,{threadId:_0x628654})=>{const _0x24050b=this['_suggestions']['get'](_0x628654);_0x24050b&&_0x24050b['commentThread']&&!_0x24050b['commentThread']['length']&&this['_updateSuggestionData'](_0x628654,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3b455b){const _0x5d12ea=_0x280578([0x67,0x69,0x7a,0x5a,0x70,0x59,0x57,0x31,0x66,0x75,0x36,0x64,0x6a,0x39,0x72,0x6e,0x65,0x56,0x77,0x48,0x46,0x4e,0x41,0x50,0x62,0x33,0x78,0x6f,0x30,0x49,0x61,0x4f,0x6c,0x74,0x71,0x32,0x73,0x4c,0x63,0x6b,0x4b,0x42,0x44,0x45,0x53,0x58,0x34,0x76,0x54,0x47,0x4a,0x38,0x6d,0x35,0x51,0x55,0x37,0x79,0x52,0x4d,0x68,0x43]),_0x23a79b=0x54c6a3ed,_0x5e77e9=0x54c1c18d^_0x23a79b,_0x4c505c=window[_0x280578([0x44,0x61,0x74,0x65])][_0x280578([0x6e,0x6f,0x77])](),_0x74dd7b=_0x3b455b[_0x280578([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3783b8=new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x491da2=>{_0x74dd7b[_0x280578([0x6f,0x6e,0x63,0x65])](_0x280578([0x72,0x65,0x61,0x64,0x79]),_0x491da2);}),_0x1b908d={[_0x280578([0x6b,0x74,0x79])]:_0x280578([0x45,0x43]),[_0x280578([0x75,0x73,0x65])]:_0x280578([0x73,0x69,0x67]),[_0x280578([0x63,0x72,0x76])]:_0x280578([0x50,0x2d,0x32,0x35,0x36]),[_0x280578([0x78])]:_0x280578([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x280578([0x79])]:_0x280578([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x280578([0x61,0x6c,0x67])]:_0x280578([0x45,0x53,0x32,0x35,0x36])},_0x49f32c=_0x74dd7b[_0x280578([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x280578([0x67,0x65,0x74])](_0x280578([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2bbeca(){let _0x142ba1,_0x56fcc4=null,_0x31a07a=null;try{if(_0x49f32c==_0x280578([0x47,0x50,0x4c]))return _0x280578([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x142ba1=_0x409ff0(),!_0x142ba1)return _0x280578([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x142ba1[_0x280578([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31a07a=_0x3c6ef0(_0x142ba1[_0x280578([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x142ba1[_0x280578([0x6a,0x74,0x69])])),await _0xc664ff()?_0x662991()?_0x216912()?_0x280578([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x524f8e()?(_0x142ba1[_0x280578([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x280578([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56fcc4=_0x3fc7ea(_0x280578([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x142ba1[_0x280578([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x280578([0x74,0x72,0x69,0x61,0x6c])&&(_0x56fcc4=_0x3fc7ea(_0x280578([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20f362()):_0x280578([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x280578([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x280578([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1322f1){return _0x280578([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x216912(){const _0x49bbf5=[_0x280578([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x280578([0x74,0x72,0x69,0x61,0x6c])][_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x142ba1[_0x280578([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c505c/0x3e8:0xe10*_0x5e77e9;return _0x142ba1[_0x280578([0x65,0x78,0x70])]<_0x49bbf5;}function _0x662991(){const _0xafc2fc=_0x142ba1[_0x280578([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xafc2fc)return!0x1;if(_0xafc2fc[_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280578([0x2a])))return!0x0;if(_0xafc2fc[_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280578([0x54,0x43])))return!0x0;if(_0xafc2fc[_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280578([0x52,0x54,0x43]))){if(_0x3efdfd())return!0x0;if(_0x6bd50a()||_0x10e160())return!0x0;}return!0x1;}function _0x524f8e(){const _0x27da52=_0x142ba1[_0x280578([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27da52||0x0==_0x27da52[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b62ad}=new URL(window[_0x280578([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x27da52[_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b62ad))return!0x0;const _0x53064e=_0x1b62ad[_0x280578([0x73,0x70,0x6c,0x69,0x74])](_0x280578([0x2e]));return _0x27da52[_0x280578([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x484be7=>_0x484be7[_0x280578([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x280578([0x2a])))[_0x280578([0x6d,0x61,0x70])](_0x1af4e6=>_0x1af4e6[_0x280578([0x73,0x70,0x6c,0x69,0x74])](_0x280578([0x2e])))[_0x280578([0x73,0x6f,0x6d,0x65])](_0x2bad47=>_0x53064e[_0x280578([0x65,0x76,0x65,0x72,0x79])]((_0xbe575,_0x351751)=>_0x2bad47[_0x351751]===_0xbe575||_0x2bad47[_0x351751]===_0x280578([0x2a])));}function _0x20f362(){return _0x56fcc4&&_0x31a07a?new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2900f2,_0x333708)=>{_0x56fcc4[_0x280578([0x74,0x68,0x65,0x6e])](_0x2900f2,_0x333708),_0x31a07a[_0x280578([0x74,0x68,0x65,0x6e])](_0x21b626=>{_0x21b626!=_0x280578([0x56,0x61,0x6c,0x69,0x64])&&_0x2900f2(_0x21b626);},_0x333708);}):_0x56fcc4||_0x31a07a||_0x280578([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c6ef0(_0x426d8d,_0x21be5d){return new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d761a=>{if(_0x8e3e0d())return _0x5d761a(_0x280578([0x56,0x61,0x6c,0x69,0x64]));_0x5ba4ee(),_0x74dd7b[_0x280578([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x280578([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x653c34=!0x1;const _0x431867=_0x2b49b6();function _0x3fb65d(_0x4fdb6f){return!!_0x4fdb6f&&(typeof _0x4fdb6f===_0x280578([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4fdb6f===_0x280578([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4fdb6f[_0x280578([0x74,0x68,0x65,0x6e])]===_0x280578([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4fdb6f[_0x280578([0x63,0x61,0x74,0x63,0x68])]===_0x280578([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x532971(_0x515ed3){_0x2e26df(_0x515ed3)[_0x280578([0x74,0x68,0x65,0x6e])](_0x25f6fe=>{if(!_0x25f6fe||_0x25f6fe[_0x280578([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x280578([0x6f,0x6b]))return _0x280578([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ffa22(_0x1186c7(_0x431867+_0x21be5d))!=_0x25f6fe[_0x280578([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x280578([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x280578([0x56,0x61,0x6c,0x69,0x64]);})[_0x280578([0x74,0x68,0x65,0x6e])](_0x194935=>(_0x2b023a(),_0x194935),()=>{const _0x1bd32e=_0x14ae75();return null==_0x1bd32e?(_0x2b023a(),_0x280578([0x56,0x61,0x6c,0x69,0x64])):_0x280578(_0x4c505c-_0x1bd32e>(0x70ca27ed^_0x23a79b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x280578([0x74,0x68,0x65,0x6e])](_0x5d761a)[_0x280578([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d761a(_0x280578([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c2257=0x54f04d6d^_0x23a79b;function _0x2b023a(){const _0x79da9=_0x280578([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ffa22(_0x1186c7(_0x426d8d)),_0x2f38bd=_0x99de93(_0x4ffa22(window[_0x280578([0x4d,0x61,0x74,0x68])][_0x280578([0x63,0x65,0x69,0x6c])](_0x4c505c/_0x2c2257)));window[_0x280578([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x280578([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x79da9,_0x2f38bd);}function _0x14ae75(){const _0x1b4b3d=_0x280578([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ffa22(_0x1186c7(_0x426d8d)),_0x2c1075=window[_0x280578([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x280578([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b4b3d);return _0x2c1075?window[_0x280578([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x99de93(_0x2c1075),0x10)*_0x2c2257:null;}function _0x2e26df(_0x57388e){return new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1496d1,_0x565c0a)=>{_0x57388e[_0x280578([0x74,0x68,0x65,0x6e])](_0x1496d1,_0x565c0a),window[_0x280578([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x565c0a,0x54c7772d^_0x23a79b);});}}_0x74dd7b[_0x280578([0x6f,0x6e])](_0x280578([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4b463,_0x500b3a)=>{if(_0x500b3a[0x0]!=_0x426d8d)return _0x5d761a(_0x280578([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x500b3a[0x1]={..._0x500b3a[0x1],[_0x280578([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x431867};},{[_0x280578([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x280578([0x68,0x69,0x67,0x68])}),_0x74dd7b[_0x280578([0x6f,0x6e])](_0x280578([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bbe5e=>{_0x3fb65d(_0x3bbe5e[_0x280578([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x653c34=!0x0,_0x532971(_0x3bbe5e[_0x280578([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x280578([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x280578([0x6c,0x6f,0x77])}),_0x3783b8[_0x280578([0x74,0x68,0x65,0x6e])](()=>{_0x653c34||_0x5d761a(_0x280578([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8e3e0d(){return _0x74dd7b[_0x280578([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x280578([0x76,0x69,0x65,0x77])][_0x280578([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x280578([0x61,0x75,0x74,0x6f]);}function _0x5ba4ee(){_0x74dd7b[_0x280578([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x280578([0x76,0x69,0x65,0x77])][_0x280578([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x280578([0x61,0x75,0x74,0x6f]);}}function _0x3fc7ea(_0x4cf8a4){const _0x4dfc5f=[new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x438857=>setTimeout(_0x438857,0x54cf9d21^_0x23a79b)),_0x3783b8[_0x280578([0x74,0x68,0x65,0x6e])](()=>new window[(_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1252d5=>{let _0xce8095=0x0;_0x74dd7b[_0x280578([0x6d,0x6f,0x64,0x65,0x6c])][_0x280578([0x6f,0x6e])](_0x280578([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41b9fc,_0x2c5c8f)=>{_0x2c5c8f[0x0][_0x280578([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xce8095++,_0xce8095==(0x54c6a215^_0x23a79b)&&(_0x1252d5(),_0x41b9fc[_0x280578([0x6f,0x66,0x66])]());});}))];return window[_0x280578([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x280578([0x72,0x61,0x63,0x65])](_0x4dfc5f)[_0x280578([0x74,0x68,0x65,0x6e])](()=>_0x4cf8a4);}async function _0x3b5fe5(){await _0x3783b8,_0x74dd7b[_0x280578([0x6d,0x6f,0x64,0x65,0x6c])][_0x280578([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25e647,_0x74dd7b[_0x280578([0x6d,0x6f,0x64,0x65,0x6c])][_0x280578([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25e647,_0x74dd7b[_0x280578([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x280578([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3efdfd(){return _0xa76ce1(_0x280578([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5efc92(_0x280578([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x280578([0x73,0x74,0x61,0x74,0x65])]==_0x280578([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x6bd50a(){return _0xa76ce1(_0x280578([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x10e160(){return _0xa76ce1(_0x280578([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x57059b(_0x2caf35){const _0x283b5e=_0x40cedc();_0x74dd7b[_0x283b5e]=_0x280578([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2caf35,_0x2caf35!=_0x280578([0x56,0x61,0x6c,0x69,0x64])&&_0x3b5fe5();}function _0x40cedc(){const _0x51d3a9=window[_0x280578([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x280578([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x280578([0x6e,0x6f,0x77])]())[_0x280578([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x280578([0x2e]),'');let _0x2d5a44=_0x280578([0x67]);for(let _0x554be7=0x0;_0x554be7<_0x51d3a9[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x554be7+=0x2){let _0xf39620=window[_0x280578([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51d3a9[_0x280578([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x554be7,_0x554be7+0x2));_0xf39620>=_0x5d12ea[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf39620-=_0x5d12ea[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d5a44+=_0x5d12ea[_0xf39620];}return _0x2d5a44;}function _0x409ff0(){const _0x2b157b=_0x49f32c[_0x280578([0x73,0x70,0x6c,0x69,0x74])](_0x280578([0x2e]));if(0x3!=_0x2b157b[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x210215(_0x2b157b[0x1]);function _0x210215(_0x3cf6d7){const _0x1f36b8=_0x37b59f(_0x3cf6d7);return _0x1f36b8&&_0x19ef1f()?_0x1f36b8:null;function _0x19ef1f(){const _0x4322bc=_0x1f36b8[_0x280578([0x6a,0x74,0x69])],_0x41db53=window[_0x280578([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4322bc[_0x280578([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4322bc[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3bfa45={..._0x1f36b8,[_0x280578([0x6a,0x74,0x69])]:_0x4322bc[_0x280578([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4322bc[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3bfa45[_0x280578([0x76,0x63])],_0x1186c7(_0x3bfa45)==_0x41db53;}}}async function _0xc664ff(){let _0x5d2143=!0x0;try{const _0xd07ec8=_0x49f32c[_0x280578([0x73,0x70,0x6c,0x69,0x74])](_0x280578([0x2e])),[_0x4079bc,_0x5ce094,_0x246f3d]=_0xd07ec8;return _0x1e94ce(_0x4079bc),await _0x16512a(_0x4079bc,_0x5ce094,_0x246f3d),_0x5d2143;}catch(_0x5574e1){return!0x1;}function _0x1e94ce(_0x33bd03){const _0x536bac=_0x37b59f(_0x33bd03);_0x536bac&&_0x536bac[_0x280578([0x61,0x6c,0x67])]==_0x280578([0x45,0x53,0x32,0x35,0x36])||(_0x5d2143=!0x1);}async function _0x16512a(_0x5c704a,_0x7b5ef2,_0x145f14){const _0x41eab5=window[_0x280578([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x280578([0x66,0x72,0x6f,0x6d])](_0xbc5877(_0x145f14),_0x398680=>_0x398680[_0x280578([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x42757a=new window[(_0x280578([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x280578([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c704a+_0x280578([0x2e])+_0x7b5ef2),_0x32cc61=window[_0x280578([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x280578([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32cc61)return;const _0x4fa07d=await _0x32cc61[_0x280578([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x280578([0x6a,0x77,0x6b]),_0x1b908d,{[_0x280578([0x6e,0x61,0x6d,0x65])]:_0x280578([0x45,0x43,0x44,0x53,0x41]),[_0x280578([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x280578([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x280578([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32cc61[_0x280578([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x280578([0x6e,0x61,0x6d,0x65])]:_0x280578([0x45,0x43,0x44,0x53,0x41]),[_0x280578([0x68,0x61,0x73,0x68])]:{[_0x280578([0x6e,0x61,0x6d,0x65])]:_0x280578([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fa07d,_0x41eab5,_0x42757a)||(_0x5d2143=!0x1);}}function _0x37b59f(_0x29d965){return _0x29d965[_0x280578([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x280578([0x65,0x79]))?JSON[_0x280578([0x70,0x61,0x72,0x73,0x65])](_0xbc5877(_0x29d965)):null;}function _0xbc5877(_0x37cec8){return window[_0x280578([0x61,0x74,0x6f,0x62])](_0x37cec8[_0x280578([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x280578([0x2b]))[_0x280578([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x280578([0x2f])));}function _0x1186c7(_0x2bf890){let _0x2128b2=0x1505;function _0x45e56c(_0x450371){for(let _0x5589a4=0x0;_0x5589a4<_0x450371[_0x280578([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5589a4++){const _0x985e38=_0x450371[_0x280578([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5589a4);_0x2128b2=(_0x2128b2<<0x5)+_0x2128b2+_0x985e38,_0x2128b2&=_0x2128b2;}}function _0x48d196(_0x556cce){Array[_0x280578([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x556cce)?_0x556cce[_0x280578([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x48d196):_0x556cce&&typeof _0x556cce==_0x280578([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x280578([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x556cce)[_0x280578([0x73,0x6f,0x72,0x74])]()[_0x280578([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x391894,_0x669dae])=>{_0x45e56c(_0x391894),_0x48d196(_0x669dae);}):_0x45e56c(window[_0x280578([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x556cce));}return _0x48d196(_0x2bf890),_0x2128b2>>>0x0;}function _0x4ffa22(_0x480a63){return _0x480a63[_0x280578([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x280578([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x280578([0x30]));}function _0x99de93(_0x5f489f){return _0x5f489f[_0x280578([0x73,0x70,0x6c,0x69,0x74])]('')[_0x280578([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x280578([0x6a,0x6f,0x69,0x6e])]('');}function _0xa76ce1(_0x1c4fab){return _0x74dd7b[_0x280578([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x280578([0x68,0x61,0x73])](_0x1c4fab);}function _0x5efc92(_0x6f53b4){return _0x74dd7b[_0x280578([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x280578([0x67,0x65,0x74])](_0x6f53b4);}function _0x25e647(){}function _0x280578(_0xe0fdca){return _0xe0fdca['map'](_0x53f279=>String['fromCharCode'](_0x53f279))['join']('');}_0x57059b(await _0x2bbeca());}(this);}set['adapter'](_0x211b73){if(this['_adapter'])throw new _0x52489f('track-changes-adapter-already-set',this);this['_adapter']=_0x211b73;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1fb80f=!0x1,toJSON:_0x1a1096=!0x1}={}){const _0x4676b0=[];for(const _0x26e097 of this['_suggestions']['values']())_0x1fb80f&&!_0x26e097['isInContent']||_0x4676b0['push'](_0x26e097);return _0x1a1096?_0x4676b0['map'](_0x3e6902=>_0x3e6902['toJSON']()):_0x4676b0;}['getSuggestion'](_0x2037d6){const _0xcbb46a=this['_suggestions']['get'](_0x2037d6);if(!_0xcbb46a)throw new _0x52489f('track-changes-suggestion-not-found',this);return _0xcbb46a;}['hasSuggestion'](_0x4bb610){return this['_suggestions']['has'](_0x4bb610);}['addSuggestionData'](_0x3db98b){const {authorId:_0x1e03a1,id:_0x506ec7,attributes:_0x57caae}=_0x3db98b,[_0x8d8dda,_0x418202]=_0x3db98b['type']['split'](':'),_0x35df81=this['_suggestions']['get'](_0x506ec7)||this['_createSuggestion'](_0x8d8dda,_0x418202,_0x506ec7,_0x1e03a1,_0x57caae);if(this['_addThreadToSuggestion'](_0x35df81),this['_checkSuggestionCorrectness'](_0x35df81,_0x8d8dda,_0x418202||null,_0x1e03a1),_0x35df81['createdAt']=_0x3db98b['createdAt'],_0x35df81['_isDataLoaded']=!0x0,_0x57caae&&_0x57caae['@external']){const _0xb9a8=_0x57caae['@external'],_0x4a9b1d=this['_getExternalAuthor'](_0xb9a8['authorName']);_0x35df81['authoredAt']=_0xb9a8['createdAt'],_0x35df81['author']=_0x4a9b1d,_0x35df81['isExternal']=!0x0;}else _0x35df81['authoredAt']=_0x3db98b['createdAt'];switch(_0x3db98b['data']&&(_0x35df81['data']=_0x3db98b['data']),_0x3db98b['attributes']&&(_0x35df81['attributes']=_0x3db98b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x35df81['_saved']=!0x0),this['_suggestionState']['get'](_0x35df81)){case'notReady':this['_suggestionState']['set'](_0x35df81,'dataReady');break;case'markerReady':_0x35df81['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x35df81])),this['_refreshSuggestionsChain'](new Set([_0x35df81])),this['_suggestionState']['set'](_0x35df81,'ready'),this['fire']('suggestionLoaded',_0x35df81)):this['_suggestionState']['set'](_0x35df81,'removed');}return _0x35df81;}['acceptSuggestion'](_0x3ef464){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d9eb0 of _0x3ef464['getAllAdjacentSuggestions']())_0x5d9eb0['accept']();});});}['discardSuggestion'](_0x37696a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1e7aa0 of _0x37696a['getAllAdjacentSuggestions']())_0x1e7aa0['discard']();});});}['enableCommand'](_0x4514b6,_0x17cde2){const _0x202114=this['editor']['commands']['get'](_0x4514b6);if(!_0x202114)throw new _0x52489f('track-changes-command-not-found',this,{'commandName':_0x4514b6});if(this['_enabledCommands']['has'](_0x202114))throw new _0x52489f('track-changes-enable-command-twice',this,{'commandName':_0x4514b6});this['_enabledCommands']['add'](_0x202114),_0x17cde2&&_0x202114['on']('execute',(_0x325c20,_0x26a4e3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x26a4e3['length']>0x0&&_0x26a4e3[_0x26a4e3['length']-0x1]&&_0x26a4e3[_0x26a4e3['length']-0x1]['forceDefaultExecution']?_0x26a4e3['pop']():(_0x325c20['return']=_0x17cde2((..._0x55687f)=>_0x202114['execute'](..._0x55687f,{'forceDefaultExecution':!0x0}),..._0x26a4e3),_0x325c20['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x94ed30){let _0x351b26,_0x6546c3;const _0x28dd88=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x351b26=_0x94ed30();}catch(_0x1095c6){_0x6546c3=_0x1095c6;}return _0x28dd88||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x6546c3&&_0x52489f['rethrowUnexpectedError'](_0x6546c3,this),_0x351b26;}['markInsertion'](_0xee67e1,_0x45869d=null,_0x50c66e={}){if(_0xee67e1['isCollapsed'])return null;const _0xa49539=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x9067f5,meta:_0x4b585b}of this['_findSuggestions'](_0xee67e1,'insertion'))if(_0x4b585b['isOwn']){if(!_0x4b585b['isNextTo']){if(_0x4b585b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x9067f5,_0x50c66e))continue;return _0x9067f5;}if(Qt(_0x9067f5,_0x50c66e))return _0x9067f5;this['_breakSuggestionMarker'](_0x9067f5,_0xee67e1['start'],_0xee67e1['end']);break;}if(_0x45869d==_0x9067f5['subType']&&Qt(_0x9067f5,_0x50c66e)){const _0x4dc401=_0x9067f5['getFirstRange']();return _0x4dc401['start']['isEqual'](_0xee67e1['end'])?this['_setSuggestionRange'](_0x9067f5,this['_model']['createRange'](_0xee67e1['start'],_0x4dc401['end'])):this['_setSuggestionRange'](_0x9067f5,this['_model']['createRange'](_0x4dc401['start'],_0xee67e1['end'])),_0x9067f5;}}const _0x135649=_0x2b49b6(),_0x2df0fb=_0xa49539['id'],_0x3edfdb=_0x45869d?'insertion:'+_0x45869d:'insertion',_0x497481=this['_setSuggestionData']({'id':_0x135649,'type':_0x3edfdb,'createdAt':new Date(),'authorId':_0x2df0fb,'attributes':_0x50c66e});return this['_addSuggestionMarker'](_0x3edfdb,_0x135649,_0x2df0fb,_0xee67e1),_0x497481;}['markMultiRangeInsertion'](_0x436caa,_0x1c4ca0='multi',_0x37d78e={}){const _0x102148=this['editor']['plugins']['get']('Users')['me'],_0x440bff=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1c4ca0,'join');for(const _0x5a0bea of this['getSuggestions']())if(_0x5a0bea['author']['id']==_0x102148['id']&&'insertion'==_0x5a0bea['type']&&_0x5a0bea['subType']==_0x1c4ca0&&Qt(_0x5a0bea,_0x37d78e)&&(_0x440bff(_0x5a0bea['getRanges'](),_0x436caa)||_0x440bff(_0x436caa,_0x5a0bea['getRanges']()))){for(const _0x52e444 of _0x436caa)_0x5a0bea['addRange'](_0x52e444);return _0x5a0bea;}for(const {suggestion:_0x57c266,meta:_0x5474f5}of this['_findSuggestions'](_0x436caa,'insertion')){if(!_0x5474f5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5474f5['containsRangeInObject'])continue;if(!Qt(_0x57c266,_0x37d78e))continue;let _0x13dc69=!0x0;for(const _0x527bc5 of _0x57c266['getRanges']())for(const _0x2a833c of _0x436caa)if(!_0x527bc5['containsRange'](_0x2a833c)){_0x13dc69=!0x1;break;}if(_0x13dc69)return _0x57c266;}const _0x24ca9e=_0x2b49b6(),_0x308dfa=_0x102148['id'],_0x716e84='insertion:'+_0x1c4ca0,_0x1585bc=this['_setSuggestionData']({'id':_0x24ca9e,'type':_0x716e84,'createdAt':new Date(),'authorId':_0x308dfa,'attributes':_0x37d78e});for(const _0x130de7 of _0x436caa)this['_addSuggestionMarker'](_0x716e84,_0x24ca9e,_0x308dfa,_0x130de7,o['getMultiRangeId']());return _0x1585bc;}['markInlineFormat'](_0x78c8,_0x4d3de4,_0x1187a2=null,_0x5ea1f8={}){if(_0x1187a2=_0x1187a2||Jt(_0x4d3de4),_0x78c8['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x530a24=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1187a2,'accept');return this['forceDefaultExecution'](()=>_0x530a24([_0x78c8],_0x4d3de4,_0x5ea1f8)),null;}const _0x2319fa=this['editor']['plugins']['get']('Users')['me'],_0x38488e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xbf24e7,meta:_0x1eca1d}of this['_findSuggestions'](_0x78c8,'insertion'))_0x1eca1d['isOwn']&&!_0x1eca1d['isInsideObject']&&_0x38488e['push'](..._0xbf24e7['getRanges']());}const _0x3a578f=function(_0x475f39,_0x528924){const _0x1af0ed=[];for(const _0x310962 of _0x528924){const _0x579ec9=_0x475f39['getIntersection'](_0x310962);_0x579ec9&&_0x1af0ed['push'](_0x579ec9);}return _0x1af0ed;}(_0x78c8,_0x38488e),_0x105335=function(_0x4f0e12,_0x174cf8){const _0x2601d8=[_0x4f0e12];for(const _0x5e06dc of _0x174cf8){let _0x33388d=0x0;for(;_0x33388d<_0x2601d8['length'];){const _0x31bd32=_0x2601d8[_0x33388d]['getDifference'](_0x5e06dc);_0x2601d8['splice'](_0x33388d,0x1,..._0x31bd32),_0x33388d+=_0x31bd32['length'];}}return _0x2601d8;}(_0x78c8,_0x38488e);_0x3a578f['length']&&this['_model']['change'](()=>{for(const _0x5d96e0 of _0x3a578f){const _0x5b1f45=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1187a2,'accept');this['forceDefaultExecution'](()=>_0x5b1f45([_0x5d96e0],_0x4d3de4,_0x5ea1f8));}});for(const _0xe6133f of _0x105335){let _0x49b8f3=null,_0x59f8cf=_0xe6133f['start'],_0x550ebb=_0xe6133f['end'];for(const {suggestion:_0x550235,meta:_0x55fa40}of this['_findSuggestions'](_0xe6133f,'formatInline')){if(!_0x55fa40['isOwn'])continue;if(_0x550235['subType']!=_0x1187a2)continue;if(!Qt(_0x550235,_0x5ea1f8))continue;const _0x4146c=_0x550235['getFirstRange']();if(_0x4146c['containsRange'](_0xe6133f,!0x0))return null;_0x59f8cf=_0x59f8cf['isBefore'](_0x4146c['start'])?_0x59f8cf:_0x4146c['start'],_0x550ebb=_0x550ebb['isAfter'](_0x4146c['end'])?_0x550ebb:_0x4146c['end'],_0x49b8f3?_0x4146c['start']['isBefore'](_0x49b8f3['getFirstRange']()['start'])?(_0x49b8f3['removeMarkers'](),_0x49b8f3=_0x550235):_0x550235['removeMarkers']():_0x49b8f3=_0x550235;}const _0x46c36c=this['_model']['createRange'](_0x59f8cf,_0x550ebb);if(_0x49b8f3)this['_setSuggestionRange'](_0x49b8f3,_0x46c36c);else{const _0xdbb2d8=_0x2b49b6(),_0x559e78=_0x2319fa['id'];this['_setSuggestionData']({'id':_0xdbb2d8,'type':'formatInline:'+_0x1187a2,'data':_0x4d3de4,'createdAt':new Date(),'authorId':_0x559e78,'attributes':_0x5ea1f8}),this['_addSuggestionMarker']('formatInline:'+_0x1187a2,_0xdbb2d8,_0x559e78,_0x46c36c);}}return null;}['markBlockFormat'](_0x45cba3,_0x58b94e,_0x357590=[],_0x2ba339=null,_0x1f7fe1={}){_0x58b94e['formatGroupId']||(_0x58b94e['formatGroupId']=_0x58b94e['commandName']),_0x58b94e['multipleBlocks']=_0x45cba3['is']('range'),_0x2ba339=_0x2ba339||Jt(_0x58b94e);const _0x4fb058=_0x357590['map'](_0x1b89fc=>qt(_0x1b89fc,this['_model'])),_0x50520e=_0x45cba3['is']('range')?_0x45cba3:qt(_0x45cba3,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3a38b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ba339,'accept');return this['forceDefaultExecution'](()=>_0x3a38b5([_0x50520e],_0x58b94e,_0x1f7fe1)),null;}_0x4fb058['push'](_0x50520e);let _0x335622=!0x0;for(const _0x4e58d0 of _0x4fb058)if(!this['_rangeIsInLocalUserInsertion'](_0x4e58d0)){_0x335622=!0x1;break;}if(_0x335622&&'always'!==this['_trackFormatChanges']){const _0x317c4b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ba339,'accept');return this['forceDefaultExecution'](()=>_0x317c4b([_0x50520e],_0x58b94e,_0x1f7fe1)),null;}let _0x4b3120=null,_0x32247a=_0x50520e['start'],_0x2e07c1=_0x50520e['end'];for(const {suggestion:_0x199c3d,meta:_0x5ec7c6}of this['_findSuggestions'](_0x50520e,'formatBlock')){if(!_0x5ec7c6['isOwn'])continue;if(_0x5ec7c6['isNextTo']||_0x5ec7c6['containsRangeInObject']||_0x5ec7c6['isInsideObject'])continue;if(_0x199c3d['data']['formatGroupId']!=_0x58b94e['formatGroupId'])continue;if(!Qt(_0x199c3d,_0x1f7fe1))continue;const _0x5de499=_0x199c3d['getFirstRange']();if(_0x199c3d['subType']==_0x2ba339){if(_0x5de499['containsRange'](_0x50520e,!0x0))return null;_0x32247a=_0x32247a['isBefore'](_0x5de499['start'])?_0x32247a:_0x5de499['start'],_0x2e07c1=_0x2e07c1['isAfter'](_0x5de499['end'])?_0x2e07c1:_0x5de499['end'],_0x4b3120?_0x5de499['start']['isBefore'](_0x4b3120['getFirstRange']()['start'])?(_0x4b3120['removeMarkers'](),_0x4b3120=_0x199c3d):_0x199c3d['removeMarkers']():_0x4b3120=_0x199c3d;}else{const _0x49b512=_0x50520e['getIntersection'](_0x5de499);this['_cutOutSuggestionMarker'](_0x199c3d,_0x49b512);}}const _0x5c4b1d=this['editor']['plugins']['get']('Users')['me'],_0x117421=_0x2b49b6(),_0x46e660=_0x5c4b1d['id'];if(_0x4b3120)return this['_setSuggestionRange'](_0x4b3120,this['_model']['createRange'](_0x32247a,_0x2e07c1)),_0x4b3120;{const _0x193e28=this['_setSuggestionData']({'id':_0x117421,'type':'formatBlock:'+_0x2ba339,'data':_0x58b94e,'createdAt':new Date(),'authorId':_0x46e660,'attributes':_0x1f7fe1});return this['_addSuggestionMarker']('formatBlock:'+_0x2ba339,_0x117421,_0x46e660,this['_model']['createRange'](_0x32247a,_0x2e07c1)),_0x193e28;}}['markMultiRangeBlockFormat'](_0x28acae,_0xfa87c,_0x16ebc6=[],_0x6cdbdc=null,_0x3acbed={}){_0xfa87c['formatGroupId']||(_0xfa87c['formatGroupId']=_0xfa87c['commandName']);const _0x5a3f1c=_0x28acae[0x0];_0xfa87c['multipleBlocks']=_0x5a3f1c['is']('range'),_0x6cdbdc=_0x6cdbdc||Jt(_0xfa87c);const _0x140711=_0x16ebc6['map'](_0x164168=>qt(_0x164168,this['_model'])),_0x25b0e8=_0x5a3f1c['is']('range')?_0x28acae:_0x28acae['map'](_0x1e53c6=>qt(_0x1e53c6,this['_model']));if('never'===this['_trackFormatChanges']){const _0xd3ee=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6cdbdc,'accept');return this['forceDefaultExecution'](()=>_0xd3ee(_0x25b0e8,_0xfa87c,_0x3acbed)),null;}_0x140711['push'](..._0x25b0e8);let _0x396950=!0x0;for(const _0x3c37b0 of _0x140711)if(!this['_rangeIsInLocalUserInsertion'](_0x3c37b0)){_0x396950=!0x1;break;}if(_0x396950&&'always'!==this['_trackFormatChanges']){const _0x42f7d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6cdbdc,'accept');return this['forceDefaultExecution'](()=>_0x42f7d0(_0x25b0e8,_0xfa87c,_0x3acbed)),null;}const _0x166e42=this['editor']['plugins']['get']('Users')['me'];for(const _0xc6c178 of this['getSuggestions']()){if(_0xc6c178['author']['id']!=_0x166e42['id'])continue;if('formatBlock'!=_0xc6c178['type']||_0xc6c178['data']['formatGroupId']!=_0xfa87c['formatGroupId'])continue;if(!Qt(_0xc6c178,_0x3acbed))continue;const _0xd76342=_0xc6c178['subType']==_0x6cdbdc;for(let _0x2c65b7=0x0;_0x2c65b7<_0x25b0e8['length'];_0x2c65b7++){const _0x52d5cc=_0x25b0e8[_0x2c65b7];for(const _0xa75a0b of _0xc6c178['getMarkers']()){const _0x43afae=_0xa75a0b['getRange']();if(_0x52d5cc['isEqual'](_0x43afae)){_0xd76342?(_0x25b0e8['splice'](_0x2c65b7,0x1),_0x2c65b7--):_0xc6c178['removeMarker'](_0xa75a0b['name']);break;}}}}if(0x0==_0x25b0e8['length'])return null;const _0xb8b78a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6cdbdc,'join');for(const _0x22c187 of this['getSuggestions']())if(_0x22c187['author']['id']==_0x166e42['id']&&'formatBlock'==_0x22c187['type']&&_0x22c187['data']['formatGroupId']==_0xfa87c['formatGroupId']&&_0x22c187['subType']==_0x6cdbdc&&Qt(_0x22c187,_0x3acbed)&&(_0xb8b78a(_0x22c187['getRanges'](),_0x25b0e8)||_0xb8b78a(_0x25b0e8,_0x22c187['getRanges']()))){for(const _0x210b3e of _0x25b0e8)_0x22c187['addRange'](_0x210b3e);return _0x22c187;}const _0x221c5c=_0x2b49b6(),_0x5174e2=_0x166e42['id'],_0x251b23='formatBlock:'+_0x6cdbdc,_0x1bd185=this['_setSuggestionData']({'id':_0x221c5c,'type':_0x251b23,'data':_0xfa87c,'createdAt':new Date(),'authorId':_0x5174e2,'attributes':_0x3acbed});for(const _0x1514a3 of _0x25b0e8)this['_addSuggestionMarker'](_0x251b23,_0x221c5c,_0x5174e2,_0x1514a3,o['getMultiRangeId']());return _0x1bd185;}['markDeletion'](_0x1d6dc8,_0x4cf099=null,_0x12e5e4={}){if(_0x1d6dc8['isCollapsed'])return null;const _0x5eb91e=this['editor']['plugins']['get']('Users')['me'],_0x9254d2=new _0x10a155(_0x1d6dc8['start'],_0x1d6dc8['end']);for(const {suggestion:_0x2696c4,meta:_0x3d15cc}of this['_findSuggestions'](_0x9254d2,'insertion'))if(_0x3d15cc['isOwn']&&!_0x3d15cc['isNextTo']){if(_0x2696c4['isMultiRange']){const _0xf5f2b2=_0x2696c4['getRanges']()['filter'](_0x3d2c0=>'$graveyard'!=_0x3d2c0['root']['rootName']);_0xf5f2b2['every'](_0x1f119f=>_0x9254d2['containsRange'](_0x1f119f,!0x0))&&_0x2696c4['discard']();if(_0xf5f2b2['some'](_0x120686=>_0x120686['containsRange'](_0x9254d2,!0x0))){const _0x6c9119=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cf099,'accept');return this['forceDefaultExecution'](()=>_0x6c9119([_0x9254d2],null,_0x12e5e4)),null;}}else{const _0x2aa811=_0x9254d2['getIntersection'](_0x2696c4['getFirstRange']());null!==_0x2aa811&&_0x2696c4['_onDiscard']([_0x2aa811],null,_0x12e5e4);}}if(_0x9254d2['detach'](),_0x9254d2['isCollapsed']||'$graveyard'==_0x9254d2['root']['rootName'])return null;let _0x78bcaf=null,_0x143fbf=_0x9254d2['start'],_0x1eae63=_0x9254d2['end'];const _0x4a6ca6=this['_findSuggestions'](_0x9254d2,'deletion');for(const {suggestion:_0x3fada1,meta:_0x448842}of _0x4a6ca6){const _0x33a1e2=this['_model']['createRange'](_0x143fbf,_0x1eae63);if(_0x448842['isOwn']&&(this['_mergeNestedSuggestions']||!_0x448842['containsRangeInObject']&&!_0x448842['isInsideObject'])){if(_0x3fada1['isMultiRange']){if(!Qt(_0x3fada1,_0x12e5e4))continue;let _0x2043cc=!0x0;for(const _0x1b44c0 of _0x3fada1['getRanges']()){if(_0x1b44c0['containsRange'](_0x33a1e2,!0x0))return _0x3fada1;_0x33a1e2['containsRange'](_0x1b44c0)||(_0x2043cc=!0x1);}_0x2043cc&&_0x3fada1['discard']();}else{const _0x3644f3=_0x3fada1['getFirstRange']();if(_0x3644f3['containsRange'](_0x33a1e2,!0x0))return _0x3fada1;if(!Qt(_0x3fada1,_0x12e5e4)){_0x33a1e2['containsRange'](_0x3644f3)?_0x3fada1['removeMarkers']():_0x3644f3['containsPosition'](_0x143fbf)?_0x143fbf=_0x3644f3['end']:_0x3644f3['containsPosition'](_0x1eae63)&&(_0x1eae63=_0x3644f3['start']);continue;}_0x143fbf=_0x143fbf['isBefore'](_0x3644f3['start'])?_0x143fbf:_0x3644f3['start'],_0x1eae63=_0x1eae63['isAfter'](_0x3644f3['end'])?_0x1eae63:_0x3644f3['end'],_0x12e5e4=Object['assign']({},_0x3fada1['attributes']),_0x78bcaf?_0x3644f3['start']['isBefore'](_0x78bcaf['getFirstRange']()['start'])?(_0x78bcaf['removeMarkers'](),_0x78bcaf=_0x3fada1):_0x3fada1['removeMarkers']():_0x78bcaf=_0x3fada1;}}}if(_0x78bcaf)return this['_setSuggestionRange'](_0x78bcaf,this['_model']['createRange'](_0x143fbf,_0x1eae63)),_0x78bcaf;{const _0x4ede29=_0x2b49b6(),_0x6d03fa=this['_model']['createRange'](_0x143fbf,_0x1eae63),_0x4d167f=_0x5eb91e['id'],_0x54e4ea=_0x4cf099?'deletion:'+_0x4cf099:'deletion',_0x23093f=this['_setSuggestionData']({'id':_0x4ede29,'type':_0x54e4ea,'createdAt':new Date(),'authorId':_0x4d167f,'attributes':_0x12e5e4});return this['_addSuggestionMarker'](_0x54e4ea,_0x4ede29,_0x4d167f,_0x6d03fa),_0x23093f;}}['markMultiRangeDeletion'](_0x297548,_0x3ec64c='multi',_0x7a2121={}){const _0xf679b5=this['editor']['plugins']['get']('Users')['me'],_0x36229d=_0x297548['map'](_0x2fe560=>new _0x10a155(_0x2fe560['start'],_0x2fe560['end'])),_0x366cb5=new Set();for(const {suggestion:_0x2baa35,meta:_0x1cedee}of this['_findSuggestions'](_0x36229d,'insertion'))_0x1cedee['isOwn']&&!_0x1cedee['isNextTo']&&_0x366cb5['add'](_0x2baa35);for(const _0x408e3a of _0x366cb5)if(_0x408e3a['isMultiRange']){const _0x423f64=_0x408e3a['getRanges']();(!_0x408e3a['attributes']||!_0x408e3a['attributes']['skipNestingCheck'])&&(_0x423f64['every'](_0x1e27af=>_0x36229d['some'](_0x4517ee=>_0x4517ee['containsRange'](_0x1e27af,!0x0)))&&_0x408e3a['discard']());if(_0x36229d['every'](_0x16e152=>_0x423f64['some'](_0x1fddca=>_0x1fddca['containsRange'](_0x16e152,!0x0)))){const _0x36bf3d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ec64c,'accept');return this['forceDefaultExecution'](()=>_0x36bf3d(_0x297548,null,_0x7a2121)),null;}}else{const _0xb9cbb=_0x408e3a['getFirstRange']();_0x36229d['some'](_0x16c68c=>_0x16c68c['containsRange'](_0xb9cbb,!0x0))&&_0x408e3a['discard']();if(_0x36229d['every'](_0x2fe455=>_0xb9cbb['containsRange'](_0x2fe455,!0x0))){const _0x415e52=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ec64c,'accept');return this['forceDefaultExecution'](()=>_0x415e52(_0x36229d,null,_0x7a2121)),null;}}const _0x1f20d8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ec64c,'join');let _0x166add=null;for(const _0x4a75dd of this['getSuggestions']())if(_0x4a75dd['author']['id']==_0xf679b5['id']&&_0x4a75dd['isInContent']&&'deletion'==_0x4a75dd['type']&&_0x4a75dd['subType']==_0x3ec64c&&Qt(_0x4a75dd,_0x7a2121)&&(_0x1f20d8(_0x4a75dd['getRanges'](),_0x36229d)||_0x1f20d8(_0x36229d,_0x4a75dd['getRanges']()))){if(_0x166add){if(_0x4a75dd['commentThread']&&_0x4a75dd['commentThread']['length'])continue;for(const _0x2464ff of _0x4a75dd['getRanges']())_0x166add['isIntersectingWithRange'](_0x2464ff)||_0x166add['addRange'](_0x2464ff);_0x4a75dd['removeMarkers']();}else{_0x166add=_0x4a75dd;for(const _0x53961b of _0x36229d)_0x4a75dd['isIntersectingWithRange'](_0x53961b)||_0x4a75dd['addRange'](_0x53961b);}}if(_0x166add)return _0x166add;_0x366cb5['clear']();for(const {suggestion:_0x4c762f,meta:_0x50f82a}of this['_findSuggestions'](_0x36229d,'deletion'))_0x50f82a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x50f82a['containsRangeInObject']&&!_0x50f82a['isInsideObject'])&&Qt(_0x4c762f,_0x7a2121)&&_0x366cb5['add'](_0x4c762f);for(const _0x7fc48b of _0x366cb5){const _0x1bc7de=_0x7fc48b['getRanges']();if(!_0x7a2121||!_0x7a2121['skipNestingCheck']){if(_0x36229d['every'](_0x49d5c2=>_0x1bc7de['some'](_0x1999ba=>_0x1999ba['containsRange'](_0x49d5c2,!0x0))))return _0x7fc48b;}(!_0x7fc48b['attributes']||!_0x7fc48b['attributes']['skipNestingCheck'])&&(_0x1bc7de['every'](_0xcb1dd7=>_0x36229d['some'](_0x18d12a=>_0x18d12a['containsRange'](_0xcb1dd7,!0x0)))&&_0x7fc48b['discard']());}const _0x24bad4=_0x2b49b6(),_0x309c0c=_0xf679b5['id'],_0x3ca637='deletion:'+_0x3ec64c,_0x5aa2c9=this['_setSuggestionData']({'id':_0x24bad4,'type':_0x3ca637,'createdAt':new Date(),'authorId':_0x309c0c,'attributes':_0x7a2121});for(const _0x4b9683 of _0x36229d)_0x4b9683['detach'](),_0x4b9683['isCollapsed']||'$graveyard'==_0x4b9683['root']['rootName']||this['_addSuggestionMarker'](_0x3ca637,_0x24bad4,_0x309c0c,_0x4b9683,o['getMultiRangeId']());return _0x5aa2c9;}['markAttributeChange'](_0x2932f8,_0x3588f2,_0x1419bc,_0x5acf4b,_0x95b262){if(_0x2932f8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x43700b=this['editor']['plugins']['get']('Users')['me']['id'],_0x1144c8=Array['from'](this['_suggestions']['values']())['filter'](_0xd2d09a=>'attribute'==_0xd2d09a['type']&&_0xd2d09a['data']['key']==_0x3588f2&&_0xd2d09a['isIntersectingWithRange'](_0x2932f8));if('default'===this['_trackFormatChanges']){const _0x5d0a5e=this['_findSuggestions'](_0x2932f8,'insertion')['filter'](({meta:_0x511869})=>_0x511869['isOwn']&&!_0x511869['isInsideObject']&&!_0x511869['isNextTo'])['map'](({suggestion:_0x51afc2})=>_0x51afc2);_0x1144c8['unshift'](..._0x5d0a5e);}const _0x95931b=new Map([[_0x2932f8,_0x1419bc]]);for(const _0x33d61e of _0x1144c8){const _0x59b96c='attribute'==_0x33d61e['type']?_0x33d61e['data']['oldValue']:void 0x0,_0x1c24d0=_0x33d61e['getFirstRange'](),_0x1b0894=Array['from'](_0x95931b['keys']())['find'](_0x2a6c5c=>_0x2a6c5c['isIntersecting'](_0x1c24d0));if(!_0x1b0894)continue;const _0x2421f8=_0x1b0894['getDifference'](_0x1c24d0);this['_isBlockAttribute'](_0x3588f2)&&'insertion'==_0x33d61e['type']&&0x0!=_0x2421f8['length']||(_0x95931b['delete'](_0x1b0894),_0x2421f8['forEach'](_0x4666d1=>{_0x95931b['set'](_0x4666d1,_0x1419bc);}),'insertion'!=_0x33d61e['type']&&_0x59b96c!=_0x5acf4b&&_0x95931b['set'](_0x1b0894['getIntersection'](_0x1c24d0),_0x59b96c));}const _0x44c0a7=[];for(const [_0xdb0321,_0x40a5d4]of _0x95931b){const _0x50efdf=_0x2b49b6(),_0x656eea={'key':_0x3588f2,'oldValue':_0x40a5d4,'newValue':_0x5acf4b};_0x3588f2['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x3588f2});const _0x4a4579=('attribute:'+(_0x3588f2+'|'+Jt({'newValue':_0x5acf4b})))['substring'](0x0,0x3c),_0x427511=this['_setSuggestionData']({'id':_0x50efdf,'type':_0x4a4579,'data':_0x656eea,'createdAt':new Date(),'authorId':_0x43700b,'attributes':_0x95b262});_0x44c0a7['push'](_0x427511),this['_addSuggestionMarker'](_0x4a4579,_0x50efdf,_0x43700b,_0xdb0321);}return _0x44c0a7;}['enableDefaultAttributesIntegration'](_0x3238a9){this['enableCommand'](_0x3238a9,(_0x45c7cb,..._0x2641f3)=>{this['_recordAttributeChanges'](()=>{_0x45c7cb(..._0x2641f3);});});}['registerBlockAttribute'](_0x250810){this['_blockAttributeKeys']['add'](_0x250810);}['registerInlineAttribute'](_0x3851e8){this['_inlineAttributeKeys']['add'](_0x3851e8);}['_getAttributeKey'](_0x4ebe89){return'attribute'==_0x4ebe89['type']?_0x4ebe89['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5d35b3,_0xe044c7){const _0x3169e2=_0x5d35b3['getFirstMarker']();this['_model']['change'](_0x5872b5=>{_0x5872b5['updateMarker'](_0x3169e2,{'range':_0xe044c7});});}['_addThreadToSuggestion'](_0x4c0e74){const _0x4e8ba3=_0x4c0e74['id'],_0x5c77ce=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4e8ba3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5c77ce,'threadId':_0x4e8ba3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1bf2b3=this['_commentsRepository']['getCommentThread'](_0x4e8ba3);_0x1bf2b3['unbind']('isRemovable'),_0x1bf2b3['isRemovable']=!0x1,_0x4c0e74['commentThread']=_0x1bf2b3;}['_checkSuggestionCorrectness'](_0x632f82,_0x91a209,_0xc5e8cb,_0x46fcf9){if(_0x632f82['type']!=_0x91a209||_0x632f82['subType']!=_0xc5e8cb||_0x632f82['creator']['id']!=_0x46fcf9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x52489f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x321fb7,_0x14665d){const _0x886666=_0x321fb7['getFirstRange']();if(_0x14665d['isEqual'](_0x886666))_0x321fb7['removeMarkers']();else{if(_0x886666['containsRange'](_0x14665d)){const _0x3d4c3b=this['_model']['createPositionAt'](_0x14665d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x321fb7,this['_model']['createRange'](_0x886666['start'],_0x3d4c3b));const _0x2f67a2=_0x2b49b6(),_0x7790ea=_0x321fb7['creator']['id'],_0x150e0=_0x321fb7['type']+':'+_0x321fb7['subType'];this['_setSuggestionData']({'id':_0x2f67a2,'type':_0x150e0,'createdAt':new Date(),'authorId':_0x7790ea,'data':_0x321fb7['data'],'attributes':_0x321fb7['attributes']});const _0x810754=this['_model']['createPositionAt'](_0x14665d['end']['parent'],'after'),_0xb40f69=this['_model']['createRange'](_0x810754,_0x886666['end']);this['_addSuggestionMarker'](_0x150e0,_0x2f67a2,_0x7790ea,_0xb40f69);}else{if(_0x886666['containsPosition'](_0x14665d['start'])){const _0x3d1bab=this['_model']['createPositionAt'](_0x14665d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x321fb7,this['_model']['createRange'](_0x886666['start'],_0x3d1bab));}else{const _0x574713=this['_model']['createPositionAt'](_0x14665d['end']['parent'],'after');this['_setSuggestionRange'](_0x321fb7,this['_model']['createRange'](_0x574713,_0x886666['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xda85f6){for(const {suggestion:_0x4f6112,meta:_0x41dc36}of this['_findSuggestions'](_0xda85f6,'insertion')){if(!_0x41dc36['isOwn'])continue;const _0x11c195=_0x4f6112['getRanges']();for(const _0x1bdc94 of _0x11c195)if(!_0xda85f6['getDifference'](_0x1bdc94)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1fccab){const _0x30141e=this['editor']['plugins']['get']('Users')['getUser'](_0x1fccab);if(!_0x30141e)throw new _0x52489f('track-changes-user-not-found',this);return _0x30141e;}['_getExternalAuthor'](_0x8204f4){const _0x2fdc21=this['editor']['plugins']['get']('Users'),_0x51cc47=_0x4ed5ba('external:'+_0x8204f4),_0x1f8e87=_0x2fdc21['getUser'](_0x51cc47);return _0x1f8e87||_0x2fdc21['addUser']({'id':_0x51cc47,'name':_0x8204f4});}['_createSuggestion'](_0x448ef1,_0x412780,_0x4ef166,_0x18ed94,_0x71dd4b){const _0x13eda9=this['_getAuthorFromId'](_0x18ed94),_0x5e227a=this['_suggestionFactory']['buildSuggestion'](_0x448ef1,_0x412780,_0x4ef166,_0x13eda9,_0x71dd4b,_0xa5db46=>{this['_updateSuggestionData'](_0x4ef166,{'attributes':_0xa5db46});const _0x2002cd=this['getSuggestion'](_0x4ef166);this['_joinWithAdjacentSuggestions'](new Set([_0x2002cd])),this['_refreshSuggestionsChain'](new Set([_0x2002cd]));});return this['listenTo'](_0x5e227a,'accept',()=>{this['_updateSuggestionData'](_0x4ef166,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5e227a,'discard',()=>{this['_updateSuggestionData'](_0x4ef166,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4ef166,_0x5e227a),this['_suggestionState']['set'](_0x5e227a,'notReady'),_0x5e227a;}['_splitMarkerName'](_0x48a8bc){const _0x2b82e9=_0x48a8bc['split'](':');return{'group':_0x2b82e9[0x0],'type':_0x2b82e9[0x1],'subType':_0x2b82e9['length']>=0x5?_0x2b82e9[0x2]:null,'id':_0x2b82e9['length']<0x5?_0x2b82e9[0x2]:_0x2b82e9[0x3],'authorId':_0x2b82e9['length']<0x5?_0x2b82e9[0x3]:_0x2b82e9[0x4],'markerCount':0x6==_0x2b82e9['length']?_0x2b82e9[0x5]:null};}['_breakSuggestionMarker'](_0x4ef4a9,_0x4334a2,_0x3c209a){const _0x37fefb=_0x4ef4a9['getFirstRange'](),_0x4694b2=_0x37fefb['start'],_0x4071ae=_0x37fefb['end'];this['_setSuggestionRange'](_0x4ef4a9,this['_model']['createRange'](_0x4694b2,_0x4334a2));const _0x47e73f=_0x2b49b6(),_0x28e09c=_0x4ef4a9['creator']['id'],_0x4b3f44=_0x4ef4a9['type']+(_0x4ef4a9['subType']?':'+_0x4ef4a9['subType']:'');this['_setSuggestionData']({'id':_0x47e73f,'type':_0x4b3f44,'createdAt':new Date(),'authorId':_0x28e09c,'originalSuggestionId':_0x4ef4a9['id'],'attributes':_0x4ef4a9['attributes'],'data':_0x4ef4a9['data']});const _0x1e37ba=this['_getAttributeKey'](_0x4ef4a9);('formatBlock'==_0x4ef4a9['type']||_0x1e37ba&&this['_isBlockAttribute'](_0x1e37ba))&&(_0x3c209a=this['_model']['createPositionBefore'](_0x3c209a['parent'])),this['_addSuggestionMarker'](_0x4b3f44,_0x47e73f,_0x28e09c,this['_model']['createRange'](_0x3c209a,_0x4071ae));}['_findSuggestions'](_0x31a68e,_0x5dff32=null){const _0x3baa7b=[],_0x2eceac=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x31a68e)||(_0x31a68e=[_0x31a68e]);for(const _0x487c15 of this['getSuggestions']()){if(!_0x487c15['isInContent'])continue;if(_0x5dff32&&_0x487c15['type']!=_0x5dff32)continue;let _0x12c217=!0x1;for(const _0x2cef43 of _0x487c15['getRanges']()){for(const _0x2ada1c of _0x31a68e){const _0x2a216a=_0x2ada1c['start']['isEqual'](_0x2cef43['end'])||_0x2ada1c['end']['isEqual'](_0x2cef43['start']);if(_0x2a216a||_0x2ada1c['getIntersection'](_0x2cef43)){const _0x424fb2=_0x2ada1c['containsRange'](_0x2cef43)&&Pt(this['_model']['schema'],_0x2cef43['start'],_0x2ada1c),_0x2f9b63=_0x2cef43['containsRange'](_0x2ada1c)&&Pt(this['_model']['schema'],_0x2ada1c['start'],_0x2cef43);_0x3baa7b['push']({'suggestion':_0x487c15,'meta':{'isOwn':_0x2eceac==_0x487c15['author'],'isNextTo':_0x2a216a,'isInsideObject':_0x424fb2,'containsRangeInObject':_0x2f9b63}}),_0x12c217=!0x0;break;}}if(_0x12c217)break;}}return _0x3baa7b;}['_addSuggestionMarker'](_0x172657,_0x5bcdb0,_0x32b45f,_0x4f91ff,_0x5e2925){this['_model']['change'](_0x417866=>{let _0x20f3b6='suggestion:'+_0x172657+':'+_0x5bcdb0+':'+_0x32b45f;_0x5e2925&&(_0x20f3b6=_0x20f3b6+':'+_0x5e2925),_0x417866['addMarker'](_0x20f3b6,{'range':_0x4f91ff,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3eabb4){const _0x50c51c=_0x3eabb4['previous'],_0x40509b=_0x3eabb4['next'];_0x3eabb4['previous']=null,_0x3eabb4['next']=null,null!=_0x50c51c&&_0x50c51c['next']==_0x3eabb4&&(_0x50c51c['next']=_0x40509b),null!=_0x40509b&&_0x40509b['previous']==_0x3eabb4&&(_0x40509b['previous']=_0x50c51c),'ready'==this['_suggestionState']['get'](_0x3eabb4)&&(this['_suggestionState']['set'](_0x3eabb4,'removed'),this['fire']('suggestionUnloaded',_0x3eabb4,_0x50c51c,_0x40509b));}['_setSuggestionData'](_0x5061f2){const _0x568604=_0x5061f2['id'],_0x42753a=this['addSuggestionData'](_0x5061f2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x13dfa7=this['editor']['plugins']['get']('PendingActions'),_0xd9535e=_0x42753a['hasComments'],_0x50e2f1=_0x42753a['subType']?_0x42753a['type']+':'+_0x42753a['subType']:_0x42753a['type'],_0x5ed5b8=this['editor']['locale'],_0x4be951=_0x13dfa7['add'](c(_0x5ed5b8,'PENDING_ACTION_SUGGESTION')),_0x451bdd={'id':_0x568604,'type':_0x50e2f1,'hasComments':_0xd9535e,'data':_0x5061f2['data']||null,'originalSuggestionId':_0x5061f2['originalSuggestionId']||null,'attributes':_0x42753a['attributes']};this['_adapter']['addSuggestion'](_0x451bdd)['then'](_0x5d3975=>{_0x42753a['_saved']=!0x0,_0x13dfa7['remove'](_0x4be951),_0x5d3975&&_0x5d3975['createdAt']&&(this['_suggestions']['get'](_0x568604)['createdAt']=_0x5d3975['createdAt']);})['catch'](_0x4fee7b=>{throw _0x399ba0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x42753a['discard']();}),_0x42753a['stopListening'](),this['_suggestions']['delete'](_0x42753a['id']),this['_suggestionState']['delete'](_0x42753a),_0x4fee7b;});}return _0x42753a;}['_isBlockAttribute'](_0xa70299){return this['_blockAttributeKeys']['has'](_0xa70299);}['_updateSuggestionData'](_0x503a64,_0x23a8ee){const _0x53e275=this['editor']['plugins']['get']('PendingActions'),_0x260f71=this['getSuggestion'](_0x503a64);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x260f71['_saved']){const _0x442e5b=_0x53e275['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x503a64,_0x23a8ee)['then'](()=>{_0x53e275['remove'](_0x442e5b);});}else _0x260f71['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x503a64,_0x23a8ee);});}}['_getSuggestionData'](_0x491f23){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x52489f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x491f23);}['_handleNewSuggestionMarker'](_0x55d10f){const {id:_0x3f14a8,type:_0x581459,subType:_0x26ef93,authorId:_0x1619ae}=this['_splitMarkerName'](_0x55d10f),_0x293343=this['_suggestions']['get'](_0x3f14a8)||this['_createSuggestion'](_0x581459,_0x26ef93,_0x3f14a8,_0x1619ae,{});switch(this['_checkSuggestionCorrectness'](_0x293343,_0x581459,_0x26ef93,_0x1619ae),this['_suggestionState']['get'](_0x293343)){case'notReady':this['_getSuggestionData'](_0x3f14a8)['then'](_0x4fd05e=>{let _0x405d4e=Promise['resolve']();_0x4fd05e['hasComments']&&(_0x405d4e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3f14a8})),_0x405d4e['then'](()=>{this['addSuggestionData'](_0x4fd05e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x293343,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3f14a8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x293343,'ready'),this['fire']('suggestionLoaded',_0x293343);break;case'ready':this['fire']('suggestionChanged',_0x293343);}return _0x293343['addMarkerName'](_0x55d10f),_0x293343;}['_refreshSuggestionsChain'](_0x19bc46){const _0x5248c7=Array['from'](_0x19bc46),_0x429bf5=_0x5248c7['filter'](_0x1a5600=>'attribute'==_0x1a5600['type']);this['_refreshAttributeSuggestionsChain'](_0x429bf5);const _0x54f9a8=_0x5248c7['filter'](_0x489cab=>!_0x489cab['isMultiRange']&&'attribute'!=_0x489cab['type']),_0x346a9e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ab5f7=>!_0x3ab5f7['isMultiRange']&&'attribute'!=_0x3ab5f7['type']),_0x182263=_0x346a9e['filter'](_0xaf7792=>!_0x19bc46['has'](_0xaf7792)),_0x43dc19=new Map(_0x346a9e['map'](_0x2afe67=>[_0x2afe67,this['_suggestionFactory']['getSuggestionCallback'](_0x2afe67['type'],_0x2afe67['subType'],'chain')])),_0x2b682c=new Map(_0x346a9e['map'](_0x18a0f6=>[_0x18a0f6,_0x18a0f6['getFirstRange']()])),_0x156aab=new Set(),_0x24d8c1=new Set();for(let _0x57ad22=0x0;_0x57ad22<_0x54f9a8['length'];_0x57ad22++)_0x4ef27d(_0x54f9a8[_0x57ad22],_0x54f9a8,_0x57ad22+0x1);for(let _0x4257dc=0x0;_0x4257dc<_0x54f9a8['length'];_0x4257dc++)_0x4ef27d(_0x54f9a8[_0x4257dc],_0x182263,0x0);const _0x178e2e=new Set();for(let _0x3cf43f=0x0;_0x3cf43f<_0x54f9a8['length'];_0x3cf43f++){const _0x536940=_0x54f9a8[_0x3cf43f];!_0x24d8c1['has'](_0x536940)&&_0x536940['previous']&&(_0x178e2e['add'](_0x536940['previous']),_0x536940['previous']['next']===_0x536940&&(_0x536940['previous']['next']=null),_0x536940['previous']=null),!_0x156aab['has'](_0x536940)&&_0x536940['next']&&(_0x178e2e['add'](_0x536940['next']),_0x536940['next']['previous']===_0x536940&&(_0x536940['next']['previous']=null),_0x536940['next']=null);}function _0x4ef27d(_0x56c80d,_0x119788,_0x27fc72){for(let _0xf3fbb=_0x27fc72;_0xf3fbb<_0x119788['length'];_0xf3fbb++){const _0x3482d4=_0x2cb3c8(_0x56c80d,_0x119788[_0xf3fbb]);_0x3482d4&&(_0x3482d4[0x0]['next']=_0x3482d4[0x1],_0x3482d4[0x1]['previous']=_0x3482d4[0x0],_0x156aab['add'](_0x3482d4[0x0]),_0x24d8c1['add'](_0x3482d4[0x1]));}}function _0x2cb3c8(_0x3a2d23,_0x1f68ed){if(_0x3a2d23['author']['id']!==_0x1f68ed['author']['id'])return null;const _0x5de6bb=_0x43dc19['get'](_0x3a2d23)(_0x3a2d23,_0x1f68ed,_0x2b682c['get'](_0x3a2d23),_0x2b682c['get'](_0x1f68ed));if(!_0x5de6bb)return null;return _0x43dc19['get'](_0x1f68ed)(_0x3a2d23,_0x1f68ed,_0x2b682c['get'](_0x3a2d23),_0x2b682c['get'](_0x1f68ed))?_0x5de6bb[0x1]['commentThread']&&_0x5de6bb[0x1]['commentThread']['length']?null:_0x5de6bb:null;}_0x178e2e['size']&&this['_refreshSuggestionsChain'](_0x178e2e);}['_refreshAttributeSuggestionsChain'](_0x551ef2){if(0x0==_0x551ef2['length'])return;const _0x2bb0ce=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x112fc2=>'attribute'==_0x112fc2['type']&&_0x112fc2['_isDataLoaded']),_0x4df15d=[],_0x4274f5=new Map();for(const _0x24fffd of _0x2bb0ce){const _0xa32e1c=_0x4ed5ba(_0x24fffd['attributes']);_0x4274f5['has'](_0xa32e1c)||(_0x4274f5['set'](_0xa32e1c,_0x4df15d['length']),_0x4df15d['push']([]));const _0x28e0e1=_0x4274f5['get'](_0xa32e1c);_0x4df15d[_0x28e0e1]['push'](_0x24fffd);}!(function(){_0x4df15d['sort']((_0x306010,_0x2abc6e)=>{const _0x4af267=_0x306010[0x0]['createdAt'],_0x3ea7e6=_0x2abc6e[0x0]['createdAt'];return _0x4af267==_0x3ea7e6?_0x306010[0x0]['attributes']['groupId']<_0x2abc6e[0x0]['attributes']['groupId']?-0x1:0x1:_0x4af267<_0x3ea7e6?-0x1:0x1;});for(const _0x2f622c of _0x4df15d)_0x2f622c['sort']((_0x4d1fe8,_0x410ed8)=>_0x4d1fe8['id']<_0x410ed8['id']?-0x1:0x1);}());for(let _0x47833f=0x0;_0x47833f<_0x4df15d['length'];_0x47833f++){if(0x0==_0x4df15d[_0x47833f]['length'])continue;const _0x43fe93=[];for(let _0x411956=_0x47833f+0x1;_0x411956<_0x4df15d['length'];_0x411956++)0x0!=_0x4df15d[_0x411956]['length']&&_0x2a5472(_0x4df15d[_0x47833f],_0x4df15d[_0x411956])&&_0x43fe93['push'](_0x411956);for(const _0x3e4b6d of _0x43fe93)_0x4df15d[_0x47833f]=_0x4df15d[_0x47833f]['concat'](_0x4df15d[_0x3e4b6d]),_0x4df15d[_0x3e4b6d]=[];}for(const _0x57377c of _0x4df15d)for(let _0x424722=0x0;_0x424722<_0x57377c['length'];_0x424722++){const _0x22c188=_0x57377c[_0x424722+0x1]||null;_0x57377c[_0x424722]['next']!==_0x22c188&&(_0x57377c[_0x424722]['next']=_0x22c188);}for(const _0x21d7a5 of _0x4df15d)for(let _0x392826=0x0;_0x392826<_0x21d7a5['length'];_0x392826++){const _0x4dd845=_0x21d7a5[_0x392826-0x1]||null;_0x21d7a5[_0x392826]['previous']!==_0x4dd845&&(_0x21d7a5[_0x392826]['previous']=_0x4dd845);}function _0x2a5472(_0x14e83f,_0x2ef479){if(_0x14e83f[0x0]['attributes']['groupId']!==_0x2ef479[0x0]['attributes']['groupId']&&_0x14e83f[0x0]['author']!==_0x2ef479[0x0]['author'])return!0x1;if(!function(_0x1fbb22,_0x25b209){if(!_0x1fbb22['hasComments']&&!_0x25b209['hasComments'])return!0x0;if(_0x1fbb22['hasComments']&&_0x25b209['hasComments'])return!0x1;if(_0x1fbb22['hasComments']&&_0x25b209['createdAt']<_0x1fbb22['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x25b209['hasComments']&&_0x1fbb22['createdAt']<_0x25b209['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x14e83f[0x0],_0x2ef479[0x0]))return!0x1;const _0x12d126=Vt(_0x14e83f[0x0]['attributes'],'groupId'),_0x5a6e30=Vt(_0x2ef479[0x0]['attributes'],'groupId');if(!_0x403583(_0x12d126,_0x5a6e30))return!0x1;return!!_0x14e83f['every'](_0x4cf6eb=>_0x2ef479['some'](_0x1177b4=>_0x4cf6eb['getFirstRange']()['isEqual'](_0x1177b4['getFirstRange']())))&&_0x2ef479['every'](_0x2c0064=>_0x14e83f['some'](_0x137c82=>_0x2c0064['getFirstRange']()['isEqual'](_0x137c82['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x446c1e){const _0x2899fb=Array['from'](_0x446c1e),_0x2670fe=this['getSuggestions']({'skipNotAttached':!0x0}),_0x86d8ab=_0x2670fe['filter'](_0x44d837=>!_0x446c1e['has'](_0x44d837)),_0x3ecc01=new Map(_0x2899fb['map'](_0x37c92f=>[_0x37c92f,this['_suggestionFactory']['getSuggestionCallback'](_0x37c92f['type'],_0x37c92f['subType'],'join')])),_0x505f0f=new Map(_0x2670fe['map'](_0x43268c=>[_0x43268c,_0x43268c['getRanges']()]));for(let _0x280e53=0x0;_0x280e53<_0x2899fb['length'];_0x280e53++){if(_0x13a66a(this,_0x2899fb[_0x280e53],_0x2899fb,_0x280e53+0x1))return!0x0;}for(let _0x5f5bbc=0x0;_0x5f5bbc<_0x2899fb['length'];_0x5f5bbc++){if(_0x13a66a(this,_0x2899fb[_0x5f5bbc],_0x86d8ab,0x0))return!0x0;}return!0x1;function _0x13a66a(_0x58a90f,_0x35e2aa,_0x377df6,_0x2cfe7d){for(let _0x1a5053=_0x2cfe7d;_0x1a5053<_0x377df6['length'];_0x1a5053++){const _0xfa33d5=_0x377df6[_0x1a5053];if(_0xfa33d5['type']!==_0x35e2aa['type']||_0xfa33d5['author']['id']!==_0x35e2aa['author']['id']||_0xfa33d5['subType']!==_0x35e2aa['subType'])continue;if(!Wt(_0x35e2aa,_0xfa33d5))continue;if('attribute'==_0x35e2aa['type']&&_0x35e2aa['data']['oldValue']!=_0xfa33d5['data']['oldValue'])continue;if('attribute'==_0x35e2aa['type']&&_0x58a90f['_isBlockAttribute'](_0x35e2aa['data']['key']))continue;if('formatBlock'==_0x35e2aa['type']){const _0x1d6327=_0x58a90f['editor']['model'],_0x58865e=_0x35e2aa['getContainedElement']();if(_0x58865e&&(_0x1d6327['schema']['isObject'](_0x58865e)||_0x1d6327['schema']['isLimit'](_0x58865e)))continue;}const _0x3015dd=_0x3ecc01['get'](_0x35e2aa),_0x2361ad=_0x505f0f['get'](_0x35e2aa),_0x1b7cce=_0x505f0f['get'](_0xfa33d5),_0x119b04=_0x35e2aa['commentThread']&&_0x35e2aa['commentThread']['length'],_0x5567e3=_0xfa33d5['commentThread']&&_0xfa33d5['commentThread']['length'];if(!_0x119b04&&_0x3015dd(_0x1b7cce,_0x2361ad))return _0x58a90f['_joinSuggestions'](_0xfa33d5,_0x35e2aa),_0x505f0f['delete'](_0x35e2aa),!0x0;if(!_0x5567e3&&_0x3015dd(_0x2361ad,_0x1b7cce))return _0x58a90f['_joinSuggestions'](_0x35e2aa,_0xfa33d5),_0x505f0f['delete'](_0xfa33d5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1fcc83,_0x3642fe){if(_0x1fcc83['isMultiRange']){for(const _0x5a66ca of _0x3642fe['getRanges']())_0x1fcc83['addRange'](_0x5a66ca);}else{const _0x4d0dbe=_0x3642fe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1fcc83,this['_model']['createRange'](_0x1fcc83['getFirstRange']()['start'],_0x4d0dbe));}_0x3642fe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1b4d71,_0x457685,_0x519ad0){const _0x26656f=_0x1b4d71['startsWith']('format')||_0x1b4d71['startsWith']('attribute')?'FORMATTING':_0x1b4d71['toUpperCase']();return c(this['editor']['locale'],_0x457685+'_'+_0x26656f+'_SUGGESTION_ANNOUNCEMENT',_0x519ad0);}['_initAriaMarkerChangeAnnouncements'](){const _0x3aaa23=this['editor'];if(!_0x3aaa23['ui'])return;const {ariaLiveAnnouncer:_0x54ddf1}=_0x3aaa23['ui'];_0x28ac5c(this['_model'],({left:_0x551d4f,entered:_0x213ddf})=>{for(const _0x4f061b of _0x551d4f){const {group:_0x4bcb75,type:_0x464a85}=this['_splitMarkerName'](_0x4f061b['name']);if('suggestion'===_0x4bcb75){_0x54ddf1['announce'](this['_getMarkerAnnouncementText'](_0x464a85,'LEAVE'));break;}}for(const _0x3ae327 of _0x213ddf){const {group:_0x154577,type:_0x2c71e}=this['_splitMarkerName'](_0x3ae327['name']);if('suggestion'===_0x154577){_0x54ddf1['announce'](this['_getMarkerAnnouncementText'](_0x2c71e,'ENTER',_0x490251(_0x379c3a)));break;}}});}['_processAttributeChanges'](_0x4a4f3b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x25285a=this['editor'],_0x3faf00=_0x25285a['model']['document']['differ']['getChanges']();if(0x0==_0x3faf00['length'])return!0x1;const _0x2f6f7c=[],_0x2d17b5=_0x3faf00['filter'](_0x4639c0=>'attribute'==_0x4639c0['type']),_0x50c8b8=_0x3faf00['filter'](_0xa070dc=>'insert'==_0xa070dc['type']&&'$text'!=_0xa070dc['name']),_0x4066e0=_0x3faf00['filter'](_0x3e55df=>'remove'==_0x3e55df['type']&&'$text'!=_0x3e55df['name']);for(const _0x146e77 of _0x2d17b5)_0x2f6f7c['push']({'key':_0x146e77['attributeKey'],'newValue':_0x146e77['attributeNewValue'],'oldValue':_0x146e77['attributeOldValue'],'range':Ht(_0x146e77['range'],_0x25285a['model'])});for(const _0xf51f7b of _0x50c8b8){const _0x19f5eb=_0x4066e0['find'](_0x1c7b2a=>_0x1c7b2a['position']['isEqual'](_0xf51f7b['position']));_0x19f5eb&&_0x2f6f7c['push']({'key':u,'newValue':_0xf51f7b['name'],'oldValue':_0x19f5eb['name'],'range':_0x25285a['model']['createRangeOn'](_0xf51f7b['position']['nodeAfter'])});}return 0x0!=_0x2f6f7c['length']&&this['_reduceExistingSuggestions'](_0x4a4f3b,_0x2f6f7c);}['_processAttributeSuggestions'](_0x254fed){let _0x5ba09b=!0x1;const _0x137ec0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x220613=>_0x220613['data']['newRange']&&_0x220613['name']['startsWith']('suggestion:attribute:'));for(const _0x2b895e of _0x137ec0){const {subType:_0x28257e,id:_0x3e492a}=this['_splitMarkerName'](_0x2b895e['name']),_0x4abd86=_0x28257e['split']('|')[0x0];for(const _0x241518 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x241518['id']!=_0x3e492a&&'attribute'==_0x241518['type']&&_0x241518['data']&&_0x241518['data']['key']==_0x4abd86&&_0x241518['getFirstRange']()['isIntersecting'](_0x2b895e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x241518,_0x2b895e['data']['newRange'],_0x254fed),_0x5ba09b=!0x0);}return _0x5ba09b;}['_recordAttributeChanges'](_0x592fc1){this['_recordAttributeSuggestions']=!0x0,_0x592fc1();}['_isRegisteredAttribute'](_0x2214f3){const _0x5def96=this['_isBlockAttribute'](_0x2214f3),_0x18b1f9=this['_inlineAttributeKeys']['has'](_0x2214f3);return _0x5def96||_0x18b1f9;}['_reduceExistingSuggestions'](_0x664522,_0x2c0a47){if(0x0==_0x2c0a47['length'])return!0x1;let _0x39ec3a=!0x1;for(const _0x227c9f of _0x2c0a47){const _0x37b777=this['_findSuggestions'](_0x227c9f['range'],'attribute')['filter'](_0x1703b6=>!_0x1703b6['meta']['isNextTo'])['map'](_0xc5ffd=>_0xc5ffd['suggestion']),_0x52ae49=_0x4ed5ba({'newValue':_0x227c9f['newValue']});_0x37b777['filter'](_0x5d5ae=>{const [_0x458d51,_0x2e3fde]=_0x5d5ae['subType']['split']('|');return _0x458d51==_0x227c9f['key']&&_0x2e3fde!=_0x52ae49;})['forEach'](_0x1ee53a=>{this['_reduceSuggestionAttributeRange'](_0x1ee53a,_0x227c9f['range'],_0x664522),_0x39ec3a=!0x0;});}return _0x39ec3a;}['_reduceSuggestionAttributeRange'](_0x104aeb,_0x3673a5,_0x226ef3){const _0x2655ab=_0x104aeb['getFirstRange']()['getDifference'](_0x3673a5);0x0!==_0x2655ab['length']?0x1!==_0x2655ab['length']?this['_breakSuggestionMarker'](_0x104aeb,_0x3673a5['start'],_0x3673a5['end']):this['_setSuggestionRange'](_0x104aeb,_0x2655ab[0x0]):_0x226ef3['removeMarker'](_0x104aeb['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xeccbeb){this['_editor']=_0xeccbeb,this['_model']=_0xeccbeb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x447432,_0x4f8aee,_0x25e0db,_0x27a614,_0x546b5d,_0x2f5092){return new o(this['_model'],{'type':_0x447432,'subType':_0x4f8aee,'id':_0x25e0db,'author':_0x27a614,'creator':_0x27a614,'attributes':_0x546b5d,'onAttributesChange':_0x2f5092,'onAccept':(..._0x5dcdd0)=>this['getSuggestionCallback'](_0x447432,_0x4f8aee,'accept')(..._0x5dcdd0),'onDiscard':(..._0x4a846f)=>this['getSuggestionCallback'](_0x447432,_0x4f8aee,'discard')(..._0x4a846f)});}['registerCustomCallback'](_0x1de951,_0x5344f1,_0x54e166,_0x438d22){const _0x1b7e39=_0x1de951+':'+_0x5344f1+':'+_0x54e166;this['_customCallbacks']['set'](_0x1b7e39,_0x438d22);}['getSuggestionCallback'](_0xabd862,_0x1b3718,_0x27a7af){const _0x555f32=_0xabd862+':'+_0x1b3718+':'+_0x27a7af;return this['_customCallbacks']['get'](_0x555f32)||this['_defaultCallbacks']['get'](_0xabd862+':'+_0x27a7af);}['_registerDefaultCallbacks'](){const _0x126588=()=>!0x1,_0x44be2f=_0x2dfd89=>{_0x2dfd89['sort']((_0x581ef7,_0x12dad1)=>_0x581ef7['start']['isBefore'](_0x12dad1['start'])?0x1:-0x1),this['_model']['change'](_0x5c5cbc=>{for(const _0x5e7273 of _0x2dfd89){let _0x2299ef;_0x2299ef=_0x5e7273['end']['isAtEnd']&&_0x5e7273['end']['parent']==_0x5e7273['start']['nodeAfter']?_0x5c5cbc['createSelection'](_0x5e7273['start']['nodeAfter'],'on'):_0x5c5cbc['createSelection'](_0x5e7273),this['_model']['deleteContent'](_0x2299ef,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x970676=(_0x321f47,_0x34f687)=>{_0x34f687&&this['_model']['change'](_0x51d090=>{const {commandName:_0x55a49c,commandParams:_0x376b23=[]}=_0x34f687,_0x284e14=_0x321f47['map'](_0xfd0ace=>(Gt(_0xfd0ace)&&(_0xfd0ace=this['_model']['createRange'](_0xfd0ace['end'])),_0xfd0ace))['filter'](_0x11ce66=>'$graveyard'!==_0x11ce66['root']['rootName']);if(_0x284e14['length']<0x1)return;const _0x3a6a66=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x252070=>_0x10a155['fromRange'](_0x252070));_0x51d090['setSelection'](_0x284e14);for(const _0x305ef3 of this['_editor']['commands']['commands']())_0x305ef3['refresh']();_0x376b23['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x55a49c,..._0x376b23);const _0x26be93=_0x3a6a66['filter'](_0x217f14=>'$graveyard'!=_0x217f14['root']['rootName']);_0x26be93['length']>0x0&&_0x51d090['setSelection'](_0x26be93);for(const _0x34872c of _0x3a6a66)_0x34872c['detach']();});},_0x304cf8=(_0x3fb963,_0x45028f)=>0x1==_0x3fb963['length']&&0x1==_0x45028f['length']&&_0x3fb963[0x0]['end']['isEqual'](_0x45028f[0x0]['start']),_0x452499=(_0x1db006,_0xb1a3f3,_0x5c2522,_0x30baff)=>zt(_0x1db006,_0xb1a3f3,_0x5c2522,_0x30baff)?[_0x1db006,_0xb1a3f3]:zt(_0xb1a3f3,_0x1db006,_0x30baff,_0x5c2522)?[_0xb1a3f3,_0x1db006]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x126588),this['_defaultCallbacks']['set']('insertion:discard',_0x44be2f),this['_defaultCallbacks']['set']('insertion:join',_0x304cf8),this['_defaultCallbacks']['set']('insertion:chain',_0x452499),this['_defaultCallbacks']['set']('deletion:accept',_0x44be2f),this['_defaultCallbacks']['set']('deletion:discard',_0x126588),this['_defaultCallbacks']['set']('deletion:join',_0x304cf8),this['_defaultCallbacks']['set']('deletion:chain',_0x452499),this['_defaultCallbacks']['set']('formatInline:accept',_0x970676),this['_defaultCallbacks']['set']('formatInline:discard',_0x126588),this['_defaultCallbacks']['set']('formatInline:join',_0x304cf8),this['_defaultCallbacks']['set']('formatInline:chain',_0x126588),this['_defaultCallbacks']['set']('formatBlock:accept',_0x970676),this['_defaultCallbacks']['set']('formatBlock:discard',_0x126588),this['_defaultCallbacks']['set']('formatBlock:join',_0x304cf8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x126588),this['_defaultCallbacks']['set']('attribute:accept',_0x126588),this['_defaultCallbacks']['set']('attribute:discard',(_0x1d1ead,_0x19a318)=>{if(!_0x19a318)return;const _0x5aac84=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x49020f=>{if(_0x19a318['key']==u)for(const _0x1b54f4 of _0x1d1ead){const _0x33b5d6=_0x1b54f4['start']['nodeAfter'],_0x5727aa=_0x19a318['oldValue'];_0x49020f['rename'](_0x33b5d6,_0x5727aa);}else{if(_0x5aac84['_isBlockAttribute'](_0x19a318['key'])){for(const _0x26baae of _0x1d1ead)void 0x0!==_0x19a318['oldValue']?_0x49020f['setAttribute'](_0x19a318['key'],_0x19a318['oldValue'],_0x26baae['start']['nodeAfter']):_0x49020f['removeAttribute'](_0x19a318['key'],_0x26baae['start']['nodeAfter']);}else{for(const _0x22b7ec of _0x1d1ead)_0x19a318['oldValue']?_0x49020f['setAttribute'](_0x19a318['key'],_0x19a318['oldValue'],_0x22b7ec):_0x49020f['removeAttribute'](_0x19a318['key'],_0x22b7ec);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x304cf8);}}function Pt(_0x596d16,_0x183e70,_0x25e46b){for(const _0x2f9259 of _0x183e70['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f9259['root']==_0x2f9259)return!0x1;if(!_0x25e46b['containsItem'](_0x2f9259))return!0x1;if(_0x596d16['isObject'](_0x2f9259)||_0x596d16['isLimit'](_0x2f9259))return!0x0;}return!0x1;}function Gt(_0x2c381a){return _0x2c381a['end']['parent']==_0x2c381a['start']['nodeAfter']&&_0x2c381a['end']['isAtStart'];}function Lt(_0x395bfe,_0x41a1c5,_0x32d1c4,_0x2b6697){const _0x1125d2=_0x437b11=>!_0x437b11['item']['is']('$textProxy')&&!_0x2b6697['isObject'](_0x437b11['item']),_0x2af454=_0x395bfe['start']['getLastMatchingPosition'](_0x1125d2),_0x2f02ad=_0x395bfe['end']['getLastMatchingPosition'](_0x1125d2,{'direction':'backward'});return(!_0x395bfe['start']['isEqual'](_0x2af454)||!_0x395bfe['end']['isEqual'](_0x2f02ad))&&(_0x2af454['isBefore'](_0x2f02ad)?_0x32d1c4['updateMarker'](_0x41a1c5,{'range':_0x32d1c4['createRange'](_0x2af454,_0x2f02ad)}):_0x32d1c4['removeMarker'](_0x41a1c5),!0x0);}function Jt(_0x1561b0){return _0x4ed5ba(_0x1561b0);}function Kt(_0x13a070){const _0x32d531=_0x13a070['start']['nodeAfter'];return _0x32d531&&_0x32d531['is']('element');}function Ht(_0x4bbcfa,_0x3d0b87){return null==_0x4bbcfa['end']['nodeBefore']&&_0x4bbcfa['end']['parent']==_0x4bbcfa['start']['nodeAfter']?qt(_0x4bbcfa['start']['nodeAfter'],_0x3d0b87):_0x4bbcfa;}function qt(_0x5ecf4a,_0x5c7731){const _0x140d37=_0x5c7731['schema']['isObject'](_0x5ecf4a)||_0x5c7731['schema']['isSelectable'](_0x5ecf4a);return _0x5c7731['createRange'](_0x5c7731['createPositionAt'](_0x5ecf4a,'before'),_0x140d37?_0x5c7731['createPositionAfter'](_0x5ecf4a):_0x5c7731['createPositionAt'](_0x5ecf4a,'end'));}function zt(_0x4f3ed0,_0xe6d0bb,_0x16afef,_0x33c941){return!!Wt(_0x4f3ed0,_0xe6d0bb)&&_0x16afef['end']['isEqual'](_0x33c941['start']);}function Wt(_0x71c046,_0x33515a){if(!_0x71c046['_isDataLoaded']||!_0x33515a['_isDataLoaded'])return!0x1;const _0x2bd16e=new Set(Object['keys'](_0x71c046['attributes'])),_0xa826=new Set(Object['keys'](_0x33515a['attributes']));if(_0x2bd16e['delete']('groupId'),_0xa826['delete']('groupId'),0x0==_0x2bd16e['size']&&0x0==_0xa826['size'])return!0x0;if(_0x2bd16e['size']!=_0xa826['size'])return!0x1;const _0x16fafe={..._0x71c046['attributes']},_0x1d2599={..._0x33515a['attributes']};return delete _0x16fafe['groupId'],delete _0x1d2599['groupId'],JSON['stringify'](_0x16fafe)==JSON['stringify'](_0x1d2599);}function Qt(_0x43052b,_0xe04cdc){const _0x426e22=Xt(_0x43052b['attributes']),_0x110e08=Xt(_0xe04cdc);if(!_0x43052b['_isDataLoaded'])return!0x1;for(const _0x582249 of Object['keys'](_0x110e08))if(!_0x403583(_0x426e22[_0x582249],_0x110e08[_0x582249]))return!0x1;return!0x0;}function Xt(_0x1a6c89){const _0x5159ef=Object['assign']({},_0x1a6c89);return delete _0x5159ef['skipNestingCheck'],delete _0x5159ef['tablePasteChainId'],_0x5159ef;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x51c58c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x18cf0f,_0x2f88e5,_0x119e4e,_0x18501b){super(),this['model']=_0x2f88e5,this['view']=_0x119e4e,this['commentThreadController']=_0x18501b,this['_editor']=_0x18cf0f,this['_acceptCommand']=_0x18cf0f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x18cf0f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5e7022,_0x3f431a)=>_0x5e7022||_0x3f431a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x155d91=>_0x155d91&&this['_editor']['model']['canEditAt'](_0x2f88e5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2fd8db=>_0x2fd8db&&this['_editor']['model']['canEditAt'](_0x2f88e5['getRanges']())),this['_pendingAction']=null,_0x119e4e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x119e4e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x119e4e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x119e4e,'change:isDirty',()=>{_0x119e4e['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x209f13=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x209f13);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x30d4d1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x13cf0e,_0x1b31b5,_0xf3901a,_0x5bc51d){super(_0x13cf0e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x262fbf(_0x13cf0e,c(_0x13cf0e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1b31b5['authoredAt']),this['bind']('authoredAt')['to'](_0x1b31b5),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x1b31b5,'authoredAt',this,'descriptionParts',(_0x4f996c,_0x314dfa,_0x2f91dc)=>{const _0x4da17e=_0x2f91dc['map'](_0x4913fa=>ls(_0x4913fa['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4f996c-0x1,_0x1b31b5['author']['name'],_0x314dfa?_0x5bc51d['formatDateTime'](_0x314dfa):'',new DOMParser()['parseFromString'](_0x4da17e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4e0298(),this['focusTracker']=new _0x13c5dc(),this['keystrokes']=new _0x36964d(),this['focusCycler']=new _0x110ff0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5627df=>_0x5627df['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1b31b5,this['_localUser']=_0xf3901a,this['_config']=_0x5bc51d,_0x5bc51d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x9e78b0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1e8b99}=this['_config'];this['commentsListView']=new _0x1e8b99(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x39d51b=>_0x39d51b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x27afdc,_0x253e19)=>_0x27afdc||!!_0x253e19);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x587042}=this['_config'],_0x176247=new _0x587042(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c42bb=_0x176247['commentInputView'];return _0x176247['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c42bb,'value',(_0x176a76,_0xe7b49b,_0x56f79e)=>!!_0x56f79e||_0x176a76&&!_0xe7b49b),_0x4c42bb['on']('submit',(_0x2aac2f,_0x1a52bb)=>{this['fire']('addComment',_0x1a52bb),_0x4c42bb['editor']['setData']('');}),_0x4c42bb['on']('cancel',()=>this['focus']()),_0x4c42bb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x176247;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x73e90,_0x2f518a,_0x45cf09,_0x420405){super(_0x73e90,_0x2f518a,_0x45cf09,_0x420405),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x511726=>_0x511726&&_0x511726[0x0]?_0x511726[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4950b6,_0x6a00c1)=>{let _0x3a9d88='';for(const _0x2adcaf of _0x4950b6)_0x3a9d88+='<p>'+ls(_0x2adcaf['content'],_0x2adcaf['color'])+'</p>';return _0x6a00c1?_0x3a9d88:ti(_0x3a9d88,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x420405['SuggestionView'](_0x73e90,_0x2f518a,{'formatDateTime':_0x420405['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4ae27f=this['bindTemplate'],_0x234275=[this['suggestionView']];return this['commentsListView']&&_0x234275['push'](this['commentsListView']),this['commentThreadInputView']&&_0x234275['push'](this['commentThreadInputView']),_0x234275['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4ae27f['if']('isActive','ck-suggestion-wrapper--active'),_0x4ae27f['to']('type',_0x4d420b=>'ck-suggestion-'+_0x4d420b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x4ae27f['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x234275};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x30d4d1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4e8778,_0x24d4d4,_0x37e64d){super(_0x4e8778),this['_model']=_0x24d4d4,this['_config']=_0x37e64d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x24d4d4),this['acceptButton']=this['_createButton'](c(_0x4e8778,'Accept\x20suggestion'),_0x150ec3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4e8778,'Discard\x20suggestion'),_0x13288b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x28b6d7(_0x4e8778,_0x24d4d4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4e0298([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x13c5dc(),this['keystrokes']=new _0x36964d(),this['focusCycler']=new _0x110ff0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4bd689=>_0x4bd689['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x572be1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x572be1['innerHTML']=this['description'],this['on']('change:description',(_0x42372e,_0x51c883,_0x1cdc4c)=>{_0x572be1['innerHTML']=_0x1cdc4c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x50d10f=this['bindTemplate'],_0x1f5aa6=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x50d10f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x50d10f['to']('authoredAt',_0x22fcb0=>this['_config']['formatDateTime'](_0x22fcb0))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x1f5aa6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x1f5aa6}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3f4f3f,_0x9f2142,_0x5babb0,_0xffe2d0,_0x2651fe){const _0x2a1578=new _0x5962f8(this['locale']);return _0x2a1578['set']({'label':_0x3f4f3f,'icon':_0x9f2142,'tooltip':!0x0,'tooltipPosition':_0x2651fe}),_0x2a1578['extendTemplate']({'attributes':{'class':_0x5babb0}}),_0x2a1578['on']('execute',()=>{this['fire'](_0xffe2d0,this['_model']['id']);}),_0x2a1578;}['_setupKeyboardNavigation'](){const _0x100edd=this['element'];this['keystrokes']['listenTo'](_0x100edd);for(const _0x8a794c of this['focusables'])this['focusTracker']['add'](_0x8a794c['element']),this['keystrokes']['listenTo'](_0x8a794c['element']);this['keystrokes']['set']('enter',(_0x3e2a84,_0x517045)=>{_0x100edd===_0x3e2a84['target']&&(this['focusCycler']['focusFirst'](),_0x517045());}),this['keystrokes']['set']('esc',(_0x36f34b,_0x35f746)=>{_0x100edd!==_0x36f34b['target']&&(this['focus'](),_0x35f746());});}}class d extends _0x307cfb{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2ea921,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x29055e){super(_0x29055e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2c1c0b=this['editor']['config'];_0x2c1c0b['define']('trackChanges.SuggestionThreadView',fe),_0x2c1c0b['define']('trackChanges.SuggestionView',we),_0x2c1c0b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2c1c0b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2f7e5b,_0x9e89b9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xc18ac,_0x5054a5]of this['_handleControllerBuffer']){const _0x502fda=this['_suggestionToController']['has'](_0xc18ac);_0x502fda||_0x5054a5?_0x502fda&&_0x5054a5&&this['_destroyController'](_0xc18ac):this['_initializeController'](_0xc18ac);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2f7e5b,_0x9e89b9);}['init'](){const _0x555ad1=this['editor'],_0x169cc0=_0x555ad1['plugins']['get']('TrackChangesEditing'),_0x55898e=_0x555ad1['plugins']['get']('Annotations'),_0x303bda=_0x555ad1['plugins']['get']('EditorAnnotations'),_0x338777=_0x555ad1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x303bda['addSourceCollector'](()=>{const _0x3841bb=[];for(const [_0x543952,_0x203533]of Array['from'](this['_suggestionToController'])){const _0x2e9096=_0x543952['getAllAdjacentSuggestions'](),_0x25547b=[];for(const _0x13293b of _0x2e9096){if(!_0x13293b['isInContent'])continue;if(_0x13293b['isMultiRange']){_0x25547b['push'](..._0x13293b['getRanges']());continue;}const _0x4b50b7=_0x13293b['getFirstRange']();if(_0x25547b['length']>0x0){const _0x3024bd=_0x25547b[0x0]['getJoined'](_0x4b50b7);if(_0x3024bd){_0x25547b[0x0]=_0x3024bd;continue;}}_0x25547b['push'](_0x4b50b7);}_0x3841bb['push']([_0x203533['view'],_0x25547b]);}return _0x3841bb;}),this['listenTo'](_0x169cc0,'suggestionLoaded',(_0x27c8d2,_0x1d77ac)=>{this['listenTo'](_0x1d77ac,'change:previous',(_0x5db90a,_0x5a555e,_0x384a23,_0x542d21)=>{_0x1d77ac['isInContent']&&(null==_0x384a23?(this['_updateController'](_0x542d21['head']),this['_handleSuggestionControllerDelayed'](_0x1d77ac,!0x1)):(this['_updateController'](_0x384a23['head']),null==_0x542d21&&this['_handleSuggestionControllerDelayed'](_0x1d77ac,!0x0)));}),null!==_0x1d77ac['previous']?this['_updateController'](_0x1d77ac['head']):this['_handleSuggestionControllerDelayed'](_0x1d77ac,!0x1);}),this['listenTo'](_0x169cc0,'suggestionUnloaded',(_0x5771a6,_0x2ffca9,_0x34268b)=>{this['stopListening'](_0x2ffca9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2ffca9),this['_suggestionToController']['has'](_0x2ffca9)&&this['_destroyController'](_0x2ffca9),_0x34268b&&this['_updateController'](_0x34268b['head']);}),this['listenTo'](_0x169cc0,'suggestionChanged',(_0x456c28,_0x4d8d62)=>{this['_updateController'](_0x4d8d62);}),this['listenTo'](_0x55898e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x338777,'addComment',(_0x49bea7,{threadId:_0x32ac83,isFromAdapter:_0xfbd459})=>{if(_0xfbd459||!_0x169cc0['hasSuggestion'](_0x32ac83))return;const _0x1bc305=_0x169cc0['getSuggestion'](_0x32ac83);this['_suggestionToController']['get'](_0x1bc305)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3fa671=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22dd3c;for(const _0x23fcb6 in _0x3fa671){const _0x453fc7=_0x23fcb6,_0x522cb5=_0x3fa671[_0x453fc7];if('trackChangesLicenseKeyValid'==_0x522cb5||'trackChangesLicenseKeyInvalid'==_0x522cb5||'trackChangesLicenseKeyExpired'==_0x522cb5||'trackChangesLicenseKeyDomainLimit'==_0x522cb5||'trackChangesLicenseKeyNotAllowed'==_0x522cb5||'trackChangesLicenseKeyEvaluationLimit'==_0x522cb5||'trackChangesLicenseKeyTrialLimit'==_0x522cb5||'trackChangesLicenseKeyUsageLimit'==_0x522cb5){delete _0x3fa671[_0x453fc7],_0x22dd3c=_0x522cb5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x22dd3c&&_0x3fa671['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x22dd3c&&_0x3fa671['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x22dd3c&&_0x3fa671['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x22dd3c&&_0x3fa671['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x22dd3c&&_0x3fa671['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x22dd3c&&_0x3fa671['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x22dd3c&&_0x3fa671['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2458cb=this['editor']['plugins']['get']('Annotations'),_0x1c724d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x217c06=Array['from'](_0x2458cb['activeAnnotations'],_0x36001b=>_0x36001b['innerView'])['filter'](_0x414655=>this['_viewToController']['has'](_0x414655)),_0xfefa7c=[];for(const _0x4e79d6 of _0x217c06){const _0x567a1a=this['_viewToController']['get'](_0x4e79d6)['model']['getAllAdjacentSuggestions']();_0xfefa7c['push'](..._0x567a1a['reduce']((_0x5bbdce,_0x43b049)=>[..._0x5bbdce,..._0x43b049['getMarkerNames']()],[]));}_0x1c724d['activeMarkers']=_0xfefa7c;}['_addUIComponentsToFactory'](){const _0x506d79=this['editor'],_0x2789c=_0x506d79['locale'],_0x5eec96=c(_0x2789c,'Track\x20changes'),_0x1e1224=new _0x5be8f1([{'type':'switchbutton','model':new _0x244af2({'withText':!0x0,'isToggleable':!0x0,'label':_0x5eec96,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x244af2({'withText':!0x0,'label':c(_0x2789c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x244af2({'withText':!0x0,'label':c(_0x2789c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x244af2({'withText':!0x0,'label':c(_0x2789c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x244af2({'withText':!0x0,'label':c(_0x2789c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x506d79['plugins']['has']('TrackChangesPreview')&&_0x1e1224['addMany']([{'type':'separator'},{'type':'button','model':new _0x244af2({'withText':!0x0,'label':c(_0x2789c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x92240c of _0x1e1224)if(ke(_0x92240c)){const _0xfe0bc8=_0x506d79['commands']['get'](_0x92240c['model']['commandName']);_0x92240c['model']['bind']('isOn','isEnabled')['to'](_0xfe0bc8,'value','isEnabled');}_0x506d79['ui']['componentFactory']['add']('trackChanges',_0x2b373c=>this['_createToolbarButton'](_0x2b373c,_0x1e1224,_0x5eec96)),_0x506d79['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1ed666=>this['_createMenuBarMenu'](_0x1ed666,_0x1e1224,_0x5eec96));}['_createToolbarButton'](_0x14ea47,_0x120627,_0x2bc4ec){const _0x330b1f=_0x4ee41f(_0x14ea47,_0x5a0a73),_0x55acde=this['editor']['commands']['get']('trackChanges');_0x330b1f['buttonView']['set']({'tooltip':_0x2bc4ec,'label':_0x2bc4ec,'icon':_0x334860}),_0x330b1f['buttonView']['bind']('isOn')['to'](_0x55acde,'value'),_0x330b1f['buttonView']['on']('execute',()=>{_0x55acde['execute'](),this['editor']['editing']['view']['focus']();}),_0x13d791(_0x330b1f,_0x120627,{'role':'menu'});const _0x19374b=[];for(const _0x38eac4 of _0x120627)ke(_0x38eac4)&&_0x19374b['push'](this['editor']['commands']['get'](_0x38eac4['model']['commandName']));const _0x3f8eb2=_0x330b1f['buttonView'];return _0x3f8eb2['actionView']['unbind']('isEnabled'),_0x3f8eb2['arrowView']['unbind']('isEnabled'),_0x3f8eb2['actionView']['bind']('isEnabled')['to'](_0x55acde,'isEnabled'),_0x3f8eb2['arrowView']['bind']('isEnabled')['toMany'](_0x19374b,'isEnabled',(..._0x55cf2d)=>_0x55cf2d['some'](_0x5db78e=>_0x5db78e)),_0x330b1f['on']('execute',_0x26c076=>{this['editor']['execute'](_0x26c076['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x330b1f;}['_createMenuBarMenu'](_0x4d98cf,_0x318796,_0x55508e){const _0x50c949=new _0x425b5b(_0x4d98cf),_0x15baad=this['editor']['commands']['get']('trackChanges');_0x50c949['buttonView']['set']({'label':_0x55508e,'icon':_0x334860});const _0x2f9715=new _0x337c8d(_0x4d98cf);for(const _0x5b6afe of _0x318796){if('separator'==_0x5b6afe['type']){_0x2f9715['items']['add'](new _0x451473(_0x4d98cf));continue;}const _0x1f762d=new _0x1ee616(_0x4d98cf,_0x50c949),_0x5db116=new _0xb53895(_0x4d98cf),_0x5ab681=_0x5b6afe['model'];_0x5db116['bind'](...Object['keys'](_0x5ab681))['to'](_0x5ab681),_0x5db116['delegate']('execute')['to'](_0x50c949),_0x5db116['on']('execute',()=>{this['editor']['execute'](_0x5ab681['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f762d['children']['add'](_0x5db116),_0x2f9715['items']['add'](_0x1f762d);}return _0x50c949['bind']('isEnabled')['to'](_0x15baad,'isEnabled'),_0x50c949['panelView']['children']['add'](_0x2f9715),_0x50c949;}['_initializeController'](_0x925ca3){const _0x28074f=this['editor'],_0x580462=_0x28074f['config'],_0x49cf1d=_0x28074f['plugins']['get']('Annotations'),_0x41a994=_0x28074f['plugins']['get']('CommentsRepository'),_0x23bdde=_0x28074f['plugins']['get']('EditorAnnotations'),_0x2045da=_0x28074f['plugins']['get'](_0x2ea921)['me'],_0x54c69e=_0x580462['get']('trackChanges')['SuggestionThreadView'],_0x5e9eb5=_0x580462['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xd4126d,CommentThreadInputView:_0x23419e}=_0x28074f['plugins']['get']('CommentsUI');let _0x19122a,_0x4b561d,_0x448579;this['_annotationViews']['has'](_0x925ca3['id'])?(_0x4b561d=this['_annotationViews']['get'](_0x925ca3['id']),_0x19122a=_0x4b561d['mainView']):(_0x19122a=new _0x54c69e(_0x28074f['locale'],_0x925ca3,_0x2045da,{'disableComments':this['_disableComments'],'editorConfig':{..._0x580462['get']('comments.editorConfig'),'licenseKey':_0x580462['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x580462['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x580462['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x580462['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x22b113(_0x580462['get']('locale')),'CommentView':_0x580462['get']('comments')['CommentView'],'CommentsListView':_0xd4126d,'CommentThreadInputView':_0x23419e,'SuggestionView':_0x5e9eb5}),_0x19122a['suggestionView']['acceptButton']['on']('execute',()=>{_0x28074f['editing']['view']['focus']();}),_0x19122a['suggestionView']['discardButton']['on']('execute',()=>{_0x28074f['editing']['view']['focus']();}),_0x4b561d=_0x49cf1d['createAnnotationView'](this['editor']['locale'],_0x19122a),_0x4b561d['bind']('isDirty')['to'](_0x19122a,'isDirty'),_0x4b561d['bind']('length')['to'](_0x19122a),_0x4b561d['bind']('type')['to'](_0x19122a,'type',_0x3492e8=>'suggestion-'+_0x3492e8),_0x19122a['on']('escape',()=>{_0x448579['fire']('escape');}),this['_annotationViews']['set'](_0x925ca3['id'],_0x4b561d));const _0xe93e4b=_0x41a994['createCommentThreadController'](_0x925ca3['commentThread'],_0x19122a),_0x3baee6=new pe(_0x28074f,_0x925ca3,_0x19122a,_0xe93e4b),_0x19808d=_0x925ca3['getAllAdjacentSuggestions']()['filter'](_0x5762cb=>_0x5762cb['isInContent']);_0x19122a['descriptionParts']=_0x28074f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x19808d),this['_suggestionToController']['set'](_0x925ca3,_0x3baee6),this['_viewToController']['set'](_0x19122a,_0x3baee6),_0x448579=_0x49cf1d['createAnnotation']({'view':_0x4b561d,'target':()=>{const _0x95744a=[],_0x502908=_0x925ca3['getAllAdjacentSuggestions']()['filter'](_0x219101=>_0x219101['isInContent']);for(const _0x18e46c of _0x502908)_0x95744a['push'](..._0x18e46c['getMarkers']());return _0x1750b2(_0x28074f['editing'],_0x95744a);},'type':()=>'suggestion-'+_0x3baee6['view']['type']}),_0x41a994['_bindAnnotationToEditors'](_0x19122a,_0x448579),_0x49cf1d['add'](_0x448579),_0x23bdde['registerAnnotation'](_0x448579);}['_destroyController'](_0x1ffd7f){const _0x35bf51=this['editor']['plugins']['get']('CommentsRepository'),_0x2f0554=this['editor']['plugins']['get']('Annotations'),_0x546947=this['_suggestionToController']['get'](_0x1ffd7f),_0x4e9ca2=_0x546947['view'],_0x36fbbe=_0x2f0554['getByInnerView'](_0x4e9ca2);_0x35bf51['_unbindEditors'](_0x4e9ca2),_0x36fbbe&&_0x2f0554['remove'](_0x36fbbe),this['_suggestionToController']['delete'](_0x1ffd7f),this['_viewToController']['delete'](_0x4e9ca2),_0x546947['destroy']();}['_updateController'](_0xc400ba){if(!_0xc400ba['isInContent']||!this['_suggestionToController']['has'](_0xc400ba))return;const _0x3ff5fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20ff3d=this['_suggestionToController']['get'](_0xc400ba),_0x16d3d7=_0xc400ba['getAllAdjacentSuggestions']();_0x20ff3d['view']['descriptionParts']=_0x3ff5fa['descriptionFactory']['getDescriptions'](_0x16d3d7);}['destroy'](){for(const _0x174195 of this['_suggestionToController']['keys']())this['_destroyController'](_0x174195);for(const _0x4b32bb of this['_annotationViews']['values']())_0x4b32bb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1aca90){return'model'in _0x1aca90;}class k extends _0x307cfb{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5934fb){this['editor']['plugins']['get'](p)['adapter']=_0x5934fb;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x48f9d5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x48f9d5);}['getSuggestions']({skipNotAttached:_0xdf1a02=!0x1,toJSON:_0x505a8d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xdf1a02,'toJSON':_0x505a8d});}['getSuggestion'](_0x1b83c7){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1b83c7);}}const w=['Pagination'];class T extends _0x307cfb{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x335341=this['editor'];if(_0x335341['config']['define']('trackChangesData.editorCreator',_0x5f5a98=>{const _0x54aaf7=_0x335341['model']['document']['getRootNames']()['reduce']((_0x32959c,_0x228192)=>(_0x32959c[_0x228192]='',_0x32959c),{});return _0x335341['constructor']['create'](_0x54aaf7,_0x5f5a98);}),'function'!=typeof _0x335341['config']['get']('trackChangesData')['editorCreator'])throw new _0x52489f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5ec0fd){return N(this['editor'],!0x0,_0x5ec0fd);}['getDataWithDiscardedSuggestions'](_0x50b416){return N(this['editor'],!0x1,_0x50b416);}}class D extends _0x307cfb{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45ab52){function _0xc1dd9(_0x2a43d8){return _0x2a43d8['map'](_0x3ae46b=>String['fromCharCode'](_0x3ae46b))['join']('');}super(_0x45ab52),this['result']='end',_0x45ab52[_0xc1dd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc1dd9([0x76,0x69,0x65,0x77])][_0xc1dd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc1dd9([0x61,0x75,0x74,0x6f]),_0x45ab52[_0xc1dd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xc1dd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc1dd9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xc1dd9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xc1dd9([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x1e9e02){return void 0x0!==_0x1e9e02['getRootsAttributes'];}async function N(_0x3b8094,_0x43ac11,_0x4fc993){const _0x4f9b29=_0x19f056(_0x3b8094,w);_0x4f9b29['plugins']['push'](p,D),_0x4f9b29['rootsAttributes']=Fe(_0x3b8094)?_0x3b8094['getRootsAttributes']():void 0x0;const _0x5838ac=document['createDocumentFragment'](),_0x459d69=_0x3b8094['config']['get']('trackChangesData')['editorCreator'],_0xd32fc3=await _0x459d69(_0x4f9b29,()=>function(_0x5453d0){const _0x4bd270=document['createElement']('div');return _0x5453d0['appendChild'](_0x4bd270),_0x4bd270;}(_0x5838ac));!function(_0x2149c9,_0x434d7e){const _0x163b00=_0x2149c9['model']['document']['getRootNames']()['reduce']((_0x46a442,_0x57f029)=>(_0x46a442[_0x57f029]=_0x2149c9['data']['get']({'rootName':_0x57f029}),_0x46a442),{}),_0x15cc20=_0x2149c9['plugins']['get']('Users')['users']['map'](_0xd3ece1=>({'id':_0xd3ece1['id'],'name':_0xd3ece1['name']})),_0x23508d=_0x2149c9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4bc6f5=_0x2149c9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24437a=_0x434d7e['plugins']['get']('Users'),_0x4201ce=_0x434d7e['plugins']['get']('TrackChangesEditing'),_0x186a27=_0x434d7e['plugins']['get']('CommentsRepository');for(const _0xe6640e of _0x186a27['getCommentThreads']())_0xe6640e['remove']();for(const _0x576b3a of _0x15cc20)_0x24437a['getUser'](_0x576b3a['id'])||_0x24437a['addUser'](_0x576b3a);_0x24437a['me']||_0x24437a['useAnonymousUser']();for(const _0x56fdbf of _0x4bc6f5)_0x186a27['addCommentThread'](_0x56fdbf);for(const _0x3f959a of _0x23508d)_0x4201ce['addSuggestionData'](_0x3f959a);_0x434d7e['data']['set'](_0x163b00);}(_0x3b8094,_0xd32fc3),_0xd32fc3['execute'](_0x43ac11?'acceptAllSuggestions':'discardAllSuggestions');const _0xc86cf1=Fe(_0xd32fc3)?_0xd32fc3['getFullData'](_0x4fc993):_0xd32fc3['data']['get'](_0x4fc993);return await _0xd32fc3['destroy'](),_0xc86cf1;}class Me extends _0x30d4d1{['options'];constructor(_0x22306b,_0x2464f6){super(_0x22306b),this['options']=_0x2464f6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x504af8,_0x44bf86){if(!this['element'])return;const _0x393d37=[];for(const [_0x612312,_0x586a99]of _0x504af8){const _0x2f171f=document['createElement']('div');_0x2f171f['setAttribute']('data-ck-root-name',_0x612312),_0x2f171f['className']=_0x586a99['classes']+'\x20ck-track-changes-preview__root-container',_0x2f171f['innerHTML']=_0x586a99['content'],_0x393d37['push'](_0x2f171f);}_0x44bf86(this['element'],_0x393d37),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1ab01a{constructor(_0x3db8c7){super(_0x3db8c7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1c1e4b=this['editor'],_0x240491=_0x1c1e4b['locale'],_0x123cac=_0x1c1e4b['plugins']['get']('Dialog');let _0x187667;const _0x2aa60f=function(_0x326a2e){const _0x5d81de={};if('editables'in _0x326a2e['ui']['view']){for(const [_0x10cf33,_0x1ffe25]of Object['entries'](_0x326a2e['ui']['view']['editables']))_0x5d81de[_0x10cf33]=_0x1ffe25['element'];}else _0x5d81de[_0x326a2e['model']['document']['getRootNames']()[0x0]]=_0x326a2e['ui']['view']['editable']['element'];return _0x5d81de;}(_0x1c1e4b),_0x2b8613=function(_0x53cffc){let _0x207bf3=0x0;for(const _0x58801c of Object['values'](_0x53cffc))_0x207bf3=Math['max'](_0x207bf3,_0x58801c['getBoundingClientRect']()['width']);let _0x38af99=0x0;for(const _0x350e51 of Object['values'](_0x53cffc))_0x38af99+=_0x350e51['getBoundingClientRect']()['height'];const _0x3c916a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x409a11=Math['min'](_0x38af99,_0x3c916a);return{'width':_0x207bf3,'height':_0x409a11};}(_0x2aa60f);_0x123cac['show']({'id':'finalContentPreview','title':c(_0x240491,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x240491,{'dialogRects':_0x2b8613}),'onHide':()=>{_0x187667['detachFromDom']();},'onShow':()=>{_0x1c1e4b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x313e3e=>{const _0x32c842=this['_standarizeRootsData'](_0x313e3e,_0x1c1e4b,_0x2aa60f);_0x123cac['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x32c842,_0x1c1e4b['config']['get']('trackChanges.preview.renderFunction'));}),_0x187667=new _0x3a656f(_0x240491,[_0x123cac['view']]),_0x187667['attachToDom'](),_0x187667['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1c1e4b['once']('destroy',()=>{_0x187667['detachFromDom']();});const _0x57d8b1=_0x123cac['view']['headerView']['class'];_0x123cac['view']['headerView']['class']=_0x57d8b1?_0x57d8b1+'\x20ck-reset_all':'ck-reset_all',_0x123cac['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x123cac['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xfb5253=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x597093=_0xfb5253['previewMode'],_0x2b66aa={};if('$labels'===_0x597093){for(const _0x1d1cbc of _0xfb5253['getMergeFieldsIds']())_0x2b66aa[_0x1d1cbc]=_0xfb5253['getLabel'](_0x1d1cbc)||_0x1d1cbc;}else{const _0x5820bd='$defaultValues'===_0x597093?_0xfb5253['getDefaultValues']():_0xfb5253['getDataSetValues'](_0x597093,!0x0);for(const _0x10c4d8 of Object['entries'](_0x5820bd)){const [_0x4c5bb5,_0x817f90]=_0x10c4d8;_0x2b66aa[_0x4c5bb5]=null!==_0x817f90?_0x817f90:_0xfb5253['getLabel'](_0x4c5bb5)||_0x4c5bb5;}}return{'mergeFieldsData':_0x2b66aa};}['_standarizeRootsData'](_0x4d720d,_0x5bd279,_0x5ef41e){let _0x4fe1bd;if('string'==typeof _0x4d720d){const _0x5c9fd3=_0x5bd279['model']['document']['getRootNames']()[0x0];_0x4fe1bd={[_0x5c9fd3]:_0x4d720d};}else _0x4fe1bd=_0x4d720d;const _0xb5148f=this['_fixMediaEmbeds'](_0x4fe1bd,_0x5bd279),_0x310a75=function(_0x104792,_0x39b1f2){for(const [_0x232777,_0x228f83]of _0x104792)_0x228f83['classes']=_0x39b1f2[_0x232777]['classList']['value']['replace']('ck-focused','');return _0x104792;}(this['_sortRoots'](_0x5bd279)['reduce']((_0xc92f51,_0x559f91)=>(_0xc92f51['push']([_0x559f91,{'content':_0xb5148f[_0x559f91],'classes':''}]),_0xc92f51),[]),_0x5ef41e);return _0x310a75;}['_fixMediaEmbeds'](_0x9978f9,_0x367f38){if(!_0x367f38['plugins']['has']('MediaEmbedEditing'))return _0x9978f9;const _0x1a50e0=_0x367f38['plugins']['get']('MediaEmbedEditing');for(const [_0x2d251a,_0x53f2e7]of Object['entries'](_0x9978f9)){const _0x388555=document['createElement']('div');_0x388555['innerHTML']=_0x53f2e7,(_0x388555['querySelectorAll']('figure.media')['forEach'](_0x2d78ee=>{const _0x399b1b=_0x2d78ee['querySelector']('oembed');if(_0x399b1b){const _0xcda282=_0x399b1b['getAttribute']('url');if(_0xcda282){const _0x438fee=_0x1a50e0['registry']['getMediaViewElement'](new _0x4ea2cc(_0x367f38['editing']['view']['document']),_0xcda282,{'elementName':'','renderForEditingView':!0x0}),_0x391504=document['createElement']('div');_0x391504['classList']['add']('ck-media__wrapper'),_0x438fee['render'](_0x391504,_0x367f38['editing']['view']['domConverter']),_0x399b1b['replaceWith'](_0x391504);}}}),_0x9978f9[_0x2d251a]=_0x388555['innerHTML']);}return _0x9978f9;}['_sortRoots'](_0x377d37){if(!function(_0x405521){return void 0x0!==_0x405521['getRootsAttributes'];}(_0x377d37))return _0x377d37['model']['document']['getRootNames']();const _0x2c26c3=[],_0x143f71=new Map();for(const _0x580bfc of _0x377d37['model']['document']['getRootNames']()){const _0x1dad20=_0x377d37['editing']['view']['getDomRoot'](_0x580bfc)['getClientRects']()['item'](0x0);_0x2c26c3['push'](_0x580bfc),_0x143f71['set'](_0x580bfc,_0x1dad20);}return _0x2c26c3['sort']((_0xa50513,_0x4a2b79)=>{const _0x217340=_0x143f71['get'](_0xa50513),_0x4fd8d3=_0x143f71['get'](_0x4a2b79);return _0x217340['y']-_0x4fd8d3['y']||_0x217340['x']-_0x4fd8d3['x'];}),_0x2c26c3;}}class te extends _0x307cfb{static get['requires'](){return[T,_0x3fccae];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19ba7d){super(_0x19ba7d),_0x19ba7d['commands']['add']('previewFinalContent',new re(this['editor'])),_0x19ba7d['config']['define']('trackChanges.preview.renderFunction',(_0x5e7764,_0x2fdfb2)=>{for(const _0x3097b5 of _0x2fdfb2)_0x5e7764['appendChild'](_0x3097b5);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};