@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250328.0 → 0.0.0-nightly-20250330.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 _0x1cf1d8,Plugin as _0xc188f5,PendingActions as _0xa02684}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5b8507,ObservableMixin as _0x59a73e,uid as _0x543158,priorities as _0x1e4238,insertToPriorityArray as _0x5a9994,logWarning as _0x3f55c6,getEnvKeystrokeText as _0xa8769e,FocusTracker as _0x101b2d,KeystrokeHandler as _0x514720,Collection as _0x29d7f8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x53679a,IconCancel as _0x22d25d,IconTrackChanges as _0xca119}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x137a11,View as _0x318208,ViewCollection as _0x2e5133,FocusCycler as _0x3a281e,ViewModel as _0x471719,createDropdown as _0x26cd9b,SplitButtonView as _0xc16298,addListToDropdown as _0x38f58b,MenuBarMenuView as _0x46ef68,MenuBarMenuListView as _0x3b7ea8,ListSeparatorView as _0x7ad159,MenuBarMenuListItemView as _0x107293,MenuBarMenuListItemButtonView as _0x5789b8,BodyCollection as _0x146592,Dialog as _0xd30797}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x546bdd,hashObject as _0x15682d,surroundingMarkersDetector as _0x224907,FOCUS_ANNOTATION_KEYSTROKE as _0x5853fa,AriaDescriptionView as _0x287eb4,setupThreadKeyboardNavigation as _0x392308,trimHtml as ti,UserView as _0x272be7,LateFocusButtonView as _0x2ad798,getDateTimeFormatter as _0x1d0cb8,getAllMarkersDomElementsSorted as _0x2f266a,sanitizeEditorConfig as _0x2a8de1}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x580ca2,LiveRange as _0x27d8bc,LivePosition as _0x216c64,DowncastWriter as _0x4c64e6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xf7f7ae,toWidget as _0x1795d6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4852ac,set as _0x988eac,isEqual as _0x222265,unset as _0x168038,omit as Ft}from'es-toolkit/compat';import{Delete as _0x11ae3c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x271c2f}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3716ff}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x1cf1d8{['_enabledCommands'];constructor(_0x554c00,_0x5b6a57){super(_0x554c00),this['_enabledCommands']=_0x5b6a57,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 _0x1d2fb2 of this['editor']['commands']['commands']())_0x1d2fb2['affectsData']&&!this['_enabledCommands']['has'](_0x1d2fb2)&&_0x1d2fb2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x59f47e of this['editor']['commands']['commands']())_0x59f47e['affectsData']&&!this['_enabledCommands']['has'](_0x59f47e)&&_0x59f47e['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x1cf1d8{['_suggestions'];constructor(_0x427a1f,_0x23c438){super(_0x427a1f),this['_suggestions']=_0x23c438,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5f0c38){const _0x2ad84d=this['_suggestions']['get'](_0x5f0c38);if(!_0x2ad84d)throw new _0x5b8507('track-changes-accept-suggestion-not-found',this);const _0x2cf3c1=_0x2ad84d['getRanges']();this['editor']['model']['canEditAt'](_0x2cf3c1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2ad84d);}}class R extends _0x1cf1d8{['_suggestions'];constructor(_0x2f2543,_0x5730cf){super(_0x2f2543),this['_suggestions']=_0x5730cf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x316342){const _0x41bc2e=this['_suggestions']['get'](_0x316342);if(!_0x41bc2e)throw new _0x5b8507('track-changes-discard-suggestion-not-found',this);const _0x555e55=_0x41bc2e['getRanges']();this['editor']['model']['canEditAt'](_0x555e55)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x41bc2e);}}function ls(_0x2a4711,_0x1f903b){let _0x455565='';return _0x455565+=_0x2a4711['split']('*')['map']((_0x75625b,_0x58302a)=>_0x58302a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x75625b)+'</span>':nn(_0x75625b))['join'](''),_0x1f903b&&(_0x455565+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1f903b['value']+'\x22\x20title=\x22'+_0x1f903b['title']+'\x22></span>'),_0x455565;}function nn(_0x168284){const _0x59ae84=document['createElement']('span');return _0x59ae84['innerText']=_0x168284,_0x59ae84['innerHTML'];}function ts(_0x4822a4){return _0x4822a4['sort']((_0xcbaba6,_0x24d3ec)=>'deletion'==_0xcbaba6['type']&&'deletion'!=_0x24d3ec['type']?-0x1:'deletion'!=_0xcbaba6['type']&&'deletion'==_0x24d3ec['type']?0x1:0x0);}function to(_0x3eecde,_0x40c564){let _0x5e96ff,_0x1f3f14=0x0;const _0x18fb30=[],_0x9f3500=_0x40c564['schema'];for(;_0x1f3f14<_0x3eecde['length'];){const _0x304357=_0x3eecde[_0x1f3f14],_0x1cbe6c=_0x3eecde[_0x1f3f14+0x1];_0x5e96ff||(_0x5e96ff=_0x40c564['createPositionBefore'](_0x304357)),on(_0x40c564,_0x304357,_0x1cbe6c)||(_0x18fb30['push'](_0x40c564['createRange'](_0x5e96ff,_0x9f3500['isObject'](_0x304357)?_0x40c564['createPositionAfter'](_0x304357):_0x40c564['createPositionAt'](_0x304357,'end'))),_0x5e96ff=null),_0x1f3f14++;}return _0x18fb30;}function on(_0x3bb7eb,_0x4142a0,_0xb565d7){if(!_0xb565d7)return!0x1;const _0xa03260=_0x3bb7eb['createPositionAfter'](_0x4142a0),_0x53fca7=_0x3bb7eb['createPositionBefore'](_0xb565d7);return _0xa03260['isTouching'](_0x53fca7);}function rs(_0x271d19,_0x296c0d,_0xd670d3){for(;_0xd670d3['length'];){const _0x4d7b2d=_0xd670d3['splice'](0x0,0x64);_0x271d19['change'](()=>{for(const _0x287f37 of _0x4d7b2d)_0x287f37['isInContent']&&_0x296c0d['execute'](_0x287f37['id']);});}}class x extends _0x1cf1d8{['_command'];['_suggestions'];constructor(_0x2bf4c3,_0x117046,_0x1ab06c){super(_0x2bf4c3),this['_command']=_0x117046,this['_suggestions']=_0x1ab06c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4291fb=Array['from'](this['_suggestions']['values']())['some'](_0x191e80=>_0x191e80['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4291fb;}['execute'](){const _0x5ac300=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3a73a2 of _0x5ac300){const _0x2c36b2=_0x3a73a2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2c36b2))return;}rs(this['editor']['model'],this['_command'],_0x5ac300);}}class E extends _0x1cf1d8{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1f1b5e,_0x394ab0,_0xecfcb4){super(_0x1f1b5e),this['_command']=_0x394ab0,this['_suggestions']=_0xecfcb4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x358943=this['editor']['model']['document']['selection'],_0x70b6ca=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x11a860,_0xdba130){const _0x1ba1ed=Array['from'](_0x11a860['getRanges']()),_0x4cc612=new Set();for(const _0x32adcf of _0xdba130)if(_0x32adcf['isInContent']){for(const _0x3d7b4d of _0x1ba1ed)for(const _0x438fe6 of _0x32adcf['getRanges']())(_0x3d7b4d['isIntersecting'](_0x438fe6)||_0x11a860['isCollapsed']&&!_0x32adcf['isMultiRange']&&_0x32adcf['next']&&_0x438fe6['end']['isTouching'](_0x3d7b4d['start']))&&_0x4cc612['add'](_0x32adcf);}return _0x4cc612;}(_0x358943,_0x70b6ca),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4dd958=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3fa982 of _0x4dd958){const _0x18255a=_0x3fa982['getRanges']();if(!this['editor']['model']['canEditAt'](_0x18255a))return;}rs(this['editor']['model'],this['_command'],_0x4dd958);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x59a73e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f2342,_0x4f4341){super(),this['id']=_0x4f4341['id'],this['type']=_0x4f4341['type'],this['subType']=_0x4f4341['subType']||null,this['author']=_0x4f4341['author'],this['creator']=_0x4f4341['creator']||_0x4f4341['author'],this['isExternal']=Boolean(_0x4f4341['attributes']&&_0x4f4341['attributes']['@external']),this['data']=null,this['_model']=_0x2f2342,this['_onAccept']=_0x4f4341['onAccept'],this['_onDiscard']=_0x4f4341['onDiscard'],this['_onAttributesChange']=_0x4f4341['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f4341['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 _0x53a579=this;for(;_0x53a579['previous'];)_0x53a579=_0x53a579['previous'];return _0x53a579;}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'](_0x2b57c4){this['_markerNames']['add'](_0x2b57c4);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5bdb3b=>this['_model']['markers']['get'](_0x5bdb3b))['filter'](_0x1fa444=>_0x1fa444);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4d39a2=>{for(const _0x21bd73 of this['getMarkers']())_0x4d39a2['removeMarker'](_0x21bd73);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ef39b){this['_model']['change'](_0x2ab0bc=>{_0x2ab0bc['removeMarker'](_0x1ef39b);}),this['_markerNames']['delete'](_0x1ef39b);}['addRange'](_0x425807){const _0x1f0370='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1f0370),this['_model']['change'](_0x23948d=>{_0x23948d['addMarker'](_0x1f0370,{'range':_0x425807,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5be8f8){for(const _0x3e1636 of this['getRanges']())if(_0x3e1636['isIntersecting'](_0x5be8f8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x32d681=>_0x32d681['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4dcef5,_0x195b61)=>[..._0x4dcef5,..._0x195b61['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x200d55=this['getRanges']();if(0x1!=_0x200d55['length'])return null;const _0x692831=_0x200d55[0x0],_0x10f538=_0x692831['start']['nodeAfter'],_0x2a474d=_0x692831['end']['nodeBefore'];return _0x10f538 instanceof _0x580ca2?_0x10f538!=_0x2a474d?null:_0x10f538: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 _0x102469=[];let _0x4c2aa4=this['head'];for(;_0x4c2aa4;)_0x102469['push'](_0x4c2aa4),_0x4c2aa4=_0x4c2aa4['next'];return _0x102469;}['setAttribute'](_0x26e3a9,_0x27a5ac){const _0x4c49fd=_0x4852ac(this['attributes']);_0x988eac(_0x4c49fd,_0x26e3a9,_0x27a5ac),_0x222265(_0x4c49fd,this['attributes'])||(this['attributes']=_0x4c49fd,this['_onAttributesChange'](_0x4c49fd));}['removeAttribute'](_0x407157){const _0x10718c=_0x4852ac(this['attributes']);_0x168038(_0x10718c,_0x407157),_0x222265(_0x10718c,this['attributes'])||(this['attributes']=_0x10718c,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 _0x543158()['substr'](0x1,0x5);}}function c(_0x1f6fc8,_0x264799,_0x5001bb){const _0x54f3ec=_0x1f6fc8['t'],t=_0x1f6fc8['t'];switch(_0x264799){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',_0x5001bb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5001bb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5001bb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5001bb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5001bb);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',_0x5001bb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5001bb);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',_0x5001bb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5001bb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5001bb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5001bb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5001bb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5001bb);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5001bb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5001bb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5001bb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5001bb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5001bb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5001bb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5001bb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5001bb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5001bb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5001bb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5001bb);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5001bb);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'},_0x5001bb);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5001bb);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5001bb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5001bb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5001bb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5001bb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5001bb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5001bb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5001bb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5001bb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5001bb);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'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5001bb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5001bb);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'},_0x5001bb);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5001bb);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 _0x54f3ec({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5001bb);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x54f3ec({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5001bb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5001bb);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'},_0x5001bb);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'},_0x5001bb);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'},_0x5001bb);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x264799;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4e34dd,_0x21b66e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4e34dd,this['_locale']=_0x21b66e;}['getDescriptions'](_0x420b93){const _0x4a2958=[],_0x3084d9=new Set(),_0x222226=new Set();for(let _0x4da4e0=0x0;_0x4da4e0<_0x420b93['length'];_0x4da4e0++){const _0x4a80dd=_0x420b93[_0x4da4e0];if(!_0x4a80dd['isInContent'])continue;const _0x1b6a6e=this['_handleCustomCallbackDescription'](_0x4a80dd);if(_0x1b6a6e){if(null!=_0x4a80dd['subType']){if(_0x3084d9['has'](_0x4a80dd['subType']))continue;_0x3084d9['add'](_0x4a80dd['subType']);}_0x4a2958['push'](_0x1b6a6e);}else{if('attribute'!=_0x4a80dd['type'])'insertion'!=_0x4a80dd['type']&&'deletion'!=_0x4a80dd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4a2958,_0x4a80dd,_0x420b93[_0x4da4e0+0x1]);else{const _0x44e8d5=_0x4a80dd['data']['key'];if(_0x222226['has'](_0x44e8d5))continue;_0x222226['add'](_0x4a80dd['data']['key']),_0x44e8d5==u?this['_handleRenameSuggestionDescription'](_0x4a2958,_0x4a80dd):this['_handleAttributeSuggestionDescription'](_0x4a2958,_0x4a80dd);}}}return this['_resolveDescriptionItems'](_0x4a2958);}['registerDescriptionCallback'](_0x2485a5){this['_customCallbacks']['push'](_0x2485a5);}['registerElementLabel'](_0x37e901,_0x3028a2,_0x1d081f=_0x1e4238['normal']){'function'==typeof _0x37e901?_0x5a9994(this['_itemLabelsCallbacks'],{'matchingCallback':_0x37e901,'label':_0x3028a2,'priority':_0x1d081f}):this['_itemLabels']['set'](_0x37e901,_0x3028a2);}['registerAttributeLabel'](_0x1b4b77,_0x4c3b59){this['_attributeLabels']['set'](_0x1b4b77,_0x4c3b59);}['getItemLabel'](_0x18b73f,_0x4a5964=0x1){let _0x3dce12;for(const _0x35a45f of this['_itemLabelsCallbacks'])if(_0x35a45f['matchingCallback'](_0x18b73f)){_0x3dce12=_0x35a45f['label'];break;}return _0x3dce12||(_0x3dce12=this['_itemLabels']['get'](_0x18b73f['name'])),_0x3dce12?_0x3dce12(_0x4a5964):0x1!==_0x4a5964?_0x4a5964+'\x20'+_0x18b73f['name']+'s':''+_0x18b73f['name'];}['_addDescriptionItems'](_0x2ef9ae,_0x688644){const _0x40a8b4=_0x688644['getFirstRange']()['getWalker'](),_0x1ea5be='insertion'==_0x688644['type']?'add':'remove';for(const _0x45ebba of _0x40a8b4){const _0x205692=_0x45ebba['item'],_0x2e16ee=_0x2ef9ae[_0x2ef9ae['length']-0x1];if(_0x205692['is']('$textProxy'))_0x2e16ee&&_0x2e16ee['type']['indexOf']('Container')>-0x1&&_0x2ef9ae['pop'](),_0x2e16ee&&'text'==_0x2e16ee['type']?_0x2e16ee[_0x1ea5be]+=_0x205692['data']:_0x2ef9ae['push']({'type':'text','add':'add'==_0x1ea5be?_0x205692['data']:'','remove':'remove'==_0x1ea5be?_0x205692['data']:''});else{if(this['_schema']['isObject'](_0x205692)){const _0x562cea=_0x205692;if(_0x2e16ee&&_0x2e16ee['type']['indexOf']('Container')>-0x1&&_0x2ef9ae['pop'](),'elementEnd'==_0x45ebba['type'])continue;_0x2e16ee&&_0x2e16ee['type']==_0x1ea5be+'Object'&&_0x2e16ee['element']['name']==_0x562cea['name']?_0x2e16ee['quantity']++:_0x2ef9ae['push']({'type':_0x1ea5be+'Object','element':_0x562cea,'quantity':0x1}),_0x40a8b4['skip'](_0x4253e2=>!('elementEnd'==_0x4253e2['type']&&_0x4253e2['item']==_0x205692));}else{if(this['_schema']['checkChild'](_0x205692,'$text')||_0x205692['is']('element','softBreak')){const _0x4b2b4d=_0x205692;if('add'==_0x1ea5be&&'elementStart'==_0x45ebba['type']||'remove'==_0x1ea5be&&'elementEnd'==_0x45ebba['type'])continue;if(_0x2e16ee&&-0x1==_0x2e16ee['type']['indexOf']('Container')){'text'==_0x2e16ee['type']&&(_0x2e16ee[_0x1ea5be]+='\x0a');continue;}let _0x33a698;if(_0x33a698='add'==_0x1ea5be?_0x4b2b4d['nextSibling']&&!this['_schema']['isObject'](_0x4b2b4d['nextSibling'])?_0x4b2b4d['nextSibling']:null:_0x4b2b4d['previousSibling']&&!this['_schema']['isObject'](_0x4b2b4d['previousSibling'])?_0x4b2b4d['previousSibling']:null,_0x4b2b4d['isEmpty']||_0x33a698&&_0x33a698['isEmpty']){const _0x1bfc88=_0x33a698&&_0x33a698['isEmpty']?_0x33a698:_0x4b2b4d;_0x2e16ee&&_0x2e16ee['type']==_0x1ea5be+'EmptyContainer'&&_0x2e16ee['element']['name']==_0x1bfc88['name']?_0x2e16ee['quantity']++:_0x2ef9ae['push']({'type':_0x1ea5be+'EmptyContainer','element':_0x1bfc88,'quantity':0x1});}else _0x2ef9ae['push']({'type':_0x1ea5be+'Container','element':_0x4b2b4d});}}}}}['_resolveDescriptionItems'](_0x10a6de){const _0xe394=this['_locale'],_0x13d425=[],_0x18967d=[],_0x502a60=[];for(const _0x184305 of _0x10a6de)switch(_0x184305['type']){case'text':if(_0x184305['add']=_0x184305['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x184305['remove']=_0x184305['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x184305['add']&&''!=_0x184305['remove']){_0x13d425['push']({'type':'replace','content':c(_0xe394,'REPLACE_TEXT',['\x22'+_0x184305['remove']+'\x22','\x22'+_0x184305['add']+'\x22'])});continue;}if(null!=_0x184305['add']['match'](/^ +$/)){_0x13d425['push']({'type':'insertion','content':c(_0xe394,'*Insert:*\x20%0',c(_0xe394,'ELEMENT_SPACE',_0x184305['add']['length']))});continue;}if(null!=_0x184305['remove']['match'](/^ +$/)){_0x13d425['push']({'type':'deletion','content':c(_0xe394,'*Remove:*\x20%0',c(_0xe394,'ELEMENT_SPACE',_0x184305['remove']['length']))});continue;}if(''!=_0x184305['add']){_0x13d425['push']({'type':'insertion','content':c(_0xe394,'*Insert:*\x20%0','\x22'+_0x184305['add']+'\x22')});continue;}_0x13d425['push']({'type':'deletion','content':c(_0xe394,'*Remove:*\x20%0','\x22'+_0x184305['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x13d425['push']({'type':'insertion','content':c(_0xe394,'*Insert:*\x20%0',this['getItemLabel'](_0x184305['element'],_0x184305['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x13d425['push']({'type':'deletion','content':c(_0xe394,'*Remove:*\x20%0',this['getItemLabel'](_0x184305['element'],_0x184305['quantity']))});continue;case'addContainer':_0x13d425['push']({'type':'insertion','content':c(_0xe394,'*Split:*\x20%0',this['getItemLabel'](_0x184305['element'],_0x184305['quantity']))});continue;case'removeContainer':_0x13d425['push']({'type':'deletion','content':c(_0xe394,'*Merge:*\x20%0',this['getItemLabel'](_0x184305['element'],_0x184305['quantity']))});continue;case'addFormat':_0x18967d['push'](_0x184305['key']);continue;case'removeFormat':_0x502a60['push'](_0x184305['key']);continue;default:_0x13d425['push'](_0x184305);}if(_0x18967d['length']){const _0x3dea02=_0x18967d['map'](_0x1809a9=>this['_attributeLabels']['has'](_0x1809a9)?this['_attributeLabels']['get'](_0x1809a9):_0x1809a9)['join'](',\x20');_0x13d425['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x3dea02)});}if(_0x502a60['length']){const _0x51071d=_0x502a60['map'](_0x34d7f2=>this['_attributeLabels']['has'](_0x34d7f2)?this['_attributeLabels']['get'](_0x34d7f2):_0x34d7f2)['join'](',\x20');_0x13d425['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x51071d)});}return _0x13d425;}['_handleCustomCallbackDescription'](_0x1a3ed3){for(const _0x5ec321 of this['_customCallbacks']){const _0x358806=_0x5ec321(_0x1a3ed3);if(_0x358806&&'type'in _0x358806)return _0x358806;}}['_handleAttributeSuggestionDescription'](_0x31e52b,_0xc89dae){const _0x275d99=_0xc89dae['data'],_0x4fbe28=void 0x0===_0x275d99['newValue']?'removeFormat':'addFormat';_0x31e52b['push']({'type':_0x4fbe28,'key':_0x275d99['key']});}['_handleRenameSuggestionDescription'](_0x5cf81e,_0x321424){_0x5cf81e['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x321424['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1803b4,_0x2f4139,_0x45d7eb){if(this['_addDescriptionItems'](_0x1803b4,_0x2f4139),_0x45d7eb&&_0x45d7eb['getFirstRange']()&&!_0x2f4139['getFirstRange']()['end']['isEqual'](_0x45d7eb['getFirstRange']()['start'])){const _0x3ff7a0=_0x1803b4[_0x1803b4['length']-0x1],_0x2a14c8='insertion'==_0x2f4139['type']?'add':'remove';_0x3ff7a0&&'text'==_0x3ff7a0['type']&&(_0x3ff7a0[_0x2a14c8]+='\x0a');}}}class U extends _0xc188f5{['afterInit'](){const _0x2c24ca=this['editor'],_0x2394f8=_0x2c24ca['plugins']['get']('TrackChangesEditing');_0x2c24ca['commands']['get']('showAIAssistant')&&_0x2394f8['enableCommand']('showAIAssistant');}}class V extends _0xc188f5{['afterInit'](){const _0x4eb238=this['editor'],_0x53a721=_0x4eb238['locale'];if(!_0x4eb238['plugins']['has']('AlignmentEditing'))return;const _0x3698d5=_0x4eb238['plugins']['get']('TrackChangesEditing');_0x3698d5['enableDefaultAttributesIntegration']('alignment'),_0x3698d5['registerBlockAttribute']('alignment'),_0x3698d5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x53a721,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x573133=this['editor'],_0x49d072=_0x573133['locale'];_0x573133['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a70e0=>{if('formatBlock'!=_0x2a70e0['type'])return;const {data:_0xea2c03}=_0x2a70e0;if(_0xea2c03&&'alignment'==_0xea2c03['commandName']){const _0x35fd65=_0xea2c03['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x49d072,'*Format:*\x20%0',function(_0x37672b){switch(_0x37672b){case'left':return c(_0x49d072,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x49d072,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x49d072,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x49d072,'FORMAT_JUSTIFY_TEXT');}}(_0x35fd65))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0xc188f5{['afterInit'](){const _0x3fd46e=this['editor'],_0x2989d0=_0x3fd46e['plugins']['get']('TrackChangesEditing'),_0x2b5691=_0x3fd46e['locale'];for(const _0x1959b7 of Zt){if(!_0x3fd46e['plugins']['has'](_0x1959b7))continue;const _0xa9d2a7=_0x1959b7['slice'](0x0,-0x7)['toLowerCase'](),_0x60efe0='FORMAT_'+_0xa9d2a7['toUpperCase']();_0x2989d0['enableDefaultAttributesIntegration'](_0xa9d2a7),_0x2989d0['registerInlineAttribute'](_0xa9d2a7),_0x2989d0['descriptionFactory']['registerAttributeLabel'](_0xa9d2a7,c(_0x2b5691,_0x60efe0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9ae0a7=this['editor'],_0x2f75f2=_0x9ae0a7['locale'],_0x1fcc11=_0x9ae0a7['plugins']['get']('TrackChangesEditing');function _0x3a6d72(_0x262a7d,_0x561fc0){_0x1fcc11['descriptionFactory']['registerDescriptionCallback'](_0x519bb4=>{if('formatInline'!=_0x519bb4['type'])return;const {data:_0x57dcc3}=_0x519bb4;return _0x57dcc3&&_0x57dcc3['commandName']===_0x262a7d?_0x57dcc3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2f75f2,'*Format:*\x20%0',_0x561fc0)}:{'type':'format','content':c(_0x2f75f2,'*Remove\x20format:*\x20%0',_0x561fc0)}:void 0x0;});}_0x3a6d72('bold',c(_0x2f75f2,'FORMAT_BOLD')),_0x3a6d72('italic',c(_0x2f75f2,'FORMAT_ITALIC')),_0x3a6d72('underline',c(_0x2f75f2,'FORMAT_UNDERLINE')),_0x3a6d72('code',c(_0x2f75f2,'FORMAT_CODE')),_0x3a6d72('strikethrough',c(_0x2f75f2,'FORMAT_STRIKETHROUGH')),_0x3a6d72('subscript',c(_0x2f75f2,'FORMAT_SUBSCRIPT')),_0x3a6d72('superscript',c(_0x2f75f2,'FORMAT_SUPERSCRIPT'));}}class G extends _0xc188f5{['afterInit'](){const _0xbce1b9=this['editor'],_0x3c8d66=_0xbce1b9['locale'];if(!_0xbce1b9['plugins']['has']('BlockQuoteEditing'))return;const _0x2e64bf=_0xbce1b9['plugins']['get']('TrackChangesEditing'),_0x133ba1=this['editor']['commands']['get']('blockQuote');_0x2e64bf['enableCommand']('blockQuote',(_0x4602fc,_0x2064f5={})=>{const _0x7edd9e=this['editor']['model']['document']['selection'],_0x3f6c0f=_0x2064f5&&void 0x0!==_0x2064f5['forceValue']?_0x2064f5['forceValue']:!_0x133ba1['value'];let _0x2cb33d=[];if(_0x3f6c0f){const _0x480370=Array['from'](_0x7edd9e['getSelectedBlocks']())['filter'](_0x47a224=>oo(_0x47a224)||function(_0x3f3c5c,_0xf4c8b9){const _0x7bd162=_0xf4c8b9['checkChild'](_0x3f3c5c['parent'],'blockQuote'),_0x2114ac=_0xf4c8b9['checkChild'](['$root','blockQuote'],_0x3f3c5c);return _0x7bd162&&_0x2114ac;}(_0x47a224,this['editor']['model']['schema']));_0x2cb33d=to(_0x480370,_0xbce1b9['model']);}else{const _0x8285f1=Array['from'](_0x7edd9e['getSelectedBlocks']())['filter'](_0x5255d7=>oo(_0x5255d7));_0x2cb33d=to(_0x8285f1,_0xbce1b9['model']);}_0xbce1b9['model']['change'](()=>{for(const _0x445797 of _0x2cb33d)_0x2e64bf['markBlockFormat'](_0x445797,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f6c0f}]});});}),_0x2e64bf['descriptionFactory']['registerDescriptionCallback'](_0x1e2406=>{const {data:_0x3d4735}=_0x1e2406;if(_0x3d4735&&'blockQuote'==_0x3d4735['commandName']){const _0x573cfe=c(_0x3c8d66,'ELEMENT_BLOCK_QUOTE');return _0x3d4735['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3c8d66,'*Set\x20format:*\x20%0',_0x573cfe)}:{'type':'format','content':c(_0x3c8d66,'*Remove\x20format:*\x20%0',_0x573cfe)};}});}}function oo(_0x2bcee1){return'blockQuote'==_0x2bcee1['parent']['name'];}class L extends _0xc188f5{['afterInit'](){const _0x548196=this['editor'],_0x12c119=_0x548196['locale'],_0x3d396a=_0x548196['plugins']['get']('TrackChangesEditing');_0x548196['plugins']['has']('BookmarkEditing')&&(_0x3d396a['enableCommand']('insertBookmark'),_0x3d396a['enableDefaultAttributesIntegration']('updateBookmark'),_0x3d396a['registerBlockAttribute']('bookmarkId'),_0x3d396a['descriptionFactory']['registerDescriptionCallback'](_0x1c2e49=>{if('insertion'!=_0x1c2e49['type']&&'deletion'!=_0x1c2e49['type']&&'attribute'!=_0x1c2e49['type'])return;const _0x51c4c1=_0x1c2e49['getContainedElement']();if(null==_0x51c4c1)return;if(!_0x51c4c1['is']('element','bookmark'))return;const _0x3581d1=_0x51c4c1['getAttribute']('bookmarkId');if('insertion'==_0x1c2e49['type'])return{'type':'insertion','content':c(_0x12c119,'*Insert:*\x20%0','\x22'+_0x3581d1+'\x22\x20'+c(_0x12c119,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1c2e49['type'])return{'type':'deletion','content':c(_0x12c119,'*Remove:*\x20%0','\x22'+_0x3581d1+'\x22\x20'+c(_0x12c119,'ELEMENT_BOOKMARK'))};const {data:_0x37f359}=_0x1c2e49;if(!_0x37f359||'bookmarkId'!=_0x37f359['key'])return;return{'type':'format','content':c(_0x12c119,'*Set\x20bookmark:*\x20%0','\x22'+_0x37f359['newValue']+'\x22')};}));}}class J extends _0xc188f5{['afterInit'](){const _0x1362a0=this['editor'];_0x1362a0['plugins']['has']('CaseChange')&&(_0x1362a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1362a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1362a0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0xc188f5{['afterInit'](){const _0xaaee96=this['editor'];_0xaaee96['commands']['get']('ckbox')&&_0xaaee96['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0xc188f5{['afterInit'](){const _0x32161a=this['editor'];if(!_0x32161a['plugins']['has']('CodeBlock'))return;const _0x4d87c6=_0x32161a['plugins']['get']('TrackChangesEditing'),_0x53ed11=_0x32161a['locale'],_0x365946=_0x32161a['config']['get']('codeBlock')['languages'],_0x23c684=_0x32161a['commands']['get']('codeBlock');_0x4d87c6['enableCommand']('indentCodeBlock'),_0x4d87c6['enableCommand']('outdentCodeBlock'),_0x4d87c6['enableCommand']('codeBlock',(_0x54b2df,_0x7916f={})=>{const _0x5a5bc0=_0x32161a['model'],_0x16f88e=_0x32161a['model']['document']['selection'],_0x254b69=_0x7916f&&void 0x0!==_0x7916f['forceValue']?_0x7916f['forceValue']:!_0x23c684['value'];let _0x3753f6;_0x7916f['language']||(_0x7916f['language']=_0x365946[0x0]['language']),_0x3753f6=_0x254b69?Array['from'](_0x16f88e['getSelectedBlocks']())['filter'](_0x2b83ab=>eo(_0x2b83ab)||function(_0x2917a3,_0x382474){if(_0x2917a3['is']('rootElement')||_0x382474['isLimit'](_0x2917a3))return!0x1;return _0x382474['checkChild'](_0x2917a3['parent'],'codeBlock');}(_0x2b83ab,_0x5a5bc0['schema'])):Array['from'](_0x16f88e['getSelectedBlocks']())['filter'](_0x7f4025=>eo(_0x7f4025));const _0x273f38=to(_0x3753f6,_0x5a5bc0);_0x5a5bc0['change'](()=>{for(const _0xf0550a of _0x273f38)_0x4d87c6['markBlockFormat'](_0xf0550a,{'commandName':'codeBlock','commandParams':[{..._0x7916f,'forceValue':_0x254b69}],'formatGroupId':'blockName'});});}),(_0x4d87c6['descriptionFactory']['registerElementLabel']('codeBlock',_0x4339b6=>c(_0x53ed11,'ELEMENT_CODE_BLOCK',_0x4339b6)),_0x4d87c6['descriptionFactory']['registerDescriptionCallback'](_0x4e0e3f=>{if('formatBlock'!=_0x4e0e3f['type'])return;const _0x1ddc2a=_0x53ed11['t'],{data:_0x20c43b}=_0x4e0e3f;if(!_0x20c43b||'codeBlock'!=_0x20c43b['commandName'])return;const _0x2ae8cb=_0x20c43b['commandParams'][0x0]['language'],_0x135764=_0x1ddc2a(_0x365946['find'](_0x106475=>_0x106475['language']===_0x2ae8cb)['label'])['toLowerCase']();return _0x20c43b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x53ed11,'*Set\x20format:*\x20%0',c(_0x53ed11,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x135764+')')}:{'type':'format','content':c(_0x53ed11,'*Remove\x20format:*\x20%0',c(_0x53ed11,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3f73c4){return'codeBlock'==_0x3f73c4['name'];}class q extends _0xc188f5{['afterInit'](){const _0x28eafc=this['editor'];if(!_0x28eafc['plugins']['has']('CommentsEditing'))return;_0x28eafc['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xc89e61,_0xa41465,_0x47f7ae){const _0x203c37=[];for(const _0x21cd43 of _0xa41465['getItems']())_0x21cd43['hasAttribute'](_0xc89e61)&&_0x203c37['push'](_0x47f7ae['createRangeOn'](_0x21cd43));return _0x203c37;}function Fe(_0xbfca8,_0x421d08,{showActiveMarker:_0x4078ac=!0x0}={}){const _0x89289a=_0xbfca8['plugins']['get']('TrackChangesEditing');return(_0x2a7077,_0x3c18ee,_0x362e77)=>{if(!_0x362e77['consumable']['test'](_0x3c18ee['markerRange'],_0x2a7077['name']))return;const _0x3f5f36=_0x3c18ee['markerRange']['getWalker'](),_0x2580bc=_0x3c18ee['markerRange']['start'],_0x15828d=_0xbfca8['model']['schema'];let _0x2697f0=null,_0x4e41b8=null,_0xe115e7=!0x1,_0x38a82f=!0x1;for(const _0x415272 of _0x3f5f36){const _0x1c5992=_0x415272['item'];_0xe115e7=_0xe115e7||_0x15828d['isContent'](_0x1c5992);const _0xa4f54=_0x362e77['mapper']['toViewElement'](_0x1c5992);if(_0xa4f54&&_0xa4f54['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x415272['type']&&(_0x15828d['isBlock'](_0x1c5992)&&!_0x15828d['isLimit'](_0x1c5992)&&(_0x1c5992['nextSibling']||_0x2580bc['isAtEnd']?_0x2697f0&&_0x2697f0['parent']==_0x1c5992||(_0x2697f0=_0x1c5992,_0x21b6dc(_0x415272['previousPosition']),_0x38a82f=!0x0):_0x4e41b8=_0x4e41b8||_0x415272['previousPosition']));}function _0x21b6dc(_0x4cb35a){const {authorId:_0xa613d4}=_0x89289a['_splitMarkerName'](_0x3c18ee['markerName']),_0x7f29aa=_0x362e77['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x421d08,'data-author-id':_0xa613d4}),_0x50a111=_0x362e77['mapper']['toViewPosition'](_0x4cb35a);_0x4078ac&&_0x89289a['activeMarkers']['includes'](_0x3c18ee['markerName'])&&_0x362e77['writer']['addClass']('ck-suggestion-marker--active',_0x7f29aa),_0x362e77['writer']['insert'](_0x50a111,_0x7f29aa),_0x362e77['mapper']['bindElementToMarker'](_0x7f29aa,_0x3c18ee['markerName']);}_0xe115e7||_0x38a82f||!_0x4e41b8||_0x21b6dc(_0x4e41b8);};}class z extends _0xc188f5{static get['requires'](){return[_0x11ae3c];}['init'](){const _0x28870e=this['editor'],_0x57686d=_0x28870e['plugins']['get']('TrackChangesEditing');_0x57686d['enableCommand']('delete');const _0x14b439=_0x28870e['commands']['get']('deleteForward');_0x57686d['enableCommand']('deleteForward',(_0x27d9ee,_0x27d263={})=>{const _0x355e58=_0x28870e['model']['createSelection'](_0x28870e['model']['document']['selection']);_0x355e58['isCollapsed']&&_0x28870e['model']['modifySelection'](_0x355e58,{'direction':'forward','unit':_0x27d263['unit']});const _0x24ed51=_0x355e58['getFirstRange'](),_0xa29b90=_0x27d8bc['fromRange'](_0x24ed51);let _0x465599;_0x27d9ee(_0x27d263),_0x465599='$graveyard'==_0xa29b90['root']['rootName']?_0x28870e['model']['createRange'](_0x24ed51['start']):_0x28870e['model']['createRange'](_0xa29b90['start'],_0xa29b90['end']),_0xa29b90['detach'](),_0x28870e['model']['enqueueChange'](_0x14b439['buffer']['batch'],_0x530d5c=>{_0x14b439['buffer']['lock'](),_0x530d5c['setSelection'](_0x530d5c['createRange'](_0x465599['end'])),_0x14b439['buffer']['unlock']();});}),_0x28870e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x28870e,'merge'),{'priority':'high'}),_0x28870e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4ee053,_0x5609bf,_0x4bbc29)=>{_0x4bbc29['options']['showSuggestionHighlights']&&Fe(_0x28870e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4ee053,_0x5609bf,_0x4bbc29);},{'priority':'high'}),_0x28870e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x136288,_0x21038c,_0x4f2189)=>{const _0x275e06=_0x4f2189['mapper']['markerNameToElements'](_0x21038c['markerName']);if(_0x275e06){for(const _0x52c3b0 of _0x275e06)_0x52c3b0['is']('uiElement')&&(_0x4f2189['mapper']['unbindElementFromMarkerName'](_0x52c3b0,_0x21038c['markerName']),_0x4f2189['writer']['remove'](_0x52c3b0));}},{'priority':'high'});}}class W extends _0xc188f5{['afterInit'](){const _0x3c2197=this['editor'];if(!_0x3c2197['plugins']['has']('ListEditing'))return;const _0x53eaa9=_0x3c2197['locale'],_0x3e61c6=_0x3c2197['plugins']['get']('TrackChangesEditing'),_0x159c79=_0x3c2197['plugins']['has']('TodoListEditing'),_0x1e5f33=!!_0x3c2197['config']['get']('list.multiBlock');function _0x2e97bf(_0x31a204){return{'type':'format','content':''+c(_0x53eaa9,'*Set\x20format:*\x20%0',_0x31a204)};}function _0x12d476(_0x11fcac){return{'type':'format','content':''+c(_0x53eaa9,'*Remove\x20format:*\x20%0',_0x11fcac)};}_0x3e61c6['enableDefaultAttributesIntegration']('numberedList'),_0x3e61c6['enableDefaultAttributesIntegration']('bulletedList'),_0x3e61c6['enableDefaultAttributesIntegration']('customNumberedList'),_0x3e61c6['enableDefaultAttributesIntegration']('customBulletedList'),_0x3e61c6['enableDefaultAttributesIntegration']('indentList'),_0x3e61c6['enableDefaultAttributesIntegration']('outdentList'),_0x3e61c6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3e61c6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3e61c6['registerBlockAttribute']('listItemId'),_0x3e61c6['registerBlockAttribute']('listType'),_0x3e61c6['registerBlockAttribute']('listIndent'),_0x1e5f33&&(_0x3e61c6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3e61c6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x159c79&&(_0x3e61c6['enableDefaultAttributesIntegration']('todoList'),_0x3e61c6['enableDefaultAttributesIntegration']('checkTodoList'),_0x3e61c6['registerBlockAttribute']('todoListChecked'),_0x3e61c6['descriptionFactory']['registerDescriptionCallback'](_0x100012=>{const {data:_0x20633a}=_0x100012;if(_0x20633a&&'todoListChecked'==_0x20633a['key'])return{'type':'format','content':_0x20633a['newValue']?c(_0x53eaa9,'*Check\x20item*'):c(_0x53eaa9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x28caae=>{if(_0x28caae['batch']['isUndo'])return!0x1;let _0x526db6=!0x1;const _0x282683=_0x3e61c6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d5a1b=>'todoListChecked'===_0x3e61c6['_getAttributeKey'](_0x3d5a1b));for(const _0xa06469 of _0x282683){'todo'!=_0xa06469['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3e61c6['_findSuggestions'](_0xa06469['getFirstRange'](),'attribute')['find'](_0x2b006b=>'listType'===_0x3e61c6['_getAttributeKey'](_0x2b006b['suggestion']))||(_0x28caae['removeMarker'](_0xa06469['getFirstMarker']()),_0x526db6=!0x0));}return _0x526db6;})),_0x3e61c6['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x53eaa9,'FORMAT_INDENT'));const _0x20e732={'type':'format','content':''};_0x3e61c6['descriptionFactory']['registerDescriptionCallback'](_0xe655db=>{const {data:_0x101c3c}=_0xe655db;if(!_0x101c3c||'listType'!=_0x101c3c['key'])return;let _0x53801=_0xe655db['head'];for(;_0x53801;){if(_0x53801['data']&&(('listStyle'==_0x53801['data']['key']||'listMarkerStyle'==_0x53801['data']['key'])&&(_0x53801['data']['newValue']&&'default'!=_0x53801['data']['newValue']||'default'!=_0x53801['data']['oldValue']&&!_0x101c3c['newValue'])||!_0x1e5f33&&_0x53801['data']['key']==u))return _0x20e732;_0x53801=_0x53801['next'];}if(null==_0x101c3c['newValue'])switch(_0x101c3c['oldValue']){case'bulleted':return _0x12d476(c(_0x53eaa9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12d476(c(_0x53eaa9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12d476(c(_0x53eaa9,'ELEMENT_TODO_LIST'));}switch(_0x101c3c['newValue']){case'bulleted':return _0x2e97bf(c(_0x53eaa9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e97bf(c(_0x53eaa9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e97bf(c(_0x53eaa9,'ELEMENT_TODO_LIST'));}}),_0x3e61c6['descriptionFactory']['registerDescriptionCallback'](_0x7897aa=>{const {data:_0x483757}=_0x7897aa;if(_0x483757&&'listIndent'==_0x483757['key'])return null==_0x483757['newValue']||null==_0x483757['oldValue']&&0x0==_0x483757['newValue']?_0x20e732:void 0x0;}),_0x3e61c6['descriptionFactory']['registerDescriptionCallback'](_0xef6e6f=>{if('attribute'!=_0xef6e6f['type'])return;const {data:_0x12d29e}=_0xef6e6f;if(!_0x12d29e||'listItemId'!=_0x12d29e['key'])return;const _0x57df23=Te(_0xef6e6f);return'newValue'==_0x57df23?{'type':'format','content':c(_0x53eaa9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x57df23?{'type':'format','content':c(_0x53eaa9,'*Split:*\x20list\x20item')}:_0x20e732;}),_0x3c2197['model']['document']['registerPostFixer'](_0x5574c6=>this['listItemIdFixer'](_0x5574c6)),_0x3c2197['model']['document']['registerPostFixer'](_0x3988a=>this['noTrackChangesFixer'](_0x3988a)),_0x3c2197['model']['document']['on']('change:data',(_0x4ffa4b,_0x3c45e3)=>{if(_0x3c45e3['isUndo']||!_0x3c45e3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4a55b9){if(_0x4a55b9['batch']['isUndo']||!_0x4a55b9['batch']['isLocal'])return!0x1;let _0x19bac5=!0x1;const _0x6cdc75=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33b963=>_0x33b963['data']&&'listItemId'==_0x33b963['data']['key'])['filter'](_0x433935=>_0x433935['data']['newValue']&&_0x433935['data']['oldValue']);for(const _0x1a4967 of _0x6cdc75)Te(_0x1a4967)||(_0x4a55b9['removeMarker'](_0x1a4967['getFirstMarker']()),_0x19bac5=!0x0);return _0x19bac5;}['noTrackChangesFixer'](_0x3b00f4){if(_0x3b00f4['batch']['isUndo']||!_0x3b00f4['batch']['isLocal'])return!0x1;const _0xab65b4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xab65b4['trackChangesCommand']['value'])return!0x1;let _0x3f420e=!0x1;const _0x558fcf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3f100e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x306592=>'attribute'==_0x306592['type'])['filter'](_0xa87211=>_0x558fcf['includes'](_0xa87211['attributeKey']));if(0x0==_0x3f100e['length'])return _0x3f420e;for(const _0x2d0175 of _0x3f100e){const _0x15a700=_0xab65b4['_findSuggestions'](_0x2d0175['range'],'attribute')['filter'](_0x2ee795=>!_0x2ee795['meta']['isNextTo'])['map'](_0x17e724=>_0x17e724['suggestion'])['filter'](_0x4a5b2e=>{const _0x385af2=_0xab65b4['_getAttributeKey'](_0x4a5b2e);return _0x558fcf['includes'](_0x385af2);});if(_0x15a700['length']){for(const _0x5779ad of _0x15a700)_0x3b00f4['removeMarker'](_0x5779ad['getFirstMarker']());_0x3f420e=!0x0;}}return _0x3f420e;}['assureChains'](){const _0x53f115=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d73c7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x35ea77;const _0x3b77fc=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x47f16b=>{if(_0x47f16b['data']['oldRange']||!_0x47f16b['data']['newRange'])return null;if(!_0x47f16b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x135d72}=_0x53f115['_splitMarkerName'](_0x47f16b['name']);if(!_0x53f115['hasSuggestion'](_0x135d72))return null;const _0x48f37b=_0x53f115['getSuggestion'](_0x135d72);return _0x5d73c7['includes'](_0x48f37b['data']['key']);})['map'](_0x18eb69=>{const {id:_0x3f237b}=_0x53f115['_splitMarkerName'](_0x18eb69['name']),_0x5f2064=_0x53f115['getSuggestion'](_0x3f237b);return _0x35ea77=_0x5f2064['attributes']['groupId'],_0x5f2064['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3b77fc['size'])return;const _0x42c2bf=_0x53f115['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb55518=>'attribute'==_0xb55518['type']&&_0xb55518['data']&&_0x5d73c7['includes'](_0xb55518['data']['key'])&&_0xb55518['attributes']['groupId']!=_0x35ea77)['map'](_0x396606=>({'listItem':_0x396606['getFirstRange']()['start']['nodeAfter'],'groupId':_0x396606['attributes']['groupId']})),_0x51a258=new Set();for(const {groupId:_0x1422ea,listItem:_0x277c6a}of _0x42c2bf)_0x3b77fc['has'](_0x277c6a)&&_0x51a258['add'](_0x1422ea);for(const _0x558ef1 of _0x53f115['getSuggestions']())_0x51a258['has'](_0x558ef1['attributes']['groupId'])&&_0x558ef1['setAttribute']('groupId',_0x35ea77);}['_supportLegacySuggestions'](){const _0x36c9f1=this['editor'],_0x10c852=_0x36c9f1['locale'],_0x2d28c8=_0x36c9f1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2d28c8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1f9388,_0x413030){const _0x33b100=[];for(let _0x3e2f98 of _0x1f9388)_0x3e2f98['start']['nodeAfter']===_0x3e2f98['end']['parent']&&(_0x3e2f98=_0x36c9f1['model']['createRange'](_0x36c9f1['model']['createPositionAt'](_0x3e2f98['start']['nodeAfter'],0x0))),_0x33b100['push'](_0x3e2f98);_0x36c9f1['model']['change'](_0x4fbb6d=>{const _0x1074eb=_0x36c9f1['model']['document']['selection'],_0x1f60ee=Array['from'](_0x1074eb['getRanges']())['map'](_0x1f8451=>_0x27d8bc['fromRange'](_0x1f8451));_0x4fbb6d['setSelection'](_0x33b100),_0x36c9f1['commands']['get'](_0x413030['commandName'])['refresh'](),_0x413030['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x36c9f1['execute'](_0x413030['commandName'],..._0x413030['commandParams']),_0x4fbb6d['setSelection'](_0x1f60ee);for(const _0x41cc51 of _0x1f60ee)_0x41cc51['detach']();});}),_0x2d28c8['descriptionFactory']['registerElementLabel'](function(_0x536298){const _0x13dce7=!_0x36c9f1['model']['schema']['isObject'](_0x536298),_0x37b51c=_0x536298['previousSibling'],_0x1bed10=_0x536298['nextSibling'],_0x9af842=_0x536298['getAttribute']('listItemId'),_0x5a0259=!_0x37b51c||_0x37b51c['getAttribute']('listItemId')!==_0x9af842,_0x16493a=!_0x1bed10||_0x1bed10['getAttribute']('listItemId')!==_0x9af842;return _0x13dce7&&Boolean(_0x9af842)&&_0x5a0259&&_0x16493a;},_0x559be2=>c(_0x10c852,'ELEMENT_LIST_ITEM',_0x559be2));}['_registerLegacyDescription'](){const _0x1416b0=this['editor'],_0xad515=_0x1416b0['locale'];function _0xef531e(_0x5bfba8){const _0x53ff6c=_0x1416b0['commands']['get']('bulletedList')['value'],_0x4f870b=_0x1416b0['commands']['get']('numberedList')['value'];return'numberedList'===_0x5bfba8?_0x53ff6c:_0x4f870b;}_0x1416b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2c3bf4){if('formatBlock'!=_0x2c3bf4['type'])return;const {data:_0x2dcbdd}=_0x2c3bf4;if(!_0x2dcbdd)return;let _0x370bce,_0x1c9a4a,_0x5c7253,_0x754c0c;switch(_0x2dcbdd['commandName']){case'bulletedList':_0x5c7253=_0x2dcbdd['commandParams'][0x0]['forceValue'],_0x754c0c=_0xef531e(_0x2dcbdd['commandName']),_0x370bce=_0x5c7253?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x754c0c&&_0x1416b0['config']['get']('list.multiBlock')||(_0x370bce='*Change\x20to:*\x20%0'),_0x1c9a4a={'type':'format','content':c(_0xad515,_0x370bce,c(_0xad515,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5c7253=_0x2dcbdd['commandParams'][0x0]['forceValue'],_0x754c0c=_0xef531e(_0x2dcbdd['commandName']),_0x370bce=_0x5c7253?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x754c0c&&_0x1416b0['config']['get']('list.multiBlock')||(_0x370bce='*Change\x20to:*\x20%0'),_0x1c9a4a={'type':'format','content':c(_0xad515,_0x370bce,c(_0xad515,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x370bce='*Indent:*\x20%0',_0x1c9a4a={'type':'format','content':c(_0xad515,_0x370bce,c(_0xad515,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x370bce=function(_0x11b214){const _0x2f4e45=_0x11b214['getFirstRange']();let _0x21823f=_0x2f4e45['start']['nodeAfter'];for(;_0x21823f&&_0x2f4e45['containsItem'](_0x21823f);){if(_0x21823f['getAttribute']('listIndent')>0x0)return!0x1;_0x21823f=_0x21823f['nextSibling'];}return!0x0;}(_0x2c3bf4)?c(_0xad515,'*Format:*\x20remove\x20from\x20%0',c(_0xad515,function(_0x56125f){return'ELEMENT_'+_0x56125f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2c3bf4))):c(_0xad515,'*Outdent:*\x20%0',c(_0xad515,'ELEMENT_LIST_ITEM')),_0x1c9a4a={'type':'format','content':_0x370bce};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2dcbdd['multipleBlocks']&&(_0x370bce='*Merge:*\x20%0',_0x1c9a4a={'type':'deletion','content':c(_0xad515,_0x370bce,c(_0xad515,'ELEMENT_LIST_ITEM'))});}return _0x1c9a4a;});}}function Te(_0x3bab03){let _0x39cd42=_0x3bab03['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x39cd42;){const _0x5e5b7b=_0x39cd42['getAttribute']('listItemId');if(!_0x5e5b7b)return!0x1;if(_0x5e5b7b==_0x3bab03['data']['newValue'])return'newValue';if(_0x5e5b7b==_0x3bab03['data']['oldValue'])return'oldValue';_0x39cd42=_0x39cd42['previousSibling'];}return!0x1;}class Se extends _0xc188f5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4f1d3b=this['editor']['config']['get']('list.properties'),_0x1153ab=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f1d3b['styles']&&(_0x1153ab['enableDefaultAttributesIntegration']('listStyle'),_0x1153ab['registerBlockAttribute']('listStyle')),_0x4f1d3b['reversed']&&(_0x1153ab['enableDefaultAttributesIntegration']('listReversed'),_0x1153ab['registerBlockAttribute']('listReversed')),_0x4f1d3b['startIndex']&&(_0x1153ab['enableDefaultAttributesIntegration']('listStart'),_0x1153ab['registerBlockAttribute']('listStart'));const _0x252079={'type':'format','content':''};_0x1153ab['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3a8a74=this['editor']['locale'];_0x1153ab['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3a8a74,'FORMAT_LIST_REVERSED')),_0x1153ab['descriptionFactory']['registerDescriptionCallback'](_0x29adfc=>{const {data:_0x11da31}=_0x29adfc;if(_0x11da31&&'listReversed'==_0x11da31['key'])return null==_0x11da31['newValue']||0x0==_0x11da31['newValue']&&null==_0x11da31['oldValue']?_0x252079:void 0x0;}),_0x1153ab['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3a8a74,'FORMAT_LIST_START')),_0x1153ab['descriptionFactory']['registerDescriptionCallback'](_0x180cde=>{const {data:_0x4d10e3}=_0x180cde;if(_0x4d10e3&&'listStart'==_0x4d10e3['key'])return null==_0x4d10e3['newValue']||0x1==_0x4d10e3['newValue']&&null==_0x4d10e3['oldValue']?_0x252079:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5d1a95=>{if(_0x5d1a95['batch']['isUndo'])return!0x1;let _0x5554e7=!0x1;const _0x2c7b66=_0x1153ab['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x157124=>{const _0x10e1a3=_0x1153ab['_getAttributeKey'](_0x157124);return'listStart'==_0x10e1a3||'listReversed'==_0x10e1a3;});for(const _0xf3d27c of _0x2c7b66){const _0xefec2=_0xf3d27c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xefec2||'customNumbered'==_0xefec2)continue;_0x1153ab['_findSuggestions'](_0xf3d27c['getFirstRange'](),'attribute')['find'](_0x6074e0=>'listType'==_0x1153ab['_getAttributeKey'](_0x6074e0['suggestion']))||(_0x5d1a95['removeMarker'](_0xf3d27c['getFirstMarker']()),_0x5554e7=!0x0);}return _0x5554e7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xa10a5d){const _0x290918=this['editor']['locale'],{data:_0x2d86be}=_0xa10a5d,_0x38a749={'type':'format','content':''};if(!_0x2d86be||'listStyle'!=_0x2d86be['key'])return;if(!_0x2d86be['oldValue'])return'default'==_0x2d86be['newValue']?_0x38a749:{'type':'format','content':''+c(_0x290918,'*Set\x20format:*\x20%0',c(_0x290918,this['_getTranslationKeyForListStyle'](_0x2d86be['newValue'])))};if(!_0x2d86be['newValue']){if('default'==_0x2d86be['oldValue'])return _0x38a749;let _0x21f6f5=_0xa10a5d['head'];for(;_0x21f6f5;){if(_0x21f6f5['data']&&'listType'==_0x21f6f5['data']['key']&&_0x21f6f5['data']['newValue'])return _0x38a749;_0x21f6f5=_0x21f6f5['next'];}return{'type':'format','content':''+c(_0x290918,'*Remove\x20format:*\x20%0',c(_0x290918,this['_getTranslationKeyForListStyle'](_0x2d86be['oldValue'])))};}if('default'!=_0x2d86be['newValue'])return{'type':'format','content':''+c(_0x290918,'*Set\x20format:*\x20%0',c(_0x290918,this['_getTranslationKeyForListStyle'](_0x2d86be['newValue'])))};let _0x59800d=_0xa10a5d['head'];for(;_0x59800d;){if(_0x59800d['data']&&'listType'==_0x59800d['data']['key']&&_0x59800d['data']['newValue']&&_0x59800d['data']['oldValue'])return _0x38a749;_0x59800d=_0x59800d['next'];}return{'type':'format','content':c(_0x290918,'*Set\x20format:*\x20%0',c(_0x290918,'ELEMENT_'+_0xa10a5d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x314ba3=this['editor'],_0x3e9760=_0x314ba3['locale'];_0x314ba3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd8ec=>{if('formatBlock'!=_0x1cd8ec['type'])return;const {data:_0x120385}=_0x1cd8ec;if(!_0x120385)return;let _0x9637b7,_0x28d008;switch(_0x120385['commandName']){case'listStyle':_0x9637b7='*Change\x20to:*\x20%0',_0x28d008={'type':'format','content':c(_0x3e9760,_0x9637b7,c(_0x3e9760,this['_getTranslationKeyForListStyle'](_0x120385['commandParams'][0x0]['type'])))};break;case'listReversed':_0x9637b7=_0x120385['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x28d008={'type':'format','content':c(_0x3e9760,_0x9637b7)};break;case'listStart':_0x9637b7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x28d008={'type':'format','content':c(_0x3e9760,_0x9637b7,_0x120385['commandParams'][0x0]['startIndex'])};}return _0x28d008;});}['_getTranslationKeyForListStyle'](_0x18e30e){return'ELEMENT_'+function(_0x56846c){if(_e['includes'](_0x56846c))return'bulleted';if(Re['includes'](_0x56846c))return'numbered';return null;}(_0x18e30e)['toUpperCase']()+'_LIST_'+_0x18e30e['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xc188f5{['afterInit'](){const _0x146cfc=this['editor'];_0x146cfc['commands']['get']('emoji')&&_0x146cfc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xc188f5{static get['requires'](){return[_0x271c2f];}['init'](){const _0x22c256=this['editor'],_0x5dd823=_0x22c256['plugins']['get']('TrackChangesEditing'),_0x2c8591=_0x22c256['commands']['get']('enter');_0x5dd823['enableCommand']('enter',()=>{_0x22c256['model']['change'](_0x484dd9=>{const _0x33ac37=_0x22c256['model']['document']['selection'],_0x481913=_0x33ac37['getFirstPosition'](),_0x1fbcd3=_0x27d8bc['fromRange'](_0x33ac37['getFirstRange']());if(_0x2c8591['enterBlock'](_0x484dd9)){const _0x1af6b5=_0x22c256['model']['createPositionAt'](_0x481913['parent']['nextSibling'],0x0),_0x5b687d=_0x484dd9['createRange'](_0x481913,_0x1af6b5);_0x5dd823['markInsertion'](_0x5b687d);}else _0x484dd9['setSelection'](_0x484dd9['createRange'](_0x1fbcd3['end']));_0x1fbcd3['detach'](),_0x2c8591['fire']('afterExecute',{'writer':_0x484dd9});});}),_0x22c256['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x22c256,'split'),{'priority':'high'}),_0x22c256['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c559f,_0x26ab62,_0xc1f360)=>{const _0x36999d=_0xc1f360['mapper']['markerNameToElements'](_0x26ab62['markerName']);if(_0x36999d){for(const _0x2bf500 of _0x36999d)_0x2bf500['hasClass']('ck-suggestion-marker-split')&&(_0xc1f360['mapper']['unbindElementFromMarkerName'](_0x2bf500,_0x26ab62['markerName']),_0xc1f360['writer']['remove'](_0x2bf500));}},{'priority':'high'}),_0x22c256['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1c272c,_0x4a7f7c,_0x51444f)=>{_0x51444f['options']['showSuggestionHighlights']&&Fe(_0x22c256,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1c272c,_0x4a7f7c,_0x51444f);},{'priority':'high'});}}class Z extends _0xc188f5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xdf4693=this['editor']['plugins']['get']('TrackChangesEditing');_0xdf4693['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xdf4693['enableCommand']('findNext'),_0xdf4693['enableCommand']('findPrevious'),_0xdf4693['enableCommand']('replace'),_0xdf4693['enableCommand']('replaceAll');}['handleFindCommand'](_0x26cd28,_0x3f770d,_0x1beadc={}){const _0x3882d7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26cd28(_0x26fee8=>{let _0x2dc6ff=('string'==typeof _0x3f770d?_0x3882d7['findByTextCallback'](_0x3f770d,_0x1beadc):_0x3f770d)(_0x26fee8);Array['isArray'](_0x2dc6ff)&&(_0x2dc6ff={'results':_0x2dc6ff,'searchText':'string'==typeof _0x3f770d?_0x3f770d:''});const _0x2ed002=_0x2dc6ff['results']['filter'](_0x10bb1d=>!0x1===this['_isInDeletionRange'](_0x10bb1d,_0x26fee8['item']));return{..._0x2dc6ff,'results':_0x2ed002};},_0x1beadc);}['_isInDeletionRange'](_0xb63fee,_0x549076){const _0x2c9a53=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x549076,_0xb63fee['start']),this['editor']['model']['createPositionAt'](_0x549076,_0xb63fee['end']));for(const _0x3ee79 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2c9a53['getIntersection'](_0x3ee79['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 _0xc188f5{['afterInit'](){const _0x30c6c8=this['editor']['locale'],_0x46faf2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x54cb5c,commandName:_0x3fd691}of ro)this['editor']['plugins']['has'](_0x54cb5c)&&(_0x46faf2['enableDefaultAttributesIntegration'](_0x3fd691),_0x46faf2['registerInlineAttribute'](_0x3fd691));_0x46faf2['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x30c6c8,'FORMAT_FONT_SIZE')),_0x46faf2['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x30c6c8,'FORMAT_FONT_FAMILY')),_0x46faf2['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x30c6c8,'FORMAT_FONT_COLOR')),_0x46faf2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x30c6c8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x227045=this['editor'],_0x27e90b=_0x227045['locale'];_0x227045['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x548f7f=>{const _0x39a061=_0x27e90b['t'];if('formatInline'!=_0x548f7f['type'])return;const {data:_0x27174a}=_0x548f7f;if(null!=_0x27174a){if('fontSize'==_0x27174a['commandName']){const _0x5f3fb6=_0x27174a['commandParams'][0x0]['value'];if(_0x5f3fb6){const _0x4f615a=_0x39a061(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x192d1d=>_0x192d1d['model']==_0x5f3fb6)['title'])['toLowerCase']();return{'type':'format','content':c(_0x27e90b,'*Set\x20font\x20size:*\x20%0',_0x4f615a)};}return{'type':'format','content':c(_0x27e90b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27174a['commandName']){const _0x2d3e23=_0x27174a['commandParams'][0x0]['value'];return _0x2d3e23?{'type':'format','content':c(_0x27e90b,'*Set\x20font\x20family:*\x20%0',_0x2d3e23)}:{'type':'format','content':c(_0x27e90b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27174a['commandName']){const _0x525a66=_0x27174a['commandParams'][0x0]['value'];if(_0x525a66){const _0xeb8255=_0x137a11(this['editor']['config']['get']('fontColor.colors'))['find'](_0x461bd9=>_0x461bd9['model']==_0x525a66);let _0x3aecfa=_0x525a66,_0x44f4cc='';return _0xeb8255&&(_0x3aecfa=_0xeb8255['label'],_0x44f4cc=_0x39a061(_0x3aecfa)['toLowerCase']()),{'type':'format','content':c(_0x27e90b,'*Set\x20font\x20color:*\x20%0',_0x44f4cc)['trim'](),'color':{'value':_0x525a66,'title':_0x44f4cc||_0x3aecfa}};}return{'type':'format','content':c(_0x27e90b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27174a['commandName']){const _0x107273=_0x27174a['commandParams'][0x0]['value'];if(_0x107273){const _0x352a35=_0x137a11(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2c9ce8=>_0x2c9ce8['model']==_0x107273);let _0x1dcfe4=_0x107273,_0x5bfdf6='';return _0x352a35&&(_0x1dcfe4=_0x352a35['label'],_0x5bfdf6=_0x39a061(_0x1dcfe4)['toLowerCase']()),{'type':'format','content':c(_0x27e90b,'*Set\x20font\x20background\x20color:*\x20%0',_0x5bfdf6)['trim'](),'color':{'value':_0x107273,'title':_0x5bfdf6||_0x1dcfe4}};}return{'type':'format','content':c(_0x27e90b,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0xc188f5{['afterInit'](){const _0x5444c1=this['editor'],_0x419044=_0x5444c1['plugins']['get']('TrackChangesEditing'),_0x2808c7=_0x5444c1['commands']['get']('copyFormat'),_0x1ead9e=_0x5444c1['commands']['get']('pasteFormat');_0x2808c7&&_0x1ead9e&&(_0x419044['enableDefaultAttributesIntegration']('pasteFormat'),_0x419044['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2e299a=this['editor'],_0x34f797=_0x2e299a['locale'];_0x2e299a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x219396=>{if('formatBlock'!=_0x219396['type']&&'formatInline'!=_0x219396['type'])return;const {data:_0x32dacd}=_0x219396;if(_0x32dacd&&'pasteFormat'===_0x32dacd['commandName']){const _0x2f403a=[],_0x3cb4c0=_0x32dacd['commandParams'][0x0];for(const [_0x5c4f94,_0x271939]of Object['entries'](_0x3cb4c0))_0x2f403a['push'](so(_0x2e299a,_0x5c4f94,_0x271939));return _0x2f403a['length']?{'type':'format','content':c(_0x34f797,'*Set\x20format\x20to:*\x20%0',_0x2f403a['join'](',\x20'))}:{'type':'format','content':c(_0x34f797,'*Remove\x20all\x20formatting*')};}});}}function so(_0x481efc,_0x164432,_0x22a881){const _0x3e579b=_0x481efc['locale']['t'],_0x458ad4=_0x164432['split'](/(?=[A-Z])/)['join']('\x20'),_0x4cb312=_0x3e579b(_0x458ad4['charAt'](0x0)['toUpperCase']()+_0x458ad4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x22a881)return _0x4cb312;if('fontColor'===_0x164432||'fontBackgroundColor'===_0x164432){const _0x3f62aa=_0x137a11(_0x481efc['config']['get']('fontColor.colors'))['find'](_0xba87e3=>_0xba87e3['model']==_0x22a881);return _0x4cb312+'\x20('+(_0x3f62aa?_0x3e579b(_0x3f62aa['label'])['toLowerCase']():_0x22a881)+')';}if('fontSize'===_0x164432&&isNaN(parseFloat(_0x22a881))){const _0x394db2=_0x481efc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x481efc['config']['get']('fontSize.options'))['find'](_0x2c3f66=>_0x2c3f66['model']==_0x22a881);return _0x4cb312+'\x20('+(_0x394db2?_0x3e579b(_0x394db2['title'])['toLowerCase']():_0x22a881)+')';}return _0x4cb312+'\x20('+_0x22a881+')';}class nt extends _0xc188f5{['_headingOptions'];['afterInit'](){const _0x5eb258=this['editor'];if(!_0x5eb258['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5eb258['config']['get']('heading.options');const _0x437c47=_0x5eb258['locale'],_0x531678=_0x5eb258['plugins']['get']('TrackChangesEditing');_0x531678['enableDefaultAttributesIntegration']('heading');for(const _0x2d3061 of this['_headingOptions'])'paragraph'!=_0x2d3061['model']&&_0x531678['descriptionFactory']['registerElementLabel'](_0x2d3061['model'],_0x223302=>{const _0x3e1819=this['_getHeadingLevel'](_0x2d3061['model']);return null!==_0x3e1819?_0x1bb3a7(_0x223302,_0x3e1819):_0x389563(_0x223302,_0x2d3061['title']);});function _0x1bb3a7(_0x14e5de,_0x3864d8){return c(_0x437c47,'ELEMENT_HEADING',[_0x14e5de,_0x3864d8]);}function _0x389563(_0x2cf82c,_0x1cd44b){return c(_0x437c47,'ELEMENT_HEADING_CUSTOM',[_0x2cf82c,_0x1cd44b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x223467=this['editor'],_0x1f6c9d=_0x223467['locale'];function _0x2e558d(_0x15b79d,_0xecebc6){return c(_0x1f6c9d,'ELEMENT_HEADING_CUSTOM',[_0x15b79d,_0xecebc6]);}_0x223467['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19f06b=>{if('formatBlock'!=_0x19f06b['type'])return;const {data:_0x15b37b}=_0x19f06b;if(_0x15b37b&&'heading'==_0x15b37b['commandName']){const _0x5088c8=_0x15b37b['commandParams'][0x0]['value'],_0x4d048c=this['_getHeadingLevel'](_0x5088c8);if(null!==_0x4d048c)return{'type':'format','content':c(_0x1f6c9d,'*Change\x20to:*\x20%0',(_0x15bab2=0x1,_0x47d07c=_0x4d048c,c(_0x1f6c9d,'ELEMENT_HEADING',[_0x15bab2,_0x47d07c])))};const _0x154e5f=this['_headingOptions']['find'](_0x3180af=>_0x3180af['model']===_0x5088c8)['title'];return{'type':'format','content':c(_0x1f6c9d,'*Change\x20to:*\x20%0',_0x2e558d(0x1,_0x154e5f))};}var _0x15bab2,_0x47d07c;});}['_getHeadingLevel'](_0x2b4cee){const _0x12ac11=_0x2b4cee['match'](/^heading(\d+)/);if(_0x12ac11)return _0x12ac11[0x1];const _0xd6f252=this['_headingOptions']?.['find'](_0x48f35d=>_0x48f35d['model']==_0x2b4cee);if(_0xd6f252&&_0xd6f252['view']){const _0x51d8b4=_0xd6f252['view'],_0xfd8f7d=(_0x51d8b4['name']??_0x51d8b4)['match'](/^h(\d+)/);if(_0xfd8f7d)return _0xfd8f7d[0x1];}return null;}}class it extends _0xc188f5{['afterInit'](){const _0x55e2b9=this['editor'];if(!_0x55e2b9['plugins']['has']('HighlightEditing'))return;const _0x19f429=_0x55e2b9['plugins']['get']('TrackChangesEditing'),_0x24187a=_0x55e2b9['locale'];_0x19f429['enableDefaultAttributesIntegration']('highlight'),_0x19f429['registerInlineAttribute']('highlight'),_0x19f429['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x24187a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc1489=this['editor'],_0x264b49=_0xc1489['locale'];_0xc1489['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1044b0=>{if('formatInline'!=_0x1044b0['type'])return;const {data:_0x1edba2}=_0x1044b0;if(_0x1edba2&&'highlight'==_0x1edba2['commandName']){const _0x1a4810=_0x264b49['t'],_0xdd7d98=_0x1edba2['commandParams'][0x0]['value'];if(_0xdd7d98){const _0x18066c=_0xc1489['config']['get']('highlight.options')['find'](_0x552f6b=>_0x552f6b['model']==_0xdd7d98),_0x46b593=_0x1a4810(_0x18066c['title'])['toLowerCase']();return{'type':'format','content':c(_0x264b49,'*Set\x20highlight:*\x20%0',_0x46b593),'color':{'value':_0x18066c['color'],'title':_0x18066c['title']}};}return{'type':'format','content':c(_0x264b49,'*Remove\x20highlight*',c(_0x264b49,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xc188f5{['afterInit'](){const _0x22eb3f=this['editor'];if(!_0x22eb3f['plugins']['has']('HorizontalLineEditing'))return;_0x22eb3f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x27e6e1=_0x22eb3f['plugins']['get']('TrackChangesEditing'),_0x1d48bb=_0x22eb3f['locale'];_0x27e6e1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x53858f=>c(_0x1d48bb,'ELEMENT_HORIZONTAL_LINE',_0x53858f)),_0x22eb3f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x431d24,{writer:_0x580e78,options:_0x3abfef})=>{if(!_0x3abfef['showSuggestionHighlights'])return null;const _0x57c7e5=_0x580e78['createContainerElement']('div'),_0x461e02=_0x580e78['createEmptyElement']('hr');return _0x580e78['addClass']('ck-horizontal-line',_0x57c7e5),_0x580e78['insert'](_0x580e78['createPositionAt'](_0x57c7e5,0x0),_0x461e02),_0x57c7e5;},'converterPriority':'high'});}}class ot extends _0xc188f5{['afterInit'](){const _0x275061=this['editor'];if(!_0x275061['plugins']['has']('HtmlEmbed'))return;const _0x233a16=_0x275061['plugins']['get']('TrackChangesEditing'),_0x2df1c2=_0x275061['locale'];_0x233a16['descriptionFactory']['registerElementLabel']('rawHtml',_0x30b058=>c(_0x2df1c2,'ELEMENT_HTML_EMBED',_0x30b058)),_0x233a16['enableDefaultAttributesIntegration']('htmlEmbed'),_0x233a16['registerBlockAttribute']('value'),_0x233a16['descriptionFactory']['registerDescriptionCallback'](_0x32ce2b=>{if('attribute'!=_0x32ce2b['type'])return;const {data:_0x2dad6f}=_0x32ce2b;if(_0x2dad6f&&'value'==_0x2dad6f['key']&&_0x32ce2b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4671ce=c(_0x2df1c2,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2df1c2,'*Change\x20%0\x20content*',_0x4671ce)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x334f3a=this['editor'],_0x71eaf3=_0x334f3a['locale'];_0x334f3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ca5a9=>{if('formatBlock'!=_0x4ca5a9['type'])return;const {data:_0x13f1f3}=_0x4ca5a9;if(_0x13f1f3&&'htmlEmbed'==_0x13f1f3['commandName']){const _0x5b0b73=c(_0x71eaf3,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x71eaf3,'*Change\x20%0\x20content*',_0x5b0b73)};}});}}class rt extends _0xc188f5{['afterInit'](){const _0xfcfe20=this['editor'];if(!_0xfcfe20['plugins']['has']('ImageEditing'))return;const _0x1c051c=_0xfcfe20['plugins']['get']('TrackChangesEditing'),_0x31146e=_0xfcfe20['plugins']['get']('ImageUtils'),_0x6b39e7=_0xfcfe20['locale'];_0x1c051c['enableCommand']('insertImage'),_0x1c051c['descriptionFactory']['registerElementLabel']('imageBlock',_0x660f59=>c(_0x6b39e7,'ELEMENT_IMAGE',_0x660f59)),_0x1c051c['descriptionFactory']['registerElementLabel']('imageInline',_0x1c20c5=>c(_0x6b39e7,'ELEMENT_INLINE_IMAGE',_0x1c20c5)),_0x1c051c['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x6b39e7,'ELEMENT_CAPTION')),_0xfcfe20['plugins']['has']('ImageUploadEditing')&&_0x1c051c['enableCommand']('uploadImage'),_0xfcfe20['plugins']['has']('ImageBlockEditing')&&_0xfcfe20['plugins']['has']('ImageInlineEditing')&&(_0x1c051c['enableCommand']('imageTypeInline',(_0x5617db,_0x46f3c6)=>{const _0x557389=_0x31146e['getClosestSelectedImageElement'](_0xfcfe20['model']['document']['selection']);_0xfcfe20['model']['change'](()=>{_0x1c051c['markBlockFormat'](_0x557389,{'commandName':'imageTypeInline','commandParams':[_0x46f3c6]},[],'convertBlockImageToInline');});}),_0x1c051c['enableCommand']('imageTypeBlock',(_0x27026d,_0x1ce31d)=>{_0xfcfe20['model']['change'](_0x5b9e38=>{let _0x104912=_0x31146e['getClosestSelectedImageElement'](_0xfcfe20['model']['document']['selection']),_0x5cbf81=_0x5b9e38['createRangeOn'](_0x104912);const _0x1d00ed=_0x216c64['fromPosition'](_0x5cbf81['start'],'toPrevious'),_0x46ce84=_0x216c64['fromPosition'](_0x5cbf81['end'],'toNext');_0x1c051c['forceDefaultExecution'](()=>_0x27026d(_0x1ce31d)),_0x104912=_0x31146e['getClosestSelectedImageElement'](_0xfcfe20['model']['document']['selection']),_0x5cbf81=_0x5b9e38['createRangeOn'](_0x104912);const _0x57e33a=_0x5b9e38['createRange'](_0x1d00ed,_0x46ce84);_0x1d00ed['detach'](),_0x46ce84['detach'](),_0x1c051c['markBlockFormat'](_0x104912,{'commandName':'imageTypeInline','commandParams':[_0x1ce31d]},[],'convertInlineImageToBlock'),_0x57e33a['start']['isBefore'](_0x5cbf81['start'])&&_0x1c051c['markInsertion'](_0x5b9e38['createRange'](_0x57e33a['start'],_0x5cbf81['start']),'convertInlineImageToBlock'),_0x5cbf81['end']['isBefore'](_0x57e33a['end'])&&_0x1c051c['markInsertion'](_0x5b9e38['createRange'](_0x5cbf81['end'],_0x57e33a['end']),'convertInlineImageToBlock');});}),_0x1c051c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1c051c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1c051c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1c051c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1c051c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1c051c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3b96d6])=>{const _0x115206=_0x1c051c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x386ee2=_0x3b96d6['start'],_0x2ea14e=_0x3b96d6['end'];const _0x48b8b0=_0xfcfe20['model']['schema']['getNearestSelectionRange'](_0x386ee2,'backward'),_0x3f72bb=_0xfcfe20['model']['schema']['getNearestSelectionRange'](_0x2ea14e,'forward');_0x48b8b0['isCollapsed']&&(_0x386ee2=_0x48b8b0['start']),_0x3f72bb['isCollapsed']&&(_0x2ea14e=_0x3f72bb['end']),_0x115206([_0xfcfe20['model']['createRange'](_0x386ee2,_0x2ea14e)]);}),_0x1c051c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x14e241),_0x1c051c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x14e241)),_0xfcfe20['plugins']['has']('ImageCaptionEditing')&&(_0x1c051c['enableCommand']('toggleImageCaption',(_0x2b2454,_0x3d909b)=>{const _0x3dd126=_0xfcfe20['plugins']['get']('ImageCaptionUtils');let _0x1d125e=_0x31146e['getClosestSelectedImageElement'](_0xfcfe20['model']['document']['selection']),_0x2455d1=_0x3dd126['getCaptionFromImageModelElement'](_0x1d125e);_0xfcfe20['model']['change'](()=>{if(_0x2455d1)return void _0x1c051c['markDeletion'](_0xfcfe20['model']['createRangeOn'](_0x2455d1));const _0x4fff8a=_0x31146e['isBlockImage'](_0x1d125e);_0x2b2454(_0x3d909b),_0x1d125e=_0x31146e['getClosestSelectedImageElement'](_0xfcfe20['model']['document']['selection']),_0x2455d1=_0x3dd126['getCaptionFromImageModelElement'](_0x1d125e),_0x1c051c['markInsertion'](_0xfcfe20['model']['createRangeOn'](_0x2455d1),_0x4fff8a?null:'imageCaption');});}),_0x1c051c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x14e241));const _0x147f43=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x238666(_0xa03428,_0x26ecd2){const _0x22b472=_0x147f43['findIndex'](({type:_0x2a5be2,subType:_0x2d1541})=>_0xa03428['type']==_0x2a5be2&&_0xa03428['subType']==_0x2d1541),_0x303061=_0x147f43['findIndex'](({type:_0x132d02,subType:_0x3f5c05})=>_0x26ecd2['type']==_0x132d02&&_0x26ecd2['subType']==_0x3f5c05);if(_0x22b472<0x0||_0x303061<0x0)return!0x1;const _0x86ba99=_0xa03428['getFirstRange'](),_0x351fab=_0x26ecd2['getFirstRange']();if((0x0==_0x22b472||0x1==_0x22b472)&&0x2==_0x303061&&_0x86ba99['isIntersecting'](_0x351fab))return!0x0;if(0x2==_0x22b472&&0x3==_0x303061){const _0x5b69f9=_0x1c051c['_findSuggestions'](_0x86ba99,'insertion')['filter'](({suggestion:_0x5bcc9a,meta:_0x1ac9b3})=>_0x1ac9b3['isOwn']&&'convertInlineImageToBlock'==_0x5bcc9a['subType']);if(_0x5b69f9['length']>0x1&&_0x351fab['end']['isEqual'](_0x86ba99['start']))return!0x0;if(0x1==_0x5b69f9['length']&&(_0x86ba99['start']['isEqual'](_0x351fab['end'])||_0x86ba99['end']['isEqual'](_0x351fab['start'])))return!0x0;}if(0x3==_0x22b472&&0x3==_0x303061&&_0x86ba99['start']['isBefore'](_0x351fab['start'])){const _0x3aa883=_0x86ba99['end']['nodeAfter'],_0x200245=_0x351fab['start']['nodeBefore'];return _0x31146e['isBlockImage'](_0x3aa883)&&_0x3aa883===_0x200245;}return!0x1;}function _0x14e241(_0x41b0ee,_0x14efd0){return _0x238666(_0x41b0ee,_0x14efd0)?[_0x41b0ee,_0x14efd0]:_0x238666(_0x14efd0,_0x41b0ee)?[_0x14efd0,_0x41b0ee]:null;}_0xfcfe20['plugins']['has']('ImageResize')&&(_0x1c051c['enableDefaultAttributesIntegration']('resizeImage'),_0x1c051c['registerBlockAttribute']('resizedWidth'),_0x1c051c['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x6b39e7,'FORMAT_IMAGE_SIZE'))),_0xfcfe20['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1c051c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1c051c['registerBlockAttribute']('alt')),_0xfcfe20['plugins']['has']('PictureEditing')&&(_0x1c051c['registerBlockAttribute']('sources'),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x1e94c3=>{if('attribute'!=_0x1e94c3['type'])return;const {data:_0x776ad2}=_0x1e94c3;return _0x776ad2&&'sources'==_0x776ad2['key']?{'type':'format','content':''}:void 0x0;})),_0xfcfe20['plugins']['has']('ImageSizeAttributes')&&(_0x1c051c['registerBlockAttribute']('width'),_0x1c051c['registerBlockAttribute']('height'),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x178ec7=>{if('attribute'!=_0x178ec7['type'])return;const {data:_0xd61f4c}=_0x178ec7;return!_0xd61f4c||'width'!=_0xd61f4c['key']&&'height'!=_0xd61f4c['key']?void 0x0:{'type':'format','content':''};})),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x793fce=>{if(!!_0x147f43['find'](({type:_0x56c921,subType:_0x2f4b2c})=>_0x793fce['type']==_0x56c921&&_0x793fce['subType']==_0x2f4b2c))return _0x793fce['previous']?{}:void 0x0;}),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x4764bd=>{if('insertion'==_0x4764bd['type']||'deletion'==_0x4764bd['type']){const _0x4c9c91=_0x4764bd['getContainedElement']();if(_0x4c9c91&&_0x4c9c91['is']('element','caption'))return{'type':'insertion'==_0x4764bd['type']?'addObject':'removeObject','element':_0x4c9c91,'quantity':0x1};}}),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x562706=>'formatBlock'==_0x562706['type']&&'convertInlineImageToBlock'==_0x562706['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x562706['type']&&'convertBlockImageToInline'==_0x562706['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1c051c['descriptionFactory']['registerDescriptionCallback'](_0x10c320=>{if('attribute'!=_0x10c320['type'])return;const {data:_0x101c85}=_0x10c320;if(!_0x101c85||'alt'!=_0x101c85['key'])return;const _0x28cfc3=_0x101c85['newValue'];return _0x28cfc3?{'type':'format','content':c(_0x6b39e7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x28cfc3+'\x22')}:{'type':'format','content':c(_0x6b39e7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x283f98=this['editor'],_0x5c918c=_0x283f98['locale'];_0x283f98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaf38e3=>{if('formatBlock'!=_0xaf38e3['type']&&'formatInline'!=_0xaf38e3['type'])return;const {data:_0x506365}=_0xaf38e3;if(_0x506365){if('imageTextAlternative'==_0x506365['commandName']){const _0x30cbed=_0x506365['commandParams'][0x0]['newValue'];return _0x30cbed?{'type':'format','content':c(_0x5c918c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30cbed+'\x22')}:{'type':'format','content':c(_0x5c918c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x506365['commandName']){const _0x209cde=_0x506365['commandParams'][0x0]['width'];return _0x209cde?{'type':'format','content':c(_0x5c918c,'*Set\x20image\x20width:*\x20%0',_0x209cde)}:{'type':'format','content':c(_0x5c918c,'*Reset\x20image\x20width*')};}}});}}class at extends _0xc188f5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x20c092=this['editor']['locale'],_0x1fa4ea=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fa4ea['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1fa4ea['registerBlockAttribute']('src'),_0x1fa4ea['descriptionFactory']['registerDescriptionCallback'](_0x4096d9=>{if('attribute'!=_0x4096d9['type'])return;const {data:_0x1c6f62}=_0x4096d9;return _0x1c6f62&&'src'==_0x1c6f62['key']?_0x1c6f62['newValue']&&_0x1c6f62['oldValue']?{'type':'format','content':c(_0x20c092,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3cdf6d=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cdf6d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3cdf6d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3cdf6d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3cdf6d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d451d=this['editor'],_0x5b2d6e=_0x1d451d['locale'];_0x1d451d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e1959=>{if('formatBlock'!=_0x1e1959['type']&&'formatInline'!=_0x1e1959['type'])return;const {data:_0x13c327}=_0x1e1959;if(!_0x13c327||'replaceImageSource'!=_0x13c327['commandName'])return;return{'type':'format','content':c(_0x5b2d6e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xc188f5{['afterInit'](){const _0xfd7ac6=this['editor'];if(!_0xfd7ac6['plugins']['has']('ImageStyleEditing'))return;const _0x4e579c=_0xfd7ac6['plugins']['get']('TrackChangesEditing'),_0x1168e1=_0xfd7ac6['plugins']['get']('ImageUtils'),_0x370994={};_0x4e579c['enableCommand']('imageStyle',(_0x327877,_0x413b20)=>{const _0x1dce66=_0xfd7ac6['plugins']['get']('Users')['me'],_0x6d77f8=_0xfd7ac6['commands']['get']('imageStyle');let _0x25fecb=_0x1168e1['getClosestSelectedImageElement'](_0xfd7ac6['model']['document']['selection']),_0x5103ba=_0xfd7ac6['model']['createRangeOn'](_0x25fecb),_0x2143b0=_0x6d77f8['value'];if(_0x2143b0==_0x413b20['value'])return;const _0x49b1d3={'commandName':'imageStyle','commandParams':[_0x413b20],'formatGroupId':_0x543158()};_0xfd7ac6['model']['change'](()=>{if(_0x4e579c['getSuggestions']()['filter'](_0x48a632=>_0x48a632['isInContent']&&_0x1dce66==_0x48a632['author']&&('formatBlock'==_0x48a632['type']||'formatInline'==_0x48a632['type'])&&('imageStylePreApply'==_0x48a632['subType']||'imageStylePostApply'==_0x48a632['subType'])&&_0x48a632['getFirstRange']()['isEqual'](_0x5103ba))['forEach'](_0x20281a=>_0x4e579c['discardSuggestion'](_0x20281a['head'])),_0x25fecb=_0x1168e1['getClosestSelectedImageElement'](_0xfd7ac6['model']['document']['selection']),_0x5103ba=_0xfd7ac6['model']['createRangeOn'](_0x25fecb),_0x6d77f8['refresh'](),_0xfd7ac6['commands']['get']('imageTypeInline')['refresh'](),_0xfd7ac6['commands']['get']('imageTypeBlock')['refresh'](),_0x2143b0=_0x6d77f8['value'],_0x2143b0!=_0x413b20['value'])return _0x1168e1['isInlineImage'](_0x25fecb)&&_0x6d77f8['shouldConvertImageType'](_0x413b20['value'],_0x25fecb)?(_0x327877({..._0x413b20,'setImageSizes':!0x1}),_0x25fecb=_0x1168e1['getClosestSelectedImageElement'](_0xfd7ac6['model']['document']['selection']),void _0x4e579c['markBlockFormat'](_0x25fecb,{..._0x49b1d3,'commandReversedParams':[{'value':_0x2143b0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1168e1['isBlockImage'](_0x25fecb)?_0x4e579c['markBlockFormat'](_0x25fecb,_0x49b1d3,[],'imageStylePostApply'):_0x4e579c['markInlineFormat'](_0x5103ba,_0x49b1d3,'imageStylePostApply'));});});for(const _0x2bb2da of _0xfd7ac6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x370994[_0x2bb2da['name']]=_0x2bb2da['title']['toLowerCase']();_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x59ba55])=>{_0x1168e1['setImageNaturalSizeAttributes'](_0x59ba55['getContainedElement']());}),_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x13e7d2,_0x4f770c)=>{_0x4e579c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x13e7d2,{'commandName':_0x4f770c['commandName'],'commandParams':_0x4f770c['commandReversedParams']});}),_0x4e579c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x286db8,_0x266670){if(_0x958e84(_0x286db8,_0x266670))return[_0x286db8,_0x266670];if(_0x958e84(_0x266670,_0x286db8))return[_0x266670,_0x286db8];return null;});const _0x561f38=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x958e84(_0x30ef1b,_0x310ae8){const _0x50b175=_0x561f38['findIndex'](({type:_0x6e01b7,subType:_0x9273ec})=>_0x30ef1b['type']==_0x6e01b7&&_0x30ef1b['subType']==_0x9273ec),_0x16766c=_0x561f38['findIndex'](({type:_0x36ef64,subType:_0x152325})=>_0x310ae8['type']==_0x36ef64&&_0x310ae8['subType']==_0x152325);if(_0x50b175<0x0||_0x16766c<0x0)return!0x1;const _0x3eb6bd=_0x30ef1b['getFirstRange'](),_0x76713=_0x310ae8['getFirstRange']();if((0x0==_0x50b175||0x1==_0x50b175)&&0x2==_0x16766c&&_0x3eb6bd['isIntersecting'](_0x76713))return!0x0;if(0x2==_0x50b175&&0x3==_0x16766c){const _0x182066=_0x4e579c['_findSuggestions'](_0x3eb6bd,'insertion')['filter'](({suggestion:_0x4d3ac9,meta:_0x46d477})=>_0x46d477['isOwn']&&'convertInlineImageToBlock'==_0x4d3ac9['subType']);if(_0x182066['length']>0x1&&_0x76713['end']['isEqual'](_0x3eb6bd['start']))return!0x0;if(0x1==_0x182066['length']&&(_0x3eb6bd['start']['isEqual'](_0x76713['end'])||_0x3eb6bd['end']['isEqual'](_0x76713['start'])))return!0x0;}if(0x3==_0x50b175&&0x3==_0x16766c&&_0x3eb6bd['start']['isBefore'](_0x76713['start'])){const _0x3d54db=_0x3eb6bd['end']['nodeAfter'],_0x133005=_0x76713['start']['nodeBefore'];return _0x1168e1['isBlockImage'](_0x3d54db)&&_0x3d54db===_0x133005;}return!0x1;}_0xfd7ac6['model']['document']['registerPostFixer'](()=>{let _0x22f747=!0x1;const _0x48f9d2=Array['from'](_0xfd7ac6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ff073,data:_0xe28867}of _0x48f9d2){const {group:_0x5e15a1,type:_0x3b174e,subType:_0x12785a,id:_0x1012bb}=_0x4e579c['_splitMarkerName'](_0x3ff073);if('suggestion'==_0x5e15a1&&_0x4e579c['hasSuggestion'](_0x1012bb)){if('formatBlock'==_0x3b174e&&('imageStylePreApply'==_0x12785a||'imageStylePostApply'==_0x12785a)){const _0x5f0122=_0x4e579c['getSuggestion'](_0x1012bb);if(_0xe28867['newRange']){const _0x200887=_0x5f0122['getFirstRange']()['getContainedElement']();if(_0x1168e1['isBlockImage'](_0x200887))continue;_0x4e579c['discardSuggestion'](_0x5f0122),_0x22f747=!0x0;}}if('insertion'==_0x3b174e&&'imageCaption'==_0x12785a&&!_0xe28867['newRange']){const _0xae149e=_0x4e579c['getSuggestion'](_0x1012bb);_0xae149e['next']&&_0xae149e['next']['isInContent']&&(_0x4e579c['discardSuggestion'](_0xae149e['next']),_0x22f747=!0x0);}}}return _0x22f747;}),this['_registerLegacyDescription'](_0x370994);}['_registerLegacyDescription'](_0x388f61){const _0x3072cd=this['editor'],_0x171c22=_0x3072cd['locale'];_0x3072cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1beed7=>{if('formatBlock'!=_0x1beed7['type']&&'formatInline'!=_0x1beed7['type'])return;const {data:_0x37ca22}=_0x1beed7;if(!_0x37ca22||'imageStyle'!=_0x37ca22['commandName'])return;const _0x400a38=_0x37ca22['commandParams'][0x0]['value'];return _0xfde75c('side'===_0x400a38?c(_0x171c22,'FORMAT_SIDE_IMAGE'):_0x388f61[_0x400a38]||_0x400a38);function _0xfde75c(_0x550f1f){return{'type':'format','content':c(_0x171c22,'*Format:*\x20%0',_0x550f1f)};}});}}class ut extends _0xc188f5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x128f0b){super(_0x128f0b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x13b770=this['editor'],_0x3190e8=_0x13b770['commands']['get']('importWord'),_0x2853be=_0x13b770['commands']['get']('trackChanges');_0x3190e8&&(_0x3190e8['on']('execute',(_0x44574f,[,_0x1e65ff])=>{this['_trackChangesValueDuringImport']=_0x2853be['value'],_0x1e65ff['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3190e8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3190e8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2853be['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x13b770['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x549d46,_0x27351f){const {suggestions:_0x5e0b57}=_0x27351f,_0x2d012f=this['editor']['commands']['get']('trackChanges'),_0x1ec315=_0x2d012f['value'];this['_trackChangesValueDuringImport']!==_0x1ec315&&(_0x2d012f['execute'](),this['_trackChangesExecuted']=!0x0),_0x5e0b57&&_0x5e0b57['forEach'](({id:_0x29fee4,type:_0x1eb646,author:_0x32c40f,created_at:_0x2276ac})=>{const _0xca2a2a={'id':_0x29fee4,'type':_0x1eb646,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x32c40f,'createdAt':_0x2276ac?new Date(_0x2276ac):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xca2a2a);});}}class ft extends _0xc188f5{['afterInit'](){const _0x579a9f=this['editor'],_0x54469b=_0x579a9f['plugins']['get']('TrackChangesEditing');if(_0x579a9f['plugins']['has']('IndentEditing')&&(_0x54469b['enableCommand']('indent'),_0x54469b['enableCommand']('outdent')),_0x579a9f['plugins']['has']('IndentBlock')){for(const _0x6e8d16 of['indentBlock','outdentBlock'])_0x54469b['enableDefaultAttributesIntegration'](_0x6e8d16);}const _0x5213e1=_0x579a9f['locale'];_0x54469b['registerBlockAttribute']('blockIndent'),_0x54469b['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5213e1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x481f28=this['editor'],_0x5c5ff8=_0x481f28['locale'],_0x322222=_0x481f28['plugins']['get']('TrackChangesEditing');_0x322222['descriptionFactory']['registerDescriptionCallback'](_0x1d4cb1=>{if('formatBlock'!=_0x1d4cb1['type'])return;const {data:_0x4d425b}=_0x1d4cb1;if(!_0x4d425b)return;if('indentBlock'!=_0x4d425b['commandName']&&'outdentBlock'!=_0x4d425b['commandName'])return;const _0x47857f=_0x1d4cb1['getItems']()[0x0],_0x534ec9=_0x322222['descriptionFactory']['getItemLabel'](_0x47857f);return'indentBlock'==_0x4d425b['commandName']?{'type':'format','content':c(_0x5c5ff8,'*Indent:*\x20%0',_0x534ec9)}:'outdentBlock'==_0x4d425b['commandName']?{'type':'format','content':c(_0x5c5ff8,'*Outdent:*\x20%0',_0x534ec9)}:void 0x0;});}}class ht extends _0xc188f5{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xc188f5{['afterInit'](){const _0x19a890=this['editor'];if(!_0x19a890['plugins']['has']('LinkEditing'))return;const _0x3f59e9=_0x19a890['plugins']['get']('TrackChangesEditing'),_0x13517a=_0x19a890['commands']['get']('link');_0x3f59e9['enableDefaultAttributesIntegration']('link'),_0x3f59e9['enableDefaultAttributesIntegration']('unlink'),_0x3f59e9['registerInlineAttribute']('linkHref');for(const _0x58cf87 of _0x13517a['manualDecorators'])_0x3f59e9['registerInlineAttribute'](_0x58cf87['id']),_0x3f59e9['descriptionFactory']['registerAttributeLabel'](_0x58cf87['id'],'link\x20('+_0x58cf87['label']['toLowerCase']()+')');_0x3f59e9['descriptionFactory']['registerDescriptionCallback'](_0x5c2129=>{if('attribute'!=_0x5c2129['type'])return;const {data:_0xc96fe}=_0x5c2129;if(!_0xc96fe||'linkHref'!=_0xc96fe['key'])return;const _0x17efba=_0xc96fe['newValue'],_0x285cf2=_0x19a890['locale'];return{'type':'format','content':null==_0x17efba?c(_0x285cf2,'*Remove\x20link*'):c(_0x285cf2,'*Set\x20link:*\x20%0','\x22'+_0x17efba+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fbed2=this['editor'],_0x1cc1d9=_0x4fbed2['locale'];_0x4fbed2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x239599=>{if('formatInline'!=_0x239599['type'])return;const {data:_0x28364f}=_0x239599;if(_0x28364f){if('link'==_0x28364f['commandName']){const _0x2702aa=_0x28364f['commandParams'][0x0];return{'type':'format','content':c(_0x1cc1d9,'*Set\x20link:*\x20%0','\x22'+_0x2702aa+'\x22')};}return'unlink'==_0x28364f['commandName']?{'type':'format','content':c(_0x1cc1d9,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xc188f5{['afterInit'](){const _0x518fee=this['editor'],_0x1094f9=_0x518fee['locale'];if(!_0x518fee['plugins']['has']('LegacyListEditing'))return;const _0x5e8eea=_0x518fee['plugins']['get']('TrackChangesEditing'),_0x1407aa=_0x518fee['plugins']['has']('LegacyTodoListEditing');function _0x2d9d7f(_0x44befb){return()=>{const _0x2f05dd=_0x518fee['model']['document']['selection'],_0x1f6370=_0x518fee['commands']['get'](_0x44befb);if(_0x1f6370['value'])return void _0x518fee['execute']('paragraph',{});const _0x41f306=_0x44befb['slice'](0x0,-0x4),_0x158876=function(_0x1c434d,_0x6273d,_0x499bd4){let _0x152eee=Array['from'](_0x1c434d)['filter'](_0x3bc3e6=>function(_0xd6368b,_0x48d095){return _0x48d095['checkChild'](_0xd6368b['parent'],'listItem')&&!_0x48d095['isObject'](_0xd6368b);}(_0x3bc3e6,_0x499bd4));_0x152eee=_0x152eee['filter'](_0x25b127=>!_0x25b127['is']('element','listItem')||_0x25b127['getAttribute']('listType')!=_0x6273d);const _0x4b5bd2=new Set();for(const _0x4ea886 of _0x152eee)_0x4ea886['is']('element','listItem')?_0x4b5bd2['add'](Le(_0x4ea886)):_0x4b5bd2['add'](_0x4ea886);return Array['from'](_0x4b5bd2);}(_0x2f05dd['getSelectedBlocks'](),_0x41f306,_0x518fee['model']['schema']);_0x518fee['model']['change'](()=>{for(const _0x31c5c8 of _0x158876)_0x5e8eea['markBlockFormat'](_0x31c5c8,{'commandName':_0x44befb,'commandParams':[{'forceValue':!_0x1f6370['value']}],'formatGroupId':'blockName'},Ee(_0x31c5c8));});};}function _0x57ef17(_0x47d0f5){return()=>{const _0x43ba61=function(_0xdd6f8c){let _0x2c6b5a=Array['from'](_0xdd6f8c);const _0x4fa31b=_0x2c6b5a['findIndex'](_0xc06608=>'listItem'!=_0xc06608['name']);return _0x4fa31b>-0x1&&(_0x2c6b5a=_0x2c6b5a['slice'](0x0,_0x4fa31b)),_0x2c6b5a;}(_0x518fee['model']['document']['selection']['getSelectedBlocks']()),_0x307258=_0x518fee['model']['createRange'](_0x518fee['model']['createPositionAt'](_0x43ba61[0x0],'before'),_0x518fee['model']['createPositionAt'](_0x43ba61[_0x43ba61['length']-0x1],'end'));_0x518fee['model']['change'](()=>{_0x5e8eea['markBlockFormat'](_0x307258,{'commandName':_0x47d0f5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x24aaa3){const _0x3fbccd=new Set();for(const _0x17240e of _0x24aaa3){let _0x4514ea=_0x17240e['nextSibling'];for(;_0x4514ea&&_0x4514ea['getAttribute']('listIndent')>_0x17240e['getAttribute']('listIndent');)_0x3fbccd['add'](_0x4514ea),_0x4514ea=_0x4514ea['nextSibling'];}return Array['from'](_0x3fbccd);}(_0x43ba61));});};}_0x5e8eea['enableCommand']('numberedList',_0x2d9d7f('numberedList')),_0x5e8eea['enableCommand']('bulletedList',_0x2d9d7f('bulletedList')),_0x1407aa&&_0x5e8eea['enableCommand']('todoList',_0x2d9d7f('todoList')),_0x5e8eea['enableCommand']('indentList',_0x57ef17('indentList')),_0x5e8eea['enableCommand']('outdentList',_0x57ef17('outdentList')),_0x1407aa&&_0x5e8eea['enableCommand']('checkTodoList',()=>{const _0x342a56=_0x518fee['commands']['get']('checkTodoList'),_0x184b32=Array['from'](_0x342a56['_selectedElements']);_0x184b32['filter'](_0x5a354f=>_0x5a354f['getAttribute']('todoListChecked')!=_0x342a56['value']),_0x518fee['model']['change'](()=>{for(const _0x1e9628 of _0x184b32)_0x5e8eea['markBlockFormat'](_0x1e9628,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x342a56['value']}]});});}),_0x5e8eea['descriptionFactory']['registerElementLabel']('listItem',_0x3efa73=>c(_0x1094f9,'ELEMENT_LIST_ITEM',_0x3efa73)),_0x5e8eea['descriptionFactory']['registerDescriptionCallback'](_0x16898d=>{if('formatBlock'!=_0x16898d['type']&&'formatInline'!=_0x16898d['type'])return;const {data:_0xc5b91c}=_0x16898d;if(_0xc5b91c){if('numberedList'==_0xc5b91c['commandName']||'bulletedList'==_0xc5b91c['commandName']||'todoList'==_0xc5b91c['commandName'])switch(_0xc5b91c['commandName']['replace']('List','')){case'bulleted':return _0x25f241(c(_0x1094f9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25f241(c(_0x1094f9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25f241(c(_0x1094f9,'ELEMENT_TODO_LIST'));}if('indentList'==_0xc5b91c['commandName'])return{'type':'format','content':c(_0x1094f9,'*Indent:*\x20%0',c(_0x1094f9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xc5b91c['commandName'])return{'type':'format','content':c(_0x1094f9,'*Outdent:*\x20%0',c(_0x1094f9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xc5b91c['commandName'])return _0xc5b91c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1094f9,'*Check\x20item*')}:{'type':'format','content':c(_0x1094f9,'*Uncheck\x20item*')};}function _0x25f241(_0x42c676){return{'type':'format','content':c(_0x1094f9,'*Change\x20to:*\x20%0',_0x42c676)};}});}}function Le(_0x441699){const _0x4b096f=_0x441699['getAttribute']('listIndent');if(0x0==_0x4b096f)return _0x441699;let _0x375ff0=_0x441699;for(;_0x441699['previousSibling']&&_0x441699['previousSibling']['is']('element','listItem');){const _0x1dbed3=_0x441699['previousSibling']['getAttribute']('listIndent');if(_0x1dbed3==_0x4b096f)_0x375ff0=_0x441699['previousSibling'];else{if(_0x1dbed3<_0x4b096f)break;}_0x441699=_0x441699['previousSibling'];}return _0x375ff0;}function Ee(_0x1cfcc9){const _0x11f2b4=[];if(_0x1cfcc9['is']('element','listItem')&&_0x1cfcc9['getAttribute']('listIndent')>0x0){let _0x53c68c=_0x1cfcc9['nextSibling'];for(;_0x53c68c&&'listItem'==_0x53c68c['name']&&_0x53c68c['getAttribute']('listIndent')==_0x1cfcc9['getAttribute']('listIndent');)_0x11f2b4['push'](_0x53c68c),_0x53c68c=_0x53c68c['nextSibling'];}return _0x11f2b4;}class Q extends _0xc188f5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x352e1e=this['editor']['config']['get']('list.properties'),_0x1e2c9d=this['editor']['plugins']['get']('TrackChangesEditing');_0x352e1e['styles']&&_0x1e2c9d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x352e1e['reversed']&&_0x1e2c9d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x352e1e['startIndex']&&_0x1e2c9d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1e2c9d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4fbf58,_0x293b0a={}){const _0x53b83c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ee28a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x53b83c['markMultiRangeBlockFormat'](_0x5ee28a,{'commandName':'listStyle','commandParams':[{'type':_0x293b0a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4dd560,_0x1af6a1={}){const _0x1b51a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2dfc3a=this['_getSuggestionBlocks'](_0x3ce723=>_0x3ce723['is']('element','listItem')&&'numbered'===_0x3ce723['getAttribute']('listType'));if(_0x2dfc3a['length']<0x1)return;const _0x8d8126=_0x2dfc3a['map'](_0x3db68d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3db68d,'before'),this['editor']['model']['createPositionAt'](_0x3db68d,0x0)));this['editor']['model']['change'](()=>{_0x1b51a2['markMultiRangeBlockFormat'](_0x8d8126,{'commandName':'listReversed','commandParams':[{'reversed':_0x1af6a1['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x571c9d,_0x34f04e={}){const _0x33cdae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x313eea=this['_getSuggestionBlocks'](_0x584f26=>_0x584f26['is']('element','listItem')&&'numbered'===_0x584f26['getAttribute']('listType'));if(_0x313eea['length']<0x1)return;const _0x5b2bef=_0x313eea['map'](_0x48288b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48288b,'before'),this['editor']['model']['createPositionAt'](_0x48288b,0x0)));this['editor']['model']['change'](()=>{_0x33cdae['markMultiRangeBlockFormat'](_0x5b2bef,{'commandName':'listStart','commandParams':[{'startIndex':_0x34f04e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1856d2){if('formatBlock'!=_0x1856d2['type']&&'formatInline'!=_0x1856d2['type'])return;const _0x2a9759=this['editor']['locale'],{data:_0x280244}=_0x1856d2;if(!_0x280244)return;let _0x5bf6a0,_0x16370e;switch(_0x280244['commandName']){case'listStyle':_0x5bf6a0='*Change\x20to:*\x20%0',_0x16370e={'type':'format','content':c(_0x2a9759,_0x5bf6a0,c(_0x2a9759,this['_getTranslationKeyForListStyle'](_0x280244['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5bf6a0=_0x280244['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x16370e={'type':'format','content':c(_0x2a9759,_0x5bf6a0)};break;case'listStart':_0x5bf6a0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16370e={'type':'format','content':c(_0x2a9759,_0x5bf6a0,_0x280244['commandParams'][0x0]['startIndex'])};}return _0x16370e;}['_getSuggestionBlocksForListStyle'](){const _0x9d43d2=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b937a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4b937a[0x0]?.['is']('element','listItem')&&_0x4b937a['unshift'](..._0x9d43d2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4b937a[_0x4b937a['length']-0x1]?.['is']('element','listItem')&&_0x4b937a['push'](..._0x9d43d2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4b937a=[...new Set(_0x4b937a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4b937a=_0x4b937a['filter'](_0x3855df=>_0x3855df['is']('element','listItem'))),_0x4b937a;}['_getSuggestionBlocks'](_0x4f2f01){const _0x1aad6e=this['editor']['plugins']['get']('LegacyListUtils');let _0x540680=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4f2f01)['map'](_0xdd8a73=>{const _0x4d9273=this['editor']['model']['createPositionAt'](_0xdd8a73,0x0);return[..._0x1aad6e['getSiblingNodes'](_0x4d9273,'backward'),..._0x1aad6e['getSiblingNodes'](_0x4d9273,'forward')];})['flat']();return _0x540680=[...new Set(_0x540680)],_0x540680;}['_getTranslationKeyForListStyle'](_0x44235c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x44235c)||'default')['toUpperCase']()+'_LIST_'+_0x44235c['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xc188f5{['afterInit'](){const _0x5f36c3=this['editor'];if(!_0x5f36c3['plugins']['has']('MediaEmbedEditing'))return;const _0x269a0e=_0x5f36c3['plugins']['get']('TrackChangesEditing'),_0x5a4f98=_0x5f36c3['locale'];_0x269a0e['enableCommand']('mediaEmbed'),_0x269a0e['descriptionFactory']['registerElementLabel']('media',_0x9b4d20=>c(_0x5a4f98,'ELEMENT_MEDIA',_0x9b4d20)),_0x5f36c3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4cf01a,{writer:_0x53d756,options:_0x547f8f})=>{if(_0x547f8f['showSuggestionHighlights'])return _0x53d756['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f36c3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x921bae,_0x440362,_0x2291ba)=>{_0x2291ba['options']['showSuggestionHighlights']&&_0x921bae['stop']();},{'priority':'high'});}}class pt extends _0xc188f5{['afterInit'](){const _0x176ec0=this['editor'];_0x176ec0['plugins']['has']('MentionEditing')&&_0x176ec0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xc188f5{['afterInit'](){const _0x21a875=this['editor'];if(!_0x21a875['plugins']['has']('MergeFieldsEditing'))return;const _0x25b5fd=_0x21a875['plugins']['get']('TrackChangesEditing'),_0xda198e=_0x21a875['locale'];_0x25b5fd['enableCommand']('insertMergeField'),_0x25b5fd['enableCommand']('insertMergeFieldBlock'),_0x25b5fd['enableCommand']('insertMergeFieldImage'),_0x25b5fd['descriptionFactory']['registerElementLabel']('mergeField',_0x223a11=>c(_0xda198e,'ELEMENT_MERGE_FIELD',_0x223a11)),_0x25b5fd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x145e8a=>c(_0xda198e,'ELEMENT_MERGE_FIELD',_0x145e8a)),_0x25b5fd['descriptionFactory']['registerDescriptionCallback'](_0x1a3423=>{if('insertion'!=_0x1a3423['type']&&'deletion'!=_0x1a3423['type'])return;const _0x4c7b1c=_0x1a3423['getContainedElement']();if(null==_0x4c7b1c)return;const _0xe6d199=_0x21a875['plugins']['get']('MergeFieldsEditing');let _0x1ff7ff;switch(_0xe6d199['getMergeFieldType'](_0x4c7b1c)){case null:return;case'image':{const _0x1d2938=_0xe6d199['unwrapAffixes'](_0x4c7b1c['getAttribute']('src'));_0x1ff7ff=_0xe6d199['getLabel'](_0x1d2938)||_0x1d2938;break;}default:{const _0x1054a3=_0x4c7b1c['getAttribute']('id');_0x1ff7ff=_0xe6d199['getLabel'](_0x1054a3)||_0x1054a3;break;}}return'insertion'==_0x1a3423['type']?{'type':'insertion','content':c(_0xda198e,'*Insert:*\x20%0','\x22'+_0x1ff7ff+'\x22\x20'+c(_0xda198e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xda198e,'*Remove:*\x20%0','\x22'+_0x1ff7ff+'\x22\x20'+c(_0xda198e,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0xc188f5{['afterInit'](){const _0x45ba31=this['editor'],_0x4276fc=_0x45ba31['plugins']['get']('TrackChangesEditing');_0x45ba31['plugins']['has']('MultiLevelList')&&(_0x4276fc['enableDefaultAttributesIntegration']('multiLevelList'),_0x4276fc['registerBlockAttribute']('listMarkerStyle'),_0x4276fc['descriptionFactory']['registerDescriptionCallback'](_0x2ffe21=>this['handleDescriptions'](_0x2ffe21)));}['handleDescriptions'](_0x15a7a5){const _0x390c31=this['editor']['locale'],{data:_0x2bb631}=_0x15a7a5,_0x38421d={'type':'format','content':''};if(_0x2bb631&&'listMarkerStyle'==_0x2bb631['key']){if(!_0x2bb631['oldValue'])return{'type':'format','content':c(_0x390c31,'*Set\x20format:*\x20%0',c(_0x390c31,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2bb631['newValue']+')'};if(!_0x2bb631['newValue']){let _0x3853fb=_0x15a7a5['head'];for(;_0x3853fb;){if(_0x3853fb['data']&&'listType'==_0x3853fb['data']['key']&&_0x3853fb['data']['newValue'])return _0x38421d;_0x3853fb=_0x3853fb['next'];}return{'type':'format','content':c(_0x390c31,'*Remove\x20format:*\x20%0',c(_0x390c31,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2bb631['oldValue']+')'};}}}}class bt extends _0xc188f5{['afterInit'](){const _0x29e1ea=this['editor'];if(!_0x29e1ea['plugins']['has']('PageBreakEditing'))return;_0x29e1ea['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x313f3d=_0x29e1ea['plugins']['get']('TrackChangesEditing'),_0x59a012=_0x29e1ea['locale'];_0x313f3d['descriptionFactory']['registerElementLabel']('pageBreak',_0xebc548=>c(_0x59a012,'ELEMENT_PAGE_BREAK',_0xebc548));}}class yt extends _0xc188f5{['afterInit'](){const _0x358e34=this['editor'];if(!_0x358e34['plugins']['has']('Paragraph'))return;const _0x2660b6=_0x358e34['locale'],_0x47e33e=_0x358e34['plugins']['get']('TrackChangesEditing');_0x47e33e['descriptionFactory']['registerElementLabel']('paragraph',_0x7a4bfc=>c(_0x2660b6,'ELEMENT_PARAGRAPH',_0x7a4bfc)),_0x47e33e['enableDefaultAttributesIntegration']('paragraph'),_0x47e33e['enableCommand']('insertParagraph'),_0x358e34['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x358e34),{'priority':'highest'}),_0x358e34['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4b5fbb,_0x342dde,_0x1c07f5)=>{_0x1c07f5['options']['showSuggestionHighlights']&&nr(_0x358e34,{'showActiveMarker':!0x1})(_0x4b5fbb,_0x342dde,_0x1c07f5);},{'priority':'highest'});const _0x2ec0d5=_0x47e33e['descriptionFactory'];_0x2ec0d5['registerDescriptionCallback'](_0x4fd7f1=>{if('insertion'!==_0x4fd7f1['type'])return;const {start:_0x11b016,end:_0x407134}=_0x4fd7f1['getFirstRange']();if(!_0x11b016['isTouching'](_0x407134)||!_0x11b016['nodeAfter'])return;const _0x5131a4=_0x358e34['model']['schema'],_0x6fa61c=_0x11b016['nodeAfter'];return _0x5131a4['isBlock'](_0x6fa61c)&&!_0x5131a4['isLimit'](_0x6fa61c)&&_0x5131a4['checkChild'](_0x6fa61c,'$text')?{'type':'insertion','content':c(_0x2660b6,'*Insert:*\x20%0',_0x2ec0d5['getItemLabel'](_0x6fa61c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x317f18=this['editor'],_0x4c8940=_0x317f18['locale'];_0x317f18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbabab1=>{if('formatBlock'!=_0xbabab1['type'])return;const {data:_0x2ac489}=_0xbabab1;return _0x2ac489&&'paragraph'==_0x2ac489['commandName']?{'type':'format','content':c(_0x4c8940,'*Change\x20to:*\x20%0',c(_0x4c8940,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4623c7,{showActiveMarker:_0x1d7484=!0x0}={}){return(_0x2532ba,_0x163bb4,_0xc02ff2)=>{const _0x45f94c=_0x4623c7['plugins']['get']('TrackChangesEditing'),_0x1b7826=_0x163bb4['markerRange']['start'],_0x466c9e=_0x163bb4['markerRange']['end'],_0x48c710=_0x4623c7['model']['schema'];if(!_0x1b7826['isTouching'](_0x466c9e)||!_0x1b7826['nodeAfter'])return;const _0x5557fe=_0x1b7826['nodeAfter'];if(_0x48c710['isBlock'](_0x5557fe)&&!_0x48c710['isLimit'](_0x5557fe)&&_0x48c710['checkChild'](_0x5557fe,'$text')){if(!_0xc02ff2['consumable']['consume'](_0x163bb4['markerRange'],_0x2532ba['name']))return;const {authorId:_0x1d741a}=_0x45f94c['_splitMarkerName'](_0x163bb4['markerName']),_0x173432=_0xc02ff2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1d741a}),_0x52b04a=_0xc02ff2['mapper']['toViewPosition'](_0x466c9e);_0x1d7484&&_0x45f94c['activeMarkers']['includes'](_0x163bb4['markerName'])&&_0xc02ff2['writer']['addClass']('ck-suggestion-marker--active',_0x173432),_0xc02ff2['writer']['insert'](_0x52b04a,_0x173432),_0xc02ff2['mapper']['bindElementToMarker'](_0x173432,_0x163bb4['markerName']);}};}class jt extends _0xc188f5{['afterInit'](){const _0x177b52=this['editor'];_0x177b52['commands']['get']('replaceSource')&&_0x177b52['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xc188f5{['afterInit'](){const _0x13f033=this['editor'];if(!_0x13f033['plugins']['has']('RemoveFormatEditing'))return;_0x13f033['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38e166=this['editor'];_0x38e166['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f979a=>{if('formatBlock'!=_0x1f979a['type']&&'formatInline'!=_0x1f979a['type'])return;const {data:_0xed64b}=_0x1f979a;return _0xed64b&&'removeFormat'==_0xed64b['commandName']?{'type':'format','content':c(_0x38e166['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xc188f5{['afterInit'](){const _0x434419=this['editor'];if(!_0x434419['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x142e9a=_0x434419['plugins']['get']('TrackChangesEditing');_0x142e9a['enableCommand']('goToPreviousRestrictedEditingException'),_0x142e9a['enableCommand']('goToNextRestrictedEditingException');const _0x4ee114=_0x434419['plugins']['get']('RestrictedEditingModeEditing');_0x4ee114['enableCommand']('trackChanges'),_0x4ee114['enableCommand']('acceptSuggestion'),_0x4ee114['enableCommand']('discardSuggestion'),_0x4ee114['enableCommand']('acceptAllSuggestions'),_0x4ee114['enableCommand']('discardAllSuggestions'),_0x4ee114['enableCommand']('acceptSelectedSuggestions'),_0x4ee114['enableCommand']('discardSelectedSuggestions');}}class It extends _0xc188f5{['afterInit'](){const _0x54dfb4=this['editor'];if(!_0x54dfb4['plugins']['has']('ShiftEnter'))return;const _0x1d8129=_0x54dfb4['plugins']['get']('TrackChangesEditing');_0x1d8129['enableCommand']('shiftEnter'),_0x54dfb4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x54dfb4),{'priority':'high'}),_0x54dfb4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x54dfb4),{'priority':'high'}),_0x54dfb4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5362fb,_0x5da10d,_0x4028fa)=>{_0x4028fa['options']['showSuggestionHighlights']&&je(_0x54dfb4,{'showActiveMarker':!0x1})(_0x5362fb,_0x5da10d,_0x4028fa);}),_0x1d8129['descriptionFactory']['registerElementLabel']('softBreak',_0x154e02=>c(_0x54dfb4['locale'],'ELEMENT_LINE_BREAK',_0x154e02));}}function je(_0x273082,{showActiveMarker:_0x3da77d=!0x0}={}){return(_0xec65e5,_0xb6c682,_0x35df4f)=>{const _0x42bba0=_0x273082['plugins']['get']('TrackChangesEditing');if(!_0x35df4f['consumable']['test'](_0xb6c682['markerRange'],_0xec65e5['name']))return;const _0x524720=_0x273082['model'];for(const _0x395497 of _0xb6c682['markerRange']['getItems']()){if(!_0x395497['is']('element','softBreak'))continue;const _0x21ad4='deletion'==_0xb6c682['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2b034a}=_0x42bba0['_splitMarkerName'](_0xb6c682['markerName']),_0x2a40ef=_0x35df4f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x21ad4,'data-author-id':_0x2b034a}),_0x344418=_0x35df4f['mapper']['toViewPosition'](_0x524720['createPositionBefore'](_0x395497));_0x3da77d&&_0x42bba0['activeMarkers']['includes'](_0xb6c682['markerName'])&&_0x35df4f['writer']['addClass']('ck-suggestion-marker--active',_0x2a40ef),_0x35df4f['writer']['insert'](_0x344418,_0x2a40ef),_0x35df4f['mapper']['bindElementToMarker'](_0x2a40ef,_0xb6c682['markerName']);}};}class _t extends _0xc188f5{['afterInit'](){const _0x535de7=this['editor'],_0x5bc306=_0x535de7['model'],_0x56cbc8=_0x535de7['locale'];if(!_0x535de7['plugins']['has']('StandardEditingModeEditing'))return;const _0x518ac1=_0x535de7['plugins']['get']('TrackChangesEditing'),_0x1d7742='restrictedEditingException',_0x1ef96d=_0x535de7['commands']['get'](_0x1d7742);_0x518ac1['enableCommand'](_0x1d7742,(_0x46ec2d,_0x4fa082={})=>{const _0x31f9bb=_0x5bc306['document']['selection'];if(_0x31f9bb['isCollapsed'])return void _0x46ec2d(_0x4fa082);const _0x5470b1=void 0x0!==_0x4fa082['forceValue']?_0x4fa082['forceValue']:!_0x1ef96d['value'];_0x5bc306['change'](()=>{const _0x5d8d5a=Array['from'](_0x31f9bb['getRanges']());for(const _0x252d30 of _0x5d8d5a){const _0x4ba2bc=_0x5470b1?[_0x252d30]:io(_0x1d7742,_0x252d30,_0x5bc306);for(const _0x380fe9 of _0x4ba2bc)_0x518ac1['markInlineFormat'](_0x380fe9,{'commandName':_0x1d7742,'commandParams':[{'forceValue':_0x5470b1}]});}});}),_0x518ac1['descriptionFactory']['registerDescriptionCallback'](_0x40ea35=>{if('formatBlock'!=_0x40ea35['type']&&'formatInline'!=_0x40ea35['type'])return;const {data:_0x556de4}=_0x40ea35;return _0x556de4&&_0x556de4['commandName']==_0x1d7742?_0x556de4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x56cbc8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x56cbc8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0xc188f5{['afterInit'](){const _0x2493c3=this['editor'];if(!_0x2493c3['plugins']['has']('Style')||!_0x2493c3['plugins']['has']('DataSchema'))return;const _0x45d5a1=_0x2493c3['plugins']['get']('TrackChangesEditing'),_0x594a94=_0x2493c3['locale'],_0xfdf710=_0x2493c3['config']['get']('style')||{},_0x104dbe=_0x2493c3['plugins']['get']('GeneralHtmlSupport'),_0x39b139=_0x2493c3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2493c3['plugins']['get']('DataSchema'),_0xfdf710['definitions']);_0x45d5a1['enableDefaultAttributesIntegration']('style');const _0x894eae=new Set();for(const _0x49fbd8 of _0x39b139['block']){const _0x2cb04e=_0x104dbe['getGhsAttributeNameForElement'](_0x49fbd8['element']);_0x894eae['add'](_0x2cb04e);}const _0x1720b1=new Set();for(const _0x38fd87 of _0x39b139['inline']){const _0x5a63ef=_0x104dbe['getGhsAttributeNameForElement'](_0x38fd87['element']);_0x1720b1['add'](_0x5a63ef);for(const _0x507848 of _0x38fd87['ghsAttributes'])_0x1720b1['add'](_0x507848);}for(const _0xdf8776 of _0x894eae)_0x45d5a1['registerBlockAttribute'](_0xdf8776),_0x45d5a1['descriptionFactory']['registerAttributeLabel'](_0xdf8776,c(_0x594a94,'FORMAT_STYLE'));for(const _0x44abd4 of _0x1720b1)_0x45d5a1['registerInlineAttribute'](_0x44abd4),_0x45d5a1['descriptionFactory']['registerAttributeLabel'](_0x44abd4,c(_0x594a94,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25fe41=this['editor'],_0x2576ea=_0x25fe41['locale'];_0x25fe41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11fcb3=>{if('formatBlock'!=_0x11fcb3['type']&&'formatInline'!=_0x11fcb3['type'])return;const {data:_0x33be60}=_0x11fcb3;return _0x33be60&&'style'===_0x33be60['commandName']?_0x33be60['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2576ea,'*Set\x20format:*\x20%0',_0x33be60['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x2576ea,'*Remove\x20format:*\x20%0',_0x33be60['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xc188f5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xcd9630){super(_0xcd9630),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5076b3=this['editor'],_0x4bdb85=_0x5076b3['model']['document']['selection'];if(!_0x5076b3['plugins']['has']('TableEditing'))return;const _0x3b7f14=_0x5076b3['locale'],_0x904743=_0x5076b3['plugins']['get']('TrackChangesEditing'),_0x53792e=_0x5076b3['plugins']['get']('TableUtils');_0x904743['descriptionFactory']['registerElementLabel']('table',_0xdd5287=>c(_0x3b7f14,'ELEMENT_TABLE',_0xdd5287)),this['_setupColumnsRowsFixing'](),_0x904743['enableCommand']('insertTable'),_0x904743['enableCommand']('selectTableRow'),_0x904743['enableCommand']('selectTableColumn');for(const _0x12822c of['insertTableRowAbove','insertTableRowBelow']){const _0x23c42a=_0x5076b3['commands']['get'](_0x12822c);_0x904743['enableCommand'](_0x12822c,_0x14f6c5=>{_0x5076b3['model']['change'](_0x28e95f=>{_0x14f6c5();const _0x1baddc='above'===_0x23c42a['order'],_0x54b249=_0x53792e['getSelectionAffectedTableCells'](_0x4bdb85),_0x2740ba=_0x53792e['getRowIndexes'](_0x54b249),_0x3abb0d=_0x1baddc?_0x2740ba['first']-0x1:_0x2740ba['last']+0x1,_0x5a6067=_0x54b249[0x0]['findAncestor']('table'),_0x4be893=_0x53792e['createTableWalker'](_0x5a6067,{'startRow':_0x3abb0d,'endRow':_0x3abb0d}),_0x1f11a7=Array['from'](_0x4be893)['map'](_0x1c822a=>_0x28e95f['createRangeOn'](_0x1c822a['cell']));_0x904743['markMultiRangeInsertion'](_0x1f11a7,'tableRow');});});}for(const _0x2b6b38 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1adb5e=_0x5076b3['commands']['get'](_0x2b6b38);_0x904743['enableCommand'](_0x2b6b38,_0x1e6e95=>{_0x5076b3['model']['change'](_0x1bc72b=>{_0x1e6e95();const _0x1b72a2='left'===_0x1adb5e['order'],_0x140e6e=_0x53792e['getSelectionAffectedTableCells'](_0x4bdb85),_0xb47702=_0x53792e['getColumnIndexes'](_0x140e6e),_0x16f563=_0x1b72a2?_0xb47702['first']-0x1:_0xb47702['last']+0x1,_0xdab0a6=_0x140e6e[0x0]['findAncestor']('table'),_0x5ba209=_0x53792e['createTableWalker'](_0xdab0a6,{'startRow':0x0,'column':_0x16f563,'includeAllSlots':!0x1}),_0x2ac59b=Array['from'](_0x5ba209)['map'](_0x45d024=>_0x1bc72b['createRangeOn'](_0x45d024['cell']));_0x904743['markMultiRangeInsertion'](_0x2ac59b,'tableColumn');});});}for(const _0xad59b8 of['removeTableRow','removeTableColumn']){const _0x2e42a9=_0xad59b8['substr'](0xb),_0x1bc156=_0x2e42a9['toLowerCase'](),_0x31e53f=_0x1bc156['substr'](0x0,0x3)+'span',_0x56a794='table'+_0x2e42a9,_0x4a69d9='min'+_0x2e42a9,_0x6e14ab='max'+_0x2e42a9;_0x904743['enableCommand'](_0xad59b8,()=>{_0x5076b3['model']['change'](_0x2fbfeb=>{const _0x303340=_0x53792e['getSelectionAffectedTableCells'](_0x4bdb85),_0x4a4f03=_0x303340[0x0]['findAncestor']('table');let _0x5031b8;if('removeTableRow'==_0xad59b8){const _0x2c0a50=_0x53792e['getRowIndexes'](_0x303340);_0x5031b8={'startRow':_0x2c0a50['first'],'endRow':_0x2c0a50['last'],'includeAllSlots':!0x0};}else{const _0x11eda9=_0x53792e['getColumnIndexes'](_0x303340);_0x5031b8={'startColumn':_0x11eda9['first'],'endColumn':_0x11eda9['last'],'includeAllSlots':!0x0};}const _0x1421a6=_0x53792e['createTableWalker'](_0x4a4f03,_0x5031b8),_0x2937fb=Array['from'](_0x1421a6)['map'](({cell:_0xbf9dc6})=>_0xbf9dc6),_0x51f63c=Ne(_0x2937fb['filter'](_0x2fd480=>_0x2fd480['hasAttribute'](_0x31e53f))),_0x39d401=Ne(_0x2937fb['filter'](_0xe4e0d7=>!_0xe4e0d7['hasAttribute'](_0x31e53f)))['map'](_0x8a2e29=>_0x2fbfeb['createRangeOn'](_0x8a2e29)),_0x5065d0=_0x904743['markMultiRangeDeletion'](_0x39d401,_0x56a794);if(_0x5065d0&&('tableRow'==_0x5065d0['subType']||'tableColumn'==_0x5065d0['subType'])){const _0xa93b77=this['_getSuggestionCoords'](_0x5065d0);for(const _0x12084f of _0x51f63c){const _0xe24814=_0x2fbfeb['createRangeOn'](_0x12084f),_0x1e9943=_0x53792e['getCellLocation'](_0x12084f),_0x447b78=_0x12084f['getAttribute'](_0x31e53f)-0x1,_0x2a40c0=_0xa93b77[_0x4a69d9],_0x5ddbba=_0xa93b77[_0x6e14ab];_0x2a40c0<=_0x1e9943[_0x1bc156]&&_0x1e9943[_0x1bc156]+_0x447b78<=_0x5ddbba&&_0x5065d0['addRange'](_0xe24814);}}});});}function _0x4640d8(_0x146260){const _0x415035=Array['from'](_0x4bdb85['getRanges']())['map'](_0x3d0313=>_0x27d8bc['fromRange'](_0x3d0313));_0x5076b3['model']['change'](_0x5bd4ae=>{const _0xde7605=_0x5bd4ae['batch'];_0x146260=_0x146260['filter'](_0x1c1de2=>'$graveyard'!=_0x1c1de2['root']['rootName']),_0x5bd4ae['setSelection'](_0x146260),_0x5076b3['commands']['get']('removeTableRow')['refresh'](),_0x5076b3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5076b3['model']['enqueueChange'](()=>{_0x5076b3['model']['enqueueChange'](_0xde7605,_0x49e09d=>{const _0x1741d9=_0x415035['filter'](_0x5efb20=>'$graveyard'!=_0x5efb20['root']['rootName']);_0x1741d9['length']>0x0&&_0x49e09d['setSelection'](_0x1741d9);for(const _0x3909ae of _0x415035)_0x3909ae['detach']();});});});}function _0x19f807(_0x1a7fd5){_0x5076b3['model']['change'](_0x14766b=>{const _0x13bcf7=Array['from'](_0x4bdb85['getRanges']())['map'](_0x3eef7f=>_0x27d8bc['fromRange'](_0x3eef7f)),_0x49ccbb=[];for(const _0x307dbd of _0x1a7fd5)for(const _0x19158d of _0x307dbd['getItems']({'shallow':!0x0}))_0x49ccbb['push'](_0x19158d);for(const _0x114801 of _0x49ccbb)'$graveyard'!=_0x114801['root']['rootName']&&(_0x14766b['setSelection'](_0x14766b['createPositionAt'](_0x114801,0x0)),_0x5076b3['commands']['get']('removeTableColumn')['refresh'](),_0x5076b3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5ea34c=_0x13bcf7['filter'](_0x2b2f49=>'$graveyard'!=_0x2b2f49['root']['rootName']);_0x5ea34c['length']>0x0&&_0x14766b['setSelection'](_0x5ea34c);for(const _0x343f4b of _0x13bcf7)_0x343f4b['detach']();});}function _0x5b6936(_0x48c26c,_0x4e7e55){return _0x4e7e55['every'](_0x3af5d9=>_0x48c26c['some'](_0x268611=>_0x268611['end']['isEqual'](_0x3af5d9['start'])||_0x3af5d9['end']['isEqual'](_0x268611['start'])));}function _0x414bf8(_0x213695,_0x19c1f3){return!_0x213695['some'](_0x5f1cc2=>_0x19c1f3['some'](_0x275438=>_0x5f1cc2['isIntersecting'](_0x275438)))&&_0x213695['some'](_0x5e8b1f=>_0x19c1f3['some'](_0x4fa13b=>_0x5e8b1f['end']['isTouching'](_0x4fa13b['start'])));}_0x5076b3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f03ef,_0x4ee973,_0x5be9e2)=>{if(!_0x5be9e2['options']['showSuggestionHighlights'])return;const _0x2ec6d9=_0x4ee973['item'];if(!_0x2ec6d9)return;const _0x1b820a=_0x5be9e2['mapper']['toViewElement'](_0x2ec6d9);function _0x2875b1(_0x5dec54){return Array['isArray'](_0x5dec54)?_0x5dec54:[_0x5dec54];}_0x1b820a&&'tableCell'===_0x2ec6d9['name']&&_0xf7f7ae(_0x1b820a,_0x5be9e2['writer'],(_0x2687e1,_0x26651,_0x56d609)=>_0x56d609['addClass'](_0x2875b1(_0x26651['classes']),_0x2687e1),(_0x3a5a0a,_0x275c94,_0x1a5e92)=>_0x1a5e92['removeClass'](_0x2875b1(_0x275c94['classes']),_0x3a5a0a));},{'priority':'highest'}),_0x904743['descriptionFactory']['registerDescriptionCallback'](_0x1276fc=>{if('insertion'!=_0x1276fc['type']&&'deletion'!=_0x1276fc['type'])return;const _0x54afab=_0x1276fc['getContainedElement']();if(null!=_0x54afab&&_0x54afab['is']('element','table')){if('insertion'==_0x1276fc['type']){const _0x4fc1ca=_0x1276fc['getItems']()['filter'](_0x446ff7=>_0x446ff7['is']('$textProxy'))['map'](_0x48f1cf=>_0x48f1cf['data']);if(_0x4fc1ca['length'])return{'type':'insertion','content':c(_0x3b7f14,'*Insert:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4fc1ca['join']('\x20')+'\x22'))};}if('deletion'==_0x1276fc['type']){const _0x4a211b=_0x1276fc['getItems']()['filter'](_0x3f2bad=>_0x3f2bad['is']('$textProxy'))['map'](_0x250210=>_0x250210['data']);if(_0x4a211b['length'])return{'type':'deletion','content':c(_0x3b7f14,'*Remove:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a211b['join']('\x20')+'\x22'))};}}}),_0x904743['descriptionFactory']['registerDescriptionCallback'](_0x9d79fe=>{if('tableRow'==_0x9d79fe['subType']){const _0x16a770=_0x9d79fe['getItems']()['filter'](_0x3b54ec=>_0x3b54ec['is']('$textProxy'))['map'](_0x23e8d2=>_0x23e8d2['data']),_0x236554=this['_getSuggestionCoords'](_0x9d79fe),_0x457f84=_0x236554['maxRow']-_0x236554['minRow']+0x1;if('insertion'==_0x9d79fe['type'])return _0x16a770['length']?{'type':'insertion','content':c(_0x3b7f14,'*Insert:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x457f84,'\x22'+_0x16a770['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3b7f14,'*Insert:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_ROW',_0x457f84))};if('deletion'==_0x9d79fe['type'])return _0x16a770['length']?{'type':'deletion','content':c(_0x3b7f14,'*Remove:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x457f84,'\x22'+_0x16a770['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3b7f14,'*Remove:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_ROW',_0x457f84))};}if('tableColumn'==_0x9d79fe['subType']){const _0x5f3f79=_0x9d79fe['getItems']()['filter'](_0x493985=>_0x493985['is']('$textProxy'))['map'](_0x5ec5e0=>_0x5ec5e0['data']),_0x2dd9de=this['_getSuggestionCoords'](_0x9d79fe),_0x2e7ba0=_0x2dd9de['maxColumn']-_0x2dd9de['minColumn']+0x1;if('insertion'==_0x9d79fe['type'])return _0x5f3f79['length']?{'type':'insertion','content':c(_0x3b7f14,'*Insert:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e7ba0,'\x22'+_0x5f3f79['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3b7f14,'*Insert:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_COLUMN',_0x2e7ba0))};if('deletion'==_0x9d79fe['type'])return _0x5f3f79['length']?{'type':'deletion','content':c(_0x3b7f14,'*Remove:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e7ba0,'\x22'+_0x5f3f79['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3b7f14,'*Remove:*\x20%0',c(_0x3b7f14,'ELEMENT_TABLE_COLUMN',_0x2e7ba0))};}}),_0x904743['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4640d8),_0x904743['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4640d8),_0x904743['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x19f807),_0x904743['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x19f807),_0x904743['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5b6936),_0x904743['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5b6936),_0x904743['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x414bf8),_0x904743['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x414bf8);}['_acceptFormatSuggestionCallbackFactory'](){const _0xeb49da=this['editor'],_0x528c5e=_0xeb49da['model']['document']['selection'];return(_0x8319f2,_0x1b1471)=>{_0xeb49da['model']['change'](_0x5c8b83=>{const {commandName:_0x24c134,commandParams:_0x36b4bf}=_0x1b1471;let _0x3b1e14=_0x8319f2[0x0]['end']['nodeBefore'];_0x36b4bf&&_0x36b4bf[0x0]&&!0x1===_0x36b4bf[0x0]['forceValue']&&(_0x3b1e14=_0x8319f2[0x0]['start']['nodeAfter']);const _0x5a5e03=_0x5c8b83['createRangeIn'](_0x3b1e14);if('$graveyard'==_0x5a5e03['root']['rootName'])return;const _0x229332=Array['from'](_0x528c5e['getRanges']())['map'](_0x375330=>_0x27d8bc['fromRange'](_0x375330));_0x5c8b83['setSelection'](_0x5a5e03),_0xeb49da['commands']['get'](_0x24c134)['refresh'](),_0x36b4bf['push']({'forceDefaultExecution':!0x0}),_0xeb49da['execute'](_0x24c134,..._0x36b4bf);const _0x31242b=_0x229332['filter'](_0x8d15fe=>'$graveyard'!=_0x8d15fe['root']['rootName']);_0x31242b['length']>0x0&&_0x5c8b83['setSelection'](_0x31242b);for(const _0x529063 of _0x229332)_0x529063['detach']();});};}['_getCoordsForCells'](_0x5e869e){const _0xb0b410=this['editor']['plugins']['get']('TableUtils');let _0x4eb289=Number['MAX_SAFE_INTEGER'],_0x3c0121=Number['MIN_SAFE_INTEGER'],_0x15772f=Number['MAX_SAFE_INTEGER'],_0x5195fd=Number['MIN_SAFE_INTEGER'];for(const _0x396f06 of _0x5e869e){if('$graveyard'==_0x396f06['root']['rootName'])continue;const {row:_0x8213ba,column:_0x3db43b}=_0xb0b410['getCellLocation'](_0x396f06),_0xf13938=_0x396f06['hasAttribute']('rowspan')?_0x396f06['getAttribute']('rowspan')-0x1:0x0,_0x518024=_0x396f06['hasAttribute']('colspan')?_0x396f06['getAttribute']('colspan')-0x1:0x0;_0x4eb289=_0x8213ba<_0x4eb289?_0x8213ba:_0x4eb289,_0x3c0121=_0x8213ba+_0xf13938>_0x3c0121?_0x8213ba+_0xf13938:_0x3c0121,_0x15772f=_0x3db43b<_0x15772f?_0x3db43b:_0x15772f,_0x5195fd=_0x3db43b+_0x518024>_0x5195fd?_0x3db43b+_0x518024:_0x5195fd;}return{'minRow':_0x4eb289,'maxRow':_0x3c0121,'minColumn':_0x15772f,'maxColumn':_0x5195fd};}['_setupColumnsRowsFixing'](){const _0x42d69d=this['editor'],_0x28363f=_0x42d69d['plugins']['get']('TrackChangesEditing'),_0x2628ec=_0x42d69d['plugins']['get']('TableUtils');_0x42d69d['model']['document']['on']('change:data',()=>{const _0x4579ae=Array['from'](_0x42d69d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22be92,data:_0x86f3e8}of _0x4579ae){const {group:_0x4fff0a,id:_0x1b7ef0,subType:_0x55416d}=_0x28363f['_splitMarkerName'](_0x22be92);if('suggestion'!=_0x4fff0a)continue;if(null!=_0x86f3e8['oldRange'])continue;const _0x3967f1=_0x28363f['getSuggestion'](_0x1b7ef0);this['_tablePostFixingSubtypes']['includes'](_0x55416d)&&this['_tableSuggestions']['add'](_0x3967f1);}},{'priority':'low'});const _0xce6bd6=(_0x2b21b0,_0x11fc58)=>{let _0x515ce8=!0x1;const _0x15f804=_0x11fc58['createRangeOn'](_0x2b21b0),_0x4e8758=_0x2b21b0['findAncestor']('table'),_0x1373ba=_0x2628ec['getCellLocation'](_0x2b21b0);for(const _0x481f33 of this['_tableSuggestions']){const _0x57cc33=_0x481f33['subType'],_0x563600=_0x57cc33['startsWith']('tablePaste'),_0x77124f=_0x57cc33['substr'](_0x563600?0xa:0x5),_0x281380=_0x77124f['toLowerCase'](),_0x585c72=_0x281380['substr'](0x0,0x3)+'span',_0x199f74='min'+_0x77124f,_0x57c6c1='max'+_0x77124f;if(!_0x481f33['isInContent'])continue;if(_0x4e8758!=_0x481f33['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x481f33['isIntersectingWithRange'](_0x15f804))continue;const _0xbcad3e=_0x2b21b0['hasAttribute'](_0x585c72)?_0x2b21b0['getAttribute'](_0x585c72)-0x1:0x0,_0x3520f9=this['_getSuggestionCoords'](_0x481f33),_0x45a4a1=_0x3520f9[_0x199f74],_0x344f5f=_0x3520f9[_0x57c6c1];_0x45a4a1<=_0x1373ba[_0x281380]&&_0x1373ba[_0x281380]+_0xbcad3e<=_0x344f5f&&(_0x481f33['addRange'](_0x15f804),_0x515ce8=!0x0);}return _0x515ce8;};_0x42d69d['model']['document']['registerPostFixer'](_0x1f1e4d=>{let _0x58b4d4=!0x1;for(const _0x40cc22 of _0x42d69d['model']['document']['differ']['getChanges']())if('insert'==_0x40cc22['type']){if('tableRow'==_0x40cc22['name']){for(const _0x598d4f of _0x40cc22['position']['nodeAfter']['getChildren']())_0x58b4d4=_0x58b4d4||_0xce6bd6(_0x598d4f,_0x1f1e4d);}else'tableCell'==_0x40cc22['name']&&(_0x58b4d4=_0x58b4d4||_0xce6bd6(_0x40cc22['position']['nodeAfter'],_0x1f1e4d));}return _0x58b4d4;});}['_getSuggestionCoords'](_0x1d4f6b){return this['_getCoordsForCells'](_0x1d4f6b['getRanges']()['map'](_0x3f38ea=>_0x3f38ea['start']['nodeAfter']));}}function Ne(_0x57c40d){return Array['from'](new Set(_0x57c40d)['values']());}class Nt extends _0xc188f5{static get['requires'](){return[Ct];}['afterInit'](){const _0x1d4451=this['editor'],_0x33f3e1=_0x1d4451['model']['document']['selection'],_0x1ca366=_0x1d4451['locale'];if(!_0x1d4451['plugins']['has']('TableEditing'))return;const _0xaef7dd=_0x1d4451['plugins']['get']('TrackChangesEditing'),_0x1a61b3=_0x1d4451['plugins']['get']('TableUtils'),_0xbed722=_0x1d4451['plugins']['get'](Ct);_0xbed722['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xaef7dd['enableCommand']('mergeTableCells',()=>{const _0x356b26=_0x1a61b3['getSelectionAffectedTableCells'](_0x1d4451['model']['document']['selection']);_0x1d4451['model']['change'](()=>{_0xaef7dd['markMultiRangeBlockFormat'](_0x356b26,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1d4451['commands']['get']('mergeTableCells')['on']('execute',(_0x2cfdf8,_0x20f03c)=>{_0x1d4451['commands']['get']('trackChanges')['value']&&(_0x20f03c['length']>0x0&&_0x20f03c[_0x20f03c['length']-0x1]&&_0x20f03c[_0x20f03c['length']-0x1]['forceDefaultExecution']||_0xaef7dd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2cfdf8['stop']());},{'priority':'highest'});for(const _0x5e5db6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x53db76=_0x1d4451['commands']['get'](_0x5e5db6);_0xaef7dd['enableCommand'](_0x5e5db6,()=>{const _0x49f30d=_0x1d4451['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1e6de0=>_0x1e6de0['is']('element','tableCell')),_0x3bcb0c=_0x53db76['value'];_0x1d4451['model']['change'](()=>{_0xaef7dd['markMultiRangeBlockFormat']([_0x49f30d,_0x3bcb0c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xf8287f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x42e187=_0x1d4451['commands']['get'](_0xf8287f);_0xaef7dd['enableCommand'](_0xf8287f,()=>{const _0x5934ef=_0x1a61b3['getSelectionAffectedTableCells'](_0x1d4451['model']['document']['selection'])[0x0],_0x19d76c=_0x5934ef['findAncestor']('table'),{column:_0x48bc60,row:_0x2efe7f}=_0x1a61b3['getCellLocation'](_0x5934ef);let _0xd32bca=[];if('horizontally'==_0x42e187['direction']){const _0x494ed2=_0x1a61b3['createTableWalker'](_0x19d76c,{'startRow':_0x2efe7f,'endRow':_0x2efe7f,'includeAllSlots':!0x0});_0xd32bca=Array['from'](_0x494ed2)['map'](_0x54561f=>_0x54561f['cell']);}else{const _0x5c40b6=_0x1a61b3['createTableWalker'](_0x19d76c,{'column':_0x48bc60,'includeAllSlots':!0x0});_0xd32bca=Array['from'](_0x5c40b6)['map'](_0x273544=>_0x273544['cell']);}_0x1d4451['model']['change'](_0x149056=>{_0xaef7dd['markBlockFormat'](_0x149056['createRangeOn'](_0x5934ef),{'commandName':_0xf8287f,'commandParams':[]},_0xd32bca,_0xf8287f);});});}_0xaef7dd['descriptionFactory']['registerDescriptionCallback'](_0x2fe1aa=>{if('formatBlock'!=_0x2fe1aa['type']&&'formatInline'!=_0x2fe1aa['type'])return;const {data:_0x62fa13}=_0x2fe1aa;return _0x62fa13&&'mergeTableCells'==_0x62fa13['commandName']?{'type':'format','content':c(_0x1ca366,'*Merge\x20cells*')}:void 0x0;}),_0xaef7dd['descriptionFactory']['registerDescriptionCallback'](_0x4c9743=>{if('formatBlock'!=_0x4c9743['type']&&'formatInline'!=_0x4c9743['type'])return;const {data:_0xd598c0}=_0x4c9743;return _0xd598c0?'splitTableCellVertically'==_0xd598c0['commandName']?{'type':'format','content':c(_0x1ca366,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xd598c0['commandName']?{'type':'format','content':c(_0x1ca366,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3b99fa=_0xbed722['_acceptFormatSuggestionCallbackFactory']();for(const _0x2316ed of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xaef7dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2316ed,'accept',_0x3b99fa);for(const _0x6f523e of['splitTableCellVertically','splitTableCellHorizontally'])_0xaef7dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6f523e,'accept',_0x3b99fa);_0xaef7dd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4688e6=>{_0x1d4451['model']['change'](_0x417856=>{const _0x2f9fc0=Array['from'](_0x33f3e1['getRanges']())['map'](_0x4d7ab6=>_0x27d8bc['fromRange'](_0x4d7ab6));_0x417856['setSelection'](_0x4688e6),_0x1d4451['commands']['get']('mergeTableCells')['refresh'](),_0x1d4451['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x26cd2a=_0x2f9fc0['filter'](_0x2c9438=>'$graveyard'!=_0x2c9438['root']['rootName']);_0x26cd2a['length']>0x0&&_0x417856['setSelection'](_0x26cd2a);for(const _0x2d5328 of _0x2f9fc0)_0x2d5328['detach']();});});for(const _0x28451a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x58288a=_0x1d4451['commands']['get'](_0x28451a);_0x58288a['on']('set:isEnabled',(_0x2d844b,_0x48a262,_0x4c2376)=>{if(_0x4c2376){const _0x15c3f8=_0x1d4451['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2e03a=>_0x2e03a['is']('element','tableCell'));this['_areMergableCells'](_0x58288a['value'],_0x15c3f8)||(_0x2d844b['return']=!0x1,_0x2d844b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x69edcb=this['editor']['commands']['get']('mergeTableCells'),_0x346ee6=this['editor']['plugins']['get']('TableUtils');if(!_0x69edcb['isEnabled'])return!0x1;const _0x3577f3=_0x346ee6['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2fb6fc of _0x3577f3)for(const _0x29a4a9 of _0x3577f3)if(_0x2fb6fc!=_0x29a4a9&&!this['_areMergableCells'](_0x2fb6fc,_0x29a4a9))return!0x1;return!0x0;}['_areMergableCells'](_0x595897,_0x36502b){const _0x43bf42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x355bfb=this['editor']['model']['createRangeOn'](_0x595897),_0x47d208=this['editor']['model']['createRangeOn'](_0x36502b),_0x3ac20c=new Set(),_0x1be012=new Set();for(const _0x5f5db5 of _0x43bf42['getSuggestions']())if(('insertion'==_0x5f5db5['type']||'deletion'==_0x5f5db5['type']||'mergeTableCells'==_0x5f5db5['subType'])&&_0x5f5db5['isInContent']){for(const _0x4db40a of _0x5f5db5['getRanges']())_0x4db40a['containsRange'](_0x355bfb,!0x0)&&_0x3ac20c['add'](_0x5f5db5['type']+':'+_0x5f5db5['author']['id']),_0x4db40a['containsRange'](_0x47d208,!0x0)&&_0x1be012['add'](_0x5f5db5['type']+':'+_0x5f5db5['author']['id']);}if(_0x3ac20c['size']!=_0x1be012['size'])return!0x1;for(const _0x5aa99f of _0x3ac20c)if(!_0x1be012['has'](_0x5aa99f))return!0x1;return!0x0;}}class Dt extends _0xc188f5{static get['requires'](){return[Ct];}['afterInit'](){const _0x5b9ade=this['editor'];if(!_0x5b9ade['plugins']['has']('TableEditing'))return;const _0x5d093a=_0x5b9ade['locale'],_0x1dd4e6=_0x5b9ade['plugins']['get']('TrackChangesEditing');_0x1dd4e6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1dd4e6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1dd4e6['registerBlockAttribute']('headingRows'),_0x1dd4e6['registerBlockAttribute']('headingColumns'),_0x1dd4e6['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x5d093a,'FORMAT_HEADER_ROW')),_0x1dd4e6['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x5d093a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b65e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1180b2=this['editor']['plugins']['get']('TableUtils'),_0x175b2f=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x4f2e98({showActiveMarker:_0x404915=!0x0,setDataAttribute:_0x3eeee7=!0x0}={}){return(_0x4d15bb,_0x5e63f4,_0x3126c7)=>{const {type:_0x561f17,id:_0x4270fc}=_0x5b65e5['_splitMarkerName'](_0x5e63f4['markerName']),_0x5da953=_0x5b65e5['getSuggestion'](_0x4270fc),_0x96f786=_0x5da953['data'];if('formatBlock'!=_0x5da953['type']||!_0x96f786||'setTableColumnHeader'!=_0x96f786['commandName'])return;if(_0x5e63f4['item'])return void _0x4d15bb['stop']();if(!_0x3126c7['consumable']['consume'](_0x5e63f4['markerRange'],_0x4d15bb['name']))return;const _0x2e0d9b=_0x5e63f4['markerRange']['start']['nodeAfter'],_0x55a88f=_0x5e63f4['markerRange']['end']['nodeBefore'],_0x58a989=_0x2e0d9b['parent']['parent'],{column:_0x14131c}=_0x1180b2['getCellLocation'](_0x2e0d9b),{column:_0x188349}=_0x1180b2['getCellLocation'](_0x55a88f);for(let _0x13b1e4=_0x14131c;_0x13b1e4<=_0x188349;_0x13b1e4++){const _0x3eebfa=_0x1180b2['createTableWalker'](_0x58a989,{'column':_0x13b1e4,'includeAllSlots':!0x1});for(const _0x11f7af of _0x3eebfa){const _0x299039=_0x11f7af['cell'],_0x4bba3d=_0x3126c7['mapper']['toViewElement'](_0x299039);_0x3126c7['writer']['addClass']('ck-suggestion-marker-'+_0x561f17,_0x4bba3d),_0x3eeee7&&_0x3126c7['writer']['setAttribute']('data-suggestion',_0x4270fc,_0x4bba3d),_0x3126c7['mapper']['bindElementToMarker'](_0x4bba3d,_0x5e63f4['markerName']),_0x404915&&(_0x5b65e5['activeMarkers']['includes'](_0x5e63f4['markerName'])?_0x3126c7['writer']['addClass']('ck-suggestion-marker--active',_0x4bba3d):_0x3126c7['writer']['removeClass']('ck-suggestion-marker--active',_0x4bba3d));}}};}_0x5b65e5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x175b2f),_0x5b65e5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x175b2f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f2e98(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xb37c92,_0x1434f8,_0x18c61e)=>{_0x18c61e['options']['showSuggestionHighlights']&&_0x4f2e98({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xb37c92,_0x1434f8,_0x18c61e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x443520,_0x4372d4,_0x185c24)=>{const {type:_0x5e8ecb,id:_0x22d38e}=_0x5b65e5['_splitMarkerName'](_0x4372d4['markerName']),_0x2d60d5=_0x5b65e5['getSuggestion'](_0x22d38e),_0xbc20af=_0x2d60d5['data'];if('formatBlock'!=_0x2d60d5['type']||!_0xbc20af||'setTableColumnHeader'!=_0xbc20af['commandName'])return;const _0x429efa=_0x185c24['mapper']['markerNameToElements'](_0x4372d4['markerName']);if(_0x429efa){for(const _0x17d6f3 of _0x429efa)_0x185c24['writer']['removeClass']('ck-suggestion-marker-'+_0x5e8ecb,_0x17d6f3),_0x185c24['writer']['removeClass']('ck-suggestion-marker--active',_0x17d6f3),_0x185c24['writer']['removeAttribute']('data-suggestion',_0x17d6f3),_0x185c24['mapper']['unbindElementFromMarkerName'](_0x17d6f3,_0x4372d4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe31d19=this['editor'],_0x46d8e4=_0xe31d19['locale'];function _0x326f1a(_0x3f06ff){return{'type':'format','content':c(_0x46d8e4,'*Format:*\x20%0',_0x3f06ff)};}_0xe31d19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21c7f2=>{if('formatBlock'!=_0x21c7f2['type'])return;const {data:_0x250675}=_0x21c7f2;if(_0x250675){if('setTableRowHeader'==_0x250675['commandName']){const _0x4d9af8=_0x250675['commandParams'][0x0]['forceValue'];return _0x326f1a(c(_0x46d8e4,_0x4d9af8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x250675['commandName']){const _0x14f71=_0x250675['commandParams'][0x0]['forceValue'];return _0x326f1a(c(_0x46d8e4,_0x14f71?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0xc188f5{['afterInit'](){const _0x2323db=this['editor'],_0x5c3144=_0x2323db['locale'],_0x191a5d=_0x2323db['plugins']['get']('TrackChangesEditing');function _0x70172e(_0xa4712){return{'type':'format','content':''+c(_0x5c3144,'*Set\x20table\x20type:*\x20%0',_0xa4712)};}_0x2323db['plugins']['has']('TableLayout')&&(_0x191a5d['enableCommand']('insertTableLayout'),_0x191a5d['enableDefaultAttributesIntegration']('tableType'),_0x191a5d['registerBlockAttribute']('tableType'),_0x191a5d['descriptionFactory']['registerElementLabel'](_0x497cc0=>_0x497cc0['is']('element','table')&&'layout'===_0x497cc0['getAttribute']('tableType'),_0x401c34=>c(_0x5c3144,'ELEMENT_LAYOUT_TABLE',_0x401c34)),_0x191a5d['descriptionFactory']['registerDescriptionCallback'](_0x2e3d5c=>{const {data:_0x5a444b}=_0x2e3d5c;if(_0x5a444b&&'tableType'==_0x5a444b['key'])switch(_0x5a444b['newValue']){case'layout':return _0x70172e(c(_0x5c3144,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x70172e(c(_0x5c3144,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x5f1ccb=>[_0x5f1ccb,null]));class $t extends _0xc188f5{static get['requires'](){return[Ct];}['afterInit'](){const _0x293ea6=this['editor'];if(!_0x293ea6['plugins']['has']('TableClipboard'))return;const _0x4af757=_0x293ea6['plugins']['get']('TrackChangesEditing'),_0x14c526=_0x293ea6['plugins']['get']('TableUtils'),_0x2561dc=_0x293ea6['plugins']['get'](Ct),_0x4b66da=_0x293ea6['plugins']['get']('TableClipboard'),_0x3bf8df=_0x293ea6['plugins']['get']('TableSelection'),_0x55a525=_0x293ea6['plugins']['get'](_0x3716ff);_0x2561dc['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x293ea6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x293ea6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4d39af=null,_0x431fbe=!0x1;_0x55a525['on']('contentInsertion',(_0xb8c848,_0x45ae43)=>{_0x431fbe='paste'===_0x45ae43['method'];}),_0x293ea6['model']['on']('insertContent',(_0x52d711,_0x5732a0)=>{if(!_0x431fbe&&null===_0x3bf8df['getSelectedTableCells']())return;const [_0x34bf8e,_0x898883]=_0x5732a0,_0xfd55f=_0x5732a0[_0x5732a0['length']-0x1];_0xfd55f&&_0xfd55f['forceDefaultExecution']||_0x4af757['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x52d5ea,_0x4f7792,_0x4ac962,_0x2b227,_0x39c7bb){if(_0x4f7792&&!_0x4f7792['is']('documentSelection'))return!0x1;const _0x5325b2=_0x39c7bb['getTableIfOnlyTableInContent'](_0x52d5ea,_0x4ac962);if(!_0x5325b2||!De(_0x5325b2,void 0x0,_0x2b227))return!0x1;const _0x31fabe=_0x2b227['getSelectionAffectedTableCells'](_0x4ac962['document']['selection']);if(!_0x31fabe['length'])return!0x1;const _0x293ab7=_0x31fabe[0x0]['findAncestor']('table'),_0x4a82ec=_0x2b227['getRowIndexes'](_0x31fabe),_0x2808b0=_0x2b227['getColumnIndexes'](_0x31fabe),_0xba82f3={'startRow':_0x4a82ec['first'],'endRow':_0x4a82ec['last'],'startColumn':_0x2808b0['first'],'endColumn':_0x2808b0['last']};return 0x1==_0x31fabe['length']&&(_0xba82f3['endRow']+=_0x2b227['getRows'](_0x5325b2)-0x1,_0xba82f3['endColumn']+=_0x2b227['getColumns'](_0x5325b2)-0x1),De(_0x293ab7,_0xba82f3,_0x2b227);}(_0x34bf8e,_0x898883,_0x293ea6['model'],_0x14c526,_0x4b66da)&&(_0x52d711['stop'](),_0x4d39af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x293ea6['model']['change'](()=>{_0x293ea6['model']['insertContent'](_0x5732a0[0x0],_0x5732a0[0x1],_0x5732a0[0x2],{'forceDefaultExecution':!0x0});const _0xa11239=_0x543158(),{rowInsertionRanges:_0x1f020c,columnInsertionRanges:_0x1fee31,insertionRanges:_0x3bb88f,deletionRanges:_0x1194a5,cells:_0x3821ae}=_0x4d39af;_0x1f020c['length']&&_0x4af757['markMultiRangeInsertion'](_0x1f020c,'tablePasteRow',{'tablePasteChainId':_0xa11239}),_0x1fee31['length']&&_0x4af757['markMultiRangeInsertion'](_0x1fee31,'tablePasteColumn',{'tablePasteChainId':_0xa11239}),_0x3bb88f['length']&&(_0x4af757['markMultiRangeInsertion'](_0x3bb88f,'tablePaste',{'tablePasteChainId':_0xa11239,'skipNestingCheck':!0x0}),_0x3bb88f['forEach'](_0x5d35f8=>_0x5d35f8['detach']?.())),_0x1194a5['length']&&(_0x4af757['markMultiRangeDeletion'](_0x1194a5,'tablePaste',{'tablePasteChainId':_0xa11239,'skipNestingCheck':!0x0}),_0x1194a5['forEach'](_0x394326=>_0x394326['detach']?.()));const _0x3bf60f=_0x4af757['markMultiRangeBlockFormat'](_0x3821ae['map'](({element:_0x47534e})=>_0x47534e),{'formatGroupId':_0x543158()},[],'tablePasteCell',{'tablePasteChainId':_0xa11239});if(_0x3bf60f){const _0x328422=_0x3bf60f['getMarkers'](),_0x367d1e=[];for(const {element:_0x3a5eb6,attributes:_0x4e2998}of _0x3821ae){if(!_0x4e2998)continue;const _0x126764=_0x293ea6['model']['createRangeOn'](_0x3a5eb6),_0x2dff2a=_0x328422['find'](_0x12e308=>_0x12e308['getRange']()['isEqual'](_0x126764));_0x2dff2a&&_0x367d1e['push']([_0x2dff2a['name'],_0x4e2998]);}_0x367d1e['length']&&_0x3bf60f['setAttribute']('markerAttributes',Object['fromEntries'](_0x367d1e));}_0x4d39af=null;}));},{'priority':_0x1e4238['high']+0xa}),_0x55a525['on']('contentInsertion',()=>{_0x431fbe=!0x1;},{'priority':'lowest'}),_0x293ea6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5be193,_0x1aad28)=>{const [_0x440743,_0x216c3e,,_0x27cbf8]=_0x1aad28;if(!_0x4d39af)return;_0x5be193['stop']();const _0x37c45b=_0x440743['cell'],_0x4c612d=_0x216c3e,_0x187649=Ue(_0x37c45b),_0x130252=Ue(_0x4c612d);_0x5be193['return']=_0x37c45b;let _0x5b149a=null,_0x59c438=null;if(_0x130252||_0x187649){if(_0x187649&&!_0x130252){_0x27cbf8['remove'](_0x37c45b['getChild'](0x0));for(const _0x1ac406 of Array['from'](_0x4c612d['getChildren']()))_0x27cbf8['insert'](_0x1ac406,_0x37c45b,'end');const _0x1007ae=_0x4d39af['rowInsertionIndexes']['includes'](_0x440743['row']),_0x4ebcc2=_0x4d39af['columnInsertionIndexes']['includes'](_0x440743['column']);_0x1007ae||_0x4ebcc2||(_0x5b149a=_0x27d8bc['fromRange'](_0x27cbf8['createRangeIn'](_0x37c45b)));}else _0x130252&&!_0x187649&&(_0x59c438=_0x27cbf8['createRangeIn'](_0x37c45b));}else{const _0x4dd4e4=_0x27cbf8['createElement']('tableCellSuggestion'),_0x4f956d=_0x27cbf8['createElement']('tableCellSuggestion');_0x27cbf8['wrap'](_0x27cbf8['createRangeIn'](_0x37c45b),_0x4f956d),_0x27cbf8['insert'](_0x4dd4e4,_0x37c45b,0x0);for(const _0x1bf061 of Array['from'](_0x4c612d['getChildren']()))_0x27cbf8['insert'](_0x1bf061,_0x4dd4e4,'end');_0x5b149a=_0x27d8bc['fromRange'](_0x27cbf8['createRangeOn'](_0x4dd4e4)),_0x59c438=_0x27d8bc['fromRange'](_0x27cbf8['createRangeOn'](_0x4f956d));}const _0x1a5e69=Array['from'](_0x4c612d['getAttributes']())['filter'](([_0x347db8])=>xe['includes'](_0x347db8));_0x4d39af['cells']['push']({'element':_0x37c45b,'attributes':_0x1a5e69['length']?Object['fromEntries'](_0x1a5e69):null}),_0x5b149a&&_0x4d39af['insertionRanges']['push'](_0x5b149a),_0x59c438&&_0x4d39af['deletionRanges']['push'](_0x59c438);},{'priority':'high'}),_0x14c526['on']('insertColumns',(_0x34d9a1,_0xd7004b)=>{const [_0x427fee,_0x5cafa7={}]=_0xd7004b;if(!_0x4d39af)return;const _0x44e535=_0x5cafa7['at']||0x0,_0x456993=_0x5cafa7['columns']||0x1;_0x4d39af['columnInsertionIndexes']=new Array(_0x456993)['fill'](_0x44e535)['map']((_0x3083d8,_0x1ce23e)=>_0x3083d8+_0x1ce23e);for(const {cell:_0x2747c5}of _0x14c526['createTableWalker'](_0x427fee,{'startColumn':_0x44e535,'endColumn':_0x44e535+_0x456993-0x1}))_0x4d39af['columnInsertionRanges']['push'](_0x293ea6['model']['createRangeOn'](_0x2747c5));},{'priority':'low'}),_0x14c526['on']('insertRows',(_0x570fe8,_0x3ed443)=>{const [_0x332123,_0x405208={}]=_0x3ed443;if(!_0x4d39af)return;const _0x4f1f8d=_0x405208['at']||0x0,_0x3fb62c=_0x405208['rows']||0x1;_0x4d39af['rowInsertionIndexes']=new Array(_0x3fb62c)['fill'](_0x4f1f8d)['map']((_0xbf656f,_0x568b25)=>_0xbf656f+_0x568b25);for(const {cell:_0x304715}of _0x14c526['createTableWalker'](_0x332123,{'startRow':_0x4f1f8d,'endRow':_0x4f1f8d+_0x3fb62c-0x1}))_0x4d39af['rowInsertionRanges']['push'](_0x293ea6['model']['createRangeOn'](_0x304715));},{'priority':'low'}),_0x4af757['descriptionFactory']['registerDescriptionCallback'](_0x2a1094=>{if(_0x2a1094['subType']&&_0x2a1094['subType']['startsWith']('tablePaste'))return _0x2a1094['previous']?{}:{'type':'insertion','content':c(_0x293ea6['locale'],'*Replace\x20table\x20cells*')};});const _0x263ca4=()=>!0x1;for(const _0x59c966 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4af757['_suggestionFactory']['registerCustomCallback']('insertion',_0x59c966,'join',_0x263ca4),_0x4af757['_suggestionFactory']['registerCustomCallback']('deletion',_0x59c966,'join',_0x263ca4),_0x4af757['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59c966,'join',_0x263ca4);_0x4af757['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x263ca4),_0x4af757['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x43c7d8,_0x5821c1,_0x4b7886)=>{const _0xbaf176=_0x43c7d8['map'](_0x1cc418=>_0x1cc418['getContainedElement']())['filter'](_0x507aa1=>_0x507aa1),_0x891e95=new Map(_0xbaf176['map'](_0x2a12ca=>[_0x2a12ca,null]));if(_0x4d39af){for(const {element:_0x1f5852,attributes:_0x5c7f4d}of _0x4d39af['cells'])_0x5c7f4d&&_0x891e95['set'](_0x1f5852,_0x5c7f4d);}else{if(_0x4b7886&&_0x4b7886['markerAttributes'])for(const [_0x2ee226,_0x13fbb8]of Object['entries'](_0x4b7886['markerAttributes'])){const _0x5bae97=_0x293ea6['model']['markers']['get'](_0x2ee226),_0x3d82e2=_0x5bae97?_0x5bae97['getRange']()['getContainedElement']():null;_0x3d82e2&&_0x891e95['set'](_0x3d82e2,_0x13fbb8);}}_0x293ea6['model']['change'](_0x170a9d=>{for(const [_0x5dced7,_0x551243]of _0x891e95)_0x170a9d['setAttributes']({...Oe,..._0x551243},_0x5dced7);});});const _0x9c5c73=(_0x292d93,_0x480126)=>{_0x4af757['_suggestionFactory']['registerCustomCallback'](_0x292d93,'tablePaste',_0x480126,(_0x55527f,_0x471eac,_0x35e3e0)=>{_0x293ea6['model']['change'](_0x4d6c09=>{const _0x134ae6=[];for(const _0x51cd0 of _0x55527f){const _0x50340f=_0x51cd0['start']['nodeAfter'];_0x50340f['is']('element','tableCellSuggestion')&&_0x134ae6['push'](_0x50340f);}_0x4af757['_suggestionFactory']['getSuggestionCallback'](_0x292d93,null,_0x480126)(_0x55527f,_0x471eac,_0x35e3e0);for(const _0x303a27 of _0x134ae6)'$graveyard'!=_0x303a27['root']['rootName']&&_0x4d6c09['unwrap'](_0x303a27);});});};_0x9c5c73('insertion','accept'),_0x9c5c73('insertion','discard'),_0x9c5c73('deletion','accept'),_0x9c5c73('deletion','discard'),_0x4af757['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f8350=>{const _0x1b9ffc=_0x4f8350['map'](_0x328c05=>_0x328c05['getContainedElement']()),_0x5936b6=_0x1b9ffc[0x0]['findAncestor']('table'),{minRow:_0x36ff14,maxRow:_0x16d104}=_0x2561dc['_getCoordsForCells'](_0x1b9ffc);_0x14c526['removeRows'](_0x5936b6,{'at':_0x36ff14,'rows':_0x16d104-_0x36ff14+0x1});}),_0x4af757['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x461dc8=>{const _0x1380e2=_0x461dc8['map'](_0xa7c094=>_0xa7c094['getContainedElement']()),_0x1c1b19=_0x1380e2[0x0]['findAncestor']('table'),{minColumn:_0x455b32,maxColumn:_0xea88d4}=_0x2561dc['_getCoordsForCells'](_0x1380e2);_0x14c526['removeColumns'](_0x1c1b19,{'at':_0x455b32,'columns':_0xea88d4-_0x455b32+0x1});});const _0x2d6004=(_0x9e52d5,_0x44e9b3)=>{if(!_0x44e9b3['subType']||!_0x44e9b3['subType']['startsWith']('tablePaste'))return;const _0x211bd4=_0x44e9b3['attributes']['tablePasteChainId'],_0xd53b3e=_0x4af757['getSuggestions']()['filter'](_0x233152=>_0x233152['isInContent']&&_0x233152['attributes']&&_0x233152['attributes']['tablePasteChainId']==_0x211bd4);_0xd53b3e['length']&&_0x44e9b3['getAllAdjacentSuggestions']()['length']!=_0xd53b3e['length']&&_0xd53b3e['reduce']((_0xdd425c,_0x258e20)=>(_0xdd425c['next']=_0x258e20,_0x258e20['previous']=_0xdd425c,_0x258e20));};function _0x12be59(_0xdbcd4f,_0x4ca5c9=!0x0){const {id:_0xf2ae2d,authorId:_0x3e9c79}=_0x4af757['_splitMarkerName'](_0xdbcd4f['markerName']),_0x5900b8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5adce6=_0x4af757['activeMarkers']['includes'](_0xdbcd4f['markerName']);return _0x5adce6&&_0x5900b8['push']('ck-suggestion-marker--active'),{'classes':_0x5900b8,'attributes':{'data-suggestion':_0xf2ae2d,'data-author-id':_0x3e9c79},'priority':_0x5adce6&&_0x4ca5c9?0xbc2:0xbb8};}_0x4af757['on']('suggestionLoaded',_0x2d6004,{'priority':'high'}),_0x4af757['on']('suggestionUnloaded',_0x2d6004,{'priority':'high'}),_0x293ea6['model']['document']['registerPostFixer'](()=>{let _0x300ac7=!0x1;const _0x46ede3=Array['from'](_0x293ea6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4378ba,data:_0x4ba51d}of _0x46ede3){const {group:_0x3d0818,type:_0x22b5af,id:_0x2cc235}=_0x4af757['_splitMarkerName'](_0x4378ba);if('suggestion'!=_0x3d0818||'deletion'!=_0x22b5af||_0x4ba51d['oldRange'])continue;if(!_0x4af757['hasSuggestion'](_0x2cc235))continue;const _0x56cb0f=_0x4af757['getSuggestion'](_0x2cc235)['getRanges'](),_0x2f6afa=_0x293ea6['plugins']['get']('Users')['me'];for(const _0x1a4708 of _0x4af757['getSuggestions']()){if(!_0x1a4708['isInContent']||_0x1a4708['author']!=_0x2f6afa)continue;if('formatBlock'!=_0x1a4708['type']||'tablePasteCell'!=_0x1a4708['subType'])continue;if(_0x1a4708['getRanges']()['every'](_0xd55bdf=>_0x56cb0f['some'](_0x163f99=>_0x163f99['containsRange'](_0xd55bdf,!0x0)))){for(const _0x95e8f of _0x1a4708['getAllAdjacentSuggestions']())_0x95e8f['isInContent']&&(_0x95e8f['discard'](),_0x300ac7=!0x0);}}}return _0x300ac7;}),_0x293ea6['model']['document']['registerPostFixer'](_0x45ec89=>{const _0x4b426f=_0x293ea6['commands']['get']('redo');if(!_0x4b426f||!_0x4b426f['_createdBatches']['has'](_0x45ec89['batch']))return!0x1;let _0x9dedfe=!0x1;const _0x4f9f28=_0x293ea6['plugins']['get']('Users')['me'],_0x336f50=_0x293ea6['model']['document']['differ']['getChanges'](),_0x3528c9=Array['from'](_0x293ea6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5ef82c,data:_0x2e317f})=>{const {group:_0x491cb9,subType:_0x3ef800,authorId:_0x1c5741}=_0x4af757['_splitMarkerName'](_0x5ef82c);return'suggestion'==_0x491cb9&&'tablePaste'==_0x3ef800&&_0x1c5741==_0x4f9f28['id']&&!_0x2e317f['oldRange'];});for(const _0x3fd668 of _0x336f50){if('insert'!=_0x3fd668['type']||'tableCellSuggestion'!=_0x3fd668['name']||0x1!=_0x3fd668['length'])continue;const _0x5844c2=_0x45ec89['createRange'](_0x3fd668['position'],_0x3fd668['position']['getShiftedBy'](0x1));if(!_0x3528c9['find'](({data:_0x5d4b60})=>_0x5d4b60['newRange']['isEqual'](_0x5844c2))){for(const {name:_0x2de7fc,data:_0x1bb2ad}of _0x3528c9)if(_0x5844c2['containsRange'](_0x1bb2ad['newRange'])){_0x45ec89['updateMarker'](_0x2de7fc,{'range':_0x5844c2}),_0x9dedfe=!0x0;break;}}}return _0x9dedfe;}),_0x293ea6['model']['document']['registerPostFixer'](_0x3ba426=>{let _0x5811f3=!0x1;const _0x27b530=_0x293ea6['plugins']['get']('Users')['me'],_0x379b7d=_0x4af757['getSuggestions']()['filter'](_0x1fe49c=>_0x1fe49c['isInContent']&&_0x1fe49c['author']==_0x27b530),_0x97f84f=new Set(),_0x293f3d=new Set();for(const _0x2e33c8 of _0x379b7d)if('tablePaste'==_0x2e33c8['subType'])for(const _0x13e5f0 of _0x2e33c8['getMarkers']()){const _0x5e6b75=_0x13e5f0['getRange']()['getContainedElement']();if(_0x5e6b75){if(_0x5e6b75['is']('element','tableCellSuggestion')&&Ue(_0x5e6b75)){_0x2e33c8['removeMarker'](_0x13e5f0['name']),_0x97f84f['add'](_0x5e6b75),_0x5811f3=!0x0;const _0x523793=_0x5e6b75['nextSibling'],_0xa0b41f=_0x5e6b75['previousSibling'],_0x8a172d=_0x523793&&_0x523793['is']('element','tableCellSuggestion'),_0x214188=_0xa0b41f&&_0xa0b41f['is']('element','tableCellSuggestion');_0x8a172d&&!_0x97f84f['has'](_0x523793)&&_0x293f3d['add'](_0x523793),_0x214188&&!_0x97f84f['has'](_0xa0b41f)&&_0x293f3d['add'](_0xa0b41f);}else _0x5e6b75['is']('element','paragraph')&&_0x5e6b75['isEmpty']&&(_0x2e33c8['removeMarker'](_0x13e5f0['name']),_0x5811f3=!0x0);}}else{if('tablePasteCell'==_0x2e33c8['subType']){if(!_0x2e33c8['attributes']||!_0x2e33c8['attributes']['tablePasteChainId'])continue;const _0x4221bf=_0x2e33c8['attributes']['markerAttributes'];if(_0x4221bf&&Object['keys'](_0x4221bf)['length'])continue;const _0x6ebd71=_0x2e33c8['attributes']['tablePasteChainId'];let _0x5cbb3e=!0x0,_0x352e8d=!0x0;for(const _0x387415 of _0x379b7d)if(_0x387415['subType']&&_0x387415['subType']['startsWith']('tablePaste')){if(!_0x387415['attributes']['tablePasteChainId']){_0x352e8d=!0x1;break;}if(_0x387415['id']!=_0x2e33c8['id']&&_0x387415['attributes']['tablePasteChainId']==_0x6ebd71){_0x5cbb3e=!0x1;break;}}_0x352e8d&&_0x5cbb3e&&(_0x2e33c8['removeMarkers'](),_0x5811f3=!0x0);}}for(const _0x39984c of _0x97f84f)_0x3ba426['remove'](_0x39984c);for(const _0x42f9fe of _0x293f3d)_0x3ba426['unwrap'](_0x42f9fe);return _0x5811f3;}),_0x293ea6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4ba816=>_0x12be59(_0x4ba816),'converterPriority':'high'}),_0x293ea6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x19b1df,_0x2b8460)=>_0x2b8460['options']['showSuggestionHighlights']?_0x12be59(_0x19b1df,!0x1):null,'converterPriority':'high'});const _0x2cf11f=_0x293ea6['editing']['view'];this['listenTo'](_0x2cf11f['document'],'clipboardOutput',(_0x2f0c06,_0x5bf987)=>{const _0x1fbf7d=[];for(const _0x31a3bf of _0x2cf11f['createRangeIn'](_0x5bf987['content'])['getItems']())_0x31a3bf['is']('element','suggestion-td')&&_0x1fbf7d['push'](_0x31a3bf);_0x2cf11f['change'](_0x199fbc=>{for(const _0x16ad60 of _0x1fbf7d)_0x199fbc['move'](_0x199fbc['createRangeIn'](_0x16ad60),_0x199fbc['createPositionBefore'](_0x16ad60)),_0x199fbc['remove'](_0x16ad60);});});}}function Ue(_0x554cba){if(_0x554cba['isEmpty'])return!0x0;const _0x2d380d=_0x554cba['getChild'](0x0);return _0x2d380d['is']('element','paragraph')&&_0x2d380d['isEmpty'];}function De(_0x2a80df,_0x370850={},_0x35eae7){for(const {isAnchor:_0x2285ef,cellHeight:_0x3cc02c,cellWidth:_0x101111}of _0x35eae7['createTableWalker'](_0x2a80df,{'includeAllSlots':!0x0,..._0x370850}))if(!_0x2285ef||0x1!=_0x3cc02c||0x1!=_0x101111)return!0x1;return!0x0;}class Bt extends _0xc188f5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x260849=this['editor']['plugins']['get']('TrackChangesEditing');_0x260849['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x260849['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x260849['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x260849['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x260849['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x260849['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4ffcdd,_0x39aaa7){const _0x471fd9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24cdc3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5d51e4=_0x39aaa7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x286c4f=_0x24cdc3['getColumnGroupElement'](_0x5d51e4);let _0x3d1693=_0x286c4f?_0x24cdc3['getTableColumnsWidths'](_0x286c4f):null,_0x5273ca=_0x5d51e4['getAttribute']('tableWidth')||null;const _0x223fcf=_0x39aaa7['tableWidth']||_0x5273ca,_0x5eaff2=_0x39aaa7['columnWidths']||_0x3d1693,_0x1a8668=this['editor']['plugins']['get']('Users')['me'];for(const _0x5401b2 of _0x471fd9['getSuggestions']()){const _0x572e45=_0x5401b2['getContainedElement']();if('resizeTable'===_0x5401b2['subType']&&_0x572e45===_0x5d51e4){_0x5401b2['author']!==_0x1a8668&&_0x5401b2['discard']();const _0x506a2a=_0x5401b2['data']['commandParams'];_0x5273ca=_0x506a2a[0x0]['tableWidth'],_0x3d1693=_0x506a2a[0x0]['columnWidths'];break;}}_0x4ffcdd({'table':_0x5d51e4,'tableWidth':_0x223fcf,'columnWidths':_0x5eaff2}),_0x471fd9['markBlockFormat'](_0x5d51e4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5273ca,'columnWidths':_0x3d1693}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x32e9e1){if('formatBlock'!=_0x32e9e1['type']&&'formatInline'!=_0x32e9e1['type'])return;const {data:_0x28059e}=_0x32e9e1;if(_0x28059e&&'resizeTable'===_0x28059e['formatGroupId']){const _0x1abd7f='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x1abd7f)};}}}class Ot extends _0xc188f5{['afterInit'](){const _0x437aaf=this['editor'];_0x437aaf['plugins']['has']('Template')&&_0x437aaf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0xc188f5{['afterInit'](){const _0x4f3269=this['editor'];if(!_0x4f3269['commands']['get']('insertTableOfContents'))return;_0x4f3269['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x47cdb5=_0x4f3269['plugins']['get']('TrackChangesEditing'),_0x3a2a63=_0x4f3269['locale'];_0x47cdb5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5129b7=>c(_0x3a2a63,'ELEMENT_TABLE_OF_CONTENTS',_0x5129b7));}}class xt extends _0xc188f5{['afterInit'](){const _0x40948b=this['editor'];if(!_0x40948b['plugins']['has']('Title'))return;const _0x2f06f0=_0x40948b['plugins']['get']('TrackChangesEditing');_0x2f06f0['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x40948b['locale'],'ELEMENT_TITLE')),_0x40948b['model']['document']['registerPostFixer'](_0x3a8fef=>{let _0x511d1a=!0x1;const _0x416b0f=Array['from'](_0x40948b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e3d09,data:_0x3f88f2}of _0x416b0f){const {group:_0x52eae5}=_0x2f06f0['_splitMarkerName'](_0x3e3d09);if('suggestion'!==_0x52eae5||!_0x3f88f2['newRange'])continue;const _0x1d0c8a=_0x3f88f2['newRange'],_0x49e86b=_0x1d0c8a['end']['nodeBefore'];if(!_0x49e86b||!_0x49e86b['is']('element','title-content'))continue;if(!_0x1d0c8a['start']['isTouching'](_0x1d0c8a['end']))continue;const _0x256050=_0x40948b['model']['schema']['getNearestSelectionRange'](_0x1d0c8a['end'],'forward');if(_0x256050&&_0x256050['isCollapsed']){const _0x5cdfc8=_0x3a8fef['createRange'](_0x1d0c8a['start'],_0x256050['start']);_0x5cdfc8['isEqual'](_0x1d0c8a)||(_0x3a8fef['updateMarker'](_0x3e3d09,{'range':_0x5cdfc8}),_0x511d1a=!0x0);}_0x511d1a||(_0x3a8fef['removeMarker'](_0x3e3d09),_0x511d1a=!0x0);}return _0x511d1a;});}}class Tt extends _0xc188f5{['afterInit'](){const _0x36e168=this['editor'],_0x154c53=_0x36e168['plugins']['get']('TrackChangesEditing');_0x36e168['plugins']['has']('Uploadcare')&&(_0x154c53['enableCommand']('uploadcare'),_0x36e168['plugins']['has']('UploadcareImageEdit')&&(_0x154c53['enableCommand']('uploadcareImageEdit'),_0x154c53['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x154c53['registerBlockAttribute']('uploadcareImageId'),_0x154c53['descriptionFactory']['registerDescriptionCallback'](_0x4a4b79=>{if('attribute'!=_0x4a4b79['type'])return;const {data:_0x4a5556}=_0x4a4b79;return _0x4a5556&&'uploadcareImageId'==_0x4a5556['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0xc188f5{['afterInit'](){const _0x4f504a=this['editor'],_0x47fee5=_0x4f504a['plugins']['get']('TrackChangesEditing');_0x4f504a['plugins']['has']('UndoEditing')&&(_0x47fee5['enableCommand']('undo'),_0x47fee5['enableCommand']('redo'));}}class Ut extends _0xc188f5{static get['requires'](){return[Ct];}['afterInit'](){const _0x57cafb=this['editor'];if(!_0x57cafb['plugins']['has']('TableCaptionEditing'))return;_0x57cafb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0xc188f5{['tableProperties'];['tableCellProperties'];constructor(_0x9ec9a1){super(_0x9ec9a1),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 _0x19c74f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x507ca1 of this['tableProperties'])_0x19c74f['enableCommand'](_0x507ca1,(_0x1f5755,_0x54ad8b)=>{const _0x2f2f06=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x507ca1,[_0x2f2f06],this['tableProperties'],'tableProperties',_0x1f5755,_0x54ad8b);});_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x19c74f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1631c3,_0x16d1f3)=>this['handleDiscardAction'](this['tableProperties'],_0x1631c3,_0x16d1f3)),_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x52788e of this['tableCellProperties'])_0x19c74f['enableCommand'](_0x52788e,(_0x4a1892,_0x2eb9fc)=>{const _0x48cacb=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x52788e,_0x48cacb,this['tableCellProperties'],'tableCellProperties',_0x4a1892,_0x2eb9fc);});_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x19c74f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x523243,_0x5d3964)=>this['handleDiscardAction'](this['tableCellProperties'],_0x523243,_0x5d3964)),_0x19c74f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x19c74f['descriptionFactory']['registerDescriptionCallback'](_0x23425e=>this['handleSuggestionDescription'](_0x23425e));}['_handlePropertyChange'](_0x518d0f,_0xc55e45,_0x1a749c,_0x249d74,_0x1a6acf,_0x4fa0cc){const _0x744b58=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4fa0cc['batch'],()=>{for(const _0x359c9e of _0xc55e45){if(this['_getSuggestion'](_0x359c9e,_0x249d74))_0x1a6acf(_0x4fa0cc);else{const _0x3541ec={};for(const _0x27b188 of _0x1a749c){const _0x30da38=_0x359c9e['getAttribute'](_0x27b188);void 0x0!==_0x30da38&&(_0x3541ec[_0x27b188]=_0x30da38);}_0x1a6acf(_0x4fa0cc),_0x744b58['markBlockFormat'](_0x359c9e,{'commandParams':[_0x3541ec]},[],_0x249d74);}}});}['handleDiscardAction'](_0x258505,_0x682a73,_0x44db1){const _0x1e31e3=_0x682a73[0x0]['start']['nodeAfter'],_0x4e38a9=_0x44db1['commandParams'][0x0];this['editor']['model']['change'](_0x222b4a=>{for(const _0x226a81 of _0x258505)void 0x0!==_0x4e38a9[_0x226a81]?_0x222b4a['setAttribute'](_0x226a81,_0x4e38a9[_0x226a81],_0x1e31e3):_0x222b4a['removeAttribute'](_0x226a81,_0x1e31e3);});}['handleSuggestionDescription'](_0xc265f1){if(_0xc265f1['data'])switch(_0xc265f1['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'](_0x50dcd3,_0x2a8781){const _0x242c17=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xfcb912 of _0x242c17['getSuggestions']({'skipNotAttached':!0x0})){const _0xdc1bf0=_0xfcb912['getContainedElement']();if(_0xfcb912['subType']===_0x2a8781&&_0xdc1bf0===_0x50dcd3)return _0xfcb912;}return null;}}const u='$elementName';class p extends _0xc188f5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x546bdd,_0xa02684,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(_0x1d6c54){super(_0x1d6c54),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x77cdd5,_0x37cded,_0x41b256,_0x49de87)=>{this['_model']['change'](()=>{for(const _0x3a3200 of[..._0x49de87,..._0x41b256])this['_model']['markers']['has'](_0x3a3200)&&_0x1d6c54['editing']['reconvertMarker'](_0x3a3200);});}),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']=_0x1d6c54['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(),_0x1d6c54['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1d6c54['config']['get']('trackChanges.trackFormatChanges'),_0x1d6c54['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1d6c54['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1d6c54,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1d51ad=this['editor'],_0x173126=(_0x151e56,_0x33d089)=>{if('attribute'!=_0x151e56)return'ck-suggestion-marker-'+_0x151e56;const _0x598737=_0x33d089['split']('|')[0x0];return this['_isBlockAttribute'](_0x598737)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1d51ad['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2f9032=>{const {id:_0xa0a36,authorId:_0x26d96e,type:_0x266d32,subType:_0xfa2a0b}=this['_splitMarkerName'](_0x2f9032['markerName']),_0x106d30=['ck-suggestion-marker',_0x173126(_0x266d32,_0xfa2a0b)];let _0x40e53d=0xbb8;return this['activeMarkers']['includes'](_0x2f9032['markerName'])&&(_0x106d30['push']('ck-suggestion-marker--active'),_0x40e53d=0xbc2),'deletion'==_0x266d32&&(_0x40e53d+=0x5),{'classes':_0x106d30,'attributes':{'data-suggestion':_0xa0a36,'data-author-id':_0x26d96e},'priority':_0x40e53d};}}),_0x1d51ad['conversion']['for']('dataDowncast')['add'](_0x4b1cdd=>{_0x4b1cdd['on']('addMarker:suggestion',(_0x169f21,_0x493a10,_0x57798d)=>{if(!_0x57798d['options']['showSuggestionHighlights'])return;const _0x42454c=_0x493a10['item'];if(!_0x42454c)return;const _0x62a0d9=_0x57798d['mapper']['toViewElement'](_0x42454c);_0x1d51ad['model']['schema']['isObject'](_0x42454c)&&_0x62a0d9&&!_0x62a0d9['getCustomProperty']('widget')&&_0x62a0d9['is']('containerElement')&&_0x1795d6(_0x62a0d9,_0x57798d['writer']);},{'priority':'high'});}),_0x1d51ad['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5afc35,_0xedf533)=>{if(!_0xedf533['options']['showSuggestionHighlights'])return null;const {type:_0x55cd6e,subType:_0x362e14}=this['_splitMarkerName'](_0x5afc35['markerName']);return{'classes':['ck-suggestion-marker',_0x173126(_0x55cd6e,_0x362e14)],'priority':0xbb8};}});const _0x36add3=({showActiveMarkers:_0x5dc0ea=!0x0,isAttributeSuggestion:_0x3c0280=!0x1}={})=>(_0xcfde94,_0x52f246,_0x122dea)=>{if(!_0x52f246['item'])return;const {id:_0x46bfc,authorId:_0x3282f5}=this['_splitMarkerName'](_0x52f246['markerName']);if(_0x3c0280){const _0x59bf8e=this['_suggestions']['get'](_0x46bfc),_0x467445=this['_getAttributeKey'](_0x59bf8e);if(!this['_isBlockAttribute'](_0x467445))return;}if(_0x52f246['item']['is']('selection'))return void _0x122dea['consumable']['consume'](_0x52f246['item'],_0xcfde94['name']);const _0x3e6361=_0x122dea['mapper']['toViewElement'](_0x52f246['item']);if(_0x52f246['item']['is']('element')&&_0x1d51ad['model']['schema']['isBlock'](_0x52f246['item'])&&!_0x3e6361['getCustomProperty']('addHighlight')){_0x122dea['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3e6361),_0x122dea['writer']['setAttribute']('data-suggestion',_0x46bfc,_0x3e6361),_0x122dea['writer']['setAttribute']('data-author-id',_0x3282f5,_0x3e6361),_0x122dea['mapper']['bindElementToMarker'](_0x3e6361,_0x52f246['markerName']),_0x5dc0ea&&(this['activeMarkers']['includes'](_0x52f246['markerName'])?_0x122dea['writer']['addClass']('ck-suggestion-marker--active',_0x3e6361):_0x122dea['writer']['removeClass']('ck-suggestion-marker--active',_0x3e6361));for(const _0x530e5d of _0x1d51ad['model']['createRangeIn'](_0x52f246['item'])['getItems']())_0x122dea['consumable']['consume'](_0x530e5d,_0xcfde94['name']);_0x122dea['consumable']['consume'](_0x52f246['item'],_0xcfde94['name']);}};_0x1d51ad['conversion']['for']('dataDowncast')['add'](_0x13b137=>{_0x13b137['on']('addMarker:suggestion:formatBlock',(_0x566b87,_0x270aef,_0x51e1c3)=>{_0x51e1c3['options']['showSuggestionHighlights']&&_0x36add3({'showActiveMarkers':!0x1})(_0x566b87,_0x270aef,_0x51e1c3);},{'priority':'highest'});}),_0x1d51ad['conversion']['for']('dataDowncast')['add'](_0x3bf4d5=>{_0x3bf4d5['on']('addMarker:suggestion:attribute',(_0x118822,_0x4d12ae,_0x41baf2)=>{_0x41baf2['options']['showSuggestionHighlights']&&_0x36add3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x118822,_0x4d12ae,_0x41baf2);},{'priority':'highest'});}),_0x1d51ad['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x7773b8,_0x22288e)=>_0x22288e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x7773b8['substr'](0xb)}}),_0x1d51ad['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x528ba5,{writer:_0x4e30af})=>{let _0x20f54d='suggestion:'+_0x528ba5['getAttribute']('suggestion-type')+':'+_0x528ba5['getAttribute']('id');return _0x528ba5['getAttribute']('marker-count')&&(_0x20f54d+=':'+_0x528ba5['getAttribute']('marker-count')),_0x4e30af['createElement']('$marker',{'data-name':_0x20f54d});}}),_0x1d51ad['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1d51ad['conversion']['for']('editingDowncast')['add'](_0x3a02e3=>{_0x3a02e3['on']('addMarker:suggestion:formatBlock',_0x36add3(),{'priority':'high'});}),_0x1d51ad['conversion']['for']('editingDowncast')['add'](_0x298bf9=>{_0x298bf9['on']('addMarker:suggestion:attribute',_0x36add3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1d51ad['conversion']['for']('editingDowncast')['add'](_0x16ee1c=>{_0x16ee1c['on']('removeMarker:suggestion:formatBlock',(_0x4e9bb1,_0x3c0031,_0x562b3f)=>{const _0x87fe61=_0x562b3f['mapper']['markerNameToElements'](_0x3c0031['markerName']);if(_0x87fe61){for(const _0x9aa10 of _0x87fe61)_0x9aa10['getCustomProperty']('addHighlight')||(_0x562b3f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9aa10),_0x562b3f['writer']['removeAttribute']('data-suggestion',_0x9aa10),_0x562b3f['writer']['removeAttribute']('data-author-id',_0x9aa10),_0x562b3f['mapper']['unbindElementFromMarkerName'](_0x9aa10,_0x3c0031['markerName']));}},{'priority':'high'});}),_0x1d51ad['conversion']['for']('editingDowncast')['add'](_0x114dfa=>{_0x114dfa['on']('removeMarker:suggestion:attribute',(_0x30643e,_0x10314a,_0x51826f)=>{const _0x267a6e=_0x51826f['mapper']['markerNameToElements'](_0x10314a['markerName']);if(!_0x267a6e)return;const {id:_0x2a361a}=this['_splitMarkerName'](_0x10314a['markerName']),_0x181f82=this['_suggestions']['get'](_0x2a361a),_0xa10625=this['_getAttributeKey'](_0x181f82);if(this['_isBlockAttribute'](_0xa10625)){for(const _0x3e37ce of _0x267a6e)_0x3e37ce['getCustomProperty']('addHighlight')||(_0x51826f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e37ce),_0x51826f['writer']['removeAttribute']('data-suggestion',_0x3e37ce),_0x51826f['writer']['removeAttribute']('data-author-id',_0x3e37ce),_0x51826f['mapper']['unbindElementFromMarkerName'](_0x3e37ce,_0x10314a['markerName']));}},{'priority':'high'});}),_0x1d51ad['model']['document']['registerPostFixer'](_0x430d68=>{let _0x2bd415=!0x1;const _0x53a162=Array['from'](_0x1d51ad['model']['document']['differ']['getChangedMarkers']()),_0x48c3d1=new Set();for(const {name:_0x29a5fa,data:_0x598f2c}of _0x53a162){const {group:_0x238bd1,type:_0x552996,subType:_0x3963c1,id:_0x13a39c}=this['_splitMarkerName'](_0x29a5fa);if('suggestion'!==_0x238bd1)continue;const _0x3c0cf0=this['_suggestions']['get'](_0x13a39c);if(null!=_0x598f2c['newRange']){'formatInline'==_0x552996&&(_0x2bd415=_0x2bd415||Jt(_0x598f2c['newRange'],_0x29a5fa,_0x430d68,_0x1d51ad['model']['schema']));const _0x47b7bb='attribute'==_0x552996&&this['_isBlockAttribute'](_0x3963c1['split']('|')[0x0]);if(_0x598f2c['newRange']['isCollapsed']||'$graveyard'==_0x598f2c['newRange']['root']['rootName']||'formatBlock'==_0x552996&&!Ht(_0x598f2c['newRange'])||_0x47b7bb&&!Ht(_0x598f2c['newRange'])||'deletion'==_0x552996&&!(!Lt(_0x2eb181=_0x598f2c['newRange'])&&!function(_0x5da585){return _0x5da585['start']['parent']==_0x5da585['end']['nodeBefore']&&_0x5da585['start']['isAtEnd'];}(_0x2eb181)))_0x430d68['removeMarker'](_0x29a5fa),_0x2bd415=!0x0;else{if(!_0x3c0cf0||!_0x3c0cf0['isInContent'])continue;if(_0x598f2c['newRange']&&_0x598f2c['oldRange']&&_0x598f2c['newRange']['isEqual'](_0x598f2c['oldRange']))continue;_0x48c3d1['add'](_0x3c0cf0);}}}var _0x2eb181;return _0x48c3d1['size']>0x0&&(_0x2bd415=!!this['_joinWithAdjacentSuggestions'](_0x48c3d1)||_0x2bd415),_0x2bd415;}),_0x1d51ad['model']['document']['registerPostFixer'](_0x5a5452=>{let _0x18c42e=!0x1;for(const _0x31268c of _0x1d51ad['model']['document']['differ']['getChanges']())if('insert'==_0x31268c['type'])for(const _0x529cc7 of this['_suggestions']['values']()){if(_0x529cc7['isMultiRange']||!_0x529cc7['isInContent'])continue;const _0x5c189f='formatBlock'==_0x529cc7['type'],_0x477be0=this['_getAttributeKey'](_0x529cc7),_0x1e6706=_0x477be0&&this['_isBlockAttribute'](_0x477be0);if(!_0x5c189f&&!_0x1e6706)continue;const _0x338c11=_0x529cc7['getFirstRange']();if(_0x338c11['start']['parent']!=_0x338c11['end']['parent']&&!_0x338c11['end']['isAtEnd']){const _0x6f6018=_0x1d51ad['model']['createPositionAt'](_0x338c11['start']['nodeAfter'],'end'),_0x4217f8=_0x1d51ad['model']['createRange'](_0x338c11['start'],_0x6f6018);_0x5a5452['updateMarker'](_0x529cc7['getFirstMarker'](),{'range':_0x4217f8}),_0x18c42e=!0x0;}}return _0x18c42e;}),_0x1d51ad['model']['document']['registerPostFixer'](_0x3613a8=>this['_processAttributeChanges'](_0x3613a8)),_0x1d51ad['model']['document']['registerPostFixer'](_0x3b215c=>!_0x3b215c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3b215c)),_0x1d51ad['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1d51ad['model']['document']['on']('change:data',(_0x1f56ff,_0x3cbfbd)=>{if(!_0x3cbfbd['isLocal']||_0x3cbfbd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1dec8c=_0x1d51ad['model']['document']['differ']['getChanges']();if(0x0==_0x1dec8c['length'])return;const _0x57f101=[],_0xc6fe1d=_0x1dec8c['filter'](_0x4c9fca=>'attribute'==_0x4c9fca['type']),_0x58ecc3=_0x1dec8c['filter'](_0x2b3883=>'insert'==_0x2b3883['type']&&'$text'!=_0x2b3883['name']);for(const _0x4b1a60 of _0xc6fe1d)this['_isRegisteredAttribute'](_0x4b1a60['attributeKey'])&&_0x57f101['push']({'key':_0x4b1a60['attributeKey'],'newValue':_0x4b1a60['attributeNewValue'],'oldValue':_0x4b1a60['attributeOldValue'],'range':qt(_0x4b1a60['range'],_0x1d51ad['model'])});for(const _0x22cf46 of _0x58ecc3){if('rename'!=_0x22cf46['action']&&'refresh'!=_0x22cf46['action'])continue;const _0x26272c=zt(_0x22cf46['position']['nodeAfter'],_0x1d51ad['model']),_0x3b18cf=_0x22cf46['before'];'rename'==_0x22cf46['action']&&_0x57f101['push']({'key':u,'newValue':_0x22cf46['name'],'oldValue':_0x3b18cf['name'],'range':_0x26272c});for(const [_0x1c2b09,_0x436b63]of _0x3b18cf['attributes']){if(!this['_isRegisteredAttribute'](_0x1c2b09))continue;const _0x55a554=_0x22cf46['attributes']['get'](_0x1c2b09);_0x436b63!==_0x55a554&&_0x57f101['push']({'key':_0x1c2b09,'newValue':_0x55a554,'oldValue':_0x436b63,'range':_0x26272c});}for(const [_0x27a628,_0x1ea1cd]of _0x22cf46['attributes'])this['_isRegisteredAttribute'](_0x27a628)&&(_0x3b18cf['attributes']['has'](_0x27a628)||_0x57f101['push']({'key':_0x27a628,'newValue':_0x1ea1cd,'oldValue':null,'range':_0x26272c}));}0x0!=_0x57f101['length']&&_0x1d51ad['model']['enqueueChange'](_0x3cbfbd,_0x5a132b=>{const _0x4e5dbb=_0x543158();for(const {range:_0x1cbcba,key:_0x55ac11,oldValue:_0x6d76f8,newValue:_0x39354d}of _0x57f101)this['markAttributeChange'](_0x1cbcba,_0x55ac11,_0x6d76f8,_0x39354d,{'groupId':_0x4e5dbb});this['_reduceExistingSuggestions'](_0x5a132b,_0x57f101);});},{'priority':'lowest'}),_0x1d51ad['model']['markers']['on']('update:suggestion',(_0x2a59c1,_0x2948c3,_0xa2c0d)=>{if(null==_0xa2c0d){const {id:_0x259436}=this['_splitMarkerName'](_0x2948c3['name']),_0x35c8d2=this['_suggestions']['get'](_0x259436);_0x35c8d2&&_0x35c8d2['addMarkerName'](_0x2948c3['name']);}}),_0x1d51ad['model']['document']['on']('change:data',()=>{const _0x58e1ad=Array['from'](_0x1d51ad['model']['document']['differ']['getChangedMarkers']())['filter'](_0x142a32=>'suggestion'===this['_splitMarkerName'](_0x142a32['name'])['group']);if(0x0===_0x58e1ad['length'])return;_0x58e1ad['sort']((_0x200087,_0xa9504a)=>{const _0x5a7129=_0x200087['data']['oldRange'],_0x51b8b8=_0xa9504a['data']['oldRange'];return null===_0x5a7129&&null===_0x51b8b8?0x0:null===_0x5a7129&&null!==_0x51b8b8?-0x1:null!==_0x5a7129&&null===_0x51b8b8?0x1:_0x5a7129['start']['isBefore'](_0x51b8b8['start'])?-0x1:0x1;});const _0x53da30=new Set(),_0x447b0e=new Set();for(const {name:_0xb04596,data:_0x3d4b63}of _0x58e1ad){const {id:_0xd170}=this['_splitMarkerName'](_0xb04596);if(null===_0x3d4b63['oldRange']){const _0x3f25ae=this['_handleNewSuggestionMarker'](_0xb04596);_0x447b0e['add'](_0x3f25ae);}else{const _0x2bbb08=this['_suggestions']['get'](_0xd170);null!==_0x3d4b63['newRange']||_0x2bbb08['isInContent']?(_0x53da30['add'](_0x2bbb08['head']),_0x447b0e['add'](_0x2bbb08)):this['_removeSuggestion'](_0x2bbb08);}}_0x447b0e['size']>0x0&&this['_refreshSuggestionsChain'](_0x447b0e);for(const _0x2f3978 of _0x53da30)this['fire']('suggestionChanged',_0x2f3978);}),_0x1d51ad['model']['on']('applyOperation',(_0x56ef31,_0x3f8c65)=>{const _0x2606dc=_0x3f8c65[0x0];if(!this['_suggestions']['size'])return;if(!_0x2606dc['isDocumentOperation'])return;if(_0x2606dc['batch']['isUndo']||!_0x2606dc['batch']['isLocal'])return;let _0x4d0895,_0x75c11d;switch(_0x2606dc['type']){case'insert':_0x4d0895=_0x1d51ad['model']['createPositionAt'](_0x2606dc['position']),_0x75c11d=_0x4d0895['getShiftedBy'](_0x2606dc['howMany']);break;case'split':_0x4d0895=_0x1d51ad['model']['createPositionAt'](_0x2606dc['splitPosition']),_0x75c11d=_0x1d51ad['model']['createPositionAt'](_0x2606dc['moveTargetPosition']);break;case'move':_0x4d0895=_0x1d51ad['model']['createPositionAt'](_0x2606dc['targetPosition']),_0x75c11d=_0x4d0895['getShiftedBy'](_0x2606dc['howMany']);break;default:return;}const _0x51d246=_0x1d51ad['model']['createRange'](_0x4d0895,_0x75c11d);_0x1d51ad['model']['change'](()=>{for(const {suggestion:_0x232777,meta:_0x477fea}of this['_findSuggestions'](_0x51d246)){if(_0x232777['isMultiRange'])continue;if('formatInline'==_0x232777['type'])continue;const _0x363844=this['_getAttributeKey'](_0x232777);if(_0x363844&&this['_isBlockAttribute'](_0x363844)&&'split'!=_0x2606dc['type'])continue;const _0x40e00e=_0x232777['data']&&_0x232777['data']['multipleBlocks'];('formatBlock'!=_0x232777['type']||'split'==_0x2606dc['type']&&!_0x40e00e)&&(_0x477fea['containsRangeInObject']||'insertion'==_0x232777['type']&&_0x477fea['isOwn']||_0x232777['getFirstRange']()['containsRange'](_0x51d246)&&this['_breakSuggestionMarker'](_0x232777,_0x4d0895,_0x75c11d));}});},{'priority':'lowest'}),_0x1d51ad['model']['on']('deleteContent',(_0x3b8dcd,_0x39541d)=>{const _0x15ae2c=_0x39541d[0x0],_0x23dcc1=_0x39541d[0x1];if(_0x23dcc1&&_0x23dcc1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x15ae2c['isCollapsed'])return;const _0x210515=_0x1d51ad['model']['schema'],{start:_0x39d1b1,end:_0x2ea9ce}=_0x15ae2c['getFirstRange'](),_0x2600ec=_0x39d1b1['nodeAfter']&&_0x210515['isLimit'](_0x39d1b1['nodeAfter'])?null:_0x210515['getNearestSelectionRange'](_0x39d1b1,'forward'),_0x5d627b=_0x2ea9ce['nodeBefore']&&_0x210515['isLimit'](_0x2ea9ce['nodeBefore'])?null:_0x210515['getNearestSelectionRange'](_0x2ea9ce,'backward'),_0x4d333c=_0x1d51ad['model']['createRange'](_0x2600ec?_0x2600ec['start']:_0x39d1b1,_0x5d627b?_0x5d627b['end']:_0x2ea9ce);_0x1d51ad['model']['change'](_0x10069e=>{this['markDeletion'](_0x4d333c);const _0x2741f1=_0x1d51ad['model']['schema']['getNearestSelectionRange'](_0x4d333c['start']);_0x15ae2c['is']('documentSelection')?_0x10069e['setSelection'](_0x2741f1):_0x15ae2c['setTo'](_0x2741f1);}),_0x3b8dcd['stop']();},{'priority':_0x1e4238['normal']+0xa}),_0x1d51ad['model']['on']('insertContent',(_0x4b0955,_0x477b96)=>{const _0x33021c=_0x477b96[_0x477b96['length']-0x1];_0x33021c&&_0x33021c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1d51ad['model']['change'](()=>{let _0x4a6e6b=_0x1d51ad['model']['insertContent'](_0x477b96[0x0],_0x477b96[0x1],_0x477b96[0x2],{'forceDefaultExecution':!0x0});if(!_0x4a6e6b)return;_0x4b0955['return']=_0x4a6e6b['clone']();const _0x36ca40=_0x4a6e6b['end']['nodeBefore'],_0x12157a=_0x1d51ad['model']['schema'];_0x36ca40&&_0x12157a['isBlock'](_0x36ca40)&&!_0x12157a['isObject'](_0x36ca40)&&(_0x4a6e6b=_0x1d51ad['model']['createRange'](_0x4a6e6b['start'],_0x1d51ad['model']['createPositionAt'](_0x36ca40,'end'))),this['markInsertion'](_0x4a6e6b);}),_0x4b0955['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4f2026=new O(_0x1d51ad,this['_suggestions']);_0x1d51ad['commands']['add']('acceptSuggestion',_0x4f2026),this['enableCommand']('acceptSuggestion');const _0x32034e=new R(_0x1d51ad,this['_suggestions']);_0x1d51ad['commands']['add']('discardSuggestion',_0x32034e),this['enableCommand']('discardSuggestion'),_0x1d51ad['commands']['add']('acceptAllSuggestions',new x(_0x1d51ad,_0x4f2026,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1d51ad['commands']['add']('discardAllSuggestions',new x(_0x1d51ad,_0x32034e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1d51ad['commands']['add']('acceptSelectedSuggestions',new E(_0x1d51ad,_0x4f2026,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1d51ad['commands']['add']('discardSelectedSuggestions',new E(_0x1d51ad,_0x32034e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xd977de=_0x1d51ad['plugins']['get']('CommentsRepository');this['listenTo'](_0xd977de,'addComment',(_0x12cdcf,{threadId:_0x442508})=>{const _0x37d779=this['_suggestions']['get'](_0x442508);_0x37d779&&_0x37d779['commentThread']&&0x1===_0x37d779['commentThread']['length']&&this['_updateSuggestionData'](_0x442508,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xd977de,'removeComment',(_0x4eccf0,{threadId:_0x46754e})=>{const _0x2d3cf5=this['_suggestions']['get'](_0x46754e);_0x2d3cf5&&_0x2d3cf5['commentThread']&&!_0x2d3cf5['commentThread']['length']&&this['_updateSuggestionData'](_0x46754e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1bb528){const _0x411b06=_0x5a8ea7([0x31,0x62,0x69,0x32,0x33,0x4f,0x35,0x63,0x72,0x4d,0x37,0x64,0x48,0x51,0x34,0x66,0x56,0x74,0x44,0x78,0x39,0x36,0x65,0x71,0x38,0x42,0x54,0x77,0x4a,0x6b,0x50,0x6c,0x5a,0x59,0x68,0x75,0x6e,0x70,0x53,0x4b,0x58,0x67,0x79,0x52,0x4c,0x6f,0x46,0x6d,0x73,0x6a,0x57,0x7a,0x43,0x55,0x76,0x41,0x61,0x49,0x4e,0x47,0x30,0x45]),_0x5407b6=0x5f1000a8,_0x5d0c65=0x5f1763c0^_0x5407b6,_0x170e97=window[_0x5a8ea7([0x44,0x61,0x74,0x65])][_0x5a8ea7([0x6e,0x6f,0x77])](),_0x3e4bff=_0x1bb528[_0x5a8ea7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3bd736=new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1eac58=>{_0x3e4bff[_0x5a8ea7([0x6f,0x6e,0x63,0x65])](_0x5a8ea7([0x72,0x65,0x61,0x64,0x79]),_0x1eac58);}),_0x5bfcec={[_0x5a8ea7([0x6b,0x74,0x79])]:_0x5a8ea7([0x45,0x43]),[_0x5a8ea7([0x75,0x73,0x65])]:_0x5a8ea7([0x73,0x69,0x67]),[_0x5a8ea7([0x63,0x72,0x76])]:_0x5a8ea7([0x50,0x2d,0x32,0x35,0x36]),[_0x5a8ea7([0x78])]:_0x5a8ea7([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]),[_0x5a8ea7([0x79])]:_0x5a8ea7([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]),[_0x5a8ea7([0x61,0x6c,0x67])]:_0x5a8ea7([0x45,0x53,0x32,0x35,0x36])},_0x227cc8=_0x3e4bff[_0x5a8ea7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a8ea7([0x67,0x65,0x74])](_0x5a8ea7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5866ed(){let _0x4b6abe,_0x42b926=null,_0x117004=null;try{if(_0x227cc8==_0x5a8ea7([0x47,0x50,0x4c]))return _0x5a8ea7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b6abe=_0x963ac1(),!_0x4b6abe)return _0x5a8ea7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b6abe[_0x5a8ea7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x117004=_0x5a3a51(_0x4b6abe[_0x5a8ea7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b6abe[_0x5a8ea7([0x6a,0x74,0x69])])),await _0x4818c1()?_0x5ab69a()?_0x48ffba()?_0x5a8ea7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1a947c()?(_0x4b6abe[_0x5a8ea7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a8ea7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42b926=_0x377d37(_0x5a8ea7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b6abe[_0x5a8ea7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a8ea7([0x74,0x72,0x69,0x61,0x6c])&&(_0x42b926=_0x377d37(_0x5a8ea7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37ad7f()):_0x5a8ea7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a8ea7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a8ea7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xfb4702){return _0x5a8ea7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48ffba(){const _0x3d0b55=[_0x5a8ea7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a8ea7([0x74,0x72,0x69,0x61,0x6c])][_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b6abe[_0x5a8ea7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x170e97/0x3e8:0xe10*_0x5d0c65;return _0x4b6abe[_0x5a8ea7([0x65,0x78,0x70])]<_0x3d0b55;}function _0x5ab69a(){const _0x5b87e7=_0x4b6abe[_0x5a8ea7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5b87e7)return!0x1;if(_0x5b87e7[_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8ea7([0x2a])))return!0x0;if(_0x5b87e7[_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8ea7([0x54,0x43])))return!0x0;if(_0x5b87e7[_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8ea7([0x52,0x54,0x43]))){if(_0x89c1e6())return!0x0;if(_0x56aac1()||_0x374cbb())return!0x0;}return!0x1;}function _0x1a947c(){const _0x549de4=_0x4b6abe[_0x5a8ea7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x549de4||0x0==_0x549de4[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15adfd}=new URL(window[_0x5a8ea7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x549de4[_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15adfd))return!0x0;const _0x50f1f2=_0x15adfd[_0x5a8ea7([0x73,0x70,0x6c,0x69,0x74])](_0x5a8ea7([0x2e]));return _0x549de4[_0x5a8ea7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1101f8=>_0x1101f8[_0x5a8ea7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8ea7([0x2a])))[_0x5a8ea7([0x6d,0x61,0x70])](_0x483159=>_0x483159[_0x5a8ea7([0x73,0x70,0x6c,0x69,0x74])](_0x5a8ea7([0x2e])))[_0x5a8ea7([0x73,0x6f,0x6d,0x65])](_0x5cf2ce=>_0x50f1f2[_0x5a8ea7([0x65,0x76,0x65,0x72,0x79])]((_0x504cd3,_0x3f9ef8)=>_0x5cf2ce[_0x3f9ef8]===_0x504cd3||_0x5cf2ce[_0x3f9ef8]===_0x5a8ea7([0x2a])));}function _0x37ad7f(){return _0x42b926&&_0x117004?new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1678f5,_0x18dd8b)=>{_0x42b926[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x1678f5,_0x18dd8b),_0x117004[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x5b3c81=>{_0x5b3c81!=_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64])&&_0x1678f5(_0x5b3c81);},_0x18dd8b);}):_0x42b926||_0x117004||_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a3a51(_0xcd77c4,_0x54cb2f){return new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x256c78=>{if(_0x21f43a())return _0x256c78(_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64]));_0x4ad7be(),_0x3e4bff[_0x5a8ea7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a8ea7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x813833=!0x1;const _0x3135e0=_0x543158();function _0x10cdf8(_0x9a1694){return!!_0x9a1694&&(typeof _0x9a1694===_0x5a8ea7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9a1694===_0x5a8ea7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9a1694[_0x5a8ea7([0x74,0x68,0x65,0x6e])]===_0x5a8ea7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9a1694[_0x5a8ea7([0x63,0x61,0x74,0x63,0x68])]===_0x5a8ea7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d7951(_0x216085){_0x48249f(_0x216085)[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x38053c=>{if(!_0x38053c||_0x38053c[_0x5a8ea7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a8ea7([0x6f,0x6b]))return _0x5a8ea7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d334e(_0x113dbf(_0x3135e0+_0x54cb2f))!=_0x38053c[_0x5a8ea7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a8ea7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x41007c=>(_0x4eb700(),_0x41007c),()=>{const _0x587d3f=_0x114ff2();return null==_0x587d3f?(_0x4eb700(),_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64])):_0x5a8ea7(_0x170e97-_0x587d3f>(0x7b1c84a8^_0x5407b6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x256c78)[_0x5a8ea7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x256c78(_0x5a8ea7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x470d52=0x5f26ee28^_0x5407b6;function _0x4eb700(){const _0xd448a6=_0x5a8ea7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d334e(_0x113dbf(_0xcd77c4)),_0x40c21a=_0x508690(_0x4d334e(window[_0x5a8ea7([0x4d,0x61,0x74,0x68])][_0x5a8ea7([0x63,0x65,0x69,0x6c])](_0x170e97/_0x470d52)));window[_0x5a8ea7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a8ea7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd448a6,_0x40c21a);}function _0x114ff2(){const _0xd0aa4=_0x5a8ea7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d334e(_0x113dbf(_0xcd77c4)),_0x420ce8=window[_0x5a8ea7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a8ea7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd0aa4);return _0x420ce8?window[_0x5a8ea7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x508690(_0x420ce8),0x10)*_0x470d52:null;}function _0x48249f(_0x3b442b){return new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2bc999,_0x5bd0b8)=>{_0x3b442b[_0x5a8ea7([0x74,0x68,0x65,0x6e])](_0x2bc999,_0x5bd0b8),window[_0x5a8ea7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bd0b8,0x5f11d468^_0x5407b6);});}}_0x3e4bff[_0x5a8ea7([0x6f,0x6e])](_0x5a8ea7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a6af4,_0x563f5f)=>{if(_0x563f5f[0x0]!=_0xcd77c4)return _0x256c78(_0x5a8ea7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x563f5f[0x1]={..._0x563f5f[0x1],[_0x5a8ea7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3135e0};},{[_0x5a8ea7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a8ea7([0x68,0x69,0x67,0x68])}),_0x3e4bff[_0x5a8ea7([0x6f,0x6e])](_0x5a8ea7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x141c9d=>{_0x10cdf8(_0x141c9d[_0x5a8ea7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x813833=!0x0,_0x5d7951(_0x141c9d[_0x5a8ea7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a8ea7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a8ea7([0x6c,0x6f,0x77])}),_0x3bd736[_0x5a8ea7([0x74,0x68,0x65,0x6e])](()=>{_0x813833||_0x256c78(_0x5a8ea7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x21f43a(){return _0x3e4bff[_0x5a8ea7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a8ea7([0x76,0x69,0x65,0x77])][_0x5a8ea7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a8ea7([0x61,0x75,0x74,0x6f]);}function _0x4ad7be(){_0x3e4bff[_0x5a8ea7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a8ea7([0x76,0x69,0x65,0x77])][_0x5a8ea7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a8ea7([0x61,0x75,0x74,0x6f]);}}function _0x377d37(_0x399aa4){const _0x163aa2=[new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d01b7=>setTimeout(_0x4d01b7,0x5f193e64^_0x5407b6)),_0x3bd736[_0x5a8ea7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5885f9=>{let _0x3f188b=0x0;_0x3e4bff[_0x5a8ea7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a8ea7([0x6f,0x6e])](_0x5a8ea7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ea156,_0x226880)=>{_0x226880[0x0][_0x5a8ea7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f188b++,_0x3f188b==(0x5f100150^_0x5407b6)&&(_0x5885f9(),_0x1ea156[_0x5a8ea7([0x6f,0x66,0x66])]());});}))];return window[_0x5a8ea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a8ea7([0x72,0x61,0x63,0x65])](_0x163aa2)[_0x5a8ea7([0x74,0x68,0x65,0x6e])](()=>_0x399aa4);}async function _0x22413f(){await _0x3bd736,_0x3e4bff[_0x5a8ea7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a8ea7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d9879,_0x3e4bff[_0x5a8ea7([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a8ea7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d9879,_0x3e4bff[_0x5a8ea7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a8ea7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x89c1e6(){return _0x3b4f8d(_0x5a8ea7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x355638(_0x5a8ea7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a8ea7([0x73,0x74,0x61,0x74,0x65])]==_0x5a8ea7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x56aac1(){return _0x3b4f8d(_0x5a8ea7([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 _0x374cbb(){return _0x3b4f8d(_0x5a8ea7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1127b0(_0x1baf1b){const _0x4fabc9=_0x2031ea();_0x3e4bff[_0x4fabc9]=_0x5a8ea7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1baf1b,_0x1baf1b!=_0x5a8ea7([0x56,0x61,0x6c,0x69,0x64])&&_0x22413f();}function _0x2031ea(){const _0x5e2bf7=window[_0x5a8ea7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a8ea7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a8ea7([0x6e,0x6f,0x77])]())[_0x5a8ea7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a8ea7([0x2e]),'');let _0xad095a=_0x5a8ea7([0x62]);for(let _0x3724d8=0x0;_0x3724d8<_0x5e2bf7[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3724d8+=0x2){let _0x31fe76=window[_0x5a8ea7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e2bf7[_0x5a8ea7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3724d8,_0x3724d8+0x2));_0x31fe76>=_0x411b06[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31fe76-=_0x411b06[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xad095a+=_0x411b06[_0x31fe76];}return _0xad095a;}function _0x963ac1(){const _0x28d8ae=_0x227cc8[_0x5a8ea7([0x73,0x70,0x6c,0x69,0x74])](_0x5a8ea7([0x2e]));if(0x3!=_0x28d8ae[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29b54e(_0x28d8ae[0x1]);function _0x29b54e(_0x156e7c){const _0x212565=_0x43f253(_0x156e7c);return _0x212565&&_0x3038bc()?_0x212565:null;function _0x3038bc(){const _0xa310da=_0x212565[_0x5a8ea7([0x6a,0x74,0x69])],_0x5c9a0e=window[_0x5a8ea7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa310da[_0x5a8ea7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa310da[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3987ff={..._0x212565,[_0x5a8ea7([0x6a,0x74,0x69])]:_0xa310da[_0x5a8ea7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa310da[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3987ff[_0x5a8ea7([0x76,0x63])],_0x113dbf(_0x3987ff)==_0x5c9a0e;}}}async function _0x4818c1(){let _0x1673c5=!0x0;try{const _0x1427fe=_0x227cc8[_0x5a8ea7([0x73,0x70,0x6c,0x69,0x74])](_0x5a8ea7([0x2e])),[_0x1b8cff,_0x26103e,_0xb6f1fa]=_0x1427fe;return _0x18e41b(_0x1b8cff),await _0x43653a(_0x1b8cff,_0x26103e,_0xb6f1fa),_0x1673c5;}catch(_0x10fd11){return!0x1;}function _0x18e41b(_0x1c8eb1){const _0x464bbe=_0x43f253(_0x1c8eb1);_0x464bbe&&_0x464bbe[_0x5a8ea7([0x61,0x6c,0x67])]==_0x5a8ea7([0x45,0x53,0x32,0x35,0x36])||(_0x1673c5=!0x1);}async function _0x43653a(_0x35170b,_0x3c661c,_0xc2968a){const _0x1b43f8=window[_0x5a8ea7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a8ea7([0x66,0x72,0x6f,0x6d])](_0x48ab8f(_0xc2968a),_0x55c15c=>_0x55c15c[_0x5a8ea7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x556127=new window[(_0x5a8ea7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a8ea7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35170b+_0x5a8ea7([0x2e])+_0x3c661c),_0x55776a=window[_0x5a8ea7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a8ea7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55776a)return;const _0x2ff2fa=await _0x55776a[_0x5a8ea7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a8ea7([0x6a,0x77,0x6b]),_0x5bfcec,{[_0x5a8ea7([0x6e,0x61,0x6d,0x65])]:_0x5a8ea7([0x45,0x43,0x44,0x53,0x41]),[_0x5a8ea7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a8ea7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a8ea7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55776a[_0x5a8ea7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a8ea7([0x6e,0x61,0x6d,0x65])]:_0x5a8ea7([0x45,0x43,0x44,0x53,0x41]),[_0x5a8ea7([0x68,0x61,0x73,0x68])]:{[_0x5a8ea7([0x6e,0x61,0x6d,0x65])]:_0x5a8ea7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ff2fa,_0x1b43f8,_0x556127)||(_0x1673c5=!0x1);}}function _0x43f253(_0xa13684){return _0xa13684[_0x5a8ea7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a8ea7([0x65,0x79]))?JSON[_0x5a8ea7([0x70,0x61,0x72,0x73,0x65])](_0x48ab8f(_0xa13684)):null;}function _0x48ab8f(_0xdd63e8){return window[_0x5a8ea7([0x61,0x74,0x6f,0x62])](_0xdd63e8[_0x5a8ea7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a8ea7([0x2b]))[_0x5a8ea7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a8ea7([0x2f])));}function _0x113dbf(_0x362eed){let _0x43eecf=0x1505;function _0xe41847(_0xf6bf84){for(let _0x35cfda=0x0;_0x35cfda<_0xf6bf84[_0x5a8ea7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35cfda++){const _0x32fabd=_0xf6bf84[_0x5a8ea7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35cfda);_0x43eecf=(_0x43eecf<<0x5)+_0x43eecf+_0x32fabd,_0x43eecf&=_0x43eecf;}}function _0x277ac9(_0x57f525){Array[_0x5a8ea7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57f525)?_0x57f525[_0x5a8ea7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x277ac9):_0x57f525&&typeof _0x57f525==_0x5a8ea7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a8ea7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57f525)[_0x5a8ea7([0x73,0x6f,0x72,0x74])]()[_0x5a8ea7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3cb8e4,_0x1a3d66])=>{_0xe41847(_0x3cb8e4),_0x277ac9(_0x1a3d66);}):_0xe41847(window[_0x5a8ea7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57f525));}return _0x277ac9(_0x362eed),_0x43eecf>>>0x0;}function _0x4d334e(_0xb8217b){return _0xb8217b[_0x5a8ea7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a8ea7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a8ea7([0x30]));}function _0x508690(_0x274742){return _0x274742[_0x5a8ea7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a8ea7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a8ea7([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b4f8d(_0x3d6057){return _0x3e4bff[_0x5a8ea7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a8ea7([0x68,0x61,0x73])](_0x3d6057);}function _0x355638(_0x466b8f){return _0x3e4bff[_0x5a8ea7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a8ea7([0x67,0x65,0x74])](_0x466b8f);}function _0x3d9879(){}function _0x5a8ea7(_0x3486f6){return _0x3486f6['map'](_0x1ec6e8=>String['fromCharCode'](_0x1ec6e8))['join']('');}_0x1127b0(await _0x5866ed());}(this);}set['adapter'](_0x2d3188){if(this['_adapter'])throw new _0x5b8507('track-changes-adapter-already-set',this);this['_adapter']=_0x2d3188;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x254e54=!0x1,toJSON:_0x2677a3=!0x1}={}){const _0x44ca27=[];for(const _0x451b19 of this['_suggestions']['values']())_0x254e54&&!_0x451b19['isInContent']||_0x44ca27['push'](_0x451b19);return _0x2677a3?_0x44ca27['map'](_0x595b43=>_0x595b43['toJSON']()):_0x44ca27;}['getSuggestion'](_0x1abcef){const _0x32dc00=this['_suggestions']['get'](_0x1abcef);if(!_0x32dc00)throw new _0x5b8507('track-changes-suggestion-not-found',this);return _0x32dc00;}['hasSuggestion'](_0x13f9bb){return this['_suggestions']['has'](_0x13f9bb);}['addSuggestionData'](_0x595ea4){const {authorId:_0x1e42f7,id:_0x58e0a7,attributes:_0x599c52}=_0x595ea4,[_0x4c0d12,_0x1fd0c4]=_0x595ea4['type']['split'](':'),_0x2699fb=this['_suggestions']['get'](_0x58e0a7)||this['_createSuggestion'](_0x4c0d12,_0x1fd0c4,_0x58e0a7,_0x1e42f7,_0x599c52);if(this['_addThreadToSuggestion'](_0x2699fb),this['_checkSuggestionCorrectness'](_0x2699fb,_0x4c0d12,_0x1fd0c4||null,_0x1e42f7),_0x2699fb['createdAt']=_0x595ea4['createdAt'],_0x2699fb['_isDataLoaded']=!0x0,_0x599c52&&_0x599c52['@external']){const _0x3bb101=_0x599c52['@external'],_0x11d14e=this['_getExternalAuthor'](_0x3bb101['authorName']);_0x2699fb['authoredAt']=_0x3bb101['createdAt'],_0x2699fb['author']=_0x11d14e,_0x2699fb['isExternal']=!0x0;}else _0x2699fb['authoredAt']=_0x595ea4['createdAt'];switch(_0x595ea4['data']&&(_0x2699fb['data']=_0x595ea4['data']),_0x595ea4['attributes']&&(_0x2699fb['attributes']=_0x595ea4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2699fb['_saved']=!0x0),this['_suggestionState']['get'](_0x2699fb)){case'notReady':this['_suggestionState']['set'](_0x2699fb,'dataReady');break;case'markerReady':_0x2699fb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2699fb])),this['_refreshSuggestionsChain'](new Set([_0x2699fb])),this['_suggestionState']['set'](_0x2699fb,'ready'),this['fire']('suggestionLoaded',_0x2699fb)):this['_suggestionState']['set'](_0x2699fb,'removed');}return _0x2699fb;}['acceptSuggestion'](_0x25df52){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x410638 of _0x25df52['getAllAdjacentSuggestions']())_0x410638['accept']();});});}['discardSuggestion'](_0x3e1e38){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b9b4f of _0x3e1e38['getAllAdjacentSuggestions']())_0x1b9b4f['discard']();});});}['enableCommand'](_0x11db32,_0xd37578){const _0x50e55f=this['editor']['commands']['get'](_0x11db32);if(!_0x50e55f)throw new _0x5b8507('track-changes-command-not-found',this,{'commandName':_0x11db32});if(this['_enabledCommands']['has'](_0x50e55f))throw new _0x5b8507('track-changes-enable-command-twice',this,{'commandName':_0x11db32});this['_enabledCommands']['add'](_0x50e55f),_0xd37578&&_0x50e55f['on']('execute',(_0x111076,_0x31a650)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x31a650['length']>0x0&&_0x31a650[_0x31a650['length']-0x1]&&_0x31a650[_0x31a650['length']-0x1]['forceDefaultExecution']?_0x31a650['pop']():(_0x111076['return']=_0xd37578((..._0x9c870c)=>_0x50e55f['execute'](..._0x9c870c,{'forceDefaultExecution':!0x0}),..._0x31a650),_0x111076['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x437084){let _0x306390,_0x27fc77;const _0x1f57c4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x306390=_0x437084();}catch(_0x3ba55d){_0x27fc77=_0x3ba55d;}return _0x1f57c4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x27fc77&&_0x5b8507['rethrowUnexpectedError'](_0x27fc77,this),_0x306390;}['markInsertion'](_0x1a496c,_0x3d5ee6=null,_0x2229c1={}){if(_0x1a496c['isCollapsed'])return null;const _0x1b75f6=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1d4223,meta:_0xa78dfd}of this['_findSuggestions'](_0x1a496c,'insertion'))if(_0xa78dfd['isOwn']){if(!_0xa78dfd['isNextTo']){if(_0xa78dfd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1d4223,_0x2229c1))continue;return _0x1d4223;}if(Xt(_0x1d4223,_0x2229c1))return _0x1d4223;this['_breakSuggestionMarker'](_0x1d4223,_0x1a496c['start'],_0x1a496c['end']);break;}if(_0x3d5ee6==_0x1d4223['subType']&&Xt(_0x1d4223,_0x2229c1)){const _0x43f6d5=_0x1d4223['getFirstRange']();return _0x43f6d5['start']['isEqual'](_0x1a496c['end'])?this['_setSuggestionRange'](_0x1d4223,this['_model']['createRange'](_0x1a496c['start'],_0x43f6d5['end'])):this['_setSuggestionRange'](_0x1d4223,this['_model']['createRange'](_0x43f6d5['start'],_0x1a496c['end'])),_0x1d4223;}}const _0x41db6c=_0x543158(),_0x309402=_0x1b75f6['id'],_0x21edbe=_0x3d5ee6?'insertion:'+_0x3d5ee6:'insertion',_0x1857a1=this['_setSuggestionData']({'id':_0x41db6c,'type':_0x21edbe,'createdAt':new Date(),'authorId':_0x309402,'attributes':_0x2229c1});return this['_addSuggestionMarker'](_0x21edbe,_0x41db6c,_0x309402,_0x1a496c),_0x1857a1;}['markMultiRangeInsertion'](_0x23f0b1,_0x15c8ea='multi',_0x77a97={}){const _0x3c4cac=this['editor']['plugins']['get']('Users')['me'],_0x25021f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x15c8ea,'join');for(const _0x3cb7d1 of this['getSuggestions']())if(_0x3cb7d1['author']['id']==_0x3c4cac['id']&&'insertion'==_0x3cb7d1['type']&&_0x3cb7d1['subType']==_0x15c8ea&&Xt(_0x3cb7d1,_0x77a97)&&(_0x25021f(_0x3cb7d1['getRanges'](),_0x23f0b1)||_0x25021f(_0x23f0b1,_0x3cb7d1['getRanges']()))){for(const _0x50800a of _0x23f0b1)_0x3cb7d1['addRange'](_0x50800a);return _0x3cb7d1;}for(const {suggestion:_0x3aa185,meta:_0x8f79f6}of this['_findSuggestions'](_0x23f0b1,'insertion')){if(!_0x8f79f6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x8f79f6['containsRangeInObject'])continue;if(!Xt(_0x3aa185,_0x77a97))continue;let _0x49a3cb=!0x0;for(const _0x4232c8 of _0x3aa185['getRanges']())for(const _0x2f0320 of _0x23f0b1)if(!_0x4232c8['containsRange'](_0x2f0320)){_0x49a3cb=!0x1;break;}if(_0x49a3cb)return _0x3aa185;}const _0x3bc1ac=_0x543158(),_0x449055=_0x3c4cac['id'],_0xecfb30='insertion:'+_0x15c8ea,_0x51c524=this['_setSuggestionData']({'id':_0x3bc1ac,'type':_0xecfb30,'createdAt':new Date(),'authorId':_0x449055,'attributes':_0x77a97});for(const _0x52ac42 of _0x23f0b1)this['_addSuggestionMarker'](_0xecfb30,_0x3bc1ac,_0x449055,_0x52ac42,o['getMultiRangeId']());return _0x51c524;}['markInlineFormat'](_0x973331,_0x1c5174,_0x40de07=null,_0x2855c4={}){if(_0x40de07=_0x40de07||Kt(_0x1c5174),_0x973331['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xab19a4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x40de07,'accept');return this['forceDefaultExecution'](()=>_0xab19a4([_0x973331],_0x1c5174,_0x2855c4)),null;}const _0x504e88=this['editor']['plugins']['get']('Users')['me'],_0x92ac12=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x645a1b,meta:_0x27abff}of this['_findSuggestions'](_0x973331,'insertion'))_0x27abff['isOwn']&&!_0x27abff['isInsideObject']&&_0x92ac12['push'](..._0x645a1b['getRanges']());}const _0x2e2812=function(_0x75e921,_0x493eff){const _0x145330=[];for(const _0x3d09b2 of _0x493eff){const _0x332b0c=_0x75e921['getIntersection'](_0x3d09b2);_0x332b0c&&_0x145330['push'](_0x332b0c);}return _0x145330;}(_0x973331,_0x92ac12),_0x49d68e=function(_0x1551c5,_0x4425d7){const _0x36eb8b=[_0x1551c5];for(const _0x4680be of _0x4425d7){let _0xbaeb42=0x0;for(;_0xbaeb42<_0x36eb8b['length'];){const _0x2c9364=_0x36eb8b[_0xbaeb42]['getDifference'](_0x4680be);_0x36eb8b['splice'](_0xbaeb42,0x1,..._0x2c9364),_0xbaeb42+=_0x2c9364['length'];}}return _0x36eb8b;}(_0x973331,_0x92ac12);_0x2e2812['length']&&this['_model']['change'](()=>{for(const _0x3c1906 of _0x2e2812){const _0x4d804b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x40de07,'accept');this['forceDefaultExecution'](()=>_0x4d804b([_0x3c1906],_0x1c5174,_0x2855c4));}});for(const _0x508e0c of _0x49d68e){let _0x30ba6c=null,_0xfe3d9a=_0x508e0c['start'],_0x3fe3cb=_0x508e0c['end'];for(const {suggestion:_0x5acdd8,meta:_0x45316f}of this['_findSuggestions'](_0x508e0c,'formatInline')){if(!_0x45316f['isOwn'])continue;if(_0x5acdd8['subType']!=_0x40de07)continue;if(!Xt(_0x5acdd8,_0x2855c4))continue;const _0x2ec2d1=_0x5acdd8['getFirstRange']();if(_0x2ec2d1['containsRange'](_0x508e0c,!0x0))return null;_0xfe3d9a=_0xfe3d9a['isBefore'](_0x2ec2d1['start'])?_0xfe3d9a:_0x2ec2d1['start'],_0x3fe3cb=_0x3fe3cb['isAfter'](_0x2ec2d1['end'])?_0x3fe3cb:_0x2ec2d1['end'],_0x30ba6c?_0x2ec2d1['start']['isBefore'](_0x30ba6c['getFirstRange']()['start'])?(_0x30ba6c['removeMarkers'](),_0x30ba6c=_0x5acdd8):_0x5acdd8['removeMarkers']():_0x30ba6c=_0x5acdd8;}const _0x34e2b4=this['_model']['createRange'](_0xfe3d9a,_0x3fe3cb);if(_0x30ba6c)this['_setSuggestionRange'](_0x30ba6c,_0x34e2b4);else{const _0x4916d0=_0x543158(),_0x2722fc=_0x504e88['id'];this['_setSuggestionData']({'id':_0x4916d0,'type':'formatInline:'+_0x40de07,'data':_0x1c5174,'createdAt':new Date(),'authorId':_0x2722fc,'attributes':_0x2855c4}),this['_addSuggestionMarker']('formatInline:'+_0x40de07,_0x4916d0,_0x2722fc,_0x34e2b4);}}return null;}['markBlockFormat'](_0x46b363,_0x5b7a34,_0x8967f3=[],_0x3b1e2f=null,_0x5d5ef5={}){_0x5b7a34['formatGroupId']||(_0x5b7a34['formatGroupId']=_0x5b7a34['commandName']),_0x5b7a34['multipleBlocks']=_0x46b363['is']('range'),_0x3b1e2f=_0x3b1e2f||Kt(_0x5b7a34);const _0x4ab232=_0x8967f3['map'](_0x131d36=>zt(_0x131d36,this['_model'])),_0x197404=_0x46b363['is']('range')?_0x46b363:zt(_0x46b363,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d2068=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b1e2f,'accept');return this['forceDefaultExecution'](()=>_0x3d2068([_0x197404],_0x5b7a34,_0x5d5ef5)),null;}_0x4ab232['push'](_0x197404);let _0x157f6d=!0x0;for(const _0x57d9fc of _0x4ab232)if(!this['_rangeIsInLocalUserInsertion'](_0x57d9fc)){_0x157f6d=!0x1;break;}if(_0x157f6d&&'always'!==this['_trackFormatChanges']){const _0x74d75=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b1e2f,'accept');return this['forceDefaultExecution'](()=>_0x74d75([_0x197404],_0x5b7a34,_0x5d5ef5)),null;}let _0x4ff33c=null,_0x5e8990=_0x197404['start'],_0x46eab7=_0x197404['end'];for(const {suggestion:_0x3ce1fa,meta:_0x3e7f8b}of this['_findSuggestions'](_0x197404,'formatBlock')){if(!_0x3e7f8b['isOwn'])continue;if(_0x3e7f8b['isNextTo']||_0x3e7f8b['containsRangeInObject']||_0x3e7f8b['isInsideObject'])continue;if(_0x3ce1fa['data']['formatGroupId']!=_0x5b7a34['formatGroupId'])continue;if(!Xt(_0x3ce1fa,_0x5d5ef5))continue;const _0xcd0d3e=_0x3ce1fa['getFirstRange']();if(_0x3ce1fa['subType']==_0x3b1e2f){if(_0xcd0d3e['containsRange'](_0x197404,!0x0))return null;_0x5e8990=_0x5e8990['isBefore'](_0xcd0d3e['start'])?_0x5e8990:_0xcd0d3e['start'],_0x46eab7=_0x46eab7['isAfter'](_0xcd0d3e['end'])?_0x46eab7:_0xcd0d3e['end'],_0x4ff33c?_0xcd0d3e['start']['isBefore'](_0x4ff33c['getFirstRange']()['start'])?(_0x4ff33c['removeMarkers'](),_0x4ff33c=_0x3ce1fa):_0x3ce1fa['removeMarkers']():_0x4ff33c=_0x3ce1fa;}else{const _0x1b7059=_0x197404['getIntersection'](_0xcd0d3e);this['_cutOutSuggestionMarker'](_0x3ce1fa,_0x1b7059);}}const _0x2159aa=this['editor']['plugins']['get']('Users')['me'],_0x4d8ed4=_0x543158(),_0xe1d07e=_0x2159aa['id'];if(_0x4ff33c)return this['_setSuggestionRange'](_0x4ff33c,this['_model']['createRange'](_0x5e8990,_0x46eab7)),_0x4ff33c;{const _0x36c736=this['_setSuggestionData']({'id':_0x4d8ed4,'type':'formatBlock:'+_0x3b1e2f,'data':_0x5b7a34,'createdAt':new Date(),'authorId':_0xe1d07e,'attributes':_0x5d5ef5});return this['_addSuggestionMarker']('formatBlock:'+_0x3b1e2f,_0x4d8ed4,_0xe1d07e,this['_model']['createRange'](_0x5e8990,_0x46eab7)),_0x36c736;}}['markMultiRangeBlockFormat'](_0x202825,_0x2a6ac2,_0x1d1fa4=[],_0x48859f=null,_0x55a232={}){_0x2a6ac2['formatGroupId']||(_0x2a6ac2['formatGroupId']=_0x2a6ac2['commandName']);const _0x2f2501=_0x202825[0x0];_0x2a6ac2['multipleBlocks']=_0x2f2501['is']('range'),_0x48859f=_0x48859f||Kt(_0x2a6ac2);const _0x269457=_0x1d1fa4['map'](_0x87f350=>zt(_0x87f350,this['_model'])),_0x153e43=_0x2f2501['is']('range')?_0x202825:_0x202825['map'](_0x2b78f8=>zt(_0x2b78f8,this['_model']));if('never'===this['_trackFormatChanges']){const _0x379a11=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48859f,'accept');return this['forceDefaultExecution'](()=>_0x379a11(_0x153e43,_0x2a6ac2,_0x55a232)),null;}_0x269457['push'](..._0x153e43);let _0x4a658f=!0x0;for(const _0x47dab2 of _0x269457)if(!this['_rangeIsInLocalUserInsertion'](_0x47dab2)){_0x4a658f=!0x1;break;}if(_0x4a658f&&'always'!==this['_trackFormatChanges']){const _0x1bc9e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48859f,'accept');return this['forceDefaultExecution'](()=>_0x1bc9e0(_0x153e43,_0x2a6ac2,_0x55a232)),null;}const _0x353b36=this['editor']['plugins']['get']('Users')['me'];for(const _0x2a7f00 of this['getSuggestions']()){if(_0x2a7f00['author']['id']!=_0x353b36['id'])continue;if('formatBlock'!=_0x2a7f00['type']||_0x2a7f00['data']['formatGroupId']!=_0x2a6ac2['formatGroupId'])continue;if(!Xt(_0x2a7f00,_0x55a232))continue;const _0x5c63c1=_0x2a7f00['subType']==_0x48859f;for(let _0x2699dd=0x0;_0x2699dd<_0x153e43['length'];_0x2699dd++){const _0x380d05=_0x153e43[_0x2699dd];for(const _0x2f6562 of _0x2a7f00['getMarkers']()){const _0x288a44=_0x2f6562['getRange']();if(_0x380d05['isEqual'](_0x288a44)){_0x5c63c1?(_0x153e43['splice'](_0x2699dd,0x1),_0x2699dd--):_0x2a7f00['removeMarker'](_0x2f6562['name']);break;}}}}if(0x0==_0x153e43['length'])return null;const _0xc9ae9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48859f,'join');for(const _0xceb7 of this['getSuggestions']())if(_0xceb7['author']['id']==_0x353b36['id']&&'formatBlock'==_0xceb7['type']&&_0xceb7['data']['formatGroupId']==_0x2a6ac2['formatGroupId']&&_0xceb7['subType']==_0x48859f&&Xt(_0xceb7,_0x55a232)&&(_0xc9ae9c(_0xceb7['getRanges'](),_0x153e43)||_0xc9ae9c(_0x153e43,_0xceb7['getRanges']()))){for(const _0x5a662d of _0x153e43)_0xceb7['addRange'](_0x5a662d);return _0xceb7;}const _0x146566=_0x543158(),_0x53468c=_0x353b36['id'],_0x3d3604='formatBlock:'+_0x48859f,_0x461500=this['_setSuggestionData']({'id':_0x146566,'type':_0x3d3604,'data':_0x2a6ac2,'createdAt':new Date(),'authorId':_0x53468c,'attributes':_0x55a232});for(const _0x41671a of _0x153e43)this['_addSuggestionMarker'](_0x3d3604,_0x146566,_0x53468c,_0x41671a,o['getMultiRangeId']());return _0x461500;}['markDeletion'](_0x212c67,_0x4a3c5=null,_0x21da79={}){if(_0x212c67['isCollapsed'])return null;const _0x3a8b8f=this['editor']['plugins']['get']('Users')['me'],_0x35145c=new _0x27d8bc(_0x212c67['start'],_0x212c67['end']);for(const {suggestion:_0x36489f,meta:_0x395876}of this['_findSuggestions'](_0x35145c,'insertion'))if(_0x395876['isOwn']&&!_0x395876['isNextTo']){if(_0x36489f['isMultiRange']){const _0x3c672b=_0x36489f['getRanges']()['filter'](_0x45f292=>'$graveyard'!=_0x45f292['root']['rootName']);_0x3c672b['every'](_0x137fd6=>_0x35145c['containsRange'](_0x137fd6,!0x0))&&_0x36489f['discard']();if(_0x3c672b['some'](_0x3853a6=>_0x3853a6['containsRange'](_0x35145c,!0x0))){const _0x515c3d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a3c5,'accept');return this['forceDefaultExecution'](()=>_0x515c3d([_0x35145c],null,_0x21da79)),null;}}else{const _0xd97857=_0x35145c['getIntersection'](_0x36489f['getFirstRange']());null!==_0xd97857&&_0x36489f['_onDiscard']([_0xd97857],null,_0x21da79);}}if(_0x35145c['detach'](),_0x35145c['isCollapsed']||'$graveyard'==_0x35145c['root']['rootName'])return null;let _0x5b7f94=null,_0x2d80eb=_0x35145c['start'],_0xf01a2e=_0x35145c['end'];const _0x53a001=this['_findSuggestions'](_0x35145c,'deletion');for(const {suggestion:_0x2c8f4f,meta:_0x231764}of _0x53a001){const _0x32a4a6=this['_model']['createRange'](_0x2d80eb,_0xf01a2e);if(_0x231764['isOwn']&&(this['_mergeNestedSuggestions']||!_0x231764['containsRangeInObject']&&!_0x231764['isInsideObject'])){if(_0x2c8f4f['isMultiRange']){if(!Xt(_0x2c8f4f,_0x21da79))continue;let _0x3c9750=!0x0;for(const _0x2850a7 of _0x2c8f4f['getRanges']()){if(_0x2850a7['containsRange'](_0x32a4a6,!0x0))return _0x2c8f4f;_0x32a4a6['containsRange'](_0x2850a7)||(_0x3c9750=!0x1);}_0x3c9750&&_0x2c8f4f['discard']();}else{const _0x365c46=_0x2c8f4f['getFirstRange']();if(_0x365c46['containsRange'](_0x32a4a6,!0x0))return _0x2c8f4f;if(!Xt(_0x2c8f4f,_0x21da79)){_0x32a4a6['containsRange'](_0x365c46)?_0x2c8f4f['removeMarkers']():_0x365c46['containsPosition'](_0x2d80eb)?_0x2d80eb=_0x365c46['end']:_0x365c46['containsPosition'](_0xf01a2e)&&(_0xf01a2e=_0x365c46['start']);continue;}_0x2d80eb=_0x2d80eb['isBefore'](_0x365c46['start'])?_0x2d80eb:_0x365c46['start'],_0xf01a2e=_0xf01a2e['isAfter'](_0x365c46['end'])?_0xf01a2e:_0x365c46['end'],_0x21da79=Object['assign']({},_0x2c8f4f['attributes']),_0x5b7f94?_0x365c46['start']['isBefore'](_0x5b7f94['getFirstRange']()['start'])?(_0x5b7f94['removeMarkers'](),_0x5b7f94=_0x2c8f4f):_0x2c8f4f['removeMarkers']():_0x5b7f94=_0x2c8f4f;}}}if(_0x5b7f94)return this['_setSuggestionRange'](_0x5b7f94,this['_model']['createRange'](_0x2d80eb,_0xf01a2e)),_0x5b7f94;{const _0x4fb38c=_0x543158(),_0x365a7e=this['_model']['createRange'](_0x2d80eb,_0xf01a2e),_0x8ed7e0=_0x3a8b8f['id'],_0x5991ab=_0x4a3c5?'deletion:'+_0x4a3c5:'deletion',_0x5eb837=this['_setSuggestionData']({'id':_0x4fb38c,'type':_0x5991ab,'createdAt':new Date(),'authorId':_0x8ed7e0,'attributes':_0x21da79});return this['_addSuggestionMarker'](_0x5991ab,_0x4fb38c,_0x8ed7e0,_0x365a7e),_0x5eb837;}}['markMultiRangeDeletion'](_0x56a57a,_0x1c8433='multi',_0x21e97b={}){const _0x462291=this['editor']['plugins']['get']('Users')['me'],_0x3d1300=_0x56a57a['map'](_0x31a5a2=>new _0x27d8bc(_0x31a5a2['start'],_0x31a5a2['end'])),_0x3808e2=new Set();for(const {suggestion:_0x15b10f,meta:_0x560097}of this['_findSuggestions'](_0x3d1300,'insertion'))_0x560097['isOwn']&&!_0x560097['isNextTo']&&_0x3808e2['add'](_0x15b10f);for(const _0x575b05 of _0x3808e2)if(_0x575b05['isMultiRange']){const _0x4628a4=_0x575b05['getRanges']();(!_0x575b05['attributes']||!_0x575b05['attributes']['skipNestingCheck'])&&(_0x4628a4['every'](_0x34b9bd=>_0x3d1300['some'](_0x349763=>_0x349763['containsRange'](_0x34b9bd,!0x0)))&&_0x575b05['discard']());if(_0x3d1300['every'](_0x265e43=>_0x4628a4['some'](_0x58240f=>_0x58240f['containsRange'](_0x265e43,!0x0)))){const _0x4bf9d8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c8433,'accept');return this['forceDefaultExecution'](()=>_0x4bf9d8(_0x56a57a,null,_0x21e97b)),null;}}else{const _0x594d7b=_0x575b05['getFirstRange']();_0x3d1300['some'](_0x392c38=>_0x392c38['containsRange'](_0x594d7b,!0x0))&&_0x575b05['discard']();if(_0x3d1300['every'](_0x52278a=>_0x594d7b['containsRange'](_0x52278a,!0x0))){const _0x3e9dec=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c8433,'accept');return this['forceDefaultExecution'](()=>_0x3e9dec(_0x3d1300,null,_0x21e97b)),null;}}const _0x30de69=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c8433,'join');let _0x4f91bb=null;for(const _0x28e68a of this['getSuggestions']())if(_0x28e68a['author']['id']==_0x462291['id']&&_0x28e68a['isInContent']&&'deletion'==_0x28e68a['type']&&_0x28e68a['subType']==_0x1c8433&&Xt(_0x28e68a,_0x21e97b)&&(_0x30de69(_0x28e68a['getRanges'](),_0x3d1300)||_0x30de69(_0x3d1300,_0x28e68a['getRanges']()))){if(_0x4f91bb){if(_0x28e68a['commentThread']&&_0x28e68a['commentThread']['length'])continue;for(const _0x53f780 of _0x28e68a['getRanges']())_0x4f91bb['isIntersectingWithRange'](_0x53f780)||_0x4f91bb['addRange'](_0x53f780);_0x28e68a['removeMarkers']();}else{_0x4f91bb=_0x28e68a;for(const _0x2652e6 of _0x3d1300)_0x28e68a['isIntersectingWithRange'](_0x2652e6)||_0x28e68a['addRange'](_0x2652e6);}}if(_0x4f91bb)return _0x4f91bb;_0x3808e2['clear']();for(const {suggestion:_0x25a458,meta:_0x542cd9}of this['_findSuggestions'](_0x3d1300,'deletion'))_0x542cd9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x542cd9['containsRangeInObject']&&!_0x542cd9['isInsideObject'])&&Xt(_0x25a458,_0x21e97b)&&_0x3808e2['add'](_0x25a458);for(const _0x441d7f of _0x3808e2){const _0x2950e4=_0x441d7f['getRanges']();if(!_0x21e97b||!_0x21e97b['skipNestingCheck']){if(_0x3d1300['every'](_0x25bd42=>_0x2950e4['some'](_0x3a1e44=>_0x3a1e44['containsRange'](_0x25bd42,!0x0))))return _0x441d7f;}(!_0x441d7f['attributes']||!_0x441d7f['attributes']['skipNestingCheck'])&&(_0x2950e4['every'](_0x5a3a20=>_0x3d1300['some'](_0xcc9b4e=>_0xcc9b4e['containsRange'](_0x5a3a20,!0x0)))&&_0x441d7f['discard']());}const _0x218ee1=_0x543158(),_0x1bc1c8=_0x462291['id'],_0x54d6ed='deletion:'+_0x1c8433,_0xce985f=this['_setSuggestionData']({'id':_0x218ee1,'type':_0x54d6ed,'createdAt':new Date(),'authorId':_0x1bc1c8,'attributes':_0x21e97b});for(const _0x5dccbf of _0x3d1300)_0x5dccbf['detach'](),_0x5dccbf['isCollapsed']||'$graveyard'==_0x5dccbf['root']['rootName']||this['_addSuggestionMarker'](_0x54d6ed,_0x218ee1,_0x1bc1c8,_0x5dccbf,o['getMultiRangeId']());return _0xce985f;}['markAttributeChange'](_0x19f515,_0x554ff5,_0x54d4c5,_0x3f09a1,_0x3f3dc2){if(_0x19f515['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa4b87b=this['editor']['plugins']['get']('Users')['me']['id'],_0x3eed01=Array['from'](this['_suggestions']['values']())['filter'](_0x521aa3=>'attribute'==_0x521aa3['type']&&_0x521aa3['data']['key']==_0x554ff5&&_0x521aa3['isIntersectingWithRange'](_0x19f515));if('default'===this['_trackFormatChanges']){const _0x23db01=this['_findSuggestions'](_0x19f515,'insertion')['filter'](({meta:_0x3c500e})=>_0x3c500e['isOwn']&&!_0x3c500e['isInsideObject']&&!_0x3c500e['isNextTo'])['map'](({suggestion:_0x5323e7})=>_0x5323e7);_0x3eed01['unshift'](..._0x23db01);}const _0x146bcc=new Map([[_0x19f515,_0x54d4c5]]);for(const _0x323af2 of _0x3eed01){const _0xd3bc5d='attribute'==_0x323af2['type']?_0x323af2['data']['oldValue']:void 0x0,_0x30b3b9=_0x323af2['getFirstRange'](),_0x4af816=Array['from'](_0x146bcc['keys']())['find'](_0x262944=>_0x262944['isIntersecting'](_0x30b3b9));if(!_0x4af816)continue;const _0x2af7fa=_0x4af816['getDifference'](_0x30b3b9);this['_isBlockAttribute'](_0x554ff5)&&'insertion'==_0x323af2['type']&&0x0!=_0x2af7fa['length']||(_0x146bcc['delete'](_0x4af816),_0x2af7fa['forEach'](_0x21fa41=>{_0x146bcc['set'](_0x21fa41,_0x54d4c5);}),'insertion'!=_0x323af2['type']&&_0xd3bc5d!=_0x3f09a1&&_0x146bcc['set'](_0x4af816['getIntersection'](_0x30b3b9),_0xd3bc5d));}const _0x754a43=[];for(const [_0x16834b,_0x266119]of _0x146bcc){const _0x120050=_0x543158(),_0x1aa2b5={'key':_0x554ff5,'oldValue':_0x266119,'newValue':_0x3f09a1};_0x554ff5['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':_0x554ff5});const _0x5f4939=('attribute:'+(_0x554ff5+'|'+Kt({'newValue':_0x3f09a1})))['substring'](0x0,0x3c),_0x518c75=this['_setSuggestionData']({'id':_0x120050,'type':_0x5f4939,'data':_0x1aa2b5,'createdAt':new Date(),'authorId':_0xa4b87b,'attributes':_0x3f3dc2});_0x754a43['push'](_0x518c75),this['_addSuggestionMarker'](_0x5f4939,_0x120050,_0xa4b87b,_0x16834b);}return _0x754a43;}['enableDefaultAttributesIntegration'](_0x46193e){this['enableCommand'](_0x46193e,(_0x89f9a5,..._0x414f39)=>{this['_recordAttributeChanges'](()=>{_0x89f9a5(..._0x414f39);});});}['registerBlockAttribute'](_0x409818){this['_blockAttributeKeys']['add'](_0x409818);}['registerInlineAttribute'](_0x3787db){this['_inlineAttributeKeys']['add'](_0x3787db);}['_getAttributeKey'](_0x2cd4fa){return'attribute'==_0x2cd4fa['type']?_0x2cd4fa['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1febb3,_0x580bf3){const _0x1f06d6=_0x1febb3['getFirstMarker']();this['_model']['change'](_0x35caf6=>{_0x35caf6['updateMarker'](_0x1f06d6,{'range':_0x580bf3});});}['_addThreadToSuggestion'](_0x1cc195){const _0x59e09a=_0x1cc195['id'],_0x5ac4bf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x59e09a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5ac4bf,'threadId':_0x59e09a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x235578=this['_commentsRepository']['getCommentThread'](_0x59e09a);_0x235578['unbind']('isRemovable'),_0x235578['isRemovable']=!0x1,_0x1cc195['commentThread']=_0x235578;}['_checkSuggestionCorrectness'](_0x2383f3,_0x23e09d,_0x124943,_0x2e7712){if(_0x2383f3['type']!=_0x23e09d||_0x2383f3['subType']!=_0x124943||_0x2383f3['creator']['id']!=_0x2e7712)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5b8507('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x41321f,_0x170f7b){const _0x49439b=_0x41321f['getFirstRange']();if(_0x170f7b['isEqual'](_0x49439b))_0x41321f['removeMarkers']();else{if(_0x49439b['containsRange'](_0x170f7b)){const _0x412380=this['_model']['createPositionAt'](_0x170f7b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41321f,this['_model']['createRange'](_0x49439b['start'],_0x412380));const _0xc453a5=_0x543158(),_0xc8da65=_0x41321f['creator']['id'],_0x432e3c=_0x41321f['type']+':'+_0x41321f['subType'];this['_setSuggestionData']({'id':_0xc453a5,'type':_0x432e3c,'createdAt':new Date(),'authorId':_0xc8da65,'data':_0x41321f['data'],'attributes':_0x41321f['attributes']});const _0x6da600=this['_model']['createPositionAt'](_0x170f7b['end']['parent'],'after'),_0x21aa3b=this['_model']['createRange'](_0x6da600,_0x49439b['end']);this['_addSuggestionMarker'](_0x432e3c,_0xc453a5,_0xc8da65,_0x21aa3b);}else{if(_0x49439b['containsPosition'](_0x170f7b['start'])){const _0x42a62e=this['_model']['createPositionAt'](_0x170f7b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41321f,this['_model']['createRange'](_0x49439b['start'],_0x42a62e));}else{const _0x4b4f68=this['_model']['createPositionAt'](_0x170f7b['end']['parent'],'after');this['_setSuggestionRange'](_0x41321f,this['_model']['createRange'](_0x4b4f68,_0x49439b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x10f88f){for(const {suggestion:_0x1ff41b,meta:_0x260b2b}of this['_findSuggestions'](_0x10f88f,'insertion')){if(!_0x260b2b['isOwn'])continue;const _0xfdd22b=_0x1ff41b['getRanges']();for(const _0x475486 of _0xfdd22b)if(!_0x10f88f['getDifference'](_0x475486)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4867dc){const _0x559fa1=this['editor']['plugins']['get']('Users')['getUser'](_0x4867dc);if(!_0x559fa1)throw new _0x5b8507('track-changes-user-not-found',this);return _0x559fa1;}['_getExternalAuthor'](_0x1007fa){const _0x159e52=this['editor']['plugins']['get']('Users'),_0x4881f7=_0x15682d('external:'+_0x1007fa),_0x58d7bb=_0x159e52['getUser'](_0x4881f7);return _0x58d7bb||_0x159e52['addUser']({'id':_0x4881f7,'name':_0x1007fa});}['_createSuggestion'](_0x571f0e,_0x376b4e,_0xfdf740,_0x4596d8,_0x2a0bf9){const _0x3db0f8=this['_getAuthorFromId'](_0x4596d8),_0x258d90=this['_suggestionFactory']['buildSuggestion'](_0x571f0e,_0x376b4e,_0xfdf740,_0x3db0f8,_0x2a0bf9,_0x362c75=>{this['_updateSuggestionData'](_0xfdf740,{'attributes':_0x362c75});const _0x57bd9f=this['getSuggestion'](_0xfdf740);this['_joinWithAdjacentSuggestions'](new Set([_0x57bd9f])),this['_refreshSuggestionsChain'](new Set([_0x57bd9f]));});return this['listenTo'](_0x258d90,'accept',()=>{this['_updateSuggestionData'](_0xfdf740,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x258d90,'discard',()=>{this['_updateSuggestionData'](_0xfdf740,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xfdf740,_0x258d90),this['_suggestionState']['set'](_0x258d90,'notReady'),_0x258d90;}['_splitMarkerName'](_0x451af6){const _0x2247ee=_0x451af6['split'](':');return{'group':_0x2247ee[0x0],'type':_0x2247ee[0x1],'subType':_0x2247ee['length']>=0x5?_0x2247ee[0x2]:null,'id':_0x2247ee['length']<0x5?_0x2247ee[0x2]:_0x2247ee[0x3],'authorId':_0x2247ee['length']<0x5?_0x2247ee[0x3]:_0x2247ee[0x4],'markerCount':0x6==_0x2247ee['length']?_0x2247ee[0x5]:null};}['_breakSuggestionMarker'](_0x340dba,_0x54919e,_0x5e64a3){const _0x5ab3a2=_0x340dba['getFirstRange'](),_0x48115a=_0x5ab3a2['start'],_0x4c7512=_0x5ab3a2['end'];this['_setSuggestionRange'](_0x340dba,this['_model']['createRange'](_0x48115a,_0x54919e));const _0x4aac9a=_0x543158(),_0x37aa85=_0x340dba['creator']['id'],_0x1019b2=_0x340dba['type']+(_0x340dba['subType']?':'+_0x340dba['subType']:'');this['_setSuggestionData']({'id':_0x4aac9a,'type':_0x1019b2,'createdAt':new Date(),'authorId':_0x37aa85,'originalSuggestionId':_0x340dba['id'],'attributes':_0x340dba['attributes'],'data':_0x340dba['data']});const _0x39b798=this['_getAttributeKey'](_0x340dba);('formatBlock'==_0x340dba['type']||_0x39b798&&this['_isBlockAttribute'](_0x39b798))&&(_0x5e64a3=this['_model']['createPositionBefore'](_0x5e64a3['parent'])),this['_addSuggestionMarker'](_0x1019b2,_0x4aac9a,_0x37aa85,this['_model']['createRange'](_0x5e64a3,_0x4c7512));}['_findSuggestions'](_0x49295a,_0x3df5b8=null){const _0x12428a=[],_0x292d1a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x49295a)||(_0x49295a=[_0x49295a]);for(const _0x37f546 of this['getSuggestions']()){if(!_0x37f546['isInContent'])continue;if(_0x3df5b8&&_0x37f546['type']!=_0x3df5b8)continue;let _0x4dd072=!0x1;for(const _0x50d04e of _0x37f546['getRanges']()){for(const _0x4f21fc of _0x49295a){const _0xaa925a=_0x4f21fc['start']['isEqual'](_0x50d04e['end'])||_0x4f21fc['end']['isEqual'](_0x50d04e['start']);if(_0xaa925a||_0x4f21fc['getIntersection'](_0x50d04e)){const _0x4c7d68=_0x4f21fc['containsRange'](_0x50d04e)&&Gt(this['_model']['schema'],_0x50d04e['start'],_0x4f21fc),_0x20c79c=_0x50d04e['containsRange'](_0x4f21fc)&&Gt(this['_model']['schema'],_0x4f21fc['start'],_0x50d04e);_0x12428a['push']({'suggestion':_0x37f546,'meta':{'isOwn':_0x292d1a==_0x37f546['author'],'isNextTo':_0xaa925a,'isInsideObject':_0x4c7d68,'containsRangeInObject':_0x20c79c}}),_0x4dd072=!0x0;break;}}if(_0x4dd072)break;}}return _0x12428a;}['_addSuggestionMarker'](_0x175398,_0x51f34e,_0x47ac27,_0x305c00,_0x331b32){this['_model']['change'](_0x3d7c28=>{let _0x4abb58='suggestion:'+_0x175398+':'+_0x51f34e+':'+_0x47ac27;_0x331b32&&(_0x4abb58=_0x4abb58+':'+_0x331b32),_0x3d7c28['addMarker'](_0x4abb58,{'range':_0x305c00,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x37fcdf){const _0x149468=_0x37fcdf['previous'],_0x528da2=_0x37fcdf['next'];_0x37fcdf['previous']=null,_0x37fcdf['next']=null,null!=_0x149468&&_0x149468['next']==_0x37fcdf&&(_0x149468['next']=_0x528da2),null!=_0x528da2&&_0x528da2['previous']==_0x37fcdf&&(_0x528da2['previous']=_0x149468),'ready'==this['_suggestionState']['get'](_0x37fcdf)&&(this['_suggestionState']['set'](_0x37fcdf,'removed'),this['fire']('suggestionUnloaded',_0x37fcdf,_0x149468,_0x528da2));}['_setSuggestionData'](_0x448154){const _0x377d25=_0x448154['id'],_0x3fe262=this['addSuggestionData'](_0x448154);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4f8a21=this['editor']['plugins']['get']('PendingActions'),_0x381b1c=_0x3fe262['hasComments'],_0x5d44df=_0x3fe262['subType']?_0x3fe262['type']+':'+_0x3fe262['subType']:_0x3fe262['type'],_0x1ac273=this['editor']['locale'],_0x23cb15=_0x4f8a21['add'](c(_0x1ac273,'PENDING_ACTION_SUGGESTION')),_0xca37b9={'id':_0x377d25,'type':_0x5d44df,'hasComments':_0x381b1c,'data':_0x448154['data']||null,'originalSuggestionId':_0x448154['originalSuggestionId']||null,'attributes':_0x3fe262['attributes']};this['_adapter']['addSuggestion'](_0xca37b9)['then'](_0x3aa575=>{_0x3fe262['_saved']=!0x0,_0x4f8a21['remove'](_0x23cb15),_0x3aa575&&_0x3aa575['createdAt']&&(this['_suggestions']['get'](_0x377d25)['createdAt']=_0x3aa575['createdAt']);})['catch'](_0x589982=>{throw _0x3f55c6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3fe262['discard']();}),_0x3fe262['stopListening'](),this['_suggestions']['delete'](_0x3fe262['id']),this['_suggestionState']['delete'](_0x3fe262),_0x589982;});}return _0x3fe262;}['_isBlockAttribute'](_0x9a8d05){return this['_blockAttributeKeys']['has'](_0x9a8d05);}['_updateSuggestionData'](_0x59038e,_0x2fc326){const _0x2e87c3=this['editor']['plugins']['get']('PendingActions'),_0x3f211b=this['getSuggestion'](_0x59038e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3f211b['_saved']){const _0x20011c=_0x2e87c3['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x59038e,_0x2fc326)['then'](()=>{_0x2e87c3['remove'](_0x20011c);});}else _0x3f211b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x59038e,_0x2fc326);});}}['_getSuggestionData'](_0x50697e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5b8507('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x50697e);}['_handleNewSuggestionMarker'](_0xa94279){const {id:_0x2c681a,type:_0x38bb26,subType:_0x11c47d,authorId:_0x3951d6}=this['_splitMarkerName'](_0xa94279),_0x5cf635=this['_suggestions']['get'](_0x2c681a)||this['_createSuggestion'](_0x38bb26,_0x11c47d,_0x2c681a,_0x3951d6,{});switch(this['_checkSuggestionCorrectness'](_0x5cf635,_0x38bb26,_0x11c47d,_0x3951d6),this['_suggestionState']['get'](_0x5cf635)){case'notReady':this['_getSuggestionData'](_0x2c681a)['then'](_0x5a3bf6=>{let _0x4e4180=Promise['resolve']();_0x5a3bf6['hasComments']&&(_0x4e4180=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2c681a})),_0x4e4180['then'](()=>{this['addSuggestionData'](_0x5a3bf6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5cf635,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2c681a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5cf635,'ready'),this['fire']('suggestionLoaded',_0x5cf635);break;case'ready':this['fire']('suggestionChanged',_0x5cf635);}return _0x5cf635['addMarkerName'](_0xa94279),_0x5cf635;}['_refreshSuggestionsChain'](_0x5331ea){const _0x459193=Array['from'](_0x5331ea),_0x2932c0=_0x459193['filter'](_0x134bea=>'attribute'==_0x134bea['type']);this['_refreshAttributeSuggestionsChain'](_0x2932c0);const _0x48eddc=_0x459193['filter'](_0x3663e9=>!_0x3663e9['isMultiRange']&&'attribute'!=_0x3663e9['type']),_0x497762=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46c53c=>!_0x46c53c['isMultiRange']&&'attribute'!=_0x46c53c['type']),_0x3abc8=_0x497762['filter'](_0x120629=>!_0x5331ea['has'](_0x120629)),_0x466e09=new Map(_0x497762['map'](_0x3e579d=>[_0x3e579d,this['_suggestionFactory']['getSuggestionCallback'](_0x3e579d['type'],_0x3e579d['subType'],'chain')])),_0x30618e=new Map(_0x497762['map'](_0x30a979=>[_0x30a979,_0x30a979['getFirstRange']()])),_0x224229=new Set(),_0x21dad4=new Set();for(let _0x4c192c=0x0;_0x4c192c<_0x48eddc['length'];_0x4c192c++)_0x3288d3(_0x48eddc[_0x4c192c],_0x48eddc,_0x4c192c+0x1);for(let _0x626be2=0x0;_0x626be2<_0x48eddc['length'];_0x626be2++)_0x3288d3(_0x48eddc[_0x626be2],_0x3abc8,0x0);const _0x2461ae=new Set();for(let _0x5be060=0x0;_0x5be060<_0x48eddc['length'];_0x5be060++){const _0x288b82=_0x48eddc[_0x5be060];!_0x21dad4['has'](_0x288b82)&&_0x288b82['previous']&&(_0x2461ae['add'](_0x288b82['previous']),_0x288b82['previous']['next']===_0x288b82&&(_0x288b82['previous']['next']=null),_0x288b82['previous']=null),!_0x224229['has'](_0x288b82)&&_0x288b82['next']&&(_0x2461ae['add'](_0x288b82['next']),_0x288b82['next']['previous']===_0x288b82&&(_0x288b82['next']['previous']=null),_0x288b82['next']=null);}function _0x3288d3(_0x24c6d0,_0x429620,_0x1ea64e){for(let _0x4f472a=_0x1ea64e;_0x4f472a<_0x429620['length'];_0x4f472a++){const _0x827b7e=_0x185989(_0x24c6d0,_0x429620[_0x4f472a]);_0x827b7e&&(_0x827b7e[0x0]['next']=_0x827b7e[0x1],_0x827b7e[0x1]['previous']=_0x827b7e[0x0],_0x224229['add'](_0x827b7e[0x0]),_0x21dad4['add'](_0x827b7e[0x1]));}}function _0x185989(_0x834ab9,_0x21caa2){if(_0x834ab9['author']['id']!==_0x21caa2['author']['id'])return null;const _0x25ba0b=_0x466e09['get'](_0x834ab9)(_0x834ab9,_0x21caa2,_0x30618e['get'](_0x834ab9),_0x30618e['get'](_0x21caa2));if(!_0x25ba0b)return null;return _0x466e09['get'](_0x21caa2)(_0x834ab9,_0x21caa2,_0x30618e['get'](_0x834ab9),_0x30618e['get'](_0x21caa2))?_0x25ba0b[0x1]['commentThread']&&_0x25ba0b[0x1]['commentThread']['length']?null:_0x25ba0b:null;}_0x2461ae['size']&&this['_refreshSuggestionsChain'](_0x2461ae);}['_refreshAttributeSuggestionsChain'](_0x1424fd){if(0x0==_0x1424fd['length'])return;const _0x212750=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d6437=>'attribute'==_0x2d6437['type']&&_0x2d6437['_isDataLoaded']),_0x58d2fd=[],_0x57b55c=new Map();for(const _0x16cbc8 of _0x212750){const _0x491613=_0x15682d(_0x16cbc8['attributes']);_0x57b55c['has'](_0x491613)||(_0x57b55c['set'](_0x491613,_0x58d2fd['length']),_0x58d2fd['push']([]));const _0x10f8f5=_0x57b55c['get'](_0x491613);_0x58d2fd[_0x10f8f5]['push'](_0x16cbc8);}!(function(){_0x58d2fd['sort']((_0xddbe29,_0x39c1ba)=>{const _0x2f0908=_0xddbe29[0x0]['createdAt'],_0x41940c=_0x39c1ba[0x0]['createdAt'];return _0x2f0908==_0x41940c?_0xddbe29[0x0]['attributes']['groupId']<_0x39c1ba[0x0]['attributes']['groupId']?-0x1:0x1:_0x2f0908<_0x41940c?-0x1:0x1;});for(const _0x1cba08 of _0x58d2fd)_0x1cba08['sort']((_0x22d804,_0x2f4ded)=>_0x22d804['id']<_0x2f4ded['id']?-0x1:0x1);}());for(let _0x804819=0x0;_0x804819<_0x58d2fd['length'];_0x804819++){if(0x0==_0x58d2fd[_0x804819]['length'])continue;const _0x3c775a=[];for(let _0x5a5949=_0x804819+0x1;_0x5a5949<_0x58d2fd['length'];_0x5a5949++)0x0!=_0x58d2fd[_0x5a5949]['length']&&_0x255c30(_0x58d2fd[_0x804819],_0x58d2fd[_0x5a5949])&&_0x3c775a['push'](_0x5a5949);for(const _0x5d8082 of _0x3c775a)_0x58d2fd[_0x804819]=_0x58d2fd[_0x804819]['concat'](_0x58d2fd[_0x5d8082]),_0x58d2fd[_0x5d8082]=[];}for(const _0x3cfcb1 of _0x58d2fd)for(let _0x481575=0x0;_0x481575<_0x3cfcb1['length'];_0x481575++){const _0xb5b4f6=_0x3cfcb1[_0x481575+0x1]||null;_0x3cfcb1[_0x481575]['next']!==_0xb5b4f6&&(_0x3cfcb1[_0x481575]['next']=_0xb5b4f6);}for(const _0x3b2f3d of _0x58d2fd)for(let _0x40d04a=0x0;_0x40d04a<_0x3b2f3d['length'];_0x40d04a++){const _0x4a8471=_0x3b2f3d[_0x40d04a-0x1]||null;_0x3b2f3d[_0x40d04a]['previous']!==_0x4a8471&&(_0x3b2f3d[_0x40d04a]['previous']=_0x4a8471);}function _0x255c30(_0x5dc56b,_0x36a09a){if(_0x5dc56b[0x0]['attributes']['groupId']!==_0x36a09a[0x0]['attributes']['groupId']&&_0x5dc56b[0x0]['author']!==_0x36a09a[0x0]['author'])return!0x1;if(!function(_0x138319,_0x4cf5ec){if(!_0x138319['hasComments']&&!_0x4cf5ec['hasComments'])return!0x0;if(_0x138319['hasComments']&&_0x4cf5ec['hasComments'])return!0x1;if(_0x138319['hasComments']&&_0x4cf5ec['createdAt']<_0x138319['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4cf5ec['hasComments']&&_0x138319['createdAt']<_0x4cf5ec['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5dc56b[0x0],_0x36a09a[0x0]))return!0x1;const _0x1040ec=Ft(_0x5dc56b[0x0]['attributes'],'groupId'),_0x1f2c87=Ft(_0x36a09a[0x0]['attributes'],'groupId');if(!_0x222265(_0x1040ec,_0x1f2c87))return!0x1;return!!_0x5dc56b['every'](_0x2499c3=>_0x36a09a['some'](_0x200307=>_0x2499c3['getFirstRange']()['isEqual'](_0x200307['getFirstRange']())))&&_0x36a09a['every'](_0xe8d53f=>_0x5dc56b['some'](_0x1a0786=>_0xe8d53f['getFirstRange']()['isEqual'](_0x1a0786['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xb6a6c){const _0x26f8e0=Array['from'](_0xb6a6c),_0x5d1711=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1cf473=_0x5d1711['filter'](_0x3b7b07=>!_0xb6a6c['has'](_0x3b7b07)),_0x1cd5b2=new Map(_0x26f8e0['map'](_0x3acf54=>[_0x3acf54,this['_suggestionFactory']['getSuggestionCallback'](_0x3acf54['type'],_0x3acf54['subType'],'join')])),_0x283298=new Map(_0x5d1711['map'](_0x1de3c0=>[_0x1de3c0,_0x1de3c0['getRanges']()]));for(let _0x4d24ad=0x0;_0x4d24ad<_0x26f8e0['length'];_0x4d24ad++){if(_0x26aa51(this,_0x26f8e0[_0x4d24ad],_0x26f8e0,_0x4d24ad+0x1))return!0x0;}for(let _0x14a896=0x0;_0x14a896<_0x26f8e0['length'];_0x14a896++){if(_0x26aa51(this,_0x26f8e0[_0x14a896],_0x1cf473,0x0))return!0x0;}return!0x1;function _0x26aa51(_0x1893d5,_0x11ea6a,_0x2e370d,_0x152206){for(let _0xe939fd=_0x152206;_0xe939fd<_0x2e370d['length'];_0xe939fd++){const _0x27ec9e=_0x2e370d[_0xe939fd];if(_0x27ec9e['type']!==_0x11ea6a['type']||_0x27ec9e['author']['id']!==_0x11ea6a['author']['id']||_0x27ec9e['subType']!==_0x11ea6a['subType'])continue;if(!Qt(_0x11ea6a,_0x27ec9e))continue;if('attribute'==_0x11ea6a['type']&&_0x11ea6a['data']['oldValue']!=_0x27ec9e['data']['oldValue'])continue;if('attribute'==_0x11ea6a['type']&&_0x1893d5['_isBlockAttribute'](_0x11ea6a['data']['key']))continue;if('formatBlock'==_0x11ea6a['type']){const _0x446ecb=_0x1893d5['editor']['model'],_0x102c03=_0x11ea6a['getContainedElement']();if(_0x102c03&&(_0x446ecb['schema']['isObject'](_0x102c03)||_0x446ecb['schema']['isLimit'](_0x102c03)))continue;}const _0x428736=_0x1cd5b2['get'](_0x11ea6a),_0x10eb50=_0x283298['get'](_0x11ea6a),_0x5a500a=_0x283298['get'](_0x27ec9e),_0x36e758=_0x11ea6a['commentThread']&&_0x11ea6a['commentThread']['length'],_0x11c626=_0x27ec9e['commentThread']&&_0x27ec9e['commentThread']['length'];if(!_0x36e758&&_0x428736(_0x5a500a,_0x10eb50))return _0x1893d5['_joinSuggestions'](_0x27ec9e,_0x11ea6a),_0x283298['delete'](_0x11ea6a),!0x0;if(!_0x11c626&&_0x428736(_0x10eb50,_0x5a500a))return _0x1893d5['_joinSuggestions'](_0x11ea6a,_0x27ec9e),_0x283298['delete'](_0x27ec9e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x34c15c,_0x328201){if(_0x34c15c['isMultiRange']){for(const _0x563c3d of _0x328201['getRanges']())_0x34c15c['addRange'](_0x563c3d);}else{const _0x1941c5=_0x328201['getFirstRange']()['end'];this['_setSuggestionRange'](_0x34c15c,this['_model']['createRange'](_0x34c15c['getFirstRange']()['start'],_0x1941c5));}_0x328201['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1e21b4,_0x148e58,_0x162566){const _0x4a2cb5=_0x1e21b4['startsWith']('format')||_0x1e21b4['startsWith']('attribute')?'FORMATTING':_0x1e21b4['toUpperCase']();return c(this['editor']['locale'],_0x148e58+'_'+_0x4a2cb5+'_SUGGESTION_ANNOUNCEMENT',_0x162566);}['_initAriaMarkerChangeAnnouncements'](){const _0x1bda96=this['editor'];if(!_0x1bda96['ui'])return;const {ariaLiveAnnouncer:_0x1914c3}=_0x1bda96['ui'];_0x224907(this['_model'],({left:_0x71a51b,entered:_0x486c68})=>{for(const _0x18124b of _0x71a51b){const {group:_0x23f313,type:_0x587d3b}=this['_splitMarkerName'](_0x18124b['name']);if('suggestion'===_0x23f313){_0x1914c3['announce'](this['_getMarkerAnnouncementText'](_0x587d3b,'LEAVE'));break;}}for(const _0x5e6944 of _0x486c68){const {group:_0x3fe7ae,type:_0x1a4931}=this['_splitMarkerName'](_0x5e6944['name']);if('suggestion'===_0x3fe7ae){_0x1914c3['announce'](this['_getMarkerAnnouncementText'](_0x1a4931,'ENTER',_0xa8769e(_0x5853fa)));break;}}});}['_processAttributeChanges'](_0x11f792){if(this['_recordAttributeSuggestions'])return!0x1;const _0x387768=this['editor'],_0x1137fd=_0x387768['model']['document']['differ']['getChanges']();if(0x0==_0x1137fd['length'])return!0x1;const _0x44ec22=[],_0x59f6ee=_0x1137fd['filter'](_0x55f11e=>'attribute'==_0x55f11e['type']),_0x438af6=_0x1137fd['filter'](_0x64cbcf=>'insert'==_0x64cbcf['type']&&'$text'!=_0x64cbcf['name']),_0x1b7938=_0x1137fd['filter'](_0x17456e=>'remove'==_0x17456e['type']&&'$text'!=_0x17456e['name']);for(const _0x3bc083 of _0x59f6ee)_0x44ec22['push']({'key':_0x3bc083['attributeKey'],'newValue':_0x3bc083['attributeNewValue'],'oldValue':_0x3bc083['attributeOldValue'],'range':qt(_0x3bc083['range'],_0x387768['model'])});for(const _0x19ed1e of _0x438af6){const _0x583d54=_0x1b7938['find'](_0x584db5=>_0x584db5['position']['isEqual'](_0x19ed1e['position']));_0x583d54&&_0x44ec22['push']({'key':u,'newValue':_0x19ed1e['name'],'oldValue':_0x583d54['name'],'range':_0x387768['model']['createRangeOn'](_0x19ed1e['position']['nodeAfter'])});}return 0x0!=_0x44ec22['length']&&this['_reduceExistingSuggestions'](_0x11f792,_0x44ec22);}['_processAttributeSuggestions'](_0x397c06){let _0x205a41=!0x1;const _0x49b0d5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6630ca=>_0x6630ca['data']['newRange']&&_0x6630ca['name']['startsWith']('suggestion:attribute:'));for(const _0xefd9d5 of _0x49b0d5){const {subType:_0x36c910,id:_0x5b1ccc}=this['_splitMarkerName'](_0xefd9d5['name']),_0x21d31f=_0x36c910['split']('|')[0x0];for(const _0x138dd7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x138dd7['id']!=_0x5b1ccc&&'attribute'==_0x138dd7['type']&&_0x138dd7['data']&&_0x138dd7['data']['key']==_0x21d31f&&_0x138dd7['getFirstRange']()['isIntersecting'](_0xefd9d5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x138dd7,_0xefd9d5['data']['newRange'],_0x397c06),_0x205a41=!0x0);}return _0x205a41;}['_recordAttributeChanges'](_0x4e4d2b){this['_recordAttributeSuggestions']=!0x0,_0x4e4d2b();}['_isRegisteredAttribute'](_0x3edb49){const _0x4d2c29=this['_isBlockAttribute'](_0x3edb49),_0x16cf76=this['_inlineAttributeKeys']['has'](_0x3edb49);return _0x4d2c29||_0x16cf76;}['_reduceExistingSuggestions'](_0xa61096,_0x4cc8b9){if(0x0==_0x4cc8b9['length'])return!0x1;let _0x55f9a7=!0x1;for(const _0x582f01 of _0x4cc8b9){const _0x595d83=this['_findSuggestions'](_0x582f01['range'],'attribute')['filter'](_0x51e0ef=>!_0x51e0ef['meta']['isNextTo'])['map'](_0x39c394=>_0x39c394['suggestion']),_0x470b24=_0x15682d({'newValue':_0x582f01['newValue']});_0x595d83['filter'](_0x3b13e2=>{const [_0x537f55,_0x5e3f61]=_0x3b13e2['subType']['split']('|');return _0x537f55==_0x582f01['key']&&_0x5e3f61!=_0x470b24;})['forEach'](_0x41fc69=>{this['_reduceSuggestionAttributeRange'](_0x41fc69,_0x582f01['range'],_0xa61096),_0x55f9a7=!0x0;});}return _0x55f9a7;}['_reduceSuggestionAttributeRange'](_0x543c04,_0x22e6af,_0x4d4fce){const _0x1b46de=_0x543c04['getFirstRange']()['getDifference'](_0x22e6af);0x0!==_0x1b46de['length']?0x1!==_0x1b46de['length']?this['_breakSuggestionMarker'](_0x543c04,_0x22e6af['start'],_0x22e6af['end']):this['_setSuggestionRange'](_0x543c04,_0x1b46de[0x0]):_0x4d4fce['removeMarker'](_0x543c04['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4bd31a){this['_editor']=_0x4bd31a,this['_model']=_0x4bd31a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x6fe19e,_0x45b4b9,_0x48b4cb,_0x32dab7,_0x611fd,_0x3116e5){return new o(this['_model'],{'type':_0x6fe19e,'subType':_0x45b4b9,'id':_0x48b4cb,'author':_0x32dab7,'creator':_0x32dab7,'attributes':_0x611fd,'onAttributesChange':_0x3116e5,'onAccept':(..._0x40a0cd)=>this['getSuggestionCallback'](_0x6fe19e,_0x45b4b9,'accept')(..._0x40a0cd),'onDiscard':(..._0xb7da80)=>this['getSuggestionCallback'](_0x6fe19e,_0x45b4b9,'discard')(..._0xb7da80)});}['registerCustomCallback'](_0x7eee66,_0x103046,_0x301960,_0x408c09){const _0x409adf=_0x7eee66+':'+_0x103046+':'+_0x301960;this['_customCallbacks']['set'](_0x409adf,_0x408c09);}['getSuggestionCallback'](_0x2632eb,_0x1c2236,_0x45c066){const _0x9e3f9a=_0x2632eb+':'+_0x1c2236+':'+_0x45c066;return this['_customCallbacks']['get'](_0x9e3f9a)||this['_defaultCallbacks']['get'](_0x2632eb+':'+_0x45c066);}['_registerDefaultCallbacks'](){const _0x1ad6a6=()=>!0x1,_0x57ee21=_0x3c5ad1=>{_0x3c5ad1['sort']((_0x353ad6,_0x180829)=>_0x353ad6['start']['isBefore'](_0x180829['start'])?0x1:-0x1),this['_model']['change'](_0x3a789a=>{for(const _0x2f5725 of _0x3c5ad1){let _0x50231d;_0x50231d=_0x2f5725['end']['isAtEnd']&&_0x2f5725['end']['parent']==_0x2f5725['start']['nodeAfter']?_0x3a789a['createSelection'](_0x2f5725['start']['nodeAfter'],'on'):_0x3a789a['createSelection'](_0x2f5725),this['_model']['deleteContent'](_0x50231d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4ec5fe=(_0x237749,_0x48245c)=>{_0x48245c&&this['_model']['change'](_0x1bc9ca=>{const {commandName:_0x324122,commandParams:_0x5796fd=[]}=_0x48245c,_0x2d3f2f=_0x237749['map'](_0x24fe82=>(Lt(_0x24fe82)&&(_0x24fe82=this['_model']['createRange'](_0x24fe82['end'])),_0x24fe82))['filter'](_0x594334=>'$graveyard'!==_0x594334['root']['rootName']);if(_0x2d3f2f['length']<0x1)return;const _0x5e5dd9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x425ac1=>_0x27d8bc['fromRange'](_0x425ac1));_0x1bc9ca['setSelection'](_0x2d3f2f);for(const _0x5a19a6 of this['_editor']['commands']['commands']())_0x5a19a6['refresh']();_0x5796fd['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x324122,..._0x5796fd);const _0x393937=_0x5e5dd9['filter'](_0x3a6677=>'$graveyard'!=_0x3a6677['root']['rootName']);_0x393937['length']>0x0&&_0x1bc9ca['setSelection'](_0x393937);for(const _0x51f7d4 of _0x5e5dd9)_0x51f7d4['detach']();});},_0x2b6ddd=(_0x25df4e,_0x1143ad)=>0x1==_0x25df4e['length']&&0x1==_0x1143ad['length']&&_0x25df4e[0x0]['end']['isEqual'](_0x1143ad[0x0]['start']),_0x1c6e19=(_0x34940a,_0x204cba,_0x581456,_0x2c3e00)=>Wt(_0x34940a,_0x204cba,_0x581456,_0x2c3e00)?[_0x34940a,_0x204cba]:Wt(_0x204cba,_0x34940a,_0x2c3e00,_0x581456)?[_0x204cba,_0x34940a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1ad6a6),this['_defaultCallbacks']['set']('insertion:discard',_0x57ee21),this['_defaultCallbacks']['set']('insertion:join',_0x2b6ddd),this['_defaultCallbacks']['set']('insertion:chain',_0x1c6e19),this['_defaultCallbacks']['set']('deletion:accept',_0x57ee21),this['_defaultCallbacks']['set']('deletion:discard',_0x1ad6a6),this['_defaultCallbacks']['set']('deletion:join',_0x2b6ddd),this['_defaultCallbacks']['set']('deletion:chain',_0x1c6e19),this['_defaultCallbacks']['set']('formatInline:accept',_0x4ec5fe),this['_defaultCallbacks']['set']('formatInline:discard',_0x1ad6a6),this['_defaultCallbacks']['set']('formatInline:join',_0x2b6ddd),this['_defaultCallbacks']['set']('formatInline:chain',_0x1ad6a6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4ec5fe),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1ad6a6),this['_defaultCallbacks']['set']('formatBlock:join',_0x2b6ddd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1ad6a6),this['_defaultCallbacks']['set']('attribute:accept',_0x1ad6a6),this['_defaultCallbacks']['set']('attribute:discard',(_0x3b722d,_0x4bdcb9)=>{if(!_0x4bdcb9)return;const _0x1a2753=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3a9e32=>{if(_0x4bdcb9['key']==u)for(const _0x32d847 of _0x3b722d){const _0x5134e5=_0x32d847['start']['nodeAfter'],_0x41a844=_0x4bdcb9['oldValue'];_0x3a9e32['rename'](_0x5134e5,_0x41a844);}else{if(_0x1a2753['_isBlockAttribute'](_0x4bdcb9['key'])){for(const _0x163925 of _0x3b722d)void 0x0!==_0x4bdcb9['oldValue']?_0x3a9e32['setAttribute'](_0x4bdcb9['key'],_0x4bdcb9['oldValue'],_0x163925['start']['nodeAfter']):_0x3a9e32['removeAttribute'](_0x4bdcb9['key'],_0x163925['start']['nodeAfter']);}else{for(const _0x47e201 of _0x3b722d)_0x4bdcb9['oldValue']?_0x3a9e32['setAttribute'](_0x4bdcb9['key'],_0x4bdcb9['oldValue'],_0x47e201):_0x3a9e32['removeAttribute'](_0x4bdcb9['key'],_0x47e201);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2b6ddd);}}function Gt(_0x3d7e64,_0x2921f4,_0x3deb30){for(const _0x2351b6 of _0x2921f4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2351b6['root']==_0x2351b6)return!0x1;if(!_0x3deb30['containsItem'](_0x2351b6))return!0x1;if(_0x3d7e64['isObject'](_0x2351b6)||_0x3d7e64['isLimit'](_0x2351b6))return!0x0;}return!0x1;}function Lt(_0x12dee4){return _0x12dee4['end']['parent']==_0x12dee4['start']['nodeAfter']&&_0x12dee4['end']['isAtStart'];}function Jt(_0x1fbea4,_0x1e667b,_0x3be104,_0x355772){const _0x4c3b6c=_0x61cdb0=>!_0x61cdb0['item']['is']('$textProxy')&&!_0x355772['isObject'](_0x61cdb0['item']),_0x4bb810=_0x1fbea4['start']['getLastMatchingPosition'](_0x4c3b6c),_0x4411d1=_0x1fbea4['end']['getLastMatchingPosition'](_0x4c3b6c,{'direction':'backward'});return(!_0x1fbea4['start']['isEqual'](_0x4bb810)||!_0x1fbea4['end']['isEqual'](_0x4411d1))&&(_0x4bb810['isBefore'](_0x4411d1)?_0x3be104['updateMarker'](_0x1e667b,{'range':_0x3be104['createRange'](_0x4bb810,_0x4411d1)}):_0x3be104['removeMarker'](_0x1e667b),!0x0);}function Kt(_0x505cca){return _0x15682d(_0x505cca);}function Ht(_0x594cf6){const _0x30c0b1=_0x594cf6['start']['nodeAfter'];return _0x30c0b1&&_0x30c0b1['is']('element');}function qt(_0x5879e7,_0x191b57){return null==_0x5879e7['end']['nodeBefore']&&_0x5879e7['end']['parent']==_0x5879e7['start']['nodeAfter']?zt(_0x5879e7['start']['nodeAfter'],_0x191b57):_0x5879e7;}function zt(_0x28e5ef,_0x451469){const _0x42389b=_0x451469['schema']['isObject'](_0x28e5ef)||_0x451469['schema']['isSelectable'](_0x28e5ef);return _0x451469['createRange'](_0x451469['createPositionAt'](_0x28e5ef,'before'),_0x42389b?_0x451469['createPositionAfter'](_0x28e5ef):_0x451469['createPositionAt'](_0x28e5ef,'end'));}function Wt(_0x5b97ef,_0x416b58,_0x216da8,_0x3b1222){return!!Qt(_0x5b97ef,_0x416b58)&&_0x216da8['end']['isEqual'](_0x3b1222['start']);}function Qt(_0x541c10,_0x3f86ff){if(!_0x541c10['_isDataLoaded']||!_0x3f86ff['_isDataLoaded'])return!0x1;const _0xad4c3=new Set(Object['keys'](_0x541c10['attributes'])),_0x2e7915=new Set(Object['keys'](_0x3f86ff['attributes']));if(_0xad4c3['delete']('groupId'),_0x2e7915['delete']('groupId'),0x0==_0xad4c3['size']&&0x0==_0x2e7915['size'])return!0x0;if(_0xad4c3['size']!=_0x2e7915['size'])return!0x1;const _0x57ba7a={..._0x541c10['attributes']},_0x107239={..._0x3f86ff['attributes']};return delete _0x57ba7a['groupId'],delete _0x107239['groupId'],JSON['stringify'](_0x57ba7a)==JSON['stringify'](_0x107239);}function Xt(_0x2f0e66,_0x1e478d){const _0x26c472=Yt(_0x2f0e66['attributes']),_0x6a6704=Yt(_0x1e478d);if(!_0x2f0e66['_isDataLoaded'])return!0x1;for(const _0x297316 of Object['keys'](_0x6a6704))if(!_0x222265(_0x26c472[_0x297316],_0x6a6704[_0x297316]))return!0x1;return!0x0;}function Yt(_0x2e4657){const _0x478795=Object['assign']({},_0x2e4657);return delete _0x478795['skipNestingCheck'],delete _0x478795['tablePasteChainId'],_0x478795;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x59a73e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5b34fe,_0x1c794f,_0x2d4f8b,_0x3abcab){super(),this['model']=_0x1c794f,this['view']=_0x2d4f8b,this['commentThreadController']=_0x3abcab,this['_editor']=_0x5b34fe,this['_acceptCommand']=_0x5b34fe['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5b34fe['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x103a3a,_0x5c3732)=>_0x103a3a||_0x5c3732),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1b6236=>_0x1b6236&&this['_editor']['model']['canEditAt'](_0x1c794f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2d091c=>_0x2d091c&&this['_editor']['model']['canEditAt'](_0x1c794f['getRanges']())),this['_pendingAction']=null,_0x2d4f8b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2d4f8b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2d4f8b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2d4f8b,'change:isDirty',()=>{_0x2d4f8b['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 _0x3ed14a=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3ed14a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x318208{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x300115,_0x2b0658,_0x43a39c,_0x57c855){super(_0x300115),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x287eb4(_0x300115,c(_0x300115,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2b0658['authoredAt']),this['bind']('authoredAt')['to'](_0x2b0658),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',_0x2b0658,'authoredAt',this,'descriptionParts',(_0x3182c1,_0xe23612,_0xfd0059)=>{const _0x5cf60a=_0xfd0059['map'](_0x2638b8=>ls(_0x2638b8['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3182c1-0x1,_0x2b0658['author']['name'],_0xe23612?_0x57c855['formatDateTime'](_0xe23612):'',new DOMParser()['parseFromString'](_0x5cf60a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2e5133(),this['focusTracker']=new _0x101b2d(),this['keystrokes']=new _0x514720(),this['focusCycler']=new _0x3a281e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x342696=>_0x342696['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2b0658,this['_localUser']=_0x43a39c,this['_config']=_0x57c855,_0x57c855['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x392308(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x232824}=this['_config'];this['commentsListView']=new _0x232824(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',_0x6fdeba=>_0x6fdeba+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x235bd3,_0xbf2544)=>_0x235bd3||!!_0xbf2544);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2fcf86}=this['_config'],_0x5af8fb=new _0x2fcf86(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1aa2b6=_0x5af8fb['commentInputView'];return _0x5af8fb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1aa2b6,'value',(_0x3d3faa,_0x30a4ed,_0x14c3ed)=>!!_0x14c3ed||_0x3d3faa&&!_0x30a4ed),_0x1aa2b6['on']('submit',(_0xca921d,_0x43304b)=>{this['fire']('addComment',_0x43304b),_0x1aa2b6['editor']['setData']('');}),_0x1aa2b6['on']('cancel',()=>this['focus']()),_0x1aa2b6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5af8fb;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2ab0cb,_0x43d9bf,_0x1631f2,_0x27f3ae){super(_0x2ab0cb,_0x43d9bf,_0x1631f2,_0x27f3ae),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x48749b=>_0x48749b&&_0x48749b[0x0]?_0x48749b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2e9d6d,_0x4cafe4)=>{let _0x3ab0b9='';for(const _0x3c00c9 of _0x2e9d6d)_0x3ab0b9+='<p>'+ls(_0x3c00c9['content'],_0x3c00c9['color'])+'</p>';return _0x4cafe4?_0x3ab0b9:ti(_0x3ab0b9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x27f3ae['SuggestionView'](_0x2ab0cb,_0x43d9bf,{'formatDateTime':_0x27f3ae['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 _0x35839a=this['bindTemplate'],_0x473085=[this['suggestionView']];return this['commentsListView']&&_0x473085['push'](this['commentsListView']),this['commentThreadInputView']&&_0x473085['push'](this['commentThreadInputView']),_0x473085['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x35839a['if']('isActive','ck-suggestion-wrapper--active'),_0x35839a['to']('type',_0x36fbf6=>'ck-suggestion-'+_0x36fbf6),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':_0x35839a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x473085};}['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 _0x318208{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1a032,_0x8bc091,_0x26e9c4){super(_0x1a032),this['_model']=_0x8bc091,this['_config']=_0x26e9c4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x8bc091),this['acceptButton']=this['_createButton'](c(_0x1a032,'Accept\x20suggestion'),_0x53679a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1a032,'Discard\x20suggestion'),_0x22d25d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x272be7(_0x1a032,_0x8bc091['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2e5133([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x101b2d(),this['keystrokes']=new _0x514720(),this['focusCycler']=new _0x3a281e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x439a72=>_0x439a72['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x53ec7e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x53ec7e['innerHTML']=this['description'],this['on']('change:description',(_0x197557,_0x3b6416,_0x25d161)=>{_0x53ec7e['innerHTML']=_0x25d161;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x15748f=this['bindTemplate'],_0x2cce9f=[{'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':_0x15748f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x15748f['to']('authoredAt',_0x342caf=>this['_config']['formatDateTime'](_0x342caf))}]}]},{'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']&&_0x2cce9f['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':_0x2cce9f}]};}['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'](_0x5f4997,_0x513c7c,_0x1abc34,_0x3329d0,_0xbee97c){const _0x2918b8=new _0x2ad798(this['locale']);return _0x2918b8['set']({'label':_0x5f4997,'icon':_0x513c7c,'tooltip':!0x0,'tooltipPosition':_0xbee97c}),_0x2918b8['extendTemplate']({'attributes':{'class':_0x1abc34}}),_0x2918b8['on']('execute',()=>{this['fire'](_0x3329d0,this['_model']['id']);}),_0x2918b8;}['_setupKeyboardNavigation'](){const _0x383ef8=this['element'];this['keystrokes']['listenTo'](_0x383ef8);for(const _0x8b4e63 of this['focusables'])this['focusTracker']['add'](_0x8b4e63['element']),this['keystrokes']['listenTo'](_0x8b4e63['element']);this['keystrokes']['set']('enter',(_0x1a4f7f,_0x57f3eb)=>{_0x383ef8===_0x1a4f7f['target']&&(this['focusCycler']['focusFirst'](),_0x57f3eb());}),this['keystrokes']['set']('esc',(_0x5606b5,_0x1ebc13)=>{_0x383ef8!==_0x5606b5['target']&&(this['focus'](),_0x1ebc13());});}}class d extends _0xc188f5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x546bdd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33c339){super(_0x33c339),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3695ee=this['editor']['config'];_0x3695ee['define']('trackChanges.SuggestionThreadView',fe),_0x3695ee['define']('trackChanges.SuggestionView',we),_0x3695ee['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3695ee['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x40f260,_0x252f6e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1343d6,_0x2e0014]of this['_handleControllerBuffer']){const _0x6b871f=this['_suggestionToController']['has'](_0x1343d6);_0x6b871f||_0x2e0014?_0x6b871f&&_0x2e0014&&this['_destroyController'](_0x1343d6):this['_initializeController'](_0x1343d6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x40f260,_0x252f6e);}['init'](){const _0x8bdea0=this['editor'],_0x4a9492=_0x8bdea0['plugins']['get']('TrackChangesEditing'),_0x35ad18=_0x8bdea0['plugins']['get']('Annotations'),_0x115ad8=_0x8bdea0['plugins']['get']('EditorAnnotations'),_0x13b234=_0x8bdea0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x115ad8['addSourceCollector'](()=>{const _0x565c42=[];for(const [_0x5e68b9,_0x52bbae]of Array['from'](this['_suggestionToController'])){const _0x1d01fd=_0x5e68b9['getAllAdjacentSuggestions'](),_0x1c5460=[];for(const _0x55f58b of _0x1d01fd){if(!_0x55f58b['isInContent'])continue;if(_0x55f58b['isMultiRange']){_0x1c5460['push'](..._0x55f58b['getRanges']());continue;}const _0x2c57e9=_0x55f58b['getFirstRange']();if(_0x1c5460['length']>0x0){const _0x4aae8a=_0x1c5460[0x0]['getJoined'](_0x2c57e9);if(_0x4aae8a){_0x1c5460[0x0]=_0x4aae8a;continue;}}_0x1c5460['push'](_0x2c57e9);}_0x565c42['push']([_0x52bbae['view'],_0x1c5460]);}return _0x565c42;}),this['listenTo'](_0x4a9492,'suggestionLoaded',(_0x3b0f0a,_0x585b72)=>{this['listenTo'](_0x585b72,'change:previous',(_0x360bf5,_0x2f3aee,_0x31a2f8,_0x31f7f0)=>{_0x585b72['isInContent']&&(null==_0x31a2f8?(this['_updateController'](_0x31f7f0['head']),this['_handleSuggestionControllerDelayed'](_0x585b72,!0x1)):(this['_updateController'](_0x31a2f8['head']),null==_0x31f7f0&&this['_handleSuggestionControllerDelayed'](_0x585b72,!0x0)));}),null!==_0x585b72['previous']?this['_updateController'](_0x585b72['head']):this['_handleSuggestionControllerDelayed'](_0x585b72,!0x1);}),this['listenTo'](_0x4a9492,'suggestionUnloaded',(_0x22f55b,_0x2169c8,_0x474ceb)=>{this['stopListening'](_0x2169c8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2169c8),this['_suggestionToController']['has'](_0x2169c8)&&this['_destroyController'](_0x2169c8),_0x474ceb&&this['_updateController'](_0x474ceb['head']);}),this['listenTo'](_0x4a9492,'suggestionChanged',(_0x5318a1,_0x46ae08)=>{this['_updateController'](_0x46ae08);}),this['listenTo'](_0x35ad18,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x13b234,'addComment',(_0x5e2ce3,{threadId:_0x56bbad,isFromAdapter:_0x1a47a6})=>{if(_0x1a47a6||!_0x4a9492['hasSuggestion'](_0x56bbad))return;const _0x59d4b3=_0x4a9492['getSuggestion'](_0x56bbad);this['_suggestionToController']['get'](_0x59d4b3)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d2ae1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd43b6;for(const _0x5dc560 in _0x2d2ae1){const _0x234d9e=_0x5dc560,_0x1cab80=_0x2d2ae1[_0x234d9e];if('trackChangesLicenseKeyValid'==_0x1cab80||'trackChangesLicenseKeyInvalid'==_0x1cab80||'trackChangesLicenseKeyExpired'==_0x1cab80||'trackChangesLicenseKeyDomainLimit'==_0x1cab80||'trackChangesLicenseKeyNotAllowed'==_0x1cab80||'trackChangesLicenseKeyEvaluationLimit'==_0x1cab80||'trackChangesLicenseKeyTrialLimit'==_0x1cab80||'trackChangesLicenseKeyUsageLimit'==_0x1cab80){delete _0x2d2ae1[_0x234d9e],_0xd43b6=_0x1cab80,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xd43b6&&_0x2d2ae1['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xf973cf=this['editor']['plugins']['get']('Annotations'),_0x5768e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c7884=Array['from'](_0xf973cf['activeAnnotations'],_0x2d0e12=>_0x2d0e12['innerView'])['filter'](_0x13c5e9=>this['_viewToController']['has'](_0x13c5e9)),_0x24d639=[];for(const _0xa69702 of _0x1c7884){const _0x6d6ca3=this['_viewToController']['get'](_0xa69702)['model']['getAllAdjacentSuggestions']();_0x24d639['push'](..._0x6d6ca3['reduce']((_0x39ee87,_0x10a43b)=>[..._0x39ee87,..._0x10a43b['getMarkerNames']()],[]));}_0x5768e2['activeMarkers']=_0x24d639;}['_addUIComponentsToFactory'](){const _0x4621cd=this['editor'],_0xc0fd4c=_0x4621cd['locale'],_0x4f826f=c(_0xc0fd4c,'Track\x20changes'),_0x3ff566=new _0x29d7f8([{'type':'switchbutton','model':new _0x471719({'withText':!0x0,'isToggleable':!0x0,'label':_0x4f826f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x471719({'withText':!0x0,'label':c(_0xc0fd4c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x471719({'withText':!0x0,'label':c(_0xc0fd4c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x471719({'withText':!0x0,'label':c(_0xc0fd4c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x471719({'withText':!0x0,'label':c(_0xc0fd4c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4621cd['plugins']['has']('TrackChangesPreview')&&_0x3ff566['addMany']([{'type':'separator'},{'type':'button','model':new _0x471719({'withText':!0x0,'label':c(_0xc0fd4c,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x44f123 of _0x3ff566)if(ke(_0x44f123)){const _0x510557=_0x4621cd['commands']['get'](_0x44f123['model']['commandName']);_0x44f123['model']['bind']('isOn','isEnabled')['to'](_0x510557,'value','isEnabled');}_0x4621cd['ui']['componentFactory']['add']('trackChanges',_0x3717b9=>this['_createToolbarButton'](_0x3717b9,_0x3ff566,_0x4f826f)),_0x4621cd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1c2f1e=>this['_createMenuBarMenu'](_0x1c2f1e,_0x3ff566,_0x4f826f));}['_createToolbarButton'](_0x3d5949,_0x2ec72a,_0x28c57a){const _0x29808f=_0x26cd9b(_0x3d5949,_0xc16298),_0x4dd9bf=this['editor']['commands']['get']('trackChanges');_0x29808f['buttonView']['set']({'tooltip':_0x28c57a,'label':_0x28c57a,'icon':_0xca119}),_0x29808f['buttonView']['bind']('isOn')['to'](_0x4dd9bf,'value'),_0x29808f['buttonView']['on']('execute',()=>{_0x4dd9bf['execute'](),this['editor']['editing']['view']['focus']();}),_0x38f58b(_0x29808f,_0x2ec72a,{'role':'menu'});const _0x4773e1=[];for(const _0x2a4dee of _0x2ec72a)ke(_0x2a4dee)&&_0x4773e1['push'](this['editor']['commands']['get'](_0x2a4dee['model']['commandName']));const _0x1d4736=_0x29808f['buttonView'];return _0x1d4736['actionView']['unbind']('isEnabled'),_0x1d4736['arrowView']['unbind']('isEnabled'),_0x1d4736['actionView']['bind']('isEnabled')['to'](_0x4dd9bf,'isEnabled'),_0x1d4736['arrowView']['bind']('isEnabled')['toMany'](_0x4773e1,'isEnabled',(..._0x1e20bd)=>_0x1e20bd['some'](_0x57f3d0=>_0x57f3d0)),_0x29808f['on']('execute',_0x3d494d=>{this['editor']['execute'](_0x3d494d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x29808f;}['_createMenuBarMenu'](_0x38482b,_0x34e475,_0x283708){const _0x1ed240=new _0x46ef68(_0x38482b),_0x2a3033=this['editor']['commands']['get']('trackChanges');_0x1ed240['buttonView']['set']({'label':_0x283708,'icon':_0xca119});const _0xa2505d=new _0x3b7ea8(_0x38482b);for(const _0x4cd7f3 of _0x34e475){if('separator'==_0x4cd7f3['type']){_0xa2505d['items']['add'](new _0x7ad159(_0x38482b));continue;}const _0x35931d=new _0x107293(_0x38482b,_0x1ed240),_0x5a6fb3=new _0x5789b8(_0x38482b),_0x14bdca=_0x4cd7f3['model'];_0x5a6fb3['bind'](...Object['keys'](_0x14bdca))['to'](_0x14bdca),_0x5a6fb3['delegate']('execute')['to'](_0x1ed240),_0x5a6fb3['on']('execute',()=>{this['editor']['execute'](_0x14bdca['commandName']),this['editor']['editing']['view']['focus']();}),_0x35931d['children']['add'](_0x5a6fb3),_0xa2505d['items']['add'](_0x35931d);}return _0x1ed240['bind']('isEnabled')['to'](_0x2a3033,'isEnabled'),_0x1ed240['panelView']['children']['add'](_0xa2505d),_0x1ed240;}['_initializeController'](_0x31e9c1){const _0x4a84de=this['editor'],_0x23e4cf=_0x4a84de['config'],_0x3bc9ab=_0x4a84de['plugins']['get']('Annotations'),_0x1cb14c=_0x4a84de['plugins']['get']('CommentsRepository'),_0x253996=_0x4a84de['plugins']['get']('EditorAnnotations'),_0x19d2d1=_0x4a84de['plugins']['get'](_0x546bdd)['me'],_0x48a621=_0x23e4cf['get']('trackChanges')['SuggestionThreadView'],_0x3b3d75=_0x23e4cf['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2e6fff,CommentThreadInputView:_0x415b9c}=_0x4a84de['plugins']['get']('CommentsUI');let _0x4b06c7,_0x31656d,_0x235b4a;this['_annotationViews']['has'](_0x31e9c1['id'])?(_0x31656d=this['_annotationViews']['get'](_0x31e9c1['id']),_0x4b06c7=_0x31656d['mainView']):(_0x4b06c7=new _0x48a621(_0x4a84de['locale'],_0x31e9c1,_0x19d2d1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x23e4cf['get']('comments.editorConfig'),'licenseKey':_0x23e4cf['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x23e4cf['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x23e4cf['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x23e4cf['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1d0cb8(_0x23e4cf['get']('locale'),_0x4a84de['locale']),'CommentView':_0x23e4cf['get']('comments')['CommentView'],'CommentsListView':_0x2e6fff,'CommentThreadInputView':_0x415b9c,'SuggestionView':_0x3b3d75}),_0x4b06c7['suggestionView']['acceptButton']['on']('execute',()=>{_0x4a84de['editing']['view']['focus']();}),_0x4b06c7['suggestionView']['discardButton']['on']('execute',()=>{_0x4a84de['editing']['view']['focus']();}),_0x31656d=_0x3bc9ab['createAnnotationView'](this['editor']['locale'],_0x4b06c7),_0x31656d['bind']('isDirty')['to'](_0x4b06c7,'isDirty'),_0x31656d['bind']('length')['to'](_0x4b06c7),_0x31656d['bind']('type')['to'](_0x4b06c7,'type',_0x5f5184=>'suggestion-'+_0x5f5184),_0x4b06c7['on']('escape',()=>{_0x235b4a['fire']('escape');}),this['_annotationViews']['set'](_0x31e9c1['id'],_0x31656d));const _0x393625=_0x1cb14c['createCommentThreadController'](_0x31e9c1['commentThread'],_0x4b06c7),_0x233b4d=new pe(_0x4a84de,_0x31e9c1,_0x4b06c7,_0x393625),_0x1bb85a=_0x31e9c1['getAllAdjacentSuggestions']()['filter'](_0x54d9c9=>_0x54d9c9['isInContent']);_0x4b06c7['descriptionParts']=_0x4a84de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1bb85a),this['_suggestionToController']['set'](_0x31e9c1,_0x233b4d),this['_viewToController']['set'](_0x4b06c7,_0x233b4d),_0x235b4a=_0x3bc9ab['createAnnotation']({'view':_0x31656d,'target':()=>{const _0x30ec72=[],_0x38b440=_0x31e9c1['getAllAdjacentSuggestions']()['filter'](_0x541d5e=>_0x541d5e['isInContent']);for(const _0x56674d of _0x38b440)_0x30ec72['push'](..._0x56674d['getMarkers']());return _0x2f266a(_0x4a84de['editing'],_0x30ec72);},'type':()=>'suggestion-'+_0x233b4d['view']['type']}),_0x1cb14c['_bindAnnotationToEditors'](_0x4b06c7,_0x235b4a),_0x3bc9ab['add'](_0x235b4a),_0x253996['registerAnnotation'](_0x235b4a);}['_destroyController'](_0x1a9c1a){const _0x5814d4=this['editor']['plugins']['get']('CommentsRepository'),_0x10d2f9=this['editor']['plugins']['get']('Annotations'),_0x1011d7=this['_suggestionToController']['get'](_0x1a9c1a),_0x362ee1=_0x1011d7['view'],_0x1797e6=_0x10d2f9['getByInnerView'](_0x362ee1);_0x5814d4['_unbindEditors'](_0x362ee1),_0x1797e6&&_0x10d2f9['remove'](_0x1797e6),this['_suggestionToController']['delete'](_0x1a9c1a),this['_viewToController']['delete'](_0x362ee1),_0x1011d7['destroy']();}['_updateController'](_0x133479){if(!_0x133479['isInContent']||!this['_suggestionToController']['has'](_0x133479))return;const _0x49d571=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb4797f=this['_suggestionToController']['get'](_0x133479),_0x5cb7c2=_0x133479['getAllAdjacentSuggestions']();_0xb4797f['view']['descriptionParts']=_0x49d571['descriptionFactory']['getDescriptions'](_0x5cb7c2);}['destroy'](){for(const _0x148bbd of this['_suggestionToController']['keys']())this['_destroyController'](_0x148bbd);for(const _0x569461 of this['_annotationViews']['values']())_0x569461['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x1723dc){return'model'in _0x1723dc;}class k extends _0xc188f5{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x28361c){this['editor']['plugins']['get'](p)['adapter']=_0x28361c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x27c031){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x27c031);}['getSuggestions']({skipNotAttached:_0x2061ad=!0x1,toJSON:_0x2715c0=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2061ad,'toJSON':_0x2715c0});}['getSuggestion'](_0x5b9b4b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5b9b4b);}}const w=['Pagination'];class T extends _0xc188f5{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x566d7f=this['editor'];if(_0x566d7f['config']['define']('trackChangesData.editorCreator',_0x116458=>{const _0x387f58=_0x566d7f['model']['document']['getRootNames']()['reduce']((_0x3fcb64,_0x156b21)=>(_0x3fcb64[_0x156b21]='',_0x3fcb64),{});return _0x566d7f['constructor']['create'](_0x387f58,_0x116458);}),'function'!=typeof _0x566d7f['config']['get']('trackChangesData')['editorCreator'])throw new _0x5b8507('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x527f2a){return N(this['editor'],!0x0,_0x527f2a);}['getDataWithDiscardedSuggestions'](_0x19b944){return N(this['editor'],!0x1,_0x19b944);}}class D extends _0xc188f5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ddc20){function _0x103f43(_0x964a19){return _0x964a19['map'](_0x2e6461=>String['fromCharCode'](_0x2e6461))['join']('');}super(_0x3ddc20),this['result']='end',_0x3ddc20[_0x103f43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x103f43([0x76,0x69,0x65,0x77])][_0x103f43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x103f43([0x61,0x75,0x74,0x6f]),_0x3ddc20[_0x103f43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x103f43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x103f43([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x103f43([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x103f43([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(_0x1017a1){return void 0x0!==_0x1017a1['getRootsAttributes'];}async function N(_0x33ae53,_0x4e7a89,_0x42f539){const _0x553388=_0x2a8de1(_0x33ae53,w);_0x553388['plugins']['push'](p,D),_0x553388['rootsAttributes']=Ge(_0x33ae53)?_0x33ae53['getRootsAttributes']():void 0x0;const _0x2a3de5=document['createDocumentFragment'](),_0x27ba97=_0x33ae53['config']['get']('trackChangesData')['editorCreator'],_0x2e4f8b=await _0x27ba97(_0x553388,()=>function(_0x143d83){const _0x288e6b=document['createElement']('div');return _0x143d83['appendChild'](_0x288e6b),_0x288e6b;}(_0x2a3de5));!function(_0x3b2b39,_0x5e1f27){const _0x345b42=_0x3b2b39['model']['document']['getRootNames']()['reduce']((_0x3f68df,_0x571cb2)=>(_0x3f68df[_0x571cb2]=_0x3b2b39['data']['get']({'rootName':_0x571cb2}),_0x3f68df),{}),_0x4bcac7=_0x3b2b39['plugins']['get']('Users')['users']['map'](_0x1dab9c=>({'id':_0x1dab9c['id'],'name':_0x1dab9c['name']})),_0x13f010=_0x3b2b39['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x284af7=_0x3b2b39['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2df2e1=_0x5e1f27['plugins']['get']('Users'),_0x5d4b39=_0x5e1f27['plugins']['get']('TrackChangesEditing'),_0x2da6b0=_0x5e1f27['plugins']['get']('CommentsRepository');for(const _0x505a3c of _0x2da6b0['getCommentThreads']())_0x505a3c['remove']();for(const _0x22161c of _0x4bcac7)_0x2df2e1['getUser'](_0x22161c['id'])||_0x2df2e1['addUser'](_0x22161c);_0x2df2e1['me']||_0x2df2e1['useAnonymousUser']();for(const _0x56d104 of _0x284af7)_0x2da6b0['addCommentThread'](_0x56d104);for(const _0x511451 of _0x13f010)_0x5d4b39['addSuggestionData'](_0x511451);_0x5e1f27['data']['set'](_0x345b42);}(_0x33ae53,_0x2e4f8b),_0x2e4f8b['execute'](_0x4e7a89?'acceptAllSuggestions':'discardAllSuggestions');const _0x518745=Ge(_0x2e4f8b)?_0x2e4f8b['getFullData'](_0x42f539):_0x2e4f8b['data']['get'](_0x42f539);return await _0x2e4f8b['destroy'](),_0x518745;}class Me extends _0x318208{['options'];constructor(_0x32f00e,_0x3dba0b){super(_0x32f00e),this['options']=_0x3dba0b,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'](_0x191fd3,_0xda5082){if(!this['element'])return;const _0xf0c267=[];for(const [_0x45e5be,_0x209bdf]of _0x191fd3){const _0xce0d22=document['createElement']('div');_0xce0d22['setAttribute']('data-ck-root-name',_0x45e5be),_0xce0d22['className']=_0x209bdf['classes']+'\x20ck-track-changes-preview__root-container',_0xce0d22['innerHTML']=_0x209bdf['content'],_0xf0c267['push'](_0xce0d22);}_0xda5082(this['element'],_0xf0c267),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1cf1d8{constructor(_0x1ef412){super(_0x1ef412),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xe89a78=this['editor'],_0x1dd713=_0xe89a78['locale'],_0x1ae9e7=_0xe89a78['plugins']['get']('Dialog');let _0x6799f7;const _0x57e975=function(_0x3371e2){const _0x47834a={};if('editables'in _0x3371e2['ui']['view']){for(const [_0x3fa869,_0x5ccf84]of Object['entries'](_0x3371e2['ui']['view']['editables']))_0x47834a[_0x3fa869]=_0x5ccf84['element'];}else _0x47834a[_0x3371e2['model']['document']['getRootNames']()[0x0]]=_0x3371e2['ui']['view']['editable']['element'];return _0x47834a;}(_0xe89a78),_0x1fe90e=function(_0x207eb7){let _0x191ed2=0x0;for(const _0x3b66fe of Object['values'](_0x207eb7))_0x191ed2=Math['max'](_0x191ed2,_0x3b66fe['getBoundingClientRect']()['width']);let _0x4a74b5=0x0;for(const _0x38ea18 of Object['values'](_0x207eb7))_0x4a74b5+=_0x38ea18['getBoundingClientRect']()['height'];const _0x13d310=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3e3c86=Math['min'](_0x4a74b5,_0x13d310);return{'width':_0x191ed2,'height':_0x3e3c86};}(_0x57e975);_0x1ae9e7['show']({'id':'finalContentPreview','title':c(_0x1dd713,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1dd713,{'dialogRects':_0x1fe90e}),'onHide':()=>{_0x6799f7['detachFromDom']();},'onShow':()=>{_0xe89a78['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x43e039=>{const _0x41f6b1=this['_standarizeRootsData'](_0x43e039,_0xe89a78,_0x57e975);_0x1ae9e7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x41f6b1,_0xe89a78['config']['get']('trackChanges.preview.renderFunction'));}),_0x6799f7=new _0x146592(_0x1dd713,[_0x1ae9e7['view']]),_0x6799f7['attachToDom'](),_0x6799f7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xe89a78['once']('destroy',()=>{_0x6799f7['detachFromDom']();});const _0x4d7d2c=_0x1ae9e7['view']['headerView']['class'];_0x1ae9e7['view']['headerView']['class']=_0x4d7d2c?_0x4d7d2c+'\x20ck-reset_all':'ck-reset_all',_0x1ae9e7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1ae9e7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4b647d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4ce17d=_0x4b647d['previewMode'],_0x31e40d={};if('$labels'===_0x4ce17d){for(const _0x3888e9 of _0x4b647d['getMergeFieldsIds']())_0x31e40d[_0x3888e9]=_0x4b647d['getLabel'](_0x3888e9)||_0x3888e9;}else{const _0x5fa337='$defaultValues'===_0x4ce17d?_0x4b647d['getDefaultValues']():_0x4b647d['getDataSetValues'](_0x4ce17d,!0x0);for(const _0x32b55c of Object['entries'](_0x5fa337)){const [_0x35158e,_0x350a5f]=_0x32b55c;_0x31e40d[_0x35158e]=null!==_0x350a5f?_0x350a5f:_0x4b647d['getLabel'](_0x35158e)||_0x35158e;}}return{'mergeFieldsData':_0x31e40d};}['_standarizeRootsData'](_0xd83bdc,_0x168d77,_0x4d4e64){let _0x117085;if('string'==typeof _0xd83bdc){const _0x530d52=_0x168d77['model']['document']['getRootNames']()[0x0];_0x117085={[_0x530d52]:_0xd83bdc};}else _0x117085=_0xd83bdc;const _0x2365dd=this['_fixMediaEmbeds'](_0x117085,_0x168d77),_0x5b7ada=function(_0x2cab9c,_0x1b75fe){for(const [_0x344e3c,_0x3e7f4d]of _0x2cab9c)_0x3e7f4d['classes']=_0x1b75fe[_0x344e3c]['classList']['value']['replace']('ck-focused','');return _0x2cab9c;}(this['_sortRoots'](_0x168d77)['reduce']((_0x231b34,_0x5c1234)=>(_0x231b34['push']([_0x5c1234,{'content':_0x2365dd[_0x5c1234],'classes':''}]),_0x231b34),[]),_0x4d4e64);return _0x5b7ada;}['_fixMediaEmbeds'](_0x53a259,_0x118e75){if(!_0x118e75['plugins']['has']('MediaEmbedEditing'))return _0x53a259;const _0x596791=_0x118e75['plugins']['get']('MediaEmbedEditing');for(const [_0x2d3b13,_0x540827]of Object['entries'](_0x53a259)){const _0x2a2352=document['createElement']('div');_0x2a2352['innerHTML']=_0x540827,(_0x2a2352['querySelectorAll']('figure.media')['forEach'](_0x313ca7=>{const _0x59361c=_0x313ca7['querySelector']('oembed');if(_0x59361c){const _0x2e35a5=_0x59361c['getAttribute']('url');if(_0x2e35a5){const _0x36d1fa=_0x596791['registry']['getMediaViewElement'](new _0x4c64e6(_0x118e75['editing']['view']['document']),_0x2e35a5,{'elementName':'','renderForEditingView':!0x0}),_0x2fd7ec=document['createElement']('div');_0x2fd7ec['classList']['add']('ck-media__wrapper'),_0x36d1fa['render'](_0x2fd7ec,_0x118e75['editing']['view']['domConverter']),_0x59361c['replaceWith'](_0x2fd7ec);}}}),_0x53a259[_0x2d3b13]=_0x2a2352['innerHTML']);}return _0x53a259;}['_sortRoots'](_0xf95b46){if(!function(_0x242089){return void 0x0!==_0x242089['getRootsAttributes'];}(_0xf95b46))return _0xf95b46['model']['document']['getRootNames']();const _0x16c5f5=[],_0x1eb6a7=new Map();for(const _0x2d6a11 of _0xf95b46['model']['document']['getRootNames']()){const _0x2f8caf=_0xf95b46['editing']['view']['getDomRoot'](_0x2d6a11)['getClientRects']()['item'](0x0);_0x16c5f5['push'](_0x2d6a11),_0x1eb6a7['set'](_0x2d6a11,_0x2f8caf);}return _0x16c5f5['sort']((_0x5eb2fc,_0x5e2434)=>{const _0x549069=_0x1eb6a7['get'](_0x5eb2fc),_0x310a11=_0x1eb6a7['get'](_0x5e2434);return _0x549069['y']-_0x310a11['y']||_0x549069['x']-_0x310a11['x'];}),_0x16c5f5;}}class te extends _0xc188f5{static get['requires'](){return[T,_0xd30797];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7b0bc5){super(_0x7b0bc5),_0x7b0bc5['commands']['add']('previewFinalContent',new re(this['editor'])),_0x7b0bc5['config']['define']('trackChanges.preview.renderFunction',(_0x398853,_0x3087ad)=>{for(const _0x339dae of _0x3087ad)_0x398853['appendChild'](_0x339dae);});}}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 _0x150716,Plugin as _0x1cfb98,PendingActions as _0x234957}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4053b2,ObservableMixin as _0x2f95b4,uid as _0x51edb1,priorities as _0x49e83f,insertToPriorityArray as _0x45ab70,logWarning as _0x1f53a1,getEnvKeystrokeText as _0x22054c,FocusTracker as _0x4093d6,KeystrokeHandler as _0xe9a1d2,Collection as _0x27465f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x55d572,IconCancel as _0x3a0786,IconTrackChanges as _0x6d4043}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x408ced,View as _0x26b393,ViewCollection as _0x24252d,FocusCycler as _0x5f1b3f,ViewModel as _0x432960,createDropdown as _0x272f4f,SplitButtonView as _0x250e47,addListToDropdown as _0x56a8b8,MenuBarMenuView as _0xdc9e71,MenuBarMenuListView as _0x649e3,ListSeparatorView as _0x5b3c83,MenuBarMenuListItemView as _0x18bd15,MenuBarMenuListItemButtonView as _0x20173c,BodyCollection as _0x2539f6,Dialog as _0x356e8d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x15485e,hashObject as _0x5237ce,surroundingMarkersDetector as _0x5281a7,FOCUS_ANNOTATION_KEYSTROKE as _0x45a5a5,AriaDescriptionView as _0x3a7dab,setupThreadKeyboardNavigation as _0x33f266,trimHtml as ti,UserView as _0x18f00d,LateFocusButtonView as _0x28a5af,getDateTimeFormatter as _0x509a82,getAllMarkersDomElementsSorted as _0x4f45e5,sanitizeEditorConfig as _0x52f195}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5628c7,LiveRange as _0x4d622b,LivePosition as _0x3b54a7,DowncastWriter as _0x8728f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2ccf45,toWidget as _0x22dc79}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x295750,set as _0x1502dc,isEqual as _0x50923f,unset as _0x5227ca,omit as Ft}from'es-toolkit/compat';import{Delete as _0x5c2109,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2c7ad1}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x46dea7}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x150716{['_enabledCommands'];constructor(_0x2783b7,_0x296a2d){super(_0x2783b7),this['_enabledCommands']=_0x296a2d,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 _0x176af2 of this['editor']['commands']['commands']())_0x176af2['affectsData']&&!this['_enabledCommands']['has'](_0x176af2)&&_0x176af2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x32a464 of this['editor']['commands']['commands']())_0x32a464['affectsData']&&!this['_enabledCommands']['has'](_0x32a464)&&_0x32a464['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x150716{['_suggestions'];constructor(_0x1e671d,_0x43fe77){super(_0x1e671d),this['_suggestions']=_0x43fe77,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5ef682){const _0x5a8ba7=this['_suggestions']['get'](_0x5ef682);if(!_0x5a8ba7)throw new _0x4053b2('track-changes-accept-suggestion-not-found',this);const _0x1daa3b=_0x5a8ba7['getRanges']();this['editor']['model']['canEditAt'](_0x1daa3b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5a8ba7);}}class R extends _0x150716{['_suggestions'];constructor(_0x25478d,_0x118f3a){super(_0x25478d),this['_suggestions']=_0x118f3a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xb11979){const _0x551baf=this['_suggestions']['get'](_0xb11979);if(!_0x551baf)throw new _0x4053b2('track-changes-discard-suggestion-not-found',this);const _0x2e356c=_0x551baf['getRanges']();this['editor']['model']['canEditAt'](_0x2e356c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x551baf);}}function ls(_0x1287dc,_0x551a70){let _0x2d68d5='';return _0x2d68d5+=_0x1287dc['split']('*')['map']((_0xca4794,_0x6ef6af)=>_0x6ef6af%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xca4794)+'</span>':nn(_0xca4794))['join'](''),_0x551a70&&(_0x2d68d5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x551a70['value']+'\x22\x20title=\x22'+_0x551a70['title']+'\x22></span>'),_0x2d68d5;}function nn(_0x512108){const _0x4f012e=document['createElement']('span');return _0x4f012e['innerText']=_0x512108,_0x4f012e['innerHTML'];}function ts(_0x42f8a0){return _0x42f8a0['sort']((_0x4b826f,_0x30feb1)=>'deletion'==_0x4b826f['type']&&'deletion'!=_0x30feb1['type']?-0x1:'deletion'!=_0x4b826f['type']&&'deletion'==_0x30feb1['type']?0x1:0x0);}function to(_0x2169f7,_0x91797f){let _0x57aeda,_0x3c07c3=0x0;const _0x330ae4=[],_0x30f1a7=_0x91797f['schema'];for(;_0x3c07c3<_0x2169f7['length'];){const _0x30c70a=_0x2169f7[_0x3c07c3],_0x317400=_0x2169f7[_0x3c07c3+0x1];_0x57aeda||(_0x57aeda=_0x91797f['createPositionBefore'](_0x30c70a)),on(_0x91797f,_0x30c70a,_0x317400)||(_0x330ae4['push'](_0x91797f['createRange'](_0x57aeda,_0x30f1a7['isObject'](_0x30c70a)?_0x91797f['createPositionAfter'](_0x30c70a):_0x91797f['createPositionAt'](_0x30c70a,'end'))),_0x57aeda=null),_0x3c07c3++;}return _0x330ae4;}function on(_0x5a38ef,_0x10d3a4,_0x46494f){if(!_0x46494f)return!0x1;const _0x3b5f50=_0x5a38ef['createPositionAfter'](_0x10d3a4),_0x482c32=_0x5a38ef['createPositionBefore'](_0x46494f);return _0x3b5f50['isTouching'](_0x482c32);}function rs(_0x1115bc,_0x3131b8,_0x9fc622){for(;_0x9fc622['length'];){const _0x27fe98=_0x9fc622['splice'](0x0,0x64);_0x1115bc['change'](()=>{for(const _0x7cf2d4 of _0x27fe98)_0x7cf2d4['isInContent']&&_0x3131b8['execute'](_0x7cf2d4['id']);});}}class x extends _0x150716{['_command'];['_suggestions'];constructor(_0x52dd71,_0x2fdecc,_0x4ef55e){super(_0x52dd71),this['_command']=_0x2fdecc,this['_suggestions']=_0x4ef55e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x51dee9=Array['from'](this['_suggestions']['values']())['some'](_0x5e9df4=>_0x5e9df4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x51dee9;}['execute'](){const _0x31d913=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3aee1c of _0x31d913){const _0x328ff6=_0x3aee1c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x328ff6))return;}rs(this['editor']['model'],this['_command'],_0x31d913);}}class E extends _0x150716{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5f3cc6,_0x20c257,_0x2e37b7){super(_0x5f3cc6),this['_command']=_0x20c257,this['_suggestions']=_0x2e37b7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5e3ed4=this['editor']['model']['document']['selection'],_0x69b97d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x392216,_0x160632){const _0x476df0=Array['from'](_0x392216['getRanges']()),_0x95293b=new Set();for(const _0x2a2dce of _0x160632)if(_0x2a2dce['isInContent']){for(const _0xf87613 of _0x476df0)for(const _0x76b5de of _0x2a2dce['getRanges']())(_0xf87613['isIntersecting'](_0x76b5de)||_0x392216['isCollapsed']&&!_0x2a2dce['isMultiRange']&&_0x2a2dce['next']&&_0x76b5de['end']['isTouching'](_0xf87613['start']))&&_0x95293b['add'](_0x2a2dce);}return _0x95293b;}(_0x5e3ed4,_0x69b97d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xb7ef41=ts(Array['from'](this['_selectedSuggestions']));for(const _0x4b91a9 of _0xb7ef41){const _0x3cec96=_0x4b91a9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3cec96))return;}rs(this['editor']['model'],this['_command'],_0xb7ef41);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x2f95b4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x30ea0d,_0x29eb4d){super(),this['id']=_0x29eb4d['id'],this['type']=_0x29eb4d['type'],this['subType']=_0x29eb4d['subType']||null,this['author']=_0x29eb4d['author'],this['creator']=_0x29eb4d['creator']||_0x29eb4d['author'],this['isExternal']=Boolean(_0x29eb4d['attributes']&&_0x29eb4d['attributes']['@external']),this['data']=null,this['_model']=_0x30ea0d,this['_onAccept']=_0x29eb4d['onAccept'],this['_onDiscard']=_0x29eb4d['onDiscard'],this['_onAttributesChange']=_0x29eb4d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29eb4d['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 _0x573bd7=this;for(;_0x573bd7['previous'];)_0x573bd7=_0x573bd7['previous'];return _0x573bd7;}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'](_0x49642b){this['_markerNames']['add'](_0x49642b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x18847d=>this['_model']['markers']['get'](_0x18847d))['filter'](_0x4d0f7d=>_0x4d0f7d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xd63205=>{for(const _0x3c7da5 of this['getMarkers']())_0xd63205['removeMarker'](_0x3c7da5);}),this['_markerNames']['clear']();}['removeMarker'](_0x1914b3){this['_model']['change'](_0x63f1e1=>{_0x63f1e1['removeMarker'](_0x1914b3);}),this['_markerNames']['delete'](_0x1914b3);}['addRange'](_0x5e662f){const _0x36c231='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x36c231),this['_model']['change'](_0x79d1fb=>{_0x79d1fb['addMarker'](_0x36c231,{'range':_0x5e662f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x45dbc6){for(const _0x522a56 of this['getRanges']())if(_0x522a56['isIntersecting'](_0x45dbc6))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x513d18=>_0x513d18['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2ef804,_0x5e8c47)=>[..._0x2ef804,..._0x5e8c47['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4bc685=this['getRanges']();if(0x1!=_0x4bc685['length'])return null;const _0x2cc83d=_0x4bc685[0x0],_0x2e886a=_0x2cc83d['start']['nodeAfter'],_0xd51525=_0x2cc83d['end']['nodeBefore'];return _0x2e886a instanceof _0x5628c7?_0x2e886a!=_0xd51525?null:_0x2e886a: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 _0x2724c6=[];let _0x1bb96e=this['head'];for(;_0x1bb96e;)_0x2724c6['push'](_0x1bb96e),_0x1bb96e=_0x1bb96e['next'];return _0x2724c6;}['setAttribute'](_0x2741f2,_0x21baf6){const _0x1b4a0d=_0x295750(this['attributes']);_0x1502dc(_0x1b4a0d,_0x2741f2,_0x21baf6),_0x50923f(_0x1b4a0d,this['attributes'])||(this['attributes']=_0x1b4a0d,this['_onAttributesChange'](_0x1b4a0d));}['removeAttribute'](_0x9d8636){const _0x357a51=_0x295750(this['attributes']);_0x5227ca(_0x357a51,_0x9d8636),_0x50923f(_0x357a51,this['attributes'])||(this['attributes']=_0x357a51,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 _0x51edb1()['substr'](0x1,0x5);}}function c(_0x5cf171,_0x3cc111,_0x462791){const _0x295fc9=_0x5cf171['t'],t=_0x5cf171['t'];switch(_0x3cc111){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',_0x462791);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x462791);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x462791);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x462791);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x462791);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',_0x462791);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x462791);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',_0x462791);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x462791);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x462791);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x462791);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x462791);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x462791);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x462791);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x462791);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x462791);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x462791);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x462791);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x462791);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x462791);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x462791);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x462791);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x462791);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x462791);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x462791);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'},_0x462791);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x462791);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x462791);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x462791);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x462791);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x462791);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x462791);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x462791);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'},_0x462791);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x462791);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x462791);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x462791);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x462791);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'},_0x462791);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x462791);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'},_0x462791);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'},_0x462791);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x462791);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'},_0x462791);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x462791);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'},_0x462791);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x462791);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x462791);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'},_0x462791);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x462791);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 _0x295fc9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x462791);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x295fc9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x462791);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x462791);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'},_0x462791);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'},_0x462791);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'},_0x462791);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3cc111;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3af149,_0x584466){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3af149,this['_locale']=_0x584466;}['getDescriptions'](_0x14767c){const _0x49f76f=[],_0x21fb29=new Set(),_0x2059fa=new Set();for(let _0x2fe6b3=0x0;_0x2fe6b3<_0x14767c['length'];_0x2fe6b3++){const _0x283eef=_0x14767c[_0x2fe6b3];if(!_0x283eef['isInContent'])continue;const _0x254fb2=this['_handleCustomCallbackDescription'](_0x283eef);if(_0x254fb2){if(null!=_0x283eef['subType']){if(_0x21fb29['has'](_0x283eef['subType']))continue;_0x21fb29['add'](_0x283eef['subType']);}_0x49f76f['push'](_0x254fb2);}else{if('attribute'!=_0x283eef['type'])'insertion'!=_0x283eef['type']&&'deletion'!=_0x283eef['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49f76f,_0x283eef,_0x14767c[_0x2fe6b3+0x1]);else{const _0x1385d6=_0x283eef['data']['key'];if(_0x2059fa['has'](_0x1385d6))continue;_0x2059fa['add'](_0x283eef['data']['key']),_0x1385d6==u?this['_handleRenameSuggestionDescription'](_0x49f76f,_0x283eef):this['_handleAttributeSuggestionDescription'](_0x49f76f,_0x283eef);}}}return this['_resolveDescriptionItems'](_0x49f76f);}['registerDescriptionCallback'](_0x542e74){this['_customCallbacks']['push'](_0x542e74);}['registerElementLabel'](_0x10bebd,_0x4fc692,_0xcc29ed=_0x49e83f['normal']){'function'==typeof _0x10bebd?_0x45ab70(this['_itemLabelsCallbacks'],{'matchingCallback':_0x10bebd,'label':_0x4fc692,'priority':_0xcc29ed}):this['_itemLabels']['set'](_0x10bebd,_0x4fc692);}['registerAttributeLabel'](_0x369d4f,_0xbc626a){this['_attributeLabels']['set'](_0x369d4f,_0xbc626a);}['getItemLabel'](_0x220511,_0xe7b03b=0x1){let _0x58dafd;for(const _0x196d62 of this['_itemLabelsCallbacks'])if(_0x196d62['matchingCallback'](_0x220511)){_0x58dafd=_0x196d62['label'];break;}return _0x58dafd||(_0x58dafd=this['_itemLabels']['get'](_0x220511['name'])),_0x58dafd?_0x58dafd(_0xe7b03b):0x1!==_0xe7b03b?_0xe7b03b+'\x20'+_0x220511['name']+'s':''+_0x220511['name'];}['_addDescriptionItems'](_0x1b4a17,_0x2799ad){const _0x39cbca=_0x2799ad['getFirstRange']()['getWalker'](),_0x642295='insertion'==_0x2799ad['type']?'add':'remove';for(const _0x316070 of _0x39cbca){const _0xbcb78b=_0x316070['item'],_0x5882d2=_0x1b4a17[_0x1b4a17['length']-0x1];if(_0xbcb78b['is']('$textProxy'))_0x5882d2&&_0x5882d2['type']['indexOf']('Container')>-0x1&&_0x1b4a17['pop'](),_0x5882d2&&'text'==_0x5882d2['type']?_0x5882d2[_0x642295]+=_0xbcb78b['data']:_0x1b4a17['push']({'type':'text','add':'add'==_0x642295?_0xbcb78b['data']:'','remove':'remove'==_0x642295?_0xbcb78b['data']:''});else{if(this['_schema']['isObject'](_0xbcb78b)){const _0x3e161c=_0xbcb78b;if(_0x5882d2&&_0x5882d2['type']['indexOf']('Container')>-0x1&&_0x1b4a17['pop'](),'elementEnd'==_0x316070['type'])continue;_0x5882d2&&_0x5882d2['type']==_0x642295+'Object'&&_0x5882d2['element']['name']==_0x3e161c['name']?_0x5882d2['quantity']++:_0x1b4a17['push']({'type':_0x642295+'Object','element':_0x3e161c,'quantity':0x1}),_0x39cbca['skip'](_0x2e7da2=>!('elementEnd'==_0x2e7da2['type']&&_0x2e7da2['item']==_0xbcb78b));}else{if(this['_schema']['checkChild'](_0xbcb78b,'$text')||_0xbcb78b['is']('element','softBreak')){const _0x434ed3=_0xbcb78b;if('add'==_0x642295&&'elementStart'==_0x316070['type']||'remove'==_0x642295&&'elementEnd'==_0x316070['type'])continue;if(_0x5882d2&&-0x1==_0x5882d2['type']['indexOf']('Container')){'text'==_0x5882d2['type']&&(_0x5882d2[_0x642295]+='\x0a');continue;}let _0x2b4ab2;if(_0x2b4ab2='add'==_0x642295?_0x434ed3['nextSibling']&&!this['_schema']['isObject'](_0x434ed3['nextSibling'])?_0x434ed3['nextSibling']:null:_0x434ed3['previousSibling']&&!this['_schema']['isObject'](_0x434ed3['previousSibling'])?_0x434ed3['previousSibling']:null,_0x434ed3['isEmpty']||_0x2b4ab2&&_0x2b4ab2['isEmpty']){const _0x5d71b9=_0x2b4ab2&&_0x2b4ab2['isEmpty']?_0x2b4ab2:_0x434ed3;_0x5882d2&&_0x5882d2['type']==_0x642295+'EmptyContainer'&&_0x5882d2['element']['name']==_0x5d71b9['name']?_0x5882d2['quantity']++:_0x1b4a17['push']({'type':_0x642295+'EmptyContainer','element':_0x5d71b9,'quantity':0x1});}else _0x1b4a17['push']({'type':_0x642295+'Container','element':_0x434ed3});}}}}}['_resolveDescriptionItems'](_0xd510df){const _0x16143f=this['_locale'],_0x3d7397=[],_0x2fe4a8=[],_0x4a7d91=[];for(const _0x464cf9 of _0xd510df)switch(_0x464cf9['type']){case'text':if(_0x464cf9['add']=_0x464cf9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x464cf9['remove']=_0x464cf9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x464cf9['add']&&''!=_0x464cf9['remove']){_0x3d7397['push']({'type':'replace','content':c(_0x16143f,'REPLACE_TEXT',['\x22'+_0x464cf9['remove']+'\x22','\x22'+_0x464cf9['add']+'\x22'])});continue;}if(null!=_0x464cf9['add']['match'](/^ +$/)){_0x3d7397['push']({'type':'insertion','content':c(_0x16143f,'*Insert:*\x20%0',c(_0x16143f,'ELEMENT_SPACE',_0x464cf9['add']['length']))});continue;}if(null!=_0x464cf9['remove']['match'](/^ +$/)){_0x3d7397['push']({'type':'deletion','content':c(_0x16143f,'*Remove:*\x20%0',c(_0x16143f,'ELEMENT_SPACE',_0x464cf9['remove']['length']))});continue;}if(''!=_0x464cf9['add']){_0x3d7397['push']({'type':'insertion','content':c(_0x16143f,'*Insert:*\x20%0','\x22'+_0x464cf9['add']+'\x22')});continue;}_0x3d7397['push']({'type':'deletion','content':c(_0x16143f,'*Remove:*\x20%0','\x22'+_0x464cf9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3d7397['push']({'type':'insertion','content':c(_0x16143f,'*Insert:*\x20%0',this['getItemLabel'](_0x464cf9['element'],_0x464cf9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3d7397['push']({'type':'deletion','content':c(_0x16143f,'*Remove:*\x20%0',this['getItemLabel'](_0x464cf9['element'],_0x464cf9['quantity']))});continue;case'addContainer':_0x3d7397['push']({'type':'insertion','content':c(_0x16143f,'*Split:*\x20%0',this['getItemLabel'](_0x464cf9['element'],_0x464cf9['quantity']))});continue;case'removeContainer':_0x3d7397['push']({'type':'deletion','content':c(_0x16143f,'*Merge:*\x20%0',this['getItemLabel'](_0x464cf9['element'],_0x464cf9['quantity']))});continue;case'addFormat':_0x2fe4a8['push'](_0x464cf9['key']);continue;case'removeFormat':_0x4a7d91['push'](_0x464cf9['key']);continue;default:_0x3d7397['push'](_0x464cf9);}if(_0x2fe4a8['length']){const _0x2ee186=_0x2fe4a8['map'](_0x19b6be=>this['_attributeLabels']['has'](_0x19b6be)?this['_attributeLabels']['get'](_0x19b6be):_0x19b6be)['join'](',\x20');_0x3d7397['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x2ee186)});}if(_0x4a7d91['length']){const _0x189445=_0x4a7d91['map'](_0x2b2711=>this['_attributeLabels']['has'](_0x2b2711)?this['_attributeLabels']['get'](_0x2b2711):_0x2b2711)['join'](',\x20');_0x3d7397['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x189445)});}return _0x3d7397;}['_handleCustomCallbackDescription'](_0x21081e){for(const _0x38c384 of this['_customCallbacks']){const _0x4d4c62=_0x38c384(_0x21081e);if(_0x4d4c62&&'type'in _0x4d4c62)return _0x4d4c62;}}['_handleAttributeSuggestionDescription'](_0x26f889,_0x12cbdf){const _0x4c5f73=_0x12cbdf['data'],_0x3d7147=void 0x0===_0x4c5f73['newValue']?'removeFormat':'addFormat';_0x26f889['push']({'type':_0x3d7147,'key':_0x4c5f73['key']});}['_handleRenameSuggestionDescription'](_0x25f6d1,_0x5964f2){_0x25f6d1['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5964f2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x440f28,_0x548bdf,_0x2a1629){if(this['_addDescriptionItems'](_0x440f28,_0x548bdf),_0x2a1629&&_0x2a1629['getFirstRange']()&&!_0x548bdf['getFirstRange']()['end']['isEqual'](_0x2a1629['getFirstRange']()['start'])){const _0x158c09=_0x440f28[_0x440f28['length']-0x1],_0x2ef418='insertion'==_0x548bdf['type']?'add':'remove';_0x158c09&&'text'==_0x158c09['type']&&(_0x158c09[_0x2ef418]+='\x0a');}}}class U extends _0x1cfb98{['afterInit'](){const _0x1a3c83=this['editor'],_0xc0ca29=_0x1a3c83['plugins']['get']('TrackChangesEditing');_0x1a3c83['commands']['get']('showAIAssistant')&&_0xc0ca29['enableCommand']('showAIAssistant');}}class V extends _0x1cfb98{['afterInit'](){const _0x46588b=this['editor'],_0x30fb8a=_0x46588b['locale'];if(!_0x46588b['plugins']['has']('AlignmentEditing'))return;const _0x451769=_0x46588b['plugins']['get']('TrackChangesEditing');_0x451769['enableDefaultAttributesIntegration']('alignment'),_0x451769['registerBlockAttribute']('alignment'),_0x451769['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x30fb8a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dcf8b=this['editor'],_0x187376=_0x4dcf8b['locale'];_0x4dcf8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b92a2=>{if('formatBlock'!=_0x5b92a2['type'])return;const {data:_0x3dcbc9}=_0x5b92a2;if(_0x3dcbc9&&'alignment'==_0x3dcbc9['commandName']){const _0xda6913=_0x3dcbc9['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x187376,'*Format:*\x20%0',function(_0x122b17){switch(_0x122b17){case'left':return c(_0x187376,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x187376,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x187376,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x187376,'FORMAT_JUSTIFY_TEXT');}}(_0xda6913))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x1cfb98{['afterInit'](){const _0x2c04b0=this['editor'],_0x5c8e24=_0x2c04b0['plugins']['get']('TrackChangesEditing'),_0x566155=_0x2c04b0['locale'];for(const _0x1ad3b0 of Zt){if(!_0x2c04b0['plugins']['has'](_0x1ad3b0))continue;const _0x33b8ca=_0x1ad3b0['slice'](0x0,-0x7)['toLowerCase'](),_0x47bb11='FORMAT_'+_0x33b8ca['toUpperCase']();_0x5c8e24['enableDefaultAttributesIntegration'](_0x33b8ca),_0x5c8e24['registerInlineAttribute'](_0x33b8ca),_0x5c8e24['descriptionFactory']['registerAttributeLabel'](_0x33b8ca,c(_0x566155,_0x47bb11));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x224938=this['editor'],_0xc22ec5=_0x224938['locale'],_0x3c355e=_0x224938['plugins']['get']('TrackChangesEditing');function _0x2ae0f0(_0x27d404,_0x6745e6){_0x3c355e['descriptionFactory']['registerDescriptionCallback'](_0xd588e4=>{if('formatInline'!=_0xd588e4['type'])return;const {data:_0x2a38ae}=_0xd588e4;return _0x2a38ae&&_0x2a38ae['commandName']===_0x27d404?_0x2a38ae['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xc22ec5,'*Format:*\x20%0',_0x6745e6)}:{'type':'format','content':c(_0xc22ec5,'*Remove\x20format:*\x20%0',_0x6745e6)}:void 0x0;});}_0x2ae0f0('bold',c(_0xc22ec5,'FORMAT_BOLD')),_0x2ae0f0('italic',c(_0xc22ec5,'FORMAT_ITALIC')),_0x2ae0f0('underline',c(_0xc22ec5,'FORMAT_UNDERLINE')),_0x2ae0f0('code',c(_0xc22ec5,'FORMAT_CODE')),_0x2ae0f0('strikethrough',c(_0xc22ec5,'FORMAT_STRIKETHROUGH')),_0x2ae0f0('subscript',c(_0xc22ec5,'FORMAT_SUBSCRIPT')),_0x2ae0f0('superscript',c(_0xc22ec5,'FORMAT_SUPERSCRIPT'));}}class G extends _0x1cfb98{['afterInit'](){const _0x2e6298=this['editor'],_0x2ce24b=_0x2e6298['locale'];if(!_0x2e6298['plugins']['has']('BlockQuoteEditing'))return;const _0x2b804b=_0x2e6298['plugins']['get']('TrackChangesEditing'),_0x4a48ad=this['editor']['commands']['get']('blockQuote');_0x2b804b['enableCommand']('blockQuote',(_0x3a2608,_0x498f3a={})=>{const _0xfd930a=this['editor']['model']['document']['selection'],_0x1d72d1=_0x498f3a&&void 0x0!==_0x498f3a['forceValue']?_0x498f3a['forceValue']:!_0x4a48ad['value'];let _0x20734f=[];if(_0x1d72d1){const _0x157ba1=Array['from'](_0xfd930a['getSelectedBlocks']())['filter'](_0x26dcc8=>oo(_0x26dcc8)||function(_0x4f9370,_0x506fc4){const _0x262ef9=_0x506fc4['checkChild'](_0x4f9370['parent'],'blockQuote'),_0x1ec250=_0x506fc4['checkChild'](['$root','blockQuote'],_0x4f9370);return _0x262ef9&&_0x1ec250;}(_0x26dcc8,this['editor']['model']['schema']));_0x20734f=to(_0x157ba1,_0x2e6298['model']);}else{const _0x4cccf7=Array['from'](_0xfd930a['getSelectedBlocks']())['filter'](_0x753917=>oo(_0x753917));_0x20734f=to(_0x4cccf7,_0x2e6298['model']);}_0x2e6298['model']['change'](()=>{for(const _0x746752 of _0x20734f)_0x2b804b['markBlockFormat'](_0x746752,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d72d1}]});});}),_0x2b804b['descriptionFactory']['registerDescriptionCallback'](_0x2f2a29=>{const {data:_0x2ce6af}=_0x2f2a29;if(_0x2ce6af&&'blockQuote'==_0x2ce6af['commandName']){const _0x33d097=c(_0x2ce24b,'ELEMENT_BLOCK_QUOTE');return _0x2ce6af['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2ce24b,'*Set\x20format:*\x20%0',_0x33d097)}:{'type':'format','content':c(_0x2ce24b,'*Remove\x20format:*\x20%0',_0x33d097)};}});}}function oo(_0x137e3c){return'blockQuote'==_0x137e3c['parent']['name'];}class L extends _0x1cfb98{['afterInit'](){const _0x188ceb=this['editor'],_0x7e455d=_0x188ceb['locale'],_0x2890e4=_0x188ceb['plugins']['get']('TrackChangesEditing');_0x188ceb['plugins']['has']('BookmarkEditing')&&(_0x2890e4['enableCommand']('insertBookmark'),_0x2890e4['enableDefaultAttributesIntegration']('updateBookmark'),_0x2890e4['registerBlockAttribute']('bookmarkId'),_0x2890e4['descriptionFactory']['registerDescriptionCallback'](_0x53bf01=>{if('insertion'!=_0x53bf01['type']&&'deletion'!=_0x53bf01['type']&&'attribute'!=_0x53bf01['type'])return;const _0x42ad08=_0x53bf01['getContainedElement']();if(null==_0x42ad08)return;if(!_0x42ad08['is']('element','bookmark'))return;const _0x4cfa77=_0x42ad08['getAttribute']('bookmarkId');if('insertion'==_0x53bf01['type'])return{'type':'insertion','content':c(_0x7e455d,'*Insert:*\x20%0','\x22'+_0x4cfa77+'\x22\x20'+c(_0x7e455d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x53bf01['type'])return{'type':'deletion','content':c(_0x7e455d,'*Remove:*\x20%0','\x22'+_0x4cfa77+'\x22\x20'+c(_0x7e455d,'ELEMENT_BOOKMARK'))};const {data:_0x70577d}=_0x53bf01;if(!_0x70577d||'bookmarkId'!=_0x70577d['key'])return;return{'type':'format','content':c(_0x7e455d,'*Set\x20bookmark:*\x20%0','\x22'+_0x70577d['newValue']+'\x22')};}));}}class J extends _0x1cfb98{['afterInit'](){const _0x463a16=this['editor'];_0x463a16['plugins']['has']('CaseChange')&&(_0x463a16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x463a16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x463a16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x1cfb98{['afterInit'](){const _0x50a2f0=this['editor'];_0x50a2f0['commands']['get']('ckbox')&&_0x50a2f0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x1cfb98{['afterInit'](){const _0x57d3c6=this['editor'];if(!_0x57d3c6['plugins']['has']('CodeBlock'))return;const _0x46b3ee=_0x57d3c6['plugins']['get']('TrackChangesEditing'),_0x1a38c2=_0x57d3c6['locale'],_0xabf647=_0x57d3c6['config']['get']('codeBlock')['languages'],_0x312947=_0x57d3c6['commands']['get']('codeBlock');_0x46b3ee['enableCommand']('indentCodeBlock'),_0x46b3ee['enableCommand']('outdentCodeBlock'),_0x46b3ee['enableCommand']('codeBlock',(_0x46901f,_0x2fe22a={})=>{const _0x4f5031=_0x57d3c6['model'],_0x1f7a11=_0x57d3c6['model']['document']['selection'],_0x225108=_0x2fe22a&&void 0x0!==_0x2fe22a['forceValue']?_0x2fe22a['forceValue']:!_0x312947['value'];let _0x8b2857;_0x2fe22a['language']||(_0x2fe22a['language']=_0xabf647[0x0]['language']),_0x8b2857=_0x225108?Array['from'](_0x1f7a11['getSelectedBlocks']())['filter'](_0x404cba=>eo(_0x404cba)||function(_0x5bb528,_0x51dcf9){if(_0x5bb528['is']('rootElement')||_0x51dcf9['isLimit'](_0x5bb528))return!0x1;return _0x51dcf9['checkChild'](_0x5bb528['parent'],'codeBlock');}(_0x404cba,_0x4f5031['schema'])):Array['from'](_0x1f7a11['getSelectedBlocks']())['filter'](_0x22d535=>eo(_0x22d535));const _0xd93cd0=to(_0x8b2857,_0x4f5031);_0x4f5031['change'](()=>{for(const _0x92722c of _0xd93cd0)_0x46b3ee['markBlockFormat'](_0x92722c,{'commandName':'codeBlock','commandParams':[{..._0x2fe22a,'forceValue':_0x225108}],'formatGroupId':'blockName'});});}),(_0x46b3ee['descriptionFactory']['registerElementLabel']('codeBlock',_0x39941c=>c(_0x1a38c2,'ELEMENT_CODE_BLOCK',_0x39941c)),_0x46b3ee['descriptionFactory']['registerDescriptionCallback'](_0x2a3e0d=>{if('formatBlock'!=_0x2a3e0d['type'])return;const _0x4738a4=_0x1a38c2['t'],{data:_0x2625cb}=_0x2a3e0d;if(!_0x2625cb||'codeBlock'!=_0x2625cb['commandName'])return;const _0x54b75b=_0x2625cb['commandParams'][0x0]['language'],_0x45d55a=_0x4738a4(_0xabf647['find'](_0x18e90e=>_0x18e90e['language']===_0x54b75b)['label'])['toLowerCase']();return _0x2625cb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1a38c2,'*Set\x20format:*\x20%0',c(_0x1a38c2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x45d55a+')')}:{'type':'format','content':c(_0x1a38c2,'*Remove\x20format:*\x20%0',c(_0x1a38c2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x169f94){return'codeBlock'==_0x169f94['name'];}class q extends _0x1cfb98{['afterInit'](){const _0x3e38b6=this['editor'];if(!_0x3e38b6['plugins']['has']('CommentsEditing'))return;_0x3e38b6['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x245782,_0x5dc148,_0x53fc99){const _0x4b9c85=[];for(const _0x5a65c3 of _0x5dc148['getItems']())_0x5a65c3['hasAttribute'](_0x245782)&&_0x4b9c85['push'](_0x53fc99['createRangeOn'](_0x5a65c3));return _0x4b9c85;}function Fe(_0x1d81a6,_0x5e8952,{showActiveMarker:_0x244a3c=!0x0}={}){const _0x3963e1=_0x1d81a6['plugins']['get']('TrackChangesEditing');return(_0x3d5412,_0xc02ad,_0x1849a0)=>{if(!_0x1849a0['consumable']['test'](_0xc02ad['markerRange'],_0x3d5412['name']))return;const _0x15b6a7=_0xc02ad['markerRange']['getWalker'](),_0x129a11=_0xc02ad['markerRange']['start'],_0xb4a697=_0x1d81a6['model']['schema'];let _0x161128=null,_0x14f9ec=null,_0x5d1721=!0x1,_0x207111=!0x1;for(const _0x34442b of _0x15b6a7){const _0x14fdc5=_0x34442b['item'];_0x5d1721=_0x5d1721||_0xb4a697['isContent'](_0x14fdc5);const _0x32007d=_0x1849a0['mapper']['toViewElement'](_0x14fdc5);if(_0x32007d&&_0x32007d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x34442b['type']&&(_0xb4a697['isBlock'](_0x14fdc5)&&!_0xb4a697['isLimit'](_0x14fdc5)&&(_0x14fdc5['nextSibling']||_0x129a11['isAtEnd']?_0x161128&&_0x161128['parent']==_0x14fdc5||(_0x161128=_0x14fdc5,_0x351a6e(_0x34442b['previousPosition']),_0x207111=!0x0):_0x14f9ec=_0x14f9ec||_0x34442b['previousPosition']));}function _0x351a6e(_0xb152b5){const {authorId:_0x32d167}=_0x3963e1['_splitMarkerName'](_0xc02ad['markerName']),_0x5e1412=_0x1849a0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e8952,'data-author-id':_0x32d167}),_0x587628=_0x1849a0['mapper']['toViewPosition'](_0xb152b5);_0x244a3c&&_0x3963e1['activeMarkers']['includes'](_0xc02ad['markerName'])&&_0x1849a0['writer']['addClass']('ck-suggestion-marker--active',_0x5e1412),_0x1849a0['writer']['insert'](_0x587628,_0x5e1412),_0x1849a0['mapper']['bindElementToMarker'](_0x5e1412,_0xc02ad['markerName']);}_0x5d1721||_0x207111||!_0x14f9ec||_0x351a6e(_0x14f9ec);};}class z extends _0x1cfb98{static get['requires'](){return[_0x5c2109];}['init'](){const _0x4ef10f=this['editor'],_0x19fb26=_0x4ef10f['plugins']['get']('TrackChangesEditing');_0x19fb26['enableCommand']('delete');const _0x583d22=_0x4ef10f['commands']['get']('deleteForward');_0x19fb26['enableCommand']('deleteForward',(_0x4fd723,_0x18751e={})=>{const _0x19c1f7=_0x4ef10f['model']['createSelection'](_0x4ef10f['model']['document']['selection']);_0x19c1f7['isCollapsed']&&_0x4ef10f['model']['modifySelection'](_0x19c1f7,{'direction':'forward','unit':_0x18751e['unit']});const _0x29b0b9=_0x19c1f7['getFirstRange'](),_0x420e9c=_0x4d622b['fromRange'](_0x29b0b9);let _0x4cc726;_0x4fd723(_0x18751e),_0x4cc726='$graveyard'==_0x420e9c['root']['rootName']?_0x4ef10f['model']['createRange'](_0x29b0b9['start']):_0x4ef10f['model']['createRange'](_0x420e9c['start'],_0x420e9c['end']),_0x420e9c['detach'](),_0x4ef10f['model']['enqueueChange'](_0x583d22['buffer']['batch'],_0x52aa14=>{_0x583d22['buffer']['lock'](),_0x52aa14['setSelection'](_0x52aa14['createRange'](_0x4cc726['end'])),_0x583d22['buffer']['unlock']();});}),_0x4ef10f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x4ef10f,'merge'),{'priority':'high'}),_0x4ef10f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x55fbee,_0x3a0307,_0xe96a3)=>{_0xe96a3['options']['showSuggestionHighlights']&&Fe(_0x4ef10f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x55fbee,_0x3a0307,_0xe96a3);},{'priority':'high'}),_0x4ef10f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x42fc51,_0x159ae5,_0x4400a5)=>{const _0xc2d791=_0x4400a5['mapper']['markerNameToElements'](_0x159ae5['markerName']);if(_0xc2d791){for(const _0x3866e1 of _0xc2d791)_0x3866e1['is']('uiElement')&&(_0x4400a5['mapper']['unbindElementFromMarkerName'](_0x3866e1,_0x159ae5['markerName']),_0x4400a5['writer']['remove'](_0x3866e1));}},{'priority':'high'});}}class W extends _0x1cfb98{['afterInit'](){const _0x33547e=this['editor'];if(!_0x33547e['plugins']['has']('ListEditing'))return;const _0x3d7beb=_0x33547e['locale'],_0x20c8ab=_0x33547e['plugins']['get']('TrackChangesEditing'),_0x2e4e3c=_0x33547e['plugins']['has']('TodoListEditing'),_0x3ccbd9=!!_0x33547e['config']['get']('list.multiBlock');function _0x5e9dbf(_0xb376d9){return{'type':'format','content':''+c(_0x3d7beb,'*Set\x20format:*\x20%0',_0xb376d9)};}function _0x1472f8(_0x4611fa){return{'type':'format','content':''+c(_0x3d7beb,'*Remove\x20format:*\x20%0',_0x4611fa)};}_0x20c8ab['enableDefaultAttributesIntegration']('numberedList'),_0x20c8ab['enableDefaultAttributesIntegration']('bulletedList'),_0x20c8ab['enableDefaultAttributesIntegration']('customNumberedList'),_0x20c8ab['enableDefaultAttributesIntegration']('customBulletedList'),_0x20c8ab['enableDefaultAttributesIntegration']('indentList'),_0x20c8ab['enableDefaultAttributesIntegration']('outdentList'),_0x20c8ab['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x20c8ab['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x20c8ab['registerBlockAttribute']('listItemId'),_0x20c8ab['registerBlockAttribute']('listType'),_0x20c8ab['registerBlockAttribute']('listIndent'),_0x3ccbd9&&(_0x20c8ab['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x20c8ab['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2e4e3c&&(_0x20c8ab['enableDefaultAttributesIntegration']('todoList'),_0x20c8ab['enableDefaultAttributesIntegration']('checkTodoList'),_0x20c8ab['registerBlockAttribute']('todoListChecked'),_0x20c8ab['descriptionFactory']['registerDescriptionCallback'](_0x182925=>{const {data:_0x3c7691}=_0x182925;if(_0x3c7691&&'todoListChecked'==_0x3c7691['key'])return{'type':'format','content':_0x3c7691['newValue']?c(_0x3d7beb,'*Check\x20item*'):c(_0x3d7beb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2beb3e=>{if(_0x2beb3e['batch']['isUndo'])return!0x1;let _0x6639cc=!0x1;const _0x4e25ec=_0x20c8ab['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a4a03=>'todoListChecked'===_0x20c8ab['_getAttributeKey'](_0x3a4a03));for(const _0xc096cd of _0x4e25ec){'todo'!=_0xc096cd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x20c8ab['_findSuggestions'](_0xc096cd['getFirstRange'](),'attribute')['find'](_0x59e25b=>'listType'===_0x20c8ab['_getAttributeKey'](_0x59e25b['suggestion']))||(_0x2beb3e['removeMarker'](_0xc096cd['getFirstMarker']()),_0x6639cc=!0x0));}return _0x6639cc;})),_0x20c8ab['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3d7beb,'FORMAT_INDENT'));const _0x299a31={'type':'format','content':''};_0x20c8ab['descriptionFactory']['registerDescriptionCallback'](_0x5785ea=>{const {data:_0xf6999}=_0x5785ea;if(!_0xf6999||'listType'!=_0xf6999['key'])return;let _0x4661b3=_0x5785ea['head'];for(;_0x4661b3;){if(_0x4661b3['data']&&(('listStyle'==_0x4661b3['data']['key']||'listMarkerStyle'==_0x4661b3['data']['key'])&&(_0x4661b3['data']['newValue']&&'default'!=_0x4661b3['data']['newValue']||'default'!=_0x4661b3['data']['oldValue']&&!_0xf6999['newValue'])||!_0x3ccbd9&&_0x4661b3['data']['key']==u))return _0x299a31;_0x4661b3=_0x4661b3['next'];}if(null==_0xf6999['newValue'])switch(_0xf6999['oldValue']){case'bulleted':return _0x1472f8(c(_0x3d7beb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1472f8(c(_0x3d7beb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1472f8(c(_0x3d7beb,'ELEMENT_TODO_LIST'));}switch(_0xf6999['newValue']){case'bulleted':return _0x5e9dbf(c(_0x3d7beb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5e9dbf(c(_0x3d7beb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5e9dbf(c(_0x3d7beb,'ELEMENT_TODO_LIST'));}}),_0x20c8ab['descriptionFactory']['registerDescriptionCallback'](_0x294bc4=>{const {data:_0x36ec3f}=_0x294bc4;if(_0x36ec3f&&'listIndent'==_0x36ec3f['key'])return null==_0x36ec3f['newValue']||null==_0x36ec3f['oldValue']&&0x0==_0x36ec3f['newValue']?_0x299a31:void 0x0;}),_0x20c8ab['descriptionFactory']['registerDescriptionCallback'](_0x44052e=>{if('attribute'!=_0x44052e['type'])return;const {data:_0x145095}=_0x44052e;if(!_0x145095||'listItemId'!=_0x145095['key'])return;const _0x55b561=Te(_0x44052e);return'newValue'==_0x55b561?{'type':'format','content':c(_0x3d7beb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x55b561?{'type':'format','content':c(_0x3d7beb,'*Split:*\x20list\x20item')}:_0x299a31;}),_0x33547e['model']['document']['registerPostFixer'](_0x2b552c=>this['listItemIdFixer'](_0x2b552c)),_0x33547e['model']['document']['registerPostFixer'](_0x8cc342=>this['noTrackChangesFixer'](_0x8cc342)),_0x33547e['model']['document']['on']('change:data',(_0x3c0f01,_0x54406f)=>{if(_0x54406f['isUndo']||!_0x54406f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x400fcd){if(_0x400fcd['batch']['isUndo']||!_0x400fcd['batch']['isLocal'])return!0x1;let _0x2e9cd7=!0x1;const _0x312afd=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17defe=>_0x17defe['data']&&'listItemId'==_0x17defe['data']['key'])['filter'](_0xd7c12c=>_0xd7c12c['data']['newValue']&&_0xd7c12c['data']['oldValue']);for(const _0x502ba7 of _0x312afd)Te(_0x502ba7)||(_0x400fcd['removeMarker'](_0x502ba7['getFirstMarker']()),_0x2e9cd7=!0x0);return _0x2e9cd7;}['noTrackChangesFixer'](_0x3569c6){if(_0x3569c6['batch']['isUndo']||!_0x3569c6['batch']['isLocal'])return!0x1;const _0x226e8c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x226e8c['trackChangesCommand']['value'])return!0x1;let _0x1e338a=!0x1;const _0xccca02=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3c7412=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xe8a111=>'attribute'==_0xe8a111['type'])['filter'](_0x945362=>_0xccca02['includes'](_0x945362['attributeKey']));if(0x0==_0x3c7412['length'])return _0x1e338a;for(const _0x529dad of _0x3c7412){const _0x15ff70=_0x226e8c['_findSuggestions'](_0x529dad['range'],'attribute')['filter'](_0x5b5798=>!_0x5b5798['meta']['isNextTo'])['map'](_0x41fdee=>_0x41fdee['suggestion'])['filter'](_0x2ad091=>{const _0x49d054=_0x226e8c['_getAttributeKey'](_0x2ad091);return _0xccca02['includes'](_0x49d054);});if(_0x15ff70['length']){for(const _0xb684ea of _0x15ff70)_0x3569c6['removeMarker'](_0xb684ea['getFirstMarker']());_0x1e338a=!0x0;}}return _0x1e338a;}['assureChains'](){const _0xa3ed61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40d331=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4f0c78;const _0x190d75=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b3a0b=>{if(_0x1b3a0b['data']['oldRange']||!_0x1b3a0b['data']['newRange'])return null;if(!_0x1b3a0b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5230e3}=_0xa3ed61['_splitMarkerName'](_0x1b3a0b['name']);if(!_0xa3ed61['hasSuggestion'](_0x5230e3))return null;const _0x250cf7=_0xa3ed61['getSuggestion'](_0x5230e3);return _0x40d331['includes'](_0x250cf7['data']['key']);})['map'](_0x3b63d3=>{const {id:_0x37d9b7}=_0xa3ed61['_splitMarkerName'](_0x3b63d3['name']),_0x3252de=_0xa3ed61['getSuggestion'](_0x37d9b7);return _0x4f0c78=_0x3252de['attributes']['groupId'],_0x3252de['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x190d75['size'])return;const _0x4fe5c5=_0xa3ed61['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d86eb=>'attribute'==_0x3d86eb['type']&&_0x3d86eb['data']&&_0x40d331['includes'](_0x3d86eb['data']['key'])&&_0x3d86eb['attributes']['groupId']!=_0x4f0c78)['map'](_0x1f7f3f=>({'listItem':_0x1f7f3f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1f7f3f['attributes']['groupId']})),_0x34fde0=new Set();for(const {groupId:_0x38946d,listItem:_0x5e779d}of _0x4fe5c5)_0x190d75['has'](_0x5e779d)&&_0x34fde0['add'](_0x38946d);for(const _0x156cec of _0xa3ed61['getSuggestions']())_0x34fde0['has'](_0x156cec['attributes']['groupId'])&&_0x156cec['setAttribute']('groupId',_0x4f0c78);}['_supportLegacySuggestions'](){const _0x470f84=this['editor'],_0x21bb66=_0x470f84['locale'],_0x158c6d=_0x470f84['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x158c6d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x49475b,_0x46bd8c){const _0x237074=[];for(let _0xa164f5 of _0x49475b)_0xa164f5['start']['nodeAfter']===_0xa164f5['end']['parent']&&(_0xa164f5=_0x470f84['model']['createRange'](_0x470f84['model']['createPositionAt'](_0xa164f5['start']['nodeAfter'],0x0))),_0x237074['push'](_0xa164f5);_0x470f84['model']['change'](_0x5b1bf3=>{const _0x436e10=_0x470f84['model']['document']['selection'],_0x6a8a02=Array['from'](_0x436e10['getRanges']())['map'](_0x376110=>_0x4d622b['fromRange'](_0x376110));_0x5b1bf3['setSelection'](_0x237074),_0x470f84['commands']['get'](_0x46bd8c['commandName'])['refresh'](),_0x46bd8c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x470f84['execute'](_0x46bd8c['commandName'],..._0x46bd8c['commandParams']),_0x5b1bf3['setSelection'](_0x6a8a02);for(const _0x584050 of _0x6a8a02)_0x584050['detach']();});}),_0x158c6d['descriptionFactory']['registerElementLabel'](function(_0x18b1fd){const _0x2491ee=!_0x470f84['model']['schema']['isObject'](_0x18b1fd),_0x2aec06=_0x18b1fd['previousSibling'],_0x2151f2=_0x18b1fd['nextSibling'],_0x1dc12f=_0x18b1fd['getAttribute']('listItemId'),_0x2a1b43=!_0x2aec06||_0x2aec06['getAttribute']('listItemId')!==_0x1dc12f,_0x1b62e0=!_0x2151f2||_0x2151f2['getAttribute']('listItemId')!==_0x1dc12f;return _0x2491ee&&Boolean(_0x1dc12f)&&_0x2a1b43&&_0x1b62e0;},_0x15aa14=>c(_0x21bb66,'ELEMENT_LIST_ITEM',_0x15aa14));}['_registerLegacyDescription'](){const _0x39d656=this['editor'],_0x21aa96=_0x39d656['locale'];function _0x508a53(_0x178557){const _0x4f362e=_0x39d656['commands']['get']('bulletedList')['value'],_0x3e784d=_0x39d656['commands']['get']('numberedList')['value'];return'numberedList'===_0x178557?_0x4f362e:_0x3e784d;}_0x39d656['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4fe143){if('formatBlock'!=_0x4fe143['type'])return;const {data:_0x5bd640}=_0x4fe143;if(!_0x5bd640)return;let _0x1f8e76,_0x23768a,_0x4c3aa6,_0x174a38;switch(_0x5bd640['commandName']){case'bulletedList':_0x4c3aa6=_0x5bd640['commandParams'][0x0]['forceValue'],_0x174a38=_0x508a53(_0x5bd640['commandName']),_0x1f8e76=_0x4c3aa6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x174a38&&_0x39d656['config']['get']('list.multiBlock')||(_0x1f8e76='*Change\x20to:*\x20%0'),_0x23768a={'type':'format','content':c(_0x21aa96,_0x1f8e76,c(_0x21aa96,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c3aa6=_0x5bd640['commandParams'][0x0]['forceValue'],_0x174a38=_0x508a53(_0x5bd640['commandName']),_0x1f8e76=_0x4c3aa6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x174a38&&_0x39d656['config']['get']('list.multiBlock')||(_0x1f8e76='*Change\x20to:*\x20%0'),_0x23768a={'type':'format','content':c(_0x21aa96,_0x1f8e76,c(_0x21aa96,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1f8e76='*Indent:*\x20%0',_0x23768a={'type':'format','content':c(_0x21aa96,_0x1f8e76,c(_0x21aa96,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1f8e76=function(_0x2b7436){const _0x12c8b3=_0x2b7436['getFirstRange']();let _0x12a119=_0x12c8b3['start']['nodeAfter'];for(;_0x12a119&&_0x12c8b3['containsItem'](_0x12a119);){if(_0x12a119['getAttribute']('listIndent')>0x0)return!0x1;_0x12a119=_0x12a119['nextSibling'];}return!0x0;}(_0x4fe143)?c(_0x21aa96,'*Format:*\x20remove\x20from\x20%0',c(_0x21aa96,function(_0x4866f8){return'ELEMENT_'+_0x4866f8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4fe143))):c(_0x21aa96,'*Outdent:*\x20%0',c(_0x21aa96,'ELEMENT_LIST_ITEM')),_0x23768a={'type':'format','content':_0x1f8e76};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5bd640['multipleBlocks']&&(_0x1f8e76='*Merge:*\x20%0',_0x23768a={'type':'deletion','content':c(_0x21aa96,_0x1f8e76,c(_0x21aa96,'ELEMENT_LIST_ITEM'))});}return _0x23768a;});}}function Te(_0x2dce52){let _0x37de0c=_0x2dce52['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x37de0c;){const _0x5bc149=_0x37de0c['getAttribute']('listItemId');if(!_0x5bc149)return!0x1;if(_0x5bc149==_0x2dce52['data']['newValue'])return'newValue';if(_0x5bc149==_0x2dce52['data']['oldValue'])return'oldValue';_0x37de0c=_0x37de0c['previousSibling'];}return!0x1;}class Se extends _0x1cfb98{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb295c5=this['editor']['config']['get']('list.properties'),_0x53134f=this['editor']['plugins']['get']('TrackChangesEditing');_0xb295c5['styles']&&(_0x53134f['enableDefaultAttributesIntegration']('listStyle'),_0x53134f['registerBlockAttribute']('listStyle')),_0xb295c5['reversed']&&(_0x53134f['enableDefaultAttributesIntegration']('listReversed'),_0x53134f['registerBlockAttribute']('listReversed')),_0xb295c5['startIndex']&&(_0x53134f['enableDefaultAttributesIntegration']('listStart'),_0x53134f['registerBlockAttribute']('listStart'));const _0x3b6490={'type':'format','content':''};_0x53134f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x12ed53=this['editor']['locale'];_0x53134f['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x12ed53,'FORMAT_LIST_REVERSED')),_0x53134f['descriptionFactory']['registerDescriptionCallback'](_0x35d883=>{const {data:_0x818984}=_0x35d883;if(_0x818984&&'listReversed'==_0x818984['key'])return null==_0x818984['newValue']||0x0==_0x818984['newValue']&&null==_0x818984['oldValue']?_0x3b6490:void 0x0;}),_0x53134f['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x12ed53,'FORMAT_LIST_START')),_0x53134f['descriptionFactory']['registerDescriptionCallback'](_0x3c40a6=>{const {data:_0x52f8f0}=_0x3c40a6;if(_0x52f8f0&&'listStart'==_0x52f8f0['key'])return null==_0x52f8f0['newValue']||0x1==_0x52f8f0['newValue']&&null==_0x52f8f0['oldValue']?_0x3b6490:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3289f0=>{if(_0x3289f0['batch']['isUndo'])return!0x1;let _0x547b36=!0x1;const _0x4bac1a=_0x53134f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x195ff6=>{const _0x3cc09a=_0x53134f['_getAttributeKey'](_0x195ff6);return'listStart'==_0x3cc09a||'listReversed'==_0x3cc09a;});for(const _0x2e69e0 of _0x4bac1a){const _0xae05a6=_0x2e69e0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xae05a6||'customNumbered'==_0xae05a6)continue;_0x53134f['_findSuggestions'](_0x2e69e0['getFirstRange'](),'attribute')['find'](_0xb6dae3=>'listType'==_0x53134f['_getAttributeKey'](_0xb6dae3['suggestion']))||(_0x3289f0['removeMarker'](_0x2e69e0['getFirstMarker']()),_0x547b36=!0x0);}return _0x547b36;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2b13af){const _0x41ea04=this['editor']['locale'],{data:_0x2f364d}=_0x2b13af,_0x16b025={'type':'format','content':''};if(!_0x2f364d||'listStyle'!=_0x2f364d['key'])return;if(!_0x2f364d['oldValue'])return'default'==_0x2f364d['newValue']?_0x16b025:{'type':'format','content':''+c(_0x41ea04,'*Set\x20format:*\x20%0',c(_0x41ea04,this['_getTranslationKeyForListStyle'](_0x2f364d['newValue'])))};if(!_0x2f364d['newValue']){if('default'==_0x2f364d['oldValue'])return _0x16b025;let _0x49f19d=_0x2b13af['head'];for(;_0x49f19d;){if(_0x49f19d['data']&&'listType'==_0x49f19d['data']['key']&&_0x49f19d['data']['newValue'])return _0x16b025;_0x49f19d=_0x49f19d['next'];}return{'type':'format','content':''+c(_0x41ea04,'*Remove\x20format:*\x20%0',c(_0x41ea04,this['_getTranslationKeyForListStyle'](_0x2f364d['oldValue'])))};}if('default'!=_0x2f364d['newValue'])return{'type':'format','content':''+c(_0x41ea04,'*Set\x20format:*\x20%0',c(_0x41ea04,this['_getTranslationKeyForListStyle'](_0x2f364d['newValue'])))};let _0x58f596=_0x2b13af['head'];for(;_0x58f596;){if(_0x58f596['data']&&'listType'==_0x58f596['data']['key']&&_0x58f596['data']['newValue']&&_0x58f596['data']['oldValue'])return _0x16b025;_0x58f596=_0x58f596['next'];}return{'type':'format','content':c(_0x41ea04,'*Set\x20format:*\x20%0',c(_0x41ea04,'ELEMENT_'+_0x2b13af['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2a0591=this['editor'],_0x503ae4=_0x2a0591['locale'];_0x2a0591['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4625ef=>{if('formatBlock'!=_0x4625ef['type'])return;const {data:_0x34800a}=_0x4625ef;if(!_0x34800a)return;let _0x1ee896,_0xfddfa;switch(_0x34800a['commandName']){case'listStyle':_0x1ee896='*Change\x20to:*\x20%0',_0xfddfa={'type':'format','content':c(_0x503ae4,_0x1ee896,c(_0x503ae4,this['_getTranslationKeyForListStyle'](_0x34800a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ee896=_0x34800a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xfddfa={'type':'format','content':c(_0x503ae4,_0x1ee896)};break;case'listStart':_0x1ee896='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xfddfa={'type':'format','content':c(_0x503ae4,_0x1ee896,_0x34800a['commandParams'][0x0]['startIndex'])};}return _0xfddfa;});}['_getTranslationKeyForListStyle'](_0x570249){return'ELEMENT_'+function(_0x2f2992){if(_e['includes'](_0x2f2992))return'bulleted';if(Re['includes'](_0x2f2992))return'numbered';return null;}(_0x570249)['toUpperCase']()+'_LIST_'+_0x570249['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x1cfb98{['afterInit'](){const _0x54e586=this['editor'];_0x54e586['commands']['get']('emoji')&&_0x54e586['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x1cfb98{static get['requires'](){return[_0x2c7ad1];}['init'](){const _0x660e62=this['editor'],_0x2e5eb1=_0x660e62['plugins']['get']('TrackChangesEditing'),_0x133963=_0x660e62['commands']['get']('enter');_0x2e5eb1['enableCommand']('enter',()=>{_0x660e62['model']['change'](_0x6a7ead=>{const _0xa3c5af=_0x660e62['model']['document']['selection'],_0x9d6ab2=_0xa3c5af['getFirstPosition'](),_0x34fb8c=_0x4d622b['fromRange'](_0xa3c5af['getFirstRange']());if(_0x133963['enterBlock'](_0x6a7ead)){const _0x1015f7=_0x660e62['model']['createPositionAt'](_0x9d6ab2['parent']['nextSibling'],0x0),_0x3208ec=_0x6a7ead['createRange'](_0x9d6ab2,_0x1015f7);_0x2e5eb1['markInsertion'](_0x3208ec);}else _0x6a7ead['setSelection'](_0x6a7ead['createRange'](_0x34fb8c['end']));_0x34fb8c['detach'](),_0x133963['fire']('afterExecute',{'writer':_0x6a7ead});});}),_0x660e62['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x660e62,'split'),{'priority':'high'}),_0x660e62['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x52282b,_0x34648f,_0x1e4c1d)=>{const _0x2155bf=_0x1e4c1d['mapper']['markerNameToElements'](_0x34648f['markerName']);if(_0x2155bf){for(const _0xdc715d of _0x2155bf)_0xdc715d['hasClass']('ck-suggestion-marker-split')&&(_0x1e4c1d['mapper']['unbindElementFromMarkerName'](_0xdc715d,_0x34648f['markerName']),_0x1e4c1d['writer']['remove'](_0xdc715d));}},{'priority':'high'}),_0x660e62['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2d38d3,_0x36e212,_0x24962b)=>{_0x24962b['options']['showSuggestionHighlights']&&Fe(_0x660e62,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2d38d3,_0x36e212,_0x24962b);},{'priority':'high'});}}class Z extends _0x1cfb98{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x482f69=this['editor']['plugins']['get']('TrackChangesEditing');_0x482f69['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x482f69['enableCommand']('findNext'),_0x482f69['enableCommand']('findPrevious'),_0x482f69['enableCommand']('replace'),_0x482f69['enableCommand']('replaceAll');}['handleFindCommand'](_0x39d81f,_0x34cada,_0x535b7f={}){const _0x30113f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x39d81f(_0xb8da77=>{let _0x284080=('string'==typeof _0x34cada?_0x30113f['findByTextCallback'](_0x34cada,_0x535b7f):_0x34cada)(_0xb8da77);Array['isArray'](_0x284080)&&(_0x284080={'results':_0x284080,'searchText':'string'==typeof _0x34cada?_0x34cada:''});const _0x299c5a=_0x284080['results']['filter'](_0x1b9d73=>!0x1===this['_isInDeletionRange'](_0x1b9d73,_0xb8da77['item']));return{..._0x284080,'results':_0x299c5a};},_0x535b7f);}['_isInDeletionRange'](_0x1fe5c3,_0x51a68c){const _0x38c651=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51a68c,_0x1fe5c3['start']),this['editor']['model']['createPositionAt'](_0x51a68c,_0x1fe5c3['end']));for(const _0x4847ac of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38c651['getIntersection'](_0x4847ac['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 _0x1cfb98{['afterInit'](){const _0x3ac982=this['editor']['locale'],_0x8d785f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2eeac7,commandName:_0x4b839e}of ro)this['editor']['plugins']['has'](_0x2eeac7)&&(_0x8d785f['enableDefaultAttributesIntegration'](_0x4b839e),_0x8d785f['registerInlineAttribute'](_0x4b839e));_0x8d785f['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x3ac982,'FORMAT_FONT_SIZE')),_0x8d785f['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x3ac982,'FORMAT_FONT_FAMILY')),_0x8d785f['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x3ac982,'FORMAT_FONT_COLOR')),_0x8d785f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x3ac982,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x524984=this['editor'],_0x3102f5=_0x524984['locale'];_0x524984['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48d4b2=>{const _0x5e8a83=_0x3102f5['t'];if('formatInline'!=_0x48d4b2['type'])return;const {data:_0x58dbf8}=_0x48d4b2;if(null!=_0x58dbf8){if('fontSize'==_0x58dbf8['commandName']){const _0x21aee6=_0x58dbf8['commandParams'][0x0]['value'];if(_0x21aee6){const _0x4bd9b6=_0x5e8a83(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4cc43a=>_0x4cc43a['model']==_0x21aee6)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3102f5,'*Set\x20font\x20size:*\x20%0',_0x4bd9b6)};}return{'type':'format','content':c(_0x3102f5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x58dbf8['commandName']){const _0x50d3a1=_0x58dbf8['commandParams'][0x0]['value'];return _0x50d3a1?{'type':'format','content':c(_0x3102f5,'*Set\x20font\x20family:*\x20%0',_0x50d3a1)}:{'type':'format','content':c(_0x3102f5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x58dbf8['commandName']){const _0x5b710b=_0x58dbf8['commandParams'][0x0]['value'];if(_0x5b710b){const _0x3aa003=_0x408ced(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1c3588=>_0x1c3588['model']==_0x5b710b);let _0x499888=_0x5b710b,_0x18dc4b='';return _0x3aa003&&(_0x499888=_0x3aa003['label'],_0x18dc4b=_0x5e8a83(_0x499888)['toLowerCase']()),{'type':'format','content':c(_0x3102f5,'*Set\x20font\x20color:*\x20%0',_0x18dc4b)['trim'](),'color':{'value':_0x5b710b,'title':_0x18dc4b||_0x499888}};}return{'type':'format','content':c(_0x3102f5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x58dbf8['commandName']){const _0x58b2ce=_0x58dbf8['commandParams'][0x0]['value'];if(_0x58b2ce){const _0x594bf7=_0x408ced(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x896e17=>_0x896e17['model']==_0x58b2ce);let _0x4bd552=_0x58b2ce,_0x22515d='';return _0x594bf7&&(_0x4bd552=_0x594bf7['label'],_0x22515d=_0x5e8a83(_0x4bd552)['toLowerCase']()),{'type':'format','content':c(_0x3102f5,'*Set\x20font\x20background\x20color:*\x20%0',_0x22515d)['trim'](),'color':{'value':_0x58b2ce,'title':_0x22515d||_0x4bd552}};}return{'type':'format','content':c(_0x3102f5,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x1cfb98{['afterInit'](){const _0x3166a7=this['editor'],_0x434911=_0x3166a7['plugins']['get']('TrackChangesEditing'),_0x1fe066=_0x3166a7['commands']['get']('copyFormat'),_0x45954f=_0x3166a7['commands']['get']('pasteFormat');_0x1fe066&&_0x45954f&&(_0x434911['enableDefaultAttributesIntegration']('pasteFormat'),_0x434911['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5054e5=this['editor'],_0x51f68d=_0x5054e5['locale'];_0x5054e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20d16=>{if('formatBlock'!=_0x20d16['type']&&'formatInline'!=_0x20d16['type'])return;const {data:_0x3a510a}=_0x20d16;if(_0x3a510a&&'pasteFormat'===_0x3a510a['commandName']){const _0x224174=[],_0x5d890e=_0x3a510a['commandParams'][0x0];for(const [_0x31d1e3,_0x47db2c]of Object['entries'](_0x5d890e))_0x224174['push'](so(_0x5054e5,_0x31d1e3,_0x47db2c));return _0x224174['length']?{'type':'format','content':c(_0x51f68d,'*Set\x20format\x20to:*\x20%0',_0x224174['join'](',\x20'))}:{'type':'format','content':c(_0x51f68d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5547a2,_0x4b3f60,_0x55b1cb){const _0x57102e=_0x5547a2['locale']['t'],_0x3cd1cd=_0x4b3f60['split'](/(?=[A-Z])/)['join']('\x20'),_0x888ce7=_0x57102e(_0x3cd1cd['charAt'](0x0)['toUpperCase']()+_0x3cd1cd['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x55b1cb)return _0x888ce7;if('fontColor'===_0x4b3f60||'fontBackgroundColor'===_0x4b3f60){const _0x2f6e8d=_0x408ced(_0x5547a2['config']['get']('fontColor.colors'))['find'](_0x2294cf=>_0x2294cf['model']==_0x55b1cb);return _0x888ce7+'\x20('+(_0x2f6e8d?_0x57102e(_0x2f6e8d['label'])['toLowerCase']():_0x55b1cb)+')';}if('fontSize'===_0x4b3f60&&isNaN(parseFloat(_0x55b1cb))){const _0x4e5a10=_0x5547a2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5547a2['config']['get']('fontSize.options'))['find'](_0x3e9e6b=>_0x3e9e6b['model']==_0x55b1cb);return _0x888ce7+'\x20('+(_0x4e5a10?_0x57102e(_0x4e5a10['title'])['toLowerCase']():_0x55b1cb)+')';}return _0x888ce7+'\x20('+_0x55b1cb+')';}class nt extends _0x1cfb98{['_headingOptions'];['afterInit'](){const _0x5cbec1=this['editor'];if(!_0x5cbec1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5cbec1['config']['get']('heading.options');const _0xac34f8=_0x5cbec1['locale'],_0x117d68=_0x5cbec1['plugins']['get']('TrackChangesEditing');_0x117d68['enableDefaultAttributesIntegration']('heading');for(const _0x2bd1a2 of this['_headingOptions'])'paragraph'!=_0x2bd1a2['model']&&_0x117d68['descriptionFactory']['registerElementLabel'](_0x2bd1a2['model'],_0x1b189c=>{const _0x3ad4bf=this['_getHeadingLevel'](_0x2bd1a2['model']);return null!==_0x3ad4bf?_0x548462(_0x1b189c,_0x3ad4bf):_0x12dba5(_0x1b189c,_0x2bd1a2['title']);});function _0x548462(_0x3dc357,_0x30ddf0){return c(_0xac34f8,'ELEMENT_HEADING',[_0x3dc357,_0x30ddf0]);}function _0x12dba5(_0x2053a2,_0x510e92){return c(_0xac34f8,'ELEMENT_HEADING_CUSTOM',[_0x2053a2,_0x510e92]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ed5ba=this['editor'],_0x16e9f=_0x3ed5ba['locale'];function _0x28b5f5(_0x35ca08,_0x39afff){return c(_0x16e9f,'ELEMENT_HEADING_CUSTOM',[_0x35ca08,_0x39afff]);}_0x3ed5ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x874f=>{if('formatBlock'!=_0x874f['type'])return;const {data:_0x3fc277}=_0x874f;if(_0x3fc277&&'heading'==_0x3fc277['commandName']){const _0x58baed=_0x3fc277['commandParams'][0x0]['value'],_0x14abe1=this['_getHeadingLevel'](_0x58baed);if(null!==_0x14abe1)return{'type':'format','content':c(_0x16e9f,'*Change\x20to:*\x20%0',(_0x66159c=0x1,_0xe031c0=_0x14abe1,c(_0x16e9f,'ELEMENT_HEADING',[_0x66159c,_0xe031c0])))};const _0x1b8112=this['_headingOptions']['find'](_0x1c5df6=>_0x1c5df6['model']===_0x58baed)['title'];return{'type':'format','content':c(_0x16e9f,'*Change\x20to:*\x20%0',_0x28b5f5(0x1,_0x1b8112))};}var _0x66159c,_0xe031c0;});}['_getHeadingLevel'](_0x39a866){const _0x4728f3=_0x39a866['match'](/^heading(\d+)/);if(_0x4728f3)return _0x4728f3[0x1];const _0x43cf81=this['_headingOptions']?.['find'](_0x44eefd=>_0x44eefd['model']==_0x39a866);if(_0x43cf81&&_0x43cf81['view']){const _0xd83346=_0x43cf81['view'],_0x2b6249=(_0xd83346['name']??_0xd83346)['match'](/^h(\d+)/);if(_0x2b6249)return _0x2b6249[0x1];}return null;}}class it extends _0x1cfb98{['afterInit'](){const _0x1e5be9=this['editor'];if(!_0x1e5be9['plugins']['has']('HighlightEditing'))return;const _0x4b38b9=_0x1e5be9['plugins']['get']('TrackChangesEditing'),_0x1509f3=_0x1e5be9['locale'];_0x4b38b9['enableDefaultAttributesIntegration']('highlight'),_0x4b38b9['registerInlineAttribute']('highlight'),_0x4b38b9['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x1509f3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f03fe=this['editor'],_0x364b8a=_0x4f03fe['locale'];_0x4f03fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48e321=>{if('formatInline'!=_0x48e321['type'])return;const {data:_0xa37aa7}=_0x48e321;if(_0xa37aa7&&'highlight'==_0xa37aa7['commandName']){const _0x4ca8ef=_0x364b8a['t'],_0x4586e2=_0xa37aa7['commandParams'][0x0]['value'];if(_0x4586e2){const _0x1ff983=_0x4f03fe['config']['get']('highlight.options')['find'](_0x4c6862=>_0x4c6862['model']==_0x4586e2),_0x25d3e3=_0x4ca8ef(_0x1ff983['title'])['toLowerCase']();return{'type':'format','content':c(_0x364b8a,'*Set\x20highlight:*\x20%0',_0x25d3e3),'color':{'value':_0x1ff983['color'],'title':_0x1ff983['title']}};}return{'type':'format','content':c(_0x364b8a,'*Remove\x20highlight*',c(_0x364b8a,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x1cfb98{['afterInit'](){const _0x251d1d=this['editor'];if(!_0x251d1d['plugins']['has']('HorizontalLineEditing'))return;_0x251d1d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x17b351=_0x251d1d['plugins']['get']('TrackChangesEditing'),_0x58a48b=_0x251d1d['locale'];_0x17b351['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d3229=>c(_0x58a48b,'ELEMENT_HORIZONTAL_LINE',_0x4d3229)),_0x251d1d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x39c39a,{writer:_0x44eaea,options:_0x38032d})=>{if(!_0x38032d['showSuggestionHighlights'])return null;const _0x593f51=_0x44eaea['createContainerElement']('div'),_0x25c791=_0x44eaea['createEmptyElement']('hr');return _0x44eaea['addClass']('ck-horizontal-line',_0x593f51),_0x44eaea['insert'](_0x44eaea['createPositionAt'](_0x593f51,0x0),_0x25c791),_0x593f51;},'converterPriority':'high'});}}class ot extends _0x1cfb98{['afterInit'](){const _0x506ac8=this['editor'];if(!_0x506ac8['plugins']['has']('HtmlEmbed'))return;const _0x48eb9a=_0x506ac8['plugins']['get']('TrackChangesEditing'),_0x194e38=_0x506ac8['locale'];_0x48eb9a['descriptionFactory']['registerElementLabel']('rawHtml',_0x5af2b4=>c(_0x194e38,'ELEMENT_HTML_EMBED',_0x5af2b4)),_0x48eb9a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x48eb9a['registerBlockAttribute']('value'),_0x48eb9a['descriptionFactory']['registerDescriptionCallback'](_0x306538=>{if('attribute'!=_0x306538['type'])return;const {data:_0x555091}=_0x306538;if(_0x555091&&'value'==_0x555091['key']&&_0x306538['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x241829=c(_0x194e38,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x194e38,'*Change\x20%0\x20content*',_0x241829)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x622cff=this['editor'],_0x20bb93=_0x622cff['locale'];_0x622cff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x972ff6=>{if('formatBlock'!=_0x972ff6['type'])return;const {data:_0x4fd18a}=_0x972ff6;if(_0x4fd18a&&'htmlEmbed'==_0x4fd18a['commandName']){const _0xce54a4=c(_0x20bb93,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x20bb93,'*Change\x20%0\x20content*',_0xce54a4)};}});}}class rt extends _0x1cfb98{['afterInit'](){const _0x285a43=this['editor'];if(!_0x285a43['plugins']['has']('ImageEditing'))return;const _0x16d2d6=_0x285a43['plugins']['get']('TrackChangesEditing'),_0x48a866=_0x285a43['plugins']['get']('ImageUtils'),_0x3f51c4=_0x285a43['locale'];_0x16d2d6['enableCommand']('insertImage'),_0x16d2d6['descriptionFactory']['registerElementLabel']('imageBlock',_0x216bf5=>c(_0x3f51c4,'ELEMENT_IMAGE',_0x216bf5)),_0x16d2d6['descriptionFactory']['registerElementLabel']('imageInline',_0x262156=>c(_0x3f51c4,'ELEMENT_INLINE_IMAGE',_0x262156)),_0x16d2d6['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x3f51c4,'ELEMENT_CAPTION')),_0x285a43['plugins']['has']('ImageUploadEditing')&&_0x16d2d6['enableCommand']('uploadImage'),_0x285a43['plugins']['has']('ImageBlockEditing')&&_0x285a43['plugins']['has']('ImageInlineEditing')&&(_0x16d2d6['enableCommand']('imageTypeInline',(_0x2bd8ab,_0x5e4f3f)=>{const _0x1c73b8=_0x48a866['getClosestSelectedImageElement'](_0x285a43['model']['document']['selection']);_0x285a43['model']['change'](()=>{_0x16d2d6['markBlockFormat'](_0x1c73b8,{'commandName':'imageTypeInline','commandParams':[_0x5e4f3f]},[],'convertBlockImageToInline');});}),_0x16d2d6['enableCommand']('imageTypeBlock',(_0x53ce9f,_0x1e9c4a)=>{_0x285a43['model']['change'](_0x10de73=>{let _0x289e5d=_0x48a866['getClosestSelectedImageElement'](_0x285a43['model']['document']['selection']),_0x486301=_0x10de73['createRangeOn'](_0x289e5d);const _0x4af192=_0x3b54a7['fromPosition'](_0x486301['start'],'toPrevious'),_0x113cce=_0x3b54a7['fromPosition'](_0x486301['end'],'toNext');_0x16d2d6['forceDefaultExecution'](()=>_0x53ce9f(_0x1e9c4a)),_0x289e5d=_0x48a866['getClosestSelectedImageElement'](_0x285a43['model']['document']['selection']),_0x486301=_0x10de73['createRangeOn'](_0x289e5d);const _0x292030=_0x10de73['createRange'](_0x4af192,_0x113cce);_0x4af192['detach'](),_0x113cce['detach'](),_0x16d2d6['markBlockFormat'](_0x289e5d,{'commandName':'imageTypeInline','commandParams':[_0x1e9c4a]},[],'convertInlineImageToBlock'),_0x292030['start']['isBefore'](_0x486301['start'])&&_0x16d2d6['markInsertion'](_0x10de73['createRange'](_0x292030['start'],_0x486301['start']),'convertInlineImageToBlock'),_0x486301['end']['isBefore'](_0x292030['end'])&&_0x16d2d6['markInsertion'](_0x10de73['createRange'](_0x486301['end'],_0x292030['end']),'convertInlineImageToBlock');});}),_0x16d2d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x16d2d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x16d2d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x16d2d6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x16d2d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x16d2d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x38e008])=>{const _0x5335e4=_0x16d2d6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x507123=_0x38e008['start'],_0x5c4f9a=_0x38e008['end'];const _0x42712a=_0x285a43['model']['schema']['getNearestSelectionRange'](_0x507123,'backward'),_0x104697=_0x285a43['model']['schema']['getNearestSelectionRange'](_0x5c4f9a,'forward');_0x42712a['isCollapsed']&&(_0x507123=_0x42712a['start']),_0x104697['isCollapsed']&&(_0x5c4f9a=_0x104697['end']),_0x5335e4([_0x285a43['model']['createRange'](_0x507123,_0x5c4f9a)]);}),_0x16d2d6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1080c7),_0x16d2d6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1080c7)),_0x285a43['plugins']['has']('ImageCaptionEditing')&&(_0x16d2d6['enableCommand']('toggleImageCaption',(_0x2a3aac,_0x34196b)=>{const _0x51dd03=_0x285a43['plugins']['get']('ImageCaptionUtils');let _0x4d131b=_0x48a866['getClosestSelectedImageElement'](_0x285a43['model']['document']['selection']),_0x3a1710=_0x51dd03['getCaptionFromImageModelElement'](_0x4d131b);_0x285a43['model']['change'](()=>{if(_0x3a1710)return void _0x16d2d6['markDeletion'](_0x285a43['model']['createRangeOn'](_0x3a1710));const _0x305f22=_0x48a866['isBlockImage'](_0x4d131b);_0x2a3aac(_0x34196b),_0x4d131b=_0x48a866['getClosestSelectedImageElement'](_0x285a43['model']['document']['selection']),_0x3a1710=_0x51dd03['getCaptionFromImageModelElement'](_0x4d131b),_0x16d2d6['markInsertion'](_0x285a43['model']['createRangeOn'](_0x3a1710),_0x305f22?null:'imageCaption');});}),_0x16d2d6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1080c7));const _0x581a5a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x27ed4d(_0x450ff9,_0xd3f7ca){const _0x7c4295=_0x581a5a['findIndex'](({type:_0x1c0c40,subType:_0x4f4828})=>_0x450ff9['type']==_0x1c0c40&&_0x450ff9['subType']==_0x4f4828),_0x2278c8=_0x581a5a['findIndex'](({type:_0x45f6d0,subType:_0x3b28bb})=>_0xd3f7ca['type']==_0x45f6d0&&_0xd3f7ca['subType']==_0x3b28bb);if(_0x7c4295<0x0||_0x2278c8<0x0)return!0x1;const _0x2761ca=_0x450ff9['getFirstRange'](),_0x36e0ad=_0xd3f7ca['getFirstRange']();if((0x0==_0x7c4295||0x1==_0x7c4295)&&0x2==_0x2278c8&&_0x2761ca['isIntersecting'](_0x36e0ad))return!0x0;if(0x2==_0x7c4295&&0x3==_0x2278c8){const _0x26482a=_0x16d2d6['_findSuggestions'](_0x2761ca,'insertion')['filter'](({suggestion:_0x2b4ee8,meta:_0x11d797})=>_0x11d797['isOwn']&&'convertInlineImageToBlock'==_0x2b4ee8['subType']);if(_0x26482a['length']>0x1&&_0x36e0ad['end']['isEqual'](_0x2761ca['start']))return!0x0;if(0x1==_0x26482a['length']&&(_0x2761ca['start']['isEqual'](_0x36e0ad['end'])||_0x2761ca['end']['isEqual'](_0x36e0ad['start'])))return!0x0;}if(0x3==_0x7c4295&&0x3==_0x2278c8&&_0x2761ca['start']['isBefore'](_0x36e0ad['start'])){const _0x2648b4=_0x2761ca['end']['nodeAfter'],_0x23df08=_0x36e0ad['start']['nodeBefore'];return _0x48a866['isBlockImage'](_0x2648b4)&&_0x2648b4===_0x23df08;}return!0x1;}function _0x1080c7(_0x472ac5,_0x108e97){return _0x27ed4d(_0x472ac5,_0x108e97)?[_0x472ac5,_0x108e97]:_0x27ed4d(_0x108e97,_0x472ac5)?[_0x108e97,_0x472ac5]:null;}_0x285a43['plugins']['has']('ImageResize')&&(_0x16d2d6['enableDefaultAttributesIntegration']('resizeImage'),_0x16d2d6['registerBlockAttribute']('resizedWidth'),_0x16d2d6['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x3f51c4,'FORMAT_IMAGE_SIZE'))),_0x285a43['plugins']['has']('ImageTextAlternativeEditing')&&(_0x16d2d6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x16d2d6['registerBlockAttribute']('alt')),_0x285a43['plugins']['has']('PictureEditing')&&(_0x16d2d6['registerBlockAttribute']('sources'),_0x16d2d6['descriptionFactory']['registerDescriptionCallback'](_0x46321a=>{if('attribute'!=_0x46321a['type'])return;const {data:_0x37b531}=_0x46321a;return _0x37b531&&'sources'==_0x37b531['key']?{'type':'format','content':''}:void 0x0;})),_0x285a43['plugins']['has']('ImageSizeAttributes')&&(_0x16d2d6['registerBlockAttribute']('width'),_0x16d2d6['registerBlockAttribute']('height'),_0x16d2d6['descriptionFactory']['registerDescriptionCallback'](_0x4b0d56=>{if('attribute'!=_0x4b0d56['type'])return;const {data:_0x9c811b}=_0x4b0d56;return!_0x9c811b||'width'!=_0x9c811b['key']&&'height'!=_0x9c811b['key']?void 0x0:{'type':'format','content':''};})),_0x16d2d6['descriptionFactory']['registerDescriptionCallback'](_0x19bfa1=>{if(!!_0x581a5a['find'](({type:_0x4a3310,subType:_0x2dcfdd})=>_0x19bfa1['type']==_0x4a3310&&_0x19bfa1['subType']==_0x2dcfdd))return _0x19bfa1['previous']?{}:void 0x0;}),_0x16d2d6['descriptionFactory']['registerDescriptionCallback'](_0x898013=>{if('insertion'==_0x898013['type']||'deletion'==_0x898013['type']){const _0x107a0d=_0x898013['getContainedElement']();if(_0x107a0d&&_0x107a0d['is']('element','caption'))return{'type':'insertion'==_0x898013['type']?'addObject':'removeObject','element':_0x107a0d,'quantity':0x1};}}),_0x16d2d6['descriptionFactory']['registerDescriptionCallback'](_0x579c86=>'formatBlock'==_0x579c86['type']&&'convertInlineImageToBlock'==_0x579c86['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x579c86['type']&&'convertBlockImageToInline'==_0x579c86['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x16d2d6['descriptionFactory']['registerDescriptionCallback'](_0x19b500=>{if('attribute'!=_0x19b500['type'])return;const {data:_0x2cdce3}=_0x19b500;if(!_0x2cdce3||'alt'!=_0x2cdce3['key'])return;const _0x5ddcda=_0x2cdce3['newValue'];return _0x5ddcda?{'type':'format','content':c(_0x3f51c4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5ddcda+'\x22')}:{'type':'format','content':c(_0x3f51c4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x478b4a=this['editor'],_0x495920=_0x478b4a['locale'];_0x478b4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d8083=>{if('formatBlock'!=_0x3d8083['type']&&'formatInline'!=_0x3d8083['type'])return;const {data:_0x2aa52a}=_0x3d8083;if(_0x2aa52a){if('imageTextAlternative'==_0x2aa52a['commandName']){const _0x399113=_0x2aa52a['commandParams'][0x0]['newValue'];return _0x399113?{'type':'format','content':c(_0x495920,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x399113+'\x22')}:{'type':'format','content':c(_0x495920,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2aa52a['commandName']){const _0x3a301b=_0x2aa52a['commandParams'][0x0]['width'];return _0x3a301b?{'type':'format','content':c(_0x495920,'*Set\x20image\x20width:*\x20%0',_0x3a301b)}:{'type':'format','content':c(_0x495920,'*Reset\x20image\x20width*')};}}});}}class at extends _0x1cfb98{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x41ac74=this['editor']['locale'],_0x3265f4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3265f4['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3265f4['registerBlockAttribute']('src'),_0x3265f4['descriptionFactory']['registerDescriptionCallback'](_0xcd2823=>{if('attribute'!=_0xcd2823['type'])return;const {data:_0x4e49eb}=_0xcd2823;return _0x4e49eb&&'src'==_0x4e49eb['key']?_0x4e49eb['newValue']&&_0x4e49eb['oldValue']?{'type':'format','content':c(_0x41ac74,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ee639=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ee639['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5ee639['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ee639['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5ee639['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e965f=this['editor'],_0x26df5d=_0x5e965f['locale'];_0x5e965f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ec782=>{if('formatBlock'!=_0x5ec782['type']&&'formatInline'!=_0x5ec782['type'])return;const {data:_0x5d499c}=_0x5ec782;if(!_0x5d499c||'replaceImageSource'!=_0x5d499c['commandName'])return;return{'type':'format','content':c(_0x26df5d,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x1cfb98{['afterInit'](){const _0x2dd0eb=this['editor'];if(!_0x2dd0eb['plugins']['has']('ImageStyleEditing'))return;const _0x3a9c7e=_0x2dd0eb['plugins']['get']('TrackChangesEditing'),_0x1e45e9=_0x2dd0eb['plugins']['get']('ImageUtils'),_0x1f7007={};_0x3a9c7e['enableCommand']('imageStyle',(_0xb82954,_0x4b31a3)=>{const _0x43225a=_0x2dd0eb['plugins']['get']('Users')['me'],_0x6698cc=_0x2dd0eb['commands']['get']('imageStyle');let _0x50189c=_0x1e45e9['getClosestSelectedImageElement'](_0x2dd0eb['model']['document']['selection']),_0x2c0897=_0x2dd0eb['model']['createRangeOn'](_0x50189c),_0x2c3d7b=_0x6698cc['value'];if(_0x2c3d7b==_0x4b31a3['value'])return;const _0x4e176d={'commandName':'imageStyle','commandParams':[_0x4b31a3],'formatGroupId':_0x51edb1()};_0x2dd0eb['model']['change'](()=>{if(_0x3a9c7e['getSuggestions']()['filter'](_0x31fa85=>_0x31fa85['isInContent']&&_0x43225a==_0x31fa85['author']&&('formatBlock'==_0x31fa85['type']||'formatInline'==_0x31fa85['type'])&&('imageStylePreApply'==_0x31fa85['subType']||'imageStylePostApply'==_0x31fa85['subType'])&&_0x31fa85['getFirstRange']()['isEqual'](_0x2c0897))['forEach'](_0x2d949b=>_0x3a9c7e['discardSuggestion'](_0x2d949b['head'])),_0x50189c=_0x1e45e9['getClosestSelectedImageElement'](_0x2dd0eb['model']['document']['selection']),_0x2c0897=_0x2dd0eb['model']['createRangeOn'](_0x50189c),_0x6698cc['refresh'](),_0x2dd0eb['commands']['get']('imageTypeInline')['refresh'](),_0x2dd0eb['commands']['get']('imageTypeBlock')['refresh'](),_0x2c3d7b=_0x6698cc['value'],_0x2c3d7b!=_0x4b31a3['value'])return _0x1e45e9['isInlineImage'](_0x50189c)&&_0x6698cc['shouldConvertImageType'](_0x4b31a3['value'],_0x50189c)?(_0xb82954({..._0x4b31a3,'setImageSizes':!0x1}),_0x50189c=_0x1e45e9['getClosestSelectedImageElement'](_0x2dd0eb['model']['document']['selection']),void _0x3a9c7e['markBlockFormat'](_0x50189c,{..._0x4e176d,'commandReversedParams':[{'value':_0x2c3d7b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1e45e9['isBlockImage'](_0x50189c)?_0x3a9c7e['markBlockFormat'](_0x50189c,_0x4e176d,[],'imageStylePostApply'):_0x3a9c7e['markInlineFormat'](_0x2c0897,_0x4e176d,'imageStylePostApply'));});});for(const _0x3ac0e7 of _0x2dd0eb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f7007[_0x3ac0e7['name']]=_0x3ac0e7['title']['toLowerCase']();_0x3a9c7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a9c7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a9c7e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a9c7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x66b6bc])=>{_0x1e45e9['setImageNaturalSizeAttributes'](_0x66b6bc['getContainedElement']());}),_0x3a9c7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x396a39,_0x2dcf21)=>{_0x3a9c7e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x396a39,{'commandName':_0x2dcf21['commandName'],'commandParams':_0x2dcf21['commandReversedParams']});}),_0x3a9c7e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x51c1c9,_0x3a7475){if(_0x32f5f7(_0x51c1c9,_0x3a7475))return[_0x51c1c9,_0x3a7475];if(_0x32f5f7(_0x3a7475,_0x51c1c9))return[_0x3a7475,_0x51c1c9];return null;});const _0x35489e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x32f5f7(_0x151bf9,_0x40aafa){const _0x4b7388=_0x35489e['findIndex'](({type:_0x17cca5,subType:_0x2a1dac})=>_0x151bf9['type']==_0x17cca5&&_0x151bf9['subType']==_0x2a1dac),_0x44ad6e=_0x35489e['findIndex'](({type:_0x481f52,subType:_0xc8b56})=>_0x40aafa['type']==_0x481f52&&_0x40aafa['subType']==_0xc8b56);if(_0x4b7388<0x0||_0x44ad6e<0x0)return!0x1;const _0x48129f=_0x151bf9['getFirstRange'](),_0x27145b=_0x40aafa['getFirstRange']();if((0x0==_0x4b7388||0x1==_0x4b7388)&&0x2==_0x44ad6e&&_0x48129f['isIntersecting'](_0x27145b))return!0x0;if(0x2==_0x4b7388&&0x3==_0x44ad6e){const _0x12f322=_0x3a9c7e['_findSuggestions'](_0x48129f,'insertion')['filter'](({suggestion:_0x5e752b,meta:_0x28e482})=>_0x28e482['isOwn']&&'convertInlineImageToBlock'==_0x5e752b['subType']);if(_0x12f322['length']>0x1&&_0x27145b['end']['isEqual'](_0x48129f['start']))return!0x0;if(0x1==_0x12f322['length']&&(_0x48129f['start']['isEqual'](_0x27145b['end'])||_0x48129f['end']['isEqual'](_0x27145b['start'])))return!0x0;}if(0x3==_0x4b7388&&0x3==_0x44ad6e&&_0x48129f['start']['isBefore'](_0x27145b['start'])){const _0x45c33a=_0x48129f['end']['nodeAfter'],_0x415974=_0x27145b['start']['nodeBefore'];return _0x1e45e9['isBlockImage'](_0x45c33a)&&_0x45c33a===_0x415974;}return!0x1;}_0x2dd0eb['model']['document']['registerPostFixer'](()=>{let _0x42283f=!0x1;const _0x2974ee=Array['from'](_0x2dd0eb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x725ba7,data:_0x48d029}of _0x2974ee){const {group:_0x51fbe0,type:_0x11a73c,subType:_0x185344,id:_0x181a15}=_0x3a9c7e['_splitMarkerName'](_0x725ba7);if('suggestion'==_0x51fbe0&&_0x3a9c7e['hasSuggestion'](_0x181a15)){if('formatBlock'==_0x11a73c&&('imageStylePreApply'==_0x185344||'imageStylePostApply'==_0x185344)){const _0x5479b4=_0x3a9c7e['getSuggestion'](_0x181a15);if(_0x48d029['newRange']){const _0xb3dced=_0x5479b4['getFirstRange']()['getContainedElement']();if(_0x1e45e9['isBlockImage'](_0xb3dced))continue;_0x3a9c7e['discardSuggestion'](_0x5479b4),_0x42283f=!0x0;}}if('insertion'==_0x11a73c&&'imageCaption'==_0x185344&&!_0x48d029['newRange']){const _0x3ed19b=_0x3a9c7e['getSuggestion'](_0x181a15);_0x3ed19b['next']&&_0x3ed19b['next']['isInContent']&&(_0x3a9c7e['discardSuggestion'](_0x3ed19b['next']),_0x42283f=!0x0);}}}return _0x42283f;}),this['_registerLegacyDescription'](_0x1f7007);}['_registerLegacyDescription'](_0xd3c2e5){const _0x2a790a=this['editor'],_0x110335=_0x2a790a['locale'];_0x2a790a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49a9fc=>{if('formatBlock'!=_0x49a9fc['type']&&'formatInline'!=_0x49a9fc['type'])return;const {data:_0x31c3db}=_0x49a9fc;if(!_0x31c3db||'imageStyle'!=_0x31c3db['commandName'])return;const _0x3be1a1=_0x31c3db['commandParams'][0x0]['value'];return _0x25e934('side'===_0x3be1a1?c(_0x110335,'FORMAT_SIDE_IMAGE'):_0xd3c2e5[_0x3be1a1]||_0x3be1a1);function _0x25e934(_0x2cb040){return{'type':'format','content':c(_0x110335,'*Format:*\x20%0',_0x2cb040)};}});}}class ut extends _0x1cfb98{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4c8f38){super(_0x4c8f38),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4ee36b=this['editor'],_0x51e2b=_0x4ee36b['commands']['get']('importWord'),_0x5c764d=_0x4ee36b['commands']['get']('trackChanges');_0x51e2b&&(_0x51e2b['on']('execute',(_0x4c3bc6,[,_0x313204])=>{this['_trackChangesValueDuringImport']=_0x5c764d['value'],_0x313204['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x51e2b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x51e2b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5c764d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4ee36b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5bc7cb,_0x583a34){const {suggestions:_0x4a3696}=_0x583a34,_0x2eca13=this['editor']['commands']['get']('trackChanges'),_0x38aafd=_0x2eca13['value'];this['_trackChangesValueDuringImport']!==_0x38aafd&&(_0x2eca13['execute'](),this['_trackChangesExecuted']=!0x0),_0x4a3696&&_0x4a3696['forEach'](({id:_0x9b0eda,type:_0x549e28,author:_0xcb9094,created_at:_0x4bf9a8})=>{const _0x93e36d={'id':_0x9b0eda,'type':_0x549e28,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xcb9094,'createdAt':_0x4bf9a8?new Date(_0x4bf9a8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x93e36d);});}}class ft extends _0x1cfb98{['afterInit'](){const _0x321dea=this['editor'],_0x3d7e35=_0x321dea['plugins']['get']('TrackChangesEditing');if(_0x321dea['plugins']['has']('IndentEditing')&&(_0x3d7e35['enableCommand']('indent'),_0x3d7e35['enableCommand']('outdent')),_0x321dea['plugins']['has']('IndentBlock')){for(const _0x1b200e of['indentBlock','outdentBlock'])_0x3d7e35['enableDefaultAttributesIntegration'](_0x1b200e);}const _0x614c1c=_0x321dea['locale'];_0x3d7e35['registerBlockAttribute']('blockIndent'),_0x3d7e35['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x614c1c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d560e=this['editor'],_0x4f43c3=_0x5d560e['locale'],_0x1d18ac=_0x5d560e['plugins']['get']('TrackChangesEditing');_0x1d18ac['descriptionFactory']['registerDescriptionCallback'](_0x40877d=>{if('formatBlock'!=_0x40877d['type'])return;const {data:_0x1bfa7c}=_0x40877d;if(!_0x1bfa7c)return;if('indentBlock'!=_0x1bfa7c['commandName']&&'outdentBlock'!=_0x1bfa7c['commandName'])return;const _0x4c97a0=_0x40877d['getItems']()[0x0],_0x45c75d=_0x1d18ac['descriptionFactory']['getItemLabel'](_0x4c97a0);return'indentBlock'==_0x1bfa7c['commandName']?{'type':'format','content':c(_0x4f43c3,'*Indent:*\x20%0',_0x45c75d)}:'outdentBlock'==_0x1bfa7c['commandName']?{'type':'format','content':c(_0x4f43c3,'*Outdent:*\x20%0',_0x45c75d)}:void 0x0;});}}class ht extends _0x1cfb98{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x1cfb98{['afterInit'](){const _0x4ee985=this['editor'];if(!_0x4ee985['plugins']['has']('LinkEditing'))return;const _0x54b84e=_0x4ee985['plugins']['get']('TrackChangesEditing'),_0x4824fe=_0x4ee985['commands']['get']('link');_0x54b84e['enableDefaultAttributesIntegration']('link'),_0x54b84e['enableDefaultAttributesIntegration']('unlink'),_0x54b84e['registerInlineAttribute']('linkHref');for(const _0x1ad397 of _0x4824fe['manualDecorators'])_0x54b84e['registerInlineAttribute'](_0x1ad397['id']),_0x54b84e['descriptionFactory']['registerAttributeLabel'](_0x1ad397['id'],'link\x20('+_0x1ad397['label']['toLowerCase']()+')');_0x54b84e['descriptionFactory']['registerDescriptionCallback'](_0x43b77a=>{if('attribute'!=_0x43b77a['type'])return;const {data:_0x1e7a52}=_0x43b77a;if(!_0x1e7a52||'linkHref'!=_0x1e7a52['key'])return;const _0x58ad04=_0x1e7a52['newValue'],_0x32d23a=_0x4ee985['locale'];return{'type':'format','content':null==_0x58ad04?c(_0x32d23a,'*Remove\x20link*'):c(_0x32d23a,'*Set\x20link:*\x20%0','\x22'+_0x58ad04+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2921ce=this['editor'],_0x2fb24b=_0x2921ce['locale'];_0x2921ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37f80d=>{if('formatInline'!=_0x37f80d['type'])return;const {data:_0xadfed5}=_0x37f80d;if(_0xadfed5){if('link'==_0xadfed5['commandName']){const _0x4cb4ad=_0xadfed5['commandParams'][0x0];return{'type':'format','content':c(_0x2fb24b,'*Set\x20link:*\x20%0','\x22'+_0x4cb4ad+'\x22')};}return'unlink'==_0xadfed5['commandName']?{'type':'format','content':c(_0x2fb24b,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x1cfb98{['afterInit'](){const _0x335edf=this['editor'],_0xb28ef6=_0x335edf['locale'];if(!_0x335edf['plugins']['has']('LegacyListEditing'))return;const _0x29c6c7=_0x335edf['plugins']['get']('TrackChangesEditing'),_0x2ea3a5=_0x335edf['plugins']['has']('LegacyTodoListEditing');function _0x4cb69f(_0x17a653){return()=>{const _0x368b39=_0x335edf['model']['document']['selection'],_0x5ccb00=_0x335edf['commands']['get'](_0x17a653);if(_0x5ccb00['value'])return void _0x335edf['execute']('paragraph',{});const _0xaee2bc=_0x17a653['slice'](0x0,-0x4),_0x597559=function(_0x2fa5e6,_0xa9ad02,_0x1c45d4){let _0x46c63e=Array['from'](_0x2fa5e6)['filter'](_0x11cac4=>function(_0x5a58fe,_0x4b6a51){return _0x4b6a51['checkChild'](_0x5a58fe['parent'],'listItem')&&!_0x4b6a51['isObject'](_0x5a58fe);}(_0x11cac4,_0x1c45d4));_0x46c63e=_0x46c63e['filter'](_0x9764d=>!_0x9764d['is']('element','listItem')||_0x9764d['getAttribute']('listType')!=_0xa9ad02);const _0x323333=new Set();for(const _0x11be1e of _0x46c63e)_0x11be1e['is']('element','listItem')?_0x323333['add'](Le(_0x11be1e)):_0x323333['add'](_0x11be1e);return Array['from'](_0x323333);}(_0x368b39['getSelectedBlocks'](),_0xaee2bc,_0x335edf['model']['schema']);_0x335edf['model']['change'](()=>{for(const _0x5c8320 of _0x597559)_0x29c6c7['markBlockFormat'](_0x5c8320,{'commandName':_0x17a653,'commandParams':[{'forceValue':!_0x5ccb00['value']}],'formatGroupId':'blockName'},Ee(_0x5c8320));});};}function _0x5cc702(_0x1031d8){return()=>{const _0x2c3d1d=function(_0x7365e4){let _0x237ebf=Array['from'](_0x7365e4);const _0x27d02d=_0x237ebf['findIndex'](_0x222b9a=>'listItem'!=_0x222b9a['name']);return _0x27d02d>-0x1&&(_0x237ebf=_0x237ebf['slice'](0x0,_0x27d02d)),_0x237ebf;}(_0x335edf['model']['document']['selection']['getSelectedBlocks']()),_0x5a44a0=_0x335edf['model']['createRange'](_0x335edf['model']['createPositionAt'](_0x2c3d1d[0x0],'before'),_0x335edf['model']['createPositionAt'](_0x2c3d1d[_0x2c3d1d['length']-0x1],'end'));_0x335edf['model']['change'](()=>{_0x29c6c7['markBlockFormat'](_0x5a44a0,{'commandName':_0x1031d8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1b941b){const _0x1b39dd=new Set();for(const _0x137383 of _0x1b941b){let _0x390fb0=_0x137383['nextSibling'];for(;_0x390fb0&&_0x390fb0['getAttribute']('listIndent')>_0x137383['getAttribute']('listIndent');)_0x1b39dd['add'](_0x390fb0),_0x390fb0=_0x390fb0['nextSibling'];}return Array['from'](_0x1b39dd);}(_0x2c3d1d));});};}_0x29c6c7['enableCommand']('numberedList',_0x4cb69f('numberedList')),_0x29c6c7['enableCommand']('bulletedList',_0x4cb69f('bulletedList')),_0x2ea3a5&&_0x29c6c7['enableCommand']('todoList',_0x4cb69f('todoList')),_0x29c6c7['enableCommand']('indentList',_0x5cc702('indentList')),_0x29c6c7['enableCommand']('outdentList',_0x5cc702('outdentList')),_0x2ea3a5&&_0x29c6c7['enableCommand']('checkTodoList',()=>{const _0x4e280b=_0x335edf['commands']['get']('checkTodoList'),_0x25fac0=Array['from'](_0x4e280b['_selectedElements']);_0x25fac0['filter'](_0x57ab29=>_0x57ab29['getAttribute']('todoListChecked')!=_0x4e280b['value']),_0x335edf['model']['change'](()=>{for(const _0x2579fe of _0x25fac0)_0x29c6c7['markBlockFormat'](_0x2579fe,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4e280b['value']}]});});}),_0x29c6c7['descriptionFactory']['registerElementLabel']('listItem',_0x37d05d=>c(_0xb28ef6,'ELEMENT_LIST_ITEM',_0x37d05d)),_0x29c6c7['descriptionFactory']['registerDescriptionCallback'](_0x567e23=>{if('formatBlock'!=_0x567e23['type']&&'formatInline'!=_0x567e23['type'])return;const {data:_0x2b1560}=_0x567e23;if(_0x2b1560){if('numberedList'==_0x2b1560['commandName']||'bulletedList'==_0x2b1560['commandName']||'todoList'==_0x2b1560['commandName'])switch(_0x2b1560['commandName']['replace']('List','')){case'bulleted':return _0x45656f(c(_0xb28ef6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45656f(c(_0xb28ef6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45656f(c(_0xb28ef6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2b1560['commandName'])return{'type':'format','content':c(_0xb28ef6,'*Indent:*\x20%0',c(_0xb28ef6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2b1560['commandName'])return{'type':'format','content':c(_0xb28ef6,'*Outdent:*\x20%0',c(_0xb28ef6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2b1560['commandName'])return _0x2b1560['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xb28ef6,'*Check\x20item*')}:{'type':'format','content':c(_0xb28ef6,'*Uncheck\x20item*')};}function _0x45656f(_0x46902c){return{'type':'format','content':c(_0xb28ef6,'*Change\x20to:*\x20%0',_0x46902c)};}});}}function Le(_0x399faf){const _0x463caa=_0x399faf['getAttribute']('listIndent');if(0x0==_0x463caa)return _0x399faf;let _0x301618=_0x399faf;for(;_0x399faf['previousSibling']&&_0x399faf['previousSibling']['is']('element','listItem');){const _0x56ae73=_0x399faf['previousSibling']['getAttribute']('listIndent');if(_0x56ae73==_0x463caa)_0x301618=_0x399faf['previousSibling'];else{if(_0x56ae73<_0x463caa)break;}_0x399faf=_0x399faf['previousSibling'];}return _0x301618;}function Ee(_0x1f2651){const _0x1d0ca1=[];if(_0x1f2651['is']('element','listItem')&&_0x1f2651['getAttribute']('listIndent')>0x0){let _0x5eda9a=_0x1f2651['nextSibling'];for(;_0x5eda9a&&'listItem'==_0x5eda9a['name']&&_0x5eda9a['getAttribute']('listIndent')==_0x1f2651['getAttribute']('listIndent');)_0x1d0ca1['push'](_0x5eda9a),_0x5eda9a=_0x5eda9a['nextSibling'];}return _0x1d0ca1;}class Q extends _0x1cfb98{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2fa73b=this['editor']['config']['get']('list.properties'),_0x547296=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fa73b['styles']&&_0x547296['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2fa73b['reversed']&&_0x547296['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2fa73b['startIndex']&&_0x547296['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x547296['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3ac894,_0x4dfeb1={}){const _0x102e2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x207910=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x102e2b['markMultiRangeBlockFormat'](_0x207910,{'commandName':'listStyle','commandParams':[{'type':_0x4dfeb1['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x261c63,_0x231415={}){const _0x49cc52=this['editor']['plugins']['get']('TrackChangesEditing'),_0x251799=this['_getSuggestionBlocks'](_0x4c6a04=>_0x4c6a04['is']('element','listItem')&&'numbered'===_0x4c6a04['getAttribute']('listType'));if(_0x251799['length']<0x1)return;const _0x219ba2=_0x251799['map'](_0x595d60=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x595d60,'before'),this['editor']['model']['createPositionAt'](_0x595d60,0x0)));this['editor']['model']['change'](()=>{_0x49cc52['markMultiRangeBlockFormat'](_0x219ba2,{'commandName':'listReversed','commandParams':[{'reversed':_0x231415['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2b8ec6,_0x355366={}){const _0x590caa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36b8ad=this['_getSuggestionBlocks'](_0xe82151=>_0xe82151['is']('element','listItem')&&'numbered'===_0xe82151['getAttribute']('listType'));if(_0x36b8ad['length']<0x1)return;const _0x4f6002=_0x36b8ad['map'](_0x1b64f1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b64f1,'before'),this['editor']['model']['createPositionAt'](_0x1b64f1,0x0)));this['editor']['model']['change'](()=>{_0x590caa['markMultiRangeBlockFormat'](_0x4f6002,{'commandName':'listStart','commandParams':[{'startIndex':_0x355366['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x15d366){if('formatBlock'!=_0x15d366['type']&&'formatInline'!=_0x15d366['type'])return;const _0x212885=this['editor']['locale'],{data:_0x5acd12}=_0x15d366;if(!_0x5acd12)return;let _0x491d34,_0x53a30a;switch(_0x5acd12['commandName']){case'listStyle':_0x491d34='*Change\x20to:*\x20%0',_0x53a30a={'type':'format','content':c(_0x212885,_0x491d34,c(_0x212885,this['_getTranslationKeyForListStyle'](_0x5acd12['commandParams'][0x0]['type'])))};break;case'listReversed':_0x491d34=_0x5acd12['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x53a30a={'type':'format','content':c(_0x212885,_0x491d34)};break;case'listStart':_0x491d34='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x53a30a={'type':'format','content':c(_0x212885,_0x491d34,_0x5acd12['commandParams'][0x0]['startIndex'])};}return _0x53a30a;}['_getSuggestionBlocksForListStyle'](){const _0x355523=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a16cd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3a16cd[0x0]?.['is']('element','listItem')&&_0x3a16cd['unshift'](..._0x355523['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3a16cd[_0x3a16cd['length']-0x1]?.['is']('element','listItem')&&_0x3a16cd['push'](..._0x355523['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3a16cd=[...new Set(_0x3a16cd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3a16cd=_0x3a16cd['filter'](_0x2b58ba=>_0x2b58ba['is']('element','listItem'))),_0x3a16cd;}['_getSuggestionBlocks'](_0x135793){const _0x5c6751=this['editor']['plugins']['get']('LegacyListUtils');let _0x348222=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x135793)['map'](_0x7857bf=>{const _0x5dfc89=this['editor']['model']['createPositionAt'](_0x7857bf,0x0);return[..._0x5c6751['getSiblingNodes'](_0x5dfc89,'backward'),..._0x5c6751['getSiblingNodes'](_0x5dfc89,'forward')];})['flat']();return _0x348222=[...new Set(_0x348222)],_0x348222;}['_getTranslationKeyForListStyle'](_0x4f13c7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4f13c7)||'default')['toUpperCase']()+'_LIST_'+_0x4f13c7['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x1cfb98{['afterInit'](){const _0x267c3e=this['editor'];if(!_0x267c3e['plugins']['has']('MediaEmbedEditing'))return;const _0x27bf27=_0x267c3e['plugins']['get']('TrackChangesEditing'),_0x90a205=_0x267c3e['locale'];_0x27bf27['enableCommand']('mediaEmbed'),_0x27bf27['descriptionFactory']['registerElementLabel']('media',_0x183177=>c(_0x90a205,'ELEMENT_MEDIA',_0x183177)),_0x267c3e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x19de40,{writer:_0x17a28d,options:_0x1dcb9d})=>{if(_0x1dcb9d['showSuggestionHighlights'])return _0x17a28d['createEmptyElement']('div');},'converterPriority':'high'}),_0x267c3e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2a967f,_0x3b9920,_0x176a98)=>{_0x176a98['options']['showSuggestionHighlights']&&_0x2a967f['stop']();},{'priority':'high'});}}class pt extends _0x1cfb98{['afterInit'](){const _0x4cb56d=this['editor'];_0x4cb56d['plugins']['has']('MentionEditing')&&_0x4cb56d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x1cfb98{['afterInit'](){const _0x2172bc=this['editor'];if(!_0x2172bc['plugins']['has']('MergeFieldsEditing'))return;const _0x2c84d4=_0x2172bc['plugins']['get']('TrackChangesEditing'),_0x35c9a8=_0x2172bc['locale'];_0x2c84d4['enableCommand']('insertMergeField'),_0x2c84d4['enableCommand']('insertMergeFieldBlock'),_0x2c84d4['enableCommand']('insertMergeFieldImage'),_0x2c84d4['descriptionFactory']['registerElementLabel']('mergeField',_0x2be738=>c(_0x35c9a8,'ELEMENT_MERGE_FIELD',_0x2be738)),_0x2c84d4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4a8ead=>c(_0x35c9a8,'ELEMENT_MERGE_FIELD',_0x4a8ead)),_0x2c84d4['descriptionFactory']['registerDescriptionCallback'](_0x4db01e=>{if('insertion'!=_0x4db01e['type']&&'deletion'!=_0x4db01e['type'])return;const _0x5cc181=_0x4db01e['getContainedElement']();if(null==_0x5cc181)return;const _0x342d88=_0x2172bc['plugins']['get']('MergeFieldsEditing');let _0x5df549;switch(_0x342d88['getMergeFieldType'](_0x5cc181)){case null:return;case'image':{const _0x36997a=_0x342d88['unwrapAffixes'](_0x5cc181['getAttribute']('src'));_0x5df549=_0x342d88['getLabel'](_0x36997a)||_0x36997a;break;}default:{const _0x6339e4=_0x5cc181['getAttribute']('id');_0x5df549=_0x342d88['getLabel'](_0x6339e4)||_0x6339e4;break;}}return'insertion'==_0x4db01e['type']?{'type':'insertion','content':c(_0x35c9a8,'*Insert:*\x20%0','\x22'+_0x5df549+'\x22\x20'+c(_0x35c9a8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x35c9a8,'*Remove:*\x20%0','\x22'+_0x5df549+'\x22\x20'+c(_0x35c9a8,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x1cfb98{['afterInit'](){const _0x2c9b7a=this['editor'],_0x22f5f8=_0x2c9b7a['plugins']['get']('TrackChangesEditing');_0x2c9b7a['plugins']['has']('MultiLevelList')&&(_0x22f5f8['enableDefaultAttributesIntegration']('multiLevelList'),_0x22f5f8['registerBlockAttribute']('listMarkerStyle'),_0x22f5f8['descriptionFactory']['registerDescriptionCallback'](_0x2cab67=>this['handleDescriptions'](_0x2cab67)));}['handleDescriptions'](_0x124eb6){const _0x142631=this['editor']['locale'],{data:_0x4a1631}=_0x124eb6,_0x28c5b3={'type':'format','content':''};if(_0x4a1631&&'listMarkerStyle'==_0x4a1631['key']){if(!_0x4a1631['oldValue'])return{'type':'format','content':c(_0x142631,'*Set\x20format:*\x20%0',c(_0x142631,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4a1631['newValue']+')'};if(!_0x4a1631['newValue']){let _0x30e4d1=_0x124eb6['head'];for(;_0x30e4d1;){if(_0x30e4d1['data']&&'listType'==_0x30e4d1['data']['key']&&_0x30e4d1['data']['newValue'])return _0x28c5b3;_0x30e4d1=_0x30e4d1['next'];}return{'type':'format','content':c(_0x142631,'*Remove\x20format:*\x20%0',c(_0x142631,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4a1631['oldValue']+')'};}}}}class bt extends _0x1cfb98{['afterInit'](){const _0x576fee=this['editor'];if(!_0x576fee['plugins']['has']('PageBreakEditing'))return;_0x576fee['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x341f83=_0x576fee['plugins']['get']('TrackChangesEditing'),_0x31faf9=_0x576fee['locale'];_0x341f83['descriptionFactory']['registerElementLabel']('pageBreak',_0x557bd5=>c(_0x31faf9,'ELEMENT_PAGE_BREAK',_0x557bd5));}}class yt extends _0x1cfb98{['afterInit'](){const _0x6472ea=this['editor'];if(!_0x6472ea['plugins']['has']('Paragraph'))return;const _0x1e997c=_0x6472ea['locale'],_0x84a133=_0x6472ea['plugins']['get']('TrackChangesEditing');_0x84a133['descriptionFactory']['registerElementLabel']('paragraph',_0x51bb51=>c(_0x1e997c,'ELEMENT_PARAGRAPH',_0x51bb51)),_0x84a133['enableDefaultAttributesIntegration']('paragraph'),_0x84a133['enableCommand']('insertParagraph'),_0x6472ea['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x6472ea),{'priority':'highest'}),_0x6472ea['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x403df5,_0x2ac008,_0x2ea299)=>{_0x2ea299['options']['showSuggestionHighlights']&&nr(_0x6472ea,{'showActiveMarker':!0x1})(_0x403df5,_0x2ac008,_0x2ea299);},{'priority':'highest'});const _0x2bc7c1=_0x84a133['descriptionFactory'];_0x2bc7c1['registerDescriptionCallback'](_0x3dd871=>{if('insertion'!==_0x3dd871['type'])return;const {start:_0x37f35b,end:_0x5e7e39}=_0x3dd871['getFirstRange']();if(!_0x37f35b['isTouching'](_0x5e7e39)||!_0x37f35b['nodeAfter'])return;const _0x2561c3=_0x6472ea['model']['schema'],_0x35f5c6=_0x37f35b['nodeAfter'];return _0x2561c3['isBlock'](_0x35f5c6)&&!_0x2561c3['isLimit'](_0x35f5c6)&&_0x2561c3['checkChild'](_0x35f5c6,'$text')?{'type':'insertion','content':c(_0x1e997c,'*Insert:*\x20%0',_0x2bc7c1['getItemLabel'](_0x35f5c6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x328455=this['editor'],_0x429711=_0x328455['locale'];_0x328455['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x192136=>{if('formatBlock'!=_0x192136['type'])return;const {data:_0x467c1e}=_0x192136;return _0x467c1e&&'paragraph'==_0x467c1e['commandName']?{'type':'format','content':c(_0x429711,'*Change\x20to:*\x20%0',c(_0x429711,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x25ba28,{showActiveMarker:_0x700ccf=!0x0}={}){return(_0x263e03,_0x18d68b,_0x58f9ee)=>{const _0x1b702d=_0x25ba28['plugins']['get']('TrackChangesEditing'),_0x32a3da=_0x18d68b['markerRange']['start'],_0x21e756=_0x18d68b['markerRange']['end'],_0x14a849=_0x25ba28['model']['schema'];if(!_0x32a3da['isTouching'](_0x21e756)||!_0x32a3da['nodeAfter'])return;const _0x182a78=_0x32a3da['nodeAfter'];if(_0x14a849['isBlock'](_0x182a78)&&!_0x14a849['isLimit'](_0x182a78)&&_0x14a849['checkChild'](_0x182a78,'$text')){if(!_0x58f9ee['consumable']['consume'](_0x18d68b['markerRange'],_0x263e03['name']))return;const {authorId:_0x23405a}=_0x1b702d['_splitMarkerName'](_0x18d68b['markerName']),_0x341927=_0x58f9ee['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x23405a}),_0x5df7f2=_0x58f9ee['mapper']['toViewPosition'](_0x21e756);_0x700ccf&&_0x1b702d['activeMarkers']['includes'](_0x18d68b['markerName'])&&_0x58f9ee['writer']['addClass']('ck-suggestion-marker--active',_0x341927),_0x58f9ee['writer']['insert'](_0x5df7f2,_0x341927),_0x58f9ee['mapper']['bindElementToMarker'](_0x341927,_0x18d68b['markerName']);}};}class jt extends _0x1cfb98{['afterInit'](){const _0x2e7497=this['editor'];_0x2e7497['commands']['get']('replaceSource')&&_0x2e7497['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x1cfb98{['afterInit'](){const _0x48f461=this['editor'];if(!_0x48f461['plugins']['has']('RemoveFormatEditing'))return;_0x48f461['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a3a84=this['editor'];_0x5a3a84['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3843bf=>{if('formatBlock'!=_0x3843bf['type']&&'formatInline'!=_0x3843bf['type'])return;const {data:_0xa27c26}=_0x3843bf;return _0xa27c26&&'removeFormat'==_0xa27c26['commandName']?{'type':'format','content':c(_0x5a3a84['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x1cfb98{['afterInit'](){const _0x585c02=this['editor'];if(!_0x585c02['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2ff14f=_0x585c02['plugins']['get']('TrackChangesEditing');_0x2ff14f['enableCommand']('goToPreviousRestrictedEditingException'),_0x2ff14f['enableCommand']('goToNextRestrictedEditingException');const _0xe7d532=_0x585c02['plugins']['get']('RestrictedEditingModeEditing');_0xe7d532['enableCommand']('trackChanges'),_0xe7d532['enableCommand']('acceptSuggestion'),_0xe7d532['enableCommand']('discardSuggestion'),_0xe7d532['enableCommand']('acceptAllSuggestions'),_0xe7d532['enableCommand']('discardAllSuggestions'),_0xe7d532['enableCommand']('acceptSelectedSuggestions'),_0xe7d532['enableCommand']('discardSelectedSuggestions');}}class It extends _0x1cfb98{['afterInit'](){const _0x8723fd=this['editor'];if(!_0x8723fd['plugins']['has']('ShiftEnter'))return;const _0x1a85b9=_0x8723fd['plugins']['get']('TrackChangesEditing');_0x1a85b9['enableCommand']('shiftEnter'),_0x8723fd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x8723fd),{'priority':'high'}),_0x8723fd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x8723fd),{'priority':'high'}),_0x8723fd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x26ec7a,_0x4a73f3,_0x144ecc)=>{_0x144ecc['options']['showSuggestionHighlights']&&je(_0x8723fd,{'showActiveMarker':!0x1})(_0x26ec7a,_0x4a73f3,_0x144ecc);}),_0x1a85b9['descriptionFactory']['registerElementLabel']('softBreak',_0x161cbf=>c(_0x8723fd['locale'],'ELEMENT_LINE_BREAK',_0x161cbf));}}function je(_0x102b4f,{showActiveMarker:_0x471f22=!0x0}={}){return(_0xabfce3,_0xdeca30,_0x4d6f2a)=>{const _0x24f7ac=_0x102b4f['plugins']['get']('TrackChangesEditing');if(!_0x4d6f2a['consumable']['test'](_0xdeca30['markerRange'],_0xabfce3['name']))return;const _0x57fd24=_0x102b4f['model'];for(const _0x614e7 of _0xdeca30['markerRange']['getItems']()){if(!_0x614e7['is']('element','softBreak'))continue;const _0x124786='deletion'==_0xdeca30['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xa97852}=_0x24f7ac['_splitMarkerName'](_0xdeca30['markerName']),_0x242b22=_0x4d6f2a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x124786,'data-author-id':_0xa97852}),_0x6e051d=_0x4d6f2a['mapper']['toViewPosition'](_0x57fd24['createPositionBefore'](_0x614e7));_0x471f22&&_0x24f7ac['activeMarkers']['includes'](_0xdeca30['markerName'])&&_0x4d6f2a['writer']['addClass']('ck-suggestion-marker--active',_0x242b22),_0x4d6f2a['writer']['insert'](_0x6e051d,_0x242b22),_0x4d6f2a['mapper']['bindElementToMarker'](_0x242b22,_0xdeca30['markerName']);}};}class _t extends _0x1cfb98{['afterInit'](){const _0x4401a2=this['editor'],_0x364cb9=_0x4401a2['model'],_0x80fc08=_0x4401a2['locale'];if(!_0x4401a2['plugins']['has']('StandardEditingModeEditing'))return;const _0x5bfe3b=_0x4401a2['plugins']['get']('TrackChangesEditing'),_0x43a744='restrictedEditingException',_0x3d6087=_0x4401a2['commands']['get'](_0x43a744);_0x5bfe3b['enableCommand'](_0x43a744,(_0x3a63be,_0x419253={})=>{const _0x5a926=_0x364cb9['document']['selection'];if(_0x5a926['isCollapsed'])return void _0x3a63be(_0x419253);const _0x153ca8=void 0x0!==_0x419253['forceValue']?_0x419253['forceValue']:!_0x3d6087['value'];_0x364cb9['change'](()=>{const _0x11ad64=Array['from'](_0x5a926['getRanges']());for(const _0x1b811f of _0x11ad64){const _0x42fa0c=_0x153ca8?[_0x1b811f]:io(_0x43a744,_0x1b811f,_0x364cb9);for(const _0x369e14 of _0x42fa0c)_0x5bfe3b['markInlineFormat'](_0x369e14,{'commandName':_0x43a744,'commandParams':[{'forceValue':_0x153ca8}]});}});}),_0x5bfe3b['descriptionFactory']['registerDescriptionCallback'](_0x428f85=>{if('formatBlock'!=_0x428f85['type']&&'formatInline'!=_0x428f85['type'])return;const {data:_0x2a60a2}=_0x428f85;return _0x2a60a2&&_0x2a60a2['commandName']==_0x43a744?_0x2a60a2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x80fc08,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x80fc08,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x1cfb98{['afterInit'](){const _0xa880aa=this['editor'];if(!_0xa880aa['plugins']['has']('Style')||!_0xa880aa['plugins']['has']('DataSchema'))return;const _0x5e259c=_0xa880aa['plugins']['get']('TrackChangesEditing'),_0x543723=_0xa880aa['locale'],_0x569e0e=_0xa880aa['config']['get']('style')||{},_0xba3be7=_0xa880aa['plugins']['get']('GeneralHtmlSupport'),_0x4f7014=_0xa880aa['plugins']['get']('StyleUtils')['normalizeConfig'](_0xa880aa['plugins']['get']('DataSchema'),_0x569e0e['definitions']);_0x5e259c['enableDefaultAttributesIntegration']('style');const _0x5ee79f=new Set();for(const _0x3416b0 of _0x4f7014['block']){const _0x51943d=_0xba3be7['getGhsAttributeNameForElement'](_0x3416b0['element']);_0x5ee79f['add'](_0x51943d);}const _0x22a2ed=new Set();for(const _0x4f8589 of _0x4f7014['inline']){const _0xcad373=_0xba3be7['getGhsAttributeNameForElement'](_0x4f8589['element']);_0x22a2ed['add'](_0xcad373);for(const _0x49a23b of _0x4f8589['ghsAttributes'])_0x22a2ed['add'](_0x49a23b);}for(const _0x4a4eb1 of _0x5ee79f)_0x5e259c['registerBlockAttribute'](_0x4a4eb1),_0x5e259c['descriptionFactory']['registerAttributeLabel'](_0x4a4eb1,c(_0x543723,'FORMAT_STYLE'));for(const _0x11974e of _0x22a2ed)_0x5e259c['registerInlineAttribute'](_0x11974e),_0x5e259c['descriptionFactory']['registerAttributeLabel'](_0x11974e,c(_0x543723,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x103860=this['editor'],_0x2b066c=_0x103860['locale'];_0x103860['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfeaf26=>{if('formatBlock'!=_0xfeaf26['type']&&'formatInline'!=_0xfeaf26['type'])return;const {data:_0x41d699}=_0xfeaf26;return _0x41d699&&'style'===_0x41d699['commandName']?_0x41d699['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2b066c,'*Set\x20format:*\x20%0',_0x41d699['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x2b066c,'*Remove\x20format:*\x20%0',_0x41d699['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x1cfb98{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x30228e){super(_0x30228e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1cfb02=this['editor'],_0x523ffd=_0x1cfb02['model']['document']['selection'];if(!_0x1cfb02['plugins']['has']('TableEditing'))return;const _0x34c931=_0x1cfb02['locale'],_0xff7182=_0x1cfb02['plugins']['get']('TrackChangesEditing'),_0x548bb0=_0x1cfb02['plugins']['get']('TableUtils');_0xff7182['descriptionFactory']['registerElementLabel']('table',_0x450fb0=>c(_0x34c931,'ELEMENT_TABLE',_0x450fb0)),this['_setupColumnsRowsFixing'](),_0xff7182['enableCommand']('insertTable'),_0xff7182['enableCommand']('selectTableRow'),_0xff7182['enableCommand']('selectTableColumn');for(const _0x4e9c81 of['insertTableRowAbove','insertTableRowBelow']){const _0x2da4f5=_0x1cfb02['commands']['get'](_0x4e9c81);_0xff7182['enableCommand'](_0x4e9c81,_0x590c85=>{_0x1cfb02['model']['change'](_0x22ba0e=>{_0x590c85();const _0x4832a0='above'===_0x2da4f5['order'],_0x5b527a=_0x548bb0['getSelectionAffectedTableCells'](_0x523ffd),_0x2773b0=_0x548bb0['getRowIndexes'](_0x5b527a),_0x29225b=_0x4832a0?_0x2773b0['first']-0x1:_0x2773b0['last']+0x1,_0x2e1f78=_0x5b527a[0x0]['findAncestor']('table'),_0x49fde5=_0x548bb0['createTableWalker'](_0x2e1f78,{'startRow':_0x29225b,'endRow':_0x29225b}),_0x5589ee=Array['from'](_0x49fde5)['map'](_0x1790fc=>_0x22ba0e['createRangeOn'](_0x1790fc['cell']));_0xff7182['markMultiRangeInsertion'](_0x5589ee,'tableRow');});});}for(const _0x2178cf of['insertTableColumnLeft','insertTableColumnRight']){const _0xc25705=_0x1cfb02['commands']['get'](_0x2178cf);_0xff7182['enableCommand'](_0x2178cf,_0x57db2f=>{_0x1cfb02['model']['change'](_0x4d14de=>{_0x57db2f();const _0x5aa982='left'===_0xc25705['order'],_0x2e89e8=_0x548bb0['getSelectionAffectedTableCells'](_0x523ffd),_0x578b3b=_0x548bb0['getColumnIndexes'](_0x2e89e8),_0x4ad374=_0x5aa982?_0x578b3b['first']-0x1:_0x578b3b['last']+0x1,_0x3a1ce4=_0x2e89e8[0x0]['findAncestor']('table'),_0x1f7f4f=_0x548bb0['createTableWalker'](_0x3a1ce4,{'startRow':0x0,'column':_0x4ad374,'includeAllSlots':!0x1}),_0x531588=Array['from'](_0x1f7f4f)['map'](_0x2a862a=>_0x4d14de['createRangeOn'](_0x2a862a['cell']));_0xff7182['markMultiRangeInsertion'](_0x531588,'tableColumn');});});}for(const _0x418478 of['removeTableRow','removeTableColumn']){const _0x440d75=_0x418478['substr'](0xb),_0x4b38b8=_0x440d75['toLowerCase'](),_0x197f8a=_0x4b38b8['substr'](0x0,0x3)+'span',_0x271c7e='table'+_0x440d75,_0x55412c='min'+_0x440d75,_0x557bf7='max'+_0x440d75;_0xff7182['enableCommand'](_0x418478,()=>{_0x1cfb02['model']['change'](_0x2bf3d9=>{const _0x595023=_0x548bb0['getSelectionAffectedTableCells'](_0x523ffd),_0x22a027=_0x595023[0x0]['findAncestor']('table');let _0x48606f;if('removeTableRow'==_0x418478){const _0x122b54=_0x548bb0['getRowIndexes'](_0x595023);_0x48606f={'startRow':_0x122b54['first'],'endRow':_0x122b54['last'],'includeAllSlots':!0x0};}else{const _0x44e085=_0x548bb0['getColumnIndexes'](_0x595023);_0x48606f={'startColumn':_0x44e085['first'],'endColumn':_0x44e085['last'],'includeAllSlots':!0x0};}const _0x5cfcc1=_0x548bb0['createTableWalker'](_0x22a027,_0x48606f),_0x2bffbc=Array['from'](_0x5cfcc1)['map'](({cell:_0xfd4cb})=>_0xfd4cb),_0x2d0de3=Ne(_0x2bffbc['filter'](_0x192fd7=>_0x192fd7['hasAttribute'](_0x197f8a))),_0x364c37=Ne(_0x2bffbc['filter'](_0x159a3c=>!_0x159a3c['hasAttribute'](_0x197f8a)))['map'](_0x3c5eaf=>_0x2bf3d9['createRangeOn'](_0x3c5eaf)),_0x1f748a=_0xff7182['markMultiRangeDeletion'](_0x364c37,_0x271c7e);if(_0x1f748a&&('tableRow'==_0x1f748a['subType']||'tableColumn'==_0x1f748a['subType'])){const _0x33253d=this['_getSuggestionCoords'](_0x1f748a);for(const _0x47e4a9 of _0x2d0de3){const _0x2f32c3=_0x2bf3d9['createRangeOn'](_0x47e4a9),_0x51bdc2=_0x548bb0['getCellLocation'](_0x47e4a9),_0x351f1e=_0x47e4a9['getAttribute'](_0x197f8a)-0x1,_0xd1bb5f=_0x33253d[_0x55412c],_0x286ca4=_0x33253d[_0x557bf7];_0xd1bb5f<=_0x51bdc2[_0x4b38b8]&&_0x51bdc2[_0x4b38b8]+_0x351f1e<=_0x286ca4&&_0x1f748a['addRange'](_0x2f32c3);}}});});}function _0x8b2abf(_0x112947){const _0xf6d606=Array['from'](_0x523ffd['getRanges']())['map'](_0xb175fa=>_0x4d622b['fromRange'](_0xb175fa));_0x1cfb02['model']['change'](_0x3a9d5c=>{const _0x52ae80=_0x3a9d5c['batch'];_0x112947=_0x112947['filter'](_0x250242=>'$graveyard'!=_0x250242['root']['rootName']),_0x3a9d5c['setSelection'](_0x112947),_0x1cfb02['commands']['get']('removeTableRow')['refresh'](),_0x1cfb02['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1cfb02['model']['enqueueChange'](()=>{_0x1cfb02['model']['enqueueChange'](_0x52ae80,_0x508788=>{const _0x8298d0=_0xf6d606['filter'](_0x5a21b7=>'$graveyard'!=_0x5a21b7['root']['rootName']);_0x8298d0['length']>0x0&&_0x508788['setSelection'](_0x8298d0);for(const _0x4befaf of _0xf6d606)_0x4befaf['detach']();});});});}function _0x4b19ef(_0x3672e7){_0x1cfb02['model']['change'](_0x5b595d=>{const _0xf0e2ed=Array['from'](_0x523ffd['getRanges']())['map'](_0x4d7f0f=>_0x4d622b['fromRange'](_0x4d7f0f)),_0x2fa75d=[];for(const _0xdebf41 of _0x3672e7)for(const _0x546eb8 of _0xdebf41['getItems']({'shallow':!0x0}))_0x2fa75d['push'](_0x546eb8);for(const _0x50a8f8 of _0x2fa75d)'$graveyard'!=_0x50a8f8['root']['rootName']&&(_0x5b595d['setSelection'](_0x5b595d['createPositionAt'](_0x50a8f8,0x0)),_0x1cfb02['commands']['get']('removeTableColumn')['refresh'](),_0x1cfb02['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x526ff4=_0xf0e2ed['filter'](_0x11eda2=>'$graveyard'!=_0x11eda2['root']['rootName']);_0x526ff4['length']>0x0&&_0x5b595d['setSelection'](_0x526ff4);for(const _0x5f576f of _0xf0e2ed)_0x5f576f['detach']();});}function _0x274fac(_0x3e826d,_0x281cfb){return _0x281cfb['every'](_0x1e59be=>_0x3e826d['some'](_0x3f6df1=>_0x3f6df1['end']['isEqual'](_0x1e59be['start'])||_0x1e59be['end']['isEqual'](_0x3f6df1['start'])));}function _0x4fdfc3(_0x3e596a,_0x384557){return!_0x3e596a['some'](_0x38eeb5=>_0x384557['some'](_0x499acd=>_0x38eeb5['isIntersecting'](_0x499acd)))&&_0x3e596a['some'](_0x59055e=>_0x384557['some'](_0x107c14=>_0x59055e['end']['isTouching'](_0x107c14['start'])));}_0x1cfb02['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3bcd39,_0x4df066,_0x488894)=>{if(!_0x488894['options']['showSuggestionHighlights'])return;const _0x59c157=_0x4df066['item'];if(!_0x59c157)return;const _0x32869e=_0x488894['mapper']['toViewElement'](_0x59c157);function _0xb13790(_0x249cc4){return Array['isArray'](_0x249cc4)?_0x249cc4:[_0x249cc4];}_0x32869e&&'tableCell'===_0x59c157['name']&&_0x2ccf45(_0x32869e,_0x488894['writer'],(_0x327c5c,_0x262d01,_0x3becb2)=>_0x3becb2['addClass'](_0xb13790(_0x262d01['classes']),_0x327c5c),(_0x364801,_0x1d20eb,_0xec2bbb)=>_0xec2bbb['removeClass'](_0xb13790(_0x1d20eb['classes']),_0x364801));},{'priority':'highest'}),_0xff7182['descriptionFactory']['registerDescriptionCallback'](_0x255328=>{if('insertion'!=_0x255328['type']&&'deletion'!=_0x255328['type'])return;const _0x10d3b9=_0x255328['getContainedElement']();if(null!=_0x10d3b9&&_0x10d3b9['is']('element','table')){if('insertion'==_0x255328['type']){const _0x5a0207=_0x255328['getItems']()['filter'](_0x2bd62d=>_0x2bd62d['is']('$textProxy'))['map'](_0x3d8738=>_0x3d8738['data']);if(_0x5a0207['length'])return{'type':'insertion','content':c(_0x34c931,'*Insert:*\x20%0',c(_0x34c931,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a0207['join']('\x20')+'\x22'))};}if('deletion'==_0x255328['type']){const _0x4ae1c5=_0x255328['getItems']()['filter'](_0x43645d=>_0x43645d['is']('$textProxy'))['map'](_0x2e2083=>_0x2e2083['data']);if(_0x4ae1c5['length'])return{'type':'deletion','content':c(_0x34c931,'*Remove:*\x20%0',c(_0x34c931,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ae1c5['join']('\x20')+'\x22'))};}}}),_0xff7182['descriptionFactory']['registerDescriptionCallback'](_0x249b37=>{if('tableRow'==_0x249b37['subType']){const _0x18c91d=_0x249b37['getItems']()['filter'](_0x1f52cd=>_0x1f52cd['is']('$textProxy'))['map'](_0x262e3c=>_0x262e3c['data']),_0x58651c=this['_getSuggestionCoords'](_0x249b37),_0x5e472b=_0x58651c['maxRow']-_0x58651c['minRow']+0x1;if('insertion'==_0x249b37['type'])return _0x18c91d['length']?{'type':'insertion','content':c(_0x34c931,'*Insert:*\x20%0',c(_0x34c931,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5e472b,'\x22'+_0x18c91d['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x34c931,'*Insert:*\x20%0',c(_0x34c931,'ELEMENT_TABLE_ROW',_0x5e472b))};if('deletion'==_0x249b37['type'])return _0x18c91d['length']?{'type':'deletion','content':c(_0x34c931,'*Remove:*\x20%0',c(_0x34c931,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5e472b,'\x22'+_0x18c91d['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x34c931,'*Remove:*\x20%0',c(_0x34c931,'ELEMENT_TABLE_ROW',_0x5e472b))};}if('tableColumn'==_0x249b37['subType']){const _0x90ffee=_0x249b37['getItems']()['filter'](_0x242cc5=>_0x242cc5['is']('$textProxy'))['map'](_0x5068bb=>_0x5068bb['data']),_0x7f6811=this['_getSuggestionCoords'](_0x249b37),_0x4158fb=_0x7f6811['maxColumn']-_0x7f6811['minColumn']+0x1;if('insertion'==_0x249b37['type'])return _0x90ffee['length']?{'type':'insertion','content':c(_0x34c931,'*Insert:*\x20%0',c(_0x34c931,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4158fb,'\x22'+_0x90ffee['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x34c931,'*Insert:*\x20%0',c(_0x34c931,'ELEMENT_TABLE_COLUMN',_0x4158fb))};if('deletion'==_0x249b37['type'])return _0x90ffee['length']?{'type':'deletion','content':c(_0x34c931,'*Remove:*\x20%0',c(_0x34c931,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4158fb,'\x22'+_0x90ffee['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x34c931,'*Remove:*\x20%0',c(_0x34c931,'ELEMENT_TABLE_COLUMN',_0x4158fb))};}}),_0xff7182['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x8b2abf),_0xff7182['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x8b2abf),_0xff7182['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4b19ef),_0xff7182['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4b19ef),_0xff7182['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x274fac),_0xff7182['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x274fac),_0xff7182['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4fdfc3),_0xff7182['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4fdfc3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x42623a=this['editor'],_0x32086a=_0x42623a['model']['document']['selection'];return(_0x2d38bd,_0x395097)=>{_0x42623a['model']['change'](_0x22d76a=>{const {commandName:_0x3cd39d,commandParams:_0xb12443}=_0x395097;let _0x2498e9=_0x2d38bd[0x0]['end']['nodeBefore'];_0xb12443&&_0xb12443[0x0]&&!0x1===_0xb12443[0x0]['forceValue']&&(_0x2498e9=_0x2d38bd[0x0]['start']['nodeAfter']);const _0x34d29d=_0x22d76a['createRangeIn'](_0x2498e9);if('$graveyard'==_0x34d29d['root']['rootName'])return;const _0x473c94=Array['from'](_0x32086a['getRanges']())['map'](_0x4a1e24=>_0x4d622b['fromRange'](_0x4a1e24));_0x22d76a['setSelection'](_0x34d29d),_0x42623a['commands']['get'](_0x3cd39d)['refresh'](),_0xb12443['push']({'forceDefaultExecution':!0x0}),_0x42623a['execute'](_0x3cd39d,..._0xb12443);const _0x4f019f=_0x473c94['filter'](_0x596d53=>'$graveyard'!=_0x596d53['root']['rootName']);_0x4f019f['length']>0x0&&_0x22d76a['setSelection'](_0x4f019f);for(const _0x2aa9dc of _0x473c94)_0x2aa9dc['detach']();});};}['_getCoordsForCells'](_0x5debbe){const _0x5f1758=this['editor']['plugins']['get']('TableUtils');let _0x1803f5=Number['MAX_SAFE_INTEGER'],_0xcd6a75=Number['MIN_SAFE_INTEGER'],_0x3c789d=Number['MAX_SAFE_INTEGER'],_0x57b579=Number['MIN_SAFE_INTEGER'];for(const _0xe45aad of _0x5debbe){if('$graveyard'==_0xe45aad['root']['rootName'])continue;const {row:_0x107376,column:_0x21d656}=_0x5f1758['getCellLocation'](_0xe45aad),_0x389cfd=_0xe45aad['hasAttribute']('rowspan')?_0xe45aad['getAttribute']('rowspan')-0x1:0x0,_0x343eee=_0xe45aad['hasAttribute']('colspan')?_0xe45aad['getAttribute']('colspan')-0x1:0x0;_0x1803f5=_0x107376<_0x1803f5?_0x107376:_0x1803f5,_0xcd6a75=_0x107376+_0x389cfd>_0xcd6a75?_0x107376+_0x389cfd:_0xcd6a75,_0x3c789d=_0x21d656<_0x3c789d?_0x21d656:_0x3c789d,_0x57b579=_0x21d656+_0x343eee>_0x57b579?_0x21d656+_0x343eee:_0x57b579;}return{'minRow':_0x1803f5,'maxRow':_0xcd6a75,'minColumn':_0x3c789d,'maxColumn':_0x57b579};}['_setupColumnsRowsFixing'](){const _0x4ead6e=this['editor'],_0x80c827=_0x4ead6e['plugins']['get']('TrackChangesEditing'),_0x3140d6=_0x4ead6e['plugins']['get']('TableUtils');_0x4ead6e['model']['document']['on']('change:data',()=>{const _0x1516f3=Array['from'](_0x4ead6e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5caa2d,data:_0x334369}of _0x1516f3){const {group:_0x2382f1,id:_0x528cec,subType:_0x30b57c}=_0x80c827['_splitMarkerName'](_0x5caa2d);if('suggestion'!=_0x2382f1)continue;if(null!=_0x334369['oldRange'])continue;const _0x41becf=_0x80c827['getSuggestion'](_0x528cec);this['_tablePostFixingSubtypes']['includes'](_0x30b57c)&&this['_tableSuggestions']['add'](_0x41becf);}},{'priority':'low'});const _0x326a47=(_0x31520,_0x152853)=>{let _0x9fcd=!0x1;const _0x9296ca=_0x152853['createRangeOn'](_0x31520),_0x363678=_0x31520['findAncestor']('table'),_0x3d90ca=_0x3140d6['getCellLocation'](_0x31520);for(const _0x1132ef of this['_tableSuggestions']){const _0x48579b=_0x1132ef['subType'],_0x485432=_0x48579b['startsWith']('tablePaste'),_0x38452e=_0x48579b['substr'](_0x485432?0xa:0x5),_0x3ab1d0=_0x38452e['toLowerCase'](),_0x315ed9=_0x3ab1d0['substr'](0x0,0x3)+'span',_0x29cc8a='min'+_0x38452e,_0x3e80bb='max'+_0x38452e;if(!_0x1132ef['isInContent'])continue;if(_0x363678!=_0x1132ef['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1132ef['isIntersectingWithRange'](_0x9296ca))continue;const _0x44191b=_0x31520['hasAttribute'](_0x315ed9)?_0x31520['getAttribute'](_0x315ed9)-0x1:0x0,_0x2c6e8a=this['_getSuggestionCoords'](_0x1132ef),_0x1246aa=_0x2c6e8a[_0x29cc8a],_0x393f70=_0x2c6e8a[_0x3e80bb];_0x1246aa<=_0x3d90ca[_0x3ab1d0]&&_0x3d90ca[_0x3ab1d0]+_0x44191b<=_0x393f70&&(_0x1132ef['addRange'](_0x9296ca),_0x9fcd=!0x0);}return _0x9fcd;};_0x4ead6e['model']['document']['registerPostFixer'](_0x4164c4=>{let _0x4db8cc=!0x1;for(const _0x31b5f5 of _0x4ead6e['model']['document']['differ']['getChanges']())if('insert'==_0x31b5f5['type']){if('tableRow'==_0x31b5f5['name']){for(const _0x3c092c of _0x31b5f5['position']['nodeAfter']['getChildren']())_0x4db8cc=_0x4db8cc||_0x326a47(_0x3c092c,_0x4164c4);}else'tableCell'==_0x31b5f5['name']&&(_0x4db8cc=_0x4db8cc||_0x326a47(_0x31b5f5['position']['nodeAfter'],_0x4164c4));}return _0x4db8cc;});}['_getSuggestionCoords'](_0x1f965b){return this['_getCoordsForCells'](_0x1f965b['getRanges']()['map'](_0x5cebd9=>_0x5cebd9['start']['nodeAfter']));}}function Ne(_0x379c87){return Array['from'](new Set(_0x379c87)['values']());}class Nt extends _0x1cfb98{static get['requires'](){return[Ct];}['afterInit'](){const _0x4bcfc8=this['editor'],_0x298e6b=_0x4bcfc8['model']['document']['selection'],_0x37926c=_0x4bcfc8['locale'];if(!_0x4bcfc8['plugins']['has']('TableEditing'))return;const _0x129671=_0x4bcfc8['plugins']['get']('TrackChangesEditing'),_0x40bc12=_0x4bcfc8['plugins']['get']('TableUtils'),_0xefb626=_0x4bcfc8['plugins']['get'](Ct);_0xefb626['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x129671['enableCommand']('mergeTableCells',()=>{const _0x1aa64e=_0x40bc12['getSelectionAffectedTableCells'](_0x4bcfc8['model']['document']['selection']);_0x4bcfc8['model']['change'](()=>{_0x129671['markMultiRangeBlockFormat'](_0x1aa64e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4bcfc8['commands']['get']('mergeTableCells')['on']('execute',(_0x2cdb96,_0x1c78e1)=>{_0x4bcfc8['commands']['get']('trackChanges')['value']&&(_0x1c78e1['length']>0x0&&_0x1c78e1[_0x1c78e1['length']-0x1]&&_0x1c78e1[_0x1c78e1['length']-0x1]['forceDefaultExecution']||_0x129671['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2cdb96['stop']());},{'priority':'highest'});for(const _0x438b99 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x420e49=_0x4bcfc8['commands']['get'](_0x438b99);_0x129671['enableCommand'](_0x438b99,()=>{const _0x3c7cb6=_0x4bcfc8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc05a23=>_0xc05a23['is']('element','tableCell')),_0x3ba0be=_0x420e49['value'];_0x4bcfc8['model']['change'](()=>{_0x129671['markMultiRangeBlockFormat']([_0x3c7cb6,_0x3ba0be],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x45a8f5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2febd1=_0x4bcfc8['commands']['get'](_0x45a8f5);_0x129671['enableCommand'](_0x45a8f5,()=>{const _0x524f23=_0x40bc12['getSelectionAffectedTableCells'](_0x4bcfc8['model']['document']['selection'])[0x0],_0x4104eb=_0x524f23['findAncestor']('table'),{column:_0x342954,row:_0x2fc9ea}=_0x40bc12['getCellLocation'](_0x524f23);let _0x953005=[];if('horizontally'==_0x2febd1['direction']){const _0x539b30=_0x40bc12['createTableWalker'](_0x4104eb,{'startRow':_0x2fc9ea,'endRow':_0x2fc9ea,'includeAllSlots':!0x0});_0x953005=Array['from'](_0x539b30)['map'](_0x5b2b7d=>_0x5b2b7d['cell']);}else{const _0x2d0310=_0x40bc12['createTableWalker'](_0x4104eb,{'column':_0x342954,'includeAllSlots':!0x0});_0x953005=Array['from'](_0x2d0310)['map'](_0x1bff16=>_0x1bff16['cell']);}_0x4bcfc8['model']['change'](_0x48e61e=>{_0x129671['markBlockFormat'](_0x48e61e['createRangeOn'](_0x524f23),{'commandName':_0x45a8f5,'commandParams':[]},_0x953005,_0x45a8f5);});});}_0x129671['descriptionFactory']['registerDescriptionCallback'](_0x39172c=>{if('formatBlock'!=_0x39172c['type']&&'formatInline'!=_0x39172c['type'])return;const {data:_0x5ef6c8}=_0x39172c;return _0x5ef6c8&&'mergeTableCells'==_0x5ef6c8['commandName']?{'type':'format','content':c(_0x37926c,'*Merge\x20cells*')}:void 0x0;}),_0x129671['descriptionFactory']['registerDescriptionCallback'](_0x171b9f=>{if('formatBlock'!=_0x171b9f['type']&&'formatInline'!=_0x171b9f['type'])return;const {data:_0x2274d2}=_0x171b9f;return _0x2274d2?'splitTableCellVertically'==_0x2274d2['commandName']?{'type':'format','content':c(_0x37926c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2274d2['commandName']?{'type':'format','content':c(_0x37926c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x57ddc7=_0xefb626['_acceptFormatSuggestionCallbackFactory']();for(const _0x32f2e7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x129671['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32f2e7,'accept',_0x57ddc7);for(const _0x4c3e69 of['splitTableCellVertically','splitTableCellHorizontally'])_0x129671['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4c3e69,'accept',_0x57ddc7);_0x129671['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x320850=>{_0x4bcfc8['model']['change'](_0x108a7e=>{const _0x4ffe3d=Array['from'](_0x298e6b['getRanges']())['map'](_0x131479=>_0x4d622b['fromRange'](_0x131479));_0x108a7e['setSelection'](_0x320850),_0x4bcfc8['commands']['get']('mergeTableCells')['refresh'](),_0x4bcfc8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x39de67=_0x4ffe3d['filter'](_0xf7a1ca=>'$graveyard'!=_0xf7a1ca['root']['rootName']);_0x39de67['length']>0x0&&_0x108a7e['setSelection'](_0x39de67);for(const _0x343332 of _0x4ffe3d)_0x343332['detach']();});});for(const _0x5da248 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x203ef4=_0x4bcfc8['commands']['get'](_0x5da248);_0x203ef4['on']('set:isEnabled',(_0x52fb0d,_0x2fb086,_0x3000e6)=>{if(_0x3000e6){const _0x44beb7=_0x4bcfc8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ecd1f=>_0x4ecd1f['is']('element','tableCell'));this['_areMergableCells'](_0x203ef4['value'],_0x44beb7)||(_0x52fb0d['return']=!0x1,_0x52fb0d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5eecf6=this['editor']['commands']['get']('mergeTableCells'),_0x2f9bc7=this['editor']['plugins']['get']('TableUtils');if(!_0x5eecf6['isEnabled'])return!0x1;const _0x2f3bf1=_0x2f9bc7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2af9cf of _0x2f3bf1)for(const _0x14bd4f of _0x2f3bf1)if(_0x2af9cf!=_0x14bd4f&&!this['_areMergableCells'](_0x2af9cf,_0x14bd4f))return!0x1;return!0x0;}['_areMergableCells'](_0x4778d4,_0x3bd1c7){const _0x59d659=this['editor']['plugins']['get']('TrackChangesEditing'),_0x104d82=this['editor']['model']['createRangeOn'](_0x4778d4),_0x1fe047=this['editor']['model']['createRangeOn'](_0x3bd1c7),_0x54c1ad=new Set(),_0x345c6a=new Set();for(const _0x46889e of _0x59d659['getSuggestions']())if(('insertion'==_0x46889e['type']||'deletion'==_0x46889e['type']||'mergeTableCells'==_0x46889e['subType'])&&_0x46889e['isInContent']){for(const _0x14ffe9 of _0x46889e['getRanges']())_0x14ffe9['containsRange'](_0x104d82,!0x0)&&_0x54c1ad['add'](_0x46889e['type']+':'+_0x46889e['author']['id']),_0x14ffe9['containsRange'](_0x1fe047,!0x0)&&_0x345c6a['add'](_0x46889e['type']+':'+_0x46889e['author']['id']);}if(_0x54c1ad['size']!=_0x345c6a['size'])return!0x1;for(const _0x198cff of _0x54c1ad)if(!_0x345c6a['has'](_0x198cff))return!0x1;return!0x0;}}class Dt extends _0x1cfb98{static get['requires'](){return[Ct];}['afterInit'](){const _0x25244a=this['editor'];if(!_0x25244a['plugins']['has']('TableEditing'))return;const _0x44f15b=_0x25244a['locale'],_0x2d1a54=_0x25244a['plugins']['get']('TrackChangesEditing');_0x2d1a54['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2d1a54['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2d1a54['registerBlockAttribute']('headingRows'),_0x2d1a54['registerBlockAttribute']('headingColumns'),_0x2d1a54['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x44f15b,'FORMAT_HEADER_ROW')),_0x2d1a54['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x44f15b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x480702=this['editor']['plugins']['get']('TrackChangesEditing'),_0x383b64=this['editor']['plugins']['get']('TableUtils'),_0xc464bd=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x2feb2c({showActiveMarker:_0x501c45=!0x0,setDataAttribute:_0x386791=!0x0}={}){return(_0x41f74d,_0x1ea1e8,_0x394808)=>{const {type:_0x6c69a8,id:_0x18f259}=_0x480702['_splitMarkerName'](_0x1ea1e8['markerName']),_0xb98dcb=_0x480702['getSuggestion'](_0x18f259),_0x48d4d0=_0xb98dcb['data'];if('formatBlock'!=_0xb98dcb['type']||!_0x48d4d0||'setTableColumnHeader'!=_0x48d4d0['commandName'])return;if(_0x1ea1e8['item'])return void _0x41f74d['stop']();if(!_0x394808['consumable']['consume'](_0x1ea1e8['markerRange'],_0x41f74d['name']))return;const _0x3dd49a=_0x1ea1e8['markerRange']['start']['nodeAfter'],_0x199573=_0x1ea1e8['markerRange']['end']['nodeBefore'],_0x278514=_0x3dd49a['parent']['parent'],{column:_0x590472}=_0x383b64['getCellLocation'](_0x3dd49a),{column:_0x1bcecc}=_0x383b64['getCellLocation'](_0x199573);for(let _0x3acc1b=_0x590472;_0x3acc1b<=_0x1bcecc;_0x3acc1b++){const _0xca2a95=_0x383b64['createTableWalker'](_0x278514,{'column':_0x3acc1b,'includeAllSlots':!0x1});for(const _0x17ad69 of _0xca2a95){const _0x40b4c7=_0x17ad69['cell'],_0x2f5afb=_0x394808['mapper']['toViewElement'](_0x40b4c7);_0x394808['writer']['addClass']('ck-suggestion-marker-'+_0x6c69a8,_0x2f5afb),_0x386791&&_0x394808['writer']['setAttribute']('data-suggestion',_0x18f259,_0x2f5afb),_0x394808['mapper']['bindElementToMarker'](_0x2f5afb,_0x1ea1e8['markerName']),_0x501c45&&(_0x480702['activeMarkers']['includes'](_0x1ea1e8['markerName'])?_0x394808['writer']['addClass']('ck-suggestion-marker--active',_0x2f5afb):_0x394808['writer']['removeClass']('ck-suggestion-marker--active',_0x2f5afb));}}};}_0x480702['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc464bd),_0x480702['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc464bd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2feb2c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34ac25,_0x1b82e5,_0x3d1472)=>{_0x3d1472['options']['showSuggestionHighlights']&&_0x2feb2c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34ac25,_0x1b82e5,_0x3d1472);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x12cecb,_0x96729c,_0x3d2664)=>{const {type:_0x1a5d25,id:_0x482d22}=_0x480702['_splitMarkerName'](_0x96729c['markerName']),_0x58ace6=_0x480702['getSuggestion'](_0x482d22),_0x1f97dc=_0x58ace6['data'];if('formatBlock'!=_0x58ace6['type']||!_0x1f97dc||'setTableColumnHeader'!=_0x1f97dc['commandName'])return;const _0x3a772b=_0x3d2664['mapper']['markerNameToElements'](_0x96729c['markerName']);if(_0x3a772b){for(const _0x5af1d6 of _0x3a772b)_0x3d2664['writer']['removeClass']('ck-suggestion-marker-'+_0x1a5d25,_0x5af1d6),_0x3d2664['writer']['removeClass']('ck-suggestion-marker--active',_0x5af1d6),_0x3d2664['writer']['removeAttribute']('data-suggestion',_0x5af1d6),_0x3d2664['mapper']['unbindElementFromMarkerName'](_0x5af1d6,_0x96729c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d202e=this['editor'],_0x1892f4=_0x3d202e['locale'];function _0x18af7a(_0x3695fc){return{'type':'format','content':c(_0x1892f4,'*Format:*\x20%0',_0x3695fc)};}_0x3d202e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e41c7=>{if('formatBlock'!=_0x1e41c7['type'])return;const {data:_0x47ff13}=_0x1e41c7;if(_0x47ff13){if('setTableRowHeader'==_0x47ff13['commandName']){const _0x59b3d2=_0x47ff13['commandParams'][0x0]['forceValue'];return _0x18af7a(c(_0x1892f4,_0x59b3d2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x47ff13['commandName']){const _0x292b2c=_0x47ff13['commandParams'][0x0]['forceValue'];return _0x18af7a(c(_0x1892f4,_0x292b2c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x1cfb98{['afterInit'](){const _0x450a71=this['editor'],_0x25ee6=_0x450a71['locale'],_0x1bd466=_0x450a71['plugins']['get']('TrackChangesEditing');function _0x315f64(_0x5913e2){return{'type':'format','content':''+c(_0x25ee6,'*Set\x20table\x20type:*\x20%0',_0x5913e2)};}_0x450a71['plugins']['has']('TableLayout')&&(_0x1bd466['enableCommand']('insertTableLayout'),_0x1bd466['enableDefaultAttributesIntegration']('tableType'),_0x1bd466['registerBlockAttribute']('tableType'),_0x1bd466['descriptionFactory']['registerElementLabel'](_0x2c0bab=>_0x2c0bab['is']('element','table')&&'layout'===_0x2c0bab['getAttribute']('tableType'),_0x350736=>c(_0x25ee6,'ELEMENT_LAYOUT_TABLE',_0x350736)),_0x1bd466['descriptionFactory']['registerDescriptionCallback'](_0xd3632b=>{const {data:_0x52e5dd}=_0xd3632b;if(_0x52e5dd&&'tableType'==_0x52e5dd['key'])switch(_0x52e5dd['newValue']){case'layout':return _0x315f64(c(_0x25ee6,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x315f64(c(_0x25ee6,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x1a70a0=>[_0x1a70a0,null]));class $t extends _0x1cfb98{static get['requires'](){return[Ct];}['afterInit'](){const _0x5b25ec=this['editor'];if(!_0x5b25ec['plugins']['has']('TableClipboard'))return;const _0x52ba50=_0x5b25ec['plugins']['get']('TrackChangesEditing'),_0x3c59f2=_0x5b25ec['plugins']['get']('TableUtils'),_0x35a8e7=_0x5b25ec['plugins']['get'](Ct),_0x1e0c4e=_0x5b25ec['plugins']['get']('TableClipboard'),_0x393c1e=_0x5b25ec['plugins']['get']('TableSelection'),_0x4001c6=_0x5b25ec['plugins']['get'](_0x46dea7);_0x35a8e7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5b25ec['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5b25ec['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x473c50=null,_0x3f21de=!0x1;_0x4001c6['on']('contentInsertion',(_0x45dd75,_0x298a85)=>{_0x3f21de='paste'===_0x298a85['method'];}),_0x5b25ec['model']['on']('insertContent',(_0x5d216c,_0x2a6a54)=>{if(!_0x3f21de&&null===_0x393c1e['getSelectedTableCells']())return;const [_0x3a4a35,_0xcb540b]=_0x2a6a54,_0x2ea946=_0x2a6a54[_0x2a6a54['length']-0x1];_0x2ea946&&_0x2ea946['forceDefaultExecution']||_0x52ba50['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x32f340,_0x1e1a97,_0x329d4a,_0x2e7c10,_0x4f3990){if(_0x1e1a97&&!_0x1e1a97['is']('documentSelection'))return!0x1;const _0x5a1b58=_0x4f3990['getTableIfOnlyTableInContent'](_0x32f340,_0x329d4a);if(!_0x5a1b58||!De(_0x5a1b58,void 0x0,_0x2e7c10))return!0x1;const _0x33f794=_0x2e7c10['getSelectionAffectedTableCells'](_0x329d4a['document']['selection']);if(!_0x33f794['length'])return!0x1;const _0x4e627a=_0x33f794[0x0]['findAncestor']('table'),_0x58147a=_0x2e7c10['getRowIndexes'](_0x33f794),_0xa0e12e=_0x2e7c10['getColumnIndexes'](_0x33f794),_0x2e98a1={'startRow':_0x58147a['first'],'endRow':_0x58147a['last'],'startColumn':_0xa0e12e['first'],'endColumn':_0xa0e12e['last']};return 0x1==_0x33f794['length']&&(_0x2e98a1['endRow']+=_0x2e7c10['getRows'](_0x5a1b58)-0x1,_0x2e98a1['endColumn']+=_0x2e7c10['getColumns'](_0x5a1b58)-0x1),De(_0x4e627a,_0x2e98a1,_0x2e7c10);}(_0x3a4a35,_0xcb540b,_0x5b25ec['model'],_0x3c59f2,_0x1e0c4e)&&(_0x5d216c['stop'](),_0x473c50={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5b25ec['model']['change'](()=>{_0x5b25ec['model']['insertContent'](_0x2a6a54[0x0],_0x2a6a54[0x1],_0x2a6a54[0x2],{'forceDefaultExecution':!0x0});const _0x214a99=_0x51edb1(),{rowInsertionRanges:_0x23c1d9,columnInsertionRanges:_0x1b2efc,insertionRanges:_0xfebf7,deletionRanges:_0x29d334,cells:_0x457ca6}=_0x473c50;_0x23c1d9['length']&&_0x52ba50['markMultiRangeInsertion'](_0x23c1d9,'tablePasteRow',{'tablePasteChainId':_0x214a99}),_0x1b2efc['length']&&_0x52ba50['markMultiRangeInsertion'](_0x1b2efc,'tablePasteColumn',{'tablePasteChainId':_0x214a99}),_0xfebf7['length']&&(_0x52ba50['markMultiRangeInsertion'](_0xfebf7,'tablePaste',{'tablePasteChainId':_0x214a99,'skipNestingCheck':!0x0}),_0xfebf7['forEach'](_0x522fc2=>_0x522fc2['detach']?.())),_0x29d334['length']&&(_0x52ba50['markMultiRangeDeletion'](_0x29d334,'tablePaste',{'tablePasteChainId':_0x214a99,'skipNestingCheck':!0x0}),_0x29d334['forEach'](_0x2d8b41=>_0x2d8b41['detach']?.()));const _0x317113=_0x52ba50['markMultiRangeBlockFormat'](_0x457ca6['map'](({element:_0x4f03e5})=>_0x4f03e5),{'formatGroupId':_0x51edb1()},[],'tablePasteCell',{'tablePasteChainId':_0x214a99});if(_0x317113){const _0x125706=_0x317113['getMarkers'](),_0x4ef336=[];for(const {element:_0x57a3de,attributes:_0x4c5ef9}of _0x457ca6){if(!_0x4c5ef9)continue;const _0x8edb96=_0x5b25ec['model']['createRangeOn'](_0x57a3de),_0x47f2f1=_0x125706['find'](_0x2fca37=>_0x2fca37['getRange']()['isEqual'](_0x8edb96));_0x47f2f1&&_0x4ef336['push']([_0x47f2f1['name'],_0x4c5ef9]);}_0x4ef336['length']&&_0x317113['setAttribute']('markerAttributes',Object['fromEntries'](_0x4ef336));}_0x473c50=null;}));},{'priority':_0x49e83f['high']+0xa}),_0x4001c6['on']('contentInsertion',()=>{_0x3f21de=!0x1;},{'priority':'lowest'}),_0x5b25ec['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x298c38,_0x4cd732)=>{const [_0x38edcc,_0x45bee5,,_0x11bf82]=_0x4cd732;if(!_0x473c50)return;_0x298c38['stop']();const _0x298722=_0x38edcc['cell'],_0x116ca4=_0x45bee5,_0x2e9eac=Ue(_0x298722),_0x26c50d=Ue(_0x116ca4);_0x298c38['return']=_0x298722;let _0x57acc2=null,_0xac3dd2=null;if(_0x26c50d||_0x2e9eac){if(_0x2e9eac&&!_0x26c50d){_0x11bf82['remove'](_0x298722['getChild'](0x0));for(const _0x1378ab of Array['from'](_0x116ca4['getChildren']()))_0x11bf82['insert'](_0x1378ab,_0x298722,'end');const _0x2fad7d=_0x473c50['rowInsertionIndexes']['includes'](_0x38edcc['row']),_0x2b1cab=_0x473c50['columnInsertionIndexes']['includes'](_0x38edcc['column']);_0x2fad7d||_0x2b1cab||(_0x57acc2=_0x4d622b['fromRange'](_0x11bf82['createRangeIn'](_0x298722)));}else _0x26c50d&&!_0x2e9eac&&(_0xac3dd2=_0x11bf82['createRangeIn'](_0x298722));}else{const _0x100cb4=_0x11bf82['createElement']('tableCellSuggestion'),_0x2c5845=_0x11bf82['createElement']('tableCellSuggestion');_0x11bf82['wrap'](_0x11bf82['createRangeIn'](_0x298722),_0x2c5845),_0x11bf82['insert'](_0x100cb4,_0x298722,0x0);for(const _0x170f11 of Array['from'](_0x116ca4['getChildren']()))_0x11bf82['insert'](_0x170f11,_0x100cb4,'end');_0x57acc2=_0x4d622b['fromRange'](_0x11bf82['createRangeOn'](_0x100cb4)),_0xac3dd2=_0x4d622b['fromRange'](_0x11bf82['createRangeOn'](_0x2c5845));}const _0x588cb2=Array['from'](_0x116ca4['getAttributes']())['filter'](([_0x473852])=>xe['includes'](_0x473852));_0x473c50['cells']['push']({'element':_0x298722,'attributes':_0x588cb2['length']?Object['fromEntries'](_0x588cb2):null}),_0x57acc2&&_0x473c50['insertionRanges']['push'](_0x57acc2),_0xac3dd2&&_0x473c50['deletionRanges']['push'](_0xac3dd2);},{'priority':'high'}),_0x3c59f2['on']('insertColumns',(_0x395d8e,_0x596ae8)=>{const [_0x3e4e10,_0x5b7d2c={}]=_0x596ae8;if(!_0x473c50)return;const _0x4def55=_0x5b7d2c['at']||0x0,_0x2e4aad=_0x5b7d2c['columns']||0x1;_0x473c50['columnInsertionIndexes']=new Array(_0x2e4aad)['fill'](_0x4def55)['map']((_0x2c914d,_0x1bbe53)=>_0x2c914d+_0x1bbe53);for(const {cell:_0x54ff26}of _0x3c59f2['createTableWalker'](_0x3e4e10,{'startColumn':_0x4def55,'endColumn':_0x4def55+_0x2e4aad-0x1}))_0x473c50['columnInsertionRanges']['push'](_0x5b25ec['model']['createRangeOn'](_0x54ff26));},{'priority':'low'}),_0x3c59f2['on']('insertRows',(_0xeecf8a,_0x50b968)=>{const [_0xf2676a,_0xf8982d={}]=_0x50b968;if(!_0x473c50)return;const _0x7b227=_0xf8982d['at']||0x0,_0x2740a2=_0xf8982d['rows']||0x1;_0x473c50['rowInsertionIndexes']=new Array(_0x2740a2)['fill'](_0x7b227)['map']((_0x1d78f8,_0x37e827)=>_0x1d78f8+_0x37e827);for(const {cell:_0x9e7cb4}of _0x3c59f2['createTableWalker'](_0xf2676a,{'startRow':_0x7b227,'endRow':_0x7b227+_0x2740a2-0x1}))_0x473c50['rowInsertionRanges']['push'](_0x5b25ec['model']['createRangeOn'](_0x9e7cb4));},{'priority':'low'}),_0x52ba50['descriptionFactory']['registerDescriptionCallback'](_0x38ea65=>{if(_0x38ea65['subType']&&_0x38ea65['subType']['startsWith']('tablePaste'))return _0x38ea65['previous']?{}:{'type':'insertion','content':c(_0x5b25ec['locale'],'*Replace\x20table\x20cells*')};});const _0x53e8ef=()=>!0x1;for(const _0x3de03f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x52ba50['_suggestionFactory']['registerCustomCallback']('insertion',_0x3de03f,'join',_0x53e8ef),_0x52ba50['_suggestionFactory']['registerCustomCallback']('deletion',_0x3de03f,'join',_0x53e8ef),_0x52ba50['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3de03f,'join',_0x53e8ef);_0x52ba50['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53e8ef),_0x52ba50['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x11f16c,_0x401020,_0x385c4f)=>{const _0x36257a=_0x11f16c['map'](_0x2fd55d=>_0x2fd55d['getContainedElement']())['filter'](_0x47e3c2=>_0x47e3c2),_0x53d85f=new Map(_0x36257a['map'](_0xcf9ad3=>[_0xcf9ad3,null]));if(_0x473c50){for(const {element:_0x2136e1,attributes:_0xac6aeb}of _0x473c50['cells'])_0xac6aeb&&_0x53d85f['set'](_0x2136e1,_0xac6aeb);}else{if(_0x385c4f&&_0x385c4f['markerAttributes'])for(const [_0x38a10e,_0xa9d162]of Object['entries'](_0x385c4f['markerAttributes'])){const _0x2d9e45=_0x5b25ec['model']['markers']['get'](_0x38a10e),_0x43b858=_0x2d9e45?_0x2d9e45['getRange']()['getContainedElement']():null;_0x43b858&&_0x53d85f['set'](_0x43b858,_0xa9d162);}}_0x5b25ec['model']['change'](_0x806c03=>{for(const [_0x143bf5,_0x192f2c]of _0x53d85f)_0x806c03['setAttributes']({...Oe,..._0x192f2c},_0x143bf5);});});const _0x53a7b1=(_0x5b0cb0,_0x362331)=>{_0x52ba50['_suggestionFactory']['registerCustomCallback'](_0x5b0cb0,'tablePaste',_0x362331,(_0x37202a,_0xea6fa1,_0x20fe2f)=>{_0x5b25ec['model']['change'](_0x17d6c4=>{const _0x34d65e=[];for(const _0x9802f0 of _0x37202a){const _0x4924c1=_0x9802f0['start']['nodeAfter'];_0x4924c1['is']('element','tableCellSuggestion')&&_0x34d65e['push'](_0x4924c1);}_0x52ba50['_suggestionFactory']['getSuggestionCallback'](_0x5b0cb0,null,_0x362331)(_0x37202a,_0xea6fa1,_0x20fe2f);for(const _0x506b36 of _0x34d65e)'$graveyard'!=_0x506b36['root']['rootName']&&_0x17d6c4['unwrap'](_0x506b36);});});};_0x53a7b1('insertion','accept'),_0x53a7b1('insertion','discard'),_0x53a7b1('deletion','accept'),_0x53a7b1('deletion','discard'),_0x52ba50['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x521a52=>{const _0x44a6e3=_0x521a52['map'](_0x1c2d86=>_0x1c2d86['getContainedElement']()),_0x54abc0=_0x44a6e3[0x0]['findAncestor']('table'),{minRow:_0x46c849,maxRow:_0xe151aa}=_0x35a8e7['_getCoordsForCells'](_0x44a6e3);_0x3c59f2['removeRows'](_0x54abc0,{'at':_0x46c849,'rows':_0xe151aa-_0x46c849+0x1});}),_0x52ba50['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x31c7e3=>{const _0x4f0643=_0x31c7e3['map'](_0x3cc7d6=>_0x3cc7d6['getContainedElement']()),_0x502ebb=_0x4f0643[0x0]['findAncestor']('table'),{minColumn:_0x369689,maxColumn:_0x183c90}=_0x35a8e7['_getCoordsForCells'](_0x4f0643);_0x3c59f2['removeColumns'](_0x502ebb,{'at':_0x369689,'columns':_0x183c90-_0x369689+0x1});});const _0x559a28=(_0x20e4c9,_0x40338f)=>{if(!_0x40338f['subType']||!_0x40338f['subType']['startsWith']('tablePaste'))return;const _0x33a919=_0x40338f['attributes']['tablePasteChainId'],_0xa06868=_0x52ba50['getSuggestions']()['filter'](_0x41edb9=>_0x41edb9['isInContent']&&_0x41edb9['attributes']&&_0x41edb9['attributes']['tablePasteChainId']==_0x33a919);_0xa06868['length']&&_0x40338f['getAllAdjacentSuggestions']()['length']!=_0xa06868['length']&&_0xa06868['reduce']((_0x14b3ee,_0x1652e2)=>(_0x14b3ee['next']=_0x1652e2,_0x1652e2['previous']=_0x14b3ee,_0x1652e2));};function _0x4a8f12(_0x181424,_0x5765d1=!0x0){const {id:_0x1422b1,authorId:_0x524e72}=_0x52ba50['_splitMarkerName'](_0x181424['markerName']),_0x4d20ca=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x14616b=_0x52ba50['activeMarkers']['includes'](_0x181424['markerName']);return _0x14616b&&_0x4d20ca['push']('ck-suggestion-marker--active'),{'classes':_0x4d20ca,'attributes':{'data-suggestion':_0x1422b1,'data-author-id':_0x524e72},'priority':_0x14616b&&_0x5765d1?0xbc2:0xbb8};}_0x52ba50['on']('suggestionLoaded',_0x559a28,{'priority':'high'}),_0x52ba50['on']('suggestionUnloaded',_0x559a28,{'priority':'high'}),_0x5b25ec['model']['document']['registerPostFixer'](()=>{let _0xc75b1b=!0x1;const _0x421c95=Array['from'](_0x5b25ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a847a,data:_0x16c53b}of _0x421c95){const {group:_0x49db0f,type:_0x2ffd35,id:_0x187eaa}=_0x52ba50['_splitMarkerName'](_0x2a847a);if('suggestion'!=_0x49db0f||'deletion'!=_0x2ffd35||_0x16c53b['oldRange'])continue;if(!_0x52ba50['hasSuggestion'](_0x187eaa))continue;const _0x4fb62f=_0x52ba50['getSuggestion'](_0x187eaa)['getRanges'](),_0x14d861=_0x5b25ec['plugins']['get']('Users')['me'];for(const _0xc3625a of _0x52ba50['getSuggestions']()){if(!_0xc3625a['isInContent']||_0xc3625a['author']!=_0x14d861)continue;if('formatBlock'!=_0xc3625a['type']||'tablePasteCell'!=_0xc3625a['subType'])continue;if(_0xc3625a['getRanges']()['every'](_0x485f76=>_0x4fb62f['some'](_0x5ebdd2=>_0x5ebdd2['containsRange'](_0x485f76,!0x0)))){for(const _0x16d88b of _0xc3625a['getAllAdjacentSuggestions']())_0x16d88b['isInContent']&&(_0x16d88b['discard'](),_0xc75b1b=!0x0);}}}return _0xc75b1b;}),_0x5b25ec['model']['document']['registerPostFixer'](_0x2926cc=>{const _0x26f6fd=_0x5b25ec['commands']['get']('redo');if(!_0x26f6fd||!_0x26f6fd['_createdBatches']['has'](_0x2926cc['batch']))return!0x1;let _0x1549ca=!0x1;const _0x487ca6=_0x5b25ec['plugins']['get']('Users')['me'],_0x6251fe=_0x5b25ec['model']['document']['differ']['getChanges'](),_0x10fea5=Array['from'](_0x5b25ec['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3298be,data:_0x1d0aa4})=>{const {group:_0x5f27a3,subType:_0x458191,authorId:_0x4bc285}=_0x52ba50['_splitMarkerName'](_0x3298be);return'suggestion'==_0x5f27a3&&'tablePaste'==_0x458191&&_0x4bc285==_0x487ca6['id']&&!_0x1d0aa4['oldRange'];});for(const _0x3b04ba of _0x6251fe){if('insert'!=_0x3b04ba['type']||'tableCellSuggestion'!=_0x3b04ba['name']||0x1!=_0x3b04ba['length'])continue;const _0x3cff85=_0x2926cc['createRange'](_0x3b04ba['position'],_0x3b04ba['position']['getShiftedBy'](0x1));if(!_0x10fea5['find'](({data:_0x78ef44})=>_0x78ef44['newRange']['isEqual'](_0x3cff85))){for(const {name:_0x163ebf,data:_0x412e31}of _0x10fea5)if(_0x3cff85['containsRange'](_0x412e31['newRange'])){_0x2926cc['updateMarker'](_0x163ebf,{'range':_0x3cff85}),_0x1549ca=!0x0;break;}}}return _0x1549ca;}),_0x5b25ec['model']['document']['registerPostFixer'](_0x52b0ce=>{let _0x47796f=!0x1;const _0x8fb741=_0x5b25ec['plugins']['get']('Users')['me'],_0x27d287=_0x52ba50['getSuggestions']()['filter'](_0x36f886=>_0x36f886['isInContent']&&_0x36f886['author']==_0x8fb741),_0x260de6=new Set(),_0xc984cd=new Set();for(const _0xf2fa4d of _0x27d287)if('tablePaste'==_0xf2fa4d['subType'])for(const _0x3333dc of _0xf2fa4d['getMarkers']()){const _0x48d403=_0x3333dc['getRange']()['getContainedElement']();if(_0x48d403){if(_0x48d403['is']('element','tableCellSuggestion')&&Ue(_0x48d403)){_0xf2fa4d['removeMarker'](_0x3333dc['name']),_0x260de6['add'](_0x48d403),_0x47796f=!0x0;const _0x347f0d=_0x48d403['nextSibling'],_0x4a4621=_0x48d403['previousSibling'],_0x3762dd=_0x347f0d&&_0x347f0d['is']('element','tableCellSuggestion'),_0x24477d=_0x4a4621&&_0x4a4621['is']('element','tableCellSuggestion');_0x3762dd&&!_0x260de6['has'](_0x347f0d)&&_0xc984cd['add'](_0x347f0d),_0x24477d&&!_0x260de6['has'](_0x4a4621)&&_0xc984cd['add'](_0x4a4621);}else _0x48d403['is']('element','paragraph')&&_0x48d403['isEmpty']&&(_0xf2fa4d['removeMarker'](_0x3333dc['name']),_0x47796f=!0x0);}}else{if('tablePasteCell'==_0xf2fa4d['subType']){if(!_0xf2fa4d['attributes']||!_0xf2fa4d['attributes']['tablePasteChainId'])continue;const _0x36fb88=_0xf2fa4d['attributes']['markerAttributes'];if(_0x36fb88&&Object['keys'](_0x36fb88)['length'])continue;const _0x56d1d4=_0xf2fa4d['attributes']['tablePasteChainId'];let _0x3c920a=!0x0,_0x3d6588=!0x0;for(const _0x1ea0c1 of _0x27d287)if(_0x1ea0c1['subType']&&_0x1ea0c1['subType']['startsWith']('tablePaste')){if(!_0x1ea0c1['attributes']['tablePasteChainId']){_0x3d6588=!0x1;break;}if(_0x1ea0c1['id']!=_0xf2fa4d['id']&&_0x1ea0c1['attributes']['tablePasteChainId']==_0x56d1d4){_0x3c920a=!0x1;break;}}_0x3d6588&&_0x3c920a&&(_0xf2fa4d['removeMarkers'](),_0x47796f=!0x0);}}for(const _0x5093f6 of _0x260de6)_0x52b0ce['remove'](_0x5093f6);for(const _0x1e4011 of _0xc984cd)_0x52b0ce['unwrap'](_0x1e4011);return _0x47796f;}),_0x5b25ec['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5cb0d3=>_0x4a8f12(_0x5cb0d3),'converterPriority':'high'}),_0x5b25ec['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5bc7e6,_0x2faa4f)=>_0x2faa4f['options']['showSuggestionHighlights']?_0x4a8f12(_0x5bc7e6,!0x1):null,'converterPriority':'high'});const _0x342811=_0x5b25ec['editing']['view'];this['listenTo'](_0x342811['document'],'clipboardOutput',(_0x23600b,_0x94de89)=>{const _0x14f716=[];for(const _0x6c3a0 of _0x342811['createRangeIn'](_0x94de89['content'])['getItems']())_0x6c3a0['is']('element','suggestion-td')&&_0x14f716['push'](_0x6c3a0);_0x342811['change'](_0x4a0f5e=>{for(const _0x225c68 of _0x14f716)_0x4a0f5e['move'](_0x4a0f5e['createRangeIn'](_0x225c68),_0x4a0f5e['createPositionBefore'](_0x225c68)),_0x4a0f5e['remove'](_0x225c68);});});}}function Ue(_0x1da356){if(_0x1da356['isEmpty'])return!0x0;const _0x45f1d3=_0x1da356['getChild'](0x0);return _0x45f1d3['is']('element','paragraph')&&_0x45f1d3['isEmpty'];}function De(_0x23d66c,_0x55552e={},_0xd11203){for(const {isAnchor:_0x246e92,cellHeight:_0x50d4ac,cellWidth:_0x59d3d6}of _0xd11203['createTableWalker'](_0x23d66c,{'includeAllSlots':!0x0,..._0x55552e}))if(!_0x246e92||0x1!=_0x50d4ac||0x1!=_0x59d3d6)return!0x1;return!0x0;}class Bt extends _0x1cfb98{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xf22fa3=this['editor']['plugins']['get']('TrackChangesEditing');_0xf22fa3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xf22fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xf22fa3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf22fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xf22fa3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xf22fa3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x29c490,_0x32d969){const _0x29303b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3bd83b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11e3bb=_0x32d969['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x53d41c=_0x3bd83b['getColumnGroupElement'](_0x11e3bb);let _0x500b5d=_0x53d41c?_0x3bd83b['getTableColumnsWidths'](_0x53d41c):null,_0xb1ef20=_0x11e3bb['getAttribute']('tableWidth')||null;const _0x4ffa0a=_0x32d969['tableWidth']||_0xb1ef20,_0x2687f5=_0x32d969['columnWidths']||_0x500b5d,_0x44cfb7=this['editor']['plugins']['get']('Users')['me'];for(const _0x44ff3f of _0x29303b['getSuggestions']()){const _0x5cc749=_0x44ff3f['getContainedElement']();if('resizeTable'===_0x44ff3f['subType']&&_0x5cc749===_0x11e3bb){_0x44ff3f['author']!==_0x44cfb7&&_0x44ff3f['discard']();const _0x450253=_0x44ff3f['data']['commandParams'];_0xb1ef20=_0x450253[0x0]['tableWidth'],_0x500b5d=_0x450253[0x0]['columnWidths'];break;}}_0x29c490({'table':_0x11e3bb,'tableWidth':_0x4ffa0a,'columnWidths':_0x2687f5}),_0x29303b['markBlockFormat'](_0x11e3bb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xb1ef20,'columnWidths':_0x500b5d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x525d4a){if('formatBlock'!=_0x525d4a['type']&&'formatInline'!=_0x525d4a['type'])return;const {data:_0xc3aee4}=_0x525d4a;if(_0xc3aee4&&'resizeTable'===_0xc3aee4['formatGroupId']){const _0x11837d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x11837d)};}}}class Ot extends _0x1cfb98{['afterInit'](){const _0x289b89=this['editor'];_0x289b89['plugins']['has']('Template')&&_0x289b89['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x1cfb98{['afterInit'](){const _0x25e384=this['editor'];if(!_0x25e384['commands']['get']('insertTableOfContents'))return;_0x25e384['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x285ff6=_0x25e384['plugins']['get']('TrackChangesEditing'),_0x3961a5=_0x25e384['locale'];_0x285ff6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x514146=>c(_0x3961a5,'ELEMENT_TABLE_OF_CONTENTS',_0x514146));}}class xt extends _0x1cfb98{['afterInit'](){const _0x5d2b47=this['editor'];if(!_0x5d2b47['plugins']['has']('Title'))return;const _0x16b990=_0x5d2b47['plugins']['get']('TrackChangesEditing');_0x16b990['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5d2b47['locale'],'ELEMENT_TITLE')),_0x5d2b47['model']['document']['registerPostFixer'](_0x1801d5=>{let _0x110ee2=!0x1;const _0x46dbf8=Array['from'](_0x5d2b47['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a3f39,data:_0x297a9e}of _0x46dbf8){const {group:_0xdb6d3b}=_0x16b990['_splitMarkerName'](_0x1a3f39);if('suggestion'!==_0xdb6d3b||!_0x297a9e['newRange'])continue;const _0x41d2a5=_0x297a9e['newRange'],_0x5a4818=_0x41d2a5['end']['nodeBefore'];if(!_0x5a4818||!_0x5a4818['is']('element','title-content'))continue;if(!_0x41d2a5['start']['isTouching'](_0x41d2a5['end']))continue;const _0x139cd5=_0x5d2b47['model']['schema']['getNearestSelectionRange'](_0x41d2a5['end'],'forward');if(_0x139cd5&&_0x139cd5['isCollapsed']){const _0x49eb8d=_0x1801d5['createRange'](_0x41d2a5['start'],_0x139cd5['start']);_0x49eb8d['isEqual'](_0x41d2a5)||(_0x1801d5['updateMarker'](_0x1a3f39,{'range':_0x49eb8d}),_0x110ee2=!0x0);}_0x110ee2||(_0x1801d5['removeMarker'](_0x1a3f39),_0x110ee2=!0x0);}return _0x110ee2;});}}class Tt extends _0x1cfb98{['afterInit'](){const _0x174ecd=this['editor'],_0x3d667b=_0x174ecd['plugins']['get']('TrackChangesEditing');_0x174ecd['plugins']['has']('Uploadcare')&&(_0x3d667b['enableCommand']('uploadcare'),_0x174ecd['plugins']['has']('UploadcareImageEdit')&&(_0x3d667b['enableCommand']('uploadcareImageEdit'),_0x3d667b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3d667b['registerBlockAttribute']('uploadcareImageId'),_0x3d667b['descriptionFactory']['registerDescriptionCallback'](_0x32f1f1=>{if('attribute'!=_0x32f1f1['type'])return;const {data:_0x843ed4}=_0x32f1f1;return _0x843ed4&&'uploadcareImageId'==_0x843ed4['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x1cfb98{['afterInit'](){const _0x4fb673=this['editor'],_0x2cfd64=_0x4fb673['plugins']['get']('TrackChangesEditing');_0x4fb673['plugins']['has']('UndoEditing')&&(_0x2cfd64['enableCommand']('undo'),_0x2cfd64['enableCommand']('redo'));}}class Ut extends _0x1cfb98{static get['requires'](){return[Ct];}['afterInit'](){const _0x51e50f=this['editor'];if(!_0x51e50f['plugins']['has']('TableCaptionEditing'))return;_0x51e50f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x1cfb98{['tableProperties'];['tableCellProperties'];constructor(_0x1a192a){super(_0x1a192a),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 _0x121c00=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x432502 of this['tableProperties'])_0x121c00['enableCommand'](_0x432502,(_0x499c57,_0x48c13b)=>{const _0x2239b5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x432502,[_0x2239b5],this['tableProperties'],'tableProperties',_0x499c57,_0x48c13b);});_0x121c00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x121c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x121c00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x297042,_0x4a0eae)=>this['handleDiscardAction'](this['tableProperties'],_0x297042,_0x4a0eae)),_0x121c00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x218194 of this['tableCellProperties'])_0x121c00['enableCommand'](_0x218194,(_0xbcd1af,_0x39be21)=>{const _0x21be92=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x218194,_0x21be92,this['tableCellProperties'],'tableCellProperties',_0xbcd1af,_0x39be21);});_0x121c00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x121c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x121c00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2c07c0,_0x1e018d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2c07c0,_0x1e018d)),_0x121c00['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x121c00['descriptionFactory']['registerDescriptionCallback'](_0x1408e5=>this['handleSuggestionDescription'](_0x1408e5));}['_handlePropertyChange'](_0x2b616b,_0x805a0f,_0x52b4c2,_0x55ace4,_0x44596d,_0x1496e3){const _0x13bee6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1496e3['batch'],()=>{for(const _0x68b483 of _0x805a0f){if(this['_getSuggestion'](_0x68b483,_0x55ace4))_0x44596d(_0x1496e3);else{const _0x15ef2c={};for(const _0x4dabc5 of _0x52b4c2){const _0x165e81=_0x68b483['getAttribute'](_0x4dabc5);void 0x0!==_0x165e81&&(_0x15ef2c[_0x4dabc5]=_0x165e81);}_0x44596d(_0x1496e3),_0x13bee6['markBlockFormat'](_0x68b483,{'commandParams':[_0x15ef2c]},[],_0x55ace4);}}});}['handleDiscardAction'](_0x444a1d,_0x33c85d,_0x47a83a){const _0x495dfd=_0x33c85d[0x0]['start']['nodeAfter'],_0x32b41f=_0x47a83a['commandParams'][0x0];this['editor']['model']['change'](_0xe9e84d=>{for(const _0x534703 of _0x444a1d)void 0x0!==_0x32b41f[_0x534703]?_0xe9e84d['setAttribute'](_0x534703,_0x32b41f[_0x534703],_0x495dfd):_0xe9e84d['removeAttribute'](_0x534703,_0x495dfd);});}['handleSuggestionDescription'](_0x229f8c){if(_0x229f8c['data'])switch(_0x229f8c['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'](_0x53e934,_0x7f6a29){const _0x323c17=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x48c1b4 of _0x323c17['getSuggestions']({'skipNotAttached':!0x0})){const _0x2d7935=_0x48c1b4['getContainedElement']();if(_0x48c1b4['subType']===_0x7f6a29&&_0x2d7935===_0x53e934)return _0x48c1b4;}return null;}}const u='$elementName';class p extends _0x1cfb98{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x15485e,_0x234957,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(_0x1bc545){super(_0x1bc545),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3d17aa,_0x19fe57,_0x2203e9,_0x1c8d14)=>{this['_model']['change'](()=>{for(const _0x30b15d of[..._0x1c8d14,..._0x2203e9])this['_model']['markers']['has'](_0x30b15d)&&_0x1bc545['editing']['reconvertMarker'](_0x30b15d);});}),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']=_0x1bc545['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(),_0x1bc545['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1bc545['config']['get']('trackChanges.trackFormatChanges'),_0x1bc545['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1bc545['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1bc545,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4f4b31=this['editor'],_0x5c3c95=(_0x2a0363,_0x42466b)=>{if('attribute'!=_0x2a0363)return'ck-suggestion-marker-'+_0x2a0363;const _0x4d2904=_0x42466b['split']('|')[0x0];return this['_isBlockAttribute'](_0x4d2904)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4f4b31['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3fd41a=>{const {id:_0x2f1ac9,authorId:_0x4c4ec6,type:_0x46257c,subType:_0x1b8347}=this['_splitMarkerName'](_0x3fd41a['markerName']),_0x31184=['ck-suggestion-marker',_0x5c3c95(_0x46257c,_0x1b8347)];let _0x36999d=0xbb8;return this['activeMarkers']['includes'](_0x3fd41a['markerName'])&&(_0x31184['push']('ck-suggestion-marker--active'),_0x36999d=0xbc2),'deletion'==_0x46257c&&(_0x36999d+=0x5),{'classes':_0x31184,'attributes':{'data-suggestion':_0x2f1ac9,'data-author-id':_0x4c4ec6},'priority':_0x36999d};}}),_0x4f4b31['conversion']['for']('dataDowncast')['add'](_0x15c3aa=>{_0x15c3aa['on']('addMarker:suggestion',(_0x5f1d45,_0x9bab79,_0x457672)=>{if(!_0x457672['options']['showSuggestionHighlights'])return;const _0x3b3e37=_0x9bab79['item'];if(!_0x3b3e37)return;const _0x2af28f=_0x457672['mapper']['toViewElement'](_0x3b3e37);_0x4f4b31['model']['schema']['isObject'](_0x3b3e37)&&_0x2af28f&&!_0x2af28f['getCustomProperty']('widget')&&_0x2af28f['is']('containerElement')&&_0x22dc79(_0x2af28f,_0x457672['writer']);},{'priority':'high'});}),_0x4f4b31['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5e3202,_0x2d6fd6)=>{if(!_0x2d6fd6['options']['showSuggestionHighlights'])return null;const {type:_0x333a22,subType:_0x33ebf8}=this['_splitMarkerName'](_0x5e3202['markerName']);return{'classes':['ck-suggestion-marker',_0x5c3c95(_0x333a22,_0x33ebf8)],'priority':0xbb8};}});const _0x2fb82f=({showActiveMarkers:_0x2ca372=!0x0,isAttributeSuggestion:_0x5350df=!0x1}={})=>(_0x4e0989,_0x27a49d,_0x4f7bb3)=>{if(!_0x27a49d['item'])return;const {id:_0x18cb80,authorId:_0x58165e}=this['_splitMarkerName'](_0x27a49d['markerName']);if(_0x5350df){const _0x4e1d4d=this['_suggestions']['get'](_0x18cb80),_0x8b977d=this['_getAttributeKey'](_0x4e1d4d);if(!this['_isBlockAttribute'](_0x8b977d))return;}if(_0x27a49d['item']['is']('selection'))return void _0x4f7bb3['consumable']['consume'](_0x27a49d['item'],_0x4e0989['name']);const _0xc499f0=_0x4f7bb3['mapper']['toViewElement'](_0x27a49d['item']);if(_0x27a49d['item']['is']('element')&&_0x4f4b31['model']['schema']['isBlock'](_0x27a49d['item'])&&!_0xc499f0['getCustomProperty']('addHighlight')){_0x4f7bb3['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xc499f0),_0x4f7bb3['writer']['setAttribute']('data-suggestion',_0x18cb80,_0xc499f0),_0x4f7bb3['writer']['setAttribute']('data-author-id',_0x58165e,_0xc499f0),_0x4f7bb3['mapper']['bindElementToMarker'](_0xc499f0,_0x27a49d['markerName']),_0x2ca372&&(this['activeMarkers']['includes'](_0x27a49d['markerName'])?_0x4f7bb3['writer']['addClass']('ck-suggestion-marker--active',_0xc499f0):_0x4f7bb3['writer']['removeClass']('ck-suggestion-marker--active',_0xc499f0));for(const _0x3195e8 of _0x4f4b31['model']['createRangeIn'](_0x27a49d['item'])['getItems']())_0x4f7bb3['consumable']['consume'](_0x3195e8,_0x4e0989['name']);_0x4f7bb3['consumable']['consume'](_0x27a49d['item'],_0x4e0989['name']);}};_0x4f4b31['conversion']['for']('dataDowncast')['add'](_0x3944d1=>{_0x3944d1['on']('addMarker:suggestion:formatBlock',(_0xca46fb,_0x22d232,_0x2307f6)=>{_0x2307f6['options']['showSuggestionHighlights']&&_0x2fb82f({'showActiveMarkers':!0x1})(_0xca46fb,_0x22d232,_0x2307f6);},{'priority':'highest'});}),_0x4f4b31['conversion']['for']('dataDowncast')['add'](_0x351f12=>{_0x351f12['on']('addMarker:suggestion:attribute',(_0x126dfd,_0x49a626,_0x2b8bf5)=>{_0x2b8bf5['options']['showSuggestionHighlights']&&_0x2fb82f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x126dfd,_0x49a626,_0x2b8bf5);},{'priority':'highest'});}),_0x4f4b31['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x89e18,_0x4ba37c)=>_0x4ba37c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x89e18['substr'](0xb)}}),_0x4f4b31['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x14f901,{writer:_0x310a02})=>{let _0x5a25da='suggestion:'+_0x14f901['getAttribute']('suggestion-type')+':'+_0x14f901['getAttribute']('id');return _0x14f901['getAttribute']('marker-count')&&(_0x5a25da+=':'+_0x14f901['getAttribute']('marker-count')),_0x310a02['createElement']('$marker',{'data-name':_0x5a25da});}}),_0x4f4b31['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4f4b31['conversion']['for']('editingDowncast')['add'](_0x304550=>{_0x304550['on']('addMarker:suggestion:formatBlock',_0x2fb82f(),{'priority':'high'});}),_0x4f4b31['conversion']['for']('editingDowncast')['add'](_0x1fde4a=>{_0x1fde4a['on']('addMarker:suggestion:attribute',_0x2fb82f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4f4b31['conversion']['for']('editingDowncast')['add'](_0x4cf418=>{_0x4cf418['on']('removeMarker:suggestion:formatBlock',(_0x33a547,_0x2ac00e,_0x305fa2)=>{const _0x269ddc=_0x305fa2['mapper']['markerNameToElements'](_0x2ac00e['markerName']);if(_0x269ddc){for(const _0x4fd54c of _0x269ddc)_0x4fd54c['getCustomProperty']('addHighlight')||(_0x305fa2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4fd54c),_0x305fa2['writer']['removeAttribute']('data-suggestion',_0x4fd54c),_0x305fa2['writer']['removeAttribute']('data-author-id',_0x4fd54c),_0x305fa2['mapper']['unbindElementFromMarkerName'](_0x4fd54c,_0x2ac00e['markerName']));}},{'priority':'high'});}),_0x4f4b31['conversion']['for']('editingDowncast')['add'](_0x12c7a7=>{_0x12c7a7['on']('removeMarker:suggestion:attribute',(_0x5c5cca,_0x30afc4,_0x3cac54)=>{const _0x30dd0b=_0x3cac54['mapper']['markerNameToElements'](_0x30afc4['markerName']);if(!_0x30dd0b)return;const {id:_0x51f17a}=this['_splitMarkerName'](_0x30afc4['markerName']),_0x2762f7=this['_suggestions']['get'](_0x51f17a),_0x13a372=this['_getAttributeKey'](_0x2762f7);if(this['_isBlockAttribute'](_0x13a372)){for(const _0x10e5d1 of _0x30dd0b)_0x10e5d1['getCustomProperty']('addHighlight')||(_0x3cac54['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x10e5d1),_0x3cac54['writer']['removeAttribute']('data-suggestion',_0x10e5d1),_0x3cac54['writer']['removeAttribute']('data-author-id',_0x10e5d1),_0x3cac54['mapper']['unbindElementFromMarkerName'](_0x10e5d1,_0x30afc4['markerName']));}},{'priority':'high'});}),_0x4f4b31['model']['document']['registerPostFixer'](_0x9867ab=>{let _0x3aefb7=!0x1;const _0x520f5d=Array['from'](_0x4f4b31['model']['document']['differ']['getChangedMarkers']()),_0x8eac75=new Set();for(const {name:_0x24b394,data:_0x428ff3}of _0x520f5d){const {group:_0x5a19d0,type:_0x249a23,subType:_0x490d56,id:_0x5e8d67}=this['_splitMarkerName'](_0x24b394);if('suggestion'!==_0x5a19d0)continue;const _0x5fd95b=this['_suggestions']['get'](_0x5e8d67);if(null!=_0x428ff3['newRange']){'formatInline'==_0x249a23&&(_0x3aefb7=_0x3aefb7||Jt(_0x428ff3['newRange'],_0x24b394,_0x9867ab,_0x4f4b31['model']['schema']));const _0xda64c6='attribute'==_0x249a23&&this['_isBlockAttribute'](_0x490d56['split']('|')[0x0]);if(_0x428ff3['newRange']['isCollapsed']||'$graveyard'==_0x428ff3['newRange']['root']['rootName']||'formatBlock'==_0x249a23&&!Ht(_0x428ff3['newRange'])||_0xda64c6&&!Ht(_0x428ff3['newRange'])||'deletion'==_0x249a23&&!(!Lt(_0x1ab950=_0x428ff3['newRange'])&&!function(_0x15341b){return _0x15341b['start']['parent']==_0x15341b['end']['nodeBefore']&&_0x15341b['start']['isAtEnd'];}(_0x1ab950)))_0x9867ab['removeMarker'](_0x24b394),_0x3aefb7=!0x0;else{if(!_0x5fd95b||!_0x5fd95b['isInContent'])continue;if(_0x428ff3['newRange']&&_0x428ff3['oldRange']&&_0x428ff3['newRange']['isEqual'](_0x428ff3['oldRange']))continue;_0x8eac75['add'](_0x5fd95b);}}}var _0x1ab950;return _0x8eac75['size']>0x0&&(_0x3aefb7=!!this['_joinWithAdjacentSuggestions'](_0x8eac75)||_0x3aefb7),_0x3aefb7;}),_0x4f4b31['model']['document']['registerPostFixer'](_0x15264c=>{let _0x5e8228=!0x1;for(const _0x191673 of _0x4f4b31['model']['document']['differ']['getChanges']())if('insert'==_0x191673['type'])for(const _0x30594b of this['_suggestions']['values']()){if(_0x30594b['isMultiRange']||!_0x30594b['isInContent'])continue;const _0x288ebb='formatBlock'==_0x30594b['type'],_0x5f2774=this['_getAttributeKey'](_0x30594b),_0x533ee2=_0x5f2774&&this['_isBlockAttribute'](_0x5f2774);if(!_0x288ebb&&!_0x533ee2)continue;const _0x477374=_0x30594b['getFirstRange']();if(_0x477374['start']['parent']!=_0x477374['end']['parent']&&!_0x477374['end']['isAtEnd']){const _0x348a95=_0x4f4b31['model']['createPositionAt'](_0x477374['start']['nodeAfter'],'end'),_0x201057=_0x4f4b31['model']['createRange'](_0x477374['start'],_0x348a95);_0x15264c['updateMarker'](_0x30594b['getFirstMarker'](),{'range':_0x201057}),_0x5e8228=!0x0;}}return _0x5e8228;}),_0x4f4b31['model']['document']['registerPostFixer'](_0x4d9c62=>this['_processAttributeChanges'](_0x4d9c62)),_0x4f4b31['model']['document']['registerPostFixer'](_0x504388=>!_0x504388['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x504388)),_0x4f4b31['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4f4b31['model']['document']['on']('change:data',(_0x28e28c,_0x41ca5f)=>{if(!_0x41ca5f['isLocal']||_0x41ca5f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2bf2ab=_0x4f4b31['model']['document']['differ']['getChanges']();if(0x0==_0x2bf2ab['length'])return;const _0x17da86=[],_0x28515b=_0x2bf2ab['filter'](_0x50d1bf=>'attribute'==_0x50d1bf['type']),_0x38f9a1=_0x2bf2ab['filter'](_0x4c83ea=>'insert'==_0x4c83ea['type']&&'$text'!=_0x4c83ea['name']);for(const _0x5a54e1 of _0x28515b)this['_isRegisteredAttribute'](_0x5a54e1['attributeKey'])&&_0x17da86['push']({'key':_0x5a54e1['attributeKey'],'newValue':_0x5a54e1['attributeNewValue'],'oldValue':_0x5a54e1['attributeOldValue'],'range':qt(_0x5a54e1['range'],_0x4f4b31['model'])});for(const _0x1ef53d of _0x38f9a1){if('rename'!=_0x1ef53d['action']&&'refresh'!=_0x1ef53d['action'])continue;const _0x2004a0=zt(_0x1ef53d['position']['nodeAfter'],_0x4f4b31['model']),_0x27d254=_0x1ef53d['before'];'rename'==_0x1ef53d['action']&&_0x17da86['push']({'key':u,'newValue':_0x1ef53d['name'],'oldValue':_0x27d254['name'],'range':_0x2004a0});for(const [_0x330291,_0x512f5c]of _0x27d254['attributes']){if(!this['_isRegisteredAttribute'](_0x330291))continue;const _0x3b082e=_0x1ef53d['attributes']['get'](_0x330291);_0x512f5c!==_0x3b082e&&_0x17da86['push']({'key':_0x330291,'newValue':_0x3b082e,'oldValue':_0x512f5c,'range':_0x2004a0});}for(const [_0x527b4e,_0x34e15d]of _0x1ef53d['attributes'])this['_isRegisteredAttribute'](_0x527b4e)&&(_0x27d254['attributes']['has'](_0x527b4e)||_0x17da86['push']({'key':_0x527b4e,'newValue':_0x34e15d,'oldValue':null,'range':_0x2004a0}));}0x0!=_0x17da86['length']&&_0x4f4b31['model']['enqueueChange'](_0x41ca5f,_0x54c9ae=>{const _0x3168be=_0x51edb1();for(const {range:_0xe1b014,key:_0x38fb90,oldValue:_0x131c25,newValue:_0x3da86b}of _0x17da86)this['markAttributeChange'](_0xe1b014,_0x38fb90,_0x131c25,_0x3da86b,{'groupId':_0x3168be});this['_reduceExistingSuggestions'](_0x54c9ae,_0x17da86);});},{'priority':'lowest'}),_0x4f4b31['model']['markers']['on']('update:suggestion',(_0x29fb1e,_0x5f1542,_0x51aaac)=>{if(null==_0x51aaac){const {id:_0x498c06}=this['_splitMarkerName'](_0x5f1542['name']),_0x27478e=this['_suggestions']['get'](_0x498c06);_0x27478e&&_0x27478e['addMarkerName'](_0x5f1542['name']);}}),_0x4f4b31['model']['document']['on']('change:data',()=>{const _0x811fa3=Array['from'](_0x4f4b31['model']['document']['differ']['getChangedMarkers']())['filter'](_0x34f400=>'suggestion'===this['_splitMarkerName'](_0x34f400['name'])['group']);if(0x0===_0x811fa3['length'])return;_0x811fa3['sort']((_0x208884,_0x50ca97)=>{const _0x17157f=_0x208884['data']['oldRange'],_0x2361f5=_0x50ca97['data']['oldRange'];return null===_0x17157f&&null===_0x2361f5?0x0:null===_0x17157f&&null!==_0x2361f5?-0x1:null!==_0x17157f&&null===_0x2361f5?0x1:_0x17157f['start']['isBefore'](_0x2361f5['start'])?-0x1:0x1;});const _0x8c4cbb=new Set(),_0x5e93f=new Set();for(const {name:_0xfde5f3,data:_0x180669}of _0x811fa3){const {id:_0x53d717}=this['_splitMarkerName'](_0xfde5f3);if(null===_0x180669['oldRange']){const _0x19b538=this['_handleNewSuggestionMarker'](_0xfde5f3);_0x5e93f['add'](_0x19b538);}else{const _0xf08c42=this['_suggestions']['get'](_0x53d717);null!==_0x180669['newRange']||_0xf08c42['isInContent']?(_0x8c4cbb['add'](_0xf08c42['head']),_0x5e93f['add'](_0xf08c42)):this['_removeSuggestion'](_0xf08c42);}}_0x5e93f['size']>0x0&&this['_refreshSuggestionsChain'](_0x5e93f);for(const _0x5683c2 of _0x8c4cbb)this['fire']('suggestionChanged',_0x5683c2);}),_0x4f4b31['model']['on']('applyOperation',(_0xb1fb9a,_0x2d921f)=>{const _0x344f45=_0x2d921f[0x0];if(!this['_suggestions']['size'])return;if(!_0x344f45['isDocumentOperation'])return;if(_0x344f45['batch']['isUndo']||!_0x344f45['batch']['isLocal'])return;let _0x41a6db,_0xb10065;switch(_0x344f45['type']){case'insert':_0x41a6db=_0x4f4b31['model']['createPositionAt'](_0x344f45['position']),_0xb10065=_0x41a6db['getShiftedBy'](_0x344f45['howMany']);break;case'split':_0x41a6db=_0x4f4b31['model']['createPositionAt'](_0x344f45['splitPosition']),_0xb10065=_0x4f4b31['model']['createPositionAt'](_0x344f45['moveTargetPosition']);break;case'move':_0x41a6db=_0x4f4b31['model']['createPositionAt'](_0x344f45['targetPosition']),_0xb10065=_0x41a6db['getShiftedBy'](_0x344f45['howMany']);break;default:return;}const _0xefa3bc=_0x4f4b31['model']['createRange'](_0x41a6db,_0xb10065);_0x4f4b31['model']['change'](()=>{for(const {suggestion:_0x1da5b2,meta:_0x16fed3}of this['_findSuggestions'](_0xefa3bc)){if(_0x1da5b2['isMultiRange'])continue;if('formatInline'==_0x1da5b2['type'])continue;const _0x32f3b1=this['_getAttributeKey'](_0x1da5b2);if(_0x32f3b1&&this['_isBlockAttribute'](_0x32f3b1)&&'split'!=_0x344f45['type'])continue;const _0x3cdce8=_0x1da5b2['data']&&_0x1da5b2['data']['multipleBlocks'];('formatBlock'!=_0x1da5b2['type']||'split'==_0x344f45['type']&&!_0x3cdce8)&&(_0x16fed3['containsRangeInObject']||'insertion'==_0x1da5b2['type']&&_0x16fed3['isOwn']||_0x1da5b2['getFirstRange']()['containsRange'](_0xefa3bc)&&this['_breakSuggestionMarker'](_0x1da5b2,_0x41a6db,_0xb10065));}});},{'priority':'lowest'}),_0x4f4b31['model']['on']('deleteContent',(_0x5b626c,_0x51c8e6)=>{const _0x17824a=_0x51c8e6[0x0],_0x321151=_0x51c8e6[0x1];if(_0x321151&&_0x321151['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x17824a['isCollapsed'])return;const _0x545031=_0x4f4b31['model']['schema'],{start:_0x2c183f,end:_0x592472}=_0x17824a['getFirstRange'](),_0x5bfa57=_0x2c183f['nodeAfter']&&_0x545031['isLimit'](_0x2c183f['nodeAfter'])?null:_0x545031['getNearestSelectionRange'](_0x2c183f,'forward'),_0xebaead=_0x592472['nodeBefore']&&_0x545031['isLimit'](_0x592472['nodeBefore'])?null:_0x545031['getNearestSelectionRange'](_0x592472,'backward'),_0x4c3769=_0x4f4b31['model']['createRange'](_0x5bfa57?_0x5bfa57['start']:_0x2c183f,_0xebaead?_0xebaead['end']:_0x592472);_0x4f4b31['model']['change'](_0x4403b3=>{this['markDeletion'](_0x4c3769);const _0xde779c=_0x4f4b31['model']['schema']['getNearestSelectionRange'](_0x4c3769['start']);_0x17824a['is']('documentSelection')?_0x4403b3['setSelection'](_0xde779c):_0x17824a['setTo'](_0xde779c);}),_0x5b626c['stop']();},{'priority':_0x49e83f['normal']+0xa}),_0x4f4b31['model']['on']('insertContent',(_0x5f0e3e,_0x3012c6)=>{const _0x6fdcab=_0x3012c6[_0x3012c6['length']-0x1];_0x6fdcab&&_0x6fdcab['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4f4b31['model']['change'](()=>{let _0xf63888=_0x4f4b31['model']['insertContent'](_0x3012c6[0x0],_0x3012c6[0x1],_0x3012c6[0x2],{'forceDefaultExecution':!0x0});if(!_0xf63888)return;_0x5f0e3e['return']=_0xf63888['clone']();const _0x4224b9=_0xf63888['end']['nodeBefore'],_0x4ef5a0=_0x4f4b31['model']['schema'];_0x4224b9&&_0x4ef5a0['isBlock'](_0x4224b9)&&!_0x4ef5a0['isObject'](_0x4224b9)&&(_0xf63888=_0x4f4b31['model']['createRange'](_0xf63888['start'],_0x4f4b31['model']['createPositionAt'](_0x4224b9,'end'))),this['markInsertion'](_0xf63888);}),_0x5f0e3e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3c4754=new O(_0x4f4b31,this['_suggestions']);_0x4f4b31['commands']['add']('acceptSuggestion',_0x3c4754),this['enableCommand']('acceptSuggestion');const _0x58c410=new R(_0x4f4b31,this['_suggestions']);_0x4f4b31['commands']['add']('discardSuggestion',_0x58c410),this['enableCommand']('discardSuggestion'),_0x4f4b31['commands']['add']('acceptAllSuggestions',new x(_0x4f4b31,_0x3c4754,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4f4b31['commands']['add']('discardAllSuggestions',new x(_0x4f4b31,_0x58c410,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4f4b31['commands']['add']('acceptSelectedSuggestions',new E(_0x4f4b31,_0x3c4754,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4f4b31['commands']['add']('discardSelectedSuggestions',new E(_0x4f4b31,_0x58c410,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4c8eec=_0x4f4b31['plugins']['get']('CommentsRepository');this['listenTo'](_0x4c8eec,'addComment',(_0x3b457e,{threadId:_0x42a025})=>{const _0x2fec04=this['_suggestions']['get'](_0x42a025);_0x2fec04&&_0x2fec04['commentThread']&&0x1===_0x2fec04['commentThread']['length']&&this['_updateSuggestionData'](_0x42a025,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4c8eec,'removeComment',(_0x75c07c,{threadId:_0x8f67aa})=>{const _0x2ac19c=this['_suggestions']['get'](_0x8f67aa);_0x2ac19c&&_0x2ac19c['commentThread']&&!_0x2ac19c['commentThread']['length']&&this['_updateSuggestionData'](_0x8f67aa,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x10db83){const _0x41828a=_0x213a9b([0x38,0x66,0x59,0x48,0x6c,0x47,0x74,0x4d,0x5a,0x51,0x37,0x71,0x53,0x68,0x36,0x75,0x4e,0x72,0x6f,0x76,0x44,0x7a,0x4a,0x45,0x64,0x4b,0x49,0x46,0x42,0x6d,0x50,0x54,0x67,0x55,0x69,0x32,0x57,0x58,0x33,0x61,0x6b,0x31,0x35,0x56,0x65,0x52,0x79,0x63,0x39,0x78,0x43,0x70,0x34,0x30,0x41,0x4c,0x6a,0x77,0x4f,0x73,0x6e,0x62]),_0x37fa9c=0x4235dd32,_0x4e2eac=0x4232beaa^_0x37fa9c,_0x214a69=window[_0x213a9b([0x44,0x61,0x74,0x65])][_0x213a9b([0x6e,0x6f,0x77])](),_0x41ce18=_0x10db83[_0x213a9b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x45fe26=new window[(_0x213a9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41df1e=>{_0x41ce18[_0x213a9b([0x6f,0x6e,0x63,0x65])](_0x213a9b([0x72,0x65,0x61,0x64,0x79]),_0x41df1e);}),_0x4ed024={[_0x213a9b([0x6b,0x74,0x79])]:_0x213a9b([0x45,0x43]),[_0x213a9b([0x75,0x73,0x65])]:_0x213a9b([0x73,0x69,0x67]),[_0x213a9b([0x63,0x72,0x76])]:_0x213a9b([0x50,0x2d,0x32,0x35,0x36]),[_0x213a9b([0x78])]:_0x213a9b([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]),[_0x213a9b([0x79])]:_0x213a9b([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]),[_0x213a9b([0x61,0x6c,0x67])]:_0x213a9b([0x45,0x53,0x32,0x35,0x36])},_0xb3fc35=_0x41ce18[_0x213a9b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x213a9b([0x67,0x65,0x74])](_0x213a9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a453f(){let _0x41c9ef,_0x5dee45=null,_0x3aa8e1=null;try{if(_0xb3fc35==_0x213a9b([0x47,0x50,0x4c]))return _0x213a9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41c9ef=_0x3d7cfc(),!_0x41c9ef)return _0x213a9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41c9ef[_0x213a9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3aa8e1=_0x4cef96(_0x41c9ef[_0x213a9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41c9ef[_0x213a9b([0x6a,0x74,0x69])])),await _0x3f7cb4()?_0x43c05e()?_0x59b75a()?_0x213a9b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x376e17()?(_0x41c9ef[_0x213a9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x213a9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5dee45=_0x1e80da(_0x213a9b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x41c9ef[_0x213a9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x213a9b([0x74,0x72,0x69,0x61,0x6c])&&(_0x5dee45=_0x1e80da(_0x213a9b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x267bbf()):_0x213a9b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x213a9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x213a9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x8fa012){return _0x213a9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59b75a(){const _0x290f62=[_0x213a9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x213a9b([0x74,0x72,0x69,0x61,0x6c])][_0x213a9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41c9ef[_0x213a9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x214a69/0x3e8:0xe10*_0x4e2eac;return _0x41c9ef[_0x213a9b([0x65,0x78,0x70])]<_0x290f62;}function _0x43c05e(){const _0x20634c=_0x41c9ef[_0x213a9b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x20634c)return!0x1;if(_0x20634c[_0x213a9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213a9b([0x2a])))return!0x0;if(_0x20634c[_0x213a9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213a9b([0x54,0x43])))return!0x0;if(_0x20634c[_0x213a9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213a9b([0x52,0x54,0x43]))){if(_0x484e75())return!0x0;if(_0x21a2d3()||_0x1345fc())return!0x0;}return!0x1;}function _0x376e17(){const _0x3ac06a=_0x41c9ef[_0x213a9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ac06a||0x0==_0x3ac06a[_0x213a9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x360fb9}=new URL(window[_0x213a9b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ac06a[_0x213a9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x360fb9))return!0x0;const _0x309a4d=_0x360fb9[_0x213a9b([0x73,0x70,0x6c,0x69,0x74])](_0x213a9b([0x2e]));return _0x3ac06a[_0x213a9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1da710=>_0x1da710[_0x213a9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213a9b([0x2a])))[_0x213a9b([0x6d,0x61,0x70])](_0x290974=>_0x290974[_0x213a9b([0x73,0x70,0x6c,0x69,0x74])](_0x213a9b([0x2e])))[_0x213a9b([0x73,0x6f,0x6d,0x65])](_0x233f96=>_0x309a4d[_0x213a9b([0x65,0x76,0x65,0x72,0x79])]((_0x361303,_0x18273f)=>_0x233f96[_0x18273f]===_0x361303||_0x233f96[_0x18273f]===_0x213a9b([0x2a])));}function _0x267bbf(){return _0x5dee45&&_0x3aa8e1?new window[(_0x213a9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x176f39,_0x3f519e)=>{_0x5dee45[_0x213a9b([0x74,0x68,0x65,0x6e])](_0x176f39,_0x3f519e),_0x3aa8e1[_0x213a9b([0x74,0x68,0x65,0x6e])](_0x3b93fc=>{_0x3b93fc!=_0x213a9b([0x56,0x61,0x6c,0x69,0x64])&&_0x176f39(_0x3b93fc);},_0x3f519e);}):_0x5dee45||_0x3aa8e1||_0x213a9b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4cef96(_0x364d11,_0x4075d5){return new window[(_0x213a9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ae444=>{if(_0x39bb19())return _0x2ae444(_0x213a9b([0x56,0x61,0x6c,0x69,0x64]));_0x3ea8f0(),_0x41ce18[_0x213a9b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x213a9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1993d6=!0x1;const _0x47d4cc=_0x51edb1();function _0x53560f(_0x52c2fd){return!!_0x52c2fd&&(typeof _0x52c2fd===_0x213a9b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x52c2fd===_0x213a9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x52c2fd[_0x213a9b([0x74,0x68,0x65,0x6e])]===_0x213a9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x52c2fd[_0x213a9b([0x63,0x61,0x74,0x63,0x68])]===_0x213a9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xce58bc(_0x5e8d92){_0x359701(_0x5e8d92)[_0x213a9b([0x74,0x68,0x65,0x6e])](_0xdbc2b=>{if(!_0xdbc2b||_0xdbc2b[_0x213a9b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x213a9b([0x6f,0x6b]))return _0x213a9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1800b6(_0x4874fa(_0x47d4cc+_0x4075d5))!=_0xdbc2b[_0x213a9b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x213a9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x213a9b([0x56,0x61,0x6c,0x69,0x64]);})[_0x213a9b([0x74,0x68,0x65,0x6e])](_0x8e046f=>(_0x530d0c(),_0x8e046f),()=>{const _0xca962a=_0x16d385();return null==_0xca962a?(_0x530d0c(),_0x213a9b([0x56,0x61,0x6c,0x69,0x64])):_0x213a9b(_0x214a69-_0xca962a>(0x66395932^_0x37fa9c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x213a9b([0x74,0x68,0x65,0x6e])](_0x2ae444)[_0x213a9b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ae444(_0x213a9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x435903=0x420333b2^_0x37fa9c;function _0x530d0c(){const _0x32fc98=_0x213a9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1800b6(_0x4874fa(_0x364d11)),_0x16e3f3=_0x2b0f35(_0x1800b6(window[_0x213a9b([0x4d,0x61,0x74,0x68])][_0x213a9b([0x63,0x65,0x69,0x6c])](_0x214a69/_0x435903)));window[_0x213a9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x213a9b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32fc98,_0x16e3f3);}function _0x16d385(){const _0x1d7e68=_0x213a9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1800b6(_0x4874fa(_0x364d11)),_0x170aa7=window[_0x213a9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x213a9b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d7e68);return _0x170aa7?window[_0x213a9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b0f35(_0x170aa7),0x10)*_0x435903:null;}function _0x359701(_0x33b176){return new window[(_0x213a9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e2e84,_0x2a0589)=>{_0x33b176[_0x213a9b([0x74,0x68,0x65,0x6e])](_0x5e2e84,_0x2a0589),window[_0x213a9b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a0589,0x423409f2^_0x37fa9c);});}}_0x41ce18[_0x213a9b([0x6f,0x6e])](_0x213a9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x61bce1,_0x105eed)=>{if(_0x105eed[0x0]!=_0x364d11)return _0x2ae444(_0x213a9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x105eed[0x1]={..._0x105eed[0x1],[_0x213a9b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x47d4cc};},{[_0x213a9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x213a9b([0x68,0x69,0x67,0x68])}),_0x41ce18[_0x213a9b([0x6f,0x6e])](_0x213a9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x52f46e=>{_0x53560f(_0x52f46e[_0x213a9b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1993d6=!0x0,_0xce58bc(_0x52f46e[_0x213a9b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x213a9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x213a9b([0x6c,0x6f,0x77])}),_0x45fe26[_0x213a9b([0x74,0x68,0x65,0x6e])](()=>{_0x1993d6||_0x2ae444(_0x213a9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39bb19(){return _0x41ce18[_0x213a9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x213a9b([0x76,0x69,0x65,0x77])][_0x213a9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x213a9b([0x61,0x75,0x74,0x6f]);}function _0x3ea8f0(){_0x41ce18[_0x213a9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x213a9b([0x76,0x69,0x65,0x77])][_0x213a9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x213a9b([0x61,0x75,0x74,0x6f]);}}function _0x1e80da(_0x434b3d){const _0x437839=[new window[(_0x213a9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x255af3=>setTimeout(_0x255af3,0x423ce3fe^_0x37fa9c)),_0x45fe26[_0x213a9b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x213a9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f3677=>{let _0x258ccc=0x0;_0x41ce18[_0x213a9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x213a9b([0x6f,0x6e])](_0x213a9b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3a293b,_0x2fd147)=>{_0x2fd147[0x0][_0x213a9b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x258ccc++,_0x258ccc==(0x4235dcca^_0x37fa9c)&&(_0x5f3677(),_0x3a293b[_0x213a9b([0x6f,0x66,0x66])]());});}))];return window[_0x213a9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x213a9b([0x72,0x61,0x63,0x65])](_0x437839)[_0x213a9b([0x74,0x68,0x65,0x6e])](()=>_0x434b3d);}async function _0x1944d3(){await _0x45fe26,_0x41ce18[_0x213a9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x213a9b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xadbb9f,_0x41ce18[_0x213a9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x213a9b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xadbb9f,_0x41ce18[_0x213a9b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x213a9b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x484e75(){return _0x1edf46(_0x213a9b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x45ebc9(_0x213a9b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x213a9b([0x73,0x74,0x61,0x74,0x65])]==_0x213a9b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x21a2d3(){return _0x1edf46(_0x213a9b([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 _0x1345fc(){return _0x1edf46(_0x213a9b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x90a85f(_0x49965c){const _0x394249=_0x67604();_0x41ce18[_0x394249]=_0x213a9b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49965c,_0x49965c!=_0x213a9b([0x56,0x61,0x6c,0x69,0x64])&&_0x1944d3();}function _0x67604(){const _0x3b04fe=window[_0x213a9b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x213a9b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x213a9b([0x6e,0x6f,0x77])]())[_0x213a9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x213a9b([0x2e]),'');let _0x2bb43e=_0x213a9b([0x66]);for(let _0x211f53=0x0;_0x211f53<_0x3b04fe[_0x213a9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x211f53+=0x2){let _0x668eb8=window[_0x213a9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b04fe[_0x213a9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x211f53,_0x211f53+0x2));_0x668eb8>=_0x41828a[_0x213a9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x668eb8-=_0x41828a[_0x213a9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bb43e+=_0x41828a[_0x668eb8];}return _0x2bb43e;}function _0x3d7cfc(){const _0x2f7cd3=_0xb3fc35[_0x213a9b([0x73,0x70,0x6c,0x69,0x74])](_0x213a9b([0x2e]));if(0x3!=_0x2f7cd3[_0x213a9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x21d000(_0x2f7cd3[0x1]);function _0x21d000(_0x188570){const _0x58b3c5=_0x411308(_0x188570);return _0x58b3c5&&_0x24c79b()?_0x58b3c5:null;function _0x24c79b(){const _0x5a386b=_0x58b3c5[_0x213a9b([0x6a,0x74,0x69])],_0x30fc6a=window[_0x213a9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a386b[_0x213a9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a386b[_0x213a9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52f3be={..._0x58b3c5,[_0x213a9b([0x6a,0x74,0x69])]:_0x5a386b[_0x213a9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a386b[_0x213a9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52f3be[_0x213a9b([0x76,0x63])],_0x4874fa(_0x52f3be)==_0x30fc6a;}}}async function _0x3f7cb4(){let _0x2bef80=!0x0;try{const _0x382ac2=_0xb3fc35[_0x213a9b([0x73,0x70,0x6c,0x69,0x74])](_0x213a9b([0x2e])),[_0xde4b23,_0x3a050d,_0x294c0c]=_0x382ac2;return _0x14fc26(_0xde4b23),await _0x5cb5fa(_0xde4b23,_0x3a050d,_0x294c0c),_0x2bef80;}catch(_0x2b9fb7){return!0x1;}function _0x14fc26(_0x3db012){const _0x13a9e8=_0x411308(_0x3db012);_0x13a9e8&&_0x13a9e8[_0x213a9b([0x61,0x6c,0x67])]==_0x213a9b([0x45,0x53,0x32,0x35,0x36])||(_0x2bef80=!0x1);}async function _0x5cb5fa(_0x3facdc,_0x492643,_0x21c9f8){const _0x3875ed=window[_0x213a9b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x213a9b([0x66,0x72,0x6f,0x6d])](_0x36c48b(_0x21c9f8),_0x951014=>_0x951014[_0x213a9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ba5a7=new window[(_0x213a9b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x213a9b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3facdc+_0x213a9b([0x2e])+_0x492643),_0x1f04a8=window[_0x213a9b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x213a9b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f04a8)return;const _0x3ada7c=await _0x1f04a8[_0x213a9b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x213a9b([0x6a,0x77,0x6b]),_0x4ed024,{[_0x213a9b([0x6e,0x61,0x6d,0x65])]:_0x213a9b([0x45,0x43,0x44,0x53,0x41]),[_0x213a9b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x213a9b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x213a9b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f04a8[_0x213a9b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x213a9b([0x6e,0x61,0x6d,0x65])]:_0x213a9b([0x45,0x43,0x44,0x53,0x41]),[_0x213a9b([0x68,0x61,0x73,0x68])]:{[_0x213a9b([0x6e,0x61,0x6d,0x65])]:_0x213a9b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ada7c,_0x3875ed,_0x1ba5a7)||(_0x2bef80=!0x1);}}function _0x411308(_0x617a4f){return _0x617a4f[_0x213a9b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x213a9b([0x65,0x79]))?JSON[_0x213a9b([0x70,0x61,0x72,0x73,0x65])](_0x36c48b(_0x617a4f)):null;}function _0x36c48b(_0x3f96a5){return window[_0x213a9b([0x61,0x74,0x6f,0x62])](_0x3f96a5[_0x213a9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x213a9b([0x2b]))[_0x213a9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x213a9b([0x2f])));}function _0x4874fa(_0x485718){let _0x2ee365=0x1505;function _0x47f452(_0x3c2983){for(let _0x5dd39b=0x0;_0x5dd39b<_0x3c2983[_0x213a9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dd39b++){const _0x9aafee=_0x3c2983[_0x213a9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dd39b);_0x2ee365=(_0x2ee365<<0x5)+_0x2ee365+_0x9aafee,_0x2ee365&=_0x2ee365;}}function _0x2e985a(_0x81ccc7){Array[_0x213a9b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x81ccc7)?_0x81ccc7[_0x213a9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e985a):_0x81ccc7&&typeof _0x81ccc7==_0x213a9b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x213a9b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x81ccc7)[_0x213a9b([0x73,0x6f,0x72,0x74])]()[_0x213a9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x54dcc4,_0x129b06])=>{_0x47f452(_0x54dcc4),_0x2e985a(_0x129b06);}):_0x47f452(window[_0x213a9b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x81ccc7));}return _0x2e985a(_0x485718),_0x2ee365>>>0x0;}function _0x1800b6(_0x171f5e){return _0x171f5e[_0x213a9b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x213a9b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x213a9b([0x30]));}function _0x2b0f35(_0x4b2382){return _0x4b2382[_0x213a9b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x213a9b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x213a9b([0x6a,0x6f,0x69,0x6e])]('');}function _0x1edf46(_0x1f95d0){return _0x41ce18[_0x213a9b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x213a9b([0x68,0x61,0x73])](_0x1f95d0);}function _0x45ebc9(_0x336d85){return _0x41ce18[_0x213a9b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x213a9b([0x67,0x65,0x74])](_0x336d85);}function _0xadbb9f(){}function _0x213a9b(_0x524854){return _0x524854['map'](_0x46ccf7=>String['fromCharCode'](_0x46ccf7))['join']('');}_0x90a85f(await _0x1a453f());}(this);}set['adapter'](_0x2aeb1f){if(this['_adapter'])throw new _0x4053b2('track-changes-adapter-already-set',this);this['_adapter']=_0x2aeb1f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x27eed1=!0x1,toJSON:_0x3fe383=!0x1}={}){const _0x27ff81=[];for(const _0x12419a of this['_suggestions']['values']())_0x27eed1&&!_0x12419a['isInContent']||_0x27ff81['push'](_0x12419a);return _0x3fe383?_0x27ff81['map'](_0x275c10=>_0x275c10['toJSON']()):_0x27ff81;}['getSuggestion'](_0x3cf227){const _0x3f60c7=this['_suggestions']['get'](_0x3cf227);if(!_0x3f60c7)throw new _0x4053b2('track-changes-suggestion-not-found',this);return _0x3f60c7;}['hasSuggestion'](_0x4f0319){return this['_suggestions']['has'](_0x4f0319);}['addSuggestionData'](_0x512f49){const {authorId:_0x3933f3,id:_0x4a914f,attributes:_0x3a2d3b}=_0x512f49,[_0x198073,_0x425ea8]=_0x512f49['type']['split'](':'),_0x42c3d1=this['_suggestions']['get'](_0x4a914f)||this['_createSuggestion'](_0x198073,_0x425ea8,_0x4a914f,_0x3933f3,_0x3a2d3b);if(this['_addThreadToSuggestion'](_0x42c3d1),this['_checkSuggestionCorrectness'](_0x42c3d1,_0x198073,_0x425ea8||null,_0x3933f3),_0x42c3d1['createdAt']=_0x512f49['createdAt'],_0x42c3d1['_isDataLoaded']=!0x0,_0x3a2d3b&&_0x3a2d3b['@external']){const _0xce47a0=_0x3a2d3b['@external'],_0x3c0e26=this['_getExternalAuthor'](_0xce47a0['authorName']);_0x42c3d1['authoredAt']=_0xce47a0['createdAt'],_0x42c3d1['author']=_0x3c0e26,_0x42c3d1['isExternal']=!0x0;}else _0x42c3d1['authoredAt']=_0x512f49['createdAt'];switch(_0x512f49['data']&&(_0x42c3d1['data']=_0x512f49['data']),_0x512f49['attributes']&&(_0x42c3d1['attributes']=_0x512f49['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x42c3d1['_saved']=!0x0),this['_suggestionState']['get'](_0x42c3d1)){case'notReady':this['_suggestionState']['set'](_0x42c3d1,'dataReady');break;case'markerReady':_0x42c3d1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x42c3d1])),this['_refreshSuggestionsChain'](new Set([_0x42c3d1])),this['_suggestionState']['set'](_0x42c3d1,'ready'),this['fire']('suggestionLoaded',_0x42c3d1)):this['_suggestionState']['set'](_0x42c3d1,'removed');}return _0x42c3d1;}['acceptSuggestion'](_0x2bb105){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c4a41 of _0x2bb105['getAllAdjacentSuggestions']())_0x3c4a41['accept']();});});}['discardSuggestion'](_0x28c5e7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f74d6 of _0x28c5e7['getAllAdjacentSuggestions']())_0x2f74d6['discard']();});});}['enableCommand'](_0x2b0be3,_0x3cf816){const _0x553dbf=this['editor']['commands']['get'](_0x2b0be3);if(!_0x553dbf)throw new _0x4053b2('track-changes-command-not-found',this,{'commandName':_0x2b0be3});if(this['_enabledCommands']['has'](_0x553dbf))throw new _0x4053b2('track-changes-enable-command-twice',this,{'commandName':_0x2b0be3});this['_enabledCommands']['add'](_0x553dbf),_0x3cf816&&_0x553dbf['on']('execute',(_0x230fc6,_0x4e4ad1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4e4ad1['length']>0x0&&_0x4e4ad1[_0x4e4ad1['length']-0x1]&&_0x4e4ad1[_0x4e4ad1['length']-0x1]['forceDefaultExecution']?_0x4e4ad1['pop']():(_0x230fc6['return']=_0x3cf816((..._0x1bc5c7)=>_0x553dbf['execute'](..._0x1bc5c7,{'forceDefaultExecution':!0x0}),..._0x4e4ad1),_0x230fc6['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x52e4e9){let _0x11cb63,_0xaafcc0;const _0x40b5cf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x11cb63=_0x52e4e9();}catch(_0x57c507){_0xaafcc0=_0x57c507;}return _0x40b5cf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xaafcc0&&_0x4053b2['rethrowUnexpectedError'](_0xaafcc0,this),_0x11cb63;}['markInsertion'](_0x2ce67b,_0x5b5509=null,_0x2392c9={}){if(_0x2ce67b['isCollapsed'])return null;const _0x118584=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x243c83,meta:_0x37e8f9}of this['_findSuggestions'](_0x2ce67b,'insertion'))if(_0x37e8f9['isOwn']){if(!_0x37e8f9['isNextTo']){if(_0x37e8f9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x243c83,_0x2392c9))continue;return _0x243c83;}if(Xt(_0x243c83,_0x2392c9))return _0x243c83;this['_breakSuggestionMarker'](_0x243c83,_0x2ce67b['start'],_0x2ce67b['end']);break;}if(_0x5b5509==_0x243c83['subType']&&Xt(_0x243c83,_0x2392c9)){const _0xce2d58=_0x243c83['getFirstRange']();return _0xce2d58['start']['isEqual'](_0x2ce67b['end'])?this['_setSuggestionRange'](_0x243c83,this['_model']['createRange'](_0x2ce67b['start'],_0xce2d58['end'])):this['_setSuggestionRange'](_0x243c83,this['_model']['createRange'](_0xce2d58['start'],_0x2ce67b['end'])),_0x243c83;}}const _0x66553e=_0x51edb1(),_0x466962=_0x118584['id'],_0x5c9730=_0x5b5509?'insertion:'+_0x5b5509:'insertion',_0x2489c0=this['_setSuggestionData']({'id':_0x66553e,'type':_0x5c9730,'createdAt':new Date(),'authorId':_0x466962,'attributes':_0x2392c9});return this['_addSuggestionMarker'](_0x5c9730,_0x66553e,_0x466962,_0x2ce67b),_0x2489c0;}['markMultiRangeInsertion'](_0x448655,_0x53c06d='multi',_0xd972d1={}){const _0x29c577=this['editor']['plugins']['get']('Users')['me'],_0x1f3cf9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x53c06d,'join');for(const _0x19fec9 of this['getSuggestions']())if(_0x19fec9['author']['id']==_0x29c577['id']&&'insertion'==_0x19fec9['type']&&_0x19fec9['subType']==_0x53c06d&&Xt(_0x19fec9,_0xd972d1)&&(_0x1f3cf9(_0x19fec9['getRanges'](),_0x448655)||_0x1f3cf9(_0x448655,_0x19fec9['getRanges']()))){for(const _0x2d79b3 of _0x448655)_0x19fec9['addRange'](_0x2d79b3);return _0x19fec9;}for(const {suggestion:_0xf750b2,meta:_0x411d4d}of this['_findSuggestions'](_0x448655,'insertion')){if(!_0x411d4d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x411d4d['containsRangeInObject'])continue;if(!Xt(_0xf750b2,_0xd972d1))continue;let _0x3ae6fd=!0x0;for(const _0x5c6d29 of _0xf750b2['getRanges']())for(const _0x3632ef of _0x448655)if(!_0x5c6d29['containsRange'](_0x3632ef)){_0x3ae6fd=!0x1;break;}if(_0x3ae6fd)return _0xf750b2;}const _0x4b8a6e=_0x51edb1(),_0xadf554=_0x29c577['id'],_0x44c9fd='insertion:'+_0x53c06d,_0x582c45=this['_setSuggestionData']({'id':_0x4b8a6e,'type':_0x44c9fd,'createdAt':new Date(),'authorId':_0xadf554,'attributes':_0xd972d1});for(const _0x9f1a13 of _0x448655)this['_addSuggestionMarker'](_0x44c9fd,_0x4b8a6e,_0xadf554,_0x9f1a13,o['getMultiRangeId']());return _0x582c45;}['markInlineFormat'](_0x313c58,_0x120270,_0x6edb0a=null,_0x4f6319={}){if(_0x6edb0a=_0x6edb0a||Kt(_0x120270),_0x313c58['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x36df99=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6edb0a,'accept');return this['forceDefaultExecution'](()=>_0x36df99([_0x313c58],_0x120270,_0x4f6319)),null;}const _0x1808f2=this['editor']['plugins']['get']('Users')['me'],_0x580624=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x37f607,meta:_0x5d6b4c}of this['_findSuggestions'](_0x313c58,'insertion'))_0x5d6b4c['isOwn']&&!_0x5d6b4c['isInsideObject']&&_0x580624['push'](..._0x37f607['getRanges']());}const _0x5c34d9=function(_0x32c80b,_0x554e26){const _0x502b13=[];for(const _0x18c8f6 of _0x554e26){const _0x26a0b0=_0x32c80b['getIntersection'](_0x18c8f6);_0x26a0b0&&_0x502b13['push'](_0x26a0b0);}return _0x502b13;}(_0x313c58,_0x580624),_0x430530=function(_0x4bf359,_0x2d1028){const _0x441d74=[_0x4bf359];for(const _0x2d97cc of _0x2d1028){let _0x17f9c1=0x0;for(;_0x17f9c1<_0x441d74['length'];){const _0x29e849=_0x441d74[_0x17f9c1]['getDifference'](_0x2d97cc);_0x441d74['splice'](_0x17f9c1,0x1,..._0x29e849),_0x17f9c1+=_0x29e849['length'];}}return _0x441d74;}(_0x313c58,_0x580624);_0x5c34d9['length']&&this['_model']['change'](()=>{for(const _0x175709 of _0x5c34d9){const _0x41ed92=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6edb0a,'accept');this['forceDefaultExecution'](()=>_0x41ed92([_0x175709],_0x120270,_0x4f6319));}});for(const _0x3bed83 of _0x430530){let _0x3a09f9=null,_0x235e1b=_0x3bed83['start'],_0x380be1=_0x3bed83['end'];for(const {suggestion:_0x1efdb3,meta:_0x5616c6}of this['_findSuggestions'](_0x3bed83,'formatInline')){if(!_0x5616c6['isOwn'])continue;if(_0x1efdb3['subType']!=_0x6edb0a)continue;if(!Xt(_0x1efdb3,_0x4f6319))continue;const _0x5a9cb3=_0x1efdb3['getFirstRange']();if(_0x5a9cb3['containsRange'](_0x3bed83,!0x0))return null;_0x235e1b=_0x235e1b['isBefore'](_0x5a9cb3['start'])?_0x235e1b:_0x5a9cb3['start'],_0x380be1=_0x380be1['isAfter'](_0x5a9cb3['end'])?_0x380be1:_0x5a9cb3['end'],_0x3a09f9?_0x5a9cb3['start']['isBefore'](_0x3a09f9['getFirstRange']()['start'])?(_0x3a09f9['removeMarkers'](),_0x3a09f9=_0x1efdb3):_0x1efdb3['removeMarkers']():_0x3a09f9=_0x1efdb3;}const _0x50faa9=this['_model']['createRange'](_0x235e1b,_0x380be1);if(_0x3a09f9)this['_setSuggestionRange'](_0x3a09f9,_0x50faa9);else{const _0x1bc875=_0x51edb1(),_0x774a8a=_0x1808f2['id'];this['_setSuggestionData']({'id':_0x1bc875,'type':'formatInline:'+_0x6edb0a,'data':_0x120270,'createdAt':new Date(),'authorId':_0x774a8a,'attributes':_0x4f6319}),this['_addSuggestionMarker']('formatInline:'+_0x6edb0a,_0x1bc875,_0x774a8a,_0x50faa9);}}return null;}['markBlockFormat'](_0x258d42,_0x17862b,_0x381c84=[],_0x547dd0=null,_0x436fa7={}){_0x17862b['formatGroupId']||(_0x17862b['formatGroupId']=_0x17862b['commandName']),_0x17862b['multipleBlocks']=_0x258d42['is']('range'),_0x547dd0=_0x547dd0||Kt(_0x17862b);const _0x67b1d8=_0x381c84['map'](_0x22e161=>zt(_0x22e161,this['_model'])),_0x2a4a4b=_0x258d42['is']('range')?_0x258d42:zt(_0x258d42,this['_model']);if('never'===this['_trackFormatChanges']){const _0x130bd2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x547dd0,'accept');return this['forceDefaultExecution'](()=>_0x130bd2([_0x2a4a4b],_0x17862b,_0x436fa7)),null;}_0x67b1d8['push'](_0x2a4a4b);let _0x23bf42=!0x0;for(const _0x23eb15 of _0x67b1d8)if(!this['_rangeIsInLocalUserInsertion'](_0x23eb15)){_0x23bf42=!0x1;break;}if(_0x23bf42&&'always'!==this['_trackFormatChanges']){const _0x4e08e1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x547dd0,'accept');return this['forceDefaultExecution'](()=>_0x4e08e1([_0x2a4a4b],_0x17862b,_0x436fa7)),null;}let _0x893b4b=null,_0x277b78=_0x2a4a4b['start'],_0x5c790d=_0x2a4a4b['end'];for(const {suggestion:_0x591032,meta:_0x3edbd7}of this['_findSuggestions'](_0x2a4a4b,'formatBlock')){if(!_0x3edbd7['isOwn'])continue;if(_0x3edbd7['isNextTo']||_0x3edbd7['containsRangeInObject']||_0x3edbd7['isInsideObject'])continue;if(_0x591032['data']['formatGroupId']!=_0x17862b['formatGroupId'])continue;if(!Xt(_0x591032,_0x436fa7))continue;const _0xd319f1=_0x591032['getFirstRange']();if(_0x591032['subType']==_0x547dd0){if(_0xd319f1['containsRange'](_0x2a4a4b,!0x0))return null;_0x277b78=_0x277b78['isBefore'](_0xd319f1['start'])?_0x277b78:_0xd319f1['start'],_0x5c790d=_0x5c790d['isAfter'](_0xd319f1['end'])?_0x5c790d:_0xd319f1['end'],_0x893b4b?_0xd319f1['start']['isBefore'](_0x893b4b['getFirstRange']()['start'])?(_0x893b4b['removeMarkers'](),_0x893b4b=_0x591032):_0x591032['removeMarkers']():_0x893b4b=_0x591032;}else{const _0x44542f=_0x2a4a4b['getIntersection'](_0xd319f1);this['_cutOutSuggestionMarker'](_0x591032,_0x44542f);}}const _0x2bbcc3=this['editor']['plugins']['get']('Users')['me'],_0x1fcc2a=_0x51edb1(),_0x51d0c8=_0x2bbcc3['id'];if(_0x893b4b)return this['_setSuggestionRange'](_0x893b4b,this['_model']['createRange'](_0x277b78,_0x5c790d)),_0x893b4b;{const _0xe50246=this['_setSuggestionData']({'id':_0x1fcc2a,'type':'formatBlock:'+_0x547dd0,'data':_0x17862b,'createdAt':new Date(),'authorId':_0x51d0c8,'attributes':_0x436fa7});return this['_addSuggestionMarker']('formatBlock:'+_0x547dd0,_0x1fcc2a,_0x51d0c8,this['_model']['createRange'](_0x277b78,_0x5c790d)),_0xe50246;}}['markMultiRangeBlockFormat'](_0x3b9d65,_0x545d36,_0x6a2cae=[],_0x4fa41a=null,_0x28a914={}){_0x545d36['formatGroupId']||(_0x545d36['formatGroupId']=_0x545d36['commandName']);const _0x3e0f3c=_0x3b9d65[0x0];_0x545d36['multipleBlocks']=_0x3e0f3c['is']('range'),_0x4fa41a=_0x4fa41a||Kt(_0x545d36);const _0x2b5470=_0x6a2cae['map'](_0x27e1ee=>zt(_0x27e1ee,this['_model'])),_0x5385dc=_0x3e0f3c['is']('range')?_0x3b9d65:_0x3b9d65['map'](_0x4268e3=>zt(_0x4268e3,this['_model']));if('never'===this['_trackFormatChanges']){const _0x118ae8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fa41a,'accept');return this['forceDefaultExecution'](()=>_0x118ae8(_0x5385dc,_0x545d36,_0x28a914)),null;}_0x2b5470['push'](..._0x5385dc);let _0x35d460=!0x0;for(const _0x5c4f32 of _0x2b5470)if(!this['_rangeIsInLocalUserInsertion'](_0x5c4f32)){_0x35d460=!0x1;break;}if(_0x35d460&&'always'!==this['_trackFormatChanges']){const _0x5ab568=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fa41a,'accept');return this['forceDefaultExecution'](()=>_0x5ab568(_0x5385dc,_0x545d36,_0x28a914)),null;}const _0x103c97=this['editor']['plugins']['get']('Users')['me'];for(const _0x19d0f0 of this['getSuggestions']()){if(_0x19d0f0['author']['id']!=_0x103c97['id'])continue;if('formatBlock'!=_0x19d0f0['type']||_0x19d0f0['data']['formatGroupId']!=_0x545d36['formatGroupId'])continue;if(!Xt(_0x19d0f0,_0x28a914))continue;const _0x7f13ec=_0x19d0f0['subType']==_0x4fa41a;for(let _0x5ca7c3=0x0;_0x5ca7c3<_0x5385dc['length'];_0x5ca7c3++){const _0x49466e=_0x5385dc[_0x5ca7c3];for(const _0x13b371 of _0x19d0f0['getMarkers']()){const _0x47adf5=_0x13b371['getRange']();if(_0x49466e['isEqual'](_0x47adf5)){_0x7f13ec?(_0x5385dc['splice'](_0x5ca7c3,0x1),_0x5ca7c3--):_0x19d0f0['removeMarker'](_0x13b371['name']);break;}}}}if(0x0==_0x5385dc['length'])return null;const _0x8b03a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fa41a,'join');for(const _0x4fb9fb of this['getSuggestions']())if(_0x4fb9fb['author']['id']==_0x103c97['id']&&'formatBlock'==_0x4fb9fb['type']&&_0x4fb9fb['data']['formatGroupId']==_0x545d36['formatGroupId']&&_0x4fb9fb['subType']==_0x4fa41a&&Xt(_0x4fb9fb,_0x28a914)&&(_0x8b03a7(_0x4fb9fb['getRanges'](),_0x5385dc)||_0x8b03a7(_0x5385dc,_0x4fb9fb['getRanges']()))){for(const _0x4c5dfe of _0x5385dc)_0x4fb9fb['addRange'](_0x4c5dfe);return _0x4fb9fb;}const _0x5e94a9=_0x51edb1(),_0x108402=_0x103c97['id'],_0x3b8b88='formatBlock:'+_0x4fa41a,_0x2f8cb2=this['_setSuggestionData']({'id':_0x5e94a9,'type':_0x3b8b88,'data':_0x545d36,'createdAt':new Date(),'authorId':_0x108402,'attributes':_0x28a914});for(const _0x45a1fe of _0x5385dc)this['_addSuggestionMarker'](_0x3b8b88,_0x5e94a9,_0x108402,_0x45a1fe,o['getMultiRangeId']());return _0x2f8cb2;}['markDeletion'](_0xc70761,_0x309cca=null,_0x1b55ae={}){if(_0xc70761['isCollapsed'])return null;const _0x3bdc5f=this['editor']['plugins']['get']('Users')['me'],_0x1f6207=new _0x4d622b(_0xc70761['start'],_0xc70761['end']);for(const {suggestion:_0x18e623,meta:_0xe3a5fd}of this['_findSuggestions'](_0x1f6207,'insertion'))if(_0xe3a5fd['isOwn']&&!_0xe3a5fd['isNextTo']){if(_0x18e623['isMultiRange']){const _0x27a1c6=_0x18e623['getRanges']()['filter'](_0xb55d73=>'$graveyard'!=_0xb55d73['root']['rootName']);_0x27a1c6['every'](_0x39d6dc=>_0x1f6207['containsRange'](_0x39d6dc,!0x0))&&_0x18e623['discard']();if(_0x27a1c6['some'](_0x332566=>_0x332566['containsRange'](_0x1f6207,!0x0))){const _0x43c7bf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x309cca,'accept');return this['forceDefaultExecution'](()=>_0x43c7bf([_0x1f6207],null,_0x1b55ae)),null;}}else{const _0x4ba87d=_0x1f6207['getIntersection'](_0x18e623['getFirstRange']());null!==_0x4ba87d&&_0x18e623['_onDiscard']([_0x4ba87d],null,_0x1b55ae);}}if(_0x1f6207['detach'](),_0x1f6207['isCollapsed']||'$graveyard'==_0x1f6207['root']['rootName'])return null;let _0x252419=null,_0x4150c2=_0x1f6207['start'],_0x2ddcbd=_0x1f6207['end'];const _0x1af91c=this['_findSuggestions'](_0x1f6207,'deletion');for(const {suggestion:_0x2ab047,meta:_0x3ca11b}of _0x1af91c){const _0x560ee9=this['_model']['createRange'](_0x4150c2,_0x2ddcbd);if(_0x3ca11b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ca11b['containsRangeInObject']&&!_0x3ca11b['isInsideObject'])){if(_0x2ab047['isMultiRange']){if(!Xt(_0x2ab047,_0x1b55ae))continue;let _0x37669f=!0x0;for(const _0x41625c of _0x2ab047['getRanges']()){if(_0x41625c['containsRange'](_0x560ee9,!0x0))return _0x2ab047;_0x560ee9['containsRange'](_0x41625c)||(_0x37669f=!0x1);}_0x37669f&&_0x2ab047['discard']();}else{const _0x204943=_0x2ab047['getFirstRange']();if(_0x204943['containsRange'](_0x560ee9,!0x0))return _0x2ab047;if(!Xt(_0x2ab047,_0x1b55ae)){_0x560ee9['containsRange'](_0x204943)?_0x2ab047['removeMarkers']():_0x204943['containsPosition'](_0x4150c2)?_0x4150c2=_0x204943['end']:_0x204943['containsPosition'](_0x2ddcbd)&&(_0x2ddcbd=_0x204943['start']);continue;}_0x4150c2=_0x4150c2['isBefore'](_0x204943['start'])?_0x4150c2:_0x204943['start'],_0x2ddcbd=_0x2ddcbd['isAfter'](_0x204943['end'])?_0x2ddcbd:_0x204943['end'],_0x1b55ae=Object['assign']({},_0x2ab047['attributes']),_0x252419?_0x204943['start']['isBefore'](_0x252419['getFirstRange']()['start'])?(_0x252419['removeMarkers'](),_0x252419=_0x2ab047):_0x2ab047['removeMarkers']():_0x252419=_0x2ab047;}}}if(_0x252419)return this['_setSuggestionRange'](_0x252419,this['_model']['createRange'](_0x4150c2,_0x2ddcbd)),_0x252419;{const _0x28bf41=_0x51edb1(),_0x4271af=this['_model']['createRange'](_0x4150c2,_0x2ddcbd),_0x3b5ca3=_0x3bdc5f['id'],_0x19ca7d=_0x309cca?'deletion:'+_0x309cca:'deletion',_0x484c23=this['_setSuggestionData']({'id':_0x28bf41,'type':_0x19ca7d,'createdAt':new Date(),'authorId':_0x3b5ca3,'attributes':_0x1b55ae});return this['_addSuggestionMarker'](_0x19ca7d,_0x28bf41,_0x3b5ca3,_0x4271af),_0x484c23;}}['markMultiRangeDeletion'](_0x8db49c,_0x3edbde='multi',_0x3420c5={}){const _0x136056=this['editor']['plugins']['get']('Users')['me'],_0x162c52=_0x8db49c['map'](_0x100d6f=>new _0x4d622b(_0x100d6f['start'],_0x100d6f['end'])),_0x118c69=new Set();for(const {suggestion:_0x6f12e0,meta:_0x30eed9}of this['_findSuggestions'](_0x162c52,'insertion'))_0x30eed9['isOwn']&&!_0x30eed9['isNextTo']&&_0x118c69['add'](_0x6f12e0);for(const _0x335b0a of _0x118c69)if(_0x335b0a['isMultiRange']){const _0x3a6805=_0x335b0a['getRanges']();(!_0x335b0a['attributes']||!_0x335b0a['attributes']['skipNestingCheck'])&&(_0x3a6805['every'](_0x2a3a73=>_0x162c52['some'](_0xb3664b=>_0xb3664b['containsRange'](_0x2a3a73,!0x0)))&&_0x335b0a['discard']());if(_0x162c52['every'](_0x3cad1d=>_0x3a6805['some'](_0x2e2609=>_0x2e2609['containsRange'](_0x3cad1d,!0x0)))){const _0x5cd2a7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3edbde,'accept');return this['forceDefaultExecution'](()=>_0x5cd2a7(_0x8db49c,null,_0x3420c5)),null;}}else{const _0x2865da=_0x335b0a['getFirstRange']();_0x162c52['some'](_0xc0eef4=>_0xc0eef4['containsRange'](_0x2865da,!0x0))&&_0x335b0a['discard']();if(_0x162c52['every'](_0x23cfb9=>_0x2865da['containsRange'](_0x23cfb9,!0x0))){const _0x1b592b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3edbde,'accept');return this['forceDefaultExecution'](()=>_0x1b592b(_0x162c52,null,_0x3420c5)),null;}}const _0x26ffbd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3edbde,'join');let _0x5c6e4f=null;for(const _0x401be7 of this['getSuggestions']())if(_0x401be7['author']['id']==_0x136056['id']&&_0x401be7['isInContent']&&'deletion'==_0x401be7['type']&&_0x401be7['subType']==_0x3edbde&&Xt(_0x401be7,_0x3420c5)&&(_0x26ffbd(_0x401be7['getRanges'](),_0x162c52)||_0x26ffbd(_0x162c52,_0x401be7['getRanges']()))){if(_0x5c6e4f){if(_0x401be7['commentThread']&&_0x401be7['commentThread']['length'])continue;for(const _0x14fa54 of _0x401be7['getRanges']())_0x5c6e4f['isIntersectingWithRange'](_0x14fa54)||_0x5c6e4f['addRange'](_0x14fa54);_0x401be7['removeMarkers']();}else{_0x5c6e4f=_0x401be7;for(const _0x43162b of _0x162c52)_0x401be7['isIntersectingWithRange'](_0x43162b)||_0x401be7['addRange'](_0x43162b);}}if(_0x5c6e4f)return _0x5c6e4f;_0x118c69['clear']();for(const {suggestion:_0x16f3a5,meta:_0xebdf58}of this['_findSuggestions'](_0x162c52,'deletion'))_0xebdf58['isOwn']&&(this['_mergeNestedSuggestions']||!_0xebdf58['containsRangeInObject']&&!_0xebdf58['isInsideObject'])&&Xt(_0x16f3a5,_0x3420c5)&&_0x118c69['add'](_0x16f3a5);for(const _0xdf77a2 of _0x118c69){const _0x41a315=_0xdf77a2['getRanges']();if(!_0x3420c5||!_0x3420c5['skipNestingCheck']){if(_0x162c52['every'](_0x5b91a2=>_0x41a315['some'](_0x493b33=>_0x493b33['containsRange'](_0x5b91a2,!0x0))))return _0xdf77a2;}(!_0xdf77a2['attributes']||!_0xdf77a2['attributes']['skipNestingCheck'])&&(_0x41a315['every'](_0x115ae8=>_0x162c52['some'](_0x191b0e=>_0x191b0e['containsRange'](_0x115ae8,!0x0)))&&_0xdf77a2['discard']());}const _0x52a99=_0x51edb1(),_0x5ea6b5=_0x136056['id'],_0x29835b='deletion:'+_0x3edbde,_0x1b775f=this['_setSuggestionData']({'id':_0x52a99,'type':_0x29835b,'createdAt':new Date(),'authorId':_0x5ea6b5,'attributes':_0x3420c5});for(const _0x5c837e of _0x162c52)_0x5c837e['detach'](),_0x5c837e['isCollapsed']||'$graveyard'==_0x5c837e['root']['rootName']||this['_addSuggestionMarker'](_0x29835b,_0x52a99,_0x5ea6b5,_0x5c837e,o['getMultiRangeId']());return _0x1b775f;}['markAttributeChange'](_0x3a564b,_0x1823e1,_0x2f5c65,_0x461218,_0x3ed6b7){if(_0x3a564b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1d7fca=this['editor']['plugins']['get']('Users')['me']['id'],_0x529b81=Array['from'](this['_suggestions']['values']())['filter'](_0x3211d1=>'attribute'==_0x3211d1['type']&&_0x3211d1['data']['key']==_0x1823e1&&_0x3211d1['isIntersectingWithRange'](_0x3a564b));if('default'===this['_trackFormatChanges']){const _0x37e340=this['_findSuggestions'](_0x3a564b,'insertion')['filter'](({meta:_0x383f75})=>_0x383f75['isOwn']&&!_0x383f75['isInsideObject']&&!_0x383f75['isNextTo'])['map'](({suggestion:_0x19e776})=>_0x19e776);_0x529b81['unshift'](..._0x37e340);}const _0x11cea9=new Map([[_0x3a564b,_0x2f5c65]]);for(const _0x1a9f2b of _0x529b81){const _0x5aba5f='attribute'==_0x1a9f2b['type']?_0x1a9f2b['data']['oldValue']:void 0x0,_0x17447e=_0x1a9f2b['getFirstRange'](),_0x184f65=Array['from'](_0x11cea9['keys']())['find'](_0x558168=>_0x558168['isIntersecting'](_0x17447e));if(!_0x184f65)continue;const _0x446afb=_0x184f65['getDifference'](_0x17447e);this['_isBlockAttribute'](_0x1823e1)&&'insertion'==_0x1a9f2b['type']&&0x0!=_0x446afb['length']||(_0x11cea9['delete'](_0x184f65),_0x446afb['forEach'](_0x3a43b5=>{_0x11cea9['set'](_0x3a43b5,_0x2f5c65);}),'insertion'!=_0x1a9f2b['type']&&_0x5aba5f!=_0x461218&&_0x11cea9['set'](_0x184f65['getIntersection'](_0x17447e),_0x5aba5f));}const _0x30e5a9=[];for(const [_0x3d99f7,_0x332d53]of _0x11cea9){const _0x3acc1f=_0x51edb1(),_0x34d71a={'key':_0x1823e1,'oldValue':_0x332d53,'newValue':_0x461218};_0x1823e1['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':_0x1823e1});const _0x5e6491=('attribute:'+(_0x1823e1+'|'+Kt({'newValue':_0x461218})))['substring'](0x0,0x3c),_0x24cd48=this['_setSuggestionData']({'id':_0x3acc1f,'type':_0x5e6491,'data':_0x34d71a,'createdAt':new Date(),'authorId':_0x1d7fca,'attributes':_0x3ed6b7});_0x30e5a9['push'](_0x24cd48),this['_addSuggestionMarker'](_0x5e6491,_0x3acc1f,_0x1d7fca,_0x3d99f7);}return _0x30e5a9;}['enableDefaultAttributesIntegration'](_0x4b9c01){this['enableCommand'](_0x4b9c01,(_0x392233,..._0x43ff95)=>{this['_recordAttributeChanges'](()=>{_0x392233(..._0x43ff95);});});}['registerBlockAttribute'](_0x41d80e){this['_blockAttributeKeys']['add'](_0x41d80e);}['registerInlineAttribute'](_0x33bd73){this['_inlineAttributeKeys']['add'](_0x33bd73);}['_getAttributeKey'](_0x23032b){return'attribute'==_0x23032b['type']?_0x23032b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x30400b,_0x2bc142){const _0x4e59c0=_0x30400b['getFirstMarker']();this['_model']['change'](_0x38c00a=>{_0x38c00a['updateMarker'](_0x4e59c0,{'range':_0x2bc142});});}['_addThreadToSuggestion'](_0x550c94){const _0x4fb7a6=_0x550c94['id'],_0x2921ac=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4fb7a6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2921ac,'threadId':_0x4fb7a6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3cb267=this['_commentsRepository']['getCommentThread'](_0x4fb7a6);_0x3cb267['unbind']('isRemovable'),_0x3cb267['isRemovable']=!0x1,_0x550c94['commentThread']=_0x3cb267;}['_checkSuggestionCorrectness'](_0x1fadeb,_0x2aeda9,_0x5e49c6,_0x8790bb){if(_0x1fadeb['type']!=_0x2aeda9||_0x1fadeb['subType']!=_0x5e49c6||_0x1fadeb['creator']['id']!=_0x8790bb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4053b2('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2eb0cc,_0x18dcb0){const _0x49f1ca=_0x2eb0cc['getFirstRange']();if(_0x18dcb0['isEqual'](_0x49f1ca))_0x2eb0cc['removeMarkers']();else{if(_0x49f1ca['containsRange'](_0x18dcb0)){const _0x42eed8=this['_model']['createPositionAt'](_0x18dcb0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2eb0cc,this['_model']['createRange'](_0x49f1ca['start'],_0x42eed8));const _0x1355cc=_0x51edb1(),_0xbe8a5e=_0x2eb0cc['creator']['id'],_0x182dc8=_0x2eb0cc['type']+':'+_0x2eb0cc['subType'];this['_setSuggestionData']({'id':_0x1355cc,'type':_0x182dc8,'createdAt':new Date(),'authorId':_0xbe8a5e,'data':_0x2eb0cc['data'],'attributes':_0x2eb0cc['attributes']});const _0x16321d=this['_model']['createPositionAt'](_0x18dcb0['end']['parent'],'after'),_0x4bb5a0=this['_model']['createRange'](_0x16321d,_0x49f1ca['end']);this['_addSuggestionMarker'](_0x182dc8,_0x1355cc,_0xbe8a5e,_0x4bb5a0);}else{if(_0x49f1ca['containsPosition'](_0x18dcb0['start'])){const _0x34e980=this['_model']['createPositionAt'](_0x18dcb0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2eb0cc,this['_model']['createRange'](_0x49f1ca['start'],_0x34e980));}else{const _0x1ed2c8=this['_model']['createPositionAt'](_0x18dcb0['end']['parent'],'after');this['_setSuggestionRange'](_0x2eb0cc,this['_model']['createRange'](_0x1ed2c8,_0x49f1ca['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2d5737){for(const {suggestion:_0x26ac11,meta:_0x307c1f}of this['_findSuggestions'](_0x2d5737,'insertion')){if(!_0x307c1f['isOwn'])continue;const _0x1141f7=_0x26ac11['getRanges']();for(const _0x6b511d of _0x1141f7)if(!_0x2d5737['getDifference'](_0x6b511d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xa0d4b7){const _0x5cd192=this['editor']['plugins']['get']('Users')['getUser'](_0xa0d4b7);if(!_0x5cd192)throw new _0x4053b2('track-changes-user-not-found',this);return _0x5cd192;}['_getExternalAuthor'](_0x3593d8){const _0x2e26a5=this['editor']['plugins']['get']('Users'),_0x3dda21=_0x5237ce('external:'+_0x3593d8),_0x48252b=_0x2e26a5['getUser'](_0x3dda21);return _0x48252b||_0x2e26a5['addUser']({'id':_0x3dda21,'name':_0x3593d8});}['_createSuggestion'](_0x377c56,_0x14de55,_0x30b304,_0x4d6660,_0x4b6c5d){const _0x309ec9=this['_getAuthorFromId'](_0x4d6660),_0x2bb6c1=this['_suggestionFactory']['buildSuggestion'](_0x377c56,_0x14de55,_0x30b304,_0x309ec9,_0x4b6c5d,_0xea9e15=>{this['_updateSuggestionData'](_0x30b304,{'attributes':_0xea9e15});const _0x310cea=this['getSuggestion'](_0x30b304);this['_joinWithAdjacentSuggestions'](new Set([_0x310cea])),this['_refreshSuggestionsChain'](new Set([_0x310cea]));});return this['listenTo'](_0x2bb6c1,'accept',()=>{this['_updateSuggestionData'](_0x30b304,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2bb6c1,'discard',()=>{this['_updateSuggestionData'](_0x30b304,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x30b304,_0x2bb6c1),this['_suggestionState']['set'](_0x2bb6c1,'notReady'),_0x2bb6c1;}['_splitMarkerName'](_0x5ed196){const _0x595ebe=_0x5ed196['split'](':');return{'group':_0x595ebe[0x0],'type':_0x595ebe[0x1],'subType':_0x595ebe['length']>=0x5?_0x595ebe[0x2]:null,'id':_0x595ebe['length']<0x5?_0x595ebe[0x2]:_0x595ebe[0x3],'authorId':_0x595ebe['length']<0x5?_0x595ebe[0x3]:_0x595ebe[0x4],'markerCount':0x6==_0x595ebe['length']?_0x595ebe[0x5]:null};}['_breakSuggestionMarker'](_0x4cee1d,_0x1d9378,_0x37a81c){const _0x124415=_0x4cee1d['getFirstRange'](),_0x523dab=_0x124415['start'],_0x50f87c=_0x124415['end'];this['_setSuggestionRange'](_0x4cee1d,this['_model']['createRange'](_0x523dab,_0x1d9378));const _0x3614f4=_0x51edb1(),_0x12b4f1=_0x4cee1d['creator']['id'],_0x2977a7=_0x4cee1d['type']+(_0x4cee1d['subType']?':'+_0x4cee1d['subType']:'');this['_setSuggestionData']({'id':_0x3614f4,'type':_0x2977a7,'createdAt':new Date(),'authorId':_0x12b4f1,'originalSuggestionId':_0x4cee1d['id'],'attributes':_0x4cee1d['attributes'],'data':_0x4cee1d['data']});const _0x1beef2=this['_getAttributeKey'](_0x4cee1d);('formatBlock'==_0x4cee1d['type']||_0x1beef2&&this['_isBlockAttribute'](_0x1beef2))&&(_0x37a81c=this['_model']['createPositionBefore'](_0x37a81c['parent'])),this['_addSuggestionMarker'](_0x2977a7,_0x3614f4,_0x12b4f1,this['_model']['createRange'](_0x37a81c,_0x50f87c));}['_findSuggestions'](_0x45399e,_0x40d451=null){const _0x40c034=[],_0x29b603=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x45399e)||(_0x45399e=[_0x45399e]);for(const _0x5cd62d of this['getSuggestions']()){if(!_0x5cd62d['isInContent'])continue;if(_0x40d451&&_0x5cd62d['type']!=_0x40d451)continue;let _0x3e8492=!0x1;for(const _0x5ba825 of _0x5cd62d['getRanges']()){for(const _0x1fb1bb of _0x45399e){const _0xaeab6d=_0x1fb1bb['start']['isEqual'](_0x5ba825['end'])||_0x1fb1bb['end']['isEqual'](_0x5ba825['start']);if(_0xaeab6d||_0x1fb1bb['getIntersection'](_0x5ba825)){const _0x4bff00=_0x1fb1bb['containsRange'](_0x5ba825)&&Gt(this['_model']['schema'],_0x5ba825['start'],_0x1fb1bb),_0x33f9d9=_0x5ba825['containsRange'](_0x1fb1bb)&&Gt(this['_model']['schema'],_0x1fb1bb['start'],_0x5ba825);_0x40c034['push']({'suggestion':_0x5cd62d,'meta':{'isOwn':_0x29b603==_0x5cd62d['author'],'isNextTo':_0xaeab6d,'isInsideObject':_0x4bff00,'containsRangeInObject':_0x33f9d9}}),_0x3e8492=!0x0;break;}}if(_0x3e8492)break;}}return _0x40c034;}['_addSuggestionMarker'](_0x2611df,_0x26fd6b,_0x3f4b56,_0x3972e1,_0x22d4f9){this['_model']['change'](_0x299286=>{let _0x30af2e='suggestion:'+_0x2611df+':'+_0x26fd6b+':'+_0x3f4b56;_0x22d4f9&&(_0x30af2e=_0x30af2e+':'+_0x22d4f9),_0x299286['addMarker'](_0x30af2e,{'range':_0x3972e1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3347b2){const _0x1be59d=_0x3347b2['previous'],_0x508450=_0x3347b2['next'];_0x3347b2['previous']=null,_0x3347b2['next']=null,null!=_0x1be59d&&_0x1be59d['next']==_0x3347b2&&(_0x1be59d['next']=_0x508450),null!=_0x508450&&_0x508450['previous']==_0x3347b2&&(_0x508450['previous']=_0x1be59d),'ready'==this['_suggestionState']['get'](_0x3347b2)&&(this['_suggestionState']['set'](_0x3347b2,'removed'),this['fire']('suggestionUnloaded',_0x3347b2,_0x1be59d,_0x508450));}['_setSuggestionData'](_0x4929e4){const _0x3cdfe4=_0x4929e4['id'],_0x431875=this['addSuggestionData'](_0x4929e4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2b7901=this['editor']['plugins']['get']('PendingActions'),_0x5cdda4=_0x431875['hasComments'],_0x2ea214=_0x431875['subType']?_0x431875['type']+':'+_0x431875['subType']:_0x431875['type'],_0xee144b=this['editor']['locale'],_0x37fe55=_0x2b7901['add'](c(_0xee144b,'PENDING_ACTION_SUGGESTION')),_0x12a0a0={'id':_0x3cdfe4,'type':_0x2ea214,'hasComments':_0x5cdda4,'data':_0x4929e4['data']||null,'originalSuggestionId':_0x4929e4['originalSuggestionId']||null,'attributes':_0x431875['attributes']};this['_adapter']['addSuggestion'](_0x12a0a0)['then'](_0x5cf4e4=>{_0x431875['_saved']=!0x0,_0x2b7901['remove'](_0x37fe55),_0x5cf4e4&&_0x5cf4e4['createdAt']&&(this['_suggestions']['get'](_0x3cdfe4)['createdAt']=_0x5cf4e4['createdAt']);})['catch'](_0x3a80f3=>{throw _0x1f53a1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x431875['discard']();}),_0x431875['stopListening'](),this['_suggestions']['delete'](_0x431875['id']),this['_suggestionState']['delete'](_0x431875),_0x3a80f3;});}return _0x431875;}['_isBlockAttribute'](_0x2ed9f1){return this['_blockAttributeKeys']['has'](_0x2ed9f1);}['_updateSuggestionData'](_0x18a8a1,_0x577383){const _0x6ceff3=this['editor']['plugins']['get']('PendingActions'),_0x3e19cc=this['getSuggestion'](_0x18a8a1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3e19cc['_saved']){const _0x404f88=_0x6ceff3['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x18a8a1,_0x577383)['then'](()=>{_0x6ceff3['remove'](_0x404f88);});}else _0x3e19cc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x18a8a1,_0x577383);});}}['_getSuggestionData'](_0x4e0bfe){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4053b2('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4e0bfe);}['_handleNewSuggestionMarker'](_0x32871e){const {id:_0x107a2d,type:_0x3f2d93,subType:_0xcdbd9c,authorId:_0x40c7d3}=this['_splitMarkerName'](_0x32871e),_0x1a0899=this['_suggestions']['get'](_0x107a2d)||this['_createSuggestion'](_0x3f2d93,_0xcdbd9c,_0x107a2d,_0x40c7d3,{});switch(this['_checkSuggestionCorrectness'](_0x1a0899,_0x3f2d93,_0xcdbd9c,_0x40c7d3),this['_suggestionState']['get'](_0x1a0899)){case'notReady':this['_getSuggestionData'](_0x107a2d)['then'](_0x262147=>{let _0x518c2d=Promise['resolve']();_0x262147['hasComments']&&(_0x518c2d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x107a2d})),_0x518c2d['then'](()=>{this['addSuggestionData'](_0x262147)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1a0899,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x107a2d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1a0899,'ready'),this['fire']('suggestionLoaded',_0x1a0899);break;case'ready':this['fire']('suggestionChanged',_0x1a0899);}return _0x1a0899['addMarkerName'](_0x32871e),_0x1a0899;}['_refreshSuggestionsChain'](_0x228547){const _0x2453cc=Array['from'](_0x228547),_0x33c92d=_0x2453cc['filter'](_0x491c9e=>'attribute'==_0x491c9e['type']);this['_refreshAttributeSuggestionsChain'](_0x33c92d);const _0x5d29d3=_0x2453cc['filter'](_0x442dd2=>!_0x442dd2['isMultiRange']&&'attribute'!=_0x442dd2['type']),_0x1a8f31=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x546d97=>!_0x546d97['isMultiRange']&&'attribute'!=_0x546d97['type']),_0xeab8a3=_0x1a8f31['filter'](_0x19776a=>!_0x228547['has'](_0x19776a)),_0x168176=new Map(_0x1a8f31['map'](_0x7795b6=>[_0x7795b6,this['_suggestionFactory']['getSuggestionCallback'](_0x7795b6['type'],_0x7795b6['subType'],'chain')])),_0x59aea4=new Map(_0x1a8f31['map'](_0x3e23d9=>[_0x3e23d9,_0x3e23d9['getFirstRange']()])),_0x106e7e=new Set(),_0x3dccd7=new Set();for(let _0x17f68f=0x0;_0x17f68f<_0x5d29d3['length'];_0x17f68f++)_0x45a6d8(_0x5d29d3[_0x17f68f],_0x5d29d3,_0x17f68f+0x1);for(let _0x535878=0x0;_0x535878<_0x5d29d3['length'];_0x535878++)_0x45a6d8(_0x5d29d3[_0x535878],_0xeab8a3,0x0);const _0x11f610=new Set();for(let _0x5b21c0=0x0;_0x5b21c0<_0x5d29d3['length'];_0x5b21c0++){const _0x2827ce=_0x5d29d3[_0x5b21c0];!_0x3dccd7['has'](_0x2827ce)&&_0x2827ce['previous']&&(_0x11f610['add'](_0x2827ce['previous']),_0x2827ce['previous']['next']===_0x2827ce&&(_0x2827ce['previous']['next']=null),_0x2827ce['previous']=null),!_0x106e7e['has'](_0x2827ce)&&_0x2827ce['next']&&(_0x11f610['add'](_0x2827ce['next']),_0x2827ce['next']['previous']===_0x2827ce&&(_0x2827ce['next']['previous']=null),_0x2827ce['next']=null);}function _0x45a6d8(_0x4007ae,_0x17186b,_0x437caf){for(let _0xb2f91f=_0x437caf;_0xb2f91f<_0x17186b['length'];_0xb2f91f++){const _0xcd58ab=_0x5741c0(_0x4007ae,_0x17186b[_0xb2f91f]);_0xcd58ab&&(_0xcd58ab[0x0]['next']=_0xcd58ab[0x1],_0xcd58ab[0x1]['previous']=_0xcd58ab[0x0],_0x106e7e['add'](_0xcd58ab[0x0]),_0x3dccd7['add'](_0xcd58ab[0x1]));}}function _0x5741c0(_0x4bfbf0,_0x41afe6){if(_0x4bfbf0['author']['id']!==_0x41afe6['author']['id'])return null;const _0x18d345=_0x168176['get'](_0x4bfbf0)(_0x4bfbf0,_0x41afe6,_0x59aea4['get'](_0x4bfbf0),_0x59aea4['get'](_0x41afe6));if(!_0x18d345)return null;return _0x168176['get'](_0x41afe6)(_0x4bfbf0,_0x41afe6,_0x59aea4['get'](_0x4bfbf0),_0x59aea4['get'](_0x41afe6))?_0x18d345[0x1]['commentThread']&&_0x18d345[0x1]['commentThread']['length']?null:_0x18d345:null;}_0x11f610['size']&&this['_refreshSuggestionsChain'](_0x11f610);}['_refreshAttributeSuggestionsChain'](_0x137438){if(0x0==_0x137438['length'])return;const _0x284540=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c9d57=>'attribute'==_0x1c9d57['type']&&_0x1c9d57['_isDataLoaded']),_0x524b5a=[],_0x3a6c92=new Map();for(const _0x524a3e of _0x284540){const _0x498130=_0x5237ce(_0x524a3e['attributes']);_0x3a6c92['has'](_0x498130)||(_0x3a6c92['set'](_0x498130,_0x524b5a['length']),_0x524b5a['push']([]));const _0x45b83c=_0x3a6c92['get'](_0x498130);_0x524b5a[_0x45b83c]['push'](_0x524a3e);}!(function(){_0x524b5a['sort']((_0x2bf5b0,_0x202385)=>{const _0x128fed=_0x2bf5b0[0x0]['createdAt'],_0x2800ea=_0x202385[0x0]['createdAt'];return _0x128fed==_0x2800ea?_0x2bf5b0[0x0]['attributes']['groupId']<_0x202385[0x0]['attributes']['groupId']?-0x1:0x1:_0x128fed<_0x2800ea?-0x1:0x1;});for(const _0x437804 of _0x524b5a)_0x437804['sort']((_0x2ff3aa,_0x38107b)=>_0x2ff3aa['id']<_0x38107b['id']?-0x1:0x1);}());for(let _0x364b05=0x0;_0x364b05<_0x524b5a['length'];_0x364b05++){if(0x0==_0x524b5a[_0x364b05]['length'])continue;const _0x13d695=[];for(let _0x5ce44f=_0x364b05+0x1;_0x5ce44f<_0x524b5a['length'];_0x5ce44f++)0x0!=_0x524b5a[_0x5ce44f]['length']&&_0x228464(_0x524b5a[_0x364b05],_0x524b5a[_0x5ce44f])&&_0x13d695['push'](_0x5ce44f);for(const _0x430a85 of _0x13d695)_0x524b5a[_0x364b05]=_0x524b5a[_0x364b05]['concat'](_0x524b5a[_0x430a85]),_0x524b5a[_0x430a85]=[];}for(const _0x21bdf6 of _0x524b5a)for(let _0x2b7946=0x0;_0x2b7946<_0x21bdf6['length'];_0x2b7946++){const _0x25266d=_0x21bdf6[_0x2b7946+0x1]||null;_0x21bdf6[_0x2b7946]['next']!==_0x25266d&&(_0x21bdf6[_0x2b7946]['next']=_0x25266d);}for(const _0x4a0f84 of _0x524b5a)for(let _0x7b5b95=0x0;_0x7b5b95<_0x4a0f84['length'];_0x7b5b95++){const _0x249f61=_0x4a0f84[_0x7b5b95-0x1]||null;_0x4a0f84[_0x7b5b95]['previous']!==_0x249f61&&(_0x4a0f84[_0x7b5b95]['previous']=_0x249f61);}function _0x228464(_0x5d22ee,_0x36f2cf){if(_0x5d22ee[0x0]['attributes']['groupId']!==_0x36f2cf[0x0]['attributes']['groupId']&&_0x5d22ee[0x0]['author']!==_0x36f2cf[0x0]['author'])return!0x1;if(!function(_0x3d6855,_0x4eaade){if(!_0x3d6855['hasComments']&&!_0x4eaade['hasComments'])return!0x0;if(_0x3d6855['hasComments']&&_0x4eaade['hasComments'])return!0x1;if(_0x3d6855['hasComments']&&_0x4eaade['createdAt']<_0x3d6855['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4eaade['hasComments']&&_0x3d6855['createdAt']<_0x4eaade['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5d22ee[0x0],_0x36f2cf[0x0]))return!0x1;const _0x22a173=Ft(_0x5d22ee[0x0]['attributes'],'groupId'),_0x16d167=Ft(_0x36f2cf[0x0]['attributes'],'groupId');if(!_0x50923f(_0x22a173,_0x16d167))return!0x1;return!!_0x5d22ee['every'](_0x3a363f=>_0x36f2cf['some'](_0x54d86e=>_0x3a363f['getFirstRange']()['isEqual'](_0x54d86e['getFirstRange']())))&&_0x36f2cf['every'](_0x4b04c2=>_0x5d22ee['some'](_0x4f70bf=>_0x4b04c2['getFirstRange']()['isEqual'](_0x4f70bf['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3e891a){const _0x5018bd=Array['from'](_0x3e891a),_0xac34b0=this['getSuggestions']({'skipNotAttached':!0x0}),_0x73ef3d=_0xac34b0['filter'](_0x6a91ff=>!_0x3e891a['has'](_0x6a91ff)),_0x499ef8=new Map(_0x5018bd['map'](_0x1e9ff1=>[_0x1e9ff1,this['_suggestionFactory']['getSuggestionCallback'](_0x1e9ff1['type'],_0x1e9ff1['subType'],'join')])),_0x22ac0a=new Map(_0xac34b0['map'](_0x565798=>[_0x565798,_0x565798['getRanges']()]));for(let _0x583e81=0x0;_0x583e81<_0x5018bd['length'];_0x583e81++){if(_0x323970(this,_0x5018bd[_0x583e81],_0x5018bd,_0x583e81+0x1))return!0x0;}for(let _0x250b09=0x0;_0x250b09<_0x5018bd['length'];_0x250b09++){if(_0x323970(this,_0x5018bd[_0x250b09],_0x73ef3d,0x0))return!0x0;}return!0x1;function _0x323970(_0x56bdf6,_0x4408a8,_0x5d8665,_0x50e035){for(let _0x27f385=_0x50e035;_0x27f385<_0x5d8665['length'];_0x27f385++){const _0x4dc9b9=_0x5d8665[_0x27f385];if(_0x4dc9b9['type']!==_0x4408a8['type']||_0x4dc9b9['author']['id']!==_0x4408a8['author']['id']||_0x4dc9b9['subType']!==_0x4408a8['subType'])continue;if(!Qt(_0x4408a8,_0x4dc9b9))continue;if('attribute'==_0x4408a8['type']&&_0x4408a8['data']['oldValue']!=_0x4dc9b9['data']['oldValue'])continue;if('attribute'==_0x4408a8['type']&&_0x56bdf6['_isBlockAttribute'](_0x4408a8['data']['key']))continue;if('formatBlock'==_0x4408a8['type']){const _0x16251a=_0x56bdf6['editor']['model'],_0x4d6491=_0x4408a8['getContainedElement']();if(_0x4d6491&&(_0x16251a['schema']['isObject'](_0x4d6491)||_0x16251a['schema']['isLimit'](_0x4d6491)))continue;}const _0x5064ba=_0x499ef8['get'](_0x4408a8),_0x6a699b=_0x22ac0a['get'](_0x4408a8),_0x401730=_0x22ac0a['get'](_0x4dc9b9),_0x7bc3ce=_0x4408a8['commentThread']&&_0x4408a8['commentThread']['length'],_0x10e5ab=_0x4dc9b9['commentThread']&&_0x4dc9b9['commentThread']['length'];if(!_0x7bc3ce&&_0x5064ba(_0x401730,_0x6a699b))return _0x56bdf6['_joinSuggestions'](_0x4dc9b9,_0x4408a8),_0x22ac0a['delete'](_0x4408a8),!0x0;if(!_0x10e5ab&&_0x5064ba(_0x6a699b,_0x401730))return _0x56bdf6['_joinSuggestions'](_0x4408a8,_0x4dc9b9),_0x22ac0a['delete'](_0x4dc9b9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3746cc,_0x41d9fc){if(_0x3746cc['isMultiRange']){for(const _0x12cace of _0x41d9fc['getRanges']())_0x3746cc['addRange'](_0x12cace);}else{const _0x197019=_0x41d9fc['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3746cc,this['_model']['createRange'](_0x3746cc['getFirstRange']()['start'],_0x197019));}_0x41d9fc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x343f32,_0x413b7b,_0x553726){const _0x9b9649=_0x343f32['startsWith']('format')||_0x343f32['startsWith']('attribute')?'FORMATTING':_0x343f32['toUpperCase']();return c(this['editor']['locale'],_0x413b7b+'_'+_0x9b9649+'_SUGGESTION_ANNOUNCEMENT',_0x553726);}['_initAriaMarkerChangeAnnouncements'](){const _0x5aad8c=this['editor'];if(!_0x5aad8c['ui'])return;const {ariaLiveAnnouncer:_0x400489}=_0x5aad8c['ui'];_0x5281a7(this['_model'],({left:_0x46254f,entered:_0x4a44c9})=>{for(const _0x5365ab of _0x46254f){const {group:_0x89c97e,type:_0x59fa79}=this['_splitMarkerName'](_0x5365ab['name']);if('suggestion'===_0x89c97e){_0x400489['announce'](this['_getMarkerAnnouncementText'](_0x59fa79,'LEAVE'));break;}}for(const _0x3aecd2 of _0x4a44c9){const {group:_0xe5e188,type:_0x14a23f}=this['_splitMarkerName'](_0x3aecd2['name']);if('suggestion'===_0xe5e188){_0x400489['announce'](this['_getMarkerAnnouncementText'](_0x14a23f,'ENTER',_0x22054c(_0x45a5a5)));break;}}});}['_processAttributeChanges'](_0x5074f3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4b8dc7=this['editor'],_0x2cac0c=_0x4b8dc7['model']['document']['differ']['getChanges']();if(0x0==_0x2cac0c['length'])return!0x1;const _0x2790f9=[],_0x198784=_0x2cac0c['filter'](_0xb86ee5=>'attribute'==_0xb86ee5['type']),_0x3bfe90=_0x2cac0c['filter'](_0x3361b0=>'insert'==_0x3361b0['type']&&'$text'!=_0x3361b0['name']),_0xd5ba9e=_0x2cac0c['filter'](_0x43ad50=>'remove'==_0x43ad50['type']&&'$text'!=_0x43ad50['name']);for(const _0x210de6 of _0x198784)_0x2790f9['push']({'key':_0x210de6['attributeKey'],'newValue':_0x210de6['attributeNewValue'],'oldValue':_0x210de6['attributeOldValue'],'range':qt(_0x210de6['range'],_0x4b8dc7['model'])});for(const _0x4c3d7a of _0x3bfe90){const _0x9e2823=_0xd5ba9e['find'](_0x592a30=>_0x592a30['position']['isEqual'](_0x4c3d7a['position']));_0x9e2823&&_0x2790f9['push']({'key':u,'newValue':_0x4c3d7a['name'],'oldValue':_0x9e2823['name'],'range':_0x4b8dc7['model']['createRangeOn'](_0x4c3d7a['position']['nodeAfter'])});}return 0x0!=_0x2790f9['length']&&this['_reduceExistingSuggestions'](_0x5074f3,_0x2790f9);}['_processAttributeSuggestions'](_0x3ee02b){let _0x4c4448=!0x1;const _0xe2ef56=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e8b7b=>_0x4e8b7b['data']['newRange']&&_0x4e8b7b['name']['startsWith']('suggestion:attribute:'));for(const _0x51c091 of _0xe2ef56){const {subType:_0x478976,id:_0x3e46b8}=this['_splitMarkerName'](_0x51c091['name']),_0x647843=_0x478976['split']('|')[0x0];for(const _0x21c379 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x21c379['id']!=_0x3e46b8&&'attribute'==_0x21c379['type']&&_0x21c379['data']&&_0x21c379['data']['key']==_0x647843&&_0x21c379['getFirstRange']()['isIntersecting'](_0x51c091['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x21c379,_0x51c091['data']['newRange'],_0x3ee02b),_0x4c4448=!0x0);}return _0x4c4448;}['_recordAttributeChanges'](_0x44cc07){this['_recordAttributeSuggestions']=!0x0,_0x44cc07();}['_isRegisteredAttribute'](_0x12def5){const _0x329490=this['_isBlockAttribute'](_0x12def5),_0x129543=this['_inlineAttributeKeys']['has'](_0x12def5);return _0x329490||_0x129543;}['_reduceExistingSuggestions'](_0x2777af,_0x520f49){if(0x0==_0x520f49['length'])return!0x1;let _0x133c81=!0x1;for(const _0x67be6b of _0x520f49){const _0x10d2e7=this['_findSuggestions'](_0x67be6b['range'],'attribute')['filter'](_0x29ccc1=>!_0x29ccc1['meta']['isNextTo'])['map'](_0x167a10=>_0x167a10['suggestion']),_0x3cc48b=_0x5237ce({'newValue':_0x67be6b['newValue']});_0x10d2e7['filter'](_0x49d8ed=>{const [_0x36b4e0,_0x4f9e36]=_0x49d8ed['subType']['split']('|');return _0x36b4e0==_0x67be6b['key']&&_0x4f9e36!=_0x3cc48b;})['forEach'](_0x2928d4=>{this['_reduceSuggestionAttributeRange'](_0x2928d4,_0x67be6b['range'],_0x2777af),_0x133c81=!0x0;});}return _0x133c81;}['_reduceSuggestionAttributeRange'](_0x45e6b9,_0x453b2f,_0x5c89ae){const _0x3c40ea=_0x45e6b9['getFirstRange']()['getDifference'](_0x453b2f);0x0!==_0x3c40ea['length']?0x1!==_0x3c40ea['length']?this['_breakSuggestionMarker'](_0x45e6b9,_0x453b2f['start'],_0x453b2f['end']):this['_setSuggestionRange'](_0x45e6b9,_0x3c40ea[0x0]):_0x5c89ae['removeMarker'](_0x45e6b9['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x213729){this['_editor']=_0x213729,this['_model']=_0x213729['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x51cb35,_0x67750f,_0x31b2e5,_0x529f4c,_0x5aab78,_0x6327ff){return new o(this['_model'],{'type':_0x51cb35,'subType':_0x67750f,'id':_0x31b2e5,'author':_0x529f4c,'creator':_0x529f4c,'attributes':_0x5aab78,'onAttributesChange':_0x6327ff,'onAccept':(..._0x547c8a)=>this['getSuggestionCallback'](_0x51cb35,_0x67750f,'accept')(..._0x547c8a),'onDiscard':(..._0x3eaf49)=>this['getSuggestionCallback'](_0x51cb35,_0x67750f,'discard')(..._0x3eaf49)});}['registerCustomCallback'](_0x317def,_0x2c1be6,_0x267089,_0x16d2b0){const _0x21f726=_0x317def+':'+_0x2c1be6+':'+_0x267089;this['_customCallbacks']['set'](_0x21f726,_0x16d2b0);}['getSuggestionCallback'](_0x3ab9ab,_0x105575,_0x1e20c2){const _0x21ccae=_0x3ab9ab+':'+_0x105575+':'+_0x1e20c2;return this['_customCallbacks']['get'](_0x21ccae)||this['_defaultCallbacks']['get'](_0x3ab9ab+':'+_0x1e20c2);}['_registerDefaultCallbacks'](){const _0x3f9a19=()=>!0x1,_0x5a0b20=_0x3521dd=>{_0x3521dd['sort']((_0x271f89,_0x4ac5b3)=>_0x271f89['start']['isBefore'](_0x4ac5b3['start'])?0x1:-0x1),this['_model']['change'](_0x3b9050=>{for(const _0x1fb569 of _0x3521dd){let _0x1a203b;_0x1a203b=_0x1fb569['end']['isAtEnd']&&_0x1fb569['end']['parent']==_0x1fb569['start']['nodeAfter']?_0x3b9050['createSelection'](_0x1fb569['start']['nodeAfter'],'on'):_0x3b9050['createSelection'](_0x1fb569),this['_model']['deleteContent'](_0x1a203b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4e010f=(_0x1d91d2,_0x5512a0)=>{_0x5512a0&&this['_model']['change'](_0x278492=>{const {commandName:_0x4f0616,commandParams:_0x2d1dba=[]}=_0x5512a0,_0x128833=_0x1d91d2['map'](_0x31a5dc=>(Lt(_0x31a5dc)&&(_0x31a5dc=this['_model']['createRange'](_0x31a5dc['end'])),_0x31a5dc))['filter'](_0x4ea6ce=>'$graveyard'!==_0x4ea6ce['root']['rootName']);if(_0x128833['length']<0x1)return;const _0x191d7a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1beca9=>_0x4d622b['fromRange'](_0x1beca9));_0x278492['setSelection'](_0x128833);for(const _0x5e30eb of this['_editor']['commands']['commands']())_0x5e30eb['refresh']();_0x2d1dba['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4f0616,..._0x2d1dba);const _0x245be1=_0x191d7a['filter'](_0x238c56=>'$graveyard'!=_0x238c56['root']['rootName']);_0x245be1['length']>0x0&&_0x278492['setSelection'](_0x245be1);for(const _0x4056bc of _0x191d7a)_0x4056bc['detach']();});},_0x2ddc98=(_0x3f4b6d,_0x30aa32)=>0x1==_0x3f4b6d['length']&&0x1==_0x30aa32['length']&&_0x3f4b6d[0x0]['end']['isEqual'](_0x30aa32[0x0]['start']),_0x510ba4=(_0x2b3fe4,_0xb62064,_0x575939,_0x484246)=>Wt(_0x2b3fe4,_0xb62064,_0x575939,_0x484246)?[_0x2b3fe4,_0xb62064]:Wt(_0xb62064,_0x2b3fe4,_0x484246,_0x575939)?[_0xb62064,_0x2b3fe4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3f9a19),this['_defaultCallbacks']['set']('insertion:discard',_0x5a0b20),this['_defaultCallbacks']['set']('insertion:join',_0x2ddc98),this['_defaultCallbacks']['set']('insertion:chain',_0x510ba4),this['_defaultCallbacks']['set']('deletion:accept',_0x5a0b20),this['_defaultCallbacks']['set']('deletion:discard',_0x3f9a19),this['_defaultCallbacks']['set']('deletion:join',_0x2ddc98),this['_defaultCallbacks']['set']('deletion:chain',_0x510ba4),this['_defaultCallbacks']['set']('formatInline:accept',_0x4e010f),this['_defaultCallbacks']['set']('formatInline:discard',_0x3f9a19),this['_defaultCallbacks']['set']('formatInline:join',_0x2ddc98),this['_defaultCallbacks']['set']('formatInline:chain',_0x3f9a19),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4e010f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3f9a19),this['_defaultCallbacks']['set']('formatBlock:join',_0x2ddc98),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3f9a19),this['_defaultCallbacks']['set']('attribute:accept',_0x3f9a19),this['_defaultCallbacks']['set']('attribute:discard',(_0x43ce19,_0x3e28c1)=>{if(!_0x3e28c1)return;const _0x4f032f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x619081=>{if(_0x3e28c1['key']==u)for(const _0x6f23e4 of _0x43ce19){const _0xdd5280=_0x6f23e4['start']['nodeAfter'],_0x5ae69f=_0x3e28c1['oldValue'];_0x619081['rename'](_0xdd5280,_0x5ae69f);}else{if(_0x4f032f['_isBlockAttribute'](_0x3e28c1['key'])){for(const _0x570550 of _0x43ce19)void 0x0!==_0x3e28c1['oldValue']?_0x619081['setAttribute'](_0x3e28c1['key'],_0x3e28c1['oldValue'],_0x570550['start']['nodeAfter']):_0x619081['removeAttribute'](_0x3e28c1['key'],_0x570550['start']['nodeAfter']);}else{for(const _0x2ac842 of _0x43ce19)_0x3e28c1['oldValue']?_0x619081['setAttribute'](_0x3e28c1['key'],_0x3e28c1['oldValue'],_0x2ac842):_0x619081['removeAttribute'](_0x3e28c1['key'],_0x2ac842);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2ddc98);}}function Gt(_0x240e5f,_0x2f072d,_0x2f3f44){for(const _0x21e205 of _0x2f072d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x21e205['root']==_0x21e205)return!0x1;if(!_0x2f3f44['containsItem'](_0x21e205))return!0x1;if(_0x240e5f['isObject'](_0x21e205)||_0x240e5f['isLimit'](_0x21e205))return!0x0;}return!0x1;}function Lt(_0x26a8c8){return _0x26a8c8['end']['parent']==_0x26a8c8['start']['nodeAfter']&&_0x26a8c8['end']['isAtStart'];}function Jt(_0x42db64,_0x3f3316,_0x37630e,_0x5e3e54){const _0x2dfa7c=_0x35ab60=>!_0x35ab60['item']['is']('$textProxy')&&!_0x5e3e54['isObject'](_0x35ab60['item']),_0x1b7817=_0x42db64['start']['getLastMatchingPosition'](_0x2dfa7c),_0x27bdd8=_0x42db64['end']['getLastMatchingPosition'](_0x2dfa7c,{'direction':'backward'});return(!_0x42db64['start']['isEqual'](_0x1b7817)||!_0x42db64['end']['isEqual'](_0x27bdd8))&&(_0x1b7817['isBefore'](_0x27bdd8)?_0x37630e['updateMarker'](_0x3f3316,{'range':_0x37630e['createRange'](_0x1b7817,_0x27bdd8)}):_0x37630e['removeMarker'](_0x3f3316),!0x0);}function Kt(_0x50d63d){return _0x5237ce(_0x50d63d);}function Ht(_0x3b5add){const _0x1235c9=_0x3b5add['start']['nodeAfter'];return _0x1235c9&&_0x1235c9['is']('element');}function qt(_0x1870fb,_0x437368){return null==_0x1870fb['end']['nodeBefore']&&_0x1870fb['end']['parent']==_0x1870fb['start']['nodeAfter']?zt(_0x1870fb['start']['nodeAfter'],_0x437368):_0x1870fb;}function zt(_0x379c3a,_0x2a7c88){const _0x54e1f0=_0x2a7c88['schema']['isObject'](_0x379c3a)||_0x2a7c88['schema']['isSelectable'](_0x379c3a);return _0x2a7c88['createRange'](_0x2a7c88['createPositionAt'](_0x379c3a,'before'),_0x54e1f0?_0x2a7c88['createPositionAfter'](_0x379c3a):_0x2a7c88['createPositionAt'](_0x379c3a,'end'));}function Wt(_0xdb2834,_0x496851,_0x5ccd7b,_0x4979a6){return!!Qt(_0xdb2834,_0x496851)&&_0x5ccd7b['end']['isEqual'](_0x4979a6['start']);}function Qt(_0x35b36a,_0x5acca1){if(!_0x35b36a['_isDataLoaded']||!_0x5acca1['_isDataLoaded'])return!0x1;const _0x27b80f=new Set(Object['keys'](_0x35b36a['attributes'])),_0x37ff20=new Set(Object['keys'](_0x5acca1['attributes']));if(_0x27b80f['delete']('groupId'),_0x37ff20['delete']('groupId'),0x0==_0x27b80f['size']&&0x0==_0x37ff20['size'])return!0x0;if(_0x27b80f['size']!=_0x37ff20['size'])return!0x1;const _0x38ebfd={..._0x35b36a['attributes']},_0x46d63d={..._0x5acca1['attributes']};return delete _0x38ebfd['groupId'],delete _0x46d63d['groupId'],JSON['stringify'](_0x38ebfd)==JSON['stringify'](_0x46d63d);}function Xt(_0x179031,_0x307351){const _0x3942cc=Yt(_0x179031['attributes']),_0xc01b97=Yt(_0x307351);if(!_0x179031['_isDataLoaded'])return!0x1;for(const _0x45c495 of Object['keys'](_0xc01b97))if(!_0x50923f(_0x3942cc[_0x45c495],_0xc01b97[_0x45c495]))return!0x1;return!0x0;}function Yt(_0x13de39){const _0x132191=Object['assign']({},_0x13de39);return delete _0x132191['skipNestingCheck'],delete _0x132191['tablePasteChainId'],_0x132191;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x2f95b4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x324437,_0xa57b2d,_0x99907a,_0x5e92b0){super(),this['model']=_0xa57b2d,this['view']=_0x99907a,this['commentThreadController']=_0x5e92b0,this['_editor']=_0x324437,this['_acceptCommand']=_0x324437['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x324437['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3d1e8e,_0x1c84f9)=>_0x3d1e8e||_0x1c84f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x422a96=>_0x422a96&&this['_editor']['model']['canEditAt'](_0xa57b2d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x131e13=>_0x131e13&&this['_editor']['model']['canEditAt'](_0xa57b2d['getRanges']())),this['_pendingAction']=null,_0x99907a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x99907a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x99907a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x99907a,'change:isDirty',()=>{_0x99907a['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 _0x26c616=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x26c616);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x26b393{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x56bbce,_0x4bced7,_0x556845,_0x8e9869){super(_0x56bbce),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3a7dab(_0x56bbce,c(_0x56bbce,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4bced7['authoredAt']),this['bind']('authoredAt')['to'](_0x4bced7),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',_0x4bced7,'authoredAt',this,'descriptionParts',(_0xaa7758,_0x342568,_0x52c62e)=>{const _0x1c38cc=_0x52c62e['map'](_0x159d1d=>ls(_0x159d1d['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xaa7758-0x1,_0x4bced7['author']['name'],_0x342568?_0x8e9869['formatDateTime'](_0x342568):'',new DOMParser()['parseFromString'](_0x1c38cc,'text/html')['body']['textContent']]);}),this['focusables']=new _0x24252d(),this['focusTracker']=new _0x4093d6(),this['keystrokes']=new _0xe9a1d2(),this['focusCycler']=new _0x5f1b3f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x782cd7=>_0x782cd7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4bced7,this['_localUser']=_0x556845,this['_config']=_0x8e9869,_0x8e9869['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x33f266(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4ae06c}=this['_config'];this['commentsListView']=new _0x4ae06c(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',_0x3f1da3=>_0x3f1da3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1668fd,_0x49338f)=>_0x1668fd||!!_0x49338f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3389f9}=this['_config'],_0x256112=new _0x3389f9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c7aa4=_0x256112['commentInputView'];return _0x256112['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c7aa4,'value',(_0x5397b0,_0x17f1dd,_0x3f8016)=>!!_0x3f8016||_0x5397b0&&!_0x17f1dd),_0x3c7aa4['on']('submit',(_0x438a3d,_0x54be20)=>{this['fire']('addComment',_0x54be20),_0x3c7aa4['editor']['setData']('');}),_0x3c7aa4['on']('cancel',()=>this['focus']()),_0x3c7aa4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x256112;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x492838,_0x528af0,_0x23f20b,_0x358d52){super(_0x492838,_0x528af0,_0x23f20b,_0x358d52),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5e371c=>_0x5e371c&&_0x5e371c[0x0]?_0x5e371c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2721bf,_0x43b257)=>{let _0x350741='';for(const _0x564d4d of _0x2721bf)_0x350741+='<p>'+ls(_0x564d4d['content'],_0x564d4d['color'])+'</p>';return _0x43b257?_0x350741:ti(_0x350741,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x358d52['SuggestionView'](_0x492838,_0x528af0,{'formatDateTime':_0x358d52['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 _0x56b930=this['bindTemplate'],_0x5f5d11=[this['suggestionView']];return this['commentsListView']&&_0x5f5d11['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5f5d11['push'](this['commentThreadInputView']),_0x5f5d11['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x56b930['if']('isActive','ck-suggestion-wrapper--active'),_0x56b930['to']('type',_0xd1a4ac=>'ck-suggestion-'+_0xd1a4ac),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':_0x56b930['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5f5d11};}['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 _0x26b393{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1c2469,_0x50e7f5,_0x438cc7){super(_0x1c2469),this['_model']=_0x50e7f5,this['_config']=_0x438cc7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x50e7f5),this['acceptButton']=this['_createButton'](c(_0x1c2469,'Accept\x20suggestion'),_0x55d572,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x1c2469,'Discard\x20suggestion'),_0x3a0786,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x18f00d(_0x1c2469,_0x50e7f5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x24252d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4093d6(),this['keystrokes']=new _0xe9a1d2(),this['focusCycler']=new _0x5f1b3f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3af36d=>_0x3af36d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x15d02e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x15d02e['innerHTML']=this['description'],this['on']('change:description',(_0x8b5795,_0x1d05af,_0x59ddbf)=>{_0x15d02e['innerHTML']=_0x59ddbf;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3cf8bf=this['bindTemplate'],_0x182ba6=[{'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':_0x3cf8bf['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3cf8bf['to']('authoredAt',_0x229364=>this['_config']['formatDateTime'](_0x229364))}]}]},{'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']&&_0x182ba6['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':_0x182ba6}]};}['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'](_0xaff8ef,_0x59df19,_0x42df0c,_0x1ff64e,_0x174c0a){const _0x32e709=new _0x28a5af(this['locale']);return _0x32e709['set']({'label':_0xaff8ef,'icon':_0x59df19,'tooltip':!0x0,'tooltipPosition':_0x174c0a}),_0x32e709['extendTemplate']({'attributes':{'class':_0x42df0c}}),_0x32e709['on']('execute',()=>{this['fire'](_0x1ff64e,this['_model']['id']);}),_0x32e709;}['_setupKeyboardNavigation'](){const _0x1e25d7=this['element'];this['keystrokes']['listenTo'](_0x1e25d7);for(const _0x4890a4 of this['focusables'])this['focusTracker']['add'](_0x4890a4['element']),this['keystrokes']['listenTo'](_0x4890a4['element']);this['keystrokes']['set']('enter',(_0x54b08f,_0x290316)=>{_0x1e25d7===_0x54b08f['target']&&(this['focusCycler']['focusFirst'](),_0x290316());}),this['keystrokes']['set']('esc',(_0xc7a3a2,_0x2e3ed6)=>{_0x1e25d7!==_0xc7a3a2['target']&&(this['focus'](),_0x2e3ed6());});}}class d extends _0x1cfb98{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x15485e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1de3b0){super(_0x1de3b0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c6830=this['editor']['config'];_0x3c6830['define']('trackChanges.SuggestionThreadView',fe),_0x3c6830['define']('trackChanges.SuggestionView',we),_0x3c6830['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c6830['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x7952f7,_0x99bd03){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x232016,_0x42ceb2]of this['_handleControllerBuffer']){const _0x13126a=this['_suggestionToController']['has'](_0x232016);_0x13126a||_0x42ceb2?_0x13126a&&_0x42ceb2&&this['_destroyController'](_0x232016):this['_initializeController'](_0x232016);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x7952f7,_0x99bd03);}['init'](){const _0x12525d=this['editor'],_0x44f21e=_0x12525d['plugins']['get']('TrackChangesEditing'),_0x4f994d=_0x12525d['plugins']['get']('Annotations'),_0x242029=_0x12525d['plugins']['get']('EditorAnnotations'),_0x3a5a6d=_0x12525d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x242029['addSourceCollector'](()=>{const _0x3d1870=[];for(const [_0x161698,_0x170ce1]of Array['from'](this['_suggestionToController'])){const _0x2124af=_0x161698['getAllAdjacentSuggestions'](),_0x867829=[];for(const _0x1d8164 of _0x2124af){if(!_0x1d8164['isInContent'])continue;if(_0x1d8164['isMultiRange']){_0x867829['push'](..._0x1d8164['getRanges']());continue;}const _0x695f85=_0x1d8164['getFirstRange']();if(_0x867829['length']>0x0){const _0x5b5230=_0x867829[0x0]['getJoined'](_0x695f85);if(_0x5b5230){_0x867829[0x0]=_0x5b5230;continue;}}_0x867829['push'](_0x695f85);}_0x3d1870['push']([_0x170ce1['view'],_0x867829]);}return _0x3d1870;}),this['listenTo'](_0x44f21e,'suggestionLoaded',(_0x30ddbc,_0x52a933)=>{this['listenTo'](_0x52a933,'change:previous',(_0x2ea6f2,_0x52f3f2,_0x1c410f,_0x1548f3)=>{_0x52a933['isInContent']&&(null==_0x1c410f?(this['_updateController'](_0x1548f3['head']),this['_handleSuggestionControllerDelayed'](_0x52a933,!0x1)):(this['_updateController'](_0x1c410f['head']),null==_0x1548f3&&this['_handleSuggestionControllerDelayed'](_0x52a933,!0x0)));}),null!==_0x52a933['previous']?this['_updateController'](_0x52a933['head']):this['_handleSuggestionControllerDelayed'](_0x52a933,!0x1);}),this['listenTo'](_0x44f21e,'suggestionUnloaded',(_0xb8446d,_0xe14e88,_0x15ed33)=>{this['stopListening'](_0xe14e88,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe14e88),this['_suggestionToController']['has'](_0xe14e88)&&this['_destroyController'](_0xe14e88),_0x15ed33&&this['_updateController'](_0x15ed33['head']);}),this['listenTo'](_0x44f21e,'suggestionChanged',(_0x459dd8,_0x58eb87)=>{this['_updateController'](_0x58eb87);}),this['listenTo'](_0x4f994d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3a5a6d,'addComment',(_0x44dfac,{threadId:_0xc976fd,isFromAdapter:_0x4cc748})=>{if(_0x4cc748||!_0x44f21e['hasSuggestion'](_0xc976fd))return;const _0x17ef87=_0x44f21e['getSuggestion'](_0xc976fd);this['_suggestionToController']['get'](_0x17ef87)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x100bf9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ac25b;for(const _0x1ffb03 in _0x100bf9){const _0x2e3b3c=_0x1ffb03,_0x464fcd=_0x100bf9[_0x2e3b3c];if('trackChangesLicenseKeyValid'==_0x464fcd||'trackChangesLicenseKeyInvalid'==_0x464fcd||'trackChangesLicenseKeyExpired'==_0x464fcd||'trackChangesLicenseKeyDomainLimit'==_0x464fcd||'trackChangesLicenseKeyNotAllowed'==_0x464fcd||'trackChangesLicenseKeyEvaluationLimit'==_0x464fcd||'trackChangesLicenseKeyTrialLimit'==_0x464fcd||'trackChangesLicenseKeyUsageLimit'==_0x464fcd){delete _0x100bf9[_0x2e3b3c],_0x5ac25b=_0x464fcd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5ac25b&&_0x100bf9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5ac25b&&_0x100bf9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5ac25b&&_0x100bf9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5ac25b&&_0x100bf9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5ac25b&&_0x100bf9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5ac25b&&_0x100bf9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5ac25b&&_0x100bf9['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x210b6f=this['editor']['plugins']['get']('Annotations'),_0x4fe74a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32b178=Array['from'](_0x210b6f['activeAnnotations'],_0x43d9b6=>_0x43d9b6['innerView'])['filter'](_0x72b763=>this['_viewToController']['has'](_0x72b763)),_0x542850=[];for(const _0x79b95 of _0x32b178){const _0x43556b=this['_viewToController']['get'](_0x79b95)['model']['getAllAdjacentSuggestions']();_0x542850['push'](..._0x43556b['reduce']((_0x510635,_0xdc7bda)=>[..._0x510635,..._0xdc7bda['getMarkerNames']()],[]));}_0x4fe74a['activeMarkers']=_0x542850;}['_addUIComponentsToFactory'](){const _0x22ce2a=this['editor'],_0x2e478a=_0x22ce2a['locale'],_0x3ae966=c(_0x2e478a,'Track\x20changes'),_0x52457d=new _0x27465f([{'type':'switchbutton','model':new _0x432960({'withText':!0x0,'isToggleable':!0x0,'label':_0x3ae966,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x432960({'withText':!0x0,'label':c(_0x2e478a,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x432960({'withText':!0x0,'label':c(_0x2e478a,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x432960({'withText':!0x0,'label':c(_0x2e478a,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x432960({'withText':!0x0,'label':c(_0x2e478a,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x22ce2a['plugins']['has']('TrackChangesPreview')&&_0x52457d['addMany']([{'type':'separator'},{'type':'button','model':new _0x432960({'withText':!0x0,'label':c(_0x2e478a,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x376b52 of _0x52457d)if(ke(_0x376b52)){const _0x20466b=_0x22ce2a['commands']['get'](_0x376b52['model']['commandName']);_0x376b52['model']['bind']('isOn','isEnabled')['to'](_0x20466b,'value','isEnabled');}_0x22ce2a['ui']['componentFactory']['add']('trackChanges',_0x52f804=>this['_createToolbarButton'](_0x52f804,_0x52457d,_0x3ae966)),_0x22ce2a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x16e95a=>this['_createMenuBarMenu'](_0x16e95a,_0x52457d,_0x3ae966));}['_createToolbarButton'](_0xc5258,_0x46510f,_0x153b25){const _0x1ebb6a=_0x272f4f(_0xc5258,_0x250e47),_0x34d3da=this['editor']['commands']['get']('trackChanges');_0x1ebb6a['buttonView']['set']({'tooltip':_0x153b25,'label':_0x153b25,'icon':_0x6d4043}),_0x1ebb6a['buttonView']['bind']('isOn')['to'](_0x34d3da,'value'),_0x1ebb6a['buttonView']['on']('execute',()=>{_0x34d3da['execute'](),this['editor']['editing']['view']['focus']();}),_0x56a8b8(_0x1ebb6a,_0x46510f,{'role':'menu'});const _0x4721e2=[];for(const _0x138184 of _0x46510f)ke(_0x138184)&&_0x4721e2['push'](this['editor']['commands']['get'](_0x138184['model']['commandName']));const _0x2a0da3=_0x1ebb6a['buttonView'];return _0x2a0da3['actionView']['unbind']('isEnabled'),_0x2a0da3['arrowView']['unbind']('isEnabled'),_0x2a0da3['actionView']['bind']('isEnabled')['to'](_0x34d3da,'isEnabled'),_0x2a0da3['arrowView']['bind']('isEnabled')['toMany'](_0x4721e2,'isEnabled',(..._0x56c97f)=>_0x56c97f['some'](_0xca1fc6=>_0xca1fc6)),_0x1ebb6a['on']('execute',_0x5b4a5e=>{this['editor']['execute'](_0x5b4a5e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ebb6a;}['_createMenuBarMenu'](_0x3565b1,_0x596914,_0x45a660){const _0x2d4e9c=new _0xdc9e71(_0x3565b1),_0x22a455=this['editor']['commands']['get']('trackChanges');_0x2d4e9c['buttonView']['set']({'label':_0x45a660,'icon':_0x6d4043});const _0x180e32=new _0x649e3(_0x3565b1);for(const _0x2d1ccd of _0x596914){if('separator'==_0x2d1ccd['type']){_0x180e32['items']['add'](new _0x5b3c83(_0x3565b1));continue;}const _0x192044=new _0x18bd15(_0x3565b1,_0x2d4e9c),_0xc6413f=new _0x20173c(_0x3565b1),_0x5033dd=_0x2d1ccd['model'];_0xc6413f['bind'](...Object['keys'](_0x5033dd))['to'](_0x5033dd),_0xc6413f['delegate']('execute')['to'](_0x2d4e9c),_0xc6413f['on']('execute',()=>{this['editor']['execute'](_0x5033dd['commandName']),this['editor']['editing']['view']['focus']();}),_0x192044['children']['add'](_0xc6413f),_0x180e32['items']['add'](_0x192044);}return _0x2d4e9c['bind']('isEnabled')['to'](_0x22a455,'isEnabled'),_0x2d4e9c['panelView']['children']['add'](_0x180e32),_0x2d4e9c;}['_initializeController'](_0x5e8ec9){const _0x1cf07a=this['editor'],_0x3dc799=_0x1cf07a['config'],_0x558b97=_0x1cf07a['plugins']['get']('Annotations'),_0x6507a2=_0x1cf07a['plugins']['get']('CommentsRepository'),_0x2c8f2e=_0x1cf07a['plugins']['get']('EditorAnnotations'),_0x25add4=_0x1cf07a['plugins']['get'](_0x15485e)['me'],_0x3a850b=_0x3dc799['get']('trackChanges')['SuggestionThreadView'],_0x53f387=_0x3dc799['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xa9a19c,CommentThreadInputView:_0xf2ffb4}=_0x1cf07a['plugins']['get']('CommentsUI');let _0x59146b,_0x43896a,_0x372624;this['_annotationViews']['has'](_0x5e8ec9['id'])?(_0x43896a=this['_annotationViews']['get'](_0x5e8ec9['id']),_0x59146b=_0x43896a['mainView']):(_0x59146b=new _0x3a850b(_0x1cf07a['locale'],_0x5e8ec9,_0x25add4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3dc799['get']('comments.editorConfig'),'licenseKey':_0x3dc799['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3dc799['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3dc799['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3dc799['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x509a82(_0x3dc799['get']('locale'),_0x1cf07a['locale']),'CommentView':_0x3dc799['get']('comments')['CommentView'],'CommentsListView':_0xa9a19c,'CommentThreadInputView':_0xf2ffb4,'SuggestionView':_0x53f387}),_0x59146b['suggestionView']['acceptButton']['on']('execute',()=>{_0x1cf07a['editing']['view']['focus']();}),_0x59146b['suggestionView']['discardButton']['on']('execute',()=>{_0x1cf07a['editing']['view']['focus']();}),_0x43896a=_0x558b97['createAnnotationView'](this['editor']['locale'],_0x59146b),_0x43896a['bind']('isDirty')['to'](_0x59146b,'isDirty'),_0x43896a['bind']('length')['to'](_0x59146b),_0x43896a['bind']('type')['to'](_0x59146b,'type',_0x40e58b=>'suggestion-'+_0x40e58b),_0x59146b['on']('escape',()=>{_0x372624['fire']('escape');}),this['_annotationViews']['set'](_0x5e8ec9['id'],_0x43896a));const _0x2e0f90=_0x6507a2['createCommentThreadController'](_0x5e8ec9['commentThread'],_0x59146b),_0x546c16=new pe(_0x1cf07a,_0x5e8ec9,_0x59146b,_0x2e0f90),_0x452409=_0x5e8ec9['getAllAdjacentSuggestions']()['filter'](_0x413c41=>_0x413c41['isInContent']);_0x59146b['descriptionParts']=_0x1cf07a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x452409),this['_suggestionToController']['set'](_0x5e8ec9,_0x546c16),this['_viewToController']['set'](_0x59146b,_0x546c16),_0x372624=_0x558b97['createAnnotation']({'view':_0x43896a,'target':()=>{const _0x4c4e1e=[],_0x2f49d5=_0x5e8ec9['getAllAdjacentSuggestions']()['filter'](_0x5acd68=>_0x5acd68['isInContent']);for(const _0x4d8cc2 of _0x2f49d5)_0x4c4e1e['push'](..._0x4d8cc2['getMarkers']());return _0x4f45e5(_0x1cf07a['editing'],_0x4c4e1e);},'type':()=>'suggestion-'+_0x546c16['view']['type']}),_0x6507a2['_bindAnnotationToEditors'](_0x59146b,_0x372624),_0x558b97['add'](_0x372624),_0x2c8f2e['registerAnnotation'](_0x372624);}['_destroyController'](_0x348b6c){const _0x1e179a=this['editor']['plugins']['get']('CommentsRepository'),_0x477010=this['editor']['plugins']['get']('Annotations'),_0x19d1a6=this['_suggestionToController']['get'](_0x348b6c),_0x497e10=_0x19d1a6['view'],_0x3c97cf=_0x477010['getByInnerView'](_0x497e10);_0x1e179a['_unbindEditors'](_0x497e10),_0x3c97cf&&_0x477010['remove'](_0x3c97cf),this['_suggestionToController']['delete'](_0x348b6c),this['_viewToController']['delete'](_0x497e10),_0x19d1a6['destroy']();}['_updateController'](_0x1b2e06){if(!_0x1b2e06['isInContent']||!this['_suggestionToController']['has'](_0x1b2e06))return;const _0x3d7132=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ad271=this['_suggestionToController']['get'](_0x1b2e06),_0x51b355=_0x1b2e06['getAllAdjacentSuggestions']();_0x1ad271['view']['descriptionParts']=_0x3d7132['descriptionFactory']['getDescriptions'](_0x51b355);}['destroy'](){for(const _0x4645a5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4645a5);for(const _0x2ed75f of this['_annotationViews']['values']())_0x2ed75f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2d6d98){return'model'in _0x2d6d98;}class k extends _0x1cfb98{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x8ca3){this['editor']['plugins']['get'](p)['adapter']=_0x8ca3;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2f40fe){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2f40fe);}['getSuggestions']({skipNotAttached:_0x2d0776=!0x1,toJSON:_0x100424=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2d0776,'toJSON':_0x100424});}['getSuggestion'](_0x4ec057){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4ec057);}}const w=['Pagination'];class T extends _0x1cfb98{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3d64d6=this['editor'];if(_0x3d64d6['config']['define']('trackChangesData.editorCreator',_0x176561=>{const _0x3b1971=_0x3d64d6['model']['document']['getRootNames']()['reduce']((_0x17c9f2,_0x42e5c9)=>(_0x17c9f2[_0x42e5c9]='',_0x17c9f2),{});return _0x3d64d6['constructor']['create'](_0x3b1971,_0x176561);}),'function'!=typeof _0x3d64d6['config']['get']('trackChangesData')['editorCreator'])throw new _0x4053b2('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xe27950){return N(this['editor'],!0x0,_0xe27950);}['getDataWithDiscardedSuggestions'](_0x3e796f){return N(this['editor'],!0x1,_0x3e796f);}}class D extends _0x1cfb98{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4cd285){function _0x359908(_0x1b019c){return _0x1b019c['map'](_0x2f7582=>String['fromCharCode'](_0x2f7582))['join']('');}super(_0x4cd285),this['result']='end',_0x4cd285[_0x359908([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x359908([0x76,0x69,0x65,0x77])][_0x359908([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x359908([0x61,0x75,0x74,0x6f]),_0x4cd285[_0x359908([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x359908([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x359908([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x359908([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x359908([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(_0x5787c4){return void 0x0!==_0x5787c4['getRootsAttributes'];}async function N(_0x5edb5a,_0x3f39be,_0x2a7676){const _0x5ea906=_0x52f195(_0x5edb5a,w);_0x5ea906['plugins']['push'](p,D),_0x5ea906['rootsAttributes']=Ge(_0x5edb5a)?_0x5edb5a['getRootsAttributes']():void 0x0;const _0x18a7dd=document['createDocumentFragment'](),_0x5b0b95=_0x5edb5a['config']['get']('trackChangesData')['editorCreator'],_0x4478bb=await _0x5b0b95(_0x5ea906,()=>function(_0x1eaadc){const _0x1fd1d8=document['createElement']('div');return _0x1eaadc['appendChild'](_0x1fd1d8),_0x1fd1d8;}(_0x18a7dd));!function(_0x386b4f,_0x469ab0){const _0x57ed73=_0x386b4f['model']['document']['getRootNames']()['reduce']((_0x2aa861,_0x32ac73)=>(_0x2aa861[_0x32ac73]=_0x386b4f['data']['get']({'rootName':_0x32ac73}),_0x2aa861),{}),_0x47e778=_0x386b4f['plugins']['get']('Users')['users']['map'](_0x57e199=>({'id':_0x57e199['id'],'name':_0x57e199['name']})),_0x53145a=_0x386b4f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b0184=_0x386b4f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a5f3b=_0x469ab0['plugins']['get']('Users'),_0x254b24=_0x469ab0['plugins']['get']('TrackChangesEditing'),_0x21871a=_0x469ab0['plugins']['get']('CommentsRepository');for(const _0x7608f4 of _0x21871a['getCommentThreads']())_0x7608f4['remove']();for(const _0x4fed1e of _0x47e778)_0x5a5f3b['getUser'](_0x4fed1e['id'])||_0x5a5f3b['addUser'](_0x4fed1e);_0x5a5f3b['me']||_0x5a5f3b['useAnonymousUser']();for(const _0x47ed7d of _0x5b0184)_0x21871a['addCommentThread'](_0x47ed7d);for(const _0x250fc4 of _0x53145a)_0x254b24['addSuggestionData'](_0x250fc4);_0x469ab0['data']['set'](_0x57ed73);}(_0x5edb5a,_0x4478bb),_0x4478bb['execute'](_0x3f39be?'acceptAllSuggestions':'discardAllSuggestions');const _0x14995e=Ge(_0x4478bb)?_0x4478bb['getFullData'](_0x2a7676):_0x4478bb['data']['get'](_0x2a7676);return await _0x4478bb['destroy'](),_0x14995e;}class Me extends _0x26b393{['options'];constructor(_0x5ae4f8,_0x450cf3){super(_0x5ae4f8),this['options']=_0x450cf3,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'](_0x3fee76,_0x57ce07){if(!this['element'])return;const _0x2b8e72=[];for(const [_0x113b39,_0x3ed6df]of _0x3fee76){const _0x37bf06=document['createElement']('div');_0x37bf06['setAttribute']('data-ck-root-name',_0x113b39),_0x37bf06['className']=_0x3ed6df['classes']+'\x20ck-track-changes-preview__root-container',_0x37bf06['innerHTML']=_0x3ed6df['content'],_0x2b8e72['push'](_0x37bf06);}_0x57ce07(this['element'],_0x2b8e72),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x150716{constructor(_0x507342){super(_0x507342),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x59ffbe=this['editor'],_0x301f46=_0x59ffbe['locale'],_0x23ab40=_0x59ffbe['plugins']['get']('Dialog');let _0x22f3fa;const _0x46cc80=function(_0x5f0f6b){const _0x1bee24={};if('editables'in _0x5f0f6b['ui']['view']){for(const [_0x3ea4ba,_0x37d9ea]of Object['entries'](_0x5f0f6b['ui']['view']['editables']))_0x1bee24[_0x3ea4ba]=_0x37d9ea['element'];}else _0x1bee24[_0x5f0f6b['model']['document']['getRootNames']()[0x0]]=_0x5f0f6b['ui']['view']['editable']['element'];return _0x1bee24;}(_0x59ffbe),_0x18b5aa=function(_0x4a227a){let _0x13d3c3=0x0;for(const _0x9d5f34 of Object['values'](_0x4a227a))_0x13d3c3=Math['max'](_0x13d3c3,_0x9d5f34['getBoundingClientRect']()['width']);let _0x350baf=0x0;for(const _0x5a0f0e of Object['values'](_0x4a227a))_0x350baf+=_0x5a0f0e['getBoundingClientRect']()['height'];const _0x2e8f2c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x171a9c=Math['min'](_0x350baf,_0x2e8f2c);return{'width':_0x13d3c3,'height':_0x171a9c};}(_0x46cc80);_0x23ab40['show']({'id':'finalContentPreview','title':c(_0x301f46,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x301f46,{'dialogRects':_0x18b5aa}),'onHide':()=>{_0x22f3fa['detachFromDom']();},'onShow':()=>{_0x59ffbe['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3487c2=>{const _0x226809=this['_standarizeRootsData'](_0x3487c2,_0x59ffbe,_0x46cc80);_0x23ab40['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x226809,_0x59ffbe['config']['get']('trackChanges.preview.renderFunction'));}),_0x22f3fa=new _0x2539f6(_0x301f46,[_0x23ab40['view']]),_0x22f3fa['attachToDom'](),_0x22f3fa['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x59ffbe['once']('destroy',()=>{_0x22f3fa['detachFromDom']();});const _0x67e094=_0x23ab40['view']['headerView']['class'];_0x23ab40['view']['headerView']['class']=_0x67e094?_0x67e094+'\x20ck-reset_all':'ck-reset_all',_0x23ab40['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x23ab40['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x53b89c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4063e0=_0x53b89c['previewMode'],_0x47e2f0={};if('$labels'===_0x4063e0){for(const _0x208bb3 of _0x53b89c['getMergeFieldsIds']())_0x47e2f0[_0x208bb3]=_0x53b89c['getLabel'](_0x208bb3)||_0x208bb3;}else{const _0x343172='$defaultValues'===_0x4063e0?_0x53b89c['getDefaultValues']():_0x53b89c['getDataSetValues'](_0x4063e0,!0x0);for(const _0x3d5235 of Object['entries'](_0x343172)){const [_0x2f34d5,_0x411075]=_0x3d5235;_0x47e2f0[_0x2f34d5]=null!==_0x411075?_0x411075:_0x53b89c['getLabel'](_0x2f34d5)||_0x2f34d5;}}return{'mergeFieldsData':_0x47e2f0};}['_standarizeRootsData'](_0x3d117e,_0x445447,_0x11272f){let _0x265a4f;if('string'==typeof _0x3d117e){const _0x57ff1d=_0x445447['model']['document']['getRootNames']()[0x0];_0x265a4f={[_0x57ff1d]:_0x3d117e};}else _0x265a4f=_0x3d117e;const _0x1241a1=this['_fixMediaEmbeds'](_0x265a4f,_0x445447),_0x3a30e9=function(_0x65faf2,_0xffe3a7){for(const [_0x1da7aa,_0x9ad98e]of _0x65faf2)_0x9ad98e['classes']=_0xffe3a7[_0x1da7aa]['classList']['value']['replace']('ck-focused','');return _0x65faf2;}(this['_sortRoots'](_0x445447)['reduce']((_0x3aa327,_0x58aadd)=>(_0x3aa327['push']([_0x58aadd,{'content':_0x1241a1[_0x58aadd],'classes':''}]),_0x3aa327),[]),_0x11272f);return _0x3a30e9;}['_fixMediaEmbeds'](_0x5b7e88,_0x4b9aa5){if(!_0x4b9aa5['plugins']['has']('MediaEmbedEditing'))return _0x5b7e88;const _0xb80d18=_0x4b9aa5['plugins']['get']('MediaEmbedEditing');for(const [_0x593cd3,_0x44d586]of Object['entries'](_0x5b7e88)){const _0x482ceb=document['createElement']('div');_0x482ceb['innerHTML']=_0x44d586,(_0x482ceb['querySelectorAll']('figure.media')['forEach'](_0x24ad68=>{const _0x3b1384=_0x24ad68['querySelector']('oembed');if(_0x3b1384){const _0x1296f7=_0x3b1384['getAttribute']('url');if(_0x1296f7){const _0xf7c8e3=_0xb80d18['registry']['getMediaViewElement'](new _0x8728f(_0x4b9aa5['editing']['view']['document']),_0x1296f7,{'elementName':'','renderForEditingView':!0x0}),_0x5b5305=document['createElement']('div');_0x5b5305['classList']['add']('ck-media__wrapper'),_0xf7c8e3['render'](_0x5b5305,_0x4b9aa5['editing']['view']['domConverter']),_0x3b1384['replaceWith'](_0x5b5305);}}}),_0x5b7e88[_0x593cd3]=_0x482ceb['innerHTML']);}return _0x5b7e88;}['_sortRoots'](_0x51a297){if(!function(_0x4b7a8f){return void 0x0!==_0x4b7a8f['getRootsAttributes'];}(_0x51a297))return _0x51a297['model']['document']['getRootNames']();const _0x1433eb=[],_0x13e019=new Map();for(const _0x32af59 of _0x51a297['model']['document']['getRootNames']()){const _0x459995=_0x51a297['editing']['view']['getDomRoot'](_0x32af59)['getClientRects']()['item'](0x0);_0x1433eb['push'](_0x32af59),_0x13e019['set'](_0x32af59,_0x459995);}return _0x1433eb['sort']((_0x374494,_0x39ca67)=>{const _0x17584d=_0x13e019['get'](_0x374494),_0x165d54=_0x13e019['get'](_0x39ca67);return _0x17584d['y']-_0x165d54['y']||_0x17584d['x']-_0x165d54['x'];}),_0x1433eb;}}class te extends _0x1cfb98{static get['requires'](){return[T,_0x356e8d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57272a){super(_0x57272a),_0x57272a['commands']['add']('previewFinalContent',new re(this['editor'])),_0x57272a['config']['define']('trackChanges.preview.renderFunction',(_0x581af7,_0x34181f)=>{for(const _0x1a76bc of _0x34181f)_0x581af7['appendChild'](_0x1a76bc);});}}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};