@ckeditor/ckeditor5-track-changes 45.2.0-alpha.2 → 45.2.0-alpha.4

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 _0x3c6e3f,Plugin as _0x59f721,PendingActions as _0x3bd73a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x280f1c,ObservableMixin as _0x824c0,uid as _0x5011f0,priorities as _0xc3ad2a,insertToPriorityArray as _0x37821f,toArray as _0x43f047,logWarning as _0x247906,getEnvKeystrokeText as _0x32cd60,FocusTracker as _0x411687,KeystrokeHandler as _0x5036c6,Collection as _0x29a520}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x516f82,IconCancel as _0x40ee79,IconTrackChanges as _0x3c6561}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1a330b,View as _0x36f767,ViewCollection as _0x46b370,FocusCycler as _0x1ec038,ViewModel as _0x423a90,createDropdown as _0x471bad,SplitButtonView as _0x1aed8c,addListToDropdown as _0x386c3e,MenuBarMenuView as _0x192111,MenuBarMenuListView as _0x364d3b,ListSeparatorView as _0x11b1e0,MenuBarMenuListItemView as _0x22223f,MenuBarMenuListItemButtonView as _0x112160,BodyCollection as _0x529ec8,Dialog as _0x51c057}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x182af8,hashObject as _0x4130c6,surroundingMarkersDetector as _0x1b4244,FOCUS_ANNOTATION_KEYSTROKE as _0x5a122d,AriaDescriptionView as _0x459411,setupThreadKeyboardNavigation as _0x3d5471,trimHtml as ti,UserView as _0x3cca20,LateFocusButtonView as _0x400f94,getDateTimeFormatter as _0x597a50,getAllMarkersDomElementsSorted as _0x2492d1,sanitizeEditorConfig as _0x3d709e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x32bb8c,LiveRange as _0x39b5cf,LivePosition as _0x3416fa,DowncastWriter as _0x34e4ea}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x49fc28,toWidget as _0x22735a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1777b1,set as _0xbd147e,isEqual as _0x5c3aba,unset as _0x30d09d,omit as Ft}from'es-toolkit/compat';import{Delete as _0x23c0b1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x783952}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3de457}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x3c6e3f{['_enabledCommands'];constructor(_0x89b294,_0x11fc2e){super(_0x89b294),this['_enabledCommands']=_0x11fc2e,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 _0x3e98f8 of this['editor']['commands']['commands']())_0x3e98f8['affectsData']&&!this['_enabledCommands']['has'](_0x3e98f8)&&_0x3e98f8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xf732c4 of this['editor']['commands']['commands']())_0xf732c4['affectsData']&&!this['_enabledCommands']['has'](_0xf732c4)&&_0xf732c4['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x3c6e3f{['_suggestions'];constructor(_0x2159ff,_0x51daf1){super(_0x2159ff),this['_suggestions']=_0x51daf1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x43e5d4){const _0x51bd91=this['_suggestions']['get'](_0x43e5d4);if(!_0x51bd91)throw new _0x280f1c('track-changes-accept-suggestion-not-found',this);const _0x158caa=_0x51bd91['getRanges']();this['editor']['model']['canEditAt'](_0x158caa)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x51bd91);}}class O extends _0x3c6e3f{['_suggestions'];constructor(_0x4286db,_0x26e2a7){super(_0x4286db),this['_suggestions']=_0x26e2a7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2ba749){const _0x58130b=this['_suggestions']['get'](_0x2ba749);if(!_0x58130b)throw new _0x280f1c('track-changes-discard-suggestion-not-found',this);const _0x585798=_0x58130b['getRanges']();this['editor']['model']['canEditAt'](_0x585798)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x58130b);}}function ls(_0x2ea74f,_0x2b99c7){let _0x1783e6='';return _0x1783e6+=_0x2ea74f['split']('*')['map']((_0x3e3d57,_0x261a24)=>_0x261a24%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3e3d57)+'</span>':nn(_0x3e3d57))['join'](''),_0x2b99c7&&(_0x1783e6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2b99c7['value']+'\x22\x20title=\x22'+_0x2b99c7['title']+'\x22></span>'),_0x1783e6;}function nn(_0x474e23){const _0xce20ff=document['createElement']('span');return _0xce20ff['innerText']=_0x474e23,_0xce20ff['innerHTML'];}function ts(_0x1b4d1e){return _0x1b4d1e['sort']((_0x3574ba,_0x15cf22)=>'deletion'==_0x3574ba['type']&&'deletion'!=_0x15cf22['type']?-0x1:'deletion'!=_0x3574ba['type']&&'deletion'==_0x15cf22['type']?0x1:0x0);}function to(_0x1ead38,_0x1f2a2a){let _0x2ad8a8,_0x462084=0x0;const _0x4107ef=[],_0x33c31c=_0x1f2a2a['schema'];for(;_0x462084<_0x1ead38['length'];){const _0x17ce69=_0x1ead38[_0x462084],_0x25d8b1=_0x1ead38[_0x462084+0x1];_0x2ad8a8||(_0x2ad8a8=_0x1f2a2a['createPositionBefore'](_0x17ce69)),on(_0x1f2a2a,_0x17ce69,_0x25d8b1)||(_0x4107ef['push'](_0x1f2a2a['createRange'](_0x2ad8a8,_0x33c31c['isObject'](_0x17ce69)?_0x1f2a2a['createPositionAfter'](_0x17ce69):_0x1f2a2a['createPositionAt'](_0x17ce69,'end'))),_0x2ad8a8=null),_0x462084++;}return _0x4107ef;}function on(_0x3635b7,_0x253a1d,_0x2bc995){if(!_0x2bc995)return!0x1;const _0x5ab8e4=_0x3635b7['createPositionAfter'](_0x253a1d),_0x2701a9=_0x3635b7['createPositionBefore'](_0x2bc995);return _0x5ab8e4['isTouching'](_0x2701a9);}function rs(_0x4b9463,_0x3d7956,_0x239547){for(;_0x239547['length'];){const _0x49c4fc=_0x239547['splice'](0x0,0x64);_0x4b9463['change'](()=>{for(const _0x14aac1 of _0x49c4fc)_0x14aac1['isInContent']&&_0x3d7956['execute'](_0x14aac1['id']);});}}class R extends _0x3c6e3f{['_command'];['_suggestions'];constructor(_0x407f94,_0x3d6380,_0x269e46){super(_0x407f94),this['_command']=_0x3d6380,this['_suggestions']=_0x269e46,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2149fd=Array['from'](this['_suggestions']['values']())['some'](_0x2da4fb=>_0x2da4fb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2149fd;}['execute'](){const _0x342e33=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2db93a of _0x342e33){const _0x5177ab=_0x2db93a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5177ab))return;}rs(this['editor']['model'],this['_command'],_0x342e33);}}class E extends _0x3c6e3f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4345fa,_0x38b673,_0x3fb188){super(_0x4345fa),this['_command']=_0x38b673,this['_suggestions']=_0x3fb188,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x249606=this['editor']['model']['document']['selection'],_0x5b3044=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x130b77,_0x38c5bc){const _0x54909a=Array['from'](_0x130b77['getRanges']()),_0x3e71c0=new Set();for(const _0x4eb9d6 of _0x38c5bc)if(_0x4eb9d6['isInContent']){for(const _0x224ffa of _0x54909a)for(const _0x1e3a6c of _0x4eb9d6['getRanges']())(_0x224ffa['isIntersecting'](_0x1e3a6c)||_0x130b77['isCollapsed']&&!_0x4eb9d6['isMultiRange']&&_0x4eb9d6['next']&&_0x1e3a6c['end']['isTouching'](_0x224ffa['start']))&&_0x3e71c0['add'](_0x4eb9d6);}return _0x3e71c0;}(_0x249606,_0x5b3044),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2519d2=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4aa23a of _0x2519d2){const _0x40c671=_0x4aa23a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x40c671))return;}rs(this['editor']['model'],this['_command'],_0x2519d2);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x824c0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xffaee7,_0x204c2d){super(),this['id']=_0x204c2d['id'],this['type']=_0x204c2d['type'],this['subType']=_0x204c2d['subType']||null,this['author']=_0x204c2d['author'],this['creator']=_0x204c2d['creator']||_0x204c2d['author'],this['isExternal']=Boolean(_0x204c2d['attributes']&&_0x204c2d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x204c2d['originalSuggestionId']||null,this['_model']=_0xffaee7,this['_onAccept']=_0x204c2d['onAccept'],this['_onDiscard']=_0x204c2d['onDiscard'],this['_onAttributesChange']=_0x204c2d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x204c2d['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 _0x292483=this;for(;_0x292483['previous'];)_0x292483=_0x292483['previous'];return _0x292483;}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'](_0x255133){this['_markerNames']['add'](_0x255133);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x54bcd7=>this['_model']['markers']['get'](_0x54bcd7))['filter'](_0x4e33e4=>_0x4e33e4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xf97704=>{for(const _0x30dc50 of this['getMarkers']())_0xf97704['removeMarker'](_0x30dc50);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ae000){this['_model']['change'](_0x37469f=>{_0x37469f['removeMarker'](_0x1ae000);}),this['_markerNames']['delete'](_0x1ae000);}['addRange'](_0x117cab){const _0x4ae57d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4ae57d),this['_model']['change'](_0x21510f=>{_0x21510f['addMarker'](_0x4ae57d,{'range':_0x117cab,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x209ab4){for(const _0x590f62 of this['getRanges']())if(_0x590f62['isIntersecting'](_0x209ab4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x464980=>_0x464980['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3f496e,_0x2b5594)=>[..._0x3f496e,..._0x2b5594['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x28e8cf=this['getRanges']();if(0x1!=_0x28e8cf['length'])return null;const _0x2da122=_0x28e8cf[0x0],_0x20f6a8=_0x2da122['start']['nodeAfter'],_0x3a0203=_0x2da122['end']['nodeBefore'];return _0x20f6a8 instanceof _0x32bb8c?_0x20f6a8!=_0x3a0203?null:_0x20f6a8: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 _0x3a7926=[];let _0x4ee5c9=this['head'];for(;_0x4ee5c9;)_0x3a7926['push'](_0x4ee5c9),_0x4ee5c9=_0x4ee5c9['next'];return _0x3a7926;}['setAttribute'](_0x1e11e5,_0x14d0e4){const _0x1f4e6d=_0x1777b1(this['attributes']);_0xbd147e(_0x1f4e6d,_0x1e11e5,_0x14d0e4),_0x5c3aba(_0x1f4e6d,this['attributes'])||(this['attributes']=_0x1f4e6d,this['_onAttributesChange'](_0x1f4e6d));}['removeAttribute'](_0x1e51f5){const _0x574afb=_0x1777b1(this['attributes']);_0x30d09d(_0x574afb,_0x1e51f5),_0x5c3aba(_0x574afb,this['attributes'])||(this['attributes']=_0x574afb,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 _0x5011f0()['substr'](0x1,0x5);}}function c(_0x37a2da,_0x4d6fa2,_0x1e50ca){const _0x25ca2d=_0x37a2da['t'],t=_0x37a2da['t'];switch(_0x4d6fa2){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',_0x1e50ca);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1e50ca);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1e50ca);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1e50ca);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1e50ca);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',_0x1e50ca);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1e50ca);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',_0x1e50ca);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1e50ca);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1e50ca);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1e50ca);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1e50ca);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1e50ca);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1e50ca);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1e50ca);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1e50ca);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1e50ca);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1e50ca);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1e50ca);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1e50ca);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1e50ca);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1e50ca);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1e50ca);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1e50ca);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1e50ca);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1e50ca);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1e50ca);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1e50ca);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1e50ca);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1e50ca);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1e50ca);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1e50ca);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1e50ca);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1e50ca);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'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1e50ca);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1e50ca);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 _0x25ca2d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1e50ca);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x25ca2d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1e50ca);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1e50ca);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'},_0x1e50ca);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'},_0x1e50ca);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'},_0x1e50ca);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4d6fa2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4a11cb,_0x140411){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4a11cb,this['_locale']=_0x140411;}['getDescriptions'](_0x125a09){const _0xc7f9a7=[],_0xf13075=new Set(),_0x3a6df9=new Set();for(let _0xc8d5df=0x0;_0xc8d5df<_0x125a09['length'];_0xc8d5df++){const _0xd6867=_0x125a09[_0xc8d5df];if(!_0xd6867['isInContent'])continue;const _0x3d0e96=this['_handleCustomCallbackDescription'](_0xd6867);if(_0x3d0e96){if(null!=_0xd6867['subType']){if(_0xf13075['has'](_0xd6867['subType']))continue;_0xf13075['add'](_0xd6867['subType']);}_0xc7f9a7['push'](_0x3d0e96);}else{if('attribute'!=_0xd6867['type'])'insertion'!=_0xd6867['type']&&'deletion'!=_0xd6867['type']||this['_handleInsertRemoveSuggestionDescription'](_0xc7f9a7,_0xd6867,_0x125a09[_0xc8d5df+0x1]);else{const _0x320e04=_0xd6867['data']['key'];if(_0x3a6df9['has'](_0x320e04))continue;_0x3a6df9['add'](_0xd6867['data']['key']),_0x320e04==u?this['_handleRenameSuggestionDescription'](_0xc7f9a7,_0xd6867):this['_handleAttributeSuggestionDescription'](_0xc7f9a7,_0xd6867);}}}return this['_resolveDescriptionItems'](_0xc7f9a7);}['registerDescriptionCallback'](_0x2aedf7){this['_customCallbacks']['push'](_0x2aedf7);}['registerElementLabel'](_0x3db2ba,_0x489a92,_0x3d304e=_0xc3ad2a['normal']){'function'==typeof _0x3db2ba?_0x37821f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3db2ba,'label':_0x489a92,'priority':_0x3d304e}):this['_itemLabels']['set'](_0x3db2ba,_0x489a92);}['registerAttributeLabel'](_0x1c007a,_0xd0c9f9){this['_attributeLabels']['set'](_0x1c007a,_0xd0c9f9);}['getItemLabel'](_0x43eceb,_0x5c8d1f=0x1){let _0x2ccafa;for(const _0x37cfa0 of this['_itemLabelsCallbacks'])if(_0x37cfa0['matchingCallback'](_0x43eceb)){_0x2ccafa=_0x37cfa0['label'];break;}return _0x2ccafa||(_0x2ccafa=this['_itemLabels']['get'](_0x43eceb['name'])),_0x2ccafa?_0x2ccafa(_0x5c8d1f):0x1!==_0x5c8d1f?_0x5c8d1f+'\x20'+_0x43eceb['name']+'s':''+_0x43eceb['name'];}['_addDescriptionItems'](_0x4f58d6,_0x2c06b8){const _0x204545=_0x2c06b8['getFirstRange']()['getWalker'](),_0x44e388='insertion'==_0x2c06b8['type']?'add':'remove';for(const _0x1cc94d of _0x204545){const _0x2e3cf7=_0x1cc94d['item'],_0x4867a6=_0x4f58d6[_0x4f58d6['length']-0x1];if(_0x2e3cf7['is']('$textProxy'))_0x4867a6&&_0x4867a6['type']['indexOf']('Container')>-0x1&&_0x4f58d6['pop'](),_0x4867a6&&'text'==_0x4867a6['type']?_0x4867a6[_0x44e388]+=_0x2e3cf7['data']:_0x4f58d6['push']({'type':'text','add':'add'==_0x44e388?_0x2e3cf7['data']:'','remove':'remove'==_0x44e388?_0x2e3cf7['data']:''});else{if(this['_schema']['isObject'](_0x2e3cf7)){const _0x5ed49c=_0x2e3cf7;if(_0x4867a6&&_0x4867a6['type']['indexOf']('Container')>-0x1&&_0x4f58d6['pop'](),'elementEnd'==_0x1cc94d['type'])continue;_0x4867a6&&_0x4867a6['type']==_0x44e388+'Object'&&_0x4867a6['element']['name']==_0x5ed49c['name']?_0x4867a6['quantity']++:_0x4f58d6['push']({'type':_0x44e388+'Object','element':_0x5ed49c,'quantity':0x1}),_0x204545['skip'](_0x28ae57=>!('elementEnd'==_0x28ae57['type']&&_0x28ae57['item']==_0x2e3cf7));}else{if(this['_schema']['checkChild'](_0x2e3cf7,'$text')||_0x2e3cf7['is']('element','softBreak')){const _0x4cd523=_0x2e3cf7;if('add'==_0x44e388&&'elementStart'==_0x1cc94d['type']||'remove'==_0x44e388&&'elementEnd'==_0x1cc94d['type'])continue;if(_0x4867a6&&-0x1==_0x4867a6['type']['indexOf']('Container')){'text'==_0x4867a6['type']&&(_0x4867a6[_0x44e388]+='\x0a');continue;}let _0x5d59c7;if(_0x5d59c7='add'==_0x44e388?_0x4cd523['nextSibling']&&!this['_schema']['isObject'](_0x4cd523['nextSibling'])?_0x4cd523['nextSibling']:null:_0x4cd523['previousSibling']&&!this['_schema']['isObject'](_0x4cd523['previousSibling'])?_0x4cd523['previousSibling']:null,_0x4cd523['isEmpty']||_0x5d59c7&&_0x5d59c7['isEmpty']){const _0x288870=_0x5d59c7&&_0x5d59c7['isEmpty']?_0x5d59c7:_0x4cd523;_0x4867a6&&_0x4867a6['type']==_0x44e388+'EmptyContainer'&&_0x4867a6['element']['name']==_0x288870['name']?_0x4867a6['quantity']++:_0x4f58d6['push']({'type':_0x44e388+'EmptyContainer','element':_0x288870,'quantity':0x1});}else _0x4f58d6['push']({'type':_0x44e388+'Container','element':_0x4cd523});}}}}}['_resolveDescriptionItems'](_0xbacc58){const _0x56162f=this['_locale'],_0x506b01=[],_0x1b4d86=[],_0x3712ae=[];for(const _0x17fe9a of _0xbacc58)switch(_0x17fe9a['type']){case'text':if(_0x17fe9a['add']=_0x17fe9a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17fe9a['remove']=_0x17fe9a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17fe9a['add']&&''!=_0x17fe9a['remove']){_0x506b01['push']({'type':'replace','content':c(_0x56162f,'REPLACE_TEXT',['\x22'+_0x17fe9a['remove']+'\x22','\x22'+_0x17fe9a['add']+'\x22'])});continue;}if(null!=_0x17fe9a['add']['match'](/^ +$/)){_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Insert:*\x20%0',c(_0x56162f,'ELEMENT_SPACE',_0x17fe9a['add']['length']))});continue;}if(null!=_0x17fe9a['remove']['match'](/^ +$/)){_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Remove:*\x20%0',c(_0x56162f,'ELEMENT_SPACE',_0x17fe9a['remove']['length']))});continue;}if(''!=_0x17fe9a['add']){_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Insert:*\x20%0','\x22'+_0x17fe9a['add']+'\x22')});continue;}_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Remove:*\x20%0','\x22'+_0x17fe9a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Insert:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Remove:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'addContainer':_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Split:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'removeContainer':_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Merge:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'addFormat':_0x1b4d86['push'](_0x17fe9a['key']);continue;case'removeFormat':_0x3712ae['push'](_0x17fe9a['key']);continue;default:_0x506b01['push'](_0x17fe9a);}if(_0x1b4d86['length']){const _0x5615f0=_0x1b4d86['map'](_0x4042c8=>this['_attributeLabels']['has'](_0x4042c8)?this['_attributeLabels']['get'](_0x4042c8):_0x4042c8)['join'](',\x20');_0x506b01['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5615f0)});}if(_0x3712ae['length']){const _0x2ef017=_0x3712ae['map'](_0x1e89a7=>this['_attributeLabels']['has'](_0x1e89a7)?this['_attributeLabels']['get'](_0x1e89a7):_0x1e89a7)['join'](',\x20');_0x506b01['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2ef017)});}return _0x506b01;}['_handleCustomCallbackDescription'](_0x57580d){for(const _0x406339 of this['_customCallbacks']){const _0x49c87d=_0x406339(_0x57580d);if(_0x49c87d&&'type'in _0x49c87d)return _0x49c87d;}}['_handleAttributeSuggestionDescription'](_0x1b4383,_0x4fb4b3){const _0x22af0a=_0x4fb4b3['data'],_0x35d979=void 0x0===_0x22af0a['newValue']?'removeFormat':'addFormat';_0x1b4383['push']({'type':_0x35d979,'key':_0x22af0a['key']});}['_handleRenameSuggestionDescription'](_0x50d2c2,_0x405def){_0x50d2c2['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x405def['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x51f568,_0x1855b5,_0x32f8ee){if(this['_addDescriptionItems'](_0x51f568,_0x1855b5),_0x32f8ee&&_0x32f8ee['getFirstRange']()&&!_0x1855b5['getFirstRange']()['end']['isEqual'](_0x32f8ee['getFirstRange']()['start'])){const _0x1d092e=_0x51f568[_0x51f568['length']-0x1],_0x76e954='insertion'==_0x1855b5['type']?'add':'remove';_0x1d092e&&'text'==_0x1d092e['type']&&(_0x1d092e[_0x76e954]+='\x0a');}}}class U extends _0x59f721{['afterInit'](){const _0x3c2b6e=this['editor'],_0x3c67ea=_0x3c2b6e['plugins']['get']('TrackChangesEditing');_0x3c2b6e['commands']['get']('showAIAssistant')&&_0x3c67ea['enableCommand']('showAIAssistant');}}class V extends _0x59f721{['afterInit'](){const _0x5e843a=this['editor'],_0x5391b8=_0x5e843a['locale'];if(!_0x5e843a['plugins']['has']('AlignmentEditing'))return;const _0x316c38=_0x5e843a['plugins']['get']('TrackChangesEditing');_0x316c38['enableDefaultAttributesIntegration']('alignment'),_0x316c38['registerBlockAttribute']('alignment'),_0x316c38['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x5391b8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50ca1b=this['editor'],_0x1a2b22=_0x50ca1b['locale'];_0x50ca1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x290d5e=>{if('formatBlock'!=_0x290d5e['type'])return;const {data:_0x2ed997}=_0x290d5e;if(_0x2ed997&&'alignment'==_0x2ed997['commandName']){const _0x7497f1=_0x2ed997['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1a2b22,'*Format:*\x20%0',function(_0x9ba5a2){switch(_0x9ba5a2){case'left':return c(_0x1a2b22,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1a2b22,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1a2b22,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1a2b22,'FORMAT_JUSTIFY_TEXT');}}(_0x7497f1))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x59f721{['afterInit'](){const _0x528bd7=this['editor'],_0x53d533=_0x528bd7['plugins']['get']('TrackChangesEditing'),_0x57244c=_0x528bd7['locale'];for(const _0x3c7cd4 of Zt){if(!_0x528bd7['plugins']['has'](_0x3c7cd4))continue;const _0x5990d4=_0x3c7cd4['slice'](0x0,-0x7)['toLowerCase'](),_0x19ec0e='FORMAT_'+_0x5990d4['toUpperCase']();_0x53d533['enableDefaultAttributesIntegration'](_0x5990d4),_0x53d533['registerInlineAttribute'](_0x5990d4),_0x53d533['descriptionFactory']['registerAttributeLabel'](_0x5990d4,c(_0x57244c,_0x19ec0e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d543c=this['editor'],_0x52cdfe=_0x2d543c['locale'],_0x2e702e=_0x2d543c['plugins']['get']('TrackChangesEditing');function _0x47c730(_0x2fc020,_0x3c76eb){_0x2e702e['descriptionFactory']['registerDescriptionCallback'](_0x265c8b=>{if('formatInline'!=_0x265c8b['type'])return;const {data:_0x398fd7}=_0x265c8b;return _0x398fd7&&_0x398fd7['commandName']===_0x2fc020?_0x398fd7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x52cdfe,'*Format:*\x20%0',_0x3c76eb)}:{'type':'format','content':c(_0x52cdfe,'*Remove\x20format:*\x20%0',_0x3c76eb)}:void 0x0;});}_0x47c730('bold',c(_0x52cdfe,'FORMAT_BOLD')),_0x47c730('italic',c(_0x52cdfe,'FORMAT_ITALIC')),_0x47c730('underline',c(_0x52cdfe,'FORMAT_UNDERLINE')),_0x47c730('code',c(_0x52cdfe,'FORMAT_CODE')),_0x47c730('strikethrough',c(_0x52cdfe,'FORMAT_STRIKETHROUGH')),_0x47c730('subscript',c(_0x52cdfe,'FORMAT_SUBSCRIPT')),_0x47c730('superscript',c(_0x52cdfe,'FORMAT_SUPERSCRIPT'));}}class G extends _0x59f721{['afterInit'](){const _0x1ecb3c=this['editor'],_0x23f960=_0x1ecb3c['locale'];if(!_0x1ecb3c['plugins']['has']('BlockQuoteEditing'))return;const _0x259b2b=_0x1ecb3c['plugins']['get']('TrackChangesEditing'),_0x1cc431=this['editor']['commands']['get']('blockQuote');_0x259b2b['enableCommand']('blockQuote',(_0x52e19f,_0x414b2e={})=>{const _0x366623=this['editor']['model']['document']['selection'],_0x37eac9=_0x414b2e&&void 0x0!==_0x414b2e['forceValue']?_0x414b2e['forceValue']:!_0x1cc431['value'];let _0x2ec975=[];if(_0x37eac9){const _0x4e7c7b=Array['from'](_0x366623['getSelectedBlocks']())['filter'](_0x3e9367=>oo(_0x3e9367)||function(_0x41bc7e,_0x357001){const _0x531afd=_0x357001['checkChild'](_0x41bc7e['parent'],'blockQuote'),_0x561d4f=_0x357001['checkChild'](['$root','blockQuote'],_0x41bc7e);return _0x531afd&&_0x561d4f;}(_0x3e9367,this['editor']['model']['schema']));_0x2ec975=to(_0x4e7c7b,_0x1ecb3c['model']);}else{const _0x238592=Array['from'](_0x366623['getSelectedBlocks']())['filter'](_0x34a6f2=>oo(_0x34a6f2));_0x2ec975=to(_0x238592,_0x1ecb3c['model']);}_0x1ecb3c['model']['change'](()=>{for(const _0x3e318d of _0x2ec975)_0x259b2b['markBlockFormat'](_0x3e318d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x37eac9}]});});}),_0x259b2b['descriptionFactory']['registerDescriptionCallback'](_0x4c69cc=>{const {data:_0x165925}=_0x4c69cc;if(_0x165925&&'blockQuote'==_0x165925['commandName']){const _0x5bed3d=c(_0x23f960,'ELEMENT_BLOCK_QUOTE');return _0x165925['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x23f960,'*Set\x20format:*\x20%0',_0x5bed3d)}:{'type':'format','content':c(_0x23f960,'*Remove\x20format:*\x20%0',_0x5bed3d)};}});}}function oo(_0x3ad5c1){return'blockQuote'==_0x3ad5c1['parent']['name'];}class L extends _0x59f721{['afterInit'](){const _0x4eb03b=this['editor'],_0x182ec2=_0x4eb03b['locale'],_0x4ca945=_0x4eb03b['plugins']['get']('TrackChangesEditing');_0x4eb03b['plugins']['has']('BookmarkEditing')&&(_0x4ca945['enableCommand']('insertBookmark'),_0x4ca945['enableDefaultAttributesIntegration']('updateBookmark'),_0x4ca945['registerBlockAttribute']('bookmarkId'),_0x4ca945['descriptionFactory']['registerDescriptionCallback'](_0xb6d01e=>{if('insertion'!=_0xb6d01e['type']&&'deletion'!=_0xb6d01e['type']&&'attribute'!=_0xb6d01e['type'])return;const _0x480923=_0xb6d01e['getContainedElement']();if(null==_0x480923)return;if(!_0x480923['is']('element','bookmark'))return;const _0x4f0ce3=_0x480923['getAttribute']('bookmarkId');if('insertion'==_0xb6d01e['type'])return{'type':'insertion','content':c(_0x182ec2,'*Insert:*\x20%0','\x22'+_0x4f0ce3+'\x22\x20'+c(_0x182ec2,'ELEMENT_BOOKMARK'))};if('deletion'==_0xb6d01e['type'])return{'type':'deletion','content':c(_0x182ec2,'*Remove:*\x20%0','\x22'+_0x4f0ce3+'\x22\x20'+c(_0x182ec2,'ELEMENT_BOOKMARK'))};const {data:_0xca2f6b}=_0xb6d01e;if(!_0xca2f6b||'bookmarkId'!=_0xca2f6b['key'])return;return{'type':'format','content':c(_0x182ec2,'*Set\x20bookmark:*\x20%0','\x22'+_0xca2f6b['newValue']+'\x22')};}));}}class J extends _0x59f721{['afterInit'](){const _0x19604e=this['editor'];_0x19604e['plugins']['has']('CaseChange')&&(_0x19604e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19604e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19604e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x59f721{['afterInit'](){const _0x135745=this['editor'];_0x135745['commands']['get']('ckbox')&&_0x135745['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x59f721{['afterInit'](){const _0x38d346=this['editor'];if(!_0x38d346['plugins']['has']('CodeBlock'))return;const _0x568624=_0x38d346['plugins']['get']('TrackChangesEditing'),_0x417f8d=_0x38d346['locale'],_0x48cbe3=_0x38d346['config']['get']('codeBlock')['languages'],_0x1ec803=_0x38d346['commands']['get']('codeBlock');_0x568624['enableCommand']('indentCodeBlock'),_0x568624['enableCommand']('outdentCodeBlock'),_0x568624['enableCommand']('codeBlock',(_0x3f3a13,_0x2ff9c9={})=>{const _0x2a3943=_0x38d346['model'],_0x2bf8fe=_0x38d346['model']['document']['selection'],_0x32d67e=_0x2ff9c9&&void 0x0!==_0x2ff9c9['forceValue']?_0x2ff9c9['forceValue']:!_0x1ec803['value'];let _0xe6e76e;_0x2ff9c9['language']||(_0x2ff9c9['language']=_0x48cbe3[0x0]['language']),_0xe6e76e=_0x32d67e?Array['from'](_0x2bf8fe['getSelectedBlocks']())['filter'](_0x3c90d7=>eo(_0x3c90d7)||function(_0x22f758,_0x4e7869){if(_0x22f758['is']('rootElement')||_0x4e7869['isLimit'](_0x22f758))return!0x1;return _0x4e7869['checkChild'](_0x22f758['parent'],'codeBlock');}(_0x3c90d7,_0x2a3943['schema'])):Array['from'](_0x2bf8fe['getSelectedBlocks']())['filter'](_0x187c51=>eo(_0x187c51));const _0x1f80b7=to(_0xe6e76e,_0x2a3943);_0x2a3943['change'](()=>{for(const _0x3c3252 of _0x1f80b7)_0x568624['markBlockFormat'](_0x3c3252,{'commandName':'codeBlock','commandParams':[{..._0x2ff9c9,'forceValue':_0x32d67e}],'formatGroupId':'blockName'});});}),(_0x568624['descriptionFactory']['registerElementLabel']('codeBlock',_0x1355af=>c(_0x417f8d,'ELEMENT_CODE_BLOCK',_0x1355af)),_0x568624['descriptionFactory']['registerDescriptionCallback'](_0x2839fa=>{if('formatBlock'!=_0x2839fa['type'])return;const _0x186492=_0x417f8d['t'],{data:_0x33d480}=_0x2839fa;if(!_0x33d480||'codeBlock'!=_0x33d480['commandName'])return;const _0xccfb7c=_0x33d480['commandParams'][0x0]['language'],_0x562cdc=_0x186492(_0x48cbe3['find'](_0x44f8eb=>_0x44f8eb['language']===_0xccfb7c)['label'])['toLowerCase']();return _0x33d480['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x417f8d,'*Set\x20format:*\x20%0',c(_0x417f8d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x562cdc+')')}:{'type':'format','content':c(_0x417f8d,'*Remove\x20format:*\x20%0',c(_0x417f8d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xbb958c){return'codeBlock'==_0xbb958c['name'];}class q extends _0x59f721{['afterInit'](){const _0x51268f=this['editor'];if(!_0x51268f['plugins']['has']('CommentsEditing'))return;_0x51268f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4352f4,_0x1871f9,_0x312a24){const _0x1bc901=[];for(const _0x55ab4f of _0x1871f9['getItems']())_0x55ab4f['hasAttribute'](_0x4352f4)&&_0x1bc901['push'](_0x312a24['createRangeOn'](_0x55ab4f));return _0x1bc901;}function Fe(_0xf925e,_0x5d6534,{showActiveMarker:_0xffd2c0=!0x0}={}){const _0x5c6ad0=_0xf925e['plugins']['get']('TrackChangesEditing');return(_0x3a8d73,_0x18647a,_0x4dbcad)=>{if(!_0x4dbcad['consumable']['test'](_0x18647a['markerRange'],_0x3a8d73['name']))return;const _0x4ea822=_0x18647a['markerRange']['getWalker'](),_0x44acf2=_0x18647a['markerRange']['start'],_0x48b9e8=_0xf925e['model']['schema'];let _0x3cca2d=null,_0x20f2c2=null,_0x393bd2=!0x1,_0x59a13e=!0x1;for(const _0x2e2d60 of _0x4ea822){const _0x550101=_0x2e2d60['item'];_0x393bd2=_0x393bd2||_0x48b9e8['isContent'](_0x550101);const _0x342238=_0x4dbcad['mapper']['toViewElement'](_0x550101);if(_0x342238&&_0x342238['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e2d60['type']&&(_0x48b9e8['isBlock'](_0x550101)&&!_0x48b9e8['isLimit'](_0x550101)&&(_0x550101['nextSibling']||_0x44acf2['isAtEnd']?_0x3cca2d&&_0x3cca2d['parent']==_0x550101||(_0x3cca2d=_0x550101,_0x218cd9(_0x2e2d60['previousPosition']),_0x59a13e=!0x0):_0x20f2c2=_0x20f2c2||_0x2e2d60['previousPosition']));}function _0x218cd9(_0x1b79a6){const {id:_0x495101,authorId:_0x5521db}=_0x5c6ad0['_splitMarkerName'](_0x18647a['markerName']),_0x1e944c=_0x4dbcad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d6534,'data-suggestion':_0x495101,'data-author-id':_0x5521db}),_0x345035=_0x4dbcad['mapper']['toViewPosition'](_0x1b79a6);_0xffd2c0&&_0x5c6ad0['activeMarkers']['includes'](_0x18647a['markerName'])&&_0x4dbcad['writer']['addClass']('ck-suggestion-marker--active',_0x1e944c),_0x4dbcad['writer']['insert'](_0x345035,_0x1e944c),_0x4dbcad['mapper']['bindElementToMarker'](_0x1e944c,_0x18647a['markerName']);}_0x393bd2||_0x59a13e||!_0x20f2c2||_0x218cd9(_0x20f2c2);};}class z extends _0x59f721{static get['requires'](){return[_0x23c0b1];}['init'](){const _0x307619=this['editor'],_0x26773e=_0x307619['plugins']['get']('TrackChangesEditing');_0x26773e['enableCommand']('delete');const _0x3c72b6=_0x307619['commands']['get']('deleteForward');_0x26773e['enableCommand']('deleteForward',(_0x49ccdf,_0x594aef={})=>{const _0x2594ee=_0x307619['model']['createSelection'](_0x307619['model']['document']['selection']);_0x2594ee['isCollapsed']&&_0x307619['model']['modifySelection'](_0x2594ee,{'direction':'forward','unit':_0x594aef['unit']});const _0x351a62=_0x2594ee['getFirstRange'](),_0xbc07a5=_0x39b5cf['fromRange'](_0x351a62);let _0x5907d4;_0x49ccdf(_0x594aef),_0x5907d4='$graveyard'==_0xbc07a5['root']['rootName']?_0x307619['model']['createRange'](_0x351a62['start']):_0x307619['model']['createRange'](_0xbc07a5['start'],_0xbc07a5['end']),_0xbc07a5['detach'](),_0x307619['model']['enqueueChange'](_0x3c72b6['buffer']['batch'],_0x3fced1=>{_0x3c72b6['buffer']['lock'](),_0x3fced1['setSelection'](_0x3fced1['createRange'](_0x5907d4['end'])),_0x3c72b6['buffer']['unlock']();});}),_0x307619['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x307619,'merge'),{'priority':'high'}),_0x307619['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x23bac0,_0x20e320,_0x50e89b)=>{_0x50e89b['options']['showSuggestionHighlights']&&Fe(_0x307619,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x23bac0,_0x20e320,_0x50e89b);},{'priority':'high'}),_0x307619['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xba23e9,_0x44dbe7,_0x2fd2f7)=>{const _0x503e7a=_0x2fd2f7['mapper']['markerNameToElements'](_0x44dbe7['markerName']);if(_0x503e7a){for(const _0x2ab185 of _0x503e7a)_0x2ab185['is']('uiElement')&&(_0x2fd2f7['mapper']['unbindElementFromMarkerName'](_0x2ab185,_0x44dbe7['markerName']),_0x2fd2f7['writer']['remove'](_0x2ab185));}},{'priority':'high'});}}class W extends _0x59f721{['afterInit'](){const _0x45a0b1=this['editor'];if(!_0x45a0b1['plugins']['has']('ListEditing'))return;const _0x407fa1=_0x45a0b1['locale'],_0x3132ad=_0x45a0b1['plugins']['get']('TrackChangesEditing'),_0x1e0cf8=_0x45a0b1['plugins']['has']('TodoListEditing'),_0x34032c=!!_0x45a0b1['config']['get']('list.multiBlock');function _0x390975(_0x3e13f7){return{'type':'format','content':''+c(_0x407fa1,'*Set\x20format:*\x20%0',_0x3e13f7)};}function _0x801a15(_0x3bf756){return{'type':'format','content':''+c(_0x407fa1,'*Remove\x20format:*\x20%0',_0x3bf756)};}_0x3132ad['enableDefaultAttributesIntegration']('numberedList'),_0x3132ad['enableDefaultAttributesIntegration']('bulletedList'),_0x3132ad['enableDefaultAttributesIntegration']('customNumberedList'),_0x3132ad['enableDefaultAttributesIntegration']('customBulletedList'),_0x3132ad['enableDefaultAttributesIntegration']('indentList'),_0x3132ad['enableDefaultAttributesIntegration']('outdentList'),_0x3132ad['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3132ad['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3132ad['registerBlockAttribute']('listItemId'),_0x3132ad['registerBlockAttribute']('listType'),_0x3132ad['registerBlockAttribute']('listIndent'),_0x34032c&&(_0x3132ad['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3132ad['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1e0cf8&&(_0x3132ad['enableDefaultAttributesIntegration']('todoList'),_0x3132ad['enableDefaultAttributesIntegration']('checkTodoList'),_0x3132ad['registerBlockAttribute']('todoListChecked'),_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x165e8b=>{const {data:_0x45d0a8}=_0x165e8b;if(_0x45d0a8&&'todoListChecked'==_0x45d0a8['key'])return{'type':'format','content':_0x45d0a8['newValue']?c(_0x407fa1,'*Check\x20item*'):c(_0x407fa1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x19891e=>{if(_0x19891e['batch']['isUndo'])return!0x1;let _0x1edb6d=!0x1;const _0x56dc72=_0x3132ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x353c48=>'todoListChecked'===_0x3132ad['_getAttributeKey'](_0x353c48));for(const _0x425e55 of _0x56dc72){'todo'!=_0x425e55['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3132ad['_findSuggestions'](_0x425e55['getFirstRange'](),'attribute')['find'](_0x291135=>'listType'===_0x3132ad['_getAttributeKey'](_0x291135['suggestion']))||(_0x19891e['removeMarker'](_0x425e55['getFirstMarker']()),_0x1edb6d=!0x0));}return _0x1edb6d;})),_0x3132ad['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x407fa1,'FORMAT_INDENT'));const _0x4c3e5f={'type':'format','content':''};_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x2843df=>{const {data:_0x2427dc}=_0x2843df;if(!_0x2427dc||'listType'!=_0x2427dc['key'])return;let _0x21754b=_0x2843df['head'];for(;_0x21754b;){if(_0x21754b['data']&&(('listStyle'==_0x21754b['data']['key']||'listMarkerStyle'==_0x21754b['data']['key'])&&(_0x21754b['data']['newValue']&&'default'!=_0x21754b['data']['newValue']||'default'!=_0x21754b['data']['oldValue']&&!_0x2427dc['newValue'])||!_0x34032c&&_0x21754b['data']['key']==u))return _0x4c3e5f;_0x21754b=_0x21754b['next'];}if(null==_0x2427dc['newValue'])switch(_0x2427dc['oldValue']){case'bulleted':return _0x801a15(c(_0x407fa1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x801a15(c(_0x407fa1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x801a15(c(_0x407fa1,'ELEMENT_TODO_LIST'));}switch(_0x2427dc['newValue']){case'bulleted':return _0x390975(c(_0x407fa1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x390975(c(_0x407fa1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x390975(c(_0x407fa1,'ELEMENT_TODO_LIST'));}}),_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x35da46=>{const {data:_0x1205b1}=_0x35da46;if(_0x1205b1&&'listIndent'==_0x1205b1['key'])return null==_0x1205b1['newValue']||null==_0x1205b1['oldValue']&&0x0==_0x1205b1['newValue']?_0x4c3e5f:void 0x0;}),_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x2123e2=>{if('attribute'!=_0x2123e2['type'])return;const {data:_0x219e4c}=_0x2123e2;if(!_0x219e4c||'listItemId'!=_0x219e4c['key'])return;const _0x49ff2a=Te(_0x2123e2);return'newValue'==_0x49ff2a?{'type':'format','content':c(_0x407fa1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x49ff2a?{'type':'format','content':c(_0x407fa1,'*Split:*\x20list\x20item')}:_0x4c3e5f;}),_0x45a0b1['model']['document']['registerPostFixer'](_0x4d5b5f=>this['listItemIdFixer'](_0x4d5b5f)),_0x45a0b1['model']['document']['registerPostFixer'](_0x37e48d=>this['noTrackChangesFixer'](_0x37e48d)),_0x45a0b1['model']['document']['on']('change:data',(_0x424123,_0x135e29)=>{if(_0x135e29['isUndo']||!_0x135e29['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xf65404){if(_0xf65404['batch']['isUndo']||!_0xf65404['batch']['isLocal'])return!0x1;let _0x55f007=!0x1;const _0x310c23=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x233ee7=>_0x233ee7['data']&&'listItemId'==_0x233ee7['data']['key'])['filter'](_0x4a4a72=>_0x4a4a72['data']['newValue']&&_0x4a4a72['data']['oldValue']);for(const _0x692eeb of _0x310c23)Te(_0x692eeb)||(_0xf65404['removeMarker'](_0x692eeb['getFirstMarker']()),_0x55f007=!0x0);return _0x55f007;}['noTrackChangesFixer'](_0x28e4cf){if(_0x28e4cf['batch']['isUndo']||!_0x28e4cf['batch']['isLocal'])return!0x1;const _0x232c51=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x232c51['trackChangesCommand']['value'])return!0x1;let _0x5c4768=!0x1;const _0x138130=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x50f7f6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x197a6c=>'attribute'==_0x197a6c['type'])['filter'](_0x2a88a7=>_0x138130['includes'](_0x2a88a7['attributeKey']));if(0x0==_0x50f7f6['length'])return _0x5c4768;for(const _0x4a53dd of _0x50f7f6){const _0x3a49b0=_0x232c51['_findSuggestions'](_0x4a53dd['range'],'attribute')['filter'](_0x31df32=>!_0x31df32['meta']['isNextTo'])['map'](_0x56b079=>_0x56b079['suggestion'])['filter'](_0x3aef14=>{const _0x1c8761=_0x232c51['_getAttributeKey'](_0x3aef14);return _0x138130['includes'](_0x1c8761);});if(_0x3a49b0['length']){for(const _0x4b2038 of _0x3a49b0)_0x28e4cf['removeMarker'](_0x4b2038['getFirstMarker']());_0x5c4768=!0x0;}}return _0x5c4768;}['assureChains'](){const _0xcf3465=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30dca5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2c0ace;const _0x38bfed=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59d069=>{if(_0x59d069['data']['oldRange']||!_0x59d069['data']['newRange'])return null;if(!_0x59d069['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x36fb8f}=_0xcf3465['_splitMarkerName'](_0x59d069['name']);if(!_0xcf3465['hasSuggestion'](_0x36fb8f))return null;const _0x507f4e=_0xcf3465['getSuggestion'](_0x36fb8f);return _0x30dca5['includes'](_0x507f4e['data']['key']);})['map'](_0xd4c9fb=>{const {id:_0xc6dedc}=_0xcf3465['_splitMarkerName'](_0xd4c9fb['name']),_0x3ab8dd=_0xcf3465['getSuggestion'](_0xc6dedc);return _0x2c0ace=_0x3ab8dd['attributes']['groupId'],_0x3ab8dd['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x38bfed['size'])return;const _0x47b4a0=_0xcf3465['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33136f=>'attribute'==_0x33136f['type']&&_0x33136f['data']&&_0x30dca5['includes'](_0x33136f['data']['key'])&&_0x33136f['attributes']['groupId']!=_0x2c0ace)['map'](_0x7d6338=>({'listItem':_0x7d6338['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7d6338['attributes']['groupId']})),_0x38579c=new Set();for(const {groupId:_0x504ab2,listItem:_0x4ba9f3}of _0x47b4a0)_0x38bfed['has'](_0x4ba9f3)&&_0x38579c['add'](_0x504ab2);for(const _0xefbd8e of _0xcf3465['getSuggestions']())_0x38579c['has'](_0xefbd8e['attributes']['groupId'])&&_0xefbd8e['setAttribute']('groupId',_0x2c0ace);}['_supportLegacySuggestions'](){const _0x338005=this['editor'],_0x3057fd=_0x338005['locale'],_0x54cebb=_0x338005['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x54cebb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x6434dc,_0x28e2e3){const _0x30e3d0=[];for(let _0x577344 of _0x6434dc)_0x577344['start']['nodeAfter']===_0x577344['end']['parent']&&(_0x577344=_0x338005['model']['createRange'](_0x338005['model']['createPositionAt'](_0x577344['start']['nodeAfter'],0x0))),_0x30e3d0['push'](_0x577344);_0x338005['model']['change'](_0x5a7c9f=>{const _0x4073cf=_0x338005['model']['document']['selection'],_0x370211=Array['from'](_0x4073cf['getRanges']())['map'](_0x153121=>_0x39b5cf['fromRange'](_0x153121));_0x5a7c9f['setSelection'](_0x30e3d0),_0x338005['commands']['get'](_0x28e2e3['commandName'])['refresh'](),_0x28e2e3['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x338005['execute'](_0x28e2e3['commandName'],..._0x28e2e3['commandParams']),_0x5a7c9f['setSelection'](_0x370211);for(const _0x5c48cc of _0x370211)_0x5c48cc['detach']();});}),_0x54cebb['descriptionFactory']['registerElementLabel'](function(_0x3593a7){const _0x351d13=!_0x338005['model']['schema']['isObject'](_0x3593a7),_0x3fb9a1=_0x3593a7['previousSibling'],_0x503038=_0x3593a7['nextSibling'],_0x5f2e16=_0x3593a7['getAttribute']('listItemId'),_0x52bcc0=!_0x3fb9a1||_0x3fb9a1['getAttribute']('listItemId')!==_0x5f2e16,_0x16268f=!_0x503038||_0x503038['getAttribute']('listItemId')!==_0x5f2e16;return _0x351d13&&Boolean(_0x5f2e16)&&_0x52bcc0&&_0x16268f;},_0x5cf4bf=>c(_0x3057fd,'ELEMENT_LIST_ITEM',_0x5cf4bf));}['_registerLegacyDescription'](){const _0x26654e=this['editor'],_0x13a465=_0x26654e['locale'];function _0x18548e(_0x4187ac){const _0x2b0e74=_0x26654e['commands']['get']('bulletedList')['value'],_0x5a61f1=_0x26654e['commands']['get']('numberedList')['value'];return'numberedList'===_0x4187ac?_0x2b0e74:_0x5a61f1;}_0x26654e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x45adb6){if('formatBlock'!=_0x45adb6['type'])return;const {data:_0x38f681}=_0x45adb6;if(!_0x38f681)return;let _0x1d3df0,_0x1f3e7a,_0x5cf268,_0x4355ea;switch(_0x38f681['commandName']){case'bulletedList':_0x5cf268=_0x38f681['commandParams'][0x0]['forceValue'],_0x4355ea=_0x18548e(_0x38f681['commandName']),_0x1d3df0=_0x5cf268?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4355ea&&_0x26654e['config']['get']('list.multiBlock')||(_0x1d3df0='*Change\x20to:*\x20%0'),_0x1f3e7a={'type':'format','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5cf268=_0x38f681['commandParams'][0x0]['forceValue'],_0x4355ea=_0x18548e(_0x38f681['commandName']),_0x1d3df0=_0x5cf268?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4355ea&&_0x26654e['config']['get']('list.multiBlock')||(_0x1d3df0='*Change\x20to:*\x20%0'),_0x1f3e7a={'type':'format','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1d3df0='*Indent:*\x20%0',_0x1f3e7a={'type':'format','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1d3df0=function(_0x4b62c8){const _0x2aa491=_0x4b62c8['getFirstRange']();let _0xf895ab=_0x2aa491['start']['nodeAfter'];for(;_0xf895ab&&_0x2aa491['containsItem'](_0xf895ab);){if(_0xf895ab['getAttribute']('listIndent')>0x0)return!0x1;_0xf895ab=_0xf895ab['nextSibling'];}return!0x0;}(_0x45adb6)?c(_0x13a465,'*Format:*\x20remove\x20from\x20%0',c(_0x13a465,function(_0x5138c5){return'ELEMENT_'+_0x5138c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x45adb6))):c(_0x13a465,'*Outdent:*\x20%0',c(_0x13a465,'ELEMENT_LIST_ITEM')),_0x1f3e7a={'type':'format','content':_0x1d3df0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x38f681['multipleBlocks']&&(_0x1d3df0='*Merge:*\x20%0',_0x1f3e7a={'type':'deletion','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_LIST_ITEM'))});}return _0x1f3e7a;});}}function Te(_0x3861d9){let _0xc76f78=_0x3861d9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xc76f78;){const _0x5a6755=_0xc76f78['getAttribute']('listItemId');if(!_0x5a6755)return!0x1;if(_0x5a6755==_0x3861d9['data']['newValue'])return'newValue';if(_0x5a6755==_0x3861d9['data']['oldValue'])return'oldValue';_0xc76f78=_0xc76f78['previousSibling'];}return!0x1;}class Se extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x28ac9f=this['editor']['config']['get']('list.properties'),_0x4fed93=this['editor']['plugins']['get']('TrackChangesEditing');_0x28ac9f['styles']&&(_0x4fed93['enableDefaultAttributesIntegration']('listStyle'),_0x4fed93['registerBlockAttribute']('listStyle')),_0x28ac9f['reversed']&&(_0x4fed93['enableDefaultAttributesIntegration']('listReversed'),_0x4fed93['registerBlockAttribute']('listReversed')),_0x28ac9f['startIndex']&&(_0x4fed93['enableDefaultAttributesIntegration']('listStart'),_0x4fed93['registerBlockAttribute']('listStart'));const _0x5ba36a={'type':'format','content':''};_0x4fed93['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3e4a8b=this['editor']['locale'];_0x4fed93['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3e4a8b,'FORMAT_LIST_REVERSED')),_0x4fed93['descriptionFactory']['registerDescriptionCallback'](_0x452388=>{const {data:_0x286b4f}=_0x452388;if(_0x286b4f&&'listReversed'==_0x286b4f['key'])return null==_0x286b4f['newValue']||0x0==_0x286b4f['newValue']&&null==_0x286b4f['oldValue']?_0x5ba36a:void 0x0;}),_0x4fed93['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3e4a8b,'FORMAT_LIST_START')),_0x4fed93['descriptionFactory']['registerDescriptionCallback'](_0x4b885e=>{const {data:_0x93867a}=_0x4b885e;if(_0x93867a&&'listStart'==_0x93867a['key'])return null==_0x93867a['newValue']||0x1==_0x93867a['newValue']&&null==_0x93867a['oldValue']?_0x5ba36a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1fe5c7=>{if(_0x1fe5c7['batch']['isUndo'])return!0x1;let _0x537a9e=!0x1;const _0x523ef7=_0x4fed93['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a7a3e=>{const _0x399dc7=_0x4fed93['_getAttributeKey'](_0x5a7a3e);return'listStart'==_0x399dc7||'listReversed'==_0x399dc7;});for(const _0x301824 of _0x523ef7){const _0x646516=_0x301824['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x646516||'customNumbered'==_0x646516)continue;_0x4fed93['_findSuggestions'](_0x301824['getFirstRange'](),'attribute')['find'](_0x275b54=>'listType'==_0x4fed93['_getAttributeKey'](_0x275b54['suggestion']))||(_0x1fe5c7['removeMarker'](_0x301824['getFirstMarker']()),_0x537a9e=!0x0);}return _0x537a9e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2b89a3){const _0x20ebe2=this['editor']['locale'],{data:_0xf31363}=_0x2b89a3,_0x225730={'type':'format','content':''};if(!_0xf31363||'listStyle'!=_0xf31363['key'])return;if(!_0xf31363['oldValue'])return'default'==_0xf31363['newValue']?_0x225730:{'type':'format','content':''+c(_0x20ebe2,'*Set\x20format:*\x20%0',c(_0x20ebe2,this['_getTranslationKeyForListStyle'](_0xf31363['newValue'])))};if(!_0xf31363['newValue']){if('default'==_0xf31363['oldValue'])return _0x225730;let _0x1127eb=_0x2b89a3['head'];for(;_0x1127eb;){if(_0x1127eb['data']&&'listType'==_0x1127eb['data']['key']&&_0x1127eb['data']['newValue'])return _0x225730;_0x1127eb=_0x1127eb['next'];}return{'type':'format','content':''+c(_0x20ebe2,'*Remove\x20format:*\x20%0',c(_0x20ebe2,this['_getTranslationKeyForListStyle'](_0xf31363['oldValue'])))};}if('default'!=_0xf31363['newValue'])return{'type':'format','content':''+c(_0x20ebe2,'*Set\x20format:*\x20%0',c(_0x20ebe2,this['_getTranslationKeyForListStyle'](_0xf31363['newValue'])))};let _0x7f0ed5=_0x2b89a3['head'];for(;_0x7f0ed5;){if(_0x7f0ed5['data']&&'listType'==_0x7f0ed5['data']['key']&&_0x7f0ed5['data']['newValue']&&_0x7f0ed5['data']['oldValue'])return _0x225730;_0x7f0ed5=_0x7f0ed5['next'];}return{'type':'format','content':c(_0x20ebe2,'*Set\x20format:*\x20%0',c(_0x20ebe2,'ELEMENT_'+_0x2b89a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1c90bd=this['editor'],_0x6a14ca=_0x1c90bd['locale'];_0x1c90bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ddf91=>{if('formatBlock'!=_0x2ddf91['type'])return;const {data:_0x332285}=_0x2ddf91;if(!_0x332285)return;let _0x3cd01a,_0x49c733;switch(_0x332285['commandName']){case'listStyle':_0x3cd01a='*Change\x20to:*\x20%0',_0x49c733={'type':'format','content':c(_0x6a14ca,_0x3cd01a,c(_0x6a14ca,this['_getTranslationKeyForListStyle'](_0x332285['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cd01a=_0x332285['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x49c733={'type':'format','content':c(_0x6a14ca,_0x3cd01a)};break;case'listStart':_0x3cd01a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x49c733={'type':'format','content':c(_0x6a14ca,_0x3cd01a,_0x332285['commandParams'][0x0]['startIndex'])};}return _0x49c733;});}['_getTranslationKeyForListStyle'](_0x454207){return'ELEMENT_'+function(_0x4452f8){if(_e['includes'](_0x4452f8))return'bulleted';if(Re['includes'](_0x4452f8))return'numbered';return null;}(_0x454207)['toUpperCase']()+'_LIST_'+_0x454207['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x59f721{['afterInit'](){const _0x235deb=this['editor'];_0x235deb['commands']['get']('emoji')&&_0x235deb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x59f721{static get['requires'](){return[_0x783952];}['init'](){const _0x2bc699=this['editor'],_0x31dcb3=_0x2bc699['plugins']['get']('TrackChangesEditing'),_0x327031=_0x2bc699['commands']['get']('enter');_0x31dcb3['enableCommand']('enter',()=>{_0x2bc699['model']['change'](_0x415fbb=>{const _0x114b13=_0x2bc699['model']['document']['selection'],_0x3fe916=_0x114b13['getFirstPosition'](),_0xb066e3=_0x39b5cf['fromRange'](_0x114b13['getFirstRange']());if(_0x327031['enterBlock'](_0x415fbb)){const _0x4dc52a=_0x2bc699['model']['createPositionAt'](_0x3fe916['parent']['nextSibling'],0x0),_0xf088b7=_0x415fbb['createRange'](_0x3fe916,_0x4dc52a);_0x31dcb3['markInsertion'](_0xf088b7);}else _0x415fbb['setSelection'](_0x415fbb['createRange'](_0xb066e3['end']));_0xb066e3['detach'](),_0x327031['fire']('afterExecute',{'writer':_0x415fbb});});}),_0x2bc699['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x2bc699,'split'),{'priority':'high'}),_0x2bc699['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3497e1,_0x17bc6a,_0x27dd13)=>{const _0x5218a0=_0x27dd13['mapper']['markerNameToElements'](_0x17bc6a['markerName']);if(_0x5218a0){for(const _0x202bc7 of _0x5218a0)_0x202bc7['hasClass']('ck-suggestion-marker-split')&&(_0x27dd13['mapper']['unbindElementFromMarkerName'](_0x202bc7,_0x17bc6a['markerName']),_0x27dd13['writer']['remove'](_0x202bc7));}},{'priority':'high'}),_0x2bc699['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d2ab0,_0x7667d,_0x4fc4c9)=>{_0x4fc4c9['options']['showSuggestionHighlights']&&Fe(_0x2bc699,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5d2ab0,_0x7667d,_0x4fc4c9);},{'priority':'high'});}}class Z extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5713f8=this['editor']['plugins']['get']('TrackChangesEditing');_0x5713f8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5713f8['enableCommand']('findNext'),_0x5713f8['enableCommand']('findPrevious'),_0x5713f8['enableCommand']('replace'),_0x5713f8['enableCommand']('replaceAll');}['handleFindCommand'](_0x15b8f5,_0x1b4946,_0x4a9cc8={}){const _0x514476=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x15b8f5(_0x185fca=>{let _0x19dddb=('string'==typeof _0x1b4946?_0x514476['findByTextCallback'](_0x1b4946,_0x4a9cc8):_0x1b4946)(_0x185fca);Array['isArray'](_0x19dddb)&&(_0x19dddb={'results':_0x19dddb,'searchText':'string'==typeof _0x1b4946?_0x1b4946:''});const _0x5ac055=_0x19dddb['results']['filter'](_0x5164b0=>!0x1===this['_isInDeletionRange'](_0x5164b0,_0x185fca['item']));return{..._0x19dddb,'results':_0x5ac055};},_0x4a9cc8);}['_isInDeletionRange'](_0x90091b,_0x1708dc){const _0x5de0c7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1708dc,_0x90091b['start']),this['editor']['model']['createPositionAt'](_0x1708dc,_0x90091b['end']));for(const _0x3144ae of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5de0c7['getIntersection'](_0x3144ae['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 _0x59f721{['afterInit'](){const _0x10f445=this['editor']['locale'],_0x5eb8c7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x55ea37,commandName:_0x50038f}of ro)this['editor']['plugins']['has'](_0x55ea37)&&(_0x5eb8c7['enableDefaultAttributesIntegration'](_0x50038f),_0x5eb8c7['registerInlineAttribute'](_0x50038f));_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x10f445,'FORMAT_FONT_SIZE')),_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x10f445,'FORMAT_FONT_FAMILY')),_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x10f445,'FORMAT_FONT_COLOR')),_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x10f445,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36dacf=this['editor'],_0x2771bf=_0x36dacf['locale'];_0x36dacf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf595d=>{const _0xf086a6=_0x2771bf['t'];if('formatInline'!=_0xf595d['type'])return;const {data:_0x3fa51c}=_0xf595d;if(null!=_0x3fa51c){if('fontSize'==_0x3fa51c['commandName']){const _0x13df48=_0x3fa51c['commandParams'][0x0]['value'];if(_0x13df48){const _0x4db9a9=_0xf086a6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x56c2ec=>_0x56c2ec['model']==_0x13df48)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20size:*\x20%0',_0x4db9a9)};}return{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3fa51c['commandName']){const _0x3b2347=_0x3fa51c['commandParams'][0x0]['value'];return _0x3b2347?{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20family:*\x20%0',_0x3b2347)}:{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3fa51c['commandName']){const _0x701419=_0x3fa51c['commandParams'][0x0]['value'];if(_0x701419){const _0x502c6b=_0x1a330b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x120477=>_0x120477['model']==_0x701419);let _0x7e52f5=_0x701419,_0x2d3248='';return _0x502c6b&&(_0x7e52f5=_0x502c6b['label'],_0x2d3248=_0xf086a6(_0x7e52f5)['toLowerCase']()),{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20color:*\x20%0',_0x2d3248)['trim'](),'color':{'value':_0x701419,'title':_0x2d3248||_0x7e52f5}};}return{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3fa51c['commandName']){const _0x4499fb=_0x3fa51c['commandParams'][0x0]['value'];if(_0x4499fb){const _0x97e74a=_0x1a330b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ba501=>_0x2ba501['model']==_0x4499fb);let _0x4a0883=_0x4499fb,_0x3a840b='';return _0x97e74a&&(_0x4a0883=_0x97e74a['label'],_0x3a840b=_0xf086a6(_0x4a0883)['toLowerCase']()),{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20background\x20color:*\x20%0',_0x3a840b)['trim'](),'color':{'value':_0x4499fb,'title':_0x3a840b||_0x4a0883}};}return{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x59f721{['afterInit'](){const _0x30677c=this['editor'],_0xd13b7f=_0x30677c['plugins']['get']('TrackChangesEditing'),_0x34c7ae=_0x30677c['commands']['get']('copyFormat'),_0xf7eb51=_0x30677c['commands']['get']('pasteFormat');_0x34c7ae&&_0xf7eb51&&(_0xd13b7f['enableDefaultAttributesIntegration']('pasteFormat'),_0xd13b7f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x22ff08=this['editor'],_0x33af43=_0x22ff08['locale'];_0x22ff08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d8260=>{if('formatBlock'!=_0x1d8260['type']&&'formatInline'!=_0x1d8260['type'])return;const {data:_0x58be79}=_0x1d8260;if(_0x58be79&&'pasteFormat'===_0x58be79['commandName']){const _0x58abe7=[],_0x6418b4=_0x58be79['commandParams'][0x0];for(const [_0x178086,_0x4ec784]of Object['entries'](_0x6418b4))_0x58abe7['push'](so(_0x22ff08,_0x178086,_0x4ec784));return _0x58abe7['length']?{'type':'format','content':c(_0x33af43,'*Set\x20format\x20to:*\x20%0',_0x58abe7['join'](',\x20'))}:{'type':'format','content':c(_0x33af43,'*Remove\x20all\x20formatting*')};}});}}function so(_0x139675,_0xb132a6,_0x2bdfdd){const _0x580a71=_0x139675['locale']['t'],_0x3e194c=_0xb132a6['split'](/(?=[A-Z])/)['join']('\x20'),_0x1ea0c4=_0x580a71(_0x3e194c['charAt'](0x0)['toUpperCase']()+_0x3e194c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2bdfdd)return _0x1ea0c4;if('fontColor'===_0xb132a6||'fontBackgroundColor'===_0xb132a6){const _0x202f59=_0x1a330b(_0x139675['config']['get']('fontColor.colors'))['find'](_0x478c0c=>_0x478c0c['model']==_0x2bdfdd);return _0x1ea0c4+'\x20('+(_0x202f59?_0x580a71(_0x202f59['label'])['toLowerCase']():_0x2bdfdd)+')';}if('fontSize'===_0xb132a6&&isNaN(parseFloat(_0x2bdfdd))){const _0x38cd73=_0x139675['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x139675['config']['get']('fontSize.options'))['find'](_0x5f4b84=>_0x5f4b84['model']==_0x2bdfdd);return _0x1ea0c4+'\x20('+(_0x38cd73?_0x580a71(_0x38cd73['title'])['toLowerCase']():_0x2bdfdd)+')';}return _0x1ea0c4+'\x20('+_0x2bdfdd+')';}class et extends _0x59f721{['_headingOptions'];['afterInit'](){const _0x2677e2=this['editor'];if(!_0x2677e2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2677e2['config']['get']('heading.options');const _0x4f5878=_0x2677e2['locale'],_0x354f85=_0x2677e2['plugins']['get']('TrackChangesEditing');_0x354f85['enableDefaultAttributesIntegration']('heading');for(const _0x35ba4b of this['_headingOptions'])'paragraph'!=_0x35ba4b['model']&&_0x354f85['descriptionFactory']['registerElementLabel'](_0x35ba4b['model'],_0x27a012=>{const _0x28adc5=this['_getHeadingLevel'](_0x35ba4b['model']);return null!==_0x28adc5?_0x23ec40(_0x27a012,_0x28adc5):_0x2fec83(_0x27a012,_0x35ba4b['title']);});function _0x23ec40(_0x514a8a,_0xb03c79){return c(_0x4f5878,'ELEMENT_HEADING',[_0x514a8a,_0xb03c79]);}function _0x2fec83(_0x24eb0b,_0x5c5ef2){return c(_0x4f5878,'ELEMENT_HEADING_CUSTOM',[_0x24eb0b,_0x5c5ef2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532b92=this['editor'],_0x23b06a=_0x532b92['locale'];function _0x230a8e(_0x4772da,_0xcfb687){return c(_0x23b06a,'ELEMENT_HEADING_CUSTOM',[_0x4772da,_0xcfb687]);}_0x532b92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f42ac=>{if('formatBlock'!=_0x4f42ac['type'])return;const {data:_0x265354}=_0x4f42ac;if(_0x265354&&'heading'==_0x265354['commandName']){const _0xcaf1ec=_0x265354['commandParams'][0x0]['value'],_0x398e57=this['_getHeadingLevel'](_0xcaf1ec);if(null!==_0x398e57)return{'type':'format','content':c(_0x23b06a,'*Change\x20to:*\x20%0',(_0x1b2cd9=0x1,_0x5c20f5=_0x398e57,c(_0x23b06a,'ELEMENT_HEADING',[_0x1b2cd9,_0x5c20f5])))};const _0x33be83=this['_headingOptions']['find'](_0x1cb0d4=>_0x1cb0d4['model']===_0xcaf1ec)['title'];return{'type':'format','content':c(_0x23b06a,'*Change\x20to:*\x20%0',_0x230a8e(0x1,_0x33be83))};}var _0x1b2cd9,_0x5c20f5;});}['_getHeadingLevel'](_0x164605){const _0x218fba=_0x164605['match'](/^heading(\d+)/);if(_0x218fba)return _0x218fba[0x1];const _0x281c97=this['_headingOptions']?.['find'](_0x14abca=>_0x14abca['model']==_0x164605);if(_0x281c97&&_0x281c97['view']){const _0x1f5320=_0x281c97['view'],_0x3354e4=(_0x1f5320['name']??_0x1f5320)['match'](/^h(\d+)/);if(_0x3354e4)return _0x3354e4[0x1];}return null;}}class nt extends _0x59f721{['afterInit'](){const _0x3ee703=this['editor'];if(!_0x3ee703['plugins']['has']('HighlightEditing'))return;const _0x54f928=_0x3ee703['plugins']['get']('TrackChangesEditing'),_0x11ffb4=_0x3ee703['locale'];_0x54f928['enableDefaultAttributesIntegration']('highlight'),_0x54f928['registerInlineAttribute']('highlight'),_0x54f928['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x11ffb4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x256516=this['editor'],_0x35a23b=_0x256516['locale'];_0x256516['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ede8f=>{if('formatInline'!=_0x4ede8f['type'])return;const {data:_0x516b01}=_0x4ede8f;if(_0x516b01&&'highlight'==_0x516b01['commandName']){const _0x56036a=_0x35a23b['t'],_0x3a3307=_0x516b01['commandParams'][0x0]['value'];if(_0x3a3307){const _0x189ee1=_0x256516['config']['get']('highlight.options')['find'](_0x30ae21=>_0x30ae21['model']==_0x3a3307),_0x1c811f=_0x56036a(_0x189ee1['title'])['toLowerCase']();return{'type':'format','content':c(_0x35a23b,'*Set\x20highlight:*\x20%0',_0x1c811f),'color':{'value':_0x189ee1['color'],'title':_0x189ee1['title']}};}return{'type':'format','content':c(_0x35a23b,'*Remove\x20highlight*',c(_0x35a23b,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x59f721{['afterInit'](){const _0x135ee7=this['editor'];if(!_0x135ee7['plugins']['has']('HorizontalLineEditing'))return;_0x135ee7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x42aaeb=_0x135ee7['plugins']['get']('TrackChangesEditing'),_0x368bc6=_0x135ee7['locale'];_0x42aaeb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x52f971=>c(_0x368bc6,'ELEMENT_HORIZONTAL_LINE',_0x52f971)),_0x135ee7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2a4c61,{writer:_0x42e0b3,options:_0x267799})=>{if(!_0x267799['showSuggestionHighlights'])return null;const _0x5409f8=_0x42e0b3['createContainerElement']('div'),_0x4b3ba1=_0x42e0b3['createEmptyElement']('hr');return _0x42e0b3['addClass']('ck-horizontal-line',_0x5409f8),_0x42e0b3['insert'](_0x42e0b3['createPositionAt'](_0x5409f8,0x0),_0x4b3ba1),_0x5409f8;},'converterPriority':'high'});}}class ot extends _0x59f721{['afterInit'](){const _0x4f9c64=this['editor'];if(!_0x4f9c64['plugins']['has']('HtmlEmbed'))return;const _0x4e90f3=_0x4f9c64['plugins']['get']('TrackChangesEditing'),_0xb06dc8=_0x4f9c64['locale'];_0x4e90f3['descriptionFactory']['registerElementLabel']('rawHtml',_0x582433=>c(_0xb06dc8,'ELEMENT_HTML_EMBED',_0x582433)),_0x4e90f3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4e90f3['registerBlockAttribute']('value'),_0x4e90f3['descriptionFactory']['registerDescriptionCallback'](_0x25d988=>{if('attribute'!=_0x25d988['type'])return;const {data:_0x5f1f46}=_0x25d988;if(_0x5f1f46&&'value'==_0x5f1f46['key']&&_0x25d988['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5f2863=c(_0xb06dc8,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xb06dc8,'*Change\x20%0\x20content*',_0x5f2863)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a4b93=this['editor'],_0x39e3ca=_0x4a4b93['locale'];_0x4a4b93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1363=>{if('formatBlock'!=_0x4a1363['type'])return;const {data:_0x502eb4}=_0x4a1363;if(_0x502eb4&&'htmlEmbed'==_0x502eb4['commandName']){const _0xe9efaf=c(_0x39e3ca,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x39e3ca,'*Change\x20%0\x20content*',_0xe9efaf)};}});}}class rt extends _0x59f721{['afterInit'](){const _0x4210ab=this['editor'];if(!_0x4210ab['plugins']['has']('ImageEditing'))return;const _0x467b61=_0x4210ab['plugins']['get']('TrackChangesEditing'),_0x3e7812=_0x4210ab['plugins']['get']('ImageUtils'),_0x4c0c9a=_0x4210ab['locale'];_0x467b61['enableCommand']('insertImage'),_0x467b61['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a5758=>c(_0x4c0c9a,'ELEMENT_IMAGE',_0x4a5758)),_0x467b61['descriptionFactory']['registerElementLabel']('imageInline',_0x5af181=>c(_0x4c0c9a,'ELEMENT_INLINE_IMAGE',_0x5af181)),_0x467b61['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x4c0c9a,'ELEMENT_CAPTION')),_0x4210ab['plugins']['has']('ImageUploadEditing')&&_0x467b61['enableCommand']('uploadImage'),_0x4210ab['plugins']['has']('ImageBlockEditing')&&_0x4210ab['plugins']['has']('ImageInlineEditing')&&(_0x467b61['enableCommand']('imageTypeInline',(_0x34a5a8,_0x236cf7)=>{const _0x332817=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']);_0x4210ab['model']['change'](()=>{_0x467b61['markBlockFormat'](_0x332817,{'commandName':'imageTypeInline','commandParams':[_0x236cf7]},[],'convertBlockImageToInline');});}),_0x467b61['enableCommand']('imageTypeBlock',(_0x3b9b95,_0x3675ce)=>{_0x4210ab['model']['change'](_0x4ab643=>{let _0x3d63e5=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x4c05aa=_0x4ab643['createRangeOn'](_0x3d63e5);const _0x304f10=_0x3416fa['fromPosition'](_0x4c05aa['start'],'toPrevious'),_0x43bcba=_0x3416fa['fromPosition'](_0x4c05aa['end'],'toNext');_0x467b61['forceDefaultExecution'](()=>_0x3b9b95(_0x3675ce)),_0x3d63e5=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x4c05aa=_0x4ab643['createRangeOn'](_0x3d63e5);const _0x14f405=_0x4ab643['createRange'](_0x304f10,_0x43bcba);_0x304f10['detach'](),_0x43bcba['detach'](),_0x467b61['markBlockFormat'](_0x3d63e5,{'commandName':'imageTypeInline','commandParams':[_0x3675ce]},[],'convertInlineImageToBlock'),_0x14f405['start']['isBefore'](_0x4c05aa['start'])&&_0x467b61['markInsertion'](_0x4ab643['createRange'](_0x14f405['start'],_0x4c05aa['start']),'convertInlineImageToBlock'),_0x4c05aa['end']['isBefore'](_0x14f405['end'])&&_0x467b61['markInsertion'](_0x4ab643['createRange'](_0x4c05aa['end'],_0x14f405['end']),'convertInlineImageToBlock');});}),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x467b61['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x398b14])=>{const _0x59a086=_0x467b61['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4f442e=_0x398b14['start'],_0x33f314=_0x398b14['end'];const _0x56a6ec=_0x4210ab['model']['schema']['getNearestSelectionRange'](_0x4f442e,'backward'),_0x45492f=_0x4210ab['model']['schema']['getNearestSelectionRange'](_0x33f314,'forward');_0x56a6ec['isCollapsed']&&(_0x4f442e=_0x56a6ec['start']),_0x45492f['isCollapsed']&&(_0x33f314=_0x45492f['end']),_0x59a086([_0x4210ab['model']['createRange'](_0x4f442e,_0x33f314)]);}),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1242ea),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1242ea)),_0x4210ab['plugins']['has']('ImageCaptionEditing')&&(_0x467b61['enableCommand']('toggleImageCaption',(_0x489dab,_0x3ef6a8)=>{const _0x1c3212=_0x4210ab['plugins']['get']('ImageCaptionUtils');let _0x165381=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x220a76=_0x1c3212['getCaptionFromImageModelElement'](_0x165381);_0x4210ab['model']['change'](()=>{if(_0x220a76)return void _0x467b61['markDeletion'](_0x4210ab['model']['createRangeOn'](_0x220a76));const _0x3302cd=_0x3e7812['isBlockImage'](_0x165381);_0x489dab(_0x3ef6a8),_0x165381=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x220a76=_0x1c3212['getCaptionFromImageModelElement'](_0x165381),_0x467b61['markInsertion'](_0x4210ab['model']['createRangeOn'](_0x220a76),_0x3302cd?null:'imageCaption');});}),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1242ea));const _0x2575f6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2ce5b4(_0x4204f1,_0x1b7a61){const _0x20de69=_0x2575f6['findIndex'](({type:_0x1434b6,subType:_0x320f5a})=>_0x4204f1['type']==_0x1434b6&&_0x4204f1['subType']==_0x320f5a),_0x25427b=_0x2575f6['findIndex'](({type:_0xb60c03,subType:_0x424d03})=>_0x1b7a61['type']==_0xb60c03&&_0x1b7a61['subType']==_0x424d03);if(_0x20de69<0x0||_0x25427b<0x0)return!0x1;const _0x56157e=_0x4204f1['getFirstRange'](),_0xccf375=_0x1b7a61['getFirstRange']();if((0x0==_0x20de69||0x1==_0x20de69)&&0x2==_0x25427b&&_0x56157e['isIntersecting'](_0xccf375))return!0x0;if(0x2==_0x20de69&&0x3==_0x25427b){const _0x215aa6=_0x467b61['_findSuggestions'](_0x56157e,'insertion')['filter'](({suggestion:_0x20715f,meta:_0x5c8d0b})=>_0x5c8d0b['isOwn']&&'convertInlineImageToBlock'==_0x20715f['subType']);if(_0x215aa6['length']>0x1&&_0xccf375['end']['isEqual'](_0x56157e['start']))return!0x0;if(0x1==_0x215aa6['length']&&(_0x56157e['start']['isEqual'](_0xccf375['end'])||_0x56157e['end']['isEqual'](_0xccf375['start'])))return!0x0;}if(0x3==_0x20de69&&0x3==_0x25427b&&_0x56157e['start']['isBefore'](_0xccf375['start'])){const _0x5949b0=_0x56157e['end']['nodeAfter'],_0x395923=_0xccf375['start']['nodeBefore'];return _0x3e7812['isBlockImage'](_0x5949b0)&&_0x5949b0===_0x395923;}return!0x1;}function _0x1242ea(_0x11fdd8,_0x3cdf9c){return _0x2ce5b4(_0x11fdd8,_0x3cdf9c)?[_0x11fdd8,_0x3cdf9c]:_0x2ce5b4(_0x3cdf9c,_0x11fdd8)?[_0x3cdf9c,_0x11fdd8]:null;}_0x4210ab['plugins']['has']('ImageResize')&&(_0x467b61['enableDefaultAttributesIntegration']('resizeImage'),_0x467b61['registerBlockAttribute']('resizedWidth'),_0x467b61['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x4c0c9a,'FORMAT_IMAGE_SIZE'))),_0x4210ab['plugins']['has']('ImageTextAlternativeEditing')&&(_0x467b61['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x467b61['registerBlockAttribute']('alt')),_0x4210ab['plugins']['has']('PictureEditing')&&(_0x467b61['registerBlockAttribute']('sources'),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x143b7d=>{if('attribute'!=_0x143b7d['type'])return;const {data:_0x17eb80}=_0x143b7d;return _0x17eb80&&'sources'==_0x17eb80['key']?{'type':'format','content':''}:void 0x0;})),_0x4210ab['plugins']['has']('ImageSizeAttributes')&&(_0x467b61['registerBlockAttribute']('width'),_0x467b61['registerBlockAttribute']('height'),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x5b15e7=>{if('attribute'!=_0x5b15e7['type'])return;const {data:_0x5a11dd}=_0x5b15e7;return!_0x5a11dd||'width'!=_0x5a11dd['key']&&'height'!=_0x5a11dd['key']?void 0x0:{'type':'format','content':''};})),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0xeb2c45=>{if(!!_0x2575f6['find'](({type:_0x41bb43,subType:_0x224c94})=>_0xeb2c45['type']==_0x41bb43&&_0xeb2c45['subType']==_0x224c94))return _0xeb2c45['previous']?{}:void 0x0;}),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x31781f=>{if('insertion'==_0x31781f['type']||'deletion'==_0x31781f['type']){const _0x1f399d=_0x31781f['getContainedElement']();if(_0x1f399d&&_0x1f399d['is']('element','caption'))return{'type':'insertion'==_0x31781f['type']?'addObject':'removeObject','element':_0x1f399d,'quantity':0x1};}}),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x1a0210=>'formatBlock'==_0x1a0210['type']&&'convertInlineImageToBlock'==_0x1a0210['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1a0210['type']&&'convertBlockImageToInline'==_0x1a0210['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0xf3a98f=>{if('attribute'!=_0xf3a98f['type'])return;const {data:_0x224cc1}=_0xf3a98f;if(!_0x224cc1||'alt'!=_0x224cc1['key'])return;const _0x125aa9=_0x224cc1['newValue'];return _0x125aa9?{'type':'format','content':c(_0x4c0c9a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x125aa9+'\x22')}:{'type':'format','content':c(_0x4c0c9a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x84bb43=this['editor'],_0x23752a=_0x84bb43['locale'];_0x84bb43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x268f52=>{if('formatBlock'!=_0x268f52['type']&&'formatInline'!=_0x268f52['type'])return;const {data:_0x47adfc}=_0x268f52;if(_0x47adfc){if('imageTextAlternative'==_0x47adfc['commandName']){const _0x534f0e=_0x47adfc['commandParams'][0x0]['newValue'];return _0x534f0e?{'type':'format','content':c(_0x23752a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x534f0e+'\x22')}:{'type':'format','content':c(_0x23752a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x47adfc['commandName']){const _0x343714=_0x47adfc['commandParams'][0x0]['width'];return _0x343714?{'type':'format','content':c(_0x23752a,'*Set\x20image\x20width:*\x20%0',_0x343714)}:{'type':'format','content':c(_0x23752a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2ecbbb=this['editor']['locale'],_0x3b8a46=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b8a46['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3b8a46['registerBlockAttribute']('src'),_0x3b8a46['descriptionFactory']['registerDescriptionCallback'](_0x158af8=>{if('attribute'!=_0x158af8['type'])return;const {data:_0x326942}=_0x158af8;return _0x326942&&'src'==_0x326942['key']?_0x326942['newValue']&&_0x326942['oldValue']?{'type':'format','content':c(_0x2ecbbb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45092d=this['editor']['plugins']['get']('TrackChangesEditing');_0x45092d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x45092d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45092d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x45092d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11f463=this['editor'],_0x3d307f=_0x11f463['locale'];_0x11f463['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c4b4=>{if('formatBlock'!=_0x11c4b4['type']&&'formatInline'!=_0x11c4b4['type'])return;const {data:_0x141e1a}=_0x11c4b4;if(!_0x141e1a||'replaceImageSource'!=_0x141e1a['commandName'])return;return{'type':'format','content':c(_0x3d307f,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x59f721{['afterInit'](){const _0x4f76c7=this['editor'];if(!_0x4f76c7['plugins']['has']('ImageStyleEditing'))return;const _0x47548e=_0x4f76c7['plugins']['get']('TrackChangesEditing'),_0xaef9f9=_0x4f76c7['plugins']['get']('ImageUtils'),_0x25ba81={};_0x47548e['enableCommand']('imageStyle',(_0xe28a69,_0x3ce0c3)=>{const _0x514d36=_0x4f76c7['plugins']['get']('Users')['me'],_0x4b4c98=_0x4f76c7['commands']['get']('imageStyle');let _0x67051c=_0xaef9f9['getClosestSelectedImageElement'](_0x4f76c7['model']['document']['selection']),_0x34a67f=_0x4f76c7['model']['createRangeOn'](_0x67051c),_0x2e53d0=_0x4b4c98['value'];if(_0x2e53d0==_0x3ce0c3['value'])return;const _0xebf9d6={'commandName':'imageStyle','commandParams':[_0x3ce0c3],'formatGroupId':_0x5011f0()};_0x4f76c7['model']['change'](()=>{if(_0x47548e['getSuggestions']()['filter'](_0x4355f1=>_0x4355f1['isInContent']&&_0x514d36==_0x4355f1['author']&&('formatBlock'==_0x4355f1['type']||'formatInline'==_0x4355f1['type'])&&('imageStylePreApply'==_0x4355f1['subType']||'imageStylePostApply'==_0x4355f1['subType'])&&_0x4355f1['getFirstRange']()['isEqual'](_0x34a67f))['forEach'](_0xd73249=>_0x47548e['discardSuggestion'](_0xd73249['head'])),_0x67051c=_0xaef9f9['getClosestSelectedImageElement'](_0x4f76c7['model']['document']['selection']),_0x34a67f=_0x4f76c7['model']['createRangeOn'](_0x67051c),_0x4b4c98['refresh'](),_0x4f76c7['commands']['get']('imageTypeInline')['refresh'](),_0x4f76c7['commands']['get']('imageTypeBlock')['refresh'](),_0x2e53d0=_0x4b4c98['value'],_0x2e53d0!=_0x3ce0c3['value'])return _0xaef9f9['isInlineImage'](_0x67051c)&&_0x4b4c98['shouldConvertImageType'](_0x3ce0c3['value'],_0x67051c)?(_0xe28a69({..._0x3ce0c3,'setImageSizes':!0x1}),_0x67051c=_0xaef9f9['getClosestSelectedImageElement'](_0x4f76c7['model']['document']['selection']),void _0x47548e['markBlockFormat'](_0x67051c,{..._0xebf9d6,'commandReversedParams':[{'value':_0x2e53d0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xaef9f9['isBlockImage'](_0x67051c)?_0x47548e['markBlockFormat'](_0x67051c,_0xebf9d6,[],'imageStylePostApply'):_0x47548e['markInlineFormat'](_0x34a67f,_0xebf9d6,'imageStylePostApply'));});});for(const _0x1809e2 of _0x4f76c7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x25ba81[_0x1809e2['name']]=_0x1809e2['title']['toLowerCase']();_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x379d5d])=>{_0xaef9f9['setImageNaturalSizeAttributes'](_0x379d5d['getContainedElement']());}),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x299fc0,_0x1a232e)=>{_0x47548e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x299fc0,{'commandName':_0x1a232e['commandName'],'commandParams':_0x1a232e['commandReversedParams']});}),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5eb5b7,_0x465629){if(_0x21ca18(_0x5eb5b7,_0x465629))return[_0x5eb5b7,_0x465629];if(_0x21ca18(_0x465629,_0x5eb5b7))return[_0x465629,_0x5eb5b7];return null;});const _0x1d1214=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x21ca18(_0x2920cb,_0x46e449){const _0x394c9b=_0x1d1214['findIndex'](({type:_0x34be28,subType:_0x476d8a})=>_0x2920cb['type']==_0x34be28&&_0x2920cb['subType']==_0x476d8a),_0x5f2de4=_0x1d1214['findIndex'](({type:_0xa6d338,subType:_0x4e696e})=>_0x46e449['type']==_0xa6d338&&_0x46e449['subType']==_0x4e696e);if(_0x394c9b<0x0||_0x5f2de4<0x0)return!0x1;const _0x1990d7=_0x2920cb['getFirstRange'](),_0x5c4a10=_0x46e449['getFirstRange']();if((0x0==_0x394c9b||0x1==_0x394c9b)&&0x2==_0x5f2de4&&_0x1990d7['isIntersecting'](_0x5c4a10))return!0x0;if(0x2==_0x394c9b&&0x3==_0x5f2de4){const _0x43900c=_0x47548e['_findSuggestions'](_0x1990d7,'insertion')['filter'](({suggestion:_0x22f400,meta:_0x227529})=>_0x227529['isOwn']&&'convertInlineImageToBlock'==_0x22f400['subType']);if(_0x43900c['length']>0x1&&_0x5c4a10['end']['isEqual'](_0x1990d7['start']))return!0x0;if(0x1==_0x43900c['length']&&(_0x1990d7['start']['isEqual'](_0x5c4a10['end'])||_0x1990d7['end']['isEqual'](_0x5c4a10['start'])))return!0x0;}if(0x3==_0x394c9b&&0x3==_0x5f2de4&&_0x1990d7['start']['isBefore'](_0x5c4a10['start'])){const _0x2a7bdb=_0x1990d7['end']['nodeAfter'],_0x4d13e1=_0x5c4a10['start']['nodeBefore'];return _0xaef9f9['isBlockImage'](_0x2a7bdb)&&_0x2a7bdb===_0x4d13e1;}return!0x1;}_0x4f76c7['model']['document']['registerPostFixer'](()=>{let _0xdf876d=!0x1;const _0x80f372=Array['from'](_0x4f76c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9c4fae,data:_0x114343}of _0x80f372){const {group:_0x304a1c,type:_0x3a1647,subType:_0x5618fa,id:_0x2911c7}=_0x47548e['_splitMarkerName'](_0x9c4fae);if('suggestion'==_0x304a1c&&_0x47548e['hasSuggestion'](_0x2911c7)){if('formatBlock'==_0x3a1647&&('imageStylePreApply'==_0x5618fa||'imageStylePostApply'==_0x5618fa)){const _0x4a770a=_0x47548e['getSuggestion'](_0x2911c7);if(_0x114343['newRange']){const _0x1df200=_0x4a770a['getFirstRange']()['getContainedElement']();if(_0xaef9f9['isBlockImage'](_0x1df200))continue;_0x47548e['discardSuggestion'](_0x4a770a),_0xdf876d=!0x0;}}if('insertion'==_0x3a1647&&'imageCaption'==_0x5618fa&&!_0x114343['newRange']){const _0x47abbf=_0x47548e['getSuggestion'](_0x2911c7);_0x47abbf['next']&&_0x47abbf['next']['isInContent']&&(_0x47548e['discardSuggestion'](_0x47abbf['next']),_0xdf876d=!0x0);}}}return _0xdf876d;}),this['_registerLegacyDescription'](_0x25ba81);}['_registerLegacyDescription'](_0x4c109b){const _0x507273=this['editor'],_0xaae8e7=_0x507273['locale'];_0x507273['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8394ad=>{if('formatBlock'!=_0x8394ad['type']&&'formatInline'!=_0x8394ad['type'])return;const {data:_0x10c107}=_0x8394ad;if(!_0x10c107||'imageStyle'!=_0x10c107['commandName'])return;const _0x3e1fbc=_0x10c107['commandParams'][0x0]['value'];return _0x18d7eb('side'===_0x3e1fbc?c(_0xaae8e7,'FORMAT_SIDE_IMAGE'):_0x4c109b[_0x3e1fbc]||_0x3e1fbc);function _0x18d7eb(_0x456065){return{'type':'format','content':c(_0xaae8e7,'*Format:*\x20%0',_0x456065)};}});}}class ut extends _0x59f721{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2f72a5){super(_0x2f72a5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x92ff99=this['editor'],_0x124246=_0x92ff99['commands']['get']('importWord'),_0xfa35f3=_0x92ff99['commands']['get']('trackChanges');_0x124246&&(_0x124246['on']('execute',(_0x536213,[,_0x521979])=>{this['_trackChangesValueDuringImport']=_0xfa35f3['value'],_0x521979['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x124246,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x124246,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xfa35f3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x92ff99['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x44f12c,_0x35e4fc){const {suggestions:_0x1651a6}=_0x35e4fc,_0x28ddce=this['editor']['commands']['get']('trackChanges'),_0x108ddf=_0x28ddce['value'];this['_trackChangesValueDuringImport']!==_0x108ddf&&(_0x28ddce['execute'](),this['_trackChangesExecuted']=!0x0),_0x1651a6&&_0x1651a6['forEach'](({id:_0x582479,type:_0x4d503,author:_0x37749a,created_at:_0xa291e5})=>{const _0x4acfc4={'id':_0x582479,'type':_0x4d503,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x37749a,'createdAt':_0xa291e5?new Date(_0xa291e5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4acfc4);});}}class ft extends _0x59f721{['afterInit'](){const _0x5edc55=this['editor'],_0x5a033a=_0x5edc55['plugins']['get']('TrackChangesEditing');if(_0x5edc55['plugins']['has']('IndentEditing')&&(_0x5a033a['enableCommand']('indent'),_0x5a033a['enableCommand']('outdent')),_0x5edc55['plugins']['has']('IndentBlock')){for(const _0x2cd5c7 of['indentBlock','outdentBlock'])_0x5a033a['enableDefaultAttributesIntegration'](_0x2cd5c7);}const _0x1a5283=_0x5edc55['locale'];_0x5a033a['registerBlockAttribute']('blockIndent'),_0x5a033a['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1a5283,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x236c0c=this['editor'],_0x349eac=_0x236c0c['locale'],_0x1d2dbe=_0x236c0c['plugins']['get']('TrackChangesEditing');_0x1d2dbe['descriptionFactory']['registerDescriptionCallback'](_0xe2bb76=>{if('formatBlock'!=_0xe2bb76['type'])return;const {data:_0x164d29}=_0xe2bb76;if(!_0x164d29)return;if('indentBlock'!=_0x164d29['commandName']&&'outdentBlock'!=_0x164d29['commandName'])return;const _0x4d7ede=_0xe2bb76['getItems']()[0x0],_0x1337cb=_0x1d2dbe['descriptionFactory']['getItemLabel'](_0x4d7ede);return'indentBlock'==_0x164d29['commandName']?{'type':'format','content':c(_0x349eac,'*Indent:*\x20%0',_0x1337cb)}:'outdentBlock'==_0x164d29['commandName']?{'type':'format','content':c(_0x349eac,'*Outdent:*\x20%0',_0x1337cb)}:void 0x0;});}}class ht extends _0x59f721{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x59f721{['afterInit'](){const _0x39b07e=this['editor'];if(!_0x39b07e['plugins']['has']('LinkEditing'))return;const _0x30bdc0=_0x39b07e['plugins']['get']('TrackChangesEditing'),_0x5c2d35=_0x39b07e['commands']['get']('link');_0x30bdc0['enableDefaultAttributesIntegration']('link'),_0x30bdc0['enableDefaultAttributesIntegration']('unlink'),_0x30bdc0['registerInlineAttribute']('linkHref');for(const _0x1bfec9 of _0x5c2d35['manualDecorators'])_0x30bdc0['registerInlineAttribute'](_0x1bfec9['id']),_0x30bdc0['descriptionFactory']['registerAttributeLabel'](_0x1bfec9['id'],'link\x20('+_0x1bfec9['label']['toLowerCase']()+')');_0x30bdc0['descriptionFactory']['registerDescriptionCallback'](_0x33b132=>{if('attribute'!=_0x33b132['type'])return;const {data:_0x4a9ee8}=_0x33b132;if(!_0x4a9ee8||'linkHref'!=_0x4a9ee8['key'])return;const _0x2396d2=_0x4a9ee8['newValue'],_0x293d6b=_0x39b07e['locale'];return{'type':'format','content':null==_0x2396d2?c(_0x293d6b,'*Remove\x20link*'):c(_0x293d6b,'*Set\x20link:*\x20%0','\x22'+_0x2396d2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58ca6f=this['editor'],_0x326e9c=_0x58ca6f['locale'];_0x58ca6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cfe24=>{if('formatInline'!=_0x3cfe24['type'])return;const {data:_0x169714}=_0x3cfe24;if(_0x169714){if('link'==_0x169714['commandName']){const _0x2da57a=_0x169714['commandParams'][0x0];return{'type':'format','content':c(_0x326e9c,'*Set\x20link:*\x20%0','\x22'+_0x2da57a+'\x22')};}return'unlink'==_0x169714['commandName']?{'type':'format','content':c(_0x326e9c,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x59f721{['afterInit'](){const _0x5645b3=this['editor'],_0x4243e9=_0x5645b3['locale'];if(!_0x5645b3['plugins']['has']('LegacyListEditing'))return;const _0x40e9fc=_0x5645b3['plugins']['get']('TrackChangesEditing'),_0x56d1ae=_0x5645b3['plugins']['has']('LegacyTodoListEditing');function _0x56bee4(_0x23e2aa){return()=>{const _0x244119=_0x5645b3['model']['document']['selection'],_0x74760f=_0x5645b3['commands']['get'](_0x23e2aa);if(_0x74760f['value'])return void _0x5645b3['execute']('paragraph',{});const _0x3e82a5=_0x23e2aa['slice'](0x0,-0x4),_0x7374fc=function(_0x35cf24,_0x5aa7e4,_0x2898f1){let _0x1f93a1=Array['from'](_0x35cf24)['filter'](_0x5a310d=>function(_0x44a3a6,_0x1f9a4a){return _0x1f9a4a['checkChild'](_0x44a3a6['parent'],'listItem')&&!_0x1f9a4a['isObject'](_0x44a3a6);}(_0x5a310d,_0x2898f1));_0x1f93a1=_0x1f93a1['filter'](_0xe31921=>!_0xe31921['is']('element','listItem')||_0xe31921['getAttribute']('listType')!=_0x5aa7e4);const _0x40d303=new Set();for(const _0x5613c2 of _0x1f93a1)_0x5613c2['is']('element','listItem')?_0x40d303['add'](Le(_0x5613c2)):_0x40d303['add'](_0x5613c2);return Array['from'](_0x40d303);}(_0x244119['getSelectedBlocks'](),_0x3e82a5,_0x5645b3['model']['schema']);_0x5645b3['model']['change'](()=>{for(const _0xc456f4 of _0x7374fc)_0x40e9fc['markBlockFormat'](_0xc456f4,{'commandName':_0x23e2aa,'commandParams':[{'forceValue':!_0x74760f['value']}],'formatGroupId':'blockName'},Ee(_0xc456f4));});};}function _0x1d6450(_0x19260b){return()=>{const _0x5a47fc=function(_0x27e70c){let _0x3c444b=Array['from'](_0x27e70c);const _0xc07dbe=_0x3c444b['findIndex'](_0xc4ab7d=>'listItem'!=_0xc4ab7d['name']);return _0xc07dbe>-0x1&&(_0x3c444b=_0x3c444b['slice'](0x0,_0xc07dbe)),_0x3c444b;}(_0x5645b3['model']['document']['selection']['getSelectedBlocks']()),_0x40999a=_0x5645b3['model']['createRange'](_0x5645b3['model']['createPositionAt'](_0x5a47fc[0x0],'before'),_0x5645b3['model']['createPositionAt'](_0x5a47fc[_0x5a47fc['length']-0x1],'end'));_0x5645b3['model']['change'](()=>{_0x40e9fc['markBlockFormat'](_0x40999a,{'commandName':_0x19260b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5eb497){const _0x48c8e5=new Set();for(const _0x43a0e3 of _0x5eb497){let _0x3abac6=_0x43a0e3['nextSibling'];for(;_0x3abac6&&_0x3abac6['getAttribute']('listIndent')>_0x43a0e3['getAttribute']('listIndent');)_0x48c8e5['add'](_0x3abac6),_0x3abac6=_0x3abac6['nextSibling'];}return Array['from'](_0x48c8e5);}(_0x5a47fc));});};}_0x40e9fc['enableCommand']('numberedList',_0x56bee4('numberedList')),_0x40e9fc['enableCommand']('bulletedList',_0x56bee4('bulletedList')),_0x56d1ae&&_0x40e9fc['enableCommand']('todoList',_0x56bee4('todoList')),_0x40e9fc['enableCommand']('indentList',_0x1d6450('indentList')),_0x40e9fc['enableCommand']('outdentList',_0x1d6450('outdentList')),_0x56d1ae&&_0x40e9fc['enableCommand']('checkTodoList',()=>{const _0x1a2d9e=_0x5645b3['commands']['get']('checkTodoList'),_0x4edd66=Array['from'](_0x1a2d9e['_selectedElements']);_0x4edd66['filter'](_0x3f01bb=>_0x3f01bb['getAttribute']('todoListChecked')!=_0x1a2d9e['value']),_0x5645b3['model']['change'](()=>{for(const _0x1eeef1 of _0x4edd66)_0x40e9fc['markBlockFormat'](_0x1eeef1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1a2d9e['value']}]});});}),_0x40e9fc['descriptionFactory']['registerElementLabel']('listItem',_0x55735f=>c(_0x4243e9,'ELEMENT_LIST_ITEM',_0x55735f)),_0x40e9fc['descriptionFactory']['registerDescriptionCallback'](_0x3d3bd6=>{if('formatBlock'!=_0x3d3bd6['type']&&'formatInline'!=_0x3d3bd6['type'])return;const {data:_0x1763cd}=_0x3d3bd6;if(_0x1763cd){if('numberedList'==_0x1763cd['commandName']||'bulletedList'==_0x1763cd['commandName']||'todoList'==_0x1763cd['commandName'])switch(_0x1763cd['commandName']['replace']('List','')){case'bulleted':return _0x2b8af6(c(_0x4243e9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b8af6(c(_0x4243e9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b8af6(c(_0x4243e9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1763cd['commandName'])return{'type':'format','content':c(_0x4243e9,'*Indent:*\x20%0',c(_0x4243e9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1763cd['commandName'])return{'type':'format','content':c(_0x4243e9,'*Outdent:*\x20%0',c(_0x4243e9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1763cd['commandName'])return _0x1763cd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4243e9,'*Check\x20item*')}:{'type':'format','content':c(_0x4243e9,'*Uncheck\x20item*')};}function _0x2b8af6(_0x5658aa){return{'type':'format','content':c(_0x4243e9,'*Change\x20to:*\x20%0',_0x5658aa)};}});}}function Le(_0x1ff551){const _0x321be4=_0x1ff551['getAttribute']('listIndent');if(0x0==_0x321be4)return _0x1ff551;let _0x412986=_0x1ff551;for(;_0x1ff551['previousSibling']&&_0x1ff551['previousSibling']['is']('element','listItem');){const _0x51be6f=_0x1ff551['previousSibling']['getAttribute']('listIndent');if(_0x51be6f==_0x321be4)_0x412986=_0x1ff551['previousSibling'];else{if(_0x51be6f<_0x321be4)break;}_0x1ff551=_0x1ff551['previousSibling'];}return _0x412986;}function Ee(_0x3a3a78){const _0x315e00=[];if(_0x3a3a78['is']('element','listItem')&&_0x3a3a78['getAttribute']('listIndent')>0x0){let _0x16b2e9=_0x3a3a78['nextSibling'];for(;_0x16b2e9&&'listItem'==_0x16b2e9['name']&&_0x16b2e9['getAttribute']('listIndent')==_0x3a3a78['getAttribute']('listIndent');)_0x315e00['push'](_0x16b2e9),_0x16b2e9=_0x16b2e9['nextSibling'];}return _0x315e00;}class Q extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x49c3ac=this['editor']['config']['get']('list.properties'),_0x3e7ed5=this['editor']['plugins']['get']('TrackChangesEditing');_0x49c3ac['styles']&&_0x3e7ed5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x49c3ac['reversed']&&_0x3e7ed5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x49c3ac['startIndex']&&_0x3e7ed5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3e7ed5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2303e5,_0x45cc0b={}){const _0x3beab8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d0d0c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3beab8['markMultiRangeBlockFormat'](_0x4d0d0c,{'commandName':'listStyle','commandParams':[{'type':_0x45cc0b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x261be8,_0x5bc636={}){const _0x2d2ec0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbc3133=this['_getSuggestionBlocks'](_0x197d85=>_0x197d85['is']('element','listItem')&&'numbered'===_0x197d85['getAttribute']('listType'));if(_0xbc3133['length']<0x1)return;const _0x517624=_0xbc3133['map'](_0x1a0023=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a0023,'before'),this['editor']['model']['createPositionAt'](_0x1a0023,0x0)));this['editor']['model']['change'](()=>{_0x2d2ec0['markMultiRangeBlockFormat'](_0x517624,{'commandName':'listReversed','commandParams':[{'reversed':_0x5bc636['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2e56a7,_0x458309={}){const _0x41de99=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbc556a=this['_getSuggestionBlocks'](_0x301789=>_0x301789['is']('element','listItem')&&'numbered'===_0x301789['getAttribute']('listType'));if(_0xbc556a['length']<0x1)return;const _0xa40792=_0xbc556a['map'](_0x46bd03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x46bd03,'before'),this['editor']['model']['createPositionAt'](_0x46bd03,0x0)));this['editor']['model']['change'](()=>{_0x41de99['markMultiRangeBlockFormat'](_0xa40792,{'commandName':'listStart','commandParams':[{'startIndex':_0x458309['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5554db){if('formatBlock'!=_0x5554db['type']&&'formatInline'!=_0x5554db['type'])return;const _0x18675d=this['editor']['locale'],{data:_0x52c432}=_0x5554db;if(!_0x52c432)return;let _0x519975,_0x495e93;switch(_0x52c432['commandName']){case'listStyle':_0x519975='*Change\x20to:*\x20%0',_0x495e93={'type':'format','content':c(_0x18675d,_0x519975,c(_0x18675d,this['_getTranslationKeyForListStyle'](_0x52c432['commandParams'][0x0]['type'])))};break;case'listReversed':_0x519975=_0x52c432['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x495e93={'type':'format','content':c(_0x18675d,_0x519975)};break;case'listStart':_0x519975='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x495e93={'type':'format','content':c(_0x18675d,_0x519975,_0x52c432['commandParams'][0x0]['startIndex'])};}return _0x495e93;}['_getSuggestionBlocksForListStyle'](){const _0x20ed6b=this['editor']['plugins']['get']('LegacyListUtils');let _0x44e1be=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x44e1be[0x0]?.['is']('element','listItem')&&_0x44e1be['unshift'](..._0x20ed6b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x44e1be[_0x44e1be['length']-0x1]?.['is']('element','listItem')&&_0x44e1be['push'](..._0x20ed6b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x44e1be=[...new Set(_0x44e1be)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x44e1be=_0x44e1be['filter'](_0x37d398=>_0x37d398['is']('element','listItem'))),_0x44e1be;}['_getSuggestionBlocks'](_0x183eb9){const _0x5b818a=this['editor']['plugins']['get']('LegacyListUtils');let _0x56721e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x183eb9)['map'](_0x51086d=>{const _0x39d0fa=this['editor']['model']['createPositionAt'](_0x51086d,0x0);return[..._0x5b818a['getSiblingNodes'](_0x39d0fa,'backward'),..._0x5b818a['getSiblingNodes'](_0x39d0fa,'forward')];})['flat']();return _0x56721e=[...new Set(_0x56721e)],_0x56721e;}['_getTranslationKeyForListStyle'](_0x54a27a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x54a27a)||'default')['toUpperCase']()+'_LIST_'+_0x54a27a['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x59f721{['afterInit'](){const _0x49f12e=this['editor'];if(!_0x49f12e['plugins']['has']('MediaEmbedEditing'))return;const _0x11f323=_0x49f12e['plugins']['get']('TrackChangesEditing'),_0x1311c8=_0x49f12e['locale'];_0x11f323['enableCommand']('mediaEmbed'),_0x11f323['descriptionFactory']['registerElementLabel']('media',_0x3db232=>c(_0x1311c8,'ELEMENT_MEDIA',_0x3db232)),_0x49f12e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x179850,{writer:_0x230719,options:_0x17aa7b})=>{if(_0x17aa7b['showSuggestionHighlights'])return _0x230719['createEmptyElement']('div');},'converterPriority':'high'}),_0x49f12e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x53408b,_0x1f502f,_0xdca0b0)=>{_0xdca0b0['options']['showSuggestionHighlights']&&_0x53408b['stop']();},{'priority':'high'});}}class pt extends _0x59f721{['afterInit'](){const _0x3a79fd=this['editor'];_0x3a79fd['plugins']['has']('MentionEditing')&&_0x3a79fd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x59f721{['afterInit'](){const _0x3435c0=this['editor'];if(!_0x3435c0['plugins']['has']('MergeFieldsEditing'))return;const _0x187353=_0x3435c0['plugins']['get']('TrackChangesEditing'),_0x22229d=_0x3435c0['locale'];_0x187353['enableCommand']('insertMergeField'),_0x187353['enableCommand']('insertMergeFieldBlock'),_0x187353['enableCommand']('insertMergeFieldImage'),_0x187353['descriptionFactory']['registerElementLabel']('mergeField',_0x1636d8=>c(_0x22229d,'ELEMENT_MERGE_FIELD',_0x1636d8)),_0x187353['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4126b1=>c(_0x22229d,'ELEMENT_MERGE_FIELD',_0x4126b1)),_0x187353['descriptionFactory']['registerDescriptionCallback'](_0x4c8617=>{if('insertion'!=_0x4c8617['type']&&'deletion'!=_0x4c8617['type'])return;const _0x13f2c5=_0x4c8617['getContainedElement']();if(null==_0x13f2c5)return;const _0x186050=_0x3435c0['plugins']['get']('MergeFieldsEditing');let _0x404ad5;switch(_0x186050['getMergeFieldType'](_0x13f2c5)){case null:return;case'image':{const _0xad3dad=_0x186050['unwrapAffixes'](_0x13f2c5['getAttribute']('src'));_0x404ad5=_0x186050['getLabel'](_0xad3dad)||_0xad3dad;break;}default:{const _0x41d87c=_0x13f2c5['getAttribute']('id');_0x404ad5=_0x186050['getLabel'](_0x41d87c)||_0x41d87c;break;}}return'insertion'==_0x4c8617['type']?{'type':'insertion','content':c(_0x22229d,'*Insert:*\x20%0','\x22'+_0x404ad5+'\x22\x20'+c(_0x22229d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x22229d,'*Remove:*\x20%0','\x22'+_0x404ad5+'\x22\x20'+c(_0x22229d,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x59f721{['afterInit'](){const _0x4d23f8=this['editor'],_0x57a35a=_0x4d23f8['plugins']['get']('TrackChangesEditing');_0x4d23f8['plugins']['has']('MultiLevelList')&&(_0x57a35a['enableDefaultAttributesIntegration']('multiLevelList'),_0x57a35a['registerBlockAttribute']('listMarkerStyle'),_0x57a35a['descriptionFactory']['registerDescriptionCallback'](_0x286034=>this['handleDescriptions'](_0x286034)));}['handleDescriptions'](_0x32e308){const _0x1fcd16=this['editor']['locale'],{data:_0x2ce82b}=_0x32e308,_0xe1ad0a={'type':'format','content':''};if(_0x2ce82b&&'listMarkerStyle'==_0x2ce82b['key']){if(!_0x2ce82b['oldValue'])return{'type':'format','content':c(_0x1fcd16,'*Set\x20format:*\x20%0',c(_0x1fcd16,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ce82b['newValue']+')'};if(!_0x2ce82b['newValue']){let _0x2e58f7=_0x32e308['head'];for(;_0x2e58f7;){if(_0x2e58f7['data']&&'listType'==_0x2e58f7['data']['key']&&_0x2e58f7['data']['newValue'])return _0xe1ad0a;_0x2e58f7=_0x2e58f7['next'];}return{'type':'format','content':c(_0x1fcd16,'*Remove\x20format:*\x20%0',c(_0x1fcd16,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ce82b['oldValue']+')'};}}}}class bt extends _0x59f721{['afterInit'](){const _0x3c9ca1=this['editor'];if(!_0x3c9ca1['plugins']['has']('PageBreakEditing'))return;_0x3c9ca1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5c7e47=_0x3c9ca1['plugins']['get']('TrackChangesEditing'),_0x3c7624=_0x3c9ca1['locale'];_0x5c7e47['descriptionFactory']['registerElementLabel']('pageBreak',_0x4b4754=>c(_0x3c7624,'ELEMENT_PAGE_BREAK',_0x4b4754));}}class yt extends _0x59f721{['afterInit'](){const _0x220c0b=this['editor'];if(!_0x220c0b['plugins']['has']('Paragraph'))return;const _0xb40ab7=_0x220c0b['locale'],_0x1fc186=_0x220c0b['plugins']['get']('TrackChangesEditing');_0x1fc186['descriptionFactory']['registerElementLabel']('paragraph',_0x58c9d3=>c(_0xb40ab7,'ELEMENT_PARAGRAPH',_0x58c9d3)),_0x1fc186['enableDefaultAttributesIntegration']('paragraph'),_0x1fc186['enableCommand']('insertParagraph'),_0x220c0b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x220c0b),{'priority':'highest'}),_0x220c0b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5cbdf2,_0x3f3e8a,_0x145ab5)=>{_0x145ab5['options']['showSuggestionHighlights']&&nr(_0x220c0b,{'showActiveMarker':!0x1})(_0x5cbdf2,_0x3f3e8a,_0x145ab5);},{'priority':'highest'});const _0x504c68=_0x1fc186['descriptionFactory'];_0x504c68['registerDescriptionCallback'](_0x9512ba=>{if('insertion'!==_0x9512ba['type'])return;const {start:_0x184998,end:_0x491e3}=_0x9512ba['getFirstRange']();if(!_0x184998['isTouching'](_0x491e3)||!_0x184998['nodeAfter'])return;const _0x159a31=_0x220c0b['model']['schema'],_0x3aabbd=_0x184998['nodeAfter'];return _0x159a31['isBlock'](_0x3aabbd)&&!_0x159a31['isLimit'](_0x3aabbd)&&_0x159a31['checkChild'](_0x3aabbd,'$text')?{'type':'insertion','content':c(_0xb40ab7,'*Insert:*\x20%0',_0x504c68['getItemLabel'](_0x3aabbd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3df735=this['editor'],_0x56de9d=_0x3df735['locale'];_0x3df735['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbc2c=>{if('formatBlock'!=_0x3dbc2c['type'])return;const {data:_0x3f7e14}=_0x3dbc2c;return _0x3f7e14&&'paragraph'==_0x3f7e14['commandName']?{'type':'format','content':c(_0x56de9d,'*Change\x20to:*\x20%0',c(_0x56de9d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3f6fb7,{showActiveMarker:_0xbbde8d=!0x0}={}){return(_0xcf9971,_0x406372,_0x217fae)=>{const _0x1af346=_0x3f6fb7['plugins']['get']('TrackChangesEditing'),_0x20ade3=_0x406372['markerRange']['start'],_0x5f735e=_0x406372['markerRange']['end'],_0x367ea6=_0x3f6fb7['model']['schema'];if(!_0x20ade3['isTouching'](_0x5f735e)||!_0x20ade3['nodeAfter'])return;const _0xbd1ee1=_0x20ade3['nodeAfter'];if(_0x367ea6['isBlock'](_0xbd1ee1)&&!_0x367ea6['isLimit'](_0xbd1ee1)&&_0x367ea6['checkChild'](_0xbd1ee1,'$text')){if(!_0x217fae['consumable']['consume'](_0x406372['markerRange'],_0xcf9971['name']))return;const {id:_0x50a1d6,authorId:_0x189a8f}=_0x1af346['_splitMarkerName'](_0x406372['markerName']),_0x335cdf=_0x217fae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x50a1d6,'data-author-id':_0x189a8f}),_0x40286f=_0x217fae['mapper']['toViewPosition'](_0x5f735e);_0xbbde8d&&_0x1af346['activeMarkers']['includes'](_0x406372['markerName'])&&_0x217fae['writer']['addClass']('ck-suggestion-marker--active',_0x335cdf),_0x217fae['writer']['insert'](_0x40286f,_0x335cdf),_0x217fae['mapper']['bindElementToMarker'](_0x335cdf,_0x406372['markerName']);}};}class St extends _0x59f721{['afterInit'](){const _0x50cbc9=this['editor'];_0x50cbc9['commands']['get']('replaceSource')&&_0x50cbc9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x59f721{['afterInit'](){const _0x30113d=this['editor'];if(!_0x30113d['plugins']['has']('RemoveFormatEditing'))return;_0x30113d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32f33c=this['editor'];_0x32f33c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2346f1=>{if('formatBlock'!=_0x2346f1['type']&&'formatInline'!=_0x2346f1['type'])return;const {data:_0x571266}=_0x2346f1;return _0x571266&&'removeFormat'==_0x571266['commandName']?{'type':'format','content':c(_0x32f33c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x59f721{['afterInit'](){const _0x15b9d3=this['editor'];if(!_0x15b9d3['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x46edba=_0x15b9d3['plugins']['get']('TrackChangesEditing');_0x46edba['enableCommand']('goToPreviousRestrictedEditingException'),_0x46edba['enableCommand']('goToNextRestrictedEditingException');const _0x5d0ad1=_0x15b9d3['plugins']['get']('RestrictedEditingModeEditing');_0x5d0ad1['enableCommand']('trackChanges'),_0x5d0ad1['enableCommand']('acceptSuggestion'),_0x5d0ad1['enableCommand']('discardSuggestion'),_0x5d0ad1['enableCommand']('acceptAllSuggestions'),_0x5d0ad1['enableCommand']('discardAllSuggestions'),_0x5d0ad1['enableCommand']('acceptSelectedSuggestions'),_0x5d0ad1['enableCommand']('discardSelectedSuggestions');}}class At extends _0x59f721{['afterInit'](){const _0x6c0897=this['editor'];if(!_0x6c0897['plugins']['has']('ShiftEnter'))return;const _0x363d8d=_0x6c0897['plugins']['get']('TrackChangesEditing');_0x363d8d['enableCommand']('shiftEnter'),_0x6c0897['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x6c0897),{'priority':'high'}),_0x6c0897['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x6c0897),{'priority':'high'}),_0x6c0897['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25a99e,_0x458543,_0x583ac4)=>{_0x583ac4['options']['showSuggestionHighlights']&&je(_0x6c0897,{'showActiveMarker':!0x1})(_0x25a99e,_0x458543,_0x583ac4);}),_0x363d8d['descriptionFactory']['registerElementLabel']('softBreak',_0x2dd0ab=>c(_0x6c0897['locale'],'ELEMENT_LINE_BREAK',_0x2dd0ab));}}function je(_0x3d079c,{showActiveMarker:_0x3c268e=!0x0}={}){return(_0x250f67,_0x59b339,_0x544d6f)=>{const _0x2318e5=_0x3d079c['plugins']['get']('TrackChangesEditing');if(!_0x544d6f['consumable']['test'](_0x59b339['markerRange'],_0x250f67['name']))return;const _0x505408=_0x3d079c['model'];for(const _0xbe7614 of _0x59b339['markerRange']['getItems']()){if(!_0xbe7614['is']('element','softBreak'))continue;const _0x6c5e1b='deletion'==_0x59b339['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1c466a,authorId:_0x516984}=_0x2318e5['_splitMarkerName'](_0x59b339['markerName']),_0x5879a0=_0x544d6f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6c5e1b,'data-suggestion':_0x1c466a,'data-author-id':_0x516984}),_0x1693dd=_0x544d6f['mapper']['toViewPosition'](_0x505408['createPositionBefore'](_0xbe7614));_0x3c268e&&_0x2318e5['activeMarkers']['includes'](_0x59b339['markerName'])&&_0x544d6f['writer']['addClass']('ck-suggestion-marker--active',_0x5879a0),_0x544d6f['writer']['insert'](_0x1693dd,_0x5879a0),_0x544d6f['mapper']['bindElementToMarker'](_0x5879a0,_0x59b339['markerName']);}};}class _t extends _0x59f721{['afterInit'](){const _0x4c83d9=this['editor'],_0x28c261=_0x4c83d9['model'],_0x3fd35d=_0x4c83d9['locale'];if(!_0x4c83d9['plugins']['has']('StandardEditingModeEditing'))return;const _0x43fc54=_0x4c83d9['plugins']['get']('TrackChangesEditing'),_0x4cfb61='restrictedEditingException',_0x309cfd=_0x4c83d9['commands']['get'](_0x4cfb61);_0x43fc54['enableCommand'](_0x4cfb61,(_0xb2df61,_0x5e3beb={})=>{const _0x2d44f5=_0x28c261['document']['selection'];if(_0x2d44f5['isCollapsed'])return void _0xb2df61(_0x5e3beb);const _0xf3bc1e=void 0x0!==_0x5e3beb['forceValue']?_0x5e3beb['forceValue']:!_0x309cfd['value'];_0x28c261['change'](()=>{const _0x30a679=Array['from'](_0x2d44f5['getRanges']());for(const _0x47fcf9 of _0x30a679){const _0x555135=_0xf3bc1e?[_0x47fcf9]:io(_0x4cfb61,_0x47fcf9,_0x28c261);for(const _0x50029e of _0x555135)_0x43fc54['markInlineFormat'](_0x50029e,{'commandName':_0x4cfb61,'commandParams':[{'forceValue':_0xf3bc1e}]});}});}),_0x43fc54['descriptionFactory']['registerDescriptionCallback'](_0x32e131=>{if('formatBlock'!=_0x32e131['type']&&'formatInline'!=_0x32e131['type'])return;const {data:_0x5f126d}=_0x32e131;return _0x5f126d&&_0x5f126d['commandName']==_0x4cfb61?_0x5f126d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3fd35d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3fd35d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x59f721{['afterInit'](){const _0x392ffe=this['editor'];if(!_0x392ffe['plugins']['has']('Style')||!_0x392ffe['plugins']['has']('DataSchema'))return;const _0x4a077d=_0x392ffe['plugins']['get']('TrackChangesEditing'),_0x51edbc=_0x392ffe['locale'],_0x53d502=_0x392ffe['config']['get']('style')||{},_0x56a37c=_0x392ffe['plugins']['get']('GeneralHtmlSupport'),_0x2b3c0d=_0x392ffe['plugins']['get']('StyleUtils')['normalizeConfig'](_0x392ffe['plugins']['get']('DataSchema'),_0x53d502['definitions']);_0x4a077d['enableDefaultAttributesIntegration']('style');const _0x13d152=new Set();for(const _0x5bd0be of _0x2b3c0d['block']){const _0x4db2b8=_0x56a37c['getGhsAttributeNameForElement'](_0x5bd0be['element']);_0x13d152['add'](_0x4db2b8);}const _0x422322=new Set();for(const _0x149c1f of _0x2b3c0d['inline']){const _0x25f0f8=_0x56a37c['getGhsAttributeNameForElement'](_0x149c1f['element']);_0x422322['add'](_0x25f0f8);for(const _0x3f2a2a of _0x149c1f['ghsAttributes'])_0x422322['add'](_0x3f2a2a);}for(const _0x4baea1 of _0x13d152)_0x4a077d['registerBlockAttribute'](_0x4baea1),_0x4a077d['descriptionFactory']['registerAttributeLabel'](_0x4baea1,c(_0x51edbc,'FORMAT_STYLE'));for(const _0x1399a2 of _0x422322)_0x4a077d['registerInlineAttribute'](_0x1399a2),_0x4a077d['descriptionFactory']['registerAttributeLabel'](_0x1399a2,c(_0x51edbc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x407a43=this['editor'],_0x269f6e=_0x407a43['locale'];_0x407a43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34e07d=>{if('formatBlock'!=_0x34e07d['type']&&'formatInline'!=_0x34e07d['type'])return;const {data:_0x56ba18}=_0x34e07d;return _0x56ba18&&'style'===_0x56ba18['commandName']?_0x56ba18['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x269f6e,'*Set\x20format:*\x20%0',_0x56ba18['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x269f6e,'*Remove\x20format:*\x20%0',_0x56ba18['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x59f721{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49be04){super(_0x49be04),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x495c01=this['editor'],_0x3893a4=_0x495c01['model']['document']['selection'];if(!_0x495c01['plugins']['has']('TableEditing'))return;const _0x2ed21f=_0x495c01['locale'],_0x7771aa=_0x495c01['plugins']['get']('TrackChangesEditing'),_0x3d6686=_0x495c01['plugins']['get']('TableUtils');_0x7771aa['descriptionFactory']['registerElementLabel']('table',_0x5493c1=>c(_0x2ed21f,'ELEMENT_TABLE',_0x5493c1)),this['_setupColumnsRowsFixing'](),_0x7771aa['enableCommand']('insertTable'),_0x7771aa['enableCommand']('selectTableRow'),_0x7771aa['enableCommand']('selectTableColumn');for(const _0x403c31 of['insertTableRowAbove','insertTableRowBelow']){const _0x46e24c=_0x495c01['commands']['get'](_0x403c31);_0x7771aa['enableCommand'](_0x403c31,_0x408f72=>{_0x495c01['model']['change'](_0x3ab475=>{_0x408f72();const _0x4f3f11='above'===_0x46e24c['order'],_0x5a5fc7=_0x3d6686['getSelectionAffectedTableCells'](_0x3893a4),_0x1afe3c=_0x3d6686['getRowIndexes'](_0x5a5fc7),_0x5d642d=_0x4f3f11?_0x1afe3c['first']-0x1:_0x1afe3c['last']+0x1,_0x37ee4e=_0x5a5fc7[0x0]['findAncestor']('table'),_0x47eb8f=_0x3d6686['createTableWalker'](_0x37ee4e,{'startRow':_0x5d642d,'endRow':_0x5d642d}),_0x1caf0f=Array['from'](_0x47eb8f)['map'](_0x36dd45=>_0x3ab475['createRangeOn'](_0x36dd45['cell']));_0x7771aa['markMultiRangeInsertion'](_0x1caf0f,'tableRow');});});}for(const _0x579fca of['insertTableColumnLeft','insertTableColumnRight']){const _0x380e22=_0x495c01['commands']['get'](_0x579fca);_0x7771aa['enableCommand'](_0x579fca,_0x48bfa7=>{_0x495c01['model']['change'](_0x9e4ea7=>{_0x48bfa7();const _0x2cff5a='left'===_0x380e22['order'],_0xd50c53=_0x3d6686['getSelectionAffectedTableCells'](_0x3893a4),_0x52344e=_0x3d6686['getColumnIndexes'](_0xd50c53),_0x44184b=_0x2cff5a?_0x52344e['first']-0x1:_0x52344e['last']+0x1,_0x4e6d96=_0xd50c53[0x0]['findAncestor']('table'),_0xce3e8f=_0x3d6686['createTableWalker'](_0x4e6d96,{'startRow':0x0,'column':_0x44184b,'includeAllSlots':!0x1}),_0x41efc7=Array['from'](_0xce3e8f)['map'](_0x235d19=>_0x9e4ea7['createRangeOn'](_0x235d19['cell']));_0x7771aa['markMultiRangeInsertion'](_0x41efc7,'tableColumn');});});}for(const _0x36ebf5 of['removeTableRow','removeTableColumn']){const _0xc3cda=_0x36ebf5['substr'](0xb),_0x3b1503=_0xc3cda['toLowerCase'](),_0x4b2046=_0x3b1503['substr'](0x0,0x3)+'span',_0x18650b='table'+_0xc3cda,_0x3c773f='min'+_0xc3cda,_0x97fec9='max'+_0xc3cda;_0x7771aa['enableCommand'](_0x36ebf5,()=>{_0x495c01['model']['change'](_0x162c87=>{const _0x2faaf8=_0x3d6686['getSelectionAffectedTableCells'](_0x3893a4),_0x282847=_0x2faaf8[0x0]['findAncestor']('table');let _0x5d8a71;if('removeTableRow'==_0x36ebf5){const _0xb538ff=_0x3d6686['getRowIndexes'](_0x2faaf8);_0x5d8a71={'startRow':_0xb538ff['first'],'endRow':_0xb538ff['last'],'includeAllSlots':!0x0};}else{const _0xdbe85d=_0x3d6686['getColumnIndexes'](_0x2faaf8);_0x5d8a71={'startColumn':_0xdbe85d['first'],'endColumn':_0xdbe85d['last'],'includeAllSlots':!0x0};}const _0x5549e5=_0x3d6686['createTableWalker'](_0x282847,_0x5d8a71),_0x5e5a22=Array['from'](_0x5549e5)['map'](({cell:_0x5bbe16})=>_0x5bbe16),_0x2d5ad9=xe(_0x5e5a22['filter'](_0x498dee=>_0x498dee['hasAttribute'](_0x4b2046))),_0x4df969=xe(_0x5e5a22['filter'](_0x2631cd=>!_0x2631cd['hasAttribute'](_0x4b2046)))['map'](_0x1e5256=>_0x162c87['createRangeOn'](_0x1e5256)),_0x33e6fc=_0x7771aa['markMultiRangeDeletion'](_0x4df969,_0x18650b);if(_0x33e6fc&&('tableRow'==_0x33e6fc['subType']||'tableColumn'==_0x33e6fc['subType'])){const _0x463343=this['_getSuggestionCoords'](_0x33e6fc);for(const _0x2d5229 of _0x2d5ad9){const _0x26db9d=_0x162c87['createRangeOn'](_0x2d5229),_0x39705b=_0x3d6686['getCellLocation'](_0x2d5229),_0x303c92=_0x2d5229['getAttribute'](_0x4b2046)-0x1,_0x5de73b=_0x463343[_0x3c773f],_0x35fdaa=_0x463343[_0x97fec9];_0x5de73b<=_0x39705b[_0x3b1503]&&_0x39705b[_0x3b1503]+_0x303c92<=_0x35fdaa&&_0x33e6fc['addRange'](_0x26db9d);}}});});}function _0x51aa04(_0x3473bc){const _0x2e1c8e=Array['from'](_0x3893a4['getRanges']())['map'](_0x332e3d=>_0x39b5cf['fromRange'](_0x332e3d));_0x495c01['model']['change'](_0x2cb776=>{const _0x2713b0=_0x2cb776['batch'];_0x3473bc=_0x3473bc['filter'](_0x3fec1f=>'$graveyard'!=_0x3fec1f['root']['rootName']),_0x2cb776['setSelection'](_0x3473bc),_0x495c01['commands']['get']('removeTableRow')['refresh'](),_0x495c01['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x495c01['model']['enqueueChange'](()=>{_0x495c01['model']['enqueueChange'](_0x2713b0,_0x5b05fa=>{const _0x1ba278=_0x2e1c8e['filter'](_0x59dd60=>'$graveyard'!=_0x59dd60['root']['rootName']);_0x1ba278['length']>0x0&&_0x5b05fa['setSelection'](_0x1ba278);for(const _0x3991b5 of _0x2e1c8e)_0x3991b5['detach']();});});});}function _0xb9a3e(_0x4db4d9){_0x495c01['model']['change'](_0x10da44=>{const _0x278710=Array['from'](_0x3893a4['getRanges']())['map'](_0x48ad66=>_0x39b5cf['fromRange'](_0x48ad66)),_0x2ea2d9=[];for(const _0x41e5db of _0x4db4d9)for(const _0x550473 of _0x41e5db['getItems']({'shallow':!0x0}))_0x2ea2d9['push'](_0x550473);for(const _0x5bffe7 of _0x2ea2d9)'$graveyard'!=_0x5bffe7['root']['rootName']&&(_0x10da44['setSelection'](_0x10da44['createPositionAt'](_0x5bffe7,0x0)),_0x495c01['commands']['get']('removeTableColumn')['refresh'](),_0x495c01['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x392f0b=_0x278710['filter'](_0x15c273=>'$graveyard'!=_0x15c273['root']['rootName']);_0x392f0b['length']>0x0&&_0x10da44['setSelection'](_0x392f0b);for(const _0x52d995 of _0x278710)_0x52d995['detach']();});}function _0x518bf4(_0xfb5303,_0x509324){return _0x509324['every'](_0xb9e36a=>_0xfb5303['some'](_0x43abfb=>_0x43abfb['end']['isEqual'](_0xb9e36a['start'])||_0xb9e36a['end']['isEqual'](_0x43abfb['start'])));}function _0xf27f85(_0x263b02,_0xb53ecc){return!_0x263b02['some'](_0x992fe9=>_0xb53ecc['some'](_0x368c5a=>_0x992fe9['isIntersecting'](_0x368c5a)))&&_0x263b02['some'](_0x16951d=>_0xb53ecc['some'](_0x45697f=>_0x16951d['end']['isTouching'](_0x45697f['start'])));}_0x495c01['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x12e07f,_0x44695e,_0xd74c95)=>{if(!_0xd74c95['options']['showSuggestionHighlights'])return;const _0x2ac07f=_0x44695e['item'];if(!_0x2ac07f||!_0x2ac07f['is']('element','tableCell'))return;const _0x4ded46=_0xd74c95['mapper']['toViewElement'](_0x2ac07f);if(_0x4ded46){const {id:_0x28217d,authorId:_0x790bc6}=_0x7771aa['_splitMarkerName'](_0x44695e['markerName']);_0x49fc28(_0x4ded46,_0xd74c95['writer'],(_0x44ad8c,_0x19d350,_0x59e3a5)=>{_0x59e3a5['addClass'](_0x43f047(_0x19d350['classes']),_0x44ad8c),_0x59e3a5['setAttribute']('data-suggestion-id',_0x28217d,_0x44ad8c),_0x59e3a5['setAttribute']('data-author-id',_0x790bc6,_0x44ad8c);},(_0xaff22b,_0x2a44f2,_0x5b22e3)=>{_0x5b22e3['removeClass'](_0x43f047(_0x2a44f2['classes']),_0xaff22b),_0x5b22e3['removeAttribute']('data-suggestion-id',_0xaff22b),_0x5b22e3['removeAttribute']('data-author-id',_0xaff22b);});}},{'priority':'highest'}),_0x7771aa['descriptionFactory']['registerDescriptionCallback'](_0x3a6a1b=>{if('insertion'!=_0x3a6a1b['type']&&'deletion'!=_0x3a6a1b['type'])return;const _0x5d0f94=_0x3a6a1b['getContainedElement']();if(null!=_0x5d0f94&&_0x5d0f94['is']('element','table')){if('insertion'==_0x3a6a1b['type']){const _0x8be1c7=_0x3a6a1b['getItems']()['filter'](_0x117835=>_0x117835['is']('$textProxy'))['map'](_0x37af7e=>_0x37af7e['data']);if(_0x8be1c7['length'])return{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8be1c7['join']('\x20')+'\x22'))};}if('deletion'==_0x3a6a1b['type']){const _0x4ef87a=_0x3a6a1b['getItems']()['filter'](_0x53607d=>_0x53607d['is']('$textProxy'))['map'](_0x114e8b=>_0x114e8b['data']);if(_0x4ef87a['length'])return{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ef87a['join']('\x20')+'\x22'))};}}}),_0x7771aa['descriptionFactory']['registerDescriptionCallback'](_0x1f7c47=>{if('tableRow'==_0x1f7c47['subType']){const _0x32a016=_0x1f7c47['getItems']()['filter'](_0x6e0781=>_0x6e0781['is']('$textProxy'))['map'](_0x1c4658=>_0x1c4658['data']),_0x259151=this['_getSuggestionCoords'](_0x1f7c47),_0x4cc8ae=_0x259151['maxRow']-_0x259151['minRow']+0x1;if('insertion'==_0x1f7c47['type'])return _0x32a016['length']?{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4cc8ae,'\x22'+_0x32a016['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW',_0x4cc8ae))};if('deletion'==_0x1f7c47['type'])return _0x32a016['length']?{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4cc8ae,'\x22'+_0x32a016['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW',_0x4cc8ae))};}if('tableColumn'==_0x1f7c47['subType']){const _0x52b96a=_0x1f7c47['getItems']()['filter'](_0x37320=>_0x37320['is']('$textProxy'))['map'](_0x40aa5e=>_0x40aa5e['data']),_0x4e76dd=this['_getSuggestionCoords'](_0x1f7c47),_0x4a6a8a=_0x4e76dd['maxColumn']-_0x4e76dd['minColumn']+0x1;if('insertion'==_0x1f7c47['type'])return _0x52b96a['length']?{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a6a8a,'\x22'+_0x52b96a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN',_0x4a6a8a))};if('deletion'==_0x1f7c47['type'])return _0x52b96a['length']?{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a6a8a,'\x22'+_0x52b96a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN',_0x4a6a8a))};}}),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x51aa04),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x51aa04),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xb9a3e),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xb9a3e),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x518bf4),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x518bf4),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf27f85),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf27f85);}['_acceptFormatSuggestionCallbackFactory'](){const _0x208e3c=this['editor'],_0x459a33=_0x208e3c['model']['document']['selection'];return(_0x35f374,_0x591ec8)=>{_0x208e3c['model']['change'](_0x1874d2=>{const {commandName:_0x4bfeb1,commandParams:_0x5efa07}=_0x591ec8;let _0x1820a8=_0x35f374[0x0]['end']['nodeBefore'];_0x5efa07&&_0x5efa07[0x0]&&!0x1===_0x5efa07[0x0]['forceValue']&&(_0x1820a8=_0x35f374[0x0]['start']['nodeAfter']);const _0x9f2a98=_0x1874d2['createRangeIn'](_0x1820a8);if('$graveyard'==_0x9f2a98['root']['rootName'])return;const _0x5a244e=Array['from'](_0x459a33['getRanges']())['map'](_0x5ca617=>_0x39b5cf['fromRange'](_0x5ca617));_0x1874d2['setSelection'](_0x9f2a98),_0x208e3c['commands']['get'](_0x4bfeb1)['refresh'](),_0x5efa07['push']({'forceDefaultExecution':!0x0}),_0x208e3c['execute'](_0x4bfeb1,..._0x5efa07);const _0xf4a9c7=_0x5a244e['filter'](_0x2ac908=>'$graveyard'!=_0x2ac908['root']['rootName']);_0xf4a9c7['length']>0x0&&_0x1874d2['setSelection'](_0xf4a9c7);for(const _0x49a62a of _0x5a244e)_0x49a62a['detach']();});};}['_getCoordsForCells'](_0x2ad6e8){const _0x4e35dc=this['editor']['plugins']['get']('TableUtils');let _0x4e1da3=Number['MAX_SAFE_INTEGER'],_0x4d70eb=Number['MIN_SAFE_INTEGER'],_0x3b7407=Number['MAX_SAFE_INTEGER'],_0xd1aa7d=Number['MIN_SAFE_INTEGER'];for(const _0xac0f90 of _0x2ad6e8){if('$graveyard'==_0xac0f90['root']['rootName'])continue;const {row:_0x3c7c86,column:_0x2e0726}=_0x4e35dc['getCellLocation'](_0xac0f90),_0x5607cf=_0xac0f90['hasAttribute']('rowspan')?_0xac0f90['getAttribute']('rowspan')-0x1:0x0,_0x1a1566=_0xac0f90['hasAttribute']('colspan')?_0xac0f90['getAttribute']('colspan')-0x1:0x0;_0x4e1da3=_0x3c7c86<_0x4e1da3?_0x3c7c86:_0x4e1da3,_0x4d70eb=_0x3c7c86+_0x5607cf>_0x4d70eb?_0x3c7c86+_0x5607cf:_0x4d70eb,_0x3b7407=_0x2e0726<_0x3b7407?_0x2e0726:_0x3b7407,_0xd1aa7d=_0x2e0726+_0x1a1566>_0xd1aa7d?_0x2e0726+_0x1a1566:_0xd1aa7d;}return{'minRow':_0x4e1da3,'maxRow':_0x4d70eb,'minColumn':_0x3b7407,'maxColumn':_0xd1aa7d};}['_setupColumnsRowsFixing'](){const _0x595f3c=this['editor'],_0x2d4fa5=_0x595f3c['plugins']['get']('TrackChangesEditing'),_0x15982c=_0x595f3c['plugins']['get']('TableUtils');_0x595f3c['model']['document']['on']('change:data',()=>{const _0x4b23cb=Array['from'](_0x595f3c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54c688,data:_0x5ee45a}of _0x4b23cb){const {group:_0x2083ee,id:_0x3afe87,subType:_0x2aafae}=_0x2d4fa5['_splitMarkerName'](_0x54c688);if('suggestion'!=_0x2083ee)continue;if(null!=_0x5ee45a['oldRange'])continue;const _0x3c18de=_0x2d4fa5['getSuggestion'](_0x3afe87);this['_tablePostFixingSubtypes']['includes'](_0x2aafae)&&this['_tableSuggestions']['add'](_0x3c18de);}},{'priority':'low'});const _0x9d19ea=(_0x8ebc35,_0x569061)=>{let _0xa811c1=!0x1;const _0x2d1f93=_0x569061['createRangeOn'](_0x8ebc35),_0xaa27=_0x8ebc35['findAncestor']('table'),_0x487f0=_0x15982c['getCellLocation'](_0x8ebc35);for(const _0x584e19 of this['_tableSuggestions']){const _0x23b016=_0x584e19['subType'],_0xcdcaff=_0x23b016['startsWith']('tablePaste'),_0x59028d=_0x23b016['substr'](_0xcdcaff?0xa:0x5),_0x4c716f=_0x59028d['toLowerCase'](),_0x45297a=_0x4c716f['substr'](0x0,0x3)+'span',_0x2e7548='min'+_0x59028d,_0x58c8fe='max'+_0x59028d;if(!_0x584e19['isInContent'])continue;if(_0xaa27!=_0x584e19['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x584e19['isIntersectingWithRange'](_0x2d1f93))continue;const _0x4d9727=_0x8ebc35['hasAttribute'](_0x45297a)?_0x8ebc35['getAttribute'](_0x45297a)-0x1:0x0,_0x4c8fa0=this['_getSuggestionCoords'](_0x584e19),_0x4ba28a=_0x4c8fa0[_0x2e7548],_0x39a28d=_0x4c8fa0[_0x58c8fe];_0x4ba28a<=_0x487f0[_0x4c716f]&&_0x487f0[_0x4c716f]+_0x4d9727<=_0x39a28d&&(_0x584e19['addRange'](_0x2d1f93),_0xa811c1=!0x0);}return _0xa811c1;};_0x595f3c['model']['document']['registerPostFixer'](_0x13bd05=>{let _0x51d7fa=!0x1;for(const _0x304bd5 of _0x595f3c['model']['document']['differ']['getChanges']())if('insert'==_0x304bd5['type']){if('tableRow'==_0x304bd5['name']){for(const _0x50439e of _0x304bd5['position']['nodeAfter']['getChildren']())_0x51d7fa=_0x51d7fa||_0x9d19ea(_0x50439e,_0x13bd05);}else'tableCell'==_0x304bd5['name']&&(_0x51d7fa=_0x51d7fa||_0x9d19ea(_0x304bd5['position']['nodeAfter'],_0x13bd05));}return _0x51d7fa;});}['_getSuggestionCoords'](_0x8e0f93){return this['_getCoordsForCells'](_0x8e0f93['getRanges']()['map'](_0x4487cf=>_0x4487cf['start']['nodeAfter']));}}function xe(_0x3610d4){return Array['from'](new Set(_0x3610d4)['values']());}class Nt extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x43bf02=this['editor'],_0x19af18=_0x43bf02['model']['document']['selection'],_0x5bcec1=_0x43bf02['locale'];if(!_0x43bf02['plugins']['has']('TableEditing'))return;const _0x5c8374=_0x43bf02['plugins']['get']('TrackChangesEditing'),_0x1a7caf=_0x43bf02['plugins']['get']('TableUtils'),_0x45fe72=_0x43bf02['plugins']['get'](Ct);_0x45fe72['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5c8374['enableCommand']('mergeTableCells',()=>{const _0x39abea=_0x1a7caf['getSelectionAffectedTableCells'](_0x43bf02['model']['document']['selection']);_0x43bf02['model']['change'](()=>{_0x5c8374['markMultiRangeBlockFormat'](_0x39abea,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x43bf02['commands']['get']('mergeTableCells')['on']('execute',(_0x39a24e,_0x3a90cb)=>{_0x43bf02['commands']['get']('trackChanges')['value']&&(_0x3a90cb['length']>0x0&&_0x3a90cb[_0x3a90cb['length']-0x1]&&_0x3a90cb[_0x3a90cb['length']-0x1]['forceDefaultExecution']||_0x5c8374['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x39a24e['stop']());},{'priority':'highest'});for(const _0x16ef78 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x274d11=_0x43bf02['commands']['get'](_0x16ef78);_0x5c8374['enableCommand'](_0x16ef78,()=>{const _0x4d54ac=_0x43bf02['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x767929=>_0x767929['is']('element','tableCell')),_0x9a6c29=_0x274d11['value'];_0x43bf02['model']['change'](()=>{_0x5c8374['markMultiRangeBlockFormat']([_0x4d54ac,_0x9a6c29],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x193507 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4c3388=_0x43bf02['commands']['get'](_0x193507);_0x5c8374['enableCommand'](_0x193507,()=>{const _0x47bd2c=_0x1a7caf['getSelectionAffectedTableCells'](_0x43bf02['model']['document']['selection'])[0x0],_0x11ac47=_0x47bd2c['findAncestor']('table'),{column:_0x341e9a,row:_0x36eebc}=_0x1a7caf['getCellLocation'](_0x47bd2c);let _0x26e0d9=[];if('horizontally'==_0x4c3388['direction']){const _0x38de85=_0x1a7caf['createTableWalker'](_0x11ac47,{'startRow':_0x36eebc,'endRow':_0x36eebc,'includeAllSlots':!0x0});_0x26e0d9=Array['from'](_0x38de85)['map'](_0x262ad1=>_0x262ad1['cell']);}else{const _0x1b0980=_0x1a7caf['createTableWalker'](_0x11ac47,{'column':_0x341e9a,'includeAllSlots':!0x0});_0x26e0d9=Array['from'](_0x1b0980)['map'](_0x266fbb=>_0x266fbb['cell']);}_0x43bf02['model']['change'](_0x2922fb=>{_0x5c8374['markBlockFormat'](_0x2922fb['createRangeOn'](_0x47bd2c),{'commandName':_0x193507,'commandParams':[]},_0x26e0d9,_0x193507);});});}_0x5c8374['descriptionFactory']['registerDescriptionCallback'](_0x3db5bf=>{if('formatBlock'!=_0x3db5bf['type']&&'formatInline'!=_0x3db5bf['type'])return;const {data:_0x162c77}=_0x3db5bf;return _0x162c77&&'mergeTableCells'==_0x162c77['commandName']?{'type':'format','content':c(_0x5bcec1,'*Merge\x20cells*')}:void 0x0;}),_0x5c8374['descriptionFactory']['registerDescriptionCallback'](_0x50ab24=>{if('formatBlock'!=_0x50ab24['type']&&'formatInline'!=_0x50ab24['type'])return;const {data:_0x14f4d7}=_0x50ab24;return _0x14f4d7?'splitTableCellVertically'==_0x14f4d7['commandName']?{'type':'format','content':c(_0x5bcec1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14f4d7['commandName']?{'type':'format','content':c(_0x5bcec1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x43059d=_0x45fe72['_acceptFormatSuggestionCallbackFactory']();for(const _0x5dbbc7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5c8374['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5dbbc7,'accept',_0x43059d);for(const _0x2fd387 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5c8374['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fd387,'accept',_0x43059d);_0x5c8374['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x452b8d=>{_0x43bf02['model']['change'](_0x304baa=>{const _0x2c7c11=Array['from'](_0x19af18['getRanges']())['map'](_0x9c9fe9=>_0x39b5cf['fromRange'](_0x9c9fe9));_0x304baa['setSelection'](_0x452b8d),_0x43bf02['commands']['get']('mergeTableCells')['refresh'](),_0x43bf02['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b54c3=_0x2c7c11['filter'](_0x304694=>'$graveyard'!=_0x304694['root']['rootName']);_0x1b54c3['length']>0x0&&_0x304baa['setSelection'](_0x1b54c3);for(const _0x23fe72 of _0x2c7c11)_0x23fe72['detach']();});});for(const _0x53c910 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xff6964=_0x43bf02['commands']['get'](_0x53c910);_0xff6964['on']('set:isEnabled',(_0x3216b5,_0x283153,_0x2eca40)=>{if(_0x2eca40){const _0x1ab712=_0x43bf02['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc13593=>_0xc13593['is']('element','tableCell'));this['_areMergableCells'](_0xff6964['value'],_0x1ab712)||(_0x3216b5['return']=!0x1,_0x3216b5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3cb8fd=this['editor']['commands']['get']('mergeTableCells'),_0x53981f=this['editor']['plugins']['get']('TableUtils');if(!_0x3cb8fd['isEnabled'])return!0x1;const _0x530d5d=_0x53981f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x280c08 of _0x530d5d)for(const _0x1b41d7 of _0x530d5d)if(_0x280c08!=_0x1b41d7&&!this['_areMergableCells'](_0x280c08,_0x1b41d7))return!0x1;return!0x0;}['_areMergableCells'](_0x1904ff,_0xc8a84d){const _0x398bed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x255e0a=this['editor']['model']['createRangeOn'](_0x1904ff),_0x899cca=this['editor']['model']['createRangeOn'](_0xc8a84d),_0x1ee67f=new Set(),_0x12eb65=new Set();for(const _0x485f29 of _0x398bed['getSuggestions']())if(('insertion'==_0x485f29['type']||'deletion'==_0x485f29['type']||'mergeTableCells'==_0x485f29['subType'])&&_0x485f29['isInContent']){for(const _0x3f9d6a of _0x485f29['getRanges']())_0x3f9d6a['containsRange'](_0x255e0a,!0x0)&&_0x1ee67f['add'](_0x485f29['type']+':'+_0x485f29['author']['id']),_0x3f9d6a['containsRange'](_0x899cca,!0x0)&&_0x12eb65['add'](_0x485f29['type']+':'+_0x485f29['author']['id']);}if(_0x1ee67f['size']!=_0x12eb65['size'])return!0x1;for(const _0x5141c1 of _0x1ee67f)if(!_0x12eb65['has'](_0x5141c1))return!0x1;return!0x0;}}class Dt extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x303059=this['editor'];if(!_0x303059['plugins']['has']('TableEditing'))return;const _0x44e564=_0x303059['locale'],_0x739425=_0x303059['plugins']['get']('TrackChangesEditing');_0x739425['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x739425['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x739425['registerBlockAttribute']('headingRows'),_0x739425['registerBlockAttribute']('headingColumns'),_0x739425['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x44e564,'FORMAT_HEADER_ROW')),_0x739425['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x44e564,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9c5901=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fe67b=this['editor']['plugins']['get']('TableUtils'),_0x4d91ce=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x42c620({showActiveMarker:_0xd505f=!0x0,setDataAttribute:_0x2ccbc3=!0x0}={}){return(_0x10220f,_0x92c5f,_0x461595)=>{const {type:_0x283c70,id:_0x1f18fa}=_0x9c5901['_splitMarkerName'](_0x92c5f['markerName']),_0x145a3b=_0x9c5901['getSuggestion'](_0x1f18fa),_0x4d07b3=_0x145a3b['data'];if('formatBlock'!=_0x145a3b['type']||!_0x4d07b3||'setTableColumnHeader'!=_0x4d07b3['commandName'])return;if(_0x92c5f['item'])return void _0x10220f['stop']();if(!_0x461595['consumable']['consume'](_0x92c5f['markerRange'],_0x10220f['name']))return;const _0x3dcb7f=_0x92c5f['markerRange']['start']['nodeAfter'],_0x5e075f=_0x92c5f['markerRange']['end']['nodeBefore'],_0x4b1721=_0x3dcb7f['parent']['parent'],{column:_0x27f48f}=_0x2fe67b['getCellLocation'](_0x3dcb7f),{column:_0x2a1d22}=_0x2fe67b['getCellLocation'](_0x5e075f);for(let _0x230a29=_0x27f48f;_0x230a29<=_0x2a1d22;_0x230a29++){const _0x34ea31=_0x2fe67b['createTableWalker'](_0x4b1721,{'column':_0x230a29,'includeAllSlots':!0x1});for(const _0x378f51 of _0x34ea31){const _0x2952a6=_0x378f51['cell'],_0x45910a=_0x461595['mapper']['toViewElement'](_0x2952a6);_0x461595['writer']['addClass']('ck-suggestion-marker-'+_0x283c70,_0x45910a),_0x2ccbc3&&_0x461595['writer']['setAttribute']('data-suggestion',_0x1f18fa,_0x45910a),_0x461595['mapper']['bindElementToMarker'](_0x45910a,_0x92c5f['markerName']),_0xd505f&&(_0x9c5901['activeMarkers']['includes'](_0x92c5f['markerName'])?_0x461595['writer']['addClass']('ck-suggestion-marker--active',_0x45910a):_0x461595['writer']['removeClass']('ck-suggestion-marker--active',_0x45910a));}}};}_0x9c5901['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4d91ce),_0x9c5901['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4d91ce),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x42c620(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xae49f4,_0x34bf7c,_0x16063c)=>{_0x16063c['options']['showSuggestionHighlights']&&_0x42c620({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xae49f4,_0x34bf7c,_0x16063c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x10a0de,_0x543fe6,_0x28a91c)=>{const {type:_0x1fc6dd,id:_0x2dad6f}=_0x9c5901['_splitMarkerName'](_0x543fe6['markerName']),_0x18d47e=_0x9c5901['getSuggestion'](_0x2dad6f),_0x8e6336=_0x18d47e['data'];if('formatBlock'!=_0x18d47e['type']||!_0x8e6336||'setTableColumnHeader'!=_0x8e6336['commandName'])return;const _0x647051=_0x28a91c['mapper']['markerNameToElements'](_0x543fe6['markerName']);if(_0x647051){for(const _0x568247 of _0x647051)_0x28a91c['writer']['removeClass']('ck-suggestion-marker-'+_0x1fc6dd,_0x568247),_0x28a91c['writer']['removeClass']('ck-suggestion-marker--active',_0x568247),_0x28a91c['writer']['removeAttribute']('data-suggestion',_0x568247),_0x28a91c['mapper']['unbindElementFromMarkerName'](_0x568247,_0x543fe6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x437e77=this['editor'],_0x568c05=_0x437e77['locale'];function _0x1a7abe(_0x2775ff){return{'type':'format','content':c(_0x568c05,'*Format:*\x20%0',_0x2775ff)};}_0x437e77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x587066=>{if('formatBlock'!=_0x587066['type'])return;const {data:_0x1d6bf6}=_0x587066;if(_0x1d6bf6){if('setTableRowHeader'==_0x1d6bf6['commandName']){const _0x38aa22=_0x1d6bf6['commandParams'][0x0]['forceValue'];return _0x1a7abe(c(_0x568c05,_0x38aa22?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1d6bf6['commandName']){const _0x1a7acb=_0x1d6bf6['commandParams'][0x0]['forceValue'];return _0x1a7abe(c(_0x568c05,_0x1a7acb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x59f721{['afterInit'](){const _0xd31ec0=this['editor'],_0x5c7b1d=_0xd31ec0['locale'],_0x57d786=_0xd31ec0['plugins']['get']('TrackChangesEditing');function _0x2ef867(_0x1bb5e9){return{'type':'format','content':''+c(_0x5c7b1d,'*Set\x20table\x20type:*\x20%0',_0x1bb5e9)};}_0xd31ec0['plugins']['has']('TableLayout')&&(_0x57d786['enableCommand']('insertTableLayout'),_0x57d786['enableDefaultAttributesIntegration']('tableType'),_0x57d786['registerBlockAttribute']('tableType'),_0x57d786['descriptionFactory']['registerElementLabel'](_0xc6b783=>_0xc6b783['is']('element','table')&&'layout'===_0xc6b783['getAttribute']('tableType'),_0x347ff0=>c(_0x5c7b1d,'ELEMENT_LAYOUT_TABLE',_0x347ff0)),_0x57d786['descriptionFactory']['registerDescriptionCallback'](_0x162f7b=>{const {data:_0x5753e0}=_0x162f7b;if(_0x5753e0&&'tableType'==_0x5753e0['key'])switch(_0x5753e0['newValue']){case'layout':return _0x2ef867(c(_0x5c7b1d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2ef867(c(_0x5c7b1d,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x2fcd86=>[_0x2fcd86,null]));class $t extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x178f3f=this['editor'];if(!_0x178f3f['plugins']['has']('TableClipboard'))return;const _0x4868af=_0x178f3f['plugins']['get']('TrackChangesEditing'),_0x477dfb=_0x178f3f['plugins']['get']('TableUtils'),_0x18b08a=_0x178f3f['plugins']['get'](Ct),_0x3a79b3=_0x178f3f['plugins']['get']('TableClipboard'),_0x2a702e=_0x178f3f['plugins']['get']('TableSelection'),_0x99e24=_0x178f3f['plugins']['get'](_0x3de457);_0x18b08a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x178f3f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x178f3f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3a6898=null,_0x376159=!0x1;_0x99e24['on']('contentInsertion',(_0x3043aa,_0x4fe06a)=>{_0x376159='paste'===_0x4fe06a['method'];}),_0x178f3f['model']['on']('insertContent',(_0x14c33a,_0x18b3c8)=>{if(!_0x376159&&null===_0x2a702e['getSelectedTableCells']())return;const [_0x32d93f,_0x1b048b]=_0x18b3c8,_0x1d8641=_0x18b3c8[_0x18b3c8['length']-0x1];_0x1d8641&&_0x1d8641['forceDefaultExecution']||_0x4868af['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4a164b,_0x54a320,_0x58bc56,_0x39da26,_0x2ac08f){if(_0x54a320&&!_0x54a320['is']('documentSelection'))return!0x1;const _0x3d29ec=_0x2ac08f['getTableIfOnlyTableInContent'](_0x4a164b,_0x58bc56);if(!_0x3d29ec||!He(_0x3d29ec,void 0x0,_0x39da26))return!0x1;const _0x3a5530=_0x39da26['getSelectionAffectedTableCells'](_0x58bc56['document']['selection']);if(!_0x3a5530['length'])return!0x1;const _0x4217c8=_0x3a5530[0x0]['findAncestor']('table'),_0x1d89b8=_0x39da26['getRowIndexes'](_0x3a5530),_0x207e3c=_0x39da26['getColumnIndexes'](_0x3a5530),_0x5ba761={'startRow':_0x1d89b8['first'],'endRow':_0x1d89b8['last'],'startColumn':_0x207e3c['first'],'endColumn':_0x207e3c['last']};return 0x1==_0x3a5530['length']&&(_0x5ba761['endRow']+=_0x39da26['getRows'](_0x3d29ec)-0x1,_0x5ba761['endColumn']+=_0x39da26['getColumns'](_0x3d29ec)-0x1),He(_0x4217c8,_0x5ba761,_0x39da26);}(_0x32d93f,_0x1b048b,_0x178f3f['model'],_0x477dfb,_0x3a79b3)&&(_0x14c33a['stop'](),_0x3a6898={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x178f3f['model']['change'](()=>{_0x178f3f['model']['insertContent'](_0x18b3c8[0x0],_0x18b3c8[0x1],_0x18b3c8[0x2],{'forceDefaultExecution':!0x0});const _0x508ecf=_0x5011f0(),{rowInsertionRanges:_0x18026a,columnInsertionRanges:_0x1d4125,insertionRanges:_0x3883e2,deletionRanges:_0x34368b,cells:_0x5d09c9}=_0x3a6898;_0x18026a['length']&&_0x4868af['markMultiRangeInsertion'](_0x18026a,'tablePasteRow',{'tablePasteChainId':_0x508ecf}),_0x1d4125['length']&&_0x4868af['markMultiRangeInsertion'](_0x1d4125,'tablePasteColumn',{'tablePasteChainId':_0x508ecf}),_0x3883e2['length']&&(_0x4868af['markMultiRangeInsertion'](_0x3883e2,'tablePaste',{'tablePasteChainId':_0x508ecf,'skipNestingCheck':!0x0}),_0x3883e2['forEach'](_0x241379=>_0x241379['detach']?.())),_0x34368b['length']&&(_0x4868af['markMultiRangeDeletion'](_0x34368b,'tablePaste',{'tablePasteChainId':_0x508ecf,'skipNestingCheck':!0x0}),_0x34368b['forEach'](_0x1d80ab=>_0x1d80ab['detach']?.()));const _0x196692=_0x4868af['markMultiRangeBlockFormat'](_0x5d09c9['map'](({element:_0x1bf912})=>_0x1bf912),{'formatGroupId':_0x5011f0()},[],'tablePasteCell',{'tablePasteChainId':_0x508ecf});if(_0x196692){const _0x201b5d=_0x196692['getMarkers'](),_0x11e010=[];for(const {element:_0x211055,attributes:_0x5b1195}of _0x5d09c9){if(!_0x5b1195)continue;const _0x591e37=_0x178f3f['model']['createRangeOn'](_0x211055),_0x12504f=_0x201b5d['find'](_0x2ac909=>_0x2ac909['getRange']()['isEqual'](_0x591e37));_0x12504f&&_0x11e010['push']([_0x12504f['name'],_0x5b1195]);}_0x11e010['length']&&_0x196692['setAttribute']('markerAttributes',Object['fromEntries'](_0x11e010));}_0x3a6898=null;}));},{'priority':_0xc3ad2a['high']+0xa}),_0x99e24['on']('contentInsertion',()=>{_0x376159=!0x1;},{'priority':'lowest'}),_0x178f3f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x566606,_0x59fe05)=>{const [_0x594190,_0x52544c,,_0x51502a]=_0x59fe05;if(!_0x3a6898)return;_0x566606['stop']();const _0x4dfbdc=_0x594190['cell'],_0x3dd217=_0x52544c,_0x2583c6=De(_0x4dfbdc),_0x473270=De(_0x3dd217);_0x566606['return']=_0x4dfbdc;let _0xfdd777=null,_0x23194f=null;if(_0x473270||_0x2583c6){if(_0x2583c6&&!_0x473270){_0x51502a['remove'](_0x4dfbdc['getChild'](0x0));for(const _0x226254 of Array['from'](_0x3dd217['getChildren']()))_0x51502a['insert'](_0x226254,_0x4dfbdc,'end');const _0xc284a=_0x3a6898['rowInsertionIndexes']['includes'](_0x594190['row']),_0x31d16d=_0x3a6898['columnInsertionIndexes']['includes'](_0x594190['column']);_0xc284a||_0x31d16d||(_0xfdd777=_0x39b5cf['fromRange'](_0x51502a['createRangeIn'](_0x4dfbdc)));}else _0x473270&&!_0x2583c6&&(_0x23194f=_0x51502a['createRangeIn'](_0x4dfbdc));}else{const _0x5e0475=_0x51502a['createElement']('tableCellSuggestion'),_0xf86ac9=_0x51502a['createElement']('tableCellSuggestion');_0x51502a['wrap'](_0x51502a['createRangeIn'](_0x4dfbdc),_0xf86ac9),_0x51502a['insert'](_0x5e0475,_0x4dfbdc,0x0);for(const _0x5df6ad of Array['from'](_0x3dd217['getChildren']()))_0x51502a['insert'](_0x5df6ad,_0x5e0475,'end');_0xfdd777=_0x39b5cf['fromRange'](_0x51502a['createRangeOn'](_0x5e0475)),_0x23194f=_0x39b5cf['fromRange'](_0x51502a['createRangeOn'](_0xf86ac9));}const _0x1a9a12=Array['from'](_0x3dd217['getAttributes']())['filter'](([_0x8d57db])=>Oe['includes'](_0x8d57db));_0x3a6898['cells']['push']({'element':_0x4dfbdc,'attributes':_0x1a9a12['length']?Object['fromEntries'](_0x1a9a12):null}),_0xfdd777&&_0x3a6898['insertionRanges']['push'](_0xfdd777),_0x23194f&&_0x3a6898['deletionRanges']['push'](_0x23194f);},{'priority':'high'}),_0x477dfb['on']('insertColumns',(_0x4524b0,_0x287bc6)=>{const [_0x2fa10b,_0x532d7d={}]=_0x287bc6;if(!_0x3a6898)return;const _0x4b2ba1=_0x532d7d['at']||0x0,_0x374026=_0x532d7d['columns']||0x1;_0x3a6898['columnInsertionIndexes']=new Array(_0x374026)['fill'](_0x4b2ba1)['map']((_0x3583b0,_0x37ca6b)=>_0x3583b0+_0x37ca6b);for(const {cell:_0x46e359}of _0x477dfb['createTableWalker'](_0x2fa10b,{'startColumn':_0x4b2ba1,'endColumn':_0x4b2ba1+_0x374026-0x1}))_0x3a6898['columnInsertionRanges']['push'](_0x178f3f['model']['createRangeOn'](_0x46e359));},{'priority':'low'}),_0x477dfb['on']('insertRows',(_0x1d0392,_0x180a09)=>{const [_0x4c274f,_0x377db4={}]=_0x180a09;if(!_0x3a6898)return;const _0x49d8cf=_0x377db4['at']||0x0,_0x2ed148=_0x377db4['rows']||0x1;_0x3a6898['rowInsertionIndexes']=new Array(_0x2ed148)['fill'](_0x49d8cf)['map']((_0x3392f2,_0x55b2f1)=>_0x3392f2+_0x55b2f1);for(const {cell:_0x2f4e61}of _0x477dfb['createTableWalker'](_0x4c274f,{'startRow':_0x49d8cf,'endRow':_0x49d8cf+_0x2ed148-0x1}))_0x3a6898['rowInsertionRanges']['push'](_0x178f3f['model']['createRangeOn'](_0x2f4e61));},{'priority':'low'}),_0x4868af['descriptionFactory']['registerDescriptionCallback'](_0xd2b10e=>{if(_0xd2b10e['subType']&&_0xd2b10e['subType']['startsWith']('tablePaste'))return _0xd2b10e['previous']?{}:{'type':'insertion','content':c(_0x178f3f['locale'],'*Replace\x20table\x20cells*')};});const _0x55d2b0=()=>!0x1;for(const _0x244971 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4868af['_suggestionFactory']['registerCustomCallback']('insertion',_0x244971,'join',_0x55d2b0),_0x4868af['_suggestionFactory']['registerCustomCallback']('deletion',_0x244971,'join',_0x55d2b0),_0x4868af['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x244971,'join',_0x55d2b0);_0x4868af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x55d2b0),_0x4868af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x23d92a,_0x50fa93,_0x346c8d)=>{const _0x8332d4=_0x23d92a['map'](_0x4d15bc=>_0x4d15bc['getContainedElement']())['filter'](_0x99c93f=>_0x99c93f),_0xf50106=new Map(_0x8332d4['map'](_0x52b080=>[_0x52b080,null]));if(_0x3a6898){for(const {element:_0x1553dd,attributes:_0x11f359}of _0x3a6898['cells'])_0x11f359&&_0xf50106['set'](_0x1553dd,_0x11f359);}else{if(_0x346c8d&&_0x346c8d['markerAttributes'])for(const [_0x3dc600,_0x469cca]of Object['entries'](_0x346c8d['markerAttributes'])){const _0x427944=_0x178f3f['model']['markers']['get'](_0x3dc600),_0x155221=_0x427944?_0x427944['getRange']()['getContainedElement']():null;_0x155221&&_0xf50106['set'](_0x155221,_0x469cca);}}_0x178f3f['model']['change'](_0x3f0f4b=>{for(const [_0x10afd0,_0x340ea4]of _0xf50106)_0x3f0f4b['setAttributes']({...Ue,..._0x340ea4},_0x10afd0);});});const _0x3feb7c=(_0x4e715f,_0x5b30fa)=>{_0x4868af['_suggestionFactory']['registerCustomCallback'](_0x4e715f,'tablePaste',_0x5b30fa,(_0x3f6a33,_0x2b712e,_0x2c39db)=>{_0x178f3f['model']['change'](_0x3430af=>{const _0x2f9527=[];for(const _0x517fbb of _0x3f6a33){const _0x4ff912=_0x517fbb['start']['nodeAfter'];_0x4ff912['is']('element','tableCellSuggestion')&&_0x2f9527['push'](_0x4ff912);}_0x4868af['_suggestionFactory']['getSuggestionCallback'](_0x4e715f,null,_0x5b30fa)(_0x3f6a33,_0x2b712e,_0x2c39db);for(const _0x27cc36 of _0x2f9527)'$graveyard'!=_0x27cc36['root']['rootName']&&_0x3430af['unwrap'](_0x27cc36);});});};_0x3feb7c('insertion','accept'),_0x3feb7c('insertion','discard'),_0x3feb7c('deletion','accept'),_0x3feb7c('deletion','discard'),_0x4868af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4d4270=>{const _0x5f270b=_0x4d4270['map'](_0x38aeb7=>_0x38aeb7['getContainedElement']()),_0x5b5ac8=_0x5f270b[0x0]['findAncestor']('table'),{minRow:_0x5cb0d0,maxRow:_0x2332b1}=_0x18b08a['_getCoordsForCells'](_0x5f270b);_0x477dfb['removeRows'](_0x5b5ac8,{'at':_0x5cb0d0,'rows':_0x2332b1-_0x5cb0d0+0x1});}),_0x4868af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x372cc0=>{const _0x319506=_0x372cc0['map'](_0x15cff8=>_0x15cff8['getContainedElement']()),_0x5120d2=_0x319506[0x0]['findAncestor']('table'),{minColumn:_0xcd179,maxColumn:_0x1c2603}=_0x18b08a['_getCoordsForCells'](_0x319506);_0x477dfb['removeColumns'](_0x5120d2,{'at':_0xcd179,'columns':_0x1c2603-_0xcd179+0x1});});const _0x964f19=(_0x70664d,_0x1a5a20)=>{if(!_0x1a5a20['subType']||!_0x1a5a20['subType']['startsWith']('tablePaste'))return;const _0x1c25df=_0x1a5a20['attributes']['tablePasteChainId'],_0x3eb782=_0x4868af['getSuggestions']()['filter'](_0xf93f58=>_0xf93f58['isInContent']&&_0xf93f58['attributes']&&_0xf93f58['attributes']['tablePasteChainId']==_0x1c25df);_0x3eb782['length']&&_0x1a5a20['getAllAdjacentSuggestions']()['length']!=_0x3eb782['length']&&_0x3eb782['reduce']((_0x30945a,_0x2e46a6)=>(_0x30945a['next']=_0x2e46a6,_0x2e46a6['previous']=_0x30945a,_0x2e46a6));};function _0x5e7f89(_0x1f4e9d,_0x41bc16=!0x0){const {id:_0x29c1ae,authorId:_0x3a1b69}=_0x4868af['_splitMarkerName'](_0x1f4e9d['markerName']),_0x56501f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa70d42=_0x4868af['activeMarkers']['includes'](_0x1f4e9d['markerName']);return _0xa70d42&&_0x56501f['push']('ck-suggestion-marker--active'),{'classes':_0x56501f,'attributes':{'data-suggestion':_0x29c1ae,'data-author-id':_0x3a1b69},'priority':_0xa70d42&&_0x41bc16?0xbc2:0xbb8};}_0x4868af['on']('suggestionLoaded',_0x964f19,{'priority':'high'}),_0x4868af['on']('suggestionUnloaded',_0x964f19,{'priority':'high'}),_0x178f3f['model']['document']['registerPostFixer'](()=>{let _0x439a6f=!0x1;const _0x4815c0=Array['from'](_0x178f3f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c4b24,data:_0x4f1c41}of _0x4815c0){const {group:_0x396812,type:_0x5a3fec,id:_0x2625a0}=_0x4868af['_splitMarkerName'](_0x5c4b24);if('suggestion'!=_0x396812||'deletion'!=_0x5a3fec||_0x4f1c41['oldRange'])continue;if(!_0x4868af['hasSuggestion'](_0x2625a0))continue;const _0x3270df=_0x4868af['getSuggestion'](_0x2625a0)['getRanges'](),_0x3c8941=_0x178f3f['plugins']['get']('Users')['me'];for(const _0x9f657b of _0x4868af['getSuggestions']()){if(!_0x9f657b['isInContent']||_0x9f657b['author']!=_0x3c8941)continue;if('formatBlock'!=_0x9f657b['type']||'tablePasteCell'!=_0x9f657b['subType'])continue;if(_0x9f657b['getRanges']()['every'](_0x255467=>_0x3270df['some'](_0xde89cb=>_0xde89cb['containsRange'](_0x255467,!0x0)))){for(const _0x2125b0 of _0x9f657b['getAllAdjacentSuggestions']())_0x2125b0['isInContent']&&(_0x2125b0['discard'](),_0x439a6f=!0x0);}}}return _0x439a6f;}),_0x178f3f['model']['document']['registerPostFixer'](_0x5f1480=>{const _0x40a6de=_0x178f3f['commands']['get']('redo');if(!_0x40a6de||!_0x40a6de['_createdBatches']['has'](_0x5f1480['batch']))return!0x1;let _0x4b16ea=!0x1;const _0x5dfcd8=_0x178f3f['plugins']['get']('Users')['me'],_0x2e9814=_0x178f3f['model']['document']['differ']['getChanges'](),_0x319c3a=Array['from'](_0x178f3f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x55c2a8,data:_0x24e51e})=>{const {group:_0x1ebdd1,subType:_0x343344,authorId:_0x3a7dd2}=_0x4868af['_splitMarkerName'](_0x55c2a8);return'suggestion'==_0x1ebdd1&&'tablePaste'==_0x343344&&_0x3a7dd2==_0x5dfcd8['id']&&!_0x24e51e['oldRange'];});for(const _0x12126c of _0x2e9814){if('insert'!=_0x12126c['type']||'tableCellSuggestion'!=_0x12126c['name']||0x1!=_0x12126c['length'])continue;const _0x521e43=_0x5f1480['createRange'](_0x12126c['position'],_0x12126c['position']['getShiftedBy'](0x1));if(!_0x319c3a['find'](({data:_0x475948})=>_0x475948['newRange']['isEqual'](_0x521e43))){for(const {name:_0x229064,data:_0x372602}of _0x319c3a)if(_0x521e43['containsRange'](_0x372602['newRange'])){_0x5f1480['updateMarker'](_0x229064,{'range':_0x521e43}),_0x4b16ea=!0x0;break;}}}return _0x4b16ea;}),_0x178f3f['model']['document']['registerPostFixer'](_0x2d9e5b=>{let _0x4ceab0=!0x1;const _0x30c762=_0x178f3f['plugins']['get']('Users')['me'],_0x5d7e84=_0x4868af['getSuggestions']()['filter'](_0x116a2e=>_0x116a2e['isInContent']&&_0x116a2e['author']==_0x30c762),_0x59bdbb=new Set(),_0xb3ca8f=new Set();for(const _0x43a0dd of _0x5d7e84)if('tablePaste'==_0x43a0dd['subType'])for(const _0x2389d7 of _0x43a0dd['getMarkers']()){const _0x4cc6e3=_0x2389d7['getRange']()['getContainedElement']();if(_0x4cc6e3){if(_0x4cc6e3['is']('element','tableCellSuggestion')&&De(_0x4cc6e3)){_0x43a0dd['removeMarker'](_0x2389d7['name']),_0x59bdbb['add'](_0x4cc6e3),_0x4ceab0=!0x0;const _0x7ce39d=_0x4cc6e3['nextSibling'],_0x2c330c=_0x4cc6e3['previousSibling'],_0xbe2be4=_0x7ce39d&&_0x7ce39d['is']('element','tableCellSuggestion'),_0x23fc43=_0x2c330c&&_0x2c330c['is']('element','tableCellSuggestion');_0xbe2be4&&!_0x59bdbb['has'](_0x7ce39d)&&_0xb3ca8f['add'](_0x7ce39d),_0x23fc43&&!_0x59bdbb['has'](_0x2c330c)&&_0xb3ca8f['add'](_0x2c330c);}else _0x4cc6e3['is']('element','paragraph')&&_0x4cc6e3['isEmpty']&&(_0x43a0dd['removeMarker'](_0x2389d7['name']),_0x4ceab0=!0x0);}}else{if('tablePasteCell'==_0x43a0dd['subType']){if(!_0x43a0dd['attributes']||!_0x43a0dd['attributes']['tablePasteChainId'])continue;const _0x525672=_0x43a0dd['attributes']['markerAttributes'];if(_0x525672&&Object['keys'](_0x525672)['length'])continue;const _0xcba77f=_0x43a0dd['attributes']['tablePasteChainId'];let _0x3b81ff=!0x0,_0x5e8442=!0x0;for(const _0x3e6539 of _0x5d7e84)if(_0x3e6539['subType']&&_0x3e6539['subType']['startsWith']('tablePaste')){if(!_0x3e6539['attributes']['tablePasteChainId']){_0x5e8442=!0x1;break;}if(_0x3e6539['id']!=_0x43a0dd['id']&&_0x3e6539['attributes']['tablePasteChainId']==_0xcba77f){_0x3b81ff=!0x1;break;}}_0x5e8442&&_0x3b81ff&&(_0x43a0dd['removeMarkers'](),_0x4ceab0=!0x0);}}for(const _0x566ba0 of _0x59bdbb)_0x2d9e5b['remove'](_0x566ba0);for(const _0x39843a of _0xb3ca8f)_0x2d9e5b['unwrap'](_0x39843a);return _0x4ceab0;}),_0x178f3f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x46b4f9=>_0x5e7f89(_0x46b4f9),'converterPriority':'high'}),_0x178f3f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x57b85d,_0x5b791d)=>_0x5b791d['options']['showSuggestionHighlights']?_0x5e7f89(_0x57b85d,!0x1):null,'converterPriority':'high'});const _0x25a26a=_0x178f3f['editing']['view'];this['listenTo'](_0x25a26a['document'],'clipboardOutput',(_0x395e7b,_0x2cce4d)=>{const _0x5727f2=[];for(const _0xa4057a of _0x25a26a['createRangeIn'](_0x2cce4d['content'])['getItems']())_0xa4057a['is']('element','suggestion-td')&&_0x5727f2['push'](_0xa4057a);_0x25a26a['change'](_0x1d52d4=>{for(const _0x14805d of _0x5727f2)_0x1d52d4['move'](_0x1d52d4['createRangeIn'](_0x14805d),_0x1d52d4['createPositionBefore'](_0x14805d)),_0x1d52d4['remove'](_0x14805d);});});}}function De(_0x59fe12){if(_0x59fe12['isEmpty'])return!0x0;const _0x1d8956=_0x59fe12['getChild'](0x0);return _0x1d8956['is']('element','paragraph')&&_0x1d8956['isEmpty'];}function He(_0x8a288,_0x36abaf={},_0x40c4e5){for(const {isAnchor:_0x3d8764,cellHeight:_0x3f323f,cellWidth:_0x3d6de4}of _0x40c4e5['createTableWalker'](_0x8a288,{'includeAllSlots':!0x0,..._0x36abaf}))if(!_0x3d8764||0x1!=_0x3f323f||0x1!=_0x3d6de4)return!0x1;return!0x0;}class Bt extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x58b634=this['editor']['plugins']['get']('TrackChangesEditing');_0x58b634['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x58b634['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x58b634['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58b634['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x58b634['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x58b634['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x18b6f3,_0x3d741b){const _0x29ef61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x488bc8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x29394d=_0x3d741b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4cd98e=_0x488bc8['getColumnGroupElement'](_0x29394d);let _0x5da0a5=_0x4cd98e?_0x488bc8['getTableColumnsWidths'](_0x4cd98e):null,_0x95f2ca=_0x29394d['getAttribute']('tableWidth')||null;const _0x10fc06=_0x3d741b['tableWidth']||_0x95f2ca,_0xf7c488=_0x3d741b['columnWidths']||_0x5da0a5,_0x19b340=this['editor']['plugins']['get']('Users')['me'];for(const _0x574bba of _0x29ef61['getSuggestions']()){const _0x17437f=_0x574bba['getContainedElement']();if('resizeTable'===_0x574bba['subType']&&_0x17437f===_0x29394d){_0x574bba['author']!==_0x19b340&&_0x574bba['discard']();const _0x5db760=_0x574bba['data']['commandParams'];_0x95f2ca=_0x5db760[0x0]['tableWidth'],_0x5da0a5=_0x5db760[0x0]['columnWidths'];break;}}_0x18b6f3({'table':_0x29394d,'tableWidth':_0x10fc06,'columnWidths':_0xf7c488}),_0x29ef61['markBlockFormat'](_0x29394d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x95f2ca,'columnWidths':_0x5da0a5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x159a29){if('formatBlock'!=_0x159a29['type']&&'formatInline'!=_0x159a29['type'])return;const {data:_0x3be470}=_0x159a29;if(_0x3be470&&'resizeTable'===_0x3be470['formatGroupId']){const _0x3a1ad8='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3a1ad8)};}}}class xt extends _0x59f721{['afterInit'](){const _0x253993=this['editor'];_0x253993['plugins']['has']('Template')&&_0x253993['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x59f721{['afterInit'](){const _0x3ff5df=this['editor'];if(!_0x3ff5df['commands']['get']('insertTableOfContents'))return;_0x3ff5df['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x28c651=_0x3ff5df['plugins']['get']('TrackChangesEditing'),_0x3e1fdb=_0x3ff5df['locale'];_0x28c651['descriptionFactory']['registerElementLabel']('tableOfContents',_0x72bbf5=>c(_0x3e1fdb,'ELEMENT_TABLE_OF_CONTENTS',_0x72bbf5));}}class Rt extends _0x59f721{['afterInit'](){const _0x16c291=this['editor'];if(!_0x16c291['plugins']['has']('Title'))return;const _0x335b36=_0x16c291['plugins']['get']('TrackChangesEditing');_0x335b36['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x16c291['locale'],'ELEMENT_TITLE')),_0x16c291['model']['document']['registerPostFixer'](_0x355181=>{let _0x3624bf=!0x1;const _0x20cf22=Array['from'](_0x16c291['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39a0e8,data:_0x2beac1}of _0x20cf22){const {group:_0x515dda}=_0x335b36['_splitMarkerName'](_0x39a0e8);if('suggestion'!==_0x515dda||!_0x2beac1['newRange'])continue;const _0x26fff9=_0x2beac1['newRange'],_0x7e2097=_0x26fff9['end']['nodeBefore'];if(!_0x7e2097||!_0x7e2097['is']('element','title-content'))continue;if(!_0x26fff9['start']['isTouching'](_0x26fff9['end']))continue;const _0x58464f=_0x16c291['model']['schema']['getNearestSelectionRange'](_0x26fff9['end'],'forward');if(_0x58464f&&_0x58464f['isCollapsed']){const _0x159337=_0x355181['createRange'](_0x26fff9['start'],_0x58464f['start']);_0x159337['isEqual'](_0x26fff9)||(_0x355181['updateMarker'](_0x39a0e8,{'range':_0x159337}),_0x3624bf=!0x0);}_0x3624bf||(_0x355181['removeMarker'](_0x39a0e8),_0x3624bf=!0x0);}return _0x3624bf;});}}class Tt extends _0x59f721{['afterInit'](){const _0x28602b=this['editor'],_0x226ed9=_0x28602b['plugins']['get']('TrackChangesEditing');_0x28602b['plugins']['has']('Uploadcare')&&(_0x226ed9['enableCommand']('uploadcare'),_0x28602b['plugins']['has']('UploadcareImageEdit')&&(_0x226ed9['enableCommand']('uploadcareImageEdit'),_0x226ed9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x226ed9['registerBlockAttribute']('uploadcareImageId'),_0x226ed9['descriptionFactory']['registerDescriptionCallback'](_0x2dd645=>{if('attribute'!=_0x2dd645['type'])return;const {data:_0x48981d}=_0x2dd645;return _0x48981d&&'uploadcareImageId'==_0x48981d['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x59f721{['afterInit'](){const _0x171f3b=this['editor'],_0x446cff=_0x171f3b['plugins']['get']('TrackChangesEditing');_0x171f3b['plugins']['has']('UndoEditing')&&(_0x446cff['enableCommand']('undo'),_0x446cff['enableCommand']('redo'));}}class Ut extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x2a9b23=this['editor'];if(!_0x2a9b23['plugins']['has']('TableCaptionEditing'))return;_0x2a9b23['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x59f721{['tableProperties'];['tableCellProperties'];constructor(_0x37cad9){super(_0x37cad9),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 _0x405237=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6f2c12 of this['tableProperties'])_0x405237['enableCommand'](_0x6f2c12,(_0x1784f6,_0x3ba4af)=>{const _0x167e0d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6f2c12,[_0x167e0d],this['tableProperties'],'tableProperties',_0x1784f6,_0x3ba4af);});_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x405237['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3db157,_0x238fa2)=>this['handleDiscardAction'](this['tableProperties'],_0x3db157,_0x238fa2)),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x34a42a of this['tableCellProperties'])_0x405237['enableCommand'](_0x34a42a,(_0x5bdc35,_0x505718)=>{const _0x3cbd48=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x34a42a,_0x3cbd48,this['tableCellProperties'],'tableCellProperties',_0x5bdc35,_0x505718);});_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x405237['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2cdcec,_0xec5a2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2cdcec,_0xec5a2)),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x405237['descriptionFactory']['registerDescriptionCallback'](_0x5f3c6d=>this['handleSuggestionDescription'](_0x5f3c6d));}['_handlePropertyChange'](_0xccb3ec,_0xf493d4,_0x140623,_0x1f5f42,_0x407557,_0x5b7fbe){const _0x3d749a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b7fbe['batch'],()=>{for(const _0x5d662c of _0xf493d4){if(this['_getSuggestion'](_0x5d662c,_0x1f5f42))_0x407557(_0x5b7fbe);else{const _0x4603c3={};for(const _0x489f28 of _0x140623){const _0x3432fa=_0x5d662c['getAttribute'](_0x489f28);void 0x0!==_0x3432fa&&(_0x4603c3[_0x489f28]=_0x3432fa);}_0x407557(_0x5b7fbe),_0x3d749a['markBlockFormat'](_0x5d662c,{'commandParams':[_0x4603c3]},[],_0x1f5f42);}}});}['handleDiscardAction'](_0x1b0598,_0xc7e27b,_0x419a1e){const _0x3974d5=_0xc7e27b[0x0]['start']['nodeAfter'],_0x36f5b9=_0x419a1e['commandParams'][0x0];this['editor']['model']['change'](_0x31749a=>{for(const _0x513bd3 of _0x1b0598)void 0x0!==_0x36f5b9[_0x513bd3]?_0x31749a['setAttribute'](_0x513bd3,_0x36f5b9[_0x513bd3],_0x3974d5):_0x31749a['removeAttribute'](_0x513bd3,_0x3974d5);});}['handleSuggestionDescription'](_0x130494){if(_0x130494['data'])switch(_0x130494['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'](_0x474cea,_0x199046){const _0x27ef16=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x478202 of _0x27ef16['getSuggestions']({'skipNotAttached':!0x0})){const _0xe9fb0c=_0x478202['getContainedElement']();if(_0x478202['subType']===_0x199046&&_0xe9fb0c===_0x474cea)return _0x478202;}return null;}}const u='$elementName';class p extends _0x59f721{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x182af8,_0x3bd73a,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(_0x5b576f){super(_0x5b576f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x252d14,_0x586ac9,_0x2bcefb,_0x34c3e8)=>{this['_model']['change'](()=>{for(const _0x1408cb of[..._0x34c3e8,..._0x2bcefb])this['_model']['markers']['has'](_0x1408cb)&&_0x5b576f['editing']['reconvertMarker'](_0x1408cb);});}),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']=_0x5b576f['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(),_0x5b576f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b576f['config']['get']('trackChanges.trackFormatChanges'),_0x5b576f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b576f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5b576f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f8ca4=this['editor'],_0x123358=(_0x248417,_0x37f260)=>{if('attribute'!=_0x248417)return'ck-suggestion-marker-'+_0x248417;const _0x2f6f3e=_0x37f260['split']('|')[0x0];return this['_isBlockAttribute'](_0x2f6f3e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1f8ca4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x251e95=>{const {id:_0x55c9af,authorId:_0x393459,type:_0x1cca1e,subType:_0x4ae0cc}=this['_splitMarkerName'](_0x251e95['markerName']),_0x44d201=['ck-suggestion-marker',_0x123358(_0x1cca1e,_0x4ae0cc)];let _0x53e251=0xbb8;return this['activeMarkers']['includes'](_0x251e95['markerName'])&&(_0x44d201['push']('ck-suggestion-marker--active'),_0x53e251=0xbc2),'deletion'==_0x1cca1e&&(_0x53e251+=0x5),{'classes':_0x44d201,'attributes':{'data-suggestion':_0x55c9af,'data-author-id':_0x393459},'priority':_0x53e251};}}),_0x1f8ca4['conversion']['for']('dataDowncast')['add'](_0x54b8b9=>{_0x54b8b9['on']('addMarker:suggestion',(_0x4f311c,_0x48f7fe,_0x18973c)=>{if(!_0x18973c['options']['showSuggestionHighlights'])return;const _0x4a5ff7=_0x48f7fe['item'];if(!_0x4a5ff7)return;const _0xa4236=_0x18973c['mapper']['toViewElement'](_0x4a5ff7);_0x1f8ca4['model']['schema']['isObject'](_0x4a5ff7)&&_0xa4236&&!_0xa4236['getCustomProperty']('widget')&&_0xa4236['is']('containerElement')&&_0x22735a(_0xa4236,_0x18973c['writer']);},{'priority':'high'});}),_0x1f8ca4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x89c745,_0x2e1619)=>{if(!_0x2e1619['options']['showSuggestionHighlights'])return null;const {id:_0x224d50,authorId:_0x154a52,type:_0x21575a,subType:_0x1cbba9}=this['_splitMarkerName'](_0x89c745['markerName']);return{'classes':['ck-suggestion-marker',_0x123358(_0x21575a,_0x1cbba9)],'priority':0xbb8,'attributes':{'data-suggestion':_0x224d50,'data-author-id':_0x154a52}};}});const _0x31e8de=({showActiveMarkers:_0x20cb1c=!0x0,isAttributeSuggestion:_0x13c7ef=!0x1}={})=>(_0x4760f0,_0x32b2b0,_0xb7a2ab)=>{if(!_0x32b2b0['item'])return;const {id:_0x2fe371,authorId:_0x40d17e}=this['_splitMarkerName'](_0x32b2b0['markerName']);if(_0x13c7ef){const _0x4df824=this['_suggestions']['get'](_0x2fe371),_0x3d7ede=this['_getAttributeKey'](_0x4df824);if(!this['_isBlockAttribute'](_0x3d7ede))return;}if(_0x32b2b0['item']['is']('selection'))return void _0xb7a2ab['consumable']['consume'](_0x32b2b0['item'],_0x4760f0['name']);const _0x231678=_0xb7a2ab['mapper']['toViewElement'](_0x32b2b0['item']);if(_0x32b2b0['item']['is']('element')&&_0x1f8ca4['model']['schema']['isBlock'](_0x32b2b0['item'])&&!_0x231678['getCustomProperty']('addHighlight')){_0xb7a2ab['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x231678),_0xb7a2ab['writer']['setAttribute']('data-suggestion',_0x2fe371,_0x231678),_0xb7a2ab['writer']['setAttribute']('data-author-id',_0x40d17e,_0x231678),_0xb7a2ab['mapper']['bindElementToMarker'](_0x231678,_0x32b2b0['markerName']),_0x20cb1c&&(this['activeMarkers']['includes'](_0x32b2b0['markerName'])?_0xb7a2ab['writer']['addClass']('ck-suggestion-marker--active',_0x231678):_0xb7a2ab['writer']['removeClass']('ck-suggestion-marker--active',_0x231678));for(const _0x58de2c of _0x1f8ca4['model']['createRangeIn'](_0x32b2b0['item'])['getItems']())_0xb7a2ab['consumable']['consume'](_0x58de2c,_0x4760f0['name']);_0xb7a2ab['consumable']['consume'](_0x32b2b0['item'],_0x4760f0['name']);}};_0x1f8ca4['conversion']['for']('dataDowncast')['add'](_0x20952d=>{_0x20952d['on']('addMarker:suggestion:formatBlock',(_0x549f48,_0x11906c,_0x151124)=>{_0x151124['options']['showSuggestionHighlights']&&_0x31e8de({'showActiveMarkers':!0x1})(_0x549f48,_0x11906c,_0x151124);},{'priority':'highest'});}),_0x1f8ca4['conversion']['for']('dataDowncast')['add'](_0x5169a5=>{_0x5169a5['on']('addMarker:suggestion:attribute',(_0x6eef22,_0x5d802c,_0x19ffc4)=>{_0x19ffc4['options']['showSuggestionHighlights']&&_0x31e8de({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x6eef22,_0x5d802c,_0x19ffc4);},{'priority':'highest'});}),_0x1f8ca4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x365e20,_0x403eff)=>{if(_0x403eff['options']['showSuggestionHighlights']){const {id:_0xa648e5,authorId:_0x5d80f3}=this['_splitMarkerName'](_0x365e20);return _0x365e20['includes'](':split')||_0x365e20['includes'](':merge')?{'group':'suggestion','name':_0x365e20['substr'](0xb),'attributes':{'data-suggestion':_0xa648e5,'data-author-id':_0x5d80f3}}:null;}return{'group':'suggestion','name':_0x365e20['substr'](0xb)};}}),_0x1f8ca4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b0efd,{writer:_0x4bb0f2})=>{let _0x5e287e='suggestion:'+_0x4b0efd['getAttribute']('suggestion-type')+':'+_0x4b0efd['getAttribute']('id');return _0x4b0efd['getAttribute']('marker-count')&&(_0x5e287e+=':'+_0x4b0efd['getAttribute']('marker-count')),_0x4bb0f2['createElement']('$marker',{'data-name':_0x5e287e});}}),_0x1f8ca4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x33b77f=>{_0x33b77f['on']('addMarker:suggestion:formatBlock',_0x31e8de(),{'priority':'high'});}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x24897d=>{_0x24897d['on']('addMarker:suggestion:attribute',_0x31e8de({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x338ae9=>{_0x338ae9['on']('removeMarker:suggestion:formatBlock',(_0x297d02,_0x31fbfb,_0x499d61)=>{const _0xb6ab88=_0x499d61['mapper']['markerNameToElements'](_0x31fbfb['markerName']);if(_0xb6ab88){for(const _0x7192c of _0xb6ab88)_0x7192c['getCustomProperty']('addHighlight')||(_0x499d61['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x7192c),_0x499d61['writer']['removeAttribute']('data-suggestion',_0x7192c),_0x499d61['writer']['removeAttribute']('data-author-id',_0x7192c),_0x499d61['mapper']['unbindElementFromMarkerName'](_0x7192c,_0x31fbfb['markerName']));}},{'priority':'high'});}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x3ecd9e=>{_0x3ecd9e['on']('removeMarker:suggestion:attribute',(_0xee2861,_0xf20724,_0xa92a33)=>{const _0x2a30ad=_0xa92a33['mapper']['markerNameToElements'](_0xf20724['markerName']);if(!_0x2a30ad)return;const {id:_0x38ac21}=this['_splitMarkerName'](_0xf20724['markerName']),_0x571d24=this['_suggestions']['get'](_0x38ac21),_0x251700=this['_getAttributeKey'](_0x571d24);if(this['_isBlockAttribute'](_0x251700)){for(const _0x2f8b2e of _0x2a30ad)_0x2f8b2e['getCustomProperty']('addHighlight')||(_0xa92a33['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f8b2e),_0xa92a33['writer']['removeAttribute']('data-suggestion',_0x2f8b2e),_0xa92a33['writer']['removeAttribute']('data-author-id',_0x2f8b2e),_0xa92a33['mapper']['unbindElementFromMarkerName'](_0x2f8b2e,_0xf20724['markerName']));}},{'priority':'high'});}),_0x1f8ca4['model']['document']['registerPostFixer'](_0x3de0eb=>{let _0x46f1b2=!0x1;const _0x463e34=Array['from'](_0x1f8ca4['model']['document']['differ']['getChangedMarkers']()),_0x429c1e=new Set();for(const {name:_0x12fa3a,data:_0x1dd82f}of _0x463e34){const {group:_0xfd970f,type:_0x5ebf48,subType:_0x52ebef,id:_0x9552da}=this['_splitMarkerName'](_0x12fa3a);if('suggestion'!==_0xfd970f)continue;const _0x1e8440=this['_suggestions']['get'](_0x9552da);if(null!=_0x1dd82f['newRange']){'formatInline'==_0x5ebf48&&(_0x46f1b2=_0x46f1b2||Jt(_0x1dd82f['newRange'],_0x12fa3a,_0x3de0eb,_0x1f8ca4['model']['schema']));const _0x3a857d='attribute'==_0x5ebf48&&this['_isBlockAttribute'](_0x52ebef['split']('|')[0x0]);if(_0x1dd82f['newRange']['isCollapsed']||'$graveyard'==_0x1dd82f['newRange']['root']['rootName']||'formatBlock'==_0x5ebf48&&!Ht(_0x1dd82f['newRange'])||_0x3a857d&&!Ht(_0x1dd82f['newRange'])||'deletion'==_0x5ebf48&&!(!Lt(_0x34ef54=_0x1dd82f['newRange'])&&!function(_0x31ad71){return _0x31ad71['start']['parent']==_0x31ad71['end']['nodeBefore']&&_0x31ad71['start']['isAtEnd'];}(_0x34ef54)))_0x3de0eb['removeMarker'](_0x12fa3a),_0x46f1b2=!0x0;else{if(!_0x1e8440||!_0x1e8440['isInContent'])continue;if(_0x1dd82f['newRange']&&_0x1dd82f['oldRange']&&_0x1dd82f['newRange']['isEqual'](_0x1dd82f['oldRange']))continue;_0x429c1e['add'](_0x1e8440);}}}var _0x34ef54;return _0x429c1e['size']>0x0&&(_0x46f1b2=!!this['_joinWithAdjacentSuggestions'](_0x429c1e)||_0x46f1b2),_0x46f1b2;}),_0x1f8ca4['model']['document']['registerPostFixer'](_0xa0f901=>{let _0x58b436=!0x1;for(const _0x1b6dfd of _0x1f8ca4['model']['document']['differ']['getChanges']())if('insert'==_0x1b6dfd['type'])for(const _0x5c020d of this['_suggestions']['values']()){if(_0x5c020d['isMultiRange']||!_0x5c020d['isInContent'])continue;const _0x18ea6a='formatBlock'==_0x5c020d['type'],_0x31686b=this['_getAttributeKey'](_0x5c020d),_0xc79426=_0x31686b&&this['_isBlockAttribute'](_0x31686b);if(!_0x18ea6a&&!_0xc79426)continue;const _0xdf5cbc=_0x5c020d['getFirstRange']();if(_0xdf5cbc['start']['parent']!=_0xdf5cbc['end']['parent']&&!_0xdf5cbc['end']['isAtEnd']){const _0x135719=_0x1f8ca4['model']['createPositionAt'](_0xdf5cbc['start']['nodeAfter'],'end'),_0x4de165=_0x1f8ca4['model']['createRange'](_0xdf5cbc['start'],_0x135719);_0xa0f901['updateMarker'](_0x5c020d['getFirstMarker'](),{'range':_0x4de165}),_0x58b436=!0x0;}}return _0x58b436;}),_0x1f8ca4['model']['document']['registerPostFixer'](_0x48f2c0=>this['_processAttributeChanges'](_0x48f2c0)),_0x1f8ca4['model']['document']['registerPostFixer'](_0x57f741=>!_0x57f741['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x57f741)),_0x1f8ca4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f8ca4['model']['document']['on']('change:data',(_0x50905c,_0x1f1ec6)=>{if(!_0x1f1ec6['isLocal']||_0x1f1ec6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x384373=_0x1f8ca4['model']['document']['differ']['getChanges']();if(0x0==_0x384373['length'])return;const _0x152d69=[],_0x45d87d=_0x384373['filter'](_0x35218f=>'attribute'==_0x35218f['type']),_0x2f9624=_0x384373['filter'](_0x142f72=>'insert'==_0x142f72['type']&&'$text'!=_0x142f72['name']);for(const _0x5e5a06 of _0x45d87d)this['_isRegisteredAttribute'](_0x5e5a06['attributeKey'])&&_0x152d69['push']({'key':_0x5e5a06['attributeKey'],'newValue':_0x5e5a06['attributeNewValue'],'oldValue':_0x5e5a06['attributeOldValue'],'range':qt(_0x5e5a06['range'],_0x1f8ca4['model'])});for(const _0x195261 of _0x2f9624){if('rename'!=_0x195261['action']&&'refresh'!=_0x195261['action'])continue;const _0x587451=zt(_0x195261['position']['nodeAfter'],_0x1f8ca4['model']),_0x12ec6a=_0x195261['before'];'rename'==_0x195261['action']&&_0x152d69['push']({'key':u,'newValue':_0x195261['name'],'oldValue':_0x12ec6a['name'],'range':_0x587451});for(const [_0x2a70ce,_0x32a652]of _0x12ec6a['attributes']){if(!this['_isRegisteredAttribute'](_0x2a70ce))continue;const _0x3ffb56=_0x195261['attributes']['get'](_0x2a70ce);_0x32a652!==_0x3ffb56&&_0x152d69['push']({'key':_0x2a70ce,'newValue':_0x3ffb56,'oldValue':_0x32a652,'range':_0x587451});}for(const [_0x7b2f9b,_0x5f56f7]of _0x195261['attributes'])this['_isRegisteredAttribute'](_0x7b2f9b)&&(_0x12ec6a['attributes']['has'](_0x7b2f9b)||_0x152d69['push']({'key':_0x7b2f9b,'newValue':_0x5f56f7,'oldValue':null,'range':_0x587451}));}0x0!=_0x152d69['length']&&_0x1f8ca4['model']['enqueueChange'](_0x1f1ec6,_0x3baae8=>{const _0x7eee9d=_0x5011f0();for(const {range:_0x280a56,key:_0x3dd14f,oldValue:_0x526ee3,newValue:_0x3bd82e}of _0x152d69)this['markAttributeChange'](_0x280a56,_0x3dd14f,_0x526ee3,_0x3bd82e,{'groupId':_0x7eee9d});this['_reduceExistingSuggestions'](_0x3baae8,_0x152d69);});},{'priority':'lowest'}),_0x1f8ca4['model']['markers']['on']('update:suggestion',(_0x5be88a,_0x45c887,_0x27d2d6)=>{if(null==_0x27d2d6){const {id:_0x3fdf38}=this['_splitMarkerName'](_0x45c887['name']),_0x15fed1=this['_suggestions']['get'](_0x3fdf38);_0x15fed1&&_0x15fed1['addMarkerName'](_0x45c887['name']);}}),_0x1f8ca4['model']['document']['on']('change:data',()=>{const _0x447dd9=Array['from'](_0x1f8ca4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x38b487=>'suggestion'===this['_splitMarkerName'](_0x38b487['name'])['group']);if(0x0===_0x447dd9['length'])return;_0x447dd9['sort']((_0x2c9860,_0x1197ff)=>{const _0x2d1e10=_0x2c9860['data']['oldRange'],_0xa5169c=_0x1197ff['data']['oldRange'];return null===_0x2d1e10&&null===_0xa5169c?0x0:null===_0x2d1e10&&null!==_0xa5169c?-0x1:null!==_0x2d1e10&&null===_0xa5169c?0x1:_0x2d1e10['start']['isBefore'](_0xa5169c['start'])?-0x1:0x1;});const _0x55ccd3=new Set(),_0x306c4d=new Set();for(const {name:_0x2c4fda,data:_0x4c54a4}of _0x447dd9){const {id:_0x1b3d74}=this['_splitMarkerName'](_0x2c4fda);if(null===_0x4c54a4['oldRange']){const _0x10b65e=this['_handleNewSuggestionMarker'](_0x2c4fda);_0x306c4d['add'](_0x10b65e);}else{const _0x527f79=this['_suggestions']['get'](_0x1b3d74);null!==_0x4c54a4['newRange']||_0x527f79['isInContent']?(_0x55ccd3['add'](_0x527f79['head']),_0x306c4d['add'](_0x527f79)):this['_removeSuggestion'](_0x527f79);}}_0x306c4d['size']>0x0&&this['_refreshSuggestionsChain'](_0x306c4d);for(const _0x14969d of _0x55ccd3)this['fire']('suggestionChanged',_0x14969d);}),_0x1f8ca4['model']['on']('applyOperation',(_0x430a04,_0x3292f4)=>{const _0x107f0e=_0x3292f4[0x0];if(!this['_suggestions']['size'])return;if(!_0x107f0e['isDocumentOperation'])return;if(_0x107f0e['batch']['isUndo']||!_0x107f0e['batch']['isLocal'])return;let _0x4afa99,_0x3008d5;switch(_0x107f0e['type']){case'insert':_0x4afa99=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['position']),_0x3008d5=_0x4afa99['getShiftedBy'](_0x107f0e['howMany']);break;case'split':_0x4afa99=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['splitPosition']),_0x3008d5=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['moveTargetPosition']);break;case'move':_0x4afa99=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['targetPosition']),_0x3008d5=_0x4afa99['getShiftedBy'](_0x107f0e['howMany']);break;default:return;}const _0x2659f1=_0x1f8ca4['model']['createRange'](_0x4afa99,_0x3008d5);_0x1f8ca4['model']['change'](()=>{for(const {suggestion:_0x4ffe4e,meta:_0x24d0fe}of this['_findSuggestions'](_0x2659f1)){if(_0x4ffe4e['isMultiRange'])continue;if('formatInline'==_0x4ffe4e['type'])continue;const _0x21d6a0=this['_getAttributeKey'](_0x4ffe4e);if(_0x21d6a0&&this['_isBlockAttribute'](_0x21d6a0)&&'split'!=_0x107f0e['type'])continue;const _0x53e663=_0x4ffe4e['data']&&_0x4ffe4e['data']['multipleBlocks'];('formatBlock'!=_0x4ffe4e['type']||'split'==_0x107f0e['type']&&!_0x53e663)&&(_0x24d0fe['containsRangeInObject']||'insertion'==_0x4ffe4e['type']&&_0x24d0fe['isOwn']||_0x4ffe4e['getFirstRange']()['containsRange'](_0x2659f1)&&this['_breakSuggestionMarker'](_0x4ffe4e,_0x4afa99,_0x3008d5));}});},{'priority':'lowest'}),_0x1f8ca4['model']['on']('deleteContent',(_0xcd2a40,_0x54f42c)=>{const _0x2a40f2=_0x54f42c[0x0],_0x835aa0=_0x54f42c[0x1];if(_0x835aa0&&_0x835aa0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2a40f2['isCollapsed'])return;const _0x412d4d=_0x1f8ca4['model']['schema'],{start:_0xd8e56d,end:_0x54932a}=_0x2a40f2['getFirstRange'](),_0x4fdefb=_0xd8e56d['nodeAfter']&&_0x412d4d['isLimit'](_0xd8e56d['nodeAfter'])?null:_0x412d4d['getNearestSelectionRange'](_0xd8e56d,'forward'),_0x3d3c76=_0x54932a['nodeBefore']&&_0x412d4d['isLimit'](_0x54932a['nodeBefore'])?null:_0x412d4d['getNearestSelectionRange'](_0x54932a,'backward'),_0x10cb7b=_0x1f8ca4['model']['createRange'](_0x4fdefb?_0x4fdefb['start']:_0xd8e56d,_0x3d3c76?_0x3d3c76['end']:_0x54932a);_0x1f8ca4['model']['change'](_0x4a37a1=>{this['markDeletion'](_0x10cb7b);const _0x422f32=_0x1f8ca4['model']['schema']['getNearestSelectionRange'](_0x10cb7b['start']);_0x2a40f2['is']('documentSelection')?_0x4a37a1['setSelection'](_0x422f32):_0x2a40f2['setTo'](_0x422f32);}),_0xcd2a40['stop']();},{'priority':_0xc3ad2a['normal']+0xa}),_0x1f8ca4['model']['on']('insertContent',(_0x59fc53,_0x470327)=>{const _0x132e96=_0x470327[_0x470327['length']-0x1];_0x132e96&&_0x132e96['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f8ca4['model']['change'](()=>{let _0x413c4b=_0x1f8ca4['model']['insertContent'](_0x470327[0x0],_0x470327[0x1],_0x470327[0x2],{'forceDefaultExecution':!0x0});if(!_0x413c4b)return;_0x59fc53['return']=_0x413c4b['clone']();const _0xcc9a5d=_0x413c4b['end']['nodeBefore'],_0x5b63ae=_0x1f8ca4['model']['schema'];_0xcc9a5d&&_0x5b63ae['isBlock'](_0xcc9a5d)&&!_0x5b63ae['isObject'](_0xcc9a5d)&&(_0x413c4b=_0x1f8ca4['model']['createRange'](_0x413c4b['start'],_0x1f8ca4['model']['createPositionAt'](_0xcc9a5d,'end'))),this['markInsertion'](_0x413c4b);}),_0x59fc53['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3874df=new x(_0x1f8ca4,this['_suggestions']);_0x1f8ca4['commands']['add']('acceptSuggestion',_0x3874df),this['enableCommand']('acceptSuggestion');const _0x3f63a9=new O(_0x1f8ca4,this['_suggestions']);_0x1f8ca4['commands']['add']('discardSuggestion',_0x3f63a9),this['enableCommand']('discardSuggestion'),_0x1f8ca4['commands']['add']('acceptAllSuggestions',new R(_0x1f8ca4,_0x3874df,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f8ca4['commands']['add']('discardAllSuggestions',new R(_0x1f8ca4,_0x3f63a9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f8ca4['commands']['add']('acceptSelectedSuggestions',new E(_0x1f8ca4,_0x3874df,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f8ca4['commands']['add']('discardSelectedSuggestions',new E(_0x1f8ca4,_0x3f63a9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x8dfbe2=_0x1f8ca4['plugins']['get']('CommentsRepository');this['listenTo'](_0x8dfbe2,'addComment',(_0x517f8a,{threadId:_0x3152ed})=>{const _0x5a0499=this['_suggestions']['get'](_0x3152ed);_0x5a0499&&_0x5a0499['commentThread']&&0x1===_0x5a0499['commentThread']['length']&&this['_updateSuggestionData'](_0x3152ed,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x8dfbe2,'removeComment',(_0x31e69e,{threadId:_0x3c11ed})=>{const _0x3c7e55=this['_suggestions']['get'](_0x3c11ed);_0x3c7e55&&_0x3c7e55['commentThread']&&!_0x3c7e55['commentThread']['length']&&this['_updateSuggestionData'](_0x3c11ed,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1e7a3b){const _0x30e9f1=_0x58b508([0x4d,0x38,0x79,0x42,0x34,0x74,0x41,0x35,0x33,0x71,0x69,0x57,0x37,0x52,0x32,0x53,0x65,0x54,0x49,0x70,0x73,0x63,0x67,0x4b,0x77,0x75,0x4e,0x43,0x72,0x36,0x31,0x62,0x4c,0x6e,0x6a,0x64,0x30,0x50,0x5a,0x78,0x55,0x44,0x46,0x56,0x68,0x6b,0x51,0x47,0x6c,0x58,0x45,0x59,0x61,0x48,0x39,0x66,0x76,0x6d,0x4a,0x6f,0x7a,0x4f]),_0x54cd7f=0x1840e652,_0x5a416f=0x18478f02^_0x54cd7f,_0x38f162=window[_0x58b508([0x44,0x61,0x74,0x65])][_0x58b508([0x6e,0x6f,0x77])](),_0x582a60=_0x1e7a3b[_0x58b508([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcb6ad6=new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5467d9=>{_0x582a60[_0x58b508([0x6f,0x6e,0x63,0x65])](_0x58b508([0x72,0x65,0x61,0x64,0x79]),_0x5467d9);}),_0x427a30={[_0x58b508([0x6b,0x74,0x79])]:_0x58b508([0x45,0x43]),[_0x58b508([0x75,0x73,0x65])]:_0x58b508([0x73,0x69,0x67]),[_0x58b508([0x63,0x72,0x76])]:_0x58b508([0x50,0x2d,0x32,0x35,0x36]),[_0x58b508([0x78])]:_0x58b508([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]),[_0x58b508([0x79])]:_0x58b508([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]),[_0x58b508([0x61,0x6c,0x67])]:_0x58b508([0x45,0x53,0x32,0x35,0x36])},_0x5c9aef=_0x582a60[_0x58b508([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58b508([0x67,0x65,0x74])](_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35f583(){let _0xe5b84b,_0x153cab=null,_0x5a1db1=null;try{if(_0x5c9aef==_0x58b508([0x47,0x50,0x4c]))return _0x58b508([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe5b84b=_0x4f38df(),!_0xe5b84b)return _0x58b508([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe5b84b[_0x58b508([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a1db1=_0x481929(_0xe5b84b[_0x58b508([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe5b84b[_0x58b508([0x6a,0x74,0x69])])),await _0x1e39dd()?_0x8718bb()?_0x5961e1()?_0x58b508([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x20b95a()?(_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58b508([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x153cab=_0x32ceee(_0x58b508([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58b508([0x74,0x72,0x69,0x61,0x6c])&&(_0x153cab=_0x32ceee(_0x58b508([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4cdbc5()):_0x58b508([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58b508([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58b508([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58b508([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5961e1(){const _0x418151=[_0x58b508([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58b508([0x74,0x72,0x69,0x61,0x6c])][_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38f162/0x3e8:0xe10*_0x5a416f;return _0xe5b84b[_0x58b508([0x65,0x78,0x70])]<_0x418151;}function _0x8718bb(){const _0x53b3dc=_0xe5b84b[_0x58b508([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x53b3dc)return!0x1;if(_0x53b3dc[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x2a])))return!0x0;if(_0x53b3dc[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x54,0x43])))return!0x0;if(_0x53b3dc[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x52,0x54,0x43]))){if(_0x2f3f08())return!0x0;if(_0x59da3f()||_0x5547e1())return!0x0;}return!0x1;}function _0x20b95a(){const _0x23b4ab=_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23b4ab||0x0==_0x23b4ab[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57cd1a}=new URL(window[_0x58b508([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23b4ab[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cd1a))return!0x0;const _0x4d2672=_0x57cd1a[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e]));return _0x23b4ab[_0x58b508([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x182ec9=>_0x182ec9[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x2a])))[_0x58b508([0x6d,0x61,0x70])](_0x2a95dd=>_0x2a95dd[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e])))[_0x58b508([0x73,0x6f,0x6d,0x65])](_0x29d330=>_0x4d2672[_0x58b508([0x65,0x76,0x65,0x72,0x79])]((_0x3aa8ce,_0x361140)=>_0x29d330[_0x361140]===_0x3aa8ce||_0x29d330[_0x361140]===_0x58b508([0x2a])));}function _0x4cdbc5(){return _0x153cab&&_0x5a1db1?new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x253e10,_0x56109c)=>{_0x153cab[_0x58b508([0x74,0x68,0x65,0x6e])](_0x253e10,_0x56109c),_0x5a1db1[_0x58b508([0x74,0x68,0x65,0x6e])](_0x284d89=>{_0x284d89!=_0x58b508([0x56,0x61,0x6c,0x69,0x64])&&_0x253e10(_0x284d89);},_0x56109c);}):_0x153cab||_0x5a1db1||_0x58b508([0x56,0x61,0x6c,0x69,0x64]);}}function _0x481929(_0x225ffe,_0x3403d1){return new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa26281=>{if(_0x55dd9d())return _0xa26281(_0x58b508([0x56,0x61,0x6c,0x69,0x64]));_0x2374b2(),_0x582a60[_0x58b508([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58b508([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa61695=!0x1;const _0x5eab98=_0x5011f0();function _0x3583ac(_0x474132){return!!_0x474132&&(typeof _0x474132===_0x58b508([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x474132===_0x58b508([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x474132[_0x58b508([0x74,0x68,0x65,0x6e])]===_0x58b508([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x474132[_0x58b508([0x63,0x61,0x74,0x63,0x68])]===_0x58b508([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d0d0c(_0x49fc23){_0x3b9102(_0x49fc23)[_0x58b508([0x74,0x68,0x65,0x6e])](_0x3b9838=>{if(!_0x3b9838||_0x3b9838[_0x58b508([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58b508([0x6f,0x6b]))return _0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19e0a5(_0x1ac65a(_0x5eab98+_0x3403d1))!=_0x3b9838[_0x58b508([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58b508([0x56,0x61,0x6c,0x69,0x64]);})[_0x58b508([0x74,0x68,0x65,0x6e])](_0x51a329=>(_0x1516fa(),_0x51a329),()=>{const _0x47cc70=_0x553140();return null==_0x47cc70?(_0x1516fa(),_0x58b508([0x56,0x61,0x6c,0x69,0x64])):_0x58b508(_0x38f162-_0x47cc70>(0x3c4c6252^_0x54cd7f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58b508([0x74,0x68,0x65,0x6e])](_0xa26281)[_0x58b508([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa26281(_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24231c=0x187608d2^_0x54cd7f;function _0x1516fa(){const _0x4a8046=_0x58b508([0x6c,0x6c,0x63,0x74,0x2d])+_0x19e0a5(_0x1ac65a(_0x225ffe)),_0x464f67=_0x2cc887(_0x19e0a5(window[_0x58b508([0x4d,0x61,0x74,0x68])][_0x58b508([0x63,0x65,0x69,0x6c])](_0x38f162/_0x24231c)));window[_0x58b508([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58b508([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a8046,_0x464f67);}function _0x553140(){const _0x167a9d=_0x58b508([0x6c,0x6c,0x63,0x74,0x2d])+_0x19e0a5(_0x1ac65a(_0x225ffe)),_0x1bc950=window[_0x58b508([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58b508([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x167a9d);return _0x1bc950?window[_0x58b508([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cc887(_0x1bc950),0x10)*_0x24231c:null;}function _0x3b9102(_0x3b8da4){return new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x574195,_0x17b5cd)=>{_0x3b8da4[_0x58b508([0x74,0x68,0x65,0x6e])](_0x574195,_0x17b5cd),window[_0x58b508([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17b5cd,0x18413292^_0x54cd7f);});}}_0x582a60[_0x58b508([0x6f,0x6e])](_0x58b508([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x522e6a,_0x3678fa)=>{if(_0x3678fa[0x0]!=_0x225ffe)return _0xa26281(_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3678fa[0x1]={..._0x3678fa[0x1],[_0x58b508([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5eab98};},{[_0x58b508([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58b508([0x68,0x69,0x67,0x68])}),_0x582a60[_0x58b508([0x6f,0x6e])](_0x58b508([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1723ed=>{_0x3583ac(_0x1723ed[_0x58b508([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa61695=!0x0,_0x1d0d0c(_0x1723ed[_0x58b508([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58b508([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58b508([0x6c,0x6f,0x77])}),_0xcb6ad6[_0x58b508([0x74,0x68,0x65,0x6e])](()=>{_0xa61695||_0xa26281(_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55dd9d(){return _0x582a60[_0x58b508([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58b508([0x76,0x69,0x65,0x77])][_0x58b508([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58b508([0x61,0x75,0x74,0x6f]);}function _0x2374b2(){_0x582a60[_0x58b508([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58b508([0x76,0x69,0x65,0x77])][_0x58b508([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58b508([0x61,0x75,0x74,0x6f]);}}function _0x32ceee(_0x1b11c0){const _0x5f7e94=[new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499b63=>setTimeout(_0x499b63,0x1849d89e^_0x54cd7f)),_0xcb6ad6[_0x58b508([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d67d=>{let _0x94a65d=0x0;_0x582a60[_0x58b508([0x6d,0x6f,0x64,0x65,0x6c])][_0x58b508([0x6f,0x6e])](_0x58b508([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x80294a,_0x2666d3)=>{_0x2666d3[0x0][_0x58b508([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x94a65d++,_0x94a65d==(0x1840e7aa^_0x54cd7f)&&(_0x29d67d(),_0x80294a[_0x58b508([0x6f,0x66,0x66])]());});}))];return window[_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58b508([0x72,0x61,0x63,0x65])](_0x5f7e94)[_0x58b508([0x74,0x68,0x65,0x6e])](()=>_0x1b11c0);}async function _0x2cfc51(){await _0xcb6ad6,_0x582a60[_0x58b508([0x6d,0x6f,0x64,0x65,0x6c])][_0x58b508([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x534667,_0x582a60[_0x58b508([0x6d,0x6f,0x64,0x65,0x6c])][_0x58b508([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x534667,_0x582a60[_0x58b508([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58b508([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f3f08(){return _0x52955e(_0x58b508([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x17da55(_0x58b508([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x58b508([0x73,0x74,0x61,0x74,0x65])]==_0x58b508([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x59da3f(){return _0x52955e(_0x58b508([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 _0x5547e1(){return _0x52955e(_0x58b508([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x207a3b(_0x30e251){const _0x41723a=_0x42e282();_0x582a60[_0x41723a]=_0x58b508([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30e251,_0x30e251!=_0x58b508([0x56,0x61,0x6c,0x69,0x64])&&_0x2cfc51();}function _0x42e282(){const _0x25eabd=window[_0x58b508([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58b508([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58b508([0x6e,0x6f,0x77])]())[_0x58b508([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58b508([0x2e]),'');let _0x261265=_0x58b508([0x4d]);for(let _0x208772=0x0;_0x208772<_0x25eabd[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x208772+=0x2){let _0x733532=window[_0x58b508([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25eabd[_0x58b508([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x208772,_0x208772+0x2));_0x733532>=_0x30e9f1[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x733532-=_0x30e9f1[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x261265+=_0x30e9f1[_0x733532];}return _0x261265;}function _0x4f38df(){const _0x2a5f2e=_0x5c9aef[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e]));if(0x3!=_0x2a5f2e[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53256a(_0x2a5f2e[0x1]);function _0x53256a(_0x385e83){const _0x1465dc=_0x27fb6f(_0x385e83);return _0x1465dc&&_0x24fb40()?_0x1465dc:null;function _0x24fb40(){const _0x838bfa=_0x1465dc[_0x58b508([0x6a,0x74,0x69])],_0x4ef120=window[_0x58b508([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x838bfa[_0x58b508([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x838bfa[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x185c15={..._0x1465dc,[_0x58b508([0x6a,0x74,0x69])]:_0x838bfa[_0x58b508([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x838bfa[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x185c15[_0x58b508([0x76,0x63])],_0x1ac65a(_0x185c15)==_0x4ef120;}}}async function _0x1e39dd(){let _0xbe5338=!0x0;try{const _0x51158e=_0x5c9aef[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e])),[_0x37ca2a,_0x43010b,_0x3e26c6]=_0x51158e;return _0x47f73f(_0x37ca2a),await _0x46af90(_0x37ca2a,_0x43010b,_0x3e26c6),_0xbe5338;}catch{return!0x1;}function _0x47f73f(_0x167108){const _0x234457=_0x27fb6f(_0x167108);_0x234457&&_0x234457[_0x58b508([0x61,0x6c,0x67])]==_0x58b508([0x45,0x53,0x32,0x35,0x36])||(_0xbe5338=!0x1);}async function _0x46af90(_0x4657d6,_0x188fd7,_0x545d4c){const _0x56162a=window[_0x58b508([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58b508([0x66,0x72,0x6f,0x6d])](_0x48d247(_0x545d4c),_0x405a2b=>_0x405a2b[_0x58b508([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x105ee2=new window[(_0x58b508([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58b508([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4657d6+_0x58b508([0x2e])+_0x188fd7),_0x2e4bb1=window[_0x58b508([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58b508([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e4bb1)return;const _0x1d9c7f=await _0x2e4bb1[_0x58b508([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58b508([0x6a,0x77,0x6b]),_0x427a30,{[_0x58b508([0x6e,0x61,0x6d,0x65])]:_0x58b508([0x45,0x43,0x44,0x53,0x41]),[_0x58b508([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58b508([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58b508([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e4bb1[_0x58b508([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58b508([0x6e,0x61,0x6d,0x65])]:_0x58b508([0x45,0x43,0x44,0x53,0x41]),[_0x58b508([0x68,0x61,0x73,0x68])]:{[_0x58b508([0x6e,0x61,0x6d,0x65])]:_0x58b508([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d9c7f,_0x56162a,_0x105ee2)||(_0xbe5338=!0x1);}}function _0x27fb6f(_0x15e783){return _0x15e783[_0x58b508([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58b508([0x65,0x79]))?JSON[_0x58b508([0x70,0x61,0x72,0x73,0x65])](_0x48d247(_0x15e783)):null;}function _0x48d247(_0x54c032){return window[_0x58b508([0x61,0x74,0x6f,0x62])](_0x54c032[_0x58b508([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58b508([0x2b]))[_0x58b508([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58b508([0x2f])));}function _0x1ac65a(_0x49d986){let _0x4b9503=0x1505;function _0x4bd63d(_0x57af11){for(let _0x50240a=0x0;_0x50240a<_0x57af11[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50240a++){const _0x430ef0=_0x57af11[_0x58b508([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50240a);_0x4b9503=(_0x4b9503<<0x5)+_0x4b9503+_0x430ef0,_0x4b9503&=_0x4b9503;}}function _0x502918(_0x109d51){Array[_0x58b508([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x109d51)?_0x109d51[_0x58b508([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x502918):_0x109d51&&typeof _0x109d51==_0x58b508([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58b508([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x109d51)[_0x58b508([0x73,0x6f,0x72,0x74])]()[_0x58b508([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16f122,_0x70c158])=>{_0x4bd63d(_0x16f122),_0x502918(_0x70c158);}):_0x4bd63d(window[_0x58b508([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x109d51));}return _0x502918(_0x49d986),_0x4b9503>>>0x0;}function _0x19e0a5(_0x4b04de){return _0x4b04de[_0x58b508([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58b508([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58b508([0x30]));}function _0x2cc887(_0x4ae5fa){return _0x4ae5fa[_0x58b508([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58b508([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58b508([0x6a,0x6f,0x69,0x6e])]('');}function _0x52955e(_0x44e624){return _0x582a60[_0x58b508([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58b508([0x68,0x61,0x73])](_0x44e624);}function _0x17da55(_0x175033){return _0x582a60[_0x58b508([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58b508([0x67,0x65,0x74])](_0x175033);}function _0x534667(){}function _0x58b508(_0x569c2e){return _0x569c2e['map'](_0x2afc6f=>String['fromCharCode'](_0x2afc6f))['join']('');}_0x207a3b(await _0x35f583());}(this);}set['adapter'](_0x2b7aed){if(this['_adapter'])throw new _0x280f1c('track-changes-adapter-already-set',this);this['_adapter']=_0x2b7aed;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ad23b=!0x1,toJSON:_0x33f6e5=!0x1}={}){const _0x32e51b=[];for(const _0x37cbf7 of this['_suggestions']['values']())_0x2ad23b&&!_0x37cbf7['isInContent']||_0x32e51b['push'](_0x37cbf7);return _0x33f6e5?_0x32e51b['map'](_0x4919b6=>_0x4919b6['toJSON']()):_0x32e51b;}['getSuggestion'](_0x4c1d11){const _0x4280e3=this['_suggestions']['get'](_0x4c1d11);if(!_0x4280e3)throw new _0x280f1c('track-changes-suggestion-not-found',this);return _0x4280e3;}['hasSuggestion'](_0x28caf0){return this['_suggestions']['has'](_0x28caf0);}['addSuggestionData'](_0x4c9275){const {authorId:_0x545abc,id:_0x37e56f,originalSuggestionId:_0x442c5e,attributes:_0x4a7879}=_0x4c9275,[_0x382f33,_0x3fb68d]=_0x4c9275['type']['split'](':'),_0x4992d4=this['_suggestions']['get'](_0x37e56f)||this['_createSuggestion'](_0x382f33,_0x3fb68d,_0x37e56f,_0x545abc,_0x4a7879,_0x442c5e);if(this['_addThreadToSuggestion'](_0x4992d4),this['_checkSuggestionCorrectness'](_0x4992d4,_0x382f33,_0x3fb68d||null,_0x545abc),_0x4992d4['createdAt']=_0x4c9275['createdAt'],_0x4992d4['_isDataLoaded']=!0x0,_0x4a7879&&_0x4a7879['@external']){const _0x1538ed=_0x4a7879['@external'],_0x2c8edd=this['_getExternalAuthor'](_0x1538ed['authorName']);_0x4992d4['authoredAt']=_0x1538ed['createdAt'],_0x4992d4['author']=_0x2c8edd,_0x4992d4['isExternal']=!0x0;}else _0x4992d4['authoredAt']=_0x4c9275['createdAt'];switch(_0x4c9275['data']&&(_0x4992d4['data']=_0x4c9275['data']),_0x4c9275['attributes']&&(_0x4992d4['attributes']=_0x4c9275['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4992d4['_saved']=!0x0),this['_suggestionState']['get'](_0x4992d4)){case'notReady':this['_suggestionState']['set'](_0x4992d4,'dataReady');break;case'markerReady':_0x4992d4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4992d4])),this['_refreshSuggestionsChain'](new Set([_0x4992d4])),this['_suggestionState']['set'](_0x4992d4,'ready'),this['fire']('suggestionLoaded',_0x4992d4)):this['_suggestionState']['set'](_0x4992d4,'removed');}return _0x4992d4;}['acceptSuggestion'](_0x367b43){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2733d3 of _0x367b43['getAllAdjacentSuggestions']())_0x2733d3['accept']();});});}['discardSuggestion'](_0x312515){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2cbf94 of _0x312515['getAllAdjacentSuggestions']())_0x2cbf94['discard']();});});}['enableCommand'](_0x846e44,_0x2c23f9){const _0x284336=this['editor']['commands']['get'](_0x846e44);if(!_0x284336)throw new _0x280f1c('track-changes-command-not-found',this,{'commandName':_0x846e44});if(this['_enabledCommands']['has'](_0x284336))throw new _0x280f1c('track-changes-enable-command-twice',this,{'commandName':_0x846e44});this['_enabledCommands']['add'](_0x284336),_0x2c23f9&&_0x284336['on']('execute',(_0x11ccde,_0xc3c0e0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xc3c0e0['length']>0x0&&_0xc3c0e0[_0xc3c0e0['length']-0x1]&&_0xc3c0e0[_0xc3c0e0['length']-0x1]['forceDefaultExecution']?_0xc3c0e0['pop']():(_0x11ccde['return']=_0x2c23f9((..._0x57232c)=>_0x284336['execute'](..._0x57232c,{'forceDefaultExecution':!0x0}),..._0xc3c0e0),_0x11ccde['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1343aa){let _0x2c1ba4,_0x43a838;const _0x5826ed=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2c1ba4=_0x1343aa();}catch(_0x369752){_0x43a838=_0x369752;}return _0x5826ed||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x43a838&&_0x280f1c['rethrowUnexpectedError'](_0x43a838,this),_0x2c1ba4;}['markInsertion'](_0x347bb2,_0x408e64=null,_0x18e330={}){if(_0x347bb2['isCollapsed'])return null;const _0x5f40fd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x18e330['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x502c0a,meta:_0x3ad36d}of this['_findSuggestions'](_0x347bb2,'insertion'))if(_0x3ad36d['isOwn']){if(!_0x3ad36d['isNextTo']){if(_0x3ad36d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x502c0a,_0x18e330))continue;return _0x502c0a;}if(Xt(_0x502c0a,_0x18e330))return _0x502c0a;this['_breakSuggestionMarker'](_0x502c0a,_0x347bb2['start'],_0x347bb2['end']);break;}if(_0x408e64==_0x502c0a['subType']&&Xt(_0x502c0a,_0x18e330)){const _0x36b15a=_0x502c0a['getFirstRange']();return _0x36b15a['start']['isEqual'](_0x347bb2['end'])?this['_setSuggestionRange'](_0x502c0a,this['_model']['createRange'](_0x347bb2['start'],_0x36b15a['end'])):this['_setSuggestionRange'](_0x502c0a,this['_model']['createRange'](_0x36b15a['start'],_0x347bb2['end'])),_0x502c0a;}}const _0x2dab48=_0x5011f0(),_0x55aa1d=_0x5f40fd['id'],_0x1751b4=_0x408e64?'insertion:'+_0x408e64:'insertion',_0x45c6cc=this['_setSuggestionData']({'id':_0x2dab48,'type':_0x1751b4,'createdAt':new Date(),'authorId':_0x55aa1d,'attributes':_0x18e330});return this['_addSuggestionMarker'](_0x1751b4,_0x2dab48,_0x55aa1d,_0x347bb2),_0x45c6cc;}['markMultiRangeInsertion'](_0xf718ff,_0x141f0f='multi',_0x4481d5={}){const _0x35c3ef=this['editor']['plugins']['get']('Users')['me'],_0x3fe373=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x141f0f,'join');this['_trackingSessionId']&&(_0x4481d5['trackingSessionId']=this['_trackingSessionId']);for(const _0x14d010 of this['getSuggestions']())if(_0x14d010['author']['id']==_0x35c3ef['id']&&'insertion'==_0x14d010['type']&&_0x14d010['subType']==_0x141f0f&&Xt(_0x14d010,_0x4481d5)&&(_0x3fe373(_0x14d010['getRanges'](),_0xf718ff)||_0x3fe373(_0xf718ff,_0x14d010['getRanges']()))){for(const _0x6c82d8 of _0xf718ff)_0x14d010['addRange'](_0x6c82d8);return _0x14d010;}for(const {suggestion:_0xd125b4,meta:_0x5b0043}of this['_findSuggestions'](_0xf718ff,'insertion')){if(!_0x5b0043['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5b0043['containsRangeInObject'])continue;if(!Xt(_0xd125b4,_0x4481d5))continue;let _0x448315=!0x0;for(const _0x54ccbe of _0xd125b4['getRanges']())for(const _0x357655 of _0xf718ff)if(!_0x54ccbe['containsRange'](_0x357655)){_0x448315=!0x1;break;}if(_0x448315)return _0xd125b4;}const _0x2e5eda=_0x5011f0(),_0x291645=_0x35c3ef['id'],_0x5d6cbc='insertion:'+_0x141f0f,_0x494e0a=this['_setSuggestionData']({'id':_0x2e5eda,'type':_0x5d6cbc,'createdAt':new Date(),'authorId':_0x291645,'attributes':_0x4481d5});for(const _0x15e51a of _0xf718ff)this['_addSuggestionMarker'](_0x5d6cbc,_0x2e5eda,_0x291645,_0x15e51a,o['getMultiRangeId']());return _0x494e0a;}['markInlineFormat'](_0x4b9a94,_0x363126,_0x511eea=null,_0x33b91e={}){if(_0x511eea=_0x511eea||Kt(_0x363126),_0x4b9a94['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x33b91e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2379d0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x511eea,'accept');return this['forceDefaultExecution'](()=>_0x2379d0([_0x4b9a94],_0x363126,_0x33b91e)),null;}const _0x55fce1=this['editor']['plugins']['get']('Users')['me'],_0x254784=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2b6fae,meta:_0x1b81d7}of this['_findSuggestions'](_0x4b9a94,'insertion'))_0x1b81d7['isOwn']&&!_0x1b81d7['isInsideObject']&&_0x254784['push'](..._0x2b6fae['getRanges']());}const _0x404b36=function(_0x12a379,_0x9a3579){const _0x5b1414=[];for(const _0x56f512 of _0x9a3579){const _0xcd6c8d=_0x12a379['getIntersection'](_0x56f512);_0xcd6c8d&&_0x5b1414['push'](_0xcd6c8d);}return _0x5b1414;}(_0x4b9a94,_0x254784),_0x6eb6a3=function(_0x582fd1,_0x4b1d0a){const _0x500245=[_0x582fd1];for(const _0x644988 of _0x4b1d0a){let _0x482ada=0x0;for(;_0x482ada<_0x500245['length'];){const _0x173217=_0x500245[_0x482ada]['getDifference'](_0x644988);_0x500245['splice'](_0x482ada,0x1,..._0x173217),_0x482ada+=_0x173217['length'];}}return _0x500245;}(_0x4b9a94,_0x254784);_0x404b36['length']&&this['_model']['change'](()=>{for(const _0x18e3d7 of _0x404b36){const _0x5079e8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x511eea,'accept');this['forceDefaultExecution'](()=>_0x5079e8([_0x18e3d7],_0x363126,_0x33b91e));}});for(const _0x4ddf1a of _0x6eb6a3){let _0x2c61a5=null,_0x191956=_0x4ddf1a['start'],_0x19847c=_0x4ddf1a['end'];for(const {suggestion:_0x2d1760,meta:_0x17e4de}of this['_findSuggestions'](_0x4ddf1a,'formatInline')){if(!_0x17e4de['isOwn'])continue;if(_0x2d1760['subType']!=_0x511eea)continue;if(!Xt(_0x2d1760,_0x33b91e))continue;const _0x8ea8d6=_0x2d1760['getFirstRange']();if(_0x8ea8d6['containsRange'](_0x4ddf1a,!0x0))return null;_0x191956=_0x191956['isBefore'](_0x8ea8d6['start'])?_0x191956:_0x8ea8d6['start'],_0x19847c=_0x19847c['isAfter'](_0x8ea8d6['end'])?_0x19847c:_0x8ea8d6['end'],_0x2c61a5?_0x8ea8d6['start']['isBefore'](_0x2c61a5['getFirstRange']()['start'])?(_0x2c61a5['removeMarkers'](),_0x2c61a5=_0x2d1760):_0x2d1760['removeMarkers']():_0x2c61a5=_0x2d1760;}const _0x3e56bc=this['_model']['createRange'](_0x191956,_0x19847c);if(_0x2c61a5)this['_setSuggestionRange'](_0x2c61a5,_0x3e56bc);else{const _0x1b07c5=_0x5011f0(),_0x46ba45=_0x55fce1['id'];this['_setSuggestionData']({'id':_0x1b07c5,'type':'formatInline:'+_0x511eea,'data':_0x363126,'createdAt':new Date(),'authorId':_0x46ba45,'attributes':_0x33b91e}),this['_addSuggestionMarker']('formatInline:'+_0x511eea,_0x1b07c5,_0x46ba45,_0x3e56bc);}}return null;}['markBlockFormat'](_0xfda663,_0x1a6afd,_0x1b84d7=[],_0x43ad8f=null,_0xe2c120={}){_0x1a6afd['formatGroupId']||(_0x1a6afd['formatGroupId']=_0x1a6afd['commandName']),_0x1a6afd['multipleBlocks']=_0xfda663['is']('range'),_0x43ad8f=_0x43ad8f||Kt(_0x1a6afd);const _0x214e75=_0x1b84d7['map'](_0x22fbf5=>zt(_0x22fbf5,this['_model'])),_0x291e03=_0xfda663['is']('range')?_0xfda663:zt(_0xfda663,this['_model']);if(this['_trackingSessionId']&&(_0xe2c120['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x39868a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43ad8f,'accept');return this['forceDefaultExecution'](()=>_0x39868a([_0x291e03],_0x1a6afd,_0xe2c120)),null;}_0x214e75['push'](_0x291e03);let _0x1c91d9=!0x0;for(const _0x10f9f5 of _0x214e75)if(!this['_rangeIsInLocalUserInsertion'](_0x10f9f5)){_0x1c91d9=!0x1;break;}if(_0x1c91d9&&'always'!==this['_trackFormatChanges']){const _0x4a4d92=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43ad8f,'accept');return this['forceDefaultExecution'](()=>_0x4a4d92([_0x291e03],_0x1a6afd,_0xe2c120)),null;}let _0x4d5859=null,_0x298c44=_0x291e03['start'],_0x5411df=_0x291e03['end'];for(const {suggestion:_0x4ec79b,meta:_0x30d214}of this['_findSuggestions'](_0x291e03,'formatBlock')){if(!_0x30d214['isOwn'])continue;if(_0x30d214['isNextTo']||_0x30d214['containsRangeInObject']||_0x30d214['isInsideObject'])continue;if(_0x4ec79b['data']['formatGroupId']!=_0x1a6afd['formatGroupId'])continue;if(!Xt(_0x4ec79b,_0xe2c120))continue;const _0x1f49ef=_0x4ec79b['getFirstRange']();if(_0x4ec79b['subType']==_0x43ad8f){if(_0x1f49ef['containsRange'](_0x291e03,!0x0))return null;_0x298c44=_0x298c44['isBefore'](_0x1f49ef['start'])?_0x298c44:_0x1f49ef['start'],_0x5411df=_0x5411df['isAfter'](_0x1f49ef['end'])?_0x5411df:_0x1f49ef['end'],_0x4d5859?_0x1f49ef['start']['isBefore'](_0x4d5859['getFirstRange']()['start'])?(_0x4d5859['removeMarkers'](),_0x4d5859=_0x4ec79b):_0x4ec79b['removeMarkers']():_0x4d5859=_0x4ec79b;}else{const _0xf28612=_0x291e03['getIntersection'](_0x1f49ef);this['_cutOutSuggestionMarker'](_0x4ec79b,_0xf28612);}}const _0x5647b5=this['editor']['plugins']['get']('Users')['me'],_0x308a65=_0x5011f0(),_0xdc3533=_0x5647b5['id'];if(_0x4d5859)return this['_setSuggestionRange'](_0x4d5859,this['_model']['createRange'](_0x298c44,_0x5411df)),_0x4d5859;{const _0x8065a8=this['_setSuggestionData']({'id':_0x308a65,'type':'formatBlock:'+_0x43ad8f,'data':_0x1a6afd,'createdAt':new Date(),'authorId':_0xdc3533,'attributes':_0xe2c120});return this['_addSuggestionMarker']('formatBlock:'+_0x43ad8f,_0x308a65,_0xdc3533,this['_model']['createRange'](_0x298c44,_0x5411df)),_0x8065a8;}}['markMultiRangeBlockFormat'](_0x2aa7ef,_0x47ba00,_0x4871b1=[],_0x2aa847=null,_0x18c91f={}){_0x47ba00['formatGroupId']||(_0x47ba00['formatGroupId']=_0x47ba00['commandName']);const _0x339c8f=_0x2aa7ef[0x0];_0x47ba00['multipleBlocks']=_0x339c8f['is']('range'),_0x2aa847=_0x2aa847||Kt(_0x47ba00);const _0x8766a3=_0x4871b1['map'](_0x28cce4=>zt(_0x28cce4,this['_model'])),_0x17726d=_0x339c8f['is']('range')?_0x2aa7ef:_0x2aa7ef['map'](_0x479d79=>zt(_0x479d79,this['_model']));if(this['_trackingSessionId']&&(_0x18c91f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x11a7b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa847,'accept');return this['forceDefaultExecution'](()=>_0x11a7b9(_0x17726d,_0x47ba00,_0x18c91f)),null;}_0x8766a3['push'](..._0x17726d);let _0x2f619a=!0x0;for(const _0xf9dedc of _0x8766a3)if(!this['_rangeIsInLocalUserInsertion'](_0xf9dedc)){_0x2f619a=!0x1;break;}if(_0x2f619a&&'always'!==this['_trackFormatChanges']){const _0x3d0dce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa847,'accept');return this['forceDefaultExecution'](()=>_0x3d0dce(_0x17726d,_0x47ba00,_0x18c91f)),null;}const _0x23a81b=this['editor']['plugins']['get']('Users')['me'];for(const _0x373e72 of this['getSuggestions']()){if(_0x373e72['author']['id']!=_0x23a81b['id'])continue;if('formatBlock'!=_0x373e72['type']||_0x373e72['data']['formatGroupId']!=_0x47ba00['formatGroupId'])continue;if(!Xt(_0x373e72,_0x18c91f))continue;const _0x1a342f=_0x373e72['subType']==_0x2aa847;for(let _0x15a605=0x0;_0x15a605<_0x17726d['length'];_0x15a605++){const _0x46924b=_0x17726d[_0x15a605];for(const _0x4f7283 of _0x373e72['getMarkers']()){const _0x19fdc3=_0x4f7283['getRange']();if(_0x46924b['isEqual'](_0x19fdc3)){_0x1a342f?(_0x17726d['splice'](_0x15a605,0x1),_0x15a605--):_0x373e72['removeMarker'](_0x4f7283['name']);break;}}}}if(0x0==_0x17726d['length'])return null;const _0x3141f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa847,'join');for(const _0x4fa43f of this['getSuggestions']())if(_0x4fa43f['author']['id']==_0x23a81b['id']&&'formatBlock'==_0x4fa43f['type']&&_0x4fa43f['data']['formatGroupId']==_0x47ba00['formatGroupId']&&_0x4fa43f['subType']==_0x2aa847&&Xt(_0x4fa43f,_0x18c91f)&&(_0x3141f7(_0x4fa43f['getRanges'](),_0x17726d)||_0x3141f7(_0x17726d,_0x4fa43f['getRanges']()))){for(const _0x5db278 of _0x17726d)_0x4fa43f['addRange'](_0x5db278);return _0x4fa43f;}const _0x290f15=_0x5011f0(),_0x4d5d9b=_0x23a81b['id'],_0x4dcf4e='formatBlock:'+_0x2aa847,_0x2f0820=this['_setSuggestionData']({'id':_0x290f15,'type':_0x4dcf4e,'data':_0x47ba00,'createdAt':new Date(),'authorId':_0x4d5d9b,'attributes':_0x18c91f});for(const _0x49bb2d of _0x17726d)this['_addSuggestionMarker'](_0x4dcf4e,_0x290f15,_0x4d5d9b,_0x49bb2d,o['getMultiRangeId']());return _0x2f0820;}['markDeletion'](_0x124f04,_0x315f72=null,_0xa2c51b={}){if(_0x124f04['isCollapsed'])return null;const _0x2450b9=this['editor']['plugins']['get']('Users')['me'],_0x3deefb=new _0x39b5cf(_0x124f04['start'],_0x124f04['end']);this['_trackingSessionId']&&(_0xa2c51b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x561491,meta:_0x37fb8d}of this['_findSuggestions'](_0x3deefb,'insertion'))if(_0x37fb8d['isOwn']&&!_0x37fb8d['isNextTo']){if(_0x561491['isMultiRange']){const _0x45f931=_0x561491['getRanges']()['filter'](_0x3e1e98=>'$graveyard'!=_0x3e1e98['root']['rootName']);_0x45f931['every'](_0x168a06=>_0x3deefb['containsRange'](_0x168a06,!0x0))&&_0x561491['discard']();if(_0x45f931['some'](_0x199f76=>_0x199f76['containsRange'](_0x3deefb,!0x0))){const _0x1a83cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x315f72,'accept');return this['forceDefaultExecution'](()=>_0x1a83cf([_0x3deefb],null,_0xa2c51b)),null;}}else{const _0x4959f8=_0x3deefb['getIntersection'](_0x561491['getFirstRange']());null!==_0x4959f8&&_0x561491['_onDiscard']([_0x4959f8],null,_0xa2c51b);}}if(_0x3deefb['detach'](),_0x3deefb['isCollapsed']||'$graveyard'==_0x3deefb['root']['rootName'])return null;let _0x26e8e2=null,_0x53c4a3=_0x3deefb['start'],_0x50dc91=_0x3deefb['end'];const _0x21a876=this['_findSuggestions'](_0x3deefb,'deletion');for(const {suggestion:_0x505dc5,meta:_0x5df3d8}of _0x21a876){const _0x327aff=this['_model']['createRange'](_0x53c4a3,_0x50dc91);if(_0x5df3d8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5df3d8['containsRangeInObject']&&!_0x5df3d8['isInsideObject'])){if(_0x505dc5['isMultiRange']){if(!Xt(_0x505dc5,_0xa2c51b))continue;let _0x75c5d9=!0x0;for(const _0x3908f4 of _0x505dc5['getRanges']()){if(_0x3908f4['containsRange'](_0x327aff,!0x0))return _0x505dc5;_0x327aff['containsRange'](_0x3908f4)||(_0x75c5d9=!0x1);}_0x75c5d9&&_0x505dc5['discard']();}else{const _0x1f8fec=_0x505dc5['getFirstRange']();if(_0x1f8fec['containsRange'](_0x327aff,!0x0))return _0x505dc5;if(!Xt(_0x505dc5,_0xa2c51b)){_0x327aff['containsRange'](_0x1f8fec)?_0x505dc5['removeMarkers']():_0x1f8fec['containsPosition'](_0x53c4a3)?_0x53c4a3=_0x1f8fec['end']:_0x1f8fec['containsPosition'](_0x50dc91)&&(_0x50dc91=_0x1f8fec['start']);continue;}_0x53c4a3=_0x53c4a3['isBefore'](_0x1f8fec['start'])?_0x53c4a3:_0x1f8fec['start'],_0x50dc91=_0x50dc91['isAfter'](_0x1f8fec['end'])?_0x50dc91:_0x1f8fec['end'],_0xa2c51b=Object['assign']({},_0x505dc5['attributes']),_0x26e8e2?_0x1f8fec['start']['isBefore'](_0x26e8e2['getFirstRange']()['start'])?(_0x26e8e2['removeMarkers'](),_0x26e8e2=_0x505dc5):_0x505dc5['removeMarkers']():_0x26e8e2=_0x505dc5;}}}if(_0x26e8e2)return this['_setSuggestionRange'](_0x26e8e2,this['_model']['createRange'](_0x53c4a3,_0x50dc91)),_0x26e8e2;{const _0x430070=_0x5011f0(),_0x4fbf55=this['_model']['createRange'](_0x53c4a3,_0x50dc91),_0x53d9a3=_0x2450b9['id'],_0x593423=_0x315f72?'deletion:'+_0x315f72:'deletion',_0x5777b1=this['_setSuggestionData']({'id':_0x430070,'type':_0x593423,'createdAt':new Date(),'authorId':_0x53d9a3,'attributes':_0xa2c51b});return this['_addSuggestionMarker'](_0x593423,_0x430070,_0x53d9a3,_0x4fbf55),_0x5777b1;}}['markMultiRangeDeletion'](_0x52dbee,_0x415758='multi',_0xde674d={}){const _0x4890b4=this['editor']['plugins']['get']('Users')['me'],_0x17f621=_0x52dbee['map'](_0x42869e=>new _0x39b5cf(_0x42869e['start'],_0x42869e['end'])),_0x5d7833=new Set();this['_trackingSessionId']&&(_0xde674d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28715c,meta:_0x4a8744}of this['_findSuggestions'](_0x17f621,'insertion'))_0x4a8744['isOwn']&&!_0x4a8744['isNextTo']&&_0x5d7833['add'](_0x28715c);for(const _0xc8c874 of _0x5d7833)if(_0xc8c874['isMultiRange']){const _0x37ba4d=_0xc8c874['getRanges']();(!_0xc8c874['attributes']||!_0xc8c874['attributes']['skipNestingCheck'])&&(_0x37ba4d['every'](_0x551d12=>_0x17f621['some'](_0xa6da3d=>_0xa6da3d['containsRange'](_0x551d12,!0x0)))&&_0xc8c874['discard']());if(_0x17f621['every'](_0x498b04=>_0x37ba4d['some'](_0x335598=>_0x335598['containsRange'](_0x498b04,!0x0)))){const _0x4ea4a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x415758,'accept');return this['forceDefaultExecution'](()=>_0x4ea4a3(_0x52dbee,null,_0xde674d)),null;}}else{const _0x1f7690=_0xc8c874['getFirstRange']();_0x17f621['some'](_0x289fa8=>_0x289fa8['containsRange'](_0x1f7690,!0x0))&&_0xc8c874['discard']();if(_0x17f621['every'](_0x9caaf3=>_0x1f7690['containsRange'](_0x9caaf3,!0x0))){const _0x2215ae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x415758,'accept');return this['forceDefaultExecution'](()=>_0x2215ae(_0x17f621,null,_0xde674d)),null;}}const _0x225e74=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x415758,'join');let _0x3fe293=null;for(const _0x4bf861 of this['getSuggestions']())if(_0x4bf861['author']['id']==_0x4890b4['id']&&_0x4bf861['isInContent']&&'deletion'==_0x4bf861['type']&&_0x4bf861['subType']==_0x415758&&Xt(_0x4bf861,_0xde674d)&&(_0x225e74(_0x4bf861['getRanges'](),_0x17f621)||_0x225e74(_0x17f621,_0x4bf861['getRanges']()))){if(_0x3fe293){if(_0x4bf861['commentThread']&&_0x4bf861['commentThread']['length'])continue;for(const _0x588198 of _0x4bf861['getRanges']())_0x3fe293['isIntersectingWithRange'](_0x588198)||_0x3fe293['addRange'](_0x588198);_0x4bf861['removeMarkers']();}else{_0x3fe293=_0x4bf861;for(const _0x25dcd7 of _0x17f621)_0x4bf861['isIntersectingWithRange'](_0x25dcd7)||_0x4bf861['addRange'](_0x25dcd7);}}if(_0x3fe293)return _0x3fe293;_0x5d7833['clear']();for(const {suggestion:_0x7b1aba,meta:_0x3ac8c5}of this['_findSuggestions'](_0x17f621,'deletion'))_0x3ac8c5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ac8c5['containsRangeInObject']&&!_0x3ac8c5['isInsideObject'])&&Xt(_0x7b1aba,_0xde674d)&&_0x5d7833['add'](_0x7b1aba);for(const _0x5ef77c of _0x5d7833){const _0x4266ec=_0x5ef77c['getRanges']();if(!_0xde674d||!_0xde674d['skipNestingCheck']){if(_0x17f621['every'](_0x33115e=>_0x4266ec['some'](_0x4693b0=>_0x4693b0['containsRange'](_0x33115e,!0x0))))return _0x5ef77c;}(!_0x5ef77c['attributes']||!_0x5ef77c['attributes']['skipNestingCheck'])&&(_0x4266ec['every'](_0x51b108=>_0x17f621['some'](_0x4fccb7=>_0x4fccb7['containsRange'](_0x51b108,!0x0)))&&_0x5ef77c['discard']());}const _0x5319cc=_0x5011f0(),_0xbb963d=_0x4890b4['id'],_0x5e3ff0='deletion:'+_0x415758,_0x498f95=this['_setSuggestionData']({'id':_0x5319cc,'type':_0x5e3ff0,'createdAt':new Date(),'authorId':_0xbb963d,'attributes':_0xde674d});for(const _0x1adb51 of _0x17f621)_0x1adb51['detach'](),_0x1adb51['isCollapsed']||'$graveyard'==_0x1adb51['root']['rootName']||this['_addSuggestionMarker'](_0x5e3ff0,_0x5319cc,_0xbb963d,_0x1adb51,o['getMultiRangeId']());return _0x498f95;}['markAttributeChange'](_0x59ff61,_0x272f82,_0x14dfdb,_0x1e5455,_0x3e7ef0){if(_0x59ff61['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd6934f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2e12ee=Array['from'](this['_suggestions']['values']())['filter'](_0x4e190d=>'attribute'==_0x4e190d['type']&&_0x4e190d['data']['key']==_0x272f82&&_0x4e190d['isIntersectingWithRange'](_0x59ff61));if(this['_trackingSessionId']&&(_0x3e7ef0['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1c3d58=this['_findSuggestions'](_0x59ff61,'insertion')['filter'](({meta:_0x27fb38})=>_0x27fb38['isOwn']&&!_0x27fb38['isInsideObject']&&!_0x27fb38['isNextTo'])['map'](({suggestion:_0x290a9f})=>_0x290a9f);_0x2e12ee['unshift'](..._0x1c3d58);}const _0x1caafb=new Map([[_0x59ff61,_0x14dfdb]]);for(const _0x1c1b02 of _0x2e12ee){const _0x1ca86a='attribute'==_0x1c1b02['type']?_0x1c1b02['data']['oldValue']:void 0x0,_0x3d234e=_0x1c1b02['getFirstRange'](),_0x1a0ed3=Array['from'](_0x1caafb['keys']())['find'](_0x47a993=>_0x47a993['isIntersecting'](_0x3d234e));if(!_0x1a0ed3)continue;const _0x3cea88=_0x1a0ed3['getDifference'](_0x3d234e);this['_isBlockAttribute'](_0x272f82)&&'insertion'==_0x1c1b02['type']&&0x0!=_0x3cea88['length']||(_0x1caafb['delete'](_0x1a0ed3),_0x3cea88['forEach'](_0x231778=>{_0x1caafb['set'](_0x231778,_0x14dfdb);}),'insertion'!=_0x1c1b02['type']&&_0x1ca86a!=_0x1e5455&&_0x1caafb['set'](_0x1a0ed3['getIntersection'](_0x3d234e),_0x1ca86a));}const _0x1c445e=[];for(const [_0x311b3a,_0x21d9bb]of _0x1caafb){const _0x1cec59=_0x5011f0(),_0xf2969a={'key':_0x272f82,'oldValue':_0x21d9bb,'newValue':_0x1e5455};_0x272f82['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':_0x272f82});const _0x1b1f39=('attribute:'+(_0x272f82+'|'+Kt({'newValue':_0x1e5455})))['substring'](0x0,0x3c),_0x464e2e=this['_setSuggestionData']({'id':_0x1cec59,'type':_0x1b1f39,'data':_0xf2969a,'createdAt':new Date(),'authorId':_0xd6934f,'attributes':_0x3e7ef0});_0x1c445e['push'](_0x464e2e),this['_addSuggestionMarker'](_0x1b1f39,_0x1cec59,_0xd6934f,_0x311b3a);}return _0x1c445e;}['enableDefaultAttributesIntegration'](_0x55298b){this['enableCommand'](_0x55298b,(_0xbee37,..._0x484442)=>{this['_recordAttributeChanges'](()=>{_0xbee37(..._0x484442);});});}['registerBlockAttribute'](_0x2db635){this['_blockAttributeKeys']['add'](_0x2db635);}['registerInlineAttribute'](_0x51f4a5){this['_inlineAttributeKeys']['add'](_0x51f4a5);}['startTrackingSession'](_0x43032d){return this['_trackingSessionId']=void 0x0!==_0x43032d?_0x43032d:_0x5011f0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1636c6){return'attribute'==_0x1636c6['type']?_0x1636c6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x913139,_0x3570a9){const _0xa87d67=_0x913139['getFirstMarker']();this['_model']['change'](_0x86e683=>{_0x86e683['updateMarker'](_0xa87d67,{'range':_0x3570a9});});}['_addThreadToSuggestion'](_0xd4fef2){const _0x4220df=_0xd4fef2['id'],_0x2fb32c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4220df)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2fb32c,'threadId':_0x4220df,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2c1a92=this['_commentsRepository']['getCommentThread'](_0x4220df);_0x2c1a92['unbind']('isRemovable'),_0x2c1a92['isRemovable']=!0x1,_0xd4fef2['commentThread']=_0x2c1a92;}['_checkSuggestionCorrectness'](_0x560492,_0x1239ea,_0x52db71,_0x1a91be){if(_0x560492['type']!=_0x1239ea||_0x560492['subType']!=_0x52db71||_0x560492['creator']['id']!=_0x1a91be)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x280f1c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5e8b7b,_0x1f3623){const _0x148a6b=_0x5e8b7b['getFirstRange']();if(_0x1f3623['isEqual'](_0x148a6b))_0x5e8b7b['removeMarkers']();else{if(_0x148a6b['containsRange'](_0x1f3623)){const _0x21f6ee=this['_model']['createPositionAt'](_0x1f3623['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e8b7b,this['_model']['createRange'](_0x148a6b['start'],_0x21f6ee));const _0x36d9ed=_0x5011f0(),_0x352154=_0x5e8b7b['creator']['id'],_0x28a57a=_0x5e8b7b['type']+':'+_0x5e8b7b['subType'];this['_setSuggestionData']({'id':_0x36d9ed,'type':_0x28a57a,'createdAt':new Date(),'authorId':_0x352154,'data':_0x5e8b7b['data'],'attributes':_0x5e8b7b['attributes']});const _0x31a088=this['_model']['createPositionAt'](_0x1f3623['end']['parent'],'after'),_0x17ac43=this['_model']['createRange'](_0x31a088,_0x148a6b['end']);this['_addSuggestionMarker'](_0x28a57a,_0x36d9ed,_0x352154,_0x17ac43);}else{if(_0x148a6b['containsPosition'](_0x1f3623['start'])){const _0x3f6b08=this['_model']['createPositionAt'](_0x1f3623['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e8b7b,this['_model']['createRange'](_0x148a6b['start'],_0x3f6b08));}else{const _0x619561=this['_model']['createPositionAt'](_0x1f3623['end']['parent'],'after');this['_setSuggestionRange'](_0x5e8b7b,this['_model']['createRange'](_0x619561,_0x148a6b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x360a06){for(const {suggestion:_0x2a50fb,meta:_0x25cf8c}of this['_findSuggestions'](_0x360a06,'insertion')){if(!_0x25cf8c['isOwn'])continue;const _0x1073fe=_0x2a50fb['getRanges']();for(const _0x119ed3 of _0x1073fe)if(!_0x360a06['getDifference'](_0x119ed3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3529e1){const _0x540e3b=this['editor']['plugins']['get']('Users')['getUser'](_0x3529e1);if(!_0x540e3b)throw new _0x280f1c('track-changes-user-not-found',this);return _0x540e3b;}['_getExternalAuthor'](_0x2d1ce2){const _0x518551=this['editor']['plugins']['get']('Users'),_0x3e1a9a=_0x4130c6('external:'+_0x2d1ce2),_0x25679f=_0x518551['getUser'](_0x3e1a9a);return _0x25679f||_0x518551['addUser']({'id':_0x3e1a9a,'name':_0x2d1ce2});}['_createSuggestion'](_0x1a6e1a,_0x48d093,_0x359fa6,_0x23b0e7,_0x10a4eb,_0x4dced3){const _0x1a4796=this['_getAuthorFromId'](_0x23b0e7),_0x3ce0f1=this['_suggestionFactory']['buildSuggestion'](_0x1a6e1a,_0x48d093,_0x359fa6,_0x1a4796,_0x10a4eb,_0x64834=>{this['_updateSuggestionData'](_0x359fa6,{'attributes':_0x64834});const _0x11ed67=this['getSuggestion'](_0x359fa6);this['_joinWithAdjacentSuggestions'](new Set([_0x11ed67])),this['_refreshSuggestionsChain'](new Set([_0x11ed67]));},_0x4dced3);return this['listenTo'](_0x3ce0f1,'accept',()=>{this['_updateSuggestionData'](_0x359fa6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3ce0f1,'discard',()=>{this['_updateSuggestionData'](_0x359fa6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x359fa6,_0x3ce0f1),this['_suggestionState']['set'](_0x3ce0f1,'notReady'),_0x3ce0f1;}['_splitMarkerName'](_0xd2391b){const _0x290e05=_0xd2391b['split'](':');return{'group':_0x290e05[0x0],'type':_0x290e05[0x1],'subType':_0x290e05['length']>=0x5?_0x290e05[0x2]:null,'id':_0x290e05['length']<0x5?_0x290e05[0x2]:_0x290e05[0x3],'authorId':_0x290e05['length']<0x5?_0x290e05[0x3]:_0x290e05[0x4],'markerCount':0x6==_0x290e05['length']?_0x290e05[0x5]:null};}['_breakSuggestionMarker'](_0x39b8f9,_0x2b34b6,_0x16c539){const _0x201c41=_0x39b8f9['getFirstRange'](),_0x4bcd04=_0x201c41['start'],_0x1ed8d4=_0x201c41['end'];this['_setSuggestionRange'](_0x39b8f9,this['_model']['createRange'](_0x4bcd04,_0x2b34b6));const _0x2e6bf1=_0x5011f0(),_0x2abb98=_0x39b8f9['creator']['id'],_0x19fa74=_0x39b8f9['type']+(_0x39b8f9['subType']?':'+_0x39b8f9['subType']:'');this['_setSuggestionData']({'id':_0x2e6bf1,'type':_0x19fa74,'createdAt':new Date(),'authorId':_0x2abb98,'originalSuggestionId':_0x39b8f9['_originalSuggestionId']||_0x39b8f9['id'],'attributes':_0x39b8f9['attributes'],'data':_0x39b8f9['data']});const _0x36ff57=this['_getAttributeKey'](_0x39b8f9);('formatBlock'==_0x39b8f9['type']||_0x36ff57&&this['_isBlockAttribute'](_0x36ff57))&&(_0x16c539=this['_model']['createPositionBefore'](_0x16c539['parent'])),this['_addSuggestionMarker'](_0x19fa74,_0x2e6bf1,_0x2abb98,this['_model']['createRange'](_0x16c539,_0x1ed8d4));}['_findSuggestions'](_0x25f2e7,_0x5512a1=null){const _0x727095=[],_0x5b2d83=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x25f2e7)||(_0x25f2e7=[_0x25f2e7]);for(const _0x5ecf5e of this['getSuggestions']()){if(!_0x5ecf5e['isInContent'])continue;if(_0x5512a1&&_0x5ecf5e['type']!=_0x5512a1)continue;let _0x24ab58=!0x1;for(const _0x49973c of _0x5ecf5e['getRanges']()){for(const _0xf87dbf of _0x25f2e7){const _0x139b74=_0xf87dbf['start']['isEqual'](_0x49973c['end'])||_0xf87dbf['end']['isEqual'](_0x49973c['start']);if(_0x139b74||_0xf87dbf['getIntersection'](_0x49973c)){const _0xedc6dc=_0xf87dbf['containsRange'](_0x49973c)&&Gt(this['_model']['schema'],_0x49973c['start'],_0xf87dbf),_0x15ed62=_0x49973c['containsRange'](_0xf87dbf)&&Gt(this['_model']['schema'],_0xf87dbf['start'],_0x49973c);_0x727095['push']({'suggestion':_0x5ecf5e,'meta':{'isOwn':_0x5b2d83==_0x5ecf5e['author'],'isNextTo':_0x139b74,'isInsideObject':_0xedc6dc,'containsRangeInObject':_0x15ed62}}),_0x24ab58=!0x0;break;}}if(_0x24ab58)break;}}return _0x727095;}['_addSuggestionMarker'](_0x5e6431,_0x282f12,_0x5b6446,_0x2d3a0a,_0x5ed373){this['_model']['change'](_0x1ae3bb=>{let _0x413927='suggestion:'+_0x5e6431+':'+_0x282f12+':'+_0x5b6446;_0x5ed373&&(_0x413927=_0x413927+':'+_0x5ed373),_0x1ae3bb['addMarker'](_0x413927,{'range':_0x2d3a0a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x231cec){const _0x4bc056=_0x231cec['previous'],_0x243928=_0x231cec['next'];_0x231cec['previous']=null,_0x231cec['next']=null,null!=_0x4bc056&&_0x4bc056['next']==_0x231cec&&(_0x4bc056['next']=_0x243928),null!=_0x243928&&_0x243928['previous']==_0x231cec&&(_0x243928['previous']=_0x4bc056),'ready'==this['_suggestionState']['get'](_0x231cec)&&(this['_suggestionState']['set'](_0x231cec,'removed'),this['fire']('suggestionUnloaded',_0x231cec,_0x4bc056,_0x243928));}['_setSuggestionData'](_0x396434){const _0x4da14e=_0x396434['id'],_0x476304=this['addSuggestionData'](_0x396434);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1e6c56=this['editor']['plugins']['get']('PendingActions'),_0x103629=_0x476304['hasComments'],_0xa594a3=_0x476304['subType']?_0x476304['type']+':'+_0x476304['subType']:_0x476304['type'],_0x3a0868=this['editor']['locale'],_0x27d769=_0x1e6c56['add'](c(_0x3a0868,'PENDING_ACTION_SUGGESTION')),_0xcc407f={'id':_0x4da14e,'type':_0xa594a3,'hasComments':_0x103629,'data':_0x396434['data']||null,'originalSuggestionId':_0x396434['originalSuggestionId']||null,'attributes':_0x476304['attributes']};this['_adapter']['addSuggestion'](_0xcc407f)['then'](_0x249002=>{_0x476304['_saved']=!0x0,_0x1e6c56['remove'](_0x27d769),_0x249002&&_0x249002['createdAt']&&(this['_suggestions']['get'](_0x4da14e)['createdAt']=_0x249002['createdAt']);})['catch'](_0xc998ab=>{throw _0x247906('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x476304['discard']();}),_0x476304['stopListening'](),this['_suggestions']['delete'](_0x476304['id']),this['_suggestionState']['delete'](_0x476304),_0xc998ab;});}return _0x476304;}['_isBlockAttribute'](_0x165cf8){return this['_blockAttributeKeys']['has'](_0x165cf8);}['_updateSuggestionData'](_0x248238,_0x17834b){const _0x13b813=this['editor']['plugins']['get']('PendingActions'),_0xc6b785=this['getSuggestion'](_0x248238);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xc6b785['_saved']){const _0x6917a8=_0x13b813['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x248238,_0x17834b)['then'](()=>{_0x13b813['remove'](_0x6917a8);});}else _0xc6b785['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x248238,_0x17834b);});}}['_getSuggestionData'](_0x4d883f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x280f1c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4d883f);}['_handleNewSuggestionMarker'](_0x5a1e3c){const {id:_0x2b7d3a,type:_0x415b80,subType:_0x42642b,authorId:_0x3fed38}=this['_splitMarkerName'](_0x5a1e3c),_0x35af17=this['_suggestions']['get'](_0x2b7d3a)||this['_createSuggestion'](_0x415b80,_0x42642b,_0x2b7d3a,_0x3fed38,{});switch(this['_checkSuggestionCorrectness'](_0x35af17,_0x415b80,_0x42642b,_0x3fed38),this['_suggestionState']['get'](_0x35af17)){case'notReady':this['_getSuggestionData'](_0x2b7d3a)['then'](_0xd696e5=>{let _0x56a3fb=Promise['resolve']();_0xd696e5['hasComments']&&(_0x56a3fb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2b7d3a})),_0x56a3fb['then'](()=>{this['addSuggestionData'](_0xd696e5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x35af17,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2b7d3a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x35af17,'ready'),this['fire']('suggestionLoaded',_0x35af17);break;case'ready':this['fire']('suggestionChanged',_0x35af17);}return _0x35af17['addMarkerName'](_0x5a1e3c),_0x35af17;}['_refreshSuggestionsChain'](_0x78d0ac){const _0x35bc39=Array['from'](_0x78d0ac),_0x198368=_0x35bc39['filter'](_0x39df1c=>'attribute'==_0x39df1c['type']);this['_refreshAttributeSuggestionsChain'](_0x198368);const _0xf307e5=_0x35bc39['filter'](_0x37650c=>!_0x37650c['isMultiRange']&&'attribute'!=_0x37650c['type']),_0x3ab303=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x478325=>!_0x478325['isMultiRange']&&'attribute'!=_0x478325['type']),_0x2d873e=_0x3ab303['filter'](_0xff5068=>!_0x78d0ac['has'](_0xff5068)),_0x52a0d6=new Map(_0x3ab303['map'](_0x307f02=>[_0x307f02,this['_suggestionFactory']['getSuggestionCallback'](_0x307f02['type'],_0x307f02['subType'],'chain')])),_0x1f0331=new Map(_0x3ab303['map'](_0x358bf8=>[_0x358bf8,_0x358bf8['getFirstRange']()])),_0x4cd51b=new Set(),_0x466f95=new Set();for(let _0x3da036=0x0;_0x3da036<_0xf307e5['length'];_0x3da036++)_0x422424(_0xf307e5[_0x3da036],_0xf307e5,_0x3da036+0x1);for(let _0x1291f4=0x0;_0x1291f4<_0xf307e5['length'];_0x1291f4++)_0x422424(_0xf307e5[_0x1291f4],_0x2d873e,0x0);const _0x1ffa55=new Set();for(let _0x5ee884=0x0;_0x5ee884<_0xf307e5['length'];_0x5ee884++){const _0x10a8f2=_0xf307e5[_0x5ee884];!_0x466f95['has'](_0x10a8f2)&&_0x10a8f2['previous']&&(_0x1ffa55['add'](_0x10a8f2['previous']),_0x10a8f2['previous']['next']===_0x10a8f2&&(_0x10a8f2['previous']['next']=null),_0x10a8f2['previous']=null),!_0x4cd51b['has'](_0x10a8f2)&&_0x10a8f2['next']&&(_0x1ffa55['add'](_0x10a8f2['next']),_0x10a8f2['next']['previous']===_0x10a8f2&&(_0x10a8f2['next']['previous']=null),_0x10a8f2['next']=null);}function _0x422424(_0x10d566,_0x260151,_0x5f50ee){for(let _0x17ad9d=_0x5f50ee;_0x17ad9d<_0x260151['length'];_0x17ad9d++){const _0x554b36=_0x19eff9(_0x10d566,_0x260151[_0x17ad9d]);_0x554b36&&(_0x554b36[0x0]['next']=_0x554b36[0x1],_0x554b36[0x1]['previous']=_0x554b36[0x0],_0x4cd51b['add'](_0x554b36[0x0]),_0x466f95['add'](_0x554b36[0x1]));}}function _0x19eff9(_0x24715d,_0x1d8484){if(_0x24715d['author']['id']!==_0x1d8484['author']['id'])return null;const _0x3cad07=_0x52a0d6['get'](_0x24715d)(_0x24715d,_0x1d8484,_0x1f0331['get'](_0x24715d),_0x1f0331['get'](_0x1d8484));if(!_0x3cad07)return null;return _0x52a0d6['get'](_0x1d8484)(_0x24715d,_0x1d8484,_0x1f0331['get'](_0x24715d),_0x1f0331['get'](_0x1d8484))?_0x3cad07[0x1]['commentThread']&&_0x3cad07[0x1]['commentThread']['length']?null:_0x3cad07:null;}_0x1ffa55['size']&&this['_refreshSuggestionsChain'](_0x1ffa55);}['_refreshAttributeSuggestionsChain'](_0x179c2e){if(0x0==_0x179c2e['length'])return;const _0x1b5923=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20c349=>'attribute'==_0x20c349['type']&&_0x20c349['_isDataLoaded']),_0x2f7483=[],_0x30ebfe=new Map();for(const _0x594bfe of _0x1b5923){const _0x305531=_0x4130c6(_0x594bfe['attributes']);_0x30ebfe['has'](_0x305531)||(_0x30ebfe['set'](_0x305531,_0x2f7483['length']),_0x2f7483['push']([]));const _0x48038e=_0x30ebfe['get'](_0x305531);_0x2f7483[_0x48038e]['push'](_0x594bfe);}!(function(){_0x2f7483['sort']((_0x3f4944,_0x24be42)=>{const _0xcfdf73=_0x3f4944[0x0]['createdAt'],_0xdb5f95=_0x24be42[0x0]['createdAt'];return _0xcfdf73==_0xdb5f95?_0x3f4944[0x0]['attributes']['groupId']<_0x24be42[0x0]['attributes']['groupId']?-0x1:0x1:_0xcfdf73<_0xdb5f95?-0x1:0x1;});for(const _0x2695c6 of _0x2f7483)_0x2695c6['sort']((_0x319923,_0x1f05e9)=>_0x319923['id']<_0x1f05e9['id']?-0x1:0x1);}());for(let _0x7a1dec=0x0;_0x7a1dec<_0x2f7483['length'];_0x7a1dec++){if(0x0==_0x2f7483[_0x7a1dec]['length'])continue;const _0x38236e=[];for(let _0x36172d=_0x7a1dec+0x1;_0x36172d<_0x2f7483['length'];_0x36172d++)0x0!=_0x2f7483[_0x36172d]['length']&&_0x362a80(_0x2f7483[_0x7a1dec],_0x2f7483[_0x36172d])&&_0x38236e['push'](_0x36172d);for(const _0x2f79c8 of _0x38236e)_0x2f7483[_0x7a1dec]=_0x2f7483[_0x7a1dec]['concat'](_0x2f7483[_0x2f79c8]),_0x2f7483[_0x2f79c8]=[];}for(const _0x17e0ca of _0x2f7483)for(let _0x1fb2f5=0x0;_0x1fb2f5<_0x17e0ca['length'];_0x1fb2f5++){const _0x2b5a0d=_0x17e0ca[_0x1fb2f5+0x1]||null;_0x17e0ca[_0x1fb2f5]['next']!==_0x2b5a0d&&(_0x17e0ca[_0x1fb2f5]['next']=_0x2b5a0d);}for(const _0x3e7a4e of _0x2f7483)for(let _0x1ab760=0x0;_0x1ab760<_0x3e7a4e['length'];_0x1ab760++){const _0x2ec97a=_0x3e7a4e[_0x1ab760-0x1]||null;_0x3e7a4e[_0x1ab760]['previous']!==_0x2ec97a&&(_0x3e7a4e[_0x1ab760]['previous']=_0x2ec97a);}function _0x362a80(_0x6d64ff,_0x3f42c7){if(_0x6d64ff[0x0]['attributes']['groupId']!==_0x3f42c7[0x0]['attributes']['groupId']&&_0x6d64ff[0x0]['author']!==_0x3f42c7[0x0]['author'])return!0x1;if(!function(_0x43dc2a,_0x3ce302){if(!_0x43dc2a['hasComments']&&!_0x3ce302['hasComments'])return!0x0;if(_0x43dc2a['hasComments']&&_0x3ce302['hasComments'])return!0x1;if(_0x43dc2a['hasComments']&&_0x3ce302['createdAt']<_0x43dc2a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3ce302['hasComments']&&_0x43dc2a['createdAt']<_0x3ce302['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x6d64ff[0x0],_0x3f42c7[0x0]))return!0x1;const _0x337798=Ft(_0x6d64ff[0x0]['attributes'],['groupId','trackingSessionId']),_0xd0e60e=Ft(_0x3f42c7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5c3aba(_0x337798,_0xd0e60e))return!0x1;if(_0x6d64ff[0x0]['attributes']['groupId']==_0x3f42c7[0x0]['attributes']['groupId'])return!0x0;if(_0x6d64ff[0x0]['attributes']['trackingSessionId']!==_0x3f42c7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x6d64ff['every'](_0x5a345c=>_0x3f42c7['some'](_0x53d7a3=>_0x5a345c['getFirstRange']()['isEqual'](_0x53d7a3['getFirstRange']())))&&_0x3f42c7['every'](_0x2f6009=>_0x6d64ff['some'](_0x245b51=>_0x2f6009['getFirstRange']()['isEqual'](_0x245b51['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2684a8){const _0x3b6e88=Array['from'](_0x2684a8),_0x3a2490=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4691e8=_0x3a2490['filter'](_0x1c1368=>!_0x2684a8['has'](_0x1c1368)),_0x220021=new Map(_0x3b6e88['map'](_0x411d58=>[_0x411d58,this['_suggestionFactory']['getSuggestionCallback'](_0x411d58['type'],_0x411d58['subType'],'join')])),_0x48bd82=new Map(_0x3a2490['map'](_0x1f7244=>[_0x1f7244,_0x1f7244['getRanges']()]));for(let _0x311765=0x0;_0x311765<_0x3b6e88['length'];_0x311765++){if(_0x5e9515(this,_0x3b6e88[_0x311765],_0x3b6e88,_0x311765+0x1))return!0x0;}for(let _0x787d3f=0x0;_0x787d3f<_0x3b6e88['length'];_0x787d3f++){if(_0x5e9515(this,_0x3b6e88[_0x787d3f],_0x4691e8,0x0))return!0x0;}return!0x1;function _0x5e9515(_0x4e036b,_0x5db377,_0x12ff45,_0x385c77){for(let _0x166fd1=_0x385c77;_0x166fd1<_0x12ff45['length'];_0x166fd1++){const _0x524007=_0x12ff45[_0x166fd1];if(_0x524007['type']!==_0x5db377['type']||_0x524007['author']['id']!==_0x5db377['author']['id']||_0x524007['subType']!==_0x5db377['subType'])continue;if(!Qt(_0x5db377,_0x524007))continue;if('attribute'==_0x5db377['type']&&_0x5db377['data']['oldValue']!=_0x524007['data']['oldValue'])continue;if('attribute'==_0x5db377['type']&&_0x4e036b['_isBlockAttribute'](_0x5db377['data']['key']))continue;if('formatBlock'==_0x5db377['type']){const _0x493903=_0x4e036b['editor']['model'],_0x2f252f=_0x5db377['getContainedElement']();if(_0x2f252f&&(_0x493903['schema']['isObject'](_0x2f252f)||_0x493903['schema']['isLimit'](_0x2f252f)))continue;}const _0x1dd618=_0x220021['get'](_0x5db377),_0x1640aa=_0x48bd82['get'](_0x5db377),_0x112e7e=_0x48bd82['get'](_0x524007),_0x4bb940=_0x5db377['commentThread']&&_0x5db377['commentThread']['length'],_0x2972d8=_0x524007['commentThread']&&_0x524007['commentThread']['length'];if(!_0x4bb940&&_0x1dd618(_0x112e7e,_0x1640aa))return _0x4e036b['_joinSuggestions'](_0x524007,_0x5db377),_0x48bd82['delete'](_0x5db377),!0x0;if(!_0x2972d8&&_0x1dd618(_0x1640aa,_0x112e7e))return _0x4e036b['_joinSuggestions'](_0x5db377,_0x524007),_0x48bd82['delete'](_0x524007),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5e0183,_0x12c8da){if(_0x5e0183['isMultiRange']){for(const _0x3f73d3 of _0x12c8da['getRanges']())_0x5e0183['addRange'](_0x3f73d3);}else{const _0x21d959=_0x12c8da['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5e0183,this['_model']['createRange'](_0x5e0183['getFirstRange']()['start'],_0x21d959));}_0x12c8da['removeMarkers']();}['_getMarkerAnnouncementText'](_0xe102c3,_0x4c2e60,_0x5c2fc9){const _0x3be779=_0xe102c3['startsWith']('format')||_0xe102c3['startsWith']('attribute')?'FORMATTING':_0xe102c3['toUpperCase']();return c(this['editor']['locale'],_0x4c2e60+'_'+_0x3be779+'_SUGGESTION_ANNOUNCEMENT',_0x5c2fc9);}['_initAriaMarkerChangeAnnouncements'](){const _0x59fc48=this['editor'];if(!_0x59fc48['ui'])return;const {ariaLiveAnnouncer:_0x4be827}=_0x59fc48['ui'];_0x1b4244(this['_model'],({left:_0x459a9e,entered:_0x352a98})=>{for(const _0x393ace of _0x459a9e){const {group:_0x511d56,type:_0x25de0c}=this['_splitMarkerName'](_0x393ace['name']);if('suggestion'===_0x511d56){_0x4be827['announce'](this['_getMarkerAnnouncementText'](_0x25de0c,'LEAVE'));break;}}for(const _0x56510f of _0x352a98){const {group:_0x522d71,type:_0x66cbc8}=this['_splitMarkerName'](_0x56510f['name']);if('suggestion'===_0x522d71){_0x4be827['announce'](this['_getMarkerAnnouncementText'](_0x66cbc8,'ENTER',_0x32cd60(_0x5a122d)));break;}}});}['_processAttributeChanges'](_0x4a4620){if(this['_recordAttributeSuggestions'])return!0x1;const _0x58849f=this['editor'],_0x4b5325=_0x58849f['model']['document']['differ']['getChanges']();if(0x0==_0x4b5325['length'])return!0x1;const _0x7e9e1a=[],_0x2d978d=_0x4b5325['filter'](_0x52aca4=>'attribute'==_0x52aca4['type']),_0x584510=_0x4b5325['filter'](_0x2400be=>'insert'==_0x2400be['type']&&'$text'!=_0x2400be['name']),_0x1a9f74=_0x4b5325['filter'](_0x7999cf=>'remove'==_0x7999cf['type']&&'$text'!=_0x7999cf['name']);for(const _0x139c2e of _0x2d978d)_0x7e9e1a['push']({'key':_0x139c2e['attributeKey'],'newValue':_0x139c2e['attributeNewValue'],'oldValue':_0x139c2e['attributeOldValue'],'range':qt(_0x139c2e['range'],_0x58849f['model'])});for(const _0xb8d48d of _0x584510){const _0x40a9cc=_0x1a9f74['find'](_0x2e5707=>_0x2e5707['position']['isEqual'](_0xb8d48d['position']));_0x40a9cc&&_0x7e9e1a['push']({'key':u,'newValue':_0xb8d48d['name'],'oldValue':_0x40a9cc['name'],'range':_0x58849f['model']['createRangeOn'](_0xb8d48d['position']['nodeAfter'])});}return 0x0!=_0x7e9e1a['length']&&this['_reduceExistingSuggestions'](_0x4a4620,_0x7e9e1a);}['_processAttributeSuggestions'](_0x56ef01){let _0x34138a=!0x1;const _0x3b6ff8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x54c346=>_0x54c346['data']['newRange']&&_0x54c346['name']['startsWith']('suggestion:attribute:'));for(const _0x592793 of _0x3b6ff8){const {subType:_0xa563ba,id:_0x47d6}=this['_splitMarkerName'](_0x592793['name']),_0x1f9370=_0xa563ba['split']('|')[0x0];for(const _0x3135de of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3135de['id']!=_0x47d6&&'attribute'==_0x3135de['type']&&_0x3135de['data']&&_0x3135de['data']['key']==_0x1f9370&&_0x3135de['getFirstRange']()['isIntersecting'](_0x592793['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3135de,_0x592793['data']['newRange'],_0x56ef01),_0x34138a=!0x0);}return _0x34138a;}['_recordAttributeChanges'](_0x3d4834){this['_recordAttributeSuggestions']=!0x0,_0x3d4834();}['_isRegisteredAttribute'](_0x2491b2){const _0x3e750a=this['_isBlockAttribute'](_0x2491b2),_0x2e651f=this['_inlineAttributeKeys']['has'](_0x2491b2);return _0x3e750a||_0x2e651f;}['_reduceExistingSuggestions'](_0x19e2a2,_0x22408f){if(0x0==_0x22408f['length'])return!0x1;let _0x44ace4=!0x1;for(const _0x263ffe of _0x22408f){const _0x34ae75=this['_findSuggestions'](_0x263ffe['range'],'attribute')['filter'](_0x1b6df5=>!_0x1b6df5['meta']['isNextTo'])['map'](_0x39c6ac=>_0x39c6ac['suggestion']),_0x46d551=_0x4130c6({'newValue':_0x263ffe['newValue']});_0x34ae75['filter'](_0x4d0764=>{const [_0x124eed,_0x2066b1]=_0x4d0764['subType']['split']('|');return _0x124eed==_0x263ffe['key']&&_0x2066b1!=_0x46d551;})['forEach'](_0x501c6e=>{this['_reduceSuggestionAttributeRange'](_0x501c6e,_0x263ffe['range'],_0x19e2a2),_0x44ace4=!0x0;});}return _0x44ace4;}['_reduceSuggestionAttributeRange'](_0x3c4bb1,_0xfbb6d9,_0x356bdd){const _0x23471d=_0x3c4bb1['getFirstRange']()['getDifference'](_0xfbb6d9);0x0!==_0x23471d['length']?0x1!==_0x23471d['length']?this['_breakSuggestionMarker'](_0x3c4bb1,_0xfbb6d9['start'],_0xfbb6d9['end']):this['_setSuggestionRange'](_0x3c4bb1,_0x23471d[0x0]):_0x356bdd['removeMarker'](_0x3c4bb1['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa5c9f1){this['_editor']=_0xa5c9f1,this['_model']=_0xa5c9f1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1ba6e3,_0x370ca9,_0x3b0e6c,_0x50fbfb,_0x254e2f,_0x1fff7a,_0x29714f){return new o(this['_model'],{'type':_0x1ba6e3,'subType':_0x370ca9,'id':_0x3b0e6c,'originalSuggestionId':_0x29714f,'author':_0x50fbfb,'creator':_0x50fbfb,'attributes':_0x254e2f,'onAttributesChange':_0x1fff7a,'onAccept':(..._0x189256)=>this['getSuggestionCallback'](_0x1ba6e3,_0x370ca9,'accept')(..._0x189256),'onDiscard':(..._0x1f1676)=>this['getSuggestionCallback'](_0x1ba6e3,_0x370ca9,'discard')(..._0x1f1676)});}['registerCustomCallback'](_0x5cff36,_0x345965,_0xdfc3a6,_0x52eef8){const _0x40b66=_0x5cff36+':'+_0x345965+':'+_0xdfc3a6;this['_customCallbacks']['set'](_0x40b66,_0x52eef8);}['getSuggestionCallback'](_0x20ee60,_0x51717a,_0x266205){const _0x20e07d=_0x20ee60+':'+_0x51717a+':'+_0x266205;return this['_customCallbacks']['get'](_0x20e07d)||this['_defaultCallbacks']['get'](_0x20ee60+':'+_0x266205);}['_registerDefaultCallbacks'](){const _0x52f6ac=()=>!0x1,_0x14897d=_0x188bd1=>{_0x188bd1['sort']((_0x4438eb,_0x103e4f)=>_0x4438eb['start']['isBefore'](_0x103e4f['start'])?0x1:-0x1),this['_model']['change'](_0x2c5bb7=>{for(const _0x15a34a of _0x188bd1){let _0x28a999;_0x28a999=_0x15a34a['end']['isAtEnd']&&_0x15a34a['end']['parent']==_0x15a34a['start']['nodeAfter']?_0x2c5bb7['createSelection'](_0x15a34a['start']['nodeAfter'],'on'):_0x2c5bb7['createSelection'](_0x15a34a),this['_model']['deleteContent'](_0x28a999,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x367181=(_0x32298e,_0x35a843)=>{_0x35a843&&this['_model']['change'](_0x55bf85=>{const {commandName:_0x1c2614,commandParams:_0x1a7ca1=[]}=_0x35a843,_0x4213da=_0x32298e['map'](_0x5423ec=>(Lt(_0x5423ec)&&(_0x5423ec=this['_model']['createRange'](_0x5423ec['end'])),_0x5423ec))['filter'](_0x2899c5=>'$graveyard'!==_0x2899c5['root']['rootName']);if(_0x4213da['length']<0x1)return;const _0x12cdd2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x282b21=>_0x39b5cf['fromRange'](_0x282b21));_0x55bf85['setSelection'](_0x4213da);for(const _0x177a4f of this['_editor']['commands']['commands']())_0x177a4f['refresh']();_0x1a7ca1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c2614,..._0x1a7ca1);const _0x1026c0=_0x12cdd2['filter'](_0x3ee93c=>'$graveyard'!=_0x3ee93c['root']['rootName']);_0x1026c0['length']>0x0&&_0x55bf85['setSelection'](_0x1026c0);for(const _0x33b565 of _0x12cdd2)_0x33b565['detach']();});},_0x40731b=(_0x20b6f5,_0x31cb59)=>0x1==_0x20b6f5['length']&&0x1==_0x31cb59['length']&&_0x20b6f5[0x0]['end']['isEqual'](_0x31cb59[0x0]['start']),_0x55f981=(_0x586203,_0x23c803,_0x1230ab,_0x21bf1f)=>Wt(_0x586203,_0x23c803,_0x1230ab,_0x21bf1f)?[_0x586203,_0x23c803]:Wt(_0x23c803,_0x586203,_0x21bf1f,_0x1230ab)?[_0x23c803,_0x586203]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52f6ac),this['_defaultCallbacks']['set']('insertion:discard',_0x14897d),this['_defaultCallbacks']['set']('insertion:join',_0x40731b),this['_defaultCallbacks']['set']('insertion:chain',_0x55f981),this['_defaultCallbacks']['set']('deletion:accept',_0x14897d),this['_defaultCallbacks']['set']('deletion:discard',_0x52f6ac),this['_defaultCallbacks']['set']('deletion:join',_0x40731b),this['_defaultCallbacks']['set']('deletion:chain',_0x55f981),this['_defaultCallbacks']['set']('formatInline:accept',_0x367181),this['_defaultCallbacks']['set']('formatInline:discard',_0x52f6ac),this['_defaultCallbacks']['set']('formatInline:join',_0x40731b),this['_defaultCallbacks']['set']('formatInline:chain',_0x52f6ac),this['_defaultCallbacks']['set']('formatBlock:accept',_0x367181),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52f6ac),this['_defaultCallbacks']['set']('formatBlock:join',_0x40731b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52f6ac),this['_defaultCallbacks']['set']('attribute:accept',_0x52f6ac),this['_defaultCallbacks']['set']('attribute:discard',(_0x42f5a8,_0x16e067)=>{if(!_0x16e067)return;const _0x3d43d1=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2f06a7=>{if(_0x16e067['key']==u)for(const _0x357df1 of _0x42f5a8){const _0xf3fef2=_0x357df1['start']['nodeAfter'],_0x4e8a06=_0x16e067['oldValue'];_0x2f06a7['rename'](_0xf3fef2,_0x4e8a06);}else{if(_0x3d43d1['_isBlockAttribute'](_0x16e067['key'])){for(const _0x301719 of _0x42f5a8)void 0x0!==_0x16e067['oldValue']?_0x2f06a7['setAttribute'](_0x16e067['key'],_0x16e067['oldValue'],_0x301719['start']['nodeAfter']):_0x2f06a7['removeAttribute'](_0x16e067['key'],_0x301719['start']['nodeAfter']);}else{for(const _0x38ba2e of _0x42f5a8)_0x16e067['oldValue']?_0x2f06a7['setAttribute'](_0x16e067['key'],_0x16e067['oldValue'],_0x38ba2e):_0x2f06a7['removeAttribute'](_0x16e067['key'],_0x38ba2e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x40731b);}}function Gt(_0x1bc75e,_0x3ae56a,_0x416df5){for(const _0x2e8b30 of _0x3ae56a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e8b30['root']==_0x2e8b30)return!0x1;if(!_0x416df5['containsItem'](_0x2e8b30))return!0x1;if(_0x1bc75e['isObject'](_0x2e8b30)||_0x1bc75e['isLimit'](_0x2e8b30))return!0x0;}return!0x1;}function Lt(_0x2cbf2b){return _0x2cbf2b['end']['parent']==_0x2cbf2b['start']['nodeAfter']&&_0x2cbf2b['end']['isAtStart'];}function Jt(_0xa9dd15,_0x10048d,_0x5f2e29,_0x1b24fc){const _0x1d829d=_0x2eb13a=>!_0x2eb13a['item']['is']('$textProxy')&&!_0x1b24fc['isObject'](_0x2eb13a['item']),_0x527fe3=_0xa9dd15['start']['getLastMatchingPosition'](_0x1d829d),_0x3808e7=_0xa9dd15['end']['getLastMatchingPosition'](_0x1d829d,{'direction':'backward'});return(!_0xa9dd15['start']['isEqual'](_0x527fe3)||!_0xa9dd15['end']['isEqual'](_0x3808e7))&&(_0x527fe3['isBefore'](_0x3808e7)?_0x5f2e29['updateMarker'](_0x10048d,{'range':_0x5f2e29['createRange'](_0x527fe3,_0x3808e7)}):_0x5f2e29['removeMarker'](_0x10048d),!0x0);}function Kt(_0x168e54){return _0x4130c6(_0x168e54);}function Ht(_0x26c24d){const _0x439d2b=_0x26c24d['start']['nodeAfter'];return _0x439d2b&&_0x439d2b['is']('element');}function qt(_0x2f75b1,_0x5e5c85){return null==_0x2f75b1['end']['nodeBefore']&&_0x2f75b1['end']['parent']==_0x2f75b1['start']['nodeAfter']?zt(_0x2f75b1['start']['nodeAfter'],_0x5e5c85):_0x2f75b1;}function zt(_0x55b661,_0x29819b){const _0x1c9bb3=_0x29819b['schema']['isObject'](_0x55b661)||_0x29819b['schema']['isSelectable'](_0x55b661);return _0x29819b['createRange'](_0x29819b['createPositionAt'](_0x55b661,'before'),_0x1c9bb3?_0x29819b['createPositionAfter'](_0x55b661):_0x29819b['createPositionAt'](_0x55b661,'end'));}function Wt(_0x2afb45,_0x3e6098,_0x5aab23,_0x1c0d0c){return!!Qt(_0x2afb45,_0x3e6098)&&_0x5aab23['end']['isEqual'](_0x1c0d0c['start']);}function Qt(_0x3ed51d,_0x8e43c0){if(!_0x3ed51d['_isDataLoaded']||!_0x8e43c0['_isDataLoaded'])return!0x1;const _0x38d12c=new Set(Object['keys'](_0x3ed51d['attributes'])),_0x435458=new Set(Object['keys'](_0x8e43c0['attributes']));if(_0x38d12c['delete']('groupId'),_0x435458['delete']('groupId'),0x0==_0x38d12c['size']&&0x0==_0x435458['size'])return!0x0;if(_0x38d12c['size']!=_0x435458['size'])return!0x1;const _0x13fadc={..._0x3ed51d['attributes']},_0x5c9b04={..._0x8e43c0['attributes']};return delete _0x13fadc['groupId'],delete _0x5c9b04['groupId'],JSON['stringify'](_0x13fadc)==JSON['stringify'](_0x5c9b04);}function Xt(_0x4e5779,_0x2074c9){const _0x5bb93b=Yt(_0x4e5779['attributes']),_0x1061b4=Yt(_0x2074c9);if(!_0x4e5779['_isDataLoaded'])return!0x1;for(const _0x4ff302 of Object['keys'](_0x1061b4))if(!_0x5c3aba(_0x5bb93b[_0x4ff302],_0x1061b4[_0x4ff302]))return!0x1;return!0x0;}function Yt(_0x56b588){const _0x508e28=Object['assign']({},_0x56b588);return delete _0x508e28['skipNestingCheck'],delete _0x508e28['tablePasteChainId'],_0x508e28;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x824c0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2595ae,_0x22c477,_0x7c94a,_0xc791e3){super(),this['model']=_0x22c477,this['view']=_0x7c94a,this['commentThreadController']=_0xc791e3,this['_editor']=_0x2595ae,this['_acceptCommand']=_0x2595ae['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2595ae['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x586485,_0xc706a)=>_0x586485||_0xc706a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1663cc=>_0x1663cc&&this['_editor']['model']['canEditAt'](_0x22c477['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3046f1=>_0x3046f1&&this['_editor']['model']['canEditAt'](_0x22c477['getRanges']())),this['_pendingAction']=null,_0x7c94a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x7c94a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x7c94a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x7c94a,'change:isDirty',()=>{_0x7c94a['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 _0x30589c=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x30589c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x36f767{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2a350a,_0xe7ecde,_0x166ada,_0x5524e8){super(_0x2a350a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x459411(_0x2a350a,c(_0x2a350a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xe7ecde['authoredAt']),this['bind']('authoredAt')['to'](_0xe7ecde),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',_0xe7ecde,'authoredAt',this,'descriptionParts',(_0x139053,_0x4fa487,_0x5dec7d)=>{const _0x997bc7=_0x5dec7d['map'](_0x22cb0d=>ls(_0x22cb0d['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x139053-0x1,_0xe7ecde['author']['name'],_0x4fa487?_0x5524e8['formatDateTime'](_0x4fa487):'',new DOMParser()['parseFromString'](_0x997bc7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x46b370(),this['focusTracker']=new _0x411687(),this['keystrokes']=new _0x5036c6(),this['focusCycler']=new _0x1ec038({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x313fc3=>_0x313fc3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xe7ecde,this['_localUser']=_0x166ada,this['_config']=_0x5524e8,_0x5524e8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3d5471(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x273cde}=this['_config'];this['commentsListView']=new _0x273cde(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',_0x25ecd9=>_0x25ecd9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x29a693,_0x220a88)=>_0x29a693||!!_0x220a88);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x197f87}=this['_config'],_0x55b7c4=new _0x197f87(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x44d810=_0x55b7c4['commentInputView'];return _0x55b7c4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x44d810,'value',(_0x54945a,_0xbbb588,_0x957f71)=>!!_0x957f71||_0x54945a&&!_0xbbb588),_0x44d810['on']('submit',(_0x524d51,_0x23d2b3)=>{this['fire']('addComment',_0x23d2b3),_0x44d810['editor']['setData']('');}),_0x44d810['on']('cancel',()=>this['focus']()),_0x44d810['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x55b7c4;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x6711b8,_0x372792,_0x3f53cd,_0x301d69){super(_0x6711b8,_0x372792,_0x3f53cd,_0x301d69),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ba025=>_0x5ba025&&_0x5ba025[0x0]?_0x5ba025[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3cb8c1,_0x3e297e)=>{let _0xb1b077='';for(const _0x42f9ad of _0x3cb8c1)_0xb1b077+='<p>'+ls(_0x42f9ad['content'],_0x42f9ad['color'])+'</p>';return _0x3e297e?_0xb1b077:ti(_0xb1b077,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x301d69['SuggestionView'](_0x6711b8,_0x372792,{'formatDateTime':_0x301d69['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 _0x60e98a=this['bindTemplate'],_0x2b7ced=[this['suggestionView']];return this['commentsListView']&&_0x2b7ced['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2b7ced['push'](this['commentThreadInputView']),_0x2b7ced['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x60e98a['if']('isActive','ck-suggestion-wrapper--active'),_0x60e98a['to']('type',_0x4f0508=>'ck-suggestion-'+_0x4f0508),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':_0x60e98a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2b7ced};}['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 _0x36f767{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x56b354,_0x51be7b,_0x3dc81b){super(_0x56b354),this['_model']=_0x51be7b,this['_config']=_0x3dc81b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x51be7b),this['acceptButton']=this['_createButton'](c(_0x56b354,'Accept\x20suggestion'),_0x516f82,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x56b354,'Discard\x20suggestion'),_0x40ee79,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3cca20(_0x56b354,_0x51be7b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x46b370([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x411687(),this['keystrokes']=new _0x5036c6(),this['focusCycler']=new _0x1ec038({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5952a3=>_0x5952a3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x364de7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x364de7['innerHTML']=this['description'],this['on']('change:description',(_0x938b6d,_0x44453b,_0x5f34c7)=>{_0x364de7['innerHTML']=_0x5f34c7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x158582=this['bindTemplate'],_0x5ba265=[{'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':_0x158582['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x158582['to']('authoredAt',_0x332cb4=>this['_config']['formatDateTime'](_0x332cb4))}]}]},{'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']&&_0x5ba265['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':_0x5ba265}]};}['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'](_0x15fc6f,_0x6d8caf,_0x477d5c,_0x3a5a22,_0x5e7647){const _0x122b93=new _0x400f94(this['locale']);return _0x122b93['set']({'label':_0x15fc6f,'icon':_0x6d8caf,'tooltip':!0x0,'tooltipPosition':_0x5e7647}),_0x122b93['extendTemplate']({'attributes':{'class':_0x477d5c}}),_0x122b93['on']('execute',()=>{this['fire'](_0x3a5a22,this['_model']['id']);}),_0x122b93;}['_setupKeyboardNavigation'](){const _0x5d577d=this['element'];this['keystrokes']['listenTo'](_0x5d577d);for(const _0x216b78 of this['focusables'])this['focusTracker']['add'](_0x216b78['element']),this['keystrokes']['listenTo'](_0x216b78['element']);this['keystrokes']['set']('enter',(_0xd59a4a,_0x2cab2a)=>{_0x5d577d===_0xd59a4a['target']&&(this['focusCycler']['focusFirst'](),_0x2cab2a());}),this['keystrokes']['set']('esc',(_0x1eab00,_0x109626)=>{_0x5d577d!==_0x1eab00['target']&&(this['focus'](),_0x109626());});}}class d extends _0x59f721{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x182af8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x288edc){super(_0x288edc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x7b8d2f=this['editor']['config'];_0x7b8d2f['define']('trackChanges.SuggestionThreadView',fe),_0x7b8d2f['define']('trackChanges.SuggestionView',we),_0x7b8d2f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x7b8d2f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5b55be,_0x2505fe){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xaf32dd,_0x2944f1]of this['_handleControllerBuffer']){const _0x51078e=this['_suggestionToController']['has'](_0xaf32dd);_0x51078e||_0x2944f1?_0x51078e&&_0x2944f1&&this['_destroyController'](_0xaf32dd):this['_initializeController'](_0xaf32dd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5b55be,_0x2505fe);}['init'](){const _0xe674d1=this['editor'],_0x4bc41e=_0xe674d1['plugins']['get']('TrackChangesEditing'),_0x1f62cf=_0xe674d1['plugins']['get']('Annotations'),_0x85fafb=_0xe674d1['plugins']['get']('EditorAnnotations'),_0x2a31f4=_0xe674d1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x85fafb['addSourceCollector'](()=>{const _0x23aebd=[];for(const [_0x460f00,_0x550e9a]of Array['from'](this['_suggestionToController'])){const _0x4f749c=_0x460f00['getAllAdjacentSuggestions'](),_0x5944c8=[];for(const _0x2f511f of _0x4f749c){if(!_0x2f511f['isInContent'])continue;if(_0x2f511f['isMultiRange']){_0x5944c8['push'](..._0x2f511f['getRanges']());continue;}const _0x297c5e=_0x2f511f['getFirstRange']();if(_0x5944c8['length']>0x0){const _0x1b0d5f=_0x5944c8[0x0]['getJoined'](_0x297c5e);if(_0x1b0d5f){_0x5944c8[0x0]=_0x1b0d5f;continue;}}_0x5944c8['push'](_0x297c5e);}_0x23aebd['push']([_0x550e9a['view'],_0x5944c8]);}return _0x23aebd;}),this['listenTo'](_0x4bc41e,'suggestionLoaded',(_0x56ffa0,_0x4c865c)=>{this['listenTo'](_0x4c865c,'change:previous',(_0x3d6dd6,_0x2f789f,_0x271edb,_0x432874)=>{_0x4c865c['isInContent']&&(null==_0x271edb?(this['_updateController'](_0x432874['head']),this['_handleSuggestionControllerDelayed'](_0x4c865c,!0x1)):(this['_updateController'](_0x271edb['head']),null==_0x432874&&this['_handleSuggestionControllerDelayed'](_0x4c865c,!0x0)));}),null!==_0x4c865c['previous']?this['_updateController'](_0x4c865c['head']):this['_handleSuggestionControllerDelayed'](_0x4c865c,!0x1);}),this['listenTo'](_0x4bc41e,'suggestionUnloaded',(_0x1021b8,_0x2b9a96,_0x46ba29)=>{this['stopListening'](_0x2b9a96,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b9a96),this['_suggestionToController']['has'](_0x2b9a96)&&this['_destroyController'](_0x2b9a96),_0x46ba29&&this['_updateController'](_0x46ba29['head']);}),this['listenTo'](_0x4bc41e,'suggestionChanged',(_0x57e394,_0x178cb3)=>{this['_updateController'](_0x178cb3);}),this['listenTo'](_0x1f62cf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a31f4,'addComment',(_0x357610,{threadId:_0x371813,isFromAdapter:_0x2f904e})=>{if(_0x2f904e||!_0x4bc41e['hasSuggestion'](_0x371813))return;const _0x52165e=_0x4bc41e['getSuggestion'](_0x371813);this['_suggestionToController']['get'](_0x52165e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x18d3a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d90cc;for(const _0x472042 in _0x18d3a7){const _0x428fca=_0x472042,_0x24d35b=_0x18d3a7[_0x428fca];if('trackChangesLicenseKeyValid'==_0x24d35b||'trackChangesLicenseKeyInvalid'==_0x24d35b||'trackChangesLicenseKeyExpired'==_0x24d35b||'trackChangesLicenseKeyDomainLimit'==_0x24d35b||'trackChangesLicenseKeyNotAllowed'==_0x24d35b||'trackChangesLicenseKeyEvaluationLimit'==_0x24d35b||'trackChangesLicenseKeyTrialLimit'==_0x24d35b||'trackChangesLicenseKeyUsageLimit'==_0x24d35b){delete _0x18d3a7[_0x428fca],_0x5d90cc=_0x24d35b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x464cd4=this['editor']['plugins']['get']('Annotations'),_0x7f97d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x531328=Array['from'](_0x464cd4['activeAnnotations'],_0x5bf7a3=>_0x5bf7a3['innerView'])['filter'](_0x327468=>this['_viewToController']['has'](_0x327468)),_0xf7d39c=[];for(const _0x3df476 of _0x531328){const _0x30de68=this['_viewToController']['get'](_0x3df476)['model']['getAllAdjacentSuggestions']();_0xf7d39c['push'](..._0x30de68['reduce']((_0x244724,_0x388d2d)=>[..._0x244724,..._0x388d2d['getMarkerNames']()],[]));}_0x7f97d2['activeMarkers']=_0xf7d39c;}['_addUIComponentsToFactory'](){const _0x338741=this['editor'],_0x57a78e=_0x338741['locale'],_0x152013=c(_0x57a78e,'Track\x20changes'),_0x37c8c0=new _0x29a520([{'type':'switchbutton','model':new _0x423a90({'withText':!0x0,'isToggleable':!0x0,'label':_0x152013,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x338741['plugins']['has']('TrackChangesPreview')&&_0x37c8c0['addMany']([{'type':'separator'},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2c90f9 of _0x37c8c0)if(ke(_0x2c90f9)){const _0x13418a=_0x338741['commands']['get'](_0x2c90f9['model']['commandName']);_0x2c90f9['model']['bind']('isOn','isEnabled')['to'](_0x13418a,'value','isEnabled');}_0x338741['ui']['componentFactory']['add']('trackChanges',_0x39475d=>this['_createToolbarButton'](_0x39475d,_0x37c8c0,_0x152013)),_0x338741['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2f81c4=>this['_createMenuBarMenu'](_0x2f81c4,_0x37c8c0,_0x152013));}['_createToolbarButton'](_0x5d8a7e,_0x5c0e1f,_0x8a63fb){const _0x191b29=_0x471bad(_0x5d8a7e,_0x1aed8c),_0x1fe4cb=this['editor']['commands']['get']('trackChanges');_0x191b29['buttonView']['set']({'tooltip':_0x8a63fb,'label':_0x8a63fb,'icon':_0x3c6561}),_0x191b29['buttonView']['bind']('isOn')['to'](_0x1fe4cb,'value'),_0x191b29['buttonView']['on']('execute',()=>{_0x1fe4cb['execute'](),this['editor']['editing']['view']['focus']();}),_0x386c3e(_0x191b29,_0x5c0e1f,{'role':'menu'});const _0x407896=[];for(const _0x45f7ba of _0x5c0e1f)ke(_0x45f7ba)&&_0x407896['push'](this['editor']['commands']['get'](_0x45f7ba['model']['commandName']));const _0x2f9c7a=_0x191b29['buttonView'];return _0x2f9c7a['actionView']['unbind']('isEnabled'),_0x2f9c7a['arrowView']['unbind']('isEnabled'),_0x2f9c7a['actionView']['bind']('isEnabled')['to'](_0x1fe4cb,'isEnabled'),_0x2f9c7a['arrowView']['bind']('isEnabled')['toMany'](_0x407896,'isEnabled',(..._0x50d9dc)=>_0x50d9dc['some'](_0x35e492=>_0x35e492)),_0x191b29['on']('execute',_0x2a89e4=>{this['editor']['execute'](_0x2a89e4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x191b29;}['_createMenuBarMenu'](_0x221489,_0x47075f,_0x4c4ece){const _0x306e12=new _0x192111(_0x221489),_0x1f8f9f=this['editor']['commands']['get']('trackChanges');_0x306e12['buttonView']['set']({'label':_0x4c4ece,'icon':_0x3c6561});const _0x276b17=new _0x364d3b(_0x221489);for(const _0xd367f9 of _0x47075f){if('separator'==_0xd367f9['type']){_0x276b17['items']['add'](new _0x11b1e0(_0x221489));continue;}const _0x48dbdc=new _0x22223f(_0x221489,_0x306e12),_0x455c7b=new _0x112160(_0x221489),_0x431312=_0xd367f9['model'];_0x455c7b['bind'](...Object['keys'](_0x431312))['to'](_0x431312),_0x455c7b['delegate']('execute')['to'](_0x306e12),_0x455c7b['on']('execute',()=>{this['editor']['execute'](_0x431312['commandName']),this['editor']['editing']['view']['focus']();}),_0x48dbdc['children']['add'](_0x455c7b),_0x276b17['items']['add'](_0x48dbdc);}return _0x306e12['bind']('isEnabled')['to'](_0x1f8f9f,'isEnabled'),_0x306e12['panelView']['children']['add'](_0x276b17),_0x306e12;}['_initializeController'](_0x2ac1c6){const _0x446592=this['editor'],_0x16eda1=_0x446592['config'],_0x1784f0=_0x446592['plugins']['get']('Annotations'),_0x36d20f=_0x446592['plugins']['get']('CommentsRepository'),_0x1989b6=_0x446592['plugins']['get']('EditorAnnotations'),_0x3aaf84=_0x446592['plugins']['get'](_0x182af8)['me'],_0x42e630=_0x16eda1['get']('trackChanges')['SuggestionThreadView'],_0x17e61d=_0x16eda1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x402d56,CommentThreadInputView:_0x38bb26}=_0x446592['plugins']['get']('CommentsUI');let _0x5ee2c4,_0x1d4c53,_0x34e14a;this['_annotationViews']['has'](_0x2ac1c6['id'])?(_0x1d4c53=this['_annotationViews']['get'](_0x2ac1c6['id']),_0x5ee2c4=_0x1d4c53['mainView']):(_0x5ee2c4=new _0x42e630(_0x446592['locale'],_0x2ac1c6,_0x3aaf84,{'disableComments':this['_disableComments'],'editorConfig':{..._0x16eda1['get']('comments.editorConfig'),'licenseKey':_0x16eda1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x16eda1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x16eda1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x16eda1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x597a50(_0x16eda1['get']('locale'),_0x446592['locale']),'CommentView':_0x16eda1['get']('comments')['CommentView'],'CommentsListView':_0x402d56,'CommentThreadInputView':_0x38bb26,'SuggestionView':_0x17e61d}),_0x5ee2c4['suggestionView']['acceptButton']['on']('execute',()=>{_0x446592['editing']['view']['focus']();}),_0x5ee2c4['suggestionView']['discardButton']['on']('execute',()=>{_0x446592['editing']['view']['focus']();}),_0x1d4c53=_0x1784f0['createAnnotationView'](this['editor']['locale'],_0x5ee2c4),_0x1d4c53['bind']('isDirty')['to'](_0x5ee2c4,'isDirty'),_0x1d4c53['bind']('length')['to'](_0x5ee2c4),_0x1d4c53['bind']('type')['to'](_0x5ee2c4,'type',_0x8873ee=>'suggestion-'+_0x8873ee),_0x5ee2c4['on']('escape',()=>{_0x34e14a['fire']('escape');}),this['_annotationViews']['set'](_0x2ac1c6['id'],_0x1d4c53));const _0x41daeb=_0x36d20f['createCommentThreadController'](_0x2ac1c6['commentThread'],_0x5ee2c4),_0x4a77a0=new pe(_0x446592,_0x2ac1c6,_0x5ee2c4,_0x41daeb),_0x524775=_0x2ac1c6['getAllAdjacentSuggestions']()['filter'](_0x3379a5=>_0x3379a5['isInContent']);_0x5ee2c4['descriptionParts']=_0x446592['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x524775),this['_suggestionToController']['set'](_0x2ac1c6,_0x4a77a0),this['_viewToController']['set'](_0x5ee2c4,_0x4a77a0),_0x34e14a=_0x1784f0['createAnnotation']({'view':_0x1d4c53,'target':()=>{const _0x3bc8c0=[],_0x48a65d=_0x2ac1c6['getAllAdjacentSuggestions']()['filter'](_0x5dd874=>_0x5dd874['isInContent']);for(const _0x4e0ced of _0x48a65d)_0x3bc8c0['push'](..._0x4e0ced['getMarkers']());return _0x2492d1(_0x446592['editing'],_0x3bc8c0);},'type':()=>'suggestion-'+_0x4a77a0['view']['type']}),_0x36d20f['_bindAnnotationToEditors'](_0x5ee2c4,_0x34e14a),_0x1784f0['add'](_0x34e14a),_0x1989b6['registerAnnotation'](_0x34e14a);}['_destroyController'](_0x59028e){const _0x18ec5a=this['editor']['plugins']['get']('CommentsRepository'),_0x29c5c6=this['editor']['plugins']['get']('Annotations'),_0x57d2ac=this['_suggestionToController']['get'](_0x59028e),_0xbb355d=_0x57d2ac['view'],_0x2cc45f=_0x29c5c6['getByInnerView'](_0xbb355d);_0x18ec5a['_unbindEditors'](_0xbb355d),_0x2cc45f&&_0x29c5c6['remove'](_0x2cc45f),this['_suggestionToController']['delete'](_0x59028e),this['_viewToController']['delete'](_0xbb355d),_0x57d2ac['destroy']();}['_updateController'](_0x522309){if(!_0x522309['isInContent']||!this['_suggestionToController']['has'](_0x522309))return;const _0x19f920=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4828b4=this['_suggestionToController']['get'](_0x522309),_0x2747fe=_0x522309['getAllAdjacentSuggestions']();_0x4828b4['view']['descriptionParts']=_0x19f920['descriptionFactory']['getDescriptions'](_0x2747fe);}['destroy'](){for(const _0x50438d of this['_suggestionToController']['keys']())this['_destroyController'](_0x50438d);for(const _0x28b271 of this['_annotationViews']['values']())_0x28b271['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x13d4c8){return'model'in _0x13d4c8;}class k extends _0x59f721{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x349424){this['editor']['plugins']['get'](p)['adapter']=_0x349424;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xcb962f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xcb962f);}['getSuggestions']({skipNotAttached:_0x236f29=!0x1,toJSON:_0xa0ab92=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x236f29,'toJSON':_0xa0ab92});}['getSuggestion'](_0x2f5c6b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2f5c6b);}}const w=['Pagination'];class T extends _0x59f721{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3da459=this['editor'];if(_0x3da459['config']['define']('trackChangesData.editorCreator',_0x469e09=>{const _0x19d290=_0x3da459['model']['document']['getRootNames']()['reduce']((_0x40d6d1,_0x3d3d77)=>(_0x40d6d1[_0x3d3d77]='',_0x40d6d1),{});return _0x3da459['constructor']['create'](_0x19d290,_0x469e09);}),'function'!=typeof _0x3da459['config']['get']('trackChangesData')['editorCreator'])throw new _0x280f1c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x283332){return N(this['editor'],!0x0,_0x283332);}['getDataWithDiscardedSuggestions'](_0x302ade){return N(this['editor'],!0x1,_0x302ade);}}class D extends _0x59f721{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25ede9){function _0x5e4513(_0x9dcff5){return _0x9dcff5['map'](_0x410343=>String['fromCharCode'](_0x410343))['join']('');}super(_0x25ede9),this['result']='end',_0x25ede9[_0x5e4513([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e4513([0x76,0x69,0x65,0x77])][_0x5e4513([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e4513([0x61,0x75,0x74,0x6f]),_0x25ede9[_0x5e4513([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5e4513([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e4513([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5e4513([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5e4513([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(_0x508518){return void 0x0!==_0x508518['getRootsAttributes'];}async function N(_0x14b818,_0xf22f48,_0x443aa8){const _0x177acc=_0x3d709e(_0x14b818,w);_0x177acc['plugins']['push'](p,D),_0x177acc['rootsAttributes']=Ge(_0x14b818)?_0x14b818['getRootsAttributes']():void 0x0;const _0x4e7091=document['createDocumentFragment'](),_0x3d28c7=_0x14b818['config']['get']('trackChangesData')['editorCreator'],_0x365bb1=await _0x3d28c7(_0x177acc,()=>function(_0x4bd1f4){const _0x30b179=document['createElement']('div');return _0x4bd1f4['appendChild'](_0x30b179),_0x30b179;}(_0x4e7091));!function(_0x3df490,_0x3d8c4a){const _0x13fa1d=_0x3df490['model']['document']['getRootNames']()['reduce']((_0x81a677,_0x3119a2)=>(_0x81a677[_0x3119a2]=_0x3df490['data']['get']({'rootName':_0x3119a2}),_0x81a677),{}),_0x11e72c=_0x3df490['plugins']['get']('Users')['users']['map'](_0x11dfb7=>({'id':_0x11dfb7['id'],'name':_0x11dfb7['name']})),_0x261d3e=_0x3df490['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a4493=_0x3df490['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x373331=_0x3d8c4a['plugins']['get']('Users'),_0x35990a=_0x3d8c4a['plugins']['get']('TrackChangesEditing'),_0x4a7289=_0x3d8c4a['plugins']['get']('CommentsRepository');for(const _0x63e972 of _0x4a7289['getCommentThreads']())_0x63e972['remove']();for(const _0x4f6031 of _0x11e72c)_0x373331['getUser'](_0x4f6031['id'])||_0x373331['addUser'](_0x4f6031);_0x373331['me']||_0x373331['useAnonymousUser']();for(const _0x4ab0b2 of _0x5a4493)_0x4a7289['addCommentThread'](_0x4ab0b2);for(const _0x3708b4 of _0x261d3e)_0x35990a['addSuggestionData'](_0x3708b4);_0x3d8c4a['data']['set'](_0x13fa1d);}(_0x14b818,_0x365bb1),_0x365bb1['execute'](_0xf22f48?'acceptAllSuggestions':'discardAllSuggestions');const _0xfc79e1=Ge(_0x365bb1)?_0x365bb1['getFullData'](_0x443aa8):_0x365bb1['data']['get'](_0x443aa8);return await _0x365bb1['destroy'](),_0xfc79e1;}class Me extends _0x36f767{['options'];constructor(_0x5aa68e,_0x87bf42){super(_0x5aa68e),this['options']=_0x87bf42,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'](_0x391e99,_0x5356e3){if(!this['element'])return;const _0x199788=[];for(const [_0x360930,_0x32f661]of _0x391e99){const _0x149987=document['createElement']('div');_0x149987['setAttribute']('data-ck-root-name',_0x360930),_0x149987['className']=_0x32f661['classes']+'\x20ck-track-changes-preview__root-container',_0x149987['innerHTML']=_0x32f661['content'],_0x199788['push'](_0x149987);}_0x5356e3(this['element'],_0x199788),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3c6e3f{constructor(_0x10b2b7){super(_0x10b2b7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1f5354=this['editor'],_0x486661=_0x1f5354['locale'],_0x21d08a=_0x1f5354['plugins']['get']('Dialog');let _0x2fb15b;const _0x8b55e6=function(_0x265ded){const _0x52cfb9={};if('editables'in _0x265ded['ui']['view']){for(const [_0x4ff507,_0x48924c]of Object['entries'](_0x265ded['ui']['view']['editables']))_0x52cfb9[_0x4ff507]=_0x48924c['element'];}else _0x52cfb9[_0x265ded['model']['document']['getRootNames']()[0x0]]=_0x265ded['ui']['view']['editable']['element'];return _0x52cfb9;}(_0x1f5354),_0x353948=function(_0x44ee89){let _0x21dc85=0x0;for(const _0x105cc2 of Object['values'](_0x44ee89))_0x21dc85=Math['max'](_0x21dc85,_0x105cc2['getBoundingClientRect']()['width']);let _0x512dde=0x0;for(const _0x44e1e8 of Object['values'](_0x44ee89))_0x512dde+=_0x44e1e8['getBoundingClientRect']()['height'];const _0x31db4d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x155b96=Math['min'](_0x512dde,_0x31db4d);return{'width':_0x21dc85,'height':_0x155b96};}(_0x8b55e6);_0x21d08a['show']({'id':'finalContentPreview','title':c(_0x486661,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x486661,{'dialogRects':_0x353948}),'onHide':()=>{_0x2fb15b['detachFromDom']();},'onShow':()=>{_0x1f5354['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x41dd3c=>{const _0x54e2c7=this['_standarizeRootsData'](_0x41dd3c,_0x1f5354,_0x8b55e6);_0x21d08a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54e2c7,_0x1f5354['config']['get']('trackChanges.preview.renderFunction'));}),_0x2fb15b=new _0x529ec8(_0x486661,[_0x21d08a['view']]),_0x2fb15b['attachToDom'](),_0x2fb15b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1f5354['once']('destroy',()=>{_0x2fb15b['detachFromDom']();});const _0x23da21=_0x21d08a['view']['headerView']['class'];_0x21d08a['view']['headerView']['class']=_0x23da21?_0x23da21+'\x20ck-reset_all':'ck-reset_all',_0x21d08a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x21d08a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x32cc92=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4d4b0e=_0x32cc92['previewMode'],_0x120958={};if('$labels'===_0x4d4b0e){for(const _0xac6371 of _0x32cc92['getMergeFieldsIds']())_0x120958[_0xac6371]=_0x32cc92['getLabel'](_0xac6371)||_0xac6371;}else{const _0x550bc7='$defaultValues'===_0x4d4b0e?_0x32cc92['getDefaultValues']():_0x32cc92['getDataSetValues'](_0x4d4b0e,!0x0);for(const _0xd0d416 of Object['entries'](_0x550bc7)){const [_0x5eda44,_0x11a4d4]=_0xd0d416;_0x120958[_0x5eda44]=null!==_0x11a4d4?_0x11a4d4:_0x32cc92['getLabel'](_0x5eda44)||_0x5eda44;}}return{'mergeFieldsData':_0x120958};}['_standarizeRootsData'](_0x188ffe,_0xe7f978,_0x499a50){let _0x3189bd;if('string'==typeof _0x188ffe){const _0x46e904=_0xe7f978['model']['document']['getRootNames']()[0x0];_0x3189bd={[_0x46e904]:_0x188ffe};}else _0x3189bd=_0x188ffe;const _0x344dfb=this['_fixMediaEmbeds'](_0x3189bd,_0xe7f978),_0x1de694=function(_0x23972b,_0x4c1c86){for(const [_0x2c378b,_0x343532]of _0x23972b)_0x343532['classes']=_0x4c1c86[_0x2c378b]['classList']['value']['replace']('ck-focused','');return _0x23972b;}(this['_sortRoots'](_0xe7f978)['reduce']((_0x17b020,_0x12b71e)=>(_0x17b020['push']([_0x12b71e,{'content':_0x344dfb[_0x12b71e],'classes':''}]),_0x17b020),[]),_0x499a50);return _0x1de694;}['_fixMediaEmbeds'](_0xd2d24f,_0x17ff38){if(!_0x17ff38['plugins']['has']('MediaEmbedEditing'))return _0xd2d24f;const _0x51e73c=_0x17ff38['plugins']['get']('MediaEmbedEditing');for(const [_0x37d0de,_0xf2e352]of Object['entries'](_0xd2d24f)){const _0x4dcba8=document['createElement']('div');_0x4dcba8['innerHTML']=_0xf2e352,(_0x4dcba8['querySelectorAll']('figure.media')['forEach'](_0x22e043=>{const _0x27eb2c=_0x22e043['querySelector']('oembed');if(_0x27eb2c){const _0x2dd8d7=_0x27eb2c['getAttribute']('url');if(_0x2dd8d7){const _0x1cdab2=_0x51e73c['registry']['getMediaViewElement'](new _0x34e4ea(_0x17ff38['editing']['view']['document']),_0x2dd8d7,{'elementName':'','renderForEditingView':!0x0}),_0x46cc48=document['createElement']('div');_0x46cc48['classList']['add']('ck-media__wrapper'),_0x1cdab2['render'](_0x46cc48,_0x17ff38['editing']['view']['domConverter']),_0x27eb2c['replaceWith'](_0x46cc48);}}}),_0xd2d24f[_0x37d0de]=_0x4dcba8['innerHTML']);}return _0xd2d24f;}['_sortRoots'](_0x333821){if(!function(_0x36e51c){return void 0x0!==_0x36e51c['getRootsAttributes'];}(_0x333821))return _0x333821['model']['document']['getRootNames']();const _0x88d5e1=[],_0x4554bf=new Map();for(const _0x19ed62 of _0x333821['model']['document']['getRootNames']()){const _0x362e50=_0x333821['editing']['view']['getDomRoot'](_0x19ed62)['getClientRects']()['item'](0x0);_0x88d5e1['push'](_0x19ed62),_0x4554bf['set'](_0x19ed62,_0x362e50);}return _0x88d5e1['sort']((_0x50511a,_0x28bb67)=>{const _0x3c299d=_0x4554bf['get'](_0x50511a),_0x12ca3f=_0x4554bf['get'](_0x28bb67);return _0x3c299d['y']-_0x12ca3f['y']||_0x3c299d['x']-_0x12ca3f['x'];}),_0x88d5e1;}}class te extends _0x59f721{static get['requires'](){return[T,_0x51c057];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7a8dd3){super(_0x7a8dd3),_0x7a8dd3['commands']['add']('previewFinalContent',new re(this['editor'])),_0x7a8dd3['config']['define']('trackChanges.preview.renderFunction',(_0x2f442e,_0x71c5d7)=>{for(const _0xb185f5 of _0x71c5d7)_0x2f442e['appendChild'](_0xb185f5);});}}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 _0x334ec3,Plugin as _0x5575fe,PendingActions as _0x1e5ef8}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x840840,ObservableMixin as _0xc1a90b,uid as _0x1526c3,priorities as _0x2dda8a,insertToPriorityArray as _0x35266b,toArray as _0x4eacd5,logWarning as _0x7bbe75,getEnvKeystrokeText as _0x2ee9fd,FocusTracker as _0x203964,KeystrokeHandler as _0x24e332,Collection as _0x412f5d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3b1a58,IconCancel as _0x774a8b,IconTrackChanges as _0x3ccc1d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x288e8f,View as _0x2922bf,ViewCollection as _0x377fd0,FocusCycler as _0x4b9246,ViewModel as _0x14e505,createDropdown as _0x24b707,SplitButtonView as _0x5f2e56,addListToDropdown as _0x2dd363,MenuBarMenuView as _0x45eb33,MenuBarMenuListView as _0x24e4b9,ListSeparatorView as _0x1f7a58,MenuBarMenuListItemView as _0x207990,MenuBarMenuListItemButtonView as _0x502a3d,BodyCollection as _0x36d5ab,Dialog as _0x1b10b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x39fba1,hashObject as _0x3429f2,surroundingMarkersDetector as _0x5da952,FOCUS_ANNOTATION_KEYSTROKE as _0x2a94e6,AriaDescriptionView as _0x402f1e,setupThreadKeyboardNavigation as _0x39dc9a,trimHtml as ti,UserView as _0x48854b,LateFocusButtonView as _0x2214e7,getDateTimeFormatter as _0x5f5751,getAllMarkersDomElementsSorted as _0x385d59,sanitizeEditorConfig as _0xd65147}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x323e08,LiveRange as _0x34c04c,LivePosition as _0x12b057,DowncastWriter as _0x1b7cf1}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x327007,toWidget as _0x32bc39}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3928a0,set as _0x5c561e,isEqual as _0x550687,unset as _0x3d6d6f,omit as Ft}from'es-toolkit/compat';import{Delete as _0x2fb98e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x182741}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3243fa}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x334ec3{['_enabledCommands'];constructor(_0x37f4ae,_0x20467e){super(_0x37f4ae),this['_enabledCommands']=_0x20467e,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 _0xd3b14f of this['editor']['commands']['commands']())_0xd3b14f['affectsData']&&!this['_enabledCommands']['has'](_0xd3b14f)&&_0xd3b14f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4f8645 of this['editor']['commands']['commands']())_0x4f8645['affectsData']&&!this['_enabledCommands']['has'](_0x4f8645)&&_0x4f8645['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x334ec3{['_suggestions'];constructor(_0x48df20,_0x1805c0){super(_0x48df20),this['_suggestions']=_0x1805c0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ed301){const _0xfe53f6=this['_suggestions']['get'](_0x3ed301);if(!_0xfe53f6)throw new _0x840840('track-changes-accept-suggestion-not-found',this);const _0x5438c5=_0xfe53f6['getRanges']();this['editor']['model']['canEditAt'](_0x5438c5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xfe53f6);}}class O extends _0x334ec3{['_suggestions'];constructor(_0xf97d9f,_0x24158f){super(_0xf97d9f),this['_suggestions']=_0x24158f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x261f74){const _0x1a0e6e=this['_suggestions']['get'](_0x261f74);if(!_0x1a0e6e)throw new _0x840840('track-changes-discard-suggestion-not-found',this);const _0x28f15d=_0x1a0e6e['getRanges']();this['editor']['model']['canEditAt'](_0x28f15d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1a0e6e);}}function ls(_0x54b2ee,_0x43d6e5){let _0x22f33d='';return _0x22f33d+=_0x54b2ee['split']('*')['map']((_0x4289d0,_0x47cb0a)=>_0x47cb0a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4289d0)+'</span>':nn(_0x4289d0))['join'](''),_0x43d6e5&&(_0x22f33d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x43d6e5['value']+'\x22\x20title=\x22'+_0x43d6e5['title']+'\x22></span>'),_0x22f33d;}function nn(_0x4325d3){const _0x4827b9=document['createElement']('span');return _0x4827b9['innerText']=_0x4325d3,_0x4827b9['innerHTML'];}function ts(_0x228705){return _0x228705['sort']((_0x4ca848,_0x571647)=>'deletion'==_0x4ca848['type']&&'deletion'!=_0x571647['type']?-0x1:'deletion'!=_0x4ca848['type']&&'deletion'==_0x571647['type']?0x1:0x0);}function to(_0x192364,_0x4b58a5){let _0x3ee318,_0x1cfb82=0x0;const _0x1e657a=[],_0x59d963=_0x4b58a5['schema'];for(;_0x1cfb82<_0x192364['length'];){const _0x29bbdd=_0x192364[_0x1cfb82],_0x4d0d5e=_0x192364[_0x1cfb82+0x1];_0x3ee318||(_0x3ee318=_0x4b58a5['createPositionBefore'](_0x29bbdd)),on(_0x4b58a5,_0x29bbdd,_0x4d0d5e)||(_0x1e657a['push'](_0x4b58a5['createRange'](_0x3ee318,_0x59d963['isObject'](_0x29bbdd)?_0x4b58a5['createPositionAfter'](_0x29bbdd):_0x4b58a5['createPositionAt'](_0x29bbdd,'end'))),_0x3ee318=null),_0x1cfb82++;}return _0x1e657a;}function on(_0x5d2269,_0x3a3b80,_0x5ac48c){if(!_0x5ac48c)return!0x1;const _0x2b7641=_0x5d2269['createPositionAfter'](_0x3a3b80),_0x51143c=_0x5d2269['createPositionBefore'](_0x5ac48c);return _0x2b7641['isTouching'](_0x51143c);}function rs(_0x79e5b9,_0x20a7eb,_0x3af79d){for(;_0x3af79d['length'];){const _0x2431e6=_0x3af79d['splice'](0x0,0x64);_0x79e5b9['change'](()=>{for(const _0x46ac46 of _0x2431e6)_0x46ac46['isInContent']&&_0x20a7eb['execute'](_0x46ac46['id']);});}}class R extends _0x334ec3{['_command'];['_suggestions'];constructor(_0x3a3dc4,_0x146bf8,_0x1dd859){super(_0x3a3dc4),this['_command']=_0x146bf8,this['_suggestions']=_0x1dd859,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x42d2ee=Array['from'](this['_suggestions']['values']())['some'](_0x47b7db=>_0x47b7db['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x42d2ee;}['execute'](){const _0x165f52=ts(Array['from'](this['_suggestions']['values']()));for(const _0x1eafd2 of _0x165f52){const _0x1a3d7b=_0x1eafd2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1a3d7b))return;}rs(this['editor']['model'],this['_command'],_0x165f52);}}class E extends _0x334ec3{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x111466,_0x444a43,_0x2dcfda){super(_0x111466),this['_command']=_0x444a43,this['_suggestions']=_0x2dcfda,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1991df=this['editor']['model']['document']['selection'],_0x60c34a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1d43df,_0x29ede1){const _0x588b5d=Array['from'](_0x1d43df['getRanges']()),_0x31c331=new Set();for(const _0x50733b of _0x29ede1)if(_0x50733b['isInContent']){for(const _0x192972 of _0x588b5d)for(const _0x44fc7f of _0x50733b['getRanges']())(_0x192972['isIntersecting'](_0x44fc7f)||_0x1d43df['isCollapsed']&&!_0x50733b['isMultiRange']&&_0x50733b['next']&&_0x44fc7f['end']['isTouching'](_0x192972['start']))&&_0x31c331['add'](_0x50733b);}return _0x31c331;}(_0x1991df,_0x60c34a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x510fa8=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4e8496 of _0x510fa8){const _0x42b818=_0x4e8496['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42b818))return;}rs(this['editor']['model'],this['_command'],_0x510fa8);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0xc1a90b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1df10e,_0x6fdc18){super(),this['id']=_0x6fdc18['id'],this['type']=_0x6fdc18['type'],this['subType']=_0x6fdc18['subType']||null,this['author']=_0x6fdc18['author'],this['creator']=_0x6fdc18['creator']||_0x6fdc18['author'],this['isExternal']=Boolean(_0x6fdc18['attributes']&&_0x6fdc18['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x6fdc18['originalSuggestionId']||null,this['_model']=_0x1df10e,this['_onAccept']=_0x6fdc18['onAccept'],this['_onDiscard']=_0x6fdc18['onDiscard'],this['_onAttributesChange']=_0x6fdc18['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6fdc18['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 _0x4bd736=this;for(;_0x4bd736['previous'];)_0x4bd736=_0x4bd736['previous'];return _0x4bd736;}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'](_0x9cafa2){this['_markerNames']['add'](_0x9cafa2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1c4e4d=>this['_model']['markers']['get'](_0x1c4e4d))['filter'](_0x1a0b12=>_0x1a0b12);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4cb516=>{for(const _0x2a39b4 of this['getMarkers']())_0x4cb516['removeMarker'](_0x2a39b4);}),this['_markerNames']['clear']();}['removeMarker'](_0x56c964){this['_model']['change'](_0x416284=>{_0x416284['removeMarker'](_0x56c964);}),this['_markerNames']['delete'](_0x56c964);}['addRange'](_0x232aab){const _0x4f43e4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4f43e4),this['_model']['change'](_0x43710d=>{_0x43710d['addMarker'](_0x4f43e4,{'range':_0x232aab,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2978b8){for(const _0x4eb730 of this['getRanges']())if(_0x4eb730['isIntersecting'](_0x2978b8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x430f47=>_0x430f47['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1ca7f4,_0x1b0642)=>[..._0x1ca7f4,..._0x1b0642['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2c217a=this['getRanges']();if(0x1!=_0x2c217a['length'])return null;const _0x5d0969=_0x2c217a[0x0],_0x4f468f=_0x5d0969['start']['nodeAfter'],_0x3ac609=_0x5d0969['end']['nodeBefore'];return _0x4f468f instanceof _0x323e08?_0x4f468f!=_0x3ac609?null:_0x4f468f: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 _0x329d04=[];let _0x1f3758=this['head'];for(;_0x1f3758;)_0x329d04['push'](_0x1f3758),_0x1f3758=_0x1f3758['next'];return _0x329d04;}['setAttribute'](_0x582dfc,_0x4da1f1){const _0x41a5b8=_0x3928a0(this['attributes']);_0x5c561e(_0x41a5b8,_0x582dfc,_0x4da1f1),_0x550687(_0x41a5b8,this['attributes'])||(this['attributes']=_0x41a5b8,this['_onAttributesChange'](_0x41a5b8));}['removeAttribute'](_0x3cb663){const _0x25d8c4=_0x3928a0(this['attributes']);_0x3d6d6f(_0x25d8c4,_0x3cb663),_0x550687(_0x25d8c4,this['attributes'])||(this['attributes']=_0x25d8c4,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 _0x1526c3()['substr'](0x1,0x5);}}function c(_0x2d6fb3,_0x426b56,_0x48d368){const _0xae7ac2=_0x2d6fb3['t'],t=_0x2d6fb3['t'];switch(_0x426b56){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',_0x48d368);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x48d368);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x48d368);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x48d368);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x48d368);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',_0x48d368);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x48d368);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',_0x48d368);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x48d368);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x48d368);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x48d368);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x48d368);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x48d368);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x48d368);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x48d368);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x48d368);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x48d368);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x48d368);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x48d368);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x48d368);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x48d368);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x48d368);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x48d368);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x48d368);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x48d368);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'},_0x48d368);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x48d368);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x48d368);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x48d368);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x48d368);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x48d368);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x48d368);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x48d368);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'},_0x48d368);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x48d368);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x48d368);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x48d368);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x48d368);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'},_0x48d368);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x48d368);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'},_0x48d368);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'},_0x48d368);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x48d368);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'},_0x48d368);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x48d368);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'},_0x48d368);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x48d368);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x48d368);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'},_0x48d368);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x48d368);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 _0xae7ac2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x48d368);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xae7ac2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x48d368);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x48d368);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'},_0x48d368);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'},_0x48d368);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'},_0x48d368);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x426b56;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3bc5fd,_0x4851d2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3bc5fd,this['_locale']=_0x4851d2;}['getDescriptions'](_0x56e9c3){const _0x602f1e=[],_0x2c8c52=new Set(),_0x5eb433=new Set();for(let _0x4eeb4d=0x0;_0x4eeb4d<_0x56e9c3['length'];_0x4eeb4d++){const _0x19b0ed=_0x56e9c3[_0x4eeb4d];if(!_0x19b0ed['isInContent'])continue;const _0x487d5e=this['_handleCustomCallbackDescription'](_0x19b0ed);if(_0x487d5e){if(null!=_0x19b0ed['subType']){if(_0x2c8c52['has'](_0x19b0ed['subType']))continue;_0x2c8c52['add'](_0x19b0ed['subType']);}_0x602f1e['push'](_0x487d5e);}else{if('attribute'!=_0x19b0ed['type'])'insertion'!=_0x19b0ed['type']&&'deletion'!=_0x19b0ed['type']||this['_handleInsertRemoveSuggestionDescription'](_0x602f1e,_0x19b0ed,_0x56e9c3[_0x4eeb4d+0x1]);else{const _0x5cd5af=_0x19b0ed['data']['key'];if(_0x5eb433['has'](_0x5cd5af))continue;_0x5eb433['add'](_0x19b0ed['data']['key']),_0x5cd5af==u?this['_handleRenameSuggestionDescription'](_0x602f1e,_0x19b0ed):this['_handleAttributeSuggestionDescription'](_0x602f1e,_0x19b0ed);}}}return this['_resolveDescriptionItems'](_0x602f1e);}['registerDescriptionCallback'](_0x16af2b){this['_customCallbacks']['push'](_0x16af2b);}['registerElementLabel'](_0x5cfd9b,_0x1c1c24,_0x5415d8=_0x2dda8a['normal']){'function'==typeof _0x5cfd9b?_0x35266b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5cfd9b,'label':_0x1c1c24,'priority':_0x5415d8}):this['_itemLabels']['set'](_0x5cfd9b,_0x1c1c24);}['registerAttributeLabel'](_0x1c81c6,_0x431ceb){this['_attributeLabels']['set'](_0x1c81c6,_0x431ceb);}['getItemLabel'](_0x55079c,_0x30b934=0x1){let _0x41b29f;for(const _0x400de5 of this['_itemLabelsCallbacks'])if(_0x400de5['matchingCallback'](_0x55079c)){_0x41b29f=_0x400de5['label'];break;}return _0x41b29f||(_0x41b29f=this['_itemLabels']['get'](_0x55079c['name'])),_0x41b29f?_0x41b29f(_0x30b934):0x1!==_0x30b934?_0x30b934+'\x20'+_0x55079c['name']+'s':''+_0x55079c['name'];}['_addDescriptionItems'](_0x5f42e6,_0x18d4e7){const _0x2d6651=_0x18d4e7['getFirstRange']()['getWalker'](),_0x52d336='insertion'==_0x18d4e7['type']?'add':'remove';for(const _0x3bd25e of _0x2d6651){const _0x2b753d=_0x3bd25e['item'],_0x3fae57=_0x5f42e6[_0x5f42e6['length']-0x1];if(_0x2b753d['is']('$textProxy'))_0x3fae57&&_0x3fae57['type']['indexOf']('Container')>-0x1&&_0x5f42e6['pop'](),_0x3fae57&&'text'==_0x3fae57['type']?_0x3fae57[_0x52d336]+=_0x2b753d['data']:_0x5f42e6['push']({'type':'text','add':'add'==_0x52d336?_0x2b753d['data']:'','remove':'remove'==_0x52d336?_0x2b753d['data']:''});else{if(this['_schema']['isObject'](_0x2b753d)){const _0x572163=_0x2b753d;if(_0x3fae57&&_0x3fae57['type']['indexOf']('Container')>-0x1&&_0x5f42e6['pop'](),'elementEnd'==_0x3bd25e['type'])continue;_0x3fae57&&_0x3fae57['type']==_0x52d336+'Object'&&_0x3fae57['element']['name']==_0x572163['name']?_0x3fae57['quantity']++:_0x5f42e6['push']({'type':_0x52d336+'Object','element':_0x572163,'quantity':0x1}),_0x2d6651['skip'](_0x18721d=>!('elementEnd'==_0x18721d['type']&&_0x18721d['item']==_0x2b753d));}else{if(this['_schema']['checkChild'](_0x2b753d,'$text')||_0x2b753d['is']('element','softBreak')){const _0x3a1eec=_0x2b753d;if('add'==_0x52d336&&'elementStart'==_0x3bd25e['type']||'remove'==_0x52d336&&'elementEnd'==_0x3bd25e['type'])continue;if(_0x3fae57&&-0x1==_0x3fae57['type']['indexOf']('Container')){'text'==_0x3fae57['type']&&(_0x3fae57[_0x52d336]+='\x0a');continue;}let _0x3dd992;if(_0x3dd992='add'==_0x52d336?_0x3a1eec['nextSibling']&&!this['_schema']['isObject'](_0x3a1eec['nextSibling'])?_0x3a1eec['nextSibling']:null:_0x3a1eec['previousSibling']&&!this['_schema']['isObject'](_0x3a1eec['previousSibling'])?_0x3a1eec['previousSibling']:null,_0x3a1eec['isEmpty']||_0x3dd992&&_0x3dd992['isEmpty']){const _0x4e6560=_0x3dd992&&_0x3dd992['isEmpty']?_0x3dd992:_0x3a1eec;_0x3fae57&&_0x3fae57['type']==_0x52d336+'EmptyContainer'&&_0x3fae57['element']['name']==_0x4e6560['name']?_0x3fae57['quantity']++:_0x5f42e6['push']({'type':_0x52d336+'EmptyContainer','element':_0x4e6560,'quantity':0x1});}else _0x5f42e6['push']({'type':_0x52d336+'Container','element':_0x3a1eec});}}}}}['_resolveDescriptionItems'](_0x56804b){const _0x48d8a3=this['_locale'],_0x4ff245=[],_0x4b6a05=[],_0x4f2979=[];for(const _0x146f92 of _0x56804b)switch(_0x146f92['type']){case'text':if(_0x146f92['add']=_0x146f92['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x146f92['remove']=_0x146f92['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x146f92['add']&&''!=_0x146f92['remove']){_0x4ff245['push']({'type':'replace','content':c(_0x48d8a3,'REPLACE_TEXT',['\x22'+_0x146f92['remove']+'\x22','\x22'+_0x146f92['add']+'\x22'])});continue;}if(null!=_0x146f92['add']['match'](/^ +$/)){_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Insert:*\x20%0',c(_0x48d8a3,'ELEMENT_SPACE',_0x146f92['add']['length']))});continue;}if(null!=_0x146f92['remove']['match'](/^ +$/)){_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Remove:*\x20%0',c(_0x48d8a3,'ELEMENT_SPACE',_0x146f92['remove']['length']))});continue;}if(''!=_0x146f92['add']){_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Insert:*\x20%0','\x22'+_0x146f92['add']+'\x22')});continue;}_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Remove:*\x20%0','\x22'+_0x146f92['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Insert:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Remove:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'addContainer':_0x4ff245['push']({'type':'insertion','content':c(_0x48d8a3,'*Split:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'removeContainer':_0x4ff245['push']({'type':'deletion','content':c(_0x48d8a3,'*Merge:*\x20%0',this['getItemLabel'](_0x146f92['element'],_0x146f92['quantity']))});continue;case'addFormat':_0x4b6a05['push'](_0x146f92['key']);continue;case'removeFormat':_0x4f2979['push'](_0x146f92['key']);continue;default:_0x4ff245['push'](_0x146f92);}if(_0x4b6a05['length']){const _0x123637=_0x4b6a05['map'](_0x367783=>this['_attributeLabels']['has'](_0x367783)?this['_attributeLabels']['get'](_0x367783):_0x367783)['join'](',\x20');_0x4ff245['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x123637)});}if(_0x4f2979['length']){const _0x4cff58=_0x4f2979['map'](_0x5c8e84=>this['_attributeLabels']['has'](_0x5c8e84)?this['_attributeLabels']['get'](_0x5c8e84):_0x5c8e84)['join'](',\x20');_0x4ff245['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x4cff58)});}return _0x4ff245;}['_handleCustomCallbackDescription'](_0x4877c6){for(const _0x1a888e of this['_customCallbacks']){const _0x1fb66b=_0x1a888e(_0x4877c6);if(_0x1fb66b&&'type'in _0x1fb66b)return _0x1fb66b;}}['_handleAttributeSuggestionDescription'](_0x422470,_0x199335){const _0x5cc142=_0x199335['data'],_0x32b642=void 0x0===_0x5cc142['newValue']?'removeFormat':'addFormat';_0x422470['push']({'type':_0x32b642,'key':_0x5cc142['key']});}['_handleRenameSuggestionDescription'](_0x3901e1,_0x94f96a){_0x3901e1['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x94f96a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3d8ab4,_0x42d916,_0x3110f9){if(this['_addDescriptionItems'](_0x3d8ab4,_0x42d916),_0x3110f9&&_0x3110f9['getFirstRange']()&&!_0x42d916['getFirstRange']()['end']['isEqual'](_0x3110f9['getFirstRange']()['start'])){const _0x864b54=_0x3d8ab4[_0x3d8ab4['length']-0x1],_0x19ed2b='insertion'==_0x42d916['type']?'add':'remove';_0x864b54&&'text'==_0x864b54['type']&&(_0x864b54[_0x19ed2b]+='\x0a');}}}class U extends _0x5575fe{['afterInit'](){const _0x14e0f8=this['editor'],_0x57bbc6=_0x14e0f8['plugins']['get']('TrackChangesEditing');_0x14e0f8['commands']['get']('showAIAssistant')&&_0x57bbc6['enableCommand']('showAIAssistant');}}class V extends _0x5575fe{['afterInit'](){const _0x103be9=this['editor'],_0x42da73=_0x103be9['locale'];if(!_0x103be9['plugins']['has']('AlignmentEditing'))return;const _0x3572fb=_0x103be9['plugins']['get']('TrackChangesEditing');_0x3572fb['enableDefaultAttributesIntegration']('alignment'),_0x3572fb['registerBlockAttribute']('alignment'),_0x3572fb['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x42da73,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25e80d=this['editor'],_0x35275c=_0x25e80d['locale'];_0x25e80d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x419ffa=>{if('formatBlock'!=_0x419ffa['type'])return;const {data:_0x2e9cc1}=_0x419ffa;if(_0x2e9cc1&&'alignment'==_0x2e9cc1['commandName']){const _0x3ab68b=_0x2e9cc1['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x35275c,'*Format:*\x20%0',function(_0x360343){switch(_0x360343){case'left':return c(_0x35275c,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x35275c,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x35275c,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x35275c,'FORMAT_JUSTIFY_TEXT');}}(_0x3ab68b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5575fe{['afterInit'](){const _0x2129af=this['editor'],_0x5cc9ab=_0x2129af['plugins']['get']('TrackChangesEditing'),_0x484e30=_0x2129af['locale'];for(const _0x29c53a of Zt){if(!_0x2129af['plugins']['has'](_0x29c53a))continue;const _0x102965=_0x29c53a['slice'](0x0,-0x7)['toLowerCase'](),_0x590fff='FORMAT_'+_0x102965['toUpperCase']();_0x5cc9ab['enableDefaultAttributesIntegration'](_0x102965),_0x5cc9ab['registerInlineAttribute'](_0x102965),_0x5cc9ab['descriptionFactory']['registerAttributeLabel'](_0x102965,c(_0x484e30,_0x590fff));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24ed95=this['editor'],_0x564ba4=_0x24ed95['locale'],_0x525fc2=_0x24ed95['plugins']['get']('TrackChangesEditing');function _0x46b6a8(_0x5b2fff,_0x1ac41e){_0x525fc2['descriptionFactory']['registerDescriptionCallback'](_0x39d464=>{if('formatInline'!=_0x39d464['type'])return;const {data:_0xb4ea3f}=_0x39d464;return _0xb4ea3f&&_0xb4ea3f['commandName']===_0x5b2fff?_0xb4ea3f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x564ba4,'*Format:*\x20%0',_0x1ac41e)}:{'type':'format','content':c(_0x564ba4,'*Remove\x20format:*\x20%0',_0x1ac41e)}:void 0x0;});}_0x46b6a8('bold',c(_0x564ba4,'FORMAT_BOLD')),_0x46b6a8('italic',c(_0x564ba4,'FORMAT_ITALIC')),_0x46b6a8('underline',c(_0x564ba4,'FORMAT_UNDERLINE')),_0x46b6a8('code',c(_0x564ba4,'FORMAT_CODE')),_0x46b6a8('strikethrough',c(_0x564ba4,'FORMAT_STRIKETHROUGH')),_0x46b6a8('subscript',c(_0x564ba4,'FORMAT_SUBSCRIPT')),_0x46b6a8('superscript',c(_0x564ba4,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5575fe{['afterInit'](){const _0x3a4eea=this['editor'],_0x2e263e=_0x3a4eea['locale'];if(!_0x3a4eea['plugins']['has']('BlockQuoteEditing'))return;const _0x44bab=_0x3a4eea['plugins']['get']('TrackChangesEditing'),_0x18bc20=this['editor']['commands']['get']('blockQuote');_0x44bab['enableCommand']('blockQuote',(_0x7991a4,_0x254a0b={})=>{const _0x1848c7=this['editor']['model']['document']['selection'],_0x5ce5f2=_0x254a0b&&void 0x0!==_0x254a0b['forceValue']?_0x254a0b['forceValue']:!_0x18bc20['value'];let _0x4879d2=[];if(_0x5ce5f2){const _0x410114=Array['from'](_0x1848c7['getSelectedBlocks']())['filter'](_0x28e7a7=>oo(_0x28e7a7)||function(_0x4acd86,_0x2f00e7){const _0x6a5371=_0x2f00e7['checkChild'](_0x4acd86['parent'],'blockQuote'),_0x5dfe78=_0x2f00e7['checkChild'](['$root','blockQuote'],_0x4acd86);return _0x6a5371&&_0x5dfe78;}(_0x28e7a7,this['editor']['model']['schema']));_0x4879d2=to(_0x410114,_0x3a4eea['model']);}else{const _0x2d32c6=Array['from'](_0x1848c7['getSelectedBlocks']())['filter'](_0x43e451=>oo(_0x43e451));_0x4879d2=to(_0x2d32c6,_0x3a4eea['model']);}_0x3a4eea['model']['change'](()=>{for(const _0x4e1b3c of _0x4879d2)_0x44bab['markBlockFormat'](_0x4e1b3c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5ce5f2}]});});}),_0x44bab['descriptionFactory']['registerDescriptionCallback'](_0xb2e6e5=>{const {data:_0x3a6e10}=_0xb2e6e5;if(_0x3a6e10&&'blockQuote'==_0x3a6e10['commandName']){const _0x56b123=c(_0x2e263e,'ELEMENT_BLOCK_QUOTE');return _0x3a6e10['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2e263e,'*Set\x20format:*\x20%0',_0x56b123)}:{'type':'format','content':c(_0x2e263e,'*Remove\x20format:*\x20%0',_0x56b123)};}});}}function oo(_0x2c79f4){return'blockQuote'==_0x2c79f4['parent']['name'];}class L extends _0x5575fe{['afterInit'](){const _0x2c8343=this['editor'],_0x5b2c00=_0x2c8343['locale'],_0x14ad30=_0x2c8343['plugins']['get']('TrackChangesEditing');_0x2c8343['plugins']['has']('BookmarkEditing')&&(_0x14ad30['enableCommand']('insertBookmark'),_0x14ad30['enableDefaultAttributesIntegration']('updateBookmark'),_0x14ad30['registerBlockAttribute']('bookmarkId'),_0x14ad30['descriptionFactory']['registerDescriptionCallback'](_0x143beb=>{if('insertion'!=_0x143beb['type']&&'deletion'!=_0x143beb['type']&&'attribute'!=_0x143beb['type'])return;const _0x36f6a6=_0x143beb['getContainedElement']();if(null==_0x36f6a6)return;if(!_0x36f6a6['is']('element','bookmark'))return;const _0x18eec7=_0x36f6a6['getAttribute']('bookmarkId');if('insertion'==_0x143beb['type'])return{'type':'insertion','content':c(_0x5b2c00,'*Insert:*\x20%0','\x22'+_0x18eec7+'\x22\x20'+c(_0x5b2c00,'ELEMENT_BOOKMARK'))};if('deletion'==_0x143beb['type'])return{'type':'deletion','content':c(_0x5b2c00,'*Remove:*\x20%0','\x22'+_0x18eec7+'\x22\x20'+c(_0x5b2c00,'ELEMENT_BOOKMARK'))};const {data:_0x50934b}=_0x143beb;if(!_0x50934b||'bookmarkId'!=_0x50934b['key'])return;return{'type':'format','content':c(_0x5b2c00,'*Set\x20bookmark:*\x20%0','\x22'+_0x50934b['newValue']+'\x22')};}));}}class J extends _0x5575fe{['afterInit'](){const _0x4b2eeb=this['editor'];_0x4b2eeb['plugins']['has']('CaseChange')&&(_0x4b2eeb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4b2eeb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4b2eeb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5575fe{['afterInit'](){const _0x53cc25=this['editor'];_0x53cc25['commands']['get']('ckbox')&&_0x53cc25['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5575fe{['afterInit'](){const _0x8e129e=this['editor'];if(!_0x8e129e['plugins']['has']('CodeBlock'))return;const _0x3a6e38=_0x8e129e['plugins']['get']('TrackChangesEditing'),_0x43739b=_0x8e129e['locale'],_0x459cee=_0x8e129e['config']['get']('codeBlock')['languages'],_0x5a8eba=_0x8e129e['commands']['get']('codeBlock');_0x3a6e38['enableCommand']('indentCodeBlock'),_0x3a6e38['enableCommand']('outdentCodeBlock'),_0x3a6e38['enableCommand']('codeBlock',(_0xfad771,_0x20ced4={})=>{const _0x3adaec=_0x8e129e['model'],_0x1c1312=_0x8e129e['model']['document']['selection'],_0x145927=_0x20ced4&&void 0x0!==_0x20ced4['forceValue']?_0x20ced4['forceValue']:!_0x5a8eba['value'];let _0x12ea17;_0x20ced4['language']||(_0x20ced4['language']=_0x459cee[0x0]['language']),_0x12ea17=_0x145927?Array['from'](_0x1c1312['getSelectedBlocks']())['filter'](_0x3ee369=>eo(_0x3ee369)||function(_0x4f544a,_0x22613d){if(_0x4f544a['is']('rootElement')||_0x22613d['isLimit'](_0x4f544a))return!0x1;return _0x22613d['checkChild'](_0x4f544a['parent'],'codeBlock');}(_0x3ee369,_0x3adaec['schema'])):Array['from'](_0x1c1312['getSelectedBlocks']())['filter'](_0x12468b=>eo(_0x12468b));const _0x5ad3b1=to(_0x12ea17,_0x3adaec);_0x3adaec['change'](()=>{for(const _0x5609e8 of _0x5ad3b1)_0x3a6e38['markBlockFormat'](_0x5609e8,{'commandName':'codeBlock','commandParams':[{..._0x20ced4,'forceValue':_0x145927}],'formatGroupId':'blockName'});});}),(_0x3a6e38['descriptionFactory']['registerElementLabel']('codeBlock',_0xa2b8c1=>c(_0x43739b,'ELEMENT_CODE_BLOCK',_0xa2b8c1)),_0x3a6e38['descriptionFactory']['registerDescriptionCallback'](_0x3923b3=>{if('formatBlock'!=_0x3923b3['type'])return;const _0x492651=_0x43739b['t'],{data:_0x1e8a3a}=_0x3923b3;if(!_0x1e8a3a||'codeBlock'!=_0x1e8a3a['commandName'])return;const _0x4dd3e6=_0x1e8a3a['commandParams'][0x0]['language'],_0x5e87fb=_0x492651(_0x459cee['find'](_0x3fa490=>_0x3fa490['language']===_0x4dd3e6)['label'])['toLowerCase']();return _0x1e8a3a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x43739b,'*Set\x20format:*\x20%0',c(_0x43739b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e87fb+')')}:{'type':'format','content':c(_0x43739b,'*Remove\x20format:*\x20%0',c(_0x43739b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4729e1){return'codeBlock'==_0x4729e1['name'];}class q extends _0x5575fe{['afterInit'](){const _0x2c5a92=this['editor'];if(!_0x2c5a92['plugins']['has']('CommentsEditing'))return;_0x2c5a92['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1d69ac,_0x8d3bdc,_0x271af1){const _0x2072e6=[];for(const _0x110904 of _0x8d3bdc['getItems']())_0x110904['hasAttribute'](_0x1d69ac)&&_0x2072e6['push'](_0x271af1['createRangeOn'](_0x110904));return _0x2072e6;}function Fe(_0x940613,_0x2447d4,{showActiveMarker:_0x1c43aa=!0x0}={}){const _0x2d3c47=_0x940613['plugins']['get']('TrackChangesEditing');return(_0x44ec3d,_0x29dd14,_0x3e7833)=>{if(!_0x3e7833['consumable']['test'](_0x29dd14['markerRange'],_0x44ec3d['name']))return;const _0x5481bc=_0x29dd14['markerRange']['getWalker'](),_0x515c37=_0x29dd14['markerRange']['start'],_0x3f4d64=_0x940613['model']['schema'];let _0x441adf=null,_0x2bb934=null,_0x349056=!0x1,_0xe2fd8=!0x1;for(const _0x25f837 of _0x5481bc){const _0x25d747=_0x25f837['item'];_0x349056=_0x349056||_0x3f4d64['isContent'](_0x25d747);const _0x388ad4=_0x3e7833['mapper']['toViewElement'](_0x25d747);if(_0x388ad4&&_0x388ad4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x25f837['type']&&(_0x3f4d64['isBlock'](_0x25d747)&&!_0x3f4d64['isLimit'](_0x25d747)&&(_0x25d747['nextSibling']||_0x515c37['isAtEnd']?_0x441adf&&_0x441adf['parent']==_0x25d747||(_0x441adf=_0x25d747,_0xf05fe3(_0x25f837['previousPosition']),_0xe2fd8=!0x0):_0x2bb934=_0x2bb934||_0x25f837['previousPosition']));}function _0xf05fe3(_0x10a397){const {id:_0x4adc41,authorId:_0x536f3e}=_0x2d3c47['_splitMarkerName'](_0x29dd14['markerName']),_0xbf21ff=_0x3e7833['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2447d4,'data-suggestion':_0x4adc41,'data-author-id':_0x536f3e}),_0x64bb6=_0x3e7833['mapper']['toViewPosition'](_0x10a397);_0x1c43aa&&_0x2d3c47['activeMarkers']['includes'](_0x29dd14['markerName'])&&_0x3e7833['writer']['addClass']('ck-suggestion-marker--active',_0xbf21ff),_0x3e7833['writer']['insert'](_0x64bb6,_0xbf21ff),_0x3e7833['mapper']['bindElementToMarker'](_0xbf21ff,_0x29dd14['markerName']);}_0x349056||_0xe2fd8||!_0x2bb934||_0xf05fe3(_0x2bb934);};}class z extends _0x5575fe{static get['requires'](){return[_0x2fb98e];}['init'](){const _0x413ab8=this['editor'],_0xac7981=_0x413ab8['plugins']['get']('TrackChangesEditing');_0xac7981['enableCommand']('delete');const _0x434e0a=_0x413ab8['commands']['get']('deleteForward');_0xac7981['enableCommand']('deleteForward',(_0x243f4d,_0x25c2db={})=>{const _0x56e26b=_0x413ab8['model']['createSelection'](_0x413ab8['model']['document']['selection']);_0x56e26b['isCollapsed']&&_0x413ab8['model']['modifySelection'](_0x56e26b,{'direction':'forward','unit':_0x25c2db['unit']});const _0x235b48=_0x56e26b['getFirstRange'](),_0x3fbfd7=_0x34c04c['fromRange'](_0x235b48);let _0x3a337f;_0x243f4d(_0x25c2db),_0x3a337f='$graveyard'==_0x3fbfd7['root']['rootName']?_0x413ab8['model']['createRange'](_0x235b48['start']):_0x413ab8['model']['createRange'](_0x3fbfd7['start'],_0x3fbfd7['end']),_0x3fbfd7['detach'](),_0x413ab8['model']['enqueueChange'](_0x434e0a['buffer']['batch'],_0x3b9a04=>{_0x434e0a['buffer']['lock'](),_0x3b9a04['setSelection'](_0x3b9a04['createRange'](_0x3a337f['end'])),_0x434e0a['buffer']['unlock']();});}),_0x413ab8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x413ab8,'merge'),{'priority':'high'}),_0x413ab8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4507dc,_0x535442,_0x56d29f)=>{_0x56d29f['options']['showSuggestionHighlights']&&Fe(_0x413ab8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4507dc,_0x535442,_0x56d29f);},{'priority':'high'}),_0x413ab8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x109f64,_0x2f2124,_0x40955e)=>{const _0x90c951=_0x40955e['mapper']['markerNameToElements'](_0x2f2124['markerName']);if(_0x90c951){for(const _0x32f540 of _0x90c951)_0x32f540['is']('uiElement')&&(_0x40955e['mapper']['unbindElementFromMarkerName'](_0x32f540,_0x2f2124['markerName']),_0x40955e['writer']['remove'](_0x32f540));}},{'priority':'high'});}}class W extends _0x5575fe{['afterInit'](){const _0x3f2b49=this['editor'];if(!_0x3f2b49['plugins']['has']('ListEditing'))return;const _0x3a3277=_0x3f2b49['locale'],_0x5017e1=_0x3f2b49['plugins']['get']('TrackChangesEditing'),_0x522f23=_0x3f2b49['plugins']['has']('TodoListEditing'),_0x3b72f0=!!_0x3f2b49['config']['get']('list.multiBlock');function _0x3df84e(_0xd5fc0d){return{'type':'format','content':''+c(_0x3a3277,'*Set\x20format:*\x20%0',_0xd5fc0d)};}function _0x5aab72(_0xcbdb39){return{'type':'format','content':''+c(_0x3a3277,'*Remove\x20format:*\x20%0',_0xcbdb39)};}_0x5017e1['enableDefaultAttributesIntegration']('numberedList'),_0x5017e1['enableDefaultAttributesIntegration']('bulletedList'),_0x5017e1['enableDefaultAttributesIntegration']('customNumberedList'),_0x5017e1['enableDefaultAttributesIntegration']('customBulletedList'),_0x5017e1['enableDefaultAttributesIntegration']('indentList'),_0x5017e1['enableDefaultAttributesIntegration']('outdentList'),_0x5017e1['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5017e1['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5017e1['registerBlockAttribute']('listItemId'),_0x5017e1['registerBlockAttribute']('listType'),_0x5017e1['registerBlockAttribute']('listIndent'),_0x3b72f0&&(_0x5017e1['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5017e1['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x522f23&&(_0x5017e1['enableDefaultAttributesIntegration']('todoList'),_0x5017e1['enableDefaultAttributesIntegration']('checkTodoList'),_0x5017e1['registerBlockAttribute']('todoListChecked'),_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0x915b6b=>{const {data:_0x255533}=_0x915b6b;if(_0x255533&&'todoListChecked'==_0x255533['key'])return{'type':'format','content':_0x255533['newValue']?c(_0x3a3277,'*Check\x20item*'):c(_0x3a3277,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3a4944=>{if(_0x3a4944['batch']['isUndo'])return!0x1;let _0xe7e262=!0x1;const _0x28fba5=_0x5017e1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6d9b8e=>'todoListChecked'===_0x5017e1['_getAttributeKey'](_0x6d9b8e));for(const _0xaa796b of _0x28fba5){'todo'!=_0xaa796b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5017e1['_findSuggestions'](_0xaa796b['getFirstRange'](),'attribute')['find'](_0x4447b6=>'listType'===_0x5017e1['_getAttributeKey'](_0x4447b6['suggestion']))||(_0x3a4944['removeMarker'](_0xaa796b['getFirstMarker']()),_0xe7e262=!0x0));}return _0xe7e262;})),_0x5017e1['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3a3277,'FORMAT_INDENT'));const _0x2244df={'type':'format','content':''};_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0x190f59=>{const {data:_0x33a5ef}=_0x190f59;if(!_0x33a5ef||'listType'!=_0x33a5ef['key'])return;let _0x1ab189=_0x190f59['head'];for(;_0x1ab189;){if(_0x1ab189['data']&&(('listStyle'==_0x1ab189['data']['key']||'listMarkerStyle'==_0x1ab189['data']['key'])&&(_0x1ab189['data']['newValue']&&'default'!=_0x1ab189['data']['newValue']||'default'!=_0x1ab189['data']['oldValue']&&!_0x33a5ef['newValue'])||!_0x3b72f0&&_0x1ab189['data']['key']==u))return _0x2244df;_0x1ab189=_0x1ab189['next'];}if(null==_0x33a5ef['newValue'])switch(_0x33a5ef['oldValue']){case'bulleted':return _0x5aab72(c(_0x3a3277,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5aab72(c(_0x3a3277,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5aab72(c(_0x3a3277,'ELEMENT_TODO_LIST'));}switch(_0x33a5ef['newValue']){case'bulleted':return _0x3df84e(c(_0x3a3277,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3df84e(c(_0x3a3277,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3df84e(c(_0x3a3277,'ELEMENT_TODO_LIST'));}}),_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0xa2999=>{const {data:_0x5c1d03}=_0xa2999;if(_0x5c1d03&&'listIndent'==_0x5c1d03['key'])return null==_0x5c1d03['newValue']||null==_0x5c1d03['oldValue']&&0x0==_0x5c1d03['newValue']?_0x2244df:void 0x0;}),_0x5017e1['descriptionFactory']['registerDescriptionCallback'](_0x1ad403=>{if('attribute'!=_0x1ad403['type'])return;const {data:_0x542e93}=_0x1ad403;if(!_0x542e93||'listItemId'!=_0x542e93['key'])return;const _0x1232d1=Te(_0x1ad403);return'newValue'==_0x1232d1?{'type':'format','content':c(_0x3a3277,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1232d1?{'type':'format','content':c(_0x3a3277,'*Split:*\x20list\x20item')}:_0x2244df;}),_0x3f2b49['model']['document']['registerPostFixer'](_0x448fe0=>this['listItemIdFixer'](_0x448fe0)),_0x3f2b49['model']['document']['registerPostFixer'](_0x22d9dc=>this['noTrackChangesFixer'](_0x22d9dc)),_0x3f2b49['model']['document']['on']('change:data',(_0x2843a2,_0x468b22)=>{if(_0x468b22['isUndo']||!_0x468b22['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4ca477){if(_0x4ca477['batch']['isUndo']||!_0x4ca477['batch']['isLocal'])return!0x1;let _0x129b47=!0x1;const _0x278761=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15314e=>_0x15314e['data']&&'listItemId'==_0x15314e['data']['key'])['filter'](_0x3f9258=>_0x3f9258['data']['newValue']&&_0x3f9258['data']['oldValue']);for(const _0x544f9a of _0x278761)Te(_0x544f9a)||(_0x4ca477['removeMarker'](_0x544f9a['getFirstMarker']()),_0x129b47=!0x0);return _0x129b47;}['noTrackChangesFixer'](_0x579cac){if(_0x579cac['batch']['isUndo']||!_0x579cac['batch']['isLocal'])return!0x1;const _0x468188=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x468188['trackChangesCommand']['value'])return!0x1;let _0x570e6a=!0x1;const _0x183841=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xf60125=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x44f5a7=>'attribute'==_0x44f5a7['type'])['filter'](_0x34d833=>_0x183841['includes'](_0x34d833['attributeKey']));if(0x0==_0xf60125['length'])return _0x570e6a;for(const _0x22233d of _0xf60125){const _0xf305fb=_0x468188['_findSuggestions'](_0x22233d['range'],'attribute')['filter'](_0x54ed1b=>!_0x54ed1b['meta']['isNextTo'])['map'](_0x2b5582=>_0x2b5582['suggestion'])['filter'](_0x16b27b=>{const _0x14522e=_0x468188['_getAttributeKey'](_0x16b27b);return _0x183841['includes'](_0x14522e);});if(_0xf305fb['length']){for(const _0x37f176 of _0xf305fb)_0x579cac['removeMarker'](_0x37f176['getFirstMarker']());_0x570e6a=!0x0;}}return _0x570e6a;}['assureChains'](){const _0x4bb0aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x347f2c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xe0046a;const _0x3f3352=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43899d=>{if(_0x43899d['data']['oldRange']||!_0x43899d['data']['newRange'])return null;if(!_0x43899d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1c7dc5}=_0x4bb0aa['_splitMarkerName'](_0x43899d['name']);if(!_0x4bb0aa['hasSuggestion'](_0x1c7dc5))return null;const _0x12545d=_0x4bb0aa['getSuggestion'](_0x1c7dc5);return _0x347f2c['includes'](_0x12545d['data']['key']);})['map'](_0x5f0903=>{const {id:_0x169eee}=_0x4bb0aa['_splitMarkerName'](_0x5f0903['name']),_0x16c69b=_0x4bb0aa['getSuggestion'](_0x169eee);return _0xe0046a=_0x16c69b['attributes']['groupId'],_0x16c69b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3f3352['size'])return;const _0x3b13c5=_0x4bb0aa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51c418=>'attribute'==_0x51c418['type']&&_0x51c418['data']&&_0x347f2c['includes'](_0x51c418['data']['key'])&&_0x51c418['attributes']['groupId']!=_0xe0046a)['map'](_0x190142=>({'listItem':_0x190142['getFirstRange']()['start']['nodeAfter'],'groupId':_0x190142['attributes']['groupId']})),_0x24f353=new Set();for(const {groupId:_0x447e59,listItem:_0xc805fd}of _0x3b13c5)_0x3f3352['has'](_0xc805fd)&&_0x24f353['add'](_0x447e59);for(const _0x1bca98 of _0x4bb0aa['getSuggestions']())_0x24f353['has'](_0x1bca98['attributes']['groupId'])&&_0x1bca98['setAttribute']('groupId',_0xe0046a);}['_supportLegacySuggestions'](){const _0x1d88a1=this['editor'],_0x3a6ec0=_0x1d88a1['locale'],_0x49d0d9=_0x1d88a1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x49d0d9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3b0d50,_0x49b187){const _0x3fa845=[];for(let _0x16f168 of _0x3b0d50)_0x16f168['start']['nodeAfter']===_0x16f168['end']['parent']&&(_0x16f168=_0x1d88a1['model']['createRange'](_0x1d88a1['model']['createPositionAt'](_0x16f168['start']['nodeAfter'],0x0))),_0x3fa845['push'](_0x16f168);_0x1d88a1['model']['change'](_0x4e6521=>{const _0x138851=_0x1d88a1['model']['document']['selection'],_0x5836cf=Array['from'](_0x138851['getRanges']())['map'](_0x1a475d=>_0x34c04c['fromRange'](_0x1a475d));_0x4e6521['setSelection'](_0x3fa845),_0x1d88a1['commands']['get'](_0x49b187['commandName'])['refresh'](),_0x49b187['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1d88a1['execute'](_0x49b187['commandName'],..._0x49b187['commandParams']),_0x4e6521['setSelection'](_0x5836cf);for(const _0x44aaf2 of _0x5836cf)_0x44aaf2['detach']();});}),_0x49d0d9['descriptionFactory']['registerElementLabel'](function(_0x527ce0){const _0x2bea1d=!_0x1d88a1['model']['schema']['isObject'](_0x527ce0),_0x28c8d4=_0x527ce0['previousSibling'],_0x15162c=_0x527ce0['nextSibling'],_0x22e436=_0x527ce0['getAttribute']('listItemId'),_0x1120e6=!_0x28c8d4||_0x28c8d4['getAttribute']('listItemId')!==_0x22e436,_0x4fbdb=!_0x15162c||_0x15162c['getAttribute']('listItemId')!==_0x22e436;return _0x2bea1d&&Boolean(_0x22e436)&&_0x1120e6&&_0x4fbdb;},_0x4f6a5c=>c(_0x3a6ec0,'ELEMENT_LIST_ITEM',_0x4f6a5c));}['_registerLegacyDescription'](){const _0x2be4ff=this['editor'],_0x518730=_0x2be4ff['locale'];function _0x1c8b08(_0x309514){const _0x2043d7=_0x2be4ff['commands']['get']('bulletedList')['value'],_0x21e367=_0x2be4ff['commands']['get']('numberedList')['value'];return'numberedList'===_0x309514?_0x2043d7:_0x21e367;}_0x2be4ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5b97fa){if('formatBlock'!=_0x5b97fa['type'])return;const {data:_0x5149d1}=_0x5b97fa;if(!_0x5149d1)return;let _0x168b30,_0x5a7234,_0x4a328d,_0x3b3f88;switch(_0x5149d1['commandName']){case'bulletedList':_0x4a328d=_0x5149d1['commandParams'][0x0]['forceValue'],_0x3b3f88=_0x1c8b08(_0x5149d1['commandName']),_0x168b30=_0x4a328d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b3f88&&_0x2be4ff['config']['get']('list.multiBlock')||(_0x168b30='*Change\x20to:*\x20%0'),_0x5a7234={'type':'format','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4a328d=_0x5149d1['commandParams'][0x0]['forceValue'],_0x3b3f88=_0x1c8b08(_0x5149d1['commandName']),_0x168b30=_0x4a328d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b3f88&&_0x2be4ff['config']['get']('list.multiBlock')||(_0x168b30='*Change\x20to:*\x20%0'),_0x5a7234={'type':'format','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x168b30='*Indent:*\x20%0',_0x5a7234={'type':'format','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x168b30=function(_0x56e65d){const _0x8b1396=_0x56e65d['getFirstRange']();let _0x1c4e29=_0x8b1396['start']['nodeAfter'];for(;_0x1c4e29&&_0x8b1396['containsItem'](_0x1c4e29);){if(_0x1c4e29['getAttribute']('listIndent')>0x0)return!0x1;_0x1c4e29=_0x1c4e29['nextSibling'];}return!0x0;}(_0x5b97fa)?c(_0x518730,'*Format:*\x20remove\x20from\x20%0',c(_0x518730,function(_0x4eb1e5){return'ELEMENT_'+_0x4eb1e5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5b97fa))):c(_0x518730,'*Outdent:*\x20%0',c(_0x518730,'ELEMENT_LIST_ITEM')),_0x5a7234={'type':'format','content':_0x168b30};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5149d1['multipleBlocks']&&(_0x168b30='*Merge:*\x20%0',_0x5a7234={'type':'deletion','content':c(_0x518730,_0x168b30,c(_0x518730,'ELEMENT_LIST_ITEM'))});}return _0x5a7234;});}}function Te(_0x32aa8f){let _0x5cfbee=_0x32aa8f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5cfbee;){const _0x183c02=_0x5cfbee['getAttribute']('listItemId');if(!_0x183c02)return!0x1;if(_0x183c02==_0x32aa8f['data']['newValue'])return'newValue';if(_0x183c02==_0x32aa8f['data']['oldValue'])return'oldValue';_0x5cfbee=_0x5cfbee['previousSibling'];}return!0x1;}class Se extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xe2f6ab=this['editor']['config']['get']('list.properties'),_0x5cafd4=this['editor']['plugins']['get']('TrackChangesEditing');_0xe2f6ab['styles']&&(_0x5cafd4['enableDefaultAttributesIntegration']('listStyle'),_0x5cafd4['registerBlockAttribute']('listStyle')),_0xe2f6ab['reversed']&&(_0x5cafd4['enableDefaultAttributesIntegration']('listReversed'),_0x5cafd4['registerBlockAttribute']('listReversed')),_0xe2f6ab['startIndex']&&(_0x5cafd4['enableDefaultAttributesIntegration']('listStart'),_0x5cafd4['registerBlockAttribute']('listStart'));const _0x4b0a82={'type':'format','content':''};_0x5cafd4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5623b9=this['editor']['locale'];_0x5cafd4['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5623b9,'FORMAT_LIST_REVERSED')),_0x5cafd4['descriptionFactory']['registerDescriptionCallback'](_0x2a7d73=>{const {data:_0x477b66}=_0x2a7d73;if(_0x477b66&&'listReversed'==_0x477b66['key'])return null==_0x477b66['newValue']||0x0==_0x477b66['newValue']&&null==_0x477b66['oldValue']?_0x4b0a82:void 0x0;}),_0x5cafd4['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5623b9,'FORMAT_LIST_START')),_0x5cafd4['descriptionFactory']['registerDescriptionCallback'](_0x5a63dc=>{const {data:_0x134d49}=_0x5a63dc;if(_0x134d49&&'listStart'==_0x134d49['key'])return null==_0x134d49['newValue']||0x1==_0x134d49['newValue']&&null==_0x134d49['oldValue']?_0x4b0a82:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x25cfed=>{if(_0x25cfed['batch']['isUndo'])return!0x1;let _0x4c4eec=!0x1;const _0x2a437a=_0x5cafd4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x287755=>{const _0x2ae341=_0x5cafd4['_getAttributeKey'](_0x287755);return'listStart'==_0x2ae341||'listReversed'==_0x2ae341;});for(const _0x4ea95f of _0x2a437a){const _0x559cbb=_0x4ea95f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x559cbb||'customNumbered'==_0x559cbb)continue;_0x5cafd4['_findSuggestions'](_0x4ea95f['getFirstRange'](),'attribute')['find'](_0x1356ae=>'listType'==_0x5cafd4['_getAttributeKey'](_0x1356ae['suggestion']))||(_0x25cfed['removeMarker'](_0x4ea95f['getFirstMarker']()),_0x4c4eec=!0x0);}return _0x4c4eec;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x539d5e){const _0x25faec=this['editor']['locale'],{data:_0x4a042e}=_0x539d5e,_0x561a01={'type':'format','content':''};if(!_0x4a042e||'listStyle'!=_0x4a042e['key'])return;if(!_0x4a042e['oldValue'])return'default'==_0x4a042e['newValue']?_0x561a01:{'type':'format','content':''+c(_0x25faec,'*Set\x20format:*\x20%0',c(_0x25faec,this['_getTranslationKeyForListStyle'](_0x4a042e['newValue'])))};if(!_0x4a042e['newValue']){if('default'==_0x4a042e['oldValue'])return _0x561a01;let _0x30640b=_0x539d5e['head'];for(;_0x30640b;){if(_0x30640b['data']&&'listType'==_0x30640b['data']['key']&&_0x30640b['data']['newValue'])return _0x561a01;_0x30640b=_0x30640b['next'];}return{'type':'format','content':''+c(_0x25faec,'*Remove\x20format:*\x20%0',c(_0x25faec,this['_getTranslationKeyForListStyle'](_0x4a042e['oldValue'])))};}if('default'!=_0x4a042e['newValue'])return{'type':'format','content':''+c(_0x25faec,'*Set\x20format:*\x20%0',c(_0x25faec,this['_getTranslationKeyForListStyle'](_0x4a042e['newValue'])))};let _0x4f404c=_0x539d5e['head'];for(;_0x4f404c;){if(_0x4f404c['data']&&'listType'==_0x4f404c['data']['key']&&_0x4f404c['data']['newValue']&&_0x4f404c['data']['oldValue'])return _0x561a01;_0x4f404c=_0x4f404c['next'];}return{'type':'format','content':c(_0x25faec,'*Set\x20format:*\x20%0',c(_0x25faec,'ELEMENT_'+_0x539d5e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x192986=this['editor'],_0x584b44=_0x192986['locale'];_0x192986['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24ad57=>{if('formatBlock'!=_0x24ad57['type'])return;const {data:_0x36008f}=_0x24ad57;if(!_0x36008f)return;let _0x5599fb,_0x27e943;switch(_0x36008f['commandName']){case'listStyle':_0x5599fb='*Change\x20to:*\x20%0',_0x27e943={'type':'format','content':c(_0x584b44,_0x5599fb,c(_0x584b44,this['_getTranslationKeyForListStyle'](_0x36008f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5599fb=_0x36008f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27e943={'type':'format','content':c(_0x584b44,_0x5599fb)};break;case'listStart':_0x5599fb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27e943={'type':'format','content':c(_0x584b44,_0x5599fb,_0x36008f['commandParams'][0x0]['startIndex'])};}return _0x27e943;});}['_getTranslationKeyForListStyle'](_0x482505){return'ELEMENT_'+function(_0x3c74c0){if(_e['includes'](_0x3c74c0))return'bulleted';if(Re['includes'](_0x3c74c0))return'numbered';return null;}(_0x482505)['toUpperCase']()+'_LIST_'+_0x482505['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5575fe{['afterInit'](){const _0x5abf04=this['editor'];_0x5abf04['commands']['get']('emoji')&&_0x5abf04['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5575fe{static get['requires'](){return[_0x182741];}['init'](){const _0x336c97=this['editor'],_0x54fa1b=_0x336c97['plugins']['get']('TrackChangesEditing'),_0x5b8832=_0x336c97['commands']['get']('enter');_0x54fa1b['enableCommand']('enter',()=>{_0x336c97['model']['change'](_0x533800=>{const _0x234e6d=_0x336c97['model']['document']['selection'],_0x422189=_0x234e6d['getFirstPosition'](),_0x515bbb=_0x34c04c['fromRange'](_0x234e6d['getFirstRange']());if(_0x5b8832['enterBlock'](_0x533800)){const _0x142706=_0x336c97['model']['createPositionAt'](_0x422189['parent']['nextSibling'],0x0),_0x237281=_0x533800['createRange'](_0x422189,_0x142706);_0x54fa1b['markInsertion'](_0x237281);}else _0x533800['setSelection'](_0x533800['createRange'](_0x515bbb['end']));_0x515bbb['detach'](),_0x5b8832['fire']('afterExecute',{'writer':_0x533800});});}),_0x336c97['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x336c97,'split'),{'priority':'high'}),_0x336c97['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3e4b2b,_0x2ad9a6,_0x2025e1)=>{const _0x3fb4cc=_0x2025e1['mapper']['markerNameToElements'](_0x2ad9a6['markerName']);if(_0x3fb4cc){for(const _0x197a84 of _0x3fb4cc)_0x197a84['hasClass']('ck-suggestion-marker-split')&&(_0x2025e1['mapper']['unbindElementFromMarkerName'](_0x197a84,_0x2ad9a6['markerName']),_0x2025e1['writer']['remove'](_0x197a84));}},{'priority':'high'}),_0x336c97['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4b8b33,_0x5ceea8,_0x490a05)=>{_0x490a05['options']['showSuggestionHighlights']&&Fe(_0x336c97,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4b8b33,_0x5ceea8,_0x490a05);},{'priority':'high'});}}class Z extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x209817=this['editor']['plugins']['get']('TrackChangesEditing');_0x209817['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x209817['enableCommand']('findNext'),_0x209817['enableCommand']('findPrevious'),_0x209817['enableCommand']('replace'),_0x209817['enableCommand']('replaceAll');}['handleFindCommand'](_0x3cb2c9,_0x7ace93,_0x35c7a5={}){const _0x3e99d6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3cb2c9(_0x5f1547=>{let _0x4088a5=('string'==typeof _0x7ace93?_0x3e99d6['findByTextCallback'](_0x7ace93,_0x35c7a5):_0x7ace93)(_0x5f1547);Array['isArray'](_0x4088a5)&&(_0x4088a5={'results':_0x4088a5,'searchText':'string'==typeof _0x7ace93?_0x7ace93:''});const _0x30e9f4=_0x4088a5['results']['filter'](_0x21ceb7=>!0x1===this['_isInDeletionRange'](_0x21ceb7,_0x5f1547['item']));return{..._0x4088a5,'results':_0x30e9f4};},_0x35c7a5);}['_isInDeletionRange'](_0x4f9785,_0x104828){const _0x8c1620=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x104828,_0x4f9785['start']),this['editor']['model']['createPositionAt'](_0x104828,_0x4f9785['end']));for(const _0x391f70 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x8c1620['getIntersection'](_0x391f70['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 _0x5575fe{['afterInit'](){const _0x313cd5=this['editor']['locale'],_0x4170a2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b168e,commandName:_0x1d793b}of ro)this['editor']['plugins']['has'](_0x1b168e)&&(_0x4170a2['enableDefaultAttributesIntegration'](_0x1d793b),_0x4170a2['registerInlineAttribute'](_0x1d793b));_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x313cd5,'FORMAT_FONT_SIZE')),_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x313cd5,'FORMAT_FONT_FAMILY')),_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x313cd5,'FORMAT_FONT_COLOR')),_0x4170a2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x313cd5,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x511a4b=this['editor'],_0x212f53=_0x511a4b['locale'];_0x511a4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f7ae0=>{const _0x361fe6=_0x212f53['t'];if('formatInline'!=_0x4f7ae0['type'])return;const {data:_0x364766}=_0x4f7ae0;if(null!=_0x364766){if('fontSize'==_0x364766['commandName']){const _0x1a0d93=_0x364766['commandParams'][0x0]['value'];if(_0x1a0d93){const _0x29eb44=_0x361fe6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x49301b=>_0x49301b['model']==_0x1a0d93)['title'])['toLowerCase']();return{'type':'format','content':c(_0x212f53,'*Set\x20font\x20size:*\x20%0',_0x29eb44)};}return{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x364766['commandName']){const _0x5bf071=_0x364766['commandParams'][0x0]['value'];return _0x5bf071?{'type':'format','content':c(_0x212f53,'*Set\x20font\x20family:*\x20%0',_0x5bf071)}:{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20family*')};}if('fontColor'==_0x364766['commandName']){const _0x166e64=_0x364766['commandParams'][0x0]['value'];if(_0x166e64){const _0x9c3096=_0x288e8f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x40aae0=>_0x40aae0['model']==_0x166e64);let _0x183f68=_0x166e64,_0x16137c='';return _0x9c3096&&(_0x183f68=_0x9c3096['label'],_0x16137c=_0x361fe6(_0x183f68)['toLowerCase']()),{'type':'format','content':c(_0x212f53,'*Set\x20font\x20color:*\x20%0',_0x16137c)['trim'](),'color':{'value':_0x166e64,'title':_0x16137c||_0x183f68}};}return{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x364766['commandName']){const _0x29d1c7=_0x364766['commandParams'][0x0]['value'];if(_0x29d1c7){const _0x391519=_0x288e8f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x519a90=>_0x519a90['model']==_0x29d1c7);let _0x5c15be=_0x29d1c7,_0x228de0='';return _0x391519&&(_0x5c15be=_0x391519['label'],_0x228de0=_0x361fe6(_0x5c15be)['toLowerCase']()),{'type':'format','content':c(_0x212f53,'*Set\x20font\x20background\x20color:*\x20%0',_0x228de0)['trim'](),'color':{'value':_0x29d1c7,'title':_0x228de0||_0x5c15be}};}return{'type':'format','content':c(_0x212f53,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x5575fe{['afterInit'](){const _0x249797=this['editor'],_0x49f7fe=_0x249797['plugins']['get']('TrackChangesEditing'),_0x7ac45e=_0x249797['commands']['get']('copyFormat'),_0x48a77a=_0x249797['commands']['get']('pasteFormat');_0x7ac45e&&_0x48a77a&&(_0x49f7fe['enableDefaultAttributesIntegration']('pasteFormat'),_0x49f7fe['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xc19503=this['editor'],_0x573df0=_0xc19503['locale'];_0xc19503['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d2b2=>{if('formatBlock'!=_0x36d2b2['type']&&'formatInline'!=_0x36d2b2['type'])return;const {data:_0x64cebe}=_0x36d2b2;if(_0x64cebe&&'pasteFormat'===_0x64cebe['commandName']){const _0x149f03=[],_0x556bca=_0x64cebe['commandParams'][0x0];for(const [_0x87453,_0x3c1e78]of Object['entries'](_0x556bca))_0x149f03['push'](so(_0xc19503,_0x87453,_0x3c1e78));return _0x149f03['length']?{'type':'format','content':c(_0x573df0,'*Set\x20format\x20to:*\x20%0',_0x149f03['join'](',\x20'))}:{'type':'format','content':c(_0x573df0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x547cd3,_0x410e9e,_0xdd75dd){const _0x4af46c=_0x547cd3['locale']['t'],_0x305451=_0x410e9e['split'](/(?=[A-Z])/)['join']('\x20'),_0x2b82ca=_0x4af46c(_0x305451['charAt'](0x0)['toUpperCase']()+_0x305451['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xdd75dd)return _0x2b82ca;if('fontColor'===_0x410e9e||'fontBackgroundColor'===_0x410e9e){const _0x4654dc=_0x288e8f(_0x547cd3['config']['get']('fontColor.colors'))['find'](_0x537a38=>_0x537a38['model']==_0xdd75dd);return _0x2b82ca+'\x20('+(_0x4654dc?_0x4af46c(_0x4654dc['label'])['toLowerCase']():_0xdd75dd)+')';}if('fontSize'===_0x410e9e&&isNaN(parseFloat(_0xdd75dd))){const _0x2460c7=_0x547cd3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x547cd3['config']['get']('fontSize.options'))['find'](_0x1f9ec8=>_0x1f9ec8['model']==_0xdd75dd);return _0x2b82ca+'\x20('+(_0x2460c7?_0x4af46c(_0x2460c7['title'])['toLowerCase']():_0xdd75dd)+')';}return _0x2b82ca+'\x20('+_0xdd75dd+')';}class et extends _0x5575fe{['_headingOptions'];['afterInit'](){const _0x5e0c9a=this['editor'];if(!_0x5e0c9a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5e0c9a['config']['get']('heading.options');const _0x1c5877=_0x5e0c9a['locale'],_0x1ee8d7=_0x5e0c9a['plugins']['get']('TrackChangesEditing');_0x1ee8d7['enableDefaultAttributesIntegration']('heading');for(const _0x136293 of this['_headingOptions'])'paragraph'!=_0x136293['model']&&_0x1ee8d7['descriptionFactory']['registerElementLabel'](_0x136293['model'],_0x419216=>{const _0x26c56e=this['_getHeadingLevel'](_0x136293['model']);return null!==_0x26c56e?_0x3021d4(_0x419216,_0x26c56e):_0x359d27(_0x419216,_0x136293['title']);});function _0x3021d4(_0xe6007b,_0x202da3){return c(_0x1c5877,'ELEMENT_HEADING',[_0xe6007b,_0x202da3]);}function _0x359d27(_0x5a811f,_0x459a5c){return c(_0x1c5877,'ELEMENT_HEADING_CUSTOM',[_0x5a811f,_0x459a5c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x595470=this['editor'],_0x535bb1=_0x595470['locale'];function _0x4bc3cd(_0x467904,_0x7effc){return c(_0x535bb1,'ELEMENT_HEADING_CUSTOM',[_0x467904,_0x7effc]);}_0x595470['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ff36c=>{if('formatBlock'!=_0x4ff36c['type'])return;const {data:_0x503148}=_0x4ff36c;if(_0x503148&&'heading'==_0x503148['commandName']){const _0x899373=_0x503148['commandParams'][0x0]['value'],_0x1e0a2b=this['_getHeadingLevel'](_0x899373);if(null!==_0x1e0a2b)return{'type':'format','content':c(_0x535bb1,'*Change\x20to:*\x20%0',(_0x4cdc9c=0x1,_0x54660c=_0x1e0a2b,c(_0x535bb1,'ELEMENT_HEADING',[_0x4cdc9c,_0x54660c])))};const _0x363458=this['_headingOptions']['find'](_0x1606cc=>_0x1606cc['model']===_0x899373)['title'];return{'type':'format','content':c(_0x535bb1,'*Change\x20to:*\x20%0',_0x4bc3cd(0x1,_0x363458))};}var _0x4cdc9c,_0x54660c;});}['_getHeadingLevel'](_0x442d32){const _0x33d7e1=_0x442d32['match'](/^heading(\d+)/);if(_0x33d7e1)return _0x33d7e1[0x1];const _0x573698=this['_headingOptions']?.['find'](_0x31e6b7=>_0x31e6b7['model']==_0x442d32);if(_0x573698&&_0x573698['view']){const _0x4bb1f6=_0x573698['view'],_0x5066eb=(_0x4bb1f6['name']??_0x4bb1f6)['match'](/^h(\d+)/);if(_0x5066eb)return _0x5066eb[0x1];}return null;}}class nt extends _0x5575fe{['afterInit'](){const _0x40f72e=this['editor'];if(!_0x40f72e['plugins']['has']('HighlightEditing'))return;const _0x1b2344=_0x40f72e['plugins']['get']('TrackChangesEditing'),_0x4307fa=_0x40f72e['locale'];_0x1b2344['enableDefaultAttributesIntegration']('highlight'),_0x1b2344['registerInlineAttribute']('highlight'),_0x1b2344['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4307fa,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a937a=this['editor'],_0x5dc1e2=_0x2a937a['locale'];_0x2a937a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197cb8=>{if('formatInline'!=_0x197cb8['type'])return;const {data:_0x43695f}=_0x197cb8;if(_0x43695f&&'highlight'==_0x43695f['commandName']){const _0x3143b1=_0x5dc1e2['t'],_0x42283b=_0x43695f['commandParams'][0x0]['value'];if(_0x42283b){const _0x413e6a=_0x2a937a['config']['get']('highlight.options')['find'](_0x1f5835=>_0x1f5835['model']==_0x42283b),_0x2812a5=_0x3143b1(_0x413e6a['title'])['toLowerCase']();return{'type':'format','content':c(_0x5dc1e2,'*Set\x20highlight:*\x20%0',_0x2812a5),'color':{'value':_0x413e6a['color'],'title':_0x413e6a['title']}};}return{'type':'format','content':c(_0x5dc1e2,'*Remove\x20highlight*',c(_0x5dc1e2,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5575fe{['afterInit'](){const _0x5c55d2=this['editor'];if(!_0x5c55d2['plugins']['has']('HorizontalLineEditing'))return;_0x5c55d2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x425f42=_0x5c55d2['plugins']['get']('TrackChangesEditing'),_0xe06d50=_0x5c55d2['locale'];_0x425f42['descriptionFactory']['registerElementLabel']('horizontalLine',_0x127392=>c(_0xe06d50,'ELEMENT_HORIZONTAL_LINE',_0x127392)),_0x5c55d2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b46e9,{writer:_0x1a8d25,options:_0x41aee4})=>{if(!_0x41aee4['showSuggestionHighlights'])return null;const _0x18fdd1=_0x1a8d25['createContainerElement']('div'),_0x11b2c2=_0x1a8d25['createEmptyElement']('hr');return _0x1a8d25['addClass']('ck-horizontal-line',_0x18fdd1),_0x1a8d25['insert'](_0x1a8d25['createPositionAt'](_0x18fdd1,0x0),_0x11b2c2),_0x18fdd1;},'converterPriority':'high'});}}class ot extends _0x5575fe{['afterInit'](){const _0x41022e=this['editor'];if(!_0x41022e['plugins']['has']('HtmlEmbed'))return;const _0x59d1f9=_0x41022e['plugins']['get']('TrackChangesEditing'),_0x365489=_0x41022e['locale'];_0x59d1f9['descriptionFactory']['registerElementLabel']('rawHtml',_0x17d26b=>c(_0x365489,'ELEMENT_HTML_EMBED',_0x17d26b)),_0x59d1f9['enableDefaultAttributesIntegration']('htmlEmbed'),_0x59d1f9['registerBlockAttribute']('value'),_0x59d1f9['descriptionFactory']['registerDescriptionCallback'](_0x4fc090=>{if('attribute'!=_0x4fc090['type'])return;const {data:_0x418caf}=_0x4fc090;if(_0x418caf&&'value'==_0x418caf['key']&&_0x4fc090['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x8292d9=c(_0x365489,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x365489,'*Change\x20%0\x20content*',_0x8292d9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e4c9b=this['editor'],_0x1258f6=_0x4e4c9b['locale'];_0x4e4c9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f9f4=>{if('formatBlock'!=_0x20f9f4['type'])return;const {data:_0x35d144}=_0x20f9f4;if(_0x35d144&&'htmlEmbed'==_0x35d144['commandName']){const _0x11520c=c(_0x1258f6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1258f6,'*Change\x20%0\x20content*',_0x11520c)};}});}}class rt extends _0x5575fe{['afterInit'](){const _0x363de5=this['editor'];if(!_0x363de5['plugins']['has']('ImageEditing'))return;const _0x412303=_0x363de5['plugins']['get']('TrackChangesEditing'),_0x3d32ea=_0x363de5['plugins']['get']('ImageUtils'),_0x151d27=_0x363de5['locale'];_0x412303['enableCommand']('insertImage'),_0x412303['descriptionFactory']['registerElementLabel']('imageBlock',_0x59b30b=>c(_0x151d27,'ELEMENT_IMAGE',_0x59b30b)),_0x412303['descriptionFactory']['registerElementLabel']('imageInline',_0x155df5=>c(_0x151d27,'ELEMENT_INLINE_IMAGE',_0x155df5)),_0x412303['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x151d27,'ELEMENT_CAPTION')),_0x363de5['plugins']['has']('ImageUploadEditing')&&_0x412303['enableCommand']('uploadImage'),_0x363de5['plugins']['has']('ImageBlockEditing')&&_0x363de5['plugins']['has']('ImageInlineEditing')&&(_0x412303['enableCommand']('imageTypeInline',(_0x487b16,_0x23853f)=>{const _0x2482a9=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']);_0x363de5['model']['change'](()=>{_0x412303['markBlockFormat'](_0x2482a9,{'commandName':'imageTypeInline','commandParams':[_0x23853f]},[],'convertBlockImageToInline');});}),_0x412303['enableCommand']('imageTypeBlock',(_0x4b9356,_0x3acb12)=>{_0x363de5['model']['change'](_0x26b665=>{let _0x5e964d=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x156518=_0x26b665['createRangeOn'](_0x5e964d);const _0x3cd47a=_0x12b057['fromPosition'](_0x156518['start'],'toPrevious'),_0x51f988=_0x12b057['fromPosition'](_0x156518['end'],'toNext');_0x412303['forceDefaultExecution'](()=>_0x4b9356(_0x3acb12)),_0x5e964d=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x156518=_0x26b665['createRangeOn'](_0x5e964d);const _0x43c080=_0x26b665['createRange'](_0x3cd47a,_0x51f988);_0x3cd47a['detach'](),_0x51f988['detach'](),_0x412303['markBlockFormat'](_0x5e964d,{'commandName':'imageTypeInline','commandParams':[_0x3acb12]},[],'convertInlineImageToBlock'),_0x43c080['start']['isBefore'](_0x156518['start'])&&_0x412303['markInsertion'](_0x26b665['createRange'](_0x43c080['start'],_0x156518['start']),'convertInlineImageToBlock'),_0x156518['end']['isBefore'](_0x43c080['end'])&&_0x412303['markInsertion'](_0x26b665['createRange'](_0x156518['end'],_0x43c080['end']),'convertInlineImageToBlock');});}),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x412303['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xe0fdf5])=>{const _0x20812f=_0x412303['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e7480=_0xe0fdf5['start'],_0x240523=_0xe0fdf5['end'];const _0x53b808=_0x363de5['model']['schema']['getNearestSelectionRange'](_0x2e7480,'backward'),_0x170a14=_0x363de5['model']['schema']['getNearestSelectionRange'](_0x240523,'forward');_0x53b808['isCollapsed']&&(_0x2e7480=_0x53b808['start']),_0x170a14['isCollapsed']&&(_0x240523=_0x170a14['end']),_0x20812f([_0x363de5['model']['createRange'](_0x2e7480,_0x240523)]);}),_0x412303['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4186d9),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4186d9)),_0x363de5['plugins']['has']('ImageCaptionEditing')&&(_0x412303['enableCommand']('toggleImageCaption',(_0x1a3c72,_0x4270b7)=>{const _0x317a61=_0x363de5['plugins']['get']('ImageCaptionUtils');let _0x2aeca3=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x3d6efa=_0x317a61['getCaptionFromImageModelElement'](_0x2aeca3);_0x363de5['model']['change'](()=>{if(_0x3d6efa)return void _0x412303['markDeletion'](_0x363de5['model']['createRangeOn'](_0x3d6efa));const _0x38a687=_0x3d32ea['isBlockImage'](_0x2aeca3);_0x1a3c72(_0x4270b7),_0x2aeca3=_0x3d32ea['getClosestSelectedImageElement'](_0x363de5['model']['document']['selection']),_0x3d6efa=_0x317a61['getCaptionFromImageModelElement'](_0x2aeca3),_0x412303['markInsertion'](_0x363de5['model']['createRangeOn'](_0x3d6efa),_0x38a687?null:'imageCaption');});}),_0x412303['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4186d9));const _0x3a166b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ca3f5(_0x25c232,_0x39b9a0){const _0x5e1909=_0x3a166b['findIndex'](({type:_0x336170,subType:_0x4ea2f4})=>_0x25c232['type']==_0x336170&&_0x25c232['subType']==_0x4ea2f4),_0x1d89dc=_0x3a166b['findIndex'](({type:_0x2c15a5,subType:_0x4c95cd})=>_0x39b9a0['type']==_0x2c15a5&&_0x39b9a0['subType']==_0x4c95cd);if(_0x5e1909<0x0||_0x1d89dc<0x0)return!0x1;const _0x4c03ac=_0x25c232['getFirstRange'](),_0x3f4187=_0x39b9a0['getFirstRange']();if((0x0==_0x5e1909||0x1==_0x5e1909)&&0x2==_0x1d89dc&&_0x4c03ac['isIntersecting'](_0x3f4187))return!0x0;if(0x2==_0x5e1909&&0x3==_0x1d89dc){const _0x839247=_0x412303['_findSuggestions'](_0x4c03ac,'insertion')['filter'](({suggestion:_0x5f2884,meta:_0xb8f12f})=>_0xb8f12f['isOwn']&&'convertInlineImageToBlock'==_0x5f2884['subType']);if(_0x839247['length']>0x1&&_0x3f4187['end']['isEqual'](_0x4c03ac['start']))return!0x0;if(0x1==_0x839247['length']&&(_0x4c03ac['start']['isEqual'](_0x3f4187['end'])||_0x4c03ac['end']['isEqual'](_0x3f4187['start'])))return!0x0;}if(0x3==_0x5e1909&&0x3==_0x1d89dc&&_0x4c03ac['start']['isBefore'](_0x3f4187['start'])){const _0x527651=_0x4c03ac['end']['nodeAfter'],_0x21c114=_0x3f4187['start']['nodeBefore'];return _0x3d32ea['isBlockImage'](_0x527651)&&_0x527651===_0x21c114;}return!0x1;}function _0x4186d9(_0x144897,_0x167859){return _0x4ca3f5(_0x144897,_0x167859)?[_0x144897,_0x167859]:_0x4ca3f5(_0x167859,_0x144897)?[_0x167859,_0x144897]:null;}_0x363de5['plugins']['has']('ImageResize')&&(_0x412303['enableDefaultAttributesIntegration']('resizeImage'),_0x412303['registerBlockAttribute']('resizedWidth'),_0x412303['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x151d27,'FORMAT_IMAGE_SIZE'))),_0x363de5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x412303['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x412303['registerBlockAttribute']('alt')),_0x363de5['plugins']['has']('PictureEditing')&&(_0x412303['registerBlockAttribute']('sources'),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x350033=>{if('attribute'!=_0x350033['type'])return;const {data:_0x111eab}=_0x350033;return _0x111eab&&'sources'==_0x111eab['key']?{'type':'format','content':''}:void 0x0;})),_0x363de5['plugins']['has']('ImageSizeAttributes')&&(_0x412303['registerBlockAttribute']('width'),_0x412303['registerBlockAttribute']('height'),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x3b3ec8=>{if('attribute'!=_0x3b3ec8['type'])return;const {data:_0x41f576}=_0x3b3ec8;return!_0x41f576||'width'!=_0x41f576['key']&&'height'!=_0x41f576['key']?void 0x0:{'type':'format','content':''};})),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x5e93b5=>{if(!!_0x3a166b['find'](({type:_0x1b8a88,subType:_0x4c59a5})=>_0x5e93b5['type']==_0x1b8a88&&_0x5e93b5['subType']==_0x4c59a5))return _0x5e93b5['previous']?{}:void 0x0;}),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x53b8b6=>{if('insertion'==_0x53b8b6['type']||'deletion'==_0x53b8b6['type']){const _0x27019b=_0x53b8b6['getContainedElement']();if(_0x27019b&&_0x27019b['is']('element','caption'))return{'type':'insertion'==_0x53b8b6['type']?'addObject':'removeObject','element':_0x27019b,'quantity':0x1};}}),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0xbc6de1=>'formatBlock'==_0xbc6de1['type']&&'convertInlineImageToBlock'==_0xbc6de1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xbc6de1['type']&&'convertBlockImageToInline'==_0xbc6de1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x412303['descriptionFactory']['registerDescriptionCallback'](_0x4fb863=>{if('attribute'!=_0x4fb863['type'])return;const {data:_0x47113b}=_0x4fb863;if(!_0x47113b||'alt'!=_0x47113b['key'])return;const _0x18185a=_0x47113b['newValue'];return _0x18185a?{'type':'format','content':c(_0x151d27,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x18185a+'\x22')}:{'type':'format','content':c(_0x151d27,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29fbb9=this['editor'],_0x4e912d=_0x29fbb9['locale'];_0x29fbb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45705e=>{if('formatBlock'!=_0x45705e['type']&&'formatInline'!=_0x45705e['type'])return;const {data:_0x438ca1}=_0x45705e;if(_0x438ca1){if('imageTextAlternative'==_0x438ca1['commandName']){const _0x4d42cb=_0x438ca1['commandParams'][0x0]['newValue'];return _0x4d42cb?{'type':'format','content':c(_0x4e912d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d42cb+'\x22')}:{'type':'format','content':c(_0x4e912d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x438ca1['commandName']){const _0x34a65f=_0x438ca1['commandParams'][0x0]['width'];return _0x34a65f?{'type':'format','content':c(_0x4e912d,'*Set\x20image\x20width:*\x20%0',_0x34a65f)}:{'type':'format','content':c(_0x4e912d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5ceba0=this['editor']['locale'],_0x22326f=this['editor']['plugins']['get']('TrackChangesEditing');_0x22326f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x22326f['registerBlockAttribute']('src'),_0x22326f['descriptionFactory']['registerDescriptionCallback'](_0x47b756=>{if('attribute'!=_0x47b756['type'])return;const {data:_0x66b39e}=_0x47b756;return _0x66b39e&&'src'==_0x66b39e['key']?_0x66b39e['newValue']&&_0x66b39e['oldValue']?{'type':'format','content':c(_0x5ceba0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x76573e=this['editor']['plugins']['get']('TrackChangesEditing');_0x76573e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x76573e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x76573e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x76573e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10ed00=this['editor'],_0x6b4230=_0x10ed00['locale'];_0x10ed00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2286bc=>{if('formatBlock'!=_0x2286bc['type']&&'formatInline'!=_0x2286bc['type'])return;const {data:_0x37c901}=_0x2286bc;if(!_0x37c901||'replaceImageSource'!=_0x37c901['commandName'])return;return{'type':'format','content':c(_0x6b4230,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5575fe{['afterInit'](){const _0x3a58ff=this['editor'];if(!_0x3a58ff['plugins']['has']('ImageStyleEditing'))return;const _0x5a2b82=_0x3a58ff['plugins']['get']('TrackChangesEditing'),_0x5e920f=_0x3a58ff['plugins']['get']('ImageUtils'),_0x1df184={};_0x5a2b82['enableCommand']('imageStyle',(_0x2e05ad,_0x508ddd)=>{const _0x30c33c=_0x3a58ff['plugins']['get']('Users')['me'],_0x4d5314=_0x3a58ff['commands']['get']('imageStyle');let _0x111823=_0x5e920f['getClosestSelectedImageElement'](_0x3a58ff['model']['document']['selection']),_0x31f629=_0x3a58ff['model']['createRangeOn'](_0x111823),_0x38ade6=_0x4d5314['value'];if(_0x38ade6==_0x508ddd['value'])return;const _0x333c10={'commandName':'imageStyle','commandParams':[_0x508ddd],'formatGroupId':_0x1526c3()};_0x3a58ff['model']['change'](()=>{if(_0x5a2b82['getSuggestions']()['filter'](_0x40d169=>_0x40d169['isInContent']&&_0x30c33c==_0x40d169['author']&&('formatBlock'==_0x40d169['type']||'formatInline'==_0x40d169['type'])&&('imageStylePreApply'==_0x40d169['subType']||'imageStylePostApply'==_0x40d169['subType'])&&_0x40d169['getFirstRange']()['isEqual'](_0x31f629))['forEach'](_0x39475b=>_0x5a2b82['discardSuggestion'](_0x39475b['head'])),_0x111823=_0x5e920f['getClosestSelectedImageElement'](_0x3a58ff['model']['document']['selection']),_0x31f629=_0x3a58ff['model']['createRangeOn'](_0x111823),_0x4d5314['refresh'](),_0x3a58ff['commands']['get']('imageTypeInline')['refresh'](),_0x3a58ff['commands']['get']('imageTypeBlock')['refresh'](),_0x38ade6=_0x4d5314['value'],_0x38ade6!=_0x508ddd['value'])return _0x5e920f['isInlineImage'](_0x111823)&&_0x4d5314['shouldConvertImageType'](_0x508ddd['value'],_0x111823)?(_0x2e05ad({..._0x508ddd,'setImageSizes':!0x1}),_0x111823=_0x5e920f['getClosestSelectedImageElement'](_0x3a58ff['model']['document']['selection']),void _0x5a2b82['markBlockFormat'](_0x111823,{..._0x333c10,'commandReversedParams':[{'value':_0x38ade6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e920f['isBlockImage'](_0x111823)?_0x5a2b82['markBlockFormat'](_0x111823,_0x333c10,[],'imageStylePostApply'):_0x5a2b82['markInlineFormat'](_0x31f629,_0x333c10,'imageStylePostApply'));});});for(const _0x59b6bd of _0x3a58ff['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1df184[_0x59b6bd['name']]=_0x59b6bd['title']['toLowerCase']();_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1a915c])=>{_0x5e920f['setImageNaturalSizeAttributes'](_0x1a915c['getContainedElement']());}),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4220cb,_0x10d42c)=>{_0x5a2b82['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4220cb,{'commandName':_0x10d42c['commandName'],'commandParams':_0x10d42c['commandReversedParams']});}),_0x5a2b82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5702ce,_0x488f81){if(_0x557989(_0x5702ce,_0x488f81))return[_0x5702ce,_0x488f81];if(_0x557989(_0x488f81,_0x5702ce))return[_0x488f81,_0x5702ce];return null;});const _0x399b7b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x557989(_0x35a183,_0x39ae24){const _0x103290=_0x399b7b['findIndex'](({type:_0x12eb22,subType:_0x4383f9})=>_0x35a183['type']==_0x12eb22&&_0x35a183['subType']==_0x4383f9),_0x8e0f34=_0x399b7b['findIndex'](({type:_0x300294,subType:_0x9c89f})=>_0x39ae24['type']==_0x300294&&_0x39ae24['subType']==_0x9c89f);if(_0x103290<0x0||_0x8e0f34<0x0)return!0x1;const _0x553452=_0x35a183['getFirstRange'](),_0x2acaea=_0x39ae24['getFirstRange']();if((0x0==_0x103290||0x1==_0x103290)&&0x2==_0x8e0f34&&_0x553452['isIntersecting'](_0x2acaea))return!0x0;if(0x2==_0x103290&&0x3==_0x8e0f34){const _0x32480d=_0x5a2b82['_findSuggestions'](_0x553452,'insertion')['filter'](({suggestion:_0x1bc5ee,meta:_0x358f00})=>_0x358f00['isOwn']&&'convertInlineImageToBlock'==_0x1bc5ee['subType']);if(_0x32480d['length']>0x1&&_0x2acaea['end']['isEqual'](_0x553452['start']))return!0x0;if(0x1==_0x32480d['length']&&(_0x553452['start']['isEqual'](_0x2acaea['end'])||_0x553452['end']['isEqual'](_0x2acaea['start'])))return!0x0;}if(0x3==_0x103290&&0x3==_0x8e0f34&&_0x553452['start']['isBefore'](_0x2acaea['start'])){const _0x1f4aa4=_0x553452['end']['nodeAfter'],_0x15ff6b=_0x2acaea['start']['nodeBefore'];return _0x5e920f['isBlockImage'](_0x1f4aa4)&&_0x1f4aa4===_0x15ff6b;}return!0x1;}_0x3a58ff['model']['document']['registerPostFixer'](()=>{let _0x43d135=!0x1;const _0x43403e=Array['from'](_0x3a58ff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48fb64,data:_0x402e3b}of _0x43403e){const {group:_0x296a35,type:_0x50ae4f,subType:_0x69617,id:_0x165461}=_0x5a2b82['_splitMarkerName'](_0x48fb64);if('suggestion'==_0x296a35&&_0x5a2b82['hasSuggestion'](_0x165461)){if('formatBlock'==_0x50ae4f&&('imageStylePreApply'==_0x69617||'imageStylePostApply'==_0x69617)){const _0x4f0aa4=_0x5a2b82['getSuggestion'](_0x165461);if(_0x402e3b['newRange']){const _0x55f829=_0x4f0aa4['getFirstRange']()['getContainedElement']();if(_0x5e920f['isBlockImage'](_0x55f829))continue;_0x5a2b82['discardSuggestion'](_0x4f0aa4),_0x43d135=!0x0;}}if('insertion'==_0x50ae4f&&'imageCaption'==_0x69617&&!_0x402e3b['newRange']){const _0x2b2e71=_0x5a2b82['getSuggestion'](_0x165461);_0x2b2e71['next']&&_0x2b2e71['next']['isInContent']&&(_0x5a2b82['discardSuggestion'](_0x2b2e71['next']),_0x43d135=!0x0);}}}return _0x43d135;}),this['_registerLegacyDescription'](_0x1df184);}['_registerLegacyDescription'](_0x1a09c8){const _0x5a42d7=this['editor'],_0xf5400f=_0x5a42d7['locale'];_0x5a42d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38f659=>{if('formatBlock'!=_0x38f659['type']&&'formatInline'!=_0x38f659['type'])return;const {data:_0x572c46}=_0x38f659;if(!_0x572c46||'imageStyle'!=_0x572c46['commandName'])return;const _0x3f9f9e=_0x572c46['commandParams'][0x0]['value'];return _0x35825b('side'===_0x3f9f9e?c(_0xf5400f,'FORMAT_SIDE_IMAGE'):_0x1a09c8[_0x3f9f9e]||_0x3f9f9e);function _0x35825b(_0x120984){return{'type':'format','content':c(_0xf5400f,'*Format:*\x20%0',_0x120984)};}});}}class ut extends _0x5575fe{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x314ebb){super(_0x314ebb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x15baa3=this['editor'],_0x3c1e3e=_0x15baa3['commands']['get']('importWord'),_0x397934=_0x15baa3['commands']['get']('trackChanges');_0x3c1e3e&&(_0x3c1e3e['on']('execute',(_0x13bd54,[,_0x30765a])=>{this['_trackChangesValueDuringImport']=_0x397934['value'],_0x30765a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c1e3e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c1e3e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x397934['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x15baa3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x30d54f,_0x181c53){const {suggestions:_0x666112}=_0x181c53,_0x4d512f=this['editor']['commands']['get']('trackChanges'),_0x390cc4=_0x4d512f['value'];this['_trackChangesValueDuringImport']!==_0x390cc4&&(_0x4d512f['execute'](),this['_trackChangesExecuted']=!0x0),_0x666112&&_0x666112['forEach'](({id:_0xf819e7,type:_0x21d734,author:_0x538811,created_at:_0x44b064})=>{const _0x40c0f2={'id':_0xf819e7,'type':_0x21d734,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x538811,'createdAt':_0x44b064?new Date(_0x44b064):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x40c0f2);});}}class ft extends _0x5575fe{['afterInit'](){const _0x3ff23c=this['editor'],_0xf361d3=_0x3ff23c['plugins']['get']('TrackChangesEditing');if(_0x3ff23c['plugins']['has']('IndentEditing')&&(_0xf361d3['enableCommand']('indent'),_0xf361d3['enableCommand']('outdent')),_0x3ff23c['plugins']['has']('IndentBlock')){for(const _0x5e10e2 of['indentBlock','outdentBlock'])_0xf361d3['enableDefaultAttributesIntegration'](_0x5e10e2);}const _0x5d53ed=_0x3ff23c['locale'];_0xf361d3['registerBlockAttribute']('blockIndent'),_0xf361d3['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5d53ed,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x147cb0=this['editor'],_0xdf3b75=_0x147cb0['locale'],_0x2455a8=_0x147cb0['plugins']['get']('TrackChangesEditing');_0x2455a8['descriptionFactory']['registerDescriptionCallback'](_0x59a28a=>{if('formatBlock'!=_0x59a28a['type'])return;const {data:_0x401b8c}=_0x59a28a;if(!_0x401b8c)return;if('indentBlock'!=_0x401b8c['commandName']&&'outdentBlock'!=_0x401b8c['commandName'])return;const _0x1d9f9f=_0x59a28a['getItems']()[0x0],_0x18d827=_0x2455a8['descriptionFactory']['getItemLabel'](_0x1d9f9f);return'indentBlock'==_0x401b8c['commandName']?{'type':'format','content':c(_0xdf3b75,'*Indent:*\x20%0',_0x18d827)}:'outdentBlock'==_0x401b8c['commandName']?{'type':'format','content':c(_0xdf3b75,'*Outdent:*\x20%0',_0x18d827)}:void 0x0;});}}class ht extends _0x5575fe{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x5575fe{['afterInit'](){const _0x161d45=this['editor'];if(!_0x161d45['plugins']['has']('LinkEditing'))return;const _0xd87849=_0x161d45['plugins']['get']('TrackChangesEditing'),_0x13e408=_0x161d45['commands']['get']('link');_0xd87849['enableDefaultAttributesIntegration']('link'),_0xd87849['enableDefaultAttributesIntegration']('unlink'),_0xd87849['registerInlineAttribute']('linkHref');for(const _0x12d2df of _0x13e408['manualDecorators'])_0xd87849['registerInlineAttribute'](_0x12d2df['id']),_0xd87849['descriptionFactory']['registerAttributeLabel'](_0x12d2df['id'],'link\x20('+_0x12d2df['label']['toLowerCase']()+')');_0xd87849['descriptionFactory']['registerDescriptionCallback'](_0x15acf1=>{if('attribute'!=_0x15acf1['type'])return;const {data:_0x526481}=_0x15acf1;if(!_0x526481||'linkHref'!=_0x526481['key'])return;const _0x2f9c3b=_0x526481['newValue'],_0x5ebc39=_0x161d45['locale'];return{'type':'format','content':null==_0x2f9c3b?c(_0x5ebc39,'*Remove\x20link*'):c(_0x5ebc39,'*Set\x20link:*\x20%0','\x22'+_0x2f9c3b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x159f19=this['editor'],_0x3507bb=_0x159f19['locale'];_0x159f19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11a8a0=>{if('formatInline'!=_0x11a8a0['type'])return;const {data:_0x147b65}=_0x11a8a0;if(_0x147b65){if('link'==_0x147b65['commandName']){const _0xa6eafd=_0x147b65['commandParams'][0x0];return{'type':'format','content':c(_0x3507bb,'*Set\x20link:*\x20%0','\x22'+_0xa6eafd+'\x22')};}return'unlink'==_0x147b65['commandName']?{'type':'format','content':c(_0x3507bb,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x5575fe{['afterInit'](){const _0x343448=this['editor'],_0x2a0847=_0x343448['locale'];if(!_0x343448['plugins']['has']('LegacyListEditing'))return;const _0x1487b0=_0x343448['plugins']['get']('TrackChangesEditing'),_0xaf07b1=_0x343448['plugins']['has']('LegacyTodoListEditing');function _0x417094(_0x1d3222){return()=>{const _0x2a27ab=_0x343448['model']['document']['selection'],_0x1b99c0=_0x343448['commands']['get'](_0x1d3222);if(_0x1b99c0['value'])return void _0x343448['execute']('paragraph',{});const _0x25acd0=_0x1d3222['slice'](0x0,-0x4),_0xd87376=function(_0x18c08e,_0x36ac9f,_0x1ffdde){let _0x5aa539=Array['from'](_0x18c08e)['filter'](_0x8b1a03=>function(_0x116d68,_0x469808){return _0x469808['checkChild'](_0x116d68['parent'],'listItem')&&!_0x469808['isObject'](_0x116d68);}(_0x8b1a03,_0x1ffdde));_0x5aa539=_0x5aa539['filter'](_0x1d5fe3=>!_0x1d5fe3['is']('element','listItem')||_0x1d5fe3['getAttribute']('listType')!=_0x36ac9f);const _0x596d08=new Set();for(const _0x373796 of _0x5aa539)_0x373796['is']('element','listItem')?_0x596d08['add'](Le(_0x373796)):_0x596d08['add'](_0x373796);return Array['from'](_0x596d08);}(_0x2a27ab['getSelectedBlocks'](),_0x25acd0,_0x343448['model']['schema']);_0x343448['model']['change'](()=>{for(const _0x3c3293 of _0xd87376)_0x1487b0['markBlockFormat'](_0x3c3293,{'commandName':_0x1d3222,'commandParams':[{'forceValue':!_0x1b99c0['value']}],'formatGroupId':'blockName'},Ee(_0x3c3293));});};}function _0x37b00c(_0xd6913d){return()=>{const _0x177fb2=function(_0x5b5845){let _0x119752=Array['from'](_0x5b5845);const _0x5a7ec5=_0x119752['findIndex'](_0x186dc8=>'listItem'!=_0x186dc8['name']);return _0x5a7ec5>-0x1&&(_0x119752=_0x119752['slice'](0x0,_0x5a7ec5)),_0x119752;}(_0x343448['model']['document']['selection']['getSelectedBlocks']()),_0x1ec738=_0x343448['model']['createRange'](_0x343448['model']['createPositionAt'](_0x177fb2[0x0],'before'),_0x343448['model']['createPositionAt'](_0x177fb2[_0x177fb2['length']-0x1],'end'));_0x343448['model']['change'](()=>{_0x1487b0['markBlockFormat'](_0x1ec738,{'commandName':_0xd6913d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a2f30){const _0x44a09c=new Set();for(const _0x2f1549 of _0x1a2f30){let _0x5e6661=_0x2f1549['nextSibling'];for(;_0x5e6661&&_0x5e6661['getAttribute']('listIndent')>_0x2f1549['getAttribute']('listIndent');)_0x44a09c['add'](_0x5e6661),_0x5e6661=_0x5e6661['nextSibling'];}return Array['from'](_0x44a09c);}(_0x177fb2));});};}_0x1487b0['enableCommand']('numberedList',_0x417094('numberedList')),_0x1487b0['enableCommand']('bulletedList',_0x417094('bulletedList')),_0xaf07b1&&_0x1487b0['enableCommand']('todoList',_0x417094('todoList')),_0x1487b0['enableCommand']('indentList',_0x37b00c('indentList')),_0x1487b0['enableCommand']('outdentList',_0x37b00c('outdentList')),_0xaf07b1&&_0x1487b0['enableCommand']('checkTodoList',()=>{const _0x3ecf69=_0x343448['commands']['get']('checkTodoList'),_0x1dfaba=Array['from'](_0x3ecf69['_selectedElements']);_0x1dfaba['filter'](_0x37cac1=>_0x37cac1['getAttribute']('todoListChecked')!=_0x3ecf69['value']),_0x343448['model']['change'](()=>{for(const _0x2a11ef of _0x1dfaba)_0x1487b0['markBlockFormat'](_0x2a11ef,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3ecf69['value']}]});});}),_0x1487b0['descriptionFactory']['registerElementLabel']('listItem',_0x19dc75=>c(_0x2a0847,'ELEMENT_LIST_ITEM',_0x19dc75)),_0x1487b0['descriptionFactory']['registerDescriptionCallback'](_0x37a8ac=>{if('formatBlock'!=_0x37a8ac['type']&&'formatInline'!=_0x37a8ac['type'])return;const {data:_0xd194a6}=_0x37a8ac;if(_0xd194a6){if('numberedList'==_0xd194a6['commandName']||'bulletedList'==_0xd194a6['commandName']||'todoList'==_0xd194a6['commandName'])switch(_0xd194a6['commandName']['replace']('List','')){case'bulleted':return _0x1b2667(c(_0x2a0847,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b2667(c(_0x2a0847,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b2667(c(_0x2a0847,'ELEMENT_TODO_LIST'));}if('indentList'==_0xd194a6['commandName'])return{'type':'format','content':c(_0x2a0847,'*Indent:*\x20%0',c(_0x2a0847,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xd194a6['commandName'])return{'type':'format','content':c(_0x2a0847,'*Outdent:*\x20%0',c(_0x2a0847,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xd194a6['commandName'])return _0xd194a6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2a0847,'*Check\x20item*')}:{'type':'format','content':c(_0x2a0847,'*Uncheck\x20item*')};}function _0x1b2667(_0x48cdf4){return{'type':'format','content':c(_0x2a0847,'*Change\x20to:*\x20%0',_0x48cdf4)};}});}}function Le(_0x31b53a){const _0x3fc437=_0x31b53a['getAttribute']('listIndent');if(0x0==_0x3fc437)return _0x31b53a;let _0x72bd6a=_0x31b53a;for(;_0x31b53a['previousSibling']&&_0x31b53a['previousSibling']['is']('element','listItem');){const _0x4fe4db=_0x31b53a['previousSibling']['getAttribute']('listIndent');if(_0x4fe4db==_0x3fc437)_0x72bd6a=_0x31b53a['previousSibling'];else{if(_0x4fe4db<_0x3fc437)break;}_0x31b53a=_0x31b53a['previousSibling'];}return _0x72bd6a;}function Ee(_0x2dc732){const _0x5c1e29=[];if(_0x2dc732['is']('element','listItem')&&_0x2dc732['getAttribute']('listIndent')>0x0){let _0x6fcb46=_0x2dc732['nextSibling'];for(;_0x6fcb46&&'listItem'==_0x6fcb46['name']&&_0x6fcb46['getAttribute']('listIndent')==_0x2dc732['getAttribute']('listIndent');)_0x5c1e29['push'](_0x6fcb46),_0x6fcb46=_0x6fcb46['nextSibling'];}return _0x5c1e29;}class Q extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x18a284=this['editor']['config']['get']('list.properties'),_0x524805=this['editor']['plugins']['get']('TrackChangesEditing');_0x18a284['styles']&&_0x524805['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x18a284['reversed']&&_0x524805['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x18a284['startIndex']&&_0x524805['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x524805['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1696b4,_0x39281c={}){const _0xb91ffd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6f011=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xb91ffd['markMultiRangeBlockFormat'](_0xa6f011,{'commandName':'listStyle','commandParams':[{'type':_0x39281c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x397619,_0xfd24d1={}){const _0x3cc0ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4696e5=this['_getSuggestionBlocks'](_0x36962f=>_0x36962f['is']('element','listItem')&&'numbered'===_0x36962f['getAttribute']('listType'));if(_0x4696e5['length']<0x1)return;const _0x2c7f47=_0x4696e5['map'](_0x1d2c28=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d2c28,'before'),this['editor']['model']['createPositionAt'](_0x1d2c28,0x0)));this['editor']['model']['change'](()=>{_0x3cc0ae['markMultiRangeBlockFormat'](_0x2c7f47,{'commandName':'listReversed','commandParams':[{'reversed':_0xfd24d1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3f552c,_0x7caa15={}){const _0xbcd029=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49c1a6=this['_getSuggestionBlocks'](_0x54e35f=>_0x54e35f['is']('element','listItem')&&'numbered'===_0x54e35f['getAttribute']('listType'));if(_0x49c1a6['length']<0x1)return;const _0xaf9736=_0x49c1a6['map'](_0x8337c2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8337c2,'before'),this['editor']['model']['createPositionAt'](_0x8337c2,0x0)));this['editor']['model']['change'](()=>{_0xbcd029['markMultiRangeBlockFormat'](_0xaf9736,{'commandName':'listStart','commandParams':[{'startIndex':_0x7caa15['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x14f67e){if('formatBlock'!=_0x14f67e['type']&&'formatInline'!=_0x14f67e['type'])return;const _0x1e33bc=this['editor']['locale'],{data:_0x32701a}=_0x14f67e;if(!_0x32701a)return;let _0x5846f7,_0x1318fe;switch(_0x32701a['commandName']){case'listStyle':_0x5846f7='*Change\x20to:*\x20%0',_0x1318fe={'type':'format','content':c(_0x1e33bc,_0x5846f7,c(_0x1e33bc,this['_getTranslationKeyForListStyle'](_0x32701a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5846f7=_0x32701a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1318fe={'type':'format','content':c(_0x1e33bc,_0x5846f7)};break;case'listStart':_0x5846f7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1318fe={'type':'format','content':c(_0x1e33bc,_0x5846f7,_0x32701a['commandParams'][0x0]['startIndex'])};}return _0x1318fe;}['_getSuggestionBlocksForListStyle'](){const _0xe1c922=this['editor']['plugins']['get']('LegacyListUtils');let _0x4701e9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4701e9[0x0]?.['is']('element','listItem')&&_0x4701e9['unshift'](..._0xe1c922['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4701e9[_0x4701e9['length']-0x1]?.['is']('element','listItem')&&_0x4701e9['push'](..._0xe1c922['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4701e9=[...new Set(_0x4701e9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4701e9=_0x4701e9['filter'](_0x429be3=>_0x429be3['is']('element','listItem'))),_0x4701e9;}['_getSuggestionBlocks'](_0x19d9be){const _0x5e8761=this['editor']['plugins']['get']('LegacyListUtils');let _0x5bec5e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x19d9be)['map'](_0x28d598=>{const _0x55e335=this['editor']['model']['createPositionAt'](_0x28d598,0x0);return[..._0x5e8761['getSiblingNodes'](_0x55e335,'backward'),..._0x5e8761['getSiblingNodes'](_0x55e335,'forward')];})['flat']();return _0x5bec5e=[...new Set(_0x5bec5e)],_0x5bec5e;}['_getTranslationKeyForListStyle'](_0x1ed095){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1ed095)||'default')['toUpperCase']()+'_LIST_'+_0x1ed095['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x5575fe{['afterInit'](){const _0x5a501b=this['editor'];if(!_0x5a501b['plugins']['has']('MediaEmbedEditing'))return;const _0x25887a=_0x5a501b['plugins']['get']('TrackChangesEditing'),_0x4d789a=_0x5a501b['locale'];_0x25887a['enableCommand']('mediaEmbed'),_0x25887a['descriptionFactory']['registerElementLabel']('media',_0x947f2f=>c(_0x4d789a,'ELEMENT_MEDIA',_0x947f2f)),_0x5a501b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2e5897,{writer:_0x1127ba,options:_0x8ad2a0})=>{if(_0x8ad2a0['showSuggestionHighlights'])return _0x1127ba['createEmptyElement']('div');},'converterPriority':'high'}),_0x5a501b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4064e8,_0x5d03d9,_0x44c605)=>{_0x44c605['options']['showSuggestionHighlights']&&_0x4064e8['stop']();},{'priority':'high'});}}class pt extends _0x5575fe{['afterInit'](){const _0xb030a9=this['editor'];_0xb030a9['plugins']['has']('MentionEditing')&&_0xb030a9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x5575fe{['afterInit'](){const _0x6580dc=this['editor'];if(!_0x6580dc['plugins']['has']('MergeFieldsEditing'))return;const _0x554024=_0x6580dc['plugins']['get']('TrackChangesEditing'),_0x3b897e=_0x6580dc['locale'];_0x554024['enableCommand']('insertMergeField'),_0x554024['enableCommand']('insertMergeFieldBlock'),_0x554024['enableCommand']('insertMergeFieldImage'),_0x554024['descriptionFactory']['registerElementLabel']('mergeField',_0x597a16=>c(_0x3b897e,'ELEMENT_MERGE_FIELD',_0x597a16)),_0x554024['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x31be7d=>c(_0x3b897e,'ELEMENT_MERGE_FIELD',_0x31be7d)),_0x554024['descriptionFactory']['registerDescriptionCallback'](_0x28c764=>{if('insertion'!=_0x28c764['type']&&'deletion'!=_0x28c764['type'])return;const _0xab471a=_0x28c764['getContainedElement']();if(null==_0xab471a)return;const _0x42a358=_0x6580dc['plugins']['get']('MergeFieldsEditing');let _0x4d5d4b;switch(_0x42a358['getMergeFieldType'](_0xab471a)){case null:return;case'image':{const _0x25625e=_0x42a358['unwrapAffixes'](_0xab471a['getAttribute']('src'));_0x4d5d4b=_0x42a358['getLabel'](_0x25625e)||_0x25625e;break;}default:{const _0x24c05d=_0xab471a['getAttribute']('id');_0x4d5d4b=_0x42a358['getLabel'](_0x24c05d)||_0x24c05d;break;}}return'insertion'==_0x28c764['type']?{'type':'insertion','content':c(_0x3b897e,'*Insert:*\x20%0','\x22'+_0x4d5d4b+'\x22\x20'+c(_0x3b897e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3b897e,'*Remove:*\x20%0','\x22'+_0x4d5d4b+'\x22\x20'+c(_0x3b897e,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5575fe{['afterInit'](){const _0x23c7b5=this['editor'],_0x3bc026=_0x23c7b5['plugins']['get']('TrackChangesEditing');_0x23c7b5['plugins']['has']('MultiLevelList')&&(_0x3bc026['enableDefaultAttributesIntegration']('multiLevelList'),_0x3bc026['registerBlockAttribute']('listMarkerStyle'),_0x3bc026['descriptionFactory']['registerDescriptionCallback'](_0x16adcd=>this['handleDescriptions'](_0x16adcd)));}['handleDescriptions'](_0x1d0865){const _0x11c60d=this['editor']['locale'],{data:_0x2df04d}=_0x1d0865,_0x3eb945={'type':'format','content':''};if(_0x2df04d&&'listMarkerStyle'==_0x2df04d['key']){if(!_0x2df04d['oldValue'])return{'type':'format','content':c(_0x11c60d,'*Set\x20format:*\x20%0',c(_0x11c60d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2df04d['newValue']+')'};if(!_0x2df04d['newValue']){let _0xf095cb=_0x1d0865['head'];for(;_0xf095cb;){if(_0xf095cb['data']&&'listType'==_0xf095cb['data']['key']&&_0xf095cb['data']['newValue'])return _0x3eb945;_0xf095cb=_0xf095cb['next'];}return{'type':'format','content':c(_0x11c60d,'*Remove\x20format:*\x20%0',c(_0x11c60d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2df04d['oldValue']+')'};}}}}class bt extends _0x5575fe{['afterInit'](){const _0x1ba987=this['editor'];if(!_0x1ba987['plugins']['has']('PageBreakEditing'))return;_0x1ba987['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5a9985=_0x1ba987['plugins']['get']('TrackChangesEditing'),_0x351f5d=_0x1ba987['locale'];_0x5a9985['descriptionFactory']['registerElementLabel']('pageBreak',_0x1f39b7=>c(_0x351f5d,'ELEMENT_PAGE_BREAK',_0x1f39b7));}}class yt extends _0x5575fe{['afterInit'](){const _0x3619f3=this['editor'];if(!_0x3619f3['plugins']['has']('Paragraph'))return;const _0x3a0cd7=_0x3619f3['locale'],_0x4bc70d=_0x3619f3['plugins']['get']('TrackChangesEditing');_0x4bc70d['descriptionFactory']['registerElementLabel']('paragraph',_0x470085=>c(_0x3a0cd7,'ELEMENT_PARAGRAPH',_0x470085)),_0x4bc70d['enableDefaultAttributesIntegration']('paragraph'),_0x4bc70d['enableCommand']('insertParagraph'),_0x3619f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3619f3),{'priority':'highest'}),_0x3619f3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x12a055,_0x360168,_0x164ea5)=>{_0x164ea5['options']['showSuggestionHighlights']&&nr(_0x3619f3,{'showActiveMarker':!0x1})(_0x12a055,_0x360168,_0x164ea5);},{'priority':'highest'});const _0x322126=_0x4bc70d['descriptionFactory'];_0x322126['registerDescriptionCallback'](_0x56daf4=>{if('insertion'!==_0x56daf4['type'])return;const {start:_0x2826a4,end:_0x57434a}=_0x56daf4['getFirstRange']();if(!_0x2826a4['isTouching'](_0x57434a)||!_0x2826a4['nodeAfter'])return;const _0x3e3870=_0x3619f3['model']['schema'],_0x2a2580=_0x2826a4['nodeAfter'];return _0x3e3870['isBlock'](_0x2a2580)&&!_0x3e3870['isLimit'](_0x2a2580)&&_0x3e3870['checkChild'](_0x2a2580,'$text')?{'type':'insertion','content':c(_0x3a0cd7,'*Insert:*\x20%0',_0x322126['getItemLabel'](_0x2a2580,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe84392=this['editor'],_0x379dba=_0xe84392['locale'];_0xe84392['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25ca22=>{if('formatBlock'!=_0x25ca22['type'])return;const {data:_0x32af30}=_0x25ca22;return _0x32af30&&'paragraph'==_0x32af30['commandName']?{'type':'format','content':c(_0x379dba,'*Change\x20to:*\x20%0',c(_0x379dba,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x310ac7,{showActiveMarker:_0x3a8f8a=!0x0}={}){return(_0x2479d4,_0x270e7b,_0x3af8a9)=>{const _0x289f00=_0x310ac7['plugins']['get']('TrackChangesEditing'),_0x3900b2=_0x270e7b['markerRange']['start'],_0x38d864=_0x270e7b['markerRange']['end'],_0x262872=_0x310ac7['model']['schema'];if(!_0x3900b2['isTouching'](_0x38d864)||!_0x3900b2['nodeAfter'])return;const _0x8ad195=_0x3900b2['nodeAfter'];if(_0x262872['isBlock'](_0x8ad195)&&!_0x262872['isLimit'](_0x8ad195)&&_0x262872['checkChild'](_0x8ad195,'$text')){if(!_0x3af8a9['consumable']['consume'](_0x270e7b['markerRange'],_0x2479d4['name']))return;const {id:_0x59f78d,authorId:_0x3f6752}=_0x289f00['_splitMarkerName'](_0x270e7b['markerName']),_0x1d8e6c=_0x3af8a9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x59f78d,'data-author-id':_0x3f6752}),_0x4a75f1=_0x3af8a9['mapper']['toViewPosition'](_0x38d864);_0x3a8f8a&&_0x289f00['activeMarkers']['includes'](_0x270e7b['markerName'])&&_0x3af8a9['writer']['addClass']('ck-suggestion-marker--active',_0x1d8e6c),_0x3af8a9['writer']['insert'](_0x4a75f1,_0x1d8e6c),_0x3af8a9['mapper']['bindElementToMarker'](_0x1d8e6c,_0x270e7b['markerName']);}};}class St extends _0x5575fe{['afterInit'](){const _0x509363=this['editor'];_0x509363['commands']['get']('replaceSource')&&_0x509363['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x5575fe{['afterInit'](){const _0x25aa0c=this['editor'];if(!_0x25aa0c['plugins']['has']('RemoveFormatEditing'))return;_0x25aa0c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2764bb=this['editor'];_0x2764bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40335d=>{if('formatBlock'!=_0x40335d['type']&&'formatInline'!=_0x40335d['type'])return;const {data:_0x40ccc3}=_0x40335d;return _0x40ccc3&&'removeFormat'==_0x40ccc3['commandName']?{'type':'format','content':c(_0x2764bb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x5575fe{['afterInit'](){const _0x505102=this['editor'];if(!_0x505102['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3f0717=_0x505102['plugins']['get']('TrackChangesEditing');_0x3f0717['enableCommand']('goToPreviousRestrictedEditingException'),_0x3f0717['enableCommand']('goToNextRestrictedEditingException');const _0x153d1d=_0x505102['plugins']['get']('RestrictedEditingModeEditing');_0x153d1d['enableCommand']('trackChanges'),_0x153d1d['enableCommand']('acceptSuggestion'),_0x153d1d['enableCommand']('discardSuggestion'),_0x153d1d['enableCommand']('acceptAllSuggestions'),_0x153d1d['enableCommand']('discardAllSuggestions'),_0x153d1d['enableCommand']('acceptSelectedSuggestions'),_0x153d1d['enableCommand']('discardSelectedSuggestions');}}class At extends _0x5575fe{['afterInit'](){const _0x49eea1=this['editor'];if(!_0x49eea1['plugins']['has']('ShiftEnter'))return;const _0x4b82a2=_0x49eea1['plugins']['get']('TrackChangesEditing');_0x4b82a2['enableCommand']('shiftEnter'),_0x49eea1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x49eea1),{'priority':'high'}),_0x49eea1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x49eea1),{'priority':'high'}),_0x49eea1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5550ef,_0x4333d5,_0xdde1a4)=>{_0xdde1a4['options']['showSuggestionHighlights']&&je(_0x49eea1,{'showActiveMarker':!0x1})(_0x5550ef,_0x4333d5,_0xdde1a4);}),_0x4b82a2['descriptionFactory']['registerElementLabel']('softBreak',_0xf5b36=>c(_0x49eea1['locale'],'ELEMENT_LINE_BREAK',_0xf5b36));}}function je(_0x18188f,{showActiveMarker:_0x3f403c=!0x0}={}){return(_0x41f9e5,_0x459447,_0x21c048)=>{const _0x58b02b=_0x18188f['plugins']['get']('TrackChangesEditing');if(!_0x21c048['consumable']['test'](_0x459447['markerRange'],_0x41f9e5['name']))return;const _0x14d62f=_0x18188f['model'];for(const _0x112553 of _0x459447['markerRange']['getItems']()){if(!_0x112553['is']('element','softBreak'))continue;const _0x25e8c0='deletion'==_0x459447['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x25a41a,authorId:_0xb02685}=_0x58b02b['_splitMarkerName'](_0x459447['markerName']),_0x31d5da=_0x21c048['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25e8c0,'data-suggestion':_0x25a41a,'data-author-id':_0xb02685}),_0x244524=_0x21c048['mapper']['toViewPosition'](_0x14d62f['createPositionBefore'](_0x112553));_0x3f403c&&_0x58b02b['activeMarkers']['includes'](_0x459447['markerName'])&&_0x21c048['writer']['addClass']('ck-suggestion-marker--active',_0x31d5da),_0x21c048['writer']['insert'](_0x244524,_0x31d5da),_0x21c048['mapper']['bindElementToMarker'](_0x31d5da,_0x459447['markerName']);}};}class _t extends _0x5575fe{['afterInit'](){const _0x193ea8=this['editor'],_0x52c589=_0x193ea8['model'],_0x47331b=_0x193ea8['locale'];if(!_0x193ea8['plugins']['has']('StandardEditingModeEditing'))return;const _0x10c175=_0x193ea8['plugins']['get']('TrackChangesEditing'),_0xa43a00='restrictedEditingException',_0x4b33f7=_0x193ea8['commands']['get'](_0xa43a00);_0x10c175['enableCommand'](_0xa43a00,(_0x542ecb,_0x4c72dd={})=>{const _0x3da471=_0x52c589['document']['selection'];if(_0x3da471['isCollapsed'])return void _0x542ecb(_0x4c72dd);const _0x459f93=void 0x0!==_0x4c72dd['forceValue']?_0x4c72dd['forceValue']:!_0x4b33f7['value'];_0x52c589['change'](()=>{const _0x5bdd7e=Array['from'](_0x3da471['getRanges']());for(const _0xcebf02 of _0x5bdd7e){const _0x3de6d3=_0x459f93?[_0xcebf02]:io(_0xa43a00,_0xcebf02,_0x52c589);for(const _0x49522b of _0x3de6d3)_0x10c175['markInlineFormat'](_0x49522b,{'commandName':_0xa43a00,'commandParams':[{'forceValue':_0x459f93}]});}});}),_0x10c175['descriptionFactory']['registerDescriptionCallback'](_0x5e7fc0=>{if('formatBlock'!=_0x5e7fc0['type']&&'formatInline'!=_0x5e7fc0['type'])return;const {data:_0x342560}=_0x5e7fc0;return _0x342560&&_0x342560['commandName']==_0xa43a00?_0x342560['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x47331b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x47331b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5575fe{['afterInit'](){const _0x158815=this['editor'];if(!_0x158815['plugins']['has']('Style')||!_0x158815['plugins']['has']('DataSchema'))return;const _0x3bc837=_0x158815['plugins']['get']('TrackChangesEditing'),_0x38f8be=_0x158815['locale'],_0x18ebcf=_0x158815['config']['get']('style')||{},_0x21ebd7=_0x158815['plugins']['get']('GeneralHtmlSupport'),_0x58dc6d=_0x158815['plugins']['get']('StyleUtils')['normalizeConfig'](_0x158815['plugins']['get']('DataSchema'),_0x18ebcf['definitions']);_0x3bc837['enableDefaultAttributesIntegration']('style');const _0x47050d=new Set();for(const _0x3526c8 of _0x58dc6d['block']){const _0x54c7c4=_0x21ebd7['getGhsAttributeNameForElement'](_0x3526c8['element']);_0x47050d['add'](_0x54c7c4);}const _0x31abac=new Set();for(const _0x1ff06b of _0x58dc6d['inline']){const _0x38e475=_0x21ebd7['getGhsAttributeNameForElement'](_0x1ff06b['element']);_0x31abac['add'](_0x38e475);for(const _0xc0b757 of _0x1ff06b['ghsAttributes'])_0x31abac['add'](_0xc0b757);}for(const _0x1b25dc of _0x47050d)_0x3bc837['registerBlockAttribute'](_0x1b25dc),_0x3bc837['descriptionFactory']['registerAttributeLabel'](_0x1b25dc,c(_0x38f8be,'FORMAT_STYLE'));for(const _0x7243fb of _0x31abac)_0x3bc837['registerInlineAttribute'](_0x7243fb),_0x3bc837['descriptionFactory']['registerAttributeLabel'](_0x7243fb,c(_0x38f8be,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49b029=this['editor'],_0x5e6c6a=_0x49b029['locale'];_0x49b029['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc93a=>{if('formatBlock'!=_0x4bc93a['type']&&'formatInline'!=_0x4bc93a['type'])return;const {data:_0x4996b3}=_0x4bc93a;return _0x4996b3&&'style'===_0x4996b3['commandName']?_0x4996b3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5e6c6a,'*Set\x20format:*\x20%0',_0x4996b3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x5e6c6a,'*Remove\x20format:*\x20%0',_0x4996b3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5575fe{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x25fe20){super(_0x25fe20),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4d6c08=this['editor'],_0x2308ab=_0x4d6c08['model']['document']['selection'];if(!_0x4d6c08['plugins']['has']('TableEditing'))return;const _0x28c53d=_0x4d6c08['locale'],_0x842dc3=_0x4d6c08['plugins']['get']('TrackChangesEditing'),_0x43c820=_0x4d6c08['plugins']['get']('TableUtils');_0x842dc3['descriptionFactory']['registerElementLabel']('table',_0x3fef2b=>c(_0x28c53d,'ELEMENT_TABLE',_0x3fef2b)),this['_setupColumnsRowsFixing'](),_0x842dc3['enableCommand']('insertTable'),_0x842dc3['enableCommand']('selectTableRow'),_0x842dc3['enableCommand']('selectTableColumn');for(const _0x4e3025 of['insertTableRowAbove','insertTableRowBelow']){const _0x1d1441=_0x4d6c08['commands']['get'](_0x4e3025);_0x842dc3['enableCommand'](_0x4e3025,_0x167a9f=>{_0x4d6c08['model']['change'](_0x2ed41a=>{_0x167a9f();const _0xcb6bfb='above'===_0x1d1441['order'],_0x1840a5=_0x43c820['getSelectionAffectedTableCells'](_0x2308ab),_0x232fa0=_0x43c820['getRowIndexes'](_0x1840a5),_0x37fc30=_0xcb6bfb?_0x232fa0['first']-0x1:_0x232fa0['last']+0x1,_0x267175=_0x1840a5[0x0]['findAncestor']('table'),_0x1e76d5=_0x43c820['createTableWalker'](_0x267175,{'startRow':_0x37fc30,'endRow':_0x37fc30}),_0x5550c1=Array['from'](_0x1e76d5)['map'](_0x982a17=>_0x2ed41a['createRangeOn'](_0x982a17['cell']));_0x842dc3['markMultiRangeInsertion'](_0x5550c1,'tableRow');});});}for(const _0x2d62e8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1d1598=_0x4d6c08['commands']['get'](_0x2d62e8);_0x842dc3['enableCommand'](_0x2d62e8,_0x240386=>{_0x4d6c08['model']['change'](_0x450b77=>{_0x240386();const _0x3a95cb='left'===_0x1d1598['order'],_0x36cd58=_0x43c820['getSelectionAffectedTableCells'](_0x2308ab),_0x5a8945=_0x43c820['getColumnIndexes'](_0x36cd58),_0x4df789=_0x3a95cb?_0x5a8945['first']-0x1:_0x5a8945['last']+0x1,_0x17181b=_0x36cd58[0x0]['findAncestor']('table'),_0x3f407e=_0x43c820['createTableWalker'](_0x17181b,{'startRow':0x0,'column':_0x4df789,'includeAllSlots':!0x1}),_0x2c89c2=Array['from'](_0x3f407e)['map'](_0x1cf2f1=>_0x450b77['createRangeOn'](_0x1cf2f1['cell']));_0x842dc3['markMultiRangeInsertion'](_0x2c89c2,'tableColumn');});});}for(const _0x2ff5ef of['removeTableRow','removeTableColumn']){const _0x304739=_0x2ff5ef['substr'](0xb),_0x3fcbd4=_0x304739['toLowerCase'](),_0x3e8a0a=_0x3fcbd4['substr'](0x0,0x3)+'span',_0x5c7211='table'+_0x304739,_0x4726ff='min'+_0x304739,_0x509c4b='max'+_0x304739;_0x842dc3['enableCommand'](_0x2ff5ef,()=>{_0x4d6c08['model']['change'](_0xb36e65=>{const _0x279512=_0x43c820['getSelectionAffectedTableCells'](_0x2308ab),_0x302110=_0x279512[0x0]['findAncestor']('table');let _0x5d7544;if('removeTableRow'==_0x2ff5ef){const _0x24a8b8=_0x43c820['getRowIndexes'](_0x279512);_0x5d7544={'startRow':_0x24a8b8['first'],'endRow':_0x24a8b8['last'],'includeAllSlots':!0x0};}else{const _0x27547d=_0x43c820['getColumnIndexes'](_0x279512);_0x5d7544={'startColumn':_0x27547d['first'],'endColumn':_0x27547d['last'],'includeAllSlots':!0x0};}const _0x16f556=_0x43c820['createTableWalker'](_0x302110,_0x5d7544),_0x15dd71=Array['from'](_0x16f556)['map'](({cell:_0x5146b3})=>_0x5146b3),_0x56d794=xe(_0x15dd71['filter'](_0x1c6939=>_0x1c6939['hasAttribute'](_0x3e8a0a))),_0x41f1da=xe(_0x15dd71['filter'](_0x3125f2=>!_0x3125f2['hasAttribute'](_0x3e8a0a)))['map'](_0x4eaeec=>_0xb36e65['createRangeOn'](_0x4eaeec)),_0x52ec30=_0x842dc3['markMultiRangeDeletion'](_0x41f1da,_0x5c7211);if(_0x52ec30&&('tableRow'==_0x52ec30['subType']||'tableColumn'==_0x52ec30['subType'])){const _0x351fce=this['_getSuggestionCoords'](_0x52ec30);for(const _0x552916 of _0x56d794){const _0x49b325=_0xb36e65['createRangeOn'](_0x552916),_0x300d36=_0x43c820['getCellLocation'](_0x552916),_0x570bc1=_0x552916['getAttribute'](_0x3e8a0a)-0x1,_0x6abcae=_0x351fce[_0x4726ff],_0x3210a7=_0x351fce[_0x509c4b];_0x6abcae<=_0x300d36[_0x3fcbd4]&&_0x300d36[_0x3fcbd4]+_0x570bc1<=_0x3210a7&&_0x52ec30['addRange'](_0x49b325);}}});});}function _0x2b475a(_0x36b097){const _0x1070ac=Array['from'](_0x2308ab['getRanges']())['map'](_0x2fc81d=>_0x34c04c['fromRange'](_0x2fc81d));_0x4d6c08['model']['change'](_0x1b6945=>{const _0x309462=_0x1b6945['batch'];_0x36b097=_0x36b097['filter'](_0x3a71c4=>'$graveyard'!=_0x3a71c4['root']['rootName']),_0x1b6945['setSelection'](_0x36b097),_0x4d6c08['commands']['get']('removeTableRow')['refresh'](),_0x4d6c08['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4d6c08['model']['enqueueChange'](()=>{_0x4d6c08['model']['enqueueChange'](_0x309462,_0x6e4426=>{const _0x35c0df=_0x1070ac['filter'](_0x54c892=>'$graveyard'!=_0x54c892['root']['rootName']);_0x35c0df['length']>0x0&&_0x6e4426['setSelection'](_0x35c0df);for(const _0x1bfd60 of _0x1070ac)_0x1bfd60['detach']();});});});}function _0x5ad008(_0x43f618){_0x4d6c08['model']['change'](_0x18bbde=>{const _0x368eae=Array['from'](_0x2308ab['getRanges']())['map'](_0x143960=>_0x34c04c['fromRange'](_0x143960)),_0x467933=[];for(const _0x37da40 of _0x43f618)for(const _0x24d490 of _0x37da40['getItems']({'shallow':!0x0}))_0x467933['push'](_0x24d490);for(const _0xa15db5 of _0x467933)'$graveyard'!=_0xa15db5['root']['rootName']&&(_0x18bbde['setSelection'](_0x18bbde['createPositionAt'](_0xa15db5,0x0)),_0x4d6c08['commands']['get']('removeTableColumn')['refresh'](),_0x4d6c08['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x9b5483=_0x368eae['filter'](_0xdf4972=>'$graveyard'!=_0xdf4972['root']['rootName']);_0x9b5483['length']>0x0&&_0x18bbde['setSelection'](_0x9b5483);for(const _0x142485 of _0x368eae)_0x142485['detach']();});}function _0xe88f90(_0xea120c,_0xf5b0bd){return _0xf5b0bd['every'](_0x55c98e=>_0xea120c['some'](_0x3ff374=>_0x3ff374['end']['isEqual'](_0x55c98e['start'])||_0x55c98e['end']['isEqual'](_0x3ff374['start'])));}function _0x39444e(_0xbff0b8,_0x52bbb5){return!_0xbff0b8['some'](_0x217597=>_0x52bbb5['some'](_0x30245b=>_0x217597['isIntersecting'](_0x30245b)))&&_0xbff0b8['some'](_0x34855c=>_0x52bbb5['some'](_0x2e3fad=>_0x34855c['end']['isTouching'](_0x2e3fad['start'])));}_0x4d6c08['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43f642,_0x37acc4,_0x45f858)=>{if(!_0x45f858['options']['showSuggestionHighlights'])return;const _0x40c2d5=_0x37acc4['item'];if(!_0x40c2d5||!_0x40c2d5['is']('element','tableCell'))return;const _0x2b4c33=_0x45f858['mapper']['toViewElement'](_0x40c2d5);if(_0x2b4c33){const {id:_0x251325,authorId:_0x1d0bd9}=_0x842dc3['_splitMarkerName'](_0x37acc4['markerName']);_0x327007(_0x2b4c33,_0x45f858['writer'],(_0x1eb269,_0x3c4af1,_0x4bb04e)=>{_0x4bb04e['addClass'](_0x4eacd5(_0x3c4af1['classes']),_0x1eb269),_0x4bb04e['setAttribute']('data-suggestion-id',_0x251325,_0x1eb269),_0x4bb04e['setAttribute']('data-author-id',_0x1d0bd9,_0x1eb269);},(_0x205917,_0x57f5e2,_0xb48600)=>{_0xb48600['removeClass'](_0x4eacd5(_0x57f5e2['classes']),_0x205917),_0xb48600['removeAttribute']('data-suggestion-id',_0x205917),_0xb48600['removeAttribute']('data-author-id',_0x205917);});}},{'priority':'highest'}),_0x842dc3['descriptionFactory']['registerDescriptionCallback'](_0x40b97c=>{if('insertion'!=_0x40b97c['type']&&'deletion'!=_0x40b97c['type'])return;const _0x273780=_0x40b97c['getContainedElement']();if(null!=_0x273780&&_0x273780['is']('element','table')){if('insertion'==_0x40b97c['type']){const _0x4246bb=_0x40b97c['getItems']()['filter'](_0x11640e=>_0x11640e['is']('$textProxy'))['map'](_0x1ee3a1=>_0x1ee3a1['data']);if(_0x4246bb['length'])return{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4246bb['join']('\x20')+'\x22'))};}if('deletion'==_0x40b97c['type']){const _0x22a27f=_0x40b97c['getItems']()['filter'](_0x1b0580=>_0x1b0580['is']('$textProxy'))['map'](_0x496bf0=>_0x496bf0['data']);if(_0x22a27f['length'])return{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x22a27f['join']('\x20')+'\x22'))};}}}),_0x842dc3['descriptionFactory']['registerDescriptionCallback'](_0x58a94a=>{if('tableRow'==_0x58a94a['subType']){const _0x4745ed=_0x58a94a['getItems']()['filter'](_0x3d459e=>_0x3d459e['is']('$textProxy'))['map'](_0x31ed97=>_0x31ed97['data']),_0x392c18=this['_getSuggestionCoords'](_0x58a94a),_0x468543=_0x392c18['maxRow']-_0x392c18['minRow']+0x1;if('insertion'==_0x58a94a['type'])return _0x4745ed['length']?{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x468543,'\x22'+_0x4745ed['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW',_0x468543))};if('deletion'==_0x58a94a['type'])return _0x4745ed['length']?{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x468543,'\x22'+_0x4745ed['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_ROW',_0x468543))};}if('tableColumn'==_0x58a94a['subType']){const _0x52cdee=_0x58a94a['getItems']()['filter'](_0x19959d=>_0x19959d['is']('$textProxy'))['map'](_0x2905a3=>_0x2905a3['data']),_0x494a74=this['_getSuggestionCoords'](_0x58a94a),_0x18b110=_0x494a74['maxColumn']-_0x494a74['minColumn']+0x1;if('insertion'==_0x58a94a['type'])return _0x52cdee['length']?{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18b110,'\x22'+_0x52cdee['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x28c53d,'*Insert:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN',_0x18b110))};if('deletion'==_0x58a94a['type'])return _0x52cdee['length']?{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18b110,'\x22'+_0x52cdee['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x28c53d,'*Remove:*\x20%0',c(_0x28c53d,'ELEMENT_TABLE_COLUMN',_0x18b110))};}}),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2b475a),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2b475a),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5ad008),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5ad008),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xe88f90),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xe88f90),_0x842dc3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x39444e),_0x842dc3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x39444e);}['_acceptFormatSuggestionCallbackFactory'](){const _0xab19c4=this['editor'],_0xc06528=_0xab19c4['model']['document']['selection'];return(_0x218f9c,_0x47ab37)=>{_0xab19c4['model']['change'](_0x483f24=>{const {commandName:_0x41b8ca,commandParams:_0x1a49c3}=_0x47ab37;let _0x2ec68b=_0x218f9c[0x0]['end']['nodeBefore'];_0x1a49c3&&_0x1a49c3[0x0]&&!0x1===_0x1a49c3[0x0]['forceValue']&&(_0x2ec68b=_0x218f9c[0x0]['start']['nodeAfter']);const _0x3491b2=_0x483f24['createRangeIn'](_0x2ec68b);if('$graveyard'==_0x3491b2['root']['rootName'])return;const _0x355fbf=Array['from'](_0xc06528['getRanges']())['map'](_0x5e6221=>_0x34c04c['fromRange'](_0x5e6221));_0x483f24['setSelection'](_0x3491b2),_0xab19c4['commands']['get'](_0x41b8ca)['refresh'](),_0x1a49c3['push']({'forceDefaultExecution':!0x0}),_0xab19c4['execute'](_0x41b8ca,..._0x1a49c3);const _0x41399b=_0x355fbf['filter'](_0x41f0d9=>'$graveyard'!=_0x41f0d9['root']['rootName']);_0x41399b['length']>0x0&&_0x483f24['setSelection'](_0x41399b);for(const _0x52dc6e of _0x355fbf)_0x52dc6e['detach']();});};}['_getCoordsForCells'](_0x1935e7){const _0x58f912=this['editor']['plugins']['get']('TableUtils');let _0x41e51d=Number['MAX_SAFE_INTEGER'],_0x5f031d=Number['MIN_SAFE_INTEGER'],_0x48c3a3=Number['MAX_SAFE_INTEGER'],_0x1ec546=Number['MIN_SAFE_INTEGER'];for(const _0x381ffa of _0x1935e7){if('$graveyard'==_0x381ffa['root']['rootName'])continue;const {row:_0x38e203,column:_0x36af23}=_0x58f912['getCellLocation'](_0x381ffa),_0x471df1=_0x381ffa['hasAttribute']('rowspan')?_0x381ffa['getAttribute']('rowspan')-0x1:0x0,_0x74f143=_0x381ffa['hasAttribute']('colspan')?_0x381ffa['getAttribute']('colspan')-0x1:0x0;_0x41e51d=_0x38e203<_0x41e51d?_0x38e203:_0x41e51d,_0x5f031d=_0x38e203+_0x471df1>_0x5f031d?_0x38e203+_0x471df1:_0x5f031d,_0x48c3a3=_0x36af23<_0x48c3a3?_0x36af23:_0x48c3a3,_0x1ec546=_0x36af23+_0x74f143>_0x1ec546?_0x36af23+_0x74f143:_0x1ec546;}return{'minRow':_0x41e51d,'maxRow':_0x5f031d,'minColumn':_0x48c3a3,'maxColumn':_0x1ec546};}['_setupColumnsRowsFixing'](){const _0x5e12bc=this['editor'],_0x4d03d8=_0x5e12bc['plugins']['get']('TrackChangesEditing'),_0x59f01d=_0x5e12bc['plugins']['get']('TableUtils');_0x5e12bc['model']['document']['on']('change:data',()=>{const _0x478286=Array['from'](_0x5e12bc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15e764,data:_0x12b0c1}of _0x478286){const {group:_0x29de4a,id:_0x318e76,subType:_0x3f5e18}=_0x4d03d8['_splitMarkerName'](_0x15e764);if('suggestion'!=_0x29de4a)continue;if(null!=_0x12b0c1['oldRange'])continue;const _0x107e72=_0x4d03d8['getSuggestion'](_0x318e76);this['_tablePostFixingSubtypes']['includes'](_0x3f5e18)&&this['_tableSuggestions']['add'](_0x107e72);}},{'priority':'low'});const _0x5ac15c=(_0x5046d0,_0x40be4f)=>{let _0x4e4c58=!0x1;const _0x49256f=_0x40be4f['createRangeOn'](_0x5046d0),_0x5b4815=_0x5046d0['findAncestor']('table'),_0x169b7e=_0x59f01d['getCellLocation'](_0x5046d0);for(const _0x16cce4 of this['_tableSuggestions']){const _0x10abcc=_0x16cce4['subType'],_0x195d38=_0x10abcc['startsWith']('tablePaste'),_0x2324af=_0x10abcc['substr'](_0x195d38?0xa:0x5),_0x22abf7=_0x2324af['toLowerCase'](),_0x338761=_0x22abf7['substr'](0x0,0x3)+'span',_0x381526='min'+_0x2324af,_0x25dead='max'+_0x2324af;if(!_0x16cce4['isInContent'])continue;if(_0x5b4815!=_0x16cce4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x16cce4['isIntersectingWithRange'](_0x49256f))continue;const _0x28255e=_0x5046d0['hasAttribute'](_0x338761)?_0x5046d0['getAttribute'](_0x338761)-0x1:0x0,_0x52e266=this['_getSuggestionCoords'](_0x16cce4),_0x275e37=_0x52e266[_0x381526],_0x2e4dcc=_0x52e266[_0x25dead];_0x275e37<=_0x169b7e[_0x22abf7]&&_0x169b7e[_0x22abf7]+_0x28255e<=_0x2e4dcc&&(_0x16cce4['addRange'](_0x49256f),_0x4e4c58=!0x0);}return _0x4e4c58;};_0x5e12bc['model']['document']['registerPostFixer'](_0x10c2f0=>{let _0x25c72e=!0x1;for(const _0x3963d8 of _0x5e12bc['model']['document']['differ']['getChanges']())if('insert'==_0x3963d8['type']){if('tableRow'==_0x3963d8['name']){for(const _0x236cc7 of _0x3963d8['position']['nodeAfter']['getChildren']())_0x25c72e=_0x25c72e||_0x5ac15c(_0x236cc7,_0x10c2f0);}else'tableCell'==_0x3963d8['name']&&(_0x25c72e=_0x25c72e||_0x5ac15c(_0x3963d8['position']['nodeAfter'],_0x10c2f0));}return _0x25c72e;});}['_getSuggestionCoords'](_0x19cf82){return this['_getCoordsForCells'](_0x19cf82['getRanges']()['map'](_0x4747af=>_0x4747af['start']['nodeAfter']));}}function xe(_0x5f3a81){return Array['from'](new Set(_0x5f3a81)['values']());}class Nt extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x3ff2f0=this['editor'],_0xa18365=_0x3ff2f0['model']['document']['selection'],_0x4cb285=_0x3ff2f0['locale'];if(!_0x3ff2f0['plugins']['has']('TableEditing'))return;const _0x379d75=_0x3ff2f0['plugins']['get']('TrackChangesEditing'),_0x470a21=_0x3ff2f0['plugins']['get']('TableUtils'),_0x28df5f=_0x3ff2f0['plugins']['get'](Ct);_0x28df5f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x379d75['enableCommand']('mergeTableCells',()=>{const _0x63dc43=_0x470a21['getSelectionAffectedTableCells'](_0x3ff2f0['model']['document']['selection']);_0x3ff2f0['model']['change'](()=>{_0x379d75['markMultiRangeBlockFormat'](_0x63dc43,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3ff2f0['commands']['get']('mergeTableCells')['on']('execute',(_0x5c89ec,_0x43cf82)=>{_0x3ff2f0['commands']['get']('trackChanges')['value']&&(_0x43cf82['length']>0x0&&_0x43cf82[_0x43cf82['length']-0x1]&&_0x43cf82[_0x43cf82['length']-0x1]['forceDefaultExecution']||_0x379d75['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c89ec['stop']());},{'priority':'highest'});for(const _0x4751b2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4e20e7=_0x3ff2f0['commands']['get'](_0x4751b2);_0x379d75['enableCommand'](_0x4751b2,()=>{const _0x2bec2d=_0x3ff2f0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3d2c8c=>_0x3d2c8c['is']('element','tableCell')),_0x121ab9=_0x4e20e7['value'];_0x3ff2f0['model']['change'](()=>{_0x379d75['markMultiRangeBlockFormat']([_0x2bec2d,_0x121ab9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3ed46e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x230f48=_0x3ff2f0['commands']['get'](_0x3ed46e);_0x379d75['enableCommand'](_0x3ed46e,()=>{const _0x1b7feb=_0x470a21['getSelectionAffectedTableCells'](_0x3ff2f0['model']['document']['selection'])[0x0],_0x2cad96=_0x1b7feb['findAncestor']('table'),{column:_0x83c844,row:_0x54ad96}=_0x470a21['getCellLocation'](_0x1b7feb);let _0x56cfcf=[];if('horizontally'==_0x230f48['direction']){const _0x30c8cf=_0x470a21['createTableWalker'](_0x2cad96,{'startRow':_0x54ad96,'endRow':_0x54ad96,'includeAllSlots':!0x0});_0x56cfcf=Array['from'](_0x30c8cf)['map'](_0x5de9bd=>_0x5de9bd['cell']);}else{const _0x3dfe09=_0x470a21['createTableWalker'](_0x2cad96,{'column':_0x83c844,'includeAllSlots':!0x0});_0x56cfcf=Array['from'](_0x3dfe09)['map'](_0x42b707=>_0x42b707['cell']);}_0x3ff2f0['model']['change'](_0x112ba7=>{_0x379d75['markBlockFormat'](_0x112ba7['createRangeOn'](_0x1b7feb),{'commandName':_0x3ed46e,'commandParams':[]},_0x56cfcf,_0x3ed46e);});});}_0x379d75['descriptionFactory']['registerDescriptionCallback'](_0x51c779=>{if('formatBlock'!=_0x51c779['type']&&'formatInline'!=_0x51c779['type'])return;const {data:_0x85c42e}=_0x51c779;return _0x85c42e&&'mergeTableCells'==_0x85c42e['commandName']?{'type':'format','content':c(_0x4cb285,'*Merge\x20cells*')}:void 0x0;}),_0x379d75['descriptionFactory']['registerDescriptionCallback'](_0x427dfd=>{if('formatBlock'!=_0x427dfd['type']&&'formatInline'!=_0x427dfd['type'])return;const {data:_0x34d922}=_0x427dfd;return _0x34d922?'splitTableCellVertically'==_0x34d922['commandName']?{'type':'format','content':c(_0x4cb285,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x34d922['commandName']?{'type':'format','content':c(_0x4cb285,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x38052e=_0x28df5f['_acceptFormatSuggestionCallbackFactory']();for(const _0x3ead21 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x379d75['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ead21,'accept',_0x38052e);for(const _0x5a93d8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x379d75['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a93d8,'accept',_0x38052e);_0x379d75['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1107a0=>{_0x3ff2f0['model']['change'](_0x5af44b=>{const _0x16bab3=Array['from'](_0xa18365['getRanges']())['map'](_0x53694a=>_0x34c04c['fromRange'](_0x53694a));_0x5af44b['setSelection'](_0x1107a0),_0x3ff2f0['commands']['get']('mergeTableCells')['refresh'](),_0x3ff2f0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2c6f70=_0x16bab3['filter'](_0x2da3bb=>'$graveyard'!=_0x2da3bb['root']['rootName']);_0x2c6f70['length']>0x0&&_0x5af44b['setSelection'](_0x2c6f70);for(const _0x2daac2 of _0x16bab3)_0x2daac2['detach']();});});for(const _0x3b2a13 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x28ae02=_0x3ff2f0['commands']['get'](_0x3b2a13);_0x28ae02['on']('set:isEnabled',(_0x374656,_0x1f6b7a,_0x2c6ee3)=>{if(_0x2c6ee3){const _0x578127=_0x3ff2f0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18422e=>_0x18422e['is']('element','tableCell'));this['_areMergableCells'](_0x28ae02['value'],_0x578127)||(_0x374656['return']=!0x1,_0x374656['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x396382=this['editor']['commands']['get']('mergeTableCells'),_0x350797=this['editor']['plugins']['get']('TableUtils');if(!_0x396382['isEnabled'])return!0x1;const _0x32abdc=_0x350797['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x432745 of _0x32abdc)for(const _0x12fce0 of _0x32abdc)if(_0x432745!=_0x12fce0&&!this['_areMergableCells'](_0x432745,_0x12fce0))return!0x1;return!0x0;}['_areMergableCells'](_0x361524,_0x5128ab){const _0x34f96c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44d5e1=this['editor']['model']['createRangeOn'](_0x361524),_0x4a9baa=this['editor']['model']['createRangeOn'](_0x5128ab),_0x51034d=new Set(),_0x37e316=new Set();for(const _0xc66770 of _0x34f96c['getSuggestions']())if(('insertion'==_0xc66770['type']||'deletion'==_0xc66770['type']||'mergeTableCells'==_0xc66770['subType'])&&_0xc66770['isInContent']){for(const _0x3b441d of _0xc66770['getRanges']())_0x3b441d['containsRange'](_0x44d5e1,!0x0)&&_0x51034d['add'](_0xc66770['type']+':'+_0xc66770['author']['id']),_0x3b441d['containsRange'](_0x4a9baa,!0x0)&&_0x37e316['add'](_0xc66770['type']+':'+_0xc66770['author']['id']);}if(_0x51034d['size']!=_0x37e316['size'])return!0x1;for(const _0x43ae0b of _0x51034d)if(!_0x37e316['has'](_0x43ae0b))return!0x1;return!0x0;}}class Dt extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x1de52d=this['editor'];if(!_0x1de52d['plugins']['has']('TableEditing'))return;const _0x15f982=_0x1de52d['locale'],_0x8bbe00=_0x1de52d['plugins']['get']('TrackChangesEditing');_0x8bbe00['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x8bbe00['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x8bbe00['registerBlockAttribute']('headingRows'),_0x8bbe00['registerBlockAttribute']('headingColumns'),_0x8bbe00['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x15f982,'FORMAT_HEADER_ROW')),_0x8bbe00['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x15f982,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc76a4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb049c1=this['editor']['plugins']['get']('TableUtils'),_0x1a0866=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xb9ede5({showActiveMarker:_0x3fa273=!0x0,setDataAttribute:_0xd1f99c=!0x0}={}){return(_0x1947ba,_0xcc416b,_0x5c287c)=>{const {type:_0x51bb06,id:_0x389a9b}=_0xc76a4a['_splitMarkerName'](_0xcc416b['markerName']),_0x237744=_0xc76a4a['getSuggestion'](_0x389a9b),_0x34b274=_0x237744['data'];if('formatBlock'!=_0x237744['type']||!_0x34b274||'setTableColumnHeader'!=_0x34b274['commandName'])return;if(_0xcc416b['item'])return void _0x1947ba['stop']();if(!_0x5c287c['consumable']['consume'](_0xcc416b['markerRange'],_0x1947ba['name']))return;const _0x1aa78e=_0xcc416b['markerRange']['start']['nodeAfter'],_0x20dffd=_0xcc416b['markerRange']['end']['nodeBefore'],_0x5d32e8=_0x1aa78e['parent']['parent'],{column:_0x31b877}=_0xb049c1['getCellLocation'](_0x1aa78e),{column:_0x305466}=_0xb049c1['getCellLocation'](_0x20dffd);for(let _0x3c30c3=_0x31b877;_0x3c30c3<=_0x305466;_0x3c30c3++){const _0x529dfb=_0xb049c1['createTableWalker'](_0x5d32e8,{'column':_0x3c30c3,'includeAllSlots':!0x1});for(const _0x1f57f5 of _0x529dfb){const _0x306983=_0x1f57f5['cell'],_0x4c1d3e=_0x5c287c['mapper']['toViewElement'](_0x306983);_0x5c287c['writer']['addClass']('ck-suggestion-marker-'+_0x51bb06,_0x4c1d3e),_0xd1f99c&&_0x5c287c['writer']['setAttribute']('data-suggestion',_0x389a9b,_0x4c1d3e),_0x5c287c['mapper']['bindElementToMarker'](_0x4c1d3e,_0xcc416b['markerName']),_0x3fa273&&(_0xc76a4a['activeMarkers']['includes'](_0xcc416b['markerName'])?_0x5c287c['writer']['addClass']('ck-suggestion-marker--active',_0x4c1d3e):_0x5c287c['writer']['removeClass']('ck-suggestion-marker--active',_0x4c1d3e));}}};}_0xc76a4a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1a0866),_0xc76a4a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1a0866),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xb9ede5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34e9e8,_0x1dbec4,_0x27cadf)=>{_0x27cadf['options']['showSuggestionHighlights']&&_0xb9ede5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34e9e8,_0x1dbec4,_0x27cadf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5a65ee,_0x4e6e63,_0x4c22d3)=>{const {type:_0x297ebd,id:_0x4d87cc}=_0xc76a4a['_splitMarkerName'](_0x4e6e63['markerName']),_0x1154d7=_0xc76a4a['getSuggestion'](_0x4d87cc),_0x48bce0=_0x1154d7['data'];if('formatBlock'!=_0x1154d7['type']||!_0x48bce0||'setTableColumnHeader'!=_0x48bce0['commandName'])return;const _0x38fbae=_0x4c22d3['mapper']['markerNameToElements'](_0x4e6e63['markerName']);if(_0x38fbae){for(const _0x1f025c of _0x38fbae)_0x4c22d3['writer']['removeClass']('ck-suggestion-marker-'+_0x297ebd,_0x1f025c),_0x4c22d3['writer']['removeClass']('ck-suggestion-marker--active',_0x1f025c),_0x4c22d3['writer']['removeAttribute']('data-suggestion',_0x1f025c),_0x4c22d3['mapper']['unbindElementFromMarkerName'](_0x1f025c,_0x4e6e63['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d166d=this['editor'],_0x4846ba=_0x5d166d['locale'];function _0x258f05(_0x20887f){return{'type':'format','content':c(_0x4846ba,'*Format:*\x20%0',_0x20887f)};}_0x5d166d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48f4f8=>{if('formatBlock'!=_0x48f4f8['type'])return;const {data:_0x1c90fb}=_0x48f4f8;if(_0x1c90fb){if('setTableRowHeader'==_0x1c90fb['commandName']){const _0x1cc09d=_0x1c90fb['commandParams'][0x0]['forceValue'];return _0x258f05(c(_0x4846ba,_0x1cc09d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1c90fb['commandName']){const _0x1c7f2a=_0x1c90fb['commandParams'][0x0]['forceValue'];return _0x258f05(c(_0x4846ba,_0x1c7f2a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5575fe{['afterInit'](){const _0x45bbc0=this['editor'],_0x52aa6d=_0x45bbc0['locale'],_0x15a6df=_0x45bbc0['plugins']['get']('TrackChangesEditing');function _0x2cdc0c(_0x1d4977){return{'type':'format','content':''+c(_0x52aa6d,'*Set\x20table\x20type:*\x20%0',_0x1d4977)};}_0x45bbc0['plugins']['has']('TableLayout')&&(_0x15a6df['enableCommand']('insertTableLayout'),_0x15a6df['enableDefaultAttributesIntegration']('tableType'),_0x15a6df['registerBlockAttribute']('tableType'),_0x15a6df['descriptionFactory']['registerElementLabel'](_0x16624d=>_0x16624d['is']('element','table')&&'layout'===_0x16624d['getAttribute']('tableType'),_0x4532a7=>c(_0x52aa6d,'ELEMENT_LAYOUT_TABLE',_0x4532a7)),_0x15a6df['descriptionFactory']['registerDescriptionCallback'](_0x2a1387=>{const {data:_0x3e3ba1}=_0x2a1387;if(_0x3e3ba1&&'tableType'==_0x3e3ba1['key'])switch(_0x3e3ba1['newValue']){case'layout':return _0x2cdc0c(c(_0x52aa6d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2cdc0c(c(_0x52aa6d,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0xa7cc47=>[_0xa7cc47,null]));class $t extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x166766=this['editor'];if(!_0x166766['plugins']['has']('TableClipboard'))return;const _0x55b53d=_0x166766['plugins']['get']('TrackChangesEditing'),_0x262ffc=_0x166766['plugins']['get']('TableUtils'),_0x4f5fc0=_0x166766['plugins']['get'](Ct),_0x1b141a=_0x166766['plugins']['get']('TableClipboard'),_0xdcb16b=_0x166766['plugins']['get']('TableSelection'),_0x59e247=_0x166766['plugins']['get'](_0x3243fa);_0x4f5fc0['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x166766['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x166766['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1b065e=null,_0x5e1145=!0x1;_0x59e247['on']('contentInsertion',(_0xf948fe,_0x1a7fda)=>{_0x5e1145='paste'===_0x1a7fda['method'];}),_0x166766['model']['on']('insertContent',(_0x60e9ab,_0x5b62ca)=>{if(!_0x5e1145&&null===_0xdcb16b['getSelectedTableCells']())return;const [_0x55d146,_0x12af87]=_0x5b62ca,_0xf056ae=_0x5b62ca[_0x5b62ca['length']-0x1];_0xf056ae&&_0xf056ae['forceDefaultExecution']||_0x55b53d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1e6236,_0x1c2864,_0x36431a,_0x5473bb,_0x4ec53a){if(_0x1c2864&&!_0x1c2864['is']('documentSelection'))return!0x1;const _0x457bc8=_0x4ec53a['getTableIfOnlyTableInContent'](_0x1e6236,_0x36431a);if(!_0x457bc8||!He(_0x457bc8,void 0x0,_0x5473bb))return!0x1;const _0x5e84f2=_0x5473bb['getSelectionAffectedTableCells'](_0x36431a['document']['selection']);if(!_0x5e84f2['length'])return!0x1;const _0x57be27=_0x5e84f2[0x0]['findAncestor']('table'),_0x536c8e=_0x5473bb['getRowIndexes'](_0x5e84f2),_0x2d890a=_0x5473bb['getColumnIndexes'](_0x5e84f2),_0x120028={'startRow':_0x536c8e['first'],'endRow':_0x536c8e['last'],'startColumn':_0x2d890a['first'],'endColumn':_0x2d890a['last']};return 0x1==_0x5e84f2['length']&&(_0x120028['endRow']+=_0x5473bb['getRows'](_0x457bc8)-0x1,_0x120028['endColumn']+=_0x5473bb['getColumns'](_0x457bc8)-0x1),He(_0x57be27,_0x120028,_0x5473bb);}(_0x55d146,_0x12af87,_0x166766['model'],_0x262ffc,_0x1b141a)&&(_0x60e9ab['stop'](),_0x1b065e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x166766['model']['change'](()=>{_0x166766['model']['insertContent'](_0x5b62ca[0x0],_0x5b62ca[0x1],_0x5b62ca[0x2],{'forceDefaultExecution':!0x0});const _0x309842=_0x1526c3(),{rowInsertionRanges:_0x18b361,columnInsertionRanges:_0x1ed870,insertionRanges:_0x7bdfda,deletionRanges:_0x47695c,cells:_0x21b7ad}=_0x1b065e;_0x18b361['length']&&_0x55b53d['markMultiRangeInsertion'](_0x18b361,'tablePasteRow',{'tablePasteChainId':_0x309842}),_0x1ed870['length']&&_0x55b53d['markMultiRangeInsertion'](_0x1ed870,'tablePasteColumn',{'tablePasteChainId':_0x309842}),_0x7bdfda['length']&&(_0x55b53d['markMultiRangeInsertion'](_0x7bdfda,'tablePaste',{'tablePasteChainId':_0x309842,'skipNestingCheck':!0x0}),_0x7bdfda['forEach'](_0x52d44c=>_0x52d44c['detach']?.())),_0x47695c['length']&&(_0x55b53d['markMultiRangeDeletion'](_0x47695c,'tablePaste',{'tablePasteChainId':_0x309842,'skipNestingCheck':!0x0}),_0x47695c['forEach'](_0x4a644f=>_0x4a644f['detach']?.()));const _0x4332de=_0x55b53d['markMultiRangeBlockFormat'](_0x21b7ad['map'](({element:_0x5cc752})=>_0x5cc752),{'formatGroupId':_0x1526c3()},[],'tablePasteCell',{'tablePasteChainId':_0x309842});if(_0x4332de){const _0x4afa78=_0x4332de['getMarkers'](),_0x567789=[];for(const {element:_0x1a5a4e,attributes:_0x30fa37}of _0x21b7ad){if(!_0x30fa37)continue;const _0x183cc3=_0x166766['model']['createRangeOn'](_0x1a5a4e),_0x7c1c60=_0x4afa78['find'](_0x523187=>_0x523187['getRange']()['isEqual'](_0x183cc3));_0x7c1c60&&_0x567789['push']([_0x7c1c60['name'],_0x30fa37]);}_0x567789['length']&&_0x4332de['setAttribute']('markerAttributes',Object['fromEntries'](_0x567789));}_0x1b065e=null;}));},{'priority':_0x2dda8a['high']+0xa}),_0x59e247['on']('contentInsertion',()=>{_0x5e1145=!0x1;},{'priority':'lowest'}),_0x166766['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x19d8af,_0x28b634)=>{const [_0x54e86a,_0x25d7be,,_0x1f359d]=_0x28b634;if(!_0x1b065e)return;_0x19d8af['stop']();const _0x850b91=_0x54e86a['cell'],_0x24901d=_0x25d7be,_0x4fd871=De(_0x850b91),_0x3d8c0f=De(_0x24901d);_0x19d8af['return']=_0x850b91;let _0x21c3b7=null,_0x42b4b8=null;if(_0x3d8c0f||_0x4fd871){if(_0x4fd871&&!_0x3d8c0f){_0x1f359d['remove'](_0x850b91['getChild'](0x0));for(const _0x3b0acb of Array['from'](_0x24901d['getChildren']()))_0x1f359d['insert'](_0x3b0acb,_0x850b91,'end');const _0x5a2164=_0x1b065e['rowInsertionIndexes']['includes'](_0x54e86a['row']),_0x455137=_0x1b065e['columnInsertionIndexes']['includes'](_0x54e86a['column']);_0x5a2164||_0x455137||(_0x21c3b7=_0x34c04c['fromRange'](_0x1f359d['createRangeIn'](_0x850b91)));}else _0x3d8c0f&&!_0x4fd871&&(_0x42b4b8=_0x1f359d['createRangeIn'](_0x850b91));}else{const _0x2d5d5b=_0x1f359d['createElement']('tableCellSuggestion'),_0x3f3d15=_0x1f359d['createElement']('tableCellSuggestion');_0x1f359d['wrap'](_0x1f359d['createRangeIn'](_0x850b91),_0x3f3d15),_0x1f359d['insert'](_0x2d5d5b,_0x850b91,0x0);for(const _0x239b5e of Array['from'](_0x24901d['getChildren']()))_0x1f359d['insert'](_0x239b5e,_0x2d5d5b,'end');_0x21c3b7=_0x34c04c['fromRange'](_0x1f359d['createRangeOn'](_0x2d5d5b)),_0x42b4b8=_0x34c04c['fromRange'](_0x1f359d['createRangeOn'](_0x3f3d15));}const _0x2e607e=Array['from'](_0x24901d['getAttributes']())['filter'](([_0x557ca4])=>Oe['includes'](_0x557ca4));_0x1b065e['cells']['push']({'element':_0x850b91,'attributes':_0x2e607e['length']?Object['fromEntries'](_0x2e607e):null}),_0x21c3b7&&_0x1b065e['insertionRanges']['push'](_0x21c3b7),_0x42b4b8&&_0x1b065e['deletionRanges']['push'](_0x42b4b8);},{'priority':'high'}),_0x262ffc['on']('insertColumns',(_0x50cd20,_0x15bb68)=>{const [_0x449e8d,_0x385011={}]=_0x15bb68;if(!_0x1b065e)return;const _0x1dbcc5=_0x385011['at']||0x0,_0x482160=_0x385011['columns']||0x1;_0x1b065e['columnInsertionIndexes']=new Array(_0x482160)['fill'](_0x1dbcc5)['map']((_0x4d5512,_0x2a63e6)=>_0x4d5512+_0x2a63e6);for(const {cell:_0x4cecfc}of _0x262ffc['createTableWalker'](_0x449e8d,{'startColumn':_0x1dbcc5,'endColumn':_0x1dbcc5+_0x482160-0x1}))_0x1b065e['columnInsertionRanges']['push'](_0x166766['model']['createRangeOn'](_0x4cecfc));},{'priority':'low'}),_0x262ffc['on']('insertRows',(_0x472e47,_0x1ca9a6)=>{const [_0x224bf0,_0x16af0b={}]=_0x1ca9a6;if(!_0x1b065e)return;const _0x234b03=_0x16af0b['at']||0x0,_0x41b0c3=_0x16af0b['rows']||0x1;_0x1b065e['rowInsertionIndexes']=new Array(_0x41b0c3)['fill'](_0x234b03)['map']((_0x57afbc,_0x2c5933)=>_0x57afbc+_0x2c5933);for(const {cell:_0x168e89}of _0x262ffc['createTableWalker'](_0x224bf0,{'startRow':_0x234b03,'endRow':_0x234b03+_0x41b0c3-0x1}))_0x1b065e['rowInsertionRanges']['push'](_0x166766['model']['createRangeOn'](_0x168e89));},{'priority':'low'}),_0x55b53d['descriptionFactory']['registerDescriptionCallback'](_0x482919=>{if(_0x482919['subType']&&_0x482919['subType']['startsWith']('tablePaste'))return _0x482919['previous']?{}:{'type':'insertion','content':c(_0x166766['locale'],'*Replace\x20table\x20cells*')};});const _0x51e950=()=>!0x1;for(const _0xe9e880 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x55b53d['_suggestionFactory']['registerCustomCallback']('insertion',_0xe9e880,'join',_0x51e950),_0x55b53d['_suggestionFactory']['registerCustomCallback']('deletion',_0xe9e880,'join',_0x51e950),_0x55b53d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xe9e880,'join',_0x51e950);_0x55b53d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x51e950),_0x55b53d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xa1ecae,_0x5596fd,_0x5d56a1)=>{const _0x4c057d=_0xa1ecae['map'](_0x2afba7=>_0x2afba7['getContainedElement']())['filter'](_0x1bfc4c=>_0x1bfc4c),_0x3fd59e=new Map(_0x4c057d['map'](_0xf5f043=>[_0xf5f043,null]));if(_0x1b065e){for(const {element:_0x4fc942,attributes:_0x25f4dd}of _0x1b065e['cells'])_0x25f4dd&&_0x3fd59e['set'](_0x4fc942,_0x25f4dd);}else{if(_0x5d56a1&&_0x5d56a1['markerAttributes'])for(const [_0x3cfba8,_0x12365e]of Object['entries'](_0x5d56a1['markerAttributes'])){const _0x21c29b=_0x166766['model']['markers']['get'](_0x3cfba8),_0x8b0a03=_0x21c29b?_0x21c29b['getRange']()['getContainedElement']():null;_0x8b0a03&&_0x3fd59e['set'](_0x8b0a03,_0x12365e);}}_0x166766['model']['change'](_0x3fa579=>{for(const [_0x3b6f05,_0x34f2c5]of _0x3fd59e)_0x3fa579['setAttributes']({...Ue,..._0x34f2c5},_0x3b6f05);});});const _0x130920=(_0x388d72,_0x4a1e93)=>{_0x55b53d['_suggestionFactory']['registerCustomCallback'](_0x388d72,'tablePaste',_0x4a1e93,(_0x1d5664,_0x46d005,_0x51917f)=>{_0x166766['model']['change'](_0xef3054=>{const _0x530470=[];for(const _0x37e5ab of _0x1d5664){const _0x31650e=_0x37e5ab['start']['nodeAfter'];_0x31650e['is']('element','tableCellSuggestion')&&_0x530470['push'](_0x31650e);}_0x55b53d['_suggestionFactory']['getSuggestionCallback'](_0x388d72,null,_0x4a1e93)(_0x1d5664,_0x46d005,_0x51917f);for(const _0x36b73b of _0x530470)'$graveyard'!=_0x36b73b['root']['rootName']&&_0xef3054['unwrap'](_0x36b73b);});});};_0x130920('insertion','accept'),_0x130920('insertion','discard'),_0x130920('deletion','accept'),_0x130920('deletion','discard'),_0x55b53d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x278f07=>{const _0x5183c9=_0x278f07['map'](_0x53405a=>_0x53405a['getContainedElement']()),_0x520731=_0x5183c9[0x0]['findAncestor']('table'),{minRow:_0xe22c91,maxRow:_0x322f91}=_0x4f5fc0['_getCoordsForCells'](_0x5183c9);_0x262ffc['removeRows'](_0x520731,{'at':_0xe22c91,'rows':_0x322f91-_0xe22c91+0x1});}),_0x55b53d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x275a9c=>{const _0x51627e=_0x275a9c['map'](_0x3d16fd=>_0x3d16fd['getContainedElement']()),_0x610b61=_0x51627e[0x0]['findAncestor']('table'),{minColumn:_0x3314fb,maxColumn:_0x3f742d}=_0x4f5fc0['_getCoordsForCells'](_0x51627e);_0x262ffc['removeColumns'](_0x610b61,{'at':_0x3314fb,'columns':_0x3f742d-_0x3314fb+0x1});});const _0x53b5f6=(_0x13cd22,_0x4d94cd)=>{if(!_0x4d94cd['subType']||!_0x4d94cd['subType']['startsWith']('tablePaste'))return;const _0x2fb251=_0x4d94cd['attributes']['tablePasteChainId'],_0x275ec1=_0x55b53d['getSuggestions']()['filter'](_0x34ae05=>_0x34ae05['isInContent']&&_0x34ae05['attributes']&&_0x34ae05['attributes']['tablePasteChainId']==_0x2fb251);_0x275ec1['length']&&_0x4d94cd['getAllAdjacentSuggestions']()['length']!=_0x275ec1['length']&&_0x275ec1['reduce']((_0x55f64c,_0x17e1b8)=>(_0x55f64c['next']=_0x17e1b8,_0x17e1b8['previous']=_0x55f64c,_0x17e1b8));};function _0x376b39(_0x2477e6,_0x236493=!0x0){const {id:_0x439943,authorId:_0x4ee001}=_0x55b53d['_splitMarkerName'](_0x2477e6['markerName']),_0x533fbc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1b1eaa=_0x55b53d['activeMarkers']['includes'](_0x2477e6['markerName']);return _0x1b1eaa&&_0x533fbc['push']('ck-suggestion-marker--active'),{'classes':_0x533fbc,'attributes':{'data-suggestion':_0x439943,'data-author-id':_0x4ee001},'priority':_0x1b1eaa&&_0x236493?0xbc2:0xbb8};}_0x55b53d['on']('suggestionLoaded',_0x53b5f6,{'priority':'high'}),_0x55b53d['on']('suggestionUnloaded',_0x53b5f6,{'priority':'high'}),_0x166766['model']['document']['registerPostFixer'](()=>{let _0x347736=!0x1;const _0x13ad23=Array['from'](_0x166766['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4227b2,data:_0x17e842}of _0x13ad23){const {group:_0x3b40b3,type:_0x586a17,id:_0x143798}=_0x55b53d['_splitMarkerName'](_0x4227b2);if('suggestion'!=_0x3b40b3||'deletion'!=_0x586a17||_0x17e842['oldRange'])continue;if(!_0x55b53d['hasSuggestion'](_0x143798))continue;const _0xbecd4a=_0x55b53d['getSuggestion'](_0x143798)['getRanges'](),_0x1edb19=_0x166766['plugins']['get']('Users')['me'];for(const _0x1e66b5 of _0x55b53d['getSuggestions']()){if(!_0x1e66b5['isInContent']||_0x1e66b5['author']!=_0x1edb19)continue;if('formatBlock'!=_0x1e66b5['type']||'tablePasteCell'!=_0x1e66b5['subType'])continue;if(_0x1e66b5['getRanges']()['every'](_0xcdba6b=>_0xbecd4a['some'](_0x467a2f=>_0x467a2f['containsRange'](_0xcdba6b,!0x0)))){for(const _0x5410b7 of _0x1e66b5['getAllAdjacentSuggestions']())_0x5410b7['isInContent']&&(_0x5410b7['discard'](),_0x347736=!0x0);}}}return _0x347736;}),_0x166766['model']['document']['registerPostFixer'](_0x501a80=>{const _0xe94221=_0x166766['commands']['get']('redo');if(!_0xe94221||!_0xe94221['_createdBatches']['has'](_0x501a80['batch']))return!0x1;let _0x624ae0=!0x1;const _0x494ee4=_0x166766['plugins']['get']('Users')['me'],_0x5b5487=_0x166766['model']['document']['differ']['getChanges'](),_0x121ec7=Array['from'](_0x166766['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x54624f,data:_0x293242})=>{const {group:_0x896303,subType:_0x446db4,authorId:_0x4b7281}=_0x55b53d['_splitMarkerName'](_0x54624f);return'suggestion'==_0x896303&&'tablePaste'==_0x446db4&&_0x4b7281==_0x494ee4['id']&&!_0x293242['oldRange'];});for(const _0x33e4ce of _0x5b5487){if('insert'!=_0x33e4ce['type']||'tableCellSuggestion'!=_0x33e4ce['name']||0x1!=_0x33e4ce['length'])continue;const _0x3388fe=_0x501a80['createRange'](_0x33e4ce['position'],_0x33e4ce['position']['getShiftedBy'](0x1));if(!_0x121ec7['find'](({data:_0x5d8ad6})=>_0x5d8ad6['newRange']['isEqual'](_0x3388fe))){for(const {name:_0x409b6f,data:_0x4d90bc}of _0x121ec7)if(_0x3388fe['containsRange'](_0x4d90bc['newRange'])){_0x501a80['updateMarker'](_0x409b6f,{'range':_0x3388fe}),_0x624ae0=!0x0;break;}}}return _0x624ae0;}),_0x166766['model']['document']['registerPostFixer'](_0xef5386=>{let _0x359c5d=!0x1;const _0x1ed13a=_0x166766['plugins']['get']('Users')['me'],_0x223287=_0x55b53d['getSuggestions']()['filter'](_0x5a6bd6=>_0x5a6bd6['isInContent']&&_0x5a6bd6['author']==_0x1ed13a),_0x386d1c=new Set(),_0x4253e8=new Set();for(const _0x52948b of _0x223287)if('tablePaste'==_0x52948b['subType'])for(const _0x400e30 of _0x52948b['getMarkers']()){const _0x5b855a=_0x400e30['getRange']()['getContainedElement']();if(_0x5b855a){if(_0x5b855a['is']('element','tableCellSuggestion')&&De(_0x5b855a)){_0x52948b['removeMarker'](_0x400e30['name']),_0x386d1c['add'](_0x5b855a),_0x359c5d=!0x0;const _0x2c9225=_0x5b855a['nextSibling'],_0x5d9d41=_0x5b855a['previousSibling'],_0x3790bf=_0x2c9225&&_0x2c9225['is']('element','tableCellSuggestion'),_0x26d52c=_0x5d9d41&&_0x5d9d41['is']('element','tableCellSuggestion');_0x3790bf&&!_0x386d1c['has'](_0x2c9225)&&_0x4253e8['add'](_0x2c9225),_0x26d52c&&!_0x386d1c['has'](_0x5d9d41)&&_0x4253e8['add'](_0x5d9d41);}else _0x5b855a['is']('element','paragraph')&&_0x5b855a['isEmpty']&&(_0x52948b['removeMarker'](_0x400e30['name']),_0x359c5d=!0x0);}}else{if('tablePasteCell'==_0x52948b['subType']){if(!_0x52948b['attributes']||!_0x52948b['attributes']['tablePasteChainId'])continue;const _0x2f747f=_0x52948b['attributes']['markerAttributes'];if(_0x2f747f&&Object['keys'](_0x2f747f)['length'])continue;const _0x367be5=_0x52948b['attributes']['tablePasteChainId'];let _0x329035=!0x0,_0x264618=!0x0;for(const _0x2e810d of _0x223287)if(_0x2e810d['subType']&&_0x2e810d['subType']['startsWith']('tablePaste')){if(!_0x2e810d['attributes']['tablePasteChainId']){_0x264618=!0x1;break;}if(_0x2e810d['id']!=_0x52948b['id']&&_0x2e810d['attributes']['tablePasteChainId']==_0x367be5){_0x329035=!0x1;break;}}_0x264618&&_0x329035&&(_0x52948b['removeMarkers'](),_0x359c5d=!0x0);}}for(const _0x24d2c5 of _0x386d1c)_0xef5386['remove'](_0x24d2c5);for(const _0x5781a4 of _0x4253e8)_0xef5386['unwrap'](_0x5781a4);return _0x359c5d;}),_0x166766['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4b8a6a=>_0x376b39(_0x4b8a6a),'converterPriority':'high'}),_0x166766['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xfc91ec,_0x7944de)=>_0x7944de['options']['showSuggestionHighlights']?_0x376b39(_0xfc91ec,!0x1):null,'converterPriority':'high'});const _0x50fb60=_0x166766['editing']['view'];this['listenTo'](_0x50fb60['document'],'clipboardOutput',(_0x1ce2ad,_0x5d321b)=>{const _0x78923b=[];for(const _0x57ac63 of _0x50fb60['createRangeIn'](_0x5d321b['content'])['getItems']())_0x57ac63['is']('element','suggestion-td')&&_0x78923b['push'](_0x57ac63);_0x50fb60['change'](_0x113083=>{for(const _0x455576 of _0x78923b)_0x113083['move'](_0x113083['createRangeIn'](_0x455576),_0x113083['createPositionBefore'](_0x455576)),_0x113083['remove'](_0x455576);});});}}function De(_0x2d12b6){if(_0x2d12b6['isEmpty'])return!0x0;const _0x24cbff=_0x2d12b6['getChild'](0x0);return _0x24cbff['is']('element','paragraph')&&_0x24cbff['isEmpty'];}function He(_0x38125c,_0x1dc519={},_0x5c3d05){for(const {isAnchor:_0x1998a5,cellHeight:_0xf0c18d,cellWidth:_0x3499b0}of _0x5c3d05['createTableWalker'](_0x38125c,{'includeAllSlots':!0x0,..._0x1dc519}))if(!_0x1998a5||0x1!=_0xf0c18d||0x1!=_0x3499b0)return!0x1;return!0x0;}class Bt extends _0x5575fe{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x110fc5=this['editor']['plugins']['get']('TrackChangesEditing');_0x110fc5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x110fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x110fc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x110fc5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x110fc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x110fc5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3a7d5a,_0x2d7fcb){const _0x46c53d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dafdc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1229da=_0x2d7fcb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x361b6a=_0x1dafdc['getColumnGroupElement'](_0x1229da);let _0x17dfa4=_0x361b6a?_0x1dafdc['getTableColumnsWidths'](_0x361b6a):null,_0x1f954e=_0x1229da['getAttribute']('tableWidth')||null;const _0x116b51=_0x2d7fcb['tableWidth']||_0x1f954e,_0x105057=_0x2d7fcb['columnWidths']||_0x17dfa4,_0x2238e0=this['editor']['plugins']['get']('Users')['me'];for(const _0x4cd945 of _0x46c53d['getSuggestions']()){const _0x1ecef5=_0x4cd945['getContainedElement']();if('resizeTable'===_0x4cd945['subType']&&_0x1ecef5===_0x1229da){_0x4cd945['author']!==_0x2238e0&&_0x4cd945['discard']();const _0x133b76=_0x4cd945['data']['commandParams'];_0x1f954e=_0x133b76[0x0]['tableWidth'],_0x17dfa4=_0x133b76[0x0]['columnWidths'];break;}}_0x3a7d5a({'table':_0x1229da,'tableWidth':_0x116b51,'columnWidths':_0x105057}),_0x46c53d['markBlockFormat'](_0x1229da,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1f954e,'columnWidths':_0x17dfa4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4b159c){if('formatBlock'!=_0x4b159c['type']&&'formatInline'!=_0x4b159c['type'])return;const {data:_0x3295d5}=_0x4b159c;if(_0x3295d5&&'resizeTable'===_0x3295d5['formatGroupId']){const _0x3e38a1='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3e38a1)};}}}class xt extends _0x5575fe{['afterInit'](){const _0x46d033=this['editor'];_0x46d033['plugins']['has']('Template')&&_0x46d033['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5575fe{['afterInit'](){const _0x508924=this['editor'];if(!_0x508924['commands']['get']('insertTableOfContents'))return;_0x508924['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3005e1=_0x508924['plugins']['get']('TrackChangesEditing'),_0x21ce66=_0x508924['locale'];_0x3005e1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x245b80=>c(_0x21ce66,'ELEMENT_TABLE_OF_CONTENTS',_0x245b80));}}class Rt extends _0x5575fe{['afterInit'](){const _0x231677=this['editor'];if(!_0x231677['plugins']['has']('Title'))return;const _0x5f59c2=_0x231677['plugins']['get']('TrackChangesEditing');_0x5f59c2['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x231677['locale'],'ELEMENT_TITLE')),_0x231677['model']['document']['registerPostFixer'](_0x5cad2e=>{let _0x3fcc16=!0x1;const _0x1bc5ca=Array['from'](_0x231677['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34ede3,data:_0x1396f4}of _0x1bc5ca){const {group:_0x75bbe2}=_0x5f59c2['_splitMarkerName'](_0x34ede3);if('suggestion'!==_0x75bbe2||!_0x1396f4['newRange'])continue;const _0x3edae4=_0x1396f4['newRange'],_0x5d1313=_0x3edae4['end']['nodeBefore'];if(!_0x5d1313||!_0x5d1313['is']('element','title-content'))continue;if(!_0x3edae4['start']['isTouching'](_0x3edae4['end']))continue;const _0x3c35a5=_0x231677['model']['schema']['getNearestSelectionRange'](_0x3edae4['end'],'forward');if(_0x3c35a5&&_0x3c35a5['isCollapsed']){const _0x323226=_0x5cad2e['createRange'](_0x3edae4['start'],_0x3c35a5['start']);_0x323226['isEqual'](_0x3edae4)||(_0x5cad2e['updateMarker'](_0x34ede3,{'range':_0x323226}),_0x3fcc16=!0x0);}_0x3fcc16||(_0x5cad2e['removeMarker'](_0x34ede3),_0x3fcc16=!0x0);}return _0x3fcc16;});}}class Tt extends _0x5575fe{['afterInit'](){const _0x1713dd=this['editor'],_0x4a8694=_0x1713dd['plugins']['get']('TrackChangesEditing');_0x1713dd['plugins']['has']('Uploadcare')&&(_0x4a8694['enableCommand']('uploadcare'),_0x1713dd['plugins']['has']('UploadcareImageEdit')&&(_0x4a8694['enableCommand']('uploadcareImageEdit'),_0x4a8694['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4a8694['registerBlockAttribute']('uploadcareImageId'),_0x4a8694['descriptionFactory']['registerDescriptionCallback'](_0x4c20f6=>{if('attribute'!=_0x4c20f6['type'])return;const {data:_0x5eafca}=_0x4c20f6;return _0x5eafca&&'uploadcareImageId'==_0x5eafca['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5575fe{['afterInit'](){const _0x24bd9c=this['editor'],_0x272a8b=_0x24bd9c['plugins']['get']('TrackChangesEditing');_0x24bd9c['plugins']['has']('UndoEditing')&&(_0x272a8b['enableCommand']('undo'),_0x272a8b['enableCommand']('redo'));}}class Ut extends _0x5575fe{static get['requires'](){return[Ct];}['afterInit'](){const _0x1b96b5=this['editor'];if(!_0x1b96b5['plugins']['has']('TableCaptionEditing'))return;_0x1b96b5['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5575fe{['tableProperties'];['tableCellProperties'];constructor(_0x4e8186){super(_0x4e8186),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 _0x3fc366=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3e240b of this['tableProperties'])_0x3fc366['enableCommand'](_0x3e240b,(_0x54ee71,_0x3ae1f7)=>{const _0x5e076f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3e240b,[_0x5e076f],this['tableProperties'],'tableProperties',_0x54ee71,_0x3ae1f7);});_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3fc366['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5792dd,_0xf9db0a)=>this['handleDiscardAction'](this['tableProperties'],_0x5792dd,_0xf9db0a)),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x497850 of this['tableCellProperties'])_0x3fc366['enableCommand'](_0x497850,(_0x52a1c6,_0x36e621)=>{const _0x47f4e0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x497850,_0x47f4e0,this['tableCellProperties'],'tableCellProperties',_0x52a1c6,_0x36e621);});_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3fc366['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x326fca,_0x52c1c9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x326fca,_0x52c1c9)),_0x3fc366['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3fc366['descriptionFactory']['registerDescriptionCallback'](_0x57fdf1=>this['handleSuggestionDescription'](_0x57fdf1));}['_handlePropertyChange'](_0x1253ea,_0x1d14e3,_0x54fa5f,_0x5c6ed0,_0x17be81,_0xb37b63){const _0x1062dd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xb37b63['batch'],()=>{for(const _0x3e0da7 of _0x1d14e3){if(this['_getSuggestion'](_0x3e0da7,_0x5c6ed0))_0x17be81(_0xb37b63);else{const _0x2ed4b1={};for(const _0x264d41 of _0x54fa5f){const _0x3a0dd8=_0x3e0da7['getAttribute'](_0x264d41);void 0x0!==_0x3a0dd8&&(_0x2ed4b1[_0x264d41]=_0x3a0dd8);}_0x17be81(_0xb37b63),_0x1062dd['markBlockFormat'](_0x3e0da7,{'commandParams':[_0x2ed4b1]},[],_0x5c6ed0);}}});}['handleDiscardAction'](_0x36ebe3,_0x41f62a,_0x35ec6e){const _0x3ecc0a=_0x41f62a[0x0]['start']['nodeAfter'],_0x1b0d88=_0x35ec6e['commandParams'][0x0];this['editor']['model']['change'](_0x285186=>{for(const _0x1eb8f0 of _0x36ebe3)void 0x0!==_0x1b0d88[_0x1eb8f0]?_0x285186['setAttribute'](_0x1eb8f0,_0x1b0d88[_0x1eb8f0],_0x3ecc0a):_0x285186['removeAttribute'](_0x1eb8f0,_0x3ecc0a);});}['handleSuggestionDescription'](_0x21664a){if(_0x21664a['data'])switch(_0x21664a['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'](_0x2bfa81,_0x57d675){const _0x307f94=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5da03f of _0x307f94['getSuggestions']({'skipNotAttached':!0x0})){const _0x901db3=_0x5da03f['getContainedElement']();if(_0x5da03f['subType']===_0x57d675&&_0x901db3===_0x2bfa81)return _0x5da03f;}return null;}}const u='$elementName';class p extends _0x5575fe{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x39fba1,_0x1e5ef8,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(_0x2cb934){super(_0x2cb934),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x453638,_0x287bc5,_0x544bef,_0xb370b5)=>{this['_model']['change'](()=>{for(const _0x193978 of[..._0xb370b5,..._0x544bef])this['_model']['markers']['has'](_0x193978)&&_0x2cb934['editing']['reconvertMarker'](_0x193978);});}),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']=_0x2cb934['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(),_0x2cb934['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2cb934['config']['get']('trackChanges.trackFormatChanges'),_0x2cb934['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2cb934['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2cb934,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1c38de=this['editor'],_0x3f3492=(_0x3d8091,_0x2671b9)=>{if('attribute'!=_0x3d8091)return'ck-suggestion-marker-'+_0x3d8091;const _0x31b37f=_0x2671b9['split']('|')[0x0];return this['_isBlockAttribute'](_0x31b37f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1c38de['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4aaeb3=>{const {id:_0x5729f6,authorId:_0x55380e,type:_0xaffb94,subType:_0x3dc68e}=this['_splitMarkerName'](_0x4aaeb3['markerName']),_0x32ce3a=['ck-suggestion-marker',_0x3f3492(_0xaffb94,_0x3dc68e)];let _0x2cdf15=0xbb8;return this['activeMarkers']['includes'](_0x4aaeb3['markerName'])&&(_0x32ce3a['push']('ck-suggestion-marker--active'),_0x2cdf15=0xbc2),'deletion'==_0xaffb94&&(_0x2cdf15+=0x5),{'classes':_0x32ce3a,'attributes':{'data-suggestion':_0x5729f6,'data-author-id':_0x55380e},'priority':_0x2cdf15};}}),_0x1c38de['conversion']['for']('dataDowncast')['add'](_0x55eb5c=>{_0x55eb5c['on']('addMarker:suggestion',(_0x43e38a,_0x144625,_0x2a6a84)=>{if(!_0x2a6a84['options']['showSuggestionHighlights'])return;const _0x11ee27=_0x144625['item'];if(!_0x11ee27)return;const _0x2c5ab8=_0x2a6a84['mapper']['toViewElement'](_0x11ee27);_0x1c38de['model']['schema']['isObject'](_0x11ee27)&&_0x2c5ab8&&!_0x2c5ab8['getCustomProperty']('widget')&&_0x2c5ab8['is']('containerElement')&&_0x32bc39(_0x2c5ab8,_0x2a6a84['writer']);},{'priority':'high'});}),_0x1c38de['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x525d7a,_0x1b5f66)=>{if(!_0x1b5f66['options']['showSuggestionHighlights'])return null;const {id:_0x35cfc8,authorId:_0x50f985,type:_0x21e625,subType:_0x5f5be7}=this['_splitMarkerName'](_0x525d7a['markerName']);return{'classes':['ck-suggestion-marker',_0x3f3492(_0x21e625,_0x5f5be7)],'priority':0xbb8,'attributes':{'data-suggestion':_0x35cfc8,'data-author-id':_0x50f985}};}});const _0x459360=({showActiveMarkers:_0x1a7775=!0x0,isAttributeSuggestion:_0x31b40c=!0x1}={})=>(_0x591021,_0x53c7f6,_0x43ea08)=>{if(!_0x53c7f6['item'])return;const {id:_0x1df3a4,authorId:_0x10575f}=this['_splitMarkerName'](_0x53c7f6['markerName']);if(_0x31b40c){const _0x46b974=this['_suggestions']['get'](_0x1df3a4),_0x2528cc=this['_getAttributeKey'](_0x46b974);if(!this['_isBlockAttribute'](_0x2528cc))return;}if(_0x53c7f6['item']['is']('selection'))return void _0x43ea08['consumable']['consume'](_0x53c7f6['item'],_0x591021['name']);const _0x4b7299=_0x43ea08['mapper']['toViewElement'](_0x53c7f6['item']);if(_0x53c7f6['item']['is']('element')&&_0x1c38de['model']['schema']['isBlock'](_0x53c7f6['item'])&&!_0x4b7299['getCustomProperty']('addHighlight')){_0x43ea08['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4b7299),_0x43ea08['writer']['setAttribute']('data-suggestion',_0x1df3a4,_0x4b7299),_0x43ea08['writer']['setAttribute']('data-author-id',_0x10575f,_0x4b7299),_0x43ea08['mapper']['bindElementToMarker'](_0x4b7299,_0x53c7f6['markerName']),_0x1a7775&&(this['activeMarkers']['includes'](_0x53c7f6['markerName'])?_0x43ea08['writer']['addClass']('ck-suggestion-marker--active',_0x4b7299):_0x43ea08['writer']['removeClass']('ck-suggestion-marker--active',_0x4b7299));for(const _0x845ed0 of _0x1c38de['model']['createRangeIn'](_0x53c7f6['item'])['getItems']())_0x43ea08['consumable']['consume'](_0x845ed0,_0x591021['name']);_0x43ea08['consumable']['consume'](_0x53c7f6['item'],_0x591021['name']);}};_0x1c38de['conversion']['for']('dataDowncast')['add'](_0x3a52e6=>{_0x3a52e6['on']('addMarker:suggestion:formatBlock',(_0x3c9da3,_0x176f3f,_0x3d3141)=>{_0x3d3141['options']['showSuggestionHighlights']&&_0x459360({'showActiveMarkers':!0x1})(_0x3c9da3,_0x176f3f,_0x3d3141);},{'priority':'highest'});}),_0x1c38de['conversion']['for']('dataDowncast')['add'](_0x113486=>{_0x113486['on']('addMarker:suggestion:attribute',(_0x3bf38c,_0x1bc621,_0x56caf8)=>{_0x56caf8['options']['showSuggestionHighlights']&&_0x459360({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3bf38c,_0x1bc621,_0x56caf8);},{'priority':'highest'});}),_0x1c38de['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xb474c9,_0x51cd13)=>{if(_0x51cd13['options']['showSuggestionHighlights']){const {id:_0x39cbd5,authorId:_0x4d2c4b}=this['_splitMarkerName'](_0xb474c9);return _0xb474c9['includes'](':split')||_0xb474c9['includes'](':merge')?{'group':'suggestion','name':_0xb474c9['substr'](0xb),'attributes':{'data-suggestion':_0x39cbd5,'data-author-id':_0x4d2c4b}}:null;}return{'group':'suggestion','name':_0xb474c9['substr'](0xb)};}}),_0x1c38de['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x250ced,{writer:_0x3ade51})=>{let _0x1e1e66='suggestion:'+_0x250ced['getAttribute']('suggestion-type')+':'+_0x250ced['getAttribute']('id');return _0x250ced['getAttribute']('marker-count')&&(_0x1e1e66+=':'+_0x250ced['getAttribute']('marker-count')),_0x3ade51['createElement']('$marker',{'data-name':_0x1e1e66});}}),_0x1c38de['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x35fd5d=>{_0x35fd5d['on']('addMarker:suggestion:formatBlock',_0x459360(),{'priority':'high'});}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x1047ce=>{_0x1047ce['on']('addMarker:suggestion:attribute',_0x459360({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x19fa14=>{_0x19fa14['on']('removeMarker:suggestion:formatBlock',(_0x3a0a87,_0x55bdf8,_0x52235c)=>{const _0x599fba=_0x52235c['mapper']['markerNameToElements'](_0x55bdf8['markerName']);if(_0x599fba){for(const _0x214244 of _0x599fba)_0x214244['getCustomProperty']('addHighlight')||(_0x52235c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x214244),_0x52235c['writer']['removeAttribute']('data-suggestion',_0x214244),_0x52235c['writer']['removeAttribute']('data-author-id',_0x214244),_0x52235c['mapper']['unbindElementFromMarkerName'](_0x214244,_0x55bdf8['markerName']));}},{'priority':'high'});}),_0x1c38de['conversion']['for']('editingDowncast')['add'](_0x174394=>{_0x174394['on']('removeMarker:suggestion:attribute',(_0x5e8361,_0x8e1992,_0x2f93f1)=>{const _0x4d6c6b=_0x2f93f1['mapper']['markerNameToElements'](_0x8e1992['markerName']);if(!_0x4d6c6b)return;const {id:_0x343a57}=this['_splitMarkerName'](_0x8e1992['markerName']),_0x1b3f88=this['_suggestions']['get'](_0x343a57),_0xb89e32=this['_getAttributeKey'](_0x1b3f88);if(this['_isBlockAttribute'](_0xb89e32)){for(const _0x1605bc of _0x4d6c6b)_0x1605bc['getCustomProperty']('addHighlight')||(_0x2f93f1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1605bc),_0x2f93f1['writer']['removeAttribute']('data-suggestion',_0x1605bc),_0x2f93f1['writer']['removeAttribute']('data-author-id',_0x1605bc),_0x2f93f1['mapper']['unbindElementFromMarkerName'](_0x1605bc,_0x8e1992['markerName']));}},{'priority':'high'});}),_0x1c38de['model']['document']['registerPostFixer'](_0x2344cb=>{let _0x34280d=!0x1;const _0x5c75f7=Array['from'](_0x1c38de['model']['document']['differ']['getChangedMarkers']()),_0x4d395a=new Set();for(const {name:_0x1be0f9,data:_0x870138}of _0x5c75f7){const {group:_0x43597e,type:_0x4f3242,subType:_0x183573,id:_0x2f8aef}=this['_splitMarkerName'](_0x1be0f9);if('suggestion'!==_0x43597e)continue;const _0x30d152=this['_suggestions']['get'](_0x2f8aef);if(null!=_0x870138['newRange']){'formatInline'==_0x4f3242&&(_0x34280d=_0x34280d||Jt(_0x870138['newRange'],_0x1be0f9,_0x2344cb,_0x1c38de['model']['schema']));const _0x288321='attribute'==_0x4f3242&&this['_isBlockAttribute'](_0x183573['split']('|')[0x0]);if(_0x870138['newRange']['isCollapsed']||'$graveyard'==_0x870138['newRange']['root']['rootName']||'formatBlock'==_0x4f3242&&!Ht(_0x870138['newRange'])||_0x288321&&!Ht(_0x870138['newRange'])||'deletion'==_0x4f3242&&!(!Lt(_0x592980=_0x870138['newRange'])&&!function(_0x298297){return _0x298297['start']['parent']==_0x298297['end']['nodeBefore']&&_0x298297['start']['isAtEnd'];}(_0x592980)))_0x2344cb['removeMarker'](_0x1be0f9),_0x34280d=!0x0;else{if(!_0x30d152||!_0x30d152['isInContent'])continue;if(_0x870138['newRange']&&_0x870138['oldRange']&&_0x870138['newRange']['isEqual'](_0x870138['oldRange']))continue;_0x4d395a['add'](_0x30d152);}}}var _0x592980;return _0x4d395a['size']>0x0&&(_0x34280d=!!this['_joinWithAdjacentSuggestions'](_0x4d395a)||_0x34280d),_0x34280d;}),_0x1c38de['model']['document']['registerPostFixer'](_0x5bcee0=>{let _0x18a164=!0x1;for(const _0x81b154 of _0x1c38de['model']['document']['differ']['getChanges']())if('insert'==_0x81b154['type'])for(const _0x2f49b5 of this['_suggestions']['values']()){if(_0x2f49b5['isMultiRange']||!_0x2f49b5['isInContent'])continue;const _0x2b5a72='formatBlock'==_0x2f49b5['type'],_0x1640c3=this['_getAttributeKey'](_0x2f49b5),_0x21466f=_0x1640c3&&this['_isBlockAttribute'](_0x1640c3);if(!_0x2b5a72&&!_0x21466f)continue;const _0x507047=_0x2f49b5['getFirstRange']();if(_0x507047['start']['parent']!=_0x507047['end']['parent']&&!_0x507047['end']['isAtEnd']){const _0xe4f6a6=_0x1c38de['model']['createPositionAt'](_0x507047['start']['nodeAfter'],'end'),_0x378ba8=_0x1c38de['model']['createRange'](_0x507047['start'],_0xe4f6a6);_0x5bcee0['updateMarker'](_0x2f49b5['getFirstMarker'](),{'range':_0x378ba8}),_0x18a164=!0x0;}}return _0x18a164;}),_0x1c38de['model']['document']['registerPostFixer'](_0x3815dd=>this['_processAttributeChanges'](_0x3815dd)),_0x1c38de['model']['document']['registerPostFixer'](_0x54d462=>!_0x54d462['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x54d462)),_0x1c38de['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1c38de['model']['document']['on']('change:data',(_0x54e65c,_0x1ce905)=>{if(!_0x1ce905['isLocal']||_0x1ce905['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x336cb0=_0x1c38de['model']['document']['differ']['getChanges']();if(0x0==_0x336cb0['length'])return;const _0x43e5f2=[],_0xc7cca9=_0x336cb0['filter'](_0x2482c5=>'attribute'==_0x2482c5['type']),_0x271eea=_0x336cb0['filter'](_0x11be4b=>'insert'==_0x11be4b['type']&&'$text'!=_0x11be4b['name']);for(const _0x533547 of _0xc7cca9)this['_isRegisteredAttribute'](_0x533547['attributeKey'])&&_0x43e5f2['push']({'key':_0x533547['attributeKey'],'newValue':_0x533547['attributeNewValue'],'oldValue':_0x533547['attributeOldValue'],'range':qt(_0x533547['range'],_0x1c38de['model'])});for(const _0x539b74 of _0x271eea){if('rename'!=_0x539b74['action']&&'refresh'!=_0x539b74['action'])continue;const _0x43881c=zt(_0x539b74['position']['nodeAfter'],_0x1c38de['model']),_0x41847f=_0x539b74['before'];'rename'==_0x539b74['action']&&_0x43e5f2['push']({'key':u,'newValue':_0x539b74['name'],'oldValue':_0x41847f['name'],'range':_0x43881c});for(const [_0x1c4bf5,_0x4f6927]of _0x41847f['attributes']){if(!this['_isRegisteredAttribute'](_0x1c4bf5))continue;const _0x1bced6=_0x539b74['attributes']['get'](_0x1c4bf5);_0x4f6927!==_0x1bced6&&_0x43e5f2['push']({'key':_0x1c4bf5,'newValue':_0x1bced6,'oldValue':_0x4f6927,'range':_0x43881c});}for(const [_0x17bdb3,_0x2f6b08]of _0x539b74['attributes'])this['_isRegisteredAttribute'](_0x17bdb3)&&(_0x41847f['attributes']['has'](_0x17bdb3)||_0x43e5f2['push']({'key':_0x17bdb3,'newValue':_0x2f6b08,'oldValue':null,'range':_0x43881c}));}0x0!=_0x43e5f2['length']&&_0x1c38de['model']['enqueueChange'](_0x1ce905,_0xbce79b=>{const _0x87c8ae=_0x1526c3();for(const {range:_0x434ec7,key:_0x196a1c,oldValue:_0x56d902,newValue:_0x32b7a2}of _0x43e5f2)this['markAttributeChange'](_0x434ec7,_0x196a1c,_0x56d902,_0x32b7a2,{'groupId':_0x87c8ae});this['_reduceExistingSuggestions'](_0xbce79b,_0x43e5f2);});},{'priority':'lowest'}),_0x1c38de['model']['markers']['on']('update:suggestion',(_0x34510e,_0x1b9a0b,_0x1a02c7)=>{if(null==_0x1a02c7){const {id:_0x5a7c87}=this['_splitMarkerName'](_0x1b9a0b['name']),_0x3a4783=this['_suggestions']['get'](_0x5a7c87);_0x3a4783&&_0x3a4783['addMarkerName'](_0x1b9a0b['name']);}}),_0x1c38de['model']['document']['on']('change:data',()=>{const _0x778cea=Array['from'](_0x1c38de['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1a6f4d=>'suggestion'===this['_splitMarkerName'](_0x1a6f4d['name'])['group']);if(0x0===_0x778cea['length'])return;_0x778cea['sort']((_0x259456,_0x4f4338)=>{const _0x352658=_0x259456['data']['oldRange'],_0xeaa8e1=_0x4f4338['data']['oldRange'];return null===_0x352658&&null===_0xeaa8e1?0x0:null===_0x352658&&null!==_0xeaa8e1?-0x1:null!==_0x352658&&null===_0xeaa8e1?0x1:_0x352658['start']['isBefore'](_0xeaa8e1['start'])?-0x1:0x1;});const _0x5c6ed4=new Set(),_0x52fed4=new Set();for(const {name:_0x4a91be,data:_0x4f4986}of _0x778cea){const {id:_0x2ea65b}=this['_splitMarkerName'](_0x4a91be);if(null===_0x4f4986['oldRange']){const _0x3e860f=this['_handleNewSuggestionMarker'](_0x4a91be);_0x52fed4['add'](_0x3e860f);}else{const _0x4037f0=this['_suggestions']['get'](_0x2ea65b);null!==_0x4f4986['newRange']||_0x4037f0['isInContent']?(_0x5c6ed4['add'](_0x4037f0['head']),_0x52fed4['add'](_0x4037f0)):this['_removeSuggestion'](_0x4037f0);}}_0x52fed4['size']>0x0&&this['_refreshSuggestionsChain'](_0x52fed4);for(const _0x39846e of _0x5c6ed4)this['fire']('suggestionChanged',_0x39846e);}),_0x1c38de['model']['on']('applyOperation',(_0x9ae535,_0x5d216c)=>{const _0x5ce879=_0x5d216c[0x0];if(!this['_suggestions']['size'])return;if(!_0x5ce879['isDocumentOperation'])return;if(_0x5ce879['batch']['isUndo']||!_0x5ce879['batch']['isLocal'])return;let _0x5b03c6,_0x3d12f1;switch(_0x5ce879['type']){case'insert':_0x5b03c6=_0x1c38de['model']['createPositionAt'](_0x5ce879['position']),_0x3d12f1=_0x5b03c6['getShiftedBy'](_0x5ce879['howMany']);break;case'split':_0x5b03c6=_0x1c38de['model']['createPositionAt'](_0x5ce879['splitPosition']),_0x3d12f1=_0x1c38de['model']['createPositionAt'](_0x5ce879['moveTargetPosition']);break;case'move':_0x5b03c6=_0x1c38de['model']['createPositionAt'](_0x5ce879['targetPosition']),_0x3d12f1=_0x5b03c6['getShiftedBy'](_0x5ce879['howMany']);break;default:return;}const _0xdf2259=_0x1c38de['model']['createRange'](_0x5b03c6,_0x3d12f1);_0x1c38de['model']['change'](()=>{for(const {suggestion:_0x114f3d,meta:_0x549599}of this['_findSuggestions'](_0xdf2259)){if(_0x114f3d['isMultiRange'])continue;if('formatInline'==_0x114f3d['type'])continue;const _0x3f7fb4=this['_getAttributeKey'](_0x114f3d);if(_0x3f7fb4&&this['_isBlockAttribute'](_0x3f7fb4)&&'split'!=_0x5ce879['type'])continue;const _0x36c36a=_0x114f3d['data']&&_0x114f3d['data']['multipleBlocks'];('formatBlock'!=_0x114f3d['type']||'split'==_0x5ce879['type']&&!_0x36c36a)&&(_0x549599['containsRangeInObject']||'insertion'==_0x114f3d['type']&&_0x549599['isOwn']||_0x114f3d['getFirstRange']()['containsRange'](_0xdf2259)&&this['_breakSuggestionMarker'](_0x114f3d,_0x5b03c6,_0x3d12f1));}});},{'priority':'lowest'}),_0x1c38de['model']['on']('deleteContent',(_0x17d3b9,_0x20fec3)=>{const _0x2d26b2=_0x20fec3[0x0],_0x358b21=_0x20fec3[0x1];if(_0x358b21&&_0x358b21['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2d26b2['isCollapsed'])return;const _0x450447=_0x1c38de['model']['schema'],{start:_0x52010a,end:_0x1c5e66}=_0x2d26b2['getFirstRange'](),_0x16ea5b=_0x52010a['nodeAfter']&&_0x450447['isLimit'](_0x52010a['nodeAfter'])?null:_0x450447['getNearestSelectionRange'](_0x52010a,'forward'),_0xff77f6=_0x1c5e66['nodeBefore']&&_0x450447['isLimit'](_0x1c5e66['nodeBefore'])?null:_0x450447['getNearestSelectionRange'](_0x1c5e66,'backward'),_0x348ed3=_0x1c38de['model']['createRange'](_0x16ea5b?_0x16ea5b['start']:_0x52010a,_0xff77f6?_0xff77f6['end']:_0x1c5e66);_0x1c38de['model']['change'](_0x159e6b=>{this['markDeletion'](_0x348ed3);const _0x4d8b68=_0x1c38de['model']['schema']['getNearestSelectionRange'](_0x348ed3['start']);_0x2d26b2['is']('documentSelection')?_0x159e6b['setSelection'](_0x4d8b68):_0x2d26b2['setTo'](_0x4d8b68);}),_0x17d3b9['stop']();},{'priority':_0x2dda8a['normal']+0xa}),_0x1c38de['model']['on']('insertContent',(_0x272c77,_0x26165e)=>{const _0x2c8f6f=_0x26165e[_0x26165e['length']-0x1];_0x2c8f6f&&_0x2c8f6f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1c38de['model']['change'](()=>{let _0x1768d2=_0x1c38de['model']['insertContent'](_0x26165e[0x0],_0x26165e[0x1],_0x26165e[0x2],{'forceDefaultExecution':!0x0});if(!_0x1768d2)return;_0x272c77['return']=_0x1768d2['clone']();const _0x49ff4c=_0x1768d2['end']['nodeBefore'],_0x388810=_0x1c38de['model']['schema'];_0x49ff4c&&_0x388810['isBlock'](_0x49ff4c)&&!_0x388810['isObject'](_0x49ff4c)&&(_0x1768d2=_0x1c38de['model']['createRange'](_0x1768d2['start'],_0x1c38de['model']['createPositionAt'](_0x49ff4c,'end'))),this['markInsertion'](_0x1768d2);}),_0x272c77['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5ccc21=new x(_0x1c38de,this['_suggestions']);_0x1c38de['commands']['add']('acceptSuggestion',_0x5ccc21),this['enableCommand']('acceptSuggestion');const _0x4525eb=new O(_0x1c38de,this['_suggestions']);_0x1c38de['commands']['add']('discardSuggestion',_0x4525eb),this['enableCommand']('discardSuggestion'),_0x1c38de['commands']['add']('acceptAllSuggestions',new R(_0x1c38de,_0x5ccc21,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1c38de['commands']['add']('discardAllSuggestions',new R(_0x1c38de,_0x4525eb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1c38de['commands']['add']('acceptSelectedSuggestions',new E(_0x1c38de,_0x5ccc21,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1c38de['commands']['add']('discardSelectedSuggestions',new E(_0x1c38de,_0x4525eb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x23e776=_0x1c38de['plugins']['get']('CommentsRepository');this['listenTo'](_0x23e776,'addComment',(_0x1681e1,{threadId:_0x5f0e90})=>{const _0x414e6a=this['_suggestions']['get'](_0x5f0e90);_0x414e6a&&_0x414e6a['commentThread']&&0x1===_0x414e6a['commentThread']['length']&&this['_updateSuggestionData'](_0x5f0e90,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x23e776,'removeComment',(_0x51279d,{threadId:_0x1d3d34})=>{const _0x44eeee=this['_suggestions']['get'](_0x1d3d34);_0x44eeee&&_0x44eeee['commentThread']&&!_0x44eeee['commentThread']['length']&&this['_updateSuggestionData'](_0x1d3d34,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3c4ce5){const _0x9c4cb6=_0x42ceec([0x49,0x58,0x51,0x69,0x45,0x33,0x73,0x44,0x6d,0x5a,0x4c,0x74,0x35,0x68,0x39,0x4a,0x4e,0x76,0x47,0x56,0x71,0x79,0x42,0x61,0x78,0x48,0x31,0x65,0x59,0x7a,0x4b,0x52,0x67,0x43,0x38,0x46,0x75,0x77,0x30,0x62,0x72,0x6a,0x70,0x6c,0x54,0x6b,0x41,0x63,0x64,0x6e,0x66,0x34,0x4f,0x57,0x50,0x6f,0x37,0x32,0x36,0x4d,0x55,0x53]),_0x11c329=0x689215ba,_0x7d0cc5=0x68957c3a^_0x11c329,_0x2309f7=window[_0x42ceec([0x44,0x61,0x74,0x65])][_0x42ceec([0x6e,0x6f,0x77])](),_0x586245=_0x3c4ce5[_0x42ceec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x120145=new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x521e22=>{_0x586245[_0x42ceec([0x6f,0x6e,0x63,0x65])](_0x42ceec([0x72,0x65,0x61,0x64,0x79]),_0x521e22);}),_0x390183={[_0x42ceec([0x6b,0x74,0x79])]:_0x42ceec([0x45,0x43]),[_0x42ceec([0x75,0x73,0x65])]:_0x42ceec([0x73,0x69,0x67]),[_0x42ceec([0x63,0x72,0x76])]:_0x42ceec([0x50,0x2d,0x32,0x35,0x36]),[_0x42ceec([0x78])]:_0x42ceec([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]),[_0x42ceec([0x79])]:_0x42ceec([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]),[_0x42ceec([0x61,0x6c,0x67])]:_0x42ceec([0x45,0x53,0x32,0x35,0x36])},_0x3fd898=_0x586245[_0x42ceec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42ceec([0x67,0x65,0x74])](_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40169d(){let _0x178e13,_0x1efd1f=null,_0x454e3a=null;try{if(_0x3fd898==_0x42ceec([0x47,0x50,0x4c]))return _0x42ceec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x178e13=_0x454fa4(),!_0x178e13)return _0x42ceec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x178e13[_0x42ceec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x454e3a=_0x5763fa(_0x178e13[_0x42ceec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x178e13[_0x42ceec([0x6a,0x74,0x69])])),await _0x1b6216()?_0x31212a()?_0x10377e()?_0x42ceec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b0588()?(_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42ceec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1efd1f=_0x359daf(_0x42ceec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42ceec([0x74,0x72,0x69,0x61,0x6c])&&(_0x1efd1f=_0x359daf(_0x42ceec([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22754d()):_0x42ceec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42ceec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42ceec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x42ceec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x10377e(){const _0x433f9a=[_0x42ceec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42ceec([0x74,0x72,0x69,0x61,0x6c])][_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2309f7/0x3e8:0xe10*_0x7d0cc5;return _0x178e13[_0x42ceec([0x65,0x78,0x70])]<_0x433f9a;}function _0x31212a(){const _0x48d3c2=_0x178e13[_0x42ceec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x48d3c2)return!0x1;if(_0x48d3c2[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x2a])))return!0x0;if(_0x48d3c2[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x54,0x43])))return!0x0;if(_0x48d3c2[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x52,0x54,0x43]))){if(_0x129a2e())return!0x0;if(_0x2f429c()||_0xb9373())return!0x0;}return!0x1;}function _0x4b0588(){const _0x329e32=_0x178e13[_0x42ceec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x329e32||0x0==_0x329e32[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fc003}=new URL(window[_0x42ceec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x329e32[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fc003))return!0x0;const _0x4410fd=_0x3fc003[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e]));return _0x329e32[_0x42ceec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43cda9=>_0x43cda9[_0x42ceec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42ceec([0x2a])))[_0x42ceec([0x6d,0x61,0x70])](_0xd383cc=>_0xd383cc[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e])))[_0x42ceec([0x73,0x6f,0x6d,0x65])](_0x56c4e2=>_0x4410fd[_0x42ceec([0x65,0x76,0x65,0x72,0x79])]((_0x1cb095,_0x174f46)=>_0x56c4e2[_0x174f46]===_0x1cb095||_0x56c4e2[_0x174f46]===_0x42ceec([0x2a])));}function _0x22754d(){return _0x1efd1f&&_0x454e3a?new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bce31,_0x2fb972)=>{_0x1efd1f[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x3bce31,_0x2fb972),_0x454e3a[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x5bd541=>{_0x5bd541!=_0x42ceec([0x56,0x61,0x6c,0x69,0x64])&&_0x3bce31(_0x5bd541);},_0x2fb972);}):_0x1efd1f||_0x454e3a||_0x42ceec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5763fa(_0x165ddf,_0x4cc7a1){return new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x308498=>{if(_0x440266())return _0x308498(_0x42ceec([0x56,0x61,0x6c,0x69,0x64]));_0x5558be(),_0x586245[_0x42ceec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42ceec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2527eb=!0x1;const _0x657add=_0x1526c3();function _0x4eee01(_0x1f3a50){return!!_0x1f3a50&&(typeof _0x1f3a50===_0x42ceec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f3a50===_0x42ceec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f3a50[_0x42ceec([0x74,0x68,0x65,0x6e])]===_0x42ceec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f3a50[_0x42ceec([0x63,0x61,0x74,0x63,0x68])]===_0x42ceec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c9632(_0x467c7d){_0x4d63e2(_0x467c7d)[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x5a1426=>{if(!_0x5a1426||_0x5a1426[_0x42ceec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42ceec([0x6f,0x6b]))return _0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe92941(_0x3a14f7(_0x657add+_0x4cc7a1))!=_0x5a1426[_0x42ceec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42ceec([0x56,0x61,0x6c,0x69,0x64]);})[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x4a94b9=>(_0x11e2e0(),_0x4a94b9),()=>{const _0xb93ee5=_0x4acc10();return null==_0xb93ee5?(_0x11e2e0(),_0x42ceec([0x56,0x61,0x6c,0x69,0x64])):_0x42ceec(_0x2309f7-_0xb93ee5>(0x4c9e91ba^_0x11c329)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x308498)[_0x42ceec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x308498(_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x405dc8=0x68a4fb3a^_0x11c329;function _0x11e2e0(){const _0x483b6a=_0x42ceec([0x6c,0x6c,0x63,0x74,0x2d])+_0xe92941(_0x3a14f7(_0x165ddf)),_0x53c90e=_0x5ce67a(_0xe92941(window[_0x42ceec([0x4d,0x61,0x74,0x68])][_0x42ceec([0x63,0x65,0x69,0x6c])](_0x2309f7/_0x405dc8)));window[_0x42ceec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42ceec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x483b6a,_0x53c90e);}function _0x4acc10(){const _0x6c8a71=_0x42ceec([0x6c,0x6c,0x63,0x74,0x2d])+_0xe92941(_0x3a14f7(_0x165ddf)),_0x465dad=window[_0x42ceec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42ceec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6c8a71);return _0x465dad?window[_0x42ceec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ce67a(_0x465dad),0x10)*_0x405dc8:null;}function _0x4d63e2(_0x35da3e){return new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49b733,_0x197b2f)=>{_0x35da3e[_0x42ceec([0x74,0x68,0x65,0x6e])](_0x49b733,_0x197b2f),window[_0x42ceec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x197b2f,0x6893c17a^_0x11c329);});}}_0x586245[_0x42ceec([0x6f,0x6e])](_0x42ceec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x201004,_0x551453)=>{if(_0x551453[0x0]!=_0x165ddf)return _0x308498(_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x551453[0x1]={..._0x551453[0x1],[_0x42ceec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x657add};},{[_0x42ceec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42ceec([0x68,0x69,0x67,0x68])}),_0x586245[_0x42ceec([0x6f,0x6e])](_0x42ceec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x108537=>{_0x4eee01(_0x108537[_0x42ceec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2527eb=!0x0,_0x2c9632(_0x108537[_0x42ceec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42ceec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42ceec([0x6c,0x6f,0x77])}),_0x120145[_0x42ceec([0x74,0x68,0x65,0x6e])](()=>{_0x2527eb||_0x308498(_0x42ceec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x440266(){return _0x586245[_0x42ceec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42ceec([0x76,0x69,0x65,0x77])][_0x42ceec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42ceec([0x61,0x75,0x74,0x6f]);}function _0x5558be(){_0x586245[_0x42ceec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42ceec([0x76,0x69,0x65,0x77])][_0x42ceec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42ceec([0x61,0x75,0x74,0x6f]);}}function _0x359daf(_0x69bcc8){const _0x2e0a50=[new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fb830=>setTimeout(_0x3fb830,0x689b2b76^_0x11c329)),_0x120145[_0x42ceec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3445d1=>{let _0x4c1e04=0x0;_0x586245[_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ceec([0x6f,0x6e])](_0x42ceec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x691fea,_0x579091)=>{_0x579091[0x0][_0x42ceec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c1e04++,_0x4c1e04==(0x68921442^_0x11c329)&&(_0x3445d1(),_0x691fea[_0x42ceec([0x6f,0x66,0x66])]());});}))];return window[_0x42ceec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42ceec([0x72,0x61,0x63,0x65])](_0x2e0a50)[_0x42ceec([0x74,0x68,0x65,0x6e])](()=>_0x69bcc8);}async function _0x5479a2(){await _0x120145,_0x586245[_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ceec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7225,_0x586245[_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c])][_0x42ceec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d7225,_0x586245[_0x42ceec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42ceec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x129a2e(){return _0x3d947a(_0x42ceec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4e4dec(_0x42ceec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x42ceec([0x73,0x74,0x61,0x74,0x65])]==_0x42ceec([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2f429c(){return _0x3d947a(_0x42ceec([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 _0xb9373(){return _0x3d947a(_0x42ceec([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x54fadf(_0x4ed0df){const _0x48b43a=_0xc25a();_0x586245[_0x48b43a]=_0x42ceec([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ed0df,_0x4ed0df!=_0x42ceec([0x56,0x61,0x6c,0x69,0x64])&&_0x5479a2();}function _0xc25a(){const _0x1933e7=window[_0x42ceec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42ceec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42ceec([0x6e,0x6f,0x77])]())[_0x42ceec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42ceec([0x2e]),'');let _0x3ce2e3=_0x42ceec([0x49]);for(let _0x2b403e=0x0;_0x2b403e<_0x1933e7[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b403e+=0x2){let _0xc266ce=window[_0x42ceec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1933e7[_0x42ceec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b403e,_0x2b403e+0x2));_0xc266ce>=_0x9c4cb6[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc266ce-=_0x9c4cb6[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ce2e3+=_0x9c4cb6[_0xc266ce];}return _0x3ce2e3;}function _0x454fa4(){const _0x390ed2=_0x3fd898[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e]));if(0x3!=_0x390ed2[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2403b0(_0x390ed2[0x1]);function _0x2403b0(_0x3aa93f){const _0x42e24a=_0x16c556(_0x3aa93f);return _0x42e24a&&_0x274cb1()?_0x42e24a:null;function _0x274cb1(){const _0x3992e3=_0x42e24a[_0x42ceec([0x6a,0x74,0x69])],_0x56f455=window[_0x42ceec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3992e3[_0x42ceec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3992e3[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x170f21={..._0x42e24a,[_0x42ceec([0x6a,0x74,0x69])]:_0x3992e3[_0x42ceec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3992e3[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x170f21[_0x42ceec([0x76,0x63])],_0x3a14f7(_0x170f21)==_0x56f455;}}}async function _0x1b6216(){let _0x3704d2=!0x0;try{const _0x4dd036=_0x3fd898[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])](_0x42ceec([0x2e])),[_0x2e73f1,_0x3c3473,_0xf4d7bb]=_0x4dd036;return _0x512e99(_0x2e73f1),await _0x131c0c(_0x2e73f1,_0x3c3473,_0xf4d7bb),_0x3704d2;}catch{return!0x1;}function _0x512e99(_0x290f44){const _0x506333=_0x16c556(_0x290f44);_0x506333&&_0x506333[_0x42ceec([0x61,0x6c,0x67])]==_0x42ceec([0x45,0x53,0x32,0x35,0x36])||(_0x3704d2=!0x1);}async function _0x131c0c(_0x59918f,_0xb261e8,_0x45f42d){const _0xaa23e8=window[_0x42ceec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42ceec([0x66,0x72,0x6f,0x6d])](_0x1daca9(_0x45f42d),_0x2fc713=>_0x2fc713[_0x42ceec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e8a43=new window[(_0x42ceec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42ceec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59918f+_0x42ceec([0x2e])+_0xb261e8),_0x7cef94=window[_0x42ceec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42ceec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7cef94)return;const _0x4cdbe9=await _0x7cef94[_0x42ceec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42ceec([0x6a,0x77,0x6b]),_0x390183,{[_0x42ceec([0x6e,0x61,0x6d,0x65])]:_0x42ceec([0x45,0x43,0x44,0x53,0x41]),[_0x42ceec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42ceec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42ceec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7cef94[_0x42ceec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42ceec([0x6e,0x61,0x6d,0x65])]:_0x42ceec([0x45,0x43,0x44,0x53,0x41]),[_0x42ceec([0x68,0x61,0x73,0x68])]:{[_0x42ceec([0x6e,0x61,0x6d,0x65])]:_0x42ceec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4cdbe9,_0xaa23e8,_0x3e8a43)||(_0x3704d2=!0x1);}}function _0x16c556(_0x5eaac1){return _0x5eaac1[_0x42ceec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42ceec([0x65,0x79]))?JSON[_0x42ceec([0x70,0x61,0x72,0x73,0x65])](_0x1daca9(_0x5eaac1)):null;}function _0x1daca9(_0x3670c9){return window[_0x42ceec([0x61,0x74,0x6f,0x62])](_0x3670c9[_0x42ceec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42ceec([0x2b]))[_0x42ceec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42ceec([0x2f])));}function _0x3a14f7(_0x3f55d4){let _0x86ebb7=0x1505;function _0x4b3119(_0x22db2b){for(let _0x283500=0x0;_0x283500<_0x22db2b[_0x42ceec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x283500++){const _0x357578=_0x22db2b[_0x42ceec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x283500);_0x86ebb7=(_0x86ebb7<<0x5)+_0x86ebb7+_0x357578,_0x86ebb7&=_0x86ebb7;}}function _0x2dfd63(_0x58183a){Array[_0x42ceec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x58183a)?_0x58183a[_0x42ceec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2dfd63):_0x58183a&&typeof _0x58183a==_0x42ceec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42ceec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x58183a)[_0x42ceec([0x73,0x6f,0x72,0x74])]()[_0x42ceec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x232b9b,_0x55da90])=>{_0x4b3119(_0x232b9b),_0x2dfd63(_0x55da90);}):_0x4b3119(window[_0x42ceec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x58183a));}return _0x2dfd63(_0x3f55d4),_0x86ebb7>>>0x0;}function _0xe92941(_0x1a79ce){return _0x1a79ce[_0x42ceec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42ceec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42ceec([0x30]));}function _0x5ce67a(_0x11ec50){return _0x11ec50[_0x42ceec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42ceec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42ceec([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d947a(_0x26bb06){return _0x586245[_0x42ceec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42ceec([0x68,0x61,0x73])](_0x26bb06);}function _0x4e4dec(_0xc34ebe){return _0x586245[_0x42ceec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42ceec([0x67,0x65,0x74])](_0xc34ebe);}function _0x5d7225(){}function _0x42ceec(_0xd01e46){return _0xd01e46['map'](_0x16dc7b=>String['fromCharCode'](_0x16dc7b))['join']('');}_0x54fadf(await _0x40169d());}(this);}set['adapter'](_0x26b562){if(this['_adapter'])throw new _0x840840('track-changes-adapter-already-set',this);this['_adapter']=_0x26b562;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3cc5eb=!0x1,toJSON:_0x44e0bb=!0x1}={}){const _0x2251fa=[];for(const _0x4d9631 of this['_suggestions']['values']())_0x3cc5eb&&!_0x4d9631['isInContent']||_0x2251fa['push'](_0x4d9631);return _0x44e0bb?_0x2251fa['map'](_0x346e81=>_0x346e81['toJSON']()):_0x2251fa;}['getSuggestion'](_0xdb1645){const _0x2fc52f=this['_suggestions']['get'](_0xdb1645);if(!_0x2fc52f)throw new _0x840840('track-changes-suggestion-not-found',this);return _0x2fc52f;}['hasSuggestion'](_0x1040de){return this['_suggestions']['has'](_0x1040de);}['addSuggestionData'](_0x422bf0){const {authorId:_0x5b1639,id:_0x482d04,originalSuggestionId:_0xe3fd45,attributes:_0x3aa408}=_0x422bf0,[_0x3674c7,_0x5266f8]=_0x422bf0['type']['split'](':'),_0x5fe1e3=this['_suggestions']['get'](_0x482d04)||this['_createSuggestion'](_0x3674c7,_0x5266f8,_0x482d04,_0x5b1639,_0x3aa408,_0xe3fd45);if(this['_addThreadToSuggestion'](_0x5fe1e3),this['_checkSuggestionCorrectness'](_0x5fe1e3,_0x3674c7,_0x5266f8||null,_0x5b1639),_0x5fe1e3['createdAt']=_0x422bf0['createdAt'],_0x5fe1e3['_isDataLoaded']=!0x0,_0x3aa408&&_0x3aa408['@external']){const _0x26372b=_0x3aa408['@external'],_0x5d2365=this['_getExternalAuthor'](_0x26372b['authorName']);_0x5fe1e3['authoredAt']=_0x26372b['createdAt'],_0x5fe1e3['author']=_0x5d2365,_0x5fe1e3['isExternal']=!0x0;}else _0x5fe1e3['authoredAt']=_0x422bf0['createdAt'];switch(_0x422bf0['data']&&(_0x5fe1e3['data']=_0x422bf0['data']),_0x422bf0['attributes']&&(_0x5fe1e3['attributes']=_0x422bf0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5fe1e3['_saved']=!0x0),this['_suggestionState']['get'](_0x5fe1e3)){case'notReady':this['_suggestionState']['set'](_0x5fe1e3,'dataReady');break;case'markerReady':_0x5fe1e3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5fe1e3])),this['_refreshSuggestionsChain'](new Set([_0x5fe1e3])),this['_suggestionState']['set'](_0x5fe1e3,'ready'),this['fire']('suggestionLoaded',_0x5fe1e3)):this['_suggestionState']['set'](_0x5fe1e3,'removed');}return _0x5fe1e3;}['acceptSuggestion'](_0x2c2951){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b148a of _0x2c2951['getAllAdjacentSuggestions']())_0x5b148a['accept']();});});}['discardSuggestion'](_0x23835d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x30d6b9 of _0x23835d['getAllAdjacentSuggestions']())_0x30d6b9['discard']();});});}['enableCommand'](_0x58a8de,_0x73c6){const _0x4ccbc7=this['editor']['commands']['get'](_0x58a8de);if(!_0x4ccbc7)throw new _0x840840('track-changes-command-not-found',this,{'commandName':_0x58a8de});if(this['_enabledCommands']['has'](_0x4ccbc7))throw new _0x840840('track-changes-enable-command-twice',this,{'commandName':_0x58a8de});this['_enabledCommands']['add'](_0x4ccbc7),_0x73c6&&_0x4ccbc7['on']('execute',(_0xb0dce8,_0x46a38e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x46a38e['length']>0x0&&_0x46a38e[_0x46a38e['length']-0x1]&&_0x46a38e[_0x46a38e['length']-0x1]['forceDefaultExecution']?_0x46a38e['pop']():(_0xb0dce8['return']=_0x73c6((..._0xdb9cdf)=>_0x4ccbc7['execute'](..._0xdb9cdf,{'forceDefaultExecution':!0x0}),..._0x46a38e),_0xb0dce8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3869fd){let _0x474a93,_0x251546;const _0x175109=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x474a93=_0x3869fd();}catch(_0x49bf94){_0x251546=_0x49bf94;}return _0x175109||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x251546&&_0x840840['rethrowUnexpectedError'](_0x251546,this),_0x474a93;}['markInsertion'](_0x5b8b6a,_0xe25219=null,_0x533314={}){if(_0x5b8b6a['isCollapsed'])return null;const _0x3b910b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x533314['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x12da31,meta:_0x1a46f2}of this['_findSuggestions'](_0x5b8b6a,'insertion'))if(_0x1a46f2['isOwn']){if(!_0x1a46f2['isNextTo']){if(_0x1a46f2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x12da31,_0x533314))continue;return _0x12da31;}if(Xt(_0x12da31,_0x533314))return _0x12da31;this['_breakSuggestionMarker'](_0x12da31,_0x5b8b6a['start'],_0x5b8b6a['end']);break;}if(_0xe25219==_0x12da31['subType']&&Xt(_0x12da31,_0x533314)){const _0x58cb06=_0x12da31['getFirstRange']();return _0x58cb06['start']['isEqual'](_0x5b8b6a['end'])?this['_setSuggestionRange'](_0x12da31,this['_model']['createRange'](_0x5b8b6a['start'],_0x58cb06['end'])):this['_setSuggestionRange'](_0x12da31,this['_model']['createRange'](_0x58cb06['start'],_0x5b8b6a['end'])),_0x12da31;}}const _0x3669d5=_0x1526c3(),_0x3ceaee=_0x3b910b['id'],_0x449813=_0xe25219?'insertion:'+_0xe25219:'insertion',_0x20dd02=this['_setSuggestionData']({'id':_0x3669d5,'type':_0x449813,'createdAt':new Date(),'authorId':_0x3ceaee,'attributes':_0x533314});return this['_addSuggestionMarker'](_0x449813,_0x3669d5,_0x3ceaee,_0x5b8b6a),_0x20dd02;}['markMultiRangeInsertion'](_0x4c9cbe,_0x44d428='multi',_0x5f2848={}){const _0x422823=this['editor']['plugins']['get']('Users')['me'],_0x5241b5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x44d428,'join');this['_trackingSessionId']&&(_0x5f2848['trackingSessionId']=this['_trackingSessionId']);for(const _0x5f1d19 of this['getSuggestions']())if(_0x5f1d19['author']['id']==_0x422823['id']&&'insertion'==_0x5f1d19['type']&&_0x5f1d19['subType']==_0x44d428&&Xt(_0x5f1d19,_0x5f2848)&&(_0x5241b5(_0x5f1d19['getRanges'](),_0x4c9cbe)||_0x5241b5(_0x4c9cbe,_0x5f1d19['getRanges']()))){for(const _0x2c74f1 of _0x4c9cbe)_0x5f1d19['addRange'](_0x2c74f1);return _0x5f1d19;}for(const {suggestion:_0x24c977,meta:_0x16dadb}of this['_findSuggestions'](_0x4c9cbe,'insertion')){if(!_0x16dadb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x16dadb['containsRangeInObject'])continue;if(!Xt(_0x24c977,_0x5f2848))continue;let _0x37a8ee=!0x0;for(const _0x53ef5e of _0x24c977['getRanges']())for(const _0xfd2c9f of _0x4c9cbe)if(!_0x53ef5e['containsRange'](_0xfd2c9f)){_0x37a8ee=!0x1;break;}if(_0x37a8ee)return _0x24c977;}const _0x2d380f=_0x1526c3(),_0x483978=_0x422823['id'],_0xc9e078='insertion:'+_0x44d428,_0x372af7=this['_setSuggestionData']({'id':_0x2d380f,'type':_0xc9e078,'createdAt':new Date(),'authorId':_0x483978,'attributes':_0x5f2848});for(const _0x261596 of _0x4c9cbe)this['_addSuggestionMarker'](_0xc9e078,_0x2d380f,_0x483978,_0x261596,o['getMultiRangeId']());return _0x372af7;}['markInlineFormat'](_0x447434,_0xa843fd,_0x29e97b=null,_0x169bb8={}){if(_0x29e97b=_0x29e97b||Kt(_0xa843fd),_0x447434['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x169bb8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5d80a2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29e97b,'accept');return this['forceDefaultExecution'](()=>_0x5d80a2([_0x447434],_0xa843fd,_0x169bb8)),null;}const _0x459eb4=this['editor']['plugins']['get']('Users')['me'],_0xc795ea=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1fe680,meta:_0x2be6fd}of this['_findSuggestions'](_0x447434,'insertion'))_0x2be6fd['isOwn']&&!_0x2be6fd['isInsideObject']&&_0xc795ea['push'](..._0x1fe680['getRanges']());}const _0x319c9d=function(_0x503af6,_0x279eb7){const _0x474b9b=[];for(const _0x5d8930 of _0x279eb7){const _0x215d72=_0x503af6['getIntersection'](_0x5d8930);_0x215d72&&_0x474b9b['push'](_0x215d72);}return _0x474b9b;}(_0x447434,_0xc795ea),_0x50fbfb=function(_0x34bed2,_0x4030ee){const _0x522537=[_0x34bed2];for(const _0x38b7b1 of _0x4030ee){let _0x10ab5d=0x0;for(;_0x10ab5d<_0x522537['length'];){const _0x1df3b0=_0x522537[_0x10ab5d]['getDifference'](_0x38b7b1);_0x522537['splice'](_0x10ab5d,0x1,..._0x1df3b0),_0x10ab5d+=_0x1df3b0['length'];}}return _0x522537;}(_0x447434,_0xc795ea);_0x319c9d['length']&&this['_model']['change'](()=>{for(const _0x5c9907 of _0x319c9d){const _0x3042f0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29e97b,'accept');this['forceDefaultExecution'](()=>_0x3042f0([_0x5c9907],_0xa843fd,_0x169bb8));}});for(const _0x4def8d of _0x50fbfb){let _0x103a94=null,_0x3603d2=_0x4def8d['start'],_0x5e97de=_0x4def8d['end'];for(const {suggestion:_0x53e37b,meta:_0xc4e7bd}of this['_findSuggestions'](_0x4def8d,'formatInline')){if(!_0xc4e7bd['isOwn'])continue;if(_0x53e37b['subType']!=_0x29e97b)continue;if(!Xt(_0x53e37b,_0x169bb8))continue;const _0x3eac12=_0x53e37b['getFirstRange']();if(_0x3eac12['containsRange'](_0x4def8d,!0x0))return null;_0x3603d2=_0x3603d2['isBefore'](_0x3eac12['start'])?_0x3603d2:_0x3eac12['start'],_0x5e97de=_0x5e97de['isAfter'](_0x3eac12['end'])?_0x5e97de:_0x3eac12['end'],_0x103a94?_0x3eac12['start']['isBefore'](_0x103a94['getFirstRange']()['start'])?(_0x103a94['removeMarkers'](),_0x103a94=_0x53e37b):_0x53e37b['removeMarkers']():_0x103a94=_0x53e37b;}const _0x3eb5e8=this['_model']['createRange'](_0x3603d2,_0x5e97de);if(_0x103a94)this['_setSuggestionRange'](_0x103a94,_0x3eb5e8);else{const _0x360c47=_0x1526c3(),_0x900fac=_0x459eb4['id'];this['_setSuggestionData']({'id':_0x360c47,'type':'formatInline:'+_0x29e97b,'data':_0xa843fd,'createdAt':new Date(),'authorId':_0x900fac,'attributes':_0x169bb8}),this['_addSuggestionMarker']('formatInline:'+_0x29e97b,_0x360c47,_0x900fac,_0x3eb5e8);}}return null;}['markBlockFormat'](_0x2de10c,_0x434f31,_0x507914=[],_0x1d66e3=null,_0x1f7b66={}){_0x434f31['formatGroupId']||(_0x434f31['formatGroupId']=_0x434f31['commandName']),_0x434f31['multipleBlocks']=_0x2de10c['is']('range'),_0x1d66e3=_0x1d66e3||Kt(_0x434f31);const _0x137751=_0x507914['map'](_0x1d7954=>zt(_0x1d7954,this['_model'])),_0x20f788=_0x2de10c['is']('range')?_0x2de10c:zt(_0x2de10c,this['_model']);if(this['_trackingSessionId']&&(_0x1f7b66['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x245973=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d66e3,'accept');return this['forceDefaultExecution'](()=>_0x245973([_0x20f788],_0x434f31,_0x1f7b66)),null;}_0x137751['push'](_0x20f788);let _0x3b7ecf=!0x0;for(const _0x2b502b of _0x137751)if(!this['_rangeIsInLocalUserInsertion'](_0x2b502b)){_0x3b7ecf=!0x1;break;}if(_0x3b7ecf&&'always'!==this['_trackFormatChanges']){const _0x2feaf6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d66e3,'accept');return this['forceDefaultExecution'](()=>_0x2feaf6([_0x20f788],_0x434f31,_0x1f7b66)),null;}let _0x1e88cf=null,_0x2f9822=_0x20f788['start'],_0x3f99b6=_0x20f788['end'];for(const {suggestion:_0x1d4e68,meta:_0x2fbbba}of this['_findSuggestions'](_0x20f788,'formatBlock')){if(!_0x2fbbba['isOwn'])continue;if(_0x2fbbba['isNextTo']||_0x2fbbba['containsRangeInObject']||_0x2fbbba['isInsideObject'])continue;if(_0x1d4e68['data']['formatGroupId']!=_0x434f31['formatGroupId'])continue;if(!Xt(_0x1d4e68,_0x1f7b66))continue;const _0x1647e1=_0x1d4e68['getFirstRange']();if(_0x1d4e68['subType']==_0x1d66e3){if(_0x1647e1['containsRange'](_0x20f788,!0x0))return null;_0x2f9822=_0x2f9822['isBefore'](_0x1647e1['start'])?_0x2f9822:_0x1647e1['start'],_0x3f99b6=_0x3f99b6['isAfter'](_0x1647e1['end'])?_0x3f99b6:_0x1647e1['end'],_0x1e88cf?_0x1647e1['start']['isBefore'](_0x1e88cf['getFirstRange']()['start'])?(_0x1e88cf['removeMarkers'](),_0x1e88cf=_0x1d4e68):_0x1d4e68['removeMarkers']():_0x1e88cf=_0x1d4e68;}else{const _0x10d66b=_0x20f788['getIntersection'](_0x1647e1);this['_cutOutSuggestionMarker'](_0x1d4e68,_0x10d66b);}}const _0x4cb935=this['editor']['plugins']['get']('Users')['me'],_0x27ef64=_0x1526c3(),_0xe5bb92=_0x4cb935['id'];if(_0x1e88cf)return this['_setSuggestionRange'](_0x1e88cf,this['_model']['createRange'](_0x2f9822,_0x3f99b6)),_0x1e88cf;{const _0x172e07=this['_setSuggestionData']({'id':_0x27ef64,'type':'formatBlock:'+_0x1d66e3,'data':_0x434f31,'createdAt':new Date(),'authorId':_0xe5bb92,'attributes':_0x1f7b66});return this['_addSuggestionMarker']('formatBlock:'+_0x1d66e3,_0x27ef64,_0xe5bb92,this['_model']['createRange'](_0x2f9822,_0x3f99b6)),_0x172e07;}}['markMultiRangeBlockFormat'](_0x9dbb01,_0x2bd024,_0x4c8982=[],_0x521cf5=null,_0x3817db={}){_0x2bd024['formatGroupId']||(_0x2bd024['formatGroupId']=_0x2bd024['commandName']);const _0x185de1=_0x9dbb01[0x0];_0x2bd024['multipleBlocks']=_0x185de1['is']('range'),_0x521cf5=_0x521cf5||Kt(_0x2bd024);const _0x39d277=_0x4c8982['map'](_0x451da2=>zt(_0x451da2,this['_model'])),_0xc49b59=_0x185de1['is']('range')?_0x9dbb01:_0x9dbb01['map'](_0x4fcf61=>zt(_0x4fcf61,this['_model']));if(this['_trackingSessionId']&&(_0x3817db['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1b8ce5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521cf5,'accept');return this['forceDefaultExecution'](()=>_0x1b8ce5(_0xc49b59,_0x2bd024,_0x3817db)),null;}_0x39d277['push'](..._0xc49b59);let _0x58349c=!0x0;for(const _0x217364 of _0x39d277)if(!this['_rangeIsInLocalUserInsertion'](_0x217364)){_0x58349c=!0x1;break;}if(_0x58349c&&'always'!==this['_trackFormatChanges']){const _0x2f81f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521cf5,'accept');return this['forceDefaultExecution'](()=>_0x2f81f7(_0xc49b59,_0x2bd024,_0x3817db)),null;}const _0x23edfa=this['editor']['plugins']['get']('Users')['me'];for(const _0x7f10b3 of this['getSuggestions']()){if(_0x7f10b3['author']['id']!=_0x23edfa['id'])continue;if('formatBlock'!=_0x7f10b3['type']||_0x7f10b3['data']['formatGroupId']!=_0x2bd024['formatGroupId'])continue;if(!Xt(_0x7f10b3,_0x3817db))continue;const _0xd2e32a=_0x7f10b3['subType']==_0x521cf5;for(let _0x252810=0x0;_0x252810<_0xc49b59['length'];_0x252810++){const _0x1c3e98=_0xc49b59[_0x252810];for(const _0x4096a7 of _0x7f10b3['getMarkers']()){const _0x198d95=_0x4096a7['getRange']();if(_0x1c3e98['isEqual'](_0x198d95)){_0xd2e32a?(_0xc49b59['splice'](_0x252810,0x1),_0x252810--):_0x7f10b3['removeMarker'](_0x4096a7['name']);break;}}}}if(0x0==_0xc49b59['length'])return null;const _0x3186ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x521cf5,'join');for(const _0x11f557 of this['getSuggestions']())if(_0x11f557['author']['id']==_0x23edfa['id']&&'formatBlock'==_0x11f557['type']&&_0x11f557['data']['formatGroupId']==_0x2bd024['formatGroupId']&&_0x11f557['subType']==_0x521cf5&&Xt(_0x11f557,_0x3817db)&&(_0x3186ec(_0x11f557['getRanges'](),_0xc49b59)||_0x3186ec(_0xc49b59,_0x11f557['getRanges']()))){for(const _0x386839 of _0xc49b59)_0x11f557['addRange'](_0x386839);return _0x11f557;}const _0x433de9=_0x1526c3(),_0x1e3b52=_0x23edfa['id'],_0xbe0226='formatBlock:'+_0x521cf5,_0x2b4d2b=this['_setSuggestionData']({'id':_0x433de9,'type':_0xbe0226,'data':_0x2bd024,'createdAt':new Date(),'authorId':_0x1e3b52,'attributes':_0x3817db});for(const _0x27698d of _0xc49b59)this['_addSuggestionMarker'](_0xbe0226,_0x433de9,_0x1e3b52,_0x27698d,o['getMultiRangeId']());return _0x2b4d2b;}['markDeletion'](_0x565518,_0x12a037=null,_0x31a007={}){if(_0x565518['isCollapsed'])return null;const _0x1de17f=this['editor']['plugins']['get']('Users')['me'],_0x34526c=new _0x34c04c(_0x565518['start'],_0x565518['end']);this['_trackingSessionId']&&(_0x31a007['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x438a5e,meta:_0x5eea78}of this['_findSuggestions'](_0x34526c,'insertion'))if(_0x5eea78['isOwn']&&!_0x5eea78['isNextTo']){if(_0x438a5e['isMultiRange']){const _0x14816c=_0x438a5e['getRanges']()['filter'](_0x13875b=>'$graveyard'!=_0x13875b['root']['rootName']);_0x14816c['every'](_0x42eded=>_0x34526c['containsRange'](_0x42eded,!0x0))&&_0x438a5e['discard']();if(_0x14816c['some'](_0x54d803=>_0x54d803['containsRange'](_0x34526c,!0x0))){const _0x1a4723=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x12a037,'accept');return this['forceDefaultExecution'](()=>_0x1a4723([_0x34526c],null,_0x31a007)),null;}}else{const _0x53ff94=_0x34526c['getIntersection'](_0x438a5e['getFirstRange']());null!==_0x53ff94&&_0x438a5e['_onDiscard']([_0x53ff94],null,_0x31a007);}}if(_0x34526c['detach'](),_0x34526c['isCollapsed']||'$graveyard'==_0x34526c['root']['rootName'])return null;let _0x28e8a2=null,_0x509e5a=_0x34526c['start'],_0x4f0e79=_0x34526c['end'];const _0x5211d2=this['_findSuggestions'](_0x34526c,'deletion');for(const {suggestion:_0x10803c,meta:_0x1859ca}of _0x5211d2){const _0xae0d5c=this['_model']['createRange'](_0x509e5a,_0x4f0e79);if(_0x1859ca['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1859ca['containsRangeInObject']&&!_0x1859ca['isInsideObject'])){if(_0x10803c['isMultiRange']){if(!Xt(_0x10803c,_0x31a007))continue;let _0x19307b=!0x0;for(const _0x3730df of _0x10803c['getRanges']()){if(_0x3730df['containsRange'](_0xae0d5c,!0x0))return _0x10803c;_0xae0d5c['containsRange'](_0x3730df)||(_0x19307b=!0x1);}_0x19307b&&_0x10803c['discard']();}else{const _0x1b534b=_0x10803c['getFirstRange']();if(_0x1b534b['containsRange'](_0xae0d5c,!0x0))return _0x10803c;if(!Xt(_0x10803c,_0x31a007)){_0xae0d5c['containsRange'](_0x1b534b)?_0x10803c['removeMarkers']():_0x1b534b['containsPosition'](_0x509e5a)?_0x509e5a=_0x1b534b['end']:_0x1b534b['containsPosition'](_0x4f0e79)&&(_0x4f0e79=_0x1b534b['start']);continue;}_0x509e5a=_0x509e5a['isBefore'](_0x1b534b['start'])?_0x509e5a:_0x1b534b['start'],_0x4f0e79=_0x4f0e79['isAfter'](_0x1b534b['end'])?_0x4f0e79:_0x1b534b['end'],_0x31a007=Object['assign']({},_0x10803c['attributes']),_0x28e8a2?_0x1b534b['start']['isBefore'](_0x28e8a2['getFirstRange']()['start'])?(_0x28e8a2['removeMarkers'](),_0x28e8a2=_0x10803c):_0x10803c['removeMarkers']():_0x28e8a2=_0x10803c;}}}if(_0x28e8a2)return this['_setSuggestionRange'](_0x28e8a2,this['_model']['createRange'](_0x509e5a,_0x4f0e79)),_0x28e8a2;{const _0x5a45b2=_0x1526c3(),_0x471ecd=this['_model']['createRange'](_0x509e5a,_0x4f0e79),_0x5a4f96=_0x1de17f['id'],_0x4c3a39=_0x12a037?'deletion:'+_0x12a037:'deletion',_0x535f24=this['_setSuggestionData']({'id':_0x5a45b2,'type':_0x4c3a39,'createdAt':new Date(),'authorId':_0x5a4f96,'attributes':_0x31a007});return this['_addSuggestionMarker'](_0x4c3a39,_0x5a45b2,_0x5a4f96,_0x471ecd),_0x535f24;}}['markMultiRangeDeletion'](_0x29f5da,_0xc4f966='multi',_0x2c2aac={}){const _0x6c39ba=this['editor']['plugins']['get']('Users')['me'],_0x2d498f=_0x29f5da['map'](_0x27c290=>new _0x34c04c(_0x27c290['start'],_0x27c290['end'])),_0x508f41=new Set();this['_trackingSessionId']&&(_0x2c2aac['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x290570,meta:_0x1ab9c7}of this['_findSuggestions'](_0x2d498f,'insertion'))_0x1ab9c7['isOwn']&&!_0x1ab9c7['isNextTo']&&_0x508f41['add'](_0x290570);for(const _0x4897d2 of _0x508f41)if(_0x4897d2['isMultiRange']){const _0x2a3824=_0x4897d2['getRanges']();(!_0x4897d2['attributes']||!_0x4897d2['attributes']['skipNestingCheck'])&&(_0x2a3824['every'](_0x27c6cf=>_0x2d498f['some'](_0x4f334a=>_0x4f334a['containsRange'](_0x27c6cf,!0x0)))&&_0x4897d2['discard']());if(_0x2d498f['every'](_0x5517ad=>_0x2a3824['some'](_0x540225=>_0x540225['containsRange'](_0x5517ad,!0x0)))){const _0x1c8298=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc4f966,'accept');return this['forceDefaultExecution'](()=>_0x1c8298(_0x29f5da,null,_0x2c2aac)),null;}}else{const _0x19956e=_0x4897d2['getFirstRange']();_0x2d498f['some'](_0x3c019e=>_0x3c019e['containsRange'](_0x19956e,!0x0))&&_0x4897d2['discard']();if(_0x2d498f['every'](_0x356cd9=>_0x19956e['containsRange'](_0x356cd9,!0x0))){const _0x1e981d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc4f966,'accept');return this['forceDefaultExecution'](()=>_0x1e981d(_0x2d498f,null,_0x2c2aac)),null;}}const _0x59ae1f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc4f966,'join');let _0x1fe9a8=null;for(const _0x170b03 of this['getSuggestions']())if(_0x170b03['author']['id']==_0x6c39ba['id']&&_0x170b03['isInContent']&&'deletion'==_0x170b03['type']&&_0x170b03['subType']==_0xc4f966&&Xt(_0x170b03,_0x2c2aac)&&(_0x59ae1f(_0x170b03['getRanges'](),_0x2d498f)||_0x59ae1f(_0x2d498f,_0x170b03['getRanges']()))){if(_0x1fe9a8){if(_0x170b03['commentThread']&&_0x170b03['commentThread']['length'])continue;for(const _0x586b63 of _0x170b03['getRanges']())_0x1fe9a8['isIntersectingWithRange'](_0x586b63)||_0x1fe9a8['addRange'](_0x586b63);_0x170b03['removeMarkers']();}else{_0x1fe9a8=_0x170b03;for(const _0x349d04 of _0x2d498f)_0x170b03['isIntersectingWithRange'](_0x349d04)||_0x170b03['addRange'](_0x349d04);}}if(_0x1fe9a8)return _0x1fe9a8;_0x508f41['clear']();for(const {suggestion:_0x12aa1e,meta:_0x34534c}of this['_findSuggestions'](_0x2d498f,'deletion'))_0x34534c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x34534c['containsRangeInObject']&&!_0x34534c['isInsideObject'])&&Xt(_0x12aa1e,_0x2c2aac)&&_0x508f41['add'](_0x12aa1e);for(const _0x300506 of _0x508f41){const _0x470d62=_0x300506['getRanges']();if(!_0x2c2aac||!_0x2c2aac['skipNestingCheck']){if(_0x2d498f['every'](_0x523a78=>_0x470d62['some'](_0x4f1caf=>_0x4f1caf['containsRange'](_0x523a78,!0x0))))return _0x300506;}(!_0x300506['attributes']||!_0x300506['attributes']['skipNestingCheck'])&&(_0x470d62['every'](_0x55aa55=>_0x2d498f['some'](_0x484a4f=>_0x484a4f['containsRange'](_0x55aa55,!0x0)))&&_0x300506['discard']());}const _0x1a95aa=_0x1526c3(),_0x37dc8e=_0x6c39ba['id'],_0x437f21='deletion:'+_0xc4f966,_0x307c38=this['_setSuggestionData']({'id':_0x1a95aa,'type':_0x437f21,'createdAt':new Date(),'authorId':_0x37dc8e,'attributes':_0x2c2aac});for(const _0x39e738 of _0x2d498f)_0x39e738['detach'](),_0x39e738['isCollapsed']||'$graveyard'==_0x39e738['root']['rootName']||this['_addSuggestionMarker'](_0x437f21,_0x1a95aa,_0x37dc8e,_0x39e738,o['getMultiRangeId']());return _0x307c38;}['markAttributeChange'](_0x1e7b81,_0x40b2fd,_0x3b6047,_0x111f04,_0x19fe48){if(_0x1e7b81['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x566dd5=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ce86f=Array['from'](this['_suggestions']['values']())['filter'](_0x2f4f6a=>'attribute'==_0x2f4f6a['type']&&_0x2f4f6a['data']['key']==_0x40b2fd&&_0x2f4f6a['isIntersectingWithRange'](_0x1e7b81));if(this['_trackingSessionId']&&(_0x19fe48['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x51b2e1=this['_findSuggestions'](_0x1e7b81,'insertion')['filter'](({meta:_0x4b1a91})=>_0x4b1a91['isOwn']&&!_0x4b1a91['isInsideObject']&&!_0x4b1a91['isNextTo'])['map'](({suggestion:_0x288b96})=>_0x288b96);_0x5ce86f['unshift'](..._0x51b2e1);}const _0x5c4156=new Map([[_0x1e7b81,_0x3b6047]]);for(const _0x1c546e of _0x5ce86f){const _0xf00b2d='attribute'==_0x1c546e['type']?_0x1c546e['data']['oldValue']:void 0x0,_0x5ccaa7=_0x1c546e['getFirstRange'](),_0x4a07c2=Array['from'](_0x5c4156['keys']())['find'](_0x53b13b=>_0x53b13b['isIntersecting'](_0x5ccaa7));if(!_0x4a07c2)continue;const _0x3991e6=_0x4a07c2['getDifference'](_0x5ccaa7);this['_isBlockAttribute'](_0x40b2fd)&&'insertion'==_0x1c546e['type']&&0x0!=_0x3991e6['length']||(_0x5c4156['delete'](_0x4a07c2),_0x3991e6['forEach'](_0x2a7b95=>{_0x5c4156['set'](_0x2a7b95,_0x3b6047);}),'insertion'!=_0x1c546e['type']&&_0xf00b2d!=_0x111f04&&_0x5c4156['set'](_0x4a07c2['getIntersection'](_0x5ccaa7),_0xf00b2d));}const _0x46a355=[];for(const [_0x3e0938,_0x58508d]of _0x5c4156){const _0x544b25=_0x1526c3(),_0x1f165b={'key':_0x40b2fd,'oldValue':_0x58508d,'newValue':_0x111f04};_0x40b2fd['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':_0x40b2fd});const _0x385df6=('attribute:'+(_0x40b2fd+'|'+Kt({'newValue':_0x111f04})))['substring'](0x0,0x3c),_0x433c79=this['_setSuggestionData']({'id':_0x544b25,'type':_0x385df6,'data':_0x1f165b,'createdAt':new Date(),'authorId':_0x566dd5,'attributes':_0x19fe48});_0x46a355['push'](_0x433c79),this['_addSuggestionMarker'](_0x385df6,_0x544b25,_0x566dd5,_0x3e0938);}return _0x46a355;}['enableDefaultAttributesIntegration'](_0x49fa09){this['enableCommand'](_0x49fa09,(_0x19d03b,..._0x16b803)=>{this['_recordAttributeChanges'](()=>{_0x19d03b(..._0x16b803);});});}['registerBlockAttribute'](_0x239b37){this['_blockAttributeKeys']['add'](_0x239b37);}['registerInlineAttribute'](_0xe0a7c2){this['_inlineAttributeKeys']['add'](_0xe0a7c2);}['startTrackingSession'](_0x1b2351){return this['_trackingSessionId']=void 0x0!==_0x1b2351?_0x1b2351:_0x1526c3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x27ea96){return'attribute'==_0x27ea96['type']?_0x27ea96['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1b8530,_0x1053f6){const _0x43ffba=_0x1b8530['getFirstMarker']();this['_model']['change'](_0x3a49fa=>{_0x3a49fa['updateMarker'](_0x43ffba,{'range':_0x1053f6});});}['_addThreadToSuggestion'](_0x123f24){const _0xa4ae6a=_0x123f24['id'],_0x150616=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xa4ae6a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x150616,'threadId':_0xa4ae6a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x547bfa=this['_commentsRepository']['getCommentThread'](_0xa4ae6a);_0x547bfa['unbind']('isRemovable'),_0x547bfa['isRemovable']=!0x1,_0x123f24['commentThread']=_0x547bfa;}['_checkSuggestionCorrectness'](_0xbb5aed,_0x5bc7c8,_0x3c6ebb,_0xaf380a){if(_0xbb5aed['type']!=_0x5bc7c8||_0xbb5aed['subType']!=_0x3c6ebb||_0xbb5aed['creator']['id']!=_0xaf380a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x840840('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x524c6b,_0x4f79d5){const _0x14192e=_0x524c6b['getFirstRange']();if(_0x4f79d5['isEqual'](_0x14192e))_0x524c6b['removeMarkers']();else{if(_0x14192e['containsRange'](_0x4f79d5)){const _0x3514c1=this['_model']['createPositionAt'](_0x4f79d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x524c6b,this['_model']['createRange'](_0x14192e['start'],_0x3514c1));const _0x1597d9=_0x1526c3(),_0x52722a=_0x524c6b['creator']['id'],_0x341bed=_0x524c6b['type']+':'+_0x524c6b['subType'];this['_setSuggestionData']({'id':_0x1597d9,'type':_0x341bed,'createdAt':new Date(),'authorId':_0x52722a,'data':_0x524c6b['data'],'attributes':_0x524c6b['attributes']});const _0x42ef02=this['_model']['createPositionAt'](_0x4f79d5['end']['parent'],'after'),_0x5a51d7=this['_model']['createRange'](_0x42ef02,_0x14192e['end']);this['_addSuggestionMarker'](_0x341bed,_0x1597d9,_0x52722a,_0x5a51d7);}else{if(_0x14192e['containsPosition'](_0x4f79d5['start'])){const _0x3da54c=this['_model']['createPositionAt'](_0x4f79d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x524c6b,this['_model']['createRange'](_0x14192e['start'],_0x3da54c));}else{const _0x4c72ff=this['_model']['createPositionAt'](_0x4f79d5['end']['parent'],'after');this['_setSuggestionRange'](_0x524c6b,this['_model']['createRange'](_0x4c72ff,_0x14192e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x346ea2){for(const {suggestion:_0x4aa38a,meta:_0x39eaf4}of this['_findSuggestions'](_0x346ea2,'insertion')){if(!_0x39eaf4['isOwn'])continue;const _0x4f1130=_0x4aa38a['getRanges']();for(const _0x1caf12 of _0x4f1130)if(!_0x346ea2['getDifference'](_0x1caf12)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x55de52){const _0x486f7c=this['editor']['plugins']['get']('Users')['getUser'](_0x55de52);if(!_0x486f7c)throw new _0x840840('track-changes-user-not-found',this);return _0x486f7c;}['_getExternalAuthor'](_0x383b65){const _0x56b4de=this['editor']['plugins']['get']('Users'),_0x33cff3=_0x3429f2('external:'+_0x383b65),_0x7cd74=_0x56b4de['getUser'](_0x33cff3);return _0x7cd74||_0x56b4de['addUser']({'id':_0x33cff3,'name':_0x383b65});}['_createSuggestion'](_0x4f207b,_0x405a28,_0x13d9c8,_0x4847e7,_0x4c3e33,_0x186cec){const _0x2ed397=this['_getAuthorFromId'](_0x4847e7),_0x45e4a8=this['_suggestionFactory']['buildSuggestion'](_0x4f207b,_0x405a28,_0x13d9c8,_0x2ed397,_0x4c3e33,_0x3883ab=>{this['_updateSuggestionData'](_0x13d9c8,{'attributes':_0x3883ab});const _0x59a4b0=this['getSuggestion'](_0x13d9c8);this['_joinWithAdjacentSuggestions'](new Set([_0x59a4b0])),this['_refreshSuggestionsChain'](new Set([_0x59a4b0]));},_0x186cec);return this['listenTo'](_0x45e4a8,'accept',()=>{this['_updateSuggestionData'](_0x13d9c8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x45e4a8,'discard',()=>{this['_updateSuggestionData'](_0x13d9c8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x13d9c8,_0x45e4a8),this['_suggestionState']['set'](_0x45e4a8,'notReady'),_0x45e4a8;}['_splitMarkerName'](_0x5137c0){const _0x4eae54=_0x5137c0['split'](':');return{'group':_0x4eae54[0x0],'type':_0x4eae54[0x1],'subType':_0x4eae54['length']>=0x5?_0x4eae54[0x2]:null,'id':_0x4eae54['length']<0x5?_0x4eae54[0x2]:_0x4eae54[0x3],'authorId':_0x4eae54['length']<0x5?_0x4eae54[0x3]:_0x4eae54[0x4],'markerCount':0x6==_0x4eae54['length']?_0x4eae54[0x5]:null};}['_breakSuggestionMarker'](_0x5308c8,_0x2c3cb2,_0xaf4aec){const _0x4170b4=_0x5308c8['getFirstRange'](),_0x3234cc=_0x4170b4['start'],_0x449872=_0x4170b4['end'];this['_setSuggestionRange'](_0x5308c8,this['_model']['createRange'](_0x3234cc,_0x2c3cb2));const _0xaf7269=_0x1526c3(),_0xa27ab8=_0x5308c8['creator']['id'],_0x54e8ed=_0x5308c8['type']+(_0x5308c8['subType']?':'+_0x5308c8['subType']:'');this['_setSuggestionData']({'id':_0xaf7269,'type':_0x54e8ed,'createdAt':new Date(),'authorId':_0xa27ab8,'originalSuggestionId':_0x5308c8['_originalSuggestionId']||_0x5308c8['id'],'attributes':_0x5308c8['attributes'],'data':_0x5308c8['data']});const _0x3d603d=this['_getAttributeKey'](_0x5308c8);('formatBlock'==_0x5308c8['type']||_0x3d603d&&this['_isBlockAttribute'](_0x3d603d))&&(_0xaf4aec=this['_model']['createPositionBefore'](_0xaf4aec['parent'])),this['_addSuggestionMarker'](_0x54e8ed,_0xaf7269,_0xa27ab8,this['_model']['createRange'](_0xaf4aec,_0x449872));}['_findSuggestions'](_0x3712e7,_0x324e13=null){const _0x431c02=[],_0x413df4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3712e7)||(_0x3712e7=[_0x3712e7]);for(const _0x1c0078 of this['getSuggestions']()){if(!_0x1c0078['isInContent'])continue;if(_0x324e13&&_0x1c0078['type']!=_0x324e13)continue;let _0x422a88=!0x1;for(const _0x57383c of _0x1c0078['getRanges']()){for(const _0x3bf4e1 of _0x3712e7){const _0x30d32a=_0x3bf4e1['start']['isEqual'](_0x57383c['end'])||_0x3bf4e1['end']['isEqual'](_0x57383c['start']);if(_0x30d32a||_0x3bf4e1['getIntersection'](_0x57383c)){const _0x25d045=_0x3bf4e1['containsRange'](_0x57383c)&&Gt(this['_model']['schema'],_0x57383c['start'],_0x3bf4e1),_0x581792=_0x57383c['containsRange'](_0x3bf4e1)&&Gt(this['_model']['schema'],_0x3bf4e1['start'],_0x57383c);_0x431c02['push']({'suggestion':_0x1c0078,'meta':{'isOwn':_0x413df4==_0x1c0078['author'],'isNextTo':_0x30d32a,'isInsideObject':_0x25d045,'containsRangeInObject':_0x581792}}),_0x422a88=!0x0;break;}}if(_0x422a88)break;}}return _0x431c02;}['_addSuggestionMarker'](_0x40fe3f,_0x5157fe,_0x16b9c6,_0xe07ce7,_0xc3cb91){this['_model']['change'](_0x1a06d5=>{let _0x2092e8='suggestion:'+_0x40fe3f+':'+_0x5157fe+':'+_0x16b9c6;_0xc3cb91&&(_0x2092e8=_0x2092e8+':'+_0xc3cb91),_0x1a06d5['addMarker'](_0x2092e8,{'range':_0xe07ce7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xd95503){const _0x411d29=_0xd95503['previous'],_0x2b410b=_0xd95503['next'];_0xd95503['previous']=null,_0xd95503['next']=null,null!=_0x411d29&&_0x411d29['next']==_0xd95503&&(_0x411d29['next']=_0x2b410b),null!=_0x2b410b&&_0x2b410b['previous']==_0xd95503&&(_0x2b410b['previous']=_0x411d29),'ready'==this['_suggestionState']['get'](_0xd95503)&&(this['_suggestionState']['set'](_0xd95503,'removed'),this['fire']('suggestionUnloaded',_0xd95503,_0x411d29,_0x2b410b));}['_setSuggestionData'](_0x1fb463){const _0x1cd43d=_0x1fb463['id'],_0xc5fd9b=this['addSuggestionData'](_0x1fb463);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x248a5e=this['editor']['plugins']['get']('PendingActions'),_0x3f6fcb=_0xc5fd9b['hasComments'],_0x4bcdf9=_0xc5fd9b['subType']?_0xc5fd9b['type']+':'+_0xc5fd9b['subType']:_0xc5fd9b['type'],_0x1c2c03=this['editor']['locale'],_0x4d2b50=_0x248a5e['add'](c(_0x1c2c03,'PENDING_ACTION_SUGGESTION')),_0x2ba95f={'id':_0x1cd43d,'type':_0x4bcdf9,'hasComments':_0x3f6fcb,'data':_0x1fb463['data']||null,'originalSuggestionId':_0x1fb463['originalSuggestionId']||null,'attributes':_0xc5fd9b['attributes']};this['_adapter']['addSuggestion'](_0x2ba95f)['then'](_0x24a07f=>{_0xc5fd9b['_saved']=!0x0,_0x248a5e['remove'](_0x4d2b50),_0x24a07f&&_0x24a07f['createdAt']&&(this['_suggestions']['get'](_0x1cd43d)['createdAt']=_0x24a07f['createdAt']);})['catch'](_0x352cce=>{throw _0x7bbe75('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xc5fd9b['discard']();}),_0xc5fd9b['stopListening'](),this['_suggestions']['delete'](_0xc5fd9b['id']),this['_suggestionState']['delete'](_0xc5fd9b),_0x352cce;});}return _0xc5fd9b;}['_isBlockAttribute'](_0x3190c3){return this['_blockAttributeKeys']['has'](_0x3190c3);}['_updateSuggestionData'](_0x2ffc43,_0x39d80d){const _0x17423b=this['editor']['plugins']['get']('PendingActions'),_0x1249c3=this['getSuggestion'](_0x2ffc43);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1249c3['_saved']){const _0x264e6b=_0x17423b['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2ffc43,_0x39d80d)['then'](()=>{_0x17423b['remove'](_0x264e6b);});}else _0x1249c3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2ffc43,_0x39d80d);});}}['_getSuggestionData'](_0x3a6707){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x840840('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a6707);}['_handleNewSuggestionMarker'](_0x1c73c8){const {id:_0x5525c6,type:_0x13667b,subType:_0x21acad,authorId:_0x5c1c78}=this['_splitMarkerName'](_0x1c73c8),_0x3f0761=this['_suggestions']['get'](_0x5525c6)||this['_createSuggestion'](_0x13667b,_0x21acad,_0x5525c6,_0x5c1c78,{});switch(this['_checkSuggestionCorrectness'](_0x3f0761,_0x13667b,_0x21acad,_0x5c1c78),this['_suggestionState']['get'](_0x3f0761)){case'notReady':this['_getSuggestionData'](_0x5525c6)['then'](_0x239775=>{let _0x4b0d67=Promise['resolve']();_0x239775['hasComments']&&(_0x4b0d67=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5525c6})),_0x4b0d67['then'](()=>{this['addSuggestionData'](_0x239775)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3f0761,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5525c6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3f0761,'ready'),this['fire']('suggestionLoaded',_0x3f0761);break;case'ready':this['fire']('suggestionChanged',_0x3f0761);}return _0x3f0761['addMarkerName'](_0x1c73c8),_0x3f0761;}['_refreshSuggestionsChain'](_0xc2d73b){const _0x4f9a05=Array['from'](_0xc2d73b),_0x464b0e=_0x4f9a05['filter'](_0x516a21=>'attribute'==_0x516a21['type']);this['_refreshAttributeSuggestionsChain'](_0x464b0e);const _0x1efc6b=_0x4f9a05['filter'](_0x25c30a=>!_0x25c30a['isMultiRange']&&'attribute'!=_0x25c30a['type']),_0x3da19b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49e836=>!_0x49e836['isMultiRange']&&'attribute'!=_0x49e836['type']),_0x517ec8=_0x3da19b['filter'](_0xc55539=>!_0xc2d73b['has'](_0xc55539)),_0x2d06f1=new Map(_0x3da19b['map'](_0x4717c5=>[_0x4717c5,this['_suggestionFactory']['getSuggestionCallback'](_0x4717c5['type'],_0x4717c5['subType'],'chain')])),_0x27dc30=new Map(_0x3da19b['map'](_0x170e9b=>[_0x170e9b,_0x170e9b['getFirstRange']()])),_0x5ca8eb=new Set(),_0x53147e=new Set();for(let _0x180b92=0x0;_0x180b92<_0x1efc6b['length'];_0x180b92++)_0xdde84d(_0x1efc6b[_0x180b92],_0x1efc6b,_0x180b92+0x1);for(let _0x461854=0x0;_0x461854<_0x1efc6b['length'];_0x461854++)_0xdde84d(_0x1efc6b[_0x461854],_0x517ec8,0x0);const _0x488b53=new Set();for(let _0x3c4a32=0x0;_0x3c4a32<_0x1efc6b['length'];_0x3c4a32++){const _0x2812bf=_0x1efc6b[_0x3c4a32];!_0x53147e['has'](_0x2812bf)&&_0x2812bf['previous']&&(_0x488b53['add'](_0x2812bf['previous']),_0x2812bf['previous']['next']===_0x2812bf&&(_0x2812bf['previous']['next']=null),_0x2812bf['previous']=null),!_0x5ca8eb['has'](_0x2812bf)&&_0x2812bf['next']&&(_0x488b53['add'](_0x2812bf['next']),_0x2812bf['next']['previous']===_0x2812bf&&(_0x2812bf['next']['previous']=null),_0x2812bf['next']=null);}function _0xdde84d(_0x53b936,_0x8aa61e,_0x316757){for(let _0x51e15c=_0x316757;_0x51e15c<_0x8aa61e['length'];_0x51e15c++){const _0x3866b5=_0x16f6ed(_0x53b936,_0x8aa61e[_0x51e15c]);_0x3866b5&&(_0x3866b5[0x0]['next']=_0x3866b5[0x1],_0x3866b5[0x1]['previous']=_0x3866b5[0x0],_0x5ca8eb['add'](_0x3866b5[0x0]),_0x53147e['add'](_0x3866b5[0x1]));}}function _0x16f6ed(_0x1b6469,_0x4fc3d2){if(_0x1b6469['author']['id']!==_0x4fc3d2['author']['id'])return null;const _0x3eb7b8=_0x2d06f1['get'](_0x1b6469)(_0x1b6469,_0x4fc3d2,_0x27dc30['get'](_0x1b6469),_0x27dc30['get'](_0x4fc3d2));if(!_0x3eb7b8)return null;return _0x2d06f1['get'](_0x4fc3d2)(_0x1b6469,_0x4fc3d2,_0x27dc30['get'](_0x1b6469),_0x27dc30['get'](_0x4fc3d2))?_0x3eb7b8[0x1]['commentThread']&&_0x3eb7b8[0x1]['commentThread']['length']?null:_0x3eb7b8:null;}_0x488b53['size']&&this['_refreshSuggestionsChain'](_0x488b53);}['_refreshAttributeSuggestionsChain'](_0x6fb0dd){if(0x0==_0x6fb0dd['length'])return;const _0x27de76=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x306975=>'attribute'==_0x306975['type']&&_0x306975['_isDataLoaded']),_0x23432f=[],_0x414f3a=new Map();for(const _0x57b342 of _0x27de76){const _0x1acf9b=_0x3429f2(_0x57b342['attributes']);_0x414f3a['has'](_0x1acf9b)||(_0x414f3a['set'](_0x1acf9b,_0x23432f['length']),_0x23432f['push']([]));const _0x19ce06=_0x414f3a['get'](_0x1acf9b);_0x23432f[_0x19ce06]['push'](_0x57b342);}!(function(){_0x23432f['sort']((_0x2aeec6,_0x57670e)=>{const _0x5ce381=_0x2aeec6[0x0]['createdAt'],_0x40a48a=_0x57670e[0x0]['createdAt'];return _0x5ce381==_0x40a48a?_0x2aeec6[0x0]['attributes']['groupId']<_0x57670e[0x0]['attributes']['groupId']?-0x1:0x1:_0x5ce381<_0x40a48a?-0x1:0x1;});for(const _0x455919 of _0x23432f)_0x455919['sort']((_0x57e488,_0x2154a6)=>_0x57e488['id']<_0x2154a6['id']?-0x1:0x1);}());for(let _0x58fa42=0x0;_0x58fa42<_0x23432f['length'];_0x58fa42++){if(0x0==_0x23432f[_0x58fa42]['length'])continue;const _0xb9ece1=[];for(let _0x4907b3=_0x58fa42+0x1;_0x4907b3<_0x23432f['length'];_0x4907b3++)0x0!=_0x23432f[_0x4907b3]['length']&&_0x358630(_0x23432f[_0x58fa42],_0x23432f[_0x4907b3])&&_0xb9ece1['push'](_0x4907b3);for(const _0x5d8efa of _0xb9ece1)_0x23432f[_0x58fa42]=_0x23432f[_0x58fa42]['concat'](_0x23432f[_0x5d8efa]),_0x23432f[_0x5d8efa]=[];}for(const _0x4c5302 of _0x23432f)for(let _0x10bfa6=0x0;_0x10bfa6<_0x4c5302['length'];_0x10bfa6++){const _0x3be1b0=_0x4c5302[_0x10bfa6+0x1]||null;_0x4c5302[_0x10bfa6]['next']!==_0x3be1b0&&(_0x4c5302[_0x10bfa6]['next']=_0x3be1b0);}for(const _0x2d442f of _0x23432f)for(let _0x34e0e6=0x0;_0x34e0e6<_0x2d442f['length'];_0x34e0e6++){const _0x5816c9=_0x2d442f[_0x34e0e6-0x1]||null;_0x2d442f[_0x34e0e6]['previous']!==_0x5816c9&&(_0x2d442f[_0x34e0e6]['previous']=_0x5816c9);}function _0x358630(_0x549647,_0x3809ce){if(_0x549647[0x0]['attributes']['groupId']!==_0x3809ce[0x0]['attributes']['groupId']&&_0x549647[0x0]['author']!==_0x3809ce[0x0]['author'])return!0x1;if(!function(_0x2fe011,_0x2a36ee){if(!_0x2fe011['hasComments']&&!_0x2a36ee['hasComments'])return!0x0;if(_0x2fe011['hasComments']&&_0x2a36ee['hasComments'])return!0x1;if(_0x2fe011['hasComments']&&_0x2a36ee['createdAt']<_0x2fe011['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2a36ee['hasComments']&&_0x2fe011['createdAt']<_0x2a36ee['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x549647[0x0],_0x3809ce[0x0]))return!0x1;const _0x1ed499=Ft(_0x549647[0x0]['attributes'],['groupId','trackingSessionId']),_0x5f1a9b=Ft(_0x3809ce[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x550687(_0x1ed499,_0x5f1a9b))return!0x1;if(_0x549647[0x0]['attributes']['groupId']==_0x3809ce[0x0]['attributes']['groupId'])return!0x0;if(_0x549647[0x0]['attributes']['trackingSessionId']!==_0x3809ce[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x549647['every'](_0x5ea6db=>_0x3809ce['some'](_0x3b8d46=>_0x5ea6db['getFirstRange']()['isEqual'](_0x3b8d46['getFirstRange']())))&&_0x3809ce['every'](_0x1a2fd3=>_0x549647['some'](_0x2c84b8=>_0x1a2fd3['getFirstRange']()['isEqual'](_0x2c84b8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x46ecf4){const _0x5661c5=Array['from'](_0x46ecf4),_0x120c5c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4697aa=_0x120c5c['filter'](_0x2fed1c=>!_0x46ecf4['has'](_0x2fed1c)),_0x1ca1ca=new Map(_0x5661c5['map'](_0x2d4aae=>[_0x2d4aae,this['_suggestionFactory']['getSuggestionCallback'](_0x2d4aae['type'],_0x2d4aae['subType'],'join')])),_0xb12ed6=new Map(_0x120c5c['map'](_0x2a69a2=>[_0x2a69a2,_0x2a69a2['getRanges']()]));for(let _0x33f8ef=0x0;_0x33f8ef<_0x5661c5['length'];_0x33f8ef++){if(_0x4670d8(this,_0x5661c5[_0x33f8ef],_0x5661c5,_0x33f8ef+0x1))return!0x0;}for(let _0x5a84fa=0x0;_0x5a84fa<_0x5661c5['length'];_0x5a84fa++){if(_0x4670d8(this,_0x5661c5[_0x5a84fa],_0x4697aa,0x0))return!0x0;}return!0x1;function _0x4670d8(_0x21edd2,_0x4bd2b3,_0x4d9fb5,_0x574802){for(let _0x86dcc6=_0x574802;_0x86dcc6<_0x4d9fb5['length'];_0x86dcc6++){const _0x56437f=_0x4d9fb5[_0x86dcc6];if(_0x56437f['type']!==_0x4bd2b3['type']||_0x56437f['author']['id']!==_0x4bd2b3['author']['id']||_0x56437f['subType']!==_0x4bd2b3['subType'])continue;if(!Qt(_0x4bd2b3,_0x56437f))continue;if('attribute'==_0x4bd2b3['type']&&_0x4bd2b3['data']['oldValue']!=_0x56437f['data']['oldValue'])continue;if('attribute'==_0x4bd2b3['type']&&_0x21edd2['_isBlockAttribute'](_0x4bd2b3['data']['key']))continue;if('formatBlock'==_0x4bd2b3['type']){const _0x55c9d3=_0x21edd2['editor']['model'],_0x29ad66=_0x4bd2b3['getContainedElement']();if(_0x29ad66&&(_0x55c9d3['schema']['isObject'](_0x29ad66)||_0x55c9d3['schema']['isLimit'](_0x29ad66)))continue;}const _0x365848=_0x1ca1ca['get'](_0x4bd2b3),_0x40e41b=_0xb12ed6['get'](_0x4bd2b3),_0x233839=_0xb12ed6['get'](_0x56437f),_0x514b42=_0x4bd2b3['commentThread']&&_0x4bd2b3['commentThread']['length'],_0x4f951f=_0x56437f['commentThread']&&_0x56437f['commentThread']['length'];if(!_0x514b42&&_0x365848(_0x233839,_0x40e41b))return _0x21edd2['_joinSuggestions'](_0x56437f,_0x4bd2b3),_0xb12ed6['delete'](_0x4bd2b3),!0x0;if(!_0x4f951f&&_0x365848(_0x40e41b,_0x233839))return _0x21edd2['_joinSuggestions'](_0x4bd2b3,_0x56437f),_0xb12ed6['delete'](_0x56437f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x495832,_0x359ee9){if(_0x495832['isMultiRange']){for(const _0x387516 of _0x359ee9['getRanges']())_0x495832['addRange'](_0x387516);}else{const _0x1e36be=_0x359ee9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x495832,this['_model']['createRange'](_0x495832['getFirstRange']()['start'],_0x1e36be));}_0x359ee9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4103ce,_0x52b13c,_0x39043a){const _0x489342=_0x4103ce['startsWith']('format')||_0x4103ce['startsWith']('attribute')?'FORMATTING':_0x4103ce['toUpperCase']();return c(this['editor']['locale'],_0x52b13c+'_'+_0x489342+'_SUGGESTION_ANNOUNCEMENT',_0x39043a);}['_initAriaMarkerChangeAnnouncements'](){const _0x2402b3=this['editor'];if(!_0x2402b3['ui'])return;const {ariaLiveAnnouncer:_0x23e306}=_0x2402b3['ui'];_0x5da952(this['_model'],({left:_0x5b9d7f,entered:_0x1e87c8})=>{for(const _0x206e93 of _0x5b9d7f){const {group:_0x475553,type:_0x4d4d21}=this['_splitMarkerName'](_0x206e93['name']);if('suggestion'===_0x475553){_0x23e306['announce'](this['_getMarkerAnnouncementText'](_0x4d4d21,'LEAVE'));break;}}for(const _0x1d61dc of _0x1e87c8){const {group:_0x32a647,type:_0x3879a3}=this['_splitMarkerName'](_0x1d61dc['name']);if('suggestion'===_0x32a647){_0x23e306['announce'](this['_getMarkerAnnouncementText'](_0x3879a3,'ENTER',_0x2ee9fd(_0x2a94e6)));break;}}});}['_processAttributeChanges'](_0x1d34fb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x124143=this['editor'],_0x381542=_0x124143['model']['document']['differ']['getChanges']();if(0x0==_0x381542['length'])return!0x1;const _0x3ad134=[],_0x2bdfe6=_0x381542['filter'](_0x535a72=>'attribute'==_0x535a72['type']),_0x3a4181=_0x381542['filter'](_0x2d624a=>'insert'==_0x2d624a['type']&&'$text'!=_0x2d624a['name']),_0x1b1508=_0x381542['filter'](_0x37f2d5=>'remove'==_0x37f2d5['type']&&'$text'!=_0x37f2d5['name']);for(const _0x4c5045 of _0x2bdfe6)_0x3ad134['push']({'key':_0x4c5045['attributeKey'],'newValue':_0x4c5045['attributeNewValue'],'oldValue':_0x4c5045['attributeOldValue'],'range':qt(_0x4c5045['range'],_0x124143['model'])});for(const _0x3734a3 of _0x3a4181){const _0x320435=_0x1b1508['find'](_0x1fb655=>_0x1fb655['position']['isEqual'](_0x3734a3['position']));_0x320435&&_0x3ad134['push']({'key':u,'newValue':_0x3734a3['name'],'oldValue':_0x320435['name'],'range':_0x124143['model']['createRangeOn'](_0x3734a3['position']['nodeAfter'])});}return 0x0!=_0x3ad134['length']&&this['_reduceExistingSuggestions'](_0x1d34fb,_0x3ad134);}['_processAttributeSuggestions'](_0x1841fa){let _0x31a719=!0x1;const _0x27b5f4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55d215=>_0x55d215['data']['newRange']&&_0x55d215['name']['startsWith']('suggestion:attribute:'));for(const _0x3c31e5 of _0x27b5f4){const {subType:_0x24b1ec,id:_0x165cdb}=this['_splitMarkerName'](_0x3c31e5['name']),_0x21461d=_0x24b1ec['split']('|')[0x0];for(const _0x175506 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x175506['id']!=_0x165cdb&&'attribute'==_0x175506['type']&&_0x175506['data']&&_0x175506['data']['key']==_0x21461d&&_0x175506['getFirstRange']()['isIntersecting'](_0x3c31e5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x175506,_0x3c31e5['data']['newRange'],_0x1841fa),_0x31a719=!0x0);}return _0x31a719;}['_recordAttributeChanges'](_0x3eafec){this['_recordAttributeSuggestions']=!0x0,_0x3eafec();}['_isRegisteredAttribute'](_0xf7384b){const _0x3a2752=this['_isBlockAttribute'](_0xf7384b),_0x40b709=this['_inlineAttributeKeys']['has'](_0xf7384b);return _0x3a2752||_0x40b709;}['_reduceExistingSuggestions'](_0x2f5f91,_0xd231fd){if(0x0==_0xd231fd['length'])return!0x1;let _0x5135d5=!0x1;for(const _0x5975ca of _0xd231fd){const _0x1cfb0a=this['_findSuggestions'](_0x5975ca['range'],'attribute')['filter'](_0x169d5b=>!_0x169d5b['meta']['isNextTo'])['map'](_0x58f33f=>_0x58f33f['suggestion']),_0x1e0b30=_0x3429f2({'newValue':_0x5975ca['newValue']});_0x1cfb0a['filter'](_0x437c09=>{const [_0x3878b9,_0x2f323f]=_0x437c09['subType']['split']('|');return _0x3878b9==_0x5975ca['key']&&_0x2f323f!=_0x1e0b30;})['forEach'](_0x356287=>{this['_reduceSuggestionAttributeRange'](_0x356287,_0x5975ca['range'],_0x2f5f91),_0x5135d5=!0x0;});}return _0x5135d5;}['_reduceSuggestionAttributeRange'](_0x2a9b74,_0x3191eb,_0x3ddac6){const _0x204570=_0x2a9b74['getFirstRange']()['getDifference'](_0x3191eb);0x0!==_0x204570['length']?0x1!==_0x204570['length']?this['_breakSuggestionMarker'](_0x2a9b74,_0x3191eb['start'],_0x3191eb['end']):this['_setSuggestionRange'](_0x2a9b74,_0x204570[0x0]):_0x3ddac6['removeMarker'](_0x2a9b74['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x353855){this['_editor']=_0x353855,this['_model']=_0x353855['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x46968e,_0x274373,_0x192a22,_0x49dec1,_0x49f10e,_0x49383c,_0x1bcea7){return new o(this['_model'],{'type':_0x46968e,'subType':_0x274373,'id':_0x192a22,'originalSuggestionId':_0x1bcea7,'author':_0x49dec1,'creator':_0x49dec1,'attributes':_0x49f10e,'onAttributesChange':_0x49383c,'onAccept':(..._0xe80dd4)=>this['getSuggestionCallback'](_0x46968e,_0x274373,'accept')(..._0xe80dd4),'onDiscard':(..._0x5191a0)=>this['getSuggestionCallback'](_0x46968e,_0x274373,'discard')(..._0x5191a0)});}['registerCustomCallback'](_0x5a9324,_0x588ff5,_0x5c509a,_0x8ba503){const _0x308b63=_0x5a9324+':'+_0x588ff5+':'+_0x5c509a;this['_customCallbacks']['set'](_0x308b63,_0x8ba503);}['getSuggestionCallback'](_0x13dda5,_0x46423d,_0x1ee3ce){const _0x3e07cc=_0x13dda5+':'+_0x46423d+':'+_0x1ee3ce;return this['_customCallbacks']['get'](_0x3e07cc)||this['_defaultCallbacks']['get'](_0x13dda5+':'+_0x1ee3ce);}['_registerDefaultCallbacks'](){const _0x5a1fa5=()=>!0x1,_0xa68c19=_0x46088e=>{_0x46088e['sort']((_0x5b56c7,_0xffc8bf)=>_0x5b56c7['start']['isBefore'](_0xffc8bf['start'])?0x1:-0x1),this['_model']['change'](_0x30f763=>{for(const _0x4fd32f of _0x46088e){let _0x557927;_0x557927=_0x4fd32f['end']['isAtEnd']&&_0x4fd32f['end']['parent']==_0x4fd32f['start']['nodeAfter']?_0x30f763['createSelection'](_0x4fd32f['start']['nodeAfter'],'on'):_0x30f763['createSelection'](_0x4fd32f),this['_model']['deleteContent'](_0x557927,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4fa5ae=(_0x5bad93,_0x8a68e2)=>{_0x8a68e2&&this['_model']['change'](_0x246894=>{const {commandName:_0x1cef90,commandParams:_0x49d168=[]}=_0x8a68e2,_0x243def=_0x5bad93['map'](_0x53b33f=>(Lt(_0x53b33f)&&(_0x53b33f=this['_model']['createRange'](_0x53b33f['end'])),_0x53b33f))['filter'](_0x4e943b=>'$graveyard'!==_0x4e943b['root']['rootName']);if(_0x243def['length']<0x1)return;const _0x4a3820=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4b4684=>_0x34c04c['fromRange'](_0x4b4684));_0x246894['setSelection'](_0x243def);for(const _0x70ec77 of this['_editor']['commands']['commands']())_0x70ec77['refresh']();_0x49d168['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1cef90,..._0x49d168);const _0x26ca77=_0x4a3820['filter'](_0x288cd7=>'$graveyard'!=_0x288cd7['root']['rootName']);_0x26ca77['length']>0x0&&_0x246894['setSelection'](_0x26ca77);for(const _0x1cde13 of _0x4a3820)_0x1cde13['detach']();});},_0x1b3a7f=(_0x31bc8a,_0x3478e8)=>0x1==_0x31bc8a['length']&&0x1==_0x3478e8['length']&&_0x31bc8a[0x0]['end']['isEqual'](_0x3478e8[0x0]['start']),_0x5dadab=(_0x4872c2,_0x4d5335,_0x4bbd74,_0x46d0be)=>Wt(_0x4872c2,_0x4d5335,_0x4bbd74,_0x46d0be)?[_0x4872c2,_0x4d5335]:Wt(_0x4d5335,_0x4872c2,_0x46d0be,_0x4bbd74)?[_0x4d5335,_0x4872c2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5a1fa5),this['_defaultCallbacks']['set']('insertion:discard',_0xa68c19),this['_defaultCallbacks']['set']('insertion:join',_0x1b3a7f),this['_defaultCallbacks']['set']('insertion:chain',_0x5dadab),this['_defaultCallbacks']['set']('deletion:accept',_0xa68c19),this['_defaultCallbacks']['set']('deletion:discard',_0x5a1fa5),this['_defaultCallbacks']['set']('deletion:join',_0x1b3a7f),this['_defaultCallbacks']['set']('deletion:chain',_0x5dadab),this['_defaultCallbacks']['set']('formatInline:accept',_0x4fa5ae),this['_defaultCallbacks']['set']('formatInline:discard',_0x5a1fa5),this['_defaultCallbacks']['set']('formatInline:join',_0x1b3a7f),this['_defaultCallbacks']['set']('formatInline:chain',_0x5a1fa5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4fa5ae),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5a1fa5),this['_defaultCallbacks']['set']('formatBlock:join',_0x1b3a7f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5a1fa5),this['_defaultCallbacks']['set']('attribute:accept',_0x5a1fa5),this['_defaultCallbacks']['set']('attribute:discard',(_0x44dfb8,_0x57f851)=>{if(!_0x57f851)return;const _0x487dcc=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3c9cab=>{if(_0x57f851['key']==u)for(const _0x466330 of _0x44dfb8){const _0x4be675=_0x466330['start']['nodeAfter'],_0xa7fd6d=_0x57f851['oldValue'];_0x3c9cab['rename'](_0x4be675,_0xa7fd6d);}else{if(_0x487dcc['_isBlockAttribute'](_0x57f851['key'])){for(const _0x39cf1f of _0x44dfb8)void 0x0!==_0x57f851['oldValue']?_0x3c9cab['setAttribute'](_0x57f851['key'],_0x57f851['oldValue'],_0x39cf1f['start']['nodeAfter']):_0x3c9cab['removeAttribute'](_0x57f851['key'],_0x39cf1f['start']['nodeAfter']);}else{for(const _0x52f30e of _0x44dfb8)_0x57f851['oldValue']?_0x3c9cab['setAttribute'](_0x57f851['key'],_0x57f851['oldValue'],_0x52f30e):_0x3c9cab['removeAttribute'](_0x57f851['key'],_0x52f30e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1b3a7f);}}function Gt(_0x581743,_0x22db0c,_0x1bbfcc){for(const _0x548c9b of _0x22db0c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x548c9b['root']==_0x548c9b)return!0x1;if(!_0x1bbfcc['containsItem'](_0x548c9b))return!0x1;if(_0x581743['isObject'](_0x548c9b)||_0x581743['isLimit'](_0x548c9b))return!0x0;}return!0x1;}function Lt(_0x566bcc){return _0x566bcc['end']['parent']==_0x566bcc['start']['nodeAfter']&&_0x566bcc['end']['isAtStart'];}function Jt(_0x2bc2ce,_0x3013c8,_0x32daf9,_0x1651bd){const _0x3cbf1c=_0x48d192=>!_0x48d192['item']['is']('$textProxy')&&!_0x1651bd['isObject'](_0x48d192['item']),_0x549403=_0x2bc2ce['start']['getLastMatchingPosition'](_0x3cbf1c),_0x4ac72e=_0x2bc2ce['end']['getLastMatchingPosition'](_0x3cbf1c,{'direction':'backward'});return(!_0x2bc2ce['start']['isEqual'](_0x549403)||!_0x2bc2ce['end']['isEqual'](_0x4ac72e))&&(_0x549403['isBefore'](_0x4ac72e)?_0x32daf9['updateMarker'](_0x3013c8,{'range':_0x32daf9['createRange'](_0x549403,_0x4ac72e)}):_0x32daf9['removeMarker'](_0x3013c8),!0x0);}function Kt(_0x2b021f){return _0x3429f2(_0x2b021f);}function Ht(_0x825bba){const _0x514c94=_0x825bba['start']['nodeAfter'];return _0x514c94&&_0x514c94['is']('element');}function qt(_0x4bcfd6,_0x18029d){return null==_0x4bcfd6['end']['nodeBefore']&&_0x4bcfd6['end']['parent']==_0x4bcfd6['start']['nodeAfter']?zt(_0x4bcfd6['start']['nodeAfter'],_0x18029d):_0x4bcfd6;}function zt(_0x3458af,_0x4f0ca4){const _0x539e34=_0x4f0ca4['schema']['isObject'](_0x3458af)||_0x4f0ca4['schema']['isSelectable'](_0x3458af);return _0x4f0ca4['createRange'](_0x4f0ca4['createPositionAt'](_0x3458af,'before'),_0x539e34?_0x4f0ca4['createPositionAfter'](_0x3458af):_0x4f0ca4['createPositionAt'](_0x3458af,'end'));}function Wt(_0x2c7069,_0x49c1a1,_0x912003,_0x57e249){return!!Qt(_0x2c7069,_0x49c1a1)&&_0x912003['end']['isEqual'](_0x57e249['start']);}function Qt(_0x3d163b,_0x285b4d){if(!_0x3d163b['_isDataLoaded']||!_0x285b4d['_isDataLoaded'])return!0x1;const _0x2cb15f=new Set(Object['keys'](_0x3d163b['attributes'])),_0x32fe1d=new Set(Object['keys'](_0x285b4d['attributes']));if(_0x2cb15f['delete']('groupId'),_0x32fe1d['delete']('groupId'),0x0==_0x2cb15f['size']&&0x0==_0x32fe1d['size'])return!0x0;if(_0x2cb15f['size']!=_0x32fe1d['size'])return!0x1;const _0x16227e={..._0x3d163b['attributes']},_0xf9af2f={..._0x285b4d['attributes']};return delete _0x16227e['groupId'],delete _0xf9af2f['groupId'],JSON['stringify'](_0x16227e)==JSON['stringify'](_0xf9af2f);}function Xt(_0xcd32b7,_0x2900c2){const _0x3b1c2b=Yt(_0xcd32b7['attributes']),_0x24404c=Yt(_0x2900c2);if(!_0xcd32b7['_isDataLoaded'])return!0x1;for(const _0x1d222d of Object['keys'](_0x24404c))if(!_0x550687(_0x3b1c2b[_0x1d222d],_0x24404c[_0x1d222d]))return!0x1;return!0x0;}function Yt(_0x3b0d07){const _0x4c9cb2=Object['assign']({},_0x3b0d07);return delete _0x4c9cb2['skipNestingCheck'],delete _0x4c9cb2['tablePasteChainId'],_0x4c9cb2;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0xc1a90b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5423ad,_0x4199f2,_0x3cb89d,_0x1a8a93){super(),this['model']=_0x4199f2,this['view']=_0x3cb89d,this['commentThreadController']=_0x1a8a93,this['_editor']=_0x5423ad,this['_acceptCommand']=_0x5423ad['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5423ad['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x56f09d,_0x40a879)=>_0x56f09d||_0x40a879),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x465b5c=>_0x465b5c&&this['_editor']['model']['canEditAt'](_0x4199f2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x300491=>_0x300491&&this['_editor']['model']['canEditAt'](_0x4199f2['getRanges']())),this['_pendingAction']=null,_0x3cb89d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3cb89d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3cb89d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3cb89d,'change:isDirty',()=>{_0x3cb89d['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 _0x5dd51f=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5dd51f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2922bf{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1f6bad,_0x74741a,_0x2bd84a,_0x5ed239){super(_0x1f6bad),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x402f1e(_0x1f6bad,c(_0x1f6bad,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x74741a['authoredAt']),this['bind']('authoredAt')['to'](_0x74741a),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',_0x74741a,'authoredAt',this,'descriptionParts',(_0x1ec989,_0xa4a29c,_0xf1d38)=>{const _0x783f70=_0xf1d38['map'](_0xe8928c=>ls(_0xe8928c['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1ec989-0x1,_0x74741a['author']['name'],_0xa4a29c?_0x5ed239['formatDateTime'](_0xa4a29c):'',new DOMParser()['parseFromString'](_0x783f70,'text/html')['body']['textContent']]);}),this['focusables']=new _0x377fd0(),this['focusTracker']=new _0x203964(),this['keystrokes']=new _0x24e332(),this['focusCycler']=new _0x4b9246({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xb5bd4d=>_0xb5bd4d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x74741a,this['_localUser']=_0x2bd84a,this['_config']=_0x5ed239,_0x5ed239['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x39dc9a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xdf69ec}=this['_config'];this['commentsListView']=new _0xdf69ec(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',_0xe4d3a2=>_0xe4d3a2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x47ab48,_0x306e24)=>_0x47ab48||!!_0x306e24);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x218262}=this['_config'],_0x4c2295=new _0x218262(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5cb7a2=_0x4c2295['commentInputView'];return _0x4c2295['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5cb7a2,'value',(_0x3abeb1,_0x458893,_0xa776af)=>!!_0xa776af||_0x3abeb1&&!_0x458893),_0x5cb7a2['on']('submit',(_0x2552d1,_0x354b33)=>{this['fire']('addComment',_0x354b33),_0x5cb7a2['editor']['setData']('');}),_0x5cb7a2['on']('cancel',()=>this['focus']()),_0x5cb7a2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4c2295;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0xc1f79a,_0x15a5e6,_0x1feb82,_0x418a4e){super(_0xc1f79a,_0x15a5e6,_0x1feb82,_0x418a4e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x41645a=>_0x41645a&&_0x41645a[0x0]?_0x41645a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x593cbd,_0x584d3a)=>{let _0x95b3a5='';for(const _0x52f2a0 of _0x593cbd)_0x95b3a5+='<p>'+ls(_0x52f2a0['content'],_0x52f2a0['color'])+'</p>';return _0x584d3a?_0x95b3a5:ti(_0x95b3a5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x418a4e['SuggestionView'](_0xc1f79a,_0x15a5e6,{'formatDateTime':_0x418a4e['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 _0x4d6591=this['bindTemplate'],_0x3a2e46=[this['suggestionView']];return this['commentsListView']&&_0x3a2e46['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3a2e46['push'](this['commentThreadInputView']),_0x3a2e46['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4d6591['if']('isActive','ck-suggestion-wrapper--active'),_0x4d6591['to']('type',_0x17ac6b=>'ck-suggestion-'+_0x17ac6b),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':_0x4d6591['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3a2e46};}['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 _0x2922bf{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40cafd,_0x451023,_0x40e870){super(_0x40cafd),this['_model']=_0x451023,this['_config']=_0x40e870,this['set']('description',''),this['bind']('authoredAt')['to'](_0x451023),this['acceptButton']=this['_createButton'](c(_0x40cafd,'Accept\x20suggestion'),_0x3b1a58,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x40cafd,'Discard\x20suggestion'),_0x774a8b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x48854b(_0x40cafd,_0x451023['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x377fd0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x203964(),this['keystrokes']=new _0x24e332(),this['focusCycler']=new _0x4b9246({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x15d3f1=>_0x15d3f1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1d7a9a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1d7a9a['innerHTML']=this['description'],this['on']('change:description',(_0x5c2fbc,_0x31cd1c,_0x509190)=>{_0x1d7a9a['innerHTML']=_0x509190;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x21ef24=this['bindTemplate'],_0x4f2f4e=[{'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':_0x21ef24['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x21ef24['to']('authoredAt',_0x33dce2=>this['_config']['formatDateTime'](_0x33dce2))}]}]},{'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']&&_0x4f2f4e['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':_0x4f2f4e}]};}['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'](_0x27c61c,_0x42ecd6,_0x110680,_0x2a4b20,_0x46a0f2){const _0x1df8ad=new _0x2214e7(this['locale']);return _0x1df8ad['set']({'label':_0x27c61c,'icon':_0x42ecd6,'tooltip':!0x0,'tooltipPosition':_0x46a0f2}),_0x1df8ad['extendTemplate']({'attributes':{'class':_0x110680}}),_0x1df8ad['on']('execute',()=>{this['fire'](_0x2a4b20,this['_model']['id']);}),_0x1df8ad;}['_setupKeyboardNavigation'](){const _0x8726f6=this['element'];this['keystrokes']['listenTo'](_0x8726f6);for(const _0x31633f of this['focusables'])this['focusTracker']['add'](_0x31633f['element']),this['keystrokes']['listenTo'](_0x31633f['element']);this['keystrokes']['set']('enter',(_0x11393d,_0x4e65ec)=>{_0x8726f6===_0x11393d['target']&&(this['focusCycler']['focusFirst'](),_0x4e65ec());}),this['keystrokes']['set']('esc',(_0x3a19fd,_0x211c1b)=>{_0x8726f6!==_0x3a19fd['target']&&(this['focus'](),_0x211c1b());});}}class d extends _0x5575fe{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x39fba1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59fab5){super(_0x59fab5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x48a357=this['editor']['config'];_0x48a357['define']('trackChanges.SuggestionThreadView',fe),_0x48a357['define']('trackChanges.SuggestionView',we),_0x48a357['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x48a357['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5736ad,_0x13d9ba){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x233a0c,_0x249834]of this['_handleControllerBuffer']){const _0x2526d1=this['_suggestionToController']['has'](_0x233a0c);_0x2526d1||_0x249834?_0x2526d1&&_0x249834&&this['_destroyController'](_0x233a0c):this['_initializeController'](_0x233a0c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5736ad,_0x13d9ba);}['init'](){const _0x2a1c75=this['editor'],_0x2856e1=_0x2a1c75['plugins']['get']('TrackChangesEditing'),_0x27c757=_0x2a1c75['plugins']['get']('Annotations'),_0x162f1a=_0x2a1c75['plugins']['get']('EditorAnnotations'),_0x58226a=_0x2a1c75['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x162f1a['addSourceCollector'](()=>{const _0x1dd2cb=[];for(const [_0x17fedf,_0x5ecb3d]of Array['from'](this['_suggestionToController'])){const _0x5b64de=_0x17fedf['getAllAdjacentSuggestions'](),_0x2e366a=[];for(const _0x5571c5 of _0x5b64de){if(!_0x5571c5['isInContent'])continue;if(_0x5571c5['isMultiRange']){_0x2e366a['push'](..._0x5571c5['getRanges']());continue;}const _0xb780fc=_0x5571c5['getFirstRange']();if(_0x2e366a['length']>0x0){const _0xee56e3=_0x2e366a[0x0]['getJoined'](_0xb780fc);if(_0xee56e3){_0x2e366a[0x0]=_0xee56e3;continue;}}_0x2e366a['push'](_0xb780fc);}_0x1dd2cb['push']([_0x5ecb3d['view'],_0x2e366a]);}return _0x1dd2cb;}),this['listenTo'](_0x2856e1,'suggestionLoaded',(_0x436faa,_0x5b7cba)=>{this['listenTo'](_0x5b7cba,'change:previous',(_0x39b2a4,_0x549d94,_0x4748aa,_0x22af0c)=>{_0x5b7cba['isInContent']&&(null==_0x4748aa?(this['_updateController'](_0x22af0c['head']),this['_handleSuggestionControllerDelayed'](_0x5b7cba,!0x1)):(this['_updateController'](_0x4748aa['head']),null==_0x22af0c&&this['_handleSuggestionControllerDelayed'](_0x5b7cba,!0x0)));}),null!==_0x5b7cba['previous']?this['_updateController'](_0x5b7cba['head']):this['_handleSuggestionControllerDelayed'](_0x5b7cba,!0x1);}),this['listenTo'](_0x2856e1,'suggestionUnloaded',(_0x2ba042,_0x19f064,_0x166987)=>{this['stopListening'](_0x19f064,'change:previous'),this['_handleControllerBuffer']['delete'](_0x19f064),this['_suggestionToController']['has'](_0x19f064)&&this['_destroyController'](_0x19f064),_0x166987&&this['_updateController'](_0x166987['head']);}),this['listenTo'](_0x2856e1,'suggestionChanged',(_0x4c0d05,_0xd90d8b)=>{this['_updateController'](_0xd90d8b);}),this['listenTo'](_0x27c757,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x58226a,'addComment',(_0x2ee01c,{threadId:_0x21c091,isFromAdapter:_0x1bfb96})=>{if(_0x1bfb96||!_0x2856e1['hasSuggestion'](_0x21c091))return;const _0x15e3ca=_0x2856e1['getSuggestion'](_0x21c091);this['_suggestionToController']['get'](_0x15e3ca)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ebdb9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b3ed4;for(const _0x2bfb06 in _0x4ebdb9){const _0xa2b3e1=_0x2bfb06,_0x515812=_0x4ebdb9[_0xa2b3e1];if('trackChangesLicenseKeyValid'==_0x515812||'trackChangesLicenseKeyInvalid'==_0x515812||'trackChangesLicenseKeyExpired'==_0x515812||'trackChangesLicenseKeyDomainLimit'==_0x515812||'trackChangesLicenseKeyNotAllowed'==_0x515812||'trackChangesLicenseKeyEvaluationLimit'==_0x515812||'trackChangesLicenseKeyTrialLimit'==_0x515812||'trackChangesLicenseKeyUsageLimit'==_0x515812){delete _0x4ebdb9[_0xa2b3e1],_0x1b3ed4=_0x515812,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1b3ed4&&_0x4ebdb9['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xc7897a=this['editor']['plugins']['get']('Annotations'),_0x28540f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55c712=Array['from'](_0xc7897a['activeAnnotations'],_0x350a4f=>_0x350a4f['innerView'])['filter'](_0x496f07=>this['_viewToController']['has'](_0x496f07)),_0x142de0=[];for(const _0x2f3a2c of _0x55c712){const _0x43c9b6=this['_viewToController']['get'](_0x2f3a2c)['model']['getAllAdjacentSuggestions']();_0x142de0['push'](..._0x43c9b6['reduce']((_0x433837,_0x5e40fb)=>[..._0x433837,..._0x5e40fb['getMarkerNames']()],[]));}_0x28540f['activeMarkers']=_0x142de0;}['_addUIComponentsToFactory'](){const _0x42b189=this['editor'],_0xc8c936=_0x42b189['locale'],_0x473d11=c(_0xc8c936,'Track\x20changes'),_0x139173=new _0x412f5d([{'type':'switchbutton','model':new _0x14e505({'withText':!0x0,'isToggleable':!0x0,'label':_0x473d11,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x42b189['plugins']['has']('TrackChangesPreview')&&_0x139173['addMany']([{'type':'separator'},{'type':'button','model':new _0x14e505({'withText':!0x0,'label':c(_0xc8c936,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x397ac2 of _0x139173)if(ke(_0x397ac2)){const _0x2ef312=_0x42b189['commands']['get'](_0x397ac2['model']['commandName']);_0x397ac2['model']['bind']('isOn','isEnabled')['to'](_0x2ef312,'value','isEnabled');}_0x42b189['ui']['componentFactory']['add']('trackChanges',_0x4e34b7=>this['_createToolbarButton'](_0x4e34b7,_0x139173,_0x473d11)),_0x42b189['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2c0772=>this['_createMenuBarMenu'](_0x2c0772,_0x139173,_0x473d11));}['_createToolbarButton'](_0x27d0fc,_0x9638f8,_0x12ae91){const _0x539b01=_0x24b707(_0x27d0fc,_0x5f2e56),_0x18926d=this['editor']['commands']['get']('trackChanges');_0x539b01['buttonView']['set']({'tooltip':_0x12ae91,'label':_0x12ae91,'icon':_0x3ccc1d}),_0x539b01['buttonView']['bind']('isOn')['to'](_0x18926d,'value'),_0x539b01['buttonView']['on']('execute',()=>{_0x18926d['execute'](),this['editor']['editing']['view']['focus']();}),_0x2dd363(_0x539b01,_0x9638f8,{'role':'menu'});const _0x39200e=[];for(const _0x267c9a of _0x9638f8)ke(_0x267c9a)&&_0x39200e['push'](this['editor']['commands']['get'](_0x267c9a['model']['commandName']));const _0x74da21=_0x539b01['buttonView'];return _0x74da21['actionView']['unbind']('isEnabled'),_0x74da21['arrowView']['unbind']('isEnabled'),_0x74da21['actionView']['bind']('isEnabled')['to'](_0x18926d,'isEnabled'),_0x74da21['arrowView']['bind']('isEnabled')['toMany'](_0x39200e,'isEnabled',(..._0x15f633)=>_0x15f633['some'](_0x4762c2=>_0x4762c2)),_0x539b01['on']('execute',_0x24d372=>{this['editor']['execute'](_0x24d372['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x539b01;}['_createMenuBarMenu'](_0x4d90a5,_0x10ad03,_0x1b3be3){const _0x41417e=new _0x45eb33(_0x4d90a5),_0x1fe91d=this['editor']['commands']['get']('trackChanges');_0x41417e['buttonView']['set']({'label':_0x1b3be3,'icon':_0x3ccc1d});const _0x51165c=new _0x24e4b9(_0x4d90a5);for(const _0x3219c2 of _0x10ad03){if('separator'==_0x3219c2['type']){_0x51165c['items']['add'](new _0x1f7a58(_0x4d90a5));continue;}const _0x4ea4e0=new _0x207990(_0x4d90a5,_0x41417e),_0x53187=new _0x502a3d(_0x4d90a5),_0x5ca434=_0x3219c2['model'];_0x53187['bind'](...Object['keys'](_0x5ca434))['to'](_0x5ca434),_0x53187['delegate']('execute')['to'](_0x41417e),_0x53187['on']('execute',()=>{this['editor']['execute'](_0x5ca434['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ea4e0['children']['add'](_0x53187),_0x51165c['items']['add'](_0x4ea4e0);}return _0x41417e['bind']('isEnabled')['to'](_0x1fe91d,'isEnabled'),_0x41417e['panelView']['children']['add'](_0x51165c),_0x41417e;}['_initializeController'](_0x7fb344){const _0x3ea762=this['editor'],_0x12de5a=_0x3ea762['config'],_0x507305=_0x3ea762['plugins']['get']('Annotations'),_0x2d0eb4=_0x3ea762['plugins']['get']('CommentsRepository'),_0x4ae2a0=_0x3ea762['plugins']['get']('EditorAnnotations'),_0x180c3e=_0x3ea762['plugins']['get'](_0x39fba1)['me'],_0x26a543=_0x12de5a['get']('trackChanges')['SuggestionThreadView'],_0x14d413=_0x12de5a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5773b4,CommentThreadInputView:_0x3aca65}=_0x3ea762['plugins']['get']('CommentsUI');let _0x1f0e86,_0x48ac57,_0x5d461e;this['_annotationViews']['has'](_0x7fb344['id'])?(_0x48ac57=this['_annotationViews']['get'](_0x7fb344['id']),_0x1f0e86=_0x48ac57['mainView']):(_0x1f0e86=new _0x26a543(_0x3ea762['locale'],_0x7fb344,_0x180c3e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x12de5a['get']('comments.editorConfig'),'licenseKey':_0x12de5a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x12de5a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12de5a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12de5a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5f5751(_0x12de5a['get']('locale'),_0x3ea762['locale']),'CommentView':_0x12de5a['get']('comments')['CommentView'],'CommentsListView':_0x5773b4,'CommentThreadInputView':_0x3aca65,'SuggestionView':_0x14d413}),_0x1f0e86['suggestionView']['acceptButton']['on']('execute',()=>{_0x3ea762['editing']['view']['focus']();}),_0x1f0e86['suggestionView']['discardButton']['on']('execute',()=>{_0x3ea762['editing']['view']['focus']();}),_0x48ac57=_0x507305['createAnnotationView'](this['editor']['locale'],_0x1f0e86),_0x48ac57['bind']('isDirty')['to'](_0x1f0e86,'isDirty'),_0x48ac57['bind']('length')['to'](_0x1f0e86),_0x48ac57['bind']('type')['to'](_0x1f0e86,'type',_0x14411e=>'suggestion-'+_0x14411e),_0x1f0e86['on']('escape',()=>{_0x5d461e['fire']('escape');}),this['_annotationViews']['set'](_0x7fb344['id'],_0x48ac57));const _0x5f1e9c=_0x2d0eb4['createCommentThreadController'](_0x7fb344['commentThread'],_0x1f0e86),_0x39c1ed=new pe(_0x3ea762,_0x7fb344,_0x1f0e86,_0x5f1e9c),_0x5c2fee=_0x7fb344['getAllAdjacentSuggestions']()['filter'](_0x282eb3=>_0x282eb3['isInContent']);_0x1f0e86['descriptionParts']=_0x3ea762['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5c2fee),this['_suggestionToController']['set'](_0x7fb344,_0x39c1ed),this['_viewToController']['set'](_0x1f0e86,_0x39c1ed),_0x5d461e=_0x507305['createAnnotation']({'view':_0x48ac57,'target':()=>{const _0x1d22e4=[],_0x38fee4=_0x7fb344['getAllAdjacentSuggestions']()['filter'](_0x196ef1=>_0x196ef1['isInContent']);for(const _0x56bfc2 of _0x38fee4)_0x1d22e4['push'](..._0x56bfc2['getMarkers']());return _0x385d59(_0x3ea762['editing'],_0x1d22e4);},'type':()=>'suggestion-'+_0x39c1ed['view']['type']}),_0x2d0eb4['_bindAnnotationToEditors'](_0x1f0e86,_0x5d461e),_0x507305['add'](_0x5d461e),_0x4ae2a0['registerAnnotation'](_0x5d461e);}['_destroyController'](_0x29d3fd){const _0x15e7b0=this['editor']['plugins']['get']('CommentsRepository'),_0x40ece1=this['editor']['plugins']['get']('Annotations'),_0x3bb165=this['_suggestionToController']['get'](_0x29d3fd),_0x40c375=_0x3bb165['view'],_0x4237a7=_0x40ece1['getByInnerView'](_0x40c375);_0x15e7b0['_unbindEditors'](_0x40c375),_0x4237a7&&_0x40ece1['remove'](_0x4237a7),this['_suggestionToController']['delete'](_0x29d3fd),this['_viewToController']['delete'](_0x40c375),_0x3bb165['destroy']();}['_updateController'](_0x2449a9){if(!_0x2449a9['isInContent']||!this['_suggestionToController']['has'](_0x2449a9))return;const _0x152fab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fe1be=this['_suggestionToController']['get'](_0x2449a9),_0xa6af54=_0x2449a9['getAllAdjacentSuggestions']();_0x1fe1be['view']['descriptionParts']=_0x152fab['descriptionFactory']['getDescriptions'](_0xa6af54);}['destroy'](){for(const _0x328670 of this['_suggestionToController']['keys']())this['_destroyController'](_0x328670);for(const _0x1309aa of this['_annotationViews']['values']())_0x1309aa['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x242190){return'model'in _0x242190;}class k extends _0x5575fe{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x27a852){this['editor']['plugins']['get'](p)['adapter']=_0x27a852;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x121dd7){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x121dd7);}['getSuggestions']({skipNotAttached:_0x1c5c5d=!0x1,toJSON:_0x15a700=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1c5c5d,'toJSON':_0x15a700});}['getSuggestion'](_0x141341){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x141341);}}const w=['Pagination'];class T extends _0x5575fe{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4fb323=this['editor'];if(_0x4fb323['config']['define']('trackChangesData.editorCreator',_0x1aec88=>{const _0x4f823f=_0x4fb323['model']['document']['getRootNames']()['reduce']((_0x4116e4,_0x2ec2bf)=>(_0x4116e4[_0x2ec2bf]='',_0x4116e4),{});return _0x4fb323['constructor']['create'](_0x4f823f,_0x1aec88);}),'function'!=typeof _0x4fb323['config']['get']('trackChangesData')['editorCreator'])throw new _0x840840('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x10a9f5){return N(this['editor'],!0x0,_0x10a9f5);}['getDataWithDiscardedSuggestions'](_0x1d87d6){return N(this['editor'],!0x1,_0x1d87d6);}}class D extends _0x5575fe{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e71ae){function _0x3d023c(_0x1bb31f){return _0x1bb31f['map'](_0x4514df=>String['fromCharCode'](_0x4514df))['join']('');}super(_0x3e71ae),this['result']='end',_0x3e71ae[_0x3d023c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d023c([0x76,0x69,0x65,0x77])][_0x3d023c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d023c([0x61,0x75,0x74,0x6f]),_0x3e71ae[_0x3d023c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d023c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d023c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d023c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d023c([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(_0x5cc8bc){return void 0x0!==_0x5cc8bc['getRootsAttributes'];}async function N(_0x443091,_0x5058a4,_0x3b4f01){const _0x548c25=_0xd65147(_0x443091,w);_0x548c25['plugins']['push'](p,D),_0x548c25['rootsAttributes']=Ge(_0x443091)?_0x443091['getRootsAttributes']():void 0x0;const _0x311768=document['createDocumentFragment'](),_0x3a8d6a=_0x443091['config']['get']('trackChangesData')['editorCreator'],_0x2fda6f=await _0x3a8d6a(_0x548c25,()=>function(_0x45368c){const _0x116123=document['createElement']('div');return _0x45368c['appendChild'](_0x116123),_0x116123;}(_0x311768));!function(_0x53dfdd,_0xb770ff){const _0x591f86=_0x53dfdd['model']['document']['getRootNames']()['reduce']((_0x405425,_0x2305c8)=>(_0x405425[_0x2305c8]=_0x53dfdd['data']['get']({'rootName':_0x2305c8}),_0x405425),{}),_0x46ef8f=_0x53dfdd['plugins']['get']('Users')['users']['map'](_0x56a97c=>({'id':_0x56a97c['id'],'name':_0x56a97c['name']})),_0x294f6e=_0x53dfdd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d6874=_0x53dfdd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x638bf9=_0xb770ff['plugins']['get']('Users'),_0x39116b=_0xb770ff['plugins']['get']('TrackChangesEditing'),_0x3346aa=_0xb770ff['plugins']['get']('CommentsRepository');for(const _0x36ba0c of _0x3346aa['getCommentThreads']())_0x36ba0c['remove']();for(const _0x46a429 of _0x46ef8f)_0x638bf9['getUser'](_0x46a429['id'])||_0x638bf9['addUser'](_0x46a429);_0x638bf9['me']||_0x638bf9['useAnonymousUser']();for(const _0x91b6f7 of _0x2d6874)_0x3346aa['addCommentThread'](_0x91b6f7);for(const _0x4d663d of _0x294f6e)_0x39116b['addSuggestionData'](_0x4d663d);_0xb770ff['data']['set'](_0x591f86);}(_0x443091,_0x2fda6f),_0x2fda6f['execute'](_0x5058a4?'acceptAllSuggestions':'discardAllSuggestions');const _0x16208c=Ge(_0x2fda6f)?_0x2fda6f['getFullData'](_0x3b4f01):_0x2fda6f['data']['get'](_0x3b4f01);return await _0x2fda6f['destroy'](),_0x16208c;}class Me extends _0x2922bf{['options'];constructor(_0x2854c0,_0x442623){super(_0x2854c0),this['options']=_0x442623,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'](_0x34dbef,_0xf12e15){if(!this['element'])return;const _0xfa18b7=[];for(const [_0x226408,_0x13099c]of _0x34dbef){const _0xffc73e=document['createElement']('div');_0xffc73e['setAttribute']('data-ck-root-name',_0x226408),_0xffc73e['className']=_0x13099c['classes']+'\x20ck-track-changes-preview__root-container',_0xffc73e['innerHTML']=_0x13099c['content'],_0xfa18b7['push'](_0xffc73e);}_0xf12e15(this['element'],_0xfa18b7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x334ec3{constructor(_0x1af7df){super(_0x1af7df),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3908f9=this['editor'],_0x1c3062=_0x3908f9['locale'],_0x37a6ab=_0x3908f9['plugins']['get']('Dialog');let _0x4ce191;const _0x490c1e=function(_0x5ab233){const _0x251d2e={};if('editables'in _0x5ab233['ui']['view']){for(const [_0x51bcd3,_0xa9a42b]of Object['entries'](_0x5ab233['ui']['view']['editables']))_0x251d2e[_0x51bcd3]=_0xa9a42b['element'];}else _0x251d2e[_0x5ab233['model']['document']['getRootNames']()[0x0]]=_0x5ab233['ui']['view']['editable']['element'];return _0x251d2e;}(_0x3908f9),_0x80f954=function(_0x202e23){let _0x4cc586=0x0;for(const _0x1e6a2b of Object['values'](_0x202e23))_0x4cc586=Math['max'](_0x4cc586,_0x1e6a2b['getBoundingClientRect']()['width']);let _0x4f1d1f=0x0;for(const _0x6aed66 of Object['values'](_0x202e23))_0x4f1d1f+=_0x6aed66['getBoundingClientRect']()['height'];const _0x407d4e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x229353=Math['min'](_0x4f1d1f,_0x407d4e);return{'width':_0x4cc586,'height':_0x229353};}(_0x490c1e);_0x37a6ab['show']({'id':'finalContentPreview','title':c(_0x1c3062,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1c3062,{'dialogRects':_0x80f954}),'onHide':()=>{_0x4ce191['detachFromDom']();},'onShow':()=>{_0x3908f9['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xce9393=>{const _0x3cfad2=this['_standarizeRootsData'](_0xce9393,_0x3908f9,_0x490c1e);_0x37a6ab['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3cfad2,_0x3908f9['config']['get']('trackChanges.preview.renderFunction'));}),_0x4ce191=new _0x36d5ab(_0x1c3062,[_0x37a6ab['view']]),_0x4ce191['attachToDom'](),_0x4ce191['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3908f9['once']('destroy',()=>{_0x4ce191['detachFromDom']();});const _0xfda2bd=_0x37a6ab['view']['headerView']['class'];_0x37a6ab['view']['headerView']['class']=_0xfda2bd?_0xfda2bd+'\x20ck-reset_all':'ck-reset_all',_0x37a6ab['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x37a6ab['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x568fac=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x8a3f19=_0x568fac['previewMode'],_0x302cf7={};if('$labels'===_0x8a3f19){for(const _0x2882b6 of _0x568fac['getMergeFieldsIds']())_0x302cf7[_0x2882b6]=_0x568fac['getLabel'](_0x2882b6)||_0x2882b6;}else{const _0x1ddc46='$defaultValues'===_0x8a3f19?_0x568fac['getDefaultValues']():_0x568fac['getDataSetValues'](_0x8a3f19,!0x0);for(const _0x6143b6 of Object['entries'](_0x1ddc46)){const [_0x50da03,_0x5ab34]=_0x6143b6;_0x302cf7[_0x50da03]=null!==_0x5ab34?_0x5ab34:_0x568fac['getLabel'](_0x50da03)||_0x50da03;}}return{'mergeFieldsData':_0x302cf7};}['_standarizeRootsData'](_0x2ed9da,_0x2cc1a8,_0x4b4280){let _0x5bb9eb;if('string'==typeof _0x2ed9da){const _0x674af4=_0x2cc1a8['model']['document']['getRootNames']()[0x0];_0x5bb9eb={[_0x674af4]:_0x2ed9da};}else _0x5bb9eb=_0x2ed9da;const _0x38e6eb=this['_fixMediaEmbeds'](_0x5bb9eb,_0x2cc1a8),_0x14cfc0=function(_0x2fad5e,_0x4d1509){for(const [_0x2be0f1,_0x278c42]of _0x2fad5e)_0x278c42['classes']=_0x4d1509[_0x2be0f1]['classList']['value']['replace']('ck-focused','');return _0x2fad5e;}(this['_sortRoots'](_0x2cc1a8)['reduce']((_0x12901f,_0x4e348b)=>(_0x12901f['push']([_0x4e348b,{'content':_0x38e6eb[_0x4e348b],'classes':''}]),_0x12901f),[]),_0x4b4280);return _0x14cfc0;}['_fixMediaEmbeds'](_0x453878,_0x183deb){if(!_0x183deb['plugins']['has']('MediaEmbedEditing'))return _0x453878;const _0x5955a4=_0x183deb['plugins']['get']('MediaEmbedEditing');for(const [_0x35196c,_0x469a88]of Object['entries'](_0x453878)){const _0x116b34=document['createElement']('div');_0x116b34['innerHTML']=_0x469a88,(_0x116b34['querySelectorAll']('figure.media')['forEach'](_0x3d5c7e=>{const _0xf1eef2=_0x3d5c7e['querySelector']('oembed');if(_0xf1eef2){const _0x5323df=_0xf1eef2['getAttribute']('url');if(_0x5323df){const _0x1056f2=_0x5955a4['registry']['getMediaViewElement'](new _0x1b7cf1(_0x183deb['editing']['view']['document']),_0x5323df,{'elementName':'','renderForEditingView':!0x0}),_0x55c78a=document['createElement']('div');_0x55c78a['classList']['add']('ck-media__wrapper'),_0x1056f2['render'](_0x55c78a,_0x183deb['editing']['view']['domConverter']),_0xf1eef2['replaceWith'](_0x55c78a);}}}),_0x453878[_0x35196c]=_0x116b34['innerHTML']);}return _0x453878;}['_sortRoots'](_0x45ee57){if(!function(_0x377cbb){return void 0x0!==_0x377cbb['getRootsAttributes'];}(_0x45ee57))return _0x45ee57['model']['document']['getRootNames']();const _0x557bf9=[],_0x562688=new Map();for(const _0xe01e23 of _0x45ee57['model']['document']['getRootNames']()){const _0x388abe=_0x45ee57['editing']['view']['getDomRoot'](_0xe01e23)['getClientRects']()['item'](0x0);_0x557bf9['push'](_0xe01e23),_0x562688['set'](_0xe01e23,_0x388abe);}return _0x557bf9['sort']((_0x1a2f72,_0x277ff2)=>{const _0x11613a=_0x562688['get'](_0x1a2f72),_0x5ad148=_0x562688['get'](_0x277ff2);return _0x11613a['y']-_0x5ad148['y']||_0x11613a['x']-_0x5ad148['x'];}),_0x557bf9;}}class te extends _0x5575fe{static get['requires'](){return[T,_0x1b10b8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40b45d){super(_0x40b45d),_0x40b45d['commands']['add']('previewFinalContent',new re(this['editor'])),_0x40b45d['config']['define']('trackChanges.preview.renderFunction',(_0x588b48,_0x38bd2f)=>{for(const _0x20902a of _0x38bd2f)_0x588b48['appendChild'](_0x20902a);});}}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};