@ckeditor/ckeditor5-track-changes 45.2.1-alpha.7 → 45.2.1-alpha.8

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 _0x455c8c,Plugin as _0x465839,PendingActions as _0x12d319}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3f002a,ObservableMixin as _0x314fbc,uid as _0x21999f,priorities as _0x38d918,insertToPriorityArray as _0x459e09,toArray as _0x27001d,logWarning as _0xb01b9a,getEnvKeystrokeText as _0x34b607,FocusTracker as _0x564b3d,KeystrokeHandler as _0x31e822,Collection as _0x45a1d9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x39baa5,IconCancel as _0x1b5757,IconTrackChanges as _0x98e570}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4f5407,View as _0x5687e5,ViewCollection as _0x3d9848,FocusCycler as _0x42ca04,ViewModel as _0x417432,createDropdown as _0x3864aa,SplitButtonView as _0x42daf1,addListToDropdown as _0x4a292e,MenuBarMenuView as _0x4fe0fe,MenuBarMenuListView as _0x2a4117,ListSeparatorView as _0x5cecbf,MenuBarMenuListItemView as _0xb4328e,MenuBarMenuListItemButtonView as _0x2d5af2,BodyCollection as _0x1bee4e,Dialog as _0x5a4850}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x50a8cf,hashObject as _0x49b0ed,surroundingMarkersDetector as _0x545f3a,FOCUS_ANNOTATION_KEYSTROKE as _0x3ff4ca,AriaDescriptionView as _0x5cbd9d,setupThreadKeyboardNavigation as _0x868696,trimHtml as _0x4850f5,UserView as _0xccd57,LateFocusButtonView as _0x180bf7,getDateTimeFormatter as _0x1c1134,getAllMarkersDomElementsSorted as _0x36f853,sanitizeEditorConfig as _0x4ad614}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x492b8a,LiveRange as _0x1a5d6e,LivePosition as _0x1ff9a7,DowncastWriter as _0x3407f8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5ad207,toWidget as _0x107d70}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x453693,set as _0x41fd3b,isEqual as _0xbbaa66,unset as _0xd94820,omit as Ft}from'es-toolkit/compat';import{Delete as _0x2c2264,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xb6d27e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1a48ee}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x455c8c{['_enabledCommands'];constructor(_0x1d79a1,_0x55a220){super(_0x1d79a1),this['_enabledCommands']=_0x55a220,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 _0x468bdc of this['editor']['commands']['commands']())_0x468bdc['affectsData']&&!this['_enabledCommands']['has'](_0x468bdc)&&_0x468bdc['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3938e1 of this['editor']['commands']['commands']())_0x3938e1['affectsData']&&!this['_enabledCommands']['has'](_0x3938e1)&&_0x3938e1['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x455c8c{['_suggestions'];constructor(_0x5102ea,_0x1bdb9c){super(_0x5102ea),this['_suggestions']=_0x1bdb9c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x9a4896){const _0x2bfe68=this['_suggestions']['get'](_0x9a4896);if(!_0x2bfe68)throw new _0x3f002a('track-changes-accept-suggestion-not-found',this);const _0x567514=_0x2bfe68['getRanges']();this['editor']['model']['canEditAt'](_0x567514)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2bfe68);}}class O extends _0x455c8c{['_suggestions'];constructor(_0x59258e,_0x233744){super(_0x59258e),this['_suggestions']=_0x233744,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa405fe){const _0x51b197=this['_suggestions']['get'](_0xa405fe);if(!_0x51b197)throw new _0x3f002a('track-changes-discard-suggestion-not-found',this);const _0x286355=_0x51b197['getRanges']();this['editor']['model']['canEditAt'](_0x286355)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x51b197);}}function ls(_0x3cf3a0,_0x200029){let _0x269bc1='';return _0x269bc1+=_0x3cf3a0['split']('*')['map']((_0x40cdc2,_0x11a076)=>_0x11a076%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x40cdc2)+'</span>':nn(_0x40cdc2))['join'](''),_0x200029&&(_0x269bc1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x200029['value']+'\x22\x20title=\x22'+_0x200029['title']+'\x22></span>'),_0x269bc1;}function nn(_0x837582){const _0x424ae1=document['createElement']('span');return _0x424ae1['innerText']=_0x837582,_0x424ae1['innerHTML'];}function ts(_0x2beaa4){return _0x2beaa4['sort']((_0x58193e,_0x25340c)=>'deletion'==_0x58193e['type']&&'deletion'!=_0x25340c['type']?-0x1:'deletion'!=_0x58193e['type']&&'deletion'==_0x25340c['type']?0x1:0x0);}function to(_0x2710cc,_0x3ae113){let _0x4233af,_0x58646f=0x0;const _0x48d767=[],_0x320c70=_0x3ae113['schema'];for(;_0x58646f<_0x2710cc['length'];){const _0x5a8148=_0x2710cc[_0x58646f],_0x47bf95=_0x2710cc[_0x58646f+0x1];_0x4233af||(_0x4233af=_0x3ae113['createPositionBefore'](_0x5a8148)),on(_0x3ae113,_0x5a8148,_0x47bf95)||(_0x48d767['push'](_0x3ae113['createRange'](_0x4233af,_0x320c70['isObject'](_0x5a8148)?_0x3ae113['createPositionAfter'](_0x5a8148):_0x3ae113['createPositionAt'](_0x5a8148,'end'))),_0x4233af=null),_0x58646f++;}return _0x48d767;}function on(_0x38939b,_0x4afad6,_0x25cb2c){if(!_0x25cb2c)return!0x1;const _0x119f57=_0x38939b['createPositionAfter'](_0x4afad6),_0x5caaf0=_0x38939b['createPositionBefore'](_0x25cb2c);return _0x119f57['isTouching'](_0x5caaf0);}function rs(_0x1d85ac,_0x10201e,_0x2f5eb0){for(;_0x2f5eb0['length'];){const _0x14097a=_0x2f5eb0['splice'](0x0,0x64);_0x1d85ac['change'](()=>{for(const _0x46328e of _0x14097a)_0x46328e['isInContent']&&_0x10201e['execute'](_0x46328e['id']);});}}class R extends _0x455c8c{['_command'];['_suggestions'];constructor(_0xdabf3a,_0x5a9a91,_0x2e73f5){super(_0xdabf3a),this['_command']=_0x5a9a91,this['_suggestions']=_0x2e73f5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37d05b=Array['from'](this['_suggestions']['values']())['some'](_0x2458a0=>_0x2458a0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x37d05b;}['execute'](){const _0x36dff8=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1c4c91 of _0x36dff8){const _0x386484=_0x1c4c91['getRanges']();if(!this['editor']['model']['canEditAt'](_0x386484))return;}rs(this['editor']['model'],this['_command'],_0x36dff8);}}class E extends _0x455c8c{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1187c7,_0x4acea4,_0x32db34){super(_0x1187c7),this['_command']=_0x4acea4,this['_suggestions']=_0x32db34,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x13f92c=this['editor']['model']['document']['selection'],_0x299cb9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5a6f5f,_0x1239a0){const _0x55263c=Array['from'](_0x5a6f5f['getRanges']()),_0x33f45f=new Set();for(const _0x3c2ff8 of _0x1239a0)if(_0x3c2ff8['isInContent']){for(const _0x5284f1 of _0x55263c)for(const _0x36e2d6 of _0x3c2ff8['getRanges']())(_0x5284f1['isIntersecting'](_0x36e2d6)||_0x5a6f5f['isCollapsed']&&!_0x3c2ff8['isMultiRange']&&_0x3c2ff8['next']&&_0x36e2d6['end']['isTouching'](_0x5284f1['start']))&&_0x33f45f['add'](_0x3c2ff8);}return _0x33f45f;}(_0x13f92c,_0x299cb9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xbc8f25=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3837cd of _0xbc8f25){const _0x1a151e=_0x3837cd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1a151e))return;}rs(this['editor']['model'],this['_command'],_0xbc8f25);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x314fbc(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x24a424,_0x45589e){super(),this['id']=_0x45589e['id'],this['type']=_0x45589e['type'],this['subType']=_0x45589e['subType']||null,this['author']=_0x45589e['author'],this['creator']=_0x45589e['creator']||_0x45589e['author'],this['isExternal']=Boolean(_0x45589e['attributes']&&_0x45589e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x45589e['originalSuggestionId']||null,this['_model']=_0x24a424,this['_onAccept']=_0x45589e['onAccept'],this['_onDiscard']=_0x45589e['onDiscard'],this['_onAttributesChange']=_0x45589e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x45589e['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 _0xcfdab2=this;for(;_0xcfdab2['previous'];)_0xcfdab2=_0xcfdab2['previous'];return _0xcfdab2;}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'](_0x14ed84){this['_markerNames']['add'](_0x14ed84);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x55f8dd=>this['_model']['markers']['get'](_0x55f8dd))['filter'](_0x188998=>_0x188998);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x238dff=>{for(const _0x55f259 of this['getMarkers']())_0x238dff['removeMarker'](_0x55f259);}),this['_markerNames']['clear']();}['removeMarker'](_0x1d2e1c){this['_model']['change'](_0x182675=>{_0x182675['removeMarker'](_0x1d2e1c);}),this['_markerNames']['delete'](_0x1d2e1c);}['addRange'](_0x4afe55){const _0x38e2be='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x38e2be),this['_model']['change'](_0x32e0d4=>{_0x32e0d4['addMarker'](_0x38e2be,{'range':_0x4afe55,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x42768c){for(const _0x57f3d9 of this['getRanges']())if(_0x57f3d9['isIntersecting'](_0x42768c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x14da5f=>_0x14da5f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c74f8,_0x3badf0)=>[..._0x2c74f8,..._0x3badf0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x47343d=this['getRanges']();if(0x1!=_0x47343d['length'])return null;const _0xe73194=_0x47343d[0x0],_0x1792e3=_0xe73194['start']['nodeAfter'],_0x9df232=_0xe73194['end']['nodeBefore'];return _0x1792e3 instanceof _0x492b8a?_0x1792e3!=_0x9df232?null:_0x1792e3: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 _0x1fd27b=[];let _0xac9d10=this['head'];for(;_0xac9d10;)_0x1fd27b['push'](_0xac9d10),_0xac9d10=_0xac9d10['next'];return _0x1fd27b;}['setAttribute'](_0x57e0ca,_0xa54b8a){const _0x491652=_0x453693(this['attributes']);_0x41fd3b(_0x491652,_0x57e0ca,_0xa54b8a),_0xbbaa66(_0x491652,this['attributes'])||(this['attributes']=_0x491652,this['_onAttributesChange'](_0x491652));}['removeAttribute'](_0x4f8218){const _0x27d9f6=_0x453693(this['attributes']);_0xd94820(_0x27d9f6,_0x4f8218),_0xbbaa66(_0x27d9f6,this['attributes'])||(this['attributes']=_0x27d9f6,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 _0x21999f()['substr'](0x1,0x5);}}function c(_0x3c8e8b,_0x3bb1d9,_0x17278b){const _0x4d6332=_0x3c8e8b['t'],t=_0x3c8e8b['t'];switch(_0x3bb1d9){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',_0x17278b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x17278b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x17278b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x17278b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x17278b);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',_0x17278b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x17278b);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',_0x17278b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x17278b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x17278b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x17278b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x17278b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x17278b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x17278b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x17278b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x17278b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x17278b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x17278b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x17278b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x17278b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x17278b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x17278b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x17278b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x17278b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x17278b);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'},_0x17278b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x17278b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x17278b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x17278b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x17278b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x17278b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x17278b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x17278b);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'},_0x17278b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x17278b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x17278b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x17278b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x17278b);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'},_0x17278b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x17278b);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'},_0x17278b);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'},_0x17278b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x17278b);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'},_0x17278b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x17278b);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'},_0x17278b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x17278b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x17278b);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'},_0x17278b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x17278b);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 _0x4d6332({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x17278b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4d6332({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x17278b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x17278b);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'},_0x17278b);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'},_0x17278b);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'},_0x17278b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3bb1d9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x103866,_0x34a9a3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x103866,this['_locale']=_0x34a9a3;}['getDescriptions'](_0xac57d0){const _0x52590c=[],_0x1abd6b=new Set(),_0x1813fb=new Set();for(let _0x42cbe8=0x0;_0x42cbe8<_0xac57d0['length'];_0x42cbe8++){const _0x1df7cd=_0xac57d0[_0x42cbe8];if(!_0x1df7cd['isInContent'])continue;const _0x42b5be=this['_handleCustomCallbackDescription'](_0x1df7cd);if(_0x42b5be){if(null!=_0x1df7cd['subType']){if(_0x1abd6b['has'](_0x1df7cd['subType']))continue;_0x1abd6b['add'](_0x1df7cd['subType']);}_0x52590c['push'](_0x42b5be);}else{if('attribute'==_0x1df7cd['type']){const _0x4bf620=_0x1df7cd['data']['key'];if(_0x1813fb['has'](_0x4bf620))continue;_0x1813fb['add'](_0x1df7cd['data']['key']),_0x4bf620==u?this['_handleRenameSuggestionDescription'](_0x52590c,_0x1df7cd):this['_handleAttributeSuggestionDescription'](_0x52590c,_0x1df7cd);continue;}'insertion'!=_0x1df7cd['type']&&'deletion'!=_0x1df7cd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x52590c,_0x1df7cd,_0xac57d0[_0x42cbe8+0x1]);}}return this['_resolveDescriptionItems'](_0x52590c);}['registerDescriptionCallback'](_0x86dfa7){this['_customCallbacks']['push'](_0x86dfa7);}['registerElementLabel'](_0x5d8716,_0x27a8b9,_0x5dc774=_0x38d918['normal']){'function'==typeof _0x5d8716?_0x459e09(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5d8716,'label':_0x27a8b9,'priority':_0x5dc774}):this['_itemLabels']['set'](_0x5d8716,_0x27a8b9);}['registerAttributeLabel'](_0x34906c,_0xfaf979){this['_attributeLabels']['set'](_0x34906c,_0xfaf979);}['getItemLabel'](_0x356c25,_0x11d30a=0x1){let _0x1702d2;for(const _0x48121a of this['_itemLabelsCallbacks'])if(_0x48121a['matchingCallback'](_0x356c25)){_0x1702d2=_0x48121a['label'];break;}return _0x1702d2||(_0x1702d2=this['_itemLabels']['get'](_0x356c25['name'])),_0x1702d2?_0x1702d2(_0x11d30a):0x1!==_0x11d30a?_0x11d30a+'\x20'+_0x356c25['name']+'s':''+_0x356c25['name'];}['_addDescriptionItems'](_0x297755,_0x74c00a){const _0x317719=_0x74c00a['getFirstRange']()['getWalker'](),_0x405384='insertion'==_0x74c00a['type']?'add':'remove';for(const _0x4737ee of _0x317719){const _0x3c81f4=_0x4737ee['item'],_0x59a80c=_0x297755[_0x297755['length']-0x1];if(_0x3c81f4['is']('$textProxy'))_0x59a80c&&_0x59a80c['type']['indexOf']('Container')>-0x1&&_0x297755['pop'](),_0x59a80c&&'text'==_0x59a80c['type']?_0x59a80c[_0x405384]+=_0x3c81f4['data']:_0x297755['push']({'type':'text','add':'add'==_0x405384?_0x3c81f4['data']:'','remove':'remove'==_0x405384?_0x3c81f4['data']:''});else{if(this['_schema']['isObject'](_0x3c81f4)){const _0x5106d6=_0x3c81f4;if(_0x59a80c&&_0x59a80c['type']['indexOf']('Container')>-0x1&&_0x297755['pop'](),'elementEnd'==_0x4737ee['type'])continue;_0x59a80c&&_0x59a80c['type']==_0x405384+'Object'&&_0x59a80c['element']['name']==_0x5106d6['name']?_0x59a80c['quantity']++:_0x297755['push']({'type':_0x405384+'Object','element':_0x5106d6,'quantity':0x1}),_0x317719['skip'](_0x5648d7=>!('elementEnd'==_0x5648d7['type']&&_0x5648d7['item']==_0x3c81f4));}else{if(this['_schema']['checkChild'](_0x3c81f4,'$text')||_0x3c81f4['is']('element','softBreak')){const _0x41b069=_0x3c81f4;if('add'==_0x405384&&'elementStart'==_0x4737ee['type']||'remove'==_0x405384&&'elementEnd'==_0x4737ee['type'])continue;if(_0x59a80c&&-0x1==_0x59a80c['type']['indexOf']('Container')){'text'==_0x59a80c['type']&&(_0x59a80c[_0x405384]+='\x0a');continue;}let _0x5b57cb;if(_0x5b57cb='add'==_0x405384?_0x41b069['nextSibling']&&!this['_schema']['isObject'](_0x41b069['nextSibling'])?_0x41b069['nextSibling']:null:_0x41b069['previousSibling']&&!this['_schema']['isObject'](_0x41b069['previousSibling'])?_0x41b069['previousSibling']:null,_0x41b069['isEmpty']||_0x5b57cb&&_0x5b57cb['isEmpty']){const _0x387a5a=_0x5b57cb&&_0x5b57cb['isEmpty']?_0x5b57cb:_0x41b069;_0x59a80c&&_0x59a80c['type']==_0x405384+'EmptyContainer'&&_0x59a80c['element']['name']==_0x387a5a['name']?_0x59a80c['quantity']++:_0x297755['push']({'type':_0x405384+'EmptyContainer','element':_0x387a5a,'quantity':0x1});}else _0x297755['push']({'type':_0x405384+'Container','element':_0x41b069});}}}}}['_resolveDescriptionItems'](_0x4fc2fe){const _0x34093f=this['_locale'],_0x262bb1=[],_0x1a89e7=[],_0x2d9364=[];for(const _0x55a03d of _0x4fc2fe)switch(_0x55a03d['type']){case'text':if(_0x55a03d['add']=_0x55a03d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x55a03d['remove']=_0x55a03d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x55a03d['add']&&''!=_0x55a03d['remove']){_0x262bb1['push']({'type':'replace','content':c(_0x34093f,'REPLACE_TEXT',['\x22'+_0x55a03d['remove']+'\x22','\x22'+_0x55a03d['add']+'\x22'])});continue;}if(null!=_0x55a03d['add']['match'](/^ +$/)){_0x262bb1['push']({'type':'insertion','content':c(_0x34093f,'*Insert:*\x20%0',c(_0x34093f,'ELEMENT_SPACE',_0x55a03d['add']['length']))});continue;}if(null!=_0x55a03d['remove']['match'](/^ +$/)){_0x262bb1['push']({'type':'deletion','content':c(_0x34093f,'*Remove:*\x20%0',c(_0x34093f,'ELEMENT_SPACE',_0x55a03d['remove']['length']))});continue;}if(''!=_0x55a03d['add']){_0x262bb1['push']({'type':'insertion','content':c(_0x34093f,'*Insert:*\x20%0','\x22'+_0x55a03d['add']+'\x22')});continue;}_0x262bb1['push']({'type':'deletion','content':c(_0x34093f,'*Remove:*\x20%0','\x22'+_0x55a03d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x262bb1['push']({'type':'insertion','content':c(_0x34093f,'*Insert:*\x20%0',this['getItemLabel'](_0x55a03d['element'],_0x55a03d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x262bb1['push']({'type':'deletion','content':c(_0x34093f,'*Remove:*\x20%0',this['getItemLabel'](_0x55a03d['element'],_0x55a03d['quantity']))});continue;case'addContainer':_0x262bb1['push']({'type':'insertion','content':c(_0x34093f,'*Split:*\x20%0',this['getItemLabel'](_0x55a03d['element'],_0x55a03d['quantity']))});continue;case'removeContainer':_0x262bb1['push']({'type':'deletion','content':c(_0x34093f,'*Merge:*\x20%0',this['getItemLabel'](_0x55a03d['element'],_0x55a03d['quantity']))});continue;case'addFormat':_0x1a89e7['push'](_0x55a03d['key']);continue;case'removeFormat':_0x2d9364['push'](_0x55a03d['key']);continue;default:_0x262bb1['push'](_0x55a03d);}if(_0x1a89e7['length']){const _0x2f9ec4=_0x1a89e7['map'](_0x5806f3=>this['_attributeLabels']['has'](_0x5806f3)?this['_attributeLabels']['get'](_0x5806f3):_0x5806f3)['join'](',\x20');_0x262bb1['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x2f9ec4)});}if(_0x2d9364['length']){const _0x5183d6=_0x2d9364['map'](_0x5a2ef4=>this['_attributeLabels']['has'](_0x5a2ef4)?this['_attributeLabels']['get'](_0x5a2ef4):_0x5a2ef4)['join'](',\x20');_0x262bb1['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x5183d6)});}return _0x262bb1;}['_handleCustomCallbackDescription'](_0x38401b){for(const _0x53541b of this['_customCallbacks']){const _0xfb05fc=_0x53541b(_0x38401b);if(_0xfb05fc&&'type'in _0xfb05fc)return _0xfb05fc;}}['_handleAttributeSuggestionDescription'](_0x116b31,_0x4f136c){const _0xb2028a=_0x4f136c['data'],_0x3a8806=void 0x0===_0xb2028a['newValue']?'removeFormat':'addFormat';_0x116b31['push']({'type':_0x3a8806,'key':_0xb2028a['key']});}['_handleRenameSuggestionDescription'](_0x2793fe,_0xb08441){_0x2793fe['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xb08441['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x64e3c3,_0x289cc8,_0x8798ae){if(this['_addDescriptionItems'](_0x64e3c3,_0x289cc8),_0x8798ae&&_0x8798ae['getFirstRange']()&&!_0x289cc8['getFirstRange']()['end']['isEqual'](_0x8798ae['getFirstRange']()['start'])){const _0x1cf845=_0x64e3c3[_0x64e3c3['length']-0x1],_0x7554f8='insertion'==_0x289cc8['type']?'add':'remove';_0x1cf845&&'text'==_0x1cf845['type']&&(_0x1cf845[_0x7554f8]+='\x0a');}}}class U extends _0x465839{['afterInit'](){const _0x5ac0cc=this['editor'],_0x229a32=_0x5ac0cc['plugins']['get']('TrackChangesEditing');_0x5ac0cc['commands']['get']('showAIAssistant')&&_0x229a32['enableCommand']('showAIAssistant');}}class V extends _0x465839{['afterInit'](){const _0x52d414=this['editor'],_0x5f2a4c=_0x52d414['locale'];if(!_0x52d414['plugins']['has']('AlignmentEditing'))return;const _0x3245d8=_0x52d414['plugins']['get']('TrackChangesEditing');_0x3245d8['enableDefaultAttributesIntegration']('alignment'),_0x3245d8['registerBlockAttribute']('alignment'),_0x3245d8['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x5f2a4c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1554a4=this['editor'],_0x554be3=_0x1554a4['locale'];_0x1554a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1583a1=>{if('formatBlock'!=_0x1583a1['type'])return;const {data:_0x28ee11}=_0x1583a1;if(_0x28ee11&&'alignment'==_0x28ee11['commandName']){const _0x3301b0=_0x28ee11['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x554be3,'*Format:*\x20%0',function(_0x5d85df){switch(_0x5d85df){case'left':return c(_0x554be3,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x554be3,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x554be3,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x554be3,'FORMAT_JUSTIFY_TEXT');}}(_0x3301b0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x465839{['afterInit'](){const _0x102e26=this['editor'],_0xc85fc4=_0x102e26['plugins']['get']('TrackChangesEditing'),_0x5aff17=_0x102e26['locale'];for(const _0x3a69af of ti){if(!_0x102e26['plugins']['has'](_0x3a69af))continue;const _0x4ecfee=_0x3a69af['slice'](0x0,-0x7)['toLowerCase'](),_0x48d75f='FORMAT_'+_0x4ecfee['toUpperCase']();_0xc85fc4['enableDefaultAttributesIntegration'](_0x4ecfee),_0xc85fc4['registerInlineAttribute'](_0x4ecfee),_0xc85fc4['descriptionFactory']['registerAttributeLabel'](_0x4ecfee,c(_0x5aff17,_0x48d75f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a2e43=this['editor'],_0xad4277=_0x2a2e43['locale'],_0x2e002e=_0x2a2e43['plugins']['get']('TrackChangesEditing');function _0x4b1a4c(_0x45e1dd,_0x5818de){_0x2e002e['descriptionFactory']['registerDescriptionCallback'](_0x4948ae=>{if('formatInline'!=_0x4948ae['type'])return;const {data:_0xdc2849}=_0x4948ae;return _0xdc2849&&_0xdc2849['commandName']===_0x45e1dd?_0xdc2849['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xad4277,'*Format:*\x20%0',_0x5818de)}:{'type':'format','content':c(_0xad4277,'*Remove\x20format:*\x20%0',_0x5818de)}:void 0x0;});}_0x4b1a4c('bold',c(_0xad4277,'FORMAT_BOLD')),_0x4b1a4c('italic',c(_0xad4277,'FORMAT_ITALIC')),_0x4b1a4c('underline',c(_0xad4277,'FORMAT_UNDERLINE')),_0x4b1a4c('code',c(_0xad4277,'FORMAT_CODE')),_0x4b1a4c('strikethrough',c(_0xad4277,'FORMAT_STRIKETHROUGH')),_0x4b1a4c('subscript',c(_0xad4277,'FORMAT_SUBSCRIPT')),_0x4b1a4c('superscript',c(_0xad4277,'FORMAT_SUPERSCRIPT'));}}class G extends _0x465839{['afterInit'](){const _0x22884e=this['editor'],_0xf2e0b5=_0x22884e['locale'];if(!_0x22884e['plugins']['has']('BlockQuoteEditing'))return;const _0xa82571=_0x22884e['plugins']['get']('TrackChangesEditing'),_0x2468d4=this['editor']['commands']['get']('blockQuote');_0xa82571['enableCommand']('blockQuote',(_0x41d0b1,_0x19af78={})=>{const _0x50a269=this['editor']['model']['document']['selection'],_0x1a589a=_0x19af78&&void 0x0!==_0x19af78['forceValue']?_0x19af78['forceValue']:!_0x2468d4['value'];let _0x40b76d=[];if(_0x1a589a){const _0x205088=Array['from'](_0x50a269['getSelectedBlocks']())['filter'](_0x4c55e5=>oo(_0x4c55e5)||function(_0x3b45bf,_0x356f8d){const _0x561ab3=_0x356f8d['checkChild'](_0x3b45bf['parent'],'blockQuote'),_0x387eca=_0x356f8d['checkChild'](['$root','blockQuote'],_0x3b45bf);return _0x561ab3&&_0x387eca;}(_0x4c55e5,this['editor']['model']['schema']));_0x40b76d=to(_0x205088,_0x22884e['model']);}else{const _0x2eed39=Array['from'](_0x50a269['getSelectedBlocks']())['filter'](_0x2ecbdf=>oo(_0x2ecbdf));_0x40b76d=to(_0x2eed39,_0x22884e['model']);}_0x22884e['model']['change'](()=>{for(const _0x5892bc of _0x40b76d)_0xa82571['markBlockFormat'](_0x5892bc,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1a589a}]});});}),_0xa82571['descriptionFactory']['registerDescriptionCallback'](_0x19cf02=>{const {data:_0x41485d}=_0x19cf02;if(_0x41485d&&'blockQuote'==_0x41485d['commandName']){const _0x9d2644=c(_0xf2e0b5,'ELEMENT_BLOCK_QUOTE');return _0x41485d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xf2e0b5,'*Set\x20format:*\x20%0',_0x9d2644)}:{'type':'format','content':c(_0xf2e0b5,'*Remove\x20format:*\x20%0',_0x9d2644)};}});}}function oo(_0x442564){return'blockQuote'==_0x442564['parent']['name'];}class L extends _0x465839{['afterInit'](){const _0x5a4d01=this['editor'],_0x5b8e97=_0x5a4d01['locale'],_0x65b477=_0x5a4d01['plugins']['get']('TrackChangesEditing');_0x5a4d01['plugins']['has']('BookmarkEditing')&&(_0x65b477['enableCommand']('insertBookmark'),_0x65b477['enableDefaultAttributesIntegration']('updateBookmark'),_0x65b477['registerBlockAttribute']('bookmarkId'),_0x65b477['descriptionFactory']['registerDescriptionCallback'](_0x3f06a4=>{if('insertion'!=_0x3f06a4['type']&&'deletion'!=_0x3f06a4['type']&&'attribute'!=_0x3f06a4['type'])return;const _0x1d89e0=_0x3f06a4['getContainedElement']();if(null==_0x1d89e0)return;if(!_0x1d89e0['is']('element','bookmark'))return;const _0x5d7d81=_0x1d89e0['getAttribute']('bookmarkId');if('insertion'==_0x3f06a4['type'])return{'type':'insertion','content':c(_0x5b8e97,'*Insert:*\x20%0','\x22'+_0x5d7d81+'\x22\x20'+c(_0x5b8e97,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3f06a4['type'])return{'type':'deletion','content':c(_0x5b8e97,'*Remove:*\x20%0','\x22'+_0x5d7d81+'\x22\x20'+c(_0x5b8e97,'ELEMENT_BOOKMARK'))};const {data:_0x2a071a}=_0x3f06a4;if(!_0x2a071a||'bookmarkId'!=_0x2a071a['key'])return;return{'type':'format','content':c(_0x5b8e97,'*Set\x20bookmark:*\x20%0','\x22'+_0x2a071a['newValue']+'\x22')};}));}}class J extends _0x465839{['afterInit'](){const _0xbe9077=this['editor'];_0xbe9077['plugins']['has']('CaseChange')&&(_0xbe9077['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xbe9077['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xbe9077['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x465839{['afterInit'](){const _0x2ceec8=this['editor'];_0x2ceec8['commands']['get']('ckbox')&&_0x2ceec8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x465839{['afterInit'](){const _0x15d275=this['editor'];if(!_0x15d275['plugins']['has']('CodeBlock'))return;const _0x45abbc=_0x15d275['plugins']['get']('TrackChangesEditing'),_0x4e9a46=_0x15d275['locale'],_0x350b98=_0x15d275['config']['get']('codeBlock')['languages'],_0x3b7796=_0x15d275['commands']['get']('codeBlock');_0x45abbc['enableCommand']('indentCodeBlock'),_0x45abbc['enableCommand']('outdentCodeBlock'),_0x45abbc['enableCommand']('codeBlock',(_0x5b2d30,_0x165cfd={})=>{const _0x50b87e=_0x15d275['model'],_0x1846dc=_0x15d275['model']['document']['selection'],_0x4b63f2=_0x165cfd&&void 0x0!==_0x165cfd['forceValue']?_0x165cfd['forceValue']:!_0x3b7796['value'];let _0x4dbb6a;_0x165cfd['language']||(_0x165cfd['language']=_0x350b98[0x0]['language']),_0x4dbb6a=_0x4b63f2?Array['from'](_0x1846dc['getSelectedBlocks']())['filter'](_0x4947c8=>eo(_0x4947c8)||function(_0xc9b07d,_0x293a14){if(_0xc9b07d['is']('rootElement')||_0x293a14['isLimit'](_0xc9b07d))return!0x1;return _0x293a14['checkChild'](_0xc9b07d['parent'],'codeBlock');}(_0x4947c8,_0x50b87e['schema'])):Array['from'](_0x1846dc['getSelectedBlocks']())['filter'](_0x4a1135=>eo(_0x4a1135));const _0x5370f1=to(_0x4dbb6a,_0x50b87e);_0x50b87e['change'](()=>{for(const _0x38f30a of _0x5370f1)_0x45abbc['markBlockFormat'](_0x38f30a,{'commandName':'codeBlock','commandParams':[{..._0x165cfd,'forceValue':_0x4b63f2}],'formatGroupId':'blockName'});});}),(_0x45abbc['descriptionFactory']['registerElementLabel']('codeBlock',_0x2b2d8e=>c(_0x4e9a46,'ELEMENT_CODE_BLOCK',_0x2b2d8e)),_0x45abbc['descriptionFactory']['registerDescriptionCallback'](_0x13051f=>{if('formatBlock'!=_0x13051f['type'])return;const _0x9adbd2=_0x4e9a46['t'],{data:_0x53f209}=_0x13051f;if(!_0x53f209||'codeBlock'!=_0x53f209['commandName'])return;const _0x5a4d22=_0x53f209['commandParams'][0x0]['language'],_0x19a5ea=_0x9adbd2(_0x350b98['find'](_0x1f576a=>_0x1f576a['language']===_0x5a4d22)['label'])['toLowerCase']();return _0x53f209['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4e9a46,'*Set\x20format:*\x20%0',c(_0x4e9a46,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x19a5ea+')')}:{'type':'format','content':c(_0x4e9a46,'*Remove\x20format:*\x20%0',c(_0x4e9a46,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x59ed26){return'codeBlock'==_0x59ed26['name'];}class q extends _0x465839{['afterInit'](){const _0x206e2c=this['editor'];if(!_0x206e2c['plugins']['has']('CommentsEditing'))return;_0x206e2c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2aa982,_0x4d714f,_0x2a2ec2){const _0x87697a=[];for(const _0xb9e87 of _0x4d714f['getItems']())_0xb9e87['hasAttribute'](_0x2aa982)&&_0x87697a['push'](_0x2a2ec2['createRangeOn'](_0xb9e87));return _0x87697a;}function Fe(_0x105407,_0x2ad5ce,{showActiveMarker:_0xd1e049=!0x0}={}){const _0x19c53c=_0x105407['plugins']['get']('TrackChangesEditing');return(_0x154ee9,_0x2fe5cc,_0x5154e6)=>{if(!_0x5154e6['consumable']['test'](_0x2fe5cc['markerRange'],_0x154ee9['name']))return;const _0x41a22b=_0x2fe5cc['markerRange']['getWalker'](),_0x21360e=_0x2fe5cc['markerRange']['start'],_0x312300=_0x105407['model']['schema'];let _0x340463=null,_0x1243e1=null,_0x38bfed=!0x1,_0x483ab9=!0x1;for(const _0x3987e3 of _0x41a22b){const _0x278d84=_0x3987e3['item'];_0x38bfed=_0x38bfed||_0x312300['isContent'](_0x278d84);const _0x48741c=_0x5154e6['mapper']['toViewElement'](_0x278d84);if(_0x48741c&&_0x48741c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3987e3['type']&&(_0x312300['isBlock'](_0x278d84)&&!_0x312300['isLimit'](_0x278d84)&&(_0x278d84['nextSibling']||_0x21360e['isAtEnd']?_0x340463&&_0x340463['parent']==_0x278d84||(_0x340463=_0x278d84,_0x137752(_0x3987e3['previousPosition']),_0x483ab9=!0x0):_0x1243e1=_0x1243e1||_0x3987e3['previousPosition']));}function _0x137752(_0xf7a20a){const {id:_0x39ac5c,authorId:_0x35708e}=_0x19c53c['_splitMarkerName'](_0x2fe5cc['markerName']),_0x509230=_0x5154e6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ad5ce,'data-suggestion':_0x39ac5c,'data-author-id':_0x35708e}),_0x2dbd1a=_0x5154e6['mapper']['toViewPosition'](_0xf7a20a);_0xd1e049&&_0x19c53c['activeMarkers']['includes'](_0x2fe5cc['markerName'])&&_0x5154e6['writer']['addClass']('ck-suggestion-marker--active',_0x509230),_0x5154e6['writer']['insert'](_0x2dbd1a,_0x509230),_0x5154e6['mapper']['bindElementToMarker'](_0x509230,_0x2fe5cc['markerName']);}_0x38bfed||_0x483ab9||!_0x1243e1||_0x137752(_0x1243e1);};}class z extends _0x465839{static get['requires'](){return[_0x2c2264];}['init'](){const _0x24a7d2=this['editor'],_0x3f1701=_0x24a7d2['plugins']['get']('TrackChangesEditing');_0x3f1701['enableCommand']('delete');const _0xb017a9=_0x24a7d2['commands']['get']('deleteForward');_0x3f1701['enableCommand']('deleteForward',(_0x397ea8,_0x3a233e={})=>{const _0x36f0b4=_0x24a7d2['model']['createSelection'](_0x24a7d2['model']['document']['selection']);_0x36f0b4['isCollapsed']&&_0x24a7d2['model']['modifySelection'](_0x36f0b4,{'direction':'forward','unit':_0x3a233e['unit']});const _0x45ab94=_0x36f0b4['getFirstRange'](),_0x60cea5=_0x1a5d6e['fromRange'](_0x45ab94);let _0x8e3e46;_0x397ea8(_0x3a233e),_0x8e3e46='$graveyard'==_0x60cea5['root']['rootName']?_0x24a7d2['model']['createRange'](_0x45ab94['start']):_0x24a7d2['model']['createRange'](_0x60cea5['start'],_0x60cea5['end']),_0x60cea5['detach'](),_0x24a7d2['model']['enqueueChange'](_0xb017a9['buffer']['batch'],_0x5050c4=>{_0xb017a9['buffer']['lock'](),_0x5050c4['setSelection'](_0x5050c4['createRange'](_0x8e3e46['end'])),_0xb017a9['buffer']['unlock']();});}),_0x24a7d2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x24a7d2,'merge'),{'priority':'high'}),_0x24a7d2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3466da,_0x23f9bc,_0x607ece)=>{_0x607ece['options']['showSuggestionHighlights']&&Fe(_0x24a7d2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3466da,_0x23f9bc,_0x607ece);},{'priority':'high'}),_0x24a7d2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5708b5,_0x4f5c83,_0x33fd40)=>{const _0x5235ca=_0x33fd40['mapper']['markerNameToElements'](_0x4f5c83['markerName']);if(_0x5235ca){for(const _0x3c2f53 of _0x5235ca)_0x3c2f53['is']('uiElement')&&(_0x33fd40['mapper']['unbindElementFromMarkerName'](_0x3c2f53,_0x4f5c83['markerName']),_0x33fd40['writer']['remove'](_0x3c2f53));}},{'priority':'high'});}}class W extends _0x465839{['afterInit'](){const _0x3a7c09=this['editor'];if(!_0x3a7c09['plugins']['has']('ListEditing'))return;const _0x209f27=_0x3a7c09['locale'],_0x5e9418=_0x3a7c09['plugins']['get']('TrackChangesEditing'),_0x44d36b=_0x3a7c09['plugins']['has']('TodoListEditing'),_0x249a0e=!!_0x3a7c09['config']['get']('list.multiBlock');function _0x440abd(_0x38fe98){return{'type':'format','content':''+c(_0x209f27,'*Set\x20format:*\x20%0',_0x38fe98)};}function _0x2d61c3(_0x557c00){return{'type':'format','content':''+c(_0x209f27,'*Remove\x20format:*\x20%0',_0x557c00)};}_0x5e9418['enableDefaultAttributesIntegration']('numberedList'),_0x5e9418['enableDefaultAttributesIntegration']('bulletedList'),_0x5e9418['enableDefaultAttributesIntegration']('customNumberedList'),_0x5e9418['enableDefaultAttributesIntegration']('customBulletedList'),_0x5e9418['enableDefaultAttributesIntegration']('indentList'),_0x5e9418['enableDefaultAttributesIntegration']('outdentList'),_0x5e9418['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5e9418['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5e9418['registerBlockAttribute']('listItemId'),_0x5e9418['registerBlockAttribute']('listType'),_0x5e9418['registerBlockAttribute']('listIndent'),_0x249a0e&&(_0x5e9418['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5e9418['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x44d36b&&(_0x5e9418['enableDefaultAttributesIntegration']('todoList'),_0x5e9418['enableDefaultAttributesIntegration']('checkTodoList'),_0x5e9418['registerBlockAttribute']('todoListChecked'),_0x5e9418['descriptionFactory']['registerDescriptionCallback'](_0x51a644=>{const {data:_0x4ede77}=_0x51a644;if(_0x4ede77&&'todoListChecked'==_0x4ede77['key'])return{'type':'format','content':_0x4ede77['newValue']?c(_0x209f27,'*Check\x20item*'):c(_0x209f27,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1a3686=>{if(_0x1a3686['batch']['isUndo'])return!0x1;let _0x42245c=!0x1;const _0x18f8b6=_0x5e9418['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21e88a=>'todoListChecked'===_0x5e9418['_getAttributeKey'](_0x21e88a));for(const _0x494732 of _0x18f8b6){'todo'!=_0x494732['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5e9418['_findSuggestions'](_0x494732['getFirstRange'](),'attribute')['find'](_0x476187=>'listType'===_0x5e9418['_getAttributeKey'](_0x476187['suggestion']))||(_0x1a3686['removeMarker'](_0x494732['getFirstMarker']()),_0x42245c=!0x0));}return _0x42245c;})),_0x5e9418['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x209f27,'FORMAT_INDENT'));const _0x2f6d49={'type':'format','content':''};_0x5e9418['descriptionFactory']['registerDescriptionCallback'](_0x1ff7a9=>{const {data:_0x44bff7}=_0x1ff7a9;if(!_0x44bff7||'listType'!=_0x44bff7['key'])return;let _0x430099=_0x1ff7a9['head'];for(;_0x430099;){if(_0x430099['data']&&(('listStyle'==_0x430099['data']['key']||'listMarkerStyle'==_0x430099['data']['key'])&&(_0x430099['data']['newValue']&&'default'!=_0x430099['data']['newValue']||'default'!=_0x430099['data']['oldValue']&&!_0x44bff7['newValue'])||!_0x249a0e&&_0x430099['data']['key']==u))return _0x2f6d49;_0x430099=_0x430099['next'];}if(null==_0x44bff7['newValue'])switch(_0x44bff7['oldValue']){case'bulleted':return _0x2d61c3(c(_0x209f27,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d61c3(c(_0x209f27,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d61c3(c(_0x209f27,'ELEMENT_TODO_LIST'));}switch(_0x44bff7['newValue']){case'bulleted':return _0x440abd(c(_0x209f27,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x440abd(c(_0x209f27,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x440abd(c(_0x209f27,'ELEMENT_TODO_LIST'));}}),_0x5e9418['descriptionFactory']['registerDescriptionCallback'](_0x56bc54=>{const {data:_0x44d916}=_0x56bc54;if(_0x44d916&&'listIndent'==_0x44d916['key'])return null==_0x44d916['newValue']||null==_0x44d916['oldValue']&&0x0==_0x44d916['newValue']?_0x2f6d49:void 0x0;}),_0x5e9418['descriptionFactory']['registerDescriptionCallback'](_0xd31510=>{if('attribute'!=_0xd31510['type'])return;const {data:_0xbbfb73}=_0xd31510;if(!_0xbbfb73||'listItemId'!=_0xbbfb73['key'])return;const _0x2e4521=Te(_0xd31510);return'newValue'==_0x2e4521?{'type':'format','content':c(_0x209f27,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2e4521?{'type':'format','content':c(_0x209f27,'*Split:*\x20list\x20item')}:_0x2f6d49;}),_0x3a7c09['model']['document']['registerPostFixer'](_0x4d9fbb=>this['listItemIdFixer'](_0x4d9fbb)),_0x3a7c09['model']['document']['registerPostFixer'](_0x6a9947=>this['noTrackChangesFixer'](_0x6a9947)),_0x3a7c09['model']['document']['on']('change:data',(_0x2e8330,_0x1a4c14)=>{if(_0x1a4c14['isUndo']||!_0x1a4c14['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5b8c8e){if(_0x5b8c8e['batch']['isUndo']||!_0x5b8c8e['batch']['isLocal'])return!0x1;let _0x31ab72=!0x1;const _0x12208f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcce8d0=>_0xcce8d0['data']&&'listItemId'==_0xcce8d0['data']['key'])['filter'](_0x565c2a=>_0x565c2a['data']['newValue']&&_0x565c2a['data']['oldValue']);for(const _0x4492f9 of _0x12208f)Te(_0x4492f9)||(_0x5b8c8e['removeMarker'](_0x4492f9['getFirstMarker']()),_0x31ab72=!0x0);return _0x31ab72;}['noTrackChangesFixer'](_0x484524){if(_0x484524['batch']['isUndo']||!_0x484524['batch']['isLocal'])return!0x1;const _0x17c253=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x17c253['trackChangesCommand']['value'])return!0x1;let _0x474b71=!0x1;const _0x467897=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5b39bb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x421b35=>'attribute'==_0x421b35['type'])['filter'](_0x2586f4=>_0x467897['includes'](_0x2586f4['attributeKey']));if(0x0==_0x5b39bb['length'])return _0x474b71;for(const _0x1319cc of _0x5b39bb){const _0x17636c=_0x17c253['_findSuggestions'](_0x1319cc['range'],'attribute')['filter'](_0x65d250=>!_0x65d250['meta']['isNextTo'])['map'](_0x339567=>_0x339567['suggestion'])['filter'](_0x553ea0=>{const _0x4092e2=_0x17c253['_getAttributeKey'](_0x553ea0);return _0x467897['includes'](_0x4092e2);});if(_0x17636c['length']){for(const _0x10d376 of _0x17636c)_0x484524['removeMarker'](_0x10d376['getFirstMarker']());_0x474b71=!0x0;}}return _0x474b71;}['assureChains'](){const _0x4d019a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11e9ab=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x846fd4;const _0x4bdbeb=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x348d1c=>{if(_0x348d1c['data']['oldRange']||!_0x348d1c['data']['newRange'])return null;if(!_0x348d1c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x147b6e}=_0x4d019a['_splitMarkerName'](_0x348d1c['name']);if(!_0x4d019a['hasSuggestion'](_0x147b6e))return null;const _0x258dc3=_0x4d019a['getSuggestion'](_0x147b6e);return _0x11e9ab['includes'](_0x258dc3['data']['key']);})['map'](_0x5341c0=>{const {id:_0x2a4f33}=_0x4d019a['_splitMarkerName'](_0x5341c0['name']),_0x5009cf=_0x4d019a['getSuggestion'](_0x2a4f33);return _0x846fd4=_0x5009cf['attributes']['groupId'],_0x5009cf['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4bdbeb['size'])return;const _0x2a4287=_0x4d019a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5da5a2=>'attribute'==_0x5da5a2['type']&&_0x5da5a2['data']&&_0x11e9ab['includes'](_0x5da5a2['data']['key'])&&_0x5da5a2['attributes']['groupId']!=_0x846fd4)['map'](_0x505f39=>({'listItem':_0x505f39['getFirstRange']()['start']['nodeAfter'],'groupId':_0x505f39['attributes']['groupId']})),_0x9bbf7=new Set();for(const {groupId:_0x2cd04b,listItem:_0x7f0cee}of _0x2a4287)_0x4bdbeb['has'](_0x7f0cee)&&_0x9bbf7['add'](_0x2cd04b);for(const _0x3fc45b of _0x4d019a['getSuggestions']())_0x9bbf7['has'](_0x3fc45b['attributes']['groupId'])&&_0x3fc45b['setAttribute']('groupId',_0x846fd4);}['_supportLegacySuggestions'](){const _0x1a4eb7=this['editor'],_0xc1e60d=_0x1a4eb7['locale'],_0x2d0469=_0x1a4eb7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2d0469['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x234818,_0x7d76c1){const _0x4d9814=[];for(let _0x37b1bf of _0x234818)_0x37b1bf['start']['nodeAfter']===_0x37b1bf['end']['parent']&&(_0x37b1bf=_0x1a4eb7['model']['createRange'](_0x1a4eb7['model']['createPositionAt'](_0x37b1bf['start']['nodeAfter'],0x0))),_0x4d9814['push'](_0x37b1bf);_0x1a4eb7['model']['change'](_0x1599ba=>{const _0x7f278b=_0x1a4eb7['model']['document']['selection'],_0x55ee08=Array['from'](_0x7f278b['getRanges']())['map'](_0x521055=>_0x1a5d6e['fromRange'](_0x521055));_0x1599ba['setSelection'](_0x4d9814),_0x1a4eb7['commands']['get'](_0x7d76c1['commandName'])['refresh'](),_0x7d76c1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1a4eb7['execute'](_0x7d76c1['commandName'],..._0x7d76c1['commandParams']),_0x1599ba['setSelection'](_0x55ee08);for(const _0x499826 of _0x55ee08)_0x499826['detach']();});}),_0x2d0469['descriptionFactory']['registerElementLabel'](function(_0x136425){const _0x2d1e90=!_0x1a4eb7['model']['schema']['isObject'](_0x136425),_0x5cdf4d=_0x136425['previousSibling'],_0xae580c=_0x136425['nextSibling'],_0x1426b6=_0x136425['getAttribute']('listItemId'),_0x137942=!_0x5cdf4d||_0x5cdf4d['getAttribute']('listItemId')!==_0x1426b6,_0x33f9ea=!_0xae580c||_0xae580c['getAttribute']('listItemId')!==_0x1426b6;return _0x2d1e90&&Boolean(_0x1426b6)&&_0x137942&&_0x33f9ea;},_0x4157c0=>c(_0xc1e60d,'ELEMENT_LIST_ITEM',_0x4157c0));}['_registerLegacyDescription'](){const _0x35e321=this['editor'],_0x1925dd=_0x35e321['locale'];function _0x259af4(_0x562916){const _0x26aefd=_0x35e321['commands']['get']('bulletedList')['value'],_0x7adccf=_0x35e321['commands']['get']('numberedList')['value'];return'numberedList'===_0x562916?_0x26aefd:_0x7adccf;}_0x35e321['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4877e8){if('formatBlock'!=_0x4877e8['type'])return;const {data:_0x5532f5}=_0x4877e8;if(!_0x5532f5)return;let _0x27d255,_0x4850f6,_0x4a1cf4,_0x52604a;switch(_0x5532f5['commandName']){case'bulletedList':_0x4a1cf4=_0x5532f5['commandParams'][0x0]['forceValue'],_0x52604a=_0x259af4(_0x5532f5['commandName']),_0x27d255=_0x4a1cf4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x52604a&&_0x35e321['config']['get']('list.multiBlock')||(_0x27d255='*Change\x20to:*\x20%0'),_0x4850f6={'type':'format','content':c(_0x1925dd,_0x27d255,c(_0x1925dd,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4a1cf4=_0x5532f5['commandParams'][0x0]['forceValue'],_0x52604a=_0x259af4(_0x5532f5['commandName']),_0x27d255=_0x4a1cf4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x52604a&&_0x35e321['config']['get']('list.multiBlock')||(_0x27d255='*Change\x20to:*\x20%0'),_0x4850f6={'type':'format','content':c(_0x1925dd,_0x27d255,c(_0x1925dd,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x27d255='*Indent:*\x20%0',_0x4850f6={'type':'format','content':c(_0x1925dd,_0x27d255,c(_0x1925dd,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x27d255=function(_0x4a0f47){const _0x150620=_0x4a0f47['getFirstRange']();let _0x4c1da0=_0x150620['start']['nodeAfter'];for(;_0x4c1da0&&_0x150620['containsItem'](_0x4c1da0);){if(_0x4c1da0['getAttribute']('listIndent')>0x0)return!0x1;_0x4c1da0=_0x4c1da0['nextSibling'];}return!0x0;}(_0x4877e8)?c(_0x1925dd,'*Format:*\x20remove\x20from\x20%0',c(_0x1925dd,function(_0x34bc58){return'ELEMENT_'+_0x34bc58['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4877e8))):c(_0x1925dd,'*Outdent:*\x20%0',c(_0x1925dd,'ELEMENT_LIST_ITEM')),_0x4850f6={'type':'format','content':_0x27d255};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5532f5['multipleBlocks']&&(_0x27d255='*Merge:*\x20%0',_0x4850f6={'type':'deletion','content':c(_0x1925dd,_0x27d255,c(_0x1925dd,'ELEMENT_LIST_ITEM'))});}return _0x4850f6;});}}function Te(_0x460dfb){let _0x2a4172=_0x460dfb['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2a4172;){const _0x3466d2=_0x2a4172['getAttribute']('listItemId');if(!_0x3466d2)return!0x1;if(_0x3466d2==_0x460dfb['data']['newValue'])return'newValue';if(_0x3466d2==_0x460dfb['data']['oldValue'])return'oldValue';_0x2a4172=_0x2a4172['previousSibling'];}return!0x1;}class Se extends _0x465839{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x197850=this['editor']['config']['get']('list.properties'),_0x144a00=this['editor']['plugins']['get']('TrackChangesEditing');_0x197850['styles']&&(_0x144a00['enableDefaultAttributesIntegration']('listStyle'),_0x144a00['registerBlockAttribute']('listStyle')),_0x197850['reversed']&&(_0x144a00['enableDefaultAttributesIntegration']('listReversed'),_0x144a00['registerBlockAttribute']('listReversed')),_0x197850['startIndex']&&(_0x144a00['enableDefaultAttributesIntegration']('listStart'),_0x144a00['registerBlockAttribute']('listStart'));const _0x223ddf={'type':'format','content':''};_0x144a00['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x56aa2a=this['editor']['locale'];_0x144a00['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x56aa2a,'FORMAT_LIST_REVERSED')),_0x144a00['descriptionFactory']['registerDescriptionCallback'](_0x595384=>{const {data:_0xc3907f}=_0x595384;if(_0xc3907f&&'listReversed'==_0xc3907f['key'])return null==_0xc3907f['newValue']||0x0==_0xc3907f['newValue']&&null==_0xc3907f['oldValue']?_0x223ddf:void 0x0;}),_0x144a00['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x56aa2a,'FORMAT_LIST_START')),_0x144a00['descriptionFactory']['registerDescriptionCallback'](_0x403daf=>{const {data:_0x42b3ea}=_0x403daf;if(_0x42b3ea&&'listStart'==_0x42b3ea['key'])return null==_0x42b3ea['newValue']||0x1==_0x42b3ea['newValue']&&null==_0x42b3ea['oldValue']?_0x223ddf:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4e7201=>{if(_0x4e7201['batch']['isUndo'])return!0x1;let _0x402bf6=!0x1;const _0x124ff5=_0x144a00['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bbdb0=>{const _0x254e15=_0x144a00['_getAttributeKey'](_0x1bbdb0);return'listStart'==_0x254e15||'listReversed'==_0x254e15;});for(const _0x293f0b of _0x124ff5){const _0x101c16=_0x293f0b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x101c16||'customNumbered'==_0x101c16)continue;_0x144a00['_findSuggestions'](_0x293f0b['getFirstRange'](),'attribute')['find'](_0x48e94d=>'listType'==_0x144a00['_getAttributeKey'](_0x48e94d['suggestion']))||(_0x4e7201['removeMarker'](_0x293f0b['getFirstMarker']()),_0x402bf6=!0x0);}return _0x402bf6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x7587b8){const _0x43db68=this['editor']['locale'],{data:_0x4443e7}=_0x7587b8,_0x373814={'type':'format','content':''};if(!_0x4443e7||'listStyle'!=_0x4443e7['key'])return;if(!_0x4443e7['oldValue'])return'default'==_0x4443e7['newValue']?_0x373814:{'type':'format','content':''+c(_0x43db68,'*Set\x20format:*\x20%0',c(_0x43db68,this['_getTranslationKeyForListStyle'](_0x4443e7['newValue'])))};if(!_0x4443e7['newValue']){if('default'==_0x4443e7['oldValue'])return _0x373814;let _0x571a7e=_0x7587b8['head'];for(;_0x571a7e;){if(_0x571a7e['data']&&'listType'==_0x571a7e['data']['key']&&_0x571a7e['data']['newValue'])return _0x373814;_0x571a7e=_0x571a7e['next'];}return{'type':'format','content':''+c(_0x43db68,'*Remove\x20format:*\x20%0',c(_0x43db68,this['_getTranslationKeyForListStyle'](_0x4443e7['oldValue'])))};}if('default'!=_0x4443e7['newValue'])return{'type':'format','content':''+c(_0x43db68,'*Set\x20format:*\x20%0',c(_0x43db68,this['_getTranslationKeyForListStyle'](_0x4443e7['newValue'])))};let _0x181944=_0x7587b8['head'];for(;_0x181944;){if(_0x181944['data']&&'listType'==_0x181944['data']['key']&&_0x181944['data']['newValue']&&_0x181944['data']['oldValue'])return _0x373814;_0x181944=_0x181944['next'];}return{'type':'format','content':c(_0x43db68,'*Set\x20format:*\x20%0',c(_0x43db68,'ELEMENT_'+_0x7587b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x687b7=this['editor'],_0x129348=_0x687b7['locale'];_0x687b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd4ccbb=>{if('formatBlock'!=_0xd4ccbb['type'])return;const {data:_0x250944}=_0xd4ccbb;if(!_0x250944)return;let _0x53c4fe,_0x254d69;switch(_0x250944['commandName']){case'listStyle':_0x53c4fe='*Change\x20to:*\x20%0',_0x254d69={'type':'format','content':c(_0x129348,_0x53c4fe,c(_0x129348,this['_getTranslationKeyForListStyle'](_0x250944['commandParams'][0x0]['type'])))};break;case'listReversed':_0x53c4fe=_0x250944['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x254d69={'type':'format','content':c(_0x129348,_0x53c4fe)};break;case'listStart':_0x53c4fe='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x254d69={'type':'format','content':c(_0x129348,_0x53c4fe,_0x250944['commandParams'][0x0]['startIndex'])};}return _0x254d69;});}['_getTranslationKeyForListStyle'](_0x4986ab){return'ELEMENT_'+function(_0x3a34f7){if(_e['includes'](_0x3a34f7))return'bulleted';if(Re['includes'](_0x3a34f7))return'numbered';return null;}(_0x4986ab)['toUpperCase']()+'_LIST_'+_0x4986ab['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x465839{['afterInit'](){const _0x390217=this['editor'];_0x390217['commands']['get']('emoji')&&_0x390217['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x465839{static get['requires'](){return[_0xb6d27e];}['init'](){const _0x5c0c3b=this['editor'],_0x2e91ba=_0x5c0c3b['plugins']['get']('TrackChangesEditing'),_0x1d663b=_0x5c0c3b['commands']['get']('enter');_0x2e91ba['enableCommand']('enter',()=>{_0x5c0c3b['model']['change'](_0xa800ce=>{const _0x19c39d=_0x5c0c3b['model']['document']['selection'],_0x35d313=_0x19c39d['getFirstPosition'](),_0x2f4afc=_0x1a5d6e['fromRange'](_0x19c39d['getFirstRange']());if(_0x1d663b['enterBlock'](_0xa800ce)){const _0x29d093=_0x5c0c3b['model']['createPositionAt'](_0x35d313['parent']['nextSibling'],0x0),_0x22d734=_0xa800ce['createRange'](_0x35d313,_0x29d093);_0x2e91ba['markInsertion'](_0x22d734);}else _0xa800ce['setSelection'](_0xa800ce['createRange'](_0x2f4afc['end']));_0x2f4afc['detach'](),_0x1d663b['fire']('afterExecute',{'writer':_0xa800ce});});}),_0x5c0c3b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x5c0c3b,'split'),{'priority':'high'}),_0x5c0c3b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x399548,_0x59c8bc,_0xf6a2cb)=>{const _0x263089=_0xf6a2cb['mapper']['markerNameToElements'](_0x59c8bc['markerName']);if(_0x263089){for(const _0x319a2e of _0x263089)_0x319a2e['hasClass']('ck-suggestion-marker-split')&&(_0xf6a2cb['mapper']['unbindElementFromMarkerName'](_0x319a2e,_0x59c8bc['markerName']),_0xf6a2cb['writer']['remove'](_0x319a2e));}},{'priority':'high'}),_0x5c0c3b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1d063f,_0x1cc7f0,_0xb3e90b)=>{_0xb3e90b['options']['showSuggestionHighlights']&&Fe(_0x5c0c3b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1d063f,_0x1cc7f0,_0xb3e90b);},{'priority':'high'});}}class Z extends _0x465839{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x443ab5=this['editor']['plugins']['get']('TrackChangesEditing');_0x443ab5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x443ab5['enableCommand']('findNext'),_0x443ab5['enableCommand']('findPrevious'),_0x443ab5['enableCommand']('replace'),_0x443ab5['enableCommand']('replaceAll');}['handleFindCommand'](_0x5c7336,_0x136c63,_0x44b05d={}){const _0xdf0844=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5c7336(_0x31494e=>{let _0x111e48=('string'==typeof _0x136c63?_0xdf0844['findByTextCallback'](_0x136c63,_0x44b05d):_0x136c63)(_0x31494e);Array['isArray'](_0x111e48)&&(_0x111e48={'results':_0x111e48,'searchText':'string'==typeof _0x136c63?_0x136c63:''});const _0x22c8a8=_0x111e48['results']['filter'](_0x561dd7=>!0x1===this['_isInDeletionRange'](_0x561dd7,_0x31494e['item']));return{..._0x111e48,'results':_0x22c8a8};},_0x44b05d);}['_isInDeletionRange'](_0x1ccab0,_0xb84999){const _0x2a112a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb84999,_0x1ccab0['start']),this['editor']['model']['createPositionAt'](_0xb84999,_0x1ccab0['end']));for(const _0x47a877 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2a112a['getIntersection'](_0x47a877['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x465839{['afterInit'](){const _0x2bebca=this['editor']['locale'],_0x3ac713=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x420d40,commandName:_0x4e3556}of ro)this['editor']['plugins']['has'](_0x420d40)&&(_0x3ac713['enableDefaultAttributesIntegration'](_0x4e3556),_0x3ac713['registerInlineAttribute'](_0x4e3556));_0x3ac713['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x2bebca,'FORMAT_FONT_SIZE')),_0x3ac713['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x2bebca,'FORMAT_FONT_FAMILY')),_0x3ac713['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x2bebca,'FORMAT_FONT_COLOR')),_0x3ac713['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x2bebca,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50d241=this['editor'],_0x16bd29=_0x50d241['locale'];_0x50d241['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f50ac=>{const _0x30700b=_0x16bd29['t'];if('formatInline'!=_0x1f50ac['type'])return;const {data:_0x41c118}=_0x1f50ac;if(null!=_0x41c118){if('fontSize'==_0x41c118['commandName']){const _0x3aac17=_0x41c118['commandParams'][0x0]['value'];if(_0x3aac17){const _0x4f058f=_0x30700b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1d8e8a=>_0x1d8e8a['model']==_0x3aac17)['title'])['toLowerCase']();return{'type':'format','content':c(_0x16bd29,'*Set\x20font\x20size:*\x20%0',_0x4f058f)};}return{'type':'format','content':c(_0x16bd29,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x41c118['commandName']){const _0xa8c945=_0x41c118['commandParams'][0x0]['value'];return _0xa8c945?{'type':'format','content':c(_0x16bd29,'*Set\x20font\x20family:*\x20%0',_0xa8c945)}:{'type':'format','content':c(_0x16bd29,'*Reset\x20font\x20family*')};}if('fontColor'==_0x41c118['commandName']){const _0x5e586c=_0x41c118['commandParams'][0x0]['value'];if(_0x5e586c){const _0xa701c5=_0x4f5407(this['editor']['config']['get']('fontColor.colors'))['find'](_0xd0856a=>_0xd0856a['model']==_0x5e586c);let _0x6e4b69=_0x5e586c,_0x56007b='';return _0xa701c5&&(_0x6e4b69=_0xa701c5['label'],_0x56007b=_0x30700b(_0x6e4b69)['toLowerCase']()),{'type':'format','content':c(_0x16bd29,'*Set\x20font\x20color:*\x20%0',_0x56007b)['trim'](),'color':{'value':_0x5e586c,'title':_0x56007b||_0x6e4b69}};}return{'type':'format','content':c(_0x16bd29,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x41c118['commandName']){const _0x165aa8=_0x41c118['commandParams'][0x0]['value'];if(_0x165aa8){const _0x1f8ab0=_0x4f5407(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x46610e=>_0x46610e['model']==_0x165aa8);let _0x468fda=_0x165aa8,_0x278caa='';return _0x1f8ab0&&(_0x468fda=_0x1f8ab0['label'],_0x278caa=_0x30700b(_0x468fda)['toLowerCase']()),{'type':'format','content':c(_0x16bd29,'*Set\x20font\x20background\x20color:*\x20%0',_0x278caa)['trim'](),'color':{'value':_0x165aa8,'title':_0x278caa||_0x468fda}};}return{'type':'format','content':c(_0x16bd29,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x465839{['afterInit'](){const _0x449d4e=this['editor'],_0x42b9b0=_0x449d4e['plugins']['get']('TrackChangesEditing'),_0x91a197=_0x449d4e['commands']['get']('copyFormat'),_0x59b78d=_0x449d4e['commands']['get']('pasteFormat');_0x91a197&&_0x59b78d&&(_0x42b9b0['enableDefaultAttributesIntegration']('pasteFormat'),_0x42b9b0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x32a80b=this['editor'],_0x172ee1=_0x32a80b['locale'];_0x32a80b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53f68f=>{if('formatBlock'!=_0x53f68f['type']&&'formatInline'!=_0x53f68f['type'])return;const {data:_0x46f018}=_0x53f68f;if(_0x46f018&&'pasteFormat'===_0x46f018['commandName']){const _0x4dac91=[],_0x2da422=_0x46f018['commandParams'][0x0];for(const [_0x278fa7,_0x53e569]of Object['entries'](_0x2da422))_0x4dac91['push'](so(_0x32a80b,_0x278fa7,_0x53e569));return _0x4dac91['length']?{'type':'format','content':c(_0x172ee1,'*Set\x20format\x20to:*\x20%0',_0x4dac91['join'](',\x20'))}:{'type':'format','content':c(_0x172ee1,'*Remove\x20all\x20formatting*')};}});}}function so(_0x36a13a,_0x178a13,_0x44330c){const _0x2a0655=_0x36a13a['locale']['t'],_0xe55208=_0x178a13['split'](/(?=[A-Z])/)['join']('\x20'),_0x4427ea=_0x2a0655(_0xe55208['charAt'](0x0)['toUpperCase']()+_0xe55208['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x44330c)return _0x4427ea;if('fontColor'===_0x178a13||'fontBackgroundColor'===_0x178a13){const _0xe50567=_0x4f5407(_0x36a13a['config']['get']('fontColor.colors'))['find'](_0x29acaf=>_0x29acaf['model']==_0x44330c);return _0x4427ea+'\x20('+(_0xe50567?_0x2a0655(_0xe50567['label'])['toLowerCase']():_0x44330c)+')';}if('fontSize'===_0x178a13&&isNaN(parseFloat(_0x44330c))){const _0xf7aba5=_0x36a13a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x36a13a['config']['get']('fontSize.options'))['find'](_0x1afbae=>_0x1afbae['model']==_0x44330c);return _0x4427ea+'\x20('+(_0xf7aba5?_0x2a0655(_0xf7aba5['title'])['toLowerCase']():_0x44330c)+')';}return _0x4427ea+'\x20('+_0x44330c+')';}class et extends _0x465839{['_headingOptions'];['afterInit'](){const _0x3153eb=this['editor'];if(!_0x3153eb['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3153eb['config']['get']('heading.options');const _0x2e07a0=_0x3153eb['locale'],_0x27dc81=_0x3153eb['plugins']['get']('TrackChangesEditing');_0x27dc81['enableDefaultAttributesIntegration']('heading');for(const _0x39109e of this['_headingOptions'])'paragraph'!=_0x39109e['model']&&_0x27dc81['descriptionFactory']['registerElementLabel'](_0x39109e['model'],_0x307aab=>{const _0x2e8d48=this['_getHeadingLevel'](_0x39109e['model']);return null!==_0x2e8d48?_0x583e5a(_0x307aab,_0x2e8d48):_0x545e38(_0x307aab,_0x39109e['title']);});function _0x583e5a(_0x55f90f,_0x210868){return c(_0x2e07a0,'ELEMENT_HEADING',[_0x55f90f,_0x210868]);}function _0x545e38(_0x32c56e,_0x17217d){return c(_0x2e07a0,'ELEMENT_HEADING_CUSTOM',[_0x32c56e,_0x17217d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1277a9=this['editor'],_0x53f470=_0x1277a9['locale'];function _0x5a4bef(_0x47ac59,_0x26174c){return c(_0x53f470,'ELEMENT_HEADING_CUSTOM',[_0x47ac59,_0x26174c]);}_0x1277a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58faee=>{if('formatBlock'!=_0x58faee['type'])return;const {data:_0x4f3e2b}=_0x58faee;if(_0x4f3e2b&&'heading'==_0x4f3e2b['commandName']){const _0x1fdb38=_0x4f3e2b['commandParams'][0x0]['value'],_0x5f2d66=this['_getHeadingLevel'](_0x1fdb38);if(null!==_0x5f2d66)return{'type':'format','content':c(_0x53f470,'*Change\x20to:*\x20%0',(_0x288dd5=0x1,_0xdfec24=_0x5f2d66,c(_0x53f470,'ELEMENT_HEADING',[_0x288dd5,_0xdfec24])))};const _0x5cb940=this['_headingOptions']['find'](_0x4d448c=>_0x4d448c['model']===_0x1fdb38)['title'];return{'type':'format','content':c(_0x53f470,'*Change\x20to:*\x20%0',_0x5a4bef(0x1,_0x5cb940))};}var _0x288dd5,_0xdfec24;});}['_getHeadingLevel'](_0xc1fcda){const _0x45fe3c=_0xc1fcda['match'](/^heading(\d+)/);if(_0x45fe3c)return _0x45fe3c[0x1];const _0x567ffd=this['_headingOptions']?.['find'](_0x2a3250=>_0x2a3250['model']==_0xc1fcda);if(_0x567ffd&&_0x567ffd['view']){const _0x7074e2=_0x567ffd['view'],_0x2ed15e=(_0x7074e2['name']??_0x7074e2)['match'](/^h(\d+)/);if(_0x2ed15e)return _0x2ed15e[0x1];}return null;}}class nt extends _0x465839{['afterInit'](){const _0x19579b=this['editor'];if(!_0x19579b['plugins']['has']('HighlightEditing'))return;const _0xcc7141=_0x19579b['plugins']['get']('TrackChangesEditing'),_0x1b690e=_0x19579b['locale'];_0xcc7141['enableDefaultAttributesIntegration']('highlight'),_0xcc7141['registerInlineAttribute']('highlight'),_0xcc7141['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1b690e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50bfa7=this['editor'],_0x2badc4=_0x50bfa7['locale'];_0x50bfa7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54e095=>{if('formatInline'!=_0x54e095['type'])return;const {data:_0x41073e}=_0x54e095;if(_0x41073e&&'highlight'==_0x41073e['commandName']){const _0x365405=_0x2badc4['t'],_0x497916=_0x41073e['commandParams'][0x0]['value'];if(_0x497916){const _0x4807b4=_0x50bfa7['config']['get']('highlight.options')['find'](_0x25d584=>_0x25d584['model']==_0x497916),_0x117c01=_0x365405(_0x4807b4['title'])['toLowerCase']();return{'type':'format','content':c(_0x2badc4,'*Set\x20highlight:*\x20%0',_0x117c01),'color':{'value':_0x4807b4['color'],'title':_0x4807b4['title']}};}return{'type':'format','content':c(_0x2badc4,'*Remove\x20highlight*',c(_0x2badc4,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x465839{['afterInit'](){const _0x5343f9=this['editor'];if(!_0x5343f9['plugins']['has']('HorizontalLineEditing'))return;_0x5343f9['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x16826e=_0x5343f9['plugins']['get']('TrackChangesEditing'),_0x29f816=_0x5343f9['locale'];_0x16826e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1cbf7d=>c(_0x29f816,'ELEMENT_HORIZONTAL_LINE',_0x1cbf7d)),_0x5343f9['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4e8814,{writer:_0x56a345,options:_0x33bb34})=>{if(!_0x33bb34['showSuggestionHighlights'])return null;const _0x5d4288=_0x56a345['createContainerElement']('div'),_0x4cc7b4=_0x56a345['createEmptyElement']('hr');return _0x56a345['addClass']('ck-horizontal-line',_0x5d4288),_0x56a345['insert'](_0x56a345['createPositionAt'](_0x5d4288,0x0),_0x4cc7b4),_0x5d4288;},'converterPriority':'high'});}}class ot extends _0x465839{['afterInit'](){const _0x3d1053=this['editor'];if(!_0x3d1053['plugins']['has']('HtmlEmbed'))return;const _0x19722d=_0x3d1053['plugins']['get']('TrackChangesEditing'),_0x2a02b4=_0x3d1053['locale'];_0x19722d['descriptionFactory']['registerElementLabel']('rawHtml',_0x21e6e1=>c(_0x2a02b4,'ELEMENT_HTML_EMBED',_0x21e6e1)),_0x19722d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x19722d['registerBlockAttribute']('value'),_0x19722d['descriptionFactory']['registerDescriptionCallback'](_0x256bfc=>{if('attribute'!=_0x256bfc['type'])return;const {data:_0x849c18}=_0x256bfc;if(_0x849c18&&'value'==_0x849c18['key']&&_0x256bfc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xff6e55=c(_0x2a02b4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2a02b4,'*Change\x20%0\x20content*',_0xff6e55)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x119869=this['editor'],_0x48f3b0=_0x119869['locale'];_0x119869['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x202dcf=>{if('formatBlock'!=_0x202dcf['type'])return;const {data:_0x4f428b}=_0x202dcf;if(_0x4f428b&&'htmlEmbed'==_0x4f428b['commandName']){const _0xed6613=c(_0x48f3b0,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x48f3b0,'*Change\x20%0\x20content*',_0xed6613)};}});}}class rt extends _0x465839{['afterInit'](){const _0x5913fd=this['editor'];if(!_0x5913fd['plugins']['has']('ImageEditing'))return;const _0x3932f5=_0x5913fd['plugins']['get']('TrackChangesEditing'),_0x38d1b4=_0x5913fd['plugins']['get']('ImageUtils'),_0x5394a7=_0x5913fd['locale'];_0x3932f5['enableCommand']('insertImage'),_0x3932f5['descriptionFactory']['registerElementLabel']('imageBlock',_0xe65402=>c(_0x5394a7,'ELEMENT_IMAGE',_0xe65402)),_0x3932f5['descriptionFactory']['registerElementLabel']('imageInline',_0x59d319=>c(_0x5394a7,'ELEMENT_INLINE_IMAGE',_0x59d319)),_0x3932f5['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x5394a7,'ELEMENT_CAPTION')),_0x5913fd['plugins']['has']('ImageUploadEditing')&&_0x3932f5['enableCommand']('uploadImage'),_0x5913fd['plugins']['has']('ImageBlockEditing')&&_0x5913fd['plugins']['has']('ImageInlineEditing')&&(_0x3932f5['enableCommand']('imageTypeInline',(_0x417710,_0x207c29)=>{const _0x2393cb=_0x38d1b4['getClosestSelectedImageElement'](_0x5913fd['model']['document']['selection']);_0x5913fd['model']['change'](()=>{_0x3932f5['markBlockFormat'](_0x2393cb,{'commandName':'imageTypeInline','commandParams':[_0x207c29]},[],'convertBlockImageToInline');});}),_0x3932f5['enableCommand']('imageTypeBlock',(_0x24401e,_0x450510)=>{_0x5913fd['model']['change'](_0x5c99b0=>{let _0x158161=_0x38d1b4['getClosestSelectedImageElement'](_0x5913fd['model']['document']['selection']),_0x4b9b75=_0x5c99b0['createRangeOn'](_0x158161);const _0x28f3ed=_0x1ff9a7['fromPosition'](_0x4b9b75['start'],'toPrevious'),_0x5b3b27=_0x1ff9a7['fromPosition'](_0x4b9b75['end'],'toNext');_0x3932f5['forceDefaultExecution'](()=>_0x24401e(_0x450510)),_0x158161=_0x38d1b4['getClosestSelectedImageElement'](_0x5913fd['model']['document']['selection']),_0x4b9b75=_0x5c99b0['createRangeOn'](_0x158161);const _0x31428e=_0x5c99b0['createRange'](_0x28f3ed,_0x5b3b27);_0x28f3ed['detach'](),_0x5b3b27['detach'](),_0x3932f5['markBlockFormat'](_0x158161,{'commandName':'imageTypeInline','commandParams':[_0x450510]},[],'convertInlineImageToBlock'),_0x31428e['start']['isBefore'](_0x4b9b75['start'])&&_0x3932f5['markInsertion'](_0x5c99b0['createRange'](_0x31428e['start'],_0x4b9b75['start']),'convertInlineImageToBlock'),_0x4b9b75['end']['isBefore'](_0x31428e['end'])&&_0x3932f5['markInsertion'](_0x5c99b0['createRange'](_0x4b9b75['end'],_0x31428e['end']),'convertInlineImageToBlock');});}),_0x3932f5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3932f5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3932f5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3932f5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3932f5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3932f5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x515bba])=>{const _0x3a0767=_0x3932f5['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x91e7cb=_0x515bba['start'],_0x375a4b=_0x515bba['end'];const _0x5e038a=_0x5913fd['model']['schema']['getNearestSelectionRange'](_0x91e7cb,'backward'),_0x197807=_0x5913fd['model']['schema']['getNearestSelectionRange'](_0x375a4b,'forward');_0x5e038a['isCollapsed']&&(_0x91e7cb=_0x5e038a['start']),_0x197807['isCollapsed']&&(_0x375a4b=_0x197807['end']),_0x3a0767([_0x5913fd['model']['createRange'](_0x91e7cb,_0x375a4b)]);}),_0x3932f5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x38a680),_0x3932f5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x38a680)),_0x5913fd['plugins']['has']('ImageCaptionEditing')&&(_0x3932f5['enableCommand']('toggleImageCaption',(_0x5a8ad6,_0x16c63c)=>{const _0x3090fe=_0x5913fd['plugins']['get']('ImageCaptionUtils');let _0x1a4cca=_0x38d1b4['getClosestSelectedImageElement'](_0x5913fd['model']['document']['selection']),_0x3c5bb9=_0x3090fe['getCaptionFromImageModelElement'](_0x1a4cca);_0x5913fd['model']['change'](()=>{if(_0x3c5bb9)return void _0x3932f5['markDeletion'](_0x5913fd['model']['createRangeOn'](_0x3c5bb9));const _0x2c4498=_0x38d1b4['isBlockImage'](_0x1a4cca);_0x5a8ad6(_0x16c63c),_0x1a4cca=_0x38d1b4['getClosestSelectedImageElement'](_0x5913fd['model']['document']['selection']),_0x3c5bb9=_0x3090fe['getCaptionFromImageModelElement'](_0x1a4cca),_0x3932f5['markInsertion'](_0x5913fd['model']['createRangeOn'](_0x3c5bb9),_0x2c4498?null:'imageCaption');});}),_0x3932f5['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x38a680));const _0x39eec0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xba46eb(_0x1a001e,_0xa4b826){const _0x59b772=_0x39eec0['findIndex'](({type:_0x2919aa,subType:_0x14fcba})=>_0x1a001e['type']==_0x2919aa&&_0x1a001e['subType']==_0x14fcba),_0x489f10=_0x39eec0['findIndex'](({type:_0x8671ac,subType:_0x4dd142})=>_0xa4b826['type']==_0x8671ac&&_0xa4b826['subType']==_0x4dd142);if(_0x59b772<0x0||_0x489f10<0x0)return!0x1;const _0x1de1e4=_0x1a001e['getFirstRange'](),_0x2820e4=_0xa4b826['getFirstRange']();if((0x0==_0x59b772||0x1==_0x59b772)&&0x2==_0x489f10&&_0x1de1e4['isIntersecting'](_0x2820e4))return!0x0;if(0x2==_0x59b772&&0x3==_0x489f10){const _0x2faad2=_0x3932f5['_findSuggestions'](_0x1de1e4,'insertion')['filter'](({suggestion:_0x3f3554,meta:_0x2bbdb0})=>_0x2bbdb0['isOwn']&&'convertInlineImageToBlock'==_0x3f3554['subType']);if(_0x2faad2['length']>0x1&&_0x2820e4['end']['isEqual'](_0x1de1e4['start']))return!0x0;if(0x1==_0x2faad2['length']&&(_0x1de1e4['start']['isEqual'](_0x2820e4['end'])||_0x1de1e4['end']['isEqual'](_0x2820e4['start'])))return!0x0;}if(0x3==_0x59b772&&0x3==_0x489f10&&_0x1de1e4['start']['isBefore'](_0x2820e4['start'])){const _0x13a70b=_0x1de1e4['end']['nodeAfter'],_0x13f891=_0x2820e4['start']['nodeBefore'];return _0x38d1b4['isBlockImage'](_0x13a70b)&&_0x13a70b===_0x13f891;}return!0x1;}function _0x38a680(_0x3e9ebe,_0x571690){return _0xba46eb(_0x3e9ebe,_0x571690)?[_0x3e9ebe,_0x571690]:_0xba46eb(_0x571690,_0x3e9ebe)?[_0x571690,_0x3e9ebe]:null;}_0x5913fd['plugins']['has']('ImageResize')&&(_0x3932f5['enableDefaultAttributesIntegration']('resizeImage'),_0x3932f5['registerBlockAttribute']('resizedWidth'),_0x3932f5['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x5394a7,'FORMAT_IMAGE_SIZE'))),_0x5913fd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3932f5['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3932f5['registerBlockAttribute']('alt')),_0x5913fd['plugins']['has']('PictureEditing')&&(_0x3932f5['registerBlockAttribute']('sources'),_0x3932f5['descriptionFactory']['registerDescriptionCallback'](_0x317a57=>{if('attribute'!=_0x317a57['type'])return;const {data:_0x3a6234}=_0x317a57;return _0x3a6234&&'sources'==_0x3a6234['key']?{'type':'format','content':''}:void 0x0;})),_0x5913fd['plugins']['has']('ImageSizeAttributes')&&(_0x3932f5['registerBlockAttribute']('width'),_0x3932f5['registerBlockAttribute']('height'),_0x3932f5['descriptionFactory']['registerDescriptionCallback'](_0x4de444=>{if('attribute'!=_0x4de444['type'])return;const {data:_0x198ee8}=_0x4de444;return!_0x198ee8||'width'!=_0x198ee8['key']&&'height'!=_0x198ee8['key']?void 0x0:{'type':'format','content':''};})),_0x3932f5['descriptionFactory']['registerDescriptionCallback'](_0x3919c2=>{if(!!_0x39eec0['find'](({type:_0x8c1ad6,subType:_0x5bd630})=>_0x3919c2['type']==_0x8c1ad6&&_0x3919c2['subType']==_0x5bd630))return _0x3919c2['previous']?{}:void 0x0;}),_0x3932f5['descriptionFactory']['registerDescriptionCallback'](_0x30f34f=>{if('insertion'==_0x30f34f['type']||'deletion'==_0x30f34f['type']){const _0x3166b6=_0x30f34f['getContainedElement']();if(_0x3166b6&&_0x3166b6['is']('element','caption'))return{'type':'insertion'==_0x30f34f['type']?'addObject':'removeObject','element':_0x3166b6,'quantity':0x1};}}),_0x3932f5['descriptionFactory']['registerDescriptionCallback'](_0x11d32a=>'formatBlock'==_0x11d32a['type']&&'convertInlineImageToBlock'==_0x11d32a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x11d32a['type']&&'convertBlockImageToInline'==_0x11d32a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3932f5['descriptionFactory']['registerDescriptionCallback'](_0x232f80=>{if('attribute'!=_0x232f80['type'])return;const {data:_0x77a17b}=_0x232f80;if(!_0x77a17b||'alt'!=_0x77a17b['key'])return;const _0x4e7051=_0x77a17b['newValue'];return _0x4e7051?{'type':'format','content':c(_0x5394a7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e7051+'\x22')}:{'type':'format','content':c(_0x5394a7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbebbdb=this['editor'],_0x8ebd20=_0xbebbdb['locale'];_0xbebbdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37915c=>{if('formatBlock'!=_0x37915c['type']&&'formatInline'!=_0x37915c['type'])return;const {data:_0x1a2447}=_0x37915c;if(_0x1a2447){if('imageTextAlternative'==_0x1a2447['commandName']){const _0x48f77e=_0x1a2447['commandParams'][0x0]['newValue'];return _0x48f77e?{'type':'format','content':c(_0x8ebd20,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48f77e+'\x22')}:{'type':'format','content':c(_0x8ebd20,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1a2447['commandName']){const _0x37becd=_0x1a2447['commandParams'][0x0]['width'];return _0x37becd?{'type':'format','content':c(_0x8ebd20,'*Set\x20image\x20width:*\x20%0',_0x37becd)}:{'type':'format','content':c(_0x8ebd20,'*Reset\x20image\x20width*')};}}});}}class at extends _0x465839{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x297428=this['editor']['locale'],_0x22b348=this['editor']['plugins']['get']('TrackChangesEditing');_0x22b348['enableDefaultAttributesIntegration']('replaceImageSource'),_0x22b348['registerBlockAttribute']('src'),_0x22b348['descriptionFactory']['registerDescriptionCallback'](_0x26e404=>{if('attribute'!=_0x26e404['type'])return;const {data:_0x28af70}=_0x26e404;return _0x28af70&&'src'==_0x28af70['key']?_0x28af70['newValue']&&_0x28af70['oldValue']?{'type':'format','content':c(_0x297428,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b37e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b37e2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2b37e2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b37e2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2b37e2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcdee23=this['editor'],_0x321676=_0xcdee23['locale'];_0xcdee23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae4f6=>{if('formatBlock'!=_0x4ae4f6['type']&&'formatInline'!=_0x4ae4f6['type'])return;const {data:_0x4d8bdb}=_0x4ae4f6;if(!_0x4d8bdb||'replaceImageSource'!=_0x4d8bdb['commandName'])return;return{'type':'format','content':c(_0x321676,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x465839{['afterInit'](){const _0x432c6b=this['editor'];if(!_0x432c6b['plugins']['has']('ImageStyleEditing'))return;const _0x53cdd5=_0x432c6b['plugins']['get']('TrackChangesEditing'),_0x13921e=_0x432c6b['plugins']['get']('ImageUtils'),_0x79c911={};_0x53cdd5['enableCommand']('imageStyle',(_0x3c9482,_0x4e1708)=>{const _0x68bff1=_0x432c6b['plugins']['get']('Users')['me'],_0x2d877b=_0x432c6b['commands']['get']('imageStyle');let _0x266f9b=_0x13921e['getClosestSelectedImageElement'](_0x432c6b['model']['document']['selection']),_0x178382=_0x432c6b['model']['createRangeOn'](_0x266f9b),_0x5a96cb=_0x2d877b['value'];if(_0x5a96cb==_0x4e1708['value'])return;const _0x2a6f9c={'commandName':'imageStyle','commandParams':[_0x4e1708],'formatGroupId':_0x21999f()};_0x432c6b['model']['change'](()=>{if(_0x53cdd5['getSuggestions']()['filter'](_0x439753=>_0x439753['isInContent']&&_0x68bff1==_0x439753['author']&&('formatBlock'==_0x439753['type']||'formatInline'==_0x439753['type'])&&('imageStylePreApply'==_0x439753['subType']||'imageStylePostApply'==_0x439753['subType'])&&_0x439753['getFirstRange']()['isEqual'](_0x178382))['forEach'](_0x8c06b=>_0x53cdd5['discardSuggestion'](_0x8c06b['head'])),_0x266f9b=_0x13921e['getClosestSelectedImageElement'](_0x432c6b['model']['document']['selection']),_0x178382=_0x432c6b['model']['createRangeOn'](_0x266f9b),_0x2d877b['refresh'](),_0x432c6b['commands']['get']('imageTypeInline')['refresh'](),_0x432c6b['commands']['get']('imageTypeBlock')['refresh'](),_0x5a96cb=_0x2d877b['value'],_0x5a96cb!=_0x4e1708['value'])return _0x13921e['isInlineImage'](_0x266f9b)&&_0x2d877b['shouldConvertImageType'](_0x4e1708['value'],_0x266f9b)?(_0x3c9482({..._0x4e1708,'setImageSizes':!0x1}),_0x266f9b=_0x13921e['getClosestSelectedImageElement'](_0x432c6b['model']['document']['selection']),void _0x53cdd5['markBlockFormat'](_0x266f9b,{..._0x2a6f9c,'commandReversedParams':[{'value':_0x5a96cb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x13921e['isBlockImage'](_0x266f9b)?_0x53cdd5['markBlockFormat'](_0x266f9b,_0x2a6f9c,[],'imageStylePostApply'):_0x53cdd5['markInlineFormat'](_0x178382,_0x2a6f9c,'imageStylePostApply'));});});for(const _0x56bfc5 of _0x432c6b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x79c911[_0x56bfc5['name']]=_0x56bfc5['title']['toLowerCase']();_0x53cdd5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x53cdd5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x53cdd5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x53cdd5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2c9238])=>{_0x13921e['setImageNaturalSizeAttributes'](_0x2c9238['getContainedElement']());}),_0x53cdd5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1c533f,_0x2a646b)=>{_0x53cdd5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1c533f,{'commandName':_0x2a646b['commandName'],'commandParams':_0x2a646b['commandReversedParams']});}),_0x53cdd5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x30d876,_0x4cfb7b){if(_0x83aab8(_0x30d876,_0x4cfb7b))return[_0x30d876,_0x4cfb7b];if(_0x83aab8(_0x4cfb7b,_0x30d876))return[_0x4cfb7b,_0x30d876];return null;});const _0x465182=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x83aab8(_0xa97125,_0x5e0ff6){const _0x2e295b=_0x465182['findIndex'](({type:_0x30ce28,subType:_0x8baedc})=>_0xa97125['type']==_0x30ce28&&_0xa97125['subType']==_0x8baedc),_0x59c3c0=_0x465182['findIndex'](({type:_0x161c89,subType:_0x5f1dda})=>_0x5e0ff6['type']==_0x161c89&&_0x5e0ff6['subType']==_0x5f1dda);if(_0x2e295b<0x0||_0x59c3c0<0x0)return!0x1;const _0x21ad52=_0xa97125['getFirstRange'](),_0x441c25=_0x5e0ff6['getFirstRange']();if((0x0==_0x2e295b||0x1==_0x2e295b)&&0x2==_0x59c3c0&&_0x21ad52['isIntersecting'](_0x441c25))return!0x0;if(0x2==_0x2e295b&&0x3==_0x59c3c0){const _0x360e01=_0x53cdd5['_findSuggestions'](_0x21ad52,'insertion')['filter'](({suggestion:_0x3b159d,meta:_0x2c458b})=>_0x2c458b['isOwn']&&'convertInlineImageToBlock'==_0x3b159d['subType']);if(_0x360e01['length']>0x1&&_0x441c25['end']['isEqual'](_0x21ad52['start']))return!0x0;if(0x1==_0x360e01['length']&&(_0x21ad52['start']['isEqual'](_0x441c25['end'])||_0x21ad52['end']['isEqual'](_0x441c25['start'])))return!0x0;}if(0x3==_0x2e295b&&0x3==_0x59c3c0&&_0x21ad52['start']['isBefore'](_0x441c25['start'])){const _0x22fe90=_0x21ad52['end']['nodeAfter'],_0x26a6b2=_0x441c25['start']['nodeBefore'];return _0x13921e['isBlockImage'](_0x22fe90)&&_0x22fe90===_0x26a6b2;}return!0x1;}_0x432c6b['model']['document']['registerPostFixer'](()=>{let _0x373416=!0x1;const _0x33a8e7=Array['from'](_0x432c6b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd09cd2,data:_0x3e9c5a}of _0x33a8e7){const {group:_0x2aae4f,type:_0x5ef5b2,subType:_0x19bd62,id:_0x542d8d}=_0x53cdd5['_splitMarkerName'](_0xd09cd2);if('suggestion'==_0x2aae4f&&_0x53cdd5['hasSuggestion'](_0x542d8d)){if('formatBlock'==_0x5ef5b2&&('imageStylePreApply'==_0x19bd62||'imageStylePostApply'==_0x19bd62)){const _0x531bfb=_0x53cdd5['getSuggestion'](_0x542d8d);if(_0x3e9c5a['newRange']){const _0x301c77=_0x531bfb['getFirstRange']()['getContainedElement']();if(_0x13921e['isBlockImage'](_0x301c77))continue;_0x53cdd5['discardSuggestion'](_0x531bfb),_0x373416=!0x0;}}if('insertion'==_0x5ef5b2&&'imageCaption'==_0x19bd62&&!_0x3e9c5a['newRange']){const _0x3466a8=_0x53cdd5['getSuggestion'](_0x542d8d);_0x3466a8['next']&&_0x3466a8['next']['isInContent']&&(_0x53cdd5['discardSuggestion'](_0x3466a8['next']),_0x373416=!0x0);}}}return _0x373416;}),this['_registerLegacyDescription'](_0x79c911);}['_registerLegacyDescription'](_0x263a5e){const _0x3ef30a=this['editor'],_0x831a85=_0x3ef30a['locale'];_0x3ef30a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbddf7b=>{if('formatBlock'!=_0xbddf7b['type']&&'formatInline'!=_0xbddf7b['type'])return;const {data:_0x15b4ef}=_0xbddf7b;if(!_0x15b4ef||'imageStyle'!=_0x15b4ef['commandName'])return;const _0x5ef06c=_0x15b4ef['commandParams'][0x0]['value'];return _0x155e3b('side'===_0x5ef06c?c(_0x831a85,'FORMAT_SIDE_IMAGE'):_0x263a5e[_0x5ef06c]||_0x5ef06c);function _0x155e3b(_0x23a57e){return{'type':'format','content':c(_0x831a85,'*Format:*\x20%0',_0x23a57e)};}});}}class ut extends _0x465839{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x19c03d){super(_0x19c03d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x41f622=this['editor'],_0x1b2298=_0x41f622['commands']['get']('importWord'),_0x411329=_0x41f622['commands']['get']('trackChanges');_0x1b2298&&(_0x1b2298['on']('execute',(_0x232710,[,_0x1e6b20])=>{this['_trackChangesValueDuringImport']=_0x411329['value'],_0x1e6b20['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1b2298,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1b2298,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x411329['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x41f622['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4a2985,_0x51f68a){const {suggestions:_0x1dfa23}=_0x51f68a,_0x20eb89=this['editor']['commands']['get']('trackChanges'),_0x36f055=_0x20eb89['value'];this['_trackChangesValueDuringImport']!==_0x36f055&&(_0x20eb89['execute'](),this['_trackChangesExecuted']=!0x0),_0x1dfa23&&_0x1dfa23['forEach'](({id:_0x4d124b,type:_0x58c3a0,author:_0x5e1c4c,created_at:_0x47f67})=>{const _0x270ef2={'id':_0x4d124b,'type':_0x58c3a0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5e1c4c,'createdAt':_0x47f67?new Date(_0x47f67):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x270ef2);});}}class ft extends _0x465839{['afterInit'](){const _0xb82ab0=this['editor'],_0x4f3994=_0xb82ab0['plugins']['get']('TrackChangesEditing');if(_0xb82ab0['plugins']['has']('IndentEditing')&&(_0x4f3994['enableCommand']('indent'),_0x4f3994['enableCommand']('outdent')),_0xb82ab0['plugins']['has']('IndentBlock')){for(const _0x38d2d9 of['indentBlock','outdentBlock'])_0x4f3994['enableDefaultAttributesIntegration'](_0x38d2d9);}const _0x3dc129=_0xb82ab0['locale'];_0x4f3994['registerBlockAttribute']('blockIndent'),_0x4f3994['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x3dc129,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x441f6b=this['editor'],_0x38f1ca=_0x441f6b['locale'],_0x1afb21=_0x441f6b['plugins']['get']('TrackChangesEditing');_0x1afb21['descriptionFactory']['registerDescriptionCallback'](_0x5790ce=>{if('formatBlock'!=_0x5790ce['type'])return;const {data:_0x366098}=_0x5790ce;if(!_0x366098)return;if('indentBlock'!=_0x366098['commandName']&&'outdentBlock'!=_0x366098['commandName'])return;const _0x3e8f23=_0x5790ce['getItems']()[0x0],_0xc3da79=_0x1afb21['descriptionFactory']['getItemLabel'](_0x3e8f23);return'indentBlock'==_0x366098['commandName']?{'type':'format','content':c(_0x38f1ca,'*Indent:*\x20%0',_0xc3da79)}:'outdentBlock'==_0x366098['commandName']?{'type':'format','content':c(_0x38f1ca,'*Outdent:*\x20%0',_0xc3da79)}:void 0x0;});}}class ht extends _0x465839{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x465839{['afterInit'](){const _0x35a7e5=this['editor'];if(!_0x35a7e5['plugins']['has']('LinkEditing'))return;const _0x4b86eb=_0x35a7e5['plugins']['get']('TrackChangesEditing'),_0x424bde=_0x35a7e5['commands']['get']('link');_0x4b86eb['enableDefaultAttributesIntegration']('link'),_0x4b86eb['enableDefaultAttributesIntegration']('unlink'),_0x4b86eb['registerInlineAttribute']('linkHref');for(const _0x3dda3a of _0x424bde['manualDecorators'])_0x4b86eb['registerInlineAttribute'](_0x3dda3a['id']),_0x4b86eb['descriptionFactory']['registerAttributeLabel'](_0x3dda3a['id'],'link\x20('+_0x3dda3a['label']['toLowerCase']()+')');_0x4b86eb['descriptionFactory']['registerDescriptionCallback'](_0xe03738=>{if('attribute'!=_0xe03738['type'])return;const {data:_0x22c08a}=_0xe03738;if(!_0x22c08a||'linkHref'!=_0x22c08a['key'])return;const _0x3ac49c=_0x22c08a['newValue'],_0x2f1295=_0x35a7e5['locale'];return{'type':'format','content':null==_0x3ac49c?c(_0x2f1295,'*Remove\x20link*'):c(_0x2f1295,'*Set\x20link:*\x20%0','\x22'+_0x3ac49c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16822a=this['editor'],_0x3ba9c1=_0x16822a['locale'];_0x16822a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x445b61=>{if('formatInline'!=_0x445b61['type'])return;const {data:_0x4d7ee6}=_0x445b61;if(_0x4d7ee6){if('link'==_0x4d7ee6['commandName']){const _0x523871=_0x4d7ee6['commandParams'][0x0];return{'type':'format','content':c(_0x3ba9c1,'*Set\x20link:*\x20%0','\x22'+_0x523871+'\x22')};}return'unlink'==_0x4d7ee6['commandName']?{'type':'format','content':c(_0x3ba9c1,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x465839{['afterInit'](){const _0x23e962=this['editor'],_0xdf7b68=_0x23e962['locale'];if(!_0x23e962['plugins']['has']('LegacyListEditing'))return;const _0x381214=_0x23e962['plugins']['get']('TrackChangesEditing'),_0x6c040e=_0x23e962['plugins']['has']('LegacyTodoListEditing');function _0x33d28e(_0x220257){return()=>{const _0x44ceeb=_0x23e962['model']['document']['selection'],_0x5a2224=_0x23e962['commands']['get'](_0x220257);if(_0x5a2224['value'])return void _0x23e962['execute']('paragraph',{});const _0x418bbe=_0x220257['slice'](0x0,-0x4),_0x576429=function(_0x809dbf,_0x20fa13,_0x36b1a1){let _0x35637a=Array['from'](_0x809dbf)['filter'](_0xf3c022=>function(_0x484c09,_0x374954){return _0x374954['checkChild'](_0x484c09['parent'],'listItem')&&!_0x374954['isObject'](_0x484c09);}(_0xf3c022,_0x36b1a1));_0x35637a=_0x35637a['filter'](_0x272329=>!_0x272329['is']('element','listItem')||_0x272329['getAttribute']('listType')!=_0x20fa13);const _0x397eab=new Set();for(const _0x589f30 of _0x35637a)_0x589f30['is']('element','listItem')?_0x397eab['add'](Le(_0x589f30)):_0x397eab['add'](_0x589f30);return Array['from'](_0x397eab);}(_0x44ceeb['getSelectedBlocks'](),_0x418bbe,_0x23e962['model']['schema']);_0x23e962['model']['change'](()=>{for(const _0x15a61e of _0x576429)_0x381214['markBlockFormat'](_0x15a61e,{'commandName':_0x220257,'commandParams':[{'forceValue':!_0x5a2224['value']}],'formatGroupId':'blockName'},Ee(_0x15a61e));});};}function _0x3fb496(_0x13f79f){return()=>{const _0x46705c=function(_0x32af6a){let _0x14f672=Array['from'](_0x32af6a);const _0x32ddd3=_0x14f672['findIndex'](_0x44c78c=>'listItem'!=_0x44c78c['name']);return _0x32ddd3>-0x1&&(_0x14f672=_0x14f672['slice'](0x0,_0x32ddd3)),_0x14f672;}(_0x23e962['model']['document']['selection']['getSelectedBlocks']()),_0x2b0213=_0x23e962['model']['createRange'](_0x23e962['model']['createPositionAt'](_0x46705c[0x0],'before'),_0x23e962['model']['createPositionAt'](_0x46705c[_0x46705c['length']-0x1],'end'));_0x23e962['model']['change'](()=>{_0x381214['markBlockFormat'](_0x2b0213,{'commandName':_0x13f79f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x17d57d){const _0xa878f4=new Set();for(const _0x16b85c of _0x17d57d){let _0x187691=_0x16b85c['nextSibling'];for(;_0x187691&&_0x187691['getAttribute']('listIndent')>_0x16b85c['getAttribute']('listIndent');)_0xa878f4['add'](_0x187691),_0x187691=_0x187691['nextSibling'];}return Array['from'](_0xa878f4);}(_0x46705c));});};}_0x381214['enableCommand']('numberedList',_0x33d28e('numberedList')),_0x381214['enableCommand']('bulletedList',_0x33d28e('bulletedList')),_0x6c040e&&_0x381214['enableCommand']('todoList',_0x33d28e('todoList')),_0x381214['enableCommand']('indentList',_0x3fb496('indentList')),_0x381214['enableCommand']('outdentList',_0x3fb496('outdentList')),_0x6c040e&&_0x381214['enableCommand']('checkTodoList',()=>{const _0x308d19=_0x23e962['commands']['get']('checkTodoList'),_0x13cfba=Array['from'](_0x308d19['_selectedElements']);_0x13cfba['filter'](_0xf34cf0=>_0xf34cf0['getAttribute']('todoListChecked')!=_0x308d19['value']),_0x23e962['model']['change'](()=>{for(const _0x109f4a of _0x13cfba)_0x381214['markBlockFormat'](_0x109f4a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x308d19['value']}]});});}),_0x381214['descriptionFactory']['registerElementLabel']('listItem',_0x529532=>c(_0xdf7b68,'ELEMENT_LIST_ITEM',_0x529532)),_0x381214['descriptionFactory']['registerDescriptionCallback'](_0x1c28fb=>{if('formatBlock'!=_0x1c28fb['type']&&'formatInline'!=_0x1c28fb['type'])return;const {data:_0x2d57b5}=_0x1c28fb;if(_0x2d57b5){if('numberedList'==_0x2d57b5['commandName']||'bulletedList'==_0x2d57b5['commandName']||'todoList'==_0x2d57b5['commandName'])switch(_0x2d57b5['commandName']['replace']('List','')){case'bulleted':return _0x45bbaf(c(_0xdf7b68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45bbaf(c(_0xdf7b68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45bbaf(c(_0xdf7b68,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2d57b5['commandName'])return{'type':'format','content':c(_0xdf7b68,'*Indent:*\x20%0',c(_0xdf7b68,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2d57b5['commandName'])return{'type':'format','content':c(_0xdf7b68,'*Outdent:*\x20%0',c(_0xdf7b68,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2d57b5['commandName'])return _0x2d57b5['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xdf7b68,'*Check\x20item*')}:{'type':'format','content':c(_0xdf7b68,'*Uncheck\x20item*')};}function _0x45bbaf(_0x4b6757){return{'type':'format','content':c(_0xdf7b68,'*Change\x20to:*\x20%0',_0x4b6757)};}});}}function Le(_0xdbf74f){const _0x246f89=_0xdbf74f['getAttribute']('listIndent');if(0x0==_0x246f89)return _0xdbf74f;let _0x1298bb=_0xdbf74f;for(;_0xdbf74f['previousSibling']&&_0xdbf74f['previousSibling']['is']('element','listItem');){const _0x2e99a6=_0xdbf74f['previousSibling']['getAttribute']('listIndent');if(_0x2e99a6==_0x246f89)_0x1298bb=_0xdbf74f['previousSibling'];else{if(_0x2e99a6<_0x246f89)break;}_0xdbf74f=_0xdbf74f['previousSibling'];}return _0x1298bb;}function Ee(_0x3da38b){const _0x5a9324=[];if(_0x3da38b['is']('element','listItem')&&_0x3da38b['getAttribute']('listIndent')>0x0){let _0x5e2766=_0x3da38b['nextSibling'];for(;_0x5e2766&&'listItem'==_0x5e2766['name']&&_0x5e2766['getAttribute']('listIndent')==_0x3da38b['getAttribute']('listIndent');)_0x5a9324['push'](_0x5e2766),_0x5e2766=_0x5e2766['nextSibling'];}return _0x5a9324;}class Q extends _0x465839{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x59af05=this['editor']['config']['get']('list.properties'),_0x478419=this['editor']['plugins']['get']('TrackChangesEditing');_0x59af05['styles']&&_0x478419['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x59af05['reversed']&&_0x478419['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x59af05['startIndex']&&_0x478419['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x478419['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1c2188,_0x5da132={}){const _0x2a11b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf7d5fa=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2a11b5['markMultiRangeBlockFormat'](_0xf7d5fa,{'commandName':'listStyle','commandParams':[{'type':_0x5da132['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3f9f1a,_0x7bca9c={}){const _0x27b4b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b32ed=this['_getSuggestionBlocks'](_0x125b8d=>_0x125b8d['is']('element','listItem')&&'numbered'===_0x125b8d['getAttribute']('listType'));if(_0x2b32ed['length']<0x1)return;const _0x1de4aa=_0x2b32ed['map'](_0x5da458=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5da458,'before'),this['editor']['model']['createPositionAt'](_0x5da458,0x0)));this['editor']['model']['change'](()=>{_0x27b4b6['markMultiRangeBlockFormat'](_0x1de4aa,{'commandName':'listReversed','commandParams':[{'reversed':_0x7bca9c['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xa42d27,_0x1b526b={}){const _0x5e4e93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13ed12=this['_getSuggestionBlocks'](_0x202ab5=>_0x202ab5['is']('element','listItem')&&'numbered'===_0x202ab5['getAttribute']('listType'));if(_0x13ed12['length']<0x1)return;const _0x581f7e=_0x13ed12['map'](_0x171580=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x171580,'before'),this['editor']['model']['createPositionAt'](_0x171580,0x0)));this['editor']['model']['change'](()=>{_0x5e4e93['markMultiRangeBlockFormat'](_0x581f7e,{'commandName':'listStart','commandParams':[{'startIndex':_0x1b526b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4c9eb6){if('formatBlock'!=_0x4c9eb6['type']&&'formatInline'!=_0x4c9eb6['type'])return;const _0x1f7ed3=this['editor']['locale'],{data:_0x59b40a}=_0x4c9eb6;if(!_0x59b40a)return;let _0x426a98,_0x6084f0;switch(_0x59b40a['commandName']){case'listStyle':_0x426a98='*Change\x20to:*\x20%0',_0x6084f0={'type':'format','content':c(_0x1f7ed3,_0x426a98,c(_0x1f7ed3,this['_getTranslationKeyForListStyle'](_0x59b40a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x426a98=_0x59b40a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x6084f0={'type':'format','content':c(_0x1f7ed3,_0x426a98)};break;case'listStart':_0x426a98='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x6084f0={'type':'format','content':c(_0x1f7ed3,_0x426a98,_0x59b40a['commandParams'][0x0]['startIndex'])};}return _0x6084f0;}['_getSuggestionBlocksForListStyle'](){const _0x949f45=this['editor']['plugins']['get']('LegacyListUtils');let _0x4291ba=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4291ba[0x0]?.['is']('element','listItem')&&_0x4291ba['unshift'](..._0x949f45['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4291ba[_0x4291ba['length']-0x1]?.['is']('element','listItem')&&_0x4291ba['push'](..._0x949f45['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4291ba=[...new Set(_0x4291ba)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4291ba=_0x4291ba['filter'](_0x4af013=>_0x4af013['is']('element','listItem'))),_0x4291ba;}['_getSuggestionBlocks'](_0x576a45){const _0x10b65e=this['editor']['plugins']['get']('LegacyListUtils');let _0x5092f6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x576a45)['map'](_0x467b5e=>{const _0x3e9329=this['editor']['model']['createPositionAt'](_0x467b5e,0x0);return[..._0x10b65e['getSiblingNodes'](_0x3e9329,'backward'),..._0x10b65e['getSiblingNodes'](_0x3e9329,'forward')];})['flat']();return _0x5092f6=[...new Set(_0x5092f6)],_0x5092f6;}['_getTranslationKeyForListStyle'](_0x514f26){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x514f26)||'default')['toUpperCase']()+'_LIST_'+_0x514f26['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x465839{['afterInit'](){const _0x4d1ff6=this['editor'];if(!_0x4d1ff6['plugins']['has']('MediaEmbedEditing'))return;const _0x881afc=_0x4d1ff6['plugins']['get']('TrackChangesEditing'),_0xd9d1c=_0x4d1ff6['locale'];_0x881afc['enableCommand']('mediaEmbed'),_0x881afc['descriptionFactory']['registerElementLabel']('media',_0x57ae74=>c(_0xd9d1c,'ELEMENT_MEDIA',_0x57ae74)),_0x4d1ff6['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3860df,{writer:_0x142cc1,options:_0x43ff8c})=>{if(_0x43ff8c['showSuggestionHighlights'])return _0x142cc1['createEmptyElement']('div');},'converterPriority':'high'}),_0x4d1ff6['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5beac1,_0x527e34,_0x31f6a8)=>{_0x31f6a8['options']['showSuggestionHighlights']&&_0x5beac1['stop']();},{'priority':'high'});}}class pt extends _0x465839{['afterInit'](){const _0x223961=this['editor'];_0x223961['plugins']['has']('MentionEditing')&&_0x223961['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x465839{['afterInit'](){const _0x24ed4d=this['editor'];if(!_0x24ed4d['plugins']['has']('MergeFieldsEditing'))return;const _0xa8b4ed=_0x24ed4d['plugins']['get']('TrackChangesEditing'),_0x2c976e=_0x24ed4d['locale'];_0xa8b4ed['enableCommand']('insertMergeField'),_0xa8b4ed['enableCommand']('insertMergeFieldBlock'),_0xa8b4ed['enableCommand']('insertMergeFieldImage'),_0xa8b4ed['descriptionFactory']['registerElementLabel']('mergeField',_0xc4705b=>c(_0x2c976e,'ELEMENT_MERGE_FIELD',_0xc4705b)),_0xa8b4ed['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x15f406=>c(_0x2c976e,'ELEMENT_MERGE_FIELD',_0x15f406)),_0xa8b4ed['descriptionFactory']['registerDescriptionCallback'](_0x5621d2=>{if('insertion'!=_0x5621d2['type']&&'deletion'!=_0x5621d2['type'])return;const _0x543332=_0x5621d2['getContainedElement']();if(null==_0x543332)return;const _0x445f73=_0x24ed4d['plugins']['get']('MergeFieldsEditing');let _0x3b5b96;switch(_0x445f73['getMergeFieldType'](_0x543332)){case null:return;case'image':{const _0x165d53=_0x445f73['unwrapAffixes'](_0x543332['getAttribute']('src'));_0x3b5b96=_0x445f73['getLabel'](_0x165d53)||_0x165d53;break;}default:{const _0x293c5d=_0x543332['getAttribute']('id');_0x3b5b96=_0x445f73['getLabel'](_0x293c5d)||_0x293c5d;break;}}return'insertion'==_0x5621d2['type']?{'type':'insertion','content':c(_0x2c976e,'*Insert:*\x20%0','\x22'+_0x3b5b96+'\x22\x20'+c(_0x2c976e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2c976e,'*Remove:*\x20%0','\x22'+_0x3b5b96+'\x22\x20'+c(_0x2c976e,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x465839{['afterInit'](){const _0x39cd2d=this['editor'],_0x5c4530=_0x39cd2d['plugins']['get']('TrackChangesEditing');_0x39cd2d['plugins']['has']('MultiLevelList')&&(_0x5c4530['enableDefaultAttributesIntegration']('multiLevelList'),_0x5c4530['registerBlockAttribute']('listMarkerStyle'),_0x5c4530['descriptionFactory']['registerDescriptionCallback'](_0x78b11b=>this['handleDescriptions'](_0x78b11b)));}['handleDescriptions'](_0x1f771e){const _0x474a6a=this['editor']['locale'],{data:_0x58fa0c}=_0x1f771e,_0x55f9ed={'type':'format','content':''};if(_0x58fa0c&&'listMarkerStyle'==_0x58fa0c['key']){if(!_0x58fa0c['oldValue'])return{'type':'format','content':c(_0x474a6a,'*Set\x20format:*\x20%0',c(_0x474a6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58fa0c['newValue']+')'};if(!_0x58fa0c['newValue']){let _0x478f00=_0x1f771e['head'];for(;_0x478f00;){if(_0x478f00['data']&&'listType'==_0x478f00['data']['key']&&_0x478f00['data']['newValue'])return _0x55f9ed;_0x478f00=_0x478f00['next'];}return{'type':'format','content':c(_0x474a6a,'*Remove\x20format:*\x20%0',c(_0x474a6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x58fa0c['oldValue']+')'};}}}}class bt extends _0x465839{['afterInit'](){const _0x559a65=this['editor'];if(!_0x559a65['plugins']['has']('PageBreakEditing'))return;_0x559a65['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x46d9f6=_0x559a65['plugins']['get']('TrackChangesEditing'),_0x25b9f4=_0x559a65['locale'];_0x46d9f6['descriptionFactory']['registerElementLabel']('pageBreak',_0x1de8c2=>c(_0x25b9f4,'ELEMENT_PAGE_BREAK',_0x1de8c2));}}class yt extends _0x465839{['afterInit'](){const _0x5c0152=this['editor'];if(!_0x5c0152['plugins']['has']('Paragraph'))return;const _0x42a977=_0x5c0152['locale'],_0x3e4928=_0x5c0152['plugins']['get']('TrackChangesEditing');_0x3e4928['descriptionFactory']['registerElementLabel']('paragraph',_0x5e0f90=>c(_0x42a977,'ELEMENT_PARAGRAPH',_0x5e0f90)),_0x3e4928['enableDefaultAttributesIntegration']('paragraph'),_0x3e4928['enableCommand']('insertParagraph'),_0x5c0152['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5c0152),{'priority':'highest'}),_0x5c0152['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x56a735,_0x576da0,_0x13cd62)=>{_0x13cd62['options']['showSuggestionHighlights']&&nr(_0x5c0152,{'showActiveMarker':!0x1})(_0x56a735,_0x576da0,_0x13cd62);},{'priority':'highest'});const _0x4f4fe9=_0x3e4928['descriptionFactory'];_0x4f4fe9['registerDescriptionCallback'](_0x29af65=>{if('insertion'!==_0x29af65['type'])return;const {start:_0x18f417,end:_0x2e7091}=_0x29af65['getFirstRange']();if(!_0x18f417['isTouching'](_0x2e7091)||!_0x18f417['nodeAfter'])return;const _0x579a1e=_0x5c0152['model']['schema'],_0x22260e=_0x18f417['nodeAfter'];return _0x579a1e['isBlock'](_0x22260e)&&!_0x579a1e['isLimit'](_0x22260e)&&_0x579a1e['checkChild'](_0x22260e,'$text')?{'type':'insertion','content':c(_0x42a977,'*Insert:*\x20%0',_0x4f4fe9['getItemLabel'](_0x22260e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40b55a=this['editor'],_0x4dc255=_0x40b55a['locale'];_0x40b55a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e7d09=>{if('formatBlock'!=_0x2e7d09['type'])return;const {data:_0x1d9de5}=_0x2e7d09;return _0x1d9de5&&'paragraph'==_0x1d9de5['commandName']?{'type':'format','content':c(_0x4dc255,'*Change\x20to:*\x20%0',c(_0x4dc255,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x164fb4,{showActiveMarker:_0x497869=!0x0}={}){return(_0x2e17c4,_0x15b74f,_0x3c7f74)=>{const _0x55e46d=_0x164fb4['plugins']['get']('TrackChangesEditing'),_0xf7db89=_0x15b74f['markerRange']['start'],_0x4030c6=_0x15b74f['markerRange']['end'],_0x5f2fbb=_0x164fb4['model']['schema'];if(!_0xf7db89['isTouching'](_0x4030c6)||!_0xf7db89['nodeAfter'])return;const _0x584334=_0xf7db89['nodeAfter'];if(_0x5f2fbb['isBlock'](_0x584334)&&!_0x5f2fbb['isLimit'](_0x584334)&&_0x5f2fbb['checkChild'](_0x584334,'$text')){if(!_0x3c7f74['consumable']['consume'](_0x15b74f['markerRange'],_0x2e17c4['name']))return;const {id:_0x3b447a,authorId:_0x463bf4}=_0x55e46d['_splitMarkerName'](_0x15b74f['markerName']),_0x38840b=_0x3c7f74['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3b447a,'data-author-id':_0x463bf4}),_0x48209c=_0x3c7f74['mapper']['toViewPosition'](_0x4030c6);_0x497869&&_0x55e46d['activeMarkers']['includes'](_0x15b74f['markerName'])&&_0x3c7f74['writer']['addClass']('ck-suggestion-marker--active',_0x38840b),_0x3c7f74['writer']['insert'](_0x48209c,_0x38840b),_0x3c7f74['mapper']['bindElementToMarker'](_0x38840b,_0x15b74f['markerName']);}};}class St extends _0x465839{['afterInit'](){const _0x21358f=this['editor'];_0x21358f['commands']['get']('replaceSource')&&_0x21358f['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x465839{['afterInit'](){const _0x4b0506=this['editor'];if(!_0x4b0506['plugins']['has']('RemoveFormatEditing'))return;_0x4b0506['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59094e=this['editor'];_0x59094e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x105f4f=>{if('formatBlock'!=_0x105f4f['type']&&'formatInline'!=_0x105f4f['type'])return;const {data:_0x600ed5}=_0x105f4f;return _0x600ed5&&'removeFormat'==_0x600ed5['commandName']?{'type':'format','content':c(_0x59094e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x465839{['afterInit'](){const _0x5e2da0=this['editor'];if(!_0x5e2da0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5e9796=_0x5e2da0['plugins']['get']('TrackChangesEditing');_0x5e9796['enableCommand']('goToPreviousRestrictedEditingException'),_0x5e9796['enableCommand']('goToNextRestrictedEditingException');const _0x34f8f1=_0x5e2da0['plugins']['get']('RestrictedEditingModeEditing');_0x34f8f1['enableCommand']('trackChanges'),_0x34f8f1['enableCommand']('acceptSuggestion'),_0x34f8f1['enableCommand']('discardSuggestion'),_0x34f8f1['enableCommand']('acceptAllSuggestions'),_0x34f8f1['enableCommand']('discardAllSuggestions'),_0x34f8f1['enableCommand']('acceptSelectedSuggestions'),_0x34f8f1['enableCommand']('discardSelectedSuggestions');}}class At extends _0x465839{['afterInit'](){const _0x50bec3=this['editor'];if(!_0x50bec3['plugins']['has']('ShiftEnter'))return;const _0x2a4929=_0x50bec3['plugins']['get']('TrackChangesEditing');_0x2a4929['enableCommand']('shiftEnter'),_0x50bec3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x50bec3),{'priority':'high'}),_0x50bec3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x50bec3),{'priority':'high'}),_0x50bec3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42fb7a,_0x37958e,_0x14179c)=>{_0x14179c['options']['showSuggestionHighlights']&&je(_0x50bec3,{'showActiveMarker':!0x1})(_0x42fb7a,_0x37958e,_0x14179c);}),_0x2a4929['descriptionFactory']['registerElementLabel']('softBreak',_0x465e16=>c(_0x50bec3['locale'],'ELEMENT_LINE_BREAK',_0x465e16));}}function je(_0x1f4798,{showActiveMarker:_0x4d2d3f=!0x0}={}){return(_0x229ce0,_0x5bc29c,_0x24cf56)=>{const _0x449f26=_0x1f4798['plugins']['get']('TrackChangesEditing');if(!_0x24cf56['consumable']['test'](_0x5bc29c['markerRange'],_0x229ce0['name']))return;const _0x486551=_0x1f4798['model'];for(const _0x4a8aaf of _0x5bc29c['markerRange']['getItems']()){if(!_0x4a8aaf['is']('element','softBreak'))continue;const _0x416c62='deletion'==_0x5bc29c['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x25d285,authorId:_0x357011}=_0x449f26['_splitMarkerName'](_0x5bc29c['markerName']),_0x32c92a=_0x24cf56['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x416c62,'data-suggestion':_0x25d285,'data-author-id':_0x357011}),_0x8de6e1=_0x24cf56['mapper']['toViewPosition'](_0x486551['createPositionBefore'](_0x4a8aaf));_0x4d2d3f&&_0x449f26['activeMarkers']['includes'](_0x5bc29c['markerName'])&&_0x24cf56['writer']['addClass']('ck-suggestion-marker--active',_0x32c92a),_0x24cf56['writer']['insert'](_0x8de6e1,_0x32c92a),_0x24cf56['mapper']['bindElementToMarker'](_0x32c92a,_0x5bc29c['markerName']);}};}class _t extends _0x465839{['afterInit'](){const _0x142b68=this['editor'],_0x382228=_0x142b68['model'],_0x48ba9f=_0x142b68['locale'];if(!_0x142b68['plugins']['has']('StandardEditingModeEditing'))return;const _0x4b8d8a=_0x142b68['plugins']['get']('TrackChangesEditing'),_0x164f47='restrictedEditingException',_0x449595=_0x142b68['commands']['get'](_0x164f47);_0x4b8d8a['enableCommand'](_0x164f47,(_0x192a20,_0x590727={})=>{const _0x4ed385=_0x382228['document']['selection'];if(_0x4ed385['isCollapsed'])return void _0x192a20(_0x590727);const _0xd34dd=void 0x0!==_0x590727['forceValue']?_0x590727['forceValue']:!_0x449595['value'];_0x382228['change'](()=>{const _0x599ec8=Array['from'](_0x4ed385['getRanges']());for(const _0x2ea23d of _0x599ec8){const _0x25ff66=_0xd34dd?[_0x2ea23d]:io(_0x164f47,_0x2ea23d,_0x382228);for(const _0x3ba42d of _0x25ff66)_0x4b8d8a['markInlineFormat'](_0x3ba42d,{'commandName':_0x164f47,'commandParams':[{'forceValue':_0xd34dd}]});}});}),_0x4b8d8a['descriptionFactory']['registerDescriptionCallback'](_0x48d39f=>{if('formatBlock'!=_0x48d39f['type']&&'formatInline'!=_0x48d39f['type'])return;const {data:_0x2f0c63}=_0x48d39f;return _0x2f0c63&&_0x2f0c63['commandName']==_0x164f47?_0x2f0c63['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x48ba9f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x48ba9f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x465839{['afterInit'](){const _0x576bf8=this['editor'];if(!_0x576bf8['plugins']['has']('Style')||!_0x576bf8['plugins']['has']('DataSchema'))return;const _0x2e621f=_0x576bf8['plugins']['get']('TrackChangesEditing'),_0x444f14=_0x576bf8['locale'],_0xeee973=_0x576bf8['config']['get']('style')||{},_0x57dc88=_0x576bf8['plugins']['get']('GeneralHtmlSupport'),_0x49bc84=_0x576bf8['plugins']['get']('StyleUtils')['normalizeConfig'](_0x576bf8['plugins']['get']('DataSchema'),_0xeee973['definitions']);_0x2e621f['enableDefaultAttributesIntegration']('style');const _0x2afb49=new Set();for(const _0x5cc888 of _0x49bc84['block']){const _0x1186f0=_0x57dc88['getGhsAttributeNameForElement'](_0x5cc888['element']);_0x2afb49['add'](_0x1186f0);}const _0x57d320=new Set();for(const _0x5144e0 of _0x49bc84['inline']){const _0x525ec6=_0x57dc88['getGhsAttributeNameForElement'](_0x5144e0['element']);_0x57d320['add'](_0x525ec6);for(const _0x12e73c of _0x5144e0['ghsAttributes'])_0x57d320['add'](_0x12e73c);}for(const _0x307a61 of _0x2afb49)_0x2e621f['registerBlockAttribute'](_0x307a61),_0x2e621f['descriptionFactory']['registerAttributeLabel'](_0x307a61,c(_0x444f14,'FORMAT_STYLE'));for(const _0x12eb4b of _0x57d320)_0x2e621f['registerInlineAttribute'](_0x12eb4b),_0x2e621f['descriptionFactory']['registerAttributeLabel'](_0x12eb4b,c(_0x444f14,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x153afd=this['editor'],_0x4f2c33=_0x153afd['locale'];_0x153afd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40202e=>{if('formatBlock'!=_0x40202e['type']&&'formatInline'!=_0x40202e['type'])return;const {data:_0x553457}=_0x40202e;return _0x553457&&'style'===_0x553457['commandName']?_0x553457['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4f2c33,'*Set\x20format:*\x20%0',_0x553457['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x4f2c33,'*Remove\x20format:*\x20%0',_0x553457['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x465839{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x514a9a){super(_0x514a9a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x15ca5d=this['editor'],_0x5790ee=_0x15ca5d['model']['document']['selection'];if(!_0x15ca5d['plugins']['has']('TableEditing'))return;const _0x33ada3=_0x15ca5d['locale'],_0x4effe6=_0x15ca5d['plugins']['get']('TrackChangesEditing'),_0x5dcf4d=_0x15ca5d['plugins']['get']('TableUtils');_0x4effe6['descriptionFactory']['registerElementLabel']('table',_0x284f0f=>c(_0x33ada3,'ELEMENT_TABLE',_0x284f0f)),this['_setupColumnsRowsFixing'](),_0x4effe6['enableCommand']('insertTable'),_0x4effe6['enableCommand']('selectTableRow'),_0x4effe6['enableCommand']('selectTableColumn');for(const _0x59422f of['insertTableRowAbove','insertTableRowBelow']){const _0x264b0d=_0x15ca5d['commands']['get'](_0x59422f);_0x4effe6['enableCommand'](_0x59422f,_0x3f71d6=>{_0x15ca5d['model']['change'](_0x40dc28=>{_0x3f71d6();const _0x61c081='above'===_0x264b0d['order'],_0x108339=_0x5dcf4d['getSelectionAffectedTableCells'](_0x5790ee),_0x3a1f53=_0x5dcf4d['getRowIndexes'](_0x108339),_0x525fa6=_0x61c081?_0x3a1f53['first']-0x1:_0x3a1f53['last']+0x1,_0x545606=_0x108339[0x0]['findAncestor']('table'),_0x5dbb94=_0x5dcf4d['createTableWalker'](_0x545606,{'startRow':_0x525fa6,'endRow':_0x525fa6}),_0x457629=Array['from'](_0x5dbb94)['map'](_0x3381ee=>_0x40dc28['createRangeOn'](_0x3381ee['cell']));_0x4effe6['markMultiRangeInsertion'](_0x457629,'tableRow');});});}for(const _0x23326d of['insertTableColumnLeft','insertTableColumnRight']){const _0x3228ec=_0x15ca5d['commands']['get'](_0x23326d);_0x4effe6['enableCommand'](_0x23326d,_0x53bc52=>{_0x15ca5d['model']['change'](_0x5a3062=>{_0x53bc52();const _0x1cffb7='left'===_0x3228ec['order'],_0x33dd47=_0x5dcf4d['getSelectionAffectedTableCells'](_0x5790ee),_0x3d11b4=_0x5dcf4d['getColumnIndexes'](_0x33dd47),_0x321faa=_0x1cffb7?_0x3d11b4['first']-0x1:_0x3d11b4['last']+0x1,_0x2d7e06=_0x33dd47[0x0]['findAncestor']('table'),_0x27cff2=_0x5dcf4d['createTableWalker'](_0x2d7e06,{'startRow':0x0,'column':_0x321faa,'includeAllSlots':!0x1}),_0xa9ad99=Array['from'](_0x27cff2)['map'](_0x5bf6a6=>_0x5a3062['createRangeOn'](_0x5bf6a6['cell']));_0x4effe6['markMultiRangeInsertion'](_0xa9ad99,'tableColumn');});});}for(const _0x59d2d5 of['removeTableRow','removeTableColumn']){const _0x193bfe=_0x59d2d5['substr'](0xb),_0x310e9a=_0x193bfe['toLowerCase'](),_0x2554ab=_0x310e9a['substr'](0x0,0x3)+'span',_0x336787='table'+_0x193bfe,_0x48fcba='min'+_0x193bfe,_0x26c0e8='max'+_0x193bfe;_0x4effe6['enableCommand'](_0x59d2d5,()=>{_0x15ca5d['model']['change'](_0x112a81=>{const _0x1030b2=_0x5dcf4d['getSelectionAffectedTableCells'](_0x5790ee),_0x3e6eba=_0x1030b2[0x0]['findAncestor']('table');let _0x532445;if('removeTableRow'==_0x59d2d5){const _0x463080=_0x5dcf4d['getRowIndexes'](_0x1030b2);_0x532445={'startRow':_0x463080['first'],'endRow':_0x463080['last'],'includeAllSlots':!0x0};}else{const _0x24d36b=_0x5dcf4d['getColumnIndexes'](_0x1030b2);_0x532445={'startColumn':_0x24d36b['first'],'endColumn':_0x24d36b['last'],'includeAllSlots':!0x0};}const _0x23c63b=_0x5dcf4d['createTableWalker'](_0x3e6eba,_0x532445),_0x25ec8d=Array['from'](_0x23c63b)['map'](({cell:_0x311b60})=>_0x311b60),_0x97d159=xe(_0x25ec8d['filter'](_0xa437d4=>_0xa437d4['hasAttribute'](_0x2554ab))),_0x4c7cf3=xe(_0x25ec8d['filter'](_0x275fff=>!_0x275fff['hasAttribute'](_0x2554ab)))['map'](_0x572cc7=>_0x112a81['createRangeOn'](_0x572cc7)),_0x2bcdc7=_0x4effe6['markMultiRangeDeletion'](_0x4c7cf3,_0x336787);if(_0x2bcdc7&&('tableRow'==_0x2bcdc7['subType']||'tableColumn'==_0x2bcdc7['subType'])){const _0x298257=this['_getSuggestionCoords'](_0x2bcdc7);for(const _0x5029cb of _0x97d159){const _0x1066c2=_0x112a81['createRangeOn'](_0x5029cb),_0x39faa3=_0x5dcf4d['getCellLocation'](_0x5029cb),_0x49cc37=_0x5029cb['getAttribute'](_0x2554ab)-0x1,_0x20d7b7=_0x298257[_0x48fcba],_0x39f741=_0x298257[_0x26c0e8];_0x20d7b7<=_0x39faa3[_0x310e9a]&&_0x39faa3[_0x310e9a]+_0x49cc37<=_0x39f741&&_0x2bcdc7['addRange'](_0x1066c2);}}});});}function _0x58178b(_0x1e3520){const _0x4b65fb=Array['from'](_0x5790ee['getRanges']())['map'](_0x2dad82=>_0x1a5d6e['fromRange'](_0x2dad82));_0x15ca5d['model']['change'](_0x42be5=>{const _0x2fb0e0=_0x42be5['batch'];_0x1e3520=_0x1e3520['filter'](_0x258733=>'$graveyard'!=_0x258733['root']['rootName']),_0x42be5['setSelection'](_0x1e3520),_0x15ca5d['commands']['get']('removeTableRow')['refresh'](),_0x15ca5d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x15ca5d['model']['enqueueChange'](()=>{_0x15ca5d['model']['enqueueChange'](_0x2fb0e0,_0x30b0ca=>{const _0x223ff1=_0x4b65fb['filter'](_0xaba060=>'$graveyard'!=_0xaba060['root']['rootName']);_0x223ff1['length']>0x0&&_0x30b0ca['setSelection'](_0x223ff1);for(const _0x5764e0 of _0x4b65fb)_0x5764e0['detach']();});});});}function _0x262a28(_0xf7b894){_0x15ca5d['model']['change'](_0x51b612=>{const _0x2b0e0a=Array['from'](_0x5790ee['getRanges']())['map'](_0x2ff78c=>_0x1a5d6e['fromRange'](_0x2ff78c)),_0x1259b3=[];for(const _0x2d935a of _0xf7b894)for(const _0xe8d369 of _0x2d935a['getItems']({'shallow':!0x0}))_0x1259b3['push'](_0xe8d369);for(const _0x59f4be of _0x1259b3)'$graveyard'!=_0x59f4be['root']['rootName']&&(_0x51b612['setSelection'](_0x51b612['createPositionAt'](_0x59f4be,0x0)),_0x15ca5d['commands']['get']('removeTableColumn')['refresh'](),_0x15ca5d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x221f38=_0x2b0e0a['filter'](_0x5c20e2=>'$graveyard'!=_0x5c20e2['root']['rootName']);_0x221f38['length']>0x0&&_0x51b612['setSelection'](_0x221f38);for(const _0x10efeb of _0x2b0e0a)_0x10efeb['detach']();});}function _0x35a5a8(_0xd679d7,_0x5799c6){return _0x5799c6['every'](_0x3037ed=>_0xd679d7['some'](_0x570830=>_0x570830['end']['isEqual'](_0x3037ed['start'])||_0x3037ed['end']['isEqual'](_0x570830['start'])));}function _0x3702c4(_0x212f60,_0x53aad6){return!_0x212f60['some'](_0x39490f=>_0x53aad6['some'](_0x19f762=>_0x39490f['isIntersecting'](_0x19f762)))&&_0x212f60['some'](_0xbaa4fd=>_0x53aad6['some'](_0x3920bd=>_0xbaa4fd['end']['isTouching'](_0x3920bd['start'])));}_0x15ca5d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5cb08f,_0x54f703,_0x398449)=>{if(!_0x398449['options']['showSuggestionHighlights'])return;const _0x3c3251=_0x54f703['item'];if(!_0x3c3251||!_0x3c3251['is']('element','tableCell'))return;const _0x4428d4=_0x398449['mapper']['toViewElement'](_0x3c3251);if(_0x4428d4){const {id:_0x3ae0f3,authorId:_0x253ed1}=_0x4effe6['_splitMarkerName'](_0x54f703['markerName']);_0x5ad207(_0x4428d4,_0x398449['writer'],(_0x2c0e75,_0x4bf560,_0x4a277e)=>{_0x4a277e['addClass'](_0x27001d(_0x4bf560['classes']),_0x2c0e75),_0x4a277e['setAttribute']('data-suggestion-id',_0x3ae0f3,_0x2c0e75),_0x4a277e['setAttribute']('data-author-id',_0x253ed1,_0x2c0e75);},(_0x8d23d5,_0x17dc6f,_0x369ee1)=>{_0x369ee1['removeClass'](_0x27001d(_0x17dc6f['classes']),_0x8d23d5),_0x369ee1['removeAttribute']('data-suggestion-id',_0x8d23d5),_0x369ee1['removeAttribute']('data-author-id',_0x8d23d5);});}},{'priority':'highest'}),_0x4effe6['descriptionFactory']['registerDescriptionCallback'](_0x4127d2=>{if('insertion'!=_0x4127d2['type']&&'deletion'!=_0x4127d2['type'])return;const _0xa61a9b=_0x4127d2['getContainedElement']();if(null!=_0xa61a9b&&_0xa61a9b['is']('element','table')){if('insertion'==_0x4127d2['type']){const _0x3aa56e=_0x4127d2['getItems']()['filter'](_0x5e20d5=>_0x5e20d5['is']('$textProxy'))['map'](_0x3352c3=>_0x3352c3['data']);if(_0x3aa56e['length'])return{'type':'insertion','content':c(_0x33ada3,'*Insert:*\x20%0',c(_0x33ada3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3aa56e['join']('\x20')+'\x22'))};}if('deletion'==_0x4127d2['type']){const _0x28b3c7=_0x4127d2['getItems']()['filter'](_0xcb8a2c=>_0xcb8a2c['is']('$textProxy'))['map'](_0x5cad93=>_0x5cad93['data']);if(_0x28b3c7['length'])return{'type':'deletion','content':c(_0x33ada3,'*Remove:*\x20%0',c(_0x33ada3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x28b3c7['join']('\x20')+'\x22'))};}}}),_0x4effe6['descriptionFactory']['registerDescriptionCallback'](_0x27b06a=>{if('tableRow'==_0x27b06a['subType']){const _0x858077=_0x27b06a['getItems']()['filter'](_0x3ff800=>_0x3ff800['is']('$textProxy'))['map'](_0x5afdfb=>_0x5afdfb['data']),_0xf4195d=this['_getSuggestionCoords'](_0x27b06a),_0x2ef791=_0xf4195d['maxRow']-_0xf4195d['minRow']+0x1;if('insertion'==_0x27b06a['type'])return _0x858077['length']?{'type':'insertion','content':c(_0x33ada3,'*Insert:*\x20%0',c(_0x33ada3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ef791,'\x22'+_0x858077['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x33ada3,'*Insert:*\x20%0',c(_0x33ada3,'ELEMENT_TABLE_ROW',_0x2ef791))};if('deletion'==_0x27b06a['type'])return _0x858077['length']?{'type':'deletion','content':c(_0x33ada3,'*Remove:*\x20%0',c(_0x33ada3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ef791,'\x22'+_0x858077['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x33ada3,'*Remove:*\x20%0',c(_0x33ada3,'ELEMENT_TABLE_ROW',_0x2ef791))};}if('tableColumn'==_0x27b06a['subType']){const _0x53e57a=_0x27b06a['getItems']()['filter'](_0xb8bf0a=>_0xb8bf0a['is']('$textProxy'))['map'](_0x1a25ab=>_0x1a25ab['data']),_0x4ed254=this['_getSuggestionCoords'](_0x27b06a),_0x43f0eb=_0x4ed254['maxColumn']-_0x4ed254['minColumn']+0x1;if('insertion'==_0x27b06a['type'])return _0x53e57a['length']?{'type':'insertion','content':c(_0x33ada3,'*Insert:*\x20%0',c(_0x33ada3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x43f0eb,'\x22'+_0x53e57a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x33ada3,'*Insert:*\x20%0',c(_0x33ada3,'ELEMENT_TABLE_COLUMN',_0x43f0eb))};if('deletion'==_0x27b06a['type'])return _0x53e57a['length']?{'type':'deletion','content':c(_0x33ada3,'*Remove:*\x20%0',c(_0x33ada3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x43f0eb,'\x22'+_0x53e57a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x33ada3,'*Remove:*\x20%0',c(_0x33ada3,'ELEMENT_TABLE_COLUMN',_0x43f0eb))};}}),_0x4effe6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x58178b),_0x4effe6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x58178b),_0x4effe6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x262a28),_0x4effe6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x262a28),_0x4effe6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x35a5a8),_0x4effe6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x35a5a8),_0x4effe6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3702c4),_0x4effe6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3702c4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2d9a6e=this['editor'],_0x2ee209=_0x2d9a6e['model']['document']['selection'];return(_0xfe65b0,_0x55abad)=>{_0x2d9a6e['model']['change'](_0x1d27b7=>{const {commandName:_0x44e43d,commandParams:_0x44190d}=_0x55abad;let _0x5a54a8=_0xfe65b0[0x0]['end']['nodeBefore'];_0x44190d&&_0x44190d[0x0]&&!0x1===_0x44190d[0x0]['forceValue']&&(_0x5a54a8=_0xfe65b0[0x0]['start']['nodeAfter']);const _0x5a611c=_0x1d27b7['createRangeIn'](_0x5a54a8);if('$graveyard'==_0x5a611c['root']['rootName'])return;const _0x582d2b=Array['from'](_0x2ee209['getRanges']())['map'](_0x5cb8ba=>_0x1a5d6e['fromRange'](_0x5cb8ba));_0x1d27b7['setSelection'](_0x5a611c),_0x2d9a6e['commands']['get'](_0x44e43d)['refresh'](),_0x44190d['push']({'forceDefaultExecution':!0x0}),_0x2d9a6e['execute'](_0x44e43d,..._0x44190d);const _0x87ea51=_0x582d2b['filter'](_0x3c48ca=>'$graveyard'!=_0x3c48ca['root']['rootName']);_0x87ea51['length']>0x0&&_0x1d27b7['setSelection'](_0x87ea51);for(const _0x427afb of _0x582d2b)_0x427afb['detach']();});};}['_getCoordsForCells'](_0x4a5e33){const _0x41bb9c=this['editor']['plugins']['get']('TableUtils');let _0x37eea2=Number['MAX_SAFE_INTEGER'],_0x477367=Number['MIN_SAFE_INTEGER'],_0x53106f=Number['MAX_SAFE_INTEGER'],_0x1c37d0=Number['MIN_SAFE_INTEGER'];for(const _0x20240a of _0x4a5e33){if('$graveyard'==_0x20240a['root']['rootName'])continue;const {row:_0xf0bd98,column:_0x200e3b}=_0x41bb9c['getCellLocation'](_0x20240a),_0x14a9a8=_0x20240a['hasAttribute']('rowspan')?_0x20240a['getAttribute']('rowspan')-0x1:0x0,_0x3f554b=_0x20240a['hasAttribute']('colspan')?_0x20240a['getAttribute']('colspan')-0x1:0x0;_0x37eea2=_0xf0bd98<_0x37eea2?_0xf0bd98:_0x37eea2,_0x477367=_0xf0bd98+_0x14a9a8>_0x477367?_0xf0bd98+_0x14a9a8:_0x477367,_0x53106f=_0x200e3b<_0x53106f?_0x200e3b:_0x53106f,_0x1c37d0=_0x200e3b+_0x3f554b>_0x1c37d0?_0x200e3b+_0x3f554b:_0x1c37d0;}return{'minRow':_0x37eea2,'maxRow':_0x477367,'minColumn':_0x53106f,'maxColumn':_0x1c37d0};}['_setupColumnsRowsFixing'](){const _0x2daa16=this['editor'],_0x55d00c=_0x2daa16['plugins']['get']('TrackChangesEditing'),_0x14fe0f=_0x2daa16['plugins']['get']('TableUtils');_0x2daa16['model']['document']['on']('change:data',()=>{const _0x104fff=Array['from'](_0x2daa16['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22fe49,data:_0x1612c8}of _0x104fff){const {group:_0x294600,id:_0xa8b2b4,subType:_0x1fd966}=_0x55d00c['_splitMarkerName'](_0x22fe49);if('suggestion'!=_0x294600)continue;if(null!=_0x1612c8['oldRange'])continue;const _0x4a63c6=_0x55d00c['getSuggestion'](_0xa8b2b4);this['_tablePostFixingSubtypes']['includes'](_0x1fd966)&&this['_tableSuggestions']['add'](_0x4a63c6);}},{'priority':'low'});const _0x276954=(_0x5cb57c,_0x259ab1)=>{let _0x45b905=!0x1;const _0xe6992c=_0x259ab1['createRangeOn'](_0x5cb57c),_0x5dc1b1=_0x5cb57c['findAncestor']('table'),_0x487b2b=_0x14fe0f['getCellLocation'](_0x5cb57c);for(const _0x336865 of this['_tableSuggestions']){const _0x52f31a=_0x336865['subType'],_0x4defa8=_0x52f31a['startsWith']('tablePaste'),_0x22e84d=_0x52f31a['substr'](_0x4defa8?0xa:0x5),_0x31e055=_0x22e84d['toLowerCase'](),_0x4a73d2=_0x31e055['substr'](0x0,0x3)+'span',_0x11dee0='min'+_0x22e84d,_0x439599='max'+_0x22e84d;if(!_0x336865['isInContent'])continue;if(_0x5dc1b1!=_0x336865['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x336865['isIntersectingWithRange'](_0xe6992c))continue;const _0x260cfc=_0x5cb57c['hasAttribute'](_0x4a73d2)?_0x5cb57c['getAttribute'](_0x4a73d2)-0x1:0x0,_0x17d440=this['_getSuggestionCoords'](_0x336865),_0xb54252=_0x17d440[_0x11dee0],_0x120666=_0x17d440[_0x439599];_0xb54252<=_0x487b2b[_0x31e055]&&_0x487b2b[_0x31e055]+_0x260cfc<=_0x120666&&(_0x336865['addRange'](_0xe6992c),_0x45b905=!0x0);}return _0x45b905;};_0x2daa16['model']['document']['registerPostFixer'](_0xb35800=>{let _0x5f5a25=!0x1;for(const _0x29c46e of _0x2daa16['model']['document']['differ']['getChanges']())if('insert'==_0x29c46e['type']){if('tableRow'==_0x29c46e['name']){for(const _0x455940 of _0x29c46e['position']['nodeAfter']['getChildren']())_0x5f5a25=_0x5f5a25||_0x276954(_0x455940,_0xb35800);}else'tableCell'==_0x29c46e['name']&&(_0x5f5a25=_0x5f5a25||_0x276954(_0x29c46e['position']['nodeAfter'],_0xb35800));}return _0x5f5a25;});}['_getSuggestionCoords'](_0x4b5d26){return this['_getCoordsForCells'](_0x4b5d26['getRanges']()['map'](_0x588781=>_0x588781['start']['nodeAfter']));}}function xe(_0x5ee91b){return Array['from'](new Set(_0x5ee91b)['values']());}class Nt extends _0x465839{static get['requires'](){return[Ct];}['afterInit'](){const _0x33a1fa=this['editor'],_0x58530a=_0x33a1fa['model']['document']['selection'],_0x279b4d=_0x33a1fa['locale'];if(!_0x33a1fa['plugins']['has']('TableEditing'))return;const _0x3158eb=_0x33a1fa['plugins']['get']('TrackChangesEditing'),_0x55b8fa=_0x33a1fa['plugins']['get']('TableUtils'),_0x421a19=_0x33a1fa['plugins']['get'](Ct);_0x421a19['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3158eb['enableCommand']('mergeTableCells',()=>{const _0x59c276=_0x55b8fa['getSelectionAffectedTableCells'](_0x33a1fa['model']['document']['selection']);_0x33a1fa['model']['change'](()=>{_0x3158eb['markMultiRangeBlockFormat'](_0x59c276,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x33a1fa['commands']['get']('mergeTableCells')['on']('execute',(_0x307af5,_0x41f903)=>{_0x33a1fa['commands']['get']('trackChanges')['value']&&(_0x41f903['length']>0x0&&_0x41f903[_0x41f903['length']-0x1]&&_0x41f903[_0x41f903['length']-0x1]['forceDefaultExecution']||_0x3158eb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x307af5['stop']());},{'priority':'highest'});for(const _0xef005d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2ba7ae=_0x33a1fa['commands']['get'](_0xef005d);_0x3158eb['enableCommand'](_0xef005d,()=>{const _0x517615=_0x33a1fa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x491016=>_0x491016['is']('element','tableCell')),_0x271836=_0x2ba7ae['value'];_0x33a1fa['model']['change'](()=>{_0x3158eb['markMultiRangeBlockFormat']([_0x517615,_0x271836],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4e2800 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x382623=_0x33a1fa['commands']['get'](_0x4e2800);_0x3158eb['enableCommand'](_0x4e2800,()=>{const _0x6d8a6d=_0x55b8fa['getSelectionAffectedTableCells'](_0x33a1fa['model']['document']['selection'])[0x0],_0x2fbae3=_0x6d8a6d['findAncestor']('table'),{column:_0x3b6b28,row:_0x25aac3}=_0x55b8fa['getCellLocation'](_0x6d8a6d);let _0x10ae0a=[];if('horizontally'==_0x382623['direction']){const _0x323855=_0x55b8fa['createTableWalker'](_0x2fbae3,{'startRow':_0x25aac3,'endRow':_0x25aac3,'includeAllSlots':!0x0});_0x10ae0a=Array['from'](_0x323855)['map'](_0x2416be=>_0x2416be['cell']);}else{const _0x5de050=_0x55b8fa['createTableWalker'](_0x2fbae3,{'column':_0x3b6b28,'includeAllSlots':!0x0});_0x10ae0a=Array['from'](_0x5de050)['map'](_0x137fdb=>_0x137fdb['cell']);}_0x33a1fa['model']['change'](_0x412031=>{_0x3158eb['markBlockFormat'](_0x412031['createRangeOn'](_0x6d8a6d),{'commandName':_0x4e2800,'commandParams':[]},_0x10ae0a,_0x4e2800);});});}_0x3158eb['descriptionFactory']['registerDescriptionCallback'](_0x4f2c99=>{if('formatBlock'!=_0x4f2c99['type']&&'formatInline'!=_0x4f2c99['type'])return;const {data:_0x5c99e0}=_0x4f2c99;return _0x5c99e0&&'mergeTableCells'==_0x5c99e0['commandName']?{'type':'format','content':c(_0x279b4d,'*Merge\x20cells*')}:void 0x0;}),_0x3158eb['descriptionFactory']['registerDescriptionCallback'](_0x5e7c71=>{if('formatBlock'!=_0x5e7c71['type']&&'formatInline'!=_0x5e7c71['type'])return;const {data:_0x222f4b}=_0x5e7c71;return _0x222f4b?'splitTableCellVertically'==_0x222f4b['commandName']?{'type':'format','content':c(_0x279b4d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x222f4b['commandName']?{'type':'format','content':c(_0x279b4d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xc11941=_0x421a19['_acceptFormatSuggestionCallbackFactory']();for(const _0x5837ae of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3158eb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5837ae,'accept',_0xc11941);for(const _0x59f376 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3158eb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59f376,'accept',_0xc11941);_0x3158eb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x17c537=>{_0x33a1fa['model']['change'](_0x13958d=>{const _0x31f45a=Array['from'](_0x58530a['getRanges']())['map'](_0x4e1835=>_0x1a5d6e['fromRange'](_0x4e1835));_0x13958d['setSelection'](_0x17c537),_0x33a1fa['commands']['get']('mergeTableCells')['refresh'](),_0x33a1fa['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x48fed6=_0x31f45a['filter'](_0x3eacd3=>'$graveyard'!=_0x3eacd3['root']['rootName']);_0x48fed6['length']>0x0&&_0x13958d['setSelection'](_0x48fed6);for(const _0xc972fa of _0x31f45a)_0xc972fa['detach']();});});for(const _0x565a7f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x299a4a=_0x33a1fa['commands']['get'](_0x565a7f);_0x299a4a['on']('set:isEnabled',(_0x270957,_0x596947,_0x5a420e)=>{if(_0x5a420e){const _0x3acc2e=_0x33a1fa['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42c473=>_0x42c473['is']('element','tableCell'));this['_areMergableCells'](_0x299a4a['value'],_0x3acc2e)||(_0x270957['return']=!0x1,_0x270957['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x29db98=this['editor']['commands']['get']('mergeTableCells'),_0x5ad5cf=this['editor']['plugins']['get']('TableUtils');if(!_0x29db98['isEnabled'])return!0x1;const _0x536c33=_0x5ad5cf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3bc6c8 of _0x536c33)for(const _0x37a465 of _0x536c33)if(_0x3bc6c8!=_0x37a465&&!this['_areMergableCells'](_0x3bc6c8,_0x37a465))return!0x1;return!0x0;}['_areMergableCells'](_0xf5626e,_0x368cc3){const _0x438df6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xaef7a5=this['editor']['model']['createRangeOn'](_0xf5626e),_0x1eee01=this['editor']['model']['createRangeOn'](_0x368cc3),_0x2a374b=new Set(),_0x19f663=new Set();for(const _0x43a63f of _0x438df6['getSuggestions']())if(('insertion'==_0x43a63f['type']||'deletion'==_0x43a63f['type']||'mergeTableCells'==_0x43a63f['subType'])&&_0x43a63f['isInContent']){for(const _0x1c92dd of _0x43a63f['getRanges']())_0x1c92dd['containsRange'](_0xaef7a5,!0x0)&&_0x2a374b['add'](_0x43a63f['type']+':'+_0x43a63f['author']['id']),_0x1c92dd['containsRange'](_0x1eee01,!0x0)&&_0x19f663['add'](_0x43a63f['type']+':'+_0x43a63f['author']['id']);}if(_0x2a374b['size']!=_0x19f663['size'])return!0x1;for(const _0x3efabf of _0x2a374b)if(!_0x19f663['has'](_0x3efabf))return!0x1;return!0x0;}}class Dt extends _0x465839{static get['requires'](){return[Ct];}['afterInit'](){const _0x420056=this['editor'];if(!_0x420056['plugins']['has']('TableEditing'))return;const _0x48ec3a=_0x420056['locale'],_0x154e78=_0x420056['plugins']['get']('TrackChangesEditing');_0x154e78['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x154e78['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x154e78['registerBlockAttribute']('headingRows'),_0x154e78['registerBlockAttribute']('headingColumns'),_0x154e78['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x48ec3a,'FORMAT_HEADER_ROW')),_0x154e78['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x48ec3a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x325af1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x110a10=this['editor']['plugins']['get']('TableUtils'),_0x3aa3ef=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x162c23({showActiveMarker:_0xd0df0d=!0x0,setDataAttribute:_0x5b1df1=!0x0}={}){return(_0x53e989,_0x47e6c9,_0x1c459f)=>{const {type:_0x558ec1,id:_0x4189c3}=_0x325af1['_splitMarkerName'](_0x47e6c9['markerName']),_0x1e5b5d=_0x325af1['getSuggestion'](_0x4189c3),_0x43c398=_0x1e5b5d['data'];if('formatBlock'!=_0x1e5b5d['type']||!_0x43c398||'setTableColumnHeader'!=_0x43c398['commandName'])return;if(_0x47e6c9['item'])return void _0x53e989['stop']();if(!_0x1c459f['consumable']['consume'](_0x47e6c9['markerRange'],_0x53e989['name']))return;const _0xa7b306=_0x47e6c9['markerRange']['start']['nodeAfter'],_0x90855=_0x47e6c9['markerRange']['end']['nodeBefore'],_0x53f581=_0xa7b306['parent']['parent'],{column:_0x34787e}=_0x110a10['getCellLocation'](_0xa7b306),{column:_0x52fc0e}=_0x110a10['getCellLocation'](_0x90855);for(let _0x2dac54=_0x34787e;_0x2dac54<=_0x52fc0e;_0x2dac54++){const _0x814bcd=_0x110a10['createTableWalker'](_0x53f581,{'column':_0x2dac54,'includeAllSlots':!0x1});for(const _0x3f790b of _0x814bcd){const _0x123d27=_0x3f790b['cell'],_0x4c77b2=_0x1c459f['mapper']['toViewElement'](_0x123d27);_0x1c459f['writer']['addClass']('ck-suggestion-marker-'+_0x558ec1,_0x4c77b2),_0x5b1df1&&_0x1c459f['writer']['setAttribute']('data-suggestion',_0x4189c3,_0x4c77b2),_0x1c459f['mapper']['bindElementToMarker'](_0x4c77b2,_0x47e6c9['markerName']),_0xd0df0d&&(_0x325af1['activeMarkers']['includes'](_0x47e6c9['markerName'])?_0x1c459f['writer']['addClass']('ck-suggestion-marker--active',_0x4c77b2):_0x1c459f['writer']['removeClass']('ck-suggestion-marker--active',_0x4c77b2));}}};}_0x325af1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3aa3ef),_0x325af1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3aa3ef),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x162c23(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x17df14,_0x4745c4,_0x5a647d)=>{_0x5a647d['options']['showSuggestionHighlights']&&_0x162c23({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x17df14,_0x4745c4,_0x5a647d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x46dcc5,_0x1fe0c0,_0x99c165)=>{const {type:_0x18cfb1,id:_0x356cf1}=_0x325af1['_splitMarkerName'](_0x1fe0c0['markerName']),_0x311968=_0x325af1['getSuggestion'](_0x356cf1),_0xf3e7ad=_0x311968['data'];if('formatBlock'!=_0x311968['type']||!_0xf3e7ad||'setTableColumnHeader'!=_0xf3e7ad['commandName'])return;const _0x382354=_0x99c165['mapper']['markerNameToElements'](_0x1fe0c0['markerName']);if(_0x382354){for(const _0x48c25f of _0x382354)_0x99c165['writer']['removeClass']('ck-suggestion-marker-'+_0x18cfb1,_0x48c25f),_0x99c165['writer']['removeClass']('ck-suggestion-marker--active',_0x48c25f),_0x99c165['writer']['removeAttribute']('data-suggestion',_0x48c25f),_0x99c165['mapper']['unbindElementFromMarkerName'](_0x48c25f,_0x1fe0c0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11f2bb=this['editor'],_0x332bb1=_0x11f2bb['locale'];function _0x506b66(_0x2568da){return{'type':'format','content':c(_0x332bb1,'*Format:*\x20%0',_0x2568da)};}_0x11f2bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x125d25=>{if('formatBlock'!=_0x125d25['type'])return;const {data:_0x578ba7}=_0x125d25;if(_0x578ba7){if('setTableRowHeader'==_0x578ba7['commandName']){const _0xf3f30=_0x578ba7['commandParams'][0x0]['forceValue'];return _0x506b66(c(_0x332bb1,_0xf3f30?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x578ba7['commandName']){const _0x447a44=_0x578ba7['commandParams'][0x0]['forceValue'];return _0x506b66(c(_0x332bb1,_0x447a44?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x465839{['afterInit'](){const _0x2b1b17=this['editor'],_0x508869=_0x2b1b17['locale'],_0xe29f0b=_0x2b1b17['plugins']['get']('TrackChangesEditing');function _0xe640c(_0x48961b){return{'type':'format','content':''+c(_0x508869,'*Set\x20table\x20type:*\x20%0',_0x48961b)};}_0x2b1b17['plugins']['has']('TableLayout')&&(_0xe29f0b['enableCommand']('insertTableLayout'),_0xe29f0b['enableDefaultAttributesIntegration']('tableType'),_0xe29f0b['registerBlockAttribute']('tableType'),_0xe29f0b['descriptionFactory']['registerElementLabel'](_0x238a79=>_0x238a79['is']('element','table')&&'layout'===_0x238a79['getAttribute']('tableType'),_0x47b7ab=>c(_0x508869,'ELEMENT_LAYOUT_TABLE',_0x47b7ab)),_0xe29f0b['descriptionFactory']['registerDescriptionCallback'](_0x28f265=>{const {data:_0x47c4c1}=_0x28f265;if(_0x47c4c1&&'tableType'==_0x47c4c1['key'])switch(_0x47c4c1['newValue']){case'layout':return _0xe640c(c(_0x508869,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xe640c(c(_0x508869,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3bf066=>[_0x3bf066,null]));class $t extends _0x465839{static get['requires'](){return[Ct];}['afterInit'](){const _0x177804=this['editor'];if(!_0x177804['plugins']['has']('TableClipboard'))return;const _0x4faa31=_0x177804['plugins']['get']('TrackChangesEditing'),_0x347436=_0x177804['plugins']['get']('TableUtils'),_0x46f843=_0x177804['plugins']['get'](Ct),_0x2fa55d=_0x177804['plugins']['get']('TableClipboard'),_0x4f8396=_0x177804['plugins']['get']('TableSelection'),_0x175b46=_0x177804['plugins']['get'](_0x1a48ee);_0x46f843['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x177804['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x177804['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x24ac73=null,_0x5cc353=!0x1;_0x175b46['on']('contentInsertion',(_0x224b04,_0x51b700)=>{_0x5cc353='paste'===_0x51b700['method'];}),_0x177804['model']['on']('insertContent',(_0x43477c,_0x299fd1)=>{if(!_0x5cc353&&null===_0x4f8396['getSelectedTableCells']())return;const [_0x5274cc,_0x5a8438]=_0x299fd1,_0x26c7dc=_0x299fd1[_0x299fd1['length']-0x1];_0x26c7dc&&_0x26c7dc['forceDefaultExecution']||_0x4faa31['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x37245,_0x180744,_0x14649c,_0x1d9c18,_0x530e18){if(_0x180744&&!_0x180744['is']('documentSelection'))return!0x1;const _0x2cb6e8=_0x530e18['getTableIfOnlyTableInContent'](_0x37245,_0x14649c);if(!_0x2cb6e8||!He(_0x2cb6e8,void 0x0,_0x1d9c18))return!0x1;const _0x3f09b0=_0x1d9c18['getSelectionAffectedTableCells'](_0x14649c['document']['selection']);if(!_0x3f09b0['length'])return!0x1;const _0x400855=_0x3f09b0[0x0]['findAncestor']('table'),_0x130413=_0x1d9c18['getRowIndexes'](_0x3f09b0),_0x2781e4=_0x1d9c18['getColumnIndexes'](_0x3f09b0),_0x14a411={'startRow':_0x130413['first'],'endRow':_0x130413['last'],'startColumn':_0x2781e4['first'],'endColumn':_0x2781e4['last']};return 0x1==_0x3f09b0['length']&&(_0x14a411['endRow']+=_0x1d9c18['getRows'](_0x2cb6e8)-0x1,_0x14a411['endColumn']+=_0x1d9c18['getColumns'](_0x2cb6e8)-0x1),He(_0x400855,_0x14a411,_0x1d9c18);}(_0x5274cc,_0x5a8438,_0x177804['model'],_0x347436,_0x2fa55d)&&(_0x43477c['stop'](),_0x24ac73={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x177804['model']['change'](()=>{_0x177804['model']['insertContent'](_0x299fd1[0x0],_0x299fd1[0x1],_0x299fd1[0x2],{'forceDefaultExecution':!0x0});const _0x2842aa=_0x21999f(),{rowInsertionRanges:_0x6946c7,columnInsertionRanges:_0x5a257a,insertionRanges:_0x50d843,deletionRanges:_0x3de354,cells:_0x4cf5f8}=_0x24ac73;_0x6946c7['length']&&_0x4faa31['markMultiRangeInsertion'](_0x6946c7,'tablePasteRow',{'tablePasteChainId':_0x2842aa}),_0x5a257a['length']&&_0x4faa31['markMultiRangeInsertion'](_0x5a257a,'tablePasteColumn',{'tablePasteChainId':_0x2842aa}),_0x50d843['length']&&(_0x4faa31['markMultiRangeInsertion'](_0x50d843,'tablePaste',{'tablePasteChainId':_0x2842aa,'skipNestingCheck':!0x0}),_0x50d843['forEach'](_0x3ba2f9=>_0x3ba2f9['detach']?.())),_0x3de354['length']&&(_0x4faa31['markMultiRangeDeletion'](_0x3de354,'tablePaste',{'tablePasteChainId':_0x2842aa,'skipNestingCheck':!0x0}),_0x3de354['forEach'](_0x22ac09=>_0x22ac09['detach']?.()));const _0x14060d=_0x4faa31['markMultiRangeBlockFormat'](_0x4cf5f8['map'](({element:_0xb81cb5})=>_0xb81cb5),{'formatGroupId':_0x21999f()},[],'tablePasteCell',{'tablePasteChainId':_0x2842aa});if(_0x14060d){const _0x554149=_0x14060d['getMarkers'](),_0x68c10e=[];for(const {element:_0x2353c3,attributes:_0x12b18c}of _0x4cf5f8){if(!_0x12b18c)continue;const _0x21c8ea=_0x177804['model']['createRangeOn'](_0x2353c3),_0x34f617=_0x554149['find'](_0x3ba0d0=>_0x3ba0d0['getRange']()['isEqual'](_0x21c8ea));_0x34f617&&_0x68c10e['push']([_0x34f617['name'],_0x12b18c]);}_0x68c10e['length']&&_0x14060d['setAttribute']('markerAttributes',Object['fromEntries'](_0x68c10e));}_0x24ac73=null;}));},{'priority':_0x38d918['high']+0xa}),_0x175b46['on']('contentInsertion',()=>{_0x5cc353=!0x1;},{'priority':'lowest'}),_0x177804['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3e4dac,_0x4171f1)=>{const [_0xacf557,_0x46bc41,,_0x2e37e1]=_0x4171f1;if(!_0x24ac73)return;_0x3e4dac['stop']();const _0x1177b6=_0xacf557['cell'],_0x13d1b1=_0x46bc41,_0x9106d5=De(_0x1177b6),_0xcf05b7=De(_0x13d1b1);_0x3e4dac['return']=_0x1177b6;let _0x4cd76b=null,_0x2d567b=null;if(_0xcf05b7||_0x9106d5){if(_0x9106d5&&!_0xcf05b7){_0x2e37e1['remove'](_0x1177b6['getChild'](0x0));for(const _0x3593fc of Array['from'](_0x13d1b1['getChildren']()))_0x2e37e1['insert'](_0x3593fc,_0x1177b6,'end');const _0x3d08f4=_0x24ac73['rowInsertionIndexes']['includes'](_0xacf557['row']),_0xa02db6=_0x24ac73['columnInsertionIndexes']['includes'](_0xacf557['column']);_0x3d08f4||_0xa02db6||(_0x4cd76b=_0x1a5d6e['fromRange'](_0x2e37e1['createRangeIn'](_0x1177b6)));}else _0xcf05b7&&!_0x9106d5&&(_0x2d567b=_0x2e37e1['createRangeIn'](_0x1177b6));}else{const _0x4718d8=_0x2e37e1['createElement']('tableCellSuggestion'),_0x4e3592=_0x2e37e1['createElement']('tableCellSuggestion');_0x2e37e1['wrap'](_0x2e37e1['createRangeIn'](_0x1177b6),_0x4e3592),_0x2e37e1['insert'](_0x4718d8,_0x1177b6,0x0);for(const _0x1b47cd of Array['from'](_0x13d1b1['getChildren']()))_0x2e37e1['insert'](_0x1b47cd,_0x4718d8,'end');_0x4cd76b=_0x1a5d6e['fromRange'](_0x2e37e1['createRangeOn'](_0x4718d8)),_0x2d567b=_0x1a5d6e['fromRange'](_0x2e37e1['createRangeOn'](_0x4e3592));}const _0x5f2b97=Array['from'](_0x13d1b1['getAttributes']())['filter'](([_0x520c3c])=>Oe['includes'](_0x520c3c));_0x24ac73['cells']['push']({'element':_0x1177b6,'attributes':_0x5f2b97['length']?Object['fromEntries'](_0x5f2b97):null}),_0x4cd76b&&_0x24ac73['insertionRanges']['push'](_0x4cd76b),_0x2d567b&&_0x24ac73['deletionRanges']['push'](_0x2d567b);},{'priority':'high'}),_0x347436['on']('insertColumns',(_0x371e34,_0x295432)=>{const [_0x347d2c,_0x208cfc={}]=_0x295432;if(!_0x24ac73)return;const _0x1e524f=_0x208cfc['at']||0x0,_0x132df4=_0x208cfc['columns']||0x1;_0x24ac73['columnInsertionIndexes']=new Array(_0x132df4)['fill'](_0x1e524f)['map']((_0x3c5f08,_0x5cde0c)=>_0x3c5f08+_0x5cde0c);for(const {cell:_0xa8512b}of _0x347436['createTableWalker'](_0x347d2c,{'startColumn':_0x1e524f,'endColumn':_0x1e524f+_0x132df4-0x1}))_0x24ac73['columnInsertionRanges']['push'](_0x177804['model']['createRangeOn'](_0xa8512b));},{'priority':'low'}),_0x347436['on']('insertRows',(_0x5f445e,_0x13c02d)=>{const [_0x4ea0b0,_0x47ffad={}]=_0x13c02d;if(!_0x24ac73)return;const _0x9d486d=_0x47ffad['at']||0x0,_0x14b86a=_0x47ffad['rows']||0x1;_0x24ac73['rowInsertionIndexes']=new Array(_0x14b86a)['fill'](_0x9d486d)['map']((_0x5c0fca,_0x24057a)=>_0x5c0fca+_0x24057a);for(const {cell:_0x5dd79e}of _0x347436['createTableWalker'](_0x4ea0b0,{'startRow':_0x9d486d,'endRow':_0x9d486d+_0x14b86a-0x1}))_0x24ac73['rowInsertionRanges']['push'](_0x177804['model']['createRangeOn'](_0x5dd79e));},{'priority':'low'}),_0x4faa31['descriptionFactory']['registerDescriptionCallback'](_0x1edd26=>{if(_0x1edd26['subType']&&_0x1edd26['subType']['startsWith']('tablePaste'))return _0x1edd26['previous']?{}:{'type':'insertion','content':c(_0x177804['locale'],'*Replace\x20table\x20cells*')};});const _0x197c96=()=>!0x1;for(const _0x6977b9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4faa31['_suggestionFactory']['registerCustomCallback']('insertion',_0x6977b9,'join',_0x197c96),_0x4faa31['_suggestionFactory']['registerCustomCallback']('deletion',_0x6977b9,'join',_0x197c96),_0x4faa31['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6977b9,'join',_0x197c96);_0x4faa31['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x197c96),_0x4faa31['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x7fb321,_0x50c0e8,_0x208a95)=>{const _0x27f5d2=_0x7fb321['map'](_0x5d0a00=>_0x5d0a00['getContainedElement']())['filter'](_0x40ea8b=>_0x40ea8b),_0x2e8197=new Map(_0x27f5d2['map'](_0x5b1746=>[_0x5b1746,null]));if(_0x24ac73){for(const {element:_0x3ee8fd,attributes:_0x4b2abf}of _0x24ac73['cells'])_0x4b2abf&&_0x2e8197['set'](_0x3ee8fd,_0x4b2abf);}else{if(_0x208a95&&_0x208a95['markerAttributes'])for(const [_0x12b072,_0x46a817]of Object['entries'](_0x208a95['markerAttributes'])){const _0x278e6f=_0x177804['model']['markers']['get'](_0x12b072),_0x3e1b88=_0x278e6f?_0x278e6f['getRange']()['getContainedElement']():null;_0x3e1b88&&_0x2e8197['set'](_0x3e1b88,_0x46a817);}}_0x177804['model']['change'](_0x3aa233=>{for(const [_0x13413b,_0x580c98]of _0x2e8197)_0x3aa233['setAttributes']({...Ue,..._0x580c98},_0x13413b);});});const _0x432a36=(_0x2fd1f6,_0x4fdaa9)=>{_0x4faa31['_suggestionFactory']['registerCustomCallback'](_0x2fd1f6,'tablePaste',_0x4fdaa9,(_0x422173,_0x113d3d,_0x2521b1)=>{_0x177804['model']['change'](_0x4faaf0=>{const _0x37043c=[];for(const _0x5c7e77 of _0x422173){const _0x47812f=_0x5c7e77['start']['nodeAfter'];_0x47812f['is']('element','tableCellSuggestion')&&_0x37043c['push'](_0x47812f);}_0x4faa31['_suggestionFactory']['getSuggestionCallback'](_0x2fd1f6,null,_0x4fdaa9)(_0x422173,_0x113d3d,_0x2521b1);for(const _0x9781f9 of _0x37043c)'$graveyard'!=_0x9781f9['root']['rootName']&&_0x4faaf0['unwrap'](_0x9781f9);});});};_0x432a36('insertion','accept'),_0x432a36('insertion','discard'),_0x432a36('deletion','accept'),_0x432a36('deletion','discard'),_0x4faa31['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5e9f28=>{const _0x5bce6b=_0x5e9f28['map'](_0x9c11d5=>_0x9c11d5['getContainedElement']()),_0x3442f1=_0x5bce6b[0x0]['findAncestor']('table'),{minRow:_0x38e67c,maxRow:_0x304f8e}=_0x46f843['_getCoordsForCells'](_0x5bce6b);_0x347436['removeRows'](_0x3442f1,{'at':_0x38e67c,'rows':_0x304f8e-_0x38e67c+0x1});}),_0x4faa31['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x39a34b=>{const _0x52ead7=_0x39a34b['map'](_0x2e0ca7=>_0x2e0ca7['getContainedElement']()),_0x34ff14=_0x52ead7[0x0]['findAncestor']('table'),{minColumn:_0x274c76,maxColumn:_0x337d86}=_0x46f843['_getCoordsForCells'](_0x52ead7);_0x347436['removeColumns'](_0x34ff14,{'at':_0x274c76,'columns':_0x337d86-_0x274c76+0x1});});const _0x3096ed=(_0x366692,_0x4fa92d)=>{if(!_0x4fa92d['subType']||!_0x4fa92d['subType']['startsWith']('tablePaste'))return;const _0x7c781c=_0x4fa92d['attributes']['tablePasteChainId'],_0x5ba57c=_0x4faa31['getSuggestions']()['filter'](_0xa6f0b8=>_0xa6f0b8['isInContent']&&_0xa6f0b8['attributes']&&_0xa6f0b8['attributes']['tablePasteChainId']==_0x7c781c);_0x5ba57c['length']&&_0x4fa92d['getAllAdjacentSuggestions']()['length']!=_0x5ba57c['length']&&_0x5ba57c['reduce']((_0x5d8151,_0x5a29e4)=>(_0x5d8151['next']=_0x5a29e4,_0x5a29e4['previous']=_0x5d8151,_0x5a29e4));};function _0x10b701(_0x3bc6c0,_0x2b9964=!0x0){const {id:_0x481b08,authorId:_0x1e82a2}=_0x4faa31['_splitMarkerName'](_0x3bc6c0['markerName']),_0x3d939e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x29b41f=_0x4faa31['activeMarkers']['includes'](_0x3bc6c0['markerName']);return _0x29b41f&&_0x3d939e['push']('ck-suggestion-marker--active'),{'classes':_0x3d939e,'attributes':{'data-suggestion':_0x481b08,'data-author-id':_0x1e82a2},'priority':_0x29b41f&&_0x2b9964?0xbc2:0xbb8};}_0x4faa31['on']('suggestionLoaded',_0x3096ed,{'priority':'high'}),_0x4faa31['on']('suggestionUnloaded',_0x3096ed,{'priority':'high'}),_0x177804['model']['document']['registerPostFixer'](()=>{let _0x5cc47b=!0x1;const _0x5ab6cc=Array['from'](_0x177804['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bc9fd,data:_0x4cffcd}of _0x5ab6cc){const {group:_0x1ab606,type:_0xe432b8,id:_0x4cbdf5}=_0x4faa31['_splitMarkerName'](_0x3bc9fd);if('suggestion'!=_0x1ab606||'deletion'!=_0xe432b8||_0x4cffcd['oldRange'])continue;if(!_0x4faa31['hasSuggestion'](_0x4cbdf5))continue;const _0x55661c=_0x4faa31['getSuggestion'](_0x4cbdf5)['getRanges'](),_0x20abd3=_0x177804['plugins']['get']('Users')['me'];for(const _0x562e54 of _0x4faa31['getSuggestions']()){if(!_0x562e54['isInContent']||_0x562e54['author']!=_0x20abd3)continue;if('formatBlock'!=_0x562e54['type']||'tablePasteCell'!=_0x562e54['subType'])continue;if(_0x562e54['getRanges']()['every'](_0x32ea29=>_0x55661c['some'](_0x4ae81f=>_0x4ae81f['containsRange'](_0x32ea29,!0x0)))){for(const _0xeafdc0 of _0x562e54['getAllAdjacentSuggestions']())_0xeafdc0['isInContent']&&(_0xeafdc0['discard'](),_0x5cc47b=!0x0);}}}return _0x5cc47b;}),_0x177804['model']['document']['registerPostFixer'](_0x4fd7f5=>{const _0xce0601=_0x177804['commands']['get']('redo');if(!_0xce0601||!_0xce0601['_createdBatches']['has'](_0x4fd7f5['batch']))return!0x1;let _0x474810=!0x1;const _0x521bfc=_0x177804['plugins']['get']('Users')['me'],_0xeaecbc=_0x177804['model']['document']['differ']['getChanges'](),_0x22c32e=Array['from'](_0x177804['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x193d2c,data:_0x1e9759})=>{const {group:_0x46377f,subType:_0x26cb04,authorId:_0x18b613}=_0x4faa31['_splitMarkerName'](_0x193d2c);return'suggestion'==_0x46377f&&'tablePaste'==_0x26cb04&&_0x18b613==_0x521bfc['id']&&!_0x1e9759['oldRange'];});for(const _0x4d1600 of _0xeaecbc){if('insert'!=_0x4d1600['type']||'tableCellSuggestion'!=_0x4d1600['name']||0x1!=_0x4d1600['length'])continue;const _0x4bf1f7=_0x4fd7f5['createRange'](_0x4d1600['position'],_0x4d1600['position']['getShiftedBy'](0x1));if(!_0x22c32e['find'](({data:_0x3ca901})=>_0x3ca901['newRange']['isEqual'](_0x4bf1f7))){for(const {name:_0x362c4b,data:_0x397f83}of _0x22c32e)if(_0x4bf1f7['containsRange'](_0x397f83['newRange'])){_0x4fd7f5['updateMarker'](_0x362c4b,{'range':_0x4bf1f7}),_0x474810=!0x0;break;}}}return _0x474810;}),_0x177804['model']['document']['registerPostFixer'](_0x5288b3=>{let _0x13a9d7=!0x1;const _0x2d061d=_0x177804['plugins']['get']('Users')['me'],_0x1e7135=_0x4faa31['getSuggestions']()['filter'](_0x4a729f=>_0x4a729f['isInContent']&&_0x4a729f['author']==_0x2d061d),_0x200f5e=new Set(),_0x50046d=new Set();for(const _0x245654 of _0x1e7135)if('tablePaste'==_0x245654['subType'])for(const _0x1a67e0 of _0x245654['getMarkers']()){const _0x108994=_0x1a67e0['getRange']()['getContainedElement']();if(_0x108994){if(_0x108994['is']('element','tableCellSuggestion')&&De(_0x108994)){_0x245654['removeMarker'](_0x1a67e0['name']),_0x200f5e['add'](_0x108994),_0x13a9d7=!0x0;const _0x1e447f=_0x108994['nextSibling'],_0x234a12=_0x108994['previousSibling'],_0x229b09=_0x1e447f&&_0x1e447f['is']('element','tableCellSuggestion'),_0x29b53d=_0x234a12&&_0x234a12['is']('element','tableCellSuggestion');_0x229b09&&!_0x200f5e['has'](_0x1e447f)&&_0x50046d['add'](_0x1e447f),_0x29b53d&&!_0x200f5e['has'](_0x234a12)&&_0x50046d['add'](_0x234a12);}else _0x108994['is']('element','paragraph')&&_0x108994['isEmpty']&&(_0x245654['removeMarker'](_0x1a67e0['name']),_0x13a9d7=!0x0);}}else{if('tablePasteCell'==_0x245654['subType']){if(!_0x245654['attributes']||!_0x245654['attributes']['tablePasteChainId'])continue;const _0x29a475=_0x245654['attributes']['markerAttributes'];if(_0x29a475&&Object['keys'](_0x29a475)['length'])continue;const _0x206a73=_0x245654['attributes']['tablePasteChainId'];let _0x23d4c5=!0x0,_0x202326=!0x0;for(const _0x218397 of _0x1e7135)if(_0x218397['subType']&&_0x218397['subType']['startsWith']('tablePaste')){if(!_0x218397['attributes']['tablePasteChainId']){_0x202326=!0x1;break;}if(_0x218397['id']!=_0x245654['id']&&_0x218397['attributes']['tablePasteChainId']==_0x206a73){_0x23d4c5=!0x1;break;}}_0x202326&&_0x23d4c5&&(_0x245654['removeMarkers'](),_0x13a9d7=!0x0);}}for(const _0x32cede of _0x200f5e)_0x5288b3['remove'](_0x32cede);for(const _0x488858 of _0x50046d)_0x5288b3['unwrap'](_0x488858);return _0x13a9d7;}),_0x177804['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x592593=>_0x10b701(_0x592593),'converterPriority':'high'}),_0x177804['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4e16b3,_0x230b85)=>_0x230b85['options']['showSuggestionHighlights']?_0x10b701(_0x4e16b3,!0x1):null,'converterPriority':'high'});const _0x149c6c=_0x177804['editing']['view'];this['listenTo'](_0x149c6c['document'],'clipboardOutput',(_0x865e6d,_0x116da0)=>{const _0x187142=[];for(const _0x168a27 of _0x149c6c['createRangeIn'](_0x116da0['content'])['getItems']())_0x168a27['is']('element','suggestion-td')&&_0x187142['push'](_0x168a27);_0x149c6c['change'](_0x20fe6d=>{for(const _0x329e88 of _0x187142)_0x20fe6d['move'](_0x20fe6d['createRangeIn'](_0x329e88),_0x20fe6d['createPositionBefore'](_0x329e88)),_0x20fe6d['remove'](_0x329e88);});});}}function De(_0x26adfe){if(_0x26adfe['isEmpty'])return!0x0;const _0x48f166=_0x26adfe['getChild'](0x0);return _0x48f166['is']('element','paragraph')&&_0x48f166['isEmpty'];}function He(_0x5b0603,_0xe4a1ab={},_0x5c836d){for(const {isAnchor:_0x4ac1d7,cellHeight:_0x4c8152,cellWidth:_0x99cda2}of _0x5c836d['createTableWalker'](_0x5b0603,{'includeAllSlots':!0x0,..._0xe4a1ab}))if(!_0x4ac1d7||0x1!=_0x4c8152||0x1!=_0x99cda2)return!0x1;return!0x0;}class Bt extends _0x465839{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x125669=this['editor']['plugins']['get']('TrackChangesEditing');_0x125669['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x125669['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x125669['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x125669['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x125669['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x125669['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x488728,_0xfb039f){const _0x1267df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x321d07=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x489f70=_0xfb039f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5df8d0=_0x321d07['getColumnGroupElement'](_0x489f70);let _0xdf6270=_0x5df8d0?_0x321d07['getTableColumnsWidths'](_0x5df8d0):null,_0xeb339f=_0x489f70['getAttribute']('tableWidth')||null;const _0x39377d=_0xfb039f['tableWidth']||_0xeb339f,_0x7723e8=_0xfb039f['columnWidths']||_0xdf6270,_0x51d55d=this['editor']['plugins']['get']('Users')['me'];for(const _0x2e5b6a of _0x1267df['getSuggestions']()){const _0x48afa2=_0x2e5b6a['getContainedElement']();if('resizeTable'===_0x2e5b6a['subType']&&_0x48afa2===_0x489f70){_0x2e5b6a['author']!==_0x51d55d&&_0x2e5b6a['discard']();const _0x25ca0a=_0x2e5b6a['data']['commandParams'];_0xeb339f=_0x25ca0a[0x0]['tableWidth'],_0xdf6270=_0x25ca0a[0x0]['columnWidths'];break;}}_0x488728({'table':_0x489f70,'tableWidth':_0x39377d,'columnWidths':_0x7723e8}),_0x1267df['markBlockFormat'](_0x489f70,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xeb339f,'columnWidths':_0xdf6270}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f827c){if('formatBlock'!=_0x4f827c['type']&&'formatInline'!=_0x4f827c['type'])return;const {data:_0x58720e}=_0x4f827c;if(_0x58720e&&'resizeTable'===_0x58720e['formatGroupId']){const _0x420c48='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x420c48)};}}}class xt extends _0x465839{['afterInit'](){const _0x5b13e0=this['editor'];_0x5b13e0['plugins']['has']('Template')&&_0x5b13e0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x465839{['afterInit'](){const _0x189870=this['editor'];if(!_0x189870['commands']['get']('insertTableOfContents'))return;_0x189870['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1c2aa9=_0x189870['plugins']['get']('TrackChangesEditing'),_0x184511=_0x189870['locale'];_0x1c2aa9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2b57c0=>c(_0x184511,'ELEMENT_TABLE_OF_CONTENTS',_0x2b57c0));}}class Rt extends _0x465839{['afterInit'](){const _0x32da4d=this['editor'];if(!_0x32da4d['plugins']['has']('Title'))return;const _0x52eebf=_0x32da4d['plugins']['get']('TrackChangesEditing');_0x52eebf['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x32da4d['locale'],'ELEMENT_TITLE')),_0x32da4d['model']['document']['registerPostFixer'](_0x345649=>{let _0x2c6456=!0x1;const _0x66e50c=Array['from'](_0x32da4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35b814,data:_0x33d027}of _0x66e50c){const {group:_0xe6353f}=_0x52eebf['_splitMarkerName'](_0x35b814);if('suggestion'!==_0xe6353f||!_0x33d027['newRange'])continue;const _0x1c7906=_0x33d027['newRange'],_0x108ab5=_0x1c7906['end']['nodeBefore'];if(!_0x108ab5||!_0x108ab5['is']('element','title-content'))continue;if(!_0x1c7906['start']['isTouching'](_0x1c7906['end']))continue;const _0x270a05=_0x32da4d['model']['schema']['getNearestSelectionRange'](_0x1c7906['end'],'forward');if(_0x270a05&&_0x270a05['isCollapsed']){const _0x372047=_0x345649['createRange'](_0x1c7906['start'],_0x270a05['start']);_0x372047['isEqual'](_0x1c7906)||(_0x345649['updateMarker'](_0x35b814,{'range':_0x372047}),_0x2c6456=!0x0);}_0x2c6456||(_0x345649['removeMarker'](_0x35b814),_0x2c6456=!0x0);}return _0x2c6456;});}}class Tt extends _0x465839{['afterInit'](){const _0x7b76a3=this['editor'],_0x510703=_0x7b76a3['plugins']['get']('TrackChangesEditing');_0x7b76a3['plugins']['has']('Uploadcare')&&(_0x510703['enableCommand']('uploadcare'),_0x7b76a3['plugins']['has']('UploadcareImageEdit')&&(_0x510703['enableCommand']('uploadcareImageEdit'),_0x510703['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x510703['registerBlockAttribute']('uploadcareImageId'),_0x510703['descriptionFactory']['registerDescriptionCallback'](_0x12b3a3=>{if('attribute'!=_0x12b3a3['type'])return;const {data:_0x350132}=_0x12b3a3;return _0x350132&&'uploadcareImageId'==_0x350132['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x465839{['afterInit'](){const _0xec6f78=this['editor'],_0x319e02=_0xec6f78['plugins']['get']('TrackChangesEditing');_0xec6f78['plugins']['has']('UndoEditing')&&(_0x319e02['enableCommand']('undo'),_0x319e02['enableCommand']('redo'));}}class Ut extends _0x465839{static get['requires'](){return[Ct];}['afterInit'](){const _0x200a64=this['editor'];if(!_0x200a64['plugins']['has']('TableCaptionEditing'))return;_0x200a64['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x465839{['tableProperties'];['tableCellProperties'];constructor(_0x1a8c43){super(_0x1a8c43),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 _0x1f9b42=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6a3d1a of this['tableProperties'])_0x1f9b42['enableCommand'](_0x6a3d1a,(_0x15b695,_0x40bad2)=>{const _0x1f0f01=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6a3d1a,[_0x1f0f01],this['tableProperties'],'tableProperties',_0x15b695,_0x40bad2);});_0x1f9b42['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1f9b42['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f9b42['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x7f727b,_0x17542d)=>this['handleDiscardAction'](this['tableProperties'],_0x7f727b,_0x17542d)),_0x1f9b42['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x368c0e of this['tableCellProperties'])_0x1f9b42['enableCommand'](_0x368c0e,(_0xa2fb8f,_0x3947d8)=>{const _0x289592=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x368c0e,_0x289592,this['tableCellProperties'],'tableCellProperties',_0xa2fb8f,_0x3947d8);});_0x1f9b42['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1f9b42['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f9b42['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x392d34,_0x40f7b1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x392d34,_0x40f7b1)),_0x1f9b42['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1f9b42['descriptionFactory']['registerDescriptionCallback'](_0x12f8c8=>this['handleSuggestionDescription'](_0x12f8c8));}['_handlePropertyChange'](_0x3bf07a,_0x57a5d1,_0x46e1a1,_0x485e91,_0x3e08a6,_0x4acbe8){const _0x26219e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4acbe8['batch'],()=>{for(const _0x4b147e of _0x57a5d1){if(this['_getSuggestion'](_0x4b147e,_0x485e91))_0x3e08a6(_0x4acbe8);else{const _0x200846={};for(const _0xa64032 of _0x46e1a1){const _0x553305=_0x4b147e['getAttribute'](_0xa64032);void 0x0!==_0x553305&&(_0x200846[_0xa64032]=_0x553305);}_0x3e08a6(_0x4acbe8),_0x26219e['markBlockFormat'](_0x4b147e,{'commandParams':[_0x200846]},[],_0x485e91);}}});}['handleDiscardAction'](_0x268f35,_0x1b0549,_0xb88918){const _0x3a067a=_0x1b0549[0x0]['start']['nodeAfter'],_0x5d2333=_0xb88918['commandParams'][0x0];this['editor']['model']['change'](_0x5602a9=>{for(const _0x315f8e of _0x268f35)void 0x0!==_0x5d2333[_0x315f8e]?_0x5602a9['setAttribute'](_0x315f8e,_0x5d2333[_0x315f8e],_0x3a067a):_0x5602a9['removeAttribute'](_0x315f8e,_0x3a067a);});}['handleSuggestionDescription'](_0x4b4488){if(_0x4b4488['data'])switch(_0x4b4488['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x294a5a,_0x3db8d0){const _0xbb43fd=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x15ef54 of _0xbb43fd['getSuggestions']({'skipNotAttached':!0x0})){const _0x432f94=_0x15ef54['getContainedElement']();if(_0x15ef54['subType']===_0x3db8d0&&_0x432f94===_0x294a5a)return _0x15ef54;}return null;}}const u='$elementName';class p extends _0x465839{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x50a8cf,_0x12d319,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54f421){super(_0x54f421),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3291af,_0x1244d1,_0x4ed978,_0x487a75)=>{this['_model']['change'](()=>{for(const _0x183157 of[..._0x487a75,..._0x4ed978])this['_model']['markers']['has'](_0x183157)&&_0x54f421['editing']['reconvertMarker'](_0x183157);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x54f421['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x54f421['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x54f421['config']['get']('trackChanges.trackFormatChanges'),_0x54f421['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x54f421['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x54f421,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x45a148=this['editor'],_0x5676ca=(_0x1837a0,_0xd792cd)=>{if('attribute'!=_0x1837a0)return'ck-suggestion-marker-'+_0x1837a0;const _0x9fc6cd=_0xd792cd['split']('|')[0x0];return this['_isBlockAttribute'](_0x9fc6cd)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x45a148['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x23eeef=>{const {id:_0x1e848a,authorId:_0x46e2f9,type:_0x1b5c6c,subType:_0x5a2f67}=this['_splitMarkerName'](_0x23eeef['markerName']),_0x290b5b=['ck-suggestion-marker',_0x5676ca(_0x1b5c6c,_0x5a2f67)];let _0x242591=0xbb8;return this['activeMarkers']['includes'](_0x23eeef['markerName'])&&(_0x290b5b['push']('ck-suggestion-marker--active'),_0x242591=0xbc2),'deletion'==_0x1b5c6c&&(_0x242591+=0x5),{'classes':_0x290b5b,'attributes':{'data-suggestion':_0x1e848a,'data-author-id':_0x46e2f9},'priority':_0x242591};}}),_0x45a148['conversion']['for']('dataDowncast')['add'](_0xf1eb0a=>{_0xf1eb0a['on']('addMarker:suggestion',(_0x25668a,_0x4e3002,_0x482c53)=>{if(!_0x482c53['options']['showSuggestionHighlights'])return;const _0x4a8e2f=_0x4e3002['item'];if(!_0x4a8e2f)return;const _0x18163a=_0x482c53['mapper']['toViewElement'](_0x4a8e2f);_0x45a148['model']['schema']['isObject'](_0x4a8e2f)&&_0x18163a&&!_0x18163a['getCustomProperty']('widget')&&_0x18163a['is']('containerElement')&&_0x107d70(_0x18163a,_0x482c53['writer']);},{'priority':'high'});}),_0x45a148['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1b7e73,_0x189cf1)=>{if(!_0x189cf1['options']['showSuggestionHighlights'])return null;const {id:_0x313e3d,authorId:_0x395301,type:_0x2f7c48,subType:_0x53cef4}=this['_splitMarkerName'](_0x1b7e73['markerName']);return{'classes':['ck-suggestion-marker',_0x5676ca(_0x2f7c48,_0x53cef4)],'priority':0xbb8,'attributes':{'data-suggestion':_0x313e3d,'data-author-id':_0x395301}};}});const _0x2ecc40=({showActiveMarkers:_0x264af6=!0x0,isAttributeSuggestion:_0x3338e6=!0x1}={})=>(_0x54d77a,_0x35034a,_0x5ce5a2)=>{if(!_0x35034a['item'])return;const {id:_0x54b0e0,authorId:_0x272700}=this['_splitMarkerName'](_0x35034a['markerName']);if(_0x3338e6){const _0x1eafb5=this['_suggestions']['get'](_0x54b0e0),_0x1b2c27=this['_getAttributeKey'](_0x1eafb5);if(!this['_isBlockAttribute'](_0x1b2c27))return;}if(_0x35034a['item']['is']('selection'))return void _0x5ce5a2['consumable']['consume'](_0x35034a['item'],_0x54d77a['name']);const _0xea7822=_0x5ce5a2['mapper']['toViewElement'](_0x35034a['item']);if(_0x35034a['item']['is']('element')&&_0x45a148['model']['schema']['isBlock'](_0x35034a['item'])&&!_0xea7822['getCustomProperty']('addHighlight')){_0x5ce5a2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xea7822),_0x5ce5a2['writer']['setAttribute']('data-suggestion',_0x54b0e0,_0xea7822),_0x5ce5a2['writer']['setAttribute']('data-author-id',_0x272700,_0xea7822),_0x5ce5a2['mapper']['bindElementToMarker'](_0xea7822,_0x35034a['markerName']),_0x264af6&&(this['activeMarkers']['includes'](_0x35034a['markerName'])?_0x5ce5a2['writer']['addClass']('ck-suggestion-marker--active',_0xea7822):_0x5ce5a2['writer']['removeClass']('ck-suggestion-marker--active',_0xea7822));for(const _0x4ace49 of _0x45a148['model']['createRangeIn'](_0x35034a['item'])['getItems']())_0x5ce5a2['consumable']['consume'](_0x4ace49,_0x54d77a['name']);_0x5ce5a2['consumable']['consume'](_0x35034a['item'],_0x54d77a['name']);}};_0x45a148['conversion']['for']('dataDowncast')['add'](_0x5944b6=>{_0x5944b6['on']('addMarker:suggestion:formatBlock',(_0x43906e,_0x2360dc,_0x58784d)=>{_0x58784d['options']['showSuggestionHighlights']&&_0x2ecc40({'showActiveMarkers':!0x1})(_0x43906e,_0x2360dc,_0x58784d);},{'priority':'highest'});}),_0x45a148['conversion']['for']('dataDowncast')['add'](_0xa7c4f7=>{_0xa7c4f7['on']('addMarker:suggestion:attribute',(_0x3d0f16,_0x22ded0,_0x3e1b20)=>{_0x3e1b20['options']['showSuggestionHighlights']&&_0x2ecc40({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3d0f16,_0x22ded0,_0x3e1b20);},{'priority':'highest'});}),_0x45a148['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3c9d2e,_0x16ef02)=>{if(_0x16ef02['options']['showSuggestionHighlights']){const {id:_0x3f83f4,authorId:_0x4996e0}=this['_splitMarkerName'](_0x3c9d2e);return _0x3c9d2e['includes'](':split')||_0x3c9d2e['includes'](':merge')?{'group':'suggestion','name':_0x3c9d2e['substr'](0xb),'attributes':{'data-suggestion':_0x3f83f4,'data-author-id':_0x4996e0}}:null;}return{'group':'suggestion','name':_0x3c9d2e['substr'](0xb)};}}),_0x45a148['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x24d92c,{writer:_0x5c14e8})=>{let _0xbcaf1d='suggestion:'+_0x24d92c['getAttribute']('suggestion-type')+':'+_0x24d92c['getAttribute']('id');return _0x24d92c['getAttribute']('marker-count')&&(_0xbcaf1d+=':'+_0x24d92c['getAttribute']('marker-count')),_0x5c14e8['createElement']('$marker',{'data-name':_0xbcaf1d});}}),_0x45a148['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x45a148['conversion']['for']('editingDowncast')['add'](_0x533cf6=>{_0x533cf6['on']('addMarker:suggestion:formatBlock',_0x2ecc40(),{'priority':'high'});}),_0x45a148['conversion']['for']('editingDowncast')['add'](_0x5d394b=>{_0x5d394b['on']('addMarker:suggestion:attribute',_0x2ecc40({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x45a148['conversion']['for']('editingDowncast')['add'](_0x33df8e=>{_0x33df8e['on']('removeMarker:suggestion:formatBlock',(_0x2209d1,_0x3a97d5,_0xde21d9)=>{const _0x4c6f1f=_0xde21d9['mapper']['markerNameToElements'](_0x3a97d5['markerName']);if(_0x4c6f1f){for(const _0x381aa8 of _0x4c6f1f)_0x381aa8['getCustomProperty']('addHighlight')||(_0xde21d9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x381aa8),_0xde21d9['writer']['removeAttribute']('data-suggestion',_0x381aa8),_0xde21d9['writer']['removeAttribute']('data-author-id',_0x381aa8),_0xde21d9['mapper']['unbindElementFromMarkerName'](_0x381aa8,_0x3a97d5['markerName']));}},{'priority':'high'});}),_0x45a148['conversion']['for']('editingDowncast')['add'](_0x460d95=>{_0x460d95['on']('removeMarker:suggestion:attribute',(_0x9bd994,_0x1060a2,_0x2d0cbe)=>{const _0x16228f=_0x2d0cbe['mapper']['markerNameToElements'](_0x1060a2['markerName']);if(!_0x16228f)return;const {id:_0x270f14}=this['_splitMarkerName'](_0x1060a2['markerName']),_0x4a3653=this['_suggestions']['get'](_0x270f14),_0x5e3f7b=this['_getAttributeKey'](_0x4a3653);if(this['_isBlockAttribute'](_0x5e3f7b)){for(const _0x50158f of _0x16228f)_0x50158f['getCustomProperty']('addHighlight')||(_0x2d0cbe['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x50158f),_0x2d0cbe['writer']['removeAttribute']('data-suggestion',_0x50158f),_0x2d0cbe['writer']['removeAttribute']('data-author-id',_0x50158f),_0x2d0cbe['mapper']['unbindElementFromMarkerName'](_0x50158f,_0x1060a2['markerName']));}},{'priority':'high'});}),_0x45a148['model']['document']['registerPostFixer'](_0x582218=>{let _0x4fdbdd=!0x1;const _0x4e0e5b=Array['from'](_0x45a148['model']['document']['differ']['getChangedMarkers']()),_0x2dd7ab=new Set();for(const {name:_0x41a63f,data:_0x111c04}of _0x4e0e5b){const {group:_0x4a882e,type:_0x532a79,subType:_0x5a574e,id:_0x10cff7}=this['_splitMarkerName'](_0x41a63f);if('suggestion'!==_0x4a882e)continue;const _0x4bbf72=this['_suggestions']['get'](_0x10cff7);if(null!=_0x111c04['newRange']){'formatInline'==_0x532a79&&(_0x4fdbdd=_0x4fdbdd||Jt(_0x111c04['newRange'],_0x41a63f,_0x582218,_0x45a148['model']['schema']));const _0x23c24c='attribute'==_0x532a79&&this['_isBlockAttribute'](_0x5a574e['split']('|')[0x0]);if(_0x111c04['newRange']['isCollapsed']||'$graveyard'==_0x111c04['newRange']['root']['rootName']||'formatBlock'==_0x532a79&&!Ht(_0x111c04['newRange'])||_0x23c24c&&!Ht(_0x111c04['newRange'])||'deletion'==_0x532a79&&!qt(_0x111c04['newRange']))_0x582218['removeMarker'](_0x41a63f),_0x4fdbdd=!0x0;else{if(!_0x4bbf72||!_0x4bbf72['isInContent'])continue;if(_0x111c04['newRange']&&_0x111c04['oldRange']&&_0x111c04['newRange']['isEqual'](_0x111c04['oldRange']))continue;_0x2dd7ab['add'](_0x4bbf72);}}}return _0x2dd7ab['size']>0x0&&(_0x4fdbdd=!!this['_joinWithAdjacentSuggestions'](_0x2dd7ab)||_0x4fdbdd),_0x4fdbdd;}),_0x45a148['model']['document']['registerPostFixer'](_0x4733cc=>{let _0x69bf5e=!0x1;for(const _0x575b4b of _0x45a148['model']['document']['differ']['getChanges']())if('insert'==_0x575b4b['type'])for(const _0x54adb8 of this['_suggestions']['values']()){if(_0x54adb8['isMultiRange']||!_0x54adb8['isInContent'])continue;const _0x2316e9='formatBlock'==_0x54adb8['type'],_0x2b1023=this['_getAttributeKey'](_0x54adb8),_0x16e003=_0x2b1023&&this['_isBlockAttribute'](_0x2b1023);if(!_0x2316e9&&!_0x16e003)continue;const _0x511070=_0x54adb8['getFirstRange']();if(_0x511070['start']['parent']!=_0x511070['end']['parent']&&!_0x511070['end']['isAtEnd']){const _0x2238e3=_0x45a148['model']['createPositionAt'](_0x511070['start']['nodeAfter'],'end'),_0x39b6f7=_0x45a148['model']['createRange'](_0x511070['start'],_0x2238e3);_0x4733cc['updateMarker'](_0x54adb8['getFirstMarker'](),{'range':_0x39b6f7}),_0x69bf5e=!0x0;}}return _0x69bf5e;}),_0x45a148['model']['document']['registerPostFixer'](_0x4afe01=>this['_processAttributeChanges'](_0x4afe01)),_0x45a148['model']['document']['registerPostFixer'](_0x5ee295=>!_0x5ee295['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5ee295)),_0x45a148['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x45a148['model']['document']['on']('change:data',(_0x12bd14,_0x1777d6)=>{if(!_0x1777d6['isLocal']||_0x1777d6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x276bff=_0x45a148['model']['document']['differ']['getChanges']();if(0x0==_0x276bff['length'])return;const _0x160c9f=[],_0x1736c9=_0x276bff['filter'](_0x3bc7bb=>'attribute'==_0x3bc7bb['type']),_0x5e8b05=_0x276bff['filter'](_0x57d27b=>'insert'==_0x57d27b['type']&&'$text'!=_0x57d27b['name']);for(const _0x588e8e of _0x1736c9)this['_isRegisteredAttribute'](_0x588e8e['attributeKey'])&&_0x160c9f['push']({'key':_0x588e8e['attributeKey'],'newValue':_0x588e8e['attributeNewValue'],'oldValue':_0x588e8e['attributeOldValue'],'range':zt(_0x588e8e['range'],_0x45a148['model'])});for(const _0x152049 of _0x5e8b05){if('rename'!=_0x152049['action']&&'refresh'!=_0x152049['action'])continue;const _0x2364f9=Wt(_0x152049['position']['nodeAfter'],_0x45a148['model']),_0x29fb53=_0x152049['before'];'rename'==_0x152049['action']&&_0x160c9f['push']({'key':u,'newValue':_0x152049['name'],'oldValue':_0x29fb53['name'],'range':_0x2364f9});for(const [_0x5e4f33,_0x3a492c]of _0x29fb53['attributes']){if(!this['_isRegisteredAttribute'](_0x5e4f33))continue;const _0x3a69c8=_0x152049['attributes']['get'](_0x5e4f33);_0x3a492c!==_0x3a69c8&&_0x160c9f['push']({'key':_0x5e4f33,'newValue':_0x3a69c8,'oldValue':_0x3a492c,'range':_0x2364f9});}for(const [_0x28fd77,_0x173f18]of _0x152049['attributes'])this['_isRegisteredAttribute'](_0x28fd77)&&(_0x29fb53['attributes']['has'](_0x28fd77)||_0x160c9f['push']({'key':_0x28fd77,'newValue':_0x173f18,'oldValue':null,'range':_0x2364f9}));}0x0!=_0x160c9f['length']&&_0x45a148['model']['enqueueChange'](_0x1777d6,_0x3eaef8=>{const _0x431972=_0x21999f();for(const {range:_0x2e1f17,key:_0x40f186,oldValue:_0x35baa4,newValue:_0x3004e0}of _0x160c9f)this['markAttributeChange'](_0x2e1f17,_0x40f186,_0x35baa4,_0x3004e0,{'groupId':_0x431972});this['_reduceExistingSuggestions'](_0x3eaef8,_0x160c9f);});},{'priority':'lowest'}),_0x45a148['model']['markers']['on']('update:suggestion',(_0x48e494,_0x3bde27,_0xf362a1)=>{if(null==_0xf362a1){const {id:_0xc5fc0e}=this['_splitMarkerName'](_0x3bde27['name']),_0x1d387d=this['_suggestions']['get'](_0xc5fc0e);_0x1d387d&&_0x1d387d['addMarkerName'](_0x3bde27['name']);}}),_0x45a148['model']['document']['on']('change:data',()=>{const _0x3db8ff=Array['from'](_0x45a148['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5e02b1=>'suggestion'===this['_splitMarkerName'](_0x5e02b1['name'])['group']);if(0x0===_0x3db8ff['length'])return;_0x3db8ff['sort']((_0x54e23c,_0x551fae)=>{const _0x126628=_0x54e23c['data']['oldRange'],_0xd88088=_0x551fae['data']['oldRange'];return null===_0x126628&&null===_0xd88088?0x0:null===_0x126628&&null!==_0xd88088?-0x1:null!==_0x126628&&null===_0xd88088?0x1:_0x126628['start']['isBefore'](_0xd88088['start'])?-0x1:0x1;});const _0x4182c2=new Set(),_0x2746cd=new Set();for(const {name:_0x234334,data:_0x296da3}of _0x3db8ff){const {id:_0x33735b}=this['_splitMarkerName'](_0x234334);if(null===_0x296da3['oldRange']){const _0x3deb93=this['_handleNewSuggestionMarker'](_0x234334);_0x2746cd['add'](_0x3deb93);}else{const _0x53b1cd=this['_suggestions']['get'](_0x33735b);null!==_0x296da3['newRange']||_0x53b1cd['isInContent']?(_0x4182c2['add'](_0x53b1cd['head']),_0x2746cd['add'](_0x53b1cd)):this['_removeSuggestion'](_0x53b1cd);}}_0x2746cd['size']>0x0&&this['_refreshSuggestionsChain'](_0x2746cd);for(const _0x3a6211 of _0x4182c2)this['fire']('suggestionChanged',_0x3a6211);}),_0x45a148['model']['on']('applyOperation',(_0x17c421,_0x4f5ce7)=>{const _0x2e6eea=_0x4f5ce7[0x0];if(!this['_suggestions']['size'])return;if(!_0x2e6eea['isDocumentOperation'])return;if(_0x2e6eea['batch']['isUndo']||!_0x2e6eea['batch']['isLocal'])return;let _0x52f6cb,_0x1ded05;switch(_0x2e6eea['type']){case'insert':_0x52f6cb=_0x45a148['model']['createPositionAt'](_0x2e6eea['position']),_0x1ded05=_0x52f6cb['getShiftedBy'](_0x2e6eea['howMany']);break;case'split':_0x52f6cb=_0x45a148['model']['createPositionAt'](_0x2e6eea['splitPosition']),_0x1ded05=_0x45a148['model']['createPositionAt'](_0x2e6eea['moveTargetPosition']);break;case'move':_0x52f6cb=_0x45a148['model']['createPositionAt'](_0x2e6eea['targetPosition']),_0x1ded05=_0x52f6cb['getShiftedBy'](_0x2e6eea['howMany']);break;default:return;}const _0x23001b=_0x45a148['model']['createRange'](_0x52f6cb,_0x1ded05);_0x45a148['model']['change'](()=>{for(const {suggestion:_0x1e05db,meta:_0x2a8795}of this['_findSuggestions'](_0x23001b)){if(_0x1e05db['isMultiRange'])continue;if('formatInline'==_0x1e05db['type'])continue;const _0x29690d=this['_getAttributeKey'](_0x1e05db);if(_0x29690d&&this['_isBlockAttribute'](_0x29690d)&&'split'!=_0x2e6eea['type'])continue;const _0xb1679f=_0x1e05db['data']&&_0x1e05db['data']['multipleBlocks'];('formatBlock'!=_0x1e05db['type']||'split'==_0x2e6eea['type']&&!_0xb1679f)&&(_0x2a8795['containsRangeInObject']||'insertion'==_0x1e05db['type']&&_0x2a8795['isOwn']||_0x1e05db['getFirstRange']()['containsRange'](_0x23001b)&&this['_breakSuggestionMarker'](_0x1e05db,_0x52f6cb,_0x1ded05));}});},{'priority':'lowest'}),_0x45a148['model']['on']('deleteContent',(_0x43d049,_0x2d7f46)=>{const _0x4b5173=_0x2d7f46[0x0],_0x53acc3=_0x2d7f46[0x1];if(_0x53acc3&&_0x53acc3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4b5173['isCollapsed'])return;const _0x1e2b66=_0x45a148['model']['schema'],{start:_0x4b1732,end:_0x584a29}=_0x4b5173['getFirstRange'](),_0x1283bf=_0x4b1732['nodeAfter']&&_0x1e2b66['isLimit'](_0x4b1732['nodeAfter'])?null:_0x1e2b66['getNearestSelectionRange'](_0x4b1732,'forward'),_0x3fa15d=_0x584a29['nodeBefore']&&_0x1e2b66['isLimit'](_0x584a29['nodeBefore'])?null:_0x1e2b66['getNearestSelectionRange'](_0x584a29,'backward'),_0x30c9d2=_0x45a148['model']['createRange'](_0x1283bf?_0x1283bf['start']:_0x4b1732,_0x3fa15d?_0x3fa15d['end']:_0x584a29);_0x45a148['model']['change'](_0x4bf67f=>{this['markDeletion'](_0x30c9d2);const _0x7f9547=_0x45a148['model']['schema']['getNearestSelectionRange'](_0x30c9d2['start']);_0x4b5173['is']('documentSelection')?_0x4bf67f['setSelection'](_0x7f9547):_0x4b5173['setTo'](_0x7f9547);}),_0x43d049['stop']();},{'priority':_0x38d918['normal']+0xa}),_0x45a148['model']['on']('insertContent',(_0x1ea44a,_0x2127dd)=>{const _0xf91a4d=_0x2127dd[_0x2127dd['length']-0x1];_0xf91a4d&&_0xf91a4d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45a148['model']['change'](()=>{let _0x2bbcce=_0x45a148['model']['insertContent'](_0x2127dd[0x0],_0x2127dd[0x1],_0x2127dd[0x2],{'forceDefaultExecution':!0x0});if(!_0x2bbcce)return;_0x1ea44a['return']=_0x2bbcce['clone']();const _0x50d913=_0x2bbcce['end']['nodeBefore'],_0x52c08e=_0x45a148['model']['schema'];_0x50d913&&_0x52c08e['isBlock'](_0x50d913)&&!_0x52c08e['isObject'](_0x50d913)&&(_0x2bbcce=_0x45a148['model']['createRange'](_0x2bbcce['start'],_0x45a148['model']['createPositionAt'](_0x50d913,'end'))),this['markInsertion'](_0x2bbcce);}),_0x1ea44a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x35bee2=new x(_0x45a148,this['_suggestions']);_0x45a148['commands']['add']('acceptSuggestion',_0x35bee2),this['enableCommand']('acceptSuggestion');const _0x205a21=new O(_0x45a148,this['_suggestions']);_0x45a148['commands']['add']('discardSuggestion',_0x205a21),this['enableCommand']('discardSuggestion'),_0x45a148['commands']['add']('acceptAllSuggestions',new R(_0x45a148,_0x35bee2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x45a148['commands']['add']('discardAllSuggestions',new R(_0x45a148,_0x205a21,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x45a148['commands']['add']('acceptSelectedSuggestions',new E(_0x45a148,_0x35bee2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x45a148['commands']['add']('discardSelectedSuggestions',new E(_0x45a148,_0x205a21,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x303114=_0x45a148['plugins']['get']('CommentsRepository');this['listenTo'](_0x303114,'addComment',(_0x72ad7d,{threadId:_0x2d530e})=>{const _0x29a699=this['_suggestions']['get'](_0x2d530e);_0x29a699&&_0x29a699['commentThread']&&0x1===_0x29a699['commentThread']['length']&&this['_updateSuggestionData'](_0x2d530e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x303114,'removeComment',(_0x8d6de9,{threadId:_0x1b2274})=>{const _0x581b81=this['_suggestions']['get'](_0x1b2274);_0x581b81&&_0x581b81['commentThread']&&!_0x581b81['commentThread']['length']&&this['_updateSuggestionData'](_0x1b2274,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5f52d6){const _0x20e2e9=_0x1d5191([0x4c,0x30,0x4b,0x44,0x43,0x79,0x65,0x55,0x49,0x48,0x70,0x34,0x32,0x31,0x39,0x46,0x58,0x6d,0x77,0x53,0x75,0x72,0x6b,0x57,0x4f,0x37,0x4e,0x35,0x33,0x6f,0x52,0x42,0x74,0x63,0x73,0x62,0x38,0x36,0x4a,0x5a,0x66,0x69,0x6c,0x67,0x56,0x51,0x59,0x50,0x7a,0x68,0x71,0x78,0x76,0x61,0x54,0x45,0x41,0x6e,0x6a,0x64,0x47,0x4d]),_0xc2a751=0x1c711a30,_0x5af6ec=0x1c767150^_0xc2a751,_0x56868a=window[_0x1d5191([0x44,0x61,0x74,0x65])][_0x1d5191([0x6e,0x6f,0x77])](),_0x2ea5cf=_0x5f52d6[_0x1d5191([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3e0e10=new window[(_0x1d5191([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cb3a6=>{_0x2ea5cf[_0x1d5191([0x6f,0x6e,0x63,0x65])](_0x1d5191([0x72,0x65,0x61,0x64,0x79]),_0x5cb3a6);}),_0x299767={[_0x1d5191([0x6b,0x74,0x79])]:_0x1d5191([0x45,0x43]),[_0x1d5191([0x75,0x73,0x65])]:_0x1d5191([0x73,0x69,0x67]),[_0x1d5191([0x63,0x72,0x76])]:_0x1d5191([0x50,0x2d,0x32,0x35,0x36]),[_0x1d5191([0x78])]:_0x1d5191([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]),[_0x1d5191([0x79])]:_0x1d5191([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]),[_0x1d5191([0x61,0x6c,0x67])]:_0x1d5191([0x45,0x53,0x32,0x35,0x36])},_0x4a41e2=_0x2ea5cf[_0x1d5191([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d5191([0x67,0x65,0x74])](_0x1d5191([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x477dae(){let _0x39d827,_0x100d0f=null,_0x498650=null;try{if(_0x4a41e2==_0x1d5191([0x47,0x50,0x4c]))return _0x1d5191([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x39d827=_0x287e16(),!_0x39d827)return _0x1d5191([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x39d827[_0x1d5191([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x498650=_0xe720a2(_0x39d827[_0x1d5191([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x39d827[_0x1d5191([0x6a,0x74,0x69])])),await _0x5ced87()?_0xe4631c()?_0x486a54()?_0x1d5191([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b973e()?(_0x39d827[_0x1d5191([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d5191([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x100d0f=_0x3c7fa1(_0x1d5191([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x39d827[_0x1d5191([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d5191([0x74,0x72,0x69,0x61,0x6c])&&(_0x100d0f=_0x3c7fa1(_0x1d5191([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e0ac3()):_0x1d5191([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d5191([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d5191([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d5191([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x486a54(){const _0x552e40=[_0x1d5191([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d5191([0x74,0x72,0x69,0x61,0x6c])][_0x1d5191([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39d827[_0x1d5191([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56868a/0x3e8:0xe10*_0x5af6ec;return _0x39d827[_0x1d5191([0x65,0x78,0x70])]<_0x552e40;}function _0xe4631c(){const _0x535b91=_0x39d827[_0x1d5191([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x535b91)return!0x1;if(_0x535b91[_0x1d5191([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5191([0x2a])))return!0x0;if(_0x535b91[_0x1d5191([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5191([0x54,0x43])))return!0x0;if(_0x535b91[_0x1d5191([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5191([0x52,0x54,0x43]))){if(_0x7a21c4())return!0x0;if(_0x1ca327()||_0xb137c2())return!0x0;}return!0x1;}function _0x3b973e(){const _0x145e76=_0x39d827[_0x1d5191([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x145e76||0x0==_0x145e76[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47cb44}=new URL(window[_0x1d5191([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x145e76[_0x1d5191([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47cb44))return!0x0;const _0xf9cca=_0x47cb44[_0x1d5191([0x73,0x70,0x6c,0x69,0x74])](_0x1d5191([0x2e]));return _0x145e76[_0x1d5191([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59f12f=>_0x59f12f[_0x1d5191([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5191([0x2a])))[_0x1d5191([0x6d,0x61,0x70])](_0xaedf9=>_0xaedf9[_0x1d5191([0x73,0x70,0x6c,0x69,0x74])](_0x1d5191([0x2e])))[_0x1d5191([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53aaab=>_0x53aaab[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf9cca[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d5191([0x6d,0x61,0x70])](_0x4f9a96=>Array(_0xf9cca[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f9a96[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d5191([0x66,0x69,0x6c,0x6c])](_0x4f9a96[0x0]===_0x1d5191([0x2a])?_0x1d5191([0x2a]):'')[_0x1d5191([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f9a96))[_0x1d5191([0x73,0x6f,0x6d,0x65])](_0x3a5302=>_0xf9cca[_0x1d5191([0x65,0x76,0x65,0x72,0x79])]((_0x319cf4,_0x1e1ed2)=>_0x3a5302[_0x1e1ed2]===_0x319cf4||_0x3a5302[_0x1e1ed2]===_0x1d5191([0x2a])));}function _0x1e0ac3(){return _0x100d0f&&_0x498650?new window[(_0x1d5191([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55eef6,_0x51f24e)=>{_0x100d0f[_0x1d5191([0x74,0x68,0x65,0x6e])](_0x55eef6,_0x51f24e),_0x498650[_0x1d5191([0x74,0x68,0x65,0x6e])](_0x235b66=>{_0x235b66!=_0x1d5191([0x56,0x61,0x6c,0x69,0x64])&&_0x55eef6(_0x235b66);},_0x51f24e);}):_0x100d0f||_0x498650||_0x1d5191([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe720a2(_0x5a9875,_0x2e1091){return new window[(_0x1d5191([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42b742=>{if(_0x458032())return _0x42b742(_0x1d5191([0x56,0x61,0x6c,0x69,0x64]));_0x4164ec(),_0x2ea5cf[_0x1d5191([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d5191([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52413f=!0x1;const _0x4194cc=_0x21999f();function _0x314327(_0x251312){return!!_0x251312&&(typeof _0x251312===_0x1d5191([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x251312===_0x1d5191([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x251312[_0x1d5191([0x74,0x68,0x65,0x6e])]===_0x1d5191([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x251312[_0x1d5191([0x63,0x61,0x74,0x63,0x68])]===_0x1d5191([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51d913(_0x1c84c9){_0xce8622(_0x1c84c9)[_0x1d5191([0x74,0x68,0x65,0x6e])](_0x594a3d=>{if(!_0x594a3d||_0x594a3d[_0x1d5191([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d5191([0x6f,0x6b]))return _0x1d5191([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a853f(_0x3661e4(_0x4194cc+_0x2e1091))!=_0x594a3d[_0x1d5191([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d5191([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d5191([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d5191([0x74,0x68,0x65,0x6e])](_0x58f7d2=>(_0x57669d(),_0x58f7d2),()=>{const _0x257c91=_0x37d2ec();return null==_0x257c91?(_0x57669d(),_0x1d5191([0x56,0x61,0x6c,0x69,0x64])):_0x1d5191(_0x56868a-_0x257c91>(0x387d9e30^_0xc2a751)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d5191([0x74,0x68,0x65,0x6e])](_0x42b742)[_0x1d5191([0x63,0x61,0x74,0x63,0x68])](()=>{_0x42b742(_0x1d5191([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x274683=0x1c47f4b0^_0xc2a751;function _0x57669d(){const _0x4c5534=_0x1d5191([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a853f(_0x3661e4(_0x5a9875)),_0x2738ce=_0x2ca20a(_0x1a853f(window[_0x1d5191([0x4d,0x61,0x74,0x68])][_0x1d5191([0x63,0x65,0x69,0x6c])](_0x56868a/_0x274683)));window[_0x1d5191([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d5191([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c5534,_0x2738ce);}function _0x37d2ec(){const _0x3ac8d0=_0x1d5191([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a853f(_0x3661e4(_0x5a9875)),_0x9b73cc=window[_0x1d5191([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d5191([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ac8d0);return _0x9b73cc?window[_0x1d5191([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ca20a(_0x9b73cc),0x10)*_0x274683:null;}function _0xce8622(_0xbd7c6c){return new window[(_0x1d5191([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f53fe,_0x3158e4)=>{_0xbd7c6c[_0x1d5191([0x74,0x68,0x65,0x6e])](_0x1f53fe,_0x3158e4),window[_0x1d5191([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3158e4,0x1c70cef0^_0xc2a751);});}}_0x2ea5cf[_0x1d5191([0x6f,0x6e])](_0x1d5191([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bbeac,_0x276e6d)=>{if(_0x276e6d[0x0]!=_0x5a9875)return _0x42b742(_0x1d5191([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x276e6d[0x1]={..._0x276e6d[0x1],[_0x1d5191([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4194cc};},{[_0x1d5191([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d5191([0x68,0x69,0x67,0x68])}),_0x2ea5cf[_0x1d5191([0x6f,0x6e])](_0x1d5191([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3aa297=>{_0x314327(_0x3aa297[_0x1d5191([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52413f=!0x0,_0x51d913(_0x3aa297[_0x1d5191([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d5191([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d5191([0x6c,0x6f,0x77])}),_0x3e0e10[_0x1d5191([0x74,0x68,0x65,0x6e])](()=>{_0x52413f||_0x42b742(_0x1d5191([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x458032(){return _0x2ea5cf[_0x1d5191([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d5191([0x76,0x69,0x65,0x77])][_0x1d5191([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d5191([0x61,0x75,0x74,0x6f]);}function _0x4164ec(){_0x2ea5cf[_0x1d5191([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d5191([0x76,0x69,0x65,0x77])][_0x1d5191([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d5191([0x61,0x75,0x74,0x6f]);}}function _0x3c7fa1(_0x555e05){const _0x71b5c9=[new window[(_0x1d5191([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3da736=>setTimeout(_0x3da736,0x1c7824fc^_0xc2a751)),_0x3e0e10[_0x1d5191([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d5191([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26f5d3=>{let _0x11ad3e=0x0;_0x2ea5cf[_0x1d5191([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d5191([0x6f,0x6e])](_0x1d5191([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25d4a8,_0x64474e)=>{_0x64474e[0x0][_0x1d5191([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11ad3e++,_0x11ad3e==(0x1c711bc8^_0xc2a751)&&(_0x26f5d3(),_0x25d4a8[_0x1d5191([0x6f,0x66,0x66])]());});}))];return window[_0x1d5191([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d5191([0x72,0x61,0x63,0x65])](_0x71b5c9)[_0x1d5191([0x74,0x68,0x65,0x6e])](()=>_0x555e05);}async function _0x5a5004(){await _0x3e0e10,_0x2ea5cf[_0x1d5191([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d5191([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9026ba,_0x2ea5cf[_0x1d5191([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d5191([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9026ba,_0x2ea5cf[_0x1d5191([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d5191([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x7a21c4(){return _0xb012eb(_0x1d5191([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xa505b4(_0x1d5191([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1d5191([0x73,0x74,0x61,0x74,0x65])]==_0x1d5191([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ca327(){return _0xb012eb(_0x1d5191([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 _0xb137c2(){return _0xb012eb(_0x1d5191([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x414291(_0x1e9845){const _0x339b34=_0x3152be();_0x2ea5cf[_0x339b34]=_0x1d5191([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e9845,_0x1e9845!=_0x1d5191([0x56,0x61,0x6c,0x69,0x64])&&_0x5a5004();}function _0x3152be(){const _0x5b5adb=window[_0x1d5191([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d5191([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d5191([0x6e,0x6f,0x77])]())[_0x1d5191([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d5191([0x2e]),'');let _0x51b2a9=_0x1d5191([0x4c]);for(let _0x523adb=0x0;_0x523adb<_0x5b5adb[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x523adb+=0x2){let _0x39cc11=window[_0x1d5191([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b5adb[_0x1d5191([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x523adb,_0x523adb+0x2));_0x39cc11>=_0x20e2e9[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39cc11-=_0x20e2e9[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51b2a9+=_0x20e2e9[_0x39cc11];}return _0x51b2a9;}function _0x287e16(){const _0x36f502=_0x4a41e2[_0x1d5191([0x73,0x70,0x6c,0x69,0x74])](_0x1d5191([0x2e]));if(0x3!=_0x36f502[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39fd13(_0x36f502[0x1]);function _0x39fd13(_0x5119b1){const _0x34e531=_0x31ea16(_0x5119b1);return _0x34e531&&_0x2cd9aa()?_0x34e531:null;function _0x2cd9aa(){const _0x1febcf=_0x34e531[_0x1d5191([0x6a,0x74,0x69])],_0x3a1524=window[_0x1d5191([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1febcf[_0x1d5191([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1febcf[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x161634={..._0x34e531,[_0x1d5191([0x6a,0x74,0x69])]:_0x1febcf[_0x1d5191([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1febcf[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x161634[_0x1d5191([0x76,0x63])],_0x3661e4(_0x161634)==_0x3a1524;}}}async function _0x5ced87(){let _0x3b4fad=!0x0;try{const _0x4aa73c=_0x4a41e2[_0x1d5191([0x73,0x70,0x6c,0x69,0x74])](_0x1d5191([0x2e])),[_0x3de3f5,_0x2158f2,_0x60d862]=_0x4aa73c;return _0x27b3f0(_0x3de3f5),await _0x2c01aa(_0x3de3f5,_0x2158f2,_0x60d862),_0x3b4fad;}catch{return!0x1;}function _0x27b3f0(_0x2ca126){const _0x453bd5=_0x31ea16(_0x2ca126);_0x453bd5&&_0x453bd5[_0x1d5191([0x61,0x6c,0x67])]==_0x1d5191([0x45,0x53,0x32,0x35,0x36])||(_0x3b4fad=!0x1);}async function _0x2c01aa(_0x1ec544,_0x5569e3,_0x4e1a2){const _0xcb353d=window[_0x1d5191([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d5191([0x66,0x72,0x6f,0x6d])](_0x5575d6(_0x4e1a2),_0x1b2856=>_0x1b2856[_0x1d5191([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43978d=new window[(_0x1d5191([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d5191([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ec544+_0x1d5191([0x2e])+_0x5569e3),_0x70c5f6=window[_0x1d5191([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d5191([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x70c5f6)return;const _0x10fb03=await _0x70c5f6[_0x1d5191([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d5191([0x6a,0x77,0x6b]),_0x299767,{[_0x1d5191([0x6e,0x61,0x6d,0x65])]:_0x1d5191([0x45,0x43,0x44,0x53,0x41]),[_0x1d5191([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d5191([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d5191([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x70c5f6[_0x1d5191([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d5191([0x6e,0x61,0x6d,0x65])]:_0x1d5191([0x45,0x43,0x44,0x53,0x41]),[_0x1d5191([0x68,0x61,0x73,0x68])]:{[_0x1d5191([0x6e,0x61,0x6d,0x65])]:_0x1d5191([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10fb03,_0xcb353d,_0x43978d)||(_0x3b4fad=!0x1);}}function _0x31ea16(_0x323920){return _0x323920[_0x1d5191([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d5191([0x65,0x79]))?JSON[_0x1d5191([0x70,0x61,0x72,0x73,0x65])](_0x5575d6(_0x323920)):null;}function _0x5575d6(_0x3d8df9){return window[_0x1d5191([0x61,0x74,0x6f,0x62])](_0x3d8df9[_0x1d5191([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d5191([0x2b]))[_0x1d5191([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d5191([0x2f])));}function _0x3661e4(_0x10e6e0){let _0x442b39=0x1505;function _0x90fa8d(_0x28ea2e){for(let _0x1ddbe7=0x0;_0x1ddbe7<_0x28ea2e[_0x1d5191([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ddbe7++){const _0x3abde2=_0x28ea2e[_0x1d5191([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ddbe7);_0x442b39=(_0x442b39<<0x5)+_0x442b39+_0x3abde2,_0x442b39&=_0x442b39;}}function _0x2ddb5a(_0x4e91c4){Array[_0x1d5191([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e91c4)?_0x4e91c4[_0x1d5191([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ddb5a):_0x4e91c4&&typeof _0x4e91c4==_0x1d5191([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d5191([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e91c4)[_0x1d5191([0x73,0x6f,0x72,0x74])]()[_0x1d5191([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15a24b,_0x22065f])=>{_0x90fa8d(_0x15a24b),_0x2ddb5a(_0x22065f);}):_0x90fa8d(window[_0x1d5191([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e91c4));}return _0x2ddb5a(_0x10e6e0),_0x442b39>>>0x0;}function _0x1a853f(_0x420396){return _0x420396[_0x1d5191([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d5191([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d5191([0x30]));}function _0x2ca20a(_0x40c135){return _0x40c135[_0x1d5191([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d5191([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d5191([0x6a,0x6f,0x69,0x6e])]('');}function _0xb012eb(_0xc3928d){return _0x2ea5cf[_0x1d5191([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d5191([0x68,0x61,0x73])](_0xc3928d);}function _0xa505b4(_0x304c02){return _0x2ea5cf[_0x1d5191([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1d5191([0x67,0x65,0x74])](_0x304c02);}function _0x9026ba(){}function _0x1d5191(_0x132098){return _0x132098['map'](_0x8020ed=>String['fromCharCode'](_0x8020ed))['join']('');}_0x414291(await _0x477dae());}(this);}set['adapter'](_0x2fed1e){if(this['_adapter'])throw new _0x3f002a('track-changes-adapter-already-set',this);this['_adapter']=_0x2fed1e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x496abb=!0x1,toJSON:_0x57051a=!0x1}={}){const _0x25a333=[];for(const _0x55e984 of this['_suggestions']['values']())_0x496abb&&!_0x55e984['isInContent']||_0x25a333['push'](_0x55e984);return _0x57051a?_0x25a333['map'](_0x5c7acb=>_0x5c7acb['toJSON']()):_0x25a333;}['getSuggestion'](_0x72b60f){const _0x2bebd0=this['_suggestions']['get'](_0x72b60f);if(!_0x2bebd0)throw new _0x3f002a('track-changes-suggestion-not-found',this);return _0x2bebd0;}['hasSuggestion'](_0x24f3d7){return this['_suggestions']['has'](_0x24f3d7);}['addSuggestionData'](_0xe3df29){const {authorId:_0x58e4b5,id:_0x18558b,originalSuggestionId:_0x3a82ee,attributes:_0x103aaf}=_0xe3df29,[_0x5c21f2,_0x2513bd]=_0xe3df29['type']['split'](':'),_0x14c189=this['_suggestions']['get'](_0x18558b)||this['_createSuggestion'](_0x5c21f2,_0x2513bd,_0x18558b,_0x58e4b5,_0x103aaf,_0x3a82ee);if(this['_addThreadToSuggestion'](_0x14c189),this['_checkSuggestionCorrectness'](_0x14c189,_0x5c21f2,_0x2513bd||null,_0x58e4b5),_0x14c189['createdAt']=_0xe3df29['createdAt'],_0x14c189['_isDataLoaded']=!0x0,_0x103aaf&&_0x103aaf['@external']){const _0x4172a7=_0x103aaf['@external'],_0x54f4de=this['_getExternalAuthor'](_0x4172a7['authorName']);_0x14c189['authoredAt']=_0x4172a7['createdAt'],_0x14c189['author']=_0x54f4de,_0x14c189['isExternal']=!0x0;}else _0x14c189['authoredAt']=_0xe3df29['createdAt'];switch(_0xe3df29['data']&&(_0x14c189['data']=_0xe3df29['data']),_0xe3df29['attributes']&&(_0x14c189['attributes']=_0xe3df29['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x14c189['_saved']=!0x0),this['_suggestionState']['get'](_0x14c189)){case'notReady':this['_suggestionState']['set'](_0x14c189,'dataReady');break;case'markerReady':_0x14c189['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x14c189])),this['_refreshSuggestionsChain'](new Set([_0x14c189])),this['_suggestionState']['set'](_0x14c189,'ready'),this['fire']('suggestionLoaded',_0x14c189)):this['_suggestionState']['set'](_0x14c189,'removed');}return _0x14c189;}['acceptSuggestion'](_0x26e408){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x449308 of _0x26e408['getAllAdjacentSuggestions']())_0x449308['accept']();});});}['discardSuggestion'](_0x2f56e8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3f0245 of _0x2f56e8['getAllAdjacentSuggestions']())_0x3f0245['discard']();});});}['enableCommand'](_0x2807e3,_0x1d0a02){const _0xe56116=this['editor']['commands']['get'](_0x2807e3);if(!_0xe56116)throw new _0x3f002a('track-changes-command-not-found',this,{'commandName':_0x2807e3});if(this['_enabledCommands']['has'](_0xe56116))throw new _0x3f002a('track-changes-enable-command-twice',this,{'commandName':_0x2807e3});this['_enabledCommands']['add'](_0xe56116),_0x1d0a02&&_0xe56116['on']('execute',(_0x1703d2,_0xf643b2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xf643b2['length']>0x0&&_0xf643b2[_0xf643b2['length']-0x1]&&_0xf643b2[_0xf643b2['length']-0x1]['forceDefaultExecution']?_0xf643b2['pop']():(_0x1703d2['return']=_0x1d0a02((..._0x5b41c)=>_0xe56116['execute'](..._0x5b41c,{'forceDefaultExecution':!0x0}),..._0xf643b2),_0x1703d2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x57afa2){let _0x3bc932,_0x1fec89;const _0x5d460c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3bc932=_0x57afa2();}catch(_0x1d4099){_0x1fec89=_0x1d4099;}return _0x5d460c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1fec89&&_0x3f002a['rethrowUnexpectedError'](_0x1fec89,this),_0x3bc932;}['markInsertion'](_0x57624d,_0x440533=null,_0x37a5e7={}){if(_0x57624d['isCollapsed'])return null;const _0x27cd61=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x37a5e7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x338d3e,meta:_0x3ce1a8}of this['_findSuggestions'](_0x57624d,'insertion'))if(_0x3ce1a8['isOwn']){if(!_0x3ce1a8['isNextTo']){if(_0x3ce1a8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Yt(_0x338d3e,_0x37a5e7))continue;return _0x338d3e;}if(Yt(_0x338d3e,_0x37a5e7))return _0x338d3e;this['_breakSuggestionMarker'](_0x338d3e,_0x57624d['start'],_0x57624d['end']);break;}if(_0x440533==_0x338d3e['subType']&&Yt(_0x338d3e,_0x37a5e7)){const _0x1365ac=_0x338d3e['getFirstRange']();return _0x1365ac['start']['isEqual'](_0x57624d['end'])?this['_setSuggestionRange'](_0x338d3e,this['_model']['createRange'](_0x57624d['start'],_0x1365ac['end'])):this['_setSuggestionRange'](_0x338d3e,this['_model']['createRange'](_0x1365ac['start'],_0x57624d['end'])),_0x338d3e;}}const _0x2cd8c1=_0x21999f(),_0xd5a025=_0x27cd61['id'],_0x13f2fb=_0x440533?'insertion:'+_0x440533:'insertion',_0x3920a0=this['_setSuggestionData']({'id':_0x2cd8c1,'type':_0x13f2fb,'createdAt':new Date(),'authorId':_0xd5a025,'attributes':_0x37a5e7});return this['_addSuggestionMarker'](_0x13f2fb,_0x2cd8c1,_0xd5a025,_0x57624d),_0x3920a0;}['markMultiRangeInsertion'](_0x15d3a4,_0x493cfc='multi',_0x4e6c1e={}){const _0x534491=this['editor']['plugins']['get']('Users')['me'],_0x454ee1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x493cfc,'join');this['_trackingSessionId']&&(_0x4e6c1e['trackingSessionId']=this['_trackingSessionId']);for(const _0x25339d of this['getSuggestions']())if(_0x25339d['author']['id']==_0x534491['id']&&'insertion'==_0x25339d['type']&&_0x25339d['subType']==_0x493cfc&&Yt(_0x25339d,_0x4e6c1e)&&(_0x454ee1(_0x25339d['getRanges'](),_0x15d3a4)||_0x454ee1(_0x15d3a4,_0x25339d['getRanges']()))){for(const _0x3c0d81 of _0x15d3a4)_0x25339d['addRange'](_0x3c0d81);return _0x25339d;}for(const {suggestion:_0x436126,meta:_0x401ddc}of this['_findSuggestions'](_0x15d3a4,'insertion')){if(!_0x401ddc['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x401ddc['containsRangeInObject'])continue;if(!Yt(_0x436126,_0x4e6c1e))continue;let _0x22e421=!0x0;for(const _0xb91334 of _0x436126['getRanges']())for(const _0x5b6e8f of _0x15d3a4)if(!_0xb91334['containsRange'](_0x5b6e8f)){_0x22e421=!0x1;break;}if(_0x22e421)return _0x436126;}const _0x5eb9ca=_0x21999f(),_0xb25295=_0x534491['id'],_0x5b3bc5='insertion:'+_0x493cfc,_0x5f10fe=this['_setSuggestionData']({'id':_0x5eb9ca,'type':_0x5b3bc5,'createdAt':new Date(),'authorId':_0xb25295,'attributes':_0x4e6c1e});for(const _0x3d6f28 of _0x15d3a4)this['_addSuggestionMarker'](_0x5b3bc5,_0x5eb9ca,_0xb25295,_0x3d6f28,o['getMultiRangeId']());return _0x5f10fe;}['markInlineFormat'](_0x43e78e,_0x3361ed,_0x30d75b=null,_0x427dc5={}){if(_0x30d75b=_0x30d75b||Kt(_0x3361ed),_0x43e78e['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x427dc5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5114cd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30d75b,'accept');return this['forceDefaultExecution'](()=>_0x5114cd([_0x43e78e],_0x3361ed,_0x427dc5)),null;}const _0x2c84b6=this['editor']['plugins']['get']('Users')['me'],_0x3b8c68=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5af95d,meta:_0x206f90}of this['_findSuggestions'](_0x43e78e,'insertion'))_0x206f90['isOwn']&&!_0x206f90['isInsideObject']&&_0x3b8c68['push'](..._0x5af95d['getRanges']());}const _0x107f22=function(_0x40f0d1,_0x44a657){const _0x1ba8e8=[];for(const _0x37ca04 of _0x44a657){const _0x3e1ac6=_0x40f0d1['getIntersection'](_0x37ca04);_0x3e1ac6&&_0x1ba8e8['push'](_0x3e1ac6);}return _0x1ba8e8;}(_0x43e78e,_0x3b8c68),_0x53947b=function(_0x5b062d,_0x18a49a){const _0x1877be=[_0x5b062d];for(const _0x117adb of _0x18a49a){let _0x87873c=0x0;for(;_0x87873c<_0x1877be['length'];){const _0x4ba99b=_0x1877be[_0x87873c]['getDifference'](_0x117adb);_0x1877be['splice'](_0x87873c,0x1,..._0x4ba99b),_0x87873c+=_0x4ba99b['length'];}}return _0x1877be;}(_0x43e78e,_0x3b8c68);_0x107f22['length']&&this['_model']['change'](()=>{for(const _0x2fccfe of _0x107f22){const _0x4721a4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30d75b,'accept');this['forceDefaultExecution'](()=>_0x4721a4([_0x2fccfe],_0x3361ed,_0x427dc5));}});for(const _0x314272 of _0x53947b){let _0x51d90a=null,_0x2bea21=_0x314272['start'],_0x8fcb93=_0x314272['end'];for(const {suggestion:_0x2b7ab1,meta:_0x137070}of this['_findSuggestions'](_0x314272,'formatInline')){if(!_0x137070['isOwn'])continue;if(_0x2b7ab1['subType']!=_0x30d75b)continue;if(!Yt(_0x2b7ab1,_0x427dc5))continue;const _0xf64bcb=_0x2b7ab1['getFirstRange']();if(_0xf64bcb['containsRange'](_0x314272,!0x0))return null;_0x2bea21=_0x2bea21['isBefore'](_0xf64bcb['start'])?_0x2bea21:_0xf64bcb['start'],_0x8fcb93=_0x8fcb93['isAfter'](_0xf64bcb['end'])?_0x8fcb93:_0xf64bcb['end'],_0x51d90a?_0xf64bcb['start']['isBefore'](_0x51d90a['getFirstRange']()['start'])?(_0x51d90a['removeMarkers'](),_0x51d90a=_0x2b7ab1):_0x2b7ab1['removeMarkers']():_0x51d90a=_0x2b7ab1;}const _0x5aa079=this['_model']['createRange'](_0x2bea21,_0x8fcb93);if(_0x51d90a)this['_setSuggestionRange'](_0x51d90a,_0x5aa079);else{const _0x158db1=_0x21999f(),_0x3c3e66=_0x2c84b6['id'];this['_setSuggestionData']({'id':_0x158db1,'type':'formatInline:'+_0x30d75b,'data':_0x3361ed,'createdAt':new Date(),'authorId':_0x3c3e66,'attributes':_0x427dc5}),this['_addSuggestionMarker']('formatInline:'+_0x30d75b,_0x158db1,_0x3c3e66,_0x5aa079);}}return null;}['markBlockFormat'](_0x1f404e,_0x9b14a3,_0x4f62b5=[],_0x1ddfcc=null,_0x4ec177={}){_0x9b14a3['formatGroupId']||(_0x9b14a3['formatGroupId']=_0x9b14a3['commandName']),_0x9b14a3['multipleBlocks']=_0x1f404e['is']('range'),_0x1ddfcc=_0x1ddfcc||Kt(_0x9b14a3);const _0x51e8d6=_0x4f62b5['map'](_0x4509e6=>Wt(_0x4509e6,this['_model'])),_0x29fd1a=_0x1f404e['is']('range')?_0x1f404e:Wt(_0x1f404e,this['_model']);if(this['_trackingSessionId']&&(_0x4ec177['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x260f9d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ddfcc,'accept');return this['forceDefaultExecution'](()=>_0x260f9d([_0x29fd1a],_0x9b14a3,_0x4ec177)),null;}_0x51e8d6['push'](_0x29fd1a);let _0x2a762c=!0x0;for(const _0x5903fc of _0x51e8d6)if(!this['_rangeIsInLocalUserInsertion'](_0x5903fc)){_0x2a762c=!0x1;break;}if(_0x2a762c&&'always'!==this['_trackFormatChanges']){const _0x2f19d7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ddfcc,'accept');return this['forceDefaultExecution'](()=>_0x2f19d7([_0x29fd1a],_0x9b14a3,_0x4ec177)),null;}let _0x5e58cc=null,_0x202e22=_0x29fd1a['start'],_0x1790bb=_0x29fd1a['end'];for(const {suggestion:_0x5e0524,meta:_0x2a5676}of this['_findSuggestions'](_0x29fd1a,'formatBlock')){if(!_0x2a5676['isOwn'])continue;if(_0x2a5676['isNextTo']||_0x2a5676['containsRangeInObject']||_0x2a5676['isInsideObject'])continue;if(_0x5e0524['data']['formatGroupId']!=_0x9b14a3['formatGroupId'])continue;if(!Yt(_0x5e0524,_0x4ec177))continue;const _0xdbf5ca=_0x5e0524['getFirstRange']();if(_0x5e0524['subType']==_0x1ddfcc){if(_0xdbf5ca['containsRange'](_0x29fd1a,!0x0))return null;_0x202e22=_0x202e22['isBefore'](_0xdbf5ca['start'])?_0x202e22:_0xdbf5ca['start'],_0x1790bb=_0x1790bb['isAfter'](_0xdbf5ca['end'])?_0x1790bb:_0xdbf5ca['end'],_0x5e58cc?_0xdbf5ca['start']['isBefore'](_0x5e58cc['getFirstRange']()['start'])?(_0x5e58cc['removeMarkers'](),_0x5e58cc=_0x5e0524):_0x5e0524['removeMarkers']():_0x5e58cc=_0x5e0524;}else{const _0x2dac36=_0x29fd1a['getIntersection'](_0xdbf5ca);this['_cutOutSuggestionMarker'](_0x5e0524,_0x2dac36);}}const _0x3f5cab=this['editor']['plugins']['get']('Users')['me'],_0x4743bb=_0x21999f(),_0x3e3464=_0x3f5cab['id'];if(_0x5e58cc)return this['_setSuggestionRange'](_0x5e58cc,this['_model']['createRange'](_0x202e22,_0x1790bb)),_0x5e58cc;{const _0x5c164d=this['_setSuggestionData']({'id':_0x4743bb,'type':'formatBlock:'+_0x1ddfcc,'data':_0x9b14a3,'createdAt':new Date(),'authorId':_0x3e3464,'attributes':_0x4ec177});return this['_addSuggestionMarker']('formatBlock:'+_0x1ddfcc,_0x4743bb,_0x3e3464,this['_model']['createRange'](_0x202e22,_0x1790bb)),_0x5c164d;}}['markMultiRangeBlockFormat'](_0x5b25c1,_0x4097b4,_0x13c461=[],_0x277fcb=null,_0x4cdd12={}){_0x4097b4['formatGroupId']||(_0x4097b4['formatGroupId']=_0x4097b4['commandName']);const _0x1662dc=_0x5b25c1[0x0];_0x4097b4['multipleBlocks']=_0x1662dc['is']('range'),_0x277fcb=_0x277fcb||Kt(_0x4097b4);const _0x478bda=_0x13c461['map'](_0x56c465=>Wt(_0x56c465,this['_model'])),_0x4698f3=_0x1662dc['is']('range')?_0x5b25c1:_0x5b25c1['map'](_0x1f171f=>Wt(_0x1f171f,this['_model']));if(this['_trackingSessionId']&&(_0x4cdd12['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x228380=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x277fcb,'accept');return this['forceDefaultExecution'](()=>_0x228380(_0x4698f3,_0x4097b4,_0x4cdd12)),null;}_0x478bda['push'](..._0x4698f3);let _0x81b979=!0x0;for(const _0x3dd608 of _0x478bda)if(!this['_rangeIsInLocalUserInsertion'](_0x3dd608)){_0x81b979=!0x1;break;}if(_0x81b979&&'always'!==this['_trackFormatChanges']){const _0x15bb4e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x277fcb,'accept');return this['forceDefaultExecution'](()=>_0x15bb4e(_0x4698f3,_0x4097b4,_0x4cdd12)),null;}const _0x2bc422=this['editor']['plugins']['get']('Users')['me'];for(const _0x474366 of this['getSuggestions']()){if(_0x474366['author']['id']!=_0x2bc422['id'])continue;if('formatBlock'!=_0x474366['type']||_0x474366['data']['formatGroupId']!=_0x4097b4['formatGroupId'])continue;if(!Yt(_0x474366,_0x4cdd12))continue;const _0x130cf3=_0x474366['subType']==_0x277fcb;for(let _0x15d565=0x0;_0x15d565<_0x4698f3['length'];_0x15d565++){const _0x576994=_0x4698f3[_0x15d565];for(const _0x322d55 of _0x474366['getMarkers']()){const _0x3de766=_0x322d55['getRange']();if(_0x576994['isEqual'](_0x3de766)){_0x130cf3?(_0x4698f3['splice'](_0x15d565,0x1),_0x15d565--):_0x474366['removeMarker'](_0x322d55['name']);break;}}}}if(0x0==_0x4698f3['length'])return null;const _0x22be21=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x277fcb,'join');for(const _0x3a95fe of this['getSuggestions']())if(_0x3a95fe['author']['id']==_0x2bc422['id']&&'formatBlock'==_0x3a95fe['type']&&_0x3a95fe['data']['formatGroupId']==_0x4097b4['formatGroupId']&&_0x3a95fe['subType']==_0x277fcb&&Yt(_0x3a95fe,_0x4cdd12)&&(_0x22be21(_0x3a95fe['getRanges'](),_0x4698f3)||_0x22be21(_0x4698f3,_0x3a95fe['getRanges']()))){for(const _0x5509ff of _0x4698f3)_0x3a95fe['addRange'](_0x5509ff);return _0x3a95fe;}const _0x40a214=_0x21999f(),_0x2a39c4=_0x2bc422['id'],_0x56cdc1='formatBlock:'+_0x277fcb,_0xbb8e74=this['_setSuggestionData']({'id':_0x40a214,'type':_0x56cdc1,'data':_0x4097b4,'createdAt':new Date(),'authorId':_0x2a39c4,'attributes':_0x4cdd12});for(const _0x1cfe39 of _0x4698f3)this['_addSuggestionMarker'](_0x56cdc1,_0x40a214,_0x2a39c4,_0x1cfe39,o['getMultiRangeId']());return _0xbb8e74;}['markDeletion'](_0x393e0e,_0x19509d=null,_0x5bfeb1={}){if(_0x393e0e['isCollapsed'])return null;const _0x652c8b=this['editor']['plugins']['get']('Users')['me'],_0x231d90=new _0x1a5d6e(_0x393e0e['start'],_0x393e0e['end']);this['_trackingSessionId']&&(_0x5bfeb1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2c9a61,meta:_0x44f0ee}of this['_findSuggestions'](_0x231d90,'insertion'))if(_0x44f0ee['isOwn']&&!_0x44f0ee['isNextTo']){if(_0x2c9a61['isMultiRange']){const _0x2f6d44=_0x2c9a61['getRanges']()['filter'](_0x381fa2=>'$graveyard'!=_0x381fa2['root']['rootName']);_0x2f6d44['every'](_0x4b748a=>_0x231d90['containsRange'](_0x4b748a,!0x0))&&_0x2c9a61['discard']();if(_0x2f6d44['some'](_0x49b8bb=>_0x49b8bb['containsRange'](_0x231d90,!0x0))){const _0x4b352c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19509d,'accept');return this['forceDefaultExecution'](()=>_0x4b352c([_0x231d90],null,_0x5bfeb1)),null;}}else{const _0x53bf1a=_0x231d90['getIntersection'](_0x2c9a61['getFirstRange']());null!==_0x53bf1a&&_0x2c9a61['_onDiscard']([_0x53bf1a],null,_0x5bfeb1);}}if(_0x231d90['detach'](),_0x231d90['isCollapsed']||'$graveyard'==_0x231d90['root']['rootName'])return null;let _0x18306e=null,_0x2df3cd=_0x231d90['start'],_0x1edb27=_0x231d90['end'];const _0x5316f5=this['_findSuggestions'](_0x231d90,'deletion');for(const {suggestion:_0x7c6573,meta:_0x1d2783}of _0x5316f5){const _0xee94e7=this['_model']['createRange'](_0x2df3cd,_0x1edb27);if(_0x1d2783['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d2783['containsRangeInObject']&&!_0x1d2783['isInsideObject'])){if(_0x7c6573['isMultiRange']){if(!Yt(_0x7c6573,_0x5bfeb1))continue;let _0x4757a3=!0x0;for(const _0x50f74b of _0x7c6573['getRanges']()){if(_0x50f74b['containsRange'](_0xee94e7,!0x0))return _0x7c6573;_0xee94e7['containsRange'](_0x50f74b)||(_0x4757a3=!0x1);}_0x4757a3&&_0x7c6573['discard']();}else{const _0x41b688=_0x7c6573['getFirstRange']();if(_0x41b688['containsRange'](_0xee94e7,!0x0))return _0x7c6573;if(!Yt(_0x7c6573,_0x5bfeb1)){_0xee94e7['containsRange'](_0x41b688)?_0x7c6573['removeMarkers']():_0x41b688['containsPosition'](_0x2df3cd)?_0x2df3cd=_0x41b688['end']:_0x41b688['containsPosition'](_0x1edb27)&&(_0x1edb27=_0x41b688['start']);continue;}_0x2df3cd=_0x2df3cd['isBefore'](_0x41b688['start'])?_0x2df3cd:_0x41b688['start'],_0x1edb27=_0x1edb27['isAfter'](_0x41b688['end'])?_0x1edb27:_0x41b688['end'],_0x5bfeb1=Object['assign']({},_0x7c6573['attributes']),_0x18306e?_0x41b688['start']['isBefore'](_0x18306e['getFirstRange']()['start'])?(_0x18306e['removeMarkers'](),_0x18306e=_0x7c6573):_0x7c6573['removeMarkers']():_0x18306e=_0x7c6573;}}}if(_0x18306e)return this['_setSuggestionRange'](_0x18306e,this['_model']['createRange'](_0x2df3cd,_0x1edb27)),_0x18306e;{const _0x4d45e2=_0x21999f(),_0x3f9367=this['_model']['createRange'](_0x2df3cd,_0x1edb27),_0x2fd952=_0x652c8b['id'],_0x58a227=_0x19509d?'deletion:'+_0x19509d:'deletion',_0x556d60=this['_setSuggestionData']({'id':_0x4d45e2,'type':_0x58a227,'createdAt':new Date(),'authorId':_0x2fd952,'attributes':_0x5bfeb1});return this['_addSuggestionMarker'](_0x58a227,_0x4d45e2,_0x2fd952,_0x3f9367),_0x556d60;}}['markMultiRangeDeletion'](_0x817729,_0x4cc434='multi',_0x4388af={}){const _0x2f3bd8=this['editor']['plugins']['get']('Users')['me'],_0x280545=_0x817729['map'](_0x4d1876=>new _0x1a5d6e(_0x4d1876['start'],_0x4d1876['end'])),_0xfa1479=new Set();this['_trackingSessionId']&&(_0x4388af['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14dfcf,meta:_0x1e38dc}of this['_findSuggestions'](_0x280545,'insertion'))_0x1e38dc['isOwn']&&!_0x1e38dc['isNextTo']&&_0xfa1479['add'](_0x14dfcf);for(const _0x40cfec of _0xfa1479)if(_0x40cfec['isMultiRange']){const _0x113a65=_0x40cfec['getRanges']();(!_0x40cfec['attributes']||!_0x40cfec['attributes']['skipNestingCheck'])&&(_0x113a65['every'](_0x38a491=>_0x280545['some'](_0x40dd44=>_0x40dd44['containsRange'](_0x38a491,!0x0)))&&_0x40cfec['discard']());if(_0x280545['every'](_0x3bb851=>_0x113a65['some'](_0x2b23c8=>_0x2b23c8['containsRange'](_0x3bb851,!0x0)))){const _0x181394=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cc434,'accept');return this['forceDefaultExecution'](()=>_0x181394(_0x817729,null,_0x4388af)),null;}}else{const _0x553116=_0x40cfec['getFirstRange']();_0x280545['some'](_0x53b02b=>_0x53b02b['containsRange'](_0x553116,!0x0))&&_0x40cfec['discard']();if(_0x280545['every'](_0x4c083d=>_0x553116['containsRange'](_0x4c083d,!0x0))){const _0x4b84fb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cc434,'accept');return this['forceDefaultExecution'](()=>_0x4b84fb(_0x280545,null,_0x4388af)),null;}}const _0x4343bf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cc434,'join');let _0x4da317=null;for(const _0x11de15 of this['getSuggestions']())if(_0x11de15['author']['id']==_0x2f3bd8['id']&&_0x11de15['isInContent']&&'deletion'==_0x11de15['type']&&_0x11de15['subType']==_0x4cc434&&Yt(_0x11de15,_0x4388af)&&(_0x4343bf(_0x11de15['getRanges'](),_0x280545)||_0x4343bf(_0x280545,_0x11de15['getRanges']()))){if(_0x4da317){if(_0x11de15['commentThread']&&_0x11de15['commentThread']['length'])continue;for(const _0x2d88ee of _0x11de15['getRanges']())_0x4da317['isIntersectingWithRange'](_0x2d88ee)||_0x4da317['addRange'](_0x2d88ee);_0x11de15['removeMarkers']();}else{_0x4da317=_0x11de15;for(const _0x3a6bbd of _0x280545)_0x11de15['isIntersectingWithRange'](_0x3a6bbd)||_0x11de15['addRange'](_0x3a6bbd);}}if(_0x4da317)return _0x4da317;_0xfa1479['clear']();for(const {suggestion:_0xc7242,meta:_0x507dcb}of this['_findSuggestions'](_0x280545,'deletion'))_0x507dcb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x507dcb['containsRangeInObject']&&!_0x507dcb['isInsideObject'])&&Yt(_0xc7242,_0x4388af)&&_0xfa1479['add'](_0xc7242);for(const _0x58e00c of _0xfa1479){const _0x38c7f9=_0x58e00c['getRanges']();if(!_0x4388af||!_0x4388af['skipNestingCheck']){if(_0x280545['every'](_0x3e30ca=>_0x38c7f9['some'](_0x131084=>_0x131084['containsRange'](_0x3e30ca,!0x0))))return _0x58e00c;}(!_0x58e00c['attributes']||!_0x58e00c['attributes']['skipNestingCheck'])&&(_0x38c7f9['every'](_0x352a7b=>_0x280545['some'](_0x124d78=>_0x124d78['containsRange'](_0x352a7b,!0x0)))&&_0x58e00c['discard']());}const _0xa58189=_0x21999f(),_0x190077=_0x2f3bd8['id'],_0x344981='deletion:'+_0x4cc434,_0xea5575=this['_setSuggestionData']({'id':_0xa58189,'type':_0x344981,'createdAt':new Date(),'authorId':_0x190077,'attributes':_0x4388af});for(const _0x18db15 of _0x280545)_0x18db15['detach'](),_0x18db15['isCollapsed']||'$graveyard'==_0x18db15['root']['rootName']||this['_addSuggestionMarker'](_0x344981,_0xa58189,_0x190077,_0x18db15,o['getMultiRangeId']());return _0xea5575;}['markAttributeChange'](_0x26290e,_0x4245cd,_0x34e3e4,_0x3f8dc0,_0x543bfe){if(_0x26290e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x493a08=this['editor']['plugins']['get']('Users')['me']['id'],_0x40fd2a=Array['from'](this['_suggestions']['values']())['filter'](_0x3d34c5=>'attribute'==_0x3d34c5['type']&&_0x3d34c5['data']['key']==_0x4245cd&&_0x3d34c5['isIntersectingWithRange'](_0x26290e));if(this['_trackingSessionId']&&(_0x543bfe['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5998b3=this['_findSuggestions'](_0x26290e,'insertion')['filter'](({meta:_0x51229e})=>_0x51229e['isOwn']&&!_0x51229e['isInsideObject']&&!_0x51229e['isNextTo'])['map'](({suggestion:_0x35f422})=>_0x35f422);_0x40fd2a['unshift'](..._0x5998b3);}const _0x49d7fb=new Map([[_0x26290e,_0x34e3e4]]);for(const _0x25029c of _0x40fd2a){const _0x1cf6d3='attribute'==_0x25029c['type']?_0x25029c['data']['oldValue']:void 0x0,_0x1eedb1=_0x25029c['getFirstRange'](),_0xcec8c2=Array['from'](_0x49d7fb['keys']())['find'](_0x2bf5bb=>_0x2bf5bb['isIntersecting'](_0x1eedb1));if(!_0xcec8c2)continue;const _0x5db60b=_0xcec8c2['getDifference'](_0x1eedb1);this['_isBlockAttribute'](_0x4245cd)&&'insertion'==_0x25029c['type']&&0x0!=_0x5db60b['length']||(_0x49d7fb['delete'](_0xcec8c2),_0x5db60b['forEach'](_0x1fd43d=>{_0x49d7fb['set'](_0x1fd43d,_0x34e3e4);}),'insertion'!=_0x25029c['type']&&_0x1cf6d3!=_0x3f8dc0&&_0x49d7fb['set'](_0xcec8c2['getIntersection'](_0x1eedb1),_0x1cf6d3));}const _0x341658=[];for(const [_0x24e8e9,_0x5b0b4a]of _0x49d7fb){const _0x40f006=_0x21999f(),_0x189a99={'key':_0x4245cd,'oldValue':_0x5b0b4a,'newValue':_0x3f8dc0};_0x4245cd['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':_0x4245cd});const _0x49a1f0=('attribute:'+(_0x4245cd+'|'+Kt({'newValue':_0x3f8dc0})))['substring'](0x0,0x3c),_0x492c8b=this['_setSuggestionData']({'id':_0x40f006,'type':_0x49a1f0,'data':_0x189a99,'createdAt':new Date(),'authorId':_0x493a08,'attributes':_0x543bfe});_0x341658['push'](_0x492c8b),this['_addSuggestionMarker'](_0x49a1f0,_0x40f006,_0x493a08,_0x24e8e9);}return _0x341658;}['enableDefaultAttributesIntegration'](_0x38ccc4){this['enableCommand'](_0x38ccc4,(_0x4279cc,..._0x34385a)=>{this['_recordAttributeChanges'](()=>{_0x4279cc(..._0x34385a);});});}['registerBlockAttribute'](_0x4fce4e){this['_blockAttributeKeys']['add'](_0x4fce4e);}['registerInlineAttribute'](_0x33c1d1){this['_inlineAttributeKeys']['add'](_0x33c1d1);}['startTrackingSession'](_0x4f6ec9){return this['_trackingSessionId']=void 0x0!==_0x4f6ec9?_0x4f6ec9:_0x21999f(),this['_trackingSessionId'];}['_getAttributeKey'](_0x54a0ac){return'attribute'==_0x54a0ac['type']?_0x54a0ac['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5071b5,_0x74a0d9){const _0x55a3ae=_0x5071b5['getFirstMarker']();this['_model']['change'](_0x2f78dc=>{_0x2f78dc['updateMarker'](_0x55a3ae,{'range':_0x74a0d9});});}['_addThreadToSuggestion'](_0x1f62c4){const _0x39b3be=_0x1f62c4['id'],_0x3a5044=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x39b3be)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3a5044,'threadId':_0x39b3be,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xaac326=this['_commentsRepository']['getCommentThread'](_0x39b3be);_0xaac326['unbind']('isRemovable'),_0xaac326['isRemovable']=!0x1,_0x1f62c4['commentThread']=_0xaac326;}['_checkSuggestionCorrectness'](_0x1f7c34,_0x5b8cc2,_0x2ce3c2,_0x2d3ca2){if(_0x1f7c34['type']!=_0x5b8cc2||_0x1f7c34['subType']!=_0x2ce3c2||_0x1f7c34['creator']['id']!=_0x2d3ca2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3f002a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5943ee,_0x74d039){const _0x4a4de8=_0x5943ee['getFirstRange']();if(_0x74d039['isEqual'](_0x4a4de8))_0x5943ee['removeMarkers']();else{if(_0x4a4de8['containsRange'](_0x74d039)){const _0x167d07=this['_model']['createPositionAt'](_0x74d039['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5943ee,this['_model']['createRange'](_0x4a4de8['start'],_0x167d07));const _0x3ac3a1=_0x21999f(),_0xea431f=_0x5943ee['creator']['id'],_0x11abeb=_0x5943ee['type']+':'+_0x5943ee['subType'];this['_setSuggestionData']({'id':_0x3ac3a1,'type':_0x11abeb,'createdAt':new Date(),'authorId':_0xea431f,'data':_0x5943ee['data'],'attributes':_0x5943ee['attributes']});const _0x59d5b6=this['_model']['createPositionAt'](_0x74d039['end']['parent'],'after'),_0x34fc1d=this['_model']['createRange'](_0x59d5b6,_0x4a4de8['end']);this['_addSuggestionMarker'](_0x11abeb,_0x3ac3a1,_0xea431f,_0x34fc1d);}else{if(_0x4a4de8['containsPosition'](_0x74d039['start'])){const _0x162c02=this['_model']['createPositionAt'](_0x74d039['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5943ee,this['_model']['createRange'](_0x4a4de8['start'],_0x162c02));}else{const _0x595a2c=this['_model']['createPositionAt'](_0x74d039['end']['parent'],'after');this['_setSuggestionRange'](_0x5943ee,this['_model']['createRange'](_0x595a2c,_0x4a4de8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xd15ae2){for(const {suggestion:_0x773f11,meta:_0x59d5d4}of this['_findSuggestions'](_0xd15ae2,'insertion')){if(!_0x59d5d4['isOwn'])continue;const _0x34e53d=_0x773f11['getRanges']();for(const _0x3e82d7 of _0x34e53d)if(!_0xd15ae2['getDifference'](_0x3e82d7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5894b0){const _0x5cdd26=this['editor']['plugins']['get']('Users')['getUser'](_0x5894b0);if(!_0x5cdd26)throw new _0x3f002a('track-changes-user-not-found',this);return _0x5cdd26;}['_getExternalAuthor'](_0x44aba0){const _0x2c2207=this['editor']['plugins']['get']('Users'),_0x41bf74=_0x49b0ed('external:'+_0x44aba0),_0x556aab=_0x2c2207['getUser'](_0x41bf74);return _0x556aab||_0x2c2207['addUser']({'id':_0x41bf74,'name':_0x44aba0});}['_createSuggestion'](_0x2c9880,_0x44eead,_0x210675,_0x59e667,_0x4c7e95,_0x35a029){const _0x1681f2=this['_getAuthorFromId'](_0x59e667),_0x3e4ead=this['_suggestionFactory']['buildSuggestion'](_0x2c9880,_0x44eead,_0x210675,_0x1681f2,_0x4c7e95,_0xd6f4dd=>{this['_updateSuggestionData'](_0x210675,{'attributes':_0xd6f4dd});const _0x2904c7=this['getSuggestion'](_0x210675);this['_joinWithAdjacentSuggestions'](new Set([_0x2904c7])),this['_refreshSuggestionsChain'](new Set([_0x2904c7]));},_0x35a029);return this['listenTo'](_0x3e4ead,'accept',()=>{this['_updateSuggestionData'](_0x210675,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e4ead,'discard',()=>{this['_updateSuggestionData'](_0x210675,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x210675,_0x3e4ead),this['_suggestionState']['set'](_0x3e4ead,'notReady'),_0x3e4ead;}['_splitMarkerName'](_0x506005){const _0x775729=_0x506005['split'](':');return{'group':_0x775729[0x0],'type':_0x775729[0x1],'subType':_0x775729['length']>=0x5?_0x775729[0x2]:null,'id':_0x775729['length']<0x5?_0x775729[0x2]:_0x775729[0x3],'authorId':_0x775729['length']<0x5?_0x775729[0x3]:_0x775729[0x4],'markerCount':0x6==_0x775729['length']?_0x775729[0x5]:null};}['_breakSuggestionMarker'](_0x43e9f0,_0x53155a,_0x2b0258){const _0x2a4e83=_0x43e9f0['getFirstRange'](),_0x7babe5=_0x2a4e83['start'],_0x40a49d=_0x2a4e83['end'];this['_setSuggestionRange'](_0x43e9f0,this['_model']['createRange'](_0x7babe5,_0x53155a));const _0x1c6aa8=_0x21999f(),_0x5816a6=_0x43e9f0['creator']['id'],_0x18b4bd=_0x43e9f0['type']+(_0x43e9f0['subType']?':'+_0x43e9f0['subType']:'');this['_setSuggestionData']({'id':_0x1c6aa8,'type':_0x18b4bd,'createdAt':new Date(),'authorId':_0x5816a6,'originalSuggestionId':_0x43e9f0['_originalSuggestionId']||_0x43e9f0['id'],'attributes':_0x43e9f0['attributes'],'data':_0x43e9f0['data']});const _0x126278=this['_getAttributeKey'](_0x43e9f0);('formatBlock'==_0x43e9f0['type']||_0x126278&&this['_isBlockAttribute'](_0x126278))&&(_0x2b0258=this['_model']['createPositionBefore'](_0x2b0258['parent'])),this['_addSuggestionMarker'](_0x18b4bd,_0x1c6aa8,_0x5816a6,this['_model']['createRange'](_0x2b0258,_0x40a49d));}['_findSuggestions'](_0x40fab2,_0x40434c=null){const _0x437bb8=[],_0xa4d8a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x40fab2)||(_0x40fab2=[_0x40fab2]);for(const _0x40d3d2 of this['getSuggestions']()){if(!_0x40d3d2['isInContent'])continue;if(_0x40434c&&_0x40d3d2['type']!=_0x40434c)continue;let _0x328aa8=!0x1;for(const _0x331911 of _0x40d3d2['getRanges']()){for(const _0x4afa5a of _0x40fab2){const _0xd9e5d0=_0x4afa5a['start']['isEqual'](_0x331911['end'])||_0x4afa5a['end']['isEqual'](_0x331911['start']);if(_0xd9e5d0||_0x4afa5a['getIntersection'](_0x331911)){const _0xb109c4=_0x4afa5a['containsRange'](_0x331911)&&Gt(this['_model']['schema'],_0x331911['start'],_0x4afa5a),_0x19c816=_0x331911['containsRange'](_0x4afa5a)&&Gt(this['_model']['schema'],_0x4afa5a['start'],_0x331911);_0x437bb8['push']({'suggestion':_0x40d3d2,'meta':{'isOwn':_0xa4d8a==_0x40d3d2['author'],'isNextTo':_0xd9e5d0,'isInsideObject':_0xb109c4,'containsRangeInObject':_0x19c816}}),_0x328aa8=!0x0;break;}}if(_0x328aa8)break;}}return _0x437bb8;}['_addSuggestionMarker'](_0x149cb1,_0x73ab6b,_0x29f070,_0xa9e143,_0x2d49d7){this['_model']['change'](_0x1ba9f3=>{let _0x2bbc0c='suggestion:'+_0x149cb1+':'+_0x73ab6b+':'+_0x29f070;_0x2d49d7&&(_0x2bbc0c=_0x2bbc0c+':'+_0x2d49d7),_0x1ba9f3['addMarker'](_0x2bbc0c,{'range':_0xa9e143,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5c8023){const _0x2cc41a=_0x5c8023['previous'],_0xf33714=_0x5c8023['next'];_0x5c8023['previous']=null,_0x5c8023['next']=null,null!=_0x2cc41a&&_0x2cc41a['next']==_0x5c8023&&(_0x2cc41a['next']=_0xf33714),null!=_0xf33714&&_0xf33714['previous']==_0x5c8023&&(_0xf33714['previous']=_0x2cc41a),'ready'==this['_suggestionState']['get'](_0x5c8023)&&(this['_suggestionState']['set'](_0x5c8023,'removed'),this['fire']('suggestionUnloaded',_0x5c8023,_0x2cc41a,_0xf33714));}['_setSuggestionData'](_0x2bcbbe){const _0x4660ae=_0x2bcbbe['id'],_0x92b1d5=this['addSuggestionData'](_0x2bcbbe);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4b2694=this['editor']['plugins']['get']('PendingActions'),_0x4abfd5=_0x92b1d5['hasComments'],_0x55dd32=_0x92b1d5['subType']?_0x92b1d5['type']+':'+_0x92b1d5['subType']:_0x92b1d5['type'],_0x25c60d=this['editor']['locale'],_0x18a23b=_0x4b2694['add'](c(_0x25c60d,'PENDING_ACTION_SUGGESTION')),_0x3f4ba4={'id':_0x4660ae,'type':_0x55dd32,'hasComments':_0x4abfd5,'data':_0x2bcbbe['data']||null,'originalSuggestionId':_0x2bcbbe['originalSuggestionId']||null,'attributes':_0x92b1d5['attributes']};this['_adapter']['addSuggestion'](_0x3f4ba4)['then'](_0x14ff5c=>{_0x92b1d5['_saved']=!0x0,_0x4b2694['remove'](_0x18a23b),_0x14ff5c&&_0x14ff5c['createdAt']&&(this['_suggestions']['get'](_0x4660ae)['createdAt']=_0x14ff5c['createdAt']);})['catch'](_0x29d454=>{throw _0xb01b9a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x92b1d5['discard']();}),_0x92b1d5['stopListening'](),this['_suggestions']['delete'](_0x92b1d5['id']),this['_suggestionState']['delete'](_0x92b1d5),_0x29d454;});}return _0x92b1d5;}['_isBlockAttribute'](_0x586229){return this['_blockAttributeKeys']['has'](_0x586229);}['_updateSuggestionData'](_0x3b81a5,_0xc5ff98){const _0x4e0f31=this['editor']['plugins']['get']('PendingActions'),_0x69fd5c=this['getSuggestion'](_0x3b81a5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x69fd5c['_saved']){const _0x25c916=_0x4e0f31['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3b81a5,_0xc5ff98)['then'](()=>{_0x4e0f31['remove'](_0x25c916);});}else _0x69fd5c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3b81a5,_0xc5ff98);});}}['_getSuggestionData'](_0x24f8de){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3f002a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x24f8de);}['_handleNewSuggestionMarker'](_0x485e9d){const {id:_0x559423,type:_0x1b8420,subType:_0x592a39,authorId:_0x4bc9f2}=this['_splitMarkerName'](_0x485e9d),_0x7e1280=this['_suggestions']['get'](_0x559423)||this['_createSuggestion'](_0x1b8420,_0x592a39,_0x559423,_0x4bc9f2,{});switch(this['_checkSuggestionCorrectness'](_0x7e1280,_0x1b8420,_0x592a39,_0x4bc9f2),this['_suggestionState']['get'](_0x7e1280)){case'notReady':this['_getSuggestionData'](_0x559423)['then'](_0x54ede7=>{let _0x1dc8e4=Promise['resolve']();_0x54ede7['hasComments']&&(_0x1dc8e4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x559423})),_0x1dc8e4['then'](()=>{this['addSuggestionData'](_0x54ede7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x7e1280,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x559423,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x7e1280,'ready'),this['fire']('suggestionLoaded',_0x7e1280);break;case'ready':this['fire']('suggestionChanged',_0x7e1280);}return _0x7e1280['addMarkerName'](_0x485e9d),_0x7e1280;}['_refreshSuggestionsChain'](_0x14832a){const _0x341450=Array['from'](_0x14832a),_0x98edf4=_0x341450['filter'](_0x591e69=>'attribute'==_0x591e69['type']);this['_refreshAttributeSuggestionsChain'](_0x98edf4);const _0x60f11=_0x341450['filter'](_0x4490af=>!_0x4490af['isMultiRange']&&'attribute'!=_0x4490af['type']),_0x5f414d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d9912=>!_0x1d9912['isMultiRange']&&'attribute'!=_0x1d9912['type']),_0x17f0c2=_0x5f414d['filter'](_0x4dbe9c=>!_0x14832a['has'](_0x4dbe9c)),_0x47c17f=new Map(_0x5f414d['map'](_0x2de947=>[_0x2de947,this['_suggestionFactory']['getSuggestionCallback'](_0x2de947['type'],_0x2de947['subType'],'chain')])),_0x1b2546=new Map(_0x5f414d['map'](_0x1cf154=>[_0x1cf154,_0x1cf154['getFirstRange']()])),_0x4b9244=new Set(),_0x131cf2=new Set();for(let _0x5c6f9a=0x0;_0x5c6f9a<_0x60f11['length'];_0x5c6f9a++)_0x538061(_0x60f11[_0x5c6f9a],_0x60f11,_0x5c6f9a+0x1);for(let _0x3ddada=0x0;_0x3ddada<_0x60f11['length'];_0x3ddada++)_0x538061(_0x60f11[_0x3ddada],_0x17f0c2,0x0);const _0x267e0b=new Set();for(let _0x2147fd=0x0;_0x2147fd<_0x60f11['length'];_0x2147fd++){const _0x15640a=_0x60f11[_0x2147fd];!_0x131cf2['has'](_0x15640a)&&_0x15640a['previous']&&(_0x267e0b['add'](_0x15640a['previous']),_0x15640a['previous']['next']===_0x15640a&&(_0x15640a['previous']['next']=null),_0x15640a['previous']=null),!_0x4b9244['has'](_0x15640a)&&_0x15640a['next']&&(_0x267e0b['add'](_0x15640a['next']),_0x15640a['next']['previous']===_0x15640a&&(_0x15640a['next']['previous']=null),_0x15640a['next']=null);}function _0x538061(_0x30eaf9,_0x382e4a,_0x5caac7){for(let _0xd915da=_0x5caac7;_0xd915da<_0x382e4a['length'];_0xd915da++){const _0x2ae959=_0x119e9b(_0x30eaf9,_0x382e4a[_0xd915da]);_0x2ae959&&(_0x2ae959[0x0]['next']=_0x2ae959[0x1],_0x2ae959[0x1]['previous']=_0x2ae959[0x0],_0x4b9244['add'](_0x2ae959[0x0]),_0x131cf2['add'](_0x2ae959[0x1]));}}function _0x119e9b(_0x4db041,_0x19c644){if(_0x4db041['author']['id']!==_0x19c644['author']['id'])return null;const _0x2d4418=_0x47c17f['get'](_0x4db041)(_0x4db041,_0x19c644,_0x1b2546['get'](_0x4db041),_0x1b2546['get'](_0x19c644));if(!_0x2d4418)return null;return _0x47c17f['get'](_0x19c644)(_0x4db041,_0x19c644,_0x1b2546['get'](_0x4db041),_0x1b2546['get'](_0x19c644))?_0x2d4418[0x1]['commentThread']&&_0x2d4418[0x1]['commentThread']['length']?null:_0x2d4418:null;}_0x267e0b['size']&&this['_refreshSuggestionsChain'](_0x267e0b);}['_refreshAttributeSuggestionsChain'](_0x4e2469){if(0x0==_0x4e2469['length'])return;const _0x23fb87=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cc527=>'attribute'==_0x2cc527['type']&&_0x2cc527['_isDataLoaded']),_0x4a2733=[],_0x2b6aed=new Map();for(const _0x10e0a0 of _0x23fb87){const _0x8c12ee=_0x49b0ed(_0x10e0a0['attributes']);_0x2b6aed['has'](_0x8c12ee)||(_0x2b6aed['set'](_0x8c12ee,_0x4a2733['length']),_0x4a2733['push']([]));const _0x1c7d4d=_0x2b6aed['get'](_0x8c12ee);_0x4a2733[_0x1c7d4d]['push'](_0x10e0a0);}!(function(){_0x4a2733['sort']((_0xb20ba8,_0x4063c8)=>{const _0x927b9c=_0xb20ba8[0x0]['createdAt'],_0x10dd9c=_0x4063c8[0x0]['createdAt'];return _0x927b9c==_0x10dd9c?_0xb20ba8[0x0]['attributes']['groupId']<_0x4063c8[0x0]['attributes']['groupId']?-0x1:0x1:_0x927b9c<_0x10dd9c?-0x1:0x1;});for(const _0x323619 of _0x4a2733)_0x323619['sort']((_0xa5a56a,_0x443e5b)=>_0xa5a56a['id']<_0x443e5b['id']?-0x1:0x1);}());for(let _0x53180b=0x0;_0x53180b<_0x4a2733['length'];_0x53180b++){if(0x0==_0x4a2733[_0x53180b]['length'])continue;const _0xbe47fb=[];for(let _0x37b68c=_0x53180b+0x1;_0x37b68c<_0x4a2733['length'];_0x37b68c++)0x0!=_0x4a2733[_0x37b68c]['length']&&_0x28a2aa(_0x4a2733[_0x53180b],_0x4a2733[_0x37b68c])&&_0xbe47fb['push'](_0x37b68c);for(const _0x3f367b of _0xbe47fb)_0x4a2733[_0x53180b]=_0x4a2733[_0x53180b]['concat'](_0x4a2733[_0x3f367b]),_0x4a2733[_0x3f367b]=[];}for(const _0x4c5d16 of _0x4a2733)for(let _0x40d81d=0x0;_0x40d81d<_0x4c5d16['length'];_0x40d81d++){const _0x5ca882=_0x4c5d16[_0x40d81d+0x1]||null;_0x4c5d16[_0x40d81d]['next']!==_0x5ca882&&(_0x4c5d16[_0x40d81d]['next']=_0x5ca882);}for(const _0x1b9ae7 of _0x4a2733)for(let _0x297090=0x0;_0x297090<_0x1b9ae7['length'];_0x297090++){const _0x33b28d=_0x1b9ae7[_0x297090-0x1]||null;_0x1b9ae7[_0x297090]['previous']!==_0x33b28d&&(_0x1b9ae7[_0x297090]['previous']=_0x33b28d);}function _0x28a2aa(_0x509032,_0x178f3d){if(_0x509032[0x0]['attributes']['groupId']!==_0x178f3d[0x0]['attributes']['groupId']&&_0x509032[0x0]['author']!==_0x178f3d[0x0]['author'])return!0x1;if(!function(_0x1739f1,_0xfafe1c){if(!_0x1739f1['hasComments']&&!_0xfafe1c['hasComments'])return!0x0;if(_0x1739f1['hasComments']&&_0xfafe1c['hasComments'])return!0x1;if(_0x1739f1['hasComments']&&_0xfafe1c['createdAt']<_0x1739f1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xfafe1c['hasComments']&&_0x1739f1['createdAt']<_0xfafe1c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x509032[0x0],_0x178f3d[0x0]))return!0x1;const _0x276d5c=Ft(_0x509032[0x0]['attributes'],['groupId','trackingSessionId']),_0x34dfd4=Ft(_0x178f3d[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xbbaa66(_0x276d5c,_0x34dfd4))return!0x1;if(_0x509032[0x0]['attributes']['groupId']==_0x178f3d[0x0]['attributes']['groupId'])return!0x0;if(_0x509032[0x0]['attributes']['trackingSessionId']!==_0x178f3d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x509032['every'](_0xc94476=>_0x178f3d['some'](_0x190883=>_0xc94476['getFirstRange']()['isEqual'](_0x190883['getFirstRange']())))&&_0x178f3d['every'](_0x46ca67=>_0x509032['some'](_0x449cf6=>_0x46ca67['getFirstRange']()['isEqual'](_0x449cf6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x585748){const _0x602b5=Array['from'](_0x585748),_0x343955=this['getSuggestions']({'skipNotAttached':!0x0}),_0xff52b1=_0x343955['filter'](_0x459409=>!_0x585748['has'](_0x459409)),_0x122083=new Map(_0x602b5['map'](_0x1dcc78=>[_0x1dcc78,this['_suggestionFactory']['getSuggestionCallback'](_0x1dcc78['type'],_0x1dcc78['subType'],'join')])),_0x2f5a59=new Map(_0x343955['map'](_0x292915=>[_0x292915,_0x292915['getRanges']()]));for(let _0x4edf0f=0x0;_0x4edf0f<_0x602b5['length'];_0x4edf0f++){if(_0x30d54a(this,_0x602b5[_0x4edf0f],_0x602b5,_0x4edf0f+0x1))return!0x0;}for(let _0x2fd0ca=0x0;_0x2fd0ca<_0x602b5['length'];_0x2fd0ca++){if(_0x30d54a(this,_0x602b5[_0x2fd0ca],_0xff52b1,0x0))return!0x0;}return!0x1;function _0x30d54a(_0x492193,_0x5a7f2a,_0x1d1f73,_0xea2843){for(let _0x504de8=_0xea2843;_0x504de8<_0x1d1f73['length'];_0x504de8++){const _0x4939dd=_0x1d1f73[_0x504de8];if(_0x4939dd['type']!==_0x5a7f2a['type']||_0x4939dd['author']['id']!==_0x5a7f2a['author']['id']||_0x4939dd['subType']!==_0x5a7f2a['subType'])continue;if(!Xt(_0x5a7f2a,_0x4939dd))continue;if('attribute'==_0x5a7f2a['type']&&_0x5a7f2a['data']['oldValue']!=_0x4939dd['data']['oldValue'])continue;if('attribute'==_0x5a7f2a['type']&&_0x492193['_isBlockAttribute'](_0x5a7f2a['data']['key']))continue;if('formatBlock'==_0x5a7f2a['type']){const _0x3643f4=_0x492193['editor']['model'],_0x2586c5=_0x5a7f2a['getContainedElement']();if(_0x2586c5&&(_0x3643f4['schema']['isObject'](_0x2586c5)||_0x3643f4['schema']['isLimit'](_0x2586c5)))continue;}const _0x3ad94d=_0x122083['get'](_0x5a7f2a),_0x1fb7f5=_0x2f5a59['get'](_0x5a7f2a),_0x6fb25c=_0x2f5a59['get'](_0x4939dd),_0xb4100d=_0x5a7f2a['commentThread']&&_0x5a7f2a['commentThread']['length'],_0x1096e2=_0x4939dd['commentThread']&&_0x4939dd['commentThread']['length'];if(!_0xb4100d&&_0x3ad94d(_0x6fb25c,_0x1fb7f5))return _0x492193['_joinSuggestions'](_0x4939dd,_0x5a7f2a),_0x2f5a59['delete'](_0x5a7f2a),!0x0;if(!_0x1096e2&&_0x3ad94d(_0x1fb7f5,_0x6fb25c))return _0x492193['_joinSuggestions'](_0x5a7f2a,_0x4939dd),_0x2f5a59['delete'](_0x4939dd),!0x0;}return!0x1;}}['_joinSuggestions'](_0x287ec3,_0x47b0aa){if(_0x287ec3['isMultiRange']){for(const _0x3e29fc of _0x47b0aa['getRanges']())_0x287ec3['addRange'](_0x3e29fc);}else{const _0x53eee1=_0x47b0aa['getFirstRange']()['end'];this['_setSuggestionRange'](_0x287ec3,this['_model']['createRange'](_0x287ec3['getFirstRange']()['start'],_0x53eee1));}_0x47b0aa['removeMarkers']();}['_getMarkerAnnouncementText'](_0x586575,_0x4a1633,_0x6ee0c6){const _0x277177=_0x586575['startsWith']('format')||_0x586575['startsWith']('attribute')?'FORMATTING':_0x586575['toUpperCase']();return c(this['editor']['locale'],_0x4a1633+'_'+_0x277177+'_SUGGESTION_ANNOUNCEMENT',_0x6ee0c6);}['_initAriaMarkerChangeAnnouncements'](){const _0x2c184a=this['editor'];if(!_0x2c184a['ui'])return;const {ariaLiveAnnouncer:_0x35d7f0}=_0x2c184a['ui'];_0x545f3a(this['_model'],({left:_0x2a2324,entered:_0x2411f1})=>{for(const _0x272126 of _0x2a2324){const {group:_0x12b3f1,type:_0x1a6164}=this['_splitMarkerName'](_0x272126['name']);if('suggestion'===_0x12b3f1){_0x35d7f0['announce'](this['_getMarkerAnnouncementText'](_0x1a6164,'LEAVE'));break;}}for(const _0x28c3b3 of _0x2411f1){const {group:_0x4526f2,type:_0xc4b69e}=this['_splitMarkerName'](_0x28c3b3['name']);if('suggestion'===_0x4526f2){_0x35d7f0['announce'](this['_getMarkerAnnouncementText'](_0xc4b69e,'ENTER',_0x34b607(_0x3ff4ca)));break;}}});}['_processAttributeChanges'](_0x36c9ef){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4b65a9=this['editor'],_0x139444=_0x4b65a9['model']['document']['differ']['getChanges']();if(0x0==_0x139444['length'])return!0x1;const _0x442231=[],_0x3b0077=_0x139444['filter'](_0x5702dd=>'attribute'==_0x5702dd['type']),_0x106cc4=_0x139444['filter'](_0xd2792d=>'insert'==_0xd2792d['type']&&'$text'!=_0xd2792d['name']),_0xe89f05=_0x139444['filter'](_0x10e007=>'remove'==_0x10e007['type']&&'$text'!=_0x10e007['name']);for(const _0x3b54a4 of _0x3b0077)_0x442231['push']({'key':_0x3b54a4['attributeKey'],'newValue':_0x3b54a4['attributeNewValue'],'oldValue':_0x3b54a4['attributeOldValue'],'range':zt(_0x3b54a4['range'],_0x4b65a9['model'])});for(const _0x44bbf3 of _0x106cc4){const _0x551bdf=_0xe89f05['find'](_0x5efe44=>_0x5efe44['position']['isEqual'](_0x44bbf3['position']));_0x551bdf&&_0x442231['push']({'key':u,'newValue':_0x44bbf3['name'],'oldValue':_0x551bdf['name'],'range':_0x4b65a9['model']['createRangeOn'](_0x44bbf3['position']['nodeAfter'])});}return 0x0!=_0x442231['length']&&this['_reduceExistingSuggestions'](_0x36c9ef,_0x442231);}['_processAttributeSuggestions'](_0x39c198){let _0x31bd2f=!0x1;const _0x30c995=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd96a46=>_0xd96a46['data']['newRange']&&_0xd96a46['name']['startsWith']('suggestion:attribute:'));for(const _0x43c2a5 of _0x30c995){const {subType:_0x1ec983,id:_0x35bbfe}=this['_splitMarkerName'](_0x43c2a5['name']),_0x2e4a5f=_0x1ec983['split']('|')[0x0];for(const _0x67cd23 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x67cd23['id']!=_0x35bbfe&&'attribute'==_0x67cd23['type']&&_0x67cd23['data']&&_0x67cd23['data']['key']==_0x2e4a5f&&_0x67cd23['getFirstRange']()['isIntersecting'](_0x43c2a5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x67cd23,_0x43c2a5['data']['newRange'],_0x39c198),_0x31bd2f=!0x0);}return _0x31bd2f;}['_recordAttributeChanges'](_0x1d649c){this['_recordAttributeSuggestions']=!0x0,_0x1d649c();}['_isRegisteredAttribute'](_0x2481c9){const _0x5a7dff=this['_isBlockAttribute'](_0x2481c9),_0x3efb37=this['_inlineAttributeKeys']['has'](_0x2481c9);return _0x5a7dff||_0x3efb37;}['_reduceExistingSuggestions'](_0x8a509a,_0x1af28e){if(0x0==_0x1af28e['length'])return!0x1;let _0x3c57b1=!0x1;for(const _0x4b568b of _0x1af28e){const _0x52337e=this['_findSuggestions'](_0x4b568b['range'],'attribute')['filter'](_0x1f8201=>!_0x1f8201['meta']['isNextTo'])['map'](_0x49e591=>_0x49e591['suggestion']),_0x474bdb=_0x49b0ed({'newValue':_0x4b568b['newValue']});_0x52337e['filter'](_0x34bb80=>{const [_0x5a2b2d,_0x5b57fe]=_0x34bb80['subType']['split']('|');return _0x5a2b2d==_0x4b568b['key']&&_0x5b57fe!=_0x474bdb;})['forEach'](_0x432fa8=>{this['_reduceSuggestionAttributeRange'](_0x432fa8,_0x4b568b['range'],_0x8a509a),_0x3c57b1=!0x0;});}return _0x3c57b1;}['_reduceSuggestionAttributeRange'](_0x225296,_0x2babea,_0xb8e09){const _0x113b52=_0x225296['getFirstRange']()['getDifference'](_0x2babea);0x0!==_0x113b52['length']?0x1!==_0x113b52['length']?this['_breakSuggestionMarker'](_0x225296,_0x2babea['start'],_0x2babea['end']):this['_setSuggestionRange'](_0x225296,_0x113b52[0x0]):_0xb8e09['removeMarker'](_0x225296['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x242717){this['_editor']=_0x242717,this['_model']=_0x242717['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x228e70,_0xa9e6ca,_0x271ff0,_0x264c8c,_0x434d88,_0x530b9c,_0x1636a0){return new o(this['_model'],{'type':_0x228e70,'subType':_0xa9e6ca,'id':_0x271ff0,'originalSuggestionId':_0x1636a0,'author':_0x264c8c,'creator':_0x264c8c,'attributes':_0x434d88,'onAttributesChange':_0x530b9c,'onAccept':(..._0x576720)=>this['getSuggestionCallback'](_0x228e70,_0xa9e6ca,'accept')(..._0x576720),'onDiscard':(..._0x13b0f1)=>this['getSuggestionCallback'](_0x228e70,_0xa9e6ca,'discard')(..._0x13b0f1)});}['registerCustomCallback'](_0x2825e8,_0x359144,_0x334ac5,_0x16ecde){const _0x5804cb=_0x2825e8+':'+_0x359144+':'+_0x334ac5;this['_customCallbacks']['set'](_0x5804cb,_0x16ecde);}['getSuggestionCallback'](_0x3fea40,_0x28b367,_0xf10e19){const _0x17646a=_0x3fea40+':'+_0x28b367+':'+_0xf10e19;return this['_customCallbacks']['get'](_0x17646a)||this['_defaultCallbacks']['get'](_0x3fea40+':'+_0xf10e19);}['_registerDefaultCallbacks'](){const _0x5e69c2=()=>!0x1,_0x119cb3=_0xe213be=>{_0xe213be['sort']((_0x20920b,_0x14e4f7)=>_0x20920b['start']['isBefore'](_0x14e4f7['start'])?0x1:-0x1),this['_model']['change'](_0x89108c=>{for(const _0x18f7d1 of _0xe213be){let _0x3c4762;_0x3c4762=_0x18f7d1['end']['isAtEnd']&&_0x18f7d1['end']['parent']==_0x18f7d1['start']['nodeAfter']?_0x89108c['createSelection'](_0x18f7d1['start']['nodeAfter'],'on'):_0x89108c['createSelection'](_0x18f7d1),this['_model']['deleteContent'](_0x3c4762,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1f576c=(_0x268c94,_0x5454f3)=>{_0x5454f3&&this['_model']['change'](_0x46e570=>{const {commandName:_0x4910ff,commandParams:_0x5cf2ae=[]}=_0x5454f3,_0x360c12=_0x268c94['map'](_0x5ddc2d=>(Lt(_0x5ddc2d)&&(_0x5ddc2d=this['_model']['createRange'](_0x5ddc2d['end'])),_0x5ddc2d))['filter'](_0x54c8e8=>'$graveyard'!==_0x54c8e8['root']['rootName']);if(_0x360c12['length']<0x1)return;const _0x2aa58f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2211ff=>_0x1a5d6e['fromRange'](_0x2211ff));_0x46e570['setSelection'](_0x360c12);for(const _0x564c9a of this['_editor']['commands']['commands']())_0x564c9a['refresh']();_0x5cf2ae['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4910ff,..._0x5cf2ae);const _0x14d541=_0x2aa58f['filter'](_0x2224d8=>'$graveyard'!=_0x2224d8['root']['rootName']);_0x14d541['length']>0x0&&_0x46e570['setSelection'](_0x14d541);for(const _0x13952f of _0x2aa58f)_0x13952f['detach']();});},_0x2e1530=(_0x3d84e6,_0x471138)=>0x1==_0x3d84e6['length']&&0x1==_0x471138['length']&&_0x3d84e6[0x0]['end']['isEqual'](_0x471138[0x0]['start']),_0x386cb8=(_0x40e3a6,_0x4739cb,_0x1e75e2,_0x21870c)=>Qt(_0x40e3a6,_0x4739cb,_0x1e75e2,_0x21870c)?[_0x40e3a6,_0x4739cb]:Qt(_0x4739cb,_0x40e3a6,_0x21870c,_0x1e75e2)?[_0x4739cb,_0x40e3a6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e69c2),this['_defaultCallbacks']['set']('insertion:discard',_0x119cb3),this['_defaultCallbacks']['set']('insertion:join',_0x2e1530),this['_defaultCallbacks']['set']('insertion:chain',_0x386cb8),this['_defaultCallbacks']['set']('deletion:accept',_0x119cb3),this['_defaultCallbacks']['set']('deletion:discard',_0x5e69c2),this['_defaultCallbacks']['set']('deletion:join',_0x2e1530),this['_defaultCallbacks']['set']('deletion:chain',_0x386cb8),this['_defaultCallbacks']['set']('formatInline:accept',_0x1f576c),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e69c2),this['_defaultCallbacks']['set']('formatInline:join',_0x2e1530),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e69c2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1f576c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e69c2),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e1530),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e69c2),this['_defaultCallbacks']['set']('attribute:accept',_0x5e69c2),this['_defaultCallbacks']['set']('attribute:discard',(_0x18f753,_0x328664)=>{if(!_0x328664)return;const _0x24b248=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4e5dd3=>{if(_0x328664['key']==u)for(const _0x423ff7 of _0x18f753){const _0xaf4b34=_0x423ff7['start']['nodeAfter'],_0x3c83b6=_0x328664['oldValue'];_0x4e5dd3['rename'](_0xaf4b34,_0x3c83b6);}else{if(_0x24b248['_isBlockAttribute'](_0x328664['key'])){for(const _0x534ef3 of _0x18f753)void 0x0!==_0x328664['oldValue']?_0x4e5dd3['setAttribute'](_0x328664['key'],_0x328664['oldValue'],_0x534ef3['start']['nodeAfter']):_0x4e5dd3['removeAttribute'](_0x328664['key'],_0x534ef3['start']['nodeAfter']);}else{for(const _0x157df2 of _0x18f753)_0x328664['oldValue']?_0x4e5dd3['setAttribute'](_0x328664['key'],_0x328664['oldValue'],_0x157df2):_0x4e5dd3['removeAttribute'](_0x328664['key'],_0x157df2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e1530);}}function Gt(_0xe711e5,_0x1a8995,_0x29eb66){for(const _0x1ea4e7 of _0x1a8995['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1ea4e7['root']==_0x1ea4e7)return!0x1;if(!_0x29eb66['containsItem'](_0x1ea4e7))return!0x1;if(_0xe711e5['isObject'](_0x1ea4e7)||_0xe711e5['isLimit'](_0x1ea4e7))return!0x0;}return!0x1;}function Lt(_0x47f1b9){return _0x47f1b9['end']['parent']==_0x47f1b9['start']['nodeAfter']&&_0x47f1b9['end']['isAtStart'];}function Jt(_0x22a3d4,_0x55f7b6,_0x4e7dde,_0x448023){const _0x275d9b=_0x53d784=>!_0x53d784['item']['is']('$textProxy')&&!_0x448023['isObject'](_0x53d784['item']),_0x1f0460=_0x22a3d4['start']['getLastMatchingPosition'](_0x275d9b),_0x56ea5b=_0x22a3d4['end']['getLastMatchingPosition'](_0x275d9b,{'direction':'backward'});return(!_0x22a3d4['start']['isEqual'](_0x1f0460)||!_0x22a3d4['end']['isEqual'](_0x56ea5b))&&(_0x1f0460['isBefore'](_0x56ea5b)?_0x4e7dde['updateMarker'](_0x55f7b6,{'range':_0x4e7dde['createRange'](_0x1f0460,_0x56ea5b)}):_0x4e7dde['removeMarker'](_0x55f7b6),!0x0);}function Kt(_0x45c6e2){return _0x49b0ed(_0x45c6e2);}function Ht(_0x14d01f){const _0x3cad1e=_0x14d01f['start']['nodeAfter'];return _0x3cad1e&&_0x3cad1e['is']('element');}function qt(_0x12b386){return!Lt(_0x12b386)&&!function(_0x1f7bf1){return _0x1f7bf1['start']['parent']==_0x1f7bf1['end']['nodeBefore']&&_0x1f7bf1['start']['isAtEnd'];}(_0x12b386);}function zt(_0x1aa04a,_0x44aad7){return null==_0x1aa04a['end']['nodeBefore']&&_0x1aa04a['end']['parent']==_0x1aa04a['start']['nodeAfter']?Wt(_0x1aa04a['start']['nodeAfter'],_0x44aad7):_0x1aa04a;}function Wt(_0x2bfd9d,_0x4f666c){const _0xe3e0e2=_0x4f666c['schema']['isObject'](_0x2bfd9d)||_0x4f666c['schema']['isSelectable'](_0x2bfd9d);return _0x4f666c['createRange'](_0x4f666c['createPositionAt'](_0x2bfd9d,'before'),_0xe3e0e2?_0x4f666c['createPositionAfter'](_0x2bfd9d):_0x4f666c['createPositionAt'](_0x2bfd9d,'end'));}function Qt(_0x125634,_0x41b5d3,_0xc4feef,_0x42a972){return!!Xt(_0x125634,_0x41b5d3)&&_0xc4feef['end']['isEqual'](_0x42a972['start']);}function Xt(_0x176b7e,_0x350b8b){if(!_0x176b7e['_isDataLoaded']||!_0x350b8b['_isDataLoaded'])return!0x1;const _0x3df446=new Set(Object['keys'](_0x176b7e['attributes'])),_0x59d87c=new Set(Object['keys'](_0x350b8b['attributes']));if(_0x3df446['delete']('groupId'),_0x59d87c['delete']('groupId'),0x0==_0x3df446['size']&&0x0==_0x59d87c['size'])return!0x0;if(_0x3df446['size']!=_0x59d87c['size'])return!0x1;const _0x50f8ca={..._0x176b7e['attributes']},_0x135fc3={..._0x350b8b['attributes']};return delete _0x50f8ca['groupId'],delete _0x135fc3['groupId'],JSON['stringify'](_0x50f8ca)==JSON['stringify'](_0x135fc3);}function Yt(_0x2c52ab,_0x4d6453){const _0x504481=Zt(_0x2c52ab['attributes']),_0xb9b0da=Zt(_0x4d6453);if(!_0x2c52ab['_isDataLoaded'])return!0x1;for(const _0x4c2447 of Object['keys'](_0xb9b0da))if(!_0xbbaa66(_0x504481[_0x4c2447],_0xb9b0da[_0x4c2447]))return!0x1;return!0x0;}function Zt(_0xe8baf4){const _0xe9839f=Object['assign']({},_0xe8baf4);return delete _0xe9839f['skipNestingCheck'],delete _0xe9839f['tablePasteChainId'],_0xe9839f;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x314fbc(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2cf04a,_0x3a7750,_0x5a373b,_0x20a3a1){super(),this['model']=_0x3a7750,this['view']=_0x5a373b,this['commentThreadController']=_0x20a3a1,this['_editor']=_0x2cf04a,this['_acceptCommand']=_0x2cf04a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2cf04a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4b9e21,_0x4470ff)=>_0x4b9e21||_0x4470ff),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1a270e=>_0x1a270e&&this['_editor']['model']['canEditAt'](_0x3a7750['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xaab88=>_0xaab88&&this['_editor']['model']['canEditAt'](_0x3a7750['getRanges']())),this['_pendingAction']=null,_0x5a373b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5a373b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5a373b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5a373b,'change:isDirty',()=>{_0x5a373b['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 _0x64ef6=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x64ef6);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5687e5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x12051e,_0x10ab65,_0x2da2a3,_0x11c834){super(_0x12051e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5cbd9d(_0x12051e,c(_0x12051e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x10ab65['authoredAt']),this['bind']('authoredAt')['to'](_0x10ab65),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',_0x10ab65,'authoredAt',this,'descriptionParts',(_0x12587a,_0x5871d7,_0x21f020)=>{const _0xf84012=_0x21f020['map'](_0x1c6fbb=>ls(_0x1c6fbb['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x12587a-0x1,_0x10ab65['author']['name'],_0x5871d7?_0x11c834['formatDateTime'](_0x5871d7):'',new DOMParser()['parseFromString'](_0xf84012,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3d9848(),this['focusTracker']=new _0x564b3d(),this['keystrokes']=new _0x31e822(),this['focusCycler']=new _0x42ca04({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5d4bdf=>_0x5d4bdf['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x10ab65,this['_localUser']=_0x2da2a3,this['_config']=_0x11c834,_0x11c834['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x868696(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3cbfd8}=this['_config'];this['commentsListView']=new _0x3cbfd8(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',_0x403cb2=>_0x403cb2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5bb413,_0x44f0c7)=>_0x5bb413||!!_0x44f0c7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x205982}=this['_config'],_0x44a7e4=new _0x205982(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x408bba=_0x44a7e4['commentInputView'];return _0x44a7e4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x408bba,'value',(_0x2fb004,_0x10be27,_0x5a14d5)=>!!_0x5a14d5||_0x2fb004&&!_0x10be27),_0x408bba['on']('submit',(_0x231e65,_0x5606e2)=>{this['fire']('addComment',_0x5606e2),_0x408bba['editor']['setData']('');}),_0x408bba['on']('cancel',()=>this['focus']()),_0x408bba['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x44a7e4;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x3138dc,_0x274b8a,_0x1e9cdf,_0x59b37e){super(_0x3138dc,_0x274b8a,_0x1e9cdf,_0x59b37e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2babef=>_0x2babef&&_0x2babef[0x0]?_0x2babef[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x55b445,_0x482b93)=>{let _0xd58890='';for(const _0x5c43e1 of _0x55b445)_0xd58890+='<p>'+ls(_0x5c43e1['content'],_0x5c43e1['color'])+'</p>';return _0x482b93?_0xd58890:_0x4850f5(_0xd58890,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x59b37e['SuggestionView'](_0x3138dc,_0x274b8a,{'formatDateTime':_0x59b37e['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 _0x5dbd8e=this['bindTemplate'],_0x521e96=[this['suggestionView']];return this['commentsListView']&&_0x521e96['push'](this['commentsListView']),this['commentThreadInputView']&&_0x521e96['push'](this['commentThreadInputView']),_0x521e96['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5dbd8e['if']('isActive','ck-suggestion-wrapper--active'),_0x5dbd8e['to']('type',_0x26100b=>'ck-suggestion-'+_0x26100b),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':_0x5dbd8e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x521e96};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x5687e5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x369b57,_0x56371c,_0x3fc510){super(_0x369b57),this['_model']=_0x56371c,this['_config']=_0x3fc510,this['set']('description',''),this['bind']('authoredAt')['to'](_0x56371c),this['acceptButton']=this['_createButton'](c(_0x369b57,'Accept\x20suggestion'),_0x39baa5,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x369b57,'Discard\x20suggestion'),_0x1b5757,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xccd57(_0x369b57,_0x56371c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3d9848([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x564b3d(),this['keystrokes']=new _0x31e822(),this['focusCycler']=new _0x42ca04({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2b9fa9=>_0x2b9fa9['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x33870b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x33870b['innerHTML']=this['description'],this['on']('change:description',(_0x1d6be3,_0x2b2413,_0x1902ad)=>{_0x33870b['innerHTML']=_0x1902ad;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2c002f=this['bindTemplate'],_0x5b25b4=[{'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':_0x2c002f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2c002f['to']('authoredAt',_0x3f8abb=>this['_config']['formatDateTime'](_0x3f8abb))}]}]},{'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']&&_0x5b25b4['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':_0x5b25b4}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x319c6a,_0x52b42b,_0x3119ca,_0x151cf8,_0x634d5f){const _0x2699a8=new _0x180bf7(this['locale']);return _0x2699a8['set']({'label':_0x319c6a,'icon':_0x52b42b,'tooltip':!0x0,'tooltipPosition':_0x634d5f}),_0x2699a8['extendTemplate']({'attributes':{'class':_0x3119ca}}),_0x2699a8['on']('execute',()=>{this['fire'](_0x151cf8,this['_model']['id']);}),_0x2699a8;}['_setupKeyboardNavigation'](){const _0xa9f057=this['element'];this['keystrokes']['listenTo'](_0xa9f057);for(const _0x20faed of this['focusables'])this['focusTracker']['add'](_0x20faed['element']),this['keystrokes']['listenTo'](_0x20faed['element']);this['keystrokes']['set']('enter',(_0xc87383,_0x1c25b0)=>{_0xa9f057===_0xc87383['target']&&(this['focusCycler']['focusFirst'](),_0x1c25b0());}),this['keystrokes']['set']('esc',(_0x27e273,_0x1937dc)=>{_0xa9f057!==_0x27e273['target']&&(this['focus'](),_0x1937dc());});}}class d extends _0x465839{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x50a8cf,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x320c38){super(_0x320c38),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4138af=this['editor']['config'];_0x4138af['define']('trackChanges.SuggestionThreadView',fe),_0x4138af['define']('trackChanges.SuggestionView',we),_0x4138af['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4138af['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x52139e,_0x32f77d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x19dd5b,_0x3467f8]of this['_handleControllerBuffer']){const _0x30ce1a=this['_suggestionToController']['has'](_0x19dd5b);_0x30ce1a||_0x3467f8?_0x30ce1a&&_0x3467f8&&this['_destroyController'](_0x19dd5b):this['_initializeController'](_0x19dd5b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x52139e,_0x32f77d);}['init'](){const _0x44b624=this['editor'],_0x11e8a9=_0x44b624['plugins']['get']('TrackChangesEditing'),_0x536895=_0x44b624['plugins']['get']('Annotations'),_0x29d5f9=_0x44b624['plugins']['get']('EditorAnnotations'),_0x2ceff5=_0x44b624['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x29d5f9['addSourceCollector'](()=>{const _0x9162b0=[];for(const [_0x385281,_0x4b5992]of Array['from'](this['_suggestionToController'])){const _0x272dc7=_0x385281['getAllAdjacentSuggestions'](),_0x51a7b0=[];for(const _0x2bac18 of _0x272dc7){if(!_0x2bac18['isInContent'])continue;if(_0x2bac18['isMultiRange']){_0x51a7b0['push'](..._0x2bac18['getRanges']());continue;}const _0x24a51f=_0x2bac18['getFirstRange']();if(_0x51a7b0['length']>0x0){const _0x5499eb=_0x51a7b0[0x0]['getJoined'](_0x24a51f);if(_0x5499eb){_0x51a7b0[0x0]=_0x5499eb;continue;}}_0x51a7b0['push'](_0x24a51f);}_0x9162b0['push']([_0x4b5992['view'],_0x51a7b0]);}return _0x9162b0;}),this['listenTo'](_0x11e8a9,'suggestionLoaded',(_0x25300e,_0x17bfcb)=>{this['listenTo'](_0x17bfcb,'change:previous',(_0x270f30,_0x34ce99,_0x4440d4,_0x14fb5e)=>{_0x17bfcb['isInContent']&&(null==_0x4440d4?(this['_updateController'](_0x14fb5e['head']),this['_handleSuggestionControllerDelayed'](_0x17bfcb,!0x1)):(this['_updateController'](_0x4440d4['head']),null==_0x14fb5e&&this['_handleSuggestionControllerDelayed'](_0x17bfcb,!0x0)));}),null!==_0x17bfcb['previous']?this['_updateController'](_0x17bfcb['head']):this['_handleSuggestionControllerDelayed'](_0x17bfcb,!0x1);}),this['listenTo'](_0x11e8a9,'suggestionUnloaded',(_0x2f913c,_0x5c251f,_0x2062d8)=>{this['stopListening'](_0x5c251f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5c251f),this['_suggestionToController']['has'](_0x5c251f)&&this['_destroyController'](_0x5c251f),_0x2062d8&&this['_updateController'](_0x2062d8['head']);}),this['listenTo'](_0x11e8a9,'suggestionChanged',(_0x5ba5a4,_0x5e19e0)=>{this['_updateController'](_0x5e19e0);}),this['listenTo'](_0x536895,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2ceff5,'addComment',(_0x3b2832,{threadId:_0x1a020d,isFromAdapter:_0x1d2d2e})=>{if(_0x1d2d2e||!_0x11e8a9['hasSuggestion'](_0x1a020d))return;const _0x42f583=_0x11e8a9['getSuggestion'](_0x1a020d);this['_suggestionToController']['get'](_0x42f583)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25035f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x51c4b6;for(const _0x29585b in _0x25035f){const _0x40aa94=_0x29585b,_0xcb8232=_0x25035f[_0x40aa94];if('trackChangesLicenseKeyValid'==_0xcb8232||'trackChangesLicenseKeyInvalid'==_0xcb8232||'trackChangesLicenseKeyExpired'==_0xcb8232||'trackChangesLicenseKeyDomainLimit'==_0xcb8232||'trackChangesLicenseKeyNotAllowed'==_0xcb8232||'trackChangesLicenseKeyEvaluationLimit'==_0xcb8232||'trackChangesLicenseKeyTrialLimit'==_0xcb8232||'trackChangesLicenseKeyUsageLimit'==_0xcb8232){delete _0x25035f[_0x40aa94],_0x51c4b6=_0xcb8232,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x51c4b6&&_0x25035f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x51c4b6&&_0x25035f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x51c4b6&&_0x25035f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x51c4b6&&_0x25035f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x51c4b6&&_0x25035f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x51c4b6&&_0x25035f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x51c4b6&&_0x25035f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x56b531=this['editor']['plugins']['get']('Annotations'),_0x512366=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49671b=Array['from'](_0x56b531['activeAnnotations'],_0x400984=>_0x400984['innerView'])['filter'](_0x43dd41=>this['_viewToController']['has'](_0x43dd41)),_0x53b075=[];for(const _0x1cf546 of _0x49671b){const _0x1b5501=this['_viewToController']['get'](_0x1cf546)['model']['getAllAdjacentSuggestions']();_0x53b075['push'](..._0x1b5501['reduce']((_0x2ae59a,_0x671d4d)=>[..._0x2ae59a,..._0x671d4d['getMarkerNames']()],[]));}_0x512366['activeMarkers']=_0x53b075;}['_addUIComponentsToFactory'](){const _0x286b11=this['editor'],_0x5fde72=_0x286b11['locale'],_0x363e40=c(_0x5fde72,'Track\x20changes'),_0x2c9472=new _0x45a1d9([{'type':'switchbutton','model':new _0x417432({'withText':!0x0,'isToggleable':!0x0,'label':_0x363e40,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x417432({'withText':!0x0,'label':c(_0x5fde72,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x417432({'withText':!0x0,'label':c(_0x5fde72,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x417432({'withText':!0x0,'label':c(_0x5fde72,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x417432({'withText':!0x0,'label':c(_0x5fde72,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x286b11['plugins']['has']('TrackChangesPreview')&&_0x2c9472['addMany']([{'type':'separator'},{'type':'button','model':new _0x417432({'withText':!0x0,'label':c(_0x5fde72,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x16d469 of _0x2c9472)if(ke(_0x16d469)){const _0x31d14a=_0x286b11['commands']['get'](_0x16d469['model']['commandName']);_0x16d469['model']['bind']('isOn','isEnabled')['to'](_0x31d14a,'value','isEnabled');}_0x286b11['ui']['componentFactory']['add']('trackChanges',_0x334999=>this['_createToolbarButton'](_0x334999,_0x2c9472,_0x363e40)),_0x286b11['ui']['componentFactory']['add']('menuBar:trackChanges',_0x381bc4=>this['_createMenuBarMenu'](_0x381bc4,_0x2c9472,_0x363e40));}['_createToolbarButton'](_0x9e945c,_0x85bdb9,_0x4d43d5){const _0x350b32=_0x3864aa(_0x9e945c,_0x42daf1),_0x203072=this['editor']['commands']['get']('trackChanges');_0x350b32['buttonView']['set']({'tooltip':_0x4d43d5,'label':_0x4d43d5,'icon':_0x98e570}),_0x350b32['buttonView']['bind']('isOn')['to'](_0x203072,'value'),_0x350b32['buttonView']['on']('execute',()=>{_0x203072['execute'](),this['editor']['editing']['view']['focus']();}),_0x4a292e(_0x350b32,_0x85bdb9,{'role':'menu'});const _0x3052d8=[];for(const _0x2f5da6 of _0x85bdb9)ke(_0x2f5da6)&&_0x3052d8['push'](this['editor']['commands']['get'](_0x2f5da6['model']['commandName']));const _0x2609e7=_0x350b32['buttonView'];return _0x2609e7['actionView']['unbind']('isEnabled'),_0x2609e7['arrowView']['unbind']('isEnabled'),_0x2609e7['actionView']['bind']('isEnabled')['to'](_0x203072,'isEnabled'),_0x2609e7['arrowView']['bind']('isEnabled')['toMany'](_0x3052d8,'isEnabled',(..._0x3486c6)=>_0x3486c6['some'](_0x4af15a=>_0x4af15a)),_0x350b32['on']('execute',_0x471b4c=>{this['editor']['execute'](_0x471b4c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x350b32;}['_createMenuBarMenu'](_0x1815e0,_0x16fcec,_0x139aa5){const _0x62ef29=new _0x4fe0fe(_0x1815e0),_0x128c5c=this['editor']['commands']['get']('trackChanges');_0x62ef29['buttonView']['set']({'label':_0x139aa5,'icon':_0x98e570});const _0x10829a=new _0x2a4117(_0x1815e0);for(const _0x14c3cd of _0x16fcec){if('separator'==_0x14c3cd['type']){_0x10829a['items']['add'](new _0x5cecbf(_0x1815e0));continue;}const _0x1f6382=new _0xb4328e(_0x1815e0,_0x62ef29),_0x83c951=new _0x2d5af2(_0x1815e0),_0x1e21af=_0x14c3cd['model'];_0x83c951['bind'](...Object['keys'](_0x1e21af))['to'](_0x1e21af),_0x83c951['delegate']('execute')['to'](_0x62ef29),_0x83c951['on']('execute',()=>{this['editor']['execute'](_0x1e21af['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f6382['children']['add'](_0x83c951),_0x10829a['items']['add'](_0x1f6382);}return _0x62ef29['bind']('isEnabled')['to'](_0x128c5c,'isEnabled'),_0x62ef29['panelView']['children']['add'](_0x10829a),_0x62ef29;}['_initializeController'](_0x4b3c8b){const _0x454ea1=this['editor'],_0x3de601=_0x454ea1['config'],_0x9a21df=_0x454ea1['plugins']['get']('Annotations'),_0x42fe3a=_0x454ea1['plugins']['get']('CommentsRepository'),_0x1d3bcf=_0x454ea1['plugins']['get']('EditorAnnotations'),_0x1ecd58=_0x454ea1['plugins']['get'](_0x50a8cf)['me'],_0x465340=_0x3de601['get']('trackChanges')['SuggestionThreadView'],_0x3939f9=_0x3de601['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x39c0f3,CommentThreadInputView:_0x24b3bb}=_0x454ea1['plugins']['get']('CommentsUI');let _0x5e6fca,_0x2100d2,_0x174720;this['_annotationViews']['has'](_0x4b3c8b['id'])?(_0x2100d2=this['_annotationViews']['get'](_0x4b3c8b['id']),_0x5e6fca=_0x2100d2['mainView']):(_0x5e6fca=new _0x465340(_0x454ea1['locale'],_0x4b3c8b,_0x1ecd58,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3de601['get']('comments.editorConfig'),'licenseKey':_0x3de601['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3de601['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3de601['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3de601['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1c1134(_0x3de601['get']('locale'),_0x454ea1['locale']),'CommentView':_0x3de601['get']('comments')['CommentView'],'CommentsListView':_0x39c0f3,'CommentThreadInputView':_0x24b3bb,'SuggestionView':_0x3939f9}),_0x5e6fca['suggestionView']['acceptButton']['on']('execute',()=>{_0x454ea1['editing']['view']['focus']();}),_0x5e6fca['suggestionView']['discardButton']['on']('execute',()=>{_0x454ea1['editing']['view']['focus']();}),_0x2100d2=_0x9a21df['createAnnotationView'](this['editor']['locale'],_0x5e6fca),_0x2100d2['bind']('isDirty')['to'](_0x5e6fca,'isDirty'),_0x2100d2['bind']('length')['to'](_0x5e6fca),_0x2100d2['bind']('type')['to'](_0x5e6fca,'type',_0xed014c=>'suggestion-'+_0xed014c),_0x5e6fca['on']('escape',()=>{_0x174720['fire']('escape');}),this['_annotationViews']['set'](_0x4b3c8b['id'],_0x2100d2));const _0x5f1735=_0x42fe3a['createCommentThreadController'](_0x4b3c8b['commentThread'],_0x5e6fca),_0x331583=new pe(_0x454ea1,_0x4b3c8b,_0x5e6fca,_0x5f1735),_0x1069fc=_0x4b3c8b['getAllAdjacentSuggestions']()['filter'](_0x2b2066=>_0x2b2066['isInContent']);_0x5e6fca['descriptionParts']=_0x454ea1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1069fc),this['_suggestionToController']['set'](_0x4b3c8b,_0x331583),this['_viewToController']['set'](_0x5e6fca,_0x331583),_0x174720=_0x9a21df['createAnnotation']({'view':_0x2100d2,'target':()=>{const _0x37594b=[],_0x8b65b3=_0x4b3c8b['getAllAdjacentSuggestions']()['filter'](_0x33c6d=>_0x33c6d['isInContent']);for(const _0x2bd493 of _0x8b65b3)_0x37594b['push'](..._0x2bd493['getMarkers']());return _0x36f853(_0x454ea1['editing'],_0x37594b);},'type':()=>'suggestion-'+_0x331583['view']['type']}),_0x42fe3a['_bindAnnotationToEditors'](_0x5e6fca,_0x174720),_0x9a21df['add'](_0x174720),_0x1d3bcf['registerAnnotation'](_0x174720);}['_destroyController'](_0x383c41){const _0x25a8ca=this['editor']['plugins']['get']('CommentsRepository'),_0x39d701=this['editor']['plugins']['get']('Annotations'),_0x2ae9f5=this['_suggestionToController']['get'](_0x383c41),_0x489566=_0x2ae9f5['view'],_0x35bf3a=_0x39d701['getByInnerView'](_0x489566);_0x25a8ca['_unbindEditors'](_0x489566),_0x35bf3a&&_0x39d701['remove'](_0x35bf3a),this['_suggestionToController']['delete'](_0x383c41),this['_viewToController']['delete'](_0x489566),_0x2ae9f5['destroy']();}['_updateController'](_0x11d060){if(!_0x11d060['isInContent']||!this['_suggestionToController']['has'](_0x11d060))return;const _0xdd8937=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6773d=this['_suggestionToController']['get'](_0x11d060),_0x423d12=_0x11d060['getAllAdjacentSuggestions']();_0xa6773d['view']['descriptionParts']=_0xdd8937['descriptionFactory']['getDescriptions'](_0x423d12);}['destroy'](){for(const _0x30765d of this['_suggestionToController']['keys']())this['_destroyController'](_0x30765d);for(const _0x1c95d7 of this['_annotationViews']['values']())_0x1c95d7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4082cd){return'model'in _0x4082cd;}class k extends _0x465839{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4b099){this['editor']['plugins']['get'](p)['adapter']=_0x4b099;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x13bd5e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x13bd5e);}['getSuggestions']({skipNotAttached:_0x10354e=!0x1,toJSON:_0x3fd2f6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x10354e,'toJSON':_0x3fd2f6});}['getSuggestion'](_0x58594f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x58594f);}}const w=['Pagination'];class T extends _0x465839{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1c94b5=this['editor'];if(_0x1c94b5['config']['define']('trackChangesData.editorCreator',_0x384b7c=>{const _0x51edf5=_0x1c94b5['model']['document']['getRootNames']()['reduce']((_0x485a82,_0x333dde)=>(_0x485a82[_0x333dde]='',_0x485a82),{});return _0x1c94b5['constructor']['create'](_0x51edf5,_0x384b7c);}),'function'!=typeof _0x1c94b5['config']['get']('trackChangesData')['editorCreator'])throw new _0x3f002a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4d5919){return N(this['editor'],!0x0,_0x4d5919);}['getDataWithDiscardedSuggestions'](_0x539f60){return N(this['editor'],!0x1,_0x539f60);}}class D extends _0x465839{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24d108){function _0x5a433d(_0xab4089){return _0xab4089['map'](_0x2af50c=>String['fromCharCode'](_0x2af50c))['join']('');}super(_0x24d108),this['result']='end',_0x24d108[_0x5a433d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a433d([0x76,0x69,0x65,0x77])][_0x5a433d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a433d([0x61,0x75,0x74,0x6f]),_0x24d108[_0x5a433d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5a433d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a433d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5a433d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5a433d([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 Ge(_0x448ead){return void 0x0!==_0x448ead['getRootsAttributes'];}async function N(_0x1b2c68,_0x5d1e88,_0x4dc58e){const _0x452998=_0x4ad614(_0x1b2c68,w);_0x452998['plugins']['push'](p,D),_0x452998['rootsAttributes']=Ge(_0x1b2c68)?_0x1b2c68['getRootsAttributes']():void 0x0;const _0x5a4192=document['createDocumentFragment'](),_0x135de0=_0x1b2c68['config']['get']('trackChangesData')['editorCreator'],_0x2e61f7=await _0x135de0(_0x452998,()=>function(_0x14e872){const _0x5e15f0=document['createElement']('div');return _0x14e872['appendChild'](_0x5e15f0),_0x5e15f0;}(_0x5a4192));!function(_0x51996b,_0x5ea044){const _0x13fda5=_0x51996b['model']['document']['getRootNames']()['reduce']((_0x5a1629,_0x2e9fc1)=>(_0x5a1629[_0x2e9fc1]=_0x51996b['data']['get']({'rootName':_0x2e9fc1}),_0x5a1629),{}),_0x2b189c=_0x51996b['plugins']['get']('Users')['users']['map'](_0xd7185d=>({'id':_0xd7185d['id'],'name':_0xd7185d['name']})),_0x14e5d7=_0x51996b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x50d99a=_0x51996b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fcb6d=_0x5ea044['plugins']['get']('Users'),_0xd3fa44=_0x5ea044['plugins']['get']('TrackChangesEditing'),_0x24b635=_0x5ea044['plugins']['get']('CommentsRepository');for(const _0x4ab469 of _0x24b635['getCommentThreads']())_0x4ab469['remove']();for(const _0x3aef6d of _0x2b189c)_0x3fcb6d['getUser'](_0x3aef6d['id'])||_0x3fcb6d['addUser'](_0x3aef6d);_0x3fcb6d['me']||_0x3fcb6d['useAnonymousUser']();for(const _0x718efe of _0x50d99a)_0x24b635['addCommentThread'](_0x718efe);for(const _0x52a62e of _0x14e5d7)_0xd3fa44['addSuggestionData'](_0x52a62e);_0x5ea044['data']['set'](_0x13fda5);}(_0x1b2c68,_0x2e61f7),_0x2e61f7['execute'](_0x5d1e88?'acceptAllSuggestions':'discardAllSuggestions');const _0x35d746=Ge(_0x2e61f7)?_0x2e61f7['getFullData'](_0x4dc58e):_0x2e61f7['data']['get'](_0x4dc58e);return await _0x2e61f7['destroy'](),_0x35d746;}class Me extends _0x5687e5{['options'];constructor(_0xbac554,_0x14a071){super(_0xbac554),this['options']=_0x14a071,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'](_0x3a5d41,_0x3c0f2f){if(!this['element'])return;const _0x46cc8d=[];for(const [_0x3dda69,_0x225e37]of _0x3a5d41){const _0x4c9785=document['createElement']('div');_0x4c9785['setAttribute']('data-ck-root-name',_0x3dda69),_0x4c9785['className']=_0x225e37['classes']+'\x20ck-track-changes-preview__root-container',_0x4c9785['innerHTML']=_0x225e37['content'],_0x46cc8d['push'](_0x4c9785);}_0x3c0f2f(this['element'],_0x46cc8d),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x455c8c{constructor(_0x32b66f){super(_0x32b66f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x874d02=this['editor'],_0x3ddf5e=_0x874d02['locale'],_0x47974c=_0x874d02['plugins']['get']('Dialog');let _0x404c94;const _0x4da9fd=function(_0x130f74){const _0x320cb3={};if('editables'in _0x130f74['ui']['view']){for(const [_0x1027bc,_0x3c58bb]of Object['entries'](_0x130f74['ui']['view']['editables']))_0x320cb3[_0x1027bc]=_0x3c58bb['element'];}else _0x320cb3[_0x130f74['model']['document']['getRootNames']()[0x0]]=_0x130f74['ui']['view']['editable']['element'];return _0x320cb3;}(_0x874d02),_0x4f4139=function(_0x221ed8){let _0x4d605a=0x0;for(const _0x380bd1 of Object['values'](_0x221ed8))_0x4d605a=Math['max'](_0x4d605a,_0x380bd1['getBoundingClientRect']()['width']);let _0x290ed6=0x0;for(const _0x4dd8e9 of Object['values'](_0x221ed8))_0x290ed6+=_0x4dd8e9['getBoundingClientRect']()['height'];const _0x166443=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x471e34=Math['min'](_0x290ed6,_0x166443);return{'width':_0x4d605a,'height':_0x471e34};}(_0x4da9fd);_0x47974c['show']({'id':'finalContentPreview','title':c(_0x3ddf5e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3ddf5e,{'dialogRects':_0x4f4139}),'onHide':()=>{_0x404c94['detachFromDom']();},'onShow':()=>{_0x874d02['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x445307=>{const _0x7d7fd9=this['_standarizeRootsData'](_0x445307,_0x874d02,_0x4da9fd);_0x47974c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x7d7fd9,_0x874d02['config']['get']('trackChanges.preview.renderFunction'));}),_0x404c94=new _0x1bee4e(_0x3ddf5e,[_0x47974c['view']]),_0x404c94['attachToDom'](),_0x404c94['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x874d02['once']('destroy',()=>{_0x404c94['detachFromDom']();});const _0x3b13eb=_0x47974c['view']['headerView']['class'];_0x47974c['view']['headerView']['class']=_0x3b13eb?_0x3b13eb+'\x20ck-reset_all':'ck-reset_all',_0x47974c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x47974c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x27830a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x201dea=_0x27830a['previewMode'],_0x4ac7de={};if('$labels'===_0x201dea){for(const _0x218185 of _0x27830a['getMergeFieldsIds']())_0x4ac7de[_0x218185]=_0x27830a['getLabel'](_0x218185)||_0x218185;}else{const _0xc31e76='$defaultValues'===_0x201dea?_0x27830a['getDefaultValues']():_0x27830a['getDataSetValues'](_0x201dea,!0x0);for(const _0x2bd308 of Object['entries'](_0xc31e76)){const [_0x4b59ef,_0x1517d3]=_0x2bd308;_0x4ac7de[_0x4b59ef]=null!==_0x1517d3?_0x1517d3:_0x27830a['getLabel'](_0x4b59ef)||_0x4b59ef;}}return{'mergeFieldsData':_0x4ac7de};}['_standarizeRootsData'](_0x437e0e,_0x57f56d,_0x42d4e0){let _0x4db37e;if('string'==typeof _0x437e0e){const _0x1be992=_0x57f56d['model']['document']['getRootNames']()[0x0];_0x4db37e={[_0x1be992]:_0x437e0e};}else _0x4db37e=_0x437e0e;const _0x50d73f=this['_fixMediaEmbeds'](_0x4db37e,_0x57f56d),_0x5954bd=function(_0x388c6f,_0x49fcaa){for(const [_0x539492,_0x309e7d]of _0x388c6f)_0x309e7d['classes']=_0x49fcaa[_0x539492]['classList']['value']['replace']('ck-focused','');return _0x388c6f;}(this['_sortRoots'](_0x57f56d)['reduce']((_0x1ac897,_0x522d79)=>(_0x1ac897['push']([_0x522d79,{'content':_0x50d73f[_0x522d79],'classes':''}]),_0x1ac897),[]),_0x42d4e0);return _0x5954bd;}['_fixMediaEmbeds'](_0xa7b376,_0x395913){if(!_0x395913['plugins']['has']('MediaEmbedEditing'))return _0xa7b376;const _0x456298=_0x395913['plugins']['get']('MediaEmbedEditing');for(const [_0x9b8002,_0x48fe28]of Object['entries'](_0xa7b376)){const _0x435cdc=document['createElement']('div');_0x435cdc['innerHTML']=_0x48fe28,(_0x435cdc['querySelectorAll']('figure.media')['forEach'](_0x540752=>{const _0x173c5a=_0x540752['querySelector']('oembed');if(_0x173c5a){const _0x1887e8=_0x173c5a['getAttribute']('url');if(_0x1887e8){const _0x3f177a=_0x456298['registry']['getMediaViewElement'](new _0x3407f8(_0x395913['editing']['view']['document']),_0x1887e8,{'elementName':'','renderForEditingView':!0x0}),_0x29893b=document['createElement']('div');_0x29893b['classList']['add']('ck-media__wrapper'),_0x3f177a['render'](_0x29893b,_0x395913['editing']['view']['domConverter']),_0x173c5a['replaceWith'](_0x29893b);}}}),_0xa7b376[_0x9b8002]=_0x435cdc['innerHTML']);}return _0xa7b376;}['_sortRoots'](_0x2a9e14){if(!function(_0x38b54a){return void 0x0!==_0x38b54a['getRootsAttributes'];}(_0x2a9e14))return _0x2a9e14['model']['document']['getRootNames']();const _0x4cad44=[],_0x3e6365=new Map();for(const _0x155d58 of _0x2a9e14['model']['document']['getRootNames']()){const _0x395826=_0x2a9e14['editing']['view']['getDomRoot'](_0x155d58)['getClientRects']()['item'](0x0);_0x4cad44['push'](_0x155d58),_0x3e6365['set'](_0x155d58,_0x395826);}return _0x4cad44['sort']((_0x479ba3,_0xe6ab55)=>{const _0x21d0d9=_0x3e6365['get'](_0x479ba3),_0x14e649=_0x3e6365['get'](_0xe6ab55);return _0x21d0d9['y']-_0x14e649['y']||_0x21d0d9['x']-_0x14e649['x'];}),_0x4cad44;}}class te extends _0x465839{static get['requires'](){return[T,_0x5a4850];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x23371c){super(_0x23371c),_0x23371c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x23371c['config']['define']('trackChanges.preview.renderFunction',(_0x4e5f68,_0xa7021b)=>{for(const _0x1f3230 of _0xa7021b)_0x4e5f68['appendChild'](_0x1f3230);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0xaae2ec,Plugin as _0x121524,PendingActions as _0x38bf77}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x33c4a9,ObservableMixin as _0x4ec318,uid as _0x25ef3d,priorities as _0x84b019,insertToPriorityArray as _0x1876b4,toArray as _0x27a1f0,logWarning as _0x24dc67,getEnvKeystrokeText as _0x231ec4,FocusTracker as _0x23919d,KeystrokeHandler as _0x5e8f5e,Collection as _0x3e74dd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5ac1f8,IconCancel as _0x2e2f79,IconTrackChanges as _0x5aba70}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x883619,View as _0x3c3a65,ViewCollection as _0x1cf556,FocusCycler as _0x80b2b8,ViewModel as _0x22348e,createDropdown as _0x1a0e52,SplitButtonView as _0x247951,addListToDropdown as _0x1a8fc2,MenuBarMenuView as _0x4416c9,MenuBarMenuListView as _0x2b3aae,ListSeparatorView as _0x567c6c,MenuBarMenuListItemView as _0x346f61,MenuBarMenuListItemButtonView as _0x59f6d0,BodyCollection as _0x428682,Dialog as _0x179695}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x23ff89,hashObject as _0x51efad,surroundingMarkersDetector as _0x2001ba,FOCUS_ANNOTATION_KEYSTROKE as _0x1f0485,AriaDescriptionView as _0x34a612,setupThreadKeyboardNavigation as _0x158e7e,trimHtml as _0x41c8ca,UserView as _0x2a1e2e,LateFocusButtonView as _0x10be5c,getDateTimeFormatter as _0x40e693,getAllMarkersDomElementsSorted as _0x18066e,sanitizeEditorConfig as _0x4fa1ac}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x559cd2,LiveRange as _0xf8fd8e,LivePosition as _0x398546,DowncastWriter as _0x1c82f2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x47633e,toWidget as _0x4a22af}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2f9077,set as _0x3052ca,isEqual as _0x5834e8,unset as _0xa0cdee,omit as Ft}from'es-toolkit/compat';import{Delete as _0x39a15c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x36173d}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5ab88f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0xaae2ec{['_enabledCommands'];constructor(_0x414e1a,_0x59dda1){super(_0x414e1a),this['_enabledCommands']=_0x59dda1,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 _0x1da9df of this['editor']['commands']['commands']())_0x1da9df['affectsData']&&!this['_enabledCommands']['has'](_0x1da9df)&&_0x1da9df['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x21d969 of this['editor']['commands']['commands']())_0x21d969['affectsData']&&!this['_enabledCommands']['has'](_0x21d969)&&_0x21d969['clearForceDisabled']('TrackChangesCommand');}}class x extends _0xaae2ec{['_suggestions'];constructor(_0xd7716e,_0x35ff62){super(_0xd7716e),this['_suggestions']=_0x35ff62,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x84f2a6){const _0x1d625f=this['_suggestions']['get'](_0x84f2a6);if(!_0x1d625f)throw new _0x33c4a9('track-changes-accept-suggestion-not-found',this);const _0x4f8f1a=_0x1d625f['getRanges']();this['editor']['model']['canEditAt'](_0x4f8f1a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1d625f);}}class O extends _0xaae2ec{['_suggestions'];constructor(_0x3f103f,_0x4bd476){super(_0x3f103f),this['_suggestions']=_0x4bd476,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1a809f){const _0x4d2c8b=this['_suggestions']['get'](_0x1a809f);if(!_0x4d2c8b)throw new _0x33c4a9('track-changes-discard-suggestion-not-found',this);const _0x40f907=_0x4d2c8b['getRanges']();this['editor']['model']['canEditAt'](_0x40f907)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4d2c8b);}}function ls(_0x13c5d8,_0x1fafd2){let _0x353339='';return _0x353339+=_0x13c5d8['split']('*')['map']((_0x5a4e39,_0x37725f)=>_0x37725f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5a4e39)+'</span>':nn(_0x5a4e39))['join'](''),_0x1fafd2&&(_0x353339+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1fafd2['value']+'\x22\x20title=\x22'+_0x1fafd2['title']+'\x22></span>'),_0x353339;}function nn(_0x3d7703){const _0x310444=document['createElement']('span');return _0x310444['innerText']=_0x3d7703,_0x310444['innerHTML'];}function ts(_0xa03b81){return _0xa03b81['sort']((_0x2b7d86,_0x52f682)=>'deletion'==_0x2b7d86['type']&&'deletion'!=_0x52f682['type']?-0x1:'deletion'!=_0x2b7d86['type']&&'deletion'==_0x52f682['type']?0x1:0x0);}function to(_0x16b84c,_0x400ec9){let _0x140405,_0x4e53c9=0x0;const _0x4feb2a=[],_0x2a9498=_0x400ec9['schema'];for(;_0x4e53c9<_0x16b84c['length'];){const _0x3727b6=_0x16b84c[_0x4e53c9],_0x5a9154=_0x16b84c[_0x4e53c9+0x1];_0x140405||(_0x140405=_0x400ec9['createPositionBefore'](_0x3727b6)),on(_0x400ec9,_0x3727b6,_0x5a9154)||(_0x4feb2a['push'](_0x400ec9['createRange'](_0x140405,_0x2a9498['isObject'](_0x3727b6)?_0x400ec9['createPositionAfter'](_0x3727b6):_0x400ec9['createPositionAt'](_0x3727b6,'end'))),_0x140405=null),_0x4e53c9++;}return _0x4feb2a;}function on(_0x2e04fb,_0x33ec55,_0x52bd99){if(!_0x52bd99)return!0x1;const _0x3537b2=_0x2e04fb['createPositionAfter'](_0x33ec55),_0x253dde=_0x2e04fb['createPositionBefore'](_0x52bd99);return _0x3537b2['isTouching'](_0x253dde);}function rs(_0x299d02,_0x149db0,_0x21fb66){for(;_0x21fb66['length'];){const _0x515a4d=_0x21fb66['splice'](0x0,0x64);_0x299d02['change'](()=>{for(const _0x3eefea of _0x515a4d)_0x3eefea['isInContent']&&_0x149db0['execute'](_0x3eefea['id']);});}}class R extends _0xaae2ec{['_command'];['_suggestions'];constructor(_0x40c3d9,_0x4d65e3,_0x4b713d){super(_0x40c3d9),this['_command']=_0x4d65e3,this['_suggestions']=_0x4b713d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x48d9d7=Array['from'](this['_suggestions']['values']())['some'](_0x52de51=>_0x52de51['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x48d9d7;}['execute'](){const _0x19febc=ts(Array['from'](this['_suggestions']['values']()));for(const _0x53727c of _0x19febc){const _0x56db0c=_0x53727c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x56db0c))return;}rs(this['editor']['model'],this['_command'],_0x19febc);}}class E extends _0xaae2ec{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3c1a4,_0x3c94ce,_0x195ffa){super(_0x3c1a4),this['_command']=_0x3c94ce,this['_suggestions']=_0x195ffa,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x53d56f=this['editor']['model']['document']['selection'],_0x311b40=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1b96d0,_0x435576){const _0x3a551a=Array['from'](_0x1b96d0['getRanges']()),_0x136c39=new Set();for(const _0x89d8e3 of _0x435576)if(_0x89d8e3['isInContent']){for(const _0x379992 of _0x3a551a)for(const _0x6b96ad of _0x89d8e3['getRanges']())(_0x379992['isIntersecting'](_0x6b96ad)||_0x1b96d0['isCollapsed']&&!_0x89d8e3['isMultiRange']&&_0x89d8e3['next']&&_0x6b96ad['end']['isTouching'](_0x379992['start']))&&_0x136c39['add'](_0x89d8e3);}return _0x136c39;}(_0x53d56f,_0x311b40),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x48d84f=ts(Array['from'](this['_selectedSuggestions']));for(const _0x114087 of _0x48d84f){const _0x2221f4=_0x114087['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2221f4))return;}rs(this['editor']['model'],this['_command'],_0x48d84f);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x4ec318(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5a2ab5,_0x4ac535){super(),this['id']=_0x4ac535['id'],this['type']=_0x4ac535['type'],this['subType']=_0x4ac535['subType']||null,this['author']=_0x4ac535['author'],this['creator']=_0x4ac535['creator']||_0x4ac535['author'],this['isExternal']=Boolean(_0x4ac535['attributes']&&_0x4ac535['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4ac535['originalSuggestionId']||null,this['_model']=_0x5a2ab5,this['_onAccept']=_0x4ac535['onAccept'],this['_onDiscard']=_0x4ac535['onDiscard'],this['_onAttributesChange']=_0x4ac535['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4ac535['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 _0x551f8e=this;for(;_0x551f8e['previous'];)_0x551f8e=_0x551f8e['previous'];return _0x551f8e;}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'](_0x986929){this['_markerNames']['add'](_0x986929);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4ae050=>this['_model']['markers']['get'](_0x4ae050))['filter'](_0x1a9d30=>_0x1a9d30);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x416689=>{for(const _0x18ce37 of this['getMarkers']())_0x416689['removeMarker'](_0x18ce37);}),this['_markerNames']['clear']();}['removeMarker'](_0x2b0cc5){this['_model']['change'](_0x14de69=>{_0x14de69['removeMarker'](_0x2b0cc5);}),this['_markerNames']['delete'](_0x2b0cc5);}['addRange'](_0x375d2e){const _0x1445e3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1445e3),this['_model']['change'](_0xd56d54=>{_0xd56d54['addMarker'](_0x1445e3,{'range':_0x375d2e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x315c53){for(const _0x557abe of this['getRanges']())if(_0x557abe['isIntersecting'](_0x315c53))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x56e526=>_0x56e526['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3ca7a1,_0x17479c)=>[..._0x3ca7a1,..._0x17479c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x20eda5=this['getRanges']();if(0x1!=_0x20eda5['length'])return null;const _0x242d66=_0x20eda5[0x0],_0x21f47a=_0x242d66['start']['nodeAfter'],_0x3dc773=_0x242d66['end']['nodeBefore'];return _0x21f47a instanceof _0x559cd2?_0x21f47a!=_0x3dc773?null:_0x21f47a: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 _0x5440b3=[];let _0x4fb0e1=this['head'];for(;_0x4fb0e1;)_0x5440b3['push'](_0x4fb0e1),_0x4fb0e1=_0x4fb0e1['next'];return _0x5440b3;}['setAttribute'](_0x43f224,_0x844a52){const _0x4bea1c=_0x2f9077(this['attributes']);_0x3052ca(_0x4bea1c,_0x43f224,_0x844a52),_0x5834e8(_0x4bea1c,this['attributes'])||(this['attributes']=_0x4bea1c,this['_onAttributesChange'](_0x4bea1c));}['removeAttribute'](_0x26e94d){const _0x1e502a=_0x2f9077(this['attributes']);_0xa0cdee(_0x1e502a,_0x26e94d),_0x5834e8(_0x1e502a,this['attributes'])||(this['attributes']=_0x1e502a,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 _0x25ef3d()['substr'](0x1,0x5);}}function c(_0x3d498a,_0x399560,_0x28fd3f){const _0x26fbe6=_0x3d498a['t'],t=_0x3d498a['t'];switch(_0x399560){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',_0x28fd3f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x28fd3f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x28fd3f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x28fd3f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x28fd3f);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',_0x28fd3f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x28fd3f);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',_0x28fd3f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x28fd3f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x28fd3f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x28fd3f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x28fd3f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x28fd3f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x28fd3f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x28fd3f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x28fd3f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x28fd3f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x28fd3f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x28fd3f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x28fd3f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x28fd3f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x28fd3f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x28fd3f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x28fd3f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x28fd3f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x28fd3f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x28fd3f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x28fd3f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x28fd3f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x28fd3f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x28fd3f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x28fd3f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x28fd3f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x28fd3f);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'},_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x28fd3f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x28fd3f);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'},_0x28fd3f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x28fd3f);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 _0x26fbe6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x28fd3f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x26fbe6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x28fd3f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x28fd3f);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'},_0x28fd3f);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'},_0x28fd3f);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'},_0x28fd3f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x399560;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2cad89,_0x4ec8e7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2cad89,this['_locale']=_0x4ec8e7;}['getDescriptions'](_0x56d47c){const _0xb9297f=[],_0x3b13fe=new Set(),_0x5cb0bc=new Set();for(let _0x227832=0x0;_0x227832<_0x56d47c['length'];_0x227832++){const _0x44a6c2=_0x56d47c[_0x227832];if(!_0x44a6c2['isInContent'])continue;const _0x27c46b=this['_handleCustomCallbackDescription'](_0x44a6c2);if(_0x27c46b){if(null!=_0x44a6c2['subType']){if(_0x3b13fe['has'](_0x44a6c2['subType']))continue;_0x3b13fe['add'](_0x44a6c2['subType']);}_0xb9297f['push'](_0x27c46b);}else{if('attribute'==_0x44a6c2['type']){const _0x25f735=_0x44a6c2['data']['key'];if(_0x5cb0bc['has'](_0x25f735))continue;_0x5cb0bc['add'](_0x44a6c2['data']['key']),_0x25f735==u?this['_handleRenameSuggestionDescription'](_0xb9297f,_0x44a6c2):this['_handleAttributeSuggestionDescription'](_0xb9297f,_0x44a6c2);continue;}'insertion'!=_0x44a6c2['type']&&'deletion'!=_0x44a6c2['type']||this['_handleInsertRemoveSuggestionDescription'](_0xb9297f,_0x44a6c2,_0x56d47c[_0x227832+0x1]);}}return this['_resolveDescriptionItems'](_0xb9297f);}['registerDescriptionCallback'](_0x1d13fe){this['_customCallbacks']['push'](_0x1d13fe);}['registerElementLabel'](_0x38b135,_0x4f82fa,_0x378dd3=_0x84b019['normal']){'function'==typeof _0x38b135?_0x1876b4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x38b135,'label':_0x4f82fa,'priority':_0x378dd3}):this['_itemLabels']['set'](_0x38b135,_0x4f82fa);}['registerAttributeLabel'](_0xc64f51,_0x5a243c){this['_attributeLabels']['set'](_0xc64f51,_0x5a243c);}['getItemLabel'](_0x5536aa,_0x56b343=0x1){let _0x4bdaf4;for(const _0x1cb3d9 of this['_itemLabelsCallbacks'])if(_0x1cb3d9['matchingCallback'](_0x5536aa)){_0x4bdaf4=_0x1cb3d9['label'];break;}return _0x4bdaf4||(_0x4bdaf4=this['_itemLabels']['get'](_0x5536aa['name'])),_0x4bdaf4?_0x4bdaf4(_0x56b343):0x1!==_0x56b343?_0x56b343+'\x20'+_0x5536aa['name']+'s':''+_0x5536aa['name'];}['_addDescriptionItems'](_0x1ce27c,_0x52629f){const _0x375f6d=_0x52629f['getFirstRange']()['getWalker'](),_0x392478='insertion'==_0x52629f['type']?'add':'remove';for(const _0x5444e3 of _0x375f6d){const _0x4b359c=_0x5444e3['item'],_0x131b49=_0x1ce27c[_0x1ce27c['length']-0x1];if(_0x4b359c['is']('$textProxy'))_0x131b49&&_0x131b49['type']['indexOf']('Container')>-0x1&&_0x1ce27c['pop'](),_0x131b49&&'text'==_0x131b49['type']?_0x131b49[_0x392478]+=_0x4b359c['data']:_0x1ce27c['push']({'type':'text','add':'add'==_0x392478?_0x4b359c['data']:'','remove':'remove'==_0x392478?_0x4b359c['data']:''});else{if(this['_schema']['isObject'](_0x4b359c)){const _0x5d7d0c=_0x4b359c;if(_0x131b49&&_0x131b49['type']['indexOf']('Container')>-0x1&&_0x1ce27c['pop'](),'elementEnd'==_0x5444e3['type'])continue;_0x131b49&&_0x131b49['type']==_0x392478+'Object'&&_0x131b49['element']['name']==_0x5d7d0c['name']?_0x131b49['quantity']++:_0x1ce27c['push']({'type':_0x392478+'Object','element':_0x5d7d0c,'quantity':0x1}),_0x375f6d['skip'](_0xc8864=>!('elementEnd'==_0xc8864['type']&&_0xc8864['item']==_0x4b359c));}else{if(this['_schema']['checkChild'](_0x4b359c,'$text')||_0x4b359c['is']('element','softBreak')){const _0x19eb68=_0x4b359c;if('add'==_0x392478&&'elementStart'==_0x5444e3['type']||'remove'==_0x392478&&'elementEnd'==_0x5444e3['type'])continue;if(_0x131b49&&-0x1==_0x131b49['type']['indexOf']('Container')){'text'==_0x131b49['type']&&(_0x131b49[_0x392478]+='\x0a');continue;}let _0x2687ec;if(_0x2687ec='add'==_0x392478?_0x19eb68['nextSibling']&&!this['_schema']['isObject'](_0x19eb68['nextSibling'])?_0x19eb68['nextSibling']:null:_0x19eb68['previousSibling']&&!this['_schema']['isObject'](_0x19eb68['previousSibling'])?_0x19eb68['previousSibling']:null,_0x19eb68['isEmpty']||_0x2687ec&&_0x2687ec['isEmpty']){const _0x939d17=_0x2687ec&&_0x2687ec['isEmpty']?_0x2687ec:_0x19eb68;_0x131b49&&_0x131b49['type']==_0x392478+'EmptyContainer'&&_0x131b49['element']['name']==_0x939d17['name']?_0x131b49['quantity']++:_0x1ce27c['push']({'type':_0x392478+'EmptyContainer','element':_0x939d17,'quantity':0x1});}else _0x1ce27c['push']({'type':_0x392478+'Container','element':_0x19eb68});}}}}}['_resolveDescriptionItems'](_0x34cea3){const _0x414ef5=this['_locale'],_0x12a866=[],_0x534ed9=[],_0x515d21=[];for(const _0x42d9d8 of _0x34cea3)switch(_0x42d9d8['type']){case'text':if(_0x42d9d8['add']=_0x42d9d8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x42d9d8['remove']=_0x42d9d8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x42d9d8['add']&&''!=_0x42d9d8['remove']){_0x12a866['push']({'type':'replace','content':c(_0x414ef5,'REPLACE_TEXT',['\x22'+_0x42d9d8['remove']+'\x22','\x22'+_0x42d9d8['add']+'\x22'])});continue;}if(null!=_0x42d9d8['add']['match'](/^ +$/)){_0x12a866['push']({'type':'insertion','content':c(_0x414ef5,'*Insert:*\x20%0',c(_0x414ef5,'ELEMENT_SPACE',_0x42d9d8['add']['length']))});continue;}if(null!=_0x42d9d8['remove']['match'](/^ +$/)){_0x12a866['push']({'type':'deletion','content':c(_0x414ef5,'*Remove:*\x20%0',c(_0x414ef5,'ELEMENT_SPACE',_0x42d9d8['remove']['length']))});continue;}if(''!=_0x42d9d8['add']){_0x12a866['push']({'type':'insertion','content':c(_0x414ef5,'*Insert:*\x20%0','\x22'+_0x42d9d8['add']+'\x22')});continue;}_0x12a866['push']({'type':'deletion','content':c(_0x414ef5,'*Remove:*\x20%0','\x22'+_0x42d9d8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x12a866['push']({'type':'insertion','content':c(_0x414ef5,'*Insert:*\x20%0',this['getItemLabel'](_0x42d9d8['element'],_0x42d9d8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x12a866['push']({'type':'deletion','content':c(_0x414ef5,'*Remove:*\x20%0',this['getItemLabel'](_0x42d9d8['element'],_0x42d9d8['quantity']))});continue;case'addContainer':_0x12a866['push']({'type':'insertion','content':c(_0x414ef5,'*Split:*\x20%0',this['getItemLabel'](_0x42d9d8['element'],_0x42d9d8['quantity']))});continue;case'removeContainer':_0x12a866['push']({'type':'deletion','content':c(_0x414ef5,'*Merge:*\x20%0',this['getItemLabel'](_0x42d9d8['element'],_0x42d9d8['quantity']))});continue;case'addFormat':_0x534ed9['push'](_0x42d9d8['key']);continue;case'removeFormat':_0x515d21['push'](_0x42d9d8['key']);continue;default:_0x12a866['push'](_0x42d9d8);}if(_0x534ed9['length']){const _0xef125=_0x534ed9['map'](_0x5005a0=>this['_attributeLabels']['has'](_0x5005a0)?this['_attributeLabels']['get'](_0x5005a0):_0x5005a0)['join'](',\x20');_0x12a866['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0xef125)});}if(_0x515d21['length']){const _0x49ef39=_0x515d21['map'](_0x9a3587=>this['_attributeLabels']['has'](_0x9a3587)?this['_attributeLabels']['get'](_0x9a3587):_0x9a3587)['join'](',\x20');_0x12a866['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x49ef39)});}return _0x12a866;}['_handleCustomCallbackDescription'](_0x4c3ddd){for(const _0x1b5637 of this['_customCallbacks']){const _0x49007b=_0x1b5637(_0x4c3ddd);if(_0x49007b&&'type'in _0x49007b)return _0x49007b;}}['_handleAttributeSuggestionDescription'](_0x594945,_0x98f209){const _0x1a6b8e=_0x98f209['data'],_0x4e977b=void 0x0===_0x1a6b8e['newValue']?'removeFormat':'addFormat';_0x594945['push']({'type':_0x4e977b,'key':_0x1a6b8e['key']});}['_handleRenameSuggestionDescription'](_0x339b33,_0x1b3113){_0x339b33['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1b3113['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x8990af,_0x1278b2,_0x9ca04b){if(this['_addDescriptionItems'](_0x8990af,_0x1278b2),_0x9ca04b&&_0x9ca04b['getFirstRange']()&&!_0x1278b2['getFirstRange']()['end']['isEqual'](_0x9ca04b['getFirstRange']()['start'])){const _0x44551a=_0x8990af[_0x8990af['length']-0x1],_0x143c83='insertion'==_0x1278b2['type']?'add':'remove';_0x44551a&&'text'==_0x44551a['type']&&(_0x44551a[_0x143c83]+='\x0a');}}}class U extends _0x121524{['afterInit'](){const _0x34cfb3=this['editor'],_0x3c076a=_0x34cfb3['plugins']['get']('TrackChangesEditing');_0x34cfb3['commands']['get']('showAIAssistant')&&_0x3c076a['enableCommand']('showAIAssistant');}}class V extends _0x121524{['afterInit'](){const _0x2e2728=this['editor'],_0x3d2f04=_0x2e2728['locale'];if(!_0x2e2728['plugins']['has']('AlignmentEditing'))return;const _0xf04597=_0x2e2728['plugins']['get']('TrackChangesEditing');_0xf04597['enableDefaultAttributesIntegration']('alignment'),_0xf04597['registerBlockAttribute']('alignment'),_0xf04597['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x3d2f04,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x290283=this['editor'],_0xdaba36=_0x290283['locale'];_0x290283['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26bb59=>{if('formatBlock'!=_0x26bb59['type'])return;const {data:_0x66060}=_0x26bb59;if(_0x66060&&'alignment'==_0x66060['commandName']){const _0xa80d0b=_0x66060['commandParams'][0x0]['value'];return{'type':'format','content':c(_0xdaba36,'*Format:*\x20%0',function(_0xaaed9c){switch(_0xaaed9c){case'left':return c(_0xdaba36,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0xdaba36,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0xdaba36,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0xdaba36,'FORMAT_JUSTIFY_TEXT');}}(_0xa80d0b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x121524{['afterInit'](){const _0x32b55b=this['editor'],_0x3fcf51=_0x32b55b['plugins']['get']('TrackChangesEditing'),_0x4900f7=_0x32b55b['locale'];for(const _0x2bc118 of ti){if(!_0x32b55b['plugins']['has'](_0x2bc118))continue;const _0x48584f=_0x2bc118['slice'](0x0,-0x7)['toLowerCase'](),_0x1f6ef1='FORMAT_'+_0x48584f['toUpperCase']();_0x3fcf51['enableDefaultAttributesIntegration'](_0x48584f),_0x3fcf51['registerInlineAttribute'](_0x48584f),_0x3fcf51['descriptionFactory']['registerAttributeLabel'](_0x48584f,c(_0x4900f7,_0x1f6ef1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7b1adc=this['editor'],_0x21f3ac=_0x7b1adc['locale'],_0x292179=_0x7b1adc['plugins']['get']('TrackChangesEditing');function _0x336fed(_0x5d12b9,_0xf555ea){_0x292179['descriptionFactory']['registerDescriptionCallback'](_0x38b3e3=>{if('formatInline'!=_0x38b3e3['type'])return;const {data:_0x40337c}=_0x38b3e3;return _0x40337c&&_0x40337c['commandName']===_0x5d12b9?_0x40337c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x21f3ac,'*Format:*\x20%0',_0xf555ea)}:{'type':'format','content':c(_0x21f3ac,'*Remove\x20format:*\x20%0',_0xf555ea)}:void 0x0;});}_0x336fed('bold',c(_0x21f3ac,'FORMAT_BOLD')),_0x336fed('italic',c(_0x21f3ac,'FORMAT_ITALIC')),_0x336fed('underline',c(_0x21f3ac,'FORMAT_UNDERLINE')),_0x336fed('code',c(_0x21f3ac,'FORMAT_CODE')),_0x336fed('strikethrough',c(_0x21f3ac,'FORMAT_STRIKETHROUGH')),_0x336fed('subscript',c(_0x21f3ac,'FORMAT_SUBSCRIPT')),_0x336fed('superscript',c(_0x21f3ac,'FORMAT_SUPERSCRIPT'));}}class G extends _0x121524{['afterInit'](){const _0x300e82=this['editor'],_0x518d40=_0x300e82['locale'];if(!_0x300e82['plugins']['has']('BlockQuoteEditing'))return;const _0x5c838b=_0x300e82['plugins']['get']('TrackChangesEditing'),_0x51d28d=this['editor']['commands']['get']('blockQuote');_0x5c838b['enableCommand']('blockQuote',(_0x5277ff,_0x389bce={})=>{const _0x595997=this['editor']['model']['document']['selection'],_0x3fb028=_0x389bce&&void 0x0!==_0x389bce['forceValue']?_0x389bce['forceValue']:!_0x51d28d['value'];let _0x4e574a=[];if(_0x3fb028){const _0x135a7d=Array['from'](_0x595997['getSelectedBlocks']())['filter'](_0x48f007=>oo(_0x48f007)||function(_0x4ca1e3,_0x3c7428){const _0x22bea5=_0x3c7428['checkChild'](_0x4ca1e3['parent'],'blockQuote'),_0xaf23b0=_0x3c7428['checkChild'](['$root','blockQuote'],_0x4ca1e3);return _0x22bea5&&_0xaf23b0;}(_0x48f007,this['editor']['model']['schema']));_0x4e574a=to(_0x135a7d,_0x300e82['model']);}else{const _0x535a0f=Array['from'](_0x595997['getSelectedBlocks']())['filter'](_0x45bb44=>oo(_0x45bb44));_0x4e574a=to(_0x535a0f,_0x300e82['model']);}_0x300e82['model']['change'](()=>{for(const _0x508cb4 of _0x4e574a)_0x5c838b['markBlockFormat'](_0x508cb4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3fb028}]});});}),_0x5c838b['descriptionFactory']['registerDescriptionCallback'](_0x535fde=>{const {data:_0x300b40}=_0x535fde;if(_0x300b40&&'blockQuote'==_0x300b40['commandName']){const _0x115386=c(_0x518d40,'ELEMENT_BLOCK_QUOTE');return _0x300b40['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x518d40,'*Set\x20format:*\x20%0',_0x115386)}:{'type':'format','content':c(_0x518d40,'*Remove\x20format:*\x20%0',_0x115386)};}});}}function oo(_0x4f76d6){return'blockQuote'==_0x4f76d6['parent']['name'];}class L extends _0x121524{['afterInit'](){const _0x451bdb=this['editor'],_0x43ac26=_0x451bdb['locale'],_0x292eed=_0x451bdb['plugins']['get']('TrackChangesEditing');_0x451bdb['plugins']['has']('BookmarkEditing')&&(_0x292eed['enableCommand']('insertBookmark'),_0x292eed['enableDefaultAttributesIntegration']('updateBookmark'),_0x292eed['registerBlockAttribute']('bookmarkId'),_0x292eed['descriptionFactory']['registerDescriptionCallback'](_0x202bc8=>{if('insertion'!=_0x202bc8['type']&&'deletion'!=_0x202bc8['type']&&'attribute'!=_0x202bc8['type'])return;const _0x5aac42=_0x202bc8['getContainedElement']();if(null==_0x5aac42)return;if(!_0x5aac42['is']('element','bookmark'))return;const _0x44a171=_0x5aac42['getAttribute']('bookmarkId');if('insertion'==_0x202bc8['type'])return{'type':'insertion','content':c(_0x43ac26,'*Insert:*\x20%0','\x22'+_0x44a171+'\x22\x20'+c(_0x43ac26,'ELEMENT_BOOKMARK'))};if('deletion'==_0x202bc8['type'])return{'type':'deletion','content':c(_0x43ac26,'*Remove:*\x20%0','\x22'+_0x44a171+'\x22\x20'+c(_0x43ac26,'ELEMENT_BOOKMARK'))};const {data:_0x43a629}=_0x202bc8;if(!_0x43a629||'bookmarkId'!=_0x43a629['key'])return;return{'type':'format','content':c(_0x43ac26,'*Set\x20bookmark:*\x20%0','\x22'+_0x43a629['newValue']+'\x22')};}));}}class J extends _0x121524{['afterInit'](){const _0x4e1cee=this['editor'];_0x4e1cee['plugins']['has']('CaseChange')&&(_0x4e1cee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4e1cee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4e1cee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x121524{['afterInit'](){const _0x442d07=this['editor'];_0x442d07['commands']['get']('ckbox')&&_0x442d07['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x121524{['afterInit'](){const _0x13d9ac=this['editor'];if(!_0x13d9ac['plugins']['has']('CodeBlock'))return;const _0x37cc06=_0x13d9ac['plugins']['get']('TrackChangesEditing'),_0xb49e2=_0x13d9ac['locale'],_0x90ca4f=_0x13d9ac['config']['get']('codeBlock')['languages'],_0x22542d=_0x13d9ac['commands']['get']('codeBlock');_0x37cc06['enableCommand']('indentCodeBlock'),_0x37cc06['enableCommand']('outdentCodeBlock'),_0x37cc06['enableCommand']('codeBlock',(_0x52ebf0,_0x2bbbd3={})=>{const _0x5b5921=_0x13d9ac['model'],_0x550051=_0x13d9ac['model']['document']['selection'],_0x16b4cf=_0x2bbbd3&&void 0x0!==_0x2bbbd3['forceValue']?_0x2bbbd3['forceValue']:!_0x22542d['value'];let _0x3ac558;_0x2bbbd3['language']||(_0x2bbbd3['language']=_0x90ca4f[0x0]['language']),_0x3ac558=_0x16b4cf?Array['from'](_0x550051['getSelectedBlocks']())['filter'](_0x2a23d4=>eo(_0x2a23d4)||function(_0x47d2ae,_0x46d5bf){if(_0x47d2ae['is']('rootElement')||_0x46d5bf['isLimit'](_0x47d2ae))return!0x1;return _0x46d5bf['checkChild'](_0x47d2ae['parent'],'codeBlock');}(_0x2a23d4,_0x5b5921['schema'])):Array['from'](_0x550051['getSelectedBlocks']())['filter'](_0x54fc27=>eo(_0x54fc27));const _0x614075=to(_0x3ac558,_0x5b5921);_0x5b5921['change'](()=>{for(const _0x65714b of _0x614075)_0x37cc06['markBlockFormat'](_0x65714b,{'commandName':'codeBlock','commandParams':[{..._0x2bbbd3,'forceValue':_0x16b4cf}],'formatGroupId':'blockName'});});}),(_0x37cc06['descriptionFactory']['registerElementLabel']('codeBlock',_0x29b207=>c(_0xb49e2,'ELEMENT_CODE_BLOCK',_0x29b207)),_0x37cc06['descriptionFactory']['registerDescriptionCallback'](_0x49c428=>{if('formatBlock'!=_0x49c428['type'])return;const _0x3b8f97=_0xb49e2['t'],{data:_0x509ffd}=_0x49c428;if(!_0x509ffd||'codeBlock'!=_0x509ffd['commandName'])return;const _0x2fb8e6=_0x509ffd['commandParams'][0x0]['language'],_0xfbacdc=_0x3b8f97(_0x90ca4f['find'](_0x48f2b9=>_0x48f2b9['language']===_0x2fb8e6)['label'])['toLowerCase']();return _0x509ffd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb49e2,'*Set\x20format:*\x20%0',c(_0xb49e2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xfbacdc+')')}:{'type':'format','content':c(_0xb49e2,'*Remove\x20format:*\x20%0',c(_0xb49e2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x29309c){return'codeBlock'==_0x29309c['name'];}class q extends _0x121524{['afterInit'](){const _0x115658=this['editor'];if(!_0x115658['plugins']['has']('CommentsEditing'))return;_0x115658['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4c298d,_0x726f00,_0x5d8229){const _0x10aebd=[];for(const _0x22c03f of _0x726f00['getItems']())_0x22c03f['hasAttribute'](_0x4c298d)&&_0x10aebd['push'](_0x5d8229['createRangeOn'](_0x22c03f));return _0x10aebd;}function Fe(_0x75697e,_0x544657,{showActiveMarker:_0x20854f=!0x0}={}){const _0x104b07=_0x75697e['plugins']['get']('TrackChangesEditing');return(_0x17888e,_0x128bfb,_0x2b0d5d)=>{if(!_0x2b0d5d['consumable']['test'](_0x128bfb['markerRange'],_0x17888e['name']))return;const _0x3614a1=_0x128bfb['markerRange']['getWalker'](),_0x1f7ee0=_0x128bfb['markerRange']['start'],_0x1c77ef=_0x75697e['model']['schema'];let _0x4dbf0a=null,_0x4d3f16=null,_0x1d5717=!0x1,_0x495102=!0x1;for(const _0x2b7e10 of _0x3614a1){const _0x24549f=_0x2b7e10['item'];_0x1d5717=_0x1d5717||_0x1c77ef['isContent'](_0x24549f);const _0x307a28=_0x2b0d5d['mapper']['toViewElement'](_0x24549f);if(_0x307a28&&_0x307a28['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2b7e10['type']&&(_0x1c77ef['isBlock'](_0x24549f)&&!_0x1c77ef['isLimit'](_0x24549f)&&(_0x24549f['nextSibling']||_0x1f7ee0['isAtEnd']?_0x4dbf0a&&_0x4dbf0a['parent']==_0x24549f||(_0x4dbf0a=_0x24549f,_0x1678f9(_0x2b7e10['previousPosition']),_0x495102=!0x0):_0x4d3f16=_0x4d3f16||_0x2b7e10['previousPosition']));}function _0x1678f9(_0x51ceab){const {id:_0x29f65e,authorId:_0x28fb77}=_0x104b07['_splitMarkerName'](_0x128bfb['markerName']),_0x1c3b66=_0x2b0d5d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x544657,'data-suggestion':_0x29f65e,'data-author-id':_0x28fb77}),_0x23ac66=_0x2b0d5d['mapper']['toViewPosition'](_0x51ceab);_0x20854f&&_0x104b07['activeMarkers']['includes'](_0x128bfb['markerName'])&&_0x2b0d5d['writer']['addClass']('ck-suggestion-marker--active',_0x1c3b66),_0x2b0d5d['writer']['insert'](_0x23ac66,_0x1c3b66),_0x2b0d5d['mapper']['bindElementToMarker'](_0x1c3b66,_0x128bfb['markerName']);}_0x1d5717||_0x495102||!_0x4d3f16||_0x1678f9(_0x4d3f16);};}class z extends _0x121524{static get['requires'](){return[_0x39a15c];}['init'](){const _0x5a6145=this['editor'],_0x2a0f35=_0x5a6145['plugins']['get']('TrackChangesEditing');_0x2a0f35['enableCommand']('delete');const _0x59a432=_0x5a6145['commands']['get']('deleteForward');_0x2a0f35['enableCommand']('deleteForward',(_0x18b3eb,_0x5b6189={})=>{const _0x115901=_0x5a6145['model']['createSelection'](_0x5a6145['model']['document']['selection']);_0x115901['isCollapsed']&&_0x5a6145['model']['modifySelection'](_0x115901,{'direction':'forward','unit':_0x5b6189['unit']});const _0x13014a=_0x115901['getFirstRange'](),_0x1253fa=_0xf8fd8e['fromRange'](_0x13014a);let _0x36e716;_0x18b3eb(_0x5b6189),_0x36e716='$graveyard'==_0x1253fa['root']['rootName']?_0x5a6145['model']['createRange'](_0x13014a['start']):_0x5a6145['model']['createRange'](_0x1253fa['start'],_0x1253fa['end']),_0x1253fa['detach'](),_0x5a6145['model']['enqueueChange'](_0x59a432['buffer']['batch'],_0x53c52f=>{_0x59a432['buffer']['lock'](),_0x53c52f['setSelection'](_0x53c52f['createRange'](_0x36e716['end'])),_0x59a432['buffer']['unlock']();});}),_0x5a6145['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x5a6145,'merge'),{'priority':'high'}),_0x5a6145['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3efbb4,_0x3ca352,_0x57d45a)=>{_0x57d45a['options']['showSuggestionHighlights']&&Fe(_0x5a6145,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3efbb4,_0x3ca352,_0x57d45a);},{'priority':'high'}),_0x5a6145['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x213d40,_0x5cce72,_0x20fe31)=>{const _0x38dfc5=_0x20fe31['mapper']['markerNameToElements'](_0x5cce72['markerName']);if(_0x38dfc5){for(const _0x2ea27f of _0x38dfc5)_0x2ea27f['is']('uiElement')&&(_0x20fe31['mapper']['unbindElementFromMarkerName'](_0x2ea27f,_0x5cce72['markerName']),_0x20fe31['writer']['remove'](_0x2ea27f));}},{'priority':'high'});}}class W extends _0x121524{['afterInit'](){const _0x43bfba=this['editor'];if(!_0x43bfba['plugins']['has']('ListEditing'))return;const _0x1ed6c2=_0x43bfba['locale'],_0xc232a5=_0x43bfba['plugins']['get']('TrackChangesEditing'),_0x37fa05=_0x43bfba['plugins']['has']('TodoListEditing'),_0x261c31=!!_0x43bfba['config']['get']('list.multiBlock');function _0x4d9a1a(_0xc63131){return{'type':'format','content':''+c(_0x1ed6c2,'*Set\x20format:*\x20%0',_0xc63131)};}function _0x2fc1a6(_0x56aaa3){return{'type':'format','content':''+c(_0x1ed6c2,'*Remove\x20format:*\x20%0',_0x56aaa3)};}_0xc232a5['enableDefaultAttributesIntegration']('numberedList'),_0xc232a5['enableDefaultAttributesIntegration']('bulletedList'),_0xc232a5['enableDefaultAttributesIntegration']('customNumberedList'),_0xc232a5['enableDefaultAttributesIntegration']('customBulletedList'),_0xc232a5['enableDefaultAttributesIntegration']('indentList'),_0xc232a5['enableDefaultAttributesIntegration']('outdentList'),_0xc232a5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xc232a5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xc232a5['registerBlockAttribute']('listItemId'),_0xc232a5['registerBlockAttribute']('listType'),_0xc232a5['registerBlockAttribute']('listIndent'),_0x261c31&&(_0xc232a5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xc232a5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x37fa05&&(_0xc232a5['enableDefaultAttributesIntegration']('todoList'),_0xc232a5['enableDefaultAttributesIntegration']('checkTodoList'),_0xc232a5['registerBlockAttribute']('todoListChecked'),_0xc232a5['descriptionFactory']['registerDescriptionCallback'](_0x5444c5=>{const {data:_0x464916}=_0x5444c5;if(_0x464916&&'todoListChecked'==_0x464916['key'])return{'type':'format','content':_0x464916['newValue']?c(_0x1ed6c2,'*Check\x20item*'):c(_0x1ed6c2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2e6fd9=>{if(_0x2e6fd9['batch']['isUndo'])return!0x1;let _0x54fb82=!0x1;const _0x4ff555=_0xc232a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb1e36b=>'todoListChecked'===_0xc232a5['_getAttributeKey'](_0xb1e36b));for(const _0x11e0ca of _0x4ff555){'todo'!=_0x11e0ca['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xc232a5['_findSuggestions'](_0x11e0ca['getFirstRange'](),'attribute')['find'](_0x50fc23=>'listType'===_0xc232a5['_getAttributeKey'](_0x50fc23['suggestion']))||(_0x2e6fd9['removeMarker'](_0x11e0ca['getFirstMarker']()),_0x54fb82=!0x0));}return _0x54fb82;})),_0xc232a5['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x1ed6c2,'FORMAT_INDENT'));const _0x5c05e9={'type':'format','content':''};_0xc232a5['descriptionFactory']['registerDescriptionCallback'](_0x56e255=>{const {data:_0x3b8ff1}=_0x56e255;if(!_0x3b8ff1||'listType'!=_0x3b8ff1['key'])return;let _0x32bffb=_0x56e255['head'];for(;_0x32bffb;){if(_0x32bffb['data']&&(('listStyle'==_0x32bffb['data']['key']||'listMarkerStyle'==_0x32bffb['data']['key'])&&(_0x32bffb['data']['newValue']&&'default'!=_0x32bffb['data']['newValue']||'default'!=_0x32bffb['data']['oldValue']&&!_0x3b8ff1['newValue'])||!_0x261c31&&_0x32bffb['data']['key']==u))return _0x5c05e9;_0x32bffb=_0x32bffb['next'];}if(null==_0x3b8ff1['newValue'])switch(_0x3b8ff1['oldValue']){case'bulleted':return _0x2fc1a6(c(_0x1ed6c2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2fc1a6(c(_0x1ed6c2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2fc1a6(c(_0x1ed6c2,'ELEMENT_TODO_LIST'));}switch(_0x3b8ff1['newValue']){case'bulleted':return _0x4d9a1a(c(_0x1ed6c2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d9a1a(c(_0x1ed6c2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d9a1a(c(_0x1ed6c2,'ELEMENT_TODO_LIST'));}}),_0xc232a5['descriptionFactory']['registerDescriptionCallback'](_0x236d86=>{const {data:_0x251302}=_0x236d86;if(_0x251302&&'listIndent'==_0x251302['key'])return null==_0x251302['newValue']||null==_0x251302['oldValue']&&0x0==_0x251302['newValue']?_0x5c05e9:void 0x0;}),_0xc232a5['descriptionFactory']['registerDescriptionCallback'](_0x234b98=>{if('attribute'!=_0x234b98['type'])return;const {data:_0xdbb504}=_0x234b98;if(!_0xdbb504||'listItemId'!=_0xdbb504['key'])return;const _0x2de62e=Te(_0x234b98);return'newValue'==_0x2de62e?{'type':'format','content':c(_0x1ed6c2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2de62e?{'type':'format','content':c(_0x1ed6c2,'*Split:*\x20list\x20item')}:_0x5c05e9;}),_0x43bfba['model']['document']['registerPostFixer'](_0xe2d6fd=>this['listItemIdFixer'](_0xe2d6fd)),_0x43bfba['model']['document']['registerPostFixer'](_0x1a485f=>this['noTrackChangesFixer'](_0x1a485f)),_0x43bfba['model']['document']['on']('change:data',(_0x5aa199,_0x593584)=>{if(_0x593584['isUndo']||!_0x593584['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2fab1f){if(_0x2fab1f['batch']['isUndo']||!_0x2fab1f['batch']['isLocal'])return!0x1;let _0x364449=!0x1;const _0x36ac5e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10a2eb=>_0x10a2eb['data']&&'listItemId'==_0x10a2eb['data']['key'])['filter'](_0x4534dd=>_0x4534dd['data']['newValue']&&_0x4534dd['data']['oldValue']);for(const _0x2cc4f8 of _0x36ac5e)Te(_0x2cc4f8)||(_0x2fab1f['removeMarker'](_0x2cc4f8['getFirstMarker']()),_0x364449=!0x0);return _0x364449;}['noTrackChangesFixer'](_0x3db1d2){if(_0x3db1d2['batch']['isUndo']||!_0x3db1d2['batch']['isLocal'])return!0x1;const _0x479d43=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x479d43['trackChangesCommand']['value'])return!0x1;let _0x4a21db=!0x1;const _0x53da2c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x138616=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3880a3=>'attribute'==_0x3880a3['type'])['filter'](_0x298133=>_0x53da2c['includes'](_0x298133['attributeKey']));if(0x0==_0x138616['length'])return _0x4a21db;for(const _0x3cedc3 of _0x138616){const _0x3a598d=_0x479d43['_findSuggestions'](_0x3cedc3['range'],'attribute')['filter'](_0x50e577=>!_0x50e577['meta']['isNextTo'])['map'](_0x429f61=>_0x429f61['suggestion'])['filter'](_0xe77ade=>{const _0x1f4219=_0x479d43['_getAttributeKey'](_0xe77ade);return _0x53da2c['includes'](_0x1f4219);});if(_0x3a598d['length']){for(const _0x17e23c of _0x3a598d)_0x3db1d2['removeMarker'](_0x17e23c['getFirstMarker']());_0x4a21db=!0x0;}}return _0x4a21db;}['assureChains'](){const _0x21b7e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46625e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x244a8d;const _0x26f5f9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x375e2b=>{if(_0x375e2b['data']['oldRange']||!_0x375e2b['data']['newRange'])return null;if(!_0x375e2b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2f07ed}=_0x21b7e7['_splitMarkerName'](_0x375e2b['name']);if(!_0x21b7e7['hasSuggestion'](_0x2f07ed))return null;const _0x945122=_0x21b7e7['getSuggestion'](_0x2f07ed);return _0x46625e['includes'](_0x945122['data']['key']);})['map'](_0x55164f=>{const {id:_0x3c3628}=_0x21b7e7['_splitMarkerName'](_0x55164f['name']),_0x1d7e94=_0x21b7e7['getSuggestion'](_0x3c3628);return _0x244a8d=_0x1d7e94['attributes']['groupId'],_0x1d7e94['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x26f5f9['size'])return;const _0x473669=_0x21b7e7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4df0a2=>'attribute'==_0x4df0a2['type']&&_0x4df0a2['data']&&_0x46625e['includes'](_0x4df0a2['data']['key'])&&_0x4df0a2['attributes']['groupId']!=_0x244a8d)['map'](_0xd9440c=>({'listItem':_0xd9440c['getFirstRange']()['start']['nodeAfter'],'groupId':_0xd9440c['attributes']['groupId']})),_0x3bafe6=new Set();for(const {groupId:_0x170860,listItem:_0x5912e}of _0x473669)_0x26f5f9['has'](_0x5912e)&&_0x3bafe6['add'](_0x170860);for(const _0x230e76 of _0x21b7e7['getSuggestions']())_0x3bafe6['has'](_0x230e76['attributes']['groupId'])&&_0x230e76['setAttribute']('groupId',_0x244a8d);}['_supportLegacySuggestions'](){const _0x16ee0a=this['editor'],_0x34afca=_0x16ee0a['locale'],_0x2064b4=_0x16ee0a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2064b4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1ab8b9,_0x136ec2){const _0xb7a91d=[];for(let _0x33d1bb of _0x1ab8b9)_0x33d1bb['start']['nodeAfter']===_0x33d1bb['end']['parent']&&(_0x33d1bb=_0x16ee0a['model']['createRange'](_0x16ee0a['model']['createPositionAt'](_0x33d1bb['start']['nodeAfter'],0x0))),_0xb7a91d['push'](_0x33d1bb);_0x16ee0a['model']['change'](_0x1016b9=>{const _0x52414a=_0x16ee0a['model']['document']['selection'],_0x28130d=Array['from'](_0x52414a['getRanges']())['map'](_0x816921=>_0xf8fd8e['fromRange'](_0x816921));_0x1016b9['setSelection'](_0xb7a91d),_0x16ee0a['commands']['get'](_0x136ec2['commandName'])['refresh'](),_0x136ec2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x16ee0a['execute'](_0x136ec2['commandName'],..._0x136ec2['commandParams']),_0x1016b9['setSelection'](_0x28130d);for(const _0xdefa3e of _0x28130d)_0xdefa3e['detach']();});}),_0x2064b4['descriptionFactory']['registerElementLabel'](function(_0x174fb1){const _0x310e9c=!_0x16ee0a['model']['schema']['isObject'](_0x174fb1),_0x2a7e19=_0x174fb1['previousSibling'],_0x32b2be=_0x174fb1['nextSibling'],_0x229cdb=_0x174fb1['getAttribute']('listItemId'),_0x5848ea=!_0x2a7e19||_0x2a7e19['getAttribute']('listItemId')!==_0x229cdb,_0x49a6f0=!_0x32b2be||_0x32b2be['getAttribute']('listItemId')!==_0x229cdb;return _0x310e9c&&Boolean(_0x229cdb)&&_0x5848ea&&_0x49a6f0;},_0x121139=>c(_0x34afca,'ELEMENT_LIST_ITEM',_0x121139));}['_registerLegacyDescription'](){const _0x1b71ed=this['editor'],_0x2a11c6=_0x1b71ed['locale'];function _0x5d5d62(_0x171bde){const _0x4e3525=_0x1b71ed['commands']['get']('bulletedList')['value'],_0x354134=_0x1b71ed['commands']['get']('numberedList')['value'];return'numberedList'===_0x171bde?_0x4e3525:_0x354134;}_0x1b71ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xb357b7){if('formatBlock'!=_0xb357b7['type'])return;const {data:_0xb260a0}=_0xb357b7;if(!_0xb260a0)return;let _0x363720,_0x9343be,_0x3015c3,_0x3beff9;switch(_0xb260a0['commandName']){case'bulletedList':_0x3015c3=_0xb260a0['commandParams'][0x0]['forceValue'],_0x3beff9=_0x5d5d62(_0xb260a0['commandName']),_0x363720=_0x3015c3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3beff9&&_0x1b71ed['config']['get']('list.multiBlock')||(_0x363720='*Change\x20to:*\x20%0'),_0x9343be={'type':'format','content':c(_0x2a11c6,_0x363720,c(_0x2a11c6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3015c3=_0xb260a0['commandParams'][0x0]['forceValue'],_0x3beff9=_0x5d5d62(_0xb260a0['commandName']),_0x363720=_0x3015c3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3beff9&&_0x1b71ed['config']['get']('list.multiBlock')||(_0x363720='*Change\x20to:*\x20%0'),_0x9343be={'type':'format','content':c(_0x2a11c6,_0x363720,c(_0x2a11c6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x363720='*Indent:*\x20%0',_0x9343be={'type':'format','content':c(_0x2a11c6,_0x363720,c(_0x2a11c6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x363720=function(_0xdf7071){const _0x50f5c3=_0xdf7071['getFirstRange']();let _0xda355b=_0x50f5c3['start']['nodeAfter'];for(;_0xda355b&&_0x50f5c3['containsItem'](_0xda355b);){if(_0xda355b['getAttribute']('listIndent')>0x0)return!0x1;_0xda355b=_0xda355b['nextSibling'];}return!0x0;}(_0xb357b7)?c(_0x2a11c6,'*Format:*\x20remove\x20from\x20%0',c(_0x2a11c6,function(_0x46080a){return'ELEMENT_'+_0x46080a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xb357b7))):c(_0x2a11c6,'*Outdent:*\x20%0',c(_0x2a11c6,'ELEMENT_LIST_ITEM')),_0x9343be={'type':'format','content':_0x363720};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xb260a0['multipleBlocks']&&(_0x363720='*Merge:*\x20%0',_0x9343be={'type':'deletion','content':c(_0x2a11c6,_0x363720,c(_0x2a11c6,'ELEMENT_LIST_ITEM'))});}return _0x9343be;});}}function Te(_0x163924){let _0x348882=_0x163924['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x348882;){const _0x2d4fae=_0x348882['getAttribute']('listItemId');if(!_0x2d4fae)return!0x1;if(_0x2d4fae==_0x163924['data']['newValue'])return'newValue';if(_0x2d4fae==_0x163924['data']['oldValue'])return'oldValue';_0x348882=_0x348882['previousSibling'];}return!0x1;}class Se extends _0x121524{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x346afe=this['editor']['config']['get']('list.properties'),_0x215299=this['editor']['plugins']['get']('TrackChangesEditing');_0x346afe['styles']&&(_0x215299['enableDefaultAttributesIntegration']('listStyle'),_0x215299['registerBlockAttribute']('listStyle')),_0x346afe['reversed']&&(_0x215299['enableDefaultAttributesIntegration']('listReversed'),_0x215299['registerBlockAttribute']('listReversed')),_0x346afe['startIndex']&&(_0x215299['enableDefaultAttributesIntegration']('listStart'),_0x215299['registerBlockAttribute']('listStart'));const _0x4f31e4={'type':'format','content':''};_0x215299['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x147bf8=this['editor']['locale'];_0x215299['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x147bf8,'FORMAT_LIST_REVERSED')),_0x215299['descriptionFactory']['registerDescriptionCallback'](_0x561367=>{const {data:_0x666052}=_0x561367;if(_0x666052&&'listReversed'==_0x666052['key'])return null==_0x666052['newValue']||0x0==_0x666052['newValue']&&null==_0x666052['oldValue']?_0x4f31e4:void 0x0;}),_0x215299['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x147bf8,'FORMAT_LIST_START')),_0x215299['descriptionFactory']['registerDescriptionCallback'](_0x320907=>{const {data:_0xc3c1f}=_0x320907;if(_0xc3c1f&&'listStart'==_0xc3c1f['key'])return null==_0xc3c1f['newValue']||0x1==_0xc3c1f['newValue']&&null==_0xc3c1f['oldValue']?_0x4f31e4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x38c0b0=>{if(_0x38c0b0['batch']['isUndo'])return!0x1;let _0x2730be=!0x1;const _0x174545=_0x215299['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c3540=>{const _0x545d0a=_0x215299['_getAttributeKey'](_0x3c3540);return'listStart'==_0x545d0a||'listReversed'==_0x545d0a;});for(const _0x458a70 of _0x174545){const _0x37adf3=_0x458a70['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x37adf3||'customNumbered'==_0x37adf3)continue;_0x215299['_findSuggestions'](_0x458a70['getFirstRange'](),'attribute')['find'](_0x38ff16=>'listType'==_0x215299['_getAttributeKey'](_0x38ff16['suggestion']))||(_0x38c0b0['removeMarker'](_0x458a70['getFirstMarker']()),_0x2730be=!0x0);}return _0x2730be;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x51c5d8){const _0x28e499=this['editor']['locale'],{data:_0x402abf}=_0x51c5d8,_0x28b9e8={'type':'format','content':''};if(!_0x402abf||'listStyle'!=_0x402abf['key'])return;if(!_0x402abf['oldValue'])return'default'==_0x402abf['newValue']?_0x28b9e8:{'type':'format','content':''+c(_0x28e499,'*Set\x20format:*\x20%0',c(_0x28e499,this['_getTranslationKeyForListStyle'](_0x402abf['newValue'])))};if(!_0x402abf['newValue']){if('default'==_0x402abf['oldValue'])return _0x28b9e8;let _0x237644=_0x51c5d8['head'];for(;_0x237644;){if(_0x237644['data']&&'listType'==_0x237644['data']['key']&&_0x237644['data']['newValue'])return _0x28b9e8;_0x237644=_0x237644['next'];}return{'type':'format','content':''+c(_0x28e499,'*Remove\x20format:*\x20%0',c(_0x28e499,this['_getTranslationKeyForListStyle'](_0x402abf['oldValue'])))};}if('default'!=_0x402abf['newValue'])return{'type':'format','content':''+c(_0x28e499,'*Set\x20format:*\x20%0',c(_0x28e499,this['_getTranslationKeyForListStyle'](_0x402abf['newValue'])))};let _0x4834dc=_0x51c5d8['head'];for(;_0x4834dc;){if(_0x4834dc['data']&&'listType'==_0x4834dc['data']['key']&&_0x4834dc['data']['newValue']&&_0x4834dc['data']['oldValue'])return _0x28b9e8;_0x4834dc=_0x4834dc['next'];}return{'type':'format','content':c(_0x28e499,'*Set\x20format:*\x20%0',c(_0x28e499,'ELEMENT_'+_0x51c5d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3235be=this['editor'],_0x52ccfa=_0x3235be['locale'];_0x3235be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b5613=>{if('formatBlock'!=_0x4b5613['type'])return;const {data:_0x2581ed}=_0x4b5613;if(!_0x2581ed)return;let _0x4ac64c,_0x54d71b;switch(_0x2581ed['commandName']){case'listStyle':_0x4ac64c='*Change\x20to:*\x20%0',_0x54d71b={'type':'format','content':c(_0x52ccfa,_0x4ac64c,c(_0x52ccfa,this['_getTranslationKeyForListStyle'](_0x2581ed['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ac64c=_0x2581ed['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x54d71b={'type':'format','content':c(_0x52ccfa,_0x4ac64c)};break;case'listStart':_0x4ac64c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54d71b={'type':'format','content':c(_0x52ccfa,_0x4ac64c,_0x2581ed['commandParams'][0x0]['startIndex'])};}return _0x54d71b;});}['_getTranslationKeyForListStyle'](_0x177154){return'ELEMENT_'+function(_0x2967c5){if(_e['includes'](_0x2967c5))return'bulleted';if(Re['includes'](_0x2967c5))return'numbered';return null;}(_0x177154)['toUpperCase']()+'_LIST_'+_0x177154['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x121524{['afterInit'](){const _0x3479a5=this['editor'];_0x3479a5['commands']['get']('emoji')&&_0x3479a5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x121524{static get['requires'](){return[_0x36173d];}['init'](){const _0x9ac5c6=this['editor'],_0x1943b2=_0x9ac5c6['plugins']['get']('TrackChangesEditing'),_0x8ac9c5=_0x9ac5c6['commands']['get']('enter');_0x1943b2['enableCommand']('enter',()=>{_0x9ac5c6['model']['change'](_0x443387=>{const _0x5d9d89=_0x9ac5c6['model']['document']['selection'],_0x9a660d=_0x5d9d89['getFirstPosition'](),_0x367086=_0xf8fd8e['fromRange'](_0x5d9d89['getFirstRange']());if(_0x8ac9c5['enterBlock'](_0x443387)){const _0x182721=_0x9ac5c6['model']['createPositionAt'](_0x9a660d['parent']['nextSibling'],0x0),_0x1bb347=_0x443387['createRange'](_0x9a660d,_0x182721);_0x1943b2['markInsertion'](_0x1bb347);}else _0x443387['setSelection'](_0x443387['createRange'](_0x367086['end']));_0x367086['detach'](),_0x8ac9c5['fire']('afterExecute',{'writer':_0x443387});});}),_0x9ac5c6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x9ac5c6,'split'),{'priority':'high'}),_0x9ac5c6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c870e,_0x321255,_0x880d13)=>{const _0x346793=_0x880d13['mapper']['markerNameToElements'](_0x321255['markerName']);if(_0x346793){for(const _0x53576c of _0x346793)_0x53576c['hasClass']('ck-suggestion-marker-split')&&(_0x880d13['mapper']['unbindElementFromMarkerName'](_0x53576c,_0x321255['markerName']),_0x880d13['writer']['remove'](_0x53576c));}},{'priority':'high'}),_0x9ac5c6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41e1f6,_0x3ac3c6,_0x15042c)=>{_0x15042c['options']['showSuggestionHighlights']&&Fe(_0x9ac5c6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x41e1f6,_0x3ac3c6,_0x15042c);},{'priority':'high'});}}class Z extends _0x121524{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d369a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d369a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d369a['enableCommand']('findNext'),_0x5d369a['enableCommand']('findPrevious'),_0x5d369a['enableCommand']('replace'),_0x5d369a['enableCommand']('replaceAll');}['handleFindCommand'](_0x3135a8,_0x569241,_0x42eb19={}){const _0x562995=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3135a8(_0x5e0396=>{let _0x44d7c8=('string'==typeof _0x569241?_0x562995['findByTextCallback'](_0x569241,_0x42eb19):_0x569241)(_0x5e0396);Array['isArray'](_0x44d7c8)&&(_0x44d7c8={'results':_0x44d7c8,'searchText':'string'==typeof _0x569241?_0x569241:''});const _0x2102d4=_0x44d7c8['results']['filter'](_0x201040=>!0x1===this['_isInDeletionRange'](_0x201040,_0x5e0396['item']));return{..._0x44d7c8,'results':_0x2102d4};},_0x42eb19);}['_isInDeletionRange'](_0x2feab5,_0x440a1d){const _0x5be315=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x440a1d,_0x2feab5['start']),this['editor']['model']['createPositionAt'](_0x440a1d,_0x2feab5['end']));for(const _0x53b688 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5be315['getIntersection'](_0x53b688['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x121524{['afterInit'](){const _0x51a685=this['editor']['locale'],_0x66510a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3a22e1,commandName:_0x16b140}of ro)this['editor']['plugins']['has'](_0x3a22e1)&&(_0x66510a['enableDefaultAttributesIntegration'](_0x16b140),_0x66510a['registerInlineAttribute'](_0x16b140));_0x66510a['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x51a685,'FORMAT_FONT_SIZE')),_0x66510a['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x51a685,'FORMAT_FONT_FAMILY')),_0x66510a['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x51a685,'FORMAT_FONT_COLOR')),_0x66510a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x51a685,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f4972=this['editor'],_0x65150=_0x1f4972['locale'];_0x1f4972['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b001d=>{const _0x2df1ac=_0x65150['t'];if('formatInline'!=_0x1b001d['type'])return;const {data:_0x459b25}=_0x1b001d;if(null!=_0x459b25){if('fontSize'==_0x459b25['commandName']){const _0x35023f=_0x459b25['commandParams'][0x0]['value'];if(_0x35023f){const _0x1b2ddf=_0x2df1ac(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x354840=>_0x354840['model']==_0x35023f)['title'])['toLowerCase']();return{'type':'format','content':c(_0x65150,'*Set\x20font\x20size:*\x20%0',_0x1b2ddf)};}return{'type':'format','content':c(_0x65150,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x459b25['commandName']){const _0x26bf35=_0x459b25['commandParams'][0x0]['value'];return _0x26bf35?{'type':'format','content':c(_0x65150,'*Set\x20font\x20family:*\x20%0',_0x26bf35)}:{'type':'format','content':c(_0x65150,'*Reset\x20font\x20family*')};}if('fontColor'==_0x459b25['commandName']){const _0xbdf5cb=_0x459b25['commandParams'][0x0]['value'];if(_0xbdf5cb){const _0x440e57=_0x883619(this['editor']['config']['get']('fontColor.colors'))['find'](_0x25bec7=>_0x25bec7['model']==_0xbdf5cb);let _0x5cd28f=_0xbdf5cb,_0xe3d17b='';return _0x440e57&&(_0x5cd28f=_0x440e57['label'],_0xe3d17b=_0x2df1ac(_0x5cd28f)['toLowerCase']()),{'type':'format','content':c(_0x65150,'*Set\x20font\x20color:*\x20%0',_0xe3d17b)['trim'](),'color':{'value':_0xbdf5cb,'title':_0xe3d17b||_0x5cd28f}};}return{'type':'format','content':c(_0x65150,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x459b25['commandName']){const _0x38cfab=_0x459b25['commandParams'][0x0]['value'];if(_0x38cfab){const _0x3b05b8=_0x883619(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2172f9=>_0x2172f9['model']==_0x38cfab);let _0x32d94c=_0x38cfab,_0x20fc2a='';return _0x3b05b8&&(_0x32d94c=_0x3b05b8['label'],_0x20fc2a=_0x2df1ac(_0x32d94c)['toLowerCase']()),{'type':'format','content':c(_0x65150,'*Set\x20font\x20background\x20color:*\x20%0',_0x20fc2a)['trim'](),'color':{'value':_0x38cfab,'title':_0x20fc2a||_0x32d94c}};}return{'type':'format','content':c(_0x65150,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x121524{['afterInit'](){const _0x1832c3=this['editor'],_0x41437d=_0x1832c3['plugins']['get']('TrackChangesEditing'),_0x5b2d3f=_0x1832c3['commands']['get']('copyFormat'),_0xf95f03=_0x1832c3['commands']['get']('pasteFormat');_0x5b2d3f&&_0xf95f03&&(_0x41437d['enableDefaultAttributesIntegration']('pasteFormat'),_0x41437d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x287a80=this['editor'],_0x4a976e=_0x287a80['locale'];_0x287a80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1748c3=>{if('formatBlock'!=_0x1748c3['type']&&'formatInline'!=_0x1748c3['type'])return;const {data:_0x1f308c}=_0x1748c3;if(_0x1f308c&&'pasteFormat'===_0x1f308c['commandName']){const _0x3194b2=[],_0x1234e4=_0x1f308c['commandParams'][0x0];for(const [_0x471a5f,_0x499995]of Object['entries'](_0x1234e4))_0x3194b2['push'](so(_0x287a80,_0x471a5f,_0x499995));return _0x3194b2['length']?{'type':'format','content':c(_0x4a976e,'*Set\x20format\x20to:*\x20%0',_0x3194b2['join'](',\x20'))}:{'type':'format','content':c(_0x4a976e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x43545f,_0x450026,_0x565dab){const _0x51df00=_0x43545f['locale']['t'],_0x4c12b2=_0x450026['split'](/(?=[A-Z])/)['join']('\x20'),_0x2d7656=_0x51df00(_0x4c12b2['charAt'](0x0)['toUpperCase']()+_0x4c12b2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x565dab)return _0x2d7656;if('fontColor'===_0x450026||'fontBackgroundColor'===_0x450026){const _0x200fe6=_0x883619(_0x43545f['config']['get']('fontColor.colors'))['find'](_0x1c3964=>_0x1c3964['model']==_0x565dab);return _0x2d7656+'\x20('+(_0x200fe6?_0x51df00(_0x200fe6['label'])['toLowerCase']():_0x565dab)+')';}if('fontSize'===_0x450026&&isNaN(parseFloat(_0x565dab))){const _0x11f2c3=_0x43545f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x43545f['config']['get']('fontSize.options'))['find'](_0x34e565=>_0x34e565['model']==_0x565dab);return _0x2d7656+'\x20('+(_0x11f2c3?_0x51df00(_0x11f2c3['title'])['toLowerCase']():_0x565dab)+')';}return _0x2d7656+'\x20('+_0x565dab+')';}class et extends _0x121524{['_headingOptions'];['afterInit'](){const _0x428e42=this['editor'];if(!_0x428e42['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x428e42['config']['get']('heading.options');const _0x3b65c7=_0x428e42['locale'],_0x1ede17=_0x428e42['plugins']['get']('TrackChangesEditing');_0x1ede17['enableDefaultAttributesIntegration']('heading');for(const _0x2eb3fa of this['_headingOptions'])'paragraph'!=_0x2eb3fa['model']&&_0x1ede17['descriptionFactory']['registerElementLabel'](_0x2eb3fa['model'],_0x319fea=>{const _0x228d12=this['_getHeadingLevel'](_0x2eb3fa['model']);return null!==_0x228d12?_0x27600a(_0x319fea,_0x228d12):_0x5c2785(_0x319fea,_0x2eb3fa['title']);});function _0x27600a(_0x5321d0,_0x51951d){return c(_0x3b65c7,'ELEMENT_HEADING',[_0x5321d0,_0x51951d]);}function _0x5c2785(_0x20bf62,_0x41b981){return c(_0x3b65c7,'ELEMENT_HEADING_CUSTOM',[_0x20bf62,_0x41b981]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xaa5b2a=this['editor'],_0x2d636d=_0xaa5b2a['locale'];function _0x33f45f(_0x124ae0,_0x2d2767){return c(_0x2d636d,'ELEMENT_HEADING_CUSTOM',[_0x124ae0,_0x2d2767]);}_0xaa5b2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a2983=>{if('formatBlock'!=_0x1a2983['type'])return;const {data:_0x53edbe}=_0x1a2983;if(_0x53edbe&&'heading'==_0x53edbe['commandName']){const _0x5cfb03=_0x53edbe['commandParams'][0x0]['value'],_0x4154b2=this['_getHeadingLevel'](_0x5cfb03);if(null!==_0x4154b2)return{'type':'format','content':c(_0x2d636d,'*Change\x20to:*\x20%0',(_0x876765=0x1,_0x4e5d3a=_0x4154b2,c(_0x2d636d,'ELEMENT_HEADING',[_0x876765,_0x4e5d3a])))};const _0x12e9e3=this['_headingOptions']['find'](_0x3559e2=>_0x3559e2['model']===_0x5cfb03)['title'];return{'type':'format','content':c(_0x2d636d,'*Change\x20to:*\x20%0',_0x33f45f(0x1,_0x12e9e3))};}var _0x876765,_0x4e5d3a;});}['_getHeadingLevel'](_0x56cbe){const _0x548881=_0x56cbe['match'](/^heading(\d+)/);if(_0x548881)return _0x548881[0x1];const _0x52e59d=this['_headingOptions']?.['find'](_0x5093f1=>_0x5093f1['model']==_0x56cbe);if(_0x52e59d&&_0x52e59d['view']){const _0x52ca45=_0x52e59d['view'],_0x2630dd=(_0x52ca45['name']??_0x52ca45)['match'](/^h(\d+)/);if(_0x2630dd)return _0x2630dd[0x1];}return null;}}class nt extends _0x121524{['afterInit'](){const _0x1d53e2=this['editor'];if(!_0x1d53e2['plugins']['has']('HighlightEditing'))return;const _0x47df29=_0x1d53e2['plugins']['get']('TrackChangesEditing'),_0x425144=_0x1d53e2['locale'];_0x47df29['enableDefaultAttributesIntegration']('highlight'),_0x47df29['registerInlineAttribute']('highlight'),_0x47df29['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x425144,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34f2e8=this['editor'],_0x4ddab7=_0x34f2e8['locale'];_0x34f2e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3520db=>{if('formatInline'!=_0x3520db['type'])return;const {data:_0x13e653}=_0x3520db;if(_0x13e653&&'highlight'==_0x13e653['commandName']){const _0xa803a4=_0x4ddab7['t'],_0x188792=_0x13e653['commandParams'][0x0]['value'];if(_0x188792){const _0x4928a2=_0x34f2e8['config']['get']('highlight.options')['find'](_0x436a3e=>_0x436a3e['model']==_0x188792),_0x57db97=_0xa803a4(_0x4928a2['title'])['toLowerCase']();return{'type':'format','content':c(_0x4ddab7,'*Set\x20highlight:*\x20%0',_0x57db97),'color':{'value':_0x4928a2['color'],'title':_0x4928a2['title']}};}return{'type':'format','content':c(_0x4ddab7,'*Remove\x20highlight*',c(_0x4ddab7,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x121524{['afterInit'](){const _0x2889f7=this['editor'];if(!_0x2889f7['plugins']['has']('HorizontalLineEditing'))return;_0x2889f7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2e9944=_0x2889f7['plugins']['get']('TrackChangesEditing'),_0x55dea2=_0x2889f7['locale'];_0x2e9944['descriptionFactory']['registerElementLabel']('horizontalLine',_0xbdab54=>c(_0x55dea2,'ELEMENT_HORIZONTAL_LINE',_0xbdab54)),_0x2889f7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5e3690,{writer:_0x2c28d1,options:_0x13228c})=>{if(!_0x13228c['showSuggestionHighlights'])return null;const _0x49d269=_0x2c28d1['createContainerElement']('div'),_0x63453e=_0x2c28d1['createEmptyElement']('hr');return _0x2c28d1['addClass']('ck-horizontal-line',_0x49d269),_0x2c28d1['insert'](_0x2c28d1['createPositionAt'](_0x49d269,0x0),_0x63453e),_0x49d269;},'converterPriority':'high'});}}class ot extends _0x121524{['afterInit'](){const _0x1f709d=this['editor'];if(!_0x1f709d['plugins']['has']('HtmlEmbed'))return;const _0x2b2db2=_0x1f709d['plugins']['get']('TrackChangesEditing'),_0x5d42d4=_0x1f709d['locale'];_0x2b2db2['descriptionFactory']['registerElementLabel']('rawHtml',_0x29b96a=>c(_0x5d42d4,'ELEMENT_HTML_EMBED',_0x29b96a)),_0x2b2db2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2b2db2['registerBlockAttribute']('value'),_0x2b2db2['descriptionFactory']['registerDescriptionCallback'](_0x458351=>{if('attribute'!=_0x458351['type'])return;const {data:_0x5847d8}=_0x458351;if(_0x5847d8&&'value'==_0x5847d8['key']&&_0x458351['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5268b9=c(_0x5d42d4,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5d42d4,'*Change\x20%0\x20content*',_0x5268b9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4782ab=this['editor'],_0x82bfd2=_0x4782ab['locale'];_0x4782ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34d8a0=>{if('formatBlock'!=_0x34d8a0['type'])return;const {data:_0x3de7f0}=_0x34d8a0;if(_0x3de7f0&&'htmlEmbed'==_0x3de7f0['commandName']){const _0x376223=c(_0x82bfd2,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x82bfd2,'*Change\x20%0\x20content*',_0x376223)};}});}}class rt extends _0x121524{['afterInit'](){const _0x32ee95=this['editor'];if(!_0x32ee95['plugins']['has']('ImageEditing'))return;const _0x275404=_0x32ee95['plugins']['get']('TrackChangesEditing'),_0x37bed3=_0x32ee95['plugins']['get']('ImageUtils'),_0x286718=_0x32ee95['locale'];_0x275404['enableCommand']('insertImage'),_0x275404['descriptionFactory']['registerElementLabel']('imageBlock',_0xc3b90d=>c(_0x286718,'ELEMENT_IMAGE',_0xc3b90d)),_0x275404['descriptionFactory']['registerElementLabel']('imageInline',_0x3e69fa=>c(_0x286718,'ELEMENT_INLINE_IMAGE',_0x3e69fa)),_0x275404['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x286718,'ELEMENT_CAPTION')),_0x32ee95['plugins']['has']('ImageUploadEditing')&&_0x275404['enableCommand']('uploadImage'),_0x32ee95['plugins']['has']('ImageBlockEditing')&&_0x32ee95['plugins']['has']('ImageInlineEditing')&&(_0x275404['enableCommand']('imageTypeInline',(_0x208b45,_0xb9b5a1)=>{const _0x3076cb=_0x37bed3['getClosestSelectedImageElement'](_0x32ee95['model']['document']['selection']);_0x32ee95['model']['change'](()=>{_0x275404['markBlockFormat'](_0x3076cb,{'commandName':'imageTypeInline','commandParams':[_0xb9b5a1]},[],'convertBlockImageToInline');});}),_0x275404['enableCommand']('imageTypeBlock',(_0x167f5d,_0x2ed6e7)=>{_0x32ee95['model']['change'](_0x3beceb=>{let _0x16d3ed=_0x37bed3['getClosestSelectedImageElement'](_0x32ee95['model']['document']['selection']),_0x32ba7a=_0x3beceb['createRangeOn'](_0x16d3ed);const _0x322a5d=_0x398546['fromPosition'](_0x32ba7a['start'],'toPrevious'),_0x29eb36=_0x398546['fromPosition'](_0x32ba7a['end'],'toNext');_0x275404['forceDefaultExecution'](()=>_0x167f5d(_0x2ed6e7)),_0x16d3ed=_0x37bed3['getClosestSelectedImageElement'](_0x32ee95['model']['document']['selection']),_0x32ba7a=_0x3beceb['createRangeOn'](_0x16d3ed);const _0x1e9a15=_0x3beceb['createRange'](_0x322a5d,_0x29eb36);_0x322a5d['detach'](),_0x29eb36['detach'](),_0x275404['markBlockFormat'](_0x16d3ed,{'commandName':'imageTypeInline','commandParams':[_0x2ed6e7]},[],'convertInlineImageToBlock'),_0x1e9a15['start']['isBefore'](_0x32ba7a['start'])&&_0x275404['markInsertion'](_0x3beceb['createRange'](_0x1e9a15['start'],_0x32ba7a['start']),'convertInlineImageToBlock'),_0x32ba7a['end']['isBefore'](_0x1e9a15['end'])&&_0x275404['markInsertion'](_0x3beceb['createRange'](_0x32ba7a['end'],_0x1e9a15['end']),'convertInlineImageToBlock');});}),_0x275404['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x275404['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x275404['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x275404['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x275404['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x275404['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x207016])=>{const _0x10d864=_0x275404['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x55fa4c=_0x207016['start'],_0x27a895=_0x207016['end'];const _0x30f1e2=_0x32ee95['model']['schema']['getNearestSelectionRange'](_0x55fa4c,'backward'),_0x47344e=_0x32ee95['model']['schema']['getNearestSelectionRange'](_0x27a895,'forward');_0x30f1e2['isCollapsed']&&(_0x55fa4c=_0x30f1e2['start']),_0x47344e['isCollapsed']&&(_0x27a895=_0x47344e['end']),_0x10d864([_0x32ee95['model']['createRange'](_0x55fa4c,_0x27a895)]);}),_0x275404['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1011b3),_0x275404['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1011b3)),_0x32ee95['plugins']['has']('ImageCaptionEditing')&&(_0x275404['enableCommand']('toggleImageCaption',(_0x34b0c9,_0x14eb53)=>{const _0x9ef5d9=_0x32ee95['plugins']['get']('ImageCaptionUtils');let _0x5ce11c=_0x37bed3['getClosestSelectedImageElement'](_0x32ee95['model']['document']['selection']),_0x348234=_0x9ef5d9['getCaptionFromImageModelElement'](_0x5ce11c);_0x32ee95['model']['change'](()=>{if(_0x348234)return void _0x275404['markDeletion'](_0x32ee95['model']['createRangeOn'](_0x348234));const _0x5aebaf=_0x37bed3['isBlockImage'](_0x5ce11c);_0x34b0c9(_0x14eb53),_0x5ce11c=_0x37bed3['getClosestSelectedImageElement'](_0x32ee95['model']['document']['selection']),_0x348234=_0x9ef5d9['getCaptionFromImageModelElement'](_0x5ce11c),_0x275404['markInsertion'](_0x32ee95['model']['createRangeOn'](_0x348234),_0x5aebaf?null:'imageCaption');});}),_0x275404['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1011b3));const _0x3da526=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d7c0f(_0x46b5f8,_0xe2ccfd){const _0xda96b2=_0x3da526['findIndex'](({type:_0x4b234f,subType:_0x1b0a7e})=>_0x46b5f8['type']==_0x4b234f&&_0x46b5f8['subType']==_0x1b0a7e),_0x4d2fc0=_0x3da526['findIndex'](({type:_0x46fe2b,subType:_0x4c6a1e})=>_0xe2ccfd['type']==_0x46fe2b&&_0xe2ccfd['subType']==_0x4c6a1e);if(_0xda96b2<0x0||_0x4d2fc0<0x0)return!0x1;const _0xb118d6=_0x46b5f8['getFirstRange'](),_0x352cf7=_0xe2ccfd['getFirstRange']();if((0x0==_0xda96b2||0x1==_0xda96b2)&&0x2==_0x4d2fc0&&_0xb118d6['isIntersecting'](_0x352cf7))return!0x0;if(0x2==_0xda96b2&&0x3==_0x4d2fc0){const _0x1c573b=_0x275404['_findSuggestions'](_0xb118d6,'insertion')['filter'](({suggestion:_0x7dc460,meta:_0x4fee2d})=>_0x4fee2d['isOwn']&&'convertInlineImageToBlock'==_0x7dc460['subType']);if(_0x1c573b['length']>0x1&&_0x352cf7['end']['isEqual'](_0xb118d6['start']))return!0x0;if(0x1==_0x1c573b['length']&&(_0xb118d6['start']['isEqual'](_0x352cf7['end'])||_0xb118d6['end']['isEqual'](_0x352cf7['start'])))return!0x0;}if(0x3==_0xda96b2&&0x3==_0x4d2fc0&&_0xb118d6['start']['isBefore'](_0x352cf7['start'])){const _0x53d68b=_0xb118d6['end']['nodeAfter'],_0x432608=_0x352cf7['start']['nodeBefore'];return _0x37bed3['isBlockImage'](_0x53d68b)&&_0x53d68b===_0x432608;}return!0x1;}function _0x1011b3(_0x1ba1e3,_0x2a9ec2){return _0x3d7c0f(_0x1ba1e3,_0x2a9ec2)?[_0x1ba1e3,_0x2a9ec2]:_0x3d7c0f(_0x2a9ec2,_0x1ba1e3)?[_0x2a9ec2,_0x1ba1e3]:null;}_0x32ee95['plugins']['has']('ImageResize')&&(_0x275404['enableDefaultAttributesIntegration']('resizeImage'),_0x275404['registerBlockAttribute']('resizedWidth'),_0x275404['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x286718,'FORMAT_IMAGE_SIZE'))),_0x32ee95['plugins']['has']('ImageTextAlternativeEditing')&&(_0x275404['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x275404['registerBlockAttribute']('alt')),_0x32ee95['plugins']['has']('PictureEditing')&&(_0x275404['registerBlockAttribute']('sources'),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x45d5f5=>{if('attribute'!=_0x45d5f5['type'])return;const {data:_0x51b0e1}=_0x45d5f5;return _0x51b0e1&&'sources'==_0x51b0e1['key']?{'type':'format','content':''}:void 0x0;})),_0x32ee95['plugins']['has']('ImageSizeAttributes')&&(_0x275404['registerBlockAttribute']('width'),_0x275404['registerBlockAttribute']('height'),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x1a223a=>{if('attribute'!=_0x1a223a['type'])return;const {data:_0x5f14cd}=_0x1a223a;return!_0x5f14cd||'width'!=_0x5f14cd['key']&&'height'!=_0x5f14cd['key']?void 0x0:{'type':'format','content':''};})),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x2251b8=>{if(!!_0x3da526['find'](({type:_0x26c691,subType:_0x402024})=>_0x2251b8['type']==_0x26c691&&_0x2251b8['subType']==_0x402024))return _0x2251b8['previous']?{}:void 0x0;}),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x1cb2e9=>{if('insertion'==_0x1cb2e9['type']||'deletion'==_0x1cb2e9['type']){const _0x4b6781=_0x1cb2e9['getContainedElement']();if(_0x4b6781&&_0x4b6781['is']('element','caption'))return{'type':'insertion'==_0x1cb2e9['type']?'addObject':'removeObject','element':_0x4b6781,'quantity':0x1};}}),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x56b0f6=>'formatBlock'==_0x56b0f6['type']&&'convertInlineImageToBlock'==_0x56b0f6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x56b0f6['type']&&'convertBlockImageToInline'==_0x56b0f6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x275404['descriptionFactory']['registerDescriptionCallback'](_0x495c5a=>{if('attribute'!=_0x495c5a['type'])return;const {data:_0x2bdffb}=_0x495c5a;if(!_0x2bdffb||'alt'!=_0x2bdffb['key'])return;const _0x266e3a=_0x2bdffb['newValue'];return _0x266e3a?{'type':'format','content':c(_0x286718,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x266e3a+'\x22')}:{'type':'format','content':c(_0x286718,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x525644=this['editor'],_0xe9eb4=_0x525644['locale'];_0x525644['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x145578=>{if('formatBlock'!=_0x145578['type']&&'formatInline'!=_0x145578['type'])return;const {data:_0x3b012e}=_0x145578;if(_0x3b012e){if('imageTextAlternative'==_0x3b012e['commandName']){const _0x2b2746=_0x3b012e['commandParams'][0x0]['newValue'];return _0x2b2746?{'type':'format','content':c(_0xe9eb4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2b2746+'\x22')}:{'type':'format','content':c(_0xe9eb4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3b012e['commandName']){const _0x5f599b=_0x3b012e['commandParams'][0x0]['width'];return _0x5f599b?{'type':'format','content':c(_0xe9eb4,'*Set\x20image\x20width:*\x20%0',_0x5f599b)}:{'type':'format','content':c(_0xe9eb4,'*Reset\x20image\x20width*')};}}});}}class at extends _0x121524{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1a4911=this['editor']['locale'],_0x33c21a=this['editor']['plugins']['get']('TrackChangesEditing');_0x33c21a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x33c21a['registerBlockAttribute']('src'),_0x33c21a['descriptionFactory']['registerDescriptionCallback'](_0x3f42d6=>{if('attribute'!=_0x3f42d6['type'])return;const {data:_0x58fd23}=_0x3f42d6;return _0x58fd23&&'src'==_0x58fd23['key']?_0x58fd23['newValue']&&_0x58fd23['oldValue']?{'type':'format','content':c(_0x1a4911,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5385db=this['editor']['plugins']['get']('TrackChangesEditing');_0x5385db['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5385db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5385db['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5385db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x355a9c=this['editor'],_0x54a2ac=_0x355a9c['locale'];_0x355a9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43d321=>{if('formatBlock'!=_0x43d321['type']&&'formatInline'!=_0x43d321['type'])return;const {data:_0xf95983}=_0x43d321;if(!_0xf95983||'replaceImageSource'!=_0xf95983['commandName'])return;return{'type':'format','content':c(_0x54a2ac,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x121524{['afterInit'](){const _0x4c38a5=this['editor'];if(!_0x4c38a5['plugins']['has']('ImageStyleEditing'))return;const _0x1c7018=_0x4c38a5['plugins']['get']('TrackChangesEditing'),_0x3b431b=_0x4c38a5['plugins']['get']('ImageUtils'),_0x36d0d3={};_0x1c7018['enableCommand']('imageStyle',(_0x151c79,_0x5cbb25)=>{const _0x510f29=_0x4c38a5['plugins']['get']('Users')['me'],_0x1b816b=_0x4c38a5['commands']['get']('imageStyle');let _0x31fb31=_0x3b431b['getClosestSelectedImageElement'](_0x4c38a5['model']['document']['selection']),_0x12832d=_0x4c38a5['model']['createRangeOn'](_0x31fb31),_0x5db9c1=_0x1b816b['value'];if(_0x5db9c1==_0x5cbb25['value'])return;const _0x47c097={'commandName':'imageStyle','commandParams':[_0x5cbb25],'formatGroupId':_0x25ef3d()};_0x4c38a5['model']['change'](()=>{if(_0x1c7018['getSuggestions']()['filter'](_0x4bab86=>_0x4bab86['isInContent']&&_0x510f29==_0x4bab86['author']&&('formatBlock'==_0x4bab86['type']||'formatInline'==_0x4bab86['type'])&&('imageStylePreApply'==_0x4bab86['subType']||'imageStylePostApply'==_0x4bab86['subType'])&&_0x4bab86['getFirstRange']()['isEqual'](_0x12832d))['forEach'](_0x23ac9c=>_0x1c7018['discardSuggestion'](_0x23ac9c['head'])),_0x31fb31=_0x3b431b['getClosestSelectedImageElement'](_0x4c38a5['model']['document']['selection']),_0x12832d=_0x4c38a5['model']['createRangeOn'](_0x31fb31),_0x1b816b['refresh'](),_0x4c38a5['commands']['get']('imageTypeInline')['refresh'](),_0x4c38a5['commands']['get']('imageTypeBlock')['refresh'](),_0x5db9c1=_0x1b816b['value'],_0x5db9c1!=_0x5cbb25['value'])return _0x3b431b['isInlineImage'](_0x31fb31)&&_0x1b816b['shouldConvertImageType'](_0x5cbb25['value'],_0x31fb31)?(_0x151c79({..._0x5cbb25,'setImageSizes':!0x1}),_0x31fb31=_0x3b431b['getClosestSelectedImageElement'](_0x4c38a5['model']['document']['selection']),void _0x1c7018['markBlockFormat'](_0x31fb31,{..._0x47c097,'commandReversedParams':[{'value':_0x5db9c1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b431b['isBlockImage'](_0x31fb31)?_0x1c7018['markBlockFormat'](_0x31fb31,_0x47c097,[],'imageStylePostApply'):_0x1c7018['markInlineFormat'](_0x12832d,_0x47c097,'imageStylePostApply'));});});for(const _0x4e3e4e of _0x4c38a5['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x36d0d3[_0x4e3e4e['name']]=_0x4e3e4e['title']['toLowerCase']();_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x520064])=>{_0x3b431b['setImageNaturalSizeAttributes'](_0x520064['getContainedElement']());}),_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5b645c,_0x43532e)=>{_0x1c7018['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5b645c,{'commandName':_0x43532e['commandName'],'commandParams':_0x43532e['commandReversedParams']});}),_0x1c7018['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5573e8,_0x46204f){if(_0x4279f0(_0x5573e8,_0x46204f))return[_0x5573e8,_0x46204f];if(_0x4279f0(_0x46204f,_0x5573e8))return[_0x46204f,_0x5573e8];return null;});const _0x117967=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4279f0(_0x5218a3,_0x3a88bd){const _0x2ece24=_0x117967['findIndex'](({type:_0x4c0926,subType:_0x35255c})=>_0x5218a3['type']==_0x4c0926&&_0x5218a3['subType']==_0x35255c),_0x2e575e=_0x117967['findIndex'](({type:_0x1322e3,subType:_0x511b41})=>_0x3a88bd['type']==_0x1322e3&&_0x3a88bd['subType']==_0x511b41);if(_0x2ece24<0x0||_0x2e575e<0x0)return!0x1;const _0x193324=_0x5218a3['getFirstRange'](),_0x512f6f=_0x3a88bd['getFirstRange']();if((0x0==_0x2ece24||0x1==_0x2ece24)&&0x2==_0x2e575e&&_0x193324['isIntersecting'](_0x512f6f))return!0x0;if(0x2==_0x2ece24&&0x3==_0x2e575e){const _0x29be6a=_0x1c7018['_findSuggestions'](_0x193324,'insertion')['filter'](({suggestion:_0x3f716b,meta:_0x5dcbbb})=>_0x5dcbbb['isOwn']&&'convertInlineImageToBlock'==_0x3f716b['subType']);if(_0x29be6a['length']>0x1&&_0x512f6f['end']['isEqual'](_0x193324['start']))return!0x0;if(0x1==_0x29be6a['length']&&(_0x193324['start']['isEqual'](_0x512f6f['end'])||_0x193324['end']['isEqual'](_0x512f6f['start'])))return!0x0;}if(0x3==_0x2ece24&&0x3==_0x2e575e&&_0x193324['start']['isBefore'](_0x512f6f['start'])){const _0x138036=_0x193324['end']['nodeAfter'],_0x980fa3=_0x512f6f['start']['nodeBefore'];return _0x3b431b['isBlockImage'](_0x138036)&&_0x138036===_0x980fa3;}return!0x1;}_0x4c38a5['model']['document']['registerPostFixer'](()=>{let _0x3d7d10=!0x1;const _0x7617fc=Array['from'](_0x4c38a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3479d0,data:_0x57c560}of _0x7617fc){const {group:_0x13c8f4,type:_0x5d8b73,subType:_0x5d804f,id:_0x2c7c16}=_0x1c7018['_splitMarkerName'](_0x3479d0);if('suggestion'==_0x13c8f4&&_0x1c7018['hasSuggestion'](_0x2c7c16)){if('formatBlock'==_0x5d8b73&&('imageStylePreApply'==_0x5d804f||'imageStylePostApply'==_0x5d804f)){const _0x34a9f7=_0x1c7018['getSuggestion'](_0x2c7c16);if(_0x57c560['newRange']){const _0x1c7c2c=_0x34a9f7['getFirstRange']()['getContainedElement']();if(_0x3b431b['isBlockImage'](_0x1c7c2c))continue;_0x1c7018['discardSuggestion'](_0x34a9f7),_0x3d7d10=!0x0;}}if('insertion'==_0x5d8b73&&'imageCaption'==_0x5d804f&&!_0x57c560['newRange']){const _0x2beeb1=_0x1c7018['getSuggestion'](_0x2c7c16);_0x2beeb1['next']&&_0x2beeb1['next']['isInContent']&&(_0x1c7018['discardSuggestion'](_0x2beeb1['next']),_0x3d7d10=!0x0);}}}return _0x3d7d10;}),this['_registerLegacyDescription'](_0x36d0d3);}['_registerLegacyDescription'](_0x48d82f){const _0x911fd8=this['editor'],_0x1bdc22=_0x911fd8['locale'];_0x911fd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59b0b3=>{if('formatBlock'!=_0x59b0b3['type']&&'formatInline'!=_0x59b0b3['type'])return;const {data:_0x17d4eb}=_0x59b0b3;if(!_0x17d4eb||'imageStyle'!=_0x17d4eb['commandName'])return;const _0x16dbac=_0x17d4eb['commandParams'][0x0]['value'];return _0x44ee0f('side'===_0x16dbac?c(_0x1bdc22,'FORMAT_SIDE_IMAGE'):_0x48d82f[_0x16dbac]||_0x16dbac);function _0x44ee0f(_0x27e077){return{'type':'format','content':c(_0x1bdc22,'*Format:*\x20%0',_0x27e077)};}});}}class ut extends _0x121524{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x16fdef){super(_0x16fdef),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2d464a=this['editor'],_0xea022f=_0x2d464a['commands']['get']('importWord'),_0x3f9358=_0x2d464a['commands']['get']('trackChanges');_0xea022f&&(_0xea022f['on']('execute',(_0x57fd1d,[,_0x58ddb6])=>{this['_trackChangesValueDuringImport']=_0x3f9358['value'],_0x58ddb6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xea022f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xea022f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3f9358['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2d464a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x462a15,_0x4d585f){const {suggestions:_0x50d51c}=_0x4d585f,_0x526c8e=this['editor']['commands']['get']('trackChanges'),_0x56e2c9=_0x526c8e['value'];this['_trackChangesValueDuringImport']!==_0x56e2c9&&(_0x526c8e['execute'](),this['_trackChangesExecuted']=!0x0),_0x50d51c&&_0x50d51c['forEach'](({id:_0x34c6a5,type:_0x122ca9,author:_0xec5941,created_at:_0x4af80b})=>{const _0x24dc6c={'id':_0x34c6a5,'type':_0x122ca9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xec5941,'createdAt':_0x4af80b?new Date(_0x4af80b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x24dc6c);});}}class ft extends _0x121524{['afterInit'](){const _0x17cbec=this['editor'],_0x1e53ee=_0x17cbec['plugins']['get']('TrackChangesEditing');if(_0x17cbec['plugins']['has']('IndentEditing')&&(_0x1e53ee['enableCommand']('indent'),_0x1e53ee['enableCommand']('outdent')),_0x17cbec['plugins']['has']('IndentBlock')){for(const _0x74a85 of['indentBlock','outdentBlock'])_0x1e53ee['enableDefaultAttributesIntegration'](_0x74a85);}const _0xf15b6f=_0x17cbec['locale'];_0x1e53ee['registerBlockAttribute']('blockIndent'),_0x1e53ee['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0xf15b6f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a3b67=this['editor'],_0x5c2fa5=_0x3a3b67['locale'],_0x195653=_0x3a3b67['plugins']['get']('TrackChangesEditing');_0x195653['descriptionFactory']['registerDescriptionCallback'](_0x147d56=>{if('formatBlock'!=_0x147d56['type'])return;const {data:_0x59329b}=_0x147d56;if(!_0x59329b)return;if('indentBlock'!=_0x59329b['commandName']&&'outdentBlock'!=_0x59329b['commandName'])return;const _0x6c8f87=_0x147d56['getItems']()[0x0],_0x2aada7=_0x195653['descriptionFactory']['getItemLabel'](_0x6c8f87);return'indentBlock'==_0x59329b['commandName']?{'type':'format','content':c(_0x5c2fa5,'*Indent:*\x20%0',_0x2aada7)}:'outdentBlock'==_0x59329b['commandName']?{'type':'format','content':c(_0x5c2fa5,'*Outdent:*\x20%0',_0x2aada7)}:void 0x0;});}}class ht extends _0x121524{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x121524{['afterInit'](){const _0x59aa17=this['editor'];if(!_0x59aa17['plugins']['has']('LinkEditing'))return;const _0x314fe1=_0x59aa17['plugins']['get']('TrackChangesEditing'),_0x5becd5=_0x59aa17['commands']['get']('link');_0x314fe1['enableDefaultAttributesIntegration']('link'),_0x314fe1['enableDefaultAttributesIntegration']('unlink'),_0x314fe1['registerInlineAttribute']('linkHref');for(const _0x225c9f of _0x5becd5['manualDecorators'])_0x314fe1['registerInlineAttribute'](_0x225c9f['id']),_0x314fe1['descriptionFactory']['registerAttributeLabel'](_0x225c9f['id'],'link\x20('+_0x225c9f['label']['toLowerCase']()+')');_0x314fe1['descriptionFactory']['registerDescriptionCallback'](_0x5576b3=>{if('attribute'!=_0x5576b3['type'])return;const {data:_0x285240}=_0x5576b3;if(!_0x285240||'linkHref'!=_0x285240['key'])return;const _0x28bdbd=_0x285240['newValue'],_0x47f854=_0x59aa17['locale'];return{'type':'format','content':null==_0x28bdbd?c(_0x47f854,'*Remove\x20link*'):c(_0x47f854,'*Set\x20link:*\x20%0','\x22'+_0x28bdbd+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7237c2=this['editor'],_0x47790d=_0x7237c2['locale'];_0x7237c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fbc6f=>{if('formatInline'!=_0x2fbc6f['type'])return;const {data:_0x1c658c}=_0x2fbc6f;if(_0x1c658c){if('link'==_0x1c658c['commandName']){const _0x539b20=_0x1c658c['commandParams'][0x0];return{'type':'format','content':c(_0x47790d,'*Set\x20link:*\x20%0','\x22'+_0x539b20+'\x22')};}return'unlink'==_0x1c658c['commandName']?{'type':'format','content':c(_0x47790d,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x121524{['afterInit'](){const _0x4b8f69=this['editor'],_0x59cc7c=_0x4b8f69['locale'];if(!_0x4b8f69['plugins']['has']('LegacyListEditing'))return;const _0x49cc4c=_0x4b8f69['plugins']['get']('TrackChangesEditing'),_0x1578d3=_0x4b8f69['plugins']['has']('LegacyTodoListEditing');function _0x2182e7(_0x17b969){return()=>{const _0x3cdcfc=_0x4b8f69['model']['document']['selection'],_0x2210dd=_0x4b8f69['commands']['get'](_0x17b969);if(_0x2210dd['value'])return void _0x4b8f69['execute']('paragraph',{});const _0x5ad822=_0x17b969['slice'](0x0,-0x4),_0x2fa40c=function(_0x3742d7,_0x4b7d0a,_0x51e428){let _0x58d63b=Array['from'](_0x3742d7)['filter'](_0x5ca33a=>function(_0x31b8fc,_0x5bdfba){return _0x5bdfba['checkChild'](_0x31b8fc['parent'],'listItem')&&!_0x5bdfba['isObject'](_0x31b8fc);}(_0x5ca33a,_0x51e428));_0x58d63b=_0x58d63b['filter'](_0x217dfb=>!_0x217dfb['is']('element','listItem')||_0x217dfb['getAttribute']('listType')!=_0x4b7d0a);const _0x258d32=new Set();for(const _0x3b47f3 of _0x58d63b)_0x3b47f3['is']('element','listItem')?_0x258d32['add'](Le(_0x3b47f3)):_0x258d32['add'](_0x3b47f3);return Array['from'](_0x258d32);}(_0x3cdcfc['getSelectedBlocks'](),_0x5ad822,_0x4b8f69['model']['schema']);_0x4b8f69['model']['change'](()=>{for(const _0x2cb587 of _0x2fa40c)_0x49cc4c['markBlockFormat'](_0x2cb587,{'commandName':_0x17b969,'commandParams':[{'forceValue':!_0x2210dd['value']}],'formatGroupId':'blockName'},Ee(_0x2cb587));});};}function _0x49c185(_0x50cb96){return()=>{const _0xeab72b=function(_0x1b47a4){let _0x3466a0=Array['from'](_0x1b47a4);const _0x30a43d=_0x3466a0['findIndex'](_0x3d18a4=>'listItem'!=_0x3d18a4['name']);return _0x30a43d>-0x1&&(_0x3466a0=_0x3466a0['slice'](0x0,_0x30a43d)),_0x3466a0;}(_0x4b8f69['model']['document']['selection']['getSelectedBlocks']()),_0x2dbd5c=_0x4b8f69['model']['createRange'](_0x4b8f69['model']['createPositionAt'](_0xeab72b[0x0],'before'),_0x4b8f69['model']['createPositionAt'](_0xeab72b[_0xeab72b['length']-0x1],'end'));_0x4b8f69['model']['change'](()=>{_0x49cc4c['markBlockFormat'](_0x2dbd5c,{'commandName':_0x50cb96,'commandParams':[],'formatGroupId':'listIndent'},function(_0x33dc31){const _0x4b502c=new Set();for(const _0x2e3e80 of _0x33dc31){let _0x14fcf0=_0x2e3e80['nextSibling'];for(;_0x14fcf0&&_0x14fcf0['getAttribute']('listIndent')>_0x2e3e80['getAttribute']('listIndent');)_0x4b502c['add'](_0x14fcf0),_0x14fcf0=_0x14fcf0['nextSibling'];}return Array['from'](_0x4b502c);}(_0xeab72b));});};}_0x49cc4c['enableCommand']('numberedList',_0x2182e7('numberedList')),_0x49cc4c['enableCommand']('bulletedList',_0x2182e7('bulletedList')),_0x1578d3&&_0x49cc4c['enableCommand']('todoList',_0x2182e7('todoList')),_0x49cc4c['enableCommand']('indentList',_0x49c185('indentList')),_0x49cc4c['enableCommand']('outdentList',_0x49c185('outdentList')),_0x1578d3&&_0x49cc4c['enableCommand']('checkTodoList',()=>{const _0x187e7a=_0x4b8f69['commands']['get']('checkTodoList'),_0x242bd3=Array['from'](_0x187e7a['_selectedElements']);_0x242bd3['filter'](_0x6ee24c=>_0x6ee24c['getAttribute']('todoListChecked')!=_0x187e7a['value']),_0x4b8f69['model']['change'](()=>{for(const _0x42e507 of _0x242bd3)_0x49cc4c['markBlockFormat'](_0x42e507,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x187e7a['value']}]});});}),_0x49cc4c['descriptionFactory']['registerElementLabel']('listItem',_0x4e4b63=>c(_0x59cc7c,'ELEMENT_LIST_ITEM',_0x4e4b63)),_0x49cc4c['descriptionFactory']['registerDescriptionCallback'](_0x42f3be=>{if('formatBlock'!=_0x42f3be['type']&&'formatInline'!=_0x42f3be['type'])return;const {data:_0x1571f6}=_0x42f3be;if(_0x1571f6){if('numberedList'==_0x1571f6['commandName']||'bulletedList'==_0x1571f6['commandName']||'todoList'==_0x1571f6['commandName'])switch(_0x1571f6['commandName']['replace']('List','')){case'bulleted':return _0x46184e(c(_0x59cc7c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46184e(c(_0x59cc7c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46184e(c(_0x59cc7c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1571f6['commandName'])return{'type':'format','content':c(_0x59cc7c,'*Indent:*\x20%0',c(_0x59cc7c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1571f6['commandName'])return{'type':'format','content':c(_0x59cc7c,'*Outdent:*\x20%0',c(_0x59cc7c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1571f6['commandName'])return _0x1571f6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x59cc7c,'*Check\x20item*')}:{'type':'format','content':c(_0x59cc7c,'*Uncheck\x20item*')};}function _0x46184e(_0x40c8a0){return{'type':'format','content':c(_0x59cc7c,'*Change\x20to:*\x20%0',_0x40c8a0)};}});}}function Le(_0x80ea17){const _0x387e6b=_0x80ea17['getAttribute']('listIndent');if(0x0==_0x387e6b)return _0x80ea17;let _0x16949f=_0x80ea17;for(;_0x80ea17['previousSibling']&&_0x80ea17['previousSibling']['is']('element','listItem');){const _0x24abc2=_0x80ea17['previousSibling']['getAttribute']('listIndent');if(_0x24abc2==_0x387e6b)_0x16949f=_0x80ea17['previousSibling'];else{if(_0x24abc2<_0x387e6b)break;}_0x80ea17=_0x80ea17['previousSibling'];}return _0x16949f;}function Ee(_0x2669bb){const _0x44b4ef=[];if(_0x2669bb['is']('element','listItem')&&_0x2669bb['getAttribute']('listIndent')>0x0){let _0x142435=_0x2669bb['nextSibling'];for(;_0x142435&&'listItem'==_0x142435['name']&&_0x142435['getAttribute']('listIndent')==_0x2669bb['getAttribute']('listIndent');)_0x44b4ef['push'](_0x142435),_0x142435=_0x142435['nextSibling'];}return _0x44b4ef;}class Q extends _0x121524{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x41c7e2=this['editor']['config']['get']('list.properties'),_0x2a1b5e=this['editor']['plugins']['get']('TrackChangesEditing');_0x41c7e2['styles']&&_0x2a1b5e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x41c7e2['reversed']&&_0x2a1b5e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x41c7e2['startIndex']&&_0x2a1b5e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2a1b5e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x6663f3,_0x3b782f={}){const _0x14b872=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bacd5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x14b872['markMultiRangeBlockFormat'](_0x4bacd5,{'commandName':'listStyle','commandParams':[{'type':_0x3b782f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x134c3a,_0x1980b6={}){const _0x34fc55=this['editor']['plugins']['get']('TrackChangesEditing'),_0x541ae0=this['_getSuggestionBlocks'](_0x515300=>_0x515300['is']('element','listItem')&&'numbered'===_0x515300['getAttribute']('listType'));if(_0x541ae0['length']<0x1)return;const _0xd3b410=_0x541ae0['map'](_0x254697=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x254697,'before'),this['editor']['model']['createPositionAt'](_0x254697,0x0)));this['editor']['model']['change'](()=>{_0x34fc55['markMultiRangeBlockFormat'](_0xd3b410,{'commandName':'listReversed','commandParams':[{'reversed':_0x1980b6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xf84e48,_0x2600fd={}){const _0xe58839=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3def8d=this['_getSuggestionBlocks'](_0x20376c=>_0x20376c['is']('element','listItem')&&'numbered'===_0x20376c['getAttribute']('listType'));if(_0x3def8d['length']<0x1)return;const _0x22f89d=_0x3def8d['map'](_0x4e8244=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e8244,'before'),this['editor']['model']['createPositionAt'](_0x4e8244,0x0)));this['editor']['model']['change'](()=>{_0xe58839['markMultiRangeBlockFormat'](_0x22f89d,{'commandName':'listStart','commandParams':[{'startIndex':_0x2600fd['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x37f42b){if('formatBlock'!=_0x37f42b['type']&&'formatInline'!=_0x37f42b['type'])return;const _0x292072=this['editor']['locale'],{data:_0xe20fd}=_0x37f42b;if(!_0xe20fd)return;let _0x3aada5,_0x250876;switch(_0xe20fd['commandName']){case'listStyle':_0x3aada5='*Change\x20to:*\x20%0',_0x250876={'type':'format','content':c(_0x292072,_0x3aada5,c(_0x292072,this['_getTranslationKeyForListStyle'](_0xe20fd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3aada5=_0xe20fd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x250876={'type':'format','content':c(_0x292072,_0x3aada5)};break;case'listStart':_0x3aada5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x250876={'type':'format','content':c(_0x292072,_0x3aada5,_0xe20fd['commandParams'][0x0]['startIndex'])};}return _0x250876;}['_getSuggestionBlocksForListStyle'](){const _0x3c20ca=this['editor']['plugins']['get']('LegacyListUtils');let _0x592d3a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x592d3a[0x0]?.['is']('element','listItem')&&_0x592d3a['unshift'](..._0x3c20ca['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x592d3a[_0x592d3a['length']-0x1]?.['is']('element','listItem')&&_0x592d3a['push'](..._0x3c20ca['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x592d3a=[...new Set(_0x592d3a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x592d3a=_0x592d3a['filter'](_0x99e9a0=>_0x99e9a0['is']('element','listItem'))),_0x592d3a;}['_getSuggestionBlocks'](_0x21e98d){const _0x2aca06=this['editor']['plugins']['get']('LegacyListUtils');let _0x52298d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x21e98d)['map'](_0x140149=>{const _0x458e9c=this['editor']['model']['createPositionAt'](_0x140149,0x0);return[..._0x2aca06['getSiblingNodes'](_0x458e9c,'backward'),..._0x2aca06['getSiblingNodes'](_0x458e9c,'forward')];})['flat']();return _0x52298d=[...new Set(_0x52298d)],_0x52298d;}['_getTranslationKeyForListStyle'](_0x3bf8d2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3bf8d2)||'default')['toUpperCase']()+'_LIST_'+_0x3bf8d2['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x121524{['afterInit'](){const _0x40757f=this['editor'];if(!_0x40757f['plugins']['has']('MediaEmbedEditing'))return;const _0x1bbf33=_0x40757f['plugins']['get']('TrackChangesEditing'),_0x16d5e7=_0x40757f['locale'];_0x1bbf33['enableCommand']('mediaEmbed'),_0x1bbf33['descriptionFactory']['registerElementLabel']('media',_0x2f23e2=>c(_0x16d5e7,'ELEMENT_MEDIA',_0x2f23e2)),_0x40757f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3ebe8b,{writer:_0x1d1f51,options:_0xb3ab2d})=>{if(_0xb3ab2d['showSuggestionHighlights'])return _0x1d1f51['createEmptyElement']('div');},'converterPriority':'high'}),_0x40757f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x47a603,_0x35721d,_0x4973e2)=>{_0x4973e2['options']['showSuggestionHighlights']&&_0x47a603['stop']();},{'priority':'high'});}}class pt extends _0x121524{['afterInit'](){const _0x2cc2e7=this['editor'];_0x2cc2e7['plugins']['has']('MentionEditing')&&_0x2cc2e7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x121524{['afterInit'](){const _0x265464=this['editor'];if(!_0x265464['plugins']['has']('MergeFieldsEditing'))return;const _0x337e26=_0x265464['plugins']['get']('TrackChangesEditing'),_0x3712f8=_0x265464['locale'];_0x337e26['enableCommand']('insertMergeField'),_0x337e26['enableCommand']('insertMergeFieldBlock'),_0x337e26['enableCommand']('insertMergeFieldImage'),_0x337e26['descriptionFactory']['registerElementLabel']('mergeField',_0x297d0b=>c(_0x3712f8,'ELEMENT_MERGE_FIELD',_0x297d0b)),_0x337e26['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x111818=>c(_0x3712f8,'ELEMENT_MERGE_FIELD',_0x111818)),_0x337e26['descriptionFactory']['registerDescriptionCallback'](_0x229b5e=>{if('insertion'!=_0x229b5e['type']&&'deletion'!=_0x229b5e['type'])return;const _0x2ea8e8=_0x229b5e['getContainedElement']();if(null==_0x2ea8e8)return;const _0x42f9bf=_0x265464['plugins']['get']('MergeFieldsEditing');let _0x15f6ed;switch(_0x42f9bf['getMergeFieldType'](_0x2ea8e8)){case null:return;case'image':{const _0xec5a51=_0x42f9bf['unwrapAffixes'](_0x2ea8e8['getAttribute']('src'));_0x15f6ed=_0x42f9bf['getLabel'](_0xec5a51)||_0xec5a51;break;}default:{const _0x299866=_0x2ea8e8['getAttribute']('id');_0x15f6ed=_0x42f9bf['getLabel'](_0x299866)||_0x299866;break;}}return'insertion'==_0x229b5e['type']?{'type':'insertion','content':c(_0x3712f8,'*Insert:*\x20%0','\x22'+_0x15f6ed+'\x22\x20'+c(_0x3712f8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3712f8,'*Remove:*\x20%0','\x22'+_0x15f6ed+'\x22\x20'+c(_0x3712f8,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x121524{['afterInit'](){const _0x3f7d8d=this['editor'],_0x1e66cd=_0x3f7d8d['plugins']['get']('TrackChangesEditing');_0x3f7d8d['plugins']['has']('MultiLevelList')&&(_0x1e66cd['enableDefaultAttributesIntegration']('multiLevelList'),_0x1e66cd['registerBlockAttribute']('listMarkerStyle'),_0x1e66cd['descriptionFactory']['registerDescriptionCallback'](_0x4a1a0b=>this['handleDescriptions'](_0x4a1a0b)));}['handleDescriptions'](_0x64f6ac){const _0x5c7073=this['editor']['locale'],{data:_0xab1e17}=_0x64f6ac,_0x580cae={'type':'format','content':''};if(_0xab1e17&&'listMarkerStyle'==_0xab1e17['key']){if(!_0xab1e17['oldValue'])return{'type':'format','content':c(_0x5c7073,'*Set\x20format:*\x20%0',c(_0x5c7073,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xab1e17['newValue']+')'};if(!_0xab1e17['newValue']){let _0x28b5ee=_0x64f6ac['head'];for(;_0x28b5ee;){if(_0x28b5ee['data']&&'listType'==_0x28b5ee['data']['key']&&_0x28b5ee['data']['newValue'])return _0x580cae;_0x28b5ee=_0x28b5ee['next'];}return{'type':'format','content':c(_0x5c7073,'*Remove\x20format:*\x20%0',c(_0x5c7073,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xab1e17['oldValue']+')'};}}}}class bt extends _0x121524{['afterInit'](){const _0x420ed8=this['editor'];if(!_0x420ed8['plugins']['has']('PageBreakEditing'))return;_0x420ed8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x363a8e=_0x420ed8['plugins']['get']('TrackChangesEditing'),_0xa39283=_0x420ed8['locale'];_0x363a8e['descriptionFactory']['registerElementLabel']('pageBreak',_0x624e5a=>c(_0xa39283,'ELEMENT_PAGE_BREAK',_0x624e5a));}}class yt extends _0x121524{['afterInit'](){const _0x440cb7=this['editor'];if(!_0x440cb7['plugins']['has']('Paragraph'))return;const _0x1486b1=_0x440cb7['locale'],_0x40cdbe=_0x440cb7['plugins']['get']('TrackChangesEditing');_0x40cdbe['descriptionFactory']['registerElementLabel']('paragraph',_0x7c243a=>c(_0x1486b1,'ELEMENT_PARAGRAPH',_0x7c243a)),_0x40cdbe['enableDefaultAttributesIntegration']('paragraph'),_0x40cdbe['enableCommand']('insertParagraph'),_0x440cb7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x440cb7),{'priority':'highest'}),_0x440cb7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x384936,_0x491699,_0x230e33)=>{_0x230e33['options']['showSuggestionHighlights']&&nr(_0x440cb7,{'showActiveMarker':!0x1})(_0x384936,_0x491699,_0x230e33);},{'priority':'highest'});const _0x4ec80e=_0x40cdbe['descriptionFactory'];_0x4ec80e['registerDescriptionCallback'](_0x40fab6=>{if('insertion'!==_0x40fab6['type'])return;const {start:_0x4153aa,end:_0x3c1ba6}=_0x40fab6['getFirstRange']();if(!_0x4153aa['isTouching'](_0x3c1ba6)||!_0x4153aa['nodeAfter'])return;const _0x474ab0=_0x440cb7['model']['schema'],_0x3a2e14=_0x4153aa['nodeAfter'];return _0x474ab0['isBlock'](_0x3a2e14)&&!_0x474ab0['isLimit'](_0x3a2e14)&&_0x474ab0['checkChild'](_0x3a2e14,'$text')?{'type':'insertion','content':c(_0x1486b1,'*Insert:*\x20%0',_0x4ec80e['getItemLabel'](_0x3a2e14,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24d4da=this['editor'],_0x562770=_0x24d4da['locale'];_0x24d4da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcec340=>{if('formatBlock'!=_0xcec340['type'])return;const {data:_0x1c4f1a}=_0xcec340;return _0x1c4f1a&&'paragraph'==_0x1c4f1a['commandName']?{'type':'format','content':c(_0x562770,'*Change\x20to:*\x20%0',c(_0x562770,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x353aed,{showActiveMarker:_0x5f2e8e=!0x0}={}){return(_0x5ce50a,_0x2e827e,_0x285626)=>{const _0x5bf85e=_0x353aed['plugins']['get']('TrackChangesEditing'),_0x3ef01e=_0x2e827e['markerRange']['start'],_0x548b82=_0x2e827e['markerRange']['end'],_0x3c0dc9=_0x353aed['model']['schema'];if(!_0x3ef01e['isTouching'](_0x548b82)||!_0x3ef01e['nodeAfter'])return;const _0x53bc88=_0x3ef01e['nodeAfter'];if(_0x3c0dc9['isBlock'](_0x53bc88)&&!_0x3c0dc9['isLimit'](_0x53bc88)&&_0x3c0dc9['checkChild'](_0x53bc88,'$text')){if(!_0x285626['consumable']['consume'](_0x2e827e['markerRange'],_0x5ce50a['name']))return;const {id:_0x4ffc99,authorId:_0x28bdc3}=_0x5bf85e['_splitMarkerName'](_0x2e827e['markerName']),_0x4a1658=_0x285626['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4ffc99,'data-author-id':_0x28bdc3}),_0x4b694d=_0x285626['mapper']['toViewPosition'](_0x548b82);_0x5f2e8e&&_0x5bf85e['activeMarkers']['includes'](_0x2e827e['markerName'])&&_0x285626['writer']['addClass']('ck-suggestion-marker--active',_0x4a1658),_0x285626['writer']['insert'](_0x4b694d,_0x4a1658),_0x285626['mapper']['bindElementToMarker'](_0x4a1658,_0x2e827e['markerName']);}};}class St extends _0x121524{['afterInit'](){const _0x1c1446=this['editor'];_0x1c1446['commands']['get']('replaceSource')&&_0x1c1446['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x121524{['afterInit'](){const _0x21a072=this['editor'];if(!_0x21a072['plugins']['has']('RemoveFormatEditing'))return;_0x21a072['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306645=this['editor'];_0x306645['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x355ce8=>{if('formatBlock'!=_0x355ce8['type']&&'formatInline'!=_0x355ce8['type'])return;const {data:_0x399859}=_0x355ce8;return _0x399859&&'removeFormat'==_0x399859['commandName']?{'type':'format','content':c(_0x306645['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x121524{['afterInit'](){const _0x482530=this['editor'];if(!_0x482530['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x454edd=_0x482530['plugins']['get']('TrackChangesEditing');_0x454edd['enableCommand']('goToPreviousRestrictedEditingException'),_0x454edd['enableCommand']('goToNextRestrictedEditingException');const _0x237888=_0x482530['plugins']['get']('RestrictedEditingModeEditing');_0x237888['enableCommand']('trackChanges'),_0x237888['enableCommand']('acceptSuggestion'),_0x237888['enableCommand']('discardSuggestion'),_0x237888['enableCommand']('acceptAllSuggestions'),_0x237888['enableCommand']('discardAllSuggestions'),_0x237888['enableCommand']('acceptSelectedSuggestions'),_0x237888['enableCommand']('discardSelectedSuggestions');}}class At extends _0x121524{['afterInit'](){const _0x78a818=this['editor'];if(!_0x78a818['plugins']['has']('ShiftEnter'))return;const _0x20526f=_0x78a818['plugins']['get']('TrackChangesEditing');_0x20526f['enableCommand']('shiftEnter'),_0x78a818['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x78a818),{'priority':'high'}),_0x78a818['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x78a818),{'priority':'high'}),_0x78a818['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x32dcc5,_0x1aa789,_0x2fc332)=>{_0x2fc332['options']['showSuggestionHighlights']&&je(_0x78a818,{'showActiveMarker':!0x1})(_0x32dcc5,_0x1aa789,_0x2fc332);}),_0x20526f['descriptionFactory']['registerElementLabel']('softBreak',_0x27528d=>c(_0x78a818['locale'],'ELEMENT_LINE_BREAK',_0x27528d));}}function je(_0x4c32de,{showActiveMarker:_0x47a0f4=!0x0}={}){return(_0x589dc0,_0x527aac,_0x200ddd)=>{const _0x5f20fb=_0x4c32de['plugins']['get']('TrackChangesEditing');if(!_0x200ddd['consumable']['test'](_0x527aac['markerRange'],_0x589dc0['name']))return;const _0x265c4a=_0x4c32de['model'];for(const _0x4fcb87 of _0x527aac['markerRange']['getItems']()){if(!_0x4fcb87['is']('element','softBreak'))continue;const _0xa96dc7='deletion'==_0x527aac['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2a792f,authorId:_0x210efd}=_0x5f20fb['_splitMarkerName'](_0x527aac['markerName']),_0x2c07ca=_0x200ddd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xa96dc7,'data-suggestion':_0x2a792f,'data-author-id':_0x210efd}),_0x5c27db=_0x200ddd['mapper']['toViewPosition'](_0x265c4a['createPositionBefore'](_0x4fcb87));_0x47a0f4&&_0x5f20fb['activeMarkers']['includes'](_0x527aac['markerName'])&&_0x200ddd['writer']['addClass']('ck-suggestion-marker--active',_0x2c07ca),_0x200ddd['writer']['insert'](_0x5c27db,_0x2c07ca),_0x200ddd['mapper']['bindElementToMarker'](_0x2c07ca,_0x527aac['markerName']);}};}class _t extends _0x121524{['afterInit'](){const _0x486525=this['editor'],_0x5b90f9=_0x486525['model'],_0x1dec84=_0x486525['locale'];if(!_0x486525['plugins']['has']('StandardEditingModeEditing'))return;const _0x2a5d32=_0x486525['plugins']['get']('TrackChangesEditing'),_0x52f169='restrictedEditingException',_0x2864d2=_0x486525['commands']['get'](_0x52f169);_0x2a5d32['enableCommand'](_0x52f169,(_0x52791d,_0x4f4559={})=>{const _0x256176=_0x5b90f9['document']['selection'];if(_0x256176['isCollapsed'])return void _0x52791d(_0x4f4559);const _0x4dca7d=void 0x0!==_0x4f4559['forceValue']?_0x4f4559['forceValue']:!_0x2864d2['value'];_0x5b90f9['change'](()=>{const _0x343c7b=Array['from'](_0x256176['getRanges']());for(const _0x5c78e8 of _0x343c7b){const _0xcf8012=_0x4dca7d?[_0x5c78e8]:io(_0x52f169,_0x5c78e8,_0x5b90f9);for(const _0x46e955 of _0xcf8012)_0x2a5d32['markInlineFormat'](_0x46e955,{'commandName':_0x52f169,'commandParams':[{'forceValue':_0x4dca7d}]});}});}),_0x2a5d32['descriptionFactory']['registerDescriptionCallback'](_0x1fbe39=>{if('formatBlock'!=_0x1fbe39['type']&&'formatInline'!=_0x1fbe39['type'])return;const {data:_0x2ed36c}=_0x1fbe39;return _0x2ed36c&&_0x2ed36c['commandName']==_0x52f169?_0x2ed36c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1dec84,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1dec84,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x121524{['afterInit'](){const _0x4c20fb=this['editor'];if(!_0x4c20fb['plugins']['has']('Style')||!_0x4c20fb['plugins']['has']('DataSchema'))return;const _0x3a2e13=_0x4c20fb['plugins']['get']('TrackChangesEditing'),_0x29dab3=_0x4c20fb['locale'],_0x131db8=_0x4c20fb['config']['get']('style')||{},_0x39c9c8=_0x4c20fb['plugins']['get']('GeneralHtmlSupport'),_0x697cf0=_0x4c20fb['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4c20fb['plugins']['get']('DataSchema'),_0x131db8['definitions']);_0x3a2e13['enableDefaultAttributesIntegration']('style');const _0x443724=new Set();for(const _0x1a1d34 of _0x697cf0['block']){const _0x41d18b=_0x39c9c8['getGhsAttributeNameForElement'](_0x1a1d34['element']);_0x443724['add'](_0x41d18b);}const _0x2d9452=new Set();for(const _0x1102b1 of _0x697cf0['inline']){const _0x28f342=_0x39c9c8['getGhsAttributeNameForElement'](_0x1102b1['element']);_0x2d9452['add'](_0x28f342);for(const _0x55cbcb of _0x1102b1['ghsAttributes'])_0x2d9452['add'](_0x55cbcb);}for(const _0x3272d4 of _0x443724)_0x3a2e13['registerBlockAttribute'](_0x3272d4),_0x3a2e13['descriptionFactory']['registerAttributeLabel'](_0x3272d4,c(_0x29dab3,'FORMAT_STYLE'));for(const _0x36b087 of _0x2d9452)_0x3a2e13['registerInlineAttribute'](_0x36b087),_0x3a2e13['descriptionFactory']['registerAttributeLabel'](_0x36b087,c(_0x29dab3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20fd69=this['editor'],_0x17d651=_0x20fd69['locale'];_0x20fd69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1db7=>{if('formatBlock'!=_0x5e1db7['type']&&'formatInline'!=_0x5e1db7['type'])return;const {data:_0x4e7a57}=_0x5e1db7;return _0x4e7a57&&'style'===_0x4e7a57['commandName']?_0x4e7a57['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x17d651,'*Set\x20format:*\x20%0',_0x4e7a57['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x17d651,'*Remove\x20format:*\x20%0',_0x4e7a57['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x121524{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5f5246){super(_0x5f5246),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1ac6fa=this['editor'],_0x14eb45=_0x1ac6fa['model']['document']['selection'];if(!_0x1ac6fa['plugins']['has']('TableEditing'))return;const _0x2c5924=_0x1ac6fa['locale'],_0x4de84a=_0x1ac6fa['plugins']['get']('TrackChangesEditing'),_0x5e8f20=_0x1ac6fa['plugins']['get']('TableUtils');_0x4de84a['descriptionFactory']['registerElementLabel']('table',_0x45e5d1=>c(_0x2c5924,'ELEMENT_TABLE',_0x45e5d1)),this['_setupColumnsRowsFixing'](),_0x4de84a['enableCommand']('insertTable'),_0x4de84a['enableCommand']('selectTableRow'),_0x4de84a['enableCommand']('selectTableColumn');for(const _0x246bb7 of['insertTableRowAbove','insertTableRowBelow']){const _0x24a9e7=_0x1ac6fa['commands']['get'](_0x246bb7);_0x4de84a['enableCommand'](_0x246bb7,_0x3fa322=>{_0x1ac6fa['model']['change'](_0x60aca8=>{_0x3fa322();const _0x4c3cfb='above'===_0x24a9e7['order'],_0x344850=_0x5e8f20['getSelectionAffectedTableCells'](_0x14eb45),_0x4ad66e=_0x5e8f20['getRowIndexes'](_0x344850),_0x2e8279=_0x4c3cfb?_0x4ad66e['first']-0x1:_0x4ad66e['last']+0x1,_0x265b2b=_0x344850[0x0]['findAncestor']('table'),_0x4989ba=_0x5e8f20['createTableWalker'](_0x265b2b,{'startRow':_0x2e8279,'endRow':_0x2e8279}),_0x28b7b1=Array['from'](_0x4989ba)['map'](_0x41e034=>_0x60aca8['createRangeOn'](_0x41e034['cell']));_0x4de84a['markMultiRangeInsertion'](_0x28b7b1,'tableRow');});});}for(const _0x344241 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2f46ad=_0x1ac6fa['commands']['get'](_0x344241);_0x4de84a['enableCommand'](_0x344241,_0x3d9e81=>{_0x1ac6fa['model']['change'](_0x51f4cf=>{_0x3d9e81();const _0x29faee='left'===_0x2f46ad['order'],_0x4deee9=_0x5e8f20['getSelectionAffectedTableCells'](_0x14eb45),_0x33d64d=_0x5e8f20['getColumnIndexes'](_0x4deee9),_0x435e92=_0x29faee?_0x33d64d['first']-0x1:_0x33d64d['last']+0x1,_0x4f3db6=_0x4deee9[0x0]['findAncestor']('table'),_0x5bc090=_0x5e8f20['createTableWalker'](_0x4f3db6,{'startRow':0x0,'column':_0x435e92,'includeAllSlots':!0x1}),_0x1723ff=Array['from'](_0x5bc090)['map'](_0x42c8d3=>_0x51f4cf['createRangeOn'](_0x42c8d3['cell']));_0x4de84a['markMultiRangeInsertion'](_0x1723ff,'tableColumn');});});}for(const _0x1e29fd of['removeTableRow','removeTableColumn']){const _0x96c987=_0x1e29fd['substr'](0xb),_0x355424=_0x96c987['toLowerCase'](),_0x5e005e=_0x355424['substr'](0x0,0x3)+'span',_0x2b4712='table'+_0x96c987,_0xf11f66='min'+_0x96c987,_0x2794fe='max'+_0x96c987;_0x4de84a['enableCommand'](_0x1e29fd,()=>{_0x1ac6fa['model']['change'](_0x13f4c0=>{const _0x810fd0=_0x5e8f20['getSelectionAffectedTableCells'](_0x14eb45),_0x1d248d=_0x810fd0[0x0]['findAncestor']('table');let _0x43cac6;if('removeTableRow'==_0x1e29fd){const _0x752d59=_0x5e8f20['getRowIndexes'](_0x810fd0);_0x43cac6={'startRow':_0x752d59['first'],'endRow':_0x752d59['last'],'includeAllSlots':!0x0};}else{const _0x167272=_0x5e8f20['getColumnIndexes'](_0x810fd0);_0x43cac6={'startColumn':_0x167272['first'],'endColumn':_0x167272['last'],'includeAllSlots':!0x0};}const _0xb4863f=_0x5e8f20['createTableWalker'](_0x1d248d,_0x43cac6),_0x52c254=Array['from'](_0xb4863f)['map'](({cell:_0x394399})=>_0x394399),_0x11bef1=xe(_0x52c254['filter'](_0x1222c6=>_0x1222c6['hasAttribute'](_0x5e005e))),_0x59a43b=xe(_0x52c254['filter'](_0x5bb575=>!_0x5bb575['hasAttribute'](_0x5e005e)))['map'](_0x103dbe=>_0x13f4c0['createRangeOn'](_0x103dbe)),_0x21c7ef=_0x4de84a['markMultiRangeDeletion'](_0x59a43b,_0x2b4712);if(_0x21c7ef&&('tableRow'==_0x21c7ef['subType']||'tableColumn'==_0x21c7ef['subType'])){const _0x208ebe=this['_getSuggestionCoords'](_0x21c7ef);for(const _0x22c521 of _0x11bef1){const _0x2a9fcb=_0x13f4c0['createRangeOn'](_0x22c521),_0x4f8b0d=_0x5e8f20['getCellLocation'](_0x22c521),_0x428b56=_0x22c521['getAttribute'](_0x5e005e)-0x1,_0x497152=_0x208ebe[_0xf11f66],_0x33f43c=_0x208ebe[_0x2794fe];_0x497152<=_0x4f8b0d[_0x355424]&&_0x4f8b0d[_0x355424]+_0x428b56<=_0x33f43c&&_0x21c7ef['addRange'](_0x2a9fcb);}}});});}function _0x612739(_0x1321da){const _0x2a4fd9=Array['from'](_0x14eb45['getRanges']())['map'](_0x23cc61=>_0xf8fd8e['fromRange'](_0x23cc61));_0x1ac6fa['model']['change'](_0x4b13cb=>{const _0x118b2d=_0x4b13cb['batch'];_0x1321da=_0x1321da['filter'](_0x25d9a9=>'$graveyard'!=_0x25d9a9['root']['rootName']),_0x4b13cb['setSelection'](_0x1321da),_0x1ac6fa['commands']['get']('removeTableRow')['refresh'](),_0x1ac6fa['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1ac6fa['model']['enqueueChange'](()=>{_0x1ac6fa['model']['enqueueChange'](_0x118b2d,_0x3d7362=>{const _0x432eaf=_0x2a4fd9['filter'](_0x50ace4=>'$graveyard'!=_0x50ace4['root']['rootName']);_0x432eaf['length']>0x0&&_0x3d7362['setSelection'](_0x432eaf);for(const _0x2acbfb of _0x2a4fd9)_0x2acbfb['detach']();});});});}function _0x3df8e3(_0x353eee){_0x1ac6fa['model']['change'](_0x33a075=>{const _0x51d603=Array['from'](_0x14eb45['getRanges']())['map'](_0x5e4f4d=>_0xf8fd8e['fromRange'](_0x5e4f4d)),_0x4a3bc2=[];for(const _0x3397f2 of _0x353eee)for(const _0x5ffab0 of _0x3397f2['getItems']({'shallow':!0x0}))_0x4a3bc2['push'](_0x5ffab0);for(const _0x1d5abb of _0x4a3bc2)'$graveyard'!=_0x1d5abb['root']['rootName']&&(_0x33a075['setSelection'](_0x33a075['createPositionAt'](_0x1d5abb,0x0)),_0x1ac6fa['commands']['get']('removeTableColumn')['refresh'](),_0x1ac6fa['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5d2ce3=_0x51d603['filter'](_0x470b90=>'$graveyard'!=_0x470b90['root']['rootName']);_0x5d2ce3['length']>0x0&&_0x33a075['setSelection'](_0x5d2ce3);for(const _0x187b5e of _0x51d603)_0x187b5e['detach']();});}function _0x16698a(_0x1e70ca,_0x36482b){return _0x36482b['every'](_0xf26210=>_0x1e70ca['some'](_0x734679=>_0x734679['end']['isEqual'](_0xf26210['start'])||_0xf26210['end']['isEqual'](_0x734679['start'])));}function _0x438540(_0x159fc8,_0x33c2ff){return!_0x159fc8['some'](_0x2b5e01=>_0x33c2ff['some'](_0x365df8=>_0x2b5e01['isIntersecting'](_0x365df8)))&&_0x159fc8['some'](_0x4b35e1=>_0x33c2ff['some'](_0x4071ef=>_0x4b35e1['end']['isTouching'](_0x4071ef['start'])));}_0x1ac6fa['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cdbc3,_0x172e10,_0x4088e4)=>{if(!_0x4088e4['options']['showSuggestionHighlights'])return;const _0x189775=_0x172e10['item'];if(!_0x189775||!_0x189775['is']('element','tableCell'))return;const _0x5f26bd=_0x4088e4['mapper']['toViewElement'](_0x189775);if(_0x5f26bd){const {id:_0x4b6728,authorId:_0x4ac999}=_0x4de84a['_splitMarkerName'](_0x172e10['markerName']);_0x47633e(_0x5f26bd,_0x4088e4['writer'],(_0x41889f,_0x55c86c,_0x22804a)=>{_0x22804a['addClass'](_0x27a1f0(_0x55c86c['classes']),_0x41889f),_0x22804a['setAttribute']('data-suggestion-id',_0x4b6728,_0x41889f),_0x22804a['setAttribute']('data-author-id',_0x4ac999,_0x41889f);},(_0xdc7e16,_0x347aab,_0x357b32)=>{_0x357b32['removeClass'](_0x27a1f0(_0x347aab['classes']),_0xdc7e16),_0x357b32['removeAttribute']('data-suggestion-id',_0xdc7e16),_0x357b32['removeAttribute']('data-author-id',_0xdc7e16);});}},{'priority':'highest'}),_0x4de84a['descriptionFactory']['registerDescriptionCallback'](_0x34a97d=>{if('insertion'!=_0x34a97d['type']&&'deletion'!=_0x34a97d['type'])return;const _0x3f994f=_0x34a97d['getContainedElement']();if(null!=_0x3f994f&&_0x3f994f['is']('element','table')){if('insertion'==_0x34a97d['type']){const _0x4ca167=_0x34a97d['getItems']()['filter'](_0x37d619=>_0x37d619['is']('$textProxy'))['map'](_0x21b5c9=>_0x21b5c9['data']);if(_0x4ca167['length'])return{'type':'insertion','content':c(_0x2c5924,'*Insert:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ca167['join']('\x20')+'\x22'))};}if('deletion'==_0x34a97d['type']){const _0x5a5a78=_0x34a97d['getItems']()['filter'](_0x53cd46=>_0x53cd46['is']('$textProxy'))['map'](_0x560c81=>_0x560c81['data']);if(_0x5a5a78['length'])return{'type':'deletion','content':c(_0x2c5924,'*Remove:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a5a78['join']('\x20')+'\x22'))};}}}),_0x4de84a['descriptionFactory']['registerDescriptionCallback'](_0x5e4aca=>{if('tableRow'==_0x5e4aca['subType']){const _0x40cf76=_0x5e4aca['getItems']()['filter'](_0x425541=>_0x425541['is']('$textProxy'))['map'](_0x315904=>_0x315904['data']),_0x3fa884=this['_getSuggestionCoords'](_0x5e4aca),_0x7ab532=_0x3fa884['maxRow']-_0x3fa884['minRow']+0x1;if('insertion'==_0x5e4aca['type'])return _0x40cf76['length']?{'type':'insertion','content':c(_0x2c5924,'*Insert:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x7ab532,'\x22'+_0x40cf76['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2c5924,'*Insert:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_ROW',_0x7ab532))};if('deletion'==_0x5e4aca['type'])return _0x40cf76['length']?{'type':'deletion','content':c(_0x2c5924,'*Remove:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x7ab532,'\x22'+_0x40cf76['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2c5924,'*Remove:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_ROW',_0x7ab532))};}if('tableColumn'==_0x5e4aca['subType']){const _0x22f658=_0x5e4aca['getItems']()['filter'](_0x2ee117=>_0x2ee117['is']('$textProxy'))['map'](_0x16be57=>_0x16be57['data']),_0x1b8455=this['_getSuggestionCoords'](_0x5e4aca),_0x262f70=_0x1b8455['maxColumn']-_0x1b8455['minColumn']+0x1;if('insertion'==_0x5e4aca['type'])return _0x22f658['length']?{'type':'insertion','content':c(_0x2c5924,'*Insert:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x262f70,'\x22'+_0x22f658['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2c5924,'*Insert:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_COLUMN',_0x262f70))};if('deletion'==_0x5e4aca['type'])return _0x22f658['length']?{'type':'deletion','content':c(_0x2c5924,'*Remove:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x262f70,'\x22'+_0x22f658['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2c5924,'*Remove:*\x20%0',c(_0x2c5924,'ELEMENT_TABLE_COLUMN',_0x262f70))};}}),_0x4de84a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x612739),_0x4de84a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x612739),_0x4de84a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3df8e3),_0x4de84a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3df8e3),_0x4de84a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x16698a),_0x4de84a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x16698a),_0x4de84a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x438540),_0x4de84a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x438540);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4157ba=this['editor'],_0x1c21a2=_0x4157ba['model']['document']['selection'];return(_0x56825e,_0x4da825)=>{_0x4157ba['model']['change'](_0x81a35a=>{const {commandName:_0x3fb02a,commandParams:_0x2f5871}=_0x4da825;let _0x328cc0=_0x56825e[0x0]['end']['nodeBefore'];_0x2f5871&&_0x2f5871[0x0]&&!0x1===_0x2f5871[0x0]['forceValue']&&(_0x328cc0=_0x56825e[0x0]['start']['nodeAfter']);const _0x437953=_0x81a35a['createRangeIn'](_0x328cc0);if('$graveyard'==_0x437953['root']['rootName'])return;const _0x333d31=Array['from'](_0x1c21a2['getRanges']())['map'](_0x259c4b=>_0xf8fd8e['fromRange'](_0x259c4b));_0x81a35a['setSelection'](_0x437953),_0x4157ba['commands']['get'](_0x3fb02a)['refresh'](),_0x2f5871['push']({'forceDefaultExecution':!0x0}),_0x4157ba['execute'](_0x3fb02a,..._0x2f5871);const _0x10cf2a=_0x333d31['filter'](_0x2c1596=>'$graveyard'!=_0x2c1596['root']['rootName']);_0x10cf2a['length']>0x0&&_0x81a35a['setSelection'](_0x10cf2a);for(const _0x1977ba of _0x333d31)_0x1977ba['detach']();});};}['_getCoordsForCells'](_0x172cc8){const _0x1b0d48=this['editor']['plugins']['get']('TableUtils');let _0x1300cf=Number['MAX_SAFE_INTEGER'],_0x5df975=Number['MIN_SAFE_INTEGER'],_0x2680df=Number['MAX_SAFE_INTEGER'],_0x288ee8=Number['MIN_SAFE_INTEGER'];for(const _0x4042de of _0x172cc8){if('$graveyard'==_0x4042de['root']['rootName'])continue;const {row:_0x27e2c8,column:_0x4ce7b7}=_0x1b0d48['getCellLocation'](_0x4042de),_0x3a9c44=_0x4042de['hasAttribute']('rowspan')?_0x4042de['getAttribute']('rowspan')-0x1:0x0,_0x249093=_0x4042de['hasAttribute']('colspan')?_0x4042de['getAttribute']('colspan')-0x1:0x0;_0x1300cf=_0x27e2c8<_0x1300cf?_0x27e2c8:_0x1300cf,_0x5df975=_0x27e2c8+_0x3a9c44>_0x5df975?_0x27e2c8+_0x3a9c44:_0x5df975,_0x2680df=_0x4ce7b7<_0x2680df?_0x4ce7b7:_0x2680df,_0x288ee8=_0x4ce7b7+_0x249093>_0x288ee8?_0x4ce7b7+_0x249093:_0x288ee8;}return{'minRow':_0x1300cf,'maxRow':_0x5df975,'minColumn':_0x2680df,'maxColumn':_0x288ee8};}['_setupColumnsRowsFixing'](){const _0x31fa3b=this['editor'],_0x85c830=_0x31fa3b['plugins']['get']('TrackChangesEditing'),_0x45f4b8=_0x31fa3b['plugins']['get']('TableUtils');_0x31fa3b['model']['document']['on']('change:data',()=>{const _0x589a62=Array['from'](_0x31fa3b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc8fd34,data:_0x226998}of _0x589a62){const {group:_0x3bd835,id:_0x5d08a0,subType:_0x80c624}=_0x85c830['_splitMarkerName'](_0xc8fd34);if('suggestion'!=_0x3bd835)continue;if(null!=_0x226998['oldRange'])continue;const _0x414fb8=_0x85c830['getSuggestion'](_0x5d08a0);this['_tablePostFixingSubtypes']['includes'](_0x80c624)&&this['_tableSuggestions']['add'](_0x414fb8);}},{'priority':'low'});const _0xdbd83d=(_0x377b77,_0x4062b4)=>{let _0x504e89=!0x1;const _0x37bfb5=_0x4062b4['createRangeOn'](_0x377b77),_0x535600=_0x377b77['findAncestor']('table'),_0xd685ae=_0x45f4b8['getCellLocation'](_0x377b77);for(const _0x1effc9 of this['_tableSuggestions']){const _0x4f436d=_0x1effc9['subType'],_0x1dfd75=_0x4f436d['startsWith']('tablePaste'),_0x3e6282=_0x4f436d['substr'](_0x1dfd75?0xa:0x5),_0x40ba11=_0x3e6282['toLowerCase'](),_0x522894=_0x40ba11['substr'](0x0,0x3)+'span',_0x722cd='min'+_0x3e6282,_0x3ae7f3='max'+_0x3e6282;if(!_0x1effc9['isInContent'])continue;if(_0x535600!=_0x1effc9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1effc9['isIntersectingWithRange'](_0x37bfb5))continue;const _0x45e7ba=_0x377b77['hasAttribute'](_0x522894)?_0x377b77['getAttribute'](_0x522894)-0x1:0x0,_0x308405=this['_getSuggestionCoords'](_0x1effc9),_0x1a29d4=_0x308405[_0x722cd],_0x3c0b48=_0x308405[_0x3ae7f3];_0x1a29d4<=_0xd685ae[_0x40ba11]&&_0xd685ae[_0x40ba11]+_0x45e7ba<=_0x3c0b48&&(_0x1effc9['addRange'](_0x37bfb5),_0x504e89=!0x0);}return _0x504e89;};_0x31fa3b['model']['document']['registerPostFixer'](_0x3f5253=>{let _0x5bbcd0=!0x1;for(const _0x4dd04b of _0x31fa3b['model']['document']['differ']['getChanges']())if('insert'==_0x4dd04b['type']){if('tableRow'==_0x4dd04b['name']){for(const _0x1a6426 of _0x4dd04b['position']['nodeAfter']['getChildren']())_0x5bbcd0=_0x5bbcd0||_0xdbd83d(_0x1a6426,_0x3f5253);}else'tableCell'==_0x4dd04b['name']&&(_0x5bbcd0=_0x5bbcd0||_0xdbd83d(_0x4dd04b['position']['nodeAfter'],_0x3f5253));}return _0x5bbcd0;});}['_getSuggestionCoords'](_0x16398e){return this['_getCoordsForCells'](_0x16398e['getRanges']()['map'](_0x36079e=>_0x36079e['start']['nodeAfter']));}}function xe(_0x1926e0){return Array['from'](new Set(_0x1926e0)['values']());}class Nt extends _0x121524{static get['requires'](){return[Ct];}['afterInit'](){const _0x5588be=this['editor'],_0x1645de=_0x5588be['model']['document']['selection'],_0x4f207a=_0x5588be['locale'];if(!_0x5588be['plugins']['has']('TableEditing'))return;const _0x56b204=_0x5588be['plugins']['get']('TrackChangesEditing'),_0x23030c=_0x5588be['plugins']['get']('TableUtils'),_0x10f601=_0x5588be['plugins']['get'](Ct);_0x10f601['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x56b204['enableCommand']('mergeTableCells',()=>{const _0x5227df=_0x23030c['getSelectionAffectedTableCells'](_0x5588be['model']['document']['selection']);_0x5588be['model']['change'](()=>{_0x56b204['markMultiRangeBlockFormat'](_0x5227df,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5588be['commands']['get']('mergeTableCells')['on']('execute',(_0x2b2d8,_0x56bb29)=>{_0x5588be['commands']['get']('trackChanges')['value']&&(_0x56bb29['length']>0x0&&_0x56bb29[_0x56bb29['length']-0x1]&&_0x56bb29[_0x56bb29['length']-0x1]['forceDefaultExecution']||_0x56b204['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2b2d8['stop']());},{'priority':'highest'});for(const _0x3bf8dc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x280397=_0x5588be['commands']['get'](_0x3bf8dc);_0x56b204['enableCommand'](_0x3bf8dc,()=>{const _0x2dcb25=_0x5588be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x594357=>_0x594357['is']('element','tableCell')),_0x3bda28=_0x280397['value'];_0x5588be['model']['change'](()=>{_0x56b204['markMultiRangeBlockFormat']([_0x2dcb25,_0x3bda28],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x17d3c7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5988b2=_0x5588be['commands']['get'](_0x17d3c7);_0x56b204['enableCommand'](_0x17d3c7,()=>{const _0x4a4a48=_0x23030c['getSelectionAffectedTableCells'](_0x5588be['model']['document']['selection'])[0x0],_0x34a391=_0x4a4a48['findAncestor']('table'),{column:_0x34b3aa,row:_0x595477}=_0x23030c['getCellLocation'](_0x4a4a48);let _0x39a935=[];if('horizontally'==_0x5988b2['direction']){const _0x266d21=_0x23030c['createTableWalker'](_0x34a391,{'startRow':_0x595477,'endRow':_0x595477,'includeAllSlots':!0x0});_0x39a935=Array['from'](_0x266d21)['map'](_0x5dd12e=>_0x5dd12e['cell']);}else{const _0x56dc5f=_0x23030c['createTableWalker'](_0x34a391,{'column':_0x34b3aa,'includeAllSlots':!0x0});_0x39a935=Array['from'](_0x56dc5f)['map'](_0x10fecf=>_0x10fecf['cell']);}_0x5588be['model']['change'](_0x36c05e=>{_0x56b204['markBlockFormat'](_0x36c05e['createRangeOn'](_0x4a4a48),{'commandName':_0x17d3c7,'commandParams':[]},_0x39a935,_0x17d3c7);});});}_0x56b204['descriptionFactory']['registerDescriptionCallback'](_0x3ef2b8=>{if('formatBlock'!=_0x3ef2b8['type']&&'formatInline'!=_0x3ef2b8['type'])return;const {data:_0x34a2f1}=_0x3ef2b8;return _0x34a2f1&&'mergeTableCells'==_0x34a2f1['commandName']?{'type':'format','content':c(_0x4f207a,'*Merge\x20cells*')}:void 0x0;}),_0x56b204['descriptionFactory']['registerDescriptionCallback'](_0x1ab9f2=>{if('formatBlock'!=_0x1ab9f2['type']&&'formatInline'!=_0x1ab9f2['type'])return;const {data:_0x8447d7}=_0x1ab9f2;return _0x8447d7?'splitTableCellVertically'==_0x8447d7['commandName']?{'type':'format','content':c(_0x4f207a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x8447d7['commandName']?{'type':'format','content':c(_0x4f207a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x59518d=_0x10f601['_acceptFormatSuggestionCallbackFactory']();for(const _0x530ae1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x56b204['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x530ae1,'accept',_0x59518d);for(const _0x1fc5ad of['splitTableCellVertically','splitTableCellHorizontally'])_0x56b204['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fc5ad,'accept',_0x59518d);_0x56b204['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x36be40=>{_0x5588be['model']['change'](_0x37118d=>{const _0x30253a=Array['from'](_0x1645de['getRanges']())['map'](_0x30a43e=>_0xf8fd8e['fromRange'](_0x30a43e));_0x37118d['setSelection'](_0x36be40),_0x5588be['commands']['get']('mergeTableCells')['refresh'](),_0x5588be['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xd28ca8=_0x30253a['filter'](_0x439ea9=>'$graveyard'!=_0x439ea9['root']['rootName']);_0xd28ca8['length']>0x0&&_0x37118d['setSelection'](_0xd28ca8);for(const _0x1330a1 of _0x30253a)_0x1330a1['detach']();});});for(const _0x5ef2d0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x563695=_0x5588be['commands']['get'](_0x5ef2d0);_0x563695['on']('set:isEnabled',(_0x190550,_0x54d588,_0x597b52)=>{if(_0x597b52){const _0xa58274=_0x5588be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xb60ce1=>_0xb60ce1['is']('element','tableCell'));this['_areMergableCells'](_0x563695['value'],_0xa58274)||(_0x190550['return']=!0x1,_0x190550['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x33d75d=this['editor']['commands']['get']('mergeTableCells'),_0x2d05d9=this['editor']['plugins']['get']('TableUtils');if(!_0x33d75d['isEnabled'])return!0x1;const _0x21e3fc=_0x2d05d9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d9eaf of _0x21e3fc)for(const _0xdc8af1 of _0x21e3fc)if(_0x3d9eaf!=_0xdc8af1&&!this['_areMergableCells'](_0x3d9eaf,_0xdc8af1))return!0x1;return!0x0;}['_areMergableCells'](_0x21a39a,_0x2ebf3c){const _0x1676b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13829b=this['editor']['model']['createRangeOn'](_0x21a39a),_0x411f83=this['editor']['model']['createRangeOn'](_0x2ebf3c),_0x5cbbc1=new Set(),_0x6cd945=new Set();for(const _0x90d803 of _0x1676b5['getSuggestions']())if(('insertion'==_0x90d803['type']||'deletion'==_0x90d803['type']||'mergeTableCells'==_0x90d803['subType'])&&_0x90d803['isInContent']){for(const _0x415e40 of _0x90d803['getRanges']())_0x415e40['containsRange'](_0x13829b,!0x0)&&_0x5cbbc1['add'](_0x90d803['type']+':'+_0x90d803['author']['id']),_0x415e40['containsRange'](_0x411f83,!0x0)&&_0x6cd945['add'](_0x90d803['type']+':'+_0x90d803['author']['id']);}if(_0x5cbbc1['size']!=_0x6cd945['size'])return!0x1;for(const _0x118b27 of _0x5cbbc1)if(!_0x6cd945['has'](_0x118b27))return!0x1;return!0x0;}}class Dt extends _0x121524{static get['requires'](){return[Ct];}['afterInit'](){const _0x52b56e=this['editor'];if(!_0x52b56e['plugins']['has']('TableEditing'))return;const _0x39cde3=_0x52b56e['locale'],_0x2da537=_0x52b56e['plugins']['get']('TrackChangesEditing');_0x2da537['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2da537['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2da537['registerBlockAttribute']('headingRows'),_0x2da537['registerBlockAttribute']('headingColumns'),_0x2da537['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x39cde3,'FORMAT_HEADER_ROW')),_0x2da537['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x39cde3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x17e466=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4611e5=this['editor']['plugins']['get']('TableUtils'),_0x4f6191=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x3c9ad2({showActiveMarker:_0x3eb1ba=!0x0,setDataAttribute:_0x2d32e3=!0x0}={}){return(_0x46af84,_0x17d4bc,_0x41f400)=>{const {type:_0x4ab0a5,id:_0x4b0c72}=_0x17e466['_splitMarkerName'](_0x17d4bc['markerName']),_0x3aeb71=_0x17e466['getSuggestion'](_0x4b0c72),_0x1e59aa=_0x3aeb71['data'];if('formatBlock'!=_0x3aeb71['type']||!_0x1e59aa||'setTableColumnHeader'!=_0x1e59aa['commandName'])return;if(_0x17d4bc['item'])return void _0x46af84['stop']();if(!_0x41f400['consumable']['consume'](_0x17d4bc['markerRange'],_0x46af84['name']))return;const _0x3a9f00=_0x17d4bc['markerRange']['start']['nodeAfter'],_0x5f0ac7=_0x17d4bc['markerRange']['end']['nodeBefore'],_0xb7c9c2=_0x3a9f00['parent']['parent'],{column:_0x1b4fef}=_0x4611e5['getCellLocation'](_0x3a9f00),{column:_0x28b722}=_0x4611e5['getCellLocation'](_0x5f0ac7);for(let _0x4b7754=_0x1b4fef;_0x4b7754<=_0x28b722;_0x4b7754++){const _0x26b31e=_0x4611e5['createTableWalker'](_0xb7c9c2,{'column':_0x4b7754,'includeAllSlots':!0x1});for(const _0x3e8ee1 of _0x26b31e){const _0x3e8445=_0x3e8ee1['cell'],_0x4c038b=_0x41f400['mapper']['toViewElement'](_0x3e8445);_0x41f400['writer']['addClass']('ck-suggestion-marker-'+_0x4ab0a5,_0x4c038b),_0x2d32e3&&_0x41f400['writer']['setAttribute']('data-suggestion',_0x4b0c72,_0x4c038b),_0x41f400['mapper']['bindElementToMarker'](_0x4c038b,_0x17d4bc['markerName']),_0x3eb1ba&&(_0x17e466['activeMarkers']['includes'](_0x17d4bc['markerName'])?_0x41f400['writer']['addClass']('ck-suggestion-marker--active',_0x4c038b):_0x41f400['writer']['removeClass']('ck-suggestion-marker--active',_0x4c038b));}}};}_0x17e466['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4f6191),_0x17e466['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4f6191),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c9ad2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24901f,_0x3f3af6,_0x2560de)=>{_0x2560de['options']['showSuggestionHighlights']&&_0x3c9ad2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x24901f,_0x3f3af6,_0x2560de);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x428c3b,_0x36304c,_0x328976)=>{const {type:_0x2283c2,id:_0x133044}=_0x17e466['_splitMarkerName'](_0x36304c['markerName']),_0x3d7485=_0x17e466['getSuggestion'](_0x133044),_0x4da0c5=_0x3d7485['data'];if('formatBlock'!=_0x3d7485['type']||!_0x4da0c5||'setTableColumnHeader'!=_0x4da0c5['commandName'])return;const _0x1fab38=_0x328976['mapper']['markerNameToElements'](_0x36304c['markerName']);if(_0x1fab38){for(const _0x275ee7 of _0x1fab38)_0x328976['writer']['removeClass']('ck-suggestion-marker-'+_0x2283c2,_0x275ee7),_0x328976['writer']['removeClass']('ck-suggestion-marker--active',_0x275ee7),_0x328976['writer']['removeAttribute']('data-suggestion',_0x275ee7),_0x328976['mapper']['unbindElementFromMarkerName'](_0x275ee7,_0x36304c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x157306=this['editor'],_0x53a914=_0x157306['locale'];function _0x2d6c95(_0x363e74){return{'type':'format','content':c(_0x53a914,'*Format:*\x20%0',_0x363e74)};}_0x157306['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35837a=>{if('formatBlock'!=_0x35837a['type'])return;const {data:_0xa6fbb3}=_0x35837a;if(_0xa6fbb3){if('setTableRowHeader'==_0xa6fbb3['commandName']){const _0x3792e7=_0xa6fbb3['commandParams'][0x0]['forceValue'];return _0x2d6c95(c(_0x53a914,_0x3792e7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xa6fbb3['commandName']){const _0x539068=_0xa6fbb3['commandParams'][0x0]['forceValue'];return _0x2d6c95(c(_0x53a914,_0x539068?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x121524{['afterInit'](){const _0x531b72=this['editor'],_0x5bce6d=_0x531b72['locale'],_0x331595=_0x531b72['plugins']['get']('TrackChangesEditing');function _0x508e86(_0xa0e657){return{'type':'format','content':''+c(_0x5bce6d,'*Set\x20table\x20type:*\x20%0',_0xa0e657)};}_0x531b72['plugins']['has']('TableLayout')&&(_0x331595['enableCommand']('insertTableLayout'),_0x331595['enableDefaultAttributesIntegration']('tableType'),_0x331595['registerBlockAttribute']('tableType'),_0x331595['descriptionFactory']['registerElementLabel'](_0xff9e9b=>_0xff9e9b['is']('element','table')&&'layout'===_0xff9e9b['getAttribute']('tableType'),_0x4f520c=>c(_0x5bce6d,'ELEMENT_LAYOUT_TABLE',_0x4f520c)),_0x331595['descriptionFactory']['registerDescriptionCallback'](_0x16e4ac=>{const {data:_0x19c34a}=_0x16e4ac;if(_0x19c34a&&'tableType'==_0x19c34a['key'])switch(_0x19c34a['newValue']){case'layout':return _0x508e86(c(_0x5bce6d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x508e86(c(_0x5bce6d,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x5e9563=>[_0x5e9563,null]));class $t extends _0x121524{static get['requires'](){return[Ct];}['afterInit'](){const _0x329652=this['editor'];if(!_0x329652['plugins']['has']('TableClipboard'))return;const _0x571dff=_0x329652['plugins']['get']('TrackChangesEditing'),_0x9cdad2=_0x329652['plugins']['get']('TableUtils'),_0x492bd5=_0x329652['plugins']['get'](Ct),_0x94f29c=_0x329652['plugins']['get']('TableClipboard'),_0x286e9c=_0x329652['plugins']['get']('TableSelection'),_0x52844b=_0x329652['plugins']['get'](_0x5ab88f);_0x492bd5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x329652['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x329652['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4820b4=null,_0x180249=!0x1;_0x52844b['on']('contentInsertion',(_0x4ef4a9,_0x238933)=>{_0x180249='paste'===_0x238933['method'];}),_0x329652['model']['on']('insertContent',(_0x28263e,_0x430e8e)=>{if(!_0x180249&&null===_0x286e9c['getSelectedTableCells']())return;const [_0x5a1827,_0xb2b875]=_0x430e8e,_0xeb4a42=_0x430e8e[_0x430e8e['length']-0x1];_0xeb4a42&&_0xeb4a42['forceDefaultExecution']||_0x571dff['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14e6c3,_0x2b784b,_0x355050,_0x190c5f,_0x5b01c3){if(_0x2b784b&&!_0x2b784b['is']('documentSelection'))return!0x1;const _0x1785f2=_0x5b01c3['getTableIfOnlyTableInContent'](_0x14e6c3,_0x355050);if(!_0x1785f2||!He(_0x1785f2,void 0x0,_0x190c5f))return!0x1;const _0x315f4d=_0x190c5f['getSelectionAffectedTableCells'](_0x355050['document']['selection']);if(!_0x315f4d['length'])return!0x1;const _0xf4e859=_0x315f4d[0x0]['findAncestor']('table'),_0x3921fd=_0x190c5f['getRowIndexes'](_0x315f4d),_0x37ed07=_0x190c5f['getColumnIndexes'](_0x315f4d),_0x151f05={'startRow':_0x3921fd['first'],'endRow':_0x3921fd['last'],'startColumn':_0x37ed07['first'],'endColumn':_0x37ed07['last']};return 0x1==_0x315f4d['length']&&(_0x151f05['endRow']+=_0x190c5f['getRows'](_0x1785f2)-0x1,_0x151f05['endColumn']+=_0x190c5f['getColumns'](_0x1785f2)-0x1),He(_0xf4e859,_0x151f05,_0x190c5f);}(_0x5a1827,_0xb2b875,_0x329652['model'],_0x9cdad2,_0x94f29c)&&(_0x28263e['stop'](),_0x4820b4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x329652['model']['change'](()=>{_0x329652['model']['insertContent'](_0x430e8e[0x0],_0x430e8e[0x1],_0x430e8e[0x2],{'forceDefaultExecution':!0x0});const _0x4c7cc2=_0x25ef3d(),{rowInsertionRanges:_0x2b3983,columnInsertionRanges:_0x42ce02,insertionRanges:_0x43396f,deletionRanges:_0x17e34c,cells:_0x107ab0}=_0x4820b4;_0x2b3983['length']&&_0x571dff['markMultiRangeInsertion'](_0x2b3983,'tablePasteRow',{'tablePasteChainId':_0x4c7cc2}),_0x42ce02['length']&&_0x571dff['markMultiRangeInsertion'](_0x42ce02,'tablePasteColumn',{'tablePasteChainId':_0x4c7cc2}),_0x43396f['length']&&(_0x571dff['markMultiRangeInsertion'](_0x43396f,'tablePaste',{'tablePasteChainId':_0x4c7cc2,'skipNestingCheck':!0x0}),_0x43396f['forEach'](_0x548623=>_0x548623['detach']?.())),_0x17e34c['length']&&(_0x571dff['markMultiRangeDeletion'](_0x17e34c,'tablePaste',{'tablePasteChainId':_0x4c7cc2,'skipNestingCheck':!0x0}),_0x17e34c['forEach'](_0x3ff555=>_0x3ff555['detach']?.()));const _0x4b3cb4=_0x571dff['markMultiRangeBlockFormat'](_0x107ab0['map'](({element:_0x192d99})=>_0x192d99),{'formatGroupId':_0x25ef3d()},[],'tablePasteCell',{'tablePasteChainId':_0x4c7cc2});if(_0x4b3cb4){const _0x19919e=_0x4b3cb4['getMarkers'](),_0x87a6d4=[];for(const {element:_0x57e311,attributes:_0x3df483}of _0x107ab0){if(!_0x3df483)continue;const _0x46721a=_0x329652['model']['createRangeOn'](_0x57e311),_0x1528ce=_0x19919e['find'](_0x1444d8=>_0x1444d8['getRange']()['isEqual'](_0x46721a));_0x1528ce&&_0x87a6d4['push']([_0x1528ce['name'],_0x3df483]);}_0x87a6d4['length']&&_0x4b3cb4['setAttribute']('markerAttributes',Object['fromEntries'](_0x87a6d4));}_0x4820b4=null;}));},{'priority':_0x84b019['high']+0xa}),_0x52844b['on']('contentInsertion',()=>{_0x180249=!0x1;},{'priority':'lowest'}),_0x329652['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x341921,_0x1858a7)=>{const [_0x30b400,_0x2aa3ce,,_0x4f84cd]=_0x1858a7;if(!_0x4820b4)return;_0x341921['stop']();const _0x4d2f65=_0x30b400['cell'],_0x1fcba1=_0x2aa3ce,_0x3640cf=De(_0x4d2f65),_0x389122=De(_0x1fcba1);_0x341921['return']=_0x4d2f65;let _0x5d4af4=null,_0x1019bc=null;if(_0x389122||_0x3640cf){if(_0x3640cf&&!_0x389122){_0x4f84cd['remove'](_0x4d2f65['getChild'](0x0));for(const _0x1284e2 of Array['from'](_0x1fcba1['getChildren']()))_0x4f84cd['insert'](_0x1284e2,_0x4d2f65,'end');const _0x2b57b0=_0x4820b4['rowInsertionIndexes']['includes'](_0x30b400['row']),_0x50b4bb=_0x4820b4['columnInsertionIndexes']['includes'](_0x30b400['column']);_0x2b57b0||_0x50b4bb||(_0x5d4af4=_0xf8fd8e['fromRange'](_0x4f84cd['createRangeIn'](_0x4d2f65)));}else _0x389122&&!_0x3640cf&&(_0x1019bc=_0x4f84cd['createRangeIn'](_0x4d2f65));}else{const _0x18b5f0=_0x4f84cd['createElement']('tableCellSuggestion'),_0x5601aa=_0x4f84cd['createElement']('tableCellSuggestion');_0x4f84cd['wrap'](_0x4f84cd['createRangeIn'](_0x4d2f65),_0x5601aa),_0x4f84cd['insert'](_0x18b5f0,_0x4d2f65,0x0);for(const _0x4985ca of Array['from'](_0x1fcba1['getChildren']()))_0x4f84cd['insert'](_0x4985ca,_0x18b5f0,'end');_0x5d4af4=_0xf8fd8e['fromRange'](_0x4f84cd['createRangeOn'](_0x18b5f0)),_0x1019bc=_0xf8fd8e['fromRange'](_0x4f84cd['createRangeOn'](_0x5601aa));}const _0x47120=Array['from'](_0x1fcba1['getAttributes']())['filter'](([_0x33e4d2])=>Oe['includes'](_0x33e4d2));_0x4820b4['cells']['push']({'element':_0x4d2f65,'attributes':_0x47120['length']?Object['fromEntries'](_0x47120):null}),_0x5d4af4&&_0x4820b4['insertionRanges']['push'](_0x5d4af4),_0x1019bc&&_0x4820b4['deletionRanges']['push'](_0x1019bc);},{'priority':'high'}),_0x9cdad2['on']('insertColumns',(_0x45acf5,_0x112b24)=>{const [_0x5afbd1,_0xaf8903={}]=_0x112b24;if(!_0x4820b4)return;const _0x3fed19=_0xaf8903['at']||0x0,_0x3e5e8d=_0xaf8903['columns']||0x1;_0x4820b4['columnInsertionIndexes']=new Array(_0x3e5e8d)['fill'](_0x3fed19)['map']((_0x246c7f,_0x223131)=>_0x246c7f+_0x223131);for(const {cell:_0x3160c2}of _0x9cdad2['createTableWalker'](_0x5afbd1,{'startColumn':_0x3fed19,'endColumn':_0x3fed19+_0x3e5e8d-0x1}))_0x4820b4['columnInsertionRanges']['push'](_0x329652['model']['createRangeOn'](_0x3160c2));},{'priority':'low'}),_0x9cdad2['on']('insertRows',(_0x53d4d2,_0x1c2f1d)=>{const [_0x60d14,_0x40aa86={}]=_0x1c2f1d;if(!_0x4820b4)return;const _0x2de44c=_0x40aa86['at']||0x0,_0x7dd7e6=_0x40aa86['rows']||0x1;_0x4820b4['rowInsertionIndexes']=new Array(_0x7dd7e6)['fill'](_0x2de44c)['map']((_0x438c33,_0x132e30)=>_0x438c33+_0x132e30);for(const {cell:_0x365c3f}of _0x9cdad2['createTableWalker'](_0x60d14,{'startRow':_0x2de44c,'endRow':_0x2de44c+_0x7dd7e6-0x1}))_0x4820b4['rowInsertionRanges']['push'](_0x329652['model']['createRangeOn'](_0x365c3f));},{'priority':'low'}),_0x571dff['descriptionFactory']['registerDescriptionCallback'](_0x5d8733=>{if(_0x5d8733['subType']&&_0x5d8733['subType']['startsWith']('tablePaste'))return _0x5d8733['previous']?{}:{'type':'insertion','content':c(_0x329652['locale'],'*Replace\x20table\x20cells*')};});const _0x1346f2=()=>!0x1;for(const _0x5d143f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x571dff['_suggestionFactory']['registerCustomCallback']('insertion',_0x5d143f,'join',_0x1346f2),_0x571dff['_suggestionFactory']['registerCustomCallback']('deletion',_0x5d143f,'join',_0x1346f2),_0x571dff['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d143f,'join',_0x1346f2);_0x571dff['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1346f2),_0x571dff['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3e36fe,_0x56ee9b,_0x443e8b)=>{const _0x40a521=_0x3e36fe['map'](_0x2ef197=>_0x2ef197['getContainedElement']())['filter'](_0x459152=>_0x459152),_0x2636ff=new Map(_0x40a521['map'](_0x10e703=>[_0x10e703,null]));if(_0x4820b4){for(const {element:_0x404c3c,attributes:_0x2cf243}of _0x4820b4['cells'])_0x2cf243&&_0x2636ff['set'](_0x404c3c,_0x2cf243);}else{if(_0x443e8b&&_0x443e8b['markerAttributes'])for(const [_0x2c44cc,_0x5d5d3e]of Object['entries'](_0x443e8b['markerAttributes'])){const _0x1e69c9=_0x329652['model']['markers']['get'](_0x2c44cc),_0x3c23b7=_0x1e69c9?_0x1e69c9['getRange']()['getContainedElement']():null;_0x3c23b7&&_0x2636ff['set'](_0x3c23b7,_0x5d5d3e);}}_0x329652['model']['change'](_0x1cec0f=>{for(const [_0x4069a4,_0xac534f]of _0x2636ff)_0x1cec0f['setAttributes']({...Ue,..._0xac534f},_0x4069a4);});});const _0x581e40=(_0x49e373,_0x502934)=>{_0x571dff['_suggestionFactory']['registerCustomCallback'](_0x49e373,'tablePaste',_0x502934,(_0x1999d1,_0x218e95,_0x40e3fc)=>{_0x329652['model']['change'](_0x10cd7e=>{const _0x33ce60=[];for(const _0x13f659 of _0x1999d1){const _0x30dff1=_0x13f659['start']['nodeAfter'];_0x30dff1['is']('element','tableCellSuggestion')&&_0x33ce60['push'](_0x30dff1);}_0x571dff['_suggestionFactory']['getSuggestionCallback'](_0x49e373,null,_0x502934)(_0x1999d1,_0x218e95,_0x40e3fc);for(const _0x454e4e of _0x33ce60)'$graveyard'!=_0x454e4e['root']['rootName']&&_0x10cd7e['unwrap'](_0x454e4e);});});};_0x581e40('insertion','accept'),_0x581e40('insertion','discard'),_0x581e40('deletion','accept'),_0x581e40('deletion','discard'),_0x571dff['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2d0f15=>{const _0x5bf359=_0x2d0f15['map'](_0x26cb28=>_0x26cb28['getContainedElement']()),_0xd73dbf=_0x5bf359[0x0]['findAncestor']('table'),{minRow:_0x326b90,maxRow:_0x2b639a}=_0x492bd5['_getCoordsForCells'](_0x5bf359);_0x9cdad2['removeRows'](_0xd73dbf,{'at':_0x326b90,'rows':_0x2b639a-_0x326b90+0x1});}),_0x571dff['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2e6ed2=>{const _0x379782=_0x2e6ed2['map'](_0x49082e=>_0x49082e['getContainedElement']()),_0x3593c7=_0x379782[0x0]['findAncestor']('table'),{minColumn:_0x227635,maxColumn:_0x3f46d6}=_0x492bd5['_getCoordsForCells'](_0x379782);_0x9cdad2['removeColumns'](_0x3593c7,{'at':_0x227635,'columns':_0x3f46d6-_0x227635+0x1});});const _0x359463=(_0x462117,_0x443a8b)=>{if(!_0x443a8b['subType']||!_0x443a8b['subType']['startsWith']('tablePaste'))return;const _0x7eee35=_0x443a8b['attributes']['tablePasteChainId'],_0x1c0cf7=_0x571dff['getSuggestions']()['filter'](_0x2db9ba=>_0x2db9ba['isInContent']&&_0x2db9ba['attributes']&&_0x2db9ba['attributes']['tablePasteChainId']==_0x7eee35);_0x1c0cf7['length']&&_0x443a8b['getAllAdjacentSuggestions']()['length']!=_0x1c0cf7['length']&&_0x1c0cf7['reduce']((_0x1ba667,_0xce11cf)=>(_0x1ba667['next']=_0xce11cf,_0xce11cf['previous']=_0x1ba667,_0xce11cf));};function _0x283138(_0x520685,_0x245d27=!0x0){const {id:_0x2f7c3b,authorId:_0x4685da}=_0x571dff['_splitMarkerName'](_0x520685['markerName']),_0x19c65a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5b5043=_0x571dff['activeMarkers']['includes'](_0x520685['markerName']);return _0x5b5043&&_0x19c65a['push']('ck-suggestion-marker--active'),{'classes':_0x19c65a,'attributes':{'data-suggestion':_0x2f7c3b,'data-author-id':_0x4685da},'priority':_0x5b5043&&_0x245d27?0xbc2:0xbb8};}_0x571dff['on']('suggestionLoaded',_0x359463,{'priority':'high'}),_0x571dff['on']('suggestionUnloaded',_0x359463,{'priority':'high'}),_0x329652['model']['document']['registerPostFixer'](()=>{let _0xdec06c=!0x1;const _0x51280f=Array['from'](_0x329652['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54f9ee,data:_0x62031a}of _0x51280f){const {group:_0x2b1ad5,type:_0x315fa1,id:_0x3c7a1f}=_0x571dff['_splitMarkerName'](_0x54f9ee);if('suggestion'!=_0x2b1ad5||'deletion'!=_0x315fa1||_0x62031a['oldRange'])continue;if(!_0x571dff['hasSuggestion'](_0x3c7a1f))continue;const _0x4fe0da=_0x571dff['getSuggestion'](_0x3c7a1f)['getRanges'](),_0x5524f2=_0x329652['plugins']['get']('Users')['me'];for(const _0x3fca90 of _0x571dff['getSuggestions']()){if(!_0x3fca90['isInContent']||_0x3fca90['author']!=_0x5524f2)continue;if('formatBlock'!=_0x3fca90['type']||'tablePasteCell'!=_0x3fca90['subType'])continue;if(_0x3fca90['getRanges']()['every'](_0x13ea3d=>_0x4fe0da['some'](_0x3b1941=>_0x3b1941['containsRange'](_0x13ea3d,!0x0)))){for(const _0x7372e6 of _0x3fca90['getAllAdjacentSuggestions']())_0x7372e6['isInContent']&&(_0x7372e6['discard'](),_0xdec06c=!0x0);}}}return _0xdec06c;}),_0x329652['model']['document']['registerPostFixer'](_0x75795a=>{const _0x26a6ce=_0x329652['commands']['get']('redo');if(!_0x26a6ce||!_0x26a6ce['_createdBatches']['has'](_0x75795a['batch']))return!0x1;let _0x4cbaf2=!0x1;const _0x332fd1=_0x329652['plugins']['get']('Users')['me'],_0x54630e=_0x329652['model']['document']['differ']['getChanges'](),_0x208bd4=Array['from'](_0x329652['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x245ae2,data:_0x1e7cd9})=>{const {group:_0x1779f4,subType:_0x2396d0,authorId:_0x51bc13}=_0x571dff['_splitMarkerName'](_0x245ae2);return'suggestion'==_0x1779f4&&'tablePaste'==_0x2396d0&&_0x51bc13==_0x332fd1['id']&&!_0x1e7cd9['oldRange'];});for(const _0x2b2253 of _0x54630e){if('insert'!=_0x2b2253['type']||'tableCellSuggestion'!=_0x2b2253['name']||0x1!=_0x2b2253['length'])continue;const _0x5e4add=_0x75795a['createRange'](_0x2b2253['position'],_0x2b2253['position']['getShiftedBy'](0x1));if(!_0x208bd4['find'](({data:_0x4a3b4d})=>_0x4a3b4d['newRange']['isEqual'](_0x5e4add))){for(const {name:_0x48f519,data:_0x4d612b}of _0x208bd4)if(_0x5e4add['containsRange'](_0x4d612b['newRange'])){_0x75795a['updateMarker'](_0x48f519,{'range':_0x5e4add}),_0x4cbaf2=!0x0;break;}}}return _0x4cbaf2;}),_0x329652['model']['document']['registerPostFixer'](_0x4675c9=>{let _0x2b7cb8=!0x1;const _0x38aebd=_0x329652['plugins']['get']('Users')['me'],_0x1bdc43=_0x571dff['getSuggestions']()['filter'](_0x5f0e83=>_0x5f0e83['isInContent']&&_0x5f0e83['author']==_0x38aebd),_0x418bf8=new Set(),_0x520388=new Set();for(const _0x311440 of _0x1bdc43)if('tablePaste'==_0x311440['subType'])for(const _0x4bd9ef of _0x311440['getMarkers']()){const _0x4567a9=_0x4bd9ef['getRange']()['getContainedElement']();if(_0x4567a9){if(_0x4567a9['is']('element','tableCellSuggestion')&&De(_0x4567a9)){_0x311440['removeMarker'](_0x4bd9ef['name']),_0x418bf8['add'](_0x4567a9),_0x2b7cb8=!0x0;const _0x2c2243=_0x4567a9['nextSibling'],_0x2e6227=_0x4567a9['previousSibling'],_0x4f2c88=_0x2c2243&&_0x2c2243['is']('element','tableCellSuggestion'),_0x5c4ca2=_0x2e6227&&_0x2e6227['is']('element','tableCellSuggestion');_0x4f2c88&&!_0x418bf8['has'](_0x2c2243)&&_0x520388['add'](_0x2c2243),_0x5c4ca2&&!_0x418bf8['has'](_0x2e6227)&&_0x520388['add'](_0x2e6227);}else _0x4567a9['is']('element','paragraph')&&_0x4567a9['isEmpty']&&(_0x311440['removeMarker'](_0x4bd9ef['name']),_0x2b7cb8=!0x0);}}else{if('tablePasteCell'==_0x311440['subType']){if(!_0x311440['attributes']||!_0x311440['attributes']['tablePasteChainId'])continue;const _0x4fff33=_0x311440['attributes']['markerAttributes'];if(_0x4fff33&&Object['keys'](_0x4fff33)['length'])continue;const _0x25e82f=_0x311440['attributes']['tablePasteChainId'];let _0x456a8f=!0x0,_0xd9c70e=!0x0;for(const _0x515b65 of _0x1bdc43)if(_0x515b65['subType']&&_0x515b65['subType']['startsWith']('tablePaste')){if(!_0x515b65['attributes']['tablePasteChainId']){_0xd9c70e=!0x1;break;}if(_0x515b65['id']!=_0x311440['id']&&_0x515b65['attributes']['tablePasteChainId']==_0x25e82f){_0x456a8f=!0x1;break;}}_0xd9c70e&&_0x456a8f&&(_0x311440['removeMarkers'](),_0x2b7cb8=!0x0);}}for(const _0x2f17c3 of _0x418bf8)_0x4675c9['remove'](_0x2f17c3);for(const _0x52d3c1 of _0x520388)_0x4675c9['unwrap'](_0x52d3c1);return _0x2b7cb8;}),_0x329652['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x16818c=>_0x283138(_0x16818c),'converterPriority':'high'}),_0x329652['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x385b47,_0x530ed4)=>_0x530ed4['options']['showSuggestionHighlights']?_0x283138(_0x385b47,!0x1):null,'converterPriority':'high'});const _0x4dbbd2=_0x329652['editing']['view'];this['listenTo'](_0x4dbbd2['document'],'clipboardOutput',(_0xc7ba8f,_0x2aba33)=>{const _0x399d54=[];for(const _0x3c7ea5 of _0x4dbbd2['createRangeIn'](_0x2aba33['content'])['getItems']())_0x3c7ea5['is']('element','suggestion-td')&&_0x399d54['push'](_0x3c7ea5);_0x4dbbd2['change'](_0x54f2c9=>{for(const _0xac78f3 of _0x399d54)_0x54f2c9['move'](_0x54f2c9['createRangeIn'](_0xac78f3),_0x54f2c9['createPositionBefore'](_0xac78f3)),_0x54f2c9['remove'](_0xac78f3);});});}}function De(_0x3e3c0e){if(_0x3e3c0e['isEmpty'])return!0x0;const _0x472802=_0x3e3c0e['getChild'](0x0);return _0x472802['is']('element','paragraph')&&_0x472802['isEmpty'];}function He(_0x348c08,_0x50ab4f={},_0x338106){for(const {isAnchor:_0x5dc07a,cellHeight:_0x3458b5,cellWidth:_0x3ffec6}of _0x338106['createTableWalker'](_0x348c08,{'includeAllSlots':!0x0,..._0x50ab4f}))if(!_0x5dc07a||0x1!=_0x3458b5||0x1!=_0x3ffec6)return!0x1;return!0x0;}class Bt extends _0x121524{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37cbef=this['editor']['plugins']['get']('TrackChangesEditing');_0x37cbef['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37cbef['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37cbef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37cbef['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37cbef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37cbef['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x482be9,_0x1476cc){const _0x374c9e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ff998=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xe57616=_0x1476cc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x43786c=_0x3ff998['getColumnGroupElement'](_0xe57616);let _0x41ecce=_0x43786c?_0x3ff998['getTableColumnsWidths'](_0x43786c):null,_0x3ee416=_0xe57616['getAttribute']('tableWidth')||null;const _0x4ac53c=_0x1476cc['tableWidth']||_0x3ee416,_0x5d3fc1=_0x1476cc['columnWidths']||_0x41ecce,_0x1e274e=this['editor']['plugins']['get']('Users')['me'];for(const _0x7739e6 of _0x374c9e['getSuggestions']()){const _0x54bf11=_0x7739e6['getContainedElement']();if('resizeTable'===_0x7739e6['subType']&&_0x54bf11===_0xe57616){_0x7739e6['author']!==_0x1e274e&&_0x7739e6['discard']();const _0x238656=_0x7739e6['data']['commandParams'];_0x3ee416=_0x238656[0x0]['tableWidth'],_0x41ecce=_0x238656[0x0]['columnWidths'];break;}}_0x482be9({'table':_0xe57616,'tableWidth':_0x4ac53c,'columnWidths':_0x5d3fc1}),_0x374c9e['markBlockFormat'](_0xe57616,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3ee416,'columnWidths':_0x41ecce}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1a35a4){if('formatBlock'!=_0x1a35a4['type']&&'formatInline'!=_0x1a35a4['type'])return;const {data:_0x20c374}=_0x1a35a4;if(_0x20c374&&'resizeTable'===_0x20c374['formatGroupId']){const _0x41fe8b='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x41fe8b)};}}}class xt extends _0x121524{['afterInit'](){const _0x2afcfa=this['editor'];_0x2afcfa['plugins']['has']('Template')&&_0x2afcfa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x121524{['afterInit'](){const _0x136914=this['editor'];if(!_0x136914['commands']['get']('insertTableOfContents'))return;_0x136914['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xb3ecc1=_0x136914['plugins']['get']('TrackChangesEditing'),_0x38c367=_0x136914['locale'];_0xb3ecc1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3c6f68=>c(_0x38c367,'ELEMENT_TABLE_OF_CONTENTS',_0x3c6f68));}}class Rt extends _0x121524{['afterInit'](){const _0x2c83a5=this['editor'];if(!_0x2c83a5['plugins']['has']('Title'))return;const _0x1ad1c6=_0x2c83a5['plugins']['get']('TrackChangesEditing');_0x1ad1c6['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2c83a5['locale'],'ELEMENT_TITLE')),_0x2c83a5['model']['document']['registerPostFixer'](_0x4b1eac=>{let _0x45c940=!0x1;const _0x5acc0a=Array['from'](_0x2c83a5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bf780,data:_0x216844}of _0x5acc0a){const {group:_0x29e183}=_0x1ad1c6['_splitMarkerName'](_0x3bf780);if('suggestion'!==_0x29e183||!_0x216844['newRange'])continue;const _0x5b1375=_0x216844['newRange'],_0x1cdb21=_0x5b1375['end']['nodeBefore'];if(!_0x1cdb21||!_0x1cdb21['is']('element','title-content'))continue;if(!_0x5b1375['start']['isTouching'](_0x5b1375['end']))continue;const _0xfc58b7=_0x2c83a5['model']['schema']['getNearestSelectionRange'](_0x5b1375['end'],'forward');if(_0xfc58b7&&_0xfc58b7['isCollapsed']){const _0x4e88ea=_0x4b1eac['createRange'](_0x5b1375['start'],_0xfc58b7['start']);_0x4e88ea['isEqual'](_0x5b1375)||(_0x4b1eac['updateMarker'](_0x3bf780,{'range':_0x4e88ea}),_0x45c940=!0x0);}_0x45c940||(_0x4b1eac['removeMarker'](_0x3bf780),_0x45c940=!0x0);}return _0x45c940;});}}class Tt extends _0x121524{['afterInit'](){const _0x12d2c8=this['editor'],_0x12d26e=_0x12d2c8['plugins']['get']('TrackChangesEditing');_0x12d2c8['plugins']['has']('Uploadcare')&&(_0x12d26e['enableCommand']('uploadcare'),_0x12d2c8['plugins']['has']('UploadcareImageEdit')&&(_0x12d26e['enableCommand']('uploadcareImageEdit'),_0x12d26e['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x12d26e['registerBlockAttribute']('uploadcareImageId'),_0x12d26e['descriptionFactory']['registerDescriptionCallback'](_0x5cf80b=>{if('attribute'!=_0x5cf80b['type'])return;const {data:_0x3cc3d3}=_0x5cf80b;return _0x3cc3d3&&'uploadcareImageId'==_0x3cc3d3['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x121524{['afterInit'](){const _0x1327bb=this['editor'],_0x108e70=_0x1327bb['plugins']['get']('TrackChangesEditing');_0x1327bb['plugins']['has']('UndoEditing')&&(_0x108e70['enableCommand']('undo'),_0x108e70['enableCommand']('redo'));}}class Ut extends _0x121524{static get['requires'](){return[Ct];}['afterInit'](){const _0x122900=this['editor'];if(!_0x122900['plugins']['has']('TableCaptionEditing'))return;_0x122900['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x121524{['tableProperties'];['tableCellProperties'];constructor(_0x1d2e54){super(_0x1d2e54),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 _0x518b30=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29b986 of this['tableProperties'])_0x518b30['enableCommand'](_0x29b986,(_0x7a189,_0xce6c6d)=>{const _0x218e77=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29b986,[_0x218e77],this['tableProperties'],'tableProperties',_0x7a189,_0xce6c6d);});_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x518b30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x58fcd4,_0x4e5173)=>this['handleDiscardAction'](this['tableProperties'],_0x58fcd4,_0x4e5173)),_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12ba74 of this['tableCellProperties'])_0x518b30['enableCommand'](_0x12ba74,(_0x23f77f,_0x5cbfcd)=>{const _0x5f1af7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12ba74,_0x5f1af7,this['tableCellProperties'],'tableCellProperties',_0x23f77f,_0x5cbfcd);});_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x518b30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x49a19c,_0x2b570f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x49a19c,_0x2b570f)),_0x518b30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x518b30['descriptionFactory']['registerDescriptionCallback'](_0x20b3f8=>this['handleSuggestionDescription'](_0x20b3f8));}['_handlePropertyChange'](_0x120eee,_0x2e97ea,_0x76e973,_0x1714d5,_0x21e458,_0x538e89){const _0x389063=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x538e89['batch'],()=>{for(const _0x3eb61c of _0x2e97ea){if(this['_getSuggestion'](_0x3eb61c,_0x1714d5))_0x21e458(_0x538e89);else{const _0x1dbd5a={};for(const _0x17ad59 of _0x76e973){const _0x2bbf1a=_0x3eb61c['getAttribute'](_0x17ad59);void 0x0!==_0x2bbf1a&&(_0x1dbd5a[_0x17ad59]=_0x2bbf1a);}_0x21e458(_0x538e89),_0x389063['markBlockFormat'](_0x3eb61c,{'commandParams':[_0x1dbd5a]},[],_0x1714d5);}}});}['handleDiscardAction'](_0x50339d,_0x5daf06,_0x196e55){const _0x171632=_0x5daf06[0x0]['start']['nodeAfter'],_0x8f2043=_0x196e55['commandParams'][0x0];this['editor']['model']['change'](_0x5a7816=>{for(const _0x40520a of _0x50339d)void 0x0!==_0x8f2043[_0x40520a]?_0x5a7816['setAttribute'](_0x40520a,_0x8f2043[_0x40520a],_0x171632):_0x5a7816['removeAttribute'](_0x40520a,_0x171632);});}['handleSuggestionDescription'](_0x12ebf9){if(_0x12ebf9['data'])switch(_0x12ebf9['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xe66918,_0x49b749){const _0xef9b67=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x224ad5 of _0xef9b67['getSuggestions']({'skipNotAttached':!0x0})){const _0x46a682=_0x224ad5['getContainedElement']();if(_0x224ad5['subType']===_0x49b749&&_0x46a682===_0xe66918)return _0x224ad5;}return null;}}const u='$elementName';class p extends _0x121524{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x23ff89,_0x38bf77,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14e48b){super(_0x14e48b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x30da33,_0x1fcb39,_0x149fff,_0x1b98ea)=>{this['_model']['change'](()=>{for(const _0x5e8486 of[..._0x1b98ea,..._0x149fff])this['_model']['markers']['has'](_0x5e8486)&&_0x14e48b['editing']['reconvertMarker'](_0x5e8486);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x14e48b['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x14e48b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x14e48b['config']['get']('trackChanges.trackFormatChanges'),_0x14e48b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x14e48b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x14e48b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x269a83=this['editor'],_0x25c95e=(_0x45f9b0,_0x31e9c9)=>{if('attribute'!=_0x45f9b0)return'ck-suggestion-marker-'+_0x45f9b0;const _0x2a3c5f=_0x31e9c9['split']('|')[0x0];return this['_isBlockAttribute'](_0x2a3c5f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x269a83['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x591e98=>{const {id:_0x4a25d3,authorId:_0x1ee255,type:_0x29c119,subType:_0x5ad74d}=this['_splitMarkerName'](_0x591e98['markerName']),_0x118dc4=['ck-suggestion-marker',_0x25c95e(_0x29c119,_0x5ad74d)];let _0x57a0b4=0xbb8;return this['activeMarkers']['includes'](_0x591e98['markerName'])&&(_0x118dc4['push']('ck-suggestion-marker--active'),_0x57a0b4=0xbc2),'deletion'==_0x29c119&&(_0x57a0b4+=0x5),{'classes':_0x118dc4,'attributes':{'data-suggestion':_0x4a25d3,'data-author-id':_0x1ee255},'priority':_0x57a0b4};}}),_0x269a83['conversion']['for']('dataDowncast')['add'](_0x4224bc=>{_0x4224bc['on']('addMarker:suggestion',(_0x270039,_0x2d3632,_0x51a35b)=>{if(!_0x51a35b['options']['showSuggestionHighlights'])return;const _0x28853f=_0x2d3632['item'];if(!_0x28853f)return;const _0x308f9a=_0x51a35b['mapper']['toViewElement'](_0x28853f);_0x269a83['model']['schema']['isObject'](_0x28853f)&&_0x308f9a&&!_0x308f9a['getCustomProperty']('widget')&&_0x308f9a['is']('containerElement')&&_0x4a22af(_0x308f9a,_0x51a35b['writer']);},{'priority':'high'});}),_0x269a83['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4bcac8,_0x2f9527)=>{if(!_0x2f9527['options']['showSuggestionHighlights'])return null;const {id:_0x4d311d,authorId:_0x58ff22,type:_0x92a2b5,subType:_0x29d066}=this['_splitMarkerName'](_0x4bcac8['markerName']);return{'classes':['ck-suggestion-marker',_0x25c95e(_0x92a2b5,_0x29d066)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4d311d,'data-author-id':_0x58ff22}};}});const _0x5b139a=({showActiveMarkers:_0xfcf593=!0x0,isAttributeSuggestion:_0x5b9e87=!0x1}={})=>(_0x5d0007,_0x5ded0,_0xb02f75)=>{if(!_0x5ded0['item'])return;const {id:_0x118cfc,authorId:_0x7718e1}=this['_splitMarkerName'](_0x5ded0['markerName']);if(_0x5b9e87){const _0x3e0b6e=this['_suggestions']['get'](_0x118cfc),_0x739f5b=this['_getAttributeKey'](_0x3e0b6e);if(!this['_isBlockAttribute'](_0x739f5b))return;}if(_0x5ded0['item']['is']('selection'))return void _0xb02f75['consumable']['consume'](_0x5ded0['item'],_0x5d0007['name']);const _0x5082a7=_0xb02f75['mapper']['toViewElement'](_0x5ded0['item']);if(_0x5ded0['item']['is']('element')&&_0x269a83['model']['schema']['isBlock'](_0x5ded0['item'])&&!_0x5082a7['getCustomProperty']('addHighlight')){_0xb02f75['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5082a7),_0xb02f75['writer']['setAttribute']('data-suggestion',_0x118cfc,_0x5082a7),_0xb02f75['writer']['setAttribute']('data-author-id',_0x7718e1,_0x5082a7),_0xb02f75['mapper']['bindElementToMarker'](_0x5082a7,_0x5ded0['markerName']),_0xfcf593&&(this['activeMarkers']['includes'](_0x5ded0['markerName'])?_0xb02f75['writer']['addClass']('ck-suggestion-marker--active',_0x5082a7):_0xb02f75['writer']['removeClass']('ck-suggestion-marker--active',_0x5082a7));for(const _0x4b6166 of _0x269a83['model']['createRangeIn'](_0x5ded0['item'])['getItems']())_0xb02f75['consumable']['consume'](_0x4b6166,_0x5d0007['name']);_0xb02f75['consumable']['consume'](_0x5ded0['item'],_0x5d0007['name']);}};_0x269a83['conversion']['for']('dataDowncast')['add'](_0x357eef=>{_0x357eef['on']('addMarker:suggestion:formatBlock',(_0x2d3a3f,_0x3a6c09,_0x5adf81)=>{_0x5adf81['options']['showSuggestionHighlights']&&_0x5b139a({'showActiveMarkers':!0x1})(_0x2d3a3f,_0x3a6c09,_0x5adf81);},{'priority':'highest'});}),_0x269a83['conversion']['for']('dataDowncast')['add'](_0xd4f400=>{_0xd4f400['on']('addMarker:suggestion:attribute',(_0x3f9224,_0x5dc561,_0x43b4ff)=>{_0x43b4ff['options']['showSuggestionHighlights']&&_0x5b139a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3f9224,_0x5dc561,_0x43b4ff);},{'priority':'highest'});}),_0x269a83['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xea401b,_0x170cb1)=>{if(_0x170cb1['options']['showSuggestionHighlights']){const {id:_0xde9e80,authorId:_0xe62764}=this['_splitMarkerName'](_0xea401b);return _0xea401b['includes'](':split')||_0xea401b['includes'](':merge')?{'group':'suggestion','name':_0xea401b['substr'](0xb),'attributes':{'data-suggestion':_0xde9e80,'data-author-id':_0xe62764}}:null;}return{'group':'suggestion','name':_0xea401b['substr'](0xb)};}}),_0x269a83['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x467529,{writer:_0x15879e})=>{let _0x42381f='suggestion:'+_0x467529['getAttribute']('suggestion-type')+':'+_0x467529['getAttribute']('id');return _0x467529['getAttribute']('marker-count')&&(_0x42381f+=':'+_0x467529['getAttribute']('marker-count')),_0x15879e['createElement']('$marker',{'data-name':_0x42381f});}}),_0x269a83['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x269a83['conversion']['for']('editingDowncast')['add'](_0x5bb2a9=>{_0x5bb2a9['on']('addMarker:suggestion:formatBlock',_0x5b139a(),{'priority':'high'});}),_0x269a83['conversion']['for']('editingDowncast')['add'](_0x2a9206=>{_0x2a9206['on']('addMarker:suggestion:attribute',_0x5b139a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x269a83['conversion']['for']('editingDowncast')['add'](_0x215720=>{_0x215720['on']('removeMarker:suggestion:formatBlock',(_0x452750,_0xb152ac,_0xa7a08f)=>{const _0x2eddff=_0xa7a08f['mapper']['markerNameToElements'](_0xb152ac['markerName']);if(_0x2eddff){for(const _0x2dfa74 of _0x2eddff)_0x2dfa74['getCustomProperty']('addHighlight')||(_0xa7a08f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2dfa74),_0xa7a08f['writer']['removeAttribute']('data-suggestion',_0x2dfa74),_0xa7a08f['writer']['removeAttribute']('data-author-id',_0x2dfa74),_0xa7a08f['mapper']['unbindElementFromMarkerName'](_0x2dfa74,_0xb152ac['markerName']));}},{'priority':'high'});}),_0x269a83['conversion']['for']('editingDowncast')['add'](_0x3abcaa=>{_0x3abcaa['on']('removeMarker:suggestion:attribute',(_0x20636f,_0x2e53bd,_0x471368)=>{const _0x55c903=_0x471368['mapper']['markerNameToElements'](_0x2e53bd['markerName']);if(!_0x55c903)return;const {id:_0x4fb30c}=this['_splitMarkerName'](_0x2e53bd['markerName']),_0xdc4365=this['_suggestions']['get'](_0x4fb30c),_0x29b5e3=this['_getAttributeKey'](_0xdc4365);if(this['_isBlockAttribute'](_0x29b5e3)){for(const _0x50e83c of _0x55c903)_0x50e83c['getCustomProperty']('addHighlight')||(_0x471368['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x50e83c),_0x471368['writer']['removeAttribute']('data-suggestion',_0x50e83c),_0x471368['writer']['removeAttribute']('data-author-id',_0x50e83c),_0x471368['mapper']['unbindElementFromMarkerName'](_0x50e83c,_0x2e53bd['markerName']));}},{'priority':'high'});}),_0x269a83['model']['document']['registerPostFixer'](_0x124fea=>{let _0x51cf9d=!0x1;const _0x23924e=Array['from'](_0x269a83['model']['document']['differ']['getChangedMarkers']()),_0x115b6a=new Set();for(const {name:_0x37ca34,data:_0x3bcbe9}of _0x23924e){const {group:_0x492863,type:_0x47b7d6,subType:_0x5c38c1,id:_0x48b1cb}=this['_splitMarkerName'](_0x37ca34);if('suggestion'!==_0x492863)continue;const _0x447cd0=this['_suggestions']['get'](_0x48b1cb);if(null!=_0x3bcbe9['newRange']){'formatInline'==_0x47b7d6&&(_0x51cf9d=_0x51cf9d||Jt(_0x3bcbe9['newRange'],_0x37ca34,_0x124fea,_0x269a83['model']['schema']));const _0x4d3b52='attribute'==_0x47b7d6&&this['_isBlockAttribute'](_0x5c38c1['split']('|')[0x0]);if(_0x3bcbe9['newRange']['isCollapsed']||'$graveyard'==_0x3bcbe9['newRange']['root']['rootName']||'formatBlock'==_0x47b7d6&&!Ht(_0x3bcbe9['newRange'])||_0x4d3b52&&!Ht(_0x3bcbe9['newRange'])||'deletion'==_0x47b7d6&&!qt(_0x3bcbe9['newRange']))_0x124fea['removeMarker'](_0x37ca34),_0x51cf9d=!0x0;else{if(!_0x447cd0||!_0x447cd0['isInContent'])continue;if(_0x3bcbe9['newRange']&&_0x3bcbe9['oldRange']&&_0x3bcbe9['newRange']['isEqual'](_0x3bcbe9['oldRange']))continue;_0x115b6a['add'](_0x447cd0);}}}return _0x115b6a['size']>0x0&&(_0x51cf9d=!!this['_joinWithAdjacentSuggestions'](_0x115b6a)||_0x51cf9d),_0x51cf9d;}),_0x269a83['model']['document']['registerPostFixer'](_0x3a0d59=>{let _0x3309bf=!0x1;for(const _0x53111e of _0x269a83['model']['document']['differ']['getChanges']())if('insert'==_0x53111e['type'])for(const _0x2155a1 of this['_suggestions']['values']()){if(_0x2155a1['isMultiRange']||!_0x2155a1['isInContent'])continue;const _0x4ece03='formatBlock'==_0x2155a1['type'],_0x25f6c6=this['_getAttributeKey'](_0x2155a1),_0x278ddd=_0x25f6c6&&this['_isBlockAttribute'](_0x25f6c6);if(!_0x4ece03&&!_0x278ddd)continue;const _0x221943=_0x2155a1['getFirstRange']();if(_0x221943['start']['parent']!=_0x221943['end']['parent']&&!_0x221943['end']['isAtEnd']){const _0x14bb09=_0x269a83['model']['createPositionAt'](_0x221943['start']['nodeAfter'],'end'),_0x3bcac4=_0x269a83['model']['createRange'](_0x221943['start'],_0x14bb09);_0x3a0d59['updateMarker'](_0x2155a1['getFirstMarker'](),{'range':_0x3bcac4}),_0x3309bf=!0x0;}}return _0x3309bf;}),_0x269a83['model']['document']['registerPostFixer'](_0x207420=>this['_processAttributeChanges'](_0x207420)),_0x269a83['model']['document']['registerPostFixer'](_0x30bf6d=>!_0x30bf6d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x30bf6d)),_0x269a83['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x269a83['model']['document']['on']('change:data',(_0x5db024,_0x30c7f2)=>{if(!_0x30c7f2['isLocal']||_0x30c7f2['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x42782f=_0x269a83['model']['document']['differ']['getChanges']();if(0x0==_0x42782f['length'])return;const _0x5e3968=[],_0x9fc6a0=_0x42782f['filter'](_0x25ffe9=>'attribute'==_0x25ffe9['type']),_0x1a11f8=_0x42782f['filter'](_0x5a3d8b=>'insert'==_0x5a3d8b['type']&&'$text'!=_0x5a3d8b['name']);for(const _0x4f252d of _0x9fc6a0)this['_isRegisteredAttribute'](_0x4f252d['attributeKey'])&&_0x5e3968['push']({'key':_0x4f252d['attributeKey'],'newValue':_0x4f252d['attributeNewValue'],'oldValue':_0x4f252d['attributeOldValue'],'range':zt(_0x4f252d['range'],_0x269a83['model'])});for(const _0x5c5010 of _0x1a11f8){if('rename'!=_0x5c5010['action']&&'refresh'!=_0x5c5010['action'])continue;const _0xebd5fc=Wt(_0x5c5010['position']['nodeAfter'],_0x269a83['model']),_0x288c32=_0x5c5010['before'];'rename'==_0x5c5010['action']&&_0x5e3968['push']({'key':u,'newValue':_0x5c5010['name'],'oldValue':_0x288c32['name'],'range':_0xebd5fc});for(const [_0x4ae738,_0x3eb529]of _0x288c32['attributes']){if(!this['_isRegisteredAttribute'](_0x4ae738))continue;const _0x39c1bd=_0x5c5010['attributes']['get'](_0x4ae738);_0x3eb529!==_0x39c1bd&&_0x5e3968['push']({'key':_0x4ae738,'newValue':_0x39c1bd,'oldValue':_0x3eb529,'range':_0xebd5fc});}for(const [_0x518393,_0x516058]of _0x5c5010['attributes'])this['_isRegisteredAttribute'](_0x518393)&&(_0x288c32['attributes']['has'](_0x518393)||_0x5e3968['push']({'key':_0x518393,'newValue':_0x516058,'oldValue':null,'range':_0xebd5fc}));}0x0!=_0x5e3968['length']&&_0x269a83['model']['enqueueChange'](_0x30c7f2,_0x34654e=>{const _0x41684c=_0x25ef3d();for(const {range:_0x3f4f7c,key:_0x5e4631,oldValue:_0x5698f1,newValue:_0x2ff99e}of _0x5e3968)this['markAttributeChange'](_0x3f4f7c,_0x5e4631,_0x5698f1,_0x2ff99e,{'groupId':_0x41684c});this['_reduceExistingSuggestions'](_0x34654e,_0x5e3968);});},{'priority':'lowest'}),_0x269a83['model']['markers']['on']('update:suggestion',(_0xcc65d6,_0x312cd2,_0x1950fb)=>{if(null==_0x1950fb){const {id:_0x5d06e1}=this['_splitMarkerName'](_0x312cd2['name']),_0x4e9b11=this['_suggestions']['get'](_0x5d06e1);_0x4e9b11&&_0x4e9b11['addMarkerName'](_0x312cd2['name']);}}),_0x269a83['model']['document']['on']('change:data',()=>{const _0x7b5924=Array['from'](_0x269a83['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5561a3=>'suggestion'===this['_splitMarkerName'](_0x5561a3['name'])['group']);if(0x0===_0x7b5924['length'])return;_0x7b5924['sort']((_0x2ad561,_0x63e86a)=>{const _0x39aa4f=_0x2ad561['data']['oldRange'],_0x2648d2=_0x63e86a['data']['oldRange'];return null===_0x39aa4f&&null===_0x2648d2?0x0:null===_0x39aa4f&&null!==_0x2648d2?-0x1:null!==_0x39aa4f&&null===_0x2648d2?0x1:_0x39aa4f['start']['isBefore'](_0x2648d2['start'])?-0x1:0x1;});const _0x56a253=new Set(),_0x2b6a26=new Set();for(const {name:_0x2b1a00,data:_0x335689}of _0x7b5924){const {id:_0x13fe51}=this['_splitMarkerName'](_0x2b1a00);if(null===_0x335689['oldRange']){const _0x5b5cda=this['_handleNewSuggestionMarker'](_0x2b1a00);_0x2b6a26['add'](_0x5b5cda);}else{const _0x3ef22d=this['_suggestions']['get'](_0x13fe51);null!==_0x335689['newRange']||_0x3ef22d['isInContent']?(_0x56a253['add'](_0x3ef22d['head']),_0x2b6a26['add'](_0x3ef22d)):this['_removeSuggestion'](_0x3ef22d);}}_0x2b6a26['size']>0x0&&this['_refreshSuggestionsChain'](_0x2b6a26);for(const _0x53c3f2 of _0x56a253)this['fire']('suggestionChanged',_0x53c3f2);}),_0x269a83['model']['on']('applyOperation',(_0x4b946a,_0x12eaad)=>{const _0x454adb=_0x12eaad[0x0];if(!this['_suggestions']['size'])return;if(!_0x454adb['isDocumentOperation'])return;if(_0x454adb['batch']['isUndo']||!_0x454adb['batch']['isLocal'])return;let _0xe78e0b,_0x2b1919;switch(_0x454adb['type']){case'insert':_0xe78e0b=_0x269a83['model']['createPositionAt'](_0x454adb['position']),_0x2b1919=_0xe78e0b['getShiftedBy'](_0x454adb['howMany']);break;case'split':_0xe78e0b=_0x269a83['model']['createPositionAt'](_0x454adb['splitPosition']),_0x2b1919=_0x269a83['model']['createPositionAt'](_0x454adb['moveTargetPosition']);break;case'move':_0xe78e0b=_0x269a83['model']['createPositionAt'](_0x454adb['targetPosition']),_0x2b1919=_0xe78e0b['getShiftedBy'](_0x454adb['howMany']);break;default:return;}const _0x263903=_0x269a83['model']['createRange'](_0xe78e0b,_0x2b1919);_0x269a83['model']['change'](()=>{for(const {suggestion:_0x51abec,meta:_0x37dd4}of this['_findSuggestions'](_0x263903)){if(_0x51abec['isMultiRange'])continue;if('formatInline'==_0x51abec['type'])continue;const _0x467d1a=this['_getAttributeKey'](_0x51abec);if(_0x467d1a&&this['_isBlockAttribute'](_0x467d1a)&&'split'!=_0x454adb['type'])continue;const _0x52dfae=_0x51abec['data']&&_0x51abec['data']['multipleBlocks'];('formatBlock'!=_0x51abec['type']||'split'==_0x454adb['type']&&!_0x52dfae)&&(_0x37dd4['containsRangeInObject']||'insertion'==_0x51abec['type']&&_0x37dd4['isOwn']||_0x51abec['getFirstRange']()['containsRange'](_0x263903)&&this['_breakSuggestionMarker'](_0x51abec,_0xe78e0b,_0x2b1919));}});},{'priority':'lowest'}),_0x269a83['model']['on']('deleteContent',(_0x531529,_0x2102eb)=>{const _0x779017=_0x2102eb[0x0],_0x33a0ec=_0x2102eb[0x1];if(_0x33a0ec&&_0x33a0ec['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x779017['isCollapsed'])return;const _0x5179f0=_0x269a83['model']['schema'],{start:_0x5e1617,end:_0x41f953}=_0x779017['getFirstRange'](),_0x5ad200=_0x5e1617['nodeAfter']&&_0x5179f0['isLimit'](_0x5e1617['nodeAfter'])?null:_0x5179f0['getNearestSelectionRange'](_0x5e1617,'forward'),_0x47c41f=_0x41f953['nodeBefore']&&_0x5179f0['isLimit'](_0x41f953['nodeBefore'])?null:_0x5179f0['getNearestSelectionRange'](_0x41f953,'backward'),_0x365053=_0x269a83['model']['createRange'](_0x5ad200?_0x5ad200['start']:_0x5e1617,_0x47c41f?_0x47c41f['end']:_0x41f953);_0x269a83['model']['change'](_0x34c02f=>{this['markDeletion'](_0x365053);const _0x33d3d6=_0x269a83['model']['schema']['getNearestSelectionRange'](_0x365053['start']);_0x779017['is']('documentSelection')?_0x34c02f['setSelection'](_0x33d3d6):_0x779017['setTo'](_0x33d3d6);}),_0x531529['stop']();},{'priority':_0x84b019['normal']+0xa}),_0x269a83['model']['on']('insertContent',(_0x57ec74,_0x54e96f)=>{const _0xc1b28=_0x54e96f[_0x54e96f['length']-0x1];_0xc1b28&&_0xc1b28['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x269a83['model']['change'](()=>{let _0x2185ba=_0x269a83['model']['insertContent'](_0x54e96f[0x0],_0x54e96f[0x1],_0x54e96f[0x2],{'forceDefaultExecution':!0x0});if(!_0x2185ba)return;_0x57ec74['return']=_0x2185ba['clone']();const _0x3395ea=_0x2185ba['end']['nodeBefore'],_0x13064f=_0x269a83['model']['schema'];_0x3395ea&&_0x13064f['isBlock'](_0x3395ea)&&!_0x13064f['isObject'](_0x3395ea)&&(_0x2185ba=_0x269a83['model']['createRange'](_0x2185ba['start'],_0x269a83['model']['createPositionAt'](_0x3395ea,'end'))),this['markInsertion'](_0x2185ba);}),_0x57ec74['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x30b744=new x(_0x269a83,this['_suggestions']);_0x269a83['commands']['add']('acceptSuggestion',_0x30b744),this['enableCommand']('acceptSuggestion');const _0x3ae6df=new O(_0x269a83,this['_suggestions']);_0x269a83['commands']['add']('discardSuggestion',_0x3ae6df),this['enableCommand']('discardSuggestion'),_0x269a83['commands']['add']('acceptAllSuggestions',new R(_0x269a83,_0x30b744,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x269a83['commands']['add']('discardAllSuggestions',new R(_0x269a83,_0x3ae6df,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x269a83['commands']['add']('acceptSelectedSuggestions',new E(_0x269a83,_0x30b744,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x269a83['commands']['add']('discardSelectedSuggestions',new E(_0x269a83,_0x3ae6df,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x52b476=_0x269a83['plugins']['get']('CommentsRepository');this['listenTo'](_0x52b476,'addComment',(_0x2c81e2,{threadId:_0x20d308})=>{const _0x5dedf8=this['_suggestions']['get'](_0x20d308);_0x5dedf8&&_0x5dedf8['commentThread']&&0x1===_0x5dedf8['commentThread']['length']&&this['_updateSuggestionData'](_0x20d308,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x52b476,'removeComment',(_0x515f36,{threadId:_0x12b12d})=>{const _0x123b81=this['_suggestions']['get'](_0x12b12d);_0x123b81&&_0x123b81['commentThread']&&!_0x123b81['commentThread']['length']&&this['_updateSuggestionData'](_0x12b12d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3dec31){const _0x1b44cb=_0x156ddb([0x48,0x63,0x6b,0x46,0x41,0x76,0x75,0x39,0x4c,0x34,0x61,0x62,0x45,0x70,0x47,0x55,0x79,0x4b,0x73,0x72,0x49,0x58,0x30,0x33,0x36,0x4f,0x69,0x5a,0x7a,0x4e,0x42,0x50,0x31,0x4d,0x57,0x59,0x78,0x77,0x68,0x43,0x38,0x6d,0x6a,0x32,0x6c,0x35,0x64,0x51,0x71,0x4a,0x56,0x66,0x74,0x6e,0x65,0x67,0x6f,0x54,0x44,0x53,0x52,0x37]),_0x294eeb=0x6159d31f,_0x5eacd2=0x615eb867^_0x294eeb,_0x201213=window[_0x156ddb([0x44,0x61,0x74,0x65])][_0x156ddb([0x6e,0x6f,0x77])](),_0x3471a4=_0x3dec31[_0x156ddb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a1408=new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4cffcb=>{_0x3471a4[_0x156ddb([0x6f,0x6e,0x63,0x65])](_0x156ddb([0x72,0x65,0x61,0x64,0x79]),_0x4cffcb);}),_0x84eb51={[_0x156ddb([0x6b,0x74,0x79])]:_0x156ddb([0x45,0x43]),[_0x156ddb([0x75,0x73,0x65])]:_0x156ddb([0x73,0x69,0x67]),[_0x156ddb([0x63,0x72,0x76])]:_0x156ddb([0x50,0x2d,0x32,0x35,0x36]),[_0x156ddb([0x78])]:_0x156ddb([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]),[_0x156ddb([0x79])]:_0x156ddb([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]),[_0x156ddb([0x61,0x6c,0x67])]:_0x156ddb([0x45,0x53,0x32,0x35,0x36])},_0x2650c1=_0x3471a4[_0x156ddb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x156ddb([0x67,0x65,0x74])](_0x156ddb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f2ff1(){let _0x295e5a,_0x2fc888=null,_0x3e4fc9=null;try{if(_0x2650c1==_0x156ddb([0x47,0x50,0x4c]))return _0x156ddb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x295e5a=_0x2f4b6(),!_0x295e5a)return _0x156ddb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x295e5a[_0x156ddb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e4fc9=_0x8bebc4(_0x295e5a[_0x156ddb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x295e5a[_0x156ddb([0x6a,0x74,0x69])])),await _0x234a9e()?_0x551445()?_0x2220fa()?_0x156ddb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40856b()?(_0x295e5a[_0x156ddb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x156ddb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fc888=_0x21c1c9(_0x156ddb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x295e5a[_0x156ddb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x156ddb([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fc888=_0x21c1c9(_0x156ddb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x518d0a()):_0x156ddb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x156ddb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x156ddb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x156ddb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2220fa(){const _0x348275=[_0x156ddb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x156ddb([0x74,0x72,0x69,0x61,0x6c])][_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x295e5a[_0x156ddb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x201213/0x3e8:0xe10*_0x5eacd2;return _0x295e5a[_0x156ddb([0x65,0x78,0x70])]<_0x348275;}function _0x551445(){const _0x11e006=_0x295e5a[_0x156ddb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x11e006)return!0x1;if(_0x11e006[_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156ddb([0x2a])))return!0x0;if(_0x11e006[_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156ddb([0x54,0x43])))return!0x0;if(_0x11e006[_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156ddb([0x52,0x54,0x43]))){if(_0x2bdeb6())return!0x0;if(_0x17da0c()||_0xe2d3e3())return!0x0;}return!0x1;}function _0x40856b(){const _0x1748fe=_0x295e5a[_0x156ddb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1748fe||0x0==_0x1748fe[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c6ee2}=new URL(window[_0x156ddb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1748fe[_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c6ee2))return!0x0;const _0x28c70d=_0x3c6ee2[_0x156ddb([0x73,0x70,0x6c,0x69,0x74])](_0x156ddb([0x2e]));return _0x1748fe[_0x156ddb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48d4c8=>_0x48d4c8[_0x156ddb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x156ddb([0x2a])))[_0x156ddb([0x6d,0x61,0x70])](_0x1a00da=>_0x1a00da[_0x156ddb([0x73,0x70,0x6c,0x69,0x74])](_0x156ddb([0x2e])))[_0x156ddb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4825a3=>_0x4825a3[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28c70d[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x156ddb([0x6d,0x61,0x70])](_0x1f6ea4=>Array(_0x28c70d[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f6ea4[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x156ddb([0x66,0x69,0x6c,0x6c])](_0x1f6ea4[0x0]===_0x156ddb([0x2a])?_0x156ddb([0x2a]):'')[_0x156ddb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f6ea4))[_0x156ddb([0x73,0x6f,0x6d,0x65])](_0x54a9d1=>_0x28c70d[_0x156ddb([0x65,0x76,0x65,0x72,0x79])]((_0x4fdb24,_0x2c2723)=>_0x54a9d1[_0x2c2723]===_0x4fdb24||_0x54a9d1[_0x2c2723]===_0x156ddb([0x2a])));}function _0x518d0a(){return _0x2fc888&&_0x3e4fc9?new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55fa54,_0x122370)=>{_0x2fc888[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x55fa54,_0x122370),_0x3e4fc9[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x7548ba=>{_0x7548ba!=_0x156ddb([0x56,0x61,0x6c,0x69,0x64])&&_0x55fa54(_0x7548ba);},_0x122370);}):_0x2fc888||_0x3e4fc9||_0x156ddb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8bebc4(_0x4f185c,_0x3d80d3){return new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x358f7b=>{if(_0x59ca41())return _0x358f7b(_0x156ddb([0x56,0x61,0x6c,0x69,0x64]));_0xd8ac7(),_0x3471a4[_0x156ddb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x156ddb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e7557=!0x1;const _0x3a95b8=_0x25ef3d();function _0xb9159f(_0x17a245){return!!_0x17a245&&(typeof _0x17a245===_0x156ddb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x17a245===_0x156ddb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x17a245[_0x156ddb([0x74,0x68,0x65,0x6e])]===_0x156ddb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x17a245[_0x156ddb([0x63,0x61,0x74,0x63,0x68])]===_0x156ddb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42713e(_0x5eee83){_0x2dcf07(_0x5eee83)[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x3aaf04=>{if(!_0x3aaf04||_0x3aaf04[_0x156ddb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x156ddb([0x6f,0x6b]))return _0x156ddb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c8323(_0x2b6ce0(_0x3a95b8+_0x3d80d3))!=_0x3aaf04[_0x156ddb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x156ddb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x156ddb([0x56,0x61,0x6c,0x69,0x64]);})[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x291ebe=>(_0x234f30(),_0x291ebe),()=>{const _0x2e3fcd=_0x18a2e4();return null==_0x2e3fcd?(_0x234f30(),_0x156ddb([0x56,0x61,0x6c,0x69,0x64])):_0x156ddb(_0x201213-_0x2e3fcd>(0x4555571f^_0x294eeb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x358f7b)[_0x156ddb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x358f7b(_0x156ddb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2821b8=0x616f3d9f^_0x294eeb;function _0x234f30(){const _0x3c1378=_0x156ddb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c8323(_0x2b6ce0(_0x4f185c)),_0x2824e1=_0x32600a(_0x3c8323(window[_0x156ddb([0x4d,0x61,0x74,0x68])][_0x156ddb([0x63,0x65,0x69,0x6c])](_0x201213/_0x2821b8)));window[_0x156ddb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x156ddb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c1378,_0x2824e1);}function _0x18a2e4(){const _0x582fe2=_0x156ddb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c8323(_0x2b6ce0(_0x4f185c)),_0x145dc1=window[_0x156ddb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x156ddb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x582fe2);return _0x145dc1?window[_0x156ddb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32600a(_0x145dc1),0x10)*_0x2821b8:null;}function _0x2dcf07(_0x4aff94){return new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41c450,_0x1752bd)=>{_0x4aff94[_0x156ddb([0x74,0x68,0x65,0x6e])](_0x41c450,_0x1752bd),window[_0x156ddb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1752bd,0x615807df^_0x294eeb);});}}_0x3471a4[_0x156ddb([0x6f,0x6e])](_0x156ddb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb3611c,_0x37e747)=>{if(_0x37e747[0x0]!=_0x4f185c)return _0x358f7b(_0x156ddb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37e747[0x1]={..._0x37e747[0x1],[_0x156ddb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a95b8};},{[_0x156ddb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x156ddb([0x68,0x69,0x67,0x68])}),_0x3471a4[_0x156ddb([0x6f,0x6e])](_0x156ddb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b4479=>{_0xb9159f(_0x2b4479[_0x156ddb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e7557=!0x0,_0x42713e(_0x2b4479[_0x156ddb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x156ddb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x156ddb([0x6c,0x6f,0x77])}),_0x1a1408[_0x156ddb([0x74,0x68,0x65,0x6e])](()=>{_0x5e7557||_0x358f7b(_0x156ddb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59ca41(){return _0x3471a4[_0x156ddb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x156ddb([0x76,0x69,0x65,0x77])][_0x156ddb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x156ddb([0x61,0x75,0x74,0x6f]);}function _0xd8ac7(){_0x3471a4[_0x156ddb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x156ddb([0x76,0x69,0x65,0x77])][_0x156ddb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x156ddb([0x61,0x75,0x74,0x6f]);}}function _0x21c1c9(_0x56cdc7){const _0x1dc286=[new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7c2802=>setTimeout(_0x7c2802,0x6150edd3^_0x294eeb)),_0x1a1408[_0x156ddb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd641f6=>{let _0x38bde1=0x0;_0x3471a4[_0x156ddb([0x6d,0x6f,0x64,0x65,0x6c])][_0x156ddb([0x6f,0x6e])](_0x156ddb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11fb0e,_0x3deae1)=>{_0x3deae1[0x0][_0x156ddb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x38bde1++,_0x38bde1==(0x6159d2e7^_0x294eeb)&&(_0xd641f6(),_0x11fb0e[_0x156ddb([0x6f,0x66,0x66])]());});}))];return window[_0x156ddb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x156ddb([0x72,0x61,0x63,0x65])](_0x1dc286)[_0x156ddb([0x74,0x68,0x65,0x6e])](()=>_0x56cdc7);}async function _0x562501(){await _0x1a1408,_0x3471a4[_0x156ddb([0x6d,0x6f,0x64,0x65,0x6c])][_0x156ddb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1ac103,_0x3471a4[_0x156ddb([0x6d,0x6f,0x64,0x65,0x6c])][_0x156ddb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1ac103,_0x3471a4[_0x156ddb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x156ddb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2bdeb6(){return _0x2a8cd0(_0x156ddb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4ce48d(_0x156ddb([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x156ddb([0x73,0x74,0x61,0x74,0x65])]==_0x156ddb([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x17da0c(){return _0x2a8cd0(_0x156ddb([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 _0xe2d3e3(){return _0x2a8cd0(_0x156ddb([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xaf6ccb(_0x50e9ce){const _0x4994d4=_0x1d9b9b();_0x3471a4[_0x4994d4]=_0x156ddb([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50e9ce,_0x50e9ce!=_0x156ddb([0x56,0x61,0x6c,0x69,0x64])&&_0x562501();}function _0x1d9b9b(){const _0x29ddb3=window[_0x156ddb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x156ddb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x156ddb([0x6e,0x6f,0x77])]())[_0x156ddb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x156ddb([0x2e]),'');let _0x554152=_0x156ddb([0x48]);for(let _0x2c1ac1=0x0;_0x2c1ac1<_0x29ddb3[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c1ac1+=0x2){let _0x55b796=window[_0x156ddb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29ddb3[_0x156ddb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c1ac1,_0x2c1ac1+0x2));_0x55b796>=_0x1b44cb[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x55b796-=_0x1b44cb[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x554152+=_0x1b44cb[_0x55b796];}return _0x554152;}function _0x2f4b6(){const _0x1d03a1=_0x2650c1[_0x156ddb([0x73,0x70,0x6c,0x69,0x74])](_0x156ddb([0x2e]));if(0x3!=_0x1d03a1[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x438463(_0x1d03a1[0x1]);function _0x438463(_0x389dad){const _0x590759=_0x34e1ea(_0x389dad);return _0x590759&&_0xf47c69()?_0x590759:null;function _0xf47c69(){const _0x32d509=_0x590759[_0x156ddb([0x6a,0x74,0x69])],_0x2b17f3=window[_0x156ddb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32d509[_0x156ddb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32d509[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x41a156={..._0x590759,[_0x156ddb([0x6a,0x74,0x69])]:_0x32d509[_0x156ddb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32d509[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x41a156[_0x156ddb([0x76,0x63])],_0x2b6ce0(_0x41a156)==_0x2b17f3;}}}async function _0x234a9e(){let _0xb34155=!0x0;try{const _0x15dc6f=_0x2650c1[_0x156ddb([0x73,0x70,0x6c,0x69,0x74])](_0x156ddb([0x2e])),[_0xada08b,_0x386914,_0x55984a]=_0x15dc6f;return _0x21cda4(_0xada08b),await _0x2ac08b(_0xada08b,_0x386914,_0x55984a),_0xb34155;}catch{return!0x1;}function _0x21cda4(_0x35b100){const _0x5c91e8=_0x34e1ea(_0x35b100);_0x5c91e8&&_0x5c91e8[_0x156ddb([0x61,0x6c,0x67])]==_0x156ddb([0x45,0x53,0x32,0x35,0x36])||(_0xb34155=!0x1);}async function _0x2ac08b(_0x14eaf8,_0x1c5dd9,_0x361a24){const _0x445abd=window[_0x156ddb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x156ddb([0x66,0x72,0x6f,0x6d])](_0x511109(_0x361a24),_0x2a10de=>_0x2a10de[_0x156ddb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x587f60=new window[(_0x156ddb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x156ddb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14eaf8+_0x156ddb([0x2e])+_0x1c5dd9),_0x3d9673=window[_0x156ddb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x156ddb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d9673)return;const _0x179bd0=await _0x3d9673[_0x156ddb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x156ddb([0x6a,0x77,0x6b]),_0x84eb51,{[_0x156ddb([0x6e,0x61,0x6d,0x65])]:_0x156ddb([0x45,0x43,0x44,0x53,0x41]),[_0x156ddb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x156ddb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x156ddb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d9673[_0x156ddb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x156ddb([0x6e,0x61,0x6d,0x65])]:_0x156ddb([0x45,0x43,0x44,0x53,0x41]),[_0x156ddb([0x68,0x61,0x73,0x68])]:{[_0x156ddb([0x6e,0x61,0x6d,0x65])]:_0x156ddb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x179bd0,_0x445abd,_0x587f60)||(_0xb34155=!0x1);}}function _0x34e1ea(_0x2148f2){return _0x2148f2[_0x156ddb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x156ddb([0x65,0x79]))?JSON[_0x156ddb([0x70,0x61,0x72,0x73,0x65])](_0x511109(_0x2148f2)):null;}function _0x511109(_0xfbc4fb){return window[_0x156ddb([0x61,0x74,0x6f,0x62])](_0xfbc4fb[_0x156ddb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x156ddb([0x2b]))[_0x156ddb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x156ddb([0x2f])));}function _0x2b6ce0(_0x2fc8f6){let _0x144ce1=0x1505;function _0xcae06e(_0xf46306){for(let _0x4b9513=0x0;_0x4b9513<_0xf46306[_0x156ddb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b9513++){const _0x2f118e=_0xf46306[_0x156ddb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b9513);_0x144ce1=(_0x144ce1<<0x5)+_0x144ce1+_0x2f118e,_0x144ce1&=_0x144ce1;}}function _0x5dc57e(_0x1f2a94){Array[_0x156ddb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1f2a94)?_0x1f2a94[_0x156ddb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5dc57e):_0x1f2a94&&typeof _0x1f2a94==_0x156ddb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x156ddb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1f2a94)[_0x156ddb([0x73,0x6f,0x72,0x74])]()[_0x156ddb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x192228,_0x477dab])=>{_0xcae06e(_0x192228),_0x5dc57e(_0x477dab);}):_0xcae06e(window[_0x156ddb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1f2a94));}return _0x5dc57e(_0x2fc8f6),_0x144ce1>>>0x0;}function _0x3c8323(_0x4f5a8d){return _0x4f5a8d[_0x156ddb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x156ddb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x156ddb([0x30]));}function _0x32600a(_0x26bda0){return _0x26bda0[_0x156ddb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x156ddb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x156ddb([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a8cd0(_0x2607cb){return _0x3471a4[_0x156ddb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x156ddb([0x68,0x61,0x73])](_0x2607cb);}function _0x4ce48d(_0xf10543){return _0x3471a4[_0x156ddb([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x156ddb([0x67,0x65,0x74])](_0xf10543);}function _0x1ac103(){}function _0x156ddb(_0x3f5134){return _0x3f5134['map'](_0x2eff85=>String['fromCharCode'](_0x2eff85))['join']('');}_0xaf6ccb(await _0x3f2ff1());}(this);}set['adapter'](_0x2a33c4){if(this['_adapter'])throw new _0x33c4a9('track-changes-adapter-already-set',this);this['_adapter']=_0x2a33c4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x203b44=!0x1,toJSON:_0x5672ff=!0x1}={}){const _0x4deeef=[];for(const _0x1560b1 of this['_suggestions']['values']())_0x203b44&&!_0x1560b1['isInContent']||_0x4deeef['push'](_0x1560b1);return _0x5672ff?_0x4deeef['map'](_0x16dbdb=>_0x16dbdb['toJSON']()):_0x4deeef;}['getSuggestion'](_0x18c19d){const _0x7402d7=this['_suggestions']['get'](_0x18c19d);if(!_0x7402d7)throw new _0x33c4a9('track-changes-suggestion-not-found',this);return _0x7402d7;}['hasSuggestion'](_0x46865e){return this['_suggestions']['has'](_0x46865e);}['addSuggestionData'](_0x196ad8){const {authorId:_0xbcdb65,id:_0x3c2c89,originalSuggestionId:_0x443468,attributes:_0xec8e2}=_0x196ad8,[_0x406c52,_0x162421]=_0x196ad8['type']['split'](':'),_0x53568f=this['_suggestions']['get'](_0x3c2c89)||this['_createSuggestion'](_0x406c52,_0x162421,_0x3c2c89,_0xbcdb65,_0xec8e2,_0x443468);if(this['_addThreadToSuggestion'](_0x53568f),this['_checkSuggestionCorrectness'](_0x53568f,_0x406c52,_0x162421||null,_0xbcdb65),_0x53568f['createdAt']=_0x196ad8['createdAt'],_0x53568f['_isDataLoaded']=!0x0,_0xec8e2&&_0xec8e2['@external']){const _0x2c6c59=_0xec8e2['@external'],_0x996363=this['_getExternalAuthor'](_0x2c6c59['authorName']);_0x53568f['authoredAt']=_0x2c6c59['createdAt'],_0x53568f['author']=_0x996363,_0x53568f['isExternal']=!0x0;}else _0x53568f['authoredAt']=_0x196ad8['createdAt'];switch(_0x196ad8['data']&&(_0x53568f['data']=_0x196ad8['data']),_0x196ad8['attributes']&&(_0x53568f['attributes']=_0x196ad8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x53568f['_saved']=!0x0),this['_suggestionState']['get'](_0x53568f)){case'notReady':this['_suggestionState']['set'](_0x53568f,'dataReady');break;case'markerReady':_0x53568f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x53568f])),this['_refreshSuggestionsChain'](new Set([_0x53568f])),this['_suggestionState']['set'](_0x53568f,'ready'),this['fire']('suggestionLoaded',_0x53568f)):this['_suggestionState']['set'](_0x53568f,'removed');}return _0x53568f;}['acceptSuggestion'](_0x51ff68){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27ab4e of _0x51ff68['getAllAdjacentSuggestions']())_0x27ab4e['accept']();});});}['discardSuggestion'](_0x410e0e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3fcb49 of _0x410e0e['getAllAdjacentSuggestions']())_0x3fcb49['discard']();});});}['enableCommand'](_0x423d1c,_0x48b811){const _0xa96ae1=this['editor']['commands']['get'](_0x423d1c);if(!_0xa96ae1)throw new _0x33c4a9('track-changes-command-not-found',this,{'commandName':_0x423d1c});if(this['_enabledCommands']['has'](_0xa96ae1))throw new _0x33c4a9('track-changes-enable-command-twice',this,{'commandName':_0x423d1c});this['_enabledCommands']['add'](_0xa96ae1),_0x48b811&&_0xa96ae1['on']('execute',(_0x2f4995,_0x5eaa0e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5eaa0e['length']>0x0&&_0x5eaa0e[_0x5eaa0e['length']-0x1]&&_0x5eaa0e[_0x5eaa0e['length']-0x1]['forceDefaultExecution']?_0x5eaa0e['pop']():(_0x2f4995['return']=_0x48b811((..._0x3fc6d3)=>_0xa96ae1['execute'](..._0x3fc6d3,{'forceDefaultExecution':!0x0}),..._0x5eaa0e),_0x2f4995['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3256a7){let _0x354b7c,_0x3edb67;const _0x35957c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x354b7c=_0x3256a7();}catch(_0x461dc8){_0x3edb67=_0x461dc8;}return _0x35957c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3edb67&&_0x33c4a9['rethrowUnexpectedError'](_0x3edb67,this),_0x354b7c;}['markInsertion'](_0x5e18c4,_0x335d4f=null,_0x3eebc1={}){if(_0x5e18c4['isCollapsed'])return null;const _0x2c62ad=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3eebc1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x478138,meta:_0x3f0285}of this['_findSuggestions'](_0x5e18c4,'insertion'))if(_0x3f0285['isOwn']){if(!_0x3f0285['isNextTo']){if(_0x3f0285['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Yt(_0x478138,_0x3eebc1))continue;return _0x478138;}if(Yt(_0x478138,_0x3eebc1))return _0x478138;this['_breakSuggestionMarker'](_0x478138,_0x5e18c4['start'],_0x5e18c4['end']);break;}if(_0x335d4f==_0x478138['subType']&&Yt(_0x478138,_0x3eebc1)){const _0x4590a3=_0x478138['getFirstRange']();return _0x4590a3['start']['isEqual'](_0x5e18c4['end'])?this['_setSuggestionRange'](_0x478138,this['_model']['createRange'](_0x5e18c4['start'],_0x4590a3['end'])):this['_setSuggestionRange'](_0x478138,this['_model']['createRange'](_0x4590a3['start'],_0x5e18c4['end'])),_0x478138;}}const _0x196154=_0x25ef3d(),_0x256c9c=_0x2c62ad['id'],_0x1d6d50=_0x335d4f?'insertion:'+_0x335d4f:'insertion',_0x2a0112=this['_setSuggestionData']({'id':_0x196154,'type':_0x1d6d50,'createdAt':new Date(),'authorId':_0x256c9c,'attributes':_0x3eebc1});return this['_addSuggestionMarker'](_0x1d6d50,_0x196154,_0x256c9c,_0x5e18c4),_0x2a0112;}['markMultiRangeInsertion'](_0x56af05,_0x5f4697='multi',_0x3642f7={}){const _0x21a0dd=this['editor']['plugins']['get']('Users')['me'],_0x43dd21=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5f4697,'join');this['_trackingSessionId']&&(_0x3642f7['trackingSessionId']=this['_trackingSessionId']);for(const _0x28a46f of this['getSuggestions']())if(_0x28a46f['author']['id']==_0x21a0dd['id']&&'insertion'==_0x28a46f['type']&&_0x28a46f['subType']==_0x5f4697&&Yt(_0x28a46f,_0x3642f7)&&(_0x43dd21(_0x28a46f['getRanges'](),_0x56af05)||_0x43dd21(_0x56af05,_0x28a46f['getRanges']()))){for(const _0x4e371c of _0x56af05)_0x28a46f['addRange'](_0x4e371c);return _0x28a46f;}for(const {suggestion:_0x43ce36,meta:_0x44d090}of this['_findSuggestions'](_0x56af05,'insertion')){if(!_0x44d090['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x44d090['containsRangeInObject'])continue;if(!Yt(_0x43ce36,_0x3642f7))continue;let _0x31aa3a=!0x0;for(const _0x3a9a70 of _0x43ce36['getRanges']())for(const _0x304bd1 of _0x56af05)if(!_0x3a9a70['containsRange'](_0x304bd1)){_0x31aa3a=!0x1;break;}if(_0x31aa3a)return _0x43ce36;}const _0x29941e=_0x25ef3d(),_0x11cbbe=_0x21a0dd['id'],_0x53cee6='insertion:'+_0x5f4697,_0x165943=this['_setSuggestionData']({'id':_0x29941e,'type':_0x53cee6,'createdAt':new Date(),'authorId':_0x11cbbe,'attributes':_0x3642f7});for(const _0x1a1e09 of _0x56af05)this['_addSuggestionMarker'](_0x53cee6,_0x29941e,_0x11cbbe,_0x1a1e09,o['getMultiRangeId']());return _0x165943;}['markInlineFormat'](_0x35b670,_0x58e654,_0x23a8c8=null,_0x28a429={}){if(_0x23a8c8=_0x23a8c8||Kt(_0x58e654),_0x35b670['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x28a429['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1a7ba0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23a8c8,'accept');return this['forceDefaultExecution'](()=>_0x1a7ba0([_0x35b670],_0x58e654,_0x28a429)),null;}const _0x4cf5ae=this['editor']['plugins']['get']('Users')['me'],_0x130849=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d623e,meta:_0x34f4cb}of this['_findSuggestions'](_0x35b670,'insertion'))_0x34f4cb['isOwn']&&!_0x34f4cb['isInsideObject']&&_0x130849['push'](..._0x2d623e['getRanges']());}const _0x2de051=function(_0x57abad,_0x26e3a9){const _0x4f6b15=[];for(const _0x2c0e26 of _0x26e3a9){const _0x2fc042=_0x57abad['getIntersection'](_0x2c0e26);_0x2fc042&&_0x4f6b15['push'](_0x2fc042);}return _0x4f6b15;}(_0x35b670,_0x130849),_0x56ac48=function(_0x2b152f,_0x518cc5){const _0x95fec8=[_0x2b152f];for(const _0x4d6ba3 of _0x518cc5){let _0x23da65=0x0;for(;_0x23da65<_0x95fec8['length'];){const _0x2ab1f5=_0x95fec8[_0x23da65]['getDifference'](_0x4d6ba3);_0x95fec8['splice'](_0x23da65,0x1,..._0x2ab1f5),_0x23da65+=_0x2ab1f5['length'];}}return _0x95fec8;}(_0x35b670,_0x130849);_0x2de051['length']&&this['_model']['change'](()=>{for(const _0x366935 of _0x2de051){const _0x16720d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23a8c8,'accept');this['forceDefaultExecution'](()=>_0x16720d([_0x366935],_0x58e654,_0x28a429));}});for(const _0x2d6dbd of _0x56ac48){let _0x46cfc1=null,_0x51e3ff=_0x2d6dbd['start'],_0x55eb36=_0x2d6dbd['end'];for(const {suggestion:_0x5e82bb,meta:_0x114b58}of this['_findSuggestions'](_0x2d6dbd,'formatInline')){if(!_0x114b58['isOwn'])continue;if(_0x5e82bb['subType']!=_0x23a8c8)continue;if(!Yt(_0x5e82bb,_0x28a429))continue;const _0x567b81=_0x5e82bb['getFirstRange']();if(_0x567b81['containsRange'](_0x2d6dbd,!0x0))return null;_0x51e3ff=_0x51e3ff['isBefore'](_0x567b81['start'])?_0x51e3ff:_0x567b81['start'],_0x55eb36=_0x55eb36['isAfter'](_0x567b81['end'])?_0x55eb36:_0x567b81['end'],_0x46cfc1?_0x567b81['start']['isBefore'](_0x46cfc1['getFirstRange']()['start'])?(_0x46cfc1['removeMarkers'](),_0x46cfc1=_0x5e82bb):_0x5e82bb['removeMarkers']():_0x46cfc1=_0x5e82bb;}const _0x43b70c=this['_model']['createRange'](_0x51e3ff,_0x55eb36);if(_0x46cfc1)this['_setSuggestionRange'](_0x46cfc1,_0x43b70c);else{const _0x17da7b=_0x25ef3d(),_0x42e69c=_0x4cf5ae['id'];this['_setSuggestionData']({'id':_0x17da7b,'type':'formatInline:'+_0x23a8c8,'data':_0x58e654,'createdAt':new Date(),'authorId':_0x42e69c,'attributes':_0x28a429}),this['_addSuggestionMarker']('formatInline:'+_0x23a8c8,_0x17da7b,_0x42e69c,_0x43b70c);}}return null;}['markBlockFormat'](_0x3ddce4,_0x374e0e,_0x2c3b0a=[],_0x5bad27=null,_0x4961dd={}){_0x374e0e['formatGroupId']||(_0x374e0e['formatGroupId']=_0x374e0e['commandName']),_0x374e0e['multipleBlocks']=_0x3ddce4['is']('range'),_0x5bad27=_0x5bad27||Kt(_0x374e0e);const _0x5d020e=_0x2c3b0a['map'](_0x4556f0=>Wt(_0x4556f0,this['_model'])),_0x2cf010=_0x3ddce4['is']('range')?_0x3ddce4:Wt(_0x3ddce4,this['_model']);if(this['_trackingSessionId']&&(_0x4961dd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x385d28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bad27,'accept');return this['forceDefaultExecution'](()=>_0x385d28([_0x2cf010],_0x374e0e,_0x4961dd)),null;}_0x5d020e['push'](_0x2cf010);let _0x19471a=!0x0;for(const _0x39053b of _0x5d020e)if(!this['_rangeIsInLocalUserInsertion'](_0x39053b)){_0x19471a=!0x1;break;}if(_0x19471a&&'always'!==this['_trackFormatChanges']){const _0x5e9ce2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bad27,'accept');return this['forceDefaultExecution'](()=>_0x5e9ce2([_0x2cf010],_0x374e0e,_0x4961dd)),null;}let _0x377f9e=null,_0xb4842b=_0x2cf010['start'],_0x21f6db=_0x2cf010['end'];for(const {suggestion:_0x7029a2,meta:_0x261bf1}of this['_findSuggestions'](_0x2cf010,'formatBlock')){if(!_0x261bf1['isOwn'])continue;if(_0x261bf1['isNextTo']||_0x261bf1['containsRangeInObject']||_0x261bf1['isInsideObject'])continue;if(_0x7029a2['data']['formatGroupId']!=_0x374e0e['formatGroupId'])continue;if(!Yt(_0x7029a2,_0x4961dd))continue;const _0x162520=_0x7029a2['getFirstRange']();if(_0x7029a2['subType']==_0x5bad27){if(_0x162520['containsRange'](_0x2cf010,!0x0))return null;_0xb4842b=_0xb4842b['isBefore'](_0x162520['start'])?_0xb4842b:_0x162520['start'],_0x21f6db=_0x21f6db['isAfter'](_0x162520['end'])?_0x21f6db:_0x162520['end'],_0x377f9e?_0x162520['start']['isBefore'](_0x377f9e['getFirstRange']()['start'])?(_0x377f9e['removeMarkers'](),_0x377f9e=_0x7029a2):_0x7029a2['removeMarkers']():_0x377f9e=_0x7029a2;}else{const _0x234440=_0x2cf010['getIntersection'](_0x162520);this['_cutOutSuggestionMarker'](_0x7029a2,_0x234440);}}const _0x39eac3=this['editor']['plugins']['get']('Users')['me'],_0x4dea88=_0x25ef3d(),_0x1a4be2=_0x39eac3['id'];if(_0x377f9e)return this['_setSuggestionRange'](_0x377f9e,this['_model']['createRange'](_0xb4842b,_0x21f6db)),_0x377f9e;{const _0x395d2d=this['_setSuggestionData']({'id':_0x4dea88,'type':'formatBlock:'+_0x5bad27,'data':_0x374e0e,'createdAt':new Date(),'authorId':_0x1a4be2,'attributes':_0x4961dd});return this['_addSuggestionMarker']('formatBlock:'+_0x5bad27,_0x4dea88,_0x1a4be2,this['_model']['createRange'](_0xb4842b,_0x21f6db)),_0x395d2d;}}['markMultiRangeBlockFormat'](_0x53bb7a,_0x374fb7,_0x5620b4=[],_0x456319=null,_0x2bd006={}){_0x374fb7['formatGroupId']||(_0x374fb7['formatGroupId']=_0x374fb7['commandName']);const _0x4ea045=_0x53bb7a[0x0];_0x374fb7['multipleBlocks']=_0x4ea045['is']('range'),_0x456319=_0x456319||Kt(_0x374fb7);const _0x432217=_0x5620b4['map'](_0x4e5b8f=>Wt(_0x4e5b8f,this['_model'])),_0x77f6a2=_0x4ea045['is']('range')?_0x53bb7a:_0x53bb7a['map'](_0x249ab1=>Wt(_0x249ab1,this['_model']));if(this['_trackingSessionId']&&(_0x2bd006['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x39e83e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x456319,'accept');return this['forceDefaultExecution'](()=>_0x39e83e(_0x77f6a2,_0x374fb7,_0x2bd006)),null;}_0x432217['push'](..._0x77f6a2);let _0x53574c=!0x0;for(const _0x30a94e of _0x432217)if(!this['_rangeIsInLocalUserInsertion'](_0x30a94e)){_0x53574c=!0x1;break;}if(_0x53574c&&'always'!==this['_trackFormatChanges']){const _0x15ce5b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x456319,'accept');return this['forceDefaultExecution'](()=>_0x15ce5b(_0x77f6a2,_0x374fb7,_0x2bd006)),null;}const _0x21456d=this['editor']['plugins']['get']('Users')['me'];for(const _0x16959a of this['getSuggestions']()){if(_0x16959a['author']['id']!=_0x21456d['id'])continue;if('formatBlock'!=_0x16959a['type']||_0x16959a['data']['formatGroupId']!=_0x374fb7['formatGroupId'])continue;if(!Yt(_0x16959a,_0x2bd006))continue;const _0x5d994b=_0x16959a['subType']==_0x456319;for(let _0x3e8c57=0x0;_0x3e8c57<_0x77f6a2['length'];_0x3e8c57++){const _0x245c3d=_0x77f6a2[_0x3e8c57];for(const _0x383a62 of _0x16959a['getMarkers']()){const _0x3c25c8=_0x383a62['getRange']();if(_0x245c3d['isEqual'](_0x3c25c8)){_0x5d994b?(_0x77f6a2['splice'](_0x3e8c57,0x1),_0x3e8c57--):_0x16959a['removeMarker'](_0x383a62['name']);break;}}}}if(0x0==_0x77f6a2['length'])return null;const _0x1a4780=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x456319,'join');for(const _0xa1bf91 of this['getSuggestions']())if(_0xa1bf91['author']['id']==_0x21456d['id']&&'formatBlock'==_0xa1bf91['type']&&_0xa1bf91['data']['formatGroupId']==_0x374fb7['formatGroupId']&&_0xa1bf91['subType']==_0x456319&&Yt(_0xa1bf91,_0x2bd006)&&(_0x1a4780(_0xa1bf91['getRanges'](),_0x77f6a2)||_0x1a4780(_0x77f6a2,_0xa1bf91['getRanges']()))){for(const _0x42d452 of _0x77f6a2)_0xa1bf91['addRange'](_0x42d452);return _0xa1bf91;}const _0x40c5f7=_0x25ef3d(),_0x29cf1c=_0x21456d['id'],_0x5d74f6='formatBlock:'+_0x456319,_0x187b1e=this['_setSuggestionData']({'id':_0x40c5f7,'type':_0x5d74f6,'data':_0x374fb7,'createdAt':new Date(),'authorId':_0x29cf1c,'attributes':_0x2bd006});for(const _0x31007b of _0x77f6a2)this['_addSuggestionMarker'](_0x5d74f6,_0x40c5f7,_0x29cf1c,_0x31007b,o['getMultiRangeId']());return _0x187b1e;}['markDeletion'](_0x19feaf,_0x369bcc=null,_0x28790c={}){if(_0x19feaf['isCollapsed'])return null;const _0x28ebd9=this['editor']['plugins']['get']('Users')['me'],_0x2dd0ef=new _0xf8fd8e(_0x19feaf['start'],_0x19feaf['end']);this['_trackingSessionId']&&(_0x28790c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x16bdd5,meta:_0x153844}of this['_findSuggestions'](_0x2dd0ef,'insertion'))if(_0x153844['isOwn']&&!_0x153844['isNextTo']){if(_0x16bdd5['isMultiRange']){const _0x153363=_0x16bdd5['getRanges']()['filter'](_0xaebe9=>'$graveyard'!=_0xaebe9['root']['rootName']);_0x153363['every'](_0x5e152e=>_0x2dd0ef['containsRange'](_0x5e152e,!0x0))&&_0x16bdd5['discard']();if(_0x153363['some'](_0x40fe4e=>_0x40fe4e['containsRange'](_0x2dd0ef,!0x0))){const _0x4a1dd5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x369bcc,'accept');return this['forceDefaultExecution'](()=>_0x4a1dd5([_0x2dd0ef],null,_0x28790c)),null;}}else{const _0x32eb71=_0x2dd0ef['getIntersection'](_0x16bdd5['getFirstRange']());null!==_0x32eb71&&_0x16bdd5['_onDiscard']([_0x32eb71],null,_0x28790c);}}if(_0x2dd0ef['detach'](),_0x2dd0ef['isCollapsed']||'$graveyard'==_0x2dd0ef['root']['rootName'])return null;let _0x371562=null,_0x87434b=_0x2dd0ef['start'],_0x4c6d2b=_0x2dd0ef['end'];const _0x49b550=this['_findSuggestions'](_0x2dd0ef,'deletion');for(const {suggestion:_0x3b251b,meta:_0x4f6036}of _0x49b550){const _0xf13181=this['_model']['createRange'](_0x87434b,_0x4c6d2b);if(_0x4f6036['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4f6036['containsRangeInObject']&&!_0x4f6036['isInsideObject'])){if(_0x3b251b['isMultiRange']){if(!Yt(_0x3b251b,_0x28790c))continue;let _0x49a386=!0x0;for(const _0x1534dc of _0x3b251b['getRanges']()){if(_0x1534dc['containsRange'](_0xf13181,!0x0))return _0x3b251b;_0xf13181['containsRange'](_0x1534dc)||(_0x49a386=!0x1);}_0x49a386&&_0x3b251b['discard']();}else{const _0x105fcb=_0x3b251b['getFirstRange']();if(_0x105fcb['containsRange'](_0xf13181,!0x0))return _0x3b251b;if(!Yt(_0x3b251b,_0x28790c)){_0xf13181['containsRange'](_0x105fcb)?_0x3b251b['removeMarkers']():_0x105fcb['containsPosition'](_0x87434b)?_0x87434b=_0x105fcb['end']:_0x105fcb['containsPosition'](_0x4c6d2b)&&(_0x4c6d2b=_0x105fcb['start']);continue;}_0x87434b=_0x87434b['isBefore'](_0x105fcb['start'])?_0x87434b:_0x105fcb['start'],_0x4c6d2b=_0x4c6d2b['isAfter'](_0x105fcb['end'])?_0x4c6d2b:_0x105fcb['end'],_0x28790c=Object['assign']({},_0x3b251b['attributes']),_0x371562?_0x105fcb['start']['isBefore'](_0x371562['getFirstRange']()['start'])?(_0x371562['removeMarkers'](),_0x371562=_0x3b251b):_0x3b251b['removeMarkers']():_0x371562=_0x3b251b;}}}if(_0x371562)return this['_setSuggestionRange'](_0x371562,this['_model']['createRange'](_0x87434b,_0x4c6d2b)),_0x371562;{const _0x7f0b5b=_0x25ef3d(),_0x5def39=this['_model']['createRange'](_0x87434b,_0x4c6d2b),_0x66b4ac=_0x28ebd9['id'],_0x1c3761=_0x369bcc?'deletion:'+_0x369bcc:'deletion',_0x27fb94=this['_setSuggestionData']({'id':_0x7f0b5b,'type':_0x1c3761,'createdAt':new Date(),'authorId':_0x66b4ac,'attributes':_0x28790c});return this['_addSuggestionMarker'](_0x1c3761,_0x7f0b5b,_0x66b4ac,_0x5def39),_0x27fb94;}}['markMultiRangeDeletion'](_0x4dbcb4,_0x354def='multi',_0x5d335d={}){const _0x1c8d19=this['editor']['plugins']['get']('Users')['me'],_0x10338e=_0x4dbcb4['map'](_0x509d3a=>new _0xf8fd8e(_0x509d3a['start'],_0x509d3a['end'])),_0x4132b8=new Set();this['_trackingSessionId']&&(_0x5d335d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x7be099,meta:_0x2e1a18}of this['_findSuggestions'](_0x10338e,'insertion'))_0x2e1a18['isOwn']&&!_0x2e1a18['isNextTo']&&_0x4132b8['add'](_0x7be099);for(const _0x280cdf of _0x4132b8)if(_0x280cdf['isMultiRange']){const _0x1368a6=_0x280cdf['getRanges']();(!_0x280cdf['attributes']||!_0x280cdf['attributes']['skipNestingCheck'])&&(_0x1368a6['every'](_0x342873=>_0x10338e['some'](_0x18c72e=>_0x18c72e['containsRange'](_0x342873,!0x0)))&&_0x280cdf['discard']());if(_0x10338e['every'](_0x2137e6=>_0x1368a6['some'](_0x76fd8=>_0x76fd8['containsRange'](_0x2137e6,!0x0)))){const _0x1743b4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354def,'accept');return this['forceDefaultExecution'](()=>_0x1743b4(_0x4dbcb4,null,_0x5d335d)),null;}}else{const _0x2ea27c=_0x280cdf['getFirstRange']();_0x10338e['some'](_0xbc655a=>_0xbc655a['containsRange'](_0x2ea27c,!0x0))&&_0x280cdf['discard']();if(_0x10338e['every'](_0x505a3f=>_0x2ea27c['containsRange'](_0x505a3f,!0x0))){const _0x52bbc6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354def,'accept');return this['forceDefaultExecution'](()=>_0x52bbc6(_0x10338e,null,_0x5d335d)),null;}}const _0x1eec6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354def,'join');let _0x5c3704=null;for(const _0x5b7d81 of this['getSuggestions']())if(_0x5b7d81['author']['id']==_0x1c8d19['id']&&_0x5b7d81['isInContent']&&'deletion'==_0x5b7d81['type']&&_0x5b7d81['subType']==_0x354def&&Yt(_0x5b7d81,_0x5d335d)&&(_0x1eec6b(_0x5b7d81['getRanges'](),_0x10338e)||_0x1eec6b(_0x10338e,_0x5b7d81['getRanges']()))){if(_0x5c3704){if(_0x5b7d81['commentThread']&&_0x5b7d81['commentThread']['length'])continue;for(const _0x2d0c5f of _0x5b7d81['getRanges']())_0x5c3704['isIntersectingWithRange'](_0x2d0c5f)||_0x5c3704['addRange'](_0x2d0c5f);_0x5b7d81['removeMarkers']();}else{_0x5c3704=_0x5b7d81;for(const _0x2fb897 of _0x10338e)_0x5b7d81['isIntersectingWithRange'](_0x2fb897)||_0x5b7d81['addRange'](_0x2fb897);}}if(_0x5c3704)return _0x5c3704;_0x4132b8['clear']();for(const {suggestion:_0x5a5a11,meta:_0x11d68f}of this['_findSuggestions'](_0x10338e,'deletion'))_0x11d68f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x11d68f['containsRangeInObject']&&!_0x11d68f['isInsideObject'])&&Yt(_0x5a5a11,_0x5d335d)&&_0x4132b8['add'](_0x5a5a11);for(const _0x94ff58 of _0x4132b8){const _0x1a5043=_0x94ff58['getRanges']();if(!_0x5d335d||!_0x5d335d['skipNestingCheck']){if(_0x10338e['every'](_0x3939e7=>_0x1a5043['some'](_0x295ea4=>_0x295ea4['containsRange'](_0x3939e7,!0x0))))return _0x94ff58;}(!_0x94ff58['attributes']||!_0x94ff58['attributes']['skipNestingCheck'])&&(_0x1a5043['every'](_0x4665e5=>_0x10338e['some'](_0x29a8a8=>_0x29a8a8['containsRange'](_0x4665e5,!0x0)))&&_0x94ff58['discard']());}const _0x1eeeff=_0x25ef3d(),_0x3f30ca=_0x1c8d19['id'],_0x167eb3='deletion:'+_0x354def,_0x134e5b=this['_setSuggestionData']({'id':_0x1eeeff,'type':_0x167eb3,'createdAt':new Date(),'authorId':_0x3f30ca,'attributes':_0x5d335d});for(const _0x20241 of _0x10338e)_0x20241['detach'](),_0x20241['isCollapsed']||'$graveyard'==_0x20241['root']['rootName']||this['_addSuggestionMarker'](_0x167eb3,_0x1eeeff,_0x3f30ca,_0x20241,o['getMultiRangeId']());return _0x134e5b;}['markAttributeChange'](_0x4c90cf,_0x4b2d76,_0x360f78,_0x48d337,_0x541bc9){if(_0x4c90cf['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x55ed2c=this['editor']['plugins']['get']('Users')['me']['id'],_0x2cbea0=Array['from'](this['_suggestions']['values']())['filter'](_0x31ad71=>'attribute'==_0x31ad71['type']&&_0x31ad71['data']['key']==_0x4b2d76&&_0x31ad71['isIntersectingWithRange'](_0x4c90cf));if(this['_trackingSessionId']&&(_0x541bc9['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x555e41=this['_findSuggestions'](_0x4c90cf,'insertion')['filter'](({meta:_0xbdf52e})=>_0xbdf52e['isOwn']&&!_0xbdf52e['isInsideObject']&&!_0xbdf52e['isNextTo'])['map'](({suggestion:_0x147ab2})=>_0x147ab2);_0x2cbea0['unshift'](..._0x555e41);}const _0x2730f7=new Map([[_0x4c90cf,_0x360f78]]);for(const _0x556c4c of _0x2cbea0){const _0x1bf2ce='attribute'==_0x556c4c['type']?_0x556c4c['data']['oldValue']:void 0x0,_0x38f250=_0x556c4c['getFirstRange'](),_0x4729b6=Array['from'](_0x2730f7['keys']())['find'](_0x546764=>_0x546764['isIntersecting'](_0x38f250));if(!_0x4729b6)continue;const _0x472913=_0x4729b6['getDifference'](_0x38f250);this['_isBlockAttribute'](_0x4b2d76)&&'insertion'==_0x556c4c['type']&&0x0!=_0x472913['length']||(_0x2730f7['delete'](_0x4729b6),_0x472913['forEach'](_0x2050e1=>{_0x2730f7['set'](_0x2050e1,_0x360f78);}),'insertion'!=_0x556c4c['type']&&_0x1bf2ce!=_0x48d337&&_0x2730f7['set'](_0x4729b6['getIntersection'](_0x38f250),_0x1bf2ce));}const _0x3c127d=[];for(const [_0x58ea4a,_0x47f583]of _0x2730f7){const _0x4e5e57=_0x25ef3d(),_0x42a2c4={'key':_0x4b2d76,'oldValue':_0x47f583,'newValue':_0x48d337};_0x4b2d76['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':_0x4b2d76});const _0x1c2623=('attribute:'+(_0x4b2d76+'|'+Kt({'newValue':_0x48d337})))['substring'](0x0,0x3c),_0x5b0aac=this['_setSuggestionData']({'id':_0x4e5e57,'type':_0x1c2623,'data':_0x42a2c4,'createdAt':new Date(),'authorId':_0x55ed2c,'attributes':_0x541bc9});_0x3c127d['push'](_0x5b0aac),this['_addSuggestionMarker'](_0x1c2623,_0x4e5e57,_0x55ed2c,_0x58ea4a);}return _0x3c127d;}['enableDefaultAttributesIntegration'](_0x28739e){this['enableCommand'](_0x28739e,(_0x15fc55,..._0x2af99b)=>{this['_recordAttributeChanges'](()=>{_0x15fc55(..._0x2af99b);});});}['registerBlockAttribute'](_0x260f5c){this['_blockAttributeKeys']['add'](_0x260f5c);}['registerInlineAttribute'](_0x5c2a96){this['_inlineAttributeKeys']['add'](_0x5c2a96);}['startTrackingSession'](_0x52c364){return this['_trackingSessionId']=void 0x0!==_0x52c364?_0x52c364:_0x25ef3d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5d2953){return'attribute'==_0x5d2953['type']?_0x5d2953['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b99eb,_0x44966e){const _0x2ed272=_0x1b99eb['getFirstMarker']();this['_model']['change'](_0x266704=>{_0x266704['updateMarker'](_0x2ed272,{'range':_0x44966e});});}['_addThreadToSuggestion'](_0x5d63f3){const _0x376ed6=_0x5d63f3['id'],_0x3b2b0f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x376ed6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3b2b0f,'threadId':_0x376ed6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5d1a62=this['_commentsRepository']['getCommentThread'](_0x376ed6);_0x5d1a62['unbind']('isRemovable'),_0x5d1a62['isRemovable']=!0x1,_0x5d63f3['commentThread']=_0x5d1a62;}['_checkSuggestionCorrectness'](_0x553563,_0x12bf7b,_0x3aff86,_0xcf98c8){if(_0x553563['type']!=_0x12bf7b||_0x553563['subType']!=_0x3aff86||_0x553563['creator']['id']!=_0xcf98c8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x33c4a9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3a1c3d,_0x4428d5){const _0x151b88=_0x3a1c3d['getFirstRange']();if(_0x4428d5['isEqual'](_0x151b88))_0x3a1c3d['removeMarkers']();else{if(_0x151b88['containsRange'](_0x4428d5)){const _0x48b63c=this['_model']['createPositionAt'](_0x4428d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a1c3d,this['_model']['createRange'](_0x151b88['start'],_0x48b63c));const _0x4b490e=_0x25ef3d(),_0x4210b0=_0x3a1c3d['creator']['id'],_0xeb82dd=_0x3a1c3d['type']+':'+_0x3a1c3d['subType'];this['_setSuggestionData']({'id':_0x4b490e,'type':_0xeb82dd,'createdAt':new Date(),'authorId':_0x4210b0,'data':_0x3a1c3d['data'],'attributes':_0x3a1c3d['attributes']});const _0x4d0c35=this['_model']['createPositionAt'](_0x4428d5['end']['parent'],'after'),_0x1d1739=this['_model']['createRange'](_0x4d0c35,_0x151b88['end']);this['_addSuggestionMarker'](_0xeb82dd,_0x4b490e,_0x4210b0,_0x1d1739);}else{if(_0x151b88['containsPosition'](_0x4428d5['start'])){const _0x494bd1=this['_model']['createPositionAt'](_0x4428d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3a1c3d,this['_model']['createRange'](_0x151b88['start'],_0x494bd1));}else{const _0x1e4226=this['_model']['createPositionAt'](_0x4428d5['end']['parent'],'after');this['_setSuggestionRange'](_0x3a1c3d,this['_model']['createRange'](_0x1e4226,_0x151b88['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xd4ea29){for(const {suggestion:_0x2331f9,meta:_0x19ee74}of this['_findSuggestions'](_0xd4ea29,'insertion')){if(!_0x19ee74['isOwn'])continue;const _0xe61d09=_0x2331f9['getRanges']();for(const _0x195c47 of _0xe61d09)if(!_0xd4ea29['getDifference'](_0x195c47)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xf841b7){const _0x683c23=this['editor']['plugins']['get']('Users')['getUser'](_0xf841b7);if(!_0x683c23)throw new _0x33c4a9('track-changes-user-not-found',this);return _0x683c23;}['_getExternalAuthor'](_0x12d65c){const _0x270575=this['editor']['plugins']['get']('Users'),_0x2203bc=_0x51efad('external:'+_0x12d65c),_0x5e0b2f=_0x270575['getUser'](_0x2203bc);return _0x5e0b2f||_0x270575['addUser']({'id':_0x2203bc,'name':_0x12d65c});}['_createSuggestion'](_0x43e2fd,_0xf44c79,_0x383790,_0xee700d,_0x481a23,_0x2457cb){const _0x4c1d30=this['_getAuthorFromId'](_0xee700d),_0x547c9b=this['_suggestionFactory']['buildSuggestion'](_0x43e2fd,_0xf44c79,_0x383790,_0x4c1d30,_0x481a23,_0x42ce56=>{this['_updateSuggestionData'](_0x383790,{'attributes':_0x42ce56});const _0x1343af=this['getSuggestion'](_0x383790);this['_joinWithAdjacentSuggestions'](new Set([_0x1343af])),this['_refreshSuggestionsChain'](new Set([_0x1343af]));},_0x2457cb);return this['listenTo'](_0x547c9b,'accept',()=>{this['_updateSuggestionData'](_0x383790,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x547c9b,'discard',()=>{this['_updateSuggestionData'](_0x383790,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x383790,_0x547c9b),this['_suggestionState']['set'](_0x547c9b,'notReady'),_0x547c9b;}['_splitMarkerName'](_0x9b12cc){const _0x118137=_0x9b12cc['split'](':');return{'group':_0x118137[0x0],'type':_0x118137[0x1],'subType':_0x118137['length']>=0x5?_0x118137[0x2]:null,'id':_0x118137['length']<0x5?_0x118137[0x2]:_0x118137[0x3],'authorId':_0x118137['length']<0x5?_0x118137[0x3]:_0x118137[0x4],'markerCount':0x6==_0x118137['length']?_0x118137[0x5]:null};}['_breakSuggestionMarker'](_0x57f9ff,_0x33d51c,_0x2b84aa){const _0x42bf1c=_0x57f9ff['getFirstRange'](),_0x1ef86a=_0x42bf1c['start'],_0x58262a=_0x42bf1c['end'];this['_setSuggestionRange'](_0x57f9ff,this['_model']['createRange'](_0x1ef86a,_0x33d51c));const _0x3e4cbe=_0x25ef3d(),_0x2cb4a1=_0x57f9ff['creator']['id'],_0x15475b=_0x57f9ff['type']+(_0x57f9ff['subType']?':'+_0x57f9ff['subType']:'');this['_setSuggestionData']({'id':_0x3e4cbe,'type':_0x15475b,'createdAt':new Date(),'authorId':_0x2cb4a1,'originalSuggestionId':_0x57f9ff['_originalSuggestionId']||_0x57f9ff['id'],'attributes':_0x57f9ff['attributes'],'data':_0x57f9ff['data']});const _0x4bac65=this['_getAttributeKey'](_0x57f9ff);('formatBlock'==_0x57f9ff['type']||_0x4bac65&&this['_isBlockAttribute'](_0x4bac65))&&(_0x2b84aa=this['_model']['createPositionBefore'](_0x2b84aa['parent'])),this['_addSuggestionMarker'](_0x15475b,_0x3e4cbe,_0x2cb4a1,this['_model']['createRange'](_0x2b84aa,_0x58262a));}['_findSuggestions'](_0x2b566e,_0x2514c4=null){const _0x47ec0c=[],_0x5cf384=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2b566e)||(_0x2b566e=[_0x2b566e]);for(const _0x400d75 of this['getSuggestions']()){if(!_0x400d75['isInContent'])continue;if(_0x2514c4&&_0x400d75['type']!=_0x2514c4)continue;let _0x3328f4=!0x1;for(const _0x58ce36 of _0x400d75['getRanges']()){for(const _0xf08667 of _0x2b566e){const _0x175f3c=_0xf08667['start']['isEqual'](_0x58ce36['end'])||_0xf08667['end']['isEqual'](_0x58ce36['start']);if(_0x175f3c||_0xf08667['getIntersection'](_0x58ce36)){const _0x1abf78=_0xf08667['containsRange'](_0x58ce36)&&Gt(this['_model']['schema'],_0x58ce36['start'],_0xf08667),_0x30e9b5=_0x58ce36['containsRange'](_0xf08667)&&Gt(this['_model']['schema'],_0xf08667['start'],_0x58ce36);_0x47ec0c['push']({'suggestion':_0x400d75,'meta':{'isOwn':_0x5cf384==_0x400d75['author'],'isNextTo':_0x175f3c,'isInsideObject':_0x1abf78,'containsRangeInObject':_0x30e9b5}}),_0x3328f4=!0x0;break;}}if(_0x3328f4)break;}}return _0x47ec0c;}['_addSuggestionMarker'](_0x5bc7d7,_0x3f67c6,_0x5066c5,_0x2bf1ba,_0x245e51){this['_model']['change'](_0xc8be37=>{let _0x36e8c9='suggestion:'+_0x5bc7d7+':'+_0x3f67c6+':'+_0x5066c5;_0x245e51&&(_0x36e8c9=_0x36e8c9+':'+_0x245e51),_0xc8be37['addMarker'](_0x36e8c9,{'range':_0x2bf1ba,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xcd6e10){const _0x7fb4b2=_0xcd6e10['previous'],_0x161b20=_0xcd6e10['next'];_0xcd6e10['previous']=null,_0xcd6e10['next']=null,null!=_0x7fb4b2&&_0x7fb4b2['next']==_0xcd6e10&&(_0x7fb4b2['next']=_0x161b20),null!=_0x161b20&&_0x161b20['previous']==_0xcd6e10&&(_0x161b20['previous']=_0x7fb4b2),'ready'==this['_suggestionState']['get'](_0xcd6e10)&&(this['_suggestionState']['set'](_0xcd6e10,'removed'),this['fire']('suggestionUnloaded',_0xcd6e10,_0x7fb4b2,_0x161b20));}['_setSuggestionData'](_0x7b9dbf){const _0x54ad75=_0x7b9dbf['id'],_0x3920f4=this['addSuggestionData'](_0x7b9dbf);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x53feae=this['editor']['plugins']['get']('PendingActions'),_0x23b9b1=_0x3920f4['hasComments'],_0x463093=_0x3920f4['subType']?_0x3920f4['type']+':'+_0x3920f4['subType']:_0x3920f4['type'],_0x53ec2e=this['editor']['locale'],_0x525370=_0x53feae['add'](c(_0x53ec2e,'PENDING_ACTION_SUGGESTION')),_0x45678e={'id':_0x54ad75,'type':_0x463093,'hasComments':_0x23b9b1,'data':_0x7b9dbf['data']||null,'originalSuggestionId':_0x7b9dbf['originalSuggestionId']||null,'attributes':_0x3920f4['attributes']};this['_adapter']['addSuggestion'](_0x45678e)['then'](_0x4bfcaf=>{_0x3920f4['_saved']=!0x0,_0x53feae['remove'](_0x525370),_0x4bfcaf&&_0x4bfcaf['createdAt']&&(this['_suggestions']['get'](_0x54ad75)['createdAt']=_0x4bfcaf['createdAt']);})['catch'](_0x4e8cdd=>{throw _0x24dc67('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3920f4['discard']();}),_0x3920f4['stopListening'](),this['_suggestions']['delete'](_0x3920f4['id']),this['_suggestionState']['delete'](_0x3920f4),_0x4e8cdd;});}return _0x3920f4;}['_isBlockAttribute'](_0x1390dd){return this['_blockAttributeKeys']['has'](_0x1390dd);}['_updateSuggestionData'](_0x476d0b,_0x3b4c0e){const _0x2dfebd=this['editor']['plugins']['get']('PendingActions'),_0x3832ed=this['getSuggestion'](_0x476d0b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3832ed['_saved']){const _0x9f91b5=_0x2dfebd['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x476d0b,_0x3b4c0e)['then'](()=>{_0x2dfebd['remove'](_0x9f91b5);});}else _0x3832ed['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x476d0b,_0x3b4c0e);});}}['_getSuggestionData'](_0x80053d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x33c4a9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x80053d);}['_handleNewSuggestionMarker'](_0x5a91f){const {id:_0xd220c4,type:_0x810e3d,subType:_0xe71982,authorId:_0x58e4d6}=this['_splitMarkerName'](_0x5a91f),_0x30bb2e=this['_suggestions']['get'](_0xd220c4)||this['_createSuggestion'](_0x810e3d,_0xe71982,_0xd220c4,_0x58e4d6,{});switch(this['_checkSuggestionCorrectness'](_0x30bb2e,_0x810e3d,_0xe71982,_0x58e4d6),this['_suggestionState']['get'](_0x30bb2e)){case'notReady':this['_getSuggestionData'](_0xd220c4)['then'](_0x2e50f7=>{let _0x497b84=Promise['resolve']();_0x2e50f7['hasComments']&&(_0x497b84=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xd220c4})),_0x497b84['then'](()=>{this['addSuggestionData'](_0x2e50f7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x30bb2e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xd220c4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x30bb2e,'ready'),this['fire']('suggestionLoaded',_0x30bb2e);break;case'ready':this['fire']('suggestionChanged',_0x30bb2e);}return _0x30bb2e['addMarkerName'](_0x5a91f),_0x30bb2e;}['_refreshSuggestionsChain'](_0x37c8d9){const _0x4c77f5=Array['from'](_0x37c8d9),_0x1d7c2d=_0x4c77f5['filter'](_0x473463=>'attribute'==_0x473463['type']);this['_refreshAttributeSuggestionsChain'](_0x1d7c2d);const _0x572e35=_0x4c77f5['filter'](_0x316d2e=>!_0x316d2e['isMultiRange']&&'attribute'!=_0x316d2e['type']),_0x28d024=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c97d6=>!_0x2c97d6['isMultiRange']&&'attribute'!=_0x2c97d6['type']),_0x29aace=_0x28d024['filter'](_0x48f34d=>!_0x37c8d9['has'](_0x48f34d)),_0x37546f=new Map(_0x28d024['map'](_0x13ca76=>[_0x13ca76,this['_suggestionFactory']['getSuggestionCallback'](_0x13ca76['type'],_0x13ca76['subType'],'chain')])),_0x372d41=new Map(_0x28d024['map'](_0x4b78f8=>[_0x4b78f8,_0x4b78f8['getFirstRange']()])),_0x2686e6=new Set(),_0x519361=new Set();for(let _0x5c01b4=0x0;_0x5c01b4<_0x572e35['length'];_0x5c01b4++)_0x5454f9(_0x572e35[_0x5c01b4],_0x572e35,_0x5c01b4+0x1);for(let _0x1d5bfb=0x0;_0x1d5bfb<_0x572e35['length'];_0x1d5bfb++)_0x5454f9(_0x572e35[_0x1d5bfb],_0x29aace,0x0);const _0x5aea7b=new Set();for(let _0x241b14=0x0;_0x241b14<_0x572e35['length'];_0x241b14++){const _0x21c934=_0x572e35[_0x241b14];!_0x519361['has'](_0x21c934)&&_0x21c934['previous']&&(_0x5aea7b['add'](_0x21c934['previous']),_0x21c934['previous']['next']===_0x21c934&&(_0x21c934['previous']['next']=null),_0x21c934['previous']=null),!_0x2686e6['has'](_0x21c934)&&_0x21c934['next']&&(_0x5aea7b['add'](_0x21c934['next']),_0x21c934['next']['previous']===_0x21c934&&(_0x21c934['next']['previous']=null),_0x21c934['next']=null);}function _0x5454f9(_0x140943,_0x22255f,_0x2e1f30){for(let _0x4f70f9=_0x2e1f30;_0x4f70f9<_0x22255f['length'];_0x4f70f9++){const _0x12e7f4=_0x168843(_0x140943,_0x22255f[_0x4f70f9]);_0x12e7f4&&(_0x12e7f4[0x0]['next']=_0x12e7f4[0x1],_0x12e7f4[0x1]['previous']=_0x12e7f4[0x0],_0x2686e6['add'](_0x12e7f4[0x0]),_0x519361['add'](_0x12e7f4[0x1]));}}function _0x168843(_0x3b6902,_0xbfed9a){if(_0x3b6902['author']['id']!==_0xbfed9a['author']['id'])return null;const _0x34e041=_0x37546f['get'](_0x3b6902)(_0x3b6902,_0xbfed9a,_0x372d41['get'](_0x3b6902),_0x372d41['get'](_0xbfed9a));if(!_0x34e041)return null;return _0x37546f['get'](_0xbfed9a)(_0x3b6902,_0xbfed9a,_0x372d41['get'](_0x3b6902),_0x372d41['get'](_0xbfed9a))?_0x34e041[0x1]['commentThread']&&_0x34e041[0x1]['commentThread']['length']?null:_0x34e041:null;}_0x5aea7b['size']&&this['_refreshSuggestionsChain'](_0x5aea7b);}['_refreshAttributeSuggestionsChain'](_0x5a6bb1){if(0x0==_0x5a6bb1['length'])return;const _0x590e40=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x141012=>'attribute'==_0x141012['type']&&_0x141012['_isDataLoaded']),_0x214e8f=[],_0x54b361=new Map();for(const _0x5080cb of _0x590e40){const _0x259e2b=_0x51efad(_0x5080cb['attributes']);_0x54b361['has'](_0x259e2b)||(_0x54b361['set'](_0x259e2b,_0x214e8f['length']),_0x214e8f['push']([]));const _0xcd461f=_0x54b361['get'](_0x259e2b);_0x214e8f[_0xcd461f]['push'](_0x5080cb);}!(function(){_0x214e8f['sort']((_0x1ba660,_0x4d6a2e)=>{const _0x528d94=_0x1ba660[0x0]['createdAt'],_0x1bc436=_0x4d6a2e[0x0]['createdAt'];return _0x528d94==_0x1bc436?_0x1ba660[0x0]['attributes']['groupId']<_0x4d6a2e[0x0]['attributes']['groupId']?-0x1:0x1:_0x528d94<_0x1bc436?-0x1:0x1;});for(const _0x4de613 of _0x214e8f)_0x4de613['sort']((_0x4aab84,_0x264e06)=>_0x4aab84['id']<_0x264e06['id']?-0x1:0x1);}());for(let _0x945fa8=0x0;_0x945fa8<_0x214e8f['length'];_0x945fa8++){if(0x0==_0x214e8f[_0x945fa8]['length'])continue;const _0xf17de0=[];for(let _0x534cb6=_0x945fa8+0x1;_0x534cb6<_0x214e8f['length'];_0x534cb6++)0x0!=_0x214e8f[_0x534cb6]['length']&&_0x14ff39(_0x214e8f[_0x945fa8],_0x214e8f[_0x534cb6])&&_0xf17de0['push'](_0x534cb6);for(const _0x169a97 of _0xf17de0)_0x214e8f[_0x945fa8]=_0x214e8f[_0x945fa8]['concat'](_0x214e8f[_0x169a97]),_0x214e8f[_0x169a97]=[];}for(const _0x1a5689 of _0x214e8f)for(let _0x4d9492=0x0;_0x4d9492<_0x1a5689['length'];_0x4d9492++){const _0x48bfdd=_0x1a5689[_0x4d9492+0x1]||null;_0x1a5689[_0x4d9492]['next']!==_0x48bfdd&&(_0x1a5689[_0x4d9492]['next']=_0x48bfdd);}for(const _0x23f585 of _0x214e8f)for(let _0x18168b=0x0;_0x18168b<_0x23f585['length'];_0x18168b++){const _0x30cf6b=_0x23f585[_0x18168b-0x1]||null;_0x23f585[_0x18168b]['previous']!==_0x30cf6b&&(_0x23f585[_0x18168b]['previous']=_0x30cf6b);}function _0x14ff39(_0x20c39f,_0x5b408c){if(_0x20c39f[0x0]['attributes']['groupId']!==_0x5b408c[0x0]['attributes']['groupId']&&_0x20c39f[0x0]['author']!==_0x5b408c[0x0]['author'])return!0x1;if(!function(_0x491486,_0x1ddf83){if(!_0x491486['hasComments']&&!_0x1ddf83['hasComments'])return!0x0;if(_0x491486['hasComments']&&_0x1ddf83['hasComments'])return!0x1;if(_0x491486['hasComments']&&_0x1ddf83['createdAt']<_0x491486['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1ddf83['hasComments']&&_0x491486['createdAt']<_0x1ddf83['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x20c39f[0x0],_0x5b408c[0x0]))return!0x1;const _0x5c0e3f=Ft(_0x20c39f[0x0]['attributes'],['groupId','trackingSessionId']),_0x4cdcfb=Ft(_0x5b408c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5834e8(_0x5c0e3f,_0x4cdcfb))return!0x1;if(_0x20c39f[0x0]['attributes']['groupId']==_0x5b408c[0x0]['attributes']['groupId'])return!0x0;if(_0x20c39f[0x0]['attributes']['trackingSessionId']!==_0x5b408c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x20c39f['every'](_0x355dad=>_0x5b408c['some'](_0x596d04=>_0x355dad['getFirstRange']()['isEqual'](_0x596d04['getFirstRange']())))&&_0x5b408c['every'](_0x19c3bc=>_0x20c39f['some'](_0x23a7ed=>_0x19c3bc['getFirstRange']()['isEqual'](_0x23a7ed['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x15a5e8){const _0x102b9e=Array['from'](_0x15a5e8),_0x447da9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1d6263=_0x447da9['filter'](_0x1efa0e=>!_0x15a5e8['has'](_0x1efa0e)),_0xe54ea3=new Map(_0x102b9e['map'](_0x4313c9=>[_0x4313c9,this['_suggestionFactory']['getSuggestionCallback'](_0x4313c9['type'],_0x4313c9['subType'],'join')])),_0x1f998a=new Map(_0x447da9['map'](_0x20a960=>[_0x20a960,_0x20a960['getRanges']()]));for(let _0x5794f5=0x0;_0x5794f5<_0x102b9e['length'];_0x5794f5++){if(_0x1dfb25(this,_0x102b9e[_0x5794f5],_0x102b9e,_0x5794f5+0x1))return!0x0;}for(let _0x5f385e=0x0;_0x5f385e<_0x102b9e['length'];_0x5f385e++){if(_0x1dfb25(this,_0x102b9e[_0x5f385e],_0x1d6263,0x0))return!0x0;}return!0x1;function _0x1dfb25(_0x531692,_0x104ab3,_0x471edc,_0x1952e4){for(let _0x5f04ba=_0x1952e4;_0x5f04ba<_0x471edc['length'];_0x5f04ba++){const _0x2b674d=_0x471edc[_0x5f04ba];if(_0x2b674d['type']!==_0x104ab3['type']||_0x2b674d['author']['id']!==_0x104ab3['author']['id']||_0x2b674d['subType']!==_0x104ab3['subType'])continue;if(!Xt(_0x104ab3,_0x2b674d))continue;if('attribute'==_0x104ab3['type']&&_0x104ab3['data']['oldValue']!=_0x2b674d['data']['oldValue'])continue;if('attribute'==_0x104ab3['type']&&_0x531692['_isBlockAttribute'](_0x104ab3['data']['key']))continue;if('formatBlock'==_0x104ab3['type']){const _0x122165=_0x531692['editor']['model'],_0x332f71=_0x104ab3['getContainedElement']();if(_0x332f71&&(_0x122165['schema']['isObject'](_0x332f71)||_0x122165['schema']['isLimit'](_0x332f71)))continue;}const _0x46e369=_0xe54ea3['get'](_0x104ab3),_0x3d00b9=_0x1f998a['get'](_0x104ab3),_0x502560=_0x1f998a['get'](_0x2b674d),_0x3ffc75=_0x104ab3['commentThread']&&_0x104ab3['commentThread']['length'],_0x22e38f=_0x2b674d['commentThread']&&_0x2b674d['commentThread']['length'];if(!_0x3ffc75&&_0x46e369(_0x502560,_0x3d00b9))return _0x531692['_joinSuggestions'](_0x2b674d,_0x104ab3),_0x1f998a['delete'](_0x104ab3),!0x0;if(!_0x22e38f&&_0x46e369(_0x3d00b9,_0x502560))return _0x531692['_joinSuggestions'](_0x104ab3,_0x2b674d),_0x1f998a['delete'](_0x2b674d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x19e25b,_0x5c71ba){if(_0x19e25b['isMultiRange']){for(const _0x193e4 of _0x5c71ba['getRanges']())_0x19e25b['addRange'](_0x193e4);}else{const _0x106187=_0x5c71ba['getFirstRange']()['end'];this['_setSuggestionRange'](_0x19e25b,this['_model']['createRange'](_0x19e25b['getFirstRange']()['start'],_0x106187));}_0x5c71ba['removeMarkers']();}['_getMarkerAnnouncementText'](_0x75c8da,_0x4d8459,_0x51e139){const _0x4eae24=_0x75c8da['startsWith']('format')||_0x75c8da['startsWith']('attribute')?'FORMATTING':_0x75c8da['toUpperCase']();return c(this['editor']['locale'],_0x4d8459+'_'+_0x4eae24+'_SUGGESTION_ANNOUNCEMENT',_0x51e139);}['_initAriaMarkerChangeAnnouncements'](){const _0x25e7d9=this['editor'];if(!_0x25e7d9['ui'])return;const {ariaLiveAnnouncer:_0x7b131c}=_0x25e7d9['ui'];_0x2001ba(this['_model'],({left:_0x2c7605,entered:_0x21b669})=>{for(const _0x3ef84d of _0x2c7605){const {group:_0x133b8f,type:_0x12fd17}=this['_splitMarkerName'](_0x3ef84d['name']);if('suggestion'===_0x133b8f){_0x7b131c['announce'](this['_getMarkerAnnouncementText'](_0x12fd17,'LEAVE'));break;}}for(const _0x208390 of _0x21b669){const {group:_0x5cd4cc,type:_0x444134}=this['_splitMarkerName'](_0x208390['name']);if('suggestion'===_0x5cd4cc){_0x7b131c['announce'](this['_getMarkerAnnouncementText'](_0x444134,'ENTER',_0x231ec4(_0x1f0485)));break;}}});}['_processAttributeChanges'](_0x5e0108){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4de35d=this['editor'],_0x3e7b6d=_0x4de35d['model']['document']['differ']['getChanges']();if(0x0==_0x3e7b6d['length'])return!0x1;const _0x191df0=[],_0x419c52=_0x3e7b6d['filter'](_0x46bfc6=>'attribute'==_0x46bfc6['type']),_0x33b3ce=_0x3e7b6d['filter'](_0xe66291=>'insert'==_0xe66291['type']&&'$text'!=_0xe66291['name']),_0x43d097=_0x3e7b6d['filter'](_0x27f70e=>'remove'==_0x27f70e['type']&&'$text'!=_0x27f70e['name']);for(const _0x556b27 of _0x419c52)_0x191df0['push']({'key':_0x556b27['attributeKey'],'newValue':_0x556b27['attributeNewValue'],'oldValue':_0x556b27['attributeOldValue'],'range':zt(_0x556b27['range'],_0x4de35d['model'])});for(const _0x24198f of _0x33b3ce){const _0x4c614c=_0x43d097['find'](_0x53a600=>_0x53a600['position']['isEqual'](_0x24198f['position']));_0x4c614c&&_0x191df0['push']({'key':u,'newValue':_0x24198f['name'],'oldValue':_0x4c614c['name'],'range':_0x4de35d['model']['createRangeOn'](_0x24198f['position']['nodeAfter'])});}return 0x0!=_0x191df0['length']&&this['_reduceExistingSuggestions'](_0x5e0108,_0x191df0);}['_processAttributeSuggestions'](_0x4f8606){let _0xf8c447=!0x1;const _0x40dfee=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e8f67=>_0x4e8f67['data']['newRange']&&_0x4e8f67['name']['startsWith']('suggestion:attribute:'));for(const _0x3af0e2 of _0x40dfee){const {subType:_0x4008b3,id:_0x4ab8db}=this['_splitMarkerName'](_0x3af0e2['name']),_0x3fd6a3=_0x4008b3['split']('|')[0x0];for(const _0x2749df of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2749df['id']!=_0x4ab8db&&'attribute'==_0x2749df['type']&&_0x2749df['data']&&_0x2749df['data']['key']==_0x3fd6a3&&_0x2749df['getFirstRange']()['isIntersecting'](_0x3af0e2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2749df,_0x3af0e2['data']['newRange'],_0x4f8606),_0xf8c447=!0x0);}return _0xf8c447;}['_recordAttributeChanges'](_0x567638){this['_recordAttributeSuggestions']=!0x0,_0x567638();}['_isRegisteredAttribute'](_0x53b1c2){const _0x325e78=this['_isBlockAttribute'](_0x53b1c2),_0x37ca36=this['_inlineAttributeKeys']['has'](_0x53b1c2);return _0x325e78||_0x37ca36;}['_reduceExistingSuggestions'](_0x2d9daa,_0x2c6f68){if(0x0==_0x2c6f68['length'])return!0x1;let _0x3a9c23=!0x1;for(const _0x18ca34 of _0x2c6f68){const _0x53bd65=this['_findSuggestions'](_0x18ca34['range'],'attribute')['filter'](_0x5d73e1=>!_0x5d73e1['meta']['isNextTo'])['map'](_0x2368af=>_0x2368af['suggestion']),_0x54e0c9=_0x51efad({'newValue':_0x18ca34['newValue']});_0x53bd65['filter'](_0x1fc7fa=>{const [_0xdb920d,_0x51b395]=_0x1fc7fa['subType']['split']('|');return _0xdb920d==_0x18ca34['key']&&_0x51b395!=_0x54e0c9;})['forEach'](_0x34d1ef=>{this['_reduceSuggestionAttributeRange'](_0x34d1ef,_0x18ca34['range'],_0x2d9daa),_0x3a9c23=!0x0;});}return _0x3a9c23;}['_reduceSuggestionAttributeRange'](_0x1cccee,_0x3b1af3,_0x48c8bb){const _0x5f26e3=_0x1cccee['getFirstRange']()['getDifference'](_0x3b1af3);0x0!==_0x5f26e3['length']?0x1!==_0x5f26e3['length']?this['_breakSuggestionMarker'](_0x1cccee,_0x3b1af3['start'],_0x3b1af3['end']):this['_setSuggestionRange'](_0x1cccee,_0x5f26e3[0x0]):_0x48c8bb['removeMarker'](_0x1cccee['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x43f929){this['_editor']=_0x43f929,this['_model']=_0x43f929['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2f1142,_0x50d2ae,_0x48a348,_0x25871d,_0x393317,_0x29988c,_0x5882bc){return new o(this['_model'],{'type':_0x2f1142,'subType':_0x50d2ae,'id':_0x48a348,'originalSuggestionId':_0x5882bc,'author':_0x25871d,'creator':_0x25871d,'attributes':_0x393317,'onAttributesChange':_0x29988c,'onAccept':(..._0x53a8c1)=>this['getSuggestionCallback'](_0x2f1142,_0x50d2ae,'accept')(..._0x53a8c1),'onDiscard':(..._0x54be48)=>this['getSuggestionCallback'](_0x2f1142,_0x50d2ae,'discard')(..._0x54be48)});}['registerCustomCallback'](_0x1a2f95,_0x30af9e,_0xb286c,_0x389cdb){const _0x484d72=_0x1a2f95+':'+_0x30af9e+':'+_0xb286c;this['_customCallbacks']['set'](_0x484d72,_0x389cdb);}['getSuggestionCallback'](_0xb894e0,_0x486499,_0x3df66f){const _0x5a7a7d=_0xb894e0+':'+_0x486499+':'+_0x3df66f;return this['_customCallbacks']['get'](_0x5a7a7d)||this['_defaultCallbacks']['get'](_0xb894e0+':'+_0x3df66f);}['_registerDefaultCallbacks'](){const _0x5c7fa2=()=>!0x1,_0x4d5dd1=_0x1d5a38=>{_0x1d5a38['sort']((_0x185ca9,_0x3b1372)=>_0x185ca9['start']['isBefore'](_0x3b1372['start'])?0x1:-0x1),this['_model']['change'](_0x14239f=>{for(const _0x377843 of _0x1d5a38){let _0x2ff308;_0x2ff308=_0x377843['end']['isAtEnd']&&_0x377843['end']['parent']==_0x377843['start']['nodeAfter']?_0x14239f['createSelection'](_0x377843['start']['nodeAfter'],'on'):_0x14239f['createSelection'](_0x377843),this['_model']['deleteContent'](_0x2ff308,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2bb531=(_0x49c663,_0x2043dc)=>{_0x2043dc&&this['_model']['change'](_0x40de08=>{const {commandName:_0xf5c6aa,commandParams:_0x203352=[]}=_0x2043dc,_0x1edc53=_0x49c663['map'](_0x3dd55a=>(Lt(_0x3dd55a)&&(_0x3dd55a=this['_model']['createRange'](_0x3dd55a['end'])),_0x3dd55a))['filter'](_0x4c3bf5=>'$graveyard'!==_0x4c3bf5['root']['rootName']);if(_0x1edc53['length']<0x1)return;const _0xb60156=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xe60014=>_0xf8fd8e['fromRange'](_0xe60014));_0x40de08['setSelection'](_0x1edc53);for(const _0x271c93 of this['_editor']['commands']['commands']())_0x271c93['refresh']();_0x203352['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xf5c6aa,..._0x203352);const _0x591003=_0xb60156['filter'](_0x52ca28=>'$graveyard'!=_0x52ca28['root']['rootName']);_0x591003['length']>0x0&&_0x40de08['setSelection'](_0x591003);for(const _0x12072c of _0xb60156)_0x12072c['detach']();});},_0x4fbe95=(_0x21d8b1,_0x3f886e)=>0x1==_0x21d8b1['length']&&0x1==_0x3f886e['length']&&_0x21d8b1[0x0]['end']['isEqual'](_0x3f886e[0x0]['start']),_0x3a8070=(_0x3b0a65,_0x69cb91,_0x34904d,_0x5551d7)=>Qt(_0x3b0a65,_0x69cb91,_0x34904d,_0x5551d7)?[_0x3b0a65,_0x69cb91]:Qt(_0x69cb91,_0x3b0a65,_0x5551d7,_0x34904d)?[_0x69cb91,_0x3b0a65]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5c7fa2),this['_defaultCallbacks']['set']('insertion:discard',_0x4d5dd1),this['_defaultCallbacks']['set']('insertion:join',_0x4fbe95),this['_defaultCallbacks']['set']('insertion:chain',_0x3a8070),this['_defaultCallbacks']['set']('deletion:accept',_0x4d5dd1),this['_defaultCallbacks']['set']('deletion:discard',_0x5c7fa2),this['_defaultCallbacks']['set']('deletion:join',_0x4fbe95),this['_defaultCallbacks']['set']('deletion:chain',_0x3a8070),this['_defaultCallbacks']['set']('formatInline:accept',_0x2bb531),this['_defaultCallbacks']['set']('formatInline:discard',_0x5c7fa2),this['_defaultCallbacks']['set']('formatInline:join',_0x4fbe95),this['_defaultCallbacks']['set']('formatInline:chain',_0x5c7fa2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2bb531),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5c7fa2),this['_defaultCallbacks']['set']('formatBlock:join',_0x4fbe95),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5c7fa2),this['_defaultCallbacks']['set']('attribute:accept',_0x5c7fa2),this['_defaultCallbacks']['set']('attribute:discard',(_0x26681e,_0x1032b8)=>{if(!_0x1032b8)return;const _0x5efb5b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3e13f9=>{if(_0x1032b8['key']==u)for(const _0x141038 of _0x26681e){const _0x561794=_0x141038['start']['nodeAfter'],_0x8b2cc9=_0x1032b8['oldValue'];_0x3e13f9['rename'](_0x561794,_0x8b2cc9);}else{if(_0x5efb5b['_isBlockAttribute'](_0x1032b8['key'])){for(const _0x19daf8 of _0x26681e)void 0x0!==_0x1032b8['oldValue']?_0x3e13f9['setAttribute'](_0x1032b8['key'],_0x1032b8['oldValue'],_0x19daf8['start']['nodeAfter']):_0x3e13f9['removeAttribute'](_0x1032b8['key'],_0x19daf8['start']['nodeAfter']);}else{for(const _0x25bc4c of _0x26681e)_0x1032b8['oldValue']?_0x3e13f9['setAttribute'](_0x1032b8['key'],_0x1032b8['oldValue'],_0x25bc4c):_0x3e13f9['removeAttribute'](_0x1032b8['key'],_0x25bc4c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4fbe95);}}function Gt(_0x3bdcf3,_0x39881b,_0x2497cd){for(const _0xea3bda of _0x39881b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xea3bda['root']==_0xea3bda)return!0x1;if(!_0x2497cd['containsItem'](_0xea3bda))return!0x1;if(_0x3bdcf3['isObject'](_0xea3bda)||_0x3bdcf3['isLimit'](_0xea3bda))return!0x0;}return!0x1;}function Lt(_0x1a07ec){return _0x1a07ec['end']['parent']==_0x1a07ec['start']['nodeAfter']&&_0x1a07ec['end']['isAtStart'];}function Jt(_0x79495f,_0x4282e6,_0x2d2c07,_0x53e30f){const _0x5583e7=_0x17ea99=>!_0x17ea99['item']['is']('$textProxy')&&!_0x53e30f['isObject'](_0x17ea99['item']),_0x2cd834=_0x79495f['start']['getLastMatchingPosition'](_0x5583e7),_0x2c8e2e=_0x79495f['end']['getLastMatchingPosition'](_0x5583e7,{'direction':'backward'});return(!_0x79495f['start']['isEqual'](_0x2cd834)||!_0x79495f['end']['isEqual'](_0x2c8e2e))&&(_0x2cd834['isBefore'](_0x2c8e2e)?_0x2d2c07['updateMarker'](_0x4282e6,{'range':_0x2d2c07['createRange'](_0x2cd834,_0x2c8e2e)}):_0x2d2c07['removeMarker'](_0x4282e6),!0x0);}function Kt(_0x3bbdf0){return _0x51efad(_0x3bbdf0);}function Ht(_0x5299ba){const _0x547ef7=_0x5299ba['start']['nodeAfter'];return _0x547ef7&&_0x547ef7['is']('element');}function qt(_0x260a92){return!Lt(_0x260a92)&&!function(_0xb5e01a){return _0xb5e01a['start']['parent']==_0xb5e01a['end']['nodeBefore']&&_0xb5e01a['start']['isAtEnd'];}(_0x260a92);}function zt(_0xa4d3b3,_0x33e751){return null==_0xa4d3b3['end']['nodeBefore']&&_0xa4d3b3['end']['parent']==_0xa4d3b3['start']['nodeAfter']?Wt(_0xa4d3b3['start']['nodeAfter'],_0x33e751):_0xa4d3b3;}function Wt(_0x2cb1a6,_0x50ad5d){const _0x2b8b31=_0x50ad5d['schema']['isObject'](_0x2cb1a6)||_0x50ad5d['schema']['isSelectable'](_0x2cb1a6);return _0x50ad5d['createRange'](_0x50ad5d['createPositionAt'](_0x2cb1a6,'before'),_0x2b8b31?_0x50ad5d['createPositionAfter'](_0x2cb1a6):_0x50ad5d['createPositionAt'](_0x2cb1a6,'end'));}function Qt(_0x5bbcc0,_0x316d34,_0x2b0021,_0x4126a8){return!!Xt(_0x5bbcc0,_0x316d34)&&_0x2b0021['end']['isEqual'](_0x4126a8['start']);}function Xt(_0x4b4d19,_0x34c2a6){if(!_0x4b4d19['_isDataLoaded']||!_0x34c2a6['_isDataLoaded'])return!0x1;const _0x2d040b=new Set(Object['keys'](_0x4b4d19['attributes'])),_0x47a971=new Set(Object['keys'](_0x34c2a6['attributes']));if(_0x2d040b['delete']('groupId'),_0x47a971['delete']('groupId'),0x0==_0x2d040b['size']&&0x0==_0x47a971['size'])return!0x0;if(_0x2d040b['size']!=_0x47a971['size'])return!0x1;const _0x11403b={..._0x4b4d19['attributes']},_0x2645fb={..._0x34c2a6['attributes']};return delete _0x11403b['groupId'],delete _0x2645fb['groupId'],JSON['stringify'](_0x11403b)==JSON['stringify'](_0x2645fb);}function Yt(_0x2cbec2,_0x4ca820){const _0x5b77aa=Zt(_0x2cbec2['attributes']),_0x3dc9ac=Zt(_0x4ca820);if(!_0x2cbec2['_isDataLoaded'])return!0x1;for(const _0x2d8cc9 of Object['keys'](_0x3dc9ac))if(!_0x5834e8(_0x5b77aa[_0x2d8cc9],_0x3dc9ac[_0x2d8cc9]))return!0x1;return!0x0;}function Zt(_0x555ed4){const _0x1f4550=Object['assign']({},_0x555ed4);return delete _0x1f4550['skipNestingCheck'],delete _0x1f4550['tablePasteChainId'],_0x1f4550;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x4ec318(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x276a6b,_0x2ba096,_0x54552c,_0x1be1e5){super(),this['model']=_0x2ba096,this['view']=_0x54552c,this['commentThreadController']=_0x1be1e5,this['_editor']=_0x276a6b,this['_acceptCommand']=_0x276a6b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x276a6b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x50fc69,_0x3430c4)=>_0x50fc69||_0x3430c4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x45bc6d=>_0x45bc6d&&this['_editor']['model']['canEditAt'](_0x2ba096['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xc124d1=>_0xc124d1&&this['_editor']['model']['canEditAt'](_0x2ba096['getRanges']())),this['_pendingAction']=null,_0x54552c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x54552c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x54552c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x54552c,'change:isDirty',()=>{_0x54552c['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 _0x465b08=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x465b08);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3c3a65{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5b07ff,_0x3baa91,_0x5b3224,_0x4f2c4e){super(_0x5b07ff),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x34a612(_0x5b07ff,c(_0x5b07ff,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3baa91['authoredAt']),this['bind']('authoredAt')['to'](_0x3baa91),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',_0x3baa91,'authoredAt',this,'descriptionParts',(_0x1a4ba6,_0x5ced0a,_0x2e79d1)=>{const _0x2066d9=_0x2e79d1['map'](_0x15333e=>ls(_0x15333e['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1a4ba6-0x1,_0x3baa91['author']['name'],_0x5ced0a?_0x4f2c4e['formatDateTime'](_0x5ced0a):'',new DOMParser()['parseFromString'](_0x2066d9,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1cf556(),this['focusTracker']=new _0x23919d(),this['keystrokes']=new _0x5e8f5e(),this['focusCycler']=new _0x80b2b8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1b0a34=>_0x1b0a34['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3baa91,this['_localUser']=_0x5b3224,this['_config']=_0x4f2c4e,_0x4f2c4e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x158e7e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x263bcf}=this['_config'];this['commentsListView']=new _0x263bcf(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',_0x23dfb4=>_0x23dfb4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x54451f,_0x34d7a4)=>_0x54451f||!!_0x34d7a4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5734b2}=this['_config'],_0x552f63=new _0x5734b2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c19c1=_0x552f63['commentInputView'];return _0x552f63['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c19c1,'value',(_0x4c40a4,_0x4f6a32,_0x2d971f)=>!!_0x2d971f||_0x4c40a4&&!_0x4f6a32),_0x4c19c1['on']('submit',(_0x496333,_0xe084bc)=>{this['fire']('addComment',_0xe084bc),_0x4c19c1['editor']['setData']('');}),_0x4c19c1['on']('cancel',()=>this['focus']()),_0x4c19c1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x552f63;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x52acc0,_0x24b0c6,_0x32b163,_0x22b01e){super(_0x52acc0,_0x24b0c6,_0x32b163,_0x22b01e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1f3652=>_0x1f3652&&_0x1f3652[0x0]?_0x1f3652[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2f0413,_0x5d9ea2)=>{let _0x161bb7='';for(const _0x911e28 of _0x2f0413)_0x161bb7+='<p>'+ls(_0x911e28['content'],_0x911e28['color'])+'</p>';return _0x5d9ea2?_0x161bb7:_0x41c8ca(_0x161bb7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x22b01e['SuggestionView'](_0x52acc0,_0x24b0c6,{'formatDateTime':_0x22b01e['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 _0x34fb48=this['bindTemplate'],_0xabb853=[this['suggestionView']];return this['commentsListView']&&_0xabb853['push'](this['commentsListView']),this['commentThreadInputView']&&_0xabb853['push'](this['commentThreadInputView']),_0xabb853['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x34fb48['if']('isActive','ck-suggestion-wrapper--active'),_0x34fb48['to']('type',_0x1e30c8=>'ck-suggestion-'+_0x1e30c8),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':_0x34fb48['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xabb853};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x3c3a65{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4fee03,_0x20b6fc,_0x11b64e){super(_0x4fee03),this['_model']=_0x20b6fc,this['_config']=_0x11b64e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x20b6fc),this['acceptButton']=this['_createButton'](c(_0x4fee03,'Accept\x20suggestion'),_0x5ac1f8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4fee03,'Discard\x20suggestion'),_0x2e2f79,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2a1e2e(_0x4fee03,_0x20b6fc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1cf556([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x23919d(),this['keystrokes']=new _0x5e8f5e(),this['focusCycler']=new _0x80b2b8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4d5bef=>_0x4d5bef['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x12bc10=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x12bc10['innerHTML']=this['description'],this['on']('change:description',(_0x4207f9,_0x1980f8,_0x2c2714)=>{_0x12bc10['innerHTML']=_0x2c2714;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5ebeb2=this['bindTemplate'],_0x1e124e=[{'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':_0x5ebeb2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5ebeb2['to']('authoredAt',_0x5edf0f=>this['_config']['formatDateTime'](_0x5edf0f))}]}]},{'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']&&_0x1e124e['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':_0x1e124e}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3d859f,_0x1b1299,_0x48630c,_0x1e47e9,_0x1d5d47){const _0x3241c8=new _0x10be5c(this['locale']);return _0x3241c8['set']({'label':_0x3d859f,'icon':_0x1b1299,'tooltip':!0x0,'tooltipPosition':_0x1d5d47}),_0x3241c8['extendTemplate']({'attributes':{'class':_0x48630c}}),_0x3241c8['on']('execute',()=>{this['fire'](_0x1e47e9,this['_model']['id']);}),_0x3241c8;}['_setupKeyboardNavigation'](){const _0x1b05fb=this['element'];this['keystrokes']['listenTo'](_0x1b05fb);for(const _0x259f45 of this['focusables'])this['focusTracker']['add'](_0x259f45['element']),this['keystrokes']['listenTo'](_0x259f45['element']);this['keystrokes']['set']('enter',(_0x55bce7,_0x382f1f)=>{_0x1b05fb===_0x55bce7['target']&&(this['focusCycler']['focusFirst'](),_0x382f1f());}),this['keystrokes']['set']('esc',(_0x56fdaf,_0x2f51c1)=>{_0x1b05fb!==_0x56fdaf['target']&&(this['focus'](),_0x2f51c1());});}}class d extends _0x121524{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x23ff89,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x217bc3){super(_0x217bc3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2521a4=this['editor']['config'];_0x2521a4['define']('trackChanges.SuggestionThreadView',fe),_0x2521a4['define']('trackChanges.SuggestionView',we),_0x2521a4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2521a4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x72f03,_0x55bb7a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x47d7bf,_0x3c149e]of this['_handleControllerBuffer']){const _0x42d432=this['_suggestionToController']['has'](_0x47d7bf);_0x42d432||_0x3c149e?_0x42d432&&_0x3c149e&&this['_destroyController'](_0x47d7bf):this['_initializeController'](_0x47d7bf);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x72f03,_0x55bb7a);}['init'](){const _0x5454bc=this['editor'],_0x210915=_0x5454bc['plugins']['get']('TrackChangesEditing'),_0x390f73=_0x5454bc['plugins']['get']('Annotations'),_0x4b0962=_0x5454bc['plugins']['get']('EditorAnnotations'),_0xf627b=_0x5454bc['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4b0962['addSourceCollector'](()=>{const _0x21c3ee=[];for(const [_0x3bcbb9,_0x138faf]of Array['from'](this['_suggestionToController'])){const _0x1d6567=_0x3bcbb9['getAllAdjacentSuggestions'](),_0x3d214e=[];for(const _0x1d2b9c of _0x1d6567){if(!_0x1d2b9c['isInContent'])continue;if(_0x1d2b9c['isMultiRange']){_0x3d214e['push'](..._0x1d2b9c['getRanges']());continue;}const _0x4b5927=_0x1d2b9c['getFirstRange']();if(_0x3d214e['length']>0x0){const _0x5d45d1=_0x3d214e[0x0]['getJoined'](_0x4b5927);if(_0x5d45d1){_0x3d214e[0x0]=_0x5d45d1;continue;}}_0x3d214e['push'](_0x4b5927);}_0x21c3ee['push']([_0x138faf['view'],_0x3d214e]);}return _0x21c3ee;}),this['listenTo'](_0x210915,'suggestionLoaded',(_0x1d53fc,_0xa83894)=>{this['listenTo'](_0xa83894,'change:previous',(_0x1c2079,_0x313cfe,_0x3907db,_0xe76de3)=>{_0xa83894['isInContent']&&(null==_0x3907db?(this['_updateController'](_0xe76de3['head']),this['_handleSuggestionControllerDelayed'](_0xa83894,!0x1)):(this['_updateController'](_0x3907db['head']),null==_0xe76de3&&this['_handleSuggestionControllerDelayed'](_0xa83894,!0x0)));}),null!==_0xa83894['previous']?this['_updateController'](_0xa83894['head']):this['_handleSuggestionControllerDelayed'](_0xa83894,!0x1);}),this['listenTo'](_0x210915,'suggestionUnloaded',(_0x4923da,_0x17e2a1,_0x191d2c)=>{this['stopListening'](_0x17e2a1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x17e2a1),this['_suggestionToController']['has'](_0x17e2a1)&&this['_destroyController'](_0x17e2a1),_0x191d2c&&this['_updateController'](_0x191d2c['head']);}),this['listenTo'](_0x210915,'suggestionChanged',(_0xf64a11,_0x40de85)=>{this['_updateController'](_0x40de85);}),this['listenTo'](_0x390f73,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xf627b,'addComment',(_0x2897f7,{threadId:_0x41762b,isFromAdapter:_0x485324})=>{if(_0x485324||!_0x210915['hasSuggestion'](_0x41762b))return;const _0x450e20=_0x210915['getSuggestion'](_0x41762b);this['_suggestionToController']['get'](_0x450e20)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19a4d6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x56f8a2;for(const _0x347d00 in _0x19a4d6){const _0x1f64ed=_0x347d00,_0x3e0508=_0x19a4d6[_0x1f64ed];if('trackChangesLicenseKeyValid'==_0x3e0508||'trackChangesLicenseKeyInvalid'==_0x3e0508||'trackChangesLicenseKeyExpired'==_0x3e0508||'trackChangesLicenseKeyDomainLimit'==_0x3e0508||'trackChangesLicenseKeyNotAllowed'==_0x3e0508||'trackChangesLicenseKeyEvaluationLimit'==_0x3e0508||'trackChangesLicenseKeyTrialLimit'==_0x3e0508||'trackChangesLicenseKeyUsageLimit'==_0x3e0508){delete _0x19a4d6[_0x1f64ed],_0x56f8a2=_0x3e0508,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x56f8a2&&_0x19a4d6['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x41706e=this['editor']['plugins']['get']('Annotations'),_0x4f82b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cc794=Array['from'](_0x41706e['activeAnnotations'],_0x184b87=>_0x184b87['innerView'])['filter'](_0x378314=>this['_viewToController']['has'](_0x378314)),_0x279e40=[];for(const _0x1c9f7a of _0x3cc794){const _0x1f0a4c=this['_viewToController']['get'](_0x1c9f7a)['model']['getAllAdjacentSuggestions']();_0x279e40['push'](..._0x1f0a4c['reduce']((_0x424c03,_0x6a1cbd)=>[..._0x424c03,..._0x6a1cbd['getMarkerNames']()],[]));}_0x4f82b7['activeMarkers']=_0x279e40;}['_addUIComponentsToFactory'](){const _0x5da473=this['editor'],_0x157712=_0x5da473['locale'],_0x2898e0=c(_0x157712,'Track\x20changes'),_0x24017c=new _0x3e74dd([{'type':'switchbutton','model':new _0x22348e({'withText':!0x0,'isToggleable':!0x0,'label':_0x2898e0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x22348e({'withText':!0x0,'label':c(_0x157712,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22348e({'withText':!0x0,'label':c(_0x157712,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22348e({'withText':!0x0,'label':c(_0x157712,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22348e({'withText':!0x0,'label':c(_0x157712,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5da473['plugins']['has']('TrackChangesPreview')&&_0x24017c['addMany']([{'type':'separator'},{'type':'button','model':new _0x22348e({'withText':!0x0,'label':c(_0x157712,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3c0e47 of _0x24017c)if(ke(_0x3c0e47)){const _0x1b5b7e=_0x5da473['commands']['get'](_0x3c0e47['model']['commandName']);_0x3c0e47['model']['bind']('isOn','isEnabled')['to'](_0x1b5b7e,'value','isEnabled');}_0x5da473['ui']['componentFactory']['add']('trackChanges',_0x320303=>this['_createToolbarButton'](_0x320303,_0x24017c,_0x2898e0)),_0x5da473['ui']['componentFactory']['add']('menuBar:trackChanges',_0x51c3c5=>this['_createMenuBarMenu'](_0x51c3c5,_0x24017c,_0x2898e0));}['_createToolbarButton'](_0x5ae052,_0x31af77,_0x281d74){const _0x2dc82b=_0x1a0e52(_0x5ae052,_0x247951),_0x16321f=this['editor']['commands']['get']('trackChanges');_0x2dc82b['buttonView']['set']({'tooltip':_0x281d74,'label':_0x281d74,'icon':_0x5aba70}),_0x2dc82b['buttonView']['bind']('isOn')['to'](_0x16321f,'value'),_0x2dc82b['buttonView']['on']('execute',()=>{_0x16321f['execute'](),this['editor']['editing']['view']['focus']();}),_0x1a8fc2(_0x2dc82b,_0x31af77,{'role':'menu'});const _0x8e5984=[];for(const _0x5e4016 of _0x31af77)ke(_0x5e4016)&&_0x8e5984['push'](this['editor']['commands']['get'](_0x5e4016['model']['commandName']));const _0x3d34cc=_0x2dc82b['buttonView'];return _0x3d34cc['actionView']['unbind']('isEnabled'),_0x3d34cc['arrowView']['unbind']('isEnabled'),_0x3d34cc['actionView']['bind']('isEnabled')['to'](_0x16321f,'isEnabled'),_0x3d34cc['arrowView']['bind']('isEnabled')['toMany'](_0x8e5984,'isEnabled',(..._0x1c455c)=>_0x1c455c['some'](_0x4aa9a4=>_0x4aa9a4)),_0x2dc82b['on']('execute',_0x23f431=>{this['editor']['execute'](_0x23f431['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2dc82b;}['_createMenuBarMenu'](_0x3572ef,_0x305749,_0x5b86da){const _0x4b85fe=new _0x4416c9(_0x3572ef),_0x582c0a=this['editor']['commands']['get']('trackChanges');_0x4b85fe['buttonView']['set']({'label':_0x5b86da,'icon':_0x5aba70});const _0x554847=new _0x2b3aae(_0x3572ef);for(const _0x26e2be of _0x305749){if('separator'==_0x26e2be['type']){_0x554847['items']['add'](new _0x567c6c(_0x3572ef));continue;}const _0x197d32=new _0x346f61(_0x3572ef,_0x4b85fe),_0x4a750b=new _0x59f6d0(_0x3572ef),_0x102db4=_0x26e2be['model'];_0x4a750b['bind'](...Object['keys'](_0x102db4))['to'](_0x102db4),_0x4a750b['delegate']('execute')['to'](_0x4b85fe),_0x4a750b['on']('execute',()=>{this['editor']['execute'](_0x102db4['commandName']),this['editor']['editing']['view']['focus']();}),_0x197d32['children']['add'](_0x4a750b),_0x554847['items']['add'](_0x197d32);}return _0x4b85fe['bind']('isEnabled')['to'](_0x582c0a,'isEnabled'),_0x4b85fe['panelView']['children']['add'](_0x554847),_0x4b85fe;}['_initializeController'](_0x582eda){const _0x2adcb=this['editor'],_0x5cc542=_0x2adcb['config'],_0x45c547=_0x2adcb['plugins']['get']('Annotations'),_0x1bf8a8=_0x2adcb['plugins']['get']('CommentsRepository'),_0x123e2b=_0x2adcb['plugins']['get']('EditorAnnotations'),_0x39ea96=_0x2adcb['plugins']['get'](_0x23ff89)['me'],_0x3ce4c5=_0x5cc542['get']('trackChanges')['SuggestionThreadView'],_0x4d4db7=_0x5cc542['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2869c4,CommentThreadInputView:_0x2132db}=_0x2adcb['plugins']['get']('CommentsUI');let _0x36adba,_0x16bb3f,_0x233cec;this['_annotationViews']['has'](_0x582eda['id'])?(_0x16bb3f=this['_annotationViews']['get'](_0x582eda['id']),_0x36adba=_0x16bb3f['mainView']):(_0x36adba=new _0x3ce4c5(_0x2adcb['locale'],_0x582eda,_0x39ea96,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5cc542['get']('comments.editorConfig'),'licenseKey':_0x5cc542['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5cc542['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5cc542['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5cc542['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x40e693(_0x5cc542['get']('locale'),_0x2adcb['locale']),'CommentView':_0x5cc542['get']('comments')['CommentView'],'CommentsListView':_0x2869c4,'CommentThreadInputView':_0x2132db,'SuggestionView':_0x4d4db7}),_0x36adba['suggestionView']['acceptButton']['on']('execute',()=>{_0x2adcb['editing']['view']['focus']();}),_0x36adba['suggestionView']['discardButton']['on']('execute',()=>{_0x2adcb['editing']['view']['focus']();}),_0x16bb3f=_0x45c547['createAnnotationView'](this['editor']['locale'],_0x36adba),_0x16bb3f['bind']('isDirty')['to'](_0x36adba,'isDirty'),_0x16bb3f['bind']('length')['to'](_0x36adba),_0x16bb3f['bind']('type')['to'](_0x36adba,'type',_0x979419=>'suggestion-'+_0x979419),_0x36adba['on']('escape',()=>{_0x233cec['fire']('escape');}),this['_annotationViews']['set'](_0x582eda['id'],_0x16bb3f));const _0x3500f2=_0x1bf8a8['createCommentThreadController'](_0x582eda['commentThread'],_0x36adba),_0x20a606=new pe(_0x2adcb,_0x582eda,_0x36adba,_0x3500f2),_0x16910f=_0x582eda['getAllAdjacentSuggestions']()['filter'](_0x2727ef=>_0x2727ef['isInContent']);_0x36adba['descriptionParts']=_0x2adcb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16910f),this['_suggestionToController']['set'](_0x582eda,_0x20a606),this['_viewToController']['set'](_0x36adba,_0x20a606),_0x233cec=_0x45c547['createAnnotation']({'view':_0x16bb3f,'target':()=>{const _0x11ca55=[],_0x4b693a=_0x582eda['getAllAdjacentSuggestions']()['filter'](_0x16dccc=>_0x16dccc['isInContent']);for(const _0x4776a4 of _0x4b693a)_0x11ca55['push'](..._0x4776a4['getMarkers']());return _0x18066e(_0x2adcb['editing'],_0x11ca55);},'type':()=>'suggestion-'+_0x20a606['view']['type']}),_0x1bf8a8['_bindAnnotationToEditors'](_0x36adba,_0x233cec),_0x45c547['add'](_0x233cec),_0x123e2b['registerAnnotation'](_0x233cec);}['_destroyController'](_0x31f835){const _0x27fdcc=this['editor']['plugins']['get']('CommentsRepository'),_0x63bcc=this['editor']['plugins']['get']('Annotations'),_0x3fbb7a=this['_suggestionToController']['get'](_0x31f835),_0x1d04bf=_0x3fbb7a['view'],_0x11cd4d=_0x63bcc['getByInnerView'](_0x1d04bf);_0x27fdcc['_unbindEditors'](_0x1d04bf),_0x11cd4d&&_0x63bcc['remove'](_0x11cd4d),this['_suggestionToController']['delete'](_0x31f835),this['_viewToController']['delete'](_0x1d04bf),_0x3fbb7a['destroy']();}['_updateController'](_0x4d7d50){if(!_0x4d7d50['isInContent']||!this['_suggestionToController']['has'](_0x4d7d50))return;const _0xf7f66a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40d160=this['_suggestionToController']['get'](_0x4d7d50),_0x12294e=_0x4d7d50['getAllAdjacentSuggestions']();_0x40d160['view']['descriptionParts']=_0xf7f66a['descriptionFactory']['getDescriptions'](_0x12294e);}['destroy'](){for(const _0x22134e of this['_suggestionToController']['keys']())this['_destroyController'](_0x22134e);for(const _0x16a337 of this['_annotationViews']['values']())_0x16a337['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4437fa){return'model'in _0x4437fa;}class k extends _0x121524{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x428ab9){this['editor']['plugins']['get'](p)['adapter']=_0x428ab9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1171f1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1171f1);}['getSuggestions']({skipNotAttached:_0x450f16=!0x1,toJSON:_0x156232=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x450f16,'toJSON':_0x156232});}['getSuggestion'](_0x5725d2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5725d2);}}const w=['Pagination'];class T extends _0x121524{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5d9896=this['editor'];if(_0x5d9896['config']['define']('trackChangesData.editorCreator',_0x48c080=>{const _0x2c59f7=_0x5d9896['model']['document']['getRootNames']()['reduce']((_0x21ccc0,_0x26f3fe)=>(_0x21ccc0[_0x26f3fe]='',_0x21ccc0),{});return _0x5d9896['constructor']['create'](_0x2c59f7,_0x48c080);}),'function'!=typeof _0x5d9896['config']['get']('trackChangesData')['editorCreator'])throw new _0x33c4a9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xbd8a27){return N(this['editor'],!0x0,_0xbd8a27);}['getDataWithDiscardedSuggestions'](_0x24ce9f){return N(this['editor'],!0x1,_0x24ce9f);}}class D extends _0x121524{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ec1b3){function _0x2e033e(_0x593f35){return _0x593f35['map'](_0x28e9c5=>String['fromCharCode'](_0x28e9c5))['join']('');}super(_0x3ec1b3),this['result']='end',_0x3ec1b3[_0x2e033e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e033e([0x76,0x69,0x65,0x77])][_0x2e033e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e033e([0x61,0x75,0x74,0x6f]),_0x3ec1b3[_0x2e033e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2e033e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e033e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2e033e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2e033e([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 Ge(_0x170afc){return void 0x0!==_0x170afc['getRootsAttributes'];}async function N(_0x2e16f5,_0xb280c5,_0x515f70){const _0x50eadb=_0x4fa1ac(_0x2e16f5,w);_0x50eadb['plugins']['push'](p,D),_0x50eadb['rootsAttributes']=Ge(_0x2e16f5)?_0x2e16f5['getRootsAttributes']():void 0x0;const _0x2cc4aa=document['createDocumentFragment'](),_0x3d08c6=_0x2e16f5['config']['get']('trackChangesData')['editorCreator'],_0x481a88=await _0x3d08c6(_0x50eadb,()=>function(_0x28a0fa){const _0x532d6c=document['createElement']('div');return _0x28a0fa['appendChild'](_0x532d6c),_0x532d6c;}(_0x2cc4aa));!function(_0x295c52,_0x207afb){const _0xafe906=_0x295c52['model']['document']['getRootNames']()['reduce']((_0x44952f,_0x4cf552)=>(_0x44952f[_0x4cf552]=_0x295c52['data']['get']({'rootName':_0x4cf552}),_0x44952f),{}),_0x2f3b34=_0x295c52['plugins']['get']('Users')['users']['map'](_0x33f697=>({'id':_0x33f697['id'],'name':_0x33f697['name']})),_0x431be8=_0x295c52['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x179d07=_0x295c52['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39c221=_0x207afb['plugins']['get']('Users'),_0x2889df=_0x207afb['plugins']['get']('TrackChangesEditing'),_0x79780b=_0x207afb['plugins']['get']('CommentsRepository');for(const _0x54f228 of _0x79780b['getCommentThreads']())_0x54f228['remove']();for(const _0x486ebd of _0x2f3b34)_0x39c221['getUser'](_0x486ebd['id'])||_0x39c221['addUser'](_0x486ebd);_0x39c221['me']||_0x39c221['useAnonymousUser']();for(const _0x58c880 of _0x179d07)_0x79780b['addCommentThread'](_0x58c880);for(const _0x460ee2 of _0x431be8)_0x2889df['addSuggestionData'](_0x460ee2);_0x207afb['data']['set'](_0xafe906);}(_0x2e16f5,_0x481a88),_0x481a88['execute'](_0xb280c5?'acceptAllSuggestions':'discardAllSuggestions');const _0x33a7c4=Ge(_0x481a88)?_0x481a88['getFullData'](_0x515f70):_0x481a88['data']['get'](_0x515f70);return await _0x481a88['destroy'](),_0x33a7c4;}class Me extends _0x3c3a65{['options'];constructor(_0x124bd3,_0x4c3fb8){super(_0x124bd3),this['options']=_0x4c3fb8,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'](_0x210e3f,_0x4ded64){if(!this['element'])return;const _0x1d44c5=[];for(const [_0x14817c,_0x2b6e09]of _0x210e3f){const _0x5eac7f=document['createElement']('div');_0x5eac7f['setAttribute']('data-ck-root-name',_0x14817c),_0x5eac7f['className']=_0x2b6e09['classes']+'\x20ck-track-changes-preview__root-container',_0x5eac7f['innerHTML']=_0x2b6e09['content'],_0x1d44c5['push'](_0x5eac7f);}_0x4ded64(this['element'],_0x1d44c5),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xaae2ec{constructor(_0x17cc64){super(_0x17cc64),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1ffa09=this['editor'],_0x5aedee=_0x1ffa09['locale'],_0x2d2894=_0x1ffa09['plugins']['get']('Dialog');let _0x1aeb4e;const _0x324972=function(_0x3e2164){const _0x37a90d={};if('editables'in _0x3e2164['ui']['view']){for(const [_0xffeccf,_0x1573cd]of Object['entries'](_0x3e2164['ui']['view']['editables']))_0x37a90d[_0xffeccf]=_0x1573cd['element'];}else _0x37a90d[_0x3e2164['model']['document']['getRootNames']()[0x0]]=_0x3e2164['ui']['view']['editable']['element'];return _0x37a90d;}(_0x1ffa09),_0x42566d=function(_0x5c0810){let _0x887848=0x0;for(const _0x351a7b of Object['values'](_0x5c0810))_0x887848=Math['max'](_0x887848,_0x351a7b['getBoundingClientRect']()['width']);let _0x32a94f=0x0;for(const _0x107c99 of Object['values'](_0x5c0810))_0x32a94f+=_0x107c99['getBoundingClientRect']()['height'];const _0x5dc676=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2f6794=Math['min'](_0x32a94f,_0x5dc676);return{'width':_0x887848,'height':_0x2f6794};}(_0x324972);_0x2d2894['show']({'id':'finalContentPreview','title':c(_0x5aedee,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5aedee,{'dialogRects':_0x42566d}),'onHide':()=>{_0x1aeb4e['detachFromDom']();},'onShow':()=>{_0x1ffa09['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x467b5b=>{const _0x222b0d=this['_standarizeRootsData'](_0x467b5b,_0x1ffa09,_0x324972);_0x2d2894['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x222b0d,_0x1ffa09['config']['get']('trackChanges.preview.renderFunction'));}),_0x1aeb4e=new _0x428682(_0x5aedee,[_0x2d2894['view']]),_0x1aeb4e['attachToDom'](),_0x1aeb4e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1ffa09['once']('destroy',()=>{_0x1aeb4e['detachFromDom']();});const _0x24ffeb=_0x2d2894['view']['headerView']['class'];_0x2d2894['view']['headerView']['class']=_0x24ffeb?_0x24ffeb+'\x20ck-reset_all':'ck-reset_all',_0x2d2894['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2d2894['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1c7df6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x434909=_0x1c7df6['previewMode'],_0x42d0a0={};if('$labels'===_0x434909){for(const _0x83e195 of _0x1c7df6['getMergeFieldsIds']())_0x42d0a0[_0x83e195]=_0x1c7df6['getLabel'](_0x83e195)||_0x83e195;}else{const _0x20cb8f='$defaultValues'===_0x434909?_0x1c7df6['getDefaultValues']():_0x1c7df6['getDataSetValues'](_0x434909,!0x0);for(const _0x65d555 of Object['entries'](_0x20cb8f)){const [_0x4cbacc,_0x349674]=_0x65d555;_0x42d0a0[_0x4cbacc]=null!==_0x349674?_0x349674:_0x1c7df6['getLabel'](_0x4cbacc)||_0x4cbacc;}}return{'mergeFieldsData':_0x42d0a0};}['_standarizeRootsData'](_0x2f63ab,_0x13de9e,_0x5ef968){let _0xe038c9;if('string'==typeof _0x2f63ab){const _0x529e49=_0x13de9e['model']['document']['getRootNames']()[0x0];_0xe038c9={[_0x529e49]:_0x2f63ab};}else _0xe038c9=_0x2f63ab;const _0x1b3e78=this['_fixMediaEmbeds'](_0xe038c9,_0x13de9e),_0x13e115=function(_0xe70bd2,_0x4982ce){for(const [_0x31da9d,_0x39d02a]of _0xe70bd2)_0x39d02a['classes']=_0x4982ce[_0x31da9d]['classList']['value']['replace']('ck-focused','');return _0xe70bd2;}(this['_sortRoots'](_0x13de9e)['reduce']((_0x11baf1,_0x3609cb)=>(_0x11baf1['push']([_0x3609cb,{'content':_0x1b3e78[_0x3609cb],'classes':''}]),_0x11baf1),[]),_0x5ef968);return _0x13e115;}['_fixMediaEmbeds'](_0x19805e,_0x336036){if(!_0x336036['plugins']['has']('MediaEmbedEditing'))return _0x19805e;const _0x2168c4=_0x336036['plugins']['get']('MediaEmbedEditing');for(const [_0x48f5aa,_0x3066c8]of Object['entries'](_0x19805e)){const _0x3a4721=document['createElement']('div');_0x3a4721['innerHTML']=_0x3066c8,(_0x3a4721['querySelectorAll']('figure.media')['forEach'](_0x3f2129=>{const _0x4efc4d=_0x3f2129['querySelector']('oembed');if(_0x4efc4d){const _0x142ca6=_0x4efc4d['getAttribute']('url');if(_0x142ca6){const _0x43fb4f=_0x2168c4['registry']['getMediaViewElement'](new _0x1c82f2(_0x336036['editing']['view']['document']),_0x142ca6,{'elementName':'','renderForEditingView':!0x0}),_0x3184aa=document['createElement']('div');_0x3184aa['classList']['add']('ck-media__wrapper'),_0x43fb4f['render'](_0x3184aa,_0x336036['editing']['view']['domConverter']),_0x4efc4d['replaceWith'](_0x3184aa);}}}),_0x19805e[_0x48f5aa]=_0x3a4721['innerHTML']);}return _0x19805e;}['_sortRoots'](_0x3c2d99){if(!function(_0x438f07){return void 0x0!==_0x438f07['getRootsAttributes'];}(_0x3c2d99))return _0x3c2d99['model']['document']['getRootNames']();const _0x4bd8f0=[],_0x4b8cda=new Map();for(const _0x23339d of _0x3c2d99['model']['document']['getRootNames']()){const _0x24025f=_0x3c2d99['editing']['view']['getDomRoot'](_0x23339d)['getClientRects']()['item'](0x0);_0x4bd8f0['push'](_0x23339d),_0x4b8cda['set'](_0x23339d,_0x24025f);}return _0x4bd8f0['sort']((_0x298616,_0x3e0572)=>{const _0x34797a=_0x4b8cda['get'](_0x298616),_0x4d8858=_0x4b8cda['get'](_0x3e0572);return _0x34797a['y']-_0x4d8858['y']||_0x34797a['x']-_0x4d8858['x'];}),_0x4bd8f0;}}class te extends _0x121524{static get['requires'](){return[T,_0x179695];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf76daa){super(_0xf76daa),_0xf76daa['commands']['add']('previewFinalContent',new re(this['editor'])),_0xf76daa['config']['define']('trackChanges.preview.renderFunction',(_0x1d79c9,_0x477808)=>{for(const _0x491833 of _0x477808)_0x1d79c9['appendChild'](_0x491833);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};