@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250201.0 → 0.0.0-nightly-20250203.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 Qt,Plugin as _0x236dec,PendingActions as _0x2106e0,icons as _0x18d5fb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1c08fa,ObservableMixin as _0x1cb55e,uid as _0x598835,insertToPriorityArray as _0x3bfd3d,priorities as _0x5255c7,logWarning as _0x1f6d12,getEnvKeystrokeText as _0x389808,FocusTracker as _0xc673c,KeystrokeHandler as _0x553953,Collection as _0xfa107d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1a45f5,View as _0x10742a,ViewCollection as _0x1adaf4,FocusCycler as ts,ViewModel as _0x12534b,createDropdown as _0x292c0,SplitButtonView as _0x1da248,addListToDropdown as _0x4243db,MenuBarMenuView as _0x4e2570,MenuBarMenuListView as _0x596de6,ListSeparatorView as _0x4bb519,MenuBarMenuListItemView as _0x2e60c3,MenuBarMenuListItemButtonView as _0x296666,BodyCollection as _0x38f9f9,Dialog as _0xe20bdc}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4d36d3,hashObject as _0x202b58,surroundingMarkersDetector as _0xf25a02,FOCUS_ANNOTATION_KEYSTROKE as _0x869705,AriaDescriptionView as _0x466482,setupThreadKeyboardNavigation as _0x12a9e6,trimHtml as _0x180605,UserView as _0x59efeb,LateFocusButtonView as _0x24f414,getDateTimeFormatter as _0x762855,getAllMarkersDomElementsSorted as _0x52fcf0,sanitizeEditorConfig as _0x22d778}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5db49c,LiveRange as _0x78f3c6,LivePosition as _0x10a158,DowncastWriter as _0x3ecfa8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x544add,toWidget as _0x3c3dbf}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x10fdf2,set as _0x3ccfc5,isEqual as _0x5dbf15,unset as _0x116c08,omit as Et}from'lodash-es';import{Delete as _0x551b50,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4079e2,ShiftEnter as _0x187999}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x58730e,_0x41d61e){super(_0x58730e),this['_enabledCommands']=_0x41d61e,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 _0x193d32 of this['editor']['commands']['commands']())_0x193d32['affectsData']&&!this['_enabledCommands']['has'](_0x193d32)&&_0x193d32['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x48d55e of this['editor']['commands']['commands']())_0x48d55e['affectsData']&&!this['_enabledCommands']['has'](_0x48d55e)&&_0x48d55e['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x47b50d,_0x424134){super(_0x47b50d),this['_suggestions']=_0x424134,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x25eec8){const _0x127ae8=this['_suggestions']['get'](_0x25eec8);if(!_0x127ae8)throw new _0x1c08fa('track-changes-accept-suggestion-not-found',this);const _0x1ea6ef=_0x127ae8['getRanges']();this['editor']['model']['canEditAt'](_0x1ea6ef)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x127ae8);}}class R extends Qt{['_suggestions'];constructor(_0x1f605b,_0x4c54af){super(_0x1f605b),this['_suggestions']=_0x4c54af,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f7301){const _0x4f14f3=this['_suggestions']['get'](_0x3f7301);if(!_0x4f14f3)throw new _0x1c08fa('track-changes-discard-suggestion-not-found',this);const _0x197d75=_0x4f14f3['getRanges']();this['editor']['model']['canEditAt'](_0x197d75)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4f14f3);}}function ns(_0x19abed,_0x2c04de){let _0x1cb10f='';return _0x1cb10f+=_0x19abed['split']('*')['map']((_0x1d96b6,_0x396514)=>_0x396514%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1d96b6)+'</span>':nn(_0x1d96b6))['join'](''),_0x2c04de&&(_0x1cb10f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2c04de['value']+'\x22\x20title=\x22'+_0x2c04de['title']+'\x22></span>'),_0x1cb10f;}function nn(_0x3fca96){const _0x5e7028=document['createElement']('span');return _0x5e7028['innerText']=_0x3fca96,_0x5e7028['innerHTML'];}function Xt(_0x1e6f8c){return _0x1e6f8c['sort']((_0x150074,_0x531e0a)=>'deletion'==_0x150074['type']&&'deletion'!=_0x531e0a['type']?-0x1:'deletion'!=_0x150074['type']&&'deletion'==_0x531e0a['type']?0x1:0x0);}function to(_0x5910b5,_0x21603e){let _0x22ee85,_0xc46756=0x0;const _0x1c757d=[],_0x7710b3=_0x21603e['schema'];for(;_0xc46756<_0x5910b5['length'];){const _0x57c54f=_0x5910b5[_0xc46756],_0x282865=_0x5910b5[_0xc46756+0x1];_0x22ee85||(_0x22ee85=_0x21603e['createPositionBefore'](_0x57c54f)),on(_0x21603e,_0x57c54f,_0x282865)||(_0x1c757d['push'](_0x21603e['createRange'](_0x22ee85,_0x7710b3['isObject'](_0x57c54f)?_0x21603e['createPositionAfter'](_0x57c54f):_0x21603e['createPositionAt'](_0x57c54f,'end'))),_0x22ee85=null),_0xc46756++;}return _0x1c757d;}function on(_0x1d9197,_0x29c2b8,_0x8dd3f3){if(!_0x8dd3f3)return!0x1;const _0xcf9d46=_0x1d9197['createPositionAfter'](_0x29c2b8),_0x89d8f3=_0x1d9197['createPositionBefore'](_0x8dd3f3);return _0xcf9d46['isTouching'](_0x89d8f3);}function Yt(_0x48a4ec,_0x119494,_0x46f86d){for(;_0x46f86d['length'];){const _0x171aba=_0x46f86d['splice'](0x0,0x64);_0x48a4ec['change'](()=>{for(const _0x5c708f of _0x171aba)_0x5c708f['isInContent']&&_0x119494['execute'](_0x5c708f['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x8bb706,_0xec1fcb,_0x34673e){super(_0x8bb706),this['_command']=_0xec1fcb,this['_suggestions']=_0x34673e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x38f7b2=Array['from'](this['_suggestions']['values']())['some'](_0x8d4ac4=>_0x8d4ac4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x38f7b2;}['execute'](){const _0x1370d2=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x4c0be0 of _0x1370d2){const _0x31be65=_0x4c0be0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x31be65))return;}Yt(this['editor']['model'],this['_command'],_0x1370d2);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd2edf7,_0x6943f1,_0x4ee87f){super(_0xd2edf7),this['_command']=_0x6943f1,this['_suggestions']=_0x4ee87f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x27d4f8=this['editor']['model']['document']['selection'],_0x393592=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x360a8e,_0x277c32){const _0x4eb56b=Array['from'](_0x360a8e['getRanges']()),_0x56021b=new Set();for(const _0x5ee9cf of _0x277c32)if(_0x5ee9cf['isInContent']){for(const _0x4dbf65 of _0x4eb56b)for(const _0x52fb5b of _0x5ee9cf['getRanges']())(_0x4dbf65['isIntersecting'](_0x52fb5b)||_0x360a8e['isCollapsed']&&!_0x5ee9cf['isMultiRange']&&_0x5ee9cf['next']&&_0x52fb5b['end']['isTouching'](_0x4dbf65['start']))&&_0x56021b['add'](_0x5ee9cf);}return _0x56021b;}(_0x27d4f8,_0x393592),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2a277a=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x12cfa3 of _0x2a277a){const _0x5a0826=_0x12cfa3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a0826))return;}Yt(this['editor']['model'],this['_command'],_0x2a277a);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x1cb55e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5f0048,_0xa85f6a){super(),this['id']=_0xa85f6a['id'],this['type']=_0xa85f6a['type'],this['subType']=_0xa85f6a['subType']||null,this['author']=_0xa85f6a['author'],this['creator']=_0xa85f6a['creator']||_0xa85f6a['author'],this['isExternal']=Boolean(_0xa85f6a['attributes']&&_0xa85f6a['attributes']['@external']),this['data']=null,this['_model']=_0x5f0048,this['_onAccept']=_0xa85f6a['onAccept'],this['_onDiscard']=_0xa85f6a['onDiscard'],this['_onAttributesChange']=_0xa85f6a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xa85f6a['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 _0x49ec36=this;for(;_0x49ec36['previous'];)_0x49ec36=_0x49ec36['previous'];return _0x49ec36;}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'](_0x4afe16){this['_markerNames']['add'](_0x4afe16);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1945e4=>this['_model']['markers']['get'](_0x1945e4))['filter'](_0xc8b7f2=>_0xc8b7f2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x538aa5=>{for(const _0xbb5bfa of this['getMarkers']())_0x538aa5['removeMarker'](_0xbb5bfa);}),this['_markerNames']['clear']();}['removeMarker'](_0xb09277){this['_model']['change'](_0xf3d7bb=>{_0xf3d7bb['removeMarker'](_0xb09277);}),this['_markerNames']['delete'](_0xb09277);}['addRange'](_0x531109){const _0x4fa34f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4fa34f),this['_model']['change'](_0x568c32=>{_0x568c32['addMarker'](_0x4fa34f,{'range':_0x531109,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5d4198){for(const _0x238b48 of this['getRanges']())if(_0x238b48['isIntersecting'](_0x5d4198))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2e4d5a=>_0x2e4d5a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1cb8a1,_0x1a17da)=>[..._0x1cb8a1,..._0x1a17da['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x544d79=this['getRanges']();if(0x1!=_0x544d79['length'])return null;const _0x7a957=_0x544d79[0x0],_0xfcf9f8=_0x7a957['start']['nodeAfter'],_0x236e63=_0x7a957['end']['nodeBefore'];return _0xfcf9f8 instanceof _0x5db49c?_0xfcf9f8!=_0x236e63?null:_0xfcf9f8: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 _0xbd4454=[];let _0x1d6669=this['head'];for(;_0x1d6669;)_0xbd4454['push'](_0x1d6669),_0x1d6669=_0x1d6669['next'];return _0xbd4454;}['setAttribute'](_0x2c8218,_0x3a0b7d){const _0x458445=_0x10fdf2(this['attributes']);_0x3ccfc5(_0x458445,_0x2c8218,_0x3a0b7d),_0x5dbf15(_0x458445,this['attributes'])||(this['attributes']=_0x458445,this['_onAttributesChange'](_0x458445));}['removeAttribute'](_0x4f32ea){const _0x405c42=_0x10fdf2(this['attributes']);_0x116c08(_0x405c42,_0x4f32ea),_0x5dbf15(_0x405c42,this['attributes'])||(this['attributes']=_0x405c42,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 _0x598835()['substr'](0x1,0x5);}}function o(_0x21b7c4,_0x38b884,_0xce3800){const _0x4ec1ce=_0x21b7c4['t'],t=_0x21b7c4['t'];switch(_0x38b884){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',_0xce3800);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xce3800);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xce3800);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xce3800);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xce3800);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',_0xce3800);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xce3800);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',_0xce3800);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xce3800);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xce3800);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xce3800);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xce3800);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xce3800);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xce3800);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xce3800);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xce3800);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xce3800);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xce3800);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xce3800);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xce3800);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xce3800);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xce3800);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xce3800);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xce3800);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'},_0xce3800);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xce3800);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xce3800);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xce3800);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xce3800);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xce3800);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'},_0xce3800);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xce3800);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xce3800);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xce3800);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xce3800);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'},_0xce3800);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xce3800);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'},_0xce3800);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'},_0xce3800);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xce3800);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'},_0xce3800);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xce3800);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'},_0xce3800);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xce3800);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xce3800);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'},_0xce3800);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xce3800);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 _0x4ec1ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xce3800);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ec1ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xce3800);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xce3800);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'},_0xce3800);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'},_0xce3800);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'},_0xce3800);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x38b884;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x37c102,_0x5cf666){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x37c102,this['_locale']=_0x5cf666;}['getDescriptions'](_0x4d49e6){const _0x4c8dc6=[],_0x5bbf06=new Set(),_0x45aa0b=new Set();for(let _0x4a4aae=0x0;_0x4a4aae<_0x4d49e6['length'];_0x4a4aae++){const _0x3813c3=_0x4d49e6[_0x4a4aae];if(!_0x3813c3['isInContent'])continue;const _0x805cf4=this['_handleCustomCallbackDescription'](_0x3813c3);if(_0x805cf4){if(null!=_0x3813c3['subType']){if(_0x5bbf06['has'](_0x3813c3['subType']))continue;_0x5bbf06['add'](_0x3813c3['subType']);}_0x4c8dc6['push'](_0x805cf4);}else{if('attribute'!=_0x3813c3['type'])'insertion'!=_0x3813c3['type']&&'deletion'!=_0x3813c3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4c8dc6,_0x3813c3,_0x4d49e6[_0x4a4aae+0x1]);else{const _0x2012d7=_0x3813c3['data']['key'];if(_0x45aa0b['has'](_0x2012d7))continue;_0x45aa0b['add'](_0x3813c3['data']['key']),_0x2012d7==m?this['_handleRenameSuggestionDescription'](_0x4c8dc6,_0x3813c3):this['_handleAttributeSuggestionDescription'](_0x4c8dc6,_0x3813c3);}}}return this['_resolveDescriptionItems'](_0x4c8dc6);}['registerDescriptionCallback'](_0x448f73){this['_customCallbacks']['push'](_0x448f73);}['registerElementLabel'](_0x23cbbe,_0x36f3f3,_0x27ab6b=_0x5255c7['normal']){'function'==typeof _0x23cbbe?_0x3bfd3d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23cbbe,'label':_0x36f3f3,'priority':_0x27ab6b}):this['_itemLabels']['set'](_0x23cbbe,_0x36f3f3);}['registerAttributeLabel'](_0x3c31bf,_0x191fc1){this['_attributeLabels']['set'](_0x3c31bf,_0x191fc1);}['getItemLabel'](_0x2bc045,_0x1e308a=0x1){let _0x4a489;for(const _0x4252ae of this['_itemLabelsCallbacks'])if(_0x4252ae['matchingCallback'](_0x2bc045)){_0x4a489=_0x4252ae['label'];break;}return _0x4a489||(_0x4a489=this['_itemLabels']['get'](_0x2bc045['name'])),_0x4a489?_0x4a489(_0x1e308a):0x1!==_0x1e308a?_0x1e308a+'\x20'+_0x2bc045['name']+'s':''+_0x2bc045['name'];}['_addDescriptionItems'](_0x4cb726,_0x3a3330){const _0x3f67c7=_0x3a3330['getFirstRange']()['getWalker'](),_0x36756c='insertion'==_0x3a3330['type']?'add':'remove';for(const _0x2aa7ee of _0x3f67c7){const _0x363557=_0x2aa7ee['item'],_0x482847=_0x4cb726[_0x4cb726['length']-0x1];if(_0x363557['is']('$textProxy'))_0x482847&&_0x482847['type']['indexOf']('Container')>-0x1&&_0x4cb726['pop'](),_0x482847&&'text'==_0x482847['type']?_0x482847[_0x36756c]+=_0x363557['data']:_0x4cb726['push']({'type':'text','add':'add'==_0x36756c?_0x363557['data']:'','remove':'remove'==_0x36756c?_0x363557['data']:''});else{if(this['_schema']['isObject'](_0x363557)){const _0x5e3c1a=_0x363557;if(_0x482847&&_0x482847['type']['indexOf']('Container')>-0x1&&_0x4cb726['pop'](),'elementEnd'==_0x2aa7ee['type'])continue;_0x482847&&_0x482847['type']==_0x36756c+'Object'&&_0x482847['element']['name']==_0x5e3c1a['name']?_0x482847['quantity']++:_0x4cb726['push']({'type':_0x36756c+'Object','element':_0x5e3c1a,'quantity':0x1}),_0x3f67c7['skip'](_0x33929c=>!('elementEnd'==_0x33929c['type']&&_0x33929c['item']==_0x363557));}else{if(this['_schema']['checkChild'](_0x363557,'$text')||_0x363557['is']('element','softBreak')){const _0x23ca90=_0x363557;if('add'==_0x36756c&&'elementStart'==_0x2aa7ee['type']||'remove'==_0x36756c&&'elementEnd'==_0x2aa7ee['type'])continue;if(_0x482847&&-0x1==_0x482847['type']['indexOf']('Container')){'text'==_0x482847['type']&&(_0x482847[_0x36756c]+='\x0a');continue;}let _0x3da3a8;if(_0x3da3a8='add'==_0x36756c?_0x23ca90['nextSibling']&&!this['_schema']['isObject'](_0x23ca90['nextSibling'])?_0x23ca90['nextSibling']:null:_0x23ca90['previousSibling']&&!this['_schema']['isObject'](_0x23ca90['previousSibling'])?_0x23ca90['previousSibling']:null,_0x23ca90['isEmpty']||_0x3da3a8&&_0x3da3a8['isEmpty']){const _0x575e02=_0x3da3a8&&_0x3da3a8['isEmpty']?_0x3da3a8:_0x23ca90;_0x482847&&_0x482847['type']==_0x36756c+'EmptyContainer'&&_0x482847['element']['name']==_0x575e02['name']?_0x482847['quantity']++:_0x4cb726['push']({'type':_0x36756c+'EmptyContainer','element':_0x575e02,'quantity':0x1});}else _0x4cb726['push']({'type':_0x36756c+'Container','element':_0x23ca90});}}}}}['_resolveDescriptionItems'](_0x4a3a14){const _0x26beda=this['_locale'],_0x732fee=[],_0x36d068=[],_0x2b9ebf=[];for(const _0x3c0cfe of _0x4a3a14)switch(_0x3c0cfe['type']){case'text':if(_0x3c0cfe['add']=_0x3c0cfe['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3c0cfe['remove']=_0x3c0cfe['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3c0cfe['add']&&''!=_0x3c0cfe['remove']){_0x732fee['push']({'type':'replace','content':o(_0x26beda,'REPLACE_TEXT',['\x22'+_0x3c0cfe['remove']+'\x22','\x22'+_0x3c0cfe['add']+'\x22'])});continue;}if(null!=_0x3c0cfe['add']['match'](/^ +$/)){_0x732fee['push']({'type':'insertion','content':o(_0x26beda,'*Insert:*\x20%0',o(_0x26beda,'ELEMENT_SPACE',_0x3c0cfe['add']['length']))});continue;}if(null!=_0x3c0cfe['remove']['match'](/^ +$/)){_0x732fee['push']({'type':'deletion','content':o(_0x26beda,'*Remove:*\x20%0',o(_0x26beda,'ELEMENT_SPACE',_0x3c0cfe['remove']['length']))});continue;}if(''!=_0x3c0cfe['add']){_0x732fee['push']({'type':'insertion','content':o(_0x26beda,'*Insert:*\x20%0','\x22'+_0x3c0cfe['add']+'\x22')});continue;}_0x732fee['push']({'type':'deletion','content':o(_0x26beda,'*Remove:*\x20%0','\x22'+_0x3c0cfe['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x732fee['push']({'type':'insertion','content':o(_0x26beda,'*Insert:*\x20%0',this['getItemLabel'](_0x3c0cfe['element'],_0x3c0cfe['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x732fee['push']({'type':'deletion','content':o(_0x26beda,'*Remove:*\x20%0',this['getItemLabel'](_0x3c0cfe['element'],_0x3c0cfe['quantity']))});continue;case'addContainer':_0x732fee['push']({'type':'insertion','content':o(_0x26beda,'*Split:*\x20%0',this['getItemLabel'](_0x3c0cfe['element'],_0x3c0cfe['quantity']))});continue;case'removeContainer':_0x732fee['push']({'type':'deletion','content':o(_0x26beda,'*Merge:*\x20%0',this['getItemLabel'](_0x3c0cfe['element'],_0x3c0cfe['quantity']))});continue;case'addFormat':_0x36d068['push'](_0x3c0cfe['key']);continue;case'removeFormat':_0x2b9ebf['push'](_0x3c0cfe['key']);continue;default:_0x732fee['push'](_0x3c0cfe);}if(_0x36d068['length']){const _0x5b2b27=_0x36d068['map'](_0x397285=>this['_attributeLabels']['has'](_0x397285)?this['_attributeLabels']['get'](_0x397285):_0x397285)['join'](',\x20');_0x732fee['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5b2b27)});}if(_0x2b9ebf['length']){const _0x59602b=_0x2b9ebf['map'](_0x36ffe2=>this['_attributeLabels']['has'](_0x36ffe2)?this['_attributeLabels']['get'](_0x36ffe2):_0x36ffe2)['join'](',\x20');_0x732fee['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x59602b)});}return _0x732fee;}['_handleCustomCallbackDescription'](_0x32a8f7){for(const _0x3bc985 of this['_customCallbacks']){const _0x5a0525=_0x3bc985(_0x32a8f7);if(_0x5a0525&&'type'in _0x5a0525)return _0x5a0525;}}['_handleAttributeSuggestionDescription'](_0x306ae4,_0xe02aa5){const _0x50d600=_0xe02aa5['data'],_0x4a789c=void 0x0===_0x50d600['newValue']?'removeFormat':'addFormat';_0x306ae4['push']({'type':_0x4a789c,'key':_0x50d600['key']});}['_handleRenameSuggestionDescription'](_0xf4b045,_0x209a7b){_0xf4b045['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x209a7b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x55fced,_0x40e67c,_0x132b32){if(this['_addDescriptionItems'](_0x55fced,_0x40e67c),_0x132b32&&_0x132b32['getFirstRange']()&&!_0x40e67c['getFirstRange']()['end']['isEqual'](_0x132b32['getFirstRange']()['start'])){const _0xa78eb7=_0x55fced[_0x55fced['length']-0x1],_0x4ec2ef='insertion'==_0x40e67c['type']?'add':'remove';_0xa78eb7&&'text'==_0xa78eb7['type']&&(_0xa78eb7[_0x4ec2ef]+='\x0a');}}}class U extends _0x236dec{['afterInit'](){const _0x22a341=this['editor'],_0x9f71ba=_0x22a341['plugins']['get']('TrackChangesEditing');_0x22a341['commands']['get']('showAIAssistant')&&_0x9f71ba['enableCommand']('showAIAssistant');}}class V extends _0x236dec{['afterInit'](){const _0x5cac6e=this['editor'],_0x571cee=_0x5cac6e['locale'];if(!_0x5cac6e['plugins']['has']('AlignmentEditing'))return;const _0x4eacaa=_0x5cac6e['plugins']['get']('TrackChangesEditing');_0x4eacaa['enableDefaultAttributesIntegration']('alignment'),_0x4eacaa['registerBlockAttribute']('alignment'),_0x4eacaa['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x571cee,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24ff19=this['editor'],_0x319236=_0x24ff19['locale'];_0x24ff19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c9381=>{if('formatBlock'!=_0x5c9381['type'])return;const {data:_0x24cde3}=_0x5c9381;if(_0x24cde3&&'alignment'==_0x24cde3['commandName']){const _0xbbf8ae=_0x24cde3['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x319236,'*Format:*\x20%0',function(_0x519e95){switch(_0x519e95){case'left':return o(_0x319236,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x319236,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x319236,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x319236,'FORMAT_JUSTIFY_TEXT');}}(_0xbbf8ae))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x236dec{['afterInit'](){const _0xa26438=this['editor'],_0x32c23c=_0xa26438['plugins']['get']('TrackChangesEditing'),_0x1acedd=_0xa26438['locale'];for(const _0x49a4da of ti){if(!_0xa26438['plugins']['has'](_0x49a4da))continue;const _0x2dc8e6=_0x49a4da['slice'](0x0,-0x7)['toLowerCase'](),_0x47f43e='FORMAT_'+_0x2dc8e6['toUpperCase']();_0x32c23c['enableDefaultAttributesIntegration'](_0x2dc8e6),_0x32c23c['registerInlineAttribute'](_0x2dc8e6),_0x32c23c['descriptionFactory']['registerAttributeLabel'](_0x2dc8e6,o(_0x1acedd,_0x47f43e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12a1d9=this['editor'],_0x221d22=_0x12a1d9['locale'],_0x18bf04=_0x12a1d9['plugins']['get']('TrackChangesEditing');function _0x2ff5da(_0xae0c8a,_0x5d1ea0){_0x18bf04['descriptionFactory']['registerDescriptionCallback'](_0x27effd=>{if('formatInline'!=_0x27effd['type'])return;const {data:_0x44fcd9}=_0x27effd;return _0x44fcd9&&_0x44fcd9['commandName']===_0xae0c8a?_0x44fcd9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x221d22,'*Format:*\x20%0',_0x5d1ea0)}:{'type':'format','content':o(_0x221d22,'*Remove\x20format:*\x20%0',_0x5d1ea0)}:void 0x0;});}_0x2ff5da('bold',o(_0x221d22,'FORMAT_BOLD')),_0x2ff5da('italic',o(_0x221d22,'FORMAT_ITALIC')),_0x2ff5da('underline',o(_0x221d22,'FORMAT_UNDERLINE')),_0x2ff5da('code',o(_0x221d22,'FORMAT_CODE')),_0x2ff5da('strikethrough',o(_0x221d22,'FORMAT_STRIKETHROUGH')),_0x2ff5da('subscript',o(_0x221d22,'FORMAT_SUBSCRIPT')),_0x2ff5da('superscript',o(_0x221d22,'FORMAT_SUPERSCRIPT'));}}class F extends _0x236dec{['afterInit'](){const _0x343389=this['editor'],_0x303340=_0x343389['locale'];if(!_0x343389['plugins']['has']('BlockQuoteEditing'))return;const _0x3cb6d8=_0x343389['plugins']['get']('TrackChangesEditing'),_0x358d23=this['editor']['commands']['get']('blockQuote');_0x3cb6d8['enableCommand']('blockQuote',(_0x59b61f,_0x2d0502={})=>{const _0xc6aec0=this['editor']['model']['document']['selection'],_0x307b03=_0x2d0502&&void 0x0!==_0x2d0502['forceValue']?_0x2d0502['forceValue']:!_0x358d23['value'];let _0x3392a1=[];if(_0x307b03){const _0x5ae03d=Array['from'](_0xc6aec0['getSelectedBlocks']())['filter'](_0x485928=>oo(_0x485928)||function(_0x4ac6df,_0xefa318){const _0x118322=_0xefa318['checkChild'](_0x4ac6df['parent'],'blockQuote'),_0x383524=_0xefa318['checkChild'](['$root','blockQuote'],_0x4ac6df);return _0x118322&&_0x383524;}(_0x485928,this['editor']['model']['schema']));_0x3392a1=to(_0x5ae03d,_0x343389['model']);}else{const _0x5b2703=Array['from'](_0xc6aec0['getSelectedBlocks']())['filter'](_0x3b0164=>oo(_0x3b0164));_0x3392a1=to(_0x5b2703,_0x343389['model']);}_0x343389['model']['change'](()=>{for(const _0x1a2d9d of _0x3392a1)_0x3cb6d8['markBlockFormat'](_0x1a2d9d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x307b03}]});});}),_0x3cb6d8['descriptionFactory']['registerDescriptionCallback'](_0xe92fae=>{const {data:_0x2bd324}=_0xe92fae;if(_0x2bd324&&'blockQuote'==_0x2bd324['commandName']){const _0x51d8b3=o(_0x303340,'ELEMENT_BLOCK_QUOTE');return _0x2bd324['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x303340,'*Set\x20format:*\x20%0',_0x51d8b3)}:{'type':'format','content':o(_0x303340,'*Remove\x20format:*\x20%0',_0x51d8b3)};}});}}function oo(_0x38367b){return'blockQuote'==_0x38367b['parent']['name'];}class L extends _0x236dec{['afterInit'](){const _0x55cb1c=this['editor'],_0x1c41f0=_0x55cb1c['locale'],_0x5c06b9=_0x55cb1c['plugins']['get']('TrackChangesEditing');_0x55cb1c['plugins']['has']('BookmarkEditing')&&(_0x5c06b9['enableCommand']('insertBookmark'),_0x5c06b9['enableDefaultAttributesIntegration']('updateBookmark'),_0x5c06b9['registerBlockAttribute']('bookmarkId'),_0x5c06b9['descriptionFactory']['registerDescriptionCallback'](_0x45c112=>{if('insertion'!=_0x45c112['type']&&'deletion'!=_0x45c112['type']&&'attribute'!=_0x45c112['type'])return;const _0x541e95=_0x45c112['getContainedElement']();if(null==_0x541e95)return;if(!_0x541e95['is']('element','bookmark'))return;const _0x4aa038=_0x541e95['getAttribute']('bookmarkId');if('insertion'==_0x45c112['type'])return{'type':'insertion','content':o(_0x1c41f0,'*Insert:*\x20%0','\x22'+_0x4aa038+'\x22\x20'+o(_0x1c41f0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x45c112['type'])return{'type':'deletion','content':o(_0x1c41f0,'*Remove:*\x20%0','\x22'+_0x4aa038+'\x22\x20'+o(_0x1c41f0,'ELEMENT_BOOKMARK'))};const {data:_0x4b5cdb}=_0x45c112;if(!_0x4b5cdb||'bookmarkId'!=_0x4b5cdb['key'])return;return{'type':'format','content':o(_0x1c41f0,'*Set\x20bookmark:*\x20%0','\x22'+_0x4b5cdb['newValue']+'\x22')};}));}}class J extends _0x236dec{['afterInit'](){const _0x3cd6a5=this['editor'];_0x3cd6a5['plugins']['has']('CaseChange')&&(_0x3cd6a5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3cd6a5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3cd6a5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x236dec{['afterInit'](){const _0x34f291=this['editor'];_0x34f291['commands']['get']('ckbox')&&_0x34f291['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x236dec{['afterInit'](){const _0x5de77d=this['editor'];if(!_0x5de77d['plugins']['has']('CodeBlock'))return;const _0x17a494=_0x5de77d['plugins']['get']('TrackChangesEditing'),_0xd36831=_0x5de77d['locale'],_0x4a040b=_0x5de77d['config']['get']('codeBlock')['languages'],_0x85624b=_0x5de77d['commands']['get']('codeBlock');_0x17a494['enableCommand']('indentCodeBlock'),_0x17a494['enableCommand']('outdentCodeBlock'),_0x17a494['enableCommand']('codeBlock',(_0x5a6a58,_0x437557={})=>{const _0x348670=_0x5de77d['model'],_0x1897f7=_0x5de77d['model']['document']['selection'],_0x293195=_0x437557&&void 0x0!==_0x437557['forceValue']?_0x437557['forceValue']:!_0x85624b['value'];let _0x239468;_0x437557['language']||(_0x437557['language']=_0x4a040b[0x0]['language']),_0x239468=_0x293195?Array['from'](_0x1897f7['getSelectedBlocks']())['filter'](_0x1524d7=>eo(_0x1524d7)||function(_0x1d66e4,_0x1688ba){if(_0x1d66e4['is']('rootElement')||_0x1688ba['isLimit'](_0x1d66e4))return!0x1;return _0x1688ba['checkChild'](_0x1d66e4['parent'],'codeBlock');}(_0x1524d7,_0x348670['schema'])):Array['from'](_0x1897f7['getSelectedBlocks']())['filter'](_0x309477=>eo(_0x309477));const _0xe7fd8d=to(_0x239468,_0x348670);_0x348670['change'](()=>{for(const _0x1a8675 of _0xe7fd8d)_0x17a494['markBlockFormat'](_0x1a8675,{'commandName':'codeBlock','commandParams':[{..._0x437557,'forceValue':_0x293195}],'formatGroupId':'blockName'});});}),(_0x17a494['descriptionFactory']['registerElementLabel']('codeBlock',_0x643fab=>o(_0xd36831,'ELEMENT_CODE_BLOCK',_0x643fab)),_0x17a494['descriptionFactory']['registerDescriptionCallback'](_0x118824=>{if('formatBlock'!=_0x118824['type'])return;const _0x3e8fab=_0xd36831['t'],{data:_0x1faacc}=_0x118824;if(!_0x1faacc||'codeBlock'!=_0x1faacc['commandName'])return;const _0x43bbf0=_0x1faacc['commandParams'][0x0]['language'],_0xe09da2=_0x3e8fab(_0x4a040b['find'](_0x5246ed=>_0x5246ed['language']===_0x43bbf0)['label'])['toLowerCase']();return _0x1faacc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd36831,'*Set\x20format:*\x20%0',o(_0xd36831,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe09da2+')')}:{'type':'format','content':o(_0xd36831,'*Remove\x20format:*\x20%0',o(_0xd36831,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x335c77){return'codeBlock'==_0x335c77['name'];}class z extends _0x236dec{['afterInit'](){const _0x491707=this['editor'];if(!_0x491707['plugins']['has']('CommentsEditing'))return;_0x491707['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1e0000,_0x594e48,_0x34d8c2){const _0x715e3c=[];for(const _0x78a1dd of _0x594e48['getItems']())_0x78a1dd['hasAttribute'](_0x1e0000)&&_0x715e3c['push'](_0x34d8c2['createRangeOn'](_0x78a1dd));return _0x715e3c;}function De(_0x12b7ea,_0x185e4a,{showActiveMarker:_0x207d49=!0x0}={}){const _0x41e7b8=_0x12b7ea['plugins']['get']('TrackChangesEditing');return(_0x58e5d7,_0x5d9dcd,_0xf4e3e0)=>{if(!_0xf4e3e0['consumable']['test'](_0x5d9dcd['markerRange'],_0x58e5d7['name']))return;const _0x19252f=_0x5d9dcd['markerRange']['getWalker'](),_0x57ae5b=_0x5d9dcd['markerRange']['start'],_0x29c006=_0x12b7ea['model']['schema'];let _0x7da929=null,_0x486c89=null,_0x2bd771=!0x1,_0x12fb88=!0x1;for(const _0xa8929d of _0x19252f){const _0x5125fe=_0xa8929d['item'];_0x2bd771=_0x2bd771||_0x29c006['isContent'](_0x5125fe);const _0x358798=_0xf4e3e0['mapper']['toViewElement'](_0x5125fe);if(_0x358798&&_0x358798['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xa8929d['type']&&(_0x29c006['isBlock'](_0x5125fe)&&!_0x29c006['isLimit'](_0x5125fe)&&(_0x5125fe['nextSibling']||_0x57ae5b['isAtEnd']?_0x7da929&&_0x7da929['parent']==_0x5125fe||(_0x7da929=_0x5125fe,_0x5120b0(_0xa8929d['previousPosition']),_0x12fb88=!0x0):_0x486c89=_0x486c89||_0xa8929d['previousPosition']));}function _0x5120b0(_0x3517ed){const {authorId:_0x46450b}=_0x41e7b8['_splitMarkerName'](_0x5d9dcd['markerName']),_0xa2957b=_0xf4e3e0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x185e4a,'data-author-id':_0x46450b}),_0x48a3e3=_0xf4e3e0['mapper']['toViewPosition'](_0x3517ed);_0x207d49&&_0x41e7b8['activeMarkers']['includes'](_0x5d9dcd['markerName'])&&_0xf4e3e0['writer']['addClass']('ck-suggestion-marker--active',_0xa2957b),_0xf4e3e0['writer']['insert'](_0x48a3e3,_0xa2957b),_0xf4e3e0['mapper']['bindElementToMarker'](_0xa2957b,_0x5d9dcd['markerName']);}_0x2bd771||_0x12fb88||!_0x486c89||_0x5120b0(_0x486c89);};}class K extends _0x236dec{static get['requires'](){return[_0x551b50];}['init'](){const _0x34b655=this['editor'],_0x114734=_0x34b655['plugins']['get']('TrackChangesEditing');_0x114734['enableCommand']('delete');const _0x530613=_0x34b655['commands']['get']('deleteForward');_0x114734['enableCommand']('deleteForward',(_0xd39a9,_0x203a80={})=>{const _0x4ec651=_0x34b655['model']['createSelection'](_0x34b655['model']['document']['selection']);_0x4ec651['isCollapsed']&&_0x34b655['model']['modifySelection'](_0x4ec651,{'direction':'forward','unit':_0x203a80['unit']});const _0x1efd03=_0x4ec651['getFirstRange'](),_0x47b81b=_0x78f3c6['fromRange'](_0x1efd03);let _0x1c5e44;_0xd39a9(_0x203a80),_0x1c5e44='$graveyard'==_0x47b81b['root']['rootName']?_0x34b655['model']['createRange'](_0x1efd03['start']):_0x34b655['model']['createRange'](_0x47b81b['start'],_0x47b81b['end']),_0x47b81b['detach'](),_0x34b655['model']['enqueueChange'](_0x530613['buffer']['batch'],_0x586053=>{_0x530613['buffer']['lock'](),_0x586053['setSelection'](_0x586053['createRange'](_0x1c5e44['end'])),_0x530613['buffer']['unlock']();});}),_0x34b655['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x34b655,'merge'),{'priority':'high'}),_0x34b655['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2ae93c,_0x5731de,_0x93af4e)=>{_0x93af4e['options']['showSuggestionHighlights']&&De(_0x34b655,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2ae93c,_0x5731de,_0x93af4e);},{'priority':'high'}),_0x34b655['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5ab56b,_0x2bf9ad,_0x47647a)=>{const _0x53a215=_0x47647a['mapper']['markerNameToElements'](_0x2bf9ad['markerName']);if(_0x53a215){for(const _0x18220d of _0x53a215)_0x18220d['is']('uiElement')&&(_0x47647a['mapper']['unbindElementFromMarkerName'](_0x18220d,_0x2bf9ad['markerName']),_0x47647a['writer']['remove'](_0x18220d));}},{'priority':'high'});}}class W extends _0x236dec{['afterInit'](){const _0x1f7776=this['editor'];if(!_0x1f7776['plugins']['has']('ListEditing'))return;const _0x2710e2=_0x1f7776['locale'],_0x1aa9c5=_0x1f7776['plugins']['get']('TrackChangesEditing'),_0x2b1db7=_0x1f7776['plugins']['has']('TodoListEditing'),_0x50734b=!!_0x1f7776['config']['get']('list.multiBlock');function _0x1e20b6(_0x50b9a9){return{'type':'format','content':''+o(_0x2710e2,'*Set\x20format:*\x20%0',_0x50b9a9)};}function _0x3f6690(_0x3ae7e2){return{'type':'format','content':''+o(_0x2710e2,'*Remove\x20format:*\x20%0',_0x3ae7e2)};}_0x1aa9c5['enableDefaultAttributesIntegration']('numberedList'),_0x1aa9c5['enableDefaultAttributesIntegration']('bulletedList'),_0x1aa9c5['enableDefaultAttributesIntegration']('customNumberedList'),_0x1aa9c5['enableDefaultAttributesIntegration']('customBulletedList'),_0x1aa9c5['enableDefaultAttributesIntegration']('indentList'),_0x1aa9c5['enableDefaultAttributesIntegration']('outdentList'),_0x1aa9c5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1aa9c5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1aa9c5['registerBlockAttribute']('listItemId'),_0x1aa9c5['registerBlockAttribute']('listType'),_0x1aa9c5['registerBlockAttribute']('listIndent'),_0x50734b&&(_0x1aa9c5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1aa9c5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2b1db7&&(_0x1aa9c5['enableDefaultAttributesIntegration']('todoList'),_0x1aa9c5['enableDefaultAttributesIntegration']('checkTodoList'),_0x1aa9c5['registerBlockAttribute']('todoListChecked'),_0x1aa9c5['descriptionFactory']['registerDescriptionCallback'](_0xa51d7c=>{const {data:_0x15c178}=_0xa51d7c;if(_0x15c178&&'todoListChecked'==_0x15c178['key'])return{'type':'format','content':_0x15c178['newValue']?o(_0x2710e2,'*Check\x20item*'):o(_0x2710e2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x57a2e4=>{if(_0x57a2e4['batch']['isUndo'])return!0x1;let _0x5a2262=!0x1;const _0x54f4c0=_0x1aa9c5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f77d2=>'todoListChecked'===_0x1aa9c5['_getAttributeKey'](_0x2f77d2));for(const _0x312b8a of _0x54f4c0){'todo'!=_0x312b8a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1aa9c5['_findSuggestions'](_0x312b8a['getFirstRange'](),'attribute')['find'](_0x2f9d6e=>'listType'===_0x1aa9c5['_getAttributeKey'](_0x2f9d6e['suggestion']))||(_0x57a2e4['removeMarker'](_0x312b8a['getFirstMarker']()),_0x5a2262=!0x0));}return _0x5a2262;})),_0x1aa9c5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2710e2,'FORMAT_INDENT'));const _0x37ce52={'type':'format','content':''};_0x1aa9c5['descriptionFactory']['registerDescriptionCallback'](_0x26dc0d=>{const {data:_0x3286bd}=_0x26dc0d;if(!_0x3286bd||'listType'!=_0x3286bd['key'])return;let _0x24a88e=_0x26dc0d['head'];for(;_0x24a88e;){if(_0x24a88e['data']&&(('listStyle'==_0x24a88e['data']['key']||'listMarkerStyle'==_0x24a88e['data']['key'])&&(_0x24a88e['data']['newValue']&&'default'!=_0x24a88e['data']['newValue']||'default'!=_0x24a88e['data']['oldValue']&&!_0x3286bd['newValue'])||!_0x50734b&&_0x24a88e['data']['key']==m))return _0x37ce52;_0x24a88e=_0x24a88e['next'];}if(null==_0x3286bd['newValue'])switch(_0x3286bd['oldValue']){case'bulleted':return _0x3f6690(o(_0x2710e2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f6690(o(_0x2710e2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f6690(o(_0x2710e2,'ELEMENT_TODO_LIST'));}switch(_0x3286bd['newValue']){case'bulleted':return _0x1e20b6(o(_0x2710e2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e20b6(o(_0x2710e2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e20b6(o(_0x2710e2,'ELEMENT_TODO_LIST'));}}),_0x1aa9c5['descriptionFactory']['registerDescriptionCallback'](_0x5617df=>{const {data:_0xa51720}=_0x5617df;if(_0xa51720&&'listIndent'==_0xa51720['key'])return null==_0xa51720['newValue']||null==_0xa51720['oldValue']&&0x0==_0xa51720['newValue']?_0x37ce52:void 0x0;}),_0x1aa9c5['descriptionFactory']['registerDescriptionCallback'](_0x15d416=>{if('attribute'!=_0x15d416['type'])return;const {data:_0x18cb55}=_0x15d416;if(!_0x18cb55||'listItemId'!=_0x18cb55['key'])return;const _0xa672fd=Te(_0x15d416);return'newValue'==_0xa672fd?{'type':'format','content':o(_0x2710e2,'*Merge:*\x20list\x20item')}:'oldValue'==_0xa672fd?{'type':'format','content':o(_0x2710e2,'*Split:*\x20list\x20item')}:_0x37ce52;}),_0x1f7776['model']['document']['registerPostFixer'](_0x4d838e=>this['listItemIdFixer'](_0x4d838e)),_0x1f7776['model']['document']['registerPostFixer'](_0x44b278=>this['noTrackChangesFixer'](_0x44b278)),_0x1f7776['model']['document']['on']('change:data',(_0x104bf3,_0x352b52)=>{if(_0x352b52['isUndo']||!_0x352b52['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x55fa4e){if(_0x55fa4e['batch']['isUndo']||!_0x55fa4e['batch']['isLocal'])return!0x1;let _0x27d198=!0x1;const _0x4b49e9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x467723=>_0x467723['data']&&'listItemId'==_0x467723['data']['key'])['filter'](_0x5b729f=>_0x5b729f['data']['newValue']&&_0x5b729f['data']['oldValue']);for(const _0x3ac352 of _0x4b49e9)Te(_0x3ac352)||(_0x55fa4e['removeMarker'](_0x3ac352['getFirstMarker']()),_0x27d198=!0x0);return _0x27d198;}['noTrackChangesFixer'](_0x4c7c9c){if(_0x4c7c9c['batch']['isUndo']||!_0x4c7c9c['batch']['isLocal'])return!0x1;const _0x16b408=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x16b408['trackChangesCommand']['value'])return!0x1;let _0x2cd5c3=!0x1;const _0x481e13=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5558fb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3b201d=>'attribute'==_0x3b201d['type'])['filter'](_0x312595=>_0x481e13['includes'](_0x312595['attributeKey']));if(0x0==_0x5558fb['length'])return _0x2cd5c3;for(const _0x23cfb7 of _0x5558fb){const _0x2702ae=_0x16b408['_findSuggestions'](_0x23cfb7['range'],'attribute')['filter'](_0x471114=>!_0x471114['meta']['isNextTo'])['map'](_0x53647a=>_0x53647a['suggestion'])['filter'](_0x3a4d75=>{const _0x5a9c9a=_0x16b408['_getAttributeKey'](_0x3a4d75);return _0x481e13['includes'](_0x5a9c9a);});if(_0x2702ae['length']){for(const _0x3c0b8c of _0x2702ae)_0x4c7c9c['removeMarker'](_0x3c0b8c['getFirstMarker']());_0x2cd5c3=!0x0;}}return _0x2cd5c3;}['assureChains'](){const _0x1368ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35f398=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x906b1a;const _0x78605d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2d8ebd=>{if(_0x2d8ebd['data']['oldRange']||!_0x2d8ebd['data']['newRange'])return null;if(!_0x2d8ebd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5bac94}=_0x1368ad['_splitMarkerName'](_0x2d8ebd['name']);if(!_0x1368ad['hasSuggestion'](_0x5bac94))return null;const _0x2df567=_0x1368ad['getSuggestion'](_0x5bac94);return _0x35f398['includes'](_0x2df567['data']['key']);})['map'](_0x32728c=>{const {id:_0x34ba1d}=_0x1368ad['_splitMarkerName'](_0x32728c['name']),_0x5b6886=_0x1368ad['getSuggestion'](_0x34ba1d);return _0x906b1a=_0x5b6886['attributes']['groupId'],_0x5b6886['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x78605d['size'])return;const _0x27190e=_0x1368ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b630c=>'attribute'==_0x1b630c['type']&&_0x1b630c['data']&&_0x35f398['includes'](_0x1b630c['data']['key'])&&_0x1b630c['attributes']['groupId']!=_0x906b1a)['map'](_0x5ec0b6=>({'listItem':_0x5ec0b6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5ec0b6['attributes']['groupId']})),_0x5499a4=new Set();for(const {groupId:_0x4935ce,listItem:_0x5d077c}of _0x27190e)_0x78605d['has'](_0x5d077c)&&_0x5499a4['add'](_0x4935ce);for(const _0x39615f of _0x1368ad['getSuggestions']())_0x5499a4['has'](_0x39615f['attributes']['groupId'])&&_0x39615f['setAttribute']('groupId',_0x906b1a);}['_supportLegacySuggestions'](){const _0x4e9db3=this['editor'],_0x509284=_0x4e9db3['locale'],_0x4f9d00=_0x4e9db3['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4f9d00['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3e2131,_0x213723){const _0x297354=[];for(let _0x2ce6d3 of _0x3e2131)_0x2ce6d3['start']['nodeAfter']===_0x2ce6d3['end']['parent']&&(_0x2ce6d3=_0x4e9db3['model']['createRange'](_0x4e9db3['model']['createPositionAt'](_0x2ce6d3['start']['nodeAfter'],0x0))),_0x297354['push'](_0x2ce6d3);_0x4e9db3['model']['change'](_0x5ac8db=>{const _0x59eeee=_0x4e9db3['model']['document']['selection'],_0x5c7f52=Array['from'](_0x59eeee['getRanges']())['map'](_0x5d81ee=>_0x78f3c6['fromRange'](_0x5d81ee));_0x5ac8db['setSelection'](_0x297354),_0x4e9db3['commands']['get'](_0x213723['commandName'])['refresh'](),_0x213723['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4e9db3['execute'](_0x213723['commandName'],..._0x213723['commandParams']),_0x5ac8db['setSelection'](_0x5c7f52);for(const _0x4ea334 of _0x5c7f52)_0x4ea334['detach']();});}),_0x4f9d00['descriptionFactory']['registerElementLabel'](function(_0x168946){const _0x510ceb=!_0x4e9db3['model']['schema']['isObject'](_0x168946),_0x5984c5=_0x168946['previousSibling'],_0x4f73ae=_0x168946['nextSibling'],_0x29a8b1=_0x168946['getAttribute']('listItemId'),_0x2f350c=!_0x5984c5||_0x5984c5['getAttribute']('listItemId')!==_0x29a8b1,_0x1cefdf=!_0x4f73ae||_0x4f73ae['getAttribute']('listItemId')!==_0x29a8b1;return _0x510ceb&&Boolean(_0x29a8b1)&&_0x2f350c&&_0x1cefdf;},_0x5ad7a9=>o(_0x509284,'ELEMENT_LIST_ITEM',_0x5ad7a9));}['_registerLegacyDescription'](){const _0x600e06=this['editor'],_0x2c1bbf=_0x600e06['locale'];function _0x32548f(_0x190b46){const _0x38448f=_0x600e06['commands']['get']('bulletedList')['value'],_0x4e88e9=_0x600e06['commands']['get']('numberedList')['value'];return'numberedList'===_0x190b46?_0x38448f:_0x4e88e9;}_0x600e06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x47094a){if('formatBlock'!=_0x47094a['type'])return;const {data:_0x8132d2}=_0x47094a;if(!_0x8132d2)return;let _0x102316,_0xa89c68,_0x5d6aa2,_0x4574cd;switch(_0x8132d2['commandName']){case'bulletedList':_0x5d6aa2=_0x8132d2['commandParams'][0x0]['forceValue'],_0x4574cd=_0x32548f(_0x8132d2['commandName']),_0x102316=_0x5d6aa2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4574cd&&_0x600e06['config']['get']('list.multiBlock')||(_0x102316='*Change\x20to:*\x20%0'),_0xa89c68={'type':'format','content':o(_0x2c1bbf,_0x102316,o(_0x2c1bbf,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d6aa2=_0x8132d2['commandParams'][0x0]['forceValue'],_0x4574cd=_0x32548f(_0x8132d2['commandName']),_0x102316=_0x5d6aa2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4574cd&&_0x600e06['config']['get']('list.multiBlock')||(_0x102316='*Change\x20to:*\x20%0'),_0xa89c68={'type':'format','content':o(_0x2c1bbf,_0x102316,o(_0x2c1bbf,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x102316='*Indent:*\x20%0',_0xa89c68={'type':'format','content':o(_0x2c1bbf,_0x102316,o(_0x2c1bbf,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x102316=function(_0xbad216){const _0x2034f4=_0xbad216['getFirstRange']();let _0xff7d22=_0x2034f4['start']['nodeAfter'];for(;_0xff7d22&&_0x2034f4['containsItem'](_0xff7d22);){if(_0xff7d22['getAttribute']('listIndent')>0x0)return!0x1;_0xff7d22=_0xff7d22['nextSibling'];}return!0x0;}(_0x47094a)?o(_0x2c1bbf,'*Format:*\x20remove\x20from\x20%0',o(_0x2c1bbf,function(_0x5269bf){return'ELEMENT_'+_0x5269bf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x47094a))):o(_0x2c1bbf,'*Outdent:*\x20%0',o(_0x2c1bbf,'ELEMENT_LIST_ITEM')),_0xa89c68={'type':'format','content':_0x102316};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x8132d2['multipleBlocks']&&(_0x102316='*Merge:*\x20%0',_0xa89c68={'type':'deletion','content':o(_0x2c1bbf,_0x102316,o(_0x2c1bbf,'ELEMENT_LIST_ITEM'))});}return _0xa89c68;});}}function Te(_0x51cc05){let _0x5e37c6=_0x51cc05['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5e37c6;){const _0x149110=_0x5e37c6['getAttribute']('listItemId');if(!_0x149110)return!0x1;if(_0x149110==_0x51cc05['data']['newValue'])return'newValue';if(_0x149110==_0x51cc05['data']['oldValue'])return'oldValue';_0x5e37c6=_0x5e37c6['previousSibling'];}return!0x1;}class Se extends _0x236dec{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x51562e=this['editor']['config']['get']('list.properties'),_0x12027b=this['editor']['plugins']['get']('TrackChangesEditing');_0x51562e['styles']&&(_0x12027b['enableDefaultAttributesIntegration']('listStyle'),_0x12027b['registerBlockAttribute']('listStyle')),_0x51562e['reversed']&&(_0x12027b['enableDefaultAttributesIntegration']('listReversed'),_0x12027b['registerBlockAttribute']('listReversed')),_0x51562e['startIndex']&&(_0x12027b['enableDefaultAttributesIntegration']('listStart'),_0x12027b['registerBlockAttribute']('listStart'));const _0x1df0ac={'type':'format','content':''};_0x12027b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4b389b=this['editor']['locale'];_0x12027b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4b389b,'FORMAT_LIST_REVERSED')),_0x12027b['descriptionFactory']['registerDescriptionCallback'](_0x1fddb8=>{const {data:_0x300088}=_0x1fddb8;if(_0x300088&&'listReversed'==_0x300088['key'])return null==_0x300088['newValue']||0x0==_0x300088['newValue']&&null==_0x300088['oldValue']?_0x1df0ac:void 0x0;}),_0x12027b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4b389b,'FORMAT_LIST_START')),_0x12027b['descriptionFactory']['registerDescriptionCallback'](_0x4b177e=>{const {data:_0x315f14}=_0x4b177e;if(_0x315f14&&'listStart'==_0x315f14['key'])return null==_0x315f14['newValue']||0x1==_0x315f14['newValue']&&null==_0x315f14['oldValue']?_0x1df0ac:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x49e8a0=>{if(_0x49e8a0['batch']['isUndo'])return!0x1;let _0x3717eb=!0x1;const _0x57c634=_0x12027b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eff09=>{const _0x4fe324=_0x12027b['_getAttributeKey'](_0x2eff09);return'listStart'==_0x4fe324||'listReversed'==_0x4fe324;});for(const _0x5ee595 of _0x57c634){const _0xe9a2b3=_0x5ee595['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xe9a2b3||'customNumbered'==_0xe9a2b3)continue;_0x12027b['_findSuggestions'](_0x5ee595['getFirstRange'](),'attribute')['find'](_0x31c1a4=>'listType'==_0x12027b['_getAttributeKey'](_0x31c1a4['suggestion']))||(_0x49e8a0['removeMarker'](_0x5ee595['getFirstMarker']()),_0x3717eb=!0x0);}return _0x3717eb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5ed3b3){const _0x16f877=this['editor']['locale'],{data:_0x5d8842}=_0x5ed3b3,_0x546ac4={'type':'format','content':''};if(!_0x5d8842||'listStyle'!=_0x5d8842['key'])return;if(!_0x5d8842['oldValue'])return'default'==_0x5d8842['newValue']?_0x546ac4:{'type':'format','content':''+o(_0x16f877,'*Set\x20format:*\x20%0',o(_0x16f877,this['_getTranslationKeyForListStyle'](_0x5d8842['newValue'])))};if(!_0x5d8842['newValue']){if('default'==_0x5d8842['oldValue'])return _0x546ac4;let _0x72cb28=_0x5ed3b3['head'];for(;_0x72cb28;){if(_0x72cb28['data']&&'listType'==_0x72cb28['data']['key']&&_0x72cb28['data']['newValue'])return _0x546ac4;_0x72cb28=_0x72cb28['next'];}return{'type':'format','content':''+o(_0x16f877,'*Remove\x20format:*\x20%0',o(_0x16f877,this['_getTranslationKeyForListStyle'](_0x5d8842['oldValue'])))};}if('default'!=_0x5d8842['newValue'])return{'type':'format','content':''+o(_0x16f877,'*Set\x20format:*\x20%0',o(_0x16f877,this['_getTranslationKeyForListStyle'](_0x5d8842['newValue'])))};let _0x72663c=_0x5ed3b3['head'];for(;_0x72663c;){if(_0x72663c['data']&&'listType'==_0x72663c['data']['key']&&_0x72663c['data']['newValue']&&_0x72663c['data']['oldValue'])return _0x546ac4;_0x72663c=_0x72663c['next'];}return{'type':'format','content':o(_0x16f877,'*Set\x20format:*\x20%0',o(_0x16f877,'ELEMENT_'+_0x5ed3b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x41ffac=this['editor'],_0x5a38df=_0x41ffac['locale'];_0x41ffac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15fce4=>{if('formatBlock'!=_0x15fce4['type'])return;const {data:_0x36fe48}=_0x15fce4;if(!_0x36fe48)return;let _0x2122d6,_0x32c682;switch(_0x36fe48['commandName']){case'listStyle':_0x2122d6='*Change\x20to:*\x20%0',_0x32c682={'type':'format','content':o(_0x5a38df,_0x2122d6,o(_0x5a38df,this['_getTranslationKeyForListStyle'](_0x36fe48['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2122d6=_0x36fe48['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x32c682={'type':'format','content':o(_0x5a38df,_0x2122d6)};break;case'listStart':_0x2122d6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x32c682={'type':'format','content':o(_0x5a38df,_0x2122d6,_0x36fe48['commandParams'][0x0]['startIndex'])};}return _0x32c682;});}['_getTranslationKeyForListStyle'](_0x111b18){return'ELEMENT_'+function(_0x390fb8){if(_e['includes'](_0x390fb8))return'bulleted';if(Re['includes'](_0x390fb8))return'numbered';return null;}(_0x111b18)['toUpperCase']()+'_LIST_'+_0x111b18['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x236dec{static get['requires'](){return[_0x4079e2];}['init'](){const _0x5ec6a0=this['editor'],_0x1799d4=_0x5ec6a0['plugins']['get']('TrackChangesEditing'),_0x1c6e39=_0x5ec6a0['commands']['get']('enter');_0x1799d4['enableCommand']('enter',()=>{_0x5ec6a0['model']['change'](_0x5b8f3b=>{const _0x336410=_0x5ec6a0['model']['document']['selection'],_0x348012=_0x336410['getFirstPosition'](),_0x3aa6d4=_0x78f3c6['fromRange'](_0x336410['getFirstRange']());if(_0x1c6e39['enterBlock'](_0x5b8f3b)){const _0xded176=_0x5ec6a0['model']['createPositionAt'](_0x348012['parent']['nextSibling'],0x0),_0x310891=_0x5b8f3b['createRange'](_0x348012,_0xded176);_0x1799d4['markInsertion'](_0x310891);}else _0x5b8f3b['setSelection'](_0x5b8f3b['createRange'](_0x3aa6d4['end']));_0x3aa6d4['detach'](),_0x1c6e39['fire']('afterExecute',{'writer':_0x5b8f3b});});}),_0x5ec6a0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5ec6a0,'split'),{'priority':'high'}),_0x5ec6a0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x6479f7,_0x568eba,_0x35bdf6)=>{const _0x102d7b=_0x35bdf6['mapper']['markerNameToElements'](_0x568eba['markerName']);if(_0x102d7b){for(const _0x11ac62 of _0x102d7b)_0x11ac62['hasClass']('ck-suggestion-marker-split')&&(_0x35bdf6['mapper']['unbindElementFromMarkerName'](_0x11ac62,_0x568eba['markerName']),_0x35bdf6['writer']['remove'](_0x11ac62));}},{'priority':'high'}),_0x5ec6a0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ee1a9,_0x23023f,_0x30f6c3)=>{_0x30f6c3['options']['showSuggestionHighlights']&&De(_0x5ec6a0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1ee1a9,_0x23023f,_0x30f6c3);},{'priority':'high'});}}class Y extends _0x236dec{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1dccab=this['editor']['plugins']['get']('TrackChangesEditing');_0x1dccab['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1dccab['enableCommand']('findNext'),_0x1dccab['enableCommand']('findPrevious'),_0x1dccab['enableCommand']('replace'),_0x1dccab['enableCommand']('replaceAll');}['handleFindCommand'](_0xd0a69a,_0x47fc1f,_0x1f5622={}){const _0x21f917=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xd0a69a(_0x578c2b=>{let _0x15b773=('string'==typeof _0x47fc1f?_0x21f917['findByTextCallback'](_0x47fc1f,_0x1f5622):_0x47fc1f)(_0x578c2b);Array['isArray'](_0x15b773)&&(_0x15b773={'results':_0x15b773,'searchText':'string'==typeof _0x47fc1f?_0x47fc1f:''});const _0x76512b=_0x15b773['results']['filter'](_0x2f5d89=>!0x1===this['_isInDeletionRange'](_0x2f5d89,_0x578c2b['item']));return{..._0x15b773,'results':_0x76512b};},_0x1f5622);}['_isInDeletionRange'](_0x5efa96,_0x301791){const _0x57f754=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x301791,_0x5efa96['start']),this['editor']['model']['createPositionAt'](_0x301791,_0x5efa96['end']));for(const _0x406f2c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57f754['getIntersection'](_0x406f2c['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x236dec{['afterInit'](){const _0x32333e=this['editor']['locale'],_0x937d2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x48d214,commandName:_0xc5a1ce}of ro)this['editor']['plugins']['has'](_0x48d214)&&(_0x937d2['enableDefaultAttributesIntegration'](_0xc5a1ce),_0x937d2['registerInlineAttribute'](_0xc5a1ce));_0x937d2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x32333e,'FORMAT_FONT_SIZE')),_0x937d2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x32333e,'FORMAT_FONT_FAMILY')),_0x937d2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x32333e,'FORMAT_FONT_COLOR')),_0x937d2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x32333e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23247e=this['editor'],_0x34539d=_0x23247e['locale'];_0x23247e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2065d3=>{const _0x4c0024=_0x34539d['t'];if('formatInline'!=_0x2065d3['type'])return;const {data:_0x34154c}=_0x2065d3;if(null!=_0x34154c){if('fontSize'==_0x34154c['commandName']){const _0x5b7f34=_0x34154c['commandParams'][0x0]['value'];if(_0x5b7f34){const _0x12d955=_0x4c0024(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xd29267=>_0xd29267['model']==_0x5b7f34)['title'])['toLowerCase']();return{'type':'format','content':o(_0x34539d,'*Set\x20font\x20size:*\x20%0',_0x12d955)};}return{'type':'format','content':o(_0x34539d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x34154c['commandName']){const _0x11787b=_0x34154c['commandParams'][0x0]['value'];return _0x11787b?{'type':'format','content':o(_0x34539d,'*Set\x20font\x20family:*\x20%0',_0x11787b)}:{'type':'format','content':o(_0x34539d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x34154c['commandName']){const _0x80e19c=_0x34154c['commandParams'][0x0]['value'];if(_0x80e19c){const _0x2d85f7=_0x1a45f5(this['editor']['config']['get']('fontColor.colors'))['find'](_0xe8d733=>_0xe8d733['model']==_0x80e19c);let _0x2f59c1=_0x80e19c,_0x736592='';return _0x2d85f7&&(_0x2f59c1=_0x2d85f7['label'],_0x736592=_0x4c0024(_0x2f59c1)['toLowerCase']()),{'type':'format','content':o(_0x34539d,'*Set\x20font\x20color:*\x20%0',_0x736592)['trim'](),'color':{'value':_0x80e19c,'title':_0x736592||_0x2f59c1}};}return{'type':'format','content':o(_0x34539d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x34154c['commandName']){const _0x2945af=_0x34154c['commandParams'][0x0]['value'];if(_0x2945af){const _0x4a3694=_0x1a45f5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x58ea9b=>_0x58ea9b['model']==_0x2945af);let _0x127480=_0x2945af,_0x438a8d='';return _0x4a3694&&(_0x127480=_0x4a3694['label'],_0x438a8d=_0x4c0024(_0x127480)['toLowerCase']()),{'type':'format','content':o(_0x34539d,'*Set\x20font\x20background\x20color:*\x20%0',_0x438a8d)['trim'](),'color':{'value':_0x2945af,'title':_0x438a8d||_0x127480}};}return{'type':'format','content':o(_0x34539d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x236dec{['afterInit'](){const _0xd06786=this['editor'],_0x4c0ec3=_0xd06786['plugins']['get']('TrackChangesEditing'),_0x39d5d4=_0xd06786['commands']['get']('copyFormat'),_0x5e7f6e=_0xd06786['commands']['get']('pasteFormat');_0x39d5d4&&_0x5e7f6e&&(_0x4c0ec3['enableDefaultAttributesIntegration']('pasteFormat'),_0x4c0ec3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4949f7=this['editor'],_0x3ce1e1=_0x4949f7['locale'];_0x4949f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9b246e=>{if('formatBlock'!=_0x9b246e['type']&&'formatInline'!=_0x9b246e['type'])return;const {data:_0x4cfd92}=_0x9b246e;if(_0x4cfd92&&'pasteFormat'===_0x4cfd92['commandName']){const _0x59a196=[],_0x439f72=_0x4cfd92['commandParams'][0x0];for(const [_0x54b4ac,_0x23f8a8]of Object['entries'](_0x439f72))_0x59a196['push'](so(_0x4949f7,_0x54b4ac,_0x23f8a8));return _0x59a196['length']?{'type':'format','content':o(_0x3ce1e1,'*Set\x20format\x20to:*\x20%0',_0x59a196['join'](',\x20'))}:{'type':'format','content':o(_0x3ce1e1,'*Remove\x20all\x20formatting*')};}});}}function so(_0x36b6c4,_0x98c86e,_0xd7c21b){const _0x3f1bcc=_0x36b6c4['locale']['t'],_0x2b0c1a=_0x98c86e['split'](/(?=[A-Z])/)['join']('\x20'),_0x421b5e=_0x3f1bcc(_0x2b0c1a['charAt'](0x0)['toUpperCase']()+_0x2b0c1a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xd7c21b)return _0x421b5e;if('fontColor'===_0x98c86e||'fontBackgroundColor'===_0x98c86e){const _0x2a461e=_0x1a45f5(_0x36b6c4['config']['get']('fontColor.colors'))['find'](_0x1999d5=>_0x1999d5['model']==_0xd7c21b);return _0x421b5e+'\x20('+(_0x2a461e?_0x3f1bcc(_0x2a461e['label'])['toLowerCase']():_0xd7c21b)+')';}if('fontSize'===_0x98c86e&&isNaN(parseFloat(_0xd7c21b))){const _0x5f0f12=_0x36b6c4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x36b6c4['config']['get']('fontSize.options'))['find'](_0x55ed65=>_0x55ed65['model']==_0xd7c21b);return _0x421b5e+'\x20('+(_0x5f0f12?_0x3f1bcc(_0x5f0f12['title'])['toLowerCase']():_0xd7c21b)+')';}return _0x421b5e+'\x20('+_0xd7c21b+')';}class nt extends _0x236dec{['_headingOptions'];['afterInit'](){const _0xd56742=this['editor'];if(!_0xd56742['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd56742['config']['get']('heading.options');const _0x50ea92=_0xd56742['locale'],_0x41521a=_0xd56742['plugins']['get']('TrackChangesEditing');_0x41521a['enableDefaultAttributesIntegration']('heading');for(const _0x389d91 of this['_headingOptions'])'paragraph'!=_0x389d91['model']&&_0x41521a['descriptionFactory']['registerElementLabel'](_0x389d91['model'],_0x4c8a94=>{const _0x359472=this['_getHeadingLevel'](_0x389d91['model']);return null!==_0x359472?_0x4a8e38(_0x4c8a94,_0x359472):_0x4fc84b(_0x4c8a94,_0x389d91['title']);});function _0x4a8e38(_0x1d0dd1,_0x18d2b2){return o(_0x50ea92,'ELEMENT_HEADING',[_0x1d0dd1,_0x18d2b2]);}function _0x4fc84b(_0x221185,_0x4b5096){return o(_0x50ea92,'ELEMENT_HEADING_CUSTOM',[_0x221185,_0x4b5096]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x269828=this['editor'],_0x4112f0=_0x269828['locale'];function _0x4f3168(_0xfde31b,_0x2044b5){return o(_0x4112f0,'ELEMENT_HEADING_CUSTOM',[_0xfde31b,_0x2044b5]);}_0x269828['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ea02c=>{if('formatBlock'!=_0x2ea02c['type'])return;const {data:_0x46d536}=_0x2ea02c;if(_0x46d536&&'heading'==_0x46d536['commandName']){const _0x5c05ad=_0x46d536['commandParams'][0x0]['value'],_0x31395d=this['_getHeadingLevel'](_0x5c05ad);if(null!==_0x31395d)return{'type':'format','content':o(_0x4112f0,'*Change\x20to:*\x20%0',(_0x18ee8f=0x1,_0x274228=_0x31395d,o(_0x4112f0,'ELEMENT_HEADING',[_0x18ee8f,_0x274228])))};const _0x43b940=this['_headingOptions']['find'](_0x25f280=>_0x25f280['model']===_0x5c05ad)['title'];return{'type':'format','content':o(_0x4112f0,'*Change\x20to:*\x20%0',_0x4f3168(0x1,_0x43b940))};}var _0x18ee8f,_0x274228;});}['_getHeadingLevel'](_0x481290){const _0x50ba9f=_0x481290['match'](/^heading(\d+)/);if(_0x50ba9f)return _0x50ba9f[0x1];const _0x47b8a2=this['_headingOptions']?.['find'](_0x592035=>_0x592035['model']==_0x481290);if(_0x47b8a2&&_0x47b8a2['view']){const _0x104249=_0x47b8a2['view'],_0x24c650=(_0x104249['name']??_0x104249)['match'](/^h(\d+)/);if(_0x24c650)return _0x24c650[0x1];}return null;}}class it extends _0x236dec{['afterInit'](){const _0x8dfc=this['editor'];if(!_0x8dfc['plugins']['has']('HighlightEditing'))return;const _0x2ed71f=_0x8dfc['plugins']['get']('TrackChangesEditing'),_0x4c8546=_0x8dfc['locale'];_0x2ed71f['enableDefaultAttributesIntegration']('highlight'),_0x2ed71f['registerInlineAttribute']('highlight'),_0x2ed71f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4c8546,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f1cb9=this['editor'],_0x334a80=_0x2f1cb9['locale'];_0x2f1cb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a33e5=>{if('formatInline'!=_0x1a33e5['type'])return;const {data:_0x4c2d45}=_0x1a33e5;if(_0x4c2d45&&'highlight'==_0x4c2d45['commandName']){const _0x53c0aa=_0x334a80['t'],_0x26a03b=_0x4c2d45['commandParams'][0x0]['value'];if(_0x26a03b){const _0x365308=_0x2f1cb9['config']['get']('highlight.options')['find'](_0x578032=>_0x578032['model']==_0x26a03b),_0x5bfe9c=_0x53c0aa(_0x365308['title'])['toLowerCase']();return{'type':'format','content':o(_0x334a80,'*Set\x20highlight:*\x20%0',_0x5bfe9c),'color':{'value':_0x365308['color'],'title':_0x365308['title']}};}return{'type':'format','content':o(_0x334a80,'*Remove\x20highlight*',o(_0x334a80,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x236dec{['afterInit'](){const _0x88b89d=this['editor'];if(!_0x88b89d['plugins']['has']('HorizontalLineEditing'))return;_0x88b89d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4ad85b=_0x88b89d['plugins']['get']('TrackChangesEditing'),_0x580e7b=_0x88b89d['locale'];_0x4ad85b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1b94ad=>o(_0x580e7b,'ELEMENT_HORIZONTAL_LINE',_0x1b94ad)),_0x88b89d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x13af42,{writer:_0xbd4c92,options:_0x38cb55})=>{if(!_0x38cb55['showSuggestionHighlights'])return null;const _0x51ed75=_0xbd4c92['createContainerElement']('div'),_0x507c7c=_0xbd4c92['createEmptyElement']('hr');return _0xbd4c92['addClass']('ck-horizontal-line',_0x51ed75),_0xbd4c92['insert'](_0xbd4c92['createPositionAt'](_0x51ed75,0x0),_0x507c7c),_0x51ed75;},'converterPriority':'high'});}}class st extends _0x236dec{['afterInit'](){const _0x474445=this['editor'];if(!_0x474445['plugins']['has']('HtmlEmbed'))return;const _0x343b18=_0x474445['plugins']['get']('TrackChangesEditing'),_0x1308a4=_0x474445['locale'];_0x343b18['descriptionFactory']['registerElementLabel']('rawHtml',_0x44533e=>o(_0x1308a4,'ELEMENT_HTML_EMBED',_0x44533e)),_0x343b18['enableDefaultAttributesIntegration']('htmlEmbed'),_0x343b18['registerBlockAttribute']('value'),_0x343b18['descriptionFactory']['registerDescriptionCallback'](_0x3e2d54=>{if('attribute'!=_0x3e2d54['type'])return;const {data:_0x51843c}=_0x3e2d54;if(_0x51843c&&'value'==_0x51843c['key']&&_0x3e2d54['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x276209=o(_0x1308a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1308a4,'*Change\x20%0\x20content*',_0x276209)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3758e1=this['editor'],_0x4d7563=_0x3758e1['locale'];_0x3758e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x605239=>{if('formatBlock'!=_0x605239['type'])return;const {data:_0x1a82c5}=_0x605239;if(_0x1a82c5&&'htmlEmbed'==_0x1a82c5['commandName']){const _0x3c6397=o(_0x4d7563,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4d7563,'*Change\x20%0\x20content*',_0x3c6397)};}});}}class ot extends _0x236dec{['afterInit'](){const _0x14fa00=this['editor'];if(!_0x14fa00['plugins']['has']('ImageEditing'))return;const _0x1e93a3=_0x14fa00['plugins']['get']('TrackChangesEditing'),_0x724525=_0x14fa00['plugins']['get']('ImageUtils'),_0x1c7d9a=_0x14fa00['locale'];_0x1e93a3['enableCommand']('insertImage'),_0x1e93a3['descriptionFactory']['registerElementLabel']('imageBlock',_0x56578c=>o(_0x1c7d9a,'ELEMENT_IMAGE',_0x56578c)),_0x1e93a3['descriptionFactory']['registerElementLabel']('imageInline',_0x210c89=>o(_0x1c7d9a,'ELEMENT_INLINE_IMAGE',_0x210c89)),_0x1e93a3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1c7d9a,'ELEMENT_CAPTION')),_0x14fa00['plugins']['has']('ImageUploadEditing')&&_0x1e93a3['enableCommand']('uploadImage'),_0x14fa00['plugins']['has']('ImageBlockEditing')&&_0x14fa00['plugins']['has']('ImageInlineEditing')&&(_0x1e93a3['enableCommand']('imageTypeInline',(_0x5227dc,_0x462073)=>{const _0x11602d=_0x724525['getClosestSelectedImageElement'](_0x14fa00['model']['document']['selection']);_0x14fa00['model']['change'](()=>{_0x1e93a3['markBlockFormat'](_0x11602d,{'commandName':'imageTypeInline','commandParams':[_0x462073]},[],'convertBlockImageToInline');});}),_0x1e93a3['enableCommand']('imageTypeBlock',(_0xfab088,_0x4d496c)=>{_0x14fa00['model']['change'](_0x2cff57=>{let _0x5578a7=_0x724525['getClosestSelectedImageElement'](_0x14fa00['model']['document']['selection']),_0x9aa530=_0x2cff57['createRangeOn'](_0x5578a7);const _0x13d5c4=_0x10a158['fromPosition'](_0x9aa530['start'],'toPrevious'),_0x562fbb=_0x10a158['fromPosition'](_0x9aa530['end'],'toNext');_0x1e93a3['forceDefaultExecution'](()=>_0xfab088(_0x4d496c)),_0x5578a7=_0x724525['getClosestSelectedImageElement'](_0x14fa00['model']['document']['selection']),_0x9aa530=_0x2cff57['createRangeOn'](_0x5578a7);const _0x23e5cf=_0x2cff57['createRange'](_0x13d5c4,_0x562fbb);_0x13d5c4['detach'](),_0x562fbb['detach'](),_0x1e93a3['markBlockFormat'](_0x5578a7,{'commandName':'imageTypeInline','commandParams':[_0x4d496c]},[],'convertInlineImageToBlock'),_0x23e5cf['start']['isBefore'](_0x9aa530['start'])&&_0x1e93a3['markInsertion'](_0x2cff57['createRange'](_0x23e5cf['start'],_0x9aa530['start']),'convertInlineImageToBlock'),_0x9aa530['end']['isBefore'](_0x23e5cf['end'])&&_0x1e93a3['markInsertion'](_0x2cff57['createRange'](_0x9aa530['end'],_0x23e5cf['end']),'convertInlineImageToBlock');});}),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1e93a3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5e5897])=>{const _0x4af297=_0x1e93a3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1166e2=_0x5e5897['start'],_0x5f45ca=_0x5e5897['end'];const _0x3bf0bc=_0x14fa00['model']['schema']['getNearestSelectionRange'](_0x1166e2,'backward'),_0x464741=_0x14fa00['model']['schema']['getNearestSelectionRange'](_0x5f45ca,'forward');_0x3bf0bc['isCollapsed']&&(_0x1166e2=_0x3bf0bc['start']),_0x464741['isCollapsed']&&(_0x5f45ca=_0x464741['end']),_0x4af297([_0x14fa00['model']['createRange'](_0x1166e2,_0x5f45ca)]);}),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2e0e21),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2e0e21)),_0x14fa00['plugins']['has']('ImageCaptionEditing')&&(_0x1e93a3['enableCommand']('toggleImageCaption',(_0x51b386,_0x2f1bb1)=>{const _0x3bbc01=_0x14fa00['plugins']['get']('ImageCaptionUtils');let _0x42a603=_0x724525['getClosestSelectedImageElement'](_0x14fa00['model']['document']['selection']),_0x116567=_0x3bbc01['getCaptionFromImageModelElement'](_0x42a603);_0x14fa00['model']['change'](()=>{if(_0x116567)return void _0x1e93a3['markDeletion'](_0x14fa00['model']['createRangeOn'](_0x116567));const _0x2b7f55=_0x724525['isBlockImage'](_0x42a603);_0x51b386(_0x2f1bb1),_0x42a603=_0x724525['getClosestSelectedImageElement'](_0x14fa00['model']['document']['selection']),_0x116567=_0x3bbc01['getCaptionFromImageModelElement'](_0x42a603),_0x1e93a3['markInsertion'](_0x14fa00['model']['createRangeOn'](_0x116567),_0x2b7f55?null:'imageCaption');});}),_0x1e93a3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2e0e21));const _0x5096c5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbe4481(_0x109d0a,_0x126350){const _0x4bbb08=_0x5096c5['findIndex'](({type:_0x16b80e,subType:_0x42f750})=>_0x109d0a['type']==_0x16b80e&&_0x109d0a['subType']==_0x42f750),_0x408b2c=_0x5096c5['findIndex'](({type:_0x2cea55,subType:_0x51d8bc})=>_0x126350['type']==_0x2cea55&&_0x126350['subType']==_0x51d8bc);if(_0x4bbb08<0x0||_0x408b2c<0x0)return!0x1;const _0x2dd616=_0x109d0a['getFirstRange'](),_0x41c6dc=_0x126350['getFirstRange']();if((0x0==_0x4bbb08||0x1==_0x4bbb08)&&0x2==_0x408b2c&&_0x2dd616['isIntersecting'](_0x41c6dc))return!0x0;if(0x2==_0x4bbb08&&0x3==_0x408b2c){const _0xf18d43=_0x1e93a3['_findSuggestions'](_0x2dd616,'insertion')['filter'](({suggestion:_0x18ee8b,meta:_0x1d3662})=>_0x1d3662['isOwn']&&'convertInlineImageToBlock'==_0x18ee8b['subType']);if(_0xf18d43['length']>0x1&&_0x41c6dc['end']['isEqual'](_0x2dd616['start']))return!0x0;if(0x1==_0xf18d43['length']&&(_0x2dd616['start']['isEqual'](_0x41c6dc['end'])||_0x2dd616['end']['isEqual'](_0x41c6dc['start'])))return!0x0;}if(0x3==_0x4bbb08&&0x3==_0x408b2c&&_0x2dd616['start']['isBefore'](_0x41c6dc['start'])){const _0x15df1a=_0x2dd616['end']['nodeAfter'],_0x4ec682=_0x41c6dc['start']['nodeBefore'];return _0x724525['isBlockImage'](_0x15df1a)&&_0x15df1a===_0x4ec682;}return!0x1;}function _0x2e0e21(_0x3d5d7b,_0x578c1d){return _0xbe4481(_0x3d5d7b,_0x578c1d)?[_0x3d5d7b,_0x578c1d]:_0xbe4481(_0x578c1d,_0x3d5d7b)?[_0x578c1d,_0x3d5d7b]:null;}_0x14fa00['plugins']['has']('ImageResize')&&(_0x1e93a3['enableDefaultAttributesIntegration']('resizeImage'),_0x1e93a3['registerBlockAttribute']('resizedWidth'),_0x1e93a3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1c7d9a,'FORMAT_IMAGE_SIZE'))),_0x14fa00['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1e93a3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1e93a3['registerBlockAttribute']('alt')),_0x14fa00['plugins']['has']('PictureEditing')&&(_0x1e93a3['registerBlockAttribute']('sources'),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x10f250=>{if('attribute'!=_0x10f250['type'])return;const {data:_0x3c8797}=_0x10f250;return _0x3c8797&&'sources'==_0x3c8797['key']?{'type':'format','content':''}:void 0x0;})),_0x14fa00['plugins']['has']('ImageSizeAttributes')&&(_0x1e93a3['registerBlockAttribute']('width'),_0x1e93a3['registerBlockAttribute']('height'),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x5f1979=>{if('attribute'!=_0x5f1979['type'])return;const {data:_0x5a1681}=_0x5f1979;return!_0x5a1681||'width'!=_0x5a1681['key']&&'height'!=_0x5a1681['key']?void 0x0:{'type':'format','content':''};})),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x3fa5ef=>{if(!!_0x5096c5['find'](({type:_0x5c99a4,subType:_0x5733b8})=>_0x3fa5ef['type']==_0x5c99a4&&_0x3fa5ef['subType']==_0x5733b8))return _0x3fa5ef['previous']?{}:void 0x0;}),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x4ab5ec=>{if('insertion'==_0x4ab5ec['type']||'deletion'==_0x4ab5ec['type']){const _0x4fe726=_0x4ab5ec['getContainedElement']();if(_0x4fe726&&_0x4fe726['is']('element','caption'))return{'type':'insertion'==_0x4ab5ec['type']?'addObject':'removeObject','element':_0x4fe726,'quantity':0x1};}}),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x581fc5=>'formatBlock'==_0x581fc5['type']&&'convertInlineImageToBlock'==_0x581fc5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x581fc5['type']&&'convertBlockImageToInline'==_0x581fc5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1e93a3['descriptionFactory']['registerDescriptionCallback'](_0x1b1a13=>{if('attribute'!=_0x1b1a13['type'])return;const {data:_0x154122}=_0x1b1a13;if(!_0x154122||'alt'!=_0x154122['key'])return;const _0x1d9df8=_0x154122['newValue'];return _0x1d9df8?{'type':'format','content':o(_0x1c7d9a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d9df8+'\x22')}:{'type':'format','content':o(_0x1c7d9a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57880c=this['editor'],_0x384759=_0x57880c['locale'];_0x57880c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x152fce=>{if('formatBlock'!=_0x152fce['type']&&'formatInline'!=_0x152fce['type'])return;const {data:_0x29b650}=_0x152fce;if(_0x29b650){if('imageTextAlternative'==_0x29b650['commandName']){const _0x3fc393=_0x29b650['commandParams'][0x0]['newValue'];return _0x3fc393?{'type':'format','content':o(_0x384759,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3fc393+'\x22')}:{'type':'format','content':o(_0x384759,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x29b650['commandName']){const _0x1256ff=_0x29b650['commandParams'][0x0]['width'];return _0x1256ff?{'type':'format','content':o(_0x384759,'*Set\x20image\x20width:*\x20%0',_0x1256ff)}:{'type':'format','content':o(_0x384759,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x236dec{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x28113d=this['editor']['locale'],_0x4e3ed5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e3ed5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4e3ed5['registerBlockAttribute']('src'),_0x4e3ed5['descriptionFactory']['registerDescriptionCallback'](_0x2003ae=>{if('attribute'!=_0x2003ae['type'])return;const {data:_0xccefe5}=_0x2003ae;return _0xccefe5&&'src'==_0xccefe5['key']?_0xccefe5['newValue']&&_0xccefe5['oldValue']?{'type':'format','content':o(_0x28113d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x36458e=this['editor']['plugins']['get']('TrackChangesEditing');_0x36458e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x36458e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36458e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x36458e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19e743=this['editor'],_0x2c38cd=_0x19e743['locale'];_0x19e743['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x589bfb=>{if('formatBlock'!=_0x589bfb['type']&&'formatInline'!=_0x589bfb['type'])return;const {data:_0x234d83}=_0x589bfb;if(!_0x234d83||'replaceImageSource'!=_0x234d83['commandName'])return;return{'type':'format','content':o(_0x2c38cd,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x236dec{['afterInit'](){const _0x3a7659=this['editor'];if(!_0x3a7659['plugins']['has']('ImageStyleEditing'))return;const _0x4261c9=_0x3a7659['plugins']['get']('TrackChangesEditing'),_0x4b7024=_0x3a7659['plugins']['get']('ImageUtils'),_0x276cfe={};_0x4261c9['enableCommand']('imageStyle',(_0x450fe3,_0x1794bf)=>{const _0x462c0a=_0x3a7659['plugins']['get']('Users')['me'],_0x2c1265=_0x3a7659['commands']['get']('imageStyle');let _0x5adda4=_0x4b7024['getClosestSelectedImageElement'](_0x3a7659['model']['document']['selection']),_0x5ebcfc=_0x3a7659['model']['createRangeOn'](_0x5adda4),_0x89e21f=_0x2c1265['value'];if(_0x89e21f==_0x1794bf['value'])return;const _0x184c85={'commandName':'imageStyle','commandParams':[_0x1794bf],'formatGroupId':_0x598835()};_0x3a7659['model']['change'](()=>{if(_0x4261c9['getSuggestions']()['filter'](_0x51c8da=>_0x51c8da['isInContent']&&_0x462c0a==_0x51c8da['author']&&('formatBlock'==_0x51c8da['type']||'formatInline'==_0x51c8da['type'])&&('imageStylePreApply'==_0x51c8da['subType']||'imageStylePostApply'==_0x51c8da['subType'])&&_0x51c8da['getFirstRange']()['isEqual'](_0x5ebcfc))['forEach'](_0x144aec=>_0x4261c9['discardSuggestion'](_0x144aec['head'])),_0x5adda4=_0x4b7024['getClosestSelectedImageElement'](_0x3a7659['model']['document']['selection']),_0x5ebcfc=_0x3a7659['model']['createRangeOn'](_0x5adda4),_0x2c1265['refresh'](),_0x3a7659['commands']['get']('imageTypeInline')['refresh'](),_0x3a7659['commands']['get']('imageTypeBlock')['refresh'](),_0x89e21f=_0x2c1265['value'],_0x89e21f!=_0x1794bf['value'])return _0x4b7024['isInlineImage'](_0x5adda4)&&_0x2c1265['shouldConvertImageType'](_0x1794bf['value'],_0x5adda4)?(_0x450fe3({..._0x1794bf,'setImageSizes':!0x1}),_0x5adda4=_0x4b7024['getClosestSelectedImageElement'](_0x3a7659['model']['document']['selection']),void _0x4261c9['markBlockFormat'](_0x5adda4,{..._0x184c85,'commandReversedParams':[{'value':_0x89e21f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4b7024['isBlockImage'](_0x5adda4)?_0x4261c9['markBlockFormat'](_0x5adda4,_0x184c85,[],'imageStylePostApply'):_0x4261c9['markInlineFormat'](_0x5ebcfc,_0x184c85,'imageStylePostApply'));});});for(const _0x2315ab of _0x3a7659['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x276cfe[_0x2315ab['name']]=_0x2315ab['title']['toLowerCase']();_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x320d11])=>{_0x4b7024['setImageNaturalSizeAttributes'](_0x320d11['getContainedElement']());}),_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x257ae9,_0x5be53c)=>{_0x4261c9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x257ae9,{'commandName':_0x5be53c['commandName'],'commandParams':_0x5be53c['commandReversedParams']});}),_0x4261c9['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x69897b,_0x2fc513){if(_0x2f702f(_0x69897b,_0x2fc513))return[_0x69897b,_0x2fc513];if(_0x2f702f(_0x2fc513,_0x69897b))return[_0x2fc513,_0x69897b];return null;});const _0x5143ab=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f702f(_0x216774,_0x28caa8){const _0xc1bb21=_0x5143ab['findIndex'](({type:_0x49fc0c,subType:_0x593ede})=>_0x216774['type']==_0x49fc0c&&_0x216774['subType']==_0x593ede),_0x39e815=_0x5143ab['findIndex'](({type:_0x4b1cd6,subType:_0x47c15c})=>_0x28caa8['type']==_0x4b1cd6&&_0x28caa8['subType']==_0x47c15c);if(_0xc1bb21<0x0||_0x39e815<0x0)return!0x1;const _0x45f5e0=_0x216774['getFirstRange'](),_0x496c7f=_0x28caa8['getFirstRange']();if((0x0==_0xc1bb21||0x1==_0xc1bb21)&&0x2==_0x39e815&&_0x45f5e0['isIntersecting'](_0x496c7f))return!0x0;if(0x2==_0xc1bb21&&0x3==_0x39e815){const _0xcf3e9a=_0x4261c9['_findSuggestions'](_0x45f5e0,'insertion')['filter'](({suggestion:_0x2d10ef,meta:_0x2ede82})=>_0x2ede82['isOwn']&&'convertInlineImageToBlock'==_0x2d10ef['subType']);if(_0xcf3e9a['length']>0x1&&_0x496c7f['end']['isEqual'](_0x45f5e0['start']))return!0x0;if(0x1==_0xcf3e9a['length']&&(_0x45f5e0['start']['isEqual'](_0x496c7f['end'])||_0x45f5e0['end']['isEqual'](_0x496c7f['start'])))return!0x0;}if(0x3==_0xc1bb21&&0x3==_0x39e815&&_0x45f5e0['start']['isBefore'](_0x496c7f['start'])){const _0x5dcac7=_0x45f5e0['end']['nodeAfter'],_0x134572=_0x496c7f['start']['nodeBefore'];return _0x4b7024['isBlockImage'](_0x5dcac7)&&_0x5dcac7===_0x134572;}return!0x1;}_0x3a7659['model']['document']['registerPostFixer'](()=>{let _0x1f40b9=!0x1;const _0xebc91a=Array['from'](_0x3a7659['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1927fc,data:_0x565c92}of _0xebc91a){const {group:_0x40528d,type:_0x24c142,subType:_0x1dbb36,id:_0x54f3d2}=_0x4261c9['_splitMarkerName'](_0x1927fc);if('suggestion'==_0x40528d&&_0x4261c9['hasSuggestion'](_0x54f3d2)){if('formatBlock'==_0x24c142&&('imageStylePreApply'==_0x1dbb36||'imageStylePostApply'==_0x1dbb36)){const _0x502123=_0x4261c9['getSuggestion'](_0x54f3d2);if(_0x565c92['newRange']){const _0x148d26=_0x502123['getFirstRange']()['getContainedElement']();if(_0x4b7024['isBlockImage'](_0x148d26))continue;_0x4261c9['discardSuggestion'](_0x502123),_0x1f40b9=!0x0;}}if('insertion'==_0x24c142&&'imageCaption'==_0x1dbb36&&!_0x565c92['newRange']){const _0x33bb56=_0x4261c9['getSuggestion'](_0x54f3d2);_0x33bb56['next']&&_0x33bb56['next']['isInContent']&&(_0x4261c9['discardSuggestion'](_0x33bb56['next']),_0x1f40b9=!0x0);}}}return _0x1f40b9;}),this['_registerLegacyDescription'](_0x276cfe);}['_registerLegacyDescription'](_0x1af37a){const _0x17b774=this['editor'],_0x7e5297=_0x17b774['locale'];_0x17b774['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ab8b=>{if('formatBlock'!=_0x41ab8b['type']&&'formatInline'!=_0x41ab8b['type'])return;const {data:_0xfd0657}=_0x41ab8b;if(!_0xfd0657||'imageStyle'!=_0xfd0657['commandName'])return;const _0x5ec6d5=_0xfd0657['commandParams'][0x0]['value'];return _0x3a2cfc('side'===_0x5ec6d5?o(_0x7e5297,'FORMAT_SIDE_IMAGE'):_0x1af37a[_0x5ec6d5]||_0x5ec6d5);function _0x3a2cfc(_0x50259a){return{'type':'format','content':o(_0x7e5297,'*Format:*\x20%0',_0x50259a)};}});}}class ct extends _0x236dec{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2fce8e){super(_0x2fce8e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2a36e9=this['editor'],_0x1f4b89=_0x2a36e9['commands']['get']('importWord'),_0x2ff294=_0x2a36e9['commands']['get']('trackChanges');_0x1f4b89&&(_0x1f4b89['on']('execute',(_0x5bd60e,[,_0x59eb9b])=>{this['_trackChangesValueDuringImport']=_0x2ff294['value'],_0x59eb9b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1f4b89,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1f4b89,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2ff294['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2a36e9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x404a35,_0x466b39){const {suggestions:_0x3a9e5d}=_0x466b39,_0x730c02=this['editor']['commands']['get']('trackChanges'),_0x117bdb=_0x730c02['value'];this['_trackChangesValueDuringImport']!==_0x117bdb&&(_0x730c02['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a9e5d&&_0x3a9e5d['forEach'](({id:_0x275c55,type:_0x303778,author:_0xa0730b,created_at:_0xa1724b})=>{const _0x2f5d56={'id':_0x275c55,'type':_0x303778,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xa0730b,'createdAt':_0xa1724b?new Date(_0xa1724b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2f5d56);});}}class ut extends _0x236dec{['afterInit'](){const _0x37bd76=this['editor'],_0x218158=_0x37bd76['plugins']['get']('TrackChangesEditing');if(_0x37bd76['plugins']['has']('IndentEditing')&&(_0x218158['enableCommand']('indent'),_0x218158['enableCommand']('outdent')),_0x37bd76['plugins']['has']('IndentBlock')){for(const _0x294c5f of['indentBlock','outdentBlock'])_0x218158['enableDefaultAttributesIntegration'](_0x294c5f);}const _0x5b5014=_0x37bd76['locale'];_0x218158['registerBlockAttribute']('blockIndent'),_0x218158['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5b5014,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a7125=this['editor'],_0x227c1c=_0x4a7125['locale'],_0x437a52=_0x4a7125['plugins']['get']('TrackChangesEditing');_0x437a52['descriptionFactory']['registerDescriptionCallback'](_0x507125=>{if('formatBlock'!=_0x507125['type'])return;const {data:_0x1c106d}=_0x507125;if(!_0x1c106d)return;if('indentBlock'!=_0x1c106d['commandName']&&'outdentBlock'!=_0x1c106d['commandName'])return;const _0x3df815=_0x507125['getItems']()[0x0],_0x38966d=_0x437a52['descriptionFactory']['getItemLabel'](_0x3df815);return'indentBlock'==_0x1c106d['commandName']?{'type':'format','content':o(_0x227c1c,'*Indent:*\x20%0',_0x38966d)}:'outdentBlock'==_0x1c106d['commandName']?{'type':'format','content':o(_0x227c1c,'*Outdent:*\x20%0',_0x38966d)}:void 0x0;});}}class ft extends _0x236dec{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x236dec{['afterInit'](){const _0x29fe23=this['editor'];if(!_0x29fe23['plugins']['has']('LinkEditing'))return;const _0x52dace=_0x29fe23['plugins']['get']('TrackChangesEditing'),_0x3e1753=_0x29fe23['commands']['get']('link');_0x52dace['enableDefaultAttributesIntegration']('link'),_0x52dace['enableDefaultAttributesIntegration']('unlink'),_0x52dace['registerInlineAttribute']('linkHref');for(const _0x137727 of _0x3e1753['manualDecorators'])_0x52dace['registerInlineAttribute'](_0x137727['id']),_0x52dace['descriptionFactory']['registerAttributeLabel'](_0x137727['id'],'link\x20('+_0x137727['label']['toLowerCase']()+')');_0x52dace['descriptionFactory']['registerDescriptionCallback'](_0x300d76=>{if('attribute'!=_0x300d76['type'])return;const {data:_0xfb0f22}=_0x300d76;if(!_0xfb0f22||'linkHref'!=_0xfb0f22['key'])return;const _0xb8124=_0xfb0f22['newValue'],_0x2c65da=_0x29fe23['locale'];return{'type':'format','content':null==_0xb8124?o(_0x2c65da,'*Remove\x20link*'):o(_0x2c65da,'*Set\x20link:*\x20%0','\x22'+_0xb8124+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x774a8c=this['editor'],_0x2ce817=_0x774a8c['locale'];_0x774a8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x125b35=>{if('formatInline'!=_0x125b35['type'])return;const {data:_0x2f14c0}=_0x125b35;if(_0x2f14c0){if('link'==_0x2f14c0['commandName']){const _0x20770b=_0x2f14c0['commandParams'][0x0];return{'type':'format','content':o(_0x2ce817,'*Set\x20link:*\x20%0','\x22'+_0x20770b+'\x22')};}return'unlink'==_0x2f14c0['commandName']?{'type':'format','content':o(_0x2ce817,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x236dec{['afterInit'](){const _0x2219a8=this['editor'],_0x118391=_0x2219a8['locale'];if(!_0x2219a8['plugins']['has']('LegacyListEditing'))return;const _0x2a5744=_0x2219a8['plugins']['get']('TrackChangesEditing'),_0xd233ee=_0x2219a8['plugins']['has']('LegacyTodoListEditing');function _0x128fcf(_0xb6d779){return()=>{const _0x9d9405=_0x2219a8['model']['document']['selection'],_0x43ec95=_0x2219a8['commands']['get'](_0xb6d779);if(_0x43ec95['value'])return void _0x2219a8['execute']('paragraph',{});const _0x3e1bc5=_0xb6d779['slice'](0x0,-0x4),_0x18efe5=function(_0x217718,_0x14f967,_0x51c260){let _0x3b9b38=Array['from'](_0x217718)['filter'](_0x40440d=>function(_0x5535cb,_0x419d49){return _0x419d49['checkChild'](_0x5535cb['parent'],'listItem')&&!_0x419d49['isObject'](_0x5535cb);}(_0x40440d,_0x51c260));_0x3b9b38=_0x3b9b38['filter'](_0x4830c7=>!_0x4830c7['is']('element','listItem')||_0x4830c7['getAttribute']('listType')!=_0x14f967);const _0x32733f=new Set();for(const _0x523c88 of _0x3b9b38)_0x523c88['is']('element','listItem')?_0x32733f['add'](Le(_0x523c88)):_0x32733f['add'](_0x523c88);return Array['from'](_0x32733f);}(_0x9d9405['getSelectedBlocks'](),_0x3e1bc5,_0x2219a8['model']['schema']);_0x2219a8['model']['change'](()=>{for(const _0x66fbe5 of _0x18efe5)_0x2a5744['markBlockFormat'](_0x66fbe5,{'commandName':_0xb6d779,'commandParams':[{'forceValue':!_0x43ec95['value']}],'formatGroupId':'blockName'},Ee(_0x66fbe5));});};}function _0x5e6748(_0x528e1d){return()=>{const _0x430f6d=function(_0xc086ce){let _0x2a0f3e=Array['from'](_0xc086ce);const _0x5a3a25=_0x2a0f3e['findIndex'](_0x4515a2=>'listItem'!=_0x4515a2['name']);return _0x5a3a25>-0x1&&(_0x2a0f3e=_0x2a0f3e['slice'](0x0,_0x5a3a25)),_0x2a0f3e;}(_0x2219a8['model']['document']['selection']['getSelectedBlocks']()),_0x2cdd98=_0x2219a8['model']['createRange'](_0x2219a8['model']['createPositionAt'](_0x430f6d[0x0],'before'),_0x2219a8['model']['createPositionAt'](_0x430f6d[_0x430f6d['length']-0x1],'end'));_0x2219a8['model']['change'](()=>{_0x2a5744['markBlockFormat'](_0x2cdd98,{'commandName':_0x528e1d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3d9380){const _0x211f55=new Set();for(const _0xbc159d of _0x3d9380){let _0x2d5bdd=_0xbc159d['nextSibling'];for(;_0x2d5bdd&&_0x2d5bdd['getAttribute']('listIndent')>_0xbc159d['getAttribute']('listIndent');)_0x211f55['add'](_0x2d5bdd),_0x2d5bdd=_0x2d5bdd['nextSibling'];}return Array['from'](_0x211f55);}(_0x430f6d));});};}_0x2a5744['enableCommand']('numberedList',_0x128fcf('numberedList')),_0x2a5744['enableCommand']('bulletedList',_0x128fcf('bulletedList')),_0xd233ee&&_0x2a5744['enableCommand']('todoList',_0x128fcf('todoList')),_0x2a5744['enableCommand']('indentList',_0x5e6748('indentList')),_0x2a5744['enableCommand']('outdentList',_0x5e6748('outdentList')),_0xd233ee&&_0x2a5744['enableCommand']('checkTodoList',()=>{const _0x1d5e28=_0x2219a8['commands']['get']('checkTodoList'),_0x209705=Array['from'](_0x1d5e28['_selectedElements']);_0x209705['filter'](_0xdce24d=>_0xdce24d['getAttribute']('todoListChecked')!=_0x1d5e28['value']),_0x2219a8['model']['change'](()=>{for(const _0x13acf6 of _0x209705)_0x2a5744['markBlockFormat'](_0x13acf6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1d5e28['value']}]});});}),_0x2a5744['descriptionFactory']['registerElementLabel']('listItem',_0x2b421d=>o(_0x118391,'ELEMENT_LIST_ITEM',_0x2b421d)),_0x2a5744['descriptionFactory']['registerDescriptionCallback'](_0x5d6069=>{if('formatBlock'!=_0x5d6069['type']&&'formatInline'!=_0x5d6069['type'])return;const {data:_0x379317}=_0x5d6069;if(_0x379317){if('numberedList'==_0x379317['commandName']||'bulletedList'==_0x379317['commandName']||'todoList'==_0x379317['commandName'])switch(_0x379317['commandName']['replace']('List','')){case'bulleted':return _0x36768a(o(_0x118391,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36768a(o(_0x118391,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36768a(o(_0x118391,'ELEMENT_TODO_LIST'));}if('indentList'==_0x379317['commandName'])return{'type':'format','content':o(_0x118391,'*Indent:*\x20%0',o(_0x118391,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x379317['commandName'])return{'type':'format','content':o(_0x118391,'*Outdent:*\x20%0',o(_0x118391,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x379317['commandName'])return _0x379317['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x118391,'*Check\x20item*')}:{'type':'format','content':o(_0x118391,'*Uncheck\x20item*')};}function _0x36768a(_0x9dcbdc){return{'type':'format','content':o(_0x118391,'*Change\x20to:*\x20%0',_0x9dcbdc)};}});}}function Le(_0x39dff1){const _0x31ae50=_0x39dff1['getAttribute']('listIndent');if(0x0==_0x31ae50)return _0x39dff1;let _0x19013a=_0x39dff1;for(;_0x39dff1['previousSibling']&&_0x39dff1['previousSibling']['is']('element','listItem');){const _0x126cd9=_0x39dff1['previousSibling']['getAttribute']('listIndent');if(_0x126cd9==_0x31ae50)_0x19013a=_0x39dff1['previousSibling'];else{if(_0x126cd9<_0x31ae50)break;}_0x39dff1=_0x39dff1['previousSibling'];}return _0x19013a;}function Ee(_0x599a1b){const _0x1f0a63=[];if(_0x599a1b['is']('element','listItem')&&_0x599a1b['getAttribute']('listIndent')>0x0){let _0x285cb5=_0x599a1b['nextSibling'];for(;_0x285cb5&&'listItem'==_0x285cb5['name']&&_0x285cb5['getAttribute']('listIndent')==_0x599a1b['getAttribute']('listIndent');)_0x1f0a63['push'](_0x285cb5),_0x285cb5=_0x285cb5['nextSibling'];}return _0x1f0a63;}class Q extends _0x236dec{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x115193=this['editor']['config']['get']('list.properties'),_0x1d074f=this['editor']['plugins']['get']('TrackChangesEditing');_0x115193['styles']&&_0x1d074f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x115193['reversed']&&_0x1d074f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x115193['startIndex']&&_0x1d074f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1d074f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x24d681,_0x5d5568={}){const _0xe72353=this['editor']['plugins']['get']('TrackChangesEditing'),_0x323358=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xe72353['markMultiRangeBlockFormat'](_0x323358,{'commandName':'listStyle','commandParams':[{'type':_0x5d5568['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x382681,_0x2a7895={}){const _0x41a62d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x283cbf=this['_getSuggestionBlocks'](_0x4ca96b=>_0x4ca96b['is']('element','listItem')&&'numbered'===_0x4ca96b['getAttribute']('listType'));if(_0x283cbf['length']<0x1)return;const _0x2564ee=_0x283cbf['map'](_0xd3ded4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd3ded4,'before'),this['editor']['model']['createPositionAt'](_0xd3ded4,0x0)));this['editor']['model']['change'](()=>{_0x41a62d['markMultiRangeBlockFormat'](_0x2564ee,{'commandName':'listReversed','commandParams':[{'reversed':_0x2a7895['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x40728d,_0x586203={}){const _0x121f4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3578f1=this['_getSuggestionBlocks'](_0x4e2af2=>_0x4e2af2['is']('element','listItem')&&'numbered'===_0x4e2af2['getAttribute']('listType'));if(_0x3578f1['length']<0x1)return;const _0xce5fdc=_0x3578f1['map'](_0x25525a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25525a,'before'),this['editor']['model']['createPositionAt'](_0x25525a,0x0)));this['editor']['model']['change'](()=>{_0x121f4d['markMultiRangeBlockFormat'](_0xce5fdc,{'commandName':'listStart','commandParams':[{'startIndex':_0x586203['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5e41dd){if('formatBlock'!=_0x5e41dd['type']&&'formatInline'!=_0x5e41dd['type'])return;const _0x144865=this['editor']['locale'],{data:_0x5c1a9e}=_0x5e41dd;if(!_0x5c1a9e)return;let _0x32f8dc,_0x26760a;switch(_0x5c1a9e['commandName']){case'listStyle':_0x32f8dc='*Change\x20to:*\x20%0',_0x26760a={'type':'format','content':o(_0x144865,_0x32f8dc,o(_0x144865,this['_getTranslationKeyForListStyle'](_0x5c1a9e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x32f8dc=_0x5c1a9e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x26760a={'type':'format','content':o(_0x144865,_0x32f8dc)};break;case'listStart':_0x32f8dc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x26760a={'type':'format','content':o(_0x144865,_0x32f8dc,_0x5c1a9e['commandParams'][0x0]['startIndex'])};}return _0x26760a;}['_getSuggestionBlocksForListStyle'](){const _0x413dc0=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e5142=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5e5142[0x0]?.['is']('element','listItem')&&_0x5e5142['unshift'](..._0x413dc0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5e5142[_0x5e5142['length']-0x1]?.['is']('element','listItem')&&_0x5e5142['push'](..._0x413dc0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5e5142=[...new Set(_0x5e5142)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5e5142=_0x5e5142['filter'](_0x3349f2=>_0x3349f2['is']('element','listItem'))),_0x5e5142;}['_getSuggestionBlocks'](_0x3d26fb){const _0x48f4ff=this['editor']['plugins']['get']('LegacyListUtils');let _0x539bb1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3d26fb)['map'](_0x15aeaa=>{const _0x797b20=this['editor']['model']['createPositionAt'](_0x15aeaa,0x0);return[..._0x48f4ff['getSiblingNodes'](_0x797b20,'backward'),..._0x48f4ff['getSiblingNodes'](_0x797b20,'forward')];})['flat']();return _0x539bb1=[...new Set(_0x539bb1)],_0x539bb1;}['_getTranslationKeyForListStyle'](_0x3d8049){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3d8049)||'default')['toUpperCase']()+'_LIST_'+_0x3d8049['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x236dec{['afterInit'](){const _0x5c500c=this['editor'];if(!_0x5c500c['plugins']['has']('MediaEmbedEditing'))return;const _0x273d6b=_0x5c500c['plugins']['get']('TrackChangesEditing'),_0x3b5abd=_0x5c500c['locale'];_0x273d6b['enableCommand']('mediaEmbed'),_0x273d6b['descriptionFactory']['registerElementLabel']('media',_0x509e6f=>o(_0x3b5abd,'ELEMENT_MEDIA',_0x509e6f)),_0x5c500c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x10a327,{writer:_0x15483c,options:_0x1b7ac2})=>{if(_0x1b7ac2['showSuggestionHighlights'])return _0x15483c['createEmptyElement']('div');},'converterPriority':'high'}),_0x5c500c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x464a64,_0x2e8b26,_0x11dce1)=>{_0x11dce1['options']['showSuggestionHighlights']&&_0x464a64['stop']();},{'priority':'high'});}}class mt extends _0x236dec{['afterInit'](){const _0x5e219e=this['editor'];_0x5e219e['plugins']['has']('MentionEditing')&&_0x5e219e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x236dec{['afterInit'](){const _0x56b245=this['editor'];if(!_0x56b245['plugins']['has']('MergeFieldsEditing'))return;const _0x54f439=_0x56b245['plugins']['get']('TrackChangesEditing'),_0x846901=_0x56b245['locale'];_0x54f439['enableCommand']('insertMergeField'),_0x54f439['enableCommand']('insertMergeFieldBlock'),_0x54f439['enableCommand']('insertMergeFieldImage'),_0x54f439['descriptionFactory']['registerElementLabel']('mergeField',_0x56e94c=>o(_0x846901,'ELEMENT_MERGE_FIELD',_0x56e94c)),_0x54f439['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x38aa78=>o(_0x846901,'ELEMENT_MERGE_FIELD',_0x38aa78)),_0x54f439['descriptionFactory']['registerDescriptionCallback'](_0x3a529e=>{if('insertion'!=_0x3a529e['type']&&'deletion'!=_0x3a529e['type'])return;const _0x46c620=_0x3a529e['getContainedElement']();if(null==_0x46c620)return;const _0x99ac29=_0x56b245['plugins']['get']('MergeFieldsEditing');let _0x1d386b;switch(_0x99ac29['getMergeFieldType'](_0x46c620)){case null:return;case'image':{const _0x5563c7=_0x99ac29['unwrapAffixes'](_0x46c620['getAttribute']('src'));_0x1d386b=_0x99ac29['getLabel'](_0x5563c7)||_0x5563c7;break;}default:{const _0x1c8f38=_0x46c620['getAttribute']('id');_0x1d386b=_0x99ac29['getLabel'](_0x1c8f38)||_0x1c8f38;break;}}return'insertion'==_0x3a529e['type']?{'type':'insertion','content':o(_0x846901,'*Insert:*\x20%0','\x22'+_0x1d386b+'\x22\x20'+o(_0x846901,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x846901,'*Remove:*\x20%0','\x22'+_0x1d386b+'\x22\x20'+o(_0x846901,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x236dec{['afterInit'](){const _0x589354=this['editor'],_0x2d19fb=_0x589354['plugins']['get']('TrackChangesEditing');_0x589354['plugins']['has']('MultiLevelList')&&(_0x2d19fb['enableDefaultAttributesIntegration']('multiLevelList'),_0x2d19fb['registerBlockAttribute']('listMarkerStyle'),_0x2d19fb['descriptionFactory']['registerDescriptionCallback'](_0x37fb0f=>this['handleDescriptions'](_0x37fb0f)));}['handleDescriptions'](_0x20d287){const _0x14f073=this['editor']['locale'],{data:_0x399525}=_0x20d287,_0x5caa51={'type':'format','content':''};if(_0x399525&&'listMarkerStyle'==_0x399525['key']){if(!_0x399525['oldValue'])return{'type':'format','content':o(_0x14f073,'*Set\x20format:*\x20%0',o(_0x14f073,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x399525['newValue']+')'};if(!_0x399525['newValue']){let _0x310fef=_0x20d287['head'];for(;_0x310fef;){if(_0x310fef['data']&&'listType'==_0x310fef['data']['key']&&_0x310fef['data']['newValue'])return _0x5caa51;_0x310fef=_0x310fef['next'];}return{'type':'format','content':o(_0x14f073,'*Remove\x20format:*\x20%0',o(_0x14f073,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x399525['oldValue']+')'};}}}}class kt extends _0x236dec{['afterInit'](){const _0x5bb1f1=this['editor'];if(!_0x5bb1f1['plugins']['has']('PageBreakEditing'))return;_0x5bb1f1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5cc387=_0x5bb1f1['plugins']['get']('TrackChangesEditing'),_0x2c1e18=_0x5bb1f1['locale'];_0x5cc387['descriptionFactory']['registerElementLabel']('pageBreak',_0x4646c2=>o(_0x2c1e18,'ELEMENT_PAGE_BREAK',_0x4646c2));}}class bt extends _0x236dec{['afterInit'](){const _0x4e67c8=this['editor'];if(!_0x4e67c8['plugins']['has']('Paragraph'))return;const _0xd026b0=_0x4e67c8['locale'],_0x2fa80d=_0x4e67c8['plugins']['get']('TrackChangesEditing');_0x2fa80d['descriptionFactory']['registerElementLabel']('paragraph',_0x18fa4e=>o(_0xd026b0,'ELEMENT_PARAGRAPH',_0x18fa4e)),_0x2fa80d['enableDefaultAttributesIntegration']('paragraph'),_0x2fa80d['enableCommand']('insertParagraph'),_0x4e67c8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4e67c8),{'priority':'highest'}),_0x4e67c8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34ef66,_0x490f35,_0x52b65f)=>{_0x52b65f['options']['showSuggestionHighlights']&&nr(_0x4e67c8,{'showActiveMarker':!0x1})(_0x34ef66,_0x490f35,_0x52b65f);},{'priority':'highest'});const _0x47f0e0=_0x2fa80d['descriptionFactory'];_0x47f0e0['registerDescriptionCallback'](_0x1d49d8=>{if('insertion'!==_0x1d49d8['type'])return;const {start:_0xe54657,end:_0x5484b3}=_0x1d49d8['getFirstRange']();if(!_0xe54657['isTouching'](_0x5484b3)||!_0xe54657['nodeAfter'])return;const _0xe85c34=_0x4e67c8['model']['schema'],_0x3cb248=_0xe54657['nodeAfter'];return _0xe85c34['isBlock'](_0x3cb248)&&!_0xe85c34['isLimit'](_0x3cb248)&&_0xe85c34['checkChild'](_0x3cb248,'$text')?{'type':'insertion','content':o(_0xd026b0,'*Insert:*\x20%0',_0x47f0e0['getItemLabel'](_0x3cb248,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a66f3=this['editor'],_0x3ed84e=_0x1a66f3['locale'];_0x1a66f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13b9b1=>{if('formatBlock'!=_0x13b9b1['type'])return;const {data:_0x1bd2fe}=_0x13b9b1;return _0x1bd2fe&&'paragraph'==_0x1bd2fe['commandName']?{'type':'format','content':o(_0x3ed84e,'*Change\x20to:*\x20%0',o(_0x3ed84e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x374ca3,{showActiveMarker:_0x3e50f0=!0x0}={}){return(_0x3405b2,_0x5ed412,_0x549853)=>{const _0x43120b=_0x374ca3['plugins']['get']('TrackChangesEditing'),_0x1e9d47=_0x5ed412['markerRange']['start'],_0x382dab=_0x5ed412['markerRange']['end'],_0x18a444=_0x374ca3['model']['schema'];if(!_0x1e9d47['isTouching'](_0x382dab)||!_0x1e9d47['nodeAfter'])return;const _0xf64129=_0x1e9d47['nodeAfter'];if(_0x18a444['isBlock'](_0xf64129)&&!_0x18a444['isLimit'](_0xf64129)&&_0x18a444['checkChild'](_0xf64129,'$text')){if(!_0x549853['consumable']['consume'](_0x5ed412['markerRange'],_0x3405b2['name']))return;const {authorId:_0x3105de}=_0x43120b['_splitMarkerName'](_0x5ed412['markerName']),_0x1e7bc8=_0x549853['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3105de}),_0x25d072=_0x549853['mapper']['toViewPosition'](_0x382dab);_0x3e50f0&&_0x43120b['activeMarkers']['includes'](_0x5ed412['markerName'])&&_0x549853['writer']['addClass']('ck-suggestion-marker--active',_0x1e7bc8),_0x549853['writer']['insert'](_0x25d072,_0x1e7bc8),_0x549853['mapper']['bindElementToMarker'](_0x1e7bc8,_0x5ed412['markerName']);}};}class yt extends _0x236dec{['afterInit'](){const _0x3dbd00=this['editor'];if(!_0x3dbd00['plugins']['has']('RemoveFormatEditing'))return;_0x3dbd00['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14fe25=this['editor'];_0x14fe25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5920d2=>{if('formatBlock'!=_0x5920d2['type']&&'formatInline'!=_0x5920d2['type'])return;const {data:_0x5092c7}=_0x5920d2;return _0x5092c7&&'removeFormat'==_0x5092c7['commandName']?{'type':'format','content':o(_0x14fe25['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x236dec{['afterInit'](){const _0x913af7=this['editor'];if(!_0x913af7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x518db1=_0x913af7['plugins']['get']('TrackChangesEditing');_0x518db1['enableCommand']('goToPreviousRestrictedEditingException'),_0x518db1['enableCommand']('goToNextRestrictedEditingException');const _0x2e97b9=_0x913af7['plugins']['get']('RestrictedEditingModeEditing');_0x2e97b9['enableCommand']('trackChanges'),_0x2e97b9['enableCommand']('acceptSuggestion'),_0x2e97b9['enableCommand']('discardSuggestion'),_0x2e97b9['enableCommand']('acceptAllSuggestions'),_0x2e97b9['enableCommand']('discardAllSuggestions'),_0x2e97b9['enableCommand']('acceptSelectedSuggestions'),_0x2e97b9['enableCommand']('discardSelectedSuggestions');}}class St extends _0x236dec{static get['requires'](){return[_0x187999];}['init'](){const _0x54224a=this['editor'],_0x550b8b=_0x54224a['plugins']['get']('TrackChangesEditing');_0x550b8b['enableCommand']('shiftEnter'),_0x54224a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x54224a),{'priority':'high'}),_0x54224a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x54224a),{'priority':'high'}),_0x54224a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x141c70,_0xc2ed02,_0x2e536a)=>{_0x2e536a['options']['showSuggestionHighlights']&&je(_0x54224a,{'showActiveMarker':!0x1})(_0x141c70,_0xc2ed02,_0x2e536a);}),_0x550b8b['descriptionFactory']['registerElementLabel']('softBreak',_0x1af310=>o(_0x54224a['locale'],'ELEMENT_LINE_BREAK',_0x1af310));}}function je(_0x2e41b1,{showActiveMarker:_0x56b231=!0x0}={}){return(_0x194ac3,_0x24d7eb,_0x3cef9b)=>{const _0x10827e=_0x2e41b1['plugins']['get']('TrackChangesEditing');if(!_0x3cef9b['consumable']['test'](_0x24d7eb['markerRange'],_0x194ac3['name']))return;const _0x1e4d13=_0x2e41b1['model'];for(const _0x2f4c3a of _0x24d7eb['markerRange']['getItems']()){if(!_0x2f4c3a['is']('element','softBreak'))continue;const _0x3ee194='deletion'==_0x24d7eb['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1a4d44}=_0x10827e['_splitMarkerName'](_0x24d7eb['markerName']),_0x375ba9=_0x3cef9b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ee194,'data-author-id':_0x1a4d44}),_0x1edf33=_0x3cef9b['mapper']['toViewPosition'](_0x1e4d13['createPositionBefore'](_0x2f4c3a));_0x56b231&&_0x10827e['activeMarkers']['includes'](_0x24d7eb['markerName'])&&_0x3cef9b['writer']['addClass']('ck-suggestion-marker--active',_0x375ba9),_0x3cef9b['writer']['insert'](_0x1edf33,_0x375ba9),_0x3cef9b['mapper']['bindElementToMarker'](_0x375ba9,_0x24d7eb['markerName']);}};}class At extends _0x236dec{['afterInit'](){const _0xefd512=this['editor'],_0x26fb29=_0xefd512['model'],_0x373810=_0xefd512['locale'];if(!_0xefd512['plugins']['has']('StandardEditingModeEditing'))return;const _0x25d026=_0xefd512['plugins']['get']('TrackChangesEditing'),_0x5ee041='restrictedEditingException',_0x28951a=_0xefd512['commands']['get'](_0x5ee041);_0x25d026['enableCommand'](_0x5ee041,(_0x2e7a8b,_0x3fe85e={})=>{const _0x53eae9=_0x26fb29['document']['selection'];if(_0x53eae9['isCollapsed'])return void _0x2e7a8b(_0x3fe85e);const _0x104201=void 0x0!==_0x3fe85e['forceValue']?_0x3fe85e['forceValue']:!_0x28951a['value'];_0x26fb29['change'](()=>{const _0x12f17c=Array['from'](_0x53eae9['getRanges']());for(const _0xa07cad of _0x12f17c){const _0x310655=_0x104201?[_0xa07cad]:io(_0x5ee041,_0xa07cad,_0x26fb29);for(const _0xf726ae of _0x310655)_0x25d026['markInlineFormat'](_0xf726ae,{'commandName':_0x5ee041,'commandParams':[{'forceValue':_0x104201}]});}});}),_0x25d026['descriptionFactory']['registerDescriptionCallback'](_0x3e5605=>{if('formatBlock'!=_0x3e5605['type']&&'formatInline'!=_0x3e5605['type'])return;const {data:_0x2c85e9}=_0x3e5605;return _0x2c85e9&&_0x2c85e9['commandName']==_0x5ee041?_0x2c85e9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x373810,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x373810,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x236dec{['afterInit'](){const _0x4ea168=this['editor'];if(!_0x4ea168['plugins']['has']('Style')||!_0x4ea168['plugins']['has']('DataSchema'))return;const _0x5b496e=_0x4ea168['plugins']['get']('TrackChangesEditing'),_0x1f5db0=_0x4ea168['locale'],_0x8bdaca=_0x4ea168['config']['get']('style')||{},_0x5a05cd=_0x4ea168['plugins']['get']('GeneralHtmlSupport'),_0x5ddf7f=_0x4ea168['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4ea168['plugins']['get']('DataSchema'),_0x8bdaca['definitions']);_0x5b496e['enableDefaultAttributesIntegration']('style');const _0x49a06a=new Set();for(const _0x2aa5f9 of _0x5ddf7f['block']){const _0x4ec1dd=_0x5a05cd['getGhsAttributeNameForElement'](_0x2aa5f9['element']);_0x49a06a['add'](_0x4ec1dd);}const _0x18f1e3=new Set();for(const _0x309aa8 of _0x5ddf7f['inline']){const _0x25decc=_0x5a05cd['getGhsAttributeNameForElement'](_0x309aa8['element']);_0x18f1e3['add'](_0x25decc);for(const _0x19cdbc of _0x309aa8['ghsAttributes'])_0x18f1e3['add'](_0x19cdbc);}for(const _0x4cd281 of _0x49a06a)_0x5b496e['registerBlockAttribute'](_0x4cd281),_0x5b496e['descriptionFactory']['registerAttributeLabel'](_0x4cd281,o(_0x1f5db0,'FORMAT_STYLE'));for(const _0xce6880 of _0x18f1e3)_0x5b496e['registerInlineAttribute'](_0xce6880),_0x5b496e['descriptionFactory']['registerAttributeLabel'](_0xce6880,o(_0x1f5db0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51efbe=this['editor'],_0x44afcc=_0x51efbe['locale'];_0x51efbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ff6ec=>{if('formatBlock'!=_0x3ff6ec['type']&&'formatInline'!=_0x3ff6ec['type'])return;const {data:_0x5286fb}=_0x3ff6ec;return _0x5286fb&&'style'===_0x5286fb['commandName']?_0x5286fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44afcc,'*Set\x20format:*\x20%0',_0x5286fb['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x44afcc,'*Remove\x20format:*\x20%0',_0x5286fb['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x236dec{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3ab91f){super(_0x3ab91f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1a9f6f=this['editor'],_0x22ed74=_0x1a9f6f['model']['document']['selection'];if(!_0x1a9f6f['plugins']['has']('TableEditing'))return;const _0x278a7f=_0x1a9f6f['locale'],_0x482eaf=_0x1a9f6f['plugins']['get']('TrackChangesEditing'),_0xc47369=_0x1a9f6f['plugins']['get']('TableUtils');_0x482eaf['descriptionFactory']['registerElementLabel']('table',_0x2861b9=>o(_0x278a7f,'ELEMENT_TABLE',_0x2861b9)),this['_setupColumnsRowsFixing'](),_0x482eaf['enableCommand']('insertTable'),_0x482eaf['enableCommand']('selectTableRow'),_0x482eaf['enableCommand']('selectTableColumn');for(const _0x445eb1 of['insertTableRowAbove','insertTableRowBelow']){const _0x534591=_0x1a9f6f['commands']['get'](_0x445eb1);_0x482eaf['enableCommand'](_0x445eb1,_0x3a66c4=>{_0x1a9f6f['model']['change'](_0x247dcd=>{_0x3a66c4();const _0x21202e='above'===_0x534591['order'],_0x1f12e3=_0xc47369['getSelectionAffectedTableCells'](_0x22ed74),_0x381159=_0xc47369['getRowIndexes'](_0x1f12e3),_0x24b66d=_0x21202e?_0x381159['first']-0x1:_0x381159['last']+0x1,_0x46d0b2=_0x1f12e3[0x0]['findAncestor']('table'),_0x1cd445=_0xc47369['createTableWalker'](_0x46d0b2,{'startRow':_0x24b66d,'endRow':_0x24b66d}),_0x55a4ba=Array['from'](_0x1cd445)['map'](_0x52f5aa=>_0x247dcd['createRangeOn'](_0x52f5aa['cell']));_0x482eaf['markMultiRangeInsertion'](_0x55a4ba,'tableRow');});});}for(const _0x55e9ff of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c6aca=_0x1a9f6f['commands']['get'](_0x55e9ff);_0x482eaf['enableCommand'](_0x55e9ff,_0x435b54=>{_0x1a9f6f['model']['change'](_0x343076=>{_0x435b54();const _0x7792ce='left'===_0x3c6aca['order'],_0x470ec3=_0xc47369['getSelectionAffectedTableCells'](_0x22ed74),_0x15d902=_0xc47369['getColumnIndexes'](_0x470ec3),_0x3ae1b3=_0x7792ce?_0x15d902['first']-0x1:_0x15d902['last']+0x1,_0x2fe606=_0x470ec3[0x0]['findAncestor']('table'),_0x53f9e2=_0xc47369['createTableWalker'](_0x2fe606,{'startRow':0x0,'column':_0x3ae1b3,'includeAllSlots':!0x1}),_0x16864d=Array['from'](_0x53f9e2)['map'](_0x1aad03=>_0x343076['createRangeOn'](_0x1aad03['cell']));_0x482eaf['markMultiRangeInsertion'](_0x16864d,'tableColumn');});});}for(const _0x50aaf6 of['removeTableRow','removeTableColumn']){const _0x28583b=_0x50aaf6['substr'](0xb),_0x4b5429=_0x28583b['toLowerCase'](),_0x3cf746=_0x4b5429['substr'](0x0,0x3)+'span',_0x380b4d='table'+_0x28583b,_0x59d20e='min'+_0x28583b,_0xcbc600='max'+_0x28583b;_0x482eaf['enableCommand'](_0x50aaf6,()=>{_0x1a9f6f['model']['change'](_0x2b2240=>{const _0x2b0c1d=_0xc47369['getSelectionAffectedTableCells'](_0x22ed74),_0x4df76e=_0x2b0c1d[0x0]['findAncestor']('table');let _0x263cd1;if('removeTableRow'==_0x50aaf6){const _0x15b22a=_0xc47369['getRowIndexes'](_0x2b0c1d);_0x263cd1={'startRow':_0x15b22a['first'],'endRow':_0x15b22a['last'],'includeAllSlots':!0x0};}else{const _0x594915=_0xc47369['getColumnIndexes'](_0x2b0c1d);_0x263cd1={'startColumn':_0x594915['first'],'endColumn':_0x594915['last'],'includeAllSlots':!0x0};}const _0x48ce8f=_0xc47369['createTableWalker'](_0x4df76e,_0x263cd1),_0xacac81=Array['from'](_0x48ce8f)['map'](({cell:_0x5486a1})=>_0x5486a1),_0x6469d6=Ne(_0xacac81['filter'](_0x179b3d=>_0x179b3d['hasAttribute'](_0x3cf746))),_0xbc9d21=Ne(_0xacac81['filter'](_0x5555e2=>!_0x5555e2['hasAttribute'](_0x3cf746)))['map'](_0xd472e4=>_0x2b2240['createRangeOn'](_0xd472e4)),_0x3bb7ea=_0x482eaf['markMultiRangeDeletion'](_0xbc9d21,_0x380b4d);if(_0x3bb7ea&&('tableRow'==_0x3bb7ea['subType']||'tableColumn'==_0x3bb7ea['subType'])){const _0x1aba4a=this['_getSuggestionCoords'](_0x3bb7ea);for(const _0xc9de6d of _0x6469d6){const _0x5963be=_0x2b2240['createRangeOn'](_0xc9de6d),_0x16acc2=_0xc47369['getCellLocation'](_0xc9de6d),_0x1badaa=_0xc9de6d['getAttribute'](_0x3cf746)-0x1,_0x559fdb=_0x1aba4a[_0x59d20e],_0x1e50f2=_0x1aba4a[_0xcbc600];_0x559fdb<=_0x16acc2[_0x4b5429]&&_0x16acc2[_0x4b5429]+_0x1badaa<=_0x1e50f2&&_0x3bb7ea['addRange'](_0x5963be);}}});});}function _0x12a343(_0x436cb8){const _0x35f134=Array['from'](_0x22ed74['getRanges']())['map'](_0x43d6fa=>_0x78f3c6['fromRange'](_0x43d6fa));_0x1a9f6f['model']['change'](_0x2c170f=>{const _0x3146fa=_0x2c170f['batch'];_0x436cb8=_0x436cb8['filter'](_0x5b20a1=>'$graveyard'!=_0x5b20a1['root']['rootName']),_0x2c170f['setSelection'](_0x436cb8),_0x1a9f6f['commands']['get']('removeTableRow')['refresh'](),_0x1a9f6f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1a9f6f['model']['enqueueChange'](()=>{_0x1a9f6f['model']['enqueueChange'](_0x3146fa,_0x4c327d=>{const _0x2a9c64=_0x35f134['filter'](_0x4fb0c6=>'$graveyard'!=_0x4fb0c6['root']['rootName']);_0x2a9c64['length']>0x0&&_0x4c327d['setSelection'](_0x2a9c64);for(const _0x3b96aa of _0x35f134)_0x3b96aa['detach']();});});});}function _0x54d057(_0x19be0a){_0x1a9f6f['model']['change'](_0xb43b4=>{const _0x7faf9a=Array['from'](_0x22ed74['getRanges']())['map'](_0x21b94e=>_0x78f3c6['fromRange'](_0x21b94e)),_0x1c3091=[];for(const _0x1e8ba2 of _0x19be0a)for(const _0x2725aa of _0x1e8ba2['getItems']({'shallow':!0x0}))_0x1c3091['push'](_0x2725aa);for(const _0x3f7796 of _0x1c3091)'$graveyard'!=_0x3f7796['root']['rootName']&&(_0xb43b4['setSelection'](_0xb43b4['createPositionAt'](_0x3f7796,0x0)),_0x1a9f6f['commands']['get']('removeTableColumn')['refresh'](),_0x1a9f6f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x415d2b=_0x7faf9a['filter'](_0x1c4cd5=>'$graveyard'!=_0x1c4cd5['root']['rootName']);_0x415d2b['length']>0x0&&_0xb43b4['setSelection'](_0x415d2b);for(const _0x3d134b of _0x7faf9a)_0x3d134b['detach']();});}function _0x4b5aed(_0x2fd222,_0x452c0d){return _0x452c0d['every'](_0x10a240=>_0x2fd222['some'](_0x4511a2=>_0x4511a2['end']['isEqual'](_0x10a240['start'])||_0x10a240['end']['isEqual'](_0x4511a2['start'])));}function _0x4524ce(_0x25d70b,_0x3c5d17){return!_0x25d70b['some'](_0x5ddced=>_0x3c5d17['some'](_0x57b8e1=>_0x5ddced['isIntersecting'](_0x57b8e1)))&&_0x25d70b['some'](_0x4bd339=>_0x3c5d17['some'](_0x3ebdfa=>_0x4bd339['end']['isTouching'](_0x3ebdfa['start'])));}_0x1a9f6f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25c012,_0x8772ed,_0x16d618)=>{if(!_0x16d618['options']['showSuggestionHighlights'])return;const _0x35ebea=_0x8772ed['item'];if(!_0x35ebea)return;const _0x35166d=_0x16d618['mapper']['toViewElement'](_0x35ebea);function _0x5cef66(_0x27d926){return Array['isArray'](_0x27d926)?_0x27d926:[_0x27d926];}_0x35166d&&'tableCell'===_0x35ebea['name']&&_0x544add(_0x35166d,_0x16d618['writer'],(_0xfe2c81,_0x4d0457,_0x467ece)=>_0x467ece['addClass'](_0x5cef66(_0x4d0457['classes']),_0xfe2c81),(_0x43c108,_0x30b707,_0x3ec3aa)=>_0x3ec3aa['removeClass'](_0x5cef66(_0x30b707['classes']),_0x43c108));},{'priority':'highest'}),_0x482eaf['descriptionFactory']['registerDescriptionCallback'](_0x4a4fd8=>{if('insertion'!=_0x4a4fd8['type']&&'deletion'!=_0x4a4fd8['type'])return;const _0x19e4d8=_0x4a4fd8['getContainedElement']();if(null!=_0x19e4d8&&_0x19e4d8['is']('element','table')){if('insertion'==_0x4a4fd8['type']){const _0xd0cae9=_0x4a4fd8['getItems']()['filter'](_0x64176c=>_0x64176c['is']('$textProxy'))['map'](_0x384f7c=>_0x384f7c['data']);if(_0xd0cae9['length'])return{'type':'insertion','content':o(_0x278a7f,'*Insert:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xd0cae9['join']('\x20')+'\x22'))};}if('deletion'==_0x4a4fd8['type']){const _0x9084ba=_0x4a4fd8['getItems']()['filter'](_0x5690ce=>_0x5690ce['is']('$textProxy'))['map'](_0x5affe3=>_0x5affe3['data']);if(_0x9084ba['length'])return{'type':'deletion','content':o(_0x278a7f,'*Remove:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9084ba['join']('\x20')+'\x22'))};}}}),_0x482eaf['descriptionFactory']['registerDescriptionCallback'](_0x419a8b=>{if('tableRow'==_0x419a8b['subType']){const _0x4ade7f=_0x419a8b['getItems']()['filter'](_0x397c87=>_0x397c87['is']('$textProxy'))['map'](_0x52a75e=>_0x52a75e['data']),_0x419547=this['_getSuggestionCoords'](_0x419a8b),_0x3362fa=_0x419547['maxRow']-_0x419547['minRow']+0x1;if('insertion'==_0x419a8b['type'])return _0x4ade7f['length']?{'type':'insertion','content':o(_0x278a7f,'*Insert:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3362fa,'\x22'+_0x4ade7f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x278a7f,'*Insert:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_ROW',_0x3362fa))};if('deletion'==_0x419a8b['type'])return _0x4ade7f['length']?{'type':'deletion','content':o(_0x278a7f,'*Remove:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3362fa,'\x22'+_0x4ade7f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x278a7f,'*Remove:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_ROW',_0x3362fa))};}if('tableColumn'==_0x419a8b['subType']){const _0x35bf43=_0x419a8b['getItems']()['filter'](_0x27c29e=>_0x27c29e['is']('$textProxy'))['map'](_0x3b8555=>_0x3b8555['data']),_0x4f50c2=this['_getSuggestionCoords'](_0x419a8b),_0x28a0f9=_0x4f50c2['maxColumn']-_0x4f50c2['minColumn']+0x1;if('insertion'==_0x419a8b['type'])return _0x35bf43['length']?{'type':'insertion','content':o(_0x278a7f,'*Insert:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28a0f9,'\x22'+_0x35bf43['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x278a7f,'*Insert:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_COLUMN',_0x28a0f9))};if('deletion'==_0x419a8b['type'])return _0x35bf43['length']?{'type':'deletion','content':o(_0x278a7f,'*Remove:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x28a0f9,'\x22'+_0x35bf43['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x278a7f,'*Remove:*\x20%0',o(_0x278a7f,'ELEMENT_TABLE_COLUMN',_0x28a0f9))};}}),_0x482eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x12a343),_0x482eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x12a343),_0x482eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x54d057),_0x482eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x54d057),_0x482eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4b5aed),_0x482eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4b5aed),_0x482eaf['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4524ce),_0x482eaf['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4524ce);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3629f2=this['editor'],_0x28926a=_0x3629f2['model']['document']['selection'];return(_0x446724,_0x50f0ef)=>{_0x3629f2['model']['change'](_0x5ef96b=>{const {commandName:_0x3cfd08,commandParams:_0x1cbcfe}=_0x50f0ef;let _0x59fcd7=_0x446724[0x0]['end']['nodeBefore'];_0x1cbcfe&&_0x1cbcfe[0x0]&&!0x1===_0x1cbcfe[0x0]['forceValue']&&(_0x59fcd7=_0x446724[0x0]['start']['nodeAfter']);const _0xb0943a=_0x5ef96b['createRangeIn'](_0x59fcd7);if('$graveyard'==_0xb0943a['root']['rootName'])return;const _0x2149ab=Array['from'](_0x28926a['getRanges']())['map'](_0x589f45=>_0x78f3c6['fromRange'](_0x589f45));_0x5ef96b['setSelection'](_0xb0943a),_0x3629f2['commands']['get'](_0x3cfd08)['refresh'](),_0x1cbcfe['push']({'forceDefaultExecution':!0x0}),_0x3629f2['execute'](_0x3cfd08,..._0x1cbcfe);const _0x4f0feb=_0x2149ab['filter'](_0xc3d129=>'$graveyard'!=_0xc3d129['root']['rootName']);_0x4f0feb['length']>0x0&&_0x5ef96b['setSelection'](_0x4f0feb);for(const _0x19ebe0 of _0x2149ab)_0x19ebe0['detach']();});};}['_getCoordsForCells'](_0x50e630){const _0x476c52=this['editor']['plugins']['get']('TableUtils');let _0x57997d=Number['MAX_SAFE_INTEGER'],_0x144eec=Number['MIN_SAFE_INTEGER'],_0x1a67ee=Number['MAX_SAFE_INTEGER'],_0x269601=Number['MIN_SAFE_INTEGER'];for(const _0x1465bc of _0x50e630){if('$graveyard'==_0x1465bc['root']['rootName'])continue;const {row:_0x31468c,column:_0x468ccf}=_0x476c52['getCellLocation'](_0x1465bc),_0x4244f0=_0x1465bc['hasAttribute']('rowspan')?_0x1465bc['getAttribute']('rowspan')-0x1:0x0,_0x4fbd1b=_0x1465bc['hasAttribute']('colspan')?_0x1465bc['getAttribute']('colspan')-0x1:0x0;_0x57997d=_0x31468c<_0x57997d?_0x31468c:_0x57997d,_0x144eec=_0x31468c+_0x4244f0>_0x144eec?_0x31468c+_0x4244f0:_0x144eec,_0x1a67ee=_0x468ccf<_0x1a67ee?_0x468ccf:_0x1a67ee,_0x269601=_0x468ccf+_0x4fbd1b>_0x269601?_0x468ccf+_0x4fbd1b:_0x269601;}return{'minRow':_0x57997d,'maxRow':_0x144eec,'minColumn':_0x1a67ee,'maxColumn':_0x269601};}['_setupColumnsRowsFixing'](){const _0x203896=this['editor'],_0x5a3ba2=_0x203896['plugins']['get']('TrackChangesEditing'),_0x14439a=_0x203896['plugins']['get']('TableUtils');_0x203896['model']['document']['on']('change:data',()=>{const _0x9c9aaf=Array['from'](_0x203896['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23e993,data:_0x33913c}of _0x9c9aaf){const {group:_0x2ef0f4,id:_0x5677cc,subType:_0x4357fb}=_0x5a3ba2['_splitMarkerName'](_0x23e993);if('suggestion'!=_0x2ef0f4)continue;if(null!=_0x33913c['oldRange'])continue;const _0x35c0d6=_0x5a3ba2['getSuggestion'](_0x5677cc);this['_tablePostFixingSubtypes']['includes'](_0x4357fb)&&this['_tableSuggestions']['add'](_0x35c0d6);}},{'priority':'low'});const _0x19f88f=(_0x2122be,_0x237a31)=>{let _0x33375f=!0x1;const _0x5c5972=_0x237a31['createRangeOn'](_0x2122be),_0x58e43f=_0x2122be['findAncestor']('table'),_0xa1cb47=_0x14439a['getCellLocation'](_0x2122be);for(const _0x35fa23 of this['_tableSuggestions']){const _0x3d7d1c=_0x35fa23['subType'],_0x1f801c=_0x3d7d1c['startsWith']('tablePaste'),_0x1efe9a=_0x3d7d1c['substr'](_0x1f801c?0xa:0x5),_0x311b3a=_0x1efe9a['toLowerCase'](),_0x25d95a=_0x311b3a['substr'](0x0,0x3)+'span',_0x11ce8a='min'+_0x1efe9a,_0xbcba31='max'+_0x1efe9a;if(!_0x35fa23['isInContent'])continue;if(_0x58e43f!=_0x35fa23['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x35fa23['isIntersectingWithRange'](_0x5c5972))continue;const _0x34bd01=_0x2122be['hasAttribute'](_0x25d95a)?_0x2122be['getAttribute'](_0x25d95a)-0x1:0x0,_0xc513e=this['_getSuggestionCoords'](_0x35fa23),_0x474555=_0xc513e[_0x11ce8a],_0x510785=_0xc513e[_0xbcba31];_0x474555<=_0xa1cb47[_0x311b3a]&&_0xa1cb47[_0x311b3a]+_0x34bd01<=_0x510785&&(_0x35fa23['addRange'](_0x5c5972),_0x33375f=!0x0);}return _0x33375f;};_0x203896['model']['document']['registerPostFixer'](_0x2b27fe=>{let _0x468702=!0x1;for(const _0xea986d of _0x203896['model']['document']['differ']['getChanges']())if('insert'==_0xea986d['type']){if('tableRow'==_0xea986d['name']){for(const _0x1a684d of _0xea986d['position']['nodeAfter']['getChildren']())_0x468702=_0x468702||_0x19f88f(_0x1a684d,_0x2b27fe);}else'tableCell'==_0xea986d['name']&&(_0x468702=_0x468702||_0x19f88f(_0xea986d['position']['nodeAfter'],_0x2b27fe));}return _0x468702;});}['_getSuggestionCoords'](_0x564b5e){return this['_getCoordsForCells'](_0x564b5e['getRanges']()['map'](_0x3480d4=>_0x3480d4['start']['nodeAfter']));}}function Ne(_0x21845c){return Array['from'](new Set(_0x21845c)['values']());}class _t extends _0x236dec{static get['requires'](){return[vt];}['afterInit'](){const _0x52860e=this['editor'],_0x5e1590=_0x52860e['model']['document']['selection'],_0x17ddf4=_0x52860e['locale'];if(!_0x52860e['plugins']['has']('TableEditing'))return;const _0x37d36b=_0x52860e['plugins']['get']('TrackChangesEditing'),_0x4cd212=_0x52860e['plugins']['get']('TableUtils'),_0x4e5d0f=_0x52860e['plugins']['get'](vt);_0x4e5d0f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x37d36b['enableCommand']('mergeTableCells',()=>{const _0x472dbd=_0x4cd212['getSelectionAffectedTableCells'](_0x52860e['model']['document']['selection']);_0x52860e['model']['change'](()=>{_0x37d36b['markMultiRangeBlockFormat'](_0x472dbd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x52860e['commands']['get']('mergeTableCells')['on']('execute',(_0x5b0df6,_0x1b1859)=>{_0x52860e['commands']['get']('trackChanges')['value']&&(_0x1b1859['length']>0x0&&_0x1b1859[_0x1b1859['length']-0x1]&&_0x1b1859[_0x1b1859['length']-0x1]['forceDefaultExecution']||_0x37d36b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5b0df6['stop']());},{'priority':'highest'});for(const _0x48fc40 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2d3593=_0x52860e['commands']['get'](_0x48fc40);_0x37d36b['enableCommand'](_0x48fc40,()=>{const _0x3ff85a=_0x52860e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f0948=>_0x4f0948['is']('element','tableCell')),_0xd23888=_0x2d3593['value'];_0x52860e['model']['change'](()=>{_0x37d36b['markMultiRangeBlockFormat']([_0x3ff85a,_0xd23888],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2910b1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x28dd14=_0x52860e['commands']['get'](_0x2910b1);_0x37d36b['enableCommand'](_0x2910b1,()=>{const _0x2b93a7=_0x4cd212['getSelectionAffectedTableCells'](_0x52860e['model']['document']['selection'])[0x0],_0x3a8eb1=_0x2b93a7['findAncestor']('table'),{column:_0x199656,row:_0x54bed0}=_0x4cd212['getCellLocation'](_0x2b93a7);let _0x47ca97=[];if('horizontally'==_0x28dd14['direction']){const _0x509690=_0x4cd212['createTableWalker'](_0x3a8eb1,{'startRow':_0x54bed0,'endRow':_0x54bed0,'includeAllSlots':!0x0});_0x47ca97=Array['from'](_0x509690)['map'](_0x3e94d5=>_0x3e94d5['cell']);}else{const _0x45166f=_0x4cd212['createTableWalker'](_0x3a8eb1,{'column':_0x199656,'includeAllSlots':!0x0});_0x47ca97=Array['from'](_0x45166f)['map'](_0x418bca=>_0x418bca['cell']);}_0x52860e['model']['change'](_0x29efb9=>{_0x37d36b['markBlockFormat'](_0x29efb9['createRangeOn'](_0x2b93a7),{'commandName':_0x2910b1,'commandParams':[]},_0x47ca97,_0x2910b1);});});}_0x37d36b['descriptionFactory']['registerDescriptionCallback'](_0x13a418=>{if('formatBlock'!=_0x13a418['type']&&'formatInline'!=_0x13a418['type'])return;const {data:_0x9d34bb}=_0x13a418;return _0x9d34bb&&'mergeTableCells'==_0x9d34bb['commandName']?{'type':'format','content':o(_0x17ddf4,'*Merge\x20cells*')}:void 0x0;}),_0x37d36b['descriptionFactory']['registerDescriptionCallback'](_0x1f7695=>{if('formatBlock'!=_0x1f7695['type']&&'formatInline'!=_0x1f7695['type'])return;const {data:_0x4162f1}=_0x1f7695;return _0x4162f1?'splitTableCellVertically'==_0x4162f1['commandName']?{'type':'format','content':o(_0x17ddf4,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4162f1['commandName']?{'type':'format','content':o(_0x17ddf4,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4254e8=_0x4e5d0f['_acceptFormatSuggestionCallbackFactory']();for(const _0xc34e15 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x37d36b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xc34e15,'accept',_0x4254e8);for(const _0xcf06fd of['splitTableCellVertically','splitTableCellHorizontally'])_0x37d36b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcf06fd,'accept',_0x4254e8);_0x37d36b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3cef07=>{_0x52860e['model']['change'](_0x6ffb7c=>{const _0x225632=Array['from'](_0x5e1590['getRanges']())['map'](_0x343bf5=>_0x78f3c6['fromRange'](_0x343bf5));_0x6ffb7c['setSelection'](_0x3cef07),_0x52860e['commands']['get']('mergeTableCells')['refresh'](),_0x52860e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2bce0e=_0x225632['filter'](_0x385a5=>'$graveyard'!=_0x385a5['root']['rootName']);_0x2bce0e['length']>0x0&&_0x6ffb7c['setSelection'](_0x2bce0e);for(const _0x29afcc of _0x225632)_0x29afcc['detach']();});});for(const _0x49daa5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x49420d=_0x52860e['commands']['get'](_0x49daa5);_0x49420d['on']('set:isEnabled',(_0x5d6c4d,_0x5a9d6d,_0x34ccfb)=>{if(_0x34ccfb){const _0x893a54=_0x52860e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x143ebe=>_0x143ebe['is']('element','tableCell'));this['_areMergableCells'](_0x49420d['value'],_0x893a54)||(_0x5d6c4d['return']=!0x1,_0x5d6c4d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x49c313=this['editor']['commands']['get']('mergeTableCells'),_0x32c397=this['editor']['plugins']['get']('TableUtils');if(!_0x49c313['isEnabled'])return!0x1;const _0x4c3e7e=_0x32c397['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x277983 of _0x4c3e7e)for(const _0x13814f of _0x4c3e7e)if(_0x277983!=_0x13814f&&!this['_areMergableCells'](_0x277983,_0x13814f))return!0x1;return!0x0;}['_areMergableCells'](_0x503627,_0x2d49f6){const _0x3f9f4e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dcafc=this['editor']['model']['createRangeOn'](_0x503627),_0x44c54d=this['editor']['model']['createRangeOn'](_0x2d49f6),_0x18df6f=new Set(),_0x2c25e3=new Set();for(const _0x272060 of _0x3f9f4e['getSuggestions']())if(('insertion'==_0x272060['type']||'deletion'==_0x272060['type']||'mergeTableCells'==_0x272060['subType'])&&_0x272060['isInContent']){for(const _0x17f303 of _0x272060['getRanges']())_0x17f303['containsRange'](_0x3dcafc,!0x0)&&_0x18df6f['add'](_0x272060['type']+':'+_0x272060['author']['id']),_0x17f303['containsRange'](_0x44c54d,!0x0)&&_0x2c25e3['add'](_0x272060['type']+':'+_0x272060['author']['id']);}if(_0x18df6f['size']!=_0x2c25e3['size'])return!0x1;for(const _0x431aed of _0x18df6f)if(!_0x2c25e3['has'](_0x431aed))return!0x1;return!0x0;}}class Ct extends _0x236dec{static get['requires'](){return[vt];}['afterInit'](){const _0x339fe4=this['editor'];if(!_0x339fe4['plugins']['has']('TableEditing'))return;const _0x1978c0=_0x339fe4['locale'],_0x299bb1=_0x339fe4['plugins']['get']('TrackChangesEditing');_0x299bb1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x299bb1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x299bb1['registerBlockAttribute']('headingRows'),_0x299bb1['registerBlockAttribute']('headingColumns'),_0x299bb1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1978c0,'FORMAT_HEADER_ROW')),_0x299bb1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1978c0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fdba7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56246d=this['editor']['plugins']['get']('TableUtils'),_0x220a38=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x599906({showActiveMarker:_0x58a68c=!0x0,setDataAttribute:_0x140736=!0x0}={}){return(_0x4127ad,_0x426849,_0x310b41)=>{const {type:_0x499f33,id:_0x424585}=_0x4fdba7['_splitMarkerName'](_0x426849['markerName']),_0x59845b=_0x4fdba7['getSuggestion'](_0x424585),_0x2d7909=_0x59845b['data'];if('formatBlock'!=_0x59845b['type']||!_0x2d7909||'setTableColumnHeader'!=_0x2d7909['commandName'])return;if(_0x426849['item'])return void _0x4127ad['stop']();if(!_0x310b41['consumable']['consume'](_0x426849['markerRange'],_0x4127ad['name']))return;const _0x547a0a=_0x426849['markerRange']['start']['nodeAfter'],_0x42a64b=_0x426849['markerRange']['end']['nodeBefore'],_0x32b62e=_0x547a0a['parent']['parent'],{column:_0x11a8f4}=_0x56246d['getCellLocation'](_0x547a0a),{column:_0x380eb0}=_0x56246d['getCellLocation'](_0x42a64b);for(let _0x4a08cd=_0x11a8f4;_0x4a08cd<=_0x380eb0;_0x4a08cd++){const _0x4dbf40=_0x56246d['createTableWalker'](_0x32b62e,{'column':_0x4a08cd,'includeAllSlots':!0x1});for(const _0x1c98bf of _0x4dbf40){const _0x2c436c=_0x1c98bf['cell'],_0x535629=_0x310b41['mapper']['toViewElement'](_0x2c436c);_0x310b41['writer']['addClass']('ck-suggestion-marker-'+_0x499f33,_0x535629),_0x140736&&_0x310b41['writer']['setAttribute']('data-suggestion',_0x424585,_0x535629),_0x310b41['mapper']['bindElementToMarker'](_0x535629,_0x426849['markerName']),_0x58a68c&&(_0x4fdba7['activeMarkers']['includes'](_0x426849['markerName'])?_0x310b41['writer']['addClass']('ck-suggestion-marker--active',_0x535629):_0x310b41['writer']['removeClass']('ck-suggestion-marker--active',_0x535629));}}};}_0x4fdba7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x220a38),_0x4fdba7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x220a38),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x599906(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b5531,_0x115f1b,_0xf28759)=>{_0xf28759['options']['showSuggestionHighlights']&&_0x599906({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4b5531,_0x115f1b,_0xf28759);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x52b570,_0x20ed3b,_0x263f76)=>{const {type:_0x401447,id:_0x4efe68}=_0x4fdba7['_splitMarkerName'](_0x20ed3b['markerName']),_0x2b4fd7=_0x4fdba7['getSuggestion'](_0x4efe68),_0x2aca1d=_0x2b4fd7['data'];if('formatBlock'!=_0x2b4fd7['type']||!_0x2aca1d||'setTableColumnHeader'!=_0x2aca1d['commandName'])return;const _0x312e71=_0x263f76['mapper']['markerNameToElements'](_0x20ed3b['markerName']);if(_0x312e71){for(const _0x2f68de of _0x312e71)_0x263f76['writer']['removeClass']('ck-suggestion-marker-'+_0x401447,_0x2f68de),_0x263f76['writer']['removeClass']('ck-suggestion-marker--active',_0x2f68de),_0x263f76['writer']['removeAttribute']('data-suggestion',_0x2f68de),_0x263f76['mapper']['unbindElementFromMarkerName'](_0x2f68de,_0x20ed3b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3293b9=this['editor'],_0x196117=_0x3293b9['locale'];function _0x580c5c(_0x154ce6){return{'type':'format','content':o(_0x196117,'*Format:*\x20%0',_0x154ce6)};}_0x3293b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150922=>{if('formatBlock'!=_0x150922['type'])return;const {data:_0x326091}=_0x150922;if(_0x326091){if('setTableRowHeader'==_0x326091['commandName']){const _0x3f3a97=_0x326091['commandParams'][0x0]['forceValue'];return _0x580c5c(o(_0x196117,_0x3f3a97?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x326091['commandName']){const _0x443acd=_0x326091['commandParams'][0x0]['forceValue'];return _0x580c5c(o(_0x196117,_0x443acd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5d5138=>[_0x5d5138,null]));class Nt extends _0x236dec{static get['requires'](){return[vt];}['afterInit'](){const _0x20483a=this['editor'];if(!_0x20483a['plugins']['has']('TableClipboard'))return;const _0x1820db=_0x20483a['plugins']['get']('TrackChangesEditing'),_0x4aba17=_0x20483a['plugins']['get']('TableUtils'),_0x417227=_0x20483a['plugins']['get'](vt),_0x12e113=_0x20483a['plugins']['get']('TableClipboard');_0x417227['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x20483a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x20483a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x315e35=null;_0x20483a['model']['on']('insertContent',(_0x1734dc,_0x57f58a)=>{const [_0x4b5b83,_0x649ea6]=_0x57f58a,_0x5d9ca8=_0x57f58a[_0x57f58a['length']-0x1];_0x5d9ca8&&_0x5d9ca8['forceDefaultExecution']||_0x1820db['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x713445,_0x2dbfc6,_0x2cc09d,_0xb2d782,_0x5f470e){if(_0x2dbfc6&&!_0x2dbfc6['is']('documentSelection'))return!0x1;const _0x4c286e=_0x5f470e['getTableIfOnlyTableInContent'](_0x713445,_0x2cc09d);if(!_0x4c286e||!Ue(_0x4c286e,void 0x0,_0xb2d782))return!0x1;const _0x7ad9d8=_0xb2d782['getSelectionAffectedTableCells'](_0x2cc09d['document']['selection']);if(!_0x7ad9d8['length'])return!0x1;const _0x2a51cf=_0x7ad9d8[0x0]['findAncestor']('table'),_0x985d32=_0xb2d782['getRowIndexes'](_0x7ad9d8),_0x50e826=_0xb2d782['getColumnIndexes'](_0x7ad9d8),_0x1549d7={'startRow':_0x985d32['first'],'endRow':_0x985d32['last'],'startColumn':_0x50e826['first'],'endColumn':_0x50e826['last']};return 0x1==_0x7ad9d8['length']&&(_0x1549d7['endRow']+=_0xb2d782['getRows'](_0x4c286e)-0x1,_0x1549d7['endColumn']+=_0xb2d782['getColumns'](_0x4c286e)-0x1),Ue(_0x2a51cf,_0x1549d7,_0xb2d782);}(_0x4b5b83,_0x649ea6,_0x20483a['model'],_0x4aba17,_0x12e113)&&(_0x1734dc['stop'](),_0x315e35={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x20483a['model']['change'](()=>{_0x20483a['model']['insertContent'](_0x57f58a[0x0],_0x57f58a[0x1],_0x57f58a[0x2],{'forceDefaultExecution':!0x0});const _0x556c47=_0x598835(),{rowInsertionRanges:_0x16578b,columnInsertionRanges:_0x45e1a5,insertionRanges:_0x932754,deletionRanges:_0x290be6,cells:_0x331190}=_0x315e35;_0x16578b['length']&&_0x1820db['markMultiRangeInsertion'](_0x16578b,'tablePasteRow',{'tablePasteChainId':_0x556c47}),_0x45e1a5['length']&&_0x1820db['markMultiRangeInsertion'](_0x45e1a5,'tablePasteColumn',{'tablePasteChainId':_0x556c47}),_0x932754['length']&&(_0x1820db['markMultiRangeInsertion'](_0x932754,'tablePaste',{'tablePasteChainId':_0x556c47,'skipNestingCheck':!0x0}),_0x932754['forEach'](_0x57c23d=>_0x57c23d['detach']?.())),_0x290be6['length']&&(_0x1820db['markMultiRangeDeletion'](_0x290be6,'tablePaste',{'tablePasteChainId':_0x556c47,'skipNestingCheck':!0x0}),_0x290be6['forEach'](_0x6bfdeb=>_0x6bfdeb['detach']?.()));const _0xe78e33=_0x1820db['markMultiRangeBlockFormat'](_0x331190['map'](({element:_0xe4c429})=>_0xe4c429),{'formatGroupId':_0x598835()},[],'tablePasteCell',{'tablePasteChainId':_0x556c47});if(_0xe78e33){const _0x3a35cb=_0xe78e33['getMarkers'](),_0x29f67a=[];for(const {element:_0x1a2461,attributes:_0x5846f7}of _0x331190){if(!_0x5846f7)continue;const _0x35bc0f=_0x20483a['model']['createRangeOn'](_0x1a2461),_0x3e85c7=_0x3a35cb['find'](_0x3f2f8a=>_0x3f2f8a['getRange']()['isEqual'](_0x35bc0f));_0x3e85c7&&_0x29f67a['push']([_0x3e85c7['name'],_0x5846f7]);}_0x29f67a['length']&&_0xe78e33['setAttribute']('markerAttributes',Object['fromEntries'](_0x29f67a));}_0x315e35=null;}));},{'priority':_0x5255c7['high']+0xa}),_0x20483a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x52d091,_0xdee817)=>{const [_0x406715,_0x4dcc73,,_0x2dbe1a]=_0xdee817;if(!_0x315e35)return;_0x52d091['stop']();const _0x21f8e5=_0x406715['cell'],_0x4acfa2=_0x4dcc73,_0x32713c=Oe(_0x21f8e5),_0x3d7d5a=Oe(_0x4acfa2);_0x52d091['return']=_0x21f8e5;let _0x42d4e9=null,_0x5ddb55=null;if(_0x3d7d5a||_0x32713c){if(_0x32713c&&!_0x3d7d5a){_0x2dbe1a['remove'](_0x21f8e5['getChild'](0x0));for(const _0x458dd6 of Array['from'](_0x4acfa2['getChildren']()))_0x2dbe1a['insert'](_0x458dd6,_0x21f8e5,'end');const _0x3d0273=_0x315e35['rowInsertionIndexes']['includes'](_0x406715['row']),_0x5b0a86=_0x315e35['columnInsertionIndexes']['includes'](_0x406715['column']);_0x3d0273||_0x5b0a86||(_0x42d4e9=_0x78f3c6['fromRange'](_0x2dbe1a['createRangeIn'](_0x21f8e5)));}else _0x3d7d5a&&!_0x32713c&&(_0x5ddb55=_0x2dbe1a['createRangeIn'](_0x21f8e5));}else{const _0x31e63b=_0x2dbe1a['createElement']('tableCellSuggestion'),_0x2d17e=_0x2dbe1a['createElement']('tableCellSuggestion');_0x2dbe1a['wrap'](_0x2dbe1a['createRangeIn'](_0x21f8e5),_0x2d17e),_0x2dbe1a['insert'](_0x31e63b,_0x21f8e5,0x0);for(const _0x254559 of Array['from'](_0x4acfa2['getChildren']()))_0x2dbe1a['insert'](_0x254559,_0x31e63b,'end');_0x42d4e9=_0x78f3c6['fromRange'](_0x2dbe1a['createRangeOn'](_0x31e63b)),_0x5ddb55=_0x78f3c6['fromRange'](_0x2dbe1a['createRangeOn'](_0x2d17e));}const _0x5a0d5b=Array['from'](_0x4acfa2['getAttributes']())['filter'](([_0x1c62d7])=>Be['includes'](_0x1c62d7));_0x315e35['cells']['push']({'element':_0x21f8e5,'attributes':_0x5a0d5b['length']?Object['fromEntries'](_0x5a0d5b):null}),_0x42d4e9&&_0x315e35['insertionRanges']['push'](_0x42d4e9),_0x5ddb55&&_0x315e35['deletionRanges']['push'](_0x5ddb55);},{'priority':'high'}),_0x4aba17['on']('insertColumns',(_0x20e2fb,_0x213549)=>{const [_0x1424b9,_0x3c3829={}]=_0x213549;if(!_0x315e35)return;const _0x11059b=_0x3c3829['at']||0x0,_0x4ef084=_0x3c3829['columns']||0x1;_0x315e35['columnInsertionIndexes']=new Array(_0x4ef084)['fill'](_0x11059b)['map']((_0x1b3cf1,_0x399452)=>_0x1b3cf1+_0x399452);for(const {cell:_0x3fc152}of _0x4aba17['createTableWalker'](_0x1424b9,{'startColumn':_0x11059b,'endColumn':_0x11059b+_0x4ef084-0x1}))_0x315e35['columnInsertionRanges']['push'](_0x20483a['model']['createRangeOn'](_0x3fc152));},{'priority':'low'}),_0x4aba17['on']('insertRows',(_0xd43cb4,_0x367b69)=>{const [_0x5724f0,_0x2253be={}]=_0x367b69;if(!_0x315e35)return;const _0x5597a7=_0x2253be['at']||0x0,_0x145f57=_0x2253be['rows']||0x1;_0x315e35['rowInsertionIndexes']=new Array(_0x145f57)['fill'](_0x5597a7)['map']((_0x30f9f1,_0x362df8)=>_0x30f9f1+_0x362df8);for(const {cell:_0x3f63f8}of _0x4aba17['createTableWalker'](_0x5724f0,{'startRow':_0x5597a7,'endRow':_0x5597a7+_0x145f57-0x1}))_0x315e35['rowInsertionRanges']['push'](_0x20483a['model']['createRangeOn'](_0x3f63f8));},{'priority':'low'}),_0x1820db['descriptionFactory']['registerDescriptionCallback'](_0x4fbac5=>{if(_0x4fbac5['subType']&&_0x4fbac5['subType']['startsWith']('tablePaste'))return _0x4fbac5['previous']?{}:{'type':'insertion','content':o(_0x20483a['locale'],'*Replace\x20table\x20cells*')};});const _0x1a1818=()=>!0x1;for(const _0x17ffde of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1820db['_suggestionFactory']['registerCustomCallback']('insertion',_0x17ffde,'join',_0x1a1818),_0x1820db['_suggestionFactory']['registerCustomCallback']('deletion',_0x17ffde,'join',_0x1a1818),_0x1820db['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x17ffde,'join',_0x1a1818);_0x1820db['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1a1818),_0x1820db['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53bd26,_0x3d075a,_0x21b3eb)=>{const _0x4bde9e=_0x53bd26['map'](_0xa2d963=>_0xa2d963['getContainedElement']())['filter'](_0x123ca4=>_0x123ca4),_0x2abd07=new Map(_0x4bde9e['map'](_0x5c8c81=>[_0x5c8c81,null]));if(_0x315e35){for(const {element:_0xfaa412,attributes:_0x32cb5c}of _0x315e35['cells'])_0x32cb5c&&_0x2abd07['set'](_0xfaa412,_0x32cb5c);}else{if(_0x21b3eb&&_0x21b3eb['markerAttributes'])for(const [_0x2aadf6,_0x42b8a5]of Object['entries'](_0x21b3eb['markerAttributes'])){const _0x53cbd6=_0x20483a['model']['markers']['get'](_0x2aadf6),_0x488fb8=_0x53cbd6?_0x53cbd6['getRange']()['getContainedElement']():null;_0x488fb8&&_0x2abd07['set'](_0x488fb8,_0x42b8a5);}}_0x20483a['model']['change'](_0x5f330e=>{for(const [_0x22280e,_0x53b8d6]of _0x2abd07)_0x5f330e['setAttributes']({...xe,..._0x53b8d6},_0x22280e);});});const _0x58c132=(_0x427318,_0x3d2974)=>{_0x1820db['_suggestionFactory']['registerCustomCallback'](_0x427318,'tablePaste',_0x3d2974,(_0x4d6ec4,_0x266022,_0x28baf5)=>{_0x20483a['model']['change'](_0x22390a=>{const _0x1a474d=[];for(const _0x17a3bf of _0x4d6ec4){const _0x4246be=_0x17a3bf['start']['nodeAfter'];_0x4246be['is']('element','tableCellSuggestion')&&_0x1a474d['push'](_0x4246be);}_0x1820db['_suggestionFactory']['getSuggestionCallback'](_0x427318,null,_0x3d2974)(_0x4d6ec4,_0x266022,_0x28baf5);for(const _0x4809fa of _0x1a474d)'$graveyard'!=_0x4809fa['root']['rootName']&&_0x22390a['unwrap'](_0x4809fa);});});};_0x58c132('insertion','accept'),_0x58c132('insertion','discard'),_0x58c132('deletion','accept'),_0x58c132('deletion','discard'),_0x1820db['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x113483=>{const _0x3e2d0b=_0x113483['map'](_0x30806c=>_0x30806c['getContainedElement']()),_0x4ec200=_0x3e2d0b[0x0]['findAncestor']('table'),{minRow:_0x4ae9ff,maxRow:_0xeb7169}=_0x417227['_getCoordsForCells'](_0x3e2d0b);_0x4aba17['removeRows'](_0x4ec200,{'at':_0x4ae9ff,'rows':_0xeb7169-_0x4ae9ff+0x1});}),_0x1820db['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1672f6=>{const _0x40e4c1=_0x1672f6['map'](_0x354f6d=>_0x354f6d['getContainedElement']()),_0x2fd353=_0x40e4c1[0x0]['findAncestor']('table'),{minColumn:_0x33e676,maxColumn:_0x40180a}=_0x417227['_getCoordsForCells'](_0x40e4c1);_0x4aba17['removeColumns'](_0x2fd353,{'at':_0x33e676,'columns':_0x40180a-_0x33e676+0x1});});const _0x542e91=(_0x53aa61,_0x12734d)=>{if(!_0x12734d['subType']||!_0x12734d['subType']['startsWith']('tablePaste'))return;const _0x48ef7b=_0x12734d['attributes']['tablePasteChainId'],_0x64081a=_0x1820db['getSuggestions']()['filter'](_0x4799cf=>_0x4799cf['isInContent']&&_0x4799cf['attributes']&&_0x4799cf['attributes']['tablePasteChainId']==_0x48ef7b);_0x64081a['length']&&_0x12734d['getAllAdjacentSuggestions']()['length']!=_0x64081a['length']&&_0x64081a['reduce']((_0x2c2996,_0x4977e8)=>(_0x2c2996['next']=_0x4977e8,_0x4977e8['previous']=_0x2c2996,_0x4977e8));};function _0x21b660(_0x4dcbd8,_0x31eb98=!0x0){const {id:_0x321e96,authorId:_0x27b664}=_0x1820db['_splitMarkerName'](_0x4dcbd8['markerName']),_0x570f9c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xbc1945=_0x1820db['activeMarkers']['includes'](_0x4dcbd8['markerName']);return _0xbc1945&&_0x570f9c['push']('ck-suggestion-marker--active'),{'classes':_0x570f9c,'attributes':{'data-suggestion':_0x321e96,'data-author-id':_0x27b664},'priority':_0xbc1945&&_0x31eb98?0xbc2:0xbb8};}_0x1820db['on']('suggestionLoaded',_0x542e91,{'priority':'high'}),_0x1820db['on']('suggestionUnloaded',_0x542e91,{'priority':'high'}),_0x20483a['model']['document']['registerPostFixer'](()=>{let _0xb79fa0=!0x1;const _0x48947a=Array['from'](_0x20483a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25a26b,data:_0x2cebf8}of _0x48947a){const {group:_0x39387a,type:_0x4b2232,id:_0x38fc80}=_0x1820db['_splitMarkerName'](_0x25a26b);if('suggestion'!=_0x39387a||'deletion'!=_0x4b2232||_0x2cebf8['oldRange'])continue;if(!_0x1820db['hasSuggestion'](_0x38fc80))continue;const _0x1bcfa0=_0x1820db['getSuggestion'](_0x38fc80)['getRanges'](),_0x592814=_0x20483a['plugins']['get']('Users')['me'];for(const _0x300dfc of _0x1820db['getSuggestions']()){if(!_0x300dfc['isInContent']||_0x300dfc['author']!=_0x592814)continue;if('formatBlock'!=_0x300dfc['type']||'tablePasteCell'!=_0x300dfc['subType'])continue;if(_0x300dfc['getRanges']()['every'](_0x51a299=>_0x1bcfa0['some'](_0x3ed448=>_0x3ed448['containsRange'](_0x51a299,!0x0)))){for(const _0x229d4d of _0x300dfc['getAllAdjacentSuggestions']())_0x229d4d['isInContent']&&(_0x229d4d['discard'](),_0xb79fa0=!0x0);}}}return _0xb79fa0;}),_0x20483a['model']['document']['registerPostFixer'](_0x3d6df9=>{const _0x21223d=_0x20483a['commands']['get']('redo');if(!_0x21223d||!_0x21223d['_createdBatches']['has'](_0x3d6df9['batch']))return!0x1;let _0x1ffd6c=!0x1;const _0x4579d4=_0x20483a['plugins']['get']('Users')['me'],_0x860a85=_0x20483a['model']['document']['differ']['getChanges'](),_0x3a8522=Array['from'](_0x20483a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x52d15f,data:_0x25781b})=>{const {group:_0x825b4c,subType:_0x204574,authorId:_0x381c1b}=_0x1820db['_splitMarkerName'](_0x52d15f);return'suggestion'==_0x825b4c&&'tablePaste'==_0x204574&&_0x381c1b==_0x4579d4['id']&&!_0x25781b['oldRange'];});for(const _0x1f2b46 of _0x860a85){if('insert'!=_0x1f2b46['type']||'tableCellSuggestion'!=_0x1f2b46['name']||0x1!=_0x1f2b46['length'])continue;const _0x4a5f5d=_0x3d6df9['createRange'](_0x1f2b46['position'],_0x1f2b46['position']['getShiftedBy'](0x1));if(!_0x3a8522['find'](({data:_0x588d24})=>_0x588d24['newRange']['isEqual'](_0x4a5f5d))){for(const {name:_0x37d118,data:_0x118946}of _0x3a8522)if(_0x4a5f5d['containsRange'](_0x118946['newRange'])){_0x3d6df9['updateMarker'](_0x37d118,{'range':_0x4a5f5d}),_0x1ffd6c=!0x0;break;}}}return _0x1ffd6c;}),_0x20483a['model']['document']['registerPostFixer'](_0x4bb8a9=>{let _0x824375=!0x1;const _0x1d017c=_0x20483a['plugins']['get']('Users')['me'],_0x1ae0c4=_0x1820db['getSuggestions']()['filter'](_0x5c0616=>_0x5c0616['isInContent']&&_0x5c0616['author']==_0x1d017c),_0x478c1f=new Set(),_0x4659ac=new Set();for(const _0x3fcd7f of _0x1ae0c4)if('tablePaste'==_0x3fcd7f['subType'])for(const _0x2ef153 of _0x3fcd7f['getMarkers']()){const _0xf17d91=_0x2ef153['getRange']()['getContainedElement']();if(_0xf17d91){if(_0xf17d91['is']('element','tableCellSuggestion')&&Oe(_0xf17d91)){_0x3fcd7f['removeMarker'](_0x2ef153['name']),_0x478c1f['add'](_0xf17d91),_0x824375=!0x0;const _0x2c42c7=_0xf17d91['nextSibling'],_0x1eae4f=_0xf17d91['previousSibling'],_0x3b7ec5=_0x2c42c7&&_0x2c42c7['is']('element','tableCellSuggestion'),_0x523bd0=_0x1eae4f&&_0x1eae4f['is']('element','tableCellSuggestion');_0x3b7ec5&&!_0x478c1f['has'](_0x2c42c7)&&_0x4659ac['add'](_0x2c42c7),_0x523bd0&&!_0x478c1f['has'](_0x1eae4f)&&_0x4659ac['add'](_0x1eae4f);}else _0xf17d91['is']('element','paragraph')&&_0xf17d91['isEmpty']&&(_0x3fcd7f['removeMarker'](_0x2ef153['name']),_0x824375=!0x0);}}else{if('tablePasteCell'==_0x3fcd7f['subType']){if(!_0x3fcd7f['attributes']||!_0x3fcd7f['attributes']['tablePasteChainId'])continue;const _0x19a11c=_0x3fcd7f['attributes']['markerAttributes'];if(_0x19a11c&&Object['keys'](_0x19a11c)['length'])continue;const _0x39b2bf=_0x3fcd7f['attributes']['tablePasteChainId'];let _0xd51615=!0x0,_0x2e9d8e=!0x0;for(const _0x65e5c0 of _0x1ae0c4)if(_0x65e5c0['subType']&&_0x65e5c0['subType']['startsWith']('tablePaste')){if(!_0x65e5c0['attributes']['tablePasteChainId']){_0x2e9d8e=!0x1;break;}if(_0x65e5c0['id']!=_0x3fcd7f['id']&&_0x65e5c0['attributes']['tablePasteChainId']==_0x39b2bf){_0xd51615=!0x1;break;}}_0x2e9d8e&&_0xd51615&&(_0x3fcd7f['removeMarkers'](),_0x824375=!0x0);}}for(const _0x4ded59 of _0x478c1f)_0x4bb8a9['remove'](_0x4ded59);for(const _0x2143d0 of _0x4659ac)_0x4bb8a9['unwrap'](_0x2143d0);return _0x824375;}),_0x20483a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xbd47e4=>_0x21b660(_0xbd47e4),'converterPriority':'high'}),_0x20483a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3a040,_0x36cef7)=>_0x36cef7['options']['showSuggestionHighlights']?_0x21b660(_0x3a040,!0x1):null,'converterPriority':'high'});const _0x145269=_0x20483a['editing']['view'];this['listenTo'](_0x145269['document'],'clipboardOutput',(_0x3e893c,_0x48d156)=>{const _0xbca3f6=[];for(const _0x34b1f8 of _0x145269['createRangeIn'](_0x48d156['content'])['getItems']())_0x34b1f8['is']('element','suggestion-td')&&_0xbca3f6['push'](_0x34b1f8);_0x145269['change'](_0x4fcdb5=>{for(const _0x4271da of _0xbca3f6)_0x4fcdb5['move'](_0x4fcdb5['createRangeIn'](_0x4271da),_0x4fcdb5['createPositionBefore'](_0x4271da)),_0x4fcdb5['remove'](_0x4271da);});});}}function Oe(_0x23a37f){if(_0x23a37f['isEmpty'])return!0x0;const _0xf53b63=_0x23a37f['getChild'](0x0);return _0xf53b63['is']('element','paragraph')&&_0xf53b63['isEmpty'];}function Ue(_0x59b612,_0x2347bc={},_0x22a6e1){for(const {isAnchor:_0x27f020,cellHeight:_0x4efab3,cellWidth:_0x2f5ee0}of _0x22a6e1['createTableWalker'](_0x59b612,{'includeAllSlots':!0x0,..._0x2347bc}))if(!_0x27f020||0x1!=_0x4efab3||0x1!=_0x2f5ee0)return!0x1;return!0x0;}class Dt extends _0x236dec{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2d8854=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d8854['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2d8854['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2d8854['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d8854['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2d8854['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2d8854['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x371ac1,_0x1edd2b){const _0xb220bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2656c1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x51f36e=_0x1edd2b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x446107=_0x2656c1['getColumnGroupElement'](_0x51f36e);let _0x11ed86=_0x446107?_0x2656c1['getTableColumnsWidths'](_0x446107):null,_0x302e98=_0x51f36e['getAttribute']('tableWidth')||null;const _0x631dcb=_0x1edd2b['tableWidth']||_0x302e98,_0xc18e67=_0x1edd2b['columnWidths']||_0x11ed86,_0x413e37=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e45d5 of _0xb220bc['getSuggestions']()){const _0x1c0a66=_0x3e45d5['getContainedElement']();if('resizeTable'===_0x3e45d5['subType']&&_0x1c0a66===_0x51f36e){_0x3e45d5['author']!==_0x413e37&&_0x3e45d5['discard']();const _0x40a370=_0x3e45d5['data']['commandParams'];_0x302e98=_0x40a370[0x0]['tableWidth'],_0x11ed86=_0x40a370[0x0]['columnWidths'];break;}}_0x371ac1({'table':_0x51f36e,'tableWidth':_0x631dcb,'columnWidths':_0xc18e67}),_0xb220bc['markBlockFormat'](_0x51f36e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x302e98,'columnWidths':_0x11ed86}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4b8cd7){if('formatBlock'!=_0x4b8cd7['type']&&'formatInline'!=_0x4b8cd7['type'])return;const {data:_0xe2ec39}=_0x4b8cd7;if(_0xe2ec39&&'resizeTable'===_0xe2ec39['formatGroupId']){const _0x58291e='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x58291e)};}}}class Mt extends _0x236dec{['afterInit'](){const _0xa50210=this['editor'];_0xa50210['plugins']['has']('Template')&&_0xa50210['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x236dec{['afterInit'](){const _0x28e09e=this['editor'];if(!_0x28e09e['commands']['get']('insertTableOfContents'))return;_0x28e09e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3b8b75=_0x28e09e['plugins']['get']('TrackChangesEditing'),_0x58b19f=_0x28e09e['locale'];_0x3b8b75['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4c3fce=>o(_0x58b19f,'ELEMENT_TABLE_OF_CONTENTS',_0x4c3fce));}}class Bt extends _0x236dec{['afterInit'](){const _0x47426d=this['editor'];if(!_0x47426d['plugins']['has']('Title'))return;const _0x24bef4=_0x47426d['plugins']['get']('TrackChangesEditing');_0x24bef4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x47426d['locale'],'ELEMENT_TITLE')),_0x47426d['model']['document']['registerPostFixer'](_0x450ff5=>{let _0x311862=!0x1;const _0x6d277=Array['from'](_0x47426d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1fddc2,data:_0x5c3a98}of _0x6d277){const {group:_0x3e76b6}=_0x24bef4['_splitMarkerName'](_0x1fddc2);if('suggestion'!==_0x3e76b6||!_0x5c3a98['newRange'])continue;const _0x1fdd80=_0x5c3a98['newRange'],_0x4cbde8=_0x1fdd80['end']['nodeBefore'];if(!_0x4cbde8||!_0x4cbde8['is']('element','title-content'))continue;if(!_0x1fdd80['start']['isTouching'](_0x1fdd80['end']))continue;const _0x1fe3f9=_0x47426d['model']['schema']['getNearestSelectionRange'](_0x1fdd80['end'],'forward');if(_0x1fe3f9&&_0x1fe3f9['isCollapsed']){const _0x235381=_0x450ff5['createRange'](_0x1fdd80['start'],_0x1fe3f9['start']);_0x235381['isEqual'](_0x1fdd80)||(_0x450ff5['updateMarker'](_0x1fddc2,{'range':_0x235381}),_0x311862=!0x0);}_0x311862||(_0x450ff5['removeMarker'](_0x1fddc2),_0x311862=!0x0);}return _0x311862;});}}class Ot extends _0x236dec{['afterInit'](){const _0xfd3629=this['editor'],_0x1d63ac=_0xfd3629['plugins']['get']('TrackChangesEditing');_0xfd3629['plugins']['has']('Uploadcare')&&(_0x1d63ac['enableCommand']('uploadcare'),_0xfd3629['plugins']['has']('UploadcareImageEdit')&&(_0x1d63ac['enableCommand']('uploadcareImageEdit'),_0x1d63ac['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1d63ac['registerBlockAttribute']('uploadcareImageId'),_0x1d63ac['descriptionFactory']['registerDescriptionCallback'](_0x5a4b1f=>{if('attribute'!=_0x5a4b1f['type'])return;const {data:_0x58c8ed}=_0x5a4b1f;return _0x58c8ed&&'uploadcareImageId'==_0x58c8ed['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x236dec{['afterInit'](){const _0x392144=this['editor'],_0x5c3573=_0x392144['plugins']['get']('TrackChangesEditing');_0x392144['plugins']['has']('UndoEditing')&&(_0x5c3573['enableCommand']('undo'),_0x5c3573['enableCommand']('redo'));}}class Tt extends _0x236dec{static get['requires'](){return[vt];}['afterInit'](){const _0x56baf0=this['editor'];if(!_0x56baf0['plugins']['has']('TableCaptionEditing'))return;_0x56baf0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x236dec{['tableProperties'];['tableCellProperties'];constructor(_0x2333e7){super(_0x2333e7),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 _0x3a5f89=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1363e3 of this['tableProperties'])_0x3a5f89['enableCommand'](_0x1363e3,(_0x3c9b82,_0x2c4bd1)=>{const _0x5c9d30=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1363e3,[_0x5c9d30],this['tableProperties'],'tableProperties',_0x3c9b82,_0x2c4bd1);});_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3a5f89['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5e0f69,_0x485d13)=>this['handleDiscardAction'](this['tableProperties'],_0x5e0f69,_0x485d13)),_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2afb15 of this['tableCellProperties'])_0x3a5f89['enableCommand'](_0x2afb15,(_0x3811b0,_0x1213be)=>{const _0x1e5c73=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2afb15,_0x1e5c73,this['tableCellProperties'],'tableCellProperties',_0x3811b0,_0x1213be);});_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3a5f89['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1b98f2,_0x8aaf09)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1b98f2,_0x8aaf09)),_0x3a5f89['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3a5f89['descriptionFactory']['registerDescriptionCallback'](_0x4c3f44=>this['handleSuggestionDescription'](_0x4c3f44));}['_handlePropertyChange'](_0x4164e9,_0x6ebdac,_0x45f059,_0xd63a88,_0x2e2b2e,_0x10feb5){const _0x13bc97=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x10feb5['batch'],()=>{for(const _0x4fee84 of _0x6ebdac){if(this['_getSuggestion'](_0x4fee84,_0xd63a88))_0x2e2b2e(_0x10feb5);else{const _0xa0f89e={};for(const _0x471907 of _0x45f059){const _0x1f38a1=_0x4fee84['getAttribute'](_0x471907);void 0x0!==_0x1f38a1&&(_0xa0f89e[_0x471907]=_0x1f38a1);}_0x2e2b2e(_0x10feb5),_0x13bc97['markBlockFormat'](_0x4fee84,{'commandParams':[_0xa0f89e]},[],_0xd63a88);}}});}['handleDiscardAction'](_0x4abb34,_0x593613,_0x13d60d){const _0x3980d9=_0x593613[0x0]['start']['nodeAfter'],_0x43ea2a=_0x13d60d['commandParams'][0x0];this['editor']['model']['change'](_0x2d7255=>{for(const _0x284c96 of _0x4abb34)void 0x0!==_0x43ea2a[_0x284c96]?_0x2d7255['setAttribute'](_0x284c96,_0x43ea2a[_0x284c96],_0x3980d9):_0x2d7255['removeAttribute'](_0x284c96,_0x3980d9);});}['handleSuggestionDescription'](_0x20dc26){if(_0x20dc26['data'])switch(_0x20dc26['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x19d1b6,_0x148b1e){const _0x54d223=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xc91f22 of _0x54d223['getSuggestions']({'skipNotAttached':!0x0})){const _0x966f96=_0xc91f22['getContainedElement']();if(_0xc91f22['subType']===_0x148b1e&&_0x966f96===_0x19d1b6)return _0xc91f22;}return null;}}const m='$elementName';class p extends _0x236dec{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d36d3,_0x2106e0,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6cda61){super(_0x6cda61),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x49a0ba,_0x3b8c9d,_0x48efe2,_0x2fbf86)=>{this['_model']['change'](()=>{for(const _0x3aa01c of[..._0x2fbf86,..._0x48efe2])this['_model']['markers']['has'](_0x3aa01c)&&_0x6cda61['editing']['reconvertMarker'](_0x3aa01c);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x6cda61['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x6cda61['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x6cda61['config']['get']('trackChanges.trackFormatChanges'),_0x6cda61['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x6cda61['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x6cda61,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x749897=this['editor'],_0x5ab545=(_0x4a8d2e,_0x47a57f)=>{if('attribute'!=_0x4a8d2e)return'ck-suggestion-marker-'+_0x4a8d2e;const _0x50c5cc=_0x47a57f['split']('|')[0x0];return this['_isBlockAttribute'](_0x50c5cc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x749897['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xe047=>{const {id:_0x497c36,authorId:_0x4a6d94,type:_0x560c4b,subType:_0x57500f}=this['_splitMarkerName'](_0xe047['markerName']),_0x3f5b00=['ck-suggestion-marker',_0x5ab545(_0x560c4b,_0x57500f)];let _0x3c7baf=0xbb8;return this['activeMarkers']['includes'](_0xe047['markerName'])&&(_0x3f5b00['push']('ck-suggestion-marker--active'),_0x3c7baf=0xbc2),'deletion'==_0x560c4b&&(_0x3c7baf+=0x5),{'classes':_0x3f5b00,'attributes':{'data-suggestion':_0x497c36,'data-author-id':_0x4a6d94},'priority':_0x3c7baf};}}),_0x749897['conversion']['for']('dataDowncast')['add'](_0x83d0c4=>{_0x83d0c4['on']('addMarker:suggestion',(_0x28863f,_0xd7d388,_0x298f46)=>{if(!_0x298f46['options']['showSuggestionHighlights'])return;const _0x18b3e0=_0xd7d388['item'];if(!_0x18b3e0)return;const _0x202081=_0x298f46['mapper']['toViewElement'](_0x18b3e0);_0x749897['model']['schema']['isObject'](_0x18b3e0)&&_0x202081&&!_0x202081['getCustomProperty']('widget')&&_0x202081['is']('containerElement')&&_0x3c3dbf(_0x202081,_0x298f46['writer']);},{'priority':'high'});}),_0x749897['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5700bd,_0x40580e)=>{if(!_0x40580e['options']['showSuggestionHighlights'])return null;const {type:_0xa2960f,subType:_0x23bbac}=this['_splitMarkerName'](_0x5700bd['markerName']);return{'classes':['ck-suggestion-marker',_0x5ab545(_0xa2960f,_0x23bbac)],'priority':0xbb8};}});const _0x44b2c2=({showActiveMarkers:_0x2d4439=!0x0,isAttributeSuggestion:_0x50d326=!0x1}={})=>(_0x515fcb,_0x5c6968,_0x2a7eeb)=>{if(!_0x5c6968['item'])return;const {id:_0x341f63,authorId:_0x5cd3e4}=this['_splitMarkerName'](_0x5c6968['markerName']);if(_0x50d326){const _0x2f0458=this['_suggestions']['get'](_0x341f63),_0x2a9083=this['_getAttributeKey'](_0x2f0458);if(!this['_isBlockAttribute'](_0x2a9083))return;}if(_0x5c6968['item']['is']('selection'))return void _0x2a7eeb['consumable']['consume'](_0x5c6968['item'],_0x515fcb['name']);const _0x2eff0b=_0x2a7eeb['mapper']['toViewElement'](_0x5c6968['item']);if(_0x5c6968['item']['is']('element')&&_0x749897['model']['schema']['isBlock'](_0x5c6968['item'])&&!_0x2eff0b['getCustomProperty']('addHighlight')){_0x2a7eeb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2eff0b),_0x2a7eeb['writer']['setAttribute']('data-suggestion',_0x341f63,_0x2eff0b),_0x2a7eeb['writer']['setAttribute']('data-author-id',_0x5cd3e4,_0x2eff0b),_0x2a7eeb['mapper']['bindElementToMarker'](_0x2eff0b,_0x5c6968['markerName']),_0x2d4439&&(this['activeMarkers']['includes'](_0x5c6968['markerName'])?_0x2a7eeb['writer']['addClass']('ck-suggestion-marker--active',_0x2eff0b):_0x2a7eeb['writer']['removeClass']('ck-suggestion-marker--active',_0x2eff0b));for(const _0x1589a4 of _0x749897['model']['createRangeIn'](_0x5c6968['item'])['getItems']())_0x2a7eeb['consumable']['consume'](_0x1589a4,_0x515fcb['name']);_0x2a7eeb['consumable']['consume'](_0x5c6968['item'],_0x515fcb['name']);}};_0x749897['conversion']['for']('dataDowncast')['add'](_0x404d7e=>{_0x404d7e['on']('addMarker:suggestion:formatBlock',(_0x21f4ab,_0x162cb9,_0x6099d0)=>{_0x6099d0['options']['showSuggestionHighlights']&&_0x44b2c2({'showActiveMarkers':!0x1})(_0x21f4ab,_0x162cb9,_0x6099d0);},{'priority':'highest'});}),_0x749897['conversion']['for']('dataDowncast')['add'](_0x44bae7=>{_0x44bae7['on']('addMarker:suggestion:attribute',(_0x2efe08,_0x2885e8,_0xcb30ef)=>{_0xcb30ef['options']['showSuggestionHighlights']&&_0x44b2c2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2efe08,_0x2885e8,_0xcb30ef);},{'priority':'highest'});}),_0x749897['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5bb829,_0x39ede7)=>_0x39ede7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5bb829['substr'](0xb)}}),_0x749897['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x13bc5e,{writer:_0x2bbd3d})=>{let _0x16dfc6='suggestion:'+_0x13bc5e['getAttribute']('suggestion-type')+':'+_0x13bc5e['getAttribute']('id');return _0x13bc5e['getAttribute']('marker-count')&&(_0x16dfc6+=':'+_0x13bc5e['getAttribute']('marker-count')),_0x2bbd3d['createElement']('$marker',{'data-name':_0x16dfc6});}}),_0x749897['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x749897['conversion']['for']('editingDowncast')['add'](_0xa4522d=>{_0xa4522d['on']('addMarker:suggestion:formatBlock',_0x44b2c2(),{'priority':'high'});}),_0x749897['conversion']['for']('editingDowncast')['add'](_0x251c6b=>{_0x251c6b['on']('addMarker:suggestion:attribute',_0x44b2c2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x749897['conversion']['for']('editingDowncast')['add'](_0x35329b=>{_0x35329b['on']('removeMarker:suggestion:formatBlock',(_0x3282e8,_0x2a959c,_0x1aaed3)=>{const _0x146f3c=_0x1aaed3['mapper']['markerNameToElements'](_0x2a959c['markerName']);if(_0x146f3c){for(const _0x120391 of _0x146f3c)_0x120391['getCustomProperty']('addHighlight')||(_0x1aaed3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x120391),_0x1aaed3['writer']['removeAttribute']('data-suggestion',_0x120391),_0x1aaed3['writer']['removeAttribute']('data-author-id',_0x120391),_0x1aaed3['mapper']['unbindElementFromMarkerName'](_0x120391,_0x2a959c['markerName']));}},{'priority':'high'});}),_0x749897['conversion']['for']('editingDowncast')['add'](_0x3cff74=>{_0x3cff74['on']('removeMarker:suggestion:attribute',(_0x72f052,_0x42bad5,_0x5a7836)=>{const _0x5d8690=_0x5a7836['mapper']['markerNameToElements'](_0x42bad5['markerName']);if(!_0x5d8690)return;const {id:_0x4d0c47}=this['_splitMarkerName'](_0x42bad5['markerName']),_0x85cde8=this['_suggestions']['get'](_0x4d0c47),_0x1b4f76=this['_getAttributeKey'](_0x85cde8);if(this['_isBlockAttribute'](_0x1b4f76)){for(const _0x1ecf7d of _0x5d8690)_0x1ecf7d['getCustomProperty']('addHighlight')||(_0x5a7836['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1ecf7d),_0x5a7836['writer']['removeAttribute']('data-suggestion',_0x1ecf7d),_0x5a7836['writer']['removeAttribute']('data-author-id',_0x1ecf7d),_0x5a7836['mapper']['unbindElementFromMarkerName'](_0x1ecf7d,_0x42bad5['markerName']));}},{'priority':'high'});}),_0x749897['model']['document']['registerPostFixer'](_0x51b467=>{let _0x3bb0a4=!0x1;const _0x515f0d=Array['from'](_0x749897['model']['document']['differ']['getChangedMarkers']()),_0x538f57=new Set();for(const {name:_0x1c0330,data:_0x24ec62}of _0x515f0d){const {group:_0x22ac40,type:_0x528a26,subType:_0x1d08ff,id:_0x27aad2}=this['_splitMarkerName'](_0x1c0330);if('suggestion'!==_0x22ac40)continue;const _0x308139=this['_suggestions']['get'](_0x27aad2);if(null!=_0x24ec62['newRange']){'formatInline'==_0x528a26&&(_0x3bb0a4=_0x3bb0a4||Gt(_0x24ec62['newRange'],_0x1c0330,_0x51b467,_0x749897['model']['schema']));const _0x146a0f='attribute'==_0x528a26&&this['_isBlockAttribute'](_0x1d08ff['split']('|')[0x0]);if(_0x24ec62['newRange']['isCollapsed']||'$graveyard'==_0x24ec62['newRange']['root']['rootName']||'formatBlock'==_0x528a26&&!Lt(_0x24ec62['newRange'])||_0x146a0f&&!Lt(_0x24ec62['newRange'])||'deletion'==_0x528a26&&!(!Pt(_0x35006f=_0x24ec62['newRange'])&&!function(_0x599588){return _0x599588['start']['parent']==_0x599588['end']['nodeBefore']&&_0x599588['start']['isAtEnd'];}(_0x35006f)))_0x51b467['removeMarker'](_0x1c0330),_0x3bb0a4=!0x0;else{if(!_0x308139||!_0x308139['isInContent'])continue;if(_0x24ec62['newRange']&&_0x24ec62['oldRange']&&_0x24ec62['newRange']['isEqual'](_0x24ec62['oldRange']))continue;_0x538f57['add'](_0x308139);}}}var _0x35006f;return _0x538f57['size']>0x0&&(_0x3bb0a4=!!this['_joinWithAdjacentSuggestions'](_0x538f57)||_0x3bb0a4),_0x3bb0a4;}),_0x749897['model']['document']['registerPostFixer'](_0x26ef7d=>{let _0x1d7022=!0x1;for(const _0x4eacf8 of _0x749897['model']['document']['differ']['getChanges']())if('insert'==_0x4eacf8['type'])for(const _0xfabd52 of this['_suggestions']['values']()){if(_0xfabd52['isMultiRange']||!_0xfabd52['isInContent'])continue;const _0x165f86='formatBlock'==_0xfabd52['type'],_0x395058=this['_getAttributeKey'](_0xfabd52),_0x550e10=_0x395058&&this['_isBlockAttribute'](_0x395058);if(!_0x165f86&&!_0x550e10)continue;const _0x52a4fd=_0xfabd52['getFirstRange']();if(_0x52a4fd['start']['parent']!=_0x52a4fd['end']['parent']&&!_0x52a4fd['end']['isAtEnd']){const _0x199874=_0x749897['model']['createPositionAt'](_0x52a4fd['start']['nodeAfter'],'end'),_0x2a71e2=_0x749897['model']['createRange'](_0x52a4fd['start'],_0x199874);_0x26ef7d['updateMarker'](_0xfabd52['getFirstMarker'](),{'range':_0x2a71e2}),_0x1d7022=!0x0;}}return _0x1d7022;}),_0x749897['model']['document']['registerPostFixer'](_0x47a3ec=>this['_processAttributeChanges'](_0x47a3ec)),_0x749897['model']['document']['registerPostFixer'](_0x56527e=>!_0x56527e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x56527e)),_0x749897['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x749897['model']['document']['on']('change:data',(_0x1eb842,_0x570212)=>{if(!_0x570212['isLocal']||_0x570212['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1e28ba=_0x749897['model']['document']['differ']['getChanges']();if(0x0==_0x1e28ba['length'])return;const _0x5089df=[],_0x1687b5=_0x1e28ba['filter'](_0x48df78=>'attribute'==_0x48df78['type']),_0x513433=_0x1e28ba['filter'](_0x5557fb=>'insert'==_0x5557fb['type']&&'$text'!=_0x5557fb['name']);for(const _0x1fc18f of _0x1687b5)this['_isRegisteredAttribute'](_0x1fc18f['attributeKey'])&&_0x5089df['push']({'key':_0x1fc18f['attributeKey'],'newValue':_0x1fc18f['attributeNewValue'],'oldValue':_0x1fc18f['attributeOldValue'],'range':Jt(_0x1fc18f['range'],_0x749897['model'])});for(const _0x1e019d of _0x513433){if('rename'!=_0x1e019d['action']&&'refresh'!=_0x1e019d['action'])continue;const _0x2d10ac=Ht(_0x1e019d['position']['nodeAfter'],_0x749897['model']),_0x5e8003=_0x1e019d['before'];'rename'==_0x1e019d['action']&&_0x5089df['push']({'key':m,'newValue':_0x1e019d['name'],'oldValue':_0x5e8003['name'],'range':_0x2d10ac});for(const [_0x15c363,_0x3dbc14]of _0x5e8003['attributes']){if(!this['_isRegisteredAttribute'](_0x15c363))continue;const _0x125830=_0x1e019d['attributes']['get'](_0x15c363);_0x3dbc14!==_0x125830&&_0x5089df['push']({'key':_0x15c363,'newValue':_0x125830,'oldValue':_0x3dbc14,'range':_0x2d10ac});}for(const [_0x558cff,_0x5ce094]of _0x1e019d['attributes'])this['_isRegisteredAttribute'](_0x558cff)&&(_0x5e8003['attributes']['has'](_0x558cff)||_0x5089df['push']({'key':_0x558cff,'newValue':_0x5ce094,'oldValue':null,'range':_0x2d10ac}));}0x0!=_0x5089df['length']&&_0x749897['model']['enqueueChange'](_0x570212,_0x1b9058=>{const _0xb00886=_0x598835();for(const {range:_0x1ec613,key:_0x37c5c6,oldValue:_0x15fdcd,newValue:_0x536a91}of _0x5089df)this['markAttributeChange'](_0x1ec613,_0x37c5c6,_0x15fdcd,_0x536a91,{'groupId':_0xb00886});this['_reduceExistingSuggestions'](_0x1b9058,_0x5089df);});},{'priority':'lowest'}),_0x749897['model']['markers']['on']('update:suggestion',(_0x17bc6a,_0x49dc24,_0x289c41)=>{if(null==_0x289c41){const {id:_0x2e4207}=this['_splitMarkerName'](_0x49dc24['name']),_0x353282=this['_suggestions']['get'](_0x2e4207);_0x353282&&_0x353282['addMarkerName'](_0x49dc24['name']);}}),_0x749897['model']['document']['on']('change:data',()=>{const _0x30202f=Array['from'](_0x749897['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1b130e=>'suggestion'===this['_splitMarkerName'](_0x1b130e['name'])['group']);if(0x0===_0x30202f['length'])return;_0x30202f['sort']((_0x2840ae,_0x1b20f0)=>{const _0x1778b2=_0x2840ae['data']['oldRange'],_0x58a187=_0x1b20f0['data']['oldRange'];return null===_0x1778b2&&null===_0x58a187?0x0:null===_0x1778b2&&null!==_0x58a187?-0x1:null!==_0x1778b2&&null===_0x58a187?0x1:_0x1778b2['start']['isBefore'](_0x58a187['start'])?-0x1:0x1;});const _0x3268ce=new Set(),_0x438a81=new Set();for(const {name:_0x243cb6,data:_0x3ff404}of _0x30202f){const {id:_0x18fb6f}=this['_splitMarkerName'](_0x243cb6);if(null===_0x3ff404['oldRange']){const _0x58841a=this['_handleNewSuggestionMarker'](_0x243cb6);_0x438a81['add'](_0x58841a);}else{const _0x7865e0=this['_suggestions']['get'](_0x18fb6f);null!==_0x3ff404['newRange']||_0x7865e0['isInContent']?(_0x3268ce['add'](_0x7865e0['head']),_0x438a81['add'](_0x7865e0)):this['_removeSuggestion'](_0x7865e0);}}_0x438a81['size']>0x0&&this['_refreshSuggestionsChain'](_0x438a81);for(const _0x4f34e9 of _0x3268ce)this['fire']('suggestionChanged',_0x4f34e9);}),_0x749897['model']['on']('applyOperation',(_0x2541f5,_0x5333e7)=>{const _0x2a4553=_0x5333e7[0x0];if(!this['_suggestions']['size'])return;if(!_0x2a4553['isDocumentOperation'])return;if(_0x2a4553['batch']['isUndo']||!_0x2a4553['batch']['isLocal'])return;let _0x2d9bc3,_0x5590a9;switch(_0x2a4553['type']){case'insert':_0x2d9bc3=_0x749897['model']['createPositionAt'](_0x2a4553['position']),_0x5590a9=_0x2d9bc3['getShiftedBy'](_0x2a4553['howMany']);break;case'split':_0x2d9bc3=_0x749897['model']['createPositionAt'](_0x2a4553['splitPosition']),_0x5590a9=_0x749897['model']['createPositionAt'](_0x2a4553['moveTargetPosition']);break;case'move':_0x2d9bc3=_0x749897['model']['createPositionAt'](_0x2a4553['targetPosition']),_0x5590a9=_0x2d9bc3['getShiftedBy'](_0x2a4553['howMany']);break;default:return;}const _0xe9e833=_0x749897['model']['createRange'](_0x2d9bc3,_0x5590a9);_0x749897['model']['change'](()=>{for(const {suggestion:_0x124103,meta:_0x40eefb}of this['_findSuggestions'](_0xe9e833)){if(_0x124103['isMultiRange'])continue;if('formatInline'==_0x124103['type'])continue;const _0x2cbdde=this['_getAttributeKey'](_0x124103);if(_0x2cbdde&&this['_isBlockAttribute'](_0x2cbdde)&&'split'!=_0x2a4553['type'])continue;const _0x25cf35=_0x124103['data']&&_0x124103['data']['multipleBlocks'];('formatBlock'!=_0x124103['type']||'split'==_0x2a4553['type']&&!_0x25cf35)&&(_0x40eefb['containsRangeInObject']||'insertion'==_0x124103['type']&&_0x40eefb['isOwn']||_0x124103['getFirstRange']()['containsRange'](_0xe9e833)&&this['_breakSuggestionMarker'](_0x124103,_0x2d9bc3,_0x5590a9));}});},{'priority':'lowest'}),_0x749897['model']['on']('deleteContent',(_0x464c86,_0x260a4e)=>{const _0x2fa5a1=_0x260a4e[0x0],_0x15c457=_0x260a4e[0x1];if(_0x15c457&&_0x15c457['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2fa5a1['isCollapsed'])return;const _0x31e5f4=_0x749897['model']['schema'],{start:_0x223d53,end:_0x51381c}=_0x2fa5a1['getFirstRange'](),_0x5b485b=_0x223d53['nodeAfter']&&_0x31e5f4['isLimit'](_0x223d53['nodeAfter'])?null:_0x31e5f4['getNearestSelectionRange'](_0x223d53,'forward'),_0x50ae23=_0x51381c['nodeBefore']&&_0x31e5f4['isLimit'](_0x51381c['nodeBefore'])?null:_0x31e5f4['getNearestSelectionRange'](_0x51381c,'backward'),_0x19d7e2=_0x749897['model']['createRange'](_0x5b485b?_0x5b485b['start']:_0x223d53,_0x50ae23?_0x50ae23['end']:_0x51381c);_0x749897['model']['change'](_0x2219de=>{this['markDeletion'](_0x19d7e2);const _0x359c1e=_0x749897['model']['schema']['getNearestSelectionRange'](_0x19d7e2['start']);_0x2fa5a1['is']('documentSelection')?_0x2219de['setSelection'](_0x359c1e):_0x2fa5a1['setTo'](_0x359c1e);}),_0x464c86['stop']();},{'priority':_0x5255c7['normal']+0xa}),_0x749897['model']['on']('insertContent',(_0x515f83,_0x3ff7c0)=>{const _0x15239c=_0x3ff7c0[_0x3ff7c0['length']-0x1];_0x15239c&&_0x15239c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x749897['model']['change'](()=>{let _0x2d8881=_0x749897['model']['insertContent'](_0x3ff7c0[0x0],_0x3ff7c0[0x1],_0x3ff7c0[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d8881)return;_0x515f83['return']=_0x2d8881['clone']();const _0x27f986=_0x2d8881['end']['nodeBefore'],_0x2b46fa=_0x749897['model']['schema'];_0x27f986&&_0x2b46fa['isBlock'](_0x27f986)&&!_0x2b46fa['isObject'](_0x27f986)&&(_0x2d8881=_0x749897['model']['createRange'](_0x2d8881['start'],_0x749897['model']['createPositionAt'](_0x27f986,'end'))),this['markInsertion'](_0x2d8881);}),_0x515f83['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x31d1e1=new O(_0x749897,this['_suggestions']);_0x749897['commands']['add']('acceptSuggestion',_0x31d1e1),this['enableCommand']('acceptSuggestion');const _0x53b195=new R(_0x749897,this['_suggestions']);_0x749897['commands']['add']('discardSuggestion',_0x53b195),this['enableCommand']('discardSuggestion'),_0x749897['commands']['add']('acceptAllSuggestions',new x(_0x749897,_0x31d1e1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x749897['commands']['add']('discardAllSuggestions',new x(_0x749897,_0x53b195,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x749897['commands']['add']('acceptSelectedSuggestions',new E(_0x749897,_0x31d1e1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x749897['commands']['add']('discardSelectedSuggestions',new E(_0x749897,_0x53b195,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4e7492=_0x749897['plugins']['get']('CommentsRepository');this['listenTo'](_0x4e7492,'addComment',(_0x58dcb2,{threadId:_0x861e24})=>{const _0x614714=this['_suggestions']['get'](_0x861e24);_0x614714&&_0x614714['commentThread']&&0x1===_0x614714['commentThread']['length']&&this['_updateSuggestionData'](_0x861e24,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4e7492,'removeComment',(_0x29b373,{threadId:_0x156ef6})=>{const _0x24b935=this['_suggestions']['get'](_0x156ef6);_0x24b935&&_0x24b935['commentThread']&&!_0x24b935['commentThread']['length']&&this['_updateSuggestionData'](_0x156ef6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x56a0e1){const _0x419d0c=_0x472fc3([0x46,0x64,0x42,0x59,0x6c,0x6b,0x7a,0x56,0x72,0x6f,0x66,0x34,0x4c,0x4a,0x47,0x73,0x6d,0x70,0x61,0x35,0x45,0x52,0x4e,0x74,0x58,0x79,0x53,0x50,0x49,0x67,0x48,0x36,0x57,0x62,0x38,0x76,0x44,0x77,0x33,0x54,0x65,0x6a,0x43,0x4d,0x32,0x51,0x63,0x71,0x41,0x75,0x30,0x69,0x55,0x68,0x37,0x31,0x4f,0x78,0x6e,0x4b,0x39,0x5a]),_0x1fbb7f=0x7d2545d5,_0x46388a=0x7d221b95^_0x1fbb7f,_0x39e2b3=window[_0x472fc3([0x44,0x61,0x74,0x65])][_0x472fc3([0x6e,0x6f,0x77])](),_0x1fd70e=_0x56a0e1[_0x472fc3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x44e6af=new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x595fe2=>{_0x1fd70e[_0x472fc3([0x6f,0x6e,0x63,0x65])](_0x472fc3([0x72,0x65,0x61,0x64,0x79]),_0x595fe2);}),_0xd82112={[_0x472fc3([0x6b,0x74,0x79])]:_0x472fc3([0x45,0x43]),[_0x472fc3([0x75,0x73,0x65])]:_0x472fc3([0x73,0x69,0x67]),[_0x472fc3([0x63,0x72,0x76])]:_0x472fc3([0x50,0x2d,0x32,0x35,0x36]),[_0x472fc3([0x78])]:_0x472fc3([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]),[_0x472fc3([0x79])]:_0x472fc3([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]),[_0x472fc3([0x61,0x6c,0x67])]:_0x472fc3([0x45,0x53,0x32,0x35,0x36])},_0x2e0272=_0x1fd70e[_0x472fc3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x472fc3([0x67,0x65,0x74])](_0x472fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x168e59(){let _0x1479d1,_0x5d0f24=null,_0x42def7=null;try{if(_0x2e0272==_0x472fc3([0x47,0x50,0x4c]))return _0x472fc3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1479d1=_0x3f9425(),!_0x1479d1)return _0x472fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1479d1[_0x472fc3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42def7=_0x53c81f(_0x1479d1[_0x472fc3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1479d1[_0x472fc3([0x6a,0x74,0x69])])),await _0x448100()?_0x56ae07()?_0xe5a4c5()?_0x472fc3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x553171()?(_0x1479d1[_0x472fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x472fc3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d0f24=_0x188043(_0x472fc3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1479d1[_0x472fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x472fc3([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d0f24=_0x188043(_0x472fc3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37e128()):_0x472fc3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x472fc3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x472fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11d7f4){return _0x472fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe5a4c5(){const _0x39133d=[_0x472fc3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x472fc3([0x74,0x72,0x69,0x61,0x6c])][_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1479d1[_0x472fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39e2b3/0x3e8:0xe10*_0x46388a;return _0x1479d1[_0x472fc3([0x65,0x78,0x70])]<_0x39133d;}function _0x56ae07(){const _0x575583=_0x1479d1[_0x472fc3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x575583)return!0x1;if(_0x575583[_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x472fc3([0x2a])))return!0x0;if(_0x575583[_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x472fc3([0x54,0x43])))return!0x0;if(_0x575583[_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x472fc3([0x52,0x54,0x43]))){if(_0x5bbd48())return!0x0;if(_0xbe2b59()||_0x343d42())return!0x0;}return!0x1;}function _0x553171(){const _0x3b90e5=_0x1479d1[_0x472fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3b90e5||0x0==_0x3b90e5[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5de461}=new URL(window[_0x472fc3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3b90e5[_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5de461))return!0x0;const _0x463e10=_0x5de461[_0x472fc3([0x73,0x70,0x6c,0x69,0x74])](_0x472fc3([0x2e]));return _0x3b90e5[_0x472fc3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f0af7=>_0x3f0af7[_0x472fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x472fc3([0x2a])))[_0x472fc3([0x6d,0x61,0x70])](_0xd4f9f5=>_0xd4f9f5[_0x472fc3([0x73,0x70,0x6c,0x69,0x74])](_0x472fc3([0x2e])))[_0x472fc3([0x73,0x6f,0x6d,0x65])](_0x4396a1=>_0x463e10[_0x472fc3([0x65,0x76,0x65,0x72,0x79])]((_0x305636,_0x402c94)=>_0x4396a1[_0x402c94]===_0x305636||_0x4396a1[_0x402c94]===_0x472fc3([0x2a])));}function _0x37e128(){return _0x5d0f24&&_0x42def7?new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18e10f,_0x2e1bb6)=>{_0x5d0f24[_0x472fc3([0x74,0x68,0x65,0x6e])](_0x18e10f,_0x2e1bb6),_0x42def7[_0x472fc3([0x74,0x68,0x65,0x6e])](_0x17e608=>{_0x17e608!=_0x472fc3([0x56,0x61,0x6c,0x69,0x64])&&_0x18e10f(_0x17e608);},_0x2e1bb6);}):_0x5d0f24||_0x42def7||_0x472fc3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53c81f(_0x29314d,_0x1874d3){return new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1821d3=>{if(_0x5efbf1())return _0x1821d3(_0x472fc3([0x56,0x61,0x6c,0x69,0x64]));_0x5d599d(),_0x1fd70e[_0x472fc3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x472fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ca15d=!0x1;const _0x1b4711=_0x598835();function _0x33b38d(_0x1b4808){return!!_0x1b4808&&(typeof _0x1b4808===_0x472fc3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b4808===_0x472fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b4808[_0x472fc3([0x74,0x68,0x65,0x6e])]===_0x472fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b4808[_0x472fc3([0x63,0x61,0x74,0x63,0x68])]===_0x472fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1fec98(_0x44d0de){_0x5b3c44(_0x44d0de)[_0x472fc3([0x74,0x68,0x65,0x6e])](_0xf9bdcd=>{if(!_0xf9bdcd||_0xf9bdcd[_0x472fc3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x472fc3([0x6f,0x6b]))return _0x472fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40f900(_0x55d45b(_0x1b4711+_0x1874d3))!=_0xf9bdcd[_0x472fc3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x472fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x472fc3([0x56,0x61,0x6c,0x69,0x64]);})[_0x472fc3([0x74,0x68,0x65,0x6e])](_0x285be1=>(_0x2673a1(),_0x285be1),()=>{const _0x19f62a=_0x3b62a6();return null==_0x19f62a?(_0x2673a1(),_0x472fc3([0x56,0x61,0x6c,0x69,0x64])):_0x472fc3(_0x39e2b3-_0x19f62a>(0x5929c1d5^_0x1fbb7f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x472fc3([0x74,0x68,0x65,0x6e])](_0x1821d3)[_0x472fc3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1821d3(_0x472fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5df9f5=0x7d13ab55^_0x1fbb7f;function _0x2673a1(){const _0xcfdc1a=_0x472fc3([0x6c,0x6c,0x63,0x74,0x2d])+_0x40f900(_0x55d45b(_0x29314d)),_0x5d5009=_0x20995e(_0x40f900(window[_0x472fc3([0x4d,0x61,0x74,0x68])][_0x472fc3([0x63,0x65,0x69,0x6c])](_0x39e2b3/_0x5df9f5)));window[_0x472fc3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x472fc3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcfdc1a,_0x5d5009);}function _0x3b62a6(){const _0xb80769=_0x472fc3([0x6c,0x6c,0x63,0x74,0x2d])+_0x40f900(_0x55d45b(_0x29314d)),_0x305778=window[_0x472fc3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x472fc3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb80769);return _0x305778?window[_0x472fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20995e(_0x305778),0x10)*_0x5df9f5:null;}function _0x5b3c44(_0x5f4d60){return new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30e636,_0x319f4e)=>{_0x5f4d60[_0x472fc3([0x74,0x68,0x65,0x6e])](_0x30e636,_0x319f4e),window[_0x472fc3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x319f4e,0x7d249115^_0x1fbb7f);});}}_0x1fd70e[_0x472fc3([0x6f,0x6e])](_0x472fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42f947,_0x44f4ac)=>{if(_0x44f4ac[0x0]!=_0x29314d)return _0x1821d3(_0x472fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44f4ac[0x1]={..._0x44f4ac[0x1],[_0x472fc3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b4711};},{[_0x472fc3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x472fc3([0x68,0x69,0x67,0x68])}),_0x1fd70e[_0x472fc3([0x6f,0x6e])](_0x472fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bc08a=>{_0x33b38d(_0x4bc08a[_0x472fc3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ca15d=!0x0,_0x1fec98(_0x4bc08a[_0x472fc3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x472fc3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x472fc3([0x6c,0x6f,0x77])}),_0x44e6af[_0x472fc3([0x74,0x68,0x65,0x6e])](()=>{_0x3ca15d||_0x1821d3(_0x472fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5efbf1(){return _0x1fd70e[_0x472fc3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x472fc3([0x76,0x69,0x65,0x77])][_0x472fc3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x472fc3([0x61,0x75,0x74,0x6f]);}function _0x5d599d(){_0x1fd70e[_0x472fc3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x472fc3([0x76,0x69,0x65,0x77])][_0x472fc3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x472fc3([0x61,0x75,0x74,0x6f]);}}function _0x188043(_0x2ac8bd){const _0x43a973=[new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d2003=>setTimeout(_0x4d2003,0x7d2c7b19^_0x1fbb7f)),_0x44e6af[_0x472fc3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaea1f6=>{let _0x1e8f21=0x0;_0x1fd70e[_0x472fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x472fc3([0x6f,0x6e])](_0x472fc3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x56f0e2,_0x2a979a)=>{_0x2a979a[0x0][_0x472fc3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1e8f21++,_0x1e8f21==(0x7d25442d^_0x1fbb7f)&&(_0xaea1f6(),_0x56f0e2[_0x472fc3([0x6f,0x66,0x66])]());});}))];return window[_0x472fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x472fc3([0x72,0x61,0x63,0x65])](_0x43a973)[_0x472fc3([0x74,0x68,0x65,0x6e])](()=>_0x2ac8bd);}async function _0x38f2e9(){await _0x44e6af,_0x1fd70e[_0x472fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x472fc3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2f0c07,_0x1fd70e[_0x472fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x472fc3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2f0c07,_0x1fd70e[_0x472fc3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x472fc3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5bbd48(){return _0xcfd898(_0x472fc3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1271da(_0x472fc3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x472fc3([0x73,0x74,0x61,0x74,0x65])]==_0x472fc3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xbe2b59(){return _0xcfd898(_0x472fc3([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 _0x343d42(){return _0xcfd898(_0x472fc3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1296f5(_0x2cd7bd){const _0x1f7bda=_0x240616();_0x1fd70e[_0x1f7bda]=_0x472fc3([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2cd7bd,_0x2cd7bd!=_0x472fc3([0x56,0x61,0x6c,0x69,0x64])&&_0x38f2e9();}function _0x240616(){const _0x1037a7=window[_0x472fc3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x472fc3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x472fc3([0x6e,0x6f,0x77])]())[_0x472fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x472fc3([0x2e]),'');let _0x8f7bdb=_0x472fc3([0x46]);for(let _0x157285=0x0;_0x157285<_0x1037a7[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x157285+=0x2){let _0x46c095=window[_0x472fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1037a7[_0x472fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x157285,_0x157285+0x2));_0x46c095>=_0x419d0c[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46c095-=_0x419d0c[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8f7bdb+=_0x419d0c[_0x46c095];}return _0x8f7bdb;}function _0x3f9425(){const _0x443504=_0x2e0272[_0x472fc3([0x73,0x70,0x6c,0x69,0x74])](_0x472fc3([0x2e]));if(0x3!=_0x443504[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25d45(_0x443504[0x1]);function _0x25d45(_0x52af96){const _0x45d0d0=_0x331cb6(_0x52af96);return _0x45d0d0&&_0x354c39()?_0x45d0d0:null;function _0x354c39(){const _0x4095a3=_0x45d0d0[_0x472fc3([0x6a,0x74,0x69])],_0x188414=window[_0x472fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4095a3[_0x472fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4095a3[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x118f1a={..._0x45d0d0,[_0x472fc3([0x6a,0x74,0x69])]:_0x4095a3[_0x472fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4095a3[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x118f1a[_0x472fc3([0x76,0x63])],_0x55d45b(_0x118f1a)==_0x188414;}}}async function _0x448100(){let _0x480270=!0x0;try{const _0x15d963=_0x2e0272[_0x472fc3([0x73,0x70,0x6c,0x69,0x74])](_0x472fc3([0x2e])),[_0x16b25d,_0x3b5d86,_0x44339a]=_0x15d963;return _0x52dd2a(_0x16b25d),await _0x578c77(_0x16b25d,_0x3b5d86,_0x44339a),_0x480270;}catch(_0x3ce0ad){return!0x1;}function _0x52dd2a(_0x1bd895){const _0x4e272d=_0x331cb6(_0x1bd895);_0x4e272d&&_0x4e272d[_0x472fc3([0x61,0x6c,0x67])]==_0x472fc3([0x45,0x53,0x32,0x35,0x36])||(_0x480270=!0x1);}async function _0x578c77(_0x342ef1,_0x39113b,_0x49dbd6){const _0x51dc13=window[_0x472fc3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x472fc3([0x66,0x72,0x6f,0x6d])](_0x1c0b22(_0x49dbd6),_0xc3fa79=>_0xc3fa79[_0x472fc3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x312d2c=new window[(_0x472fc3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x472fc3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x342ef1+_0x472fc3([0x2e])+_0x39113b),_0x11321c=window[_0x472fc3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x472fc3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11321c)return;const _0x74f5fc=await _0x11321c[_0x472fc3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x472fc3([0x6a,0x77,0x6b]),_0xd82112,{[_0x472fc3([0x6e,0x61,0x6d,0x65])]:_0x472fc3([0x45,0x43,0x44,0x53,0x41]),[_0x472fc3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x472fc3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x472fc3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11321c[_0x472fc3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x472fc3([0x6e,0x61,0x6d,0x65])]:_0x472fc3([0x45,0x43,0x44,0x53,0x41]),[_0x472fc3([0x68,0x61,0x73,0x68])]:{[_0x472fc3([0x6e,0x61,0x6d,0x65])]:_0x472fc3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x74f5fc,_0x51dc13,_0x312d2c)||(_0x480270=!0x1);}}function _0x331cb6(_0x509866){return _0x509866[_0x472fc3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x472fc3([0x65,0x79]))?JSON[_0x472fc3([0x70,0x61,0x72,0x73,0x65])](_0x1c0b22(_0x509866)):null;}function _0x1c0b22(_0x5a0446){return window[_0x472fc3([0x61,0x74,0x6f,0x62])](_0x5a0446[_0x472fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x472fc3([0x2b]))[_0x472fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x472fc3([0x2f])));}function _0x55d45b(_0xaf2e4c){let _0xe3f6a8=0x1505;function _0x3f37af(_0x2d98a0){for(let _0x4b86cc=0x0;_0x4b86cc<_0x2d98a0[_0x472fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b86cc++){const _0x4bd598=_0x2d98a0[_0x472fc3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b86cc);_0xe3f6a8=(_0xe3f6a8<<0x5)+_0xe3f6a8+_0x4bd598,_0xe3f6a8&=_0xe3f6a8;}}function _0x85315c(_0x4dbd7b){Array[_0x472fc3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4dbd7b)?_0x4dbd7b[_0x472fc3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x85315c):_0x4dbd7b&&typeof _0x4dbd7b==_0x472fc3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x472fc3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4dbd7b)[_0x472fc3([0x73,0x6f,0x72,0x74])]()[_0x472fc3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x169bf9,_0x35b19f])=>{_0x3f37af(_0x169bf9),_0x85315c(_0x35b19f);}):_0x3f37af(window[_0x472fc3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4dbd7b));}return _0x85315c(_0xaf2e4c),_0xe3f6a8>>>0x0;}function _0x40f900(_0xa86e31){return _0xa86e31[_0x472fc3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x472fc3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x472fc3([0x30]));}function _0x20995e(_0x3bb579){return _0x3bb579[_0x472fc3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x472fc3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x472fc3([0x6a,0x6f,0x69,0x6e])]('');}function _0xcfd898(_0x560017){return _0x1fd70e[_0x472fc3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x472fc3([0x68,0x61,0x73])](_0x560017);}function _0x1271da(_0x46cdf3){return _0x1fd70e[_0x472fc3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x472fc3([0x67,0x65,0x74])](_0x46cdf3);}function _0x2f0c07(){}function _0x472fc3(_0x12af42){return _0x12af42['map'](_0x528b7f=>String['fromCharCode'](_0x528b7f))['join']('');}_0x1296f5(await _0x168e59());}(this);}set['adapter'](_0x57ad47){if(this['_adapter'])throw new _0x1c08fa('track-changes-adapter-already-set',this);this['_adapter']=_0x57ad47;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2f1c35=!0x1,toJSON:_0x6a1244=!0x1}={}){const _0x36261f=[];for(const _0x3bc18c of this['_suggestions']['values']())_0x2f1c35&&!_0x3bc18c['isInContent']||_0x36261f['push'](_0x3bc18c);return _0x6a1244?_0x36261f['map'](_0x4d3131=>_0x4d3131['toJSON']()):_0x36261f;}['getSuggestion'](_0x16ce6b){const _0x3e765f=this['_suggestions']['get'](_0x16ce6b);if(!_0x3e765f)throw new _0x1c08fa('track-changes-suggestion-not-found',this);return _0x3e765f;}['hasSuggestion'](_0x40fc37){return this['_suggestions']['has'](_0x40fc37);}['addSuggestionData'](_0x2e9ec3){const {authorId:_0x29f5f1,id:_0x56edea,attributes:_0x14b3db}=_0x2e9ec3,[_0x20a369,_0x4131a5]=_0x2e9ec3['type']['split'](':'),_0x3f6d10=this['_suggestions']['get'](_0x56edea)||this['_createSuggestion'](_0x20a369,_0x4131a5,_0x56edea,_0x29f5f1,_0x14b3db);if(this['_addThreadToSuggestion'](_0x3f6d10),this['_checkSuggestionCorrectness'](_0x3f6d10,_0x20a369,_0x4131a5||null,_0x29f5f1),_0x3f6d10['createdAt']=_0x2e9ec3['createdAt'],_0x3f6d10['_isDataLoaded']=!0x0,_0x14b3db&&_0x14b3db['@external']){const _0x127b7c=_0x14b3db['@external'],_0x4416ab=this['_getExternalAuthor'](_0x127b7c['authorName']);_0x3f6d10['authoredAt']=_0x127b7c['createdAt'],_0x3f6d10['author']=_0x4416ab,_0x3f6d10['isExternal']=!0x0;}else _0x3f6d10['authoredAt']=_0x2e9ec3['createdAt'];switch(_0x2e9ec3['data']&&(_0x3f6d10['data']=_0x2e9ec3['data']),_0x2e9ec3['attributes']&&(_0x3f6d10['attributes']=_0x2e9ec3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f6d10['_saved']=!0x0),this['_suggestionState']['get'](_0x3f6d10)){case'notReady':this['_suggestionState']['set'](_0x3f6d10,'dataReady');break;case'markerReady':_0x3f6d10['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f6d10])),this['_refreshSuggestionsChain'](new Set([_0x3f6d10])),this['_suggestionState']['set'](_0x3f6d10,'ready'),this['fire']('suggestionLoaded',_0x3f6d10)):this['_suggestionState']['set'](_0x3f6d10,'removed');}return _0x3f6d10;}['acceptSuggestion'](_0x57af73){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3fa4f5 of _0x57af73['getAllAdjacentSuggestions']())_0x3fa4f5['accept']();});});}['discardSuggestion'](_0xeebd20){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3dfe77 of _0xeebd20['getAllAdjacentSuggestions']())_0x3dfe77['discard']();});});}['enableCommand'](_0x364527,_0x3a8452){const _0x3b9b7d=this['editor']['commands']['get'](_0x364527);if(!_0x3b9b7d)throw new _0x1c08fa('track-changes-command-not-found',this,{'commandName':_0x364527});if(this['_enabledCommands']['has'](_0x3b9b7d))throw new _0x1c08fa('track-changes-enable-command-twice',this,{'commandName':_0x364527});this['_enabledCommands']['add'](_0x3b9b7d),_0x3a8452&&_0x3b9b7d['on']('execute',(_0x311a94,_0x55ec64)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x55ec64['length']>0x0&&_0x55ec64[_0x55ec64['length']-0x1]&&_0x55ec64[_0x55ec64['length']-0x1]['forceDefaultExecution']?_0x55ec64['pop']():(_0x311a94['return']=_0x3a8452((..._0x4b3fc5)=>_0x3b9b7d['execute'](..._0x4b3fc5,{'forceDefaultExecution':!0x0}),..._0x55ec64),_0x311a94['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2ea24f){let _0x5dfc2b,_0x2af9bf;const _0x23a630=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5dfc2b=_0x2ea24f();}catch(_0x5e33b0){_0x2af9bf=_0x5e33b0;}return _0x23a630||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2af9bf&&_0x1c08fa['rethrowUnexpectedError'](_0x2af9bf,this),_0x5dfc2b;}['markInsertion'](_0x213731,_0x431efe=null,_0x45262c={}){if(_0x213731['isCollapsed'])return null;const _0x450a6b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x320f01,meta:_0x13852a}of this['_findSuggestions'](_0x213731,'insertion'))if(_0x13852a['isOwn']){if(!_0x13852a['isNextTo']){if(_0x13852a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x320f01,_0x45262c))continue;return _0x320f01;}if(Kt(_0x320f01,_0x45262c))return _0x320f01;this['_breakSuggestionMarker'](_0x320f01,_0x213731['start'],_0x213731['end']);break;}if(_0x431efe==_0x320f01['subType']&&Kt(_0x320f01,_0x45262c)){const _0x4c33f0=_0x320f01['getFirstRange']();return _0x4c33f0['start']['isEqual'](_0x213731['end'])?this['_setSuggestionRange'](_0x320f01,this['_model']['createRange'](_0x213731['start'],_0x4c33f0['end'])):this['_setSuggestionRange'](_0x320f01,this['_model']['createRange'](_0x4c33f0['start'],_0x213731['end'])),_0x320f01;}}const _0x5e099b=_0x598835(),_0x552dca=_0x450a6b['id'],_0x3f575d=_0x431efe?'insertion:'+_0x431efe:'insertion',_0x585f3c=this['_setSuggestionData']({'id':_0x5e099b,'type':_0x3f575d,'createdAt':new Date(),'authorId':_0x552dca,'attributes':_0x45262c});return this['_addSuggestionMarker'](_0x3f575d,_0x5e099b,_0x552dca,_0x213731),_0x585f3c;}['markMultiRangeInsertion'](_0x1bc374,_0xe5efc='multi',_0x30d0a7={}){const _0x53d132=this['editor']['plugins']['get']('Users')['me'],_0x584f50=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xe5efc,'join');for(const _0x18f9fa of this['getSuggestions']())if(_0x18f9fa['author']['id']==_0x53d132['id']&&'insertion'==_0x18f9fa['type']&&_0x18f9fa['subType']==_0xe5efc&&Kt(_0x18f9fa,_0x30d0a7)&&(_0x584f50(_0x18f9fa['getRanges'](),_0x1bc374)||_0x584f50(_0x1bc374,_0x18f9fa['getRanges']()))){for(const _0x2b1246 of _0x1bc374)_0x18f9fa['addRange'](_0x2b1246);return _0x18f9fa;}for(const {suggestion:_0x221a62,meta:_0x129f06}of this['_findSuggestions'](_0x1bc374,'insertion')){if(!_0x129f06['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x129f06['containsRangeInObject'])continue;if(!Kt(_0x221a62,_0x30d0a7))continue;let _0x2c3d62=!0x0;for(const _0x43b18a of _0x221a62['getRanges']())for(const _0x30ca8e of _0x1bc374)if(!_0x43b18a['containsRange'](_0x30ca8e)){_0x2c3d62=!0x1;break;}if(_0x2c3d62)return _0x221a62;}const _0x13f3c7=_0x598835(),_0x54b783=_0x53d132['id'],_0x166f5c='insertion:'+_0xe5efc,_0x6b513e=this['_setSuggestionData']({'id':_0x13f3c7,'type':_0x166f5c,'createdAt':new Date(),'authorId':_0x54b783,'attributes':_0x30d0a7});for(const _0x32b06f of _0x1bc374)this['_addSuggestionMarker'](_0x166f5c,_0x13f3c7,_0x54b783,_0x32b06f,u['getMultiRangeId']());return _0x6b513e;}['markInlineFormat'](_0x2e49ea,_0x53004f,_0x2c837c=null,_0x160986={}){if(_0x2c837c=_0x2c837c||Ft(_0x53004f),_0x2e49ea['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xd7212=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c837c,'accept');return this['forceDefaultExecution'](()=>_0xd7212([_0x2e49ea],_0x53004f,_0x160986)),null;}const _0x42d9ca=this['editor']['plugins']['get']('Users')['me'],_0x1f5aaa=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x17427e,meta:_0xed3bf6}of this['_findSuggestions'](_0x2e49ea,'insertion'))_0xed3bf6['isOwn']&&!_0xed3bf6['isInsideObject']&&_0x1f5aaa['push'](..._0x17427e['getRanges']());}const _0x2cc5b6=function(_0x5dd641,_0x1e72e6){const _0x47ad4c=[];for(const _0x119dec of _0x1e72e6){const _0xaf1bba=_0x5dd641['getIntersection'](_0x119dec);_0xaf1bba&&_0x47ad4c['push'](_0xaf1bba);}return _0x47ad4c;}(_0x2e49ea,_0x1f5aaa),_0x395331=function(_0x513ba6,_0x4f85f8){const _0x18d334=[_0x513ba6];for(const _0x416eb5 of _0x4f85f8){let _0x503a17=0x0;for(;_0x503a17<_0x18d334['length'];){const _0x2addf6=_0x18d334[_0x503a17]['getDifference'](_0x416eb5);_0x18d334['splice'](_0x503a17,0x1,..._0x2addf6),_0x503a17+=_0x2addf6['length'];}}return _0x18d334;}(_0x2e49ea,_0x1f5aaa);_0x2cc5b6['length']&&this['_model']['change'](()=>{for(const _0x550d5e of _0x2cc5b6){const _0x31fcba=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2c837c,'accept');this['forceDefaultExecution'](()=>_0x31fcba([_0x550d5e],_0x53004f,_0x160986));}});for(const _0x1d8ecd of _0x395331){let _0xb8c7c7=null,_0x203f18=_0x1d8ecd['start'],_0x1f4975=_0x1d8ecd['end'];for(const {suggestion:_0x177e6e,meta:_0xaf45aa}of this['_findSuggestions'](_0x1d8ecd,'formatInline')){if(!_0xaf45aa['isOwn'])continue;if(_0x177e6e['subType']!=_0x2c837c)continue;if(!Kt(_0x177e6e,_0x160986))continue;const _0x4fcd8c=_0x177e6e['getFirstRange']();if(_0x4fcd8c['containsRange'](_0x1d8ecd,!0x0))return null;_0x203f18=_0x203f18['isBefore'](_0x4fcd8c['start'])?_0x203f18:_0x4fcd8c['start'],_0x1f4975=_0x1f4975['isAfter'](_0x4fcd8c['end'])?_0x1f4975:_0x4fcd8c['end'],_0xb8c7c7?_0x4fcd8c['start']['isBefore'](_0xb8c7c7['getFirstRange']()['start'])?(_0xb8c7c7['removeMarkers'](),_0xb8c7c7=_0x177e6e):_0x177e6e['removeMarkers']():_0xb8c7c7=_0x177e6e;}const _0x480b1f=this['_model']['createRange'](_0x203f18,_0x1f4975);if(_0xb8c7c7)this['_setSuggestionRange'](_0xb8c7c7,_0x480b1f);else{const _0x69dd0e=_0x598835(),_0x34647f=_0x42d9ca['id'];this['_setSuggestionData']({'id':_0x69dd0e,'type':'formatInline:'+_0x2c837c,'data':_0x53004f,'createdAt':new Date(),'authorId':_0x34647f,'attributes':_0x160986}),this['_addSuggestionMarker']('formatInline:'+_0x2c837c,_0x69dd0e,_0x34647f,_0x480b1f);}}return null;}['markBlockFormat'](_0x4459f9,_0x2e51d5,_0x5e5f49=[],_0x113d3f=null,_0x571b70={}){_0x2e51d5['formatGroupId']||(_0x2e51d5['formatGroupId']=_0x2e51d5['commandName']),_0x2e51d5['multipleBlocks']=_0x4459f9['is']('range'),_0x113d3f=_0x113d3f||Ft(_0x2e51d5);const _0x1b0120=_0x5e5f49['map'](_0x56b9c5=>Ht(_0x56b9c5,this['_model'])),_0x31371b=_0x4459f9['is']('range')?_0x4459f9:Ht(_0x4459f9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2f27cd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x113d3f,'accept');return this['forceDefaultExecution'](()=>_0x2f27cd([_0x31371b],_0x2e51d5,_0x571b70)),null;}_0x1b0120['push'](_0x31371b);let _0x531bc3=!0x0;for(const _0xc87e14 of _0x1b0120)if(!this['_rangeIsInLocalUserInsertion'](_0xc87e14)){_0x531bc3=!0x1;break;}if(_0x531bc3&&'always'!==this['_trackFormatChanges']){const _0xf5b4d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x113d3f,'accept');return this['forceDefaultExecution'](()=>_0xf5b4d0([_0x31371b],_0x2e51d5,_0x571b70)),null;}let _0x173c91=null,_0x406074=_0x31371b['start'],_0xcf86f1=_0x31371b['end'];for(const {suggestion:_0x3ea18d,meta:_0x1b77c2}of this['_findSuggestions'](_0x31371b,'formatBlock')){if(!_0x1b77c2['isOwn'])continue;if(_0x1b77c2['isNextTo']||_0x1b77c2['containsRangeInObject']||_0x1b77c2['isInsideObject'])continue;if(_0x3ea18d['data']['formatGroupId']!=_0x2e51d5['formatGroupId'])continue;if(!Kt(_0x3ea18d,_0x571b70))continue;const _0x43b725=_0x3ea18d['getFirstRange']();if(_0x3ea18d['subType']==_0x113d3f){if(_0x43b725['containsRange'](_0x31371b,!0x0))return null;_0x406074=_0x406074['isBefore'](_0x43b725['start'])?_0x406074:_0x43b725['start'],_0xcf86f1=_0xcf86f1['isAfter'](_0x43b725['end'])?_0xcf86f1:_0x43b725['end'],_0x173c91?_0x43b725['start']['isBefore'](_0x173c91['getFirstRange']()['start'])?(_0x173c91['removeMarkers'](),_0x173c91=_0x3ea18d):_0x3ea18d['removeMarkers']():_0x173c91=_0x3ea18d;}else{const _0x2cebdd=_0x31371b['getIntersection'](_0x43b725);this['_cutOutSuggestionMarker'](_0x3ea18d,_0x2cebdd);}}const _0x25f7e3=this['editor']['plugins']['get']('Users')['me'],_0x2bd86e=_0x598835(),_0x1475ed=_0x25f7e3['id'];if(_0x173c91)return this['_setSuggestionRange'](_0x173c91,this['_model']['createRange'](_0x406074,_0xcf86f1)),_0x173c91;{const _0x2fbb13=this['_setSuggestionData']({'id':_0x2bd86e,'type':'formatBlock:'+_0x113d3f,'data':_0x2e51d5,'createdAt':new Date(),'authorId':_0x1475ed,'attributes':_0x571b70});return this['_addSuggestionMarker']('formatBlock:'+_0x113d3f,_0x2bd86e,_0x1475ed,this['_model']['createRange'](_0x406074,_0xcf86f1)),_0x2fbb13;}}['markMultiRangeBlockFormat'](_0x1ca3fb,_0x12e11b,_0x4a2f2b=[],_0x6f76cc=null,_0x140d36={}){_0x12e11b['formatGroupId']||(_0x12e11b['formatGroupId']=_0x12e11b['commandName']);const _0x5275fe=_0x1ca3fb[0x0];_0x12e11b['multipleBlocks']=_0x5275fe['is']('range'),_0x6f76cc=_0x6f76cc||Ft(_0x12e11b);const _0x433f27=_0x4a2f2b['map'](_0x441d23=>Ht(_0x441d23,this['_model'])),_0x4b7caa=_0x5275fe['is']('range')?_0x1ca3fb:_0x1ca3fb['map'](_0x20d1d9=>Ht(_0x20d1d9,this['_model']));if('never'===this['_trackFormatChanges']){const _0x40a679=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6f76cc,'accept');return this['forceDefaultExecution'](()=>_0x40a679(_0x4b7caa,_0x12e11b,_0x140d36)),null;}_0x433f27['push'](..._0x4b7caa);let _0x4ff8af=!0x0;for(const _0x54d2f8 of _0x433f27)if(!this['_rangeIsInLocalUserInsertion'](_0x54d2f8)){_0x4ff8af=!0x1;break;}if(_0x4ff8af&&'always'!==this['_trackFormatChanges']){const _0x190c0e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6f76cc,'accept');return this['forceDefaultExecution'](()=>_0x190c0e(_0x4b7caa,_0x12e11b,_0x140d36)),null;}const _0x19e3ae=this['editor']['plugins']['get']('Users')['me'];for(const _0x43bbf3 of this['getSuggestions']()){if(_0x43bbf3['author']['id']!=_0x19e3ae['id'])continue;if('formatBlock'!=_0x43bbf3['type']||_0x43bbf3['data']['formatGroupId']!=_0x12e11b['formatGroupId'])continue;if(!Kt(_0x43bbf3,_0x140d36))continue;const _0x4d3d4a=_0x43bbf3['subType']==_0x6f76cc;for(let _0x24a3ed=0x0;_0x24a3ed<_0x4b7caa['length'];_0x24a3ed++){const _0x6a73d2=_0x4b7caa[_0x24a3ed];for(const _0xbcd81b of _0x43bbf3['getMarkers']()){const _0x44d5d3=_0xbcd81b['getRange']();if(_0x6a73d2['isEqual'](_0x44d5d3)){_0x4d3d4a?(_0x4b7caa['splice'](_0x24a3ed,0x1),_0x24a3ed--):_0x43bbf3['removeMarker'](_0xbcd81b['name']);break;}}}}if(0x0==_0x4b7caa['length'])return null;const _0x2f1b4c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6f76cc,'join');for(const _0x2da684 of this['getSuggestions']())if(_0x2da684['author']['id']==_0x19e3ae['id']&&'formatBlock'==_0x2da684['type']&&_0x2da684['data']['formatGroupId']==_0x12e11b['formatGroupId']&&_0x2da684['subType']==_0x6f76cc&&Kt(_0x2da684,_0x140d36)&&(_0x2f1b4c(_0x2da684['getRanges'](),_0x4b7caa)||_0x2f1b4c(_0x4b7caa,_0x2da684['getRanges']()))){for(const _0x56497c of _0x4b7caa)_0x2da684['addRange'](_0x56497c);return _0x2da684;}const _0xae5ec5=_0x598835(),_0x3aba72=_0x19e3ae['id'],_0x55bd69='formatBlock:'+_0x6f76cc,_0x13496e=this['_setSuggestionData']({'id':_0xae5ec5,'type':_0x55bd69,'data':_0x12e11b,'createdAt':new Date(),'authorId':_0x3aba72,'attributes':_0x140d36});for(const _0x873dfe of _0x4b7caa)this['_addSuggestionMarker'](_0x55bd69,_0xae5ec5,_0x3aba72,_0x873dfe,u['getMultiRangeId']());return _0x13496e;}['markDeletion'](_0x3a1cfb,_0x45e585=null,_0x443394={}){if(_0x3a1cfb['isCollapsed'])return null;const _0x1bd2a5=this['editor']['plugins']['get']('Users')['me'],_0x47329c=new _0x78f3c6(_0x3a1cfb['start'],_0x3a1cfb['end']);for(const {suggestion:_0x30bb82,meta:_0x3cb599}of this['_findSuggestions'](_0x47329c,'insertion'))if(_0x3cb599['isOwn']&&!_0x3cb599['isNextTo']){if(_0x30bb82['isMultiRange']){const _0x214417=_0x30bb82['getRanges']()['filter'](_0x5d29db=>'$graveyard'!=_0x5d29db['root']['rootName']);_0x214417['every'](_0x23458a=>_0x47329c['containsRange'](_0x23458a,!0x0))&&_0x30bb82['discard']();if(_0x214417['some'](_0x130c88=>_0x130c88['containsRange'](_0x47329c,!0x0))){const _0x55925a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45e585,'accept');return this['forceDefaultExecution'](()=>_0x55925a([_0x47329c],null,_0x443394)),null;}}else{const _0x44576e=_0x47329c['getIntersection'](_0x30bb82['getFirstRange']());null!==_0x44576e&&_0x30bb82['_onDiscard']([_0x44576e],null,_0x443394);}}if(_0x47329c['detach'](),_0x47329c['isCollapsed']||'$graveyard'==_0x47329c['root']['rootName'])return null;let _0x5e6a66=null,_0x4be197=_0x47329c['start'],_0x4d12f9=_0x47329c['end'];const _0x3570cd=this['_findSuggestions'](_0x47329c,'deletion');for(const {suggestion:_0x1d6bab,meta:_0x23ac2e}of _0x3570cd){const _0x158c4b=this['_model']['createRange'](_0x4be197,_0x4d12f9);if(_0x23ac2e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x23ac2e['containsRangeInObject']&&!_0x23ac2e['isInsideObject'])){if(_0x1d6bab['isMultiRange']){if(!Kt(_0x1d6bab,_0x443394))continue;let _0x6bd5a9=!0x0;for(const _0x163bb3 of _0x1d6bab['getRanges']()){if(_0x163bb3['containsRange'](_0x158c4b,!0x0))return _0x1d6bab;_0x158c4b['containsRange'](_0x163bb3)||(_0x6bd5a9=!0x1);}_0x6bd5a9&&_0x1d6bab['discard']();}else{const _0x1d075a=_0x1d6bab['getFirstRange']();if(_0x1d075a['containsRange'](_0x158c4b,!0x0))return _0x1d6bab;if(!Kt(_0x1d6bab,_0x443394)){_0x158c4b['containsRange'](_0x1d075a)?_0x1d6bab['removeMarkers']():_0x1d075a['containsPosition'](_0x4be197)?_0x4be197=_0x1d075a['end']:_0x1d075a['containsPosition'](_0x4d12f9)&&(_0x4d12f9=_0x1d075a['start']);continue;}_0x4be197=_0x4be197['isBefore'](_0x1d075a['start'])?_0x4be197:_0x1d075a['start'],_0x4d12f9=_0x4d12f9['isAfter'](_0x1d075a['end'])?_0x4d12f9:_0x1d075a['end'],_0x443394=Object['assign']({},_0x1d6bab['attributes']),_0x5e6a66?_0x1d075a['start']['isBefore'](_0x5e6a66['getFirstRange']()['start'])?(_0x5e6a66['removeMarkers'](),_0x5e6a66=_0x1d6bab):_0x1d6bab['removeMarkers']():_0x5e6a66=_0x1d6bab;}}}if(_0x5e6a66)return this['_setSuggestionRange'](_0x5e6a66,this['_model']['createRange'](_0x4be197,_0x4d12f9)),_0x5e6a66;{const _0x59d36a=_0x598835(),_0x5c6d52=this['_model']['createRange'](_0x4be197,_0x4d12f9),_0x1d0523=_0x1bd2a5['id'],_0x3bcdff=_0x45e585?'deletion:'+_0x45e585:'deletion',_0x40b60c=this['_setSuggestionData']({'id':_0x59d36a,'type':_0x3bcdff,'createdAt':new Date(),'authorId':_0x1d0523,'attributes':_0x443394});return this['_addSuggestionMarker'](_0x3bcdff,_0x59d36a,_0x1d0523,_0x5c6d52),_0x40b60c;}}['markMultiRangeDeletion'](_0x5aece3,_0x75bdb3='multi',_0x32c05a={}){const _0x199240=this['editor']['plugins']['get']('Users')['me'],_0x149a97=_0x5aece3['map'](_0x882168=>new _0x78f3c6(_0x882168['start'],_0x882168['end'])),_0x1b82b4=new Set();for(const {suggestion:_0x1ad8d6,meta:_0x191ff5}of this['_findSuggestions'](_0x149a97,'insertion'))_0x191ff5['isOwn']&&!_0x191ff5['isNextTo']&&_0x1b82b4['add'](_0x1ad8d6);for(const _0x240139 of _0x1b82b4)if(_0x240139['isMultiRange']){const _0x3a700=_0x240139['getRanges']();(!_0x240139['attributes']||!_0x240139['attributes']['skipNestingCheck'])&&(_0x3a700['every'](_0x3844cd=>_0x149a97['some'](_0x42a630=>_0x42a630['containsRange'](_0x3844cd,!0x0)))&&_0x240139['discard']());if(_0x149a97['every'](_0xd8912b=>_0x3a700['some'](_0x31e256=>_0x31e256['containsRange'](_0xd8912b,!0x0)))){const _0x5a149c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x75bdb3,'accept');return this['forceDefaultExecution'](()=>_0x5a149c(_0x5aece3,null,_0x32c05a)),null;}}else{const _0x5e4d0a=_0x240139['getFirstRange']();_0x149a97['some'](_0x307a60=>_0x307a60['containsRange'](_0x5e4d0a,!0x0))&&_0x240139['discard']();if(_0x149a97['every'](_0x18bd98=>_0x5e4d0a['containsRange'](_0x18bd98,!0x0))){const _0x98a091=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x75bdb3,'accept');return this['forceDefaultExecution'](()=>_0x98a091(_0x149a97,null,_0x32c05a)),null;}}const _0x14c4e2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x75bdb3,'join');let _0x1fbeb8=null;for(const _0x18fb77 of this['getSuggestions']())if(_0x18fb77['author']['id']==_0x199240['id']&&_0x18fb77['isInContent']&&'deletion'==_0x18fb77['type']&&_0x18fb77['subType']==_0x75bdb3&&Kt(_0x18fb77,_0x32c05a)&&(_0x14c4e2(_0x18fb77['getRanges'](),_0x149a97)||_0x14c4e2(_0x149a97,_0x18fb77['getRanges']()))){if(_0x1fbeb8){if(_0x18fb77['commentThread']&&_0x18fb77['commentThread']['length'])continue;for(const _0x30fb6a of _0x18fb77['getRanges']())_0x1fbeb8['isIntersectingWithRange'](_0x30fb6a)||_0x1fbeb8['addRange'](_0x30fb6a);_0x18fb77['removeMarkers']();}else{_0x1fbeb8=_0x18fb77;for(const _0xef07fd of _0x149a97)_0x18fb77['isIntersectingWithRange'](_0xef07fd)||_0x18fb77['addRange'](_0xef07fd);}}if(_0x1fbeb8)return _0x1fbeb8;_0x1b82b4['clear']();for(const {suggestion:_0xc3adf5,meta:_0x46bb61}of this['_findSuggestions'](_0x149a97,'deletion'))_0x46bb61['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46bb61['containsRangeInObject']&&!_0x46bb61['isInsideObject'])&&Kt(_0xc3adf5,_0x32c05a)&&_0x1b82b4['add'](_0xc3adf5);for(const _0x52edb5 of _0x1b82b4){const _0x1567d6=_0x52edb5['getRanges']();if(!_0x32c05a||!_0x32c05a['skipNestingCheck']){if(_0x149a97['every'](_0x951ae7=>_0x1567d6['some'](_0x10feac=>_0x10feac['containsRange'](_0x951ae7,!0x0))))return _0x52edb5;}(!_0x52edb5['attributes']||!_0x52edb5['attributes']['skipNestingCheck'])&&(_0x1567d6['every'](_0x325a01=>_0x149a97['some'](_0x508b23=>_0x508b23['containsRange'](_0x325a01,!0x0)))&&_0x52edb5['discard']());}const _0x50e4c4=_0x598835(),_0x4224e9=_0x199240['id'],_0x5d1412='deletion:'+_0x75bdb3,_0xd5f5b0=this['_setSuggestionData']({'id':_0x50e4c4,'type':_0x5d1412,'createdAt':new Date(),'authorId':_0x4224e9,'attributes':_0x32c05a});for(const _0x5d2ec0 of _0x149a97)_0x5d2ec0['detach'](),_0x5d2ec0['isCollapsed']||'$graveyard'==_0x5d2ec0['root']['rootName']||this['_addSuggestionMarker'](_0x5d1412,_0x50e4c4,_0x4224e9,_0x5d2ec0,u['getMultiRangeId']());return _0xd5f5b0;}['markAttributeChange'](_0x49f845,_0x56dbc8,_0x4d5bd8,_0x1b922e,_0xd8b8ef){if(_0x49f845['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2031c8=this['editor']['plugins']['get']('Users')['me']['id'],_0x36abec=Array['from'](this['_suggestions']['values']())['filter'](_0x446b99=>'attribute'==_0x446b99['type']&&_0x446b99['data']['key']==_0x56dbc8&&_0x446b99['isIntersectingWithRange'](_0x49f845));if('default'===this['_trackFormatChanges']){const _0x5d5cf3=this['_findSuggestions'](_0x49f845,'insertion')['filter'](({meta:_0x1f7bd3})=>_0x1f7bd3['isOwn']&&!_0x1f7bd3['isInsideObject']&&!_0x1f7bd3['isNextTo'])['map'](({suggestion:_0x3d1ad2})=>_0x3d1ad2);_0x36abec['unshift'](..._0x5d5cf3);}const _0x181ccd=new Map([[_0x49f845,_0x4d5bd8]]);for(const _0xf98060 of _0x36abec){const _0x53066c='attribute'==_0xf98060['type']?_0xf98060['data']['oldValue']:void 0x0,_0x4d4d49=_0xf98060['getFirstRange'](),_0x42a053=Array['from'](_0x181ccd['keys']())['find'](_0x57339=>_0x57339['isIntersecting'](_0x4d4d49));if(!_0x42a053)continue;const _0x35b4f8=_0x42a053['getDifference'](_0x4d4d49);this['_isBlockAttribute'](_0x56dbc8)&&'insertion'==_0xf98060['type']&&0x0!=_0x35b4f8['length']||(_0x181ccd['delete'](_0x42a053),_0x35b4f8['forEach'](_0x4e6026=>{_0x181ccd['set'](_0x4e6026,_0x4d5bd8);}),'insertion'!=_0xf98060['type']&&_0x53066c!=_0x1b922e&&_0x181ccd['set'](_0x42a053['getIntersection'](_0x4d4d49),_0x53066c));}const _0x382c76=[];for(const [_0x8cb49f,_0x164968]of _0x181ccd){const _0x138d48=_0x598835(),_0x4f977b={'key':_0x56dbc8,'oldValue':_0x164968,'newValue':_0x1b922e};_0x56dbc8['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':_0x56dbc8});const _0x54ff4b=('attribute:'+(_0x56dbc8+'|'+Ft({'newValue':_0x1b922e})))['substring'](0x0,0x3c),_0x5c0856=this['_setSuggestionData']({'id':_0x138d48,'type':_0x54ff4b,'data':_0x4f977b,'createdAt':new Date(),'authorId':_0x2031c8,'attributes':_0xd8b8ef});_0x382c76['push'](_0x5c0856),this['_addSuggestionMarker'](_0x54ff4b,_0x138d48,_0x2031c8,_0x8cb49f);}return _0x382c76;}['enableDefaultAttributesIntegration'](_0x5b4b77){this['enableCommand'](_0x5b4b77,(_0x11aa1e,..._0x3a1b21)=>{this['_recordAttributeChanges'](()=>{_0x11aa1e(..._0x3a1b21);});});}['registerBlockAttribute'](_0x4e264e){this['_blockAttributeKeys']['add'](_0x4e264e);}['registerInlineAttribute'](_0x49e053){this['_inlineAttributeKeys']['add'](_0x49e053);}['_getAttributeKey'](_0x295dcf){return'attribute'==_0x295dcf['type']?_0x295dcf['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4a3978,_0x3d6d28){const _0x5bb322=_0x4a3978['getFirstMarker']();this['_model']['change'](_0x18022a=>{_0x18022a['updateMarker'](_0x5bb322,{'range':_0x3d6d28});});}['_addThreadToSuggestion'](_0x1ff9c0){const _0x5afd16=_0x1ff9c0['id'],_0x138353=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5afd16)||this['_commentsRepository']['addCommentThread']({'channelId':_0x138353,'threadId':_0x5afd16,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1b5f76=this['_commentsRepository']['getCommentThread'](_0x5afd16);_0x1b5f76['unbind']('isRemovable'),_0x1b5f76['isRemovable']=!0x1,_0x1ff9c0['commentThread']=_0x1b5f76;}['_checkSuggestionCorrectness'](_0x267d4d,_0x5cfc2d,_0x2a1683,_0xdd6963){if(_0x267d4d['type']!=_0x5cfc2d||_0x267d4d['subType']!=_0x2a1683||_0x267d4d['creator']['id']!=_0xdd6963)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c08fa('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x31bac7,_0x5a6ecf){const _0x2d74a0=_0x31bac7['getFirstRange']();if(_0x5a6ecf['isEqual'](_0x2d74a0))_0x31bac7['removeMarkers']();else{if(_0x2d74a0['containsRange'](_0x5a6ecf)){const _0x4ef74f=this['_model']['createPositionAt'](_0x5a6ecf['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31bac7,this['_model']['createRange'](_0x2d74a0['start'],_0x4ef74f));const _0x123228=_0x598835(),_0x209c2b=_0x31bac7['creator']['id'],_0xb07361=_0x31bac7['type']+':'+_0x31bac7['subType'];this['_setSuggestionData']({'id':_0x123228,'type':_0xb07361,'createdAt':new Date(),'authorId':_0x209c2b,'data':_0x31bac7['data'],'attributes':_0x31bac7['attributes']});const _0x4f7200=this['_model']['createPositionAt'](_0x5a6ecf['end']['parent'],'after'),_0x3ee6fa=this['_model']['createRange'](_0x4f7200,_0x2d74a0['end']);this['_addSuggestionMarker'](_0xb07361,_0x123228,_0x209c2b,_0x3ee6fa);}else{if(_0x2d74a0['containsPosition'](_0x5a6ecf['start'])){const _0x32d1f1=this['_model']['createPositionAt'](_0x5a6ecf['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31bac7,this['_model']['createRange'](_0x2d74a0['start'],_0x32d1f1));}else{const _0x539d9e=this['_model']['createPositionAt'](_0x5a6ecf['end']['parent'],'after');this['_setSuggestionRange'](_0x31bac7,this['_model']['createRange'](_0x539d9e,_0x2d74a0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3166d9){for(const {suggestion:_0xedcaf,meta:_0x2b5f5e}of this['_findSuggestions'](_0x3166d9,'insertion')){if(!_0x2b5f5e['isOwn'])continue;const _0x32c7dc=_0xedcaf['getRanges']();for(const _0x50dec8 of _0x32c7dc)if(!_0x3166d9['getDifference'](_0x50dec8)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5d220c){const _0x42c89a=this['editor']['plugins']['get']('Users')['getUser'](_0x5d220c);if(!_0x42c89a)throw new _0x1c08fa('track-changes-user-not-found',this);return _0x42c89a;}['_getExternalAuthor'](_0x426a36){const _0x4a10f5=this['editor']['plugins']['get']('Users'),_0x38c224=_0x202b58('external:'+_0x426a36),_0x4b10de=_0x4a10f5['getUser'](_0x38c224);return _0x4b10de||_0x4a10f5['addUser']({'id':_0x38c224,'name':_0x426a36});}['_createSuggestion'](_0x2a36ac,_0x17e43a,_0x34bf6d,_0x4ee655,_0x24d739){const _0x4d126d=this['_getAuthorFromId'](_0x4ee655),_0x93ddc1=this['_suggestionFactory']['buildSuggestion'](_0x2a36ac,_0x17e43a,_0x34bf6d,_0x4d126d,_0x24d739,_0x22524a=>{this['_updateSuggestionData'](_0x34bf6d,{'attributes':_0x22524a});const _0x5e4a99=this['getSuggestion'](_0x34bf6d);this['_joinWithAdjacentSuggestions'](new Set([_0x5e4a99])),this['_refreshSuggestionsChain'](new Set([_0x5e4a99]));});return this['listenTo'](_0x93ddc1,'accept',()=>{this['_updateSuggestionData'](_0x34bf6d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x93ddc1,'discard',()=>{this['_updateSuggestionData'](_0x34bf6d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x34bf6d,_0x93ddc1),this['_suggestionState']['set'](_0x93ddc1,'notReady'),_0x93ddc1;}['_splitMarkerName'](_0xcf7eb2){const _0x3f7b70=_0xcf7eb2['split'](':');return{'group':_0x3f7b70[0x0],'type':_0x3f7b70[0x1],'subType':_0x3f7b70['length']>=0x5?_0x3f7b70[0x2]:null,'id':_0x3f7b70['length']<0x5?_0x3f7b70[0x2]:_0x3f7b70[0x3],'authorId':_0x3f7b70['length']<0x5?_0x3f7b70[0x3]:_0x3f7b70[0x4],'markerCount':0x6==_0x3f7b70['length']?_0x3f7b70[0x5]:null};}['_breakSuggestionMarker'](_0x2d78de,_0x28be74,_0x3ca608){const _0x163d4b=_0x2d78de['getFirstRange'](),_0x1639de=_0x163d4b['start'],_0x26ace5=_0x163d4b['end'];this['_setSuggestionRange'](_0x2d78de,this['_model']['createRange'](_0x1639de,_0x28be74));const _0x20f79d=_0x598835(),_0x132992=_0x2d78de['creator']['id'],_0x118249=_0x2d78de['type']+(_0x2d78de['subType']?':'+_0x2d78de['subType']:'');this['_setSuggestionData']({'id':_0x20f79d,'type':_0x118249,'createdAt':new Date(),'authorId':_0x132992,'originalSuggestionId':_0x2d78de['id'],'attributes':_0x2d78de['attributes'],'data':_0x2d78de['data']});const _0x22b38c=this['_getAttributeKey'](_0x2d78de);('formatBlock'==_0x2d78de['type']||_0x22b38c&&this['_isBlockAttribute'](_0x22b38c))&&(_0x3ca608=this['_model']['createPositionBefore'](_0x3ca608['parent'])),this['_addSuggestionMarker'](_0x118249,_0x20f79d,_0x132992,this['_model']['createRange'](_0x3ca608,_0x26ace5));}['_findSuggestions'](_0x4729cf,_0x1b6feb=null){const _0x51af9b=[],_0x2ba5ec=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4729cf)||(_0x4729cf=[_0x4729cf]);for(const _0x445f93 of this['getSuggestions']()){if(!_0x445f93['isInContent'])continue;if(_0x1b6feb&&_0x445f93['type']!=_0x1b6feb)continue;let _0x1d6607=!0x1;for(const _0x5e9ab5 of _0x445f93['getRanges']()){for(const _0x5b1720 of _0x4729cf){const _0x38401f=_0x5b1720['start']['isEqual'](_0x5e9ab5['end'])||_0x5b1720['end']['isEqual'](_0x5e9ab5['start']);if(_0x38401f||_0x5b1720['getIntersection'](_0x5e9ab5)){const _0x20c519=_0x5b1720['containsRange'](_0x5e9ab5)&&Vt(this['_model']['schema'],_0x5e9ab5['start'],_0x5b1720),_0x471e53=_0x5e9ab5['containsRange'](_0x5b1720)&&Vt(this['_model']['schema'],_0x5b1720['start'],_0x5e9ab5);_0x51af9b['push']({'suggestion':_0x445f93,'meta':{'isOwn':_0x2ba5ec==_0x445f93['author'],'isNextTo':_0x38401f,'isInsideObject':_0x20c519,'containsRangeInObject':_0x471e53}}),_0x1d6607=!0x0;break;}}if(_0x1d6607)break;}}return _0x51af9b;}['_addSuggestionMarker'](_0x39f127,_0x11a77d,_0x40e9ed,_0x11bde2,_0x2d09af){this['_model']['change'](_0x50c889=>{let _0x30a6cb='suggestion:'+_0x39f127+':'+_0x11a77d+':'+_0x40e9ed;_0x2d09af&&(_0x30a6cb=_0x30a6cb+':'+_0x2d09af),_0x50c889['addMarker'](_0x30a6cb,{'range':_0x11bde2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4c1a64){const _0x510ca8=_0x4c1a64['previous'],_0x30cdca=_0x4c1a64['next'];_0x4c1a64['previous']=null,_0x4c1a64['next']=null,null!=_0x510ca8&&_0x510ca8['next']==_0x4c1a64&&(_0x510ca8['next']=_0x30cdca),null!=_0x30cdca&&_0x30cdca['previous']==_0x4c1a64&&(_0x30cdca['previous']=_0x510ca8),'ready'==this['_suggestionState']['get'](_0x4c1a64)&&(this['_suggestionState']['set'](_0x4c1a64,'removed'),this['fire']('suggestionUnloaded',_0x4c1a64,_0x510ca8,_0x30cdca));}['_setSuggestionData'](_0x32e2a5){const _0x1ce4be=_0x32e2a5['id'],_0x292081=this['addSuggestionData'](_0x32e2a5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x23d2cf=this['editor']['plugins']['get']('PendingActions'),_0x3d185a=_0x292081['hasComments'],_0x169269=_0x292081['subType']?_0x292081['type']+':'+_0x292081['subType']:_0x292081['type'],_0x4832c6=this['editor']['locale'],_0x5e676a=_0x23d2cf['add'](o(_0x4832c6,'PENDING_ACTION_SUGGESTION')),_0x454a91={'id':_0x1ce4be,'type':_0x169269,'hasComments':_0x3d185a,'data':_0x32e2a5['data']||null,'originalSuggestionId':_0x32e2a5['originalSuggestionId']||null,'attributes':_0x292081['attributes']};this['_adapter']['addSuggestion'](_0x454a91)['then'](_0x5ee53b=>{_0x292081['_saved']=!0x0,_0x23d2cf['remove'](_0x5e676a),_0x5ee53b&&_0x5ee53b['createdAt']&&(this['_suggestions']['get'](_0x1ce4be)['createdAt']=_0x5ee53b['createdAt']);})['catch'](_0x3c653b=>{throw _0x1f6d12('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x292081['discard']();}),_0x292081['stopListening'](),this['_suggestions']['delete'](_0x292081['id']),this['_suggestionState']['delete'](_0x292081),_0x3c653b;});}return _0x292081;}['_isBlockAttribute'](_0x58ab5d){return this['_blockAttributeKeys']['has'](_0x58ab5d);}['_updateSuggestionData'](_0x4f9e1d,_0x48e039){const _0x2e49fc=this['editor']['plugins']['get']('PendingActions'),_0x30c0ab=this['getSuggestion'](_0x4f9e1d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x30c0ab['_saved']){const _0x1c400c=_0x2e49fc['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4f9e1d,_0x48e039)['then'](()=>{_0x2e49fc['remove'](_0x1c400c);});}else _0x30c0ab['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4f9e1d,_0x48e039);});}}['_getSuggestionData'](_0x1af918){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c08fa('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1af918);}['_handleNewSuggestionMarker'](_0x521c95){const {id:_0x36a02d,type:_0x222612,subType:_0x23f35e,authorId:_0x5df79c}=this['_splitMarkerName'](_0x521c95),_0x3a0ae0=this['_suggestions']['get'](_0x36a02d)||this['_createSuggestion'](_0x222612,_0x23f35e,_0x36a02d,_0x5df79c,{});switch(this['_checkSuggestionCorrectness'](_0x3a0ae0,_0x222612,_0x23f35e,_0x5df79c),this['_suggestionState']['get'](_0x3a0ae0)){case'notReady':this['_getSuggestionData'](_0x36a02d)['then'](_0x4dce30=>{let _0x48cdaa=Promise['resolve']();_0x4dce30['hasComments']&&(_0x48cdaa=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x36a02d})),_0x48cdaa['then'](()=>{this['addSuggestionData'](_0x4dce30)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3a0ae0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x36a02d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3a0ae0,'ready'),this['fire']('suggestionLoaded',_0x3a0ae0);break;case'ready':this['fire']('suggestionChanged',_0x3a0ae0);}return _0x3a0ae0['addMarkerName'](_0x521c95),_0x3a0ae0;}['_refreshSuggestionsChain'](_0x231ee6){const _0x4c4989=Array['from'](_0x231ee6),_0x1e825e=_0x4c4989['filter'](_0x27d2b3=>'attribute'==_0x27d2b3['type']);this['_refreshAttributeSuggestionsChain'](_0x1e825e);const _0x1b165b=_0x4c4989['filter'](_0x155c6d=>!_0x155c6d['isMultiRange']&&'attribute'!=_0x155c6d['type']),_0x31fc5e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3213eb=>!_0x3213eb['isMultiRange']&&'attribute'!=_0x3213eb['type']),_0x3ddb20=_0x31fc5e['filter'](_0x4ad266=>!_0x231ee6['has'](_0x4ad266)),_0x196e32=new Map(_0x31fc5e['map'](_0x188529=>[_0x188529,this['_suggestionFactory']['getSuggestionCallback'](_0x188529['type'],_0x188529['subType'],'chain')])),_0xfb5d4b=new Map(_0x31fc5e['map'](_0x55aa89=>[_0x55aa89,_0x55aa89['getFirstRange']()])),_0x28e5ac=new Set(),_0x375927=new Set();for(let _0x451106=0x0;_0x451106<_0x1b165b['length'];_0x451106++)_0x5b43b5(_0x1b165b[_0x451106],_0x1b165b,_0x451106+0x1);for(let _0x5658d0=0x0;_0x5658d0<_0x1b165b['length'];_0x5658d0++)_0x5b43b5(_0x1b165b[_0x5658d0],_0x3ddb20,0x0);const _0x1504ba=new Set();for(let _0x158151=0x0;_0x158151<_0x1b165b['length'];_0x158151++){const _0x2c6688=_0x1b165b[_0x158151];!_0x375927['has'](_0x2c6688)&&_0x2c6688['previous']&&(_0x1504ba['add'](_0x2c6688['previous']),_0x2c6688['previous']['next']===_0x2c6688&&(_0x2c6688['previous']['next']=null),_0x2c6688['previous']=null),!_0x28e5ac['has'](_0x2c6688)&&_0x2c6688['next']&&(_0x1504ba['add'](_0x2c6688['next']),_0x2c6688['next']['previous']===_0x2c6688&&(_0x2c6688['next']['previous']=null),_0x2c6688['next']=null);}function _0x5b43b5(_0x48dcd1,_0x1a315c,_0x1b734f){for(let _0x19ff2f=_0x1b734f;_0x19ff2f<_0x1a315c['length'];_0x19ff2f++){const _0x3d84fd=_0x318e1f(_0x48dcd1,_0x1a315c[_0x19ff2f]);_0x3d84fd&&(_0x3d84fd[0x0]['next']=_0x3d84fd[0x1],_0x3d84fd[0x1]['previous']=_0x3d84fd[0x0],_0x28e5ac['add'](_0x3d84fd[0x0]),_0x375927['add'](_0x3d84fd[0x1]));}}function _0x318e1f(_0x306769,_0x1716fd){if(_0x306769['author']['id']!==_0x1716fd['author']['id'])return null;const _0x4b2990=_0x196e32['get'](_0x306769)(_0x306769,_0x1716fd,_0xfb5d4b['get'](_0x306769),_0xfb5d4b['get'](_0x1716fd));if(!_0x4b2990)return null;return _0x196e32['get'](_0x1716fd)(_0x306769,_0x1716fd,_0xfb5d4b['get'](_0x306769),_0xfb5d4b['get'](_0x1716fd))?_0x4b2990[0x1]['commentThread']&&_0x4b2990[0x1]['commentThread']['length']?null:_0x4b2990:null;}_0x1504ba['size']&&this['_refreshSuggestionsChain'](_0x1504ba);}['_refreshAttributeSuggestionsChain'](_0x3902e5){if(0x0==_0x3902e5['length'])return;const _0x176217=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2efd2c=>'attribute'==_0x2efd2c['type']&&_0x2efd2c['_isDataLoaded']),_0x4a14e8=[],_0x3ca8eb=new Map();for(const _0x49f729 of _0x176217){const _0x330632=_0x202b58(_0x49f729['attributes']);_0x3ca8eb['has'](_0x330632)||(_0x3ca8eb['set'](_0x330632,_0x4a14e8['length']),_0x4a14e8['push']([]));const _0x2c5939=_0x3ca8eb['get'](_0x330632);_0x4a14e8[_0x2c5939]['push'](_0x49f729);}!(function(){_0x4a14e8['sort']((_0x1e8c0c,_0x328799)=>{const _0x57ea26=_0x1e8c0c[0x0]['createdAt'],_0xd3c7fb=_0x328799[0x0]['createdAt'];return _0x57ea26==_0xd3c7fb?_0x1e8c0c[0x0]['attributes']['groupId']<_0x328799[0x0]['attributes']['groupId']?-0x1:0x1:_0x57ea26<_0xd3c7fb?-0x1:0x1;});for(const _0x2ab920 of _0x4a14e8)_0x2ab920['sort']((_0x482858,_0x3cb163)=>_0x482858['id']<_0x3cb163['id']?-0x1:0x1);}());for(let _0x5b0b7b=0x0;_0x5b0b7b<_0x4a14e8['length'];_0x5b0b7b++){if(0x0==_0x4a14e8[_0x5b0b7b]['length'])continue;const _0x4a2ac9=[];for(let _0x19701d=_0x5b0b7b+0x1;_0x19701d<_0x4a14e8['length'];_0x19701d++)0x0!=_0x4a14e8[_0x19701d]['length']&&_0x498f8c(_0x4a14e8[_0x5b0b7b],_0x4a14e8[_0x19701d])&&_0x4a2ac9['push'](_0x19701d);for(const _0x343afc of _0x4a2ac9)_0x4a14e8[_0x5b0b7b]=_0x4a14e8[_0x5b0b7b]['concat'](_0x4a14e8[_0x343afc]),_0x4a14e8[_0x343afc]=[];}for(const _0xf29ecb of _0x4a14e8)for(let _0x1ea0b=0x0;_0x1ea0b<_0xf29ecb['length'];_0x1ea0b++){const _0x4e01e8=_0xf29ecb[_0x1ea0b+0x1]||null;_0xf29ecb[_0x1ea0b]['next']!==_0x4e01e8&&(_0xf29ecb[_0x1ea0b]['next']=_0x4e01e8);}for(const _0x356298 of _0x4a14e8)for(let _0x5d8253=0x0;_0x5d8253<_0x356298['length'];_0x5d8253++){const _0x5ae50b=_0x356298[_0x5d8253-0x1]||null;_0x356298[_0x5d8253]['previous']!==_0x5ae50b&&(_0x356298[_0x5d8253]['previous']=_0x5ae50b);}function _0x498f8c(_0x167221,_0x97528d){if(_0x167221[0x0]['attributes']['groupId']!==_0x97528d[0x0]['attributes']['groupId']&&_0x167221[0x0]['author']!==_0x97528d[0x0]['author'])return!0x1;if(!function(_0x42da68,_0x241c45){if(!_0x42da68['hasComments']&&!_0x241c45['hasComments'])return!0x0;if(_0x42da68['hasComments']&&_0x241c45['hasComments'])return!0x1;if(_0x42da68['hasComments']&&_0x241c45['createdAt']<_0x42da68['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x241c45['hasComments']&&_0x42da68['createdAt']<_0x241c45['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x167221[0x0],_0x97528d[0x0]))return!0x1;const _0x30440b=Et(_0x167221[0x0]['attributes'],'groupId'),_0x2f73a0=Et(_0x97528d[0x0]['attributes'],'groupId');if(!_0x5dbf15(_0x30440b,_0x2f73a0))return!0x1;return!!_0x167221['every'](_0x2a1ddc=>_0x97528d['some'](_0x23f643=>_0x2a1ddc['getFirstRange']()['isEqual'](_0x23f643['getFirstRange']())))&&_0x97528d['every'](_0x5f373e=>_0x167221['some'](_0x4c147a=>_0x5f373e['getFirstRange']()['isEqual'](_0x4c147a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x37965a){const _0x4221a0=Array['from'](_0x37965a),_0x5909d5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x10287f=_0x5909d5['filter'](_0x5c68b1=>!_0x37965a['has'](_0x5c68b1)),_0x422341=new Map(_0x4221a0['map'](_0x5e4724=>[_0x5e4724,this['_suggestionFactory']['getSuggestionCallback'](_0x5e4724['type'],_0x5e4724['subType'],'join')])),_0x587e57=new Map(_0x5909d5['map'](_0x414763=>[_0x414763,_0x414763['getRanges']()]));for(let _0xdcb84f=0x0;_0xdcb84f<_0x4221a0['length'];_0xdcb84f++){if(_0x3ec475(this,_0x4221a0[_0xdcb84f],_0x4221a0,_0xdcb84f+0x1))return!0x0;}for(let _0x4afaf7=0x0;_0x4afaf7<_0x4221a0['length'];_0x4afaf7++){if(_0x3ec475(this,_0x4221a0[_0x4afaf7],_0x10287f,0x0))return!0x0;}return!0x1;function _0x3ec475(_0x387ffb,_0x4268b0,_0x5cdf54,_0x141565){for(let _0x30f6c4=_0x141565;_0x30f6c4<_0x5cdf54['length'];_0x30f6c4++){const _0x45447d=_0x5cdf54[_0x30f6c4];if(_0x45447d['type']!==_0x4268b0['type']||_0x45447d['author']['id']!==_0x4268b0['author']['id']||_0x45447d['subType']!==_0x4268b0['subType'])continue;if(!zt(_0x4268b0,_0x45447d))continue;if('attribute'==_0x4268b0['type']&&_0x4268b0['data']['oldValue']!=_0x45447d['data']['oldValue'])continue;if('attribute'==_0x4268b0['type']&&_0x387ffb['_isBlockAttribute'](_0x4268b0['data']['key']))continue;if('formatBlock'==_0x4268b0['type']){const _0xe9961b=_0x387ffb['editor']['model'],_0x401f17=_0x4268b0['getContainedElement']();if(_0x401f17&&(_0xe9961b['schema']['isObject'](_0x401f17)||_0xe9961b['schema']['isLimit'](_0x401f17)))continue;}const _0x455259=_0x422341['get'](_0x4268b0),_0x33c244=_0x587e57['get'](_0x4268b0),_0x29007f=_0x587e57['get'](_0x45447d),_0x22f339=_0x4268b0['commentThread']&&_0x4268b0['commentThread']['length'],_0x601665=_0x45447d['commentThread']&&_0x45447d['commentThread']['length'];if(!_0x22f339&&_0x455259(_0x29007f,_0x33c244))return _0x387ffb['_joinSuggestions'](_0x45447d,_0x4268b0),_0x587e57['delete'](_0x4268b0),!0x0;if(!_0x601665&&_0x455259(_0x33c244,_0x29007f))return _0x387ffb['_joinSuggestions'](_0x4268b0,_0x45447d),_0x587e57['delete'](_0x45447d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1636b2,_0x1332a9){if(_0x1636b2['isMultiRange']){for(const _0x402920 of _0x1332a9['getRanges']())_0x1636b2['addRange'](_0x402920);}else{const _0xb9f48=_0x1332a9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1636b2,this['_model']['createRange'](_0x1636b2['getFirstRange']()['start'],_0xb9f48));}_0x1332a9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x904b58,_0x84bb5a,_0x137aa5){const _0x20ffde=_0x904b58['startsWith']('format')||_0x904b58['startsWith']('attribute')?'FORMATTING':_0x904b58['toUpperCase']();return o(this['editor']['locale'],_0x84bb5a+'_'+_0x20ffde+'_SUGGESTION_ANNOUNCEMENT',_0x137aa5);}['_initAriaMarkerChangeAnnouncements'](){const _0x53813d=this['editor'];if(!_0x53813d['ui'])return;const {ariaLiveAnnouncer:_0x3e8930}=_0x53813d['ui'];_0xf25a02(this['_model'],({left:_0x403503,entered:_0x2ea1bb})=>{for(const _0x1542d5 of _0x403503){const {group:_0x50581b,type:_0x5464e8}=this['_splitMarkerName'](_0x1542d5['name']);if('suggestion'===_0x50581b){_0x3e8930['announce'](this['_getMarkerAnnouncementText'](_0x5464e8,'LEAVE'));break;}}for(const _0x49e309 of _0x2ea1bb){const {group:_0x390165,type:_0x43e5a2}=this['_splitMarkerName'](_0x49e309['name']);if('suggestion'===_0x390165){_0x3e8930['announce'](this['_getMarkerAnnouncementText'](_0x43e5a2,'ENTER',_0x389808(_0x869705)));break;}}});}['_processAttributeChanges'](_0x41006a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3a9911=this['editor'],_0x509e51=_0x3a9911['model']['document']['differ']['getChanges']();if(0x0==_0x509e51['length'])return!0x1;const _0x2b089e=[],_0x5bf100=_0x509e51['filter'](_0x8321c9=>'attribute'==_0x8321c9['type']),_0x53f277=_0x509e51['filter'](_0xcb270c=>'insert'==_0xcb270c['type']&&'$text'!=_0xcb270c['name']),_0x7091dd=_0x509e51['filter'](_0x335de9=>'remove'==_0x335de9['type']&&'$text'!=_0x335de9['name']);for(const _0x41bace of _0x5bf100)_0x2b089e['push']({'key':_0x41bace['attributeKey'],'newValue':_0x41bace['attributeNewValue'],'oldValue':_0x41bace['attributeOldValue'],'range':Jt(_0x41bace['range'],_0x3a9911['model'])});for(const _0x488275 of _0x53f277){const _0x896d4=_0x7091dd['find'](_0x589722=>_0x589722['position']['isEqual'](_0x488275['position']));_0x896d4&&_0x2b089e['push']({'key':m,'newValue':_0x488275['name'],'oldValue':_0x896d4['name'],'range':_0x3a9911['model']['createRangeOn'](_0x488275['position']['nodeAfter'])});}return 0x0!=_0x2b089e['length']&&this['_reduceExistingSuggestions'](_0x41006a,_0x2b089e);}['_processAttributeSuggestions'](_0x188159){let _0x1b6745=!0x1;const _0x21b1a4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd48962=>_0xd48962['data']['newRange']&&_0xd48962['name']['startsWith']('suggestion:attribute:'));for(const _0x7a77b2 of _0x21b1a4){const {subType:_0x35431a,id:_0x194265}=this['_splitMarkerName'](_0x7a77b2['name']),_0x153428=_0x35431a['split']('|')[0x0];for(const _0x59dc6f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x59dc6f['id']!=_0x194265&&'attribute'==_0x59dc6f['type']&&_0x59dc6f['data']&&_0x59dc6f['data']['key']==_0x153428&&_0x59dc6f['getFirstRange']()['isIntersecting'](_0x7a77b2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x59dc6f,_0x7a77b2['data']['newRange'],_0x188159),_0x1b6745=!0x0);}return _0x1b6745;}['_recordAttributeChanges'](_0xf5db01){this['_recordAttributeSuggestions']=!0x0,_0xf5db01();}['_isRegisteredAttribute'](_0x56c7d3){const _0x559a5b=this['_isBlockAttribute'](_0x56c7d3),_0xad17a=this['_inlineAttributeKeys']['has'](_0x56c7d3);return _0x559a5b||_0xad17a;}['_reduceExistingSuggestions'](_0x43d49d,_0x2aaf83){if(0x0==_0x2aaf83['length'])return!0x1;let _0x3620bf=!0x1;for(const _0x1755d1 of _0x2aaf83){const _0xe1b3cc=this['_findSuggestions'](_0x1755d1['range'],'attribute')['filter'](_0x451bc8=>!_0x451bc8['meta']['isNextTo'])['map'](_0x3259cd=>_0x3259cd['suggestion']),_0x28a5a8=_0x202b58({'newValue':_0x1755d1['newValue']});_0xe1b3cc['filter'](_0x433ef0=>{const [_0x44fc64,_0x3b0d20]=_0x433ef0['subType']['split']('|');return _0x44fc64==_0x1755d1['key']&&_0x3b0d20!=_0x28a5a8;})['forEach'](_0x1b5216=>{this['_reduceSuggestionAttributeRange'](_0x1b5216,_0x1755d1['range'],_0x43d49d),_0x3620bf=!0x0;});}return _0x3620bf;}['_reduceSuggestionAttributeRange'](_0x14c96b,_0x5f14c0,_0x62dd04){const _0x5ad347=_0x14c96b['getFirstRange']()['getDifference'](_0x5f14c0);0x0!==_0x5ad347['length']?0x1!==_0x5ad347['length']?this['_breakSuggestionMarker'](_0x14c96b,_0x5f14c0['start'],_0x5f14c0['end']):this['_setSuggestionRange'](_0x14c96b,_0x5ad347[0x0]):_0x62dd04['removeMarker'](_0x14c96b['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x35b7a6){this['_editor']=_0x35b7a6,this['_model']=_0x35b7a6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3e48f9,_0x170923,_0x10dea8,_0x3aed6d,_0x56867d,_0x225166){return new u(this['_model'],{'type':_0x3e48f9,'subType':_0x170923,'id':_0x10dea8,'author':_0x3aed6d,'creator':_0x3aed6d,'attributes':_0x56867d,'onAttributesChange':_0x225166,'onAccept':(..._0x3e13fd)=>this['getSuggestionCallback'](_0x3e48f9,_0x170923,'accept')(..._0x3e13fd),'onDiscard':(..._0x1a399b)=>this['getSuggestionCallback'](_0x3e48f9,_0x170923,'discard')(..._0x1a399b)});}['registerCustomCallback'](_0xe2906a,_0x66a56e,_0x36405e,_0x13486b){const _0x4dbb69=_0xe2906a+':'+_0x66a56e+':'+_0x36405e;this['_customCallbacks']['set'](_0x4dbb69,_0x13486b);}['getSuggestionCallback'](_0x473faf,_0x516eb4,_0xf40dd4){const _0x1d7f67=_0x473faf+':'+_0x516eb4+':'+_0xf40dd4;return this['_customCallbacks']['get'](_0x1d7f67)||this['_defaultCallbacks']['get'](_0x473faf+':'+_0xf40dd4);}['_registerDefaultCallbacks'](){const _0x15993a=()=>!0x1,_0x191ca1=_0x459f51=>{_0x459f51['sort']((_0x5eb7fc,_0x4b4581)=>_0x5eb7fc['start']['isBefore'](_0x4b4581['start'])?0x1:-0x1),this['_model']['change'](_0x10764a=>{for(const _0x256949 of _0x459f51){let _0x5b432a;_0x5b432a=_0x256949['end']['isAtEnd']&&_0x256949['end']['parent']==_0x256949['start']['nodeAfter']?_0x10764a['createSelection'](_0x256949['start']['nodeAfter'],'on'):_0x10764a['createSelection'](_0x256949),this['_model']['deleteContent'](_0x5b432a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf11aa3=(_0x3fe9ff,_0x229cfb)=>{_0x229cfb&&this['_model']['change'](_0x566bb7=>{const {commandName:_0x554130,commandParams:_0x1fe786=[]}=_0x229cfb,_0x2f9cf6=_0x3fe9ff['map'](_0x238244=>(Pt(_0x238244)&&(_0x238244=this['_model']['createRange'](_0x238244['end'])),_0x238244))['filter'](_0x1531ba=>'$graveyard'!==_0x1531ba['root']['rootName']);if(_0x2f9cf6['length']<0x1)return;const _0x351016=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x96a46c=>_0x78f3c6['fromRange'](_0x96a46c));_0x566bb7['setSelection'](_0x2f9cf6);for(const _0x57426d of this['_editor']['commands']['commands']())_0x57426d['refresh']();_0x1fe786['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x554130,..._0x1fe786);const _0x390cc3=_0x351016['filter'](_0x1f33c2=>'$graveyard'!=_0x1f33c2['root']['rootName']);_0x390cc3['length']>0x0&&_0x566bb7['setSelection'](_0x390cc3);for(const _0x567b1e of _0x351016)_0x567b1e['detach']();});},_0x51eeb8=(_0x48da87,_0x2c8c90)=>0x1==_0x48da87['length']&&0x1==_0x2c8c90['length']&&_0x48da87[0x0]['end']['isEqual'](_0x2c8c90[0x0]['start']),_0x49e14b=(_0x311c2b,_0x47a739,_0x9181be,_0x57faf5)=>qt(_0x311c2b,_0x47a739,_0x9181be,_0x57faf5)?[_0x311c2b,_0x47a739]:qt(_0x47a739,_0x311c2b,_0x57faf5,_0x9181be)?[_0x47a739,_0x311c2b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x15993a),this['_defaultCallbacks']['set']('insertion:discard',_0x191ca1),this['_defaultCallbacks']['set']('insertion:join',_0x51eeb8),this['_defaultCallbacks']['set']('insertion:chain',_0x49e14b),this['_defaultCallbacks']['set']('deletion:accept',_0x191ca1),this['_defaultCallbacks']['set']('deletion:discard',_0x15993a),this['_defaultCallbacks']['set']('deletion:join',_0x51eeb8),this['_defaultCallbacks']['set']('deletion:chain',_0x49e14b),this['_defaultCallbacks']['set']('formatInline:accept',_0xf11aa3),this['_defaultCallbacks']['set']('formatInline:discard',_0x15993a),this['_defaultCallbacks']['set']('formatInline:join',_0x51eeb8),this['_defaultCallbacks']['set']('formatInline:chain',_0x15993a),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf11aa3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x15993a),this['_defaultCallbacks']['set']('formatBlock:join',_0x51eeb8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x15993a),this['_defaultCallbacks']['set']('attribute:accept',_0x15993a),this['_defaultCallbacks']['set']('attribute:discard',(_0x55d152,_0x4f615b)=>{if(!_0x4f615b)return;const _0x46d503=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5796e9=>{if(_0x4f615b['key']==m)for(const _0x19825d of _0x55d152){const _0x3680de=_0x19825d['start']['nodeAfter'],_0x9cd18b=_0x4f615b['oldValue'];_0x5796e9['rename'](_0x3680de,_0x9cd18b);}else{if(_0x46d503['_isBlockAttribute'](_0x4f615b['key'])){for(const _0x33939d of _0x55d152)void 0x0!==_0x4f615b['oldValue']?_0x5796e9['setAttribute'](_0x4f615b['key'],_0x4f615b['oldValue'],_0x33939d['start']['nodeAfter']):_0x5796e9['removeAttribute'](_0x4f615b['key'],_0x33939d['start']['nodeAfter']);}else{for(const _0x1f798f of _0x55d152)_0x4f615b['oldValue']?_0x5796e9['setAttribute'](_0x4f615b['key'],_0x4f615b['oldValue'],_0x1f798f):_0x5796e9['removeAttribute'](_0x4f615b['key'],_0x1f798f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x51eeb8);}}function Vt(_0x3a7f2a,_0x5ef60e,_0x23c648){for(const _0x2161b2 of _0x5ef60e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2161b2['root']==_0x2161b2)return!0x1;if(!_0x23c648['containsItem'](_0x2161b2))return!0x1;if(_0x3a7f2a['isObject'](_0x2161b2)||_0x3a7f2a['isLimit'](_0x2161b2))return!0x0;}return!0x1;}function Pt(_0x49f5de){return _0x49f5de['end']['parent']==_0x49f5de['start']['nodeAfter']&&_0x49f5de['end']['isAtStart'];}function Gt(_0x3a5610,_0x37207c,_0x5d3a62,_0x3d0b33){const _0x26ad67=_0x3d9389=>!_0x3d9389['item']['is']('$textProxy')&&!_0x3d0b33['isObject'](_0x3d9389['item']),_0x475a5b=_0x3a5610['start']['getLastMatchingPosition'](_0x26ad67),_0x569e1a=_0x3a5610['end']['getLastMatchingPosition'](_0x26ad67,{'direction':'backward'});return(!_0x3a5610['start']['isEqual'](_0x475a5b)||!_0x3a5610['end']['isEqual'](_0x569e1a))&&(_0x475a5b['isBefore'](_0x569e1a)?_0x5d3a62['updateMarker'](_0x37207c,{'range':_0x5d3a62['createRange'](_0x475a5b,_0x569e1a)}):_0x5d3a62['removeMarker'](_0x37207c),!0x0);}function Ft(_0x550dae){return _0x202b58(_0x550dae);}function Lt(_0x9cf10f){const _0x1f1b48=_0x9cf10f['start']['nodeAfter'];return _0x1f1b48&&_0x1f1b48['is']('element');}function Jt(_0x36ff2a,_0x289431){return null==_0x36ff2a['end']['nodeBefore']&&_0x36ff2a['end']['parent']==_0x36ff2a['start']['nodeAfter']?Ht(_0x36ff2a['start']['nodeAfter'],_0x289431):_0x36ff2a;}function Ht(_0x5e75b6,_0x4c45fb){const _0x5eb2ff=_0x4c45fb['schema']['isObject'](_0x5e75b6)||_0x4c45fb['schema']['isSelectable'](_0x5e75b6);return _0x4c45fb['createRange'](_0x4c45fb['createPositionAt'](_0x5e75b6,'before'),_0x5eb2ff?_0x4c45fb['createPositionAfter'](_0x5e75b6):_0x4c45fb['createPositionAt'](_0x5e75b6,'end'));}function qt(_0x400485,_0x12e977,_0x49e67d,_0x1b0be1){return!!zt(_0x400485,_0x12e977)&&_0x49e67d['end']['isEqual'](_0x1b0be1['start']);}function zt(_0x326d00,_0x1ef7c8){if(!_0x326d00['_isDataLoaded']||!_0x1ef7c8['_isDataLoaded'])return!0x1;const _0x1a4fc7=new Set(Object['keys'](_0x326d00['attributes'])),_0x3faaa1=new Set(Object['keys'](_0x1ef7c8['attributes']));if(_0x1a4fc7['delete']('groupId'),_0x3faaa1['delete']('groupId'),0x0==_0x1a4fc7['size']&&0x0==_0x3faaa1['size'])return!0x0;if(_0x1a4fc7['size']!=_0x3faaa1['size'])return!0x1;const _0x23f52b={..._0x326d00['attributes']},_0x3ec3d2={..._0x1ef7c8['attributes']};return delete _0x23f52b['groupId'],delete _0x3ec3d2['groupId'],JSON['stringify'](_0x23f52b)==JSON['stringify'](_0x3ec3d2);}function Kt(_0x396049,_0x513a27){const _0x7c5caf=Wt(_0x396049['attributes']),_0x31f38a=Wt(_0x513a27);if(!_0x396049['_isDataLoaded'])return!0x1;for(const _0x43ab3b of Object['keys'](_0x31f38a))if(!_0x5dbf15(_0x7c5caf[_0x43ab3b],_0x31f38a[_0x43ab3b]))return!0x1;return!0x0;}function Wt(_0x242ebd){const _0x1ae001=Object['assign']({},_0x242ebd);return delete _0x1ae001['skipNestingCheck'],delete _0x1ae001['tablePasteChainId'],_0x1ae001;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x1cb55e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x51494d,_0x3ecf15,_0x419153,_0x491eba){super(),this['model']=_0x3ecf15,this['view']=_0x419153,this['commentThreadController']=_0x491eba,this['_editor']=_0x51494d,this['_acceptCommand']=_0x51494d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x51494d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5323f8,_0x17f777)=>_0x5323f8||_0x17f777),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x36fbc9=>_0x36fbc9&&this['_editor']['model']['canEditAt'](_0x3ecf15['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d1016=>_0x5d1016&&this['_editor']['model']['canEditAt'](_0x3ecf15['getRanges']())),this['_pendingAction']=null,_0x419153['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x419153,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x419153,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x419153,'change:isDirty',()=>{_0x419153['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 _0x55732a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x55732a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x10742a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3cc7b3,_0x29880b,_0x16b313,_0xbca5f0){super(_0x3cc7b3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x466482(_0x3cc7b3,o(_0x3cc7b3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x29880b['authoredAt']),this['bind']('authoredAt')['to'](_0x29880b),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',_0x29880b,'authoredAt',this,'descriptionParts',(_0x4b7797,_0x347a33,_0x19c734)=>{const _0xc3c33d=_0x19c734['map'](_0x102816=>ns(_0x102816['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4b7797-0x1,_0x29880b['author']['name'],_0x347a33?_0xbca5f0['formatDateTime'](_0x347a33):'',new DOMParser()['parseFromString'](_0xc3c33d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1adaf4(),this['focusTracker']=new _0xc673c(),this['keystrokes']=new _0x553953(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5ed55e=>_0x5ed55e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x29880b,this['_localUser']=_0x16b313,this['_config']=_0xbca5f0,_0xbca5f0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x12a9e6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a5379}=this['_config'];this['commentsListView']=new _0x5a5379(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',_0x5ed01d=>_0x5ed01d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xd52b4a,_0x469c37)=>_0xd52b4a||!!_0x469c37);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x10a2da}=this['_config'],_0x94c2b=new _0x10a2da(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3966e5=_0x94c2b['commentInputView'];return _0x94c2b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3966e5,'value',(_0x10a415,_0x45b283,_0x3e8402)=>!!_0x3e8402||_0x10a415&&!_0x45b283),_0x3966e5['on']('submit',(_0x5aa8a3,_0x541302)=>{this['fire']('addComment',_0x541302),_0x3966e5['editor']['setData']('');}),_0x3966e5['on']('cancel',()=>this['focus']()),_0x3966e5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x94c2b;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3f68a5,_0x4b4bc2,_0x93f1f9,_0x12b187){super(_0x3f68a5,_0x4b4bc2,_0x93f1f9,_0x12b187),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x337377=>_0x337377&&_0x337377[0x0]?_0x337377[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x271834,_0x308af2)=>{let _0x1aeeb4='';for(const _0x5b753c of _0x271834)_0x1aeeb4+='<p>'+ns(_0x5b753c['content'],_0x5b753c['color'])+'</p>';return _0x308af2?_0x1aeeb4:_0x180605(_0x1aeeb4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x12b187['SuggestionView'](_0x3f68a5,_0x4b4bc2,{'formatDateTime':_0x12b187['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 _0x416b80=this['bindTemplate'],_0x12be9f=[this['suggestionView']];return this['commentsListView']&&_0x12be9f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x12be9f['push'](this['commentThreadInputView']),_0x12be9f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x416b80['if']('isActive','ck-suggestion-wrapper--active'),_0x416b80['to']('type',_0x4dbe94=>'ck-suggestion-'+_0x4dbe94),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':_0x416b80['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x12be9f};}['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 fe extends _0x10742a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x22b6fe,_0x132bb7,_0x4fae25){super(_0x22b6fe),this['_model']=_0x132bb7,this['_config']=_0x4fae25,this['set']('description',''),this['bind']('authoredAt')['to'](_0x132bb7),this['acceptButton']=this['_createButton'](o(_0x22b6fe,'Accept\x20suggestion'),_0x18d5fb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x22b6fe,'Discard\x20suggestion'),_0x18d5fb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x59efeb(_0x22b6fe,_0x132bb7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1adaf4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc673c(),this['keystrokes']=new _0x553953(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5b0134=>_0x5b0134['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3e217b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3e217b['innerHTML']=this['description'],this['on']('change:description',(_0xb11d25,_0x3bd63e,_0x515bf1)=>{_0x3e217b['innerHTML']=_0x515bf1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x50f815=this['bindTemplate'],_0x3d2bc4=[{'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':_0x50f815['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x50f815['to']('authoredAt',_0x43eeea=>this['_config']['formatDateTime'](_0x43eeea))}]}]},{'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']&&_0x3d2bc4['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':_0x3d2bc4}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x275884,_0x381874,_0x17da2c,_0x6dac5a,_0x4b72ed){const _0x21330b=new _0x24f414(this['locale']);return _0x21330b['set']({'label':_0x275884,'icon':_0x381874,'tooltip':!0x0,'tooltipPosition':_0x4b72ed}),_0x21330b['extendTemplate']({'attributes':{'class':_0x17da2c}}),_0x21330b['on']('execute',()=>{this['fire'](_0x6dac5a,this['_model']['id']);}),_0x21330b;}['_setupKeyboardNavigation'](){const _0x23c975=this['element'];this['keystrokes']['listenTo'](_0x23c975);for(const _0x7909d0 of this['focusables'])this['focusTracker']['add'](_0x7909d0['element']),this['keystrokes']['listenTo'](_0x7909d0['element']);this['keystrokes']['set']('enter',(_0x50e0c7,_0x4aa5d1)=>{_0x23c975===_0x50e0c7['target']&&(this['focusCycler']['focusFirst'](),_0x4aa5d1());}),this['keystrokes']['set']('esc',(_0x340225,_0xa70d4e)=>{_0x23c975!==_0x340225['target']&&(this['focus'](),_0xa70d4e());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x236dec{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d36d3,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22c013){super(_0x22c013),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4f6104=this['editor']['config'];_0x4f6104['define']('trackChanges.SuggestionThreadView',pe),_0x4f6104['define']('trackChanges.SuggestionView',fe),_0x4f6104['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4f6104['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x17de1c,_0x482abb){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x573121,_0x3e3242]of this['_handleControllerBuffer']){const _0x12197b=this['_suggestionToController']['has'](_0x573121);_0x12197b||_0x3e3242?_0x12197b&&_0x3e3242&&this['_destroyController'](_0x573121):this['_initializeController'](_0x573121);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x17de1c,_0x482abb);}['init'](){const _0x8b507a=this['editor'],_0x4b5264=_0x8b507a['plugins']['get']('TrackChangesEditing'),_0x398806=_0x8b507a['plugins']['get']('Annotations'),_0x1bc450=_0x8b507a['plugins']['get']('EditorAnnotations'),_0x557bc7=_0x8b507a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1bc450['addSourceCollector'](()=>{const _0x2f7303=[];for(const [_0x535549,_0x1c9918]of Array['from'](this['_suggestionToController'])){const _0x44b127=_0x535549['getAllAdjacentSuggestions'](),_0x3b4858=[];for(const _0x1433d6 of _0x44b127){if(!_0x1433d6['isInContent'])continue;if(_0x1433d6['isMultiRange']){_0x3b4858['push'](..._0x1433d6['getRanges']());continue;}const _0x2857bb=_0x1433d6['getFirstRange']();if(_0x3b4858['length']>0x0){const _0x43c5e9=_0x3b4858[0x0]['getJoined'](_0x2857bb);if(_0x43c5e9){_0x3b4858[0x0]=_0x43c5e9;continue;}}_0x3b4858['push'](_0x2857bb);}_0x2f7303['push']([_0x1c9918['view'],_0x3b4858]);}return _0x2f7303;}),this['listenTo'](_0x4b5264,'suggestionLoaded',(_0xc1ddae,_0x454e78)=>{this['listenTo'](_0x454e78,'change:previous',(_0x264487,_0x1a6849,_0xc3b162,_0x2bf0fa)=>{_0x454e78['isInContent']&&(null==_0xc3b162?(this['_updateController'](_0x2bf0fa['head']),this['_handleSuggestionControllerDelayed'](_0x454e78,!0x1)):(this['_updateController'](_0xc3b162['head']),null==_0x2bf0fa&&this['_handleSuggestionControllerDelayed'](_0x454e78,!0x0)));}),null!==_0x454e78['previous']?this['_updateController'](_0x454e78['head']):this['_handleSuggestionControllerDelayed'](_0x454e78,!0x1);}),this['listenTo'](_0x4b5264,'suggestionUnloaded',(_0x2f5f7e,_0x2aaeaf,_0x471145)=>{this['stopListening'](_0x2aaeaf,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2aaeaf),this['_suggestionToController']['has'](_0x2aaeaf)&&this['_destroyController'](_0x2aaeaf),_0x471145&&this['_updateController'](_0x471145['head']);}),this['listenTo'](_0x4b5264,'suggestionChanged',(_0x55f34b,_0x5908de)=>{this['_updateController'](_0x5908de);}),this['listenTo'](_0x398806,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x557bc7,'addComment',(_0x4338ec,{threadId:_0x1b45a6,isFromAdapter:_0xe404cb})=>{if(_0xe404cb||!_0x4b5264['hasSuggestion'](_0x1b45a6))return;const _0x544a6c=_0x4b5264['getSuggestion'](_0x1b45a6);this['_suggestionToController']['get'](_0x544a6c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x38f92b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x388fbb;for(const _0x5cb8f5 in _0x38f92b){const _0x5991c8=_0x5cb8f5,_0x286b82=_0x38f92b[_0x5991c8];if('trackChangesLicenseKeyValid'==_0x286b82||'trackChangesLicenseKeyInvalid'==_0x286b82||'trackChangesLicenseKeyExpired'==_0x286b82||'trackChangesLicenseKeyDomainLimit'==_0x286b82||'trackChangesLicenseKeyNotAllowed'==_0x286b82||'trackChangesLicenseKeyEvaluationLimit'==_0x286b82||'trackChangesLicenseKeyTrialLimit'==_0x286b82||'trackChangesLicenseKeyUsageLimit'==_0x286b82){delete _0x38f92b[_0x5991c8],_0x388fbb=_0x286b82,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x388fbb&&_0x38f92b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x388fbb&&_0x38f92b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x388fbb&&_0x38f92b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x388fbb&&_0x38f92b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x388fbb&&_0x38f92b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x388fbb&&_0x38f92b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x388fbb&&_0x38f92b['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x28cc6a=this['editor']['plugins']['get']('Annotations'),_0x19657c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fe05a=Array['from'](_0x28cc6a['activeAnnotations'],_0x1440db=>_0x1440db['innerView'])['filter'](_0x1a13ed=>this['_viewToController']['has'](_0x1a13ed)),_0x543926=[];for(const _0xc968b9 of _0x2fe05a){const _0x958990=this['_viewToController']['get'](_0xc968b9)['model']['getAllAdjacentSuggestions']();_0x543926['push'](..._0x958990['reduce']((_0x216a2c,_0x510479)=>[..._0x216a2c,..._0x510479['getMarkerNames']()],[]));}_0x19657c['activeMarkers']=_0x543926;}['_addUIComponentsToFactory'](){const _0x30940f=this['editor'],_0xf6c332=_0x30940f['locale'],_0x20a79c=o(_0xf6c332,'Track\x20changes'),_0x4db925=new _0xfa107d([{'type':'switchbutton','model':new _0x12534b({'withText':!0x0,'isToggleable':!0x0,'label':_0x20a79c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x12534b({'withText':!0x0,'label':o(_0xf6c332,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12534b({'withText':!0x0,'label':o(_0xf6c332,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12534b({'withText':!0x0,'label':o(_0xf6c332,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x12534b({'withText':!0x0,'label':o(_0xf6c332,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x30940f['plugins']['has']('TrackChangesPreview')&&_0x4db925['addMany']([{'type':'separator'},{'type':'button','model':new _0x12534b({'withText':!0x0,'label':o(_0xf6c332,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2a08e6 of _0x4db925)if(ke(_0x2a08e6)){const _0x5abd73=_0x30940f['commands']['get'](_0x2a08e6['model']['commandName']);_0x2a08e6['model']['bind']('isOn','isEnabled')['to'](_0x5abd73,'value','isEnabled');}_0x30940f['ui']['componentFactory']['add']('trackChanges',_0x4e4f56=>this['_createToolbarButton'](_0x4e4f56,_0x4db925,_0x20a79c)),_0x30940f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4dbad1=>this['_createMenuBarMenu'](_0x4dbad1,_0x4db925,_0x20a79c));}['_createToolbarButton'](_0x2e3ed7,_0x32772b,_0x238387){const _0xac5a41=_0x292c0(_0x2e3ed7,_0x1da248),_0x46391d=this['editor']['commands']['get']('trackChanges');_0xac5a41['buttonView']['set']({'tooltip':_0x238387,'label':_0x238387,'icon':we}),_0xac5a41['buttonView']['bind']('isOn')['to'](_0x46391d,'value'),_0xac5a41['buttonView']['on']('execute',()=>{_0x46391d['execute'](),this['editor']['editing']['view']['focus']();}),_0x4243db(_0xac5a41,_0x32772b,{'role':'menu'});const _0x281a37=[];for(const _0xc291c9 of _0x32772b)ke(_0xc291c9)&&_0x281a37['push'](this['editor']['commands']['get'](_0xc291c9['model']['commandName']));const _0x20da19=_0xac5a41['buttonView'];return _0x20da19['actionView']['unbind']('isEnabled'),_0x20da19['arrowView']['unbind']('isEnabled'),_0x20da19['actionView']['bind']('isEnabled')['to'](_0x46391d,'isEnabled'),_0x20da19['arrowView']['bind']('isEnabled')['toMany'](_0x281a37,'isEnabled',(..._0x38ba48)=>_0x38ba48['some'](_0x3ccee3=>_0x3ccee3)),_0xac5a41['on']('execute',_0x370cf1=>{this['editor']['execute'](_0x370cf1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xac5a41;}['_createMenuBarMenu'](_0x24164b,_0x2f1b86,_0x490100){const _0x4ad6e2=new _0x4e2570(_0x24164b),_0x43cac9=this['editor']['commands']['get']('trackChanges');_0x4ad6e2['buttonView']['set']({'label':_0x490100,'icon':we});const _0x290e98=new _0x596de6(_0x24164b);for(const _0x10d305 of _0x2f1b86){if('separator'==_0x10d305['type']){_0x290e98['items']['add'](new _0x4bb519(_0x24164b));continue;}const _0x507796=new _0x2e60c3(_0x24164b,_0x4ad6e2),_0x769b06=new _0x296666(_0x24164b),_0x32de90=_0x10d305['model'];_0x769b06['bind'](...Object['keys'](_0x32de90))['to'](_0x32de90),_0x769b06['delegate']('execute')['to'](_0x4ad6e2),_0x769b06['on']('execute',()=>{this['editor']['execute'](_0x32de90['commandName']),this['editor']['editing']['view']['focus']();}),_0x507796['children']['add'](_0x769b06),_0x290e98['items']['add'](_0x507796);}return _0x4ad6e2['bind']('isEnabled')['to'](_0x43cac9,'isEnabled'),_0x4ad6e2['panelView']['children']['add'](_0x290e98),_0x4ad6e2;}['_initializeController'](_0x88b93c){const _0x3749f5=this['editor'],_0x452c80=_0x3749f5['config'],_0x3676f3=_0x3749f5['plugins']['get']('Annotations'),_0x4a0a74=_0x3749f5['plugins']['get']('CommentsRepository'),_0x4b7bc9=_0x3749f5['plugins']['get']('EditorAnnotations'),_0xff456d=_0x3749f5['plugins']['get'](_0x4d36d3)['me'],_0x3e9915=_0x452c80['get']('trackChanges')['SuggestionThreadView'],_0xcf668c=_0x452c80['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1741a0,CommentThreadInputView:_0x176405}=_0x3749f5['plugins']['get']('CommentsUI');let _0x3c7fc2,_0x137366,_0x24c06c;this['_annotationViews']['has'](_0x88b93c['id'])?(_0x137366=this['_annotationViews']['get'](_0x88b93c['id']),_0x3c7fc2=_0x137366['mainView']):(_0x3c7fc2=new _0x3e9915(_0x3749f5['locale'],_0x88b93c,_0xff456d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x452c80['get']('comments.editorConfig'),'licenseKey':_0x452c80['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x452c80['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x452c80['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x452c80['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x762855(_0x452c80['get']('locale')),'CommentView':_0x452c80['get']('comments')['CommentView'],'CommentsListView':_0x1741a0,'CommentThreadInputView':_0x176405,'SuggestionView':_0xcf668c}),_0x3c7fc2['suggestionView']['acceptButton']['on']('execute',()=>{_0x3749f5['editing']['view']['focus']();}),_0x3c7fc2['suggestionView']['discardButton']['on']('execute',()=>{_0x3749f5['editing']['view']['focus']();}),_0x137366=_0x3676f3['createAnnotationView'](this['editor']['locale'],_0x3c7fc2),_0x137366['bind']('isDirty')['to'](_0x3c7fc2,'isDirty'),_0x137366['bind']('length')['to'](_0x3c7fc2),_0x137366['bind']('type')['to'](_0x3c7fc2,'type',_0x25bd1c=>'suggestion-'+_0x25bd1c),_0x3c7fc2['on']('escape',()=>{_0x24c06c['fire']('escape');}),this['_annotationViews']['set'](_0x88b93c['id'],_0x137366));const _0xb4eb8d=_0x4a0a74['createCommentThreadController'](_0x88b93c['commentThread'],_0x3c7fc2),_0x3fcb84=new Ce(_0x3749f5,_0x88b93c,_0x3c7fc2,_0xb4eb8d),_0x5c44da=_0x88b93c['getAllAdjacentSuggestions']()['filter'](_0x42eaca=>_0x42eaca['isInContent']);_0x3c7fc2['descriptionParts']=_0x3749f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5c44da),this['_suggestionToController']['set'](_0x88b93c,_0x3fcb84),this['_viewToController']['set'](_0x3c7fc2,_0x3fcb84),_0x24c06c=_0x3676f3['createAnnotation']({'view':_0x137366,'target':()=>{const _0x3ab7ae=[],_0xfc063f=_0x88b93c['getAllAdjacentSuggestions']()['filter'](_0x3d02cb=>_0x3d02cb['isInContent']);for(const _0x1398b1 of _0xfc063f)_0x3ab7ae['push'](..._0x1398b1['getMarkers']());return _0x52fcf0(_0x3749f5['editing'],_0x3ab7ae);},'type':()=>'suggestion-'+_0x3fcb84['view']['type']}),_0x4a0a74['_bindAnnotationToEditors'](_0x3c7fc2,_0x24c06c),_0x3676f3['add'](_0x24c06c),_0x4b7bc9['registerAnnotation'](_0x24c06c);}['_destroyController'](_0x2e56a8){const _0xc314dc=this['editor']['plugins']['get']('CommentsRepository'),_0x27d8b7=this['editor']['plugins']['get']('Annotations'),_0x30254b=this['_suggestionToController']['get'](_0x2e56a8),_0x3e5e3a=_0x30254b['view'],_0x5dde00=_0x27d8b7['getByInnerView'](_0x3e5e3a);_0xc314dc['_unbindEditors'](_0x3e5e3a),_0x5dde00&&_0x27d8b7['remove'](_0x5dde00),this['_suggestionToController']['delete'](_0x2e56a8),this['_viewToController']['delete'](_0x3e5e3a),_0x30254b['destroy']();}['_updateController'](_0x2a47f1){if(!_0x2a47f1['isInContent']||!this['_suggestionToController']['has'](_0x2a47f1))return;const _0x11e04b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17a253=this['_suggestionToController']['get'](_0x2a47f1),_0x322c5d=_0x2a47f1['getAllAdjacentSuggestions']();_0x17a253['view']['descriptionParts']=_0x11e04b['descriptionFactory']['getDescriptions'](_0x322c5d);}['destroy'](){for(const _0x3818f2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3818f2);for(const _0x584db3 of this['_annotationViews']['values']())_0x584db3['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x8deff1){return'model'in _0x8deff1;}class k extends _0x236dec{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x157335){this['editor']['plugins']['get'](p)['adapter']=_0x157335;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3d0baa){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3d0baa);}['getSuggestions']({skipNotAttached:_0x407ff6=!0x1,toJSON:_0x571dc3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x407ff6,'toJSON':_0x571dc3});}['getSuggestion'](_0x428f52){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x428f52);}}const w=['Pagination'];class T extends _0x236dec{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x485c7f=this['editor'];if(_0x485c7f['config']['define']('trackChangesData.editorCreator',_0x3e01ac=>{const _0x5eafbd=_0x485c7f['model']['document']['getRootNames']()['reduce']((_0x2aa764,_0x3e1033)=>(_0x2aa764[_0x3e1033]='',_0x2aa764),{});return _0x485c7f['constructor']['create'](_0x5eafbd,_0x3e01ac);}),'function'!=typeof _0x485c7f['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c08fa('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1f6c5c){return N(this['editor'],!0x0,_0x1f6c5c);}['getDataWithDiscardedSuggestions'](_0xe2dc0b){return N(this['editor'],!0x1,_0xe2dc0b);}}class D extends _0x236dec{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x382b39){function _0x1f9150(_0x49389f){return _0x49389f['map'](_0x16755e=>String['fromCharCode'](_0x16755e))['join']('');}super(_0x382b39),this['result']='end',_0x382b39[_0x1f9150([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f9150([0x76,0x69,0x65,0x77])][_0x1f9150([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f9150([0x61,0x75,0x74,0x6f]),_0x382b39[_0x1f9150([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1f9150([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f9150([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1f9150([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1f9150([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(_0x1f489e){return void 0x0!==_0x1f489e['getRootsAttributes'];}async function N(_0x169657,_0x2562b5,_0x78824f){const _0x406bd6=_0x22d778(_0x169657,w);_0x406bd6['plugins']['push'](p,D),_0x406bd6['rootsAttributes']=Fe(_0x169657)?_0x169657['getRootsAttributes']():void 0x0;const _0x26fb6f=document['createDocumentFragment'](),_0x169e2a=_0x169657['config']['get']('trackChangesData')['editorCreator'],_0x155ef9=await _0x169e2a(_0x406bd6,()=>function(_0x20fa2a){const _0x128e69=document['createElement']('div');return _0x20fa2a['appendChild'](_0x128e69),_0x128e69;}(_0x26fb6f));!function(_0x2fae09,_0x4aa50f){const _0x9be240=_0x2fae09['model']['document']['getRootNames']()['reduce']((_0x16e921,_0x4a26b9)=>(_0x16e921[_0x4a26b9]=_0x2fae09['data']['get']({'rootName':_0x4a26b9}),_0x16e921),{}),_0x214f57=_0x2fae09['plugins']['get']('Users')['users']['map'](_0x5fbded=>({'id':_0x5fbded['id'],'name':_0x5fbded['name']})),_0x538950=_0x2fae09['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x8f8244=_0x2fae09['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c0258=_0x4aa50f['plugins']['get']('Users'),_0x33cd47=_0x4aa50f['plugins']['get']('TrackChangesEditing'),_0x583ba4=_0x4aa50f['plugins']['get']('CommentsRepository');for(const _0x3bcf44 of _0x583ba4['getCommentThreads']())_0x3bcf44['remove']();for(const _0x3e07e9 of _0x214f57)_0x5c0258['getUser'](_0x3e07e9['id'])||_0x5c0258['addUser'](_0x3e07e9);_0x5c0258['me']||_0x5c0258['useAnonymousUser']();for(const _0x46dcda of _0x8f8244)_0x583ba4['addCommentThread'](_0x46dcda);for(const _0x403bb8 of _0x538950)_0x33cd47['addSuggestionData'](_0x403bb8);_0x4aa50f['data']['set'](_0x9be240);}(_0x169657,_0x155ef9),_0x155ef9['execute'](_0x2562b5?'acceptAllSuggestions':'discardAllSuggestions');const _0x3961ec=Fe(_0x155ef9)?_0x155ef9['getFullData'](_0x78824f):_0x155ef9['data']['get'](_0x78824f);return await _0x155ef9['destroy'](),_0x3961ec;}class Me extends _0x10742a{['options'];constructor(_0xe13562,_0x51ba5a){super(_0xe13562),this['options']=_0x51ba5a,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'](_0x29525a,_0x2a505e){if(!this['element'])return;const _0x4cffa6=[];for(const [_0x4d2c19,_0x4a5b65]of _0x29525a){const _0xe4f667=document['createElement']('div');_0xe4f667['setAttribute']('data-ck-root-name',_0x4d2c19),_0xe4f667['className']=_0x4a5b65['classes']+'\x20ck-track-changes-preview__root-container',_0xe4f667['innerHTML']=_0x4a5b65['content'],_0x4cffa6['push'](_0xe4f667);}_0x2a505e(this['element'],_0x4cffa6),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x2f95ee){super(_0x2f95ee),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x279206=this['editor'],_0x25d3c0=_0x279206['locale'],_0x56d3f2=_0x279206['plugins']['get']('Dialog');let _0x87f73c;const _0x339418=function(_0x9e4e46){const _0x1e37c7={};if('editables'in _0x9e4e46['ui']['view']){for(const [_0x20917c,_0x365a51]of Object['entries'](_0x9e4e46['ui']['view']['editables']))_0x1e37c7[_0x20917c]=_0x365a51['element'];}else _0x1e37c7[_0x9e4e46['model']['document']['getRootNames']()[0x0]]=_0x9e4e46['ui']['view']['editable']['element'];return _0x1e37c7;}(_0x279206),_0x4fa92c=function(_0x5948fd){let _0x45d4a3=0x0;for(const _0xa5b3d7 of Object['values'](_0x5948fd))_0x45d4a3=Math['max'](_0x45d4a3,_0xa5b3d7['getBoundingClientRect']()['width']);let _0x5c26b9=0x0;for(const _0x5e3a37 of Object['values'](_0x5948fd))_0x5c26b9+=_0x5e3a37['getBoundingClientRect']()['height'];const _0x406f46=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x38b452=Math['min'](_0x5c26b9,_0x406f46);return{'width':_0x45d4a3,'height':_0x38b452};}(_0x339418);_0x56d3f2['show']({'id':'finalContentPreview','title':o(_0x25d3c0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x25d3c0,{'dialogRects':_0x4fa92c}),'onHide':()=>{_0x87f73c['detachFromDom']();},'onShow':()=>{_0x279206['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4ef909=>{const _0x293658=this['_standarizeRootsData'](_0x4ef909,_0x279206,_0x339418);_0x56d3f2['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x293658,_0x279206['config']['get']('trackChanges.preview.renderFunction'));}),_0x87f73c=new _0x38f9f9(_0x25d3c0,[_0x56d3f2['view']]),_0x87f73c['attachToDom'](),_0x87f73c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x279206['once']('destroy',()=>{_0x87f73c['detachFromDom']();});const _0xec128d=_0x56d3f2['view']['headerView']['class'];_0x56d3f2['view']['headerView']['class']=_0xec128d?_0xec128d+'\x20ck-reset_all':'ck-reset_all',_0x56d3f2['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x56d3f2['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x7dbcf9=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x57af5b=_0x7dbcf9['previewMode'],_0xad79cb={};if('$labels'===_0x57af5b){for(const _0x2d6f00 of _0x7dbcf9['getMergeFieldsIds']())_0xad79cb[_0x2d6f00]=_0x7dbcf9['getLabel'](_0x2d6f00)||_0x2d6f00;}else{const _0x3e59f2='$defaultValues'===_0x57af5b?_0x7dbcf9['getDefaultValues']():_0x7dbcf9['getDataSetValues'](_0x57af5b,!0x0);for(const _0x2727fb of Object['entries'](_0x3e59f2)){const [_0x2b85fe,_0x11f96a]=_0x2727fb;_0xad79cb[_0x2b85fe]=null!==_0x11f96a?_0x11f96a:_0x7dbcf9['getLabel'](_0x2b85fe)||_0x2b85fe;}}return{'mergeFieldsData':_0xad79cb};}['_standarizeRootsData'](_0x2e8a41,_0x1477bf,_0x1ced5a){let _0x139a6b;if('string'==typeof _0x2e8a41){const _0x1e12b3=_0x1477bf['model']['document']['getRootNames']()[0x0];_0x139a6b={[_0x1e12b3]:_0x2e8a41};}else _0x139a6b=_0x2e8a41;const _0x1568be=this['_fixMediaEmbeds'](_0x139a6b,_0x1477bf),_0xbcbaf3=function(_0x5d6162,_0x4caa02){for(const [_0x25e2c7,_0x6c13ec]of _0x5d6162)_0x6c13ec['classes']=_0x4caa02[_0x25e2c7]['classList']['value']['replace']('ck-focused','');return _0x5d6162;}(this['_sortRoots'](_0x1477bf)['reduce']((_0x4236ef,_0x7063c6)=>(_0x4236ef['push']([_0x7063c6,{'content':_0x1568be[_0x7063c6],'classes':''}]),_0x4236ef),[]),_0x1ced5a);return _0xbcbaf3;}['_fixMediaEmbeds'](_0x29ee63,_0x37a079){if(!_0x37a079['plugins']['has']('MediaEmbedEditing'))return _0x29ee63;const _0x4c9db6=_0x37a079['plugins']['get']('MediaEmbedEditing');for(const [_0x5ea41d,_0x3e7be7]of Object['entries'](_0x29ee63)){const _0x5af163=document['createElement']('div');_0x5af163['innerHTML']=_0x3e7be7,(_0x5af163['querySelectorAll']('figure.media')['forEach'](_0x4d51ed=>{const _0x42d29f=_0x4d51ed['querySelector']('oembed');if(_0x42d29f){const _0x45729f=_0x42d29f['getAttribute']('url');if(_0x45729f){const _0x3935c8=_0x4c9db6['registry']['getMediaViewElement'](new _0x3ecfa8(_0x37a079['editing']['view']['document']),_0x45729f,{'elementName':'','renderForEditingView':!0x0}),_0x8c58a8=document['createElement']('div');_0x8c58a8['classList']['add']('ck-media__wrapper'),_0x3935c8['render'](_0x8c58a8,_0x37a079['editing']['view']['domConverter']),_0x42d29f['replaceWith'](_0x8c58a8);}}}),_0x29ee63[_0x5ea41d]=_0x5af163['innerHTML']);}return _0x29ee63;}['_sortRoots'](_0xd9190c){if(!function(_0x37f334){return void 0x0!==_0x37f334['getRootsAttributes'];}(_0xd9190c))return _0xd9190c['model']['document']['getRootNames']();const _0x293675=[],_0x597a3c=new Map();for(const _0x1466d7 of _0xd9190c['model']['document']['getRootNames']()){const _0x343d88=_0xd9190c['editing']['view']['getDomRoot'](_0x1466d7)['getClientRects']()['item'](0x0);_0x293675['push'](_0x1466d7),_0x597a3c['set'](_0x1466d7,_0x343d88);}return _0x293675['sort']((_0x18ea40,_0x11bec7)=>{const _0x2f61ab=_0x597a3c['get'](_0x18ea40),_0x37aa44=_0x597a3c['get'](_0x11bec7);return _0x2f61ab['y']-_0x37aa44['y']||_0x2f61ab['x']-_0x37aa44['x'];}),_0x293675;}}class te extends _0x236dec{static get['requires'](){return[T,_0xe20bdc];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x244fb2){super(_0x244fb2),_0x244fb2['commands']['add']('previewFinalContent',new re(this['editor'])),_0x244fb2['config']['define']('trackChanges.preview.renderFunction',(_0x6f7e3a,_0x59f565)=>{for(const _0xf841fc of _0x59f565)_0x6f7e3a['appendChild'](_0xf841fc);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Qt,Plugin as _0x32720e,PendingActions as _0x2ac36e,icons as _0x230c64}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xfec3cf,ObservableMixin as _0x132ed3,uid as _0x2cd620,priorities as _0x4368d6,insertToPriorityArray as _0x6a8e58,logWarning as _0x9317a6,getEnvKeystrokeText as _0x315ef0,FocusTracker as _0x23ef9f,KeystrokeHandler as _0x3bdab9,Collection as _0x33f543}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x53def7,View as _0x11e5db,ViewCollection as _0x5c8dec,FocusCycler as ts,ViewModel as _0x41358f,createDropdown as _0x4cb20b,SplitButtonView as _0x4b215d,addListToDropdown as _0x4322f7,MenuBarMenuView as _0x3a12bc,MenuBarMenuListView as _0x376e85,ListSeparatorView as _0xa8bd4d,MenuBarMenuListItemView as _0x5369f1,MenuBarMenuListItemButtonView as _0x4ce01f,BodyCollection as _0x2be798,Dialog as _0x26d4e0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x48e0a0,hashObject as _0x2ae810,surroundingMarkersDetector as _0x439ccd,FOCUS_ANNOTATION_KEYSTROKE as _0x2978b7,AriaDescriptionView as _0x2b5eba,setupThreadKeyboardNavigation as _0x484b13,trimHtml as _0x54b9fd,UserView as _0xf70ba3,LateFocusButtonView as _0xc6c968,getDateTimeFormatter as _0x1872cb,getAllMarkersDomElementsSorted as _0xf76376,sanitizeEditorConfig as _0x46ee85}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x35966e,LiveRange as _0x114c36,LivePosition as _0xc42979,DowncastWriter as _0x35eebe}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x58a981,toWidget as _0x1a00cd}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x597c63,set as _0x3c5465,isEqual as _0x2cb703,unset as _0x532bc6,omit as Et}from'lodash-es';import{Delete as _0x1c8203,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x21923b,ShiftEnter as _0x31c31b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x19bee3,_0xf0bc9c){super(_0x19bee3),this['_enabledCommands']=_0xf0bc9c,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 _0x1f5b07 of this['editor']['commands']['commands']())_0x1f5b07['affectsData']&&!this['_enabledCommands']['has'](_0x1f5b07)&&_0x1f5b07['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x34eef6 of this['editor']['commands']['commands']())_0x34eef6['affectsData']&&!this['_enabledCommands']['has'](_0x34eef6)&&_0x34eef6['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x391e66,_0x31cdcb){super(_0x391e66),this['_suggestions']=_0x31cdcb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4b63d0){const _0xa2a008=this['_suggestions']['get'](_0x4b63d0);if(!_0xa2a008)throw new _0xfec3cf('track-changes-accept-suggestion-not-found',this);const _0x1c1066=_0xa2a008['getRanges']();this['editor']['model']['canEditAt'](_0x1c1066)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xa2a008);}}class R extends Qt{['_suggestions'];constructor(_0x272973,_0x465374){super(_0x272973),this['_suggestions']=_0x465374,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3aaf90){const _0x41e61d=this['_suggestions']['get'](_0x3aaf90);if(!_0x41e61d)throw new _0xfec3cf('track-changes-discard-suggestion-not-found',this);const _0xe9a81=_0x41e61d['getRanges']();this['editor']['model']['canEditAt'](_0xe9a81)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x41e61d);}}function ns(_0x4f13d3,_0x156cd0){let _0x2fb65f='';return _0x2fb65f+=_0x4f13d3['split']('*')['map']((_0x2f418b,_0x3098b9)=>_0x3098b9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2f418b)+'</span>':nn(_0x2f418b))['join'](''),_0x156cd0&&(_0x2fb65f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x156cd0['value']+'\x22\x20title=\x22'+_0x156cd0['title']+'\x22></span>'),_0x2fb65f;}function nn(_0x239484){const _0x3c54b0=document['createElement']('span');return _0x3c54b0['innerText']=_0x239484,_0x3c54b0['innerHTML'];}function Xt(_0x287f5c){return _0x287f5c['sort']((_0x57e93d,_0x1e5779)=>'deletion'==_0x57e93d['type']&&'deletion'!=_0x1e5779['type']?-0x1:'deletion'!=_0x57e93d['type']&&'deletion'==_0x1e5779['type']?0x1:0x0);}function to(_0x22d054,_0x4c8144){let _0x548c94,_0x87ff77=0x0;const _0x1c3457=[],_0x366031=_0x4c8144['schema'];for(;_0x87ff77<_0x22d054['length'];){const _0x174f8c=_0x22d054[_0x87ff77],_0x598734=_0x22d054[_0x87ff77+0x1];_0x548c94||(_0x548c94=_0x4c8144['createPositionBefore'](_0x174f8c)),on(_0x4c8144,_0x174f8c,_0x598734)||(_0x1c3457['push'](_0x4c8144['createRange'](_0x548c94,_0x366031['isObject'](_0x174f8c)?_0x4c8144['createPositionAfter'](_0x174f8c):_0x4c8144['createPositionAt'](_0x174f8c,'end'))),_0x548c94=null),_0x87ff77++;}return _0x1c3457;}function on(_0x18074e,_0x88aaed,_0x49d018){if(!_0x49d018)return!0x1;const _0x26c658=_0x18074e['createPositionAfter'](_0x88aaed),_0x3875e3=_0x18074e['createPositionBefore'](_0x49d018);return _0x26c658['isTouching'](_0x3875e3);}function Yt(_0x1eed81,_0x4f900b,_0x1b9427){for(;_0x1b9427['length'];){const _0x335049=_0x1b9427['splice'](0x0,0x64);_0x1eed81['change'](()=>{for(const _0x549eb0 of _0x335049)_0x549eb0['isInContent']&&_0x4f900b['execute'](_0x549eb0['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x403efe,_0x41e8c4,_0x5a11fb){super(_0x403efe),this['_command']=_0x41e8c4,this['_suggestions']=_0x5a11fb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x511179=Array['from'](this['_suggestions']['values']())['some'](_0x3fe36d=>_0x3fe36d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x511179;}['execute'](){const _0xf4e4fe=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x3203de of _0xf4e4fe){const _0x1e83af=_0x3203de['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e83af))return;}Yt(this['editor']['model'],this['_command'],_0xf4e4fe);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x334fed,_0x447029,_0x367abb){super(_0x334fed),this['_command']=_0x447029,this['_suggestions']=_0x367abb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x350a3a=this['editor']['model']['document']['selection'],_0x4d97f1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x9f6d3e,_0x30fc1c){const _0x42609b=Array['from'](_0x9f6d3e['getRanges']()),_0x5902fb=new Set();for(const _0xc7bfcb of _0x30fc1c)if(_0xc7bfcb['isInContent']){for(const _0x412be4 of _0x42609b)for(const _0x5eb5f8 of _0xc7bfcb['getRanges']())(_0x412be4['isIntersecting'](_0x5eb5f8)||_0x9f6d3e['isCollapsed']&&!_0xc7bfcb['isMultiRange']&&_0xc7bfcb['next']&&_0x5eb5f8['end']['isTouching'](_0x412be4['start']))&&_0x5902fb['add'](_0xc7bfcb);}return _0x5902fb;}(_0x350a3a,_0x4d97f1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x27d994=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x4b8ae2 of _0x27d994){const _0x520c58=_0x4b8ae2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x520c58))return;}Yt(this['editor']['model'],this['_command'],_0x27d994);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x132ed3(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x9ef453,_0x85f06b){super(),this['id']=_0x85f06b['id'],this['type']=_0x85f06b['type'],this['subType']=_0x85f06b['subType']||null,this['author']=_0x85f06b['author'],this['creator']=_0x85f06b['creator']||_0x85f06b['author'],this['isExternal']=Boolean(_0x85f06b['attributes']&&_0x85f06b['attributes']['@external']),this['data']=null,this['_model']=_0x9ef453,this['_onAccept']=_0x85f06b['onAccept'],this['_onDiscard']=_0x85f06b['onDiscard'],this['_onAttributesChange']=_0x85f06b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x85f06b['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 _0x542422=this;for(;_0x542422['previous'];)_0x542422=_0x542422['previous'];return _0x542422;}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'](_0x2d343d){this['_markerNames']['add'](_0x2d343d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x56441b=>this['_model']['markers']['get'](_0x56441b))['filter'](_0x10d198=>_0x10d198);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4cf197=>{for(const _0x4cf96e of this['getMarkers']())_0x4cf197['removeMarker'](_0x4cf96e);}),this['_markerNames']['clear']();}['removeMarker'](_0x565652){this['_model']['change'](_0x38b695=>{_0x38b695['removeMarker'](_0x565652);}),this['_markerNames']['delete'](_0x565652);}['addRange'](_0xff05ec){const _0x4a1a62='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4a1a62),this['_model']['change'](_0x578870=>{_0x578870['addMarker'](_0x4a1a62,{'range':_0xff05ec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x31c757){for(const _0xcd7aa4 of this['getRanges']())if(_0xcd7aa4['isIntersecting'](_0x31c757))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1b9af8=>_0x1b9af8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x16abd1,_0x494f2b)=>[..._0x16abd1,..._0x494f2b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2faa97=this['getRanges']();if(0x1!=_0x2faa97['length'])return null;const _0x3f135d=_0x2faa97[0x0],_0x4f5737=_0x3f135d['start']['nodeAfter'],_0x316a93=_0x3f135d['end']['nodeBefore'];return _0x4f5737 instanceof _0x35966e?_0x4f5737!=_0x316a93?null:_0x4f5737: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 _0xb276cb=[];let _0x258ccd=this['head'];for(;_0x258ccd;)_0xb276cb['push'](_0x258ccd),_0x258ccd=_0x258ccd['next'];return _0xb276cb;}['setAttribute'](_0xd38015,_0x2b2f69){const _0x7d143e=_0x597c63(this['attributes']);_0x3c5465(_0x7d143e,_0xd38015,_0x2b2f69),_0x2cb703(_0x7d143e,this['attributes'])||(this['attributes']=_0x7d143e,this['_onAttributesChange'](_0x7d143e));}['removeAttribute'](_0xfef8ce){const _0x2d557e=_0x597c63(this['attributes']);_0x532bc6(_0x2d557e,_0xfef8ce),_0x2cb703(_0x2d557e,this['attributes'])||(this['attributes']=_0x2d557e,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 _0x2cd620()['substr'](0x1,0x5);}}function o(_0x1de9d1,_0x247288,_0x44c7c3){const _0xcd7e49=_0x1de9d1['t'],t=_0x1de9d1['t'];switch(_0x247288){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',_0x44c7c3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x44c7c3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x44c7c3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x44c7c3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x44c7c3);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',_0x44c7c3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x44c7c3);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',_0x44c7c3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x44c7c3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x44c7c3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x44c7c3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x44c7c3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x44c7c3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x44c7c3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x44c7c3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x44c7c3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x44c7c3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x44c7c3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x44c7c3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x44c7c3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x44c7c3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x44c7c3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x44c7c3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x44c7c3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x44c7c3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x44c7c3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x44c7c3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x44c7c3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x44c7c3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x44c7c3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x44c7c3);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'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x44c7c3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x44c7c3);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'},_0x44c7c3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x44c7c3);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 _0xcd7e49({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x44c7c3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xcd7e49({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x44c7c3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x44c7c3);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'},_0x44c7c3);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'},_0x44c7c3);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'},_0x44c7c3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x247288;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x375f19,_0x16acef){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x375f19,this['_locale']=_0x16acef;}['getDescriptions'](_0x53a925){const _0x57e492=[],_0x51bbb6=new Set(),_0x317526=new Set();for(let _0x6298c1=0x0;_0x6298c1<_0x53a925['length'];_0x6298c1++){const _0x3aab2f=_0x53a925[_0x6298c1];if(!_0x3aab2f['isInContent'])continue;const _0x4c43a6=this['_handleCustomCallbackDescription'](_0x3aab2f);if(_0x4c43a6){if(null!=_0x3aab2f['subType']){if(_0x51bbb6['has'](_0x3aab2f['subType']))continue;_0x51bbb6['add'](_0x3aab2f['subType']);}_0x57e492['push'](_0x4c43a6);}else{if('attribute'!=_0x3aab2f['type'])'insertion'!=_0x3aab2f['type']&&'deletion'!=_0x3aab2f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x57e492,_0x3aab2f,_0x53a925[_0x6298c1+0x1]);else{const _0x4b55c2=_0x3aab2f['data']['key'];if(_0x317526['has'](_0x4b55c2))continue;_0x317526['add'](_0x3aab2f['data']['key']),_0x4b55c2==m?this['_handleRenameSuggestionDescription'](_0x57e492,_0x3aab2f):this['_handleAttributeSuggestionDescription'](_0x57e492,_0x3aab2f);}}}return this['_resolveDescriptionItems'](_0x57e492);}['registerDescriptionCallback'](_0x2ae9f3){this['_customCallbacks']['push'](_0x2ae9f3);}['registerElementLabel'](_0x22be5f,_0xc30f80,_0x3debf0=_0x4368d6['normal']){'function'==typeof _0x22be5f?_0x6a8e58(this['_itemLabelsCallbacks'],{'matchingCallback':_0x22be5f,'label':_0xc30f80,'priority':_0x3debf0}):this['_itemLabels']['set'](_0x22be5f,_0xc30f80);}['registerAttributeLabel'](_0xa4dbc7,_0xd493c6){this['_attributeLabels']['set'](_0xa4dbc7,_0xd493c6);}['getItemLabel'](_0x31505f,_0x56a92b=0x1){let _0x589c45;for(const _0x12fbf1 of this['_itemLabelsCallbacks'])if(_0x12fbf1['matchingCallback'](_0x31505f)){_0x589c45=_0x12fbf1['label'];break;}return _0x589c45||(_0x589c45=this['_itemLabels']['get'](_0x31505f['name'])),_0x589c45?_0x589c45(_0x56a92b):0x1!==_0x56a92b?_0x56a92b+'\x20'+_0x31505f['name']+'s':''+_0x31505f['name'];}['_addDescriptionItems'](_0x8cae64,_0xcde22a){const _0x434737=_0xcde22a['getFirstRange']()['getWalker'](),_0x311530='insertion'==_0xcde22a['type']?'add':'remove';for(const _0x398de6 of _0x434737){const _0x1cc0f0=_0x398de6['item'],_0x2efaa1=_0x8cae64[_0x8cae64['length']-0x1];if(_0x1cc0f0['is']('$textProxy'))_0x2efaa1&&_0x2efaa1['type']['indexOf']('Container')>-0x1&&_0x8cae64['pop'](),_0x2efaa1&&'text'==_0x2efaa1['type']?_0x2efaa1[_0x311530]+=_0x1cc0f0['data']:_0x8cae64['push']({'type':'text','add':'add'==_0x311530?_0x1cc0f0['data']:'','remove':'remove'==_0x311530?_0x1cc0f0['data']:''});else{if(this['_schema']['isObject'](_0x1cc0f0)){const _0x4d2fd6=_0x1cc0f0;if(_0x2efaa1&&_0x2efaa1['type']['indexOf']('Container')>-0x1&&_0x8cae64['pop'](),'elementEnd'==_0x398de6['type'])continue;_0x2efaa1&&_0x2efaa1['type']==_0x311530+'Object'&&_0x2efaa1['element']['name']==_0x4d2fd6['name']?_0x2efaa1['quantity']++:_0x8cae64['push']({'type':_0x311530+'Object','element':_0x4d2fd6,'quantity':0x1}),_0x434737['skip'](_0x1f7ea1=>!('elementEnd'==_0x1f7ea1['type']&&_0x1f7ea1['item']==_0x1cc0f0));}else{if(this['_schema']['checkChild'](_0x1cc0f0,'$text')||_0x1cc0f0['is']('element','softBreak')){const _0x3ed680=_0x1cc0f0;if('add'==_0x311530&&'elementStart'==_0x398de6['type']||'remove'==_0x311530&&'elementEnd'==_0x398de6['type'])continue;if(_0x2efaa1&&-0x1==_0x2efaa1['type']['indexOf']('Container')){'text'==_0x2efaa1['type']&&(_0x2efaa1[_0x311530]+='\x0a');continue;}let _0x4b877e;if(_0x4b877e='add'==_0x311530?_0x3ed680['nextSibling']&&!this['_schema']['isObject'](_0x3ed680['nextSibling'])?_0x3ed680['nextSibling']:null:_0x3ed680['previousSibling']&&!this['_schema']['isObject'](_0x3ed680['previousSibling'])?_0x3ed680['previousSibling']:null,_0x3ed680['isEmpty']||_0x4b877e&&_0x4b877e['isEmpty']){const _0xd4223f=_0x4b877e&&_0x4b877e['isEmpty']?_0x4b877e:_0x3ed680;_0x2efaa1&&_0x2efaa1['type']==_0x311530+'EmptyContainer'&&_0x2efaa1['element']['name']==_0xd4223f['name']?_0x2efaa1['quantity']++:_0x8cae64['push']({'type':_0x311530+'EmptyContainer','element':_0xd4223f,'quantity':0x1});}else _0x8cae64['push']({'type':_0x311530+'Container','element':_0x3ed680});}}}}}['_resolveDescriptionItems'](_0x1134ef){const _0x21ff4d=this['_locale'],_0x23ec94=[],_0x399ab0=[],_0x1e36f2=[];for(const _0x3846f4 of _0x1134ef)switch(_0x3846f4['type']){case'text':if(_0x3846f4['add']=_0x3846f4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3846f4['remove']=_0x3846f4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3846f4['add']&&''!=_0x3846f4['remove']){_0x23ec94['push']({'type':'replace','content':o(_0x21ff4d,'REPLACE_TEXT',['\x22'+_0x3846f4['remove']+'\x22','\x22'+_0x3846f4['add']+'\x22'])});continue;}if(null!=_0x3846f4['add']['match'](/^ +$/)){_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Insert:*\x20%0',o(_0x21ff4d,'ELEMENT_SPACE',_0x3846f4['add']['length']))});continue;}if(null!=_0x3846f4['remove']['match'](/^ +$/)){_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Remove:*\x20%0',o(_0x21ff4d,'ELEMENT_SPACE',_0x3846f4['remove']['length']))});continue;}if(''!=_0x3846f4['add']){_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Insert:*\x20%0','\x22'+_0x3846f4['add']+'\x22')});continue;}_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Remove:*\x20%0','\x22'+_0x3846f4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Insert:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Remove:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'addContainer':_0x23ec94['push']({'type':'insertion','content':o(_0x21ff4d,'*Split:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'removeContainer':_0x23ec94['push']({'type':'deletion','content':o(_0x21ff4d,'*Merge:*\x20%0',this['getItemLabel'](_0x3846f4['element'],_0x3846f4['quantity']))});continue;case'addFormat':_0x399ab0['push'](_0x3846f4['key']);continue;case'removeFormat':_0x1e36f2['push'](_0x3846f4['key']);continue;default:_0x23ec94['push'](_0x3846f4);}if(_0x399ab0['length']){const _0x4aa2fd=_0x399ab0['map'](_0x37c919=>this['_attributeLabels']['has'](_0x37c919)?this['_attributeLabels']['get'](_0x37c919):_0x37c919)['join'](',\x20');_0x23ec94['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4aa2fd)});}if(_0x1e36f2['length']){const _0xac5958=_0x1e36f2['map'](_0x4662bd=>this['_attributeLabels']['has'](_0x4662bd)?this['_attributeLabels']['get'](_0x4662bd):_0x4662bd)['join'](',\x20');_0x23ec94['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xac5958)});}return _0x23ec94;}['_handleCustomCallbackDescription'](_0x5e6c5c){for(const _0xe2c589 of this['_customCallbacks']){const _0x3b9628=_0xe2c589(_0x5e6c5c);if(_0x3b9628&&'type'in _0x3b9628)return _0x3b9628;}}['_handleAttributeSuggestionDescription'](_0x4decc7,_0x46161e){const _0x48d0f5=_0x46161e['data'],_0x33974c=void 0x0===_0x48d0f5['newValue']?'removeFormat':'addFormat';_0x4decc7['push']({'type':_0x33974c,'key':_0x48d0f5['key']});}['_handleRenameSuggestionDescription'](_0xfe95b4,_0x43ba1f){_0xfe95b4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x43ba1f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x112db4,_0x1ad483,_0x5ae806){if(this['_addDescriptionItems'](_0x112db4,_0x1ad483),_0x5ae806&&_0x5ae806['getFirstRange']()&&!_0x1ad483['getFirstRange']()['end']['isEqual'](_0x5ae806['getFirstRange']()['start'])){const _0x21185e=_0x112db4[_0x112db4['length']-0x1],_0x5da10a='insertion'==_0x1ad483['type']?'add':'remove';_0x21185e&&'text'==_0x21185e['type']&&(_0x21185e[_0x5da10a]+='\x0a');}}}class U extends _0x32720e{['afterInit'](){const _0x424b07=this['editor'],_0x51a309=_0x424b07['plugins']['get']('TrackChangesEditing');_0x424b07['commands']['get']('showAIAssistant')&&_0x51a309['enableCommand']('showAIAssistant');}}class V extends _0x32720e{['afterInit'](){const _0x37f295=this['editor'],_0x404570=_0x37f295['locale'];if(!_0x37f295['plugins']['has']('AlignmentEditing'))return;const _0x1c1a11=_0x37f295['plugins']['get']('TrackChangesEditing');_0x1c1a11['enableDefaultAttributesIntegration']('alignment'),_0x1c1a11['registerBlockAttribute']('alignment'),_0x1c1a11['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x404570,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2654ba=this['editor'],_0x379601=_0x2654ba['locale'];_0x2654ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10c496=>{if('formatBlock'!=_0x10c496['type'])return;const {data:_0x181a48}=_0x10c496;if(_0x181a48&&'alignment'==_0x181a48['commandName']){const _0x5d8bd4=_0x181a48['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x379601,'*Format:*\x20%0',function(_0x5178f2){switch(_0x5178f2){case'left':return o(_0x379601,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x379601,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x379601,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x379601,'FORMAT_JUSTIFY_TEXT');}}(_0x5d8bd4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x32720e{['afterInit'](){const _0x31ed5b=this['editor'],_0x1c1e08=_0x31ed5b['plugins']['get']('TrackChangesEditing'),_0x5c813c=_0x31ed5b['locale'];for(const _0x3cec06 of ti){if(!_0x31ed5b['plugins']['has'](_0x3cec06))continue;const _0x83fe95=_0x3cec06['slice'](0x0,-0x7)['toLowerCase'](),_0xd387ff='FORMAT_'+_0x83fe95['toUpperCase']();_0x1c1e08['enableDefaultAttributesIntegration'](_0x83fe95),_0x1c1e08['registerInlineAttribute'](_0x83fe95),_0x1c1e08['descriptionFactory']['registerAttributeLabel'](_0x83fe95,o(_0x5c813c,_0xd387ff));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eb2a0=this['editor'],_0x597600=_0x3eb2a0['locale'],_0x12c7cd=_0x3eb2a0['plugins']['get']('TrackChangesEditing');function _0x2e9b16(_0x1aac11,_0x505886){_0x12c7cd['descriptionFactory']['registerDescriptionCallback'](_0xf1c2be=>{if('formatInline'!=_0xf1c2be['type'])return;const {data:_0x2b429e}=_0xf1c2be;return _0x2b429e&&_0x2b429e['commandName']===_0x1aac11?_0x2b429e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x597600,'*Format:*\x20%0',_0x505886)}:{'type':'format','content':o(_0x597600,'*Remove\x20format:*\x20%0',_0x505886)}:void 0x0;});}_0x2e9b16('bold',o(_0x597600,'FORMAT_BOLD')),_0x2e9b16('italic',o(_0x597600,'FORMAT_ITALIC')),_0x2e9b16('underline',o(_0x597600,'FORMAT_UNDERLINE')),_0x2e9b16('code',o(_0x597600,'FORMAT_CODE')),_0x2e9b16('strikethrough',o(_0x597600,'FORMAT_STRIKETHROUGH')),_0x2e9b16('subscript',o(_0x597600,'FORMAT_SUBSCRIPT')),_0x2e9b16('superscript',o(_0x597600,'FORMAT_SUPERSCRIPT'));}}class F extends _0x32720e{['afterInit'](){const _0x5e0b29=this['editor'],_0x3eb320=_0x5e0b29['locale'];if(!_0x5e0b29['plugins']['has']('BlockQuoteEditing'))return;const _0x153ded=_0x5e0b29['plugins']['get']('TrackChangesEditing'),_0x5943e3=this['editor']['commands']['get']('blockQuote');_0x153ded['enableCommand']('blockQuote',(_0x112129,_0x32db20={})=>{const _0x4d876e=this['editor']['model']['document']['selection'],_0x40d4b1=_0x32db20&&void 0x0!==_0x32db20['forceValue']?_0x32db20['forceValue']:!_0x5943e3['value'];let _0x62d71c=[];if(_0x40d4b1){const _0x5ffe0=Array['from'](_0x4d876e['getSelectedBlocks']())['filter'](_0x2c620c=>oo(_0x2c620c)||function(_0x3bded4,_0x4be94d){const _0x5a2e53=_0x4be94d['checkChild'](_0x3bded4['parent'],'blockQuote'),_0x24bab2=_0x4be94d['checkChild'](['$root','blockQuote'],_0x3bded4);return _0x5a2e53&&_0x24bab2;}(_0x2c620c,this['editor']['model']['schema']));_0x62d71c=to(_0x5ffe0,_0x5e0b29['model']);}else{const _0x12e98d=Array['from'](_0x4d876e['getSelectedBlocks']())['filter'](_0x1082f6=>oo(_0x1082f6));_0x62d71c=to(_0x12e98d,_0x5e0b29['model']);}_0x5e0b29['model']['change'](()=>{for(const _0x194f46 of _0x62d71c)_0x153ded['markBlockFormat'](_0x194f46,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x40d4b1}]});});}),_0x153ded['descriptionFactory']['registerDescriptionCallback'](_0x241261=>{const {data:_0x56fb0c}=_0x241261;if(_0x56fb0c&&'blockQuote'==_0x56fb0c['commandName']){const _0x5a6b9d=o(_0x3eb320,'ELEMENT_BLOCK_QUOTE');return _0x56fb0c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3eb320,'*Set\x20format:*\x20%0',_0x5a6b9d)}:{'type':'format','content':o(_0x3eb320,'*Remove\x20format:*\x20%0',_0x5a6b9d)};}});}}function oo(_0x257482){return'blockQuote'==_0x257482['parent']['name'];}class L extends _0x32720e{['afterInit'](){const _0x183951=this['editor'],_0x134daf=_0x183951['locale'],_0x52ca5d=_0x183951['plugins']['get']('TrackChangesEditing');_0x183951['plugins']['has']('BookmarkEditing')&&(_0x52ca5d['enableCommand']('insertBookmark'),_0x52ca5d['enableDefaultAttributesIntegration']('updateBookmark'),_0x52ca5d['registerBlockAttribute']('bookmarkId'),_0x52ca5d['descriptionFactory']['registerDescriptionCallback'](_0x57e986=>{if('insertion'!=_0x57e986['type']&&'deletion'!=_0x57e986['type']&&'attribute'!=_0x57e986['type'])return;const _0x51ab10=_0x57e986['getContainedElement']();if(null==_0x51ab10)return;if(!_0x51ab10['is']('element','bookmark'))return;const _0x12c50a=_0x51ab10['getAttribute']('bookmarkId');if('insertion'==_0x57e986['type'])return{'type':'insertion','content':o(_0x134daf,'*Insert:*\x20%0','\x22'+_0x12c50a+'\x22\x20'+o(_0x134daf,'ELEMENT_BOOKMARK'))};if('deletion'==_0x57e986['type'])return{'type':'deletion','content':o(_0x134daf,'*Remove:*\x20%0','\x22'+_0x12c50a+'\x22\x20'+o(_0x134daf,'ELEMENT_BOOKMARK'))};const {data:_0x5a18de}=_0x57e986;if(!_0x5a18de||'bookmarkId'!=_0x5a18de['key'])return;return{'type':'format','content':o(_0x134daf,'*Set\x20bookmark:*\x20%0','\x22'+_0x5a18de['newValue']+'\x22')};}));}}class J extends _0x32720e{['afterInit'](){const _0x48adb9=this['editor'];_0x48adb9['plugins']['has']('CaseChange')&&(_0x48adb9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x48adb9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x48adb9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x32720e{['afterInit'](){const _0x26c4d1=this['editor'];_0x26c4d1['commands']['get']('ckbox')&&_0x26c4d1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x32720e{['afterInit'](){const _0x52a7bb=this['editor'];if(!_0x52a7bb['plugins']['has']('CodeBlock'))return;const _0x24071c=_0x52a7bb['plugins']['get']('TrackChangesEditing'),_0x3fe9f7=_0x52a7bb['locale'],_0x3c860e=_0x52a7bb['config']['get']('codeBlock')['languages'],_0x1b0d8c=_0x52a7bb['commands']['get']('codeBlock');_0x24071c['enableCommand']('indentCodeBlock'),_0x24071c['enableCommand']('outdentCodeBlock'),_0x24071c['enableCommand']('codeBlock',(_0x4a5415,_0x1ffbc9={})=>{const _0xa9aded=_0x52a7bb['model'],_0xd0974e=_0x52a7bb['model']['document']['selection'],_0x2e14be=_0x1ffbc9&&void 0x0!==_0x1ffbc9['forceValue']?_0x1ffbc9['forceValue']:!_0x1b0d8c['value'];let _0x233e88;_0x1ffbc9['language']||(_0x1ffbc9['language']=_0x3c860e[0x0]['language']),_0x233e88=_0x2e14be?Array['from'](_0xd0974e['getSelectedBlocks']())['filter'](_0x343345=>eo(_0x343345)||function(_0x10dea1,_0x4bcee2){if(_0x10dea1['is']('rootElement')||_0x4bcee2['isLimit'](_0x10dea1))return!0x1;return _0x4bcee2['checkChild'](_0x10dea1['parent'],'codeBlock');}(_0x343345,_0xa9aded['schema'])):Array['from'](_0xd0974e['getSelectedBlocks']())['filter'](_0x425cec=>eo(_0x425cec));const _0xd43fc1=to(_0x233e88,_0xa9aded);_0xa9aded['change'](()=>{for(const _0x2537ae of _0xd43fc1)_0x24071c['markBlockFormat'](_0x2537ae,{'commandName':'codeBlock','commandParams':[{..._0x1ffbc9,'forceValue':_0x2e14be}],'formatGroupId':'blockName'});});}),(_0x24071c['descriptionFactory']['registerElementLabel']('codeBlock',_0x4039a8=>o(_0x3fe9f7,'ELEMENT_CODE_BLOCK',_0x4039a8)),_0x24071c['descriptionFactory']['registerDescriptionCallback'](_0x245fde=>{if('formatBlock'!=_0x245fde['type'])return;const _0x577f05=_0x3fe9f7['t'],{data:_0x10917e}=_0x245fde;if(!_0x10917e||'codeBlock'!=_0x10917e['commandName'])return;const _0x10e835=_0x10917e['commandParams'][0x0]['language'],_0x139316=_0x577f05(_0x3c860e['find'](_0x25910d=>_0x25910d['language']===_0x10e835)['label'])['toLowerCase']();return _0x10917e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fe9f7,'*Set\x20format:*\x20%0',o(_0x3fe9f7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x139316+')')}:{'type':'format','content':o(_0x3fe9f7,'*Remove\x20format:*\x20%0',o(_0x3fe9f7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4d3bcc){return'codeBlock'==_0x4d3bcc['name'];}class z extends _0x32720e{['afterInit'](){const _0xb21e36=this['editor'];if(!_0xb21e36['plugins']['has']('CommentsEditing'))return;_0xb21e36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3c8604,_0x46d9af,_0x41ed44){const _0x182d6f=[];for(const _0x43bed5 of _0x46d9af['getItems']())_0x43bed5['hasAttribute'](_0x3c8604)&&_0x182d6f['push'](_0x41ed44['createRangeOn'](_0x43bed5));return _0x182d6f;}function De(_0x3aafca,_0x4760a9,{showActiveMarker:_0x1692c4=!0x0}={}){const _0x1662f4=_0x3aafca['plugins']['get']('TrackChangesEditing');return(_0x4752a6,_0x132a40,_0x3c12a5)=>{if(!_0x3c12a5['consumable']['test'](_0x132a40['markerRange'],_0x4752a6['name']))return;const _0x58d65c=_0x132a40['markerRange']['getWalker'](),_0x5c1904=_0x132a40['markerRange']['start'],_0x3b439d=_0x3aafca['model']['schema'];let _0x17c446=null,_0x176047=null,_0x550106=!0x1,_0x2064db=!0x1;for(const _0x409165 of _0x58d65c){const _0x3f9f2f=_0x409165['item'];_0x550106=_0x550106||_0x3b439d['isContent'](_0x3f9f2f);const _0x1ef5ce=_0x3c12a5['mapper']['toViewElement'](_0x3f9f2f);if(_0x1ef5ce&&_0x1ef5ce['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x409165['type']&&(_0x3b439d['isBlock'](_0x3f9f2f)&&!_0x3b439d['isLimit'](_0x3f9f2f)&&(_0x3f9f2f['nextSibling']||_0x5c1904['isAtEnd']?_0x17c446&&_0x17c446['parent']==_0x3f9f2f||(_0x17c446=_0x3f9f2f,_0x57a645(_0x409165['previousPosition']),_0x2064db=!0x0):_0x176047=_0x176047||_0x409165['previousPosition']));}function _0x57a645(_0x202b3f){const {authorId:_0x10ea53}=_0x1662f4['_splitMarkerName'](_0x132a40['markerName']),_0x42d7c4=_0x3c12a5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4760a9,'data-author-id':_0x10ea53}),_0x1ca2d9=_0x3c12a5['mapper']['toViewPosition'](_0x202b3f);_0x1692c4&&_0x1662f4['activeMarkers']['includes'](_0x132a40['markerName'])&&_0x3c12a5['writer']['addClass']('ck-suggestion-marker--active',_0x42d7c4),_0x3c12a5['writer']['insert'](_0x1ca2d9,_0x42d7c4),_0x3c12a5['mapper']['bindElementToMarker'](_0x42d7c4,_0x132a40['markerName']);}_0x550106||_0x2064db||!_0x176047||_0x57a645(_0x176047);};}class K extends _0x32720e{static get['requires'](){return[_0x1c8203];}['init'](){const _0x484153=this['editor'],_0x1ab7c4=_0x484153['plugins']['get']('TrackChangesEditing');_0x1ab7c4['enableCommand']('delete');const _0xf5d41d=_0x484153['commands']['get']('deleteForward');_0x1ab7c4['enableCommand']('deleteForward',(_0x21acb2,_0x170091={})=>{const _0x4e8401=_0x484153['model']['createSelection'](_0x484153['model']['document']['selection']);_0x4e8401['isCollapsed']&&_0x484153['model']['modifySelection'](_0x4e8401,{'direction':'forward','unit':_0x170091['unit']});const _0x3cb653=_0x4e8401['getFirstRange'](),_0x30bbc7=_0x114c36['fromRange'](_0x3cb653);let _0x41e05f;_0x21acb2(_0x170091),_0x41e05f='$graveyard'==_0x30bbc7['root']['rootName']?_0x484153['model']['createRange'](_0x3cb653['start']):_0x484153['model']['createRange'](_0x30bbc7['start'],_0x30bbc7['end']),_0x30bbc7['detach'](),_0x484153['model']['enqueueChange'](_0xf5d41d['buffer']['batch'],_0x5b6ca2=>{_0xf5d41d['buffer']['lock'](),_0x5b6ca2['setSelection'](_0x5b6ca2['createRange'](_0x41e05f['end'])),_0xf5d41d['buffer']['unlock']();});}),_0x484153['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x484153,'merge'),{'priority':'high'}),_0x484153['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x162f8c,_0x22a24a,_0x2c275a)=>{_0x2c275a['options']['showSuggestionHighlights']&&De(_0x484153,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x162f8c,_0x22a24a,_0x2c275a);},{'priority':'high'}),_0x484153['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x29ab26,_0x45789f,_0x486023)=>{const _0x18ee9b=_0x486023['mapper']['markerNameToElements'](_0x45789f['markerName']);if(_0x18ee9b){for(const _0x3915f3 of _0x18ee9b)_0x3915f3['is']('uiElement')&&(_0x486023['mapper']['unbindElementFromMarkerName'](_0x3915f3,_0x45789f['markerName']),_0x486023['writer']['remove'](_0x3915f3));}},{'priority':'high'});}}class W extends _0x32720e{['afterInit'](){const _0x5925e8=this['editor'];if(!_0x5925e8['plugins']['has']('ListEditing'))return;const _0x1dabe1=_0x5925e8['locale'],_0x133edc=_0x5925e8['plugins']['get']('TrackChangesEditing'),_0x15a5fb=_0x5925e8['plugins']['has']('TodoListEditing'),_0x457492=!!_0x5925e8['config']['get']('list.multiBlock');function _0x79b00(_0x337ba8){return{'type':'format','content':''+o(_0x1dabe1,'*Set\x20format:*\x20%0',_0x337ba8)};}function _0x3c7fad(_0x35e4c5){return{'type':'format','content':''+o(_0x1dabe1,'*Remove\x20format:*\x20%0',_0x35e4c5)};}_0x133edc['enableDefaultAttributesIntegration']('numberedList'),_0x133edc['enableDefaultAttributesIntegration']('bulletedList'),_0x133edc['enableDefaultAttributesIntegration']('customNumberedList'),_0x133edc['enableDefaultAttributesIntegration']('customBulletedList'),_0x133edc['enableDefaultAttributesIntegration']('indentList'),_0x133edc['enableDefaultAttributesIntegration']('outdentList'),_0x133edc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x133edc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x133edc['registerBlockAttribute']('listItemId'),_0x133edc['registerBlockAttribute']('listType'),_0x133edc['registerBlockAttribute']('listIndent'),_0x457492&&(_0x133edc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x133edc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x15a5fb&&(_0x133edc['enableDefaultAttributesIntegration']('todoList'),_0x133edc['enableDefaultAttributesIntegration']('checkTodoList'),_0x133edc['registerBlockAttribute']('todoListChecked'),_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x325ecf=>{const {data:_0x1246e9}=_0x325ecf;if(_0x1246e9&&'todoListChecked'==_0x1246e9['key'])return{'type':'format','content':_0x1246e9['newValue']?o(_0x1dabe1,'*Check\x20item*'):o(_0x1dabe1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x248493=>{if(_0x248493['batch']['isUndo'])return!0x1;let _0x4d3b1a=!0x1;const _0x387b36=_0x133edc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45df98=>'todoListChecked'===_0x133edc['_getAttributeKey'](_0x45df98));for(const _0x3a1e4f of _0x387b36){'todo'!=_0x3a1e4f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x133edc['_findSuggestions'](_0x3a1e4f['getFirstRange'](),'attribute')['find'](_0x18a0b8=>'listType'===_0x133edc['_getAttributeKey'](_0x18a0b8['suggestion']))||(_0x248493['removeMarker'](_0x3a1e4f['getFirstMarker']()),_0x4d3b1a=!0x0));}return _0x4d3b1a;})),_0x133edc['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1dabe1,'FORMAT_INDENT'));const _0x115f0d={'type':'format','content':''};_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x4cb4d3=>{const {data:_0xc6aca6}=_0x4cb4d3;if(!_0xc6aca6||'listType'!=_0xc6aca6['key'])return;let _0x210794=_0x4cb4d3['head'];for(;_0x210794;){if(_0x210794['data']&&(('listStyle'==_0x210794['data']['key']||'listMarkerStyle'==_0x210794['data']['key'])&&(_0x210794['data']['newValue']&&'default'!=_0x210794['data']['newValue']||'default'!=_0x210794['data']['oldValue']&&!_0xc6aca6['newValue'])||!_0x457492&&_0x210794['data']['key']==m))return _0x115f0d;_0x210794=_0x210794['next'];}if(null==_0xc6aca6['newValue'])switch(_0xc6aca6['oldValue']){case'bulleted':return _0x3c7fad(o(_0x1dabe1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c7fad(o(_0x1dabe1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c7fad(o(_0x1dabe1,'ELEMENT_TODO_LIST'));}switch(_0xc6aca6['newValue']){case'bulleted':return _0x79b00(o(_0x1dabe1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x79b00(o(_0x1dabe1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x79b00(o(_0x1dabe1,'ELEMENT_TODO_LIST'));}}),_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x3dc98f=>{const {data:_0xce830e}=_0x3dc98f;if(_0xce830e&&'listIndent'==_0xce830e['key'])return null==_0xce830e['newValue']||null==_0xce830e['oldValue']&&0x0==_0xce830e['newValue']?_0x115f0d:void 0x0;}),_0x133edc['descriptionFactory']['registerDescriptionCallback'](_0x1dea90=>{if('attribute'!=_0x1dea90['type'])return;const {data:_0x259443}=_0x1dea90;if(!_0x259443||'listItemId'!=_0x259443['key'])return;const _0x51e980=Te(_0x1dea90);return'newValue'==_0x51e980?{'type':'format','content':o(_0x1dabe1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x51e980?{'type':'format','content':o(_0x1dabe1,'*Split:*\x20list\x20item')}:_0x115f0d;}),_0x5925e8['model']['document']['registerPostFixer'](_0x44e5d3=>this['listItemIdFixer'](_0x44e5d3)),_0x5925e8['model']['document']['registerPostFixer'](_0x5eb459=>this['noTrackChangesFixer'](_0x5eb459)),_0x5925e8['model']['document']['on']('change:data',(_0x4e0e5d,_0x1959f2)=>{if(_0x1959f2['isUndo']||!_0x1959f2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x35a2f3){if(_0x35a2f3['batch']['isUndo']||!_0x35a2f3['batch']['isLocal'])return!0x1;let _0x399fa1=!0x1;const _0x522876=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49e142=>_0x49e142['data']&&'listItemId'==_0x49e142['data']['key'])['filter'](_0x549963=>_0x549963['data']['newValue']&&_0x549963['data']['oldValue']);for(const _0x1be129 of _0x522876)Te(_0x1be129)||(_0x35a2f3['removeMarker'](_0x1be129['getFirstMarker']()),_0x399fa1=!0x0);return _0x399fa1;}['noTrackChangesFixer'](_0x529310){if(_0x529310['batch']['isUndo']||!_0x529310['batch']['isLocal'])return!0x1;const _0x5b5aea=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5b5aea['trackChangesCommand']['value'])return!0x1;let _0x1db6ad=!0x1;const _0xfe78bc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2288a5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x7f3b4a=>'attribute'==_0x7f3b4a['type'])['filter'](_0x6fe85d=>_0xfe78bc['includes'](_0x6fe85d['attributeKey']));if(0x0==_0x2288a5['length'])return _0x1db6ad;for(const _0x3ceb84 of _0x2288a5){const _0x44bbe6=_0x5b5aea['_findSuggestions'](_0x3ceb84['range'],'attribute')['filter'](_0x1e403f=>!_0x1e403f['meta']['isNextTo'])['map'](_0x3611cf=>_0x3611cf['suggestion'])['filter'](_0x3a6ab8=>{const _0xf1236=_0x5b5aea['_getAttributeKey'](_0x3a6ab8);return _0xfe78bc['includes'](_0xf1236);});if(_0x44bbe6['length']){for(const _0x232808 of _0x44bbe6)_0x529310['removeMarker'](_0x232808['getFirstMarker']());_0x1db6ad=!0x0;}}return _0x1db6ad;}['assureChains'](){const _0x5bc8de=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb39705=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x588de8;const _0x58957b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4b8091=>{if(_0x4b8091['data']['oldRange']||!_0x4b8091['data']['newRange'])return null;if(!_0x4b8091['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5f1d79}=_0x5bc8de['_splitMarkerName'](_0x4b8091['name']);if(!_0x5bc8de['hasSuggestion'](_0x5f1d79))return null;const _0x435e27=_0x5bc8de['getSuggestion'](_0x5f1d79);return _0xb39705['includes'](_0x435e27['data']['key']);})['map'](_0xf078e2=>{const {id:_0x17d103}=_0x5bc8de['_splitMarkerName'](_0xf078e2['name']),_0x5425d2=_0x5bc8de['getSuggestion'](_0x17d103);return _0x588de8=_0x5425d2['attributes']['groupId'],_0x5425d2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x58957b['size'])return;const _0x190e19=_0x5bc8de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36317b=>'attribute'==_0x36317b['type']&&_0x36317b['data']&&_0xb39705['includes'](_0x36317b['data']['key'])&&_0x36317b['attributes']['groupId']!=_0x588de8)['map'](_0x5eb7c7=>({'listItem':_0x5eb7c7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5eb7c7['attributes']['groupId']})),_0x2dd4d8=new Set();for(const {groupId:_0x18b4a5,listItem:_0x32cce8}of _0x190e19)_0x58957b['has'](_0x32cce8)&&_0x2dd4d8['add'](_0x18b4a5);for(const _0x2c16fc of _0x5bc8de['getSuggestions']())_0x2dd4d8['has'](_0x2c16fc['attributes']['groupId'])&&_0x2c16fc['setAttribute']('groupId',_0x588de8);}['_supportLegacySuggestions'](){const _0x3ea0cf=this['editor'],_0x8189d4=_0x3ea0cf['locale'],_0x4061ae=_0x3ea0cf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4061ae['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1fed0b,_0x460499){const _0xa4ec83=[];for(let _0x3d491e of _0x1fed0b)_0x3d491e['start']['nodeAfter']===_0x3d491e['end']['parent']&&(_0x3d491e=_0x3ea0cf['model']['createRange'](_0x3ea0cf['model']['createPositionAt'](_0x3d491e['start']['nodeAfter'],0x0))),_0xa4ec83['push'](_0x3d491e);_0x3ea0cf['model']['change'](_0x2d776c=>{const _0x6d3712=_0x3ea0cf['model']['document']['selection'],_0x5be182=Array['from'](_0x6d3712['getRanges']())['map'](_0x577482=>_0x114c36['fromRange'](_0x577482));_0x2d776c['setSelection'](_0xa4ec83),_0x3ea0cf['commands']['get'](_0x460499['commandName'])['refresh'](),_0x460499['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3ea0cf['execute'](_0x460499['commandName'],..._0x460499['commandParams']),_0x2d776c['setSelection'](_0x5be182);for(const _0x8ee2fe of _0x5be182)_0x8ee2fe['detach']();});}),_0x4061ae['descriptionFactory']['registerElementLabel'](function(_0x5933bd){const _0x5225a1=!_0x3ea0cf['model']['schema']['isObject'](_0x5933bd),_0x22ee79=_0x5933bd['previousSibling'],_0x1a8399=_0x5933bd['nextSibling'],_0xb2221d=_0x5933bd['getAttribute']('listItemId'),_0x399951=!_0x22ee79||_0x22ee79['getAttribute']('listItemId')!==_0xb2221d,_0x1001a0=!_0x1a8399||_0x1a8399['getAttribute']('listItemId')!==_0xb2221d;return _0x5225a1&&Boolean(_0xb2221d)&&_0x399951&&_0x1001a0;},_0x412116=>o(_0x8189d4,'ELEMENT_LIST_ITEM',_0x412116));}['_registerLegacyDescription'](){const _0x24e3d8=this['editor'],_0x326752=_0x24e3d8['locale'];function _0x4d05bc(_0x227b16){const _0x17bf1d=_0x24e3d8['commands']['get']('bulletedList')['value'],_0x1919cc=_0x24e3d8['commands']['get']('numberedList')['value'];return'numberedList'===_0x227b16?_0x17bf1d:_0x1919cc;}_0x24e3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x495302){if('formatBlock'!=_0x495302['type'])return;const {data:_0x1c2ff2}=_0x495302;if(!_0x1c2ff2)return;let _0x49f5be,_0x2f1c9b,_0x12d994,_0x3af161;switch(_0x1c2ff2['commandName']){case'bulletedList':_0x12d994=_0x1c2ff2['commandParams'][0x0]['forceValue'],_0x3af161=_0x4d05bc(_0x1c2ff2['commandName']),_0x49f5be=_0x12d994?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af161&&_0x24e3d8['config']['get']('list.multiBlock')||(_0x49f5be='*Change\x20to:*\x20%0'),_0x2f1c9b={'type':'format','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x12d994=_0x1c2ff2['commandParams'][0x0]['forceValue'],_0x3af161=_0x4d05bc(_0x1c2ff2['commandName']),_0x49f5be=_0x12d994?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af161&&_0x24e3d8['config']['get']('list.multiBlock')||(_0x49f5be='*Change\x20to:*\x20%0'),_0x2f1c9b={'type':'format','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x49f5be='*Indent:*\x20%0',_0x2f1c9b={'type':'format','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x49f5be=function(_0x16f503){const _0x573295=_0x16f503['getFirstRange']();let _0x1be105=_0x573295['start']['nodeAfter'];for(;_0x1be105&&_0x573295['containsItem'](_0x1be105);){if(_0x1be105['getAttribute']('listIndent')>0x0)return!0x1;_0x1be105=_0x1be105['nextSibling'];}return!0x0;}(_0x495302)?o(_0x326752,'*Format:*\x20remove\x20from\x20%0',o(_0x326752,function(_0x4a988d){return'ELEMENT_'+_0x4a988d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x495302))):o(_0x326752,'*Outdent:*\x20%0',o(_0x326752,'ELEMENT_LIST_ITEM')),_0x2f1c9b={'type':'format','content':_0x49f5be};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1c2ff2['multipleBlocks']&&(_0x49f5be='*Merge:*\x20%0',_0x2f1c9b={'type':'deletion','content':o(_0x326752,_0x49f5be,o(_0x326752,'ELEMENT_LIST_ITEM'))});}return _0x2f1c9b;});}}function Te(_0x15fa8d){let _0x5f11a8=_0x15fa8d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5f11a8;){const _0xa7017e=_0x5f11a8['getAttribute']('listItemId');if(!_0xa7017e)return!0x1;if(_0xa7017e==_0x15fa8d['data']['newValue'])return'newValue';if(_0xa7017e==_0x15fa8d['data']['oldValue'])return'oldValue';_0x5f11a8=_0x5f11a8['previousSibling'];}return!0x1;}class Se extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x224ed4=this['editor']['config']['get']('list.properties'),_0x179c6c=this['editor']['plugins']['get']('TrackChangesEditing');_0x224ed4['styles']&&(_0x179c6c['enableDefaultAttributesIntegration']('listStyle'),_0x179c6c['registerBlockAttribute']('listStyle')),_0x224ed4['reversed']&&(_0x179c6c['enableDefaultAttributesIntegration']('listReversed'),_0x179c6c['registerBlockAttribute']('listReversed')),_0x224ed4['startIndex']&&(_0x179c6c['enableDefaultAttributesIntegration']('listStart'),_0x179c6c['registerBlockAttribute']('listStart'));const _0x47b8c1={'type':'format','content':''};_0x179c6c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4d63e9=this['editor']['locale'];_0x179c6c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4d63e9,'FORMAT_LIST_REVERSED')),_0x179c6c['descriptionFactory']['registerDescriptionCallback'](_0x14a7a1=>{const {data:_0x4d9996}=_0x14a7a1;if(_0x4d9996&&'listReversed'==_0x4d9996['key'])return null==_0x4d9996['newValue']||0x0==_0x4d9996['newValue']&&null==_0x4d9996['oldValue']?_0x47b8c1:void 0x0;}),_0x179c6c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4d63e9,'FORMAT_LIST_START')),_0x179c6c['descriptionFactory']['registerDescriptionCallback'](_0x12472f=>{const {data:_0x3bc47a}=_0x12472f;if(_0x3bc47a&&'listStart'==_0x3bc47a['key'])return null==_0x3bc47a['newValue']||0x1==_0x3bc47a['newValue']&&null==_0x3bc47a['oldValue']?_0x47b8c1:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x40de48=>{if(_0x40de48['batch']['isUndo'])return!0x1;let _0x540ffb=!0x1;const _0x2c75cd=_0x179c6c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x489f3f=>{const _0x4d2e9f=_0x179c6c['_getAttributeKey'](_0x489f3f);return'listStart'==_0x4d2e9f||'listReversed'==_0x4d2e9f;});for(const _0x11f68d of _0x2c75cd){const _0x23f5b9=_0x11f68d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x23f5b9||'customNumbered'==_0x23f5b9)continue;_0x179c6c['_findSuggestions'](_0x11f68d['getFirstRange'](),'attribute')['find'](_0x5dcd69=>'listType'==_0x179c6c['_getAttributeKey'](_0x5dcd69['suggestion']))||(_0x40de48['removeMarker'](_0x11f68d['getFirstMarker']()),_0x540ffb=!0x0);}return _0x540ffb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x27acbe){const _0x45d765=this['editor']['locale'],{data:_0x46127f}=_0x27acbe,_0x21aef4={'type':'format','content':''};if(!_0x46127f||'listStyle'!=_0x46127f['key'])return;if(!_0x46127f['oldValue'])return'default'==_0x46127f['newValue']?_0x21aef4:{'type':'format','content':''+o(_0x45d765,'*Set\x20format:*\x20%0',o(_0x45d765,this['_getTranslationKeyForListStyle'](_0x46127f['newValue'])))};if(!_0x46127f['newValue']){if('default'==_0x46127f['oldValue'])return _0x21aef4;let _0x5b0665=_0x27acbe['head'];for(;_0x5b0665;){if(_0x5b0665['data']&&'listType'==_0x5b0665['data']['key']&&_0x5b0665['data']['newValue'])return _0x21aef4;_0x5b0665=_0x5b0665['next'];}return{'type':'format','content':''+o(_0x45d765,'*Remove\x20format:*\x20%0',o(_0x45d765,this['_getTranslationKeyForListStyle'](_0x46127f['oldValue'])))};}if('default'!=_0x46127f['newValue'])return{'type':'format','content':''+o(_0x45d765,'*Set\x20format:*\x20%0',o(_0x45d765,this['_getTranslationKeyForListStyle'](_0x46127f['newValue'])))};let _0x51d5e4=_0x27acbe['head'];for(;_0x51d5e4;){if(_0x51d5e4['data']&&'listType'==_0x51d5e4['data']['key']&&_0x51d5e4['data']['newValue']&&_0x51d5e4['data']['oldValue'])return _0x21aef4;_0x51d5e4=_0x51d5e4['next'];}return{'type':'format','content':o(_0x45d765,'*Set\x20format:*\x20%0',o(_0x45d765,'ELEMENT_'+_0x27acbe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5440c5=this['editor'],_0x5a3e73=_0x5440c5['locale'];_0x5440c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a624=>{if('formatBlock'!=_0x19a624['type'])return;const {data:_0x3be347}=_0x19a624;if(!_0x3be347)return;let _0x4c061a,_0x4fe95b;switch(_0x3be347['commandName']){case'listStyle':_0x4c061a='*Change\x20to:*\x20%0',_0x4fe95b={'type':'format','content':o(_0x5a3e73,_0x4c061a,o(_0x5a3e73,this['_getTranslationKeyForListStyle'](_0x3be347['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c061a=_0x3be347['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4fe95b={'type':'format','content':o(_0x5a3e73,_0x4c061a)};break;case'listStart':_0x4c061a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4fe95b={'type':'format','content':o(_0x5a3e73,_0x4c061a,_0x3be347['commandParams'][0x0]['startIndex'])};}return _0x4fe95b;});}['_getTranslationKeyForListStyle'](_0x45b62a){return'ELEMENT_'+function(_0x539611){if(_e['includes'](_0x539611))return'bulleted';if(Re['includes'](_0x539611))return'numbered';return null;}(_0x45b62a)['toUpperCase']()+'_LIST_'+_0x45b62a['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x32720e{static get['requires'](){return[_0x21923b];}['init'](){const _0xd976b=this['editor'],_0x290db1=_0xd976b['plugins']['get']('TrackChangesEditing'),_0x5d61c4=_0xd976b['commands']['get']('enter');_0x290db1['enableCommand']('enter',()=>{_0xd976b['model']['change'](_0x20a4c6=>{const _0x3aaf82=_0xd976b['model']['document']['selection'],_0x4f2aa2=_0x3aaf82['getFirstPosition'](),_0x5ac519=_0x114c36['fromRange'](_0x3aaf82['getFirstRange']());if(_0x5d61c4['enterBlock'](_0x20a4c6)){const _0xefaa5=_0xd976b['model']['createPositionAt'](_0x4f2aa2['parent']['nextSibling'],0x0),_0x5ba3d5=_0x20a4c6['createRange'](_0x4f2aa2,_0xefaa5);_0x290db1['markInsertion'](_0x5ba3d5);}else _0x20a4c6['setSelection'](_0x20a4c6['createRange'](_0x5ac519['end']));_0x5ac519['detach'](),_0x5d61c4['fire']('afterExecute',{'writer':_0x20a4c6});});}),_0xd976b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xd976b,'split'),{'priority':'high'}),_0xd976b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x266410,_0x45b2e6,_0x2b07a1)=>{const _0x195322=_0x2b07a1['mapper']['markerNameToElements'](_0x45b2e6['markerName']);if(_0x195322){for(const _0x23c362 of _0x195322)_0x23c362['hasClass']('ck-suggestion-marker-split')&&(_0x2b07a1['mapper']['unbindElementFromMarkerName'](_0x23c362,_0x45b2e6['markerName']),_0x2b07a1['writer']['remove'](_0x23c362));}},{'priority':'high'}),_0xd976b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29069b,_0x293567,_0x4dcd7b)=>{_0x4dcd7b['options']['showSuggestionHighlights']&&De(_0xd976b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x29069b,_0x293567,_0x4dcd7b);},{'priority':'high'});}}class Y extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x87f39a=this['editor']['plugins']['get']('TrackChangesEditing');_0x87f39a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x87f39a['enableCommand']('findNext'),_0x87f39a['enableCommand']('findPrevious'),_0x87f39a['enableCommand']('replace'),_0x87f39a['enableCommand']('replaceAll');}['handleFindCommand'](_0x2eb909,_0x39fff3,_0x2a7005={}){const _0x1cd897=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2eb909(_0x429179=>{let _0x163607=('string'==typeof _0x39fff3?_0x1cd897['findByTextCallback'](_0x39fff3,_0x2a7005):_0x39fff3)(_0x429179);Array['isArray'](_0x163607)&&(_0x163607={'results':_0x163607,'searchText':'string'==typeof _0x39fff3?_0x39fff3:''});const _0x1b728a=_0x163607['results']['filter'](_0x459e0a=>!0x1===this['_isInDeletionRange'](_0x459e0a,_0x429179['item']));return{..._0x163607,'results':_0x1b728a};},_0x2a7005);}['_isInDeletionRange'](_0xcaae83,_0x15f75c){const _0x34baa7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15f75c,_0xcaae83['start']),this['editor']['model']['createPositionAt'](_0x15f75c,_0xcaae83['end']));for(const _0x6363b6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x34baa7['getIntersection'](_0x6363b6['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x32720e{['afterInit'](){const _0x5e39e7=this['editor']['locale'],_0x25263d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5067f0,commandName:_0x50ad3d}of ro)this['editor']['plugins']['has'](_0x5067f0)&&(_0x25263d['enableDefaultAttributesIntegration'](_0x50ad3d),_0x25263d['registerInlineAttribute'](_0x50ad3d));_0x25263d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5e39e7,'FORMAT_FONT_SIZE')),_0x25263d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5e39e7,'FORMAT_FONT_FAMILY')),_0x25263d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5e39e7,'FORMAT_FONT_COLOR')),_0x25263d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5e39e7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1471d7=this['editor'],_0x283dc0=_0x1471d7['locale'];_0x1471d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ff37f=>{const _0x3113b3=_0x283dc0['t'];if('formatInline'!=_0x2ff37f['type'])return;const {data:_0x3dff63}=_0x2ff37f;if(null!=_0x3dff63){if('fontSize'==_0x3dff63['commandName']){const _0x58acd7=_0x3dff63['commandParams'][0x0]['value'];if(_0x58acd7){const _0x3eda43=_0x3113b3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x219291=>_0x219291['model']==_0x58acd7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20size:*\x20%0',_0x3eda43)};}return{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3dff63['commandName']){const _0x3df386=_0x3dff63['commandParams'][0x0]['value'];return _0x3df386?{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20family:*\x20%0',_0x3df386)}:{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3dff63['commandName']){const _0x3092ec=_0x3dff63['commandParams'][0x0]['value'];if(_0x3092ec){const _0x2309b5=_0x53def7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x18e564=>_0x18e564['model']==_0x3092ec);let _0x1dd2c2=_0x3092ec,_0x1b42dc='';return _0x2309b5&&(_0x1dd2c2=_0x2309b5['label'],_0x1b42dc=_0x3113b3(_0x1dd2c2)['toLowerCase']()),{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20color:*\x20%0',_0x1b42dc)['trim'](),'color':{'value':_0x3092ec,'title':_0x1b42dc||_0x1dd2c2}};}return{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3dff63['commandName']){const _0x508cf4=_0x3dff63['commandParams'][0x0]['value'];if(_0x508cf4){const _0x3eca2b=_0x53def7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x41addb=>_0x41addb['model']==_0x508cf4);let _0x4fcc78=_0x508cf4,_0x279542='';return _0x3eca2b&&(_0x4fcc78=_0x3eca2b['label'],_0x279542=_0x3113b3(_0x4fcc78)['toLowerCase']()),{'type':'format','content':o(_0x283dc0,'*Set\x20font\x20background\x20color:*\x20%0',_0x279542)['trim'](),'color':{'value':_0x508cf4,'title':_0x279542||_0x4fcc78}};}return{'type':'format','content':o(_0x283dc0,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x32720e{['afterInit'](){const _0x1b122e=this['editor'],_0x410a2a=_0x1b122e['plugins']['get']('TrackChangesEditing'),_0x1b14e2=_0x1b122e['commands']['get']('copyFormat'),_0x35c5af=_0x1b122e['commands']['get']('pasteFormat');_0x1b14e2&&_0x35c5af&&(_0x410a2a['enableDefaultAttributesIntegration']('pasteFormat'),_0x410a2a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3b6006=this['editor'],_0x1342be=_0x3b6006['locale'];_0x3b6006['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xccbf34=>{if('formatBlock'!=_0xccbf34['type']&&'formatInline'!=_0xccbf34['type'])return;const {data:_0x509a55}=_0xccbf34;if(_0x509a55&&'pasteFormat'===_0x509a55['commandName']){const _0x423972=[],_0x5e5581=_0x509a55['commandParams'][0x0];for(const [_0x5e6980,_0x44ac03]of Object['entries'](_0x5e5581))_0x423972['push'](so(_0x3b6006,_0x5e6980,_0x44ac03));return _0x423972['length']?{'type':'format','content':o(_0x1342be,'*Set\x20format\x20to:*\x20%0',_0x423972['join'](',\x20'))}:{'type':'format','content':o(_0x1342be,'*Remove\x20all\x20formatting*')};}});}}function so(_0x12670f,_0x220945,_0x4d6aef){const _0x525bc0=_0x12670f['locale']['t'],_0x25c84e=_0x220945['split'](/(?=[A-Z])/)['join']('\x20'),_0x93b79=_0x525bc0(_0x25c84e['charAt'](0x0)['toUpperCase']()+_0x25c84e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4d6aef)return _0x93b79;if('fontColor'===_0x220945||'fontBackgroundColor'===_0x220945){const _0x1dd2d4=_0x53def7(_0x12670f['config']['get']('fontColor.colors'))['find'](_0x38b14d=>_0x38b14d['model']==_0x4d6aef);return _0x93b79+'\x20('+(_0x1dd2d4?_0x525bc0(_0x1dd2d4['label'])['toLowerCase']():_0x4d6aef)+')';}if('fontSize'===_0x220945&&isNaN(parseFloat(_0x4d6aef))){const _0xd42c49=_0x12670f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x12670f['config']['get']('fontSize.options'))['find'](_0x4fdfe3=>_0x4fdfe3['model']==_0x4d6aef);return _0x93b79+'\x20('+(_0xd42c49?_0x525bc0(_0xd42c49['title'])['toLowerCase']():_0x4d6aef)+')';}return _0x93b79+'\x20('+_0x4d6aef+')';}class nt extends _0x32720e{['_headingOptions'];['afterInit'](){const _0x12762c=this['editor'];if(!_0x12762c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x12762c['config']['get']('heading.options');const _0x35761a=_0x12762c['locale'],_0x5a3e71=_0x12762c['plugins']['get']('TrackChangesEditing');_0x5a3e71['enableDefaultAttributesIntegration']('heading');for(const _0x563ed4 of this['_headingOptions'])'paragraph'!=_0x563ed4['model']&&_0x5a3e71['descriptionFactory']['registerElementLabel'](_0x563ed4['model'],_0x17c9c2=>{const _0x195d2a=this['_getHeadingLevel'](_0x563ed4['model']);return null!==_0x195d2a?_0x56e85a(_0x17c9c2,_0x195d2a):_0x541823(_0x17c9c2,_0x563ed4['title']);});function _0x56e85a(_0x1cbd04,_0x1af83c){return o(_0x35761a,'ELEMENT_HEADING',[_0x1cbd04,_0x1af83c]);}function _0x541823(_0x263895,_0x476987){return o(_0x35761a,'ELEMENT_HEADING_CUSTOM',[_0x263895,_0x476987]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a3f38=this['editor'],_0x50cc1a=_0x5a3f38['locale'];function _0x39923c(_0x351844,_0xa0998){return o(_0x50cc1a,'ELEMENT_HEADING_CUSTOM',[_0x351844,_0xa0998]);}_0x5a3f38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31c8bf=>{if('formatBlock'!=_0x31c8bf['type'])return;const {data:_0x200c41}=_0x31c8bf;if(_0x200c41&&'heading'==_0x200c41['commandName']){const _0x21270c=_0x200c41['commandParams'][0x0]['value'],_0x57bf4c=this['_getHeadingLevel'](_0x21270c);if(null!==_0x57bf4c)return{'type':'format','content':o(_0x50cc1a,'*Change\x20to:*\x20%0',(_0x5a6e96=0x1,_0x26272f=_0x57bf4c,o(_0x50cc1a,'ELEMENT_HEADING',[_0x5a6e96,_0x26272f])))};const _0x434d5c=this['_headingOptions']['find'](_0xb9523d=>_0xb9523d['model']===_0x21270c)['title'];return{'type':'format','content':o(_0x50cc1a,'*Change\x20to:*\x20%0',_0x39923c(0x1,_0x434d5c))};}var _0x5a6e96,_0x26272f;});}['_getHeadingLevel'](_0x3995df){const _0x5aeec=_0x3995df['match'](/^heading(\d+)/);if(_0x5aeec)return _0x5aeec[0x1];const _0x4a4877=this['_headingOptions']?.['find'](_0x7a0bdc=>_0x7a0bdc['model']==_0x3995df);if(_0x4a4877&&_0x4a4877['view']){const _0xcf038f=_0x4a4877['view'],_0x176f32=(_0xcf038f['name']??_0xcf038f)['match'](/^h(\d+)/);if(_0x176f32)return _0x176f32[0x1];}return null;}}class it extends _0x32720e{['afterInit'](){const _0xe7dd09=this['editor'];if(!_0xe7dd09['plugins']['has']('HighlightEditing'))return;const _0x242379=_0xe7dd09['plugins']['get']('TrackChangesEditing'),_0x16933a=_0xe7dd09['locale'];_0x242379['enableDefaultAttributesIntegration']('highlight'),_0x242379['registerInlineAttribute']('highlight'),_0x242379['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x16933a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27a273=this['editor'],_0xf9a1d2=_0x27a273['locale'];_0x27a273['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19b7c7=>{if('formatInline'!=_0x19b7c7['type'])return;const {data:_0x22ab87}=_0x19b7c7;if(_0x22ab87&&'highlight'==_0x22ab87['commandName']){const _0x275a44=_0xf9a1d2['t'],_0x1837c8=_0x22ab87['commandParams'][0x0]['value'];if(_0x1837c8){const _0xf1729d=_0x27a273['config']['get']('highlight.options')['find'](_0x23c185=>_0x23c185['model']==_0x1837c8),_0x36cf87=_0x275a44(_0xf1729d['title'])['toLowerCase']();return{'type':'format','content':o(_0xf9a1d2,'*Set\x20highlight:*\x20%0',_0x36cf87),'color':{'value':_0xf1729d['color'],'title':_0xf1729d['title']}};}return{'type':'format','content':o(_0xf9a1d2,'*Remove\x20highlight*',o(_0xf9a1d2,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x32720e{['afterInit'](){const _0x40e2c6=this['editor'];if(!_0x40e2c6['plugins']['has']('HorizontalLineEditing'))return;_0x40e2c6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x155b92=_0x40e2c6['plugins']['get']('TrackChangesEditing'),_0x256224=_0x40e2c6['locale'];_0x155b92['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d1e56=>o(_0x256224,'ELEMENT_HORIZONTAL_LINE',_0x4d1e56)),_0x40e2c6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x17b5d,{writer:_0x39300e,options:_0x5dd08d})=>{if(!_0x5dd08d['showSuggestionHighlights'])return null;const _0x3ce4ae=_0x39300e['createContainerElement']('div'),_0x352e3e=_0x39300e['createEmptyElement']('hr');return _0x39300e['addClass']('ck-horizontal-line',_0x3ce4ae),_0x39300e['insert'](_0x39300e['createPositionAt'](_0x3ce4ae,0x0),_0x352e3e),_0x3ce4ae;},'converterPriority':'high'});}}class st extends _0x32720e{['afterInit'](){const _0x408f0b=this['editor'];if(!_0x408f0b['plugins']['has']('HtmlEmbed'))return;const _0x4671ac=_0x408f0b['plugins']['get']('TrackChangesEditing'),_0x48f42=_0x408f0b['locale'];_0x4671ac['descriptionFactory']['registerElementLabel']('rawHtml',_0x44669c=>o(_0x48f42,'ELEMENT_HTML_EMBED',_0x44669c)),_0x4671ac['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4671ac['registerBlockAttribute']('value'),_0x4671ac['descriptionFactory']['registerDescriptionCallback'](_0x5eae0d=>{if('attribute'!=_0x5eae0d['type'])return;const {data:_0x59069d}=_0x5eae0d;if(_0x59069d&&'value'==_0x59069d['key']&&_0x5eae0d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x237241=o(_0x48f42,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x48f42,'*Change\x20%0\x20content*',_0x237241)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29daa9=this['editor'],_0x236124=_0x29daa9['locale'];_0x29daa9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5457c0=>{if('formatBlock'!=_0x5457c0['type'])return;const {data:_0x310b36}=_0x5457c0;if(_0x310b36&&'htmlEmbed'==_0x310b36['commandName']){const _0x3ec2e4=o(_0x236124,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x236124,'*Change\x20%0\x20content*',_0x3ec2e4)};}});}}class ot extends _0x32720e{['afterInit'](){const _0x30ec10=this['editor'];if(!_0x30ec10['plugins']['has']('ImageEditing'))return;const _0x4d9433=_0x30ec10['plugins']['get']('TrackChangesEditing'),_0x41e042=_0x30ec10['plugins']['get']('ImageUtils'),_0x3d798d=_0x30ec10['locale'];_0x4d9433['enableCommand']('insertImage'),_0x4d9433['descriptionFactory']['registerElementLabel']('imageBlock',_0x205e36=>o(_0x3d798d,'ELEMENT_IMAGE',_0x205e36)),_0x4d9433['descriptionFactory']['registerElementLabel']('imageInline',_0x49bea5=>o(_0x3d798d,'ELEMENT_INLINE_IMAGE',_0x49bea5)),_0x4d9433['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3d798d,'ELEMENT_CAPTION')),_0x30ec10['plugins']['has']('ImageUploadEditing')&&_0x4d9433['enableCommand']('uploadImage'),_0x30ec10['plugins']['has']('ImageBlockEditing')&&_0x30ec10['plugins']['has']('ImageInlineEditing')&&(_0x4d9433['enableCommand']('imageTypeInline',(_0x26d3ee,_0x51ccb6)=>{const _0x4764c1=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']);_0x30ec10['model']['change'](()=>{_0x4d9433['markBlockFormat'](_0x4764c1,{'commandName':'imageTypeInline','commandParams':[_0x51ccb6]},[],'convertBlockImageToInline');});}),_0x4d9433['enableCommand']('imageTypeBlock',(_0x4fb232,_0xdf62a6)=>{_0x30ec10['model']['change'](_0x16c9ed=>{let _0x355af1=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0xc32198=_0x16c9ed['createRangeOn'](_0x355af1);const _0x318e04=_0xc42979['fromPosition'](_0xc32198['start'],'toPrevious'),_0x59bef0=_0xc42979['fromPosition'](_0xc32198['end'],'toNext');_0x4d9433['forceDefaultExecution'](()=>_0x4fb232(_0xdf62a6)),_0x355af1=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0xc32198=_0x16c9ed['createRangeOn'](_0x355af1);const _0x1f77ba=_0x16c9ed['createRange'](_0x318e04,_0x59bef0);_0x318e04['detach'](),_0x59bef0['detach'](),_0x4d9433['markBlockFormat'](_0x355af1,{'commandName':'imageTypeInline','commandParams':[_0xdf62a6]},[],'convertInlineImageToBlock'),_0x1f77ba['start']['isBefore'](_0xc32198['start'])&&_0x4d9433['markInsertion'](_0x16c9ed['createRange'](_0x1f77ba['start'],_0xc32198['start']),'convertInlineImageToBlock'),_0xc32198['end']['isBefore'](_0x1f77ba['end'])&&_0x4d9433['markInsertion'](_0x16c9ed['createRange'](_0xc32198['end'],_0x1f77ba['end']),'convertInlineImageToBlock');});}),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4d9433['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5139e3])=>{const _0x13f6ec=_0x4d9433['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x53ce9f=_0x5139e3['start'],_0x1773cb=_0x5139e3['end'];const _0x1f6feb=_0x30ec10['model']['schema']['getNearestSelectionRange'](_0x53ce9f,'backward'),_0x31be9c=_0x30ec10['model']['schema']['getNearestSelectionRange'](_0x1773cb,'forward');_0x1f6feb['isCollapsed']&&(_0x53ce9f=_0x1f6feb['start']),_0x31be9c['isCollapsed']&&(_0x1773cb=_0x31be9c['end']),_0x13f6ec([_0x30ec10['model']['createRange'](_0x53ce9f,_0x1773cb)]);}),_0x4d9433['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x13a3bc),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x13a3bc)),_0x30ec10['plugins']['has']('ImageCaptionEditing')&&(_0x4d9433['enableCommand']('toggleImageCaption',(_0x3aaf63,_0x18db87)=>{const _0x26e324=_0x30ec10['plugins']['get']('ImageCaptionUtils');let _0x4f6554=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0x128e9b=_0x26e324['getCaptionFromImageModelElement'](_0x4f6554);_0x30ec10['model']['change'](()=>{if(_0x128e9b)return void _0x4d9433['markDeletion'](_0x30ec10['model']['createRangeOn'](_0x128e9b));const _0x293d1c=_0x41e042['isBlockImage'](_0x4f6554);_0x3aaf63(_0x18db87),_0x4f6554=_0x41e042['getClosestSelectedImageElement'](_0x30ec10['model']['document']['selection']),_0x128e9b=_0x26e324['getCaptionFromImageModelElement'](_0x4f6554),_0x4d9433['markInsertion'](_0x30ec10['model']['createRangeOn'](_0x128e9b),_0x293d1c?null:'imageCaption');});}),_0x4d9433['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x13a3bc));const _0x3f725a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x392423(_0xad580f,_0x4be5d2){const _0x5345fa=_0x3f725a['findIndex'](({type:_0x3e5b80,subType:_0x49ec7d})=>_0xad580f['type']==_0x3e5b80&&_0xad580f['subType']==_0x49ec7d),_0x2c5dde=_0x3f725a['findIndex'](({type:_0xbc1951,subType:_0x1f797a})=>_0x4be5d2['type']==_0xbc1951&&_0x4be5d2['subType']==_0x1f797a);if(_0x5345fa<0x0||_0x2c5dde<0x0)return!0x1;const _0x4dbcea=_0xad580f['getFirstRange'](),_0x5ca1fc=_0x4be5d2['getFirstRange']();if((0x0==_0x5345fa||0x1==_0x5345fa)&&0x2==_0x2c5dde&&_0x4dbcea['isIntersecting'](_0x5ca1fc))return!0x0;if(0x2==_0x5345fa&&0x3==_0x2c5dde){const _0x31da8f=_0x4d9433['_findSuggestions'](_0x4dbcea,'insertion')['filter'](({suggestion:_0x37b921,meta:_0x22380d})=>_0x22380d['isOwn']&&'convertInlineImageToBlock'==_0x37b921['subType']);if(_0x31da8f['length']>0x1&&_0x5ca1fc['end']['isEqual'](_0x4dbcea['start']))return!0x0;if(0x1==_0x31da8f['length']&&(_0x4dbcea['start']['isEqual'](_0x5ca1fc['end'])||_0x4dbcea['end']['isEqual'](_0x5ca1fc['start'])))return!0x0;}if(0x3==_0x5345fa&&0x3==_0x2c5dde&&_0x4dbcea['start']['isBefore'](_0x5ca1fc['start'])){const _0x5ec6ac=_0x4dbcea['end']['nodeAfter'],_0x287209=_0x5ca1fc['start']['nodeBefore'];return _0x41e042['isBlockImage'](_0x5ec6ac)&&_0x5ec6ac===_0x287209;}return!0x1;}function _0x13a3bc(_0x8d7168,_0x69db72){return _0x392423(_0x8d7168,_0x69db72)?[_0x8d7168,_0x69db72]:_0x392423(_0x69db72,_0x8d7168)?[_0x69db72,_0x8d7168]:null;}_0x30ec10['plugins']['has']('ImageResize')&&(_0x4d9433['enableDefaultAttributesIntegration']('resizeImage'),_0x4d9433['registerBlockAttribute']('resizedWidth'),_0x4d9433['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3d798d,'FORMAT_IMAGE_SIZE'))),_0x30ec10['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4d9433['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4d9433['registerBlockAttribute']('alt')),_0x30ec10['plugins']['has']('PictureEditing')&&(_0x4d9433['registerBlockAttribute']('sources'),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x56c1c5=>{if('attribute'!=_0x56c1c5['type'])return;const {data:_0xd734eb}=_0x56c1c5;return _0xd734eb&&'sources'==_0xd734eb['key']?{'type':'format','content':''}:void 0x0;})),_0x30ec10['plugins']['has']('ImageSizeAttributes')&&(_0x4d9433['registerBlockAttribute']('width'),_0x4d9433['registerBlockAttribute']('height'),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0xb64c9b=>{if('attribute'!=_0xb64c9b['type'])return;const {data:_0x140391}=_0xb64c9b;return!_0x140391||'width'!=_0x140391['key']&&'height'!=_0x140391['key']?void 0x0:{'type':'format','content':''};})),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x304843=>{if(!!_0x3f725a['find'](({type:_0x1d559e,subType:_0x5c6c7a})=>_0x304843['type']==_0x1d559e&&_0x304843['subType']==_0x5c6c7a))return _0x304843['previous']?{}:void 0x0;}),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x52b26b=>{if('insertion'==_0x52b26b['type']||'deletion'==_0x52b26b['type']){const _0x5fb62b=_0x52b26b['getContainedElement']();if(_0x5fb62b&&_0x5fb62b['is']('element','caption'))return{'type':'insertion'==_0x52b26b['type']?'addObject':'removeObject','element':_0x5fb62b,'quantity':0x1};}}),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x2fd61e=>'formatBlock'==_0x2fd61e['type']&&'convertInlineImageToBlock'==_0x2fd61e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2fd61e['type']&&'convertBlockImageToInline'==_0x2fd61e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4d9433['descriptionFactory']['registerDescriptionCallback'](_0x3cd17e=>{if('attribute'!=_0x3cd17e['type'])return;const {data:_0x4ec753}=_0x3cd17e;if(!_0x4ec753||'alt'!=_0x4ec753['key'])return;const _0x892414=_0x4ec753['newValue'];return _0x892414?{'type':'format','content':o(_0x3d798d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x892414+'\x22')}:{'type':'format','content':o(_0x3d798d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1de4e3=this['editor'],_0x57cbe5=_0x1de4e3['locale'];_0x1de4e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd554=>{if('formatBlock'!=_0x1cd554['type']&&'formatInline'!=_0x1cd554['type'])return;const {data:_0x20fac7}=_0x1cd554;if(_0x20fac7){if('imageTextAlternative'==_0x20fac7['commandName']){const _0x132e28=_0x20fac7['commandParams'][0x0]['newValue'];return _0x132e28?{'type':'format','content':o(_0x57cbe5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x132e28+'\x22')}:{'type':'format','content':o(_0x57cbe5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x20fac7['commandName']){const _0x416321=_0x20fac7['commandParams'][0x0]['width'];return _0x416321?{'type':'format','content':o(_0x57cbe5,'*Set\x20image\x20width:*\x20%0',_0x416321)}:{'type':'format','content':o(_0x57cbe5,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x474473=this['editor']['locale'],_0x2f7122=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f7122['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2f7122['registerBlockAttribute']('src'),_0x2f7122['descriptionFactory']['registerDescriptionCallback'](_0x117f2f=>{if('attribute'!=_0x117f2f['type'])return;const {data:_0x1e23b5}=_0x117f2f;return _0x1e23b5&&'src'==_0x1e23b5['key']?_0x1e23b5['newValue']&&_0x1e23b5['oldValue']?{'type':'format','content':o(_0x474473,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xde2c4a=this['editor']['plugins']['get']('TrackChangesEditing');_0xde2c4a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xde2c4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xde2c4a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xde2c4a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x391caf=this['editor'],_0xec0599=_0x391caf['locale'];_0x391caf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a9a5f=>{if('formatBlock'!=_0x3a9a5f['type']&&'formatInline'!=_0x3a9a5f['type'])return;const {data:_0x417e08}=_0x3a9a5f;if(!_0x417e08||'replaceImageSource'!=_0x417e08['commandName'])return;return{'type':'format','content':o(_0xec0599,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x32720e{['afterInit'](){const _0x54d9a4=this['editor'];if(!_0x54d9a4['plugins']['has']('ImageStyleEditing'))return;const _0x50bddb=_0x54d9a4['plugins']['get']('TrackChangesEditing'),_0x1e04d1=_0x54d9a4['plugins']['get']('ImageUtils'),_0x4fcf8e={};_0x50bddb['enableCommand']('imageStyle',(_0x51cb3e,_0x498543)=>{const _0xbd3364=_0x54d9a4['plugins']['get']('Users')['me'],_0x2b0da8=_0x54d9a4['commands']['get']('imageStyle');let _0x53570e=_0x1e04d1['getClosestSelectedImageElement'](_0x54d9a4['model']['document']['selection']),_0x46cfc6=_0x54d9a4['model']['createRangeOn'](_0x53570e),_0x412283=_0x2b0da8['value'];if(_0x412283==_0x498543['value'])return;const _0x55da89={'commandName':'imageStyle','commandParams':[_0x498543],'formatGroupId':_0x2cd620()};_0x54d9a4['model']['change'](()=>{if(_0x50bddb['getSuggestions']()['filter'](_0x29ad0c=>_0x29ad0c['isInContent']&&_0xbd3364==_0x29ad0c['author']&&('formatBlock'==_0x29ad0c['type']||'formatInline'==_0x29ad0c['type'])&&('imageStylePreApply'==_0x29ad0c['subType']||'imageStylePostApply'==_0x29ad0c['subType'])&&_0x29ad0c['getFirstRange']()['isEqual'](_0x46cfc6))['forEach'](_0x58f704=>_0x50bddb['discardSuggestion'](_0x58f704['head'])),_0x53570e=_0x1e04d1['getClosestSelectedImageElement'](_0x54d9a4['model']['document']['selection']),_0x46cfc6=_0x54d9a4['model']['createRangeOn'](_0x53570e),_0x2b0da8['refresh'](),_0x54d9a4['commands']['get']('imageTypeInline')['refresh'](),_0x54d9a4['commands']['get']('imageTypeBlock')['refresh'](),_0x412283=_0x2b0da8['value'],_0x412283!=_0x498543['value'])return _0x1e04d1['isInlineImage'](_0x53570e)&&_0x2b0da8['shouldConvertImageType'](_0x498543['value'],_0x53570e)?(_0x51cb3e({..._0x498543,'setImageSizes':!0x1}),_0x53570e=_0x1e04d1['getClosestSelectedImageElement'](_0x54d9a4['model']['document']['selection']),void _0x50bddb['markBlockFormat'](_0x53570e,{..._0x55da89,'commandReversedParams':[{'value':_0x412283||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1e04d1['isBlockImage'](_0x53570e)?_0x50bddb['markBlockFormat'](_0x53570e,_0x55da89,[],'imageStylePostApply'):_0x50bddb['markInlineFormat'](_0x46cfc6,_0x55da89,'imageStylePostApply'));});});for(const _0x818f31 of _0x54d9a4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4fcf8e[_0x818f31['name']]=_0x818f31['title']['toLowerCase']();_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3731c5])=>{_0x1e04d1['setImageNaturalSizeAttributes'](_0x3731c5['getContainedElement']());}),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x19c429,_0xefcf11)=>{_0x50bddb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x19c429,{'commandName':_0xefcf11['commandName'],'commandParams':_0xefcf11['commandReversedParams']});}),_0x50bddb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1bb10a,_0x22ad1c){if(_0x301d7b(_0x1bb10a,_0x22ad1c))return[_0x1bb10a,_0x22ad1c];if(_0x301d7b(_0x22ad1c,_0x1bb10a))return[_0x22ad1c,_0x1bb10a];return null;});const _0xf6af=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x301d7b(_0xbdb91f,_0x271092){const _0x4027ce=_0xf6af['findIndex'](({type:_0x23205b,subType:_0x27964c})=>_0xbdb91f['type']==_0x23205b&&_0xbdb91f['subType']==_0x27964c),_0x42f34b=_0xf6af['findIndex'](({type:_0x39ad70,subType:_0x452843})=>_0x271092['type']==_0x39ad70&&_0x271092['subType']==_0x452843);if(_0x4027ce<0x0||_0x42f34b<0x0)return!0x1;const _0x410536=_0xbdb91f['getFirstRange'](),_0x1e8f63=_0x271092['getFirstRange']();if((0x0==_0x4027ce||0x1==_0x4027ce)&&0x2==_0x42f34b&&_0x410536['isIntersecting'](_0x1e8f63))return!0x0;if(0x2==_0x4027ce&&0x3==_0x42f34b){const _0x8a6166=_0x50bddb['_findSuggestions'](_0x410536,'insertion')['filter'](({suggestion:_0x53f0a9,meta:_0x319735})=>_0x319735['isOwn']&&'convertInlineImageToBlock'==_0x53f0a9['subType']);if(_0x8a6166['length']>0x1&&_0x1e8f63['end']['isEqual'](_0x410536['start']))return!0x0;if(0x1==_0x8a6166['length']&&(_0x410536['start']['isEqual'](_0x1e8f63['end'])||_0x410536['end']['isEqual'](_0x1e8f63['start'])))return!0x0;}if(0x3==_0x4027ce&&0x3==_0x42f34b&&_0x410536['start']['isBefore'](_0x1e8f63['start'])){const _0x347f8e=_0x410536['end']['nodeAfter'],_0x29ae14=_0x1e8f63['start']['nodeBefore'];return _0x1e04d1['isBlockImage'](_0x347f8e)&&_0x347f8e===_0x29ae14;}return!0x1;}_0x54d9a4['model']['document']['registerPostFixer'](()=>{let _0x1f67d1=!0x1;const _0x300ff7=Array['from'](_0x54d9a4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f1f90,data:_0x3ac912}of _0x300ff7){const {group:_0x2f1a08,type:_0x3d527e,subType:_0x4f8b5f,id:_0xffa7c7}=_0x50bddb['_splitMarkerName'](_0x4f1f90);if('suggestion'==_0x2f1a08&&_0x50bddb['hasSuggestion'](_0xffa7c7)){if('formatBlock'==_0x3d527e&&('imageStylePreApply'==_0x4f8b5f||'imageStylePostApply'==_0x4f8b5f)){const _0x4d86a8=_0x50bddb['getSuggestion'](_0xffa7c7);if(_0x3ac912['newRange']){const _0xd85a69=_0x4d86a8['getFirstRange']()['getContainedElement']();if(_0x1e04d1['isBlockImage'](_0xd85a69))continue;_0x50bddb['discardSuggestion'](_0x4d86a8),_0x1f67d1=!0x0;}}if('insertion'==_0x3d527e&&'imageCaption'==_0x4f8b5f&&!_0x3ac912['newRange']){const _0x442d17=_0x50bddb['getSuggestion'](_0xffa7c7);_0x442d17['next']&&_0x442d17['next']['isInContent']&&(_0x50bddb['discardSuggestion'](_0x442d17['next']),_0x1f67d1=!0x0);}}}return _0x1f67d1;}),this['_registerLegacyDescription'](_0x4fcf8e);}['_registerLegacyDescription'](_0x25617b){const _0x538de4=this['editor'],_0x3ce70d=_0x538de4['locale'];_0x538de4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeec2c7=>{if('formatBlock'!=_0xeec2c7['type']&&'formatInline'!=_0xeec2c7['type'])return;const {data:_0x3e4f66}=_0xeec2c7;if(!_0x3e4f66||'imageStyle'!=_0x3e4f66['commandName'])return;const _0x316162=_0x3e4f66['commandParams'][0x0]['value'];return _0x268115('side'===_0x316162?o(_0x3ce70d,'FORMAT_SIDE_IMAGE'):_0x25617b[_0x316162]||_0x316162);function _0x268115(_0x40974d){return{'type':'format','content':o(_0x3ce70d,'*Format:*\x20%0',_0x40974d)};}});}}class ct extends _0x32720e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x43ee83){super(_0x43ee83),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5b1a89=this['editor'],_0x5b97fb=_0x5b1a89['commands']['get']('importWord'),_0x54eb72=_0x5b1a89['commands']['get']('trackChanges');_0x5b97fb&&(_0x5b97fb['on']('execute',(_0x1bf1a9,[,_0x3fc250])=>{this['_trackChangesValueDuringImport']=_0x54eb72['value'],_0x3fc250['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5b97fb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5b97fb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x54eb72['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5b1a89['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x56c47f,_0x3e7f63){const {suggestions:_0x57e234}=_0x3e7f63,_0xe2d7f=this['editor']['commands']['get']('trackChanges'),_0x5b4c4c=_0xe2d7f['value'];this['_trackChangesValueDuringImport']!==_0x5b4c4c&&(_0xe2d7f['execute'](),this['_trackChangesExecuted']=!0x0),_0x57e234&&_0x57e234['forEach'](({id:_0x24e95b,type:_0x10a0a0,author:_0x273e76,created_at:_0x416583})=>{const _0x500a13={'id':_0x24e95b,'type':_0x10a0a0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x273e76,'createdAt':_0x416583?new Date(_0x416583):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x500a13);});}}class ut extends _0x32720e{['afterInit'](){const _0x293a8f=this['editor'],_0x5b2f10=_0x293a8f['plugins']['get']('TrackChangesEditing');if(_0x293a8f['plugins']['has']('IndentEditing')&&(_0x5b2f10['enableCommand']('indent'),_0x5b2f10['enableCommand']('outdent')),_0x293a8f['plugins']['has']('IndentBlock')){for(const _0x2ec052 of['indentBlock','outdentBlock'])_0x5b2f10['enableDefaultAttributesIntegration'](_0x2ec052);}const _0x2696ca=_0x293a8f['locale'];_0x5b2f10['registerBlockAttribute']('blockIndent'),_0x5b2f10['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2696ca,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13d720=this['editor'],_0x14bb30=_0x13d720['locale'],_0x4bb920=_0x13d720['plugins']['get']('TrackChangesEditing');_0x4bb920['descriptionFactory']['registerDescriptionCallback'](_0x522be3=>{if('formatBlock'!=_0x522be3['type'])return;const {data:_0x2aa3aa}=_0x522be3;if(!_0x2aa3aa)return;if('indentBlock'!=_0x2aa3aa['commandName']&&'outdentBlock'!=_0x2aa3aa['commandName'])return;const _0x29184b=_0x522be3['getItems']()[0x0],_0x45a3b5=_0x4bb920['descriptionFactory']['getItemLabel'](_0x29184b);return'indentBlock'==_0x2aa3aa['commandName']?{'type':'format','content':o(_0x14bb30,'*Indent:*\x20%0',_0x45a3b5)}:'outdentBlock'==_0x2aa3aa['commandName']?{'type':'format','content':o(_0x14bb30,'*Outdent:*\x20%0',_0x45a3b5)}:void 0x0;});}}class ft extends _0x32720e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x32720e{['afterInit'](){const _0x4da7bd=this['editor'];if(!_0x4da7bd['plugins']['has']('LinkEditing'))return;const _0x4b5c95=_0x4da7bd['plugins']['get']('TrackChangesEditing'),_0x589ec7=_0x4da7bd['commands']['get']('link');_0x4b5c95['enableDefaultAttributesIntegration']('link'),_0x4b5c95['enableDefaultAttributesIntegration']('unlink'),_0x4b5c95['registerInlineAttribute']('linkHref');for(const _0x50e062 of _0x589ec7['manualDecorators'])_0x4b5c95['registerInlineAttribute'](_0x50e062['id']),_0x4b5c95['descriptionFactory']['registerAttributeLabel'](_0x50e062['id'],'link\x20('+_0x50e062['label']['toLowerCase']()+')');_0x4b5c95['descriptionFactory']['registerDescriptionCallback'](_0x128b1c=>{if('attribute'!=_0x128b1c['type'])return;const {data:_0x3069c6}=_0x128b1c;if(!_0x3069c6||'linkHref'!=_0x3069c6['key'])return;const _0x23e23c=_0x3069c6['newValue'],_0x3f2813=_0x4da7bd['locale'];return{'type':'format','content':null==_0x23e23c?o(_0x3f2813,'*Remove\x20link*'):o(_0x3f2813,'*Set\x20link:*\x20%0','\x22'+_0x23e23c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2262c7=this['editor'],_0x45da7e=_0x2262c7['locale'];_0x2262c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59cd59=>{if('formatInline'!=_0x59cd59['type'])return;const {data:_0x3a8d53}=_0x59cd59;if(_0x3a8d53){if('link'==_0x3a8d53['commandName']){const _0xe06ce1=_0x3a8d53['commandParams'][0x0];return{'type':'format','content':o(_0x45da7e,'*Set\x20link:*\x20%0','\x22'+_0xe06ce1+'\x22')};}return'unlink'==_0x3a8d53['commandName']?{'type':'format','content':o(_0x45da7e,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x32720e{['afterInit'](){const _0x13e995=this['editor'],_0x350805=_0x13e995['locale'];if(!_0x13e995['plugins']['has']('LegacyListEditing'))return;const _0x357bf4=_0x13e995['plugins']['get']('TrackChangesEditing'),_0x427e6e=_0x13e995['plugins']['has']('LegacyTodoListEditing');function _0x5a9f46(_0x2fcbf7){return()=>{const _0x2cb7a3=_0x13e995['model']['document']['selection'],_0x25314c=_0x13e995['commands']['get'](_0x2fcbf7);if(_0x25314c['value'])return void _0x13e995['execute']('paragraph',{});const _0x5b5f7d=_0x2fcbf7['slice'](0x0,-0x4),_0xf7f8b5=function(_0x26aaca,_0x56f6df,_0x5a4b44){let _0xb0041c=Array['from'](_0x26aaca)['filter'](_0x20e5e2=>function(_0xea0830,_0x4c9eee){return _0x4c9eee['checkChild'](_0xea0830['parent'],'listItem')&&!_0x4c9eee['isObject'](_0xea0830);}(_0x20e5e2,_0x5a4b44));_0xb0041c=_0xb0041c['filter'](_0x21e241=>!_0x21e241['is']('element','listItem')||_0x21e241['getAttribute']('listType')!=_0x56f6df);const _0x469574=new Set();for(const _0x2781a0 of _0xb0041c)_0x2781a0['is']('element','listItem')?_0x469574['add'](Le(_0x2781a0)):_0x469574['add'](_0x2781a0);return Array['from'](_0x469574);}(_0x2cb7a3['getSelectedBlocks'](),_0x5b5f7d,_0x13e995['model']['schema']);_0x13e995['model']['change'](()=>{for(const _0x51d4b1 of _0xf7f8b5)_0x357bf4['markBlockFormat'](_0x51d4b1,{'commandName':_0x2fcbf7,'commandParams':[{'forceValue':!_0x25314c['value']}],'formatGroupId':'blockName'},Ee(_0x51d4b1));});};}function _0x1dc343(_0x394e63){return()=>{const _0x41e37c=function(_0x51ced8){let _0x4e1487=Array['from'](_0x51ced8);const _0x3277c0=_0x4e1487['findIndex'](_0x303e1b=>'listItem'!=_0x303e1b['name']);return _0x3277c0>-0x1&&(_0x4e1487=_0x4e1487['slice'](0x0,_0x3277c0)),_0x4e1487;}(_0x13e995['model']['document']['selection']['getSelectedBlocks']()),_0x511a39=_0x13e995['model']['createRange'](_0x13e995['model']['createPositionAt'](_0x41e37c[0x0],'before'),_0x13e995['model']['createPositionAt'](_0x41e37c[_0x41e37c['length']-0x1],'end'));_0x13e995['model']['change'](()=>{_0x357bf4['markBlockFormat'](_0x511a39,{'commandName':_0x394e63,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23da1f){const _0x37114e=new Set();for(const _0x38cbb6 of _0x23da1f){let _0x18363a=_0x38cbb6['nextSibling'];for(;_0x18363a&&_0x18363a['getAttribute']('listIndent')>_0x38cbb6['getAttribute']('listIndent');)_0x37114e['add'](_0x18363a),_0x18363a=_0x18363a['nextSibling'];}return Array['from'](_0x37114e);}(_0x41e37c));});};}_0x357bf4['enableCommand']('numberedList',_0x5a9f46('numberedList')),_0x357bf4['enableCommand']('bulletedList',_0x5a9f46('bulletedList')),_0x427e6e&&_0x357bf4['enableCommand']('todoList',_0x5a9f46('todoList')),_0x357bf4['enableCommand']('indentList',_0x1dc343('indentList')),_0x357bf4['enableCommand']('outdentList',_0x1dc343('outdentList')),_0x427e6e&&_0x357bf4['enableCommand']('checkTodoList',()=>{const _0x180f67=_0x13e995['commands']['get']('checkTodoList'),_0x48c025=Array['from'](_0x180f67['_selectedElements']);_0x48c025['filter'](_0x542e12=>_0x542e12['getAttribute']('todoListChecked')!=_0x180f67['value']),_0x13e995['model']['change'](()=>{for(const _0x2075cf of _0x48c025)_0x357bf4['markBlockFormat'](_0x2075cf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x180f67['value']}]});});}),_0x357bf4['descriptionFactory']['registerElementLabel']('listItem',_0x47d9f7=>o(_0x350805,'ELEMENT_LIST_ITEM',_0x47d9f7)),_0x357bf4['descriptionFactory']['registerDescriptionCallback'](_0x5450a2=>{if('formatBlock'!=_0x5450a2['type']&&'formatInline'!=_0x5450a2['type'])return;const {data:_0x97be20}=_0x5450a2;if(_0x97be20){if('numberedList'==_0x97be20['commandName']||'bulletedList'==_0x97be20['commandName']||'todoList'==_0x97be20['commandName'])switch(_0x97be20['commandName']['replace']('List','')){case'bulleted':return _0x2547b7(o(_0x350805,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2547b7(o(_0x350805,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2547b7(o(_0x350805,'ELEMENT_TODO_LIST'));}if('indentList'==_0x97be20['commandName'])return{'type':'format','content':o(_0x350805,'*Indent:*\x20%0',o(_0x350805,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x97be20['commandName'])return{'type':'format','content':o(_0x350805,'*Outdent:*\x20%0',o(_0x350805,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x97be20['commandName'])return _0x97be20['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x350805,'*Check\x20item*')}:{'type':'format','content':o(_0x350805,'*Uncheck\x20item*')};}function _0x2547b7(_0x2ad3f7){return{'type':'format','content':o(_0x350805,'*Change\x20to:*\x20%0',_0x2ad3f7)};}});}}function Le(_0xe24235){const _0x46ba3a=_0xe24235['getAttribute']('listIndent');if(0x0==_0x46ba3a)return _0xe24235;let _0x473d3e=_0xe24235;for(;_0xe24235['previousSibling']&&_0xe24235['previousSibling']['is']('element','listItem');){const _0x11e1cb=_0xe24235['previousSibling']['getAttribute']('listIndent');if(_0x11e1cb==_0x46ba3a)_0x473d3e=_0xe24235['previousSibling'];else{if(_0x11e1cb<_0x46ba3a)break;}_0xe24235=_0xe24235['previousSibling'];}return _0x473d3e;}function Ee(_0x4f76b5){const _0x47b7d0=[];if(_0x4f76b5['is']('element','listItem')&&_0x4f76b5['getAttribute']('listIndent')>0x0){let _0x3b9bc8=_0x4f76b5['nextSibling'];for(;_0x3b9bc8&&'listItem'==_0x3b9bc8['name']&&_0x3b9bc8['getAttribute']('listIndent')==_0x4f76b5['getAttribute']('listIndent');)_0x47b7d0['push'](_0x3b9bc8),_0x3b9bc8=_0x3b9bc8['nextSibling'];}return _0x47b7d0;}class Q extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1eb3b7=this['editor']['config']['get']('list.properties'),_0x109dba=this['editor']['plugins']['get']('TrackChangesEditing');_0x1eb3b7['styles']&&_0x109dba['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1eb3b7['reversed']&&_0x109dba['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1eb3b7['startIndex']&&_0x109dba['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x109dba['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x45aae5,_0x3e7205={}){const _0x308ac7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dec48=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x308ac7['markMultiRangeBlockFormat'](_0x5dec48,{'commandName':'listStyle','commandParams':[{'type':_0x3e7205['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x34c4e5,_0x1e6836={}){const _0x2069c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b1606=this['_getSuggestionBlocks'](_0x3a17fa=>_0x3a17fa['is']('element','listItem')&&'numbered'===_0x3a17fa['getAttribute']('listType'));if(_0x3b1606['length']<0x1)return;const _0x188dad=_0x3b1606['map'](_0x3a6c1e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a6c1e,'before'),this['editor']['model']['createPositionAt'](_0x3a6c1e,0x0)));this['editor']['model']['change'](()=>{_0x2069c6['markMultiRangeBlockFormat'](_0x188dad,{'commandName':'listReversed','commandParams':[{'reversed':_0x1e6836['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x587625,_0xa400a5={}){const _0x1002a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e2a5a=this['_getSuggestionBlocks'](_0x40f9c4=>_0x40f9c4['is']('element','listItem')&&'numbered'===_0x40f9c4['getAttribute']('listType'));if(_0x2e2a5a['length']<0x1)return;const _0x262c53=_0x2e2a5a['map'](_0x1201bf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1201bf,'before'),this['editor']['model']['createPositionAt'](_0x1201bf,0x0)));this['editor']['model']['change'](()=>{_0x1002a8['markMultiRangeBlockFormat'](_0x262c53,{'commandName':'listStart','commandParams':[{'startIndex':_0xa400a5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x41b2){if('formatBlock'!=_0x41b2['type']&&'formatInline'!=_0x41b2['type'])return;const _0x5a4616=this['editor']['locale'],{data:_0x541b54}=_0x41b2;if(!_0x541b54)return;let _0x757792,_0x5b9481;switch(_0x541b54['commandName']){case'listStyle':_0x757792='*Change\x20to:*\x20%0',_0x5b9481={'type':'format','content':o(_0x5a4616,_0x757792,o(_0x5a4616,this['_getTranslationKeyForListStyle'](_0x541b54['commandParams'][0x0]['type'])))};break;case'listReversed':_0x757792=_0x541b54['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b9481={'type':'format','content':o(_0x5a4616,_0x757792)};break;case'listStart':_0x757792='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b9481={'type':'format','content':o(_0x5a4616,_0x757792,_0x541b54['commandParams'][0x0]['startIndex'])};}return _0x5b9481;}['_getSuggestionBlocksForListStyle'](){const _0x1c2b35=this['editor']['plugins']['get']('LegacyListUtils');let _0x55717a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x55717a[0x0]?.['is']('element','listItem')&&_0x55717a['unshift'](..._0x1c2b35['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x55717a[_0x55717a['length']-0x1]?.['is']('element','listItem')&&_0x55717a['push'](..._0x1c2b35['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x55717a=[...new Set(_0x55717a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x55717a=_0x55717a['filter'](_0x472103=>_0x472103['is']('element','listItem'))),_0x55717a;}['_getSuggestionBlocks'](_0x1eab81){const _0x1b4aeb=this['editor']['plugins']['get']('LegacyListUtils');let _0x48affb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1eab81)['map'](_0x4718b6=>{const _0xf5b660=this['editor']['model']['createPositionAt'](_0x4718b6,0x0);return[..._0x1b4aeb['getSiblingNodes'](_0xf5b660,'backward'),..._0x1b4aeb['getSiblingNodes'](_0xf5b660,'forward')];})['flat']();return _0x48affb=[...new Set(_0x48affb)],_0x48affb;}['_getTranslationKeyForListStyle'](_0x4b6ae3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4b6ae3)||'default')['toUpperCase']()+'_LIST_'+_0x4b6ae3['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x32720e{['afterInit'](){const _0x285776=this['editor'];if(!_0x285776['plugins']['has']('MediaEmbedEditing'))return;const _0xc7f391=_0x285776['plugins']['get']('TrackChangesEditing'),_0x2a4000=_0x285776['locale'];_0xc7f391['enableCommand']('mediaEmbed'),_0xc7f391['descriptionFactory']['registerElementLabel']('media',_0xc0df0a=>o(_0x2a4000,'ELEMENT_MEDIA',_0xc0df0a)),_0x285776['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5636f4,{writer:_0x4b43f1,options:_0x3d0f26})=>{if(_0x3d0f26['showSuggestionHighlights'])return _0x4b43f1['createEmptyElement']('div');},'converterPriority':'high'}),_0x285776['data']['downcastDispatcher']['on']('attribute:url:media',(_0xa359d7,_0x5a0c38,_0x37651f)=>{_0x37651f['options']['showSuggestionHighlights']&&_0xa359d7['stop']();},{'priority':'high'});}}class mt extends _0x32720e{['afterInit'](){const _0x3b6e5c=this['editor'];_0x3b6e5c['plugins']['has']('MentionEditing')&&_0x3b6e5c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x32720e{['afterInit'](){const _0x2cc82f=this['editor'];if(!_0x2cc82f['plugins']['has']('MergeFieldsEditing'))return;const _0x45faf5=_0x2cc82f['plugins']['get']('TrackChangesEditing'),_0x27ad17=_0x2cc82f['locale'];_0x45faf5['enableCommand']('insertMergeField'),_0x45faf5['enableCommand']('insertMergeFieldBlock'),_0x45faf5['enableCommand']('insertMergeFieldImage'),_0x45faf5['descriptionFactory']['registerElementLabel']('mergeField',_0x17efbb=>o(_0x27ad17,'ELEMENT_MERGE_FIELD',_0x17efbb)),_0x45faf5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x52f227=>o(_0x27ad17,'ELEMENT_MERGE_FIELD',_0x52f227)),_0x45faf5['descriptionFactory']['registerDescriptionCallback'](_0x2889ec=>{if('insertion'!=_0x2889ec['type']&&'deletion'!=_0x2889ec['type'])return;const _0x1e1e55=_0x2889ec['getContainedElement']();if(null==_0x1e1e55)return;const _0x11bfb4=_0x2cc82f['plugins']['get']('MergeFieldsEditing');let _0x17bd1f;switch(_0x11bfb4['getMergeFieldType'](_0x1e1e55)){case null:return;case'image':{const _0x8b0050=_0x11bfb4['unwrapAffixes'](_0x1e1e55['getAttribute']('src'));_0x17bd1f=_0x11bfb4['getLabel'](_0x8b0050)||_0x8b0050;break;}default:{const _0x53f658=_0x1e1e55['getAttribute']('id');_0x17bd1f=_0x11bfb4['getLabel'](_0x53f658)||_0x53f658;break;}}return'insertion'==_0x2889ec['type']?{'type':'insertion','content':o(_0x27ad17,'*Insert:*\x20%0','\x22'+_0x17bd1f+'\x22\x20'+o(_0x27ad17,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x27ad17,'*Remove:*\x20%0','\x22'+_0x17bd1f+'\x22\x20'+o(_0x27ad17,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x32720e{['afterInit'](){const _0x2479fc=this['editor'],_0x58edbd=_0x2479fc['plugins']['get']('TrackChangesEditing');_0x2479fc['plugins']['has']('MultiLevelList')&&(_0x58edbd['enableDefaultAttributesIntegration']('multiLevelList'),_0x58edbd['registerBlockAttribute']('listMarkerStyle'),_0x58edbd['descriptionFactory']['registerDescriptionCallback'](_0x18108d=>this['handleDescriptions'](_0x18108d)));}['handleDescriptions'](_0x183ef4){const _0x56969b=this['editor']['locale'],{data:_0x13f817}=_0x183ef4,_0x276ba8={'type':'format','content':''};if(_0x13f817&&'listMarkerStyle'==_0x13f817['key']){if(!_0x13f817['oldValue'])return{'type':'format','content':o(_0x56969b,'*Set\x20format:*\x20%0',o(_0x56969b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x13f817['newValue']+')'};if(!_0x13f817['newValue']){let _0x18c001=_0x183ef4['head'];for(;_0x18c001;){if(_0x18c001['data']&&'listType'==_0x18c001['data']['key']&&_0x18c001['data']['newValue'])return _0x276ba8;_0x18c001=_0x18c001['next'];}return{'type':'format','content':o(_0x56969b,'*Remove\x20format:*\x20%0',o(_0x56969b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x13f817['oldValue']+')'};}}}}class kt extends _0x32720e{['afterInit'](){const _0x472105=this['editor'];if(!_0x472105['plugins']['has']('PageBreakEditing'))return;_0x472105['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x50fe3f=_0x472105['plugins']['get']('TrackChangesEditing'),_0x5c0c61=_0x472105['locale'];_0x50fe3f['descriptionFactory']['registerElementLabel']('pageBreak',_0x29afb9=>o(_0x5c0c61,'ELEMENT_PAGE_BREAK',_0x29afb9));}}class bt extends _0x32720e{['afterInit'](){const _0x213ce9=this['editor'];if(!_0x213ce9['plugins']['has']('Paragraph'))return;const _0x5b4250=_0x213ce9['locale'],_0x5219d3=_0x213ce9['plugins']['get']('TrackChangesEditing');_0x5219d3['descriptionFactory']['registerElementLabel']('paragraph',_0x511f1c=>o(_0x5b4250,'ELEMENT_PARAGRAPH',_0x511f1c)),_0x5219d3['enableDefaultAttributesIntegration']('paragraph'),_0x5219d3['enableCommand']('insertParagraph'),_0x213ce9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x213ce9),{'priority':'highest'}),_0x213ce9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d7b2b,_0x1f1fb3,_0x5ad99a)=>{_0x5ad99a['options']['showSuggestionHighlights']&&nr(_0x213ce9,{'showActiveMarker':!0x1})(_0x3d7b2b,_0x1f1fb3,_0x5ad99a);},{'priority':'highest'});const _0x1985ac=_0x5219d3['descriptionFactory'];_0x1985ac['registerDescriptionCallback'](_0x23d9fa=>{if('insertion'!==_0x23d9fa['type'])return;const {start:_0x182430,end:_0x4c5aff}=_0x23d9fa['getFirstRange']();if(!_0x182430['isTouching'](_0x4c5aff)||!_0x182430['nodeAfter'])return;const _0x2ddf1b=_0x213ce9['model']['schema'],_0x8aa38=_0x182430['nodeAfter'];return _0x2ddf1b['isBlock'](_0x8aa38)&&!_0x2ddf1b['isLimit'](_0x8aa38)&&_0x2ddf1b['checkChild'](_0x8aa38,'$text')?{'type':'insertion','content':o(_0x5b4250,'*Insert:*\x20%0',_0x1985ac['getItemLabel'](_0x8aa38,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38c597=this['editor'],_0x293b4c=_0x38c597['locale'];_0x38c597['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27dccf=>{if('formatBlock'!=_0x27dccf['type'])return;const {data:_0x3a9890}=_0x27dccf;return _0x3a9890&&'paragraph'==_0x3a9890['commandName']?{'type':'format','content':o(_0x293b4c,'*Change\x20to:*\x20%0',o(_0x293b4c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x53874d,{showActiveMarker:_0x53d2f6=!0x0}={}){return(_0xaaa622,_0x1d5aa5,_0x1e8122)=>{const _0x5dcf59=_0x53874d['plugins']['get']('TrackChangesEditing'),_0x302a96=_0x1d5aa5['markerRange']['start'],_0x5b2812=_0x1d5aa5['markerRange']['end'],_0x3e3342=_0x53874d['model']['schema'];if(!_0x302a96['isTouching'](_0x5b2812)||!_0x302a96['nodeAfter'])return;const _0x2ef15a=_0x302a96['nodeAfter'];if(_0x3e3342['isBlock'](_0x2ef15a)&&!_0x3e3342['isLimit'](_0x2ef15a)&&_0x3e3342['checkChild'](_0x2ef15a,'$text')){if(!_0x1e8122['consumable']['consume'](_0x1d5aa5['markerRange'],_0xaaa622['name']))return;const {authorId:_0x4dcbbe}=_0x5dcf59['_splitMarkerName'](_0x1d5aa5['markerName']),_0x5683ba=_0x1e8122['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4dcbbe}),_0x3ea6d2=_0x1e8122['mapper']['toViewPosition'](_0x5b2812);_0x53d2f6&&_0x5dcf59['activeMarkers']['includes'](_0x1d5aa5['markerName'])&&_0x1e8122['writer']['addClass']('ck-suggestion-marker--active',_0x5683ba),_0x1e8122['writer']['insert'](_0x3ea6d2,_0x5683ba),_0x1e8122['mapper']['bindElementToMarker'](_0x5683ba,_0x1d5aa5['markerName']);}};}class yt extends _0x32720e{['afterInit'](){const _0x485320=this['editor'];if(!_0x485320['plugins']['has']('RemoveFormatEditing'))return;_0x485320['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30de9b=this['editor'];_0x30de9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36bfce=>{if('formatBlock'!=_0x36bfce['type']&&'formatInline'!=_0x36bfce['type'])return;const {data:_0x392c6a}=_0x36bfce;return _0x392c6a&&'removeFormat'==_0x392c6a['commandName']?{'type':'format','content':o(_0x30de9b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x32720e{['afterInit'](){const _0x792c60=this['editor'];if(!_0x792c60['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x57aff1=_0x792c60['plugins']['get']('TrackChangesEditing');_0x57aff1['enableCommand']('goToPreviousRestrictedEditingException'),_0x57aff1['enableCommand']('goToNextRestrictedEditingException');const _0x29e94c=_0x792c60['plugins']['get']('RestrictedEditingModeEditing');_0x29e94c['enableCommand']('trackChanges'),_0x29e94c['enableCommand']('acceptSuggestion'),_0x29e94c['enableCommand']('discardSuggestion'),_0x29e94c['enableCommand']('acceptAllSuggestions'),_0x29e94c['enableCommand']('discardAllSuggestions'),_0x29e94c['enableCommand']('acceptSelectedSuggestions'),_0x29e94c['enableCommand']('discardSelectedSuggestions');}}class St extends _0x32720e{static get['requires'](){return[_0x31c31b];}['init'](){const _0x5e60b5=this['editor'],_0x137eb9=_0x5e60b5['plugins']['get']('TrackChangesEditing');_0x137eb9['enableCommand']('shiftEnter'),_0x5e60b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5e60b5),{'priority':'high'}),_0x5e60b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5e60b5),{'priority':'high'}),_0x5e60b5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29781d,_0x5cc4fe,_0x5a3aab)=>{_0x5a3aab['options']['showSuggestionHighlights']&&je(_0x5e60b5,{'showActiveMarker':!0x1})(_0x29781d,_0x5cc4fe,_0x5a3aab);}),_0x137eb9['descriptionFactory']['registerElementLabel']('softBreak',_0x360190=>o(_0x5e60b5['locale'],'ELEMENT_LINE_BREAK',_0x360190));}}function je(_0xc0b2e,{showActiveMarker:_0x131f71=!0x0}={}){return(_0x2d3100,_0x4590d5,_0xd1c4d2)=>{const _0x2ebd86=_0xc0b2e['plugins']['get']('TrackChangesEditing');if(!_0xd1c4d2['consumable']['test'](_0x4590d5['markerRange'],_0x2d3100['name']))return;const _0xc1983f=_0xc0b2e['model'];for(const _0x45cb84 of _0x4590d5['markerRange']['getItems']()){if(!_0x45cb84['is']('element','softBreak'))continue;const _0x372049='deletion'==_0x4590d5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5dfe7b}=_0x2ebd86['_splitMarkerName'](_0x4590d5['markerName']),_0x52ed1e=_0xd1c4d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x372049,'data-author-id':_0x5dfe7b}),_0x4f5007=_0xd1c4d2['mapper']['toViewPosition'](_0xc1983f['createPositionBefore'](_0x45cb84));_0x131f71&&_0x2ebd86['activeMarkers']['includes'](_0x4590d5['markerName'])&&_0xd1c4d2['writer']['addClass']('ck-suggestion-marker--active',_0x52ed1e),_0xd1c4d2['writer']['insert'](_0x4f5007,_0x52ed1e),_0xd1c4d2['mapper']['bindElementToMarker'](_0x52ed1e,_0x4590d5['markerName']);}};}class At extends _0x32720e{['afterInit'](){const _0x1bf0bc=this['editor'],_0xea5099=_0x1bf0bc['model'],_0x1b5b55=_0x1bf0bc['locale'];if(!_0x1bf0bc['plugins']['has']('StandardEditingModeEditing'))return;const _0x2d48cd=_0x1bf0bc['plugins']['get']('TrackChangesEditing'),_0x84f92a='restrictedEditingException',_0x3d8db4=_0x1bf0bc['commands']['get'](_0x84f92a);_0x2d48cd['enableCommand'](_0x84f92a,(_0x4d900a,_0x4469aa={})=>{const _0x305d90=_0xea5099['document']['selection'];if(_0x305d90['isCollapsed'])return void _0x4d900a(_0x4469aa);const _0x14af90=void 0x0!==_0x4469aa['forceValue']?_0x4469aa['forceValue']:!_0x3d8db4['value'];_0xea5099['change'](()=>{const _0x3b78a6=Array['from'](_0x305d90['getRanges']());for(const _0x2d95e5 of _0x3b78a6){const _0x1e2200=_0x14af90?[_0x2d95e5]:io(_0x84f92a,_0x2d95e5,_0xea5099);for(const _0x4c559e of _0x1e2200)_0x2d48cd['markInlineFormat'](_0x4c559e,{'commandName':_0x84f92a,'commandParams':[{'forceValue':_0x14af90}]});}});}),_0x2d48cd['descriptionFactory']['registerDescriptionCallback'](_0x2b241a=>{if('formatBlock'!=_0x2b241a['type']&&'formatInline'!=_0x2b241a['type'])return;const {data:_0x102ea2}=_0x2b241a;return _0x102ea2&&_0x102ea2['commandName']==_0x84f92a?_0x102ea2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b5b55,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1b5b55,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x32720e{['afterInit'](){const _0x9d0cb2=this['editor'];if(!_0x9d0cb2['plugins']['has']('Style')||!_0x9d0cb2['plugins']['has']('DataSchema'))return;const _0xb20c54=_0x9d0cb2['plugins']['get']('TrackChangesEditing'),_0x53c5ac=_0x9d0cb2['locale'],_0x5ec419=_0x9d0cb2['config']['get']('style')||{},_0x543865=_0x9d0cb2['plugins']['get']('GeneralHtmlSupport'),_0xfa0a6e=_0x9d0cb2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x9d0cb2['plugins']['get']('DataSchema'),_0x5ec419['definitions']);_0xb20c54['enableDefaultAttributesIntegration']('style');const _0x3dc258=new Set();for(const _0x4473a0 of _0xfa0a6e['block']){const _0x57b55a=_0x543865['getGhsAttributeNameForElement'](_0x4473a0['element']);_0x3dc258['add'](_0x57b55a);}const _0x24d2f8=new Set();for(const _0x160ce0 of _0xfa0a6e['inline']){const _0x30eb25=_0x543865['getGhsAttributeNameForElement'](_0x160ce0['element']);_0x24d2f8['add'](_0x30eb25);for(const _0x6a6e5d of _0x160ce0['ghsAttributes'])_0x24d2f8['add'](_0x6a6e5d);}for(const _0xd1f8e2 of _0x3dc258)_0xb20c54['registerBlockAttribute'](_0xd1f8e2),_0xb20c54['descriptionFactory']['registerAttributeLabel'](_0xd1f8e2,o(_0x53c5ac,'FORMAT_STYLE'));for(const _0x1e7887 of _0x24d2f8)_0xb20c54['registerInlineAttribute'](_0x1e7887),_0xb20c54['descriptionFactory']['registerAttributeLabel'](_0x1e7887,o(_0x53c5ac,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dbe81=this['editor'],_0x1192e4=_0x4dbe81['locale'];_0x4dbe81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x404af1=>{if('formatBlock'!=_0x404af1['type']&&'formatInline'!=_0x404af1['type'])return;const {data:_0x2c07c2}=_0x404af1;return _0x2c07c2&&'style'===_0x2c07c2['commandName']?_0x2c07c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1192e4,'*Set\x20format:*\x20%0',_0x2c07c2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1192e4,'*Remove\x20format:*\x20%0',_0x2c07c2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x32720e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x44a9e4){super(_0x44a9e4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x258919=this['editor'],_0x5045bd=_0x258919['model']['document']['selection'];if(!_0x258919['plugins']['has']('TableEditing'))return;const _0x2c1946=_0x258919['locale'],_0x2130e5=_0x258919['plugins']['get']('TrackChangesEditing'),_0x3bb46f=_0x258919['plugins']['get']('TableUtils');_0x2130e5['descriptionFactory']['registerElementLabel']('table',_0x5303bd=>o(_0x2c1946,'ELEMENT_TABLE',_0x5303bd)),this['_setupColumnsRowsFixing'](),_0x2130e5['enableCommand']('insertTable'),_0x2130e5['enableCommand']('selectTableRow'),_0x2130e5['enableCommand']('selectTableColumn');for(const _0x2610c5 of['insertTableRowAbove','insertTableRowBelow']){const _0x46fd61=_0x258919['commands']['get'](_0x2610c5);_0x2130e5['enableCommand'](_0x2610c5,_0x4f215c=>{_0x258919['model']['change'](_0x48368c=>{_0x4f215c();const _0x86fdf2='above'===_0x46fd61['order'],_0x148b61=_0x3bb46f['getSelectionAffectedTableCells'](_0x5045bd),_0x4e76aa=_0x3bb46f['getRowIndexes'](_0x148b61),_0x2c27f7=_0x86fdf2?_0x4e76aa['first']-0x1:_0x4e76aa['last']+0x1,_0x58cce8=_0x148b61[0x0]['findAncestor']('table'),_0x42a375=_0x3bb46f['createTableWalker'](_0x58cce8,{'startRow':_0x2c27f7,'endRow':_0x2c27f7}),_0x14a3d4=Array['from'](_0x42a375)['map'](_0x5a72a7=>_0x48368c['createRangeOn'](_0x5a72a7['cell']));_0x2130e5['markMultiRangeInsertion'](_0x14a3d4,'tableRow');});});}for(const _0x3d0f32 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2e3d19=_0x258919['commands']['get'](_0x3d0f32);_0x2130e5['enableCommand'](_0x3d0f32,_0x8a996d=>{_0x258919['model']['change'](_0x5afdc3=>{_0x8a996d();const _0x5db93e='left'===_0x2e3d19['order'],_0x1e7dff=_0x3bb46f['getSelectionAffectedTableCells'](_0x5045bd),_0x4eb4f2=_0x3bb46f['getColumnIndexes'](_0x1e7dff),_0x381078=_0x5db93e?_0x4eb4f2['first']-0x1:_0x4eb4f2['last']+0x1,_0x36bb85=_0x1e7dff[0x0]['findAncestor']('table'),_0x3bb499=_0x3bb46f['createTableWalker'](_0x36bb85,{'startRow':0x0,'column':_0x381078,'includeAllSlots':!0x1}),_0x536536=Array['from'](_0x3bb499)['map'](_0x54c76d=>_0x5afdc3['createRangeOn'](_0x54c76d['cell']));_0x2130e5['markMultiRangeInsertion'](_0x536536,'tableColumn');});});}for(const _0x2c95f4 of['removeTableRow','removeTableColumn']){const _0x48146e=_0x2c95f4['substr'](0xb),_0x20c136=_0x48146e['toLowerCase'](),_0x44bb82=_0x20c136['substr'](0x0,0x3)+'span',_0x2ea9c3='table'+_0x48146e,_0x583048='min'+_0x48146e,_0x42e03a='max'+_0x48146e;_0x2130e5['enableCommand'](_0x2c95f4,()=>{_0x258919['model']['change'](_0x149c2e=>{const _0xe9c9f5=_0x3bb46f['getSelectionAffectedTableCells'](_0x5045bd),_0x544331=_0xe9c9f5[0x0]['findAncestor']('table');let _0x31af13;if('removeTableRow'==_0x2c95f4){const _0x12bc50=_0x3bb46f['getRowIndexes'](_0xe9c9f5);_0x31af13={'startRow':_0x12bc50['first'],'endRow':_0x12bc50['last'],'includeAllSlots':!0x0};}else{const _0x3adadc=_0x3bb46f['getColumnIndexes'](_0xe9c9f5);_0x31af13={'startColumn':_0x3adadc['first'],'endColumn':_0x3adadc['last'],'includeAllSlots':!0x0};}const _0x2aa5cd=_0x3bb46f['createTableWalker'](_0x544331,_0x31af13),_0x1b5114=Array['from'](_0x2aa5cd)['map'](({cell:_0x263aa3})=>_0x263aa3),_0x291a75=Ne(_0x1b5114['filter'](_0x5eaa01=>_0x5eaa01['hasAttribute'](_0x44bb82))),_0x558a45=Ne(_0x1b5114['filter'](_0x3b515c=>!_0x3b515c['hasAttribute'](_0x44bb82)))['map'](_0x531415=>_0x149c2e['createRangeOn'](_0x531415)),_0x198376=_0x2130e5['markMultiRangeDeletion'](_0x558a45,_0x2ea9c3);if(_0x198376&&('tableRow'==_0x198376['subType']||'tableColumn'==_0x198376['subType'])){const _0x541c41=this['_getSuggestionCoords'](_0x198376);for(const _0x36c24b of _0x291a75){const _0x12473a=_0x149c2e['createRangeOn'](_0x36c24b),_0xa008de=_0x3bb46f['getCellLocation'](_0x36c24b),_0x338082=_0x36c24b['getAttribute'](_0x44bb82)-0x1,_0x42e04e=_0x541c41[_0x583048],_0x21402d=_0x541c41[_0x42e03a];_0x42e04e<=_0xa008de[_0x20c136]&&_0xa008de[_0x20c136]+_0x338082<=_0x21402d&&_0x198376['addRange'](_0x12473a);}}});});}function _0x2e2a03(_0x294428){const _0x2bd28f=Array['from'](_0x5045bd['getRanges']())['map'](_0x42e4a7=>_0x114c36['fromRange'](_0x42e4a7));_0x258919['model']['change'](_0x19986c=>{const _0x5d8678=_0x19986c['batch'];_0x294428=_0x294428['filter'](_0x14845c=>'$graveyard'!=_0x14845c['root']['rootName']),_0x19986c['setSelection'](_0x294428),_0x258919['commands']['get']('removeTableRow')['refresh'](),_0x258919['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x258919['model']['enqueueChange'](()=>{_0x258919['model']['enqueueChange'](_0x5d8678,_0x44fa80=>{const _0x2c6647=_0x2bd28f['filter'](_0xc2f047=>'$graveyard'!=_0xc2f047['root']['rootName']);_0x2c6647['length']>0x0&&_0x44fa80['setSelection'](_0x2c6647);for(const _0x5bd6be of _0x2bd28f)_0x5bd6be['detach']();});});});}function _0x136cba(_0x253444){_0x258919['model']['change'](_0x130a42=>{const _0x51d7b2=Array['from'](_0x5045bd['getRanges']())['map'](_0x43bad7=>_0x114c36['fromRange'](_0x43bad7)),_0x5d591b=[];for(const _0x167d35 of _0x253444)for(const _0x4b8445 of _0x167d35['getItems']({'shallow':!0x0}))_0x5d591b['push'](_0x4b8445);for(const _0xcfc7ac of _0x5d591b)'$graveyard'!=_0xcfc7ac['root']['rootName']&&(_0x130a42['setSelection'](_0x130a42['createPositionAt'](_0xcfc7ac,0x0)),_0x258919['commands']['get']('removeTableColumn')['refresh'](),_0x258919['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xc27261=_0x51d7b2['filter'](_0x25fee9=>'$graveyard'!=_0x25fee9['root']['rootName']);_0xc27261['length']>0x0&&_0x130a42['setSelection'](_0xc27261);for(const _0x38faef of _0x51d7b2)_0x38faef['detach']();});}function _0x51f6e4(_0x5431a2,_0x56d4c1){return _0x56d4c1['every'](_0xbd4262=>_0x5431a2['some'](_0x10aa71=>_0x10aa71['end']['isEqual'](_0xbd4262['start'])||_0xbd4262['end']['isEqual'](_0x10aa71['start'])));}function _0x4e3181(_0x5bfc25,_0x1401c9){return!_0x5bfc25['some'](_0x37f568=>_0x1401c9['some'](_0x1b9398=>_0x37f568['isIntersecting'](_0x1b9398)))&&_0x5bfc25['some'](_0x2470b9=>_0x1401c9['some'](_0x3e13f0=>_0x2470b9['end']['isTouching'](_0x3e13f0['start'])));}_0x258919['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27a4dc,_0xed7b6d,_0x529ba8)=>{if(!_0x529ba8['options']['showSuggestionHighlights'])return;const _0x492113=_0xed7b6d['item'];if(!_0x492113)return;const _0x148790=_0x529ba8['mapper']['toViewElement'](_0x492113);function _0x1143a0(_0xfac316){return Array['isArray'](_0xfac316)?_0xfac316:[_0xfac316];}_0x148790&&'tableCell'===_0x492113['name']&&_0x58a981(_0x148790,_0x529ba8['writer'],(_0x2bdaca,_0x22dbb8,_0x4f8095)=>_0x4f8095['addClass'](_0x1143a0(_0x22dbb8['classes']),_0x2bdaca),(_0x39b598,_0x5b06b1,_0x3efcd0)=>_0x3efcd0['removeClass'](_0x1143a0(_0x5b06b1['classes']),_0x39b598));},{'priority':'highest'}),_0x2130e5['descriptionFactory']['registerDescriptionCallback'](_0x402e5b=>{if('insertion'!=_0x402e5b['type']&&'deletion'!=_0x402e5b['type'])return;const _0xd1baae=_0x402e5b['getContainedElement']();if(null!=_0xd1baae&&_0xd1baae['is']('element','table')){if('insertion'==_0x402e5b['type']){const _0x194454=_0x402e5b['getItems']()['filter'](_0x5a8f6c=>_0x5a8f6c['is']('$textProxy'))['map'](_0x54c489=>_0x54c489['data']);if(_0x194454['length'])return{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x194454['join']('\x20')+'\x22'))};}if('deletion'==_0x402e5b['type']){const _0x1384ce=_0x402e5b['getItems']()['filter'](_0x305a06=>_0x305a06['is']('$textProxy'))['map'](_0x54d3c9=>_0x54d3c9['data']);if(_0x1384ce['length'])return{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1384ce['join']('\x20')+'\x22'))};}}}),_0x2130e5['descriptionFactory']['registerDescriptionCallback'](_0x2303d2=>{if('tableRow'==_0x2303d2['subType']){const _0xee8180=_0x2303d2['getItems']()['filter'](_0x38df45=>_0x38df45['is']('$textProxy'))['map'](_0x513d7b=>_0x513d7b['data']),_0x19be8c=this['_getSuggestionCoords'](_0x2303d2),_0x1f5097=_0x19be8c['maxRow']-_0x19be8c['minRow']+0x1;if('insertion'==_0x2303d2['type'])return _0xee8180['length']?{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f5097,'\x22'+_0xee8180['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW',_0x1f5097))};if('deletion'==_0x2303d2['type'])return _0xee8180['length']?{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f5097,'\x22'+_0xee8180['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_ROW',_0x1f5097))};}if('tableColumn'==_0x2303d2['subType']){const _0x166f02=_0x2303d2['getItems']()['filter'](_0x3dc375=>_0x3dc375['is']('$textProxy'))['map'](_0x307bb5=>_0x307bb5['data']),_0x45ce8a=this['_getSuggestionCoords'](_0x2303d2),_0x407fa7=_0x45ce8a['maxColumn']-_0x45ce8a['minColumn']+0x1;if('insertion'==_0x2303d2['type'])return _0x166f02['length']?{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x407fa7,'\x22'+_0x166f02['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2c1946,'*Insert:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN',_0x407fa7))};if('deletion'==_0x2303d2['type'])return _0x166f02['length']?{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x407fa7,'\x22'+_0x166f02['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2c1946,'*Remove:*\x20%0',o(_0x2c1946,'ELEMENT_TABLE_COLUMN',_0x407fa7))};}}),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e2a03),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e2a03),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x136cba),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x136cba),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x51f6e4),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x51f6e4),_0x2130e5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4e3181),_0x2130e5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4e3181);}['_acceptFormatSuggestionCallbackFactory'](){const _0x18702c=this['editor'],_0xb94012=_0x18702c['model']['document']['selection'];return(_0x16d944,_0x50a806)=>{_0x18702c['model']['change'](_0x351b29=>{const {commandName:_0x25aa25,commandParams:_0x21c6a0}=_0x50a806;let _0x2d51bf=_0x16d944[0x0]['end']['nodeBefore'];_0x21c6a0&&_0x21c6a0[0x0]&&!0x1===_0x21c6a0[0x0]['forceValue']&&(_0x2d51bf=_0x16d944[0x0]['start']['nodeAfter']);const _0x4b2f72=_0x351b29['createRangeIn'](_0x2d51bf);if('$graveyard'==_0x4b2f72['root']['rootName'])return;const _0x433ef1=Array['from'](_0xb94012['getRanges']())['map'](_0xef5b75=>_0x114c36['fromRange'](_0xef5b75));_0x351b29['setSelection'](_0x4b2f72),_0x18702c['commands']['get'](_0x25aa25)['refresh'](),_0x21c6a0['push']({'forceDefaultExecution':!0x0}),_0x18702c['execute'](_0x25aa25,..._0x21c6a0);const _0x599a04=_0x433ef1['filter'](_0x22a089=>'$graveyard'!=_0x22a089['root']['rootName']);_0x599a04['length']>0x0&&_0x351b29['setSelection'](_0x599a04);for(const _0x5e4b33 of _0x433ef1)_0x5e4b33['detach']();});};}['_getCoordsForCells'](_0x2ec41a){const _0x4887f4=this['editor']['plugins']['get']('TableUtils');let _0x1b9b8e=Number['MAX_SAFE_INTEGER'],_0x449a85=Number['MIN_SAFE_INTEGER'],_0x4f7310=Number['MAX_SAFE_INTEGER'],_0x3a46cc=Number['MIN_SAFE_INTEGER'];for(const _0x5b445e of _0x2ec41a){if('$graveyard'==_0x5b445e['root']['rootName'])continue;const {row:_0x1ed611,column:_0x498f36}=_0x4887f4['getCellLocation'](_0x5b445e),_0x38472c=_0x5b445e['hasAttribute']('rowspan')?_0x5b445e['getAttribute']('rowspan')-0x1:0x0,_0x4800cb=_0x5b445e['hasAttribute']('colspan')?_0x5b445e['getAttribute']('colspan')-0x1:0x0;_0x1b9b8e=_0x1ed611<_0x1b9b8e?_0x1ed611:_0x1b9b8e,_0x449a85=_0x1ed611+_0x38472c>_0x449a85?_0x1ed611+_0x38472c:_0x449a85,_0x4f7310=_0x498f36<_0x4f7310?_0x498f36:_0x4f7310,_0x3a46cc=_0x498f36+_0x4800cb>_0x3a46cc?_0x498f36+_0x4800cb:_0x3a46cc;}return{'minRow':_0x1b9b8e,'maxRow':_0x449a85,'minColumn':_0x4f7310,'maxColumn':_0x3a46cc};}['_setupColumnsRowsFixing'](){const _0x20a388=this['editor'],_0x25fd55=_0x20a388['plugins']['get']('TrackChangesEditing'),_0x7d5333=_0x20a388['plugins']['get']('TableUtils');_0x20a388['model']['document']['on']('change:data',()=>{const _0x42e9a5=Array['from'](_0x20a388['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30e456,data:_0x5055f3}of _0x42e9a5){const {group:_0x3789cb,id:_0x50a9c7,subType:_0xcf8ad3}=_0x25fd55['_splitMarkerName'](_0x30e456);if('suggestion'!=_0x3789cb)continue;if(null!=_0x5055f3['oldRange'])continue;const _0x3aad43=_0x25fd55['getSuggestion'](_0x50a9c7);this['_tablePostFixingSubtypes']['includes'](_0xcf8ad3)&&this['_tableSuggestions']['add'](_0x3aad43);}},{'priority':'low'});const _0xa9624a=(_0x2fa014,_0x342b93)=>{let _0x5cd789=!0x1;const _0x32d763=_0x342b93['createRangeOn'](_0x2fa014),_0x17e7fb=_0x2fa014['findAncestor']('table'),_0x1ca9cb=_0x7d5333['getCellLocation'](_0x2fa014);for(const _0x836844 of this['_tableSuggestions']){const _0x564e90=_0x836844['subType'],_0x4df469=_0x564e90['startsWith']('tablePaste'),_0x354aca=_0x564e90['substr'](_0x4df469?0xa:0x5),_0x4c8a1e=_0x354aca['toLowerCase'](),_0x1e145b=_0x4c8a1e['substr'](0x0,0x3)+'span',_0x1b33fb='min'+_0x354aca,_0xbf9510='max'+_0x354aca;if(!_0x836844['isInContent'])continue;if(_0x17e7fb!=_0x836844['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x836844['isIntersectingWithRange'](_0x32d763))continue;const _0x4ba00c=_0x2fa014['hasAttribute'](_0x1e145b)?_0x2fa014['getAttribute'](_0x1e145b)-0x1:0x0,_0x5dd590=this['_getSuggestionCoords'](_0x836844),_0x185ab5=_0x5dd590[_0x1b33fb],_0x44f4de=_0x5dd590[_0xbf9510];_0x185ab5<=_0x1ca9cb[_0x4c8a1e]&&_0x1ca9cb[_0x4c8a1e]+_0x4ba00c<=_0x44f4de&&(_0x836844['addRange'](_0x32d763),_0x5cd789=!0x0);}return _0x5cd789;};_0x20a388['model']['document']['registerPostFixer'](_0x54db7c=>{let _0x513209=!0x1;for(const _0x483d9c of _0x20a388['model']['document']['differ']['getChanges']())if('insert'==_0x483d9c['type']){if('tableRow'==_0x483d9c['name']){for(const _0x2f655f of _0x483d9c['position']['nodeAfter']['getChildren']())_0x513209=_0x513209||_0xa9624a(_0x2f655f,_0x54db7c);}else'tableCell'==_0x483d9c['name']&&(_0x513209=_0x513209||_0xa9624a(_0x483d9c['position']['nodeAfter'],_0x54db7c));}return _0x513209;});}['_getSuggestionCoords'](_0x29f7ed){return this['_getCoordsForCells'](_0x29f7ed['getRanges']()['map'](_0x282da0=>_0x282da0['start']['nodeAfter']));}}function Ne(_0x38a816){return Array['from'](new Set(_0x38a816)['values']());}class _t extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0x4659c9=this['editor'],_0x6f5da4=_0x4659c9['model']['document']['selection'],_0x2becc0=_0x4659c9['locale'];if(!_0x4659c9['plugins']['has']('TableEditing'))return;const _0x5557df=_0x4659c9['plugins']['get']('TrackChangesEditing'),_0x494332=_0x4659c9['plugins']['get']('TableUtils'),_0x41318e=_0x4659c9['plugins']['get'](vt);_0x41318e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5557df['enableCommand']('mergeTableCells',()=>{const _0x18d4e7=_0x494332['getSelectionAffectedTableCells'](_0x4659c9['model']['document']['selection']);_0x4659c9['model']['change'](()=>{_0x5557df['markMultiRangeBlockFormat'](_0x18d4e7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4659c9['commands']['get']('mergeTableCells')['on']('execute',(_0x5f0978,_0x4c93d1)=>{_0x4659c9['commands']['get']('trackChanges')['value']&&(_0x4c93d1['length']>0x0&&_0x4c93d1[_0x4c93d1['length']-0x1]&&_0x4c93d1[_0x4c93d1['length']-0x1]['forceDefaultExecution']||_0x5557df['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5f0978['stop']());},{'priority':'highest'});for(const _0x2f471d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1dbc5=_0x4659c9['commands']['get'](_0x2f471d);_0x5557df['enableCommand'](_0x2f471d,()=>{const _0x565e13=_0x4659c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5c6883=>_0x5c6883['is']('element','tableCell')),_0x5e468f=_0x1dbc5['value'];_0x4659c9['model']['change'](()=>{_0x5557df['markMultiRangeBlockFormat']([_0x565e13,_0x5e468f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3642da of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3bfd21=_0x4659c9['commands']['get'](_0x3642da);_0x5557df['enableCommand'](_0x3642da,()=>{const _0x5dfb36=_0x494332['getSelectionAffectedTableCells'](_0x4659c9['model']['document']['selection'])[0x0],_0x467ac5=_0x5dfb36['findAncestor']('table'),{column:_0x30d614,row:_0x249800}=_0x494332['getCellLocation'](_0x5dfb36);let _0x13e6a0=[];if('horizontally'==_0x3bfd21['direction']){const _0x174879=_0x494332['createTableWalker'](_0x467ac5,{'startRow':_0x249800,'endRow':_0x249800,'includeAllSlots':!0x0});_0x13e6a0=Array['from'](_0x174879)['map'](_0x57a7a2=>_0x57a7a2['cell']);}else{const _0x150327=_0x494332['createTableWalker'](_0x467ac5,{'column':_0x30d614,'includeAllSlots':!0x0});_0x13e6a0=Array['from'](_0x150327)['map'](_0x5d19f9=>_0x5d19f9['cell']);}_0x4659c9['model']['change'](_0x2c12c8=>{_0x5557df['markBlockFormat'](_0x2c12c8['createRangeOn'](_0x5dfb36),{'commandName':_0x3642da,'commandParams':[]},_0x13e6a0,_0x3642da);});});}_0x5557df['descriptionFactory']['registerDescriptionCallback'](_0x377068=>{if('formatBlock'!=_0x377068['type']&&'formatInline'!=_0x377068['type'])return;const {data:_0x3e38ae}=_0x377068;return _0x3e38ae&&'mergeTableCells'==_0x3e38ae['commandName']?{'type':'format','content':o(_0x2becc0,'*Merge\x20cells*')}:void 0x0;}),_0x5557df['descriptionFactory']['registerDescriptionCallback'](_0x3f5fae=>{if('formatBlock'!=_0x3f5fae['type']&&'formatInline'!=_0x3f5fae['type'])return;const {data:_0x359103}=_0x3f5fae;return _0x359103?'splitTableCellVertically'==_0x359103['commandName']?{'type':'format','content':o(_0x2becc0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x359103['commandName']?{'type':'format','content':o(_0x2becc0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x440d0f=_0x41318e['_acceptFormatSuggestionCallbackFactory']();for(const _0x112fdb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5557df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x112fdb,'accept',_0x440d0f);for(const _0x336eab of['splitTableCellVertically','splitTableCellHorizontally'])_0x5557df['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x336eab,'accept',_0x440d0f);_0x5557df['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4c156e=>{_0x4659c9['model']['change'](_0x219fec=>{const _0x4ee621=Array['from'](_0x6f5da4['getRanges']())['map'](_0x2566e5=>_0x114c36['fromRange'](_0x2566e5));_0x219fec['setSelection'](_0x4c156e),_0x4659c9['commands']['get']('mergeTableCells')['refresh'](),_0x4659c9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x45a6cc=_0x4ee621['filter'](_0x253705=>'$graveyard'!=_0x253705['root']['rootName']);_0x45a6cc['length']>0x0&&_0x219fec['setSelection'](_0x45a6cc);for(const _0x26e662 of _0x4ee621)_0x26e662['detach']();});});for(const _0x39cd18 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x23c2ea=_0x4659c9['commands']['get'](_0x39cd18);_0x23c2ea['on']('set:isEnabled',(_0x531d70,_0xa68ac2,_0x2f714a)=>{if(_0x2f714a){const _0x1559ce=_0x4659c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x15eeab=>_0x15eeab['is']('element','tableCell'));this['_areMergableCells'](_0x23c2ea['value'],_0x1559ce)||(_0x531d70['return']=!0x1,_0x531d70['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x42bba1=this['editor']['commands']['get']('mergeTableCells'),_0x2a0031=this['editor']['plugins']['get']('TableUtils');if(!_0x42bba1['isEnabled'])return!0x1;const _0x19e19e=_0x2a0031['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1b90d3 of _0x19e19e)for(const _0x36e32c of _0x19e19e)if(_0x1b90d3!=_0x36e32c&&!this['_areMergableCells'](_0x1b90d3,_0x36e32c))return!0x1;return!0x0;}['_areMergableCells'](_0x17c559,_0x12a7ef){const _0x209f7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bdc69=this['editor']['model']['createRangeOn'](_0x17c559),_0x98c8f7=this['editor']['model']['createRangeOn'](_0x12a7ef),_0x3b42f6=new Set(),_0x568195=new Set();for(const _0x18162f of _0x209f7f['getSuggestions']())if(('insertion'==_0x18162f['type']||'deletion'==_0x18162f['type']||'mergeTableCells'==_0x18162f['subType'])&&_0x18162f['isInContent']){for(const _0x807fbd of _0x18162f['getRanges']())_0x807fbd['containsRange'](_0x4bdc69,!0x0)&&_0x3b42f6['add'](_0x18162f['type']+':'+_0x18162f['author']['id']),_0x807fbd['containsRange'](_0x98c8f7,!0x0)&&_0x568195['add'](_0x18162f['type']+':'+_0x18162f['author']['id']);}if(_0x3b42f6['size']!=_0x568195['size'])return!0x1;for(const _0x1396a4 of _0x3b42f6)if(!_0x568195['has'](_0x1396a4))return!0x1;return!0x0;}}class Ct extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0xf75533=this['editor'];if(!_0xf75533['plugins']['has']('TableEditing'))return;const _0x529006=_0xf75533['locale'],_0x5e9e8b=_0xf75533['plugins']['get']('TrackChangesEditing');_0x5e9e8b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e9e8b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e9e8b['registerBlockAttribute']('headingRows'),_0x5e9e8b['registerBlockAttribute']('headingColumns'),_0x5e9e8b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x529006,'FORMAT_HEADER_ROW')),_0x5e9e8b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x529006,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe80839=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cf1f1=this['editor']['plugins']['get']('TableUtils'),_0x2b080c=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x46efa9({showActiveMarker:_0x5ab9d1=!0x0,setDataAttribute:_0x5661fb=!0x0}={}){return(_0x3348b1,_0x13d9fa,_0x319c0f)=>{const {type:_0x19dfe9,id:_0x5da1f8}=_0xe80839['_splitMarkerName'](_0x13d9fa['markerName']),_0x501717=_0xe80839['getSuggestion'](_0x5da1f8),_0x192dfe=_0x501717['data'];if('formatBlock'!=_0x501717['type']||!_0x192dfe||'setTableColumnHeader'!=_0x192dfe['commandName'])return;if(_0x13d9fa['item'])return void _0x3348b1['stop']();if(!_0x319c0f['consumable']['consume'](_0x13d9fa['markerRange'],_0x3348b1['name']))return;const _0xa558ac=_0x13d9fa['markerRange']['start']['nodeAfter'],_0x511573=_0x13d9fa['markerRange']['end']['nodeBefore'],_0x88c0e0=_0xa558ac['parent']['parent'],{column:_0x2e10de}=_0x3cf1f1['getCellLocation'](_0xa558ac),{column:_0x202d2a}=_0x3cf1f1['getCellLocation'](_0x511573);for(let _0x37739b=_0x2e10de;_0x37739b<=_0x202d2a;_0x37739b++){const _0x487209=_0x3cf1f1['createTableWalker'](_0x88c0e0,{'column':_0x37739b,'includeAllSlots':!0x1});for(const _0x5aa26e of _0x487209){const _0x2a953e=_0x5aa26e['cell'],_0xb4c1b8=_0x319c0f['mapper']['toViewElement'](_0x2a953e);_0x319c0f['writer']['addClass']('ck-suggestion-marker-'+_0x19dfe9,_0xb4c1b8),_0x5661fb&&_0x319c0f['writer']['setAttribute']('data-suggestion',_0x5da1f8,_0xb4c1b8),_0x319c0f['mapper']['bindElementToMarker'](_0xb4c1b8,_0x13d9fa['markerName']),_0x5ab9d1&&(_0xe80839['activeMarkers']['includes'](_0x13d9fa['markerName'])?_0x319c0f['writer']['addClass']('ck-suggestion-marker--active',_0xb4c1b8):_0x319c0f['writer']['removeClass']('ck-suggestion-marker--active',_0xb4c1b8));}}};}_0xe80839['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2b080c),_0xe80839['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2b080c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46efa9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x16be59,_0x3aa403,_0x240f1a)=>{_0x240f1a['options']['showSuggestionHighlights']&&_0x46efa9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x16be59,_0x3aa403,_0x240f1a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x259f0d,_0x169a1b,_0x31a777)=>{const {type:_0x5cd98c,id:_0x397240}=_0xe80839['_splitMarkerName'](_0x169a1b['markerName']),_0x3f5452=_0xe80839['getSuggestion'](_0x397240),_0x7e9f5f=_0x3f5452['data'];if('formatBlock'!=_0x3f5452['type']||!_0x7e9f5f||'setTableColumnHeader'!=_0x7e9f5f['commandName'])return;const _0x2dac31=_0x31a777['mapper']['markerNameToElements'](_0x169a1b['markerName']);if(_0x2dac31){for(const _0x2b65e9 of _0x2dac31)_0x31a777['writer']['removeClass']('ck-suggestion-marker-'+_0x5cd98c,_0x2b65e9),_0x31a777['writer']['removeClass']('ck-suggestion-marker--active',_0x2b65e9),_0x31a777['writer']['removeAttribute']('data-suggestion',_0x2b65e9),_0x31a777['mapper']['unbindElementFromMarkerName'](_0x2b65e9,_0x169a1b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x228825=this['editor'],_0x59677f=_0x228825['locale'];function _0x4255b7(_0x364915){return{'type':'format','content':o(_0x59677f,'*Format:*\x20%0',_0x364915)};}_0x228825['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xec4ef8=>{if('formatBlock'!=_0xec4ef8['type'])return;const {data:_0x418bd8}=_0xec4ef8;if(_0x418bd8){if('setTableRowHeader'==_0x418bd8['commandName']){const _0x398102=_0x418bd8['commandParams'][0x0]['forceValue'];return _0x4255b7(o(_0x59677f,_0x398102?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x418bd8['commandName']){const _0x4ac18a=_0x418bd8['commandParams'][0x0]['forceValue'];return _0x4255b7(o(_0x59677f,_0x4ac18a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3854d2=>[_0x3854d2,null]));class Nt extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0x5a385d=this['editor'];if(!_0x5a385d['plugins']['has']('TableClipboard'))return;const _0x42fd4d=_0x5a385d['plugins']['get']('TrackChangesEditing'),_0x1d269d=_0x5a385d['plugins']['get']('TableUtils'),_0x212eac=_0x5a385d['plugins']['get'](vt),_0x1bd0c8=_0x5a385d['plugins']['get']('TableClipboard');_0x212eac['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5a385d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5a385d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x17b6e6=null;_0x5a385d['model']['on']('insertContent',(_0x403dff,_0x4c98ee)=>{const [_0x362a1c,_0x1f2f17]=_0x4c98ee,_0x3be23e=_0x4c98ee[_0x4c98ee['length']-0x1];_0x3be23e&&_0x3be23e['forceDefaultExecution']||_0x42fd4d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3ade5e,_0x457060,_0x22634f,_0x4d5363,_0x37a30a){if(_0x457060&&!_0x457060['is']('documentSelection'))return!0x1;const _0x39c9ae=_0x37a30a['getTableIfOnlyTableInContent'](_0x3ade5e,_0x22634f);if(!_0x39c9ae||!Ue(_0x39c9ae,void 0x0,_0x4d5363))return!0x1;const _0x5f182d=_0x4d5363['getSelectionAffectedTableCells'](_0x22634f['document']['selection']);if(!_0x5f182d['length'])return!0x1;const _0x558b0b=_0x5f182d[0x0]['findAncestor']('table'),_0x3a48b5=_0x4d5363['getRowIndexes'](_0x5f182d),_0x2a86ac=_0x4d5363['getColumnIndexes'](_0x5f182d),_0x4e72cd={'startRow':_0x3a48b5['first'],'endRow':_0x3a48b5['last'],'startColumn':_0x2a86ac['first'],'endColumn':_0x2a86ac['last']};return 0x1==_0x5f182d['length']&&(_0x4e72cd['endRow']+=_0x4d5363['getRows'](_0x39c9ae)-0x1,_0x4e72cd['endColumn']+=_0x4d5363['getColumns'](_0x39c9ae)-0x1),Ue(_0x558b0b,_0x4e72cd,_0x4d5363);}(_0x362a1c,_0x1f2f17,_0x5a385d['model'],_0x1d269d,_0x1bd0c8)&&(_0x403dff['stop'](),_0x17b6e6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5a385d['model']['change'](()=>{_0x5a385d['model']['insertContent'](_0x4c98ee[0x0],_0x4c98ee[0x1],_0x4c98ee[0x2],{'forceDefaultExecution':!0x0});const _0x152f12=_0x2cd620(),{rowInsertionRanges:_0x532dd7,columnInsertionRanges:_0x41bf5d,insertionRanges:_0x5b956d,deletionRanges:_0x16282b,cells:_0x232532}=_0x17b6e6;_0x532dd7['length']&&_0x42fd4d['markMultiRangeInsertion'](_0x532dd7,'tablePasteRow',{'tablePasteChainId':_0x152f12}),_0x41bf5d['length']&&_0x42fd4d['markMultiRangeInsertion'](_0x41bf5d,'tablePasteColumn',{'tablePasteChainId':_0x152f12}),_0x5b956d['length']&&(_0x42fd4d['markMultiRangeInsertion'](_0x5b956d,'tablePaste',{'tablePasteChainId':_0x152f12,'skipNestingCheck':!0x0}),_0x5b956d['forEach'](_0x431979=>_0x431979['detach']?.())),_0x16282b['length']&&(_0x42fd4d['markMultiRangeDeletion'](_0x16282b,'tablePaste',{'tablePasteChainId':_0x152f12,'skipNestingCheck':!0x0}),_0x16282b['forEach'](_0x42b902=>_0x42b902['detach']?.()));const _0x3eb6e2=_0x42fd4d['markMultiRangeBlockFormat'](_0x232532['map'](({element:_0x337779})=>_0x337779),{'formatGroupId':_0x2cd620()},[],'tablePasteCell',{'tablePasteChainId':_0x152f12});if(_0x3eb6e2){const _0x143aed=_0x3eb6e2['getMarkers'](),_0x4ae5bf=[];for(const {element:_0x10a27c,attributes:_0xb4941f}of _0x232532){if(!_0xb4941f)continue;const _0x593d02=_0x5a385d['model']['createRangeOn'](_0x10a27c),_0x3600b5=_0x143aed['find'](_0x45b5d4=>_0x45b5d4['getRange']()['isEqual'](_0x593d02));_0x3600b5&&_0x4ae5bf['push']([_0x3600b5['name'],_0xb4941f]);}_0x4ae5bf['length']&&_0x3eb6e2['setAttribute']('markerAttributes',Object['fromEntries'](_0x4ae5bf));}_0x17b6e6=null;}));},{'priority':_0x4368d6['high']+0xa}),_0x5a385d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x59601e,_0x183157)=>{const [_0x112b2e,_0x11ad9c,,_0x4c5a76]=_0x183157;if(!_0x17b6e6)return;_0x59601e['stop']();const _0x1f0420=_0x112b2e['cell'],_0x5709c6=_0x11ad9c,_0x3b8370=Oe(_0x1f0420),_0x3d858f=Oe(_0x5709c6);_0x59601e['return']=_0x1f0420;let _0x1029aa=null,_0x7211b6=null;if(_0x3d858f||_0x3b8370){if(_0x3b8370&&!_0x3d858f){_0x4c5a76['remove'](_0x1f0420['getChild'](0x0));for(const _0x44d6ff of Array['from'](_0x5709c6['getChildren']()))_0x4c5a76['insert'](_0x44d6ff,_0x1f0420,'end');const _0xc3c547=_0x17b6e6['rowInsertionIndexes']['includes'](_0x112b2e['row']),_0x3224b3=_0x17b6e6['columnInsertionIndexes']['includes'](_0x112b2e['column']);_0xc3c547||_0x3224b3||(_0x1029aa=_0x114c36['fromRange'](_0x4c5a76['createRangeIn'](_0x1f0420)));}else _0x3d858f&&!_0x3b8370&&(_0x7211b6=_0x4c5a76['createRangeIn'](_0x1f0420));}else{const _0x3f2fad=_0x4c5a76['createElement']('tableCellSuggestion'),_0x3ce1e0=_0x4c5a76['createElement']('tableCellSuggestion');_0x4c5a76['wrap'](_0x4c5a76['createRangeIn'](_0x1f0420),_0x3ce1e0),_0x4c5a76['insert'](_0x3f2fad,_0x1f0420,0x0);for(const _0x2ca5b9 of Array['from'](_0x5709c6['getChildren']()))_0x4c5a76['insert'](_0x2ca5b9,_0x3f2fad,'end');_0x1029aa=_0x114c36['fromRange'](_0x4c5a76['createRangeOn'](_0x3f2fad)),_0x7211b6=_0x114c36['fromRange'](_0x4c5a76['createRangeOn'](_0x3ce1e0));}const _0x49fd8d=Array['from'](_0x5709c6['getAttributes']())['filter'](([_0x1551c7])=>Be['includes'](_0x1551c7));_0x17b6e6['cells']['push']({'element':_0x1f0420,'attributes':_0x49fd8d['length']?Object['fromEntries'](_0x49fd8d):null}),_0x1029aa&&_0x17b6e6['insertionRanges']['push'](_0x1029aa),_0x7211b6&&_0x17b6e6['deletionRanges']['push'](_0x7211b6);},{'priority':'high'}),_0x1d269d['on']('insertColumns',(_0x244d09,_0x3e212f)=>{const [_0xf9ee7e,_0x56e850={}]=_0x3e212f;if(!_0x17b6e6)return;const _0x138714=_0x56e850['at']||0x0,_0x25624b=_0x56e850['columns']||0x1;_0x17b6e6['columnInsertionIndexes']=new Array(_0x25624b)['fill'](_0x138714)['map']((_0x48a218,_0x49c51a)=>_0x48a218+_0x49c51a);for(const {cell:_0x528f8c}of _0x1d269d['createTableWalker'](_0xf9ee7e,{'startColumn':_0x138714,'endColumn':_0x138714+_0x25624b-0x1}))_0x17b6e6['columnInsertionRanges']['push'](_0x5a385d['model']['createRangeOn'](_0x528f8c));},{'priority':'low'}),_0x1d269d['on']('insertRows',(_0x10764d,_0x1fc9d8)=>{const [_0x256b6a,_0x4b7a98={}]=_0x1fc9d8;if(!_0x17b6e6)return;const _0x55faab=_0x4b7a98['at']||0x0,_0x4724da=_0x4b7a98['rows']||0x1;_0x17b6e6['rowInsertionIndexes']=new Array(_0x4724da)['fill'](_0x55faab)['map']((_0x33f6b0,_0x2d7c0a)=>_0x33f6b0+_0x2d7c0a);for(const {cell:_0x22d5ee}of _0x1d269d['createTableWalker'](_0x256b6a,{'startRow':_0x55faab,'endRow':_0x55faab+_0x4724da-0x1}))_0x17b6e6['rowInsertionRanges']['push'](_0x5a385d['model']['createRangeOn'](_0x22d5ee));},{'priority':'low'}),_0x42fd4d['descriptionFactory']['registerDescriptionCallback'](_0x40bdd=>{if(_0x40bdd['subType']&&_0x40bdd['subType']['startsWith']('tablePaste'))return _0x40bdd['previous']?{}:{'type':'insertion','content':o(_0x5a385d['locale'],'*Replace\x20table\x20cells*')};});const _0x47ea7f=()=>!0x1;for(const _0x30eeaf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x42fd4d['_suggestionFactory']['registerCustomCallback']('insertion',_0x30eeaf,'join',_0x47ea7f),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('deletion',_0x30eeaf,'join',_0x47ea7f),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30eeaf,'join',_0x47ea7f);_0x42fd4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x47ea7f),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1876de,_0x57ef06,_0x4d02ca)=>{const _0x20da2b=_0x1876de['map'](_0x22a29f=>_0x22a29f['getContainedElement']())['filter'](_0x3ea483=>_0x3ea483),_0x4b9790=new Map(_0x20da2b['map'](_0x397a90=>[_0x397a90,null]));if(_0x17b6e6){for(const {element:_0x293a8e,attributes:_0xa920d7}of _0x17b6e6['cells'])_0xa920d7&&_0x4b9790['set'](_0x293a8e,_0xa920d7);}else{if(_0x4d02ca&&_0x4d02ca['markerAttributes'])for(const [_0x29ddf6,_0x40e7e5]of Object['entries'](_0x4d02ca['markerAttributes'])){const _0x41ba70=_0x5a385d['model']['markers']['get'](_0x29ddf6),_0x1992e9=_0x41ba70?_0x41ba70['getRange']()['getContainedElement']():null;_0x1992e9&&_0x4b9790['set'](_0x1992e9,_0x40e7e5);}}_0x5a385d['model']['change'](_0x1bc3fb=>{for(const [_0x273e32,_0x4c2639]of _0x4b9790)_0x1bc3fb['setAttributes']({...xe,..._0x4c2639},_0x273e32);});});const _0x276642=(_0x452220,_0x3d09da)=>{_0x42fd4d['_suggestionFactory']['registerCustomCallback'](_0x452220,'tablePaste',_0x3d09da,(_0x2a6eea,_0x14484a,_0x3afd51)=>{_0x5a385d['model']['change'](_0x4750c0=>{const _0x30f671=[];for(const _0x5bfdbb of _0x2a6eea){const _0x4299ae=_0x5bfdbb['start']['nodeAfter'];_0x4299ae['is']('element','tableCellSuggestion')&&_0x30f671['push'](_0x4299ae);}_0x42fd4d['_suggestionFactory']['getSuggestionCallback'](_0x452220,null,_0x3d09da)(_0x2a6eea,_0x14484a,_0x3afd51);for(const _0x236f76 of _0x30f671)'$graveyard'!=_0x236f76['root']['rootName']&&_0x4750c0['unwrap'](_0x236f76);});});};_0x276642('insertion','accept'),_0x276642('insertion','discard'),_0x276642('deletion','accept'),_0x276642('deletion','discard'),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x21188f=>{const _0xaf221a=_0x21188f['map'](_0x4c2ecd=>_0x4c2ecd['getContainedElement']()),_0x911281=_0xaf221a[0x0]['findAncestor']('table'),{minRow:_0x4a09f6,maxRow:_0x481377}=_0x212eac['_getCoordsForCells'](_0xaf221a);_0x1d269d['removeRows'](_0x911281,{'at':_0x4a09f6,'rows':_0x481377-_0x4a09f6+0x1});}),_0x42fd4d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x140e23=>{const _0x4eeead=_0x140e23['map'](_0x554c64=>_0x554c64['getContainedElement']()),_0x527144=_0x4eeead[0x0]['findAncestor']('table'),{minColumn:_0x49720f,maxColumn:_0x87d78a}=_0x212eac['_getCoordsForCells'](_0x4eeead);_0x1d269d['removeColumns'](_0x527144,{'at':_0x49720f,'columns':_0x87d78a-_0x49720f+0x1});});const _0x5f03bc=(_0x1e62f7,_0x5cde28)=>{if(!_0x5cde28['subType']||!_0x5cde28['subType']['startsWith']('tablePaste'))return;const _0x200fdc=_0x5cde28['attributes']['tablePasteChainId'],_0x683418=_0x42fd4d['getSuggestions']()['filter'](_0x5021cc=>_0x5021cc['isInContent']&&_0x5021cc['attributes']&&_0x5021cc['attributes']['tablePasteChainId']==_0x200fdc);_0x683418['length']&&_0x5cde28['getAllAdjacentSuggestions']()['length']!=_0x683418['length']&&_0x683418['reduce']((_0x2c1936,_0x47cd63)=>(_0x2c1936['next']=_0x47cd63,_0x47cd63['previous']=_0x2c1936,_0x47cd63));};function _0x229622(_0x2f9a05,_0x538f2c=!0x0){const {id:_0x5bf832,authorId:_0x4f2a18}=_0x42fd4d['_splitMarkerName'](_0x2f9a05['markerName']),_0x5585e3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4b711b=_0x42fd4d['activeMarkers']['includes'](_0x2f9a05['markerName']);return _0x4b711b&&_0x5585e3['push']('ck-suggestion-marker--active'),{'classes':_0x5585e3,'attributes':{'data-suggestion':_0x5bf832,'data-author-id':_0x4f2a18},'priority':_0x4b711b&&_0x538f2c?0xbc2:0xbb8};}_0x42fd4d['on']('suggestionLoaded',_0x5f03bc,{'priority':'high'}),_0x42fd4d['on']('suggestionUnloaded',_0x5f03bc,{'priority':'high'}),_0x5a385d['model']['document']['registerPostFixer'](()=>{let _0x57814e=!0x1;const _0x22c902=Array['from'](_0x5a385d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e3f02,data:_0x47db65}of _0x22c902){const {group:_0x3bb48d,type:_0x327390,id:_0x13a4bf}=_0x42fd4d['_splitMarkerName'](_0x4e3f02);if('suggestion'!=_0x3bb48d||'deletion'!=_0x327390||_0x47db65['oldRange'])continue;if(!_0x42fd4d['hasSuggestion'](_0x13a4bf))continue;const _0x48e1cf=_0x42fd4d['getSuggestion'](_0x13a4bf)['getRanges'](),_0xf47848=_0x5a385d['plugins']['get']('Users')['me'];for(const _0x12ca9b of _0x42fd4d['getSuggestions']()){if(!_0x12ca9b['isInContent']||_0x12ca9b['author']!=_0xf47848)continue;if('formatBlock'!=_0x12ca9b['type']||'tablePasteCell'!=_0x12ca9b['subType'])continue;if(_0x12ca9b['getRanges']()['every'](_0x341a43=>_0x48e1cf['some'](_0xcb6fdf=>_0xcb6fdf['containsRange'](_0x341a43,!0x0)))){for(const _0xeb2718 of _0x12ca9b['getAllAdjacentSuggestions']())_0xeb2718['isInContent']&&(_0xeb2718['discard'](),_0x57814e=!0x0);}}}return _0x57814e;}),_0x5a385d['model']['document']['registerPostFixer'](_0x18b813=>{const _0x1c874d=_0x5a385d['commands']['get']('redo');if(!_0x1c874d||!_0x1c874d['_createdBatches']['has'](_0x18b813['batch']))return!0x1;let _0x3e022c=!0x1;const _0x14b591=_0x5a385d['plugins']['get']('Users')['me'],_0x365642=_0x5a385d['model']['document']['differ']['getChanges'](),_0x203f06=Array['from'](_0x5a385d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5e75fb,data:_0x4ad02b})=>{const {group:_0x2fb44c,subType:_0x4c1f1c,authorId:_0x31689f}=_0x42fd4d['_splitMarkerName'](_0x5e75fb);return'suggestion'==_0x2fb44c&&'tablePaste'==_0x4c1f1c&&_0x31689f==_0x14b591['id']&&!_0x4ad02b['oldRange'];});for(const _0x4f6c37 of _0x365642){if('insert'!=_0x4f6c37['type']||'tableCellSuggestion'!=_0x4f6c37['name']||0x1!=_0x4f6c37['length'])continue;const _0x3ab8da=_0x18b813['createRange'](_0x4f6c37['position'],_0x4f6c37['position']['getShiftedBy'](0x1));if(!_0x203f06['find'](({data:_0x539e5c})=>_0x539e5c['newRange']['isEqual'](_0x3ab8da))){for(const {name:_0x29220b,data:_0x3a2f78}of _0x203f06)if(_0x3ab8da['containsRange'](_0x3a2f78['newRange'])){_0x18b813['updateMarker'](_0x29220b,{'range':_0x3ab8da}),_0x3e022c=!0x0;break;}}}return _0x3e022c;}),_0x5a385d['model']['document']['registerPostFixer'](_0x2fab6c=>{let _0x5e37f4=!0x1;const _0x5b66b4=_0x5a385d['plugins']['get']('Users')['me'],_0x150eb8=_0x42fd4d['getSuggestions']()['filter'](_0x52ede=>_0x52ede['isInContent']&&_0x52ede['author']==_0x5b66b4),_0x2601c7=new Set(),_0x48a227=new Set();for(const _0x1c9e92 of _0x150eb8)if('tablePaste'==_0x1c9e92['subType'])for(const _0x11f462 of _0x1c9e92['getMarkers']()){const _0x153b84=_0x11f462['getRange']()['getContainedElement']();if(_0x153b84){if(_0x153b84['is']('element','tableCellSuggestion')&&Oe(_0x153b84)){_0x1c9e92['removeMarker'](_0x11f462['name']),_0x2601c7['add'](_0x153b84),_0x5e37f4=!0x0;const _0x47459c=_0x153b84['nextSibling'],_0x22eb14=_0x153b84['previousSibling'],_0x3d698d=_0x47459c&&_0x47459c['is']('element','tableCellSuggestion'),_0x207d4b=_0x22eb14&&_0x22eb14['is']('element','tableCellSuggestion');_0x3d698d&&!_0x2601c7['has'](_0x47459c)&&_0x48a227['add'](_0x47459c),_0x207d4b&&!_0x2601c7['has'](_0x22eb14)&&_0x48a227['add'](_0x22eb14);}else _0x153b84['is']('element','paragraph')&&_0x153b84['isEmpty']&&(_0x1c9e92['removeMarker'](_0x11f462['name']),_0x5e37f4=!0x0);}}else{if('tablePasteCell'==_0x1c9e92['subType']){if(!_0x1c9e92['attributes']||!_0x1c9e92['attributes']['tablePasteChainId'])continue;const _0x44734e=_0x1c9e92['attributes']['markerAttributes'];if(_0x44734e&&Object['keys'](_0x44734e)['length'])continue;const _0x334cde=_0x1c9e92['attributes']['tablePasteChainId'];let _0x405ebb=!0x0,_0x22f419=!0x0;for(const _0x4e20ab of _0x150eb8)if(_0x4e20ab['subType']&&_0x4e20ab['subType']['startsWith']('tablePaste')){if(!_0x4e20ab['attributes']['tablePasteChainId']){_0x22f419=!0x1;break;}if(_0x4e20ab['id']!=_0x1c9e92['id']&&_0x4e20ab['attributes']['tablePasteChainId']==_0x334cde){_0x405ebb=!0x1;break;}}_0x22f419&&_0x405ebb&&(_0x1c9e92['removeMarkers'](),_0x5e37f4=!0x0);}}for(const _0x3dc734 of _0x2601c7)_0x2fab6c['remove'](_0x3dc734);for(const _0x43bd09 of _0x48a227)_0x2fab6c['unwrap'](_0x43bd09);return _0x5e37f4;}),_0x5a385d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x17b15f=>_0x229622(_0x17b15f),'converterPriority':'high'}),_0x5a385d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xcfcec8,_0x424f2b)=>_0x424f2b['options']['showSuggestionHighlights']?_0x229622(_0xcfcec8,!0x1):null,'converterPriority':'high'});const _0xf11761=_0x5a385d['editing']['view'];this['listenTo'](_0xf11761['document'],'clipboardOutput',(_0x48b708,_0x1139fa)=>{const _0x5b7418=[];for(const _0x47d466 of _0xf11761['createRangeIn'](_0x1139fa['content'])['getItems']())_0x47d466['is']('element','suggestion-td')&&_0x5b7418['push'](_0x47d466);_0xf11761['change'](_0x2e8912=>{for(const _0xcec983 of _0x5b7418)_0x2e8912['move'](_0x2e8912['createRangeIn'](_0xcec983),_0x2e8912['createPositionBefore'](_0xcec983)),_0x2e8912['remove'](_0xcec983);});});}}function Oe(_0x327872){if(_0x327872['isEmpty'])return!0x0;const _0x20a5f8=_0x327872['getChild'](0x0);return _0x20a5f8['is']('element','paragraph')&&_0x20a5f8['isEmpty'];}function Ue(_0x315059,_0x3ed105={},_0xdc2453){for(const {isAnchor:_0x580524,cellHeight:_0x5e725b,cellWidth:_0xc3c56}of _0xdc2453['createTableWalker'](_0x315059,{'includeAllSlots':!0x0,..._0x3ed105}))if(!_0x580524||0x1!=_0x5e725b||0x1!=_0xc3c56)return!0x1;return!0x0;}class Dt extends _0x32720e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x347ab5=this['editor']['plugins']['get']('TrackChangesEditing');_0x347ab5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x347ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x347ab5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x347ab5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x347ab5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x347ab5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1cb83b,_0x5cdfc5){const _0x5444cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46dcaa=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x165768=_0x5cdfc5['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ac11a=_0x46dcaa['getColumnGroupElement'](_0x165768);let _0x5890c0=_0x1ac11a?_0x46dcaa['getTableColumnsWidths'](_0x1ac11a):null,_0x5d12c3=_0x165768['getAttribute']('tableWidth')||null;const _0x3cf089=_0x5cdfc5['tableWidth']||_0x5d12c3,_0xaae0db=_0x5cdfc5['columnWidths']||_0x5890c0,_0x16b2b6=this['editor']['plugins']['get']('Users')['me'];for(const _0xa540c3 of _0x5444cc['getSuggestions']()){const _0xf4610e=_0xa540c3['getContainedElement']();if('resizeTable'===_0xa540c3['subType']&&_0xf4610e===_0x165768){_0xa540c3['author']!==_0x16b2b6&&_0xa540c3['discard']();const _0x85944f=_0xa540c3['data']['commandParams'];_0x5d12c3=_0x85944f[0x0]['tableWidth'],_0x5890c0=_0x85944f[0x0]['columnWidths'];break;}}_0x1cb83b({'table':_0x165768,'tableWidth':_0x3cf089,'columnWidths':_0xaae0db}),_0x5444cc['markBlockFormat'](_0x165768,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5d12c3,'columnWidths':_0x5890c0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa2b4e7){if('formatBlock'!=_0xa2b4e7['type']&&'formatInline'!=_0xa2b4e7['type'])return;const {data:_0x5c79e2}=_0xa2b4e7;if(_0x5c79e2&&'resizeTable'===_0x5c79e2['formatGroupId']){const _0x32ad5c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x32ad5c)};}}}class Mt extends _0x32720e{['afterInit'](){const _0x87aa63=this['editor'];_0x87aa63['plugins']['has']('Template')&&_0x87aa63['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x32720e{['afterInit'](){const _0x218cb2=this['editor'];if(!_0x218cb2['commands']['get']('insertTableOfContents'))return;_0x218cb2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1db4af=_0x218cb2['plugins']['get']('TrackChangesEditing'),_0x4cea1b=_0x218cb2['locale'];_0x1db4af['descriptionFactory']['registerElementLabel']('tableOfContents',_0x143d2f=>o(_0x4cea1b,'ELEMENT_TABLE_OF_CONTENTS',_0x143d2f));}}class Bt extends _0x32720e{['afterInit'](){const _0x2dc32b=this['editor'];if(!_0x2dc32b['plugins']['has']('Title'))return;const _0x1cd62b=_0x2dc32b['plugins']['get']('TrackChangesEditing');_0x1cd62b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2dc32b['locale'],'ELEMENT_TITLE')),_0x2dc32b['model']['document']['registerPostFixer'](_0x348347=>{let _0xd619f9=!0x1;const _0x42df37=Array['from'](_0x2dc32b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x338abf,data:_0x468bf7}of _0x42df37){const {group:_0x4637d9}=_0x1cd62b['_splitMarkerName'](_0x338abf);if('suggestion'!==_0x4637d9||!_0x468bf7['newRange'])continue;const _0x5b485a=_0x468bf7['newRange'],_0x32f626=_0x5b485a['end']['nodeBefore'];if(!_0x32f626||!_0x32f626['is']('element','title-content'))continue;if(!_0x5b485a['start']['isTouching'](_0x5b485a['end']))continue;const _0x1ad34e=_0x2dc32b['model']['schema']['getNearestSelectionRange'](_0x5b485a['end'],'forward');if(_0x1ad34e&&_0x1ad34e['isCollapsed']){const _0x537cc1=_0x348347['createRange'](_0x5b485a['start'],_0x1ad34e['start']);_0x537cc1['isEqual'](_0x5b485a)||(_0x348347['updateMarker'](_0x338abf,{'range':_0x537cc1}),_0xd619f9=!0x0);}_0xd619f9||(_0x348347['removeMarker'](_0x338abf),_0xd619f9=!0x0);}return _0xd619f9;});}}class Ot extends _0x32720e{['afterInit'](){const _0x82d84d=this['editor'],_0x2a1c24=_0x82d84d['plugins']['get']('TrackChangesEditing');_0x82d84d['plugins']['has']('Uploadcare')&&(_0x2a1c24['enableCommand']('uploadcare'),_0x82d84d['plugins']['has']('UploadcareImageEdit')&&(_0x2a1c24['enableCommand']('uploadcareImageEdit'),_0x2a1c24['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2a1c24['registerBlockAttribute']('uploadcareImageId'),_0x2a1c24['descriptionFactory']['registerDescriptionCallback'](_0x24f067=>{if('attribute'!=_0x24f067['type'])return;const {data:_0x5d4e1a}=_0x24f067;return _0x5d4e1a&&'uploadcareImageId'==_0x5d4e1a['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x32720e{['afterInit'](){const _0x117c09=this['editor'],_0x424e33=_0x117c09['plugins']['get']('TrackChangesEditing');_0x117c09['plugins']['has']('UndoEditing')&&(_0x424e33['enableCommand']('undo'),_0x424e33['enableCommand']('redo'));}}class Tt extends _0x32720e{static get['requires'](){return[vt];}['afterInit'](){const _0xf939a2=this['editor'];if(!_0xf939a2['plugins']['has']('TableCaptionEditing'))return;_0xf939a2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x32720e{['tableProperties'];['tableCellProperties'];constructor(_0x993d67){super(_0x993d67),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 _0xc5f488=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xad3018 of this['tableProperties'])_0xc5f488['enableCommand'](_0xad3018,(_0x5936e2,_0x259276)=>{const _0x1b2291=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xad3018,[_0x1b2291],this['tableProperties'],'tableProperties',_0x5936e2,_0x259276);});_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xc5f488['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2c6150,_0x232a56)=>this['handleDiscardAction'](this['tableProperties'],_0x2c6150,_0x232a56)),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x429ec5 of this['tableCellProperties'])_0xc5f488['enableCommand'](_0x429ec5,(_0x194200,_0x4d76fe)=>{const _0x1b4364=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x429ec5,_0x1b4364,this['tableCellProperties'],'tableCellProperties',_0x194200,_0x4d76fe);});_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xc5f488['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3996f9,_0x9e49cc)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3996f9,_0x9e49cc)),_0xc5f488['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xc5f488['descriptionFactory']['registerDescriptionCallback'](_0x20f475=>this['handleSuggestionDescription'](_0x20f475));}['_handlePropertyChange'](_0x21a5b7,_0x525b4d,_0x53c0fd,_0x111f7d,_0x2fe765,_0x120631){const _0x480d37=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x120631['batch'],()=>{for(const _0x560ab8 of _0x525b4d){if(this['_getSuggestion'](_0x560ab8,_0x111f7d))_0x2fe765(_0x120631);else{const _0x28a65d={};for(const _0x296448 of _0x53c0fd){const _0x201458=_0x560ab8['getAttribute'](_0x296448);void 0x0!==_0x201458&&(_0x28a65d[_0x296448]=_0x201458);}_0x2fe765(_0x120631),_0x480d37['markBlockFormat'](_0x560ab8,{'commandParams':[_0x28a65d]},[],_0x111f7d);}}});}['handleDiscardAction'](_0x51efcc,_0x23aa40,_0x123350){const _0x3b7c4a=_0x23aa40[0x0]['start']['nodeAfter'],_0x346dab=_0x123350['commandParams'][0x0];this['editor']['model']['change'](_0x1ab02d=>{for(const _0xfe91ff of _0x51efcc)void 0x0!==_0x346dab[_0xfe91ff]?_0x1ab02d['setAttribute'](_0xfe91ff,_0x346dab[_0xfe91ff],_0x3b7c4a):_0x1ab02d['removeAttribute'](_0xfe91ff,_0x3b7c4a);});}['handleSuggestionDescription'](_0x43991d){if(_0x43991d['data'])switch(_0x43991d['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5e4471,_0x33de0e){const _0xab24a5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x801eca of _0xab24a5['getSuggestions']({'skipNotAttached':!0x0})){const _0x1b4dff=_0x801eca['getContainedElement']();if(_0x801eca['subType']===_0x33de0e&&_0x1b4dff===_0x5e4471)return _0x801eca;}return null;}}const m='$elementName';class p extends _0x32720e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x48e0a0,_0x2ac36e,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57ab2f){super(_0x57ab2f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x59f05c,_0x2a94ad,_0x31a2a8,_0x1f85bd)=>{this['_model']['change'](()=>{for(const _0x4bb3a0 of[..._0x1f85bd,..._0x31a2a8])this['_model']['markers']['has'](_0x4bb3a0)&&_0x57ab2f['editing']['reconvertMarker'](_0x4bb3a0);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x57ab2f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x57ab2f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57ab2f['config']['get']('trackChanges.trackFormatChanges'),_0x57ab2f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57ab2f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x57ab2f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3ced0f=this['editor'],_0x5b2311=(_0x38797c,_0x23ec46)=>{if('attribute'!=_0x38797c)return'ck-suggestion-marker-'+_0x38797c;const _0x25c188=_0x23ec46['split']('|')[0x0];return this['_isBlockAttribute'](_0x25c188)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3ced0f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x307c82=>{const {id:_0x32f3ff,authorId:_0x17fbc7,type:_0x3673da,subType:_0xb5af14}=this['_splitMarkerName'](_0x307c82['markerName']),_0x4d9f6a=['ck-suggestion-marker',_0x5b2311(_0x3673da,_0xb5af14)];let _0xb84249=0xbb8;return this['activeMarkers']['includes'](_0x307c82['markerName'])&&(_0x4d9f6a['push']('ck-suggestion-marker--active'),_0xb84249=0xbc2),'deletion'==_0x3673da&&(_0xb84249+=0x5),{'classes':_0x4d9f6a,'attributes':{'data-suggestion':_0x32f3ff,'data-author-id':_0x17fbc7},'priority':_0xb84249};}}),_0x3ced0f['conversion']['for']('dataDowncast')['add'](_0x4b1ccb=>{_0x4b1ccb['on']('addMarker:suggestion',(_0x5063f4,_0x11d7d1,_0x23df12)=>{if(!_0x23df12['options']['showSuggestionHighlights'])return;const _0x969968=_0x11d7d1['item'];if(!_0x969968)return;const _0x1556a6=_0x23df12['mapper']['toViewElement'](_0x969968);_0x3ced0f['model']['schema']['isObject'](_0x969968)&&_0x1556a6&&!_0x1556a6['getCustomProperty']('widget')&&_0x1556a6['is']('containerElement')&&_0x1a00cd(_0x1556a6,_0x23df12['writer']);},{'priority':'high'});}),_0x3ced0f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x58b49f,_0x488d10)=>{if(!_0x488d10['options']['showSuggestionHighlights'])return null;const {type:_0x2deaea,subType:_0x21128e}=this['_splitMarkerName'](_0x58b49f['markerName']);return{'classes':['ck-suggestion-marker',_0x5b2311(_0x2deaea,_0x21128e)],'priority':0xbb8};}});const _0x412b4b=({showActiveMarkers:_0x404646=!0x0,isAttributeSuggestion:_0x27cbdd=!0x1}={})=>(_0x20a3df,_0x30b4a9,_0x2b9903)=>{if(!_0x30b4a9['item'])return;const {id:_0x300ef2,authorId:_0x3da117}=this['_splitMarkerName'](_0x30b4a9['markerName']);if(_0x27cbdd){const _0x4a88e4=this['_suggestions']['get'](_0x300ef2),_0x2761f9=this['_getAttributeKey'](_0x4a88e4);if(!this['_isBlockAttribute'](_0x2761f9))return;}if(_0x30b4a9['item']['is']('selection'))return void _0x2b9903['consumable']['consume'](_0x30b4a9['item'],_0x20a3df['name']);const _0x382df2=_0x2b9903['mapper']['toViewElement'](_0x30b4a9['item']);if(_0x30b4a9['item']['is']('element')&&_0x3ced0f['model']['schema']['isBlock'](_0x30b4a9['item'])&&!_0x382df2['getCustomProperty']('addHighlight')){_0x2b9903['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x382df2),_0x2b9903['writer']['setAttribute']('data-suggestion',_0x300ef2,_0x382df2),_0x2b9903['writer']['setAttribute']('data-author-id',_0x3da117,_0x382df2),_0x2b9903['mapper']['bindElementToMarker'](_0x382df2,_0x30b4a9['markerName']),_0x404646&&(this['activeMarkers']['includes'](_0x30b4a9['markerName'])?_0x2b9903['writer']['addClass']('ck-suggestion-marker--active',_0x382df2):_0x2b9903['writer']['removeClass']('ck-suggestion-marker--active',_0x382df2));for(const _0xc0c354 of _0x3ced0f['model']['createRangeIn'](_0x30b4a9['item'])['getItems']())_0x2b9903['consumable']['consume'](_0xc0c354,_0x20a3df['name']);_0x2b9903['consumable']['consume'](_0x30b4a9['item'],_0x20a3df['name']);}};_0x3ced0f['conversion']['for']('dataDowncast')['add'](_0x59373d=>{_0x59373d['on']('addMarker:suggestion:formatBlock',(_0x22a593,_0x3ef6d6,_0x1de6c2)=>{_0x1de6c2['options']['showSuggestionHighlights']&&_0x412b4b({'showActiveMarkers':!0x1})(_0x22a593,_0x3ef6d6,_0x1de6c2);},{'priority':'highest'});}),_0x3ced0f['conversion']['for']('dataDowncast')['add'](_0x1d78c9=>{_0x1d78c9['on']('addMarker:suggestion:attribute',(_0x1911a6,_0x353de9,_0x5e1661)=>{_0x5e1661['options']['showSuggestionHighlights']&&_0x412b4b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1911a6,_0x353de9,_0x5e1661);},{'priority':'highest'});}),_0x3ced0f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e66c8,_0x2990c1)=>_0x2990c1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1e66c8['substr'](0xb)}}),_0x3ced0f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xa0af7d,{writer:_0x1249c2})=>{let _0x220250='suggestion:'+_0xa0af7d['getAttribute']('suggestion-type')+':'+_0xa0af7d['getAttribute']('id');return _0xa0af7d['getAttribute']('marker-count')&&(_0x220250+=':'+_0xa0af7d['getAttribute']('marker-count')),_0x1249c2['createElement']('$marker',{'data-name':_0x220250});}}),_0x3ced0f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0xed3887=>{_0xed3887['on']('addMarker:suggestion:formatBlock',_0x412b4b(),{'priority':'high'});}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0x49a143=>{_0x49a143['on']('addMarker:suggestion:attribute',_0x412b4b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0x1a0dd5=>{_0x1a0dd5['on']('removeMarker:suggestion:formatBlock',(_0x3be4ba,_0x237b68,_0x5d6127)=>{const _0x34cead=_0x5d6127['mapper']['markerNameToElements'](_0x237b68['markerName']);if(_0x34cead){for(const _0x2393d5 of _0x34cead)_0x2393d5['getCustomProperty']('addHighlight')||(_0x5d6127['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2393d5),_0x5d6127['writer']['removeAttribute']('data-suggestion',_0x2393d5),_0x5d6127['writer']['removeAttribute']('data-author-id',_0x2393d5),_0x5d6127['mapper']['unbindElementFromMarkerName'](_0x2393d5,_0x237b68['markerName']));}},{'priority':'high'});}),_0x3ced0f['conversion']['for']('editingDowncast')['add'](_0x5d4b92=>{_0x5d4b92['on']('removeMarker:suggestion:attribute',(_0x2397be,_0x16985e,_0x1f20e8)=>{const _0x524764=_0x1f20e8['mapper']['markerNameToElements'](_0x16985e['markerName']);if(!_0x524764)return;const {id:_0x7ebc56}=this['_splitMarkerName'](_0x16985e['markerName']),_0x13cafd=this['_suggestions']['get'](_0x7ebc56),_0xfbbc9a=this['_getAttributeKey'](_0x13cafd);if(this['_isBlockAttribute'](_0xfbbc9a)){for(const _0x44e7e9 of _0x524764)_0x44e7e9['getCustomProperty']('addHighlight')||(_0x1f20e8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44e7e9),_0x1f20e8['writer']['removeAttribute']('data-suggestion',_0x44e7e9),_0x1f20e8['writer']['removeAttribute']('data-author-id',_0x44e7e9),_0x1f20e8['mapper']['unbindElementFromMarkerName'](_0x44e7e9,_0x16985e['markerName']));}},{'priority':'high'});}),_0x3ced0f['model']['document']['registerPostFixer'](_0xeff71d=>{let _0x33672b=!0x1;const _0x3b44ac=Array['from'](_0x3ced0f['model']['document']['differ']['getChangedMarkers']()),_0x2e87aa=new Set();for(const {name:_0x3708af,data:_0x124e72}of _0x3b44ac){const {group:_0x52979e,type:_0x592dbb,subType:_0x51a9ad,id:_0x3f08aa}=this['_splitMarkerName'](_0x3708af);if('suggestion'!==_0x52979e)continue;const _0x312c92=this['_suggestions']['get'](_0x3f08aa);if(null!=_0x124e72['newRange']){'formatInline'==_0x592dbb&&(_0x33672b=_0x33672b||Gt(_0x124e72['newRange'],_0x3708af,_0xeff71d,_0x3ced0f['model']['schema']));const _0x157719='attribute'==_0x592dbb&&this['_isBlockAttribute'](_0x51a9ad['split']('|')[0x0]);if(_0x124e72['newRange']['isCollapsed']||'$graveyard'==_0x124e72['newRange']['root']['rootName']||'formatBlock'==_0x592dbb&&!Lt(_0x124e72['newRange'])||_0x157719&&!Lt(_0x124e72['newRange'])||'deletion'==_0x592dbb&&!(!Pt(_0xcf0357=_0x124e72['newRange'])&&!function(_0x18dd74){return _0x18dd74['start']['parent']==_0x18dd74['end']['nodeBefore']&&_0x18dd74['start']['isAtEnd'];}(_0xcf0357)))_0xeff71d['removeMarker'](_0x3708af),_0x33672b=!0x0;else{if(!_0x312c92||!_0x312c92['isInContent'])continue;if(_0x124e72['newRange']&&_0x124e72['oldRange']&&_0x124e72['newRange']['isEqual'](_0x124e72['oldRange']))continue;_0x2e87aa['add'](_0x312c92);}}}var _0xcf0357;return _0x2e87aa['size']>0x0&&(_0x33672b=!!this['_joinWithAdjacentSuggestions'](_0x2e87aa)||_0x33672b),_0x33672b;}),_0x3ced0f['model']['document']['registerPostFixer'](_0x5831cc=>{let _0x6daa41=!0x1;for(const _0x895247 of _0x3ced0f['model']['document']['differ']['getChanges']())if('insert'==_0x895247['type'])for(const _0x181d18 of this['_suggestions']['values']()){if(_0x181d18['isMultiRange']||!_0x181d18['isInContent'])continue;const _0x1d566a='formatBlock'==_0x181d18['type'],_0x4ebd12=this['_getAttributeKey'](_0x181d18),_0x865ea1=_0x4ebd12&&this['_isBlockAttribute'](_0x4ebd12);if(!_0x1d566a&&!_0x865ea1)continue;const _0x29a4e1=_0x181d18['getFirstRange']();if(_0x29a4e1['start']['parent']!=_0x29a4e1['end']['parent']&&!_0x29a4e1['end']['isAtEnd']){const _0x4b0da4=_0x3ced0f['model']['createPositionAt'](_0x29a4e1['start']['nodeAfter'],'end'),_0x560ced=_0x3ced0f['model']['createRange'](_0x29a4e1['start'],_0x4b0da4);_0x5831cc['updateMarker'](_0x181d18['getFirstMarker'](),{'range':_0x560ced}),_0x6daa41=!0x0;}}return _0x6daa41;}),_0x3ced0f['model']['document']['registerPostFixer'](_0x119d2e=>this['_processAttributeChanges'](_0x119d2e)),_0x3ced0f['model']['document']['registerPostFixer'](_0x2114dd=>!_0x2114dd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2114dd)),_0x3ced0f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3ced0f['model']['document']['on']('change:data',(_0x47f451,_0x52e9c1)=>{if(!_0x52e9c1['isLocal']||_0x52e9c1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4757ed=_0x3ced0f['model']['document']['differ']['getChanges']();if(0x0==_0x4757ed['length'])return;const _0x84f279=[],_0x8b9e69=_0x4757ed['filter'](_0x15ccfb=>'attribute'==_0x15ccfb['type']),_0x239460=_0x4757ed['filter'](_0x3ac6e4=>'insert'==_0x3ac6e4['type']&&'$text'!=_0x3ac6e4['name']);for(const _0xb65b5f of _0x8b9e69)this['_isRegisteredAttribute'](_0xb65b5f['attributeKey'])&&_0x84f279['push']({'key':_0xb65b5f['attributeKey'],'newValue':_0xb65b5f['attributeNewValue'],'oldValue':_0xb65b5f['attributeOldValue'],'range':Jt(_0xb65b5f['range'],_0x3ced0f['model'])});for(const _0x5ab3f4 of _0x239460){if('rename'!=_0x5ab3f4['action']&&'refresh'!=_0x5ab3f4['action'])continue;const _0xb3a431=Ht(_0x5ab3f4['position']['nodeAfter'],_0x3ced0f['model']),_0x45a875=_0x5ab3f4['before'];'rename'==_0x5ab3f4['action']&&_0x84f279['push']({'key':m,'newValue':_0x5ab3f4['name'],'oldValue':_0x45a875['name'],'range':_0xb3a431});for(const [_0x4e4818,_0x190854]of _0x45a875['attributes']){if(!this['_isRegisteredAttribute'](_0x4e4818))continue;const _0x2b95e2=_0x5ab3f4['attributes']['get'](_0x4e4818);_0x190854!==_0x2b95e2&&_0x84f279['push']({'key':_0x4e4818,'newValue':_0x2b95e2,'oldValue':_0x190854,'range':_0xb3a431});}for(const [_0x49ead0,_0x4f9fd2]of _0x5ab3f4['attributes'])this['_isRegisteredAttribute'](_0x49ead0)&&(_0x45a875['attributes']['has'](_0x49ead0)||_0x84f279['push']({'key':_0x49ead0,'newValue':_0x4f9fd2,'oldValue':null,'range':_0xb3a431}));}0x0!=_0x84f279['length']&&_0x3ced0f['model']['enqueueChange'](_0x52e9c1,_0x46936b=>{const _0x23224c=_0x2cd620();for(const {range:_0x4051c6,key:_0x1a6af6,oldValue:_0xef45c2,newValue:_0x574459}of _0x84f279)this['markAttributeChange'](_0x4051c6,_0x1a6af6,_0xef45c2,_0x574459,{'groupId':_0x23224c});this['_reduceExistingSuggestions'](_0x46936b,_0x84f279);});},{'priority':'lowest'}),_0x3ced0f['model']['markers']['on']('update:suggestion',(_0xf423f5,_0x1d2bf6,_0x5abf2f)=>{if(null==_0x5abf2f){const {id:_0x395948}=this['_splitMarkerName'](_0x1d2bf6['name']),_0x198eed=this['_suggestions']['get'](_0x395948);_0x198eed&&_0x198eed['addMarkerName'](_0x1d2bf6['name']);}}),_0x3ced0f['model']['document']['on']('change:data',()=>{const _0x4e5c1a=Array['from'](_0x3ced0f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5e030e=>'suggestion'===this['_splitMarkerName'](_0x5e030e['name'])['group']);if(0x0===_0x4e5c1a['length'])return;_0x4e5c1a['sort']((_0x2e89c2,_0x2f9a63)=>{const _0x46721f=_0x2e89c2['data']['oldRange'],_0x253342=_0x2f9a63['data']['oldRange'];return null===_0x46721f&&null===_0x253342?0x0:null===_0x46721f&&null!==_0x253342?-0x1:null!==_0x46721f&&null===_0x253342?0x1:_0x46721f['start']['isBefore'](_0x253342['start'])?-0x1:0x1;});const _0x321888=new Set(),_0x424b4d=new Set();for(const {name:_0x5cc538,data:_0x43c00a}of _0x4e5c1a){const {id:_0x5545d8}=this['_splitMarkerName'](_0x5cc538);if(null===_0x43c00a['oldRange']){const _0x44b7d8=this['_handleNewSuggestionMarker'](_0x5cc538);_0x424b4d['add'](_0x44b7d8);}else{const _0x4a6b17=this['_suggestions']['get'](_0x5545d8);null!==_0x43c00a['newRange']||_0x4a6b17['isInContent']?(_0x321888['add'](_0x4a6b17['head']),_0x424b4d['add'](_0x4a6b17)):this['_removeSuggestion'](_0x4a6b17);}}_0x424b4d['size']>0x0&&this['_refreshSuggestionsChain'](_0x424b4d);for(const _0x1767b0 of _0x321888)this['fire']('suggestionChanged',_0x1767b0);}),_0x3ced0f['model']['on']('applyOperation',(_0xab8afa,_0x24212f)=>{const _0x27431f=_0x24212f[0x0];if(!this['_suggestions']['size'])return;if(!_0x27431f['isDocumentOperation'])return;if(_0x27431f['batch']['isUndo']||!_0x27431f['batch']['isLocal'])return;let _0x33c04d,_0x490932;switch(_0x27431f['type']){case'insert':_0x33c04d=_0x3ced0f['model']['createPositionAt'](_0x27431f['position']),_0x490932=_0x33c04d['getShiftedBy'](_0x27431f['howMany']);break;case'split':_0x33c04d=_0x3ced0f['model']['createPositionAt'](_0x27431f['splitPosition']),_0x490932=_0x3ced0f['model']['createPositionAt'](_0x27431f['moveTargetPosition']);break;case'move':_0x33c04d=_0x3ced0f['model']['createPositionAt'](_0x27431f['targetPosition']),_0x490932=_0x33c04d['getShiftedBy'](_0x27431f['howMany']);break;default:return;}const _0x54ad02=_0x3ced0f['model']['createRange'](_0x33c04d,_0x490932);_0x3ced0f['model']['change'](()=>{for(const {suggestion:_0x3d35cc,meta:_0x3b8930}of this['_findSuggestions'](_0x54ad02)){if(_0x3d35cc['isMultiRange'])continue;if('formatInline'==_0x3d35cc['type'])continue;const _0x2b8f06=this['_getAttributeKey'](_0x3d35cc);if(_0x2b8f06&&this['_isBlockAttribute'](_0x2b8f06)&&'split'!=_0x27431f['type'])continue;const _0x4c0225=_0x3d35cc['data']&&_0x3d35cc['data']['multipleBlocks'];('formatBlock'!=_0x3d35cc['type']||'split'==_0x27431f['type']&&!_0x4c0225)&&(_0x3b8930['containsRangeInObject']||'insertion'==_0x3d35cc['type']&&_0x3b8930['isOwn']||_0x3d35cc['getFirstRange']()['containsRange'](_0x54ad02)&&this['_breakSuggestionMarker'](_0x3d35cc,_0x33c04d,_0x490932));}});},{'priority':'lowest'}),_0x3ced0f['model']['on']('deleteContent',(_0x2e735a,_0x166e1b)=>{const _0x41d1a2=_0x166e1b[0x0],_0x2f19c7=_0x166e1b[0x1];if(_0x2f19c7&&_0x2f19c7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x41d1a2['isCollapsed'])return;const _0x7dc6aa=_0x3ced0f['model']['schema'],{start:_0x1015a3,end:_0x2e9554}=_0x41d1a2['getFirstRange'](),_0x7e0caf=_0x1015a3['nodeAfter']&&_0x7dc6aa['isLimit'](_0x1015a3['nodeAfter'])?null:_0x7dc6aa['getNearestSelectionRange'](_0x1015a3,'forward'),_0x30bd98=_0x2e9554['nodeBefore']&&_0x7dc6aa['isLimit'](_0x2e9554['nodeBefore'])?null:_0x7dc6aa['getNearestSelectionRange'](_0x2e9554,'backward'),_0x5396e6=_0x3ced0f['model']['createRange'](_0x7e0caf?_0x7e0caf['start']:_0x1015a3,_0x30bd98?_0x30bd98['end']:_0x2e9554);_0x3ced0f['model']['change'](_0x1a1a78=>{this['markDeletion'](_0x5396e6);const _0xc2910a=_0x3ced0f['model']['schema']['getNearestSelectionRange'](_0x5396e6['start']);_0x41d1a2['is']('documentSelection')?_0x1a1a78['setSelection'](_0xc2910a):_0x41d1a2['setTo'](_0xc2910a);}),_0x2e735a['stop']();},{'priority':_0x4368d6['normal']+0xa}),_0x3ced0f['model']['on']('insertContent',(_0x373446,_0x156b82)=>{const _0x15d2df=_0x156b82[_0x156b82['length']-0x1];_0x15d2df&&_0x15d2df['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3ced0f['model']['change'](()=>{let _0x1fe24d=_0x3ced0f['model']['insertContent'](_0x156b82[0x0],_0x156b82[0x1],_0x156b82[0x2],{'forceDefaultExecution':!0x0});if(!_0x1fe24d)return;_0x373446['return']=_0x1fe24d['clone']();const _0x46ad45=_0x1fe24d['end']['nodeBefore'],_0x4bce81=_0x3ced0f['model']['schema'];_0x46ad45&&_0x4bce81['isBlock'](_0x46ad45)&&!_0x4bce81['isObject'](_0x46ad45)&&(_0x1fe24d=_0x3ced0f['model']['createRange'](_0x1fe24d['start'],_0x3ced0f['model']['createPositionAt'](_0x46ad45,'end'))),this['markInsertion'](_0x1fe24d);}),_0x373446['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5ba808=new O(_0x3ced0f,this['_suggestions']);_0x3ced0f['commands']['add']('acceptSuggestion',_0x5ba808),this['enableCommand']('acceptSuggestion');const _0x480f5a=new R(_0x3ced0f,this['_suggestions']);_0x3ced0f['commands']['add']('discardSuggestion',_0x480f5a),this['enableCommand']('discardSuggestion'),_0x3ced0f['commands']['add']('acceptAllSuggestions',new x(_0x3ced0f,_0x5ba808,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3ced0f['commands']['add']('discardAllSuggestions',new x(_0x3ced0f,_0x480f5a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3ced0f['commands']['add']('acceptSelectedSuggestions',new E(_0x3ced0f,_0x5ba808,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3ced0f['commands']['add']('discardSelectedSuggestions',new E(_0x3ced0f,_0x480f5a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3909cf=_0x3ced0f['plugins']['get']('CommentsRepository');this['listenTo'](_0x3909cf,'addComment',(_0x493718,{threadId:_0x3f7417})=>{const _0x559c76=this['_suggestions']['get'](_0x3f7417);_0x559c76&&_0x559c76['commentThread']&&0x1===_0x559c76['commentThread']['length']&&this['_updateSuggestionData'](_0x3f7417,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3909cf,'removeComment',(_0x40a61b,{threadId:_0x3180b8})=>{const _0x38d143=this['_suggestions']['get'](_0x3180b8);_0x38d143&&_0x38d143['commentThread']&&!_0x38d143['commentThread']['length']&&this['_updateSuggestionData'](_0x3180b8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3409c8){const _0x14a9ac=_0x38c42e([0x4a,0x38,0x74,0x55,0x6f,0x66,0x68,0x36,0x75,0x62,0x72,0x50,0x58,0x30,0x63,0x65,0x32,0x77,0x4c,0x7a,0x4b,0x33,0x76,0x6e,0x44,0x64,0x70,0x43,0x52,0x37,0x35,0x41,0x78,0x45,0x4d,0x6d,0x69,0x71,0x46,0x31,0x67,0x57,0x6b,0x61,0x4f,0x4e,0x34,0x47,0x49,0x51,0x54,0x39,0x6a,0x59,0x73,0x5a,0x79,0x53,0x42,0x48,0x56,0x6c]),_0x133c0c=0x5b82dd74,_0x198da7=0x5b858304^_0x133c0c,_0x286424=window[_0x38c42e([0x44,0x61,0x74,0x65])][_0x38c42e([0x6e,0x6f,0x77])](),_0x579595=_0x3409c8[_0x38c42e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe75c36=new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16eab7=>{_0x579595[_0x38c42e([0x6f,0x6e,0x63,0x65])](_0x38c42e([0x72,0x65,0x61,0x64,0x79]),_0x16eab7);}),_0x5b2c25={[_0x38c42e([0x6b,0x74,0x79])]:_0x38c42e([0x45,0x43]),[_0x38c42e([0x75,0x73,0x65])]:_0x38c42e([0x73,0x69,0x67]),[_0x38c42e([0x63,0x72,0x76])]:_0x38c42e([0x50,0x2d,0x32,0x35,0x36]),[_0x38c42e([0x78])]:_0x38c42e([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]),[_0x38c42e([0x79])]:_0x38c42e([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]),[_0x38c42e([0x61,0x6c,0x67])]:_0x38c42e([0x45,0x53,0x32,0x35,0x36])},_0x2c9faa=_0x579595[_0x38c42e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38c42e([0x67,0x65,0x74])](_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10f406(){let _0x4388af,_0x32712d=null,_0x194558=null;try{if(_0x2c9faa==_0x38c42e([0x47,0x50,0x4c]))return _0x38c42e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4388af=_0x6c1269(),!_0x4388af)return _0x38c42e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4388af[_0x38c42e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x194558=_0x18ccb3(_0x4388af[_0x38c42e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4388af[_0x38c42e([0x6a,0x74,0x69])])),await _0x1db4e6()?_0x1a53f2()?_0xfc139b()?_0x38c42e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1aca7e()?(_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38c42e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32712d=_0xc67b0(_0x38c42e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38c42e([0x74,0x72,0x69,0x61,0x6c])&&(_0x32712d=_0xc67b0(_0x38c42e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16fdf5()):_0x38c42e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38c42e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38c42e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xf5154f){return _0x38c42e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xfc139b(){const _0x556ed3=[_0x38c42e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38c42e([0x74,0x72,0x69,0x61,0x6c])][_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x286424/0x3e8:0xe10*_0x198da7;return _0x4388af[_0x38c42e([0x65,0x78,0x70])]<_0x556ed3;}function _0x1a53f2(){const _0x27dd7f=_0x4388af[_0x38c42e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x27dd7f)return!0x1;if(_0x27dd7f[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x2a])))return!0x0;if(_0x27dd7f[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x54,0x43])))return!0x0;if(_0x27dd7f[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x52,0x54,0x43]))){if(_0x4b9930())return!0x0;if(_0x4686f0()||_0x3a934f())return!0x0;}return!0x1;}function _0x1aca7e(){const _0x2c0107=_0x4388af[_0x38c42e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c0107||0x0==_0x2c0107[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dc8e1}=new URL(window[_0x38c42e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c0107[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dc8e1))return!0x0;const _0xf50e5f=_0x5dc8e1[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e]));return _0x2c0107[_0x38c42e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29818c=>_0x29818c[_0x38c42e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38c42e([0x2a])))[_0x38c42e([0x6d,0x61,0x70])](_0x299fb2=>_0x299fb2[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e])))[_0x38c42e([0x73,0x6f,0x6d,0x65])](_0x599d=>_0xf50e5f[_0x38c42e([0x65,0x76,0x65,0x72,0x79])]((_0x168bee,_0x800552)=>_0x599d[_0x800552]===_0x168bee||_0x599d[_0x800552]===_0x38c42e([0x2a])));}function _0x16fdf5(){return _0x32712d&&_0x194558?new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10c485,_0x46a949)=>{_0x32712d[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x10c485,_0x46a949),_0x194558[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x2af316=>{_0x2af316!=_0x38c42e([0x56,0x61,0x6c,0x69,0x64])&&_0x10c485(_0x2af316);},_0x46a949);}):_0x32712d||_0x194558||_0x38c42e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18ccb3(_0x2eede6,_0x5ec2a9){return new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d815f=>{if(_0x5c2a6f())return _0x4d815f(_0x38c42e([0x56,0x61,0x6c,0x69,0x64]));_0x5255de(),_0x579595[_0x38c42e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38c42e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f671f=!0x1;const _0x21912d=_0x2cd620();function _0x386de3(_0x21c026){return!!_0x21c026&&(typeof _0x21c026===_0x38c42e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x21c026===_0x38c42e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x21c026[_0x38c42e([0x74,0x68,0x65,0x6e])]===_0x38c42e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x21c026[_0x38c42e([0x63,0x61,0x74,0x63,0x68])]===_0x38c42e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fb422(_0x394915){_0x5db51d(_0x394915)[_0x38c42e([0x74,0x68,0x65,0x6e])](_0xc6127f=>{if(!_0xc6127f||_0xc6127f[_0x38c42e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38c42e([0x6f,0x6b]))return _0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2878fe(_0x4c7c21(_0x21912d+_0x5ec2a9))!=_0xc6127f[_0x38c42e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38c42e([0x56,0x61,0x6c,0x69,0x64]);})[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x4b4465=>(_0x43ace8(),_0x4b4465),()=>{const _0x2b9213=_0x1f9bca();return null==_0x2b9213?(_0x43ace8(),_0x38c42e([0x56,0x61,0x6c,0x69,0x64])):_0x38c42e(_0x286424-_0x2b9213>(0x7f8e5974^_0x133c0c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x4d815f)[_0x38c42e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d815f(_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7125e7=0x5bb433f4^_0x133c0c;function _0x43ace8(){const _0xe7283a=_0x38c42e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2878fe(_0x4c7c21(_0x2eede6)),_0x5c68ce=_0x2d576e(_0x2878fe(window[_0x38c42e([0x4d,0x61,0x74,0x68])][_0x38c42e([0x63,0x65,0x69,0x6c])](_0x286424/_0x7125e7)));window[_0x38c42e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38c42e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe7283a,_0x5c68ce);}function _0x1f9bca(){const _0x5ae8cc=_0x38c42e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2878fe(_0x4c7c21(_0x2eede6)),_0x116a3a=window[_0x38c42e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38c42e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ae8cc);return _0x116a3a?window[_0x38c42e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d576e(_0x116a3a),0x10)*_0x7125e7:null;}function _0x5db51d(_0x1fb1a3){return new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d7143,_0x1c8c8f)=>{_0x1fb1a3[_0x38c42e([0x74,0x68,0x65,0x6e])](_0x2d7143,_0x1c8c8f),window[_0x38c42e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c8c8f,0x5b8309b4^_0x133c0c);});}}_0x579595[_0x38c42e([0x6f,0x6e])](_0x38c42e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xaa4d56,_0x152bb9)=>{if(_0x152bb9[0x0]!=_0x2eede6)return _0x4d815f(_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x152bb9[0x1]={..._0x152bb9[0x1],[_0x38c42e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21912d};},{[_0x38c42e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38c42e([0x68,0x69,0x67,0x68])}),_0x579595[_0x38c42e([0x6f,0x6e])](_0x38c42e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x305064=>{_0x386de3(_0x305064[_0x38c42e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f671f=!0x0,_0x2fb422(_0x305064[_0x38c42e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38c42e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38c42e([0x6c,0x6f,0x77])}),_0xe75c36[_0x38c42e([0x74,0x68,0x65,0x6e])](()=>{_0x2f671f||_0x4d815f(_0x38c42e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c2a6f(){return _0x579595[_0x38c42e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38c42e([0x76,0x69,0x65,0x77])][_0x38c42e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38c42e([0x61,0x75,0x74,0x6f]);}function _0x5255de(){_0x579595[_0x38c42e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38c42e([0x76,0x69,0x65,0x77])][_0x38c42e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38c42e([0x61,0x75,0x74,0x6f]);}}function _0xc67b0(_0x16b018){const _0x3742d4=[new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xae9e3c=>setTimeout(_0xae9e3c,0x5b8be3b8^_0x133c0c)),_0xe75c36[_0x38c42e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3161fc=>{let _0x4db6a8=0x0;_0x579595[_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c42e([0x6f,0x6e])](_0x38c42e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f8ce0,_0x2204ed)=>{_0x2204ed[0x0][_0x38c42e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4db6a8++,_0x4db6a8==(0x5b82dc8c^_0x133c0c)&&(_0x3161fc(),_0x4f8ce0[_0x38c42e([0x6f,0x66,0x66])]());});}))];return window[_0x38c42e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38c42e([0x72,0x61,0x63,0x65])](_0x3742d4)[_0x38c42e([0x74,0x68,0x65,0x6e])](()=>_0x16b018);}async function _0xcf60c0(){await _0xe75c36,_0x579595[_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c42e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29fa37,_0x579595[_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c])][_0x38c42e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29fa37,_0x579595[_0x38c42e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38c42e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b9930(){return _0x4f858d(_0x38c42e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1a51c4(_0x38c42e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x38c42e([0x73,0x74,0x61,0x74,0x65])]==_0x38c42e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4686f0(){return _0x4f858d(_0x38c42e([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 _0x3a934f(){return _0x4f858d(_0x38c42e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x11f813(_0x90cf62){const _0x33d40e=_0x5cb202();_0x579595[_0x33d40e]=_0x38c42e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x90cf62,_0x90cf62!=_0x38c42e([0x56,0x61,0x6c,0x69,0x64])&&_0xcf60c0();}function _0x5cb202(){const _0x50651c=window[_0x38c42e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38c42e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38c42e([0x6e,0x6f,0x77])]())[_0x38c42e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38c42e([0x2e]),'');let _0x3f9fcc=_0x38c42e([0x4a]);for(let _0x2013f7=0x0;_0x2013f7<_0x50651c[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2013f7+=0x2){let _0x4d68ac=window[_0x38c42e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50651c[_0x38c42e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2013f7,_0x2013f7+0x2));_0x4d68ac>=_0x14a9ac[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d68ac-=_0x14a9ac[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f9fcc+=_0x14a9ac[_0x4d68ac];}return _0x3f9fcc;}function _0x6c1269(){const _0x5e94f7=_0x2c9faa[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e]));if(0x3!=_0x5e94f7[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42cc22(_0x5e94f7[0x1]);function _0x42cc22(_0x4d8cfd){const _0x3dde48=_0x21101f(_0x4d8cfd);return _0x3dde48&&_0x136108()?_0x3dde48:null;function _0x136108(){const _0x5cf1aa=_0x3dde48[_0x38c42e([0x6a,0x74,0x69])],_0x2cf9d2=window[_0x38c42e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cf1aa[_0x38c42e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cf1aa[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4cc5e6={..._0x3dde48,[_0x38c42e([0x6a,0x74,0x69])]:_0x5cf1aa[_0x38c42e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cf1aa[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4cc5e6[_0x38c42e([0x76,0x63])],_0x4c7c21(_0x4cc5e6)==_0x2cf9d2;}}}async function _0x1db4e6(){let _0x1ae047=!0x0;try{const _0x131d5b=_0x2c9faa[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])](_0x38c42e([0x2e])),[_0x5cc292,_0x39b8f7,_0x308fd2]=_0x131d5b;return _0x159f5c(_0x5cc292),await _0x432dd0(_0x5cc292,_0x39b8f7,_0x308fd2),_0x1ae047;}catch(_0x36d19d){return!0x1;}function _0x159f5c(_0x12fdae){const _0x5cac90=_0x21101f(_0x12fdae);_0x5cac90&&_0x5cac90[_0x38c42e([0x61,0x6c,0x67])]==_0x38c42e([0x45,0x53,0x32,0x35,0x36])||(_0x1ae047=!0x1);}async function _0x432dd0(_0x558f93,_0x400f9b,_0x5d77d7){const _0x490e0e=window[_0x38c42e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38c42e([0x66,0x72,0x6f,0x6d])](_0x582820(_0x5d77d7),_0x3f9a9f=>_0x3f9a9f[_0x38c42e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x353855=new window[(_0x38c42e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38c42e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x558f93+_0x38c42e([0x2e])+_0x400f9b),_0x18fecd=window[_0x38c42e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38c42e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18fecd)return;const _0x36a271=await _0x18fecd[_0x38c42e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38c42e([0x6a,0x77,0x6b]),_0x5b2c25,{[_0x38c42e([0x6e,0x61,0x6d,0x65])]:_0x38c42e([0x45,0x43,0x44,0x53,0x41]),[_0x38c42e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38c42e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38c42e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18fecd[_0x38c42e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38c42e([0x6e,0x61,0x6d,0x65])]:_0x38c42e([0x45,0x43,0x44,0x53,0x41]),[_0x38c42e([0x68,0x61,0x73,0x68])]:{[_0x38c42e([0x6e,0x61,0x6d,0x65])]:_0x38c42e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x36a271,_0x490e0e,_0x353855)||(_0x1ae047=!0x1);}}function _0x21101f(_0x4580bf){return _0x4580bf[_0x38c42e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38c42e([0x65,0x79]))?JSON[_0x38c42e([0x70,0x61,0x72,0x73,0x65])](_0x582820(_0x4580bf)):null;}function _0x582820(_0x57bb42){return window[_0x38c42e([0x61,0x74,0x6f,0x62])](_0x57bb42[_0x38c42e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38c42e([0x2b]))[_0x38c42e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38c42e([0x2f])));}function _0x4c7c21(_0x3627ff){let _0x9550d6=0x1505;function _0x36f2ba(_0x3be3c2){for(let _0x19f1ea=0x0;_0x19f1ea<_0x3be3c2[_0x38c42e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19f1ea++){const _0xf8f3f9=_0x3be3c2[_0x38c42e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19f1ea);_0x9550d6=(_0x9550d6<<0x5)+_0x9550d6+_0xf8f3f9,_0x9550d6&=_0x9550d6;}}function _0x278e2a(_0x5448ad){Array[_0x38c42e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5448ad)?_0x5448ad[_0x38c42e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x278e2a):_0x5448ad&&typeof _0x5448ad==_0x38c42e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38c42e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5448ad)[_0x38c42e([0x73,0x6f,0x72,0x74])]()[_0x38c42e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ec443,_0x4b84c1])=>{_0x36f2ba(_0x4ec443),_0x278e2a(_0x4b84c1);}):_0x36f2ba(window[_0x38c42e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5448ad));}return _0x278e2a(_0x3627ff),_0x9550d6>>>0x0;}function _0x2878fe(_0x447d52){return _0x447d52[_0x38c42e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38c42e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38c42e([0x30]));}function _0x2d576e(_0x41e351){return _0x41e351[_0x38c42e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38c42e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38c42e([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f858d(_0x2528a6){return _0x579595[_0x38c42e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38c42e([0x68,0x61,0x73])](_0x2528a6);}function _0x1a51c4(_0x3251b0){return _0x579595[_0x38c42e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x38c42e([0x67,0x65,0x74])](_0x3251b0);}function _0x29fa37(){}function _0x38c42e(_0x1ded14){return _0x1ded14['map'](_0x4a5feb=>String['fromCharCode'](_0x4a5feb))['join']('');}_0x11f813(await _0x10f406());}(this);}set['adapter'](_0x23ddff){if(this['_adapter'])throw new _0xfec3cf('track-changes-adapter-already-set',this);this['_adapter']=_0x23ddff;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2b069a=!0x1,toJSON:_0x446c0a=!0x1}={}){const _0x394abd=[];for(const _0x5d1f90 of this['_suggestions']['values']())_0x2b069a&&!_0x5d1f90['isInContent']||_0x394abd['push'](_0x5d1f90);return _0x446c0a?_0x394abd['map'](_0x18f217=>_0x18f217['toJSON']()):_0x394abd;}['getSuggestion'](_0x561026){const _0x575886=this['_suggestions']['get'](_0x561026);if(!_0x575886)throw new _0xfec3cf('track-changes-suggestion-not-found',this);return _0x575886;}['hasSuggestion'](_0x18dd38){return this['_suggestions']['has'](_0x18dd38);}['addSuggestionData'](_0x350935){const {authorId:_0x72665f,id:_0x5d6f03,attributes:_0x302c34}=_0x350935,[_0x2f9aae,_0x456a35]=_0x350935['type']['split'](':'),_0x522e2d=this['_suggestions']['get'](_0x5d6f03)||this['_createSuggestion'](_0x2f9aae,_0x456a35,_0x5d6f03,_0x72665f,_0x302c34);if(this['_addThreadToSuggestion'](_0x522e2d),this['_checkSuggestionCorrectness'](_0x522e2d,_0x2f9aae,_0x456a35||null,_0x72665f),_0x522e2d['createdAt']=_0x350935['createdAt'],_0x522e2d['_isDataLoaded']=!0x0,_0x302c34&&_0x302c34['@external']){const _0x5be366=_0x302c34['@external'],_0x55a553=this['_getExternalAuthor'](_0x5be366['authorName']);_0x522e2d['authoredAt']=_0x5be366['createdAt'],_0x522e2d['author']=_0x55a553,_0x522e2d['isExternal']=!0x0;}else _0x522e2d['authoredAt']=_0x350935['createdAt'];switch(_0x350935['data']&&(_0x522e2d['data']=_0x350935['data']),_0x350935['attributes']&&(_0x522e2d['attributes']=_0x350935['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x522e2d['_saved']=!0x0),this['_suggestionState']['get'](_0x522e2d)){case'notReady':this['_suggestionState']['set'](_0x522e2d,'dataReady');break;case'markerReady':_0x522e2d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x522e2d])),this['_refreshSuggestionsChain'](new Set([_0x522e2d])),this['_suggestionState']['set'](_0x522e2d,'ready'),this['fire']('suggestionLoaded',_0x522e2d)):this['_suggestionState']['set'](_0x522e2d,'removed');}return _0x522e2d;}['acceptSuggestion'](_0x434918){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3410d8 of _0x434918['getAllAdjacentSuggestions']())_0x3410d8['accept']();});});}['discardSuggestion'](_0x5570d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x312711 of _0x5570d7['getAllAdjacentSuggestions']())_0x312711['discard']();});});}['enableCommand'](_0x14da33,_0x3c711b){const _0x37ddd2=this['editor']['commands']['get'](_0x14da33);if(!_0x37ddd2)throw new _0xfec3cf('track-changes-command-not-found',this,{'commandName':_0x14da33});if(this['_enabledCommands']['has'](_0x37ddd2))throw new _0xfec3cf('track-changes-enable-command-twice',this,{'commandName':_0x14da33});this['_enabledCommands']['add'](_0x37ddd2),_0x3c711b&&_0x37ddd2['on']('execute',(_0x3bcc95,_0x2751be)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2751be['length']>0x0&&_0x2751be[_0x2751be['length']-0x1]&&_0x2751be[_0x2751be['length']-0x1]['forceDefaultExecution']?_0x2751be['pop']():(_0x3bcc95['return']=_0x3c711b((..._0x5ed9c6)=>_0x37ddd2['execute'](..._0x5ed9c6,{'forceDefaultExecution':!0x0}),..._0x2751be),_0x3bcc95['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8fbdc3){let _0x7acf79,_0x3969bb;const _0x5ab0c2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x7acf79=_0x8fbdc3();}catch(_0x49c855){_0x3969bb=_0x49c855;}return _0x5ab0c2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3969bb&&_0xfec3cf['rethrowUnexpectedError'](_0x3969bb,this),_0x7acf79;}['markInsertion'](_0x1acb0f,_0x47304f=null,_0xe7d07={}){if(_0x1acb0f['isCollapsed'])return null;const _0x399dd1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x30184e,meta:_0x87f8ce}of this['_findSuggestions'](_0x1acb0f,'insertion'))if(_0x87f8ce['isOwn']){if(!_0x87f8ce['isNextTo']){if(_0x87f8ce['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x30184e,_0xe7d07))continue;return _0x30184e;}if(Kt(_0x30184e,_0xe7d07))return _0x30184e;this['_breakSuggestionMarker'](_0x30184e,_0x1acb0f['start'],_0x1acb0f['end']);break;}if(_0x47304f==_0x30184e['subType']&&Kt(_0x30184e,_0xe7d07)){const _0x393af5=_0x30184e['getFirstRange']();return _0x393af5['start']['isEqual'](_0x1acb0f['end'])?this['_setSuggestionRange'](_0x30184e,this['_model']['createRange'](_0x1acb0f['start'],_0x393af5['end'])):this['_setSuggestionRange'](_0x30184e,this['_model']['createRange'](_0x393af5['start'],_0x1acb0f['end'])),_0x30184e;}}const _0x443868=_0x2cd620(),_0x5ac1c8=_0x399dd1['id'],_0x362a0d=_0x47304f?'insertion:'+_0x47304f:'insertion',_0x1fb27b=this['_setSuggestionData']({'id':_0x443868,'type':_0x362a0d,'createdAt':new Date(),'authorId':_0x5ac1c8,'attributes':_0xe7d07});return this['_addSuggestionMarker'](_0x362a0d,_0x443868,_0x5ac1c8,_0x1acb0f),_0x1fb27b;}['markMultiRangeInsertion'](_0x46c821,_0x54c867='multi',_0x4a72a0={}){const _0xb09b2d=this['editor']['plugins']['get']('Users')['me'],_0x401faf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x54c867,'join');for(const _0x445e5f of this['getSuggestions']())if(_0x445e5f['author']['id']==_0xb09b2d['id']&&'insertion'==_0x445e5f['type']&&_0x445e5f['subType']==_0x54c867&&Kt(_0x445e5f,_0x4a72a0)&&(_0x401faf(_0x445e5f['getRanges'](),_0x46c821)||_0x401faf(_0x46c821,_0x445e5f['getRanges']()))){for(const _0x140612 of _0x46c821)_0x445e5f['addRange'](_0x140612);return _0x445e5f;}for(const {suggestion:_0x46c97b,meta:_0x4bf48c}of this['_findSuggestions'](_0x46c821,'insertion')){if(!_0x4bf48c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4bf48c['containsRangeInObject'])continue;if(!Kt(_0x46c97b,_0x4a72a0))continue;let _0x249496=!0x0;for(const _0x1739d2 of _0x46c97b['getRanges']())for(const _0x358f7f of _0x46c821)if(!_0x1739d2['containsRange'](_0x358f7f)){_0x249496=!0x1;break;}if(_0x249496)return _0x46c97b;}const _0x23974f=_0x2cd620(),_0x1d288a=_0xb09b2d['id'],_0x5c2fc1='insertion:'+_0x54c867,_0x592770=this['_setSuggestionData']({'id':_0x23974f,'type':_0x5c2fc1,'createdAt':new Date(),'authorId':_0x1d288a,'attributes':_0x4a72a0});for(const _0x66c97d of _0x46c821)this['_addSuggestionMarker'](_0x5c2fc1,_0x23974f,_0x1d288a,_0x66c97d,u['getMultiRangeId']());return _0x592770;}['markInlineFormat'](_0x35524a,_0x213f87,_0x43a87b=null,_0x2e99ec={}){if(_0x43a87b=_0x43a87b||Ft(_0x213f87),_0x35524a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1d5583=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x43a87b,'accept');return this['forceDefaultExecution'](()=>_0x1d5583([_0x35524a],_0x213f87,_0x2e99ec)),null;}const _0x57f45e=this['editor']['plugins']['get']('Users')['me'],_0x173342=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d3610,meta:_0x4d6eaa}of this['_findSuggestions'](_0x35524a,'insertion'))_0x4d6eaa['isOwn']&&!_0x4d6eaa['isInsideObject']&&_0x173342['push'](..._0x3d3610['getRanges']());}const _0x105a3c=function(_0x9faefc,_0x1bc6ed){const _0x53fbad=[];for(const _0x5263be of _0x1bc6ed){const _0x2bce36=_0x9faefc['getIntersection'](_0x5263be);_0x2bce36&&_0x53fbad['push'](_0x2bce36);}return _0x53fbad;}(_0x35524a,_0x173342),_0xba7408=function(_0x357e55,_0x2d0ce3){const _0xe92f6b=[_0x357e55];for(const _0x5ed281 of _0x2d0ce3){let _0x3380b9=0x0;for(;_0x3380b9<_0xe92f6b['length'];){const _0x3eacbf=_0xe92f6b[_0x3380b9]['getDifference'](_0x5ed281);_0xe92f6b['splice'](_0x3380b9,0x1,..._0x3eacbf),_0x3380b9+=_0x3eacbf['length'];}}return _0xe92f6b;}(_0x35524a,_0x173342);_0x105a3c['length']&&this['_model']['change'](()=>{for(const _0x11c2ee of _0x105a3c){const _0x3f74c6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x43a87b,'accept');this['forceDefaultExecution'](()=>_0x3f74c6([_0x11c2ee],_0x213f87,_0x2e99ec));}});for(const _0x463f14 of _0xba7408){let _0x18127a=null,_0x16e49b=_0x463f14['start'],_0x4b3820=_0x463f14['end'];for(const {suggestion:_0x334d7b,meta:_0x41d2c4}of this['_findSuggestions'](_0x463f14,'formatInline')){if(!_0x41d2c4['isOwn'])continue;if(_0x334d7b['subType']!=_0x43a87b)continue;if(!Kt(_0x334d7b,_0x2e99ec))continue;const _0x11bd2b=_0x334d7b['getFirstRange']();if(_0x11bd2b['containsRange'](_0x463f14,!0x0))return null;_0x16e49b=_0x16e49b['isBefore'](_0x11bd2b['start'])?_0x16e49b:_0x11bd2b['start'],_0x4b3820=_0x4b3820['isAfter'](_0x11bd2b['end'])?_0x4b3820:_0x11bd2b['end'],_0x18127a?_0x11bd2b['start']['isBefore'](_0x18127a['getFirstRange']()['start'])?(_0x18127a['removeMarkers'](),_0x18127a=_0x334d7b):_0x334d7b['removeMarkers']():_0x18127a=_0x334d7b;}const _0xddb0b5=this['_model']['createRange'](_0x16e49b,_0x4b3820);if(_0x18127a)this['_setSuggestionRange'](_0x18127a,_0xddb0b5);else{const _0x436ca5=_0x2cd620(),_0x12fb6c=_0x57f45e['id'];this['_setSuggestionData']({'id':_0x436ca5,'type':'formatInline:'+_0x43a87b,'data':_0x213f87,'createdAt':new Date(),'authorId':_0x12fb6c,'attributes':_0x2e99ec}),this['_addSuggestionMarker']('formatInline:'+_0x43a87b,_0x436ca5,_0x12fb6c,_0xddb0b5);}}return null;}['markBlockFormat'](_0x345d1e,_0x2091c3,_0x4f7748=[],_0x6024ef=null,_0x5b38b6={}){_0x2091c3['formatGroupId']||(_0x2091c3['formatGroupId']=_0x2091c3['commandName']),_0x2091c3['multipleBlocks']=_0x345d1e['is']('range'),_0x6024ef=_0x6024ef||Ft(_0x2091c3);const _0x20bd72=_0x4f7748['map'](_0x2c2865=>Ht(_0x2c2865,this['_model'])),_0xb1f508=_0x345d1e['is']('range')?_0x345d1e:Ht(_0x345d1e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1d79d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6024ef,'accept');return this['forceDefaultExecution'](()=>_0x1d79d0([_0xb1f508],_0x2091c3,_0x5b38b6)),null;}_0x20bd72['push'](_0xb1f508);let _0x1cd43e=!0x0;for(const _0x206b99 of _0x20bd72)if(!this['_rangeIsInLocalUserInsertion'](_0x206b99)){_0x1cd43e=!0x1;break;}if(_0x1cd43e&&'always'!==this['_trackFormatChanges']){const _0x3925a2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x6024ef,'accept');return this['forceDefaultExecution'](()=>_0x3925a2([_0xb1f508],_0x2091c3,_0x5b38b6)),null;}let _0xa9ab91=null,_0x5712ab=_0xb1f508['start'],_0x1fa7b1=_0xb1f508['end'];for(const {suggestion:_0x33f235,meta:_0x215a72}of this['_findSuggestions'](_0xb1f508,'formatBlock')){if(!_0x215a72['isOwn'])continue;if(_0x215a72['isNextTo']||_0x215a72['containsRangeInObject']||_0x215a72['isInsideObject'])continue;if(_0x33f235['data']['formatGroupId']!=_0x2091c3['formatGroupId'])continue;if(!Kt(_0x33f235,_0x5b38b6))continue;const _0x59ca2e=_0x33f235['getFirstRange']();if(_0x33f235['subType']==_0x6024ef){if(_0x59ca2e['containsRange'](_0xb1f508,!0x0))return null;_0x5712ab=_0x5712ab['isBefore'](_0x59ca2e['start'])?_0x5712ab:_0x59ca2e['start'],_0x1fa7b1=_0x1fa7b1['isAfter'](_0x59ca2e['end'])?_0x1fa7b1:_0x59ca2e['end'],_0xa9ab91?_0x59ca2e['start']['isBefore'](_0xa9ab91['getFirstRange']()['start'])?(_0xa9ab91['removeMarkers'](),_0xa9ab91=_0x33f235):_0x33f235['removeMarkers']():_0xa9ab91=_0x33f235;}else{const _0x394aef=_0xb1f508['getIntersection'](_0x59ca2e);this['_cutOutSuggestionMarker'](_0x33f235,_0x394aef);}}const _0x1a2466=this['editor']['plugins']['get']('Users')['me'],_0x5bbad2=_0x2cd620(),_0x12b131=_0x1a2466['id'];if(_0xa9ab91)return this['_setSuggestionRange'](_0xa9ab91,this['_model']['createRange'](_0x5712ab,_0x1fa7b1)),_0xa9ab91;{const _0x28b9e8=this['_setSuggestionData']({'id':_0x5bbad2,'type':'formatBlock:'+_0x6024ef,'data':_0x2091c3,'createdAt':new Date(),'authorId':_0x12b131,'attributes':_0x5b38b6});return this['_addSuggestionMarker']('formatBlock:'+_0x6024ef,_0x5bbad2,_0x12b131,this['_model']['createRange'](_0x5712ab,_0x1fa7b1)),_0x28b9e8;}}['markMultiRangeBlockFormat'](_0x4684c7,_0x1fe06b,_0x411125=[],_0x7f9c39=null,_0x329c82={}){_0x1fe06b['formatGroupId']||(_0x1fe06b['formatGroupId']=_0x1fe06b['commandName']);const _0x2c3132=_0x4684c7[0x0];_0x1fe06b['multipleBlocks']=_0x2c3132['is']('range'),_0x7f9c39=_0x7f9c39||Ft(_0x1fe06b);const _0x356705=_0x411125['map'](_0x4251ce=>Ht(_0x4251ce,this['_model'])),_0x699412=_0x2c3132['is']('range')?_0x4684c7:_0x4684c7['map'](_0x21c89b=>Ht(_0x21c89b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x147e6a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7f9c39,'accept');return this['forceDefaultExecution'](()=>_0x147e6a(_0x699412,_0x1fe06b,_0x329c82)),null;}_0x356705['push'](..._0x699412);let _0x438ec=!0x0;for(const _0x595b6e of _0x356705)if(!this['_rangeIsInLocalUserInsertion'](_0x595b6e)){_0x438ec=!0x1;break;}if(_0x438ec&&'always'!==this['_trackFormatChanges']){const _0x3c52b5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7f9c39,'accept');return this['forceDefaultExecution'](()=>_0x3c52b5(_0x699412,_0x1fe06b,_0x329c82)),null;}const _0x5a028e=this['editor']['plugins']['get']('Users')['me'];for(const _0x293d3d of this['getSuggestions']()){if(_0x293d3d['author']['id']!=_0x5a028e['id'])continue;if('formatBlock'!=_0x293d3d['type']||_0x293d3d['data']['formatGroupId']!=_0x1fe06b['formatGroupId'])continue;if(!Kt(_0x293d3d,_0x329c82))continue;const _0x4729fd=_0x293d3d['subType']==_0x7f9c39;for(let _0x4f81ec=0x0;_0x4f81ec<_0x699412['length'];_0x4f81ec++){const _0x2a6e07=_0x699412[_0x4f81ec];for(const _0x37303f of _0x293d3d['getMarkers']()){const _0x4255e4=_0x37303f['getRange']();if(_0x2a6e07['isEqual'](_0x4255e4)){_0x4729fd?(_0x699412['splice'](_0x4f81ec,0x1),_0x4f81ec--):_0x293d3d['removeMarker'](_0x37303f['name']);break;}}}}if(0x0==_0x699412['length'])return null;const _0xd7372e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x7f9c39,'join');for(const _0x3b889a of this['getSuggestions']())if(_0x3b889a['author']['id']==_0x5a028e['id']&&'formatBlock'==_0x3b889a['type']&&_0x3b889a['data']['formatGroupId']==_0x1fe06b['formatGroupId']&&_0x3b889a['subType']==_0x7f9c39&&Kt(_0x3b889a,_0x329c82)&&(_0xd7372e(_0x3b889a['getRanges'](),_0x699412)||_0xd7372e(_0x699412,_0x3b889a['getRanges']()))){for(const _0xbf6e2d of _0x699412)_0x3b889a['addRange'](_0xbf6e2d);return _0x3b889a;}const _0x533410=_0x2cd620(),_0x4613fc=_0x5a028e['id'],_0x57a96a='formatBlock:'+_0x7f9c39,_0x2b1e5f=this['_setSuggestionData']({'id':_0x533410,'type':_0x57a96a,'data':_0x1fe06b,'createdAt':new Date(),'authorId':_0x4613fc,'attributes':_0x329c82});for(const _0x222b60 of _0x699412)this['_addSuggestionMarker'](_0x57a96a,_0x533410,_0x4613fc,_0x222b60,u['getMultiRangeId']());return _0x2b1e5f;}['markDeletion'](_0x40a17e,_0x4f2578=null,_0x270e98={}){if(_0x40a17e['isCollapsed'])return null;const _0x514e07=this['editor']['plugins']['get']('Users')['me'],_0x5be59b=new _0x114c36(_0x40a17e['start'],_0x40a17e['end']);for(const {suggestion:_0x2459e8,meta:_0x4719f7}of this['_findSuggestions'](_0x5be59b,'insertion'))if(_0x4719f7['isOwn']&&!_0x4719f7['isNextTo']){if(_0x2459e8['isMultiRange']){const _0x27df10=_0x2459e8['getRanges']()['filter'](_0x549d13=>'$graveyard'!=_0x549d13['root']['rootName']);_0x27df10['every'](_0x3e002a=>_0x5be59b['containsRange'](_0x3e002a,!0x0))&&_0x2459e8['discard']();if(_0x27df10['some'](_0x53daad=>_0x53daad['containsRange'](_0x5be59b,!0x0))){const _0x575902=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4f2578,'accept');return this['forceDefaultExecution'](()=>_0x575902([_0x5be59b],null,_0x270e98)),null;}}else{const _0x5c9a93=_0x5be59b['getIntersection'](_0x2459e8['getFirstRange']());null!==_0x5c9a93&&_0x2459e8['_onDiscard']([_0x5c9a93],null,_0x270e98);}}if(_0x5be59b['detach'](),_0x5be59b['isCollapsed']||'$graveyard'==_0x5be59b['root']['rootName'])return null;let _0x8efb1=null,_0x548798=_0x5be59b['start'],_0x2c61ed=_0x5be59b['end'];const _0x256821=this['_findSuggestions'](_0x5be59b,'deletion');for(const {suggestion:_0x438594,meta:_0x19faa9}of _0x256821){const _0x1be35c=this['_model']['createRange'](_0x548798,_0x2c61ed);if(_0x19faa9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x19faa9['containsRangeInObject']&&!_0x19faa9['isInsideObject'])){if(_0x438594['isMultiRange']){if(!Kt(_0x438594,_0x270e98))continue;let _0x14f6f9=!0x0;for(const _0xa0942a of _0x438594['getRanges']()){if(_0xa0942a['containsRange'](_0x1be35c,!0x0))return _0x438594;_0x1be35c['containsRange'](_0xa0942a)||(_0x14f6f9=!0x1);}_0x14f6f9&&_0x438594['discard']();}else{const _0x5a582a=_0x438594['getFirstRange']();if(_0x5a582a['containsRange'](_0x1be35c,!0x0))return _0x438594;if(!Kt(_0x438594,_0x270e98)){_0x1be35c['containsRange'](_0x5a582a)?_0x438594['removeMarkers']():_0x5a582a['containsPosition'](_0x548798)?_0x548798=_0x5a582a['end']:_0x5a582a['containsPosition'](_0x2c61ed)&&(_0x2c61ed=_0x5a582a['start']);continue;}_0x548798=_0x548798['isBefore'](_0x5a582a['start'])?_0x548798:_0x5a582a['start'],_0x2c61ed=_0x2c61ed['isAfter'](_0x5a582a['end'])?_0x2c61ed:_0x5a582a['end'],_0x270e98=Object['assign']({},_0x438594['attributes']),_0x8efb1?_0x5a582a['start']['isBefore'](_0x8efb1['getFirstRange']()['start'])?(_0x8efb1['removeMarkers'](),_0x8efb1=_0x438594):_0x438594['removeMarkers']():_0x8efb1=_0x438594;}}}if(_0x8efb1)return this['_setSuggestionRange'](_0x8efb1,this['_model']['createRange'](_0x548798,_0x2c61ed)),_0x8efb1;{const _0x3225e1=_0x2cd620(),_0x100b5e=this['_model']['createRange'](_0x548798,_0x2c61ed),_0x589e53=_0x514e07['id'],_0x2c8682=_0x4f2578?'deletion:'+_0x4f2578:'deletion',_0x4a21f5=this['_setSuggestionData']({'id':_0x3225e1,'type':_0x2c8682,'createdAt':new Date(),'authorId':_0x589e53,'attributes':_0x270e98});return this['_addSuggestionMarker'](_0x2c8682,_0x3225e1,_0x589e53,_0x100b5e),_0x4a21f5;}}['markMultiRangeDeletion'](_0x4facd3,_0x108752='multi',_0x2a7e98={}){const _0x57ebb0=this['editor']['plugins']['get']('Users')['me'],_0x1f7f3d=_0x4facd3['map'](_0x53afcd=>new _0x114c36(_0x53afcd['start'],_0x53afcd['end'])),_0x5417b6=new Set();for(const {suggestion:_0x395f07,meta:_0x276f72}of this['_findSuggestions'](_0x1f7f3d,'insertion'))_0x276f72['isOwn']&&!_0x276f72['isNextTo']&&_0x5417b6['add'](_0x395f07);for(const _0x1856e6 of _0x5417b6)if(_0x1856e6['isMultiRange']){const _0x3d7fce=_0x1856e6['getRanges']();(!_0x1856e6['attributes']||!_0x1856e6['attributes']['skipNestingCheck'])&&(_0x3d7fce['every'](_0x36ed76=>_0x1f7f3d['some'](_0x381823=>_0x381823['containsRange'](_0x36ed76,!0x0)))&&_0x1856e6['discard']());if(_0x1f7f3d['every'](_0xc6b509=>_0x3d7fce['some'](_0x57a445=>_0x57a445['containsRange'](_0xc6b509,!0x0)))){const _0x31bff2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108752,'accept');return this['forceDefaultExecution'](()=>_0x31bff2(_0x4facd3,null,_0x2a7e98)),null;}}else{const _0x187aba=_0x1856e6['getFirstRange']();_0x1f7f3d['some'](_0x477886=>_0x477886['containsRange'](_0x187aba,!0x0))&&_0x1856e6['discard']();if(_0x1f7f3d['every'](_0x28cf27=>_0x187aba['containsRange'](_0x28cf27,!0x0))){const _0x5ac108=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108752,'accept');return this['forceDefaultExecution'](()=>_0x5ac108(_0x1f7f3d,null,_0x2a7e98)),null;}}const _0x40d97a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108752,'join');let _0x564c2b=null;for(const _0x316270 of this['getSuggestions']())if(_0x316270['author']['id']==_0x57ebb0['id']&&_0x316270['isInContent']&&'deletion'==_0x316270['type']&&_0x316270['subType']==_0x108752&&Kt(_0x316270,_0x2a7e98)&&(_0x40d97a(_0x316270['getRanges'](),_0x1f7f3d)||_0x40d97a(_0x1f7f3d,_0x316270['getRanges']()))){if(_0x564c2b){if(_0x316270['commentThread']&&_0x316270['commentThread']['length'])continue;for(const _0x2c5189 of _0x316270['getRanges']())_0x564c2b['isIntersectingWithRange'](_0x2c5189)||_0x564c2b['addRange'](_0x2c5189);_0x316270['removeMarkers']();}else{_0x564c2b=_0x316270;for(const _0x595986 of _0x1f7f3d)_0x316270['isIntersectingWithRange'](_0x595986)||_0x316270['addRange'](_0x595986);}}if(_0x564c2b)return _0x564c2b;_0x5417b6['clear']();for(const {suggestion:_0x1bdaf8,meta:_0x97639}of this['_findSuggestions'](_0x1f7f3d,'deletion'))_0x97639['isOwn']&&(this['_mergeNestedSuggestions']||!_0x97639['containsRangeInObject']&&!_0x97639['isInsideObject'])&&Kt(_0x1bdaf8,_0x2a7e98)&&_0x5417b6['add'](_0x1bdaf8);for(const _0x2e1585 of _0x5417b6){const _0x268d8a=_0x2e1585['getRanges']();if(!_0x2a7e98||!_0x2a7e98['skipNestingCheck']){if(_0x1f7f3d['every'](_0x438479=>_0x268d8a['some'](_0x8e3f00=>_0x8e3f00['containsRange'](_0x438479,!0x0))))return _0x2e1585;}(!_0x2e1585['attributes']||!_0x2e1585['attributes']['skipNestingCheck'])&&(_0x268d8a['every'](_0x285a29=>_0x1f7f3d['some'](_0x22544a=>_0x22544a['containsRange'](_0x285a29,!0x0)))&&_0x2e1585['discard']());}const _0x3d89b6=_0x2cd620(),_0x52988b=_0x57ebb0['id'],_0x33d923='deletion:'+_0x108752,_0x5c70c5=this['_setSuggestionData']({'id':_0x3d89b6,'type':_0x33d923,'createdAt':new Date(),'authorId':_0x52988b,'attributes':_0x2a7e98});for(const _0xd539d0 of _0x1f7f3d)_0xd539d0['detach'](),_0xd539d0['isCollapsed']||'$graveyard'==_0xd539d0['root']['rootName']||this['_addSuggestionMarker'](_0x33d923,_0x3d89b6,_0x52988b,_0xd539d0,u['getMultiRangeId']());return _0x5c70c5;}['markAttributeChange'](_0x21fae9,_0x267f6d,_0x4ec794,_0x1b5805,_0x5a726b){if(_0x21fae9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xc1aefb=this['editor']['plugins']['get']('Users')['me']['id'],_0xbe43ed=Array['from'](this['_suggestions']['values']())['filter'](_0x592435=>'attribute'==_0x592435['type']&&_0x592435['data']['key']==_0x267f6d&&_0x592435['isIntersectingWithRange'](_0x21fae9));if('default'===this['_trackFormatChanges']){const _0xecd6db=this['_findSuggestions'](_0x21fae9,'insertion')['filter'](({meta:_0x4a95cc})=>_0x4a95cc['isOwn']&&!_0x4a95cc['isInsideObject']&&!_0x4a95cc['isNextTo'])['map'](({suggestion:_0x122105})=>_0x122105);_0xbe43ed['unshift'](..._0xecd6db);}const _0xfe4cdc=new Map([[_0x21fae9,_0x4ec794]]);for(const _0x50f582 of _0xbe43ed){const _0x54779b='attribute'==_0x50f582['type']?_0x50f582['data']['oldValue']:void 0x0,_0x1426a7=_0x50f582['getFirstRange'](),_0x4ec04f=Array['from'](_0xfe4cdc['keys']())['find'](_0x132594=>_0x132594['isIntersecting'](_0x1426a7));if(!_0x4ec04f)continue;const _0x1a25c4=_0x4ec04f['getDifference'](_0x1426a7);this['_isBlockAttribute'](_0x267f6d)&&'insertion'==_0x50f582['type']&&0x0!=_0x1a25c4['length']||(_0xfe4cdc['delete'](_0x4ec04f),_0x1a25c4['forEach'](_0x559f24=>{_0xfe4cdc['set'](_0x559f24,_0x4ec794);}),'insertion'!=_0x50f582['type']&&_0x54779b!=_0x1b5805&&_0xfe4cdc['set'](_0x4ec04f['getIntersection'](_0x1426a7),_0x54779b));}const _0x3ac081=[];for(const [_0x5ab9a4,_0x405f39]of _0xfe4cdc){const _0x17261c=_0x2cd620(),_0x1c8cf7={'key':_0x267f6d,'oldValue':_0x405f39,'newValue':_0x1b5805};_0x267f6d['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':_0x267f6d});const _0x37a957=('attribute:'+(_0x267f6d+'|'+Ft({'newValue':_0x1b5805})))['substring'](0x0,0x3c),_0x1d55ff=this['_setSuggestionData']({'id':_0x17261c,'type':_0x37a957,'data':_0x1c8cf7,'createdAt':new Date(),'authorId':_0xc1aefb,'attributes':_0x5a726b});_0x3ac081['push'](_0x1d55ff),this['_addSuggestionMarker'](_0x37a957,_0x17261c,_0xc1aefb,_0x5ab9a4);}return _0x3ac081;}['enableDefaultAttributesIntegration'](_0x3eb664){this['enableCommand'](_0x3eb664,(_0x3284ad,..._0x4132f3)=>{this['_recordAttributeChanges'](()=>{_0x3284ad(..._0x4132f3);});});}['registerBlockAttribute'](_0x52aacb){this['_blockAttributeKeys']['add'](_0x52aacb);}['registerInlineAttribute'](_0x261fc3){this['_inlineAttributeKeys']['add'](_0x261fc3);}['_getAttributeKey'](_0x32be75){return'attribute'==_0x32be75['type']?_0x32be75['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x449777,_0x1efaec){const _0x35777e=_0x449777['getFirstMarker']();this['_model']['change'](_0x2e88db=>{_0x2e88db['updateMarker'](_0x35777e,{'range':_0x1efaec});});}['_addThreadToSuggestion'](_0x25b809){const _0x5af81f=_0x25b809['id'],_0x3ba614=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5af81f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ba614,'threadId':_0x5af81f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3da65a=this['_commentsRepository']['getCommentThread'](_0x5af81f);_0x3da65a['unbind']('isRemovable'),_0x3da65a['isRemovable']=!0x1,_0x25b809['commentThread']=_0x3da65a;}['_checkSuggestionCorrectness'](_0x3f3fa7,_0x21bd74,_0x1b0cb5,_0x52f6ca){if(_0x3f3fa7['type']!=_0x21bd74||_0x3f3fa7['subType']!=_0x1b0cb5||_0x3f3fa7['creator']['id']!=_0x52f6ca)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xfec3cf('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x54a311,_0x868760){const _0x493a9c=_0x54a311['getFirstRange']();if(_0x868760['isEqual'](_0x493a9c))_0x54a311['removeMarkers']();else{if(_0x493a9c['containsRange'](_0x868760)){const _0x5ca06e=this['_model']['createPositionAt'](_0x868760['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54a311,this['_model']['createRange'](_0x493a9c['start'],_0x5ca06e));const _0x53b3fa=_0x2cd620(),_0xc4ed35=_0x54a311['creator']['id'],_0xaba6a7=_0x54a311['type']+':'+_0x54a311['subType'];this['_setSuggestionData']({'id':_0x53b3fa,'type':_0xaba6a7,'createdAt':new Date(),'authorId':_0xc4ed35,'data':_0x54a311['data'],'attributes':_0x54a311['attributes']});const _0x2d1ec4=this['_model']['createPositionAt'](_0x868760['end']['parent'],'after'),_0x9c686f=this['_model']['createRange'](_0x2d1ec4,_0x493a9c['end']);this['_addSuggestionMarker'](_0xaba6a7,_0x53b3fa,_0xc4ed35,_0x9c686f);}else{if(_0x493a9c['containsPosition'](_0x868760['start'])){const _0x40fdd2=this['_model']['createPositionAt'](_0x868760['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54a311,this['_model']['createRange'](_0x493a9c['start'],_0x40fdd2));}else{const _0xf890ca=this['_model']['createPositionAt'](_0x868760['end']['parent'],'after');this['_setSuggestionRange'](_0x54a311,this['_model']['createRange'](_0xf890ca,_0x493a9c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x282aa3){for(const {suggestion:_0x42d079,meta:_0x2a1fbd}of this['_findSuggestions'](_0x282aa3,'insertion')){if(!_0x2a1fbd['isOwn'])continue;const _0x3654ad=_0x42d079['getRanges']();for(const _0x27a894 of _0x3654ad)if(!_0x282aa3['getDifference'](_0x27a894)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5790f3){const _0x71eef2=this['editor']['plugins']['get']('Users')['getUser'](_0x5790f3);if(!_0x71eef2)throw new _0xfec3cf('track-changes-user-not-found',this);return _0x71eef2;}['_getExternalAuthor'](_0x3a466b){const _0x10d2f1=this['editor']['plugins']['get']('Users'),_0x29dcc7=_0x2ae810('external:'+_0x3a466b),_0x33d58f=_0x10d2f1['getUser'](_0x29dcc7);return _0x33d58f||_0x10d2f1['addUser']({'id':_0x29dcc7,'name':_0x3a466b});}['_createSuggestion'](_0xda0ba,_0x49b658,_0x409dae,_0x3b2825,_0x346084){const _0x4f90eb=this['_getAuthorFromId'](_0x3b2825),_0x4b4d4b=this['_suggestionFactory']['buildSuggestion'](_0xda0ba,_0x49b658,_0x409dae,_0x4f90eb,_0x346084,_0x4e2b84=>{this['_updateSuggestionData'](_0x409dae,{'attributes':_0x4e2b84});const _0x40a193=this['getSuggestion'](_0x409dae);this['_joinWithAdjacentSuggestions'](new Set([_0x40a193])),this['_refreshSuggestionsChain'](new Set([_0x40a193]));});return this['listenTo'](_0x4b4d4b,'accept',()=>{this['_updateSuggestionData'](_0x409dae,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4b4d4b,'discard',()=>{this['_updateSuggestionData'](_0x409dae,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x409dae,_0x4b4d4b),this['_suggestionState']['set'](_0x4b4d4b,'notReady'),_0x4b4d4b;}['_splitMarkerName'](_0x1bcc54){const _0x1d8ad0=_0x1bcc54['split'](':');return{'group':_0x1d8ad0[0x0],'type':_0x1d8ad0[0x1],'subType':_0x1d8ad0['length']>=0x5?_0x1d8ad0[0x2]:null,'id':_0x1d8ad0['length']<0x5?_0x1d8ad0[0x2]:_0x1d8ad0[0x3],'authorId':_0x1d8ad0['length']<0x5?_0x1d8ad0[0x3]:_0x1d8ad0[0x4],'markerCount':0x6==_0x1d8ad0['length']?_0x1d8ad0[0x5]:null};}['_breakSuggestionMarker'](_0x29da39,_0x3251f8,_0x4e88f9){const _0x440328=_0x29da39['getFirstRange'](),_0x6eb2bc=_0x440328['start'],_0x8294d9=_0x440328['end'];this['_setSuggestionRange'](_0x29da39,this['_model']['createRange'](_0x6eb2bc,_0x3251f8));const _0x2e61dd=_0x2cd620(),_0x316382=_0x29da39['creator']['id'],_0x2be655=_0x29da39['type']+(_0x29da39['subType']?':'+_0x29da39['subType']:'');this['_setSuggestionData']({'id':_0x2e61dd,'type':_0x2be655,'createdAt':new Date(),'authorId':_0x316382,'originalSuggestionId':_0x29da39['id'],'attributes':_0x29da39['attributes'],'data':_0x29da39['data']});const _0x12f4af=this['_getAttributeKey'](_0x29da39);('formatBlock'==_0x29da39['type']||_0x12f4af&&this['_isBlockAttribute'](_0x12f4af))&&(_0x4e88f9=this['_model']['createPositionBefore'](_0x4e88f9['parent'])),this['_addSuggestionMarker'](_0x2be655,_0x2e61dd,_0x316382,this['_model']['createRange'](_0x4e88f9,_0x8294d9));}['_findSuggestions'](_0x1e6caa,_0xb5d247=null){const _0x3d9ea4=[],_0x223fea=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1e6caa)||(_0x1e6caa=[_0x1e6caa]);for(const _0xeebfee of this['getSuggestions']()){if(!_0xeebfee['isInContent'])continue;if(_0xb5d247&&_0xeebfee['type']!=_0xb5d247)continue;let _0x2756dc=!0x1;for(const _0x4fc27f of _0xeebfee['getRanges']()){for(const _0x198bf2 of _0x1e6caa){const _0xdcbae4=_0x198bf2['start']['isEqual'](_0x4fc27f['end'])||_0x198bf2['end']['isEqual'](_0x4fc27f['start']);if(_0xdcbae4||_0x198bf2['getIntersection'](_0x4fc27f)){const _0xf4ec1e=_0x198bf2['containsRange'](_0x4fc27f)&&Vt(this['_model']['schema'],_0x4fc27f['start'],_0x198bf2),_0xed01e1=_0x4fc27f['containsRange'](_0x198bf2)&&Vt(this['_model']['schema'],_0x198bf2['start'],_0x4fc27f);_0x3d9ea4['push']({'suggestion':_0xeebfee,'meta':{'isOwn':_0x223fea==_0xeebfee['author'],'isNextTo':_0xdcbae4,'isInsideObject':_0xf4ec1e,'containsRangeInObject':_0xed01e1}}),_0x2756dc=!0x0;break;}}if(_0x2756dc)break;}}return _0x3d9ea4;}['_addSuggestionMarker'](_0x203606,_0x496155,_0xe00705,_0x33a963,_0x2d86ca){this['_model']['change'](_0x508475=>{let _0x395173='suggestion:'+_0x203606+':'+_0x496155+':'+_0xe00705;_0x2d86ca&&(_0x395173=_0x395173+':'+_0x2d86ca),_0x508475['addMarker'](_0x395173,{'range':_0x33a963,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x52e58c){const _0xe18dd0=_0x52e58c['previous'],_0x46305b=_0x52e58c['next'];_0x52e58c['previous']=null,_0x52e58c['next']=null,null!=_0xe18dd0&&_0xe18dd0['next']==_0x52e58c&&(_0xe18dd0['next']=_0x46305b),null!=_0x46305b&&_0x46305b['previous']==_0x52e58c&&(_0x46305b['previous']=_0xe18dd0),'ready'==this['_suggestionState']['get'](_0x52e58c)&&(this['_suggestionState']['set'](_0x52e58c,'removed'),this['fire']('suggestionUnloaded',_0x52e58c,_0xe18dd0,_0x46305b));}['_setSuggestionData'](_0x4b91ea){const _0x469240=_0x4b91ea['id'],_0x21a23b=this['addSuggestionData'](_0x4b91ea);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x18b0bd=this['editor']['plugins']['get']('PendingActions'),_0x1b11b3=_0x21a23b['hasComments'],_0x1fba8a=_0x21a23b['subType']?_0x21a23b['type']+':'+_0x21a23b['subType']:_0x21a23b['type'],_0x1ae3c8=this['editor']['locale'],_0xf42a39=_0x18b0bd['add'](o(_0x1ae3c8,'PENDING_ACTION_SUGGESTION')),_0x471eea={'id':_0x469240,'type':_0x1fba8a,'hasComments':_0x1b11b3,'data':_0x4b91ea['data']||null,'originalSuggestionId':_0x4b91ea['originalSuggestionId']||null,'attributes':_0x21a23b['attributes']};this['_adapter']['addSuggestion'](_0x471eea)['then'](_0x4e7ca7=>{_0x21a23b['_saved']=!0x0,_0x18b0bd['remove'](_0xf42a39),_0x4e7ca7&&_0x4e7ca7['createdAt']&&(this['_suggestions']['get'](_0x469240)['createdAt']=_0x4e7ca7['createdAt']);})['catch'](_0x270e95=>{throw _0x9317a6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x21a23b['discard']();}),_0x21a23b['stopListening'](),this['_suggestions']['delete'](_0x21a23b['id']),this['_suggestionState']['delete'](_0x21a23b),_0x270e95;});}return _0x21a23b;}['_isBlockAttribute'](_0x1ab30b){return this['_blockAttributeKeys']['has'](_0x1ab30b);}['_updateSuggestionData'](_0x33dd01,_0x4911eb){const _0x41bbe4=this['editor']['plugins']['get']('PendingActions'),_0x3a8050=this['getSuggestion'](_0x33dd01);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3a8050['_saved']){const _0x2e9cf6=_0x41bbe4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x33dd01,_0x4911eb)['then'](()=>{_0x41bbe4['remove'](_0x2e9cf6);});}else _0x3a8050['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x33dd01,_0x4911eb);});}}['_getSuggestionData'](_0x16ca77){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xfec3cf('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x16ca77);}['_handleNewSuggestionMarker'](_0x20dd97){const {id:_0x4e33cc,type:_0x1d52bd,subType:_0x13d4bb,authorId:_0x327c33}=this['_splitMarkerName'](_0x20dd97),_0x42a0bc=this['_suggestions']['get'](_0x4e33cc)||this['_createSuggestion'](_0x1d52bd,_0x13d4bb,_0x4e33cc,_0x327c33,{});switch(this['_checkSuggestionCorrectness'](_0x42a0bc,_0x1d52bd,_0x13d4bb,_0x327c33),this['_suggestionState']['get'](_0x42a0bc)){case'notReady':this['_getSuggestionData'](_0x4e33cc)['then'](_0x51be24=>{let _0x1203a7=Promise['resolve']();_0x51be24['hasComments']&&(_0x1203a7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4e33cc})),_0x1203a7['then'](()=>{this['addSuggestionData'](_0x51be24)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x42a0bc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4e33cc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x42a0bc,'ready'),this['fire']('suggestionLoaded',_0x42a0bc);break;case'ready':this['fire']('suggestionChanged',_0x42a0bc);}return _0x42a0bc['addMarkerName'](_0x20dd97),_0x42a0bc;}['_refreshSuggestionsChain'](_0x5456a9){const _0x331474=Array['from'](_0x5456a9),_0x5cab87=_0x331474['filter'](_0x5b8098=>'attribute'==_0x5b8098['type']);this['_refreshAttributeSuggestionsChain'](_0x5cab87);const _0x2780b6=_0x331474['filter'](_0x427aaf=>!_0x427aaf['isMultiRange']&&'attribute'!=_0x427aaf['type']),_0x2bad42=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3955e5=>!_0x3955e5['isMultiRange']&&'attribute'!=_0x3955e5['type']),_0x11b686=_0x2bad42['filter'](_0x3a4d61=>!_0x5456a9['has'](_0x3a4d61)),_0x59b997=new Map(_0x2bad42['map'](_0x495255=>[_0x495255,this['_suggestionFactory']['getSuggestionCallback'](_0x495255['type'],_0x495255['subType'],'chain')])),_0x26c258=new Map(_0x2bad42['map'](_0x39dba8=>[_0x39dba8,_0x39dba8['getFirstRange']()])),_0x2e86e1=new Set(),_0xbd48a4=new Set();for(let _0x597ba4=0x0;_0x597ba4<_0x2780b6['length'];_0x597ba4++)_0x314a1d(_0x2780b6[_0x597ba4],_0x2780b6,_0x597ba4+0x1);for(let _0x7194a2=0x0;_0x7194a2<_0x2780b6['length'];_0x7194a2++)_0x314a1d(_0x2780b6[_0x7194a2],_0x11b686,0x0);const _0x4bb5a5=new Set();for(let _0x259aa7=0x0;_0x259aa7<_0x2780b6['length'];_0x259aa7++){const _0x5c2cae=_0x2780b6[_0x259aa7];!_0xbd48a4['has'](_0x5c2cae)&&_0x5c2cae['previous']&&(_0x4bb5a5['add'](_0x5c2cae['previous']),_0x5c2cae['previous']['next']===_0x5c2cae&&(_0x5c2cae['previous']['next']=null),_0x5c2cae['previous']=null),!_0x2e86e1['has'](_0x5c2cae)&&_0x5c2cae['next']&&(_0x4bb5a5['add'](_0x5c2cae['next']),_0x5c2cae['next']['previous']===_0x5c2cae&&(_0x5c2cae['next']['previous']=null),_0x5c2cae['next']=null);}function _0x314a1d(_0x2789be,_0x2652e0,_0x29379f){for(let _0x171443=_0x29379f;_0x171443<_0x2652e0['length'];_0x171443++){const _0xf7ba4f=_0x83d597(_0x2789be,_0x2652e0[_0x171443]);_0xf7ba4f&&(_0xf7ba4f[0x0]['next']=_0xf7ba4f[0x1],_0xf7ba4f[0x1]['previous']=_0xf7ba4f[0x0],_0x2e86e1['add'](_0xf7ba4f[0x0]),_0xbd48a4['add'](_0xf7ba4f[0x1]));}}function _0x83d597(_0x1b5002,_0x412256){if(_0x1b5002['author']['id']!==_0x412256['author']['id'])return null;const _0x4b1edf=_0x59b997['get'](_0x1b5002)(_0x1b5002,_0x412256,_0x26c258['get'](_0x1b5002),_0x26c258['get'](_0x412256));if(!_0x4b1edf)return null;return _0x59b997['get'](_0x412256)(_0x1b5002,_0x412256,_0x26c258['get'](_0x1b5002),_0x26c258['get'](_0x412256))?_0x4b1edf[0x1]['commentThread']&&_0x4b1edf[0x1]['commentThread']['length']?null:_0x4b1edf:null;}_0x4bb5a5['size']&&this['_refreshSuggestionsChain'](_0x4bb5a5);}['_refreshAttributeSuggestionsChain'](_0x4bdc1b){if(0x0==_0x4bdc1b['length'])return;const _0xeb1b41=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c87d2=>'attribute'==_0x4c87d2['type']&&_0x4c87d2['_isDataLoaded']),_0xcdac5b=[],_0xc7bb8=new Map();for(const _0x48debe of _0xeb1b41){const _0x3ea73d=_0x2ae810(_0x48debe['attributes']);_0xc7bb8['has'](_0x3ea73d)||(_0xc7bb8['set'](_0x3ea73d,_0xcdac5b['length']),_0xcdac5b['push']([]));const _0xf00da0=_0xc7bb8['get'](_0x3ea73d);_0xcdac5b[_0xf00da0]['push'](_0x48debe);}!(function(){_0xcdac5b['sort']((_0xd6bb33,_0x5533c9)=>{const _0x31c494=_0xd6bb33[0x0]['createdAt'],_0x484c1e=_0x5533c9[0x0]['createdAt'];return _0x31c494==_0x484c1e?_0xd6bb33[0x0]['attributes']['groupId']<_0x5533c9[0x0]['attributes']['groupId']?-0x1:0x1:_0x31c494<_0x484c1e?-0x1:0x1;});for(const _0x552103 of _0xcdac5b)_0x552103['sort']((_0x4a333f,_0x141ac3)=>_0x4a333f['id']<_0x141ac3['id']?-0x1:0x1);}());for(let _0x51a1a1=0x0;_0x51a1a1<_0xcdac5b['length'];_0x51a1a1++){if(0x0==_0xcdac5b[_0x51a1a1]['length'])continue;const _0x3237f9=[];for(let _0x575e64=_0x51a1a1+0x1;_0x575e64<_0xcdac5b['length'];_0x575e64++)0x0!=_0xcdac5b[_0x575e64]['length']&&_0x1715ed(_0xcdac5b[_0x51a1a1],_0xcdac5b[_0x575e64])&&_0x3237f9['push'](_0x575e64);for(const _0x526c32 of _0x3237f9)_0xcdac5b[_0x51a1a1]=_0xcdac5b[_0x51a1a1]['concat'](_0xcdac5b[_0x526c32]),_0xcdac5b[_0x526c32]=[];}for(const _0x2d2bc6 of _0xcdac5b)for(let _0x3a412e=0x0;_0x3a412e<_0x2d2bc6['length'];_0x3a412e++){const _0x46d100=_0x2d2bc6[_0x3a412e+0x1]||null;_0x2d2bc6[_0x3a412e]['next']!==_0x46d100&&(_0x2d2bc6[_0x3a412e]['next']=_0x46d100);}for(const _0x37b38a of _0xcdac5b)for(let _0x2216f4=0x0;_0x2216f4<_0x37b38a['length'];_0x2216f4++){const _0x320721=_0x37b38a[_0x2216f4-0x1]||null;_0x37b38a[_0x2216f4]['previous']!==_0x320721&&(_0x37b38a[_0x2216f4]['previous']=_0x320721);}function _0x1715ed(_0x2d4ae4,_0x25b9b1){if(_0x2d4ae4[0x0]['attributes']['groupId']!==_0x25b9b1[0x0]['attributes']['groupId']&&_0x2d4ae4[0x0]['author']!==_0x25b9b1[0x0]['author'])return!0x1;if(!function(_0x147c31,_0x519c8a){if(!_0x147c31['hasComments']&&!_0x519c8a['hasComments'])return!0x0;if(_0x147c31['hasComments']&&_0x519c8a['hasComments'])return!0x1;if(_0x147c31['hasComments']&&_0x519c8a['createdAt']<_0x147c31['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x519c8a['hasComments']&&_0x147c31['createdAt']<_0x519c8a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d4ae4[0x0],_0x25b9b1[0x0]))return!0x1;const _0x19b162=Et(_0x2d4ae4[0x0]['attributes'],'groupId'),_0x3ef9e1=Et(_0x25b9b1[0x0]['attributes'],'groupId');if(!_0x2cb703(_0x19b162,_0x3ef9e1))return!0x1;return!!_0x2d4ae4['every'](_0x311bdb=>_0x25b9b1['some'](_0x5a173e=>_0x311bdb['getFirstRange']()['isEqual'](_0x5a173e['getFirstRange']())))&&_0x25b9b1['every'](_0xab814c=>_0x2d4ae4['some'](_0xc48c6b=>_0xab814c['getFirstRange']()['isEqual'](_0xc48c6b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5b7907){const _0xb43d02=Array['from'](_0x5b7907),_0x16fd68=this['getSuggestions']({'skipNotAttached':!0x0}),_0x43a786=_0x16fd68['filter'](_0xa5a5ea=>!_0x5b7907['has'](_0xa5a5ea)),_0x4bb9b9=new Map(_0xb43d02['map'](_0x1c5493=>[_0x1c5493,this['_suggestionFactory']['getSuggestionCallback'](_0x1c5493['type'],_0x1c5493['subType'],'join')])),_0x34303f=new Map(_0x16fd68['map'](_0x11878b=>[_0x11878b,_0x11878b['getRanges']()]));for(let _0x3b96b3=0x0;_0x3b96b3<_0xb43d02['length'];_0x3b96b3++){if(_0x5d4d57(this,_0xb43d02[_0x3b96b3],_0xb43d02,_0x3b96b3+0x1))return!0x0;}for(let _0x2a5f82=0x0;_0x2a5f82<_0xb43d02['length'];_0x2a5f82++){if(_0x5d4d57(this,_0xb43d02[_0x2a5f82],_0x43a786,0x0))return!0x0;}return!0x1;function _0x5d4d57(_0x47c6b9,_0x2dffda,_0x37976e,_0x57a784){for(let _0x4d795e=_0x57a784;_0x4d795e<_0x37976e['length'];_0x4d795e++){const _0x19564e=_0x37976e[_0x4d795e];if(_0x19564e['type']!==_0x2dffda['type']||_0x19564e['author']['id']!==_0x2dffda['author']['id']||_0x19564e['subType']!==_0x2dffda['subType'])continue;if(!zt(_0x2dffda,_0x19564e))continue;if('attribute'==_0x2dffda['type']&&_0x2dffda['data']['oldValue']!=_0x19564e['data']['oldValue'])continue;if('attribute'==_0x2dffda['type']&&_0x47c6b9['_isBlockAttribute'](_0x2dffda['data']['key']))continue;if('formatBlock'==_0x2dffda['type']){const _0x4ca081=_0x47c6b9['editor']['model'],_0x477ad2=_0x2dffda['getContainedElement']();if(_0x477ad2&&(_0x4ca081['schema']['isObject'](_0x477ad2)||_0x4ca081['schema']['isLimit'](_0x477ad2)))continue;}const _0x55fcd7=_0x4bb9b9['get'](_0x2dffda),_0x38b822=_0x34303f['get'](_0x2dffda),_0x1a7c55=_0x34303f['get'](_0x19564e),_0x55295b=_0x2dffda['commentThread']&&_0x2dffda['commentThread']['length'],_0x139edb=_0x19564e['commentThread']&&_0x19564e['commentThread']['length'];if(!_0x55295b&&_0x55fcd7(_0x1a7c55,_0x38b822))return _0x47c6b9['_joinSuggestions'](_0x19564e,_0x2dffda),_0x34303f['delete'](_0x2dffda),!0x0;if(!_0x139edb&&_0x55fcd7(_0x38b822,_0x1a7c55))return _0x47c6b9['_joinSuggestions'](_0x2dffda,_0x19564e),_0x34303f['delete'](_0x19564e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1d21c6,_0x33addf){if(_0x1d21c6['isMultiRange']){for(const _0x2083be of _0x33addf['getRanges']())_0x1d21c6['addRange'](_0x2083be);}else{const _0x3a4a15=_0x33addf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1d21c6,this['_model']['createRange'](_0x1d21c6['getFirstRange']()['start'],_0x3a4a15));}_0x33addf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4081a0,_0x585b41,_0x5905ef){const _0x3b9cea=_0x4081a0['startsWith']('format')||_0x4081a0['startsWith']('attribute')?'FORMATTING':_0x4081a0['toUpperCase']();return o(this['editor']['locale'],_0x585b41+'_'+_0x3b9cea+'_SUGGESTION_ANNOUNCEMENT',_0x5905ef);}['_initAriaMarkerChangeAnnouncements'](){const _0x56f1f6=this['editor'];if(!_0x56f1f6['ui'])return;const {ariaLiveAnnouncer:_0x57a1c3}=_0x56f1f6['ui'];_0x439ccd(this['_model'],({left:_0x336b72,entered:_0x2c6f18})=>{for(const _0x193a62 of _0x336b72){const {group:_0xac8e82,type:_0x40429e}=this['_splitMarkerName'](_0x193a62['name']);if('suggestion'===_0xac8e82){_0x57a1c3['announce'](this['_getMarkerAnnouncementText'](_0x40429e,'LEAVE'));break;}}for(const _0x4ca7b4 of _0x2c6f18){const {group:_0x1a9d48,type:_0x1705a2}=this['_splitMarkerName'](_0x4ca7b4['name']);if('suggestion'===_0x1a9d48){_0x57a1c3['announce'](this['_getMarkerAnnouncementText'](_0x1705a2,'ENTER',_0x315ef0(_0x2978b7)));break;}}});}['_processAttributeChanges'](_0x406fa9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3fbcb6=this['editor'],_0x3aa19d=_0x3fbcb6['model']['document']['differ']['getChanges']();if(0x0==_0x3aa19d['length'])return!0x1;const _0x16c38c=[],_0x57bd39=_0x3aa19d['filter'](_0x37a43e=>'attribute'==_0x37a43e['type']),_0x4fe9f5=_0x3aa19d['filter'](_0x2a6aee=>'insert'==_0x2a6aee['type']&&'$text'!=_0x2a6aee['name']),_0x3194ad=_0x3aa19d['filter'](_0x1a4498=>'remove'==_0x1a4498['type']&&'$text'!=_0x1a4498['name']);for(const _0x149557 of _0x57bd39)_0x16c38c['push']({'key':_0x149557['attributeKey'],'newValue':_0x149557['attributeNewValue'],'oldValue':_0x149557['attributeOldValue'],'range':Jt(_0x149557['range'],_0x3fbcb6['model'])});for(const _0x55fcb2 of _0x4fe9f5){const _0x2c2b9a=_0x3194ad['find'](_0x238db2=>_0x238db2['position']['isEqual'](_0x55fcb2['position']));_0x2c2b9a&&_0x16c38c['push']({'key':m,'newValue':_0x55fcb2['name'],'oldValue':_0x2c2b9a['name'],'range':_0x3fbcb6['model']['createRangeOn'](_0x55fcb2['position']['nodeAfter'])});}return 0x0!=_0x16c38c['length']&&this['_reduceExistingSuggestions'](_0x406fa9,_0x16c38c);}['_processAttributeSuggestions'](_0x3dd18e){let _0x2ffd44=!0x1;const _0x40f819=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ba462=>_0x5ba462['data']['newRange']&&_0x5ba462['name']['startsWith']('suggestion:attribute:'));for(const _0x4deaff of _0x40f819){const {subType:_0x1ad15f,id:_0xbd28e5}=this['_splitMarkerName'](_0x4deaff['name']),_0x453e0e=_0x1ad15f['split']('|')[0x0];for(const _0x22305f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x22305f['id']!=_0xbd28e5&&'attribute'==_0x22305f['type']&&_0x22305f['data']&&_0x22305f['data']['key']==_0x453e0e&&_0x22305f['getFirstRange']()['isIntersecting'](_0x4deaff['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x22305f,_0x4deaff['data']['newRange'],_0x3dd18e),_0x2ffd44=!0x0);}return _0x2ffd44;}['_recordAttributeChanges'](_0x5d1fce){this['_recordAttributeSuggestions']=!0x0,_0x5d1fce();}['_isRegisteredAttribute'](_0x3184c5){const _0x4c7fe0=this['_isBlockAttribute'](_0x3184c5),_0x558969=this['_inlineAttributeKeys']['has'](_0x3184c5);return _0x4c7fe0||_0x558969;}['_reduceExistingSuggestions'](_0x42572e,_0x2ad627){if(0x0==_0x2ad627['length'])return!0x1;let _0x58fb62=!0x1;for(const _0x3dea6f of _0x2ad627){const _0x10d639=this['_findSuggestions'](_0x3dea6f['range'],'attribute')['filter'](_0x24a519=>!_0x24a519['meta']['isNextTo'])['map'](_0x1062a6=>_0x1062a6['suggestion']),_0x41647b=_0x2ae810({'newValue':_0x3dea6f['newValue']});_0x10d639['filter'](_0x1c1dd0=>{const [_0x1f9fb5,_0x101546]=_0x1c1dd0['subType']['split']('|');return _0x1f9fb5==_0x3dea6f['key']&&_0x101546!=_0x41647b;})['forEach'](_0x5dd0cd=>{this['_reduceSuggestionAttributeRange'](_0x5dd0cd,_0x3dea6f['range'],_0x42572e),_0x58fb62=!0x0;});}return _0x58fb62;}['_reduceSuggestionAttributeRange'](_0x36cca2,_0x36961c,_0x5ef25e){const _0xac39b1=_0x36cca2['getFirstRange']()['getDifference'](_0x36961c);0x0!==_0xac39b1['length']?0x1!==_0xac39b1['length']?this['_breakSuggestionMarker'](_0x36cca2,_0x36961c['start'],_0x36961c['end']):this['_setSuggestionRange'](_0x36cca2,_0xac39b1[0x0]):_0x5ef25e['removeMarker'](_0x36cca2['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3827a7){this['_editor']=_0x3827a7,this['_model']=_0x3827a7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1c2ce0,_0xcee901,_0x9cbfac,_0x4a04de,_0x509dbe,_0x2fce0c){return new u(this['_model'],{'type':_0x1c2ce0,'subType':_0xcee901,'id':_0x9cbfac,'author':_0x4a04de,'creator':_0x4a04de,'attributes':_0x509dbe,'onAttributesChange':_0x2fce0c,'onAccept':(..._0x1a1b0d)=>this['getSuggestionCallback'](_0x1c2ce0,_0xcee901,'accept')(..._0x1a1b0d),'onDiscard':(..._0x452ed8)=>this['getSuggestionCallback'](_0x1c2ce0,_0xcee901,'discard')(..._0x452ed8)});}['registerCustomCallback'](_0x1b1c22,_0x1680ff,_0x2c9bfa,_0x188f31){const _0x30ca5e=_0x1b1c22+':'+_0x1680ff+':'+_0x2c9bfa;this['_customCallbacks']['set'](_0x30ca5e,_0x188f31);}['getSuggestionCallback'](_0x202bf4,_0x54481c,_0x3e9132){const _0x5c7191=_0x202bf4+':'+_0x54481c+':'+_0x3e9132;return this['_customCallbacks']['get'](_0x5c7191)||this['_defaultCallbacks']['get'](_0x202bf4+':'+_0x3e9132);}['_registerDefaultCallbacks'](){const _0x6cdd91=()=>!0x1,_0x3598eb=_0x22a604=>{_0x22a604['sort']((_0x2154d8,_0x6d5e0e)=>_0x2154d8['start']['isBefore'](_0x6d5e0e['start'])?0x1:-0x1),this['_model']['change'](_0xad59a6=>{for(const _0x2577fb of _0x22a604){let _0x5a14fa;_0x5a14fa=_0x2577fb['end']['isAtEnd']&&_0x2577fb['end']['parent']==_0x2577fb['start']['nodeAfter']?_0xad59a6['createSelection'](_0x2577fb['start']['nodeAfter'],'on'):_0xad59a6['createSelection'](_0x2577fb),this['_model']['deleteContent'](_0x5a14fa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1a9c27=(_0x14890f,_0x38c5ed)=>{_0x38c5ed&&this['_model']['change'](_0x290a5a=>{const {commandName:_0x53950d,commandParams:_0x3bffa3=[]}=_0x38c5ed,_0x23d8e1=_0x14890f['map'](_0x27a66b=>(Pt(_0x27a66b)&&(_0x27a66b=this['_model']['createRange'](_0x27a66b['end'])),_0x27a66b))['filter'](_0x21efaa=>'$graveyard'!==_0x21efaa['root']['rootName']);if(_0x23d8e1['length']<0x1)return;const _0x58dd39=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34e345=>_0x114c36['fromRange'](_0x34e345));_0x290a5a['setSelection'](_0x23d8e1);for(const _0x43c492 of this['_editor']['commands']['commands']())_0x43c492['refresh']();_0x3bffa3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x53950d,..._0x3bffa3);const _0x1eb06f=_0x58dd39['filter'](_0x360a02=>'$graveyard'!=_0x360a02['root']['rootName']);_0x1eb06f['length']>0x0&&_0x290a5a['setSelection'](_0x1eb06f);for(const _0x338751 of _0x58dd39)_0x338751['detach']();});},_0x51442d=(_0x3c9dfe,_0x376357)=>0x1==_0x3c9dfe['length']&&0x1==_0x376357['length']&&_0x3c9dfe[0x0]['end']['isEqual'](_0x376357[0x0]['start']),_0x5f1017=(_0x4b96c2,_0x4212f8,_0xaa3a4d,_0x29a9b1)=>qt(_0x4b96c2,_0x4212f8,_0xaa3a4d,_0x29a9b1)?[_0x4b96c2,_0x4212f8]:qt(_0x4212f8,_0x4b96c2,_0x29a9b1,_0xaa3a4d)?[_0x4212f8,_0x4b96c2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x6cdd91),this['_defaultCallbacks']['set']('insertion:discard',_0x3598eb),this['_defaultCallbacks']['set']('insertion:join',_0x51442d),this['_defaultCallbacks']['set']('insertion:chain',_0x5f1017),this['_defaultCallbacks']['set']('deletion:accept',_0x3598eb),this['_defaultCallbacks']['set']('deletion:discard',_0x6cdd91),this['_defaultCallbacks']['set']('deletion:join',_0x51442d),this['_defaultCallbacks']['set']('deletion:chain',_0x5f1017),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a9c27),this['_defaultCallbacks']['set']('formatInline:discard',_0x6cdd91),this['_defaultCallbacks']['set']('formatInline:join',_0x51442d),this['_defaultCallbacks']['set']('formatInline:chain',_0x6cdd91),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a9c27),this['_defaultCallbacks']['set']('formatBlock:discard',_0x6cdd91),this['_defaultCallbacks']['set']('formatBlock:join',_0x51442d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x6cdd91),this['_defaultCallbacks']['set']('attribute:accept',_0x6cdd91),this['_defaultCallbacks']['set']('attribute:discard',(_0x5130bf,_0x11c687)=>{if(!_0x11c687)return;const _0x4380dc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x515106=>{if(_0x11c687['key']==m)for(const _0x186055 of _0x5130bf){const _0x47fbe0=_0x186055['start']['nodeAfter'],_0x2cf1a4=_0x11c687['oldValue'];_0x515106['rename'](_0x47fbe0,_0x2cf1a4);}else{if(_0x4380dc['_isBlockAttribute'](_0x11c687['key'])){for(const _0x149604 of _0x5130bf)void 0x0!==_0x11c687['oldValue']?_0x515106['setAttribute'](_0x11c687['key'],_0x11c687['oldValue'],_0x149604['start']['nodeAfter']):_0x515106['removeAttribute'](_0x11c687['key'],_0x149604['start']['nodeAfter']);}else{for(const _0x5edd62 of _0x5130bf)_0x11c687['oldValue']?_0x515106['setAttribute'](_0x11c687['key'],_0x11c687['oldValue'],_0x5edd62):_0x515106['removeAttribute'](_0x11c687['key'],_0x5edd62);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x51442d);}}function Vt(_0x1e0383,_0x16d2a5,_0x491a01){for(const _0x304d3c of _0x16d2a5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x304d3c['root']==_0x304d3c)return!0x1;if(!_0x491a01['containsItem'](_0x304d3c))return!0x1;if(_0x1e0383['isObject'](_0x304d3c)||_0x1e0383['isLimit'](_0x304d3c))return!0x0;}return!0x1;}function Pt(_0x191de5){return _0x191de5['end']['parent']==_0x191de5['start']['nodeAfter']&&_0x191de5['end']['isAtStart'];}function Gt(_0x1f24ee,_0x631f46,_0xc79769,_0x7cb8a7){const _0x51d0bb=_0x55968c=>!_0x55968c['item']['is']('$textProxy')&&!_0x7cb8a7['isObject'](_0x55968c['item']),_0x12bc9b=_0x1f24ee['start']['getLastMatchingPosition'](_0x51d0bb),_0x24387b=_0x1f24ee['end']['getLastMatchingPosition'](_0x51d0bb,{'direction':'backward'});return(!_0x1f24ee['start']['isEqual'](_0x12bc9b)||!_0x1f24ee['end']['isEqual'](_0x24387b))&&(_0x12bc9b['isBefore'](_0x24387b)?_0xc79769['updateMarker'](_0x631f46,{'range':_0xc79769['createRange'](_0x12bc9b,_0x24387b)}):_0xc79769['removeMarker'](_0x631f46),!0x0);}function Ft(_0x3889dc){return _0x2ae810(_0x3889dc);}function Lt(_0x5e79a0){const _0x4d3e66=_0x5e79a0['start']['nodeAfter'];return _0x4d3e66&&_0x4d3e66['is']('element');}function Jt(_0x5f3905,_0x19c745){return null==_0x5f3905['end']['nodeBefore']&&_0x5f3905['end']['parent']==_0x5f3905['start']['nodeAfter']?Ht(_0x5f3905['start']['nodeAfter'],_0x19c745):_0x5f3905;}function Ht(_0x12424a,_0x2e206d){const _0x4bf56e=_0x2e206d['schema']['isObject'](_0x12424a)||_0x2e206d['schema']['isSelectable'](_0x12424a);return _0x2e206d['createRange'](_0x2e206d['createPositionAt'](_0x12424a,'before'),_0x4bf56e?_0x2e206d['createPositionAfter'](_0x12424a):_0x2e206d['createPositionAt'](_0x12424a,'end'));}function qt(_0x54cce8,_0x309ad2,_0xd54248,_0x634ab9){return!!zt(_0x54cce8,_0x309ad2)&&_0xd54248['end']['isEqual'](_0x634ab9['start']);}function zt(_0x455d33,_0xaef567){if(!_0x455d33['_isDataLoaded']||!_0xaef567['_isDataLoaded'])return!0x1;const _0x812b41=new Set(Object['keys'](_0x455d33['attributes'])),_0x5f555c=new Set(Object['keys'](_0xaef567['attributes']));if(_0x812b41['delete']('groupId'),_0x5f555c['delete']('groupId'),0x0==_0x812b41['size']&&0x0==_0x5f555c['size'])return!0x0;if(_0x812b41['size']!=_0x5f555c['size'])return!0x1;const _0x1fa8bf={..._0x455d33['attributes']},_0x485560={..._0xaef567['attributes']};return delete _0x1fa8bf['groupId'],delete _0x485560['groupId'],JSON['stringify'](_0x1fa8bf)==JSON['stringify'](_0x485560);}function Kt(_0x28d3c0,_0x117946){const _0xc8537b=Wt(_0x28d3c0['attributes']),_0x23388f=Wt(_0x117946);if(!_0x28d3c0['_isDataLoaded'])return!0x1;for(const _0x5d483c of Object['keys'](_0x23388f))if(!_0x2cb703(_0xc8537b[_0x5d483c],_0x23388f[_0x5d483c]))return!0x1;return!0x0;}function Wt(_0x95c437){const _0x3901bb=Object['assign']({},_0x95c437);return delete _0x3901bb['skipNestingCheck'],delete _0x3901bb['tablePasteChainId'],_0x3901bb;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x132ed3(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x423384,_0x4c71dc,_0x4e8e59,_0x3979f0){super(),this['model']=_0x4c71dc,this['view']=_0x4e8e59,this['commentThreadController']=_0x3979f0,this['_editor']=_0x423384,this['_acceptCommand']=_0x423384['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x423384['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5d4710,_0x2b49e1)=>_0x5d4710||_0x2b49e1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x24edeb=>_0x24edeb&&this['_editor']['model']['canEditAt'](_0x4c71dc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x57659e=>_0x57659e&&this['_editor']['model']['canEditAt'](_0x4c71dc['getRanges']())),this['_pendingAction']=null,_0x4e8e59['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4e8e59,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4e8e59,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4e8e59,'change:isDirty',()=>{_0x4e8e59['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 _0x273ab4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x273ab4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x11e5db{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x529fc9,_0x2b1978,_0x18a310,_0xae2e0e){super(_0x529fc9),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2b5eba(_0x529fc9,o(_0x529fc9,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2b1978['authoredAt']),this['bind']('authoredAt')['to'](_0x2b1978),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',_0x2b1978,'authoredAt',this,'descriptionParts',(_0x28c1a9,_0xe220fb,_0x2d6bcc)=>{const _0x409d7f=_0x2d6bcc['map'](_0x48106d=>ns(_0x48106d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x28c1a9-0x1,_0x2b1978['author']['name'],_0xe220fb?_0xae2e0e['formatDateTime'](_0xe220fb):'',new DOMParser()['parseFromString'](_0x409d7f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5c8dec(),this['focusTracker']=new _0x23ef9f(),this['keystrokes']=new _0x3bdab9(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x12a7bd=>_0x12a7bd['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2b1978,this['_localUser']=_0x18a310,this['_config']=_0xae2e0e,_0xae2e0e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x484b13(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x304da8}=this['_config'];this['commentsListView']=new _0x304da8(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',_0x35360f=>_0x35360f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4b097f,_0x290df3)=>_0x4b097f||!!_0x290df3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3d68be}=this['_config'],_0x9ac893=new _0x3d68be(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2beece=_0x9ac893['commentInputView'];return _0x9ac893['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2beece,'value',(_0x36937f,_0x3cf6d7,_0x2053ab)=>!!_0x2053ab||_0x36937f&&!_0x3cf6d7),_0x2beece['on']('submit',(_0x44896c,_0x430171)=>{this['fire']('addComment',_0x430171),_0x2beece['editor']['setData']('');}),_0x2beece['on']('cancel',()=>this['focus']()),_0x2beece['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x9ac893;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x1390de,_0x5ac79d,_0x2f4be2,_0x32b632){super(_0x1390de,_0x5ac79d,_0x2f4be2,_0x32b632),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x35c43a=>_0x35c43a&&_0x35c43a[0x0]?_0x35c43a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3bc95a,_0x43744e)=>{let _0x207933='';for(const _0x3546d2 of _0x3bc95a)_0x207933+='<p>'+ns(_0x3546d2['content'],_0x3546d2['color'])+'</p>';return _0x43744e?_0x207933:_0x54b9fd(_0x207933,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x32b632['SuggestionView'](_0x1390de,_0x5ac79d,{'formatDateTime':_0x32b632['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 _0x4d77a6=this['bindTemplate'],_0x9ce038=[this['suggestionView']];return this['commentsListView']&&_0x9ce038['push'](this['commentsListView']),this['commentThreadInputView']&&_0x9ce038['push'](this['commentThreadInputView']),_0x9ce038['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d77a6['if']('isActive','ck-suggestion-wrapper--active'),_0x4d77a6['to']('type',_0x411940=>'ck-suggestion-'+_0x411940),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':_0x4d77a6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x9ce038};}['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 fe extends _0x11e5db{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2589d3,_0x4a64d3,_0x1d72ea){super(_0x2589d3),this['_model']=_0x4a64d3,this['_config']=_0x1d72ea,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4a64d3),this['acceptButton']=this['_createButton'](o(_0x2589d3,'Accept\x20suggestion'),_0x230c64['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2589d3,'Discard\x20suggestion'),_0x230c64['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xf70ba3(_0x2589d3,_0x4a64d3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5c8dec([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x23ef9f(),this['keystrokes']=new _0x3bdab9(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4960b3=>_0x4960b3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x257513=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x257513['innerHTML']=this['description'],this['on']('change:description',(_0x36996f,_0x2e7817,_0x180ec4)=>{_0x257513['innerHTML']=_0x180ec4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x37a88b=this['bindTemplate'],_0x1b75be=[{'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':_0x37a88b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x37a88b['to']('authoredAt',_0x21adea=>this['_config']['formatDateTime'](_0x21adea))}]}]},{'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']&&_0x1b75be['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':_0x1b75be}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x10f0bf,_0x2c4916,_0x550f07,_0x30d984,_0x39b34c){const _0x1c4407=new _0xc6c968(this['locale']);return _0x1c4407['set']({'label':_0x10f0bf,'icon':_0x2c4916,'tooltip':!0x0,'tooltipPosition':_0x39b34c}),_0x1c4407['extendTemplate']({'attributes':{'class':_0x550f07}}),_0x1c4407['on']('execute',()=>{this['fire'](_0x30d984,this['_model']['id']);}),_0x1c4407;}['_setupKeyboardNavigation'](){const _0x4648c6=this['element'];this['keystrokes']['listenTo'](_0x4648c6);for(const _0x54a872 of this['focusables'])this['focusTracker']['add'](_0x54a872['element']),this['keystrokes']['listenTo'](_0x54a872['element']);this['keystrokes']['set']('enter',(_0x3abc2f,_0x555853)=>{_0x4648c6===_0x3abc2f['target']&&(this['focusCycler']['focusFirst'](),_0x555853());}),this['keystrokes']['set']('esc',(_0x16b326,_0x37bac5)=>{_0x4648c6!==_0x16b326['target']&&(this['focus'](),_0x37bac5());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x32720e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x48e0a0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1071c7){super(_0x1071c7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1672bd=this['editor']['config'];_0x1672bd['define']('trackChanges.SuggestionThreadView',pe),_0x1672bd['define']('trackChanges.SuggestionView',fe),_0x1672bd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1672bd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x575ebb,_0x2f6299){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x57a123,_0x1d1e32]of this['_handleControllerBuffer']){const _0x25e769=this['_suggestionToController']['has'](_0x57a123);_0x25e769||_0x1d1e32?_0x25e769&&_0x1d1e32&&this['_destroyController'](_0x57a123):this['_initializeController'](_0x57a123);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x575ebb,_0x2f6299);}['init'](){const _0x16d96e=this['editor'],_0x3cdc09=_0x16d96e['plugins']['get']('TrackChangesEditing'),_0x39f6ef=_0x16d96e['plugins']['get']('Annotations'),_0x52cf25=_0x16d96e['plugins']['get']('EditorAnnotations'),_0x14d0a8=_0x16d96e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x52cf25['addSourceCollector'](()=>{const _0xb84493=[];for(const [_0x318a05,_0xd867de]of Array['from'](this['_suggestionToController'])){const _0x54f476=_0x318a05['getAllAdjacentSuggestions'](),_0x597dd4=[];for(const _0x502684 of _0x54f476){if(!_0x502684['isInContent'])continue;if(_0x502684['isMultiRange']){_0x597dd4['push'](..._0x502684['getRanges']());continue;}const _0x45fcf2=_0x502684['getFirstRange']();if(_0x597dd4['length']>0x0){const _0x528ba5=_0x597dd4[0x0]['getJoined'](_0x45fcf2);if(_0x528ba5){_0x597dd4[0x0]=_0x528ba5;continue;}}_0x597dd4['push'](_0x45fcf2);}_0xb84493['push']([_0xd867de['view'],_0x597dd4]);}return _0xb84493;}),this['listenTo'](_0x3cdc09,'suggestionLoaded',(_0x39f0db,_0x36bca6)=>{this['listenTo'](_0x36bca6,'change:previous',(_0x292cd7,_0x179c6a,_0x27c7c8,_0x29daa0)=>{_0x36bca6['isInContent']&&(null==_0x27c7c8?(this['_updateController'](_0x29daa0['head']),this['_handleSuggestionControllerDelayed'](_0x36bca6,!0x1)):(this['_updateController'](_0x27c7c8['head']),null==_0x29daa0&&this['_handleSuggestionControllerDelayed'](_0x36bca6,!0x0)));}),null!==_0x36bca6['previous']?this['_updateController'](_0x36bca6['head']):this['_handleSuggestionControllerDelayed'](_0x36bca6,!0x1);}),this['listenTo'](_0x3cdc09,'suggestionUnloaded',(_0x55aa7d,_0x159b36,_0xfc4c0b)=>{this['stopListening'](_0x159b36,'change:previous'),this['_handleControllerBuffer']['delete'](_0x159b36),this['_suggestionToController']['has'](_0x159b36)&&this['_destroyController'](_0x159b36),_0xfc4c0b&&this['_updateController'](_0xfc4c0b['head']);}),this['listenTo'](_0x3cdc09,'suggestionChanged',(_0xf3b880,_0x5cbc54)=>{this['_updateController'](_0x5cbc54);}),this['listenTo'](_0x39f6ef,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x14d0a8,'addComment',(_0x6d6d85,{threadId:_0x20188b,isFromAdapter:_0x1c4e63})=>{if(_0x1c4e63||!_0x3cdc09['hasSuggestion'](_0x20188b))return;const _0x43cc95=_0x3cdc09['getSuggestion'](_0x20188b);this['_suggestionToController']['get'](_0x43cc95)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16d96a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x17cf8f;for(const _0x29239a in _0x16d96a){const _0x6f50ed=_0x29239a,_0x8b1d54=_0x16d96a[_0x6f50ed];if('trackChangesLicenseKeyValid'==_0x8b1d54||'trackChangesLicenseKeyInvalid'==_0x8b1d54||'trackChangesLicenseKeyExpired'==_0x8b1d54||'trackChangesLicenseKeyDomainLimit'==_0x8b1d54||'trackChangesLicenseKeyNotAllowed'==_0x8b1d54||'trackChangesLicenseKeyEvaluationLimit'==_0x8b1d54||'trackChangesLicenseKeyTrialLimit'==_0x8b1d54||'trackChangesLicenseKeyUsageLimit'==_0x8b1d54){delete _0x16d96a[_0x6f50ed],_0x17cf8f=_0x8b1d54,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x17cf8f&&_0x16d96a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x17cf8f&&_0x16d96a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x17cf8f&&_0x16d96a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x17cf8f&&_0x16d96a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3e453b=this['editor']['plugins']['get']('Annotations'),_0x57bd93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f98d2=Array['from'](_0x3e453b['activeAnnotations'],_0x5c5663=>_0x5c5663['innerView'])['filter'](_0xb265aa=>this['_viewToController']['has'](_0xb265aa)),_0x2ad8ea=[];for(const _0x31f0a2 of _0x3f98d2){const _0x1d9d39=this['_viewToController']['get'](_0x31f0a2)['model']['getAllAdjacentSuggestions']();_0x2ad8ea['push'](..._0x1d9d39['reduce']((_0x43f3b0,_0x1a2dca)=>[..._0x43f3b0,..._0x1a2dca['getMarkerNames']()],[]));}_0x57bd93['activeMarkers']=_0x2ad8ea;}['_addUIComponentsToFactory'](){const _0x35dc56=this['editor'],_0x460929=_0x35dc56['locale'],_0x3ef0d3=o(_0x460929,'Track\x20changes'),_0x30dabc=new _0x33f543([{'type':'switchbutton','model':new _0x41358f({'withText':!0x0,'isToggleable':!0x0,'label':_0x3ef0d3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35dc56['plugins']['has']('TrackChangesPreview')&&_0x30dabc['addMany']([{'type':'separator'},{'type':'button','model':new _0x41358f({'withText':!0x0,'label':o(_0x460929,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xf7089f of _0x30dabc)if(ke(_0xf7089f)){const _0x352c88=_0x35dc56['commands']['get'](_0xf7089f['model']['commandName']);_0xf7089f['model']['bind']('isOn','isEnabled')['to'](_0x352c88,'value','isEnabled');}_0x35dc56['ui']['componentFactory']['add']('trackChanges',_0x1effcb=>this['_createToolbarButton'](_0x1effcb,_0x30dabc,_0x3ef0d3)),_0x35dc56['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3031be=>this['_createMenuBarMenu'](_0x3031be,_0x30dabc,_0x3ef0d3));}['_createToolbarButton'](_0x56091d,_0x300b26,_0x26d090){const _0x4172b9=_0x4cb20b(_0x56091d,_0x4b215d),_0x1e44d8=this['editor']['commands']['get']('trackChanges');_0x4172b9['buttonView']['set']({'tooltip':_0x26d090,'label':_0x26d090,'icon':we}),_0x4172b9['buttonView']['bind']('isOn')['to'](_0x1e44d8,'value'),_0x4172b9['buttonView']['on']('execute',()=>{_0x1e44d8['execute'](),this['editor']['editing']['view']['focus']();}),_0x4322f7(_0x4172b9,_0x300b26,{'role':'menu'});const _0x55c59e=[];for(const _0x9b522 of _0x300b26)ke(_0x9b522)&&_0x55c59e['push'](this['editor']['commands']['get'](_0x9b522['model']['commandName']));const _0x5d170e=_0x4172b9['buttonView'];return _0x5d170e['actionView']['unbind']('isEnabled'),_0x5d170e['arrowView']['unbind']('isEnabled'),_0x5d170e['actionView']['bind']('isEnabled')['to'](_0x1e44d8,'isEnabled'),_0x5d170e['arrowView']['bind']('isEnabled')['toMany'](_0x55c59e,'isEnabled',(..._0x27b772)=>_0x27b772['some'](_0xd861ac=>_0xd861ac)),_0x4172b9['on']('execute',_0x1cc18c=>{this['editor']['execute'](_0x1cc18c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4172b9;}['_createMenuBarMenu'](_0x19d32d,_0x2bc5b1,_0x2f4015){const _0x4880d7=new _0x3a12bc(_0x19d32d),_0x160356=this['editor']['commands']['get']('trackChanges');_0x4880d7['buttonView']['set']({'label':_0x2f4015,'icon':we});const _0x30b7a4=new _0x376e85(_0x19d32d);for(const _0x15cc97 of _0x2bc5b1){if('separator'==_0x15cc97['type']){_0x30b7a4['items']['add'](new _0xa8bd4d(_0x19d32d));continue;}const _0x3d0a94=new _0x5369f1(_0x19d32d,_0x4880d7),_0xd8c85f=new _0x4ce01f(_0x19d32d),_0x141b98=_0x15cc97['model'];_0xd8c85f['bind'](...Object['keys'](_0x141b98))['to'](_0x141b98),_0xd8c85f['delegate']('execute')['to'](_0x4880d7),_0xd8c85f['on']('execute',()=>{this['editor']['execute'](_0x141b98['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d0a94['children']['add'](_0xd8c85f),_0x30b7a4['items']['add'](_0x3d0a94);}return _0x4880d7['bind']('isEnabled')['to'](_0x160356,'isEnabled'),_0x4880d7['panelView']['children']['add'](_0x30b7a4),_0x4880d7;}['_initializeController'](_0x3eb50c){const _0x2b0a7f=this['editor'],_0x22bcde=_0x2b0a7f['config'],_0x3cfed8=_0x2b0a7f['plugins']['get']('Annotations'),_0x47bcc7=_0x2b0a7f['plugins']['get']('CommentsRepository'),_0x50442c=_0x2b0a7f['plugins']['get']('EditorAnnotations'),_0xc78b86=_0x2b0a7f['plugins']['get'](_0x48e0a0)['me'],_0xd05191=_0x22bcde['get']('trackChanges')['SuggestionThreadView'],_0x378510=_0x22bcde['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a2782,CommentThreadInputView:_0x512abf}=_0x2b0a7f['plugins']['get']('CommentsUI');let _0x3dd86a,_0x502915,_0x5115ae;this['_annotationViews']['has'](_0x3eb50c['id'])?(_0x502915=this['_annotationViews']['get'](_0x3eb50c['id']),_0x3dd86a=_0x502915['mainView']):(_0x3dd86a=new _0xd05191(_0x2b0a7f['locale'],_0x3eb50c,_0xc78b86,{'disableComments':this['_disableComments'],'editorConfig':{..._0x22bcde['get']('comments.editorConfig'),'licenseKey':_0x22bcde['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x22bcde['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x22bcde['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x22bcde['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1872cb(_0x22bcde['get']('locale')),'CommentView':_0x22bcde['get']('comments')['CommentView'],'CommentsListView':_0x2a2782,'CommentThreadInputView':_0x512abf,'SuggestionView':_0x378510}),_0x3dd86a['suggestionView']['acceptButton']['on']('execute',()=>{_0x2b0a7f['editing']['view']['focus']();}),_0x3dd86a['suggestionView']['discardButton']['on']('execute',()=>{_0x2b0a7f['editing']['view']['focus']();}),_0x502915=_0x3cfed8['createAnnotationView'](this['editor']['locale'],_0x3dd86a),_0x502915['bind']('isDirty')['to'](_0x3dd86a,'isDirty'),_0x502915['bind']('length')['to'](_0x3dd86a),_0x502915['bind']('type')['to'](_0x3dd86a,'type',_0x5a7a21=>'suggestion-'+_0x5a7a21),_0x3dd86a['on']('escape',()=>{_0x5115ae['fire']('escape');}),this['_annotationViews']['set'](_0x3eb50c['id'],_0x502915));const _0xe6ecd4=_0x47bcc7['createCommentThreadController'](_0x3eb50c['commentThread'],_0x3dd86a),_0x2851da=new Ce(_0x2b0a7f,_0x3eb50c,_0x3dd86a,_0xe6ecd4),_0x44a1e0=_0x3eb50c['getAllAdjacentSuggestions']()['filter'](_0x2e784f=>_0x2e784f['isInContent']);_0x3dd86a['descriptionParts']=_0x2b0a7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x44a1e0),this['_suggestionToController']['set'](_0x3eb50c,_0x2851da),this['_viewToController']['set'](_0x3dd86a,_0x2851da),_0x5115ae=_0x3cfed8['createAnnotation']({'view':_0x502915,'target':()=>{const _0x2e841f=[],_0x189b3e=_0x3eb50c['getAllAdjacentSuggestions']()['filter'](_0x3ccb0b=>_0x3ccb0b['isInContent']);for(const _0x48fa57 of _0x189b3e)_0x2e841f['push'](..._0x48fa57['getMarkers']());return _0xf76376(_0x2b0a7f['editing'],_0x2e841f);},'type':()=>'suggestion-'+_0x2851da['view']['type']}),_0x47bcc7['_bindAnnotationToEditors'](_0x3dd86a,_0x5115ae),_0x3cfed8['add'](_0x5115ae),_0x50442c['registerAnnotation'](_0x5115ae);}['_destroyController'](_0x52cf77){const _0x268c5d=this['editor']['plugins']['get']('CommentsRepository'),_0x282a29=this['editor']['plugins']['get']('Annotations'),_0x12a8df=this['_suggestionToController']['get'](_0x52cf77),_0x4b25eb=_0x12a8df['view'],_0x2fbe20=_0x282a29['getByInnerView'](_0x4b25eb);_0x268c5d['_unbindEditors'](_0x4b25eb),_0x2fbe20&&_0x282a29['remove'](_0x2fbe20),this['_suggestionToController']['delete'](_0x52cf77),this['_viewToController']['delete'](_0x4b25eb),_0x12a8df['destroy']();}['_updateController'](_0x32f4db){if(!_0x32f4db['isInContent']||!this['_suggestionToController']['has'](_0x32f4db))return;const _0x3e50a9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcb59f4=this['_suggestionToController']['get'](_0x32f4db),_0x3a009e=_0x32f4db['getAllAdjacentSuggestions']();_0xcb59f4['view']['descriptionParts']=_0x3e50a9['descriptionFactory']['getDescriptions'](_0x3a009e);}['destroy'](){for(const _0x25e897 of this['_suggestionToController']['keys']())this['_destroyController'](_0x25e897);for(const _0x193a20 of this['_annotationViews']['values']())_0x193a20['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x14ab3b){return'model'in _0x14ab3b;}class k extends _0x32720e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x29098d){this['editor']['plugins']['get'](p)['adapter']=_0x29098d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1839f4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1839f4);}['getSuggestions']({skipNotAttached:_0x49586d=!0x1,toJSON:_0x1a9ab3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x49586d,'toJSON':_0x1a9ab3});}['getSuggestion'](_0x102eeb){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x102eeb);}}const w=['Pagination'];class T extends _0x32720e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5c5305=this['editor'];if(_0x5c5305['config']['define']('trackChangesData.editorCreator',_0x38fdc7=>{const _0xe95fa1=_0x5c5305['model']['document']['getRootNames']()['reduce']((_0x5345c0,_0x3b1505)=>(_0x5345c0[_0x3b1505]='',_0x5345c0),{});return _0x5c5305['constructor']['create'](_0xe95fa1,_0x38fdc7);}),'function'!=typeof _0x5c5305['config']['get']('trackChangesData')['editorCreator'])throw new _0xfec3cf('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7801ea){return N(this['editor'],!0x0,_0x7801ea);}['getDataWithDiscardedSuggestions'](_0x385090){return N(this['editor'],!0x1,_0x385090);}}class D extends _0x32720e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d5cd4){function _0x2e5af9(_0x518eb9){return _0x518eb9['map'](_0x226405=>String['fromCharCode'](_0x226405))['join']('');}super(_0x4d5cd4),this['result']='end',_0x4d5cd4[_0x2e5af9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e5af9([0x76,0x69,0x65,0x77])][_0x2e5af9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e5af9([0x61,0x75,0x74,0x6f]),_0x4d5cd4[_0x2e5af9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2e5af9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e5af9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2e5af9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2e5af9([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(_0x3d0bd8){return void 0x0!==_0x3d0bd8['getRootsAttributes'];}async function N(_0x1b3b68,_0x576d02,_0x2c89eb){const _0x373f03=_0x46ee85(_0x1b3b68,w);_0x373f03['plugins']['push'](p,D),_0x373f03['rootsAttributes']=Fe(_0x1b3b68)?_0x1b3b68['getRootsAttributes']():void 0x0;const _0x5b09ac=document['createDocumentFragment'](),_0x547d97=_0x1b3b68['config']['get']('trackChangesData')['editorCreator'],_0x2343f5=await _0x547d97(_0x373f03,()=>function(_0x5f5310){const _0x1fd185=document['createElement']('div');return _0x5f5310['appendChild'](_0x1fd185),_0x1fd185;}(_0x5b09ac));!function(_0xa7f47c,_0x368fc2){const _0x643e2d=_0xa7f47c['model']['document']['getRootNames']()['reduce']((_0x22f582,_0x1f65ca)=>(_0x22f582[_0x1f65ca]=_0xa7f47c['data']['get']({'rootName':_0x1f65ca}),_0x22f582),{}),_0x289584=_0xa7f47c['plugins']['get']('Users')['users']['map'](_0xe7a727=>({'id':_0xe7a727['id'],'name':_0xe7a727['name']})),_0x179594=_0xa7f47c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56a22d=_0xa7f47c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd2885a=_0x368fc2['plugins']['get']('Users'),_0x2dc616=_0x368fc2['plugins']['get']('TrackChangesEditing'),_0x43b88=_0x368fc2['plugins']['get']('CommentsRepository');for(const _0x3b20a1 of _0x43b88['getCommentThreads']())_0x3b20a1['remove']();for(const _0x32d218 of _0x289584)_0xd2885a['getUser'](_0x32d218['id'])||_0xd2885a['addUser'](_0x32d218);_0xd2885a['me']||_0xd2885a['useAnonymousUser']();for(const _0x550028 of _0x56a22d)_0x43b88['addCommentThread'](_0x550028);for(const _0xa26b11 of _0x179594)_0x2dc616['addSuggestionData'](_0xa26b11);_0x368fc2['data']['set'](_0x643e2d);}(_0x1b3b68,_0x2343f5),_0x2343f5['execute'](_0x576d02?'acceptAllSuggestions':'discardAllSuggestions');const _0x227f3f=Fe(_0x2343f5)?_0x2343f5['getFullData'](_0x2c89eb):_0x2343f5['data']['get'](_0x2c89eb);return await _0x2343f5['destroy'](),_0x227f3f;}class Me extends _0x11e5db{['options'];constructor(_0x81f3a3,_0x2fb0c7){super(_0x81f3a3),this['options']=_0x2fb0c7,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'](_0x47ba51,_0x40b9de){if(!this['element'])return;const _0x2004e0=[];for(const [_0x5de751,_0x23624b]of _0x47ba51){const _0x257dc1=document['createElement']('div');_0x257dc1['setAttribute']('data-ck-root-name',_0x5de751),_0x257dc1['className']=_0x23624b['classes']+'\x20ck-track-changes-preview__root-container',_0x257dc1['innerHTML']=_0x23624b['content'],_0x2004e0['push'](_0x257dc1);}_0x40b9de(this['element'],_0x2004e0),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x534b21){super(_0x534b21),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x51f8c6=this['editor'],_0x988ccf=_0x51f8c6['locale'],_0x2c8eb8=_0x51f8c6['plugins']['get']('Dialog');let _0x5e3e1b;const _0x4879fe=function(_0xce73c){const _0x49c298={};if('editables'in _0xce73c['ui']['view']){for(const [_0xafccec,_0xe3a4f3]of Object['entries'](_0xce73c['ui']['view']['editables']))_0x49c298[_0xafccec]=_0xe3a4f3['element'];}else _0x49c298[_0xce73c['model']['document']['getRootNames']()[0x0]]=_0xce73c['ui']['view']['editable']['element'];return _0x49c298;}(_0x51f8c6),_0x5f4b69=function(_0xf8b08b){let _0x169106=0x0;for(const _0xeef46c of Object['values'](_0xf8b08b))_0x169106=Math['max'](_0x169106,_0xeef46c['getBoundingClientRect']()['width']);let _0x37bb67=0x0;for(const _0x5effc4 of Object['values'](_0xf8b08b))_0x37bb67+=_0x5effc4['getBoundingClientRect']()['height'];const _0x5ef255=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2b4271=Math['min'](_0x37bb67,_0x5ef255);return{'width':_0x169106,'height':_0x2b4271};}(_0x4879fe);_0x2c8eb8['show']({'id':'finalContentPreview','title':o(_0x988ccf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x988ccf,{'dialogRects':_0x5f4b69}),'onHide':()=>{_0x5e3e1b['detachFromDom']();},'onShow':()=>{_0x51f8c6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x59ce17=>{const _0x2b3b22=this['_standarizeRootsData'](_0x59ce17,_0x51f8c6,_0x4879fe);_0x2c8eb8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2b3b22,_0x51f8c6['config']['get']('trackChanges.preview.renderFunction'));}),_0x5e3e1b=new _0x2be798(_0x988ccf,[_0x2c8eb8['view']]),_0x5e3e1b['attachToDom'](),_0x5e3e1b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x51f8c6['once']('destroy',()=>{_0x5e3e1b['detachFromDom']();});const _0x16c3f4=_0x2c8eb8['view']['headerView']['class'];_0x2c8eb8['view']['headerView']['class']=_0x16c3f4?_0x16c3f4+'\x20ck-reset_all':'ck-reset_all',_0x2c8eb8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2c8eb8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2556ac=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x57ac0e=_0x2556ac['previewMode'],_0x795e3a={};if('$labels'===_0x57ac0e){for(const _0x3abb6d of _0x2556ac['getMergeFieldsIds']())_0x795e3a[_0x3abb6d]=_0x2556ac['getLabel'](_0x3abb6d)||_0x3abb6d;}else{const _0x11f0cb='$defaultValues'===_0x57ac0e?_0x2556ac['getDefaultValues']():_0x2556ac['getDataSetValues'](_0x57ac0e,!0x0);for(const _0x24aa0f of Object['entries'](_0x11f0cb)){const [_0x2ae944,_0x496e29]=_0x24aa0f;_0x795e3a[_0x2ae944]=null!==_0x496e29?_0x496e29:_0x2556ac['getLabel'](_0x2ae944)||_0x2ae944;}}return{'mergeFieldsData':_0x795e3a};}['_standarizeRootsData'](_0x3fd92e,_0x371f77,_0x3f0941){let _0x353ba1;if('string'==typeof _0x3fd92e){const _0x3f7ad3=_0x371f77['model']['document']['getRootNames']()[0x0];_0x353ba1={[_0x3f7ad3]:_0x3fd92e};}else _0x353ba1=_0x3fd92e;const _0x3ca72e=this['_fixMediaEmbeds'](_0x353ba1,_0x371f77),_0x5edee2=function(_0x4f04b3,_0x150147){for(const [_0x4e7723,_0x2c3460]of _0x4f04b3)_0x2c3460['classes']=_0x150147[_0x4e7723]['classList']['value']['replace']('ck-focused','');return _0x4f04b3;}(this['_sortRoots'](_0x371f77)['reduce']((_0x4b6d28,_0x303616)=>(_0x4b6d28['push']([_0x303616,{'content':_0x3ca72e[_0x303616],'classes':''}]),_0x4b6d28),[]),_0x3f0941);return _0x5edee2;}['_fixMediaEmbeds'](_0x1c6029,_0x2c6963){if(!_0x2c6963['plugins']['has']('MediaEmbedEditing'))return _0x1c6029;const _0x29afc4=_0x2c6963['plugins']['get']('MediaEmbedEditing');for(const [_0x2d13f8,_0x34e1e3]of Object['entries'](_0x1c6029)){const _0x19a746=document['createElement']('div');_0x19a746['innerHTML']=_0x34e1e3,(_0x19a746['querySelectorAll']('figure.media')['forEach'](_0x388d10=>{const _0x2c3989=_0x388d10['querySelector']('oembed');if(_0x2c3989){const _0xfda75=_0x2c3989['getAttribute']('url');if(_0xfda75){const _0x35ffaa=_0x29afc4['registry']['getMediaViewElement'](new _0x35eebe(_0x2c6963['editing']['view']['document']),_0xfda75,{'elementName':'','renderForEditingView':!0x0}),_0x6d6557=document['createElement']('div');_0x6d6557['classList']['add']('ck-media__wrapper'),_0x35ffaa['render'](_0x6d6557,_0x2c6963['editing']['view']['domConverter']),_0x2c3989['replaceWith'](_0x6d6557);}}}),_0x1c6029[_0x2d13f8]=_0x19a746['innerHTML']);}return _0x1c6029;}['_sortRoots'](_0x47396d){if(!function(_0x259c03){return void 0x0!==_0x259c03['getRootsAttributes'];}(_0x47396d))return _0x47396d['model']['document']['getRootNames']();const _0x302370=[],_0x220735=new Map();for(const _0x3d9e5e of _0x47396d['model']['document']['getRootNames']()){const _0x510af7=_0x47396d['editing']['view']['getDomRoot'](_0x3d9e5e)['getClientRects']()['item'](0x0);_0x302370['push'](_0x3d9e5e),_0x220735['set'](_0x3d9e5e,_0x510af7);}return _0x302370['sort']((_0x13969a,_0x6371f4)=>{const _0x2c3ad4=_0x220735['get'](_0x13969a),_0x281dca=_0x220735['get'](_0x6371f4);return _0x2c3ad4['y']-_0x281dca['y']||_0x2c3ad4['x']-_0x281dca['x'];}),_0x302370;}}class te extends _0x32720e{static get['requires'](){return[T,_0x26d4e0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e715b){super(_0x1e715b),_0x1e715b['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1e715b['config']['define']('trackChanges.preview.renderFunction',(_0x21e8d7,_0x56a367)=>{for(const _0x105c4a of _0x56a367)_0x21e8d7['appendChild'](_0x105c4a);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};