@ckeditor/ckeditor5-track-changes 46.0.0-alpha.0 → 46.0.0-alpha.1

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,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x2f1852,Plugin as _0x292012,PendingActions as _0x5e1fd5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x223d51,ObservableMixin as _0x1a2a84,uid as _0x48a539,priorities as _0x2dd4ea,insertToPriorityArray as _0x4f8253,toArray as _0x3ad1a7,logWarning as _0x65020d,getEnvKeystrokeText as _0x2a7e57,FocusTracker as _0x4ffe1a,KeystrokeHandler as _0xa7055e,Collection as _0x35dfc3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xcc66c3,IconCancel as _0x4efbb1,IconTrackChanges as _0x5e888c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x21c3ef,View as _0x403f1d,ViewCollection as _0x3809fb,FocusCycler as _0x1a3c08,UIModel as _0x22563d,createDropdown as _0x58bd4d,SplitButtonView as _0xabaeb3,addListToDropdown as _0x2bfc48,MenuBarMenuView as _0xbcb731,MenuBarMenuListView as _0x323793,ListSeparatorView as _0x220548,MenuBarMenuListItemView as _0x9faef3,MenuBarMenuListItemButtonView as _0x6dd469,BodyCollection as _0x841c7e,Dialog as _0x1ac612}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x28ae71,hashObject as _0x439086,surroundingMarkersDetector as _0x329e8d,FOCUS_ANNOTATION_KEYSTROKE as _0x2b8b03,AriaDescriptionView as _0x462936,setupThreadKeyboardNavigation as _0x1430e2,trimHtml as _0x2b3f95,UserView as _0x5db3b3,LateFocusButtonView as _0x43d490,getDateTimeFormatter as _0x470902,getAllMarkersDomElementsSorted as _0x232dce,sanitizeEditorConfig as _0x107ef5}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x5c66d5,ModelLiveRange as _0x5f13a0,ModelLivePosition as _0x3b4ced,ViewDowncastWriter as _0x30e963}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x165164,toWidget as _0x8635b4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x955d7d,set as _0x2e600d,isEqual as _0x2d5d33,unset as _0xb18193,omit as Ut}from'es-toolkit/compat';import{Delete as _0x47ae77,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x445463}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x395624}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x2f1852{['_enabledCommands'];constructor(_0x56c648,_0x2ea32b){super(_0x56c648),this['_enabledCommands']=_0x2ea32b,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 _0x2377ac of this['editor']['commands']['commands']())_0x2377ac['affectsData']&&!this['_enabledCommands']['has'](_0x2377ac)&&_0x2377ac['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x34f5d6 of this['editor']['commands']['commands']())_0x34f5d6['affectsData']&&!this['_enabledCommands']['has'](_0x34f5d6)&&_0x34f5d6['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x2f1852{['_suggestions'];constructor(_0x4f0d61,_0x147001){super(_0x4f0d61),this['_suggestions']=_0x147001,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xb5bc38){const _0x31995e=this['_suggestions']['get'](_0xb5bc38);if(!_0x31995e)throw new _0x223d51('track-changes-accept-suggestion-not-found',this);const _0x1d07d1=_0x31995e['getRanges']();this['editor']['model']['canEditAt'](_0x1d07d1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x31995e);}}class M extends _0x2f1852{['_suggestions'];constructor(_0x40700f,_0x1de67b){super(_0x40700f),this['_suggestions']=_0x1de67b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x52638b){const _0x34fe9f=this['_suggestions']['get'](_0x52638b);if(!_0x34fe9f)throw new _0x223d51('track-changes-discard-suggestion-not-found',this);const _0x34bf32=_0x34fe9f['getRanges']();this['editor']['model']['canEditAt'](_0x34bf32)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x34fe9f);}}function ls(_0x310ef9,_0x1b4a62){let _0x377e3e='';return _0x377e3e+=_0x310ef9['split']('*')['map']((_0x1915cb,_0x5db4c0)=>_0x5db4c0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x1915cb)+'</span>':Yt(_0x1915cb))['join'](''),_0x1b4a62&&(_0x377e3e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1b4a62['value']+'\x22\x20title=\x22'+_0x1b4a62['title']+'\x22></span>'),_0x377e3e;}function Yt(_0x104e3f){const _0x36adfe=document['createElement']('span');return _0x36adfe['innerText']=_0x104e3f,_0x36adfe['innerHTML'];}function ts(_0x225275){return _0x225275['sort']((_0xe8d9e7,_0x4af53a)=>'attribute'===_0xe8d9e7['type']&&'attribute'!==_0x4af53a['type']?-0x1:'attribute'!==_0xe8d9e7['type']&&'attribute'===_0x4af53a['type']?0x1:'deletion'==_0xe8d9e7['type']&&'deletion'!=_0x4af53a['type']?-0x1:'deletion'!=_0xe8d9e7['type']&&'deletion'==_0x4af53a['type']?0x1:0x0);}function to(_0x427d91,_0xbe613){let _0xaa374e,_0x27fcc9=0x0;const _0x1a1948=[],_0x429ec1=_0xbe613['schema'];for(;_0x27fcc9<_0x427d91['length'];){const _0x20cbe6=_0x427d91[_0x27fcc9],_0x18ceea=_0x427d91[_0x27fcc9+0x1];_0xaa374e||(_0xaa374e=_0xbe613['createPositionBefore'](_0x20cbe6)),Zt(_0xbe613,_0x20cbe6,_0x18ceea)||(_0x1a1948['push'](_0xbe613['createRange'](_0xaa374e,_0x429ec1['isObject'](_0x20cbe6)?_0xbe613['createPositionAfter'](_0x20cbe6):_0xbe613['createPositionAt'](_0x20cbe6,'end'))),_0xaa374e=null),_0x27fcc9++;}return _0x1a1948;}function Zt(_0x5d34dc,_0x46189e,_0x14fab6){if(!_0x14fab6)return!0x1;const _0x453a33=_0x5d34dc['createPositionAfter'](_0x46189e),_0x2c0751=_0x5d34dc['createPositionBefore'](_0x14fab6);return _0x453a33['isTouching'](_0x2c0751);}function rs(_0x40b35d,_0x52826e,_0x25d95b){for(;_0x25d95b['length'];){const _0x8e3bb0=_0x25d95b['splice'](0x0,0x64);_0x40b35d['change'](()=>{for(const _0x48d74b of _0x8e3bb0)_0x48d74b['isInContent']&&_0x52826e['execute'](_0x48d74b['id']);});}}class $ extends _0x2f1852{['_command'];['_suggestions'];constructor(_0x15023a,_0x11c2df,_0x37756d){super(_0x15023a),this['_command']=_0x11c2df,this['_suggestions']=_0x37756d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5d7d09=Array['from'](this['_suggestions']['values']())['some'](_0x23272=>_0x23272['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5d7d09;}['execute'](){const _0x122064=ts(Array['from'](this['_suggestions']['values']()));for(const _0x55aeac of _0x122064){const _0x1215db=_0x55aeac['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1215db))return;}rs(this['editor']['model'],this['_command'],_0x122064);}}class B extends _0x2f1852{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2d377e,_0x726a36,_0x51aa63){super(_0x2d377e),this['_command']=_0x726a36,this['_suggestions']=_0x51aa63,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x36876f=this['editor']['model']['document']['selection'],_0x186a00=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x467a14,_0x13bbf9){const _0x4a14ba=Array['from'](_0x467a14['getRanges']()),_0x5373ed=new Set();for(const _0x1c1884 of _0x13bbf9)if(_0x1c1884['isInContent']){for(const _0x1e3a56 of _0x4a14ba)for(const _0x1f2c0d of _0x1c1884['getRanges']())(_0x1e3a56['isIntersecting'](_0x1f2c0d)||_0x467a14['isCollapsed']&&!_0x1c1884['isMultiRange']&&_0x1c1884['next']&&_0x1f2c0d['end']['isTouching'](_0x1e3a56['start']))&&_0x5373ed['add'](_0x1c1884);}return _0x5373ed;}(_0x36876f,_0x186a00),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4b1528=ts(Array['from'](this['_selectedSuggestions']));for(const _0x555f0d of _0x4b1528){const _0xa4c180=_0x555f0d['getRanges']();if(!this['editor']['model']['canEditAt'](_0xa4c180))return;}rs(this['editor']['model'],this['_command'],_0x4b1528);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x1a2a84(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x530e5b,_0x23ed0e){super(),this['id']=_0x23ed0e['id'],this['type']=_0x23ed0e['type'],this['subType']=_0x23ed0e['subType']||null,this['author']=_0x23ed0e['author'],this['creator']=_0x23ed0e['creator']||_0x23ed0e['author'],this['isExternal']=Boolean(_0x23ed0e['attributes']&&_0x23ed0e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x23ed0e['originalSuggestionId']||null,this['_model']=_0x530e5b,this['_onAccept']=_0x23ed0e['onAccept'],this['_onDiscard']=_0x23ed0e['onDiscard'],this['_onAttributesChange']=_0x23ed0e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x23ed0e['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 _0x120aa7=this;for(;_0x120aa7['previous'];)_0x120aa7=_0x120aa7['previous'];return _0x120aa7;}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'](_0xa14b6c){this['_markerNames']['add'](_0xa14b6c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4cb1b5=>this['_model']['markers']['get'](_0x4cb1b5))['filter'](_0x2a7f68=>_0x2a7f68);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x338b61=>{for(const _0x16843e of this['getMarkers']())_0x338b61['removeMarker'](_0x16843e);}),this['_markerNames']['clear']();}['removeMarker'](_0xd3704){this['_model']['change'](_0x50ff2f=>{_0x50ff2f['removeMarker'](_0xd3704);}),this['_markerNames']['delete'](_0xd3704);}['addRange'](_0xa67133){const _0x433879='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x433879),this['_model']['change'](_0x114733=>{_0x114733['addMarker'](_0x433879,{'range':_0xa67133,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x52bbaa){for(const _0x51d2c5 of this['getRanges']())if(_0x51d2c5['isIntersecting'](_0x52bbaa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3a870c=>_0x3a870c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x339439,_0x31dfda)=>[..._0x339439,..._0x31dfda['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xf31939=this['getRanges']();if(0x1!=_0xf31939['length'])return null;const _0x497685=_0xf31939[0x0],_0x19e1d3=_0x497685['start']['nodeAfter'],_0x251435=_0x497685['end']['nodeBefore'];return _0x19e1d3 instanceof _0x5c66d5?_0x19e1d3!=_0x251435?null:_0x19e1d3: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 _0xbad695=[];let _0x554ef0=this['head'];for(;_0x554ef0;)_0xbad695['push'](_0x554ef0),_0x554ef0=_0x554ef0['next'];return _0xbad695;}['setAttribute'](_0x305b17,_0x4a93a0){const _0x463b1d=_0x955d7d(this['attributes']);_0x2e600d(_0x463b1d,_0x305b17,_0x4a93a0),_0x2d5d33(_0x463b1d,this['attributes'])||(this['attributes']=_0x463b1d,this['_onAttributesChange'](_0x463b1d));}['removeAttribute'](_0x1689c2){const _0x14e3de=_0x955d7d(this['attributes']);_0xb18193(_0x14e3de,_0x1689c2),_0x2d5d33(_0x14e3de,this['attributes'])||(this['attributes']=_0x14e3de,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 _0x48a539()['substr'](0x1,0x5);}}function o(_0x34c55b,_0x1546fc,_0x2f3b7a){const _0x4a19a9=_0x34c55b['t'],t=_0x34c55b['t'];switch(_0x1546fc){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',_0x2f3b7a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2f3b7a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2f3b7a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2f3b7a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2f3b7a);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',_0x2f3b7a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2f3b7a);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',_0x2f3b7a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2f3b7a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2f3b7a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2f3b7a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2f3b7a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2f3b7a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2f3b7a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2f3b7a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2f3b7a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2f3b7a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2f3b7a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2f3b7a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2f3b7a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2f3b7a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2f3b7a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2f3b7a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2f3b7a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2f3b7a);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'},_0x2f3b7a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2f3b7a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2f3b7a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2f3b7a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2f3b7a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2f3b7a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2f3b7a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2f3b7a);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'},_0x2f3b7a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2f3b7a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2f3b7a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2f3b7a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2f3b7a);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'},_0x2f3b7a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2f3b7a);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'},_0x2f3b7a);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});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'},_0x2f3b7a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2f3b7a);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'},_0x2f3b7a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2f3b7a);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'},_0x2f3b7a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2f3b7a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2f3b7a);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'},_0x2f3b7a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2f3b7a);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 _0x4a19a9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2f3b7a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4a19a9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2f3b7a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2f3b7a);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'},_0x2f3b7a);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'},_0x2f3b7a);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'},_0x2f3b7a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1546fc;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x35c2b3,_0x52d19b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x35c2b3,this['_locale']=_0x52d19b;}['getDescriptions'](_0x3e721e){const _0x5f5856=[],_0x5cc883=new Set(),_0x277f79=new Set();for(let _0x1210b2=0x0;_0x1210b2<_0x3e721e['length'];_0x1210b2++){const _0x545d7e=_0x3e721e[_0x1210b2];if(!_0x545d7e['isInContent'])continue;const _0x77052b=this['_handleCustomCallbackDescription'](_0x545d7e);if(_0x77052b){if(null!=_0x545d7e['subType']){if(_0x5cc883['has'](_0x545d7e['subType']))continue;_0x5cc883['add'](_0x545d7e['subType']);}_0x5f5856['push'](_0x77052b);}else{if('attribute'==_0x545d7e['type']){const _0xcf7c1f=_0x545d7e['data']['key'];if(_0x277f79['has'](_0xcf7c1f))continue;_0x277f79['add'](_0x545d7e['data']['key']),_0xcf7c1f==m?this['_handleRenameSuggestionDescription'](_0x5f5856,_0x545d7e):this['_handleAttributeSuggestionDescription'](_0x5f5856,_0x545d7e);continue;}'insertion'!=_0x545d7e['type']&&'deletion'!=_0x545d7e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5f5856,_0x545d7e,_0x3e721e[_0x1210b2+0x1]);}}return this['_resolveDescriptionItems'](_0x5f5856);}['registerDescriptionCallback'](_0x60e403){this['_customCallbacks']['push'](_0x60e403);}['registerElementLabel'](_0x4bae5f,_0x3a88e7,_0x282871=_0x2dd4ea['normal']){'function'==typeof _0x4bae5f?_0x4f8253(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4bae5f,'label':_0x3a88e7,'priority':_0x282871}):this['_itemLabels']['set'](_0x4bae5f,_0x3a88e7);}['registerAttributeLabel'](_0x543888,_0x193544){this['_attributeLabels']['set'](_0x543888,_0x193544);}['getItemLabel'](_0x317548,_0x5aa98c=0x1){let _0x118bd0;for(const _0x47f362 of this['_itemLabelsCallbacks'])if(_0x47f362['matchingCallback'](_0x317548)){_0x118bd0=_0x47f362['label'];break;}return _0x118bd0||(_0x118bd0=this['_itemLabels']['get'](_0x317548['name'])),_0x118bd0?_0x118bd0(_0x5aa98c):0x1!==_0x5aa98c?_0x5aa98c+'\x20'+_0x317548['name']+'s':''+_0x317548['name'];}['_addDescriptionItems'](_0x1574c3,_0x52692b){const _0x38f512=_0x52692b['getFirstRange']()['getWalker'](),_0xb117ed='insertion'==_0x52692b['type']?'add':'remove';for(const _0x50460b of _0x38f512){const _0x40093f=_0x50460b['item'],_0x9c54b0=_0x1574c3[_0x1574c3['length']-0x1];if(_0x40093f['is']('$textProxy'))_0x9c54b0&&_0x9c54b0['type']['indexOf']('Container')>-0x1&&_0x1574c3['pop'](),_0x9c54b0&&'text'==_0x9c54b0['type']?_0x9c54b0[_0xb117ed]+=_0x40093f['data']:_0x1574c3['push']({'type':'text','add':'add'==_0xb117ed?_0x40093f['data']:'','remove':'remove'==_0xb117ed?_0x40093f['data']:''});else{if(this['_schema']['isObject'](_0x40093f)){const _0x1298c1=_0x40093f;if(_0x9c54b0&&_0x9c54b0['type']['indexOf']('Container')>-0x1&&_0x1574c3['pop'](),'elementEnd'==_0x50460b['type'])continue;_0x9c54b0&&_0x9c54b0['type']==_0xb117ed+'Object'&&_0x9c54b0['element']['name']==_0x1298c1['name']?_0x9c54b0['quantity']++:_0x1574c3['push']({'type':_0xb117ed+'Object','element':_0x1298c1,'quantity':0x1}),_0x38f512['skip'](_0x54080a=>!('elementEnd'==_0x54080a['type']&&_0x54080a['item']==_0x40093f));}else{if(this['_schema']['checkChild'](_0x40093f,'$text')||_0x40093f['is']('element','softBreak')){const _0x530167=_0x40093f;if('add'==_0xb117ed&&'elementStart'==_0x50460b['type']||'remove'==_0xb117ed&&'elementEnd'==_0x50460b['type'])continue;if(_0x9c54b0&&-0x1==_0x9c54b0['type']['indexOf']('Container')){'text'==_0x9c54b0['type']&&(_0x9c54b0[_0xb117ed]+='\x0a');continue;}let _0x845b6c;if(_0x845b6c='add'==_0xb117ed?_0x530167['nextSibling']&&!this['_schema']['isObject'](_0x530167['nextSibling'])?_0x530167['nextSibling']:null:_0x530167['previousSibling']&&!this['_schema']['isObject'](_0x530167['previousSibling'])?_0x530167['previousSibling']:null,_0x530167['isEmpty']||_0x845b6c&&_0x845b6c['isEmpty']){const _0x4047a9=_0x845b6c&&_0x845b6c['isEmpty']?_0x845b6c:_0x530167;_0x9c54b0&&_0x9c54b0['type']==_0xb117ed+'EmptyContainer'&&_0x9c54b0['element']['name']==_0x4047a9['name']?_0x9c54b0['quantity']++:_0x1574c3['push']({'type':_0xb117ed+'EmptyContainer','element':_0x4047a9,'quantity':0x1});}else _0x1574c3['push']({'type':_0xb117ed+'Container','element':_0x530167});}}}}}['_resolveDescriptionItems'](_0x2fddb8){const _0x22bf4a=this['_locale'],_0x28a427=[],_0x591c5a=[],_0x36b7e3=[];for(const _0x4f813f of _0x2fddb8)switch(_0x4f813f['type']){case'text':if(_0x4f813f['add']=_0x4f813f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f813f['remove']=_0x4f813f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f813f['add']&&''!=_0x4f813f['remove']){_0x28a427['push']({'type':'replace','content':o(_0x22bf4a,'REPLACE_TEXT',['\x22'+_0x4f813f['remove']+'\x22','\x22'+_0x4f813f['add']+'\x22'])});continue;}if(null!=_0x4f813f['add']['match'](/^ +$/)){_0x28a427['push']({'type':'insertion','content':o(_0x22bf4a,'*Insert:*\x20%0',o(_0x22bf4a,'ELEMENT_SPACE',_0x4f813f['add']['length']))});continue;}if(null!=_0x4f813f['remove']['match'](/^ +$/)){_0x28a427['push']({'type':'deletion','content':o(_0x22bf4a,'*Remove:*\x20%0',o(_0x22bf4a,'ELEMENT_SPACE',_0x4f813f['remove']['length']))});continue;}if(''!=_0x4f813f['add']){_0x28a427['push']({'type':'insertion','content':o(_0x22bf4a,'*Insert:*\x20%0','\x22'+_0x4f813f['add']+'\x22')});continue;}_0x28a427['push']({'type':'deletion','content':o(_0x22bf4a,'*Remove:*\x20%0','\x22'+_0x4f813f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28a427['push']({'type':'insertion','content':o(_0x22bf4a,'*Insert:*\x20%0',this['getItemLabel'](_0x4f813f['element'],_0x4f813f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28a427['push']({'type':'deletion','content':o(_0x22bf4a,'*Remove:*\x20%0',this['getItemLabel'](_0x4f813f['element'],_0x4f813f['quantity']))});continue;case'addContainer':_0x28a427['push']({'type':'insertion','content':o(_0x22bf4a,'*Split:*\x20%0',this['getItemLabel'](_0x4f813f['element'],_0x4f813f['quantity']))});continue;case'removeContainer':_0x28a427['push']({'type':'deletion','content':o(_0x22bf4a,'*Merge:*\x20%0',this['getItemLabel'](_0x4f813f['element'],_0x4f813f['quantity']))});continue;case'addFormat':_0x591c5a['push'](_0x4f813f['key']);continue;case'removeFormat':_0x36b7e3['push'](_0x4f813f['key']);continue;default:_0x28a427['push'](_0x4f813f);}if(_0x591c5a['length']){const _0x33cd1b=_0x591c5a['map'](_0x3668b7=>this['_attributeLabels']['has'](_0x3668b7)?this['_attributeLabels']['get'](_0x3668b7):_0x3668b7)['join'](',\x20');_0x28a427['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x33cd1b)});}if(_0x36b7e3['length']){const _0x1d44fb=_0x36b7e3['map'](_0x38f358=>this['_attributeLabels']['has'](_0x38f358)?this['_attributeLabels']['get'](_0x38f358):_0x38f358)['join'](',\x20');_0x28a427['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1d44fb)});}return _0x28a427;}['_handleCustomCallbackDescription'](_0x30545f){for(const _0x1c9407 of this['_customCallbacks']){const _0x3ba23f=_0x1c9407(_0x30545f);if(_0x3ba23f&&'type'in _0x3ba23f)return _0x3ba23f;}}['_handleAttributeSuggestionDescription'](_0x2f3eb7,_0x7f1b13){const _0x62035e=_0x7f1b13['data'],_0x10e505=void 0x0===_0x62035e['newValue']?'removeFormat':'addFormat';_0x2f3eb7['push']({'type':_0x10e505,'key':_0x62035e['key']});}['_handleRenameSuggestionDescription'](_0x1d8d04,_0x1c0ed0){_0x1d8d04['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1c0ed0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x589c26,_0x5613b7,_0x5d7c2d){if(this['_addDescriptionItems'](_0x589c26,_0x5613b7),_0x5d7c2d&&_0x5d7c2d['getFirstRange']()&&!_0x5613b7['getFirstRange']()['end']['isEqual'](_0x5d7c2d['getFirstRange']()['start'])){const _0x50f635=_0x589c26[_0x589c26['length']-0x1],_0x3c4024='insertion'==_0x5613b7['type']?'add':'remove';_0x50f635&&'text'==_0x50f635['type']&&(_0x50f635[_0x3c4024]+='\x0a');}}}class O extends _0x292012{['afterInit'](){const _0x47657b=this['editor'],_0x33c51d=_0x47657b['plugins']['get']('TrackChangesEditing');_0x47657b['commands']['get']('showAIAssistant')&&_0x33c51d['enableCommand']('showAIAssistant');}}class E extends _0x292012{['afterInit'](){const _0x57191c=this['editor'],_0x250827=_0x57191c['locale'];if(!_0x57191c['plugins']['has']('AlignmentEditing'))return;const _0x39e442=_0x57191c['plugins']['get']('TrackChangesEditing');_0x39e442['enableDefaultAttributesIntegration']('alignment'),_0x39e442['registerBlockAttribute']('alignment'),_0x39e442['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x250827,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x308209=this['editor'],_0xfe423b=_0x308209['locale'];_0x308209['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d8b1e=>{if('formatBlock'!=_0x4d8b1e['type'])return;const {data:_0x1c48c6}=_0x4d8b1e;if(_0x1c48c6&&'alignment'==_0x1c48c6['commandName']){const _0x189e91=_0x1c48c6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xfe423b,'*Format:*\x20%0',function(_0x4f100f){switch(_0x4f100f){case'left':return o(_0xfe423b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xfe423b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xfe423b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xfe423b,'FORMAT_JUSTIFY_TEXT');}}(_0x189e91))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x292012{['afterInit'](){const _0x1d677e=this['editor'],_0xcd373b=_0x1d677e['plugins']['get']('TrackChangesEditing'),_0x454441=_0x1d677e['locale'];for(const _0x112dc6 of ti){if(!_0x1d677e['plugins']['has'](_0x112dc6))continue;const _0x543e8f=_0x112dc6['slice'](0x0,-0x7)['toLowerCase'](),_0x452940='FORMAT_'+_0x543e8f['toUpperCase']();_0xcd373b['enableDefaultAttributesIntegration'](_0x543e8f),_0xcd373b['registerInlineAttribute'](_0x543e8f),_0xcd373b['descriptionFactory']['registerAttributeLabel'](_0x543e8f,o(_0x454441,_0x452940));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ec9db=this['editor'],_0x3af413=_0x5ec9db['locale'],_0x1f3120=_0x5ec9db['plugins']['get']('TrackChangesEditing');function _0xa97ac8(_0x56fcc0,_0x3b52dc){_0x1f3120['descriptionFactory']['registerDescriptionCallback'](_0x2ad52c=>{if('formatInline'!=_0x2ad52c['type'])return;const {data:_0x435e4f}=_0x2ad52c;return _0x435e4f&&_0x435e4f['commandName']===_0x56fcc0?_0x435e4f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3af413,'*Format:*\x20%0',_0x3b52dc)}:{'type':'format','content':o(_0x3af413,'*Remove\x20format:*\x20%0',_0x3b52dc)}:void 0x0;});}_0xa97ac8('bold',o(_0x3af413,'FORMAT_BOLD')),_0xa97ac8('italic',o(_0x3af413,'FORMAT_ITALIC')),_0xa97ac8('underline',o(_0x3af413,'FORMAT_UNDERLINE')),_0xa97ac8('code',o(_0x3af413,'FORMAT_CODE')),_0xa97ac8('strikethrough',o(_0x3af413,'FORMAT_STRIKETHROUGH')),_0xa97ac8('subscript',o(_0x3af413,'FORMAT_SUBSCRIPT')),_0xa97ac8('superscript',o(_0x3af413,'FORMAT_SUPERSCRIPT'));}}class U extends _0x292012{['afterInit'](){const _0x5503a7=this['editor'],_0x49516c=_0x5503a7['locale'];if(!_0x5503a7['plugins']['has']('BlockQuoteEditing'))return;const _0x3ab0c2=_0x5503a7['plugins']['get']('TrackChangesEditing'),_0x5be01d=this['editor']['commands']['get']('blockQuote');_0x3ab0c2['enableCommand']('blockQuote',(_0x10211f,_0x21ac57={})=>{const _0xabbab7=this['editor']['model']['document']['selection'],_0x2926bd=_0x21ac57&&void 0x0!==_0x21ac57['forceValue']?_0x21ac57['forceValue']:!_0x5be01d['value'];let _0xed9fe=[];if(_0x2926bd){const _0x10194=Array['from'](_0xabbab7['getSelectedBlocks']())['filter'](_0x3387f2=>oo(_0x3387f2)||function(_0x49c56e,_0x11107d){const _0x5eb27d=_0x11107d['checkChild'](_0x49c56e['parent'],'blockQuote'),_0x1ba5b4=_0x11107d['checkChild'](['$root','blockQuote'],_0x49c56e);return _0x5eb27d&&_0x1ba5b4;}(_0x3387f2,this['editor']['model']['schema']));_0xed9fe=to(_0x10194,_0x5503a7['model']);}else{const _0x147a21=Array['from'](_0xabbab7['getSelectedBlocks']())['filter'](_0xc9d480=>oo(_0xc9d480));_0xed9fe=to(_0x147a21,_0x5503a7['model']);}_0x5503a7['model']['change'](()=>{for(const _0x7808bb of _0xed9fe)_0x3ab0c2['markBlockFormat'](_0x7808bb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2926bd}]});});}),_0x3ab0c2['descriptionFactory']['registerDescriptionCallback'](_0x3db33d=>{const {data:_0x52aac9}=_0x3db33d;if(_0x52aac9&&'blockQuote'==_0x52aac9['commandName']){const _0x188090=o(_0x49516c,'ELEMENT_BLOCK_QUOTE');return _0x52aac9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49516c,'*Set\x20format:*\x20%0',_0x188090)}:{'type':'format','content':o(_0x49516c,'*Remove\x20format:*\x20%0',_0x188090)};}});}}function oo(_0x3ca17a){return'blockQuote'==_0x3ca17a['parent']['name'];}class V extends _0x292012{['afterInit'](){const _0x5b5eef=this['editor'],_0x26b6de=_0x5b5eef['locale'],_0x1eef1a=_0x5b5eef['plugins']['get']('TrackChangesEditing');_0x5b5eef['plugins']['has']('BookmarkEditing')&&(_0x1eef1a['enableCommand']('insertBookmark'),_0x1eef1a['enableDefaultAttributesIntegration']('updateBookmark'),_0x1eef1a['registerBlockAttribute']('bookmarkId'),_0x1eef1a['descriptionFactory']['registerDescriptionCallback'](_0x4346a0=>{if('insertion'!=_0x4346a0['type']&&'deletion'!=_0x4346a0['type']&&'attribute'!=_0x4346a0['type'])return;const _0x3b139f=_0x4346a0['getContainedElement']();if(null==_0x3b139f)return;if(!_0x3b139f['is']('element','bookmark'))return;const _0x42a6f6=_0x3b139f['getAttribute']('bookmarkId');if('insertion'==_0x4346a0['type'])return{'type':'insertion','content':o(_0x26b6de,'*Insert:*\x20%0','\x22'+_0x42a6f6+'\x22\x20'+o(_0x26b6de,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4346a0['type'])return{'type':'deletion','content':o(_0x26b6de,'*Remove:*\x20%0','\x22'+_0x42a6f6+'\x22\x20'+o(_0x26b6de,'ELEMENT_BOOKMARK'))};const {data:_0x4e915d}=_0x4346a0;if(!_0x4e915d||'bookmarkId'!=_0x4e915d['key'])return;return{'type':'format','content':o(_0x26b6de,'*Set\x20bookmark:*\x20%0','\x22'+_0x4e915d['newValue']+'\x22')};}));}}class F extends _0x292012{['afterInit'](){const _0x104910=this['editor'];_0x104910['plugins']['has']('CaseChange')&&(_0x104910['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x104910['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x104910['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x292012{['afterInit'](){const _0x169ad3=this['editor'];_0x169ad3['commands']['get']('ckbox')&&_0x169ad3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x292012{['afterInit'](){const _0x5b9ad7=this['editor'];if(!_0x5b9ad7['plugins']['has']('CodeBlock'))return;const _0xfdce20=_0x5b9ad7['plugins']['get']('TrackChangesEditing'),_0x1c5ccd=_0x5b9ad7['locale'],_0x158b5b=_0x5b9ad7['config']['get']('codeBlock')['languages'],_0x26ac76=_0x5b9ad7['commands']['get']('codeBlock');_0xfdce20['enableCommand']('indentCodeBlock'),_0xfdce20['enableCommand']('outdentCodeBlock'),_0xfdce20['enableCommand']('codeBlock',(_0x3c4a3a,_0x5eba1e={})=>{const _0xb0e584=_0x5b9ad7['model'],_0x2a82f6=_0x5b9ad7['model']['document']['selection'],_0x352f1e=_0x5eba1e&&void 0x0!==_0x5eba1e['forceValue']?_0x5eba1e['forceValue']:!_0x26ac76['value'];let _0x531600;_0x5eba1e['language']||(_0x5eba1e['language']=_0x158b5b[0x0]['language']),_0x531600=_0x352f1e?Array['from'](_0x2a82f6['getSelectedBlocks']())['filter'](_0x2c9e23=>co(_0x2c9e23)||function(_0x1446dd,_0x3eb446){if(_0x1446dd['is']('rootElement')||_0x3eb446['isLimit'](_0x1446dd))return!0x1;return _0x3eb446['checkChild'](_0x1446dd['parent'],'codeBlock');}(_0x2c9e23,_0xb0e584['schema'])):Array['from'](_0x2a82f6['getSelectedBlocks']())['filter'](_0x2bb390=>co(_0x2bb390));const _0x108d7a=to(_0x531600,_0xb0e584);_0xb0e584['change'](()=>{for(const _0x1b078b of _0x108d7a)_0xfdce20['markBlockFormat'](_0x1b078b,{'commandName':'codeBlock','commandParams':[{..._0x5eba1e,'forceValue':_0x352f1e}],'formatGroupId':'blockName'});});}),(_0xfdce20['descriptionFactory']['registerElementLabel']('codeBlock',_0x1f1e48=>o(_0x1c5ccd,'ELEMENT_CODE_BLOCK',_0x1f1e48)),_0xfdce20['descriptionFactory']['registerDescriptionCallback'](_0x3bbf07=>{if('formatBlock'!=_0x3bbf07['type'])return;const _0x2a5cce=_0x1c5ccd['t'],{data:_0x3bfc91}=_0x3bbf07;if(!_0x3bfc91||'codeBlock'!=_0x3bfc91['commandName'])return;const _0x32895e=_0x3bfc91['commandParams'][0x0]['language'],_0x9d6e1a=_0x2a5cce(_0x158b5b['find'](_0x4c4d66=>_0x4c4d66['language']===_0x32895e)['label'])['toLowerCase']();return _0x3bfc91['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c5ccd,'*Set\x20format:*\x20%0',o(_0x1c5ccd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9d6e1a+')')}:{'type':'format','content':o(_0x1c5ccd,'*Remove\x20format:*\x20%0',o(_0x1c5ccd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x347b0e){return'codeBlock'==_0x347b0e['name'];}class J extends _0x292012{['afterInit'](){const _0x37b0bb=this['editor'];if(!_0x37b0bb['plugins']['has']('CommentsEditing'))return;_0x37b0bb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4ab2bd,_0x4436a6,_0x73ea5){const _0x14da67=[];for(const _0x48b7ed of _0x4436a6['getItems']())_0x48b7ed['hasAttribute'](_0x4ab2bd)&&_0x14da67['push'](_0x73ea5['createRangeOn'](_0x48b7ed));return _0x14da67;}function De(_0x3ea337,_0x2e2cfc,{showActiveMarker:_0x7740a0=!0x0}={}){const _0x496876=_0x3ea337['plugins']['get']('TrackChangesEditing');return(_0x2c6a37,_0x594ea5,_0x3bd3bb)=>{if(!_0x3bd3bb['consumable']['test'](_0x594ea5['markerRange'],_0x2c6a37['name']))return;const _0x13e6d2=_0x594ea5['markerRange']['getWalker'](),_0x3b16ae=_0x594ea5['markerRange']['start'],_0x1c3ca4=_0x3ea337['model']['schema'];let _0x33409e=null,_0x73b6b2=null,_0x54cdb9=!0x1,_0x2344cd=!0x1;for(const _0x4c34e0 of _0x13e6d2){const _0x12c994=_0x4c34e0['item'];_0x54cdb9=_0x54cdb9||_0x1c3ca4['isContent'](_0x12c994);const _0x4be131=_0x3bd3bb['mapper']['toViewElement'](_0x12c994);if(_0x4be131&&_0x4be131['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4c34e0['type']&&(_0x1c3ca4['isBlock'](_0x12c994)&&!_0x1c3ca4['isLimit'](_0x12c994)&&(_0x12c994['nextSibling']||_0x3b16ae['isAtEnd']?_0x33409e&&_0x33409e['parent']==_0x12c994||(_0x33409e=_0x12c994,_0x10e0be(_0x4c34e0['previousPosition']),_0x2344cd=!0x0):_0x73b6b2=_0x73b6b2||_0x4c34e0['previousPosition']));}function _0x10e0be(_0x3e0b19){const {id:_0x128982,authorId:_0x14b125}=_0x496876['_splitMarkerName'](_0x594ea5['markerName']),_0x5d42da=_0x3bd3bb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e2cfc,'data-suggestion':_0x128982,'data-author-id':_0x14b125}),_0x394665=_0x3bd3bb['mapper']['toViewPosition'](_0x3e0b19);_0x7740a0&&_0x496876['activeMarkers']['includes'](_0x594ea5['markerName'])&&_0x3bd3bb['writer']['addClass']('ck-suggestion-marker--active',_0x5d42da),_0x3bd3bb['writer']['insert'](_0x394665,_0x5d42da),_0x3bd3bb['mapper']['bindElementToMarker'](_0x5d42da,_0x594ea5['markerName']);}_0x54cdb9||_0x2344cd||!_0x73b6b2||_0x10e0be(_0x73b6b2);};}class K extends _0x292012{static get['requires'](){return[_0x47ae77];}['init'](){const _0x26b4ac=this['editor'],_0x23bec1=_0x26b4ac['plugins']['get']('TrackChangesEditing');_0x23bec1['enableCommand']('delete');const _0xdc4031=_0x26b4ac['commands']['get']('deleteForward');_0x23bec1['enableCommand']('deleteForward',(_0x538678,_0x479a8a={})=>{const _0x15f9a7=_0x26b4ac['model']['createSelection'](_0x26b4ac['model']['document']['selection']);_0x15f9a7['isCollapsed']&&_0x26b4ac['model']['modifySelection'](_0x15f9a7,{'direction':'forward','unit':_0x479a8a['unit']});const _0x52383e=_0x15f9a7['getFirstRange'](),_0x1291ad=_0x5f13a0['fromRange'](_0x52383e);let _0x50c758;_0x538678(_0x479a8a),_0x50c758='$graveyard'==_0x1291ad['root']['rootName']?_0x26b4ac['model']['createRange'](_0x52383e['start']):_0x26b4ac['model']['createRange'](_0x1291ad['start'],_0x1291ad['end']),_0x1291ad['detach'](),_0x26b4ac['model']['enqueueChange'](_0xdc4031['buffer']['batch'],_0xe020b9=>{_0xdc4031['buffer']['lock'](),_0xe020b9['setSelection'](_0xe020b9['createRange'](_0x50c758['end'])),_0xdc4031['buffer']['unlock']();});}),_0x26b4ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x26b4ac,'merge'),{'priority':'high'}),_0x26b4ac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x44c0dd,_0xad7f61,_0x32e70d)=>{_0x32e70d['options']['showSuggestionHighlights']&&De(_0x26b4ac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x44c0dd,_0xad7f61,_0x32e70d);},{'priority':'high'}),_0x26b4ac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xd1107b,_0x4e9a86,_0x3812fd)=>{const _0x1d83a5=_0x3812fd['mapper']['markerNameToElements'](_0x4e9a86['markerName']);if(_0x1d83a5){for(const _0x2f775b of _0x1d83a5)_0x2f775b['is']('uiElement')&&(_0x3812fd['mapper']['unbindElementFromMarkerName'](_0x2f775b,_0x4e9a86['markerName']),_0x3812fd['writer']['remove'](_0x2f775b));}},{'priority':'high'});}}class H extends _0x292012{['afterInit'](){const _0x32bc7e=this['editor'];if(!_0x32bc7e['plugins']['has']('ListEditing'))return;const _0x1b68de=_0x32bc7e['locale'],_0x32d8f5=_0x32bc7e['plugins']['get']('TrackChangesEditing'),_0x29e272=_0x32bc7e['plugins']['has']('TodoListEditing'),_0x587670=!!_0x32bc7e['config']['get']('list.multiBlock');function _0x522058(_0x5f1af7){return{'type':'format','content':''+o(_0x1b68de,'*Set\x20format:*\x20%0',_0x5f1af7)};}function _0x38fc53(_0x574680){return{'type':'format','content':''+o(_0x1b68de,'*Remove\x20format:*\x20%0',_0x574680)};}_0x32d8f5['enableDefaultAttributesIntegration']('numberedList'),_0x32d8f5['enableDefaultAttributesIntegration']('bulletedList'),_0x32d8f5['enableDefaultAttributesIntegration']('customNumberedList'),_0x32d8f5['enableDefaultAttributesIntegration']('customBulletedList'),_0x32d8f5['enableDefaultAttributesIntegration']('indentList'),_0x32d8f5['enableDefaultAttributesIntegration']('outdentList'),_0x32d8f5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x32d8f5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x32d8f5['registerBlockAttribute']('listItemId'),_0x32d8f5['registerBlockAttribute']('listType'),_0x32d8f5['registerBlockAttribute']('listIndent'),_0x587670&&(_0x32d8f5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x32d8f5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x29e272&&(_0x32d8f5['enableDefaultAttributesIntegration']('todoList'),_0x32d8f5['enableDefaultAttributesIntegration']('checkTodoList'),_0x32d8f5['registerBlockAttribute']('todoListChecked'),_0x32d8f5['descriptionFactory']['registerDescriptionCallback'](_0x9891de=>{const {data:_0x510c8c}=_0x9891de;if(_0x510c8c&&'todoListChecked'==_0x510c8c['key'])return{'type':'format','content':_0x510c8c['newValue']?o(_0x1b68de,'*Check\x20item*'):o(_0x1b68de,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x21e132=>{if(_0x21e132['batch']['isUndo'])return!0x1;let _0x474b6b=!0x1;const _0x2fe536=_0x32d8f5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x954fdf=>'todoListChecked'===_0x32d8f5['_getAttributeKey'](_0x954fdf));for(const _0x359074 of _0x2fe536){'todo'!=_0x359074['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x32d8f5['_findSuggestions'](_0x359074['getFirstRange'](),'attribute')['find'](_0x3fff57=>'listType'===_0x32d8f5['_getAttributeKey'](_0x3fff57['suggestion']))||(_0x21e132['removeMarker'](_0x359074['getFirstMarker']()),_0x474b6b=!0x0));}return _0x474b6b;})),_0x32d8f5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1b68de,'FORMAT_INDENT'));const _0x5eb00e={'type':'format','content':''};_0x32d8f5['descriptionFactory']['registerDescriptionCallback'](_0x479bb1=>{const {data:_0x543c22}=_0x479bb1;if(!_0x543c22||'listType'!=_0x543c22['key'])return;let _0x3ce36a=_0x479bb1['head'];for(;_0x3ce36a;){if(_0x3ce36a['data']&&(('listStyle'==_0x3ce36a['data']['key']||'listMarkerStyle'==_0x3ce36a['data']['key'])&&(_0x3ce36a['data']['newValue']&&'default'!=_0x3ce36a['data']['newValue']||'default'!=_0x3ce36a['data']['oldValue']&&!_0x543c22['newValue'])||!_0x587670&&_0x3ce36a['data']['key']==m))return _0x5eb00e;_0x3ce36a=_0x3ce36a['next'];}if(null==_0x543c22['newValue'])switch(_0x543c22['oldValue']){case'bulleted':return _0x38fc53(o(_0x1b68de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38fc53(o(_0x1b68de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38fc53(o(_0x1b68de,'ELEMENT_TODO_LIST'));}switch(_0x543c22['newValue']){case'bulleted':return _0x522058(o(_0x1b68de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x522058(o(_0x1b68de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x522058(o(_0x1b68de,'ELEMENT_TODO_LIST'));}}),_0x32d8f5['descriptionFactory']['registerDescriptionCallback'](_0x41e21e=>{const {data:_0x4285c2}=_0x41e21e;if(_0x4285c2&&'listIndent'==_0x4285c2['key'])return null==_0x4285c2['newValue']||null==_0x4285c2['oldValue']&&0x0==_0x4285c2['newValue']?_0x5eb00e:void 0x0;}),_0x32d8f5['descriptionFactory']['registerDescriptionCallback'](_0x4edc60=>{if('attribute'!=_0x4edc60['type'])return;const {data:_0x1e3316}=_0x4edc60;if(!_0x1e3316||'listItemId'!=_0x1e3316['key'])return;const _0x3fca6e=Te(_0x4edc60);return'newValue'==_0x3fca6e?{'type':'format','content':o(_0x1b68de,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3fca6e?{'type':'format','content':o(_0x1b68de,'*Split:*\x20list\x20item')}:_0x5eb00e;}),_0x32bc7e['model']['document']['registerPostFixer'](_0x2d359d=>this['listItemIdFixer'](_0x2d359d)),_0x32bc7e['model']['document']['registerPostFixer'](_0x340ced=>this['noTrackChangesFixer'](_0x340ced)),_0x32bc7e['model']['document']['on']('change:data',(_0x4faf64,_0x124c91)=>{if(_0x124c91['isUndo']||!_0x124c91['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x280d58){if(_0x280d58['batch']['isUndo']||!_0x280d58['batch']['isLocal'])return!0x1;let _0x17e653=!0x1;const _0x19d724=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5288a9=>_0x5288a9['data']&&'listItemId'==_0x5288a9['data']['key'])['filter'](_0x278bf0=>_0x278bf0['data']['newValue']&&_0x278bf0['data']['oldValue']);for(const _0xe5a86e of _0x19d724)Te(_0xe5a86e)||(_0x280d58['removeMarker'](_0xe5a86e['getFirstMarker']()),_0x17e653=!0x0);return _0x17e653;}['noTrackChangesFixer'](_0x150bce){if(_0x150bce['batch']['isUndo']||!_0x150bce['batch']['isLocal'])return!0x1;const _0x28a207=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x28a207['trackChangesCommand']['value'])return!0x1;let _0x3751fe=!0x1;const _0x35e46e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x35ead2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x59fb7f=>'attribute'==_0x59fb7f['type'])['filter'](_0x2f676c=>_0x35e46e['includes'](_0x2f676c['attributeKey']));if(0x0==_0x35ead2['length'])return _0x3751fe;for(const _0x3faad2 of _0x35ead2){const _0xa1a853=_0x28a207['_findSuggestions'](_0x3faad2['range'],'attribute')['filter'](_0x1bd5d3=>!_0x1bd5d3['meta']['isNextTo'])['map'](_0x3e0beb=>_0x3e0beb['suggestion'])['filter'](_0x10a4ef=>{const _0x2abe63=_0x28a207['_getAttributeKey'](_0x10a4ef);return _0x35e46e['includes'](_0x2abe63);});if(_0xa1a853['length']){for(const _0x55d4d9 of _0xa1a853)_0x150bce['removeMarker'](_0x55d4d9['getFirstMarker']());_0x3751fe=!0x0;}}return _0x3751fe;}['assureChains'](){const _0x276e07=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2105f5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x35f009;const _0x9378d6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49efd3=>{if(_0x49efd3['data']['oldRange']||!_0x49efd3['data']['newRange'])return null;if(!_0x49efd3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xbb7c3a}=_0x276e07['_splitMarkerName'](_0x49efd3['name']);if(!_0x276e07['hasSuggestion'](_0xbb7c3a))return null;const _0x226806=_0x276e07['getSuggestion'](_0xbb7c3a);return _0x2105f5['includes'](_0x226806['data']['key']);})['map'](_0x5c3851=>{const {id:_0x2bc289}=_0x276e07['_splitMarkerName'](_0x5c3851['name']),_0xe6ff5b=_0x276e07['getSuggestion'](_0x2bc289);return _0x35f009=_0xe6ff5b['attributes']['groupId'],_0xe6ff5b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x9378d6['size'])return;const _0x25f94e=_0x276e07['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x273403=>'attribute'==_0x273403['type']&&_0x273403['data']&&_0x2105f5['includes'](_0x273403['data']['key'])&&_0x273403['attributes']['groupId']!=_0x35f009)['map'](_0x5419d9=>({'listItem':_0x5419d9['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5419d9['attributes']['groupId']})),_0x264014=new Set();for(const {groupId:_0xed4539,listItem:_0x1741e8}of _0x25f94e)_0x9378d6['has'](_0x1741e8)&&_0x264014['add'](_0xed4539);for(const _0x43d912 of _0x276e07['getSuggestions']())_0x264014['has'](_0x43d912['attributes']['groupId'])&&_0x43d912['setAttribute']('groupId',_0x35f009);}['_supportLegacySuggestions'](){const _0x7409a4=this['editor'],_0x610894=_0x7409a4['locale'],_0x12fe79=_0x7409a4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x12fe79['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x21f546,_0xa8847b){const _0x258923=[];for(let _0x585755 of _0x21f546)_0x585755['start']['nodeAfter']===_0x585755['end']['parent']&&(_0x585755=_0x7409a4['model']['createRange'](_0x7409a4['model']['createPositionAt'](_0x585755['start']['nodeAfter'],0x0))),_0x258923['push'](_0x585755);_0x7409a4['model']['change'](_0x1bee48=>{const _0x174373=_0x7409a4['model']['document']['selection'],_0x371c76=Array['from'](_0x174373['getRanges']())['map'](_0x10f8f0=>_0x5f13a0['fromRange'](_0x10f8f0));_0x1bee48['setSelection'](_0x258923),_0x7409a4['commands']['get'](_0xa8847b['commandName'])['refresh'](),_0xa8847b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x7409a4['execute'](_0xa8847b['commandName'],..._0xa8847b['commandParams']),_0x1bee48['setSelection'](_0x371c76);for(const _0x57926b of _0x371c76)_0x57926b['detach']();});}),_0x12fe79['descriptionFactory']['registerElementLabel'](function(_0x1c4dd9){const _0x516d35=!_0x7409a4['model']['schema']['isObject'](_0x1c4dd9),_0x49a1d6=_0x1c4dd9['previousSibling'],_0x3f21df=_0x1c4dd9['nextSibling'],_0x3a3bec=_0x1c4dd9['getAttribute']('listItemId'),_0x27150d=!_0x49a1d6||_0x49a1d6['getAttribute']('listItemId')!==_0x3a3bec,_0x259030=!_0x3f21df||_0x3f21df['getAttribute']('listItemId')!==_0x3a3bec;return _0x516d35&&Boolean(_0x3a3bec)&&_0x27150d&&_0x259030;},_0x5d2ef0=>o(_0x610894,'ELEMENT_LIST_ITEM',_0x5d2ef0));}['_registerLegacyDescription'](){const _0x3a03e4=this['editor'],_0xc8053c=_0x3a03e4['locale'];function _0x5765bb(_0x5a170a){const _0x1f1c23=_0x3a03e4['commands']['get']('bulletedList')['value'],_0x1fd1fe=_0x3a03e4['commands']['get']('numberedList')['value'];return'numberedList'===_0x5a170a?_0x1f1c23:_0x1fd1fe;}_0x3a03e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x43df84){if('formatBlock'!=_0x43df84['type'])return;const {data:_0x16db56}=_0x43df84;if(!_0x16db56)return;let _0x15fecb,_0x5890f0,_0x155d96,_0x43cea6;switch(_0x16db56['commandName']){case'bulletedList':_0x155d96=_0x16db56['commandParams'][0x0]['forceValue'],_0x43cea6=_0x5765bb(_0x16db56['commandName']),_0x15fecb=_0x155d96?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x43cea6&&_0x3a03e4['config']['get']('list.multiBlock')||(_0x15fecb='*Change\x20to:*\x20%0'),_0x5890f0={'type':'format','content':o(_0xc8053c,_0x15fecb,o(_0xc8053c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x155d96=_0x16db56['commandParams'][0x0]['forceValue'],_0x43cea6=_0x5765bb(_0x16db56['commandName']),_0x15fecb=_0x155d96?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x43cea6&&_0x3a03e4['config']['get']('list.multiBlock')||(_0x15fecb='*Change\x20to:*\x20%0'),_0x5890f0={'type':'format','content':o(_0xc8053c,_0x15fecb,o(_0xc8053c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x15fecb='*Indent:*\x20%0',_0x5890f0={'type':'format','content':o(_0xc8053c,_0x15fecb,o(_0xc8053c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x15fecb=function(_0x11aaeb){const _0x3b519d=_0x11aaeb['getFirstRange']();let _0x5c38a4=_0x3b519d['start']['nodeAfter'];for(;_0x5c38a4&&_0x3b519d['containsItem'](_0x5c38a4);){if(_0x5c38a4['getAttribute']('listIndent')>0x0)return!0x1;_0x5c38a4=_0x5c38a4['nextSibling'];}return!0x0;}(_0x43df84)?o(_0xc8053c,'*Format:*\x20remove\x20from\x20%0',o(_0xc8053c,function(_0x1a1976){return'ELEMENT_'+_0x1a1976['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x43df84))):o(_0xc8053c,'*Outdent:*\x20%0',o(_0xc8053c,'ELEMENT_LIST_ITEM')),_0x5890f0={'type':'format','content':_0x15fecb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x16db56['multipleBlocks']&&(_0x15fecb='*Merge:*\x20%0',_0x5890f0={'type':'deletion','content':o(_0xc8053c,_0x15fecb,o(_0xc8053c,'ELEMENT_LIST_ITEM'))});}return _0x5890f0;});}}function Te(_0x2ac143){let _0x34af10=_0x2ac143['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34af10;){const _0x408238=_0x34af10['getAttribute']('listItemId');if(!_0x408238)return!0x1;if(_0x408238==_0x2ac143['data']['newValue'])return'newValue';if(_0x408238==_0x2ac143['data']['oldValue'])return'oldValue';_0x34af10=_0x34af10['previousSibling'];}return!0x1;}class q extends _0x292012{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x37a356=this['editor']['config']['get']('list.properties'),_0x462e6b=this['editor']['plugins']['get']('TrackChangesEditing');_0x37a356['styles']&&(_0x462e6b['enableDefaultAttributesIntegration']('listStyle'),_0x462e6b['registerBlockAttribute']('listStyle')),_0x37a356['reversed']&&(_0x462e6b['enableDefaultAttributesIntegration']('listReversed'),_0x462e6b['registerBlockAttribute']('listReversed')),_0x37a356['startIndex']&&(_0x462e6b['enableDefaultAttributesIntegration']('listStart'),_0x462e6b['registerBlockAttribute']('listStart'));const _0x42de63={'type':'format','content':''};_0x462e6b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4a2db4=this['editor']['locale'];_0x462e6b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4a2db4,'FORMAT_LIST_REVERSED')),_0x462e6b['descriptionFactory']['registerDescriptionCallback'](_0x2754da=>{const {data:_0x339bfa}=_0x2754da;if(_0x339bfa&&'listReversed'==_0x339bfa['key'])return null==_0x339bfa['newValue']||0x0==_0x339bfa['newValue']&&null==_0x339bfa['oldValue']?_0x42de63:void 0x0;}),_0x462e6b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4a2db4,'FORMAT_LIST_START')),_0x462e6b['descriptionFactory']['registerDescriptionCallback'](_0x1efd2d=>{const {data:_0x2a7c3}=_0x1efd2d;if(_0x2a7c3&&'listStart'==_0x2a7c3['key'])return null==_0x2a7c3['newValue']||0x1==_0x2a7c3['newValue']&&null==_0x2a7c3['oldValue']?_0x42de63:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x711da4=>{if(_0x711da4['batch']['isUndo'])return!0x1;let _0x5ca21e=!0x1;const _0x55b836=_0x462e6b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15f8c3=>{const _0x2013a8=_0x462e6b['_getAttributeKey'](_0x15f8c3);return'listStart'==_0x2013a8||'listReversed'==_0x2013a8;});for(const _0x5df716 of _0x55b836){const _0x3010e6=_0x5df716['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3010e6||'customNumbered'==_0x3010e6)continue;_0x462e6b['_findSuggestions'](_0x5df716['getFirstRange'](),'attribute')['find'](_0x5cead0=>'listType'==_0x462e6b['_getAttributeKey'](_0x5cead0['suggestion']))||(_0x711da4['removeMarker'](_0x5df716['getFirstMarker']()),_0x5ca21e=!0x0);}return _0x5ca21e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5e6b85){const _0x572b11=this['editor']['locale'],{data:_0x1f0eef}=_0x5e6b85,_0x248020={'type':'format','content':''};if(!_0x1f0eef||'listStyle'!=_0x1f0eef['key'])return;if(!_0x1f0eef['oldValue'])return'default'==_0x1f0eef['newValue']?_0x248020:{'type':'format','content':''+o(_0x572b11,'*Set\x20format:*\x20%0',o(_0x572b11,this['_getTranslationKeyForListStyle'](_0x1f0eef['newValue'])))};if(!_0x1f0eef['newValue']){if('default'==_0x1f0eef['oldValue'])return _0x248020;let _0x530796=_0x5e6b85['head'];for(;_0x530796;){if(_0x530796['data']&&'listType'==_0x530796['data']['key']&&_0x530796['data']['newValue'])return _0x248020;_0x530796=_0x530796['next'];}return{'type':'format','content':''+o(_0x572b11,'*Remove\x20format:*\x20%0',o(_0x572b11,this['_getTranslationKeyForListStyle'](_0x1f0eef['oldValue'])))};}if('default'!=_0x1f0eef['newValue'])return{'type':'format','content':''+o(_0x572b11,'*Set\x20format:*\x20%0',o(_0x572b11,this['_getTranslationKeyForListStyle'](_0x1f0eef['newValue'])))};let _0x5db2f4=_0x5e6b85['head'];for(;_0x5db2f4;){if(_0x5db2f4['data']&&'listType'==_0x5db2f4['data']['key']&&_0x5db2f4['data']['newValue']&&_0x5db2f4['data']['oldValue'])return _0x248020;_0x5db2f4=_0x5db2f4['next'];}return{'type':'format','content':o(_0x572b11,'*Set\x20format:*\x20%0',o(_0x572b11,'ELEMENT_'+_0x5e6b85['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4d707f=this['editor'],_0x5204cb=_0x4d707f['locale'];_0x4d707f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14e274=>{if('formatBlock'!=_0x14e274['type'])return;const {data:_0x34e3a3}=_0x14e274;if(!_0x34e3a3)return;let _0x4c0ca2,_0xc91c;switch(_0x34e3a3['commandName']){case'listStyle':_0x4c0ca2='*Change\x20to:*\x20%0',_0xc91c={'type':'format','content':o(_0x5204cb,_0x4c0ca2,o(_0x5204cb,this['_getTranslationKeyForListStyle'](_0x34e3a3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c0ca2=_0x34e3a3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xc91c={'type':'format','content':o(_0x5204cb,_0x4c0ca2)};break;case'listStart':_0x4c0ca2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xc91c={'type':'format','content':o(_0x5204cb,_0x4c0ca2,_0x34e3a3['commandParams'][0x0]['startIndex'])};}return _0xc91c;});}['_getTranslationKeyForListStyle'](_0x443219){return'ELEMENT_'+function(_0x362101){if(Se['includes'](_0x362101))return'bulleted';if(_e['includes'](_0x362101))return'numbered';return null;}(_0x443219)['toUpperCase']()+'_LIST_'+_0x443219['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x292012{['afterInit'](){const _0x591675=this['editor'];_0x591675['commands']['get']('emoji')&&_0x591675['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x292012{static get['requires'](){return[_0x445463];}['init'](){const _0x4439b2=this['editor'],_0x596203=_0x4439b2['plugins']['get']('TrackChangesEditing'),_0x27065f=_0x4439b2['commands']['get']('enter');_0x596203['enableCommand']('enter',()=>{_0x4439b2['model']['change'](_0xc4ec36=>{const _0x1819d6=_0x4439b2['model']['document']['selection'],_0x1e6d64=_0x1819d6['getFirstPosition'](),_0x394d3e=_0x5f13a0['fromRange'](_0x1819d6['getFirstRange']());if(_0x27065f['enterBlock'](_0xc4ec36)){const _0x261009=_0x4439b2['model']['createPositionAt'](_0x1e6d64['parent']['nextSibling'],0x0),_0x5ba961=_0xc4ec36['createRange'](_0x1e6d64,_0x261009);_0x596203['markInsertion'](_0x5ba961);}else _0xc4ec36['setSelection'](_0xc4ec36['createRange'](_0x394d3e['end']));_0x394d3e['detach'](),_0x27065f['fire']('afterExecute',{'writer':_0xc4ec36});});}),_0x4439b2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4439b2,'split'),{'priority':'high'}),_0x4439b2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3be07f,_0x5ef292,_0x2308fa)=>{const _0x29cdf5=_0x2308fa['mapper']['markerNameToElements'](_0x5ef292['markerName']);if(_0x29cdf5){for(const _0x7a5750 of _0x29cdf5)_0x7a5750['hasClass']('ck-suggestion-marker-split')&&(_0x2308fa['mapper']['unbindElementFromMarkerName'](_0x7a5750,_0x5ef292['markerName']),_0x2308fa['writer']['remove'](_0x7a5750));}},{'priority':'high'}),_0x4439b2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x270057,_0x12a5e4,_0x34f1eb)=>{_0x34f1eb['options']['showSuggestionHighlights']&&De(_0x4439b2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x270057,_0x12a5e4,_0x34f1eb);},{'priority':'high'});}}class Q extends _0x292012{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x556e10=this['editor']['plugins']['get']('TrackChangesEditing');_0x556e10['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x556e10['enableCommand']('findNext'),_0x556e10['enableCommand']('findPrevious'),_0x556e10['enableCommand']('replace'),_0x556e10['enableCommand']('replaceAll');}['handleFindCommand'](_0x588a45,_0x5bb984,_0x64f7df={}){const _0x523ecd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x588a45(_0x51182e=>{let _0xe6b95e=('string'==typeof _0x5bb984?_0x523ecd['findByTextCallback'](_0x5bb984,_0x64f7df):_0x5bb984)(_0x51182e);Array['isArray'](_0xe6b95e)&&(_0xe6b95e={'results':_0xe6b95e,'searchText':'string'==typeof _0x5bb984?_0x5bb984:''});const _0x4145e5=_0xe6b95e['results']['filter'](_0x3eeedd=>!0x1===this['_isInDeletionRange'](_0x3eeedd,_0x51182e['item']));return{..._0xe6b95e,'results':_0x4145e5};},_0x64f7df);}['_isInDeletionRange'](_0x4d2f63,_0x3eb0eb){const _0x4f55cb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3eb0eb,_0x4d2f63['start']),this['editor']['model']['createPositionAt'](_0x3eb0eb,_0x4d2f63['end']));for(const _0x26f9d9 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4f55cb['getIntersection'](_0x26f9d9['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x292012{['afterInit'](){const _0x377d5f=this['editor']['locale'],_0x1fd555=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x50258d,commandName:_0x244d3b}of eo)this['editor']['plugins']['has'](_0x50258d)&&(_0x1fd555['enableDefaultAttributesIntegration'](_0x244d3b),_0x1fd555['registerInlineAttribute'](_0x244d3b));_0x1fd555['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x377d5f,'FORMAT_FONT_SIZE')),_0x1fd555['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x377d5f,'FORMAT_FONT_FAMILY')),_0x1fd555['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x377d5f,'FORMAT_FONT_COLOR')),_0x1fd555['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x377d5f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cc66f=this['editor'],_0x429723=_0x3cc66f['locale'];_0x3cc66f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274439=>{const _0x32bf2c=_0x429723['t'];if('formatInline'!=_0x274439['type'])return;const {data:_0x5f0cd2}=_0x274439;if(null!=_0x5f0cd2){if('fontSize'==_0x5f0cd2['commandName']){const _0x6166c3=_0x5f0cd2['commandParams'][0x0]['value'];if(_0x6166c3){const _0x494d4b=_0x32bf2c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x23a455=>_0x23a455['model']==_0x6166c3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x429723,'*Set\x20font\x20size:*\x20%0',_0x494d4b)};}return{'type':'format','content':o(_0x429723,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5f0cd2['commandName']){const _0xab92f0=_0x5f0cd2['commandParams'][0x0]['value'];return _0xab92f0?{'type':'format','content':o(_0x429723,'*Set\x20font\x20family:*\x20%0',_0xab92f0)}:{'type':'format','content':o(_0x429723,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5f0cd2['commandName']){const _0x3aca89=_0x5f0cd2['commandParams'][0x0]['value'];if(_0x3aca89){const _0x472647=_0x21c3ef(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4d8570=>_0x4d8570['model']==_0x3aca89);let _0x160e2a=_0x3aca89,_0x54f2c0='';return _0x472647&&(_0x160e2a=_0x472647['label'],_0x54f2c0=_0x32bf2c(_0x160e2a)['toLowerCase']()),{'type':'format','content':o(_0x429723,'*Set\x20font\x20color:*\x20%0',_0x54f2c0)['trim'](),'color':{'value':_0x3aca89,'title':_0x54f2c0||_0x160e2a}};}return{'type':'format','content':o(_0x429723,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5f0cd2['commandName']){const _0x33d8c2=_0x5f0cd2['commandParams'][0x0]['value'];if(_0x33d8c2){const _0x370ac9=_0x21c3ef(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2112aa=>_0x2112aa['model']==_0x33d8c2);let _0x39e1f4=_0x33d8c2,_0x3d41d2='';return _0x370ac9&&(_0x39e1f4=_0x370ac9['label'],_0x3d41d2=_0x32bf2c(_0x39e1f4)['toLowerCase']()),{'type':'format','content':o(_0x429723,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d41d2)['trim'](),'color':{'value':_0x33d8c2,'title':_0x3d41d2||_0x39e1f4}};}return{'type':'format','content':o(_0x429723,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x292012{['afterInit'](){const _0x46332f=this['editor'],_0xd5e8ef=_0x46332f['plugins']['get']('TrackChangesEditing'),_0x943dd7=_0x46332f['commands']['get']('copyFormat'),_0x180534=_0x46332f['commands']['get']('pasteFormat');_0x943dd7&&_0x180534&&(_0xd5e8ef['enableDefaultAttributesIntegration']('pasteFormat'),_0xd5e8ef['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x38b0ae=this['editor'],_0x31e8c6=_0x38b0ae['locale'];_0x38b0ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c0827=>{if('formatBlock'!=_0x5c0827['type']&&'formatInline'!=_0x5c0827['type'])return;const {data:_0x573e45}=_0x5c0827;if(_0x573e45&&'pasteFormat'===_0x573e45['commandName']){const _0x5b9b2b=[],_0x2f9b53=_0x573e45['commandParams'][0x0];for(const [_0x21b3b7,_0x469138]of Object['entries'](_0x2f9b53))_0x5b9b2b['push'](ro(_0x38b0ae,_0x21b3b7,_0x469138));return _0x5b9b2b['length']?{'type':'format','content':o(_0x31e8c6,'*Set\x20format\x20to:*\x20%0',_0x5b9b2b['join'](',\x20'))}:{'type':'format','content':o(_0x31e8c6,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x17cad1,_0x1a1dde,_0x5f58c8){const _0x25e145=_0x17cad1['locale']['t'],_0x5377fc=_0x1a1dde['split'](/(?=[A-Z])/)['join']('\x20'),_0x1890a2=_0x25e145(_0x5377fc['charAt'](0x0)['toUpperCase']()+_0x5377fc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5f58c8)return _0x1890a2;if('fontColor'===_0x1a1dde||'fontBackgroundColor'===_0x1a1dde){const _0x45de10=_0x21c3ef(_0x17cad1['config']['get']('fontColor.colors'))['find'](_0x101a59=>_0x101a59['model']==_0x5f58c8);return _0x1890a2+'\x20('+(_0x45de10?_0x25e145(_0x45de10['label'])['toLowerCase']():_0x5f58c8)+')';}if('fontSize'===_0x1a1dde&&isNaN(parseFloat(_0x5f58c8))){const _0x4f6ade=_0x17cad1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x17cad1['config']['get']('fontSize.options'))['find'](_0x3e75e6=>_0x3e75e6['model']==_0x5f58c8);return _0x1890a2+'\x20('+(_0x4f6ade?_0x25e145(_0x4f6ade['title'])['toLowerCase']():_0x5f58c8)+')';}return _0x1890a2+'\x20('+_0x5f58c8+')';}class Z extends _0x292012{['_headingOptions'];['afterInit'](){const _0x284ba4=this['editor'];if(!_0x284ba4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x284ba4['config']['get']('heading.options');const _0x4c140e=_0x284ba4['locale'],_0x4b6337=_0x284ba4['plugins']['get']('TrackChangesEditing');_0x4b6337['enableDefaultAttributesIntegration']('heading');for(const _0x1cf2f9 of this['_headingOptions'])'paragraph'!=_0x1cf2f9['model']&&_0x4b6337['descriptionFactory']['registerElementLabel'](_0x1cf2f9['model'],_0x31ecb4=>{const _0x51a914=this['_getHeadingLevel'](_0x1cf2f9['model']);return null!==_0x51a914?_0x717c16(_0x31ecb4,_0x51a914):_0x2e88be(_0x31ecb4,_0x1cf2f9['title']);});function _0x717c16(_0x581c6a,_0x386641){return o(_0x4c140e,'ELEMENT_HEADING',[_0x581c6a,_0x386641]);}function _0x2e88be(_0x10ecca,_0x16f366){return o(_0x4c140e,'ELEMENT_HEADING_CUSTOM',[_0x10ecca,_0x16f366]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21778b=this['editor'],_0x284e43=_0x21778b['locale'];function _0x4eccb8(_0x49de2e,_0x2de523){return o(_0x284e43,'ELEMENT_HEADING_CUSTOM',[_0x49de2e,_0x2de523]);}_0x21778b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353311=>{if('formatBlock'!=_0x353311['type'])return;const {data:_0x41d69e}=_0x353311;if(_0x41d69e&&'heading'==_0x41d69e['commandName']){const _0x3fd63b=_0x41d69e['commandParams'][0x0]['value'],_0x4f3986=this['_getHeadingLevel'](_0x3fd63b);if(null!==_0x4f3986)return{'type':'format','content':o(_0x284e43,'*Change\x20to:*\x20%0',(_0x561d0f=0x1,_0xcda3e8=_0x4f3986,o(_0x284e43,'ELEMENT_HEADING',[_0x561d0f,_0xcda3e8])))};const _0x5445ca=this['_headingOptions']['find'](_0xca8363=>_0xca8363['model']===_0x3fd63b)['title'];return{'type':'format','content':o(_0x284e43,'*Change\x20to:*\x20%0',_0x4eccb8(0x1,_0x5445ca))};}var _0x561d0f,_0xcda3e8;});}['_getHeadingLevel'](_0x5ec461){const _0x1b306b=_0x5ec461['match'](/^heading(\d+)/);if(_0x1b306b)return _0x1b306b[0x1];const _0x1f631a=this['_headingOptions']?.['find'](_0x8701a1=>_0x8701a1['model']==_0x5ec461);if(_0x1f631a&&_0x1f631a['view']){const _0x3a5163=_0x1f631a['view'],_0xc98452=(_0x3a5163['name']??_0x3a5163)['match'](/^h(\d+)/);if(_0xc98452)return _0xc98452[0x1];}return null;}}class tt extends _0x292012{['afterInit'](){const _0x33bce9=this['editor'];if(!_0x33bce9['plugins']['has']('HighlightEditing'))return;const _0x131c63=_0x33bce9['plugins']['get']('TrackChangesEditing'),_0x9bf945=_0x33bce9['locale'];_0x131c63['enableDefaultAttributesIntegration']('highlight'),_0x131c63['registerInlineAttribute']('highlight'),_0x131c63['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x9bf945,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x173ae9=this['editor'],_0x595987=_0x173ae9['locale'];_0x173ae9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19db38=>{if('formatInline'!=_0x19db38['type'])return;const {data:_0x313e05}=_0x19db38;if(_0x313e05&&'highlight'==_0x313e05['commandName']){const _0xaa9b1c=_0x595987['t'],_0x204aa6=_0x313e05['commandParams'][0x0]['value'];if(_0x204aa6){const _0x4fc51a=_0x173ae9['config']['get']('highlight.options')['find'](_0x26c2ac=>_0x26c2ac['model']==_0x204aa6),_0x148712=_0xaa9b1c(_0x4fc51a['title'])['toLowerCase']();return{'type':'format','content':o(_0x595987,'*Set\x20highlight:*\x20%0',_0x148712),'color':{'value':_0x4fc51a['color'],'title':_0x4fc51a['title']}};}return{'type':'format','content':o(_0x595987,'*Remove\x20highlight*',o(_0x595987,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x292012{['afterInit'](){const _0x584cf8=this['editor'];if(!_0x584cf8['plugins']['has']('HorizontalLineEditing'))return;_0x584cf8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4148de=_0x584cf8['plugins']['get']('TrackChangesEditing'),_0x2847a1=_0x584cf8['locale'];_0x4148de['descriptionFactory']['registerElementLabel']('horizontalLine',_0xed23c9=>o(_0x2847a1,'ELEMENT_HORIZONTAL_LINE',_0xed23c9)),_0x584cf8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x167bdc,{writer:_0x325970,options:_0x25ea68})=>{if(!_0x25ea68['showSuggestionHighlights'])return null;const _0x420425=_0x325970['createContainerElement']('div'),_0x4ad975=_0x325970['createEmptyElement']('hr');return _0x325970['addClass']('ck-horizontal-line',_0x420425),_0x325970['insert'](_0x325970['createPositionAt'](_0x420425,0x0),_0x4ad975),_0x420425;},'converterPriority':'high'});}}class nt extends _0x292012{['afterInit'](){const _0x212609=this['editor'];if(!_0x212609['plugins']['has']('HtmlEmbed'))return;const _0x53021e=_0x212609['plugins']['get']('TrackChangesEditing'),_0xed06a1=_0x212609['locale'];_0x53021e['descriptionFactory']['registerElementLabel']('rawHtml',_0x17e60b=>o(_0xed06a1,'ELEMENT_HTML_EMBED',_0x17e60b)),_0x53021e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x53021e['registerBlockAttribute']('value'),_0x53021e['descriptionFactory']['registerDescriptionCallback'](_0x2ba7ac=>{if('attribute'!=_0x2ba7ac['type'])return;const {data:_0x545fab}=_0x2ba7ac;if(_0x545fab&&'value'==_0x545fab['key']&&_0x2ba7ac['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x422ffb=o(_0xed06a1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xed06a1,'*Change\x20%0\x20content*',_0x422ffb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20f08b=this['editor'],_0x20659a=_0x20f08b['locale'];_0x20f08b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x63d696=>{if('formatBlock'!=_0x63d696['type'])return;const {data:_0x1e762c}=_0x63d696;if(_0x1e762c&&'htmlEmbed'==_0x1e762c['commandName']){const _0x5350f8=o(_0x20659a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x20659a,'*Change\x20%0\x20content*',_0x5350f8)};}});}}class et extends _0x292012{['afterInit'](){const _0x335ccd=this['editor'];if(!_0x335ccd['plugins']['has']('ImageEditing'))return;const _0x43f96d=_0x335ccd['plugins']['get']('TrackChangesEditing'),_0x3681b9=_0x335ccd['plugins']['get']('ImageUtils'),_0x154fc3=_0x335ccd['locale'];_0x43f96d['enableCommand']('insertImage'),_0x43f96d['descriptionFactory']['registerElementLabel']('imageBlock',_0x2095cb=>o(_0x154fc3,'ELEMENT_IMAGE',_0x2095cb)),_0x43f96d['descriptionFactory']['registerElementLabel']('imageInline',_0x380097=>o(_0x154fc3,'ELEMENT_INLINE_IMAGE',_0x380097)),_0x43f96d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x154fc3,'ELEMENT_CAPTION')),_0x335ccd['plugins']['has']('ImageUploadEditing')&&_0x43f96d['enableCommand']('uploadImage'),_0x335ccd['plugins']['has']('ImageBlockEditing')&&_0x335ccd['plugins']['has']('ImageInlineEditing')&&(_0x43f96d['enableCommand']('imageTypeInline',(_0x26f283,_0x1db323)=>{const _0x1fce87=_0x3681b9['getClosestSelectedImageElement'](_0x335ccd['model']['document']['selection']);_0x335ccd['model']['change'](()=>{_0x43f96d['markBlockFormat'](_0x1fce87,{'commandName':'imageTypeInline','commandParams':[_0x1db323]},[],'convertBlockImageToInline');});}),_0x43f96d['enableCommand']('imageTypeBlock',(_0xfd158f,_0x36400b)=>{_0x335ccd['model']['change'](_0x55315e=>{let _0x31ef48=_0x3681b9['getClosestSelectedImageElement'](_0x335ccd['model']['document']['selection']),_0x61cda1=_0x55315e['createRangeOn'](_0x31ef48);const _0xb5b1dd=_0x3b4ced['fromPosition'](_0x61cda1['start'],'toPrevious'),_0x4154dc=_0x3b4ced['fromPosition'](_0x61cda1['end'],'toNext');_0x43f96d['forceDefaultExecution'](()=>_0xfd158f(_0x36400b)),_0x31ef48=_0x3681b9['getClosestSelectedImageElement'](_0x335ccd['model']['document']['selection']),_0x61cda1=_0x55315e['createRangeOn'](_0x31ef48);const _0xac0ec2=_0x55315e['createRange'](_0xb5b1dd,_0x4154dc);_0xb5b1dd['detach'](),_0x4154dc['detach'](),_0x43f96d['markBlockFormat'](_0x31ef48,{'commandName':'imageTypeInline','commandParams':[_0x36400b]},[],'convertInlineImageToBlock'),_0xac0ec2['start']['isBefore'](_0x61cda1['start'])&&_0x43f96d['markInsertion'](_0x55315e['createRange'](_0xac0ec2['start'],_0x61cda1['start']),'convertInlineImageToBlock'),_0x61cda1['end']['isBefore'](_0xac0ec2['end'])&&_0x43f96d['markInsertion'](_0x55315e['createRange'](_0x61cda1['end'],_0xac0ec2['end']),'convertInlineImageToBlock');});}),_0x43f96d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x43f96d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x43f96d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x43f96d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x43f96d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x43f96d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x396e98])=>{const _0x5c588f=_0x43f96d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1eff91=_0x396e98['start'],_0x4d943a=_0x396e98['end'];const _0x51071c=_0x335ccd['model']['schema']['getNearestSelectionRange'](_0x1eff91,'backward'),_0x35b1cb=_0x335ccd['model']['schema']['getNearestSelectionRange'](_0x4d943a,'forward');_0x51071c['isCollapsed']&&(_0x1eff91=_0x51071c['start']),_0x35b1cb['isCollapsed']&&(_0x4d943a=_0x35b1cb['end']),_0x5c588f([_0x335ccd['model']['createRange'](_0x1eff91,_0x4d943a)]);}),_0x43f96d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x196961),_0x43f96d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x196961)),_0x335ccd['plugins']['has']('ImageCaptionEditing')&&(_0x43f96d['enableCommand']('toggleImageCaption',(_0xc1dbc4,_0x27185d)=>{const _0x4a9937=_0x335ccd['plugins']['get']('ImageCaptionUtils');let _0xe95d8c=_0x3681b9['getClosestSelectedImageElement'](_0x335ccd['model']['document']['selection']),_0x24d4d1=_0x4a9937['getCaptionFromImageModelElement'](_0xe95d8c);_0x335ccd['model']['change'](()=>{if(_0x24d4d1)return void _0x43f96d['markDeletion'](_0x335ccd['model']['createRangeOn'](_0x24d4d1));const _0x4c6cef=_0x3681b9['isBlockImage'](_0xe95d8c);_0xc1dbc4(_0x27185d),_0xe95d8c=_0x3681b9['getClosestSelectedImageElement'](_0x335ccd['model']['document']['selection']),_0x24d4d1=_0x4a9937['getCaptionFromImageModelElement'](_0xe95d8c),_0x43f96d['markInsertion'](_0x335ccd['model']['createRangeOn'](_0x24d4d1),_0x4c6cef?null:'imageCaption');});}),_0x43f96d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x196961));const _0x66ff9f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3db0e9(_0x48bf49,_0x4e2945){const _0x2a1f8f=_0x66ff9f['findIndex'](({type:_0x2db267,subType:_0x2bd5a1})=>_0x48bf49['type']==_0x2db267&&_0x48bf49['subType']==_0x2bd5a1),_0x25cb92=_0x66ff9f['findIndex'](({type:_0x14237e,subType:_0x1172c6})=>_0x4e2945['type']==_0x14237e&&_0x4e2945['subType']==_0x1172c6);if(_0x2a1f8f<0x0||_0x25cb92<0x0)return!0x1;const _0x9e35e0=_0x48bf49['getFirstRange'](),_0x2dd958=_0x4e2945['getFirstRange']();if((0x0==_0x2a1f8f||0x1==_0x2a1f8f)&&0x2==_0x25cb92&&_0x9e35e0['isIntersecting'](_0x2dd958))return!0x0;if(0x2==_0x2a1f8f&&0x3==_0x25cb92){const _0x5ea345=_0x43f96d['_findSuggestions'](_0x9e35e0,'insertion')['filter'](({suggestion:_0xf614f7,meta:_0x50afd8})=>_0x50afd8['isOwn']&&'convertInlineImageToBlock'==_0xf614f7['subType']);if(_0x5ea345['length']>0x1&&_0x2dd958['end']['isEqual'](_0x9e35e0['start']))return!0x0;if(0x1==_0x5ea345['length']&&(_0x9e35e0['start']['isEqual'](_0x2dd958['end'])||_0x9e35e0['end']['isEqual'](_0x2dd958['start'])))return!0x0;}if(0x3==_0x2a1f8f&&0x3==_0x25cb92&&_0x9e35e0['start']['isBefore'](_0x2dd958['start'])){const _0x14ac34=_0x9e35e0['end']['nodeAfter'],_0x21312d=_0x2dd958['start']['nodeBefore'];return _0x3681b9['isBlockImage'](_0x14ac34)&&_0x14ac34===_0x21312d;}return!0x1;}function _0x196961(_0x4ac6fe,_0x5cc1f0){return _0x3db0e9(_0x4ac6fe,_0x5cc1f0)?[_0x4ac6fe,_0x5cc1f0]:_0x3db0e9(_0x5cc1f0,_0x4ac6fe)?[_0x5cc1f0,_0x4ac6fe]:null;}_0x335ccd['plugins']['has']('ImageResize')&&(_0x43f96d['enableDefaultAttributesIntegration']('resizeImage'),_0x43f96d['registerBlockAttribute']('resizedWidth'),_0x43f96d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x154fc3,'FORMAT_IMAGE_SIZE'))),_0x335ccd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x43f96d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x43f96d['registerBlockAttribute']('alt')),_0x335ccd['plugins']['has']('PictureEditing')&&(_0x43f96d['registerBlockAttribute']('sources'),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x27abf6=>{if('attribute'!=_0x27abf6['type'])return;const {data:_0x41cfec}=_0x27abf6;return _0x41cfec&&'sources'==_0x41cfec['key']?{'type':'format','content':''}:void 0x0;})),_0x335ccd['plugins']['has']('ImageSizeAttributes')&&(_0x43f96d['registerBlockAttribute']('width'),_0x43f96d['registerBlockAttribute']('height'),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x303a0a=>{if('attribute'!=_0x303a0a['type'])return;const {data:_0x38f80b}=_0x303a0a;return!_0x38f80b||'width'!=_0x38f80b['key']&&'height'!=_0x38f80b['key']?void 0x0:{'type':'format','content':''};})),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x3655b6=>{if(!!_0x66ff9f['find'](({type:_0x33d307,subType:_0x2b338d})=>_0x3655b6['type']==_0x33d307&&_0x3655b6['subType']==_0x2b338d))return _0x3655b6['previous']?{}:void 0x0;}),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x5670d8=>{if('insertion'==_0x5670d8['type']||'deletion'==_0x5670d8['type']){const _0x1f4a68=_0x5670d8['getContainedElement']();if(_0x1f4a68&&_0x1f4a68['is']('element','caption'))return{'type':'insertion'==_0x5670d8['type']?'addObject':'removeObject','element':_0x1f4a68,'quantity':0x1};}}),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x1dfc83=>'formatBlock'==_0x1dfc83['type']&&'convertInlineImageToBlock'==_0x1dfc83['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1dfc83['type']&&'convertBlockImageToInline'==_0x1dfc83['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x423ca4=>{if('attribute'!=_0x423ca4['type'])return;const {data:_0x597fc9}=_0x423ca4;if(!_0x597fc9||'alt'!=_0x597fc9['key'])return;const _0x5252a8=_0x597fc9['newValue'];return _0x5252a8?{'type':'format','content':o(_0x154fc3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5252a8+'\x22')}:{'type':'format','content':o(_0x154fc3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28a3e5=this['editor'],_0x273d3d=_0x28a3e5['locale'];_0x28a3e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10026b=>{if('formatBlock'!=_0x10026b['type']&&'formatInline'!=_0x10026b['type'])return;const {data:_0x4dafe0}=_0x10026b;if(_0x4dafe0){if('imageTextAlternative'==_0x4dafe0['commandName']){const _0x1063ec=_0x4dafe0['commandParams'][0x0]['newValue'];return _0x1063ec?{'type':'format','content':o(_0x273d3d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1063ec+'\x22')}:{'type':'format','content':o(_0x273d3d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4dafe0['commandName']){const _0x53e9cd=_0x4dafe0['commandParams'][0x0]['width'];return _0x53e9cd?{'type':'format','content':o(_0x273d3d,'*Set\x20image\x20width:*\x20%0',_0x53e9cd)}:{'type':'format','content':o(_0x273d3d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x292012{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2d003b=this['editor']['locale'],_0x5c77e1=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c77e1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5c77e1['registerBlockAttribute']('src'),_0x5c77e1['descriptionFactory']['registerDescriptionCallback'](_0x222df1=>{if('attribute'!=_0x222df1['type'])return;const {data:_0x3e74f3}=_0x222df1;return _0x3e74f3&&'src'==_0x3e74f3['key']?_0x3e74f3['newValue']&&_0x3e74f3['oldValue']?{'type':'format','content':o(_0x2d003b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3cc8b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cc8b7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3cc8b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3cc8b7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3cc8b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9eb1=this['editor'],_0x628d91=_0x4d9eb1['locale'];_0x4d9eb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae176=>{if('formatBlock'!=_0x4ae176['type']&&'formatInline'!=_0x4ae176['type'])return;const {data:_0x55efa5}=_0x4ae176;if(!_0x55efa5||'replaceImageSource'!=_0x55efa5['commandName'])return;return{'type':'format','content':o(_0x628d91,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x292012{['afterInit'](){const _0x4bfa2a=this['editor'];if(!_0x4bfa2a['plugins']['has']('ImageStyleEditing'))return;const _0x220a26=_0x4bfa2a['plugins']['get']('TrackChangesEditing'),_0x4f570a=_0x4bfa2a['plugins']['get']('ImageUtils'),_0x281eb2={};_0x220a26['enableCommand']('imageStyle',(_0x2785d6,_0x2a9d3c)=>{const _0x4e3ca8=_0x4bfa2a['plugins']['get']('Users')['me'],_0xadaeb4=_0x4bfa2a['commands']['get']('imageStyle');let _0x4da2a8=_0x4f570a['getClosestSelectedImageElement'](_0x4bfa2a['model']['document']['selection']),_0x11cbaf=_0x4bfa2a['model']['createRangeOn'](_0x4da2a8),_0x54a24b=_0xadaeb4['value'];if(_0x54a24b==_0x2a9d3c['value'])return;const _0x844a7f={'commandName':'imageStyle','commandParams':[_0x2a9d3c],'formatGroupId':_0x48a539()};_0x4bfa2a['model']['change'](()=>{if(_0x220a26['getSuggestions']()['filter'](_0xb45950=>_0xb45950['isInContent']&&_0x4e3ca8==_0xb45950['author']&&('formatBlock'==_0xb45950['type']||'formatInline'==_0xb45950['type'])&&('imageStylePreApply'==_0xb45950['subType']||'imageStylePostApply'==_0xb45950['subType'])&&_0xb45950['getFirstRange']()['isEqual'](_0x11cbaf))['forEach'](_0x49694e=>_0x220a26['discardSuggestion'](_0x49694e['head'])),_0x4da2a8=_0x4f570a['getClosestSelectedImageElement'](_0x4bfa2a['model']['document']['selection']),_0x11cbaf=_0x4bfa2a['model']['createRangeOn'](_0x4da2a8),_0xadaeb4['refresh'](),_0x4bfa2a['commands']['get']('imageTypeInline')['refresh'](),_0x4bfa2a['commands']['get']('imageTypeBlock')['refresh'](),_0x54a24b=_0xadaeb4['value'],_0x54a24b!=_0x2a9d3c['value'])return _0x4f570a['isInlineImage'](_0x4da2a8)&&_0xadaeb4['shouldConvertImageType'](_0x2a9d3c['value'],_0x4da2a8)?(_0x2785d6({..._0x2a9d3c,'setImageSizes':!0x1}),_0x4da2a8=_0x4f570a['getClosestSelectedImageElement'](_0x4bfa2a['model']['document']['selection']),void _0x220a26['markBlockFormat'](_0x4da2a8,{..._0x844a7f,'commandReversedParams':[{'value':_0x54a24b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4f570a['isBlockImage'](_0x4da2a8)?_0x220a26['markBlockFormat'](_0x4da2a8,_0x844a7f,[],'imageStylePostApply'):_0x220a26['markInlineFormat'](_0x11cbaf,_0x844a7f,'imageStylePostApply'));});});for(const _0x1a58d7 of _0x4bfa2a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x281eb2[_0x1a58d7['name']]=_0x1a58d7['title']['toLowerCase']();_0x220a26['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x220a26['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x220a26['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x220a26['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3dc88f])=>{_0x4f570a['setImageNaturalSizeAttributes'](_0x3dc88f['getContainedElement']());}),_0x220a26['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4634b1,_0x33b8dd)=>{_0x220a26['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4634b1,{'commandName':_0x33b8dd['commandName'],'commandParams':_0x33b8dd['commandReversedParams']});}),_0x220a26['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5af604,_0x5e0f0c){if(_0x3f5d4c(_0x5af604,_0x5e0f0c))return[_0x5af604,_0x5e0f0c];if(_0x3f5d4c(_0x5e0f0c,_0x5af604))return[_0x5e0f0c,_0x5af604];return null;});const _0x51dd65=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3f5d4c(_0x4bd3f5,_0x2a1d13){const _0x441d3c=_0x51dd65['findIndex'](({type:_0x1cccb0,subType:_0x35386d})=>_0x4bd3f5['type']==_0x1cccb0&&_0x4bd3f5['subType']==_0x35386d),_0x5072ee=_0x51dd65['findIndex'](({type:_0x1acbfb,subType:_0x3dc154})=>_0x2a1d13['type']==_0x1acbfb&&_0x2a1d13['subType']==_0x3dc154);if(_0x441d3c<0x0||_0x5072ee<0x0)return!0x1;const _0x2227ee=_0x4bd3f5['getFirstRange'](),_0x5c20b1=_0x2a1d13['getFirstRange']();if((0x0==_0x441d3c||0x1==_0x441d3c)&&0x2==_0x5072ee&&_0x2227ee['isIntersecting'](_0x5c20b1))return!0x0;if(0x2==_0x441d3c&&0x3==_0x5072ee){const _0x332857=_0x220a26['_findSuggestions'](_0x2227ee,'insertion')['filter'](({suggestion:_0x5ebd40,meta:_0x2a59c6})=>_0x2a59c6['isOwn']&&'convertInlineImageToBlock'==_0x5ebd40['subType']);if(_0x332857['length']>0x1&&_0x5c20b1['end']['isEqual'](_0x2227ee['start']))return!0x0;if(0x1==_0x332857['length']&&(_0x2227ee['start']['isEqual'](_0x5c20b1['end'])||_0x2227ee['end']['isEqual'](_0x5c20b1['start'])))return!0x0;}if(0x3==_0x441d3c&&0x3==_0x5072ee&&_0x2227ee['start']['isBefore'](_0x5c20b1['start'])){const _0x2302b8=_0x2227ee['end']['nodeAfter'],_0x20f08f=_0x5c20b1['start']['nodeBefore'];return _0x4f570a['isBlockImage'](_0x2302b8)&&_0x2302b8===_0x20f08f;}return!0x1;}_0x4bfa2a['model']['document']['registerPostFixer'](()=>{let _0x67a8e6=!0x1;const _0x24d3bf=Array['from'](_0x4bfa2a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe435d0,data:_0x167aa3}of _0x24d3bf){const {group:_0x18a012,type:_0x5631da,subType:_0x71b27e,id:_0x4a9b5b}=_0x220a26['_splitMarkerName'](_0xe435d0);if('suggestion'==_0x18a012&&_0x220a26['hasSuggestion'](_0x4a9b5b)){if('formatBlock'==_0x5631da&&('imageStylePreApply'==_0x71b27e||'imageStylePostApply'==_0x71b27e)){const _0x4545b7=_0x220a26['getSuggestion'](_0x4a9b5b);if(_0x167aa3['newRange']){const _0x51610c=_0x4545b7['getFirstRange']()['getContainedElement']();if(_0x4f570a['isBlockImage'](_0x51610c))continue;_0x220a26['discardSuggestion'](_0x4545b7),_0x67a8e6=!0x0;}}if('insertion'==_0x5631da&&'imageCaption'==_0x71b27e&&!_0x167aa3['newRange']){const _0x254764=_0x220a26['getSuggestion'](_0x4a9b5b);_0x254764['next']&&_0x254764['next']['isInContent']&&(_0x220a26['discardSuggestion'](_0x254764['next']),_0x67a8e6=!0x0);}}}return _0x67a8e6;}),this['_registerLegacyDescription'](_0x281eb2);}['_registerLegacyDescription'](_0x329a59){const _0xc5e867=this['editor'],_0x493310=_0xc5e867['locale'];_0xc5e867['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb4a84f=>{if('formatBlock'!=_0xb4a84f['type']&&'formatInline'!=_0xb4a84f['type'])return;const {data:_0x308c1e}=_0xb4a84f;if(!_0x308c1e||'imageStyle'!=_0x308c1e['commandName'])return;const _0x105267=_0x308c1e['commandParams'][0x0]['value'];return _0x5a304e('side'===_0x105267?o(_0x493310,'FORMAT_SIDE_IMAGE'):_0x329a59[_0x105267]||_0x105267);function _0x5a304e(_0x285855){return{'type':'format','content':o(_0x493310,'*Format:*\x20%0',_0x285855)};}});}}class rt extends _0x292012{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5b774f){super(_0x5b774f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x292259=this['editor'],_0x2eb0f3=_0x292259['commands']['get']('importWord'),_0x50b237=_0x292259['commands']['get']('trackChanges');_0x2eb0f3&&(_0x2eb0f3['on']('execute',(_0x4144c3,[,_0x123bff])=>{this['_trackChangesValueDuringImport']=_0x50b237['value'],_0x123bff['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2eb0f3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2eb0f3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x50b237['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x292259['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1378b9,_0xbce623){const {suggestions:_0x4236a5}=_0xbce623,_0x5536a4=this['editor']['commands']['get']('trackChanges'),_0xc90698=_0x5536a4['value'];this['_trackChangesValueDuringImport']!==_0xc90698&&(_0x5536a4['execute'](),this['_trackChangesExecuted']=!0x0),_0x4236a5&&_0x4236a5['forEach'](({id:_0x2a8a27,type:_0x228299,author:_0x3e1c2a,created_at:_0x2b79f5})=>{const _0x4aa2c2={'id':_0x2a8a27,'type':_0x228299,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3e1c2a,'createdAt':_0x2b79f5?new Date(_0x2b79f5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4aa2c2);});}}class at extends _0x292012{['afterInit'](){const _0x207df9=this['editor'],_0x566e43=_0x207df9['plugins']['get']('TrackChangesEditing');if(_0x207df9['plugins']['has']('IndentEditing')&&(_0x566e43['enableCommand']('indent'),_0x566e43['enableCommand']('outdent')),_0x207df9['plugins']['has']('IndentBlock')){for(const _0x1fdb9c of['indentBlock','outdentBlock'])_0x566e43['enableDefaultAttributesIntegration'](_0x1fdb9c);}const _0x59c78e=_0x207df9['locale'];_0x566e43['registerBlockAttribute']('blockIndent'),_0x566e43['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x59c78e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312a56=this['editor'],_0x53b5c9=_0x312a56['locale'],_0x994469=_0x312a56['plugins']['get']('TrackChangesEditing');_0x994469['descriptionFactory']['registerDescriptionCallback'](_0x684486=>{if('formatBlock'!=_0x684486['type'])return;const {data:_0x227f11}=_0x684486;if(!_0x227f11)return;if('indentBlock'!=_0x227f11['commandName']&&'outdentBlock'!=_0x227f11['commandName'])return;const _0x2f8d92=_0x684486['getItems']()[0x0],_0x31dc31=_0x994469['descriptionFactory']['getItemLabel'](_0x2f8d92);return'indentBlock'==_0x227f11['commandName']?{'type':'format','content':o(_0x53b5c9,'*Indent:*\x20%0',_0x31dc31)}:'outdentBlock'==_0x227f11['commandName']?{'type':'format','content':o(_0x53b5c9,'*Outdent:*\x20%0',_0x31dc31)}:void 0x0;});}}class ct extends _0x292012{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x292012{['afterInit'](){const _0x4a8c6c=this['editor'];if(!_0x4a8c6c['plugins']['has']('LinkEditing'))return;const _0x2fd732=_0x4a8c6c['plugins']['get']('TrackChangesEditing'),_0x580247=_0x4a8c6c['commands']['get']('link');_0x2fd732['enableDefaultAttributesIntegration']('link'),_0x2fd732['enableDefaultAttributesIntegration']('unlink'),_0x2fd732['registerInlineAttribute']('linkHref');for(const _0x4088a0 of _0x580247['manualDecorators'])_0x2fd732['registerInlineAttribute'](_0x4088a0['id']),_0x2fd732['descriptionFactory']['registerAttributeLabel'](_0x4088a0['id'],'link\x20('+_0x4088a0['label']['toLowerCase']()+')');_0x2fd732['descriptionFactory']['registerDescriptionCallback'](_0x60c636=>{if('attribute'!=_0x60c636['type'])return;const {data:_0x569492}=_0x60c636;if(!_0x569492||'linkHref'!=_0x569492['key'])return;const _0x205df5=_0x569492['newValue'],_0x5b1bd4=_0x4a8c6c['locale'];return{'type':'format','content':null==_0x205df5?o(_0x5b1bd4,'*Remove\x20link*'):o(_0x5b1bd4,'*Set\x20link:*\x20%0','\x22'+_0x205df5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1318e8=this['editor'],_0x2476b5=_0x1318e8['locale'];_0x1318e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ee0a8=>{if('formatInline'!=_0x3ee0a8['type'])return;const {data:_0x183ec6}=_0x3ee0a8;if(_0x183ec6){if('link'==_0x183ec6['commandName']){const _0x4809a5=_0x183ec6['commandParams'][0x0];return{'type':'format','content':o(_0x2476b5,'*Set\x20link:*\x20%0','\x22'+_0x4809a5+'\x22')};}return'unlink'==_0x183ec6['commandName']?{'type':'format','content':o(_0x2476b5,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x292012{['afterInit'](){const _0x380057=this['editor'],_0x3fedfb=_0x380057['locale'];if(!_0x380057['plugins']['has']('LegacyListEditing'))return;const _0x8ae522=_0x380057['plugins']['get']('TrackChangesEditing'),_0x160e4d=_0x380057['plugins']['has']('LegacyTodoListEditing');function _0x24bf01(_0x52019b){return()=>{const _0x1322ea=_0x380057['model']['document']['selection'],_0x3879dd=_0x380057['commands']['get'](_0x52019b);if(_0x3879dd['value'])return void _0x380057['execute']('paragraph',{});const _0x154de3=_0x52019b['slice'](0x0,-0x4),_0x557c29=function(_0x1924c4,_0x17485d,_0x1eeb28){let _0xf3abfb=Array['from'](_0x1924c4)['filter'](_0xe6d9e=>function(_0x2b7794,_0xbe4945){return _0xbe4945['checkChild'](_0x2b7794['parent'],'listItem')&&!_0xbe4945['isObject'](_0x2b7794);}(_0xe6d9e,_0x1eeb28));_0xf3abfb=_0xf3abfb['filter'](_0x1c3761=>!_0x1c3761['is']('element','listItem')||_0x1c3761['getAttribute']('listType')!=_0x17485d);const _0x12e826=new Set();for(const _0x23d77c of _0xf3abfb)_0x23d77c['is']('element','listItem')?_0x12e826['add'](Le(_0x23d77c)):_0x12e826['add'](_0x23d77c);return Array['from'](_0x12e826);}(_0x1322ea['getSelectedBlocks'](),_0x154de3,_0x380057['model']['schema']);_0x380057['model']['change'](()=>{for(const _0xbd89fb of _0x557c29)_0x8ae522['markBlockFormat'](_0xbd89fb,{'commandName':_0x52019b,'commandParams':[{'forceValue':!_0x3879dd['value']}],'formatGroupId':'blockName'},Ee(_0xbd89fb));});};}function _0x160a09(_0x324267){return()=>{const _0x44460e=function(_0x16c323){let _0x37c810=Array['from'](_0x16c323);const _0x5eb87a=_0x37c810['findIndex'](_0x2ae521=>'listItem'!=_0x2ae521['name']);return _0x5eb87a>-0x1&&(_0x37c810=_0x37c810['slice'](0x0,_0x5eb87a)),_0x37c810;}(_0x380057['model']['document']['selection']['getSelectedBlocks']()),_0x66c213=_0x380057['model']['createRange'](_0x380057['model']['createPositionAt'](_0x44460e[0x0],'before'),_0x380057['model']['createPositionAt'](_0x44460e[_0x44460e['length']-0x1],'end'));_0x380057['model']['change'](()=>{_0x8ae522['markBlockFormat'](_0x66c213,{'commandName':_0x324267,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2f5bbf){const _0x169f72=new Set();for(const _0x215d15 of _0x2f5bbf){let _0x3dceab=_0x215d15['nextSibling'];for(;_0x3dceab&&_0x3dceab['getAttribute']('listIndent')>_0x215d15['getAttribute']('listIndent');)_0x169f72['add'](_0x3dceab),_0x3dceab=_0x3dceab['nextSibling'];}return Array['from'](_0x169f72);}(_0x44460e));});};}_0x8ae522['enableCommand']('numberedList',_0x24bf01('numberedList')),_0x8ae522['enableCommand']('bulletedList',_0x24bf01('bulletedList')),_0x160e4d&&_0x8ae522['enableCommand']('todoList',_0x24bf01('todoList')),_0x8ae522['enableCommand']('indentList',_0x160a09('indentList')),_0x8ae522['enableCommand']('outdentList',_0x160a09('outdentList')),_0x160e4d&&_0x8ae522['enableCommand']('checkTodoList',()=>{const _0x37e681=_0x380057['commands']['get']('checkTodoList'),_0x4f6bd8=Array['from'](_0x37e681['_selectedElements']);_0x4f6bd8['filter'](_0x176cc9=>_0x176cc9['getAttribute']('todoListChecked')!=_0x37e681['value']),_0x380057['model']['change'](()=>{for(const _0x5c3bf8 of _0x4f6bd8)_0x8ae522['markBlockFormat'](_0x5c3bf8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x37e681['value']}]});});}),_0x8ae522['descriptionFactory']['registerElementLabel']('listItem',_0xb98895=>o(_0x3fedfb,'ELEMENT_LIST_ITEM',_0xb98895)),_0x8ae522['descriptionFactory']['registerDescriptionCallback'](_0x595cac=>{if('formatBlock'!=_0x595cac['type']&&'formatInline'!=_0x595cac['type'])return;const {data:_0x3d332d}=_0x595cac;if(_0x3d332d){if('numberedList'==_0x3d332d['commandName']||'bulletedList'==_0x3d332d['commandName']||'todoList'==_0x3d332d['commandName'])switch(_0x3d332d['commandName']['replace']('List','')){case'bulleted':return _0x1b1a15(o(_0x3fedfb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b1a15(o(_0x3fedfb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b1a15(o(_0x3fedfb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3d332d['commandName'])return{'type':'format','content':o(_0x3fedfb,'*Indent:*\x20%0',o(_0x3fedfb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3d332d['commandName'])return{'type':'format','content':o(_0x3fedfb,'*Outdent:*\x20%0',o(_0x3fedfb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3d332d['commandName'])return _0x3d332d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fedfb,'*Check\x20item*')}:{'type':'format','content':o(_0x3fedfb,'*Uncheck\x20item*')};}function _0x1b1a15(_0x4a4dc1){return{'type':'format','content':o(_0x3fedfb,'*Change\x20to:*\x20%0',_0x4a4dc1)};}});}}function Le(_0x13d7a6){const _0x1383ba=_0x13d7a6['getAttribute']('listIndent');if(0x0==_0x1383ba)return _0x13d7a6;let _0x1c9be4=_0x13d7a6;for(;_0x13d7a6['previousSibling']&&_0x13d7a6['previousSibling']['is']('element','listItem');){const _0x566c57=_0x13d7a6['previousSibling']['getAttribute']('listIndent');if(_0x566c57==_0x1383ba)_0x1c9be4=_0x13d7a6['previousSibling'];else{if(_0x566c57<_0x1383ba)break;}_0x13d7a6=_0x13d7a6['previousSibling'];}return _0x1c9be4;}function Ee(_0x5c587c){const _0x446c61=[];if(_0x5c587c['is']('element','listItem')&&_0x5c587c['getAttribute']('listIndent')>0x0){let _0x226e95=_0x5c587c['nextSibling'];for(;_0x226e95&&'listItem'==_0x226e95['name']&&_0x226e95['getAttribute']('listIndent')==_0x5c587c['getAttribute']('listIndent');)_0x446c61['push'](_0x226e95),_0x226e95=_0x226e95['nextSibling'];}return _0x446c61;}class ht extends _0x292012{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xd0e21a=this['editor']['config']['get']('list.properties'),_0x200b7c=this['editor']['plugins']['get']('TrackChangesEditing');_0xd0e21a['styles']&&_0x200b7c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xd0e21a['reversed']&&_0x200b7c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xd0e21a['startIndex']&&_0x200b7c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x200b7c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x44b373,_0x2f1a02={}){const _0x54d426=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d5ba9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54d426['markMultiRangeBlockFormat'](_0x3d5ba9,{'commandName':'listStyle','commandParams':[{'type':_0x2f1a02['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x32d89d,_0x39fc31={}){const _0x48c76f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5aa884=this['_getSuggestionBlocks'](_0x4b6d50=>_0x4b6d50['is']('element','listItem')&&'numbered'===_0x4b6d50['getAttribute']('listType'));if(_0x5aa884['length']<0x1)return;const _0xbfb7ed=_0x5aa884['map'](_0xa13c49=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa13c49,'before'),this['editor']['model']['createPositionAt'](_0xa13c49,0x0)));this['editor']['model']['change'](()=>{_0x48c76f['markMultiRangeBlockFormat'](_0xbfb7ed,{'commandName':'listReversed','commandParams':[{'reversed':_0x39fc31['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x516abb,_0xe58f3={}){const _0x568a90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14cc1f=this['_getSuggestionBlocks'](_0x246f2f=>_0x246f2f['is']('element','listItem')&&'numbered'===_0x246f2f['getAttribute']('listType'));if(_0x14cc1f['length']<0x1)return;const _0x1f112d=_0x14cc1f['map'](_0x3a094f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a094f,'before'),this['editor']['model']['createPositionAt'](_0x3a094f,0x0)));this['editor']['model']['change'](()=>{_0x568a90['markMultiRangeBlockFormat'](_0x1f112d,{'commandName':'listStart','commandParams':[{'startIndex':_0xe58f3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x17b1cc){if('formatBlock'!=_0x17b1cc['type']&&'formatInline'!=_0x17b1cc['type'])return;const _0x5e1299=this['editor']['locale'],{data:_0x12d8c8}=_0x17b1cc;if(!_0x12d8c8)return;let _0x79caf2,_0x276051;switch(_0x12d8c8['commandName']){case'listStyle':_0x79caf2='*Change\x20to:*\x20%0',_0x276051={'type':'format','content':o(_0x5e1299,_0x79caf2,o(_0x5e1299,this['_getTranslationKeyForListStyle'](_0x12d8c8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x79caf2=_0x12d8c8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x276051={'type':'format','content':o(_0x5e1299,_0x79caf2)};break;case'listStart':_0x79caf2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x276051={'type':'format','content':o(_0x5e1299,_0x79caf2,_0x12d8c8['commandParams'][0x0]['startIndex'])};}return _0x276051;}['_getSuggestionBlocksForListStyle'](){const _0xc16ffa=this['editor']['plugins']['get']('LegacyListUtils');let _0x36a48d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x36a48d[0x0]?.['is']('element','listItem')&&_0x36a48d['unshift'](..._0xc16ffa['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x36a48d[_0x36a48d['length']-0x1]?.['is']('element','listItem')&&_0x36a48d['push'](..._0xc16ffa['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x36a48d=[...new Set(_0x36a48d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x36a48d=_0x36a48d['filter'](_0x563c5a=>_0x563c5a['is']('element','listItem'))),_0x36a48d;}['_getSuggestionBlocks'](_0x907a3a){const _0x136efe=this['editor']['plugins']['get']('LegacyListUtils');let _0x204735=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x907a3a)['map'](_0x8a0af8=>{const _0x395445=this['editor']['model']['createPositionAt'](_0x8a0af8,0x0);return[..._0x136efe['getSiblingNodes'](_0x395445,'backward'),..._0x136efe['getSiblingNodes'](_0x395445,'forward')];})['flat']();return _0x204735=[...new Set(_0x204735)],_0x204735;}['_getTranslationKeyForListStyle'](_0x477a93){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x477a93)||'default')['toUpperCase']()+'_LIST_'+_0x477a93['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x292012{['afterInit'](){const _0x3a742b=this['editor'];if(!_0x3a742b['plugins']['has']('MediaEmbedEditing'))return;const _0x403614=_0x3a742b['plugins']['get']('TrackChangesEditing'),_0x30f810=_0x3a742b['locale'];_0x403614['enableCommand']('mediaEmbed'),_0x403614['descriptionFactory']['registerElementLabel']('media',_0x56a730=>o(_0x30f810,'ELEMENT_MEDIA',_0x56a730)),_0x3a742b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x25d375,{writer:_0xdd0ddc,options:_0xe8c586})=>{if(_0xe8c586['showSuggestionHighlights'])return _0xdd0ddc['createEmptyElement']('div');},'converterPriority':'high'}),_0x3a742b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2b1dda,_0xe35b22,_0x321bde)=>{_0x321bde['options']['showSuggestionHighlights']&&_0x2b1dda['stop']();},{'priority':'high'});}}class lt extends _0x292012{['afterInit'](){const _0x338269=this['editor'];_0x338269['plugins']['has']('MentionEditing')&&_0x338269['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x292012{['afterInit'](){const _0x6c1352=this['editor'];if(!_0x6c1352['plugins']['has']('MergeFieldsEditing'))return;const _0x51fa96=_0x6c1352['plugins']['get']('TrackChangesEditing'),_0x50e0a9=_0x6c1352['locale'];_0x51fa96['enableCommand']('insertMergeField'),_0x51fa96['enableCommand']('insertMergeFieldBlock'),_0x51fa96['enableCommand']('insertMergeFieldImage'),_0x51fa96['descriptionFactory']['registerElementLabel']('mergeField',_0x1107cc=>o(_0x50e0a9,'ELEMENT_MERGE_FIELD',_0x1107cc)),_0x51fa96['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1fec63=>o(_0x50e0a9,'ELEMENT_MERGE_FIELD',_0x1fec63)),_0x51fa96['descriptionFactory']['registerDescriptionCallback'](_0x4c3651=>{if('insertion'!=_0x4c3651['type']&&'deletion'!=_0x4c3651['type'])return;const _0x7f6fff=_0x4c3651['getContainedElement']();if(null==_0x7f6fff)return;const _0xd573e5=_0x6c1352['plugins']['get']('MergeFieldsEditing');let _0x409698;switch(_0xd573e5['getMergeFieldType'](_0x7f6fff)){case null:return;case'image':{const _0x55342c=_0xd573e5['unwrapAffixes'](_0x7f6fff['getAttribute']('src'));_0x409698=_0xd573e5['getLabel'](_0x55342c)||_0x55342c;break;}default:{const _0x4006c2=_0x7f6fff['getAttribute']('id');_0x409698=_0xd573e5['getLabel'](_0x4006c2)||_0x4006c2;break;}}return'insertion'==_0x4c3651['type']?{'type':'insertion','content':o(_0x50e0a9,'*Insert:*\x20%0','\x22'+_0x409698+'\x22\x20'+o(_0x50e0a9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x50e0a9,'*Remove:*\x20%0','\x22'+_0x409698+'\x22\x20'+o(_0x50e0a9,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x292012{['afterInit'](){const _0x44e16c=this['editor'],_0x35e0c1=_0x44e16c['plugins']['get']('TrackChangesEditing');_0x44e16c['plugins']['has']('MultiLevelList')&&(_0x35e0c1['enableDefaultAttributesIntegration']('multiLevelList'),_0x35e0c1['registerBlockAttribute']('listMarkerStyle'),_0x35e0c1['descriptionFactory']['registerDescriptionCallback'](_0x136cef=>this['handleDescriptions'](_0x136cef)));}['handleDescriptions'](_0x296003){const _0x1fe81c=this['editor']['locale'],{data:_0x31e262}=_0x296003,_0x5635e0={'type':'format','content':''};if(_0x31e262&&'listMarkerStyle'==_0x31e262['key']){if(!_0x31e262['oldValue'])return{'type':'format','content':o(_0x1fe81c,'*Set\x20format:*\x20%0',o(_0x1fe81c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31e262['newValue']+')'};if(!_0x31e262['newValue']){let _0xed3270=_0x296003['head'];for(;_0xed3270;){if(_0xed3270['data']&&'listType'==_0xed3270['data']['key']&&_0xed3270['data']['newValue'])return _0x5635e0;_0xed3270=_0xed3270['next'];}return{'type':'format','content':o(_0x1fe81c,'*Remove\x20format:*\x20%0',o(_0x1fe81c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31e262['oldValue']+')'};}}}}class pt extends _0x292012{['afterInit'](){const _0x6e3ec4=this['editor'];if(!_0x6e3ec4['plugins']['has']('PageBreakEditing'))return;_0x6e3ec4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d1dcf=_0x6e3ec4['plugins']['get']('TrackChangesEditing'),_0x2961fb=_0x6e3ec4['locale'];_0x3d1dcf['descriptionFactory']['registerElementLabel']('pageBreak',_0x549d65=>o(_0x2961fb,'ELEMENT_PAGE_BREAK',_0x549d65));}}class kt extends _0x292012{['afterInit'](){const _0x2cae5f=this['editor'];if(!_0x2cae5f['plugins']['has']('Paragraph'))return;const _0x4861eb=_0x2cae5f['locale'],_0x47731c=_0x2cae5f['plugins']['get']('TrackChangesEditing');_0x47731c['descriptionFactory']['registerElementLabel']('paragraph',_0xea8c4=>o(_0x4861eb,'ELEMENT_PARAGRAPH',_0xea8c4)),_0x47731c['enableDefaultAttributesIntegration']('paragraph'),_0x47731c['enableCommand']('insertParagraph'),_0x2cae5f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2cae5f),{'priority':'highest'}),_0x2cae5f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x371076,_0x13903d,_0x439149)=>{_0x439149['options']['showSuggestionHighlights']&&nr(_0x2cae5f,{'showActiveMarker':!0x1})(_0x371076,_0x13903d,_0x439149);},{'priority':'highest'});const _0x1b355e=_0x47731c['descriptionFactory'];_0x1b355e['registerDescriptionCallback'](_0x2610ce=>{if('insertion'!==_0x2610ce['type'])return;const {start:_0x38329f,end:_0x112796}=_0x2610ce['getFirstRange']();if(!_0x38329f['isTouching'](_0x112796)||!_0x38329f['nodeAfter'])return;const _0x51d419=_0x2cae5f['model']['schema'],_0x19f93=_0x38329f['nodeAfter'];return _0x51d419['isBlock'](_0x19f93)&&!_0x51d419['isLimit'](_0x19f93)&&_0x51d419['checkChild'](_0x19f93,'$text')?{'type':'insertion','content':o(_0x4861eb,'*Insert:*\x20%0',_0x1b355e['getItemLabel'](_0x19f93,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3427cd=this['editor'],_0x215fab=_0x3427cd['locale'];_0x3427cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x319ed5=>{if('formatBlock'!=_0x319ed5['type'])return;const {data:_0x1bdbb4}=_0x319ed5;return _0x1bdbb4&&'paragraph'==_0x1bdbb4['commandName']?{'type':'format','content':o(_0x215fab,'*Change\x20to:*\x20%0',o(_0x215fab,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xf57660,{showActiveMarker:_0x12ec58=!0x0}={}){return(_0x720b1f,_0x3345f2,_0x4914ac)=>{const _0x3c9436=_0xf57660['plugins']['get']('TrackChangesEditing'),_0x363162=_0x3345f2['markerRange']['start'],_0x1bc239=_0x3345f2['markerRange']['end'],_0x19fa1a=_0xf57660['model']['schema'];if(!_0x363162['isTouching'](_0x1bc239)||!_0x363162['nodeAfter'])return;const _0x538445=_0x363162['nodeAfter'];if(_0x19fa1a['isBlock'](_0x538445)&&!_0x19fa1a['isLimit'](_0x538445)&&_0x19fa1a['checkChild'](_0x538445,'$text')){if(!_0x4914ac['consumable']['consume'](_0x3345f2['markerRange'],_0x720b1f['name']))return;const {id:_0x441b07,authorId:_0x341947}=_0x3c9436['_splitMarkerName'](_0x3345f2['markerName']),_0x4635df=_0x4914ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x441b07,'data-author-id':_0x341947}),_0x5cf8cb=_0x4914ac['mapper']['toViewPosition'](_0x1bc239);_0x12ec58&&_0x3c9436['activeMarkers']['includes'](_0x3345f2['markerName'])&&_0x4914ac['writer']['addClass']('ck-suggestion-marker--active',_0x4635df),_0x4914ac['writer']['insert'](_0x5cf8cb,_0x4635df),_0x4914ac['mapper']['bindElementToMarker'](_0x4635df,_0x3345f2['markerName']);}};}class wt extends _0x292012{['afterInit'](){const _0x370670=this['editor'];_0x370670['commands']['get']('replaceSource')&&_0x370670['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x292012{['afterInit'](){const _0x4afa8b=this['editor'];if(!_0x4afa8b['plugins']['has']('RemoveFormatEditing'))return;_0x4afa8b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x173aab=this['editor'];_0x173aab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd8db52=>{if('formatBlock'!=_0xd8db52['type']&&'formatInline'!=_0xd8db52['type'])return;const {data:_0xa79c54}=_0xd8db52;return _0xa79c54&&'removeFormat'==_0xa79c54['commandName']?{'type':'format','content':o(_0x173aab['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x292012{['afterInit'](){const _0x1ac562=this['editor'];if(!_0x1ac562['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x206f9f=_0x1ac562['plugins']['get']('TrackChangesEditing');_0x206f9f['enableCommand']('goToPreviousRestrictedEditingException'),_0x206f9f['enableCommand']('goToNextRestrictedEditingException');const _0x32474a=_0x1ac562['plugins']['get']('RestrictedEditingModeEditing');_0x32474a['enableCommand']('trackChanges'),_0x32474a['enableCommand']('acceptSuggestion'),_0x32474a['enableCommand']('discardSuggestion'),_0x32474a['enableCommand']('acceptAllSuggestions'),_0x32474a['enableCommand']('discardAllSuggestions'),_0x32474a['enableCommand']('acceptSelectedSuggestions'),_0x32474a['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x292012{['afterInit'](){const _0x18cb2e=this['editor'];if(!_0x18cb2e['plugins']['has']('ShiftEnter'))return;const _0x3a4dea=_0x18cb2e['plugins']['get']('TrackChangesEditing');_0x3a4dea['enableCommand']('shiftEnter'),_0x18cb2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x18cb2e),{'priority':'high'}),_0x18cb2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x18cb2e),{'priority':'high'}),_0x18cb2e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x347878,_0x4b62e6,_0x3200f9)=>{_0x3200f9['options']['showSuggestionHighlights']&&je(_0x18cb2e,{'showActiveMarker':!0x1})(_0x347878,_0x4b62e6,_0x3200f9);}),_0x3a4dea['descriptionFactory']['registerElementLabel']('softBreak',_0x2935c8=>o(_0x18cb2e['locale'],'ELEMENT_LINE_BREAK',_0x2935c8));}}function je(_0x3d4bc8,{showActiveMarker:_0x5eadc9=!0x0}={}){return(_0x231773,_0x2e68f6,_0x5323ec)=>{const _0x349789=_0x3d4bc8['plugins']['get']('TrackChangesEditing');if(!_0x5323ec['consumable']['test'](_0x2e68f6['markerRange'],_0x231773['name']))return;const _0x497069=_0x3d4bc8['model'];for(const _0x2a2599 of _0x2e68f6['markerRange']['getItems']()){if(!_0x2a2599['is']('element','softBreak'))continue;const _0x2816b3='deletion'==_0x2e68f6['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4675d9,authorId:_0x50873e}=_0x349789['_splitMarkerName'](_0x2e68f6['markerName']),_0x1b1a8f=_0x5323ec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2816b3,'data-suggestion':_0x4675d9,'data-author-id':_0x50873e}),_0x579ce9=_0x5323ec['mapper']['toViewPosition'](_0x497069['createPositionBefore'](_0x2a2599));_0x5eadc9&&_0x349789['activeMarkers']['includes'](_0x2e68f6['markerName'])&&_0x5323ec['writer']['addClass']('ck-suggestion-marker--active',_0x1b1a8f),_0x5323ec['writer']['insert'](_0x579ce9,_0x1b1a8f),_0x5323ec['mapper']['bindElementToMarker'](_0x1b1a8f,_0x2e68f6['markerName']);}};}class St extends _0x292012{['afterInit'](){const _0x595e53=this['editor'],_0x2e5fa7=_0x595e53['model'],_0x3f13d8=_0x595e53['locale'];if(!_0x595e53['plugins']['has']('StandardEditingModeEditing'))return;const _0x538e7d=_0x595e53['plugins']['get']('TrackChangesEditing'),_0x3f95ef='restrictedEditingException',_0x19d85a=_0x595e53['commands']['get'](_0x3f95ef);_0x538e7d['enableCommand'](_0x3f95ef,(_0x2e7934,_0x1ae00e={})=>{const _0x507874=_0x2e5fa7['document']['selection'];if(_0x507874['isCollapsed'])return void _0x2e7934(_0x1ae00e);const _0x258a06=void 0x0!==_0x1ae00e['forceValue']?_0x1ae00e['forceValue']:!_0x19d85a['value'];_0x2e5fa7['change'](()=>{const _0xc81184=Array['from'](_0x507874['getRanges']());for(const _0x3ab9b5 of _0xc81184){const _0x2fde95=_0x258a06?[_0x3ab9b5]:io(_0x3f95ef,_0x3ab9b5,_0x2e5fa7);for(const _0x2e2645 of _0x2fde95)_0x538e7d['markInlineFormat'](_0x2e2645,{'commandName':_0x3f95ef,'commandParams':[{'forceValue':_0x258a06}]});}});}),_0x538e7d['descriptionFactory']['registerDescriptionCallback'](_0x2f3637=>{if('formatBlock'!=_0x2f3637['type']&&'formatInline'!=_0x2f3637['type'])return;const {data:_0x349783}=_0x2f3637;return _0x349783&&_0x349783['commandName']==_0x3f95ef?_0x349783['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f13d8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3f13d8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x292012{['afterInit'](){const _0x54d07c=this['editor'];if(!_0x54d07c['plugins']['has']('Style')||!_0x54d07c['plugins']['has']('DataSchema'))return;const _0x30777f=_0x54d07c['plugins']['get']('TrackChangesEditing'),_0x22ff32=_0x54d07c['locale'],_0x1d2a21=_0x54d07c['config']['get']('style')||{},_0x3d8961=_0x54d07c['plugins']['get']('GeneralHtmlSupport'),_0x503e77=_0x54d07c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x54d07c['plugins']['get']('DataSchema'),_0x1d2a21['definitions']);_0x30777f['enableDefaultAttributesIntegration']('style');const _0x409c10=new Set();for(const _0x3a3e38 of _0x503e77['block']){const _0x1f2fad=_0x3d8961['getGhsAttributeNameForElement'](_0x3a3e38['element']);_0x409c10['add'](_0x1f2fad);}const _0x242776=new Set();for(const _0x4376c3 of _0x503e77['inline']){const _0x5d97f0=_0x3d8961['getGhsAttributeNameForElement'](_0x4376c3['element']);_0x242776['add'](_0x5d97f0);for(const _0x523a71 of _0x4376c3['ghsAttributes'])_0x242776['add'](_0x523a71);}for(const _0x4ffb7e of _0x409c10)_0x30777f['registerBlockAttribute'](_0x4ffb7e),_0x30777f['descriptionFactory']['registerAttributeLabel'](_0x4ffb7e,o(_0x22ff32,'FORMAT_STYLE'));for(const _0xef48b4 of _0x242776)_0x30777f['registerInlineAttribute'](_0xef48b4),_0x30777f['descriptionFactory']['registerAttributeLabel'](_0xef48b4,o(_0x22ff32,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56d0e1=this['editor'],_0x364ddf=_0x56d0e1['locale'];_0x56d0e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x175584=>{if('formatBlock'!=_0x175584['type']&&'formatInline'!=_0x175584['type'])return;const {data:_0x9bac4}=_0x175584;return _0x9bac4&&'style'===_0x9bac4['commandName']?_0x9bac4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x364ddf,'*Set\x20format:*\x20%0',_0x9bac4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x364ddf,'*Remove\x20format:*\x20%0',_0x9bac4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x292012{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4c5a19){super(_0x4c5a19),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xdda0ec=this['editor'],_0x5de62b=_0xdda0ec['model']['document']['selection'];if(!_0xdda0ec['plugins']['has']('TableEditing'))return;const _0x2b0142=_0xdda0ec['locale'],_0x97d7a8=_0xdda0ec['plugins']['get']('TrackChangesEditing'),_0x4229fe=_0xdda0ec['plugins']['get']('TableUtils');_0x97d7a8['descriptionFactory']['registerElementLabel']('table',_0x152fc5=>o(_0x2b0142,'ELEMENT_TABLE',_0x152fc5)),this['_setupColumnsRowsFixing'](),_0x97d7a8['enableCommand']('insertTable'),_0x97d7a8['enableCommand']('selectTableRow'),_0x97d7a8['enableCommand']('selectTableColumn');for(const _0x3fce8b of['insertTableRowAbove','insertTableRowBelow']){const _0x484418=_0xdda0ec['commands']['get'](_0x3fce8b);_0x97d7a8['enableCommand'](_0x3fce8b,_0x439cb2=>{_0xdda0ec['model']['change'](_0x436129=>{_0x439cb2();const _0x43f329='above'===_0x484418['order'],_0xd5c916=_0x4229fe['getSelectionAffectedTableCells'](_0x5de62b),_0x132b78=_0x4229fe['getRowIndexes'](_0xd5c916),_0x36d017=_0x43f329?_0x132b78['first']-0x1:_0x132b78['last']+0x1,_0x240ceb=_0xd5c916[0x0]['findAncestor']('table'),_0x420223=_0x4229fe['createTableWalker'](_0x240ceb,{'startRow':_0x36d017,'endRow':_0x36d017}),_0x221a2e=Array['from'](_0x420223)['map'](_0x4e7010=>_0x436129['createRangeOn'](_0x4e7010['cell']));_0x97d7a8['markMultiRangeInsertion'](_0x221a2e,'tableRow');});});}for(const _0x2bbd85 of['insertTableColumnLeft','insertTableColumnRight']){const _0x519112=_0xdda0ec['commands']['get'](_0x2bbd85);_0x97d7a8['enableCommand'](_0x2bbd85,_0x438cc1=>{_0xdda0ec['model']['change'](_0x1a477d=>{_0x438cc1();const _0xfa485='left'===_0x519112['order'],_0x552987=_0x4229fe['getSelectionAffectedTableCells'](_0x5de62b),_0x185991=_0x4229fe['getColumnIndexes'](_0x552987),_0x22e5cb=_0xfa485?_0x185991['first']-0x1:_0x185991['last']+0x1,_0x424934=_0x552987[0x0]['findAncestor']('table'),_0x19f664=_0x4229fe['createTableWalker'](_0x424934,{'startRow':0x0,'column':_0x22e5cb,'includeAllSlots':!0x1}),_0x2e49a4=Array['from'](_0x19f664)['map'](_0x16e372=>_0x1a477d['createRangeOn'](_0x16e372['cell']));_0x97d7a8['markMultiRangeInsertion'](_0x2e49a4,'tableColumn');});});}for(const _0x374e02 of['removeTableRow','removeTableColumn']){const _0x199180=_0x374e02['substr'](0xb),_0x30ec63=_0x199180['toLowerCase'](),_0x5ea7e9=_0x30ec63['substr'](0x0,0x3)+'span',_0x25401c='table'+_0x199180,_0x1de867='min'+_0x199180,_0x11a10d='max'+_0x199180;_0x97d7a8['enableCommand'](_0x374e02,()=>{_0xdda0ec['model']['change'](_0x247557=>{const _0x2c1acb=_0x4229fe['getSelectionAffectedTableCells'](_0x5de62b),_0x42e078=_0x2c1acb[0x0]['findAncestor']('table');let _0x13905a;if('removeTableRow'==_0x374e02){const _0x49da57=_0x4229fe['getRowIndexes'](_0x2c1acb);_0x13905a={'startRow':_0x49da57['first'],'endRow':_0x49da57['last'],'includeAllSlots':!0x0};}else{const _0x74ed69=_0x4229fe['getColumnIndexes'](_0x2c1acb);_0x13905a={'startColumn':_0x74ed69['first'],'endColumn':_0x74ed69['last'],'includeAllSlots':!0x0};}const _0x1ea332=_0x4229fe['createTableWalker'](_0x42e078,_0x13905a),_0x247572=Array['from'](_0x1ea332)['map'](({cell:_0xa8dc2f})=>_0xa8dc2f),_0x124836=Ne(_0x247572['filter'](_0x5a7dbf=>_0x5a7dbf['hasAttribute'](_0x5ea7e9))),_0x3c7434=Ne(_0x247572['filter'](_0x556ac6=>!_0x556ac6['hasAttribute'](_0x5ea7e9)))['map'](_0x4250bd=>_0x247557['createRangeOn'](_0x4250bd)),_0x3fc754=_0x97d7a8['markMultiRangeDeletion'](_0x3c7434,_0x25401c);if(_0x3fc754&&('tableRow'==_0x3fc754['subType']||'tableColumn'==_0x3fc754['subType'])){const _0x1f8de8=this['_getSuggestionCoords'](_0x3fc754);for(const _0x4530dc of _0x124836){const _0x33e38=_0x247557['createRangeOn'](_0x4530dc),_0x5c395c=_0x4229fe['getCellLocation'](_0x4530dc),_0x5894d0=_0x4530dc['getAttribute'](_0x5ea7e9)-0x1,_0x5a760a=_0x1f8de8[_0x1de867],_0x185212=_0x1f8de8[_0x11a10d];_0x5a760a<=_0x5c395c[_0x30ec63]&&_0x5c395c[_0x30ec63]+_0x5894d0<=_0x185212&&_0x3fc754['addRange'](_0x33e38);}}});});}function _0x44c586(_0x44d7a9){const _0x45e722=Array['from'](_0x5de62b['getRanges']())['map'](_0xa37902=>_0x5f13a0['fromRange'](_0xa37902));_0xdda0ec['model']['change'](_0x4f96bc=>{const _0x4e7c68=_0x4f96bc['batch'];_0x44d7a9=_0x44d7a9['filter'](_0x5a2530=>'$graveyard'!=_0x5a2530['root']['rootName']),_0x4f96bc['setSelection'](_0x44d7a9),_0xdda0ec['commands']['get']('removeTableRow')['refresh'](),_0xdda0ec['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xdda0ec['model']['enqueueChange'](()=>{_0xdda0ec['model']['enqueueChange'](_0x4e7c68,_0x2309f9=>{const _0x42b324=_0x45e722['filter'](_0x3f1c53=>'$graveyard'!=_0x3f1c53['root']['rootName']);_0x42b324['length']>0x0&&_0x2309f9['setSelection'](_0x42b324);for(const _0x3259f3 of _0x45e722)_0x3259f3['detach']();});});});}function _0x3418ba(_0x2750c3){_0xdda0ec['model']['change'](_0x5d2489=>{const _0x3f7bc2=Array['from'](_0x5de62b['getRanges']())['map'](_0x18c7e1=>_0x5f13a0['fromRange'](_0x18c7e1)),_0x425b2e=[];for(const _0x49f530 of _0x2750c3)for(const _0x2a0e82 of _0x49f530['getItems']({'shallow':!0x0}))_0x425b2e['push'](_0x2a0e82);for(const _0x3ddf2a of _0x425b2e)'$graveyard'!=_0x3ddf2a['root']['rootName']&&(_0x5d2489['setSelection'](_0x5d2489['createPositionAt'](_0x3ddf2a,0x0)),_0xdda0ec['commands']['get']('removeTableColumn')['refresh'](),_0xdda0ec['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xe96eaa=_0x3f7bc2['filter'](_0x3e9c08=>'$graveyard'!=_0x3e9c08['root']['rootName']);_0xe96eaa['length']>0x0&&_0x5d2489['setSelection'](_0xe96eaa);for(const _0x58b253 of _0x3f7bc2)_0x58b253['detach']();});}function _0x29ed0d(_0x3365d5,_0x22f1ad){return _0x22f1ad['every'](_0x4ff317=>_0x3365d5['some'](_0x494d02=>_0x494d02['end']['isEqual'](_0x4ff317['start'])||_0x4ff317['end']['isEqual'](_0x494d02['start'])));}function _0x24ab80(_0xf78fd4,_0x524d36){return!_0xf78fd4['some'](_0x30d458=>_0x524d36['some'](_0x599c30=>_0x30d458['isIntersecting'](_0x599c30)))&&_0xf78fd4['some'](_0x33195d=>_0x524d36['some'](_0x37a2a5=>_0x33195d['end']['isTouching'](_0x37a2a5['start'])));}_0xdda0ec['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7972cb,_0x15f2df,_0x32f6da)=>{if(!_0x32f6da['options']['showSuggestionHighlights'])return;const _0x1d9c39=_0x15f2df['item'];if(!_0x1d9c39||!_0x1d9c39['is']('element','tableCell'))return;const _0x45c68c=_0x32f6da['mapper']['toViewElement'](_0x1d9c39);if(_0x45c68c){const {id:_0x476be6,authorId:_0x3cd3a6}=_0x97d7a8['_splitMarkerName'](_0x15f2df['markerName']);_0x165164(_0x45c68c,_0x32f6da['writer'],(_0x394d1b,_0x59ec1d,_0x36a537)=>{_0x36a537['addClass'](_0x3ad1a7(_0x59ec1d['classes']),_0x394d1b),_0x36a537['setAttribute']('data-suggestion-id',_0x476be6,_0x394d1b),_0x36a537['setAttribute']('data-author-id',_0x3cd3a6,_0x394d1b);},(_0x1bd046,_0xd7dcd3,_0x216f4a)=>{_0x216f4a['removeClass'](_0x3ad1a7(_0xd7dcd3['classes']),_0x1bd046),_0x216f4a['removeAttribute']('data-suggestion-id',_0x1bd046),_0x216f4a['removeAttribute']('data-author-id',_0x1bd046);});}},{'priority':'highest'}),_0x97d7a8['descriptionFactory']['registerDescriptionCallback'](_0x543a67=>{if('insertion'!=_0x543a67['type']&&'deletion'!=_0x543a67['type'])return;const _0x1af680=_0x543a67['getContainedElement']();if(null!=_0x1af680&&_0x1af680['is']('element','table')){if('insertion'==_0x543a67['type']){const _0x18867e=_0x543a67['getItems']()['filter'](_0x4d6405=>_0x4d6405['is']('$textProxy'))['map'](_0x4bfcef=>_0x4bfcef['data']);if(_0x18867e['length'])return{'type':'insertion','content':o(_0x2b0142,'*Insert:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x18867e['join']('\x20')+'\x22'))};}if('deletion'==_0x543a67['type']){const _0x395da4=_0x543a67['getItems']()['filter'](_0x1b975c=>_0x1b975c['is']('$textProxy'))['map'](_0x2a347f=>_0x2a347f['data']);if(_0x395da4['length'])return{'type':'deletion','content':o(_0x2b0142,'*Remove:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x395da4['join']('\x20')+'\x22'))};}}}),_0x97d7a8['descriptionFactory']['registerDescriptionCallback'](_0x17eb3f=>{if('tableRow'==_0x17eb3f['subType']){const _0xc6c3f=_0x17eb3f['getItems']()['filter'](_0x578cac=>_0x578cac['is']('$textProxy'))['map'](_0x445012=>_0x445012['data']),_0x13a2c8=this['_getSuggestionCoords'](_0x17eb3f),_0x282631=_0x13a2c8['maxRow']-_0x13a2c8['minRow']+0x1;if('insertion'==_0x17eb3f['type'])return _0xc6c3f['length']?{'type':'insertion','content':o(_0x2b0142,'*Insert:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x282631,'\x22'+_0xc6c3f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b0142,'*Insert:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_ROW',_0x282631))};if('deletion'==_0x17eb3f['type'])return _0xc6c3f['length']?{'type':'deletion','content':o(_0x2b0142,'*Remove:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x282631,'\x22'+_0xc6c3f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b0142,'*Remove:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_ROW',_0x282631))};}if('tableColumn'==_0x17eb3f['subType']){const _0x4d384d=_0x17eb3f['getItems']()['filter'](_0x3dbce5=>_0x3dbce5['is']('$textProxy'))['map'](_0x5b2144=>_0x5b2144['data']),_0x12a5b6=this['_getSuggestionCoords'](_0x17eb3f),_0x5a8b24=_0x12a5b6['maxColumn']-_0x12a5b6['minColumn']+0x1;if('insertion'==_0x17eb3f['type'])return _0x4d384d['length']?{'type':'insertion','content':o(_0x2b0142,'*Insert:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5a8b24,'\x22'+_0x4d384d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b0142,'*Insert:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_COLUMN',_0x5a8b24))};if('deletion'==_0x17eb3f['type'])return _0x4d384d['length']?{'type':'deletion','content':o(_0x2b0142,'*Remove:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5a8b24,'\x22'+_0x4d384d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b0142,'*Remove:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_COLUMN',_0x5a8b24))};}}),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x44c586),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x44c586),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3418ba),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3418ba),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x29ed0d),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x29ed0d),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x24ab80),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x24ab80);}['_acceptFormatSuggestionCallbackFactory'](){const _0x474f04=this['editor'],_0x2a8d6a=_0x474f04['model']['document']['selection'];return(_0x58e61e,_0xb4a97a)=>{_0x474f04['model']['change'](_0x442019=>{const {commandName:_0x131e3b,commandParams:_0x2cdbb9}=_0xb4a97a;let _0x49b05f=_0x58e61e[0x0]['end']['nodeBefore'];_0x2cdbb9&&_0x2cdbb9[0x0]&&!0x1===_0x2cdbb9[0x0]['forceValue']&&(_0x49b05f=_0x58e61e[0x0]['start']['nodeAfter']);const _0x3db9aa=_0x442019['createRangeIn'](_0x49b05f);if('$graveyard'==_0x3db9aa['root']['rootName'])return;const _0x282a0a=Array['from'](_0x2a8d6a['getRanges']())['map'](_0x1346b1=>_0x5f13a0['fromRange'](_0x1346b1));_0x442019['setSelection'](_0x3db9aa),_0x474f04['commands']['get'](_0x131e3b)['refresh'](),_0x2cdbb9['push']({'forceDefaultExecution':!0x0}),_0x474f04['execute'](_0x131e3b,..._0x2cdbb9);const _0x34f8e0=_0x282a0a['filter'](_0x4464f0=>'$graveyard'!=_0x4464f0['root']['rootName']);_0x34f8e0['length']>0x0&&_0x442019['setSelection'](_0x34f8e0);for(const _0x2fd2a4 of _0x282a0a)_0x2fd2a4['detach']();});};}['_getCoordsForCells'](_0x5c9b83){const _0x582d19=this['editor']['plugins']['get']('TableUtils');let _0x1be363=Number['MAX_SAFE_INTEGER'],_0x19a42e=Number['MIN_SAFE_INTEGER'],_0x41250f=Number['MAX_SAFE_INTEGER'],_0x34999e=Number['MIN_SAFE_INTEGER'];for(const _0x4b1b72 of _0x5c9b83){if('$graveyard'==_0x4b1b72['root']['rootName'])continue;const {row:_0xf9252,column:_0x418ef4}=_0x582d19['getCellLocation'](_0x4b1b72),_0x4e3be8=_0x4b1b72['hasAttribute']('rowspan')?_0x4b1b72['getAttribute']('rowspan')-0x1:0x0,_0x2d1d5f=_0x4b1b72['hasAttribute']('colspan')?_0x4b1b72['getAttribute']('colspan')-0x1:0x0;_0x1be363=_0xf9252<_0x1be363?_0xf9252:_0x1be363,_0x19a42e=_0xf9252+_0x4e3be8>_0x19a42e?_0xf9252+_0x4e3be8:_0x19a42e,_0x41250f=_0x418ef4<_0x41250f?_0x418ef4:_0x41250f,_0x34999e=_0x418ef4+_0x2d1d5f>_0x34999e?_0x418ef4+_0x2d1d5f:_0x34999e;}return{'minRow':_0x1be363,'maxRow':_0x19a42e,'minColumn':_0x41250f,'maxColumn':_0x34999e};}['_setupColumnsRowsFixing'](){const _0x5307e2=this['editor'],_0x5520cd=_0x5307e2['plugins']['get']('TrackChangesEditing'),_0x2aab82=_0x5307e2['plugins']['get']('TableUtils');_0x5307e2['model']['document']['on']('change:data',()=>{const _0x382659=Array['from'](_0x5307e2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7cc206,data:_0x10facf}of _0x382659){const {group:_0x155707,id:_0x6d7e8c,subType:_0x1bd8c9}=_0x5520cd['_splitMarkerName'](_0x7cc206);if('suggestion'!=_0x155707)continue;if(null!=_0x10facf['oldRange'])continue;const _0x287d51=_0x5520cd['getSuggestion'](_0x6d7e8c);this['_tablePostFixingSubtypes']['includes'](_0x1bd8c9)&&this['_tableSuggestions']['add'](_0x287d51);}},{'priority':'low'});const _0x392ad2=(_0xdfaf85,_0x20548a)=>{let _0x305e1f=!0x1;const _0x2affbf=_0x20548a['createRangeOn'](_0xdfaf85),_0x124e39=_0xdfaf85['findAncestor']('table'),_0x28f756=_0x2aab82['getCellLocation'](_0xdfaf85);for(const _0x5aae1c of this['_tableSuggestions']){const _0x4c1b2d=_0x5aae1c['subType'],_0x12a5d4=_0x4c1b2d['startsWith']('tablePaste'),_0x11b74c=_0x4c1b2d['substr'](_0x12a5d4?0xa:0x5),_0xbc584c=_0x11b74c['toLowerCase'](),_0x185ade=_0xbc584c['substr'](0x0,0x3)+'span',_0x1cd316='min'+_0x11b74c,_0x38664c='max'+_0x11b74c;if(!_0x5aae1c['isInContent'])continue;if(_0x124e39!=_0x5aae1c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5aae1c['isIntersectingWithRange'](_0x2affbf))continue;const _0x7973f3=_0xdfaf85['hasAttribute'](_0x185ade)?_0xdfaf85['getAttribute'](_0x185ade)-0x1:0x0,_0x533b38=this['_getSuggestionCoords'](_0x5aae1c),_0x24ff7d=_0x533b38[_0x1cd316],_0x24cfce=_0x533b38[_0x38664c];_0x24ff7d<=_0x28f756[_0xbc584c]&&_0x28f756[_0xbc584c]+_0x7973f3<=_0x24cfce&&(_0x5aae1c['addRange'](_0x2affbf),_0x305e1f=!0x0);}return _0x305e1f;};_0x5307e2['model']['document']['registerPostFixer'](_0x486c33=>{let _0x5eebbc=!0x1;for(const _0x30e3af of _0x5307e2['model']['document']['differ']['getChanges']())if('insert'==_0x30e3af['type']){if('tableRow'==_0x30e3af['name']){for(const _0x33646d of _0x30e3af['position']['nodeAfter']['getChildren']())_0x5eebbc=_0x5eebbc||_0x392ad2(_0x33646d,_0x486c33);}else'tableCell'==_0x30e3af['name']&&(_0x5eebbc=_0x5eebbc||_0x392ad2(_0x30e3af['position']['nodeAfter'],_0x486c33));}return _0x5eebbc;});}['_getSuggestionCoords'](_0x477a67){return this['_getCoordsForCells'](_0x477a67['getRanges']()['map'](_0x5ebedd=>_0x5ebedd['start']['nodeAfter']));}}function Ne(_0x83be41){return Array['from'](new Set(_0x83be41)['values']());}class _t extends _0x292012{static get['requires'](){return[At];}['afterInit'](){const _0x28bf7c=this['editor'],_0x1f6177=_0x28bf7c['model']['document']['selection'],_0x5027ca=_0x28bf7c['locale'];if(!_0x28bf7c['plugins']['has']('TableEditing'))return;const _0xb87d91=_0x28bf7c['plugins']['get']('TrackChangesEditing'),_0x486ee1=_0x28bf7c['plugins']['get']('TableUtils'),_0x5f3016=_0x28bf7c['plugins']['get'](At);_0x5f3016['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xb87d91['enableCommand']('mergeTableCells',()=>{const _0x37128f=_0x486ee1['getSelectionAffectedTableCells'](_0x28bf7c['model']['document']['selection']);_0x28bf7c['model']['change'](()=>{_0xb87d91['markMultiRangeBlockFormat'](_0x37128f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x28bf7c['commands']['get']('mergeTableCells')['on']('execute',(_0x53a1dd,_0x151d76)=>{_0x28bf7c['commands']['get']('trackChanges')['value']&&(_0x151d76['length']>0x0&&_0x151d76[_0x151d76['length']-0x1]&&_0x151d76[_0x151d76['length']-0x1]['forceDefaultExecution']||_0xb87d91['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x53a1dd['stop']());},{'priority':'highest'});for(const _0x1a5605 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5a95b5=_0x28bf7c['commands']['get'](_0x1a5605);_0xb87d91['enableCommand'](_0x1a5605,()=>{const _0x44900f=_0x28bf7c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2fc805=>_0x2fc805['is']('element','tableCell')),_0x4f6d6d=_0x5a95b5['value'];_0x28bf7c['model']['change'](()=>{_0xb87d91['markMultiRangeBlockFormat']([_0x44900f,_0x4f6d6d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1c0d0f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x593f6c=_0x28bf7c['commands']['get'](_0x1c0d0f);_0xb87d91['enableCommand'](_0x1c0d0f,()=>{const _0x1ad84f=_0x486ee1['getSelectionAffectedTableCells'](_0x28bf7c['model']['document']['selection'])[0x0],_0x5dcd5f=_0x1ad84f['findAncestor']('table'),{column:_0x492070,row:_0x34f2f2}=_0x486ee1['getCellLocation'](_0x1ad84f);let _0x4656a5=[];if('horizontally'==_0x593f6c['direction']){const _0x1c4e82=_0x486ee1['createTableWalker'](_0x5dcd5f,{'startRow':_0x34f2f2,'endRow':_0x34f2f2,'includeAllSlots':!0x0});_0x4656a5=Array['from'](_0x1c4e82)['map'](_0x1b81ee=>_0x1b81ee['cell']);}else{const _0x5eb545=_0x486ee1['createTableWalker'](_0x5dcd5f,{'column':_0x492070,'includeAllSlots':!0x0});_0x4656a5=Array['from'](_0x5eb545)['map'](_0x290ffd=>_0x290ffd['cell']);}_0x28bf7c['model']['change'](_0xc08f60=>{_0xb87d91['markBlockFormat'](_0xc08f60['createRangeOn'](_0x1ad84f),{'commandName':_0x1c0d0f,'commandParams':[]},_0x4656a5,_0x1c0d0f);});});}_0xb87d91['descriptionFactory']['registerDescriptionCallback'](_0x5dace3=>{if('formatBlock'!=_0x5dace3['type']&&'formatInline'!=_0x5dace3['type'])return;const {data:_0x2e4c00}=_0x5dace3;return _0x2e4c00&&'mergeTableCells'==_0x2e4c00['commandName']?{'type':'format','content':o(_0x5027ca,'*Merge\x20cells*')}:void 0x0;}),_0xb87d91['descriptionFactory']['registerDescriptionCallback'](_0x563144=>{if('formatBlock'!=_0x563144['type']&&'formatInline'!=_0x563144['type'])return;const {data:_0x3face9}=_0x563144;return _0x3face9?'splitTableCellVertically'==_0x3face9['commandName']?{'type':'format','content':o(_0x5027ca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3face9['commandName']?{'type':'format','content':o(_0x5027ca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x299ae8=_0x5f3016['_acceptFormatSuggestionCallbackFactory']();for(const _0x42c1cb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xb87d91['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42c1cb,'accept',_0x299ae8);for(const _0x5923bd of['splitTableCellVertically','splitTableCellHorizontally'])_0xb87d91['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5923bd,'accept',_0x299ae8);_0xb87d91['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x489061=>{_0x28bf7c['model']['change'](_0x1a906b=>{const _0x2bd923=Array['from'](_0x1f6177['getRanges']())['map'](_0x9e0624=>_0x5f13a0['fromRange'](_0x9e0624));_0x1a906b['setSelection'](_0x489061),_0x28bf7c['commands']['get']('mergeTableCells')['refresh'](),_0x28bf7c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x22772b=_0x2bd923['filter'](_0x5b5a85=>'$graveyard'!=_0x5b5a85['root']['rootName']);_0x22772b['length']>0x0&&_0x1a906b['setSelection'](_0x22772b);for(const _0x2ea187 of _0x2bd923)_0x2ea187['detach']();});});for(const _0x396541 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3df727=_0x28bf7c['commands']['get'](_0x396541);_0x3df727['on']('set:isEnabled',(_0xacc443,_0x1f268d,_0x1b49e0)=>{if(_0x1b49e0){const _0x4de82d=_0x28bf7c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4241cf=>_0x4241cf['is']('element','tableCell'));this['_areMergableCells'](_0x3df727['value'],_0x4de82d)||(_0xacc443['return']=!0x1,_0xacc443['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3f91b4=this['editor']['commands']['get']('mergeTableCells'),_0x2ff7f5=this['editor']['plugins']['get']('TableUtils');if(!_0x3f91b4['isEnabled'])return!0x1;const _0x2aafe9=_0x2ff7f5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1ca980 of _0x2aafe9)for(const _0x781bcd of _0x2aafe9)if(_0x1ca980!=_0x781bcd&&!this['_areMergableCells'](_0x1ca980,_0x781bcd))return!0x1;return!0x0;}['_areMergableCells'](_0x16a472,_0x19fbf8){const _0x59feaf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b4a10=this['editor']['model']['createRangeOn'](_0x16a472),_0x287bfd=this['editor']['model']['createRangeOn'](_0x19fbf8),_0x4a47a4=new Set(),_0x4855df=new Set();for(const _0x4e1b76 of _0x59feaf['getSuggestions']())if(('insertion'==_0x4e1b76['type']||'deletion'==_0x4e1b76['type']||'mergeTableCells'==_0x4e1b76['subType'])&&_0x4e1b76['isInContent']){for(const _0x23903b of _0x4e1b76['getRanges']())_0x23903b['containsRange'](_0x5b4a10,!0x0)&&_0x4a47a4['add'](_0x4e1b76['type']+':'+_0x4e1b76['author']['id']),_0x23903b['containsRange'](_0x287bfd,!0x0)&&_0x4855df['add'](_0x4e1b76['type']+':'+_0x4e1b76['author']['id']);}if(_0x4a47a4['size']!=_0x4855df['size'])return!0x1;for(const _0x11a6fb of _0x4a47a4)if(!_0x4855df['has'](_0x11a6fb))return!0x1;return!0x0;}}class Ct extends _0x292012{static get['requires'](){return[At];}['afterInit'](){const _0x44e5dd=this['editor'];if(!_0x44e5dd['plugins']['has']('TableEditing'))return;const _0x28b4e7=_0x44e5dd['locale'],_0x51ea09=_0x44e5dd['plugins']['get']('TrackChangesEditing');_0x51ea09['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x51ea09['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x51ea09['registerBlockAttribute']('headingRows'),_0x51ea09['registerBlockAttribute']('headingColumns'),_0x51ea09['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x28b4e7,'FORMAT_HEADER_ROW')),_0x51ea09['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x28b4e7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5a2472=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1830f2=this['editor']['plugins']['get']('TableUtils'),_0x32f082=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x33e8ae({showActiveMarker:_0x29dcfb=!0x0,setDataAttribute:_0xf352f6=!0x0}={}){return(_0x64abc0,_0x1de7a9,_0x387244)=>{const {type:_0x146787,id:_0x449597}=_0x5a2472['_splitMarkerName'](_0x1de7a9['markerName']),_0x1fae20=_0x5a2472['getSuggestion'](_0x449597),_0x16b4a5=_0x1fae20['data'];if('formatBlock'!=_0x1fae20['type']||!_0x16b4a5||'setTableColumnHeader'!=_0x16b4a5['commandName'])return;if(_0x1de7a9['item'])return void _0x64abc0['stop']();if(!_0x387244['consumable']['consume'](_0x1de7a9['markerRange'],_0x64abc0['name']))return;const _0x52e753=_0x1de7a9['markerRange']['start']['nodeAfter'],_0x3f3079=_0x1de7a9['markerRange']['end']['nodeBefore'],_0x332485=_0x52e753['parent']['parent'],{column:_0x2f4491}=_0x1830f2['getCellLocation'](_0x52e753),{column:_0x3c5eda}=_0x1830f2['getCellLocation'](_0x3f3079);for(let _0x47ffe2=_0x2f4491;_0x47ffe2<=_0x3c5eda;_0x47ffe2++){const _0x389c69=_0x1830f2['createTableWalker'](_0x332485,{'column':_0x47ffe2,'includeAllSlots':!0x1});for(const _0x23dd07 of _0x389c69){const _0x9ea9cb=_0x23dd07['cell'],_0x3858dc=_0x387244['mapper']['toViewElement'](_0x9ea9cb);_0x387244['writer']['addClass']('ck-suggestion-marker-'+_0x146787,_0x3858dc),_0xf352f6&&_0x387244['writer']['setAttribute']('data-suggestion',_0x449597,_0x3858dc),_0x387244['mapper']['bindElementToMarker'](_0x3858dc,_0x1de7a9['markerName']),_0x29dcfb&&(_0x5a2472['activeMarkers']['includes'](_0x1de7a9['markerName'])?_0x387244['writer']['addClass']('ck-suggestion-marker--active',_0x3858dc):_0x387244['writer']['removeClass']('ck-suggestion-marker--active',_0x3858dc));}}};}_0x5a2472['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x32f082),_0x5a2472['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x32f082),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x33e8ae(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x489c6c,_0x13e4c7,_0x5f2ee4)=>{_0x5f2ee4['options']['showSuggestionHighlights']&&_0x33e8ae({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x489c6c,_0x13e4c7,_0x5f2ee4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x51ce7e,_0x291ec5,_0x5dd33d)=>{const {type:_0x316763,id:_0x42c8fb}=_0x5a2472['_splitMarkerName'](_0x291ec5['markerName']),_0x13699b=_0x5a2472['getSuggestion'](_0x42c8fb),_0x492922=_0x13699b['data'];if('formatBlock'!=_0x13699b['type']||!_0x492922||'setTableColumnHeader'!=_0x492922['commandName'])return;const _0x3fb124=_0x5dd33d['mapper']['markerNameToElements'](_0x291ec5['markerName']);if(_0x3fb124){for(const _0x555378 of _0x3fb124)_0x5dd33d['writer']['removeClass']('ck-suggestion-marker-'+_0x316763,_0x555378),_0x5dd33d['writer']['removeClass']('ck-suggestion-marker--active',_0x555378),_0x5dd33d['writer']['removeAttribute']('data-suggestion',_0x555378),_0x5dd33d['mapper']['unbindElementFromMarkerName'](_0x555378,_0x291ec5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b3a5b=this['editor'],_0x20009d=_0x1b3a5b['locale'];function _0x586dae(_0x4b4ff8){return{'type':'format','content':o(_0x20009d,'*Format:*\x20%0',_0x4b4ff8)};}_0x1b3a5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bac36=>{if('formatBlock'!=_0x2bac36['type'])return;const {data:_0x60f920}=_0x2bac36;if(_0x60f920){if('setTableRowHeader'==_0x60f920['commandName']){const _0x24c426=_0x60f920['commandParams'][0x0]['forceValue'];return _0x586dae(o(_0x20009d,_0x24c426?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x60f920['commandName']){const _0x116fe4=_0x60f920['commandParams'][0x0]['forceValue'];return _0x586dae(o(_0x20009d,_0x116fe4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x292012{['afterInit'](){const _0x4174d4=this['editor'],_0x5a5500=_0x4174d4['locale'],_0xb0ba94=_0x4174d4['plugins']['get']('TrackChangesEditing');function _0x52ac26(_0x5f07fb){return{'type':'format','content':''+o(_0x5a5500,'*Set\x20table\x20type:*\x20%0',_0x5f07fb)};}_0x4174d4['plugins']['has']('TableLayout')&&(_0xb0ba94['enableCommand']('insertTableLayout'),_0xb0ba94['enableDefaultAttributesIntegration']('tableType'),_0xb0ba94['registerBlockAttribute']('tableType'),_0xb0ba94['descriptionFactory']['registerElementLabel'](_0x6f2467=>_0x6f2467['is']('element','table')&&'layout'===_0x6f2467['getAttribute']('tableType'),_0x1f3b2b=>o(_0x5a5500,'ELEMENT_LAYOUT_TABLE',_0x1f3b2b)),_0xb0ba94['descriptionFactory']['registerDescriptionCallback'](_0x211dbc=>{const {data:_0x17a51a}=_0x211dbc;if(_0x17a51a&&'tableType'==_0x17a51a['key'])switch(_0x17a51a['newValue']){case'layout':return _0x52ac26(o(_0x5a5500,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x52ac26(o(_0x5a5500,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x2e99cb=>[_0x2e99cb,null]));class Nt extends _0x292012{static get['requires'](){return[At];}['afterInit'](){const _0x5c6df5=this['editor'];if(!_0x5c6df5['plugins']['has']('TableClipboard'))return;const _0x55b07c=_0x5c6df5['plugins']['get']('TrackChangesEditing'),_0xf27db1=_0x5c6df5['plugins']['get']('TableUtils'),_0x3a6406=_0x5c6df5['plugins']['get'](At),_0x2e96b4=_0x5c6df5['plugins']['get']('TableClipboard'),_0x47fe83=_0x5c6df5['plugins']['get']('TableSelection'),_0x41731e=_0x5c6df5['plugins']['get'](_0x395624);_0x3a6406['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5c6df5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5c6df5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x240dc2=null,_0x3ed848=!0x1;_0x41731e['on']('contentInsertion',(_0x5aa8a9,_0x3cbeff)=>{_0x3ed848='paste'===_0x3cbeff['method'];}),_0x5c6df5['model']['on']('insertContent',(_0x2bf981,_0x9c6cbe)=>{if(!_0x3ed848&&null===_0x47fe83['getSelectedTableCells']())return;const [_0x77f97f,_0x2406cf]=_0x9c6cbe,_0x484911=_0x9c6cbe[_0x9c6cbe['length']-0x1];_0x484911&&_0x484911['forceDefaultExecution']||_0x55b07c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x10ccfc,_0x34aba1,_0x2dc5f8,_0x1b276f,_0x394f02){if(_0x34aba1&&!_0x34aba1['is']('documentSelection'))return!0x1;const _0x103ee6=_0x394f02['getTableIfOnlyTableInContent'](_0x10ccfc,_0x2dc5f8);if(!_0x103ee6||!Ue(_0x103ee6,void 0x0,_0x1b276f))return!0x1;const _0x383969=_0x1b276f['getSelectionAffectedTableCells'](_0x2dc5f8['document']['selection']);if(!_0x383969['length'])return!0x1;const _0x1356db=_0x383969[0x0]['findAncestor']('table'),_0x1737cc=_0x1b276f['getRowIndexes'](_0x383969),_0x25c68b=_0x1b276f['getColumnIndexes'](_0x383969),_0x42fcd1={'startRow':_0x1737cc['first'],'endRow':_0x1737cc['last'],'startColumn':_0x25c68b['first'],'endColumn':_0x25c68b['last']};return 0x1==_0x383969['length']&&(_0x42fcd1['endRow']+=_0x1b276f['getRows'](_0x103ee6)-0x1,_0x42fcd1['endColumn']+=_0x1b276f['getColumns'](_0x103ee6)-0x1),Ue(_0x1356db,_0x42fcd1,_0x1b276f);}(_0x77f97f,_0x2406cf,_0x5c6df5['model'],_0xf27db1,_0x2e96b4)&&(_0x2bf981['stop'](),_0x240dc2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5c6df5['model']['change'](()=>{_0x5c6df5['model']['insertContent'](_0x9c6cbe[0x0],_0x9c6cbe[0x1],_0x9c6cbe[0x2],{'forceDefaultExecution':!0x0});const _0x33699b=_0x48a539(),{rowInsertionRanges:_0x431dd8,columnInsertionRanges:_0x478adb,insertionRanges:_0x26c997,deletionRanges:_0x20e7ab,cells:_0x46f633}=_0x240dc2;_0x431dd8['length']&&_0x55b07c['markMultiRangeInsertion'](_0x431dd8,'tablePasteRow',{'tablePasteChainId':_0x33699b}),_0x478adb['length']&&_0x55b07c['markMultiRangeInsertion'](_0x478adb,'tablePasteColumn',{'tablePasteChainId':_0x33699b}),_0x26c997['length']&&(_0x55b07c['markMultiRangeInsertion'](_0x26c997,'tablePaste',{'tablePasteChainId':_0x33699b,'skipNestingCheck':!0x0}),_0x26c997['forEach'](_0x227d8b=>_0x227d8b['detach']?.())),_0x20e7ab['length']&&(_0x55b07c['markMultiRangeDeletion'](_0x20e7ab,'tablePaste',{'tablePasteChainId':_0x33699b,'skipNestingCheck':!0x0}),_0x20e7ab['forEach'](_0x1efdc9=>_0x1efdc9['detach']?.()));const _0x634cb2=_0x55b07c['markMultiRangeBlockFormat'](_0x46f633['map'](({element:_0x20443f})=>_0x20443f),{'formatGroupId':_0x48a539()},[],'tablePasteCell',{'tablePasteChainId':_0x33699b});if(_0x634cb2){const _0x2d2dee=_0x634cb2['getMarkers'](),_0x45ae1f=[];for(const {element:_0x2ad3ac,attributes:_0x2e0fa8}of _0x46f633){if(!_0x2e0fa8)continue;const _0x3aabf6=_0x5c6df5['model']['createRangeOn'](_0x2ad3ac),_0x2b71e2=_0x2d2dee['find'](_0x469e59=>_0x469e59['getRange']()['isEqual'](_0x3aabf6));_0x2b71e2&&_0x45ae1f['push']([_0x2b71e2['name'],_0x2e0fa8]);}_0x45ae1f['length']&&_0x634cb2['setAttribute']('markerAttributes',Object['fromEntries'](_0x45ae1f));}_0x240dc2=null;}));},{'priority':_0x2dd4ea['high']+0xa}),_0x41731e['on']('contentInsertion',()=>{_0x3ed848=!0x1;},{'priority':'lowest'}),_0x5c6df5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x291fbd,_0x558e63)=>{const [_0x50e5a9,_0x3f4703,,_0x58a7a7]=_0x558e63;if(!_0x240dc2)return;_0x291fbd['stop']();const _0x32f47f=_0x50e5a9['cell'],_0x436c08=_0x3f4703,_0x1c7343=Oe(_0x32f47f),_0x15fbe7=Oe(_0x436c08);_0x291fbd['return']=_0x32f47f;let _0xc4cf4c=null,_0x180232=null;if(_0x15fbe7||_0x1c7343){if(_0x1c7343&&!_0x15fbe7){_0x58a7a7['remove'](_0x32f47f['getChild'](0x0));for(const _0x1bb520 of Array['from'](_0x436c08['getChildren']()))_0x58a7a7['insert'](_0x1bb520,_0x32f47f,'end');const _0x55231f=_0x240dc2['rowInsertionIndexes']['includes'](_0x50e5a9['row']),_0x50d23f=_0x240dc2['columnInsertionIndexes']['includes'](_0x50e5a9['column']);_0x55231f||_0x50d23f||(_0xc4cf4c=_0x5f13a0['fromRange'](_0x58a7a7['createRangeIn'](_0x32f47f)));}else _0x15fbe7&&!_0x1c7343&&(_0x180232=_0x58a7a7['createRangeIn'](_0x32f47f));}else{const _0x160d88=_0x58a7a7['createElement']('tableCellSuggestion'),_0x3a54f5=_0x58a7a7['createElement']('tableCellSuggestion');_0x58a7a7['wrap'](_0x58a7a7['createRangeIn'](_0x32f47f),_0x3a54f5),_0x58a7a7['insert'](_0x160d88,_0x32f47f,0x0);for(const _0x582f5a of Array['from'](_0x436c08['getChildren']()))_0x58a7a7['insert'](_0x582f5a,_0x160d88,'end');_0xc4cf4c=_0x5f13a0['fromRange'](_0x58a7a7['createRangeOn'](_0x160d88)),_0x180232=_0x5f13a0['fromRange'](_0x58a7a7['createRangeOn'](_0x3a54f5));}const _0x40f4e8=Array['from'](_0x436c08['getAttributes']())['filter'](([_0x1b65dc])=>Be['includes'](_0x1b65dc));_0x240dc2['cells']['push']({'element':_0x32f47f,'attributes':_0x40f4e8['length']?Object['fromEntries'](_0x40f4e8):null}),_0xc4cf4c&&_0x240dc2['insertionRanges']['push'](_0xc4cf4c),_0x180232&&_0x240dc2['deletionRanges']['push'](_0x180232);},{'priority':'high'}),_0xf27db1['on']('insertColumns',(_0x40729c,_0x5e9ffb)=>{const [_0x1b9067,_0x37d59e={}]=_0x5e9ffb;if(!_0x240dc2)return;const _0x2cbb21=_0x37d59e['at']||0x0,_0x28a4f2=_0x37d59e['columns']||0x1;_0x240dc2['columnInsertionIndexes']=new Array(_0x28a4f2)['fill'](_0x2cbb21)['map']((_0x2b4b50,_0x24c7ba)=>_0x2b4b50+_0x24c7ba);for(const {cell:_0x396ecb}of _0xf27db1['createTableWalker'](_0x1b9067,{'startColumn':_0x2cbb21,'endColumn':_0x2cbb21+_0x28a4f2-0x1}))_0x240dc2['columnInsertionRanges']['push'](_0x5c6df5['model']['createRangeOn'](_0x396ecb));},{'priority':'low'}),_0xf27db1['on']('insertRows',(_0xabbdb4,_0x3555f1)=>{const [_0x13cfd5,_0x49c141={}]=_0x3555f1;if(!_0x240dc2)return;const _0x3e77e4=_0x49c141['at']||0x0,_0x243926=_0x49c141['rows']||0x1;_0x240dc2['rowInsertionIndexes']=new Array(_0x243926)['fill'](_0x3e77e4)['map']((_0x175c60,_0x296db)=>_0x175c60+_0x296db);for(const {cell:_0x4f563f}of _0xf27db1['createTableWalker'](_0x13cfd5,{'startRow':_0x3e77e4,'endRow':_0x3e77e4+_0x243926-0x1}))_0x240dc2['rowInsertionRanges']['push'](_0x5c6df5['model']['createRangeOn'](_0x4f563f));},{'priority':'low'}),_0x55b07c['descriptionFactory']['registerDescriptionCallback'](_0xaa2d16=>{if(_0xaa2d16['subType']&&_0xaa2d16['subType']['startsWith']('tablePaste'))return _0xaa2d16['previous']?{}:{'type':'insertion','content':o(_0x5c6df5['locale'],'*Replace\x20table\x20cells*')};});const _0x3e7b5c=()=>!0x1;for(const _0x546d03 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x55b07c['_suggestionFactory']['registerCustomCallback']('insertion',_0x546d03,'join',_0x3e7b5c),_0x55b07c['_suggestionFactory']['registerCustomCallback']('deletion',_0x546d03,'join',_0x3e7b5c),_0x55b07c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x546d03,'join',_0x3e7b5c);_0x55b07c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3e7b5c),_0x55b07c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a4cd0,_0x48ba12,_0x29498b)=>{const _0x2f5c56=_0x4a4cd0['map'](_0x8786ee=>_0x8786ee['getContainedElement']())['filter'](_0x191c30=>_0x191c30),_0x5e810b=new Map(_0x2f5c56['map'](_0x291fcf=>[_0x291fcf,null]));if(_0x240dc2){for(const {element:_0x554493,attributes:_0xaf1d45}of _0x240dc2['cells'])_0xaf1d45&&_0x5e810b['set'](_0x554493,_0xaf1d45);}else{if(_0x29498b&&_0x29498b['markerAttributes'])for(const [_0xf119e0,_0x3f3fe4]of Object['entries'](_0x29498b['markerAttributes'])){const _0x53306e=_0x5c6df5['model']['markers']['get'](_0xf119e0),_0x2f0579=_0x53306e?_0x53306e['getRange']()['getContainedElement']():null;_0x2f0579&&_0x5e810b['set'](_0x2f0579,_0x3f3fe4);}}_0x5c6df5['model']['change'](_0x159aaf=>{for(const [_0x12c5ee,_0x3f82af]of _0x5e810b)_0x159aaf['setAttributes']({...xe,..._0x3f82af},_0x12c5ee);});});const _0x4878c2=(_0x704fa2,_0x4aee2c)=>{_0x55b07c['_suggestionFactory']['registerCustomCallback'](_0x704fa2,'tablePaste',_0x4aee2c,(_0x3eccd5,_0x145eb3,_0x12e40f)=>{_0x5c6df5['model']['change'](_0x594cef=>{const _0x3c90ac=[];for(const _0x323dca of _0x3eccd5){const _0x4e1444=_0x323dca['start']['nodeAfter'];_0x4e1444['is']('element','tableCellSuggestion')&&_0x3c90ac['push'](_0x4e1444);}_0x55b07c['_suggestionFactory']['getSuggestionCallback'](_0x704fa2,null,_0x4aee2c)(_0x3eccd5,_0x145eb3,_0x12e40f);for(const _0x36d674 of _0x3c90ac)'$graveyard'!=_0x36d674['root']['rootName']&&_0x594cef['unwrap'](_0x36d674);});});};_0x4878c2('insertion','accept'),_0x4878c2('insertion','discard'),_0x4878c2('deletion','accept'),_0x4878c2('deletion','discard'),_0x55b07c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4c6e2e=>{const _0x5cbfa6=_0x4c6e2e['map'](_0x580ad4=>_0x580ad4['getContainedElement']()),_0x4c2c9f=_0x5cbfa6[0x0]['findAncestor']('table'),{minRow:_0x55daf9,maxRow:_0x53c6a0}=_0x3a6406['_getCoordsForCells'](_0x5cbfa6);_0xf27db1['removeRows'](_0x4c2c9f,{'at':_0x55daf9,'rows':_0x53c6a0-_0x55daf9+0x1});}),_0x55b07c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1beacd=>{const _0x6024b4=_0x1beacd['map'](_0x2d0372=>_0x2d0372['getContainedElement']()),_0x340459=_0x6024b4[0x0]['findAncestor']('table'),{minColumn:_0x5923d6,maxColumn:_0x230273}=_0x3a6406['_getCoordsForCells'](_0x6024b4);_0xf27db1['removeColumns'](_0x340459,{'at':_0x5923d6,'columns':_0x230273-_0x5923d6+0x1});});const _0xaa3a7a=(_0x35433f,_0x7cdef)=>{if(!_0x7cdef['subType']||!_0x7cdef['subType']['startsWith']('tablePaste'))return;const _0x28984f=_0x7cdef['attributes']['tablePasteChainId'],_0x58fe31=_0x55b07c['getSuggestions']()['filter'](_0xa0dbc9=>_0xa0dbc9['isInContent']&&_0xa0dbc9['attributes']&&_0xa0dbc9['attributes']['tablePasteChainId']==_0x28984f);_0x58fe31['length']&&_0x7cdef['getAllAdjacentSuggestions']()['length']!=_0x58fe31['length']&&_0x58fe31['reduce']((_0x38fcfb,_0x3ef432)=>(_0x38fcfb['next']=_0x3ef432,_0x3ef432['previous']=_0x38fcfb,_0x3ef432));};function _0x19412c(_0x1f694f,_0x2dcccd=!0x0){const {id:_0x2c1413,authorId:_0x23e8a3}=_0x55b07c['_splitMarkerName'](_0x1f694f['markerName']),_0x22dbb8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x385496=_0x55b07c['activeMarkers']['includes'](_0x1f694f['markerName']);return _0x385496&&_0x22dbb8['push']('ck-suggestion-marker--active'),{'classes':_0x22dbb8,'attributes':{'data-suggestion':_0x2c1413,'data-author-id':_0x23e8a3},'priority':_0x385496&&_0x2dcccd?0xbc2:0xbb8};}_0x55b07c['on']('suggestionLoaded',_0xaa3a7a,{'priority':'high'}),_0x55b07c['on']('suggestionUnloaded',_0xaa3a7a,{'priority':'high'}),_0x5c6df5['model']['document']['registerPostFixer'](()=>{let _0x360676=!0x1;const _0x3c4a54=Array['from'](_0x5c6df5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32e504,data:_0x2dde47}of _0x3c4a54){const {group:_0x2a3c3f,type:_0x4f9e81,id:_0x593819}=_0x55b07c['_splitMarkerName'](_0x32e504);if('suggestion'!=_0x2a3c3f||'deletion'!=_0x4f9e81||_0x2dde47['oldRange'])continue;if(!_0x55b07c['hasSuggestion'](_0x593819))continue;const _0x1d2ade=_0x55b07c['getSuggestion'](_0x593819)['getRanges'](),_0x55fc4a=_0x5c6df5['plugins']['get']('Users')['me'];for(const _0x50c53d of _0x55b07c['getSuggestions']()){if(!_0x50c53d['isInContent']||_0x50c53d['author']!=_0x55fc4a)continue;if('formatBlock'!=_0x50c53d['type']||'tablePasteCell'!=_0x50c53d['subType'])continue;if(_0x50c53d['getRanges']()['every'](_0x4e3324=>_0x1d2ade['some'](_0x1aad1f=>_0x1aad1f['containsRange'](_0x4e3324,!0x0)))){for(const _0x36cd4f of _0x50c53d['getAllAdjacentSuggestions']())_0x36cd4f['isInContent']&&(_0x36cd4f['discard'](),_0x360676=!0x0);}}}return _0x360676;}),_0x5c6df5['model']['document']['registerPostFixer'](_0x4c1ff0=>{const _0xb072d4=_0x5c6df5['commands']['get']('redo');if(!_0xb072d4||!_0xb072d4['_createdBatches']['has'](_0x4c1ff0['batch']))return!0x1;let _0x2f1996=!0x1;const _0x5dbc2b=_0x5c6df5['plugins']['get']('Users')['me'],_0x1eb6c6=_0x5c6df5['model']['document']['differ']['getChanges'](),_0x33b9f1=Array['from'](_0x5c6df5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1d3141,data:_0x1a1060})=>{const {group:_0x5b5ab8,subType:_0x325ee6,authorId:_0x24341a}=_0x55b07c['_splitMarkerName'](_0x1d3141);return'suggestion'==_0x5b5ab8&&'tablePaste'==_0x325ee6&&_0x24341a==_0x5dbc2b['id']&&!_0x1a1060['oldRange'];});for(const _0x33fb27 of _0x1eb6c6){if('insert'!=_0x33fb27['type']||'tableCellSuggestion'!=_0x33fb27['name']||0x1!=_0x33fb27['length'])continue;const _0x28c96b=_0x4c1ff0['createRange'](_0x33fb27['position'],_0x33fb27['position']['getShiftedBy'](0x1));if(!_0x33b9f1['find'](({data:_0x2491c5})=>_0x2491c5['newRange']['isEqual'](_0x28c96b))){for(const {name:_0x539ce9,data:_0x39576c}of _0x33b9f1)if(_0x28c96b['containsRange'](_0x39576c['newRange'])){_0x4c1ff0['updateMarker'](_0x539ce9,{'range':_0x28c96b}),_0x2f1996=!0x0;break;}}}return _0x2f1996;}),_0x5c6df5['model']['document']['registerPostFixer'](_0x23f6df=>{let _0x22c10a=!0x1;const _0x7372c=_0x5c6df5['plugins']['get']('Users')['me'],_0x12eab8=_0x55b07c['getSuggestions']()['filter'](_0x4b679d=>_0x4b679d['isInContent']&&_0x4b679d['author']==_0x7372c),_0x565e32=new Set(),_0x49c001=new Set();for(const _0x440e90 of _0x12eab8)if('tablePaste'==_0x440e90['subType'])for(const _0x2b0088 of _0x440e90['getMarkers']()){const _0x171829=_0x2b0088['getRange']()['getContainedElement']();if(_0x171829){if(_0x171829['is']('element','tableCellSuggestion')&&Oe(_0x171829)){_0x440e90['removeMarker'](_0x2b0088['name']),_0x565e32['add'](_0x171829),_0x22c10a=!0x0;const _0x10798=_0x171829['nextSibling'],_0x175586=_0x171829['previousSibling'],_0x121c60=_0x10798&&_0x10798['is']('element','tableCellSuggestion'),_0x3b7664=_0x175586&&_0x175586['is']('element','tableCellSuggestion');_0x121c60&&!_0x565e32['has'](_0x10798)&&_0x49c001['add'](_0x10798),_0x3b7664&&!_0x565e32['has'](_0x175586)&&_0x49c001['add'](_0x175586);}else _0x171829['is']('element','paragraph')&&_0x171829['isEmpty']&&(_0x440e90['removeMarker'](_0x2b0088['name']),_0x22c10a=!0x0);}}else{if('tablePasteCell'==_0x440e90['subType']){if(!_0x440e90['attributes']||!_0x440e90['attributes']['tablePasteChainId'])continue;const _0x2ba9ed=_0x440e90['attributes']['markerAttributes'];if(_0x2ba9ed&&Object['keys'](_0x2ba9ed)['length'])continue;const _0x137f29=_0x440e90['attributes']['tablePasteChainId'];let _0x2c9572=!0x0,_0x2a591e=!0x0;for(const _0x20b9b5 of _0x12eab8)if(_0x20b9b5['subType']&&_0x20b9b5['subType']['startsWith']('tablePaste')){if(!_0x20b9b5['attributes']['tablePasteChainId']){_0x2a591e=!0x1;break;}if(_0x20b9b5['id']!=_0x440e90['id']&&_0x20b9b5['attributes']['tablePasteChainId']==_0x137f29){_0x2c9572=!0x1;break;}}_0x2a591e&&_0x2c9572&&(_0x440e90['removeMarkers'](),_0x22c10a=!0x0);}}for(const _0x50825d of _0x565e32)_0x23f6df['remove'](_0x50825d);for(const _0x3d442a of _0x49c001)_0x23f6df['unwrap'](_0x3d442a);return _0x22c10a;}),_0x5c6df5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x79c52e=>_0x19412c(_0x79c52e),'converterPriority':'high'}),_0x5c6df5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5a49a1,_0x456aaa)=>_0x456aaa['options']['showSuggestionHighlights']?_0x19412c(_0x5a49a1,!0x1):null,'converterPriority':'high'});const _0xe7d8d5=_0x5c6df5['editing']['view'];this['listenTo'](_0xe7d8d5['document'],'clipboardOutput',(_0x2cfc1c,_0x41b56)=>{const _0xd7df7=[];for(const _0x4b7635 of _0xe7d8d5['createRangeIn'](_0x41b56['content'])['getItems']())_0x4b7635['is']('element','suggestion-td')&&_0xd7df7['push'](_0x4b7635);_0xe7d8d5['change'](_0x1f7e92=>{for(const _0x4b0bc0 of _0xd7df7)_0x1f7e92['move'](_0x1f7e92['createRangeIn'](_0x4b0bc0),_0x1f7e92['createPositionBefore'](_0x4b0bc0)),_0x1f7e92['remove'](_0x4b0bc0);});});}}function Oe(_0x13cfa1){if(_0x13cfa1['isEmpty'])return!0x0;const _0x3d0fa4=_0x13cfa1['getChild'](0x0);return _0x3d0fa4['is']('element','paragraph')&&_0x3d0fa4['isEmpty'];}function Ue(_0x1143b6,_0x3accef={},_0x227aea){for(const {isAnchor:_0x387faf,cellHeight:_0xe26b2c,cellWidth:_0x329391}of _0x227aea['createTableWalker'](_0x1143b6,{'includeAllSlots':!0x0,..._0x3accef}))if(!_0x387faf||0x1!=_0xe26b2c||0x1!=_0x329391)return!0x1;return!0x0;}class Dt extends _0x292012{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x421353=this['editor']['plugins']['get']('TrackChangesEditing');_0x421353['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x421353['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x421353['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x421353['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x421353['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x421353['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b2e25,_0x59be72){const _0x5bc113=this['editor']['plugins']['get']('TrackChangesEditing'),_0x436ed3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5b6157=_0x59be72['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2f0417=_0x436ed3['getColumnGroupElement'](_0x5b6157);let _0x276469=_0x2f0417?_0x436ed3['getTableColumnsWidths'](_0x2f0417):null,_0x30ee04=_0x5b6157['getAttribute']('tableWidth')||null;const _0x43d197=_0x59be72['tableWidth']||_0x30ee04,_0x4a4a80=_0x59be72['columnWidths']||_0x276469,_0x5b4fb8=this['editor']['plugins']['get']('Users')['me'];for(const _0x3270c1 of _0x5bc113['getSuggestions']()){const _0x2bd47a=_0x3270c1['getContainedElement']();if('resizeTable'===_0x3270c1['subType']&&_0x2bd47a===_0x5b6157){_0x3270c1['author']!==_0x5b4fb8&&_0x3270c1['discard']();const _0x3958d4=_0x3270c1['data']['commandParams'];_0x30ee04=_0x3958d4[0x0]['tableWidth'],_0x276469=_0x3958d4[0x0]['columnWidths'];break;}}_0x4b2e25({'table':_0x5b6157,'tableWidth':_0x43d197,'columnWidths':_0x4a4a80}),_0x5bc113['markBlockFormat'](_0x5b6157,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x30ee04,'columnWidths':_0x276469}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x13ce2e){if('formatBlock'!=_0x13ce2e['type']&&'formatInline'!=_0x13ce2e['type'])return;const {data:_0xb00af}=_0x13ce2e;if(_0xb00af&&'resizeTable'===_0xb00af['formatGroupId']){const _0x190898='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x190898)};}}}class Mt extends _0x292012{['afterInit'](){const _0x574571=this['editor'];_0x574571['plugins']['has']('Template')&&_0x574571['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x292012{['afterInit'](){const _0x221700=this['editor'];if(!_0x221700['commands']['get']('insertTableOfContents'))return;_0x221700['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x10babd=_0x221700['plugins']['get']('TrackChangesEditing'),_0x4f1d9d=_0x221700['locale'];_0x10babd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x54dfc6=>o(_0x4f1d9d,'ELEMENT_TABLE_OF_CONTENTS',_0x54dfc6));}}class Bt extends _0x292012{['afterInit'](){const _0x30d4b5=this['editor'];if(!_0x30d4b5['plugins']['has']('Title'))return;const _0x119f81=_0x30d4b5['plugins']['get']('TrackChangesEditing');_0x119f81['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x30d4b5['locale'],'ELEMENT_TITLE')),_0x30d4b5['model']['document']['registerPostFixer'](_0x4f4e98=>{let _0x388dcd=!0x1;const _0x61b3af=Array['from'](_0x30d4b5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x535ed7,data:_0x194811}of _0x61b3af){const {group:_0xf29f83}=_0x119f81['_splitMarkerName'](_0x535ed7);if('suggestion'!==_0xf29f83||!_0x194811['newRange'])continue;const _0x53e234=_0x194811['newRange'],_0x1c76a6=_0x53e234['end']['nodeBefore'];if(!_0x1c76a6||!_0x1c76a6['is']('element','title-content'))continue;if(!_0x53e234['start']['isTouching'](_0x53e234['end']))continue;const _0x54a52d=_0x30d4b5['model']['schema']['getNearestSelectionRange'](_0x53e234['end'],'forward');if(_0x54a52d&&_0x54a52d['isCollapsed']){const _0xfbdc37=_0x4f4e98['createRange'](_0x53e234['start'],_0x54a52d['start']);_0xfbdc37['isEqual'](_0x53e234)||(_0x4f4e98['updateMarker'](_0x535ed7,{'range':_0xfbdc37}),_0x388dcd=!0x0);}_0x388dcd||(_0x4f4e98['removeMarker'](_0x535ed7),_0x388dcd=!0x0);}return _0x388dcd;});}}class Tt extends _0x292012{['afterInit'](){const _0x101665=this['editor'],_0x3d81e8=_0x101665['plugins']['get']('TrackChangesEditing');_0x101665['plugins']['has']('Uploadcare')&&(_0x3d81e8['enableCommand']('uploadcare'),_0x101665['plugins']['has']('UploadcareImageEdit')&&(_0x3d81e8['enableCommand']('uploadcareImageEdit'),_0x3d81e8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3d81e8['registerBlockAttribute']('uploadcareImageId'),_0x3d81e8['descriptionFactory']['registerDescriptionCallback'](_0x37d7af=>{if('attribute'!=_0x37d7af['type'])return;const {data:_0x2f4405}=_0x37d7af;return _0x2f4405&&'uploadcareImageId'==_0x2f4405['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x292012{['afterInit'](){const _0x252067=this['editor'],_0x530f3d=_0x252067['plugins']['get']('TrackChangesEditing');_0x252067['plugins']['has']('UndoEditing')&&(_0x530f3d['enableCommand']('undo'),_0x530f3d['enableCommand']('redo'));}}class Ot extends _0x292012{static get['requires'](){return[At];}['afterInit'](){const _0x3f8de6=this['editor'];if(!_0x3f8de6['plugins']['has']('TableCaptionEditing'))return;_0x3f8de6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x292012{['tableProperties'];['tableCellProperties'];constructor(_0x27b545){super(_0x27b545),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 _0xec05bb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x23486a of this['tableProperties'])_0xec05bb['enableCommand'](_0x23486a,(_0xfda7e5,_0x4cb2a1)=>{const _0x16110a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x23486a,[_0x16110a],this['tableProperties'],'tableProperties',_0xfda7e5,_0x4cb2a1);});_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xec05bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x30589d,_0x3311bf)=>this['handleDiscardAction'](this['tableProperties'],_0x30589d,_0x3311bf)),_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2177ef of this['tableCellProperties'])_0xec05bb['enableCommand'](_0x2177ef,(_0x5a56ec,_0x3e5669)=>{const _0x1eae05=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2177ef,_0x1eae05,this['tableCellProperties'],'tableCellProperties',_0x5a56ec,_0x3e5669);});_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xec05bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x49aa7a,_0x32520c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x49aa7a,_0x32520c)),_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xec05bb['descriptionFactory']['registerDescriptionCallback'](_0x24bbad=>this['handleSuggestionDescription'](_0x24bbad));}['_handlePropertyChange'](_0x1c3d54,_0x6fab2d,_0x516615,_0x4127b4,_0x40db52,_0x2ebdf3){const _0x56811d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2ebdf3['batch'],()=>{for(const _0x327ed5 of _0x6fab2d){if(this['_getSuggestion'](_0x327ed5,_0x4127b4))_0x40db52(_0x2ebdf3);else{const _0x36c175={};for(const _0x58c037 of _0x516615){const _0x24ae20=_0x327ed5['getAttribute'](_0x58c037);void 0x0!==_0x24ae20&&(_0x36c175[_0x58c037]=_0x24ae20);}_0x40db52(_0x2ebdf3),_0x56811d['markBlockFormat'](_0x327ed5,{'commandParams':[_0x36c175]},[],_0x4127b4);}}});}['handleDiscardAction'](_0x44bf97,_0x4a69b7,_0x23e2eb){const _0x7691f4=_0x4a69b7[0x0]['start']['nodeAfter'],_0x4e74f0=_0x23e2eb['commandParams'][0x0];this['editor']['model']['change'](_0x1d6953=>{for(const _0x65db68 of _0x44bf97)void 0x0!==_0x4e74f0[_0x65db68]?_0x1d6953['setAttribute'](_0x65db68,_0x4e74f0[_0x65db68],_0x7691f4):_0x1d6953['removeAttribute'](_0x65db68,_0x7691f4);});}['handleSuggestionDescription'](_0xdb4771){if(_0xdb4771['data'])switch(_0xdb4771['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x314b2e,_0x3747b0){const _0x175551=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x96bd3a of _0x175551['getSuggestions']({'skipNotAttached':!0x0})){const _0x2e5716=_0x96bd3a['getContainedElement']();if(_0x96bd3a['subType']===_0x3747b0&&_0x2e5716===_0x314b2e)return _0x96bd3a;}return null;}}class Rt extends _0x292012{['afterInit'](){const _0x488057=this['editor'];if(!_0x488057['plugins']['has']('LineHeight'))return;const _0x423edf=_0x488057['plugins']['get']('TrackChangesEditing'),_0x5b1ee8=_0x488057['locale'];_0x423edf['enableDefaultAttributesIntegration']('lineHeight'),_0x423edf['registerBlockAttribute']('lineHeight'),_0x423edf['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x5b1ee8,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x292012{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x28ae71,_0x5e1fd5,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20dda5){super(_0x20dda5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x46c69f,_0x8e1001,_0x24c074,_0x2b5df7)=>{this['_model']['change'](()=>{for(const _0x4ffac of[..._0x2b5df7,..._0x24c074])this['_model']['markers']['has'](_0x4ffac)&&_0x20dda5['editing']['reconvertMarker'](_0x4ffac);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x20dda5['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x20dda5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x20dda5['config']['get']('trackChanges.trackFormatChanges'),_0x20dda5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x20dda5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x20dda5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x56a8b9=this['editor'],_0x379694=(_0x204687,_0x4f1d3e)=>{if('attribute'!=_0x204687)return'ck-suggestion-marker-'+_0x204687;const _0x1be0da=_0x4f1d3e['split']('|')[0x0];return this['_isBlockAttribute'](_0x1be0da)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x56a8b9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x568f38=>{const {id:_0x2695be,authorId:_0x538680,type:_0x467436,subType:_0x172664}=this['_splitMarkerName'](_0x568f38['markerName']),_0x545f93=['ck-suggestion-marker',_0x379694(_0x467436,_0x172664)];let _0xd01e6b=0xbb8;return this['activeMarkers']['includes'](_0x568f38['markerName'])&&(_0x545f93['push']('ck-suggestion-marker--active'),_0xd01e6b=0xbc2),'deletion'==_0x467436&&(_0xd01e6b+=0x5),{'classes':_0x545f93,'attributes':{'data-suggestion':_0x2695be,'data-author-id':_0x538680},'priority':_0xd01e6b};}}),_0x56a8b9['conversion']['for']('dataDowncast')['add'](_0x13de94=>{_0x13de94['on']('addMarker:suggestion',(_0x37404d,_0x14bb42,_0x5bdc96)=>{if(!_0x5bdc96['options']['showSuggestionHighlights'])return;const _0x20166a=_0x14bb42['item'];if(!_0x20166a)return;const _0x3872c8=_0x5bdc96['mapper']['toViewElement'](_0x20166a);_0x56a8b9['model']['schema']['isObject'](_0x20166a)&&_0x3872c8&&!_0x3872c8['getCustomProperty']('widget')&&_0x3872c8['is']('containerElement')&&_0x8635b4(_0x3872c8,_0x5bdc96['writer']);},{'priority':'high'});}),_0x56a8b9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xcc21cb,_0x602ddc)=>{if(!_0x602ddc['options']['showSuggestionHighlights'])return null;const {id:_0x5471ca,authorId:_0x58cc34,type:_0x863efd,subType:_0x833ca8}=this['_splitMarkerName'](_0xcc21cb['markerName']);return{'classes':['ck-suggestion-marker',_0x379694(_0x863efd,_0x833ca8)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5471ca,'data-author-id':_0x58cc34}};}});const _0x3d10e3=({showActiveMarkers:_0x447ef8=!0x0,isAttributeSuggestion:_0x5c2e1c=!0x1}={})=>(_0xeb375,_0x3851b1,_0x15dbc5)=>{if(!_0x3851b1['item'])return;const {id:_0x535a37,authorId:_0x52c314}=this['_splitMarkerName'](_0x3851b1['markerName']);if(_0x5c2e1c){const _0x2d075f=this['_suggestions']['get'](_0x535a37),_0x23d682=this['_getAttributeKey'](_0x2d075f);if(!this['_isBlockAttribute'](_0x23d682))return;}if(_0x3851b1['item']['is']('selection'))return void _0x15dbc5['consumable']['consume'](_0x3851b1['item'],_0xeb375['name']);const _0x38faf0=_0x15dbc5['mapper']['toViewElement'](_0x3851b1['item']);if(_0x3851b1['item']['is']('element')&&_0x56a8b9['model']['schema']['isBlock'](_0x3851b1['item'])&&!_0x38faf0['getCustomProperty']('addHighlight')){_0x15dbc5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x38faf0),_0x15dbc5['writer']['setAttribute']('data-suggestion',_0x535a37,_0x38faf0),_0x15dbc5['writer']['setAttribute']('data-author-id',_0x52c314,_0x38faf0),_0x15dbc5['mapper']['bindElementToMarker'](_0x38faf0,_0x3851b1['markerName']),_0x447ef8&&(this['activeMarkers']['includes'](_0x3851b1['markerName'])?_0x15dbc5['writer']['addClass']('ck-suggestion-marker--active',_0x38faf0):_0x15dbc5['writer']['removeClass']('ck-suggestion-marker--active',_0x38faf0));for(const _0x55f832 of _0x56a8b9['model']['createRangeIn'](_0x3851b1['item'])['getItems']())_0x15dbc5['consumable']['consume'](_0x55f832,_0xeb375['name']);_0x15dbc5['consumable']['consume'](_0x3851b1['item'],_0xeb375['name']);}};_0x56a8b9['conversion']['for']('dataDowncast')['add'](_0x577889=>{_0x577889['on']('addMarker:suggestion:formatBlock',(_0xcaad44,_0x511132,_0x5424f6)=>{_0x5424f6['options']['showSuggestionHighlights']&&_0x3d10e3({'showActiveMarkers':!0x1})(_0xcaad44,_0x511132,_0x5424f6);},{'priority':'highest'});}),_0x56a8b9['conversion']['for']('dataDowncast')['add'](_0x2d617b=>{_0x2d617b['on']('addMarker:suggestion:attribute',(_0x5a407c,_0xe5bf11,_0x54ad7b)=>{_0x54ad7b['options']['showSuggestionHighlights']&&_0x3d10e3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5a407c,_0xe5bf11,_0x54ad7b);},{'priority':'highest'});}),_0x56a8b9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x44dd36,_0x5e19f7)=>{if(_0x5e19f7['options']['showSuggestionHighlights']){const {id:_0x3ca689,authorId:_0x3c7cc2}=this['_splitMarkerName'](_0x44dd36);return _0x44dd36['includes'](':split')||_0x44dd36['includes'](':merge')?{'group':'suggestion','name':_0x44dd36['substr'](0xb),'attributes':{'data-suggestion':_0x3ca689,'data-author-id':_0x3c7cc2}}:null;}return{'group':'suggestion','name':_0x44dd36['substr'](0xb)};}}),_0x56a8b9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x276f51,{writer:_0xb860d7})=>{let _0x47b914='suggestion:'+_0x276f51['getAttribute']('suggestion-type')+':'+_0x276f51['getAttribute']('id');return _0x276f51['getAttribute']('marker-count')&&(_0x47b914+=':'+_0x276f51['getAttribute']('marker-count')),_0xb860d7['createElement']('$marker',{'data-name':_0x47b914});}}),_0x56a8b9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x56a8b9['conversion']['for']('editingDowncast')['add'](_0x188874=>{_0x188874['on']('addMarker:suggestion:formatBlock',_0x3d10e3(),{'priority':'high'});}),_0x56a8b9['conversion']['for']('editingDowncast')['add'](_0x3d6e8d=>{_0x3d6e8d['on']('addMarker:suggestion:attribute',_0x3d10e3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x56a8b9['conversion']['for']('editingDowncast')['add'](_0x4bd87f=>{_0x4bd87f['on']('removeMarker:suggestion:formatBlock',(_0x4fc8e5,_0x3387a7,_0x36ce14)=>{const _0x427c68=_0x36ce14['mapper']['markerNameToElements'](_0x3387a7['markerName']);if(_0x427c68){for(const _0x58c76e of _0x427c68)_0x58c76e['getCustomProperty']('addHighlight')||(_0x36ce14['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x58c76e),_0x36ce14['writer']['removeAttribute']('data-suggestion',_0x58c76e),_0x36ce14['writer']['removeAttribute']('data-author-id',_0x58c76e),_0x36ce14['mapper']['unbindElementFromMarkerName'](_0x58c76e,_0x3387a7['markerName']));}},{'priority':'high'});}),_0x56a8b9['conversion']['for']('editingDowncast')['add'](_0x4b51d4=>{_0x4b51d4['on']('removeMarker:suggestion:attribute',(_0xe81d1,_0x15fc13,_0x1be45d)=>{const _0x43a9af=_0x1be45d['mapper']['markerNameToElements'](_0x15fc13['markerName']);if(!_0x43a9af)return;const {id:_0x187cc3}=this['_splitMarkerName'](_0x15fc13['markerName']),_0xce0ca7=this['_suggestions']['get'](_0x187cc3),_0x42c793=this['_getAttributeKey'](_0xce0ca7);if(this['_isBlockAttribute'](_0x42c793)){for(const _0x3365a3 of _0x43a9af)_0x3365a3['getCustomProperty']('addHighlight')||(_0x1be45d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3365a3),_0x1be45d['writer']['removeAttribute']('data-suggestion',_0x3365a3),_0x1be45d['writer']['removeAttribute']('data-author-id',_0x3365a3),_0x1be45d['mapper']['unbindElementFromMarkerName'](_0x3365a3,_0x15fc13['markerName']));}},{'priority':'high'});}),_0x56a8b9['model']['document']['registerPostFixer'](_0x29a2d4=>{let _0x23b928=!0x1;const _0x40f8eb=Array['from'](_0x56a8b9['model']['document']['differ']['getChangedMarkers']()),_0x321623=new Set();for(const {name:_0x2526f7,data:_0xda096e}of _0x40f8eb){const {group:_0x5d940f,type:_0x855599,subType:_0x37ac8a,id:_0x18a5f6}=this['_splitMarkerName'](_0x2526f7);if('suggestion'!==_0x5d940f)continue;const _0x39782c=this['_suggestions']['get'](_0x18a5f6);if(null!=_0xda096e['newRange']){'formatInline'==_0x855599&&(_0x23b928=_0x23b928||Gt(_0xda096e['newRange'],_0x2526f7,_0x29a2d4,_0x56a8b9['model']['schema']));const _0x367671='attribute'==_0x855599&&this['_isBlockAttribute'](_0x37ac8a['split']('|')[0x0]);if(_0xda096e['newRange']['isCollapsed']||'$graveyard'==_0xda096e['newRange']['root']['rootName']||'formatBlock'==_0x855599&&!Jt(_0xda096e['newRange'])||_0x367671&&!Jt(_0xda096e['newRange'])||'deletion'==_0x855599&&!Kt(_0xda096e['newRange']))_0x29a2d4['removeMarker'](_0x2526f7),_0x23b928=!0x0;else{if(!_0x39782c||!_0x39782c['isInContent'])continue;if(_0xda096e['newRange']&&_0xda096e['oldRange']&&_0xda096e['newRange']['isEqual'](_0xda096e['oldRange']))continue;_0x321623['add'](_0x39782c);}}}return _0x321623['size']>0x0&&(_0x23b928=!!this['_joinWithAdjacentSuggestions'](_0x321623)||_0x23b928),_0x23b928;}),_0x56a8b9['model']['document']['registerPostFixer'](_0x505fb1=>{let _0x2af183=!0x1;for(const _0x54d930 of _0x56a8b9['model']['document']['differ']['getChanges']())if('insert'==_0x54d930['type'])for(const _0x514602 of this['_suggestions']['values']()){if(_0x514602['isMultiRange']||!_0x514602['isInContent'])continue;const _0x2ff769='formatBlock'==_0x514602['type'],_0x220042=this['_getAttributeKey'](_0x514602),_0x5f846a=_0x220042&&this['_isBlockAttribute'](_0x220042);if(!_0x2ff769&&!_0x5f846a)continue;const _0x47c662=_0x514602['getFirstRange']();if(_0x47c662['start']['parent']!=_0x47c662['end']['parent']&&!_0x47c662['end']['isAtEnd']){const _0x3a4f45=_0x56a8b9['model']['createPositionAt'](_0x47c662['start']['nodeAfter'],'end'),_0x443b53=_0x56a8b9['model']['createRange'](_0x47c662['start'],_0x3a4f45);_0x505fb1['updateMarker'](_0x514602['getFirstMarker'](),{'range':_0x443b53}),_0x2af183=!0x0;}}return _0x2af183;}),_0x56a8b9['model']['document']['registerPostFixer'](_0x3561aa=>this['_processAttributeChanges'](_0x3561aa)),_0x56a8b9['model']['document']['registerPostFixer'](_0x457214=>!_0x457214['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x457214)),_0x56a8b9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x56a8b9['model']['document']['on']('change:data',(_0x12290c,_0x150af6)=>{if(!_0x150af6['isLocal']||_0x150af6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ed95d=_0x56a8b9['model']['document']['differ']['getChanges']();if(0x0==_0x4ed95d['length'])return;const _0x3c52f7=[],_0x215293=_0x4ed95d['filter'](_0x23a23d=>'attribute'==_0x23a23d['type']),_0x4625cc=_0x4ed95d['filter'](_0x2b1e46=>'insert'==_0x2b1e46['type']&&'$text'!=_0x2b1e46['name']);for(const _0x4b9fd1 of _0x215293)this['_isRegisteredAttribute'](_0x4b9fd1['attributeKey'])&&_0x3c52f7['push']({'key':_0x4b9fd1['attributeKey'],'newValue':_0x4b9fd1['attributeNewValue'],'oldValue':_0x4b9fd1['attributeOldValue'],'range':Ht(_0x4b9fd1['range'],_0x56a8b9['model'])});for(const _0xb33f95 of _0x4625cc){if('rename'!=_0xb33f95['action']&&'refresh'!=_0xb33f95['action'])continue;const _0x14899a=qt(_0xb33f95['position']['nodeAfter'],_0x56a8b9['model']),_0x5e2fa5=_0xb33f95['before'];'rename'==_0xb33f95['action']&&_0x3c52f7['push']({'key':m,'newValue':_0xb33f95['name'],'oldValue':_0x5e2fa5['name'],'range':_0x14899a});for(const [_0x356ba4,_0x4728f9]of _0x5e2fa5['attributes']){if(!this['_isRegisteredAttribute'](_0x356ba4))continue;const _0x150913=_0xb33f95['attributes']['get'](_0x356ba4);_0x4728f9!==_0x150913&&_0x3c52f7['push']({'key':_0x356ba4,'newValue':_0x150913,'oldValue':_0x4728f9,'range':_0x14899a});}for(const [_0x5b0082,_0x3094fd]of _0xb33f95['attributes'])this['_isRegisteredAttribute'](_0x5b0082)&&(_0x5e2fa5['attributes']['has'](_0x5b0082)||_0x3c52f7['push']({'key':_0x5b0082,'newValue':_0x3094fd,'oldValue':null,'range':_0x14899a}));}0x0!=_0x3c52f7['length']&&_0x56a8b9['model']['enqueueChange'](_0x150af6,_0x32a086=>{const _0x280121=_0x48a539();for(const {range:_0x4c9430,key:_0x528a6c,oldValue:_0x2fe821,newValue:_0x1fd7d0}of _0x3c52f7)this['markAttributeChange'](_0x4c9430,_0x528a6c,_0x2fe821,_0x1fd7d0,{'groupId':_0x280121});this['_reduceExistingSuggestions'](_0x32a086,_0x3c52f7);});},{'priority':'lowest'}),_0x56a8b9['model']['markers']['on']('update:suggestion',(_0x265eb4,_0xed9c9e,_0x44ae23)=>{if(null==_0x44ae23){const {id:_0x2290c0}=this['_splitMarkerName'](_0xed9c9e['name']),_0x55f365=this['_suggestions']['get'](_0x2290c0);_0x55f365&&_0x55f365['addMarkerName'](_0xed9c9e['name']);}}),_0x56a8b9['model']['document']['on']('change:data',()=>{const _0x339fbb=Array['from'](_0x56a8b9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3062ca=>'suggestion'===this['_splitMarkerName'](_0x3062ca['name'])['group']);if(0x0===_0x339fbb['length'])return;_0x339fbb['sort']((_0x3a906c,_0x39632e)=>{const _0x3fb4df=_0x3a906c['data']['oldRange'],_0x1f43af=_0x39632e['data']['oldRange'];return null===_0x3fb4df&&null===_0x1f43af?0x0:null===_0x3fb4df&&null!==_0x1f43af?-0x1:null!==_0x3fb4df&&null===_0x1f43af?0x1:_0x3fb4df['start']['isBefore'](_0x1f43af['start'])?-0x1:0x1;});const _0x3d5ed8=new Set(),_0x5436bb=new Set();for(const {name:_0x542d0a,data:_0x2adcce}of _0x339fbb){const {id:_0x2f398b}=this['_splitMarkerName'](_0x542d0a);if(null===_0x2adcce['oldRange']){const _0x18c562=this['_handleNewSuggestionMarker'](_0x542d0a);_0x5436bb['add'](_0x18c562);}else{const _0x19b91f=this['_suggestions']['get'](_0x2f398b);null!==_0x2adcce['newRange']||_0x19b91f['isInContent']?(_0x3d5ed8['add'](_0x19b91f['head']),_0x5436bb['add'](_0x19b91f)):this['_removeSuggestion'](_0x19b91f);}}_0x5436bb['size']>0x0&&this['_refreshSuggestionsChain'](_0x5436bb);for(const _0x1ce498 of _0x3d5ed8)this['fire']('suggestionChanged',_0x1ce498);}),_0x56a8b9['model']['on']('applyOperation',(_0x4ec446,_0x24b322)=>{const _0x5ec748=_0x24b322[0x0];if(!this['_suggestions']['size'])return;if(!_0x5ec748['isDocumentOperation'])return;if(_0x5ec748['batch']['isUndo']||!_0x5ec748['batch']['isLocal'])return;let _0x49cba6,_0x44eb51;switch(_0x5ec748['type']){case'insert':_0x49cba6=_0x56a8b9['model']['createPositionAt'](_0x5ec748['position']),_0x44eb51=_0x49cba6['getShiftedBy'](_0x5ec748['howMany']);break;case'split':_0x49cba6=_0x56a8b9['model']['createPositionAt'](_0x5ec748['splitPosition']),_0x44eb51=_0x56a8b9['model']['createPositionAt'](_0x5ec748['moveTargetPosition']);break;case'move':_0x49cba6=_0x56a8b9['model']['createPositionAt'](_0x5ec748['targetPosition']),_0x44eb51=_0x49cba6['getShiftedBy'](_0x5ec748['howMany']);break;default:return;}const _0x409bae=_0x56a8b9['model']['createRange'](_0x49cba6,_0x44eb51);_0x56a8b9['model']['change'](()=>{for(const {suggestion:_0xbaa8f1,meta:_0x2a5f4}of this['_findSuggestions'](_0x409bae)){if(_0xbaa8f1['isMultiRange'])continue;if('formatInline'==_0xbaa8f1['type'])continue;const _0xeabe0d=this['_getAttributeKey'](_0xbaa8f1);if(_0xeabe0d&&this['_isBlockAttribute'](_0xeabe0d)&&'split'!=_0x5ec748['type'])continue;const _0x44d742=_0xbaa8f1['data']&&_0xbaa8f1['data']['multipleBlocks'];('formatBlock'!=_0xbaa8f1['type']||'split'==_0x5ec748['type']&&!_0x44d742)&&(_0x2a5f4['containsRangeInObject']||'insertion'==_0xbaa8f1['type']&&_0x2a5f4['isOwn']||_0xbaa8f1['getFirstRange']()['containsRange'](_0x409bae)&&this['_breakSuggestionMarker'](_0xbaa8f1,_0x49cba6,_0x44eb51));}});},{'priority':'lowest'}),_0x56a8b9['model']['on']('deleteContent',(_0x4b6350,_0x82b228)=>{const _0x16454b=_0x82b228[0x0],_0x2c0728=_0x82b228[0x1];if(_0x2c0728&&_0x2c0728['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x16454b['isCollapsed'])return;const _0x3ad826=_0x56a8b9['model']['schema'],{start:_0x2af9d5,end:_0x40a70c}=_0x16454b['getFirstRange'](),_0x148ff3=_0x2af9d5['nodeAfter']&&_0x3ad826['isLimit'](_0x2af9d5['nodeAfter'])?null:_0x3ad826['getNearestSelectionRange'](_0x2af9d5,'forward'),_0x2c54f3=_0x40a70c['nodeBefore']&&_0x3ad826['isLimit'](_0x40a70c['nodeBefore'])?null:_0x3ad826['getNearestSelectionRange'](_0x40a70c,'backward'),_0x66db44=_0x56a8b9['model']['createRange'](_0x148ff3?_0x148ff3['start']:_0x2af9d5,_0x2c54f3?_0x2c54f3['end']:_0x40a70c);_0x56a8b9['model']['change'](_0x248dbf=>{this['markDeletion'](_0x66db44);const _0xdfe82e=_0x56a8b9['model']['schema']['getNearestSelectionRange'](_0x66db44['start']);_0x16454b['is']('documentSelection')?_0x248dbf['setSelection'](_0xdfe82e):_0x16454b['setTo'](_0xdfe82e);}),_0x4b6350['stop']();},{'priority':_0x2dd4ea['normal']+0xa}),_0x56a8b9['model']['on']('insertContent',(_0x39cab4,_0x464b97)=>{const _0x176819=_0x464b97[_0x464b97['length']-0x1];_0x176819&&_0x176819['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x56a8b9['model']['change'](()=>{let _0x2a3580=_0x56a8b9['model']['insertContent'](_0x464b97[0x0],_0x464b97[0x1],_0x464b97[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a3580)return;_0x39cab4['return']=_0x2a3580['clone']();const _0x1ea36f=_0x2a3580['end']['nodeBefore'],_0x4283e2=_0x56a8b9['model']['schema'];_0x1ea36f&&_0x4283e2['isBlock'](_0x1ea36f)&&!_0x4283e2['isObject'](_0x1ea36f)&&(_0x2a3580=_0x56a8b9['model']['createRange'](_0x2a3580['start'],_0x56a8b9['model']['createPositionAt'](_0x1ea36f,'end'))),this['markInsertion'](_0x2a3580);}),_0x39cab4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3565ca=new D(_0x56a8b9,this['_suggestions']);_0x56a8b9['commands']['add']('acceptSuggestion',_0x3565ca),this['enableCommand']('acceptSuggestion');const _0x347d6d=new M(_0x56a8b9,this['_suggestions']);_0x56a8b9['commands']['add']('discardSuggestion',_0x347d6d),this['enableCommand']('discardSuggestion'),_0x56a8b9['commands']['add']('acceptAllSuggestions',new $(_0x56a8b9,_0x3565ca,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x56a8b9['commands']['add']('discardAllSuggestions',new $(_0x56a8b9,_0x347d6d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x56a8b9['commands']['add']('acceptSelectedSuggestions',new B(_0x56a8b9,_0x3565ca,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x56a8b9['commands']['add']('discardSelectedSuggestions',new B(_0x56a8b9,_0x347d6d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2db2b5=_0x56a8b9['plugins']['get']('CommentsRepository');this['listenTo'](_0x2db2b5,'addComment',(_0xb31077,{threadId:_0x580b34})=>{const _0x2c8fa9=this['_suggestions']['get'](_0x580b34);_0x2c8fa9&&_0x2c8fa9['commentThread']&&0x1===_0x2c8fa9['commentThread']['length']&&this['_updateSuggestionData'](_0x580b34,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2db2b5,'removeComment',(_0x1b58eb,{threadId:_0x3efdc0})=>{const _0x12905=this['_suggestions']['get'](_0x3efdc0);_0x12905&&_0x12905['commentThread']&&!_0x12905['commentThread']['length']&&this['_updateSuggestionData'](_0x3efdc0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x319686){const _0x1080b5=_0x5cdf6a([0x47,0x51,0x31,0x75,0x76,0x4b,0x59,0x68,0x37,0x56,0x48,0x41,0x6a,0x64,0x39,0x38,0x33,0x52,0x66,0x4e,0x74,0x65,0x4f,0x54,0x45,0x55,0x79,0x7a,0x77,0x6e,0x5a,0x35,0x53,0x42,0x4c,0x44,0x30,0x78,0x49,0x61,0x46,0x73,0x43,0x67,0x34,0x58,0x57,0x72,0x6c,0x4a,0x6b,0x50,0x32,0x63,0x70,0x36,0x69,0x62,0x6d,0x4d,0x6f,0x71]),_0x49de19=0x13d9e842,_0x57544a=0x13de8412^_0x49de19,_0x5cca4e=window[_0x5cdf6a([0x44,0x61,0x74,0x65])][_0x5cdf6a([0x6e,0x6f,0x77])](),_0x44c198=_0x319686[_0x5cdf6a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3eff3a=new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29031c=>{_0x44c198[_0x5cdf6a([0x6f,0x6e,0x63,0x65])](_0x5cdf6a([0x72,0x65,0x61,0x64,0x79]),_0x29031c);}),_0x136e17={[_0x5cdf6a([0x6b,0x74,0x79])]:_0x5cdf6a([0x45,0x43]),[_0x5cdf6a([0x75,0x73,0x65])]:_0x5cdf6a([0x73,0x69,0x67]),[_0x5cdf6a([0x63,0x72,0x76])]:_0x5cdf6a([0x50,0x2d,0x32,0x35,0x36]),[_0x5cdf6a([0x78])]:_0x5cdf6a([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]),[_0x5cdf6a([0x79])]:_0x5cdf6a([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]),[_0x5cdf6a([0x61,0x6c,0x67])]:_0x5cdf6a([0x45,0x53,0x32,0x35,0x36])},_0x5a9fd0=_0x44c198[_0x5cdf6a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5cdf6a([0x67,0x65,0x74])](_0x5cdf6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c2fe3(){let _0x50c75d,_0x3114ab=null,_0x47ab9a=null;try{if(_0x5a9fd0==_0x5cdf6a([0x47,0x50,0x4c]))return _0x5cdf6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50c75d=_0x1bf2ed(),!_0x50c75d)return _0x5cdf6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50c75d[_0x5cdf6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x47ab9a=_0x25f169(_0x50c75d[_0x5cdf6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50c75d[_0x5cdf6a([0x6a,0x74,0x69])])),await _0x16bf63()?_0x36f2a7()?_0x95c80c()?_0x5cdf6a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2448ed()?(_0x50c75d[_0x5cdf6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cdf6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3114ab=_0x3f6615(_0x5cdf6a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50c75d[_0x5cdf6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cdf6a([0x74,0x72,0x69,0x61,0x6c])&&(_0x3114ab=_0x3f6615(_0x5cdf6a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f526a()):_0x5cdf6a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5cdf6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5cdf6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5cdf6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x95c80c(){const _0x5ef5f7=[_0x5cdf6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5cdf6a([0x74,0x72,0x69,0x61,0x6c])][_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c75d[_0x5cdf6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5cca4e/0x3e8:0xe10*_0x57544a;return _0x50c75d[_0x5cdf6a([0x65,0x78,0x70])]<_0x5ef5f7;}function _0x36f2a7(){const _0x2a1742=_0x50c75d[_0x5cdf6a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2a1742)return!0x1;if(_0x2a1742[_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cdf6a([0x2a])))return!0x0;if(_0x2a1742[_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cdf6a([0x54,0x43])))return!0x0;if(_0x2a1742[_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cdf6a([0x52,0x54,0x43]))){if(_0x2a4ec9())return!0x0;if(_0x4435ab()||_0x4a8b9c())return!0x0;}return!0x1;}function _0x2448ed(){const _0x4718da=_0x50c75d[_0x5cdf6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4718da||0x0==_0x4718da[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf03008}=new URL(window[_0x5cdf6a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4718da[_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf03008))return!0x0;const _0xf40dfa=_0xf03008[_0x5cdf6a([0x73,0x70,0x6c,0x69,0x74])](_0x5cdf6a([0x2e]));return _0x4718da[_0x5cdf6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bf150=>_0x4bf150[_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cdf6a([0x2a])))[_0x5cdf6a([0x6d,0x61,0x70])](_0x497679=>_0x497679[_0x5cdf6a([0x73,0x70,0x6c,0x69,0x74])](_0x5cdf6a([0x2e])))[_0x5cdf6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ccb84=>_0x2ccb84[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf40dfa[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cdf6a([0x6d,0x61,0x70])](_0x758ac6=>Array(_0xf40dfa[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x758ac6[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cdf6a([0x66,0x69,0x6c,0x6c])](_0x758ac6[0x0]===_0x5cdf6a([0x2a])?_0x5cdf6a([0x2a]):'')[_0x5cdf6a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x758ac6))[_0x5cdf6a([0x73,0x6f,0x6d,0x65])](_0x414205=>_0xf40dfa[_0x5cdf6a([0x65,0x76,0x65,0x72,0x79])]((_0x1426c0,_0x54edbc)=>_0x414205[_0x54edbc]===_0x1426c0||_0x414205[_0x54edbc]===_0x5cdf6a([0x2a])));}function _0x5f526a(){return _0x3114ab&&_0x47ab9a?new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1afcea,_0x208717)=>{_0x3114ab[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x1afcea,_0x208717),_0x47ab9a[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x5ababc=>{_0x5ababc!=_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64])&&_0x1afcea(_0x5ababc);},_0x208717);}):_0x3114ab||_0x47ab9a||_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25f169(_0x363874,_0x46e0c6){return new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172f2b=>{if(_0x2454de())return _0x172f2b(_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64]));_0x176d25(),_0x44c198[_0x5cdf6a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5cdf6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5674a7=!0x1;const _0x17d30d=_0x48a539();function _0x5c0da4(_0x15de39){return!!_0x15de39&&(typeof _0x15de39===_0x5cdf6a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15de39===_0x5cdf6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15de39[_0x5cdf6a([0x74,0x68,0x65,0x6e])]===_0x5cdf6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15de39[_0x5cdf6a([0x63,0x61,0x74,0x63,0x68])]===_0x5cdf6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28b292(_0x20d7df){_0x14bb38(_0x20d7df)[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x4f7b9e=>{if(!_0x4f7b9e||_0x4f7b9e[_0x5cdf6a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5cdf6a([0x6f,0x6b]))return _0x5cdf6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf51de4(_0x1957d6(_0x17d30d+_0x46e0c6))!=_0x4f7b9e[_0x5cdf6a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5cdf6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x43abd2=>(_0x16b020(),_0x43abd2),()=>{const _0x44c7bc=_0x13db78();return null==_0x44c7bc?(_0x16b020(),_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64])):_0x5cdf6a(_0x5cca4e-_0x44c7bc>(0x37d56c42^_0x49de19)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x172f2b)[_0x5cdf6a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x172f2b(_0x5cdf6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3900d3=0x13ef06c2^_0x49de19;function _0x16b020(){const _0x15b58f=_0x5cdf6a([0x6c,0x6c,0x63,0x74,0x2d])+_0xf51de4(_0x1957d6(_0x363874)),_0x2dc3a8=_0x1cb57c(_0xf51de4(window[_0x5cdf6a([0x4d,0x61,0x74,0x68])][_0x5cdf6a([0x63,0x65,0x69,0x6c])](_0x5cca4e/_0x3900d3)));window[_0x5cdf6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cdf6a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15b58f,_0x2dc3a8);}function _0x13db78(){const _0x594bff=_0x5cdf6a([0x6c,0x6c,0x63,0x74,0x2d])+_0xf51de4(_0x1957d6(_0x363874)),_0x418c9d=window[_0x5cdf6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cdf6a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x594bff);return _0x418c9d?window[_0x5cdf6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cb57c(_0x418c9d),0x10)*_0x3900d3:null;}function _0x14bb38(_0x2c4f9d){return new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5633d5,_0x2985a3)=>{_0x2c4f9d[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x5633d5,_0x2985a3),window[_0x5cdf6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2985a3,0x13d83c82^_0x49de19);});}}_0x44c198[_0x5cdf6a([0x6f,0x6e])](_0x5cdf6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x134a24,_0x2258d2)=>{if(_0x2258d2[0x0]!=_0x363874)return _0x172f2b(_0x5cdf6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2258d2[0x1]={..._0x2258d2[0x1],[_0x5cdf6a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17d30d};},{[_0x5cdf6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cdf6a([0x68,0x69,0x67,0x68])}),_0x44c198[_0x5cdf6a([0x6f,0x6e])](_0x5cdf6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49acce=>{_0x5c0da4(_0x49acce[_0x5cdf6a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5674a7=!0x0,_0x28b292(_0x49acce[_0x5cdf6a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5cdf6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cdf6a([0x6c,0x6f,0x77])}),_0x3eff3a[_0x5cdf6a([0x74,0x68,0x65,0x6e])](()=>{_0x5674a7||_0x172f2b(_0x5cdf6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2454de(){return _0x44c198[_0x5cdf6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cdf6a([0x76,0x69,0x65,0x77])][_0x5cdf6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5cdf6a([0x61,0x75,0x74,0x6f]);}function _0x176d25(){_0x44c198[_0x5cdf6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cdf6a([0x76,0x69,0x65,0x77])][_0x5cdf6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cdf6a([0x61,0x75,0x74,0x6f]);}}function _0x3f6615(_0x29c0db){const _0x57f286=[new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48b84e=>setTimeout(_0x48b84e,0x13d0d68e^_0x49de19)),_0x3eff3a[_0x5cdf6a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x166810=>{let _0x5f1a9f=0x0;_0x44c198[_0x5cdf6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cdf6a([0x6f,0x6e])](_0x5cdf6a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d0723,_0x5b051c)=>{_0x5b051c[0x0][_0x5cdf6a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5f1a9f++,_0x5f1a9f==(0x13d9e9ba^_0x49de19)&&(_0x166810(),_0x4d0723[_0x5cdf6a([0x6f,0x66,0x66])]());});}))];return window[_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cdf6a([0x72,0x61,0x63,0x65])](_0x57f286)[_0x5cdf6a([0x74,0x68,0x65,0x6e])](()=>_0x29c0db);}async function _0x5b8895(){await _0x3eff3a,_0x44c198[_0x5cdf6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cdf6a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3398a3,_0x44c198[_0x5cdf6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cdf6a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3398a3,_0x44c198[_0x5cdf6a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5cdf6a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a4ec9(){return _0x5b6826(_0x5cdf6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x194ed1(_0x5cdf6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5cdf6a([0x73,0x74,0x61,0x74,0x65])]==_0x5cdf6a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4435ab(){return _0x5b6826(_0x5cdf6a([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 _0x4a8b9c(){return _0x5b6826(_0x5cdf6a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c2734(_0x27fc9c){const _0x3eb5ec=_0xdf6dc3();_0x44c198[_0x3eb5ec]=_0x5cdf6a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27fc9c,_0x27fc9c!=_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64])&&_0x5b8895();}function _0xdf6dc3(){const _0xbcf308=window[_0x5cdf6a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5cdf6a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5cdf6a([0x6e,0x6f,0x77])]())[_0x5cdf6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5cdf6a([0x2e]),'');let _0x2556e4=_0x5cdf6a([0x47]);for(let _0x30b694=0x0;_0x30b694<_0xbcf308[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30b694+=0x2){let _0x175d7a=window[_0x5cdf6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbcf308[_0x5cdf6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30b694,_0x30b694+0x2));_0x175d7a>=_0x1080b5[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x175d7a-=_0x1080b5[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2556e4+=_0x1080b5[_0x175d7a];}return _0x2556e4;}function _0x1bf2ed(){const _0x35cacb=_0x5a9fd0[_0x5cdf6a([0x73,0x70,0x6c,0x69,0x74])](_0x5cdf6a([0x2e]));if(0x3!=_0x35cacb[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ab5d1(_0x35cacb[0x1]);function _0x5ab5d1(_0x45f5c2){const _0x5e527e=_0x3bcb71(_0x45f5c2);return _0x5e527e&&_0x2eff00()?_0x5e527e:null;function _0x2eff00(){const _0x2f9323=_0x5e527e[_0x5cdf6a([0x6a,0x74,0x69])],_0x5da7eb=window[_0x5cdf6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f9323[_0x5cdf6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f9323[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f1f03={..._0x5e527e,[_0x5cdf6a([0x6a,0x74,0x69])]:_0x2f9323[_0x5cdf6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f9323[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f1f03[_0x5cdf6a([0x76,0x63])],_0x1957d6(_0x4f1f03)==_0x5da7eb;}}}async function _0x16bf63(){let _0x3ad1a2=!0x0;try{const _0xd81a62=_0x5a9fd0[_0x5cdf6a([0x73,0x70,0x6c,0x69,0x74])](_0x5cdf6a([0x2e])),[_0x37d743,_0x5c999b,_0x97ba7e]=_0xd81a62;return _0x53026b(_0x37d743),await _0x32f725(_0x37d743,_0x5c999b,_0x97ba7e),_0x3ad1a2;}catch{return!0x1;}function _0x53026b(_0xf3dec2){const _0x5f4116=_0x3bcb71(_0xf3dec2);_0x5f4116&&_0x5f4116[_0x5cdf6a([0x61,0x6c,0x67])]==_0x5cdf6a([0x45,0x53,0x32,0x35,0x36])||(_0x3ad1a2=!0x1);}async function _0x32f725(_0x199f93,_0x81f397,_0x26cb33){const _0x6642e2=window[_0x5cdf6a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5cdf6a([0x66,0x72,0x6f,0x6d])](_0x3e98b1(_0x26cb33),_0x1861bf=>_0x1861bf[_0x5cdf6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e61de=new window[(_0x5cdf6a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5cdf6a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x199f93+_0x5cdf6a([0x2e])+_0x81f397),_0x3c7b54=window[_0x5cdf6a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5cdf6a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c7b54)return;const _0x5f3950=await _0x3c7b54[_0x5cdf6a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5cdf6a([0x6a,0x77,0x6b]),_0x136e17,{[_0x5cdf6a([0x6e,0x61,0x6d,0x65])]:_0x5cdf6a([0x45,0x43,0x44,0x53,0x41]),[_0x5cdf6a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5cdf6a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5cdf6a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c7b54[_0x5cdf6a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5cdf6a([0x6e,0x61,0x6d,0x65])]:_0x5cdf6a([0x45,0x43,0x44,0x53,0x41]),[_0x5cdf6a([0x68,0x61,0x73,0x68])]:{[_0x5cdf6a([0x6e,0x61,0x6d,0x65])]:_0x5cdf6a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f3950,_0x6642e2,_0x4e61de)||(_0x3ad1a2=!0x1);}}function _0x3bcb71(_0x5eb912){return _0x5eb912[_0x5cdf6a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5cdf6a([0x65,0x79]))?JSON[_0x5cdf6a([0x70,0x61,0x72,0x73,0x65])](_0x3e98b1(_0x5eb912)):null;}function _0x3e98b1(_0x47851f){return window[_0x5cdf6a([0x61,0x74,0x6f,0x62])](_0x47851f[_0x5cdf6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5cdf6a([0x2b]))[_0x5cdf6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5cdf6a([0x2f])));}function _0x1957d6(_0x57f53d){let _0x26c126=0x1505;function _0x4a31d6(_0x547b94){for(let _0x31b008=0x0;_0x31b008<_0x547b94[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31b008++){const _0x5de64e=_0x547b94[_0x5cdf6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31b008);_0x26c126=(_0x26c126<<0x5)+_0x26c126+_0x5de64e,_0x26c126&=_0x26c126;}}function _0x50d9d4(_0x211d2b){Array[_0x5cdf6a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x211d2b)?_0x211d2b[_0x5cdf6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50d9d4):_0x211d2b&&typeof _0x211d2b==_0x5cdf6a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5cdf6a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x211d2b)[_0x5cdf6a([0x73,0x6f,0x72,0x74])]()[_0x5cdf6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x33a7d5,_0x1dd232])=>{_0x4a31d6(_0x33a7d5),_0x50d9d4(_0x1dd232);}):_0x4a31d6(window[_0x5cdf6a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x211d2b));}return _0x50d9d4(_0x57f53d),_0x26c126>>>0x0;}function _0xf51de4(_0x483368){return _0x483368[_0x5cdf6a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5cdf6a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5cdf6a([0x30]));}function _0x1cb57c(_0x190c8f){return _0x190c8f[_0x5cdf6a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5cdf6a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5cdf6a([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b6826(_0x256eaa){return _0x44c198[_0x5cdf6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5cdf6a([0x68,0x61,0x73])](_0x256eaa);}function _0x194ed1(_0x46d5c0){return _0x44c198[_0x5cdf6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5cdf6a([0x67,0x65,0x74])](_0x46d5c0);}function _0x3398a3(){}function _0x5cdf6a(_0x261da7){return _0x261da7['map'](_0x3da451=>String['fromCharCode'](_0x3da451))['join']('');}_0x1c2734(await _0x5c2fe3());}(this);}set['adapter'](_0x3fbdfd){if(this['_adapter'])throw new _0x223d51('track-changes-adapter-already-set',this);this['_adapter']=_0x3fbdfd;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x39c68c=!0x1,toJSON:_0x4eb3ea=!0x1}={}){const _0x1433b1=[];for(const _0x31d676 of this['_suggestions']['values']())_0x39c68c&&!_0x31d676['isInContent']||_0x1433b1['push'](_0x31d676);return _0x4eb3ea?_0x1433b1['map'](_0x1ef411=>_0x1ef411['toJSON']()):_0x1433b1;}['getSuggestion'](_0x497009){const _0x3a59c6=this['_suggestions']['get'](_0x497009);if(!_0x3a59c6)throw new _0x223d51('track-changes-suggestion-not-found',this);return _0x3a59c6;}['hasSuggestion'](_0x157f2d){return this['_suggestions']['has'](_0x157f2d);}['addSuggestionData'](_0x39ef26){const {authorId:_0x59892c,id:_0x30b10e,originalSuggestionId:_0x4a3e3f,attributes:_0x3c643e}=_0x39ef26,[_0x48e792,_0x192f07]=_0x39ef26['type']['split'](':'),_0x51c8b8=this['_suggestions']['get'](_0x30b10e)||this['_createSuggestion'](_0x48e792,_0x192f07,_0x30b10e,_0x59892c,_0x3c643e,_0x4a3e3f);if(this['_addThreadToSuggestion'](_0x51c8b8),this['_checkSuggestionCorrectness'](_0x51c8b8,_0x48e792,_0x192f07||null,_0x59892c),_0x51c8b8['createdAt']=_0x39ef26['createdAt'],_0x51c8b8['_isDataLoaded']=!0x0,_0x3c643e&&_0x3c643e['@external']){const _0x1fc769=_0x3c643e['@external'],_0x46602c=this['_getExternalAuthor'](_0x1fc769['authorName']);_0x51c8b8['authoredAt']=_0x1fc769['createdAt'],_0x51c8b8['author']=_0x46602c,_0x51c8b8['isExternal']=!0x0;}else _0x51c8b8['authoredAt']=_0x39ef26['createdAt'];switch(_0x39ef26['data']&&(_0x51c8b8['data']=_0x39ef26['data']),_0x39ef26['attributes']&&(_0x51c8b8['attributes']=_0x39ef26['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x51c8b8['_saved']=!0x0),this['_suggestionState']['get'](_0x51c8b8)){case'notReady':this['_suggestionState']['set'](_0x51c8b8,'dataReady');break;case'markerReady':_0x51c8b8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x51c8b8])),this['_refreshSuggestionsChain'](new Set([_0x51c8b8])),this['_suggestionState']['set'](_0x51c8b8,'ready'),this['fire']('suggestionLoaded',_0x51c8b8)):this['_suggestionState']['set'](_0x51c8b8,'removed');}return _0x51c8b8;}['acceptSuggestion'](_0x33932b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x568cc8 of _0x33932b['getAllAdjacentSuggestions']())_0x568cc8['accept']();});});}['discardSuggestion'](_0x49d7dc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x551e16 of _0x49d7dc['getAllAdjacentSuggestions']())_0x551e16['discard']();});});}['enableCommand'](_0x60d7cc,_0x23882a){const _0x16dc90=this['editor']['commands']['get'](_0x60d7cc);if(!_0x16dc90)throw new _0x223d51('track-changes-command-not-found',this,{'commandName':_0x60d7cc});if(this['_enabledCommands']['has'](_0x16dc90))throw new _0x223d51('track-changes-enable-command-twice',this,{'commandName':_0x60d7cc});this['_enabledCommands']['add'](_0x16dc90),_0x23882a&&_0x16dc90['on']('execute',(_0x1b7786,_0x20a7f5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20a7f5['length']>0x0&&_0x20a7f5[_0x20a7f5['length']-0x1]&&_0x20a7f5[_0x20a7f5['length']-0x1]['forceDefaultExecution']?_0x20a7f5['pop']():(_0x1b7786['return']=_0x23882a((..._0x4be04e)=>_0x16dc90['execute'](..._0x4be04e,{'forceDefaultExecution':!0x0}),..._0x20a7f5),_0x1b7786['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1673ee){let _0x4deb8c,_0x30bf5c;const _0x16dd46=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4deb8c=_0x1673ee();}catch(_0x52c8f4){_0x30bf5c=_0x52c8f4;}return _0x16dd46||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x30bf5c&&_0x223d51['rethrowUnexpectedError'](_0x30bf5c,this),_0x4deb8c;}['markInsertion'](_0x48a1ad,_0x2c5246=null,_0x2cc660={}){if(_0x48a1ad['isCollapsed'])return null;const _0x5ac25b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2cc660['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x560c0b,meta:_0x12c93d}of this['_findSuggestions'](_0x48a1ad,'insertion'))if(_0x12c93d['isOwn']){if(!_0x12c93d['isNextTo']){if(_0x12c93d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x560c0b,_0x2cc660))continue;return _0x560c0b;}if(Qt(_0x560c0b,_0x2cc660))return _0x560c0b;this['_breakSuggestionMarker'](_0x560c0b,_0x48a1ad['start'],_0x48a1ad['end']);break;}if(_0x2c5246==_0x560c0b['subType']&&Qt(_0x560c0b,_0x2cc660)){const _0xf2c668=_0x560c0b['getFirstRange']();return _0xf2c668['start']['isEqual'](_0x48a1ad['end'])?this['_setSuggestionRange'](_0x560c0b,this['_model']['createRange'](_0x48a1ad['start'],_0xf2c668['end'])):this['_setSuggestionRange'](_0x560c0b,this['_model']['createRange'](_0xf2c668['start'],_0x48a1ad['end'])),_0x560c0b;}}const _0x4bd629=_0x48a539(),_0x298f14=_0x5ac25b['id'],_0x53c93d=_0x2c5246?'insertion:'+_0x2c5246:'insertion',_0x449f01=this['_setSuggestionData']({'id':_0x4bd629,'type':_0x53c93d,'createdAt':new Date(),'authorId':_0x298f14,'attributes':_0x2cc660});return this['_addSuggestionMarker'](_0x53c93d,_0x4bd629,_0x298f14,_0x48a1ad),_0x449f01;}['markMultiRangeInsertion'](_0x4960fb,_0x2fa48e='multi',_0x59e2ce={}){const _0x27f620=this['editor']['plugins']['get']('Users')['me'],_0x17dc3b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2fa48e,'join');this['_trackingSessionId']&&(_0x59e2ce['trackingSessionId']=this['_trackingSessionId']);for(const _0x43464b of this['getSuggestions']())if(_0x43464b['author']['id']==_0x27f620['id']&&'insertion'==_0x43464b['type']&&_0x43464b['subType']==_0x2fa48e&&Qt(_0x43464b,_0x59e2ce)&&(_0x17dc3b(_0x43464b['getRanges'](),_0x4960fb)||_0x17dc3b(_0x4960fb,_0x43464b['getRanges']()))){for(const _0x3a5ae1 of _0x4960fb)_0x43464b['addRange'](_0x3a5ae1);return _0x43464b;}for(const {suggestion:_0x449697,meta:_0x32f575}of this['_findSuggestions'](_0x4960fb,'insertion')){if(!_0x32f575['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x32f575['containsRangeInObject'])continue;if(!Qt(_0x449697,_0x59e2ce))continue;let _0x3f1061=!0x0;for(const _0x1de6c8 of _0x449697['getRanges']())for(const _0x4abd6d of _0x4960fb)if(!_0x1de6c8['containsRange'](_0x4abd6d)){_0x3f1061=!0x1;break;}if(_0x3f1061)return _0x449697;}const _0x4ad99c=_0x48a539(),_0x21dd06=_0x27f620['id'],_0x58c8ae='insertion:'+_0x2fa48e,_0x558c76=this['_setSuggestionData']({'id':_0x4ad99c,'type':_0x58c8ae,'createdAt':new Date(),'authorId':_0x21dd06,'attributes':_0x59e2ce});for(const _0x2812d9 of _0x4960fb)this['_addSuggestionMarker'](_0x58c8ae,_0x4ad99c,_0x21dd06,_0x2812d9,T['getMultiRangeId']());return _0x558c76;}['markInlineFormat'](_0x4b9f2a,_0x5b5ba7,_0x80d731=null,_0x4128a9={}){if(_0x80d731=_0x80d731||Lt(_0x5b5ba7),_0x4b9f2a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4128a9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc91d6e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x80d731,'accept');return this['forceDefaultExecution'](()=>_0xc91d6e([_0x4b9f2a],_0x5b5ba7,_0x4128a9)),null;}const _0x5cce6f=this['editor']['plugins']['get']('Users')['me'],_0x30f492=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3f3eac,meta:_0x176e47}of this['_findSuggestions'](_0x4b9f2a,'insertion'))_0x176e47['isOwn']&&!_0x176e47['isInsideObject']&&_0x30f492['push'](..._0x3f3eac['getRanges']());}const _0x23d21f=function(_0x5481f2,_0x5487cd){const _0x4ef5e5=[];for(const _0x170915 of _0x5487cd){const _0x25aeb5=_0x5481f2['getIntersection'](_0x170915);_0x25aeb5&&_0x4ef5e5['push'](_0x25aeb5);}return _0x4ef5e5;}(_0x4b9f2a,_0x30f492),_0x3de1d0=function(_0x254836,_0x53315d){const _0x210774=[_0x254836];for(const _0x4f0431 of _0x53315d){let _0x4476e8=0x0;for(;_0x4476e8<_0x210774['length'];){const _0x2f0ff8=_0x210774[_0x4476e8]['getDifference'](_0x4f0431);_0x210774['splice'](_0x4476e8,0x1,..._0x2f0ff8),_0x4476e8+=_0x2f0ff8['length'];}}return _0x210774;}(_0x4b9f2a,_0x30f492);_0x23d21f['length']&&this['_model']['change'](()=>{for(const _0x2cf6fa of _0x23d21f){const _0x214b19=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x80d731,'accept');this['forceDefaultExecution'](()=>_0x214b19([_0x2cf6fa],_0x5b5ba7,_0x4128a9));}});for(const _0x52eddb of _0x3de1d0){let _0x779e5a=null,_0x4e1df1=_0x52eddb['start'],_0x282955=_0x52eddb['end'];for(const {suggestion:_0x3d8b87,meta:_0x39ba61}of this['_findSuggestions'](_0x52eddb,'formatInline')){if(!_0x39ba61['isOwn'])continue;if(_0x3d8b87['subType']!=_0x80d731)continue;if(!Qt(_0x3d8b87,_0x4128a9))continue;const _0x3b2563=_0x3d8b87['getFirstRange']();if(_0x3b2563['containsRange'](_0x52eddb,!0x0))return null;_0x4e1df1=_0x4e1df1['isBefore'](_0x3b2563['start'])?_0x4e1df1:_0x3b2563['start'],_0x282955=_0x282955['isAfter'](_0x3b2563['end'])?_0x282955:_0x3b2563['end'],_0x779e5a?_0x3b2563['start']['isBefore'](_0x779e5a['getFirstRange']()['start'])?(_0x779e5a['removeMarkers'](),_0x779e5a=_0x3d8b87):_0x3d8b87['removeMarkers']():_0x779e5a=_0x3d8b87;}const _0x22171b=this['_model']['createRange'](_0x4e1df1,_0x282955);if(_0x779e5a)this['_setSuggestionRange'](_0x779e5a,_0x22171b);else{const _0x15f1ee=_0x48a539(),_0x5cb837=_0x5cce6f['id'];this['_setSuggestionData']({'id':_0x15f1ee,'type':'formatInline:'+_0x80d731,'data':_0x5b5ba7,'createdAt':new Date(),'authorId':_0x5cb837,'attributes':_0x4128a9}),this['_addSuggestionMarker']('formatInline:'+_0x80d731,_0x15f1ee,_0x5cb837,_0x22171b);}}return null;}['markBlockFormat'](_0x58adbf,_0x51161d,_0x7a9d88=[],_0xf9edab=null,_0x24f52d={}){_0x51161d['formatGroupId']||(_0x51161d['formatGroupId']=_0x51161d['commandName']),_0x51161d['multipleBlocks']=_0x58adbf['is']('range'),_0xf9edab=_0xf9edab||Lt(_0x51161d);const _0x4aa22e=_0x7a9d88['map'](_0x29462c=>qt(_0x29462c,this['_model'])),_0xac427a=_0x58adbf['is']('range')?_0x58adbf:qt(_0x58adbf,this['_model']);if(this['_trackingSessionId']&&(_0x24f52d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x361e4a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf9edab,'accept');return this['forceDefaultExecution'](()=>_0x361e4a([_0xac427a],_0x51161d,_0x24f52d)),null;}_0x4aa22e['push'](_0xac427a);let _0x3c3ada=!0x0;for(const _0x269b12 of _0x4aa22e)if(!this['_rangeIsInLocalUserInsertion'](_0x269b12)){_0x3c3ada=!0x1;break;}if(_0x3c3ada&&'always'!==this['_trackFormatChanges']){const _0x20bd14=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf9edab,'accept');return this['forceDefaultExecution'](()=>_0x20bd14([_0xac427a],_0x51161d,_0x24f52d)),null;}let _0x165e3b=null,_0x31a9c9=_0xac427a['start'],_0x5b45d2=_0xac427a['end'];for(const {suggestion:_0x116172,meta:_0x5b251}of this['_findSuggestions'](_0xac427a,'formatBlock')){if(!_0x5b251['isOwn'])continue;if(_0x5b251['isNextTo']||_0x5b251['containsRangeInObject']||_0x5b251['isInsideObject'])continue;if(_0x116172['data']['formatGroupId']!=_0x51161d['formatGroupId'])continue;if(!Qt(_0x116172,_0x24f52d))continue;const _0x2e1978=_0x116172['getFirstRange']();if(_0x116172['subType']==_0xf9edab){if(_0x2e1978['containsRange'](_0xac427a,!0x0))return null;_0x31a9c9=_0x31a9c9['isBefore'](_0x2e1978['start'])?_0x31a9c9:_0x2e1978['start'],_0x5b45d2=_0x5b45d2['isAfter'](_0x2e1978['end'])?_0x5b45d2:_0x2e1978['end'],_0x165e3b?_0x2e1978['start']['isBefore'](_0x165e3b['getFirstRange']()['start'])?(_0x165e3b['removeMarkers'](),_0x165e3b=_0x116172):_0x116172['removeMarkers']():_0x165e3b=_0x116172;}else{const _0x496c1b=_0xac427a['getIntersection'](_0x2e1978);this['_cutOutSuggestionMarker'](_0x116172,_0x496c1b);}}const _0x3d5b77=this['editor']['plugins']['get']('Users')['me'],_0x4bf1a7=_0x48a539(),_0x106bbd=_0x3d5b77['id'];if(_0x165e3b)return this['_setSuggestionRange'](_0x165e3b,this['_model']['createRange'](_0x31a9c9,_0x5b45d2)),_0x165e3b;{const _0x1201a3=this['_setSuggestionData']({'id':_0x4bf1a7,'type':'formatBlock:'+_0xf9edab,'data':_0x51161d,'createdAt':new Date(),'authorId':_0x106bbd,'attributes':_0x24f52d});return this['_addSuggestionMarker']('formatBlock:'+_0xf9edab,_0x4bf1a7,_0x106bbd,this['_model']['createRange'](_0x31a9c9,_0x5b45d2)),_0x1201a3;}}['markMultiRangeBlockFormat'](_0x400b46,_0x14128e,_0x5a9d43=[],_0x3fecde=null,_0x582b41={}){_0x14128e['formatGroupId']||(_0x14128e['formatGroupId']=_0x14128e['commandName']);const _0x168eaa=_0x400b46[0x0];_0x14128e['multipleBlocks']=_0x168eaa['is']('range'),_0x3fecde=_0x3fecde||Lt(_0x14128e);const _0x4c315a=_0x5a9d43['map'](_0x213048=>qt(_0x213048,this['_model'])),_0x4555ff=_0x168eaa['is']('range')?_0x400b46:_0x400b46['map'](_0x1cfc8e=>qt(_0x1cfc8e,this['_model']));if(this['_trackingSessionId']&&(_0x582b41['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a7303=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fecde,'accept');return this['forceDefaultExecution'](()=>_0x5a7303(_0x4555ff,_0x14128e,_0x582b41)),null;}_0x4c315a['push'](..._0x4555ff);let _0x510f9b=!0x0;for(const _0x560ab1 of _0x4c315a)if(!this['_rangeIsInLocalUserInsertion'](_0x560ab1)){_0x510f9b=!0x1;break;}if(_0x510f9b&&'always'!==this['_trackFormatChanges']){const _0x36fbc9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fecde,'accept');return this['forceDefaultExecution'](()=>_0x36fbc9(_0x4555ff,_0x14128e,_0x582b41)),null;}const _0x14c687=this['editor']['plugins']['get']('Users')['me'];for(const _0x267f2b of this['getSuggestions']()){const _0x3c9bcc=_0x267f2b['data'];if(_0x267f2b['author']['id']!=_0x14c687['id'])continue;if('formatBlock'!=_0x267f2b['type']||_0x3c9bcc['formatGroupId']!=_0x14128e['formatGroupId'])continue;if(!Qt(_0x267f2b,_0x582b41))continue;const _0x240744=_0x267f2b['subType']==_0x3fecde;for(let _0x2e0ec1=0x0;_0x2e0ec1<_0x4555ff['length'];_0x2e0ec1++){const _0x37f899=_0x4555ff[_0x2e0ec1];for(const _0x5757cb of _0x267f2b['getMarkers']()){const _0x5af619=_0x5757cb['getRange']();if(_0x37f899['isEqual'](_0x5af619)){_0x240744?(_0x4555ff['splice'](_0x2e0ec1,0x1),_0x2e0ec1--):_0x267f2b['removeMarker'](_0x5757cb['name']);break;}}}}if(0x0==_0x4555ff['length'])return null;const _0x5d4312=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fecde,'join');for(const _0x2892d1 of this['getSuggestions']()){const _0x2d4104=_0x2892d1['data'];if(_0x2892d1['author']['id']==_0x14c687['id']&&('formatBlock'==_0x2892d1['type']&&_0x2d4104['formatGroupId']==_0x14128e['formatGroupId']&&_0x2892d1['subType']==_0x3fecde&&Qt(_0x2892d1,_0x582b41)&&(_0x5d4312(_0x2892d1['getRanges'](),_0x4555ff)||_0x5d4312(_0x4555ff,_0x2892d1['getRanges']())))){for(const _0x24ec8a of _0x4555ff)_0x2892d1['addRange'](_0x24ec8a);return _0x2892d1;}}const _0x7f9cc2=_0x48a539(),_0x2e8465=_0x14c687['id'],_0x2205d2='formatBlock:'+_0x3fecde,_0x12c130=this['_setSuggestionData']({'id':_0x7f9cc2,'type':_0x2205d2,'data':_0x14128e,'createdAt':new Date(),'authorId':_0x2e8465,'attributes':_0x582b41});for(const _0x391dd7 of _0x4555ff)this['_addSuggestionMarker'](_0x2205d2,_0x7f9cc2,_0x2e8465,_0x391dd7,T['getMultiRangeId']());return _0x12c130;}['markDeletion'](_0x1448ee,_0x20e9ac=null,_0x3c65a5={}){if(_0x1448ee['isCollapsed'])return null;const _0x5138ed=this['editor']['plugins']['get']('Users')['me'],_0x130390=new _0x5f13a0(_0x1448ee['start'],_0x1448ee['end']);this['_trackingSessionId']&&(_0x3c65a5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14800a,meta:_0x5329ca}of this['_findSuggestions'](_0x130390,'insertion'))if(_0x5329ca['isOwn']&&!_0x5329ca['isNextTo']){if(_0x14800a['isMultiRange']){const _0x5c6d04=_0x14800a['getRanges']()['filter'](_0x30f8af=>'$graveyard'!=_0x30f8af['root']['rootName']);_0x5c6d04['every'](_0x3f0a67=>_0x130390['containsRange'](_0x3f0a67,!0x0))&&_0x14800a['discard']();if(_0x5c6d04['some'](_0x57c0b4=>_0x57c0b4['containsRange'](_0x130390,!0x0))){const _0x36c392=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20e9ac,'accept');return this['forceDefaultExecution'](()=>_0x36c392([_0x130390],null,_0x3c65a5)),null;}}else{const _0x3e9c36=_0x130390['getIntersection'](_0x14800a['getFirstRange']());null!==_0x3e9c36&&_0x14800a['_onDiscard']([_0x3e9c36],null,_0x3c65a5);}}if(_0x130390['detach'](),_0x130390['isCollapsed']||'$graveyard'==_0x130390['root']['rootName'])return null;let _0x5984b4=null,_0x24ea52=_0x130390['start'],_0x66a12e=_0x130390['end'];const _0x2679f2=this['_findSuggestions'](_0x130390,'deletion');for(const {suggestion:_0x5a033c,meta:_0x2cfdbc}of _0x2679f2){const _0x55a7cd=this['_model']['createRange'](_0x24ea52,_0x66a12e);if(_0x2cfdbc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2cfdbc['containsRangeInObject']&&!_0x2cfdbc['isInsideObject'])){if(_0x5a033c['isMultiRange']){if(!Qt(_0x5a033c,_0x3c65a5))continue;let _0x477cc4=!0x0;for(const _0x30b5cd of _0x5a033c['getRanges']()){if(_0x30b5cd['containsRange'](_0x55a7cd,!0x0))return _0x5a033c;_0x55a7cd['containsRange'](_0x30b5cd)||(_0x477cc4=!0x1);}_0x477cc4&&_0x5a033c['discard']();}else{const _0x175a35=_0x5a033c['getFirstRange']();if(_0x175a35['containsRange'](_0x55a7cd,!0x0))return _0x5a033c;if(!Qt(_0x5a033c,_0x3c65a5)){_0x55a7cd['containsRange'](_0x175a35)?_0x5a033c['removeMarkers']():_0x175a35['containsPosition'](_0x24ea52)?_0x24ea52=_0x175a35['end']:_0x175a35['containsPosition'](_0x66a12e)&&(_0x66a12e=_0x175a35['start']);continue;}_0x24ea52=_0x24ea52['isBefore'](_0x175a35['start'])?_0x24ea52:_0x175a35['start'],_0x66a12e=_0x66a12e['isAfter'](_0x175a35['end'])?_0x66a12e:_0x175a35['end'],_0x3c65a5=Object['assign']({},_0x5a033c['attributes']),_0x5984b4?_0x175a35['start']['isBefore'](_0x5984b4['getFirstRange']()['start'])?(_0x5984b4['removeMarkers'](),_0x5984b4=_0x5a033c):_0x5a033c['removeMarkers']():_0x5984b4=_0x5a033c;}}}if(_0x5984b4)return this['_setSuggestionRange'](_0x5984b4,this['_model']['createRange'](_0x24ea52,_0x66a12e)),_0x5984b4;{const _0x384239=_0x48a539(),_0x4c321a=this['_model']['createRange'](_0x24ea52,_0x66a12e),_0x8a49cd=_0x5138ed['id'],_0x430077=_0x20e9ac?'deletion:'+_0x20e9ac:'deletion',_0x546fbb=this['_setSuggestionData']({'id':_0x384239,'type':_0x430077,'createdAt':new Date(),'authorId':_0x8a49cd,'attributes':_0x3c65a5});return this['_addSuggestionMarker'](_0x430077,_0x384239,_0x8a49cd,_0x4c321a),_0x546fbb;}}['markMultiRangeDeletion'](_0xad8bf2,_0x240f41='multi',_0x4a13ab={}){const _0xc90d51=this['editor']['plugins']['get']('Users')['me'],_0x16e854=_0xad8bf2['map'](_0x3e6cc0=>new _0x5f13a0(_0x3e6cc0['start'],_0x3e6cc0['end'])),_0x5133dd=new Set();this['_trackingSessionId']&&(_0x4a13ab['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x309950,meta:_0x34a81d}of this['_findSuggestions'](_0x16e854,'insertion'))_0x34a81d['isOwn']&&!_0x34a81d['isNextTo']&&_0x5133dd['add'](_0x309950);for(const _0x55584a of _0x5133dd)if(_0x55584a['isMultiRange']){const _0x2e81d8=_0x55584a['getRanges']();(!_0x55584a['attributes']||!_0x55584a['attributes']['skipNestingCheck'])&&(_0x2e81d8['every'](_0x1044fe=>_0x16e854['some'](_0x44debb=>_0x44debb['containsRange'](_0x1044fe,!0x0)))&&_0x55584a['discard']());if(_0x16e854['every'](_0x1922ee=>_0x2e81d8['some'](_0x2c5e4a=>_0x2c5e4a['containsRange'](_0x1922ee,!0x0)))){const _0x67fb9e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x240f41,'accept');return this['forceDefaultExecution'](()=>_0x67fb9e(_0xad8bf2,null,_0x4a13ab)),null;}}else{const _0x213a99=_0x55584a['getFirstRange']();_0x16e854['some'](_0xda4fc1=>_0xda4fc1['containsRange'](_0x213a99,!0x0))&&_0x55584a['discard']();if(_0x16e854['every'](_0xdfb27=>_0x213a99['containsRange'](_0xdfb27,!0x0))){const _0x301f35=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x240f41,'accept');return this['forceDefaultExecution'](()=>_0x301f35(_0x16e854,null,_0x4a13ab)),null;}}const _0x117718=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x240f41,'join');let _0x3abbef=null;for(const _0x6cd1bd of this['getSuggestions']())if(_0x6cd1bd['author']['id']==_0xc90d51['id']&&_0x6cd1bd['isInContent']&&'deletion'==_0x6cd1bd['type']&&_0x6cd1bd['subType']==_0x240f41&&Qt(_0x6cd1bd,_0x4a13ab)&&(_0x117718(_0x6cd1bd['getRanges'](),_0x16e854)||_0x117718(_0x16e854,_0x6cd1bd['getRanges']()))){if(_0x3abbef){if(_0x6cd1bd['commentThread']&&_0x6cd1bd['commentThread']['length'])continue;for(const _0x3973e1 of _0x6cd1bd['getRanges']())_0x3abbef['isIntersectingWithRange'](_0x3973e1)||_0x3abbef['addRange'](_0x3973e1);_0x6cd1bd['removeMarkers']();}else{_0x3abbef=_0x6cd1bd;for(const _0x2be600 of _0x16e854)_0x6cd1bd['isIntersectingWithRange'](_0x2be600)||_0x6cd1bd['addRange'](_0x2be600);}}if(_0x3abbef)return _0x3abbef;_0x5133dd['clear']();for(const {suggestion:_0x368736,meta:_0x80b4e4}of this['_findSuggestions'](_0x16e854,'deletion'))_0x80b4e4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x80b4e4['containsRangeInObject']&&!_0x80b4e4['isInsideObject'])&&Qt(_0x368736,_0x4a13ab)&&_0x5133dd['add'](_0x368736);for(const _0x26bacc of _0x5133dd){const _0x400ded=_0x26bacc['getRanges']();if(!_0x4a13ab||!_0x4a13ab['skipNestingCheck']){if(_0x16e854['every'](_0x5c6cbb=>_0x400ded['some'](_0x4d2982=>_0x4d2982['containsRange'](_0x5c6cbb,!0x0))))return _0x26bacc;}(!_0x26bacc['attributes']||!_0x26bacc['attributes']['skipNestingCheck'])&&(_0x400ded['every'](_0x1c9fd3=>_0x16e854['some'](_0x51ef7b=>_0x51ef7b['containsRange'](_0x1c9fd3,!0x0)))&&_0x26bacc['discard']());}const _0x4262e3=_0x48a539(),_0x2d5e33=_0xc90d51['id'],_0x17028e='deletion:'+_0x240f41,_0x272278=this['_setSuggestionData']({'id':_0x4262e3,'type':_0x17028e,'createdAt':new Date(),'authorId':_0x2d5e33,'attributes':_0x4a13ab});for(const _0x128927 of _0x16e854)_0x128927['detach'](),_0x128927['isCollapsed']||'$graveyard'==_0x128927['root']['rootName']||this['_addSuggestionMarker'](_0x17028e,_0x4262e3,_0x2d5e33,_0x128927,T['getMultiRangeId']());return _0x272278;}['markAttributeChange'](_0x28d90e,_0x1ad243,_0x2467ee,_0xd06d91,_0x46f95a){if(_0x28d90e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x20f111=this['editor']['plugins']['get']('Users')['me']['id'],_0x29831f=Array['from'](this['_suggestions']['values']())['filter'](_0x2bf49e=>'attribute'==_0x2bf49e['type']&&_0x2bf49e['data']['key']==_0x1ad243&&_0x2bf49e['isIntersectingWithRange'](_0x28d90e));if(this['_trackingSessionId']&&(_0x46f95a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4133b8=this['_findSuggestions'](_0x28d90e,'insertion')['filter'](({meta:_0x24223a})=>_0x24223a['isOwn']&&!_0x24223a['isInsideObject']&&!_0x24223a['isNextTo'])['map'](({suggestion:_0x4b7a42})=>_0x4b7a42);_0x29831f['unshift'](..._0x4133b8);}const _0x5d9bc7=new Map([[_0x28d90e,_0x2467ee]]);for(const _0x441d37 of _0x29831f){const _0x23876e='attribute'==_0x441d37['type']?_0x441d37['data']['oldValue']:void 0x0,_0x36faae=_0x441d37['getFirstRange'](),_0x203d60=Array['from'](_0x5d9bc7['keys']())['find'](_0x367fe6=>_0x367fe6['isIntersecting'](_0x36faae));if(!_0x203d60)continue;const _0x2aec39=_0x203d60['getDifference'](_0x36faae);this['_isBlockAttribute'](_0x1ad243)&&'insertion'==_0x441d37['type']&&0x0!=_0x2aec39['length']||(_0x5d9bc7['delete'](_0x203d60),_0x2aec39['forEach'](_0x2863e4=>{_0x5d9bc7['set'](_0x2863e4,_0x2467ee);}),'insertion'!=_0x441d37['type']&&_0x23876e!=_0xd06d91&&_0x5d9bc7['set'](_0x203d60['getIntersection'](_0x36faae),_0x23876e));}const _0x525e5e=[];for(const [_0x104bc9,_0x24eb6f]of _0x5d9bc7){const _0xeb9a7b=_0x48a539(),_0xd27087={'key':_0x1ad243,'oldValue':_0x24eb6f,'newValue':_0xd06d91};_0x1ad243['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':_0x1ad243});const _0x5798a5=('attribute:'+(_0x1ad243+'|'+Lt({'newValue':_0xd06d91})))['substring'](0x0,0x3c),_0x5dae6f=this['_setSuggestionData']({'id':_0xeb9a7b,'type':_0x5798a5,'data':_0xd27087,'createdAt':new Date(),'authorId':_0x20f111,'attributes':_0x46f95a});_0x525e5e['push'](_0x5dae6f),this['_addSuggestionMarker'](_0x5798a5,_0xeb9a7b,_0x20f111,_0x104bc9);}return _0x525e5e;}['enableDefaultAttributesIntegration'](_0x3a27e3){this['enableCommand'](_0x3a27e3,(_0x2f8547,..._0x35e38c)=>{this['recordAttributeChanges'](()=>{_0x2f8547(..._0x35e38c);});});}['registerBlockAttribute'](_0x54a3a5){this['_blockAttributeKeys']['add'](_0x54a3a5);}['registerInlineAttribute'](_0x136a83){this['_inlineAttributeKeys']['add'](_0x136a83);}['startTrackingSession'](_0x48c3f9){return this['_trackingSessionId']=void 0x0!==_0x48c3f9?_0x48c3f9:_0x48a539(),this['_trackingSessionId'];}['_getAttributeKey'](_0x334a48){return'attribute'==_0x334a48['type']?_0x334a48['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x40ba28,_0x31eabf){const _0xe36e9d=_0x40ba28['getFirstMarker']();this['_model']['change'](_0x24ec10=>{_0x24ec10['updateMarker'](_0xe36e9d,{'range':_0x31eabf});});}['_addThreadToSuggestion'](_0x5de0b6){const _0x77200=_0x5de0b6['id'],_0x1d74c9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x77200)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1d74c9,'threadId':_0x77200,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4fba2f=this['_commentsRepository']['getCommentThread'](_0x77200);_0x4fba2f['unbind']('isRemovable'),_0x4fba2f['isRemovable']=!0x1,_0x5de0b6['commentThread']=_0x4fba2f;}['_checkSuggestionCorrectness'](_0x490719,_0x450e72,_0x1cb86e,_0x4be7b0){if(_0x490719['type']!=_0x450e72||_0x490719['subType']!=_0x1cb86e||_0x490719['creator']['id']!=_0x4be7b0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x223d51('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x117e6d,_0x186091){const _0x16efbb=_0x117e6d['getFirstRange']();if(_0x186091['isEqual'](_0x16efbb))_0x117e6d['removeMarkers']();else{if(_0x16efbb['containsRange'](_0x186091)){const _0x181107=this['_model']['createPositionAt'](_0x186091['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x117e6d,this['_model']['createRange'](_0x16efbb['start'],_0x181107));const _0x4c2c6f=_0x48a539(),_0x152844=_0x117e6d['creator']['id'],_0x174a0e=_0x117e6d['type']+':'+_0x117e6d['subType'];this['_setSuggestionData']({'id':_0x4c2c6f,'type':_0x174a0e,'createdAt':new Date(),'authorId':_0x152844,'data':_0x117e6d['data'],'attributes':_0x117e6d['attributes']});const _0x278f41=this['_model']['createPositionAt'](_0x186091['end']['parent'],'after'),_0xa26226=this['_model']['createRange'](_0x278f41,_0x16efbb['end']);this['_addSuggestionMarker'](_0x174a0e,_0x4c2c6f,_0x152844,_0xa26226);}else{if(_0x16efbb['containsPosition'](_0x186091['start'])){const _0x135252=this['_model']['createPositionAt'](_0x186091['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x117e6d,this['_model']['createRange'](_0x16efbb['start'],_0x135252));}else{const _0x21e8c3=this['_model']['createPositionAt'](_0x186091['end']['parent'],'after');this['_setSuggestionRange'](_0x117e6d,this['_model']['createRange'](_0x21e8c3,_0x16efbb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x19824a){for(const {suggestion:_0x575778,meta:_0x26d252}of this['_findSuggestions'](_0x19824a,'insertion')){if(!_0x26d252['isOwn'])continue;const _0x33d8be=_0x575778['getRanges']();for(const _0x6ee387 of _0x33d8be)if(!_0x19824a['getDifference'](_0x6ee387)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xcbe98b){const _0x1e1d18=this['editor']['plugins']['get']('Users')['getUser'](_0xcbe98b);if(!_0x1e1d18)throw new _0x223d51('track-changes-user-not-found',this);return _0x1e1d18;}['_getExternalAuthor'](_0x3ef13d){const _0x2a52bc=this['editor']['plugins']['get']('Users'),_0x1650ce=_0x439086('external:'+_0x3ef13d),_0x35c1c6=_0x2a52bc['getUser'](_0x1650ce);return _0x35c1c6||_0x2a52bc['addUser']({'id':_0x1650ce,'name':_0x3ef13d});}['_createSuggestion'](_0x28e8ff,_0x423b67,_0x44272a,_0x22900b,_0x28160f,_0x37135e){const _0x3e4f91=this['_getAuthorFromId'](_0x22900b),_0x5872a4=this['_suggestionFactory']['buildSuggestion'](_0x28e8ff,_0x423b67,_0x44272a,_0x3e4f91,_0x28160f,_0x34de53=>{this['_updateSuggestionData'](_0x44272a,{'attributes':_0x34de53});const _0x24eb24=this['getSuggestion'](_0x44272a);this['_joinWithAdjacentSuggestions'](new Set([_0x24eb24])),this['_refreshSuggestionsChain'](new Set([_0x24eb24]));},_0x37135e);return this['listenTo'](_0x5872a4,'accept',()=>{this['_updateSuggestionData'](_0x44272a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5872a4,'discard',()=>{this['_updateSuggestionData'](_0x44272a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x44272a,_0x5872a4),this['_suggestionState']['set'](_0x5872a4,'notReady'),_0x5872a4;}['_splitMarkerName'](_0x29e97c){const _0x553821=_0x29e97c['split'](':');return{'group':_0x553821[0x0],'type':_0x553821[0x1],'subType':_0x553821['length']>=0x5?_0x553821[0x2]:null,'id':_0x553821['length']<0x5?_0x553821[0x2]:_0x553821[0x3],'authorId':_0x553821['length']<0x5?_0x553821[0x3]:_0x553821[0x4],'markerCount':0x6==_0x553821['length']?_0x553821[0x5]:null};}['_breakSuggestionMarker'](_0x951fcd,_0x23908b,_0x17bae7){const _0x2507e0=_0x951fcd['getFirstRange'](),_0x4bf46c=_0x2507e0['start'],_0x37beb6=_0x2507e0['end'];this['_setSuggestionRange'](_0x951fcd,this['_model']['createRange'](_0x4bf46c,_0x23908b));const _0x414d15=_0x48a539(),_0x3bfe32=_0x951fcd['creator']['id'],_0x6bc49b=_0x951fcd['type']+(_0x951fcd['subType']?':'+_0x951fcd['subType']:'');this['_setSuggestionData']({'id':_0x414d15,'type':_0x6bc49b,'createdAt':new Date(),'authorId':_0x3bfe32,'originalSuggestionId':_0x951fcd['_originalSuggestionId']||_0x951fcd['id'],'attributes':_0x951fcd['attributes'],'data':_0x951fcd['data']});const _0x125338=this['_getAttributeKey'](_0x951fcd);('formatBlock'==_0x951fcd['type']||_0x125338&&this['_isBlockAttribute'](_0x125338))&&(_0x17bae7=this['_model']['createPositionBefore'](_0x17bae7['parent'])),this['_addSuggestionMarker'](_0x6bc49b,_0x414d15,_0x3bfe32,this['_model']['createRange'](_0x17bae7,_0x37beb6));}['_findSuggestions'](_0x555ace,_0x5c2047=null){const _0x3499b0=[],_0x104393=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x555ace)||(_0x555ace=[_0x555ace]);for(const _0x1fc57d of this['getSuggestions']()){if(!_0x1fc57d['isInContent'])continue;if(_0x5c2047&&_0x1fc57d['type']!=_0x5c2047)continue;let _0x2eb613=!0x1;for(const _0x5c1b65 of _0x1fc57d['getRanges']()){for(const _0x23be27 of _0x555ace){const _0x59e35f=_0x23be27['start']['isEqual'](_0x5c1b65['end'])||_0x23be27['end']['isEqual'](_0x5c1b65['start']);if(_0x59e35f||_0x23be27['getIntersection'](_0x5c1b65)){const _0x4937e8=_0x23be27['containsRange'](_0x5c1b65)&&Ft(this['_model']['schema'],_0x5c1b65['start'],_0x23be27),_0x103f19=_0x5c1b65['containsRange'](_0x23be27)&&Ft(this['_model']['schema'],_0x23be27['start'],_0x5c1b65);_0x3499b0['push']({'suggestion':_0x1fc57d,'meta':{'isOwn':_0x104393==_0x1fc57d['author'],'isNextTo':_0x59e35f,'isInsideObject':_0x4937e8,'containsRangeInObject':_0x103f19}}),_0x2eb613=!0x0;break;}}if(_0x2eb613)break;}}return _0x3499b0;}['_addSuggestionMarker'](_0x5ebfd7,_0x3c350a,_0x4f8619,_0x191aa7,_0x3d9ff1){this['_model']['change'](_0x5ad0f7=>{let _0x178c97='suggestion:'+_0x5ebfd7+':'+_0x3c350a+':'+_0x4f8619;_0x3d9ff1&&(_0x178c97=_0x178c97+':'+_0x3d9ff1),_0x5ad0f7['addMarker'](_0x178c97,{'range':_0x191aa7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x36d51c){const _0x41efe0=_0x36d51c['previous'],_0x4d1013=_0x36d51c['next'];_0x36d51c['previous']=null,_0x36d51c['next']=null,null!=_0x41efe0&&_0x41efe0['next']==_0x36d51c&&(_0x41efe0['next']=_0x4d1013),null!=_0x4d1013&&_0x4d1013['previous']==_0x36d51c&&(_0x4d1013['previous']=_0x41efe0),'ready'==this['_suggestionState']['get'](_0x36d51c)&&(this['_suggestionState']['set'](_0x36d51c,'removed'),this['fire']('suggestionUnloaded',_0x36d51c,_0x41efe0,_0x4d1013));}['_setSuggestionData'](_0x28d7bc){const _0x7b4f27=_0x28d7bc['id'],_0x277980=this['addSuggestionData'](_0x28d7bc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x55721e=this['editor']['plugins']['get']('PendingActions'),_0x5cc37e=_0x277980['hasComments'],_0x8d5f=_0x277980['subType']?_0x277980['type']+':'+_0x277980['subType']:_0x277980['type'],_0x3d7ccf=this['editor']['locale'],_0x4ae843=_0x55721e['add'](o(_0x3d7ccf,'PENDING_ACTION_SUGGESTION')),_0x2e9917={'id':_0x7b4f27,'type':_0x8d5f,'hasComments':_0x5cc37e,'data':_0x28d7bc['data']||null,'originalSuggestionId':_0x28d7bc['originalSuggestionId']||null,'attributes':_0x277980['attributes']};this['_adapter']['addSuggestion'](_0x2e9917)['then'](_0x3bbb99=>{_0x277980['_saved']=!0x0,_0x55721e['remove'](_0x4ae843),_0x3bbb99&&_0x3bbb99['createdAt']&&(this['_suggestions']['get'](_0x7b4f27)['createdAt']=_0x3bbb99['createdAt']);})['catch'](_0x4f5fc0=>{throw _0x65020d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x277980['discard']();}),_0x277980['stopListening'](),this['_suggestions']['delete'](_0x277980['id']),this['_suggestionState']['delete'](_0x277980),_0x4f5fc0;});}return _0x277980;}['_isBlockAttribute'](_0xe129cd){return this['_blockAttributeKeys']['has'](_0xe129cd);}['_updateSuggestionData'](_0x4ef66c,_0x17c4c2){const _0x48d8d9=this['editor']['plugins']['get']('PendingActions'),_0x3f3db2=this['getSuggestion'](_0x4ef66c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3f3db2['_saved']){const _0x76b575=_0x48d8d9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4ef66c,_0x17c4c2)['then'](()=>{_0x48d8d9['remove'](_0x76b575);});}else _0x3f3db2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4ef66c,_0x17c4c2);});}}['_getSuggestionData'](_0x2a0a16){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x223d51('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2a0a16);}['_handleNewSuggestionMarker'](_0x33ccb9){const {id:_0x136e0f,type:_0x194d50,subType:_0x307ab6,authorId:_0x116765}=this['_splitMarkerName'](_0x33ccb9),_0x445e78=this['_suggestions']['get'](_0x136e0f)||this['_createSuggestion'](_0x194d50,_0x307ab6,_0x136e0f,_0x116765,{});switch(this['_checkSuggestionCorrectness'](_0x445e78,_0x194d50,_0x307ab6,_0x116765),this['_suggestionState']['get'](_0x445e78)){case'notReady':this['_getSuggestionData'](_0x136e0f)['then'](_0x26fd12=>{let _0x3d2005=Promise['resolve']();_0x26fd12['hasComments']&&(_0x3d2005=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x136e0f})),_0x3d2005['then'](()=>{this['addSuggestionData'](_0x26fd12)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x445e78,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x136e0f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x445e78,'ready'),this['fire']('suggestionLoaded',_0x445e78);break;case'ready':this['fire']('suggestionChanged',_0x445e78);}return _0x445e78['addMarkerName'](_0x33ccb9),_0x445e78;}['_refreshSuggestionsChain'](_0x57d120){const _0xa80f00=Array['from'](_0x57d120),_0x3f4075=_0xa80f00['filter'](_0x46cb52=>'attribute'==_0x46cb52['type']);this['_refreshAttributeSuggestionsChain'](_0x3f4075);const _0x3f195f=_0xa80f00['filter'](_0x340606=>!_0x340606['isMultiRange']&&'attribute'!=_0x340606['type']),_0x5ecb2d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2486b9=>!_0x2486b9['isMultiRange']&&'attribute'!=_0x2486b9['type']),_0x514944=_0x5ecb2d['filter'](_0x1334b5=>!_0x57d120['has'](_0x1334b5)),_0x123e85=new Map(_0x5ecb2d['map'](_0x9860e=>[_0x9860e,this['_suggestionFactory']['getSuggestionCallback'](_0x9860e['type'],_0x9860e['subType'],'chain')])),_0x34cbfc=new Map(_0x5ecb2d['map'](_0x3df746=>[_0x3df746,_0x3df746['getFirstRange']()])),_0x1422a0=new Set(),_0x5f6f2f=new Set();for(let _0x2653b5=0x0;_0x2653b5<_0x3f195f['length'];_0x2653b5++)_0x4fbf9f(_0x3f195f[_0x2653b5],_0x3f195f,_0x2653b5+0x1);for(let _0x15d736=0x0;_0x15d736<_0x3f195f['length'];_0x15d736++)_0x4fbf9f(_0x3f195f[_0x15d736],_0x514944,0x0);const _0x3d7279=new Set();for(let _0xdfdad8=0x0;_0xdfdad8<_0x3f195f['length'];_0xdfdad8++){const _0x496c01=_0x3f195f[_0xdfdad8];!_0x5f6f2f['has'](_0x496c01)&&_0x496c01['previous']&&(_0x3d7279['add'](_0x496c01['previous']),_0x496c01['previous']['next']===_0x496c01&&(_0x496c01['previous']['next']=null),_0x496c01['previous']=null),!_0x1422a0['has'](_0x496c01)&&_0x496c01['next']&&(_0x3d7279['add'](_0x496c01['next']),_0x496c01['next']['previous']===_0x496c01&&(_0x496c01['next']['previous']=null),_0x496c01['next']=null);}function _0x4fbf9f(_0x4a2b23,_0x115701,_0x5ebfac){for(let _0x798d40=_0x5ebfac;_0x798d40<_0x115701['length'];_0x798d40++){const _0x4bcc11=_0x24a97b(_0x4a2b23,_0x115701[_0x798d40]);_0x4bcc11&&(_0x4bcc11[0x0]['next']=_0x4bcc11[0x1],_0x4bcc11[0x1]['previous']=_0x4bcc11[0x0],_0x1422a0['add'](_0x4bcc11[0x0]),_0x5f6f2f['add'](_0x4bcc11[0x1]));}}function _0x24a97b(_0x5b1e3e,_0x38e2e9){if(_0x5b1e3e['author']['id']!==_0x38e2e9['author']['id'])return null;const _0x4f9c10=_0x123e85['get'](_0x5b1e3e)(_0x5b1e3e,_0x38e2e9,_0x34cbfc['get'](_0x5b1e3e),_0x34cbfc['get'](_0x38e2e9));if(!_0x4f9c10)return null;return _0x123e85['get'](_0x38e2e9)(_0x5b1e3e,_0x38e2e9,_0x34cbfc['get'](_0x5b1e3e),_0x34cbfc['get'](_0x38e2e9))?_0x4f9c10[0x1]['commentThread']&&_0x4f9c10[0x1]['commentThread']['length']?null:_0x4f9c10:null;}_0x3d7279['size']&&this['_refreshSuggestionsChain'](_0x3d7279);}['_refreshAttributeSuggestionsChain'](_0x2968e8){if(0x0==_0x2968e8['length'])return;const _0x58f667=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50926e=>'attribute'==_0x50926e['type']&&_0x50926e['_isDataLoaded']),_0xdffccd=[],_0x2557ab=new Map();for(const _0x62a896 of _0x58f667){const _0x148738=_0x439086(_0x62a896['attributes']);_0x2557ab['has'](_0x148738)||(_0x2557ab['set'](_0x148738,_0xdffccd['length']),_0xdffccd['push']([]));const _0x2ce732=_0x2557ab['get'](_0x148738);_0xdffccd[_0x2ce732]['push'](_0x62a896);}!(function(){_0xdffccd['sort']((_0x4564e7,_0x14f07e)=>{const _0x25787c=_0x4564e7[0x0]['createdAt'],_0x32116c=_0x14f07e[0x0]['createdAt'];return _0x25787c==_0x32116c?_0x4564e7[0x0]['attributes']['groupId']<_0x14f07e[0x0]['attributes']['groupId']?-0x1:0x1:_0x25787c<_0x32116c?-0x1:0x1;});for(const _0x5a9fc6 of _0xdffccd)_0x5a9fc6['sort']((_0x11c9c8,_0x30e6e4)=>_0x11c9c8['id']<_0x30e6e4['id']?-0x1:0x1);}());for(let _0x39898d=0x0;_0x39898d<_0xdffccd['length'];_0x39898d++){if(0x0==_0xdffccd[_0x39898d]['length'])continue;const _0x57104d=[];for(let _0x19c474=_0x39898d+0x1;_0x19c474<_0xdffccd['length'];_0x19c474++)0x0!=_0xdffccd[_0x19c474]['length']&&_0x192b23(_0xdffccd[_0x39898d],_0xdffccd[_0x19c474])&&_0x57104d['push'](_0x19c474);for(const _0x3f0633 of _0x57104d)_0xdffccd[_0x39898d]=_0xdffccd[_0x39898d]['concat'](_0xdffccd[_0x3f0633]),_0xdffccd[_0x3f0633]=[];}for(const _0x2cb1cf of _0xdffccd)for(let _0x344cb4=0x0;_0x344cb4<_0x2cb1cf['length'];_0x344cb4++){const _0x5bdcc7=_0x2cb1cf[_0x344cb4+0x1]||null;_0x2cb1cf[_0x344cb4]['next']!==_0x5bdcc7&&(_0x2cb1cf[_0x344cb4]['next']=_0x5bdcc7);}for(const _0xda70ee of _0xdffccd)for(let _0x438794=0x0;_0x438794<_0xda70ee['length'];_0x438794++){const _0x161446=_0xda70ee[_0x438794-0x1]||null;_0xda70ee[_0x438794]['previous']!==_0x161446&&(_0xda70ee[_0x438794]['previous']=_0x161446);}function _0x192b23(_0x5a5552,_0xe26598){if(_0x5a5552[0x0]['attributes']['groupId']!==_0xe26598[0x0]['attributes']['groupId']&&_0x5a5552[0x0]['author']!==_0xe26598[0x0]['author'])return!0x1;if(!function(_0x276d05,_0x4d8584){if(!_0x276d05['hasComments']&&!_0x4d8584['hasComments'])return!0x0;if(_0x276d05['hasComments']&&_0x4d8584['hasComments'])return!0x1;if(_0x276d05['hasComments']&&_0x4d8584['createdAt']<_0x276d05['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4d8584['hasComments']&&_0x276d05['createdAt']<_0x4d8584['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a5552[0x0],_0xe26598[0x0]))return!0x1;const _0x457137=Ut(_0x5a5552[0x0]['attributes'],['groupId','trackingSessionId']),_0x4e0c98=Ut(_0xe26598[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2d5d33(_0x457137,_0x4e0c98))return!0x1;if(_0x5a5552[0x0]['attributes']['groupId']==_0xe26598[0x0]['attributes']['groupId'])return!0x0;if(_0x5a5552[0x0]['attributes']['trackingSessionId']!==_0xe26598[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5a5552['every'](_0x5de629=>_0xe26598['some'](_0x250ae0=>_0x5de629['getFirstRange']()['isEqual'](_0x250ae0['getFirstRange']())))&&_0xe26598['every'](_0x4cdd57=>_0x5a5552['some'](_0x101382=>_0x4cdd57['getFirstRange']()['isEqual'](_0x101382['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1b147b){const _0x2f85e1=Array['from'](_0x1b147b),_0x57c9f6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4b8ac6=_0x57c9f6['filter'](_0x4b7fd1=>!_0x1b147b['has'](_0x4b7fd1)),_0x208965=new Map(_0x2f85e1['map'](_0x1dd382=>[_0x1dd382,this['_suggestionFactory']['getSuggestionCallback'](_0x1dd382['type'],_0x1dd382['subType'],'join')])),_0x3190e5=new Map(_0x57c9f6['map'](_0x542da5=>[_0x542da5,_0x542da5['getRanges']()]));for(let _0x13621a=0x0;_0x13621a<_0x2f85e1['length'];_0x13621a++){if(_0x32cc87(this,_0x2f85e1[_0x13621a],_0x2f85e1,_0x13621a+0x1))return!0x0;}for(let _0x1a1767=0x0;_0x1a1767<_0x2f85e1['length'];_0x1a1767++){if(_0x32cc87(this,_0x2f85e1[_0x1a1767],_0x4b8ac6,0x0))return!0x0;}return!0x1;function _0x32cc87(_0x25a2d9,_0x184d31,_0x2697db,_0x130e51){for(let _0x3fe659=_0x130e51;_0x3fe659<_0x2697db['length'];_0x3fe659++){const _0x3a6c43=_0x2697db[_0x3fe659];if(_0x3a6c43['type']!==_0x184d31['type']||_0x3a6c43['author']['id']!==_0x184d31['author']['id']||_0x3a6c43['subType']!==_0x184d31['subType'])continue;if(!Wt(_0x184d31,_0x3a6c43))continue;if('attribute'==_0x184d31['type']&&_0x184d31['data']['oldValue']!=_0x3a6c43['data']['oldValue'])continue;if('attribute'==_0x184d31['type']&&_0x25a2d9['_isBlockAttribute'](_0x184d31['data']['key']))continue;if('formatBlock'==_0x184d31['type']){const _0x11dcdc=_0x25a2d9['editor']['model'],_0x38df69=_0x184d31['getContainedElement']();if(_0x38df69&&(_0x11dcdc['schema']['isObject'](_0x38df69)||_0x11dcdc['schema']['isLimit'](_0x38df69)))continue;}const _0x1ad324=_0x208965['get'](_0x184d31),_0x24acd6=_0x3190e5['get'](_0x184d31),_0x2ba347=_0x3190e5['get'](_0x3a6c43),_0x20d3ba=_0x184d31['commentThread']&&_0x184d31['commentThread']['length'],_0x299c1a=_0x3a6c43['commentThread']&&_0x3a6c43['commentThread']['length'];if(!_0x20d3ba&&_0x1ad324(_0x2ba347,_0x24acd6))return _0x25a2d9['_joinSuggestions'](_0x3a6c43,_0x184d31),_0x3190e5['delete'](_0x184d31),!0x0;if(!_0x299c1a&&_0x1ad324(_0x24acd6,_0x2ba347))return _0x25a2d9['_joinSuggestions'](_0x184d31,_0x3a6c43),_0x3190e5['delete'](_0x3a6c43),!0x0;}return!0x1;}}['_joinSuggestions'](_0x184599,_0x4e3327){if(_0x184599['isMultiRange']){for(const _0x23ad52 of _0x4e3327['getRanges']())_0x184599['addRange'](_0x23ad52);}else{const _0x333747=_0x4e3327['getFirstRange']()['end'];this['_setSuggestionRange'](_0x184599,this['_model']['createRange'](_0x184599['getFirstRange']()['start'],_0x333747));}_0x4e3327['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5f4e7f,_0x2554b7,_0x59fe7e){const _0x2f8763=_0x5f4e7f['startsWith']('format')||_0x5f4e7f['startsWith']('attribute')?'FORMATTING':_0x5f4e7f['toUpperCase']();return o(this['editor']['locale'],_0x2554b7+'_'+_0x2f8763+'_SUGGESTION_ANNOUNCEMENT',_0x59fe7e);}['_initAriaMarkerChangeAnnouncements'](){const _0x52e255=this['editor'];if(!_0x52e255['ui'])return;const {ariaLiveAnnouncer:_0x4cf820}=_0x52e255['ui'];_0x329e8d(this['_model'],({left:_0x18b9a8,entered:_0x5dc295})=>{for(const _0x72a523 of _0x18b9a8){const {group:_0x51efe7,type:_0x1d0356}=this['_splitMarkerName'](_0x72a523['name']);if('suggestion'===_0x51efe7){_0x4cf820['announce'](this['_getMarkerAnnouncementText'](_0x1d0356,'LEAVE'));break;}}for(const _0x260203 of _0x5dc295){const {group:_0x2f0039,type:_0x2998ad}=this['_splitMarkerName'](_0x260203['name']);if('suggestion'===_0x2f0039){_0x4cf820['announce'](this['_getMarkerAnnouncementText'](_0x2998ad,'ENTER',_0x2a7e57(_0x2b8b03)));break;}}});}['_processAttributeChanges'](_0x238922){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf45e87=this['editor'],_0x38ac11=_0xf45e87['model']['document']['differ']['getChanges']();if(0x0==_0x38ac11['length'])return!0x1;const _0x5f09c4=[],_0x572a80=_0x38ac11['filter'](_0x1bf9a1=>'attribute'==_0x1bf9a1['type']),_0x25d323=_0x38ac11['filter'](_0x42282e=>'insert'==_0x42282e['type']&&'$text'!=_0x42282e['name']),_0x59d668=_0x38ac11['filter'](_0x33cd5e=>'remove'==_0x33cd5e['type']&&'$text'!=_0x33cd5e['name']);for(const _0x41677e of _0x572a80)_0x5f09c4['push']({'key':_0x41677e['attributeKey'],'newValue':_0x41677e['attributeNewValue'],'oldValue':_0x41677e['attributeOldValue'],'range':Ht(_0x41677e['range'],_0xf45e87['model'])});for(const _0x2f25e2 of _0x25d323){const _0x397773=_0x59d668['find'](_0x549f02=>_0x549f02['position']['isEqual'](_0x2f25e2['position']));_0x397773&&_0x5f09c4['push']({'key':m,'newValue':_0x2f25e2['name'],'oldValue':_0x397773['name'],'range':_0xf45e87['model']['createRangeOn'](_0x2f25e2['position']['nodeAfter'])});}return 0x0!=_0x5f09c4['length']&&this['_reduceExistingSuggestions'](_0x238922,_0x5f09c4);}['_processAttributeSuggestions'](_0x4d4d99){let _0x272508=!0x1;const _0x315592=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11d4a7=>_0x11d4a7['data']['newRange']&&_0x11d4a7['name']['startsWith']('suggestion:attribute:'));for(const _0x13a1f8 of _0x315592){const {subType:_0x3d2b30,id:_0x2cab41}=this['_splitMarkerName'](_0x13a1f8['name']),_0x49f00e=_0x3d2b30['split']('|')[0x0];for(const _0x227674 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x227674['id']!=_0x2cab41&&'attribute'==_0x227674['type']&&_0x227674['data']&&_0x227674['data']['key']==_0x49f00e&&_0x227674['getFirstRange']()['isIntersecting'](_0x13a1f8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x227674,_0x13a1f8['data']['newRange'],_0x4d4d99),_0x272508=!0x0);}return _0x272508;}['recordAttributeChanges'](_0x1f28fb){this['_recordAttributeSuggestions']=!0x0,_0x1f28fb();}['_isRegisteredAttribute'](_0x1e189b){const _0x54a632=this['_isBlockAttribute'](_0x1e189b),_0x3c7bea=this['_inlineAttributeKeys']['has'](_0x1e189b);return _0x54a632||_0x3c7bea;}['_reduceExistingSuggestions'](_0x1508ac,_0x5a272d){if(0x0==_0x5a272d['length'])return!0x1;let _0x325b94=!0x1;for(const _0x28092d of _0x5a272d){const _0x482a36=this['_findSuggestions'](_0x28092d['range'],'attribute')['filter'](_0x160084=>!_0x160084['meta']['isNextTo'])['map'](_0x2408eb=>_0x2408eb['suggestion']),_0x25a9e1=_0x439086({'newValue':_0x28092d['newValue']});_0x482a36['filter'](_0x154feb=>{const [_0x2bc338,_0x1b0ae6]=_0x154feb['subType']['split']('|');return _0x2bc338==_0x28092d['key']&&_0x1b0ae6!=_0x25a9e1;})['forEach'](_0x28ff52=>{this['_reduceSuggestionAttributeRange'](_0x28ff52,_0x28092d['range'],_0x1508ac),_0x325b94=!0x0;});}return _0x325b94;}['_reduceSuggestionAttributeRange'](_0x52be48,_0x4c3687,_0x35dfb0){const _0x58d475=_0x52be48['getFirstRange']()['getDifference'](_0x4c3687);0x0!==_0x58d475['length']?0x1!==_0x58d475['length']?this['_breakSuggestionMarker'](_0x52be48,_0x4c3687['start'],_0x4c3687['end']):this['_setSuggestionRange'](_0x52be48,_0x58d475[0x0]):_0x35dfb0['removeMarker'](_0x52be48['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x246151){this['_editor']=_0x246151,this['_model']=_0x246151['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x34c06a,_0x531efc,_0x1d820b,_0x2b8983,_0xd49397,_0x12ab4d,_0xc80e6){return new T(this['_model'],{'type':_0x34c06a,'subType':_0x531efc,'id':_0x1d820b,'originalSuggestionId':_0xc80e6,'author':_0x2b8983,'creator':_0x2b8983,'attributes':_0xd49397,'onAttributesChange':_0x12ab4d,'onAccept':(..._0x151df5)=>this['getSuggestionCallback'](_0x34c06a,_0x531efc,'accept')(..._0x151df5),'onDiscard':(..._0x1446a5)=>this['getSuggestionCallback'](_0x34c06a,_0x531efc,'discard')(..._0x1446a5)});}['registerCustomCallback'](_0x57dca9,_0x2e7390,_0x2279be,_0x33987d){const _0x4ada12=_0x57dca9+':'+_0x2e7390+':'+_0x2279be;this['_customCallbacks']['set'](_0x4ada12,_0x33987d);}['getSuggestionCallback'](_0xa287cf,_0xbf8c23,_0x2fda77){const _0x122b10=_0xa287cf+':'+_0xbf8c23+':'+_0x2fda77;return this['_customCallbacks']['get'](_0x122b10)||this['_defaultCallbacks']['get'](_0xa287cf+':'+_0x2fda77);}['_registerDefaultCallbacks'](){const _0x35ff04=()=>!0x1,_0xf4b41e=_0x3ff254=>{_0x3ff254['sort']((_0x21684e,_0x14015d)=>_0x21684e['start']['isBefore'](_0x14015d['start'])?0x1:-0x1),this['_model']['change'](_0x470aca=>{for(const _0x3ba744 of _0x3ff254){let _0x4c6ef6;_0x4c6ef6=_0x3ba744['end']['isAtEnd']&&_0x3ba744['end']['parent']==_0x3ba744['start']['nodeAfter']?_0x470aca['createSelection'](_0x3ba744['start']['nodeAfter'],'on'):_0x470aca['createSelection'](_0x3ba744),this['_model']['deleteContent'](_0x4c6ef6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x32c80a=(_0x7cf21,_0x534a97)=>{_0x534a97&&this['_model']['change'](_0x460c2a=>{const {commandName:_0x1c8f94,commandParams:_0x3c8c3e=[]}=_0x534a97,_0xca01a0=_0x7cf21['map'](_0x498fb2=>(Pt(_0x498fb2)&&(_0x498fb2=this['_model']['createRange'](_0x498fb2['end'])),_0x498fb2))['filter'](_0x3ef581=>'$graveyard'!==_0x3ef581['root']['rootName']);if(_0xca01a0['length']<0x1)return;const _0x181df3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2eeddc=>_0x5f13a0['fromRange'](_0x2eeddc));_0x460c2a['setSelection'](_0xca01a0);for(const _0x543247 of this['_editor']['commands']['commands']())_0x543247['refresh']();_0x3c8c3e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c8f94,..._0x3c8c3e);const _0x451f9e=_0x181df3['filter'](_0x59aa7e=>'$graveyard'!=_0x59aa7e['root']['rootName']);_0x451f9e['length']>0x0&&_0x460c2a['setSelection'](_0x451f9e);for(const _0x30599a of _0x181df3)_0x30599a['detach']();});},_0x365710=(_0x1abd68,_0x2dad98)=>0x1==_0x1abd68['length']&&0x1==_0x2dad98['length']&&_0x1abd68[0x0]['end']['isEqual'](_0x2dad98[0x0]['start']),_0x498020=(_0x268ffb,_0x2c8c8f,_0x3e8bd7,_0x2814bd)=>zt(_0x268ffb,_0x2c8c8f,_0x3e8bd7,_0x2814bd)?[_0x268ffb,_0x2c8c8f]:zt(_0x2c8c8f,_0x268ffb,_0x2814bd,_0x3e8bd7)?[_0x2c8c8f,_0x268ffb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x35ff04),this['_defaultCallbacks']['set']('insertion:discard',_0xf4b41e),this['_defaultCallbacks']['set']('insertion:join',_0x365710),this['_defaultCallbacks']['set']('insertion:chain',_0x498020),this['_defaultCallbacks']['set']('deletion:accept',_0xf4b41e),this['_defaultCallbacks']['set']('deletion:discard',_0x35ff04),this['_defaultCallbacks']['set']('deletion:join',_0x365710),this['_defaultCallbacks']['set']('deletion:chain',_0x498020),this['_defaultCallbacks']['set']('formatInline:accept',_0x32c80a),this['_defaultCallbacks']['set']('formatInline:discard',_0x35ff04),this['_defaultCallbacks']['set']('formatInline:join',_0x365710),this['_defaultCallbacks']['set']('formatInline:chain',_0x35ff04),this['_defaultCallbacks']['set']('formatBlock:accept',_0x32c80a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x35ff04),this['_defaultCallbacks']['set']('formatBlock:join',_0x365710),this['_defaultCallbacks']['set']('formatBlock:chain',_0x35ff04),this['_defaultCallbacks']['set']('attribute:accept',_0x35ff04),this['_defaultCallbacks']['set']('attribute:discard',(_0x113393,_0x25b037)=>{if(!_0x25b037)return;const _0x9ae59d=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2b4c0b=>{if(_0x25b037['key']==m)for(const _0x58f339 of _0x113393){const _0x13fe51=_0x58f339['start']['nodeAfter'],_0x300046=_0x25b037['oldValue'];_0x2b4c0b['rename'](_0x13fe51,_0x300046);}else{if(_0x9ae59d['_isBlockAttribute'](_0x25b037['key'])){for(const _0x4eb9c3 of _0x113393)void 0x0!==_0x25b037['oldValue']?_0x2b4c0b['setAttribute'](_0x25b037['key'],_0x25b037['oldValue'],_0x4eb9c3['start']['nodeAfter']):_0x2b4c0b['removeAttribute'](_0x25b037['key'],_0x4eb9c3['start']['nodeAfter']);}else{for(const _0x2a406c of _0x113393)_0x25b037['oldValue']?_0x2b4c0b['setAttribute'](_0x25b037['key'],_0x25b037['oldValue'],_0x2a406c):_0x2b4c0b['removeAttribute'](_0x25b037['key'],_0x2a406c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x365710);}}function Ft(_0x287140,_0x29997a,_0x4b05d7){for(const _0x38564a of _0x29997a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x38564a['root']==_0x38564a)return!0x1;if(!_0x4b05d7['containsItem'](_0x38564a))return!0x1;if(_0x287140['isObject'](_0x38564a)||_0x287140['isLimit'](_0x38564a))return!0x0;}return!0x1;}function Pt(_0x3f1ae6){return _0x3f1ae6['end']['parent']==_0x3f1ae6['start']['nodeAfter']&&_0x3f1ae6['end']['isAtStart'];}function Gt(_0x5940cb,_0x72aeff,_0x596f6a,_0x4b8ae1){const _0x240ec0=_0x17917d=>!_0x17917d['item']['is']('$textProxy')&&!_0x4b8ae1['isObject'](_0x17917d['item']),_0x3ee36b=_0x5940cb['start']['getLastMatchingPosition'](_0x240ec0),_0x4a432a=_0x5940cb['end']['getLastMatchingPosition'](_0x240ec0,{'direction':'backward'});return(!_0x5940cb['start']['isEqual'](_0x3ee36b)||!_0x5940cb['end']['isEqual'](_0x4a432a))&&(_0x3ee36b['isBefore'](_0x4a432a)?_0x596f6a['updateMarker'](_0x72aeff,{'range':_0x596f6a['createRange'](_0x3ee36b,_0x4a432a)}):_0x596f6a['removeMarker'](_0x72aeff),!0x0);}function Lt(_0x2bda3d){return _0x439086(_0x2bda3d);}function Jt(_0x1fd522){const _0x3e6cd8=_0x1fd522['start']['nodeAfter'];return _0x3e6cd8&&_0x3e6cd8['is']('element');}function Kt(_0x2b3686){return!Pt(_0x2b3686)&&!function(_0x258d04){return _0x258d04['start']['parent']==_0x258d04['end']['nodeBefore']&&_0x258d04['start']['isAtEnd'];}(_0x2b3686);}function Ht(_0x5db4ec,_0x3704ab){return null==_0x5db4ec['end']['nodeBefore']&&_0x5db4ec['end']['parent']==_0x5db4ec['start']['nodeAfter']?qt(_0x5db4ec['start']['nodeAfter'],_0x3704ab):_0x5db4ec;}function qt(_0xa6db3b,_0x28c308){const _0x220e5f=_0x28c308['schema']['isObject'](_0xa6db3b)||_0x28c308['schema']['isSelectable'](_0xa6db3b);return _0x28c308['createRange'](_0x28c308['createPositionAt'](_0xa6db3b,'before'),_0x220e5f?_0x28c308['createPositionAfter'](_0xa6db3b):_0x28c308['createPositionAt'](_0xa6db3b,'end'));}function zt(_0xb46157,_0xbba11d,_0x50f526,_0x20d1f3){return!!Wt(_0xb46157,_0xbba11d)&&_0x50f526['end']['isEqual'](_0x20d1f3['start']);}function Wt(_0x3450b3,_0x11541e){if(!_0x3450b3['_isDataLoaded']||!_0x11541e['_isDataLoaded'])return!0x1;const _0x4e1ed8=new Set(Object['keys'](_0x3450b3['attributes'])),_0x1d89b0=new Set(Object['keys'](_0x11541e['attributes']));if(_0x4e1ed8['delete']('groupId'),_0x1d89b0['delete']('groupId'),0x0==_0x4e1ed8['size']&&0x0==_0x1d89b0['size'])return!0x0;if(_0x4e1ed8['size']!=_0x1d89b0['size'])return!0x1;const _0x3bbdb0={..._0x3450b3['attributes']},_0x1553b5={..._0x11541e['attributes']};return delete _0x3bbdb0['groupId'],delete _0x1553b5['groupId'],JSON['stringify'](_0x3bbdb0)==JSON['stringify'](_0x1553b5);}function Qt(_0x174b40,_0x1f181b){const _0x5d6d2c=Xt(_0x174b40['attributes']),_0x5101b5=Xt(_0x1f181b);if(!_0x174b40['_isDataLoaded'])return!0x1;for(const _0x2dbf47 of Object['keys'](_0x5101b5))if(!_0x2d5d33(_0x5d6d2c[_0x2dbf47],_0x5101b5[_0x2dbf47]))return!0x1;return!0x0;}function Xt(_0x7e96fb){const _0x2ac2fe=Object['assign']({},_0x7e96fb);return delete _0x2ac2fe['skipNestingCheck'],delete _0x2ac2fe['tablePasteChainId'],_0x2ac2fe;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x1a2a84(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2e1aac,_0x37515e,_0x69b513,_0x149290){super(),this['model']=_0x37515e,this['view']=_0x69b513,this['commentThreadController']=_0x149290,this['_editor']=_0x2e1aac,this['_acceptCommand']=_0x2e1aac['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2e1aac['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4d81b5,_0x1288ec)=>_0x4d81b5||_0x1288ec),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2c2481=>_0x2c2481&&this['_editor']['model']['canEditAt'](_0x37515e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d53c0=>_0x5d53c0&&this['_editor']['model']['canEditAt'](_0x37515e['getRanges']())),this['_pendingAction']=null,_0x69b513['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x69b513,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x69b513,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x69b513,'change:isDirty',()=>{_0x69b513['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 _0x130306=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x130306);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x403f1d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3bd6b8,_0x5dc0ec,_0x55f813,_0x4d4c5e){super(_0x3bd6b8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x462936(_0x3bd6b8,o(_0x3bd6b8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5dc0ec['authoredAt']),this['bind']('authoredAt')['to'](_0x5dc0ec),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',_0x5dc0ec,'authoredAt',this,'descriptionParts',(_0x1a7df,_0x351ca2,_0x42db73)=>{const _0x2a3284=_0x42db73['map'](_0x1e806d=>ls(_0x1e806d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1a7df-0x1,_0x5dc0ec['author']['name'],_0x351ca2?_0x4d4c5e['formatDateTime'](_0x351ca2):'',new DOMParser()['parseFromString'](_0x2a3284,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3809fb(),this['focusTracker']=new _0x4ffe1a(),this['keystrokes']=new _0xa7055e(),this['focusCycler']=new _0x1a3c08({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5cf94a=>_0x5cf94a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5dc0ec,this['_localUser']=_0x55f813,this['_config']=_0x4d4c5e,_0x4d4c5e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1430e2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xef6f07}=this['_config'];this['commentsListView']=new _0xef6f07(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',_0x490d19=>_0x490d19+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3df79c,_0x4c22df)=>_0x3df79c||!!_0x4c22df);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xf984a7}=this['_config'],_0x87c821=new _0xf984a7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3211b3=_0x87c821['commentInputView'];return _0x87c821['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3211b3,'value',(_0x2fd870,_0x4161da,_0x35dc78)=>!!_0x35dc78||_0x2fd870&&!_0x4161da),_0x3211b3['on']('submit',(_0x331711,_0x4f7110)=>{this['fire']('addComment',_0x4f7110),_0x3211b3['editor']['setData']('');}),_0x3211b3['on']('cancel',()=>this['focus']()),_0x3211b3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x87c821;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x374ed6,_0x36cfd5,_0xb7d170,_0x5b90dc){super(_0x374ed6,_0x36cfd5,_0xb7d170,_0x5b90dc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x256248=>_0x256248&&_0x256248[0x0]?_0x256248[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5303b2,_0x495c5a)=>{let _0x283ead='';for(const _0x476350 of _0x5303b2)_0x283ead+='<p>'+ls(_0x476350['content'],_0x476350['color'])+'</p>';return _0x495c5a?_0x283ead:_0x2b3f95(_0x283ead,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5b90dc['SuggestionView'](_0x374ed6,_0x36cfd5,{'formatDateTime':_0x5b90dc['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 _0x5c3b10=this['bindTemplate'],_0x3ebcff=[this['suggestionView']];return this['commentsListView']&&_0x3ebcff['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3ebcff['push'](this['commentThreadInputView']),_0x3ebcff['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5c3b10['if']('isActive','ck-suggestion-wrapper--active'),_0x5c3b10['to']('type',_0x5c6fdb=>'ck-suggestion-'+_0x5c6fdb),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':_0x5c3b10['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3ebcff};}['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 _0x403f1d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x14033b,_0x51e9f9,_0x5e5265){super(_0x14033b),this['_model']=_0x51e9f9,this['_config']=_0x5e5265,this['set']('description',''),this['bind']('authoredAt')['to'](_0x51e9f9),this['acceptButton']=this['_createButton'](o(_0x14033b,'Accept\x20suggestion'),_0xcc66c3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x14033b,'Discard\x20suggestion'),_0x4efbb1,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5db3b3(_0x14033b,_0x51e9f9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3809fb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4ffe1a(),this['keystrokes']=new _0xa7055e(),this['focusCycler']=new _0x1a3c08({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x438365=>_0x438365['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1cdcab=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1cdcab['innerHTML']=this['description'],this['on']('change:description',(_0x150a5d,_0x9d4477,_0x59498a)=>{_0x1cdcab['innerHTML']=_0x59498a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x33d422=this['bindTemplate'],_0xebc2d6=[{'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':_0x33d422['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x33d422['to']('authoredAt',_0x2587e9=>this['_config']['formatDateTime'](_0x2587e9))}]}]},{'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']&&_0xebc2d6['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':_0xebc2d6}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x58fc79,_0x5b5f31,_0x18e31,_0x1be2bc,_0x417a99){const _0x7a7a6f=new _0x43d490(this['locale']);return _0x7a7a6f['set']({'label':_0x58fc79,'icon':_0x5b5f31,'tooltip':!0x0,'tooltipPosition':_0x417a99}),_0x7a7a6f['extendTemplate']({'attributes':{'class':_0x18e31}}),_0x7a7a6f['on']('execute',()=>{this['fire'](_0x1be2bc,this['_model']['id']);}),_0x7a7a6f;}['_setupKeyboardNavigation'](){const _0x46edd3=this['element'];this['keystrokes']['listenTo'](_0x46edd3);for(const _0xf85c80 of this['focusables'])this['focusTracker']['add'](_0xf85c80['element']),this['keystrokes']['listenTo'](_0xf85c80['element']);this['keystrokes']['set']('enter',(_0x4a8613,_0xd3c8ce)=>{_0x46edd3===_0x4a8613['target']&&(this['focusCycler']['focusFirst'](),_0xd3c8ce());}),this['keystrokes']['set']('esc',(_0x2a8c1c,_0x403b06)=>{_0x46edd3!==_0x2a8c1c['target']&&(this['focus'](),_0x403b06());});}}class u extends _0x292012{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x28ae71,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3035f8){super(_0x3035f8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5ad03d=this['editor']['config'];_0x5ad03d['define']('trackChanges.SuggestionThreadView',fe),_0x5ad03d['define']('trackChanges.SuggestionView',we),_0x5ad03d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5ad03d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x50695a,_0x3fc6a2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x180902,_0x1fa230]of this['_handleControllerBuffer']){const _0x3bfae9=this['_suggestionToController']['has'](_0x180902);_0x3bfae9||_0x1fa230?_0x3bfae9&&_0x1fa230&&this['_destroyController'](_0x180902):this['_initializeController'](_0x180902);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x50695a,_0x3fc6a2);}['init'](){const _0x4b17cd=this['editor'],_0x1393fb=_0x4b17cd['plugins']['get']('TrackChangesEditing'),_0x436e7b=_0x4b17cd['plugins']['get']('Annotations'),_0x801cbd=_0x4b17cd['plugins']['get']('EditorAnnotations'),_0x3e87d4=_0x4b17cd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x801cbd['addSourceCollector'](()=>{const _0xee2f3b=[];for(const [_0x45c358,_0x508a0b]of Array['from'](this['_suggestionToController'])){const _0x21124c=_0x45c358['getAllAdjacentSuggestions'](),_0x12c417=[];for(const _0x23f6b1 of _0x21124c){if(!_0x23f6b1['isInContent'])continue;if(_0x23f6b1['isMultiRange']){_0x12c417['push'](..._0x23f6b1['getRanges']());continue;}const _0x280124=_0x23f6b1['getFirstRange']();if(_0x12c417['length']>0x0){const _0x51b133=_0x12c417[0x0]['getJoined'](_0x280124);if(_0x51b133){_0x12c417[0x0]=_0x51b133;continue;}}_0x12c417['push'](_0x280124);}_0xee2f3b['push']([_0x508a0b['view'],_0x12c417]);}return _0xee2f3b;}),this['listenTo'](_0x1393fb,'suggestionLoaded',(_0x130599,_0x482a2f)=>{this['listenTo'](_0x482a2f,'change:previous',(_0x4cc605,_0x28cf56,_0x4a8073,_0x4cc6ab)=>{_0x482a2f['isInContent']&&(null==_0x4a8073?(this['_updateController'](_0x4cc6ab['head']),this['_handleSuggestionControllerDelayed'](_0x482a2f,!0x1)):(this['_updateController'](_0x4a8073['head']),null==_0x4cc6ab&&this['_handleSuggestionControllerDelayed'](_0x482a2f,!0x0)));}),null!==_0x482a2f['previous']?this['_updateController'](_0x482a2f['head']):this['_handleSuggestionControllerDelayed'](_0x482a2f,!0x1);}),this['listenTo'](_0x1393fb,'suggestionUnloaded',(_0x21e3cd,_0x301d0f,_0x3cb221)=>{this['stopListening'](_0x301d0f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x301d0f),this['_suggestionToController']['has'](_0x301d0f)&&this['_destroyController'](_0x301d0f),_0x3cb221&&this['_updateController'](_0x3cb221['head']);}),this['listenTo'](_0x1393fb,'suggestionChanged',(_0x43353e,_0x1398c4)=>{this['_updateController'](_0x1398c4);}),this['listenTo'](_0x436e7b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3e87d4,'addComment',(_0x205380,{threadId:_0x1e4790,isFromAdapter:_0x18a386})=>{if(_0x18a386||!_0x1393fb['hasSuggestion'](_0x1e4790))return;const _0x53aefe=_0x1393fb['getSuggestion'](_0x1e4790);this['_suggestionToController']['get'](_0x53aefe)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xf72302=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x52ae44;for(const _0x4c9ae5 in _0xf72302){const _0x5d26f6=_0x4c9ae5,_0x274cb0=_0xf72302[_0x5d26f6];if('trackChangesLicenseKeyValid'==_0x274cb0||'trackChangesLicenseKeyInvalid'==_0x274cb0||'trackChangesLicenseKeyExpired'==_0x274cb0||'trackChangesLicenseKeyDomainLimit'==_0x274cb0||'trackChangesLicenseKeyNotAllowed'==_0x274cb0||'trackChangesLicenseKeyEvaluationLimit'==_0x274cb0||'trackChangesLicenseKeyTrialLimit'==_0x274cb0||'trackChangesLicenseKeyUsageLimit'==_0x274cb0){delete _0xf72302[_0x5d26f6],_0x52ae44=_0x274cb0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x52ae44&&_0xf72302['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x52ae44&&_0xf72302['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x52ae44&&_0xf72302['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x52ae44&&_0xf72302['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x52ae44&&_0xf72302['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x52ae44&&_0xf72302['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x52ae44&&_0xf72302['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1089fd){const _0x3de29a=this['_suggestionToController']['get'](_0x1089fd);if(!_0x3de29a)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3de29a['view'])||null;}['getSuggestionForAnnotation'](_0x3f53c1){const _0x39a361=this['_viewToController']['get'](_0x3f53c1['innerView']);return _0x39a361?_0x39a361['model']:null;}['_refreshActiveMarkers'](){const _0x29c3a0=this['editor']['plugins']['get']('Annotations'),_0x26ce18=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39d91a=Array['from'](_0x29c3a0['activeAnnotations'],_0x98662d=>_0x98662d['innerView'])['filter'](_0x559822=>this['_viewToController']['has'](_0x559822)),_0x52673d=[];for(const _0x24d488 of _0x39d91a){const _0x48915f=this['_viewToController']['get'](_0x24d488)['model']['getAllAdjacentSuggestions']();_0x52673d['push'](..._0x48915f['reduce']((_0x4811cb,_0x29d13f)=>[..._0x4811cb,..._0x29d13f['getMarkerNames']()],[]));}_0x26ce18['activeMarkers']=_0x52673d;}['_addUIComponentsToFactory'](){const _0x284692=this['editor'],_0x247092=_0x284692['locale'],_0x24ae87=o(_0x247092,'Track\x20changes'),_0x483e0f=new _0x35dfc3([{'type':'switchbutton','model':new _0x22563d({'withText':!0x0,'isToggleable':!0x0,'label':_0x24ae87,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x22563d({'withText':!0x0,'label':o(_0x247092,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22563d({'withText':!0x0,'label':o(_0x247092,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22563d({'withText':!0x0,'label':o(_0x247092,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22563d({'withText':!0x0,'label':o(_0x247092,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x284692['plugins']['has']('TrackChangesPreview')&&_0x483e0f['addMany']([{'type':'separator'},{'type':'button','model':new _0x22563d({'withText':!0x0,'label':o(_0x247092,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x51ce37 of _0x483e0f)if(ke(_0x51ce37)){const _0x4a577d=_0x284692['commands']['get'](_0x51ce37['model']['commandName']);_0x51ce37['model']['bind']('isOn','isEnabled')['to'](_0x4a577d,'value','isEnabled');}_0x284692['ui']['componentFactory']['add']('trackChanges',_0x560d74=>this['_createToolbarButton'](_0x560d74,_0x483e0f,_0x24ae87)),_0x284692['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1fcc14=>this['_createMenuBarMenu'](_0x1fcc14,_0x483e0f,_0x24ae87));}['_createToolbarButton'](_0xb464f8,_0x2c8de7,_0x76d98d){const _0x1ded9e=_0x58bd4d(_0xb464f8,_0xabaeb3),_0x4846c7=this['editor']['commands']['get']('trackChanges');_0x1ded9e['buttonView']['set']({'tooltip':_0x76d98d,'label':_0x76d98d,'icon':_0x5e888c}),_0x1ded9e['buttonView']['bind']('isOn')['to'](_0x4846c7,'value'),_0x1ded9e['buttonView']['on']('execute',()=>{_0x4846c7['execute'](),this['editor']['editing']['view']['focus']();}),_0x2bfc48(_0x1ded9e,_0x2c8de7,{'role':'menu'});const _0x2127bc=[];for(const _0x39fbd1 of _0x2c8de7)ke(_0x39fbd1)&&_0x2127bc['push'](this['editor']['commands']['get'](_0x39fbd1['model']['commandName']));const _0xe2411=_0x1ded9e['buttonView'];return _0xe2411['actionView']['unbind']('isEnabled'),_0xe2411['arrowView']['unbind']('isEnabled'),_0xe2411['actionView']['bind']('isEnabled')['to'](_0x4846c7,'isEnabled'),_0xe2411['arrowView']['bind']('isEnabled')['toMany'](_0x2127bc,'isEnabled',(..._0xf2d120)=>_0xf2d120['some'](_0x1128ac=>_0x1128ac)),_0x1ded9e['on']('execute',_0x1b27c0=>{this['editor']['execute'](_0x1b27c0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ded9e;}['_createMenuBarMenu'](_0x215a42,_0x4fbdda,_0x1cb0d9){const _0xf96031=new _0xbcb731(_0x215a42),_0x383b6=this['editor']['commands']['get']('trackChanges');_0xf96031['buttonView']['set']({'label':_0x1cb0d9,'icon':_0x5e888c});const _0x2401f5=new _0x323793(_0x215a42);for(const _0x4bad19 of _0x4fbdda){if('separator'==_0x4bad19['type']){_0x2401f5['items']['add'](new _0x220548(_0x215a42));continue;}const _0x20dae9=new _0x9faef3(_0x215a42,_0xf96031),_0x258c31=new _0x6dd469(_0x215a42),_0x229de1=_0x4bad19['model'];_0x258c31['bind'](...Object['keys'](_0x229de1))['to'](_0x229de1),_0x258c31['delegate']('execute')['to'](_0xf96031),_0x258c31['on']('execute',()=>{this['editor']['execute'](_0x229de1['commandName']),this['editor']['editing']['view']['focus']();}),_0x20dae9['children']['add'](_0x258c31),_0x2401f5['items']['add'](_0x20dae9);}return _0xf96031['bind']('isEnabled')['to'](_0x383b6,'isEnabled'),_0xf96031['panelView']['children']['add'](_0x2401f5),_0xf96031;}['_initializeController'](_0x15d821){const _0x176ddb=this['editor'],_0x35eb8b=_0x176ddb['config'],_0x4fc2f2=_0x176ddb['plugins']['get']('Annotations'),_0x2874ba=_0x176ddb['plugins']['get']('CommentsRepository'),_0x52d074=_0x176ddb['plugins']['get']('EditorAnnotations'),_0x87a7a3=_0x176ddb['plugins']['get'](_0x28ae71)['me'],_0x55a9a1=_0x35eb8b['get']('trackChanges')['SuggestionThreadView'],_0x11af59=_0x35eb8b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x18bc2d,CommentThreadInputView:_0x589dfd}=_0x176ddb['plugins']['get']('CommentsUI');let _0x3ace4b,_0x399347,_0x544dbe;this['_annotationViews']['has'](_0x15d821['id'])?(_0x399347=this['_annotationViews']['get'](_0x15d821['id']),_0x3ace4b=_0x399347['mainView']):(_0x3ace4b=new _0x55a9a1(_0x176ddb['locale'],_0x15d821,_0x87a7a3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x35eb8b['get']('comments.editorConfig'),'licenseKey':_0x35eb8b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x35eb8b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x35eb8b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x35eb8b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x470902(_0x35eb8b['get']('locale'),_0x176ddb['locale']),'CommentView':_0x35eb8b['get']('comments')['CommentView'],'CommentsListView':_0x18bc2d,'CommentThreadInputView':_0x589dfd,'SuggestionView':_0x11af59}),_0x3ace4b['suggestionView']['acceptButton']['on']('execute',()=>{_0x176ddb['editing']['view']['focus']();}),_0x3ace4b['suggestionView']['discardButton']['on']('execute',()=>{_0x176ddb['editing']['view']['focus']();}),_0x399347=_0x4fc2f2['createAnnotationView'](this['editor']['locale'],_0x3ace4b),_0x399347['bind']('isDirty')['to'](_0x3ace4b,'isDirty'),_0x399347['bind']('length')['to'](_0x3ace4b),_0x399347['bind']('type')['to'](_0x3ace4b,'type',_0x2ca128=>'suggestion-'+_0x2ca128),_0x3ace4b['on']('escape',()=>{_0x544dbe['fire']('escape');}),this['_annotationViews']['set'](_0x15d821['id'],_0x399347));const _0x8c64cf=_0x2874ba['createCommentThreadController'](_0x15d821['commentThread'],_0x3ace4b),_0x1b3784=new pe(_0x176ddb,_0x15d821,_0x3ace4b,_0x8c64cf),_0x2d34ec=_0x15d821['getAllAdjacentSuggestions']()['filter'](_0x2a5272=>_0x2a5272['isInContent']);_0x3ace4b['descriptionParts']=_0x176ddb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2d34ec),this['_suggestionToController']['set'](_0x15d821,_0x1b3784),this['_viewToController']['set'](_0x3ace4b,_0x1b3784),_0x544dbe=_0x4fc2f2['createAnnotation']({'view':_0x399347,'target':()=>{const _0x5a4ea2=[],_0x2ad59d=_0x15d821['getAllAdjacentSuggestions']()['filter'](_0xe75691=>_0xe75691['isInContent']);for(const _0xcfea7e of _0x2ad59d)_0x5a4ea2['push'](..._0xcfea7e['getMarkers']());return _0x232dce(_0x176ddb['editing'],_0x5a4ea2);},'type':()=>'suggestion-'+_0x1b3784['view']['type']}),_0x2874ba['_bindAnnotationToEditors'](_0x3ace4b,_0x544dbe),_0x4fc2f2['add'](_0x544dbe),_0x52d074['registerAnnotation'](_0x544dbe);}['_destroyController'](_0x34b42d){const _0x10c885=this['editor']['plugins']['get']('CommentsRepository'),_0x42f78b=this['editor']['plugins']['get']('Annotations'),_0x2e70f7=this['_suggestionToController']['get'](_0x34b42d),_0x5dde7e=_0x2e70f7['view'],_0xd178c=_0x42f78b['getByInnerView'](_0x5dde7e);_0x10c885['_unbindEditors'](_0x5dde7e),_0xd178c&&_0x42f78b['remove'](_0xd178c),this['_suggestionToController']['delete'](_0x34b42d),this['_viewToController']['delete'](_0x5dde7e),_0x2e70f7['destroy']();}['_updateController'](_0x41a9c1){if(!_0x41a9c1['isInContent']||!this['_suggestionToController']['has'](_0x41a9c1))return;const _0x5f1d8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15280b=this['_suggestionToController']['get'](_0x41a9c1),_0x3b624f=_0x41a9c1['getAllAdjacentSuggestions']();_0x15280b['view']['descriptionParts']=_0x5f1d8a['descriptionFactory']['getDescriptions'](_0x3b624f);}['destroy'](){for(const _0x45332f of this['_suggestionToController']['keys']())this['_destroyController'](_0x45332f);for(const _0x5ea5e6 of this['_annotationViews']['values']())_0x5ea5e6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2532c0){return'model'in _0x2532c0;}class Fe extends _0x292012{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xba8169){this['editor']['plugins']['get'](d)['adapter']=_0xba8169;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x34d97f){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x34d97f);}['getSuggestions']({skipNotAttached:_0x5742ad=!0x1,toJSON:_0x4c2914=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5742ad,'toJSON':_0x4c2914});}['getSuggestion'](_0x105251){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x105251);}}const p=['Pagination'];class re extends _0x292012{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x535a65=this['editor'];if(_0x535a65['config']['define']('trackChangesData.editorCreator',_0x3c191d=>{const _0x5c9913=_0x535a65['model']['document']['getRootNames']()['reduce']((_0x45c87a,_0xa5246e)=>(_0x45c87a[_0xa5246e]='',_0x45c87a),{});return _0x535a65['constructor']['create'](_0x5c9913,_0x3c191d);}),'function'!=typeof _0x535a65['config']['get']('trackChangesData')['editorCreator'])throw new _0x223d51('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x42011c){return P(this['editor'],!0x0,_0x42011c);}['getDataWithDiscardedSuggestions'](_0x21fedd){return P(this['editor'],!0x1,_0x21fedd);}}class Ge extends _0x292012{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5aa7f3){function _0x4c7436(_0x1d0ec6){return _0x1d0ec6['map'](_0x18581a=>String['fromCharCode'](_0x18581a))['join']('');}super(_0x5aa7f3),this['result']='end',_0x5aa7f3[_0x4c7436([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c7436([0x76,0x69,0x65,0x77])][_0x4c7436([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c7436([0x61,0x75,0x74,0x6f]),_0x5aa7f3[_0x4c7436([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4c7436([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c7436([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4c7436([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4c7436([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 $e(_0x3b4d4b){return void 0x0!==_0x3b4d4b['getRootsAttributes'];}async function P(_0x386aef,_0x59342d,_0x128d40){const _0xed814d=_0x107ef5(_0x386aef,p);_0xed814d['plugins']['push'](d,Ge),_0xed814d['rootsAttributes']=$e(_0x386aef)?_0x386aef['getRootsAttributes']():void 0x0;const _0x3723a8=document['createDocumentFragment'](),_0x546039=_0x386aef['config']['get']('trackChangesData')['editorCreator'],_0x4c5fc6=await _0x546039(_0xed814d,()=>function(_0x26e7d8){const _0x94756f=document['createElement']('div');return _0x26e7d8['appendChild'](_0x94756f),_0x94756f;}(_0x3723a8));!function(_0x42799a,_0x3015ec){const _0x53dd71=_0x42799a['model']['document']['getRootNames']()['reduce']((_0x1f7d56,_0xfcfa52)=>(_0x1f7d56[_0xfcfa52]=_0x42799a['data']['get']({'rootName':_0xfcfa52}),_0x1f7d56),{}),_0x35e4cd=_0x42799a['plugins']['get']('Users')['users']['map'](_0x2680e2=>({'id':_0x2680e2['id'],'name':_0x2680e2['name']})),_0x4f15b6=_0x42799a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3b66d3=_0x42799a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bbea0=_0x3015ec['plugins']['get']('Users'),_0x34fb41=_0x3015ec['plugins']['get']('TrackChangesEditing'),_0x19b4aa=_0x3015ec['plugins']['get']('CommentsRepository');for(const _0x29e17f of _0x19b4aa['getCommentThreads']())_0x29e17f['remove']();for(const _0x41078b of _0x35e4cd)_0x3bbea0['getUser'](_0x41078b['id'])||_0x3bbea0['addUser'](_0x41078b);_0x3bbea0['me']||_0x3bbea0['useAnonymousUser']();for(const _0xf91bb5 of _0x3b66d3)_0x19b4aa['addCommentThread'](_0xf91bb5);for(const _0x15ac03 of _0x4f15b6)_0x34fb41['addSuggestionData'](_0x15ac03);_0x3015ec['data']['set'](_0x53dd71);}(_0x386aef,_0x4c5fc6),_0x4c5fc6['execute'](_0x59342d?'acceptAllSuggestions':'discardAllSuggestions');const _0xfc6f0a=$e(_0x4c5fc6)?_0x4c5fc6['getFullData'](_0x128d40):_0x4c5fc6['data']['get'](_0x128d40);return await _0x4c5fc6['destroy'](),_0xfc6f0a;}class Me extends _0x403f1d{['options'];constructor(_0x196935,_0x44ed1b){super(_0x196935),this['options']=_0x44ed1b,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'](_0x23c5c0,_0x39e61b){if(!this['element'])return;const _0xd99db4=[];for(const [_0x36effb,_0x134b69]of _0x23c5c0){const _0x2caa80=document['createElement']('div');_0x2caa80['setAttribute']('data-ck-root-name',_0x36effb),_0x2caa80['className']=_0x134b69['classes']+'\x20ck-track-changes-preview__root-container',_0x2caa80['innerHTML']=_0x134b69['content'],_0xd99db4['push'](_0x2caa80);}_0x39e61b(this['element'],_0xd99db4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2f1852{constructor(_0x23660f){super(_0x23660f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xc78422=this['editor'],_0x5c3581=_0xc78422['locale'],_0x105aa8=_0xc78422['plugins']['get']('Dialog');let _0x1f0160;const _0xfcd9f7=function(_0x1e8ea6){const _0x2efe64={};if('editables'in _0x1e8ea6['ui']['view']){for(const [_0x27431c,_0x3238da]of Object['entries'](_0x1e8ea6['ui']['view']['editables']))_0x2efe64[_0x27431c]=_0x3238da['element'];}else _0x2efe64[_0x1e8ea6['model']['document']['getRootNames']()[0x0]]=_0x1e8ea6['ui']['view']['editable']['element'];return _0x2efe64;}(_0xc78422),_0x51d223=function(_0x56c8a4){let _0x368508=0x0;for(const _0x4be71d of Object['values'](_0x56c8a4))_0x368508=Math['max'](_0x368508,_0x4be71d['getBoundingClientRect']()['width']);let _0x1a2b77=0x0;for(const _0x56bb17 of Object['values'](_0x56c8a4))_0x1a2b77+=_0x56bb17['getBoundingClientRect']()['height'];const _0x10683b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xb9e777=Math['min'](_0x1a2b77,_0x10683b);return{'width':_0x368508,'height':_0xb9e777};}(_0xfcd9f7);_0x105aa8['show']({'id':'finalContentPreview','title':o(_0x5c3581,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5c3581,{'dialogRects':_0x51d223}),'onHide':()=>{_0x1f0160['detachFromDom']();},'onShow':()=>{_0xc78422['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3199af=>{const _0x4984b8=this['_standarizeRootsData'](_0x3199af,_0xc78422,_0xfcd9f7);_0x105aa8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4984b8,_0xc78422['config']['get']('trackChanges.preview.renderFunction'));}),_0x1f0160=new _0x841c7e(_0x5c3581,[_0x105aa8['view']]),_0x1f0160['attachToDom'](),_0x1f0160['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xc78422['once']('destroy',()=>{_0x1f0160['detachFromDom']();});const _0x310b98=_0x105aa8['view']['headerView']['class'];_0x105aa8['view']['headerView']['class']=_0x310b98?_0x310b98+'\x20ck-reset_all':'ck-reset_all',_0x105aa8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x105aa8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5822ea=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x520fbe=_0x5822ea['previewMode'],_0x1896d8={};if('$labels'===_0x520fbe){for(const _0x5eef72 of _0x5822ea['getMergeFieldsIds']())_0x1896d8[_0x5eef72]=_0x5822ea['getLabel'](_0x5eef72)||_0x5eef72;}else{const _0x156dc3='$defaultValues'===_0x520fbe?_0x5822ea['getDefaultValues']():_0x5822ea['getDataSetValues'](_0x520fbe,!0x0);for(const _0x3e7fda of Object['entries'](_0x156dc3)){const [_0x345cb5,_0xbe7ca8]=_0x3e7fda;_0x1896d8[_0x345cb5]=null!==_0xbe7ca8?_0xbe7ca8:_0x5822ea['getLabel'](_0x345cb5)||_0x345cb5;}}return{'mergeFieldsData':_0x1896d8};}['_standarizeRootsData'](_0x32cc40,_0x455359,_0x38ee54){let _0x53d78e;if('string'==typeof _0x32cc40){const _0x4dd62b=_0x455359['model']['document']['getRootNames']()[0x0];_0x53d78e={[_0x4dd62b]:_0x32cc40};}else _0x53d78e=_0x32cc40;const _0x1a6107=this['_fixMediaEmbeds'](_0x53d78e,_0x455359),_0x214e51=function(_0x13bece,_0x21b6bf){for(const [_0x3c8bf3,_0x4e8326]of _0x13bece)_0x4e8326['classes']=_0x21b6bf[_0x3c8bf3]['classList']['value']['replace']('ck-focused','');return _0x13bece;}(this['_sortRoots'](_0x455359)['reduce']((_0x5a65ff,_0x48b39e)=>(_0x5a65ff['push']([_0x48b39e,{'content':_0x1a6107[_0x48b39e],'classes':''}]),_0x5a65ff),[]),_0x38ee54);return _0x214e51;}['_fixMediaEmbeds'](_0x6525e,_0x1f795a){if(!_0x1f795a['plugins']['has']('MediaEmbedEditing'))return _0x6525e;const _0x123188=_0x1f795a['plugins']['get']('MediaEmbedEditing');for(const [_0x570666,_0x1ba2bf]of Object['entries'](_0x6525e)){const _0x3a70fe=document['createElement']('div');_0x3a70fe['innerHTML']=_0x1ba2bf,(_0x3a70fe['querySelectorAll']('figure.media')['forEach'](_0x44f058=>{const _0x212f32=_0x44f058['querySelector']('oembed');if(_0x212f32){const _0x2e94aa=_0x212f32['getAttribute']('url');if(_0x2e94aa){const _0x4db129=_0x123188['registry']['getMediaViewElement'](new _0x30e963(_0x1f795a['editing']['view']['document']),_0x2e94aa,{'elementName':'','renderForEditingView':!0x0}),_0x2e0562=document['createElement']('div');_0x2e0562['classList']['add']('ck-media__wrapper'),_0x4db129['render'](_0x2e0562,_0x1f795a['editing']['view']['domConverter']),_0x212f32['replaceWith'](_0x2e0562);}}}),_0x6525e[_0x570666]=_0x3a70fe['innerHTML']);}return _0x6525e;}['_sortRoots'](_0x3a2580){if(!function(_0x2467f8){return void 0x0!==_0x2467f8['getRootsAttributes'];}(_0x3a2580))return _0x3a2580['model']['document']['getRootNames']();const _0x4acd67=[],_0x19199a=new Map();for(const _0x262b30 of _0x3a2580['model']['document']['getRootNames']()){const _0x19dc64=_0x3a2580['editing']['view']['getDomRoot'](_0x262b30)['getClientRects']()['item'](0x0);_0x4acd67['push'](_0x262b30),_0x19199a['set'](_0x262b30,_0x19dc64);}return _0x4acd67['sort']((_0x36211c,_0x4c8bf8)=>{const _0x12f082=_0x19199a['get'](_0x36211c),_0x277a73=_0x19199a['get'](_0x4c8bf8);return _0x12f082['y']-_0x277a73['y']||_0x12f082['x']-_0x277a73['x'];}),_0x4acd67;}}class He extends _0x292012{static get['requires'](){return[re,_0x1ac612];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x339d5d){super(_0x339d5d),_0x339d5d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x339d5d['config']['define']('trackChanges.preview.renderFunction',(_0x8e6632,_0x691514)=>{for(const _0x440304 of _0x691514)_0x8e6632['appendChild'](_0x440304);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x162850,Plugin as _0xeec5ec,PendingActions as _0x2bc2b6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x483cd5,ObservableMixin as _0x54f4cb,uid as _0x1a8355,priorities as _0x16cc49,insertToPriorityArray as _0x43eb57,toArray as _0xea2e1a,logWarning as _0x5aa01e,getEnvKeystrokeText as _0x5ad898,FocusTracker as _0x233f8c,KeystrokeHandler as _0x3f1993,Collection as _0x1604a9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x134e14,IconCancel as _0xd2a307,IconTrackChanges as _0x572057}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x990569,View as _0x376071,ViewCollection as _0x3611cc,FocusCycler as _0x180cf0,UIModel as _0x4126df,createDropdown as _0x49e9d6,SplitButtonView as _0x3b9b00,addListToDropdown as _0x359ad2,MenuBarMenuView as _0x552abe,MenuBarMenuListView as _0x3d3185,ListSeparatorView as _0x263776,MenuBarMenuListItemView as _0x4128de,MenuBarMenuListItemButtonView as _0x3259b6,BodyCollection as _0x504e06,Dialog as _0x1e3b93}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x29227a,hashObject as _0x4f0f78,surroundingMarkersDetector as _0x2c7d31,FOCUS_ANNOTATION_KEYSTROKE as _0x49e48c,AriaDescriptionView as _0x4675a1,setupThreadKeyboardNavigation as _0x3b1451,trimHtml as _0x2261cb,UserView as _0x44416a,LateFocusButtonView as _0x427ae6,getDateTimeFormatter as _0x3673c3,getAllMarkersDomElementsSorted as _0x2e6994,sanitizeEditorConfig as _0x3a854f}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x2c69d4,ModelLiveRange as _0x414e2a,ModelLivePosition as _0x2beb4d,ViewDowncastWriter as _0x5be9d6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5b8608,toWidget as _0x2a9ce6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x304ad6,set as _0x1d426a,isEqual as _0x5b6043,unset as _0x1978be,omit as Ut}from'es-toolkit/compat';import{Delete as _0x5f02aa,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2e8560}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x321051}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x162850{['_enabledCommands'];constructor(_0x37a7ee,_0x37d9d7){super(_0x37a7ee),this['_enabledCommands']=_0x37d9d7,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 _0x5de3f1 of this['editor']['commands']['commands']())_0x5de3f1['affectsData']&&!this['_enabledCommands']['has'](_0x5de3f1)&&_0x5de3f1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2202ff of this['editor']['commands']['commands']())_0x2202ff['affectsData']&&!this['_enabledCommands']['has'](_0x2202ff)&&_0x2202ff['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x162850{['_suggestions'];constructor(_0x1929c8,_0x2a41e8){super(_0x1929c8),this['_suggestions']=_0x2a41e8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x49b9c5){const _0x3b972f=this['_suggestions']['get'](_0x49b9c5);if(!_0x3b972f)throw new _0x483cd5('track-changes-accept-suggestion-not-found',this);const _0x2dc84d=_0x3b972f['getRanges']();this['editor']['model']['canEditAt'](_0x2dc84d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3b972f);}}class M extends _0x162850{['_suggestions'];constructor(_0x7ae76c,_0x4c44dd){super(_0x7ae76c),this['_suggestions']=_0x4c44dd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c46d0){const _0xfe01e0=this['_suggestions']['get'](_0x5c46d0);if(!_0xfe01e0)throw new _0x483cd5('track-changes-discard-suggestion-not-found',this);const _0x31678a=_0xfe01e0['getRanges']();this['editor']['model']['canEditAt'](_0x31678a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xfe01e0);}}function ls(_0x432ea0,_0x173759){let _0x5e99a5='';return _0x5e99a5+=_0x432ea0['split']('*')['map']((_0x6af33b,_0x25ccd1)=>_0x25ccd1%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x6af33b)+'</span>':Yt(_0x6af33b))['join'](''),_0x173759&&(_0x5e99a5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x173759['value']+'\x22\x20title=\x22'+_0x173759['title']+'\x22></span>'),_0x5e99a5;}function Yt(_0x378a75){const _0x1e82ae=document['createElement']('span');return _0x1e82ae['innerText']=_0x378a75,_0x1e82ae['innerHTML'];}function ts(_0x487d1c){return _0x487d1c['sort']((_0x226322,_0x3ec37f)=>'attribute'===_0x226322['type']&&'attribute'!==_0x3ec37f['type']?-0x1:'attribute'!==_0x226322['type']&&'attribute'===_0x3ec37f['type']?0x1:'deletion'==_0x226322['type']&&'deletion'!=_0x3ec37f['type']?-0x1:'deletion'!=_0x226322['type']&&'deletion'==_0x3ec37f['type']?0x1:0x0);}function to(_0x5ca0a9,_0x4cbf38){let _0x24bd19,_0x3cfd74=0x0;const _0x491c95=[],_0x149a29=_0x4cbf38['schema'];for(;_0x3cfd74<_0x5ca0a9['length'];){const _0x37e76d=_0x5ca0a9[_0x3cfd74],_0x78bd2f=_0x5ca0a9[_0x3cfd74+0x1];_0x24bd19||(_0x24bd19=_0x4cbf38['createPositionBefore'](_0x37e76d)),Zt(_0x4cbf38,_0x37e76d,_0x78bd2f)||(_0x491c95['push'](_0x4cbf38['createRange'](_0x24bd19,_0x149a29['isObject'](_0x37e76d)?_0x4cbf38['createPositionAfter'](_0x37e76d):_0x4cbf38['createPositionAt'](_0x37e76d,'end'))),_0x24bd19=null),_0x3cfd74++;}return _0x491c95;}function Zt(_0x23fec1,_0x1dd7ec,_0x13b44d){if(!_0x13b44d)return!0x1;const _0x2f546c=_0x23fec1['createPositionAfter'](_0x1dd7ec),_0x132a39=_0x23fec1['createPositionBefore'](_0x13b44d);return _0x2f546c['isTouching'](_0x132a39);}function rs(_0x4c3797,_0x524a66,_0x47a7bf){for(;_0x47a7bf['length'];){const _0x2720d8=_0x47a7bf['splice'](0x0,0x64);_0x4c3797['change'](()=>{for(const _0x52e418 of _0x2720d8)_0x52e418['isInContent']&&_0x524a66['execute'](_0x52e418['id']);});}}class $ extends _0x162850{['_command'];['_suggestions'];constructor(_0x10a217,_0x266b28,_0xce4eb9){super(_0x10a217),this['_command']=_0x266b28,this['_suggestions']=_0xce4eb9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2cc151=Array['from'](this['_suggestions']['values']())['some'](_0x419cdb=>_0x419cdb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2cc151;}['execute'](){const _0x12e695=ts(Array['from'](this['_suggestions']['values']()));for(const _0x569aff of _0x12e695){const _0x1a4a03=_0x569aff['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1a4a03))return;}rs(this['editor']['model'],this['_command'],_0x12e695);}}class B extends _0x162850{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3fbed6,_0x30a200,_0x5ca807){super(_0x3fbed6),this['_command']=_0x30a200,this['_suggestions']=_0x5ca807,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x338524=this['editor']['model']['document']['selection'],_0x25d8d8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x29f2c1,_0x432dc7){const _0x205f9c=Array['from'](_0x29f2c1['getRanges']()),_0x506beb=new Set();for(const _0x10c795 of _0x432dc7)if(_0x10c795['isInContent']){for(const _0x2e2658 of _0x205f9c)for(const _0x3dc2d5 of _0x10c795['getRanges']())(_0x2e2658['isIntersecting'](_0x3dc2d5)||_0x29f2c1['isCollapsed']&&!_0x10c795['isMultiRange']&&_0x10c795['next']&&_0x3dc2d5['end']['isTouching'](_0x2e2658['start']))&&_0x506beb['add'](_0x10c795);}return _0x506beb;}(_0x338524,_0x25d8d8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1695bb=ts(Array['from'](this['_selectedSuggestions']));for(const _0x352c8a of _0x1695bb){const _0x5667fc=_0x352c8a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5667fc))return;}rs(this['editor']['model'],this['_command'],_0x1695bb);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x54f4cb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x33ac30,_0x154689){super(),this['id']=_0x154689['id'],this['type']=_0x154689['type'],this['subType']=_0x154689['subType']||null,this['author']=_0x154689['author'],this['creator']=_0x154689['creator']||_0x154689['author'],this['isExternal']=Boolean(_0x154689['attributes']&&_0x154689['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x154689['originalSuggestionId']||null,this['_model']=_0x33ac30,this['_onAccept']=_0x154689['onAccept'],this['_onDiscard']=_0x154689['onDiscard'],this['_onAttributesChange']=_0x154689['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x154689['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 _0x4e9590=this;for(;_0x4e9590['previous'];)_0x4e9590=_0x4e9590['previous'];return _0x4e9590;}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'](_0x32aaba){this['_markerNames']['add'](_0x32aaba);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x189589=>this['_model']['markers']['get'](_0x189589))['filter'](_0x5c8115=>_0x5c8115);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x8aaec0=>{for(const _0x58dfa0 of this['getMarkers']())_0x8aaec0['removeMarker'](_0x58dfa0);}),this['_markerNames']['clear']();}['removeMarker'](_0x506b3b){this['_model']['change'](_0x2799c3=>{_0x2799c3['removeMarker'](_0x506b3b);}),this['_markerNames']['delete'](_0x506b3b);}['addRange'](_0x2fd080){const _0x2af43d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x2af43d),this['_model']['change'](_0x444102=>{_0x444102['addMarker'](_0x2af43d,{'range':_0x2fd080,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x176f73){for(const _0x31acbd of this['getRanges']())if(_0x31acbd['isIntersecting'](_0x176f73))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8922b9=>_0x8922b9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3a6154,_0x5d61f5)=>[..._0x3a6154,..._0x5d61f5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5e7957=this['getRanges']();if(0x1!=_0x5e7957['length'])return null;const _0x168d1b=_0x5e7957[0x0],_0x1577b9=_0x168d1b['start']['nodeAfter'],_0x57828f=_0x168d1b['end']['nodeBefore'];return _0x1577b9 instanceof _0x2c69d4?_0x1577b9!=_0x57828f?null:_0x1577b9: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 _0x38b508=[];let _0x5c1acb=this['head'];for(;_0x5c1acb;)_0x38b508['push'](_0x5c1acb),_0x5c1acb=_0x5c1acb['next'];return _0x38b508;}['setAttribute'](_0x5cfb8b,_0x120517){const _0x3fce17=_0x304ad6(this['attributes']);_0x1d426a(_0x3fce17,_0x5cfb8b,_0x120517),_0x5b6043(_0x3fce17,this['attributes'])||(this['attributes']=_0x3fce17,this['_onAttributesChange'](_0x3fce17));}['removeAttribute'](_0x6f8de8){const _0x15d766=_0x304ad6(this['attributes']);_0x1978be(_0x15d766,_0x6f8de8),_0x5b6043(_0x15d766,this['attributes'])||(this['attributes']=_0x15d766,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 _0x1a8355()['substr'](0x1,0x5);}}function o(_0x155727,_0xf1c25b,_0x336941){const _0x522348=_0x155727['t'],t=_0x155727['t'];switch(_0xf1c25b){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',_0x336941);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x336941);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x336941);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x336941);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x336941);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',_0x336941);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x336941);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',_0x336941);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x336941);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x336941);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x336941);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x336941);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x336941);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x336941);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x336941);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x336941);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x336941);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x336941);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x336941);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x336941);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x336941);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x336941);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x336941);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x336941);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x336941);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'},_0x336941);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x336941);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x336941);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x336941);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x336941);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x336941);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x336941);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x336941);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'},_0x336941);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x336941);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x336941);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x336941);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x336941);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'},_0x336941);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x336941);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'},_0x336941);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});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'},_0x336941);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x336941);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'},_0x336941);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x336941);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'},_0x336941);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x336941);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x336941);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'},_0x336941);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x336941);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 _0x522348({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x336941);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x522348({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x336941);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x336941);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'},_0x336941);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'},_0x336941);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'},_0x336941);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xf1c25b;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x19f2e3,_0x5add9c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x19f2e3,this['_locale']=_0x5add9c;}['getDescriptions'](_0x43fa95){const _0x5a3975=[],_0x819d4e=new Set(),_0x2310fb=new Set();for(let _0x570f15=0x0;_0x570f15<_0x43fa95['length'];_0x570f15++){const _0x412cd6=_0x43fa95[_0x570f15];if(!_0x412cd6['isInContent'])continue;const _0x2ec19b=this['_handleCustomCallbackDescription'](_0x412cd6);if(_0x2ec19b){if(null!=_0x412cd6['subType']){if(_0x819d4e['has'](_0x412cd6['subType']))continue;_0x819d4e['add'](_0x412cd6['subType']);}_0x5a3975['push'](_0x2ec19b);}else{if('attribute'==_0x412cd6['type']){const _0x5aad4d=_0x412cd6['data']['key'];if(_0x2310fb['has'](_0x5aad4d))continue;_0x2310fb['add'](_0x412cd6['data']['key']),_0x5aad4d==m?this['_handleRenameSuggestionDescription'](_0x5a3975,_0x412cd6):this['_handleAttributeSuggestionDescription'](_0x5a3975,_0x412cd6);continue;}'insertion'!=_0x412cd6['type']&&'deletion'!=_0x412cd6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5a3975,_0x412cd6,_0x43fa95[_0x570f15+0x1]);}}return this['_resolveDescriptionItems'](_0x5a3975);}['registerDescriptionCallback'](_0x98ff92){this['_customCallbacks']['push'](_0x98ff92);}['registerElementLabel'](_0x53e92a,_0x14d554,_0x5a8714=_0x16cc49['normal']){'function'==typeof _0x53e92a?_0x43eb57(this['_itemLabelsCallbacks'],{'matchingCallback':_0x53e92a,'label':_0x14d554,'priority':_0x5a8714}):this['_itemLabels']['set'](_0x53e92a,_0x14d554);}['registerAttributeLabel'](_0x1af5f0,_0x34838d){this['_attributeLabels']['set'](_0x1af5f0,_0x34838d);}['getItemLabel'](_0x37a7cb,_0x4c0dd5=0x1){let _0x3025de;for(const _0x39f4e8 of this['_itemLabelsCallbacks'])if(_0x39f4e8['matchingCallback'](_0x37a7cb)){_0x3025de=_0x39f4e8['label'];break;}return _0x3025de||(_0x3025de=this['_itemLabels']['get'](_0x37a7cb['name'])),_0x3025de?_0x3025de(_0x4c0dd5):0x1!==_0x4c0dd5?_0x4c0dd5+'\x20'+_0x37a7cb['name']+'s':''+_0x37a7cb['name'];}['_addDescriptionItems'](_0x4216aa,_0x3a1086){const _0x2b189c=_0x3a1086['getFirstRange']()['getWalker'](),_0x1864e2='insertion'==_0x3a1086['type']?'add':'remove';for(const _0x33b75f of _0x2b189c){const _0x2bd252=_0x33b75f['item'],_0x55b62f=_0x4216aa[_0x4216aa['length']-0x1];if(_0x2bd252['is']('$textProxy'))_0x55b62f&&_0x55b62f['type']['indexOf']('Container')>-0x1&&_0x4216aa['pop'](),_0x55b62f&&'text'==_0x55b62f['type']?_0x55b62f[_0x1864e2]+=_0x2bd252['data']:_0x4216aa['push']({'type':'text','add':'add'==_0x1864e2?_0x2bd252['data']:'','remove':'remove'==_0x1864e2?_0x2bd252['data']:''});else{if(this['_schema']['isObject'](_0x2bd252)){const _0xea91cd=_0x2bd252;if(_0x55b62f&&_0x55b62f['type']['indexOf']('Container')>-0x1&&_0x4216aa['pop'](),'elementEnd'==_0x33b75f['type'])continue;_0x55b62f&&_0x55b62f['type']==_0x1864e2+'Object'&&_0x55b62f['element']['name']==_0xea91cd['name']?_0x55b62f['quantity']++:_0x4216aa['push']({'type':_0x1864e2+'Object','element':_0xea91cd,'quantity':0x1}),_0x2b189c['skip'](_0x52957c=>!('elementEnd'==_0x52957c['type']&&_0x52957c['item']==_0x2bd252));}else{if(this['_schema']['checkChild'](_0x2bd252,'$text')||_0x2bd252['is']('element','softBreak')){const _0x54b671=_0x2bd252;if('add'==_0x1864e2&&'elementStart'==_0x33b75f['type']||'remove'==_0x1864e2&&'elementEnd'==_0x33b75f['type'])continue;if(_0x55b62f&&-0x1==_0x55b62f['type']['indexOf']('Container')){'text'==_0x55b62f['type']&&(_0x55b62f[_0x1864e2]+='\x0a');continue;}let _0x50691a;if(_0x50691a='add'==_0x1864e2?_0x54b671['nextSibling']&&!this['_schema']['isObject'](_0x54b671['nextSibling'])?_0x54b671['nextSibling']:null:_0x54b671['previousSibling']&&!this['_schema']['isObject'](_0x54b671['previousSibling'])?_0x54b671['previousSibling']:null,_0x54b671['isEmpty']||_0x50691a&&_0x50691a['isEmpty']){const _0x49b257=_0x50691a&&_0x50691a['isEmpty']?_0x50691a:_0x54b671;_0x55b62f&&_0x55b62f['type']==_0x1864e2+'EmptyContainer'&&_0x55b62f['element']['name']==_0x49b257['name']?_0x55b62f['quantity']++:_0x4216aa['push']({'type':_0x1864e2+'EmptyContainer','element':_0x49b257,'quantity':0x1});}else _0x4216aa['push']({'type':_0x1864e2+'Container','element':_0x54b671});}}}}}['_resolveDescriptionItems'](_0x454aa3){const _0x2ce99e=this['_locale'],_0x5211e0=[],_0x5ab56e=[],_0x531c15=[];for(const _0x594446 of _0x454aa3)switch(_0x594446['type']){case'text':if(_0x594446['add']=_0x594446['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x594446['remove']=_0x594446['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x594446['add']&&''!=_0x594446['remove']){_0x5211e0['push']({'type':'replace','content':o(_0x2ce99e,'REPLACE_TEXT',['\x22'+_0x594446['remove']+'\x22','\x22'+_0x594446['add']+'\x22'])});continue;}if(null!=_0x594446['add']['match'](/^ +$/)){_0x5211e0['push']({'type':'insertion','content':o(_0x2ce99e,'*Insert:*\x20%0',o(_0x2ce99e,'ELEMENT_SPACE',_0x594446['add']['length']))});continue;}if(null!=_0x594446['remove']['match'](/^ +$/)){_0x5211e0['push']({'type':'deletion','content':o(_0x2ce99e,'*Remove:*\x20%0',o(_0x2ce99e,'ELEMENT_SPACE',_0x594446['remove']['length']))});continue;}if(''!=_0x594446['add']){_0x5211e0['push']({'type':'insertion','content':o(_0x2ce99e,'*Insert:*\x20%0','\x22'+_0x594446['add']+'\x22')});continue;}_0x5211e0['push']({'type':'deletion','content':o(_0x2ce99e,'*Remove:*\x20%0','\x22'+_0x594446['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5211e0['push']({'type':'insertion','content':o(_0x2ce99e,'*Insert:*\x20%0',this['getItemLabel'](_0x594446['element'],_0x594446['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5211e0['push']({'type':'deletion','content':o(_0x2ce99e,'*Remove:*\x20%0',this['getItemLabel'](_0x594446['element'],_0x594446['quantity']))});continue;case'addContainer':_0x5211e0['push']({'type':'insertion','content':o(_0x2ce99e,'*Split:*\x20%0',this['getItemLabel'](_0x594446['element'],_0x594446['quantity']))});continue;case'removeContainer':_0x5211e0['push']({'type':'deletion','content':o(_0x2ce99e,'*Merge:*\x20%0',this['getItemLabel'](_0x594446['element'],_0x594446['quantity']))});continue;case'addFormat':_0x5ab56e['push'](_0x594446['key']);continue;case'removeFormat':_0x531c15['push'](_0x594446['key']);continue;default:_0x5211e0['push'](_0x594446);}if(_0x5ab56e['length']){const _0x29f1d3=_0x5ab56e['map'](_0x29ce47=>this['_attributeLabels']['has'](_0x29ce47)?this['_attributeLabels']['get'](_0x29ce47):_0x29ce47)['join'](',\x20');_0x5211e0['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x29f1d3)});}if(_0x531c15['length']){const _0x93a765=_0x531c15['map'](_0xed87af=>this['_attributeLabels']['has'](_0xed87af)?this['_attributeLabels']['get'](_0xed87af):_0xed87af)['join'](',\x20');_0x5211e0['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x93a765)});}return _0x5211e0;}['_handleCustomCallbackDescription'](_0x313598){for(const _0x37a846 of this['_customCallbacks']){const _0x14ef60=_0x37a846(_0x313598);if(_0x14ef60&&'type'in _0x14ef60)return _0x14ef60;}}['_handleAttributeSuggestionDescription'](_0xe70a34,_0x4fe809){const _0x194589=_0x4fe809['data'],_0x4aa9f0=void 0x0===_0x194589['newValue']?'removeFormat':'addFormat';_0xe70a34['push']({'type':_0x4aa9f0,'key':_0x194589['key']});}['_handleRenameSuggestionDescription'](_0x4a2743,_0x55c891){_0x4a2743['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x55c891['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xc68ffe,_0x293aeb,_0x6df695){if(this['_addDescriptionItems'](_0xc68ffe,_0x293aeb),_0x6df695&&_0x6df695['getFirstRange']()&&!_0x293aeb['getFirstRange']()['end']['isEqual'](_0x6df695['getFirstRange']()['start'])){const _0x585f7f=_0xc68ffe[_0xc68ffe['length']-0x1],_0x41bb1d='insertion'==_0x293aeb['type']?'add':'remove';_0x585f7f&&'text'==_0x585f7f['type']&&(_0x585f7f[_0x41bb1d]+='\x0a');}}}class O extends _0xeec5ec{['afterInit'](){const _0x344729=this['editor'],_0x16a203=_0x344729['plugins']['get']('TrackChangesEditing');_0x344729['commands']['get']('showAIAssistant')&&_0x16a203['enableCommand']('showAIAssistant');}}class E extends _0xeec5ec{['afterInit'](){const _0x347229=this['editor'],_0x163ec4=_0x347229['locale'];if(!_0x347229['plugins']['has']('AlignmentEditing'))return;const _0x409a0f=_0x347229['plugins']['get']('TrackChangesEditing');_0x409a0f['enableDefaultAttributesIntegration']('alignment'),_0x409a0f['registerBlockAttribute']('alignment'),_0x409a0f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x163ec4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x708369=this['editor'],_0x4a8e54=_0x708369['locale'];_0x708369['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bdc47=>{if('formatBlock'!=_0x5bdc47['type'])return;const {data:_0x1d3575}=_0x5bdc47;if(_0x1d3575&&'alignment'==_0x1d3575['commandName']){const _0x2b1305=_0x1d3575['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4a8e54,'*Format:*\x20%0',function(_0x32548c){switch(_0x32548c){case'left':return o(_0x4a8e54,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4a8e54,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4a8e54,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4a8e54,'FORMAT_JUSTIFY_TEXT');}}(_0x2b1305))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xeec5ec{['afterInit'](){const _0x8425f1=this['editor'],_0x9cffee=_0x8425f1['plugins']['get']('TrackChangesEditing'),_0x12ffe5=_0x8425f1['locale'];for(const _0x1df61f of ti){if(!_0x8425f1['plugins']['has'](_0x1df61f))continue;const _0x1fe9f9=_0x1df61f['slice'](0x0,-0x7)['toLowerCase'](),_0x4095b4='FORMAT_'+_0x1fe9f9['toUpperCase']();_0x9cffee['enableDefaultAttributesIntegration'](_0x1fe9f9),_0x9cffee['registerInlineAttribute'](_0x1fe9f9),_0x9cffee['descriptionFactory']['registerAttributeLabel'](_0x1fe9f9,o(_0x12ffe5,_0x4095b4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b8639=this['editor'],_0x438732=_0x4b8639['locale'],_0x257e2c=_0x4b8639['plugins']['get']('TrackChangesEditing');function _0x2379e7(_0x540135,_0x2781e7){_0x257e2c['descriptionFactory']['registerDescriptionCallback'](_0x585cba=>{if('formatInline'!=_0x585cba['type'])return;const {data:_0x157693}=_0x585cba;return _0x157693&&_0x157693['commandName']===_0x540135?_0x157693['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x438732,'*Format:*\x20%0',_0x2781e7)}:{'type':'format','content':o(_0x438732,'*Remove\x20format:*\x20%0',_0x2781e7)}:void 0x0;});}_0x2379e7('bold',o(_0x438732,'FORMAT_BOLD')),_0x2379e7('italic',o(_0x438732,'FORMAT_ITALIC')),_0x2379e7('underline',o(_0x438732,'FORMAT_UNDERLINE')),_0x2379e7('code',o(_0x438732,'FORMAT_CODE')),_0x2379e7('strikethrough',o(_0x438732,'FORMAT_STRIKETHROUGH')),_0x2379e7('subscript',o(_0x438732,'FORMAT_SUBSCRIPT')),_0x2379e7('superscript',o(_0x438732,'FORMAT_SUPERSCRIPT'));}}class U extends _0xeec5ec{['afterInit'](){const _0x239c52=this['editor'],_0x2a537f=_0x239c52['locale'];if(!_0x239c52['plugins']['has']('BlockQuoteEditing'))return;const _0x43079d=_0x239c52['plugins']['get']('TrackChangesEditing'),_0x5253c0=this['editor']['commands']['get']('blockQuote');_0x43079d['enableCommand']('blockQuote',(_0x3ec98a,_0x31c4ec={})=>{const _0x2fbbe4=this['editor']['model']['document']['selection'],_0x476c7e=_0x31c4ec&&void 0x0!==_0x31c4ec['forceValue']?_0x31c4ec['forceValue']:!_0x5253c0['value'];let _0x4ea354=[];if(_0x476c7e){const _0x5626c9=Array['from'](_0x2fbbe4['getSelectedBlocks']())['filter'](_0x41e38b=>oo(_0x41e38b)||function(_0x2f0293,_0x499047){const _0x17e37f=_0x499047['checkChild'](_0x2f0293['parent'],'blockQuote'),_0x3e57f7=_0x499047['checkChild'](['$root','blockQuote'],_0x2f0293);return _0x17e37f&&_0x3e57f7;}(_0x41e38b,this['editor']['model']['schema']));_0x4ea354=to(_0x5626c9,_0x239c52['model']);}else{const _0x830198=Array['from'](_0x2fbbe4['getSelectedBlocks']())['filter'](_0x5d28ad=>oo(_0x5d28ad));_0x4ea354=to(_0x830198,_0x239c52['model']);}_0x239c52['model']['change'](()=>{for(const _0x111a1e of _0x4ea354)_0x43079d['markBlockFormat'](_0x111a1e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x476c7e}]});});}),_0x43079d['descriptionFactory']['registerDescriptionCallback'](_0xc49c26=>{const {data:_0x5d9678}=_0xc49c26;if(_0x5d9678&&'blockQuote'==_0x5d9678['commandName']){const _0x199f98=o(_0x2a537f,'ELEMENT_BLOCK_QUOTE');return _0x5d9678['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a537f,'*Set\x20format:*\x20%0',_0x199f98)}:{'type':'format','content':o(_0x2a537f,'*Remove\x20format:*\x20%0',_0x199f98)};}});}}function oo(_0x7b256d){return'blockQuote'==_0x7b256d['parent']['name'];}class V extends _0xeec5ec{['afterInit'](){const _0x4b96c1=this['editor'],_0x3b100b=_0x4b96c1['locale'],_0x4f8a27=_0x4b96c1['plugins']['get']('TrackChangesEditing');_0x4b96c1['plugins']['has']('BookmarkEditing')&&(_0x4f8a27['enableCommand']('insertBookmark'),_0x4f8a27['enableDefaultAttributesIntegration']('updateBookmark'),_0x4f8a27['registerBlockAttribute']('bookmarkId'),_0x4f8a27['descriptionFactory']['registerDescriptionCallback'](_0x2c85e7=>{if('insertion'!=_0x2c85e7['type']&&'deletion'!=_0x2c85e7['type']&&'attribute'!=_0x2c85e7['type'])return;const _0x33f225=_0x2c85e7['getContainedElement']();if(null==_0x33f225)return;if(!_0x33f225['is']('element','bookmark'))return;const _0x30c40a=_0x33f225['getAttribute']('bookmarkId');if('insertion'==_0x2c85e7['type'])return{'type':'insertion','content':o(_0x3b100b,'*Insert:*\x20%0','\x22'+_0x30c40a+'\x22\x20'+o(_0x3b100b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2c85e7['type'])return{'type':'deletion','content':o(_0x3b100b,'*Remove:*\x20%0','\x22'+_0x30c40a+'\x22\x20'+o(_0x3b100b,'ELEMENT_BOOKMARK'))};const {data:_0x64aabd}=_0x2c85e7;if(!_0x64aabd||'bookmarkId'!=_0x64aabd['key'])return;return{'type':'format','content':o(_0x3b100b,'*Set\x20bookmark:*\x20%0','\x22'+_0x64aabd['newValue']+'\x22')};}));}}class F extends _0xeec5ec{['afterInit'](){const _0x75819f=this['editor'];_0x75819f['plugins']['has']('CaseChange')&&(_0x75819f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x75819f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x75819f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xeec5ec{['afterInit'](){const _0x5b7bf4=this['editor'];_0x5b7bf4['commands']['get']('ckbox')&&_0x5b7bf4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xeec5ec{['afterInit'](){const _0x10d543=this['editor'];if(!_0x10d543['plugins']['has']('CodeBlock'))return;const _0x3770f7=_0x10d543['plugins']['get']('TrackChangesEditing'),_0x44a5b3=_0x10d543['locale'],_0xf8cad3=_0x10d543['config']['get']('codeBlock')['languages'],_0x2c2211=_0x10d543['commands']['get']('codeBlock');_0x3770f7['enableCommand']('indentCodeBlock'),_0x3770f7['enableCommand']('outdentCodeBlock'),_0x3770f7['enableCommand']('codeBlock',(_0x23c7c7,_0x47c3d0={})=>{const _0x27d0e4=_0x10d543['model'],_0x10ce5c=_0x10d543['model']['document']['selection'],_0x156ccf=_0x47c3d0&&void 0x0!==_0x47c3d0['forceValue']?_0x47c3d0['forceValue']:!_0x2c2211['value'];let _0x2c601f;_0x47c3d0['language']||(_0x47c3d0['language']=_0xf8cad3[0x0]['language']),_0x2c601f=_0x156ccf?Array['from'](_0x10ce5c['getSelectedBlocks']())['filter'](_0x41e0a1=>co(_0x41e0a1)||function(_0x22ba25,_0x350535){if(_0x22ba25['is']('rootElement')||_0x350535['isLimit'](_0x22ba25))return!0x1;return _0x350535['checkChild'](_0x22ba25['parent'],'codeBlock');}(_0x41e0a1,_0x27d0e4['schema'])):Array['from'](_0x10ce5c['getSelectedBlocks']())['filter'](_0x270dd9=>co(_0x270dd9));const _0x4df867=to(_0x2c601f,_0x27d0e4);_0x27d0e4['change'](()=>{for(const _0x3123e2 of _0x4df867)_0x3770f7['markBlockFormat'](_0x3123e2,{'commandName':'codeBlock','commandParams':[{..._0x47c3d0,'forceValue':_0x156ccf}],'formatGroupId':'blockName'});});}),(_0x3770f7['descriptionFactory']['registerElementLabel']('codeBlock',_0x2cf6cc=>o(_0x44a5b3,'ELEMENT_CODE_BLOCK',_0x2cf6cc)),_0x3770f7['descriptionFactory']['registerDescriptionCallback'](_0x28adef=>{if('formatBlock'!=_0x28adef['type'])return;const _0x3f5cfd=_0x44a5b3['t'],{data:_0x56cf80}=_0x28adef;if(!_0x56cf80||'codeBlock'!=_0x56cf80['commandName'])return;const _0x876c11=_0x56cf80['commandParams'][0x0]['language'],_0x148700=_0x3f5cfd(_0xf8cad3['find'](_0x12a6a1=>_0x12a6a1['language']===_0x876c11)['label'])['toLowerCase']();return _0x56cf80['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44a5b3,'*Set\x20format:*\x20%0',o(_0x44a5b3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x148700+')')}:{'type':'format','content':o(_0x44a5b3,'*Remove\x20format:*\x20%0',o(_0x44a5b3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1eb42b){return'codeBlock'==_0x1eb42b['name'];}class J extends _0xeec5ec{['afterInit'](){const _0x961abb=this['editor'];if(!_0x961abb['plugins']['has']('CommentsEditing'))return;_0x961abb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3110fc,_0x291c16,_0xb15dc9){const _0x401e8e=[];for(const _0x5eb209 of _0x291c16['getItems']())_0x5eb209['hasAttribute'](_0x3110fc)&&_0x401e8e['push'](_0xb15dc9['createRangeOn'](_0x5eb209));return _0x401e8e;}function De(_0x2939b8,_0x3db8bd,{showActiveMarker:_0x5248ae=!0x0}={}){const _0x3089f6=_0x2939b8['plugins']['get']('TrackChangesEditing');return(_0x36ac08,_0x4e2cfb,_0x17c08b)=>{if(!_0x17c08b['consumable']['test'](_0x4e2cfb['markerRange'],_0x36ac08['name']))return;const _0x6535be=_0x4e2cfb['markerRange']['getWalker'](),_0x233b14=_0x4e2cfb['markerRange']['start'],_0x523c76=_0x2939b8['model']['schema'];let _0x3cc194=null,_0x52cb42=null,_0x2cebcc=!0x1,_0x35c221=!0x1;for(const _0x58ce8a of _0x6535be){const _0x464488=_0x58ce8a['item'];_0x2cebcc=_0x2cebcc||_0x523c76['isContent'](_0x464488);const _0x4ba4fd=_0x17c08b['mapper']['toViewElement'](_0x464488);if(_0x4ba4fd&&_0x4ba4fd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58ce8a['type']&&(_0x523c76['isBlock'](_0x464488)&&!_0x523c76['isLimit'](_0x464488)&&(_0x464488['nextSibling']||_0x233b14['isAtEnd']?_0x3cc194&&_0x3cc194['parent']==_0x464488||(_0x3cc194=_0x464488,_0x1340e2(_0x58ce8a['previousPosition']),_0x35c221=!0x0):_0x52cb42=_0x52cb42||_0x58ce8a['previousPosition']));}function _0x1340e2(_0x4bdfd8){const {id:_0x4fcc3e,authorId:_0x84e3fa}=_0x3089f6['_splitMarkerName'](_0x4e2cfb['markerName']),_0x1ee003=_0x17c08b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3db8bd,'data-suggestion':_0x4fcc3e,'data-author-id':_0x84e3fa}),_0x1f2588=_0x17c08b['mapper']['toViewPosition'](_0x4bdfd8);_0x5248ae&&_0x3089f6['activeMarkers']['includes'](_0x4e2cfb['markerName'])&&_0x17c08b['writer']['addClass']('ck-suggestion-marker--active',_0x1ee003),_0x17c08b['writer']['insert'](_0x1f2588,_0x1ee003),_0x17c08b['mapper']['bindElementToMarker'](_0x1ee003,_0x4e2cfb['markerName']);}_0x2cebcc||_0x35c221||!_0x52cb42||_0x1340e2(_0x52cb42);};}class K extends _0xeec5ec{static get['requires'](){return[_0x5f02aa];}['init'](){const _0x1784c1=this['editor'],_0x1865d9=_0x1784c1['plugins']['get']('TrackChangesEditing');_0x1865d9['enableCommand']('delete');const _0x44d0fd=_0x1784c1['commands']['get']('deleteForward');_0x1865d9['enableCommand']('deleteForward',(_0x503531,_0x566ef6={})=>{const _0x37ec12=_0x1784c1['model']['createSelection'](_0x1784c1['model']['document']['selection']);_0x37ec12['isCollapsed']&&_0x1784c1['model']['modifySelection'](_0x37ec12,{'direction':'forward','unit':_0x566ef6['unit']});const _0x4a3a23=_0x37ec12['getFirstRange'](),_0x853c69=_0x414e2a['fromRange'](_0x4a3a23);let _0x5cf3df;_0x503531(_0x566ef6),_0x5cf3df='$graveyard'==_0x853c69['root']['rootName']?_0x1784c1['model']['createRange'](_0x4a3a23['start']):_0x1784c1['model']['createRange'](_0x853c69['start'],_0x853c69['end']),_0x853c69['detach'](),_0x1784c1['model']['enqueueChange'](_0x44d0fd['buffer']['batch'],_0xdb289=>{_0x44d0fd['buffer']['lock'](),_0xdb289['setSelection'](_0xdb289['createRange'](_0x5cf3df['end'])),_0x44d0fd['buffer']['unlock']();});}),_0x1784c1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1784c1,'merge'),{'priority':'high'}),_0x1784c1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3a81ed,_0x1650e8,_0x124c39)=>{_0x124c39['options']['showSuggestionHighlights']&&De(_0x1784c1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3a81ed,_0x1650e8,_0x124c39);},{'priority':'high'}),_0x1784c1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4256ff,_0x52e606,_0x503b87)=>{const _0x48c974=_0x503b87['mapper']['markerNameToElements'](_0x52e606['markerName']);if(_0x48c974){for(const _0xc9858d of _0x48c974)_0xc9858d['is']('uiElement')&&(_0x503b87['mapper']['unbindElementFromMarkerName'](_0xc9858d,_0x52e606['markerName']),_0x503b87['writer']['remove'](_0xc9858d));}},{'priority':'high'});}}class H extends _0xeec5ec{['afterInit'](){const _0xce97b3=this['editor'];if(!_0xce97b3['plugins']['has']('ListEditing'))return;const _0x39cbcb=_0xce97b3['locale'],_0x2be63f=_0xce97b3['plugins']['get']('TrackChangesEditing'),_0x1b03a8=_0xce97b3['plugins']['has']('TodoListEditing'),_0x3916ba=!!_0xce97b3['config']['get']('list.multiBlock');function _0x3c140c(_0x2d02dd){return{'type':'format','content':''+o(_0x39cbcb,'*Set\x20format:*\x20%0',_0x2d02dd)};}function _0x250420(_0x2d0717){return{'type':'format','content':''+o(_0x39cbcb,'*Remove\x20format:*\x20%0',_0x2d0717)};}_0x2be63f['enableDefaultAttributesIntegration']('numberedList'),_0x2be63f['enableDefaultAttributesIntegration']('bulletedList'),_0x2be63f['enableDefaultAttributesIntegration']('customNumberedList'),_0x2be63f['enableDefaultAttributesIntegration']('customBulletedList'),_0x2be63f['enableDefaultAttributesIntegration']('indentList'),_0x2be63f['enableDefaultAttributesIntegration']('outdentList'),_0x2be63f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2be63f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2be63f['registerBlockAttribute']('listItemId'),_0x2be63f['registerBlockAttribute']('listType'),_0x2be63f['registerBlockAttribute']('listIndent'),_0x3916ba&&(_0x2be63f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2be63f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1b03a8&&(_0x2be63f['enableDefaultAttributesIntegration']('todoList'),_0x2be63f['enableDefaultAttributesIntegration']('checkTodoList'),_0x2be63f['registerBlockAttribute']('todoListChecked'),_0x2be63f['descriptionFactory']['registerDescriptionCallback'](_0x12f970=>{const {data:_0x43490a}=_0x12f970;if(_0x43490a&&'todoListChecked'==_0x43490a['key'])return{'type':'format','content':_0x43490a['newValue']?o(_0x39cbcb,'*Check\x20item*'):o(_0x39cbcb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x51bddb=>{if(_0x51bddb['batch']['isUndo'])return!0x1;let _0xbe0751=!0x1;const _0x3c8b10=_0x2be63f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31f3a5=>'todoListChecked'===_0x2be63f['_getAttributeKey'](_0x31f3a5));for(const _0x2c685a of _0x3c8b10){'todo'!=_0x2c685a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2be63f['_findSuggestions'](_0x2c685a['getFirstRange'](),'attribute')['find'](_0x4a08c3=>'listType'===_0x2be63f['_getAttributeKey'](_0x4a08c3['suggestion']))||(_0x51bddb['removeMarker'](_0x2c685a['getFirstMarker']()),_0xbe0751=!0x0));}return _0xbe0751;})),_0x2be63f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x39cbcb,'FORMAT_INDENT'));const _0xfd5b9d={'type':'format','content':''};_0x2be63f['descriptionFactory']['registerDescriptionCallback'](_0xf1aec=>{const {data:_0x153105}=_0xf1aec;if(!_0x153105||'listType'!=_0x153105['key'])return;let _0x509ace=_0xf1aec['head'];for(;_0x509ace;){if(_0x509ace['data']&&(('listStyle'==_0x509ace['data']['key']||'listMarkerStyle'==_0x509ace['data']['key'])&&(_0x509ace['data']['newValue']&&'default'!=_0x509ace['data']['newValue']||'default'!=_0x509ace['data']['oldValue']&&!_0x153105['newValue'])||!_0x3916ba&&_0x509ace['data']['key']==m))return _0xfd5b9d;_0x509ace=_0x509ace['next'];}if(null==_0x153105['newValue'])switch(_0x153105['oldValue']){case'bulleted':return _0x250420(o(_0x39cbcb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x250420(o(_0x39cbcb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x250420(o(_0x39cbcb,'ELEMENT_TODO_LIST'));}switch(_0x153105['newValue']){case'bulleted':return _0x3c140c(o(_0x39cbcb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c140c(o(_0x39cbcb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c140c(o(_0x39cbcb,'ELEMENT_TODO_LIST'));}}),_0x2be63f['descriptionFactory']['registerDescriptionCallback'](_0x28513c=>{const {data:_0x352d9a}=_0x28513c;if(_0x352d9a&&'listIndent'==_0x352d9a['key'])return null==_0x352d9a['newValue']||null==_0x352d9a['oldValue']&&0x0==_0x352d9a['newValue']?_0xfd5b9d:void 0x0;}),_0x2be63f['descriptionFactory']['registerDescriptionCallback'](_0x18252f=>{if('attribute'!=_0x18252f['type'])return;const {data:_0x51c691}=_0x18252f;if(!_0x51c691||'listItemId'!=_0x51c691['key'])return;const _0xa83958=Te(_0x18252f);return'newValue'==_0xa83958?{'type':'format','content':o(_0x39cbcb,'*Merge:*\x20list\x20item')}:'oldValue'==_0xa83958?{'type':'format','content':o(_0x39cbcb,'*Split:*\x20list\x20item')}:_0xfd5b9d;}),_0xce97b3['model']['document']['registerPostFixer'](_0x56312d=>this['listItemIdFixer'](_0x56312d)),_0xce97b3['model']['document']['registerPostFixer'](_0x120f04=>this['noTrackChangesFixer'](_0x120f04)),_0xce97b3['model']['document']['on']('change:data',(_0x3d2302,_0x5687d0)=>{if(_0x5687d0['isUndo']||!_0x5687d0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5b7ed4){if(_0x5b7ed4['batch']['isUndo']||!_0x5b7ed4['batch']['isLocal'])return!0x1;let _0x2385d5=!0x1;const _0x12077f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x245867=>_0x245867['data']&&'listItemId'==_0x245867['data']['key'])['filter'](_0x1ae49f=>_0x1ae49f['data']['newValue']&&_0x1ae49f['data']['oldValue']);for(const _0x3e4c22 of _0x12077f)Te(_0x3e4c22)||(_0x5b7ed4['removeMarker'](_0x3e4c22['getFirstMarker']()),_0x2385d5=!0x0);return _0x2385d5;}['noTrackChangesFixer'](_0x1ef5a1){if(_0x1ef5a1['batch']['isUndo']||!_0x1ef5a1['batch']['isLocal'])return!0x1;const _0x14f37d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x14f37d['trackChangesCommand']['value'])return!0x1;let _0x2a481e=!0x1;const _0x3105ec=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1434d8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x38cd1d=>'attribute'==_0x38cd1d['type'])['filter'](_0x14bdf2=>_0x3105ec['includes'](_0x14bdf2['attributeKey']));if(0x0==_0x1434d8['length'])return _0x2a481e;for(const _0x5c4f7b of _0x1434d8){const _0x46a582=_0x14f37d['_findSuggestions'](_0x5c4f7b['range'],'attribute')['filter'](_0x3dc1f2=>!_0x3dc1f2['meta']['isNextTo'])['map'](_0x17d0e8=>_0x17d0e8['suggestion'])['filter'](_0x52484f=>{const _0x151d1e=_0x14f37d['_getAttributeKey'](_0x52484f);return _0x3105ec['includes'](_0x151d1e);});if(_0x46a582['length']){for(const _0x40ad09 of _0x46a582)_0x1ef5a1['removeMarker'](_0x40ad09['getFirstMarker']());_0x2a481e=!0x0;}}return _0x2a481e;}['assureChains'](){const _0x16b34e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b8216=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xc0deda;const _0x3a5aa0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x161b14=>{if(_0x161b14['data']['oldRange']||!_0x161b14['data']['newRange'])return null;if(!_0x161b14['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x10bc3a}=_0x16b34e['_splitMarkerName'](_0x161b14['name']);if(!_0x16b34e['hasSuggestion'](_0x10bc3a))return null;const _0x55e5d8=_0x16b34e['getSuggestion'](_0x10bc3a);return _0x3b8216['includes'](_0x55e5d8['data']['key']);})['map'](_0xbba29b=>{const {id:_0x23eab2}=_0x16b34e['_splitMarkerName'](_0xbba29b['name']),_0x54ad78=_0x16b34e['getSuggestion'](_0x23eab2);return _0xc0deda=_0x54ad78['attributes']['groupId'],_0x54ad78['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3a5aa0['size'])return;const _0x5b9d33=_0x16b34e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc5e16c=>'attribute'==_0xc5e16c['type']&&_0xc5e16c['data']&&_0x3b8216['includes'](_0xc5e16c['data']['key'])&&_0xc5e16c['attributes']['groupId']!=_0xc0deda)['map'](_0x32a97a=>({'listItem':_0x32a97a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x32a97a['attributes']['groupId']})),_0x6d856=new Set();for(const {groupId:_0x47e28a,listItem:_0x8fbef0}of _0x5b9d33)_0x3a5aa0['has'](_0x8fbef0)&&_0x6d856['add'](_0x47e28a);for(const _0x1a453f of _0x16b34e['getSuggestions']())_0x6d856['has'](_0x1a453f['attributes']['groupId'])&&_0x1a453f['setAttribute']('groupId',_0xc0deda);}['_supportLegacySuggestions'](){const _0x4ceb6=this['editor'],_0xa53db0=_0x4ceb6['locale'],_0x910e85=_0x4ceb6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x910e85['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x51d6c2,_0x28106e){const _0x5e7710=[];for(let _0x5ae54a of _0x51d6c2)_0x5ae54a['start']['nodeAfter']===_0x5ae54a['end']['parent']&&(_0x5ae54a=_0x4ceb6['model']['createRange'](_0x4ceb6['model']['createPositionAt'](_0x5ae54a['start']['nodeAfter'],0x0))),_0x5e7710['push'](_0x5ae54a);_0x4ceb6['model']['change'](_0x66ec4a=>{const _0x5b69da=_0x4ceb6['model']['document']['selection'],_0x5e049f=Array['from'](_0x5b69da['getRanges']())['map'](_0x12c5b6=>_0x414e2a['fromRange'](_0x12c5b6));_0x66ec4a['setSelection'](_0x5e7710),_0x4ceb6['commands']['get'](_0x28106e['commandName'])['refresh'](),_0x28106e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ceb6['execute'](_0x28106e['commandName'],..._0x28106e['commandParams']),_0x66ec4a['setSelection'](_0x5e049f);for(const _0x1cb2f7 of _0x5e049f)_0x1cb2f7['detach']();});}),_0x910e85['descriptionFactory']['registerElementLabel'](function(_0x410463){const _0x43d4b9=!_0x4ceb6['model']['schema']['isObject'](_0x410463),_0x31d1eb=_0x410463['previousSibling'],_0x555b60=_0x410463['nextSibling'],_0x3b6866=_0x410463['getAttribute']('listItemId'),_0x7bad5=!_0x31d1eb||_0x31d1eb['getAttribute']('listItemId')!==_0x3b6866,_0x3fd31b=!_0x555b60||_0x555b60['getAttribute']('listItemId')!==_0x3b6866;return _0x43d4b9&&Boolean(_0x3b6866)&&_0x7bad5&&_0x3fd31b;},_0x56deaf=>o(_0xa53db0,'ELEMENT_LIST_ITEM',_0x56deaf));}['_registerLegacyDescription'](){const _0x2482fb=this['editor'],_0x272fab=_0x2482fb['locale'];function _0x5d88c7(_0x5a0cb1){const _0x480571=_0x2482fb['commands']['get']('bulletedList')['value'],_0x458175=_0x2482fb['commands']['get']('numberedList')['value'];return'numberedList'===_0x5a0cb1?_0x480571:_0x458175;}_0x2482fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x33ce25){if('formatBlock'!=_0x33ce25['type'])return;const {data:_0xf6fc9}=_0x33ce25;if(!_0xf6fc9)return;let _0x221253,_0x7a04f3,_0x484993,_0x13561d;switch(_0xf6fc9['commandName']){case'bulletedList':_0x484993=_0xf6fc9['commandParams'][0x0]['forceValue'],_0x13561d=_0x5d88c7(_0xf6fc9['commandName']),_0x221253=_0x484993?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13561d&&_0x2482fb['config']['get']('list.multiBlock')||(_0x221253='*Change\x20to:*\x20%0'),_0x7a04f3={'type':'format','content':o(_0x272fab,_0x221253,o(_0x272fab,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x484993=_0xf6fc9['commandParams'][0x0]['forceValue'],_0x13561d=_0x5d88c7(_0xf6fc9['commandName']),_0x221253=_0x484993?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x13561d&&_0x2482fb['config']['get']('list.multiBlock')||(_0x221253='*Change\x20to:*\x20%0'),_0x7a04f3={'type':'format','content':o(_0x272fab,_0x221253,o(_0x272fab,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x221253='*Indent:*\x20%0',_0x7a04f3={'type':'format','content':o(_0x272fab,_0x221253,o(_0x272fab,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x221253=function(_0x4d0eec){const _0x38d7e2=_0x4d0eec['getFirstRange']();let _0x4efd70=_0x38d7e2['start']['nodeAfter'];for(;_0x4efd70&&_0x38d7e2['containsItem'](_0x4efd70);){if(_0x4efd70['getAttribute']('listIndent')>0x0)return!0x1;_0x4efd70=_0x4efd70['nextSibling'];}return!0x0;}(_0x33ce25)?o(_0x272fab,'*Format:*\x20remove\x20from\x20%0',o(_0x272fab,function(_0x18ef25){return'ELEMENT_'+_0x18ef25['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x33ce25))):o(_0x272fab,'*Outdent:*\x20%0',o(_0x272fab,'ELEMENT_LIST_ITEM')),_0x7a04f3={'type':'format','content':_0x221253};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xf6fc9['multipleBlocks']&&(_0x221253='*Merge:*\x20%0',_0x7a04f3={'type':'deletion','content':o(_0x272fab,_0x221253,o(_0x272fab,'ELEMENT_LIST_ITEM'))});}return _0x7a04f3;});}}function Te(_0x3e3cd5){let _0x16ef9b=_0x3e3cd5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x16ef9b;){const _0x14abcd=_0x16ef9b['getAttribute']('listItemId');if(!_0x14abcd)return!0x1;if(_0x14abcd==_0x3e3cd5['data']['newValue'])return'newValue';if(_0x14abcd==_0x3e3cd5['data']['oldValue'])return'oldValue';_0x16ef9b=_0x16ef9b['previousSibling'];}return!0x1;}class q extends _0xeec5ec{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2e9eba=this['editor']['config']['get']('list.properties'),_0x177cc1=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e9eba['styles']&&(_0x177cc1['enableDefaultAttributesIntegration']('listStyle'),_0x177cc1['registerBlockAttribute']('listStyle')),_0x2e9eba['reversed']&&(_0x177cc1['enableDefaultAttributesIntegration']('listReversed'),_0x177cc1['registerBlockAttribute']('listReversed')),_0x2e9eba['startIndex']&&(_0x177cc1['enableDefaultAttributesIntegration']('listStart'),_0x177cc1['registerBlockAttribute']('listStart'));const _0x56b2ea={'type':'format','content':''};_0x177cc1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ed360=this['editor']['locale'];_0x177cc1['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4ed360,'FORMAT_LIST_REVERSED')),_0x177cc1['descriptionFactory']['registerDescriptionCallback'](_0x9b95a=>{const {data:_0x2cbda4}=_0x9b95a;if(_0x2cbda4&&'listReversed'==_0x2cbda4['key'])return null==_0x2cbda4['newValue']||0x0==_0x2cbda4['newValue']&&null==_0x2cbda4['oldValue']?_0x56b2ea:void 0x0;}),_0x177cc1['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4ed360,'FORMAT_LIST_START')),_0x177cc1['descriptionFactory']['registerDescriptionCallback'](_0x532472=>{const {data:_0x22e3d6}=_0x532472;if(_0x22e3d6&&'listStart'==_0x22e3d6['key'])return null==_0x22e3d6['newValue']||0x1==_0x22e3d6['newValue']&&null==_0x22e3d6['oldValue']?_0x56b2ea:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x30feaf=>{if(_0x30feaf['batch']['isUndo'])return!0x1;let _0x4c3d64=!0x1;const _0x9646cc=_0x177cc1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c06a1=>{const _0x2e52eb=_0x177cc1['_getAttributeKey'](_0x4c06a1);return'listStart'==_0x2e52eb||'listReversed'==_0x2e52eb;});for(const _0x140de3 of _0x9646cc){const _0xf95639=_0x140de3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xf95639||'customNumbered'==_0xf95639)continue;_0x177cc1['_findSuggestions'](_0x140de3['getFirstRange'](),'attribute')['find'](_0x9d22c1=>'listType'==_0x177cc1['_getAttributeKey'](_0x9d22c1['suggestion']))||(_0x30feaf['removeMarker'](_0x140de3['getFirstMarker']()),_0x4c3d64=!0x0);}return _0x4c3d64;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2093ee){const _0x4ecfe2=this['editor']['locale'],{data:_0x4f671b}=_0x2093ee,_0x226a45={'type':'format','content':''};if(!_0x4f671b||'listStyle'!=_0x4f671b['key'])return;if(!_0x4f671b['oldValue'])return'default'==_0x4f671b['newValue']?_0x226a45:{'type':'format','content':''+o(_0x4ecfe2,'*Set\x20format:*\x20%0',o(_0x4ecfe2,this['_getTranslationKeyForListStyle'](_0x4f671b['newValue'])))};if(!_0x4f671b['newValue']){if('default'==_0x4f671b['oldValue'])return _0x226a45;let _0x254ccd=_0x2093ee['head'];for(;_0x254ccd;){if(_0x254ccd['data']&&'listType'==_0x254ccd['data']['key']&&_0x254ccd['data']['newValue'])return _0x226a45;_0x254ccd=_0x254ccd['next'];}return{'type':'format','content':''+o(_0x4ecfe2,'*Remove\x20format:*\x20%0',o(_0x4ecfe2,this['_getTranslationKeyForListStyle'](_0x4f671b['oldValue'])))};}if('default'!=_0x4f671b['newValue'])return{'type':'format','content':''+o(_0x4ecfe2,'*Set\x20format:*\x20%0',o(_0x4ecfe2,this['_getTranslationKeyForListStyle'](_0x4f671b['newValue'])))};let _0x49549d=_0x2093ee['head'];for(;_0x49549d;){if(_0x49549d['data']&&'listType'==_0x49549d['data']['key']&&_0x49549d['data']['newValue']&&_0x49549d['data']['oldValue'])return _0x226a45;_0x49549d=_0x49549d['next'];}return{'type':'format','content':o(_0x4ecfe2,'*Set\x20format:*\x20%0',o(_0x4ecfe2,'ELEMENT_'+_0x2093ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4ea5f9=this['editor'],_0x1354a8=_0x4ea5f9['locale'];_0x4ea5f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ac583=>{if('formatBlock'!=_0x2ac583['type'])return;const {data:_0x1bf741}=_0x2ac583;if(!_0x1bf741)return;let _0x25c58b,_0x5ba03b;switch(_0x1bf741['commandName']){case'listStyle':_0x25c58b='*Change\x20to:*\x20%0',_0x5ba03b={'type':'format','content':o(_0x1354a8,_0x25c58b,o(_0x1354a8,this['_getTranslationKeyForListStyle'](_0x1bf741['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25c58b=_0x1bf741['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5ba03b={'type':'format','content':o(_0x1354a8,_0x25c58b)};break;case'listStart':_0x25c58b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5ba03b={'type':'format','content':o(_0x1354a8,_0x25c58b,_0x1bf741['commandParams'][0x0]['startIndex'])};}return _0x5ba03b;});}['_getTranslationKeyForListStyle'](_0x27b0d8){return'ELEMENT_'+function(_0x3bbe32){if(Se['includes'](_0x3bbe32))return'bulleted';if(_e['includes'](_0x3bbe32))return'numbered';return null;}(_0x27b0d8)['toUpperCase']()+'_LIST_'+_0x27b0d8['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xeec5ec{['afterInit'](){const _0x26fff0=this['editor'];_0x26fff0['commands']['get']('emoji')&&_0x26fff0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xeec5ec{static get['requires'](){return[_0x2e8560];}['init'](){const _0x5a76b9=this['editor'],_0x324be6=_0x5a76b9['plugins']['get']('TrackChangesEditing'),_0x4383e1=_0x5a76b9['commands']['get']('enter');_0x324be6['enableCommand']('enter',()=>{_0x5a76b9['model']['change'](_0x46a08c=>{const _0x4d35bf=_0x5a76b9['model']['document']['selection'],_0x566b2d=_0x4d35bf['getFirstPosition'](),_0x2d9891=_0x414e2a['fromRange'](_0x4d35bf['getFirstRange']());if(_0x4383e1['enterBlock'](_0x46a08c)){const _0x1f9389=_0x5a76b9['model']['createPositionAt'](_0x566b2d['parent']['nextSibling'],0x0),_0x1617e4=_0x46a08c['createRange'](_0x566b2d,_0x1f9389);_0x324be6['markInsertion'](_0x1617e4);}else _0x46a08c['setSelection'](_0x46a08c['createRange'](_0x2d9891['end']));_0x2d9891['detach'](),_0x4383e1['fire']('afterExecute',{'writer':_0x46a08c});});}),_0x5a76b9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5a76b9,'split'),{'priority':'high'}),_0x5a76b9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3ea6ac,_0x59dbd1,_0x29f185)=>{const _0x48d584=_0x29f185['mapper']['markerNameToElements'](_0x59dbd1['markerName']);if(_0x48d584){for(const _0x1e32e9 of _0x48d584)_0x1e32e9['hasClass']('ck-suggestion-marker-split')&&(_0x29f185['mapper']['unbindElementFromMarkerName'](_0x1e32e9,_0x59dbd1['markerName']),_0x29f185['writer']['remove'](_0x1e32e9));}},{'priority':'high'}),_0x5a76b9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x575005,_0x4f6193,_0x967e7b)=>{_0x967e7b['options']['showSuggestionHighlights']&&De(_0x5a76b9,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x575005,_0x4f6193,_0x967e7b);},{'priority':'high'});}}class Q extends _0xeec5ec{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x175474=this['editor']['plugins']['get']('TrackChangesEditing');_0x175474['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x175474['enableCommand']('findNext'),_0x175474['enableCommand']('findPrevious'),_0x175474['enableCommand']('replace'),_0x175474['enableCommand']('replaceAll');}['handleFindCommand'](_0x2758d0,_0x210084,_0x9c136d={}){const _0x21b8cb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2758d0(_0x2dfc0f=>{let _0x1204f6=('string'==typeof _0x210084?_0x21b8cb['findByTextCallback'](_0x210084,_0x9c136d):_0x210084)(_0x2dfc0f);Array['isArray'](_0x1204f6)&&(_0x1204f6={'results':_0x1204f6,'searchText':'string'==typeof _0x210084?_0x210084:''});const _0x42f71f=_0x1204f6['results']['filter'](_0x5a25eb=>!0x1===this['_isInDeletionRange'](_0x5a25eb,_0x2dfc0f['item']));return{..._0x1204f6,'results':_0x42f71f};},_0x9c136d);}['_isInDeletionRange'](_0x1186dc,_0x185edb){const _0x3695bf=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x185edb,_0x1186dc['start']),this['editor']['model']['createPositionAt'](_0x185edb,_0x1186dc['end']));for(const _0x4b6b0c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3695bf['getIntersection'](_0x4b6b0c['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xeec5ec{['afterInit'](){const _0x170133=this['editor']['locale'],_0x56f6eb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x151bdf,commandName:_0x43a444}of eo)this['editor']['plugins']['has'](_0x151bdf)&&(_0x56f6eb['enableDefaultAttributesIntegration'](_0x43a444),_0x56f6eb['registerInlineAttribute'](_0x43a444));_0x56f6eb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x170133,'FORMAT_FONT_SIZE')),_0x56f6eb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x170133,'FORMAT_FONT_FAMILY')),_0x56f6eb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x170133,'FORMAT_FONT_COLOR')),_0x56f6eb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x170133,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2123a3=this['editor'],_0x28338f=_0x2123a3['locale'];_0x2123a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14d701=>{const _0xb074b7=_0x28338f['t'];if('formatInline'!=_0x14d701['type'])return;const {data:_0x5069b3}=_0x14d701;if(null!=_0x5069b3){if('fontSize'==_0x5069b3['commandName']){const _0x2f80d5=_0x5069b3['commandParams'][0x0]['value'];if(_0x2f80d5){const _0x2cb51b=_0xb074b7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x45f1ab=>_0x45f1ab['model']==_0x2f80d5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x28338f,'*Set\x20font\x20size:*\x20%0',_0x2cb51b)};}return{'type':'format','content':o(_0x28338f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5069b3['commandName']){const _0x28c068=_0x5069b3['commandParams'][0x0]['value'];return _0x28c068?{'type':'format','content':o(_0x28338f,'*Set\x20font\x20family:*\x20%0',_0x28c068)}:{'type':'format','content':o(_0x28338f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5069b3['commandName']){const _0x3345c6=_0x5069b3['commandParams'][0x0]['value'];if(_0x3345c6){const _0x34cf8d=_0x990569(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3a8c1d=>_0x3a8c1d['model']==_0x3345c6);let _0x53d218=_0x3345c6,_0x15143e='';return _0x34cf8d&&(_0x53d218=_0x34cf8d['label'],_0x15143e=_0xb074b7(_0x53d218)['toLowerCase']()),{'type':'format','content':o(_0x28338f,'*Set\x20font\x20color:*\x20%0',_0x15143e)['trim'](),'color':{'value':_0x3345c6,'title':_0x15143e||_0x53d218}};}return{'type':'format','content':o(_0x28338f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5069b3['commandName']){const _0x264ebd=_0x5069b3['commandParams'][0x0]['value'];if(_0x264ebd){const _0x3155a8=_0x990569(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x280d60=>_0x280d60['model']==_0x264ebd);let _0x2ef4d5=_0x264ebd,_0x1afa31='';return _0x3155a8&&(_0x2ef4d5=_0x3155a8['label'],_0x1afa31=_0xb074b7(_0x2ef4d5)['toLowerCase']()),{'type':'format','content':o(_0x28338f,'*Set\x20font\x20background\x20color:*\x20%0',_0x1afa31)['trim'](),'color':{'value':_0x264ebd,'title':_0x1afa31||_0x2ef4d5}};}return{'type':'format','content':o(_0x28338f,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xeec5ec{['afterInit'](){const _0x1e726f=this['editor'],_0x1557e1=_0x1e726f['plugins']['get']('TrackChangesEditing'),_0xbd35b6=_0x1e726f['commands']['get']('copyFormat'),_0x4462b1=_0x1e726f['commands']['get']('pasteFormat');_0xbd35b6&&_0x4462b1&&(_0x1557e1['enableDefaultAttributesIntegration']('pasteFormat'),_0x1557e1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3be4eb=this['editor'],_0x55fc12=_0x3be4eb['locale'];_0x3be4eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4991ff=>{if('formatBlock'!=_0x4991ff['type']&&'formatInline'!=_0x4991ff['type'])return;const {data:_0x55e3ca}=_0x4991ff;if(_0x55e3ca&&'pasteFormat'===_0x55e3ca['commandName']){const _0x4fc21b=[],_0x46851b=_0x55e3ca['commandParams'][0x0];for(const [_0x49974c,_0x92c42e]of Object['entries'](_0x46851b))_0x4fc21b['push'](ro(_0x3be4eb,_0x49974c,_0x92c42e));return _0x4fc21b['length']?{'type':'format','content':o(_0x55fc12,'*Set\x20format\x20to:*\x20%0',_0x4fc21b['join'](',\x20'))}:{'type':'format','content':o(_0x55fc12,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x200a9f,_0x75f6eb,_0x11fc45){const _0x5232b4=_0x200a9f['locale']['t'],_0x5826d3=_0x75f6eb['split'](/(?=[A-Z])/)['join']('\x20'),_0x483f56=_0x5232b4(_0x5826d3['charAt'](0x0)['toUpperCase']()+_0x5826d3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x11fc45)return _0x483f56;if('fontColor'===_0x75f6eb||'fontBackgroundColor'===_0x75f6eb){const _0x33b6f7=_0x990569(_0x200a9f['config']['get']('fontColor.colors'))['find'](_0x3e7f32=>_0x3e7f32['model']==_0x11fc45);return _0x483f56+'\x20('+(_0x33b6f7?_0x5232b4(_0x33b6f7['label'])['toLowerCase']():_0x11fc45)+')';}if('fontSize'===_0x75f6eb&&isNaN(parseFloat(_0x11fc45))){const _0x34fc90=_0x200a9f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x200a9f['config']['get']('fontSize.options'))['find'](_0x57a5f2=>_0x57a5f2['model']==_0x11fc45);return _0x483f56+'\x20('+(_0x34fc90?_0x5232b4(_0x34fc90['title'])['toLowerCase']():_0x11fc45)+')';}return _0x483f56+'\x20('+_0x11fc45+')';}class Z extends _0xeec5ec{['_headingOptions'];['afterInit'](){const _0x5c0bad=this['editor'];if(!_0x5c0bad['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5c0bad['config']['get']('heading.options');const _0x10520f=_0x5c0bad['locale'],_0x108ceb=_0x5c0bad['plugins']['get']('TrackChangesEditing');_0x108ceb['enableDefaultAttributesIntegration']('heading');for(const _0x2ae9aa of this['_headingOptions'])'paragraph'!=_0x2ae9aa['model']&&_0x108ceb['descriptionFactory']['registerElementLabel'](_0x2ae9aa['model'],_0x2545ef=>{const _0x5557d2=this['_getHeadingLevel'](_0x2ae9aa['model']);return null!==_0x5557d2?_0x5f103d(_0x2545ef,_0x5557d2):_0x1d75ff(_0x2545ef,_0x2ae9aa['title']);});function _0x5f103d(_0x55a71f,_0x295fc1){return o(_0x10520f,'ELEMENT_HEADING',[_0x55a71f,_0x295fc1]);}function _0x1d75ff(_0x335cc4,_0x4a6ff1){return o(_0x10520f,'ELEMENT_HEADING_CUSTOM',[_0x335cc4,_0x4a6ff1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x202638=this['editor'],_0x22721f=_0x202638['locale'];function _0x19d32f(_0x344e2a,_0x54c26f){return o(_0x22721f,'ELEMENT_HEADING_CUSTOM',[_0x344e2a,_0x54c26f]);}_0x202638['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xac74df=>{if('formatBlock'!=_0xac74df['type'])return;const {data:_0x5d2158}=_0xac74df;if(_0x5d2158&&'heading'==_0x5d2158['commandName']){const _0x3fa58f=_0x5d2158['commandParams'][0x0]['value'],_0x5bd51d=this['_getHeadingLevel'](_0x3fa58f);if(null!==_0x5bd51d)return{'type':'format','content':o(_0x22721f,'*Change\x20to:*\x20%0',(_0x2d0836=0x1,_0x1a6b81=_0x5bd51d,o(_0x22721f,'ELEMENT_HEADING',[_0x2d0836,_0x1a6b81])))};const _0x3b4801=this['_headingOptions']['find'](_0x311b17=>_0x311b17['model']===_0x3fa58f)['title'];return{'type':'format','content':o(_0x22721f,'*Change\x20to:*\x20%0',_0x19d32f(0x1,_0x3b4801))};}var _0x2d0836,_0x1a6b81;});}['_getHeadingLevel'](_0x10a83d){const _0x4e26fb=_0x10a83d['match'](/^heading(\d+)/);if(_0x4e26fb)return _0x4e26fb[0x1];const _0xb8abc7=this['_headingOptions']?.['find'](_0x42d506=>_0x42d506['model']==_0x10a83d);if(_0xb8abc7&&_0xb8abc7['view']){const _0x4e6013=_0xb8abc7['view'],_0x59fea1=(_0x4e6013['name']??_0x4e6013)['match'](/^h(\d+)/);if(_0x59fea1)return _0x59fea1[0x1];}return null;}}class tt extends _0xeec5ec{['afterInit'](){const _0x2a9120=this['editor'];if(!_0x2a9120['plugins']['has']('HighlightEditing'))return;const _0x5e8fb0=_0x2a9120['plugins']['get']('TrackChangesEditing'),_0x21cd8e=_0x2a9120['locale'];_0x5e8fb0['enableDefaultAttributesIntegration']('highlight'),_0x5e8fb0['registerInlineAttribute']('highlight'),_0x5e8fb0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x21cd8e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16849e=this['editor'],_0x404a7e=_0x16849e['locale'];_0x16849e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b4dc0=>{if('formatInline'!=_0x3b4dc0['type'])return;const {data:_0x16bd5c}=_0x3b4dc0;if(_0x16bd5c&&'highlight'==_0x16bd5c['commandName']){const _0x45e3f9=_0x404a7e['t'],_0x204368=_0x16bd5c['commandParams'][0x0]['value'];if(_0x204368){const _0x273e91=_0x16849e['config']['get']('highlight.options')['find'](_0x147756=>_0x147756['model']==_0x204368),_0x55c2ca=_0x45e3f9(_0x273e91['title'])['toLowerCase']();return{'type':'format','content':o(_0x404a7e,'*Set\x20highlight:*\x20%0',_0x55c2ca),'color':{'value':_0x273e91['color'],'title':_0x273e91['title']}};}return{'type':'format','content':o(_0x404a7e,'*Remove\x20highlight*',o(_0x404a7e,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xeec5ec{['afterInit'](){const _0x3b0e59=this['editor'];if(!_0x3b0e59['plugins']['has']('HorizontalLineEditing'))return;_0x3b0e59['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3f7047=_0x3b0e59['plugins']['get']('TrackChangesEditing'),_0x547248=_0x3b0e59['locale'];_0x3f7047['descriptionFactory']['registerElementLabel']('horizontalLine',_0x51c1d0=>o(_0x547248,'ELEMENT_HORIZONTAL_LINE',_0x51c1d0)),_0x3b0e59['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5674e3,{writer:_0x163863,options:_0x28c8ce})=>{if(!_0x28c8ce['showSuggestionHighlights'])return null;const _0x316611=_0x163863['createContainerElement']('div'),_0x5c01aa=_0x163863['createEmptyElement']('hr');return _0x163863['addClass']('ck-horizontal-line',_0x316611),_0x163863['insert'](_0x163863['createPositionAt'](_0x316611,0x0),_0x5c01aa),_0x316611;},'converterPriority':'high'});}}class nt extends _0xeec5ec{['afterInit'](){const _0x37de62=this['editor'];if(!_0x37de62['plugins']['has']('HtmlEmbed'))return;const _0x29d8fa=_0x37de62['plugins']['get']('TrackChangesEditing'),_0x38128a=_0x37de62['locale'];_0x29d8fa['descriptionFactory']['registerElementLabel']('rawHtml',_0x1b280e=>o(_0x38128a,'ELEMENT_HTML_EMBED',_0x1b280e)),_0x29d8fa['enableDefaultAttributesIntegration']('htmlEmbed'),_0x29d8fa['registerBlockAttribute']('value'),_0x29d8fa['descriptionFactory']['registerDescriptionCallback'](_0x238e7d=>{if('attribute'!=_0x238e7d['type'])return;const {data:_0x1833dc}=_0x238e7d;if(_0x1833dc&&'value'==_0x1833dc['key']&&_0x238e7d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x25043b=o(_0x38128a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x38128a,'*Change\x20%0\x20content*',_0x25043b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e4190=this['editor'],_0x358f97=_0x1e4190['locale'];_0x1e4190['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15d6b9=>{if('formatBlock'!=_0x15d6b9['type'])return;const {data:_0x4eb91a}=_0x15d6b9;if(_0x4eb91a&&'htmlEmbed'==_0x4eb91a['commandName']){const _0x3d0ed=o(_0x358f97,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x358f97,'*Change\x20%0\x20content*',_0x3d0ed)};}});}}class et extends _0xeec5ec{['afterInit'](){const _0xd7cd8d=this['editor'];if(!_0xd7cd8d['plugins']['has']('ImageEditing'))return;const _0x1bf7c1=_0xd7cd8d['plugins']['get']('TrackChangesEditing'),_0x4be9fe=_0xd7cd8d['plugins']['get']('ImageUtils'),_0x1cf43d=_0xd7cd8d['locale'];_0x1bf7c1['enableCommand']('insertImage'),_0x1bf7c1['descriptionFactory']['registerElementLabel']('imageBlock',_0x34865b=>o(_0x1cf43d,'ELEMENT_IMAGE',_0x34865b)),_0x1bf7c1['descriptionFactory']['registerElementLabel']('imageInline',_0x2a5f73=>o(_0x1cf43d,'ELEMENT_INLINE_IMAGE',_0x2a5f73)),_0x1bf7c1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1cf43d,'ELEMENT_CAPTION')),_0xd7cd8d['plugins']['has']('ImageUploadEditing')&&_0x1bf7c1['enableCommand']('uploadImage'),_0xd7cd8d['plugins']['has']('ImageBlockEditing')&&_0xd7cd8d['plugins']['has']('ImageInlineEditing')&&(_0x1bf7c1['enableCommand']('imageTypeInline',(_0x3ab9b2,_0x307c3a)=>{const _0x29f59b=_0x4be9fe['getClosestSelectedImageElement'](_0xd7cd8d['model']['document']['selection']);_0xd7cd8d['model']['change'](()=>{_0x1bf7c1['markBlockFormat'](_0x29f59b,{'commandName':'imageTypeInline','commandParams':[_0x307c3a]},[],'convertBlockImageToInline');});}),_0x1bf7c1['enableCommand']('imageTypeBlock',(_0x559cd7,_0x288ea)=>{_0xd7cd8d['model']['change'](_0x31da79=>{let _0x405073=_0x4be9fe['getClosestSelectedImageElement'](_0xd7cd8d['model']['document']['selection']),_0x9c7762=_0x31da79['createRangeOn'](_0x405073);const _0x2b3b8b=_0x2beb4d['fromPosition'](_0x9c7762['start'],'toPrevious'),_0x2ba8ba=_0x2beb4d['fromPosition'](_0x9c7762['end'],'toNext');_0x1bf7c1['forceDefaultExecution'](()=>_0x559cd7(_0x288ea)),_0x405073=_0x4be9fe['getClosestSelectedImageElement'](_0xd7cd8d['model']['document']['selection']),_0x9c7762=_0x31da79['createRangeOn'](_0x405073);const _0x2d1702=_0x31da79['createRange'](_0x2b3b8b,_0x2ba8ba);_0x2b3b8b['detach'](),_0x2ba8ba['detach'](),_0x1bf7c1['markBlockFormat'](_0x405073,{'commandName':'imageTypeInline','commandParams':[_0x288ea]},[],'convertInlineImageToBlock'),_0x2d1702['start']['isBefore'](_0x9c7762['start'])&&_0x1bf7c1['markInsertion'](_0x31da79['createRange'](_0x2d1702['start'],_0x9c7762['start']),'convertInlineImageToBlock'),_0x9c7762['end']['isBefore'](_0x2d1702['end'])&&_0x1bf7c1['markInsertion'](_0x31da79['createRange'](_0x9c7762['end'],_0x2d1702['end']),'convertInlineImageToBlock');});}),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1bf7c1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x51fb6d])=>{const _0x12f939=_0x1bf7c1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x20a717=_0x51fb6d['start'],_0x37d2c1=_0x51fb6d['end'];const _0x19eb7c=_0xd7cd8d['model']['schema']['getNearestSelectionRange'](_0x20a717,'backward'),_0x5e09ce=_0xd7cd8d['model']['schema']['getNearestSelectionRange'](_0x37d2c1,'forward');_0x19eb7c['isCollapsed']&&(_0x20a717=_0x19eb7c['start']),_0x5e09ce['isCollapsed']&&(_0x37d2c1=_0x5e09ce['end']),_0x12f939([_0xd7cd8d['model']['createRange'](_0x20a717,_0x37d2c1)]);}),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1aaa3a),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1aaa3a)),_0xd7cd8d['plugins']['has']('ImageCaptionEditing')&&(_0x1bf7c1['enableCommand']('toggleImageCaption',(_0x1ed203,_0x4f0752)=>{const _0x5b67ea=_0xd7cd8d['plugins']['get']('ImageCaptionUtils');let _0x1932b9=_0x4be9fe['getClosestSelectedImageElement'](_0xd7cd8d['model']['document']['selection']),_0x39e0be=_0x5b67ea['getCaptionFromImageModelElement'](_0x1932b9);_0xd7cd8d['model']['change'](()=>{if(_0x39e0be)return void _0x1bf7c1['markDeletion'](_0xd7cd8d['model']['createRangeOn'](_0x39e0be));const _0x558242=_0x4be9fe['isBlockImage'](_0x1932b9);_0x1ed203(_0x4f0752),_0x1932b9=_0x4be9fe['getClosestSelectedImageElement'](_0xd7cd8d['model']['document']['selection']),_0x39e0be=_0x5b67ea['getCaptionFromImageModelElement'](_0x1932b9),_0x1bf7c1['markInsertion'](_0xd7cd8d['model']['createRangeOn'](_0x39e0be),_0x558242?null:'imageCaption');});}),_0x1bf7c1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1aaa3a));const _0x597a0c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4b019f(_0x52e624,_0xdbe108){const _0x2e5b46=_0x597a0c['findIndex'](({type:_0x1ad251,subType:_0x291dd9})=>_0x52e624['type']==_0x1ad251&&_0x52e624['subType']==_0x291dd9),_0xa198d9=_0x597a0c['findIndex'](({type:_0x27b3d7,subType:_0x385e7a})=>_0xdbe108['type']==_0x27b3d7&&_0xdbe108['subType']==_0x385e7a);if(_0x2e5b46<0x0||_0xa198d9<0x0)return!0x1;const _0x2c4fda=_0x52e624['getFirstRange'](),_0x5d2828=_0xdbe108['getFirstRange']();if((0x0==_0x2e5b46||0x1==_0x2e5b46)&&0x2==_0xa198d9&&_0x2c4fda['isIntersecting'](_0x5d2828))return!0x0;if(0x2==_0x2e5b46&&0x3==_0xa198d9){const _0x2c7a92=_0x1bf7c1['_findSuggestions'](_0x2c4fda,'insertion')['filter'](({suggestion:_0xe24c50,meta:_0x2af737})=>_0x2af737['isOwn']&&'convertInlineImageToBlock'==_0xe24c50['subType']);if(_0x2c7a92['length']>0x1&&_0x5d2828['end']['isEqual'](_0x2c4fda['start']))return!0x0;if(0x1==_0x2c7a92['length']&&(_0x2c4fda['start']['isEqual'](_0x5d2828['end'])||_0x2c4fda['end']['isEqual'](_0x5d2828['start'])))return!0x0;}if(0x3==_0x2e5b46&&0x3==_0xa198d9&&_0x2c4fda['start']['isBefore'](_0x5d2828['start'])){const _0x44565e=_0x2c4fda['end']['nodeAfter'],_0x426e6d=_0x5d2828['start']['nodeBefore'];return _0x4be9fe['isBlockImage'](_0x44565e)&&_0x44565e===_0x426e6d;}return!0x1;}function _0x1aaa3a(_0x109ca3,_0x5840dd){return _0x4b019f(_0x109ca3,_0x5840dd)?[_0x109ca3,_0x5840dd]:_0x4b019f(_0x5840dd,_0x109ca3)?[_0x5840dd,_0x109ca3]:null;}_0xd7cd8d['plugins']['has']('ImageResize')&&(_0x1bf7c1['enableDefaultAttributesIntegration']('resizeImage'),_0x1bf7c1['registerBlockAttribute']('resizedWidth'),_0x1bf7c1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1cf43d,'FORMAT_IMAGE_SIZE'))),_0xd7cd8d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1bf7c1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1bf7c1['registerBlockAttribute']('alt')),_0xd7cd8d['plugins']['has']('PictureEditing')&&(_0x1bf7c1['registerBlockAttribute']('sources'),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0x2ca356=>{if('attribute'!=_0x2ca356['type'])return;const {data:_0x40faba}=_0x2ca356;return _0x40faba&&'sources'==_0x40faba['key']?{'type':'format','content':''}:void 0x0;})),_0xd7cd8d['plugins']['has']('ImageSizeAttributes')&&(_0x1bf7c1['registerBlockAttribute']('width'),_0x1bf7c1['registerBlockAttribute']('height'),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0x1be84e=>{if('attribute'!=_0x1be84e['type'])return;const {data:_0x26165c}=_0x1be84e;return!_0x26165c||'width'!=_0x26165c['key']&&'height'!=_0x26165c['key']?void 0x0:{'type':'format','content':''};})),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0x10a525=>{if(!!_0x597a0c['find'](({type:_0x5a0e75,subType:_0x2e7c17})=>_0x10a525['type']==_0x5a0e75&&_0x10a525['subType']==_0x2e7c17))return _0x10a525['previous']?{}:void 0x0;}),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0x35a642=>{if('insertion'==_0x35a642['type']||'deletion'==_0x35a642['type']){const _0x130152=_0x35a642['getContainedElement']();if(_0x130152&&_0x130152['is']('element','caption'))return{'type':'insertion'==_0x35a642['type']?'addObject':'removeObject','element':_0x130152,'quantity':0x1};}}),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0xb31477=>'formatBlock'==_0xb31477['type']&&'convertInlineImageToBlock'==_0xb31477['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xb31477['type']&&'convertBlockImageToInline'==_0xb31477['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1bf7c1['descriptionFactory']['registerDescriptionCallback'](_0xeec308=>{if('attribute'!=_0xeec308['type'])return;const {data:_0x23310c}=_0xeec308;if(!_0x23310c||'alt'!=_0x23310c['key'])return;const _0x4f65b3=_0x23310c['newValue'];return _0x4f65b3?{'type':'format','content':o(_0x1cf43d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f65b3+'\x22')}:{'type':'format','content':o(_0x1cf43d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5833c1=this['editor'],_0x359a72=_0x5833c1['locale'];_0x5833c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e7fb5=>{if('formatBlock'!=_0x2e7fb5['type']&&'formatInline'!=_0x2e7fb5['type'])return;const {data:_0x30a975}=_0x2e7fb5;if(_0x30a975){if('imageTextAlternative'==_0x30a975['commandName']){const _0x587862=_0x30a975['commandParams'][0x0]['newValue'];return _0x587862?{'type':'format','content':o(_0x359a72,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x587862+'\x22')}:{'type':'format','content':o(_0x359a72,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x30a975['commandName']){const _0xacc0b7=_0x30a975['commandParams'][0x0]['width'];return _0xacc0b7?{'type':'format','content':o(_0x359a72,'*Set\x20image\x20width:*\x20%0',_0xacc0b7)}:{'type':'format','content':o(_0x359a72,'*Reset\x20image\x20width*')};}}});}}class st extends _0xeec5ec{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1cba85=this['editor']['locale'],_0x32f9cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x32f9cd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x32f9cd['registerBlockAttribute']('src'),_0x32f9cd['descriptionFactory']['registerDescriptionCallback'](_0x168619=>{if('attribute'!=_0x168619['type'])return;const {data:_0x27d46e}=_0x168619;return _0x27d46e&&'src'==_0x27d46e['key']?_0x27d46e['newValue']&&_0x27d46e['oldValue']?{'type':'format','content':o(_0x1cba85,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x305e59=this['editor']['plugins']['get']('TrackChangesEditing');_0x305e59['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x305e59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x305e59['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x305e59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42bba9=this['editor'],_0x6b10de=_0x42bba9['locale'];_0x42bba9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bd8bc=>{if('formatBlock'!=_0x1bd8bc['type']&&'formatInline'!=_0x1bd8bc['type'])return;const {data:_0x21f9e8}=_0x1bd8bc;if(!_0x21f9e8||'replaceImageSource'!=_0x21f9e8['commandName'])return;return{'type':'format','content':o(_0x6b10de,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xeec5ec{['afterInit'](){const _0x31a897=this['editor'];if(!_0x31a897['plugins']['has']('ImageStyleEditing'))return;const _0x1eb554=_0x31a897['plugins']['get']('TrackChangesEditing'),_0x131ca5=_0x31a897['plugins']['get']('ImageUtils'),_0x671efa={};_0x1eb554['enableCommand']('imageStyle',(_0x231fd1,_0x146350)=>{const _0x267680=_0x31a897['plugins']['get']('Users')['me'],_0x53ff52=_0x31a897['commands']['get']('imageStyle');let _0x2a4a00=_0x131ca5['getClosestSelectedImageElement'](_0x31a897['model']['document']['selection']),_0x590340=_0x31a897['model']['createRangeOn'](_0x2a4a00),_0x5d81f6=_0x53ff52['value'];if(_0x5d81f6==_0x146350['value'])return;const _0x1483cc={'commandName':'imageStyle','commandParams':[_0x146350],'formatGroupId':_0x1a8355()};_0x31a897['model']['change'](()=>{if(_0x1eb554['getSuggestions']()['filter'](_0x5e3739=>_0x5e3739['isInContent']&&_0x267680==_0x5e3739['author']&&('formatBlock'==_0x5e3739['type']||'formatInline'==_0x5e3739['type'])&&('imageStylePreApply'==_0x5e3739['subType']||'imageStylePostApply'==_0x5e3739['subType'])&&_0x5e3739['getFirstRange']()['isEqual'](_0x590340))['forEach'](_0x103d7d=>_0x1eb554['discardSuggestion'](_0x103d7d['head'])),_0x2a4a00=_0x131ca5['getClosestSelectedImageElement'](_0x31a897['model']['document']['selection']),_0x590340=_0x31a897['model']['createRangeOn'](_0x2a4a00),_0x53ff52['refresh'](),_0x31a897['commands']['get']('imageTypeInline')['refresh'](),_0x31a897['commands']['get']('imageTypeBlock')['refresh'](),_0x5d81f6=_0x53ff52['value'],_0x5d81f6!=_0x146350['value'])return _0x131ca5['isInlineImage'](_0x2a4a00)&&_0x53ff52['shouldConvertImageType'](_0x146350['value'],_0x2a4a00)?(_0x231fd1({..._0x146350,'setImageSizes':!0x1}),_0x2a4a00=_0x131ca5['getClosestSelectedImageElement'](_0x31a897['model']['document']['selection']),void _0x1eb554['markBlockFormat'](_0x2a4a00,{..._0x1483cc,'commandReversedParams':[{'value':_0x5d81f6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x131ca5['isBlockImage'](_0x2a4a00)?_0x1eb554['markBlockFormat'](_0x2a4a00,_0x1483cc,[],'imageStylePostApply'):_0x1eb554['markInlineFormat'](_0x590340,_0x1483cc,'imageStylePostApply'));});});for(const _0x3810fa of _0x31a897['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x671efa[_0x3810fa['name']]=_0x3810fa['title']['toLowerCase']();_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4706d6])=>{_0x131ca5['setImageNaturalSizeAttributes'](_0x4706d6['getContainedElement']());}),_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x18eeea,_0x58d239)=>{_0x1eb554['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x18eeea,{'commandName':_0x58d239['commandName'],'commandParams':_0x58d239['commandReversedParams']});}),_0x1eb554['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5eb4ff,_0x4ce79c){if(_0x238387(_0x5eb4ff,_0x4ce79c))return[_0x5eb4ff,_0x4ce79c];if(_0x238387(_0x4ce79c,_0x5eb4ff))return[_0x4ce79c,_0x5eb4ff];return null;});const _0x15a615=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x238387(_0x2c3c8a,_0x237bf0){const _0x580175=_0x15a615['findIndex'](({type:_0x5b717e,subType:_0x1ad8fc})=>_0x2c3c8a['type']==_0x5b717e&&_0x2c3c8a['subType']==_0x1ad8fc),_0x358f65=_0x15a615['findIndex'](({type:_0x136356,subType:_0x1a12a8})=>_0x237bf0['type']==_0x136356&&_0x237bf0['subType']==_0x1a12a8);if(_0x580175<0x0||_0x358f65<0x0)return!0x1;const _0x1b6d6b=_0x2c3c8a['getFirstRange'](),_0x30ac76=_0x237bf0['getFirstRange']();if((0x0==_0x580175||0x1==_0x580175)&&0x2==_0x358f65&&_0x1b6d6b['isIntersecting'](_0x30ac76))return!0x0;if(0x2==_0x580175&&0x3==_0x358f65){const _0x85c732=_0x1eb554['_findSuggestions'](_0x1b6d6b,'insertion')['filter'](({suggestion:_0x194218,meta:_0x49a97a})=>_0x49a97a['isOwn']&&'convertInlineImageToBlock'==_0x194218['subType']);if(_0x85c732['length']>0x1&&_0x30ac76['end']['isEqual'](_0x1b6d6b['start']))return!0x0;if(0x1==_0x85c732['length']&&(_0x1b6d6b['start']['isEqual'](_0x30ac76['end'])||_0x1b6d6b['end']['isEqual'](_0x30ac76['start'])))return!0x0;}if(0x3==_0x580175&&0x3==_0x358f65&&_0x1b6d6b['start']['isBefore'](_0x30ac76['start'])){const _0x46b1d4=_0x1b6d6b['end']['nodeAfter'],_0x476d28=_0x30ac76['start']['nodeBefore'];return _0x131ca5['isBlockImage'](_0x46b1d4)&&_0x46b1d4===_0x476d28;}return!0x1;}_0x31a897['model']['document']['registerPostFixer'](()=>{let _0x428354=!0x1;const _0x569b8f=Array['from'](_0x31a897['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x40f435,data:_0x2903eb}of _0x569b8f){const {group:_0x5a75ad,type:_0x4a64eb,subType:_0x693ef2,id:_0x1c4c25}=_0x1eb554['_splitMarkerName'](_0x40f435);if('suggestion'==_0x5a75ad&&_0x1eb554['hasSuggestion'](_0x1c4c25)){if('formatBlock'==_0x4a64eb&&('imageStylePreApply'==_0x693ef2||'imageStylePostApply'==_0x693ef2)){const _0x45acdb=_0x1eb554['getSuggestion'](_0x1c4c25);if(_0x2903eb['newRange']){const _0x312792=_0x45acdb['getFirstRange']()['getContainedElement']();if(_0x131ca5['isBlockImage'](_0x312792))continue;_0x1eb554['discardSuggestion'](_0x45acdb),_0x428354=!0x0;}}if('insertion'==_0x4a64eb&&'imageCaption'==_0x693ef2&&!_0x2903eb['newRange']){const _0x1cd3a9=_0x1eb554['getSuggestion'](_0x1c4c25);_0x1cd3a9['next']&&_0x1cd3a9['next']['isInContent']&&(_0x1eb554['discardSuggestion'](_0x1cd3a9['next']),_0x428354=!0x0);}}}return _0x428354;}),this['_registerLegacyDescription'](_0x671efa);}['_registerLegacyDescription'](_0x387c6e){const _0x1dca7c=this['editor'],_0x363ba4=_0x1dca7c['locale'];_0x1dca7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeb15e3=>{if('formatBlock'!=_0xeb15e3['type']&&'formatInline'!=_0xeb15e3['type'])return;const {data:_0x2ce258}=_0xeb15e3;if(!_0x2ce258||'imageStyle'!=_0x2ce258['commandName'])return;const _0x588c6f=_0x2ce258['commandParams'][0x0]['value'];return _0x2133cd('side'===_0x588c6f?o(_0x363ba4,'FORMAT_SIDE_IMAGE'):_0x387c6e[_0x588c6f]||_0x588c6f);function _0x2133cd(_0x5b4847){return{'type':'format','content':o(_0x363ba4,'*Format:*\x20%0',_0x5b4847)};}});}}class rt extends _0xeec5ec{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3a94db){super(_0x3a94db),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x234353=this['editor'],_0xff514e=_0x234353['commands']['get']('importWord'),_0x126c1e=_0x234353['commands']['get']('trackChanges');_0xff514e&&(_0xff514e['on']('execute',(_0x5912bf,[,_0x228946])=>{this['_trackChangesValueDuringImport']=_0x126c1e['value'],_0x228946['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xff514e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xff514e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x126c1e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x234353['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4681ae,_0x722978){const {suggestions:_0x3ba569}=_0x722978,_0x1ac7d8=this['editor']['commands']['get']('trackChanges'),_0x166d8a=_0x1ac7d8['value'];this['_trackChangesValueDuringImport']!==_0x166d8a&&(_0x1ac7d8['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ba569&&_0x3ba569['forEach'](({id:_0xcffcd1,type:_0x149427,author:_0x1b0ea6,created_at:_0x2d34b2})=>{const _0x454a0e={'id':_0xcffcd1,'type':_0x149427,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1b0ea6,'createdAt':_0x2d34b2?new Date(_0x2d34b2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x454a0e);});}}class at extends _0xeec5ec{['afterInit'](){const _0xe0fcf5=this['editor'],_0x956643=_0xe0fcf5['plugins']['get']('TrackChangesEditing');if(_0xe0fcf5['plugins']['has']('IndentEditing')&&(_0x956643['enableCommand']('indent'),_0x956643['enableCommand']('outdent')),_0xe0fcf5['plugins']['has']('IndentBlock')){for(const _0x5f3bf2 of['indentBlock','outdentBlock'])_0x956643['enableDefaultAttributesIntegration'](_0x5f3bf2);}const _0x3ce093=_0xe0fcf5['locale'];_0x956643['registerBlockAttribute']('blockIndent'),_0x956643['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3ce093,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f2552=this['editor'],_0x4cbe15=_0x2f2552['locale'],_0x2efe8d=_0x2f2552['plugins']['get']('TrackChangesEditing');_0x2efe8d['descriptionFactory']['registerDescriptionCallback'](_0x1ffda8=>{if('formatBlock'!=_0x1ffda8['type'])return;const {data:_0x14372a}=_0x1ffda8;if(!_0x14372a)return;if('indentBlock'!=_0x14372a['commandName']&&'outdentBlock'!=_0x14372a['commandName'])return;const _0x4195bf=_0x1ffda8['getItems']()[0x0],_0x2406ee=_0x2efe8d['descriptionFactory']['getItemLabel'](_0x4195bf);return'indentBlock'==_0x14372a['commandName']?{'type':'format','content':o(_0x4cbe15,'*Indent:*\x20%0',_0x2406ee)}:'outdentBlock'==_0x14372a['commandName']?{'type':'format','content':o(_0x4cbe15,'*Outdent:*\x20%0',_0x2406ee)}:void 0x0;});}}class ct extends _0xeec5ec{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xeec5ec{['afterInit'](){const _0x123f8f=this['editor'];if(!_0x123f8f['plugins']['has']('LinkEditing'))return;const _0x3d7fde=_0x123f8f['plugins']['get']('TrackChangesEditing'),_0x391e31=_0x123f8f['commands']['get']('link');_0x3d7fde['enableDefaultAttributesIntegration']('link'),_0x3d7fde['enableDefaultAttributesIntegration']('unlink'),_0x3d7fde['registerInlineAttribute']('linkHref');for(const _0x1655ae of _0x391e31['manualDecorators'])_0x3d7fde['registerInlineAttribute'](_0x1655ae['id']),_0x3d7fde['descriptionFactory']['registerAttributeLabel'](_0x1655ae['id'],'link\x20('+_0x1655ae['label']['toLowerCase']()+')');_0x3d7fde['descriptionFactory']['registerDescriptionCallback'](_0x1a1b3b=>{if('attribute'!=_0x1a1b3b['type'])return;const {data:_0x6e7db5}=_0x1a1b3b;if(!_0x6e7db5||'linkHref'!=_0x6e7db5['key'])return;const _0x5975bb=_0x6e7db5['newValue'],_0xff9c77=_0x123f8f['locale'];return{'type':'format','content':null==_0x5975bb?o(_0xff9c77,'*Remove\x20link*'):o(_0xff9c77,'*Set\x20link:*\x20%0','\x22'+_0x5975bb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x571a95=this['editor'],_0x2858fc=_0x571a95['locale'];_0x571a95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e9acc=>{if('formatInline'!=_0x4e9acc['type'])return;const {data:_0x35f1a6}=_0x4e9acc;if(_0x35f1a6){if('link'==_0x35f1a6['commandName']){const _0x3108f7=_0x35f1a6['commandParams'][0x0];return{'type':'format','content':o(_0x2858fc,'*Set\x20link:*\x20%0','\x22'+_0x3108f7+'\x22')};}return'unlink'==_0x35f1a6['commandName']?{'type':'format','content':o(_0x2858fc,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xeec5ec{['afterInit'](){const _0x303ea7=this['editor'],_0xdfefdf=_0x303ea7['locale'];if(!_0x303ea7['plugins']['has']('LegacyListEditing'))return;const _0x3973cd=_0x303ea7['plugins']['get']('TrackChangesEditing'),_0x527898=_0x303ea7['plugins']['has']('LegacyTodoListEditing');function _0x4d23ff(_0x341d86){return()=>{const _0x229dac=_0x303ea7['model']['document']['selection'],_0x43ca10=_0x303ea7['commands']['get'](_0x341d86);if(_0x43ca10['value'])return void _0x303ea7['execute']('paragraph',{});const _0x3093f0=_0x341d86['slice'](0x0,-0x4),_0x249405=function(_0x271a4d,_0x3151bd,_0xffe199){let _0xab0f89=Array['from'](_0x271a4d)['filter'](_0x158a2c=>function(_0x49da2d,_0xe7d412){return _0xe7d412['checkChild'](_0x49da2d['parent'],'listItem')&&!_0xe7d412['isObject'](_0x49da2d);}(_0x158a2c,_0xffe199));_0xab0f89=_0xab0f89['filter'](_0x5d1d41=>!_0x5d1d41['is']('element','listItem')||_0x5d1d41['getAttribute']('listType')!=_0x3151bd);const _0xd84de3=new Set();for(const _0x5a372e of _0xab0f89)_0x5a372e['is']('element','listItem')?_0xd84de3['add'](Le(_0x5a372e)):_0xd84de3['add'](_0x5a372e);return Array['from'](_0xd84de3);}(_0x229dac['getSelectedBlocks'](),_0x3093f0,_0x303ea7['model']['schema']);_0x303ea7['model']['change'](()=>{for(const _0x2427a3 of _0x249405)_0x3973cd['markBlockFormat'](_0x2427a3,{'commandName':_0x341d86,'commandParams':[{'forceValue':!_0x43ca10['value']}],'formatGroupId':'blockName'},Ee(_0x2427a3));});};}function _0x1e0544(_0x4baff1){return()=>{const _0x5aafe3=function(_0x1a7dc6){let _0x3b3e42=Array['from'](_0x1a7dc6);const _0x33cb7e=_0x3b3e42['findIndex'](_0x4c8117=>'listItem'!=_0x4c8117['name']);return _0x33cb7e>-0x1&&(_0x3b3e42=_0x3b3e42['slice'](0x0,_0x33cb7e)),_0x3b3e42;}(_0x303ea7['model']['document']['selection']['getSelectedBlocks']()),_0x50fd0f=_0x303ea7['model']['createRange'](_0x303ea7['model']['createPositionAt'](_0x5aafe3[0x0],'before'),_0x303ea7['model']['createPositionAt'](_0x5aafe3[_0x5aafe3['length']-0x1],'end'));_0x303ea7['model']['change'](()=>{_0x3973cd['markBlockFormat'](_0x50fd0f,{'commandName':_0x4baff1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x243652){const _0x2b32dd=new Set();for(const _0x5eefc0 of _0x243652){let _0x5aec2a=_0x5eefc0['nextSibling'];for(;_0x5aec2a&&_0x5aec2a['getAttribute']('listIndent')>_0x5eefc0['getAttribute']('listIndent');)_0x2b32dd['add'](_0x5aec2a),_0x5aec2a=_0x5aec2a['nextSibling'];}return Array['from'](_0x2b32dd);}(_0x5aafe3));});};}_0x3973cd['enableCommand']('numberedList',_0x4d23ff('numberedList')),_0x3973cd['enableCommand']('bulletedList',_0x4d23ff('bulletedList')),_0x527898&&_0x3973cd['enableCommand']('todoList',_0x4d23ff('todoList')),_0x3973cd['enableCommand']('indentList',_0x1e0544('indentList')),_0x3973cd['enableCommand']('outdentList',_0x1e0544('outdentList')),_0x527898&&_0x3973cd['enableCommand']('checkTodoList',()=>{const _0x15e649=_0x303ea7['commands']['get']('checkTodoList'),_0x9c0282=Array['from'](_0x15e649['_selectedElements']);_0x9c0282['filter'](_0x4155f9=>_0x4155f9['getAttribute']('todoListChecked')!=_0x15e649['value']),_0x303ea7['model']['change'](()=>{for(const _0x3b232f of _0x9c0282)_0x3973cd['markBlockFormat'](_0x3b232f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x15e649['value']}]});});}),_0x3973cd['descriptionFactory']['registerElementLabel']('listItem',_0x47af69=>o(_0xdfefdf,'ELEMENT_LIST_ITEM',_0x47af69)),_0x3973cd['descriptionFactory']['registerDescriptionCallback'](_0x46dd18=>{if('formatBlock'!=_0x46dd18['type']&&'formatInline'!=_0x46dd18['type'])return;const {data:_0x5d9fc3}=_0x46dd18;if(_0x5d9fc3){if('numberedList'==_0x5d9fc3['commandName']||'bulletedList'==_0x5d9fc3['commandName']||'todoList'==_0x5d9fc3['commandName'])switch(_0x5d9fc3['commandName']['replace']('List','')){case'bulleted':return _0x5536b1(o(_0xdfefdf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5536b1(o(_0xdfefdf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5536b1(o(_0xdfefdf,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5d9fc3['commandName'])return{'type':'format','content':o(_0xdfefdf,'*Indent:*\x20%0',o(_0xdfefdf,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5d9fc3['commandName'])return{'type':'format','content':o(_0xdfefdf,'*Outdent:*\x20%0',o(_0xdfefdf,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5d9fc3['commandName'])return _0x5d9fc3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xdfefdf,'*Check\x20item*')}:{'type':'format','content':o(_0xdfefdf,'*Uncheck\x20item*')};}function _0x5536b1(_0x24989f){return{'type':'format','content':o(_0xdfefdf,'*Change\x20to:*\x20%0',_0x24989f)};}});}}function Le(_0x37b38a){const _0x2d5a09=_0x37b38a['getAttribute']('listIndent');if(0x0==_0x2d5a09)return _0x37b38a;let _0x25ba52=_0x37b38a;for(;_0x37b38a['previousSibling']&&_0x37b38a['previousSibling']['is']('element','listItem');){const _0x3c6058=_0x37b38a['previousSibling']['getAttribute']('listIndent');if(_0x3c6058==_0x2d5a09)_0x25ba52=_0x37b38a['previousSibling'];else{if(_0x3c6058<_0x2d5a09)break;}_0x37b38a=_0x37b38a['previousSibling'];}return _0x25ba52;}function Ee(_0x2df1a1){const _0x5ebb5c=[];if(_0x2df1a1['is']('element','listItem')&&_0x2df1a1['getAttribute']('listIndent')>0x0){let _0xef5f4a=_0x2df1a1['nextSibling'];for(;_0xef5f4a&&'listItem'==_0xef5f4a['name']&&_0xef5f4a['getAttribute']('listIndent')==_0x2df1a1['getAttribute']('listIndent');)_0x5ebb5c['push'](_0xef5f4a),_0xef5f4a=_0xef5f4a['nextSibling'];}return _0x5ebb5c;}class ht extends _0xeec5ec{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3b3e39=this['editor']['config']['get']('list.properties'),_0x459a35=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b3e39['styles']&&_0x459a35['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3b3e39['reversed']&&_0x459a35['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3b3e39['startIndex']&&_0x459a35['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x459a35['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x239352,_0x28ca14={}){const _0xd6241e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe41335=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xd6241e['markMultiRangeBlockFormat'](_0xe41335,{'commandName':'listStyle','commandParams':[{'type':_0x28ca14['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2c9074,_0x1cf506={}){const _0x2b79f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36d853=this['_getSuggestionBlocks'](_0x4fb579=>_0x4fb579['is']('element','listItem')&&'numbered'===_0x4fb579['getAttribute']('listType'));if(_0x36d853['length']<0x1)return;const _0x53058e=_0x36d853['map'](_0x53ae12=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53ae12,'before'),this['editor']['model']['createPositionAt'](_0x53ae12,0x0)));this['editor']['model']['change'](()=>{_0x2b79f3['markMultiRangeBlockFormat'](_0x53058e,{'commandName':'listReversed','commandParams':[{'reversed':_0x1cf506['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1e5084,_0x538f1f={}){const _0x22bdd2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x89a1d0=this['_getSuggestionBlocks'](_0x248454=>_0x248454['is']('element','listItem')&&'numbered'===_0x248454['getAttribute']('listType'));if(_0x89a1d0['length']<0x1)return;const _0x2e7749=_0x89a1d0['map'](_0x47838c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47838c,'before'),this['editor']['model']['createPositionAt'](_0x47838c,0x0)));this['editor']['model']['change'](()=>{_0x22bdd2['markMultiRangeBlockFormat'](_0x2e7749,{'commandName':'listStart','commandParams':[{'startIndex':_0x538f1f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x38a293){if('formatBlock'!=_0x38a293['type']&&'formatInline'!=_0x38a293['type'])return;const _0x47d465=this['editor']['locale'],{data:_0x332bb3}=_0x38a293;if(!_0x332bb3)return;let _0xdceab5,_0x5ab020;switch(_0x332bb3['commandName']){case'listStyle':_0xdceab5='*Change\x20to:*\x20%0',_0x5ab020={'type':'format','content':o(_0x47d465,_0xdceab5,o(_0x47d465,this['_getTranslationKeyForListStyle'](_0x332bb3['commandParams'][0x0]['type'])))};break;case'listReversed':_0xdceab5=_0x332bb3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5ab020={'type':'format','content':o(_0x47d465,_0xdceab5)};break;case'listStart':_0xdceab5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5ab020={'type':'format','content':o(_0x47d465,_0xdceab5,_0x332bb3['commandParams'][0x0]['startIndex'])};}return _0x5ab020;}['_getSuggestionBlocksForListStyle'](){const _0x399cfe=this['editor']['plugins']['get']('LegacyListUtils');let _0x537996=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x537996[0x0]?.['is']('element','listItem')&&_0x537996['unshift'](..._0x399cfe['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x537996[_0x537996['length']-0x1]?.['is']('element','listItem')&&_0x537996['push'](..._0x399cfe['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x537996=[...new Set(_0x537996)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x537996=_0x537996['filter'](_0x3ce180=>_0x3ce180['is']('element','listItem'))),_0x537996;}['_getSuggestionBlocks'](_0x14e3d9){const _0x570bb6=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f0bd9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x14e3d9)['map'](_0x567568=>{const _0x3568d4=this['editor']['model']['createPositionAt'](_0x567568,0x0);return[..._0x570bb6['getSiblingNodes'](_0x3568d4,'backward'),..._0x570bb6['getSiblingNodes'](_0x3568d4,'forward')];})['flat']();return _0x5f0bd9=[...new Set(_0x5f0bd9)],_0x5f0bd9;}['_getTranslationKeyForListStyle'](_0x4c6eb3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c6eb3)||'default')['toUpperCase']()+'_LIST_'+_0x4c6eb3['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xeec5ec{['afterInit'](){const _0x45a50f=this['editor'];if(!_0x45a50f['plugins']['has']('MediaEmbedEditing'))return;const _0x5ba7c8=_0x45a50f['plugins']['get']('TrackChangesEditing'),_0x346a8a=_0x45a50f['locale'];_0x5ba7c8['enableCommand']('mediaEmbed'),_0x5ba7c8['descriptionFactory']['registerElementLabel']('media',_0x10328f=>o(_0x346a8a,'ELEMENT_MEDIA',_0x10328f)),_0x45a50f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x73649a,{writer:_0x1b644c,options:_0x35d20e})=>{if(_0x35d20e['showSuggestionHighlights'])return _0x1b644c['createEmptyElement']('div');},'converterPriority':'high'}),_0x45a50f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x21453c,_0x454e38,_0xaafba7)=>{_0xaafba7['options']['showSuggestionHighlights']&&_0x21453c['stop']();},{'priority':'high'});}}class lt extends _0xeec5ec{['afterInit'](){const _0xeb0aa2=this['editor'];_0xeb0aa2['plugins']['has']('MentionEditing')&&_0xeb0aa2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xeec5ec{['afterInit'](){const _0x83e4e9=this['editor'];if(!_0x83e4e9['plugins']['has']('MergeFieldsEditing'))return;const _0x25d7c9=_0x83e4e9['plugins']['get']('TrackChangesEditing'),_0x58397a=_0x83e4e9['locale'];_0x25d7c9['enableCommand']('insertMergeField'),_0x25d7c9['enableCommand']('insertMergeFieldBlock'),_0x25d7c9['enableCommand']('insertMergeFieldImage'),_0x25d7c9['descriptionFactory']['registerElementLabel']('mergeField',_0x43e7be=>o(_0x58397a,'ELEMENT_MERGE_FIELD',_0x43e7be)),_0x25d7c9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x489c45=>o(_0x58397a,'ELEMENT_MERGE_FIELD',_0x489c45)),_0x25d7c9['descriptionFactory']['registerDescriptionCallback'](_0x2cfb6d=>{if('insertion'!=_0x2cfb6d['type']&&'deletion'!=_0x2cfb6d['type'])return;const _0x1187d0=_0x2cfb6d['getContainedElement']();if(null==_0x1187d0)return;const _0x8678a3=_0x83e4e9['plugins']['get']('MergeFieldsEditing');let _0x3b352a;switch(_0x8678a3['getMergeFieldType'](_0x1187d0)){case null:return;case'image':{const _0xb811c8=_0x8678a3['unwrapAffixes'](_0x1187d0['getAttribute']('src'));_0x3b352a=_0x8678a3['getLabel'](_0xb811c8)||_0xb811c8;break;}default:{const _0x30749d=_0x1187d0['getAttribute']('id');_0x3b352a=_0x8678a3['getLabel'](_0x30749d)||_0x30749d;break;}}return'insertion'==_0x2cfb6d['type']?{'type':'insertion','content':o(_0x58397a,'*Insert:*\x20%0','\x22'+_0x3b352a+'\x22\x20'+o(_0x58397a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x58397a,'*Remove:*\x20%0','\x22'+_0x3b352a+'\x22\x20'+o(_0x58397a,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xeec5ec{['afterInit'](){const _0xe30871=this['editor'],_0x5effd9=_0xe30871['plugins']['get']('TrackChangesEditing');_0xe30871['plugins']['has']('MultiLevelList')&&(_0x5effd9['enableDefaultAttributesIntegration']('multiLevelList'),_0x5effd9['registerBlockAttribute']('listMarkerStyle'),_0x5effd9['descriptionFactory']['registerDescriptionCallback'](_0xbbad6b=>this['handleDescriptions'](_0xbbad6b)));}['handleDescriptions'](_0x2b7ccd){const _0x6754b=this['editor']['locale'],{data:_0x2d6a59}=_0x2b7ccd,_0x2ee13c={'type':'format','content':''};if(_0x2d6a59&&'listMarkerStyle'==_0x2d6a59['key']){if(!_0x2d6a59['oldValue'])return{'type':'format','content':o(_0x6754b,'*Set\x20format:*\x20%0',o(_0x6754b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d6a59['newValue']+')'};if(!_0x2d6a59['newValue']){let _0x22362b=_0x2b7ccd['head'];for(;_0x22362b;){if(_0x22362b['data']&&'listType'==_0x22362b['data']['key']&&_0x22362b['data']['newValue'])return _0x2ee13c;_0x22362b=_0x22362b['next'];}return{'type':'format','content':o(_0x6754b,'*Remove\x20format:*\x20%0',o(_0x6754b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2d6a59['oldValue']+')'};}}}}class pt extends _0xeec5ec{['afterInit'](){const _0x4bd050=this['editor'];if(!_0x4bd050['plugins']['has']('PageBreakEditing'))return;_0x4bd050['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x37ef8c=_0x4bd050['plugins']['get']('TrackChangesEditing'),_0x47c004=_0x4bd050['locale'];_0x37ef8c['descriptionFactory']['registerElementLabel']('pageBreak',_0x50872f=>o(_0x47c004,'ELEMENT_PAGE_BREAK',_0x50872f));}}class kt extends _0xeec5ec{['afterInit'](){const _0x141cba=this['editor'];if(!_0x141cba['plugins']['has']('Paragraph'))return;const _0x502924=_0x141cba['locale'],_0x5288c7=_0x141cba['plugins']['get']('TrackChangesEditing');_0x5288c7['descriptionFactory']['registerElementLabel']('paragraph',_0x30fc84=>o(_0x502924,'ELEMENT_PARAGRAPH',_0x30fc84)),_0x5288c7['enableDefaultAttributesIntegration']('paragraph'),_0x5288c7['enableCommand']('insertParagraph'),_0x141cba['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x141cba),{'priority':'highest'}),_0x141cba['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xa53028,_0x5e7fa2,_0x3bb64c)=>{_0x3bb64c['options']['showSuggestionHighlights']&&nr(_0x141cba,{'showActiveMarker':!0x1})(_0xa53028,_0x5e7fa2,_0x3bb64c);},{'priority':'highest'});const _0x74209f=_0x5288c7['descriptionFactory'];_0x74209f['registerDescriptionCallback'](_0xd6464=>{if('insertion'!==_0xd6464['type'])return;const {start:_0x172916,end:_0x3f8df2}=_0xd6464['getFirstRange']();if(!_0x172916['isTouching'](_0x3f8df2)||!_0x172916['nodeAfter'])return;const _0x115f27=_0x141cba['model']['schema'],_0x498841=_0x172916['nodeAfter'];return _0x115f27['isBlock'](_0x498841)&&!_0x115f27['isLimit'](_0x498841)&&_0x115f27['checkChild'](_0x498841,'$text')?{'type':'insertion','content':o(_0x502924,'*Insert:*\x20%0',_0x74209f['getItemLabel'](_0x498841,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20ea8d=this['editor'],_0x3b4aa3=_0x20ea8d['locale'];_0x20ea8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9636=>{if('formatBlock'!=_0x3e9636['type'])return;const {data:_0x5ebcad}=_0x3e9636;return _0x5ebcad&&'paragraph'==_0x5ebcad['commandName']?{'type':'format','content':o(_0x3b4aa3,'*Change\x20to:*\x20%0',o(_0x3b4aa3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x28315c,{showActiveMarker:_0x5079f8=!0x0}={}){return(_0x5227ff,_0x3ecf14,_0x223679)=>{const _0x5a3ce8=_0x28315c['plugins']['get']('TrackChangesEditing'),_0x250804=_0x3ecf14['markerRange']['start'],_0x568e08=_0x3ecf14['markerRange']['end'],_0x5eeaeb=_0x28315c['model']['schema'];if(!_0x250804['isTouching'](_0x568e08)||!_0x250804['nodeAfter'])return;const _0x446bbe=_0x250804['nodeAfter'];if(_0x5eeaeb['isBlock'](_0x446bbe)&&!_0x5eeaeb['isLimit'](_0x446bbe)&&_0x5eeaeb['checkChild'](_0x446bbe,'$text')){if(!_0x223679['consumable']['consume'](_0x3ecf14['markerRange'],_0x5227ff['name']))return;const {id:_0x4f3695,authorId:_0x4c35ca}=_0x5a3ce8['_splitMarkerName'](_0x3ecf14['markerName']),_0x575dab=_0x223679['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4f3695,'data-author-id':_0x4c35ca}),_0x308290=_0x223679['mapper']['toViewPosition'](_0x568e08);_0x5079f8&&_0x5a3ce8['activeMarkers']['includes'](_0x3ecf14['markerName'])&&_0x223679['writer']['addClass']('ck-suggestion-marker--active',_0x575dab),_0x223679['writer']['insert'](_0x308290,_0x575dab),_0x223679['mapper']['bindElementToMarker'](_0x575dab,_0x3ecf14['markerName']);}};}class wt extends _0xeec5ec{['afterInit'](){const _0x56de83=this['editor'];_0x56de83['commands']['get']('replaceSource')&&_0x56de83['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xeec5ec{['afterInit'](){const _0x3047d0=this['editor'];if(!_0x3047d0['plugins']['has']('RemoveFormatEditing'))return;_0x3047d0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4512ee=this['editor'];_0x4512ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x279c1b=>{if('formatBlock'!=_0x279c1b['type']&&'formatInline'!=_0x279c1b['type'])return;const {data:_0x351121}=_0x279c1b;return _0x351121&&'removeFormat'==_0x351121['commandName']?{'type':'format','content':o(_0x4512ee['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xeec5ec{['afterInit'](){const _0x478db0=this['editor'];if(!_0x478db0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x44f616=_0x478db0['plugins']['get']('TrackChangesEditing');_0x44f616['enableCommand']('goToPreviousRestrictedEditingException'),_0x44f616['enableCommand']('goToNextRestrictedEditingException');const _0xb17f77=_0x478db0['plugins']['get']('RestrictedEditingModeEditing');_0xb17f77['enableCommand']('trackChanges'),_0xb17f77['enableCommand']('acceptSuggestion'),_0xb17f77['enableCommand']('discardSuggestion'),_0xb17f77['enableCommand']('acceptAllSuggestions'),_0xb17f77['enableCommand']('discardAllSuggestions'),_0xb17f77['enableCommand']('acceptSelectedSuggestions'),_0xb17f77['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xeec5ec{['afterInit'](){const _0x3fc884=this['editor'];if(!_0x3fc884['plugins']['has']('ShiftEnter'))return;const _0x15d4e8=_0x3fc884['plugins']['get']('TrackChangesEditing');_0x15d4e8['enableCommand']('shiftEnter'),_0x3fc884['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3fc884),{'priority':'high'}),_0x3fc884['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3fc884),{'priority':'high'}),_0x3fc884['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50861b,_0x2a6c87,_0x3e5a7c)=>{_0x3e5a7c['options']['showSuggestionHighlights']&&je(_0x3fc884,{'showActiveMarker':!0x1})(_0x50861b,_0x2a6c87,_0x3e5a7c);}),_0x15d4e8['descriptionFactory']['registerElementLabel']('softBreak',_0x73145f=>o(_0x3fc884['locale'],'ELEMENT_LINE_BREAK',_0x73145f));}}function je(_0x32ae88,{showActiveMarker:_0x5091a2=!0x0}={}){return(_0x2f5564,_0x3e8b6f,_0x29890d)=>{const _0x31bcb6=_0x32ae88['plugins']['get']('TrackChangesEditing');if(!_0x29890d['consumable']['test'](_0x3e8b6f['markerRange'],_0x2f5564['name']))return;const _0x5d0d44=_0x32ae88['model'];for(const _0x20f7e5 of _0x3e8b6f['markerRange']['getItems']()){if(!_0x20f7e5['is']('element','softBreak'))continue;const _0x45fc3c='deletion'==_0x3e8b6f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x16fce4,authorId:_0x5a7ec1}=_0x31bcb6['_splitMarkerName'](_0x3e8b6f['markerName']),_0x42ef90=_0x29890d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x45fc3c,'data-suggestion':_0x16fce4,'data-author-id':_0x5a7ec1}),_0x1e9b0b=_0x29890d['mapper']['toViewPosition'](_0x5d0d44['createPositionBefore'](_0x20f7e5));_0x5091a2&&_0x31bcb6['activeMarkers']['includes'](_0x3e8b6f['markerName'])&&_0x29890d['writer']['addClass']('ck-suggestion-marker--active',_0x42ef90),_0x29890d['writer']['insert'](_0x1e9b0b,_0x42ef90),_0x29890d['mapper']['bindElementToMarker'](_0x42ef90,_0x3e8b6f['markerName']);}};}class St extends _0xeec5ec{['afterInit'](){const _0x30de7d=this['editor'],_0x5d9a47=_0x30de7d['model'],_0x4754df=_0x30de7d['locale'];if(!_0x30de7d['plugins']['has']('StandardEditingModeEditing'))return;const _0x463cea=_0x30de7d['plugins']['get']('TrackChangesEditing'),_0x5407ef='restrictedEditingException',_0x43d21e=_0x30de7d['commands']['get'](_0x5407ef);_0x463cea['enableCommand'](_0x5407ef,(_0x5a8e42,_0x7d924e={})=>{const _0x3d9e69=_0x5d9a47['document']['selection'];if(_0x3d9e69['isCollapsed'])return void _0x5a8e42(_0x7d924e);const _0x23c483=void 0x0!==_0x7d924e['forceValue']?_0x7d924e['forceValue']:!_0x43d21e['value'];_0x5d9a47['change'](()=>{const _0x3ac79d=Array['from'](_0x3d9e69['getRanges']());for(const _0x47f78b of _0x3ac79d){const _0x4ae500=_0x23c483?[_0x47f78b]:io(_0x5407ef,_0x47f78b,_0x5d9a47);for(const _0x41e40c of _0x4ae500)_0x463cea['markInlineFormat'](_0x41e40c,{'commandName':_0x5407ef,'commandParams':[{'forceValue':_0x23c483}]});}});}),_0x463cea['descriptionFactory']['registerDescriptionCallback'](_0x5c0485=>{if('formatBlock'!=_0x5c0485['type']&&'formatInline'!=_0x5c0485['type'])return;const {data:_0x6a0d26}=_0x5c0485;return _0x6a0d26&&_0x6a0d26['commandName']==_0x5407ef?_0x6a0d26['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4754df,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4754df,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xeec5ec{['afterInit'](){const _0x6dd229=this['editor'];if(!_0x6dd229['plugins']['has']('Style')||!_0x6dd229['plugins']['has']('DataSchema'))return;const _0x55783c=_0x6dd229['plugins']['get']('TrackChangesEditing'),_0x1304a5=_0x6dd229['locale'],_0x3459d3=_0x6dd229['config']['get']('style')||{},_0x2c6a1e=_0x6dd229['plugins']['get']('GeneralHtmlSupport'),_0x1119b6=_0x6dd229['plugins']['get']('StyleUtils')['normalizeConfig'](_0x6dd229['plugins']['get']('DataSchema'),_0x3459d3['definitions']);_0x55783c['enableDefaultAttributesIntegration']('style');const _0xd4cb4b=new Set();for(const _0x49cee4 of _0x1119b6['block']){const _0x57e539=_0x2c6a1e['getGhsAttributeNameForElement'](_0x49cee4['element']);_0xd4cb4b['add'](_0x57e539);}const _0x3f6a13=new Set();for(const _0x1decb4 of _0x1119b6['inline']){const _0x4fc7b0=_0x2c6a1e['getGhsAttributeNameForElement'](_0x1decb4['element']);_0x3f6a13['add'](_0x4fc7b0);for(const _0x32a4db of _0x1decb4['ghsAttributes'])_0x3f6a13['add'](_0x32a4db);}for(const _0xb5a36a of _0xd4cb4b)_0x55783c['registerBlockAttribute'](_0xb5a36a),_0x55783c['descriptionFactory']['registerAttributeLabel'](_0xb5a36a,o(_0x1304a5,'FORMAT_STYLE'));for(const _0xef5704 of _0x3f6a13)_0x55783c['registerInlineAttribute'](_0xef5704),_0x55783c['descriptionFactory']['registerAttributeLabel'](_0xef5704,o(_0x1304a5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e5885=this['editor'],_0x520f50=_0x4e5885['locale'];_0x4e5885['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1467a0=>{if('formatBlock'!=_0x1467a0['type']&&'formatInline'!=_0x1467a0['type'])return;const {data:_0x3aabdd}=_0x1467a0;return _0x3aabdd&&'style'===_0x3aabdd['commandName']?_0x3aabdd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x520f50,'*Set\x20format:*\x20%0',_0x3aabdd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x520f50,'*Remove\x20format:*\x20%0',_0x3aabdd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xeec5ec{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2b89d3){super(_0x2b89d3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5c11f8=this['editor'],_0x2d7f00=_0x5c11f8['model']['document']['selection'];if(!_0x5c11f8['plugins']['has']('TableEditing'))return;const _0x112a2f=_0x5c11f8['locale'],_0x429b62=_0x5c11f8['plugins']['get']('TrackChangesEditing'),_0x23d2c9=_0x5c11f8['plugins']['get']('TableUtils');_0x429b62['descriptionFactory']['registerElementLabel']('table',_0x507472=>o(_0x112a2f,'ELEMENT_TABLE',_0x507472)),this['_setupColumnsRowsFixing'](),_0x429b62['enableCommand']('insertTable'),_0x429b62['enableCommand']('selectTableRow'),_0x429b62['enableCommand']('selectTableColumn');for(const _0xd75d63 of['insertTableRowAbove','insertTableRowBelow']){const _0x572ba1=_0x5c11f8['commands']['get'](_0xd75d63);_0x429b62['enableCommand'](_0xd75d63,_0x3c358b=>{_0x5c11f8['model']['change'](_0x3edb7c=>{_0x3c358b();const _0x25dd84='above'===_0x572ba1['order'],_0x2f3592=_0x23d2c9['getSelectionAffectedTableCells'](_0x2d7f00),_0xfe0a0=_0x23d2c9['getRowIndexes'](_0x2f3592),_0x55310c=_0x25dd84?_0xfe0a0['first']-0x1:_0xfe0a0['last']+0x1,_0x25fa7e=_0x2f3592[0x0]['findAncestor']('table'),_0x2bace0=_0x23d2c9['createTableWalker'](_0x25fa7e,{'startRow':_0x55310c,'endRow':_0x55310c}),_0xbc671e=Array['from'](_0x2bace0)['map'](_0x4daaa2=>_0x3edb7c['createRangeOn'](_0x4daaa2['cell']));_0x429b62['markMultiRangeInsertion'](_0xbc671e,'tableRow');});});}for(const _0x35156f of['insertTableColumnLeft','insertTableColumnRight']){const _0x563fce=_0x5c11f8['commands']['get'](_0x35156f);_0x429b62['enableCommand'](_0x35156f,_0x2f75e5=>{_0x5c11f8['model']['change'](_0x18a720=>{_0x2f75e5();const _0x4cc6b1='left'===_0x563fce['order'],_0x1cab1d=_0x23d2c9['getSelectionAffectedTableCells'](_0x2d7f00),_0x5dafc6=_0x23d2c9['getColumnIndexes'](_0x1cab1d),_0x1fd546=_0x4cc6b1?_0x5dafc6['first']-0x1:_0x5dafc6['last']+0x1,_0x85c889=_0x1cab1d[0x0]['findAncestor']('table'),_0x1cb88f=_0x23d2c9['createTableWalker'](_0x85c889,{'startRow':0x0,'column':_0x1fd546,'includeAllSlots':!0x1}),_0x335122=Array['from'](_0x1cb88f)['map'](_0x2022c4=>_0x18a720['createRangeOn'](_0x2022c4['cell']));_0x429b62['markMultiRangeInsertion'](_0x335122,'tableColumn');});});}for(const _0x4a3747 of['removeTableRow','removeTableColumn']){const _0x532293=_0x4a3747['substr'](0xb),_0x401904=_0x532293['toLowerCase'](),_0x486ed9=_0x401904['substr'](0x0,0x3)+'span',_0x26851b='table'+_0x532293,_0x52dda4='min'+_0x532293,_0x36973f='max'+_0x532293;_0x429b62['enableCommand'](_0x4a3747,()=>{_0x5c11f8['model']['change'](_0x73f773=>{const _0x2c18ea=_0x23d2c9['getSelectionAffectedTableCells'](_0x2d7f00),_0x4452af=_0x2c18ea[0x0]['findAncestor']('table');let _0x4bc72a;if('removeTableRow'==_0x4a3747){const _0x46f355=_0x23d2c9['getRowIndexes'](_0x2c18ea);_0x4bc72a={'startRow':_0x46f355['first'],'endRow':_0x46f355['last'],'includeAllSlots':!0x0};}else{const _0x33324a=_0x23d2c9['getColumnIndexes'](_0x2c18ea);_0x4bc72a={'startColumn':_0x33324a['first'],'endColumn':_0x33324a['last'],'includeAllSlots':!0x0};}const _0x286e7a=_0x23d2c9['createTableWalker'](_0x4452af,_0x4bc72a),_0x408dbb=Array['from'](_0x286e7a)['map'](({cell:_0x57f753})=>_0x57f753),_0xe443eb=Ne(_0x408dbb['filter'](_0x26dff9=>_0x26dff9['hasAttribute'](_0x486ed9))),_0x1603c7=Ne(_0x408dbb['filter'](_0x398f67=>!_0x398f67['hasAttribute'](_0x486ed9)))['map'](_0x101b70=>_0x73f773['createRangeOn'](_0x101b70)),_0x3177c5=_0x429b62['markMultiRangeDeletion'](_0x1603c7,_0x26851b);if(_0x3177c5&&('tableRow'==_0x3177c5['subType']||'tableColumn'==_0x3177c5['subType'])){const _0x56cb85=this['_getSuggestionCoords'](_0x3177c5);for(const _0x4ec959 of _0xe443eb){const _0x1e1e07=_0x73f773['createRangeOn'](_0x4ec959),_0x757b03=_0x23d2c9['getCellLocation'](_0x4ec959),_0x178ab6=_0x4ec959['getAttribute'](_0x486ed9)-0x1,_0x475d2e=_0x56cb85[_0x52dda4],_0x5b4992=_0x56cb85[_0x36973f];_0x475d2e<=_0x757b03[_0x401904]&&_0x757b03[_0x401904]+_0x178ab6<=_0x5b4992&&_0x3177c5['addRange'](_0x1e1e07);}}});});}function _0x348e5d(_0x5cb68b){const _0x49cf09=Array['from'](_0x2d7f00['getRanges']())['map'](_0x12de7d=>_0x414e2a['fromRange'](_0x12de7d));_0x5c11f8['model']['change'](_0x2acf88=>{const _0xbfcc6c=_0x2acf88['batch'];_0x5cb68b=_0x5cb68b['filter'](_0x3a1604=>'$graveyard'!=_0x3a1604['root']['rootName']),_0x2acf88['setSelection'](_0x5cb68b),_0x5c11f8['commands']['get']('removeTableRow')['refresh'](),_0x5c11f8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5c11f8['model']['enqueueChange'](()=>{_0x5c11f8['model']['enqueueChange'](_0xbfcc6c,_0x1eb461=>{const _0x4b06fc=_0x49cf09['filter'](_0x291148=>'$graveyard'!=_0x291148['root']['rootName']);_0x4b06fc['length']>0x0&&_0x1eb461['setSelection'](_0x4b06fc);for(const _0x512c34 of _0x49cf09)_0x512c34['detach']();});});});}function _0x44b54b(_0x34cfdc){_0x5c11f8['model']['change'](_0x260318=>{const _0x3f1757=Array['from'](_0x2d7f00['getRanges']())['map'](_0x2d8f63=>_0x414e2a['fromRange'](_0x2d8f63)),_0x3483ad=[];for(const _0xc52718 of _0x34cfdc)for(const _0x196f1b of _0xc52718['getItems']({'shallow':!0x0}))_0x3483ad['push'](_0x196f1b);for(const _0x1db9ec of _0x3483ad)'$graveyard'!=_0x1db9ec['root']['rootName']&&(_0x260318['setSelection'](_0x260318['createPositionAt'](_0x1db9ec,0x0)),_0x5c11f8['commands']['get']('removeTableColumn')['refresh'](),_0x5c11f8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x269f8b=_0x3f1757['filter'](_0x14e4be=>'$graveyard'!=_0x14e4be['root']['rootName']);_0x269f8b['length']>0x0&&_0x260318['setSelection'](_0x269f8b);for(const _0x2e092f of _0x3f1757)_0x2e092f['detach']();});}function _0x529849(_0x4fa912,_0x13ff31){return _0x13ff31['every'](_0x537f9e=>_0x4fa912['some'](_0x3214f2=>_0x3214f2['end']['isEqual'](_0x537f9e['start'])||_0x537f9e['end']['isEqual'](_0x3214f2['start'])));}function _0x2139af(_0x237058,_0x251fae){return!_0x237058['some'](_0x1615a8=>_0x251fae['some'](_0x40db7d=>_0x1615a8['isIntersecting'](_0x40db7d)))&&_0x237058['some'](_0xd5dab0=>_0x251fae['some'](_0x3cfe9a=>_0xd5dab0['end']['isTouching'](_0x3cfe9a['start'])));}_0x5c11f8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c534d,_0x59c652,_0x21e8fa)=>{if(!_0x21e8fa['options']['showSuggestionHighlights'])return;const _0x2e4eb6=_0x59c652['item'];if(!_0x2e4eb6||!_0x2e4eb6['is']('element','tableCell'))return;const _0x1242a0=_0x21e8fa['mapper']['toViewElement'](_0x2e4eb6);if(_0x1242a0){const {id:_0x3c468c,authorId:_0x2d41ef}=_0x429b62['_splitMarkerName'](_0x59c652['markerName']);_0x5b8608(_0x1242a0,_0x21e8fa['writer'],(_0x518375,_0x5e8274,_0x39ba3a)=>{_0x39ba3a['addClass'](_0xea2e1a(_0x5e8274['classes']),_0x518375),_0x39ba3a['setAttribute']('data-suggestion-id',_0x3c468c,_0x518375),_0x39ba3a['setAttribute']('data-author-id',_0x2d41ef,_0x518375);},(_0xbc5dd0,_0x80471e,_0x237ed0)=>{_0x237ed0['removeClass'](_0xea2e1a(_0x80471e['classes']),_0xbc5dd0),_0x237ed0['removeAttribute']('data-suggestion-id',_0xbc5dd0),_0x237ed0['removeAttribute']('data-author-id',_0xbc5dd0);});}},{'priority':'highest'}),_0x429b62['descriptionFactory']['registerDescriptionCallback'](_0x41d74f=>{if('insertion'!=_0x41d74f['type']&&'deletion'!=_0x41d74f['type'])return;const _0x5ec9d9=_0x41d74f['getContainedElement']();if(null!=_0x5ec9d9&&_0x5ec9d9['is']('element','table')){if('insertion'==_0x41d74f['type']){const _0xee9c7=_0x41d74f['getItems']()['filter'](_0x367add=>_0x367add['is']('$textProxy'))['map'](_0x3cd439=>_0x3cd439['data']);if(_0xee9c7['length'])return{'type':'insertion','content':o(_0x112a2f,'*Insert:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xee9c7['join']('\x20')+'\x22'))};}if('deletion'==_0x41d74f['type']){const _0xd3982b=_0x41d74f['getItems']()['filter'](_0x2e051c=>_0x2e051c['is']('$textProxy'))['map'](_0x52ba9d=>_0x52ba9d['data']);if(_0xd3982b['length'])return{'type':'deletion','content':o(_0x112a2f,'*Remove:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xd3982b['join']('\x20')+'\x22'))};}}}),_0x429b62['descriptionFactory']['registerDescriptionCallback'](_0x19c006=>{if('tableRow'==_0x19c006['subType']){const _0x3f1fa2=_0x19c006['getItems']()['filter'](_0x5e4e0c=>_0x5e4e0c['is']('$textProxy'))['map'](_0x8b75ff=>_0x8b75ff['data']),_0xbb6c6c=this['_getSuggestionCoords'](_0x19c006),_0x25904f=_0xbb6c6c['maxRow']-_0xbb6c6c['minRow']+0x1;if('insertion'==_0x19c006['type'])return _0x3f1fa2['length']?{'type':'insertion','content':o(_0x112a2f,'*Insert:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x25904f,'\x22'+_0x3f1fa2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x112a2f,'*Insert:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_ROW',_0x25904f))};if('deletion'==_0x19c006['type'])return _0x3f1fa2['length']?{'type':'deletion','content':o(_0x112a2f,'*Remove:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x25904f,'\x22'+_0x3f1fa2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x112a2f,'*Remove:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_ROW',_0x25904f))};}if('tableColumn'==_0x19c006['subType']){const _0x42d7a1=_0x19c006['getItems']()['filter'](_0x7e2459=>_0x7e2459['is']('$textProxy'))['map'](_0x4e8904=>_0x4e8904['data']),_0x5623f9=this['_getSuggestionCoords'](_0x19c006),_0x626c8f=_0x5623f9['maxColumn']-_0x5623f9['minColumn']+0x1;if('insertion'==_0x19c006['type'])return _0x42d7a1['length']?{'type':'insertion','content':o(_0x112a2f,'*Insert:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x626c8f,'\x22'+_0x42d7a1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x112a2f,'*Insert:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_COLUMN',_0x626c8f))};if('deletion'==_0x19c006['type'])return _0x42d7a1['length']?{'type':'deletion','content':o(_0x112a2f,'*Remove:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x626c8f,'\x22'+_0x42d7a1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x112a2f,'*Remove:*\x20%0',o(_0x112a2f,'ELEMENT_TABLE_COLUMN',_0x626c8f))};}}),_0x429b62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x348e5d),_0x429b62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x348e5d),_0x429b62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x44b54b),_0x429b62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x44b54b),_0x429b62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x529849),_0x429b62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x529849),_0x429b62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2139af),_0x429b62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2139af);}['_acceptFormatSuggestionCallbackFactory'](){const _0x32c975=this['editor'],_0x3c35ba=_0x32c975['model']['document']['selection'];return(_0x4fe2d3,_0x19ac08)=>{_0x32c975['model']['change'](_0x571293=>{const {commandName:_0x44e56b,commandParams:_0x50cec6}=_0x19ac08;let _0x2518e1=_0x4fe2d3[0x0]['end']['nodeBefore'];_0x50cec6&&_0x50cec6[0x0]&&!0x1===_0x50cec6[0x0]['forceValue']&&(_0x2518e1=_0x4fe2d3[0x0]['start']['nodeAfter']);const _0x2162d7=_0x571293['createRangeIn'](_0x2518e1);if('$graveyard'==_0x2162d7['root']['rootName'])return;const _0x10d579=Array['from'](_0x3c35ba['getRanges']())['map'](_0x12cedf=>_0x414e2a['fromRange'](_0x12cedf));_0x571293['setSelection'](_0x2162d7),_0x32c975['commands']['get'](_0x44e56b)['refresh'](),_0x50cec6['push']({'forceDefaultExecution':!0x0}),_0x32c975['execute'](_0x44e56b,..._0x50cec6);const _0xbaafa9=_0x10d579['filter'](_0x22cc06=>'$graveyard'!=_0x22cc06['root']['rootName']);_0xbaafa9['length']>0x0&&_0x571293['setSelection'](_0xbaafa9);for(const _0x826987 of _0x10d579)_0x826987['detach']();});};}['_getCoordsForCells'](_0x1d5c18){const _0x12865f=this['editor']['plugins']['get']('TableUtils');let _0x1a8ae1=Number['MAX_SAFE_INTEGER'],_0xda663f=Number['MIN_SAFE_INTEGER'],_0x2a70a6=Number['MAX_SAFE_INTEGER'],_0x277f18=Number['MIN_SAFE_INTEGER'];for(const _0x3e6f2e of _0x1d5c18){if('$graveyard'==_0x3e6f2e['root']['rootName'])continue;const {row:_0x35db78,column:_0x423792}=_0x12865f['getCellLocation'](_0x3e6f2e),_0x216d94=_0x3e6f2e['hasAttribute']('rowspan')?_0x3e6f2e['getAttribute']('rowspan')-0x1:0x0,_0x2c19b1=_0x3e6f2e['hasAttribute']('colspan')?_0x3e6f2e['getAttribute']('colspan')-0x1:0x0;_0x1a8ae1=_0x35db78<_0x1a8ae1?_0x35db78:_0x1a8ae1,_0xda663f=_0x35db78+_0x216d94>_0xda663f?_0x35db78+_0x216d94:_0xda663f,_0x2a70a6=_0x423792<_0x2a70a6?_0x423792:_0x2a70a6,_0x277f18=_0x423792+_0x2c19b1>_0x277f18?_0x423792+_0x2c19b1:_0x277f18;}return{'minRow':_0x1a8ae1,'maxRow':_0xda663f,'minColumn':_0x2a70a6,'maxColumn':_0x277f18};}['_setupColumnsRowsFixing'](){const _0x42b45e=this['editor'],_0x5d3f04=_0x42b45e['plugins']['get']('TrackChangesEditing'),_0x207ac1=_0x42b45e['plugins']['get']('TableUtils');_0x42b45e['model']['document']['on']('change:data',()=>{const _0x4fa0ad=Array['from'](_0x42b45e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x267dbf,data:_0x3a6b5d}of _0x4fa0ad){const {group:_0x2ef174,id:_0x174f2c,subType:_0x496422}=_0x5d3f04['_splitMarkerName'](_0x267dbf);if('suggestion'!=_0x2ef174)continue;if(null!=_0x3a6b5d['oldRange'])continue;const _0x233d0f=_0x5d3f04['getSuggestion'](_0x174f2c);this['_tablePostFixingSubtypes']['includes'](_0x496422)&&this['_tableSuggestions']['add'](_0x233d0f);}},{'priority':'low'});const _0x49bb08=(_0x2bdf73,_0x22deaf)=>{let _0x3a09ea=!0x1;const _0x3df50b=_0x22deaf['createRangeOn'](_0x2bdf73),_0x7b0297=_0x2bdf73['findAncestor']('table'),_0x1f633d=_0x207ac1['getCellLocation'](_0x2bdf73);for(const _0x3b7ebd of this['_tableSuggestions']){const _0x2970b4=_0x3b7ebd['subType'],_0x20fbb2=_0x2970b4['startsWith']('tablePaste'),_0x1e898f=_0x2970b4['substr'](_0x20fbb2?0xa:0x5),_0x540ea9=_0x1e898f['toLowerCase'](),_0xa4261d=_0x540ea9['substr'](0x0,0x3)+'span',_0x2d3a55='min'+_0x1e898f,_0xc58de2='max'+_0x1e898f;if(!_0x3b7ebd['isInContent'])continue;if(_0x7b0297!=_0x3b7ebd['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3b7ebd['isIntersectingWithRange'](_0x3df50b))continue;const _0x12c903=_0x2bdf73['hasAttribute'](_0xa4261d)?_0x2bdf73['getAttribute'](_0xa4261d)-0x1:0x0,_0x519422=this['_getSuggestionCoords'](_0x3b7ebd),_0x8b050f=_0x519422[_0x2d3a55],_0x2ac35c=_0x519422[_0xc58de2];_0x8b050f<=_0x1f633d[_0x540ea9]&&_0x1f633d[_0x540ea9]+_0x12c903<=_0x2ac35c&&(_0x3b7ebd['addRange'](_0x3df50b),_0x3a09ea=!0x0);}return _0x3a09ea;};_0x42b45e['model']['document']['registerPostFixer'](_0x5b356b=>{let _0x53a6f2=!0x1;for(const _0x13a865 of _0x42b45e['model']['document']['differ']['getChanges']())if('insert'==_0x13a865['type']){if('tableRow'==_0x13a865['name']){for(const _0x4646a0 of _0x13a865['position']['nodeAfter']['getChildren']())_0x53a6f2=_0x53a6f2||_0x49bb08(_0x4646a0,_0x5b356b);}else'tableCell'==_0x13a865['name']&&(_0x53a6f2=_0x53a6f2||_0x49bb08(_0x13a865['position']['nodeAfter'],_0x5b356b));}return _0x53a6f2;});}['_getSuggestionCoords'](_0x5eb95e){return this['_getCoordsForCells'](_0x5eb95e['getRanges']()['map'](_0x5c63dc=>_0x5c63dc['start']['nodeAfter']));}}function Ne(_0xc2158e){return Array['from'](new Set(_0xc2158e)['values']());}class _t extends _0xeec5ec{static get['requires'](){return[At];}['afterInit'](){const _0x39acc1=this['editor'],_0x469857=_0x39acc1['model']['document']['selection'],_0x377125=_0x39acc1['locale'];if(!_0x39acc1['plugins']['has']('TableEditing'))return;const _0x4140bc=_0x39acc1['plugins']['get']('TrackChangesEditing'),_0x599221=_0x39acc1['plugins']['get']('TableUtils'),_0x393ef0=_0x39acc1['plugins']['get'](At);_0x393ef0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4140bc['enableCommand']('mergeTableCells',()=>{const _0x251330=_0x599221['getSelectionAffectedTableCells'](_0x39acc1['model']['document']['selection']);_0x39acc1['model']['change'](()=>{_0x4140bc['markMultiRangeBlockFormat'](_0x251330,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x39acc1['commands']['get']('mergeTableCells')['on']('execute',(_0x5850ea,_0x44009a)=>{_0x39acc1['commands']['get']('trackChanges')['value']&&(_0x44009a['length']>0x0&&_0x44009a[_0x44009a['length']-0x1]&&_0x44009a[_0x44009a['length']-0x1]['forceDefaultExecution']||_0x4140bc['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5850ea['stop']());},{'priority':'highest'});for(const _0x4b4949 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x17ad24=_0x39acc1['commands']['get'](_0x4b4949);_0x4140bc['enableCommand'](_0x4b4949,()=>{const _0x362481=_0x39acc1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d592d=>_0x5d592d['is']('element','tableCell')),_0x48c42e=_0x17ad24['value'];_0x39acc1['model']['change'](()=>{_0x4140bc['markMultiRangeBlockFormat']([_0x362481,_0x48c42e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x137959 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x547d2a=_0x39acc1['commands']['get'](_0x137959);_0x4140bc['enableCommand'](_0x137959,()=>{const _0x1b7943=_0x599221['getSelectionAffectedTableCells'](_0x39acc1['model']['document']['selection'])[0x0],_0x18e87c=_0x1b7943['findAncestor']('table'),{column:_0x2c3bec,row:_0x35d044}=_0x599221['getCellLocation'](_0x1b7943);let _0x2f3506=[];if('horizontally'==_0x547d2a['direction']){const _0x17b7c9=_0x599221['createTableWalker'](_0x18e87c,{'startRow':_0x35d044,'endRow':_0x35d044,'includeAllSlots':!0x0});_0x2f3506=Array['from'](_0x17b7c9)['map'](_0x4db56b=>_0x4db56b['cell']);}else{const _0x4ea440=_0x599221['createTableWalker'](_0x18e87c,{'column':_0x2c3bec,'includeAllSlots':!0x0});_0x2f3506=Array['from'](_0x4ea440)['map'](_0x5368e9=>_0x5368e9['cell']);}_0x39acc1['model']['change'](_0x52ec72=>{_0x4140bc['markBlockFormat'](_0x52ec72['createRangeOn'](_0x1b7943),{'commandName':_0x137959,'commandParams':[]},_0x2f3506,_0x137959);});});}_0x4140bc['descriptionFactory']['registerDescriptionCallback'](_0x2423be=>{if('formatBlock'!=_0x2423be['type']&&'formatInline'!=_0x2423be['type'])return;const {data:_0x20ec64}=_0x2423be;return _0x20ec64&&'mergeTableCells'==_0x20ec64['commandName']?{'type':'format','content':o(_0x377125,'*Merge\x20cells*')}:void 0x0;}),_0x4140bc['descriptionFactory']['registerDescriptionCallback'](_0x4be79f=>{if('formatBlock'!=_0x4be79f['type']&&'formatInline'!=_0x4be79f['type'])return;const {data:_0x4fe72c}=_0x4be79f;return _0x4fe72c?'splitTableCellVertically'==_0x4fe72c['commandName']?{'type':'format','content':o(_0x377125,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4fe72c['commandName']?{'type':'format','content':o(_0x377125,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5b5c05=_0x393ef0['_acceptFormatSuggestionCallbackFactory']();for(const _0x1534cf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4140bc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1534cf,'accept',_0x5b5c05);for(const _0x52bbb5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4140bc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52bbb5,'accept',_0x5b5c05);_0x4140bc['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x573a01=>{_0x39acc1['model']['change'](_0x58820b=>{const _0xb83c09=Array['from'](_0x469857['getRanges']())['map'](_0x5215ed=>_0x414e2a['fromRange'](_0x5215ed));_0x58820b['setSelection'](_0x573a01),_0x39acc1['commands']['get']('mergeTableCells')['refresh'](),_0x39acc1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2ee36d=_0xb83c09['filter'](_0x57d24f=>'$graveyard'!=_0x57d24f['root']['rootName']);_0x2ee36d['length']>0x0&&_0x58820b['setSelection'](_0x2ee36d);for(const _0x573317 of _0xb83c09)_0x573317['detach']();});});for(const _0x42f3b9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3ed729=_0x39acc1['commands']['get'](_0x42f3b9);_0x3ed729['on']('set:isEnabled',(_0x49e035,_0x1e3a57,_0x3bcd04)=>{if(_0x3bcd04){const _0x511c8b=_0x39acc1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x6bd5e2=>_0x6bd5e2['is']('element','tableCell'));this['_areMergableCells'](_0x3ed729['value'],_0x511c8b)||(_0x49e035['return']=!0x1,_0x49e035['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x17de0c=this['editor']['commands']['get']('mergeTableCells'),_0xf0359a=this['editor']['plugins']['get']('TableUtils');if(!_0x17de0c['isEnabled'])return!0x1;const _0x3fceda=_0xf0359a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1fed30 of _0x3fceda)for(const _0x23d861 of _0x3fceda)if(_0x1fed30!=_0x23d861&&!this['_areMergableCells'](_0x1fed30,_0x23d861))return!0x1;return!0x0;}['_areMergableCells'](_0x58d02f,_0x3338fe){const _0x1fa57c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dbde1=this['editor']['model']['createRangeOn'](_0x58d02f),_0x1ed38f=this['editor']['model']['createRangeOn'](_0x3338fe),_0x46039a=new Set(),_0x48da21=new Set();for(const _0x326269 of _0x1fa57c['getSuggestions']())if(('insertion'==_0x326269['type']||'deletion'==_0x326269['type']||'mergeTableCells'==_0x326269['subType'])&&_0x326269['isInContent']){for(const _0x7d7d29 of _0x326269['getRanges']())_0x7d7d29['containsRange'](_0x4dbde1,!0x0)&&_0x46039a['add'](_0x326269['type']+':'+_0x326269['author']['id']),_0x7d7d29['containsRange'](_0x1ed38f,!0x0)&&_0x48da21['add'](_0x326269['type']+':'+_0x326269['author']['id']);}if(_0x46039a['size']!=_0x48da21['size'])return!0x1;for(const _0x1635ef of _0x46039a)if(!_0x48da21['has'](_0x1635ef))return!0x1;return!0x0;}}class Ct extends _0xeec5ec{static get['requires'](){return[At];}['afterInit'](){const _0x34c20a=this['editor'];if(!_0x34c20a['plugins']['has']('TableEditing'))return;const _0x1aecd0=_0x34c20a['locale'],_0x46d597=_0x34c20a['plugins']['get']('TrackChangesEditing');_0x46d597['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x46d597['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x46d597['registerBlockAttribute']('headingRows'),_0x46d597['registerBlockAttribute']('headingColumns'),_0x46d597['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1aecd0,'FORMAT_HEADER_ROW')),_0x46d597['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1aecd0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x33f523=this['editor']['plugins']['get']('TrackChangesEditing'),_0x389165=this['editor']['plugins']['get']('TableUtils'),_0x5cd20d=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x1bec32({showActiveMarker:_0x1af237=!0x0,setDataAttribute:_0x46a287=!0x0}={}){return(_0x387e1a,_0x4fca97,_0x589186)=>{const {type:_0x334c3a,id:_0x108cf2}=_0x33f523['_splitMarkerName'](_0x4fca97['markerName']),_0x254ceb=_0x33f523['getSuggestion'](_0x108cf2),_0x5b0d1d=_0x254ceb['data'];if('formatBlock'!=_0x254ceb['type']||!_0x5b0d1d||'setTableColumnHeader'!=_0x5b0d1d['commandName'])return;if(_0x4fca97['item'])return void _0x387e1a['stop']();if(!_0x589186['consumable']['consume'](_0x4fca97['markerRange'],_0x387e1a['name']))return;const _0x366c5b=_0x4fca97['markerRange']['start']['nodeAfter'],_0x13412a=_0x4fca97['markerRange']['end']['nodeBefore'],_0x55078a=_0x366c5b['parent']['parent'],{column:_0x35d71c}=_0x389165['getCellLocation'](_0x366c5b),{column:_0x4fb4bc}=_0x389165['getCellLocation'](_0x13412a);for(let _0x4bb1dd=_0x35d71c;_0x4bb1dd<=_0x4fb4bc;_0x4bb1dd++){const _0x4b2758=_0x389165['createTableWalker'](_0x55078a,{'column':_0x4bb1dd,'includeAllSlots':!0x1});for(const _0x5ea7c0 of _0x4b2758){const _0x1df788=_0x5ea7c0['cell'],_0x13c906=_0x589186['mapper']['toViewElement'](_0x1df788);_0x589186['writer']['addClass']('ck-suggestion-marker-'+_0x334c3a,_0x13c906),_0x46a287&&_0x589186['writer']['setAttribute']('data-suggestion',_0x108cf2,_0x13c906),_0x589186['mapper']['bindElementToMarker'](_0x13c906,_0x4fca97['markerName']),_0x1af237&&(_0x33f523['activeMarkers']['includes'](_0x4fca97['markerName'])?_0x589186['writer']['addClass']('ck-suggestion-marker--active',_0x13c906):_0x589186['writer']['removeClass']('ck-suggestion-marker--active',_0x13c906));}}};}_0x33f523['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5cd20d),_0x33f523['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5cd20d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1bec32(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe2ca6b,_0x4632b8,_0x1f87a3)=>{_0x1f87a3['options']['showSuggestionHighlights']&&_0x1bec32({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xe2ca6b,_0x4632b8,_0x1f87a3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x17cf8c,_0x4cb335,_0x472b77)=>{const {type:_0x159e9b,id:_0x2b9ac0}=_0x33f523['_splitMarkerName'](_0x4cb335['markerName']),_0x4bca1a=_0x33f523['getSuggestion'](_0x2b9ac0),_0x3c89e1=_0x4bca1a['data'];if('formatBlock'!=_0x4bca1a['type']||!_0x3c89e1||'setTableColumnHeader'!=_0x3c89e1['commandName'])return;const _0x1695b8=_0x472b77['mapper']['markerNameToElements'](_0x4cb335['markerName']);if(_0x1695b8){for(const _0x5212d1 of _0x1695b8)_0x472b77['writer']['removeClass']('ck-suggestion-marker-'+_0x159e9b,_0x5212d1),_0x472b77['writer']['removeClass']('ck-suggestion-marker--active',_0x5212d1),_0x472b77['writer']['removeAttribute']('data-suggestion',_0x5212d1),_0x472b77['mapper']['unbindElementFromMarkerName'](_0x5212d1,_0x4cb335['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bd09a=this['editor'],_0x152c45=_0x1bd09a['locale'];function _0x17e168(_0x244638){return{'type':'format','content':o(_0x152c45,'*Format:*\x20%0',_0x244638)};}_0x1bd09a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x354f66=>{if('formatBlock'!=_0x354f66['type'])return;const {data:_0x24409d}=_0x354f66;if(_0x24409d){if('setTableRowHeader'==_0x24409d['commandName']){const _0x57c4dc=_0x24409d['commandParams'][0x0]['forceValue'];return _0x17e168(o(_0x152c45,_0x57c4dc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x24409d['commandName']){const _0x129864=_0x24409d['commandParams'][0x0]['forceValue'];return _0x17e168(o(_0x152c45,_0x129864?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xeec5ec{['afterInit'](){const _0x1c6f55=this['editor'],_0x424ace=_0x1c6f55['locale'],_0x5f497d=_0x1c6f55['plugins']['get']('TrackChangesEditing');function _0x3eb411(_0x5b05c9){return{'type':'format','content':''+o(_0x424ace,'*Set\x20table\x20type:*\x20%0',_0x5b05c9)};}_0x1c6f55['plugins']['has']('TableLayout')&&(_0x5f497d['enableCommand']('insertTableLayout'),_0x5f497d['enableDefaultAttributesIntegration']('tableType'),_0x5f497d['registerBlockAttribute']('tableType'),_0x5f497d['descriptionFactory']['registerElementLabel'](_0x107270=>_0x107270['is']('element','table')&&'layout'===_0x107270['getAttribute']('tableType'),_0x2b384c=>o(_0x424ace,'ELEMENT_LAYOUT_TABLE',_0x2b384c)),_0x5f497d['descriptionFactory']['registerDescriptionCallback'](_0x5797a7=>{const {data:_0x5bc3ad}=_0x5797a7;if(_0x5bc3ad&&'tableType'==_0x5bc3ad['key'])switch(_0x5bc3ad['newValue']){case'layout':return _0x3eb411(o(_0x424ace,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3eb411(o(_0x424ace,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x509bb9=>[_0x509bb9,null]));class Nt extends _0xeec5ec{static get['requires'](){return[At];}['afterInit'](){const _0x330028=this['editor'];if(!_0x330028['plugins']['has']('TableClipboard'))return;const _0x572f3f=_0x330028['plugins']['get']('TrackChangesEditing'),_0x4f43ad=_0x330028['plugins']['get']('TableUtils'),_0x20fd62=_0x330028['plugins']['get'](At),_0x446ed6=_0x330028['plugins']['get']('TableClipboard'),_0x185246=_0x330028['plugins']['get']('TableSelection'),_0x2d5997=_0x330028['plugins']['get'](_0x321051);_0x20fd62['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x330028['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x330028['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x173ff9=null,_0x3e5dbd=!0x1;_0x2d5997['on']('contentInsertion',(_0x2b36e2,_0x1a7910)=>{_0x3e5dbd='paste'===_0x1a7910['method'];}),_0x330028['model']['on']('insertContent',(_0x45274b,_0x1907f8)=>{if(!_0x3e5dbd&&null===_0x185246['getSelectedTableCells']())return;const [_0x4672f0,_0x487b59]=_0x1907f8,_0x5bfeb6=_0x1907f8[_0x1907f8['length']-0x1];_0x5bfeb6&&_0x5bfeb6['forceDefaultExecution']||_0x572f3f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x30ffb8,_0x1236ff,_0x1a73f2,_0xd732ff,_0x36df11){if(_0x1236ff&&!_0x1236ff['is']('documentSelection'))return!0x1;const _0x5f11bf=_0x36df11['getTableIfOnlyTableInContent'](_0x30ffb8,_0x1a73f2);if(!_0x5f11bf||!Ue(_0x5f11bf,void 0x0,_0xd732ff))return!0x1;const _0x2b06bc=_0xd732ff['getSelectionAffectedTableCells'](_0x1a73f2['document']['selection']);if(!_0x2b06bc['length'])return!0x1;const _0x4fba74=_0x2b06bc[0x0]['findAncestor']('table'),_0x59539a=_0xd732ff['getRowIndexes'](_0x2b06bc),_0x5d85ad=_0xd732ff['getColumnIndexes'](_0x2b06bc),_0x11ec07={'startRow':_0x59539a['first'],'endRow':_0x59539a['last'],'startColumn':_0x5d85ad['first'],'endColumn':_0x5d85ad['last']};return 0x1==_0x2b06bc['length']&&(_0x11ec07['endRow']+=_0xd732ff['getRows'](_0x5f11bf)-0x1,_0x11ec07['endColumn']+=_0xd732ff['getColumns'](_0x5f11bf)-0x1),Ue(_0x4fba74,_0x11ec07,_0xd732ff);}(_0x4672f0,_0x487b59,_0x330028['model'],_0x4f43ad,_0x446ed6)&&(_0x45274b['stop'](),_0x173ff9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x330028['model']['change'](()=>{_0x330028['model']['insertContent'](_0x1907f8[0x0],_0x1907f8[0x1],_0x1907f8[0x2],{'forceDefaultExecution':!0x0});const _0x4068f3=_0x1a8355(),{rowInsertionRanges:_0x3cec8b,columnInsertionRanges:_0x439001,insertionRanges:_0x2bac86,deletionRanges:_0x33163c,cells:_0x3a3250}=_0x173ff9;_0x3cec8b['length']&&_0x572f3f['markMultiRangeInsertion'](_0x3cec8b,'tablePasteRow',{'tablePasteChainId':_0x4068f3}),_0x439001['length']&&_0x572f3f['markMultiRangeInsertion'](_0x439001,'tablePasteColumn',{'tablePasteChainId':_0x4068f3}),_0x2bac86['length']&&(_0x572f3f['markMultiRangeInsertion'](_0x2bac86,'tablePaste',{'tablePasteChainId':_0x4068f3,'skipNestingCheck':!0x0}),_0x2bac86['forEach'](_0xf6fddb=>_0xf6fddb['detach']?.())),_0x33163c['length']&&(_0x572f3f['markMultiRangeDeletion'](_0x33163c,'tablePaste',{'tablePasteChainId':_0x4068f3,'skipNestingCheck':!0x0}),_0x33163c['forEach'](_0x507ae0=>_0x507ae0['detach']?.()));const _0x37e881=_0x572f3f['markMultiRangeBlockFormat'](_0x3a3250['map'](({element:_0xe4bf18})=>_0xe4bf18),{'formatGroupId':_0x1a8355()},[],'tablePasteCell',{'tablePasteChainId':_0x4068f3});if(_0x37e881){const _0xf19dad=_0x37e881['getMarkers'](),_0x1d17b0=[];for(const {element:_0x32211d,attributes:_0x136cb3}of _0x3a3250){if(!_0x136cb3)continue;const _0x53c844=_0x330028['model']['createRangeOn'](_0x32211d),_0x2ed2d9=_0xf19dad['find'](_0x3aee08=>_0x3aee08['getRange']()['isEqual'](_0x53c844));_0x2ed2d9&&_0x1d17b0['push']([_0x2ed2d9['name'],_0x136cb3]);}_0x1d17b0['length']&&_0x37e881['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d17b0));}_0x173ff9=null;}));},{'priority':_0x16cc49['high']+0xa}),_0x2d5997['on']('contentInsertion',()=>{_0x3e5dbd=!0x1;},{'priority':'lowest'}),_0x330028['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x25c2b4,_0x58790f)=>{const [_0x5ac55f,_0x45222b,,_0x2ba91f]=_0x58790f;if(!_0x173ff9)return;_0x25c2b4['stop']();const _0x212e42=_0x5ac55f['cell'],_0x5a7ff8=_0x45222b,_0xe8e331=Oe(_0x212e42),_0x469a1c=Oe(_0x5a7ff8);_0x25c2b4['return']=_0x212e42;let _0x187960=null,_0x32e740=null;if(_0x469a1c||_0xe8e331){if(_0xe8e331&&!_0x469a1c){_0x2ba91f['remove'](_0x212e42['getChild'](0x0));for(const _0x26368a of Array['from'](_0x5a7ff8['getChildren']()))_0x2ba91f['insert'](_0x26368a,_0x212e42,'end');const _0x2df485=_0x173ff9['rowInsertionIndexes']['includes'](_0x5ac55f['row']),_0x2eb071=_0x173ff9['columnInsertionIndexes']['includes'](_0x5ac55f['column']);_0x2df485||_0x2eb071||(_0x187960=_0x414e2a['fromRange'](_0x2ba91f['createRangeIn'](_0x212e42)));}else _0x469a1c&&!_0xe8e331&&(_0x32e740=_0x2ba91f['createRangeIn'](_0x212e42));}else{const _0x123464=_0x2ba91f['createElement']('tableCellSuggestion'),_0x4fd002=_0x2ba91f['createElement']('tableCellSuggestion');_0x2ba91f['wrap'](_0x2ba91f['createRangeIn'](_0x212e42),_0x4fd002),_0x2ba91f['insert'](_0x123464,_0x212e42,0x0);for(const _0x597820 of Array['from'](_0x5a7ff8['getChildren']()))_0x2ba91f['insert'](_0x597820,_0x123464,'end');_0x187960=_0x414e2a['fromRange'](_0x2ba91f['createRangeOn'](_0x123464)),_0x32e740=_0x414e2a['fromRange'](_0x2ba91f['createRangeOn'](_0x4fd002));}const _0x309cee=Array['from'](_0x5a7ff8['getAttributes']())['filter'](([_0x4c136b])=>Be['includes'](_0x4c136b));_0x173ff9['cells']['push']({'element':_0x212e42,'attributes':_0x309cee['length']?Object['fromEntries'](_0x309cee):null}),_0x187960&&_0x173ff9['insertionRanges']['push'](_0x187960),_0x32e740&&_0x173ff9['deletionRanges']['push'](_0x32e740);},{'priority':'high'}),_0x4f43ad['on']('insertColumns',(_0x55b37a,_0xc2df57)=>{const [_0x3ded4f,_0x3a9012={}]=_0xc2df57;if(!_0x173ff9)return;const _0x314364=_0x3a9012['at']||0x0,_0x3ef3e9=_0x3a9012['columns']||0x1;_0x173ff9['columnInsertionIndexes']=new Array(_0x3ef3e9)['fill'](_0x314364)['map']((_0x238bf1,_0x20592f)=>_0x238bf1+_0x20592f);for(const {cell:_0xc25b42}of _0x4f43ad['createTableWalker'](_0x3ded4f,{'startColumn':_0x314364,'endColumn':_0x314364+_0x3ef3e9-0x1}))_0x173ff9['columnInsertionRanges']['push'](_0x330028['model']['createRangeOn'](_0xc25b42));},{'priority':'low'}),_0x4f43ad['on']('insertRows',(_0x255df1,_0x57db7c)=>{const [_0x11d2e9,_0xb8f4f4={}]=_0x57db7c;if(!_0x173ff9)return;const _0x26a301=_0xb8f4f4['at']||0x0,_0x581e16=_0xb8f4f4['rows']||0x1;_0x173ff9['rowInsertionIndexes']=new Array(_0x581e16)['fill'](_0x26a301)['map']((_0x3c4e04,_0x50988b)=>_0x3c4e04+_0x50988b);for(const {cell:_0xa9cce9}of _0x4f43ad['createTableWalker'](_0x11d2e9,{'startRow':_0x26a301,'endRow':_0x26a301+_0x581e16-0x1}))_0x173ff9['rowInsertionRanges']['push'](_0x330028['model']['createRangeOn'](_0xa9cce9));},{'priority':'low'}),_0x572f3f['descriptionFactory']['registerDescriptionCallback'](_0x21a142=>{if(_0x21a142['subType']&&_0x21a142['subType']['startsWith']('tablePaste'))return _0x21a142['previous']?{}:{'type':'insertion','content':o(_0x330028['locale'],'*Replace\x20table\x20cells*')};});const _0x2e3916=()=>!0x1;for(const _0x3af01b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x572f3f['_suggestionFactory']['registerCustomCallback']('insertion',_0x3af01b,'join',_0x2e3916),_0x572f3f['_suggestionFactory']['registerCustomCallback']('deletion',_0x3af01b,'join',_0x2e3916),_0x572f3f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3af01b,'join',_0x2e3916);_0x572f3f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2e3916),_0x572f3f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc42705,_0x67d63b,_0x9602e2)=>{const _0x3e6fa5=_0xc42705['map'](_0x4e3fee=>_0x4e3fee['getContainedElement']())['filter'](_0x1067d0=>_0x1067d0),_0x4eb9a3=new Map(_0x3e6fa5['map'](_0x9ae1f6=>[_0x9ae1f6,null]));if(_0x173ff9){for(const {element:_0x177cfa,attributes:_0x24c87c}of _0x173ff9['cells'])_0x24c87c&&_0x4eb9a3['set'](_0x177cfa,_0x24c87c);}else{if(_0x9602e2&&_0x9602e2['markerAttributes'])for(const [_0x2de9a8,_0x36c3c7]of Object['entries'](_0x9602e2['markerAttributes'])){const _0xada8bf=_0x330028['model']['markers']['get'](_0x2de9a8),_0x19311c=_0xada8bf?_0xada8bf['getRange']()['getContainedElement']():null;_0x19311c&&_0x4eb9a3['set'](_0x19311c,_0x36c3c7);}}_0x330028['model']['change'](_0xd7ae54=>{for(const [_0x149e43,_0x487f93]of _0x4eb9a3)_0xd7ae54['setAttributes']({...xe,..._0x487f93},_0x149e43);});});const _0x3617da=(_0x33d4ea,_0x3d62a2)=>{_0x572f3f['_suggestionFactory']['registerCustomCallback'](_0x33d4ea,'tablePaste',_0x3d62a2,(_0x263f53,_0x2b4eb6,_0x4f709a)=>{_0x330028['model']['change'](_0xb529de=>{const _0x54dbf1=[];for(const _0x47d302 of _0x263f53){const _0x45ef8d=_0x47d302['start']['nodeAfter'];_0x45ef8d['is']('element','tableCellSuggestion')&&_0x54dbf1['push'](_0x45ef8d);}_0x572f3f['_suggestionFactory']['getSuggestionCallback'](_0x33d4ea,null,_0x3d62a2)(_0x263f53,_0x2b4eb6,_0x4f709a);for(const _0x33f15c of _0x54dbf1)'$graveyard'!=_0x33f15c['root']['rootName']&&_0xb529de['unwrap'](_0x33f15c);});});};_0x3617da('insertion','accept'),_0x3617da('insertion','discard'),_0x3617da('deletion','accept'),_0x3617da('deletion','discard'),_0x572f3f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x254717=>{const _0x384c63=_0x254717['map'](_0xcb265b=>_0xcb265b['getContainedElement']()),_0x49808c=_0x384c63[0x0]['findAncestor']('table'),{minRow:_0x8adec9,maxRow:_0x5ef11a}=_0x20fd62['_getCoordsForCells'](_0x384c63);_0x4f43ad['removeRows'](_0x49808c,{'at':_0x8adec9,'rows':_0x5ef11a-_0x8adec9+0x1});}),_0x572f3f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x44f5d3=>{const _0x3a74fb=_0x44f5d3['map'](_0x43ddf8=>_0x43ddf8['getContainedElement']()),_0x57e9a9=_0x3a74fb[0x0]['findAncestor']('table'),{minColumn:_0x338428,maxColumn:_0x3cc0e7}=_0x20fd62['_getCoordsForCells'](_0x3a74fb);_0x4f43ad['removeColumns'](_0x57e9a9,{'at':_0x338428,'columns':_0x3cc0e7-_0x338428+0x1});});const _0x5d3fab=(_0x5b7653,_0x249bbd)=>{if(!_0x249bbd['subType']||!_0x249bbd['subType']['startsWith']('tablePaste'))return;const _0x4896bc=_0x249bbd['attributes']['tablePasteChainId'],_0x21e86d=_0x572f3f['getSuggestions']()['filter'](_0x161432=>_0x161432['isInContent']&&_0x161432['attributes']&&_0x161432['attributes']['tablePasteChainId']==_0x4896bc);_0x21e86d['length']&&_0x249bbd['getAllAdjacentSuggestions']()['length']!=_0x21e86d['length']&&_0x21e86d['reduce']((_0x484bbd,_0x4a0a38)=>(_0x484bbd['next']=_0x4a0a38,_0x4a0a38['previous']=_0x484bbd,_0x4a0a38));};function _0x17ad6d(_0x5574a6,_0x49fc57=!0x0){const {id:_0x1b3434,authorId:_0x27933f}=_0x572f3f['_splitMarkerName'](_0x5574a6['markerName']),_0x2cb85a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x7fc31d=_0x572f3f['activeMarkers']['includes'](_0x5574a6['markerName']);return _0x7fc31d&&_0x2cb85a['push']('ck-suggestion-marker--active'),{'classes':_0x2cb85a,'attributes':{'data-suggestion':_0x1b3434,'data-author-id':_0x27933f},'priority':_0x7fc31d&&_0x49fc57?0xbc2:0xbb8};}_0x572f3f['on']('suggestionLoaded',_0x5d3fab,{'priority':'high'}),_0x572f3f['on']('suggestionUnloaded',_0x5d3fab,{'priority':'high'}),_0x330028['model']['document']['registerPostFixer'](()=>{let _0x5a10b1=!0x1;const _0x315b90=Array['from'](_0x330028['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6f0e57,data:_0x1e0a7d}of _0x315b90){const {group:_0x465c11,type:_0x51396a,id:_0x42f14e}=_0x572f3f['_splitMarkerName'](_0x6f0e57);if('suggestion'!=_0x465c11||'deletion'!=_0x51396a||_0x1e0a7d['oldRange'])continue;if(!_0x572f3f['hasSuggestion'](_0x42f14e))continue;const _0x4fa37a=_0x572f3f['getSuggestion'](_0x42f14e)['getRanges'](),_0x5ab68c=_0x330028['plugins']['get']('Users')['me'];for(const _0x125cfd of _0x572f3f['getSuggestions']()){if(!_0x125cfd['isInContent']||_0x125cfd['author']!=_0x5ab68c)continue;if('formatBlock'!=_0x125cfd['type']||'tablePasteCell'!=_0x125cfd['subType'])continue;if(_0x125cfd['getRanges']()['every'](_0x246e5d=>_0x4fa37a['some'](_0x4ac829=>_0x4ac829['containsRange'](_0x246e5d,!0x0)))){for(const _0x4d2a96 of _0x125cfd['getAllAdjacentSuggestions']())_0x4d2a96['isInContent']&&(_0x4d2a96['discard'](),_0x5a10b1=!0x0);}}}return _0x5a10b1;}),_0x330028['model']['document']['registerPostFixer'](_0x37e295=>{const _0x4a7146=_0x330028['commands']['get']('redo');if(!_0x4a7146||!_0x4a7146['_createdBatches']['has'](_0x37e295['batch']))return!0x1;let _0xbcfb4=!0x1;const _0x551e2d=_0x330028['plugins']['get']('Users')['me'],_0x5129e2=_0x330028['model']['document']['differ']['getChanges'](),_0x4fcdb4=Array['from'](_0x330028['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3bb2b9,data:_0x344fba})=>{const {group:_0x137f9d,subType:_0x5d9929,authorId:_0x1084bf}=_0x572f3f['_splitMarkerName'](_0x3bb2b9);return'suggestion'==_0x137f9d&&'tablePaste'==_0x5d9929&&_0x1084bf==_0x551e2d['id']&&!_0x344fba['oldRange'];});for(const _0x56ccd3 of _0x5129e2){if('insert'!=_0x56ccd3['type']||'tableCellSuggestion'!=_0x56ccd3['name']||0x1!=_0x56ccd3['length'])continue;const _0x5a4cdc=_0x37e295['createRange'](_0x56ccd3['position'],_0x56ccd3['position']['getShiftedBy'](0x1));if(!_0x4fcdb4['find'](({data:_0x173e90})=>_0x173e90['newRange']['isEqual'](_0x5a4cdc))){for(const {name:_0x58b0f1,data:_0x45f370}of _0x4fcdb4)if(_0x5a4cdc['containsRange'](_0x45f370['newRange'])){_0x37e295['updateMarker'](_0x58b0f1,{'range':_0x5a4cdc}),_0xbcfb4=!0x0;break;}}}return _0xbcfb4;}),_0x330028['model']['document']['registerPostFixer'](_0x361865=>{let _0x4917d1=!0x1;const _0x38bdde=_0x330028['plugins']['get']('Users')['me'],_0x22cfc8=_0x572f3f['getSuggestions']()['filter'](_0x566898=>_0x566898['isInContent']&&_0x566898['author']==_0x38bdde),_0x2b3f07=new Set(),_0x36c033=new Set();for(const _0x30a3b4 of _0x22cfc8)if('tablePaste'==_0x30a3b4['subType'])for(const _0x4e2d63 of _0x30a3b4['getMarkers']()){const _0x29f9a5=_0x4e2d63['getRange']()['getContainedElement']();if(_0x29f9a5){if(_0x29f9a5['is']('element','tableCellSuggestion')&&Oe(_0x29f9a5)){_0x30a3b4['removeMarker'](_0x4e2d63['name']),_0x2b3f07['add'](_0x29f9a5),_0x4917d1=!0x0;const _0xa80b2c=_0x29f9a5['nextSibling'],_0x78cf2c=_0x29f9a5['previousSibling'],_0x50b225=_0xa80b2c&&_0xa80b2c['is']('element','tableCellSuggestion'),_0x58981c=_0x78cf2c&&_0x78cf2c['is']('element','tableCellSuggestion');_0x50b225&&!_0x2b3f07['has'](_0xa80b2c)&&_0x36c033['add'](_0xa80b2c),_0x58981c&&!_0x2b3f07['has'](_0x78cf2c)&&_0x36c033['add'](_0x78cf2c);}else _0x29f9a5['is']('element','paragraph')&&_0x29f9a5['isEmpty']&&(_0x30a3b4['removeMarker'](_0x4e2d63['name']),_0x4917d1=!0x0);}}else{if('tablePasteCell'==_0x30a3b4['subType']){if(!_0x30a3b4['attributes']||!_0x30a3b4['attributes']['tablePasteChainId'])continue;const _0x5783f1=_0x30a3b4['attributes']['markerAttributes'];if(_0x5783f1&&Object['keys'](_0x5783f1)['length'])continue;const _0x339072=_0x30a3b4['attributes']['tablePasteChainId'];let _0xe89689=!0x0,_0x43f1ce=!0x0;for(const _0x57fb01 of _0x22cfc8)if(_0x57fb01['subType']&&_0x57fb01['subType']['startsWith']('tablePaste')){if(!_0x57fb01['attributes']['tablePasteChainId']){_0x43f1ce=!0x1;break;}if(_0x57fb01['id']!=_0x30a3b4['id']&&_0x57fb01['attributes']['tablePasteChainId']==_0x339072){_0xe89689=!0x1;break;}}_0x43f1ce&&_0xe89689&&(_0x30a3b4['removeMarkers'](),_0x4917d1=!0x0);}}for(const _0x3f2870 of _0x2b3f07)_0x361865['remove'](_0x3f2870);for(const _0x32a988 of _0x36c033)_0x361865['unwrap'](_0x32a988);return _0x4917d1;}),_0x330028['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5ab6f0=>_0x17ad6d(_0x5ab6f0),'converterPriority':'high'}),_0x330028['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x471f2c,_0x94ac51)=>_0x94ac51['options']['showSuggestionHighlights']?_0x17ad6d(_0x471f2c,!0x1):null,'converterPriority':'high'});const _0x52d4d4=_0x330028['editing']['view'];this['listenTo'](_0x52d4d4['document'],'clipboardOutput',(_0x158689,_0x1bcd83)=>{const _0xba3a9d=[];for(const _0x5cb827 of _0x52d4d4['createRangeIn'](_0x1bcd83['content'])['getItems']())_0x5cb827['is']('element','suggestion-td')&&_0xba3a9d['push'](_0x5cb827);_0x52d4d4['change'](_0x4eea5c=>{for(const _0x3c50b4 of _0xba3a9d)_0x4eea5c['move'](_0x4eea5c['createRangeIn'](_0x3c50b4),_0x4eea5c['createPositionBefore'](_0x3c50b4)),_0x4eea5c['remove'](_0x3c50b4);});});}}function Oe(_0x540dbf){if(_0x540dbf['isEmpty'])return!0x0;const _0x3f4152=_0x540dbf['getChild'](0x0);return _0x3f4152['is']('element','paragraph')&&_0x3f4152['isEmpty'];}function Ue(_0x48359b,_0x14f4b9={},_0x2742f1){for(const {isAnchor:_0x5ccc15,cellHeight:_0x3611f7,cellWidth:_0x1f60c8}of _0x2742f1['createTableWalker'](_0x48359b,{'includeAllSlots':!0x0,..._0x14f4b9}))if(!_0x5ccc15||0x1!=_0x3611f7||0x1!=_0x1f60c8)return!0x1;return!0x0;}class Dt extends _0xeec5ec{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4f3c4e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f3c4e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4f3c4e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4f3c4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f3c4e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4f3c4e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4f3c4e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x14eb9b,_0x238482){const _0x1ab068=this['editor']['plugins']['get']('TrackChangesEditing'),_0x169c18=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x39499e=_0x238482['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x555d40=_0x169c18['getColumnGroupElement'](_0x39499e);let _0xf605b4=_0x555d40?_0x169c18['getTableColumnsWidths'](_0x555d40):null,_0x3e3a57=_0x39499e['getAttribute']('tableWidth')||null;const _0x23a182=_0x238482['tableWidth']||_0x3e3a57,_0x361836=_0x238482['columnWidths']||_0xf605b4,_0x2dafd5=this['editor']['plugins']['get']('Users')['me'];for(const _0x171dc1 of _0x1ab068['getSuggestions']()){const _0x28bbd6=_0x171dc1['getContainedElement']();if('resizeTable'===_0x171dc1['subType']&&_0x28bbd6===_0x39499e){_0x171dc1['author']!==_0x2dafd5&&_0x171dc1['discard']();const _0x2efc52=_0x171dc1['data']['commandParams'];_0x3e3a57=_0x2efc52[0x0]['tableWidth'],_0xf605b4=_0x2efc52[0x0]['columnWidths'];break;}}_0x14eb9b({'table':_0x39499e,'tableWidth':_0x23a182,'columnWidths':_0x361836}),_0x1ab068['markBlockFormat'](_0x39499e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3e3a57,'columnWidths':_0xf605b4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x8bb0bc){if('formatBlock'!=_0x8bb0bc['type']&&'formatInline'!=_0x8bb0bc['type'])return;const {data:_0x41fcc6}=_0x8bb0bc;if(_0x41fcc6&&'resizeTable'===_0x41fcc6['formatGroupId']){const _0x2cffe2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2cffe2)};}}}class Mt extends _0xeec5ec{['afterInit'](){const _0x5434ae=this['editor'];_0x5434ae['plugins']['has']('Template')&&_0x5434ae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0xeec5ec{['afterInit'](){const _0x618b71=this['editor'];if(!_0x618b71['commands']['get']('insertTableOfContents'))return;_0x618b71['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1a78cc=_0x618b71['plugins']['get']('TrackChangesEditing'),_0x47433b=_0x618b71['locale'];_0x1a78cc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1eb100=>o(_0x47433b,'ELEMENT_TABLE_OF_CONTENTS',_0x1eb100));}}class Bt extends _0xeec5ec{['afterInit'](){const _0x339c25=this['editor'];if(!_0x339c25['plugins']['has']('Title'))return;const _0x1d67b6=_0x339c25['plugins']['get']('TrackChangesEditing');_0x1d67b6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x339c25['locale'],'ELEMENT_TITLE')),_0x339c25['model']['document']['registerPostFixer'](_0x31dfe6=>{let _0x4fff3b=!0x1;const _0x15bd29=Array['from'](_0x339c25['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ef198,data:_0x738d0b}of _0x15bd29){const {group:_0x6c3628}=_0x1d67b6['_splitMarkerName'](_0x4ef198);if('suggestion'!==_0x6c3628||!_0x738d0b['newRange'])continue;const _0x44a23d=_0x738d0b['newRange'],_0x4a5780=_0x44a23d['end']['nodeBefore'];if(!_0x4a5780||!_0x4a5780['is']('element','title-content'))continue;if(!_0x44a23d['start']['isTouching'](_0x44a23d['end']))continue;const _0x52e7cc=_0x339c25['model']['schema']['getNearestSelectionRange'](_0x44a23d['end'],'forward');if(_0x52e7cc&&_0x52e7cc['isCollapsed']){const _0x55b2ed=_0x31dfe6['createRange'](_0x44a23d['start'],_0x52e7cc['start']);_0x55b2ed['isEqual'](_0x44a23d)||(_0x31dfe6['updateMarker'](_0x4ef198,{'range':_0x55b2ed}),_0x4fff3b=!0x0);}_0x4fff3b||(_0x31dfe6['removeMarker'](_0x4ef198),_0x4fff3b=!0x0);}return _0x4fff3b;});}}class Tt extends _0xeec5ec{['afterInit'](){const _0x31356d=this['editor'],_0x22d79c=_0x31356d['plugins']['get']('TrackChangesEditing');_0x31356d['plugins']['has']('Uploadcare')&&(_0x22d79c['enableCommand']('uploadcare'),_0x31356d['plugins']['has']('UploadcareImageEdit')&&(_0x22d79c['enableCommand']('uploadcareImageEdit'),_0x22d79c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x22d79c['registerBlockAttribute']('uploadcareImageId'),_0x22d79c['descriptionFactory']['registerDescriptionCallback'](_0x4e2e6e=>{if('attribute'!=_0x4e2e6e['type'])return;const {data:_0x95f1ef}=_0x4e2e6e;return _0x95f1ef&&'uploadcareImageId'==_0x95f1ef['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xeec5ec{['afterInit'](){const _0x40f486=this['editor'],_0x1d2e5a=_0x40f486['plugins']['get']('TrackChangesEditing');_0x40f486['plugins']['has']('UndoEditing')&&(_0x1d2e5a['enableCommand']('undo'),_0x1d2e5a['enableCommand']('redo'));}}class Ot extends _0xeec5ec{static get['requires'](){return[At];}['afterInit'](){const _0x382e7c=this['editor'];if(!_0x382e7c['plugins']['has']('TableCaptionEditing'))return;_0x382e7c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xeec5ec{['tableProperties'];['tableCellProperties'];constructor(_0x4e2497){super(_0x4e2497),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 _0x494ed0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a6df2 of this['tableProperties'])_0x494ed0['enableCommand'](_0x1a6df2,(_0x5fe825,_0x349dfe)=>{const _0x5311eb=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a6df2,[_0x5311eb],this['tableProperties'],'tableProperties',_0x5fe825,_0x349dfe);});_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x494ed0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x124228,_0x5d213f)=>this['handleDiscardAction'](this['tableProperties'],_0x124228,_0x5d213f)),_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x6c3cb4 of this['tableCellProperties'])_0x494ed0['enableCommand'](_0x6c3cb4,(_0x18ea1d,_0x321732)=>{const _0x108783=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x6c3cb4,_0x108783,this['tableCellProperties'],'tableCellProperties',_0x18ea1d,_0x321732);});_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x494ed0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33b266,_0x8b4b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33b266,_0x8b4b)),_0x494ed0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x494ed0['descriptionFactory']['registerDescriptionCallback'](_0x135e8f=>this['handleSuggestionDescription'](_0x135e8f));}['_handlePropertyChange'](_0x253cf4,_0x52bfb6,_0x1f316d,_0x5bfad5,_0x20ff4b,_0x4ebd1a){const _0x3cde15=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4ebd1a['batch'],()=>{for(const _0xbbb5c0 of _0x52bfb6){if(this['_getSuggestion'](_0xbbb5c0,_0x5bfad5))_0x20ff4b(_0x4ebd1a);else{const _0x11b1f6={};for(const _0x149965 of _0x1f316d){const _0x28e781=_0xbbb5c0['getAttribute'](_0x149965);void 0x0!==_0x28e781&&(_0x11b1f6[_0x149965]=_0x28e781);}_0x20ff4b(_0x4ebd1a),_0x3cde15['markBlockFormat'](_0xbbb5c0,{'commandParams':[_0x11b1f6]},[],_0x5bfad5);}}});}['handleDiscardAction'](_0x4675c3,_0x437b20,_0x5eea7f){const _0x179840=_0x437b20[0x0]['start']['nodeAfter'],_0x57b881=_0x5eea7f['commandParams'][0x0];this['editor']['model']['change'](_0x150d90=>{for(const _0x470d56 of _0x4675c3)void 0x0!==_0x57b881[_0x470d56]?_0x150d90['setAttribute'](_0x470d56,_0x57b881[_0x470d56],_0x179840):_0x150d90['removeAttribute'](_0x470d56,_0x179840);});}['handleSuggestionDescription'](_0x591269){if(_0x591269['data'])switch(_0x591269['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x19c5ee,_0x561605){const _0x4f6c8b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2a2695 of _0x4f6c8b['getSuggestions']({'skipNotAttached':!0x0})){const _0x41502b=_0x2a2695['getContainedElement']();if(_0x2a2695['subType']===_0x561605&&_0x41502b===_0x19c5ee)return _0x2a2695;}return null;}}class Rt extends _0xeec5ec{['afterInit'](){const _0x2686a7=this['editor'];if(!_0x2686a7['plugins']['has']('LineHeight'))return;const _0x3058b8=_0x2686a7['plugins']['get']('TrackChangesEditing'),_0x392295=_0x2686a7['locale'];_0x3058b8['enableDefaultAttributesIntegration']('lineHeight'),_0x3058b8['registerBlockAttribute']('lineHeight'),_0x3058b8['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x392295,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xeec5ec{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x29227a,_0x2bc2b6,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x445fa7){super(_0x445fa7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x337f66,_0x51c3ab,_0x10375b,_0x7ef6c6)=>{this['_model']['change'](()=>{for(const _0x4452a6 of[..._0x7ef6c6,..._0x10375b])this['_model']['markers']['has'](_0x4452a6)&&_0x445fa7['editing']['reconvertMarker'](_0x4452a6);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x445fa7['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x445fa7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x445fa7['config']['get']('trackChanges.trackFormatChanges'),_0x445fa7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x445fa7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x445fa7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2295d7=this['editor'],_0x464537=(_0x412547,_0x44bc95)=>{if('attribute'!=_0x412547)return'ck-suggestion-marker-'+_0x412547;const _0x4f5dc6=_0x44bc95['split']('|')[0x0];return this['_isBlockAttribute'](_0x4f5dc6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2295d7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x573220=>{const {id:_0x3c9454,authorId:_0x2d8752,type:_0x54a4a8,subType:_0x5480f7}=this['_splitMarkerName'](_0x573220['markerName']),_0x39d6e8=['ck-suggestion-marker',_0x464537(_0x54a4a8,_0x5480f7)];let _0x554462=0xbb8;return this['activeMarkers']['includes'](_0x573220['markerName'])&&(_0x39d6e8['push']('ck-suggestion-marker--active'),_0x554462=0xbc2),'deletion'==_0x54a4a8&&(_0x554462+=0x5),{'classes':_0x39d6e8,'attributes':{'data-suggestion':_0x3c9454,'data-author-id':_0x2d8752},'priority':_0x554462};}}),_0x2295d7['conversion']['for']('dataDowncast')['add'](_0x2f637d=>{_0x2f637d['on']('addMarker:suggestion',(_0x1fa711,_0x294452,_0x3c440f)=>{if(!_0x3c440f['options']['showSuggestionHighlights'])return;const _0x2bc075=_0x294452['item'];if(!_0x2bc075)return;const _0x3217c6=_0x3c440f['mapper']['toViewElement'](_0x2bc075);_0x2295d7['model']['schema']['isObject'](_0x2bc075)&&_0x3217c6&&!_0x3217c6['getCustomProperty']('widget')&&_0x3217c6['is']('containerElement')&&_0x2a9ce6(_0x3217c6,_0x3c440f['writer']);},{'priority':'high'});}),_0x2295d7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xaceb84,_0x575429)=>{if(!_0x575429['options']['showSuggestionHighlights'])return null;const {id:_0x3f2ad6,authorId:_0x290a69,type:_0x754654,subType:_0x4ea75f}=this['_splitMarkerName'](_0xaceb84['markerName']);return{'classes':['ck-suggestion-marker',_0x464537(_0x754654,_0x4ea75f)],'priority':0xbb8,'attributes':{'data-suggestion':_0x3f2ad6,'data-author-id':_0x290a69}};}});const _0x4da9a6=({showActiveMarkers:_0x59d088=!0x0,isAttributeSuggestion:_0x1190ed=!0x1}={})=>(_0x1a2890,_0x4a17cc,_0x38fdfd)=>{if(!_0x4a17cc['item'])return;const {id:_0x27eeb6,authorId:_0x3f3ad9}=this['_splitMarkerName'](_0x4a17cc['markerName']);if(_0x1190ed){const _0x546f78=this['_suggestions']['get'](_0x27eeb6),_0x294f65=this['_getAttributeKey'](_0x546f78);if(!this['_isBlockAttribute'](_0x294f65))return;}if(_0x4a17cc['item']['is']('selection'))return void _0x38fdfd['consumable']['consume'](_0x4a17cc['item'],_0x1a2890['name']);const _0x277f5c=_0x38fdfd['mapper']['toViewElement'](_0x4a17cc['item']);if(_0x4a17cc['item']['is']('element')&&_0x2295d7['model']['schema']['isBlock'](_0x4a17cc['item'])&&!_0x277f5c['getCustomProperty']('addHighlight')){_0x38fdfd['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x277f5c),_0x38fdfd['writer']['setAttribute']('data-suggestion',_0x27eeb6,_0x277f5c),_0x38fdfd['writer']['setAttribute']('data-author-id',_0x3f3ad9,_0x277f5c),_0x38fdfd['mapper']['bindElementToMarker'](_0x277f5c,_0x4a17cc['markerName']),_0x59d088&&(this['activeMarkers']['includes'](_0x4a17cc['markerName'])?_0x38fdfd['writer']['addClass']('ck-suggestion-marker--active',_0x277f5c):_0x38fdfd['writer']['removeClass']('ck-suggestion-marker--active',_0x277f5c));for(const _0xdba5a5 of _0x2295d7['model']['createRangeIn'](_0x4a17cc['item'])['getItems']())_0x38fdfd['consumable']['consume'](_0xdba5a5,_0x1a2890['name']);_0x38fdfd['consumable']['consume'](_0x4a17cc['item'],_0x1a2890['name']);}};_0x2295d7['conversion']['for']('dataDowncast')['add'](_0x80e99=>{_0x80e99['on']('addMarker:suggestion:formatBlock',(_0x28c589,_0x58d507,_0x5db884)=>{_0x5db884['options']['showSuggestionHighlights']&&_0x4da9a6({'showActiveMarkers':!0x1})(_0x28c589,_0x58d507,_0x5db884);},{'priority':'highest'});}),_0x2295d7['conversion']['for']('dataDowncast')['add'](_0x57a6e1=>{_0x57a6e1['on']('addMarker:suggestion:attribute',(_0x43a09e,_0x564ebb,_0x240c4d)=>{_0x240c4d['options']['showSuggestionHighlights']&&_0x4da9a6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x43a09e,_0x564ebb,_0x240c4d);},{'priority':'highest'});}),_0x2295d7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x17d5d1,_0x5c82a7)=>{if(_0x5c82a7['options']['showSuggestionHighlights']){const {id:_0x10ce4b,authorId:_0x2a44d0}=this['_splitMarkerName'](_0x17d5d1);return _0x17d5d1['includes'](':split')||_0x17d5d1['includes'](':merge')?{'group':'suggestion','name':_0x17d5d1['substr'](0xb),'attributes':{'data-suggestion':_0x10ce4b,'data-author-id':_0x2a44d0}}:null;}return{'group':'suggestion','name':_0x17d5d1['substr'](0xb)};}}),_0x2295d7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe4ba07,{writer:_0x4c35fa})=>{let _0x3cae24='suggestion:'+_0xe4ba07['getAttribute']('suggestion-type')+':'+_0xe4ba07['getAttribute']('id');return _0xe4ba07['getAttribute']('marker-count')&&(_0x3cae24+=':'+_0xe4ba07['getAttribute']('marker-count')),_0x4c35fa['createElement']('$marker',{'data-name':_0x3cae24});}}),_0x2295d7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2295d7['conversion']['for']('editingDowncast')['add'](_0x50e2f4=>{_0x50e2f4['on']('addMarker:suggestion:formatBlock',_0x4da9a6(),{'priority':'high'});}),_0x2295d7['conversion']['for']('editingDowncast')['add'](_0x3b7af3=>{_0x3b7af3['on']('addMarker:suggestion:attribute',_0x4da9a6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2295d7['conversion']['for']('editingDowncast')['add'](_0x442aa2=>{_0x442aa2['on']('removeMarker:suggestion:formatBlock',(_0x5bd576,_0x1096c2,_0x420125)=>{const _0x44e537=_0x420125['mapper']['markerNameToElements'](_0x1096c2['markerName']);if(_0x44e537){for(const _0x1be645 of _0x44e537)_0x1be645['getCustomProperty']('addHighlight')||(_0x420125['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1be645),_0x420125['writer']['removeAttribute']('data-suggestion',_0x1be645),_0x420125['writer']['removeAttribute']('data-author-id',_0x1be645),_0x420125['mapper']['unbindElementFromMarkerName'](_0x1be645,_0x1096c2['markerName']));}},{'priority':'high'});}),_0x2295d7['conversion']['for']('editingDowncast')['add'](_0x5b4e01=>{_0x5b4e01['on']('removeMarker:suggestion:attribute',(_0x1550af,_0x1a52e7,_0x503e14)=>{const _0x51715a=_0x503e14['mapper']['markerNameToElements'](_0x1a52e7['markerName']);if(!_0x51715a)return;const {id:_0x3b154a}=this['_splitMarkerName'](_0x1a52e7['markerName']),_0x1c4a76=this['_suggestions']['get'](_0x3b154a),_0x5c33eb=this['_getAttributeKey'](_0x1c4a76);if(this['_isBlockAttribute'](_0x5c33eb)){for(const _0x3c2b7e of _0x51715a)_0x3c2b7e['getCustomProperty']('addHighlight')||(_0x503e14['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c2b7e),_0x503e14['writer']['removeAttribute']('data-suggestion',_0x3c2b7e),_0x503e14['writer']['removeAttribute']('data-author-id',_0x3c2b7e),_0x503e14['mapper']['unbindElementFromMarkerName'](_0x3c2b7e,_0x1a52e7['markerName']));}},{'priority':'high'});}),_0x2295d7['model']['document']['registerPostFixer'](_0x13db05=>{let _0x484962=!0x1;const _0x41c954=Array['from'](_0x2295d7['model']['document']['differ']['getChangedMarkers']()),_0x3baced=new Set();for(const {name:_0x3ef184,data:_0x171301}of _0x41c954){const {group:_0x350972,type:_0x5794f3,subType:_0x5f1024,id:_0x3832cd}=this['_splitMarkerName'](_0x3ef184);if('suggestion'!==_0x350972)continue;const _0x700dce=this['_suggestions']['get'](_0x3832cd);if(null!=_0x171301['newRange']){'formatInline'==_0x5794f3&&(_0x484962=_0x484962||Gt(_0x171301['newRange'],_0x3ef184,_0x13db05,_0x2295d7['model']['schema']));const _0x552809='attribute'==_0x5794f3&&this['_isBlockAttribute'](_0x5f1024['split']('|')[0x0]);if(_0x171301['newRange']['isCollapsed']||'$graveyard'==_0x171301['newRange']['root']['rootName']||'formatBlock'==_0x5794f3&&!Jt(_0x171301['newRange'])||_0x552809&&!Jt(_0x171301['newRange'])||'deletion'==_0x5794f3&&!Kt(_0x171301['newRange']))_0x13db05['removeMarker'](_0x3ef184),_0x484962=!0x0;else{if(!_0x700dce||!_0x700dce['isInContent'])continue;if(_0x171301['newRange']&&_0x171301['oldRange']&&_0x171301['newRange']['isEqual'](_0x171301['oldRange']))continue;_0x3baced['add'](_0x700dce);}}}return _0x3baced['size']>0x0&&(_0x484962=!!this['_joinWithAdjacentSuggestions'](_0x3baced)||_0x484962),_0x484962;}),_0x2295d7['model']['document']['registerPostFixer'](_0x3eb987=>{let _0x4dbb7d=!0x1;for(const _0x2a509d of _0x2295d7['model']['document']['differ']['getChanges']())if('insert'==_0x2a509d['type'])for(const _0x46cf4b of this['_suggestions']['values']()){if(_0x46cf4b['isMultiRange']||!_0x46cf4b['isInContent'])continue;const _0x507418='formatBlock'==_0x46cf4b['type'],_0x2545bf=this['_getAttributeKey'](_0x46cf4b),_0x153306=_0x2545bf&&this['_isBlockAttribute'](_0x2545bf);if(!_0x507418&&!_0x153306)continue;const _0x55de90=_0x46cf4b['getFirstRange']();if(_0x55de90['start']['parent']!=_0x55de90['end']['parent']&&!_0x55de90['end']['isAtEnd']){const _0x2ba49e=_0x2295d7['model']['createPositionAt'](_0x55de90['start']['nodeAfter'],'end'),_0x2d5239=_0x2295d7['model']['createRange'](_0x55de90['start'],_0x2ba49e);_0x3eb987['updateMarker'](_0x46cf4b['getFirstMarker'](),{'range':_0x2d5239}),_0x4dbb7d=!0x0;}}return _0x4dbb7d;}),_0x2295d7['model']['document']['registerPostFixer'](_0x484bad=>this['_processAttributeChanges'](_0x484bad)),_0x2295d7['model']['document']['registerPostFixer'](_0xc0ace7=>!_0xc0ace7['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xc0ace7)),_0x2295d7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2295d7['model']['document']['on']('change:data',(_0x42a973,_0x5116b8)=>{if(!_0x5116b8['isLocal']||_0x5116b8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xc3a068=_0x2295d7['model']['document']['differ']['getChanges']();if(0x0==_0xc3a068['length'])return;const _0x2c21b5=[],_0x260e3b=_0xc3a068['filter'](_0x2a66f6=>'attribute'==_0x2a66f6['type']),_0x325bc5=_0xc3a068['filter'](_0x3d7120=>'insert'==_0x3d7120['type']&&'$text'!=_0x3d7120['name']);for(const _0x22d004 of _0x260e3b)this['_isRegisteredAttribute'](_0x22d004['attributeKey'])&&_0x2c21b5['push']({'key':_0x22d004['attributeKey'],'newValue':_0x22d004['attributeNewValue'],'oldValue':_0x22d004['attributeOldValue'],'range':Ht(_0x22d004['range'],_0x2295d7['model'])});for(const _0x3d2ba5 of _0x325bc5){if('rename'!=_0x3d2ba5['action']&&'refresh'!=_0x3d2ba5['action'])continue;const _0x3b3f71=qt(_0x3d2ba5['position']['nodeAfter'],_0x2295d7['model']),_0x649bdb=_0x3d2ba5['before'];'rename'==_0x3d2ba5['action']&&_0x2c21b5['push']({'key':m,'newValue':_0x3d2ba5['name'],'oldValue':_0x649bdb['name'],'range':_0x3b3f71});for(const [_0x2c46d6,_0x2b8ce8]of _0x649bdb['attributes']){if(!this['_isRegisteredAttribute'](_0x2c46d6))continue;const _0x4d1810=_0x3d2ba5['attributes']['get'](_0x2c46d6);_0x2b8ce8!==_0x4d1810&&_0x2c21b5['push']({'key':_0x2c46d6,'newValue':_0x4d1810,'oldValue':_0x2b8ce8,'range':_0x3b3f71});}for(const [_0x2d0303,_0x400a60]of _0x3d2ba5['attributes'])this['_isRegisteredAttribute'](_0x2d0303)&&(_0x649bdb['attributes']['has'](_0x2d0303)||_0x2c21b5['push']({'key':_0x2d0303,'newValue':_0x400a60,'oldValue':null,'range':_0x3b3f71}));}0x0!=_0x2c21b5['length']&&_0x2295d7['model']['enqueueChange'](_0x5116b8,_0x3a9068=>{const _0x86e8d1=_0x1a8355();for(const {range:_0x415b29,key:_0x1981b3,oldValue:_0x21d1a6,newValue:_0x411a21}of _0x2c21b5)this['markAttributeChange'](_0x415b29,_0x1981b3,_0x21d1a6,_0x411a21,{'groupId':_0x86e8d1});this['_reduceExistingSuggestions'](_0x3a9068,_0x2c21b5);});},{'priority':'lowest'}),_0x2295d7['model']['markers']['on']('update:suggestion',(_0x5072a4,_0xf06914,_0x17c30c)=>{if(null==_0x17c30c){const {id:_0x25d1d1}=this['_splitMarkerName'](_0xf06914['name']),_0x42f6cb=this['_suggestions']['get'](_0x25d1d1);_0x42f6cb&&_0x42f6cb['addMarkerName'](_0xf06914['name']);}}),_0x2295d7['model']['document']['on']('change:data',()=>{const _0x10cac0=Array['from'](_0x2295d7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x328930=>'suggestion'===this['_splitMarkerName'](_0x328930['name'])['group']);if(0x0===_0x10cac0['length'])return;_0x10cac0['sort']((_0x3775ce,_0x255779)=>{const _0x4e0ffd=_0x3775ce['data']['oldRange'],_0x142cf8=_0x255779['data']['oldRange'];return null===_0x4e0ffd&&null===_0x142cf8?0x0:null===_0x4e0ffd&&null!==_0x142cf8?-0x1:null!==_0x4e0ffd&&null===_0x142cf8?0x1:_0x4e0ffd['start']['isBefore'](_0x142cf8['start'])?-0x1:0x1;});const _0x6fa702=new Set(),_0x264135=new Set();for(const {name:_0x379b33,data:_0x22a65b}of _0x10cac0){const {id:_0x39b50f}=this['_splitMarkerName'](_0x379b33);if(null===_0x22a65b['oldRange']){const _0x608ccd=this['_handleNewSuggestionMarker'](_0x379b33);_0x264135['add'](_0x608ccd);}else{const _0x1a4f79=this['_suggestions']['get'](_0x39b50f);null!==_0x22a65b['newRange']||_0x1a4f79['isInContent']?(_0x6fa702['add'](_0x1a4f79['head']),_0x264135['add'](_0x1a4f79)):this['_removeSuggestion'](_0x1a4f79);}}_0x264135['size']>0x0&&this['_refreshSuggestionsChain'](_0x264135);for(const _0x507968 of _0x6fa702)this['fire']('suggestionChanged',_0x507968);}),_0x2295d7['model']['on']('applyOperation',(_0x4a19b1,_0x896457)=>{const _0x3edffa=_0x896457[0x0];if(!this['_suggestions']['size'])return;if(!_0x3edffa['isDocumentOperation'])return;if(_0x3edffa['batch']['isUndo']||!_0x3edffa['batch']['isLocal'])return;let _0x44552c,_0xc62e01;switch(_0x3edffa['type']){case'insert':_0x44552c=_0x2295d7['model']['createPositionAt'](_0x3edffa['position']),_0xc62e01=_0x44552c['getShiftedBy'](_0x3edffa['howMany']);break;case'split':_0x44552c=_0x2295d7['model']['createPositionAt'](_0x3edffa['splitPosition']),_0xc62e01=_0x2295d7['model']['createPositionAt'](_0x3edffa['moveTargetPosition']);break;case'move':_0x44552c=_0x2295d7['model']['createPositionAt'](_0x3edffa['targetPosition']),_0xc62e01=_0x44552c['getShiftedBy'](_0x3edffa['howMany']);break;default:return;}const _0x5daaa9=_0x2295d7['model']['createRange'](_0x44552c,_0xc62e01);_0x2295d7['model']['change'](()=>{for(const {suggestion:_0x399ff3,meta:_0x34644c}of this['_findSuggestions'](_0x5daaa9)){if(_0x399ff3['isMultiRange'])continue;if('formatInline'==_0x399ff3['type'])continue;const _0x525895=this['_getAttributeKey'](_0x399ff3);if(_0x525895&&this['_isBlockAttribute'](_0x525895)&&'split'!=_0x3edffa['type'])continue;const _0x3eeedf=_0x399ff3['data']&&_0x399ff3['data']['multipleBlocks'];('formatBlock'!=_0x399ff3['type']||'split'==_0x3edffa['type']&&!_0x3eeedf)&&(_0x34644c['containsRangeInObject']||'insertion'==_0x399ff3['type']&&_0x34644c['isOwn']||_0x399ff3['getFirstRange']()['containsRange'](_0x5daaa9)&&this['_breakSuggestionMarker'](_0x399ff3,_0x44552c,_0xc62e01));}});},{'priority':'lowest'}),_0x2295d7['model']['on']('deleteContent',(_0x344016,_0x1290f4)=>{const _0x45aee8=_0x1290f4[0x0],_0x528645=_0x1290f4[0x1];if(_0x528645&&_0x528645['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x45aee8['isCollapsed'])return;const _0x7fc3f1=_0x2295d7['model']['schema'],{start:_0x694fee,end:_0x2107e7}=_0x45aee8['getFirstRange'](),_0x28e189=_0x694fee['nodeAfter']&&_0x7fc3f1['isLimit'](_0x694fee['nodeAfter'])?null:_0x7fc3f1['getNearestSelectionRange'](_0x694fee,'forward'),_0x5cdd19=_0x2107e7['nodeBefore']&&_0x7fc3f1['isLimit'](_0x2107e7['nodeBefore'])?null:_0x7fc3f1['getNearestSelectionRange'](_0x2107e7,'backward'),_0x214efa=_0x2295d7['model']['createRange'](_0x28e189?_0x28e189['start']:_0x694fee,_0x5cdd19?_0x5cdd19['end']:_0x2107e7);_0x2295d7['model']['change'](_0x2d9df5=>{this['markDeletion'](_0x214efa);const _0xd15fc2=_0x2295d7['model']['schema']['getNearestSelectionRange'](_0x214efa['start']);_0x45aee8['is']('documentSelection')?_0x2d9df5['setSelection'](_0xd15fc2):_0x45aee8['setTo'](_0xd15fc2);}),_0x344016['stop']();},{'priority':_0x16cc49['normal']+0xa}),_0x2295d7['model']['on']('insertContent',(_0x1cbb26,_0x5055af)=>{const _0x43f403=_0x5055af[_0x5055af['length']-0x1];_0x43f403&&_0x43f403['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2295d7['model']['change'](()=>{let _0x4a3611=_0x2295d7['model']['insertContent'](_0x5055af[0x0],_0x5055af[0x1],_0x5055af[0x2],{'forceDefaultExecution':!0x0});if(!_0x4a3611)return;_0x1cbb26['return']=_0x4a3611['clone']();const _0x296af7=_0x4a3611['end']['nodeBefore'],_0x5029af=_0x2295d7['model']['schema'];_0x296af7&&_0x5029af['isBlock'](_0x296af7)&&!_0x5029af['isObject'](_0x296af7)&&(_0x4a3611=_0x2295d7['model']['createRange'](_0x4a3611['start'],_0x2295d7['model']['createPositionAt'](_0x296af7,'end'))),this['markInsertion'](_0x4a3611);}),_0x1cbb26['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf94348=new D(_0x2295d7,this['_suggestions']);_0x2295d7['commands']['add']('acceptSuggestion',_0xf94348),this['enableCommand']('acceptSuggestion');const _0x4c0f43=new M(_0x2295d7,this['_suggestions']);_0x2295d7['commands']['add']('discardSuggestion',_0x4c0f43),this['enableCommand']('discardSuggestion'),_0x2295d7['commands']['add']('acceptAllSuggestions',new $(_0x2295d7,_0xf94348,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2295d7['commands']['add']('discardAllSuggestions',new $(_0x2295d7,_0x4c0f43,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2295d7['commands']['add']('acceptSelectedSuggestions',new B(_0x2295d7,_0xf94348,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2295d7['commands']['add']('discardSelectedSuggestions',new B(_0x2295d7,_0x4c0f43,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3e5654=_0x2295d7['plugins']['get']('CommentsRepository');this['listenTo'](_0x3e5654,'addComment',(_0x394e8d,{threadId:_0xabd7d3})=>{const _0x20930a=this['_suggestions']['get'](_0xabd7d3);_0x20930a&&_0x20930a['commentThread']&&0x1===_0x20930a['commentThread']['length']&&this['_updateSuggestionData'](_0xabd7d3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3e5654,'removeComment',(_0x2d606c,{threadId:_0x941f97})=>{const _0xf1666=this['_suggestions']['get'](_0x941f97);_0xf1666&&_0xf1666['commentThread']&&!_0xf1666['commentThread']['length']&&this['_updateSuggestionData'](_0x941f97,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xcc9a62){const _0x2aea5b=_0x3ab69d([0x77,0x35,0x34,0x64,0x73,0x71,0x52,0x61,0x43,0x6b,0x4f,0x53,0x33,0x4a,0x59,0x79,0x70,0x46,0x50,0x6d,0x38,0x56,0x69,0x62,0x57,0x76,0x7a,0x49,0x4e,0x37,0x32,0x6f,0x30,0x4c,0x6e,0x63,0x4d,0x6a,0x39,0x65,0x44,0x67,0x6c,0x51,0x66,0x55,0x58,0x75,0x31,0x78,0x74,0x36,0x72,0x41,0x5a,0x4b,0x68,0x42,0x54,0x48,0x45,0x47]),_0x1f3853=0x7a36fbf8,_0x4dc9b=0x7a319790^_0x1f3853,_0x58588a=window[_0x3ab69d([0x44,0x61,0x74,0x65])][_0x3ab69d([0x6e,0x6f,0x77])](),_0xa3338a=_0xcc9a62[_0x3ab69d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f2a13=new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x327c3f=>{_0xa3338a[_0x3ab69d([0x6f,0x6e,0x63,0x65])](_0x3ab69d([0x72,0x65,0x61,0x64,0x79]),_0x327c3f);}),_0x5271d6={[_0x3ab69d([0x6b,0x74,0x79])]:_0x3ab69d([0x45,0x43]),[_0x3ab69d([0x75,0x73,0x65])]:_0x3ab69d([0x73,0x69,0x67]),[_0x3ab69d([0x63,0x72,0x76])]:_0x3ab69d([0x50,0x2d,0x32,0x35,0x36]),[_0x3ab69d([0x78])]:_0x3ab69d([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]),[_0x3ab69d([0x79])]:_0x3ab69d([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]),[_0x3ab69d([0x61,0x6c,0x67])]:_0x3ab69d([0x45,0x53,0x32,0x35,0x36])},_0x370d8a=_0xa3338a[_0x3ab69d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ab69d([0x67,0x65,0x74])](_0x3ab69d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11dcd0(){let _0x21c520,_0x746871=null,_0x15108b=null;try{if(_0x370d8a==_0x3ab69d([0x47,0x50,0x4c]))return _0x3ab69d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21c520=_0x420f30(),!_0x21c520)return _0x3ab69d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21c520[_0x3ab69d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x15108b=_0x2b824f(_0x21c520[_0x3ab69d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21c520[_0x3ab69d([0x6a,0x74,0x69])])),await _0x508893()?_0x3636fe()?_0x24da04()?_0x3ab69d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x552ac7()?(_0x21c520[_0x3ab69d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ab69d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x746871=_0x1d9ebd(_0x3ab69d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x21c520[_0x3ab69d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ab69d([0x74,0x72,0x69,0x61,0x6c])&&(_0x746871=_0x1d9ebd(_0x3ab69d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb59dd6()):_0x3ab69d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ab69d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ab69d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ab69d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24da04(){const _0x3fb23c=[_0x3ab69d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ab69d([0x74,0x72,0x69,0x61,0x6c])][_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c520[_0x3ab69d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58588a/0x3e8:0xe10*_0x4dc9b;return _0x21c520[_0x3ab69d([0x65,0x78,0x70])]<_0x3fb23c;}function _0x3636fe(){const _0x445cb8=_0x21c520[_0x3ab69d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x445cb8)return!0x1;if(_0x445cb8[_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab69d([0x2a])))return!0x0;if(_0x445cb8[_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab69d([0x54,0x43])))return!0x0;if(_0x445cb8[_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab69d([0x52,0x54,0x43]))){if(_0x3f2a8a())return!0x0;if(_0x4ff4dd()||_0x26a7b0())return!0x0;}return!0x1;}function _0x552ac7(){const _0x2f8b5d=_0x21c520[_0x3ab69d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f8b5d||0x0==_0x2f8b5d[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2be45b}=new URL(window[_0x3ab69d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f8b5d[_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2be45b))return!0x0;const _0x2ad4a6=_0x2be45b[_0x3ab69d([0x73,0x70,0x6c,0x69,0x74])](_0x3ab69d([0x2e]));return _0x2f8b5d[_0x3ab69d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45486f=>_0x45486f[_0x3ab69d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab69d([0x2a])))[_0x3ab69d([0x6d,0x61,0x70])](_0x55979f=>_0x55979f[_0x3ab69d([0x73,0x70,0x6c,0x69,0x74])](_0x3ab69d([0x2e])))[_0x3ab69d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x284eec=>_0x284eec[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ad4a6[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ab69d([0x6d,0x61,0x70])](_0x306a0d=>Array(_0x2ad4a6[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x306a0d[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3ab69d([0x66,0x69,0x6c,0x6c])](_0x306a0d[0x0]===_0x3ab69d([0x2a])?_0x3ab69d([0x2a]):'')[_0x3ab69d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x306a0d))[_0x3ab69d([0x73,0x6f,0x6d,0x65])](_0x2b1563=>_0x2ad4a6[_0x3ab69d([0x65,0x76,0x65,0x72,0x79])]((_0x258893,_0x2665c5)=>_0x2b1563[_0x2665c5]===_0x258893||_0x2b1563[_0x2665c5]===_0x3ab69d([0x2a])));}function _0xb59dd6(){return _0x746871&&_0x15108b?new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40f312,_0x5656d4)=>{_0x746871[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0x40f312,_0x5656d4),_0x15108b[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0x3b5705=>{_0x3b5705!=_0x3ab69d([0x56,0x61,0x6c,0x69,0x64])&&_0x40f312(_0x3b5705);},_0x5656d4);}):_0x746871||_0x15108b||_0x3ab69d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b824f(_0x3bcff4,_0x441e35){return new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27491c=>{if(_0x48b2f1())return _0x27491c(_0x3ab69d([0x56,0x61,0x6c,0x69,0x64]));_0x478120(),_0xa3338a[_0x3ab69d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ab69d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56fe2c=!0x1;const _0x2b5410=_0x1a8355();function _0x317f00(_0x3fda44){return!!_0x3fda44&&(typeof _0x3fda44===_0x3ab69d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3fda44===_0x3ab69d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3fda44[_0x3ab69d([0x74,0x68,0x65,0x6e])]===_0x3ab69d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3fda44[_0x3ab69d([0x63,0x61,0x74,0x63,0x68])]===_0x3ab69d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xef4561(_0x382b6a){_0x33adf2(_0x382b6a)[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0x54700f=>{if(!_0x54700f||_0x54700f[_0x3ab69d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ab69d([0x6f,0x6b]))return _0x3ab69d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cb0b7(_0x1d71d2(_0x2b5410+_0x441e35))!=_0x54700f[_0x3ab69d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ab69d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ab69d([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0xd4222b=>(_0x1b0b29(),_0xd4222b),()=>{const _0x970f8c=_0x141b06();return null==_0x970f8c?(_0x1b0b29(),_0x3ab69d([0x56,0x61,0x6c,0x69,0x64])):_0x3ab69d(_0x58588a-_0x970f8c>(0x5e3a7ff8^_0x1f3853)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0x27491c)[_0x3ab69d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27491c(_0x3ab69d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54c6f4=0x7a001578^_0x1f3853;function _0x1b0b29(){const _0x1832cc=_0x3ab69d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cb0b7(_0x1d71d2(_0x3bcff4)),_0x3c1400=_0x194b7c(_0x1cb0b7(window[_0x3ab69d([0x4d,0x61,0x74,0x68])][_0x3ab69d([0x63,0x65,0x69,0x6c])](_0x58588a/_0x54c6f4)));window[_0x3ab69d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ab69d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1832cc,_0x3c1400);}function _0x141b06(){const _0x2eac13=_0x3ab69d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cb0b7(_0x1d71d2(_0x3bcff4)),_0x3b5d09=window[_0x3ab69d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ab69d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2eac13);return _0x3b5d09?window[_0x3ab69d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x194b7c(_0x3b5d09),0x10)*_0x54c6f4:null;}function _0x33adf2(_0x441e3f){return new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6ba51b,_0x4a4b28)=>{_0x441e3f[_0x3ab69d([0x74,0x68,0x65,0x6e])](_0x6ba51b,_0x4a4b28),window[_0x3ab69d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a4b28,0x7a372f38^_0x1f3853);});}}_0xa3338a[_0x3ab69d([0x6f,0x6e])](_0x3ab69d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c47e8,_0x2eb07b)=>{if(_0x2eb07b[0x0]!=_0x3bcff4)return _0x27491c(_0x3ab69d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2eb07b[0x1]={..._0x2eb07b[0x1],[_0x3ab69d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b5410};},{[_0x3ab69d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ab69d([0x68,0x69,0x67,0x68])}),_0xa3338a[_0x3ab69d([0x6f,0x6e])](_0x3ab69d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7fb95b=>{_0x317f00(_0x7fb95b[_0x3ab69d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56fe2c=!0x0,_0xef4561(_0x7fb95b[_0x3ab69d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ab69d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ab69d([0x6c,0x6f,0x77])}),_0x4f2a13[_0x3ab69d([0x74,0x68,0x65,0x6e])](()=>{_0x56fe2c||_0x27491c(_0x3ab69d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x48b2f1(){return _0xa3338a[_0x3ab69d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ab69d([0x76,0x69,0x65,0x77])][_0x3ab69d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ab69d([0x61,0x75,0x74,0x6f]);}function _0x478120(){_0xa3338a[_0x3ab69d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ab69d([0x76,0x69,0x65,0x77])][_0x3ab69d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ab69d([0x61,0x75,0x74,0x6f]);}}function _0x1d9ebd(_0x46cc4f){const _0x3e7eff=[new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x191965=>setTimeout(_0x191965,0x7a3fc534^_0x1f3853)),_0x4f2a13[_0x3ab69d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x263518=>{let _0xba3b3f=0x0;_0xa3338a[_0x3ab69d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ab69d([0x6f,0x6e])](_0x3ab69d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x195d36,_0x30c068)=>{_0x30c068[0x0][_0x3ab69d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xba3b3f++,_0xba3b3f==(0x7a36fa00^_0x1f3853)&&(_0x263518(),_0x195d36[_0x3ab69d([0x6f,0x66,0x66])]());});}))];return window[_0x3ab69d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ab69d([0x72,0x61,0x63,0x65])](_0x3e7eff)[_0x3ab69d([0x74,0x68,0x65,0x6e])](()=>_0x46cc4f);}async function _0x1bfa93(){await _0x4f2a13,_0xa3338a[_0x3ab69d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ab69d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1938c6,_0xa3338a[_0x3ab69d([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ab69d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1938c6,_0xa3338a[_0x3ab69d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ab69d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f2a8a(){return _0x9074a5(_0x3ab69d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xebcb4a(_0x3ab69d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ab69d([0x73,0x74,0x61,0x74,0x65])]==_0x3ab69d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ff4dd(){return _0x9074a5(_0x3ab69d([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 _0x26a7b0(){return _0x9074a5(_0x3ab69d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1aed9e(_0x3db377){const _0x511df0=_0x4cd259();_0xa3338a[_0x511df0]=_0x3ab69d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3db377,_0x3db377!=_0x3ab69d([0x56,0x61,0x6c,0x69,0x64])&&_0x1bfa93();}function _0x4cd259(){const _0x533f5b=window[_0x3ab69d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ab69d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ab69d([0x6e,0x6f,0x77])]())[_0x3ab69d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ab69d([0x2e]),'');let _0x1661a7=_0x3ab69d([0x77]);for(let _0x1c7c9c=0x0;_0x1c7c9c<_0x533f5b[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c7c9c+=0x2){let _0x34ce15=window[_0x3ab69d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x533f5b[_0x3ab69d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c7c9c,_0x1c7c9c+0x2));_0x34ce15>=_0x2aea5b[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34ce15-=_0x2aea5b[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1661a7+=_0x2aea5b[_0x34ce15];}return _0x1661a7;}function _0x420f30(){const _0x52612f=_0x370d8a[_0x3ab69d([0x73,0x70,0x6c,0x69,0x74])](_0x3ab69d([0x2e]));if(0x3!=_0x52612f[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12a8da(_0x52612f[0x1]);function _0x12a8da(_0xd6b04e){const _0x4ea978=_0x259de1(_0xd6b04e);return _0x4ea978&&_0x4dcdf6()?_0x4ea978:null;function _0x4dcdf6(){const _0x414801=_0x4ea978[_0x3ab69d([0x6a,0x74,0x69])],_0x41a98d=window[_0x3ab69d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x414801[_0x3ab69d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x414801[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd416df={..._0x4ea978,[_0x3ab69d([0x6a,0x74,0x69])]:_0x414801[_0x3ab69d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x414801[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd416df[_0x3ab69d([0x76,0x63])],_0x1d71d2(_0xd416df)==_0x41a98d;}}}async function _0x508893(){let _0x10faca=!0x0;try{const _0x1b9536=_0x370d8a[_0x3ab69d([0x73,0x70,0x6c,0x69,0x74])](_0x3ab69d([0x2e])),[_0x1fb94d,_0x31ded7,_0x177b7d]=_0x1b9536;return _0x11255c(_0x1fb94d),await _0x15748c(_0x1fb94d,_0x31ded7,_0x177b7d),_0x10faca;}catch{return!0x1;}function _0x11255c(_0x127437){const _0x5c83a6=_0x259de1(_0x127437);_0x5c83a6&&_0x5c83a6[_0x3ab69d([0x61,0x6c,0x67])]==_0x3ab69d([0x45,0x53,0x32,0x35,0x36])||(_0x10faca=!0x1);}async function _0x15748c(_0x4eef06,_0x328458,_0x1107c1){const _0x2dfef6=window[_0x3ab69d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ab69d([0x66,0x72,0x6f,0x6d])](_0x3c5742(_0x1107c1),_0x4090e3=>_0x4090e3[_0x3ab69d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34ce9e=new window[(_0x3ab69d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ab69d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4eef06+_0x3ab69d([0x2e])+_0x328458),_0x41067f=window[_0x3ab69d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ab69d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x41067f)return;const _0x12aa99=await _0x41067f[_0x3ab69d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ab69d([0x6a,0x77,0x6b]),_0x5271d6,{[_0x3ab69d([0x6e,0x61,0x6d,0x65])]:_0x3ab69d([0x45,0x43,0x44,0x53,0x41]),[_0x3ab69d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ab69d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ab69d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x41067f[_0x3ab69d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ab69d([0x6e,0x61,0x6d,0x65])]:_0x3ab69d([0x45,0x43,0x44,0x53,0x41]),[_0x3ab69d([0x68,0x61,0x73,0x68])]:{[_0x3ab69d([0x6e,0x61,0x6d,0x65])]:_0x3ab69d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x12aa99,_0x2dfef6,_0x34ce9e)||(_0x10faca=!0x1);}}function _0x259de1(_0x40588d){return _0x40588d[_0x3ab69d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ab69d([0x65,0x79]))?JSON[_0x3ab69d([0x70,0x61,0x72,0x73,0x65])](_0x3c5742(_0x40588d)):null;}function _0x3c5742(_0x106717){return window[_0x3ab69d([0x61,0x74,0x6f,0x62])](_0x106717[_0x3ab69d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ab69d([0x2b]))[_0x3ab69d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ab69d([0x2f])));}function _0x1d71d2(_0x3db249){let _0x4c785b=0x1505;function _0x1f2ade(_0xc24032){for(let _0x24a1e9=0x0;_0x24a1e9<_0xc24032[_0x3ab69d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24a1e9++){const _0x111169=_0xc24032[_0x3ab69d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24a1e9);_0x4c785b=(_0x4c785b<<0x5)+_0x4c785b+_0x111169,_0x4c785b&=_0x4c785b;}}function _0x4fb9a0(_0x3e5ae1){Array[_0x3ab69d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3e5ae1)?_0x3e5ae1[_0x3ab69d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4fb9a0):_0x3e5ae1&&typeof _0x3e5ae1==_0x3ab69d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ab69d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3e5ae1)[_0x3ab69d([0x73,0x6f,0x72,0x74])]()[_0x3ab69d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x315dda,_0x22c959])=>{_0x1f2ade(_0x315dda),_0x4fb9a0(_0x22c959);}):_0x1f2ade(window[_0x3ab69d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3e5ae1));}return _0x4fb9a0(_0x3db249),_0x4c785b>>>0x0;}function _0x1cb0b7(_0x2bee0c){return _0x2bee0c[_0x3ab69d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ab69d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ab69d([0x30]));}function _0x194b7c(_0x10ce10){return _0x10ce10[_0x3ab69d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ab69d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ab69d([0x6a,0x6f,0x69,0x6e])]('');}function _0x9074a5(_0x4416ab){return _0xa3338a[_0x3ab69d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ab69d([0x68,0x61,0x73])](_0x4416ab);}function _0xebcb4a(_0x454e6c){return _0xa3338a[_0x3ab69d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ab69d([0x67,0x65,0x74])](_0x454e6c);}function _0x1938c6(){}function _0x3ab69d(_0x1c2362){return _0x1c2362['map'](_0x3fccd2=>String['fromCharCode'](_0x3fccd2))['join']('');}_0x1aed9e(await _0x11dcd0());}(this);}set['adapter'](_0x3fa967){if(this['_adapter'])throw new _0x483cd5('track-changes-adapter-already-set',this);this['_adapter']=_0x3fa967;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x24733c=!0x1,toJSON:_0x4f2a25=!0x1}={}){const _0x48de7b=[];for(const _0xe5430c of this['_suggestions']['values']())_0x24733c&&!_0xe5430c['isInContent']||_0x48de7b['push'](_0xe5430c);return _0x4f2a25?_0x48de7b['map'](_0x57b7c0=>_0x57b7c0['toJSON']()):_0x48de7b;}['getSuggestion'](_0x32889a){const _0x561b17=this['_suggestions']['get'](_0x32889a);if(!_0x561b17)throw new _0x483cd5('track-changes-suggestion-not-found',this);return _0x561b17;}['hasSuggestion'](_0x535a40){return this['_suggestions']['has'](_0x535a40);}['addSuggestionData'](_0xdf4e3d){const {authorId:_0x2a13c1,id:_0xe48ac8,originalSuggestionId:_0x2687a5,attributes:_0x355ca7}=_0xdf4e3d,[_0x4606d7,_0x479047]=_0xdf4e3d['type']['split'](':'),_0x4bf4bf=this['_suggestions']['get'](_0xe48ac8)||this['_createSuggestion'](_0x4606d7,_0x479047,_0xe48ac8,_0x2a13c1,_0x355ca7,_0x2687a5);if(this['_addThreadToSuggestion'](_0x4bf4bf),this['_checkSuggestionCorrectness'](_0x4bf4bf,_0x4606d7,_0x479047||null,_0x2a13c1),_0x4bf4bf['createdAt']=_0xdf4e3d['createdAt'],_0x4bf4bf['_isDataLoaded']=!0x0,_0x355ca7&&_0x355ca7['@external']){const _0x386ff3=_0x355ca7['@external'],_0x36a664=this['_getExternalAuthor'](_0x386ff3['authorName']);_0x4bf4bf['authoredAt']=_0x386ff3['createdAt'],_0x4bf4bf['author']=_0x36a664,_0x4bf4bf['isExternal']=!0x0;}else _0x4bf4bf['authoredAt']=_0xdf4e3d['createdAt'];switch(_0xdf4e3d['data']&&(_0x4bf4bf['data']=_0xdf4e3d['data']),_0xdf4e3d['attributes']&&(_0x4bf4bf['attributes']=_0xdf4e3d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4bf4bf['_saved']=!0x0),this['_suggestionState']['get'](_0x4bf4bf)){case'notReady':this['_suggestionState']['set'](_0x4bf4bf,'dataReady');break;case'markerReady':_0x4bf4bf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4bf4bf])),this['_refreshSuggestionsChain'](new Set([_0x4bf4bf])),this['_suggestionState']['set'](_0x4bf4bf,'ready'),this['fire']('suggestionLoaded',_0x4bf4bf)):this['_suggestionState']['set'](_0x4bf4bf,'removed');}return _0x4bf4bf;}['acceptSuggestion'](_0x5bd607){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x6e2ba7 of _0x5bd607['getAllAdjacentSuggestions']())_0x6e2ba7['accept']();});});}['discardSuggestion'](_0x17c4d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2499ac of _0x17c4d7['getAllAdjacentSuggestions']())_0x2499ac['discard']();});});}['enableCommand'](_0x21bd2e,_0x14646c){const _0x5a46f4=this['editor']['commands']['get'](_0x21bd2e);if(!_0x5a46f4)throw new _0x483cd5('track-changes-command-not-found',this,{'commandName':_0x21bd2e});if(this['_enabledCommands']['has'](_0x5a46f4))throw new _0x483cd5('track-changes-enable-command-twice',this,{'commandName':_0x21bd2e});this['_enabledCommands']['add'](_0x5a46f4),_0x14646c&&_0x5a46f4['on']('execute',(_0x489321,_0x406aa6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x406aa6['length']>0x0&&_0x406aa6[_0x406aa6['length']-0x1]&&_0x406aa6[_0x406aa6['length']-0x1]['forceDefaultExecution']?_0x406aa6['pop']():(_0x489321['return']=_0x14646c((..._0x4fc9b9)=>_0x5a46f4['execute'](..._0x4fc9b9,{'forceDefaultExecution':!0x0}),..._0x406aa6),_0x489321['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xa5de1b){let _0x477204,_0x5e9e40;const _0x23ba33=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x477204=_0xa5de1b();}catch(_0x5413b4){_0x5e9e40=_0x5413b4;}return _0x23ba33||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5e9e40&&_0x483cd5['rethrowUnexpectedError'](_0x5e9e40,this),_0x477204;}['markInsertion'](_0x15f76d,_0x3d03a6=null,_0x1d9061={}){if(_0x15f76d['isCollapsed'])return null;const _0x5111f1=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1d9061['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4add1c,meta:_0x4d824}of this['_findSuggestions'](_0x15f76d,'insertion'))if(_0x4d824['isOwn']){if(!_0x4d824['isNextTo']){if(_0x4d824['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x4add1c,_0x1d9061))continue;return _0x4add1c;}if(Qt(_0x4add1c,_0x1d9061))return _0x4add1c;this['_breakSuggestionMarker'](_0x4add1c,_0x15f76d['start'],_0x15f76d['end']);break;}if(_0x3d03a6==_0x4add1c['subType']&&Qt(_0x4add1c,_0x1d9061)){const _0x3472ee=_0x4add1c['getFirstRange']();return _0x3472ee['start']['isEqual'](_0x15f76d['end'])?this['_setSuggestionRange'](_0x4add1c,this['_model']['createRange'](_0x15f76d['start'],_0x3472ee['end'])):this['_setSuggestionRange'](_0x4add1c,this['_model']['createRange'](_0x3472ee['start'],_0x15f76d['end'])),_0x4add1c;}}const _0x517c4c=_0x1a8355(),_0x51c55d=_0x5111f1['id'],_0x59bb52=_0x3d03a6?'insertion:'+_0x3d03a6:'insertion',_0x34b671=this['_setSuggestionData']({'id':_0x517c4c,'type':_0x59bb52,'createdAt':new Date(),'authorId':_0x51c55d,'attributes':_0x1d9061});return this['_addSuggestionMarker'](_0x59bb52,_0x517c4c,_0x51c55d,_0x15f76d),_0x34b671;}['markMultiRangeInsertion'](_0x3823bf,_0x8ed90b='multi',_0x95d72a={}){const _0x3c5dc1=this['editor']['plugins']['get']('Users')['me'],_0x2d6b8b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x8ed90b,'join');this['_trackingSessionId']&&(_0x95d72a['trackingSessionId']=this['_trackingSessionId']);for(const _0x5996ab of this['getSuggestions']())if(_0x5996ab['author']['id']==_0x3c5dc1['id']&&'insertion'==_0x5996ab['type']&&_0x5996ab['subType']==_0x8ed90b&&Qt(_0x5996ab,_0x95d72a)&&(_0x2d6b8b(_0x5996ab['getRanges'](),_0x3823bf)||_0x2d6b8b(_0x3823bf,_0x5996ab['getRanges']()))){for(const _0x2d2c0f of _0x3823bf)_0x5996ab['addRange'](_0x2d2c0f);return _0x5996ab;}for(const {suggestion:_0x3e0367,meta:_0x4699f8}of this['_findSuggestions'](_0x3823bf,'insertion')){if(!_0x4699f8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4699f8['containsRangeInObject'])continue;if(!Qt(_0x3e0367,_0x95d72a))continue;let _0x5e01b8=!0x0;for(const _0x516c8e of _0x3e0367['getRanges']())for(const _0x42e1ff of _0x3823bf)if(!_0x516c8e['containsRange'](_0x42e1ff)){_0x5e01b8=!0x1;break;}if(_0x5e01b8)return _0x3e0367;}const _0x4063ca=_0x1a8355(),_0x4e4e0e=_0x3c5dc1['id'],_0xbbfeff='insertion:'+_0x8ed90b,_0x416610=this['_setSuggestionData']({'id':_0x4063ca,'type':_0xbbfeff,'createdAt':new Date(),'authorId':_0x4e4e0e,'attributes':_0x95d72a});for(const _0x2f6c2e of _0x3823bf)this['_addSuggestionMarker'](_0xbbfeff,_0x4063ca,_0x4e4e0e,_0x2f6c2e,T['getMultiRangeId']());return _0x416610;}['markInlineFormat'](_0x506b0c,_0x36f908,_0x163c54=null,_0x16e2c3={}){if(_0x163c54=_0x163c54||Lt(_0x36f908),_0x506b0c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x16e2c3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40af26=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x163c54,'accept');return this['forceDefaultExecution'](()=>_0x40af26([_0x506b0c],_0x36f908,_0x16e2c3)),null;}const _0x3b97c7=this['editor']['plugins']['get']('Users')['me'],_0x2e15cb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x24e2c2,meta:_0x31f0f2}of this['_findSuggestions'](_0x506b0c,'insertion'))_0x31f0f2['isOwn']&&!_0x31f0f2['isInsideObject']&&_0x2e15cb['push'](..._0x24e2c2['getRanges']());}const _0x5b0dbd=function(_0x14b424,_0x4142f5){const _0x592cfc=[];for(const _0x3c1bbe of _0x4142f5){const _0x4ba861=_0x14b424['getIntersection'](_0x3c1bbe);_0x4ba861&&_0x592cfc['push'](_0x4ba861);}return _0x592cfc;}(_0x506b0c,_0x2e15cb),_0x53640d=function(_0x20166d,_0x518e5f){const _0x4d8f69=[_0x20166d];for(const _0x904ec5 of _0x518e5f){let _0x44d301=0x0;for(;_0x44d301<_0x4d8f69['length'];){const _0x4dea7e=_0x4d8f69[_0x44d301]['getDifference'](_0x904ec5);_0x4d8f69['splice'](_0x44d301,0x1,..._0x4dea7e),_0x44d301+=_0x4dea7e['length'];}}return _0x4d8f69;}(_0x506b0c,_0x2e15cb);_0x5b0dbd['length']&&this['_model']['change'](()=>{for(const _0x4688a1 of _0x5b0dbd){const _0x5590cf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x163c54,'accept');this['forceDefaultExecution'](()=>_0x5590cf([_0x4688a1],_0x36f908,_0x16e2c3));}});for(const _0x290c69 of _0x53640d){let _0x668dbd=null,_0x5261d1=_0x290c69['start'],_0x4758b1=_0x290c69['end'];for(const {suggestion:_0x4261ca,meta:_0x4fb90c}of this['_findSuggestions'](_0x290c69,'formatInline')){if(!_0x4fb90c['isOwn'])continue;if(_0x4261ca['subType']!=_0x163c54)continue;if(!Qt(_0x4261ca,_0x16e2c3))continue;const _0x3576b1=_0x4261ca['getFirstRange']();if(_0x3576b1['containsRange'](_0x290c69,!0x0))return null;_0x5261d1=_0x5261d1['isBefore'](_0x3576b1['start'])?_0x5261d1:_0x3576b1['start'],_0x4758b1=_0x4758b1['isAfter'](_0x3576b1['end'])?_0x4758b1:_0x3576b1['end'],_0x668dbd?_0x3576b1['start']['isBefore'](_0x668dbd['getFirstRange']()['start'])?(_0x668dbd['removeMarkers'](),_0x668dbd=_0x4261ca):_0x4261ca['removeMarkers']():_0x668dbd=_0x4261ca;}const _0x2eee12=this['_model']['createRange'](_0x5261d1,_0x4758b1);if(_0x668dbd)this['_setSuggestionRange'](_0x668dbd,_0x2eee12);else{const _0x4c1e14=_0x1a8355(),_0x3ff4c5=_0x3b97c7['id'];this['_setSuggestionData']({'id':_0x4c1e14,'type':'formatInline:'+_0x163c54,'data':_0x36f908,'createdAt':new Date(),'authorId':_0x3ff4c5,'attributes':_0x16e2c3}),this['_addSuggestionMarker']('formatInline:'+_0x163c54,_0x4c1e14,_0x3ff4c5,_0x2eee12);}}return null;}['markBlockFormat'](_0x52a130,_0x5f3a09,_0x22cadf=[],_0x5affe4=null,_0x40a74c={}){_0x5f3a09['formatGroupId']||(_0x5f3a09['formatGroupId']=_0x5f3a09['commandName']),_0x5f3a09['multipleBlocks']=_0x52a130['is']('range'),_0x5affe4=_0x5affe4||Lt(_0x5f3a09);const _0x1294b5=_0x22cadf['map'](_0x506b42=>qt(_0x506b42,this['_model'])),_0x349d9e=_0x52a130['is']('range')?_0x52a130:qt(_0x52a130,this['_model']);if(this['_trackingSessionId']&&(_0x40a74c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x313a98=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5affe4,'accept');return this['forceDefaultExecution'](()=>_0x313a98([_0x349d9e],_0x5f3a09,_0x40a74c)),null;}_0x1294b5['push'](_0x349d9e);let _0x2844aa=!0x0;for(const _0x2215a1 of _0x1294b5)if(!this['_rangeIsInLocalUserInsertion'](_0x2215a1)){_0x2844aa=!0x1;break;}if(_0x2844aa&&'always'!==this['_trackFormatChanges']){const _0xc54410=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5affe4,'accept');return this['forceDefaultExecution'](()=>_0xc54410([_0x349d9e],_0x5f3a09,_0x40a74c)),null;}let _0x3dd621=null,_0x1dca55=_0x349d9e['start'],_0x4d9308=_0x349d9e['end'];for(const {suggestion:_0x20e316,meta:_0x1cac93}of this['_findSuggestions'](_0x349d9e,'formatBlock')){if(!_0x1cac93['isOwn'])continue;if(_0x1cac93['isNextTo']||_0x1cac93['containsRangeInObject']||_0x1cac93['isInsideObject'])continue;if(_0x20e316['data']['formatGroupId']!=_0x5f3a09['formatGroupId'])continue;if(!Qt(_0x20e316,_0x40a74c))continue;const _0x4fb1a2=_0x20e316['getFirstRange']();if(_0x20e316['subType']==_0x5affe4){if(_0x4fb1a2['containsRange'](_0x349d9e,!0x0))return null;_0x1dca55=_0x1dca55['isBefore'](_0x4fb1a2['start'])?_0x1dca55:_0x4fb1a2['start'],_0x4d9308=_0x4d9308['isAfter'](_0x4fb1a2['end'])?_0x4d9308:_0x4fb1a2['end'],_0x3dd621?_0x4fb1a2['start']['isBefore'](_0x3dd621['getFirstRange']()['start'])?(_0x3dd621['removeMarkers'](),_0x3dd621=_0x20e316):_0x20e316['removeMarkers']():_0x3dd621=_0x20e316;}else{const _0x2c6839=_0x349d9e['getIntersection'](_0x4fb1a2);this['_cutOutSuggestionMarker'](_0x20e316,_0x2c6839);}}const _0x5e54bf=this['editor']['plugins']['get']('Users')['me'],_0x3b9608=_0x1a8355(),_0x46b637=_0x5e54bf['id'];if(_0x3dd621)return this['_setSuggestionRange'](_0x3dd621,this['_model']['createRange'](_0x1dca55,_0x4d9308)),_0x3dd621;{const _0x5496d4=this['_setSuggestionData']({'id':_0x3b9608,'type':'formatBlock:'+_0x5affe4,'data':_0x5f3a09,'createdAt':new Date(),'authorId':_0x46b637,'attributes':_0x40a74c});return this['_addSuggestionMarker']('formatBlock:'+_0x5affe4,_0x3b9608,_0x46b637,this['_model']['createRange'](_0x1dca55,_0x4d9308)),_0x5496d4;}}['markMultiRangeBlockFormat'](_0x589bf8,_0x409b2a,_0x270137=[],_0x422ccc=null,_0x5b49b3={}){_0x409b2a['formatGroupId']||(_0x409b2a['formatGroupId']=_0x409b2a['commandName']);const _0x5dd54b=_0x589bf8[0x0];_0x409b2a['multipleBlocks']=_0x5dd54b['is']('range'),_0x422ccc=_0x422ccc||Lt(_0x409b2a);const _0x49cd79=_0x270137['map'](_0x12c9b7=>qt(_0x12c9b7,this['_model'])),_0x478541=_0x5dd54b['is']('range')?_0x589bf8:_0x589bf8['map'](_0x479d65=>qt(_0x479d65,this['_model']));if(this['_trackingSessionId']&&(_0x5b49b3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x384d40=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x422ccc,'accept');return this['forceDefaultExecution'](()=>_0x384d40(_0x478541,_0x409b2a,_0x5b49b3)),null;}_0x49cd79['push'](..._0x478541);let _0x5933db=!0x0;for(const _0x260172 of _0x49cd79)if(!this['_rangeIsInLocalUserInsertion'](_0x260172)){_0x5933db=!0x1;break;}if(_0x5933db&&'always'!==this['_trackFormatChanges']){const _0x39c862=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x422ccc,'accept');return this['forceDefaultExecution'](()=>_0x39c862(_0x478541,_0x409b2a,_0x5b49b3)),null;}const _0x3dda1a=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f1c40 of this['getSuggestions']()){const _0xca4696=_0x3f1c40['data'];if(_0x3f1c40['author']['id']!=_0x3dda1a['id'])continue;if('formatBlock'!=_0x3f1c40['type']||_0xca4696['formatGroupId']!=_0x409b2a['formatGroupId'])continue;if(!Qt(_0x3f1c40,_0x5b49b3))continue;const _0x3354fe=_0x3f1c40['subType']==_0x422ccc;for(let _0x33e1cb=0x0;_0x33e1cb<_0x478541['length'];_0x33e1cb++){const _0x12a73e=_0x478541[_0x33e1cb];for(const _0x13c089 of _0x3f1c40['getMarkers']()){const _0x1af132=_0x13c089['getRange']();if(_0x12a73e['isEqual'](_0x1af132)){_0x3354fe?(_0x478541['splice'](_0x33e1cb,0x1),_0x33e1cb--):_0x3f1c40['removeMarker'](_0x13c089['name']);break;}}}}if(0x0==_0x478541['length'])return null;const _0x38fbbd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x422ccc,'join');for(const _0x39fc98 of this['getSuggestions']()){const _0x5286c6=_0x39fc98['data'];if(_0x39fc98['author']['id']==_0x3dda1a['id']&&('formatBlock'==_0x39fc98['type']&&_0x5286c6['formatGroupId']==_0x409b2a['formatGroupId']&&_0x39fc98['subType']==_0x422ccc&&Qt(_0x39fc98,_0x5b49b3)&&(_0x38fbbd(_0x39fc98['getRanges'](),_0x478541)||_0x38fbbd(_0x478541,_0x39fc98['getRanges']())))){for(const _0xa6b369 of _0x478541)_0x39fc98['addRange'](_0xa6b369);return _0x39fc98;}}const _0x3843d8=_0x1a8355(),_0x5362d4=_0x3dda1a['id'],_0x4c1796='formatBlock:'+_0x422ccc,_0x4b922d=this['_setSuggestionData']({'id':_0x3843d8,'type':_0x4c1796,'data':_0x409b2a,'createdAt':new Date(),'authorId':_0x5362d4,'attributes':_0x5b49b3});for(const _0x14a432 of _0x478541)this['_addSuggestionMarker'](_0x4c1796,_0x3843d8,_0x5362d4,_0x14a432,T['getMultiRangeId']());return _0x4b922d;}['markDeletion'](_0x40a753,_0x3ad4b9=null,_0x28ac17={}){if(_0x40a753['isCollapsed'])return null;const _0x1cb0a1=this['editor']['plugins']['get']('Users')['me'],_0x14dd77=new _0x414e2a(_0x40a753['start'],_0x40a753['end']);this['_trackingSessionId']&&(_0x28ac17['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x112bb7,meta:_0x5f3332}of this['_findSuggestions'](_0x14dd77,'insertion'))if(_0x5f3332['isOwn']&&!_0x5f3332['isNextTo']){if(_0x112bb7['isMultiRange']){const _0x2772e6=_0x112bb7['getRanges']()['filter'](_0x183147=>'$graveyard'!=_0x183147['root']['rootName']);_0x2772e6['every'](_0x528c45=>_0x14dd77['containsRange'](_0x528c45,!0x0))&&_0x112bb7['discard']();if(_0x2772e6['some'](_0x2c354f=>_0x2c354f['containsRange'](_0x14dd77,!0x0))){const _0x50968c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ad4b9,'accept');return this['forceDefaultExecution'](()=>_0x50968c([_0x14dd77],null,_0x28ac17)),null;}}else{const _0x245b8e=_0x14dd77['getIntersection'](_0x112bb7['getFirstRange']());null!==_0x245b8e&&_0x112bb7['_onDiscard']([_0x245b8e],null,_0x28ac17);}}if(_0x14dd77['detach'](),_0x14dd77['isCollapsed']||'$graveyard'==_0x14dd77['root']['rootName'])return null;let _0x2d79a3=null,_0x2dac46=_0x14dd77['start'],_0xb5ea4c=_0x14dd77['end'];const _0x1fbfd3=this['_findSuggestions'](_0x14dd77,'deletion');for(const {suggestion:_0x4c30ce,meta:_0x3621fb}of _0x1fbfd3){const _0x4c9f0e=this['_model']['createRange'](_0x2dac46,_0xb5ea4c);if(_0x3621fb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3621fb['containsRangeInObject']&&!_0x3621fb['isInsideObject'])){if(_0x4c30ce['isMultiRange']){if(!Qt(_0x4c30ce,_0x28ac17))continue;let _0xbb1e4a=!0x0;for(const _0x4258fa of _0x4c30ce['getRanges']()){if(_0x4258fa['containsRange'](_0x4c9f0e,!0x0))return _0x4c30ce;_0x4c9f0e['containsRange'](_0x4258fa)||(_0xbb1e4a=!0x1);}_0xbb1e4a&&_0x4c30ce['discard']();}else{const _0x4bb6c5=_0x4c30ce['getFirstRange']();if(_0x4bb6c5['containsRange'](_0x4c9f0e,!0x0))return _0x4c30ce;if(!Qt(_0x4c30ce,_0x28ac17)){_0x4c9f0e['containsRange'](_0x4bb6c5)?_0x4c30ce['removeMarkers']():_0x4bb6c5['containsPosition'](_0x2dac46)?_0x2dac46=_0x4bb6c5['end']:_0x4bb6c5['containsPosition'](_0xb5ea4c)&&(_0xb5ea4c=_0x4bb6c5['start']);continue;}_0x2dac46=_0x2dac46['isBefore'](_0x4bb6c5['start'])?_0x2dac46:_0x4bb6c5['start'],_0xb5ea4c=_0xb5ea4c['isAfter'](_0x4bb6c5['end'])?_0xb5ea4c:_0x4bb6c5['end'],_0x28ac17=Object['assign']({},_0x4c30ce['attributes']),_0x2d79a3?_0x4bb6c5['start']['isBefore'](_0x2d79a3['getFirstRange']()['start'])?(_0x2d79a3['removeMarkers'](),_0x2d79a3=_0x4c30ce):_0x4c30ce['removeMarkers']():_0x2d79a3=_0x4c30ce;}}}if(_0x2d79a3)return this['_setSuggestionRange'](_0x2d79a3,this['_model']['createRange'](_0x2dac46,_0xb5ea4c)),_0x2d79a3;{const _0x55a9a0=_0x1a8355(),_0x40ec84=this['_model']['createRange'](_0x2dac46,_0xb5ea4c),_0x39f09f=_0x1cb0a1['id'],_0x18fd6c=_0x3ad4b9?'deletion:'+_0x3ad4b9:'deletion',_0x177abc=this['_setSuggestionData']({'id':_0x55a9a0,'type':_0x18fd6c,'createdAt':new Date(),'authorId':_0x39f09f,'attributes':_0x28ac17});return this['_addSuggestionMarker'](_0x18fd6c,_0x55a9a0,_0x39f09f,_0x40ec84),_0x177abc;}}['markMultiRangeDeletion'](_0x597b5a,_0x5c2647='multi',_0x24d967={}){const _0x46240e=this['editor']['plugins']['get']('Users')['me'],_0x3e072c=_0x597b5a['map'](_0x3da6c3=>new _0x414e2a(_0x3da6c3['start'],_0x3da6c3['end'])),_0x589f3a=new Set();this['_trackingSessionId']&&(_0x24d967['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1d9c80,meta:_0x8d8495}of this['_findSuggestions'](_0x3e072c,'insertion'))_0x8d8495['isOwn']&&!_0x8d8495['isNextTo']&&_0x589f3a['add'](_0x1d9c80);for(const _0x3698dd of _0x589f3a)if(_0x3698dd['isMultiRange']){const _0x243b62=_0x3698dd['getRanges']();(!_0x3698dd['attributes']||!_0x3698dd['attributes']['skipNestingCheck'])&&(_0x243b62['every'](_0x4ac5eb=>_0x3e072c['some'](_0x5f4152=>_0x5f4152['containsRange'](_0x4ac5eb,!0x0)))&&_0x3698dd['discard']());if(_0x3e072c['every'](_0x5812fe=>_0x243b62['some'](_0x21e537=>_0x21e537['containsRange'](_0x5812fe,!0x0)))){const _0x42813f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c2647,'accept');return this['forceDefaultExecution'](()=>_0x42813f(_0x597b5a,null,_0x24d967)),null;}}else{const _0x293206=_0x3698dd['getFirstRange']();_0x3e072c['some'](_0xf0d35e=>_0xf0d35e['containsRange'](_0x293206,!0x0))&&_0x3698dd['discard']();if(_0x3e072c['every'](_0x54f4f7=>_0x293206['containsRange'](_0x54f4f7,!0x0))){const _0x34da6c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c2647,'accept');return this['forceDefaultExecution'](()=>_0x34da6c(_0x3e072c,null,_0x24d967)),null;}}const _0x44685d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c2647,'join');let _0x1c0319=null;for(const _0xb7aaed of this['getSuggestions']())if(_0xb7aaed['author']['id']==_0x46240e['id']&&_0xb7aaed['isInContent']&&'deletion'==_0xb7aaed['type']&&_0xb7aaed['subType']==_0x5c2647&&Qt(_0xb7aaed,_0x24d967)&&(_0x44685d(_0xb7aaed['getRanges'](),_0x3e072c)||_0x44685d(_0x3e072c,_0xb7aaed['getRanges']()))){if(_0x1c0319){if(_0xb7aaed['commentThread']&&_0xb7aaed['commentThread']['length'])continue;for(const _0x4688ab of _0xb7aaed['getRanges']())_0x1c0319['isIntersectingWithRange'](_0x4688ab)||_0x1c0319['addRange'](_0x4688ab);_0xb7aaed['removeMarkers']();}else{_0x1c0319=_0xb7aaed;for(const _0x554103 of _0x3e072c)_0xb7aaed['isIntersectingWithRange'](_0x554103)||_0xb7aaed['addRange'](_0x554103);}}if(_0x1c0319)return _0x1c0319;_0x589f3a['clear']();for(const {suggestion:_0x738c7f,meta:_0x17a98a}of this['_findSuggestions'](_0x3e072c,'deletion'))_0x17a98a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17a98a['containsRangeInObject']&&!_0x17a98a['isInsideObject'])&&Qt(_0x738c7f,_0x24d967)&&_0x589f3a['add'](_0x738c7f);for(const _0x25f704 of _0x589f3a){const _0x2fea88=_0x25f704['getRanges']();if(!_0x24d967||!_0x24d967['skipNestingCheck']){if(_0x3e072c['every'](_0x49d272=>_0x2fea88['some'](_0x16dab1=>_0x16dab1['containsRange'](_0x49d272,!0x0))))return _0x25f704;}(!_0x25f704['attributes']||!_0x25f704['attributes']['skipNestingCheck'])&&(_0x2fea88['every'](_0x5471cd=>_0x3e072c['some'](_0x1e4ae3=>_0x1e4ae3['containsRange'](_0x5471cd,!0x0)))&&_0x25f704['discard']());}const _0x5c6227=_0x1a8355(),_0x4c5987=_0x46240e['id'],_0x508b5a='deletion:'+_0x5c2647,_0x24598a=this['_setSuggestionData']({'id':_0x5c6227,'type':_0x508b5a,'createdAt':new Date(),'authorId':_0x4c5987,'attributes':_0x24d967});for(const _0x2f5f53 of _0x3e072c)_0x2f5f53['detach'](),_0x2f5f53['isCollapsed']||'$graveyard'==_0x2f5f53['root']['rootName']||this['_addSuggestionMarker'](_0x508b5a,_0x5c6227,_0x4c5987,_0x2f5f53,T['getMultiRangeId']());return _0x24598a;}['markAttributeChange'](_0x3511ec,_0x323e3f,_0x44e711,_0x14f8c0,_0x5a8f82){if(_0x3511ec['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x46b138=this['editor']['plugins']['get']('Users')['me']['id'],_0x819d63=Array['from'](this['_suggestions']['values']())['filter'](_0x24b323=>'attribute'==_0x24b323['type']&&_0x24b323['data']['key']==_0x323e3f&&_0x24b323['isIntersectingWithRange'](_0x3511ec));if(this['_trackingSessionId']&&(_0x5a8f82['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x25f9b5=this['_findSuggestions'](_0x3511ec,'insertion')['filter'](({meta:_0x26bc9a})=>_0x26bc9a['isOwn']&&!_0x26bc9a['isInsideObject']&&!_0x26bc9a['isNextTo'])['map'](({suggestion:_0x51c4da})=>_0x51c4da);_0x819d63['unshift'](..._0x25f9b5);}const _0x398b92=new Map([[_0x3511ec,_0x44e711]]);for(const _0x8c2003 of _0x819d63){const _0x57c41b='attribute'==_0x8c2003['type']?_0x8c2003['data']['oldValue']:void 0x0,_0x2ff577=_0x8c2003['getFirstRange'](),_0x3e0002=Array['from'](_0x398b92['keys']())['find'](_0xc8c89b=>_0xc8c89b['isIntersecting'](_0x2ff577));if(!_0x3e0002)continue;const _0x1a1aaa=_0x3e0002['getDifference'](_0x2ff577);this['_isBlockAttribute'](_0x323e3f)&&'insertion'==_0x8c2003['type']&&0x0!=_0x1a1aaa['length']||(_0x398b92['delete'](_0x3e0002),_0x1a1aaa['forEach'](_0xf151d4=>{_0x398b92['set'](_0xf151d4,_0x44e711);}),'insertion'!=_0x8c2003['type']&&_0x57c41b!=_0x14f8c0&&_0x398b92['set'](_0x3e0002['getIntersection'](_0x2ff577),_0x57c41b));}const _0x583084=[];for(const [_0x9a3817,_0x1bf580]of _0x398b92){const _0x170d12=_0x1a8355(),_0x25aa48={'key':_0x323e3f,'oldValue':_0x1bf580,'newValue':_0x14f8c0};_0x323e3f['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':_0x323e3f});const _0x3952bf=('attribute:'+(_0x323e3f+'|'+Lt({'newValue':_0x14f8c0})))['substring'](0x0,0x3c),_0x51db34=this['_setSuggestionData']({'id':_0x170d12,'type':_0x3952bf,'data':_0x25aa48,'createdAt':new Date(),'authorId':_0x46b138,'attributes':_0x5a8f82});_0x583084['push'](_0x51db34),this['_addSuggestionMarker'](_0x3952bf,_0x170d12,_0x46b138,_0x9a3817);}return _0x583084;}['enableDefaultAttributesIntegration'](_0x2536b3){this['enableCommand'](_0x2536b3,(_0xec5c75,..._0x440ccd)=>{this['recordAttributeChanges'](()=>{_0xec5c75(..._0x440ccd);});});}['registerBlockAttribute'](_0x30fdff){this['_blockAttributeKeys']['add'](_0x30fdff);}['registerInlineAttribute'](_0x57db58){this['_inlineAttributeKeys']['add'](_0x57db58);}['startTrackingSession'](_0x11387c){return this['_trackingSessionId']=void 0x0!==_0x11387c?_0x11387c:_0x1a8355(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1936c3){return'attribute'==_0x1936c3['type']?_0x1936c3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1ad002,_0x5b6cf9){const _0x1dac0d=_0x1ad002['getFirstMarker']();this['_model']['change'](_0x28e2f4=>{_0x28e2f4['updateMarker'](_0x1dac0d,{'range':_0x5b6cf9});});}['_addThreadToSuggestion'](_0x18286f){const _0x1277f1=_0x18286f['id'],_0x35a784=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1277f1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x35a784,'threadId':_0x1277f1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x268125=this['_commentsRepository']['getCommentThread'](_0x1277f1);_0x268125['unbind']('isRemovable'),_0x268125['isRemovable']=!0x1,_0x18286f['commentThread']=_0x268125;}['_checkSuggestionCorrectness'](_0x2c3ed4,_0x459c49,_0x13df08,_0x48be7e){if(_0x2c3ed4['type']!=_0x459c49||_0x2c3ed4['subType']!=_0x13df08||_0x2c3ed4['creator']['id']!=_0x48be7e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x483cd5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x101903,_0x4f02a3){const _0x2ac172=_0x101903['getFirstRange']();if(_0x4f02a3['isEqual'](_0x2ac172))_0x101903['removeMarkers']();else{if(_0x2ac172['containsRange'](_0x4f02a3)){const _0xb823c2=this['_model']['createPositionAt'](_0x4f02a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x101903,this['_model']['createRange'](_0x2ac172['start'],_0xb823c2));const _0x1282fc=_0x1a8355(),_0x3d8ffb=_0x101903['creator']['id'],_0xea2cbf=_0x101903['type']+':'+_0x101903['subType'];this['_setSuggestionData']({'id':_0x1282fc,'type':_0xea2cbf,'createdAt':new Date(),'authorId':_0x3d8ffb,'data':_0x101903['data'],'attributes':_0x101903['attributes']});const _0x1a432b=this['_model']['createPositionAt'](_0x4f02a3['end']['parent'],'after'),_0x592c5d=this['_model']['createRange'](_0x1a432b,_0x2ac172['end']);this['_addSuggestionMarker'](_0xea2cbf,_0x1282fc,_0x3d8ffb,_0x592c5d);}else{if(_0x2ac172['containsPosition'](_0x4f02a3['start'])){const _0x145986=this['_model']['createPositionAt'](_0x4f02a3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x101903,this['_model']['createRange'](_0x2ac172['start'],_0x145986));}else{const _0x1796a1=this['_model']['createPositionAt'](_0x4f02a3['end']['parent'],'after');this['_setSuggestionRange'](_0x101903,this['_model']['createRange'](_0x1796a1,_0x2ac172['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x11280f){for(const {suggestion:_0x2d07db,meta:_0x125198}of this['_findSuggestions'](_0x11280f,'insertion')){if(!_0x125198['isOwn'])continue;const _0xd5a9e2=_0x2d07db['getRanges']();for(const _0x1b05f7 of _0xd5a9e2)if(!_0x11280f['getDifference'](_0x1b05f7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5a01f9){const _0x37db5b=this['editor']['plugins']['get']('Users')['getUser'](_0x5a01f9);if(!_0x37db5b)throw new _0x483cd5('track-changes-user-not-found',this);return _0x37db5b;}['_getExternalAuthor'](_0x32ed72){const _0x5613a6=this['editor']['plugins']['get']('Users'),_0x42fc83=_0x4f0f78('external:'+_0x32ed72),_0x385e13=_0x5613a6['getUser'](_0x42fc83);return _0x385e13||_0x5613a6['addUser']({'id':_0x42fc83,'name':_0x32ed72});}['_createSuggestion'](_0x2ed67e,_0x37b8cb,_0x5f32ba,_0x112151,_0x531a69,_0x22591b){const _0x48f4e9=this['_getAuthorFromId'](_0x112151),_0x13f7dd=this['_suggestionFactory']['buildSuggestion'](_0x2ed67e,_0x37b8cb,_0x5f32ba,_0x48f4e9,_0x531a69,_0x115e9d=>{this['_updateSuggestionData'](_0x5f32ba,{'attributes':_0x115e9d});const _0x42e272=this['getSuggestion'](_0x5f32ba);this['_joinWithAdjacentSuggestions'](new Set([_0x42e272])),this['_refreshSuggestionsChain'](new Set([_0x42e272]));},_0x22591b);return this['listenTo'](_0x13f7dd,'accept',()=>{this['_updateSuggestionData'](_0x5f32ba,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x13f7dd,'discard',()=>{this['_updateSuggestionData'](_0x5f32ba,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5f32ba,_0x13f7dd),this['_suggestionState']['set'](_0x13f7dd,'notReady'),_0x13f7dd;}['_splitMarkerName'](_0x301a47){const _0x21227e=_0x301a47['split'](':');return{'group':_0x21227e[0x0],'type':_0x21227e[0x1],'subType':_0x21227e['length']>=0x5?_0x21227e[0x2]:null,'id':_0x21227e['length']<0x5?_0x21227e[0x2]:_0x21227e[0x3],'authorId':_0x21227e['length']<0x5?_0x21227e[0x3]:_0x21227e[0x4],'markerCount':0x6==_0x21227e['length']?_0x21227e[0x5]:null};}['_breakSuggestionMarker'](_0xf039b3,_0x1d5c23,_0x33076f){const _0x52cde4=_0xf039b3['getFirstRange'](),_0x253391=_0x52cde4['start'],_0x4fc188=_0x52cde4['end'];this['_setSuggestionRange'](_0xf039b3,this['_model']['createRange'](_0x253391,_0x1d5c23));const _0x511d55=_0x1a8355(),_0x4cffbd=_0xf039b3['creator']['id'],_0x1130ca=_0xf039b3['type']+(_0xf039b3['subType']?':'+_0xf039b3['subType']:'');this['_setSuggestionData']({'id':_0x511d55,'type':_0x1130ca,'createdAt':new Date(),'authorId':_0x4cffbd,'originalSuggestionId':_0xf039b3['_originalSuggestionId']||_0xf039b3['id'],'attributes':_0xf039b3['attributes'],'data':_0xf039b3['data']});const _0x43b2b8=this['_getAttributeKey'](_0xf039b3);('formatBlock'==_0xf039b3['type']||_0x43b2b8&&this['_isBlockAttribute'](_0x43b2b8))&&(_0x33076f=this['_model']['createPositionBefore'](_0x33076f['parent'])),this['_addSuggestionMarker'](_0x1130ca,_0x511d55,_0x4cffbd,this['_model']['createRange'](_0x33076f,_0x4fc188));}['_findSuggestions'](_0x7e39fa,_0x4544f2=null){const _0x551b8e=[],_0x28fb91=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x7e39fa)||(_0x7e39fa=[_0x7e39fa]);for(const _0x55bce1 of this['getSuggestions']()){if(!_0x55bce1['isInContent'])continue;if(_0x4544f2&&_0x55bce1['type']!=_0x4544f2)continue;let _0x5f46f9=!0x1;for(const _0x527550 of _0x55bce1['getRanges']()){for(const _0x1dde99 of _0x7e39fa){const _0x39b4f7=_0x1dde99['start']['isEqual'](_0x527550['end'])||_0x1dde99['end']['isEqual'](_0x527550['start']);if(_0x39b4f7||_0x1dde99['getIntersection'](_0x527550)){const _0x2da721=_0x1dde99['containsRange'](_0x527550)&&Ft(this['_model']['schema'],_0x527550['start'],_0x1dde99),_0x8985f8=_0x527550['containsRange'](_0x1dde99)&&Ft(this['_model']['schema'],_0x1dde99['start'],_0x527550);_0x551b8e['push']({'suggestion':_0x55bce1,'meta':{'isOwn':_0x28fb91==_0x55bce1['author'],'isNextTo':_0x39b4f7,'isInsideObject':_0x2da721,'containsRangeInObject':_0x8985f8}}),_0x5f46f9=!0x0;break;}}if(_0x5f46f9)break;}}return _0x551b8e;}['_addSuggestionMarker'](_0x12ec5e,_0x3cfa81,_0x1babe8,_0x2a0997,_0xdd99b7){this['_model']['change'](_0x526361=>{let _0x3d6fe8='suggestion:'+_0x12ec5e+':'+_0x3cfa81+':'+_0x1babe8;_0xdd99b7&&(_0x3d6fe8=_0x3d6fe8+':'+_0xdd99b7),_0x526361['addMarker'](_0x3d6fe8,{'range':_0x2a0997,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x539410){const _0x424294=_0x539410['previous'],_0x2dbee5=_0x539410['next'];_0x539410['previous']=null,_0x539410['next']=null,null!=_0x424294&&_0x424294['next']==_0x539410&&(_0x424294['next']=_0x2dbee5),null!=_0x2dbee5&&_0x2dbee5['previous']==_0x539410&&(_0x2dbee5['previous']=_0x424294),'ready'==this['_suggestionState']['get'](_0x539410)&&(this['_suggestionState']['set'](_0x539410,'removed'),this['fire']('suggestionUnloaded',_0x539410,_0x424294,_0x2dbee5));}['_setSuggestionData'](_0x3fc51b){const _0xf3ee93=_0x3fc51b['id'],_0x5e0458=this['addSuggestionData'](_0x3fc51b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56afd8=this['editor']['plugins']['get']('PendingActions'),_0x55ee94=_0x5e0458['hasComments'],_0x88b733=_0x5e0458['subType']?_0x5e0458['type']+':'+_0x5e0458['subType']:_0x5e0458['type'],_0x4c7e0a=this['editor']['locale'],_0x23fedd=_0x56afd8['add'](o(_0x4c7e0a,'PENDING_ACTION_SUGGESTION')),_0x2449c9={'id':_0xf3ee93,'type':_0x88b733,'hasComments':_0x55ee94,'data':_0x3fc51b['data']||null,'originalSuggestionId':_0x3fc51b['originalSuggestionId']||null,'attributes':_0x5e0458['attributes']};this['_adapter']['addSuggestion'](_0x2449c9)['then'](_0x4fc31c=>{_0x5e0458['_saved']=!0x0,_0x56afd8['remove'](_0x23fedd),_0x4fc31c&&_0x4fc31c['createdAt']&&(this['_suggestions']['get'](_0xf3ee93)['createdAt']=_0x4fc31c['createdAt']);})['catch'](_0x504a5d=>{throw _0x5aa01e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5e0458['discard']();}),_0x5e0458['stopListening'](),this['_suggestions']['delete'](_0x5e0458['id']),this['_suggestionState']['delete'](_0x5e0458),_0x504a5d;});}return _0x5e0458;}['_isBlockAttribute'](_0x4de224){return this['_blockAttributeKeys']['has'](_0x4de224);}['_updateSuggestionData'](_0x1d2305,_0x3aa0aa){const _0xb39d24=this['editor']['plugins']['get']('PendingActions'),_0x507ceb=this['getSuggestion'](_0x1d2305);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x507ceb['_saved']){const _0x49a41e=_0xb39d24['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1d2305,_0x3aa0aa)['then'](()=>{_0xb39d24['remove'](_0x49a41e);});}else _0x507ceb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1d2305,_0x3aa0aa);});}}['_getSuggestionData'](_0x2e9565){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x483cd5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e9565);}['_handleNewSuggestionMarker'](_0x4304b2){const {id:_0x526071,type:_0x3e775b,subType:_0xc552f0,authorId:_0x186b74}=this['_splitMarkerName'](_0x4304b2),_0x2a3ae9=this['_suggestions']['get'](_0x526071)||this['_createSuggestion'](_0x3e775b,_0xc552f0,_0x526071,_0x186b74,{});switch(this['_checkSuggestionCorrectness'](_0x2a3ae9,_0x3e775b,_0xc552f0,_0x186b74),this['_suggestionState']['get'](_0x2a3ae9)){case'notReady':this['_getSuggestionData'](_0x526071)['then'](_0x9ac65e=>{let _0x25d6c8=Promise['resolve']();_0x9ac65e['hasComments']&&(_0x25d6c8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x526071})),_0x25d6c8['then'](()=>{this['addSuggestionData'](_0x9ac65e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2a3ae9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x526071,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2a3ae9,'ready'),this['fire']('suggestionLoaded',_0x2a3ae9);break;case'ready':this['fire']('suggestionChanged',_0x2a3ae9);}return _0x2a3ae9['addMarkerName'](_0x4304b2),_0x2a3ae9;}['_refreshSuggestionsChain'](_0x402c75){const _0x25c43e=Array['from'](_0x402c75),_0x56aa6b=_0x25c43e['filter'](_0x1f656f=>'attribute'==_0x1f656f['type']);this['_refreshAttributeSuggestionsChain'](_0x56aa6b);const _0x3e4a8a=_0x25c43e['filter'](_0x611a6c=>!_0x611a6c['isMultiRange']&&'attribute'!=_0x611a6c['type']),_0x1cc1b2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x909920=>!_0x909920['isMultiRange']&&'attribute'!=_0x909920['type']),_0x448333=_0x1cc1b2['filter'](_0x5164ea=>!_0x402c75['has'](_0x5164ea)),_0x13c641=new Map(_0x1cc1b2['map'](_0x16bcce=>[_0x16bcce,this['_suggestionFactory']['getSuggestionCallback'](_0x16bcce['type'],_0x16bcce['subType'],'chain')])),_0x28e522=new Map(_0x1cc1b2['map'](_0x143b37=>[_0x143b37,_0x143b37['getFirstRange']()])),_0x394048=new Set(),_0x345ddc=new Set();for(let _0x49038f=0x0;_0x49038f<_0x3e4a8a['length'];_0x49038f++)_0x4932a7(_0x3e4a8a[_0x49038f],_0x3e4a8a,_0x49038f+0x1);for(let _0x17e676=0x0;_0x17e676<_0x3e4a8a['length'];_0x17e676++)_0x4932a7(_0x3e4a8a[_0x17e676],_0x448333,0x0);const _0x2e14c2=new Set();for(let _0x3ffa21=0x0;_0x3ffa21<_0x3e4a8a['length'];_0x3ffa21++){const _0x142184=_0x3e4a8a[_0x3ffa21];!_0x345ddc['has'](_0x142184)&&_0x142184['previous']&&(_0x2e14c2['add'](_0x142184['previous']),_0x142184['previous']['next']===_0x142184&&(_0x142184['previous']['next']=null),_0x142184['previous']=null),!_0x394048['has'](_0x142184)&&_0x142184['next']&&(_0x2e14c2['add'](_0x142184['next']),_0x142184['next']['previous']===_0x142184&&(_0x142184['next']['previous']=null),_0x142184['next']=null);}function _0x4932a7(_0x55cbbb,_0x33f296,_0x5e060d){for(let _0x3c5068=_0x5e060d;_0x3c5068<_0x33f296['length'];_0x3c5068++){const _0x4fd376=_0x378f4f(_0x55cbbb,_0x33f296[_0x3c5068]);_0x4fd376&&(_0x4fd376[0x0]['next']=_0x4fd376[0x1],_0x4fd376[0x1]['previous']=_0x4fd376[0x0],_0x394048['add'](_0x4fd376[0x0]),_0x345ddc['add'](_0x4fd376[0x1]));}}function _0x378f4f(_0x41355b,_0x11db79){if(_0x41355b['author']['id']!==_0x11db79['author']['id'])return null;const _0x5bf34c=_0x13c641['get'](_0x41355b)(_0x41355b,_0x11db79,_0x28e522['get'](_0x41355b),_0x28e522['get'](_0x11db79));if(!_0x5bf34c)return null;return _0x13c641['get'](_0x11db79)(_0x41355b,_0x11db79,_0x28e522['get'](_0x41355b),_0x28e522['get'](_0x11db79))?_0x5bf34c[0x1]['commentThread']&&_0x5bf34c[0x1]['commentThread']['length']?null:_0x5bf34c:null;}_0x2e14c2['size']&&this['_refreshSuggestionsChain'](_0x2e14c2);}['_refreshAttributeSuggestionsChain'](_0x44d35c){if(0x0==_0x44d35c['length'])return;const _0x2231f1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1190ad=>'attribute'==_0x1190ad['type']&&_0x1190ad['_isDataLoaded']),_0x1684b8=[],_0x47216d=new Map();for(const _0x2586b2 of _0x2231f1){const _0x2de4e2=_0x4f0f78(_0x2586b2['attributes']);_0x47216d['has'](_0x2de4e2)||(_0x47216d['set'](_0x2de4e2,_0x1684b8['length']),_0x1684b8['push']([]));const _0x39c19e=_0x47216d['get'](_0x2de4e2);_0x1684b8[_0x39c19e]['push'](_0x2586b2);}!(function(){_0x1684b8['sort']((_0x161e2c,_0x17fa32)=>{const _0x49f6ba=_0x161e2c[0x0]['createdAt'],_0x517749=_0x17fa32[0x0]['createdAt'];return _0x49f6ba==_0x517749?_0x161e2c[0x0]['attributes']['groupId']<_0x17fa32[0x0]['attributes']['groupId']?-0x1:0x1:_0x49f6ba<_0x517749?-0x1:0x1;});for(const _0xbe982b of _0x1684b8)_0xbe982b['sort']((_0x184f14,_0x3f3a6d)=>_0x184f14['id']<_0x3f3a6d['id']?-0x1:0x1);}());for(let _0x264758=0x0;_0x264758<_0x1684b8['length'];_0x264758++){if(0x0==_0x1684b8[_0x264758]['length'])continue;const _0x19961c=[];for(let _0x2c9252=_0x264758+0x1;_0x2c9252<_0x1684b8['length'];_0x2c9252++)0x0!=_0x1684b8[_0x2c9252]['length']&&_0xea8427(_0x1684b8[_0x264758],_0x1684b8[_0x2c9252])&&_0x19961c['push'](_0x2c9252);for(const _0x444d59 of _0x19961c)_0x1684b8[_0x264758]=_0x1684b8[_0x264758]['concat'](_0x1684b8[_0x444d59]),_0x1684b8[_0x444d59]=[];}for(const _0x5df824 of _0x1684b8)for(let _0x22c09f=0x0;_0x22c09f<_0x5df824['length'];_0x22c09f++){const _0x13d65a=_0x5df824[_0x22c09f+0x1]||null;_0x5df824[_0x22c09f]['next']!==_0x13d65a&&(_0x5df824[_0x22c09f]['next']=_0x13d65a);}for(const _0x34a5e of _0x1684b8)for(let _0x1d913a=0x0;_0x1d913a<_0x34a5e['length'];_0x1d913a++){const _0x4bf0a2=_0x34a5e[_0x1d913a-0x1]||null;_0x34a5e[_0x1d913a]['previous']!==_0x4bf0a2&&(_0x34a5e[_0x1d913a]['previous']=_0x4bf0a2);}function _0xea8427(_0xaa8fc,_0x52684d){if(_0xaa8fc[0x0]['attributes']['groupId']!==_0x52684d[0x0]['attributes']['groupId']&&_0xaa8fc[0x0]['author']!==_0x52684d[0x0]['author'])return!0x1;if(!function(_0x21ea8a,_0x2fe8c7){if(!_0x21ea8a['hasComments']&&!_0x2fe8c7['hasComments'])return!0x0;if(_0x21ea8a['hasComments']&&_0x2fe8c7['hasComments'])return!0x1;if(_0x21ea8a['hasComments']&&_0x2fe8c7['createdAt']<_0x21ea8a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2fe8c7['hasComments']&&_0x21ea8a['createdAt']<_0x2fe8c7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xaa8fc[0x0],_0x52684d[0x0]))return!0x1;const _0x1525f5=Ut(_0xaa8fc[0x0]['attributes'],['groupId','trackingSessionId']),_0x335b8a=Ut(_0x52684d[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5b6043(_0x1525f5,_0x335b8a))return!0x1;if(_0xaa8fc[0x0]['attributes']['groupId']==_0x52684d[0x0]['attributes']['groupId'])return!0x0;if(_0xaa8fc[0x0]['attributes']['trackingSessionId']!==_0x52684d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xaa8fc['every'](_0x82b622=>_0x52684d['some'](_0x136cda=>_0x82b622['getFirstRange']()['isEqual'](_0x136cda['getFirstRange']())))&&_0x52684d['every'](_0x1c3786=>_0xaa8fc['some'](_0x40f343=>_0x1c3786['getFirstRange']()['isEqual'](_0x40f343['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x39a133){const _0x1fbcc5=Array['from'](_0x39a133),_0x143969=this['getSuggestions']({'skipNotAttached':!0x0}),_0x49eb95=_0x143969['filter'](_0x16123d=>!_0x39a133['has'](_0x16123d)),_0x255967=new Map(_0x1fbcc5['map'](_0x1e08cd=>[_0x1e08cd,this['_suggestionFactory']['getSuggestionCallback'](_0x1e08cd['type'],_0x1e08cd['subType'],'join')])),_0x18a3cc=new Map(_0x143969['map'](_0x3bf598=>[_0x3bf598,_0x3bf598['getRanges']()]));for(let _0xa5355f=0x0;_0xa5355f<_0x1fbcc5['length'];_0xa5355f++){if(_0x3a0877(this,_0x1fbcc5[_0xa5355f],_0x1fbcc5,_0xa5355f+0x1))return!0x0;}for(let _0x45984e=0x0;_0x45984e<_0x1fbcc5['length'];_0x45984e++){if(_0x3a0877(this,_0x1fbcc5[_0x45984e],_0x49eb95,0x0))return!0x0;}return!0x1;function _0x3a0877(_0x470dfc,_0x45d2e8,_0x39e53e,_0x409700){for(let _0x550254=_0x409700;_0x550254<_0x39e53e['length'];_0x550254++){const _0x4970c3=_0x39e53e[_0x550254];if(_0x4970c3['type']!==_0x45d2e8['type']||_0x4970c3['author']['id']!==_0x45d2e8['author']['id']||_0x4970c3['subType']!==_0x45d2e8['subType'])continue;if(!Wt(_0x45d2e8,_0x4970c3))continue;if('attribute'==_0x45d2e8['type']&&_0x45d2e8['data']['oldValue']!=_0x4970c3['data']['oldValue'])continue;if('attribute'==_0x45d2e8['type']&&_0x470dfc['_isBlockAttribute'](_0x45d2e8['data']['key']))continue;if('formatBlock'==_0x45d2e8['type']){const _0x12c4b8=_0x470dfc['editor']['model'],_0x24c9bd=_0x45d2e8['getContainedElement']();if(_0x24c9bd&&(_0x12c4b8['schema']['isObject'](_0x24c9bd)||_0x12c4b8['schema']['isLimit'](_0x24c9bd)))continue;}const _0x1b492a=_0x255967['get'](_0x45d2e8),_0x69bef0=_0x18a3cc['get'](_0x45d2e8),_0x3daaf8=_0x18a3cc['get'](_0x4970c3),_0x3a0125=_0x45d2e8['commentThread']&&_0x45d2e8['commentThread']['length'],_0x29d6d7=_0x4970c3['commentThread']&&_0x4970c3['commentThread']['length'];if(!_0x3a0125&&_0x1b492a(_0x3daaf8,_0x69bef0))return _0x470dfc['_joinSuggestions'](_0x4970c3,_0x45d2e8),_0x18a3cc['delete'](_0x45d2e8),!0x0;if(!_0x29d6d7&&_0x1b492a(_0x69bef0,_0x3daaf8))return _0x470dfc['_joinSuggestions'](_0x45d2e8,_0x4970c3),_0x18a3cc['delete'](_0x4970c3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4bc37a,_0x2cd401){if(_0x4bc37a['isMultiRange']){for(const _0x3fd3c8 of _0x2cd401['getRanges']())_0x4bc37a['addRange'](_0x3fd3c8);}else{const _0x2d58bc=_0x2cd401['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4bc37a,this['_model']['createRange'](_0x4bc37a['getFirstRange']()['start'],_0x2d58bc));}_0x2cd401['removeMarkers']();}['_getMarkerAnnouncementText'](_0x15a2f4,_0x2e9f27,_0x49ea37){const _0xf86434=_0x15a2f4['startsWith']('format')||_0x15a2f4['startsWith']('attribute')?'FORMATTING':_0x15a2f4['toUpperCase']();return o(this['editor']['locale'],_0x2e9f27+'_'+_0xf86434+'_SUGGESTION_ANNOUNCEMENT',_0x49ea37);}['_initAriaMarkerChangeAnnouncements'](){const _0x2d3926=this['editor'];if(!_0x2d3926['ui'])return;const {ariaLiveAnnouncer:_0x561d6c}=_0x2d3926['ui'];_0x2c7d31(this['_model'],({left:_0x498656,entered:_0x5ce623})=>{for(const _0x5321b1 of _0x498656){const {group:_0x5843df,type:_0x2f952c}=this['_splitMarkerName'](_0x5321b1['name']);if('suggestion'===_0x5843df){_0x561d6c['announce'](this['_getMarkerAnnouncementText'](_0x2f952c,'LEAVE'));break;}}for(const _0x52a93b of _0x5ce623){const {group:_0x3287ac,type:_0x2b5c32}=this['_splitMarkerName'](_0x52a93b['name']);if('suggestion'===_0x3287ac){_0x561d6c['announce'](this['_getMarkerAnnouncementText'](_0x2b5c32,'ENTER',_0x5ad898(_0x49e48c)));break;}}});}['_processAttributeChanges'](_0xf8eea6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5ea387=this['editor'],_0x257bb1=_0x5ea387['model']['document']['differ']['getChanges']();if(0x0==_0x257bb1['length'])return!0x1;const _0x9d8722=[],_0x337089=_0x257bb1['filter'](_0x630a5a=>'attribute'==_0x630a5a['type']),_0x2baee4=_0x257bb1['filter'](_0x2912da=>'insert'==_0x2912da['type']&&'$text'!=_0x2912da['name']),_0x2389ee=_0x257bb1['filter'](_0x24f62f=>'remove'==_0x24f62f['type']&&'$text'!=_0x24f62f['name']);for(const _0x5bcb8b of _0x337089)_0x9d8722['push']({'key':_0x5bcb8b['attributeKey'],'newValue':_0x5bcb8b['attributeNewValue'],'oldValue':_0x5bcb8b['attributeOldValue'],'range':Ht(_0x5bcb8b['range'],_0x5ea387['model'])});for(const _0x321235 of _0x2baee4){const _0x290449=_0x2389ee['find'](_0x5077ab=>_0x5077ab['position']['isEqual'](_0x321235['position']));_0x290449&&_0x9d8722['push']({'key':m,'newValue':_0x321235['name'],'oldValue':_0x290449['name'],'range':_0x5ea387['model']['createRangeOn'](_0x321235['position']['nodeAfter'])});}return 0x0!=_0x9d8722['length']&&this['_reduceExistingSuggestions'](_0xf8eea6,_0x9d8722);}['_processAttributeSuggestions'](_0x103eac){let _0x4a189f=!0x1;const _0x333fbf=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2bad21=>_0x2bad21['data']['newRange']&&_0x2bad21['name']['startsWith']('suggestion:attribute:'));for(const _0x6bf3f6 of _0x333fbf){const {subType:_0x35ce01,id:_0x43239b}=this['_splitMarkerName'](_0x6bf3f6['name']),_0x5f5ac5=_0x35ce01['split']('|')[0x0];for(const _0x3bd364 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3bd364['id']!=_0x43239b&&'attribute'==_0x3bd364['type']&&_0x3bd364['data']&&_0x3bd364['data']['key']==_0x5f5ac5&&_0x3bd364['getFirstRange']()['isIntersecting'](_0x6bf3f6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3bd364,_0x6bf3f6['data']['newRange'],_0x103eac),_0x4a189f=!0x0);}return _0x4a189f;}['recordAttributeChanges'](_0x954800){this['_recordAttributeSuggestions']=!0x0,_0x954800();}['_isRegisteredAttribute'](_0x43a702){const _0x2ef9d4=this['_isBlockAttribute'](_0x43a702),_0x17d29d=this['_inlineAttributeKeys']['has'](_0x43a702);return _0x2ef9d4||_0x17d29d;}['_reduceExistingSuggestions'](_0x3e370f,_0x1f7e82){if(0x0==_0x1f7e82['length'])return!0x1;let _0x5b2e58=!0x1;for(const _0x399969 of _0x1f7e82){const _0x2abf90=this['_findSuggestions'](_0x399969['range'],'attribute')['filter'](_0x11eb0a=>!_0x11eb0a['meta']['isNextTo'])['map'](_0x1f6ffa=>_0x1f6ffa['suggestion']),_0x2f494d=_0x4f0f78({'newValue':_0x399969['newValue']});_0x2abf90['filter'](_0x7d84bd=>{const [_0x485b67,_0x3f8ffb]=_0x7d84bd['subType']['split']('|');return _0x485b67==_0x399969['key']&&_0x3f8ffb!=_0x2f494d;})['forEach'](_0x259569=>{this['_reduceSuggestionAttributeRange'](_0x259569,_0x399969['range'],_0x3e370f),_0x5b2e58=!0x0;});}return _0x5b2e58;}['_reduceSuggestionAttributeRange'](_0x1c09e5,_0x25910c,_0x3e0208){const _0x4c527a=_0x1c09e5['getFirstRange']()['getDifference'](_0x25910c);0x0!==_0x4c527a['length']?0x1!==_0x4c527a['length']?this['_breakSuggestionMarker'](_0x1c09e5,_0x25910c['start'],_0x25910c['end']):this['_setSuggestionRange'](_0x1c09e5,_0x4c527a[0x0]):_0x3e0208['removeMarker'](_0x1c09e5['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xe0d512){this['_editor']=_0xe0d512,this['_model']=_0xe0d512['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2ce28b,_0x2e6311,_0x30ee34,_0x5988f9,_0x45b945,_0x97a2a0,_0x22ce33){return new T(this['_model'],{'type':_0x2ce28b,'subType':_0x2e6311,'id':_0x30ee34,'originalSuggestionId':_0x22ce33,'author':_0x5988f9,'creator':_0x5988f9,'attributes':_0x45b945,'onAttributesChange':_0x97a2a0,'onAccept':(..._0x75970d)=>this['getSuggestionCallback'](_0x2ce28b,_0x2e6311,'accept')(..._0x75970d),'onDiscard':(..._0x5148a9)=>this['getSuggestionCallback'](_0x2ce28b,_0x2e6311,'discard')(..._0x5148a9)});}['registerCustomCallback'](_0xaea706,_0x5a0798,_0x5eaf93,_0x5a3544){const _0x498965=_0xaea706+':'+_0x5a0798+':'+_0x5eaf93;this['_customCallbacks']['set'](_0x498965,_0x5a3544);}['getSuggestionCallback'](_0x5506fd,_0x2b1eff,_0xba059e){const _0x39650=_0x5506fd+':'+_0x2b1eff+':'+_0xba059e;return this['_customCallbacks']['get'](_0x39650)||this['_defaultCallbacks']['get'](_0x5506fd+':'+_0xba059e);}['_registerDefaultCallbacks'](){const _0x3676c8=()=>!0x1,_0x27c028=_0x3eed23=>{_0x3eed23['sort']((_0x29eec7,_0x4d82e2)=>_0x29eec7['start']['isBefore'](_0x4d82e2['start'])?0x1:-0x1),this['_model']['change'](_0x8b7850=>{for(const _0xe2f8f4 of _0x3eed23){let _0x5a6147;_0x5a6147=_0xe2f8f4['end']['isAtEnd']&&_0xe2f8f4['end']['parent']==_0xe2f8f4['start']['nodeAfter']?_0x8b7850['createSelection'](_0xe2f8f4['start']['nodeAfter'],'on'):_0x8b7850['createSelection'](_0xe2f8f4),this['_model']['deleteContent'](_0x5a6147,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x488de3=(_0x882365,_0x88d4b2)=>{_0x88d4b2&&this['_model']['change'](_0x16d1f8=>{const {commandName:_0x3833df,commandParams:_0x2dfa92=[]}=_0x88d4b2,_0x178096=_0x882365['map'](_0x1bfe08=>(Pt(_0x1bfe08)&&(_0x1bfe08=this['_model']['createRange'](_0x1bfe08['end'])),_0x1bfe08))['filter'](_0x2513b7=>'$graveyard'!==_0x2513b7['root']['rootName']);if(_0x178096['length']<0x1)return;const _0x1e9394=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x18e6a1=>_0x414e2a['fromRange'](_0x18e6a1));_0x16d1f8['setSelection'](_0x178096);for(const _0x3fad86 of this['_editor']['commands']['commands']())_0x3fad86['refresh']();_0x2dfa92['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3833df,..._0x2dfa92);const _0x40753f=_0x1e9394['filter'](_0x2c1a10=>'$graveyard'!=_0x2c1a10['root']['rootName']);_0x40753f['length']>0x0&&_0x16d1f8['setSelection'](_0x40753f);for(const _0x411980 of _0x1e9394)_0x411980['detach']();});},_0x1efbf8=(_0x2f00db,_0x2f4636)=>0x1==_0x2f00db['length']&&0x1==_0x2f4636['length']&&_0x2f00db[0x0]['end']['isEqual'](_0x2f4636[0x0]['start']),_0x290eb3=(_0x487f36,_0x511fc5,_0x1670c6,_0x32e790)=>zt(_0x487f36,_0x511fc5,_0x1670c6,_0x32e790)?[_0x487f36,_0x511fc5]:zt(_0x511fc5,_0x487f36,_0x32e790,_0x1670c6)?[_0x511fc5,_0x487f36]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3676c8),this['_defaultCallbacks']['set']('insertion:discard',_0x27c028),this['_defaultCallbacks']['set']('insertion:join',_0x1efbf8),this['_defaultCallbacks']['set']('insertion:chain',_0x290eb3),this['_defaultCallbacks']['set']('deletion:accept',_0x27c028),this['_defaultCallbacks']['set']('deletion:discard',_0x3676c8),this['_defaultCallbacks']['set']('deletion:join',_0x1efbf8),this['_defaultCallbacks']['set']('deletion:chain',_0x290eb3),this['_defaultCallbacks']['set']('formatInline:accept',_0x488de3),this['_defaultCallbacks']['set']('formatInline:discard',_0x3676c8),this['_defaultCallbacks']['set']('formatInline:join',_0x1efbf8),this['_defaultCallbacks']['set']('formatInline:chain',_0x3676c8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x488de3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3676c8),this['_defaultCallbacks']['set']('formatBlock:join',_0x1efbf8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3676c8),this['_defaultCallbacks']['set']('attribute:accept',_0x3676c8),this['_defaultCallbacks']['set']('attribute:discard',(_0x538ad0,_0x11e0af)=>{if(!_0x11e0af)return;const _0x174b73=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x57f0fa=>{if(_0x11e0af['key']==m)for(const _0x30146f of _0x538ad0){const _0x42d7b9=_0x30146f['start']['nodeAfter'],_0x59a43f=_0x11e0af['oldValue'];_0x57f0fa['rename'](_0x42d7b9,_0x59a43f);}else{if(_0x174b73['_isBlockAttribute'](_0x11e0af['key'])){for(const _0x4b7d50 of _0x538ad0)void 0x0!==_0x11e0af['oldValue']?_0x57f0fa['setAttribute'](_0x11e0af['key'],_0x11e0af['oldValue'],_0x4b7d50['start']['nodeAfter']):_0x57f0fa['removeAttribute'](_0x11e0af['key'],_0x4b7d50['start']['nodeAfter']);}else{for(const _0x5063e1 of _0x538ad0)_0x11e0af['oldValue']?_0x57f0fa['setAttribute'](_0x11e0af['key'],_0x11e0af['oldValue'],_0x5063e1):_0x57f0fa['removeAttribute'](_0x11e0af['key'],_0x5063e1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1efbf8);}}function Ft(_0x3d2a73,_0x4e7257,_0x4c1f71){for(const _0x4fe4a0 of _0x4e7257['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4fe4a0['root']==_0x4fe4a0)return!0x1;if(!_0x4c1f71['containsItem'](_0x4fe4a0))return!0x1;if(_0x3d2a73['isObject'](_0x4fe4a0)||_0x3d2a73['isLimit'](_0x4fe4a0))return!0x0;}return!0x1;}function Pt(_0x2ea9bf){return _0x2ea9bf['end']['parent']==_0x2ea9bf['start']['nodeAfter']&&_0x2ea9bf['end']['isAtStart'];}function Gt(_0x398b88,_0x2d8826,_0x3289a5,_0x3d92b0){const _0xc6cb76=_0x4eb826=>!_0x4eb826['item']['is']('$textProxy')&&!_0x3d92b0['isObject'](_0x4eb826['item']),_0x199cb3=_0x398b88['start']['getLastMatchingPosition'](_0xc6cb76),_0xdfc430=_0x398b88['end']['getLastMatchingPosition'](_0xc6cb76,{'direction':'backward'});return(!_0x398b88['start']['isEqual'](_0x199cb3)||!_0x398b88['end']['isEqual'](_0xdfc430))&&(_0x199cb3['isBefore'](_0xdfc430)?_0x3289a5['updateMarker'](_0x2d8826,{'range':_0x3289a5['createRange'](_0x199cb3,_0xdfc430)}):_0x3289a5['removeMarker'](_0x2d8826),!0x0);}function Lt(_0x45fa6e){return _0x4f0f78(_0x45fa6e);}function Jt(_0x496e43){const _0x4b227f=_0x496e43['start']['nodeAfter'];return _0x4b227f&&_0x4b227f['is']('element');}function Kt(_0x314e74){return!Pt(_0x314e74)&&!function(_0x490402){return _0x490402['start']['parent']==_0x490402['end']['nodeBefore']&&_0x490402['start']['isAtEnd'];}(_0x314e74);}function Ht(_0x233451,_0x546290){return null==_0x233451['end']['nodeBefore']&&_0x233451['end']['parent']==_0x233451['start']['nodeAfter']?qt(_0x233451['start']['nodeAfter'],_0x546290):_0x233451;}function qt(_0x124e66,_0x246989){const _0x58415a=_0x246989['schema']['isObject'](_0x124e66)||_0x246989['schema']['isSelectable'](_0x124e66);return _0x246989['createRange'](_0x246989['createPositionAt'](_0x124e66,'before'),_0x58415a?_0x246989['createPositionAfter'](_0x124e66):_0x246989['createPositionAt'](_0x124e66,'end'));}function zt(_0xacc039,_0x1850e1,_0x141ee4,_0x295da4){return!!Wt(_0xacc039,_0x1850e1)&&_0x141ee4['end']['isEqual'](_0x295da4['start']);}function Wt(_0x43ac4f,_0x38f362){if(!_0x43ac4f['_isDataLoaded']||!_0x38f362['_isDataLoaded'])return!0x1;const _0x5e69a0=new Set(Object['keys'](_0x43ac4f['attributes'])),_0x3ddfca=new Set(Object['keys'](_0x38f362['attributes']));if(_0x5e69a0['delete']('groupId'),_0x3ddfca['delete']('groupId'),0x0==_0x5e69a0['size']&&0x0==_0x3ddfca['size'])return!0x0;if(_0x5e69a0['size']!=_0x3ddfca['size'])return!0x1;const _0x5b9531={..._0x43ac4f['attributes']},_0x49fd3c={..._0x38f362['attributes']};return delete _0x5b9531['groupId'],delete _0x49fd3c['groupId'],JSON['stringify'](_0x5b9531)==JSON['stringify'](_0x49fd3c);}function Qt(_0x1b58c6,_0x5d360c){const _0x20ed6b=Xt(_0x1b58c6['attributes']),_0x1f96c1=Xt(_0x5d360c);if(!_0x1b58c6['_isDataLoaded'])return!0x1;for(const _0x30c549 of Object['keys'](_0x1f96c1))if(!_0x5b6043(_0x20ed6b[_0x30c549],_0x1f96c1[_0x30c549]))return!0x1;return!0x0;}function Xt(_0x4a780d){const _0x5a2dbe=Object['assign']({},_0x4a780d);return delete _0x5a2dbe['skipNestingCheck'],delete _0x5a2dbe['tablePasteChainId'],_0x5a2dbe;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x54f4cb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x237a8e,_0x320438,_0x18f46d,_0x4b91c1){super(),this['model']=_0x320438,this['view']=_0x18f46d,this['commentThreadController']=_0x4b91c1,this['_editor']=_0x237a8e,this['_acceptCommand']=_0x237a8e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x237a8e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1edcb8,_0x73f02e)=>_0x1edcb8||_0x73f02e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12afb4=>_0x12afb4&&this['_editor']['model']['canEditAt'](_0x320438['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4fe338=>_0x4fe338&&this['_editor']['model']['canEditAt'](_0x320438['getRanges']())),this['_pendingAction']=null,_0x18f46d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x18f46d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x18f46d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x18f46d,'change:isDirty',()=>{_0x18f46d['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 _0x5e17a5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5e17a5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x376071{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2b5950,_0x5d820d,_0x195d63,_0x299332){super(_0x2b5950),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4675a1(_0x2b5950,o(_0x2b5950,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d820d['authoredAt']),this['bind']('authoredAt')['to'](_0x5d820d),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',_0x5d820d,'authoredAt',this,'descriptionParts',(_0x4f2884,_0x142ba3,_0x5368e5)=>{const _0x312177=_0x5368e5['map'](_0x28d4a1=>ls(_0x28d4a1['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4f2884-0x1,_0x5d820d['author']['name'],_0x142ba3?_0x299332['formatDateTime'](_0x142ba3):'',new DOMParser()['parseFromString'](_0x312177,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3611cc(),this['focusTracker']=new _0x233f8c(),this['keystrokes']=new _0x3f1993(),this['focusCycler']=new _0x180cf0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2bfbf6=>_0x2bfbf6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d820d,this['_localUser']=_0x195d63,this['_config']=_0x299332,_0x299332['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3b1451(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xde88a3}=this['_config'];this['commentsListView']=new _0xde88a3(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',_0x17cd16=>_0x17cd16+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x327e57,_0xfb2744)=>_0x327e57||!!_0xfb2744);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4d0f42}=this['_config'],_0x4ccefd=new _0x4d0f42(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c5419=_0x4ccefd['commentInputView'];return _0x4ccefd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c5419,'value',(_0x503230,_0xdac3b9,_0x40f851)=>!!_0x40f851||_0x503230&&!_0xdac3b9),_0x3c5419['on']('submit',(_0x3b50b0,_0x918116)=>{this['fire']('addComment',_0x918116),_0x3c5419['editor']['setData']('');}),_0x3c5419['on']('cancel',()=>this['focus']()),_0x3c5419['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4ccefd;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x10c3c9,_0x27aa0a,_0x5e874a,_0x43b82f){super(_0x10c3c9,_0x27aa0a,_0x5e874a,_0x43b82f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x44612a=>_0x44612a&&_0x44612a[0x0]?_0x44612a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xa902fb,_0x56b4e3)=>{let _0x58528b='';for(const _0x681402 of _0xa902fb)_0x58528b+='<p>'+ls(_0x681402['content'],_0x681402['color'])+'</p>';return _0x56b4e3?_0x58528b:_0x2261cb(_0x58528b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x43b82f['SuggestionView'](_0x10c3c9,_0x27aa0a,{'formatDateTime':_0x43b82f['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 _0x3360e4=this['bindTemplate'],_0x15835d=[this['suggestionView']];return this['commentsListView']&&_0x15835d['push'](this['commentsListView']),this['commentThreadInputView']&&_0x15835d['push'](this['commentThreadInputView']),_0x15835d['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3360e4['if']('isActive','ck-suggestion-wrapper--active'),_0x3360e4['to']('type',_0x592706=>'ck-suggestion-'+_0x592706),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':_0x3360e4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x15835d};}['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 _0x376071{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a6672,_0x481ba1,_0x28d25d){super(_0x2a6672),this['_model']=_0x481ba1,this['_config']=_0x28d25d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x481ba1),this['acceptButton']=this['_createButton'](o(_0x2a6672,'Accept\x20suggestion'),_0x134e14,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2a6672,'Discard\x20suggestion'),_0xd2a307,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x44416a(_0x2a6672,_0x481ba1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3611cc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x233f8c(),this['keystrokes']=new _0x3f1993(),this['focusCycler']=new _0x180cf0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x31c45b=>_0x31c45b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x32a28e=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x32a28e['innerHTML']=this['description'],this['on']('change:description',(_0xea5997,_0x4cda76,_0x1f615f)=>{_0x32a28e['innerHTML']=_0x1f615f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5de2a4=this['bindTemplate'],_0x38336a=[{'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':_0x5de2a4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5de2a4['to']('authoredAt',_0x3e7333=>this['_config']['formatDateTime'](_0x3e7333))}]}]},{'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']&&_0x38336a['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':_0x38336a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x169201,_0x15843a,_0x54fbed,_0x1d4f59,_0x1f267d){const _0x18fc89=new _0x427ae6(this['locale']);return _0x18fc89['set']({'label':_0x169201,'icon':_0x15843a,'tooltip':!0x0,'tooltipPosition':_0x1f267d}),_0x18fc89['extendTemplate']({'attributes':{'class':_0x54fbed}}),_0x18fc89['on']('execute',()=>{this['fire'](_0x1d4f59,this['_model']['id']);}),_0x18fc89;}['_setupKeyboardNavigation'](){const _0x1cae3a=this['element'];this['keystrokes']['listenTo'](_0x1cae3a);for(const _0x24d86f of this['focusables'])this['focusTracker']['add'](_0x24d86f['element']),this['keystrokes']['listenTo'](_0x24d86f['element']);this['keystrokes']['set']('enter',(_0x388fc5,_0x3270b4)=>{_0x1cae3a===_0x388fc5['target']&&(this['focusCycler']['focusFirst'](),_0x3270b4());}),this['keystrokes']['set']('esc',(_0x4ea4a1,_0x2c966a)=>{_0x1cae3a!==_0x4ea4a1['target']&&(this['focus'](),_0x2c966a());});}}class u extends _0xeec5ec{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x29227a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d4130){super(_0x2d4130),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x515605=this['editor']['config'];_0x515605['define']('trackChanges.SuggestionThreadView',fe),_0x515605['define']('trackChanges.SuggestionView',we),_0x515605['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x515605['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4b2ded,_0x98b012){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x397287,_0x2d0f91]of this['_handleControllerBuffer']){const _0x2f405a=this['_suggestionToController']['has'](_0x397287);_0x2f405a||_0x2d0f91?_0x2f405a&&_0x2d0f91&&this['_destroyController'](_0x397287):this['_initializeController'](_0x397287);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4b2ded,_0x98b012);}['init'](){const _0xef82cf=this['editor'],_0x3c9770=_0xef82cf['plugins']['get']('TrackChangesEditing'),_0x2cd86a=_0xef82cf['plugins']['get']('Annotations'),_0x31e63f=_0xef82cf['plugins']['get']('EditorAnnotations'),_0x54064f=_0xef82cf['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x31e63f['addSourceCollector'](()=>{const _0x5b7aba=[];for(const [_0x36234c,_0xbc018b]of Array['from'](this['_suggestionToController'])){const _0x525276=_0x36234c['getAllAdjacentSuggestions'](),_0x205e47=[];for(const _0xd23280 of _0x525276){if(!_0xd23280['isInContent'])continue;if(_0xd23280['isMultiRange']){_0x205e47['push'](..._0xd23280['getRanges']());continue;}const _0x1164aa=_0xd23280['getFirstRange']();if(_0x205e47['length']>0x0){const _0xe2d2d5=_0x205e47[0x0]['getJoined'](_0x1164aa);if(_0xe2d2d5){_0x205e47[0x0]=_0xe2d2d5;continue;}}_0x205e47['push'](_0x1164aa);}_0x5b7aba['push']([_0xbc018b['view'],_0x205e47]);}return _0x5b7aba;}),this['listenTo'](_0x3c9770,'suggestionLoaded',(_0x362c0a,_0x24963a)=>{this['listenTo'](_0x24963a,'change:previous',(_0x281663,_0x9b34e0,_0x51aa3d,_0x1cf86b)=>{_0x24963a['isInContent']&&(null==_0x51aa3d?(this['_updateController'](_0x1cf86b['head']),this['_handleSuggestionControllerDelayed'](_0x24963a,!0x1)):(this['_updateController'](_0x51aa3d['head']),null==_0x1cf86b&&this['_handleSuggestionControllerDelayed'](_0x24963a,!0x0)));}),null!==_0x24963a['previous']?this['_updateController'](_0x24963a['head']):this['_handleSuggestionControllerDelayed'](_0x24963a,!0x1);}),this['listenTo'](_0x3c9770,'suggestionUnloaded',(_0x22b81d,_0x224bf6,_0x2ceba4)=>{this['stopListening'](_0x224bf6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x224bf6),this['_suggestionToController']['has'](_0x224bf6)&&this['_destroyController'](_0x224bf6),_0x2ceba4&&this['_updateController'](_0x2ceba4['head']);}),this['listenTo'](_0x3c9770,'suggestionChanged',(_0x1c2bcc,_0x1b6b63)=>{this['_updateController'](_0x1b6b63);}),this['listenTo'](_0x2cd86a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x54064f,'addComment',(_0x5ebe5f,{threadId:_0x52b250,isFromAdapter:_0xb1cf40})=>{if(_0xb1cf40||!_0x3c9770['hasSuggestion'](_0x52b250))return;const _0x5f2bd7=_0x3c9770['getSuggestion'](_0x52b250);this['_suggestionToController']['get'](_0x5f2bd7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x371d49=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f45da;for(const _0x225e46 in _0x371d49){const _0x375bc7=_0x225e46,_0x3b4f41=_0x371d49[_0x375bc7];if('trackChangesLicenseKeyValid'==_0x3b4f41||'trackChangesLicenseKeyInvalid'==_0x3b4f41||'trackChangesLicenseKeyExpired'==_0x3b4f41||'trackChangesLicenseKeyDomainLimit'==_0x3b4f41||'trackChangesLicenseKeyNotAllowed'==_0x3b4f41||'trackChangesLicenseKeyEvaluationLimit'==_0x3b4f41||'trackChangesLicenseKeyTrialLimit'==_0x3b4f41||'trackChangesLicenseKeyUsageLimit'==_0x3b4f41){delete _0x371d49[_0x375bc7],_0x1f45da=_0x3b4f41,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1f45da&&_0x371d49['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1f45da&&_0x371d49['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1f45da&&_0x371d49['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1f45da&&_0x371d49['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1f45da&&_0x371d49['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1f45da&&_0x371d49['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1f45da&&_0x371d49['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5a7561){const _0x4bf721=this['_suggestionToController']['get'](_0x5a7561);if(!_0x4bf721)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4bf721['view'])||null;}['getSuggestionForAnnotation'](_0x3a3860){const _0x3a09de=this['_viewToController']['get'](_0x3a3860['innerView']);return _0x3a09de?_0x3a09de['model']:null;}['_refreshActiveMarkers'](){const _0x394f5d=this['editor']['plugins']['get']('Annotations'),_0x14be31=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b7c31=Array['from'](_0x394f5d['activeAnnotations'],_0x146f96=>_0x146f96['innerView'])['filter'](_0x2cb6bb=>this['_viewToController']['has'](_0x2cb6bb)),_0x5b9b70=[];for(const _0x596bf2 of _0x1b7c31){const _0x4ee9c7=this['_viewToController']['get'](_0x596bf2)['model']['getAllAdjacentSuggestions']();_0x5b9b70['push'](..._0x4ee9c7['reduce']((_0x243a70,_0xd200be)=>[..._0x243a70,..._0xd200be['getMarkerNames']()],[]));}_0x14be31['activeMarkers']=_0x5b9b70;}['_addUIComponentsToFactory'](){const _0x1f2ea4=this['editor'],_0x48e5d3=_0x1f2ea4['locale'],_0x540c61=o(_0x48e5d3,'Track\x20changes'),_0xa0bc72=new _0x1604a9([{'type':'switchbutton','model':new _0x4126df({'withText':!0x0,'isToggleable':!0x0,'label':_0x540c61,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4126df({'withText':!0x0,'label':o(_0x48e5d3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4126df({'withText':!0x0,'label':o(_0x48e5d3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4126df({'withText':!0x0,'label':o(_0x48e5d3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4126df({'withText':!0x0,'label':o(_0x48e5d3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1f2ea4['plugins']['has']('TrackChangesPreview')&&_0xa0bc72['addMany']([{'type':'separator'},{'type':'button','model':new _0x4126df({'withText':!0x0,'label':o(_0x48e5d3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x30eb95 of _0xa0bc72)if(ke(_0x30eb95)){const _0x2c751b=_0x1f2ea4['commands']['get'](_0x30eb95['model']['commandName']);_0x30eb95['model']['bind']('isOn','isEnabled')['to'](_0x2c751b,'value','isEnabled');}_0x1f2ea4['ui']['componentFactory']['add']('trackChanges',_0x1cae45=>this['_createToolbarButton'](_0x1cae45,_0xa0bc72,_0x540c61)),_0x1f2ea4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x406ae6=>this['_createMenuBarMenu'](_0x406ae6,_0xa0bc72,_0x540c61));}['_createToolbarButton'](_0x58216b,_0x3317f5,_0x2fc908){const _0x3a0274=_0x49e9d6(_0x58216b,_0x3b9b00),_0x4c9ee2=this['editor']['commands']['get']('trackChanges');_0x3a0274['buttonView']['set']({'tooltip':_0x2fc908,'label':_0x2fc908,'icon':_0x572057}),_0x3a0274['buttonView']['bind']('isOn')['to'](_0x4c9ee2,'value'),_0x3a0274['buttonView']['on']('execute',()=>{_0x4c9ee2['execute'](),this['editor']['editing']['view']['focus']();}),_0x359ad2(_0x3a0274,_0x3317f5,{'role':'menu'});const _0x3508b4=[];for(const _0x3762f9 of _0x3317f5)ke(_0x3762f9)&&_0x3508b4['push'](this['editor']['commands']['get'](_0x3762f9['model']['commandName']));const _0x1c6cb9=_0x3a0274['buttonView'];return _0x1c6cb9['actionView']['unbind']('isEnabled'),_0x1c6cb9['arrowView']['unbind']('isEnabled'),_0x1c6cb9['actionView']['bind']('isEnabled')['to'](_0x4c9ee2,'isEnabled'),_0x1c6cb9['arrowView']['bind']('isEnabled')['toMany'](_0x3508b4,'isEnabled',(..._0x37d131)=>_0x37d131['some'](_0x2a6e44=>_0x2a6e44)),_0x3a0274['on']('execute',_0x2ef777=>{this['editor']['execute'](_0x2ef777['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a0274;}['_createMenuBarMenu'](_0x1c7473,_0x35ef29,_0x51c7c4){const _0xc3deb=new _0x552abe(_0x1c7473),_0x53b8b3=this['editor']['commands']['get']('trackChanges');_0xc3deb['buttonView']['set']({'label':_0x51c7c4,'icon':_0x572057});const _0x3eb227=new _0x3d3185(_0x1c7473);for(const _0x5cb5aa of _0x35ef29){if('separator'==_0x5cb5aa['type']){_0x3eb227['items']['add'](new _0x263776(_0x1c7473));continue;}const _0x401d98=new _0x4128de(_0x1c7473,_0xc3deb),_0x5dae80=new _0x3259b6(_0x1c7473),_0x3774a4=_0x5cb5aa['model'];_0x5dae80['bind'](...Object['keys'](_0x3774a4))['to'](_0x3774a4),_0x5dae80['delegate']('execute')['to'](_0xc3deb),_0x5dae80['on']('execute',()=>{this['editor']['execute'](_0x3774a4['commandName']),this['editor']['editing']['view']['focus']();}),_0x401d98['children']['add'](_0x5dae80),_0x3eb227['items']['add'](_0x401d98);}return _0xc3deb['bind']('isEnabled')['to'](_0x53b8b3,'isEnabled'),_0xc3deb['panelView']['children']['add'](_0x3eb227),_0xc3deb;}['_initializeController'](_0x3971bb){const _0x31b066=this['editor'],_0xb934d6=_0x31b066['config'],_0x3a223a=_0x31b066['plugins']['get']('Annotations'),_0x537b93=_0x31b066['plugins']['get']('CommentsRepository'),_0x4a2437=_0x31b066['plugins']['get']('EditorAnnotations'),_0x4e3bd7=_0x31b066['plugins']['get'](_0x29227a)['me'],_0x1d1612=_0xb934d6['get']('trackChanges')['SuggestionThreadView'],_0x45c21d=_0xb934d6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x25949a,CommentThreadInputView:_0x2a8369}=_0x31b066['plugins']['get']('CommentsUI');let _0x475806,_0x408b6e,_0x1237b6;this['_annotationViews']['has'](_0x3971bb['id'])?(_0x408b6e=this['_annotationViews']['get'](_0x3971bb['id']),_0x475806=_0x408b6e['mainView']):(_0x475806=new _0x1d1612(_0x31b066['locale'],_0x3971bb,_0x4e3bd7,{'disableComments':this['_disableComments'],'editorConfig':{..._0xb934d6['get']('comments.editorConfig'),'licenseKey':_0xb934d6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xb934d6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xb934d6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xb934d6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3673c3(_0xb934d6['get']('locale'),_0x31b066['locale']),'CommentView':_0xb934d6['get']('comments')['CommentView'],'CommentsListView':_0x25949a,'CommentThreadInputView':_0x2a8369,'SuggestionView':_0x45c21d}),_0x475806['suggestionView']['acceptButton']['on']('execute',()=>{_0x31b066['editing']['view']['focus']();}),_0x475806['suggestionView']['discardButton']['on']('execute',()=>{_0x31b066['editing']['view']['focus']();}),_0x408b6e=_0x3a223a['createAnnotationView'](this['editor']['locale'],_0x475806),_0x408b6e['bind']('isDirty')['to'](_0x475806,'isDirty'),_0x408b6e['bind']('length')['to'](_0x475806),_0x408b6e['bind']('type')['to'](_0x475806,'type',_0x42dbd4=>'suggestion-'+_0x42dbd4),_0x475806['on']('escape',()=>{_0x1237b6['fire']('escape');}),this['_annotationViews']['set'](_0x3971bb['id'],_0x408b6e));const _0xbf0389=_0x537b93['createCommentThreadController'](_0x3971bb['commentThread'],_0x475806),_0xc39dc6=new pe(_0x31b066,_0x3971bb,_0x475806,_0xbf0389),_0x5c918f=_0x3971bb['getAllAdjacentSuggestions']()['filter'](_0x2c7a82=>_0x2c7a82['isInContent']);_0x475806['descriptionParts']=_0x31b066['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5c918f),this['_suggestionToController']['set'](_0x3971bb,_0xc39dc6),this['_viewToController']['set'](_0x475806,_0xc39dc6),_0x1237b6=_0x3a223a['createAnnotation']({'view':_0x408b6e,'target':()=>{const _0x4ff328=[],_0x28ba79=_0x3971bb['getAllAdjacentSuggestions']()['filter'](_0x64d51=>_0x64d51['isInContent']);for(const _0x3be1c7 of _0x28ba79)_0x4ff328['push'](..._0x3be1c7['getMarkers']());return _0x2e6994(_0x31b066['editing'],_0x4ff328);},'type':()=>'suggestion-'+_0xc39dc6['view']['type']}),_0x537b93['_bindAnnotationToEditors'](_0x475806,_0x1237b6),_0x3a223a['add'](_0x1237b6),_0x4a2437['registerAnnotation'](_0x1237b6);}['_destroyController'](_0x4bed13){const _0xbb34de=this['editor']['plugins']['get']('CommentsRepository'),_0x530c51=this['editor']['plugins']['get']('Annotations'),_0x6abe5=this['_suggestionToController']['get'](_0x4bed13),_0x215641=_0x6abe5['view'],_0x2eb9dd=_0x530c51['getByInnerView'](_0x215641);_0xbb34de['_unbindEditors'](_0x215641),_0x2eb9dd&&_0x530c51['remove'](_0x2eb9dd),this['_suggestionToController']['delete'](_0x4bed13),this['_viewToController']['delete'](_0x215641),_0x6abe5['destroy']();}['_updateController'](_0x2c536c){if(!_0x2c536c['isInContent']||!this['_suggestionToController']['has'](_0x2c536c))return;const _0x187676=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ad171=this['_suggestionToController']['get'](_0x2c536c),_0x9dcb8d=_0x2c536c['getAllAdjacentSuggestions']();_0x5ad171['view']['descriptionParts']=_0x187676['descriptionFactory']['getDescriptions'](_0x9dcb8d);}['destroy'](){for(const _0x27ddf8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x27ddf8);for(const _0x4814af of this['_annotationViews']['values']())_0x4814af['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xf80266){return'model'in _0xf80266;}class Fe extends _0xeec5ec{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3e5e4a){this['editor']['plugins']['get'](d)['adapter']=_0x3e5e4a;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x512f02){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x512f02);}['getSuggestions']({skipNotAttached:_0x5b3677=!0x1,toJSON:_0xa1e5e6=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5b3677,'toJSON':_0xa1e5e6});}['getSuggestion'](_0x1831e7){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1831e7);}}const p=['Pagination'];class re extends _0xeec5ec{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x321de8=this['editor'];if(_0x321de8['config']['define']('trackChangesData.editorCreator',_0x4f0622=>{const _0x52f741=_0x321de8['model']['document']['getRootNames']()['reduce']((_0x11058b,_0x12b96c)=>(_0x11058b[_0x12b96c]='',_0x11058b),{});return _0x321de8['constructor']['create'](_0x52f741,_0x4f0622);}),'function'!=typeof _0x321de8['config']['get']('trackChangesData')['editorCreator'])throw new _0x483cd5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x32e3e0){return P(this['editor'],!0x0,_0x32e3e0);}['getDataWithDiscardedSuggestions'](_0x11e5f3){return P(this['editor'],!0x1,_0x11e5f3);}}class Ge extends _0xeec5ec{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x362cf1){function _0x413d02(_0x2de6e8){return _0x2de6e8['map'](_0x3d0aa3=>String['fromCharCode'](_0x3d0aa3))['join']('');}super(_0x362cf1),this['result']='end',_0x362cf1[_0x413d02([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x413d02([0x76,0x69,0x65,0x77])][_0x413d02([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x413d02([0x61,0x75,0x74,0x6f]),_0x362cf1[_0x413d02([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x413d02([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x413d02([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x413d02([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x413d02([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 $e(_0x2239e0){return void 0x0!==_0x2239e0['getRootsAttributes'];}async function P(_0x8dc644,_0x38ffd4,_0x47b91d){const _0x3228ad=_0x3a854f(_0x8dc644,p);_0x3228ad['plugins']['push'](d,Ge),_0x3228ad['rootsAttributes']=$e(_0x8dc644)?_0x8dc644['getRootsAttributes']():void 0x0;const _0x3eccda=document['createDocumentFragment'](),_0x1b2711=_0x8dc644['config']['get']('trackChangesData')['editorCreator'],_0x13e12b=await _0x1b2711(_0x3228ad,()=>function(_0x4b6653){const _0x34605c=document['createElement']('div');return _0x4b6653['appendChild'](_0x34605c),_0x34605c;}(_0x3eccda));!function(_0x59c5aa,_0x40533){const _0x452ed4=_0x59c5aa['model']['document']['getRootNames']()['reduce']((_0x3f7f51,_0x813c5b)=>(_0x3f7f51[_0x813c5b]=_0x59c5aa['data']['get']({'rootName':_0x813c5b}),_0x3f7f51),{}),_0x1d4636=_0x59c5aa['plugins']['get']('Users')['users']['map'](_0x19d814=>({'id':_0x19d814['id'],'name':_0x19d814['name']})),_0xc9f598=_0x59c5aa['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x51dd2f=_0x59c5aa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1db43d=_0x40533['plugins']['get']('Users'),_0x482042=_0x40533['plugins']['get']('TrackChangesEditing'),_0x193934=_0x40533['plugins']['get']('CommentsRepository');for(const _0x2f9c8f of _0x193934['getCommentThreads']())_0x2f9c8f['remove']();for(const _0x4dd044 of _0x1d4636)_0x1db43d['getUser'](_0x4dd044['id'])||_0x1db43d['addUser'](_0x4dd044);_0x1db43d['me']||_0x1db43d['useAnonymousUser']();for(const _0x2d1d03 of _0x51dd2f)_0x193934['addCommentThread'](_0x2d1d03);for(const _0x21998f of _0xc9f598)_0x482042['addSuggestionData'](_0x21998f);_0x40533['data']['set'](_0x452ed4);}(_0x8dc644,_0x13e12b),_0x13e12b['execute'](_0x38ffd4?'acceptAllSuggestions':'discardAllSuggestions');const _0x58fd44=$e(_0x13e12b)?_0x13e12b['getFullData'](_0x47b91d):_0x13e12b['data']['get'](_0x47b91d);return await _0x13e12b['destroy'](),_0x58fd44;}class Me extends _0x376071{['options'];constructor(_0x3e339c,_0x2fa204){super(_0x3e339c),this['options']=_0x2fa204,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'](_0x3a47b5,_0x5d8c47){if(!this['element'])return;const _0x5c230a=[];for(const [_0x2a26f1,_0xcadc91]of _0x3a47b5){const _0x324642=document['createElement']('div');_0x324642['setAttribute']('data-ck-root-name',_0x2a26f1),_0x324642['className']=_0xcadc91['classes']+'\x20ck-track-changes-preview__root-container',_0x324642['innerHTML']=_0xcadc91['content'],_0x5c230a['push'](_0x324642);}_0x5d8c47(this['element'],_0x5c230a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x162850{constructor(_0x2d7d69){super(_0x2d7d69),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x106d07=this['editor'],_0x1019d7=_0x106d07['locale'],_0x1b4fa0=_0x106d07['plugins']['get']('Dialog');let _0x5bc1f0;const _0x31864a=function(_0x40f9fc){const _0x3c8ca8={};if('editables'in _0x40f9fc['ui']['view']){for(const [_0x5b1c92,_0x1733d8]of Object['entries'](_0x40f9fc['ui']['view']['editables']))_0x3c8ca8[_0x5b1c92]=_0x1733d8['element'];}else _0x3c8ca8[_0x40f9fc['model']['document']['getRootNames']()[0x0]]=_0x40f9fc['ui']['view']['editable']['element'];return _0x3c8ca8;}(_0x106d07),_0x490fb9=function(_0x405d2a){let _0xdb7c37=0x0;for(const _0x12d418 of Object['values'](_0x405d2a))_0xdb7c37=Math['max'](_0xdb7c37,_0x12d418['getBoundingClientRect']()['width']);let _0x5ac6fc=0x0;for(const _0x3768e9 of Object['values'](_0x405d2a))_0x5ac6fc+=_0x3768e9['getBoundingClientRect']()['height'];const _0x44ae6d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2a601f=Math['min'](_0x5ac6fc,_0x44ae6d);return{'width':_0xdb7c37,'height':_0x2a601f};}(_0x31864a);_0x1b4fa0['show']({'id':'finalContentPreview','title':o(_0x1019d7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1019d7,{'dialogRects':_0x490fb9}),'onHide':()=>{_0x5bc1f0['detachFromDom']();},'onShow':()=>{_0x106d07['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5e8796=>{const _0xd71630=this['_standarizeRootsData'](_0x5e8796,_0x106d07,_0x31864a);_0x1b4fa0['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xd71630,_0x106d07['config']['get']('trackChanges.preview.renderFunction'));}),_0x5bc1f0=new _0x504e06(_0x1019d7,[_0x1b4fa0['view']]),_0x5bc1f0['attachToDom'](),_0x5bc1f0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x106d07['once']('destroy',()=>{_0x5bc1f0['detachFromDom']();});const _0x16a9f2=_0x1b4fa0['view']['headerView']['class'];_0x1b4fa0['view']['headerView']['class']=_0x16a9f2?_0x16a9f2+'\x20ck-reset_all':'ck-reset_all',_0x1b4fa0['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1b4fa0['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x80f22a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x187b4a=_0x80f22a['previewMode'],_0x42acd2={};if('$labels'===_0x187b4a){for(const _0x5f28b1 of _0x80f22a['getMergeFieldsIds']())_0x42acd2[_0x5f28b1]=_0x80f22a['getLabel'](_0x5f28b1)||_0x5f28b1;}else{const _0x5bde81='$defaultValues'===_0x187b4a?_0x80f22a['getDefaultValues']():_0x80f22a['getDataSetValues'](_0x187b4a,!0x0);for(const _0x4379fd of Object['entries'](_0x5bde81)){const [_0x1f464f,_0x32aa68]=_0x4379fd;_0x42acd2[_0x1f464f]=null!==_0x32aa68?_0x32aa68:_0x80f22a['getLabel'](_0x1f464f)||_0x1f464f;}}return{'mergeFieldsData':_0x42acd2};}['_standarizeRootsData'](_0x42cad3,_0x3a597c,_0x55eb26){let _0x4edb2d;if('string'==typeof _0x42cad3){const _0x52435e=_0x3a597c['model']['document']['getRootNames']()[0x0];_0x4edb2d={[_0x52435e]:_0x42cad3};}else _0x4edb2d=_0x42cad3;const _0x2fe5a6=this['_fixMediaEmbeds'](_0x4edb2d,_0x3a597c),_0xf3b50b=function(_0x25ecda,_0x295405){for(const [_0x535d0c,_0x39cc9f]of _0x25ecda)_0x39cc9f['classes']=_0x295405[_0x535d0c]['classList']['value']['replace']('ck-focused','');return _0x25ecda;}(this['_sortRoots'](_0x3a597c)['reduce']((_0x3dbda9,_0x54164e)=>(_0x3dbda9['push']([_0x54164e,{'content':_0x2fe5a6[_0x54164e],'classes':''}]),_0x3dbda9),[]),_0x55eb26);return _0xf3b50b;}['_fixMediaEmbeds'](_0x57843e,_0x43bea8){if(!_0x43bea8['plugins']['has']('MediaEmbedEditing'))return _0x57843e;const _0x825fe3=_0x43bea8['plugins']['get']('MediaEmbedEditing');for(const [_0x14d48b,_0x47585e]of Object['entries'](_0x57843e)){const _0x2d3bfb=document['createElement']('div');_0x2d3bfb['innerHTML']=_0x47585e,(_0x2d3bfb['querySelectorAll']('figure.media')['forEach'](_0x1aa21b=>{const _0x54fe16=_0x1aa21b['querySelector']('oembed');if(_0x54fe16){const _0x1f782c=_0x54fe16['getAttribute']('url');if(_0x1f782c){const _0x4a18a0=_0x825fe3['registry']['getMediaViewElement'](new _0x5be9d6(_0x43bea8['editing']['view']['document']),_0x1f782c,{'elementName':'','renderForEditingView':!0x0}),_0x229d31=document['createElement']('div');_0x229d31['classList']['add']('ck-media__wrapper'),_0x4a18a0['render'](_0x229d31,_0x43bea8['editing']['view']['domConverter']),_0x54fe16['replaceWith'](_0x229d31);}}}),_0x57843e[_0x14d48b]=_0x2d3bfb['innerHTML']);}return _0x57843e;}['_sortRoots'](_0x5f37d3){if(!function(_0x3da811){return void 0x0!==_0x3da811['getRootsAttributes'];}(_0x5f37d3))return _0x5f37d3['model']['document']['getRootNames']();const _0x230163=[],_0x4497eb=new Map();for(const _0x152e2a of _0x5f37d3['model']['document']['getRootNames']()){const _0x3df694=_0x5f37d3['editing']['view']['getDomRoot'](_0x152e2a)['getClientRects']()['item'](0x0);_0x230163['push'](_0x152e2a),_0x4497eb['set'](_0x152e2a,_0x3df694);}return _0x230163['sort']((_0x2afe29,_0x2e5514)=>{const _0x24f45c=_0x4497eb['get'](_0x2afe29),_0x1877fd=_0x4497eb['get'](_0x2e5514);return _0x24f45c['y']-_0x1877fd['y']||_0x24f45c['x']-_0x1877fd['x'];}),_0x230163;}}class He extends _0xeec5ec{static get['requires'](){return[re,_0x1e3b93];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x583422){super(_0x583422),_0x583422['commands']['add']('previewFinalContent',new te(this['editor'])),_0x583422['config']['define']('trackChanges.preview.renderFunction',(_0x39be1d,_0x3177f3)=>{for(const _0x305775 of _0x3177f3)_0x39be1d['appendChild'](_0x305775);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};