@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250405.0 → 0.0.0-nightly-20250407.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0xf75a64,Plugin as _0x5543a6,PendingActions as _0xe971b5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4f581a,ObservableMixin as _0xd83ec1,uid as _0x25d5a0,priorities as _0xc6f25c,insertToPriorityArray as _0x33c3a3,logWarning as _0x2fb80f,getEnvKeystrokeText as _0x105d0d,FocusTracker as _0x5f3a02,KeystrokeHandler as _0x1a48a0,Collection as _0x212a21}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x207077,IconCancel as _0x2371e1,IconTrackChanges as _0x50eba3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xd37628,View as _0x6ca1cc,ViewCollection as _0x177fd0,FocusCycler as _0xd93ef5,ViewModel as _0x2ac537,createDropdown as _0x4d94ac,SplitButtonView as _0x8d227a,addListToDropdown as _0x4fd256,MenuBarMenuView as _0x331706,MenuBarMenuListView as _0x43292a,ListSeparatorView as _0x5af358,MenuBarMenuListItemView as _0x468583,MenuBarMenuListItemButtonView as _0x3067f9,BodyCollection as _0x1f385a,Dialog as _0x1ea185}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x327c0e,hashObject as _0x526b92,surroundingMarkersDetector as _0xa66937,FOCUS_ANNOTATION_KEYSTROKE as _0x669480,AriaDescriptionView as _0x482e8d,setupThreadKeyboardNavigation as _0x1de87c,trimHtml as ti,UserView as _0x798988,LateFocusButtonView as _0x53595a,getDateTimeFormatter as _0x5e9250,getAllMarkersDomElementsSorted as _0x39b2e,sanitizeEditorConfig as _0x40a73e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x322663,LiveRange as _0x24a0f9,LivePosition as _0xf32cb9,DowncastWriter as _0x45bb38}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x255fa8,toWidget as _0x1add60}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3f5df1,set as _0x484f7f,isEqual as _0x53b5bd,unset as _0x28112b,omit as Ft}from'es-toolkit/compat';import{Delete as _0x1ed0ec,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xa783ec}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3d6ba0}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0xf75a64{['_enabledCommands'];constructor(_0x13a834,_0x508df9){super(_0x13a834),this['_enabledCommands']=_0x508df9,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 _0x440d9d of this['editor']['commands']['commands']())_0x440d9d['affectsData']&&!this['_enabledCommands']['has'](_0x440d9d)&&_0x440d9d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3ef5ed of this['editor']['commands']['commands']())_0x3ef5ed['affectsData']&&!this['_enabledCommands']['has'](_0x3ef5ed)&&_0x3ef5ed['clearForceDisabled']('TrackChangesCommand');}}class O extends _0xf75a64{['_suggestions'];constructor(_0x1dac5d,_0x343dd4){super(_0x1dac5d),this['_suggestions']=_0x343dd4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x29baf1){const _0xd9f32a=this['_suggestions']['get'](_0x29baf1);if(!_0xd9f32a)throw new _0x4f581a('track-changes-accept-suggestion-not-found',this);const _0x457fa5=_0xd9f32a['getRanges']();this['editor']['model']['canEditAt'](_0x457fa5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd9f32a);}}class R extends _0xf75a64{['_suggestions'];constructor(_0x4c4101,_0xa4612a){super(_0x4c4101),this['_suggestions']=_0xa4612a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5e5732){const _0x2996c2=this['_suggestions']['get'](_0x5e5732);if(!_0x2996c2)throw new _0x4f581a('track-changes-discard-suggestion-not-found',this);const _0x2d492=_0x2996c2['getRanges']();this['editor']['model']['canEditAt'](_0x2d492)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2996c2);}}function ls(_0x49411c,_0x77445d){let _0x1bb6df='';return _0x1bb6df+=_0x49411c['split']('*')['map']((_0x337297,_0x23082a)=>_0x23082a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x337297)+'</span>':nn(_0x337297))['join'](''),_0x77445d&&(_0x1bb6df+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x77445d['value']+'\x22\x20title=\x22'+_0x77445d['title']+'\x22></span>'),_0x1bb6df;}function nn(_0x17738d){const _0x45a440=document['createElement']('span');return _0x45a440['innerText']=_0x17738d,_0x45a440['innerHTML'];}function ts(_0xe6b21a){return _0xe6b21a['sort']((_0x1c935e,_0x3c7cd6)=>'deletion'==_0x1c935e['type']&&'deletion'!=_0x3c7cd6['type']?-0x1:'deletion'!=_0x1c935e['type']&&'deletion'==_0x3c7cd6['type']?0x1:0x0);}function to(_0x5ea2e7,_0x543b22){let _0x5ba72,_0x181265=0x0;const _0x39e417=[],_0xc03f1d=_0x543b22['schema'];for(;_0x181265<_0x5ea2e7['length'];){const _0x5196f7=_0x5ea2e7[_0x181265],_0x9ce1f5=_0x5ea2e7[_0x181265+0x1];_0x5ba72||(_0x5ba72=_0x543b22['createPositionBefore'](_0x5196f7)),on(_0x543b22,_0x5196f7,_0x9ce1f5)||(_0x39e417['push'](_0x543b22['createRange'](_0x5ba72,_0xc03f1d['isObject'](_0x5196f7)?_0x543b22['createPositionAfter'](_0x5196f7):_0x543b22['createPositionAt'](_0x5196f7,'end'))),_0x5ba72=null),_0x181265++;}return _0x39e417;}function on(_0x5f54d1,_0x5e1814,_0x2749c4){if(!_0x2749c4)return!0x1;const _0x132a60=_0x5f54d1['createPositionAfter'](_0x5e1814),_0x469dc8=_0x5f54d1['createPositionBefore'](_0x2749c4);return _0x132a60['isTouching'](_0x469dc8);}function rs(_0x355707,_0x1dab15,_0x3e09ae){for(;_0x3e09ae['length'];){const _0x5ab310=_0x3e09ae['splice'](0x0,0x64);_0x355707['change'](()=>{for(const _0x2d0f92 of _0x5ab310)_0x2d0f92['isInContent']&&_0x1dab15['execute'](_0x2d0f92['id']);});}}class x extends _0xf75a64{['_command'];['_suggestions'];constructor(_0x223250,_0x4758e0,_0x2ef41b){super(_0x223250),this['_command']=_0x4758e0,this['_suggestions']=_0x2ef41b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b89be=Array['from'](this['_suggestions']['values']())['some'](_0x3dd6f9=>_0x3dd6f9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3b89be;}['execute'](){const _0x14403a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x25a152 of _0x14403a){const _0x358427=_0x25a152['getRanges']();if(!this['editor']['model']['canEditAt'](_0x358427))return;}rs(this['editor']['model'],this['_command'],_0x14403a);}}class E extends _0xf75a64{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x511db8,_0x35eebe,_0x43d37c){super(_0x511db8),this['_command']=_0x35eebe,this['_suggestions']=_0x43d37c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdbb2aa=this['editor']['model']['document']['selection'],_0x374c40=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x90100e,_0x302608){const _0x29fc3d=Array['from'](_0x90100e['getRanges']()),_0x2694ba=new Set();for(const _0xb15793 of _0x302608)if(_0xb15793['isInContent']){for(const _0x3e839b of _0x29fc3d)for(const _0x1de6b2 of _0xb15793['getRanges']())(_0x3e839b['isIntersecting'](_0x1de6b2)||_0x90100e['isCollapsed']&&!_0xb15793['isMultiRange']&&_0xb15793['next']&&_0x1de6b2['end']['isTouching'](_0x3e839b['start']))&&_0x2694ba['add'](_0xb15793);}return _0x2694ba;}(_0xdbb2aa,_0x374c40),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x56c205=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3dc85f of _0x56c205){const _0x1e6ce0=_0x3dc85f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e6ce0))return;}rs(this['editor']['model'],this['_command'],_0x56c205);}}class o extends/* #__PURE__ -- @preserve */
24
- _0xd83ec1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3ad1de,_0x3aeef7){super(),this['id']=_0x3aeef7['id'],this['type']=_0x3aeef7['type'],this['subType']=_0x3aeef7['subType']||null,this['author']=_0x3aeef7['author'],this['creator']=_0x3aeef7['creator']||_0x3aeef7['author'],this['isExternal']=Boolean(_0x3aeef7['attributes']&&_0x3aeef7['attributes']['@external']),this['data']=null,this['_model']=_0x3ad1de,this['_onAccept']=_0x3aeef7['onAccept'],this['_onDiscard']=_0x3aeef7['onDiscard'],this['_onAttributesChange']=_0x3aeef7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3aeef7['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 _0x1f278f=this;for(;_0x1f278f['previous'];)_0x1f278f=_0x1f278f['previous'];return _0x1f278f;}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'](_0x5ca783){this['_markerNames']['add'](_0x5ca783);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x30aa25=>this['_model']['markers']['get'](_0x30aa25))['filter'](_0xc75926=>_0xc75926);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x6d388e=>{for(const _0x558e53 of this['getMarkers']())_0x6d388e['removeMarker'](_0x558e53);}),this['_markerNames']['clear']();}['removeMarker'](_0x33d410){this['_model']['change'](_0x151325=>{_0x151325['removeMarker'](_0x33d410);}),this['_markerNames']['delete'](_0x33d410);}['addRange'](_0x30b692){const _0x514f3e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x514f3e),this['_model']['change'](_0x221841=>{_0x221841['addMarker'](_0x514f3e,{'range':_0x30b692,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x55a845){for(const _0xf20ae1 of this['getRanges']())if(_0xf20ae1['isIntersecting'](_0x55a845))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5bd143=>_0x5bd143['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xc8b40a,_0xd8fc21)=>[..._0xc8b40a,..._0xd8fc21['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x15e41e=this['getRanges']();if(0x1!=_0x15e41e['length'])return null;const _0x13ab10=_0x15e41e[0x0],_0x4286f8=_0x13ab10['start']['nodeAfter'],_0x2a9f59=_0x13ab10['end']['nodeBefore'];return _0x4286f8 instanceof _0x322663?_0x4286f8!=_0x2a9f59?null:_0x4286f8: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 _0x4fbbbc=[];let _0x57c81d=this['head'];for(;_0x57c81d;)_0x4fbbbc['push'](_0x57c81d),_0x57c81d=_0x57c81d['next'];return _0x4fbbbc;}['setAttribute'](_0x30df56,_0x2b31e5){const _0x52abe8=_0x3f5df1(this['attributes']);_0x484f7f(_0x52abe8,_0x30df56,_0x2b31e5),_0x53b5bd(_0x52abe8,this['attributes'])||(this['attributes']=_0x52abe8,this['_onAttributesChange'](_0x52abe8));}['removeAttribute'](_0x3877ba){const _0x119b2e=_0x3f5df1(this['attributes']);_0x28112b(_0x119b2e,_0x3877ba),_0x53b5bd(_0x119b2e,this['attributes'])||(this['attributes']=_0x119b2e,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 _0x25d5a0()['substr'](0x1,0x5);}}function c(_0x41e894,_0x499c8b,_0x3b8eae){const _0x4f335f=_0x41e894['t'],t=_0x41e894['t'];switch(_0x499c8b){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',_0x3b8eae);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3b8eae);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3b8eae);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3b8eae);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3b8eae);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',_0x3b8eae);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3b8eae);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',_0x3b8eae);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3b8eae);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3b8eae);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3b8eae);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3b8eae);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3b8eae);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3b8eae);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3b8eae);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3b8eae);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3b8eae);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3b8eae);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3b8eae);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3b8eae);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3b8eae);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3b8eae);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3b8eae);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3b8eae);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3b8eae);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3b8eae);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3b8eae);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3b8eae);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3b8eae);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3b8eae);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3b8eae);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3b8eae);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3b8eae);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3b8eae);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'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3b8eae);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3b8eae);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 _0x4f335f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3b8eae);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4f335f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3b8eae);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3b8eae);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'},_0x3b8eae);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'},_0x3b8eae);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'},_0x3b8eae);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x499c8b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2a7e20,_0x311cad){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2a7e20,this['_locale']=_0x311cad;}['getDescriptions'](_0x39e890){const _0x257609=[],_0x259939=new Set(),_0x1b3754=new Set();for(let _0x1d318d=0x0;_0x1d318d<_0x39e890['length'];_0x1d318d++){const _0x404d27=_0x39e890[_0x1d318d];if(!_0x404d27['isInContent'])continue;const _0xbc0bb3=this['_handleCustomCallbackDescription'](_0x404d27);if(_0xbc0bb3){if(null!=_0x404d27['subType']){if(_0x259939['has'](_0x404d27['subType']))continue;_0x259939['add'](_0x404d27['subType']);}_0x257609['push'](_0xbc0bb3);}else{if('attribute'!=_0x404d27['type'])'insertion'!=_0x404d27['type']&&'deletion'!=_0x404d27['type']||this['_handleInsertRemoveSuggestionDescription'](_0x257609,_0x404d27,_0x39e890[_0x1d318d+0x1]);else{const _0xcccab8=_0x404d27['data']['key'];if(_0x1b3754['has'](_0xcccab8))continue;_0x1b3754['add'](_0x404d27['data']['key']),_0xcccab8==u?this['_handleRenameSuggestionDescription'](_0x257609,_0x404d27):this['_handleAttributeSuggestionDescription'](_0x257609,_0x404d27);}}}return this['_resolveDescriptionItems'](_0x257609);}['registerDescriptionCallback'](_0x33a93f){this['_customCallbacks']['push'](_0x33a93f);}['registerElementLabel'](_0x1ea8dd,_0x2f37c1,_0x2c01d1=_0xc6f25c['normal']){'function'==typeof _0x1ea8dd?_0x33c3a3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1ea8dd,'label':_0x2f37c1,'priority':_0x2c01d1}):this['_itemLabels']['set'](_0x1ea8dd,_0x2f37c1);}['registerAttributeLabel'](_0x204a23,_0x5d0914){this['_attributeLabels']['set'](_0x204a23,_0x5d0914);}['getItemLabel'](_0x3de5ed,_0x16f589=0x1){let _0x1c52c6;for(const _0x234a4b of this['_itemLabelsCallbacks'])if(_0x234a4b['matchingCallback'](_0x3de5ed)){_0x1c52c6=_0x234a4b['label'];break;}return _0x1c52c6||(_0x1c52c6=this['_itemLabels']['get'](_0x3de5ed['name'])),_0x1c52c6?_0x1c52c6(_0x16f589):0x1!==_0x16f589?_0x16f589+'\x20'+_0x3de5ed['name']+'s':''+_0x3de5ed['name'];}['_addDescriptionItems'](_0x59b0ab,_0x5ce062){const _0x5a6761=_0x5ce062['getFirstRange']()['getWalker'](),_0x2966fb='insertion'==_0x5ce062['type']?'add':'remove';for(const _0x30fd34 of _0x5a6761){const _0x51b942=_0x30fd34['item'],_0x4c4c35=_0x59b0ab[_0x59b0ab['length']-0x1];if(_0x51b942['is']('$textProxy'))_0x4c4c35&&_0x4c4c35['type']['indexOf']('Container')>-0x1&&_0x59b0ab['pop'](),_0x4c4c35&&'text'==_0x4c4c35['type']?_0x4c4c35[_0x2966fb]+=_0x51b942['data']:_0x59b0ab['push']({'type':'text','add':'add'==_0x2966fb?_0x51b942['data']:'','remove':'remove'==_0x2966fb?_0x51b942['data']:''});else{if(this['_schema']['isObject'](_0x51b942)){const _0x1fc6b9=_0x51b942;if(_0x4c4c35&&_0x4c4c35['type']['indexOf']('Container')>-0x1&&_0x59b0ab['pop'](),'elementEnd'==_0x30fd34['type'])continue;_0x4c4c35&&_0x4c4c35['type']==_0x2966fb+'Object'&&_0x4c4c35['element']['name']==_0x1fc6b9['name']?_0x4c4c35['quantity']++:_0x59b0ab['push']({'type':_0x2966fb+'Object','element':_0x1fc6b9,'quantity':0x1}),_0x5a6761['skip'](_0x2fa4ed=>!('elementEnd'==_0x2fa4ed['type']&&_0x2fa4ed['item']==_0x51b942));}else{if(this['_schema']['checkChild'](_0x51b942,'$text')||_0x51b942['is']('element','softBreak')){const _0x45ad77=_0x51b942;if('add'==_0x2966fb&&'elementStart'==_0x30fd34['type']||'remove'==_0x2966fb&&'elementEnd'==_0x30fd34['type'])continue;if(_0x4c4c35&&-0x1==_0x4c4c35['type']['indexOf']('Container')){'text'==_0x4c4c35['type']&&(_0x4c4c35[_0x2966fb]+='\x0a');continue;}let _0x5b4901;if(_0x5b4901='add'==_0x2966fb?_0x45ad77['nextSibling']&&!this['_schema']['isObject'](_0x45ad77['nextSibling'])?_0x45ad77['nextSibling']:null:_0x45ad77['previousSibling']&&!this['_schema']['isObject'](_0x45ad77['previousSibling'])?_0x45ad77['previousSibling']:null,_0x45ad77['isEmpty']||_0x5b4901&&_0x5b4901['isEmpty']){const _0x3585fa=_0x5b4901&&_0x5b4901['isEmpty']?_0x5b4901:_0x45ad77;_0x4c4c35&&_0x4c4c35['type']==_0x2966fb+'EmptyContainer'&&_0x4c4c35['element']['name']==_0x3585fa['name']?_0x4c4c35['quantity']++:_0x59b0ab['push']({'type':_0x2966fb+'EmptyContainer','element':_0x3585fa,'quantity':0x1});}else _0x59b0ab['push']({'type':_0x2966fb+'Container','element':_0x45ad77});}}}}}['_resolveDescriptionItems'](_0xd6a333){const _0x349472=this['_locale'],_0x226d56=[],_0x185076=[],_0x352b2d=[];for(const _0x1d18ea of _0xd6a333)switch(_0x1d18ea['type']){case'text':if(_0x1d18ea['add']=_0x1d18ea['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1d18ea['remove']=_0x1d18ea['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1d18ea['add']&&''!=_0x1d18ea['remove']){_0x226d56['push']({'type':'replace','content':c(_0x349472,'REPLACE_TEXT',['\x22'+_0x1d18ea['remove']+'\x22','\x22'+_0x1d18ea['add']+'\x22'])});continue;}if(null!=_0x1d18ea['add']['match'](/^ +$/)){_0x226d56['push']({'type':'insertion','content':c(_0x349472,'*Insert:*\x20%0',c(_0x349472,'ELEMENT_SPACE',_0x1d18ea['add']['length']))});continue;}if(null!=_0x1d18ea['remove']['match'](/^ +$/)){_0x226d56['push']({'type':'deletion','content':c(_0x349472,'*Remove:*\x20%0',c(_0x349472,'ELEMENT_SPACE',_0x1d18ea['remove']['length']))});continue;}if(''!=_0x1d18ea['add']){_0x226d56['push']({'type':'insertion','content':c(_0x349472,'*Insert:*\x20%0','\x22'+_0x1d18ea['add']+'\x22')});continue;}_0x226d56['push']({'type':'deletion','content':c(_0x349472,'*Remove:*\x20%0','\x22'+_0x1d18ea['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x226d56['push']({'type':'insertion','content':c(_0x349472,'*Insert:*\x20%0',this['getItemLabel'](_0x1d18ea['element'],_0x1d18ea['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x226d56['push']({'type':'deletion','content':c(_0x349472,'*Remove:*\x20%0',this['getItemLabel'](_0x1d18ea['element'],_0x1d18ea['quantity']))});continue;case'addContainer':_0x226d56['push']({'type':'insertion','content':c(_0x349472,'*Split:*\x20%0',this['getItemLabel'](_0x1d18ea['element'],_0x1d18ea['quantity']))});continue;case'removeContainer':_0x226d56['push']({'type':'deletion','content':c(_0x349472,'*Merge:*\x20%0',this['getItemLabel'](_0x1d18ea['element'],_0x1d18ea['quantity']))});continue;case'addFormat':_0x185076['push'](_0x1d18ea['key']);continue;case'removeFormat':_0x352b2d['push'](_0x1d18ea['key']);continue;default:_0x226d56['push'](_0x1d18ea);}if(_0x185076['length']){const _0x43d9a0=_0x185076['map'](_0x714b4a=>this['_attributeLabels']['has'](_0x714b4a)?this['_attributeLabels']['get'](_0x714b4a):_0x714b4a)['join'](',\x20');_0x226d56['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x43d9a0)});}if(_0x352b2d['length']){const _0x11dc9f=_0x352b2d['map'](_0x4970f1=>this['_attributeLabels']['has'](_0x4970f1)?this['_attributeLabels']['get'](_0x4970f1):_0x4970f1)['join'](',\x20');_0x226d56['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x11dc9f)});}return _0x226d56;}['_handleCustomCallbackDescription'](_0x5693f4){for(const _0x19deee of this['_customCallbacks']){const _0x39aed3=_0x19deee(_0x5693f4);if(_0x39aed3&&'type'in _0x39aed3)return _0x39aed3;}}['_handleAttributeSuggestionDescription'](_0xcbd1fc,_0x53a97e){const _0x1297ec=_0x53a97e['data'],_0x305051=void 0x0===_0x1297ec['newValue']?'removeFormat':'addFormat';_0xcbd1fc['push']({'type':_0x305051,'key':_0x1297ec['key']});}['_handleRenameSuggestionDescription'](_0x3a3b5c,_0x450bf5){_0x3a3b5c['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x450bf5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2fabfb,_0x17d8d7,_0x1a898e){if(this['_addDescriptionItems'](_0x2fabfb,_0x17d8d7),_0x1a898e&&_0x1a898e['getFirstRange']()&&!_0x17d8d7['getFirstRange']()['end']['isEqual'](_0x1a898e['getFirstRange']()['start'])){const _0x6e73df=_0x2fabfb[_0x2fabfb['length']-0x1],_0x39b737='insertion'==_0x17d8d7['type']?'add':'remove';_0x6e73df&&'text'==_0x6e73df['type']&&(_0x6e73df[_0x39b737]+='\x0a');}}}class U extends _0x5543a6{['afterInit'](){const _0x1d9ee3=this['editor'],_0x345fd6=_0x1d9ee3['plugins']['get']('TrackChangesEditing');_0x1d9ee3['commands']['get']('showAIAssistant')&&_0x345fd6['enableCommand']('showAIAssistant');}}class V extends _0x5543a6{['afterInit'](){const _0x27afb5=this['editor'],_0x21c645=_0x27afb5['locale'];if(!_0x27afb5['plugins']['has']('AlignmentEditing'))return;const _0x487d66=_0x27afb5['plugins']['get']('TrackChangesEditing');_0x487d66['enableDefaultAttributesIntegration']('alignment'),_0x487d66['registerBlockAttribute']('alignment'),_0x487d66['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x21c645,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42df39=this['editor'],_0x445e96=_0x42df39['locale'];_0x42df39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aff62=>{if('formatBlock'!=_0x1aff62['type'])return;const {data:_0x3d4442}=_0x1aff62;if(_0x3d4442&&'alignment'==_0x3d4442['commandName']){const _0x2a5466=_0x3d4442['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x445e96,'*Format:*\x20%0',function(_0x2e38fe){switch(_0x2e38fe){case'left':return c(_0x445e96,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x445e96,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x445e96,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x445e96,'FORMAT_JUSTIFY_TEXT');}}(_0x2a5466))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5543a6{['afterInit'](){const _0x3b4188=this['editor'],_0x2bd32d=_0x3b4188['plugins']['get']('TrackChangesEditing'),_0x3fcaa7=_0x3b4188['locale'];for(const _0x1533af of Zt){if(!_0x3b4188['plugins']['has'](_0x1533af))continue;const _0x162fe4=_0x1533af['slice'](0x0,-0x7)['toLowerCase'](),_0x47af0c='FORMAT_'+_0x162fe4['toUpperCase']();_0x2bd32d['enableDefaultAttributesIntegration'](_0x162fe4),_0x2bd32d['registerInlineAttribute'](_0x162fe4),_0x2bd32d['descriptionFactory']['registerAttributeLabel'](_0x162fe4,c(_0x3fcaa7,_0x47af0c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c531d=this['editor'],_0x3128f8=_0x3c531d['locale'],_0x37e962=_0x3c531d['plugins']['get']('TrackChangesEditing');function _0x8cf666(_0x23a9f7,_0x13d684){_0x37e962['descriptionFactory']['registerDescriptionCallback'](_0x3bd89b=>{if('formatInline'!=_0x3bd89b['type'])return;const {data:_0x52e01c}=_0x3bd89b;return _0x52e01c&&_0x52e01c['commandName']===_0x23a9f7?_0x52e01c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3128f8,'*Format:*\x20%0',_0x13d684)}:{'type':'format','content':c(_0x3128f8,'*Remove\x20format:*\x20%0',_0x13d684)}:void 0x0;});}_0x8cf666('bold',c(_0x3128f8,'FORMAT_BOLD')),_0x8cf666('italic',c(_0x3128f8,'FORMAT_ITALIC')),_0x8cf666('underline',c(_0x3128f8,'FORMAT_UNDERLINE')),_0x8cf666('code',c(_0x3128f8,'FORMAT_CODE')),_0x8cf666('strikethrough',c(_0x3128f8,'FORMAT_STRIKETHROUGH')),_0x8cf666('subscript',c(_0x3128f8,'FORMAT_SUBSCRIPT')),_0x8cf666('superscript',c(_0x3128f8,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5543a6{['afterInit'](){const _0x238a22=this['editor'],_0xc64444=_0x238a22['locale'];if(!_0x238a22['plugins']['has']('BlockQuoteEditing'))return;const _0x59f0e7=_0x238a22['plugins']['get']('TrackChangesEditing'),_0x2ad763=this['editor']['commands']['get']('blockQuote');_0x59f0e7['enableCommand']('blockQuote',(_0x2fca4e,_0x49084b={})=>{const _0x10d3c8=this['editor']['model']['document']['selection'],_0x306fd2=_0x49084b&&void 0x0!==_0x49084b['forceValue']?_0x49084b['forceValue']:!_0x2ad763['value'];let _0x123d69=[];if(_0x306fd2){const _0x1652cf=Array['from'](_0x10d3c8['getSelectedBlocks']())['filter'](_0x516de5=>oo(_0x516de5)||function(_0x3ce396,_0x40cd6f){const _0xd4ac82=_0x40cd6f['checkChild'](_0x3ce396['parent'],'blockQuote'),_0x5d6400=_0x40cd6f['checkChild'](['$root','blockQuote'],_0x3ce396);return _0xd4ac82&&_0x5d6400;}(_0x516de5,this['editor']['model']['schema']));_0x123d69=to(_0x1652cf,_0x238a22['model']);}else{const _0x18f219=Array['from'](_0x10d3c8['getSelectedBlocks']())['filter'](_0x81da0a=>oo(_0x81da0a));_0x123d69=to(_0x18f219,_0x238a22['model']);}_0x238a22['model']['change'](()=>{for(const _0x3d18bb of _0x123d69)_0x59f0e7['markBlockFormat'](_0x3d18bb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x306fd2}]});});}),_0x59f0e7['descriptionFactory']['registerDescriptionCallback'](_0x508354=>{const {data:_0x31e38a}=_0x508354;if(_0x31e38a&&'blockQuote'==_0x31e38a['commandName']){const _0x4f11a=c(_0xc64444,'ELEMENT_BLOCK_QUOTE');return _0x31e38a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xc64444,'*Set\x20format:*\x20%0',_0x4f11a)}:{'type':'format','content':c(_0xc64444,'*Remove\x20format:*\x20%0',_0x4f11a)};}});}}function oo(_0x39bb49){return'blockQuote'==_0x39bb49['parent']['name'];}class L extends _0x5543a6{['afterInit'](){const _0x46f384=this['editor'],_0x2a8ced=_0x46f384['locale'],_0x527b50=_0x46f384['plugins']['get']('TrackChangesEditing');_0x46f384['plugins']['has']('BookmarkEditing')&&(_0x527b50['enableCommand']('insertBookmark'),_0x527b50['enableDefaultAttributesIntegration']('updateBookmark'),_0x527b50['registerBlockAttribute']('bookmarkId'),_0x527b50['descriptionFactory']['registerDescriptionCallback'](_0x2ff8db=>{if('insertion'!=_0x2ff8db['type']&&'deletion'!=_0x2ff8db['type']&&'attribute'!=_0x2ff8db['type'])return;const _0xbd1c4=_0x2ff8db['getContainedElement']();if(null==_0xbd1c4)return;if(!_0xbd1c4['is']('element','bookmark'))return;const _0x3b7c22=_0xbd1c4['getAttribute']('bookmarkId');if('insertion'==_0x2ff8db['type'])return{'type':'insertion','content':c(_0x2a8ced,'*Insert:*\x20%0','\x22'+_0x3b7c22+'\x22\x20'+c(_0x2a8ced,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2ff8db['type'])return{'type':'deletion','content':c(_0x2a8ced,'*Remove:*\x20%0','\x22'+_0x3b7c22+'\x22\x20'+c(_0x2a8ced,'ELEMENT_BOOKMARK'))};const {data:_0x549206}=_0x2ff8db;if(!_0x549206||'bookmarkId'!=_0x549206['key'])return;return{'type':'format','content':c(_0x2a8ced,'*Set\x20bookmark:*\x20%0','\x22'+_0x549206['newValue']+'\x22')};}));}}class J extends _0x5543a6{['afterInit'](){const _0x15497d=this['editor'];_0x15497d['plugins']['has']('CaseChange')&&(_0x15497d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x15497d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x15497d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5543a6{['afterInit'](){const _0x335814=this['editor'];_0x335814['commands']['get']('ckbox')&&_0x335814['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5543a6{['afterInit'](){const _0x119ae5=this['editor'];if(!_0x119ae5['plugins']['has']('CodeBlock'))return;const _0x302d6a=_0x119ae5['plugins']['get']('TrackChangesEditing'),_0x5a0b0d=_0x119ae5['locale'],_0x23200b=_0x119ae5['config']['get']('codeBlock')['languages'],_0x5bd401=_0x119ae5['commands']['get']('codeBlock');_0x302d6a['enableCommand']('indentCodeBlock'),_0x302d6a['enableCommand']('outdentCodeBlock'),_0x302d6a['enableCommand']('codeBlock',(_0x2c9eda,_0x36509c={})=>{const _0x13c718=_0x119ae5['model'],_0x375fef=_0x119ae5['model']['document']['selection'],_0x2fbe22=_0x36509c&&void 0x0!==_0x36509c['forceValue']?_0x36509c['forceValue']:!_0x5bd401['value'];let _0x534305;_0x36509c['language']||(_0x36509c['language']=_0x23200b[0x0]['language']),_0x534305=_0x2fbe22?Array['from'](_0x375fef['getSelectedBlocks']())['filter'](_0x9a3477=>eo(_0x9a3477)||function(_0x58838e,_0x4a64a3){if(_0x58838e['is']('rootElement')||_0x4a64a3['isLimit'](_0x58838e))return!0x1;return _0x4a64a3['checkChild'](_0x58838e['parent'],'codeBlock');}(_0x9a3477,_0x13c718['schema'])):Array['from'](_0x375fef['getSelectedBlocks']())['filter'](_0x38234b=>eo(_0x38234b));const _0x3c15a6=to(_0x534305,_0x13c718);_0x13c718['change'](()=>{for(const _0x1090a7 of _0x3c15a6)_0x302d6a['markBlockFormat'](_0x1090a7,{'commandName':'codeBlock','commandParams':[{..._0x36509c,'forceValue':_0x2fbe22}],'formatGroupId':'blockName'});});}),(_0x302d6a['descriptionFactory']['registerElementLabel']('codeBlock',_0x2953be=>c(_0x5a0b0d,'ELEMENT_CODE_BLOCK',_0x2953be)),_0x302d6a['descriptionFactory']['registerDescriptionCallback'](_0x1efe93=>{if('formatBlock'!=_0x1efe93['type'])return;const _0xad7ac7=_0x5a0b0d['t'],{data:_0x4afb17}=_0x1efe93;if(!_0x4afb17||'codeBlock'!=_0x4afb17['commandName'])return;const _0x263e0d=_0x4afb17['commandParams'][0x0]['language'],_0x56909e=_0xad7ac7(_0x23200b['find'](_0x1b60bd=>_0x1b60bd['language']===_0x263e0d)['label'])['toLowerCase']();return _0x4afb17['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5a0b0d,'*Set\x20format:*\x20%0',c(_0x5a0b0d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x56909e+')')}:{'type':'format','content':c(_0x5a0b0d,'*Remove\x20format:*\x20%0',c(_0x5a0b0d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5bb71f){return'codeBlock'==_0x5bb71f['name'];}class q extends _0x5543a6{['afterInit'](){const _0x1d3099=this['editor'];if(!_0x1d3099['plugins']['has']('CommentsEditing'))return;_0x1d3099['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2e91a8,_0x1a81aa,_0x2271bf){const _0x4c0d5d=[];for(const _0x18e939 of _0x1a81aa['getItems']())_0x18e939['hasAttribute'](_0x2e91a8)&&_0x4c0d5d['push'](_0x2271bf['createRangeOn'](_0x18e939));return _0x4c0d5d;}function Fe(_0x15cced,_0x1fe86b,{showActiveMarker:_0x51d983=!0x0}={}){const _0x848300=_0x15cced['plugins']['get']('TrackChangesEditing');return(_0x45a585,_0x594f30,_0x2d3380)=>{if(!_0x2d3380['consumable']['test'](_0x594f30['markerRange'],_0x45a585['name']))return;const _0x48a07f=_0x594f30['markerRange']['getWalker'](),_0x3b95b0=_0x594f30['markerRange']['start'],_0x49e216=_0x15cced['model']['schema'];let _0x39c0ee=null,_0x2e145f=null,_0x47ad69=!0x1,_0x39ad07=!0x1;for(const _0x543c42 of _0x48a07f){const _0x472b1b=_0x543c42['item'];_0x47ad69=_0x47ad69||_0x49e216['isContent'](_0x472b1b);const _0x28eaee=_0x2d3380['mapper']['toViewElement'](_0x472b1b);if(_0x28eaee&&_0x28eaee['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x543c42['type']&&(_0x49e216['isBlock'](_0x472b1b)&&!_0x49e216['isLimit'](_0x472b1b)&&(_0x472b1b['nextSibling']||_0x3b95b0['isAtEnd']?_0x39c0ee&&_0x39c0ee['parent']==_0x472b1b||(_0x39c0ee=_0x472b1b,_0x84df0d(_0x543c42['previousPosition']),_0x39ad07=!0x0):_0x2e145f=_0x2e145f||_0x543c42['previousPosition']));}function _0x84df0d(_0x40e8d4){const {authorId:_0x582aea}=_0x848300['_splitMarkerName'](_0x594f30['markerName']),_0x227b16=_0x2d3380['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1fe86b,'data-author-id':_0x582aea}),_0x59e70e=_0x2d3380['mapper']['toViewPosition'](_0x40e8d4);_0x51d983&&_0x848300['activeMarkers']['includes'](_0x594f30['markerName'])&&_0x2d3380['writer']['addClass']('ck-suggestion-marker--active',_0x227b16),_0x2d3380['writer']['insert'](_0x59e70e,_0x227b16),_0x2d3380['mapper']['bindElementToMarker'](_0x227b16,_0x594f30['markerName']);}_0x47ad69||_0x39ad07||!_0x2e145f||_0x84df0d(_0x2e145f);};}class z extends _0x5543a6{static get['requires'](){return[_0x1ed0ec];}['init'](){const _0x249364=this['editor'],_0x1629a5=_0x249364['plugins']['get']('TrackChangesEditing');_0x1629a5['enableCommand']('delete');const _0x5bf4b4=_0x249364['commands']['get']('deleteForward');_0x1629a5['enableCommand']('deleteForward',(_0xb80685,_0x335eeb={})=>{const _0x3161ac=_0x249364['model']['createSelection'](_0x249364['model']['document']['selection']);_0x3161ac['isCollapsed']&&_0x249364['model']['modifySelection'](_0x3161ac,{'direction':'forward','unit':_0x335eeb['unit']});const _0x1d623e=_0x3161ac['getFirstRange'](),_0x5b4e9b=_0x24a0f9['fromRange'](_0x1d623e);let _0x291d57;_0xb80685(_0x335eeb),_0x291d57='$graveyard'==_0x5b4e9b['root']['rootName']?_0x249364['model']['createRange'](_0x1d623e['start']):_0x249364['model']['createRange'](_0x5b4e9b['start'],_0x5b4e9b['end']),_0x5b4e9b['detach'](),_0x249364['model']['enqueueChange'](_0x5bf4b4['buffer']['batch'],_0x51d29c=>{_0x5bf4b4['buffer']['lock'](),_0x51d29c['setSelection'](_0x51d29c['createRange'](_0x291d57['end'])),_0x5bf4b4['buffer']['unlock']();});}),_0x249364['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x249364,'merge'),{'priority':'high'}),_0x249364['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x50de61,_0x5e88a4,_0x1715a6)=>{_0x1715a6['options']['showSuggestionHighlights']&&Fe(_0x249364,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x50de61,_0x5e88a4,_0x1715a6);},{'priority':'high'}),_0x249364['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4b7a06,_0x51e067,_0x502ec9)=>{const _0x3f768c=_0x502ec9['mapper']['markerNameToElements'](_0x51e067['markerName']);if(_0x3f768c){for(const _0x47e685 of _0x3f768c)_0x47e685['is']('uiElement')&&(_0x502ec9['mapper']['unbindElementFromMarkerName'](_0x47e685,_0x51e067['markerName']),_0x502ec9['writer']['remove'](_0x47e685));}},{'priority':'high'});}}class W extends _0x5543a6{['afterInit'](){const _0x4cd18a=this['editor'];if(!_0x4cd18a['plugins']['has']('ListEditing'))return;const _0x4d4099=_0x4cd18a['locale'],_0x3d5656=_0x4cd18a['plugins']['get']('TrackChangesEditing'),_0x316107=_0x4cd18a['plugins']['has']('TodoListEditing'),_0x10e277=!!_0x4cd18a['config']['get']('list.multiBlock');function _0x10c47b(_0x50e4db){return{'type':'format','content':''+c(_0x4d4099,'*Set\x20format:*\x20%0',_0x50e4db)};}function _0x493dc5(_0x2812bc){return{'type':'format','content':''+c(_0x4d4099,'*Remove\x20format:*\x20%0',_0x2812bc)};}_0x3d5656['enableDefaultAttributesIntegration']('numberedList'),_0x3d5656['enableDefaultAttributesIntegration']('bulletedList'),_0x3d5656['enableDefaultAttributesIntegration']('customNumberedList'),_0x3d5656['enableDefaultAttributesIntegration']('customBulletedList'),_0x3d5656['enableDefaultAttributesIntegration']('indentList'),_0x3d5656['enableDefaultAttributesIntegration']('outdentList'),_0x3d5656['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3d5656['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3d5656['registerBlockAttribute']('listItemId'),_0x3d5656['registerBlockAttribute']('listType'),_0x3d5656['registerBlockAttribute']('listIndent'),_0x10e277&&(_0x3d5656['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3d5656['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x316107&&(_0x3d5656['enableDefaultAttributesIntegration']('todoList'),_0x3d5656['enableDefaultAttributesIntegration']('checkTodoList'),_0x3d5656['registerBlockAttribute']('todoListChecked'),_0x3d5656['descriptionFactory']['registerDescriptionCallback'](_0x9317d1=>{const {data:_0x468500}=_0x9317d1;if(_0x468500&&'todoListChecked'==_0x468500['key'])return{'type':'format','content':_0x468500['newValue']?c(_0x4d4099,'*Check\x20item*'):c(_0x4d4099,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3ff9be=>{if(_0x3ff9be['batch']['isUndo'])return!0x1;let _0x51e109=!0x1;const _0x124e49=_0x3d5656['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2554ef=>'todoListChecked'===_0x3d5656['_getAttributeKey'](_0x2554ef));for(const _0x31fdfc of _0x124e49){'todo'!=_0x31fdfc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3d5656['_findSuggestions'](_0x31fdfc['getFirstRange'](),'attribute')['find'](_0x359641=>'listType'===_0x3d5656['_getAttributeKey'](_0x359641['suggestion']))||(_0x3ff9be['removeMarker'](_0x31fdfc['getFirstMarker']()),_0x51e109=!0x0));}return _0x51e109;})),_0x3d5656['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4d4099,'FORMAT_INDENT'));const _0x588393={'type':'format','content':''};_0x3d5656['descriptionFactory']['registerDescriptionCallback'](_0x63af04=>{const {data:_0x32ddf5}=_0x63af04;if(!_0x32ddf5||'listType'!=_0x32ddf5['key'])return;let _0x5d56be=_0x63af04['head'];for(;_0x5d56be;){if(_0x5d56be['data']&&(('listStyle'==_0x5d56be['data']['key']||'listMarkerStyle'==_0x5d56be['data']['key'])&&(_0x5d56be['data']['newValue']&&'default'!=_0x5d56be['data']['newValue']||'default'!=_0x5d56be['data']['oldValue']&&!_0x32ddf5['newValue'])||!_0x10e277&&_0x5d56be['data']['key']==u))return _0x588393;_0x5d56be=_0x5d56be['next'];}if(null==_0x32ddf5['newValue'])switch(_0x32ddf5['oldValue']){case'bulleted':return _0x493dc5(c(_0x4d4099,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x493dc5(c(_0x4d4099,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x493dc5(c(_0x4d4099,'ELEMENT_TODO_LIST'));}switch(_0x32ddf5['newValue']){case'bulleted':return _0x10c47b(c(_0x4d4099,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10c47b(c(_0x4d4099,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10c47b(c(_0x4d4099,'ELEMENT_TODO_LIST'));}}),_0x3d5656['descriptionFactory']['registerDescriptionCallback'](_0x2da93b=>{const {data:_0x30a76e}=_0x2da93b;if(_0x30a76e&&'listIndent'==_0x30a76e['key'])return null==_0x30a76e['newValue']||null==_0x30a76e['oldValue']&&0x0==_0x30a76e['newValue']?_0x588393:void 0x0;}),_0x3d5656['descriptionFactory']['registerDescriptionCallback'](_0x436318=>{if('attribute'!=_0x436318['type'])return;const {data:_0x54b936}=_0x436318;if(!_0x54b936||'listItemId'!=_0x54b936['key'])return;const _0x590899=Te(_0x436318);return'newValue'==_0x590899?{'type':'format','content':c(_0x4d4099,'*Merge:*\x20list\x20item')}:'oldValue'==_0x590899?{'type':'format','content':c(_0x4d4099,'*Split:*\x20list\x20item')}:_0x588393;}),_0x4cd18a['model']['document']['registerPostFixer'](_0x3adc28=>this['listItemIdFixer'](_0x3adc28)),_0x4cd18a['model']['document']['registerPostFixer'](_0x410aeb=>this['noTrackChangesFixer'](_0x410aeb)),_0x4cd18a['model']['document']['on']('change:data',(_0x1dbddb,_0x5ac0fd)=>{if(_0x5ac0fd['isUndo']||!_0x5ac0fd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1078ab){if(_0x1078ab['batch']['isUndo']||!_0x1078ab['batch']['isLocal'])return!0x1;let _0x5a67f2=!0x1;const _0x33f5a4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x196114=>_0x196114['data']&&'listItemId'==_0x196114['data']['key'])['filter'](_0x353b3d=>_0x353b3d['data']['newValue']&&_0x353b3d['data']['oldValue']);for(const _0x5958c6 of _0x33f5a4)Te(_0x5958c6)||(_0x1078ab['removeMarker'](_0x5958c6['getFirstMarker']()),_0x5a67f2=!0x0);return _0x5a67f2;}['noTrackChangesFixer'](_0xaccf1b){if(_0xaccf1b['batch']['isUndo']||!_0xaccf1b['batch']['isLocal'])return!0x1;const _0x2b4fff=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2b4fff['trackChangesCommand']['value'])return!0x1;let _0x4c4c05=!0x1;const _0xe1aca8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3ec0a9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3188a8=>'attribute'==_0x3188a8['type'])['filter'](_0x5d23bb=>_0xe1aca8['includes'](_0x5d23bb['attributeKey']));if(0x0==_0x3ec0a9['length'])return _0x4c4c05;for(const _0x515a6e of _0x3ec0a9){const _0x5467cd=_0x2b4fff['_findSuggestions'](_0x515a6e['range'],'attribute')['filter'](_0x23ec61=>!_0x23ec61['meta']['isNextTo'])['map'](_0x179ae3=>_0x179ae3['suggestion'])['filter'](_0x36cb02=>{const _0xbb1e1e=_0x2b4fff['_getAttributeKey'](_0x36cb02);return _0xe1aca8['includes'](_0xbb1e1e);});if(_0x5467cd['length']){for(const _0x18ebfa of _0x5467cd)_0xaccf1b['removeMarker'](_0x18ebfa['getFirstMarker']());_0x4c4c05=!0x0;}}return _0x4c4c05;}['assureChains'](){const _0x42ea20=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16d20a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x57fa8e;const _0x3eedf0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xab8fb4=>{if(_0xab8fb4['data']['oldRange']||!_0xab8fb4['data']['newRange'])return null;if(!_0xab8fb4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x29de9e}=_0x42ea20['_splitMarkerName'](_0xab8fb4['name']);if(!_0x42ea20['hasSuggestion'](_0x29de9e))return null;const _0x5b421d=_0x42ea20['getSuggestion'](_0x29de9e);return _0x16d20a['includes'](_0x5b421d['data']['key']);})['map'](_0x378a0a=>{const {id:_0x522209}=_0x42ea20['_splitMarkerName'](_0x378a0a['name']),_0x437334=_0x42ea20['getSuggestion'](_0x522209);return _0x57fa8e=_0x437334['attributes']['groupId'],_0x437334['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3eedf0['size'])return;const _0x7b904f=_0x42ea20['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26388e=>'attribute'==_0x26388e['type']&&_0x26388e['data']&&_0x16d20a['includes'](_0x26388e['data']['key'])&&_0x26388e['attributes']['groupId']!=_0x57fa8e)['map'](_0x315415=>({'listItem':_0x315415['getFirstRange']()['start']['nodeAfter'],'groupId':_0x315415['attributes']['groupId']})),_0x43acc9=new Set();for(const {groupId:_0x23e99f,listItem:_0x5b6670}of _0x7b904f)_0x3eedf0['has'](_0x5b6670)&&_0x43acc9['add'](_0x23e99f);for(const _0xaa7c8d of _0x42ea20['getSuggestions']())_0x43acc9['has'](_0xaa7c8d['attributes']['groupId'])&&_0xaa7c8d['setAttribute']('groupId',_0x57fa8e);}['_supportLegacySuggestions'](){const _0x4ba1d7=this['editor'],_0x9ae23e=_0x4ba1d7['locale'],_0x6fe617=_0x4ba1d7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x6fe617['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x57006f,_0x263f43){const _0x45c3bf=[];for(let _0x1d8494 of _0x57006f)_0x1d8494['start']['nodeAfter']===_0x1d8494['end']['parent']&&(_0x1d8494=_0x4ba1d7['model']['createRange'](_0x4ba1d7['model']['createPositionAt'](_0x1d8494['start']['nodeAfter'],0x0))),_0x45c3bf['push'](_0x1d8494);_0x4ba1d7['model']['change'](_0x347f1c=>{const _0x3c78c4=_0x4ba1d7['model']['document']['selection'],_0x4f3177=Array['from'](_0x3c78c4['getRanges']())['map'](_0x124277=>_0x24a0f9['fromRange'](_0x124277));_0x347f1c['setSelection'](_0x45c3bf),_0x4ba1d7['commands']['get'](_0x263f43['commandName'])['refresh'](),_0x263f43['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ba1d7['execute'](_0x263f43['commandName'],..._0x263f43['commandParams']),_0x347f1c['setSelection'](_0x4f3177);for(const _0x1ffefb of _0x4f3177)_0x1ffefb['detach']();});}),_0x6fe617['descriptionFactory']['registerElementLabel'](function(_0x3d5c12){const _0x15d7b9=!_0x4ba1d7['model']['schema']['isObject'](_0x3d5c12),_0x518815=_0x3d5c12['previousSibling'],_0xcd69ed=_0x3d5c12['nextSibling'],_0x3e9608=_0x3d5c12['getAttribute']('listItemId'),_0x248a83=!_0x518815||_0x518815['getAttribute']('listItemId')!==_0x3e9608,_0x224117=!_0xcd69ed||_0xcd69ed['getAttribute']('listItemId')!==_0x3e9608;return _0x15d7b9&&Boolean(_0x3e9608)&&_0x248a83&&_0x224117;},_0x59e630=>c(_0x9ae23e,'ELEMENT_LIST_ITEM',_0x59e630));}['_registerLegacyDescription'](){const _0xb3246c=this['editor'],_0x3bf883=_0xb3246c['locale'];function _0x38ec9(_0x319acb){const _0x4389e0=_0xb3246c['commands']['get']('bulletedList')['value'],_0x1e5cf6=_0xb3246c['commands']['get']('numberedList')['value'];return'numberedList'===_0x319acb?_0x4389e0:_0x1e5cf6;}_0xb3246c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x14786c){if('formatBlock'!=_0x14786c['type'])return;const {data:_0x55d33a}=_0x14786c;if(!_0x55d33a)return;let _0x80a5e1,_0x44e9a0,_0x3aa035,_0x5bc339;switch(_0x55d33a['commandName']){case'bulletedList':_0x3aa035=_0x55d33a['commandParams'][0x0]['forceValue'],_0x5bc339=_0x38ec9(_0x55d33a['commandName']),_0x80a5e1=_0x3aa035?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bc339&&_0xb3246c['config']['get']('list.multiBlock')||(_0x80a5e1='*Change\x20to:*\x20%0'),_0x44e9a0={'type':'format','content':c(_0x3bf883,_0x80a5e1,c(_0x3bf883,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3aa035=_0x55d33a['commandParams'][0x0]['forceValue'],_0x5bc339=_0x38ec9(_0x55d33a['commandName']),_0x80a5e1=_0x3aa035?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bc339&&_0xb3246c['config']['get']('list.multiBlock')||(_0x80a5e1='*Change\x20to:*\x20%0'),_0x44e9a0={'type':'format','content':c(_0x3bf883,_0x80a5e1,c(_0x3bf883,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x80a5e1='*Indent:*\x20%0',_0x44e9a0={'type':'format','content':c(_0x3bf883,_0x80a5e1,c(_0x3bf883,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x80a5e1=function(_0x2b599e){const _0x19d515=_0x2b599e['getFirstRange']();let _0x517a49=_0x19d515['start']['nodeAfter'];for(;_0x517a49&&_0x19d515['containsItem'](_0x517a49);){if(_0x517a49['getAttribute']('listIndent')>0x0)return!0x1;_0x517a49=_0x517a49['nextSibling'];}return!0x0;}(_0x14786c)?c(_0x3bf883,'*Format:*\x20remove\x20from\x20%0',c(_0x3bf883,function(_0x5818f8){return'ELEMENT_'+_0x5818f8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x14786c))):c(_0x3bf883,'*Outdent:*\x20%0',c(_0x3bf883,'ELEMENT_LIST_ITEM')),_0x44e9a0={'type':'format','content':_0x80a5e1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x55d33a['multipleBlocks']&&(_0x80a5e1='*Merge:*\x20%0',_0x44e9a0={'type':'deletion','content':c(_0x3bf883,_0x80a5e1,c(_0x3bf883,'ELEMENT_LIST_ITEM'))});}return _0x44e9a0;});}}function Te(_0x4d96a8){let _0x1eabb6=_0x4d96a8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1eabb6;){const _0x447d44=_0x1eabb6['getAttribute']('listItemId');if(!_0x447d44)return!0x1;if(_0x447d44==_0x4d96a8['data']['newValue'])return'newValue';if(_0x447d44==_0x4d96a8['data']['oldValue'])return'oldValue';_0x1eabb6=_0x1eabb6['previousSibling'];}return!0x1;}class Se extends _0x5543a6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4d03c6=this['editor']['config']['get']('list.properties'),_0x44fdb5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d03c6['styles']&&(_0x44fdb5['enableDefaultAttributesIntegration']('listStyle'),_0x44fdb5['registerBlockAttribute']('listStyle')),_0x4d03c6['reversed']&&(_0x44fdb5['enableDefaultAttributesIntegration']('listReversed'),_0x44fdb5['registerBlockAttribute']('listReversed')),_0x4d03c6['startIndex']&&(_0x44fdb5['enableDefaultAttributesIntegration']('listStart'),_0x44fdb5['registerBlockAttribute']('listStart'));const _0x19942f={'type':'format','content':''};_0x44fdb5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2a43d9=this['editor']['locale'];_0x44fdb5['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2a43d9,'FORMAT_LIST_REVERSED')),_0x44fdb5['descriptionFactory']['registerDescriptionCallback'](_0xc237aa=>{const {data:_0x1c345b}=_0xc237aa;if(_0x1c345b&&'listReversed'==_0x1c345b['key'])return null==_0x1c345b['newValue']||0x0==_0x1c345b['newValue']&&null==_0x1c345b['oldValue']?_0x19942f:void 0x0;}),_0x44fdb5['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2a43d9,'FORMAT_LIST_START')),_0x44fdb5['descriptionFactory']['registerDescriptionCallback'](_0x326ec6=>{const {data:_0x58030a}=_0x326ec6;if(_0x58030a&&'listStart'==_0x58030a['key'])return null==_0x58030a['newValue']||0x1==_0x58030a['newValue']&&null==_0x58030a['oldValue']?_0x19942f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x408f39=>{if(_0x408f39['batch']['isUndo'])return!0x1;let _0x2c32ef=!0x1;const _0x25877f=_0x44fdb5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x201e76=>{const _0xc779c3=_0x44fdb5['_getAttributeKey'](_0x201e76);return'listStart'==_0xc779c3||'listReversed'==_0xc779c3;});for(const _0x1df1c6 of _0x25877f){const _0x255635=_0x1df1c6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x255635||'customNumbered'==_0x255635)continue;_0x44fdb5['_findSuggestions'](_0x1df1c6['getFirstRange'](),'attribute')['find'](_0x309915=>'listType'==_0x44fdb5['_getAttributeKey'](_0x309915['suggestion']))||(_0x408f39['removeMarker'](_0x1df1c6['getFirstMarker']()),_0x2c32ef=!0x0);}return _0x2c32ef;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2e4b4e){const _0x3c7e11=this['editor']['locale'],{data:_0x25e62a}=_0x2e4b4e,_0x3cfbd1={'type':'format','content':''};if(!_0x25e62a||'listStyle'!=_0x25e62a['key'])return;if(!_0x25e62a['oldValue'])return'default'==_0x25e62a['newValue']?_0x3cfbd1:{'type':'format','content':''+c(_0x3c7e11,'*Set\x20format:*\x20%0',c(_0x3c7e11,this['_getTranslationKeyForListStyle'](_0x25e62a['newValue'])))};if(!_0x25e62a['newValue']){if('default'==_0x25e62a['oldValue'])return _0x3cfbd1;let _0x1b99ec=_0x2e4b4e['head'];for(;_0x1b99ec;){if(_0x1b99ec['data']&&'listType'==_0x1b99ec['data']['key']&&_0x1b99ec['data']['newValue'])return _0x3cfbd1;_0x1b99ec=_0x1b99ec['next'];}return{'type':'format','content':''+c(_0x3c7e11,'*Remove\x20format:*\x20%0',c(_0x3c7e11,this['_getTranslationKeyForListStyle'](_0x25e62a['oldValue'])))};}if('default'!=_0x25e62a['newValue'])return{'type':'format','content':''+c(_0x3c7e11,'*Set\x20format:*\x20%0',c(_0x3c7e11,this['_getTranslationKeyForListStyle'](_0x25e62a['newValue'])))};let _0x78bf51=_0x2e4b4e['head'];for(;_0x78bf51;){if(_0x78bf51['data']&&'listType'==_0x78bf51['data']['key']&&_0x78bf51['data']['newValue']&&_0x78bf51['data']['oldValue'])return _0x3cfbd1;_0x78bf51=_0x78bf51['next'];}return{'type':'format','content':c(_0x3c7e11,'*Set\x20format:*\x20%0',c(_0x3c7e11,'ELEMENT_'+_0x2e4b4e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x18e344=this['editor'],_0x23c65c=_0x18e344['locale'];_0x18e344['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x573567=>{if('formatBlock'!=_0x573567['type'])return;const {data:_0x392171}=_0x573567;if(!_0x392171)return;let _0x556fb7,_0x11e444;switch(_0x392171['commandName']){case'listStyle':_0x556fb7='*Change\x20to:*\x20%0',_0x11e444={'type':'format','content':c(_0x23c65c,_0x556fb7,c(_0x23c65c,this['_getTranslationKeyForListStyle'](_0x392171['commandParams'][0x0]['type'])))};break;case'listReversed':_0x556fb7=_0x392171['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x11e444={'type':'format','content':c(_0x23c65c,_0x556fb7)};break;case'listStart':_0x556fb7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11e444={'type':'format','content':c(_0x23c65c,_0x556fb7,_0x392171['commandParams'][0x0]['startIndex'])};}return _0x11e444;});}['_getTranslationKeyForListStyle'](_0xd602e9){return'ELEMENT_'+function(_0x342214){if(_e['includes'](_0x342214))return'bulleted';if(Re['includes'](_0x342214))return'numbered';return null;}(_0xd602e9)['toUpperCase']()+'_LIST_'+_0xd602e9['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5543a6{['afterInit'](){const _0x38b7eb=this['editor'];_0x38b7eb['commands']['get']('emoji')&&_0x38b7eb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5543a6{static get['requires'](){return[_0xa783ec];}['init'](){const _0x3136f1=this['editor'],_0x482b6a=_0x3136f1['plugins']['get']('TrackChangesEditing'),_0x30f892=_0x3136f1['commands']['get']('enter');_0x482b6a['enableCommand']('enter',()=>{_0x3136f1['model']['change'](_0x191ff6=>{const _0xb0a0c7=_0x3136f1['model']['document']['selection'],_0x6344c8=_0xb0a0c7['getFirstPosition'](),_0x50ed7f=_0x24a0f9['fromRange'](_0xb0a0c7['getFirstRange']());if(_0x30f892['enterBlock'](_0x191ff6)){const _0x4c8f7d=_0x3136f1['model']['createPositionAt'](_0x6344c8['parent']['nextSibling'],0x0),_0x54bf0d=_0x191ff6['createRange'](_0x6344c8,_0x4c8f7d);_0x482b6a['markInsertion'](_0x54bf0d);}else _0x191ff6['setSelection'](_0x191ff6['createRange'](_0x50ed7f['end']));_0x50ed7f['detach'](),_0x30f892['fire']('afterExecute',{'writer':_0x191ff6});});}),_0x3136f1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3136f1,'split'),{'priority':'high'}),_0x3136f1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x502417,_0xf7d22c,_0x4d5561)=>{const _0x39b321=_0x4d5561['mapper']['markerNameToElements'](_0xf7d22c['markerName']);if(_0x39b321){for(const _0x1b5104 of _0x39b321)_0x1b5104['hasClass']('ck-suggestion-marker-split')&&(_0x4d5561['mapper']['unbindElementFromMarkerName'](_0x1b5104,_0xf7d22c['markerName']),_0x4d5561['writer']['remove'](_0x1b5104));}},{'priority':'high'}),_0x3136f1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15d8c1,_0xe167fe,_0x5d8323)=>{_0x5d8323['options']['showSuggestionHighlights']&&Fe(_0x3136f1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x15d8c1,_0xe167fe,_0x5d8323);},{'priority':'high'});}}class Z extends _0x5543a6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x350beb=this['editor']['plugins']['get']('TrackChangesEditing');_0x350beb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x350beb['enableCommand']('findNext'),_0x350beb['enableCommand']('findPrevious'),_0x350beb['enableCommand']('replace'),_0x350beb['enableCommand']('replaceAll');}['handleFindCommand'](_0x569f96,_0x5cfd1f,_0x4294f0={}){const _0x3dc352=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x569f96(_0x2808b7=>{let _0x495509=('string'==typeof _0x5cfd1f?_0x3dc352['findByTextCallback'](_0x5cfd1f,_0x4294f0):_0x5cfd1f)(_0x2808b7);Array['isArray'](_0x495509)&&(_0x495509={'results':_0x495509,'searchText':'string'==typeof _0x5cfd1f?_0x5cfd1f:''});const _0x4c31e7=_0x495509['results']['filter'](_0xf673ac=>!0x1===this['_isInDeletionRange'](_0xf673ac,_0x2808b7['item']));return{..._0x495509,'results':_0x4c31e7};},_0x4294f0);}['_isInDeletionRange'](_0x2048bb,_0x29c42a){const _0x48bfdc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29c42a,_0x2048bb['start']),this['editor']['model']['createPositionAt'](_0x29c42a,_0x2048bb['end']));for(const _0x391307 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x48bfdc['getIntersection'](_0x391307['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 _0x5543a6{['afterInit'](){const _0xcf726e=this['editor']['locale'],_0x40c25e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x407681,commandName:_0x39e152}of ro)this['editor']['plugins']['has'](_0x407681)&&(_0x40c25e['enableDefaultAttributesIntegration'](_0x39e152),_0x40c25e['registerInlineAttribute'](_0x39e152));_0x40c25e['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xcf726e,'FORMAT_FONT_SIZE')),_0x40c25e['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xcf726e,'FORMAT_FONT_FAMILY')),_0x40c25e['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xcf726e,'FORMAT_FONT_COLOR')),_0x40c25e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xcf726e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x403170=this['editor'],_0x5d39a0=_0x403170['locale'];_0x403170['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ea50=>{const _0x2d1c94=_0x5d39a0['t'];if('formatInline'!=_0x41ea50['type'])return;const {data:_0xb7351a}=_0x41ea50;if(null!=_0xb7351a){if('fontSize'==_0xb7351a['commandName']){const _0x5772f9=_0xb7351a['commandParams'][0x0]['value'];if(_0x5772f9){const _0x417da3=_0x2d1c94(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x189cf4=>_0x189cf4['model']==_0x5772f9)['title'])['toLowerCase']();return{'type':'format','content':c(_0x5d39a0,'*Set\x20font\x20size:*\x20%0',_0x417da3)};}return{'type':'format','content':c(_0x5d39a0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xb7351a['commandName']){const _0x1ba3a8=_0xb7351a['commandParams'][0x0]['value'];return _0x1ba3a8?{'type':'format','content':c(_0x5d39a0,'*Set\x20font\x20family:*\x20%0',_0x1ba3a8)}:{'type':'format','content':c(_0x5d39a0,'*Reset\x20font\x20family*')};}if('fontColor'==_0xb7351a['commandName']){const _0xf12b73=_0xb7351a['commandParams'][0x0]['value'];if(_0xf12b73){const _0x173dac=_0xd37628(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e5dad=>_0x3e5dad['model']==_0xf12b73);let _0x4d3c40=_0xf12b73,_0x443aff='';return _0x173dac&&(_0x4d3c40=_0x173dac['label'],_0x443aff=_0x2d1c94(_0x4d3c40)['toLowerCase']()),{'type':'format','content':c(_0x5d39a0,'*Set\x20font\x20color:*\x20%0',_0x443aff)['trim'](),'color':{'value':_0xf12b73,'title':_0x443aff||_0x4d3c40}};}return{'type':'format','content':c(_0x5d39a0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xb7351a['commandName']){const _0x3f3400=_0xb7351a['commandParams'][0x0]['value'];if(_0x3f3400){const _0x8b54d4=_0xd37628(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe12b1b=>_0xe12b1b['model']==_0x3f3400);let _0x386627=_0x3f3400,_0x1c206a='';return _0x8b54d4&&(_0x386627=_0x8b54d4['label'],_0x1c206a=_0x2d1c94(_0x386627)['toLowerCase']()),{'type':'format','content':c(_0x5d39a0,'*Set\x20font\x20background\x20color:*\x20%0',_0x1c206a)['trim'](),'color':{'value':_0x3f3400,'title':_0x1c206a||_0x386627}};}return{'type':'format','content':c(_0x5d39a0,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x5543a6{['afterInit'](){const _0x5c8d0f=this['editor'],_0x4cbc9f=_0x5c8d0f['plugins']['get']('TrackChangesEditing'),_0x1eb117=_0x5c8d0f['commands']['get']('copyFormat'),_0x5aa05d=_0x5c8d0f['commands']['get']('pasteFormat');_0x1eb117&&_0x5aa05d&&(_0x4cbc9f['enableDefaultAttributesIntegration']('pasteFormat'),_0x4cbc9f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x136012=this['editor'],_0x20d532=_0x136012['locale'];_0x136012['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308c4a=>{if('formatBlock'!=_0x308c4a['type']&&'formatInline'!=_0x308c4a['type'])return;const {data:_0x91d965}=_0x308c4a;if(_0x91d965&&'pasteFormat'===_0x91d965['commandName']){const _0xe857e2=[],_0xa90f4d=_0x91d965['commandParams'][0x0];for(const [_0x484e5e,_0x213ee6]of Object['entries'](_0xa90f4d))_0xe857e2['push'](so(_0x136012,_0x484e5e,_0x213ee6));return _0xe857e2['length']?{'type':'format','content':c(_0x20d532,'*Set\x20format\x20to:*\x20%0',_0xe857e2['join'](',\x20'))}:{'type':'format','content':c(_0x20d532,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5e5e4e,_0x292f58,_0x57e2b9){const _0x41a697=_0x5e5e4e['locale']['t'],_0x11692f=_0x292f58['split'](/(?=[A-Z])/)['join']('\x20'),_0x4dde38=_0x41a697(_0x11692f['charAt'](0x0)['toUpperCase']()+_0x11692f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x57e2b9)return _0x4dde38;if('fontColor'===_0x292f58||'fontBackgroundColor'===_0x292f58){const _0x22ffb8=_0xd37628(_0x5e5e4e['config']['get']('fontColor.colors'))['find'](_0x22c270=>_0x22c270['model']==_0x57e2b9);return _0x4dde38+'\x20('+(_0x22ffb8?_0x41a697(_0x22ffb8['label'])['toLowerCase']():_0x57e2b9)+')';}if('fontSize'===_0x292f58&&isNaN(parseFloat(_0x57e2b9))){const _0x3e5757=_0x5e5e4e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e5e4e['config']['get']('fontSize.options'))['find'](_0x3677ec=>_0x3677ec['model']==_0x57e2b9);return _0x4dde38+'\x20('+(_0x3e5757?_0x41a697(_0x3e5757['title'])['toLowerCase']():_0x57e2b9)+')';}return _0x4dde38+'\x20('+_0x57e2b9+')';}class nt extends _0x5543a6{['_headingOptions'];['afterInit'](){const _0x5b18aa=this['editor'];if(!_0x5b18aa['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5b18aa['config']['get']('heading.options');const _0x917f91=_0x5b18aa['locale'],_0x5bc2b2=_0x5b18aa['plugins']['get']('TrackChangesEditing');_0x5bc2b2['enableDefaultAttributesIntegration']('heading');for(const _0x5a8b8c of this['_headingOptions'])'paragraph'!=_0x5a8b8c['model']&&_0x5bc2b2['descriptionFactory']['registerElementLabel'](_0x5a8b8c['model'],_0x4d9181=>{const _0x12b7d8=this['_getHeadingLevel'](_0x5a8b8c['model']);return null!==_0x12b7d8?_0x3693d3(_0x4d9181,_0x12b7d8):_0x2074dc(_0x4d9181,_0x5a8b8c['title']);});function _0x3693d3(_0x5aa2a0,_0x52424d){return c(_0x917f91,'ELEMENT_HEADING',[_0x5aa2a0,_0x52424d]);}function _0x2074dc(_0x49d362,_0x29c6ef){return c(_0x917f91,'ELEMENT_HEADING_CUSTOM',[_0x49d362,_0x29c6ef]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x397924=this['editor'],_0xcec508=_0x397924['locale'];function _0x4e365d(_0x394f0c,_0x14642c){return c(_0xcec508,'ELEMENT_HEADING_CUSTOM',[_0x394f0c,_0x14642c]);}_0x397924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37b1ed=>{if('formatBlock'!=_0x37b1ed['type'])return;const {data:_0x10e4be}=_0x37b1ed;if(_0x10e4be&&'heading'==_0x10e4be['commandName']){const _0xf6e67c=_0x10e4be['commandParams'][0x0]['value'],_0x598c31=this['_getHeadingLevel'](_0xf6e67c);if(null!==_0x598c31)return{'type':'format','content':c(_0xcec508,'*Change\x20to:*\x20%0',(_0x2a18f6=0x1,_0x36db82=_0x598c31,c(_0xcec508,'ELEMENT_HEADING',[_0x2a18f6,_0x36db82])))};const _0x2218a0=this['_headingOptions']['find'](_0x34de16=>_0x34de16['model']===_0xf6e67c)['title'];return{'type':'format','content':c(_0xcec508,'*Change\x20to:*\x20%0',_0x4e365d(0x1,_0x2218a0))};}var _0x2a18f6,_0x36db82;});}['_getHeadingLevel'](_0x69be17){const _0x271a23=_0x69be17['match'](/^heading(\d+)/);if(_0x271a23)return _0x271a23[0x1];const _0x208e5a=this['_headingOptions']?.['find'](_0x3a8992=>_0x3a8992['model']==_0x69be17);if(_0x208e5a&&_0x208e5a['view']){const _0x5e6c89=_0x208e5a['view'],_0x576f62=(_0x5e6c89['name']??_0x5e6c89)['match'](/^h(\d+)/);if(_0x576f62)return _0x576f62[0x1];}return null;}}class it extends _0x5543a6{['afterInit'](){const _0x53af9f=this['editor'];if(!_0x53af9f['plugins']['has']('HighlightEditing'))return;const _0x3f6148=_0x53af9f['plugins']['get']('TrackChangesEditing'),_0x4e7f63=_0x53af9f['locale'];_0x3f6148['enableDefaultAttributesIntegration']('highlight'),_0x3f6148['registerInlineAttribute']('highlight'),_0x3f6148['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4e7f63,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52766b=this['editor'],_0x410c9d=_0x52766b['locale'];_0x52766b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53568e=>{if('formatInline'!=_0x53568e['type'])return;const {data:_0x2993ea}=_0x53568e;if(_0x2993ea&&'highlight'==_0x2993ea['commandName']){const _0x55bd17=_0x410c9d['t'],_0x117e80=_0x2993ea['commandParams'][0x0]['value'];if(_0x117e80){const _0x191b2e=_0x52766b['config']['get']('highlight.options')['find'](_0x5a3784=>_0x5a3784['model']==_0x117e80),_0x5a7db6=_0x55bd17(_0x191b2e['title'])['toLowerCase']();return{'type':'format','content':c(_0x410c9d,'*Set\x20highlight:*\x20%0',_0x5a7db6),'color':{'value':_0x191b2e['color'],'title':_0x191b2e['title']}};}return{'type':'format','content':c(_0x410c9d,'*Remove\x20highlight*',c(_0x410c9d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5543a6{['afterInit'](){const _0x12d777=this['editor'];if(!_0x12d777['plugins']['has']('HorizontalLineEditing'))return;_0x12d777['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46c11c=_0x12d777['plugins']['get']('TrackChangesEditing'),_0x31a990=_0x12d777['locale'];_0x46c11c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x7d73ae=>c(_0x31a990,'ELEMENT_HORIZONTAL_LINE',_0x7d73ae)),_0x12d777['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb1d4fc,{writer:_0x5aa791,options:_0xcd8a70})=>{if(!_0xcd8a70['showSuggestionHighlights'])return null;const _0x4d60c8=_0x5aa791['createContainerElement']('div'),_0x3332d2=_0x5aa791['createEmptyElement']('hr');return _0x5aa791['addClass']('ck-horizontal-line',_0x4d60c8),_0x5aa791['insert'](_0x5aa791['createPositionAt'](_0x4d60c8,0x0),_0x3332d2),_0x4d60c8;},'converterPriority':'high'});}}class ot extends _0x5543a6{['afterInit'](){const _0x1bec25=this['editor'];if(!_0x1bec25['plugins']['has']('HtmlEmbed'))return;const _0x62dfd0=_0x1bec25['plugins']['get']('TrackChangesEditing'),_0x12c955=_0x1bec25['locale'];_0x62dfd0['descriptionFactory']['registerElementLabel']('rawHtml',_0x2563b5=>c(_0x12c955,'ELEMENT_HTML_EMBED',_0x2563b5)),_0x62dfd0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x62dfd0['registerBlockAttribute']('value'),_0x62dfd0['descriptionFactory']['registerDescriptionCallback'](_0x5e8bc4=>{if('attribute'!=_0x5e8bc4['type'])return;const {data:_0x28f325}=_0x5e8bc4;if(_0x28f325&&'value'==_0x28f325['key']&&_0x5e8bc4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2dd5ee=c(_0x12c955,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x12c955,'*Change\x20%0\x20content*',_0x2dd5ee)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ec33a=this['editor'],_0x25ebe7=_0x3ec33a['locale'];_0x3ec33a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e0c02=>{if('formatBlock'!=_0x4e0c02['type'])return;const {data:_0x4a69ce}=_0x4e0c02;if(_0x4a69ce&&'htmlEmbed'==_0x4a69ce['commandName']){const _0x2c2f2c=c(_0x25ebe7,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x25ebe7,'*Change\x20%0\x20content*',_0x2c2f2c)};}});}}class rt extends _0x5543a6{['afterInit'](){const _0x56466f=this['editor'];if(!_0x56466f['plugins']['has']('ImageEditing'))return;const _0x2039ac=_0x56466f['plugins']['get']('TrackChangesEditing'),_0x44dc17=_0x56466f['plugins']['get']('ImageUtils'),_0x230f81=_0x56466f['locale'];_0x2039ac['enableCommand']('insertImage'),_0x2039ac['descriptionFactory']['registerElementLabel']('imageBlock',_0x2afd32=>c(_0x230f81,'ELEMENT_IMAGE',_0x2afd32)),_0x2039ac['descriptionFactory']['registerElementLabel']('imageInline',_0x581a00=>c(_0x230f81,'ELEMENT_INLINE_IMAGE',_0x581a00)),_0x2039ac['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x230f81,'ELEMENT_CAPTION')),_0x56466f['plugins']['has']('ImageUploadEditing')&&_0x2039ac['enableCommand']('uploadImage'),_0x56466f['plugins']['has']('ImageBlockEditing')&&_0x56466f['plugins']['has']('ImageInlineEditing')&&(_0x2039ac['enableCommand']('imageTypeInline',(_0x10b112,_0x5630e6)=>{const _0x52becf=_0x44dc17['getClosestSelectedImageElement'](_0x56466f['model']['document']['selection']);_0x56466f['model']['change'](()=>{_0x2039ac['markBlockFormat'](_0x52becf,{'commandName':'imageTypeInline','commandParams':[_0x5630e6]},[],'convertBlockImageToInline');});}),_0x2039ac['enableCommand']('imageTypeBlock',(_0x5537d2,_0x34b576)=>{_0x56466f['model']['change'](_0x51c8bb=>{let _0x515365=_0x44dc17['getClosestSelectedImageElement'](_0x56466f['model']['document']['selection']),_0x4e7748=_0x51c8bb['createRangeOn'](_0x515365);const _0x3d66df=_0xf32cb9['fromPosition'](_0x4e7748['start'],'toPrevious'),_0x3d9912=_0xf32cb9['fromPosition'](_0x4e7748['end'],'toNext');_0x2039ac['forceDefaultExecution'](()=>_0x5537d2(_0x34b576)),_0x515365=_0x44dc17['getClosestSelectedImageElement'](_0x56466f['model']['document']['selection']),_0x4e7748=_0x51c8bb['createRangeOn'](_0x515365);const _0x5b5f90=_0x51c8bb['createRange'](_0x3d66df,_0x3d9912);_0x3d66df['detach'](),_0x3d9912['detach'](),_0x2039ac['markBlockFormat'](_0x515365,{'commandName':'imageTypeInline','commandParams':[_0x34b576]},[],'convertInlineImageToBlock'),_0x5b5f90['start']['isBefore'](_0x4e7748['start'])&&_0x2039ac['markInsertion'](_0x51c8bb['createRange'](_0x5b5f90['start'],_0x4e7748['start']),'convertInlineImageToBlock'),_0x4e7748['end']['isBefore'](_0x5b5f90['end'])&&_0x2039ac['markInsertion'](_0x51c8bb['createRange'](_0x4e7748['end'],_0x5b5f90['end']),'convertInlineImageToBlock');});}),_0x2039ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2039ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2039ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2039ac['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2039ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2039ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x555cae])=>{const _0x1c4f6e=_0x2039ac['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5095bb=_0x555cae['start'],_0xe0834=_0x555cae['end'];const _0xebeea2=_0x56466f['model']['schema']['getNearestSelectionRange'](_0x5095bb,'backward'),_0x1f7383=_0x56466f['model']['schema']['getNearestSelectionRange'](_0xe0834,'forward');_0xebeea2['isCollapsed']&&(_0x5095bb=_0xebeea2['start']),_0x1f7383['isCollapsed']&&(_0xe0834=_0x1f7383['end']),_0x1c4f6e([_0x56466f['model']['createRange'](_0x5095bb,_0xe0834)]);}),_0x2039ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3af8d1),_0x2039ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3af8d1)),_0x56466f['plugins']['has']('ImageCaptionEditing')&&(_0x2039ac['enableCommand']('toggleImageCaption',(_0x46f2bf,_0x1152c1)=>{const _0x30260a=_0x56466f['plugins']['get']('ImageCaptionUtils');let _0x55b0a7=_0x44dc17['getClosestSelectedImageElement'](_0x56466f['model']['document']['selection']),_0x36c8d4=_0x30260a['getCaptionFromImageModelElement'](_0x55b0a7);_0x56466f['model']['change'](()=>{if(_0x36c8d4)return void _0x2039ac['markDeletion'](_0x56466f['model']['createRangeOn'](_0x36c8d4));const _0x4b1f04=_0x44dc17['isBlockImage'](_0x55b0a7);_0x46f2bf(_0x1152c1),_0x55b0a7=_0x44dc17['getClosestSelectedImageElement'](_0x56466f['model']['document']['selection']),_0x36c8d4=_0x30260a['getCaptionFromImageModelElement'](_0x55b0a7),_0x2039ac['markInsertion'](_0x56466f['model']['createRangeOn'](_0x36c8d4),_0x4b1f04?null:'imageCaption');});}),_0x2039ac['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3af8d1));const _0x3cd7d1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5d9e09(_0x1697a6,_0x37b980){const _0x5d1a4d=_0x3cd7d1['findIndex'](({type:_0x50b07c,subType:_0x526e94})=>_0x1697a6['type']==_0x50b07c&&_0x1697a6['subType']==_0x526e94),_0x41eaf4=_0x3cd7d1['findIndex'](({type:_0x31c813,subType:_0x2f4da0})=>_0x37b980['type']==_0x31c813&&_0x37b980['subType']==_0x2f4da0);if(_0x5d1a4d<0x0||_0x41eaf4<0x0)return!0x1;const _0x5a99d5=_0x1697a6['getFirstRange'](),_0x10b1d0=_0x37b980['getFirstRange']();if((0x0==_0x5d1a4d||0x1==_0x5d1a4d)&&0x2==_0x41eaf4&&_0x5a99d5['isIntersecting'](_0x10b1d0))return!0x0;if(0x2==_0x5d1a4d&&0x3==_0x41eaf4){const _0x542316=_0x2039ac['_findSuggestions'](_0x5a99d5,'insertion')['filter'](({suggestion:_0x472780,meta:_0x4a8049})=>_0x4a8049['isOwn']&&'convertInlineImageToBlock'==_0x472780['subType']);if(_0x542316['length']>0x1&&_0x10b1d0['end']['isEqual'](_0x5a99d5['start']))return!0x0;if(0x1==_0x542316['length']&&(_0x5a99d5['start']['isEqual'](_0x10b1d0['end'])||_0x5a99d5['end']['isEqual'](_0x10b1d0['start'])))return!0x0;}if(0x3==_0x5d1a4d&&0x3==_0x41eaf4&&_0x5a99d5['start']['isBefore'](_0x10b1d0['start'])){const _0x5c291e=_0x5a99d5['end']['nodeAfter'],_0x272495=_0x10b1d0['start']['nodeBefore'];return _0x44dc17['isBlockImage'](_0x5c291e)&&_0x5c291e===_0x272495;}return!0x1;}function _0x3af8d1(_0x5ebf2a,_0xf10743){return _0x5d9e09(_0x5ebf2a,_0xf10743)?[_0x5ebf2a,_0xf10743]:_0x5d9e09(_0xf10743,_0x5ebf2a)?[_0xf10743,_0x5ebf2a]:null;}_0x56466f['plugins']['has']('ImageResize')&&(_0x2039ac['enableDefaultAttributesIntegration']('resizeImage'),_0x2039ac['registerBlockAttribute']('resizedWidth'),_0x2039ac['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x230f81,'FORMAT_IMAGE_SIZE'))),_0x56466f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2039ac['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2039ac['registerBlockAttribute']('alt')),_0x56466f['plugins']['has']('PictureEditing')&&(_0x2039ac['registerBlockAttribute']('sources'),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x131052=>{if('attribute'!=_0x131052['type'])return;const {data:_0x5d8128}=_0x131052;return _0x5d8128&&'sources'==_0x5d8128['key']?{'type':'format','content':''}:void 0x0;})),_0x56466f['plugins']['has']('ImageSizeAttributes')&&(_0x2039ac['registerBlockAttribute']('width'),_0x2039ac['registerBlockAttribute']('height'),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x24177a=>{if('attribute'!=_0x24177a['type'])return;const {data:_0x52b383}=_0x24177a;return!_0x52b383||'width'!=_0x52b383['key']&&'height'!=_0x52b383['key']?void 0x0:{'type':'format','content':''};})),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x1bdd79=>{if(!!_0x3cd7d1['find'](({type:_0x410485,subType:_0x5a8ace})=>_0x1bdd79['type']==_0x410485&&_0x1bdd79['subType']==_0x5a8ace))return _0x1bdd79['previous']?{}:void 0x0;}),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x439686=>{if('insertion'==_0x439686['type']||'deletion'==_0x439686['type']){const _0x36197b=_0x439686['getContainedElement']();if(_0x36197b&&_0x36197b['is']('element','caption'))return{'type':'insertion'==_0x439686['type']?'addObject':'removeObject','element':_0x36197b,'quantity':0x1};}}),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x47ac10=>'formatBlock'==_0x47ac10['type']&&'convertInlineImageToBlock'==_0x47ac10['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x47ac10['type']&&'convertBlockImageToInline'==_0x47ac10['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x282995=>{if('attribute'!=_0x282995['type'])return;const {data:_0x353d98}=_0x282995;if(!_0x353d98||'alt'!=_0x353d98['key'])return;const _0x7091=_0x353d98['newValue'];return _0x7091?{'type':'format','content':c(_0x230f81,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7091+'\x22')}:{'type':'format','content':c(_0x230f81,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x149a4a=this['editor'],_0x2786fd=_0x149a4a['locale'];_0x149a4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47f08c=>{if('formatBlock'!=_0x47f08c['type']&&'formatInline'!=_0x47f08c['type'])return;const {data:_0x5e911f}=_0x47f08c;if(_0x5e911f){if('imageTextAlternative'==_0x5e911f['commandName']){const _0x3b58b1=_0x5e911f['commandParams'][0x0]['newValue'];return _0x3b58b1?{'type':'format','content':c(_0x2786fd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b58b1+'\x22')}:{'type':'format','content':c(_0x2786fd,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5e911f['commandName']){const _0x2ee1e4=_0x5e911f['commandParams'][0x0]['width'];return _0x2ee1e4?{'type':'format','content':c(_0x2786fd,'*Set\x20image\x20width:*\x20%0',_0x2ee1e4)}:{'type':'format','content':c(_0x2786fd,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5543a6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x30b5e7=this['editor']['locale'],_0x1e2861=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e2861['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1e2861['registerBlockAttribute']('src'),_0x1e2861['descriptionFactory']['registerDescriptionCallback'](_0x4377b4=>{if('attribute'!=_0x4377b4['type'])return;const {data:_0x21f41b}=_0x4377b4;return _0x21f41b&&'src'==_0x21f41b['key']?_0x21f41b['newValue']&&_0x21f41b['oldValue']?{'type':'format','content':c(_0x30b5e7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x468dd7=this['editor']['plugins']['get']('TrackChangesEditing');_0x468dd7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x468dd7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x468dd7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x468dd7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5334e6=this['editor'],_0x5619bb=_0x5334e6['locale'];_0x5334e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf93cde=>{if('formatBlock'!=_0xf93cde['type']&&'formatInline'!=_0xf93cde['type'])return;const {data:_0x3d1fd3}=_0xf93cde;if(!_0x3d1fd3||'replaceImageSource'!=_0x3d1fd3['commandName'])return;return{'type':'format','content':c(_0x5619bb,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5543a6{['afterInit'](){const _0x5bddb7=this['editor'];if(!_0x5bddb7['plugins']['has']('ImageStyleEditing'))return;const _0xcbd6c2=_0x5bddb7['plugins']['get']('TrackChangesEditing'),_0x3068f1=_0x5bddb7['plugins']['get']('ImageUtils'),_0x2ac91f={};_0xcbd6c2['enableCommand']('imageStyle',(_0x363e12,_0x52ed8b)=>{const _0x4a5884=_0x5bddb7['plugins']['get']('Users')['me'],_0x5ae064=_0x5bddb7['commands']['get']('imageStyle');let _0x4c4cd0=_0x3068f1['getClosestSelectedImageElement'](_0x5bddb7['model']['document']['selection']),_0x58e201=_0x5bddb7['model']['createRangeOn'](_0x4c4cd0),_0x260396=_0x5ae064['value'];if(_0x260396==_0x52ed8b['value'])return;const _0xe5757e={'commandName':'imageStyle','commandParams':[_0x52ed8b],'formatGroupId':_0x25d5a0()};_0x5bddb7['model']['change'](()=>{if(_0xcbd6c2['getSuggestions']()['filter'](_0x3dcd63=>_0x3dcd63['isInContent']&&_0x4a5884==_0x3dcd63['author']&&('formatBlock'==_0x3dcd63['type']||'formatInline'==_0x3dcd63['type'])&&('imageStylePreApply'==_0x3dcd63['subType']||'imageStylePostApply'==_0x3dcd63['subType'])&&_0x3dcd63['getFirstRange']()['isEqual'](_0x58e201))['forEach'](_0x35f8d1=>_0xcbd6c2['discardSuggestion'](_0x35f8d1['head'])),_0x4c4cd0=_0x3068f1['getClosestSelectedImageElement'](_0x5bddb7['model']['document']['selection']),_0x58e201=_0x5bddb7['model']['createRangeOn'](_0x4c4cd0),_0x5ae064['refresh'](),_0x5bddb7['commands']['get']('imageTypeInline')['refresh'](),_0x5bddb7['commands']['get']('imageTypeBlock')['refresh'](),_0x260396=_0x5ae064['value'],_0x260396!=_0x52ed8b['value'])return _0x3068f1['isInlineImage'](_0x4c4cd0)&&_0x5ae064['shouldConvertImageType'](_0x52ed8b['value'],_0x4c4cd0)?(_0x363e12({..._0x52ed8b,'setImageSizes':!0x1}),_0x4c4cd0=_0x3068f1['getClosestSelectedImageElement'](_0x5bddb7['model']['document']['selection']),void _0xcbd6c2['markBlockFormat'](_0x4c4cd0,{..._0xe5757e,'commandReversedParams':[{'value':_0x260396||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3068f1['isBlockImage'](_0x4c4cd0)?_0xcbd6c2['markBlockFormat'](_0x4c4cd0,_0xe5757e,[],'imageStylePostApply'):_0xcbd6c2['markInlineFormat'](_0x58e201,_0xe5757e,'imageStylePostApply'));});});for(const _0x1344ab of _0x5bddb7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2ac91f[_0x1344ab['name']]=_0x1344ab['title']['toLowerCase']();_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xb7fd18])=>{_0x3068f1['setImageNaturalSizeAttributes'](_0xb7fd18['getContainedElement']());}),_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x326f8e,_0x49b3c4)=>{_0xcbd6c2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x326f8e,{'commandName':_0x49b3c4['commandName'],'commandParams':_0x49b3c4['commandReversedParams']});}),_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x249988,_0x5da8d9){if(_0x291b9f(_0x249988,_0x5da8d9))return[_0x249988,_0x5da8d9];if(_0x291b9f(_0x5da8d9,_0x249988))return[_0x5da8d9,_0x249988];return null;});const _0x5d5298=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x291b9f(_0x3c3af3,_0x33a7d4){const _0x4abdd2=_0x5d5298['findIndex'](({type:_0x97777e,subType:_0x36ad21})=>_0x3c3af3['type']==_0x97777e&&_0x3c3af3['subType']==_0x36ad21),_0x494d71=_0x5d5298['findIndex'](({type:_0x34ed3f,subType:_0x475796})=>_0x33a7d4['type']==_0x34ed3f&&_0x33a7d4['subType']==_0x475796);if(_0x4abdd2<0x0||_0x494d71<0x0)return!0x1;const _0x1ebf16=_0x3c3af3['getFirstRange'](),_0xe4c3a4=_0x33a7d4['getFirstRange']();if((0x0==_0x4abdd2||0x1==_0x4abdd2)&&0x2==_0x494d71&&_0x1ebf16['isIntersecting'](_0xe4c3a4))return!0x0;if(0x2==_0x4abdd2&&0x3==_0x494d71){const _0x16a491=_0xcbd6c2['_findSuggestions'](_0x1ebf16,'insertion')['filter'](({suggestion:_0x184ac9,meta:_0x28df8f})=>_0x28df8f['isOwn']&&'convertInlineImageToBlock'==_0x184ac9['subType']);if(_0x16a491['length']>0x1&&_0xe4c3a4['end']['isEqual'](_0x1ebf16['start']))return!0x0;if(0x1==_0x16a491['length']&&(_0x1ebf16['start']['isEqual'](_0xe4c3a4['end'])||_0x1ebf16['end']['isEqual'](_0xe4c3a4['start'])))return!0x0;}if(0x3==_0x4abdd2&&0x3==_0x494d71&&_0x1ebf16['start']['isBefore'](_0xe4c3a4['start'])){const _0x1e461b=_0x1ebf16['end']['nodeAfter'],_0x3a6d0a=_0xe4c3a4['start']['nodeBefore'];return _0x3068f1['isBlockImage'](_0x1e461b)&&_0x1e461b===_0x3a6d0a;}return!0x1;}_0x5bddb7['model']['document']['registerPostFixer'](()=>{let _0x3a1104=!0x1;const _0x246ded=Array['from'](_0x5bddb7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x492699,data:_0x260388}of _0x246ded){const {group:_0x341a1b,type:_0x267b27,subType:_0x12746e,id:_0x134dcf}=_0xcbd6c2['_splitMarkerName'](_0x492699);if('suggestion'==_0x341a1b&&_0xcbd6c2['hasSuggestion'](_0x134dcf)){if('formatBlock'==_0x267b27&&('imageStylePreApply'==_0x12746e||'imageStylePostApply'==_0x12746e)){const _0x45916f=_0xcbd6c2['getSuggestion'](_0x134dcf);if(_0x260388['newRange']){const _0x5bc12b=_0x45916f['getFirstRange']()['getContainedElement']();if(_0x3068f1['isBlockImage'](_0x5bc12b))continue;_0xcbd6c2['discardSuggestion'](_0x45916f),_0x3a1104=!0x0;}}if('insertion'==_0x267b27&&'imageCaption'==_0x12746e&&!_0x260388['newRange']){const _0x45a00c=_0xcbd6c2['getSuggestion'](_0x134dcf);_0x45a00c['next']&&_0x45a00c['next']['isInContent']&&(_0xcbd6c2['discardSuggestion'](_0x45a00c['next']),_0x3a1104=!0x0);}}}return _0x3a1104;}),this['_registerLegacyDescription'](_0x2ac91f);}['_registerLegacyDescription'](_0x46c14a){const _0x3d85fb=this['editor'],_0x425eff=_0x3d85fb['locale'];_0x3d85fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54be72=>{if('formatBlock'!=_0x54be72['type']&&'formatInline'!=_0x54be72['type'])return;const {data:_0x439b17}=_0x54be72;if(!_0x439b17||'imageStyle'!=_0x439b17['commandName'])return;const _0x3976c3=_0x439b17['commandParams'][0x0]['value'];return _0x9b4fe('side'===_0x3976c3?c(_0x425eff,'FORMAT_SIDE_IMAGE'):_0x46c14a[_0x3976c3]||_0x3976c3);function _0x9b4fe(_0xbd8be9){return{'type':'format','content':c(_0x425eff,'*Format:*\x20%0',_0xbd8be9)};}});}}class ut extends _0x5543a6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x41f63f){super(_0x41f63f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5ad300=this['editor'],_0xc506c0=_0x5ad300['commands']['get']('importWord'),_0xde7413=_0x5ad300['commands']['get']('trackChanges');_0xc506c0&&(_0xc506c0['on']('execute',(_0xd1bca2,[,_0xcb6ee9])=>{this['_trackChangesValueDuringImport']=_0xde7413['value'],_0xcb6ee9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xc506c0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xc506c0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xde7413['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5ad300['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x393955,_0x203c7f){const {suggestions:_0x54fbc5}=_0x203c7f,_0x354ab2=this['editor']['commands']['get']('trackChanges'),_0x12fcdb=_0x354ab2['value'];this['_trackChangesValueDuringImport']!==_0x12fcdb&&(_0x354ab2['execute'](),this['_trackChangesExecuted']=!0x0),_0x54fbc5&&_0x54fbc5['forEach'](({id:_0x1abc20,type:_0x96aa76,author:_0xc9768,created_at:_0x3cfcf3})=>{const _0x13030e={'id':_0x1abc20,'type':_0x96aa76,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xc9768,'createdAt':_0x3cfcf3?new Date(_0x3cfcf3):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x13030e);});}}class ft extends _0x5543a6{['afterInit'](){const _0x44bf30=this['editor'],_0x3f752d=_0x44bf30['plugins']['get']('TrackChangesEditing');if(_0x44bf30['plugins']['has']('IndentEditing')&&(_0x3f752d['enableCommand']('indent'),_0x3f752d['enableCommand']('outdent')),_0x44bf30['plugins']['has']('IndentBlock')){for(const _0x308068 of['indentBlock','outdentBlock'])_0x3f752d['enableDefaultAttributesIntegration'](_0x308068);}const _0x49e646=_0x44bf30['locale'];_0x3f752d['registerBlockAttribute']('blockIndent'),_0x3f752d['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x49e646,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36bb0b=this['editor'],_0x2a3cdd=_0x36bb0b['locale'],_0x58a2a7=_0x36bb0b['plugins']['get']('TrackChangesEditing');_0x58a2a7['descriptionFactory']['registerDescriptionCallback'](_0x92c417=>{if('formatBlock'!=_0x92c417['type'])return;const {data:_0x210767}=_0x92c417;if(!_0x210767)return;if('indentBlock'!=_0x210767['commandName']&&'outdentBlock'!=_0x210767['commandName'])return;const _0x3896ff=_0x92c417['getItems']()[0x0],_0x3c5223=_0x58a2a7['descriptionFactory']['getItemLabel'](_0x3896ff);return'indentBlock'==_0x210767['commandName']?{'type':'format','content':c(_0x2a3cdd,'*Indent:*\x20%0',_0x3c5223)}:'outdentBlock'==_0x210767['commandName']?{'type':'format','content':c(_0x2a3cdd,'*Outdent:*\x20%0',_0x3c5223)}:void 0x0;});}}class ht extends _0x5543a6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5543a6{['afterInit'](){const _0x10c5d7=this['editor'];if(!_0x10c5d7['plugins']['has']('LinkEditing'))return;const _0x1b7057=_0x10c5d7['plugins']['get']('TrackChangesEditing'),_0x35118f=_0x10c5d7['commands']['get']('link');_0x1b7057['enableDefaultAttributesIntegration']('link'),_0x1b7057['enableDefaultAttributesIntegration']('unlink'),_0x1b7057['registerInlineAttribute']('linkHref');for(const _0x3d1880 of _0x35118f['manualDecorators'])_0x1b7057['registerInlineAttribute'](_0x3d1880['id']),_0x1b7057['descriptionFactory']['registerAttributeLabel'](_0x3d1880['id'],'link\x20('+_0x3d1880['label']['toLowerCase']()+')');_0x1b7057['descriptionFactory']['registerDescriptionCallback'](_0x23a4db=>{if('attribute'!=_0x23a4db['type'])return;const {data:_0x53406c}=_0x23a4db;if(!_0x53406c||'linkHref'!=_0x53406c['key'])return;const _0x1bc4cd=_0x53406c['newValue'],_0x541e5f=_0x10c5d7['locale'];return{'type':'format','content':null==_0x1bc4cd?c(_0x541e5f,'*Remove\x20link*'):c(_0x541e5f,'*Set\x20link:*\x20%0','\x22'+_0x1bc4cd+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56f242=this['editor'],_0x5f0fa0=_0x56f242['locale'];_0x56f242['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x259dc7=>{if('formatInline'!=_0x259dc7['type'])return;const {data:_0x4e9cfc}=_0x259dc7;if(_0x4e9cfc){if('link'==_0x4e9cfc['commandName']){const _0x580d05=_0x4e9cfc['commandParams'][0x0];return{'type':'format','content':c(_0x5f0fa0,'*Set\x20link:*\x20%0','\x22'+_0x580d05+'\x22')};}return'unlink'==_0x4e9cfc['commandName']?{'type':'format','content':c(_0x5f0fa0,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5543a6{['afterInit'](){const _0x4f74ae=this['editor'],_0x269c14=_0x4f74ae['locale'];if(!_0x4f74ae['plugins']['has']('LegacyListEditing'))return;const _0x52c77b=_0x4f74ae['plugins']['get']('TrackChangesEditing'),_0x4f06f2=_0x4f74ae['plugins']['has']('LegacyTodoListEditing');function _0x2f6677(_0x368abb){return()=>{const _0x5ac49f=_0x4f74ae['model']['document']['selection'],_0x20c144=_0x4f74ae['commands']['get'](_0x368abb);if(_0x20c144['value'])return void _0x4f74ae['execute']('paragraph',{});const _0x3e52e8=_0x368abb['slice'](0x0,-0x4),_0x1bc479=function(_0x1e6db4,_0x29b0e5,_0x3bb415){let _0x1d68fb=Array['from'](_0x1e6db4)['filter'](_0x4bdbdb=>function(_0x55f657,_0x149a83){return _0x149a83['checkChild'](_0x55f657['parent'],'listItem')&&!_0x149a83['isObject'](_0x55f657);}(_0x4bdbdb,_0x3bb415));_0x1d68fb=_0x1d68fb['filter'](_0x28cea8=>!_0x28cea8['is']('element','listItem')||_0x28cea8['getAttribute']('listType')!=_0x29b0e5);const _0x52ebbc=new Set();for(const _0x4dfdd5 of _0x1d68fb)_0x4dfdd5['is']('element','listItem')?_0x52ebbc['add'](Le(_0x4dfdd5)):_0x52ebbc['add'](_0x4dfdd5);return Array['from'](_0x52ebbc);}(_0x5ac49f['getSelectedBlocks'](),_0x3e52e8,_0x4f74ae['model']['schema']);_0x4f74ae['model']['change'](()=>{for(const _0x60c0e1 of _0x1bc479)_0x52c77b['markBlockFormat'](_0x60c0e1,{'commandName':_0x368abb,'commandParams':[{'forceValue':!_0x20c144['value']}],'formatGroupId':'blockName'},Ee(_0x60c0e1));});};}function _0x403011(_0x43195a){return()=>{const _0x3ca387=function(_0x2d68de){let _0x54bc9f=Array['from'](_0x2d68de);const _0x366e6c=_0x54bc9f['findIndex'](_0x521c7e=>'listItem'!=_0x521c7e['name']);return _0x366e6c>-0x1&&(_0x54bc9f=_0x54bc9f['slice'](0x0,_0x366e6c)),_0x54bc9f;}(_0x4f74ae['model']['document']['selection']['getSelectedBlocks']()),_0x17d2d4=_0x4f74ae['model']['createRange'](_0x4f74ae['model']['createPositionAt'](_0x3ca387[0x0],'before'),_0x4f74ae['model']['createPositionAt'](_0x3ca387[_0x3ca387['length']-0x1],'end'));_0x4f74ae['model']['change'](()=>{_0x52c77b['markBlockFormat'](_0x17d2d4,{'commandName':_0x43195a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x599342){const _0x47e447=new Set();for(const _0x3648cf of _0x599342){let _0xf2d0c2=_0x3648cf['nextSibling'];for(;_0xf2d0c2&&_0xf2d0c2['getAttribute']('listIndent')>_0x3648cf['getAttribute']('listIndent');)_0x47e447['add'](_0xf2d0c2),_0xf2d0c2=_0xf2d0c2['nextSibling'];}return Array['from'](_0x47e447);}(_0x3ca387));});};}_0x52c77b['enableCommand']('numberedList',_0x2f6677('numberedList')),_0x52c77b['enableCommand']('bulletedList',_0x2f6677('bulletedList')),_0x4f06f2&&_0x52c77b['enableCommand']('todoList',_0x2f6677('todoList')),_0x52c77b['enableCommand']('indentList',_0x403011('indentList')),_0x52c77b['enableCommand']('outdentList',_0x403011('outdentList')),_0x4f06f2&&_0x52c77b['enableCommand']('checkTodoList',()=>{const _0x5baa94=_0x4f74ae['commands']['get']('checkTodoList'),_0x29be8e=Array['from'](_0x5baa94['_selectedElements']);_0x29be8e['filter'](_0x3a933b=>_0x3a933b['getAttribute']('todoListChecked')!=_0x5baa94['value']),_0x4f74ae['model']['change'](()=>{for(const _0x12c101 of _0x29be8e)_0x52c77b['markBlockFormat'](_0x12c101,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5baa94['value']}]});});}),_0x52c77b['descriptionFactory']['registerElementLabel']('listItem',_0x70e2ab=>c(_0x269c14,'ELEMENT_LIST_ITEM',_0x70e2ab)),_0x52c77b['descriptionFactory']['registerDescriptionCallback'](_0x23868f=>{if('formatBlock'!=_0x23868f['type']&&'formatInline'!=_0x23868f['type'])return;const {data:_0x21f10a}=_0x23868f;if(_0x21f10a){if('numberedList'==_0x21f10a['commandName']||'bulletedList'==_0x21f10a['commandName']||'todoList'==_0x21f10a['commandName'])switch(_0x21f10a['commandName']['replace']('List','')){case'bulleted':return _0x5c65cb(c(_0x269c14,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c65cb(c(_0x269c14,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c65cb(c(_0x269c14,'ELEMENT_TODO_LIST'));}if('indentList'==_0x21f10a['commandName'])return{'type':'format','content':c(_0x269c14,'*Indent:*\x20%0',c(_0x269c14,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x21f10a['commandName'])return{'type':'format','content':c(_0x269c14,'*Outdent:*\x20%0',c(_0x269c14,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x21f10a['commandName'])return _0x21f10a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x269c14,'*Check\x20item*')}:{'type':'format','content':c(_0x269c14,'*Uncheck\x20item*')};}function _0x5c65cb(_0x3c4db3){return{'type':'format','content':c(_0x269c14,'*Change\x20to:*\x20%0',_0x3c4db3)};}});}}function Le(_0x2d341a){const _0x4ac21c=_0x2d341a['getAttribute']('listIndent');if(0x0==_0x4ac21c)return _0x2d341a;let _0x2f5c26=_0x2d341a;for(;_0x2d341a['previousSibling']&&_0x2d341a['previousSibling']['is']('element','listItem');){const _0x4b4553=_0x2d341a['previousSibling']['getAttribute']('listIndent');if(_0x4b4553==_0x4ac21c)_0x2f5c26=_0x2d341a['previousSibling'];else{if(_0x4b4553<_0x4ac21c)break;}_0x2d341a=_0x2d341a['previousSibling'];}return _0x2f5c26;}function Ee(_0x112276){const _0x16ad88=[];if(_0x112276['is']('element','listItem')&&_0x112276['getAttribute']('listIndent')>0x0){let _0x3f4de8=_0x112276['nextSibling'];for(;_0x3f4de8&&'listItem'==_0x3f4de8['name']&&_0x3f4de8['getAttribute']('listIndent')==_0x112276['getAttribute']('listIndent');)_0x16ad88['push'](_0x3f4de8),_0x3f4de8=_0x3f4de8['nextSibling'];}return _0x16ad88;}class Q extends _0x5543a6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x55d8c8=this['editor']['config']['get']('list.properties'),_0x49c306=this['editor']['plugins']['get']('TrackChangesEditing');_0x55d8c8['styles']&&_0x49c306['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x55d8c8['reversed']&&_0x49c306['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x55d8c8['startIndex']&&_0x49c306['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x49c306['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5d5470,_0x1b8f00={}){const _0x47a7bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39d179=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x47a7bd['markMultiRangeBlockFormat'](_0x39d179,{'commandName':'listStyle','commandParams':[{'type':_0x1b8f00['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x9433cd,_0x3dfdb0={}){const _0x5f2111=this['editor']['plugins']['get']('TrackChangesEditing'),_0x975a53=this['_getSuggestionBlocks'](_0x86a300=>_0x86a300['is']('element','listItem')&&'numbered'===_0x86a300['getAttribute']('listType'));if(_0x975a53['length']<0x1)return;const _0x423c68=_0x975a53['map'](_0x18177f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x18177f,'before'),this['editor']['model']['createPositionAt'](_0x18177f,0x0)));this['editor']['model']['change'](()=>{_0x5f2111['markMultiRangeBlockFormat'](_0x423c68,{'commandName':'listReversed','commandParams':[{'reversed':_0x3dfdb0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x236cb0,_0x3ef812={}){const _0x464e5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bd0b2=this['_getSuggestionBlocks'](_0x4e5902=>_0x4e5902['is']('element','listItem')&&'numbered'===_0x4e5902['getAttribute']('listType'));if(_0x5bd0b2['length']<0x1)return;const _0x6d2956=_0x5bd0b2['map'](_0x32ffaf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32ffaf,'before'),this['editor']['model']['createPositionAt'](_0x32ffaf,0x0)));this['editor']['model']['change'](()=>{_0x464e5b['markMultiRangeBlockFormat'](_0x6d2956,{'commandName':'listStart','commandParams':[{'startIndex':_0x3ef812['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5a499e){if('formatBlock'!=_0x5a499e['type']&&'formatInline'!=_0x5a499e['type'])return;const _0x223c34=this['editor']['locale'],{data:_0x1ce6bc}=_0x5a499e;if(!_0x1ce6bc)return;let _0xfe068d,_0x587081;switch(_0x1ce6bc['commandName']){case'listStyle':_0xfe068d='*Change\x20to:*\x20%0',_0x587081={'type':'format','content':c(_0x223c34,_0xfe068d,c(_0x223c34,this['_getTranslationKeyForListStyle'](_0x1ce6bc['commandParams'][0x0]['type'])))};break;case'listReversed':_0xfe068d=_0x1ce6bc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x587081={'type':'format','content':c(_0x223c34,_0xfe068d)};break;case'listStart':_0xfe068d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x587081={'type':'format','content':c(_0x223c34,_0xfe068d,_0x1ce6bc['commandParams'][0x0]['startIndex'])};}return _0x587081;}['_getSuggestionBlocksForListStyle'](){const _0x1e12ac=this['editor']['plugins']['get']('LegacyListUtils');let _0x33c63e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x33c63e[0x0]?.['is']('element','listItem')&&_0x33c63e['unshift'](..._0x1e12ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x33c63e[_0x33c63e['length']-0x1]?.['is']('element','listItem')&&_0x33c63e['push'](..._0x1e12ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x33c63e=[...new Set(_0x33c63e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x33c63e=_0x33c63e['filter'](_0x32268c=>_0x32268c['is']('element','listItem'))),_0x33c63e;}['_getSuggestionBlocks'](_0x5c11fd){const _0x342114=this['editor']['plugins']['get']('LegacyListUtils');let _0x330280=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5c11fd)['map'](_0x30bd64=>{const _0x3ec0f0=this['editor']['model']['createPositionAt'](_0x30bd64,0x0);return[..._0x342114['getSiblingNodes'](_0x3ec0f0,'backward'),..._0x342114['getSiblingNodes'](_0x3ec0f0,'forward')];})['flat']();return _0x330280=[...new Set(_0x330280)],_0x330280;}['_getTranslationKeyForListStyle'](_0x3ae0c0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3ae0c0)||'default')['toUpperCase']()+'_LIST_'+_0x3ae0c0['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5543a6{['afterInit'](){const _0xc06bbd=this['editor'];if(!_0xc06bbd['plugins']['has']('MediaEmbedEditing'))return;const _0x35340e=_0xc06bbd['plugins']['get']('TrackChangesEditing'),_0x1b6555=_0xc06bbd['locale'];_0x35340e['enableCommand']('mediaEmbed'),_0x35340e['descriptionFactory']['registerElementLabel']('media',_0x12d500=>c(_0x1b6555,'ELEMENT_MEDIA',_0x12d500)),_0xc06bbd['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x47f3d5,{writer:_0x2ed47e,options:_0x44f425})=>{if(_0x44f425['showSuggestionHighlights'])return _0x2ed47e['createEmptyElement']('div');},'converterPriority':'high'}),_0xc06bbd['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4d2f17,_0x59f10b,_0x7d6887)=>{_0x7d6887['options']['showSuggestionHighlights']&&_0x4d2f17['stop']();},{'priority':'high'});}}class pt extends _0x5543a6{['afterInit'](){const _0x15e42b=this['editor'];_0x15e42b['plugins']['has']('MentionEditing')&&_0x15e42b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x5543a6{['afterInit'](){const _0x5a7b09=this['editor'];if(!_0x5a7b09['plugins']['has']('MergeFieldsEditing'))return;const _0x1ade98=_0x5a7b09['plugins']['get']('TrackChangesEditing'),_0x25eb1d=_0x5a7b09['locale'];_0x1ade98['enableCommand']('insertMergeField'),_0x1ade98['enableCommand']('insertMergeFieldBlock'),_0x1ade98['enableCommand']('insertMergeFieldImage'),_0x1ade98['descriptionFactory']['registerElementLabel']('mergeField',_0x48befa=>c(_0x25eb1d,'ELEMENT_MERGE_FIELD',_0x48befa)),_0x1ade98['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x155364=>c(_0x25eb1d,'ELEMENT_MERGE_FIELD',_0x155364)),_0x1ade98['descriptionFactory']['registerDescriptionCallback'](_0x45719f=>{if('insertion'!=_0x45719f['type']&&'deletion'!=_0x45719f['type'])return;const _0x11888a=_0x45719f['getContainedElement']();if(null==_0x11888a)return;const _0x10ff11=_0x5a7b09['plugins']['get']('MergeFieldsEditing');let _0x5062b3;switch(_0x10ff11['getMergeFieldType'](_0x11888a)){case null:return;case'image':{const _0x213b81=_0x10ff11['unwrapAffixes'](_0x11888a['getAttribute']('src'));_0x5062b3=_0x10ff11['getLabel'](_0x213b81)||_0x213b81;break;}default:{const _0x978b66=_0x11888a['getAttribute']('id');_0x5062b3=_0x10ff11['getLabel'](_0x978b66)||_0x978b66;break;}}return'insertion'==_0x45719f['type']?{'type':'insertion','content':c(_0x25eb1d,'*Insert:*\x20%0','\x22'+_0x5062b3+'\x22\x20'+c(_0x25eb1d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x25eb1d,'*Remove:*\x20%0','\x22'+_0x5062b3+'\x22\x20'+c(_0x25eb1d,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x5543a6{['afterInit'](){const _0x12f703=this['editor'],_0x48fa4b=_0x12f703['plugins']['get']('TrackChangesEditing');_0x12f703['plugins']['has']('MultiLevelList')&&(_0x48fa4b['enableDefaultAttributesIntegration']('multiLevelList'),_0x48fa4b['registerBlockAttribute']('listMarkerStyle'),_0x48fa4b['descriptionFactory']['registerDescriptionCallback'](_0x4f243b=>this['handleDescriptions'](_0x4f243b)));}['handleDescriptions'](_0x148513){const _0x4a58b8=this['editor']['locale'],{data:_0x570cda}=_0x148513,_0x745fd1={'type':'format','content':''};if(_0x570cda&&'listMarkerStyle'==_0x570cda['key']){if(!_0x570cda['oldValue'])return{'type':'format','content':c(_0x4a58b8,'*Set\x20format:*\x20%0',c(_0x4a58b8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x570cda['newValue']+')'};if(!_0x570cda['newValue']){let _0x47fccc=_0x148513['head'];for(;_0x47fccc;){if(_0x47fccc['data']&&'listType'==_0x47fccc['data']['key']&&_0x47fccc['data']['newValue'])return _0x745fd1;_0x47fccc=_0x47fccc['next'];}return{'type':'format','content':c(_0x4a58b8,'*Remove\x20format:*\x20%0',c(_0x4a58b8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x570cda['oldValue']+')'};}}}}class bt extends _0x5543a6{['afterInit'](){const _0x396d6e=this['editor'];if(!_0x396d6e['plugins']['has']('PageBreakEditing'))return;_0x396d6e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2fcebc=_0x396d6e['plugins']['get']('TrackChangesEditing'),_0x325c43=_0x396d6e['locale'];_0x2fcebc['descriptionFactory']['registerElementLabel']('pageBreak',_0x11a853=>c(_0x325c43,'ELEMENT_PAGE_BREAK',_0x11a853));}}class yt extends _0x5543a6{['afterInit'](){const _0x1b0bf7=this['editor'];if(!_0x1b0bf7['plugins']['has']('Paragraph'))return;const _0x540112=_0x1b0bf7['locale'],_0xd29597=_0x1b0bf7['plugins']['get']('TrackChangesEditing');_0xd29597['descriptionFactory']['registerElementLabel']('paragraph',_0x30d09f=>c(_0x540112,'ELEMENT_PARAGRAPH',_0x30d09f)),_0xd29597['enableDefaultAttributesIntegration']('paragraph'),_0xd29597['enableCommand']('insertParagraph'),_0x1b0bf7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1b0bf7),{'priority':'highest'}),_0x1b0bf7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x14de32,_0x4fe4a0,_0x195af8)=>{_0x195af8['options']['showSuggestionHighlights']&&nr(_0x1b0bf7,{'showActiveMarker':!0x1})(_0x14de32,_0x4fe4a0,_0x195af8);},{'priority':'highest'});const _0x270525=_0xd29597['descriptionFactory'];_0x270525['registerDescriptionCallback'](_0xc3655e=>{if('insertion'!==_0xc3655e['type'])return;const {start:_0x441c57,end:_0x3a80e0}=_0xc3655e['getFirstRange']();if(!_0x441c57['isTouching'](_0x3a80e0)||!_0x441c57['nodeAfter'])return;const _0x2ecb8f=_0x1b0bf7['model']['schema'],_0x4fdd51=_0x441c57['nodeAfter'];return _0x2ecb8f['isBlock'](_0x4fdd51)&&!_0x2ecb8f['isLimit'](_0x4fdd51)&&_0x2ecb8f['checkChild'](_0x4fdd51,'$text')?{'type':'insertion','content':c(_0x540112,'*Insert:*\x20%0',_0x270525['getItemLabel'](_0x4fdd51,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a0635=this['editor'],_0x3cbe13=_0x3a0635['locale'];_0x3a0635['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x592b8b=>{if('formatBlock'!=_0x592b8b['type'])return;const {data:_0x247dc1}=_0x592b8b;return _0x247dc1&&'paragraph'==_0x247dc1['commandName']?{'type':'format','content':c(_0x3cbe13,'*Change\x20to:*\x20%0',c(_0x3cbe13,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xac6e54,{showActiveMarker:_0xf3ba51=!0x0}={}){return(_0x16f190,_0x4073e3,_0x53202f)=>{const _0x5b7c48=_0xac6e54['plugins']['get']('TrackChangesEditing'),_0x21e7fd=_0x4073e3['markerRange']['start'],_0x3c9f84=_0x4073e3['markerRange']['end'],_0x247593=_0xac6e54['model']['schema'];if(!_0x21e7fd['isTouching'](_0x3c9f84)||!_0x21e7fd['nodeAfter'])return;const _0x12dc20=_0x21e7fd['nodeAfter'];if(_0x247593['isBlock'](_0x12dc20)&&!_0x247593['isLimit'](_0x12dc20)&&_0x247593['checkChild'](_0x12dc20,'$text')){if(!_0x53202f['consumable']['consume'](_0x4073e3['markerRange'],_0x16f190['name']))return;const {authorId:_0x164001}=_0x5b7c48['_splitMarkerName'](_0x4073e3['markerName']),_0x237bf4=_0x53202f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x164001}),_0x35dfb0=_0x53202f['mapper']['toViewPosition'](_0x3c9f84);_0xf3ba51&&_0x5b7c48['activeMarkers']['includes'](_0x4073e3['markerName'])&&_0x53202f['writer']['addClass']('ck-suggestion-marker--active',_0x237bf4),_0x53202f['writer']['insert'](_0x35dfb0,_0x237bf4),_0x53202f['mapper']['bindElementToMarker'](_0x237bf4,_0x4073e3['markerName']);}};}class jt extends _0x5543a6{['afterInit'](){const _0x534822=this['editor'];_0x534822['commands']['get']('replaceSource')&&_0x534822['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5543a6{['afterInit'](){const _0x6ffef2=this['editor'];if(!_0x6ffef2['plugins']['has']('RemoveFormatEditing'))return;_0x6ffef2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x505be9=this['editor'];_0x505be9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49fb73=>{if('formatBlock'!=_0x49fb73['type']&&'formatInline'!=_0x49fb73['type'])return;const {data:_0xa71611}=_0x49fb73;return _0xa71611&&'removeFormat'==_0xa71611['commandName']?{'type':'format','content':c(_0x505be9['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5543a6{['afterInit'](){const _0x34bd17=this['editor'];if(!_0x34bd17['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x31226d=_0x34bd17['plugins']['get']('TrackChangesEditing');_0x31226d['enableCommand']('goToPreviousRestrictedEditingException'),_0x31226d['enableCommand']('goToNextRestrictedEditingException');const _0x54c1af=_0x34bd17['plugins']['get']('RestrictedEditingModeEditing');_0x54c1af['enableCommand']('trackChanges'),_0x54c1af['enableCommand']('acceptSuggestion'),_0x54c1af['enableCommand']('discardSuggestion'),_0x54c1af['enableCommand']('acceptAllSuggestions'),_0x54c1af['enableCommand']('discardAllSuggestions'),_0x54c1af['enableCommand']('acceptSelectedSuggestions'),_0x54c1af['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5543a6{['afterInit'](){const _0xf8477a=this['editor'];if(!_0xf8477a['plugins']['has']('ShiftEnter'))return;const _0x25260e=_0xf8477a['plugins']['get']('TrackChangesEditing');_0x25260e['enableCommand']('shiftEnter'),_0xf8477a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xf8477a),{'priority':'high'}),_0xf8477a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xf8477a),{'priority':'high'}),_0xf8477a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3e15c2,_0x553f71,_0x1d63a9)=>{_0x1d63a9['options']['showSuggestionHighlights']&&je(_0xf8477a,{'showActiveMarker':!0x1})(_0x3e15c2,_0x553f71,_0x1d63a9);}),_0x25260e['descriptionFactory']['registerElementLabel']('softBreak',_0xe95a22=>c(_0xf8477a['locale'],'ELEMENT_LINE_BREAK',_0xe95a22));}}function je(_0x3c57a5,{showActiveMarker:_0x552399=!0x0}={}){return(_0x5d1bb2,_0x152573,_0x580c31)=>{const _0x35e5ea=_0x3c57a5['plugins']['get']('TrackChangesEditing');if(!_0x580c31['consumable']['test'](_0x152573['markerRange'],_0x5d1bb2['name']))return;const _0x1cbe70=_0x3c57a5['model'];for(const _0x3a07a2 of _0x152573['markerRange']['getItems']()){if(!_0x3a07a2['is']('element','softBreak'))continue;const _0x2632ae='deletion'==_0x152573['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x341712}=_0x35e5ea['_splitMarkerName'](_0x152573['markerName']),_0x15bbc0=_0x580c31['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2632ae,'data-author-id':_0x341712}),_0x305f33=_0x580c31['mapper']['toViewPosition'](_0x1cbe70['createPositionBefore'](_0x3a07a2));_0x552399&&_0x35e5ea['activeMarkers']['includes'](_0x152573['markerName'])&&_0x580c31['writer']['addClass']('ck-suggestion-marker--active',_0x15bbc0),_0x580c31['writer']['insert'](_0x305f33,_0x15bbc0),_0x580c31['mapper']['bindElementToMarker'](_0x15bbc0,_0x152573['markerName']);}};}class _t extends _0x5543a6{['afterInit'](){const _0xd9205a=this['editor'],_0x3b13b9=_0xd9205a['model'],_0x1ad5af=_0xd9205a['locale'];if(!_0xd9205a['plugins']['has']('StandardEditingModeEditing'))return;const _0x5aed6c=_0xd9205a['plugins']['get']('TrackChangesEditing'),_0x29c756='restrictedEditingException',_0x4340de=_0xd9205a['commands']['get'](_0x29c756);_0x5aed6c['enableCommand'](_0x29c756,(_0x2a8f20,_0x20fc65={})=>{const _0x3f9939=_0x3b13b9['document']['selection'];if(_0x3f9939['isCollapsed'])return void _0x2a8f20(_0x20fc65);const _0x394d7e=void 0x0!==_0x20fc65['forceValue']?_0x20fc65['forceValue']:!_0x4340de['value'];_0x3b13b9['change'](()=>{const _0x5d5b4d=Array['from'](_0x3f9939['getRanges']());for(const _0x5cd489 of _0x5d5b4d){const _0x4ad58c=_0x394d7e?[_0x5cd489]:io(_0x29c756,_0x5cd489,_0x3b13b9);for(const _0x526ff6 of _0x4ad58c)_0x5aed6c['markInlineFormat'](_0x526ff6,{'commandName':_0x29c756,'commandParams':[{'forceValue':_0x394d7e}]});}});}),_0x5aed6c['descriptionFactory']['registerDescriptionCallback'](_0x3b2f69=>{if('formatBlock'!=_0x3b2f69['type']&&'formatInline'!=_0x3b2f69['type'])return;const {data:_0x383b2f}=_0x3b2f69;return _0x383b2f&&_0x383b2f['commandName']==_0x29c756?_0x383b2f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ad5af,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1ad5af,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5543a6{['afterInit'](){const _0x1f1fb2=this['editor'];if(!_0x1f1fb2['plugins']['has']('Style')||!_0x1f1fb2['plugins']['has']('DataSchema'))return;const _0x3ea90e=_0x1f1fb2['plugins']['get']('TrackChangesEditing'),_0x312bd1=_0x1f1fb2['locale'],_0x37b9ab=_0x1f1fb2['config']['get']('style')||{},_0x40a042=_0x1f1fb2['plugins']['get']('GeneralHtmlSupport'),_0x24cba1=_0x1f1fb2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1f1fb2['plugins']['get']('DataSchema'),_0x37b9ab['definitions']);_0x3ea90e['enableDefaultAttributesIntegration']('style');const _0x11df61=new Set();for(const _0x4a195f of _0x24cba1['block']){const _0x211ed0=_0x40a042['getGhsAttributeNameForElement'](_0x4a195f['element']);_0x11df61['add'](_0x211ed0);}const _0x19582a=new Set();for(const _0x59d2d8 of _0x24cba1['inline']){const _0x3f1c63=_0x40a042['getGhsAttributeNameForElement'](_0x59d2d8['element']);_0x19582a['add'](_0x3f1c63);for(const _0x44b961 of _0x59d2d8['ghsAttributes'])_0x19582a['add'](_0x44b961);}for(const _0x3f52fb of _0x11df61)_0x3ea90e['registerBlockAttribute'](_0x3f52fb),_0x3ea90e['descriptionFactory']['registerAttributeLabel'](_0x3f52fb,c(_0x312bd1,'FORMAT_STYLE'));for(const _0x4be039 of _0x19582a)_0x3ea90e['registerInlineAttribute'](_0x4be039),_0x3ea90e['descriptionFactory']['registerAttributeLabel'](_0x4be039,c(_0x312bd1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x423c58=this['editor'],_0x41bf07=_0x423c58['locale'];_0x423c58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4789ed=>{if('formatBlock'!=_0x4789ed['type']&&'formatInline'!=_0x4789ed['type'])return;const {data:_0x2283a7}=_0x4789ed;return _0x2283a7&&'style'===_0x2283a7['commandName']?_0x2283a7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x41bf07,'*Set\x20format:*\x20%0',_0x2283a7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x41bf07,'*Remove\x20format:*\x20%0',_0x2283a7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5543a6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xff361){super(_0xff361),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x51f197=this['editor'],_0x3b7ca3=_0x51f197['model']['document']['selection'];if(!_0x51f197['plugins']['has']('TableEditing'))return;const _0x509b66=_0x51f197['locale'],_0x13ea7b=_0x51f197['plugins']['get']('TrackChangesEditing'),_0x400782=_0x51f197['plugins']['get']('TableUtils');_0x13ea7b['descriptionFactory']['registerElementLabel']('table',_0x1e05b8=>c(_0x509b66,'ELEMENT_TABLE',_0x1e05b8)),this['_setupColumnsRowsFixing'](),_0x13ea7b['enableCommand']('insertTable'),_0x13ea7b['enableCommand']('selectTableRow'),_0x13ea7b['enableCommand']('selectTableColumn');for(const _0xc3c36c of['insertTableRowAbove','insertTableRowBelow']){const _0x3f50d5=_0x51f197['commands']['get'](_0xc3c36c);_0x13ea7b['enableCommand'](_0xc3c36c,_0x539147=>{_0x51f197['model']['change'](_0x3bcbf6=>{_0x539147();const _0x1daab5='above'===_0x3f50d5['order'],_0x29ae93=_0x400782['getSelectionAffectedTableCells'](_0x3b7ca3),_0x5639b3=_0x400782['getRowIndexes'](_0x29ae93),_0x34e36a=_0x1daab5?_0x5639b3['first']-0x1:_0x5639b3['last']+0x1,_0x2bc466=_0x29ae93[0x0]['findAncestor']('table'),_0x31b0ca=_0x400782['createTableWalker'](_0x2bc466,{'startRow':_0x34e36a,'endRow':_0x34e36a}),_0x311df5=Array['from'](_0x31b0ca)['map'](_0xb64493=>_0x3bcbf6['createRangeOn'](_0xb64493['cell']));_0x13ea7b['markMultiRangeInsertion'](_0x311df5,'tableRow');});});}for(const _0x386345 of['insertTableColumnLeft','insertTableColumnRight']){const _0x178d18=_0x51f197['commands']['get'](_0x386345);_0x13ea7b['enableCommand'](_0x386345,_0x434d80=>{_0x51f197['model']['change'](_0x27275c=>{_0x434d80();const _0x4618b8='left'===_0x178d18['order'],_0x4240e6=_0x400782['getSelectionAffectedTableCells'](_0x3b7ca3),_0x32c5c7=_0x400782['getColumnIndexes'](_0x4240e6),_0x55a0a1=_0x4618b8?_0x32c5c7['first']-0x1:_0x32c5c7['last']+0x1,_0x26d3b7=_0x4240e6[0x0]['findAncestor']('table'),_0x280f27=_0x400782['createTableWalker'](_0x26d3b7,{'startRow':0x0,'column':_0x55a0a1,'includeAllSlots':!0x1}),_0x24d9f9=Array['from'](_0x280f27)['map'](_0x145cb7=>_0x27275c['createRangeOn'](_0x145cb7['cell']));_0x13ea7b['markMultiRangeInsertion'](_0x24d9f9,'tableColumn');});});}for(const _0x218018 of['removeTableRow','removeTableColumn']){const _0x311602=_0x218018['substr'](0xb),_0x6676a=_0x311602['toLowerCase'](),_0x2064f3=_0x6676a['substr'](0x0,0x3)+'span',_0x47c585='table'+_0x311602,_0x42befc='min'+_0x311602,_0x32d16a='max'+_0x311602;_0x13ea7b['enableCommand'](_0x218018,()=>{_0x51f197['model']['change'](_0x327041=>{const _0x3ef310=_0x400782['getSelectionAffectedTableCells'](_0x3b7ca3),_0x343f42=_0x3ef310[0x0]['findAncestor']('table');let _0x1a203a;if('removeTableRow'==_0x218018){const _0x4c2304=_0x400782['getRowIndexes'](_0x3ef310);_0x1a203a={'startRow':_0x4c2304['first'],'endRow':_0x4c2304['last'],'includeAllSlots':!0x0};}else{const _0x3d2bec=_0x400782['getColumnIndexes'](_0x3ef310);_0x1a203a={'startColumn':_0x3d2bec['first'],'endColumn':_0x3d2bec['last'],'includeAllSlots':!0x0};}const _0x5a9d74=_0x400782['createTableWalker'](_0x343f42,_0x1a203a),_0x1fe8bd=Array['from'](_0x5a9d74)['map'](({cell:_0x1c933a})=>_0x1c933a),_0x31012f=Ne(_0x1fe8bd['filter'](_0x1b4896=>_0x1b4896['hasAttribute'](_0x2064f3))),_0x48a218=Ne(_0x1fe8bd['filter'](_0x396442=>!_0x396442['hasAttribute'](_0x2064f3)))['map'](_0x428973=>_0x327041['createRangeOn'](_0x428973)),_0x1fb0e8=_0x13ea7b['markMultiRangeDeletion'](_0x48a218,_0x47c585);if(_0x1fb0e8&&('tableRow'==_0x1fb0e8['subType']||'tableColumn'==_0x1fb0e8['subType'])){const _0x4eced6=this['_getSuggestionCoords'](_0x1fb0e8);for(const _0x3ff65d of _0x31012f){const _0xd202a9=_0x327041['createRangeOn'](_0x3ff65d),_0xb19445=_0x400782['getCellLocation'](_0x3ff65d),_0xccfbbe=_0x3ff65d['getAttribute'](_0x2064f3)-0x1,_0x4b8acb=_0x4eced6[_0x42befc],_0x205a35=_0x4eced6[_0x32d16a];_0x4b8acb<=_0xb19445[_0x6676a]&&_0xb19445[_0x6676a]+_0xccfbbe<=_0x205a35&&_0x1fb0e8['addRange'](_0xd202a9);}}});});}function _0x2f1033(_0x3c9c11){const _0x1cde3d=Array['from'](_0x3b7ca3['getRanges']())['map'](_0xa80e15=>_0x24a0f9['fromRange'](_0xa80e15));_0x51f197['model']['change'](_0xb4044=>{const _0xe65afb=_0xb4044['batch'];_0x3c9c11=_0x3c9c11['filter'](_0x139160=>'$graveyard'!=_0x139160['root']['rootName']),_0xb4044['setSelection'](_0x3c9c11),_0x51f197['commands']['get']('removeTableRow')['refresh'](),_0x51f197['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x51f197['model']['enqueueChange'](()=>{_0x51f197['model']['enqueueChange'](_0xe65afb,_0xc20802=>{const _0x544acb=_0x1cde3d['filter'](_0x3896f1=>'$graveyard'!=_0x3896f1['root']['rootName']);_0x544acb['length']>0x0&&_0xc20802['setSelection'](_0x544acb);for(const _0x2f9783 of _0x1cde3d)_0x2f9783['detach']();});});});}function _0x1d6de7(_0x239658){_0x51f197['model']['change'](_0x21ba7e=>{const _0x23460f=Array['from'](_0x3b7ca3['getRanges']())['map'](_0x2911e2=>_0x24a0f9['fromRange'](_0x2911e2)),_0x4cd357=[];for(const _0x24d15c of _0x239658)for(const _0x5c7428 of _0x24d15c['getItems']({'shallow':!0x0}))_0x4cd357['push'](_0x5c7428);for(const _0x5319fa of _0x4cd357)'$graveyard'!=_0x5319fa['root']['rootName']&&(_0x21ba7e['setSelection'](_0x21ba7e['createPositionAt'](_0x5319fa,0x0)),_0x51f197['commands']['get']('removeTableColumn')['refresh'](),_0x51f197['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xc8934=_0x23460f['filter'](_0x33bbcf=>'$graveyard'!=_0x33bbcf['root']['rootName']);_0xc8934['length']>0x0&&_0x21ba7e['setSelection'](_0xc8934);for(const _0x244a84 of _0x23460f)_0x244a84['detach']();});}function _0x2fa0b7(_0x16998a,_0x1ea6e9){return _0x1ea6e9['every'](_0x5e19ed=>_0x16998a['some'](_0x490401=>_0x490401['end']['isEqual'](_0x5e19ed['start'])||_0x5e19ed['end']['isEqual'](_0x490401['start'])));}function _0x1595e6(_0x24e435,_0x4f71f7){return!_0x24e435['some'](_0x457657=>_0x4f71f7['some'](_0x1d31ea=>_0x457657['isIntersecting'](_0x1d31ea)))&&_0x24e435['some'](_0x221147=>_0x4f71f7['some'](_0x2b62eb=>_0x221147['end']['isTouching'](_0x2b62eb['start'])));}_0x51f197['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3aa568,_0x2d804f,_0x1da07e)=>{if(!_0x1da07e['options']['showSuggestionHighlights'])return;const _0x3b4257=_0x2d804f['item'];if(!_0x3b4257)return;const _0x27704f=_0x1da07e['mapper']['toViewElement'](_0x3b4257);function _0x552da7(_0x2ce789){return Array['isArray'](_0x2ce789)?_0x2ce789:[_0x2ce789];}_0x27704f&&'tableCell'===_0x3b4257['name']&&_0x255fa8(_0x27704f,_0x1da07e['writer'],(_0x324db2,_0x91fa7,_0x2fd389)=>_0x2fd389['addClass'](_0x552da7(_0x91fa7['classes']),_0x324db2),(_0x3b18e1,_0x3031ae,_0x5a1c1e)=>_0x5a1c1e['removeClass'](_0x552da7(_0x3031ae['classes']),_0x3b18e1));},{'priority':'highest'}),_0x13ea7b['descriptionFactory']['registerDescriptionCallback'](_0x58ae31=>{if('insertion'!=_0x58ae31['type']&&'deletion'!=_0x58ae31['type'])return;const _0x529d4d=_0x58ae31['getContainedElement']();if(null!=_0x529d4d&&_0x529d4d['is']('element','table')){if('insertion'==_0x58ae31['type']){const _0x4f4e79=_0x58ae31['getItems']()['filter'](_0x237802=>_0x237802['is']('$textProxy'))['map'](_0x2bc164=>_0x2bc164['data']);if(_0x4f4e79['length'])return{'type':'insertion','content':c(_0x509b66,'*Insert:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f4e79['join']('\x20')+'\x22'))};}if('deletion'==_0x58ae31['type']){const _0x5457a0=_0x58ae31['getItems']()['filter'](_0x3fde34=>_0x3fde34['is']('$textProxy'))['map'](_0x474c3d=>_0x474c3d['data']);if(_0x5457a0['length'])return{'type':'deletion','content':c(_0x509b66,'*Remove:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5457a0['join']('\x20')+'\x22'))};}}}),_0x13ea7b['descriptionFactory']['registerDescriptionCallback'](_0x74d880=>{if('tableRow'==_0x74d880['subType']){const _0x23e572=_0x74d880['getItems']()['filter'](_0x410c5e=>_0x410c5e['is']('$textProxy'))['map'](_0x4e899d=>_0x4e899d['data']),_0x556e6b=this['_getSuggestionCoords'](_0x74d880),_0xae6b04=_0x556e6b['maxRow']-_0x556e6b['minRow']+0x1;if('insertion'==_0x74d880['type'])return _0x23e572['length']?{'type':'insertion','content':c(_0x509b66,'*Insert:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xae6b04,'\x22'+_0x23e572['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x509b66,'*Insert:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_ROW',_0xae6b04))};if('deletion'==_0x74d880['type'])return _0x23e572['length']?{'type':'deletion','content':c(_0x509b66,'*Remove:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xae6b04,'\x22'+_0x23e572['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x509b66,'*Remove:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_ROW',_0xae6b04))};}if('tableColumn'==_0x74d880['subType']){const _0x284834=_0x74d880['getItems']()['filter'](_0x508589=>_0x508589['is']('$textProxy'))['map'](_0x6f2e1b=>_0x6f2e1b['data']),_0x965a83=this['_getSuggestionCoords'](_0x74d880),_0x10a19d=_0x965a83['maxColumn']-_0x965a83['minColumn']+0x1;if('insertion'==_0x74d880['type'])return _0x284834['length']?{'type':'insertion','content':c(_0x509b66,'*Insert:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x10a19d,'\x22'+_0x284834['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x509b66,'*Insert:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_COLUMN',_0x10a19d))};if('deletion'==_0x74d880['type'])return _0x284834['length']?{'type':'deletion','content':c(_0x509b66,'*Remove:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x10a19d,'\x22'+_0x284834['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x509b66,'*Remove:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_COLUMN',_0x10a19d))};}}),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2f1033),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2f1033),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d6de7),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d6de7),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2fa0b7),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2fa0b7),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1595e6),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1595e6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x175c95=this['editor'],_0x147ef8=_0x175c95['model']['document']['selection'];return(_0x47911f,_0x319767)=>{_0x175c95['model']['change'](_0x3cf360=>{const {commandName:_0x2fc065,commandParams:_0x109828}=_0x319767;let _0x138092=_0x47911f[0x0]['end']['nodeBefore'];_0x109828&&_0x109828[0x0]&&!0x1===_0x109828[0x0]['forceValue']&&(_0x138092=_0x47911f[0x0]['start']['nodeAfter']);const _0x139ecc=_0x3cf360['createRangeIn'](_0x138092);if('$graveyard'==_0x139ecc['root']['rootName'])return;const _0x1d454f=Array['from'](_0x147ef8['getRanges']())['map'](_0x38a405=>_0x24a0f9['fromRange'](_0x38a405));_0x3cf360['setSelection'](_0x139ecc),_0x175c95['commands']['get'](_0x2fc065)['refresh'](),_0x109828['push']({'forceDefaultExecution':!0x0}),_0x175c95['execute'](_0x2fc065,..._0x109828);const _0x129ee8=_0x1d454f['filter'](_0x564e55=>'$graveyard'!=_0x564e55['root']['rootName']);_0x129ee8['length']>0x0&&_0x3cf360['setSelection'](_0x129ee8);for(const _0x30c96b of _0x1d454f)_0x30c96b['detach']();});};}['_getCoordsForCells'](_0x302d0a){const _0x2f9b19=this['editor']['plugins']['get']('TableUtils');let _0x5c210b=Number['MAX_SAFE_INTEGER'],_0x464881=Number['MIN_SAFE_INTEGER'],_0x14ef93=Number['MAX_SAFE_INTEGER'],_0x190ed2=Number['MIN_SAFE_INTEGER'];for(const _0x4d62be of _0x302d0a){if('$graveyard'==_0x4d62be['root']['rootName'])continue;const {row:_0x5a2ddf,column:_0x317379}=_0x2f9b19['getCellLocation'](_0x4d62be),_0x237236=_0x4d62be['hasAttribute']('rowspan')?_0x4d62be['getAttribute']('rowspan')-0x1:0x0,_0x3ef594=_0x4d62be['hasAttribute']('colspan')?_0x4d62be['getAttribute']('colspan')-0x1:0x0;_0x5c210b=_0x5a2ddf<_0x5c210b?_0x5a2ddf:_0x5c210b,_0x464881=_0x5a2ddf+_0x237236>_0x464881?_0x5a2ddf+_0x237236:_0x464881,_0x14ef93=_0x317379<_0x14ef93?_0x317379:_0x14ef93,_0x190ed2=_0x317379+_0x3ef594>_0x190ed2?_0x317379+_0x3ef594:_0x190ed2;}return{'minRow':_0x5c210b,'maxRow':_0x464881,'minColumn':_0x14ef93,'maxColumn':_0x190ed2};}['_setupColumnsRowsFixing'](){const _0x57072f=this['editor'],_0x306970=_0x57072f['plugins']['get']('TrackChangesEditing'),_0x3a62e9=_0x57072f['plugins']['get']('TableUtils');_0x57072f['model']['document']['on']('change:data',()=>{const _0xed3752=Array['from'](_0x57072f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30e999,data:_0x4181a9}of _0xed3752){const {group:_0x2ba642,id:_0x30ccc7,subType:_0x4372d5}=_0x306970['_splitMarkerName'](_0x30e999);if('suggestion'!=_0x2ba642)continue;if(null!=_0x4181a9['oldRange'])continue;const _0x2dfe13=_0x306970['getSuggestion'](_0x30ccc7);this['_tablePostFixingSubtypes']['includes'](_0x4372d5)&&this['_tableSuggestions']['add'](_0x2dfe13);}},{'priority':'low'});const _0x13fe2d=(_0xbb3829,_0x31a383)=>{let _0x552ab5=!0x1;const _0x148aee=_0x31a383['createRangeOn'](_0xbb3829),_0x31c953=_0xbb3829['findAncestor']('table'),_0x5ab812=_0x3a62e9['getCellLocation'](_0xbb3829);for(const _0x4dc4f2 of this['_tableSuggestions']){const _0x43b607=_0x4dc4f2['subType'],_0x4c61ca=_0x43b607['startsWith']('tablePaste'),_0x14d44a=_0x43b607['substr'](_0x4c61ca?0xa:0x5),_0x591b03=_0x14d44a['toLowerCase'](),_0x3dce8b=_0x591b03['substr'](0x0,0x3)+'span',_0x563c23='min'+_0x14d44a,_0x2e841d='max'+_0x14d44a;if(!_0x4dc4f2['isInContent'])continue;if(_0x31c953!=_0x4dc4f2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4dc4f2['isIntersectingWithRange'](_0x148aee))continue;const _0x20ab7a=_0xbb3829['hasAttribute'](_0x3dce8b)?_0xbb3829['getAttribute'](_0x3dce8b)-0x1:0x0,_0x19ffb6=this['_getSuggestionCoords'](_0x4dc4f2),_0x291cef=_0x19ffb6[_0x563c23],_0xc1db29=_0x19ffb6[_0x2e841d];_0x291cef<=_0x5ab812[_0x591b03]&&_0x5ab812[_0x591b03]+_0x20ab7a<=_0xc1db29&&(_0x4dc4f2['addRange'](_0x148aee),_0x552ab5=!0x0);}return _0x552ab5;};_0x57072f['model']['document']['registerPostFixer'](_0x507837=>{let _0x3aac95=!0x1;for(const _0x244860 of _0x57072f['model']['document']['differ']['getChanges']())if('insert'==_0x244860['type']){if('tableRow'==_0x244860['name']){for(const _0x2aa241 of _0x244860['position']['nodeAfter']['getChildren']())_0x3aac95=_0x3aac95||_0x13fe2d(_0x2aa241,_0x507837);}else'tableCell'==_0x244860['name']&&(_0x3aac95=_0x3aac95||_0x13fe2d(_0x244860['position']['nodeAfter'],_0x507837));}return _0x3aac95;});}['_getSuggestionCoords'](_0x19909d){return this['_getCoordsForCells'](_0x19909d['getRanges']()['map'](_0x35708f=>_0x35708f['start']['nodeAfter']));}}function Ne(_0x145b73){return Array['from'](new Set(_0x145b73)['values']());}class Nt extends _0x5543a6{static get['requires'](){return[Ct];}['afterInit'](){const _0x48be33=this['editor'],_0x52b410=_0x48be33['model']['document']['selection'],_0x5922cb=_0x48be33['locale'];if(!_0x48be33['plugins']['has']('TableEditing'))return;const _0x19a5f7=_0x48be33['plugins']['get']('TrackChangesEditing'),_0xbc7f61=_0x48be33['plugins']['get']('TableUtils'),_0x22ae14=_0x48be33['plugins']['get'](Ct);_0x22ae14['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x19a5f7['enableCommand']('mergeTableCells',()=>{const _0x1d74ca=_0xbc7f61['getSelectionAffectedTableCells'](_0x48be33['model']['document']['selection']);_0x48be33['model']['change'](()=>{_0x19a5f7['markMultiRangeBlockFormat'](_0x1d74ca,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x48be33['commands']['get']('mergeTableCells')['on']('execute',(_0x21328a,_0x39f728)=>{_0x48be33['commands']['get']('trackChanges')['value']&&(_0x39f728['length']>0x0&&_0x39f728[_0x39f728['length']-0x1]&&_0x39f728[_0x39f728['length']-0x1]['forceDefaultExecution']||_0x19a5f7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x21328a['stop']());},{'priority':'highest'});for(const _0x23130b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x57daa2=_0x48be33['commands']['get'](_0x23130b);_0x19a5f7['enableCommand'](_0x23130b,()=>{const _0x36fbaa=_0x48be33['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x9d42c4=>_0x9d42c4['is']('element','tableCell')),_0x385c5b=_0x57daa2['value'];_0x48be33['model']['change'](()=>{_0x19a5f7['markMultiRangeBlockFormat']([_0x36fbaa,_0x385c5b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x321316 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x45d0d4=_0x48be33['commands']['get'](_0x321316);_0x19a5f7['enableCommand'](_0x321316,()=>{const _0x219a9e=_0xbc7f61['getSelectionAffectedTableCells'](_0x48be33['model']['document']['selection'])[0x0],_0x360e0b=_0x219a9e['findAncestor']('table'),{column:_0x29ae31,row:_0x380c01}=_0xbc7f61['getCellLocation'](_0x219a9e);let _0x4ea1ff=[];if('horizontally'==_0x45d0d4['direction']){const _0x5a4a21=_0xbc7f61['createTableWalker'](_0x360e0b,{'startRow':_0x380c01,'endRow':_0x380c01,'includeAllSlots':!0x0});_0x4ea1ff=Array['from'](_0x5a4a21)['map'](_0x16df78=>_0x16df78['cell']);}else{const _0x921a58=_0xbc7f61['createTableWalker'](_0x360e0b,{'column':_0x29ae31,'includeAllSlots':!0x0});_0x4ea1ff=Array['from'](_0x921a58)['map'](_0x568978=>_0x568978['cell']);}_0x48be33['model']['change'](_0x225e71=>{_0x19a5f7['markBlockFormat'](_0x225e71['createRangeOn'](_0x219a9e),{'commandName':_0x321316,'commandParams':[]},_0x4ea1ff,_0x321316);});});}_0x19a5f7['descriptionFactory']['registerDescriptionCallback'](_0x25cb65=>{if('formatBlock'!=_0x25cb65['type']&&'formatInline'!=_0x25cb65['type'])return;const {data:_0x213a48}=_0x25cb65;return _0x213a48&&'mergeTableCells'==_0x213a48['commandName']?{'type':'format','content':c(_0x5922cb,'*Merge\x20cells*')}:void 0x0;}),_0x19a5f7['descriptionFactory']['registerDescriptionCallback'](_0x32d3c7=>{if('formatBlock'!=_0x32d3c7['type']&&'formatInline'!=_0x32d3c7['type'])return;const {data:_0x72c56e}=_0x32d3c7;return _0x72c56e?'splitTableCellVertically'==_0x72c56e['commandName']?{'type':'format','content':c(_0x5922cb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x72c56e['commandName']?{'type':'format','content':c(_0x5922cb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x15d9ad=_0x22ae14['_acceptFormatSuggestionCallbackFactory']();for(const _0x1feebf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x19a5f7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1feebf,'accept',_0x15d9ad);for(const _0x5e4ed6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x19a5f7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e4ed6,'accept',_0x15d9ad);_0x19a5f7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x25d68d=>{_0x48be33['model']['change'](_0x2ed053=>{const _0x5a5400=Array['from'](_0x52b410['getRanges']())['map'](_0x1097c5=>_0x24a0f9['fromRange'](_0x1097c5));_0x2ed053['setSelection'](_0x25d68d),_0x48be33['commands']['get']('mergeTableCells')['refresh'](),_0x48be33['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x289257=_0x5a5400['filter'](_0x2bd820=>'$graveyard'!=_0x2bd820['root']['rootName']);_0x289257['length']>0x0&&_0x2ed053['setSelection'](_0x289257);for(const _0x47e895 of _0x5a5400)_0x47e895['detach']();});});for(const _0x553f47 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xe03c75=_0x48be33['commands']['get'](_0x553f47);_0xe03c75['on']('set:isEnabled',(_0x329e1a,_0x8c836,_0x1c6204)=>{if(_0x1c6204){const _0x1f1b28=_0x48be33['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5ace8b=>_0x5ace8b['is']('element','tableCell'));this['_areMergableCells'](_0xe03c75['value'],_0x1f1b28)||(_0x329e1a['return']=!0x1,_0x329e1a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe3dbd6=this['editor']['commands']['get']('mergeTableCells'),_0x175dcf=this['editor']['plugins']['get']('TableUtils');if(!_0xe3dbd6['isEnabled'])return!0x1;const _0x2fd36c=_0x175dcf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2128c1 of _0x2fd36c)for(const _0x292245 of _0x2fd36c)if(_0x2128c1!=_0x292245&&!this['_areMergableCells'](_0x2128c1,_0x292245))return!0x1;return!0x0;}['_areMergableCells'](_0x3bfb62,_0x3cfeb5){const _0x2def72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42ea58=this['editor']['model']['createRangeOn'](_0x3bfb62),_0x53de7e=this['editor']['model']['createRangeOn'](_0x3cfeb5),_0x40e82d=new Set(),_0x150174=new Set();for(const _0x2a402f of _0x2def72['getSuggestions']())if(('insertion'==_0x2a402f['type']||'deletion'==_0x2a402f['type']||'mergeTableCells'==_0x2a402f['subType'])&&_0x2a402f['isInContent']){for(const _0x460a12 of _0x2a402f['getRanges']())_0x460a12['containsRange'](_0x42ea58,!0x0)&&_0x40e82d['add'](_0x2a402f['type']+':'+_0x2a402f['author']['id']),_0x460a12['containsRange'](_0x53de7e,!0x0)&&_0x150174['add'](_0x2a402f['type']+':'+_0x2a402f['author']['id']);}if(_0x40e82d['size']!=_0x150174['size'])return!0x1;for(const _0x21b044 of _0x40e82d)if(!_0x150174['has'](_0x21b044))return!0x1;return!0x0;}}class Dt extends _0x5543a6{static get['requires'](){return[Ct];}['afterInit'](){const _0x4eab14=this['editor'];if(!_0x4eab14['plugins']['has']('TableEditing'))return;const _0x4b74f4=_0x4eab14['locale'],_0x1cbbaa=_0x4eab14['plugins']['get']('TrackChangesEditing');_0x1cbbaa['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1cbbaa['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1cbbaa['registerBlockAttribute']('headingRows'),_0x1cbbaa['registerBlockAttribute']('headingColumns'),_0x1cbbaa['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4b74f4,'FORMAT_HEADER_ROW')),_0x1cbbaa['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4b74f4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1406da=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb9cbdd=this['editor']['plugins']['get']('TableUtils'),_0x200a32=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x2099f1({showActiveMarker:_0x184419=!0x0,setDataAttribute:_0x23021a=!0x0}={}){return(_0xab18a4,_0x1f82df,_0x425eb0)=>{const {type:_0x58f8ed,id:_0x20cf5e}=_0x1406da['_splitMarkerName'](_0x1f82df['markerName']),_0x58e2b4=_0x1406da['getSuggestion'](_0x20cf5e),_0x4f0603=_0x58e2b4['data'];if('formatBlock'!=_0x58e2b4['type']||!_0x4f0603||'setTableColumnHeader'!=_0x4f0603['commandName'])return;if(_0x1f82df['item'])return void _0xab18a4['stop']();if(!_0x425eb0['consumable']['consume'](_0x1f82df['markerRange'],_0xab18a4['name']))return;const _0x5ec3fc=_0x1f82df['markerRange']['start']['nodeAfter'],_0x504475=_0x1f82df['markerRange']['end']['nodeBefore'],_0x54803f=_0x5ec3fc['parent']['parent'],{column:_0x1b5bbe}=_0xb9cbdd['getCellLocation'](_0x5ec3fc),{column:_0x424b37}=_0xb9cbdd['getCellLocation'](_0x504475);for(let _0x28211d=_0x1b5bbe;_0x28211d<=_0x424b37;_0x28211d++){const _0x49d123=_0xb9cbdd['createTableWalker'](_0x54803f,{'column':_0x28211d,'includeAllSlots':!0x1});for(const _0x6455d of _0x49d123){const _0x57beff=_0x6455d['cell'],_0x7dd51e=_0x425eb0['mapper']['toViewElement'](_0x57beff);_0x425eb0['writer']['addClass']('ck-suggestion-marker-'+_0x58f8ed,_0x7dd51e),_0x23021a&&_0x425eb0['writer']['setAttribute']('data-suggestion',_0x20cf5e,_0x7dd51e),_0x425eb0['mapper']['bindElementToMarker'](_0x7dd51e,_0x1f82df['markerName']),_0x184419&&(_0x1406da['activeMarkers']['includes'](_0x1f82df['markerName'])?_0x425eb0['writer']['addClass']('ck-suggestion-marker--active',_0x7dd51e):_0x425eb0['writer']['removeClass']('ck-suggestion-marker--active',_0x7dd51e));}}};}_0x1406da['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x200a32),_0x1406da['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x200a32),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2099f1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b1040,_0x335907,_0x4eedad)=>{_0x4eedad['options']['showSuggestionHighlights']&&_0x2099f1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1b1040,_0x335907,_0x4eedad);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x27f381,_0x3af76b,_0x43b77d)=>{const {type:_0x2dfa18,id:_0x4ac5bb}=_0x1406da['_splitMarkerName'](_0x3af76b['markerName']),_0x403208=_0x1406da['getSuggestion'](_0x4ac5bb),_0x36d09c=_0x403208['data'];if('formatBlock'!=_0x403208['type']||!_0x36d09c||'setTableColumnHeader'!=_0x36d09c['commandName'])return;const _0x1960a9=_0x43b77d['mapper']['markerNameToElements'](_0x3af76b['markerName']);if(_0x1960a9){for(const _0x254213 of _0x1960a9)_0x43b77d['writer']['removeClass']('ck-suggestion-marker-'+_0x2dfa18,_0x254213),_0x43b77d['writer']['removeClass']('ck-suggestion-marker--active',_0x254213),_0x43b77d['writer']['removeAttribute']('data-suggestion',_0x254213),_0x43b77d['mapper']['unbindElementFromMarkerName'](_0x254213,_0x3af76b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aa8d9=this['editor'],_0x29a74c=_0x1aa8d9['locale'];function _0x37fcc1(_0x251e55){return{'type':'format','content':c(_0x29a74c,'*Format:*\x20%0',_0x251e55)};}_0x1aa8d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1526a5=>{if('formatBlock'!=_0x1526a5['type'])return;const {data:_0x11d773}=_0x1526a5;if(_0x11d773){if('setTableRowHeader'==_0x11d773['commandName']){const _0x1fcc59=_0x11d773['commandParams'][0x0]['forceValue'];return _0x37fcc1(c(_0x29a74c,_0x1fcc59?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x11d773['commandName']){const _0x49cebb=_0x11d773['commandParams'][0x0]['forceValue'];return _0x37fcc1(c(_0x29a74c,_0x49cebb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5543a6{['afterInit'](){const _0x5e3141=this['editor'],_0x3af075=_0x5e3141['locale'],_0x7c503f=_0x5e3141['plugins']['get']('TrackChangesEditing');function _0x1b81ed(_0x3484c9){return{'type':'format','content':''+c(_0x3af075,'*Set\x20table\x20type:*\x20%0',_0x3484c9)};}_0x5e3141['plugins']['has']('TableLayout')&&(_0x7c503f['enableCommand']('insertTableLayout'),_0x7c503f['enableDefaultAttributesIntegration']('tableType'),_0x7c503f['registerBlockAttribute']('tableType'),_0x7c503f['descriptionFactory']['registerElementLabel'](_0x2ec20e=>_0x2ec20e['is']('element','table')&&'layout'===_0x2ec20e['getAttribute']('tableType'),_0x3a2989=>c(_0x3af075,'ELEMENT_LAYOUT_TABLE',_0x3a2989)),_0x7c503f['descriptionFactory']['registerDescriptionCallback'](_0x541898=>{const {data:_0x4dd85d}=_0x541898;if(_0x4dd85d&&'tableType'==_0x4dd85d['key'])switch(_0x4dd85d['newValue']){case'layout':return _0x1b81ed(c(_0x3af075,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1b81ed(c(_0x3af075,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x57117a=>[_0x57117a,null]));class $t extends _0x5543a6{static get['requires'](){return[Ct];}['afterInit'](){const _0x184c1c=this['editor'];if(!_0x184c1c['plugins']['has']('TableClipboard'))return;const _0x2b9265=_0x184c1c['plugins']['get']('TrackChangesEditing'),_0x2e8806=_0x184c1c['plugins']['get']('TableUtils'),_0x4ea636=_0x184c1c['plugins']['get'](Ct),_0xb29113=_0x184c1c['plugins']['get']('TableClipboard'),_0x2727e9=_0x184c1c['plugins']['get']('TableSelection'),_0x2c0587=_0x184c1c['plugins']['get'](_0x3d6ba0);_0x4ea636['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x184c1c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x184c1c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x568073=null,_0x34eff2=!0x1;_0x2c0587['on']('contentInsertion',(_0x56e2b0,_0x364db5)=>{_0x34eff2='paste'===_0x364db5['method'];}),_0x184c1c['model']['on']('insertContent',(_0x4ea56d,_0x553c5d)=>{if(!_0x34eff2&&null===_0x2727e9['getSelectedTableCells']())return;const [_0x3bc61f,_0x223ff2]=_0x553c5d,_0x5e4e36=_0x553c5d[_0x553c5d['length']-0x1];_0x5e4e36&&_0x5e4e36['forceDefaultExecution']||_0x2b9265['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x9184c7,_0x951f21,_0x2713c7,_0x316f54,_0x6806e9){if(_0x951f21&&!_0x951f21['is']('documentSelection'))return!0x1;const _0xa1571b=_0x6806e9['getTableIfOnlyTableInContent'](_0x9184c7,_0x2713c7);if(!_0xa1571b||!De(_0xa1571b,void 0x0,_0x316f54))return!0x1;const _0x17cf10=_0x316f54['getSelectionAffectedTableCells'](_0x2713c7['document']['selection']);if(!_0x17cf10['length'])return!0x1;const _0x31fc01=_0x17cf10[0x0]['findAncestor']('table'),_0x1b374e=_0x316f54['getRowIndexes'](_0x17cf10),_0x12c17d=_0x316f54['getColumnIndexes'](_0x17cf10),_0x70960c={'startRow':_0x1b374e['first'],'endRow':_0x1b374e['last'],'startColumn':_0x12c17d['first'],'endColumn':_0x12c17d['last']};return 0x1==_0x17cf10['length']&&(_0x70960c['endRow']+=_0x316f54['getRows'](_0xa1571b)-0x1,_0x70960c['endColumn']+=_0x316f54['getColumns'](_0xa1571b)-0x1),De(_0x31fc01,_0x70960c,_0x316f54);}(_0x3bc61f,_0x223ff2,_0x184c1c['model'],_0x2e8806,_0xb29113)&&(_0x4ea56d['stop'](),_0x568073={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x184c1c['model']['change'](()=>{_0x184c1c['model']['insertContent'](_0x553c5d[0x0],_0x553c5d[0x1],_0x553c5d[0x2],{'forceDefaultExecution':!0x0});const _0x185d15=_0x25d5a0(),{rowInsertionRanges:_0x4905b3,columnInsertionRanges:_0xface1f,insertionRanges:_0x5739bf,deletionRanges:_0x3f94f7,cells:_0x3ce70d}=_0x568073;_0x4905b3['length']&&_0x2b9265['markMultiRangeInsertion'](_0x4905b3,'tablePasteRow',{'tablePasteChainId':_0x185d15}),_0xface1f['length']&&_0x2b9265['markMultiRangeInsertion'](_0xface1f,'tablePasteColumn',{'tablePasteChainId':_0x185d15}),_0x5739bf['length']&&(_0x2b9265['markMultiRangeInsertion'](_0x5739bf,'tablePaste',{'tablePasteChainId':_0x185d15,'skipNestingCheck':!0x0}),_0x5739bf['forEach'](_0x4a70dd=>_0x4a70dd['detach']?.())),_0x3f94f7['length']&&(_0x2b9265['markMultiRangeDeletion'](_0x3f94f7,'tablePaste',{'tablePasteChainId':_0x185d15,'skipNestingCheck':!0x0}),_0x3f94f7['forEach'](_0x232a4c=>_0x232a4c['detach']?.()));const _0x5caee4=_0x2b9265['markMultiRangeBlockFormat'](_0x3ce70d['map'](({element:_0x26db6c})=>_0x26db6c),{'formatGroupId':_0x25d5a0()},[],'tablePasteCell',{'tablePasteChainId':_0x185d15});if(_0x5caee4){const _0x5b20d3=_0x5caee4['getMarkers'](),_0x43620f=[];for(const {element:_0x2e9436,attributes:_0x11aa57}of _0x3ce70d){if(!_0x11aa57)continue;const _0x293a1e=_0x184c1c['model']['createRangeOn'](_0x2e9436),_0x9f0e79=_0x5b20d3['find'](_0x191674=>_0x191674['getRange']()['isEqual'](_0x293a1e));_0x9f0e79&&_0x43620f['push']([_0x9f0e79['name'],_0x11aa57]);}_0x43620f['length']&&_0x5caee4['setAttribute']('markerAttributes',Object['fromEntries'](_0x43620f));}_0x568073=null;}));},{'priority':_0xc6f25c['high']+0xa}),_0x2c0587['on']('contentInsertion',()=>{_0x34eff2=!0x1;},{'priority':'lowest'}),_0x184c1c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2e3b65,_0x5b8daa)=>{const [_0x408754,_0x561c54,,_0x390504]=_0x5b8daa;if(!_0x568073)return;_0x2e3b65['stop']();const _0x43425a=_0x408754['cell'],_0x328436=_0x561c54,_0x524df6=Ue(_0x43425a),_0xef2ea6=Ue(_0x328436);_0x2e3b65['return']=_0x43425a;let _0x352763=null,_0xb9c47e=null;if(_0xef2ea6||_0x524df6){if(_0x524df6&&!_0xef2ea6){_0x390504['remove'](_0x43425a['getChild'](0x0));for(const _0x281d38 of Array['from'](_0x328436['getChildren']()))_0x390504['insert'](_0x281d38,_0x43425a,'end');const _0x148bbf=_0x568073['rowInsertionIndexes']['includes'](_0x408754['row']),_0x3bfcd6=_0x568073['columnInsertionIndexes']['includes'](_0x408754['column']);_0x148bbf||_0x3bfcd6||(_0x352763=_0x24a0f9['fromRange'](_0x390504['createRangeIn'](_0x43425a)));}else _0xef2ea6&&!_0x524df6&&(_0xb9c47e=_0x390504['createRangeIn'](_0x43425a));}else{const _0x41c8df=_0x390504['createElement']('tableCellSuggestion'),_0x3a6768=_0x390504['createElement']('tableCellSuggestion');_0x390504['wrap'](_0x390504['createRangeIn'](_0x43425a),_0x3a6768),_0x390504['insert'](_0x41c8df,_0x43425a,0x0);for(const _0x2409b5 of Array['from'](_0x328436['getChildren']()))_0x390504['insert'](_0x2409b5,_0x41c8df,'end');_0x352763=_0x24a0f9['fromRange'](_0x390504['createRangeOn'](_0x41c8df)),_0xb9c47e=_0x24a0f9['fromRange'](_0x390504['createRangeOn'](_0x3a6768));}const _0x561c96=Array['from'](_0x328436['getAttributes']())['filter'](([_0x2e7c34])=>xe['includes'](_0x2e7c34));_0x568073['cells']['push']({'element':_0x43425a,'attributes':_0x561c96['length']?Object['fromEntries'](_0x561c96):null}),_0x352763&&_0x568073['insertionRanges']['push'](_0x352763),_0xb9c47e&&_0x568073['deletionRanges']['push'](_0xb9c47e);},{'priority':'high'}),_0x2e8806['on']('insertColumns',(_0x1751d9,_0x321c5c)=>{const [_0x3ce776,_0x298769={}]=_0x321c5c;if(!_0x568073)return;const _0x597282=_0x298769['at']||0x0,_0x47d553=_0x298769['columns']||0x1;_0x568073['columnInsertionIndexes']=new Array(_0x47d553)['fill'](_0x597282)['map']((_0x2b50cf,_0x497217)=>_0x2b50cf+_0x497217);for(const {cell:_0x17dc1e}of _0x2e8806['createTableWalker'](_0x3ce776,{'startColumn':_0x597282,'endColumn':_0x597282+_0x47d553-0x1}))_0x568073['columnInsertionRanges']['push'](_0x184c1c['model']['createRangeOn'](_0x17dc1e));},{'priority':'low'}),_0x2e8806['on']('insertRows',(_0x4eb167,_0x3018af)=>{const [_0x2249b6,_0x1a1deb={}]=_0x3018af;if(!_0x568073)return;const _0x2a573b=_0x1a1deb['at']||0x0,_0x1266da=_0x1a1deb['rows']||0x1;_0x568073['rowInsertionIndexes']=new Array(_0x1266da)['fill'](_0x2a573b)['map']((_0x3e2097,_0x144b4e)=>_0x3e2097+_0x144b4e);for(const {cell:_0x4e37e1}of _0x2e8806['createTableWalker'](_0x2249b6,{'startRow':_0x2a573b,'endRow':_0x2a573b+_0x1266da-0x1}))_0x568073['rowInsertionRanges']['push'](_0x184c1c['model']['createRangeOn'](_0x4e37e1));},{'priority':'low'}),_0x2b9265['descriptionFactory']['registerDescriptionCallback'](_0x3fea61=>{if(_0x3fea61['subType']&&_0x3fea61['subType']['startsWith']('tablePaste'))return _0x3fea61['previous']?{}:{'type':'insertion','content':c(_0x184c1c['locale'],'*Replace\x20table\x20cells*')};});const _0x5e4998=()=>!0x1;for(const _0x1056be of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2b9265['_suggestionFactory']['registerCustomCallback']('insertion',_0x1056be,'join',_0x5e4998),_0x2b9265['_suggestionFactory']['registerCustomCallback']('deletion',_0x1056be,'join',_0x5e4998),_0x2b9265['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1056be,'join',_0x5e4998);_0x2b9265['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5e4998),_0x2b9265['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x8300a9,_0x1fb5e4,_0x68c3ab)=>{const _0x63a06a=_0x8300a9['map'](_0x22aec2=>_0x22aec2['getContainedElement']())['filter'](_0x15bce2=>_0x15bce2),_0xc22d01=new Map(_0x63a06a['map'](_0x27fd2d=>[_0x27fd2d,null]));if(_0x568073){for(const {element:_0x12a402,attributes:_0x257f49}of _0x568073['cells'])_0x257f49&&_0xc22d01['set'](_0x12a402,_0x257f49);}else{if(_0x68c3ab&&_0x68c3ab['markerAttributes'])for(const [_0x3ba5d3,_0x280803]of Object['entries'](_0x68c3ab['markerAttributes'])){const _0xd96c10=_0x184c1c['model']['markers']['get'](_0x3ba5d3),_0x819464=_0xd96c10?_0xd96c10['getRange']()['getContainedElement']():null;_0x819464&&_0xc22d01['set'](_0x819464,_0x280803);}}_0x184c1c['model']['change'](_0x5d655b=>{for(const [_0x4da4d7,_0x1e1ede]of _0xc22d01)_0x5d655b['setAttributes']({...Oe,..._0x1e1ede},_0x4da4d7);});});const _0x472292=(_0xc8223b,_0x2f6744)=>{_0x2b9265['_suggestionFactory']['registerCustomCallback'](_0xc8223b,'tablePaste',_0x2f6744,(_0x3bd0af,_0x578e01,_0x59bb36)=>{_0x184c1c['model']['change'](_0x1a5127=>{const _0x44643c=[];for(const _0x208198 of _0x3bd0af){const _0x52cb9b=_0x208198['start']['nodeAfter'];_0x52cb9b['is']('element','tableCellSuggestion')&&_0x44643c['push'](_0x52cb9b);}_0x2b9265['_suggestionFactory']['getSuggestionCallback'](_0xc8223b,null,_0x2f6744)(_0x3bd0af,_0x578e01,_0x59bb36);for(const _0x40566a of _0x44643c)'$graveyard'!=_0x40566a['root']['rootName']&&_0x1a5127['unwrap'](_0x40566a);});});};_0x472292('insertion','accept'),_0x472292('insertion','discard'),_0x472292('deletion','accept'),_0x472292('deletion','discard'),_0x2b9265['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x45e1c8=>{const _0x179133=_0x45e1c8['map'](_0x13e71f=>_0x13e71f['getContainedElement']()),_0x4cca8f=_0x179133[0x0]['findAncestor']('table'),{minRow:_0x53044e,maxRow:_0x10204a}=_0x4ea636['_getCoordsForCells'](_0x179133);_0x2e8806['removeRows'](_0x4cca8f,{'at':_0x53044e,'rows':_0x10204a-_0x53044e+0x1});}),_0x2b9265['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x22bf80=>{const _0x5e2254=_0x22bf80['map'](_0x22fe40=>_0x22fe40['getContainedElement']()),_0x2b5655=_0x5e2254[0x0]['findAncestor']('table'),{minColumn:_0x4eb9f,maxColumn:_0x3933c2}=_0x4ea636['_getCoordsForCells'](_0x5e2254);_0x2e8806['removeColumns'](_0x2b5655,{'at':_0x4eb9f,'columns':_0x3933c2-_0x4eb9f+0x1});});const _0x247abf=(_0x1089b9,_0x1eebae)=>{if(!_0x1eebae['subType']||!_0x1eebae['subType']['startsWith']('tablePaste'))return;const _0x189438=_0x1eebae['attributes']['tablePasteChainId'],_0x23b26c=_0x2b9265['getSuggestions']()['filter'](_0x247a13=>_0x247a13['isInContent']&&_0x247a13['attributes']&&_0x247a13['attributes']['tablePasteChainId']==_0x189438);_0x23b26c['length']&&_0x1eebae['getAllAdjacentSuggestions']()['length']!=_0x23b26c['length']&&_0x23b26c['reduce']((_0x2daf9b,_0x495d9a)=>(_0x2daf9b['next']=_0x495d9a,_0x495d9a['previous']=_0x2daf9b,_0x495d9a));};function _0x16577d(_0x1409af,_0x3f787e=!0x0){const {id:_0x1dff59,authorId:_0x4dc1a6}=_0x2b9265['_splitMarkerName'](_0x1409af['markerName']),_0x4972a8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2396e=_0x2b9265['activeMarkers']['includes'](_0x1409af['markerName']);return _0x2396e&&_0x4972a8['push']('ck-suggestion-marker--active'),{'classes':_0x4972a8,'attributes':{'data-suggestion':_0x1dff59,'data-author-id':_0x4dc1a6},'priority':_0x2396e&&_0x3f787e?0xbc2:0xbb8};}_0x2b9265['on']('suggestionLoaded',_0x247abf,{'priority':'high'}),_0x2b9265['on']('suggestionUnloaded',_0x247abf,{'priority':'high'}),_0x184c1c['model']['document']['registerPostFixer'](()=>{let _0x1dae7e=!0x1;const _0x10f2e6=Array['from'](_0x184c1c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24b272,data:_0x2dc8cd}of _0x10f2e6){const {group:_0x1e104b,type:_0x3ee5b5,id:_0x2614b3}=_0x2b9265['_splitMarkerName'](_0x24b272);if('suggestion'!=_0x1e104b||'deletion'!=_0x3ee5b5||_0x2dc8cd['oldRange'])continue;if(!_0x2b9265['hasSuggestion'](_0x2614b3))continue;const _0x9c66d9=_0x2b9265['getSuggestion'](_0x2614b3)['getRanges'](),_0x912df5=_0x184c1c['plugins']['get']('Users')['me'];for(const _0x51b874 of _0x2b9265['getSuggestions']()){if(!_0x51b874['isInContent']||_0x51b874['author']!=_0x912df5)continue;if('formatBlock'!=_0x51b874['type']||'tablePasteCell'!=_0x51b874['subType'])continue;if(_0x51b874['getRanges']()['every'](_0x467487=>_0x9c66d9['some'](_0x5f02ee=>_0x5f02ee['containsRange'](_0x467487,!0x0)))){for(const _0x20d2c9 of _0x51b874['getAllAdjacentSuggestions']())_0x20d2c9['isInContent']&&(_0x20d2c9['discard'](),_0x1dae7e=!0x0);}}}return _0x1dae7e;}),_0x184c1c['model']['document']['registerPostFixer'](_0x989992=>{const _0x3cc7c6=_0x184c1c['commands']['get']('redo');if(!_0x3cc7c6||!_0x3cc7c6['_createdBatches']['has'](_0x989992['batch']))return!0x1;let _0x5575c9=!0x1;const _0x5c1d16=_0x184c1c['plugins']['get']('Users')['me'],_0x2948e3=_0x184c1c['model']['document']['differ']['getChanges'](),_0x5dafee=Array['from'](_0x184c1c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xff3229,data:_0x4d0230})=>{const {group:_0x49856f,subType:_0x4596c3,authorId:_0x4dbc2e}=_0x2b9265['_splitMarkerName'](_0xff3229);return'suggestion'==_0x49856f&&'tablePaste'==_0x4596c3&&_0x4dbc2e==_0x5c1d16['id']&&!_0x4d0230['oldRange'];});for(const _0x60b2de of _0x2948e3){if('insert'!=_0x60b2de['type']||'tableCellSuggestion'!=_0x60b2de['name']||0x1!=_0x60b2de['length'])continue;const _0xb721ab=_0x989992['createRange'](_0x60b2de['position'],_0x60b2de['position']['getShiftedBy'](0x1));if(!_0x5dafee['find'](({data:_0x4e64f4})=>_0x4e64f4['newRange']['isEqual'](_0xb721ab))){for(const {name:_0x1bd209,data:_0x186cb6}of _0x5dafee)if(_0xb721ab['containsRange'](_0x186cb6['newRange'])){_0x989992['updateMarker'](_0x1bd209,{'range':_0xb721ab}),_0x5575c9=!0x0;break;}}}return _0x5575c9;}),_0x184c1c['model']['document']['registerPostFixer'](_0x53b1f5=>{let _0x2d1df5=!0x1;const _0xb29ad0=_0x184c1c['plugins']['get']('Users')['me'],_0x6fe7e=_0x2b9265['getSuggestions']()['filter'](_0x4f70fd=>_0x4f70fd['isInContent']&&_0x4f70fd['author']==_0xb29ad0),_0x3990c7=new Set(),_0xecad6d=new Set();for(const _0x25280f of _0x6fe7e)if('tablePaste'==_0x25280f['subType'])for(const _0x10ea86 of _0x25280f['getMarkers']()){const _0x4bd800=_0x10ea86['getRange']()['getContainedElement']();if(_0x4bd800){if(_0x4bd800['is']('element','tableCellSuggestion')&&Ue(_0x4bd800)){_0x25280f['removeMarker'](_0x10ea86['name']),_0x3990c7['add'](_0x4bd800),_0x2d1df5=!0x0;const _0x4dbdc2=_0x4bd800['nextSibling'],_0x4fc373=_0x4bd800['previousSibling'],_0x143b79=_0x4dbdc2&&_0x4dbdc2['is']('element','tableCellSuggestion'),_0x2d5d40=_0x4fc373&&_0x4fc373['is']('element','tableCellSuggestion');_0x143b79&&!_0x3990c7['has'](_0x4dbdc2)&&_0xecad6d['add'](_0x4dbdc2),_0x2d5d40&&!_0x3990c7['has'](_0x4fc373)&&_0xecad6d['add'](_0x4fc373);}else _0x4bd800['is']('element','paragraph')&&_0x4bd800['isEmpty']&&(_0x25280f['removeMarker'](_0x10ea86['name']),_0x2d1df5=!0x0);}}else{if('tablePasteCell'==_0x25280f['subType']){if(!_0x25280f['attributes']||!_0x25280f['attributes']['tablePasteChainId'])continue;const _0x207c0a=_0x25280f['attributes']['markerAttributes'];if(_0x207c0a&&Object['keys'](_0x207c0a)['length'])continue;const _0x4565bc=_0x25280f['attributes']['tablePasteChainId'];let _0x2c354d=!0x0,_0x2a84d5=!0x0;for(const _0x5bf560 of _0x6fe7e)if(_0x5bf560['subType']&&_0x5bf560['subType']['startsWith']('tablePaste')){if(!_0x5bf560['attributes']['tablePasteChainId']){_0x2a84d5=!0x1;break;}if(_0x5bf560['id']!=_0x25280f['id']&&_0x5bf560['attributes']['tablePasteChainId']==_0x4565bc){_0x2c354d=!0x1;break;}}_0x2a84d5&&_0x2c354d&&(_0x25280f['removeMarkers'](),_0x2d1df5=!0x0);}}for(const _0x11c4d8 of _0x3990c7)_0x53b1f5['remove'](_0x11c4d8);for(const _0x42cd8f of _0xecad6d)_0x53b1f5['unwrap'](_0x42cd8f);return _0x2d1df5;}),_0x184c1c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x237649=>_0x16577d(_0x237649),'converterPriority':'high'}),_0x184c1c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c7eed,_0x36abfa)=>_0x36abfa['options']['showSuggestionHighlights']?_0x16577d(_0x2c7eed,!0x1):null,'converterPriority':'high'});const _0x147369=_0x184c1c['editing']['view'];this['listenTo'](_0x147369['document'],'clipboardOutput',(_0x2bba5c,_0x58c987)=>{const _0x5a9b21=[];for(const _0x59388c of _0x147369['createRangeIn'](_0x58c987['content'])['getItems']())_0x59388c['is']('element','suggestion-td')&&_0x5a9b21['push'](_0x59388c);_0x147369['change'](_0x5ae333=>{for(const _0x4ae22d of _0x5a9b21)_0x5ae333['move'](_0x5ae333['createRangeIn'](_0x4ae22d),_0x5ae333['createPositionBefore'](_0x4ae22d)),_0x5ae333['remove'](_0x4ae22d);});});}}function Ue(_0x110b0a){if(_0x110b0a['isEmpty'])return!0x0;const _0x2d5e21=_0x110b0a['getChild'](0x0);return _0x2d5e21['is']('element','paragraph')&&_0x2d5e21['isEmpty'];}function De(_0x411597,_0xa6f6d1={},_0x4ae816){for(const {isAnchor:_0x1eed43,cellHeight:_0x14d2bb,cellWidth:_0xc5d28d}of _0x4ae816['createTableWalker'](_0x411597,{'includeAllSlots':!0x0,..._0xa6f6d1}))if(!_0x1eed43||0x1!=_0x14d2bb||0x1!=_0xc5d28d)return!0x1;return!0x0;}class Bt extends _0x5543a6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x827cbc=this['editor']['plugins']['get']('TrackChangesEditing');_0x827cbc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x827cbc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x827cbc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x827cbc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x827cbc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x827cbc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4dfa0f,_0x3adf56){const _0x26ec52=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe925ed=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xbc4569=_0x3adf56['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2f9f77=_0xe925ed['getColumnGroupElement'](_0xbc4569);let _0x510288=_0x2f9f77?_0xe925ed['getTableColumnsWidths'](_0x2f9f77):null,_0x3beb7b=_0xbc4569['getAttribute']('tableWidth')||null;const _0x54473c=_0x3adf56['tableWidth']||_0x3beb7b,_0x46bd7f=_0x3adf56['columnWidths']||_0x510288,_0x4f130f=this['editor']['plugins']['get']('Users')['me'];for(const _0xfd02c7 of _0x26ec52['getSuggestions']()){const _0x5b90a2=_0xfd02c7['getContainedElement']();if('resizeTable'===_0xfd02c7['subType']&&_0x5b90a2===_0xbc4569){_0xfd02c7['author']!==_0x4f130f&&_0xfd02c7['discard']();const _0x4e3dcb=_0xfd02c7['data']['commandParams'];_0x3beb7b=_0x4e3dcb[0x0]['tableWidth'],_0x510288=_0x4e3dcb[0x0]['columnWidths'];break;}}_0x4dfa0f({'table':_0xbc4569,'tableWidth':_0x54473c,'columnWidths':_0x46bd7f}),_0x26ec52['markBlockFormat'](_0xbc4569,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3beb7b,'columnWidths':_0x510288}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x595f6c){if('formatBlock'!=_0x595f6c['type']&&'formatInline'!=_0x595f6c['type'])return;const {data:_0x2809e4}=_0x595f6c;if(_0x2809e4&&'resizeTable'===_0x2809e4['formatGroupId']){const _0x1d0546='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x1d0546)};}}}class Ot extends _0x5543a6{['afterInit'](){const _0x143ee1=this['editor'];_0x143ee1['plugins']['has']('Template')&&_0x143ee1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x5543a6{['afterInit'](){const _0x4834f3=this['editor'];if(!_0x4834f3['commands']['get']('insertTableOfContents'))return;_0x4834f3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x27f189=_0x4834f3['plugins']['get']('TrackChangesEditing'),_0x629525=_0x4834f3['locale'];_0x27f189['descriptionFactory']['registerElementLabel']('tableOfContents',_0x27e3f7=>c(_0x629525,'ELEMENT_TABLE_OF_CONTENTS',_0x27e3f7));}}class xt extends _0x5543a6{['afterInit'](){const _0x1a4565=this['editor'];if(!_0x1a4565['plugins']['has']('Title'))return;const _0x2bdf58=_0x1a4565['plugins']['get']('TrackChangesEditing');_0x2bdf58['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1a4565['locale'],'ELEMENT_TITLE')),_0x1a4565['model']['document']['registerPostFixer'](_0x3cf88d=>{let _0x4ba95a=!0x1;const _0x4a41f8=Array['from'](_0x1a4565['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13c13b,data:_0x20e89d}of _0x4a41f8){const {group:_0x2f7e6a}=_0x2bdf58['_splitMarkerName'](_0x13c13b);if('suggestion'!==_0x2f7e6a||!_0x20e89d['newRange'])continue;const _0x274753=_0x20e89d['newRange'],_0x4ac91d=_0x274753['end']['nodeBefore'];if(!_0x4ac91d||!_0x4ac91d['is']('element','title-content'))continue;if(!_0x274753['start']['isTouching'](_0x274753['end']))continue;const _0x28e8ec=_0x1a4565['model']['schema']['getNearestSelectionRange'](_0x274753['end'],'forward');if(_0x28e8ec&&_0x28e8ec['isCollapsed']){const _0x59c1ff=_0x3cf88d['createRange'](_0x274753['start'],_0x28e8ec['start']);_0x59c1ff['isEqual'](_0x274753)||(_0x3cf88d['updateMarker'](_0x13c13b,{'range':_0x59c1ff}),_0x4ba95a=!0x0);}_0x4ba95a||(_0x3cf88d['removeMarker'](_0x13c13b),_0x4ba95a=!0x0);}return _0x4ba95a;});}}class Tt extends _0x5543a6{['afterInit'](){const _0x290d51=this['editor'],_0xd90017=_0x290d51['plugins']['get']('TrackChangesEditing');_0x290d51['plugins']['has']('Uploadcare')&&(_0xd90017['enableCommand']('uploadcare'),_0x290d51['plugins']['has']('UploadcareImageEdit')&&(_0xd90017['enableCommand']('uploadcareImageEdit'),_0xd90017['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xd90017['registerBlockAttribute']('uploadcareImageId'),_0xd90017['descriptionFactory']['registerDescriptionCallback'](_0x3eef9a=>{if('attribute'!=_0x3eef9a['type'])return;const {data:_0x545e4b}=_0x3eef9a;return _0x545e4b&&'uploadcareImageId'==_0x545e4b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5543a6{['afterInit'](){const _0x266a05=this['editor'],_0xfcc2fd=_0x266a05['plugins']['get']('TrackChangesEditing');_0x266a05['plugins']['has']('UndoEditing')&&(_0xfcc2fd['enableCommand']('undo'),_0xfcc2fd['enableCommand']('redo'));}}class Ut extends _0x5543a6{static get['requires'](){return[Ct];}['afterInit'](){const _0x562e69=this['editor'];if(!_0x562e69['plugins']['has']('TableCaptionEditing'))return;_0x562e69['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5543a6{['tableProperties'];['tableCellProperties'];constructor(_0x1a8fcd){super(_0x1a8fcd),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 _0x4a33ad=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x278988 of this['tableProperties'])_0x4a33ad['enableCommand'](_0x278988,(_0x259f6c,_0x4503cb)=>{const _0x87e78=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x278988,[_0x87e78],this['tableProperties'],'tableProperties',_0x259f6c,_0x4503cb);});_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4a33ad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x18aff5,_0x4b6746)=>this['handleDiscardAction'](this['tableProperties'],_0x18aff5,_0x4b6746)),_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe1caa1 of this['tableCellProperties'])_0x4a33ad['enableCommand'](_0xe1caa1,(_0x1f5f5a,_0x54c019)=>{const _0x4c2067=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe1caa1,_0x4c2067,this['tableCellProperties'],'tableCellProperties',_0x1f5f5a,_0x54c019);});_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4a33ad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3b3210,_0x4ec0c2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3b3210,_0x4ec0c2)),_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4a33ad['descriptionFactory']['registerDescriptionCallback'](_0xaa4435=>this['handleSuggestionDescription'](_0xaa4435));}['_handlePropertyChange'](_0x5d1486,_0x3c8b94,_0x513e33,_0x54c7d0,_0x588f2f,_0x59a2eb){const _0x464cfb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x59a2eb['batch'],()=>{for(const _0x239b93 of _0x3c8b94){if(this['_getSuggestion'](_0x239b93,_0x54c7d0))_0x588f2f(_0x59a2eb);else{const _0xb18dd={};for(const _0xddc47c of _0x513e33){const _0x42a706=_0x239b93['getAttribute'](_0xddc47c);void 0x0!==_0x42a706&&(_0xb18dd[_0xddc47c]=_0x42a706);}_0x588f2f(_0x59a2eb),_0x464cfb['markBlockFormat'](_0x239b93,{'commandParams':[_0xb18dd]},[],_0x54c7d0);}}});}['handleDiscardAction'](_0x8b7e07,_0x41d976,_0x553029){const _0xa52464=_0x41d976[0x0]['start']['nodeAfter'],_0x7c6438=_0x553029['commandParams'][0x0];this['editor']['model']['change'](_0x4446a6=>{for(const _0x258157 of _0x8b7e07)void 0x0!==_0x7c6438[_0x258157]?_0x4446a6['setAttribute'](_0x258157,_0x7c6438[_0x258157],_0xa52464):_0x4446a6['removeAttribute'](_0x258157,_0xa52464);});}['handleSuggestionDescription'](_0x389b8c){if(_0x389b8c['data'])switch(_0x389b8c['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'](_0x455dd1,_0x416626){const _0x628f84=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2b1b42 of _0x628f84['getSuggestions']({'skipNotAttached':!0x0})){const _0x454ee3=_0x2b1b42['getContainedElement']();if(_0x2b1b42['subType']===_0x416626&&_0x454ee3===_0x455dd1)return _0x2b1b42;}return null;}}const u='$elementName';class p extends _0x5543a6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x327c0e,_0xe971b5,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bfbf1){super(_0x4bfbf1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x528b17,_0x5f5bcc,_0x11fbb2,_0x25a8c4)=>{this['_model']['change'](()=>{for(const _0x28cda6 of[..._0x25a8c4,..._0x11fbb2])this['_model']['markers']['has'](_0x28cda6)&&_0x4bfbf1['editing']['reconvertMarker'](_0x28cda6);});}),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']=_0x4bfbf1['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(),_0x4bfbf1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4bfbf1['config']['get']('trackChanges.trackFormatChanges'),_0x4bfbf1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4bfbf1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4bfbf1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x392a80=this['editor'],_0x491850=(_0x1d3ba2,_0x3e58d3)=>{if('attribute'!=_0x1d3ba2)return'ck-suggestion-marker-'+_0x1d3ba2;const _0x26b8f1=_0x3e58d3['split']('|')[0x0];return this['_isBlockAttribute'](_0x26b8f1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x392a80['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xd68698=>{const {id:_0x3ec50e,authorId:_0x1a7560,type:_0x2ce781,subType:_0x483462}=this['_splitMarkerName'](_0xd68698['markerName']),_0x2eb0c3=['ck-suggestion-marker',_0x491850(_0x2ce781,_0x483462)];let _0x5eff9f=0xbb8;return this['activeMarkers']['includes'](_0xd68698['markerName'])&&(_0x2eb0c3['push']('ck-suggestion-marker--active'),_0x5eff9f=0xbc2),'deletion'==_0x2ce781&&(_0x5eff9f+=0x5),{'classes':_0x2eb0c3,'attributes':{'data-suggestion':_0x3ec50e,'data-author-id':_0x1a7560},'priority':_0x5eff9f};}}),_0x392a80['conversion']['for']('dataDowncast')['add'](_0x5f3277=>{_0x5f3277['on']('addMarker:suggestion',(_0x26237a,_0x3f9a67,_0xb5e6c6)=>{if(!_0xb5e6c6['options']['showSuggestionHighlights'])return;const _0xee1bf1=_0x3f9a67['item'];if(!_0xee1bf1)return;const _0x2f4c4e=_0xb5e6c6['mapper']['toViewElement'](_0xee1bf1);_0x392a80['model']['schema']['isObject'](_0xee1bf1)&&_0x2f4c4e&&!_0x2f4c4e['getCustomProperty']('widget')&&_0x2f4c4e['is']('containerElement')&&_0x1add60(_0x2f4c4e,_0xb5e6c6['writer']);},{'priority':'high'});}),_0x392a80['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xcdd9a2,_0x4d5f5c)=>{if(!_0x4d5f5c['options']['showSuggestionHighlights'])return null;const {type:_0x38c972,subType:_0x1d34ea}=this['_splitMarkerName'](_0xcdd9a2['markerName']);return{'classes':['ck-suggestion-marker',_0x491850(_0x38c972,_0x1d34ea)],'priority':0xbb8};}});const _0x27223a=({showActiveMarkers:_0x259156=!0x0,isAttributeSuggestion:_0xa0ef26=!0x1}={})=>(_0x28f482,_0x1c11ea,_0x12982f)=>{if(!_0x1c11ea['item'])return;const {id:_0x2037ec,authorId:_0x39eb19}=this['_splitMarkerName'](_0x1c11ea['markerName']);if(_0xa0ef26){const _0x4bb818=this['_suggestions']['get'](_0x2037ec),_0x3a61a4=this['_getAttributeKey'](_0x4bb818);if(!this['_isBlockAttribute'](_0x3a61a4))return;}if(_0x1c11ea['item']['is']('selection'))return void _0x12982f['consumable']['consume'](_0x1c11ea['item'],_0x28f482['name']);const _0x4b2f8e=_0x12982f['mapper']['toViewElement'](_0x1c11ea['item']);if(_0x1c11ea['item']['is']('element')&&_0x392a80['model']['schema']['isBlock'](_0x1c11ea['item'])&&!_0x4b2f8e['getCustomProperty']('addHighlight')){_0x12982f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4b2f8e),_0x12982f['writer']['setAttribute']('data-suggestion',_0x2037ec,_0x4b2f8e),_0x12982f['writer']['setAttribute']('data-author-id',_0x39eb19,_0x4b2f8e),_0x12982f['mapper']['bindElementToMarker'](_0x4b2f8e,_0x1c11ea['markerName']),_0x259156&&(this['activeMarkers']['includes'](_0x1c11ea['markerName'])?_0x12982f['writer']['addClass']('ck-suggestion-marker--active',_0x4b2f8e):_0x12982f['writer']['removeClass']('ck-suggestion-marker--active',_0x4b2f8e));for(const _0xc4d77e of _0x392a80['model']['createRangeIn'](_0x1c11ea['item'])['getItems']())_0x12982f['consumable']['consume'](_0xc4d77e,_0x28f482['name']);_0x12982f['consumable']['consume'](_0x1c11ea['item'],_0x28f482['name']);}};_0x392a80['conversion']['for']('dataDowncast')['add'](_0x2331c2=>{_0x2331c2['on']('addMarker:suggestion:formatBlock',(_0x29414e,_0x5ce33a,_0x128632)=>{_0x128632['options']['showSuggestionHighlights']&&_0x27223a({'showActiveMarkers':!0x1})(_0x29414e,_0x5ce33a,_0x128632);},{'priority':'highest'});}),_0x392a80['conversion']['for']('dataDowncast')['add'](_0x25e467=>{_0x25e467['on']('addMarker:suggestion:attribute',(_0x4e74bf,_0x25d4d0,_0x500380)=>{_0x500380['options']['showSuggestionHighlights']&&_0x27223a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4e74bf,_0x25d4d0,_0x500380);},{'priority':'highest'});}),_0x392a80['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xab0830,_0x3a4a78)=>_0x3a4a78['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xab0830['substr'](0xb)}}),_0x392a80['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x488bca,{writer:_0xa09e9e})=>{let _0x387ac2='suggestion:'+_0x488bca['getAttribute']('suggestion-type')+':'+_0x488bca['getAttribute']('id');return _0x488bca['getAttribute']('marker-count')&&(_0x387ac2+=':'+_0x488bca['getAttribute']('marker-count')),_0xa09e9e['createElement']('$marker',{'data-name':_0x387ac2});}}),_0x392a80['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x392a80['conversion']['for']('editingDowncast')['add'](_0x1a0741=>{_0x1a0741['on']('addMarker:suggestion:formatBlock',_0x27223a(),{'priority':'high'});}),_0x392a80['conversion']['for']('editingDowncast')['add'](_0x4e3686=>{_0x4e3686['on']('addMarker:suggestion:attribute',_0x27223a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x392a80['conversion']['for']('editingDowncast')['add'](_0x183f29=>{_0x183f29['on']('removeMarker:suggestion:formatBlock',(_0x587dbb,_0x452612,_0x57d1db)=>{const _0x2e23ae=_0x57d1db['mapper']['markerNameToElements'](_0x452612['markerName']);if(_0x2e23ae){for(const _0x299faf of _0x2e23ae)_0x299faf['getCustomProperty']('addHighlight')||(_0x57d1db['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x299faf),_0x57d1db['writer']['removeAttribute']('data-suggestion',_0x299faf),_0x57d1db['writer']['removeAttribute']('data-author-id',_0x299faf),_0x57d1db['mapper']['unbindElementFromMarkerName'](_0x299faf,_0x452612['markerName']));}},{'priority':'high'});}),_0x392a80['conversion']['for']('editingDowncast')['add'](_0x538831=>{_0x538831['on']('removeMarker:suggestion:attribute',(_0x3a91dd,_0x56f07a,_0x466b9c)=>{const _0x45f2dd=_0x466b9c['mapper']['markerNameToElements'](_0x56f07a['markerName']);if(!_0x45f2dd)return;const {id:_0xc0e13}=this['_splitMarkerName'](_0x56f07a['markerName']),_0x47d455=this['_suggestions']['get'](_0xc0e13),_0x4a599b=this['_getAttributeKey'](_0x47d455);if(this['_isBlockAttribute'](_0x4a599b)){for(const _0x291940 of _0x45f2dd)_0x291940['getCustomProperty']('addHighlight')||(_0x466b9c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x291940),_0x466b9c['writer']['removeAttribute']('data-suggestion',_0x291940),_0x466b9c['writer']['removeAttribute']('data-author-id',_0x291940),_0x466b9c['mapper']['unbindElementFromMarkerName'](_0x291940,_0x56f07a['markerName']));}},{'priority':'high'});}),_0x392a80['model']['document']['registerPostFixer'](_0xc6d6b0=>{let _0x10e20c=!0x1;const _0x19b977=Array['from'](_0x392a80['model']['document']['differ']['getChangedMarkers']()),_0x26c33e=new Set();for(const {name:_0x40f58b,data:_0x1b2208}of _0x19b977){const {group:_0x5248bd,type:_0x101f2d,subType:_0x384ac0,id:_0x28b153}=this['_splitMarkerName'](_0x40f58b);if('suggestion'!==_0x5248bd)continue;const _0x3c5546=this['_suggestions']['get'](_0x28b153);if(null!=_0x1b2208['newRange']){'formatInline'==_0x101f2d&&(_0x10e20c=_0x10e20c||Jt(_0x1b2208['newRange'],_0x40f58b,_0xc6d6b0,_0x392a80['model']['schema']));const _0x4a6620='attribute'==_0x101f2d&&this['_isBlockAttribute'](_0x384ac0['split']('|')[0x0]);if(_0x1b2208['newRange']['isCollapsed']||'$graveyard'==_0x1b2208['newRange']['root']['rootName']||'formatBlock'==_0x101f2d&&!Ht(_0x1b2208['newRange'])||_0x4a6620&&!Ht(_0x1b2208['newRange'])||'deletion'==_0x101f2d&&!(!Lt(_0x109c60=_0x1b2208['newRange'])&&!function(_0x1cbf50){return _0x1cbf50['start']['parent']==_0x1cbf50['end']['nodeBefore']&&_0x1cbf50['start']['isAtEnd'];}(_0x109c60)))_0xc6d6b0['removeMarker'](_0x40f58b),_0x10e20c=!0x0;else{if(!_0x3c5546||!_0x3c5546['isInContent'])continue;if(_0x1b2208['newRange']&&_0x1b2208['oldRange']&&_0x1b2208['newRange']['isEqual'](_0x1b2208['oldRange']))continue;_0x26c33e['add'](_0x3c5546);}}}var _0x109c60;return _0x26c33e['size']>0x0&&(_0x10e20c=!!this['_joinWithAdjacentSuggestions'](_0x26c33e)||_0x10e20c),_0x10e20c;}),_0x392a80['model']['document']['registerPostFixer'](_0x32066d=>{let _0xbc1584=!0x1;for(const _0xb44c01 of _0x392a80['model']['document']['differ']['getChanges']())if('insert'==_0xb44c01['type'])for(const _0x336263 of this['_suggestions']['values']()){if(_0x336263['isMultiRange']||!_0x336263['isInContent'])continue;const _0x5e2eb9='formatBlock'==_0x336263['type'],_0x2beaa2=this['_getAttributeKey'](_0x336263),_0x4629ae=_0x2beaa2&&this['_isBlockAttribute'](_0x2beaa2);if(!_0x5e2eb9&&!_0x4629ae)continue;const _0x50393a=_0x336263['getFirstRange']();if(_0x50393a['start']['parent']!=_0x50393a['end']['parent']&&!_0x50393a['end']['isAtEnd']){const _0x425666=_0x392a80['model']['createPositionAt'](_0x50393a['start']['nodeAfter'],'end'),_0x24b4ba=_0x392a80['model']['createRange'](_0x50393a['start'],_0x425666);_0x32066d['updateMarker'](_0x336263['getFirstMarker'](),{'range':_0x24b4ba}),_0xbc1584=!0x0;}}return _0xbc1584;}),_0x392a80['model']['document']['registerPostFixer'](_0x256aa1=>this['_processAttributeChanges'](_0x256aa1)),_0x392a80['model']['document']['registerPostFixer'](_0x1a0370=>!_0x1a0370['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1a0370)),_0x392a80['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x392a80['model']['document']['on']('change:data',(_0x1aec2e,_0x60c82d)=>{if(!_0x60c82d['isLocal']||_0x60c82d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3a8f04=_0x392a80['model']['document']['differ']['getChanges']();if(0x0==_0x3a8f04['length'])return;const _0x39a830=[],_0x19ee8b=_0x3a8f04['filter'](_0x3ee40a=>'attribute'==_0x3ee40a['type']),_0x141db0=_0x3a8f04['filter'](_0x378fbb=>'insert'==_0x378fbb['type']&&'$text'!=_0x378fbb['name']);for(const _0x42e389 of _0x19ee8b)this['_isRegisteredAttribute'](_0x42e389['attributeKey'])&&_0x39a830['push']({'key':_0x42e389['attributeKey'],'newValue':_0x42e389['attributeNewValue'],'oldValue':_0x42e389['attributeOldValue'],'range':qt(_0x42e389['range'],_0x392a80['model'])});for(const _0x5ce3a2 of _0x141db0){if('rename'!=_0x5ce3a2['action']&&'refresh'!=_0x5ce3a2['action'])continue;const _0x591107=zt(_0x5ce3a2['position']['nodeAfter'],_0x392a80['model']),_0x36472a=_0x5ce3a2['before'];'rename'==_0x5ce3a2['action']&&_0x39a830['push']({'key':u,'newValue':_0x5ce3a2['name'],'oldValue':_0x36472a['name'],'range':_0x591107});for(const [_0x252d2b,_0x5f1270]of _0x36472a['attributes']){if(!this['_isRegisteredAttribute'](_0x252d2b))continue;const _0x3f469b=_0x5ce3a2['attributes']['get'](_0x252d2b);_0x5f1270!==_0x3f469b&&_0x39a830['push']({'key':_0x252d2b,'newValue':_0x3f469b,'oldValue':_0x5f1270,'range':_0x591107});}for(const [_0x1d8b5a,_0x391513]of _0x5ce3a2['attributes'])this['_isRegisteredAttribute'](_0x1d8b5a)&&(_0x36472a['attributes']['has'](_0x1d8b5a)||_0x39a830['push']({'key':_0x1d8b5a,'newValue':_0x391513,'oldValue':null,'range':_0x591107}));}0x0!=_0x39a830['length']&&_0x392a80['model']['enqueueChange'](_0x60c82d,_0x1b87ce=>{const _0x5c2f40=_0x25d5a0();for(const {range:_0x440f70,key:_0x14f350,oldValue:_0x252db2,newValue:_0x2e8560}of _0x39a830)this['markAttributeChange'](_0x440f70,_0x14f350,_0x252db2,_0x2e8560,{'groupId':_0x5c2f40});this['_reduceExistingSuggestions'](_0x1b87ce,_0x39a830);});},{'priority':'lowest'}),_0x392a80['model']['markers']['on']('update:suggestion',(_0x24f3c9,_0x414cbd,_0xbcb47a)=>{if(null==_0xbcb47a){const {id:_0x47dbff}=this['_splitMarkerName'](_0x414cbd['name']),_0x529dae=this['_suggestions']['get'](_0x47dbff);_0x529dae&&_0x529dae['addMarkerName'](_0x414cbd['name']);}}),_0x392a80['model']['document']['on']('change:data',()=>{const _0x3a2988=Array['from'](_0x392a80['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3022a9=>'suggestion'===this['_splitMarkerName'](_0x3022a9['name'])['group']);if(0x0===_0x3a2988['length'])return;_0x3a2988['sort']((_0x253775,_0x97c5c5)=>{const _0x4b4acf=_0x253775['data']['oldRange'],_0x1b87ca=_0x97c5c5['data']['oldRange'];return null===_0x4b4acf&&null===_0x1b87ca?0x0:null===_0x4b4acf&&null!==_0x1b87ca?-0x1:null!==_0x4b4acf&&null===_0x1b87ca?0x1:_0x4b4acf['start']['isBefore'](_0x1b87ca['start'])?-0x1:0x1;});const _0x3df47b=new Set(),_0x17dabf=new Set();for(const {name:_0x375107,data:_0x348b5b}of _0x3a2988){const {id:_0x3cd3e6}=this['_splitMarkerName'](_0x375107);if(null===_0x348b5b['oldRange']){const _0x5dbcfe=this['_handleNewSuggestionMarker'](_0x375107);_0x17dabf['add'](_0x5dbcfe);}else{const _0x53ee56=this['_suggestions']['get'](_0x3cd3e6);null!==_0x348b5b['newRange']||_0x53ee56['isInContent']?(_0x3df47b['add'](_0x53ee56['head']),_0x17dabf['add'](_0x53ee56)):this['_removeSuggestion'](_0x53ee56);}}_0x17dabf['size']>0x0&&this['_refreshSuggestionsChain'](_0x17dabf);for(const _0x500df3 of _0x3df47b)this['fire']('suggestionChanged',_0x500df3);}),_0x392a80['model']['on']('applyOperation',(_0x44979f,_0x33ea92)=>{const _0x109332=_0x33ea92[0x0];if(!this['_suggestions']['size'])return;if(!_0x109332['isDocumentOperation'])return;if(_0x109332['batch']['isUndo']||!_0x109332['batch']['isLocal'])return;let _0x250915,_0x313cbc;switch(_0x109332['type']){case'insert':_0x250915=_0x392a80['model']['createPositionAt'](_0x109332['position']),_0x313cbc=_0x250915['getShiftedBy'](_0x109332['howMany']);break;case'split':_0x250915=_0x392a80['model']['createPositionAt'](_0x109332['splitPosition']),_0x313cbc=_0x392a80['model']['createPositionAt'](_0x109332['moveTargetPosition']);break;case'move':_0x250915=_0x392a80['model']['createPositionAt'](_0x109332['targetPosition']),_0x313cbc=_0x250915['getShiftedBy'](_0x109332['howMany']);break;default:return;}const _0x8fa7a1=_0x392a80['model']['createRange'](_0x250915,_0x313cbc);_0x392a80['model']['change'](()=>{for(const {suggestion:_0x4dba75,meta:_0x551eef}of this['_findSuggestions'](_0x8fa7a1)){if(_0x4dba75['isMultiRange'])continue;if('formatInline'==_0x4dba75['type'])continue;const _0x44a904=this['_getAttributeKey'](_0x4dba75);if(_0x44a904&&this['_isBlockAttribute'](_0x44a904)&&'split'!=_0x109332['type'])continue;const _0x48e07c=_0x4dba75['data']&&_0x4dba75['data']['multipleBlocks'];('formatBlock'!=_0x4dba75['type']||'split'==_0x109332['type']&&!_0x48e07c)&&(_0x551eef['containsRangeInObject']||'insertion'==_0x4dba75['type']&&_0x551eef['isOwn']||_0x4dba75['getFirstRange']()['containsRange'](_0x8fa7a1)&&this['_breakSuggestionMarker'](_0x4dba75,_0x250915,_0x313cbc));}});},{'priority':'lowest'}),_0x392a80['model']['on']('deleteContent',(_0x4b1a49,_0x458e25)=>{const _0x382904=_0x458e25[0x0],_0x131ad5=_0x458e25[0x1];if(_0x131ad5&&_0x131ad5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x382904['isCollapsed'])return;const _0x56f2f3=_0x392a80['model']['schema'],{start:_0x150b61,end:_0x572143}=_0x382904['getFirstRange'](),_0x74f4e8=_0x150b61['nodeAfter']&&_0x56f2f3['isLimit'](_0x150b61['nodeAfter'])?null:_0x56f2f3['getNearestSelectionRange'](_0x150b61,'forward'),_0xdcca8f=_0x572143['nodeBefore']&&_0x56f2f3['isLimit'](_0x572143['nodeBefore'])?null:_0x56f2f3['getNearestSelectionRange'](_0x572143,'backward'),_0x589966=_0x392a80['model']['createRange'](_0x74f4e8?_0x74f4e8['start']:_0x150b61,_0xdcca8f?_0xdcca8f['end']:_0x572143);_0x392a80['model']['change'](_0x3bbbf4=>{this['markDeletion'](_0x589966);const _0x15b86e=_0x392a80['model']['schema']['getNearestSelectionRange'](_0x589966['start']);_0x382904['is']('documentSelection')?_0x3bbbf4['setSelection'](_0x15b86e):_0x382904['setTo'](_0x15b86e);}),_0x4b1a49['stop']();},{'priority':_0xc6f25c['normal']+0xa}),_0x392a80['model']['on']('insertContent',(_0x61e0de,_0x463caf)=>{const _0x55edbe=_0x463caf[_0x463caf['length']-0x1];_0x55edbe&&_0x55edbe['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x392a80['model']['change'](()=>{let _0x5b787f=_0x392a80['model']['insertContent'](_0x463caf[0x0],_0x463caf[0x1],_0x463caf[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b787f)return;_0x61e0de['return']=_0x5b787f['clone']();const _0x173c53=_0x5b787f['end']['nodeBefore'],_0x3ec2db=_0x392a80['model']['schema'];_0x173c53&&_0x3ec2db['isBlock'](_0x173c53)&&!_0x3ec2db['isObject'](_0x173c53)&&(_0x5b787f=_0x392a80['model']['createRange'](_0x5b787f['start'],_0x392a80['model']['createPositionAt'](_0x173c53,'end'))),this['markInsertion'](_0x5b787f);}),_0x61e0de['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf66d9b=new O(_0x392a80,this['_suggestions']);_0x392a80['commands']['add']('acceptSuggestion',_0xf66d9b),this['enableCommand']('acceptSuggestion');const _0x162840=new R(_0x392a80,this['_suggestions']);_0x392a80['commands']['add']('discardSuggestion',_0x162840),this['enableCommand']('discardSuggestion'),_0x392a80['commands']['add']('acceptAllSuggestions',new x(_0x392a80,_0xf66d9b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x392a80['commands']['add']('discardAllSuggestions',new x(_0x392a80,_0x162840,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x392a80['commands']['add']('acceptSelectedSuggestions',new E(_0x392a80,_0xf66d9b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x392a80['commands']['add']('discardSelectedSuggestions',new E(_0x392a80,_0x162840,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4168de=_0x392a80['plugins']['get']('CommentsRepository');this['listenTo'](_0x4168de,'addComment',(_0x3eb79d,{threadId:_0x1eb7ef})=>{const _0x57fb45=this['_suggestions']['get'](_0x1eb7ef);_0x57fb45&&_0x57fb45['commentThread']&&0x1===_0x57fb45['commentThread']['length']&&this['_updateSuggestionData'](_0x1eb7ef,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4168de,'removeComment',(_0x23718c,{threadId:_0x558c64})=>{const _0x32f198=this['_suggestions']['get'](_0x558c64);_0x32f198&&_0x32f198['commentThread']&&!_0x32f198['commentThread']['length']&&this['_updateSuggestionData'](_0x558c64,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xda5486){const _0x316470=_0x1afab1([0x37,0x72,0x41,0x70,0x68,0x63,0x77,0x31,0x6a,0x62,0x79,0x56,0x34,0x32,0x4d,0x4e,0x6f,0x6c,0x57,0x42,0x55,0x43,0x69,0x38,0x54,0x6d,0x44,0x75,0x53,0x78,0x49,0x4c,0x5a,0x76,0x67,0x65,0x71,0x33,0x36,0x73,0x30,0x64,0x45,0x74,0x35,0x58,0x61,0x6b,0x39,0x59,0x66,0x47,0x6e,0x48,0x52,0x4f,0x51,0x50,0x4b,0x7a,0x46,0x4a]),_0x2e5f79=0x7dd392dc,_0x2cb9da=0x7dd4f6f4^_0x2e5f79,_0x195506=window[_0x1afab1([0x44,0x61,0x74,0x65])][_0x1afab1([0x6e,0x6f,0x77])](),_0x28cd7c=_0xda5486[_0x1afab1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d1d0d=new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x102ddb=>{_0x28cd7c[_0x1afab1([0x6f,0x6e,0x63,0x65])](_0x1afab1([0x72,0x65,0x61,0x64,0x79]),_0x102ddb);}),_0x26c1b1={[_0x1afab1([0x6b,0x74,0x79])]:_0x1afab1([0x45,0x43]),[_0x1afab1([0x75,0x73,0x65])]:_0x1afab1([0x73,0x69,0x67]),[_0x1afab1([0x63,0x72,0x76])]:_0x1afab1([0x50,0x2d,0x32,0x35,0x36]),[_0x1afab1([0x78])]:_0x1afab1([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]),[_0x1afab1([0x79])]:_0x1afab1([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]),[_0x1afab1([0x61,0x6c,0x67])]:_0x1afab1([0x45,0x53,0x32,0x35,0x36])},_0x491134=_0x28cd7c[_0x1afab1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1afab1([0x67,0x65,0x74])](_0x1afab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10de1(){let _0x31bff7,_0x5beb10=null,_0x50022b=null;try{if(_0x491134==_0x1afab1([0x47,0x50,0x4c]))return _0x1afab1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31bff7=_0x3f9b1c(),!_0x31bff7)return _0x1afab1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31bff7[_0x1afab1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50022b=_0xa878fa(_0x31bff7[_0x1afab1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31bff7[_0x1afab1([0x6a,0x74,0x69])])),await _0x38ce26()?_0x528a85()?_0x41d4fc()?_0x1afab1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5696fb()?(_0x31bff7[_0x1afab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1afab1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5beb10=_0x301c0b(_0x1afab1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x31bff7[_0x1afab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1afab1([0x74,0x72,0x69,0x61,0x6c])&&(_0x5beb10=_0x301c0b(_0x1afab1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x417c5f()):_0x1afab1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1afab1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1afab1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x313e1a){return _0x1afab1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41d4fc(){const _0x477d74=[_0x1afab1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1afab1([0x74,0x72,0x69,0x61,0x6c])][_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31bff7[_0x1afab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x195506/0x3e8:0xe10*_0x2cb9da;return _0x31bff7[_0x1afab1([0x65,0x78,0x70])]<_0x477d74;}function _0x528a85(){const _0xa9c920=_0x31bff7[_0x1afab1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa9c920)return!0x1;if(_0xa9c920[_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afab1([0x2a])))return!0x0;if(_0xa9c920[_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afab1([0x54,0x43])))return!0x0;if(_0xa9c920[_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afab1([0x52,0x54,0x43]))){if(_0x562ece())return!0x0;if(_0x4fc9c2()||_0x4bacbd())return!0x0;}return!0x1;}function _0x5696fb(){const _0x1aedb1=_0x31bff7[_0x1afab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1aedb1||0x0==_0x1aedb1[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x357c6e}=new URL(window[_0x1afab1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1aedb1[_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x357c6e))return!0x0;const _0x321d93=_0x357c6e[_0x1afab1([0x73,0x70,0x6c,0x69,0x74])](_0x1afab1([0x2e]));return _0x1aedb1[_0x1afab1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e78f8=>_0x4e78f8[_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afab1([0x2a])))[_0x1afab1([0x6d,0x61,0x70])](_0x523e04=>_0x523e04[_0x1afab1([0x73,0x70,0x6c,0x69,0x74])](_0x1afab1([0x2e])))[_0x1afab1([0x73,0x6f,0x6d,0x65])](_0x22bfe9=>_0x321d93[_0x1afab1([0x65,0x76,0x65,0x72,0x79])]((_0x575ebc,_0x2f4ab2)=>_0x22bfe9[_0x2f4ab2]===_0x575ebc||_0x22bfe9[_0x2f4ab2]===_0x1afab1([0x2a])));}function _0x417c5f(){return _0x5beb10&&_0x50022b?new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x277775,_0x15cdce)=>{_0x5beb10[_0x1afab1([0x74,0x68,0x65,0x6e])](_0x277775,_0x15cdce),_0x50022b[_0x1afab1([0x74,0x68,0x65,0x6e])](_0x85ae6b=>{_0x85ae6b!=_0x1afab1([0x56,0x61,0x6c,0x69,0x64])&&_0x277775(_0x85ae6b);},_0x15cdce);}):_0x5beb10||_0x50022b||_0x1afab1([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa878fa(_0x113495,_0x264e2d){return new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x68f584=>{if(_0xb10190())return _0x68f584(_0x1afab1([0x56,0x61,0x6c,0x69,0x64]));_0x1658e5(),_0x28cd7c[_0x1afab1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1afab1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d1d72=!0x1;const _0x51c9ab=_0x25d5a0();function _0x3a22f2(_0x5da2cd){return!!_0x5da2cd&&(typeof _0x5da2cd===_0x1afab1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5da2cd===_0x1afab1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5da2cd[_0x1afab1([0x74,0x68,0x65,0x6e])]===_0x1afab1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5da2cd[_0x1afab1([0x63,0x61,0x74,0x63,0x68])]===_0x1afab1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c8134(_0x1379e9){_0x1af3fa(_0x1379e9)[_0x1afab1([0x74,0x68,0x65,0x6e])](_0xd6f096=>{if(!_0xd6f096||_0xd6f096[_0x1afab1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1afab1([0x6f,0x6b]))return _0x1afab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x60e1a0(_0x349a73(_0x51c9ab+_0x264e2d))!=_0xd6f096[_0x1afab1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1afab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1afab1([0x56,0x61,0x6c,0x69,0x64]);})[_0x1afab1([0x74,0x68,0x65,0x6e])](_0x20fbe6=>(_0x3e24a9(),_0x20fbe6),()=>{const _0x29c1bb=_0xead6fc();return null==_0x29c1bb?(_0x3e24a9(),_0x1afab1([0x56,0x61,0x6c,0x69,0x64])):_0x1afab1(_0x195506-_0x29c1bb>(0x59df16dc^_0x2e5f79)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1afab1([0x74,0x68,0x65,0x6e])](_0x68f584)[_0x1afab1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x68f584(_0x1afab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e13d8=0x7de57c5c^_0x2e5f79;function _0x3e24a9(){const _0x4dedf0=_0x1afab1([0x6c,0x6c,0x63,0x74,0x2d])+_0x60e1a0(_0x349a73(_0x113495)),_0x182eef=_0x247dae(_0x60e1a0(window[_0x1afab1([0x4d,0x61,0x74,0x68])][_0x1afab1([0x63,0x65,0x69,0x6c])](_0x195506/_0x1e13d8)));window[_0x1afab1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1afab1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dedf0,_0x182eef);}function _0xead6fc(){const _0x36a080=_0x1afab1([0x6c,0x6c,0x63,0x74,0x2d])+_0x60e1a0(_0x349a73(_0x113495)),_0xa9b489=window[_0x1afab1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1afab1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36a080);return _0xa9b489?window[_0x1afab1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x247dae(_0xa9b489),0x10)*_0x1e13d8:null;}function _0x1af3fa(_0x4dfa12){return new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13c64a,_0x3f8e12)=>{_0x4dfa12[_0x1afab1([0x74,0x68,0x65,0x6e])](_0x13c64a,_0x3f8e12),window[_0x1afab1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f8e12,0x7dd2461c^_0x2e5f79);});}}_0x28cd7c[_0x1afab1([0x6f,0x6e])](_0x1afab1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a55c2,_0x223a73)=>{if(_0x223a73[0x0]!=_0x113495)return _0x68f584(_0x1afab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x223a73[0x1]={..._0x223a73[0x1],[_0x1afab1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51c9ab};},{[_0x1afab1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1afab1([0x68,0x69,0x67,0x68])}),_0x28cd7c[_0x1afab1([0x6f,0x6e])](_0x1afab1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b4487=>{_0x3a22f2(_0x3b4487[_0x1afab1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d1d72=!0x0,_0x1c8134(_0x3b4487[_0x1afab1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1afab1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1afab1([0x6c,0x6f,0x77])}),_0x3d1d0d[_0x1afab1([0x74,0x68,0x65,0x6e])](()=>{_0x1d1d72||_0x68f584(_0x1afab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb10190(){return _0x28cd7c[_0x1afab1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1afab1([0x76,0x69,0x65,0x77])][_0x1afab1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1afab1([0x61,0x75,0x74,0x6f]);}function _0x1658e5(){_0x28cd7c[_0x1afab1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1afab1([0x76,0x69,0x65,0x77])][_0x1afab1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1afab1([0x61,0x75,0x74,0x6f]);}}function _0x301c0b(_0x4f1046){const _0x30367b=[new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ccbe4=>setTimeout(_0x1ccbe4,0x7ddaac10^_0x2e5f79)),_0x3d1d0d[_0x1afab1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37d54f=>{let _0x5af712=0x0;_0x28cd7c[_0x1afab1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1afab1([0x6f,0x6e])](_0x1afab1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x12b136,_0x1a2fe2)=>{_0x1a2fe2[0x0][_0x1afab1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5af712++,_0x5af712==(0x7dd39324^_0x2e5f79)&&(_0x37d54f(),_0x12b136[_0x1afab1([0x6f,0x66,0x66])]());});}))];return window[_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1afab1([0x72,0x61,0x63,0x65])](_0x30367b)[_0x1afab1([0x74,0x68,0x65,0x6e])](()=>_0x4f1046);}async function _0x587d67(){await _0x3d1d0d,_0x28cd7c[_0x1afab1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1afab1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2cf30e,_0x28cd7c[_0x1afab1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1afab1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2cf30e,_0x28cd7c[_0x1afab1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1afab1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x562ece(){return _0x12a6e2(_0x1afab1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x32f903(_0x1afab1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1afab1([0x73,0x74,0x61,0x74,0x65])]==_0x1afab1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4fc9c2(){return _0x12a6e2(_0x1afab1([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 _0x4bacbd(){return _0x12a6e2(_0x1afab1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3af2c9(_0x5eb786){const _0x4872b8=_0x4f0db4();_0x28cd7c[_0x4872b8]=_0x1afab1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5eb786,_0x5eb786!=_0x1afab1([0x56,0x61,0x6c,0x69,0x64])&&_0x587d67();}function _0x4f0db4(){const _0xa96fe3=window[_0x1afab1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1afab1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1afab1([0x6e,0x6f,0x77])]())[_0x1afab1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1afab1([0x2e]),'');let _0x40e32a=_0x1afab1([0x72]);for(let _0x48ae6c=0x0;_0x48ae6c<_0xa96fe3[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48ae6c+=0x2){let _0x13dcf5=window[_0x1afab1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa96fe3[_0x1afab1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48ae6c,_0x48ae6c+0x2));_0x13dcf5>=_0x316470[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x13dcf5-=_0x316470[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40e32a+=_0x316470[_0x13dcf5];}return _0x40e32a;}function _0x3f9b1c(){const _0x1120cf=_0x491134[_0x1afab1([0x73,0x70,0x6c,0x69,0x74])](_0x1afab1([0x2e]));if(0x3!=_0x1120cf[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x116792(_0x1120cf[0x1]);function _0x116792(_0x4c7d71){const _0x467745=_0x4cc551(_0x4c7d71);return _0x467745&&_0x12ffd3()?_0x467745:null;function _0x12ffd3(){const _0x39c695=_0x467745[_0x1afab1([0x6a,0x74,0x69])],_0x274256=window[_0x1afab1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39c695[_0x1afab1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39c695[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2938ca={..._0x467745,[_0x1afab1([0x6a,0x74,0x69])]:_0x39c695[_0x1afab1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39c695[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2938ca[_0x1afab1([0x76,0x63])],_0x349a73(_0x2938ca)==_0x274256;}}}async function _0x38ce26(){let _0x540372=!0x0;try{const _0x58da2b=_0x491134[_0x1afab1([0x73,0x70,0x6c,0x69,0x74])](_0x1afab1([0x2e])),[_0x7c75d2,_0x25c38e,_0x1c7961]=_0x58da2b;return _0x5589bb(_0x7c75d2),await _0x2efc14(_0x7c75d2,_0x25c38e,_0x1c7961),_0x540372;}catch(_0x26b6e9){return!0x1;}function _0x5589bb(_0x2577b8){const _0x4856e9=_0x4cc551(_0x2577b8);_0x4856e9&&_0x4856e9[_0x1afab1([0x61,0x6c,0x67])]==_0x1afab1([0x45,0x53,0x32,0x35,0x36])||(_0x540372=!0x1);}async function _0x2efc14(_0xaa1515,_0x5df5bd,_0x4ec651){const _0x5e5156=window[_0x1afab1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1afab1([0x66,0x72,0x6f,0x6d])](_0x44b471(_0x4ec651),_0x22e483=>_0x22e483[_0x1afab1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b62b3=new window[(_0x1afab1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1afab1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xaa1515+_0x1afab1([0x2e])+_0x5df5bd),_0x51455d=window[_0x1afab1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1afab1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51455d)return;const _0x57d02e=await _0x51455d[_0x1afab1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1afab1([0x6a,0x77,0x6b]),_0x26c1b1,{[_0x1afab1([0x6e,0x61,0x6d,0x65])]:_0x1afab1([0x45,0x43,0x44,0x53,0x41]),[_0x1afab1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1afab1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1afab1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51455d[_0x1afab1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1afab1([0x6e,0x61,0x6d,0x65])]:_0x1afab1([0x45,0x43,0x44,0x53,0x41]),[_0x1afab1([0x68,0x61,0x73,0x68])]:{[_0x1afab1([0x6e,0x61,0x6d,0x65])]:_0x1afab1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57d02e,_0x5e5156,_0x2b62b3)||(_0x540372=!0x1);}}function _0x4cc551(_0x40ab28){return _0x40ab28[_0x1afab1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1afab1([0x65,0x79]))?JSON[_0x1afab1([0x70,0x61,0x72,0x73,0x65])](_0x44b471(_0x40ab28)):null;}function _0x44b471(_0x8d7321){return window[_0x1afab1([0x61,0x74,0x6f,0x62])](_0x8d7321[_0x1afab1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1afab1([0x2b]))[_0x1afab1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1afab1([0x2f])));}function _0x349a73(_0xb526bf){let _0x3e85ec=0x1505;function _0x5ebd72(_0x37051f){for(let _0x226ec1=0x0;_0x226ec1<_0x37051f[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x226ec1++){const _0x11a464=_0x37051f[_0x1afab1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x226ec1);_0x3e85ec=(_0x3e85ec<<0x5)+_0x3e85ec+_0x11a464,_0x3e85ec&=_0x3e85ec;}}function _0x256553(_0x19b845){Array[_0x1afab1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19b845)?_0x19b845[_0x1afab1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x256553):_0x19b845&&typeof _0x19b845==_0x1afab1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1afab1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19b845)[_0x1afab1([0x73,0x6f,0x72,0x74])]()[_0x1afab1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x34b769,_0x31a6f5])=>{_0x5ebd72(_0x34b769),_0x256553(_0x31a6f5);}):_0x5ebd72(window[_0x1afab1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19b845));}return _0x256553(_0xb526bf),_0x3e85ec>>>0x0;}function _0x60e1a0(_0x1a5503){return _0x1a5503[_0x1afab1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1afab1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1afab1([0x30]));}function _0x247dae(_0x2a1922){return _0x2a1922[_0x1afab1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1afab1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1afab1([0x6a,0x6f,0x69,0x6e])]('');}function _0x12a6e2(_0x19460f){return _0x28cd7c[_0x1afab1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1afab1([0x68,0x61,0x73])](_0x19460f);}function _0x32f903(_0x56ca6a){return _0x28cd7c[_0x1afab1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1afab1([0x67,0x65,0x74])](_0x56ca6a);}function _0x2cf30e(){}function _0x1afab1(_0x861193){return _0x861193['map'](_0x4c1e3a=>String['fromCharCode'](_0x4c1e3a))['join']('');}_0x3af2c9(await _0x10de1());}(this);}set['adapter'](_0x50adaf){if(this['_adapter'])throw new _0x4f581a('track-changes-adapter-already-set',this);this['_adapter']=_0x50adaf;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4c4201=!0x1,toJSON:_0xf572f5=!0x1}={}){const _0x5afd26=[];for(const _0x5184a3 of this['_suggestions']['values']())_0x4c4201&&!_0x5184a3['isInContent']||_0x5afd26['push'](_0x5184a3);return _0xf572f5?_0x5afd26['map'](_0x46523d=>_0x46523d['toJSON']()):_0x5afd26;}['getSuggestion'](_0x4c95d3){const _0x53541d=this['_suggestions']['get'](_0x4c95d3);if(!_0x53541d)throw new _0x4f581a('track-changes-suggestion-not-found',this);return _0x53541d;}['hasSuggestion'](_0x279967){return this['_suggestions']['has'](_0x279967);}['addSuggestionData'](_0x157f5e){const {authorId:_0x465e5d,id:_0x14e077,attributes:_0x4fdbbb}=_0x157f5e,[_0x2385b8,_0x10fcf1]=_0x157f5e['type']['split'](':'),_0x24b843=this['_suggestions']['get'](_0x14e077)||this['_createSuggestion'](_0x2385b8,_0x10fcf1,_0x14e077,_0x465e5d,_0x4fdbbb);if(this['_addThreadToSuggestion'](_0x24b843),this['_checkSuggestionCorrectness'](_0x24b843,_0x2385b8,_0x10fcf1||null,_0x465e5d),_0x24b843['createdAt']=_0x157f5e['createdAt'],_0x24b843['_isDataLoaded']=!0x0,_0x4fdbbb&&_0x4fdbbb['@external']){const _0x3d1149=_0x4fdbbb['@external'],_0x4dfc32=this['_getExternalAuthor'](_0x3d1149['authorName']);_0x24b843['authoredAt']=_0x3d1149['createdAt'],_0x24b843['author']=_0x4dfc32,_0x24b843['isExternal']=!0x0;}else _0x24b843['authoredAt']=_0x157f5e['createdAt'];switch(_0x157f5e['data']&&(_0x24b843['data']=_0x157f5e['data']),_0x157f5e['attributes']&&(_0x24b843['attributes']=_0x157f5e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x24b843['_saved']=!0x0),this['_suggestionState']['get'](_0x24b843)){case'notReady':this['_suggestionState']['set'](_0x24b843,'dataReady');break;case'markerReady':_0x24b843['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x24b843])),this['_refreshSuggestionsChain'](new Set([_0x24b843])),this['_suggestionState']['set'](_0x24b843,'ready'),this['fire']('suggestionLoaded',_0x24b843)):this['_suggestionState']['set'](_0x24b843,'removed');}return _0x24b843;}['acceptSuggestion'](_0x1f7d88){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x526c19 of _0x1f7d88['getAllAdjacentSuggestions']())_0x526c19['accept']();});});}['discardSuggestion'](_0x1e5768){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16af59 of _0x1e5768['getAllAdjacentSuggestions']())_0x16af59['discard']();});});}['enableCommand'](_0x16414c,_0x1d98f4){const _0x401411=this['editor']['commands']['get'](_0x16414c);if(!_0x401411)throw new _0x4f581a('track-changes-command-not-found',this,{'commandName':_0x16414c});if(this['_enabledCommands']['has'](_0x401411))throw new _0x4f581a('track-changes-enable-command-twice',this,{'commandName':_0x16414c});this['_enabledCommands']['add'](_0x401411),_0x1d98f4&&_0x401411['on']('execute',(_0xbb6258,_0x3a1dbf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3a1dbf['length']>0x0&&_0x3a1dbf[_0x3a1dbf['length']-0x1]&&_0x3a1dbf[_0x3a1dbf['length']-0x1]['forceDefaultExecution']?_0x3a1dbf['pop']():(_0xbb6258['return']=_0x1d98f4((..._0x595263)=>_0x401411['execute'](..._0x595263,{'forceDefaultExecution':!0x0}),..._0x3a1dbf),_0xbb6258['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1c17a4){let _0x87fab5,_0x17c892;const _0xf867b7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x87fab5=_0x1c17a4();}catch(_0x5f3531){_0x17c892=_0x5f3531;}return _0xf867b7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x17c892&&_0x4f581a['rethrowUnexpectedError'](_0x17c892,this),_0x87fab5;}['markInsertion'](_0x2604f2,_0x5c8971=null,_0x45ee06={}){if(_0x2604f2['isCollapsed'])return null;const _0x5bf65a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3907bf,meta:_0x4c74de}of this['_findSuggestions'](_0x2604f2,'insertion'))if(_0x4c74de['isOwn']){if(!_0x4c74de['isNextTo']){if(_0x4c74de['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x3907bf,_0x45ee06))continue;return _0x3907bf;}if(Xt(_0x3907bf,_0x45ee06))return _0x3907bf;this['_breakSuggestionMarker'](_0x3907bf,_0x2604f2['start'],_0x2604f2['end']);break;}if(_0x5c8971==_0x3907bf['subType']&&Xt(_0x3907bf,_0x45ee06)){const _0x1e7c6c=_0x3907bf['getFirstRange']();return _0x1e7c6c['start']['isEqual'](_0x2604f2['end'])?this['_setSuggestionRange'](_0x3907bf,this['_model']['createRange'](_0x2604f2['start'],_0x1e7c6c['end'])):this['_setSuggestionRange'](_0x3907bf,this['_model']['createRange'](_0x1e7c6c['start'],_0x2604f2['end'])),_0x3907bf;}}const _0x1694d2=_0x25d5a0(),_0x3d2d01=_0x5bf65a['id'],_0x498f80=_0x5c8971?'insertion:'+_0x5c8971:'insertion',_0x361818=this['_setSuggestionData']({'id':_0x1694d2,'type':_0x498f80,'createdAt':new Date(),'authorId':_0x3d2d01,'attributes':_0x45ee06});return this['_addSuggestionMarker'](_0x498f80,_0x1694d2,_0x3d2d01,_0x2604f2),_0x361818;}['markMultiRangeInsertion'](_0x6d621d,_0x2fba45='multi',_0xd4fd86={}){const _0x52f43f=this['editor']['plugins']['get']('Users')['me'],_0x488a6e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2fba45,'join');for(const _0x621dc3 of this['getSuggestions']())if(_0x621dc3['author']['id']==_0x52f43f['id']&&'insertion'==_0x621dc3['type']&&_0x621dc3['subType']==_0x2fba45&&Xt(_0x621dc3,_0xd4fd86)&&(_0x488a6e(_0x621dc3['getRanges'](),_0x6d621d)||_0x488a6e(_0x6d621d,_0x621dc3['getRanges']()))){for(const _0x328782 of _0x6d621d)_0x621dc3['addRange'](_0x328782);return _0x621dc3;}for(const {suggestion:_0x2367f8,meta:_0x52b3d0}of this['_findSuggestions'](_0x6d621d,'insertion')){if(!_0x52b3d0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x52b3d0['containsRangeInObject'])continue;if(!Xt(_0x2367f8,_0xd4fd86))continue;let _0x55cdf7=!0x0;for(const _0x339050 of _0x2367f8['getRanges']())for(const _0x1b07c4 of _0x6d621d)if(!_0x339050['containsRange'](_0x1b07c4)){_0x55cdf7=!0x1;break;}if(_0x55cdf7)return _0x2367f8;}const _0x5199bb=_0x25d5a0(),_0x16aef4=_0x52f43f['id'],_0x2535a7='insertion:'+_0x2fba45,_0x34f50d=this['_setSuggestionData']({'id':_0x5199bb,'type':_0x2535a7,'createdAt':new Date(),'authorId':_0x16aef4,'attributes':_0xd4fd86});for(const _0x45b608 of _0x6d621d)this['_addSuggestionMarker'](_0x2535a7,_0x5199bb,_0x16aef4,_0x45b608,o['getMultiRangeId']());return _0x34f50d;}['markInlineFormat'](_0x49ddd5,_0xd389b7,_0x1620f0=null,_0x58ce8f={}){if(_0x1620f0=_0x1620f0||Kt(_0xd389b7),_0x49ddd5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x13786a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1620f0,'accept');return this['forceDefaultExecution'](()=>_0x13786a([_0x49ddd5],_0xd389b7,_0x58ce8f)),null;}const _0x3c5aab=this['editor']['plugins']['get']('Users')['me'],_0x882c1d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1f8692,meta:_0x5d84fe}of this['_findSuggestions'](_0x49ddd5,'insertion'))_0x5d84fe['isOwn']&&!_0x5d84fe['isInsideObject']&&_0x882c1d['push'](..._0x1f8692['getRanges']());}const _0x290594=function(_0x2b415e,_0xfe9b27){const _0x11c356=[];for(const _0x4f41d2 of _0xfe9b27){const _0x133f47=_0x2b415e['getIntersection'](_0x4f41d2);_0x133f47&&_0x11c356['push'](_0x133f47);}return _0x11c356;}(_0x49ddd5,_0x882c1d),_0x2c9167=function(_0x525f07,_0x1e6efc){const _0x5c778b=[_0x525f07];for(const _0x2ac312 of _0x1e6efc){let _0x385d56=0x0;for(;_0x385d56<_0x5c778b['length'];){const _0x3a5122=_0x5c778b[_0x385d56]['getDifference'](_0x2ac312);_0x5c778b['splice'](_0x385d56,0x1,..._0x3a5122),_0x385d56+=_0x3a5122['length'];}}return _0x5c778b;}(_0x49ddd5,_0x882c1d);_0x290594['length']&&this['_model']['change'](()=>{for(const _0x51e4f6 of _0x290594){const _0x242d6c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1620f0,'accept');this['forceDefaultExecution'](()=>_0x242d6c([_0x51e4f6],_0xd389b7,_0x58ce8f));}});for(const _0x4b43ef of _0x2c9167){let _0x548e19=null,_0x1170e5=_0x4b43ef['start'],_0x5c0267=_0x4b43ef['end'];for(const {suggestion:_0x4d6b02,meta:_0x512740}of this['_findSuggestions'](_0x4b43ef,'formatInline')){if(!_0x512740['isOwn'])continue;if(_0x4d6b02['subType']!=_0x1620f0)continue;if(!Xt(_0x4d6b02,_0x58ce8f))continue;const _0x356725=_0x4d6b02['getFirstRange']();if(_0x356725['containsRange'](_0x4b43ef,!0x0))return null;_0x1170e5=_0x1170e5['isBefore'](_0x356725['start'])?_0x1170e5:_0x356725['start'],_0x5c0267=_0x5c0267['isAfter'](_0x356725['end'])?_0x5c0267:_0x356725['end'],_0x548e19?_0x356725['start']['isBefore'](_0x548e19['getFirstRange']()['start'])?(_0x548e19['removeMarkers'](),_0x548e19=_0x4d6b02):_0x4d6b02['removeMarkers']():_0x548e19=_0x4d6b02;}const _0x313c54=this['_model']['createRange'](_0x1170e5,_0x5c0267);if(_0x548e19)this['_setSuggestionRange'](_0x548e19,_0x313c54);else{const _0xcb0899=_0x25d5a0(),_0x56a6ec=_0x3c5aab['id'];this['_setSuggestionData']({'id':_0xcb0899,'type':'formatInline:'+_0x1620f0,'data':_0xd389b7,'createdAt':new Date(),'authorId':_0x56a6ec,'attributes':_0x58ce8f}),this['_addSuggestionMarker']('formatInline:'+_0x1620f0,_0xcb0899,_0x56a6ec,_0x313c54);}}return null;}['markBlockFormat'](_0x3ccb81,_0x5027ab,_0x4c070b=[],_0x43b04c=null,_0x30cbd2={}){_0x5027ab['formatGroupId']||(_0x5027ab['formatGroupId']=_0x5027ab['commandName']),_0x5027ab['multipleBlocks']=_0x3ccb81['is']('range'),_0x43b04c=_0x43b04c||Kt(_0x5027ab);const _0xb3e19=_0x4c070b['map'](_0x4d3cd0=>zt(_0x4d3cd0,this['_model'])),_0x4dcade=_0x3ccb81['is']('range')?_0x3ccb81:zt(_0x3ccb81,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5c4af5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43b04c,'accept');return this['forceDefaultExecution'](()=>_0x5c4af5([_0x4dcade],_0x5027ab,_0x30cbd2)),null;}_0xb3e19['push'](_0x4dcade);let _0x11789a=!0x0;for(const _0x917523 of _0xb3e19)if(!this['_rangeIsInLocalUserInsertion'](_0x917523)){_0x11789a=!0x1;break;}if(_0x11789a&&'always'!==this['_trackFormatChanges']){const _0x578fa9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43b04c,'accept');return this['forceDefaultExecution'](()=>_0x578fa9([_0x4dcade],_0x5027ab,_0x30cbd2)),null;}let _0x20ac11=null,_0x497daa=_0x4dcade['start'],_0x3d2935=_0x4dcade['end'];for(const {suggestion:_0x2afbe2,meta:_0xba52c7}of this['_findSuggestions'](_0x4dcade,'formatBlock')){if(!_0xba52c7['isOwn'])continue;if(_0xba52c7['isNextTo']||_0xba52c7['containsRangeInObject']||_0xba52c7['isInsideObject'])continue;if(_0x2afbe2['data']['formatGroupId']!=_0x5027ab['formatGroupId'])continue;if(!Xt(_0x2afbe2,_0x30cbd2))continue;const _0x174e0d=_0x2afbe2['getFirstRange']();if(_0x2afbe2['subType']==_0x43b04c){if(_0x174e0d['containsRange'](_0x4dcade,!0x0))return null;_0x497daa=_0x497daa['isBefore'](_0x174e0d['start'])?_0x497daa:_0x174e0d['start'],_0x3d2935=_0x3d2935['isAfter'](_0x174e0d['end'])?_0x3d2935:_0x174e0d['end'],_0x20ac11?_0x174e0d['start']['isBefore'](_0x20ac11['getFirstRange']()['start'])?(_0x20ac11['removeMarkers'](),_0x20ac11=_0x2afbe2):_0x2afbe2['removeMarkers']():_0x20ac11=_0x2afbe2;}else{const _0x1a0533=_0x4dcade['getIntersection'](_0x174e0d);this['_cutOutSuggestionMarker'](_0x2afbe2,_0x1a0533);}}const _0x1be692=this['editor']['plugins']['get']('Users')['me'],_0x5bc1d5=_0x25d5a0(),_0x50972d=_0x1be692['id'];if(_0x20ac11)return this['_setSuggestionRange'](_0x20ac11,this['_model']['createRange'](_0x497daa,_0x3d2935)),_0x20ac11;{const _0x4af5bc=this['_setSuggestionData']({'id':_0x5bc1d5,'type':'formatBlock:'+_0x43b04c,'data':_0x5027ab,'createdAt':new Date(),'authorId':_0x50972d,'attributes':_0x30cbd2});return this['_addSuggestionMarker']('formatBlock:'+_0x43b04c,_0x5bc1d5,_0x50972d,this['_model']['createRange'](_0x497daa,_0x3d2935)),_0x4af5bc;}}['markMultiRangeBlockFormat'](_0x4ff2dc,_0x4a0892,_0x4e4582=[],_0x479496=null,_0x3862e2={}){_0x4a0892['formatGroupId']||(_0x4a0892['formatGroupId']=_0x4a0892['commandName']);const _0x54007b=_0x4ff2dc[0x0];_0x4a0892['multipleBlocks']=_0x54007b['is']('range'),_0x479496=_0x479496||Kt(_0x4a0892);const _0x3413cd=_0x4e4582['map'](_0x40544d=>zt(_0x40544d,this['_model'])),_0x2bcb2c=_0x54007b['is']('range')?_0x4ff2dc:_0x4ff2dc['map'](_0x304227=>zt(_0x304227,this['_model']));if('never'===this['_trackFormatChanges']){const _0x388e47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479496,'accept');return this['forceDefaultExecution'](()=>_0x388e47(_0x2bcb2c,_0x4a0892,_0x3862e2)),null;}_0x3413cd['push'](..._0x2bcb2c);let _0x169733=!0x0;for(const _0x3c21b0 of _0x3413cd)if(!this['_rangeIsInLocalUserInsertion'](_0x3c21b0)){_0x169733=!0x1;break;}if(_0x169733&&'always'!==this['_trackFormatChanges']){const _0x1fa040=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479496,'accept');return this['forceDefaultExecution'](()=>_0x1fa040(_0x2bcb2c,_0x4a0892,_0x3862e2)),null;}const _0xf75c1b=this['editor']['plugins']['get']('Users')['me'];for(const _0x4c538a of this['getSuggestions']()){if(_0x4c538a['author']['id']!=_0xf75c1b['id'])continue;if('formatBlock'!=_0x4c538a['type']||_0x4c538a['data']['formatGroupId']!=_0x4a0892['formatGroupId'])continue;if(!Xt(_0x4c538a,_0x3862e2))continue;const _0x566f61=_0x4c538a['subType']==_0x479496;for(let _0x3a919f=0x0;_0x3a919f<_0x2bcb2c['length'];_0x3a919f++){const _0x45277c=_0x2bcb2c[_0x3a919f];for(const _0x12d23b of _0x4c538a['getMarkers']()){const _0x182f49=_0x12d23b['getRange']();if(_0x45277c['isEqual'](_0x182f49)){_0x566f61?(_0x2bcb2c['splice'](_0x3a919f,0x1),_0x3a919f--):_0x4c538a['removeMarker'](_0x12d23b['name']);break;}}}}if(0x0==_0x2bcb2c['length'])return null;const _0x4c3ffc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479496,'join');for(const _0x14f51c of this['getSuggestions']())if(_0x14f51c['author']['id']==_0xf75c1b['id']&&'formatBlock'==_0x14f51c['type']&&_0x14f51c['data']['formatGroupId']==_0x4a0892['formatGroupId']&&_0x14f51c['subType']==_0x479496&&Xt(_0x14f51c,_0x3862e2)&&(_0x4c3ffc(_0x14f51c['getRanges'](),_0x2bcb2c)||_0x4c3ffc(_0x2bcb2c,_0x14f51c['getRanges']()))){for(const _0x595efd of _0x2bcb2c)_0x14f51c['addRange'](_0x595efd);return _0x14f51c;}const _0x5b414d=_0x25d5a0(),_0x1674ed=_0xf75c1b['id'],_0x148e38='formatBlock:'+_0x479496,_0x2b323c=this['_setSuggestionData']({'id':_0x5b414d,'type':_0x148e38,'data':_0x4a0892,'createdAt':new Date(),'authorId':_0x1674ed,'attributes':_0x3862e2});for(const _0x33850e of _0x2bcb2c)this['_addSuggestionMarker'](_0x148e38,_0x5b414d,_0x1674ed,_0x33850e,o['getMultiRangeId']());return _0x2b323c;}['markDeletion'](_0x505fa,_0x56094a=null,_0x4ad00f={}){if(_0x505fa['isCollapsed'])return null;const _0x4c72cd=this['editor']['plugins']['get']('Users')['me'],_0x1a8e5c=new _0x24a0f9(_0x505fa['start'],_0x505fa['end']);for(const {suggestion:_0x2e902b,meta:_0x341569}of this['_findSuggestions'](_0x1a8e5c,'insertion'))if(_0x341569['isOwn']&&!_0x341569['isNextTo']){if(_0x2e902b['isMultiRange']){const _0x3be6d9=_0x2e902b['getRanges']()['filter'](_0x4e8a00=>'$graveyard'!=_0x4e8a00['root']['rootName']);_0x3be6d9['every'](_0x1b0324=>_0x1a8e5c['containsRange'](_0x1b0324,!0x0))&&_0x2e902b['discard']();if(_0x3be6d9['some'](_0x3a724e=>_0x3a724e['containsRange'](_0x1a8e5c,!0x0))){const _0x3a0e59=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x56094a,'accept');return this['forceDefaultExecution'](()=>_0x3a0e59([_0x1a8e5c],null,_0x4ad00f)),null;}}else{const _0x316a07=_0x1a8e5c['getIntersection'](_0x2e902b['getFirstRange']());null!==_0x316a07&&_0x2e902b['_onDiscard']([_0x316a07],null,_0x4ad00f);}}if(_0x1a8e5c['detach'](),_0x1a8e5c['isCollapsed']||'$graveyard'==_0x1a8e5c['root']['rootName'])return null;let _0x5bc188=null,_0x5034c9=_0x1a8e5c['start'],_0x34fbf1=_0x1a8e5c['end'];const _0x827d3c=this['_findSuggestions'](_0x1a8e5c,'deletion');for(const {suggestion:_0xe1d7da,meta:_0x6bcc01}of _0x827d3c){const _0x1e3c4b=this['_model']['createRange'](_0x5034c9,_0x34fbf1);if(_0x6bcc01['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6bcc01['containsRangeInObject']&&!_0x6bcc01['isInsideObject'])){if(_0xe1d7da['isMultiRange']){if(!Xt(_0xe1d7da,_0x4ad00f))continue;let _0x3382da=!0x0;for(const _0x4b0ea3 of _0xe1d7da['getRanges']()){if(_0x4b0ea3['containsRange'](_0x1e3c4b,!0x0))return _0xe1d7da;_0x1e3c4b['containsRange'](_0x4b0ea3)||(_0x3382da=!0x1);}_0x3382da&&_0xe1d7da['discard']();}else{const _0x424d8c=_0xe1d7da['getFirstRange']();if(_0x424d8c['containsRange'](_0x1e3c4b,!0x0))return _0xe1d7da;if(!Xt(_0xe1d7da,_0x4ad00f)){_0x1e3c4b['containsRange'](_0x424d8c)?_0xe1d7da['removeMarkers']():_0x424d8c['containsPosition'](_0x5034c9)?_0x5034c9=_0x424d8c['end']:_0x424d8c['containsPosition'](_0x34fbf1)&&(_0x34fbf1=_0x424d8c['start']);continue;}_0x5034c9=_0x5034c9['isBefore'](_0x424d8c['start'])?_0x5034c9:_0x424d8c['start'],_0x34fbf1=_0x34fbf1['isAfter'](_0x424d8c['end'])?_0x34fbf1:_0x424d8c['end'],_0x4ad00f=Object['assign']({},_0xe1d7da['attributes']),_0x5bc188?_0x424d8c['start']['isBefore'](_0x5bc188['getFirstRange']()['start'])?(_0x5bc188['removeMarkers'](),_0x5bc188=_0xe1d7da):_0xe1d7da['removeMarkers']():_0x5bc188=_0xe1d7da;}}}if(_0x5bc188)return this['_setSuggestionRange'](_0x5bc188,this['_model']['createRange'](_0x5034c9,_0x34fbf1)),_0x5bc188;{const _0x2d3550=_0x25d5a0(),_0x3fa431=this['_model']['createRange'](_0x5034c9,_0x34fbf1),_0x2f0ffc=_0x4c72cd['id'],_0x31520d=_0x56094a?'deletion:'+_0x56094a:'deletion',_0x5bca28=this['_setSuggestionData']({'id':_0x2d3550,'type':_0x31520d,'createdAt':new Date(),'authorId':_0x2f0ffc,'attributes':_0x4ad00f});return this['_addSuggestionMarker'](_0x31520d,_0x2d3550,_0x2f0ffc,_0x3fa431),_0x5bca28;}}['markMultiRangeDeletion'](_0x5b57ce,_0x5ee568='multi',_0x544dbb={}){const _0x453e43=this['editor']['plugins']['get']('Users')['me'],_0x5d61b7=_0x5b57ce['map'](_0x54c554=>new _0x24a0f9(_0x54c554['start'],_0x54c554['end'])),_0x588f39=new Set();for(const {suggestion:_0x590747,meta:_0x21a00a}of this['_findSuggestions'](_0x5d61b7,'insertion'))_0x21a00a['isOwn']&&!_0x21a00a['isNextTo']&&_0x588f39['add'](_0x590747);for(const _0x2062a9 of _0x588f39)if(_0x2062a9['isMultiRange']){const _0x3246a6=_0x2062a9['getRanges']();(!_0x2062a9['attributes']||!_0x2062a9['attributes']['skipNestingCheck'])&&(_0x3246a6['every'](_0x4c5d6c=>_0x5d61b7['some'](_0x23c2b8=>_0x23c2b8['containsRange'](_0x4c5d6c,!0x0)))&&_0x2062a9['discard']());if(_0x5d61b7['every'](_0x2cea30=>_0x3246a6['some'](_0x5de5a6=>_0x5de5a6['containsRange'](_0x2cea30,!0x0)))){const _0x3e0a6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ee568,'accept');return this['forceDefaultExecution'](()=>_0x3e0a6b(_0x5b57ce,null,_0x544dbb)),null;}}else{const _0x367cbe=_0x2062a9['getFirstRange']();_0x5d61b7['some'](_0x402cf7=>_0x402cf7['containsRange'](_0x367cbe,!0x0))&&_0x2062a9['discard']();if(_0x5d61b7['every'](_0x279640=>_0x367cbe['containsRange'](_0x279640,!0x0))){const _0x5c3375=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ee568,'accept');return this['forceDefaultExecution'](()=>_0x5c3375(_0x5d61b7,null,_0x544dbb)),null;}}const _0x3074f3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ee568,'join');let _0x78405e=null;for(const _0x58273d of this['getSuggestions']())if(_0x58273d['author']['id']==_0x453e43['id']&&_0x58273d['isInContent']&&'deletion'==_0x58273d['type']&&_0x58273d['subType']==_0x5ee568&&Xt(_0x58273d,_0x544dbb)&&(_0x3074f3(_0x58273d['getRanges'](),_0x5d61b7)||_0x3074f3(_0x5d61b7,_0x58273d['getRanges']()))){if(_0x78405e){if(_0x58273d['commentThread']&&_0x58273d['commentThread']['length'])continue;for(const _0x3f9876 of _0x58273d['getRanges']())_0x78405e['isIntersectingWithRange'](_0x3f9876)||_0x78405e['addRange'](_0x3f9876);_0x58273d['removeMarkers']();}else{_0x78405e=_0x58273d;for(const _0x455930 of _0x5d61b7)_0x58273d['isIntersectingWithRange'](_0x455930)||_0x58273d['addRange'](_0x455930);}}if(_0x78405e)return _0x78405e;_0x588f39['clear']();for(const {suggestion:_0x42ef93,meta:_0x493c79}of this['_findSuggestions'](_0x5d61b7,'deletion'))_0x493c79['isOwn']&&(this['_mergeNestedSuggestions']||!_0x493c79['containsRangeInObject']&&!_0x493c79['isInsideObject'])&&Xt(_0x42ef93,_0x544dbb)&&_0x588f39['add'](_0x42ef93);for(const _0x4757d3 of _0x588f39){const _0x53b80b=_0x4757d3['getRanges']();if(!_0x544dbb||!_0x544dbb['skipNestingCheck']){if(_0x5d61b7['every'](_0x2c0193=>_0x53b80b['some'](_0x5712bc=>_0x5712bc['containsRange'](_0x2c0193,!0x0))))return _0x4757d3;}(!_0x4757d3['attributes']||!_0x4757d3['attributes']['skipNestingCheck'])&&(_0x53b80b['every'](_0xf17fb4=>_0x5d61b7['some'](_0x107ed5=>_0x107ed5['containsRange'](_0xf17fb4,!0x0)))&&_0x4757d3['discard']());}const _0x2f3d2e=_0x25d5a0(),_0x138d4b=_0x453e43['id'],_0x454f21='deletion:'+_0x5ee568,_0x3bc461=this['_setSuggestionData']({'id':_0x2f3d2e,'type':_0x454f21,'createdAt':new Date(),'authorId':_0x138d4b,'attributes':_0x544dbb});for(const _0x9c3806 of _0x5d61b7)_0x9c3806['detach'](),_0x9c3806['isCollapsed']||'$graveyard'==_0x9c3806['root']['rootName']||this['_addSuggestionMarker'](_0x454f21,_0x2f3d2e,_0x138d4b,_0x9c3806,o['getMultiRangeId']());return _0x3bc461;}['markAttributeChange'](_0x580ef8,_0x346f81,_0x1ef7fe,_0x555b82,_0x327b6a){if(_0x580ef8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x27e606=this['editor']['plugins']['get']('Users')['me']['id'],_0x3fe867=Array['from'](this['_suggestions']['values']())['filter'](_0x83ca02=>'attribute'==_0x83ca02['type']&&_0x83ca02['data']['key']==_0x346f81&&_0x83ca02['isIntersectingWithRange'](_0x580ef8));if('default'===this['_trackFormatChanges']){const _0xd420bc=this['_findSuggestions'](_0x580ef8,'insertion')['filter'](({meta:_0x51e74a})=>_0x51e74a['isOwn']&&!_0x51e74a['isInsideObject']&&!_0x51e74a['isNextTo'])['map'](({suggestion:_0x33d77f})=>_0x33d77f);_0x3fe867['unshift'](..._0xd420bc);}const _0x346cf6=new Map([[_0x580ef8,_0x1ef7fe]]);for(const _0x2d270 of _0x3fe867){const _0x5eb39a='attribute'==_0x2d270['type']?_0x2d270['data']['oldValue']:void 0x0,_0x1d066c=_0x2d270['getFirstRange'](),_0xe43bd1=Array['from'](_0x346cf6['keys']())['find'](_0x4d4abf=>_0x4d4abf['isIntersecting'](_0x1d066c));if(!_0xe43bd1)continue;const _0x1685d5=_0xe43bd1['getDifference'](_0x1d066c);this['_isBlockAttribute'](_0x346f81)&&'insertion'==_0x2d270['type']&&0x0!=_0x1685d5['length']||(_0x346cf6['delete'](_0xe43bd1),_0x1685d5['forEach'](_0x5bd2ad=>{_0x346cf6['set'](_0x5bd2ad,_0x1ef7fe);}),'insertion'!=_0x2d270['type']&&_0x5eb39a!=_0x555b82&&_0x346cf6['set'](_0xe43bd1['getIntersection'](_0x1d066c),_0x5eb39a));}const _0x22b3ec=[];for(const [_0x39233a,_0x38f63b]of _0x346cf6){const _0x7418d9=_0x25d5a0(),_0xa34b41={'key':_0x346f81,'oldValue':_0x38f63b,'newValue':_0x555b82};_0x346f81['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':_0x346f81});const _0x8e44d1=('attribute:'+(_0x346f81+'|'+Kt({'newValue':_0x555b82})))['substring'](0x0,0x3c),_0x2c4fdc=this['_setSuggestionData']({'id':_0x7418d9,'type':_0x8e44d1,'data':_0xa34b41,'createdAt':new Date(),'authorId':_0x27e606,'attributes':_0x327b6a});_0x22b3ec['push'](_0x2c4fdc),this['_addSuggestionMarker'](_0x8e44d1,_0x7418d9,_0x27e606,_0x39233a);}return _0x22b3ec;}['enableDefaultAttributesIntegration'](_0x31fd10){this['enableCommand'](_0x31fd10,(_0x49e7e2,..._0xd233db)=>{this['_recordAttributeChanges'](()=>{_0x49e7e2(..._0xd233db);});});}['registerBlockAttribute'](_0x43b243){this['_blockAttributeKeys']['add'](_0x43b243);}['registerInlineAttribute'](_0x3c50d7){this['_inlineAttributeKeys']['add'](_0x3c50d7);}['_getAttributeKey'](_0x389ce6){return'attribute'==_0x389ce6['type']?_0x389ce6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xd092aa,_0x358242){const _0x4cb63f=_0xd092aa['getFirstMarker']();this['_model']['change'](_0x28c09a=>{_0x28c09a['updateMarker'](_0x4cb63f,{'range':_0x358242});});}['_addThreadToSuggestion'](_0x5dca3c){const _0x2d4d8c=_0x5dca3c['id'],_0x523d42=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2d4d8c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x523d42,'threadId':_0x2d4d8c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd4916=this['_commentsRepository']['getCommentThread'](_0x2d4d8c);_0xd4916['unbind']('isRemovable'),_0xd4916['isRemovable']=!0x1,_0x5dca3c['commentThread']=_0xd4916;}['_checkSuggestionCorrectness'](_0x3917e5,_0x481661,_0x55ccb4,_0x2ada44){if(_0x3917e5['type']!=_0x481661||_0x3917e5['subType']!=_0x55ccb4||_0x3917e5['creator']['id']!=_0x2ada44)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4f581a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x18aa36,_0x4a904e){const _0x2add08=_0x18aa36['getFirstRange']();if(_0x4a904e['isEqual'](_0x2add08))_0x18aa36['removeMarkers']();else{if(_0x2add08['containsRange'](_0x4a904e)){const _0x43022d=this['_model']['createPositionAt'](_0x4a904e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x18aa36,this['_model']['createRange'](_0x2add08['start'],_0x43022d));const _0x176190=_0x25d5a0(),_0x440b87=_0x18aa36['creator']['id'],_0x5df772=_0x18aa36['type']+':'+_0x18aa36['subType'];this['_setSuggestionData']({'id':_0x176190,'type':_0x5df772,'createdAt':new Date(),'authorId':_0x440b87,'data':_0x18aa36['data'],'attributes':_0x18aa36['attributes']});const _0x2fde3e=this['_model']['createPositionAt'](_0x4a904e['end']['parent'],'after'),_0xf946d6=this['_model']['createRange'](_0x2fde3e,_0x2add08['end']);this['_addSuggestionMarker'](_0x5df772,_0x176190,_0x440b87,_0xf946d6);}else{if(_0x2add08['containsPosition'](_0x4a904e['start'])){const _0x3f8371=this['_model']['createPositionAt'](_0x4a904e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x18aa36,this['_model']['createRange'](_0x2add08['start'],_0x3f8371));}else{const _0x1d216c=this['_model']['createPositionAt'](_0x4a904e['end']['parent'],'after');this['_setSuggestionRange'](_0x18aa36,this['_model']['createRange'](_0x1d216c,_0x2add08['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x9533e9){for(const {suggestion:_0x288e3e,meta:_0x50c55b}of this['_findSuggestions'](_0x9533e9,'insertion')){if(!_0x50c55b['isOwn'])continue;const _0x18778f=_0x288e3e['getRanges']();for(const _0x8c1c68 of _0x18778f)if(!_0x9533e9['getDifference'](_0x8c1c68)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x39f109){const _0x5516da=this['editor']['plugins']['get']('Users')['getUser'](_0x39f109);if(!_0x5516da)throw new _0x4f581a('track-changes-user-not-found',this);return _0x5516da;}['_getExternalAuthor'](_0x3864f2){const _0x256ee6=this['editor']['plugins']['get']('Users'),_0x4bf1bd=_0x526b92('external:'+_0x3864f2),_0x240a80=_0x256ee6['getUser'](_0x4bf1bd);return _0x240a80||_0x256ee6['addUser']({'id':_0x4bf1bd,'name':_0x3864f2});}['_createSuggestion'](_0xc6225f,_0x4e1c6e,_0x51825e,_0x3c241c,_0x3ca389){const _0x1da5d9=this['_getAuthorFromId'](_0x3c241c),_0x145033=this['_suggestionFactory']['buildSuggestion'](_0xc6225f,_0x4e1c6e,_0x51825e,_0x1da5d9,_0x3ca389,_0x1cad50=>{this['_updateSuggestionData'](_0x51825e,{'attributes':_0x1cad50});const _0x31ea61=this['getSuggestion'](_0x51825e);this['_joinWithAdjacentSuggestions'](new Set([_0x31ea61])),this['_refreshSuggestionsChain'](new Set([_0x31ea61]));});return this['listenTo'](_0x145033,'accept',()=>{this['_updateSuggestionData'](_0x51825e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x145033,'discard',()=>{this['_updateSuggestionData'](_0x51825e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x51825e,_0x145033),this['_suggestionState']['set'](_0x145033,'notReady'),_0x145033;}['_splitMarkerName'](_0x4a2a11){const _0x34734c=_0x4a2a11['split'](':');return{'group':_0x34734c[0x0],'type':_0x34734c[0x1],'subType':_0x34734c['length']>=0x5?_0x34734c[0x2]:null,'id':_0x34734c['length']<0x5?_0x34734c[0x2]:_0x34734c[0x3],'authorId':_0x34734c['length']<0x5?_0x34734c[0x3]:_0x34734c[0x4],'markerCount':0x6==_0x34734c['length']?_0x34734c[0x5]:null};}['_breakSuggestionMarker'](_0x12f15b,_0x4a989b,_0x55f07a){const _0x227ddc=_0x12f15b['getFirstRange'](),_0x4ba459=_0x227ddc['start'],_0x330eed=_0x227ddc['end'];this['_setSuggestionRange'](_0x12f15b,this['_model']['createRange'](_0x4ba459,_0x4a989b));const _0x5dabf5=_0x25d5a0(),_0x403a9e=_0x12f15b['creator']['id'],_0x1fc3d8=_0x12f15b['type']+(_0x12f15b['subType']?':'+_0x12f15b['subType']:'');this['_setSuggestionData']({'id':_0x5dabf5,'type':_0x1fc3d8,'createdAt':new Date(),'authorId':_0x403a9e,'originalSuggestionId':_0x12f15b['id'],'attributes':_0x12f15b['attributes'],'data':_0x12f15b['data']});const _0x111fad=this['_getAttributeKey'](_0x12f15b);('formatBlock'==_0x12f15b['type']||_0x111fad&&this['_isBlockAttribute'](_0x111fad))&&(_0x55f07a=this['_model']['createPositionBefore'](_0x55f07a['parent'])),this['_addSuggestionMarker'](_0x1fc3d8,_0x5dabf5,_0x403a9e,this['_model']['createRange'](_0x55f07a,_0x330eed));}['_findSuggestions'](_0x59907d,_0x4c7432=null){const _0x19a65d=[],_0x1394d8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x59907d)||(_0x59907d=[_0x59907d]);for(const _0x12df6c of this['getSuggestions']()){if(!_0x12df6c['isInContent'])continue;if(_0x4c7432&&_0x12df6c['type']!=_0x4c7432)continue;let _0x4c2810=!0x1;for(const _0xe48535 of _0x12df6c['getRanges']()){for(const _0x396073 of _0x59907d){const _0x5c7a71=_0x396073['start']['isEqual'](_0xe48535['end'])||_0x396073['end']['isEqual'](_0xe48535['start']);if(_0x5c7a71||_0x396073['getIntersection'](_0xe48535)){const _0x415aca=_0x396073['containsRange'](_0xe48535)&&Gt(this['_model']['schema'],_0xe48535['start'],_0x396073),_0x50f117=_0xe48535['containsRange'](_0x396073)&&Gt(this['_model']['schema'],_0x396073['start'],_0xe48535);_0x19a65d['push']({'suggestion':_0x12df6c,'meta':{'isOwn':_0x1394d8==_0x12df6c['author'],'isNextTo':_0x5c7a71,'isInsideObject':_0x415aca,'containsRangeInObject':_0x50f117}}),_0x4c2810=!0x0;break;}}if(_0x4c2810)break;}}return _0x19a65d;}['_addSuggestionMarker'](_0x4c3f4b,_0x3f886d,_0x11a91f,_0x5d4173,_0x303e5e){this['_model']['change'](_0x276c40=>{let _0x4503f4='suggestion:'+_0x4c3f4b+':'+_0x3f886d+':'+_0x11a91f;_0x303e5e&&(_0x4503f4=_0x4503f4+':'+_0x303e5e),_0x276c40['addMarker'](_0x4503f4,{'range':_0x5d4173,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3dbd1e){const _0x2fd130=_0x3dbd1e['previous'],_0x202815=_0x3dbd1e['next'];_0x3dbd1e['previous']=null,_0x3dbd1e['next']=null,null!=_0x2fd130&&_0x2fd130['next']==_0x3dbd1e&&(_0x2fd130['next']=_0x202815),null!=_0x202815&&_0x202815['previous']==_0x3dbd1e&&(_0x202815['previous']=_0x2fd130),'ready'==this['_suggestionState']['get'](_0x3dbd1e)&&(this['_suggestionState']['set'](_0x3dbd1e,'removed'),this['fire']('suggestionUnloaded',_0x3dbd1e,_0x2fd130,_0x202815));}['_setSuggestionData'](_0x136b78){const _0x6a702d=_0x136b78['id'],_0x42f07f=this['addSuggestionData'](_0x136b78);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4260b0=this['editor']['plugins']['get']('PendingActions'),_0xa5bafc=_0x42f07f['hasComments'],_0x539587=_0x42f07f['subType']?_0x42f07f['type']+':'+_0x42f07f['subType']:_0x42f07f['type'],_0x8ef9bd=this['editor']['locale'],_0x2180e6=_0x4260b0['add'](c(_0x8ef9bd,'PENDING_ACTION_SUGGESTION')),_0x23ad85={'id':_0x6a702d,'type':_0x539587,'hasComments':_0xa5bafc,'data':_0x136b78['data']||null,'originalSuggestionId':_0x136b78['originalSuggestionId']||null,'attributes':_0x42f07f['attributes']};this['_adapter']['addSuggestion'](_0x23ad85)['then'](_0x1047b7=>{_0x42f07f['_saved']=!0x0,_0x4260b0['remove'](_0x2180e6),_0x1047b7&&_0x1047b7['createdAt']&&(this['_suggestions']['get'](_0x6a702d)['createdAt']=_0x1047b7['createdAt']);})['catch'](_0x4c0d09=>{throw _0x2fb80f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x42f07f['discard']();}),_0x42f07f['stopListening'](),this['_suggestions']['delete'](_0x42f07f['id']),this['_suggestionState']['delete'](_0x42f07f),_0x4c0d09;});}return _0x42f07f;}['_isBlockAttribute'](_0x862373){return this['_blockAttributeKeys']['has'](_0x862373);}['_updateSuggestionData'](_0x25f8fa,_0x28b799){const _0x274d97=this['editor']['plugins']['get']('PendingActions'),_0x543713=this['getSuggestion'](_0x25f8fa);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x543713['_saved']){const _0x3f888c=_0x274d97['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x25f8fa,_0x28b799)['then'](()=>{_0x274d97['remove'](_0x3f888c);});}else _0x543713['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x25f8fa,_0x28b799);});}}['_getSuggestionData'](_0x529ea8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4f581a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x529ea8);}['_handleNewSuggestionMarker'](_0x16bd30){const {id:_0x3e2d4e,type:_0x200237,subType:_0x173f8b,authorId:_0xa63fed}=this['_splitMarkerName'](_0x16bd30),_0x3a0332=this['_suggestions']['get'](_0x3e2d4e)||this['_createSuggestion'](_0x200237,_0x173f8b,_0x3e2d4e,_0xa63fed,{});switch(this['_checkSuggestionCorrectness'](_0x3a0332,_0x200237,_0x173f8b,_0xa63fed),this['_suggestionState']['get'](_0x3a0332)){case'notReady':this['_getSuggestionData'](_0x3e2d4e)['then'](_0x4c385d=>{let _0x5f58fc=Promise['resolve']();_0x4c385d['hasComments']&&(_0x5f58fc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e2d4e})),_0x5f58fc['then'](()=>{this['addSuggestionData'](_0x4c385d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3a0332,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e2d4e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3a0332,'ready'),this['fire']('suggestionLoaded',_0x3a0332);break;case'ready':this['fire']('suggestionChanged',_0x3a0332);}return _0x3a0332['addMarkerName'](_0x16bd30),_0x3a0332;}['_refreshSuggestionsChain'](_0xe835d5){const _0xdc45ba=Array['from'](_0xe835d5),_0xf8060c=_0xdc45ba['filter'](_0x4af256=>'attribute'==_0x4af256['type']);this['_refreshAttributeSuggestionsChain'](_0xf8060c);const _0x344409=_0xdc45ba['filter'](_0x79340e=>!_0x79340e['isMultiRange']&&'attribute'!=_0x79340e['type']),_0x2d61e3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x245ce3=>!_0x245ce3['isMultiRange']&&'attribute'!=_0x245ce3['type']),_0xc32653=_0x2d61e3['filter'](_0x347cc4=>!_0xe835d5['has'](_0x347cc4)),_0x4332f5=new Map(_0x2d61e3['map'](_0x4ca75c=>[_0x4ca75c,this['_suggestionFactory']['getSuggestionCallback'](_0x4ca75c['type'],_0x4ca75c['subType'],'chain')])),_0x22cba5=new Map(_0x2d61e3['map'](_0x392ecf=>[_0x392ecf,_0x392ecf['getFirstRange']()])),_0xe585c7=new Set(),_0xe884b9=new Set();for(let _0x37180d=0x0;_0x37180d<_0x344409['length'];_0x37180d++)_0x2f5b06(_0x344409[_0x37180d],_0x344409,_0x37180d+0x1);for(let _0x931cb=0x0;_0x931cb<_0x344409['length'];_0x931cb++)_0x2f5b06(_0x344409[_0x931cb],_0xc32653,0x0);const _0x59b8c4=new Set();for(let _0xb54858=0x0;_0xb54858<_0x344409['length'];_0xb54858++){const _0x996085=_0x344409[_0xb54858];!_0xe884b9['has'](_0x996085)&&_0x996085['previous']&&(_0x59b8c4['add'](_0x996085['previous']),_0x996085['previous']['next']===_0x996085&&(_0x996085['previous']['next']=null),_0x996085['previous']=null),!_0xe585c7['has'](_0x996085)&&_0x996085['next']&&(_0x59b8c4['add'](_0x996085['next']),_0x996085['next']['previous']===_0x996085&&(_0x996085['next']['previous']=null),_0x996085['next']=null);}function _0x2f5b06(_0x393924,_0xb71e52,_0x58c3f6){for(let _0xac160b=_0x58c3f6;_0xac160b<_0xb71e52['length'];_0xac160b++){const _0x5e24fd=_0x4f5ad2(_0x393924,_0xb71e52[_0xac160b]);_0x5e24fd&&(_0x5e24fd[0x0]['next']=_0x5e24fd[0x1],_0x5e24fd[0x1]['previous']=_0x5e24fd[0x0],_0xe585c7['add'](_0x5e24fd[0x0]),_0xe884b9['add'](_0x5e24fd[0x1]));}}function _0x4f5ad2(_0x4e930f,_0x3c9bb7){if(_0x4e930f['author']['id']!==_0x3c9bb7['author']['id'])return null;const _0x2df493=_0x4332f5['get'](_0x4e930f)(_0x4e930f,_0x3c9bb7,_0x22cba5['get'](_0x4e930f),_0x22cba5['get'](_0x3c9bb7));if(!_0x2df493)return null;return _0x4332f5['get'](_0x3c9bb7)(_0x4e930f,_0x3c9bb7,_0x22cba5['get'](_0x4e930f),_0x22cba5['get'](_0x3c9bb7))?_0x2df493[0x1]['commentThread']&&_0x2df493[0x1]['commentThread']['length']?null:_0x2df493:null;}_0x59b8c4['size']&&this['_refreshSuggestionsChain'](_0x59b8c4);}['_refreshAttributeSuggestionsChain'](_0x864d64){if(0x0==_0x864d64['length'])return;const _0x40ce4e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x543175=>'attribute'==_0x543175['type']&&_0x543175['_isDataLoaded']),_0x1cda78=[],_0x821ebf=new Map();for(const _0x7f6aa9 of _0x40ce4e){const _0x27af05=_0x526b92(_0x7f6aa9['attributes']);_0x821ebf['has'](_0x27af05)||(_0x821ebf['set'](_0x27af05,_0x1cda78['length']),_0x1cda78['push']([]));const _0x59aeb0=_0x821ebf['get'](_0x27af05);_0x1cda78[_0x59aeb0]['push'](_0x7f6aa9);}!(function(){_0x1cda78['sort']((_0x4c3ce5,_0x30f2ca)=>{const _0x24db9e=_0x4c3ce5[0x0]['createdAt'],_0x1efc2b=_0x30f2ca[0x0]['createdAt'];return _0x24db9e==_0x1efc2b?_0x4c3ce5[0x0]['attributes']['groupId']<_0x30f2ca[0x0]['attributes']['groupId']?-0x1:0x1:_0x24db9e<_0x1efc2b?-0x1:0x1;});for(const _0x5f0441 of _0x1cda78)_0x5f0441['sort']((_0xa3f1df,_0x448d38)=>_0xa3f1df['id']<_0x448d38['id']?-0x1:0x1);}());for(let _0x288b5e=0x0;_0x288b5e<_0x1cda78['length'];_0x288b5e++){if(0x0==_0x1cda78[_0x288b5e]['length'])continue;const _0x379edb=[];for(let _0x209cad=_0x288b5e+0x1;_0x209cad<_0x1cda78['length'];_0x209cad++)0x0!=_0x1cda78[_0x209cad]['length']&&_0x543df3(_0x1cda78[_0x288b5e],_0x1cda78[_0x209cad])&&_0x379edb['push'](_0x209cad);for(const _0x331388 of _0x379edb)_0x1cda78[_0x288b5e]=_0x1cda78[_0x288b5e]['concat'](_0x1cda78[_0x331388]),_0x1cda78[_0x331388]=[];}for(const _0x376bf4 of _0x1cda78)for(let _0x3a02a8=0x0;_0x3a02a8<_0x376bf4['length'];_0x3a02a8++){const _0x1d4b1b=_0x376bf4[_0x3a02a8+0x1]||null;_0x376bf4[_0x3a02a8]['next']!==_0x1d4b1b&&(_0x376bf4[_0x3a02a8]['next']=_0x1d4b1b);}for(const _0x27855d of _0x1cda78)for(let _0xdbd5bd=0x0;_0xdbd5bd<_0x27855d['length'];_0xdbd5bd++){const _0x2d6f84=_0x27855d[_0xdbd5bd-0x1]||null;_0x27855d[_0xdbd5bd]['previous']!==_0x2d6f84&&(_0x27855d[_0xdbd5bd]['previous']=_0x2d6f84);}function _0x543df3(_0x393187,_0x3780a1){if(_0x393187[0x0]['attributes']['groupId']!==_0x3780a1[0x0]['attributes']['groupId']&&_0x393187[0x0]['author']!==_0x3780a1[0x0]['author'])return!0x1;if(!function(_0x3c8963,_0x3ed525){if(!_0x3c8963['hasComments']&&!_0x3ed525['hasComments'])return!0x0;if(_0x3c8963['hasComments']&&_0x3ed525['hasComments'])return!0x1;if(_0x3c8963['hasComments']&&_0x3ed525['createdAt']<_0x3c8963['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3ed525['hasComments']&&_0x3c8963['createdAt']<_0x3ed525['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x393187[0x0],_0x3780a1[0x0]))return!0x1;const _0x414d46=Ft(_0x393187[0x0]['attributes'],'groupId'),_0x403db0=Ft(_0x3780a1[0x0]['attributes'],'groupId');if(!_0x53b5bd(_0x414d46,_0x403db0))return!0x1;return!!_0x393187['every'](_0x3a970e=>_0x3780a1['some'](_0x5cff57=>_0x3a970e['getFirstRange']()['isEqual'](_0x5cff57['getFirstRange']())))&&_0x3780a1['every'](_0x4ffc9f=>_0x393187['some'](_0x354b81=>_0x4ffc9f['getFirstRange']()['isEqual'](_0x354b81['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4cde61){const _0x416044=Array['from'](_0x4cde61),_0x1f1cfa=this['getSuggestions']({'skipNotAttached':!0x0}),_0x50b8e8=_0x1f1cfa['filter'](_0x5c1c9b=>!_0x4cde61['has'](_0x5c1c9b)),_0x4ec42e=new Map(_0x416044['map'](_0x1aa750=>[_0x1aa750,this['_suggestionFactory']['getSuggestionCallback'](_0x1aa750['type'],_0x1aa750['subType'],'join')])),_0x3b6d02=new Map(_0x1f1cfa['map'](_0x12ad00=>[_0x12ad00,_0x12ad00['getRanges']()]));for(let _0x4bc3df=0x0;_0x4bc3df<_0x416044['length'];_0x4bc3df++){if(_0x493de8(this,_0x416044[_0x4bc3df],_0x416044,_0x4bc3df+0x1))return!0x0;}for(let _0x2321d2=0x0;_0x2321d2<_0x416044['length'];_0x2321d2++){if(_0x493de8(this,_0x416044[_0x2321d2],_0x50b8e8,0x0))return!0x0;}return!0x1;function _0x493de8(_0x4ff186,_0x288fbb,_0xda3ed,_0x22c8a9){for(let _0x440160=_0x22c8a9;_0x440160<_0xda3ed['length'];_0x440160++){const _0x11ceea=_0xda3ed[_0x440160];if(_0x11ceea['type']!==_0x288fbb['type']||_0x11ceea['author']['id']!==_0x288fbb['author']['id']||_0x11ceea['subType']!==_0x288fbb['subType'])continue;if(!Qt(_0x288fbb,_0x11ceea))continue;if('attribute'==_0x288fbb['type']&&_0x288fbb['data']['oldValue']!=_0x11ceea['data']['oldValue'])continue;if('attribute'==_0x288fbb['type']&&_0x4ff186['_isBlockAttribute'](_0x288fbb['data']['key']))continue;if('formatBlock'==_0x288fbb['type']){const _0x201a5f=_0x4ff186['editor']['model'],_0x5d4c4d=_0x288fbb['getContainedElement']();if(_0x5d4c4d&&(_0x201a5f['schema']['isObject'](_0x5d4c4d)||_0x201a5f['schema']['isLimit'](_0x5d4c4d)))continue;}const _0x2deced=_0x4ec42e['get'](_0x288fbb),_0x214e09=_0x3b6d02['get'](_0x288fbb),_0x2553ef=_0x3b6d02['get'](_0x11ceea),_0x31f9c1=_0x288fbb['commentThread']&&_0x288fbb['commentThread']['length'],_0x15e7d0=_0x11ceea['commentThread']&&_0x11ceea['commentThread']['length'];if(!_0x31f9c1&&_0x2deced(_0x2553ef,_0x214e09))return _0x4ff186['_joinSuggestions'](_0x11ceea,_0x288fbb),_0x3b6d02['delete'](_0x288fbb),!0x0;if(!_0x15e7d0&&_0x2deced(_0x214e09,_0x2553ef))return _0x4ff186['_joinSuggestions'](_0x288fbb,_0x11ceea),_0x3b6d02['delete'](_0x11ceea),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c35f,_0x18ce51){if(_0x2c35f['isMultiRange']){for(const _0x37e32b of _0x18ce51['getRanges']())_0x2c35f['addRange'](_0x37e32b);}else{const _0x1d43d1=_0x18ce51['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c35f,this['_model']['createRange'](_0x2c35f['getFirstRange']()['start'],_0x1d43d1));}_0x18ce51['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2c0b4e,_0x55f881,_0x5560fd){const _0x5e8641=_0x2c0b4e['startsWith']('format')||_0x2c0b4e['startsWith']('attribute')?'FORMATTING':_0x2c0b4e['toUpperCase']();return c(this['editor']['locale'],_0x55f881+'_'+_0x5e8641+'_SUGGESTION_ANNOUNCEMENT',_0x5560fd);}['_initAriaMarkerChangeAnnouncements'](){const _0x28bf71=this['editor'];if(!_0x28bf71['ui'])return;const {ariaLiveAnnouncer:_0x195f54}=_0x28bf71['ui'];_0xa66937(this['_model'],({left:_0x596709,entered:_0x352318})=>{for(const _0x43a038 of _0x596709){const {group:_0x4d22e4,type:_0x3ac6e1}=this['_splitMarkerName'](_0x43a038['name']);if('suggestion'===_0x4d22e4){_0x195f54['announce'](this['_getMarkerAnnouncementText'](_0x3ac6e1,'LEAVE'));break;}}for(const _0x24e1f9 of _0x352318){const {group:_0x512bb1,type:_0x3a0f0e}=this['_splitMarkerName'](_0x24e1f9['name']);if('suggestion'===_0x512bb1){_0x195f54['announce'](this['_getMarkerAnnouncementText'](_0x3a0f0e,'ENTER',_0x105d0d(_0x669480)));break;}}});}['_processAttributeChanges'](_0x1534f3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x44670a=this['editor'],_0x4b6031=_0x44670a['model']['document']['differ']['getChanges']();if(0x0==_0x4b6031['length'])return!0x1;const _0x34f014=[],_0x3ab78f=_0x4b6031['filter'](_0x10f905=>'attribute'==_0x10f905['type']),_0x2a5399=_0x4b6031['filter'](_0x263396=>'insert'==_0x263396['type']&&'$text'!=_0x263396['name']),_0x723a88=_0x4b6031['filter'](_0x2dd50c=>'remove'==_0x2dd50c['type']&&'$text'!=_0x2dd50c['name']);for(const _0x4d95f8 of _0x3ab78f)_0x34f014['push']({'key':_0x4d95f8['attributeKey'],'newValue':_0x4d95f8['attributeNewValue'],'oldValue':_0x4d95f8['attributeOldValue'],'range':qt(_0x4d95f8['range'],_0x44670a['model'])});for(const _0x230937 of _0x2a5399){const _0x69ea2c=_0x723a88['find'](_0xdf2e4c=>_0xdf2e4c['position']['isEqual'](_0x230937['position']));_0x69ea2c&&_0x34f014['push']({'key':u,'newValue':_0x230937['name'],'oldValue':_0x69ea2c['name'],'range':_0x44670a['model']['createRangeOn'](_0x230937['position']['nodeAfter'])});}return 0x0!=_0x34f014['length']&&this['_reduceExistingSuggestions'](_0x1534f3,_0x34f014);}['_processAttributeSuggestions'](_0x4577ba){let _0x56fddb=!0x1;const _0x7d996c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x14885b=>_0x14885b['data']['newRange']&&_0x14885b['name']['startsWith']('suggestion:attribute:'));for(const _0x15cedb of _0x7d996c){const {subType:_0x2b9552,id:_0x33f928}=this['_splitMarkerName'](_0x15cedb['name']),_0x4e2f1f=_0x2b9552['split']('|')[0x0];for(const _0x52e5d0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x52e5d0['id']!=_0x33f928&&'attribute'==_0x52e5d0['type']&&_0x52e5d0['data']&&_0x52e5d0['data']['key']==_0x4e2f1f&&_0x52e5d0['getFirstRange']()['isIntersecting'](_0x15cedb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x52e5d0,_0x15cedb['data']['newRange'],_0x4577ba),_0x56fddb=!0x0);}return _0x56fddb;}['_recordAttributeChanges'](_0x4bfd8e){this['_recordAttributeSuggestions']=!0x0,_0x4bfd8e();}['_isRegisteredAttribute'](_0x11a13d){const _0x1a57ee=this['_isBlockAttribute'](_0x11a13d),_0x1aa01b=this['_inlineAttributeKeys']['has'](_0x11a13d);return _0x1a57ee||_0x1aa01b;}['_reduceExistingSuggestions'](_0x5f3f74,_0x3a7ca9){if(0x0==_0x3a7ca9['length'])return!0x1;let _0x2472ad=!0x1;for(const _0x2d14c2 of _0x3a7ca9){const _0x2c0a76=this['_findSuggestions'](_0x2d14c2['range'],'attribute')['filter'](_0x9043b3=>!_0x9043b3['meta']['isNextTo'])['map'](_0x38f399=>_0x38f399['suggestion']),_0x47411b=_0x526b92({'newValue':_0x2d14c2['newValue']});_0x2c0a76['filter'](_0xbed3a9=>{const [_0x2f6362,_0x4706f1]=_0xbed3a9['subType']['split']('|');return _0x2f6362==_0x2d14c2['key']&&_0x4706f1!=_0x47411b;})['forEach'](_0x1c8891=>{this['_reduceSuggestionAttributeRange'](_0x1c8891,_0x2d14c2['range'],_0x5f3f74),_0x2472ad=!0x0;});}return _0x2472ad;}['_reduceSuggestionAttributeRange'](_0x2af9fc,_0x200297,_0x22dcad){const _0x1b0b91=_0x2af9fc['getFirstRange']()['getDifference'](_0x200297);0x0!==_0x1b0b91['length']?0x1!==_0x1b0b91['length']?this['_breakSuggestionMarker'](_0x2af9fc,_0x200297['start'],_0x200297['end']):this['_setSuggestionRange'](_0x2af9fc,_0x1b0b91[0x0]):_0x22dcad['removeMarker'](_0x2af9fc['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x58bf28){this['_editor']=_0x58bf28,this['_model']=_0x58bf28['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x19e34d,_0x2fce21,_0x4eb2f9,_0x50df45,_0x466c56,_0x5d7342){return new o(this['_model'],{'type':_0x19e34d,'subType':_0x2fce21,'id':_0x4eb2f9,'author':_0x50df45,'creator':_0x50df45,'attributes':_0x466c56,'onAttributesChange':_0x5d7342,'onAccept':(..._0x518224)=>this['getSuggestionCallback'](_0x19e34d,_0x2fce21,'accept')(..._0x518224),'onDiscard':(..._0x4aa50e)=>this['getSuggestionCallback'](_0x19e34d,_0x2fce21,'discard')(..._0x4aa50e)});}['registerCustomCallback'](_0x4b2334,_0x30ac00,_0x2f86d9,_0x43b20a){const _0x1774b2=_0x4b2334+':'+_0x30ac00+':'+_0x2f86d9;this['_customCallbacks']['set'](_0x1774b2,_0x43b20a);}['getSuggestionCallback'](_0x16461f,_0x2c81e7,_0x506ea2){const _0x2657b8=_0x16461f+':'+_0x2c81e7+':'+_0x506ea2;return this['_customCallbacks']['get'](_0x2657b8)||this['_defaultCallbacks']['get'](_0x16461f+':'+_0x506ea2);}['_registerDefaultCallbacks'](){const _0x442a96=()=>!0x1,_0x54627f=_0x2f24d5=>{_0x2f24d5['sort']((_0x935d92,_0x501c84)=>_0x935d92['start']['isBefore'](_0x501c84['start'])?0x1:-0x1),this['_model']['change'](_0x5ab0d7=>{for(const _0x51fbd0 of _0x2f24d5){let _0x11980b;_0x11980b=_0x51fbd0['end']['isAtEnd']&&_0x51fbd0['end']['parent']==_0x51fbd0['start']['nodeAfter']?_0x5ab0d7['createSelection'](_0x51fbd0['start']['nodeAfter'],'on'):_0x5ab0d7['createSelection'](_0x51fbd0),this['_model']['deleteContent'](_0x11980b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x295a50=(_0x32192d,_0x18f8d5)=>{_0x18f8d5&&this['_model']['change'](_0xb2790d=>{const {commandName:_0x4e70e5,commandParams:_0x48547d=[]}=_0x18f8d5,_0x39adad=_0x32192d['map'](_0x1f0896=>(Lt(_0x1f0896)&&(_0x1f0896=this['_model']['createRange'](_0x1f0896['end'])),_0x1f0896))['filter'](_0x25d076=>'$graveyard'!==_0x25d076['root']['rootName']);if(_0x39adad['length']<0x1)return;const _0x3e40e9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2500de=>_0x24a0f9['fromRange'](_0x2500de));_0xb2790d['setSelection'](_0x39adad);for(const _0x30dabe of this['_editor']['commands']['commands']())_0x30dabe['refresh']();_0x48547d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4e70e5,..._0x48547d);const _0x322f88=_0x3e40e9['filter'](_0x44640a=>'$graveyard'!=_0x44640a['root']['rootName']);_0x322f88['length']>0x0&&_0xb2790d['setSelection'](_0x322f88);for(const _0x562e62 of _0x3e40e9)_0x562e62['detach']();});},_0x691f83=(_0xb05fd9,_0x71aeea)=>0x1==_0xb05fd9['length']&&0x1==_0x71aeea['length']&&_0xb05fd9[0x0]['end']['isEqual'](_0x71aeea[0x0]['start']),_0x3c704e=(_0x395531,_0x3ff728,_0x3d7168,_0x5805bc)=>Wt(_0x395531,_0x3ff728,_0x3d7168,_0x5805bc)?[_0x395531,_0x3ff728]:Wt(_0x3ff728,_0x395531,_0x5805bc,_0x3d7168)?[_0x3ff728,_0x395531]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x442a96),this['_defaultCallbacks']['set']('insertion:discard',_0x54627f),this['_defaultCallbacks']['set']('insertion:join',_0x691f83),this['_defaultCallbacks']['set']('insertion:chain',_0x3c704e),this['_defaultCallbacks']['set']('deletion:accept',_0x54627f),this['_defaultCallbacks']['set']('deletion:discard',_0x442a96),this['_defaultCallbacks']['set']('deletion:join',_0x691f83),this['_defaultCallbacks']['set']('deletion:chain',_0x3c704e),this['_defaultCallbacks']['set']('formatInline:accept',_0x295a50),this['_defaultCallbacks']['set']('formatInline:discard',_0x442a96),this['_defaultCallbacks']['set']('formatInline:join',_0x691f83),this['_defaultCallbacks']['set']('formatInline:chain',_0x442a96),this['_defaultCallbacks']['set']('formatBlock:accept',_0x295a50),this['_defaultCallbacks']['set']('formatBlock:discard',_0x442a96),this['_defaultCallbacks']['set']('formatBlock:join',_0x691f83),this['_defaultCallbacks']['set']('formatBlock:chain',_0x442a96),this['_defaultCallbacks']['set']('attribute:accept',_0x442a96),this['_defaultCallbacks']['set']('attribute:discard',(_0x161afa,_0x366583)=>{if(!_0x366583)return;const _0x3a1f62=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3a0137=>{if(_0x366583['key']==u)for(const _0x3bedf0 of _0x161afa){const _0x97cb2a=_0x3bedf0['start']['nodeAfter'],_0x555838=_0x366583['oldValue'];_0x3a0137['rename'](_0x97cb2a,_0x555838);}else{if(_0x3a1f62['_isBlockAttribute'](_0x366583['key'])){for(const _0x4495e4 of _0x161afa)void 0x0!==_0x366583['oldValue']?_0x3a0137['setAttribute'](_0x366583['key'],_0x366583['oldValue'],_0x4495e4['start']['nodeAfter']):_0x3a0137['removeAttribute'](_0x366583['key'],_0x4495e4['start']['nodeAfter']);}else{for(const _0x9eb166 of _0x161afa)_0x366583['oldValue']?_0x3a0137['setAttribute'](_0x366583['key'],_0x366583['oldValue'],_0x9eb166):_0x3a0137['removeAttribute'](_0x366583['key'],_0x9eb166);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x691f83);}}function Gt(_0x576ec8,_0x55736b,_0x589cc0){for(const _0x29dc6f of _0x55736b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x29dc6f['root']==_0x29dc6f)return!0x1;if(!_0x589cc0['containsItem'](_0x29dc6f))return!0x1;if(_0x576ec8['isObject'](_0x29dc6f)||_0x576ec8['isLimit'](_0x29dc6f))return!0x0;}return!0x1;}function Lt(_0x124d0e){return _0x124d0e['end']['parent']==_0x124d0e['start']['nodeAfter']&&_0x124d0e['end']['isAtStart'];}function Jt(_0x368313,_0x1a2f12,_0x5c1c9c,_0x4f1f24){const _0x128f41=_0x1966be=>!_0x1966be['item']['is']('$textProxy')&&!_0x4f1f24['isObject'](_0x1966be['item']),_0x5b9d81=_0x368313['start']['getLastMatchingPosition'](_0x128f41),_0xdcf522=_0x368313['end']['getLastMatchingPosition'](_0x128f41,{'direction':'backward'});return(!_0x368313['start']['isEqual'](_0x5b9d81)||!_0x368313['end']['isEqual'](_0xdcf522))&&(_0x5b9d81['isBefore'](_0xdcf522)?_0x5c1c9c['updateMarker'](_0x1a2f12,{'range':_0x5c1c9c['createRange'](_0x5b9d81,_0xdcf522)}):_0x5c1c9c['removeMarker'](_0x1a2f12),!0x0);}function Kt(_0x408a0a){return _0x526b92(_0x408a0a);}function Ht(_0x3560ad){const _0x438362=_0x3560ad['start']['nodeAfter'];return _0x438362&&_0x438362['is']('element');}function qt(_0x4954aa,_0x787cdf){return null==_0x4954aa['end']['nodeBefore']&&_0x4954aa['end']['parent']==_0x4954aa['start']['nodeAfter']?zt(_0x4954aa['start']['nodeAfter'],_0x787cdf):_0x4954aa;}function zt(_0x67c62d,_0x439540){const _0x21681e=_0x439540['schema']['isObject'](_0x67c62d)||_0x439540['schema']['isSelectable'](_0x67c62d);return _0x439540['createRange'](_0x439540['createPositionAt'](_0x67c62d,'before'),_0x21681e?_0x439540['createPositionAfter'](_0x67c62d):_0x439540['createPositionAt'](_0x67c62d,'end'));}function Wt(_0xca2d8e,_0x26fb81,_0x5109b6,_0x3f00dd){return!!Qt(_0xca2d8e,_0x26fb81)&&_0x5109b6['end']['isEqual'](_0x3f00dd['start']);}function Qt(_0x150f40,_0x9eba67){if(!_0x150f40['_isDataLoaded']||!_0x9eba67['_isDataLoaded'])return!0x1;const _0x4bf6d5=new Set(Object['keys'](_0x150f40['attributes'])),_0x133327=new Set(Object['keys'](_0x9eba67['attributes']));if(_0x4bf6d5['delete']('groupId'),_0x133327['delete']('groupId'),0x0==_0x4bf6d5['size']&&0x0==_0x133327['size'])return!0x0;if(_0x4bf6d5['size']!=_0x133327['size'])return!0x1;const _0x42a858={..._0x150f40['attributes']},_0x4b5dd5={..._0x9eba67['attributes']};return delete _0x42a858['groupId'],delete _0x4b5dd5['groupId'],JSON['stringify'](_0x42a858)==JSON['stringify'](_0x4b5dd5);}function Xt(_0x5d5e47,_0x4f3703){const _0x4d3219=Yt(_0x5d5e47['attributes']),_0x2c7644=Yt(_0x4f3703);if(!_0x5d5e47['_isDataLoaded'])return!0x1;for(const _0x6b5c94 of Object['keys'](_0x2c7644))if(!_0x53b5bd(_0x4d3219[_0x6b5c94],_0x2c7644[_0x6b5c94]))return!0x1;return!0x0;}function Yt(_0x13f99a){const _0x1db849=Object['assign']({},_0x13f99a);return delete _0x1db849['skipNestingCheck'],delete _0x1db849['tablePasteChainId'],_0x1db849;}class pe extends/* #__PURE__ -- @preserve */
25
- _0xd83ec1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x45c055,_0x4e7c54,_0x3c43de,_0x2cc1cb){super(),this['model']=_0x4e7c54,this['view']=_0x3c43de,this['commentThreadController']=_0x2cc1cb,this['_editor']=_0x45c055,this['_acceptCommand']=_0x45c055['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x45c055['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x300b99,_0x3d4bb5)=>_0x300b99||_0x3d4bb5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2e1677=>_0x2e1677&&this['_editor']['model']['canEditAt'](_0x4e7c54['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x269745=>_0x269745&&this['_editor']['model']['canEditAt'](_0x4e7c54['getRanges']())),this['_pendingAction']=null,_0x3c43de['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3c43de,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3c43de,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3c43de,'change:isDirty',()=>{_0x3c43de['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 _0x34f063=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x34f063);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x6ca1cc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1fd931,_0x4c4187,_0x1cf943,_0x27dcc9){super(_0x1fd931),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x482e8d(_0x1fd931,c(_0x1fd931,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4c4187['authoredAt']),this['bind']('authoredAt')['to'](_0x4c4187),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',_0x4c4187,'authoredAt',this,'descriptionParts',(_0x1a1a8f,_0x52c6c0,_0xde724f)=>{const _0x504682=_0xde724f['map'](_0x276850=>ls(_0x276850['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1a1a8f-0x1,_0x4c4187['author']['name'],_0x52c6c0?_0x27dcc9['formatDateTime'](_0x52c6c0):'',new DOMParser()['parseFromString'](_0x504682,'text/html')['body']['textContent']]);}),this['focusables']=new _0x177fd0(),this['focusTracker']=new _0x5f3a02(),this['keystrokes']=new _0x1a48a0(),this['focusCycler']=new _0xd93ef5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4d7b03=>_0x4d7b03['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4c4187,this['_localUser']=_0x1cf943,this['_config']=_0x27dcc9,_0x27dcc9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1de87c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3ff920}=this['_config'];this['commentsListView']=new _0x3ff920(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',_0x965712=>_0x965712+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x47545a,_0x35f5e6)=>_0x47545a||!!_0x35f5e6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x27285c}=this['_config'],_0x259517=new _0x27285c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1b7e3b=_0x259517['commentInputView'];return _0x259517['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1b7e3b,'value',(_0x52efa6,_0xc52b2e,_0x27c587)=>!!_0x27c587||_0x52efa6&&!_0xc52b2e),_0x1b7e3b['on']('submit',(_0x2b9223,_0x2b5306)=>{this['fire']('addComment',_0x2b5306),_0x1b7e3b['editor']['setData']('');}),_0x1b7e3b['on']('cancel',()=>this['focus']()),_0x1b7e3b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x259517;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1f4fc3,_0x2d6b0f,_0x4db7aa,_0x38ff1c){super(_0x1f4fc3,_0x2d6b0f,_0x4db7aa,_0x38ff1c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x463f62=>_0x463f62&&_0x463f62[0x0]?_0x463f62[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x18db4d,_0x2b818c)=>{let _0x40e168='';for(const _0x243784 of _0x18db4d)_0x40e168+='<p>'+ls(_0x243784['content'],_0x243784['color'])+'</p>';return _0x2b818c?_0x40e168:ti(_0x40e168,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x38ff1c['SuggestionView'](_0x1f4fc3,_0x2d6b0f,{'formatDateTime':_0x38ff1c['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 _0x18a9df=this['bindTemplate'],_0x2017b8=[this['suggestionView']];return this['commentsListView']&&_0x2017b8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2017b8['push'](this['commentThreadInputView']),_0x2017b8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x18a9df['if']('isActive','ck-suggestion-wrapper--active'),_0x18a9df['to']('type',_0x339d3b=>'ck-suggestion-'+_0x339d3b),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':_0x18a9df['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2017b8};}['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 _0x6ca1cc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x310a5c,_0x16b5f7,_0x255b39){super(_0x310a5c),this['_model']=_0x16b5f7,this['_config']=_0x255b39,this['set']('description',''),this['bind']('authoredAt')['to'](_0x16b5f7),this['acceptButton']=this['_createButton'](c(_0x310a5c,'Accept\x20suggestion'),_0x207077,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x310a5c,'Discard\x20suggestion'),_0x2371e1,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x798988(_0x310a5c,_0x16b5f7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x177fd0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5f3a02(),this['keystrokes']=new _0x1a48a0(),this['focusCycler']=new _0xd93ef5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3dbc04=>_0x3dbc04['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x68ccef=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x68ccef['innerHTML']=this['description'],this['on']('change:description',(_0x47296e,_0x442973,_0x4c4baa)=>{_0x68ccef['innerHTML']=_0x4c4baa;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x31b2e4=this['bindTemplate'],_0x56c791=[{'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':_0x31b2e4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x31b2e4['to']('authoredAt',_0x195abf=>this['_config']['formatDateTime'](_0x195abf))}]}]},{'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']&&_0x56c791['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':_0x56c791}]};}['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'](_0x23bf46,_0x2ab9b8,_0x4f1da5,_0x43c4d7,_0x1ae651){const _0x2467e6=new _0x53595a(this['locale']);return _0x2467e6['set']({'label':_0x23bf46,'icon':_0x2ab9b8,'tooltip':!0x0,'tooltipPosition':_0x1ae651}),_0x2467e6['extendTemplate']({'attributes':{'class':_0x4f1da5}}),_0x2467e6['on']('execute',()=>{this['fire'](_0x43c4d7,this['_model']['id']);}),_0x2467e6;}['_setupKeyboardNavigation'](){const _0x4a8154=this['element'];this['keystrokes']['listenTo'](_0x4a8154);for(const _0x21ec94 of this['focusables'])this['focusTracker']['add'](_0x21ec94['element']),this['keystrokes']['listenTo'](_0x21ec94['element']);this['keystrokes']['set']('enter',(_0x5783be,_0x3bff60)=>{_0x4a8154===_0x5783be['target']&&(this['focusCycler']['focusFirst'](),_0x3bff60());}),this['keystrokes']['set']('esc',(_0x207d18,_0x1e484a)=>{_0x4a8154!==_0x207d18['target']&&(this['focus'](),_0x1e484a());});}}class d extends _0x5543a6{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x327c0e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x174e9c){super(_0x174e9c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f8f77=this['editor']['config'];_0x3f8f77['define']('trackChanges.SuggestionThreadView',fe),_0x3f8f77['define']('trackChanges.SuggestionView',we),_0x3f8f77['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f8f77['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4df122,_0xec7d08){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5be936,_0x4d90c1]of this['_handleControllerBuffer']){const _0x27d8cf=this['_suggestionToController']['has'](_0x5be936);_0x27d8cf||_0x4d90c1?_0x27d8cf&&_0x4d90c1&&this['_destroyController'](_0x5be936):this['_initializeController'](_0x5be936);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4df122,_0xec7d08);}['init'](){const _0x5a154a=this['editor'],_0x861687=_0x5a154a['plugins']['get']('TrackChangesEditing'),_0x21a09a=_0x5a154a['plugins']['get']('Annotations'),_0x488269=_0x5a154a['plugins']['get']('EditorAnnotations'),_0x3ab9a1=_0x5a154a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x488269['addSourceCollector'](()=>{const _0x3a6a3f=[];for(const [_0x1df03f,_0x10124c]of Array['from'](this['_suggestionToController'])){const _0x489a3b=_0x1df03f['getAllAdjacentSuggestions'](),_0x509fec=[];for(const _0x4e75f1 of _0x489a3b){if(!_0x4e75f1['isInContent'])continue;if(_0x4e75f1['isMultiRange']){_0x509fec['push'](..._0x4e75f1['getRanges']());continue;}const _0x1d4f44=_0x4e75f1['getFirstRange']();if(_0x509fec['length']>0x0){const _0x2001d3=_0x509fec[0x0]['getJoined'](_0x1d4f44);if(_0x2001d3){_0x509fec[0x0]=_0x2001d3;continue;}}_0x509fec['push'](_0x1d4f44);}_0x3a6a3f['push']([_0x10124c['view'],_0x509fec]);}return _0x3a6a3f;}),this['listenTo'](_0x861687,'suggestionLoaded',(_0x565125,_0x26d83c)=>{this['listenTo'](_0x26d83c,'change:previous',(_0x250e45,_0x2a60a4,_0x3a0f19,_0x21c0e1)=>{_0x26d83c['isInContent']&&(null==_0x3a0f19?(this['_updateController'](_0x21c0e1['head']),this['_handleSuggestionControllerDelayed'](_0x26d83c,!0x1)):(this['_updateController'](_0x3a0f19['head']),null==_0x21c0e1&&this['_handleSuggestionControllerDelayed'](_0x26d83c,!0x0)));}),null!==_0x26d83c['previous']?this['_updateController'](_0x26d83c['head']):this['_handleSuggestionControllerDelayed'](_0x26d83c,!0x1);}),this['listenTo'](_0x861687,'suggestionUnloaded',(_0xdac6b0,_0x105c2a,_0x553b94)=>{this['stopListening'](_0x105c2a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x105c2a),this['_suggestionToController']['has'](_0x105c2a)&&this['_destroyController'](_0x105c2a),_0x553b94&&this['_updateController'](_0x553b94['head']);}),this['listenTo'](_0x861687,'suggestionChanged',(_0x24ed8d,_0x149539)=>{this['_updateController'](_0x149539);}),this['listenTo'](_0x21a09a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3ab9a1,'addComment',(_0x568fbf,{threadId:_0x34969e,isFromAdapter:_0x56c7c3})=>{if(_0x56c7c3||!_0x861687['hasSuggestion'](_0x34969e))return;const _0xe35e94=_0x861687['getSuggestion'](_0x34969e);this['_suggestionToController']['get'](_0xe35e94)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5619e4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15e28c;for(const _0x4262c8 in _0x5619e4){const _0x41e094=_0x4262c8,_0x2ace2c=_0x5619e4[_0x41e094];if('trackChangesLicenseKeyValid'==_0x2ace2c||'trackChangesLicenseKeyInvalid'==_0x2ace2c||'trackChangesLicenseKeyExpired'==_0x2ace2c||'trackChangesLicenseKeyDomainLimit'==_0x2ace2c||'trackChangesLicenseKeyNotAllowed'==_0x2ace2c||'trackChangesLicenseKeyEvaluationLimit'==_0x2ace2c||'trackChangesLicenseKeyTrialLimit'==_0x2ace2c||'trackChangesLicenseKeyUsageLimit'==_0x2ace2c){delete _0x5619e4[_0x41e094],_0x15e28c=_0x2ace2c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x15e28c&&_0x5619e4['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x15e28c&&_0x5619e4['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x15e28c&&_0x5619e4['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x15e28c&&_0x5619e4['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x15e28c&&_0x5619e4['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x15e28c&&_0x5619e4['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x15e28c&&_0x5619e4['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x24c715=this['editor']['plugins']['get']('Annotations'),_0x323ec7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x583317=Array['from'](_0x24c715['activeAnnotations'],_0x205de0=>_0x205de0['innerView'])['filter'](_0xde90eb=>this['_viewToController']['has'](_0xde90eb)),_0x46ce10=[];for(const _0xaeb34f of _0x583317){const _0x50bd98=this['_viewToController']['get'](_0xaeb34f)['model']['getAllAdjacentSuggestions']();_0x46ce10['push'](..._0x50bd98['reduce']((_0x37bc54,_0x2de972)=>[..._0x37bc54,..._0x2de972['getMarkerNames']()],[]));}_0x323ec7['activeMarkers']=_0x46ce10;}['_addUIComponentsToFactory'](){const _0x538a43=this['editor'],_0x217568=_0x538a43['locale'],_0x54dbb9=c(_0x217568,'Track\x20changes'),_0x5bc811=new _0x212a21([{'type':'switchbutton','model':new _0x2ac537({'withText':!0x0,'isToggleable':!0x0,'label':_0x54dbb9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2ac537({'withText':!0x0,'label':c(_0x217568,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ac537({'withText':!0x0,'label':c(_0x217568,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ac537({'withText':!0x0,'label':c(_0x217568,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ac537({'withText':!0x0,'label':c(_0x217568,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x538a43['plugins']['has']('TrackChangesPreview')&&_0x5bc811['addMany']([{'type':'separator'},{'type':'button','model':new _0x2ac537({'withText':!0x0,'label':c(_0x217568,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x881b46 of _0x5bc811)if(ke(_0x881b46)){const _0x4735d3=_0x538a43['commands']['get'](_0x881b46['model']['commandName']);_0x881b46['model']['bind']('isOn','isEnabled')['to'](_0x4735d3,'value','isEnabled');}_0x538a43['ui']['componentFactory']['add']('trackChanges',_0x33af6a=>this['_createToolbarButton'](_0x33af6a,_0x5bc811,_0x54dbb9)),_0x538a43['ui']['componentFactory']['add']('menuBar:trackChanges',_0xc41baf=>this['_createMenuBarMenu'](_0xc41baf,_0x5bc811,_0x54dbb9));}['_createToolbarButton'](_0x1c2090,_0x3ea001,_0xc10fa6){const _0x47d37b=_0x4d94ac(_0x1c2090,_0x8d227a),_0x4c5c9b=this['editor']['commands']['get']('trackChanges');_0x47d37b['buttonView']['set']({'tooltip':_0xc10fa6,'label':_0xc10fa6,'icon':_0x50eba3}),_0x47d37b['buttonView']['bind']('isOn')['to'](_0x4c5c9b,'value'),_0x47d37b['buttonView']['on']('execute',()=>{_0x4c5c9b['execute'](),this['editor']['editing']['view']['focus']();}),_0x4fd256(_0x47d37b,_0x3ea001,{'role':'menu'});const _0x180ca3=[];for(const _0x491018 of _0x3ea001)ke(_0x491018)&&_0x180ca3['push'](this['editor']['commands']['get'](_0x491018['model']['commandName']));const _0x4a5148=_0x47d37b['buttonView'];return _0x4a5148['actionView']['unbind']('isEnabled'),_0x4a5148['arrowView']['unbind']('isEnabled'),_0x4a5148['actionView']['bind']('isEnabled')['to'](_0x4c5c9b,'isEnabled'),_0x4a5148['arrowView']['bind']('isEnabled')['toMany'](_0x180ca3,'isEnabled',(..._0x5423bc)=>_0x5423bc['some'](_0x5ea85e=>_0x5ea85e)),_0x47d37b['on']('execute',_0x1de91a=>{this['editor']['execute'](_0x1de91a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x47d37b;}['_createMenuBarMenu'](_0x377566,_0x317cfc,_0x3ea985){const _0x5cdead=new _0x331706(_0x377566),_0x42f29f=this['editor']['commands']['get']('trackChanges');_0x5cdead['buttonView']['set']({'label':_0x3ea985,'icon':_0x50eba3});const _0x3240c6=new _0x43292a(_0x377566);for(const _0x3c8af5 of _0x317cfc){if('separator'==_0x3c8af5['type']){_0x3240c6['items']['add'](new _0x5af358(_0x377566));continue;}const _0x34ca3b=new _0x468583(_0x377566,_0x5cdead),_0x481d25=new _0x3067f9(_0x377566),_0x1e1a84=_0x3c8af5['model'];_0x481d25['bind'](...Object['keys'](_0x1e1a84))['to'](_0x1e1a84),_0x481d25['delegate']('execute')['to'](_0x5cdead),_0x481d25['on']('execute',()=>{this['editor']['execute'](_0x1e1a84['commandName']),this['editor']['editing']['view']['focus']();}),_0x34ca3b['children']['add'](_0x481d25),_0x3240c6['items']['add'](_0x34ca3b);}return _0x5cdead['bind']('isEnabled')['to'](_0x42f29f,'isEnabled'),_0x5cdead['panelView']['children']['add'](_0x3240c6),_0x5cdead;}['_initializeController'](_0x5906c7){const _0x5a60c0=this['editor'],_0x1538cb=_0x5a60c0['config'],_0x53c94c=_0x5a60c0['plugins']['get']('Annotations'),_0x3144d4=_0x5a60c0['plugins']['get']('CommentsRepository'),_0x347b34=_0x5a60c0['plugins']['get']('EditorAnnotations'),_0x56c3ea=_0x5a60c0['plugins']['get'](_0x327c0e)['me'],_0x66050b=_0x1538cb['get']('trackChanges')['SuggestionThreadView'],_0x3f0ac0=_0x1538cb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x334ed8,CommentThreadInputView:_0x3bdd9e}=_0x5a60c0['plugins']['get']('CommentsUI');let _0x46caa4,_0x496bf5,_0x475e85;this['_annotationViews']['has'](_0x5906c7['id'])?(_0x496bf5=this['_annotationViews']['get'](_0x5906c7['id']),_0x46caa4=_0x496bf5['mainView']):(_0x46caa4=new _0x66050b(_0x5a60c0['locale'],_0x5906c7,_0x56c3ea,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1538cb['get']('comments.editorConfig'),'licenseKey':_0x1538cb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1538cb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1538cb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1538cb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5e9250(_0x1538cb['get']('locale'),_0x5a60c0['locale']),'CommentView':_0x1538cb['get']('comments')['CommentView'],'CommentsListView':_0x334ed8,'CommentThreadInputView':_0x3bdd9e,'SuggestionView':_0x3f0ac0}),_0x46caa4['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a60c0['editing']['view']['focus']();}),_0x46caa4['suggestionView']['discardButton']['on']('execute',()=>{_0x5a60c0['editing']['view']['focus']();}),_0x496bf5=_0x53c94c['createAnnotationView'](this['editor']['locale'],_0x46caa4),_0x496bf5['bind']('isDirty')['to'](_0x46caa4,'isDirty'),_0x496bf5['bind']('length')['to'](_0x46caa4),_0x496bf5['bind']('type')['to'](_0x46caa4,'type',_0x206f7c=>'suggestion-'+_0x206f7c),_0x46caa4['on']('escape',()=>{_0x475e85['fire']('escape');}),this['_annotationViews']['set'](_0x5906c7['id'],_0x496bf5));const _0x38b536=_0x3144d4['createCommentThreadController'](_0x5906c7['commentThread'],_0x46caa4),_0x274c2e=new pe(_0x5a60c0,_0x5906c7,_0x46caa4,_0x38b536),_0x5aa15e=_0x5906c7['getAllAdjacentSuggestions']()['filter'](_0x266944=>_0x266944['isInContent']);_0x46caa4['descriptionParts']=_0x5a60c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5aa15e),this['_suggestionToController']['set'](_0x5906c7,_0x274c2e),this['_viewToController']['set'](_0x46caa4,_0x274c2e),_0x475e85=_0x53c94c['createAnnotation']({'view':_0x496bf5,'target':()=>{const _0x8d5e1f=[],_0x24b470=_0x5906c7['getAllAdjacentSuggestions']()['filter'](_0x574630=>_0x574630['isInContent']);for(const _0x1bb28d of _0x24b470)_0x8d5e1f['push'](..._0x1bb28d['getMarkers']());return _0x39b2e(_0x5a60c0['editing'],_0x8d5e1f);},'type':()=>'suggestion-'+_0x274c2e['view']['type']}),_0x3144d4['_bindAnnotationToEditors'](_0x46caa4,_0x475e85),_0x53c94c['add'](_0x475e85),_0x347b34['registerAnnotation'](_0x475e85);}['_destroyController'](_0x21f590){const _0x4c86f9=this['editor']['plugins']['get']('CommentsRepository'),_0x270711=this['editor']['plugins']['get']('Annotations'),_0x21cbe6=this['_suggestionToController']['get'](_0x21f590),_0x53fb0c=_0x21cbe6['view'],_0x4ec10f=_0x270711['getByInnerView'](_0x53fb0c);_0x4c86f9['_unbindEditors'](_0x53fb0c),_0x4ec10f&&_0x270711['remove'](_0x4ec10f),this['_suggestionToController']['delete'](_0x21f590),this['_viewToController']['delete'](_0x53fb0c),_0x21cbe6['destroy']();}['_updateController'](_0xd9e7a){if(!_0xd9e7a['isInContent']||!this['_suggestionToController']['has'](_0xd9e7a))return;const _0x1c9dcc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x313772=this['_suggestionToController']['get'](_0xd9e7a),_0x5b1d1f=_0xd9e7a['getAllAdjacentSuggestions']();_0x313772['view']['descriptionParts']=_0x1c9dcc['descriptionFactory']['getDescriptions'](_0x5b1d1f);}['destroy'](){for(const _0x3d9b5a of this['_suggestionToController']['keys']())this['_destroyController'](_0x3d9b5a);for(const _0x5093ff of this['_annotationViews']['values']())_0x5093ff['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x143579){return'model'in _0x143579;}class k extends _0x5543a6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x34f9fe){this['editor']['plugins']['get'](p)['adapter']=_0x34f9fe;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2ec955){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2ec955);}['getSuggestions']({skipNotAttached:_0x2d4ca9=!0x1,toJSON:_0x157986=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2d4ca9,'toJSON':_0x157986});}['getSuggestion'](_0x5c2981){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5c2981);}}const w=['Pagination'];class T extends _0x5543a6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3dd920=this['editor'];if(_0x3dd920['config']['define']('trackChangesData.editorCreator',_0x1ed0b4=>{const _0x12b77d=_0x3dd920['model']['document']['getRootNames']()['reduce']((_0xdb2c72,_0x26bd45)=>(_0xdb2c72[_0x26bd45]='',_0xdb2c72),{});return _0x3dd920['constructor']['create'](_0x12b77d,_0x1ed0b4);}),'function'!=typeof _0x3dd920['config']['get']('trackChangesData')['editorCreator'])throw new _0x4f581a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x15a6da){return N(this['editor'],!0x0,_0x15a6da);}['getDataWithDiscardedSuggestions'](_0x12321b){return N(this['editor'],!0x1,_0x12321b);}}class D extends _0x5543a6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f26c1){function _0x551308(_0x4a87d2){return _0x4a87d2['map'](_0x288cc1=>String['fromCharCode'](_0x288cc1))['join']('');}super(_0x1f26c1),this['result']='end',_0x1f26c1[_0x551308([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x551308([0x76,0x69,0x65,0x77])][_0x551308([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x551308([0x61,0x75,0x74,0x6f]),_0x1f26c1[_0x551308([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x551308([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x551308([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x551308([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x551308([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(_0x4f7d74){return void 0x0!==_0x4f7d74['getRootsAttributes'];}async function N(_0x18d99a,_0x5b80b7,_0x3f8618){const _0x365662=_0x40a73e(_0x18d99a,w);_0x365662['plugins']['push'](p,D),_0x365662['rootsAttributes']=Ge(_0x18d99a)?_0x18d99a['getRootsAttributes']():void 0x0;const _0x1de26f=document['createDocumentFragment'](),_0x8758b3=_0x18d99a['config']['get']('trackChangesData')['editorCreator'],_0x2c36=await _0x8758b3(_0x365662,()=>function(_0x32db9f){const _0x10cb1c=document['createElement']('div');return _0x32db9f['appendChild'](_0x10cb1c),_0x10cb1c;}(_0x1de26f));!function(_0x5eef53,_0x2492f9){const _0x264143=_0x5eef53['model']['document']['getRootNames']()['reduce']((_0x412db5,_0x22e6d9)=>(_0x412db5[_0x22e6d9]=_0x5eef53['data']['get']({'rootName':_0x22e6d9}),_0x412db5),{}),_0x1156c5=_0x5eef53['plugins']['get']('Users')['users']['map'](_0x531e2d=>({'id':_0x531e2d['id'],'name':_0x531e2d['name']})),_0x1a87ea=_0x5eef53['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x37036e=_0x5eef53['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c6756=_0x2492f9['plugins']['get']('Users'),_0x59d15e=_0x2492f9['plugins']['get']('TrackChangesEditing'),_0x52f659=_0x2492f9['plugins']['get']('CommentsRepository');for(const _0x19f39d of _0x52f659['getCommentThreads']())_0x19f39d['remove']();for(const _0x12eaa0 of _0x1156c5)_0x5c6756['getUser'](_0x12eaa0['id'])||_0x5c6756['addUser'](_0x12eaa0);_0x5c6756['me']||_0x5c6756['useAnonymousUser']();for(const _0x3f038c of _0x37036e)_0x52f659['addCommentThread'](_0x3f038c);for(const _0x2ef83b of _0x1a87ea)_0x59d15e['addSuggestionData'](_0x2ef83b);_0x2492f9['data']['set'](_0x264143);}(_0x18d99a,_0x2c36),_0x2c36['execute'](_0x5b80b7?'acceptAllSuggestions':'discardAllSuggestions');const _0x2a78d2=Ge(_0x2c36)?_0x2c36['getFullData'](_0x3f8618):_0x2c36['data']['get'](_0x3f8618);return await _0x2c36['destroy'](),_0x2a78d2;}class Me extends _0x6ca1cc{['options'];constructor(_0x2b220c,_0x13bfac){super(_0x2b220c),this['options']=_0x13bfac,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'](_0x10228d,_0x31588e){if(!this['element'])return;const _0x1d2dc6=[];for(const [_0x55743c,_0x3861c0]of _0x10228d){const _0x52487f=document['createElement']('div');_0x52487f['setAttribute']('data-ck-root-name',_0x55743c),_0x52487f['className']=_0x3861c0['classes']+'\x20ck-track-changes-preview__root-container',_0x52487f['innerHTML']=_0x3861c0['content'],_0x1d2dc6['push'](_0x52487f);}_0x31588e(this['element'],_0x1d2dc6),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xf75a64{constructor(_0x43c8d8){super(_0x43c8d8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x20cdf9=this['editor'],_0xc0a7e4=_0x20cdf9['locale'],_0x2a6b51=_0x20cdf9['plugins']['get']('Dialog');let _0x5cf7c7;const _0x4e73bc=function(_0x426247){const _0x4ea259={};if('editables'in _0x426247['ui']['view']){for(const [_0x4282bd,_0x276d17]of Object['entries'](_0x426247['ui']['view']['editables']))_0x4ea259[_0x4282bd]=_0x276d17['element'];}else _0x4ea259[_0x426247['model']['document']['getRootNames']()[0x0]]=_0x426247['ui']['view']['editable']['element'];return _0x4ea259;}(_0x20cdf9),_0x3a7cc5=function(_0x11ed5e){let _0x29fd3a=0x0;for(const _0x2870cd of Object['values'](_0x11ed5e))_0x29fd3a=Math['max'](_0x29fd3a,_0x2870cd['getBoundingClientRect']()['width']);let _0x34a616=0x0;for(const _0x43a75d of Object['values'](_0x11ed5e))_0x34a616+=_0x43a75d['getBoundingClientRect']()['height'];const _0x290dda=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1de592=Math['min'](_0x34a616,_0x290dda);return{'width':_0x29fd3a,'height':_0x1de592};}(_0x4e73bc);_0x2a6b51['show']({'id':'finalContentPreview','title':c(_0xc0a7e4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xc0a7e4,{'dialogRects':_0x3a7cc5}),'onHide':()=>{_0x5cf7c7['detachFromDom']();},'onShow':()=>{_0x20cdf9['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x121607=>{const _0x54501c=this['_standarizeRootsData'](_0x121607,_0x20cdf9,_0x4e73bc);_0x2a6b51['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54501c,_0x20cdf9['config']['get']('trackChanges.preview.renderFunction'));}),_0x5cf7c7=new _0x1f385a(_0xc0a7e4,[_0x2a6b51['view']]),_0x5cf7c7['attachToDom'](),_0x5cf7c7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x20cdf9['once']('destroy',()=>{_0x5cf7c7['detachFromDom']();});const _0x361c8d=_0x2a6b51['view']['headerView']['class'];_0x2a6b51['view']['headerView']['class']=_0x361c8d?_0x361c8d+'\x20ck-reset_all':'ck-reset_all',_0x2a6b51['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2a6b51['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2cc109=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x46e9b6=_0x2cc109['previewMode'],_0x1a51ed={};if('$labels'===_0x46e9b6){for(const _0x597d25 of _0x2cc109['getMergeFieldsIds']())_0x1a51ed[_0x597d25]=_0x2cc109['getLabel'](_0x597d25)||_0x597d25;}else{const _0x1c169c='$defaultValues'===_0x46e9b6?_0x2cc109['getDefaultValues']():_0x2cc109['getDataSetValues'](_0x46e9b6,!0x0);for(const _0xa0e4d7 of Object['entries'](_0x1c169c)){const [_0x3f7100,_0x183674]=_0xa0e4d7;_0x1a51ed[_0x3f7100]=null!==_0x183674?_0x183674:_0x2cc109['getLabel'](_0x3f7100)||_0x3f7100;}}return{'mergeFieldsData':_0x1a51ed};}['_standarizeRootsData'](_0x325e9e,_0x59246,_0x5d00c4){let _0x4fe1fa;if('string'==typeof _0x325e9e){const _0x543654=_0x59246['model']['document']['getRootNames']()[0x0];_0x4fe1fa={[_0x543654]:_0x325e9e};}else _0x4fe1fa=_0x325e9e;const _0x543808=this['_fixMediaEmbeds'](_0x4fe1fa,_0x59246),_0x47011a=function(_0x546ef1,_0x2bdb68){for(const [_0x2e6c4b,_0x1d02c3]of _0x546ef1)_0x1d02c3['classes']=_0x2bdb68[_0x2e6c4b]['classList']['value']['replace']('ck-focused','');return _0x546ef1;}(this['_sortRoots'](_0x59246)['reduce']((_0x4d0361,_0x2a1628)=>(_0x4d0361['push']([_0x2a1628,{'content':_0x543808[_0x2a1628],'classes':''}]),_0x4d0361),[]),_0x5d00c4);return _0x47011a;}['_fixMediaEmbeds'](_0x5a839d,_0x4aaa0a){if(!_0x4aaa0a['plugins']['has']('MediaEmbedEditing'))return _0x5a839d;const _0x5c9469=_0x4aaa0a['plugins']['get']('MediaEmbedEditing');for(const [_0x30cdae,_0x574d1f]of Object['entries'](_0x5a839d)){const _0x3df166=document['createElement']('div');_0x3df166['innerHTML']=_0x574d1f,(_0x3df166['querySelectorAll']('figure.media')['forEach'](_0x331c26=>{const _0x15dc60=_0x331c26['querySelector']('oembed');if(_0x15dc60){const _0x3b8329=_0x15dc60['getAttribute']('url');if(_0x3b8329){const _0x29ef54=_0x5c9469['registry']['getMediaViewElement'](new _0x45bb38(_0x4aaa0a['editing']['view']['document']),_0x3b8329,{'elementName':'','renderForEditingView':!0x0}),_0x10dd77=document['createElement']('div');_0x10dd77['classList']['add']('ck-media__wrapper'),_0x29ef54['render'](_0x10dd77,_0x4aaa0a['editing']['view']['domConverter']),_0x15dc60['replaceWith'](_0x10dd77);}}}),_0x5a839d[_0x30cdae]=_0x3df166['innerHTML']);}return _0x5a839d;}['_sortRoots'](_0x1a00ed){if(!function(_0x58fa87){return void 0x0!==_0x58fa87['getRootsAttributes'];}(_0x1a00ed))return _0x1a00ed['model']['document']['getRootNames']();const _0x3dc741=[],_0xce894d=new Map();for(const _0x4b702b of _0x1a00ed['model']['document']['getRootNames']()){const _0x3690a7=_0x1a00ed['editing']['view']['getDomRoot'](_0x4b702b)['getClientRects']()['item'](0x0);_0x3dc741['push'](_0x4b702b),_0xce894d['set'](_0x4b702b,_0x3690a7);}return _0x3dc741['sort']((_0x5f5b1e,_0x39b421)=>{const _0x5c51fc=_0xce894d['get'](_0x5f5b1e),_0x498fb5=_0xce894d['get'](_0x39b421);return _0x5c51fc['y']-_0x498fb5['y']||_0x5c51fc['x']-_0x498fb5['x'];}),_0x3dc741;}}class te extends _0x5543a6{static get['requires'](){return[T,_0x1ea185];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x485b7f){super(_0x485b7f),_0x485b7f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x485b7f['config']['define']('trackChanges.preview.renderFunction',(_0x223e2a,_0x28fd73)=>{for(const _0x22978f of _0x28fd73)_0x223e2a['appendChild'](_0x22978f);});}}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 _0x5de1fa,Plugin as _0x45b538,PendingActions as _0x4fd3ff}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xa3b19b,ObservableMixin as _0x2e3545,uid as _0x81f967,priorities as _0x9edb2b,insertToPriorityArray as _0x56eae3,logWarning as _0x2b975d,getEnvKeystrokeText as _0x39aee3,FocusTracker as _0x4b530a,KeystrokeHandler as _0x3de15a,Collection as _0x15d1c8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x47a9ad,IconCancel as _0x4ad96b,IconTrackChanges as _0x414a82}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x38aa7a,View as _0x19e619,ViewCollection as _0x5c9875,FocusCycler as _0x364ffc,ViewModel as _0x59067c,createDropdown as _0x4dfa00,SplitButtonView as _0x1b3e50,addListToDropdown as _0x4be2ab,MenuBarMenuView as _0x34b193,MenuBarMenuListView as _0x5575cb,ListSeparatorView as _0x24a4cb,MenuBarMenuListItemView as _0x4a615a,MenuBarMenuListItemButtonView as _0x230962,BodyCollection as _0x58e48f,Dialog as _0x433000}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x22861c,hashObject as _0x3c9873,surroundingMarkersDetector as _0x2ef33a,FOCUS_ANNOTATION_KEYSTROKE as _0x5ca91b,AriaDescriptionView as _0x5b6415,setupThreadKeyboardNavigation as _0x59c28d,trimHtml as ti,UserView as _0x5882fa,LateFocusButtonView as _0x320bd3,getDateTimeFormatter as _0x589de0,getAllMarkersDomElementsSorted as _0xde8d0f,sanitizeEditorConfig as _0x4ce18b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2b43a4,LiveRange as _0x488912,LivePosition as _0x1a84d0,DowncastWriter as _0x22135e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2b3a76,toWidget as _0x247ec6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xae8535,set as _0x59b2b2,isEqual as _0x2dc7e4,unset as _0x1da309,omit as Ft}from'es-toolkit/compat';import{Delete as _0x1c0557,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x13f2ff}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2461be}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5de1fa{['_enabledCommands'];constructor(_0xa25072,_0x1a3ee7){super(_0xa25072),this['_enabledCommands']=_0x1a3ee7,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 _0x29d685 of this['editor']['commands']['commands']())_0x29d685['affectsData']&&!this['_enabledCommands']['has'](_0x29d685)&&_0x29d685['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x410542 of this['editor']['commands']['commands']())_0x410542['affectsData']&&!this['_enabledCommands']['has'](_0x410542)&&_0x410542['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x5de1fa{['_suggestions'];constructor(_0x4c0f48,_0x16d63b){super(_0x4c0f48),this['_suggestions']=_0x16d63b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x456540){const _0x13372b=this['_suggestions']['get'](_0x456540);if(!_0x13372b)throw new _0xa3b19b('track-changes-accept-suggestion-not-found',this);const _0x29b38f=_0x13372b['getRanges']();this['editor']['model']['canEditAt'](_0x29b38f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x13372b);}}class R extends _0x5de1fa{['_suggestions'];constructor(_0x1f586c,_0x1a2198){super(_0x1f586c),this['_suggestions']=_0x1a2198,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x582b4f){const _0x1452ae=this['_suggestions']['get'](_0x582b4f);if(!_0x1452ae)throw new _0xa3b19b('track-changes-discard-suggestion-not-found',this);const _0xba6808=_0x1452ae['getRanges']();this['editor']['model']['canEditAt'](_0xba6808)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1452ae);}}function ls(_0x5b2e96,_0x578a93){let _0x54c8bb='';return _0x54c8bb+=_0x5b2e96['split']('*')['map']((_0x2417a3,_0x426e45)=>_0x426e45%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2417a3)+'</span>':nn(_0x2417a3))['join'](''),_0x578a93&&(_0x54c8bb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x578a93['value']+'\x22\x20title=\x22'+_0x578a93['title']+'\x22></span>'),_0x54c8bb;}function nn(_0x598094){const _0x28e1ac=document['createElement']('span');return _0x28e1ac['innerText']=_0x598094,_0x28e1ac['innerHTML'];}function ts(_0x29bffd){return _0x29bffd['sort']((_0x22f34c,_0x33ad0b)=>'deletion'==_0x22f34c['type']&&'deletion'!=_0x33ad0b['type']?-0x1:'deletion'!=_0x22f34c['type']&&'deletion'==_0x33ad0b['type']?0x1:0x0);}function to(_0x457d76,_0x7fe1b8){let _0x25e588,_0x4ef779=0x0;const _0x40d60d=[],_0x5814f3=_0x7fe1b8['schema'];for(;_0x4ef779<_0x457d76['length'];){const _0x40fe91=_0x457d76[_0x4ef779],_0x4bb11b=_0x457d76[_0x4ef779+0x1];_0x25e588||(_0x25e588=_0x7fe1b8['createPositionBefore'](_0x40fe91)),on(_0x7fe1b8,_0x40fe91,_0x4bb11b)||(_0x40d60d['push'](_0x7fe1b8['createRange'](_0x25e588,_0x5814f3['isObject'](_0x40fe91)?_0x7fe1b8['createPositionAfter'](_0x40fe91):_0x7fe1b8['createPositionAt'](_0x40fe91,'end'))),_0x25e588=null),_0x4ef779++;}return _0x40d60d;}function on(_0x55c84b,_0x2109f1,_0x5747c2){if(!_0x5747c2)return!0x1;const _0xdb08de=_0x55c84b['createPositionAfter'](_0x2109f1),_0x4c5908=_0x55c84b['createPositionBefore'](_0x5747c2);return _0xdb08de['isTouching'](_0x4c5908);}function rs(_0x4ba1c6,_0x2ceb7b,_0x3d3175){for(;_0x3d3175['length'];){const _0x2d1e44=_0x3d3175['splice'](0x0,0x64);_0x4ba1c6['change'](()=>{for(const _0x498d2f of _0x2d1e44)_0x498d2f['isInContent']&&_0x2ceb7b['execute'](_0x498d2f['id']);});}}class x extends _0x5de1fa{['_command'];['_suggestions'];constructor(_0x1ed285,_0x33869a,_0x2b2e8b){super(_0x1ed285),this['_command']=_0x33869a,this['_suggestions']=_0x2b2e8b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d32a8=Array['from'](this['_suggestions']['values']())['some'](_0x2f1598=>_0x2f1598['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4d32a8;}['execute'](){const _0x1b7db6=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2062dd of _0x1b7db6){const _0x4ae968=_0x2062dd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4ae968))return;}rs(this['editor']['model'],this['_command'],_0x1b7db6);}}class E extends _0x5de1fa{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x13571f,_0x5c7fc7,_0x34a6bb){super(_0x13571f),this['_command']=_0x5c7fc7,this['_suggestions']=_0x34a6bb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x6c2189=this['editor']['model']['document']['selection'],_0x2427ef=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x54f9a4,_0x1ae6d2){const _0x117403=Array['from'](_0x54f9a4['getRanges']()),_0x24e0fc=new Set();for(const _0x3e73b0 of _0x1ae6d2)if(_0x3e73b0['isInContent']){for(const _0x3321ba of _0x117403)for(const _0x4f200b of _0x3e73b0['getRanges']())(_0x3321ba['isIntersecting'](_0x4f200b)||_0x54f9a4['isCollapsed']&&!_0x3e73b0['isMultiRange']&&_0x3e73b0['next']&&_0x4f200b['end']['isTouching'](_0x3321ba['start']))&&_0x24e0fc['add'](_0x3e73b0);}return _0x24e0fc;}(_0x6c2189,_0x2427ef),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xc69741=ts(Array['from'](this['_selectedSuggestions']));for(const _0x34fe9d of _0xc69741){const _0x6f56eb=_0x34fe9d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6f56eb))return;}rs(this['editor']['model'],this['_command'],_0xc69741);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x2e3545(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3c78b5,_0x31dce5){super(),this['id']=_0x31dce5['id'],this['type']=_0x31dce5['type'],this['subType']=_0x31dce5['subType']||null,this['author']=_0x31dce5['author'],this['creator']=_0x31dce5['creator']||_0x31dce5['author'],this['isExternal']=Boolean(_0x31dce5['attributes']&&_0x31dce5['attributes']['@external']),this['data']=null,this['_model']=_0x3c78b5,this['_onAccept']=_0x31dce5['onAccept'],this['_onDiscard']=_0x31dce5['onDiscard'],this['_onAttributesChange']=_0x31dce5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x31dce5['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 _0x3ce158=this;for(;_0x3ce158['previous'];)_0x3ce158=_0x3ce158['previous'];return _0x3ce158;}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'](_0x320622){this['_markerNames']['add'](_0x320622);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x45478e=>this['_model']['markers']['get'](_0x45478e))['filter'](_0x324808=>_0x324808);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x40fdb5=>{for(const _0x38a716 of this['getMarkers']())_0x40fdb5['removeMarker'](_0x38a716);}),this['_markerNames']['clear']();}['removeMarker'](_0xc5be8e){this['_model']['change'](_0x3f86ff=>{_0x3f86ff['removeMarker'](_0xc5be8e);}),this['_markerNames']['delete'](_0xc5be8e);}['addRange'](_0x55e6bf){const _0x38a7b1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x38a7b1),this['_model']['change'](_0x15abef=>{_0x15abef['addMarker'](_0x38a7b1,{'range':_0x55e6bf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1d2998){for(const _0x4db6ce of this['getRanges']())if(_0x4db6ce['isIntersecting'](_0x1d2998))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1def00=>_0x1def00['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x246ac0,_0x5e689e)=>[..._0x246ac0,..._0x5e689e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2bb930=this['getRanges']();if(0x1!=_0x2bb930['length'])return null;const _0x377da7=_0x2bb930[0x0],_0xd3680d=_0x377da7['start']['nodeAfter'],_0x39ea41=_0x377da7['end']['nodeBefore'];return _0xd3680d instanceof _0x2b43a4?_0xd3680d!=_0x39ea41?null:_0xd3680d: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 _0x36f748=[];let _0x100a38=this['head'];for(;_0x100a38;)_0x36f748['push'](_0x100a38),_0x100a38=_0x100a38['next'];return _0x36f748;}['setAttribute'](_0x2b3141,_0xf06f81){const _0x1525d2=_0xae8535(this['attributes']);_0x59b2b2(_0x1525d2,_0x2b3141,_0xf06f81),_0x2dc7e4(_0x1525d2,this['attributes'])||(this['attributes']=_0x1525d2,this['_onAttributesChange'](_0x1525d2));}['removeAttribute'](_0x3993c5){const _0x597a64=_0xae8535(this['attributes']);_0x1da309(_0x597a64,_0x3993c5),_0x2dc7e4(_0x597a64,this['attributes'])||(this['attributes']=_0x597a64,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 _0x81f967()['substr'](0x1,0x5);}}function c(_0x1c01c9,_0x68aaf2,_0x38a1b5){const _0x1ff72c=_0x1c01c9['t'],t=_0x1c01c9['t'];switch(_0x68aaf2){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',_0x38a1b5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x38a1b5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x38a1b5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x38a1b5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x38a1b5);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',_0x38a1b5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x38a1b5);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',_0x38a1b5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x38a1b5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x38a1b5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x38a1b5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x38a1b5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x38a1b5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x38a1b5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x38a1b5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x38a1b5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x38a1b5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x38a1b5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x38a1b5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x38a1b5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x38a1b5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x38a1b5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x38a1b5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x38a1b5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x38a1b5);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'},_0x38a1b5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x38a1b5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x38a1b5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x38a1b5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x38a1b5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x38a1b5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x38a1b5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x38a1b5);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'},_0x38a1b5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x38a1b5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x38a1b5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x38a1b5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x38a1b5);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'},_0x38a1b5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x38a1b5);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'},_0x38a1b5);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'},_0x38a1b5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x38a1b5);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'},_0x38a1b5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x38a1b5);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'},_0x38a1b5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x38a1b5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x38a1b5);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'},_0x38a1b5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x38a1b5);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 _0x1ff72c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x38a1b5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1ff72c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x38a1b5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x38a1b5);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'},_0x38a1b5);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'},_0x38a1b5);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'},_0x38a1b5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x68aaf2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1922da,_0x423794){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1922da,this['_locale']=_0x423794;}['getDescriptions'](_0x5d72b1){const _0xb6fcf9=[],_0x4bbe85=new Set(),_0x4e3976=new Set();for(let _0x4d2b78=0x0;_0x4d2b78<_0x5d72b1['length'];_0x4d2b78++){const _0x38619e=_0x5d72b1[_0x4d2b78];if(!_0x38619e['isInContent'])continue;const _0xab9459=this['_handleCustomCallbackDescription'](_0x38619e);if(_0xab9459){if(null!=_0x38619e['subType']){if(_0x4bbe85['has'](_0x38619e['subType']))continue;_0x4bbe85['add'](_0x38619e['subType']);}_0xb6fcf9['push'](_0xab9459);}else{if('attribute'!=_0x38619e['type'])'insertion'!=_0x38619e['type']&&'deletion'!=_0x38619e['type']||this['_handleInsertRemoveSuggestionDescription'](_0xb6fcf9,_0x38619e,_0x5d72b1[_0x4d2b78+0x1]);else{const _0x301d42=_0x38619e['data']['key'];if(_0x4e3976['has'](_0x301d42))continue;_0x4e3976['add'](_0x38619e['data']['key']),_0x301d42==u?this['_handleRenameSuggestionDescription'](_0xb6fcf9,_0x38619e):this['_handleAttributeSuggestionDescription'](_0xb6fcf9,_0x38619e);}}}return this['_resolveDescriptionItems'](_0xb6fcf9);}['registerDescriptionCallback'](_0x460d91){this['_customCallbacks']['push'](_0x460d91);}['registerElementLabel'](_0x1769dd,_0x37981d,_0x2b4bee=_0x9edb2b['normal']){'function'==typeof _0x1769dd?_0x56eae3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1769dd,'label':_0x37981d,'priority':_0x2b4bee}):this['_itemLabels']['set'](_0x1769dd,_0x37981d);}['registerAttributeLabel'](_0x2c8b6a,_0x3274c0){this['_attributeLabels']['set'](_0x2c8b6a,_0x3274c0);}['getItemLabel'](_0x57aec2,_0x34271a=0x1){let _0x1e1df0;for(const _0x1659e5 of this['_itemLabelsCallbacks'])if(_0x1659e5['matchingCallback'](_0x57aec2)){_0x1e1df0=_0x1659e5['label'];break;}return _0x1e1df0||(_0x1e1df0=this['_itemLabels']['get'](_0x57aec2['name'])),_0x1e1df0?_0x1e1df0(_0x34271a):0x1!==_0x34271a?_0x34271a+'\x20'+_0x57aec2['name']+'s':''+_0x57aec2['name'];}['_addDescriptionItems'](_0x177149,_0x29075e){const _0x4b1a62=_0x29075e['getFirstRange']()['getWalker'](),_0x5c8e7a='insertion'==_0x29075e['type']?'add':'remove';for(const _0x3d0185 of _0x4b1a62){const _0x23d2b5=_0x3d0185['item'],_0x276a6c=_0x177149[_0x177149['length']-0x1];if(_0x23d2b5['is']('$textProxy'))_0x276a6c&&_0x276a6c['type']['indexOf']('Container')>-0x1&&_0x177149['pop'](),_0x276a6c&&'text'==_0x276a6c['type']?_0x276a6c[_0x5c8e7a]+=_0x23d2b5['data']:_0x177149['push']({'type':'text','add':'add'==_0x5c8e7a?_0x23d2b5['data']:'','remove':'remove'==_0x5c8e7a?_0x23d2b5['data']:''});else{if(this['_schema']['isObject'](_0x23d2b5)){const _0x23bd35=_0x23d2b5;if(_0x276a6c&&_0x276a6c['type']['indexOf']('Container')>-0x1&&_0x177149['pop'](),'elementEnd'==_0x3d0185['type'])continue;_0x276a6c&&_0x276a6c['type']==_0x5c8e7a+'Object'&&_0x276a6c['element']['name']==_0x23bd35['name']?_0x276a6c['quantity']++:_0x177149['push']({'type':_0x5c8e7a+'Object','element':_0x23bd35,'quantity':0x1}),_0x4b1a62['skip'](_0x2f3a85=>!('elementEnd'==_0x2f3a85['type']&&_0x2f3a85['item']==_0x23d2b5));}else{if(this['_schema']['checkChild'](_0x23d2b5,'$text')||_0x23d2b5['is']('element','softBreak')){const _0x68d263=_0x23d2b5;if('add'==_0x5c8e7a&&'elementStart'==_0x3d0185['type']||'remove'==_0x5c8e7a&&'elementEnd'==_0x3d0185['type'])continue;if(_0x276a6c&&-0x1==_0x276a6c['type']['indexOf']('Container')){'text'==_0x276a6c['type']&&(_0x276a6c[_0x5c8e7a]+='\x0a');continue;}let _0x3c9464;if(_0x3c9464='add'==_0x5c8e7a?_0x68d263['nextSibling']&&!this['_schema']['isObject'](_0x68d263['nextSibling'])?_0x68d263['nextSibling']:null:_0x68d263['previousSibling']&&!this['_schema']['isObject'](_0x68d263['previousSibling'])?_0x68d263['previousSibling']:null,_0x68d263['isEmpty']||_0x3c9464&&_0x3c9464['isEmpty']){const _0x29454b=_0x3c9464&&_0x3c9464['isEmpty']?_0x3c9464:_0x68d263;_0x276a6c&&_0x276a6c['type']==_0x5c8e7a+'EmptyContainer'&&_0x276a6c['element']['name']==_0x29454b['name']?_0x276a6c['quantity']++:_0x177149['push']({'type':_0x5c8e7a+'EmptyContainer','element':_0x29454b,'quantity':0x1});}else _0x177149['push']({'type':_0x5c8e7a+'Container','element':_0x68d263});}}}}}['_resolveDescriptionItems'](_0x44d206){const _0x3f0e14=this['_locale'],_0x39e67a=[],_0x36d9eb=[],_0x571008=[];for(const _0x41d1f8 of _0x44d206)switch(_0x41d1f8['type']){case'text':if(_0x41d1f8['add']=_0x41d1f8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x41d1f8['remove']=_0x41d1f8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x41d1f8['add']&&''!=_0x41d1f8['remove']){_0x39e67a['push']({'type':'replace','content':c(_0x3f0e14,'REPLACE_TEXT',['\x22'+_0x41d1f8['remove']+'\x22','\x22'+_0x41d1f8['add']+'\x22'])});continue;}if(null!=_0x41d1f8['add']['match'](/^ +$/)){_0x39e67a['push']({'type':'insertion','content':c(_0x3f0e14,'*Insert:*\x20%0',c(_0x3f0e14,'ELEMENT_SPACE',_0x41d1f8['add']['length']))});continue;}if(null!=_0x41d1f8['remove']['match'](/^ +$/)){_0x39e67a['push']({'type':'deletion','content':c(_0x3f0e14,'*Remove:*\x20%0',c(_0x3f0e14,'ELEMENT_SPACE',_0x41d1f8['remove']['length']))});continue;}if(''!=_0x41d1f8['add']){_0x39e67a['push']({'type':'insertion','content':c(_0x3f0e14,'*Insert:*\x20%0','\x22'+_0x41d1f8['add']+'\x22')});continue;}_0x39e67a['push']({'type':'deletion','content':c(_0x3f0e14,'*Remove:*\x20%0','\x22'+_0x41d1f8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x39e67a['push']({'type':'insertion','content':c(_0x3f0e14,'*Insert:*\x20%0',this['getItemLabel'](_0x41d1f8['element'],_0x41d1f8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x39e67a['push']({'type':'deletion','content':c(_0x3f0e14,'*Remove:*\x20%0',this['getItemLabel'](_0x41d1f8['element'],_0x41d1f8['quantity']))});continue;case'addContainer':_0x39e67a['push']({'type':'insertion','content':c(_0x3f0e14,'*Split:*\x20%0',this['getItemLabel'](_0x41d1f8['element'],_0x41d1f8['quantity']))});continue;case'removeContainer':_0x39e67a['push']({'type':'deletion','content':c(_0x3f0e14,'*Merge:*\x20%0',this['getItemLabel'](_0x41d1f8['element'],_0x41d1f8['quantity']))});continue;case'addFormat':_0x36d9eb['push'](_0x41d1f8['key']);continue;case'removeFormat':_0x571008['push'](_0x41d1f8['key']);continue;default:_0x39e67a['push'](_0x41d1f8);}if(_0x36d9eb['length']){const _0x45c1ad=_0x36d9eb['map'](_0x13518c=>this['_attributeLabels']['has'](_0x13518c)?this['_attributeLabels']['get'](_0x13518c):_0x13518c)['join'](',\x20');_0x39e67a['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x45c1ad)});}if(_0x571008['length']){const _0x46c904=_0x571008['map'](_0xa46f13=>this['_attributeLabels']['has'](_0xa46f13)?this['_attributeLabels']['get'](_0xa46f13):_0xa46f13)['join'](',\x20');_0x39e67a['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x46c904)});}return _0x39e67a;}['_handleCustomCallbackDescription'](_0x2f1b89){for(const _0x3fd3e0 of this['_customCallbacks']){const _0x53e07a=_0x3fd3e0(_0x2f1b89);if(_0x53e07a&&'type'in _0x53e07a)return _0x53e07a;}}['_handleAttributeSuggestionDescription'](_0x63a8bc,_0x4a51ab){const _0x39673d=_0x4a51ab['data'],_0x432fbf=void 0x0===_0x39673d['newValue']?'removeFormat':'addFormat';_0x63a8bc['push']({'type':_0x432fbf,'key':_0x39673d['key']});}['_handleRenameSuggestionDescription'](_0x51d9da,_0x25ee03){_0x51d9da['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x25ee03['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2e5ba3,_0x2df991,_0x11db73){if(this['_addDescriptionItems'](_0x2e5ba3,_0x2df991),_0x11db73&&_0x11db73['getFirstRange']()&&!_0x2df991['getFirstRange']()['end']['isEqual'](_0x11db73['getFirstRange']()['start'])){const _0x5412e4=_0x2e5ba3[_0x2e5ba3['length']-0x1],_0x2501fb='insertion'==_0x2df991['type']?'add':'remove';_0x5412e4&&'text'==_0x5412e4['type']&&(_0x5412e4[_0x2501fb]+='\x0a');}}}class U extends _0x45b538{['afterInit'](){const _0x4840f0=this['editor'],_0x3531e1=_0x4840f0['plugins']['get']('TrackChangesEditing');_0x4840f0['commands']['get']('showAIAssistant')&&_0x3531e1['enableCommand']('showAIAssistant');}}class V extends _0x45b538{['afterInit'](){const _0x1c6459=this['editor'],_0x321727=_0x1c6459['locale'];if(!_0x1c6459['plugins']['has']('AlignmentEditing'))return;const _0x70d2a2=_0x1c6459['plugins']['get']('TrackChangesEditing');_0x70d2a2['enableDefaultAttributesIntegration']('alignment'),_0x70d2a2['registerBlockAttribute']('alignment'),_0x70d2a2['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x321727,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf2056f=this['editor'],_0x1514d9=_0xf2056f['locale'];_0xf2056f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x773446=>{if('formatBlock'!=_0x773446['type'])return;const {data:_0x2d76b8}=_0x773446;if(_0x2d76b8&&'alignment'==_0x2d76b8['commandName']){const _0xbea20a=_0x2d76b8['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1514d9,'*Format:*\x20%0',function(_0x3a68a7){switch(_0x3a68a7){case'left':return c(_0x1514d9,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1514d9,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1514d9,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1514d9,'FORMAT_JUSTIFY_TEXT');}}(_0xbea20a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x45b538{['afterInit'](){const _0x47c5f7=this['editor'],_0x3dccae=_0x47c5f7['plugins']['get']('TrackChangesEditing'),_0xf84a2e=_0x47c5f7['locale'];for(const _0x291d7e of Zt){if(!_0x47c5f7['plugins']['has'](_0x291d7e))continue;const _0x3449ff=_0x291d7e['slice'](0x0,-0x7)['toLowerCase'](),_0x2f2116='FORMAT_'+_0x3449ff['toUpperCase']();_0x3dccae['enableDefaultAttributesIntegration'](_0x3449ff),_0x3dccae['registerInlineAttribute'](_0x3449ff),_0x3dccae['descriptionFactory']['registerAttributeLabel'](_0x3449ff,c(_0xf84a2e,_0x2f2116));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a865e=this['editor'],_0x2a36e7=_0x4a865e['locale'],_0x1a468d=_0x4a865e['plugins']['get']('TrackChangesEditing');function _0x3f4aa9(_0x263e35,_0x4a2ef7){_0x1a468d['descriptionFactory']['registerDescriptionCallback'](_0x5908cf=>{if('formatInline'!=_0x5908cf['type'])return;const {data:_0x50a1f2}=_0x5908cf;return _0x50a1f2&&_0x50a1f2['commandName']===_0x263e35?_0x50a1f2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2a36e7,'*Format:*\x20%0',_0x4a2ef7)}:{'type':'format','content':c(_0x2a36e7,'*Remove\x20format:*\x20%0',_0x4a2ef7)}:void 0x0;});}_0x3f4aa9('bold',c(_0x2a36e7,'FORMAT_BOLD')),_0x3f4aa9('italic',c(_0x2a36e7,'FORMAT_ITALIC')),_0x3f4aa9('underline',c(_0x2a36e7,'FORMAT_UNDERLINE')),_0x3f4aa9('code',c(_0x2a36e7,'FORMAT_CODE')),_0x3f4aa9('strikethrough',c(_0x2a36e7,'FORMAT_STRIKETHROUGH')),_0x3f4aa9('subscript',c(_0x2a36e7,'FORMAT_SUBSCRIPT')),_0x3f4aa9('superscript',c(_0x2a36e7,'FORMAT_SUPERSCRIPT'));}}class G extends _0x45b538{['afterInit'](){const _0x2e9217=this['editor'],_0x58f5f8=_0x2e9217['locale'];if(!_0x2e9217['plugins']['has']('BlockQuoteEditing'))return;const _0x293d10=_0x2e9217['plugins']['get']('TrackChangesEditing'),_0x408cf7=this['editor']['commands']['get']('blockQuote');_0x293d10['enableCommand']('blockQuote',(_0x3bc5c0,_0x32d161={})=>{const _0x1b432e=this['editor']['model']['document']['selection'],_0x5b3247=_0x32d161&&void 0x0!==_0x32d161['forceValue']?_0x32d161['forceValue']:!_0x408cf7['value'];let _0x2dadb3=[];if(_0x5b3247){const _0x5c5386=Array['from'](_0x1b432e['getSelectedBlocks']())['filter'](_0x500e46=>oo(_0x500e46)||function(_0x434b22,_0x231998){const _0x1ac58b=_0x231998['checkChild'](_0x434b22['parent'],'blockQuote'),_0x35b3c0=_0x231998['checkChild'](['$root','blockQuote'],_0x434b22);return _0x1ac58b&&_0x35b3c0;}(_0x500e46,this['editor']['model']['schema']));_0x2dadb3=to(_0x5c5386,_0x2e9217['model']);}else{const _0x178ea7=Array['from'](_0x1b432e['getSelectedBlocks']())['filter'](_0x29b241=>oo(_0x29b241));_0x2dadb3=to(_0x178ea7,_0x2e9217['model']);}_0x2e9217['model']['change'](()=>{for(const _0x2665b4 of _0x2dadb3)_0x293d10['markBlockFormat'](_0x2665b4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b3247}]});});}),_0x293d10['descriptionFactory']['registerDescriptionCallback'](_0x4e6110=>{const {data:_0x4f88a1}=_0x4e6110;if(_0x4f88a1&&'blockQuote'==_0x4f88a1['commandName']){const _0x173055=c(_0x58f5f8,'ELEMENT_BLOCK_QUOTE');return _0x4f88a1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x58f5f8,'*Set\x20format:*\x20%0',_0x173055)}:{'type':'format','content':c(_0x58f5f8,'*Remove\x20format:*\x20%0',_0x173055)};}});}}function oo(_0x3faab5){return'blockQuote'==_0x3faab5['parent']['name'];}class L extends _0x45b538{['afterInit'](){const _0x228cf8=this['editor'],_0x29670b=_0x228cf8['locale'],_0x45211b=_0x228cf8['plugins']['get']('TrackChangesEditing');_0x228cf8['plugins']['has']('BookmarkEditing')&&(_0x45211b['enableCommand']('insertBookmark'),_0x45211b['enableDefaultAttributesIntegration']('updateBookmark'),_0x45211b['registerBlockAttribute']('bookmarkId'),_0x45211b['descriptionFactory']['registerDescriptionCallback'](_0x146d2d=>{if('insertion'!=_0x146d2d['type']&&'deletion'!=_0x146d2d['type']&&'attribute'!=_0x146d2d['type'])return;const _0x553d7b=_0x146d2d['getContainedElement']();if(null==_0x553d7b)return;if(!_0x553d7b['is']('element','bookmark'))return;const _0x55d488=_0x553d7b['getAttribute']('bookmarkId');if('insertion'==_0x146d2d['type'])return{'type':'insertion','content':c(_0x29670b,'*Insert:*\x20%0','\x22'+_0x55d488+'\x22\x20'+c(_0x29670b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x146d2d['type'])return{'type':'deletion','content':c(_0x29670b,'*Remove:*\x20%0','\x22'+_0x55d488+'\x22\x20'+c(_0x29670b,'ELEMENT_BOOKMARK'))};const {data:_0x1dd8a}=_0x146d2d;if(!_0x1dd8a||'bookmarkId'!=_0x1dd8a['key'])return;return{'type':'format','content':c(_0x29670b,'*Set\x20bookmark:*\x20%0','\x22'+_0x1dd8a['newValue']+'\x22')};}));}}class J extends _0x45b538{['afterInit'](){const _0x24225a=this['editor'];_0x24225a['plugins']['has']('CaseChange')&&(_0x24225a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x24225a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x24225a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x45b538{['afterInit'](){const _0x2cc626=this['editor'];_0x2cc626['commands']['get']('ckbox')&&_0x2cc626['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x45b538{['afterInit'](){const _0x27b25d=this['editor'];if(!_0x27b25d['plugins']['has']('CodeBlock'))return;const _0x1e7936=_0x27b25d['plugins']['get']('TrackChangesEditing'),_0x298ffa=_0x27b25d['locale'],_0x3924fe=_0x27b25d['config']['get']('codeBlock')['languages'],_0x4d0583=_0x27b25d['commands']['get']('codeBlock');_0x1e7936['enableCommand']('indentCodeBlock'),_0x1e7936['enableCommand']('outdentCodeBlock'),_0x1e7936['enableCommand']('codeBlock',(_0x1721bc,_0x3dc9f9={})=>{const _0x6bc282=_0x27b25d['model'],_0x43771b=_0x27b25d['model']['document']['selection'],_0x53ceca=_0x3dc9f9&&void 0x0!==_0x3dc9f9['forceValue']?_0x3dc9f9['forceValue']:!_0x4d0583['value'];let _0x434712;_0x3dc9f9['language']||(_0x3dc9f9['language']=_0x3924fe[0x0]['language']),_0x434712=_0x53ceca?Array['from'](_0x43771b['getSelectedBlocks']())['filter'](_0x22e33a=>eo(_0x22e33a)||function(_0x1e6498,_0x170024){if(_0x1e6498['is']('rootElement')||_0x170024['isLimit'](_0x1e6498))return!0x1;return _0x170024['checkChild'](_0x1e6498['parent'],'codeBlock');}(_0x22e33a,_0x6bc282['schema'])):Array['from'](_0x43771b['getSelectedBlocks']())['filter'](_0x42b879=>eo(_0x42b879));const _0x37df23=to(_0x434712,_0x6bc282);_0x6bc282['change'](()=>{for(const _0xd1611e of _0x37df23)_0x1e7936['markBlockFormat'](_0xd1611e,{'commandName':'codeBlock','commandParams':[{..._0x3dc9f9,'forceValue':_0x53ceca}],'formatGroupId':'blockName'});});}),(_0x1e7936['descriptionFactory']['registerElementLabel']('codeBlock',_0x293034=>c(_0x298ffa,'ELEMENT_CODE_BLOCK',_0x293034)),_0x1e7936['descriptionFactory']['registerDescriptionCallback'](_0x464a93=>{if('formatBlock'!=_0x464a93['type'])return;const _0x131d74=_0x298ffa['t'],{data:_0x467c88}=_0x464a93;if(!_0x467c88||'codeBlock'!=_0x467c88['commandName'])return;const _0x296d04=_0x467c88['commandParams'][0x0]['language'],_0x4f8f33=_0x131d74(_0x3924fe['find'](_0x4b2cea=>_0x4b2cea['language']===_0x296d04)['label'])['toLowerCase']();return _0x467c88['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x298ffa,'*Set\x20format:*\x20%0',c(_0x298ffa,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4f8f33+')')}:{'type':'format','content':c(_0x298ffa,'*Remove\x20format:*\x20%0',c(_0x298ffa,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2e68ce){return'codeBlock'==_0x2e68ce['name'];}class q extends _0x45b538{['afterInit'](){const _0x156c1b=this['editor'];if(!_0x156c1b['plugins']['has']('CommentsEditing'))return;_0x156c1b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x20a13b,_0x157d5d,_0x3a0c66){const _0x2ed791=[];for(const _0x30b809 of _0x157d5d['getItems']())_0x30b809['hasAttribute'](_0x20a13b)&&_0x2ed791['push'](_0x3a0c66['createRangeOn'](_0x30b809));return _0x2ed791;}function Fe(_0x34a13d,_0x4885dc,{showActiveMarker:_0x2408e0=!0x0}={}){const _0x1c3480=_0x34a13d['plugins']['get']('TrackChangesEditing');return(_0x52e1af,_0x584e41,_0x5a508e)=>{if(!_0x5a508e['consumable']['test'](_0x584e41['markerRange'],_0x52e1af['name']))return;const _0x2fc033=_0x584e41['markerRange']['getWalker'](),_0x3c2ff1=_0x584e41['markerRange']['start'],_0x114452=_0x34a13d['model']['schema'];let _0x35e59c=null,_0x2cc3a0=null,_0x2a2949=!0x1,_0x266440=!0x1;for(const _0x2e8728 of _0x2fc033){const _0x129bc9=_0x2e8728['item'];_0x2a2949=_0x2a2949||_0x114452['isContent'](_0x129bc9);const _0x3ec281=_0x5a508e['mapper']['toViewElement'](_0x129bc9);if(_0x3ec281&&_0x3ec281['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e8728['type']&&(_0x114452['isBlock'](_0x129bc9)&&!_0x114452['isLimit'](_0x129bc9)&&(_0x129bc9['nextSibling']||_0x3c2ff1['isAtEnd']?_0x35e59c&&_0x35e59c['parent']==_0x129bc9||(_0x35e59c=_0x129bc9,_0x351aa8(_0x2e8728['previousPosition']),_0x266440=!0x0):_0x2cc3a0=_0x2cc3a0||_0x2e8728['previousPosition']));}function _0x351aa8(_0x2c2a7e){const {authorId:_0x5a40e0}=_0x1c3480['_splitMarkerName'](_0x584e41['markerName']),_0x45c598=_0x5a508e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4885dc,'data-author-id':_0x5a40e0}),_0x5b2a60=_0x5a508e['mapper']['toViewPosition'](_0x2c2a7e);_0x2408e0&&_0x1c3480['activeMarkers']['includes'](_0x584e41['markerName'])&&_0x5a508e['writer']['addClass']('ck-suggestion-marker--active',_0x45c598),_0x5a508e['writer']['insert'](_0x5b2a60,_0x45c598),_0x5a508e['mapper']['bindElementToMarker'](_0x45c598,_0x584e41['markerName']);}_0x2a2949||_0x266440||!_0x2cc3a0||_0x351aa8(_0x2cc3a0);};}class z extends _0x45b538{static get['requires'](){return[_0x1c0557];}['init'](){const _0x30d618=this['editor'],_0x4bec71=_0x30d618['plugins']['get']('TrackChangesEditing');_0x4bec71['enableCommand']('delete');const _0x42a68b=_0x30d618['commands']['get']('deleteForward');_0x4bec71['enableCommand']('deleteForward',(_0x108e39,_0xcb278e={})=>{const _0x24dfe9=_0x30d618['model']['createSelection'](_0x30d618['model']['document']['selection']);_0x24dfe9['isCollapsed']&&_0x30d618['model']['modifySelection'](_0x24dfe9,{'direction':'forward','unit':_0xcb278e['unit']});const _0x532453=_0x24dfe9['getFirstRange'](),_0x132603=_0x488912['fromRange'](_0x532453);let _0x296cce;_0x108e39(_0xcb278e),_0x296cce='$graveyard'==_0x132603['root']['rootName']?_0x30d618['model']['createRange'](_0x532453['start']):_0x30d618['model']['createRange'](_0x132603['start'],_0x132603['end']),_0x132603['detach'](),_0x30d618['model']['enqueueChange'](_0x42a68b['buffer']['batch'],_0xa80aea=>{_0x42a68b['buffer']['lock'](),_0xa80aea['setSelection'](_0xa80aea['createRange'](_0x296cce['end'])),_0x42a68b['buffer']['unlock']();});}),_0x30d618['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x30d618,'merge'),{'priority':'high'}),_0x30d618['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xcfe0d4,_0x5c8fc3,_0x395f98)=>{_0x395f98['options']['showSuggestionHighlights']&&Fe(_0x30d618,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xcfe0d4,_0x5c8fc3,_0x395f98);},{'priority':'high'}),_0x30d618['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3105b7,_0x2912fc,_0x5d34f7)=>{const _0x3baceb=_0x5d34f7['mapper']['markerNameToElements'](_0x2912fc['markerName']);if(_0x3baceb){for(const _0x2f0347 of _0x3baceb)_0x2f0347['is']('uiElement')&&(_0x5d34f7['mapper']['unbindElementFromMarkerName'](_0x2f0347,_0x2912fc['markerName']),_0x5d34f7['writer']['remove'](_0x2f0347));}},{'priority':'high'});}}class W extends _0x45b538{['afterInit'](){const _0x458dae=this['editor'];if(!_0x458dae['plugins']['has']('ListEditing'))return;const _0x3f92fe=_0x458dae['locale'],_0xba04b3=_0x458dae['plugins']['get']('TrackChangesEditing'),_0x4b8f15=_0x458dae['plugins']['has']('TodoListEditing'),_0x45f085=!!_0x458dae['config']['get']('list.multiBlock');function _0x51b197(_0x2b02fc){return{'type':'format','content':''+c(_0x3f92fe,'*Set\x20format:*\x20%0',_0x2b02fc)};}function _0x59fbc3(_0x32d78f){return{'type':'format','content':''+c(_0x3f92fe,'*Remove\x20format:*\x20%0',_0x32d78f)};}_0xba04b3['enableDefaultAttributesIntegration']('numberedList'),_0xba04b3['enableDefaultAttributesIntegration']('bulletedList'),_0xba04b3['enableDefaultAttributesIntegration']('customNumberedList'),_0xba04b3['enableDefaultAttributesIntegration']('customBulletedList'),_0xba04b3['enableDefaultAttributesIntegration']('indentList'),_0xba04b3['enableDefaultAttributesIntegration']('outdentList'),_0xba04b3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xba04b3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xba04b3['registerBlockAttribute']('listItemId'),_0xba04b3['registerBlockAttribute']('listType'),_0xba04b3['registerBlockAttribute']('listIndent'),_0x45f085&&(_0xba04b3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xba04b3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4b8f15&&(_0xba04b3['enableDefaultAttributesIntegration']('todoList'),_0xba04b3['enableDefaultAttributesIntegration']('checkTodoList'),_0xba04b3['registerBlockAttribute']('todoListChecked'),_0xba04b3['descriptionFactory']['registerDescriptionCallback'](_0x4ae4e3=>{const {data:_0x2a9f09}=_0x4ae4e3;if(_0x2a9f09&&'todoListChecked'==_0x2a9f09['key'])return{'type':'format','content':_0x2a9f09['newValue']?c(_0x3f92fe,'*Check\x20item*'):c(_0x3f92fe,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x723530=>{if(_0x723530['batch']['isUndo'])return!0x1;let _0x149b24=!0x1;const _0x267779=_0xba04b3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59a255=>'todoListChecked'===_0xba04b3['_getAttributeKey'](_0x59a255));for(const _0xd2467b of _0x267779){'todo'!=_0xd2467b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xba04b3['_findSuggestions'](_0xd2467b['getFirstRange'](),'attribute')['find'](_0x3ef7a8=>'listType'===_0xba04b3['_getAttributeKey'](_0x3ef7a8['suggestion']))||(_0x723530['removeMarker'](_0xd2467b['getFirstMarker']()),_0x149b24=!0x0));}return _0x149b24;})),_0xba04b3['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3f92fe,'FORMAT_INDENT'));const _0xb989c9={'type':'format','content':''};_0xba04b3['descriptionFactory']['registerDescriptionCallback'](_0x193827=>{const {data:_0x104689}=_0x193827;if(!_0x104689||'listType'!=_0x104689['key'])return;let _0x31517e=_0x193827['head'];for(;_0x31517e;){if(_0x31517e['data']&&(('listStyle'==_0x31517e['data']['key']||'listMarkerStyle'==_0x31517e['data']['key'])&&(_0x31517e['data']['newValue']&&'default'!=_0x31517e['data']['newValue']||'default'!=_0x31517e['data']['oldValue']&&!_0x104689['newValue'])||!_0x45f085&&_0x31517e['data']['key']==u))return _0xb989c9;_0x31517e=_0x31517e['next'];}if(null==_0x104689['newValue'])switch(_0x104689['oldValue']){case'bulleted':return _0x59fbc3(c(_0x3f92fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x59fbc3(c(_0x3f92fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x59fbc3(c(_0x3f92fe,'ELEMENT_TODO_LIST'));}switch(_0x104689['newValue']){case'bulleted':return _0x51b197(c(_0x3f92fe,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51b197(c(_0x3f92fe,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51b197(c(_0x3f92fe,'ELEMENT_TODO_LIST'));}}),_0xba04b3['descriptionFactory']['registerDescriptionCallback'](_0x29cdda=>{const {data:_0x4e9429}=_0x29cdda;if(_0x4e9429&&'listIndent'==_0x4e9429['key'])return null==_0x4e9429['newValue']||null==_0x4e9429['oldValue']&&0x0==_0x4e9429['newValue']?_0xb989c9:void 0x0;}),_0xba04b3['descriptionFactory']['registerDescriptionCallback'](_0x3675be=>{if('attribute'!=_0x3675be['type'])return;const {data:_0x5945f2}=_0x3675be;if(!_0x5945f2||'listItemId'!=_0x5945f2['key'])return;const _0xc939bb=Te(_0x3675be);return'newValue'==_0xc939bb?{'type':'format','content':c(_0x3f92fe,'*Merge:*\x20list\x20item')}:'oldValue'==_0xc939bb?{'type':'format','content':c(_0x3f92fe,'*Split:*\x20list\x20item')}:_0xb989c9;}),_0x458dae['model']['document']['registerPostFixer'](_0x44b1b3=>this['listItemIdFixer'](_0x44b1b3)),_0x458dae['model']['document']['registerPostFixer'](_0x59e385=>this['noTrackChangesFixer'](_0x59e385)),_0x458dae['model']['document']['on']('change:data',(_0x7f0e1c,_0x37a90c)=>{if(_0x37a90c['isUndo']||!_0x37a90c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x47685b){if(_0x47685b['batch']['isUndo']||!_0x47685b['batch']['isLocal'])return!0x1;let _0x219501=!0x1;const _0x3a1209=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x91bdcb=>_0x91bdcb['data']&&'listItemId'==_0x91bdcb['data']['key'])['filter'](_0x47b7e9=>_0x47b7e9['data']['newValue']&&_0x47b7e9['data']['oldValue']);for(const _0x35c3e6 of _0x3a1209)Te(_0x35c3e6)||(_0x47685b['removeMarker'](_0x35c3e6['getFirstMarker']()),_0x219501=!0x0);return _0x219501;}['noTrackChangesFixer'](_0x4eb127){if(_0x4eb127['batch']['isUndo']||!_0x4eb127['batch']['isLocal'])return!0x1;const _0x5daad9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5daad9['trackChangesCommand']['value'])return!0x1;let _0x53105a=!0x1;const _0x1af351=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x492bec=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2ffbd1=>'attribute'==_0x2ffbd1['type'])['filter'](_0x31ba5d=>_0x1af351['includes'](_0x31ba5d['attributeKey']));if(0x0==_0x492bec['length'])return _0x53105a;for(const _0x49d333 of _0x492bec){const _0x4b0422=_0x5daad9['_findSuggestions'](_0x49d333['range'],'attribute')['filter'](_0x38b207=>!_0x38b207['meta']['isNextTo'])['map'](_0x6845b1=>_0x6845b1['suggestion'])['filter'](_0x101d47=>{const _0x48c590=_0x5daad9['_getAttributeKey'](_0x101d47);return _0x1af351['includes'](_0x48c590);});if(_0x4b0422['length']){for(const _0x5bd86c of _0x4b0422)_0x4eb127['removeMarker'](_0x5bd86c['getFirstMarker']());_0x53105a=!0x0;}}return _0x53105a;}['assureChains'](){const _0x2c43d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d9cdb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3ad0d8;const _0x2d2c8e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b19a7=>{if(_0x1b19a7['data']['oldRange']||!_0x1b19a7['data']['newRange'])return null;if(!_0x1b19a7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4e5eb3}=_0x2c43d6['_splitMarkerName'](_0x1b19a7['name']);if(!_0x2c43d6['hasSuggestion'](_0x4e5eb3))return null;const _0x10b23f=_0x2c43d6['getSuggestion'](_0x4e5eb3);return _0x4d9cdb['includes'](_0x10b23f['data']['key']);})['map'](_0x53a686=>{const {id:_0x98bb09}=_0x2c43d6['_splitMarkerName'](_0x53a686['name']),_0x3734cc=_0x2c43d6['getSuggestion'](_0x98bb09);return _0x3ad0d8=_0x3734cc['attributes']['groupId'],_0x3734cc['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2d2c8e['size'])return;const _0x528a26=_0x2c43d6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f876f=>'attribute'==_0x2f876f['type']&&_0x2f876f['data']&&_0x4d9cdb['includes'](_0x2f876f['data']['key'])&&_0x2f876f['attributes']['groupId']!=_0x3ad0d8)['map'](_0x41bc97=>({'listItem':_0x41bc97['getFirstRange']()['start']['nodeAfter'],'groupId':_0x41bc97['attributes']['groupId']})),_0x4bb2c3=new Set();for(const {groupId:_0x31e307,listItem:_0x3bdedc}of _0x528a26)_0x2d2c8e['has'](_0x3bdedc)&&_0x4bb2c3['add'](_0x31e307);for(const _0x259a86 of _0x2c43d6['getSuggestions']())_0x4bb2c3['has'](_0x259a86['attributes']['groupId'])&&_0x259a86['setAttribute']('groupId',_0x3ad0d8);}['_supportLegacySuggestions'](){const _0x29254e=this['editor'],_0x40d5f8=_0x29254e['locale'],_0x201a71=_0x29254e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x201a71['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x832d98,_0x15056c){const _0x1fae33=[];for(let _0x28caa6 of _0x832d98)_0x28caa6['start']['nodeAfter']===_0x28caa6['end']['parent']&&(_0x28caa6=_0x29254e['model']['createRange'](_0x29254e['model']['createPositionAt'](_0x28caa6['start']['nodeAfter'],0x0))),_0x1fae33['push'](_0x28caa6);_0x29254e['model']['change'](_0x132aa1=>{const _0x48b540=_0x29254e['model']['document']['selection'],_0x91aebf=Array['from'](_0x48b540['getRanges']())['map'](_0x1eb9b5=>_0x488912['fromRange'](_0x1eb9b5));_0x132aa1['setSelection'](_0x1fae33),_0x29254e['commands']['get'](_0x15056c['commandName'])['refresh'](),_0x15056c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x29254e['execute'](_0x15056c['commandName'],..._0x15056c['commandParams']),_0x132aa1['setSelection'](_0x91aebf);for(const _0x27a923 of _0x91aebf)_0x27a923['detach']();});}),_0x201a71['descriptionFactory']['registerElementLabel'](function(_0x5de1cd){const _0xedd9f8=!_0x29254e['model']['schema']['isObject'](_0x5de1cd),_0x1aeb85=_0x5de1cd['previousSibling'],_0x4e6d80=_0x5de1cd['nextSibling'],_0x429e69=_0x5de1cd['getAttribute']('listItemId'),_0xd9d636=!_0x1aeb85||_0x1aeb85['getAttribute']('listItemId')!==_0x429e69,_0x691d2b=!_0x4e6d80||_0x4e6d80['getAttribute']('listItemId')!==_0x429e69;return _0xedd9f8&&Boolean(_0x429e69)&&_0xd9d636&&_0x691d2b;},_0x5022ee=>c(_0x40d5f8,'ELEMENT_LIST_ITEM',_0x5022ee));}['_registerLegacyDescription'](){const _0x3f34a0=this['editor'],_0x4d38bb=_0x3f34a0['locale'];function _0x1966b1(_0x2b0380){const _0x559fa1=_0x3f34a0['commands']['get']('bulletedList')['value'],_0x593946=_0x3f34a0['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b0380?_0x559fa1:_0x593946;}_0x3f34a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x548319){if('formatBlock'!=_0x548319['type'])return;const {data:_0x380db6}=_0x548319;if(!_0x380db6)return;let _0x5b7ac5,_0x2a4a02,_0x371ee0,_0x4c970d;switch(_0x380db6['commandName']){case'bulletedList':_0x371ee0=_0x380db6['commandParams'][0x0]['forceValue'],_0x4c970d=_0x1966b1(_0x380db6['commandName']),_0x5b7ac5=_0x371ee0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4c970d&&_0x3f34a0['config']['get']('list.multiBlock')||(_0x5b7ac5='*Change\x20to:*\x20%0'),_0x2a4a02={'type':'format','content':c(_0x4d38bb,_0x5b7ac5,c(_0x4d38bb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x371ee0=_0x380db6['commandParams'][0x0]['forceValue'],_0x4c970d=_0x1966b1(_0x380db6['commandName']),_0x5b7ac5=_0x371ee0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4c970d&&_0x3f34a0['config']['get']('list.multiBlock')||(_0x5b7ac5='*Change\x20to:*\x20%0'),_0x2a4a02={'type':'format','content':c(_0x4d38bb,_0x5b7ac5,c(_0x4d38bb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5b7ac5='*Indent:*\x20%0',_0x2a4a02={'type':'format','content':c(_0x4d38bb,_0x5b7ac5,c(_0x4d38bb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5b7ac5=function(_0x14d9e9){const _0x28a9b0=_0x14d9e9['getFirstRange']();let _0x3bde35=_0x28a9b0['start']['nodeAfter'];for(;_0x3bde35&&_0x28a9b0['containsItem'](_0x3bde35);){if(_0x3bde35['getAttribute']('listIndent')>0x0)return!0x1;_0x3bde35=_0x3bde35['nextSibling'];}return!0x0;}(_0x548319)?c(_0x4d38bb,'*Format:*\x20remove\x20from\x20%0',c(_0x4d38bb,function(_0x1e1cc3){return'ELEMENT_'+_0x1e1cc3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x548319))):c(_0x4d38bb,'*Outdent:*\x20%0',c(_0x4d38bb,'ELEMENT_LIST_ITEM')),_0x2a4a02={'type':'format','content':_0x5b7ac5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x380db6['multipleBlocks']&&(_0x5b7ac5='*Merge:*\x20%0',_0x2a4a02={'type':'deletion','content':c(_0x4d38bb,_0x5b7ac5,c(_0x4d38bb,'ELEMENT_LIST_ITEM'))});}return _0x2a4a02;});}}function Te(_0x43a3ed){let _0x3d3ec2=_0x43a3ed['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3d3ec2;){const _0x2013db=_0x3d3ec2['getAttribute']('listItemId');if(!_0x2013db)return!0x1;if(_0x2013db==_0x43a3ed['data']['newValue'])return'newValue';if(_0x2013db==_0x43a3ed['data']['oldValue'])return'oldValue';_0x3d3ec2=_0x3d3ec2['previousSibling'];}return!0x1;}class Se extends _0x45b538{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x98f74f=this['editor']['config']['get']('list.properties'),_0x2b8439=this['editor']['plugins']['get']('TrackChangesEditing');_0x98f74f['styles']&&(_0x2b8439['enableDefaultAttributesIntegration']('listStyle'),_0x2b8439['registerBlockAttribute']('listStyle')),_0x98f74f['reversed']&&(_0x2b8439['enableDefaultAttributesIntegration']('listReversed'),_0x2b8439['registerBlockAttribute']('listReversed')),_0x98f74f['startIndex']&&(_0x2b8439['enableDefaultAttributesIntegration']('listStart'),_0x2b8439['registerBlockAttribute']('listStart'));const _0x3fc3c6={'type':'format','content':''};_0x2b8439['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x31955d=this['editor']['locale'];_0x2b8439['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x31955d,'FORMAT_LIST_REVERSED')),_0x2b8439['descriptionFactory']['registerDescriptionCallback'](_0x23e83b=>{const {data:_0x59f590}=_0x23e83b;if(_0x59f590&&'listReversed'==_0x59f590['key'])return null==_0x59f590['newValue']||0x0==_0x59f590['newValue']&&null==_0x59f590['oldValue']?_0x3fc3c6:void 0x0;}),_0x2b8439['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x31955d,'FORMAT_LIST_START')),_0x2b8439['descriptionFactory']['registerDescriptionCallback'](_0x148a8f=>{const {data:_0x553b66}=_0x148a8f;if(_0x553b66&&'listStart'==_0x553b66['key'])return null==_0x553b66['newValue']||0x1==_0x553b66['newValue']&&null==_0x553b66['oldValue']?_0x3fc3c6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2e63f6=>{if(_0x2e63f6['batch']['isUndo'])return!0x1;let _0x3563d4=!0x1;const _0x51fee8=_0x2b8439['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6cf616=>{const _0x4f16cb=_0x2b8439['_getAttributeKey'](_0x6cf616);return'listStart'==_0x4f16cb||'listReversed'==_0x4f16cb;});for(const _0x23c538 of _0x51fee8){const _0x556e54=_0x23c538['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x556e54||'customNumbered'==_0x556e54)continue;_0x2b8439['_findSuggestions'](_0x23c538['getFirstRange'](),'attribute')['find'](_0x74bcd4=>'listType'==_0x2b8439['_getAttributeKey'](_0x74bcd4['suggestion']))||(_0x2e63f6['removeMarker'](_0x23c538['getFirstMarker']()),_0x3563d4=!0x0);}return _0x3563d4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4fe332){const _0x567843=this['editor']['locale'],{data:_0x476cd1}=_0x4fe332,_0x1ce53f={'type':'format','content':''};if(!_0x476cd1||'listStyle'!=_0x476cd1['key'])return;if(!_0x476cd1['oldValue'])return'default'==_0x476cd1['newValue']?_0x1ce53f:{'type':'format','content':''+c(_0x567843,'*Set\x20format:*\x20%0',c(_0x567843,this['_getTranslationKeyForListStyle'](_0x476cd1['newValue'])))};if(!_0x476cd1['newValue']){if('default'==_0x476cd1['oldValue'])return _0x1ce53f;let _0xdb0f95=_0x4fe332['head'];for(;_0xdb0f95;){if(_0xdb0f95['data']&&'listType'==_0xdb0f95['data']['key']&&_0xdb0f95['data']['newValue'])return _0x1ce53f;_0xdb0f95=_0xdb0f95['next'];}return{'type':'format','content':''+c(_0x567843,'*Remove\x20format:*\x20%0',c(_0x567843,this['_getTranslationKeyForListStyle'](_0x476cd1['oldValue'])))};}if('default'!=_0x476cd1['newValue'])return{'type':'format','content':''+c(_0x567843,'*Set\x20format:*\x20%0',c(_0x567843,this['_getTranslationKeyForListStyle'](_0x476cd1['newValue'])))};let _0x1af5b6=_0x4fe332['head'];for(;_0x1af5b6;){if(_0x1af5b6['data']&&'listType'==_0x1af5b6['data']['key']&&_0x1af5b6['data']['newValue']&&_0x1af5b6['data']['oldValue'])return _0x1ce53f;_0x1af5b6=_0x1af5b6['next'];}return{'type':'format','content':c(_0x567843,'*Set\x20format:*\x20%0',c(_0x567843,'ELEMENT_'+_0x4fe332['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1bd4c6=this['editor'],_0x4a51d2=_0x1bd4c6['locale'];_0x1bd4c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15d900=>{if('formatBlock'!=_0x15d900['type'])return;const {data:_0x2b901d}=_0x15d900;if(!_0x2b901d)return;let _0x184850,_0x479f6c;switch(_0x2b901d['commandName']){case'listStyle':_0x184850='*Change\x20to:*\x20%0',_0x479f6c={'type':'format','content':c(_0x4a51d2,_0x184850,c(_0x4a51d2,this['_getTranslationKeyForListStyle'](_0x2b901d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x184850=_0x2b901d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x479f6c={'type':'format','content':c(_0x4a51d2,_0x184850)};break;case'listStart':_0x184850='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x479f6c={'type':'format','content':c(_0x4a51d2,_0x184850,_0x2b901d['commandParams'][0x0]['startIndex'])};}return _0x479f6c;});}['_getTranslationKeyForListStyle'](_0x3565da){return'ELEMENT_'+function(_0x218b46){if(_e['includes'](_0x218b46))return'bulleted';if(Re['includes'](_0x218b46))return'numbered';return null;}(_0x3565da)['toUpperCase']()+'_LIST_'+_0x3565da['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x45b538{['afterInit'](){const _0x457ea5=this['editor'];_0x457ea5['commands']['get']('emoji')&&_0x457ea5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x45b538{static get['requires'](){return[_0x13f2ff];}['init'](){const _0x2a5ca0=this['editor'],_0x14d2b0=_0x2a5ca0['plugins']['get']('TrackChangesEditing'),_0x230beb=_0x2a5ca0['commands']['get']('enter');_0x14d2b0['enableCommand']('enter',()=>{_0x2a5ca0['model']['change'](_0x1c3b2e=>{const _0x4833a8=_0x2a5ca0['model']['document']['selection'],_0x1b034f=_0x4833a8['getFirstPosition'](),_0x264bac=_0x488912['fromRange'](_0x4833a8['getFirstRange']());if(_0x230beb['enterBlock'](_0x1c3b2e)){const _0x4053c9=_0x2a5ca0['model']['createPositionAt'](_0x1b034f['parent']['nextSibling'],0x0),_0x1de0eb=_0x1c3b2e['createRange'](_0x1b034f,_0x4053c9);_0x14d2b0['markInsertion'](_0x1de0eb);}else _0x1c3b2e['setSelection'](_0x1c3b2e['createRange'](_0x264bac['end']));_0x264bac['detach'](),_0x230beb['fire']('afterExecute',{'writer':_0x1c3b2e});});}),_0x2a5ca0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x2a5ca0,'split'),{'priority':'high'}),_0x2a5ca0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x369f49,_0x30419a,_0x57333a)=>{const _0x3e743a=_0x57333a['mapper']['markerNameToElements'](_0x30419a['markerName']);if(_0x3e743a){for(const _0x21409f of _0x3e743a)_0x21409f['hasClass']('ck-suggestion-marker-split')&&(_0x57333a['mapper']['unbindElementFromMarkerName'](_0x21409f,_0x30419a['markerName']),_0x57333a['writer']['remove'](_0x21409f));}},{'priority':'high'}),_0x2a5ca0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d1864,_0x2345b8,_0x56c999)=>{_0x56c999['options']['showSuggestionHighlights']&&Fe(_0x2a5ca0,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5d1864,_0x2345b8,_0x56c999);},{'priority':'high'});}}class Z extends _0x45b538{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x31dca8=this['editor']['plugins']['get']('TrackChangesEditing');_0x31dca8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x31dca8['enableCommand']('findNext'),_0x31dca8['enableCommand']('findPrevious'),_0x31dca8['enableCommand']('replace'),_0x31dca8['enableCommand']('replaceAll');}['handleFindCommand'](_0x2bd883,_0xdae18a,_0x32e522={}){const _0x469ab7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2bd883(_0x3938f3=>{let _0x2c9b27=('string'==typeof _0xdae18a?_0x469ab7['findByTextCallback'](_0xdae18a,_0x32e522):_0xdae18a)(_0x3938f3);Array['isArray'](_0x2c9b27)&&(_0x2c9b27={'results':_0x2c9b27,'searchText':'string'==typeof _0xdae18a?_0xdae18a:''});const _0x55069f=_0x2c9b27['results']['filter'](_0x329158=>!0x1===this['_isInDeletionRange'](_0x329158,_0x3938f3['item']));return{..._0x2c9b27,'results':_0x55069f};},_0x32e522);}['_isInDeletionRange'](_0xc23038,_0xdf12cb){const _0x27ca5f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xdf12cb,_0xc23038['start']),this['editor']['model']['createPositionAt'](_0xdf12cb,_0xc23038['end']));for(const _0x21e2b7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x27ca5f['getIntersection'](_0x21e2b7['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 _0x45b538{['afterInit'](){const _0x26ce14=this['editor']['locale'],_0x36fd2a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a3ff2,commandName:_0x44886b}of ro)this['editor']['plugins']['has'](_0x4a3ff2)&&(_0x36fd2a['enableDefaultAttributesIntegration'](_0x44886b),_0x36fd2a['registerInlineAttribute'](_0x44886b));_0x36fd2a['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x26ce14,'FORMAT_FONT_SIZE')),_0x36fd2a['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x26ce14,'FORMAT_FONT_FAMILY')),_0x36fd2a['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x26ce14,'FORMAT_FONT_COLOR')),_0x36fd2a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x26ce14,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ed0bf=this['editor'],_0x2d525b=_0x5ed0bf['locale'];_0x5ed0bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31d598=>{const _0x149097=_0x2d525b['t'];if('formatInline'!=_0x31d598['type'])return;const {data:_0x144a57}=_0x31d598;if(null!=_0x144a57){if('fontSize'==_0x144a57['commandName']){const _0x2c4dea=_0x144a57['commandParams'][0x0]['value'];if(_0x2c4dea){const _0x107db0=_0x149097(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x484641=>_0x484641['model']==_0x2c4dea)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2d525b,'*Set\x20font\x20size:*\x20%0',_0x107db0)};}return{'type':'format','content':c(_0x2d525b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x144a57['commandName']){const _0x4284e0=_0x144a57['commandParams'][0x0]['value'];return _0x4284e0?{'type':'format','content':c(_0x2d525b,'*Set\x20font\x20family:*\x20%0',_0x4284e0)}:{'type':'format','content':c(_0x2d525b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x144a57['commandName']){const _0x4aec04=_0x144a57['commandParams'][0x0]['value'];if(_0x4aec04){const _0x19bdfb=_0x38aa7a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x207168=>_0x207168['model']==_0x4aec04);let _0x5ab4be=_0x4aec04,_0x5007a5='';return _0x19bdfb&&(_0x5ab4be=_0x19bdfb['label'],_0x5007a5=_0x149097(_0x5ab4be)['toLowerCase']()),{'type':'format','content':c(_0x2d525b,'*Set\x20font\x20color:*\x20%0',_0x5007a5)['trim'](),'color':{'value':_0x4aec04,'title':_0x5007a5||_0x5ab4be}};}return{'type':'format','content':c(_0x2d525b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x144a57['commandName']){const _0x17efe1=_0x144a57['commandParams'][0x0]['value'];if(_0x17efe1){const _0x1d309c=_0x38aa7a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2c8bd1=>_0x2c8bd1['model']==_0x17efe1);let _0x4efc44=_0x17efe1,_0x359667='';return _0x1d309c&&(_0x4efc44=_0x1d309c['label'],_0x359667=_0x149097(_0x4efc44)['toLowerCase']()),{'type':'format','content':c(_0x2d525b,'*Set\x20font\x20background\x20color:*\x20%0',_0x359667)['trim'](),'color':{'value':_0x17efe1,'title':_0x359667||_0x4efc44}};}return{'type':'format','content':c(_0x2d525b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x45b538{['afterInit'](){const _0x33f526=this['editor'],_0x1344db=_0x33f526['plugins']['get']('TrackChangesEditing'),_0x658d0e=_0x33f526['commands']['get']('copyFormat'),_0x22b665=_0x33f526['commands']['get']('pasteFormat');_0x658d0e&&_0x22b665&&(_0x1344db['enableDefaultAttributesIntegration']('pasteFormat'),_0x1344db['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1a147f=this['editor'],_0x2e7d7c=_0x1a147f['locale'];_0x1a147f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ff84=>{if('formatBlock'!=_0x41ff84['type']&&'formatInline'!=_0x41ff84['type'])return;const {data:_0x2ea09a}=_0x41ff84;if(_0x2ea09a&&'pasteFormat'===_0x2ea09a['commandName']){const _0x1668bb=[],_0x40135e=_0x2ea09a['commandParams'][0x0];for(const [_0x1a2dec,_0x13008e]of Object['entries'](_0x40135e))_0x1668bb['push'](so(_0x1a147f,_0x1a2dec,_0x13008e));return _0x1668bb['length']?{'type':'format','content':c(_0x2e7d7c,'*Set\x20format\x20to:*\x20%0',_0x1668bb['join'](',\x20'))}:{'type':'format','content':c(_0x2e7d7c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x34716f,_0x12548e,_0x2b5708){const _0x5b79ca=_0x34716f['locale']['t'],_0x3e800a=_0x12548e['split'](/(?=[A-Z])/)['join']('\x20'),_0xb418cf=_0x5b79ca(_0x3e800a['charAt'](0x0)['toUpperCase']()+_0x3e800a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2b5708)return _0xb418cf;if('fontColor'===_0x12548e||'fontBackgroundColor'===_0x12548e){const _0x79eb71=_0x38aa7a(_0x34716f['config']['get']('fontColor.colors'))['find'](_0x41e3a6=>_0x41e3a6['model']==_0x2b5708);return _0xb418cf+'\x20('+(_0x79eb71?_0x5b79ca(_0x79eb71['label'])['toLowerCase']():_0x2b5708)+')';}if('fontSize'===_0x12548e&&isNaN(parseFloat(_0x2b5708))){const _0xabc4e2=_0x34716f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x34716f['config']['get']('fontSize.options'))['find'](_0x568840=>_0x568840['model']==_0x2b5708);return _0xb418cf+'\x20('+(_0xabc4e2?_0x5b79ca(_0xabc4e2['title'])['toLowerCase']():_0x2b5708)+')';}return _0xb418cf+'\x20('+_0x2b5708+')';}class nt extends _0x45b538{['_headingOptions'];['afterInit'](){const _0xfff469=this['editor'];if(!_0xfff469['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xfff469['config']['get']('heading.options');const _0x56c85a=_0xfff469['locale'],_0x5c0114=_0xfff469['plugins']['get']('TrackChangesEditing');_0x5c0114['enableDefaultAttributesIntegration']('heading');for(const _0x3f8958 of this['_headingOptions'])'paragraph'!=_0x3f8958['model']&&_0x5c0114['descriptionFactory']['registerElementLabel'](_0x3f8958['model'],_0x590ea4=>{const _0x8b701d=this['_getHeadingLevel'](_0x3f8958['model']);return null!==_0x8b701d?_0x3744ce(_0x590ea4,_0x8b701d):_0x129cff(_0x590ea4,_0x3f8958['title']);});function _0x3744ce(_0x124207,_0x1f4a3c){return c(_0x56c85a,'ELEMENT_HEADING',[_0x124207,_0x1f4a3c]);}function _0x129cff(_0xa40d06,_0x45b88d){return c(_0x56c85a,'ELEMENT_HEADING_CUSTOM',[_0xa40d06,_0x45b88d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdaba0a=this['editor'],_0x5a2598=_0xdaba0a['locale'];function _0x2c0b12(_0x103149,_0x32b3d3){return c(_0x5a2598,'ELEMENT_HEADING_CUSTOM',[_0x103149,_0x32b3d3]);}_0xdaba0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46c486=>{if('formatBlock'!=_0x46c486['type'])return;const {data:_0x5c4bfb}=_0x46c486;if(_0x5c4bfb&&'heading'==_0x5c4bfb['commandName']){const _0x23d529=_0x5c4bfb['commandParams'][0x0]['value'],_0x288150=this['_getHeadingLevel'](_0x23d529);if(null!==_0x288150)return{'type':'format','content':c(_0x5a2598,'*Change\x20to:*\x20%0',(_0x380816=0x1,_0x2b6adb=_0x288150,c(_0x5a2598,'ELEMENT_HEADING',[_0x380816,_0x2b6adb])))};const _0x2a263c=this['_headingOptions']['find'](_0x27d1bd=>_0x27d1bd['model']===_0x23d529)['title'];return{'type':'format','content':c(_0x5a2598,'*Change\x20to:*\x20%0',_0x2c0b12(0x1,_0x2a263c))};}var _0x380816,_0x2b6adb;});}['_getHeadingLevel'](_0x27563e){const _0x2d4af3=_0x27563e['match'](/^heading(\d+)/);if(_0x2d4af3)return _0x2d4af3[0x1];const _0x12a966=this['_headingOptions']?.['find'](_0x45f849=>_0x45f849['model']==_0x27563e);if(_0x12a966&&_0x12a966['view']){const _0x691756=_0x12a966['view'],_0x35df1f=(_0x691756['name']??_0x691756)['match'](/^h(\d+)/);if(_0x35df1f)return _0x35df1f[0x1];}return null;}}class it extends _0x45b538{['afterInit'](){const _0xda06e1=this['editor'];if(!_0xda06e1['plugins']['has']('HighlightEditing'))return;const _0x2e7027=_0xda06e1['plugins']['get']('TrackChangesEditing'),_0x50f942=_0xda06e1['locale'];_0x2e7027['enableDefaultAttributesIntegration']('highlight'),_0x2e7027['registerInlineAttribute']('highlight'),_0x2e7027['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x50f942,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16865e=this['editor'],_0x23811f=_0x16865e['locale'];_0x16865e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59795f=>{if('formatInline'!=_0x59795f['type'])return;const {data:_0x215894}=_0x59795f;if(_0x215894&&'highlight'==_0x215894['commandName']){const _0x5213c8=_0x23811f['t'],_0x45b7e3=_0x215894['commandParams'][0x0]['value'];if(_0x45b7e3){const _0x48c3aa=_0x16865e['config']['get']('highlight.options')['find'](_0x405fb9=>_0x405fb9['model']==_0x45b7e3),_0x2d37b8=_0x5213c8(_0x48c3aa['title'])['toLowerCase']();return{'type':'format','content':c(_0x23811f,'*Set\x20highlight:*\x20%0',_0x2d37b8),'color':{'value':_0x48c3aa['color'],'title':_0x48c3aa['title']}};}return{'type':'format','content':c(_0x23811f,'*Remove\x20highlight*',c(_0x23811f,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x45b538{['afterInit'](){const _0x11e4fb=this['editor'];if(!_0x11e4fb['plugins']['has']('HorizontalLineEditing'))return;_0x11e4fb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5a2958=_0x11e4fb['plugins']['get']('TrackChangesEditing'),_0xd8b863=_0x11e4fb['locale'];_0x5a2958['descriptionFactory']['registerElementLabel']('horizontalLine',_0x49cc35=>c(_0xd8b863,'ELEMENT_HORIZONTAL_LINE',_0x49cc35)),_0x11e4fb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x69a1f0,{writer:_0x4da0e6,options:_0x465743})=>{if(!_0x465743['showSuggestionHighlights'])return null;const _0x5f0b6b=_0x4da0e6['createContainerElement']('div'),_0x4820d3=_0x4da0e6['createEmptyElement']('hr');return _0x4da0e6['addClass']('ck-horizontal-line',_0x5f0b6b),_0x4da0e6['insert'](_0x4da0e6['createPositionAt'](_0x5f0b6b,0x0),_0x4820d3),_0x5f0b6b;},'converterPriority':'high'});}}class ot extends _0x45b538{['afterInit'](){const _0x4a4602=this['editor'];if(!_0x4a4602['plugins']['has']('HtmlEmbed'))return;const _0x10be04=_0x4a4602['plugins']['get']('TrackChangesEditing'),_0x140ad7=_0x4a4602['locale'];_0x10be04['descriptionFactory']['registerElementLabel']('rawHtml',_0x5ea11a=>c(_0x140ad7,'ELEMENT_HTML_EMBED',_0x5ea11a)),_0x10be04['enableDefaultAttributesIntegration']('htmlEmbed'),_0x10be04['registerBlockAttribute']('value'),_0x10be04['descriptionFactory']['registerDescriptionCallback'](_0x37c51e=>{if('attribute'!=_0x37c51e['type'])return;const {data:_0x34a2dc}=_0x37c51e;if(_0x34a2dc&&'value'==_0x34a2dc['key']&&_0x37c51e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2ee61a=c(_0x140ad7,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x140ad7,'*Change\x20%0\x20content*',_0x2ee61a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x317070=this['editor'],_0x2b1d8a=_0x317070['locale'];_0x317070['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18215d=>{if('formatBlock'!=_0x18215d['type'])return;const {data:_0x1284e0}=_0x18215d;if(_0x1284e0&&'htmlEmbed'==_0x1284e0['commandName']){const _0x5917bc=c(_0x2b1d8a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2b1d8a,'*Change\x20%0\x20content*',_0x5917bc)};}});}}class rt extends _0x45b538{['afterInit'](){const _0x1ef38a=this['editor'];if(!_0x1ef38a['plugins']['has']('ImageEditing'))return;const _0x2a18cb=_0x1ef38a['plugins']['get']('TrackChangesEditing'),_0x1ebabe=_0x1ef38a['plugins']['get']('ImageUtils'),_0x24ea26=_0x1ef38a['locale'];_0x2a18cb['enableCommand']('insertImage'),_0x2a18cb['descriptionFactory']['registerElementLabel']('imageBlock',_0x45ac6d=>c(_0x24ea26,'ELEMENT_IMAGE',_0x45ac6d)),_0x2a18cb['descriptionFactory']['registerElementLabel']('imageInline',_0xd426ff=>c(_0x24ea26,'ELEMENT_INLINE_IMAGE',_0xd426ff)),_0x2a18cb['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x24ea26,'ELEMENT_CAPTION')),_0x1ef38a['plugins']['has']('ImageUploadEditing')&&_0x2a18cb['enableCommand']('uploadImage'),_0x1ef38a['plugins']['has']('ImageBlockEditing')&&_0x1ef38a['plugins']['has']('ImageInlineEditing')&&(_0x2a18cb['enableCommand']('imageTypeInline',(_0x3c9c74,_0x5e0c3c)=>{const _0x2a7623=_0x1ebabe['getClosestSelectedImageElement'](_0x1ef38a['model']['document']['selection']);_0x1ef38a['model']['change'](()=>{_0x2a18cb['markBlockFormat'](_0x2a7623,{'commandName':'imageTypeInline','commandParams':[_0x5e0c3c]},[],'convertBlockImageToInline');});}),_0x2a18cb['enableCommand']('imageTypeBlock',(_0x50edbb,_0x2c3de1)=>{_0x1ef38a['model']['change'](_0x2dbdbc=>{let _0x770286=_0x1ebabe['getClosestSelectedImageElement'](_0x1ef38a['model']['document']['selection']),_0x22cfbd=_0x2dbdbc['createRangeOn'](_0x770286);const _0x27139e=_0x1a84d0['fromPosition'](_0x22cfbd['start'],'toPrevious'),_0x43382e=_0x1a84d0['fromPosition'](_0x22cfbd['end'],'toNext');_0x2a18cb['forceDefaultExecution'](()=>_0x50edbb(_0x2c3de1)),_0x770286=_0x1ebabe['getClosestSelectedImageElement'](_0x1ef38a['model']['document']['selection']),_0x22cfbd=_0x2dbdbc['createRangeOn'](_0x770286);const _0x31f5cb=_0x2dbdbc['createRange'](_0x27139e,_0x43382e);_0x27139e['detach'](),_0x43382e['detach'](),_0x2a18cb['markBlockFormat'](_0x770286,{'commandName':'imageTypeInline','commandParams':[_0x2c3de1]},[],'convertInlineImageToBlock'),_0x31f5cb['start']['isBefore'](_0x22cfbd['start'])&&_0x2a18cb['markInsertion'](_0x2dbdbc['createRange'](_0x31f5cb['start'],_0x22cfbd['start']),'convertInlineImageToBlock'),_0x22cfbd['end']['isBefore'](_0x31f5cb['end'])&&_0x2a18cb['markInsertion'](_0x2dbdbc['createRange'](_0x22cfbd['end'],_0x31f5cb['end']),'convertInlineImageToBlock');});}),_0x2a18cb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2a18cb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2a18cb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2a18cb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2a18cb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2a18cb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x16aa3f])=>{const _0xe98011=_0x2a18cb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4cdcbe=_0x16aa3f['start'],_0xb00688=_0x16aa3f['end'];const _0x3818cf=_0x1ef38a['model']['schema']['getNearestSelectionRange'](_0x4cdcbe,'backward'),_0x58efc1=_0x1ef38a['model']['schema']['getNearestSelectionRange'](_0xb00688,'forward');_0x3818cf['isCollapsed']&&(_0x4cdcbe=_0x3818cf['start']),_0x58efc1['isCollapsed']&&(_0xb00688=_0x58efc1['end']),_0xe98011([_0x1ef38a['model']['createRange'](_0x4cdcbe,_0xb00688)]);}),_0x2a18cb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x472610),_0x2a18cb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x472610)),_0x1ef38a['plugins']['has']('ImageCaptionEditing')&&(_0x2a18cb['enableCommand']('toggleImageCaption',(_0x156978,_0x229327)=>{const _0x4db412=_0x1ef38a['plugins']['get']('ImageCaptionUtils');let _0x5ebb76=_0x1ebabe['getClosestSelectedImageElement'](_0x1ef38a['model']['document']['selection']),_0x1ee211=_0x4db412['getCaptionFromImageModelElement'](_0x5ebb76);_0x1ef38a['model']['change'](()=>{if(_0x1ee211)return void _0x2a18cb['markDeletion'](_0x1ef38a['model']['createRangeOn'](_0x1ee211));const _0xb347dd=_0x1ebabe['isBlockImage'](_0x5ebb76);_0x156978(_0x229327),_0x5ebb76=_0x1ebabe['getClosestSelectedImageElement'](_0x1ef38a['model']['document']['selection']),_0x1ee211=_0x4db412['getCaptionFromImageModelElement'](_0x5ebb76),_0x2a18cb['markInsertion'](_0x1ef38a['model']['createRangeOn'](_0x1ee211),_0xb347dd?null:'imageCaption');});}),_0x2a18cb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x472610));const _0x55e9e7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x213561(_0x50f7e0,_0x337974){const _0x2a5cf3=_0x55e9e7['findIndex'](({type:_0x594dc0,subType:_0x2f265c})=>_0x50f7e0['type']==_0x594dc0&&_0x50f7e0['subType']==_0x2f265c),_0x1c8918=_0x55e9e7['findIndex'](({type:_0x284b40,subType:_0x30dd49})=>_0x337974['type']==_0x284b40&&_0x337974['subType']==_0x30dd49);if(_0x2a5cf3<0x0||_0x1c8918<0x0)return!0x1;const _0x1f0682=_0x50f7e0['getFirstRange'](),_0x3902ac=_0x337974['getFirstRange']();if((0x0==_0x2a5cf3||0x1==_0x2a5cf3)&&0x2==_0x1c8918&&_0x1f0682['isIntersecting'](_0x3902ac))return!0x0;if(0x2==_0x2a5cf3&&0x3==_0x1c8918){const _0x1692c0=_0x2a18cb['_findSuggestions'](_0x1f0682,'insertion')['filter'](({suggestion:_0x1a8e74,meta:_0xc861ea})=>_0xc861ea['isOwn']&&'convertInlineImageToBlock'==_0x1a8e74['subType']);if(_0x1692c0['length']>0x1&&_0x3902ac['end']['isEqual'](_0x1f0682['start']))return!0x0;if(0x1==_0x1692c0['length']&&(_0x1f0682['start']['isEqual'](_0x3902ac['end'])||_0x1f0682['end']['isEqual'](_0x3902ac['start'])))return!0x0;}if(0x3==_0x2a5cf3&&0x3==_0x1c8918&&_0x1f0682['start']['isBefore'](_0x3902ac['start'])){const _0xf18c6e=_0x1f0682['end']['nodeAfter'],_0x1ae446=_0x3902ac['start']['nodeBefore'];return _0x1ebabe['isBlockImage'](_0xf18c6e)&&_0xf18c6e===_0x1ae446;}return!0x1;}function _0x472610(_0x461cd3,_0x1a1047){return _0x213561(_0x461cd3,_0x1a1047)?[_0x461cd3,_0x1a1047]:_0x213561(_0x1a1047,_0x461cd3)?[_0x1a1047,_0x461cd3]:null;}_0x1ef38a['plugins']['has']('ImageResize')&&(_0x2a18cb['enableDefaultAttributesIntegration']('resizeImage'),_0x2a18cb['registerBlockAttribute']('resizedWidth'),_0x2a18cb['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x24ea26,'FORMAT_IMAGE_SIZE'))),_0x1ef38a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2a18cb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2a18cb['registerBlockAttribute']('alt')),_0x1ef38a['plugins']['has']('PictureEditing')&&(_0x2a18cb['registerBlockAttribute']('sources'),_0x2a18cb['descriptionFactory']['registerDescriptionCallback'](_0x41351e=>{if('attribute'!=_0x41351e['type'])return;const {data:_0x746554}=_0x41351e;return _0x746554&&'sources'==_0x746554['key']?{'type':'format','content':''}:void 0x0;})),_0x1ef38a['plugins']['has']('ImageSizeAttributes')&&(_0x2a18cb['registerBlockAttribute']('width'),_0x2a18cb['registerBlockAttribute']('height'),_0x2a18cb['descriptionFactory']['registerDescriptionCallback'](_0x499353=>{if('attribute'!=_0x499353['type'])return;const {data:_0x460f95}=_0x499353;return!_0x460f95||'width'!=_0x460f95['key']&&'height'!=_0x460f95['key']?void 0x0:{'type':'format','content':''};})),_0x2a18cb['descriptionFactory']['registerDescriptionCallback'](_0x18c806=>{if(!!_0x55e9e7['find'](({type:_0xef5c0e,subType:_0x3982b4})=>_0x18c806['type']==_0xef5c0e&&_0x18c806['subType']==_0x3982b4))return _0x18c806['previous']?{}:void 0x0;}),_0x2a18cb['descriptionFactory']['registerDescriptionCallback'](_0x1059e8=>{if('insertion'==_0x1059e8['type']||'deletion'==_0x1059e8['type']){const _0x3e8ba3=_0x1059e8['getContainedElement']();if(_0x3e8ba3&&_0x3e8ba3['is']('element','caption'))return{'type':'insertion'==_0x1059e8['type']?'addObject':'removeObject','element':_0x3e8ba3,'quantity':0x1};}}),_0x2a18cb['descriptionFactory']['registerDescriptionCallback'](_0x408e6d=>'formatBlock'==_0x408e6d['type']&&'convertInlineImageToBlock'==_0x408e6d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x408e6d['type']&&'convertBlockImageToInline'==_0x408e6d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2a18cb['descriptionFactory']['registerDescriptionCallback'](_0x326baa=>{if('attribute'!=_0x326baa['type'])return;const {data:_0x1d2e47}=_0x326baa;if(!_0x1d2e47||'alt'!=_0x1d2e47['key'])return;const _0x3945d3=_0x1d2e47['newValue'];return _0x3945d3?{'type':'format','content':c(_0x24ea26,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3945d3+'\x22')}:{'type':'format','content':c(_0x24ea26,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5adca9=this['editor'],_0x16a367=_0x5adca9['locale'];_0x5adca9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e569d=>{if('formatBlock'!=_0x2e569d['type']&&'formatInline'!=_0x2e569d['type'])return;const {data:_0x25b44c}=_0x2e569d;if(_0x25b44c){if('imageTextAlternative'==_0x25b44c['commandName']){const _0x26c72e=_0x25b44c['commandParams'][0x0]['newValue'];return _0x26c72e?{'type':'format','content':c(_0x16a367,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x26c72e+'\x22')}:{'type':'format','content':c(_0x16a367,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x25b44c['commandName']){const _0x21be01=_0x25b44c['commandParams'][0x0]['width'];return _0x21be01?{'type':'format','content':c(_0x16a367,'*Set\x20image\x20width:*\x20%0',_0x21be01)}:{'type':'format','content':c(_0x16a367,'*Reset\x20image\x20width*')};}}});}}class at extends _0x45b538{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x34fefb=this['editor']['locale'],_0x16f2c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x16f2c1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x16f2c1['registerBlockAttribute']('src'),_0x16f2c1['descriptionFactory']['registerDescriptionCallback'](_0x213f93=>{if('attribute'!=_0x213f93['type'])return;const {data:_0x583dda}=_0x213f93;return _0x583dda&&'src'==_0x583dda['key']?_0x583dda['newValue']&&_0x583dda['oldValue']?{'type':'format','content':c(_0x34fefb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1dd978=this['editor']['plugins']['get']('TrackChangesEditing');_0x1dd978['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1dd978['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1dd978['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1dd978['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x90f0f2=this['editor'],_0x480f06=_0x90f0f2['locale'];_0x90f0f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17e6b1=>{if('formatBlock'!=_0x17e6b1['type']&&'formatInline'!=_0x17e6b1['type'])return;const {data:_0x7f08c}=_0x17e6b1;if(!_0x7f08c||'replaceImageSource'!=_0x7f08c['commandName'])return;return{'type':'format','content':c(_0x480f06,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x45b538{['afterInit'](){const _0x2abfb2=this['editor'];if(!_0x2abfb2['plugins']['has']('ImageStyleEditing'))return;const _0x2e2548=_0x2abfb2['plugins']['get']('TrackChangesEditing'),_0x4e24a7=_0x2abfb2['plugins']['get']('ImageUtils'),_0xe0d733={};_0x2e2548['enableCommand']('imageStyle',(_0x4d1c4b,_0x3d4b3d)=>{const _0x4487ce=_0x2abfb2['plugins']['get']('Users')['me'],_0x577eda=_0x2abfb2['commands']['get']('imageStyle');let _0x411c84=_0x4e24a7['getClosestSelectedImageElement'](_0x2abfb2['model']['document']['selection']),_0x492a90=_0x2abfb2['model']['createRangeOn'](_0x411c84),_0x8a4a64=_0x577eda['value'];if(_0x8a4a64==_0x3d4b3d['value'])return;const _0x3aa1a3={'commandName':'imageStyle','commandParams':[_0x3d4b3d],'formatGroupId':_0x81f967()};_0x2abfb2['model']['change'](()=>{if(_0x2e2548['getSuggestions']()['filter'](_0x46efac=>_0x46efac['isInContent']&&_0x4487ce==_0x46efac['author']&&('formatBlock'==_0x46efac['type']||'formatInline'==_0x46efac['type'])&&('imageStylePreApply'==_0x46efac['subType']||'imageStylePostApply'==_0x46efac['subType'])&&_0x46efac['getFirstRange']()['isEqual'](_0x492a90))['forEach'](_0xa17bf7=>_0x2e2548['discardSuggestion'](_0xa17bf7['head'])),_0x411c84=_0x4e24a7['getClosestSelectedImageElement'](_0x2abfb2['model']['document']['selection']),_0x492a90=_0x2abfb2['model']['createRangeOn'](_0x411c84),_0x577eda['refresh'](),_0x2abfb2['commands']['get']('imageTypeInline')['refresh'](),_0x2abfb2['commands']['get']('imageTypeBlock')['refresh'](),_0x8a4a64=_0x577eda['value'],_0x8a4a64!=_0x3d4b3d['value'])return _0x4e24a7['isInlineImage'](_0x411c84)&&_0x577eda['shouldConvertImageType'](_0x3d4b3d['value'],_0x411c84)?(_0x4d1c4b({..._0x3d4b3d,'setImageSizes':!0x1}),_0x411c84=_0x4e24a7['getClosestSelectedImageElement'](_0x2abfb2['model']['document']['selection']),void _0x2e2548['markBlockFormat'](_0x411c84,{..._0x3aa1a3,'commandReversedParams':[{'value':_0x8a4a64||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4e24a7['isBlockImage'](_0x411c84)?_0x2e2548['markBlockFormat'](_0x411c84,_0x3aa1a3,[],'imageStylePostApply'):_0x2e2548['markInlineFormat'](_0x492a90,_0x3aa1a3,'imageStylePostApply'));});});for(const _0x458956 of _0x2abfb2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xe0d733[_0x458956['name']]=_0x458956['title']['toLowerCase']();_0x2e2548['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2e2548['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2e2548['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2e2548['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x38132b])=>{_0x4e24a7['setImageNaturalSizeAttributes'](_0x38132b['getContainedElement']());}),_0x2e2548['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x16b26a,_0x515da7)=>{_0x2e2548['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x16b26a,{'commandName':_0x515da7['commandName'],'commandParams':_0x515da7['commandReversedParams']});}),_0x2e2548['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3f991a,_0x30fd85){if(_0xcd6e12(_0x3f991a,_0x30fd85))return[_0x3f991a,_0x30fd85];if(_0xcd6e12(_0x30fd85,_0x3f991a))return[_0x30fd85,_0x3f991a];return null;});const _0x2969a0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xcd6e12(_0x1ac7f8,_0x244e84){const _0x334545=_0x2969a0['findIndex'](({type:_0x97793,subType:_0x57883f})=>_0x1ac7f8['type']==_0x97793&&_0x1ac7f8['subType']==_0x57883f),_0x396cf6=_0x2969a0['findIndex'](({type:_0x32226e,subType:_0x3c49de})=>_0x244e84['type']==_0x32226e&&_0x244e84['subType']==_0x3c49de);if(_0x334545<0x0||_0x396cf6<0x0)return!0x1;const _0x38ece0=_0x1ac7f8['getFirstRange'](),_0x589a2c=_0x244e84['getFirstRange']();if((0x0==_0x334545||0x1==_0x334545)&&0x2==_0x396cf6&&_0x38ece0['isIntersecting'](_0x589a2c))return!0x0;if(0x2==_0x334545&&0x3==_0x396cf6){const _0x1dab95=_0x2e2548['_findSuggestions'](_0x38ece0,'insertion')['filter'](({suggestion:_0x27fc2e,meta:_0x5bb27a})=>_0x5bb27a['isOwn']&&'convertInlineImageToBlock'==_0x27fc2e['subType']);if(_0x1dab95['length']>0x1&&_0x589a2c['end']['isEqual'](_0x38ece0['start']))return!0x0;if(0x1==_0x1dab95['length']&&(_0x38ece0['start']['isEqual'](_0x589a2c['end'])||_0x38ece0['end']['isEqual'](_0x589a2c['start'])))return!0x0;}if(0x3==_0x334545&&0x3==_0x396cf6&&_0x38ece0['start']['isBefore'](_0x589a2c['start'])){const _0x158798=_0x38ece0['end']['nodeAfter'],_0x354348=_0x589a2c['start']['nodeBefore'];return _0x4e24a7['isBlockImage'](_0x158798)&&_0x158798===_0x354348;}return!0x1;}_0x2abfb2['model']['document']['registerPostFixer'](()=>{let _0x2f6dbb=!0x1;const _0x34572a=Array['from'](_0x2abfb2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40683c,data:_0x341052}of _0x34572a){const {group:_0xc818a4,type:_0x4f2c61,subType:_0x1c1fa3,id:_0x33c88f}=_0x2e2548['_splitMarkerName'](_0x40683c);if('suggestion'==_0xc818a4&&_0x2e2548['hasSuggestion'](_0x33c88f)){if('formatBlock'==_0x4f2c61&&('imageStylePreApply'==_0x1c1fa3||'imageStylePostApply'==_0x1c1fa3)){const _0x19105a=_0x2e2548['getSuggestion'](_0x33c88f);if(_0x341052['newRange']){const _0x161e73=_0x19105a['getFirstRange']()['getContainedElement']();if(_0x4e24a7['isBlockImage'](_0x161e73))continue;_0x2e2548['discardSuggestion'](_0x19105a),_0x2f6dbb=!0x0;}}if('insertion'==_0x4f2c61&&'imageCaption'==_0x1c1fa3&&!_0x341052['newRange']){const _0x208e56=_0x2e2548['getSuggestion'](_0x33c88f);_0x208e56['next']&&_0x208e56['next']['isInContent']&&(_0x2e2548['discardSuggestion'](_0x208e56['next']),_0x2f6dbb=!0x0);}}}return _0x2f6dbb;}),this['_registerLegacyDescription'](_0xe0d733);}['_registerLegacyDescription'](_0x45bc3d){const _0x213ee1=this['editor'],_0x12526a=_0x213ee1['locale'];_0x213ee1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x115b73=>{if('formatBlock'!=_0x115b73['type']&&'formatInline'!=_0x115b73['type'])return;const {data:_0x584515}=_0x115b73;if(!_0x584515||'imageStyle'!=_0x584515['commandName'])return;const _0x5ca7b7=_0x584515['commandParams'][0x0]['value'];return _0x457ce0('side'===_0x5ca7b7?c(_0x12526a,'FORMAT_SIDE_IMAGE'):_0x45bc3d[_0x5ca7b7]||_0x5ca7b7);function _0x457ce0(_0x4de303){return{'type':'format','content':c(_0x12526a,'*Format:*\x20%0',_0x4de303)};}});}}class ut extends _0x45b538{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5c4857){super(_0x5c4857),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2e4126=this['editor'],_0x52f676=_0x2e4126['commands']['get']('importWord'),_0xdea98a=_0x2e4126['commands']['get']('trackChanges');_0x52f676&&(_0x52f676['on']('execute',(_0x4f978d,[,_0x34bd02])=>{this['_trackChangesValueDuringImport']=_0xdea98a['value'],_0x34bd02['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x52f676,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x52f676,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xdea98a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2e4126['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x320212,_0x21663a){const {suggestions:_0x3a21ae}=_0x21663a,_0x5b68ad=this['editor']['commands']['get']('trackChanges'),_0x5f5755=_0x5b68ad['value'];this['_trackChangesValueDuringImport']!==_0x5f5755&&(_0x5b68ad['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a21ae&&_0x3a21ae['forEach'](({id:_0xed3d48,type:_0xfa3cef,author:_0x244aa7,created_at:_0x519833})=>{const _0x47e44e={'id':_0xed3d48,'type':_0xfa3cef,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x244aa7,'createdAt':_0x519833?new Date(_0x519833):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x47e44e);});}}class ft extends _0x45b538{['afterInit'](){const _0x2a82ae=this['editor'],_0x1992f9=_0x2a82ae['plugins']['get']('TrackChangesEditing');if(_0x2a82ae['plugins']['has']('IndentEditing')&&(_0x1992f9['enableCommand']('indent'),_0x1992f9['enableCommand']('outdent')),_0x2a82ae['plugins']['has']('IndentBlock')){for(const _0x53c5ce of['indentBlock','outdentBlock'])_0x1992f9['enableDefaultAttributesIntegration'](_0x53c5ce);}const _0x11ed97=_0x2a82ae['locale'];_0x1992f9['registerBlockAttribute']('blockIndent'),_0x1992f9['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x11ed97,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33a56c=this['editor'],_0x5b183f=_0x33a56c['locale'],_0x50c293=_0x33a56c['plugins']['get']('TrackChangesEditing');_0x50c293['descriptionFactory']['registerDescriptionCallback'](_0x157e67=>{if('formatBlock'!=_0x157e67['type'])return;const {data:_0x4eaaa9}=_0x157e67;if(!_0x4eaaa9)return;if('indentBlock'!=_0x4eaaa9['commandName']&&'outdentBlock'!=_0x4eaaa9['commandName'])return;const _0x1f7eb4=_0x157e67['getItems']()[0x0],_0x4bf83b=_0x50c293['descriptionFactory']['getItemLabel'](_0x1f7eb4);return'indentBlock'==_0x4eaaa9['commandName']?{'type':'format','content':c(_0x5b183f,'*Indent:*\x20%0',_0x4bf83b)}:'outdentBlock'==_0x4eaaa9['commandName']?{'type':'format','content':c(_0x5b183f,'*Outdent:*\x20%0',_0x4bf83b)}:void 0x0;});}}class ht extends _0x45b538{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x45b538{['afterInit'](){const _0x324f48=this['editor'];if(!_0x324f48['plugins']['has']('LinkEditing'))return;const _0x9458b2=_0x324f48['plugins']['get']('TrackChangesEditing'),_0x3ba3b1=_0x324f48['commands']['get']('link');_0x9458b2['enableDefaultAttributesIntegration']('link'),_0x9458b2['enableDefaultAttributesIntegration']('unlink'),_0x9458b2['registerInlineAttribute']('linkHref');for(const _0x5e2874 of _0x3ba3b1['manualDecorators'])_0x9458b2['registerInlineAttribute'](_0x5e2874['id']),_0x9458b2['descriptionFactory']['registerAttributeLabel'](_0x5e2874['id'],'link\x20('+_0x5e2874['label']['toLowerCase']()+')');_0x9458b2['descriptionFactory']['registerDescriptionCallback'](_0x15b9ab=>{if('attribute'!=_0x15b9ab['type'])return;const {data:_0x5caeab}=_0x15b9ab;if(!_0x5caeab||'linkHref'!=_0x5caeab['key'])return;const _0x386cf5=_0x5caeab['newValue'],_0x19d303=_0x324f48['locale'];return{'type':'format','content':null==_0x386cf5?c(_0x19d303,'*Remove\x20link*'):c(_0x19d303,'*Set\x20link:*\x20%0','\x22'+_0x386cf5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10c9f6=this['editor'],_0x2e8e0e=_0x10c9f6['locale'];_0x10c9f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b7468=>{if('formatInline'!=_0x2b7468['type'])return;const {data:_0x401dab}=_0x2b7468;if(_0x401dab){if('link'==_0x401dab['commandName']){const _0x5335a2=_0x401dab['commandParams'][0x0];return{'type':'format','content':c(_0x2e8e0e,'*Set\x20link:*\x20%0','\x22'+_0x5335a2+'\x22')};}return'unlink'==_0x401dab['commandName']?{'type':'format','content':c(_0x2e8e0e,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x45b538{['afterInit'](){const _0x24c8b1=this['editor'],_0xd94831=_0x24c8b1['locale'];if(!_0x24c8b1['plugins']['has']('LegacyListEditing'))return;const _0x3b4c0c=_0x24c8b1['plugins']['get']('TrackChangesEditing'),_0x1651dd=_0x24c8b1['plugins']['has']('LegacyTodoListEditing');function _0x3b4a33(_0xc419c0){return()=>{const _0x2b97ff=_0x24c8b1['model']['document']['selection'],_0x64f190=_0x24c8b1['commands']['get'](_0xc419c0);if(_0x64f190['value'])return void _0x24c8b1['execute']('paragraph',{});const _0x5b91ed=_0xc419c0['slice'](0x0,-0x4),_0x56eb24=function(_0x345410,_0x44778c,_0x600147){let _0x304fa9=Array['from'](_0x345410)['filter'](_0x227fa9=>function(_0x29c650,_0x5a896b){return _0x5a896b['checkChild'](_0x29c650['parent'],'listItem')&&!_0x5a896b['isObject'](_0x29c650);}(_0x227fa9,_0x600147));_0x304fa9=_0x304fa9['filter'](_0x3588bd=>!_0x3588bd['is']('element','listItem')||_0x3588bd['getAttribute']('listType')!=_0x44778c);const _0x5507ec=new Set();for(const _0x31f155 of _0x304fa9)_0x31f155['is']('element','listItem')?_0x5507ec['add'](Le(_0x31f155)):_0x5507ec['add'](_0x31f155);return Array['from'](_0x5507ec);}(_0x2b97ff['getSelectedBlocks'](),_0x5b91ed,_0x24c8b1['model']['schema']);_0x24c8b1['model']['change'](()=>{for(const _0x2b0fa2 of _0x56eb24)_0x3b4c0c['markBlockFormat'](_0x2b0fa2,{'commandName':_0xc419c0,'commandParams':[{'forceValue':!_0x64f190['value']}],'formatGroupId':'blockName'},Ee(_0x2b0fa2));});};}function _0x206782(_0x338f58){return()=>{const _0x589953=function(_0x3fd92e){let _0x58d3b4=Array['from'](_0x3fd92e);const _0x61b413=_0x58d3b4['findIndex'](_0x165026=>'listItem'!=_0x165026['name']);return _0x61b413>-0x1&&(_0x58d3b4=_0x58d3b4['slice'](0x0,_0x61b413)),_0x58d3b4;}(_0x24c8b1['model']['document']['selection']['getSelectedBlocks']()),_0x2a6c78=_0x24c8b1['model']['createRange'](_0x24c8b1['model']['createPositionAt'](_0x589953[0x0],'before'),_0x24c8b1['model']['createPositionAt'](_0x589953[_0x589953['length']-0x1],'end'));_0x24c8b1['model']['change'](()=>{_0x3b4c0c['markBlockFormat'](_0x2a6c78,{'commandName':_0x338f58,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2f9b45){const _0x49c55d=new Set();for(const _0x5bff3f of _0x2f9b45){let _0xf5e7d9=_0x5bff3f['nextSibling'];for(;_0xf5e7d9&&_0xf5e7d9['getAttribute']('listIndent')>_0x5bff3f['getAttribute']('listIndent');)_0x49c55d['add'](_0xf5e7d9),_0xf5e7d9=_0xf5e7d9['nextSibling'];}return Array['from'](_0x49c55d);}(_0x589953));});};}_0x3b4c0c['enableCommand']('numberedList',_0x3b4a33('numberedList')),_0x3b4c0c['enableCommand']('bulletedList',_0x3b4a33('bulletedList')),_0x1651dd&&_0x3b4c0c['enableCommand']('todoList',_0x3b4a33('todoList')),_0x3b4c0c['enableCommand']('indentList',_0x206782('indentList')),_0x3b4c0c['enableCommand']('outdentList',_0x206782('outdentList')),_0x1651dd&&_0x3b4c0c['enableCommand']('checkTodoList',()=>{const _0x23c9d4=_0x24c8b1['commands']['get']('checkTodoList'),_0x330dfb=Array['from'](_0x23c9d4['_selectedElements']);_0x330dfb['filter'](_0x524d5a=>_0x524d5a['getAttribute']('todoListChecked')!=_0x23c9d4['value']),_0x24c8b1['model']['change'](()=>{for(const _0x40a708 of _0x330dfb)_0x3b4c0c['markBlockFormat'](_0x40a708,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x23c9d4['value']}]});});}),_0x3b4c0c['descriptionFactory']['registerElementLabel']('listItem',_0x42accf=>c(_0xd94831,'ELEMENT_LIST_ITEM',_0x42accf)),_0x3b4c0c['descriptionFactory']['registerDescriptionCallback'](_0x3e0907=>{if('formatBlock'!=_0x3e0907['type']&&'formatInline'!=_0x3e0907['type'])return;const {data:_0x40faf5}=_0x3e0907;if(_0x40faf5){if('numberedList'==_0x40faf5['commandName']||'bulletedList'==_0x40faf5['commandName']||'todoList'==_0x40faf5['commandName'])switch(_0x40faf5['commandName']['replace']('List','')){case'bulleted':return _0x34d848(c(_0xd94831,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34d848(c(_0xd94831,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34d848(c(_0xd94831,'ELEMENT_TODO_LIST'));}if('indentList'==_0x40faf5['commandName'])return{'type':'format','content':c(_0xd94831,'*Indent:*\x20%0',c(_0xd94831,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x40faf5['commandName'])return{'type':'format','content':c(_0xd94831,'*Outdent:*\x20%0',c(_0xd94831,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x40faf5['commandName'])return _0x40faf5['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xd94831,'*Check\x20item*')}:{'type':'format','content':c(_0xd94831,'*Uncheck\x20item*')};}function _0x34d848(_0x1dddef){return{'type':'format','content':c(_0xd94831,'*Change\x20to:*\x20%0',_0x1dddef)};}});}}function Le(_0x2cd6eb){const _0x221716=_0x2cd6eb['getAttribute']('listIndent');if(0x0==_0x221716)return _0x2cd6eb;let _0x37dcd1=_0x2cd6eb;for(;_0x2cd6eb['previousSibling']&&_0x2cd6eb['previousSibling']['is']('element','listItem');){const _0x2af65a=_0x2cd6eb['previousSibling']['getAttribute']('listIndent');if(_0x2af65a==_0x221716)_0x37dcd1=_0x2cd6eb['previousSibling'];else{if(_0x2af65a<_0x221716)break;}_0x2cd6eb=_0x2cd6eb['previousSibling'];}return _0x37dcd1;}function Ee(_0x8fea91){const _0x541489=[];if(_0x8fea91['is']('element','listItem')&&_0x8fea91['getAttribute']('listIndent')>0x0){let _0x3ff53f=_0x8fea91['nextSibling'];for(;_0x3ff53f&&'listItem'==_0x3ff53f['name']&&_0x3ff53f['getAttribute']('listIndent')==_0x8fea91['getAttribute']('listIndent');)_0x541489['push'](_0x3ff53f),_0x3ff53f=_0x3ff53f['nextSibling'];}return _0x541489;}class Q extends _0x45b538{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x210850=this['editor']['config']['get']('list.properties'),_0x5dd0f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x210850['styles']&&_0x5dd0f3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x210850['reversed']&&_0x5dd0f3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x210850['startIndex']&&_0x5dd0f3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5dd0f3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x455086,_0x10cb7d={}){const _0x6ea7cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c6fb9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x6ea7cf['markMultiRangeBlockFormat'](_0x4c6fb9,{'commandName':'listStyle','commandParams':[{'type':_0x10cb7d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x533026,_0x15a1df={}){const _0x4261fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ed738=this['_getSuggestionBlocks'](_0x5ee22d=>_0x5ee22d['is']('element','listItem')&&'numbered'===_0x5ee22d['getAttribute']('listType'));if(_0x5ed738['length']<0x1)return;const _0x15d676=_0x5ed738['map'](_0x4b1f11=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b1f11,'before'),this['editor']['model']['createPositionAt'](_0x4b1f11,0x0)));this['editor']['model']['change'](()=>{_0x4261fe['markMultiRangeBlockFormat'](_0x15d676,{'commandName':'listReversed','commandParams':[{'reversed':_0x15a1df['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x266d7b,_0x3a394a={}){const _0x1ddca6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20b1ac=this['_getSuggestionBlocks'](_0x3c0a0b=>_0x3c0a0b['is']('element','listItem')&&'numbered'===_0x3c0a0b['getAttribute']('listType'));if(_0x20b1ac['length']<0x1)return;const _0x43a760=_0x20b1ac['map'](_0x12dbac=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12dbac,'before'),this['editor']['model']['createPositionAt'](_0x12dbac,0x0)));this['editor']['model']['change'](()=>{_0x1ddca6['markMultiRangeBlockFormat'](_0x43a760,{'commandName':'listStart','commandParams':[{'startIndex':_0x3a394a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x22818b){if('formatBlock'!=_0x22818b['type']&&'formatInline'!=_0x22818b['type'])return;const _0x58d99d=this['editor']['locale'],{data:_0x389665}=_0x22818b;if(!_0x389665)return;let _0x483c33,_0x5c4a28;switch(_0x389665['commandName']){case'listStyle':_0x483c33='*Change\x20to:*\x20%0',_0x5c4a28={'type':'format','content':c(_0x58d99d,_0x483c33,c(_0x58d99d,this['_getTranslationKeyForListStyle'](_0x389665['commandParams'][0x0]['type'])))};break;case'listReversed':_0x483c33=_0x389665['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c4a28={'type':'format','content':c(_0x58d99d,_0x483c33)};break;case'listStart':_0x483c33='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c4a28={'type':'format','content':c(_0x58d99d,_0x483c33,_0x389665['commandParams'][0x0]['startIndex'])};}return _0x5c4a28;}['_getSuggestionBlocksForListStyle'](){const _0x17ee26=this['editor']['plugins']['get']('LegacyListUtils');let _0x24b26a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x24b26a[0x0]?.['is']('element','listItem')&&_0x24b26a['unshift'](..._0x17ee26['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x24b26a[_0x24b26a['length']-0x1]?.['is']('element','listItem')&&_0x24b26a['push'](..._0x17ee26['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x24b26a=[...new Set(_0x24b26a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x24b26a=_0x24b26a['filter'](_0x38410e=>_0x38410e['is']('element','listItem'))),_0x24b26a;}['_getSuggestionBlocks'](_0x293da6){const _0x3dc3fc=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c58f8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x293da6)['map'](_0x129dec=>{const _0x5f2423=this['editor']['model']['createPositionAt'](_0x129dec,0x0);return[..._0x3dc3fc['getSiblingNodes'](_0x5f2423,'backward'),..._0x3dc3fc['getSiblingNodes'](_0x5f2423,'forward')];})['flat']();return _0x4c58f8=[...new Set(_0x4c58f8)],_0x4c58f8;}['_getTranslationKeyForListStyle'](_0x1a809f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1a809f)||'default')['toUpperCase']()+'_LIST_'+_0x1a809f['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x45b538{['afterInit'](){const _0x3a09f7=this['editor'];if(!_0x3a09f7['plugins']['has']('MediaEmbedEditing'))return;const _0x516982=_0x3a09f7['plugins']['get']('TrackChangesEditing'),_0x230466=_0x3a09f7['locale'];_0x516982['enableCommand']('mediaEmbed'),_0x516982['descriptionFactory']['registerElementLabel']('media',_0x3e012b=>c(_0x230466,'ELEMENT_MEDIA',_0x3e012b)),_0x3a09f7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4fd515,{writer:_0x9b5666,options:_0x30ffd3})=>{if(_0x30ffd3['showSuggestionHighlights'])return _0x9b5666['createEmptyElement']('div');},'converterPriority':'high'}),_0x3a09f7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x9609ce,_0x31fd72,_0xdd9704)=>{_0xdd9704['options']['showSuggestionHighlights']&&_0x9609ce['stop']();},{'priority':'high'});}}class pt extends _0x45b538{['afterInit'](){const _0x5e2cc1=this['editor'];_0x5e2cc1['plugins']['has']('MentionEditing')&&_0x5e2cc1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x45b538{['afterInit'](){const _0x55f3bc=this['editor'];if(!_0x55f3bc['plugins']['has']('MergeFieldsEditing'))return;const _0x1913f6=_0x55f3bc['plugins']['get']('TrackChangesEditing'),_0x5d6f5e=_0x55f3bc['locale'];_0x1913f6['enableCommand']('insertMergeField'),_0x1913f6['enableCommand']('insertMergeFieldBlock'),_0x1913f6['enableCommand']('insertMergeFieldImage'),_0x1913f6['descriptionFactory']['registerElementLabel']('mergeField',_0x5ecee2=>c(_0x5d6f5e,'ELEMENT_MERGE_FIELD',_0x5ecee2)),_0x1913f6['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x22280a=>c(_0x5d6f5e,'ELEMENT_MERGE_FIELD',_0x22280a)),_0x1913f6['descriptionFactory']['registerDescriptionCallback'](_0x201355=>{if('insertion'!=_0x201355['type']&&'deletion'!=_0x201355['type'])return;const _0x1e5992=_0x201355['getContainedElement']();if(null==_0x1e5992)return;const _0x3d96b2=_0x55f3bc['plugins']['get']('MergeFieldsEditing');let _0xcffee4;switch(_0x3d96b2['getMergeFieldType'](_0x1e5992)){case null:return;case'image':{const _0x1a2a74=_0x3d96b2['unwrapAffixes'](_0x1e5992['getAttribute']('src'));_0xcffee4=_0x3d96b2['getLabel'](_0x1a2a74)||_0x1a2a74;break;}default:{const _0xb869e6=_0x1e5992['getAttribute']('id');_0xcffee4=_0x3d96b2['getLabel'](_0xb869e6)||_0xb869e6;break;}}return'insertion'==_0x201355['type']?{'type':'insertion','content':c(_0x5d6f5e,'*Insert:*\x20%0','\x22'+_0xcffee4+'\x22\x20'+c(_0x5d6f5e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5d6f5e,'*Remove:*\x20%0','\x22'+_0xcffee4+'\x22\x20'+c(_0x5d6f5e,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x45b538{['afterInit'](){const _0x462b25=this['editor'],_0x52f4cc=_0x462b25['plugins']['get']('TrackChangesEditing');_0x462b25['plugins']['has']('MultiLevelList')&&(_0x52f4cc['enableDefaultAttributesIntegration']('multiLevelList'),_0x52f4cc['registerBlockAttribute']('listMarkerStyle'),_0x52f4cc['descriptionFactory']['registerDescriptionCallback'](_0x2fe402=>this['handleDescriptions'](_0x2fe402)));}['handleDescriptions'](_0x4a1552){const _0x52ad04=this['editor']['locale'],{data:_0x5d8f72}=_0x4a1552,_0x46ac99={'type':'format','content':''};if(_0x5d8f72&&'listMarkerStyle'==_0x5d8f72['key']){if(!_0x5d8f72['oldValue'])return{'type':'format','content':c(_0x52ad04,'*Set\x20format:*\x20%0',c(_0x52ad04,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d8f72['newValue']+')'};if(!_0x5d8f72['newValue']){let _0x34daa8=_0x4a1552['head'];for(;_0x34daa8;){if(_0x34daa8['data']&&'listType'==_0x34daa8['data']['key']&&_0x34daa8['data']['newValue'])return _0x46ac99;_0x34daa8=_0x34daa8['next'];}return{'type':'format','content':c(_0x52ad04,'*Remove\x20format:*\x20%0',c(_0x52ad04,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d8f72['oldValue']+')'};}}}}class bt extends _0x45b538{['afterInit'](){const _0x591015=this['editor'];if(!_0x591015['plugins']['has']('PageBreakEditing'))return;_0x591015['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x27f4d3=_0x591015['plugins']['get']('TrackChangesEditing'),_0x27f9d1=_0x591015['locale'];_0x27f4d3['descriptionFactory']['registerElementLabel']('pageBreak',_0x498c37=>c(_0x27f9d1,'ELEMENT_PAGE_BREAK',_0x498c37));}}class yt extends _0x45b538{['afterInit'](){const _0xd1c9a3=this['editor'];if(!_0xd1c9a3['plugins']['has']('Paragraph'))return;const _0x1509e9=_0xd1c9a3['locale'],_0x13eb20=_0xd1c9a3['plugins']['get']('TrackChangesEditing');_0x13eb20['descriptionFactory']['registerElementLabel']('paragraph',_0x4d7c44=>c(_0x1509e9,'ELEMENT_PARAGRAPH',_0x4d7c44)),_0x13eb20['enableDefaultAttributesIntegration']('paragraph'),_0x13eb20['enableCommand']('insertParagraph'),_0xd1c9a3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xd1c9a3),{'priority':'highest'}),_0xd1c9a3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16dca5,_0x3b0751,_0x5021cd)=>{_0x5021cd['options']['showSuggestionHighlights']&&nr(_0xd1c9a3,{'showActiveMarker':!0x1})(_0x16dca5,_0x3b0751,_0x5021cd);},{'priority':'highest'});const _0x3fbb61=_0x13eb20['descriptionFactory'];_0x3fbb61['registerDescriptionCallback'](_0x47f0e3=>{if('insertion'!==_0x47f0e3['type'])return;const {start:_0x3470ec,end:_0x5965a9}=_0x47f0e3['getFirstRange']();if(!_0x3470ec['isTouching'](_0x5965a9)||!_0x3470ec['nodeAfter'])return;const _0x5e3d32=_0xd1c9a3['model']['schema'],_0x123240=_0x3470ec['nodeAfter'];return _0x5e3d32['isBlock'](_0x123240)&&!_0x5e3d32['isLimit'](_0x123240)&&_0x5e3d32['checkChild'](_0x123240,'$text')?{'type':'insertion','content':c(_0x1509e9,'*Insert:*\x20%0',_0x3fbb61['getItemLabel'](_0x123240,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30ece4=this['editor'],_0x3130d2=_0x30ece4['locale'];_0x30ece4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x435f4c=>{if('formatBlock'!=_0x435f4c['type'])return;const {data:_0x2079d2}=_0x435f4c;return _0x2079d2&&'paragraph'==_0x2079d2['commandName']?{'type':'format','content':c(_0x3130d2,'*Change\x20to:*\x20%0',c(_0x3130d2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x211ff8,{showActiveMarker:_0xc2e00=!0x0}={}){return(_0x3aad51,_0x4f3fd5,_0x295fd9)=>{const _0x4e180a=_0x211ff8['plugins']['get']('TrackChangesEditing'),_0x363733=_0x4f3fd5['markerRange']['start'],_0x3194dd=_0x4f3fd5['markerRange']['end'],_0x2d7d57=_0x211ff8['model']['schema'];if(!_0x363733['isTouching'](_0x3194dd)||!_0x363733['nodeAfter'])return;const _0x4d8ef6=_0x363733['nodeAfter'];if(_0x2d7d57['isBlock'](_0x4d8ef6)&&!_0x2d7d57['isLimit'](_0x4d8ef6)&&_0x2d7d57['checkChild'](_0x4d8ef6,'$text')){if(!_0x295fd9['consumable']['consume'](_0x4f3fd5['markerRange'],_0x3aad51['name']))return;const {authorId:_0x1a4767}=_0x4e180a['_splitMarkerName'](_0x4f3fd5['markerName']),_0x242f26=_0x295fd9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1a4767}),_0x732a74=_0x295fd9['mapper']['toViewPosition'](_0x3194dd);_0xc2e00&&_0x4e180a['activeMarkers']['includes'](_0x4f3fd5['markerName'])&&_0x295fd9['writer']['addClass']('ck-suggestion-marker--active',_0x242f26),_0x295fd9['writer']['insert'](_0x732a74,_0x242f26),_0x295fd9['mapper']['bindElementToMarker'](_0x242f26,_0x4f3fd5['markerName']);}};}class jt extends _0x45b538{['afterInit'](){const _0x4cf198=this['editor'];_0x4cf198['commands']['get']('replaceSource')&&_0x4cf198['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x45b538{['afterInit'](){const _0x534494=this['editor'];if(!_0x534494['plugins']['has']('RemoveFormatEditing'))return;_0x534494['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1f5c=this['editor'];_0x1e1f5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29899f=>{if('formatBlock'!=_0x29899f['type']&&'formatInline'!=_0x29899f['type'])return;const {data:_0x525466}=_0x29899f;return _0x525466&&'removeFormat'==_0x525466['commandName']?{'type':'format','content':c(_0x1e1f5c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x45b538{['afterInit'](){const _0x321846=this['editor'];if(!_0x321846['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x50b7c6=_0x321846['plugins']['get']('TrackChangesEditing');_0x50b7c6['enableCommand']('goToPreviousRestrictedEditingException'),_0x50b7c6['enableCommand']('goToNextRestrictedEditingException');const _0x40baf0=_0x321846['plugins']['get']('RestrictedEditingModeEditing');_0x40baf0['enableCommand']('trackChanges'),_0x40baf0['enableCommand']('acceptSuggestion'),_0x40baf0['enableCommand']('discardSuggestion'),_0x40baf0['enableCommand']('acceptAllSuggestions'),_0x40baf0['enableCommand']('discardAllSuggestions'),_0x40baf0['enableCommand']('acceptSelectedSuggestions'),_0x40baf0['enableCommand']('discardSelectedSuggestions');}}class It extends _0x45b538{['afterInit'](){const _0x5f320e=this['editor'];if(!_0x5f320e['plugins']['has']('ShiftEnter'))return;const _0x1aa631=_0x5f320e['plugins']['get']('TrackChangesEditing');_0x1aa631['enableCommand']('shiftEnter'),_0x5f320e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5f320e),{'priority':'high'}),_0x5f320e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5f320e),{'priority':'high'}),_0x5f320e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x579df2,_0x1782aa,_0xa1336)=>{_0xa1336['options']['showSuggestionHighlights']&&je(_0x5f320e,{'showActiveMarker':!0x1})(_0x579df2,_0x1782aa,_0xa1336);}),_0x1aa631['descriptionFactory']['registerElementLabel']('softBreak',_0x31a104=>c(_0x5f320e['locale'],'ELEMENT_LINE_BREAK',_0x31a104));}}function je(_0x433e5b,{showActiveMarker:_0x4bfd84=!0x0}={}){return(_0x527e1b,_0x418c1f,_0x5b1acd)=>{const _0x235eff=_0x433e5b['plugins']['get']('TrackChangesEditing');if(!_0x5b1acd['consumable']['test'](_0x418c1f['markerRange'],_0x527e1b['name']))return;const _0x360abd=_0x433e5b['model'];for(const _0x5ae196 of _0x418c1f['markerRange']['getItems']()){if(!_0x5ae196['is']('element','softBreak'))continue;const _0x337ddb='deletion'==_0x418c1f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1d1309}=_0x235eff['_splitMarkerName'](_0x418c1f['markerName']),_0x4eee43=_0x5b1acd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x337ddb,'data-author-id':_0x1d1309}),_0x3438f2=_0x5b1acd['mapper']['toViewPosition'](_0x360abd['createPositionBefore'](_0x5ae196));_0x4bfd84&&_0x235eff['activeMarkers']['includes'](_0x418c1f['markerName'])&&_0x5b1acd['writer']['addClass']('ck-suggestion-marker--active',_0x4eee43),_0x5b1acd['writer']['insert'](_0x3438f2,_0x4eee43),_0x5b1acd['mapper']['bindElementToMarker'](_0x4eee43,_0x418c1f['markerName']);}};}class _t extends _0x45b538{['afterInit'](){const _0x142124=this['editor'],_0x4d01b2=_0x142124['model'],_0x19f555=_0x142124['locale'];if(!_0x142124['plugins']['has']('StandardEditingModeEditing'))return;const _0x4950ca=_0x142124['plugins']['get']('TrackChangesEditing'),_0xbec045='restrictedEditingException',_0x1ac95e=_0x142124['commands']['get'](_0xbec045);_0x4950ca['enableCommand'](_0xbec045,(_0x360099,_0x252e60={})=>{const _0x28de2c=_0x4d01b2['document']['selection'];if(_0x28de2c['isCollapsed'])return void _0x360099(_0x252e60);const _0x51d655=void 0x0!==_0x252e60['forceValue']?_0x252e60['forceValue']:!_0x1ac95e['value'];_0x4d01b2['change'](()=>{const _0x4ba068=Array['from'](_0x28de2c['getRanges']());for(const _0x5f1e13 of _0x4ba068){const _0x294031=_0x51d655?[_0x5f1e13]:io(_0xbec045,_0x5f1e13,_0x4d01b2);for(const _0x1f30fc of _0x294031)_0x4950ca['markInlineFormat'](_0x1f30fc,{'commandName':_0xbec045,'commandParams':[{'forceValue':_0x51d655}]});}});}),_0x4950ca['descriptionFactory']['registerDescriptionCallback'](_0x191b11=>{if('formatBlock'!=_0x191b11['type']&&'formatInline'!=_0x191b11['type'])return;const {data:_0xac619c}=_0x191b11;return _0xac619c&&_0xac619c['commandName']==_0xbec045?_0xac619c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x19f555,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x19f555,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x45b538{['afterInit'](){const _0x41a0ce=this['editor'];if(!_0x41a0ce['plugins']['has']('Style')||!_0x41a0ce['plugins']['has']('DataSchema'))return;const _0x3a8073=_0x41a0ce['plugins']['get']('TrackChangesEditing'),_0x5d4cc9=_0x41a0ce['locale'],_0xdaf55d=_0x41a0ce['config']['get']('style')||{},_0x231895=_0x41a0ce['plugins']['get']('GeneralHtmlSupport'),_0x1560f0=_0x41a0ce['plugins']['get']('StyleUtils')['normalizeConfig'](_0x41a0ce['plugins']['get']('DataSchema'),_0xdaf55d['definitions']);_0x3a8073['enableDefaultAttributesIntegration']('style');const _0x260138=new Set();for(const _0xa9ae18 of _0x1560f0['block']){const _0x302334=_0x231895['getGhsAttributeNameForElement'](_0xa9ae18['element']);_0x260138['add'](_0x302334);}const _0x5d9e53=new Set();for(const _0x5f3395 of _0x1560f0['inline']){const _0x299364=_0x231895['getGhsAttributeNameForElement'](_0x5f3395['element']);_0x5d9e53['add'](_0x299364);for(const _0x2627b6 of _0x5f3395['ghsAttributes'])_0x5d9e53['add'](_0x2627b6);}for(const _0x25ac97 of _0x260138)_0x3a8073['registerBlockAttribute'](_0x25ac97),_0x3a8073['descriptionFactory']['registerAttributeLabel'](_0x25ac97,c(_0x5d4cc9,'FORMAT_STYLE'));for(const _0x598571 of _0x5d9e53)_0x3a8073['registerInlineAttribute'](_0x598571),_0x3a8073['descriptionFactory']['registerAttributeLabel'](_0x598571,c(_0x5d4cc9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34bffc=this['editor'],_0x817943=_0x34bffc['locale'];_0x34bffc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35172d=>{if('formatBlock'!=_0x35172d['type']&&'formatInline'!=_0x35172d['type'])return;const {data:_0x35b27e}=_0x35172d;return _0x35b27e&&'style'===_0x35b27e['commandName']?_0x35b27e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x817943,'*Set\x20format:*\x20%0',_0x35b27e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x817943,'*Remove\x20format:*\x20%0',_0x35b27e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x45b538{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x10f038){super(_0x10f038),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4c0c3c=this['editor'],_0x1ab55e=_0x4c0c3c['model']['document']['selection'];if(!_0x4c0c3c['plugins']['has']('TableEditing'))return;const _0x58c69a=_0x4c0c3c['locale'],_0x4f3d77=_0x4c0c3c['plugins']['get']('TrackChangesEditing'),_0x3cb958=_0x4c0c3c['plugins']['get']('TableUtils');_0x4f3d77['descriptionFactory']['registerElementLabel']('table',_0x28ccbe=>c(_0x58c69a,'ELEMENT_TABLE',_0x28ccbe)),this['_setupColumnsRowsFixing'](),_0x4f3d77['enableCommand']('insertTable'),_0x4f3d77['enableCommand']('selectTableRow'),_0x4f3d77['enableCommand']('selectTableColumn');for(const _0x2be7e1 of['insertTableRowAbove','insertTableRowBelow']){const _0x118ed3=_0x4c0c3c['commands']['get'](_0x2be7e1);_0x4f3d77['enableCommand'](_0x2be7e1,_0x5aa80c=>{_0x4c0c3c['model']['change'](_0x3d08af=>{_0x5aa80c();const _0x45843c='above'===_0x118ed3['order'],_0x2c4d8b=_0x3cb958['getSelectionAffectedTableCells'](_0x1ab55e),_0x334e15=_0x3cb958['getRowIndexes'](_0x2c4d8b),_0x4462a6=_0x45843c?_0x334e15['first']-0x1:_0x334e15['last']+0x1,_0x3573fa=_0x2c4d8b[0x0]['findAncestor']('table'),_0x4a5de3=_0x3cb958['createTableWalker'](_0x3573fa,{'startRow':_0x4462a6,'endRow':_0x4462a6}),_0x1f12ed=Array['from'](_0x4a5de3)['map'](_0x43f122=>_0x3d08af['createRangeOn'](_0x43f122['cell']));_0x4f3d77['markMultiRangeInsertion'](_0x1f12ed,'tableRow');});});}for(const _0x1133af of['insertTableColumnLeft','insertTableColumnRight']){const _0x1e1f71=_0x4c0c3c['commands']['get'](_0x1133af);_0x4f3d77['enableCommand'](_0x1133af,_0x5d1b31=>{_0x4c0c3c['model']['change'](_0x4864c1=>{_0x5d1b31();const _0x206b0a='left'===_0x1e1f71['order'],_0x49bf9d=_0x3cb958['getSelectionAffectedTableCells'](_0x1ab55e),_0x25e1dd=_0x3cb958['getColumnIndexes'](_0x49bf9d),_0x44ad71=_0x206b0a?_0x25e1dd['first']-0x1:_0x25e1dd['last']+0x1,_0x5defd1=_0x49bf9d[0x0]['findAncestor']('table'),_0x1af66c=_0x3cb958['createTableWalker'](_0x5defd1,{'startRow':0x0,'column':_0x44ad71,'includeAllSlots':!0x1}),_0xd260a=Array['from'](_0x1af66c)['map'](_0x4cda7e=>_0x4864c1['createRangeOn'](_0x4cda7e['cell']));_0x4f3d77['markMultiRangeInsertion'](_0xd260a,'tableColumn');});});}for(const _0x318185 of['removeTableRow','removeTableColumn']){const _0x549ac7=_0x318185['substr'](0xb),_0x498c9c=_0x549ac7['toLowerCase'](),_0x351d3a=_0x498c9c['substr'](0x0,0x3)+'span',_0x10ab1d='table'+_0x549ac7,_0x52219e='min'+_0x549ac7,_0xe6229c='max'+_0x549ac7;_0x4f3d77['enableCommand'](_0x318185,()=>{_0x4c0c3c['model']['change'](_0x44c5c5=>{const _0xc1a3dd=_0x3cb958['getSelectionAffectedTableCells'](_0x1ab55e),_0x4d9e67=_0xc1a3dd[0x0]['findAncestor']('table');let _0x48b2fd;if('removeTableRow'==_0x318185){const _0x402927=_0x3cb958['getRowIndexes'](_0xc1a3dd);_0x48b2fd={'startRow':_0x402927['first'],'endRow':_0x402927['last'],'includeAllSlots':!0x0};}else{const _0x2278bb=_0x3cb958['getColumnIndexes'](_0xc1a3dd);_0x48b2fd={'startColumn':_0x2278bb['first'],'endColumn':_0x2278bb['last'],'includeAllSlots':!0x0};}const _0x28e335=_0x3cb958['createTableWalker'](_0x4d9e67,_0x48b2fd),_0xaeecd4=Array['from'](_0x28e335)['map'](({cell:_0x294a13})=>_0x294a13),_0x1ab4b3=Ne(_0xaeecd4['filter'](_0x273a9b=>_0x273a9b['hasAttribute'](_0x351d3a))),_0x4ac3d5=Ne(_0xaeecd4['filter'](_0x3033a9=>!_0x3033a9['hasAttribute'](_0x351d3a)))['map'](_0x3d39c2=>_0x44c5c5['createRangeOn'](_0x3d39c2)),_0x3e7a4d=_0x4f3d77['markMultiRangeDeletion'](_0x4ac3d5,_0x10ab1d);if(_0x3e7a4d&&('tableRow'==_0x3e7a4d['subType']||'tableColumn'==_0x3e7a4d['subType'])){const _0x773313=this['_getSuggestionCoords'](_0x3e7a4d);for(const _0x3e8cb8 of _0x1ab4b3){const _0x6a43fa=_0x44c5c5['createRangeOn'](_0x3e8cb8),_0x572f99=_0x3cb958['getCellLocation'](_0x3e8cb8),_0x3b558e=_0x3e8cb8['getAttribute'](_0x351d3a)-0x1,_0x3d50aa=_0x773313[_0x52219e],_0x9a655d=_0x773313[_0xe6229c];_0x3d50aa<=_0x572f99[_0x498c9c]&&_0x572f99[_0x498c9c]+_0x3b558e<=_0x9a655d&&_0x3e7a4d['addRange'](_0x6a43fa);}}});});}function _0xbe8162(_0x7d8f0f){const _0x2851d0=Array['from'](_0x1ab55e['getRanges']())['map'](_0x1e6253=>_0x488912['fromRange'](_0x1e6253));_0x4c0c3c['model']['change'](_0x30e0b9=>{const _0x1f7b0d=_0x30e0b9['batch'];_0x7d8f0f=_0x7d8f0f['filter'](_0x2edd2f=>'$graveyard'!=_0x2edd2f['root']['rootName']),_0x30e0b9['setSelection'](_0x7d8f0f),_0x4c0c3c['commands']['get']('removeTableRow')['refresh'](),_0x4c0c3c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4c0c3c['model']['enqueueChange'](()=>{_0x4c0c3c['model']['enqueueChange'](_0x1f7b0d,_0x5c9dac=>{const _0x319a11=_0x2851d0['filter'](_0x12d7b0=>'$graveyard'!=_0x12d7b0['root']['rootName']);_0x319a11['length']>0x0&&_0x5c9dac['setSelection'](_0x319a11);for(const _0x43a7d7 of _0x2851d0)_0x43a7d7['detach']();});});});}function _0x5f3c3c(_0x3d91da){_0x4c0c3c['model']['change'](_0x306930=>{const _0x392c86=Array['from'](_0x1ab55e['getRanges']())['map'](_0x3481ef=>_0x488912['fromRange'](_0x3481ef)),_0x5e4312=[];for(const _0x4e2b11 of _0x3d91da)for(const _0x3c1ea1 of _0x4e2b11['getItems']({'shallow':!0x0}))_0x5e4312['push'](_0x3c1ea1);for(const _0x363a26 of _0x5e4312)'$graveyard'!=_0x363a26['root']['rootName']&&(_0x306930['setSelection'](_0x306930['createPositionAt'](_0x363a26,0x0)),_0x4c0c3c['commands']['get']('removeTableColumn')['refresh'](),_0x4c0c3c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x59ef48=_0x392c86['filter'](_0x2b48b1=>'$graveyard'!=_0x2b48b1['root']['rootName']);_0x59ef48['length']>0x0&&_0x306930['setSelection'](_0x59ef48);for(const _0x42c41f of _0x392c86)_0x42c41f['detach']();});}function _0x402ed3(_0x5cdc58,_0x1d530f){return _0x1d530f['every'](_0x5a3258=>_0x5cdc58['some'](_0x2e9ac2=>_0x2e9ac2['end']['isEqual'](_0x5a3258['start'])||_0x5a3258['end']['isEqual'](_0x2e9ac2['start'])));}function _0x37b574(_0x57cad0,_0x18b3cf){return!_0x57cad0['some'](_0x67fec4=>_0x18b3cf['some'](_0x583880=>_0x67fec4['isIntersecting'](_0x583880)))&&_0x57cad0['some'](_0x4cbab8=>_0x18b3cf['some'](_0x40273c=>_0x4cbab8['end']['isTouching'](_0x40273c['start'])));}_0x4c0c3c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45722d,_0x5e67e3,_0x5ae9e9)=>{if(!_0x5ae9e9['options']['showSuggestionHighlights'])return;const _0x3db246=_0x5e67e3['item'];if(!_0x3db246)return;const _0x8129f8=_0x5ae9e9['mapper']['toViewElement'](_0x3db246);function _0x4a8926(_0x3319b7){return Array['isArray'](_0x3319b7)?_0x3319b7:[_0x3319b7];}_0x8129f8&&'tableCell'===_0x3db246['name']&&_0x2b3a76(_0x8129f8,_0x5ae9e9['writer'],(_0x42eda7,_0x402a0b,_0x438202)=>_0x438202['addClass'](_0x4a8926(_0x402a0b['classes']),_0x42eda7),(_0x419ab8,_0x17b928,_0x321338)=>_0x321338['removeClass'](_0x4a8926(_0x17b928['classes']),_0x419ab8));},{'priority':'highest'}),_0x4f3d77['descriptionFactory']['registerDescriptionCallback'](_0x2f9772=>{if('insertion'!=_0x2f9772['type']&&'deletion'!=_0x2f9772['type'])return;const _0x49e245=_0x2f9772['getContainedElement']();if(null!=_0x49e245&&_0x49e245['is']('element','table')){if('insertion'==_0x2f9772['type']){const _0x3f2335=_0x2f9772['getItems']()['filter'](_0xe4992b=>_0xe4992b['is']('$textProxy'))['map'](_0x4c3429=>_0x4c3429['data']);if(_0x3f2335['length'])return{'type':'insertion','content':c(_0x58c69a,'*Insert:*\x20%0',c(_0x58c69a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f2335['join']('\x20')+'\x22'))};}if('deletion'==_0x2f9772['type']){const _0x561742=_0x2f9772['getItems']()['filter'](_0x590af0=>_0x590af0['is']('$textProxy'))['map'](_0x175b82=>_0x175b82['data']);if(_0x561742['length'])return{'type':'deletion','content':c(_0x58c69a,'*Remove:*\x20%0',c(_0x58c69a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x561742['join']('\x20')+'\x22'))};}}}),_0x4f3d77['descriptionFactory']['registerDescriptionCallback'](_0x16bd64=>{if('tableRow'==_0x16bd64['subType']){const _0x349f0e=_0x16bd64['getItems']()['filter'](_0x282186=>_0x282186['is']('$textProxy'))['map'](_0x2d398e=>_0x2d398e['data']),_0x30f753=this['_getSuggestionCoords'](_0x16bd64),_0x2699d5=_0x30f753['maxRow']-_0x30f753['minRow']+0x1;if('insertion'==_0x16bd64['type'])return _0x349f0e['length']?{'type':'insertion','content':c(_0x58c69a,'*Insert:*\x20%0',c(_0x58c69a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2699d5,'\x22'+_0x349f0e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x58c69a,'*Insert:*\x20%0',c(_0x58c69a,'ELEMENT_TABLE_ROW',_0x2699d5))};if('deletion'==_0x16bd64['type'])return _0x349f0e['length']?{'type':'deletion','content':c(_0x58c69a,'*Remove:*\x20%0',c(_0x58c69a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2699d5,'\x22'+_0x349f0e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x58c69a,'*Remove:*\x20%0',c(_0x58c69a,'ELEMENT_TABLE_ROW',_0x2699d5))};}if('tableColumn'==_0x16bd64['subType']){const _0x3006aa=_0x16bd64['getItems']()['filter'](_0x2cad8e=>_0x2cad8e['is']('$textProxy'))['map'](_0x58e636=>_0x58e636['data']),_0x430207=this['_getSuggestionCoords'](_0x16bd64),_0x4dcd7f=_0x430207['maxColumn']-_0x430207['minColumn']+0x1;if('insertion'==_0x16bd64['type'])return _0x3006aa['length']?{'type':'insertion','content':c(_0x58c69a,'*Insert:*\x20%0',c(_0x58c69a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4dcd7f,'\x22'+_0x3006aa['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x58c69a,'*Insert:*\x20%0',c(_0x58c69a,'ELEMENT_TABLE_COLUMN',_0x4dcd7f))};if('deletion'==_0x16bd64['type'])return _0x3006aa['length']?{'type':'deletion','content':c(_0x58c69a,'*Remove:*\x20%0',c(_0x58c69a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4dcd7f,'\x22'+_0x3006aa['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x58c69a,'*Remove:*\x20%0',c(_0x58c69a,'ELEMENT_TABLE_COLUMN',_0x4dcd7f))};}}),_0x4f3d77['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xbe8162),_0x4f3d77['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xbe8162),_0x4f3d77['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5f3c3c),_0x4f3d77['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5f3c3c),_0x4f3d77['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x402ed3),_0x4f3d77['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x402ed3),_0x4f3d77['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x37b574),_0x4f3d77['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x37b574);}['_acceptFormatSuggestionCallbackFactory'](){const _0x175895=this['editor'],_0x25e9b2=_0x175895['model']['document']['selection'];return(_0x5a42f9,_0x2bdb08)=>{_0x175895['model']['change'](_0x411691=>{const {commandName:_0x3f4746,commandParams:_0x54fa36}=_0x2bdb08;let _0x4491dc=_0x5a42f9[0x0]['end']['nodeBefore'];_0x54fa36&&_0x54fa36[0x0]&&!0x1===_0x54fa36[0x0]['forceValue']&&(_0x4491dc=_0x5a42f9[0x0]['start']['nodeAfter']);const _0x2ff14f=_0x411691['createRangeIn'](_0x4491dc);if('$graveyard'==_0x2ff14f['root']['rootName'])return;const _0x52e4b8=Array['from'](_0x25e9b2['getRanges']())['map'](_0x92f6c5=>_0x488912['fromRange'](_0x92f6c5));_0x411691['setSelection'](_0x2ff14f),_0x175895['commands']['get'](_0x3f4746)['refresh'](),_0x54fa36['push']({'forceDefaultExecution':!0x0}),_0x175895['execute'](_0x3f4746,..._0x54fa36);const _0x39132a=_0x52e4b8['filter'](_0x540e9d=>'$graveyard'!=_0x540e9d['root']['rootName']);_0x39132a['length']>0x0&&_0x411691['setSelection'](_0x39132a);for(const _0x32f7e0 of _0x52e4b8)_0x32f7e0['detach']();});};}['_getCoordsForCells'](_0x57324e){const _0x53389a=this['editor']['plugins']['get']('TableUtils');let _0x2cb17d=Number['MAX_SAFE_INTEGER'],_0x47a798=Number['MIN_SAFE_INTEGER'],_0xb0ead8=Number['MAX_SAFE_INTEGER'],_0x4f4475=Number['MIN_SAFE_INTEGER'];for(const _0x8433bd of _0x57324e){if('$graveyard'==_0x8433bd['root']['rootName'])continue;const {row:_0x25585f,column:_0x5140b0}=_0x53389a['getCellLocation'](_0x8433bd),_0x1bc98a=_0x8433bd['hasAttribute']('rowspan')?_0x8433bd['getAttribute']('rowspan')-0x1:0x0,_0x16b226=_0x8433bd['hasAttribute']('colspan')?_0x8433bd['getAttribute']('colspan')-0x1:0x0;_0x2cb17d=_0x25585f<_0x2cb17d?_0x25585f:_0x2cb17d,_0x47a798=_0x25585f+_0x1bc98a>_0x47a798?_0x25585f+_0x1bc98a:_0x47a798,_0xb0ead8=_0x5140b0<_0xb0ead8?_0x5140b0:_0xb0ead8,_0x4f4475=_0x5140b0+_0x16b226>_0x4f4475?_0x5140b0+_0x16b226:_0x4f4475;}return{'minRow':_0x2cb17d,'maxRow':_0x47a798,'minColumn':_0xb0ead8,'maxColumn':_0x4f4475};}['_setupColumnsRowsFixing'](){const _0x337044=this['editor'],_0x124253=_0x337044['plugins']['get']('TrackChangesEditing'),_0x133c4e=_0x337044['plugins']['get']('TableUtils');_0x337044['model']['document']['on']('change:data',()=>{const _0x114fd7=Array['from'](_0x337044['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22c206,data:_0x26e068}of _0x114fd7){const {group:_0x42c3c3,id:_0x3716af,subType:_0x29238d}=_0x124253['_splitMarkerName'](_0x22c206);if('suggestion'!=_0x42c3c3)continue;if(null!=_0x26e068['oldRange'])continue;const _0x4da281=_0x124253['getSuggestion'](_0x3716af);this['_tablePostFixingSubtypes']['includes'](_0x29238d)&&this['_tableSuggestions']['add'](_0x4da281);}},{'priority':'low'});const _0x42317b=(_0x485847,_0x195969)=>{let _0x515884=!0x1;const _0xcb78e8=_0x195969['createRangeOn'](_0x485847),_0x36a1d3=_0x485847['findAncestor']('table'),_0x11d271=_0x133c4e['getCellLocation'](_0x485847);for(const _0x573938 of this['_tableSuggestions']){const _0x1a35a1=_0x573938['subType'],_0x150db5=_0x1a35a1['startsWith']('tablePaste'),_0xeae3ea=_0x1a35a1['substr'](_0x150db5?0xa:0x5),_0x279a56=_0xeae3ea['toLowerCase'](),_0x4bfc8a=_0x279a56['substr'](0x0,0x3)+'span',_0x4bf2dc='min'+_0xeae3ea,_0x4f7c0b='max'+_0xeae3ea;if(!_0x573938['isInContent'])continue;if(_0x36a1d3!=_0x573938['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x573938['isIntersectingWithRange'](_0xcb78e8))continue;const _0x224944=_0x485847['hasAttribute'](_0x4bfc8a)?_0x485847['getAttribute'](_0x4bfc8a)-0x1:0x0,_0x3ead7a=this['_getSuggestionCoords'](_0x573938),_0xaae27c=_0x3ead7a[_0x4bf2dc],_0xaf5c57=_0x3ead7a[_0x4f7c0b];_0xaae27c<=_0x11d271[_0x279a56]&&_0x11d271[_0x279a56]+_0x224944<=_0xaf5c57&&(_0x573938['addRange'](_0xcb78e8),_0x515884=!0x0);}return _0x515884;};_0x337044['model']['document']['registerPostFixer'](_0x4d0681=>{let _0x97f830=!0x1;for(const _0x15eadf of _0x337044['model']['document']['differ']['getChanges']())if('insert'==_0x15eadf['type']){if('tableRow'==_0x15eadf['name']){for(const _0x2e8d99 of _0x15eadf['position']['nodeAfter']['getChildren']())_0x97f830=_0x97f830||_0x42317b(_0x2e8d99,_0x4d0681);}else'tableCell'==_0x15eadf['name']&&(_0x97f830=_0x97f830||_0x42317b(_0x15eadf['position']['nodeAfter'],_0x4d0681));}return _0x97f830;});}['_getSuggestionCoords'](_0x113b54){return this['_getCoordsForCells'](_0x113b54['getRanges']()['map'](_0x55395a=>_0x55395a['start']['nodeAfter']));}}function Ne(_0x41524a){return Array['from'](new Set(_0x41524a)['values']());}class Nt extends _0x45b538{static get['requires'](){return[Ct];}['afterInit'](){const _0x280dd9=this['editor'],_0x1cd87d=_0x280dd9['model']['document']['selection'],_0x24e25c=_0x280dd9['locale'];if(!_0x280dd9['plugins']['has']('TableEditing'))return;const _0x38c483=_0x280dd9['plugins']['get']('TrackChangesEditing'),_0x2d5aac=_0x280dd9['plugins']['get']('TableUtils'),_0x47e837=_0x280dd9['plugins']['get'](Ct);_0x47e837['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x38c483['enableCommand']('mergeTableCells',()=>{const _0x388f3b=_0x2d5aac['getSelectionAffectedTableCells'](_0x280dd9['model']['document']['selection']);_0x280dd9['model']['change'](()=>{_0x38c483['markMultiRangeBlockFormat'](_0x388f3b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x280dd9['commands']['get']('mergeTableCells')['on']('execute',(_0x4218bb,_0x1caa50)=>{_0x280dd9['commands']['get']('trackChanges')['value']&&(_0x1caa50['length']>0x0&&_0x1caa50[_0x1caa50['length']-0x1]&&_0x1caa50[_0x1caa50['length']-0x1]['forceDefaultExecution']||_0x38c483['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4218bb['stop']());},{'priority':'highest'});for(const _0x3b7b73 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x30f476=_0x280dd9['commands']['get'](_0x3b7b73);_0x38c483['enableCommand'](_0x3b7b73,()=>{const _0x12556d=_0x280dd9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2091fb=>_0x2091fb['is']('element','tableCell')),_0x14e684=_0x30f476['value'];_0x280dd9['model']['change'](()=>{_0x38c483['markMultiRangeBlockFormat']([_0x12556d,_0x14e684],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3e590c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5f0a16=_0x280dd9['commands']['get'](_0x3e590c);_0x38c483['enableCommand'](_0x3e590c,()=>{const _0x4bb6a0=_0x2d5aac['getSelectionAffectedTableCells'](_0x280dd9['model']['document']['selection'])[0x0],_0xcae76d=_0x4bb6a0['findAncestor']('table'),{column:_0x433ea6,row:_0x64d7ed}=_0x2d5aac['getCellLocation'](_0x4bb6a0);let _0x490f86=[];if('horizontally'==_0x5f0a16['direction']){const _0x330c18=_0x2d5aac['createTableWalker'](_0xcae76d,{'startRow':_0x64d7ed,'endRow':_0x64d7ed,'includeAllSlots':!0x0});_0x490f86=Array['from'](_0x330c18)['map'](_0x274fe1=>_0x274fe1['cell']);}else{const _0x23ea1c=_0x2d5aac['createTableWalker'](_0xcae76d,{'column':_0x433ea6,'includeAllSlots':!0x0});_0x490f86=Array['from'](_0x23ea1c)['map'](_0x21d1a1=>_0x21d1a1['cell']);}_0x280dd9['model']['change'](_0x1f9ebe=>{_0x38c483['markBlockFormat'](_0x1f9ebe['createRangeOn'](_0x4bb6a0),{'commandName':_0x3e590c,'commandParams':[]},_0x490f86,_0x3e590c);});});}_0x38c483['descriptionFactory']['registerDescriptionCallback'](_0x2a76d1=>{if('formatBlock'!=_0x2a76d1['type']&&'formatInline'!=_0x2a76d1['type'])return;const {data:_0x53c304}=_0x2a76d1;return _0x53c304&&'mergeTableCells'==_0x53c304['commandName']?{'type':'format','content':c(_0x24e25c,'*Merge\x20cells*')}:void 0x0;}),_0x38c483['descriptionFactory']['registerDescriptionCallback'](_0x42eb14=>{if('formatBlock'!=_0x42eb14['type']&&'formatInline'!=_0x42eb14['type'])return;const {data:_0x20bdd9}=_0x42eb14;return _0x20bdd9?'splitTableCellVertically'==_0x20bdd9['commandName']?{'type':'format','content':c(_0x24e25c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x20bdd9['commandName']?{'type':'format','content':c(_0x24e25c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x10c049=_0x47e837['_acceptFormatSuggestionCallbackFactory']();for(const _0x1bfef4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x38c483['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1bfef4,'accept',_0x10c049);for(const _0x21526f of['splitTableCellVertically','splitTableCellHorizontally'])_0x38c483['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21526f,'accept',_0x10c049);_0x38c483['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x13c112=>{_0x280dd9['model']['change'](_0x50ddae=>{const _0x582b1a=Array['from'](_0x1cd87d['getRanges']())['map'](_0x5b4cfd=>_0x488912['fromRange'](_0x5b4cfd));_0x50ddae['setSelection'](_0x13c112),_0x280dd9['commands']['get']('mergeTableCells')['refresh'](),_0x280dd9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x25de22=_0x582b1a['filter'](_0x22adaf=>'$graveyard'!=_0x22adaf['root']['rootName']);_0x25de22['length']>0x0&&_0x50ddae['setSelection'](_0x25de22);for(const _0x4648d5 of _0x582b1a)_0x4648d5['detach']();});});for(const _0x36f926 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3c5246=_0x280dd9['commands']['get'](_0x36f926);_0x3c5246['on']('set:isEnabled',(_0x9b2d94,_0x576f79,_0x55e29c)=>{if(_0x55e29c){const _0x5693ac=_0x280dd9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xaf0977=>_0xaf0977['is']('element','tableCell'));this['_areMergableCells'](_0x3c5246['value'],_0x5693ac)||(_0x9b2d94['return']=!0x1,_0x9b2d94['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5e9027=this['editor']['commands']['get']('mergeTableCells'),_0x3a83e8=this['editor']['plugins']['get']('TableUtils');if(!_0x5e9027['isEnabled'])return!0x1;const _0x1cc26c=_0x3a83e8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1de3ee of _0x1cc26c)for(const _0x4d5700 of _0x1cc26c)if(_0x1de3ee!=_0x4d5700&&!this['_areMergableCells'](_0x1de3ee,_0x4d5700))return!0x1;return!0x0;}['_areMergableCells'](_0xc881f8,_0x650273){const _0x294819=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3677c3=this['editor']['model']['createRangeOn'](_0xc881f8),_0x35ad13=this['editor']['model']['createRangeOn'](_0x650273),_0x5ceee9=new Set(),_0x34b8a8=new Set();for(const _0x2a7315 of _0x294819['getSuggestions']())if(('insertion'==_0x2a7315['type']||'deletion'==_0x2a7315['type']||'mergeTableCells'==_0x2a7315['subType'])&&_0x2a7315['isInContent']){for(const _0x1e9679 of _0x2a7315['getRanges']())_0x1e9679['containsRange'](_0x3677c3,!0x0)&&_0x5ceee9['add'](_0x2a7315['type']+':'+_0x2a7315['author']['id']),_0x1e9679['containsRange'](_0x35ad13,!0x0)&&_0x34b8a8['add'](_0x2a7315['type']+':'+_0x2a7315['author']['id']);}if(_0x5ceee9['size']!=_0x34b8a8['size'])return!0x1;for(const _0x4fe9c3 of _0x5ceee9)if(!_0x34b8a8['has'](_0x4fe9c3))return!0x1;return!0x0;}}class Dt extends _0x45b538{static get['requires'](){return[Ct];}['afterInit'](){const _0x338490=this['editor'];if(!_0x338490['plugins']['has']('TableEditing'))return;const _0x1b4ce5=_0x338490['locale'],_0x32a365=_0x338490['plugins']['get']('TrackChangesEditing');_0x32a365['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x32a365['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x32a365['registerBlockAttribute']('headingRows'),_0x32a365['registerBlockAttribute']('headingColumns'),_0x32a365['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x1b4ce5,'FORMAT_HEADER_ROW')),_0x32a365['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x1b4ce5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3617b1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56fcaf=this['editor']['plugins']['get']('TableUtils'),_0xfdfe5=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x50b2b2({showActiveMarker:_0x575c68=!0x0,setDataAttribute:_0x3310b6=!0x0}={}){return(_0x5596e3,_0x245e58,_0x8e5ac5)=>{const {type:_0x487b0a,id:_0x4f572f}=_0x3617b1['_splitMarkerName'](_0x245e58['markerName']),_0x1a7bd7=_0x3617b1['getSuggestion'](_0x4f572f),_0x21f4d6=_0x1a7bd7['data'];if('formatBlock'!=_0x1a7bd7['type']||!_0x21f4d6||'setTableColumnHeader'!=_0x21f4d6['commandName'])return;if(_0x245e58['item'])return void _0x5596e3['stop']();if(!_0x8e5ac5['consumable']['consume'](_0x245e58['markerRange'],_0x5596e3['name']))return;const _0x56f5b8=_0x245e58['markerRange']['start']['nodeAfter'],_0x487ab7=_0x245e58['markerRange']['end']['nodeBefore'],_0x24921b=_0x56f5b8['parent']['parent'],{column:_0x35a313}=_0x56fcaf['getCellLocation'](_0x56f5b8),{column:_0x3ffe5a}=_0x56fcaf['getCellLocation'](_0x487ab7);for(let _0xfe9227=_0x35a313;_0xfe9227<=_0x3ffe5a;_0xfe9227++){const _0x9af53f=_0x56fcaf['createTableWalker'](_0x24921b,{'column':_0xfe9227,'includeAllSlots':!0x1});for(const _0x5ecb36 of _0x9af53f){const _0x34b183=_0x5ecb36['cell'],_0x4d5bfd=_0x8e5ac5['mapper']['toViewElement'](_0x34b183);_0x8e5ac5['writer']['addClass']('ck-suggestion-marker-'+_0x487b0a,_0x4d5bfd),_0x3310b6&&_0x8e5ac5['writer']['setAttribute']('data-suggestion',_0x4f572f,_0x4d5bfd),_0x8e5ac5['mapper']['bindElementToMarker'](_0x4d5bfd,_0x245e58['markerName']),_0x575c68&&(_0x3617b1['activeMarkers']['includes'](_0x245e58['markerName'])?_0x8e5ac5['writer']['addClass']('ck-suggestion-marker--active',_0x4d5bfd):_0x8e5ac5['writer']['removeClass']('ck-suggestion-marker--active',_0x4d5bfd));}}};}_0x3617b1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xfdfe5),_0x3617b1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xfdfe5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x50b2b2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a9292,_0x22587c,_0x4a04d8)=>{_0x4a04d8['options']['showSuggestionHighlights']&&_0x50b2b2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a9292,_0x22587c,_0x4a04d8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x11b65d,_0x4ee985,_0x2d6840)=>{const {type:_0x59a5c8,id:_0x293208}=_0x3617b1['_splitMarkerName'](_0x4ee985['markerName']),_0x7da9dc=_0x3617b1['getSuggestion'](_0x293208),_0x3db667=_0x7da9dc['data'];if('formatBlock'!=_0x7da9dc['type']||!_0x3db667||'setTableColumnHeader'!=_0x3db667['commandName'])return;const _0x21c568=_0x2d6840['mapper']['markerNameToElements'](_0x4ee985['markerName']);if(_0x21c568){for(const _0x1eec9e of _0x21c568)_0x2d6840['writer']['removeClass']('ck-suggestion-marker-'+_0x59a5c8,_0x1eec9e),_0x2d6840['writer']['removeClass']('ck-suggestion-marker--active',_0x1eec9e),_0x2d6840['writer']['removeAttribute']('data-suggestion',_0x1eec9e),_0x2d6840['mapper']['unbindElementFromMarkerName'](_0x1eec9e,_0x4ee985['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49c315=this['editor'],_0x5074fc=_0x49c315['locale'];function _0xeae8f8(_0x4245a7){return{'type':'format','content':c(_0x5074fc,'*Format:*\x20%0',_0x4245a7)};}_0x49c315['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d740b=>{if('formatBlock'!=_0x4d740b['type'])return;const {data:_0x134e61}=_0x4d740b;if(_0x134e61){if('setTableRowHeader'==_0x134e61['commandName']){const _0x17f914=_0x134e61['commandParams'][0x0]['forceValue'];return _0xeae8f8(c(_0x5074fc,_0x17f914?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x134e61['commandName']){const _0x4a0145=_0x134e61['commandParams'][0x0]['forceValue'];return _0xeae8f8(c(_0x5074fc,_0x4a0145?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x45b538{['afterInit'](){const _0x1c12ce=this['editor'],_0x3b10d8=_0x1c12ce['locale'],_0x19155e=_0x1c12ce['plugins']['get']('TrackChangesEditing');function _0x53af78(_0x55f84c){return{'type':'format','content':''+c(_0x3b10d8,'*Set\x20table\x20type:*\x20%0',_0x55f84c)};}_0x1c12ce['plugins']['has']('TableLayout')&&(_0x19155e['enableCommand']('insertTableLayout'),_0x19155e['enableDefaultAttributesIntegration']('tableType'),_0x19155e['registerBlockAttribute']('tableType'),_0x19155e['descriptionFactory']['registerElementLabel'](_0x1cc99f=>_0x1cc99f['is']('element','table')&&'layout'===_0x1cc99f['getAttribute']('tableType'),_0x21cc54=>c(_0x3b10d8,'ELEMENT_LAYOUT_TABLE',_0x21cc54)),_0x19155e['descriptionFactory']['registerDescriptionCallback'](_0x2171a0=>{const {data:_0x42476d}=_0x2171a0;if(_0x42476d&&'tableType'==_0x42476d['key'])switch(_0x42476d['newValue']){case'layout':return _0x53af78(c(_0x3b10d8,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x53af78(c(_0x3b10d8,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x55af89=>[_0x55af89,null]));class $t extends _0x45b538{static get['requires'](){return[Ct];}['afterInit'](){const _0x2d6ca2=this['editor'];if(!_0x2d6ca2['plugins']['has']('TableClipboard'))return;const _0x151a63=_0x2d6ca2['plugins']['get']('TrackChangesEditing'),_0x9b03a5=_0x2d6ca2['plugins']['get']('TableUtils'),_0x5b38c8=_0x2d6ca2['plugins']['get'](Ct),_0xb3dab8=_0x2d6ca2['plugins']['get']('TableClipboard'),_0x233e7d=_0x2d6ca2['plugins']['get']('TableSelection'),_0x5254d3=_0x2d6ca2['plugins']['get'](_0x2461be);_0x5b38c8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2d6ca2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2d6ca2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x531b85=null,_0x5ccb53=!0x1;_0x5254d3['on']('contentInsertion',(_0x4e0cb1,_0x3ca0eb)=>{_0x5ccb53='paste'===_0x3ca0eb['method'];}),_0x2d6ca2['model']['on']('insertContent',(_0x470c3d,_0x263a24)=>{if(!_0x5ccb53&&null===_0x233e7d['getSelectedTableCells']())return;const [_0x2b5710,_0x2c0e60]=_0x263a24,_0x1692b4=_0x263a24[_0x263a24['length']-0x1];_0x1692b4&&_0x1692b4['forceDefaultExecution']||_0x151a63['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x45cd33,_0x134e52,_0x498c01,_0x532d53,_0x1e99c2){if(_0x134e52&&!_0x134e52['is']('documentSelection'))return!0x1;const _0x2e0fff=_0x1e99c2['getTableIfOnlyTableInContent'](_0x45cd33,_0x498c01);if(!_0x2e0fff||!De(_0x2e0fff,void 0x0,_0x532d53))return!0x1;const _0x397668=_0x532d53['getSelectionAffectedTableCells'](_0x498c01['document']['selection']);if(!_0x397668['length'])return!0x1;const _0x350956=_0x397668[0x0]['findAncestor']('table'),_0x3f2fd=_0x532d53['getRowIndexes'](_0x397668),_0xde4c24=_0x532d53['getColumnIndexes'](_0x397668),_0x3f0e04={'startRow':_0x3f2fd['first'],'endRow':_0x3f2fd['last'],'startColumn':_0xde4c24['first'],'endColumn':_0xde4c24['last']};return 0x1==_0x397668['length']&&(_0x3f0e04['endRow']+=_0x532d53['getRows'](_0x2e0fff)-0x1,_0x3f0e04['endColumn']+=_0x532d53['getColumns'](_0x2e0fff)-0x1),De(_0x350956,_0x3f0e04,_0x532d53);}(_0x2b5710,_0x2c0e60,_0x2d6ca2['model'],_0x9b03a5,_0xb3dab8)&&(_0x470c3d['stop'](),_0x531b85={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2d6ca2['model']['change'](()=>{_0x2d6ca2['model']['insertContent'](_0x263a24[0x0],_0x263a24[0x1],_0x263a24[0x2],{'forceDefaultExecution':!0x0});const _0x43a965=_0x81f967(),{rowInsertionRanges:_0x356c25,columnInsertionRanges:_0x5ceded,insertionRanges:_0x5111b0,deletionRanges:_0x7789ed,cells:_0x172af5}=_0x531b85;_0x356c25['length']&&_0x151a63['markMultiRangeInsertion'](_0x356c25,'tablePasteRow',{'tablePasteChainId':_0x43a965}),_0x5ceded['length']&&_0x151a63['markMultiRangeInsertion'](_0x5ceded,'tablePasteColumn',{'tablePasteChainId':_0x43a965}),_0x5111b0['length']&&(_0x151a63['markMultiRangeInsertion'](_0x5111b0,'tablePaste',{'tablePasteChainId':_0x43a965,'skipNestingCheck':!0x0}),_0x5111b0['forEach'](_0x27a662=>_0x27a662['detach']?.())),_0x7789ed['length']&&(_0x151a63['markMultiRangeDeletion'](_0x7789ed,'tablePaste',{'tablePasteChainId':_0x43a965,'skipNestingCheck':!0x0}),_0x7789ed['forEach'](_0x1607ab=>_0x1607ab['detach']?.()));const _0x4d3b0f=_0x151a63['markMultiRangeBlockFormat'](_0x172af5['map'](({element:_0x387e9b})=>_0x387e9b),{'formatGroupId':_0x81f967()},[],'tablePasteCell',{'tablePasteChainId':_0x43a965});if(_0x4d3b0f){const _0x2d4e24=_0x4d3b0f['getMarkers'](),_0xd09147=[];for(const {element:_0x49a827,attributes:_0x5e16ea}of _0x172af5){if(!_0x5e16ea)continue;const _0xb6694e=_0x2d6ca2['model']['createRangeOn'](_0x49a827),_0x48aa08=_0x2d4e24['find'](_0x4ec364=>_0x4ec364['getRange']()['isEqual'](_0xb6694e));_0x48aa08&&_0xd09147['push']([_0x48aa08['name'],_0x5e16ea]);}_0xd09147['length']&&_0x4d3b0f['setAttribute']('markerAttributes',Object['fromEntries'](_0xd09147));}_0x531b85=null;}));},{'priority':_0x9edb2b['high']+0xa}),_0x5254d3['on']('contentInsertion',()=>{_0x5ccb53=!0x1;},{'priority':'lowest'}),_0x2d6ca2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3773c9,_0x5b4b59)=>{const [_0xab379,_0x1c563c,,_0x54a804]=_0x5b4b59;if(!_0x531b85)return;_0x3773c9['stop']();const _0x35fc79=_0xab379['cell'],_0xb902f3=_0x1c563c,_0xc9f8af=Ue(_0x35fc79),_0xa5d4ce=Ue(_0xb902f3);_0x3773c9['return']=_0x35fc79;let _0x3d9386=null,_0x37b646=null;if(_0xa5d4ce||_0xc9f8af){if(_0xc9f8af&&!_0xa5d4ce){_0x54a804['remove'](_0x35fc79['getChild'](0x0));for(const _0x4d3469 of Array['from'](_0xb902f3['getChildren']()))_0x54a804['insert'](_0x4d3469,_0x35fc79,'end');const _0x580385=_0x531b85['rowInsertionIndexes']['includes'](_0xab379['row']),_0x52142f=_0x531b85['columnInsertionIndexes']['includes'](_0xab379['column']);_0x580385||_0x52142f||(_0x3d9386=_0x488912['fromRange'](_0x54a804['createRangeIn'](_0x35fc79)));}else _0xa5d4ce&&!_0xc9f8af&&(_0x37b646=_0x54a804['createRangeIn'](_0x35fc79));}else{const _0x23785f=_0x54a804['createElement']('tableCellSuggestion'),_0x26003c=_0x54a804['createElement']('tableCellSuggestion');_0x54a804['wrap'](_0x54a804['createRangeIn'](_0x35fc79),_0x26003c),_0x54a804['insert'](_0x23785f,_0x35fc79,0x0);for(const _0x18eb54 of Array['from'](_0xb902f3['getChildren']()))_0x54a804['insert'](_0x18eb54,_0x23785f,'end');_0x3d9386=_0x488912['fromRange'](_0x54a804['createRangeOn'](_0x23785f)),_0x37b646=_0x488912['fromRange'](_0x54a804['createRangeOn'](_0x26003c));}const _0x20ba4b=Array['from'](_0xb902f3['getAttributes']())['filter'](([_0x25b628])=>xe['includes'](_0x25b628));_0x531b85['cells']['push']({'element':_0x35fc79,'attributes':_0x20ba4b['length']?Object['fromEntries'](_0x20ba4b):null}),_0x3d9386&&_0x531b85['insertionRanges']['push'](_0x3d9386),_0x37b646&&_0x531b85['deletionRanges']['push'](_0x37b646);},{'priority':'high'}),_0x9b03a5['on']('insertColumns',(_0x279d00,_0x8dfb11)=>{const [_0x2bd1f5,_0x524d18={}]=_0x8dfb11;if(!_0x531b85)return;const _0x59fec8=_0x524d18['at']||0x0,_0x1c5749=_0x524d18['columns']||0x1;_0x531b85['columnInsertionIndexes']=new Array(_0x1c5749)['fill'](_0x59fec8)['map']((_0x1255ff,_0x5c5d96)=>_0x1255ff+_0x5c5d96);for(const {cell:_0x2bcd8b}of _0x9b03a5['createTableWalker'](_0x2bd1f5,{'startColumn':_0x59fec8,'endColumn':_0x59fec8+_0x1c5749-0x1}))_0x531b85['columnInsertionRanges']['push'](_0x2d6ca2['model']['createRangeOn'](_0x2bcd8b));},{'priority':'low'}),_0x9b03a5['on']('insertRows',(_0x1ddc80,_0x4411ed)=>{const [_0x4bb936,_0x1f40b7={}]=_0x4411ed;if(!_0x531b85)return;const _0x251c6e=_0x1f40b7['at']||0x0,_0x22c499=_0x1f40b7['rows']||0x1;_0x531b85['rowInsertionIndexes']=new Array(_0x22c499)['fill'](_0x251c6e)['map']((_0x50f748,_0x56697b)=>_0x50f748+_0x56697b);for(const {cell:_0x25b311}of _0x9b03a5['createTableWalker'](_0x4bb936,{'startRow':_0x251c6e,'endRow':_0x251c6e+_0x22c499-0x1}))_0x531b85['rowInsertionRanges']['push'](_0x2d6ca2['model']['createRangeOn'](_0x25b311));},{'priority':'low'}),_0x151a63['descriptionFactory']['registerDescriptionCallback'](_0x3b7345=>{if(_0x3b7345['subType']&&_0x3b7345['subType']['startsWith']('tablePaste'))return _0x3b7345['previous']?{}:{'type':'insertion','content':c(_0x2d6ca2['locale'],'*Replace\x20table\x20cells*')};});const _0x4229ac=()=>!0x1;for(const _0x33af37 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x151a63['_suggestionFactory']['registerCustomCallback']('insertion',_0x33af37,'join',_0x4229ac),_0x151a63['_suggestionFactory']['registerCustomCallback']('deletion',_0x33af37,'join',_0x4229ac),_0x151a63['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x33af37,'join',_0x4229ac);_0x151a63['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4229ac),_0x151a63['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2d47d0,_0x5a3253,_0x47ea14)=>{const _0x3c1b84=_0x2d47d0['map'](_0x3dc2a9=>_0x3dc2a9['getContainedElement']())['filter'](_0x48b833=>_0x48b833),_0x9c7e0d=new Map(_0x3c1b84['map'](_0xe0c336=>[_0xe0c336,null]));if(_0x531b85){for(const {element:_0x133f46,attributes:_0x42177e}of _0x531b85['cells'])_0x42177e&&_0x9c7e0d['set'](_0x133f46,_0x42177e);}else{if(_0x47ea14&&_0x47ea14['markerAttributes'])for(const [_0x14844b,_0x252069]of Object['entries'](_0x47ea14['markerAttributes'])){const _0x1d137e=_0x2d6ca2['model']['markers']['get'](_0x14844b),_0x16c689=_0x1d137e?_0x1d137e['getRange']()['getContainedElement']():null;_0x16c689&&_0x9c7e0d['set'](_0x16c689,_0x252069);}}_0x2d6ca2['model']['change'](_0x5e7ff0=>{for(const [_0x4f2172,_0x586c27]of _0x9c7e0d)_0x5e7ff0['setAttributes']({...Oe,..._0x586c27},_0x4f2172);});});const _0x52174c=(_0x1e4eeb,_0x3ba5b4)=>{_0x151a63['_suggestionFactory']['registerCustomCallback'](_0x1e4eeb,'tablePaste',_0x3ba5b4,(_0x4fa563,_0x28dbd8,_0x18562b)=>{_0x2d6ca2['model']['change'](_0x2904ff=>{const _0x388b84=[];for(const _0x454e90 of _0x4fa563){const _0x28327f=_0x454e90['start']['nodeAfter'];_0x28327f['is']('element','tableCellSuggestion')&&_0x388b84['push'](_0x28327f);}_0x151a63['_suggestionFactory']['getSuggestionCallback'](_0x1e4eeb,null,_0x3ba5b4)(_0x4fa563,_0x28dbd8,_0x18562b);for(const _0x4ef699 of _0x388b84)'$graveyard'!=_0x4ef699['root']['rootName']&&_0x2904ff['unwrap'](_0x4ef699);});});};_0x52174c('insertion','accept'),_0x52174c('insertion','discard'),_0x52174c('deletion','accept'),_0x52174c('deletion','discard'),_0x151a63['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4c09a4=>{const _0x1ea0d2=_0x4c09a4['map'](_0x2b42e5=>_0x2b42e5['getContainedElement']()),_0x485576=_0x1ea0d2[0x0]['findAncestor']('table'),{minRow:_0x119b8b,maxRow:_0x45fcd7}=_0x5b38c8['_getCoordsForCells'](_0x1ea0d2);_0x9b03a5['removeRows'](_0x485576,{'at':_0x119b8b,'rows':_0x45fcd7-_0x119b8b+0x1});}),_0x151a63['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x24ae09=>{const _0x5e9471=_0x24ae09['map'](_0x2ae5ae=>_0x2ae5ae['getContainedElement']()),_0x2543de=_0x5e9471[0x0]['findAncestor']('table'),{minColumn:_0x21c5ec,maxColumn:_0x53f5b2}=_0x5b38c8['_getCoordsForCells'](_0x5e9471);_0x9b03a5['removeColumns'](_0x2543de,{'at':_0x21c5ec,'columns':_0x53f5b2-_0x21c5ec+0x1});});const _0x2c4b70=(_0x48ffbe,_0xb21272)=>{if(!_0xb21272['subType']||!_0xb21272['subType']['startsWith']('tablePaste'))return;const _0x4c2b7f=_0xb21272['attributes']['tablePasteChainId'],_0x46bf32=_0x151a63['getSuggestions']()['filter'](_0x51ec6f=>_0x51ec6f['isInContent']&&_0x51ec6f['attributes']&&_0x51ec6f['attributes']['tablePasteChainId']==_0x4c2b7f);_0x46bf32['length']&&_0xb21272['getAllAdjacentSuggestions']()['length']!=_0x46bf32['length']&&_0x46bf32['reduce']((_0x4032b5,_0x474cc1)=>(_0x4032b5['next']=_0x474cc1,_0x474cc1['previous']=_0x4032b5,_0x474cc1));};function _0x5958e9(_0x54557c,_0x55e327=!0x0){const {id:_0xdcd099,authorId:_0x4afc0a}=_0x151a63['_splitMarkerName'](_0x54557c['markerName']),_0x1e9c86=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3bc033=_0x151a63['activeMarkers']['includes'](_0x54557c['markerName']);return _0x3bc033&&_0x1e9c86['push']('ck-suggestion-marker--active'),{'classes':_0x1e9c86,'attributes':{'data-suggestion':_0xdcd099,'data-author-id':_0x4afc0a},'priority':_0x3bc033&&_0x55e327?0xbc2:0xbb8};}_0x151a63['on']('suggestionLoaded',_0x2c4b70,{'priority':'high'}),_0x151a63['on']('suggestionUnloaded',_0x2c4b70,{'priority':'high'}),_0x2d6ca2['model']['document']['registerPostFixer'](()=>{let _0x160893=!0x1;const _0x2ba9fb=Array['from'](_0x2d6ca2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ab21d,data:_0x523789}of _0x2ba9fb){const {group:_0x4dfb6a,type:_0x289317,id:_0x18b9f8}=_0x151a63['_splitMarkerName'](_0x5ab21d);if('suggestion'!=_0x4dfb6a||'deletion'!=_0x289317||_0x523789['oldRange'])continue;if(!_0x151a63['hasSuggestion'](_0x18b9f8))continue;const _0x318e66=_0x151a63['getSuggestion'](_0x18b9f8)['getRanges'](),_0x57a6bb=_0x2d6ca2['plugins']['get']('Users')['me'];for(const _0x133875 of _0x151a63['getSuggestions']()){if(!_0x133875['isInContent']||_0x133875['author']!=_0x57a6bb)continue;if('formatBlock'!=_0x133875['type']||'tablePasteCell'!=_0x133875['subType'])continue;if(_0x133875['getRanges']()['every'](_0x2ccf5c=>_0x318e66['some'](_0x25b334=>_0x25b334['containsRange'](_0x2ccf5c,!0x0)))){for(const _0x48915a of _0x133875['getAllAdjacentSuggestions']())_0x48915a['isInContent']&&(_0x48915a['discard'](),_0x160893=!0x0);}}}return _0x160893;}),_0x2d6ca2['model']['document']['registerPostFixer'](_0xa57f11=>{const _0x24e083=_0x2d6ca2['commands']['get']('redo');if(!_0x24e083||!_0x24e083['_createdBatches']['has'](_0xa57f11['batch']))return!0x1;let _0x136d3f=!0x1;const _0x35bd70=_0x2d6ca2['plugins']['get']('Users')['me'],_0x55ec3e=_0x2d6ca2['model']['document']['differ']['getChanges'](),_0x17595e=Array['from'](_0x2d6ca2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x408bc4,data:_0x36bc75})=>{const {group:_0x567684,subType:_0x34fee8,authorId:_0x583cab}=_0x151a63['_splitMarkerName'](_0x408bc4);return'suggestion'==_0x567684&&'tablePaste'==_0x34fee8&&_0x583cab==_0x35bd70['id']&&!_0x36bc75['oldRange'];});for(const _0x5d6b36 of _0x55ec3e){if('insert'!=_0x5d6b36['type']||'tableCellSuggestion'!=_0x5d6b36['name']||0x1!=_0x5d6b36['length'])continue;const _0xf9b613=_0xa57f11['createRange'](_0x5d6b36['position'],_0x5d6b36['position']['getShiftedBy'](0x1));if(!_0x17595e['find'](({data:_0x19bfe6})=>_0x19bfe6['newRange']['isEqual'](_0xf9b613))){for(const {name:_0x20dfd6,data:_0x4326ca}of _0x17595e)if(_0xf9b613['containsRange'](_0x4326ca['newRange'])){_0xa57f11['updateMarker'](_0x20dfd6,{'range':_0xf9b613}),_0x136d3f=!0x0;break;}}}return _0x136d3f;}),_0x2d6ca2['model']['document']['registerPostFixer'](_0x42e931=>{let _0xdcd2f=!0x1;const _0x13b176=_0x2d6ca2['plugins']['get']('Users')['me'],_0x3c6700=_0x151a63['getSuggestions']()['filter'](_0x1a90a0=>_0x1a90a0['isInContent']&&_0x1a90a0['author']==_0x13b176),_0x51fafb=new Set(),_0x2c7eb2=new Set();for(const _0x412f4c of _0x3c6700)if('tablePaste'==_0x412f4c['subType'])for(const _0x46a91b of _0x412f4c['getMarkers']()){const _0x9d09a9=_0x46a91b['getRange']()['getContainedElement']();if(_0x9d09a9){if(_0x9d09a9['is']('element','tableCellSuggestion')&&Ue(_0x9d09a9)){_0x412f4c['removeMarker'](_0x46a91b['name']),_0x51fafb['add'](_0x9d09a9),_0xdcd2f=!0x0;const _0x1efeef=_0x9d09a9['nextSibling'],_0x294bb4=_0x9d09a9['previousSibling'],_0x1ae290=_0x1efeef&&_0x1efeef['is']('element','tableCellSuggestion'),_0xe0c31f=_0x294bb4&&_0x294bb4['is']('element','tableCellSuggestion');_0x1ae290&&!_0x51fafb['has'](_0x1efeef)&&_0x2c7eb2['add'](_0x1efeef),_0xe0c31f&&!_0x51fafb['has'](_0x294bb4)&&_0x2c7eb2['add'](_0x294bb4);}else _0x9d09a9['is']('element','paragraph')&&_0x9d09a9['isEmpty']&&(_0x412f4c['removeMarker'](_0x46a91b['name']),_0xdcd2f=!0x0);}}else{if('tablePasteCell'==_0x412f4c['subType']){if(!_0x412f4c['attributes']||!_0x412f4c['attributes']['tablePasteChainId'])continue;const _0x4aefea=_0x412f4c['attributes']['markerAttributes'];if(_0x4aefea&&Object['keys'](_0x4aefea)['length'])continue;const _0xc061e6=_0x412f4c['attributes']['tablePasteChainId'];let _0x4f5806=!0x0,_0x50ba68=!0x0;for(const _0x5035ee of _0x3c6700)if(_0x5035ee['subType']&&_0x5035ee['subType']['startsWith']('tablePaste')){if(!_0x5035ee['attributes']['tablePasteChainId']){_0x50ba68=!0x1;break;}if(_0x5035ee['id']!=_0x412f4c['id']&&_0x5035ee['attributes']['tablePasteChainId']==_0xc061e6){_0x4f5806=!0x1;break;}}_0x50ba68&&_0x4f5806&&(_0x412f4c['removeMarkers'](),_0xdcd2f=!0x0);}}for(const _0x555b2a of _0x51fafb)_0x42e931['remove'](_0x555b2a);for(const _0x3a9bc8 of _0x2c7eb2)_0x42e931['unwrap'](_0x3a9bc8);return _0xdcd2f;}),_0x2d6ca2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x8f67bf=>_0x5958e9(_0x8f67bf),'converterPriority':'high'}),_0x2d6ca2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xecff9f,_0x37ac52)=>_0x37ac52['options']['showSuggestionHighlights']?_0x5958e9(_0xecff9f,!0x1):null,'converterPriority':'high'});const _0x38dbac=_0x2d6ca2['editing']['view'];this['listenTo'](_0x38dbac['document'],'clipboardOutput',(_0x35bfa6,_0x2b777b)=>{const _0x511d79=[];for(const _0x49e13b of _0x38dbac['createRangeIn'](_0x2b777b['content'])['getItems']())_0x49e13b['is']('element','suggestion-td')&&_0x511d79['push'](_0x49e13b);_0x38dbac['change'](_0x588a3f=>{for(const _0x4b31bb of _0x511d79)_0x588a3f['move'](_0x588a3f['createRangeIn'](_0x4b31bb),_0x588a3f['createPositionBefore'](_0x4b31bb)),_0x588a3f['remove'](_0x4b31bb);});});}}function Ue(_0x18982c){if(_0x18982c['isEmpty'])return!0x0;const _0x26d11b=_0x18982c['getChild'](0x0);return _0x26d11b['is']('element','paragraph')&&_0x26d11b['isEmpty'];}function De(_0x2ec676,_0x442dac={},_0x582f7e){for(const {isAnchor:_0x44f1dd,cellHeight:_0x4d3262,cellWidth:_0x280e2e}of _0x582f7e['createTableWalker'](_0x2ec676,{'includeAllSlots':!0x0,..._0x442dac}))if(!_0x44f1dd||0x1!=_0x4d3262||0x1!=_0x280e2e)return!0x1;return!0x0;}class Bt extends _0x45b538{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xacfda8=this['editor']['plugins']['get']('TrackChangesEditing');_0xacfda8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xacfda8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xacfda8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xacfda8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xacfda8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xacfda8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x153d33,_0xa993ee){const _0x40a2c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fbb9c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x46fc74=_0xa993ee['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5e5794=_0x3fbb9c['getColumnGroupElement'](_0x46fc74);let _0x4c692d=_0x5e5794?_0x3fbb9c['getTableColumnsWidths'](_0x5e5794):null,_0x7dd7bc=_0x46fc74['getAttribute']('tableWidth')||null;const _0x1eafb7=_0xa993ee['tableWidth']||_0x7dd7bc,_0x5acf64=_0xa993ee['columnWidths']||_0x4c692d,_0x3c9f14=this['editor']['plugins']['get']('Users')['me'];for(const _0x500fb5 of _0x40a2c8['getSuggestions']()){const _0x17f10b=_0x500fb5['getContainedElement']();if('resizeTable'===_0x500fb5['subType']&&_0x17f10b===_0x46fc74){_0x500fb5['author']!==_0x3c9f14&&_0x500fb5['discard']();const _0x53a2ce=_0x500fb5['data']['commandParams'];_0x7dd7bc=_0x53a2ce[0x0]['tableWidth'],_0x4c692d=_0x53a2ce[0x0]['columnWidths'];break;}}_0x153d33({'table':_0x46fc74,'tableWidth':_0x1eafb7,'columnWidths':_0x5acf64}),_0x40a2c8['markBlockFormat'](_0x46fc74,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x7dd7bc,'columnWidths':_0x4c692d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x170b86){if('formatBlock'!=_0x170b86['type']&&'formatInline'!=_0x170b86['type'])return;const {data:_0x30be26}=_0x170b86;if(_0x30be26&&'resizeTable'===_0x30be26['formatGroupId']){const _0x50c715='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x50c715)};}}}class Ot extends _0x45b538{['afterInit'](){const _0x5c5297=this['editor'];_0x5c5297['plugins']['has']('Template')&&_0x5c5297['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x45b538{['afterInit'](){const _0x36247f=this['editor'];if(!_0x36247f['commands']['get']('insertTableOfContents'))return;_0x36247f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x568262=_0x36247f['plugins']['get']('TrackChangesEditing'),_0x17e8ad=_0x36247f['locale'];_0x568262['descriptionFactory']['registerElementLabel']('tableOfContents',_0x25c30c=>c(_0x17e8ad,'ELEMENT_TABLE_OF_CONTENTS',_0x25c30c));}}class xt extends _0x45b538{['afterInit'](){const _0x399b7a=this['editor'];if(!_0x399b7a['plugins']['has']('Title'))return;const _0x167650=_0x399b7a['plugins']['get']('TrackChangesEditing');_0x167650['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x399b7a['locale'],'ELEMENT_TITLE')),_0x399b7a['model']['document']['registerPostFixer'](_0x15474f=>{let _0x44f77b=!0x1;const _0x52985e=Array['from'](_0x399b7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x430f9f,data:_0x59965c}of _0x52985e){const {group:_0x385c81}=_0x167650['_splitMarkerName'](_0x430f9f);if('suggestion'!==_0x385c81||!_0x59965c['newRange'])continue;const _0x47f70f=_0x59965c['newRange'],_0x5a9027=_0x47f70f['end']['nodeBefore'];if(!_0x5a9027||!_0x5a9027['is']('element','title-content'))continue;if(!_0x47f70f['start']['isTouching'](_0x47f70f['end']))continue;const _0x51b535=_0x399b7a['model']['schema']['getNearestSelectionRange'](_0x47f70f['end'],'forward');if(_0x51b535&&_0x51b535['isCollapsed']){const _0x4d9334=_0x15474f['createRange'](_0x47f70f['start'],_0x51b535['start']);_0x4d9334['isEqual'](_0x47f70f)||(_0x15474f['updateMarker'](_0x430f9f,{'range':_0x4d9334}),_0x44f77b=!0x0);}_0x44f77b||(_0x15474f['removeMarker'](_0x430f9f),_0x44f77b=!0x0);}return _0x44f77b;});}}class Tt extends _0x45b538{['afterInit'](){const _0x3d498d=this['editor'],_0x93bfd8=_0x3d498d['plugins']['get']('TrackChangesEditing');_0x3d498d['plugins']['has']('Uploadcare')&&(_0x93bfd8['enableCommand']('uploadcare'),_0x3d498d['plugins']['has']('UploadcareImageEdit')&&(_0x93bfd8['enableCommand']('uploadcareImageEdit'),_0x93bfd8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x93bfd8['registerBlockAttribute']('uploadcareImageId'),_0x93bfd8['descriptionFactory']['registerDescriptionCallback'](_0x3a474b=>{if('attribute'!=_0x3a474b['type'])return;const {data:_0x5d1107}=_0x3a474b;return _0x5d1107&&'uploadcareImageId'==_0x5d1107['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x45b538{['afterInit'](){const _0x5c8bdb=this['editor'],_0x13027e=_0x5c8bdb['plugins']['get']('TrackChangesEditing');_0x5c8bdb['plugins']['has']('UndoEditing')&&(_0x13027e['enableCommand']('undo'),_0x13027e['enableCommand']('redo'));}}class Ut extends _0x45b538{static get['requires'](){return[Ct];}['afterInit'](){const _0x4f01e4=this['editor'];if(!_0x4f01e4['plugins']['has']('TableCaptionEditing'))return;_0x4f01e4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x45b538{['tableProperties'];['tableCellProperties'];constructor(_0xd9de97){super(_0xd9de97),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 _0x497d28=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x490dd8 of this['tableProperties'])_0x497d28['enableCommand'](_0x490dd8,(_0x4a4bb9,_0x1148f1)=>{const _0x6155de=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x490dd8,[_0x6155de],this['tableProperties'],'tableProperties',_0x4a4bb9,_0x1148f1);});_0x497d28['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x497d28['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x497d28['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1b8ef6,_0x4e7e3b)=>this['handleDiscardAction'](this['tableProperties'],_0x1b8ef6,_0x4e7e3b)),_0x497d28['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x10c7c1 of this['tableCellProperties'])_0x497d28['enableCommand'](_0x10c7c1,(_0x2cdd20,_0x27f041)=>{const _0x850d80=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x10c7c1,_0x850d80,this['tableCellProperties'],'tableCellProperties',_0x2cdd20,_0x27f041);});_0x497d28['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x497d28['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x497d28['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3fe276,_0xfe2c33)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3fe276,_0xfe2c33)),_0x497d28['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x497d28['descriptionFactory']['registerDescriptionCallback'](_0x2412ce=>this['handleSuggestionDescription'](_0x2412ce));}['_handlePropertyChange'](_0x1c9703,_0x170a5d,_0x5bc51f,_0x3d0207,_0x3cf464,_0x4a1c57){const _0x58364f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4a1c57['batch'],()=>{for(const _0x3dd566 of _0x170a5d){if(this['_getSuggestion'](_0x3dd566,_0x3d0207))_0x3cf464(_0x4a1c57);else{const _0x44d32e={};for(const _0x3c4149 of _0x5bc51f){const _0x2e4d0e=_0x3dd566['getAttribute'](_0x3c4149);void 0x0!==_0x2e4d0e&&(_0x44d32e[_0x3c4149]=_0x2e4d0e);}_0x3cf464(_0x4a1c57),_0x58364f['markBlockFormat'](_0x3dd566,{'commandParams':[_0x44d32e]},[],_0x3d0207);}}});}['handleDiscardAction'](_0x1250e7,_0x156cdb,_0x307203){const _0x400074=_0x156cdb[0x0]['start']['nodeAfter'],_0xbe34bc=_0x307203['commandParams'][0x0];this['editor']['model']['change'](_0x22d8ee=>{for(const _0x4d32f9 of _0x1250e7)void 0x0!==_0xbe34bc[_0x4d32f9]?_0x22d8ee['setAttribute'](_0x4d32f9,_0xbe34bc[_0x4d32f9],_0x400074):_0x22d8ee['removeAttribute'](_0x4d32f9,_0x400074);});}['handleSuggestionDescription'](_0x31e0ad){if(_0x31e0ad['data'])switch(_0x31e0ad['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'](_0x36ea60,_0x35b786){const _0x583ce0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4db6a2 of _0x583ce0['getSuggestions']({'skipNotAttached':!0x0})){const _0x295e82=_0x4db6a2['getContainedElement']();if(_0x4db6a2['subType']===_0x35b786&&_0x295e82===_0x36ea60)return _0x4db6a2;}return null;}}const u='$elementName';class p extends _0x45b538{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x22861c,_0x4fd3ff,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5284ee){super(_0x5284ee),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x269a61,_0x1293f9,_0x426ae0,_0x264fcf)=>{this['_model']['change'](()=>{for(const _0x3ea72b of[..._0x264fcf,..._0x426ae0])this['_model']['markers']['has'](_0x3ea72b)&&_0x5284ee['editing']['reconvertMarker'](_0x3ea72b);});}),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']=_0x5284ee['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(),_0x5284ee['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5284ee['config']['get']('trackChanges.trackFormatChanges'),_0x5284ee['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5284ee['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5284ee,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x9d9377=this['editor'],_0x33e94d=(_0x34c790,_0x63c041)=>{if('attribute'!=_0x34c790)return'ck-suggestion-marker-'+_0x34c790;const _0x3431c1=_0x63c041['split']('|')[0x0];return this['_isBlockAttribute'](_0x3431c1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x9d9377['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1a8186=>{const {id:_0x21d487,authorId:_0x4f547e,type:_0x2f672f,subType:_0x543f3e}=this['_splitMarkerName'](_0x1a8186['markerName']),_0x32da36=['ck-suggestion-marker',_0x33e94d(_0x2f672f,_0x543f3e)];let _0x225e2a=0xbb8;return this['activeMarkers']['includes'](_0x1a8186['markerName'])&&(_0x32da36['push']('ck-suggestion-marker--active'),_0x225e2a=0xbc2),'deletion'==_0x2f672f&&(_0x225e2a+=0x5),{'classes':_0x32da36,'attributes':{'data-suggestion':_0x21d487,'data-author-id':_0x4f547e},'priority':_0x225e2a};}}),_0x9d9377['conversion']['for']('dataDowncast')['add'](_0x2046c2=>{_0x2046c2['on']('addMarker:suggestion',(_0x42b860,_0x93431a,_0x450555)=>{if(!_0x450555['options']['showSuggestionHighlights'])return;const _0x287d4f=_0x93431a['item'];if(!_0x287d4f)return;const _0x42548d=_0x450555['mapper']['toViewElement'](_0x287d4f);_0x9d9377['model']['schema']['isObject'](_0x287d4f)&&_0x42548d&&!_0x42548d['getCustomProperty']('widget')&&_0x42548d['is']('containerElement')&&_0x247ec6(_0x42548d,_0x450555['writer']);},{'priority':'high'});}),_0x9d9377['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3d3c08,_0x5b8d6c)=>{if(!_0x5b8d6c['options']['showSuggestionHighlights'])return null;const {type:_0xccab5f,subType:_0x4e3457}=this['_splitMarkerName'](_0x3d3c08['markerName']);return{'classes':['ck-suggestion-marker',_0x33e94d(_0xccab5f,_0x4e3457)],'priority':0xbb8};}});const _0x530e44=({showActiveMarkers:_0x28b988=!0x0,isAttributeSuggestion:_0x4db3cd=!0x1}={})=>(_0x388a97,_0x37867e,_0x574629)=>{if(!_0x37867e['item'])return;const {id:_0x40b0ed,authorId:_0x1f8c1c}=this['_splitMarkerName'](_0x37867e['markerName']);if(_0x4db3cd){const _0x2b4a81=this['_suggestions']['get'](_0x40b0ed),_0xe0d5d8=this['_getAttributeKey'](_0x2b4a81);if(!this['_isBlockAttribute'](_0xe0d5d8))return;}if(_0x37867e['item']['is']('selection'))return void _0x574629['consumable']['consume'](_0x37867e['item'],_0x388a97['name']);const _0x444f36=_0x574629['mapper']['toViewElement'](_0x37867e['item']);if(_0x37867e['item']['is']('element')&&_0x9d9377['model']['schema']['isBlock'](_0x37867e['item'])&&!_0x444f36['getCustomProperty']('addHighlight')){_0x574629['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x444f36),_0x574629['writer']['setAttribute']('data-suggestion',_0x40b0ed,_0x444f36),_0x574629['writer']['setAttribute']('data-author-id',_0x1f8c1c,_0x444f36),_0x574629['mapper']['bindElementToMarker'](_0x444f36,_0x37867e['markerName']),_0x28b988&&(this['activeMarkers']['includes'](_0x37867e['markerName'])?_0x574629['writer']['addClass']('ck-suggestion-marker--active',_0x444f36):_0x574629['writer']['removeClass']('ck-suggestion-marker--active',_0x444f36));for(const _0x57a7db of _0x9d9377['model']['createRangeIn'](_0x37867e['item'])['getItems']())_0x574629['consumable']['consume'](_0x57a7db,_0x388a97['name']);_0x574629['consumable']['consume'](_0x37867e['item'],_0x388a97['name']);}};_0x9d9377['conversion']['for']('dataDowncast')['add'](_0x41ac49=>{_0x41ac49['on']('addMarker:suggestion:formatBlock',(_0x5615dc,_0x30be3a,_0x4cbc60)=>{_0x4cbc60['options']['showSuggestionHighlights']&&_0x530e44({'showActiveMarkers':!0x1})(_0x5615dc,_0x30be3a,_0x4cbc60);},{'priority':'highest'});}),_0x9d9377['conversion']['for']('dataDowncast')['add'](_0x231b6b=>{_0x231b6b['on']('addMarker:suggestion:attribute',(_0x1113e5,_0x4df04d,_0xb1a8e7)=>{_0xb1a8e7['options']['showSuggestionHighlights']&&_0x530e44({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1113e5,_0x4df04d,_0xb1a8e7);},{'priority':'highest'});}),_0x9d9377['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x27d828,_0x52f961)=>_0x52f961['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x27d828['substr'](0xb)}}),_0x9d9377['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1316e1,{writer:_0x490c89})=>{let _0x23f3ba='suggestion:'+_0x1316e1['getAttribute']('suggestion-type')+':'+_0x1316e1['getAttribute']('id');return _0x1316e1['getAttribute']('marker-count')&&(_0x23f3ba+=':'+_0x1316e1['getAttribute']('marker-count')),_0x490c89['createElement']('$marker',{'data-name':_0x23f3ba});}}),_0x9d9377['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x9d9377['conversion']['for']('editingDowncast')['add'](_0x17a767=>{_0x17a767['on']('addMarker:suggestion:formatBlock',_0x530e44(),{'priority':'high'});}),_0x9d9377['conversion']['for']('editingDowncast')['add'](_0x71baac=>{_0x71baac['on']('addMarker:suggestion:attribute',_0x530e44({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x9d9377['conversion']['for']('editingDowncast')['add'](_0x258bf4=>{_0x258bf4['on']('removeMarker:suggestion:formatBlock',(_0x1b7996,_0x387719,_0x19fa99)=>{const _0x92f021=_0x19fa99['mapper']['markerNameToElements'](_0x387719['markerName']);if(_0x92f021){for(const _0x3d42d6 of _0x92f021)_0x3d42d6['getCustomProperty']('addHighlight')||(_0x19fa99['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3d42d6),_0x19fa99['writer']['removeAttribute']('data-suggestion',_0x3d42d6),_0x19fa99['writer']['removeAttribute']('data-author-id',_0x3d42d6),_0x19fa99['mapper']['unbindElementFromMarkerName'](_0x3d42d6,_0x387719['markerName']));}},{'priority':'high'});}),_0x9d9377['conversion']['for']('editingDowncast')['add'](_0x576ff9=>{_0x576ff9['on']('removeMarker:suggestion:attribute',(_0x426971,_0x3ebcbc,_0x5cd5da)=>{const _0x5f0eb6=_0x5cd5da['mapper']['markerNameToElements'](_0x3ebcbc['markerName']);if(!_0x5f0eb6)return;const {id:_0x4c4f97}=this['_splitMarkerName'](_0x3ebcbc['markerName']),_0x5d4b74=this['_suggestions']['get'](_0x4c4f97),_0x163ae9=this['_getAttributeKey'](_0x5d4b74);if(this['_isBlockAttribute'](_0x163ae9)){for(const _0x5c353a of _0x5f0eb6)_0x5c353a['getCustomProperty']('addHighlight')||(_0x5cd5da['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5c353a),_0x5cd5da['writer']['removeAttribute']('data-suggestion',_0x5c353a),_0x5cd5da['writer']['removeAttribute']('data-author-id',_0x5c353a),_0x5cd5da['mapper']['unbindElementFromMarkerName'](_0x5c353a,_0x3ebcbc['markerName']));}},{'priority':'high'});}),_0x9d9377['model']['document']['registerPostFixer'](_0x51ff96=>{let _0x53c7f6=!0x1;const _0x9e05f9=Array['from'](_0x9d9377['model']['document']['differ']['getChangedMarkers']()),_0xa433be=new Set();for(const {name:_0x316c57,data:_0x5d12d3}of _0x9e05f9){const {group:_0x5e4236,type:_0x2ecb7d,subType:_0x26f2e2,id:_0x1f3e86}=this['_splitMarkerName'](_0x316c57);if('suggestion'!==_0x5e4236)continue;const _0x1847f2=this['_suggestions']['get'](_0x1f3e86);if(null!=_0x5d12d3['newRange']){'formatInline'==_0x2ecb7d&&(_0x53c7f6=_0x53c7f6||Jt(_0x5d12d3['newRange'],_0x316c57,_0x51ff96,_0x9d9377['model']['schema']));const _0x2cbe6b='attribute'==_0x2ecb7d&&this['_isBlockAttribute'](_0x26f2e2['split']('|')[0x0]);if(_0x5d12d3['newRange']['isCollapsed']||'$graveyard'==_0x5d12d3['newRange']['root']['rootName']||'formatBlock'==_0x2ecb7d&&!Ht(_0x5d12d3['newRange'])||_0x2cbe6b&&!Ht(_0x5d12d3['newRange'])||'deletion'==_0x2ecb7d&&!(!Lt(_0xe652ab=_0x5d12d3['newRange'])&&!function(_0x1eac4d){return _0x1eac4d['start']['parent']==_0x1eac4d['end']['nodeBefore']&&_0x1eac4d['start']['isAtEnd'];}(_0xe652ab)))_0x51ff96['removeMarker'](_0x316c57),_0x53c7f6=!0x0;else{if(!_0x1847f2||!_0x1847f2['isInContent'])continue;if(_0x5d12d3['newRange']&&_0x5d12d3['oldRange']&&_0x5d12d3['newRange']['isEqual'](_0x5d12d3['oldRange']))continue;_0xa433be['add'](_0x1847f2);}}}var _0xe652ab;return _0xa433be['size']>0x0&&(_0x53c7f6=!!this['_joinWithAdjacentSuggestions'](_0xa433be)||_0x53c7f6),_0x53c7f6;}),_0x9d9377['model']['document']['registerPostFixer'](_0x531f1a=>{let _0x517580=!0x1;for(const _0x2f7ed8 of _0x9d9377['model']['document']['differ']['getChanges']())if('insert'==_0x2f7ed8['type'])for(const _0x246097 of this['_suggestions']['values']()){if(_0x246097['isMultiRange']||!_0x246097['isInContent'])continue;const _0x4d2214='formatBlock'==_0x246097['type'],_0x350125=this['_getAttributeKey'](_0x246097),_0x120245=_0x350125&&this['_isBlockAttribute'](_0x350125);if(!_0x4d2214&&!_0x120245)continue;const _0x3decfa=_0x246097['getFirstRange']();if(_0x3decfa['start']['parent']!=_0x3decfa['end']['parent']&&!_0x3decfa['end']['isAtEnd']){const _0x26e8c8=_0x9d9377['model']['createPositionAt'](_0x3decfa['start']['nodeAfter'],'end'),_0xfaaaf1=_0x9d9377['model']['createRange'](_0x3decfa['start'],_0x26e8c8);_0x531f1a['updateMarker'](_0x246097['getFirstMarker'](),{'range':_0xfaaaf1}),_0x517580=!0x0;}}return _0x517580;}),_0x9d9377['model']['document']['registerPostFixer'](_0x37218f=>this['_processAttributeChanges'](_0x37218f)),_0x9d9377['model']['document']['registerPostFixer'](_0x553c89=>!_0x553c89['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x553c89)),_0x9d9377['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x9d9377['model']['document']['on']('change:data',(_0x84a5a6,_0x4185c8)=>{if(!_0x4185c8['isLocal']||_0x4185c8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x418442=_0x9d9377['model']['document']['differ']['getChanges']();if(0x0==_0x418442['length'])return;const _0xd1c26b=[],_0xdcb648=_0x418442['filter'](_0x4ff3cb=>'attribute'==_0x4ff3cb['type']),_0xd9847e=_0x418442['filter'](_0x446b33=>'insert'==_0x446b33['type']&&'$text'!=_0x446b33['name']);for(const _0x499298 of _0xdcb648)this['_isRegisteredAttribute'](_0x499298['attributeKey'])&&_0xd1c26b['push']({'key':_0x499298['attributeKey'],'newValue':_0x499298['attributeNewValue'],'oldValue':_0x499298['attributeOldValue'],'range':qt(_0x499298['range'],_0x9d9377['model'])});for(const _0x33e06e of _0xd9847e){if('rename'!=_0x33e06e['action']&&'refresh'!=_0x33e06e['action'])continue;const _0x32bc35=zt(_0x33e06e['position']['nodeAfter'],_0x9d9377['model']),_0x19c18c=_0x33e06e['before'];'rename'==_0x33e06e['action']&&_0xd1c26b['push']({'key':u,'newValue':_0x33e06e['name'],'oldValue':_0x19c18c['name'],'range':_0x32bc35});for(const [_0x405117,_0x4f810d]of _0x19c18c['attributes']){if(!this['_isRegisteredAttribute'](_0x405117))continue;const _0x105c36=_0x33e06e['attributes']['get'](_0x405117);_0x4f810d!==_0x105c36&&_0xd1c26b['push']({'key':_0x405117,'newValue':_0x105c36,'oldValue':_0x4f810d,'range':_0x32bc35});}for(const [_0x4cc834,_0x333e7d]of _0x33e06e['attributes'])this['_isRegisteredAttribute'](_0x4cc834)&&(_0x19c18c['attributes']['has'](_0x4cc834)||_0xd1c26b['push']({'key':_0x4cc834,'newValue':_0x333e7d,'oldValue':null,'range':_0x32bc35}));}0x0!=_0xd1c26b['length']&&_0x9d9377['model']['enqueueChange'](_0x4185c8,_0x5932f4=>{const _0x482902=_0x81f967();for(const {range:_0x350c19,key:_0x57ce2f,oldValue:_0x13a7c1,newValue:_0xd2de5e}of _0xd1c26b)this['markAttributeChange'](_0x350c19,_0x57ce2f,_0x13a7c1,_0xd2de5e,{'groupId':_0x482902});this['_reduceExistingSuggestions'](_0x5932f4,_0xd1c26b);});},{'priority':'lowest'}),_0x9d9377['model']['markers']['on']('update:suggestion',(_0x7a1fe6,_0x3a398c,_0x44bf0e)=>{if(null==_0x44bf0e){const {id:_0x273d7a}=this['_splitMarkerName'](_0x3a398c['name']),_0x19a651=this['_suggestions']['get'](_0x273d7a);_0x19a651&&_0x19a651['addMarkerName'](_0x3a398c['name']);}}),_0x9d9377['model']['document']['on']('change:data',()=>{const _0x192f3c=Array['from'](_0x9d9377['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3f86b3=>'suggestion'===this['_splitMarkerName'](_0x3f86b3['name'])['group']);if(0x0===_0x192f3c['length'])return;_0x192f3c['sort']((_0x518e21,_0x423740)=>{const _0x4a2f72=_0x518e21['data']['oldRange'],_0x29e762=_0x423740['data']['oldRange'];return null===_0x4a2f72&&null===_0x29e762?0x0:null===_0x4a2f72&&null!==_0x29e762?-0x1:null!==_0x4a2f72&&null===_0x29e762?0x1:_0x4a2f72['start']['isBefore'](_0x29e762['start'])?-0x1:0x1;});const _0x3ee8a1=new Set(),_0x6dfed9=new Set();for(const {name:_0x522a2d,data:_0x23326b}of _0x192f3c){const {id:_0x68163b}=this['_splitMarkerName'](_0x522a2d);if(null===_0x23326b['oldRange']){const _0x43c96d=this['_handleNewSuggestionMarker'](_0x522a2d);_0x6dfed9['add'](_0x43c96d);}else{const _0xaaac64=this['_suggestions']['get'](_0x68163b);null!==_0x23326b['newRange']||_0xaaac64['isInContent']?(_0x3ee8a1['add'](_0xaaac64['head']),_0x6dfed9['add'](_0xaaac64)):this['_removeSuggestion'](_0xaaac64);}}_0x6dfed9['size']>0x0&&this['_refreshSuggestionsChain'](_0x6dfed9);for(const _0x57f0b5 of _0x3ee8a1)this['fire']('suggestionChanged',_0x57f0b5);}),_0x9d9377['model']['on']('applyOperation',(_0x52e728,_0x38a6f7)=>{const _0x1a3259=_0x38a6f7[0x0];if(!this['_suggestions']['size'])return;if(!_0x1a3259['isDocumentOperation'])return;if(_0x1a3259['batch']['isUndo']||!_0x1a3259['batch']['isLocal'])return;let _0x5c5a4b,_0x574f86;switch(_0x1a3259['type']){case'insert':_0x5c5a4b=_0x9d9377['model']['createPositionAt'](_0x1a3259['position']),_0x574f86=_0x5c5a4b['getShiftedBy'](_0x1a3259['howMany']);break;case'split':_0x5c5a4b=_0x9d9377['model']['createPositionAt'](_0x1a3259['splitPosition']),_0x574f86=_0x9d9377['model']['createPositionAt'](_0x1a3259['moveTargetPosition']);break;case'move':_0x5c5a4b=_0x9d9377['model']['createPositionAt'](_0x1a3259['targetPosition']),_0x574f86=_0x5c5a4b['getShiftedBy'](_0x1a3259['howMany']);break;default:return;}const _0x1c0844=_0x9d9377['model']['createRange'](_0x5c5a4b,_0x574f86);_0x9d9377['model']['change'](()=>{for(const {suggestion:_0x4a74a0,meta:_0x559034}of this['_findSuggestions'](_0x1c0844)){if(_0x4a74a0['isMultiRange'])continue;if('formatInline'==_0x4a74a0['type'])continue;const _0x2bdc2b=this['_getAttributeKey'](_0x4a74a0);if(_0x2bdc2b&&this['_isBlockAttribute'](_0x2bdc2b)&&'split'!=_0x1a3259['type'])continue;const _0x489916=_0x4a74a0['data']&&_0x4a74a0['data']['multipleBlocks'];('formatBlock'!=_0x4a74a0['type']||'split'==_0x1a3259['type']&&!_0x489916)&&(_0x559034['containsRangeInObject']||'insertion'==_0x4a74a0['type']&&_0x559034['isOwn']||_0x4a74a0['getFirstRange']()['containsRange'](_0x1c0844)&&this['_breakSuggestionMarker'](_0x4a74a0,_0x5c5a4b,_0x574f86));}});},{'priority':'lowest'}),_0x9d9377['model']['on']('deleteContent',(_0x5a5e8b,_0x33fdb1)=>{const _0x3a72da=_0x33fdb1[0x0],_0x1125e4=_0x33fdb1[0x1];if(_0x1125e4&&_0x1125e4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3a72da['isCollapsed'])return;const _0x10ba80=_0x9d9377['model']['schema'],{start:_0x305ef6,end:_0x5c2488}=_0x3a72da['getFirstRange'](),_0x2242f1=_0x305ef6['nodeAfter']&&_0x10ba80['isLimit'](_0x305ef6['nodeAfter'])?null:_0x10ba80['getNearestSelectionRange'](_0x305ef6,'forward'),_0x4ebb3d=_0x5c2488['nodeBefore']&&_0x10ba80['isLimit'](_0x5c2488['nodeBefore'])?null:_0x10ba80['getNearestSelectionRange'](_0x5c2488,'backward'),_0x19e0fa=_0x9d9377['model']['createRange'](_0x2242f1?_0x2242f1['start']:_0x305ef6,_0x4ebb3d?_0x4ebb3d['end']:_0x5c2488);_0x9d9377['model']['change'](_0x536ba9=>{this['markDeletion'](_0x19e0fa);const _0x1009d3=_0x9d9377['model']['schema']['getNearestSelectionRange'](_0x19e0fa['start']);_0x3a72da['is']('documentSelection')?_0x536ba9['setSelection'](_0x1009d3):_0x3a72da['setTo'](_0x1009d3);}),_0x5a5e8b['stop']();},{'priority':_0x9edb2b['normal']+0xa}),_0x9d9377['model']['on']('insertContent',(_0xe8454d,_0x48a859)=>{const _0x58cdb5=_0x48a859[_0x48a859['length']-0x1];_0x58cdb5&&_0x58cdb5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x9d9377['model']['change'](()=>{let _0x7f20bb=_0x9d9377['model']['insertContent'](_0x48a859[0x0],_0x48a859[0x1],_0x48a859[0x2],{'forceDefaultExecution':!0x0});if(!_0x7f20bb)return;_0xe8454d['return']=_0x7f20bb['clone']();const _0x5c54cf=_0x7f20bb['end']['nodeBefore'],_0x346240=_0x9d9377['model']['schema'];_0x5c54cf&&_0x346240['isBlock'](_0x5c54cf)&&!_0x346240['isObject'](_0x5c54cf)&&(_0x7f20bb=_0x9d9377['model']['createRange'](_0x7f20bb['start'],_0x9d9377['model']['createPositionAt'](_0x5c54cf,'end'))),this['markInsertion'](_0x7f20bb);}),_0xe8454d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4db7b3=new O(_0x9d9377,this['_suggestions']);_0x9d9377['commands']['add']('acceptSuggestion',_0x4db7b3),this['enableCommand']('acceptSuggestion');const _0xedcd09=new R(_0x9d9377,this['_suggestions']);_0x9d9377['commands']['add']('discardSuggestion',_0xedcd09),this['enableCommand']('discardSuggestion'),_0x9d9377['commands']['add']('acceptAllSuggestions',new x(_0x9d9377,_0x4db7b3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x9d9377['commands']['add']('discardAllSuggestions',new x(_0x9d9377,_0xedcd09,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x9d9377['commands']['add']('acceptSelectedSuggestions',new E(_0x9d9377,_0x4db7b3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x9d9377['commands']['add']('discardSelectedSuggestions',new E(_0x9d9377,_0xedcd09,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x48e153=_0x9d9377['plugins']['get']('CommentsRepository');this['listenTo'](_0x48e153,'addComment',(_0x308cb6,{threadId:_0x5a6c0c})=>{const _0x40bc06=this['_suggestions']['get'](_0x5a6c0c);_0x40bc06&&_0x40bc06['commentThread']&&0x1===_0x40bc06['commentThread']['length']&&this['_updateSuggestionData'](_0x5a6c0c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x48e153,'removeComment',(_0xeefd07,{threadId:_0x312fea})=>{const _0x410406=this['_suggestions']['get'](_0x312fea);_0x410406&&_0x410406['commentThread']&&!_0x410406['commentThread']['length']&&this['_updateSuggestionData'](_0x312fea,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x499d5a){const _0x2bd30e=_0x4c4b70([0x4b,0x59,0x42,0x31,0x36,0x7a,0x65,0x62,0x78,0x35,0x45,0x4f,0x4e,0x34,0x53,0x70,0x77,0x4d,0x33,0x68,0x61,0x37,0x38,0x5a,0x32,0x41,0x6d,0x44,0x6b,0x76,0x6e,0x4c,0x54,0x6a,0x66,0x69,0x4a,0x64,0x39,0x6f,0x55,0x43,0x75,0x52,0x67,0x74,0x46,0x6c,0x73,0x48,0x56,0x51,0x30,0x71,0x50,0x49,0x79,0x57,0x47,0x58,0x63,0x72]),_0x5a0164=0x1b603f2f,_0x2ab76d=0x1b675b77^_0x5a0164,_0x43c3f3=window[_0x4c4b70([0x44,0x61,0x74,0x65])][_0x4c4b70([0x6e,0x6f,0x77])](),_0x25505d=_0x499d5a[_0x4c4b70([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x191a9f=new window[(_0x4c4b70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e5fba=>{_0x25505d[_0x4c4b70([0x6f,0x6e,0x63,0x65])](_0x4c4b70([0x72,0x65,0x61,0x64,0x79]),_0x4e5fba);}),_0x3609c2={[_0x4c4b70([0x6b,0x74,0x79])]:_0x4c4b70([0x45,0x43]),[_0x4c4b70([0x75,0x73,0x65])]:_0x4c4b70([0x73,0x69,0x67]),[_0x4c4b70([0x63,0x72,0x76])]:_0x4c4b70([0x50,0x2d,0x32,0x35,0x36]),[_0x4c4b70([0x78])]:_0x4c4b70([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]),[_0x4c4b70([0x79])]:_0x4c4b70([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]),[_0x4c4b70([0x61,0x6c,0x67])]:_0x4c4b70([0x45,0x53,0x32,0x35,0x36])},_0x384cb9=_0x25505d[_0x4c4b70([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c4b70([0x67,0x65,0x74])](_0x4c4b70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24aab8(){let _0x1f2624,_0x3705b6=null,_0x22e856=null;try{if(_0x384cb9==_0x4c4b70([0x47,0x50,0x4c]))return _0x4c4b70([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1f2624=_0x5481ce(),!_0x1f2624)return _0x4c4b70([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1f2624[_0x4c4b70([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x22e856=_0x331126(_0x1f2624[_0x4c4b70([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1f2624[_0x4c4b70([0x6a,0x74,0x69])])),await _0x1b2aa3()?_0x338ccf()?_0x214685()?_0x4c4b70([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50b34f()?(_0x1f2624[_0x4c4b70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c4b70([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3705b6=_0xebfbae(_0x4c4b70([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1f2624[_0x4c4b70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c4b70([0x74,0x72,0x69,0x61,0x6c])&&(_0x3705b6=_0xebfbae(_0x4c4b70([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x440827()):_0x4c4b70([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c4b70([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c4b70([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x53f1c6){return _0x4c4b70([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x214685(){const _0x490bb6=[_0x4c4b70([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c4b70([0x74,0x72,0x69,0x61,0x6c])][_0x4c4b70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2624[_0x4c4b70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43c3f3/0x3e8:0xe10*_0x2ab76d;return _0x1f2624[_0x4c4b70([0x65,0x78,0x70])]<_0x490bb6;}function _0x338ccf(){const _0x7199a3=_0x1f2624[_0x4c4b70([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x7199a3)return!0x1;if(_0x7199a3[_0x4c4b70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4b70([0x2a])))return!0x0;if(_0x7199a3[_0x4c4b70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4b70([0x54,0x43])))return!0x0;if(_0x7199a3[_0x4c4b70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4b70([0x52,0x54,0x43]))){if(_0x450e08())return!0x0;if(_0x366a33()||_0x72faa0())return!0x0;}return!0x1;}function _0x50b34f(){const _0x57e7dc=_0x1f2624[_0x4c4b70([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57e7dc||0x0==_0x57e7dc[_0x4c4b70([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x849479}=new URL(window[_0x4c4b70([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x57e7dc[_0x4c4b70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x849479))return!0x0;const _0x4a9549=_0x849479[_0x4c4b70([0x73,0x70,0x6c,0x69,0x74])](_0x4c4b70([0x2e]));return _0x57e7dc[_0x4c4b70([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e2ee9=>_0x1e2ee9[_0x4c4b70([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4b70([0x2a])))[_0x4c4b70([0x6d,0x61,0x70])](_0xbe8797=>_0xbe8797[_0x4c4b70([0x73,0x70,0x6c,0x69,0x74])](_0x4c4b70([0x2e])))[_0x4c4b70([0x73,0x6f,0x6d,0x65])](_0x51e99d=>_0x4a9549[_0x4c4b70([0x65,0x76,0x65,0x72,0x79])]((_0x3972cf,_0xd5ff7d)=>_0x51e99d[_0xd5ff7d]===_0x3972cf||_0x51e99d[_0xd5ff7d]===_0x4c4b70([0x2a])));}function _0x440827(){return _0x3705b6&&_0x22e856?new window[(_0x4c4b70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa2c366,_0x72059e)=>{_0x3705b6[_0x4c4b70([0x74,0x68,0x65,0x6e])](_0xa2c366,_0x72059e),_0x22e856[_0x4c4b70([0x74,0x68,0x65,0x6e])](_0x31662c=>{_0x31662c!=_0x4c4b70([0x56,0x61,0x6c,0x69,0x64])&&_0xa2c366(_0x31662c);},_0x72059e);}):_0x3705b6||_0x22e856||_0x4c4b70([0x56,0x61,0x6c,0x69,0x64]);}}function _0x331126(_0x141d6f,_0x5809e7){return new window[(_0x4c4b70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x362709=>{if(_0x5901b6())return _0x362709(_0x4c4b70([0x56,0x61,0x6c,0x69,0x64]));_0x12c2ee(),_0x25505d[_0x4c4b70([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c4b70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a596a=!0x1;const _0x413925=_0x81f967();function _0x3cf8ce(_0x4bf740){return!!_0x4bf740&&(typeof _0x4bf740===_0x4c4b70([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bf740===_0x4c4b70([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bf740[_0x4c4b70([0x74,0x68,0x65,0x6e])]===_0x4c4b70([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bf740[_0x4c4b70([0x63,0x61,0x74,0x63,0x68])]===_0x4c4b70([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2cfe0b(_0x44f9e2){_0x55936a(_0x44f9e2)[_0x4c4b70([0x74,0x68,0x65,0x6e])](_0x1b4b60=>{if(!_0x1b4b60||_0x1b4b60[_0x4c4b70([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c4b70([0x6f,0x6b]))return _0x4c4b70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12825f(_0x2d749f(_0x413925+_0x5809e7))!=_0x1b4b60[_0x4c4b70([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c4b70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c4b70([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c4b70([0x74,0x68,0x65,0x6e])](_0xc31495=>(_0x21fdab(),_0xc31495),()=>{const _0x457f7a=_0x5a5045();return null==_0x457f7a?(_0x21fdab(),_0x4c4b70([0x56,0x61,0x6c,0x69,0x64])):_0x4c4b70(_0x43c3f3-_0x457f7a>(0x3f6cbb2f^_0x5a0164)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c4b70([0x74,0x68,0x65,0x6e])](_0x362709)[_0x4c4b70([0x63,0x61,0x74,0x63,0x68])](()=>{_0x362709(_0x4c4b70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7975f1=0x1b56d1af^_0x5a0164;function _0x21fdab(){const _0x494070=_0x4c4b70([0x6c,0x6c,0x63,0x74,0x2d])+_0x12825f(_0x2d749f(_0x141d6f)),_0x4301ff=_0x428d21(_0x12825f(window[_0x4c4b70([0x4d,0x61,0x74,0x68])][_0x4c4b70([0x63,0x65,0x69,0x6c])](_0x43c3f3/_0x7975f1)));window[_0x4c4b70([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c4b70([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x494070,_0x4301ff);}function _0x5a5045(){const _0x84024=_0x4c4b70([0x6c,0x6c,0x63,0x74,0x2d])+_0x12825f(_0x2d749f(_0x141d6f)),_0x3e957d=window[_0x4c4b70([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c4b70([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x84024);return _0x3e957d?window[_0x4c4b70([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x428d21(_0x3e957d),0x10)*_0x7975f1:null;}function _0x55936a(_0x1db138){return new window[(_0x4c4b70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3edecd,_0x5e02c5)=>{_0x1db138[_0x4c4b70([0x74,0x68,0x65,0x6e])](_0x3edecd,_0x5e02c5),window[_0x4c4b70([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e02c5,0x1b61ebef^_0x5a0164);});}}_0x25505d[_0x4c4b70([0x6f,0x6e])](_0x4c4b70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c2474,_0x2287e8)=>{if(_0x2287e8[0x0]!=_0x141d6f)return _0x362709(_0x4c4b70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2287e8[0x1]={..._0x2287e8[0x1],[_0x4c4b70([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x413925};},{[_0x4c4b70([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c4b70([0x68,0x69,0x67,0x68])}),_0x25505d[_0x4c4b70([0x6f,0x6e])](_0x4c4b70([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4242cc=>{_0x3cf8ce(_0x4242cc[_0x4c4b70([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a596a=!0x0,_0x2cfe0b(_0x4242cc[_0x4c4b70([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c4b70([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c4b70([0x6c,0x6f,0x77])}),_0x191a9f[_0x4c4b70([0x74,0x68,0x65,0x6e])](()=>{_0x3a596a||_0x362709(_0x4c4b70([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5901b6(){return _0x25505d[_0x4c4b70([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c4b70([0x76,0x69,0x65,0x77])][_0x4c4b70([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c4b70([0x61,0x75,0x74,0x6f]);}function _0x12c2ee(){_0x25505d[_0x4c4b70([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c4b70([0x76,0x69,0x65,0x77])][_0x4c4b70([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c4b70([0x61,0x75,0x74,0x6f]);}}function _0xebfbae(_0x109a6d){const _0x16b3d4=[new window[(_0x4c4b70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19f79d=>setTimeout(_0x19f79d,0x1b6901e3^_0x5a0164)),_0x191a9f[_0x4c4b70([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c4b70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ac2d0=>{let _0x227180=0x0;_0x25505d[_0x4c4b70([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c4b70([0x6f,0x6e])](_0x4c4b70([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x455151,_0x2ee0d8)=>{_0x2ee0d8[0x0][_0x4c4b70([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x227180++,_0x227180==(0x1b603ed7^_0x5a0164)&&(_0x5ac2d0(),_0x455151[_0x4c4b70([0x6f,0x66,0x66])]());});}))];return window[_0x4c4b70([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c4b70([0x72,0x61,0x63,0x65])](_0x16b3d4)[_0x4c4b70([0x74,0x68,0x65,0x6e])](()=>_0x109a6d);}async function _0x56bbe3(){await _0x191a9f,_0x25505d[_0x4c4b70([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c4b70([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x206a73,_0x25505d[_0x4c4b70([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c4b70([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x206a73,_0x25505d[_0x4c4b70([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c4b70([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x450e08(){return _0x2adee9(_0x4c4b70([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2cc19d(_0x4c4b70([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4c4b70([0x73,0x74,0x61,0x74,0x65])]==_0x4c4b70([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x366a33(){return _0x2adee9(_0x4c4b70([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 _0x72faa0(){return _0x2adee9(_0x4c4b70([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xbfa134(_0x3858d5){const _0x5d9019=_0x57abaf();_0x25505d[_0x5d9019]=_0x4c4b70([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3858d5,_0x3858d5!=_0x4c4b70([0x56,0x61,0x6c,0x69,0x64])&&_0x56bbe3();}function _0x57abaf(){const _0x577051=window[_0x4c4b70([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c4b70([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c4b70([0x6e,0x6f,0x77])]())[_0x4c4b70([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c4b70([0x2e]),'');let _0x136349=_0x4c4b70([0x4b]);for(let _0x2e7e95=0x0;_0x2e7e95<_0x577051[_0x4c4b70([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e7e95+=0x2){let _0x3dc986=window[_0x4c4b70([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x577051[_0x4c4b70([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7e95,_0x2e7e95+0x2));_0x3dc986>=_0x2bd30e[_0x4c4b70([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3dc986-=_0x2bd30e[_0x4c4b70([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x136349+=_0x2bd30e[_0x3dc986];}return _0x136349;}function _0x5481ce(){const _0x3b41c8=_0x384cb9[_0x4c4b70([0x73,0x70,0x6c,0x69,0x74])](_0x4c4b70([0x2e]));if(0x3!=_0x3b41c8[_0x4c4b70([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6fbcf9(_0x3b41c8[0x1]);function _0x6fbcf9(_0x1ce56f){const _0x2ee7b6=_0x50963b(_0x1ce56f);return _0x2ee7b6&&_0x32e3cc()?_0x2ee7b6:null;function _0x32e3cc(){const _0x319028=_0x2ee7b6[_0x4c4b70([0x6a,0x74,0x69])],_0x76ee6a=window[_0x4c4b70([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x319028[_0x4c4b70([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x319028[_0x4c4b70([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18a5aa={..._0x2ee7b6,[_0x4c4b70([0x6a,0x74,0x69])]:_0x319028[_0x4c4b70([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x319028[_0x4c4b70([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18a5aa[_0x4c4b70([0x76,0x63])],_0x2d749f(_0x18a5aa)==_0x76ee6a;}}}async function _0x1b2aa3(){let _0x411ce0=!0x0;try{const _0x48d7db=_0x384cb9[_0x4c4b70([0x73,0x70,0x6c,0x69,0x74])](_0x4c4b70([0x2e])),[_0x588e4a,_0x30c712,_0x1d2112]=_0x48d7db;return _0x9c6a05(_0x588e4a),await _0x389418(_0x588e4a,_0x30c712,_0x1d2112),_0x411ce0;}catch(_0x55e41e){return!0x1;}function _0x9c6a05(_0x4e182d){const _0x45632f=_0x50963b(_0x4e182d);_0x45632f&&_0x45632f[_0x4c4b70([0x61,0x6c,0x67])]==_0x4c4b70([0x45,0x53,0x32,0x35,0x36])||(_0x411ce0=!0x1);}async function _0x389418(_0x49b1ed,_0xe328a2,_0xcc408a){const _0x4b6e87=window[_0x4c4b70([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c4b70([0x66,0x72,0x6f,0x6d])](_0x27d2b9(_0xcc408a),_0x3690d0=>_0x3690d0[_0x4c4b70([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ed063=new window[(_0x4c4b70([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c4b70([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49b1ed+_0x4c4b70([0x2e])+_0xe328a2),_0x1455c0=window[_0x4c4b70([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c4b70([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1455c0)return;const _0x18768d=await _0x1455c0[_0x4c4b70([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c4b70([0x6a,0x77,0x6b]),_0x3609c2,{[_0x4c4b70([0x6e,0x61,0x6d,0x65])]:_0x4c4b70([0x45,0x43,0x44,0x53,0x41]),[_0x4c4b70([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c4b70([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c4b70([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1455c0[_0x4c4b70([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c4b70([0x6e,0x61,0x6d,0x65])]:_0x4c4b70([0x45,0x43,0x44,0x53,0x41]),[_0x4c4b70([0x68,0x61,0x73,0x68])]:{[_0x4c4b70([0x6e,0x61,0x6d,0x65])]:_0x4c4b70([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18768d,_0x4b6e87,_0x1ed063)||(_0x411ce0=!0x1);}}function _0x50963b(_0x219e92){return _0x219e92[_0x4c4b70([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c4b70([0x65,0x79]))?JSON[_0x4c4b70([0x70,0x61,0x72,0x73,0x65])](_0x27d2b9(_0x219e92)):null;}function _0x27d2b9(_0x343d61){return window[_0x4c4b70([0x61,0x74,0x6f,0x62])](_0x343d61[_0x4c4b70([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c4b70([0x2b]))[_0x4c4b70([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c4b70([0x2f])));}function _0x2d749f(_0x81594f){let _0x2ddc73=0x1505;function _0x164a36(_0x5b725d){for(let _0x41067e=0x0;_0x41067e<_0x5b725d[_0x4c4b70([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41067e++){const _0x134bec=_0x5b725d[_0x4c4b70([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41067e);_0x2ddc73=(_0x2ddc73<<0x5)+_0x2ddc73+_0x134bec,_0x2ddc73&=_0x2ddc73;}}function _0x5bd65b(_0x228983){Array[_0x4c4b70([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x228983)?_0x228983[_0x4c4b70([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bd65b):_0x228983&&typeof _0x228983==_0x4c4b70([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c4b70([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x228983)[_0x4c4b70([0x73,0x6f,0x72,0x74])]()[_0x4c4b70([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x449226,_0x14545e])=>{_0x164a36(_0x449226),_0x5bd65b(_0x14545e);}):_0x164a36(window[_0x4c4b70([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x228983));}return _0x5bd65b(_0x81594f),_0x2ddc73>>>0x0;}function _0x12825f(_0x209805){return _0x209805[_0x4c4b70([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c4b70([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c4b70([0x30]));}function _0x428d21(_0x5006bd){return _0x5006bd[_0x4c4b70([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c4b70([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c4b70([0x6a,0x6f,0x69,0x6e])]('');}function _0x2adee9(_0x4417d2){return _0x25505d[_0x4c4b70([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c4b70([0x68,0x61,0x73])](_0x4417d2);}function _0x2cc19d(_0xc675d9){return _0x25505d[_0x4c4b70([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c4b70([0x67,0x65,0x74])](_0xc675d9);}function _0x206a73(){}function _0x4c4b70(_0x30c1fa){return _0x30c1fa['map'](_0x4011ae=>String['fromCharCode'](_0x4011ae))['join']('');}_0xbfa134(await _0x24aab8());}(this);}set['adapter'](_0x2898bf){if(this['_adapter'])throw new _0xa3b19b('track-changes-adapter-already-set',this);this['_adapter']=_0x2898bf;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x165ebb=!0x1,toJSON:_0x13f75d=!0x1}={}){const _0x3e3445=[];for(const _0x8bb7ef of this['_suggestions']['values']())_0x165ebb&&!_0x8bb7ef['isInContent']||_0x3e3445['push'](_0x8bb7ef);return _0x13f75d?_0x3e3445['map'](_0x407f44=>_0x407f44['toJSON']()):_0x3e3445;}['getSuggestion'](_0x2a5982){const _0x22b515=this['_suggestions']['get'](_0x2a5982);if(!_0x22b515)throw new _0xa3b19b('track-changes-suggestion-not-found',this);return _0x22b515;}['hasSuggestion'](_0xf07c2c){return this['_suggestions']['has'](_0xf07c2c);}['addSuggestionData'](_0x3f7526){const {authorId:_0x59c88c,id:_0x16f103,attributes:_0x2720fe}=_0x3f7526,[_0x16981a,_0x41b53d]=_0x3f7526['type']['split'](':'),_0x109fe2=this['_suggestions']['get'](_0x16f103)||this['_createSuggestion'](_0x16981a,_0x41b53d,_0x16f103,_0x59c88c,_0x2720fe);if(this['_addThreadToSuggestion'](_0x109fe2),this['_checkSuggestionCorrectness'](_0x109fe2,_0x16981a,_0x41b53d||null,_0x59c88c),_0x109fe2['createdAt']=_0x3f7526['createdAt'],_0x109fe2['_isDataLoaded']=!0x0,_0x2720fe&&_0x2720fe['@external']){const _0xb1a06d=_0x2720fe['@external'],_0x5cab65=this['_getExternalAuthor'](_0xb1a06d['authorName']);_0x109fe2['authoredAt']=_0xb1a06d['createdAt'],_0x109fe2['author']=_0x5cab65,_0x109fe2['isExternal']=!0x0;}else _0x109fe2['authoredAt']=_0x3f7526['createdAt'];switch(_0x3f7526['data']&&(_0x109fe2['data']=_0x3f7526['data']),_0x3f7526['attributes']&&(_0x109fe2['attributes']=_0x3f7526['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x109fe2['_saved']=!0x0),this['_suggestionState']['get'](_0x109fe2)){case'notReady':this['_suggestionState']['set'](_0x109fe2,'dataReady');break;case'markerReady':_0x109fe2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x109fe2])),this['_refreshSuggestionsChain'](new Set([_0x109fe2])),this['_suggestionState']['set'](_0x109fe2,'ready'),this['fire']('suggestionLoaded',_0x109fe2)):this['_suggestionState']['set'](_0x109fe2,'removed');}return _0x109fe2;}['acceptSuggestion'](_0x5e485d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2da724 of _0x5e485d['getAllAdjacentSuggestions']())_0x2da724['accept']();});});}['discardSuggestion'](_0x3671d5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x57e24b of _0x3671d5['getAllAdjacentSuggestions']())_0x57e24b['discard']();});});}['enableCommand'](_0x5d4b06,_0x1eb009){const _0x56d658=this['editor']['commands']['get'](_0x5d4b06);if(!_0x56d658)throw new _0xa3b19b('track-changes-command-not-found',this,{'commandName':_0x5d4b06});if(this['_enabledCommands']['has'](_0x56d658))throw new _0xa3b19b('track-changes-enable-command-twice',this,{'commandName':_0x5d4b06});this['_enabledCommands']['add'](_0x56d658),_0x1eb009&&_0x56d658['on']('execute',(_0x3494a2,_0x4d3bd7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d3bd7['length']>0x0&&_0x4d3bd7[_0x4d3bd7['length']-0x1]&&_0x4d3bd7[_0x4d3bd7['length']-0x1]['forceDefaultExecution']?_0x4d3bd7['pop']():(_0x3494a2['return']=_0x1eb009((..._0x1874fd)=>_0x56d658['execute'](..._0x1874fd,{'forceDefaultExecution':!0x0}),..._0x4d3bd7),_0x3494a2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x454c8c){let _0x3f9df7,_0x1032df;const _0x157e24=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3f9df7=_0x454c8c();}catch(_0xec240a){_0x1032df=_0xec240a;}return _0x157e24||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1032df&&_0xa3b19b['rethrowUnexpectedError'](_0x1032df,this),_0x3f9df7;}['markInsertion'](_0x18a7a7,_0x3bc242=null,_0x1a4982={}){if(_0x18a7a7['isCollapsed'])return null;const _0x1a0432=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x8e284f,meta:_0x490235}of this['_findSuggestions'](_0x18a7a7,'insertion'))if(_0x490235['isOwn']){if(!_0x490235['isNextTo']){if(_0x490235['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x8e284f,_0x1a4982))continue;return _0x8e284f;}if(Xt(_0x8e284f,_0x1a4982))return _0x8e284f;this['_breakSuggestionMarker'](_0x8e284f,_0x18a7a7['start'],_0x18a7a7['end']);break;}if(_0x3bc242==_0x8e284f['subType']&&Xt(_0x8e284f,_0x1a4982)){const _0x5b1c66=_0x8e284f['getFirstRange']();return _0x5b1c66['start']['isEqual'](_0x18a7a7['end'])?this['_setSuggestionRange'](_0x8e284f,this['_model']['createRange'](_0x18a7a7['start'],_0x5b1c66['end'])):this['_setSuggestionRange'](_0x8e284f,this['_model']['createRange'](_0x5b1c66['start'],_0x18a7a7['end'])),_0x8e284f;}}const _0x47294d=_0x81f967(),_0x4775e2=_0x1a0432['id'],_0x21f009=_0x3bc242?'insertion:'+_0x3bc242:'insertion',_0x5bb4c=this['_setSuggestionData']({'id':_0x47294d,'type':_0x21f009,'createdAt':new Date(),'authorId':_0x4775e2,'attributes':_0x1a4982});return this['_addSuggestionMarker'](_0x21f009,_0x47294d,_0x4775e2,_0x18a7a7),_0x5bb4c;}['markMultiRangeInsertion'](_0x467d06,_0x7cd198='multi',_0x67fc5f={}){const _0x19f86a=this['editor']['plugins']['get']('Users')['me'],_0x62123e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x7cd198,'join');for(const _0x26e48f of this['getSuggestions']())if(_0x26e48f['author']['id']==_0x19f86a['id']&&'insertion'==_0x26e48f['type']&&_0x26e48f['subType']==_0x7cd198&&Xt(_0x26e48f,_0x67fc5f)&&(_0x62123e(_0x26e48f['getRanges'](),_0x467d06)||_0x62123e(_0x467d06,_0x26e48f['getRanges']()))){for(const _0x1bf16f of _0x467d06)_0x26e48f['addRange'](_0x1bf16f);return _0x26e48f;}for(const {suggestion:_0x50105a,meta:_0x1dd83c}of this['_findSuggestions'](_0x467d06,'insertion')){if(!_0x1dd83c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1dd83c['containsRangeInObject'])continue;if(!Xt(_0x50105a,_0x67fc5f))continue;let _0x32a7f1=!0x0;for(const _0x56d569 of _0x50105a['getRanges']())for(const _0x4bc135 of _0x467d06)if(!_0x56d569['containsRange'](_0x4bc135)){_0x32a7f1=!0x1;break;}if(_0x32a7f1)return _0x50105a;}const _0x36fb81=_0x81f967(),_0x100494=_0x19f86a['id'],_0x16a350='insertion:'+_0x7cd198,_0x584d06=this['_setSuggestionData']({'id':_0x36fb81,'type':_0x16a350,'createdAt':new Date(),'authorId':_0x100494,'attributes':_0x67fc5f});for(const _0x7d4b88 of _0x467d06)this['_addSuggestionMarker'](_0x16a350,_0x36fb81,_0x100494,_0x7d4b88,o['getMultiRangeId']());return _0x584d06;}['markInlineFormat'](_0x23ad1b,_0xbb366d,_0x172f50=null,_0x85d0e0={}){if(_0x172f50=_0x172f50||Kt(_0xbb366d),_0x23ad1b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xcb9093=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x172f50,'accept');return this['forceDefaultExecution'](()=>_0xcb9093([_0x23ad1b],_0xbb366d,_0x85d0e0)),null;}const _0x1a0b7c=this['editor']['plugins']['get']('Users')['me'],_0x5f0c13=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1c8124,meta:_0x410108}of this['_findSuggestions'](_0x23ad1b,'insertion'))_0x410108['isOwn']&&!_0x410108['isInsideObject']&&_0x5f0c13['push'](..._0x1c8124['getRanges']());}const _0x5c8adc=function(_0x392213,_0x342d56){const _0x263819=[];for(const _0x54783d of _0x342d56){const _0x16eede=_0x392213['getIntersection'](_0x54783d);_0x16eede&&_0x263819['push'](_0x16eede);}return _0x263819;}(_0x23ad1b,_0x5f0c13),_0xaed188=function(_0x28add8,_0xea448c){const _0x58a585=[_0x28add8];for(const _0x2253ee of _0xea448c){let _0x5d181d=0x0;for(;_0x5d181d<_0x58a585['length'];){const _0x20318c=_0x58a585[_0x5d181d]['getDifference'](_0x2253ee);_0x58a585['splice'](_0x5d181d,0x1,..._0x20318c),_0x5d181d+=_0x20318c['length'];}}return _0x58a585;}(_0x23ad1b,_0x5f0c13);_0x5c8adc['length']&&this['_model']['change'](()=>{for(const _0x5d1985 of _0x5c8adc){const _0x319cbc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x172f50,'accept');this['forceDefaultExecution'](()=>_0x319cbc([_0x5d1985],_0xbb366d,_0x85d0e0));}});for(const _0x3486ae of _0xaed188){let _0x306968=null,_0x2db572=_0x3486ae['start'],_0x6a5159=_0x3486ae['end'];for(const {suggestion:_0x1b5a88,meta:_0x176a91}of this['_findSuggestions'](_0x3486ae,'formatInline')){if(!_0x176a91['isOwn'])continue;if(_0x1b5a88['subType']!=_0x172f50)continue;if(!Xt(_0x1b5a88,_0x85d0e0))continue;const _0x36c6ca=_0x1b5a88['getFirstRange']();if(_0x36c6ca['containsRange'](_0x3486ae,!0x0))return null;_0x2db572=_0x2db572['isBefore'](_0x36c6ca['start'])?_0x2db572:_0x36c6ca['start'],_0x6a5159=_0x6a5159['isAfter'](_0x36c6ca['end'])?_0x6a5159:_0x36c6ca['end'],_0x306968?_0x36c6ca['start']['isBefore'](_0x306968['getFirstRange']()['start'])?(_0x306968['removeMarkers'](),_0x306968=_0x1b5a88):_0x1b5a88['removeMarkers']():_0x306968=_0x1b5a88;}const _0x4a1482=this['_model']['createRange'](_0x2db572,_0x6a5159);if(_0x306968)this['_setSuggestionRange'](_0x306968,_0x4a1482);else{const _0x35549e=_0x81f967(),_0x4ecdf5=_0x1a0b7c['id'];this['_setSuggestionData']({'id':_0x35549e,'type':'formatInline:'+_0x172f50,'data':_0xbb366d,'createdAt':new Date(),'authorId':_0x4ecdf5,'attributes':_0x85d0e0}),this['_addSuggestionMarker']('formatInline:'+_0x172f50,_0x35549e,_0x4ecdf5,_0x4a1482);}}return null;}['markBlockFormat'](_0x125f3a,_0x491eaf,_0x5affb9=[],_0x2a2c96=null,_0x452a01={}){_0x491eaf['formatGroupId']||(_0x491eaf['formatGroupId']=_0x491eaf['commandName']),_0x491eaf['multipleBlocks']=_0x125f3a['is']('range'),_0x2a2c96=_0x2a2c96||Kt(_0x491eaf);const _0x3d619d=_0x5affb9['map'](_0x4dabc2=>zt(_0x4dabc2,this['_model'])),_0x5cbc97=_0x125f3a['is']('range')?_0x125f3a:zt(_0x125f3a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x58a267=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a2c96,'accept');return this['forceDefaultExecution'](()=>_0x58a267([_0x5cbc97],_0x491eaf,_0x452a01)),null;}_0x3d619d['push'](_0x5cbc97);let _0x7a01eb=!0x0;for(const _0x20ed1e of _0x3d619d)if(!this['_rangeIsInLocalUserInsertion'](_0x20ed1e)){_0x7a01eb=!0x1;break;}if(_0x7a01eb&&'always'!==this['_trackFormatChanges']){const _0x51e489=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a2c96,'accept');return this['forceDefaultExecution'](()=>_0x51e489([_0x5cbc97],_0x491eaf,_0x452a01)),null;}let _0x1704c9=null,_0x23f221=_0x5cbc97['start'],_0x426e33=_0x5cbc97['end'];for(const {suggestion:_0x408c91,meta:_0x462fe2}of this['_findSuggestions'](_0x5cbc97,'formatBlock')){if(!_0x462fe2['isOwn'])continue;if(_0x462fe2['isNextTo']||_0x462fe2['containsRangeInObject']||_0x462fe2['isInsideObject'])continue;if(_0x408c91['data']['formatGroupId']!=_0x491eaf['formatGroupId'])continue;if(!Xt(_0x408c91,_0x452a01))continue;const _0x8a2eda=_0x408c91['getFirstRange']();if(_0x408c91['subType']==_0x2a2c96){if(_0x8a2eda['containsRange'](_0x5cbc97,!0x0))return null;_0x23f221=_0x23f221['isBefore'](_0x8a2eda['start'])?_0x23f221:_0x8a2eda['start'],_0x426e33=_0x426e33['isAfter'](_0x8a2eda['end'])?_0x426e33:_0x8a2eda['end'],_0x1704c9?_0x8a2eda['start']['isBefore'](_0x1704c9['getFirstRange']()['start'])?(_0x1704c9['removeMarkers'](),_0x1704c9=_0x408c91):_0x408c91['removeMarkers']():_0x1704c9=_0x408c91;}else{const _0x492d6f=_0x5cbc97['getIntersection'](_0x8a2eda);this['_cutOutSuggestionMarker'](_0x408c91,_0x492d6f);}}const _0x416fa4=this['editor']['plugins']['get']('Users')['me'],_0x20b6f9=_0x81f967(),_0x3ee325=_0x416fa4['id'];if(_0x1704c9)return this['_setSuggestionRange'](_0x1704c9,this['_model']['createRange'](_0x23f221,_0x426e33)),_0x1704c9;{const _0x58021d=this['_setSuggestionData']({'id':_0x20b6f9,'type':'formatBlock:'+_0x2a2c96,'data':_0x491eaf,'createdAt':new Date(),'authorId':_0x3ee325,'attributes':_0x452a01});return this['_addSuggestionMarker']('formatBlock:'+_0x2a2c96,_0x20b6f9,_0x3ee325,this['_model']['createRange'](_0x23f221,_0x426e33)),_0x58021d;}}['markMultiRangeBlockFormat'](_0x243bd2,_0x38dc22,_0x29ad87=[],_0x23d24b=null,_0x96cabc={}){_0x38dc22['formatGroupId']||(_0x38dc22['formatGroupId']=_0x38dc22['commandName']);const _0x2936fa=_0x243bd2[0x0];_0x38dc22['multipleBlocks']=_0x2936fa['is']('range'),_0x23d24b=_0x23d24b||Kt(_0x38dc22);const _0x2b802b=_0x29ad87['map'](_0x3ff72e=>zt(_0x3ff72e,this['_model'])),_0xb118ce=_0x2936fa['is']('range')?_0x243bd2:_0x243bd2['map'](_0x54db04=>zt(_0x54db04,this['_model']));if('never'===this['_trackFormatChanges']){const _0x32773a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23d24b,'accept');return this['forceDefaultExecution'](()=>_0x32773a(_0xb118ce,_0x38dc22,_0x96cabc)),null;}_0x2b802b['push'](..._0xb118ce);let _0x43ee92=!0x0;for(const _0x5c7c11 of _0x2b802b)if(!this['_rangeIsInLocalUserInsertion'](_0x5c7c11)){_0x43ee92=!0x1;break;}if(_0x43ee92&&'always'!==this['_trackFormatChanges']){const _0x32b3b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23d24b,'accept');return this['forceDefaultExecution'](()=>_0x32b3b3(_0xb118ce,_0x38dc22,_0x96cabc)),null;}const _0x1f71dc=this['editor']['plugins']['get']('Users')['me'];for(const _0x4dc5b7 of this['getSuggestions']()){if(_0x4dc5b7['author']['id']!=_0x1f71dc['id'])continue;if('formatBlock'!=_0x4dc5b7['type']||_0x4dc5b7['data']['formatGroupId']!=_0x38dc22['formatGroupId'])continue;if(!Xt(_0x4dc5b7,_0x96cabc))continue;const _0xaae4fd=_0x4dc5b7['subType']==_0x23d24b;for(let _0x10202b=0x0;_0x10202b<_0xb118ce['length'];_0x10202b++){const _0x1015b6=_0xb118ce[_0x10202b];for(const _0x40a145 of _0x4dc5b7['getMarkers']()){const _0x153b15=_0x40a145['getRange']();if(_0x1015b6['isEqual'](_0x153b15)){_0xaae4fd?(_0xb118ce['splice'](_0x10202b,0x1),_0x10202b--):_0x4dc5b7['removeMarker'](_0x40a145['name']);break;}}}}if(0x0==_0xb118ce['length'])return null;const _0x366c99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23d24b,'join');for(const _0x265e19 of this['getSuggestions']())if(_0x265e19['author']['id']==_0x1f71dc['id']&&'formatBlock'==_0x265e19['type']&&_0x265e19['data']['formatGroupId']==_0x38dc22['formatGroupId']&&_0x265e19['subType']==_0x23d24b&&Xt(_0x265e19,_0x96cabc)&&(_0x366c99(_0x265e19['getRanges'](),_0xb118ce)||_0x366c99(_0xb118ce,_0x265e19['getRanges']()))){for(const _0xeb2e39 of _0xb118ce)_0x265e19['addRange'](_0xeb2e39);return _0x265e19;}const _0xfd5950=_0x81f967(),_0x4e1f6a=_0x1f71dc['id'],_0x509aba='formatBlock:'+_0x23d24b,_0x23c202=this['_setSuggestionData']({'id':_0xfd5950,'type':_0x509aba,'data':_0x38dc22,'createdAt':new Date(),'authorId':_0x4e1f6a,'attributes':_0x96cabc});for(const _0x408ad9 of _0xb118ce)this['_addSuggestionMarker'](_0x509aba,_0xfd5950,_0x4e1f6a,_0x408ad9,o['getMultiRangeId']());return _0x23c202;}['markDeletion'](_0x2aa310,_0x5a677f=null,_0x177b8a={}){if(_0x2aa310['isCollapsed'])return null;const _0x24f962=this['editor']['plugins']['get']('Users')['me'],_0xfe8880=new _0x488912(_0x2aa310['start'],_0x2aa310['end']);for(const {suggestion:_0x5c4332,meta:_0x49321}of this['_findSuggestions'](_0xfe8880,'insertion'))if(_0x49321['isOwn']&&!_0x49321['isNextTo']){if(_0x5c4332['isMultiRange']){const _0x5d99bb=_0x5c4332['getRanges']()['filter'](_0x53eed3=>'$graveyard'!=_0x53eed3['root']['rootName']);_0x5d99bb['every'](_0x3aeb6f=>_0xfe8880['containsRange'](_0x3aeb6f,!0x0))&&_0x5c4332['discard']();if(_0x5d99bb['some'](_0x33ee7f=>_0x33ee7f['containsRange'](_0xfe8880,!0x0))){const _0x386d65=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a677f,'accept');return this['forceDefaultExecution'](()=>_0x386d65([_0xfe8880],null,_0x177b8a)),null;}}else{const _0x287dbb=_0xfe8880['getIntersection'](_0x5c4332['getFirstRange']());null!==_0x287dbb&&_0x5c4332['_onDiscard']([_0x287dbb],null,_0x177b8a);}}if(_0xfe8880['detach'](),_0xfe8880['isCollapsed']||'$graveyard'==_0xfe8880['root']['rootName'])return null;let _0x30f88b=null,_0x5886cf=_0xfe8880['start'],_0x17ae41=_0xfe8880['end'];const _0x137892=this['_findSuggestions'](_0xfe8880,'deletion');for(const {suggestion:_0x47fbbd,meta:_0x5e91a3}of _0x137892){const _0x2fefbc=this['_model']['createRange'](_0x5886cf,_0x17ae41);if(_0x5e91a3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5e91a3['containsRangeInObject']&&!_0x5e91a3['isInsideObject'])){if(_0x47fbbd['isMultiRange']){if(!Xt(_0x47fbbd,_0x177b8a))continue;let _0x4ed636=!0x0;for(const _0x2ff6f4 of _0x47fbbd['getRanges']()){if(_0x2ff6f4['containsRange'](_0x2fefbc,!0x0))return _0x47fbbd;_0x2fefbc['containsRange'](_0x2ff6f4)||(_0x4ed636=!0x1);}_0x4ed636&&_0x47fbbd['discard']();}else{const _0x2be0a0=_0x47fbbd['getFirstRange']();if(_0x2be0a0['containsRange'](_0x2fefbc,!0x0))return _0x47fbbd;if(!Xt(_0x47fbbd,_0x177b8a)){_0x2fefbc['containsRange'](_0x2be0a0)?_0x47fbbd['removeMarkers']():_0x2be0a0['containsPosition'](_0x5886cf)?_0x5886cf=_0x2be0a0['end']:_0x2be0a0['containsPosition'](_0x17ae41)&&(_0x17ae41=_0x2be0a0['start']);continue;}_0x5886cf=_0x5886cf['isBefore'](_0x2be0a0['start'])?_0x5886cf:_0x2be0a0['start'],_0x17ae41=_0x17ae41['isAfter'](_0x2be0a0['end'])?_0x17ae41:_0x2be0a0['end'],_0x177b8a=Object['assign']({},_0x47fbbd['attributes']),_0x30f88b?_0x2be0a0['start']['isBefore'](_0x30f88b['getFirstRange']()['start'])?(_0x30f88b['removeMarkers'](),_0x30f88b=_0x47fbbd):_0x47fbbd['removeMarkers']():_0x30f88b=_0x47fbbd;}}}if(_0x30f88b)return this['_setSuggestionRange'](_0x30f88b,this['_model']['createRange'](_0x5886cf,_0x17ae41)),_0x30f88b;{const _0x3ba3de=_0x81f967(),_0x2de9c4=this['_model']['createRange'](_0x5886cf,_0x17ae41),_0x5288d0=_0x24f962['id'],_0x4961a8=_0x5a677f?'deletion:'+_0x5a677f:'deletion',_0x3bd7d1=this['_setSuggestionData']({'id':_0x3ba3de,'type':_0x4961a8,'createdAt':new Date(),'authorId':_0x5288d0,'attributes':_0x177b8a});return this['_addSuggestionMarker'](_0x4961a8,_0x3ba3de,_0x5288d0,_0x2de9c4),_0x3bd7d1;}}['markMultiRangeDeletion'](_0x39715a,_0x108048='multi',_0x5f7110={}){const _0x295de3=this['editor']['plugins']['get']('Users')['me'],_0x44bff3=_0x39715a['map'](_0x139bb4=>new _0x488912(_0x139bb4['start'],_0x139bb4['end'])),_0x5e7806=new Set();for(const {suggestion:_0x51ec91,meta:_0x31dfa8}of this['_findSuggestions'](_0x44bff3,'insertion'))_0x31dfa8['isOwn']&&!_0x31dfa8['isNextTo']&&_0x5e7806['add'](_0x51ec91);for(const _0x38f998 of _0x5e7806)if(_0x38f998['isMultiRange']){const _0x4f277b=_0x38f998['getRanges']();(!_0x38f998['attributes']||!_0x38f998['attributes']['skipNestingCheck'])&&(_0x4f277b['every'](_0x371d53=>_0x44bff3['some'](_0x378686=>_0x378686['containsRange'](_0x371d53,!0x0)))&&_0x38f998['discard']());if(_0x44bff3['every'](_0x552495=>_0x4f277b['some'](_0x5ad669=>_0x5ad669['containsRange'](_0x552495,!0x0)))){const _0x2b9dde=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108048,'accept');return this['forceDefaultExecution'](()=>_0x2b9dde(_0x39715a,null,_0x5f7110)),null;}}else{const _0x5e8136=_0x38f998['getFirstRange']();_0x44bff3['some'](_0x45af1b=>_0x45af1b['containsRange'](_0x5e8136,!0x0))&&_0x38f998['discard']();if(_0x44bff3['every'](_0x422a01=>_0x5e8136['containsRange'](_0x422a01,!0x0))){const _0x2db257=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108048,'accept');return this['forceDefaultExecution'](()=>_0x2db257(_0x44bff3,null,_0x5f7110)),null;}}const _0x40480e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x108048,'join');let _0x13818b=null;for(const _0x2d8380 of this['getSuggestions']())if(_0x2d8380['author']['id']==_0x295de3['id']&&_0x2d8380['isInContent']&&'deletion'==_0x2d8380['type']&&_0x2d8380['subType']==_0x108048&&Xt(_0x2d8380,_0x5f7110)&&(_0x40480e(_0x2d8380['getRanges'](),_0x44bff3)||_0x40480e(_0x44bff3,_0x2d8380['getRanges']()))){if(_0x13818b){if(_0x2d8380['commentThread']&&_0x2d8380['commentThread']['length'])continue;for(const _0x39211c of _0x2d8380['getRanges']())_0x13818b['isIntersectingWithRange'](_0x39211c)||_0x13818b['addRange'](_0x39211c);_0x2d8380['removeMarkers']();}else{_0x13818b=_0x2d8380;for(const _0x1293a5 of _0x44bff3)_0x2d8380['isIntersectingWithRange'](_0x1293a5)||_0x2d8380['addRange'](_0x1293a5);}}if(_0x13818b)return _0x13818b;_0x5e7806['clear']();for(const {suggestion:_0x50957d,meta:_0x3d6a0e}of this['_findSuggestions'](_0x44bff3,'deletion'))_0x3d6a0e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d6a0e['containsRangeInObject']&&!_0x3d6a0e['isInsideObject'])&&Xt(_0x50957d,_0x5f7110)&&_0x5e7806['add'](_0x50957d);for(const _0x4f1ce9 of _0x5e7806){const _0x3ff7ef=_0x4f1ce9['getRanges']();if(!_0x5f7110||!_0x5f7110['skipNestingCheck']){if(_0x44bff3['every'](_0x50247f=>_0x3ff7ef['some'](_0x596ec5=>_0x596ec5['containsRange'](_0x50247f,!0x0))))return _0x4f1ce9;}(!_0x4f1ce9['attributes']||!_0x4f1ce9['attributes']['skipNestingCheck'])&&(_0x3ff7ef['every'](_0x43e2de=>_0x44bff3['some'](_0x7a6a60=>_0x7a6a60['containsRange'](_0x43e2de,!0x0)))&&_0x4f1ce9['discard']());}const _0x51011e=_0x81f967(),_0x5b3e0e=_0x295de3['id'],_0x30ff91='deletion:'+_0x108048,_0x3944b7=this['_setSuggestionData']({'id':_0x51011e,'type':_0x30ff91,'createdAt':new Date(),'authorId':_0x5b3e0e,'attributes':_0x5f7110});for(const _0x4910e0 of _0x44bff3)_0x4910e0['detach'](),_0x4910e0['isCollapsed']||'$graveyard'==_0x4910e0['root']['rootName']||this['_addSuggestionMarker'](_0x30ff91,_0x51011e,_0x5b3e0e,_0x4910e0,o['getMultiRangeId']());return _0x3944b7;}['markAttributeChange'](_0x388656,_0x456a4c,_0x39dccc,_0x45606c,_0x337023){if(_0x388656['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x47e037=this['editor']['plugins']['get']('Users')['me']['id'],_0x1c139a=Array['from'](this['_suggestions']['values']())['filter'](_0x24f3a2=>'attribute'==_0x24f3a2['type']&&_0x24f3a2['data']['key']==_0x456a4c&&_0x24f3a2['isIntersectingWithRange'](_0x388656));if('default'===this['_trackFormatChanges']){const _0x507c35=this['_findSuggestions'](_0x388656,'insertion')['filter'](({meta:_0x3a9444})=>_0x3a9444['isOwn']&&!_0x3a9444['isInsideObject']&&!_0x3a9444['isNextTo'])['map'](({suggestion:_0x5a726c})=>_0x5a726c);_0x1c139a['unshift'](..._0x507c35);}const _0x4d6811=new Map([[_0x388656,_0x39dccc]]);for(const _0x363968 of _0x1c139a){const _0x18138b='attribute'==_0x363968['type']?_0x363968['data']['oldValue']:void 0x0,_0x3050a8=_0x363968['getFirstRange'](),_0x3da0b2=Array['from'](_0x4d6811['keys']())['find'](_0x28d01e=>_0x28d01e['isIntersecting'](_0x3050a8));if(!_0x3da0b2)continue;const _0x6c127f=_0x3da0b2['getDifference'](_0x3050a8);this['_isBlockAttribute'](_0x456a4c)&&'insertion'==_0x363968['type']&&0x0!=_0x6c127f['length']||(_0x4d6811['delete'](_0x3da0b2),_0x6c127f['forEach'](_0x373d82=>{_0x4d6811['set'](_0x373d82,_0x39dccc);}),'insertion'!=_0x363968['type']&&_0x18138b!=_0x45606c&&_0x4d6811['set'](_0x3da0b2['getIntersection'](_0x3050a8),_0x18138b));}const _0x36a40e=[];for(const [_0x4219bf,_0x1fdd3d]of _0x4d6811){const _0x3600b8=_0x81f967(),_0x2f45d5={'key':_0x456a4c,'oldValue':_0x1fdd3d,'newValue':_0x45606c};_0x456a4c['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':_0x456a4c});const _0x30fa93=('attribute:'+(_0x456a4c+'|'+Kt({'newValue':_0x45606c})))['substring'](0x0,0x3c),_0x30f56a=this['_setSuggestionData']({'id':_0x3600b8,'type':_0x30fa93,'data':_0x2f45d5,'createdAt':new Date(),'authorId':_0x47e037,'attributes':_0x337023});_0x36a40e['push'](_0x30f56a),this['_addSuggestionMarker'](_0x30fa93,_0x3600b8,_0x47e037,_0x4219bf);}return _0x36a40e;}['enableDefaultAttributesIntegration'](_0x205bf9){this['enableCommand'](_0x205bf9,(_0x446589,..._0x5c5ce0)=>{this['_recordAttributeChanges'](()=>{_0x446589(..._0x5c5ce0);});});}['registerBlockAttribute'](_0x1d21e8){this['_blockAttributeKeys']['add'](_0x1d21e8);}['registerInlineAttribute'](_0x3e694e){this['_inlineAttributeKeys']['add'](_0x3e694e);}['_getAttributeKey'](_0x16cc25){return'attribute'==_0x16cc25['type']?_0x16cc25['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x12bfee,_0x50d912){const _0x34b4af=_0x12bfee['getFirstMarker']();this['_model']['change'](_0x16ab97=>{_0x16ab97['updateMarker'](_0x34b4af,{'range':_0x50d912});});}['_addThreadToSuggestion'](_0x809944){const _0x3f7807=_0x809944['id'],_0x4fb7f2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3f7807)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4fb7f2,'threadId':_0x3f7807,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2687ab=this['_commentsRepository']['getCommentThread'](_0x3f7807);_0x2687ab['unbind']('isRemovable'),_0x2687ab['isRemovable']=!0x1,_0x809944['commentThread']=_0x2687ab;}['_checkSuggestionCorrectness'](_0x13a931,_0x556f2b,_0x4af1f8,_0x4ef5ef){if(_0x13a931['type']!=_0x556f2b||_0x13a931['subType']!=_0x4af1f8||_0x13a931['creator']['id']!=_0x4ef5ef)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa3b19b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x570e92,_0x577584){const _0x4c9859=_0x570e92['getFirstRange']();if(_0x577584['isEqual'](_0x4c9859))_0x570e92['removeMarkers']();else{if(_0x4c9859['containsRange'](_0x577584)){const _0x148c60=this['_model']['createPositionAt'](_0x577584['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x570e92,this['_model']['createRange'](_0x4c9859['start'],_0x148c60));const _0x63704a=_0x81f967(),_0x317bb6=_0x570e92['creator']['id'],_0xd6a669=_0x570e92['type']+':'+_0x570e92['subType'];this['_setSuggestionData']({'id':_0x63704a,'type':_0xd6a669,'createdAt':new Date(),'authorId':_0x317bb6,'data':_0x570e92['data'],'attributes':_0x570e92['attributes']});const _0x1b33af=this['_model']['createPositionAt'](_0x577584['end']['parent'],'after'),_0x53e38b=this['_model']['createRange'](_0x1b33af,_0x4c9859['end']);this['_addSuggestionMarker'](_0xd6a669,_0x63704a,_0x317bb6,_0x53e38b);}else{if(_0x4c9859['containsPosition'](_0x577584['start'])){const _0x4676e6=this['_model']['createPositionAt'](_0x577584['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x570e92,this['_model']['createRange'](_0x4c9859['start'],_0x4676e6));}else{const _0x4814d8=this['_model']['createPositionAt'](_0x577584['end']['parent'],'after');this['_setSuggestionRange'](_0x570e92,this['_model']['createRange'](_0x4814d8,_0x4c9859['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5e27e9){for(const {suggestion:_0x532933,meta:_0x5e4342}of this['_findSuggestions'](_0x5e27e9,'insertion')){if(!_0x5e4342['isOwn'])continue;const _0x53cd47=_0x532933['getRanges']();for(const _0x21d659 of _0x53cd47)if(!_0x5e27e9['getDifference'](_0x21d659)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5bf5e9){const _0xc9d0ad=this['editor']['plugins']['get']('Users')['getUser'](_0x5bf5e9);if(!_0xc9d0ad)throw new _0xa3b19b('track-changes-user-not-found',this);return _0xc9d0ad;}['_getExternalAuthor'](_0xc67f88){const _0x3c8d56=this['editor']['plugins']['get']('Users'),_0x430035=_0x3c9873('external:'+_0xc67f88),_0x10fbf5=_0x3c8d56['getUser'](_0x430035);return _0x10fbf5||_0x3c8d56['addUser']({'id':_0x430035,'name':_0xc67f88});}['_createSuggestion'](_0x37f18b,_0x399869,_0x4ad920,_0x605599,_0xc0ef43){const _0x54b2ce=this['_getAuthorFromId'](_0x605599),_0x43704a=this['_suggestionFactory']['buildSuggestion'](_0x37f18b,_0x399869,_0x4ad920,_0x54b2ce,_0xc0ef43,_0x42426b=>{this['_updateSuggestionData'](_0x4ad920,{'attributes':_0x42426b});const _0xe55cc5=this['getSuggestion'](_0x4ad920);this['_joinWithAdjacentSuggestions'](new Set([_0xe55cc5])),this['_refreshSuggestionsChain'](new Set([_0xe55cc5]));});return this['listenTo'](_0x43704a,'accept',()=>{this['_updateSuggestionData'](_0x4ad920,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x43704a,'discard',()=>{this['_updateSuggestionData'](_0x4ad920,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4ad920,_0x43704a),this['_suggestionState']['set'](_0x43704a,'notReady'),_0x43704a;}['_splitMarkerName'](_0x9107f8){const _0x115ff3=_0x9107f8['split'](':');return{'group':_0x115ff3[0x0],'type':_0x115ff3[0x1],'subType':_0x115ff3['length']>=0x5?_0x115ff3[0x2]:null,'id':_0x115ff3['length']<0x5?_0x115ff3[0x2]:_0x115ff3[0x3],'authorId':_0x115ff3['length']<0x5?_0x115ff3[0x3]:_0x115ff3[0x4],'markerCount':0x6==_0x115ff3['length']?_0x115ff3[0x5]:null};}['_breakSuggestionMarker'](_0x38e36e,_0x48c496,_0xd8da5){const _0x1d5985=_0x38e36e['getFirstRange'](),_0x18693b=_0x1d5985['start'],_0x4ec841=_0x1d5985['end'];this['_setSuggestionRange'](_0x38e36e,this['_model']['createRange'](_0x18693b,_0x48c496));const _0x580312=_0x81f967(),_0x156797=_0x38e36e['creator']['id'],_0xfca4d9=_0x38e36e['type']+(_0x38e36e['subType']?':'+_0x38e36e['subType']:'');this['_setSuggestionData']({'id':_0x580312,'type':_0xfca4d9,'createdAt':new Date(),'authorId':_0x156797,'originalSuggestionId':_0x38e36e['id'],'attributes':_0x38e36e['attributes'],'data':_0x38e36e['data']});const _0x1e4295=this['_getAttributeKey'](_0x38e36e);('formatBlock'==_0x38e36e['type']||_0x1e4295&&this['_isBlockAttribute'](_0x1e4295))&&(_0xd8da5=this['_model']['createPositionBefore'](_0xd8da5['parent'])),this['_addSuggestionMarker'](_0xfca4d9,_0x580312,_0x156797,this['_model']['createRange'](_0xd8da5,_0x4ec841));}['_findSuggestions'](_0x1fe59f,_0x4471b1=null){const _0x551016=[],_0x4f9cce=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1fe59f)||(_0x1fe59f=[_0x1fe59f]);for(const _0x2553b8 of this['getSuggestions']()){if(!_0x2553b8['isInContent'])continue;if(_0x4471b1&&_0x2553b8['type']!=_0x4471b1)continue;let _0x4a4638=!0x1;for(const _0x5d7510 of _0x2553b8['getRanges']()){for(const _0x52e9ac of _0x1fe59f){const _0x58c357=_0x52e9ac['start']['isEqual'](_0x5d7510['end'])||_0x52e9ac['end']['isEqual'](_0x5d7510['start']);if(_0x58c357||_0x52e9ac['getIntersection'](_0x5d7510)){const _0x5bc0b7=_0x52e9ac['containsRange'](_0x5d7510)&&Gt(this['_model']['schema'],_0x5d7510['start'],_0x52e9ac),_0x31eb0f=_0x5d7510['containsRange'](_0x52e9ac)&&Gt(this['_model']['schema'],_0x52e9ac['start'],_0x5d7510);_0x551016['push']({'suggestion':_0x2553b8,'meta':{'isOwn':_0x4f9cce==_0x2553b8['author'],'isNextTo':_0x58c357,'isInsideObject':_0x5bc0b7,'containsRangeInObject':_0x31eb0f}}),_0x4a4638=!0x0;break;}}if(_0x4a4638)break;}}return _0x551016;}['_addSuggestionMarker'](_0x5efb73,_0x568c30,_0x5c1f83,_0x4ca182,_0x5bd9ca){this['_model']['change'](_0x2d2bd2=>{let _0x245792='suggestion:'+_0x5efb73+':'+_0x568c30+':'+_0x5c1f83;_0x5bd9ca&&(_0x245792=_0x245792+':'+_0x5bd9ca),_0x2d2bd2['addMarker'](_0x245792,{'range':_0x4ca182,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xa1da4c){const _0x4065c3=_0xa1da4c['previous'],_0x4a740d=_0xa1da4c['next'];_0xa1da4c['previous']=null,_0xa1da4c['next']=null,null!=_0x4065c3&&_0x4065c3['next']==_0xa1da4c&&(_0x4065c3['next']=_0x4a740d),null!=_0x4a740d&&_0x4a740d['previous']==_0xa1da4c&&(_0x4a740d['previous']=_0x4065c3),'ready'==this['_suggestionState']['get'](_0xa1da4c)&&(this['_suggestionState']['set'](_0xa1da4c,'removed'),this['fire']('suggestionUnloaded',_0xa1da4c,_0x4065c3,_0x4a740d));}['_setSuggestionData'](_0x1b3d2b){const _0x553533=_0x1b3d2b['id'],_0x2cac44=this['addSuggestionData'](_0x1b3d2b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x49f6c4=this['editor']['plugins']['get']('PendingActions'),_0x468247=_0x2cac44['hasComments'],_0x5083fd=_0x2cac44['subType']?_0x2cac44['type']+':'+_0x2cac44['subType']:_0x2cac44['type'],_0x2ed539=this['editor']['locale'],_0x45a99a=_0x49f6c4['add'](c(_0x2ed539,'PENDING_ACTION_SUGGESTION')),_0x1c0900={'id':_0x553533,'type':_0x5083fd,'hasComments':_0x468247,'data':_0x1b3d2b['data']||null,'originalSuggestionId':_0x1b3d2b['originalSuggestionId']||null,'attributes':_0x2cac44['attributes']};this['_adapter']['addSuggestion'](_0x1c0900)['then'](_0x2af329=>{_0x2cac44['_saved']=!0x0,_0x49f6c4['remove'](_0x45a99a),_0x2af329&&_0x2af329['createdAt']&&(this['_suggestions']['get'](_0x553533)['createdAt']=_0x2af329['createdAt']);})['catch'](_0x32d5aa=>{throw _0x2b975d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2cac44['discard']();}),_0x2cac44['stopListening'](),this['_suggestions']['delete'](_0x2cac44['id']),this['_suggestionState']['delete'](_0x2cac44),_0x32d5aa;});}return _0x2cac44;}['_isBlockAttribute'](_0x34d384){return this['_blockAttributeKeys']['has'](_0x34d384);}['_updateSuggestionData'](_0x2f9965,_0x11b38a){const _0x4ba477=this['editor']['plugins']['get']('PendingActions'),_0x2f73b3=this['getSuggestion'](_0x2f9965);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2f73b3['_saved']){const _0x518dba=_0x4ba477['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2f9965,_0x11b38a)['then'](()=>{_0x4ba477['remove'](_0x518dba);});}else _0x2f73b3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2f9965,_0x11b38a);});}}['_getSuggestionData'](_0xcdcf7c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa3b19b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xcdcf7c);}['_handleNewSuggestionMarker'](_0x1e7d0f){const {id:_0x265bc1,type:_0xb61207,subType:_0x2ffa75,authorId:_0xaad70f}=this['_splitMarkerName'](_0x1e7d0f),_0x3b090d=this['_suggestions']['get'](_0x265bc1)||this['_createSuggestion'](_0xb61207,_0x2ffa75,_0x265bc1,_0xaad70f,{});switch(this['_checkSuggestionCorrectness'](_0x3b090d,_0xb61207,_0x2ffa75,_0xaad70f),this['_suggestionState']['get'](_0x3b090d)){case'notReady':this['_getSuggestionData'](_0x265bc1)['then'](_0x3fa46d=>{let _0x528b1e=Promise['resolve']();_0x3fa46d['hasComments']&&(_0x528b1e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x265bc1})),_0x528b1e['then'](()=>{this['addSuggestionData'](_0x3fa46d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3b090d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x265bc1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3b090d,'ready'),this['fire']('suggestionLoaded',_0x3b090d);break;case'ready':this['fire']('suggestionChanged',_0x3b090d);}return _0x3b090d['addMarkerName'](_0x1e7d0f),_0x3b090d;}['_refreshSuggestionsChain'](_0x530dcf){const _0xfd4037=Array['from'](_0x530dcf),_0x541284=_0xfd4037['filter'](_0x55a7e2=>'attribute'==_0x55a7e2['type']);this['_refreshAttributeSuggestionsChain'](_0x541284);const _0x35f680=_0xfd4037['filter'](_0x520968=>!_0x520968['isMultiRange']&&'attribute'!=_0x520968['type']),_0x4535e3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e0f7d=>!_0x1e0f7d['isMultiRange']&&'attribute'!=_0x1e0f7d['type']),_0x20b858=_0x4535e3['filter'](_0x9a5c20=>!_0x530dcf['has'](_0x9a5c20)),_0x5ba6e7=new Map(_0x4535e3['map'](_0x36f38e=>[_0x36f38e,this['_suggestionFactory']['getSuggestionCallback'](_0x36f38e['type'],_0x36f38e['subType'],'chain')])),_0x3d0e=new Map(_0x4535e3['map'](_0x50a69a=>[_0x50a69a,_0x50a69a['getFirstRange']()])),_0x1a754c=new Set(),_0x42448c=new Set();for(let _0x1107b6=0x0;_0x1107b6<_0x35f680['length'];_0x1107b6++)_0x1640a9(_0x35f680[_0x1107b6],_0x35f680,_0x1107b6+0x1);for(let _0x42589b=0x0;_0x42589b<_0x35f680['length'];_0x42589b++)_0x1640a9(_0x35f680[_0x42589b],_0x20b858,0x0);const _0x3399f4=new Set();for(let _0x48138c=0x0;_0x48138c<_0x35f680['length'];_0x48138c++){const _0xbf6e41=_0x35f680[_0x48138c];!_0x42448c['has'](_0xbf6e41)&&_0xbf6e41['previous']&&(_0x3399f4['add'](_0xbf6e41['previous']),_0xbf6e41['previous']['next']===_0xbf6e41&&(_0xbf6e41['previous']['next']=null),_0xbf6e41['previous']=null),!_0x1a754c['has'](_0xbf6e41)&&_0xbf6e41['next']&&(_0x3399f4['add'](_0xbf6e41['next']),_0xbf6e41['next']['previous']===_0xbf6e41&&(_0xbf6e41['next']['previous']=null),_0xbf6e41['next']=null);}function _0x1640a9(_0xcbee0,_0x20530d,_0x2ad994){for(let _0x3496bd=_0x2ad994;_0x3496bd<_0x20530d['length'];_0x3496bd++){const _0x3186bb=_0x48e21b(_0xcbee0,_0x20530d[_0x3496bd]);_0x3186bb&&(_0x3186bb[0x0]['next']=_0x3186bb[0x1],_0x3186bb[0x1]['previous']=_0x3186bb[0x0],_0x1a754c['add'](_0x3186bb[0x0]),_0x42448c['add'](_0x3186bb[0x1]));}}function _0x48e21b(_0x444700,_0x432041){if(_0x444700['author']['id']!==_0x432041['author']['id'])return null;const _0x39c928=_0x5ba6e7['get'](_0x444700)(_0x444700,_0x432041,_0x3d0e['get'](_0x444700),_0x3d0e['get'](_0x432041));if(!_0x39c928)return null;return _0x5ba6e7['get'](_0x432041)(_0x444700,_0x432041,_0x3d0e['get'](_0x444700),_0x3d0e['get'](_0x432041))?_0x39c928[0x1]['commentThread']&&_0x39c928[0x1]['commentThread']['length']?null:_0x39c928:null;}_0x3399f4['size']&&this['_refreshSuggestionsChain'](_0x3399f4);}['_refreshAttributeSuggestionsChain'](_0x3d5174){if(0x0==_0x3d5174['length'])return;const _0x30cb14=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c40e0=>'attribute'==_0x1c40e0['type']&&_0x1c40e0['_isDataLoaded']),_0x3e5f77=[],_0x3fe0d3=new Map();for(const _0x33b298 of _0x30cb14){const _0x32544e=_0x3c9873(_0x33b298['attributes']);_0x3fe0d3['has'](_0x32544e)||(_0x3fe0d3['set'](_0x32544e,_0x3e5f77['length']),_0x3e5f77['push']([]));const _0x3d2b9f=_0x3fe0d3['get'](_0x32544e);_0x3e5f77[_0x3d2b9f]['push'](_0x33b298);}!(function(){_0x3e5f77['sort']((_0x2dc1c9,_0x509cc6)=>{const _0x565fb0=_0x2dc1c9[0x0]['createdAt'],_0x2ba178=_0x509cc6[0x0]['createdAt'];return _0x565fb0==_0x2ba178?_0x2dc1c9[0x0]['attributes']['groupId']<_0x509cc6[0x0]['attributes']['groupId']?-0x1:0x1:_0x565fb0<_0x2ba178?-0x1:0x1;});for(const _0x525fc8 of _0x3e5f77)_0x525fc8['sort']((_0x58314e,_0x51c395)=>_0x58314e['id']<_0x51c395['id']?-0x1:0x1);}());for(let _0x2a3381=0x0;_0x2a3381<_0x3e5f77['length'];_0x2a3381++){if(0x0==_0x3e5f77[_0x2a3381]['length'])continue;const _0x251517=[];for(let _0x16b5de=_0x2a3381+0x1;_0x16b5de<_0x3e5f77['length'];_0x16b5de++)0x0!=_0x3e5f77[_0x16b5de]['length']&&_0x47055a(_0x3e5f77[_0x2a3381],_0x3e5f77[_0x16b5de])&&_0x251517['push'](_0x16b5de);for(const _0x5da2b2 of _0x251517)_0x3e5f77[_0x2a3381]=_0x3e5f77[_0x2a3381]['concat'](_0x3e5f77[_0x5da2b2]),_0x3e5f77[_0x5da2b2]=[];}for(const _0x2cdd54 of _0x3e5f77)for(let _0x25aafb=0x0;_0x25aafb<_0x2cdd54['length'];_0x25aafb++){const _0x26e2ac=_0x2cdd54[_0x25aafb+0x1]||null;_0x2cdd54[_0x25aafb]['next']!==_0x26e2ac&&(_0x2cdd54[_0x25aafb]['next']=_0x26e2ac);}for(const _0x554e24 of _0x3e5f77)for(let _0x5af40e=0x0;_0x5af40e<_0x554e24['length'];_0x5af40e++){const _0x1779c4=_0x554e24[_0x5af40e-0x1]||null;_0x554e24[_0x5af40e]['previous']!==_0x1779c4&&(_0x554e24[_0x5af40e]['previous']=_0x1779c4);}function _0x47055a(_0x4540eb,_0x2f91d6){if(_0x4540eb[0x0]['attributes']['groupId']!==_0x2f91d6[0x0]['attributes']['groupId']&&_0x4540eb[0x0]['author']!==_0x2f91d6[0x0]['author'])return!0x1;if(!function(_0x4b0704,_0x593af0){if(!_0x4b0704['hasComments']&&!_0x593af0['hasComments'])return!0x0;if(_0x4b0704['hasComments']&&_0x593af0['hasComments'])return!0x1;if(_0x4b0704['hasComments']&&_0x593af0['createdAt']<_0x4b0704['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x593af0['hasComments']&&_0x4b0704['createdAt']<_0x593af0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4540eb[0x0],_0x2f91d6[0x0]))return!0x1;const _0x2a2d69=Ft(_0x4540eb[0x0]['attributes'],'groupId'),_0x46c809=Ft(_0x2f91d6[0x0]['attributes'],'groupId');if(!_0x2dc7e4(_0x2a2d69,_0x46c809))return!0x1;return!!_0x4540eb['every'](_0x5ece64=>_0x2f91d6['some'](_0x2dcabf=>_0x5ece64['getFirstRange']()['isEqual'](_0x2dcabf['getFirstRange']())))&&_0x2f91d6['every'](_0x5bf616=>_0x4540eb['some'](_0x5c9c4e=>_0x5bf616['getFirstRange']()['isEqual'](_0x5c9c4e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x56c554){const _0x40a3ba=Array['from'](_0x56c554),_0x84c298=this['getSuggestions']({'skipNotAttached':!0x0}),_0x355c5b=_0x84c298['filter'](_0xbfbda6=>!_0x56c554['has'](_0xbfbda6)),_0x96e51d=new Map(_0x40a3ba['map'](_0x252bb8=>[_0x252bb8,this['_suggestionFactory']['getSuggestionCallback'](_0x252bb8['type'],_0x252bb8['subType'],'join')])),_0x1de4cd=new Map(_0x84c298['map'](_0x412e6d=>[_0x412e6d,_0x412e6d['getRanges']()]));for(let _0x5c0537=0x0;_0x5c0537<_0x40a3ba['length'];_0x5c0537++){if(_0x5d4759(this,_0x40a3ba[_0x5c0537],_0x40a3ba,_0x5c0537+0x1))return!0x0;}for(let _0x5e36ad=0x0;_0x5e36ad<_0x40a3ba['length'];_0x5e36ad++){if(_0x5d4759(this,_0x40a3ba[_0x5e36ad],_0x355c5b,0x0))return!0x0;}return!0x1;function _0x5d4759(_0x33f043,_0x215b6c,_0x14dc61,_0x5063fb){for(let _0x29d607=_0x5063fb;_0x29d607<_0x14dc61['length'];_0x29d607++){const _0x4b8511=_0x14dc61[_0x29d607];if(_0x4b8511['type']!==_0x215b6c['type']||_0x4b8511['author']['id']!==_0x215b6c['author']['id']||_0x4b8511['subType']!==_0x215b6c['subType'])continue;if(!Qt(_0x215b6c,_0x4b8511))continue;if('attribute'==_0x215b6c['type']&&_0x215b6c['data']['oldValue']!=_0x4b8511['data']['oldValue'])continue;if('attribute'==_0x215b6c['type']&&_0x33f043['_isBlockAttribute'](_0x215b6c['data']['key']))continue;if('formatBlock'==_0x215b6c['type']){const _0x1d13d3=_0x33f043['editor']['model'],_0x30e186=_0x215b6c['getContainedElement']();if(_0x30e186&&(_0x1d13d3['schema']['isObject'](_0x30e186)||_0x1d13d3['schema']['isLimit'](_0x30e186)))continue;}const _0x98425b=_0x96e51d['get'](_0x215b6c),_0x57f1a1=_0x1de4cd['get'](_0x215b6c),_0x5a7cf0=_0x1de4cd['get'](_0x4b8511),_0x30f70b=_0x215b6c['commentThread']&&_0x215b6c['commentThread']['length'],_0x43ea08=_0x4b8511['commentThread']&&_0x4b8511['commentThread']['length'];if(!_0x30f70b&&_0x98425b(_0x5a7cf0,_0x57f1a1))return _0x33f043['_joinSuggestions'](_0x4b8511,_0x215b6c),_0x1de4cd['delete'](_0x215b6c),!0x0;if(!_0x43ea08&&_0x98425b(_0x57f1a1,_0x5a7cf0))return _0x33f043['_joinSuggestions'](_0x215b6c,_0x4b8511),_0x1de4cd['delete'](_0x4b8511),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa3a718,_0xb11aaf){if(_0xa3a718['isMultiRange']){for(const _0x5b75cd of _0xb11aaf['getRanges']())_0xa3a718['addRange'](_0x5b75cd);}else{const _0x4e9a26=_0xb11aaf['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa3a718,this['_model']['createRange'](_0xa3a718['getFirstRange']()['start'],_0x4e9a26));}_0xb11aaf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2e01ae,_0x51080c,_0x1712d9){const _0x4d8bd1=_0x2e01ae['startsWith']('format')||_0x2e01ae['startsWith']('attribute')?'FORMATTING':_0x2e01ae['toUpperCase']();return c(this['editor']['locale'],_0x51080c+'_'+_0x4d8bd1+'_SUGGESTION_ANNOUNCEMENT',_0x1712d9);}['_initAriaMarkerChangeAnnouncements'](){const _0xa6e36d=this['editor'];if(!_0xa6e36d['ui'])return;const {ariaLiveAnnouncer:_0xf00d06}=_0xa6e36d['ui'];_0x2ef33a(this['_model'],({left:_0x3ad73a,entered:_0x3454e9})=>{for(const _0x48cb1c of _0x3ad73a){const {group:_0x2f595f,type:_0x47813e}=this['_splitMarkerName'](_0x48cb1c['name']);if('suggestion'===_0x2f595f){_0xf00d06['announce'](this['_getMarkerAnnouncementText'](_0x47813e,'LEAVE'));break;}}for(const _0x5c74a3 of _0x3454e9){const {group:_0x1cac41,type:_0x28e67c}=this['_splitMarkerName'](_0x5c74a3['name']);if('suggestion'===_0x1cac41){_0xf00d06['announce'](this['_getMarkerAnnouncementText'](_0x28e67c,'ENTER',_0x39aee3(_0x5ca91b)));break;}}});}['_processAttributeChanges'](_0x5766a8){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2facb0=this['editor'],_0x41b74f=_0x2facb0['model']['document']['differ']['getChanges']();if(0x0==_0x41b74f['length'])return!0x1;const _0x592604=[],_0x3070ab=_0x41b74f['filter'](_0xfe53ee=>'attribute'==_0xfe53ee['type']),_0x23b15c=_0x41b74f['filter'](_0x107efe=>'insert'==_0x107efe['type']&&'$text'!=_0x107efe['name']),_0xc12e25=_0x41b74f['filter'](_0x24a9d6=>'remove'==_0x24a9d6['type']&&'$text'!=_0x24a9d6['name']);for(const _0x1abf6a of _0x3070ab)_0x592604['push']({'key':_0x1abf6a['attributeKey'],'newValue':_0x1abf6a['attributeNewValue'],'oldValue':_0x1abf6a['attributeOldValue'],'range':qt(_0x1abf6a['range'],_0x2facb0['model'])});for(const _0x58ff6a of _0x23b15c){const _0x3bdf44=_0xc12e25['find'](_0x1569d3=>_0x1569d3['position']['isEqual'](_0x58ff6a['position']));_0x3bdf44&&_0x592604['push']({'key':u,'newValue':_0x58ff6a['name'],'oldValue':_0x3bdf44['name'],'range':_0x2facb0['model']['createRangeOn'](_0x58ff6a['position']['nodeAfter'])});}return 0x0!=_0x592604['length']&&this['_reduceExistingSuggestions'](_0x5766a8,_0x592604);}['_processAttributeSuggestions'](_0x191b93){let _0x373f52=!0x1;const _0x1c20e1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ea3c1=>_0x4ea3c1['data']['newRange']&&_0x4ea3c1['name']['startsWith']('suggestion:attribute:'));for(const _0x3419a6 of _0x1c20e1){const {subType:_0x1aba58,id:_0x26affc}=this['_splitMarkerName'](_0x3419a6['name']),_0x36b952=_0x1aba58['split']('|')[0x0];for(const _0x2d24b0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2d24b0['id']!=_0x26affc&&'attribute'==_0x2d24b0['type']&&_0x2d24b0['data']&&_0x2d24b0['data']['key']==_0x36b952&&_0x2d24b0['getFirstRange']()['isIntersecting'](_0x3419a6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2d24b0,_0x3419a6['data']['newRange'],_0x191b93),_0x373f52=!0x0);}return _0x373f52;}['_recordAttributeChanges'](_0x397b57){this['_recordAttributeSuggestions']=!0x0,_0x397b57();}['_isRegisteredAttribute'](_0x39c94d){const _0x4bfc14=this['_isBlockAttribute'](_0x39c94d),_0x1351b3=this['_inlineAttributeKeys']['has'](_0x39c94d);return _0x4bfc14||_0x1351b3;}['_reduceExistingSuggestions'](_0x3cdb60,_0x1cd5d3){if(0x0==_0x1cd5d3['length'])return!0x1;let _0x4e97c0=!0x1;for(const _0x106411 of _0x1cd5d3){const _0x49cfc8=this['_findSuggestions'](_0x106411['range'],'attribute')['filter'](_0x1b4c19=>!_0x1b4c19['meta']['isNextTo'])['map'](_0x25f30e=>_0x25f30e['suggestion']),_0x4383a5=_0x3c9873({'newValue':_0x106411['newValue']});_0x49cfc8['filter'](_0x4a7f87=>{const [_0x515825,_0x231994]=_0x4a7f87['subType']['split']('|');return _0x515825==_0x106411['key']&&_0x231994!=_0x4383a5;})['forEach'](_0x35a62b=>{this['_reduceSuggestionAttributeRange'](_0x35a62b,_0x106411['range'],_0x3cdb60),_0x4e97c0=!0x0;});}return _0x4e97c0;}['_reduceSuggestionAttributeRange'](_0x374c62,_0xd868a5,_0x28ba27){const _0x4212aa=_0x374c62['getFirstRange']()['getDifference'](_0xd868a5);0x0!==_0x4212aa['length']?0x1!==_0x4212aa['length']?this['_breakSuggestionMarker'](_0x374c62,_0xd868a5['start'],_0xd868a5['end']):this['_setSuggestionRange'](_0x374c62,_0x4212aa[0x0]):_0x28ba27['removeMarker'](_0x374c62['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x366122){this['_editor']=_0x366122,this['_model']=_0x366122['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x31d3b2,_0x4f62b8,_0xf3b34,_0xca164a,_0x118bb4,_0x453443){return new o(this['_model'],{'type':_0x31d3b2,'subType':_0x4f62b8,'id':_0xf3b34,'author':_0xca164a,'creator':_0xca164a,'attributes':_0x118bb4,'onAttributesChange':_0x453443,'onAccept':(..._0x5dbc00)=>this['getSuggestionCallback'](_0x31d3b2,_0x4f62b8,'accept')(..._0x5dbc00),'onDiscard':(..._0x44f6bf)=>this['getSuggestionCallback'](_0x31d3b2,_0x4f62b8,'discard')(..._0x44f6bf)});}['registerCustomCallback'](_0x490943,_0x4f5540,_0x1aba9d,_0x5d3eab){const _0x16d8f3=_0x490943+':'+_0x4f5540+':'+_0x1aba9d;this['_customCallbacks']['set'](_0x16d8f3,_0x5d3eab);}['getSuggestionCallback'](_0x48bfd6,_0x14720b,_0x1930c5){const _0x2d65df=_0x48bfd6+':'+_0x14720b+':'+_0x1930c5;return this['_customCallbacks']['get'](_0x2d65df)||this['_defaultCallbacks']['get'](_0x48bfd6+':'+_0x1930c5);}['_registerDefaultCallbacks'](){const _0x4aebaf=()=>!0x1,_0x2f0076=_0x2424a3=>{_0x2424a3['sort']((_0xfd8fe1,_0x5b2a75)=>_0xfd8fe1['start']['isBefore'](_0x5b2a75['start'])?0x1:-0x1),this['_model']['change'](_0x5ca8d8=>{for(const _0x58c081 of _0x2424a3){let _0x26788d;_0x26788d=_0x58c081['end']['isAtEnd']&&_0x58c081['end']['parent']==_0x58c081['start']['nodeAfter']?_0x5ca8d8['createSelection'](_0x58c081['start']['nodeAfter'],'on'):_0x5ca8d8['createSelection'](_0x58c081),this['_model']['deleteContent'](_0x26788d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x49f099=(_0x19bd5d,_0x54c03d)=>{_0x54c03d&&this['_model']['change'](_0x20c119=>{const {commandName:_0x4f531f,commandParams:_0x25e7d0=[]}=_0x54c03d,_0x42b3b8=_0x19bd5d['map'](_0x4224d0=>(Lt(_0x4224d0)&&(_0x4224d0=this['_model']['createRange'](_0x4224d0['end'])),_0x4224d0))['filter'](_0x2f7d12=>'$graveyard'!==_0x2f7d12['root']['rootName']);if(_0x42b3b8['length']<0x1)return;const _0x43acee=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2b39d6=>_0x488912['fromRange'](_0x2b39d6));_0x20c119['setSelection'](_0x42b3b8);for(const _0x5d0da7 of this['_editor']['commands']['commands']())_0x5d0da7['refresh']();_0x25e7d0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4f531f,..._0x25e7d0);const _0x205f40=_0x43acee['filter'](_0x1cfe94=>'$graveyard'!=_0x1cfe94['root']['rootName']);_0x205f40['length']>0x0&&_0x20c119['setSelection'](_0x205f40);for(const _0x3f8c78 of _0x43acee)_0x3f8c78['detach']();});},_0x42ac15=(_0x3a14f2,_0x582db7)=>0x1==_0x3a14f2['length']&&0x1==_0x582db7['length']&&_0x3a14f2[0x0]['end']['isEqual'](_0x582db7[0x0]['start']),_0xe8818b=(_0x53b8d1,_0x3e690a,_0x51c17c,_0x3cabb1)=>Wt(_0x53b8d1,_0x3e690a,_0x51c17c,_0x3cabb1)?[_0x53b8d1,_0x3e690a]:Wt(_0x3e690a,_0x53b8d1,_0x3cabb1,_0x51c17c)?[_0x3e690a,_0x53b8d1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4aebaf),this['_defaultCallbacks']['set']('insertion:discard',_0x2f0076),this['_defaultCallbacks']['set']('insertion:join',_0x42ac15),this['_defaultCallbacks']['set']('insertion:chain',_0xe8818b),this['_defaultCallbacks']['set']('deletion:accept',_0x2f0076),this['_defaultCallbacks']['set']('deletion:discard',_0x4aebaf),this['_defaultCallbacks']['set']('deletion:join',_0x42ac15),this['_defaultCallbacks']['set']('deletion:chain',_0xe8818b),this['_defaultCallbacks']['set']('formatInline:accept',_0x49f099),this['_defaultCallbacks']['set']('formatInline:discard',_0x4aebaf),this['_defaultCallbacks']['set']('formatInline:join',_0x42ac15),this['_defaultCallbacks']['set']('formatInline:chain',_0x4aebaf),this['_defaultCallbacks']['set']('formatBlock:accept',_0x49f099),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4aebaf),this['_defaultCallbacks']['set']('formatBlock:join',_0x42ac15),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4aebaf),this['_defaultCallbacks']['set']('attribute:accept',_0x4aebaf),this['_defaultCallbacks']['set']('attribute:discard',(_0x52c9bd,_0x14e918)=>{if(!_0x14e918)return;const _0x48e1da=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x536f60=>{if(_0x14e918['key']==u)for(const _0x524839 of _0x52c9bd){const _0x17c928=_0x524839['start']['nodeAfter'],_0x2d49ea=_0x14e918['oldValue'];_0x536f60['rename'](_0x17c928,_0x2d49ea);}else{if(_0x48e1da['_isBlockAttribute'](_0x14e918['key'])){for(const _0x9a4c54 of _0x52c9bd)void 0x0!==_0x14e918['oldValue']?_0x536f60['setAttribute'](_0x14e918['key'],_0x14e918['oldValue'],_0x9a4c54['start']['nodeAfter']):_0x536f60['removeAttribute'](_0x14e918['key'],_0x9a4c54['start']['nodeAfter']);}else{for(const _0x1cad85 of _0x52c9bd)_0x14e918['oldValue']?_0x536f60['setAttribute'](_0x14e918['key'],_0x14e918['oldValue'],_0x1cad85):_0x536f60['removeAttribute'](_0x14e918['key'],_0x1cad85);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x42ac15);}}function Gt(_0x52bfc9,_0x520efc,_0x227fc3){for(const _0x2f8b3b of _0x520efc['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f8b3b['root']==_0x2f8b3b)return!0x1;if(!_0x227fc3['containsItem'](_0x2f8b3b))return!0x1;if(_0x52bfc9['isObject'](_0x2f8b3b)||_0x52bfc9['isLimit'](_0x2f8b3b))return!0x0;}return!0x1;}function Lt(_0x107d3b){return _0x107d3b['end']['parent']==_0x107d3b['start']['nodeAfter']&&_0x107d3b['end']['isAtStart'];}function Jt(_0x4488d8,_0x5c6ffe,_0x5b744c,_0x4f7d49){const _0x580ec4=_0x43ef5f=>!_0x43ef5f['item']['is']('$textProxy')&&!_0x4f7d49['isObject'](_0x43ef5f['item']),_0x3414f8=_0x4488d8['start']['getLastMatchingPosition'](_0x580ec4),_0x2d0818=_0x4488d8['end']['getLastMatchingPosition'](_0x580ec4,{'direction':'backward'});return(!_0x4488d8['start']['isEqual'](_0x3414f8)||!_0x4488d8['end']['isEqual'](_0x2d0818))&&(_0x3414f8['isBefore'](_0x2d0818)?_0x5b744c['updateMarker'](_0x5c6ffe,{'range':_0x5b744c['createRange'](_0x3414f8,_0x2d0818)}):_0x5b744c['removeMarker'](_0x5c6ffe),!0x0);}function Kt(_0x5e82a0){return _0x3c9873(_0x5e82a0);}function Ht(_0x1bfce5){const _0x4fff06=_0x1bfce5['start']['nodeAfter'];return _0x4fff06&&_0x4fff06['is']('element');}function qt(_0x41c987,_0x25d716){return null==_0x41c987['end']['nodeBefore']&&_0x41c987['end']['parent']==_0x41c987['start']['nodeAfter']?zt(_0x41c987['start']['nodeAfter'],_0x25d716):_0x41c987;}function zt(_0x38cd9e,_0x319a02){const _0x2e2cef=_0x319a02['schema']['isObject'](_0x38cd9e)||_0x319a02['schema']['isSelectable'](_0x38cd9e);return _0x319a02['createRange'](_0x319a02['createPositionAt'](_0x38cd9e,'before'),_0x2e2cef?_0x319a02['createPositionAfter'](_0x38cd9e):_0x319a02['createPositionAt'](_0x38cd9e,'end'));}function Wt(_0x33b9cd,_0x2c08d4,_0x69acb7,_0x23f0db){return!!Qt(_0x33b9cd,_0x2c08d4)&&_0x69acb7['end']['isEqual'](_0x23f0db['start']);}function Qt(_0x42cdcd,_0x286d7b){if(!_0x42cdcd['_isDataLoaded']||!_0x286d7b['_isDataLoaded'])return!0x1;const _0x33e05a=new Set(Object['keys'](_0x42cdcd['attributes'])),_0x1eea45=new Set(Object['keys'](_0x286d7b['attributes']));if(_0x33e05a['delete']('groupId'),_0x1eea45['delete']('groupId'),0x0==_0x33e05a['size']&&0x0==_0x1eea45['size'])return!0x0;if(_0x33e05a['size']!=_0x1eea45['size'])return!0x1;const _0x475d9f={..._0x42cdcd['attributes']},_0x49c339={..._0x286d7b['attributes']};return delete _0x475d9f['groupId'],delete _0x49c339['groupId'],JSON['stringify'](_0x475d9f)==JSON['stringify'](_0x49c339);}function Xt(_0x11612a,_0x24e227){const _0x407f42=Yt(_0x11612a['attributes']),_0x3fcc78=Yt(_0x24e227);if(!_0x11612a['_isDataLoaded'])return!0x1;for(const _0x3d5c16 of Object['keys'](_0x3fcc78))if(!_0x2dc7e4(_0x407f42[_0x3d5c16],_0x3fcc78[_0x3d5c16]))return!0x1;return!0x0;}function Yt(_0xc92acb){const _0x47e883=Object['assign']({},_0xc92acb);return delete _0x47e883['skipNestingCheck'],delete _0x47e883['tablePasteChainId'],_0x47e883;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x2e3545(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x18e030,_0x36aede,_0x2a27fb,_0x21477d){super(),this['model']=_0x36aede,this['view']=_0x2a27fb,this['commentThreadController']=_0x21477d,this['_editor']=_0x18e030,this['_acceptCommand']=_0x18e030['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x18e030['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3ba337,_0x218882)=>_0x3ba337||_0x218882),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5851eb=>_0x5851eb&&this['_editor']['model']['canEditAt'](_0x36aede['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x33001a=>_0x33001a&&this['_editor']['model']['canEditAt'](_0x36aede['getRanges']())),this['_pendingAction']=null,_0x2a27fb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2a27fb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2a27fb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2a27fb,'change:isDirty',()=>{_0x2a27fb['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 _0x1c7afb=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1c7afb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x19e619{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5d01ac,_0x3376b8,_0x3c2598,_0x57b4a7){super(_0x5d01ac),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b6415(_0x5d01ac,c(_0x5d01ac,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3376b8['authoredAt']),this['bind']('authoredAt')['to'](_0x3376b8),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',_0x3376b8,'authoredAt',this,'descriptionParts',(_0x4e016d,_0x1d54ae,_0x3793ca)=>{const _0x48c300=_0x3793ca['map'](_0x1d4ad5=>ls(_0x1d4ad5['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4e016d-0x1,_0x3376b8['author']['name'],_0x1d54ae?_0x57b4a7['formatDateTime'](_0x1d54ae):'',new DOMParser()['parseFromString'](_0x48c300,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5c9875(),this['focusTracker']=new _0x4b530a(),this['keystrokes']=new _0x3de15a(),this['focusCycler']=new _0x364ffc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x28623e=>_0x28623e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3376b8,this['_localUser']=_0x3c2598,this['_config']=_0x57b4a7,_0x57b4a7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x59c28d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x11ac46}=this['_config'];this['commentsListView']=new _0x11ac46(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',_0x1526e5=>_0x1526e5+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x56fc90,_0x6499be)=>_0x56fc90||!!_0x6499be);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5b99b0}=this['_config'],_0x4aea71=new _0x5b99b0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1463f3=_0x4aea71['commentInputView'];return _0x4aea71['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1463f3,'value',(_0x1e8df3,_0x13bc2f,_0x516536)=>!!_0x516536||_0x1e8df3&&!_0x13bc2f),_0x1463f3['on']('submit',(_0x14f407,_0x570665)=>{this['fire']('addComment',_0x570665),_0x1463f3['editor']['setData']('');}),_0x1463f3['on']('cancel',()=>this['focus']()),_0x1463f3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4aea71;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2c2fbd,_0x145fa5,_0x2fae57,_0x537dba){super(_0x2c2fbd,_0x145fa5,_0x2fae57,_0x537dba),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x499224=>_0x499224&&_0x499224[0x0]?_0x499224[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x576269,_0x4a9b7d)=>{let _0x2faa4a='';for(const _0x1413a9 of _0x576269)_0x2faa4a+='<p>'+ls(_0x1413a9['content'],_0x1413a9['color'])+'</p>';return _0x4a9b7d?_0x2faa4a:ti(_0x2faa4a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x537dba['SuggestionView'](_0x2c2fbd,_0x145fa5,{'formatDateTime':_0x537dba['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 _0x23bdfa=this['bindTemplate'],_0x197d92=[this['suggestionView']];return this['commentsListView']&&_0x197d92['push'](this['commentsListView']),this['commentThreadInputView']&&_0x197d92['push'](this['commentThreadInputView']),_0x197d92['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x23bdfa['if']('isActive','ck-suggestion-wrapper--active'),_0x23bdfa['to']('type',_0x2fb2df=>'ck-suggestion-'+_0x2fb2df),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':_0x23bdfa['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x197d92};}['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 _0x19e619{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x269d95,_0x4b8946,_0x186b0c){super(_0x269d95),this['_model']=_0x4b8946,this['_config']=_0x186b0c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4b8946),this['acceptButton']=this['_createButton'](c(_0x269d95,'Accept\x20suggestion'),_0x47a9ad,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x269d95,'Discard\x20suggestion'),_0x4ad96b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5882fa(_0x269d95,_0x4b8946['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5c9875([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4b530a(),this['keystrokes']=new _0x3de15a(),this['focusCycler']=new _0x364ffc({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1ec4a8=>_0x1ec4a8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x44f105=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x44f105['innerHTML']=this['description'],this['on']('change:description',(_0x5aa886,_0x27fe44,_0xedad1c)=>{_0x44f105['innerHTML']=_0xedad1c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3fe7a1=this['bindTemplate'],_0x206e53=[{'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':_0x3fe7a1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3fe7a1['to']('authoredAt',_0x25f4dc=>this['_config']['formatDateTime'](_0x25f4dc))}]}]},{'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']&&_0x206e53['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':_0x206e53}]};}['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'](_0x147461,_0x43bf23,_0x3501e0,_0x99b7fd,_0x249a13){const _0x5a4dcb=new _0x320bd3(this['locale']);return _0x5a4dcb['set']({'label':_0x147461,'icon':_0x43bf23,'tooltip':!0x0,'tooltipPosition':_0x249a13}),_0x5a4dcb['extendTemplate']({'attributes':{'class':_0x3501e0}}),_0x5a4dcb['on']('execute',()=>{this['fire'](_0x99b7fd,this['_model']['id']);}),_0x5a4dcb;}['_setupKeyboardNavigation'](){const _0x259ba8=this['element'];this['keystrokes']['listenTo'](_0x259ba8);for(const _0xdc699d of this['focusables'])this['focusTracker']['add'](_0xdc699d['element']),this['keystrokes']['listenTo'](_0xdc699d['element']);this['keystrokes']['set']('enter',(_0x118e85,_0xfd009)=>{_0x259ba8===_0x118e85['target']&&(this['focusCycler']['focusFirst'](),_0xfd009());}),this['keystrokes']['set']('esc',(_0x299c2e,_0x5bf18f)=>{_0x259ba8!==_0x299c2e['target']&&(this['focus'](),_0x5bf18f());});}}class d extends _0x45b538{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x22861c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f2360){super(_0x3f2360),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3be782=this['editor']['config'];_0x3be782['define']('trackChanges.SuggestionThreadView',fe),_0x3be782['define']('trackChanges.SuggestionView',we),_0x3be782['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3be782['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4dba58,_0x5ea546){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x34d1f4,_0x58aedf]of this['_handleControllerBuffer']){const _0x290af1=this['_suggestionToController']['has'](_0x34d1f4);_0x290af1||_0x58aedf?_0x290af1&&_0x58aedf&&this['_destroyController'](_0x34d1f4):this['_initializeController'](_0x34d1f4);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4dba58,_0x5ea546);}['init'](){const _0x5201c6=this['editor'],_0x32104c=_0x5201c6['plugins']['get']('TrackChangesEditing'),_0x2352e6=_0x5201c6['plugins']['get']('Annotations'),_0x3bcd10=_0x5201c6['plugins']['get']('EditorAnnotations'),_0xae917f=_0x5201c6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3bcd10['addSourceCollector'](()=>{const _0x45629d=[];for(const [_0x3f492e,_0x39d171]of Array['from'](this['_suggestionToController'])){const _0x56944a=_0x3f492e['getAllAdjacentSuggestions'](),_0x16454e=[];for(const _0x4c7f62 of _0x56944a){if(!_0x4c7f62['isInContent'])continue;if(_0x4c7f62['isMultiRange']){_0x16454e['push'](..._0x4c7f62['getRanges']());continue;}const _0x34f349=_0x4c7f62['getFirstRange']();if(_0x16454e['length']>0x0){const _0x161d01=_0x16454e[0x0]['getJoined'](_0x34f349);if(_0x161d01){_0x16454e[0x0]=_0x161d01;continue;}}_0x16454e['push'](_0x34f349);}_0x45629d['push']([_0x39d171['view'],_0x16454e]);}return _0x45629d;}),this['listenTo'](_0x32104c,'suggestionLoaded',(_0x1361d0,_0x2815ad)=>{this['listenTo'](_0x2815ad,'change:previous',(_0x2ba144,_0xb0edbc,_0x4b4fa7,_0x31c21a)=>{_0x2815ad['isInContent']&&(null==_0x4b4fa7?(this['_updateController'](_0x31c21a['head']),this['_handleSuggestionControllerDelayed'](_0x2815ad,!0x1)):(this['_updateController'](_0x4b4fa7['head']),null==_0x31c21a&&this['_handleSuggestionControllerDelayed'](_0x2815ad,!0x0)));}),null!==_0x2815ad['previous']?this['_updateController'](_0x2815ad['head']):this['_handleSuggestionControllerDelayed'](_0x2815ad,!0x1);}),this['listenTo'](_0x32104c,'suggestionUnloaded',(_0x51310d,_0x3ff75d,_0xda6cf3)=>{this['stopListening'](_0x3ff75d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3ff75d),this['_suggestionToController']['has'](_0x3ff75d)&&this['_destroyController'](_0x3ff75d),_0xda6cf3&&this['_updateController'](_0xda6cf3['head']);}),this['listenTo'](_0x32104c,'suggestionChanged',(_0x1681fb,_0x3a1f36)=>{this['_updateController'](_0x3a1f36);}),this['listenTo'](_0x2352e6,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xae917f,'addComment',(_0x2a748b,{threadId:_0x5ea813,isFromAdapter:_0x244356})=>{if(_0x244356||!_0x32104c['hasSuggestion'](_0x5ea813))return;const _0x4609aa=_0x32104c['getSuggestion'](_0x5ea813);this['_suggestionToController']['get'](_0x4609aa)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x342c47=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14125e;for(const _0x20d49a in _0x342c47){const _0x1d48d0=_0x20d49a,_0x30bad4=_0x342c47[_0x1d48d0];if('trackChangesLicenseKeyValid'==_0x30bad4||'trackChangesLicenseKeyInvalid'==_0x30bad4||'trackChangesLicenseKeyExpired'==_0x30bad4||'trackChangesLicenseKeyDomainLimit'==_0x30bad4||'trackChangesLicenseKeyNotAllowed'==_0x30bad4||'trackChangesLicenseKeyEvaluationLimit'==_0x30bad4||'trackChangesLicenseKeyTrialLimit'==_0x30bad4||'trackChangesLicenseKeyUsageLimit'==_0x30bad4){delete _0x342c47[_0x1d48d0],_0x14125e=_0x30bad4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x14125e&&_0x342c47['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x14125e&&_0x342c47['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x14125e&&_0x342c47['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x14125e&&_0x342c47['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x14125e&&_0x342c47['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x14125e&&_0x342c47['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x14125e&&_0x342c47['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4d7f81=this['editor']['plugins']['get']('Annotations'),_0x59aa01=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30068d=Array['from'](_0x4d7f81['activeAnnotations'],_0x160320=>_0x160320['innerView'])['filter'](_0x39c5d8=>this['_viewToController']['has'](_0x39c5d8)),_0x214009=[];for(const _0x5c91b1 of _0x30068d){const _0x12adf8=this['_viewToController']['get'](_0x5c91b1)['model']['getAllAdjacentSuggestions']();_0x214009['push'](..._0x12adf8['reduce']((_0x29fd07,_0x64e5e6)=>[..._0x29fd07,..._0x64e5e6['getMarkerNames']()],[]));}_0x59aa01['activeMarkers']=_0x214009;}['_addUIComponentsToFactory'](){const _0x3a0d58=this['editor'],_0x19e8c2=_0x3a0d58['locale'],_0x3a836e=c(_0x19e8c2,'Track\x20changes'),_0x25cf79=new _0x15d1c8([{'type':'switchbutton','model':new _0x59067c({'withText':!0x0,'isToggleable':!0x0,'label':_0x3a836e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x59067c({'withText':!0x0,'label':c(_0x19e8c2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59067c({'withText':!0x0,'label':c(_0x19e8c2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59067c({'withText':!0x0,'label':c(_0x19e8c2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x59067c({'withText':!0x0,'label':c(_0x19e8c2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3a0d58['plugins']['has']('TrackChangesPreview')&&_0x25cf79['addMany']([{'type':'separator'},{'type':'button','model':new _0x59067c({'withText':!0x0,'label':c(_0x19e8c2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4afaf6 of _0x25cf79)if(ke(_0x4afaf6)){const _0x41d15c=_0x3a0d58['commands']['get'](_0x4afaf6['model']['commandName']);_0x4afaf6['model']['bind']('isOn','isEnabled')['to'](_0x41d15c,'value','isEnabled');}_0x3a0d58['ui']['componentFactory']['add']('trackChanges',_0x93c0c2=>this['_createToolbarButton'](_0x93c0c2,_0x25cf79,_0x3a836e)),_0x3a0d58['ui']['componentFactory']['add']('menuBar:trackChanges',_0x31a06d=>this['_createMenuBarMenu'](_0x31a06d,_0x25cf79,_0x3a836e));}['_createToolbarButton'](_0x220213,_0x11248d,_0x3cf205){const _0x5754e9=_0x4dfa00(_0x220213,_0x1b3e50),_0x5510d6=this['editor']['commands']['get']('trackChanges');_0x5754e9['buttonView']['set']({'tooltip':_0x3cf205,'label':_0x3cf205,'icon':_0x414a82}),_0x5754e9['buttonView']['bind']('isOn')['to'](_0x5510d6,'value'),_0x5754e9['buttonView']['on']('execute',()=>{_0x5510d6['execute'](),this['editor']['editing']['view']['focus']();}),_0x4be2ab(_0x5754e9,_0x11248d,{'role':'menu'});const _0x2d37fc=[];for(const _0xa2bb3f of _0x11248d)ke(_0xa2bb3f)&&_0x2d37fc['push'](this['editor']['commands']['get'](_0xa2bb3f['model']['commandName']));const _0x158b73=_0x5754e9['buttonView'];return _0x158b73['actionView']['unbind']('isEnabled'),_0x158b73['arrowView']['unbind']('isEnabled'),_0x158b73['actionView']['bind']('isEnabled')['to'](_0x5510d6,'isEnabled'),_0x158b73['arrowView']['bind']('isEnabled')['toMany'](_0x2d37fc,'isEnabled',(..._0x2c660e)=>_0x2c660e['some'](_0x32ecfd=>_0x32ecfd)),_0x5754e9['on']('execute',_0x1277b5=>{this['editor']['execute'](_0x1277b5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5754e9;}['_createMenuBarMenu'](_0x5bce16,_0x40d748,_0x4d48e2){const _0x371608=new _0x34b193(_0x5bce16),_0x5dab62=this['editor']['commands']['get']('trackChanges');_0x371608['buttonView']['set']({'label':_0x4d48e2,'icon':_0x414a82});const _0x422c3d=new _0x5575cb(_0x5bce16);for(const _0x5a0aa8 of _0x40d748){if('separator'==_0x5a0aa8['type']){_0x422c3d['items']['add'](new _0x24a4cb(_0x5bce16));continue;}const _0x234956=new _0x4a615a(_0x5bce16,_0x371608),_0x158c22=new _0x230962(_0x5bce16),_0x1b39ee=_0x5a0aa8['model'];_0x158c22['bind'](...Object['keys'](_0x1b39ee))['to'](_0x1b39ee),_0x158c22['delegate']('execute')['to'](_0x371608),_0x158c22['on']('execute',()=>{this['editor']['execute'](_0x1b39ee['commandName']),this['editor']['editing']['view']['focus']();}),_0x234956['children']['add'](_0x158c22),_0x422c3d['items']['add'](_0x234956);}return _0x371608['bind']('isEnabled')['to'](_0x5dab62,'isEnabled'),_0x371608['panelView']['children']['add'](_0x422c3d),_0x371608;}['_initializeController'](_0x40b37e){const _0x192814=this['editor'],_0x27ea7e=_0x192814['config'],_0x163c77=_0x192814['plugins']['get']('Annotations'),_0x45916b=_0x192814['plugins']['get']('CommentsRepository'),_0x46f3e2=_0x192814['plugins']['get']('EditorAnnotations'),_0xd15755=_0x192814['plugins']['get'](_0x22861c)['me'],_0x4199f3=_0x27ea7e['get']('trackChanges')['SuggestionThreadView'],_0x11e32b=_0x27ea7e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1758af,CommentThreadInputView:_0x137e2c}=_0x192814['plugins']['get']('CommentsUI');let _0x36686a,_0x415d81,_0x28e832;this['_annotationViews']['has'](_0x40b37e['id'])?(_0x415d81=this['_annotationViews']['get'](_0x40b37e['id']),_0x36686a=_0x415d81['mainView']):(_0x36686a=new _0x4199f3(_0x192814['locale'],_0x40b37e,_0xd15755,{'disableComments':this['_disableComments'],'editorConfig':{..._0x27ea7e['get']('comments.editorConfig'),'licenseKey':_0x27ea7e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x27ea7e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x27ea7e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x27ea7e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x589de0(_0x27ea7e['get']('locale'),_0x192814['locale']),'CommentView':_0x27ea7e['get']('comments')['CommentView'],'CommentsListView':_0x1758af,'CommentThreadInputView':_0x137e2c,'SuggestionView':_0x11e32b}),_0x36686a['suggestionView']['acceptButton']['on']('execute',()=>{_0x192814['editing']['view']['focus']();}),_0x36686a['suggestionView']['discardButton']['on']('execute',()=>{_0x192814['editing']['view']['focus']();}),_0x415d81=_0x163c77['createAnnotationView'](this['editor']['locale'],_0x36686a),_0x415d81['bind']('isDirty')['to'](_0x36686a,'isDirty'),_0x415d81['bind']('length')['to'](_0x36686a),_0x415d81['bind']('type')['to'](_0x36686a,'type',_0x3961d0=>'suggestion-'+_0x3961d0),_0x36686a['on']('escape',()=>{_0x28e832['fire']('escape');}),this['_annotationViews']['set'](_0x40b37e['id'],_0x415d81));const _0xd62d60=_0x45916b['createCommentThreadController'](_0x40b37e['commentThread'],_0x36686a),_0x1434c1=new pe(_0x192814,_0x40b37e,_0x36686a,_0xd62d60),_0x17e6e8=_0x40b37e['getAllAdjacentSuggestions']()['filter'](_0x910ff3=>_0x910ff3['isInContent']);_0x36686a['descriptionParts']=_0x192814['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x17e6e8),this['_suggestionToController']['set'](_0x40b37e,_0x1434c1),this['_viewToController']['set'](_0x36686a,_0x1434c1),_0x28e832=_0x163c77['createAnnotation']({'view':_0x415d81,'target':()=>{const _0x4bb1cb=[],_0x3398a4=_0x40b37e['getAllAdjacentSuggestions']()['filter'](_0x46b208=>_0x46b208['isInContent']);for(const _0x6944cf of _0x3398a4)_0x4bb1cb['push'](..._0x6944cf['getMarkers']());return _0xde8d0f(_0x192814['editing'],_0x4bb1cb);},'type':()=>'suggestion-'+_0x1434c1['view']['type']}),_0x45916b['_bindAnnotationToEditors'](_0x36686a,_0x28e832),_0x163c77['add'](_0x28e832),_0x46f3e2['registerAnnotation'](_0x28e832);}['_destroyController'](_0xff3ba4){const _0x25863b=this['editor']['plugins']['get']('CommentsRepository'),_0xbe2efb=this['editor']['plugins']['get']('Annotations'),_0x445b12=this['_suggestionToController']['get'](_0xff3ba4),_0xe0568d=_0x445b12['view'],_0x4265d6=_0xbe2efb['getByInnerView'](_0xe0568d);_0x25863b['_unbindEditors'](_0xe0568d),_0x4265d6&&_0xbe2efb['remove'](_0x4265d6),this['_suggestionToController']['delete'](_0xff3ba4),this['_viewToController']['delete'](_0xe0568d),_0x445b12['destroy']();}['_updateController'](_0x2ed11b){if(!_0x2ed11b['isInContent']||!this['_suggestionToController']['has'](_0x2ed11b))return;const _0x58fb6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x437ec5=this['_suggestionToController']['get'](_0x2ed11b),_0xb1bfb6=_0x2ed11b['getAllAdjacentSuggestions']();_0x437ec5['view']['descriptionParts']=_0x58fb6f['descriptionFactory']['getDescriptions'](_0xb1bfb6);}['destroy'](){for(const _0x50d092 of this['_suggestionToController']['keys']())this['_destroyController'](_0x50d092);for(const _0x4e4125 of this['_annotationViews']['values']())_0x4e4125['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5e4d00){return'model'in _0x5e4d00;}class k extends _0x45b538{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2f63d3){this['editor']['plugins']['get'](p)['adapter']=_0x2f63d3;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x48a7da){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x48a7da);}['getSuggestions']({skipNotAttached:_0xbdf661=!0x1,toJSON:_0x52a388=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xbdf661,'toJSON':_0x52a388});}['getSuggestion'](_0x2860ea){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2860ea);}}const w=['Pagination'];class T extends _0x45b538{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5456b8=this['editor'];if(_0x5456b8['config']['define']('trackChangesData.editorCreator',_0x4d2b0a=>{const _0x31b1bc=_0x5456b8['model']['document']['getRootNames']()['reduce']((_0x44539f,_0x5f3918)=>(_0x44539f[_0x5f3918]='',_0x44539f),{});return _0x5456b8['constructor']['create'](_0x31b1bc,_0x4d2b0a);}),'function'!=typeof _0x5456b8['config']['get']('trackChangesData')['editorCreator'])throw new _0xa3b19b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x613833){return N(this['editor'],!0x0,_0x613833);}['getDataWithDiscardedSuggestions'](_0x2ed911){return N(this['editor'],!0x1,_0x2ed911);}}class D extends _0x45b538{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x345e13){function _0xaf07ed(_0x15ae2a){return _0x15ae2a['map'](_0x11dd2d=>String['fromCharCode'](_0x11dd2d))['join']('');}super(_0x345e13),this['result']='end',_0x345e13[_0xaf07ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaf07ed([0x76,0x69,0x65,0x77])][_0xaf07ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xaf07ed([0x61,0x75,0x74,0x6f]),_0x345e13[_0xaf07ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xaf07ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xaf07ed([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xaf07ed([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xaf07ed([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(_0x4c0178){return void 0x0!==_0x4c0178['getRootsAttributes'];}async function N(_0x5bd7a6,_0x1048d1,_0x2b6571){const _0x1dd108=_0x4ce18b(_0x5bd7a6,w);_0x1dd108['plugins']['push'](p,D),_0x1dd108['rootsAttributes']=Ge(_0x5bd7a6)?_0x5bd7a6['getRootsAttributes']():void 0x0;const _0x348a11=document['createDocumentFragment'](),_0x3ddc8d=_0x5bd7a6['config']['get']('trackChangesData')['editorCreator'],_0x24c430=await _0x3ddc8d(_0x1dd108,()=>function(_0x4c5762){const _0x231815=document['createElement']('div');return _0x4c5762['appendChild'](_0x231815),_0x231815;}(_0x348a11));!function(_0x2afca7,_0x12f8d2){const _0x3a930f=_0x2afca7['model']['document']['getRootNames']()['reduce']((_0x2bb16a,_0x31b6a0)=>(_0x2bb16a[_0x31b6a0]=_0x2afca7['data']['get']({'rootName':_0x31b6a0}),_0x2bb16a),{}),_0x250b43=_0x2afca7['plugins']['get']('Users')['users']['map'](_0x5309f2=>({'id':_0x5309f2['id'],'name':_0x5309f2['name']})),_0x1de6c6=_0x2afca7['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x525c47=_0x2afca7['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x41d8bb=_0x12f8d2['plugins']['get']('Users'),_0x3f6002=_0x12f8d2['plugins']['get']('TrackChangesEditing'),_0x56aee0=_0x12f8d2['plugins']['get']('CommentsRepository');for(const _0x924c92 of _0x56aee0['getCommentThreads']())_0x924c92['remove']();for(const _0x525050 of _0x250b43)_0x41d8bb['getUser'](_0x525050['id'])||_0x41d8bb['addUser'](_0x525050);_0x41d8bb['me']||_0x41d8bb['useAnonymousUser']();for(const _0x147532 of _0x525c47)_0x56aee0['addCommentThread'](_0x147532);for(const _0x541765 of _0x1de6c6)_0x3f6002['addSuggestionData'](_0x541765);_0x12f8d2['data']['set'](_0x3a930f);}(_0x5bd7a6,_0x24c430),_0x24c430['execute'](_0x1048d1?'acceptAllSuggestions':'discardAllSuggestions');const _0x27f70b=Ge(_0x24c430)?_0x24c430['getFullData'](_0x2b6571):_0x24c430['data']['get'](_0x2b6571);return await _0x24c430['destroy'](),_0x27f70b;}class Me extends _0x19e619{['options'];constructor(_0x3118df,_0x2d7e8c){super(_0x3118df),this['options']=_0x2d7e8c,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'](_0x23bd9c,_0x3cdf73){if(!this['element'])return;const _0x4adebf=[];for(const [_0x418fdc,_0x564b5b]of _0x23bd9c){const _0x23babd=document['createElement']('div');_0x23babd['setAttribute']('data-ck-root-name',_0x418fdc),_0x23babd['className']=_0x564b5b['classes']+'\x20ck-track-changes-preview__root-container',_0x23babd['innerHTML']=_0x564b5b['content'],_0x4adebf['push'](_0x23babd);}_0x3cdf73(this['element'],_0x4adebf),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5de1fa{constructor(_0x6c5ffe){super(_0x6c5ffe),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x10a472=this['editor'],_0x38c2e1=_0x10a472['locale'],_0x2ad766=_0x10a472['plugins']['get']('Dialog');let _0xb91af7;const _0x5b3a24=function(_0x3daf9b){const _0x51676a={};if('editables'in _0x3daf9b['ui']['view']){for(const [_0x528112,_0x26265c]of Object['entries'](_0x3daf9b['ui']['view']['editables']))_0x51676a[_0x528112]=_0x26265c['element'];}else _0x51676a[_0x3daf9b['model']['document']['getRootNames']()[0x0]]=_0x3daf9b['ui']['view']['editable']['element'];return _0x51676a;}(_0x10a472),_0x139ee0=function(_0x468f1f){let _0x25346c=0x0;for(const _0x3aa9e2 of Object['values'](_0x468f1f))_0x25346c=Math['max'](_0x25346c,_0x3aa9e2['getBoundingClientRect']()['width']);let _0x3fcde2=0x0;for(const _0x152e5c of Object['values'](_0x468f1f))_0x3fcde2+=_0x152e5c['getBoundingClientRect']()['height'];const _0x1d4123=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3fe72a=Math['min'](_0x3fcde2,_0x1d4123);return{'width':_0x25346c,'height':_0x3fe72a};}(_0x5b3a24);_0x2ad766['show']({'id':'finalContentPreview','title':c(_0x38c2e1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x38c2e1,{'dialogRects':_0x139ee0}),'onHide':()=>{_0xb91af7['detachFromDom']();},'onShow':()=>{_0x10a472['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5d48ce=>{const _0x5e065e=this['_standarizeRootsData'](_0x5d48ce,_0x10a472,_0x5b3a24);_0x2ad766['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5e065e,_0x10a472['config']['get']('trackChanges.preview.renderFunction'));}),_0xb91af7=new _0x58e48f(_0x38c2e1,[_0x2ad766['view']]),_0xb91af7['attachToDom'](),_0xb91af7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x10a472['once']('destroy',()=>{_0xb91af7['detachFromDom']();});const _0x5c0ffd=_0x2ad766['view']['headerView']['class'];_0x2ad766['view']['headerView']['class']=_0x5c0ffd?_0x5c0ffd+'\x20ck-reset_all':'ck-reset_all',_0x2ad766['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2ad766['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4566dd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x20e46e=_0x4566dd['previewMode'],_0x4b0985={};if('$labels'===_0x20e46e){for(const _0x3f864c of _0x4566dd['getMergeFieldsIds']())_0x4b0985[_0x3f864c]=_0x4566dd['getLabel'](_0x3f864c)||_0x3f864c;}else{const _0x4af703='$defaultValues'===_0x20e46e?_0x4566dd['getDefaultValues']():_0x4566dd['getDataSetValues'](_0x20e46e,!0x0);for(const _0x36d0a2 of Object['entries'](_0x4af703)){const [_0x9644c9,_0x16db64]=_0x36d0a2;_0x4b0985[_0x9644c9]=null!==_0x16db64?_0x16db64:_0x4566dd['getLabel'](_0x9644c9)||_0x9644c9;}}return{'mergeFieldsData':_0x4b0985};}['_standarizeRootsData'](_0x121db8,_0x22e119,_0x120c90){let _0x17f440;if('string'==typeof _0x121db8){const _0x1bf64b=_0x22e119['model']['document']['getRootNames']()[0x0];_0x17f440={[_0x1bf64b]:_0x121db8};}else _0x17f440=_0x121db8;const _0x5a2d67=this['_fixMediaEmbeds'](_0x17f440,_0x22e119),_0x37855a=function(_0x3653b7,_0x4bc74e){for(const [_0x41a83b,_0x1393a1]of _0x3653b7)_0x1393a1['classes']=_0x4bc74e[_0x41a83b]['classList']['value']['replace']('ck-focused','');return _0x3653b7;}(this['_sortRoots'](_0x22e119)['reduce']((_0x11e24d,_0x318bf0)=>(_0x11e24d['push']([_0x318bf0,{'content':_0x5a2d67[_0x318bf0],'classes':''}]),_0x11e24d),[]),_0x120c90);return _0x37855a;}['_fixMediaEmbeds'](_0x3a3591,_0x79d1ee){if(!_0x79d1ee['plugins']['has']('MediaEmbedEditing'))return _0x3a3591;const _0x41dc39=_0x79d1ee['plugins']['get']('MediaEmbedEditing');for(const [_0xa66ec8,_0x5d5086]of Object['entries'](_0x3a3591)){const _0x4239ba=document['createElement']('div');_0x4239ba['innerHTML']=_0x5d5086,(_0x4239ba['querySelectorAll']('figure.media')['forEach'](_0x284b2a=>{const _0x1f1487=_0x284b2a['querySelector']('oembed');if(_0x1f1487){const _0x4e520b=_0x1f1487['getAttribute']('url');if(_0x4e520b){const _0x5f07f4=_0x41dc39['registry']['getMediaViewElement'](new _0x22135e(_0x79d1ee['editing']['view']['document']),_0x4e520b,{'elementName':'','renderForEditingView':!0x0}),_0x3606dc=document['createElement']('div');_0x3606dc['classList']['add']('ck-media__wrapper'),_0x5f07f4['render'](_0x3606dc,_0x79d1ee['editing']['view']['domConverter']),_0x1f1487['replaceWith'](_0x3606dc);}}}),_0x3a3591[_0xa66ec8]=_0x4239ba['innerHTML']);}return _0x3a3591;}['_sortRoots'](_0x314cf2){if(!function(_0x2eedfe){return void 0x0!==_0x2eedfe['getRootsAttributes'];}(_0x314cf2))return _0x314cf2['model']['document']['getRootNames']();const _0x53bef0=[],_0xc4b61f=new Map();for(const _0x22ca6c of _0x314cf2['model']['document']['getRootNames']()){const _0x2830a2=_0x314cf2['editing']['view']['getDomRoot'](_0x22ca6c)['getClientRects']()['item'](0x0);_0x53bef0['push'](_0x22ca6c),_0xc4b61f['set'](_0x22ca6c,_0x2830a2);}return _0x53bef0['sort']((_0x15c804,_0x551880)=>{const _0x4957a6=_0xc4b61f['get'](_0x15c804),_0x508142=_0xc4b61f['get'](_0x551880);return _0x4957a6['y']-_0x508142['y']||_0x4957a6['x']-_0x508142['x'];}),_0x53bef0;}}class te extends _0x45b538{static get['requires'](){return[T,_0x433000];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb9d00c){super(_0xb9d00c),_0xb9d00c['commands']['add']('previewFinalContent',new re(this['editor'])),_0xb9d00c['config']['define']('trackChanges.preview.renderFunction',(_0x16b912,_0x5d7bb3)=>{for(const _0x144109 of _0x5d7bb3)_0x16b912['appendChild'](_0x144109);});}}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};