@ckeditor/ckeditor5-track-changes 42.0.1-alpha.0 → 42.0.1-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,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x2e9f32,PendingActions as _0x1cbf46,icons as _0x49b702}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xa20965,ObservableMixin as _0xa1020c,uid as _0x31b5c7,insertToPriorityArray as _0x5d2a9e,priorities as _0x1c0189,logWarning as _0xa99789,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1f5702,View as _0x2a9dfe,ButtonView as _0x22ece9,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x9070af,hashObject as _0x2fabcd,surroundingMarkersDetector as _0x2d00c6,trimHtml as _0x3b4d3c,UserView as _0x504157,getDateTimeFormatter as _0x2ef10f,getAllMarkersDomElementsSorted as _0x2b2b5b,sanitizeEditorConfig as _0x43b559}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x323cd1,LiveRange as _0x5c6df6,LivePosition as _0x3057a2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x28da1c,toWidget as _0x226e8c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5a5d22,set as _0x2a8816,isEqual as _0x51dc3c,unset as _0x1c8f14,omit as Bt}from'lodash-es';import{Delete as _0x56a603,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xf97c84,ShiftEnter as _0x2683fe}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x48af10,_0x53344a){super(_0x48af10),this['_enabledCommands']=_0x53344a,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 _0x20027d of this['editor']['commands']['commands']())_0x20027d['affectsData']&&!this['_enabledCommands']['has'](_0x20027d)&&_0x20027d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2429ed of this['editor']['commands']['commands']())_0x2429ed['affectsData']&&!this['_enabledCommands']['has'](_0x2429ed)&&_0x2429ed['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x19f72a,_0x4dee40){super(_0x19f72a),this['_suggestions']=_0x4dee40,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa8b9d6){const _0x374c75=this['_suggestions']['get'](_0xa8b9d6);if(!_0x374c75)throw new _0xa20965('track-changes-accept-suggestion-not-found',this);const _0x1ac64f=_0x374c75['getRanges']();this['editor']['model']['canEditAt'](_0x1ac64f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x374c75);}}class B extends ts{['_suggestions'];constructor(_0x36ac0f,_0x4f7244){super(_0x36ac0f),this['_suggestions']=_0x4f7244,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x15a147){const _0x56ed6e=this['_suggestions']['get'](_0x15a147);if(!_0x56ed6e)throw new _0xa20965('track-changes-discard-suggestion-not-found',this);const _0x41f8f0=_0x56ed6e['getRanges']();this['editor']['model']['canEditAt'](_0x41f8f0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x56ed6e);}}function ss(_0x2b8734){return _0x2b8734['sort']((_0x2df8a9,_0x221718)=>'deletion'==_0x2df8a9['type']&&'deletion'!=_0x221718['type']?-0x1:'deletion'!=_0x2df8a9['type']&&'deletion'==_0x221718['type']?0x1:0x0);}function to(_0x14f3fb,_0x30a9a8){let _0x311b00,_0x107aa3=0x0;const _0x27e431=[],_0x26e391=_0x30a9a8['schema'];for(;_0x107aa3<_0x14f3fb['length'];){const _0x54bac4=_0x14f3fb[_0x107aa3],_0x3f1a08=_0x14f3fb[_0x107aa3+0x1];_0x311b00||(_0x311b00=_0x30a9a8['createPositionBefore'](_0x54bac4)),co(_0x30a9a8,_0x54bac4,_0x3f1a08)||(_0x27e431['push'](_0x30a9a8['createRange'](_0x311b00,_0x26e391['isObject'](_0x54bac4)?_0x30a9a8['createPositionAfter'](_0x54bac4):_0x30a9a8['createPositionAt'](_0x54bac4,'end'))),_0x311b00=null),_0x107aa3++;}return _0x27e431;}function co(_0x584fcc,_0x5cb5a4,_0x12ef99){if(!_0x12ef99)return!0x1;const _0x32b86f=_0x584fcc['createPositionAfter'](_0x5cb5a4),_0x1b3a38=_0x584fcc['createPositionBefore'](_0x12ef99);return _0x32b86f['isTouching'](_0x1b3a38);}function rs(_0x5aea9a,_0x50f85,_0x9848c2){for(;_0x9848c2['length'];){const _0x599767=_0x9848c2['splice'](0x0,0x64);_0x5aea9a['change'](()=>{for(const _0x5c2e9e of _0x599767)_0x5c2e9e['isInContent']&&_0x50f85['execute'](_0x5c2e9e['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x1689c4,_0x18408a,_0x30ca68){super(_0x1689c4),this['_command']=_0x18408a,this['_suggestions']=_0x30ca68,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x385ba1=Array['from'](this['_suggestions']['values']())['some'](_0x53f264=>_0x53f264['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x385ba1;}['execute'](){const _0x104827=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5a6329 of _0x104827){const _0x2c561d=_0x5a6329['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2c561d))return;}rs(this['editor']['model'],this['_command'],_0x104827);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x39563c,_0x49a3fa,_0x53e711){super(_0x39563c),this['_command']=_0x49a3fa,this['_suggestions']=_0x53e711,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3cbdd3=this['editor']['model']['document']['selection'],_0xb11d34=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5cfae1,_0x4386e1){const _0x385658=Array['from'](_0x5cfae1['getRanges']()),_0x42c322=new Set();for(const _0x165ba5 of _0x4386e1)if(_0x165ba5['isInContent']){for(const _0x5f3eb6 of _0x385658)for(const _0x103ca9 of _0x165ba5['getRanges']())(_0x5f3eb6['isIntersecting'](_0x103ca9)||_0x5cfae1['isCollapsed']&&!_0x165ba5['isMultiRange']&&_0x165ba5['next']&&_0x103ca9['end']['isTouching'](_0x5f3eb6['start']))&&_0x42c322['add'](_0x165ba5);}return _0x42c322;}(_0x3cbdd3,_0xb11d34),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3d8f0b=ss(Array['from'](this['_selectedSuggestions']));for(const _0x3b006c of _0x3d8f0b){const _0x15f444=_0x3b006c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x15f444))return;}rs(this['editor']['model'],this['_command'],_0x3d8f0b);}}class u extends/* #__PURE__ -- @preserve */
24
- _0xa1020c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x17f3fa,_0x164427){super(),this['id']=_0x164427['id'],this['type']=_0x164427['type'],this['subType']=_0x164427['subType']||null,this['author']=_0x164427['author'],this['creator']=_0x164427['creator']||_0x164427['author'],this['isExternal']=Boolean(_0x164427['attributes']&&_0x164427['attributes']['@external']),this['data']=null,this['_model']=_0x17f3fa,this['_onAccept']=_0x164427['onAccept'],this['_onDiscard']=_0x164427['onDiscard'],this['_onAttributesChange']=_0x164427['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x164427['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 _0x486ac1=this;for(;_0x486ac1['previous'];)_0x486ac1=_0x486ac1['previous'];return _0x486ac1;}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'](_0x11f288){this['_markerNames']['add'](_0x11f288);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x37a6c2=>this['_model']['markers']['get'](_0x37a6c2))['filter'](_0x39e74b=>_0x39e74b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4456e0=>{for(const _0x3990c6 of this['getMarkers']())_0x4456e0['removeMarker'](_0x3990c6);}),this['_markerNames']['clear']();}['removeMarker'](_0x4144eb){this['_model']['change'](_0x4eb9e4=>{_0x4eb9e4['removeMarker'](_0x4144eb);}),this['_markerNames']['delete'](_0x4144eb);}['addRange'](_0x1d2dc4){const _0x303376='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x303376),this['_model']['change'](_0x593bf0=>{_0x593bf0['addMarker'](_0x303376,{'range':_0x1d2dc4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1c6d71){for(const _0x214534 of this['getRanges']())if(_0x214534['isIntersecting'](_0x1c6d71))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2d7f6c=>_0x2d7f6c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x544aa8,_0x25705c)=>[..._0x544aa8,..._0x25705c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xe124e8=this['getRanges']();if(0x1!=_0xe124e8['length'])return null;const _0x112adb=_0xe124e8[0x0],_0x5d5540=_0x112adb['start']['nodeAfter'],_0xc7cdc3=_0x112adb['end']['nodeBefore'];return _0x5d5540 instanceof _0x323cd1?_0x5d5540!=_0xc7cdc3?null:_0x5d5540: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 _0x22389b=[];let _0x5aa963=this['head'];for(;_0x5aa963;)_0x22389b['push'](_0x5aa963),_0x5aa963=_0x5aa963['next'];return _0x22389b;}['setAttribute'](_0x1c221b,_0x381cef){const _0x29e95d=_0x5a5d22(this['attributes']);_0x2a8816(_0x29e95d,_0x1c221b,_0x381cef),_0x51dc3c(_0x29e95d,this['attributes'])||(this['attributes']=_0x29e95d,this['_onAttributesChange'](_0x29e95d));}['removeAttribute'](_0x1ebc41){const _0x243a53=_0x5a5d22(this['attributes']);_0x1c8f14(_0x243a53,_0x1ebc41),_0x51dc3c(_0x243a53,this['attributes'])||(this['attributes']=_0x243a53,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 _0x31b5c7()['substr'](0x1,0x5);}}function o(_0x1038da,_0x465389,_0x2dc37b){const t=_0x1038da['t'];switch(_0x465389){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'*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',_0x2dc37b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2dc37b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2dc37b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2dc37b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2dc37b);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',_0x2dc37b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2dc37b);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x2dc37b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2dc37b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2dc37b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2dc37b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2dc37b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2dc37b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2dc37b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2dc37b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2dc37b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2dc37b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2dc37b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2dc37b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2dc37b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2dc37b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2dc37b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2dc37b);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'},_0x2dc37b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2dc37b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2dc37b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2dc37b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2dc37b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2dc37b);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'},_0x2dc37b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2dc37b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2dc37b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2dc37b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2dc37b);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'},_0x2dc37b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2dc37b);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'},_0x2dc37b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2dc37b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2dc37b);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'},_0x2dc37b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2dc37b);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'},_0x2dc37b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2dc37b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2dc37b);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2dc37b);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2dc37b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x465389;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4af0c1,_0x5449f1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4af0c1,this['_locale']=_0x5449f1;}['getDescriptions'](_0x5e0a73){const _0x3a8815=[],_0x334eca=new Set(),_0x940823=new Set();for(let _0x25125f=0x0;_0x25125f<_0x5e0a73['length'];_0x25125f++){const _0x336504=_0x5e0a73[_0x25125f];if(!_0x336504['isInContent'])continue;const _0xcb65e9=this['_handleCustomCallbackDescription'](_0x336504);if(_0xcb65e9){if(null!=_0x336504['subType']){if(_0x334eca['has'](_0x336504['subType']))continue;_0x334eca['add'](_0x336504['subType']);}_0x3a8815['push'](_0xcb65e9);}else{if('attribute'!=_0x336504['type'])'insertion'!=_0x336504['type']&&'deletion'!=_0x336504['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3a8815,_0x336504,_0x5e0a73[_0x25125f+0x1]);else{const _0x4785ba=_0x336504['data']['key'];if(_0x940823['has'](_0x4785ba))continue;_0x940823['add'](_0x336504['data']['key']),_0x4785ba==m?this['_handleRenameSuggestionDescription'](_0x3a8815,_0x336504):this['_handleAttributeSuggestionDescription'](_0x3a8815,_0x336504);}}}return this['_resolveDescriptionItems'](_0x3a8815);}['registerDescriptionCallback'](_0xcd55f3){this['_customCallbacks']['push'](_0xcd55f3);}['registerElementLabel'](_0x3174e0,_0x423ea6,_0xe4e988=_0x1c0189['normal']){'function'==typeof _0x3174e0?_0x5d2a9e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3174e0,'label':_0x423ea6,'priority':_0xe4e988}):this['_itemLabels']['set'](_0x3174e0,_0x423ea6);}['registerAttributeLabel'](_0x5b2b9c,_0x5a16e3){this['_attributeLabels']['set'](_0x5b2b9c,_0x5a16e3);}['getItemLabel'](_0x7c1560,_0x2c04b0=0x1){let _0x5d7835;for(const _0x222fac of this['_itemLabelsCallbacks'])if(_0x222fac['matchingCallback'](_0x7c1560)){_0x5d7835=_0x222fac['label'];break;}return _0x5d7835||(_0x5d7835=this['_itemLabels']['get'](_0x7c1560['name'])),_0x5d7835?_0x5d7835(_0x2c04b0):0x1!==_0x2c04b0?_0x2c04b0+'\x20'+_0x7c1560['name']+'s':''+_0x7c1560['name'];}['_addDescriptionItems'](_0x1579bf,_0x249339){const _0x23b300=_0x249339['getFirstRange']()['getWalker'](),_0x46c7ab='insertion'==_0x249339['type']?'add':'remove';for(const _0x4e8216 of _0x23b300){const _0x3f81d3=_0x4e8216['item'],_0x2b3794=_0x1579bf[_0x1579bf['length']-0x1];if(_0x3f81d3['is']('$textProxy'))_0x2b3794&&_0x2b3794['type']['indexOf']('Container')>-0x1&&_0x1579bf['pop'](),_0x2b3794&&'text'==_0x2b3794['type']?_0x2b3794[_0x46c7ab]+=_0x3f81d3['data']:_0x1579bf['push']({'type':'text','add':'add'==_0x46c7ab?_0x3f81d3['data']:'','remove':'remove'==_0x46c7ab?_0x3f81d3['data']:''});else{if(this['_schema']['isObject'](_0x3f81d3)){const _0x164505=_0x3f81d3;if(_0x2b3794&&_0x2b3794['type']['indexOf']('Container')>-0x1&&_0x1579bf['pop'](),'elementEnd'==_0x4e8216['type'])continue;_0x2b3794&&_0x2b3794['type']==_0x46c7ab+'Object'&&_0x2b3794['element']['name']==_0x164505['name']?_0x2b3794['quantity']++:_0x1579bf['push']({'type':_0x46c7ab+'Object','element':_0x164505,'quantity':0x1}),_0x23b300['skip'](_0x1eb332=>!('elementEnd'==_0x1eb332['type']&&_0x1eb332['item']==_0x3f81d3));}else{if(this['_schema']['checkChild'](_0x3f81d3,'$text')||_0x3f81d3['is']('element','softBreak')){const _0x30ae0c=_0x3f81d3;if('add'==_0x46c7ab&&'elementStart'==_0x4e8216['type']||'remove'==_0x46c7ab&&'elementEnd'==_0x4e8216['type'])continue;if(_0x2b3794&&-0x1==_0x2b3794['type']['indexOf']('Container')){'text'==_0x2b3794['type']&&(_0x2b3794[_0x46c7ab]+='\x0a');continue;}let _0x43da29;if(_0x43da29='add'==_0x46c7ab?_0x30ae0c['nextSibling']&&!this['_schema']['isObject'](_0x30ae0c['nextSibling'])?_0x30ae0c['nextSibling']:null:_0x30ae0c['previousSibling']&&!this['_schema']['isObject'](_0x30ae0c['previousSibling'])?_0x30ae0c['previousSibling']:null,_0x30ae0c['isEmpty']||_0x43da29&&_0x43da29['isEmpty']){const _0x1b7553=_0x43da29&&_0x43da29['isEmpty']?_0x43da29:_0x30ae0c;_0x2b3794&&_0x2b3794['type']==_0x46c7ab+'EmptyContainer'&&_0x2b3794['element']['name']==_0x1b7553['name']?_0x2b3794['quantity']++:_0x1579bf['push']({'type':_0x46c7ab+'EmptyContainer','element':_0x1b7553,'quantity':0x1});}else _0x1579bf['push']({'type':_0x46c7ab+'Container','element':_0x30ae0c});}}}}}['_resolveDescriptionItems'](_0x5bc381){const _0x531ec3=this['_locale'],_0x47c8dd=[],_0x4ce4de=[],_0x2f38c1=[];for(const _0x28e707 of _0x5bc381)switch(_0x28e707['type']){case'text':if(_0x28e707['add']=_0x28e707['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x28e707['remove']=_0x28e707['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x28e707['add']&&''!=_0x28e707['remove']){_0x47c8dd['push']({'type':'replace','content':o(_0x531ec3,'REPLACE_TEXT',['\x22'+_0x28e707['remove']+'\x22','\x22'+_0x28e707['add']+'\x22'])});continue;}if(null!=_0x28e707['add']['match'](/^ +$/)){_0x47c8dd['push']({'type':'insertion','content':o(_0x531ec3,'*Insert:*\x20%0',o(_0x531ec3,'ELEMENT_SPACE',_0x28e707['add']['length']))});continue;}if(null!=_0x28e707['remove']['match'](/^ +$/)){_0x47c8dd['push']({'type':'deletion','content':o(_0x531ec3,'*Remove:*\x20%0',o(_0x531ec3,'ELEMENT_SPACE',_0x28e707['remove']['length']))});continue;}if(''!=_0x28e707['add']){_0x47c8dd['push']({'type':'insertion','content':o(_0x531ec3,'*Insert:*\x20%0','\x22'+_0x28e707['add']+'\x22')});continue;}_0x47c8dd['push']({'type':'deletion','content':o(_0x531ec3,'*Remove:*\x20%0','\x22'+_0x28e707['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x47c8dd['push']({'type':'insertion','content':o(_0x531ec3,'*Insert:*\x20%0',this['getItemLabel'](_0x28e707['element'],_0x28e707['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x47c8dd['push']({'type':'deletion','content':o(_0x531ec3,'*Remove:*\x20%0',this['getItemLabel'](_0x28e707['element'],_0x28e707['quantity']))});continue;case'addContainer':_0x47c8dd['push']({'type':'insertion','content':o(_0x531ec3,'*Split:*\x20%0',this['getItemLabel'](_0x28e707['element'],_0x28e707['quantity']))});continue;case'removeContainer':_0x47c8dd['push']({'type':'deletion','content':o(_0x531ec3,'*Merge:*\x20%0',this['getItemLabel'](_0x28e707['element'],_0x28e707['quantity']))});continue;case'addFormat':_0x4ce4de['push'](_0x28e707['key']);continue;case'removeFormat':_0x2f38c1['push'](_0x28e707['key']);continue;default:_0x47c8dd['push'](_0x28e707);}if(_0x4ce4de['length']){const _0x4b569d=_0x4ce4de['map'](_0x2ee0fd=>this['_attributeLabels']['has'](_0x2ee0fd)?this['_attributeLabels']['get'](_0x2ee0fd):_0x2ee0fd)['join'](',\x20');_0x47c8dd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4b569d)});}if(_0x2f38c1['length']){const _0x2b39af=_0x2f38c1['map'](_0x4b5ee9=>this['_attributeLabels']['has'](_0x4b5ee9)?this['_attributeLabels']['get'](_0x4b5ee9):_0x4b5ee9)['join'](',\x20');_0x47c8dd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2b39af)});}return _0x47c8dd;}['_handleCustomCallbackDescription'](_0x48e6dd){for(const _0x2d5f6c of this['_customCallbacks']){const _0x5a04d1=_0x2d5f6c(_0x48e6dd);if(_0x5a04d1&&'type'in _0x5a04d1)return _0x5a04d1;}}['_handleAttributeSuggestionDescription'](_0xa4a8c8,_0x3f6b03){const _0x270e9b=_0x3f6b03['data'],_0x1fadea=void 0x0===_0x270e9b['newValue']?'removeFormat':'addFormat';_0xa4a8c8['push']({'type':_0x1fadea,'key':_0x270e9b['key']});}['_handleRenameSuggestionDescription'](_0x3f4bcc,_0x23cd1b){_0x3f4bcc['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x23cd1b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x10613c,_0x3ad06f,_0x143007){if(this['_addDescriptionItems'](_0x10613c,_0x3ad06f),_0x143007&&_0x143007['getFirstRange']()&&!_0x3ad06f['getFirstRange']()['end']['isEqual'](_0x143007['getFirstRange']()['start'])){const _0xa893c8=_0x10613c[_0x10613c['length']-0x1],_0x100e92='insertion'==_0x3ad06f['type']?'add':'remove';_0xa893c8&&'text'==_0xa893c8['type']&&(_0xa893c8[_0x100e92]+='\x0a');}}}class E extends _0x2e9f32{['afterInit'](){const _0x230ce4=this['editor'],_0x2f18e1=_0x230ce4['plugins']['get']('TrackChangesEditing');_0x230ce4['commands']['get']('showAIAssistant')&&_0x2f18e1['enableCommand']('showAIAssistant');}}class V extends _0x2e9f32{['afterInit'](){const _0x3b5025=this['editor'],_0x491657=_0x3b5025['locale'];if(!_0x3b5025['plugins']['has']('AlignmentEditing'))return;const _0x1c6c48=_0x3b5025['plugins']['get']('TrackChangesEditing');_0x1c6c48['enableDefaultAttributesIntegration']('alignment'),_0x1c6c48['registerBlockAttribute']('alignment'),_0x1c6c48['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x491657,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5df32b=this['editor'],_0x469841=_0x5df32b['locale'];_0x5df32b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ea019=>{if('formatBlock'!=_0x2ea019['type'])return;const {data:_0x4cf239}=_0x2ea019;if(_0x4cf239&&'alignment'==_0x4cf239['commandName']){const _0x429bb2=_0x4cf239['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x469841,'*Format:*\x20%0',function(_0x53b6f7){switch(_0x53b6f7){case'left':return o(_0x469841,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x469841,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x469841,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x469841,'FORMAT_JUSTIFY_TEXT');}}(_0x429bb2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x2e9f32{['afterInit'](){const _0x1a20fd=this['editor'],_0x3f6206=_0x1a20fd['plugins']['get']('TrackChangesEditing'),_0x46af39=_0x1a20fd['locale'];for(const _0x8b008b of ti){if(!_0x1a20fd['plugins']['has'](_0x8b008b))continue;const _0x52056d=_0x8b008b['slice'](0x0,-0x7)['toLowerCase'](),_0x75ad77='FORMAT_'+_0x52056d['toUpperCase']();_0x3f6206['enableDefaultAttributesIntegration'](_0x52056d),_0x3f6206['registerInlineAttribute'](_0x52056d),_0x3f6206['descriptionFactory']['registerAttributeLabel'](_0x52056d,o(_0x46af39,_0x75ad77));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59568c=this['editor'],_0x3a282e=_0x59568c['locale'],_0x39c687=_0x59568c['plugins']['get']('TrackChangesEditing');function _0xa3ac0d(_0x2aef35,_0x4f51bb){_0x39c687['descriptionFactory']['registerDescriptionCallback'](_0x53b87c=>{if('formatInline'!=_0x53b87c['type'])return;const {data:_0x2fc1ec}=_0x53b87c;return _0x2fc1ec&&_0x2fc1ec['commandName']===_0x2aef35?_0x2fc1ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a282e,'*Format:*\x20%0',_0x4f51bb)}:{'type':'format','content':o(_0x3a282e,'*Remove\x20format:*\x20%0',_0x4f51bb)}:void 0x0;});}_0xa3ac0d('bold',o(_0x3a282e,'FORMAT_BOLD')),_0xa3ac0d('italic',o(_0x3a282e,'FORMAT_ITALIC')),_0xa3ac0d('underline',o(_0x3a282e,'FORMAT_UNDERLINE')),_0xa3ac0d('code',o(_0x3a282e,'FORMAT_CODE')),_0xa3ac0d('strikethrough',o(_0x3a282e,'FORMAT_STRIKETHROUGH')),_0xa3ac0d('subscript',o(_0x3a282e,'FORMAT_SUBSCRIPT')),_0xa3ac0d('superscript',o(_0x3a282e,'FORMAT_SUPERSCRIPT'));}}class O extends _0x2e9f32{['afterInit'](){const _0x3eab1e=this['editor'],_0x340eb5=_0x3eab1e['locale'];if(!_0x3eab1e['plugins']['has']('BlockQuoteEditing'))return;const _0x370df5=_0x3eab1e['plugins']['get']('TrackChangesEditing'),_0xc35331=this['editor']['commands']['get']('blockQuote');_0x370df5['enableCommand']('blockQuote',(_0xc2dba2,_0x2ca66d={})=>{const _0x2b425c=this['editor']['model']['document']['selection'],_0xd86b3b=_0x2ca66d&&void 0x0!==_0x2ca66d['forceValue']?_0x2ca66d['forceValue']:!_0xc35331['value'];let _0x2732a6=[];if(_0xd86b3b){const _0x5aadd7=Array['from'](_0x2b425c['getSelectedBlocks']())['filter'](_0x345c96=>oo(_0x345c96)||function(_0x30cef6,_0x49d06d){const _0x1373a6=_0x49d06d['checkChild'](_0x30cef6['parent'],'blockQuote'),_0x3ec95b=_0x49d06d['checkChild'](['$root','blockQuote'],_0x30cef6);return _0x1373a6&&_0x3ec95b;}(_0x345c96,this['editor']['model']['schema']));_0x2732a6=to(_0x5aadd7,_0x3eab1e['model']);}else{const _0x991072=Array['from'](_0x2b425c['getSelectedBlocks']())['filter'](_0x349bf0=>oo(_0x349bf0));_0x2732a6=to(_0x991072,_0x3eab1e['model']);}_0x3eab1e['model']['change'](()=>{for(const _0x3c0cb5 of _0x2732a6)_0x370df5['markBlockFormat'](_0x3c0cb5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xd86b3b}]});});}),_0x370df5['descriptionFactory']['registerDescriptionCallback'](_0x4f76d2=>{const {data:_0xc26298}=_0x4f76d2;if(_0xc26298&&'blockQuote'==_0xc26298['commandName']){const _0x6ce838=o(_0x340eb5,'ELEMENT_BLOCK_QUOTE');return _0xc26298['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x340eb5,'*Set\x20format:*\x20%0',_0x6ce838)}:{'type':'format','content':o(_0x340eb5,'*Remove\x20format:*\x20%0',_0x6ce838)};}});}}function oo(_0x1d8d3a){return'blockQuote'==_0x1d8d3a['parent']['name'];}class G extends _0x2e9f32{['afterInit'](){const _0x575585=this['editor'];_0x575585['plugins']['has']('CaseChange')&&(_0x575585['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x575585['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x575585['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x2e9f32{['afterInit'](){const _0x254fad=this['editor'];_0x254fad['commands']['get']('ckbox')&&_0x254fad['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2e9f32{['afterInit'](){const _0x465de3=this['editor'];if(!_0x465de3['plugins']['has']('CodeBlock'))return;const _0x55a3a2=_0x465de3['plugins']['get']('TrackChangesEditing'),_0x92d97b=_0x465de3['locale'],_0x447f10=_0x465de3['config']['get']('codeBlock')['languages'],_0x54231a=_0x465de3['commands']['get']('codeBlock');_0x55a3a2['enableCommand']('indentCodeBlock'),_0x55a3a2['enableCommand']('outdentCodeBlock'),_0x55a3a2['enableCommand']('codeBlock',(_0x143a54,_0x4df2f1={})=>{const _0x3ac02e=_0x465de3['model'],_0x1cdd2c=_0x465de3['model']['document']['selection'],_0x55ae8e=_0x4df2f1&&void 0x0!==_0x4df2f1['forceValue']?_0x4df2f1['forceValue']:!_0x54231a['value'];let _0x30feea;_0x4df2f1['language']||(_0x4df2f1['language']=_0x447f10[0x0]['language']),_0x30feea=_0x55ae8e?Array['from'](_0x1cdd2c['getSelectedBlocks']())['filter'](_0x15e1f6=>eo(_0x15e1f6)||function(_0x29a3d3,_0x42b723){if(_0x29a3d3['is']('rootElement')||_0x42b723['isLimit'](_0x29a3d3))return!0x1;return _0x42b723['checkChild'](_0x29a3d3['parent'],'codeBlock');}(_0x15e1f6,_0x3ac02e['schema'])):Array['from'](_0x1cdd2c['getSelectedBlocks']())['filter'](_0x4e6cbd=>eo(_0x4e6cbd));const _0x5af100=to(_0x30feea,_0x3ac02e);_0x3ac02e['change'](()=>{for(const _0x2119c7 of _0x5af100)_0x55a3a2['markBlockFormat'](_0x2119c7,{'commandName':'codeBlock','commandParams':[{..._0x4df2f1,'forceValue':_0x55ae8e}],'formatGroupId':'blockName'});});}),(_0x55a3a2['descriptionFactory']['registerElementLabel']('codeBlock',_0x3ca0ae=>o(_0x92d97b,'ELEMENT_CODE_BLOCK',_0x3ca0ae)),_0x55a3a2['descriptionFactory']['registerDescriptionCallback'](_0x2ba220=>{if('formatBlock'!=_0x2ba220['type'])return;const _0x4dc9b4=_0x92d97b['t'],{data:_0x144574}=_0x2ba220;if(!_0x144574||'codeBlock'!=_0x144574['commandName'])return;const _0x1af389=_0x144574['commandParams'][0x0]['language'],_0xa32730=_0x4dc9b4(_0x447f10['find'](_0x373e65=>_0x373e65['language']===_0x1af389)['label'])['toLowerCase']();return _0x144574['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x92d97b,'*Set\x20format:*\x20%0',o(_0x92d97b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xa32730+')')}:{'type':'format','content':o(_0x92d97b,'*Remove\x20format:*\x20%0',o(_0x92d97b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5b0514){return'codeBlock'==_0x5b0514['name'];}class H extends _0x2e9f32{['afterInit'](){const _0x35aab5=this['editor'];if(!_0x35aab5['plugins']['has']('CommentsEditing'))return;_0x35aab5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xf66525,_0x5053d9,_0x5c3800){const _0x429dae=[];for(const _0x5cee8e of _0x5053d9['getItems']())_0x5cee8e['hasAttribute'](_0xf66525)&&_0x429dae['push'](_0x5c3800['createRangeOn'](_0x5cee8e));return _0x429dae;}function _e(_0x111348,_0x505461,{showActiveMarker:_0x19f3d0=!0x0}={}){const _0x4de6f6=_0x111348['plugins']['get']('TrackChangesEditing');return(_0x4eafab,_0x7242f8,_0x2d98e1)=>{if(!_0x2d98e1['consumable']['test'](_0x7242f8['markerRange'],_0x4eafab['name']))return;const _0x155685=_0x7242f8['markerRange']['getWalker'](),_0x46d095=_0x7242f8['markerRange']['start'],_0x3c5ea5=_0x111348['model']['schema'];let _0x272e30=null,_0x4c7e8f=null,_0x500ec9=!0x1,_0x4f070f=!0x1;for(const _0x196451 of _0x155685){const _0xa195b5=_0x196451['item'];_0x500ec9=_0x500ec9||_0x3c5ea5['isContent'](_0xa195b5);const _0x3dd0e3=_0x2d98e1['mapper']['toViewElement'](_0xa195b5);if(_0x3dd0e3&&_0x3dd0e3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x196451['type']&&(_0x3c5ea5['isBlock'](_0xa195b5)&&!_0x3c5ea5['isLimit'](_0xa195b5)&&(_0xa195b5['nextSibling']||_0x46d095['isAtEnd']?_0x272e30&&_0x272e30['parent']==_0xa195b5||(_0x272e30=_0xa195b5,_0x588317(_0x196451['previousPosition']),_0x4f070f=!0x0):_0x4c7e8f=_0x4c7e8f||_0x196451['previousPosition']));}function _0x588317(_0x2c8c96){const _0x5bed33=_0x2d98e1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x505461}),_0x17c74b=_0x2d98e1['mapper']['toViewPosition'](_0x2c8c96);_0x19f3d0&&_0x4de6f6['activeMarkers']['includes'](_0x7242f8['markerName'])&&_0x2d98e1['writer']['addClass']('ck-suggestion-marker--active',_0x5bed33),_0x2d98e1['writer']['insert'](_0x17c74b,_0x5bed33),_0x2d98e1['mapper']['bindElementToMarker'](_0x5bed33,_0x7242f8['markerName']);}_0x500ec9||_0x4f070f||!_0x4c7e8f||_0x588317(_0x4c7e8f);};}class q extends _0x2e9f32{static get['requires'](){return[_0x56a603];}['init'](){const _0x5eae94=this['editor'],_0x1be3ee=_0x5eae94['plugins']['get']('TrackChangesEditing');_0x1be3ee['enableCommand']('delete');const _0x3305e1=_0x5eae94['commands']['get']('deleteForward');_0x1be3ee['enableCommand']('deleteForward',(_0xc2848c,_0x205fc4={})=>{const _0xc4d906=_0x5eae94['model']['createSelection'](_0x5eae94['model']['document']['selection']);_0xc4d906['isCollapsed']&&_0x5eae94['model']['modifySelection'](_0xc4d906,{'direction':'forward','unit':_0x205fc4['unit']});const _0x23510b=_0xc4d906['getFirstRange'](),_0x3700ff=_0x5c6df6['fromRange'](_0x23510b);let _0x25bc82;_0xc2848c(_0x205fc4),_0x25bc82='$graveyard'==_0x3700ff['root']['rootName']?_0x5eae94['model']['createRange'](_0x23510b['start']):_0x5eae94['model']['createRange'](_0x3700ff['start'],_0x3700ff['end']),_0x3700ff['detach'](),_0x5eae94['model']['enqueueChange'](_0x3305e1['buffer']['batch'],_0x368d8d=>{_0x3305e1['buffer']['lock'](),_0x368d8d['setSelection'](_0x368d8d['createRange'](_0x25bc82['end'])),_0x3305e1['buffer']['unlock']();});}),_0x5eae94['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5eae94,'merge'),{'priority':'high'}),_0x5eae94['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4ae623,_0x2dcf61,_0x2c77cb)=>{_0x2c77cb['options']['showSuggestionHighlights']&&_e(_0x5eae94,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4ae623,_0x2dcf61,_0x2c77cb);},{'priority':'high'}),_0x5eae94['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x20ad2d,_0x3471d4,_0x2603db)=>{const _0x19859a=_0x2603db['mapper']['markerNameToElements'](_0x3471d4['markerName']);if(_0x19859a){for(const _0xf9023c of _0x19859a)_0xf9023c['is']('uiElement')&&(_0x2603db['mapper']['unbindElementFromMarkerName'](_0xf9023c,_0x3471d4['markerName']),_0x2603db['writer']['remove'](_0xf9023c));}},{'priority':'high'});}}class z extends _0x2e9f32{['afterInit'](){const _0x2cc0ae=this['editor'];if(!_0x2cc0ae['plugins']['has']('ListEditing'))return;const _0x42e165=_0x2cc0ae['locale'],_0x4ae597=_0x2cc0ae['plugins']['get']('TrackChangesEditing'),_0xf486b7=_0x2cc0ae['plugins']['has']('TodoListEditing'),_0xdd00d=!!_0x2cc0ae['config']['get']('list.multiBlock');function _0x567cbc(_0x4321b5){return{'type':'format','content':''+o(_0x42e165,'*Set\x20format:*\x20%0',_0x4321b5)};}function _0xdf3e65(_0x2f5cba){return{'type':'format','content':''+o(_0x42e165,'*Remove\x20format:*\x20%0',_0x2f5cba)};}_0x4ae597['enableDefaultAttributesIntegration']('numberedList'),_0x4ae597['enableDefaultAttributesIntegration']('bulletedList'),_0x4ae597['enableDefaultAttributesIntegration']('customNumberedList'),_0x4ae597['enableDefaultAttributesIntegration']('customBulletedList'),_0x4ae597['enableDefaultAttributesIntegration']('indentList'),_0x4ae597['enableDefaultAttributesIntegration']('outdentList'),_0x4ae597['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4ae597['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4ae597['registerBlockAttribute']('listItemId'),_0x4ae597['registerBlockAttribute']('listType'),_0x4ae597['registerBlockAttribute']('listIndent'),_0xdd00d&&(_0x4ae597['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4ae597['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xf486b7&&(_0x4ae597['enableDefaultAttributesIntegration']('todoList'),_0x4ae597['enableDefaultAttributesIntegration']('checkTodoList'),_0x4ae597['registerBlockAttribute']('todoListChecked'),_0x4ae597['descriptionFactory']['registerDescriptionCallback'](_0x482c38=>{const {data:_0xe326b}=_0x482c38;if(_0xe326b&&'todoListChecked'==_0xe326b['key'])return{'type':'format','content':_0xe326b['newValue']?o(_0x42e165,'*Check\x20item*'):o(_0x42e165,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x17bd21=>{if(_0x17bd21['batch']['isUndo'])return!0x1;let _0x3c5889=!0x1;const _0x36f3a2=_0x4ae597['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xef7e77=>'todoListChecked'===_0x4ae597['_getAttributeKey'](_0xef7e77));for(const _0x2de075 of _0x36f3a2){'todo'!=_0x2de075['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4ae597['_findSuggestions'](_0x2de075['getFirstRange'](),'attribute')['find'](_0x1f9e2f=>'listType'===_0x4ae597['_getAttributeKey'](_0x1f9e2f['suggestion']))||(_0x17bd21['removeMarker'](_0x2de075['getFirstMarker']()),_0x3c5889=!0x0));}return _0x3c5889;})),_0x4ae597['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x42e165,'FORMAT_INDENT'));const _0x80720={'type':'format','content':''};_0x4ae597['descriptionFactory']['registerDescriptionCallback'](_0x3e93cd=>{const {data:_0x568765}=_0x3e93cd;if(!_0x568765||'listType'!=_0x568765['key'])return;let _0x58c649=_0x3e93cd['head'];for(;_0x58c649;){if(_0x58c649['data']&&(('listStyle'==_0x58c649['data']['key']||'listMarkerStyle'==_0x58c649['data']['key'])&&(_0x58c649['data']['newValue']&&'default'!=_0x58c649['data']['newValue']||'default'!=_0x58c649['data']['oldValue']&&!_0x568765['newValue'])||!_0xdd00d&&_0x58c649['data']['key']==m))return _0x80720;_0x58c649=_0x58c649['next'];}if(null==_0x568765['newValue'])switch(_0x568765['oldValue']){case'bulleted':return _0xdf3e65(o(_0x42e165,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xdf3e65(o(_0x42e165,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xdf3e65(o(_0x42e165,'ELEMENT_TODO_LIST'));}switch(_0x568765['newValue']){case'bulleted':return _0x567cbc(o(_0x42e165,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x567cbc(o(_0x42e165,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x567cbc(o(_0x42e165,'ELEMENT_TODO_LIST'));}}),_0x4ae597['descriptionFactory']['registerDescriptionCallback'](_0x2d93f9=>{const {data:_0xff20af}=_0x2d93f9;if(_0xff20af&&'listIndent'==_0xff20af['key'])return null==_0xff20af['newValue']||null==_0xff20af['oldValue']&&0x0==_0xff20af['newValue']?_0x80720:void 0x0;}),_0x4ae597['descriptionFactory']['registerDescriptionCallback'](_0x23e132=>{if('attribute'!=_0x23e132['type'])return;const {data:_0x137282}=_0x23e132;if(!_0x137282||'listItemId'!=_0x137282['key'])return;const _0x395e04=le(_0x23e132);return'newValue'==_0x395e04?{'type':'format','content':o(_0x42e165,'*Merge:*\x20list\x20item')}:'oldValue'==_0x395e04?{'type':'format','content':o(_0x42e165,'*Split:*\x20list\x20item')}:_0x80720;}),_0x2cc0ae['model']['document']['registerPostFixer'](_0x2c1ca5=>this['listItemIdFixer'](_0x2c1ca5)),_0x2cc0ae['model']['document']['registerPostFixer'](_0x165857=>this['noTrackChangesFixer'](_0x165857)),_0x2cc0ae['model']['document']['registerPostFixer'](_0x449a46=>this['assureChains'](_0x449a46)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x564abf){if(_0x564abf['batch']['isUndo']||!_0x564abf['batch']['isLocal'])return!0x1;let _0x5ca82f=!0x1;const _0x198101=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x358686=>_0x358686['data']&&'listItemId'==_0x358686['data']['key'])['filter'](_0x183d7b=>_0x183d7b['data']['newValue']&&_0x183d7b['data']['oldValue']);for(const _0x32fd1c of _0x198101)le(_0x32fd1c)||(_0x564abf['removeMarker'](_0x32fd1c['getFirstMarker']()),_0x5ca82f=!0x0);return _0x5ca82f;}['noTrackChangesFixer'](_0x290b46){if(_0x290b46['batch']['isUndo']||!_0x290b46['batch']['isLocal'])return!0x1;const _0x2003a8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2003a8['trackChangesCommand']['value'])return!0x1;let _0x76dda4=!0x1;const _0x393d65=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x289911=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1a02c9=>'attribute'==_0x1a02c9['type'])['filter'](_0x56fffd=>_0x393d65['includes'](_0x56fffd['attributeKey']));if(0x0==_0x289911['length'])return _0x76dda4;for(const _0x5e0f1a of _0x289911){const _0x558e08=_0x2003a8['_findSuggestions'](_0x5e0f1a['range'],'attribute')['filter'](_0x2e6af2=>!_0x2e6af2['meta']['isNextTo'])['map'](_0x14f601=>_0x14f601['suggestion'])['filter'](_0x1f3dda=>{const _0x51ede6=_0x2003a8['_getAttributeKey'](_0x1f3dda);return _0x393d65['includes'](_0x51ede6);});if(_0x558e08['length']){for(const _0x187931 of _0x558e08)_0x290b46['removeMarker'](_0x187931['getFirstMarker']());_0x76dda4=!0x0;}}return _0x76dda4;}['assureChains'](_0x187df4){if(_0x187df4['batch']['isUndo']||!_0x187df4['batch']['isLocal'])return!0x1;const _0x3590da=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2538b8=!0x1;const _0x22c2a4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x592e2d of _0x3590da['getSuggestions']({'skipNotAttached':!0x0})){const _0x4ee82a=_0x3590da['_findSuggestions'](_0x592e2d['getFirstRange'](),'attribute')['map'](_0x48f7b0=>_0x48f7b0['suggestion'])['filter'](_0x278752=>_0x278752['data']&&_0x22c2a4['includes'](_0x278752['data']['key']));if(!_0x4ee82a['length'])continue;const _0x2bdafb=_0x4ee82a[0x0]['head']['attributes']['groupId'];if(!_0x4ee82a['every'](_0xdcb1cc=>_0xdcb1cc['attributes']['groupId']===_0x2bdafb)){for(const _0x29127a of _0x4ee82a)_0x36e26d(_0x29127a,_0x2bdafb)&&(_0x2538b8=!0x0);}}return _0x2538b8;function _0x338a9e(_0x3f3807,_0x180496){for(const _0x5271d7 of _0x3590da['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15017a=>'attribute'==_0x15017a['type']&&_0x15017a['attributes']['groupId']==_0x3f3807))_0x5271d7['setAttribute']('groupId',_0x180496);}function _0x36e26d(_0xb8630f,_0xa47cab){let _0x489446=_0xb8630f['head'],_0x3774f2=!0x1;for(;_0x489446;)_0x489446['attributes']['groupId']!=_0xa47cab&&(_0x338a9e(_0x489446['attributes']['groupId'],_0xa47cab),_0x489446['setAttribute']('groupId',_0xa47cab),_0x3774f2=!0x0),_0x489446=_0x489446['next'];return _0x3774f2;}}['_supportLegacySuggestions'](){const _0x2796a6=this['editor'],_0x53ac65=_0x2796a6['locale'],_0x91f7b=_0x2796a6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x91f7b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5abbfe,_0x11297e){const _0x1f6d12=[];for(let _0x3c9885 of _0x5abbfe)_0x3c9885['start']['nodeAfter']===_0x3c9885['end']['parent']&&(_0x3c9885=_0x2796a6['model']['createRange'](_0x2796a6['model']['createPositionAt'](_0x3c9885['start']['nodeAfter'],0x0))),_0x1f6d12['push'](_0x3c9885);_0x2796a6['model']['change'](_0x2d5cbc=>{const _0x1ff0d2=_0x2796a6['model']['document']['selection'],_0xe6916a=Array['from'](_0x1ff0d2['getRanges']())['map'](_0x5bbfdc=>_0x5c6df6['fromRange'](_0x5bbfdc));_0x2d5cbc['setSelection'](_0x1f6d12),_0x2796a6['commands']['get'](_0x11297e['commandName'])['refresh'](),_0x11297e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2796a6['execute'](_0x11297e['commandName'],..._0x11297e['commandParams']),_0x2d5cbc['setSelection'](_0xe6916a);for(const _0x4b05c6 of _0xe6916a)_0x4b05c6['detach']();});}),_0x91f7b['descriptionFactory']['registerElementLabel'](function(_0xdbe335){const _0x382ca3=!_0x2796a6['model']['schema']['isObject'](_0xdbe335),_0x4072ee=_0xdbe335['previousSibling'],_0x38267d=_0xdbe335['nextSibling'],_0x5c9362=_0xdbe335['getAttribute']('listItemId'),_0xd20319=!_0x4072ee||_0x4072ee['getAttribute']('listItemId')!==_0x5c9362,_0x3c215d=!_0x38267d||_0x38267d['getAttribute']('listItemId')!==_0x5c9362;return _0x382ca3&&Boolean(_0x5c9362)&&_0xd20319&&_0x3c215d;},_0x27ac17=>o(_0x53ac65,'ELEMENT_LIST_ITEM',_0x27ac17));}['_registerLegacyDescription'](){const _0x3e1e6b=this['editor'],_0x32263d=_0x3e1e6b['locale'];function _0x3abe16(_0x3909ee){const _0x1b65af=_0x3e1e6b['commands']['get']('bulletedList')['value'],_0x284d33=_0x3e1e6b['commands']['get']('numberedList')['value'];return'numberedList'===_0x3909ee?_0x1b65af:_0x284d33;}_0x3e1e6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5284fc){if('formatBlock'!=_0x5284fc['type'])return;const {data:_0x3330f0}=_0x5284fc;if(!_0x3330f0)return;let _0x2480b0,_0x3e8b5c,_0x56fb39,_0x386a16;switch(_0x3330f0['commandName']){case'bulletedList':_0x56fb39=_0x3330f0['commandParams'][0x0]['forceValue'],_0x386a16=_0x3abe16(_0x3330f0['commandName']),_0x2480b0=_0x56fb39?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x386a16&&_0x3e1e6b['config']['get']('list.multiBlock')||(_0x2480b0='*Change\x20to:*\x20%0'),_0x3e8b5c={'type':'format','content':o(_0x32263d,_0x2480b0,o(_0x32263d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x56fb39=_0x3330f0['commandParams'][0x0]['forceValue'],_0x386a16=_0x3abe16(_0x3330f0['commandName']),_0x2480b0=_0x56fb39?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x386a16&&_0x3e1e6b['config']['get']('list.multiBlock')||(_0x2480b0='*Change\x20to:*\x20%0'),_0x3e8b5c={'type':'format','content':o(_0x32263d,_0x2480b0,o(_0x32263d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2480b0='*Indent:*\x20%0',_0x3e8b5c={'type':'format','content':o(_0x32263d,_0x2480b0,o(_0x32263d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2480b0=function(_0x165291){const _0x905668=_0x165291['getFirstRange']();let _0x36cd41=_0x905668['start']['nodeAfter'];for(;_0x36cd41&&_0x905668['containsItem'](_0x36cd41);){if(_0x36cd41['getAttribute']('listIndent')>0x0)return!0x1;_0x36cd41=_0x36cd41['nextSibling'];}return!0x0;}(_0x5284fc)?o(_0x32263d,'*Format:*\x20remove\x20from\x20%0',o(_0x32263d,function(_0x395a79){return'ELEMENT_'+_0x395a79['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5284fc))):o(_0x32263d,'*Outdent:*\x20%0',o(_0x32263d,'ELEMENT_LIST_ITEM')),_0x3e8b5c={'type':'format','content':_0x2480b0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3330f0['multipleBlocks']&&(_0x2480b0='*Merge:*\x20%0',_0x3e8b5c={'type':'deletion','content':o(_0x32263d,_0x2480b0,o(_0x32263d,'ELEMENT_LIST_ITEM'))});}return _0x3e8b5c;});}}function le(_0x4ac641){let _0x254fdc=_0x4ac641['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x254fdc;){const _0x55b94e=_0x254fdc['getAttribute']('listItemId');if(!_0x55b94e)return!0x1;if(_0x55b94e==_0x4ac641['data']['newValue'])return'newValue';if(_0x55b94e==_0x4ac641['data']['oldValue'])return'oldValue';_0x254fdc=_0x254fdc['previousSibling'];}return!0x1;}class ue extends _0x2e9f32{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2c46c5=this['editor']['config']['get']('list.properties'),_0x1fae10=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c46c5['styles']&&(_0x1fae10['enableDefaultAttributesIntegration']('listStyle'),_0x1fae10['registerBlockAttribute']('listStyle')),_0x2c46c5['reversed']&&(_0x1fae10['enableDefaultAttributesIntegration']('listReversed'),_0x1fae10['registerBlockAttribute']('listReversed')),_0x2c46c5['startIndex']&&(_0x1fae10['enableDefaultAttributesIntegration']('listStart'),_0x1fae10['registerBlockAttribute']('listStart'));const _0x1913d0={'type':'format','content':''};_0x1fae10['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x162450=this['editor']['locale'];_0x1fae10['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x162450,'FORMAT_LIST_REVERSED')),_0x1fae10['descriptionFactory']['registerDescriptionCallback'](_0x2d3de4=>{const {data:_0xa1677}=_0x2d3de4;if(_0xa1677&&'listReversed'==_0xa1677['key'])return null==_0xa1677['newValue']||0x0==_0xa1677['newValue']&&null==_0xa1677['oldValue']?_0x1913d0:void 0x0;}),_0x1fae10['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x162450,'FORMAT_LIST_START')),_0x1fae10['descriptionFactory']['registerDescriptionCallback'](_0xa8d006=>{const {data:_0x49ac89}=_0xa8d006;if(_0x49ac89&&'listStart'==_0x49ac89['key'])return null==_0x49ac89['newValue']||0x1==_0x49ac89['newValue']&&null==_0x49ac89['oldValue']?_0x1913d0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2ec699=>{if(_0x2ec699['batch']['isUndo'])return!0x1;let _0x5001ce=!0x1;const _0x3913ce=_0x1fae10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d0e3b=>{const _0x518c54=_0x1fae10['_getAttributeKey'](_0x3d0e3b);return'listStart'==_0x518c54||'listReversed'==_0x518c54;});for(const _0x1c9dd5 of _0x3913ce){const _0x5a06d1=_0x1c9dd5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5a06d1||'customNumbered'==_0x5a06d1)continue;_0x1fae10['_findSuggestions'](_0x1c9dd5['getFirstRange'](),'attribute')['find'](_0x356463=>'listType'==_0x1fae10['_getAttributeKey'](_0x356463['suggestion']))||(_0x2ec699['removeMarker'](_0x1c9dd5['getFirstMarker']()),_0x5001ce=!0x0);}return _0x5001ce;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5bcc4){const _0x2c0a86=this['editor']['locale'],{data:_0x1a488d}=_0x5bcc4,_0x310c6d={'type':'format','content':''};if(!_0x1a488d||'listStyle'!=_0x1a488d['key'])return;if(!_0x1a488d['oldValue'])return'default'==_0x1a488d['newValue']?_0x310c6d:{'type':'format','content':''+o(_0x2c0a86,'*Set\x20format:*\x20%0',o(_0x2c0a86,this['_getTranslationKeyForListStyle'](_0x1a488d['newValue'])))};if(!_0x1a488d['newValue']){if('default'==_0x1a488d['oldValue'])return _0x310c6d;let _0x140b55=_0x5bcc4['head'];for(;_0x140b55;){if(_0x140b55['data']&&'listType'==_0x140b55['data']['key']&&_0x140b55['data']['newValue'])return _0x310c6d;_0x140b55=_0x140b55['next'];}return{'type':'format','content':''+o(_0x2c0a86,'*Remove\x20format:*\x20%0',o(_0x2c0a86,this['_getTranslationKeyForListStyle'](_0x1a488d['oldValue'])))};}if('default'!=_0x1a488d['newValue'])return{'type':'format','content':''+o(_0x2c0a86,'*Set\x20format:*\x20%0',o(_0x2c0a86,this['_getTranslationKeyForListStyle'](_0x1a488d['newValue'])))};let _0x28b3d2=_0x5bcc4['head'];for(;_0x28b3d2;){if(_0x28b3d2['data']&&'listType'==_0x28b3d2['data']['key']&&_0x28b3d2['data']['newValue']&&_0x28b3d2['data']['oldValue'])return _0x310c6d;_0x28b3d2=_0x28b3d2['next'];}return{'type':'format','content':o(_0x2c0a86,'*Set\x20format:*\x20%0',o(_0x2c0a86,'ELEMENT_'+_0x5bcc4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3f6990=this['editor'],_0x1fb446=_0x3f6990['locale'];_0x3f6990['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1faddb=>{if('formatBlock'!=_0x1faddb['type'])return;const {data:_0x130307}=_0x1faddb;if(!_0x130307)return;let _0x45aea7,_0x1c63e1;switch(_0x130307['commandName']){case'listStyle':_0x45aea7='*Change\x20to:*\x20%0',_0x1c63e1={'type':'format','content':o(_0x1fb446,_0x45aea7,o(_0x1fb446,this['_getTranslationKeyForListStyle'](_0x130307['commandParams'][0x0]['type'])))};break;case'listReversed':_0x45aea7=_0x130307['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c63e1={'type':'format','content':o(_0x1fb446,_0x45aea7)};break;case'listStart':_0x45aea7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c63e1={'type':'format','content':o(_0x1fb446,_0x45aea7,_0x130307['commandParams'][0x0]['startIndex'])};}return _0x1c63e1;});}['_getTranslationKeyForListStyle'](_0x20af93){return'ELEMENT_'+function(_0x13c2f8){if(pe['includes'](_0x13c2f8))return'bulleted';if(ye['includes'](_0x13c2f8))return'numbered';return null;}(_0x20af93)['toUpperCase']()+'_LIST_'+_0x20af93['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x2e9f32{static get['requires'](){return[_0xf97c84];}['init'](){const _0x1613a9=this['editor'],_0x434c38=_0x1613a9['plugins']['get']('TrackChangesEditing'),_0x162534=_0x1613a9['commands']['get']('enter');_0x434c38['enableCommand']('enter',()=>{_0x1613a9['model']['change'](_0xf2a997=>{const _0x21e74b=_0x1613a9['model']['document']['selection'],_0x39de40=_0x21e74b['getFirstPosition'](),_0x1a4611=_0x5c6df6['fromRange'](_0x21e74b['getFirstRange']());if(_0x162534['enterBlock'](_0xf2a997)){const _0xdb633f=_0x1613a9['model']['createPositionAt'](_0x39de40['parent']['nextSibling'],0x0),_0x5b3090=_0xf2a997['createRange'](_0x39de40,_0xdb633f);_0x434c38['markInsertion'](_0x5b3090);}else _0xf2a997['setSelection'](_0xf2a997['createRange'](_0x1a4611['end']));_0x1a4611['detach'](),_0x162534['fire']('afterExecute',{'writer':_0xf2a997});});}),_0x1613a9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1613a9,'split'),{'priority':'high'}),_0x1613a9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x16c81d,_0x2862c0,_0x3677ef)=>{const _0x168249=_0x3677ef['mapper']['markerNameToElements'](_0x2862c0['markerName']);if(_0x168249){for(const _0x3eda98 of _0x168249)_0x3eda98['hasClass']('ck-suggestion-marker-split')&&(_0x3677ef['mapper']['unbindElementFromMarkerName'](_0x3eda98,_0x2862c0['markerName']),_0x3677ef['writer']['remove'](_0x3eda98));}},{'priority':'high'}),_0x1613a9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2f563f,_0x4759c1,_0x3396ba)=>{_0x3396ba['options']['showSuggestionHighlights']&&_e(_0x1613a9,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2f563f,_0x4759c1,_0x3396ba);},{'priority':'high'});}}class J extends _0x2e9f32{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x17022b=this['editor']['plugins']['get']('TrackChangesEditing');_0x17022b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x17022b['enableCommand']('findNext'),_0x17022b['enableCommand']('findPrevious'),_0x17022b['enableCommand']('replace'),_0x17022b['enableCommand']('replaceAll');}['handleFindCommand'](_0x4a6ef3,_0xb42379,_0x9e4123={}){const _0xae10e3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4a6ef3(_0x4dedaa=>('string'==typeof _0xb42379?_0xae10e3['findByTextCallback'](_0xb42379,_0x9e4123):_0xb42379)(_0x4dedaa)['filter'](_0x2daad3=>!0x1===this['_isInDeletionRange'](_0x2daad3,_0x4dedaa['item'])),_0x9e4123);}['_isInDeletionRange'](_0x4eb64c,_0x57fb75){const _0x5ea65f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57fb75,_0x4eb64c['start']),this['editor']['model']['createPositionAt'](_0x57fb75,_0x4eb64c['end']));for(const _0x8c6e5c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5ea65f['getIntersection'](_0x8c6e5c['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x2e9f32{['afterInit'](){const _0x4c549b=this['editor']['locale'],_0x444142=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xec23b9,commandName:_0x5aab36}of ro)this['editor']['plugins']['has'](_0xec23b9)&&(_0x444142['enableDefaultAttributesIntegration'](_0x5aab36),_0x444142['registerInlineAttribute'](_0x5aab36));_0x4c549b['t'],_0x444142['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4c549b,'FORMAT_FONT_SIZE')),_0x444142['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4c549b,'FORMAT_FONT_FAMILY')),_0x444142['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4c549b,'FORMAT_FONT_COLOR')),_0x444142['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4c549b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a1902=this['editor'],_0x1a05c0=_0x5a1902['locale'];_0x5a1902['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17b3fa=>{const _0x423dcf=_0x1a05c0['t'];if('formatInline'!=_0x17b3fa['type'])return;const {data:_0x5e8a12}=_0x17b3fa;if(null!=_0x5e8a12){if('fontSize'==_0x5e8a12['commandName']){const _0x6f170d=_0x5e8a12['commandParams'][0x0]['value'];if(_0x6f170d){const _0x3825ac=_0x423dcf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5c4723=>_0x5c4723['model']==_0x6f170d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1a05c0,'*Set\x20font\x20size:*\x20%0',_0x3825ac)};}return{'type':'format','content':o(_0x1a05c0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5e8a12['commandName']){const _0x16de7e=_0x5e8a12['commandParams'][0x0]['value'];return _0x16de7e?{'type':'format','content':o(_0x1a05c0,'*Set\x20font\x20family:*\x20%0',_0x16de7e)}:{'type':'format','content':o(_0x1a05c0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5e8a12['commandName']){const _0x573686=_0x5e8a12['commandParams'][0x0]['value'];if(_0x573686){const _0x428758=_0x1f5702(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2ce1e4=>_0x2ce1e4['model']==_0x573686);let _0x4fb5d1=_0x573686,_0xf237e7='';return _0x428758&&(_0x4fb5d1=_0x428758['label'],_0xf237e7=_0x423dcf(_0x4fb5d1)['toLowerCase']()),{'type':'format','content':o(_0x1a05c0,'*Set\x20font\x20color:*\x20%0',_0xf237e7)['trim'](),'color':{'value':_0x573686,'title':_0xf237e7||_0x4fb5d1}};}return{'type':'format','content':o(_0x1a05c0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5e8a12['commandName']){const _0x20de81=_0x5e8a12['commandParams'][0x0]['value'];if(_0x20de81){const _0x164c1b=_0x1f5702(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x18fe9b=>_0x18fe9b['model']==_0x20de81);let _0xf3416a=_0x20de81,_0x39c965='';return _0x164c1b&&(_0xf3416a=_0x164c1b['label'],_0x39c965=_0x423dcf(_0xf3416a)['toLowerCase']()),{'type':'format','content':o(_0x1a05c0,'*Set\x20font\x20background\x20color:*\x20%0',_0x39c965)['trim'](),'color':{'value':_0x20de81,'title':_0x39c965||_0xf3416a}};}return{'type':'format','content':o(_0x1a05c0,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x2e9f32{['afterInit'](){const _0x150fd5=this['editor'],_0x43b7d5=_0x150fd5['plugins']['get']('TrackChangesEditing'),_0x9ec70c=_0x150fd5['commands']['get']('copyFormat'),_0x3bdb44=_0x150fd5['commands']['get']('pasteFormat');_0x9ec70c&&_0x3bdb44&&(_0x43b7d5['enableDefaultAttributesIntegration']('pasteFormat'),_0x43b7d5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x967317=this['editor'],_0x1cd6f0=_0x967317['locale'];_0x967317['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56949d=>{if('formatBlock'!=_0x56949d['type']&&'formatInline'!=_0x56949d['type'])return;const {data:_0x380ae5}=_0x56949d;if(_0x380ae5&&'pasteFormat'===_0x380ae5['commandName']){const _0x5ce36c=[],_0x5dd4e5=_0x380ae5['commandParams'][0x0];for(const [_0x71d812,_0x2cf6c8]of Object['entries'](_0x5dd4e5))_0x5ce36c['push'](so(_0x967317,_0x71d812,_0x2cf6c8));return _0x5ce36c['length']?{'type':'format','content':o(_0x1cd6f0,'*Set\x20format\x20to:*\x20%0',_0x5ce36c['join'](',\x20'))}:{'type':'format','content':o(_0x1cd6f0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1ab22a,_0x4963af,_0x44ee61){const _0x345045=_0x1ab22a['locale']['t'],_0x4b3363=_0x4963af['split'](/(?=[A-Z])/)['join']('\x20'),_0x45fab5=_0x345045(_0x4b3363['charAt'](0x0)['toUpperCase']()+_0x4b3363['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x44ee61)return _0x45fab5;if('fontColor'===_0x4963af||'fontBackgroundColor'===_0x4963af){const _0x3d61df=_0x1f5702(_0x1ab22a['config']['get']('fontColor.colors'))['find'](_0x45c548=>_0x45c548['model']==_0x44ee61);return _0x45fab5+'\x20('+(_0x3d61df?_0x345045(_0x3d61df['label'])['toLowerCase']():_0x44ee61)+')';}if('fontSize'===_0x4963af&&isNaN(parseFloat(_0x44ee61))){const _0x30d682=_0x1ab22a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1ab22a['config']['get']('fontSize.options'))['find'](_0x13320e=>_0x13320e['model']==_0x44ee61);return _0x45fab5+'\x20('+(_0x30d682?_0x345045(_0x30d682['title'])['toLowerCase']():_0x44ee61)+')';}return _0x45fab5+'\x20('+_0x44ee61+')';}class Y extends _0x2e9f32{['_headingOptions'];['afterInit'](){const _0x1e9fc2=this['editor'];if(!_0x1e9fc2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1e9fc2['config']['get']('heading.options');const _0x38f3bc=_0x1e9fc2['locale'],_0x1ce881=_0x1e9fc2['plugins']['get']('TrackChangesEditing');_0x1ce881['enableDefaultAttributesIntegration']('heading');for(const _0x5a6fc4 of this['_headingOptions'])'paragraph'!=_0x5a6fc4['model']&&_0x1ce881['descriptionFactory']['registerElementLabel'](_0x5a6fc4['model'],_0x52dd16=>{const _0x2df689=this['_getHeadingLevel'](_0x5a6fc4['model']);return null!==_0x2df689?_0x189b5a(_0x52dd16,_0x2df689):_0x47550c(_0x52dd16,_0x5a6fc4['title']);});function _0x189b5a(_0x1aa563,_0x165fe8){return o(_0x38f3bc,'ELEMENT_HEADING',[_0x1aa563,_0x165fe8]);}function _0x47550c(_0x2c8069,_0x4301c8){return o(_0x38f3bc,'ELEMENT_HEADING_CUSTOM',[_0x2c8069,_0x4301c8]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4af9de=this['editor'],_0x524605=_0x4af9de['locale'];function _0x5d2839(_0x7f48a4,_0x55356f){return o(_0x524605,'ELEMENT_HEADING_CUSTOM',[_0x7f48a4,_0x55356f]);}_0x4af9de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x165320=>{if('formatBlock'!=_0x165320['type'])return;const {data:_0x35df8c}=_0x165320;if(_0x35df8c&&'heading'==_0x35df8c['commandName']){const _0x4bf247=_0x35df8c['commandParams'][0x0]['value'],_0x4c6ff0=this['_getHeadingLevel'](_0x4bf247);if(null!==_0x4c6ff0)return{'type':'format','content':o(_0x524605,'*Change\x20to:*\x20%0',(_0x2bcb39=0x1,_0xa4f822=_0x4c6ff0,o(_0x524605,'ELEMENT_HEADING',[_0x2bcb39,_0xa4f822])))};const _0x4dfd86=this['_headingOptions']['find'](_0x59dc58=>_0x59dc58['model']===_0x4bf247)['title'];return{'type':'format','content':o(_0x524605,'*Change\x20to:*\x20%0',_0x5d2839(0x1,_0x4dfd86))};}var _0x2bcb39,_0xa4f822;});}['_getHeadingLevel'](_0x103dad){const _0x35c597=_0x103dad['match'](/^heading(\d+)/);if(_0x35c597)return _0x35c597[0x1];const _0x3548a2=this['_headingOptions']?.['find'](_0x258564=>_0x258564['model']==_0x103dad);if(_0x3548a2&&_0x3548a2['view']){const _0x153f35=_0x3548a2['view'],_0xa91ba0=(_0x153f35['name']??_0x153f35)['match'](/^h(\d+)/);if(_0xa91ba0)return _0xa91ba0[0x1];}return null;}}class Z extends _0x2e9f32{['afterInit'](){const _0x106d1c=this['editor'];if(!_0x106d1c['plugins']['has']('HighlightEditing'))return;const _0xc90993=_0x106d1c['plugins']['get']('TrackChangesEditing'),_0x4567f1=_0x106d1c['locale'];_0xc90993['enableDefaultAttributesIntegration']('highlight'),_0xc90993['registerInlineAttribute']('highlight'),_0xc90993['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4567f1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x443f48=this['editor'],_0x1efc5f=_0x443f48['locale'];_0x443f48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ad6a0=>{if('formatInline'!=_0x2ad6a0['type'])return;const {data:_0x14dc8e}=_0x2ad6a0;if(_0x14dc8e&&'highlight'==_0x14dc8e['commandName']){const _0xa57bf3=_0x1efc5f['t'],_0x3ec1d4=_0x14dc8e['commandParams'][0x0]['value'];if(_0x3ec1d4){const _0x19c63c=_0x443f48['config']['get']('highlight.options')['find'](_0x5269ff=>_0x5269ff['model']==_0x3ec1d4),_0x337b65=_0xa57bf3(_0x19c63c['title'])['toLowerCase']();return{'type':'format','content':o(_0x1efc5f,'*Set\x20highlight:*\x20%0',_0x337b65),'color':{'value':_0x19c63c['color'],'title':_0x19c63c['title']}};}return{'type':'format','content':o(_0x1efc5f,'*Remove\x20highlight*',o(_0x1efc5f,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x2e9f32{['afterInit'](){const _0x1531d1=this['editor'];if(!_0x1531d1['plugins']['has']('HorizontalLineEditing'))return;_0x1531d1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x28e012=_0x1531d1['plugins']['get']('TrackChangesEditing'),_0x579ea3=_0x1531d1['locale'];_0x28e012['descriptionFactory']['registerElementLabel']('horizontalLine',_0xb9c1c3=>o(_0x579ea3,'ELEMENT_HORIZONTAL_LINE',_0xb9c1c3)),_0x1531d1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x25ac7d,{writer:_0x490175,options:_0x38ec18})=>{if(!_0x38ec18['showSuggestionHighlights'])return null;const _0x6cb9e6=_0x490175['createContainerElement']('div'),_0x41b74e=_0x490175['createEmptyElement']('hr');return _0x490175['addClass']('ck-horizontal-line',_0x6cb9e6),_0x490175['insert'](_0x490175['createPositionAt'](_0x6cb9e6,0x0),_0x41b74e),_0x6cb9e6;},'converterPriority':'high'});}}class et extends _0x2e9f32{['afterInit'](){const _0x112f47=this['editor'];if(!_0x112f47['plugins']['has']('HtmlEmbed'))return;const _0x2db383=_0x112f47['plugins']['get']('TrackChangesEditing'),_0x2899fa=_0x112f47['locale'];_0x2db383['descriptionFactory']['registerElementLabel']('rawHtml',_0x2972e8=>o(_0x2899fa,'ELEMENT_HTML_EMBED',_0x2972e8)),_0x2db383['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2db383['registerBlockAttribute']('value'),_0x2db383['descriptionFactory']['registerDescriptionCallback'](_0x2db8f8=>{if('attribute'!=_0x2db8f8['type'])return;const {data:_0x12b864}=_0x2db8f8;if(_0x12b864&&'value'==_0x12b864['key']&&_0x2db8f8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x39dff5=o(_0x2899fa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2899fa,'*Change\x20%0\x20content*',_0x39dff5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd5c4=this['editor'],_0x19cf60=_0x4cd5c4['locale'];_0x4cd5c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae43f=>{if('formatBlock'!=_0x4ae43f['type'])return;const {data:_0x96db16}=_0x4ae43f;if(_0x96db16&&'htmlEmbed'==_0x96db16['commandName']){const _0x4013a8=o(_0x19cf60,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x19cf60,'*Change\x20%0\x20content*',_0x4013a8)};}});}}class it extends _0x2e9f32{['afterInit'](){const _0x1a9189=this['editor'];if(!_0x1a9189['plugins']['has']('ImageEditing'))return;const _0x4b6696=_0x1a9189['plugins']['get']('TrackChangesEditing'),_0x2015bb=_0x1a9189['plugins']['get']('ImageUtils'),_0x205697=_0x1a9189['locale'];_0x4b6696['enableCommand']('insertImage'),_0x4b6696['descriptionFactory']['registerElementLabel']('imageBlock',_0x5f5bdb=>o(_0x205697,'ELEMENT_IMAGE',_0x5f5bdb)),_0x4b6696['descriptionFactory']['registerElementLabel']('imageInline',_0x14e2c5=>o(_0x205697,'ELEMENT_INLINE_IMAGE',_0x14e2c5)),_0x4b6696['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x205697,'ELEMENT_CAPTION')),_0x1a9189['plugins']['has']('ImageUploadEditing')&&_0x4b6696['enableCommand']('uploadImage'),_0x1a9189['plugins']['has']('ImageBlockEditing')&&_0x1a9189['plugins']['has']('ImageInlineEditing')&&(_0x4b6696['enableCommand']('imageTypeInline',(_0xdb8b2f,_0x5b3473)=>{const _0x53be78=_0x2015bb['getClosestSelectedImageElement'](_0x1a9189['model']['document']['selection']);_0x1a9189['model']['change'](()=>{_0x4b6696['markBlockFormat'](_0x53be78,{'commandName':'imageTypeInline','commandParams':[_0x5b3473]},[],'convertBlockImageToInline');});}),_0x4b6696['enableCommand']('imageTypeBlock',(_0x8a485b,_0x545e62)=>{_0x1a9189['model']['change'](_0x42e52e=>{let _0x3ec83f=_0x2015bb['getClosestSelectedImageElement'](_0x1a9189['model']['document']['selection']),_0x21c9f5=_0x42e52e['createRangeOn'](_0x3ec83f);const _0x4a240e=_0x3057a2['fromPosition'](_0x21c9f5['start'],'toPrevious'),_0x5d3397=_0x3057a2['fromPosition'](_0x21c9f5['end'],'toNext');_0x4b6696['forceDefaultExecution'](()=>_0x8a485b(_0x545e62)),_0x3ec83f=_0x2015bb['getClosestSelectedImageElement'](_0x1a9189['model']['document']['selection']),_0x21c9f5=_0x42e52e['createRangeOn'](_0x3ec83f);const _0xfc922c=_0x42e52e['createRange'](_0x4a240e,_0x5d3397);_0x4a240e['detach'](),_0x5d3397['detach'](),_0x4b6696['markBlockFormat'](_0x3ec83f,{'commandName':'imageTypeInline','commandParams':[_0x545e62]},[],'convertInlineImageToBlock'),_0xfc922c['start']['isBefore'](_0x21c9f5['start'])&&_0x4b6696['markInsertion'](_0x42e52e['createRange'](_0xfc922c['start'],_0x21c9f5['start']),'convertInlineImageToBlock'),_0x21c9f5['end']['isBefore'](_0xfc922c['end'])&&_0x4b6696['markInsertion'](_0x42e52e['createRange'](_0x21c9f5['end'],_0xfc922c['end']),'convertInlineImageToBlock');});}),_0x4b6696['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4b6696['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4b6696['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4b6696['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4b6696['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4b6696['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xd9fd5b])=>{const _0x3c9e34=_0x4b6696['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x33acb1=_0xd9fd5b['start'],_0x82aa6e=_0xd9fd5b['end'];const _0x1bc014=_0x1a9189['model']['schema']['getNearestSelectionRange'](_0x33acb1,'backward'),_0x3e1d2c=_0x1a9189['model']['schema']['getNearestSelectionRange'](_0x82aa6e,'forward');_0x1bc014['isCollapsed']&&(_0x33acb1=_0x1bc014['start']),_0x3e1d2c['isCollapsed']&&(_0x82aa6e=_0x3e1d2c['end']),_0x3c9e34([_0x1a9189['model']['createRange'](_0x33acb1,_0x82aa6e)]);}),_0x4b6696['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x225b89),_0x4b6696['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x225b89)),_0x1a9189['plugins']['has']('ImageCaptionEditing')&&(_0x4b6696['enableCommand']('toggleImageCaption',(_0x2df3c8,_0x343351)=>{const _0x2dcdaf=_0x1a9189['plugins']['get']('ImageCaptionUtils');let _0x5b4f50=_0x2015bb['getClosestSelectedImageElement'](_0x1a9189['model']['document']['selection']),_0x3e0437=_0x2dcdaf['getCaptionFromImageModelElement'](_0x5b4f50);_0x1a9189['model']['change'](()=>{if(_0x3e0437)return void _0x4b6696['markDeletion'](_0x1a9189['model']['createRangeOn'](_0x3e0437));const _0x2bb7a4=_0x2015bb['isBlockImage'](_0x5b4f50);_0x2df3c8(_0x343351),_0x5b4f50=_0x2015bb['getClosestSelectedImageElement'](_0x1a9189['model']['document']['selection']),_0x3e0437=_0x2dcdaf['getCaptionFromImageModelElement'](_0x5b4f50),_0x4b6696['markInsertion'](_0x1a9189['model']['createRangeOn'](_0x3e0437),_0x2bb7a4?null:'imageCaption');});}),_0x4b6696['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x225b89));const _0x29ff8a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2639d1(_0x40a791,_0x30632e){const _0x4e0bb6=_0x29ff8a['findIndex'](({type:_0x362eb0,subType:_0x16c55c})=>_0x40a791['type']==_0x362eb0&&_0x40a791['subType']==_0x16c55c),_0x4edc40=_0x29ff8a['findIndex'](({type:_0x119746,subType:_0xed3eb8})=>_0x30632e['type']==_0x119746&&_0x30632e['subType']==_0xed3eb8);if(_0x4e0bb6<0x0||_0x4edc40<0x0)return!0x1;const _0x5e78c7=_0x40a791['getFirstRange'](),_0xd4d58a=_0x30632e['getFirstRange']();if((0x0==_0x4e0bb6||0x1==_0x4e0bb6)&&0x2==_0x4edc40&&_0x5e78c7['isIntersecting'](_0xd4d58a))return!0x0;if(0x2==_0x4e0bb6&&0x3==_0x4edc40){const _0x47f4da=_0x4b6696['_findSuggestions'](_0x5e78c7,'insertion')['filter'](({suggestion:_0x55a613,meta:_0x2e3e0a})=>_0x2e3e0a['isOwn']&&'convertInlineImageToBlock'==_0x55a613['subType']);if(_0x47f4da['length']>0x1&&_0xd4d58a['end']['isEqual'](_0x5e78c7['start']))return!0x0;if(0x1==_0x47f4da['length']&&(_0x5e78c7['start']['isEqual'](_0xd4d58a['end'])||_0x5e78c7['end']['isEqual'](_0xd4d58a['start'])))return!0x0;}if(0x3==_0x4e0bb6&&0x3==_0x4edc40&&_0x5e78c7['start']['isBefore'](_0xd4d58a['start'])){const _0x2743ad=_0x5e78c7['end']['nodeAfter'],_0x2995a9=_0xd4d58a['start']['nodeBefore'];return _0x2015bb['isBlockImage'](_0x2743ad)&&_0x2743ad===_0x2995a9;}return!0x1;}function _0x225b89(_0x43d91e,_0x26b116){return _0x2639d1(_0x43d91e,_0x26b116)?[_0x43d91e,_0x26b116]:_0x2639d1(_0x26b116,_0x43d91e)?[_0x26b116,_0x43d91e]:null;}_0x1a9189['plugins']['has']('ImageResize')&&(_0x4b6696['enableDefaultAttributesIntegration']('resizeImage'),_0x4b6696['registerBlockAttribute']('resizedWidth'),_0x4b6696['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x205697,'FORMAT_IMAGE_SIZE'))),_0x1a9189['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4b6696['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4b6696['registerBlockAttribute']('alt')),_0x4b6696['descriptionFactory']['registerDescriptionCallback'](_0x5c20e8=>{if(!!_0x29ff8a['find'](({type:_0x4f795a,subType:_0x34f2b3})=>_0x5c20e8['type']==_0x4f795a&&_0x5c20e8['subType']==_0x34f2b3))return _0x5c20e8['previous']?{}:void 0x0;}),_0x4b6696['descriptionFactory']['registerDescriptionCallback'](_0x151894=>{if('insertion'==_0x151894['type']||'deletion'==_0x151894['type']){const _0x1690f4=_0x151894['getContainedElement']();if(_0x1690f4&&_0x1690f4['is']('element','caption'))return{'type':'insertion'==_0x151894['type']?'addObject':'removeObject','element':_0x1690f4,'quantity':0x1};}}),_0x4b6696['descriptionFactory']['registerDescriptionCallback'](_0x1de9d0=>'formatBlock'==_0x1de9d0['type']&&'convertInlineImageToBlock'==_0x1de9d0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1de9d0['type']&&'convertBlockImageToInline'==_0x1de9d0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4b6696['descriptionFactory']['registerDescriptionCallback'](_0x345520=>{if('attribute'!=_0x345520['type'])return;const {data:_0x5629a6}=_0x345520;if(!_0x5629a6||'alt'!=_0x5629a6['key'])return;const _0x42b64d=_0x5629a6['newValue'];return _0x42b64d?{'type':'format','content':o(_0x205697,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x42b64d+'\x22')}:{'type':'format','content':o(_0x205697,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x597f5b=this['editor'],_0x5ab5bb=_0x597f5b['locale'];_0x597f5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bcf20=>{if('formatBlock'!=_0x4bcf20['type']&&'formatInline'!=_0x4bcf20['type'])return;const {data:_0x1c713b}=_0x4bcf20;if(_0x1c713b){if('imageTextAlternative'==_0x1c713b['commandName']){const _0x32e01c=_0x1c713b['commandParams'][0x0]['newValue'];return _0x32e01c?{'type':'format','content':o(_0x5ab5bb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x32e01c+'\x22')}:{'type':'format','content':o(_0x5ab5bb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1c713b['commandName']){const _0x483eab=_0x1c713b['commandParams'][0x0]['width'];return _0x483eab?{'type':'format','content':o(_0x5ab5bb,'*Set\x20image\x20width:*\x20%0',_0x483eab)}:{'type':'format','content':o(_0x5ab5bb,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2e9f32{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4999c1=this['editor']['locale'],_0x392908=this['editor']['plugins']['get']('TrackChangesEditing');_0x392908['enableDefaultAttributesIntegration']('replaceImageSource'),_0x392908['registerBlockAttribute']('src'),_0x392908['descriptionFactory']['registerDescriptionCallback'](_0x556dda=>{if('attribute'!=_0x556dda['type'])return;const {data:_0xfcf01d}=_0x556dda;return _0xfcf01d&&'src'==_0xfcf01d['key']?_0xfcf01d['newValue']&&_0xfcf01d['oldValue']?{'type':'format','content':o(_0x4999c1,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x13a525=this['editor']['plugins']['get']('TrackChangesEditing');_0x13a525['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x13a525['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13a525['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x13a525['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26984f=this['editor'],_0x177822=_0x26984f['locale'];_0x26984f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ea57e=>{if('formatBlock'!=_0x3ea57e['type']&&'formatInline'!=_0x3ea57e['type'])return;const {data:_0x1f829c}=_0x3ea57e;if(!_0x1f829c||'replaceImageSource'!=_0x1f829c['commandName'])return;return{'type':'format','content':o(_0x177822,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x2e9f32{['afterInit'](){const _0x4c0812=this['editor'];if(!_0x4c0812['plugins']['has']('ImageStyleEditing'))return;const _0x2a3c38=_0x4c0812['plugins']['get']('TrackChangesEditing'),_0x408a36=_0x4c0812['plugins']['get']('ImageUtils'),_0x27e122={};_0x2a3c38['enableCommand']('imageStyle',(_0x202328,_0x34397f)=>{const _0x33fe65=_0x4c0812['plugins']['get']('Users')['me'],_0x43365b=_0x4c0812['commands']['get']('imageStyle');let _0x57c122=_0x408a36['getClosestSelectedImageElement'](_0x4c0812['model']['document']['selection']),_0x54dd0b=_0x4c0812['model']['createRangeOn'](_0x57c122),_0x155f3b=_0x43365b['value'];if(_0x155f3b==_0x34397f['value'])return;const _0x3751e8={'commandName':'imageStyle','commandParams':[_0x34397f],'formatGroupId':_0x31b5c7()};_0x4c0812['model']['change'](()=>{if(_0x2a3c38['getSuggestions']()['filter'](_0x258fb2=>_0x258fb2['isInContent']&&_0x33fe65==_0x258fb2['author']&&('formatBlock'==_0x258fb2['type']||'formatInline'==_0x258fb2['type'])&&('imageStylePreApply'==_0x258fb2['subType']||'imageStylePostApply'==_0x258fb2['subType'])&&_0x258fb2['getFirstRange']()['isEqual'](_0x54dd0b))['forEach'](_0xf36a9e=>_0x2a3c38['discardSuggestion'](_0xf36a9e['head'])),_0x57c122=_0x408a36['getClosestSelectedImageElement'](_0x4c0812['model']['document']['selection']),_0x54dd0b=_0x4c0812['model']['createRangeOn'](_0x57c122),_0x43365b['refresh'](),_0x4c0812['commands']['get']('imageTypeInline')['refresh'](),_0x4c0812['commands']['get']('imageTypeBlock')['refresh'](),_0x155f3b=_0x43365b['value'],_0x155f3b!=_0x34397f['value'])return _0x408a36['isInlineImage'](_0x57c122)&&_0x43365b['shouldConvertImageType'](_0x34397f['value'],_0x57c122)?(_0x202328({..._0x34397f,'setImageSizes':!0x1}),_0x57c122=_0x408a36['getClosestSelectedImageElement'](_0x4c0812['model']['document']['selection']),void _0x2a3c38['markBlockFormat'](_0x57c122,{..._0x3751e8,'commandReversedParams':[{'value':_0x155f3b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x408a36['isBlockImage'](_0x57c122)?_0x2a3c38['markBlockFormat'](_0x57c122,_0x3751e8,[],'imageStylePostApply'):_0x2a3c38['markInlineFormat'](_0x54dd0b,_0x3751e8,'imageStylePostApply'));});});for(const _0xd888e7 of _0x4c0812['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x27e122[_0xd888e7['name']]=_0xd888e7['title']['toLowerCase']();_0x2a3c38['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2a3c38['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2a3c38['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2a3c38['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x487a5a])=>{_0x408a36['setImageNaturalSizeAttributes'](_0x487a5a['getContainedElement']());}),_0x2a3c38['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x34740f,_0x4af884)=>{_0x2a3c38['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x34740f,{'commandName':_0x4af884['commandName'],'commandParams':_0x4af884['commandReversedParams']});}),_0x2a3c38['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x413a88,_0x234bf8){if(_0x567b37(_0x413a88,_0x234bf8))return[_0x413a88,_0x234bf8];if(_0x567b37(_0x234bf8,_0x413a88))return[_0x234bf8,_0x413a88];return null;});const _0x655404=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x567b37(_0x1e4d17,_0x3efc1a){const _0x537e2b=_0x655404['findIndex'](({type:_0x411c81,subType:_0x3d15f3})=>_0x1e4d17['type']==_0x411c81&&_0x1e4d17['subType']==_0x3d15f3),_0x16fa73=_0x655404['findIndex'](({type:_0x202ae2,subType:_0x41ab33})=>_0x3efc1a['type']==_0x202ae2&&_0x3efc1a['subType']==_0x41ab33);if(_0x537e2b<0x0||_0x16fa73<0x0)return!0x1;const _0x558d9b=_0x1e4d17['getFirstRange'](),_0x4eae16=_0x3efc1a['getFirstRange']();if((0x0==_0x537e2b||0x1==_0x537e2b)&&0x2==_0x16fa73&&_0x558d9b['isIntersecting'](_0x4eae16))return!0x0;if(0x2==_0x537e2b&&0x3==_0x16fa73){const _0x5f298b=_0x2a3c38['_findSuggestions'](_0x558d9b,'insertion')['filter'](({suggestion:_0x376792,meta:_0x1890b1})=>_0x1890b1['isOwn']&&'convertInlineImageToBlock'==_0x376792['subType']);if(_0x5f298b['length']>0x1&&_0x4eae16['end']['isEqual'](_0x558d9b['start']))return!0x0;if(0x1==_0x5f298b['length']&&(_0x558d9b['start']['isEqual'](_0x4eae16['end'])||_0x558d9b['end']['isEqual'](_0x4eae16['start'])))return!0x0;}if(0x3==_0x537e2b&&0x3==_0x16fa73&&_0x558d9b['start']['isBefore'](_0x4eae16['start'])){const _0x1d29e7=_0x558d9b['end']['nodeAfter'],_0x303e94=_0x4eae16['start']['nodeBefore'];return _0x408a36['isBlockImage'](_0x1d29e7)&&_0x1d29e7===_0x303e94;}return!0x1;}_0x4c0812['model']['document']['registerPostFixer'](()=>{let _0x278ea5=!0x1;const _0x49d205=Array['from'](_0x4c0812['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x50df44,data:_0x2fde5e}of _0x49d205){const {group:_0x78ae42,type:_0x1d1018,subType:_0x452701,id:_0x528718}=_0x2a3c38['_splitMarkerName'](_0x50df44);if('suggestion'==_0x78ae42&&_0x2a3c38['hasSuggestion'](_0x528718)){if('formatBlock'==_0x1d1018&&('imageStylePreApply'==_0x452701||'imageStylePostApply'==_0x452701)){const _0x34770e=_0x2a3c38['getSuggestion'](_0x528718);if(_0x2fde5e['newRange']){const _0x2f591f=_0x34770e['getFirstRange']()['getContainedElement']();if(_0x408a36['isBlockImage'](_0x2f591f))continue;_0x2a3c38['discardSuggestion'](_0x34770e),_0x278ea5=!0x0;}}if('insertion'==_0x1d1018&&'imageCaption'==_0x452701&&!_0x2fde5e['newRange']){const _0x319af8=_0x2a3c38['getSuggestion'](_0x528718);_0x319af8['next']&&_0x319af8['next']['isInContent']&&(_0x2a3c38['discardSuggestion'](_0x319af8['next']),_0x278ea5=!0x0);}}}return _0x278ea5;}),this['_registerLegacyDescription'](_0x27e122);}['_registerLegacyDescription'](_0x39debb){const _0x38f189=this['editor'],_0x5d8b8c=_0x38f189['locale'];_0x38f189['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e1969=>{if('formatBlock'!=_0x5e1969['type']&&'formatInline'!=_0x5e1969['type'])return;const {data:_0x59b5ad}=_0x5e1969;if(!_0x59b5ad||'imageStyle'!=_0x59b5ad['commandName'])return;const _0x25e69e=_0x59b5ad['commandParams'][0x0]['value'];return _0x5660bb('side'===_0x25e69e?o(_0x5d8b8c,'FORMAT_SIDE_IMAGE'):_0x39debb[_0x25e69e]||_0x25e69e);function _0x5660bb(_0x5b7555){return{'type':'format','content':o(_0x5d8b8c,'*Format:*\x20%0',_0x5b7555)};}});}}class ot extends _0x2e9f32{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5db246){super(_0x5db246),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1c6a49=this['editor'],_0x38fcfa=_0x1c6a49['commands']['get']('importWord'),_0x1b3fc1=_0x1c6a49['commands']['get']('trackChanges');_0x38fcfa&&(_0x38fcfa['on']('execute',(_0x5afa64,[,_0x51b506])=>{this['_trackChangesValueDuringImport']=_0x1b3fc1['value'],_0x51b506['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x38fcfa,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x38fcfa,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1b3fc1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1c6a49['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3dade8,_0x551638){const {suggestions:_0x31fad4}=_0x551638,_0x1af254=this['editor']['commands']['get']('trackChanges'),_0x28fe71=_0x1af254['value'];this['_trackChangesValueDuringImport']!==_0x28fe71&&(_0x1af254['execute'](),this['_trackChangesExecuted']=!0x0),_0x31fad4&&_0x31fad4['forEach'](({id:_0x3cd6a4,type:_0x5e5974,author:_0x2b994b,created_at:_0x589285})=>{const _0x963c6a={'id':_0x3cd6a4,'type':_0x5e5974,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2b994b,'createdAt':_0x589285?new Date(_0x589285):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x963c6a);});}}class rt extends _0x2e9f32{['afterInit'](){const _0x31d128=this['editor'],_0x1e173c=_0x31d128['plugins']['get']('TrackChangesEditing');if(_0x31d128['plugins']['has']('IndentEditing')&&(_0x1e173c['enableCommand']('indent'),_0x1e173c['enableCommand']('outdent')),_0x31d128['plugins']['has']('IndentBlock')){for(const _0x5cf940 of['indentBlock','outdentBlock'])_0x1e173c['enableDefaultAttributesIntegration'](_0x5cf940);}const _0x4d9a6f=_0x31d128['locale'];_0x1e173c['registerBlockAttribute']('blockIndent'),_0x1e173c['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4d9a6f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x591bed=this['editor'],_0x33aa15=_0x591bed['locale'],_0x463cc6=_0x591bed['plugins']['get']('TrackChangesEditing');_0x463cc6['descriptionFactory']['registerDescriptionCallback'](_0x36cc91=>{if('formatBlock'!=_0x36cc91['type'])return;const {data:_0x13ea79}=_0x36cc91;if(!_0x13ea79)return;if('indentBlock'!=_0x13ea79['commandName']&&'outdentBlock'!=_0x13ea79['commandName'])return;const _0x15063e=_0x36cc91['getItems']()[0x0],_0x2e1bcd=_0x463cc6['descriptionFactory']['getItemLabel'](_0x15063e);return'indentBlock'==_0x13ea79['commandName']?{'type':'format','content':o(_0x33aa15,'*Indent:*\x20%0',_0x2e1bcd)}:'outdentBlock'==_0x13ea79['commandName']?{'type':'format','content':o(_0x33aa15,'*Outdent:*\x20%0',_0x2e1bcd)}:void 0x0;});}}class at extends _0x2e9f32{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x2e9f32{['afterInit'](){const _0x2f623f=this['editor'];if(!_0x2f623f['plugins']['has']('LinkEditing'))return;const _0x952fe3=_0x2f623f['plugins']['get']('TrackChangesEditing'),_0x2d5ad3=_0x2f623f['commands']['get']('link');_0x952fe3['enableDefaultAttributesIntegration']('link'),_0x952fe3['enableDefaultAttributesIntegration']('unlink'),_0x952fe3['registerInlineAttribute']('linkHref');for(const _0x546ab6 of _0x2d5ad3['manualDecorators'])_0x952fe3['registerInlineAttribute'](_0x546ab6['id']),_0x952fe3['descriptionFactory']['registerAttributeLabel'](_0x546ab6['id'],'link\x20('+_0x546ab6['label']['toLowerCase']()+')');_0x952fe3['descriptionFactory']['registerDescriptionCallback'](_0x330fea=>{if('attribute'!=_0x330fea['type'])return;const {data:_0x2e5e47}=_0x330fea;if(!_0x2e5e47||'linkHref'!=_0x2e5e47['key'])return;const _0x2c43de=_0x2e5e47['newValue'],_0x40efe2=_0x2f623f['locale'];return{'type':'format','content':null==_0x2c43de?o(_0x40efe2,'*Remove\x20link*'):o(_0x40efe2,'*Set\x20link:*\x20%0','\x22'+_0x2c43de+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e3ce0=this['editor'],_0x4e3530=_0x1e3ce0['locale'];_0x1e3ce0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cb640=>{if('formatInline'!=_0x5cb640['type'])return;const {data:_0x169a77}=_0x5cb640;if(_0x169a77){if('link'==_0x169a77['commandName']){const _0x3cee41=_0x169a77['commandParams'][0x0];return{'type':'format','content':o(_0x4e3530,'*Set\x20link:*\x20%0','\x22'+_0x3cee41+'\x22')};}return'unlink'==_0x169a77['commandName']?{'type':'format','content':o(_0x4e3530,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x2e9f32{['afterInit'](){const _0x143375=this['editor'],_0x18888f=_0x143375['locale'];if(!_0x143375['plugins']['has']('LegacyListEditing'))return;const _0x101fed=_0x143375['plugins']['get']('TrackChangesEditing'),_0x224177=_0x143375['plugins']['has']('LegacyTodoListEditing');function _0x2600c2(_0x1675a3){return()=>{const _0x2ad97b=_0x143375['model']['document']['selection'],_0x597840=_0x143375['commands']['get'](_0x1675a3);if(_0x597840['value'])return void _0x143375['execute']('paragraph',{});const _0xaad295=_0x1675a3['slice'](0x0,-0x4),_0x40f27d=function(_0xa93db0,_0x5e7680,_0x1cd2f3){let _0x5c9695=Array['from'](_0xa93db0)['filter'](_0x51b53e=>function(_0x1c4d1e,_0x4993a1){return _0x4993a1['checkChild'](_0x1c4d1e['parent'],'listItem')&&!_0x4993a1['isObject'](_0x1c4d1e);}(_0x51b53e,_0x1cd2f3));_0x5c9695=_0x5c9695['filter'](_0x551b14=>!_0x551b14['is']('element','listItem')||_0x551b14['getAttribute']('listType')!=_0x5e7680);const _0x5130b9=new Set();for(const _0x5517ed of _0x5c9695)_0x5517ed['is']('element','listItem')?_0x5130b9['add'](me(_0x5517ed)):_0x5130b9['add'](_0x5517ed);return Array['from'](_0x5130b9);}(_0x2ad97b['getSelectedBlocks'](),_0xaad295,_0x143375['model']['schema']);_0x143375['model']['change'](()=>{for(const _0x34aeb of _0x40f27d)_0x101fed['markBlockFormat'](_0x34aeb,{'commandName':_0x1675a3,'commandParams':[{'forceValue':!_0x597840['value']}],'formatGroupId':'blockName'},fe(_0x34aeb));});};}function _0x52f2a0(_0x5ad7d7){return()=>{const _0xeb5754=function(_0x35e583){let _0x5002b2=Array['from'](_0x35e583);const _0x365b43=_0x5002b2['findIndex'](_0x10d716=>'listItem'!=_0x10d716['name']);return _0x365b43>-0x1&&(_0x5002b2=_0x5002b2['slice'](0x0,_0x365b43)),_0x5002b2;}(_0x143375['model']['document']['selection']['getSelectedBlocks']()),_0x1b08c2=_0x143375['model']['createRange'](_0x143375['model']['createPositionAt'](_0xeb5754[0x0],'before'),_0x143375['model']['createPositionAt'](_0xeb5754[_0xeb5754['length']-0x1],'end'));_0x143375['model']['change'](()=>{_0x101fed['markBlockFormat'](_0x1b08c2,{'commandName':_0x5ad7d7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x332248){const _0x20fde6=new Set();for(const _0x33088c of _0x332248){let _0x44d804=_0x33088c['nextSibling'];for(;_0x44d804&&_0x44d804['getAttribute']('listIndent')>_0x33088c['getAttribute']('listIndent');)_0x20fde6['add'](_0x44d804),_0x44d804=_0x44d804['nextSibling'];}return Array['from'](_0x20fde6);}(_0xeb5754));});};}_0x101fed['enableCommand']('numberedList',_0x2600c2('numberedList')),_0x101fed['enableCommand']('bulletedList',_0x2600c2('bulletedList')),_0x224177&&_0x101fed['enableCommand']('todoList',_0x2600c2('todoList')),_0x101fed['enableCommand']('indentList',_0x52f2a0('indentList')),_0x101fed['enableCommand']('outdentList',_0x52f2a0('outdentList')),_0x224177&&_0x101fed['enableCommand']('checkTodoList',()=>{const _0x25a2a5=_0x143375['commands']['get']('checkTodoList'),_0x1e90a8=Array['from'](_0x25a2a5['_selectedElements']);_0x1e90a8['filter'](_0x550b42=>_0x550b42['getAttribute']('todoListChecked')!=_0x25a2a5['value']),_0x143375['model']['change'](()=>{for(const _0x5a1974 of _0x1e90a8)_0x101fed['markBlockFormat'](_0x5a1974,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x25a2a5['value']}]});});}),_0x101fed['descriptionFactory']['registerElementLabel']('listItem',_0x485ca2=>o(_0x18888f,'ELEMENT_LIST_ITEM',_0x485ca2)),_0x101fed['descriptionFactory']['registerDescriptionCallback'](_0x52ce1e=>{if('formatBlock'!=_0x52ce1e['type']&&'formatInline'!=_0x52ce1e['type'])return;const {data:_0x410149}=_0x52ce1e;if(_0x410149){if('numberedList'==_0x410149['commandName']||'bulletedList'==_0x410149['commandName']||'todoList'==_0x410149['commandName'])switch(_0x410149['commandName']['replace']('List','')){case'bulleted':return _0x5da16c(o(_0x18888f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5da16c(o(_0x18888f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5da16c(o(_0x18888f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x410149['commandName'])return{'type':'format','content':o(_0x18888f,'*Indent:*\x20%0',o(_0x18888f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x410149['commandName'])return{'type':'format','content':o(_0x18888f,'*Outdent:*\x20%0',o(_0x18888f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x410149['commandName'])return _0x410149['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18888f,'*Check\x20item*')}:{'type':'format','content':o(_0x18888f,'*Uncheck\x20item*')};}function _0x5da16c(_0x57129f){return{'type':'format','content':o(_0x18888f,'*Change\x20to:*\x20%0',_0x57129f)};}});}}function me(_0x299e66){const _0x33c57a=_0x299e66['getAttribute']('listIndent');if(0x0==_0x33c57a)return _0x299e66;let _0x403002=_0x299e66;for(;_0x299e66['previousSibling']&&_0x299e66['previousSibling']['is']('element','listItem');){const _0x58d5ab=_0x299e66['previousSibling']['getAttribute']('listIndent');if(_0x58d5ab==_0x33c57a)_0x403002=_0x299e66['previousSibling'];else{if(_0x58d5ab<_0x33c57a)break;}_0x299e66=_0x299e66['previousSibling'];}return _0x403002;}function fe(_0xb991f9){const _0x454aa2=[];if(_0xb991f9['is']('element','listItem')&&_0xb991f9['getAttribute']('listIndent')>0x0){let _0x537b7b=_0xb991f9['nextSibling'];for(;_0x537b7b&&'listItem'==_0x537b7b['name']&&_0x537b7b['getAttribute']('listIndent')==_0xb991f9['getAttribute']('listIndent');)_0x454aa2['push'](_0x537b7b),_0x537b7b=_0x537b7b['nextSibling'];}return _0x454aa2;}class K extends _0x2e9f32{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1fa66c=this['editor']['config']['get']('list.properties'),_0x453fc9=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fa66c['styles']&&_0x453fc9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1fa66c['reversed']&&_0x453fc9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1fa66c['startIndex']&&_0x453fc9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x453fc9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4a64e6,_0x192596={}){const _0x1b280f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29b596=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1b280f['markMultiRangeBlockFormat'](_0x29b596,{'commandName':'listStyle','commandParams':[{'type':_0x192596['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x288c89,_0x1ea3d9={}){const _0x396c4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b3805=this['_getSuggestionBlocks'](_0x3c8299=>_0x3c8299['is']('element','listItem')&&'numbered'===_0x3c8299['getAttribute']('listType'));if(_0x1b3805['length']<0x1)return;const _0x390a02=_0x1b3805['map'](_0x32f622=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32f622,'before'),this['editor']['model']['createPositionAt'](_0x32f622,0x0)));this['editor']['model']['change'](()=>{_0x396c4a['markMultiRangeBlockFormat'](_0x390a02,{'commandName':'listReversed','commandParams':[{'reversed':_0x1ea3d9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x95bf0c,_0x5773ec={}){const _0x256654=this['editor']['plugins']['get']('TrackChangesEditing'),_0x596bac=this['_getSuggestionBlocks'](_0x21c026=>_0x21c026['is']('element','listItem')&&'numbered'===_0x21c026['getAttribute']('listType'));if(_0x596bac['length']<0x1)return;const _0x566bc6=_0x596bac['map'](_0x281be3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x281be3,'before'),this['editor']['model']['createPositionAt'](_0x281be3,0x0)));this['editor']['model']['change'](()=>{_0x256654['markMultiRangeBlockFormat'](_0x566bc6,{'commandName':'listStart','commandParams':[{'startIndex':_0x5773ec['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3aea22){if('formatBlock'!=_0x3aea22['type']&&'formatInline'!=_0x3aea22['type'])return;const _0x28cf49=this['editor']['locale'],{data:_0xe3f032}=_0x3aea22;if(!_0xe3f032)return;let _0x16c264,_0x41a796;switch(_0xe3f032['commandName']){case'listStyle':_0x16c264='*Change\x20to:*\x20%0',_0x41a796={'type':'format','content':o(_0x28cf49,_0x16c264,o(_0x28cf49,this['_getTranslationKeyForListStyle'](_0xe3f032['commandParams'][0x0]['type'])))};break;case'listReversed':_0x16c264=_0xe3f032['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x41a796={'type':'format','content':o(_0x28cf49,_0x16c264)};break;case'listStart':_0x16c264='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x41a796={'type':'format','content':o(_0x28cf49,_0x16c264,_0xe3f032['commandParams'][0x0]['startIndex'])};}return _0x41a796;}['_getSuggestionBlocksForListStyle'](){const _0x2bf060=this['editor']['plugins']['get']('LegacyListUtils');let _0x82a293=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x82a293[0x0]?.['is']('element','listItem')&&_0x82a293['unshift'](..._0x2bf060['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x82a293[_0x82a293['length']-0x1]?.['is']('element','listItem')&&_0x82a293['push'](..._0x2bf060['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x82a293=[...new Set(_0x82a293)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x82a293=_0x82a293['filter'](_0x128974=>_0x128974['is']('element','listItem'))),_0x82a293;}['_getSuggestionBlocks'](_0x5bed83){const _0x29aa4b=this['editor']['plugins']['get']('LegacyListUtils');let _0x155586=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5bed83)['map'](_0x322269=>{const _0x416978=this['editor']['model']['createPositionAt'](_0x322269,0x0);return[..._0x29aa4b['getSiblingNodes'](_0x416978,'backward'),..._0x29aa4b['getSiblingNodes'](_0x416978,'forward')];})['flat']();return _0x155586=[...new Set(_0x155586)],_0x155586;}['_getTranslationKeyForListStyle'](_0x40f278){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x40f278)||'default')['toUpperCase']()+'_LIST_'+_0x40f278['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x2e9f32{['afterInit'](){const _0x565895=this['editor'];if(!_0x565895['plugins']['has']('MediaEmbedEditing'))return;const _0x349b13=_0x565895['plugins']['get']('TrackChangesEditing'),_0x4dbe15=_0x565895['locale'];_0x349b13['enableCommand']('mediaEmbed'),_0x349b13['descriptionFactory']['registerElementLabel']('media',_0x4b5b62=>o(_0x4dbe15,'ELEMENT_MEDIA',_0x4b5b62)),_0x565895['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x144c3f,{writer:_0x2643d0,options:_0x1f9bca})=>{if(_0x1f9bca['showSuggestionHighlights'])return _0x2643d0['createEmptyElement']('div');},'converterPriority':'high'}),_0x565895['data']['downcastDispatcher']['on']('attribute:url:media',(_0x264f93,_0x25232f,_0x45a620)=>{_0x45a620['options']['showSuggestionHighlights']&&_0x264f93['stop']();},{'priority':'high'});}}class gt extends _0x2e9f32{['afterInit'](){const _0x1ac453=this['editor'];_0x1ac453['plugins']['has']('MentionEditing')&&_0x1ac453['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x2e9f32{['afterInit'](){const _0x3663ab=this['editor'],_0x4abf4d=_0x3663ab['plugins']['get']('TrackChangesEditing');_0x3663ab['plugins']['has']('MultiLevelList')&&(_0x4abf4d['enableDefaultAttributesIntegration']('multiLevelList'),_0x4abf4d['registerBlockAttribute']('listMarkerStyle'),_0x4abf4d['descriptionFactory']['registerDescriptionCallback'](_0x2e141b=>this['handleDescriptions'](_0x2e141b)));}['handleDescriptions'](_0x4bbedc){const _0x754065=this['editor']['locale'],{data:_0x91b0af}=_0x4bbedc,_0x3aeee4={'type':'format','content':''};if(_0x91b0af&&'listMarkerStyle'==_0x91b0af['key']){if(!_0x91b0af['oldValue'])return{'type':'format','content':o(_0x754065,'*Set\x20format:*\x20%0',o(_0x754065,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x91b0af['newValue']+')'};if(!_0x91b0af['newValue']){let _0x582f7e=_0x4bbedc['head'];for(;_0x582f7e;){if(_0x582f7e['data']&&'listType'==_0x582f7e['data']['key']&&_0x582f7e['data']['newValue'])return _0x3aeee4;_0x582f7e=_0x582f7e['next'];}return{'type':'format','content':o(_0x754065,'*Remove\x20format:*\x20%0',o(_0x754065,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x91b0af['oldValue']+')'};}}}}class mt extends _0x2e9f32{['afterInit'](){const _0x187e90=this['editor'];if(!_0x187e90['plugins']['has']('PageBreakEditing'))return;_0x187e90['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x561af1=_0x187e90['plugins']['get']('TrackChangesEditing'),_0x3887b2=_0x187e90['locale'];_0x561af1['descriptionFactory']['registerElementLabel']('pageBreak',_0x4cf8f8=>o(_0x3887b2,'ELEMENT_PAGE_BREAK',_0x4cf8f8));}}class dt extends _0x2e9f32{['afterInit'](){const _0x1fcb6a=this['editor'];if(!_0x1fcb6a['plugins']['has']('Paragraph'))return;const _0xea93d9=_0x1fcb6a['locale'],_0x1b7a1d=_0x1fcb6a['plugins']['get']('TrackChangesEditing');_0x1b7a1d['descriptionFactory']['registerElementLabel']('paragraph',_0x3fbd2a=>o(_0xea93d9,'ELEMENT_PARAGRAPH',_0x3fbd2a)),_0x1b7a1d['enableDefaultAttributesIntegration']('paragraph'),_0x1b7a1d['enableCommand']('insertParagraph'),_0x1fcb6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1fcb6a),{'priority':'highest'}),_0x1fcb6a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x21a26a,_0x54c653,_0x3f9705)=>{_0x3f9705['options']['showSuggestionHighlights']&&nr(_0x1fcb6a,{'showActiveMarker':!0x1})(_0x21a26a,_0x54c653,_0x3f9705);},{'priority':'highest'});const _0x1f6624=_0x1b7a1d['descriptionFactory'];_0x1f6624['registerDescriptionCallback'](_0x1de8ce=>{if('insertion'!==_0x1de8ce['type'])return;const {start:_0x282c0c,end:_0x2df72b}=_0x1de8ce['getFirstRange']();if(!_0x282c0c['isTouching'](_0x2df72b)||!_0x282c0c['nodeAfter'])return;const _0x2f7f09=_0x1fcb6a['model']['schema'],_0x2799f1=_0x282c0c['nodeAfter'];return _0x2f7f09['isBlock'](_0x2799f1)&&!_0x2f7f09['isLimit'](_0x2799f1)&&_0x2f7f09['checkChild'](_0x2799f1,'$text')?{'type':'insertion','content':o(_0xea93d9,'*Insert:*\x20%0',_0x1f6624['getItemLabel'](_0x2799f1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e8634=this['editor'],_0x18c3de=_0x2e8634['locale'];_0x2e8634['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5096a6=>{if('formatBlock'!=_0x5096a6['type'])return;const {data:_0x73f62f}=_0x5096a6;return _0x73f62f&&'paragraph'==_0x73f62f['commandName']?{'type':'format','content':o(_0x18c3de,'*Change\x20to:*\x20%0',o(_0x18c3de,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x29bfa5,{showActiveMarker:_0x4fca4d=!0x0}={}){return(_0x753f5e,_0x77682b,_0x3b665e)=>{const _0x3bbaac=_0x29bfa5['plugins']['get']('TrackChangesEditing'),_0x454f9b=_0x77682b['markerRange']['start'],_0x1572da=_0x77682b['markerRange']['end'],_0x257d0a=_0x29bfa5['model']['schema'];if(!_0x454f9b['isTouching'](_0x1572da)||!_0x454f9b['nodeAfter'])return;const _0x9e1b24=_0x454f9b['nodeAfter'];if(_0x257d0a['isBlock'](_0x9e1b24)&&!_0x257d0a['isLimit'](_0x9e1b24)&&_0x257d0a['checkChild'](_0x9e1b24,'$text')){if(!_0x3b665e['consumable']['consume'](_0x77682b['markerRange'],_0x753f5e['name']))return;const _0x25c20e=_0x3b665e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5552c1=_0x3b665e['mapper']['toViewPosition'](_0x1572da);_0x4fca4d&&_0x3bbaac['activeMarkers']['includes'](_0x77682b['markerName'])&&_0x3b665e['writer']['addClass']('ck-suggestion-marker--active',_0x25c20e),_0x3b665e['writer']['insert'](_0x5552c1,_0x25c20e),_0x3b665e['mapper']['bindElementToMarker'](_0x25c20e,_0x77682b['markerName']);}};}class pt extends _0x2e9f32{['afterInit'](){const _0x42a163=this['editor'];if(!_0x42a163['plugins']['has']('RemoveFormatEditing'))return;_0x42a163['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x96dbc1=this['editor'];_0x96dbc1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22b3de=>{if('formatBlock'!=_0x22b3de['type']&&'formatInline'!=_0x22b3de['type'])return;const {data:_0x17ab3c}=_0x22b3de;return _0x17ab3c&&'removeFormat'==_0x17ab3c['commandName']?{'type':'format','content':o(_0x96dbc1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x2e9f32{['afterInit'](){const _0x1ff489=this['editor'];if(!_0x1ff489['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x25c93b=_0x1ff489['plugins']['get']('TrackChangesEditing');_0x25c93b['enableCommand']('goToPreviousRestrictedEditingException'),_0x25c93b['enableCommand']('goToNextRestrictedEditingException');const _0x4ee1f9=_0x1ff489['plugins']['get']('RestrictedEditingModeEditing');_0x4ee1f9['enableCommand']('trackChanges'),_0x4ee1f9['enableCommand']('acceptSuggestion'),_0x4ee1f9['enableCommand']('discardSuggestion'),_0x4ee1f9['enableCommand']('acceptAllSuggestions'),_0x4ee1f9['enableCommand']('discardAllSuggestions'),_0x4ee1f9['enableCommand']('acceptSelectedSuggestions'),_0x4ee1f9['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x2e9f32{static get['requires'](){return[_0x2683fe];}['init'](){const _0xffc420=this['editor'],_0x52ea90=_0xffc420['plugins']['get']('TrackChangesEditing');_0x52ea90['enableCommand']('shiftEnter'),_0xffc420['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0xffc420),{'priority':'high'}),_0xffc420['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0xffc420),{'priority':'high'}),_0xffc420['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5c33ee,_0xd0390d,_0x1a5f62)=>{_0x1a5f62['options']['showSuggestionHighlights']&&de(_0xffc420,{'showActiveMarker':!0x1})(_0x5c33ee,_0xd0390d,_0x1a5f62);}),_0x52ea90['descriptionFactory']['registerElementLabel']('softBreak',_0x48365b=>o(_0xffc420['locale'],'ELEMENT_LINE_BREAK',_0x48365b));}}function de(_0x12695f,{showActiveMarker:_0x1f8299=!0x0}={}){return(_0xfea664,_0xd9f6d4,_0x3ddd4e)=>{const _0x3bf404=_0x12695f['plugins']['get']('TrackChangesEditing');if(!_0x3ddd4e['consumable']['test'](_0xd9f6d4['markerRange'],_0xfea664['name']))return;const _0x38ba64=_0x12695f['model'];for(const _0x4ec947 of _0xd9f6d4['markerRange']['getItems']()){if(!_0x4ec947['is']('element','softBreak'))continue;const _0x822c66='deletion'==_0xd9f6d4['markerName']['split'](':')[0x1]?'merge':'split',_0x320ac4=_0x3ddd4e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x822c66}),_0x5924e7=_0x3ddd4e['mapper']['toViewPosition'](_0x38ba64['createPositionBefore'](_0x4ec947));_0x1f8299&&_0x3bf404['activeMarkers']['includes'](_0xd9f6d4['markerName'])&&_0x3ddd4e['writer']['addClass']('ck-suggestion-marker--active',_0x320ac4),_0x3ddd4e['writer']['insert'](_0x5924e7,_0x320ac4),_0x3ddd4e['mapper']['bindElementToMarker'](_0x320ac4,_0xd9f6d4['markerName']);}};}class wt extends _0x2e9f32{['afterInit'](){const _0x37e0e5=this['editor'],_0x4705b6=_0x37e0e5['model'],_0x3b6667=_0x37e0e5['locale'];if(!_0x37e0e5['plugins']['has']('StandardEditingModeEditing'))return;const _0x42b76c=_0x37e0e5['plugins']['get']('TrackChangesEditing'),_0x5b8a65='restrictedEditingException',_0x4bd8b5=_0x37e0e5['commands']['get'](_0x5b8a65);_0x42b76c['enableCommand'](_0x5b8a65,(_0x463b2c,_0x4ded8b={})=>{const _0x1d0fc6=_0x4705b6['document']['selection'];if(_0x1d0fc6['isCollapsed'])return void _0x463b2c(_0x4ded8b);const _0x49dd67=void 0x0!==_0x4ded8b['forceValue']?_0x4ded8b['forceValue']:!_0x4bd8b5['value'];_0x4705b6['change'](()=>{const _0x3204c3=Array['from'](_0x1d0fc6['getRanges']());for(const _0x1cf107 of _0x3204c3){const _0x2e4653=_0x49dd67?[_0x1cf107]:io(_0x5b8a65,_0x1cf107,_0x4705b6);for(const _0x42038b of _0x2e4653)_0x42b76c['markInlineFormat'](_0x42038b,{'commandName':_0x5b8a65,'commandParams':[{'forceValue':_0x49dd67}]});}});}),_0x42b76c['descriptionFactory']['registerDescriptionCallback'](_0x3123ce=>{if('formatBlock'!=_0x3123ce['type']&&'formatInline'!=_0x3123ce['type'])return;const {data:_0x5af7ba}=_0x3123ce;return _0x5af7ba&&_0x5af7ba['commandName']==_0x5b8a65?_0x5af7ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b6667,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3b6667,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x2e9f32{['afterInit'](){const _0x54b1f2=this['editor'];if(!_0x54b1f2['plugins']['has']('Style')||!_0x54b1f2['plugins']['has']('DataSchema'))return;const _0x7a0cec=_0x54b1f2['plugins']['get']('TrackChangesEditing'),_0x9a2641=_0x54b1f2['locale'],_0x2aea6f=_0x54b1f2['config']['get']('style')||{},_0x3d2260=_0x54b1f2['plugins']['get']('GeneralHtmlSupport'),_0x1d995f=_0x54b1f2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x54b1f2['plugins']['get']('DataSchema'),_0x2aea6f['definitions']);_0x7a0cec['enableDefaultAttributesIntegration']('style');const _0x513593=new Set();for(const _0x54b65e of _0x1d995f['block']){const _0x4bf58b=_0x3d2260['getGhsAttributeNameForElement'](_0x54b65e['element']);_0x513593['add'](_0x4bf58b);}const _0x52ba61=new Set();for(const _0x1086b1 of _0x1d995f['inline']){const _0x298840=_0x3d2260['getGhsAttributeNameForElement'](_0x1086b1['element']);_0x52ba61['add'](_0x298840);for(const _0x37fec9 of _0x1086b1['ghsAttributes'])_0x52ba61['add'](_0x37fec9);}for(const _0x3f9a49 of _0x513593)_0x7a0cec['registerBlockAttribute'](_0x3f9a49),_0x7a0cec['descriptionFactory']['registerAttributeLabel'](_0x3f9a49,o(_0x9a2641,'FORMAT_STYLE'));for(const _0x570402 of _0x52ba61)_0x7a0cec['registerInlineAttribute'](_0x570402),_0x7a0cec['descriptionFactory']['registerAttributeLabel'](_0x570402,o(_0x9a2641,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cb030=this['editor'],_0x366cad=_0x2cb030['locale'];_0x2cb030['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14464c=>{if('formatBlock'!=_0x14464c['type']&&'formatInline'!=_0x14464c['type'])return;const {data:_0x46729e}=_0x14464c;return _0x46729e&&'style'===_0x46729e['commandName']?_0x46729e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x366cad,'*Set\x20format:*\x20%0',_0x46729e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x366cad,'*Remove\x20format:*\x20%0',_0x46729e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x2e9f32{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x30cc3e){super(_0x30cc3e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x7167d=this['editor'],_0x4621ae=_0x7167d['model']['document']['selection'];if(!_0x7167d['plugins']['has']('TableEditing'))return;const _0x4028e5=_0x7167d['locale'],_0x2eb4a0=_0x7167d['plugins']['get']('TrackChangesEditing'),_0x2dda75=_0x7167d['plugins']['get']('TableUtils');_0x2eb4a0['descriptionFactory']['registerElementLabel']('table',_0x35c1c2=>o(_0x4028e5,'ELEMENT_TABLE',_0x35c1c2)),this['_setupColumnsRowsFixing'](),_0x2eb4a0['enableCommand']('insertTable'),_0x2eb4a0['enableCommand']('selectTableRow'),_0x2eb4a0['enableCommand']('selectTableColumn');for(const _0x371ae2 of['insertTableRowAbove','insertTableRowBelow']){const _0x106726=_0x7167d['commands']['get'](_0x371ae2);_0x2eb4a0['enableCommand'](_0x371ae2,_0x37ce05=>{_0x7167d['model']['change'](_0x182357=>{_0x37ce05();const _0x34648a='above'===_0x106726['order'],_0x5b6b96=_0x2dda75['getSelectionAffectedTableCells'](_0x4621ae),_0x1130ff=_0x2dda75['getRowIndexes'](_0x5b6b96),_0x285b1a=_0x34648a?_0x1130ff['first']-0x1:_0x1130ff['last']+0x1,_0x5cab5b=_0x5b6b96[0x0]['findAncestor']('table'),_0x5150a6=_0x2dda75['createTableWalker'](_0x5cab5b,{'startRow':_0x285b1a,'endRow':_0x285b1a}),_0xf11833=Array['from'](_0x5150a6)['map'](_0x30dd5c=>_0x182357['createRangeOn'](_0x30dd5c['cell']));_0x2eb4a0['markMultiRangeInsertion'](_0xf11833,'tableRow');});});}for(const _0x4b513d of['insertTableColumnLeft','insertTableColumnRight']){const _0x3a3781=_0x7167d['commands']['get'](_0x4b513d);_0x2eb4a0['enableCommand'](_0x4b513d,_0x10eee3=>{_0x7167d['model']['change'](_0x157bb2=>{_0x10eee3();const _0x45f54d='left'===_0x3a3781['order'],_0x36823a=_0x2dda75['getSelectionAffectedTableCells'](_0x4621ae),_0xb6b843=_0x2dda75['getColumnIndexes'](_0x36823a),_0x14a559=_0x45f54d?_0xb6b843['first']-0x1:_0xb6b843['last']+0x1,_0x1eeb09=_0x36823a[0x0]['findAncestor']('table'),_0x4e2a0b=_0x2dda75['createTableWalker'](_0x1eeb09,{'startRow':0x0,'column':_0x14a559,'includeAllSlots':!0x1}),_0x371a2c=Array['from'](_0x4e2a0b)['map'](_0x2040c5=>_0x157bb2['createRangeOn'](_0x2040c5['cell']));_0x2eb4a0['markMultiRangeInsertion'](_0x371a2c,'tableColumn');});});}for(const _0x5da8c6 of['removeTableRow','removeTableColumn']){const _0xb134b1=_0x5da8c6['substr'](0xb),_0x25e009=_0xb134b1['toLowerCase'](),_0x5c88d6=_0x25e009['substr'](0x0,0x3)+'span',_0x4c08a5='table'+_0xb134b1,_0x39cfa6='min'+_0xb134b1,_0x382017='max'+_0xb134b1;_0x2eb4a0['enableCommand'](_0x5da8c6,()=>{_0x7167d['model']['change'](_0x83e050=>{const _0x41ae8e=_0x2dda75['getSelectionAffectedTableCells'](_0x4621ae),_0x5ede9c=_0x41ae8e[0x0]['findAncestor']('table');let _0x50985d;if('removeTableRow'==_0x5da8c6){const _0x57bab0=_0x2dda75['getRowIndexes'](_0x41ae8e);_0x50985d={'startRow':_0x57bab0['first'],'endRow':_0x57bab0['last'],'includeAllSlots':!0x0};}else{const _0x3a74ec=_0x2dda75['getColumnIndexes'](_0x41ae8e);_0x50985d={'startColumn':_0x3a74ec['first'],'endColumn':_0x3a74ec['last'],'includeAllSlots':!0x0};}const _0x4a8f1b=_0x2dda75['createTableWalker'](_0x5ede9c,_0x50985d),_0x61de99=Array['from'](_0x4a8f1b)['map'](({cell:_0x590b36})=>_0x590b36),_0xa861c1=Ee(_0x61de99['filter'](_0x599557=>_0x599557['hasAttribute'](_0x5c88d6))),_0x174bf8=Ee(_0x61de99['filter'](_0x5bcce0=>!_0x5bcce0['hasAttribute'](_0x5c88d6)))['map'](_0x3434eb=>_0x83e050['createRangeOn'](_0x3434eb)),_0x1a5005=_0x2eb4a0['markMultiRangeDeletion'](_0x174bf8,_0x4c08a5);if(_0x1a5005&&('tableRow'==_0x1a5005['subType']||'tableColumn'==_0x1a5005['subType'])){const _0x2bc483=this['_getSuggestionCoords'](_0x1a5005);for(const _0x18cbb4 of _0xa861c1){const _0x43a6c2=_0x83e050['createRangeOn'](_0x18cbb4),_0x53780b=_0x2dda75['getCellLocation'](_0x18cbb4),_0x4457f0=_0x18cbb4['getAttribute'](_0x5c88d6)-0x1,_0x2f76d7=_0x2bc483[_0x39cfa6],_0x41b1c8=_0x2bc483[_0x382017];_0x2f76d7<=_0x53780b[_0x25e009]&&_0x53780b[_0x25e009]+_0x4457f0<=_0x41b1c8&&_0x1a5005['addRange'](_0x43a6c2);}}});});}function _0x4d380e(_0x5ad818){const _0x5bc950=Array['from'](_0x4621ae['getRanges']())['map'](_0x5cdb41=>_0x5c6df6['fromRange'](_0x5cdb41));_0x7167d['model']['change'](_0x155663=>{const _0x4e7205=_0x155663['batch'];_0x5ad818=_0x5ad818['filter'](_0x21b673=>'$graveyard'!=_0x21b673['root']['rootName']),_0x155663['setSelection'](_0x5ad818),_0x7167d['commands']['get']('removeTableRow')['refresh'](),_0x7167d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x7167d['model']['enqueueChange'](()=>{_0x7167d['model']['enqueueChange'](_0x4e7205,_0x479545=>{const _0x57d40c=_0x5bc950['filter'](_0x54160e=>'$graveyard'!=_0x54160e['root']['rootName']);_0x57d40c['length']>0x0&&_0x479545['setSelection'](_0x57d40c);for(const _0xb32ee1 of _0x5bc950)_0xb32ee1['detach']();});});});}function _0x508b4b(_0x412ba6){_0x7167d['model']['change'](_0x422818=>{const _0x276ca8=Array['from'](_0x4621ae['getRanges']())['map'](_0xdff8fa=>_0x5c6df6['fromRange'](_0xdff8fa)),_0x56c41c=[];for(const _0x1174d1 of _0x412ba6)for(const _0x436e54 of _0x1174d1['getItems']({'shallow':!0x0}))_0x56c41c['push'](_0x436e54);for(const _0x3089d4 of _0x56c41c)'$graveyard'!=_0x3089d4['root']['rootName']&&(_0x422818['setSelection'](_0x422818['createPositionAt'](_0x3089d4,0x0)),_0x7167d['commands']['get']('removeTableColumn')['refresh'](),_0x7167d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x257fb0=_0x276ca8['filter'](_0x4295ae=>'$graveyard'!=_0x4295ae['root']['rootName']);_0x257fb0['length']>0x0&&_0x422818['setSelection'](_0x257fb0);for(const _0x2ed8a4 of _0x276ca8)_0x2ed8a4['detach']();});}function _0x26641d(_0xdc69c0,_0x5809fd){return _0x5809fd['every'](_0x6d6e45=>_0xdc69c0['some'](_0x383fef=>_0x383fef['end']['isEqual'](_0x6d6e45['start'])||_0x6d6e45['end']['isEqual'](_0x383fef['start'])));}function _0x350902(_0x3e873e,_0x1f68ed){return!_0x3e873e['some'](_0x4a0741=>_0x1f68ed['some'](_0x20c72c=>_0x4a0741['isIntersecting'](_0x20c72c)))&&_0x3e873e['some'](_0x507e55=>_0x1f68ed['some'](_0x137926=>_0x507e55['end']['isTouching'](_0x137926['start'])));}_0x7167d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6e5f02,_0x56fcd9,_0x4ed948)=>{if(!_0x4ed948['options']['showSuggestionHighlights'])return;const _0x45e9c6=_0x56fcd9['item'];if(!_0x45e9c6)return;const _0x55285a=_0x4ed948['mapper']['toViewElement'](_0x45e9c6);function _0x3d7091(_0x125cfa){return Array['isArray'](_0x125cfa)?_0x125cfa:[_0x125cfa];}_0x55285a&&'tableCell'===_0x45e9c6['name']&&_0x28da1c(_0x55285a,_0x4ed948['writer'],(_0x6c2ceb,_0x3f8fab,_0x3e294e)=>_0x3e294e['addClass'](_0x3d7091(_0x3f8fab['classes']),_0x6c2ceb),(_0x56a6d8,_0x28d74c,_0x73f7e8)=>_0x73f7e8['removeClass'](_0x3d7091(_0x28d74c['classes']),_0x56a6d8));},{'priority':'highest'}),_0x2eb4a0['descriptionFactory']['registerDescriptionCallback'](_0x5b2a5a=>{if('insertion'!=_0x5b2a5a['type']&&'deletion'!=_0x5b2a5a['type'])return;const _0x36d0f1=_0x5b2a5a['getContainedElement']();if(null!=_0x36d0f1&&_0x36d0f1['is']('element','table')){if('insertion'==_0x5b2a5a['type']){const _0x4c9ce1=_0x5b2a5a['getItems']()['filter'](_0x598875=>_0x598875['is']('$textProxy'))['map'](_0x2361d1=>_0x2361d1['data']);if(_0x4c9ce1['length'])return{'type':'insertion','content':o(_0x4028e5,'*Insert:*\x20%0',o(_0x4028e5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c9ce1['join']('\x20')+'\x22'))};}if('deletion'==_0x5b2a5a['type']){const _0x57fb9e=_0x5b2a5a['getItems']()['filter'](_0x4494e8=>_0x4494e8['is']('$textProxy'))['map'](_0xd9d0d9=>_0xd9d0d9['data']);if(_0x57fb9e['length'])return{'type':'deletion','content':o(_0x4028e5,'*Remove:*\x20%0',o(_0x4028e5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57fb9e['join']('\x20')+'\x22'))};}}}),_0x2eb4a0['descriptionFactory']['registerDescriptionCallback'](_0x49dc4b=>{if('tableRow'==_0x49dc4b['subType']){const _0x40a725=_0x49dc4b['getItems']()['filter'](_0xa8112=>_0xa8112['is']('$textProxy'))['map'](_0x3ec248=>_0x3ec248['data']),_0x18eace=this['_getSuggestionCoords'](_0x49dc4b),_0x2a5203=_0x18eace['maxRow']-_0x18eace['minRow']+0x1;if('insertion'==_0x49dc4b['type'])return _0x40a725['length']?{'type':'insertion','content':o(_0x4028e5,'*Insert:*\x20%0',o(_0x4028e5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a5203,'\x22'+_0x40a725['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4028e5,'*Insert:*\x20%0',o(_0x4028e5,'ELEMENT_TABLE_ROW',_0x2a5203))};if('deletion'==_0x49dc4b['type'])return _0x40a725['length']?{'type':'deletion','content':o(_0x4028e5,'*Remove:*\x20%0',o(_0x4028e5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2a5203,'\x22'+_0x40a725['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4028e5,'*Remove:*\x20%0',o(_0x4028e5,'ELEMENT_TABLE_ROW',_0x2a5203))};}if('tableColumn'==_0x49dc4b['subType']){const _0x23a2d8=_0x49dc4b['getItems']()['filter'](_0x49f58c=>_0x49f58c['is']('$textProxy'))['map'](_0xb3bbb9=>_0xb3bbb9['data']),_0x2aa7a3=this['_getSuggestionCoords'](_0x49dc4b),_0x3ffbb7=_0x2aa7a3['maxColumn']-_0x2aa7a3['minColumn']+0x1;if('insertion'==_0x49dc4b['type'])return _0x23a2d8['length']?{'type':'insertion','content':o(_0x4028e5,'*Insert:*\x20%0',o(_0x4028e5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ffbb7,'\x22'+_0x23a2d8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4028e5,'*Insert:*\x20%0',o(_0x4028e5,'ELEMENT_TABLE_COLUMN',_0x3ffbb7))};if('deletion'==_0x49dc4b['type'])return _0x23a2d8['length']?{'type':'deletion','content':o(_0x4028e5,'*Remove:*\x20%0',o(_0x4028e5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ffbb7,'\x22'+_0x23a2d8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4028e5,'*Remove:*\x20%0',o(_0x4028e5,'ELEMENT_TABLE_COLUMN',_0x3ffbb7))};}}),_0x2eb4a0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4d380e),_0x2eb4a0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4d380e),_0x2eb4a0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x508b4b),_0x2eb4a0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x508b4b),_0x2eb4a0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x26641d),_0x2eb4a0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x26641d),_0x2eb4a0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x350902),_0x2eb4a0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x350902);}['_acceptFormatSuggestionCallbackFactory'](){const _0x32ee88=this['editor'],_0x48f0e7=_0x32ee88['model']['document']['selection'];return(_0x1af9d8,_0x23c14c)=>{_0x32ee88['model']['change'](_0x2a2b76=>{const {commandName:_0x49a1b9,commandParams:_0x4a069d}=_0x23c14c;let _0x2d9f4d=_0x1af9d8[0x0]['end']['nodeBefore'];_0x4a069d&&_0x4a069d[0x0]&&!0x1===_0x4a069d[0x0]['forceValue']&&(_0x2d9f4d=_0x1af9d8[0x0]['start']['nodeAfter']);const _0x39f0aa=_0x2a2b76['createRangeIn'](_0x2d9f4d);if('$graveyard'==_0x39f0aa['root']['rootName'])return;const _0x209b8c=Array['from'](_0x48f0e7['getRanges']())['map'](_0x247ef2=>_0x5c6df6['fromRange'](_0x247ef2));_0x2a2b76['setSelection'](_0x39f0aa),_0x32ee88['commands']['get'](_0x49a1b9)['refresh'](),_0x4a069d['push']({'forceDefaultExecution':!0x0}),_0x32ee88['execute'](_0x49a1b9,..._0x4a069d);const _0xf16f1f=_0x209b8c['filter'](_0x2092c9=>'$graveyard'!=_0x2092c9['root']['rootName']);_0xf16f1f['length']>0x0&&_0x2a2b76['setSelection'](_0xf16f1f);for(const _0x23734a of _0x209b8c)_0x23734a['detach']();});};}['_getCoordsForCells'](_0xd3e815){const _0x18fc8c=this['editor']['plugins']['get']('TableUtils');let _0x548ef7=Number['MAX_SAFE_INTEGER'],_0x302e80=Number['MIN_SAFE_INTEGER'],_0x142655=Number['MAX_SAFE_INTEGER'],_0x201a8c=Number['MIN_SAFE_INTEGER'];for(const _0x4c7071 of _0xd3e815){if('$graveyard'==_0x4c7071['root']['rootName'])continue;const {row:_0x4f8aaa,column:_0x52cc27}=_0x18fc8c['getCellLocation'](_0x4c7071),_0x3acf5f=_0x4c7071['hasAttribute']('rowspan')?_0x4c7071['getAttribute']('rowspan')-0x1:0x0,_0x24fa5d=_0x4c7071['hasAttribute']('colspan')?_0x4c7071['getAttribute']('colspan')-0x1:0x0;_0x548ef7=_0x4f8aaa<_0x548ef7?_0x4f8aaa:_0x548ef7,_0x302e80=_0x4f8aaa+_0x3acf5f>_0x302e80?_0x4f8aaa+_0x3acf5f:_0x302e80,_0x142655=_0x52cc27<_0x142655?_0x52cc27:_0x142655,_0x201a8c=_0x52cc27+_0x24fa5d>_0x201a8c?_0x52cc27+_0x24fa5d:_0x201a8c;}return{'minRow':_0x548ef7,'maxRow':_0x302e80,'minColumn':_0x142655,'maxColumn':_0x201a8c};}['_setupColumnsRowsFixing'](){const _0x25aaf0=this['editor'],_0x3990ab=_0x25aaf0['plugins']['get']('TrackChangesEditing'),_0x33bdc4=_0x25aaf0['plugins']['get']('TableUtils');_0x25aaf0['model']['document']['on']('change:data',()=>{const _0x4aa6ec=Array['from'](_0x25aaf0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d15d5,data:_0x332923}of _0x4aa6ec){const {group:_0x4d78b6,id:_0x530536,subType:_0x499a79}=_0x3990ab['_splitMarkerName'](_0x1d15d5);if('suggestion'!=_0x4d78b6)continue;if(null!=_0x332923['oldRange'])continue;const _0x294321=_0x3990ab['getSuggestion'](_0x530536);this['_tablePostFixingSubtypes']['includes'](_0x499a79)&&this['_tableSuggestions']['add'](_0x294321);}},{'priority':'low'});const _0x5c8830=(_0x4d8bed,_0xc30e39)=>{let _0x42722b=!0x1;const _0x3a5c91=_0xc30e39['createRangeOn'](_0x4d8bed),_0x2c8aa6=_0x4d8bed['findAncestor']('table'),_0x4af0db=_0x33bdc4['getCellLocation'](_0x4d8bed);for(const _0x52404d of this['_tableSuggestions']){const _0x37e139=_0x52404d['subType'],_0x50b168=_0x37e139['startsWith']('tablePaste'),_0x417f17=_0x37e139['substr'](_0x50b168?0xa:0x5),_0x3072a3=_0x417f17['toLowerCase'](),_0x3b971a=_0x3072a3['substr'](0x0,0x3)+'span',_0xd7f3c4='min'+_0x417f17,_0x5ec2b6='max'+_0x417f17;if(!_0x52404d['isInContent'])continue;if(_0x2c8aa6!=_0x52404d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x52404d['isIntersectingWithRange'](_0x3a5c91))continue;const _0x1a3ee0=_0x4d8bed['hasAttribute'](_0x3b971a)?_0x4d8bed['getAttribute'](_0x3b971a)-0x1:0x0,_0x1adf7e=this['_getSuggestionCoords'](_0x52404d),_0x198cac=_0x1adf7e[_0xd7f3c4],_0x1ccc92=_0x1adf7e[_0x5ec2b6];_0x198cac<=_0x4af0db[_0x3072a3]&&_0x4af0db[_0x3072a3]+_0x1a3ee0<=_0x1ccc92&&(_0x52404d['addRange'](_0x3a5c91),_0x42722b=!0x0);}return _0x42722b;};_0x25aaf0['model']['document']['registerPostFixer'](_0x54baad=>{let _0x152b76=!0x1;for(const _0x5dd586 of _0x25aaf0['model']['document']['differ']['getChanges']())if('insert'==_0x5dd586['type']){if('tableRow'==_0x5dd586['name']){for(const _0x25bd84 of _0x5dd586['position']['nodeAfter']['getChildren']())_0x152b76=_0x152b76||_0x5c8830(_0x25bd84,_0x54baad);}else'tableCell'==_0x5dd586['name']&&(_0x152b76=_0x152b76||_0x5c8830(_0x5dd586['position']['nodeAfter'],_0x54baad));}return _0x152b76;});}['_getSuggestionCoords'](_0x3821f2){return this['_getCoordsForCells'](_0x3821f2['getRanges']()['map'](_0x19bb13=>_0x19bb13['start']['nodeAfter']));}}function Ee(_0x4bc83c){return Array['from'](new Set(_0x4bc83c)['values']());}class St extends _0x2e9f32{static get['requires'](){return[jt];}['afterInit'](){const _0xd2d051=this['editor'],_0x1d8f91=_0xd2d051['model']['document']['selection'],_0x5296c2=_0xd2d051['locale'];if(!_0xd2d051['plugins']['has']('TableEditing'))return;const _0x4275f5=_0xd2d051['plugins']['get']('TrackChangesEditing'),_0x1ddd4b=_0xd2d051['plugins']['get']('TableUtils'),_0x3b684f=_0xd2d051['plugins']['get'](jt);_0x3b684f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4275f5['enableCommand']('mergeTableCells',()=>{const _0x13c050=_0x1ddd4b['getSelectionAffectedTableCells'](_0xd2d051['model']['document']['selection']);_0xd2d051['model']['change'](()=>{_0x4275f5['markMultiRangeBlockFormat'](_0x13c050,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xd2d051['commands']['get']('mergeTableCells')['on']('execute',(_0x5c5e2d,_0x4585c5)=>{_0xd2d051['commands']['get']('trackChanges')['value']&&(_0x4585c5['length']>0x0&&_0x4585c5[_0x4585c5['length']-0x1]&&_0x4585c5[_0x4585c5['length']-0x1]['forceDefaultExecution']||_0x4275f5['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c5e2d['stop']());},{'priority':'highest'});for(const _0x59321b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3307dd=_0xd2d051['commands']['get'](_0x59321b);_0x4275f5['enableCommand'](_0x59321b,()=>{const _0xad55df=_0xd2d051['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2a0630=>_0x2a0630['is']('element','tableCell')),_0x219ec2=_0x3307dd['value'];_0xd2d051['model']['change'](()=>{_0x4275f5['markMultiRangeBlockFormat']([_0xad55df,_0x219ec2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x46aea2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4f3494=_0xd2d051['commands']['get'](_0x46aea2);_0x4275f5['enableCommand'](_0x46aea2,()=>{const _0x43d724=_0x1ddd4b['getSelectionAffectedTableCells'](_0xd2d051['model']['document']['selection'])[0x0],_0x31468d=_0x43d724['findAncestor']('table'),{column:_0x32955e,row:_0x937d1d}=_0x1ddd4b['getCellLocation'](_0x43d724);let _0x398b2a=[];if('horizontally'==_0x4f3494['direction']){const _0x5a6db6=_0x1ddd4b['createTableWalker'](_0x31468d,{'startRow':_0x937d1d,'endRow':_0x937d1d,'includeAllSlots':!0x0});_0x398b2a=Array['from'](_0x5a6db6)['map'](_0x115e7c=>_0x115e7c['cell']);}else{const _0x48507e=_0x1ddd4b['createTableWalker'](_0x31468d,{'column':_0x32955e,'includeAllSlots':!0x0});_0x398b2a=Array['from'](_0x48507e)['map'](_0x4ae0f8=>_0x4ae0f8['cell']);}_0xd2d051['model']['change'](_0x1fec1d=>{_0x4275f5['markBlockFormat'](_0x1fec1d['createRangeOn'](_0x43d724),{'commandName':_0x46aea2,'commandParams':[]},_0x398b2a,_0x46aea2);});});}_0x4275f5['descriptionFactory']['registerDescriptionCallback'](_0x3be480=>{if('formatBlock'!=_0x3be480['type']&&'formatInline'!=_0x3be480['type'])return;const {data:_0x127925}=_0x3be480;return _0x127925&&'mergeTableCells'==_0x127925['commandName']?{'type':'format','content':o(_0x5296c2,'*Merge\x20cells*')}:void 0x0;}),_0x4275f5['descriptionFactory']['registerDescriptionCallback'](_0x528c02=>{if('formatBlock'!=_0x528c02['type']&&'formatInline'!=_0x528c02['type'])return;const {data:_0x3d8903}=_0x528c02;return _0x3d8903?'splitTableCellVertically'==_0x3d8903['commandName']?{'type':'format','content':o(_0x5296c2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3d8903['commandName']?{'type':'format','content':o(_0x5296c2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2452e8=_0x3b684f['_acceptFormatSuggestionCallbackFactory']();for(const _0x2fa6eb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4275f5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fa6eb,'accept',_0x2452e8);for(const _0x8d639b of['splitTableCellVertically','splitTableCellHorizontally'])_0x4275f5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8d639b,'accept',_0x2452e8);_0x4275f5['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x30e16d=>{_0xd2d051['model']['change'](_0x36b9a5=>{const _0x2ba013=Array['from'](_0x1d8f91['getRanges']())['map'](_0x23df85=>_0x5c6df6['fromRange'](_0x23df85));_0x36b9a5['setSelection'](_0x30e16d),_0xd2d051['commands']['get']('mergeTableCells')['refresh'](),_0xd2d051['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x334060=_0x2ba013['filter'](_0x46927f=>'$graveyard'!=_0x46927f['root']['rootName']);_0x334060['length']>0x0&&_0x36b9a5['setSelection'](_0x334060);for(const _0x45add9 of _0x2ba013)_0x45add9['detach']();});});for(const _0x4faffe of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3e6249=_0xd2d051['commands']['get'](_0x4faffe);_0x3e6249['on']('set:isEnabled',(_0xf3f0cf,_0x2fc856,_0x5b6b3b)=>{if(_0x5b6b3b){const _0x20c0ef=_0xd2d051['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x49de89=>_0x49de89['is']('element','tableCell'));this['_areMergableCells'](_0x3e6249['value'],_0x20c0ef)||(_0xf3f0cf['return']=!0x1,_0xf3f0cf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x24bcbc=this['editor']['commands']['get']('mergeTableCells'),_0x2b01a6=this['editor']['plugins']['get']('TableUtils');if(!_0x24bcbc['isEnabled'])return!0x1;const _0x1d787e=_0x2b01a6['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xd80410 of _0x1d787e)for(const _0x51780b of _0x1d787e)if(_0xd80410!=_0x51780b&&!this['_areMergableCells'](_0xd80410,_0x51780b))return!0x1;return!0x0;}['_areMergableCells'](_0x3d0825,_0x562572){const _0x2ff0e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47283d=this['editor']['model']['createRangeOn'](_0x3d0825),_0x26de2d=this['editor']['model']['createRangeOn'](_0x562572),_0x1e2457=new Set(),_0x328a36=new Set();for(const _0x399be7 of _0x2ff0e5['getSuggestions']())if(('insertion'==_0x399be7['type']||'deletion'==_0x399be7['type']||'mergeTableCells'==_0x399be7['subType'])&&_0x399be7['isInContent']){for(const _0x371faa of _0x399be7['getRanges']())_0x371faa['containsRange'](_0x47283d,!0x0)&&_0x1e2457['add'](_0x399be7['type']+':'+_0x399be7['author']['id']),_0x371faa['containsRange'](_0x26de2d,!0x0)&&_0x328a36['add'](_0x399be7['type']+':'+_0x399be7['author']['id']);}if(_0x1e2457['size']!=_0x328a36['size'])return!0x1;for(const _0x124bd4 of _0x1e2457)if(!_0x328a36['has'](_0x124bd4))return!0x1;return!0x0;}}class At extends _0x2e9f32{static get['requires'](){return[jt];}['afterInit'](){const _0x169eb9=this['editor'];if(!_0x169eb9['plugins']['has']('TableEditing'))return;const _0x1739f6=_0x169eb9['locale'],_0x4cc7b1=_0x169eb9['plugins']['get']('TrackChangesEditing');_0x4cc7b1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4cc7b1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4cc7b1['registerBlockAttribute']('headingRows'),_0x4cc7b1['registerBlockAttribute']('headingColumns'),_0x4cc7b1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1739f6,'FORMAT_HEADER_ROW')),_0x4cc7b1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1739f6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b818a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16adcb=this['editor']['plugins']['get']('TableUtils'),_0x4f550c=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x1cbafc({showActiveMarker:_0x2a1ebb=!0x0,setDataAttribute:_0x2af524=!0x0}={}){return(_0x4020ec,_0x3a92ca,_0x27955f)=>{const {type:_0x7e5703,id:_0x57028e}=_0x5b818a['_splitMarkerName'](_0x3a92ca['markerName']),_0x248d94=_0x5b818a['getSuggestion'](_0x57028e),_0x3fc67a=_0x248d94['data'];if('formatBlock'!=_0x248d94['type']||!_0x3fc67a||'setTableColumnHeader'!=_0x3fc67a['commandName'])return;if(_0x3a92ca['item'])return void _0x4020ec['stop']();if(!_0x27955f['consumable']['consume'](_0x3a92ca['markerRange'],_0x4020ec['name']))return;const _0x356be7=_0x3a92ca['markerRange']['start']['nodeAfter'],_0x5444ae=_0x3a92ca['markerRange']['end']['nodeBefore'],_0x599742=_0x356be7['parent']['parent'],{column:_0x23b866}=_0x16adcb['getCellLocation'](_0x356be7),{column:_0x19cce3}=_0x16adcb['getCellLocation'](_0x5444ae);for(let _0x2e0eaf=_0x23b866;_0x2e0eaf<=_0x19cce3;_0x2e0eaf++){const _0x543c72=_0x16adcb['createTableWalker'](_0x599742,{'column':_0x2e0eaf,'includeAllSlots':!0x1});for(const _0x826060 of _0x543c72){const _0x2d8163=_0x826060['cell'],_0x41c67a=_0x27955f['mapper']['toViewElement'](_0x2d8163);_0x27955f['writer']['addClass']('ck-suggestion-marker-'+_0x7e5703,_0x41c67a),_0x2af524&&_0x27955f['writer']['setAttribute']('data-suggestion',_0x57028e,_0x41c67a),_0x27955f['mapper']['bindElementToMarker'](_0x41c67a,_0x3a92ca['markerName']),_0x2a1ebb&&(_0x5b818a['activeMarkers']['includes'](_0x3a92ca['markerName'])?_0x27955f['writer']['addClass']('ck-suggestion-marker--active',_0x41c67a):_0x27955f['writer']['removeClass']('ck-suggestion-marker--active',_0x41c67a));}}};}_0x5b818a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4f550c),_0x5b818a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4f550c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1cbafc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35cf6d,_0x1cf3e8,_0x194ea4)=>{_0x194ea4['options']['showSuggestionHighlights']&&_0x1cbafc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x35cf6d,_0x1cf3e8,_0x194ea4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3582fa,_0x4b75c4,_0x5743b4)=>{const {type:_0xfa33bf,id:_0x55056a}=_0x5b818a['_splitMarkerName'](_0x4b75c4['markerName']),_0xbf5f68=_0x5b818a['getSuggestion'](_0x55056a),_0x420fa7=_0xbf5f68['data'];if('formatBlock'!=_0xbf5f68['type']||!_0x420fa7||'setTableColumnHeader'!=_0x420fa7['commandName'])return;const _0x4c6dc0=_0x5743b4['mapper']['markerNameToElements'](_0x4b75c4['markerName']);if(_0x4c6dc0){for(const _0x27f0d8 of _0x4c6dc0)_0x5743b4['writer']['removeClass']('ck-suggestion-marker-'+_0xfa33bf,_0x27f0d8),_0x5743b4['writer']['removeClass']('ck-suggestion-marker--active',_0x27f0d8),_0x5743b4['writer']['removeAttribute']('data-suggestion',_0x27f0d8),_0x5743b4['mapper']['unbindElementFromMarkerName'](_0x27f0d8,_0x4b75c4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd63002=this['editor'],_0x2c3045=_0xd63002['locale'];function _0x470c04(_0x22c8d0){return{'type':'format','content':o(_0x2c3045,'*Format:*\x20%0',_0x22c8d0)};}_0xd63002['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12514f=>{if('formatBlock'!=_0x12514f['type'])return;const {data:_0x49ad09}=_0x12514f;if(_0x49ad09){if('setTableRowHeader'==_0x49ad09['commandName']){const _0x3291f4=_0x49ad09['commandParams'][0x0]['forceValue'];return _0x470c04(o(_0x2c3045,_0x3291f4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x49ad09['commandName']){const _0x50b5e7=_0x49ad09['commandParams'][0x0]['forceValue'];return _0x470c04(o(_0x2c3045,_0x50b5e7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3c87e4=>[_0x3c87e4,null]));class It extends _0x2e9f32{static get['requires'](){return[jt];}['afterInit'](){const _0x31b136=this['editor'];if(!_0x31b136['plugins']['has']('TableClipboard'))return;const _0x38f4c1=_0x31b136['plugins']['get']('TrackChangesEditing'),_0x1e83c7=_0x31b136['plugins']['get']('TableUtils'),_0x5852c9=_0x31b136['plugins']['get'](jt),_0x451971=_0x31b136['plugins']['get']('TableClipboard');_0x5852c9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x31b136['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x31b136['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d611b=null;_0x31b136['model']['on']('insertContent',(_0x356fdf,_0x94bfef)=>{const [_0x2ea849,_0x262d74]=_0x94bfef,_0x17e51d=_0x94bfef[_0x94bfef['length']-0x1];_0x17e51d&&_0x17e51d['forceDefaultExecution']||_0x38f4c1['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x49170d,_0x42d615,_0x129a14,_0x38c142,_0x228648){if(_0x42d615&&!_0x42d615['is']('documentSelection'))return!0x1;const _0x1e8892=_0x228648['getTableIfOnlyTableInContent'](_0x49170d,_0x129a14);if(!_0x1e8892||!he(_0x1e8892,void 0x0,_0x38c142))return!0x1;const _0x27793d=_0x38c142['getSelectionAffectedTableCells'](_0x129a14['document']['selection']);if(!_0x27793d['length'])return!0x1;const _0x4b7d84=_0x27793d[0x0]['findAncestor']('table'),_0x5c0b8a=_0x38c142['getRowIndexes'](_0x27793d),_0x1fbc29=_0x38c142['getColumnIndexes'](_0x27793d),_0x5238fc={'startRow':_0x5c0b8a['first'],'endRow':_0x5c0b8a['last'],'startColumn':_0x1fbc29['first'],'endColumn':_0x1fbc29['last']};return 0x1==_0x27793d['length']&&(_0x5238fc['endRow']+=_0x38c142['getRows'](_0x1e8892)-0x1,_0x5238fc['endColumn']+=_0x38c142['getColumns'](_0x1e8892)-0x1),he(_0x4b7d84,_0x5238fc,_0x38c142);}(_0x2ea849,_0x262d74,_0x31b136['model'],_0x1e83c7,_0x451971)&&(_0x356fdf['stop'](),_0x3d611b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x31b136['model']['change'](()=>{_0x31b136['model']['insertContent'](_0x94bfef[0x0],_0x94bfef[0x1],_0x94bfef[0x2],{'forceDefaultExecution':!0x0});const _0x4a1281=_0x31b5c7(),{rowInsertionRanges:_0x470a1b,columnInsertionRanges:_0x9cb693,insertionRanges:_0x1449b4,deletionRanges:_0x24aaa2,cells:_0x4b27bf}=_0x3d611b;_0x470a1b['length']&&_0x38f4c1['markMultiRangeInsertion'](_0x470a1b,'tablePasteRow',{'tablePasteChainId':_0x4a1281}),_0x9cb693['length']&&_0x38f4c1['markMultiRangeInsertion'](_0x9cb693,'tablePasteColumn',{'tablePasteChainId':_0x4a1281}),_0x1449b4['length']&&(_0x38f4c1['markMultiRangeInsertion'](_0x1449b4,'tablePaste',{'tablePasteChainId':_0x4a1281,'skipNestingCheck':!0x0}),_0x1449b4['forEach'](_0x2ecb67=>_0x2ecb67['detach']?.())),_0x24aaa2['length']&&(_0x38f4c1['markMultiRangeDeletion'](_0x24aaa2,'tablePaste',{'tablePasteChainId':_0x4a1281,'skipNestingCheck':!0x0}),_0x24aaa2['forEach'](_0x43a25b=>_0x43a25b['detach']?.()));const _0x4b0ae5=_0x38f4c1['markMultiRangeBlockFormat'](_0x4b27bf['map'](({element:_0x1b3d6c})=>_0x1b3d6c),{'formatGroupId':_0x31b5c7()},[],'tablePasteCell',{'tablePasteChainId':_0x4a1281});if(_0x4b0ae5){const _0x57b505=_0x4b0ae5['getMarkers'](),_0x504681=[];for(const {element:_0x54318f,attributes:_0x3e9fb2}of _0x4b27bf){if(!_0x3e9fb2)continue;const _0x207a59=_0x31b136['model']['createRangeOn'](_0x54318f),_0x5378db=_0x57b505['find'](_0x508efb=>_0x508efb['getRange']()['isEqual'](_0x207a59));_0x5378db&&_0x504681['push']([_0x5378db['name'],_0x3e9fb2]);}_0x504681['length']&&_0x4b0ae5['setAttribute']('markerAttributes',Object['fromEntries'](_0x504681));}_0x3d611b=null;}));},{'priority':_0x1c0189['high']+0xa}),_0x31b136['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x32bbe4,_0x343cb3)=>{const [_0x10553b,_0x573aaa,,_0x3d8203]=_0x343cb3;if(!_0x3d611b)return;_0x32bbe4['stop']();const _0x39e67d=_0x10553b['cell'],_0x1d0a46=_0x573aaa,_0x54f88d=Pe(_0x39e67d),_0x423bb2=Pe(_0x1d0a46);_0x32bbe4['return']=_0x39e67d;let _0x5146ce=null,_0x2e0eb5=null;if(_0x423bb2||_0x54f88d){if(_0x54f88d&&!_0x423bb2){_0x3d8203['remove'](_0x39e67d['getChild'](0x0));for(const _0x59299f of Array['from'](_0x1d0a46['getChildren']()))_0x3d8203['insert'](_0x59299f,_0x39e67d,'end');const _0x9a421b=_0x3d611b['rowInsertionIndexes']['includes'](_0x10553b['row']),_0x9df565=_0x3d611b['columnInsertionIndexes']['includes'](_0x10553b['column']);_0x9a421b||_0x9df565||(_0x5146ce=_0x5c6df6['fromRange'](_0x3d8203['createRangeIn'](_0x39e67d)));}else _0x423bb2&&!_0x54f88d&&(_0x2e0eb5=_0x3d8203['createRangeIn'](_0x39e67d));}else{const _0x929681=_0x3d8203['createElement']('tableCellSuggestion'),_0x5baadf=_0x3d8203['createElement']('tableCellSuggestion');_0x3d8203['wrap'](_0x3d8203['createRangeIn'](_0x39e67d),_0x5baadf),_0x3d8203['insert'](_0x929681,_0x39e67d,0x0);for(const _0xb35842 of Array['from'](_0x1d0a46['getChildren']()))_0x3d8203['insert'](_0xb35842,_0x929681,'end');_0x5146ce=_0x5c6df6['fromRange'](_0x3d8203['createRangeOn'](_0x929681)),_0x2e0eb5=_0x5c6df6['fromRange'](_0x3d8203['createRangeOn'](_0x5baadf));}const _0x3bc2ff=Array['from'](_0x1d0a46['getAttributes']())['filter'](([_0x3e098b])=>ge['includes'](_0x3e098b));_0x3d611b['cells']['push']({'element':_0x39e67d,'attributes':_0x3bc2ff['length']?Object['fromEntries'](_0x3bc2ff):null}),_0x5146ce&&_0x3d611b['insertionRanges']['push'](_0x5146ce),_0x2e0eb5&&_0x3d611b['deletionRanges']['push'](_0x2e0eb5);},{'priority':'high'}),_0x1e83c7['on']('insertColumns',(_0x4ef3c2,_0xcaf065)=>{const [_0x5af2c0,_0x14b6f0={}]=_0xcaf065;if(!_0x3d611b)return;const _0x3e50b7=_0x14b6f0['at']||0x0,_0x1c0108=_0x14b6f0['columns']||0x1;_0x3d611b['columnInsertionIndexes']=new Array(_0x1c0108)['fill'](_0x3e50b7)['map']((_0x8fc5a3,_0x3c2be8)=>_0x8fc5a3+_0x3c2be8);for(const {cell:_0xf4739f}of _0x1e83c7['createTableWalker'](_0x5af2c0,{'startColumn':_0x3e50b7,'endColumn':_0x3e50b7+_0x1c0108-0x1}))_0x3d611b['columnInsertionRanges']['push'](_0x31b136['model']['createRangeOn'](_0xf4739f));},{'priority':'low'}),_0x1e83c7['on']('insertRows',(_0x31f72f,_0x26c832)=>{const [_0x3e1ba0,_0x2e011f={}]=_0x26c832;if(!_0x3d611b)return;const _0x3dfc05=_0x2e011f['at']||0x0,_0x5a636d=_0x2e011f['rows']||0x1;_0x3d611b['rowInsertionIndexes']=new Array(_0x5a636d)['fill'](_0x3dfc05)['map']((_0x3ce0bd,_0x1593ac)=>_0x3ce0bd+_0x1593ac);for(const {cell:_0x5c7e78}of _0x1e83c7['createTableWalker'](_0x3e1ba0,{'startRow':_0x3dfc05,'endRow':_0x3dfc05+_0x5a636d-0x1}))_0x3d611b['rowInsertionRanges']['push'](_0x31b136['model']['createRangeOn'](_0x5c7e78));},{'priority':'low'}),_0x38f4c1['descriptionFactory']['registerDescriptionCallback'](_0x43a521=>{if(_0x43a521['subType']&&_0x43a521['subType']['startsWith']('tablePaste'))return _0x43a521['previous']?{}:{'type':'insertion','content':o(_0x31b136['locale'],'*Replace\x20table\x20cells*')};});const _0x1e3ca9=()=>!0x1;for(const _0xcf82c6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x38f4c1['_suggestionFactory']['registerCustomCallback']('insertion',_0xcf82c6,'join',_0x1e3ca9),_0x38f4c1['_suggestionFactory']['registerCustomCallback']('deletion',_0xcf82c6,'join',_0x1e3ca9),_0x38f4c1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcf82c6,'join',_0x1e3ca9);_0x38f4c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1e3ca9),_0x38f4c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x551ca4,_0x37b1ad,_0x2638b2)=>{const _0x443489=_0x551ca4['map'](_0x1543d2=>_0x1543d2['getContainedElement']())['filter'](_0x4f9883=>_0x4f9883),_0x13f619=new Map(_0x443489['map'](_0x494a6c=>[_0x494a6c,null]));if(_0x3d611b){for(const {element:_0x37f1f7,attributes:_0x4e7294}of _0x3d611b['cells'])_0x4e7294&&_0x13f619['set'](_0x37f1f7,_0x4e7294);}else{if(_0x2638b2&&_0x2638b2['markerAttributes'])for(const [_0x1172a9,_0x3b0c54]of Object['entries'](_0x2638b2['markerAttributes'])){const _0x467501=_0x31b136['model']['markers']['get'](_0x1172a9),_0x3288a5=_0x467501?_0x467501['getRange']()['getContainedElement']():null;_0x3288a5&&_0x13f619['set'](_0x3288a5,_0x3b0c54);}}_0x31b136['model']['change'](_0x2d3ae7=>{for(const [_0x42914e,_0x3a9c10]of _0x13f619)_0x2d3ae7['setAttributes']({...Ce,..._0x3a9c10},_0x42914e);});});const _0x28bc05=(_0x3f2cb1,_0x100982)=>{_0x38f4c1['_suggestionFactory']['registerCustomCallback'](_0x3f2cb1,'tablePaste',_0x100982,(_0x565f69,_0x317672,_0x3a48b9)=>{_0x31b136['model']['change'](_0x354047=>{const _0x544858=[];for(const _0x237d09 of _0x565f69){const _0x55a324=_0x237d09['start']['nodeAfter'];_0x55a324['is']('element','tableCellSuggestion')&&_0x544858['push'](_0x55a324);}_0x38f4c1['_suggestionFactory']['getSuggestionCallback'](_0x3f2cb1,null,_0x100982)(_0x565f69,_0x317672,_0x3a48b9);for(const _0x51f849 of _0x544858)'$graveyard'!=_0x51f849['root']['rootName']&&_0x354047['unwrap'](_0x51f849);});});};_0x28bc05('insertion','accept'),_0x28bc05('insertion','discard'),_0x28bc05('deletion','accept'),_0x28bc05('deletion','discard'),_0x38f4c1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x58c29a=>{const _0x768bcb=_0x58c29a['map'](_0x5ca420=>_0x5ca420['getContainedElement']()),_0x259350=_0x768bcb[0x0]['findAncestor']('table'),{minRow:_0x28206c,maxRow:_0x4dd508}=_0x5852c9['_getCoordsForCells'](_0x768bcb);_0x1e83c7['removeRows'](_0x259350,{'at':_0x28206c,'rows':_0x4dd508-_0x28206c+0x1});}),_0x38f4c1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x11e2a1=>{const _0xab8ed8=_0x11e2a1['map'](_0x423d23=>_0x423d23['getContainedElement']()),_0x2f584f=_0xab8ed8[0x0]['findAncestor']('table'),{minColumn:_0x2c3eb7,maxColumn:_0x5b4ade}=_0x5852c9['_getCoordsForCells'](_0xab8ed8);_0x1e83c7['removeColumns'](_0x2f584f,{'at':_0x2c3eb7,'columns':_0x5b4ade-_0x2c3eb7+0x1});});const _0x35df45=(_0x1b3b01,_0x382104)=>{if(!_0x382104['subType']||!_0x382104['subType']['startsWith']('tablePaste'))return;const _0xd3b82d=_0x382104['attributes']['tablePasteChainId'],_0x4ca924=_0x38f4c1['getSuggestions']()['filter'](_0x11a428=>_0x11a428['isInContent']&&_0x11a428['attributes']&&_0x11a428['attributes']['tablePasteChainId']==_0xd3b82d);_0x4ca924['length']&&_0x382104['getAllAdjacentSuggestions']()['length']!=_0x4ca924['length']&&_0x4ca924['reduce']((_0x2c1ea8,_0x5150f0)=>(_0x2c1ea8['next']=_0x5150f0,_0x5150f0['previous']=_0x2c1ea8,_0x5150f0));};function _0x360cf3(_0x8be634,_0x3d04cc=!0x0){const {id:_0x4d604a}=_0x38f4c1['_splitMarkerName'](_0x8be634['markerName']),_0x10977a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3a333c=_0x38f4c1['activeMarkers']['includes'](_0x8be634['markerName']);return _0x3a333c&&_0x10977a['push']('ck-suggestion-marker--active'),{'classes':_0x10977a,'attributes':{'data-suggestion':_0x4d604a},'priority':_0x3a333c&&_0x3d04cc?0xbc2:0xbb8};}_0x38f4c1['on']('suggestionLoaded',_0x35df45,{'priority':'high'}),_0x38f4c1['on']('suggestionUnloaded',_0x35df45,{'priority':'high'}),_0x31b136['model']['document']['registerPostFixer'](()=>{let _0xe6db0e=!0x1;const _0x40ef7d=Array['from'](_0x31b136['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a0a17,data:_0x40d114}of _0x40ef7d){const {group:_0x20d617,type:_0x52fdf4,id:_0x35f2d5}=_0x38f4c1['_splitMarkerName'](_0x2a0a17);if('suggestion'!=_0x20d617||'deletion'!=_0x52fdf4||_0x40d114['oldRange'])continue;if(!_0x38f4c1['hasSuggestion'](_0x35f2d5))continue;const _0x54ed97=_0x38f4c1['getSuggestion'](_0x35f2d5)['getRanges'](),_0x2ea9d1=_0x31b136['plugins']['get']('Users')['me'];for(const _0x31009c of _0x38f4c1['getSuggestions']()){if(!_0x31009c['isInContent']||_0x31009c['author']!=_0x2ea9d1)continue;if('formatBlock'!=_0x31009c['type']||'tablePasteCell'!=_0x31009c['subType'])continue;if(_0x31009c['getRanges']()['every'](_0x497840=>_0x54ed97['some'](_0x14857c=>_0x14857c['containsRange'](_0x497840,!0x0)))){for(const _0x38bf10 of _0x31009c['getAllAdjacentSuggestions']())_0x38bf10['isInContent']&&(_0x38bf10['discard'](),_0xe6db0e=!0x0);}}}return _0xe6db0e;}),_0x31b136['model']['document']['registerPostFixer'](_0x405959=>{const _0x54c7e4=_0x31b136['commands']['get']('redo');if(!_0x54c7e4||!_0x54c7e4['_createdBatches']['has'](_0x405959['batch']))return!0x1;let _0x2f6e4d=!0x1;const _0x42df01=_0x31b136['plugins']['get']('Users')['me'],_0x56b361=_0x31b136['model']['document']['differ']['getChanges'](),_0x31bb2d=Array['from'](_0x31b136['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4223c5,data:_0x155803})=>{const {group:_0x5ad693,subType:_0x340a65,authorId:_0x5b508c}=_0x38f4c1['_splitMarkerName'](_0x4223c5);return'suggestion'==_0x5ad693&&'tablePaste'==_0x340a65&&_0x5b508c==_0x42df01['id']&&!_0x155803['oldRange'];});for(const _0x28cca0 of _0x56b361){if('insert'!=_0x28cca0['type']||'tableCellSuggestion'!=_0x28cca0['name']||0x1!=_0x28cca0['length'])continue;const _0x2d4615=_0x405959['createRange'](_0x28cca0['position'],_0x28cca0['position']['getShiftedBy'](0x1));if(!_0x31bb2d['find'](({data:_0x1ce487})=>_0x1ce487['newRange']['isEqual'](_0x2d4615))){for(const {name:_0x31adf9,data:_0x161711}of _0x31bb2d)if(_0x2d4615['containsRange'](_0x161711['newRange'])){_0x405959['updateMarker'](_0x31adf9,{'range':_0x2d4615}),_0x2f6e4d=!0x0;break;}}}return _0x2f6e4d;}),_0x31b136['model']['document']['registerPostFixer'](_0x83829=>{let _0x4efe19=!0x1;const _0x30541f=_0x31b136['plugins']['get']('Users')['me'],_0x47e944=_0x38f4c1['getSuggestions']()['filter'](_0x2abb5f=>_0x2abb5f['isInContent']&&_0x2abb5f['author']==_0x30541f),_0x501375=new Set(),_0x218377=new Set();for(const _0x580037 of _0x47e944)if('tablePaste'==_0x580037['subType'])for(const _0x1b8ab7 of _0x580037['getMarkers']()){const _0x43dde3=_0x1b8ab7['getRange']()['getContainedElement']();if(_0x43dde3){if(_0x43dde3['is']('element','tableCellSuggestion')&&Pe(_0x43dde3)){_0x580037['removeMarker'](_0x1b8ab7['name']),_0x501375['add'](_0x43dde3),_0x4efe19=!0x0;const _0x49af42=_0x43dde3['nextSibling'],_0x51d9f4=_0x43dde3['previousSibling'],_0x46a3fe=_0x49af42&&_0x49af42['is']('element','tableCellSuggestion'),_0x39e49d=_0x51d9f4&&_0x51d9f4['is']('element','tableCellSuggestion');_0x46a3fe&&!_0x501375['has'](_0x49af42)&&_0x218377['add'](_0x49af42),_0x39e49d&&!_0x501375['has'](_0x51d9f4)&&_0x218377['add'](_0x51d9f4);}else _0x43dde3['is']('element','paragraph')&&_0x43dde3['isEmpty']&&(_0x580037['removeMarker'](_0x1b8ab7['name']),_0x4efe19=!0x0);}}else{if('tablePasteCell'==_0x580037['subType']){if(!_0x580037['attributes']||!_0x580037['attributes']['tablePasteChainId'])continue;const _0x15293c=_0x580037['attributes']['markerAttributes'];if(_0x15293c&&Object['keys'](_0x15293c)['length'])continue;const _0x4ad1d5=_0x580037['attributes']['tablePasteChainId'];let _0x5900d0=!0x0,_0x3e256c=!0x0;for(const _0x550896 of _0x47e944)if(_0x550896['subType']&&_0x550896['subType']['startsWith']('tablePaste')){if(!_0x550896['attributes']['tablePasteChainId']){_0x3e256c=!0x1;break;}if(_0x550896['id']!=_0x580037['id']&&_0x550896['attributes']['tablePasteChainId']==_0x4ad1d5){_0x5900d0=!0x1;break;}}_0x3e256c&&_0x5900d0&&(_0x580037['removeMarkers'](),_0x4efe19=!0x0);}}for(const _0x48a6b3 of _0x501375)_0x83829['remove'](_0x48a6b3);for(const _0x556dc4 of _0x218377)_0x83829['unwrap'](_0x556dc4);return _0x4efe19;}),_0x31b136['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b6991,_0x4543f6)=>_0x360cf3(_0x5b6991),'converterPriority':'high'}),_0x31b136['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4cbd34,_0x46b062)=>_0x46b062['options']['showSuggestionHighlights']?_0x360cf3(_0x4cbd34,!0x1):null,'converterPriority':'high'});const _0x271fed=_0x31b136['editing']['view'];this['listenTo'](_0x271fed['document'],'clipboardOutput',(_0x23e17b,_0x51a783)=>{const _0x582777=[];for(const _0x61e14c of _0x271fed['createRangeIn'](_0x51a783['content'])['getItems']())_0x61e14c['is']('element','suggestion-td')&&_0x582777['push'](_0x61e14c);_0x271fed['change'](_0xfb1294=>{for(const _0x26cab4 of _0x582777)_0xfb1294['move'](_0xfb1294['createRangeIn'](_0x26cab4),_0xfb1294['createPositionBefore'](_0x26cab4)),_0xfb1294['remove'](_0x26cab4);});});}}function Pe(_0x239c53){if(_0x239c53['isEmpty'])return!0x0;const _0x2d746e=_0x239c53['getChild'](0x0);return _0x2d746e['is']('element','paragraph')&&_0x2d746e['isEmpty'];}function he(_0x381bbd,_0x57277b={},_0x1e596f){for(const {isAnchor:_0x3dfa85,cellHeight:_0x5a3b49,cellWidth:_0x316f1d}of _0x1e596f['createTableWalker'](_0x381bbd,{'includeAllSlots':!0x0,..._0x57277b}))if(!_0x3dfa85||0x1!=_0x5a3b49||0x1!=_0x316f1d)return!0x1;return!0x0;}class vt extends _0x2e9f32{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x558135=this['editor']['plugins']['get']('TrackChangesEditing');_0x558135['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x558135['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x558135['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x558135['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x558135['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x558135['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4058e3,_0x4c4688){const _0x43c6af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ac16e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x19718d=_0x4c4688['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x33dd58=_0x1ac16e['getColumnGroupElement'](_0x19718d);let _0xdf85c6=_0x33dd58?_0x1ac16e['getTableColumnsWidths'](_0x33dd58):null,_0x5dc9e5=_0x19718d['getAttribute']('tableWidth')||null;const _0x25dbcd=_0x4c4688['tableWidth']||_0x5dc9e5,_0x266a9e=_0x4c4688['columnWidths']||_0xdf85c6,_0x2dbeac=this['editor']['plugins']['get']('Users')['me'];for(const _0x542b35 of _0x43c6af['getSuggestions']()){const _0x4625be=_0x542b35['getContainedElement']();if('resizeTable'===_0x542b35['subType']&&_0x4625be===_0x19718d){_0x542b35['author']!==_0x2dbeac&&_0x542b35['discard']();const _0x3f4502=_0x542b35['data']['commandParams'];_0x5dc9e5=_0x3f4502[0x0]['tableWidth'],_0xdf85c6=_0x3f4502[0x0]['columnWidths'];break;}}_0x4058e3({'table':_0x19718d,'tableWidth':_0x25dbcd,'columnWidths':_0x266a9e}),_0x43c6af['markBlockFormat'](_0x19718d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5dc9e5,'columnWidths':_0xdf85c6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1280d8){if('formatBlock'!=_0x1280d8['type']&&'formatInline'!=_0x1280d8['type'])return;const {data:_0x3540a4}=_0x1280d8;if(_0x3540a4&&'resizeTable'===_0x3540a4['formatGroupId']){const _0x191cd9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x191cd9)};}}}class Ct extends _0x2e9f32{['afterInit'](){const _0x4c1fb2=this['editor'];_0x4c1fb2['plugins']['has']('Template')&&_0x4c1fb2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x2e9f32{['afterInit'](){const _0x2d961b=this['editor'];if(!_0x2d961b['commands']['get']('insertTableOfContents'))return;_0x2d961b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4bdc64=_0x2d961b['plugins']['get']('TrackChangesEditing'),_0x5304ee=_0x2d961b['locale'];_0x4bdc64['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3f784b=>o(_0x5304ee,'ELEMENT_TABLE_OF_CONTENTS',_0x3f784b));}}class Dt extends _0x2e9f32{['afterInit'](){const _0x220b0f=this['editor'];if(!_0x220b0f['plugins']['has']('Title'))return;const _0x4ebee4=_0x220b0f['plugins']['get']('TrackChangesEditing');_0x4ebee4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x220b0f['locale'],'ELEMENT_TITLE')),_0x220b0f['model']['document']['registerPostFixer'](_0x5df65c=>{let _0x47e238=!0x1;const _0x11855f=Array['from'](_0x220b0f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fe431,data:_0x3c57ec}of _0x11855f){const {group:_0x48d4d7}=_0x4ebee4['_splitMarkerName'](_0x2fe431);if('suggestion'!==_0x48d4d7||!_0x3c57ec['newRange'])continue;const _0x2db231=_0x3c57ec['newRange'],_0x3c2a17=_0x2db231['end']['nodeBefore'];if(!_0x3c2a17||!_0x3c2a17['is']('element','title-content'))continue;if(!_0x2db231['start']['isTouching'](_0x2db231['end']))continue;const _0xfe786d=_0x220b0f['model']['schema']['getNearestSelectionRange'](_0x2db231['end'],'forward');if(_0xfe786d&&_0xfe786d['isCollapsed']){const _0x2b5545=_0x5df65c['createRange'](_0x2db231['start'],_0xfe786d['start']);_0x2b5545['isEqual'](_0x2db231)||(_0x5df65c['updateMarker'](_0x2fe431,{'range':_0x2b5545}),_0x47e238=!0x0);}_0x47e238||(_0x5df65c['removeMarker'](_0x2fe431),_0x47e238=!0x0);}return _0x47e238;});}}class Nt extends _0x2e9f32{['afterInit'](){const _0x5a8071=this['editor'],_0x1ef5b7=_0x5a8071['plugins']['get']('TrackChangesEditing');_0x5a8071['plugins']['has']('UndoEditing')&&(_0x1ef5b7['enableCommand']('undo'),_0x1ef5b7['enableCommand']('redo'));}}class Mt extends _0x2e9f32{static get['requires'](){return[jt];}['afterInit'](){const _0x57c816=this['editor'];if(!_0x57c816['plugins']['has']('TableCaptionEditing'))return;_0x57c816['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x2e9f32{['tableProperties'];['tableCellProperties'];constructor(_0x40b6f8){super(_0x40b6f8),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';}['afterInit'](){const _0xc1ca35=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x491971 of this['tableProperties'])_0xc1ca35['enableCommand'](_0x491971,(_0x265258,_0x15eb58)=>{const _0x376297=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x491971,[_0x376297],this['tableProperties'],'tableProperties',_0x265258,_0x15eb58);});_0xc1ca35['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xc1ca35['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc1ca35['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x154108,_0x5735cd)=>this['handleDiscardAction'](this['tableProperties'],_0x154108,_0x5735cd)),_0xc1ca35['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x42ff9f of this['tableCellProperties'])_0xc1ca35['enableCommand'](_0x42ff9f,(_0x12a437,_0x3d58a9)=>{const _0x77c45e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x42ff9f,_0x77c45e,this['tableCellProperties'],'tableCellProperties',_0x12a437,_0x3d58a9);});_0xc1ca35['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xc1ca35['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc1ca35['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1da5b8,_0x2a4237)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1da5b8,_0x2a4237)),_0xc1ca35['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xc1ca35['descriptionFactory']['registerDescriptionCallback'](_0x59017a=>this['handleSuggestionDescription'](_0x59017a));}['_handlePropertyChange'](_0x187d84,_0x3ce8da,_0x2e4389,_0x544794,_0x29bc53,_0x2f8fb2){const _0x439aa2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2f8fb2['batch'],()=>{for(const _0x7a990b of _0x3ce8da){if(this['_getSuggestion'](_0x7a990b,_0x544794))_0x29bc53(_0x2f8fb2);else{const _0x10d869={};for(const _0x22fb2d of _0x2e4389){const _0x51d43f=_0x7a990b['getAttribute'](_0x22fb2d);void 0x0!==_0x51d43f&&(_0x10d869[_0x22fb2d]=_0x51d43f);}_0x29bc53(_0x2f8fb2),_0x439aa2['markBlockFormat'](_0x7a990b,{'commandParams':[_0x10d869]},[],_0x544794);}}});}['handleDiscardAction'](_0x5b94f1,_0x237599,_0x533de3){const _0x1c8494=_0x237599[0x0]['start']['nodeAfter'],_0x4e483b=_0x533de3['commandParams'][0x0];this['editor']['model']['change'](_0x3ea66c=>{for(const _0x185edd of _0x5b94f1)void 0x0!==_0x4e483b[_0x185edd]?_0x3ea66c['setAttribute'](_0x185edd,_0x4e483b[_0x185edd],_0x1c8494):_0x3ea66c['removeAttribute'](_0x185edd,_0x1c8494);});}['handleSuggestionDescription'](_0x3acc4a){if(_0x3acc4a['data'])switch(_0x3acc4a['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'](_0x1c4874,_0x524dd1){const _0x4bff94=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5b1600 of _0x4bff94['getSuggestions']({'skipNotAttached':!0x0})){const _0x4c79b8=_0x5b1600['getContainedElement']();if(_0x5b1600['subType']===_0x524dd1&&_0x4c79b8===_0x1c4874)return _0x5b1600;}return null;}}const m='$elementName';class p extends _0x2e9f32{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x9070af,_0x1cbf46,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x4cd163){function _0xb13901(_0x4c00a7){return _0x4c00a7['map'](_0x10aaee=>String['fromCharCode'](_0x10aaee))['join']('');}super(_0x4cd163),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x578315,_0x1fa52b,_0x472090,_0x27b8d7)=>{this['_model']['change'](()=>{for(const _0x2d3574 of[..._0x27b8d7,..._0x472090])this['_model']['markers']['has'](_0x2d3574)&&_0x4cd163['editing']['reconvertMarker'](_0x2d3574);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4cd163['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(),_0x4cd163['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4cd163['config']['get']('trackChanges.trackFormatChanges'),_0x4cd163['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4cd163['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x4cd163,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xb13901([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xb13901([0x34,0x30,0x34,0x38,0x31,0x34,0x31,0x38]);}['init'](){const _0x51c6ba=this['editor'],_0x7670b4=(_0x64dac0,_0x143ae0)=>{if('attribute'!=_0x64dac0)return'ck-suggestion-marker-'+_0x64dac0;const _0x43af67=_0x143ae0['split']('|')[0x0];return this['_isBlockAttribute'](_0x43af67)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x51c6ba['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x311ac3=>{const {id:_0x5e85f3,type:_0x51b435,subType:_0x3fc6b1}=this['_splitMarkerName'](_0x311ac3['markerName']),_0x5ca421=['ck-suggestion-marker',_0x7670b4(_0x51b435,_0x3fc6b1)];let _0xc49607=0xbb8;return this['activeMarkers']['includes'](_0x311ac3['markerName'])&&(_0x5ca421['push']('ck-suggestion-marker--active'),_0xc49607=0xbc2),'deletion'==_0x51b435&&(_0xc49607+=0x5),{'classes':_0x5ca421,'attributes':{'data-suggestion':_0x5e85f3},'priority':_0xc49607};}}),_0x51c6ba['conversion']['for']('dataDowncast')['add'](_0xa664b2=>{_0xa664b2['on']('addMarker:suggestion',(_0x1e6f59,_0x3d6594,_0x48ac6b)=>{if(!_0x48ac6b['options']['showSuggestionHighlights'])return;const _0x214f5d=_0x3d6594['item'];if(!_0x214f5d)return;const _0xdf4a9c=_0x48ac6b['mapper']['toViewElement'](_0x214f5d);_0x51c6ba['model']['schema']['isObject'](_0x214f5d)&&_0xdf4a9c&&!_0xdf4a9c['getCustomProperty']('widget')&&_0xdf4a9c['is']('containerElement')&&_0x226e8c(_0xdf4a9c,_0x48ac6b['writer']);},{'priority':'high'});}),_0x51c6ba['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2bec78,_0x1b6bfa)=>{if(!_0x1b6bfa['options']['showSuggestionHighlights'])return null;const {type:_0x54d41b,subType:_0x50cd8a}=this['_splitMarkerName'](_0x2bec78['markerName']);return{'classes':['ck-suggestion-marker',_0x7670b4(_0x54d41b,_0x50cd8a)],'priority':0xbb8};}});const _0x2f1330=({showActiveMarkers:_0x54b9c0=!0x0,isAttributeSuggestion:_0x327a65=!0x1}={})=>(_0x309bc0,_0x29c1a6,_0x4255ee)=>{if(!_0x29c1a6['item'])return;const {id:_0x4906c5}=this['_splitMarkerName'](_0x29c1a6['markerName']);if(_0x327a65){const _0x42d7aa=this['_suggestions']['get'](_0x4906c5),_0x11db73=this['_getAttributeKey'](_0x42d7aa);if(!this['_isBlockAttribute'](_0x11db73))return;}if(_0x29c1a6['item']['is']('selection'))return void _0x4255ee['consumable']['consume'](_0x29c1a6['item'],_0x309bc0['name']);const _0x496e28=_0x4255ee['mapper']['toViewElement'](_0x29c1a6['item']);if(_0x29c1a6['item']['is']('element')&&_0x51c6ba['model']['schema']['isBlock'](_0x29c1a6['item'])&&!_0x496e28['getCustomProperty']('addHighlight')){_0x4255ee['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x496e28),_0x4255ee['writer']['setAttribute']('data-suggestion',_0x4906c5,_0x496e28),_0x4255ee['mapper']['bindElementToMarker'](_0x496e28,_0x29c1a6['markerName']),_0x54b9c0&&(this['activeMarkers']['includes'](_0x29c1a6['markerName'])?_0x4255ee['writer']['addClass']('ck-suggestion-marker--active',_0x496e28):_0x4255ee['writer']['removeClass']('ck-suggestion-marker--active',_0x496e28));for(const _0x3e82be of _0x51c6ba['model']['createRangeIn'](_0x29c1a6['item'])['getItems']())_0x4255ee['consumable']['consume'](_0x3e82be,_0x309bc0['name']);_0x4255ee['consumable']['consume'](_0x29c1a6['item'],_0x309bc0['name']);}};_0x51c6ba['conversion']['for']('dataDowncast')['add'](_0x191d39=>{_0x191d39['on']('addMarker:suggestion:formatBlock',(_0x59e17e,_0x36128e,_0x455641)=>{_0x455641['options']['showSuggestionHighlights']&&_0x2f1330({'showActiveMarkers':!0x1})(_0x59e17e,_0x36128e,_0x455641);},{'priority':'highest'});}),_0x51c6ba['conversion']['for']('dataDowncast')['add'](_0x1455f1=>{_0x1455f1['on']('addMarker:suggestion:attribute',(_0x39aa65,_0x2bbbba,_0x1be92d)=>{_0x1be92d['options']['showSuggestionHighlights']&&_0x2f1330({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x39aa65,_0x2bbbba,_0x1be92d);},{'priority':'highest'});}),_0x51c6ba['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xfccf98,_0x5b51bd)=>_0x5b51bd['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xfccf98['substr'](0xb)}}),_0x51c6ba['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x399323,{writer:_0x179733})=>{let _0x544d78='suggestion:'+_0x399323['getAttribute']('suggestion-type')+':'+_0x399323['getAttribute']('id');return _0x399323['getAttribute']('marker-count')&&(_0x544d78+=':'+_0x399323['getAttribute']('marker-count')),_0x179733['createElement']('$marker',{'data-name':_0x544d78});}}),_0x51c6ba['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x51c6ba['conversion']['for']('editingDowncast')['add'](_0x30454d=>{_0x30454d['on']('addMarker:suggestion:formatBlock',_0x2f1330(),{'priority':'high'});}),_0x51c6ba['conversion']['for']('editingDowncast')['add'](_0x50a70b=>{_0x50a70b['on']('addMarker:suggestion:attribute',_0x2f1330({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x51c6ba['conversion']['for']('editingDowncast')['add'](_0x541cc3=>{_0x541cc3['on']('removeMarker:suggestion:formatBlock',(_0x414765,_0x5b3029,_0x23ed51)=>{const _0x180b8f=_0x23ed51['mapper']['markerNameToElements'](_0x5b3029['markerName']);if(_0x180b8f){for(const _0x368d1f of _0x180b8f)_0x368d1f['getCustomProperty']('addHighlight')||(_0x23ed51['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x368d1f),_0x23ed51['writer']['removeAttribute']('data-suggestion',_0x368d1f),_0x23ed51['mapper']['unbindElementFromMarkerName'](_0x368d1f,_0x5b3029['markerName']));}},{'priority':'high'});}),_0x51c6ba['conversion']['for']('editingDowncast')['add'](_0x147039=>{_0x147039['on']('removeMarker:suggestion:attribute',(_0x5cfc10,_0x23a0a2,_0x105831)=>{const _0x594da5=_0x105831['mapper']['markerNameToElements'](_0x23a0a2['markerName']);if(!_0x594da5)return;const {id:_0x581dbe}=this['_splitMarkerName'](_0x23a0a2['markerName']),_0x4a0c96=this['_suggestions']['get'](_0x581dbe),_0x1f7e74=this['_getAttributeKey'](_0x4a0c96);if(this['_isBlockAttribute'](_0x1f7e74)){for(const _0xef4088 of _0x594da5)_0xef4088['getCustomProperty']('addHighlight')||(_0x105831['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xef4088),_0x105831['writer']['removeAttribute']('data-suggestion',_0xef4088),_0x105831['mapper']['unbindElementFromMarkerName'](_0xef4088,_0x23a0a2['markerName']));}},{'priority':'high'});}),_0x51c6ba['model']['document']['registerPostFixer'](_0x1df6ed=>{let _0x25059c=!0x1;const _0x515715=Array['from'](_0x51c6ba['model']['document']['differ']['getChangedMarkers']()),_0x5e6cf3=new Set();for(const {name:_0x4f539d,data:_0x13dbbb}of _0x515715){const {group:_0x30b910,type:_0x2ef9d8,subType:_0x42f511,id:_0x2f9e6c}=this['_splitMarkerName'](_0x4f539d);if('suggestion'!==_0x30b910)continue;const _0x3d84a7=this['_suggestions']['get'](_0x2f9e6c);if(null!=_0x13dbbb['newRange']){'formatInline'==_0x2ef9d8&&(_0x25059c=_0x25059c||Et(_0x13dbbb['newRange'],_0x4f539d,_0x1df6ed,_0x51c6ba['model']['schema']));const _0xabb602='attribute'==_0x2ef9d8&&this['_isBlockAttribute'](_0x42f511['split']('|')[0x0]);if(_0x13dbbb['newRange']['isCollapsed']||'$graveyard'==_0x13dbbb['newRange']['root']['rootName']||'formatBlock'==_0x2ef9d8&&!Ut(_0x13dbbb['newRange'])||_0xabb602&&!Ut(_0x13dbbb['newRange'])||'deletion'==_0x2ef9d8&&!(!Tt(_0x1e75ea=_0x13dbbb['newRange'])&&!function(_0x32c2cf){return _0x32c2cf['start']['parent']==_0x32c2cf['end']['nodeBefore']&&_0x32c2cf['start']['isAtEnd'];}(_0x1e75ea)))_0x1df6ed['removeMarker'](_0x4f539d),_0x25059c=!0x0;else{if(!_0x3d84a7||!_0x3d84a7['isInContent'])continue;_0x5e6cf3['add'](_0x3d84a7);}}}var _0x1e75ea;return _0x5e6cf3['size']>0x0&&(_0x25059c=!!this['_joinWithAdjacentSuggestions'](_0x5e6cf3)||_0x25059c),_0x25059c;}),_0x51c6ba['model']['document']['registerPostFixer'](_0x3b090f=>{let _0x6ae811=!0x1;for(const _0x3426b6 of _0x51c6ba['model']['document']['differ']['getChanges']())if('insert'==_0x3426b6['type'])for(const _0x3ca0e3 of this['_suggestions']['values']()){if(_0x3ca0e3['isMultiRange']||!_0x3ca0e3['isInContent'])continue;const _0x21dc17='formatBlock'==_0x3ca0e3['type'],_0x3990f7=this['_getAttributeKey'](_0x3ca0e3),_0x2f215b=_0x3990f7&&this['_isBlockAttribute'](_0x3990f7);if(!_0x21dc17&&!_0x2f215b)continue;const _0x274da4=_0x3ca0e3['getFirstRange']();if(_0x274da4['start']['parent']!=_0x274da4['end']['parent']&&!_0x274da4['end']['isAtEnd']){const _0x89aaaf=_0x51c6ba['model']['createPositionAt'](_0x274da4['start']['nodeAfter'],'end'),_0xdf5bdf=_0x51c6ba['model']['createRange'](_0x274da4['start'],_0x89aaaf);_0x3b090f['updateMarker'](_0x3ca0e3['getFirstMarker'](),{'range':_0xdf5bdf}),_0x6ae811=!0x0;}}return _0x6ae811;}),_0x51c6ba['model']['document']['registerPostFixer'](_0x20383a=>this['_processAttributeChanges'](_0x20383a)),_0x51c6ba['model']['document']['registerPostFixer'](_0x31dff3=>!_0x31dff3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x31dff3)),_0x51c6ba['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x51c6ba['model']['document']['on']('change:data',(_0x2285fa,_0x440d9b)=>{if(!_0x440d9b['isLocal']||_0x440d9b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5f3de8=_0x51c6ba['model']['document']['differ']['getChanges']();if(0x0==_0x5f3de8['length'])return;const _0x67bd17=[],_0x2a5650=_0x5f3de8['filter'](_0x31cba3=>'attribute'==_0x31cba3['type']),_0x5e477b=_0x5f3de8['filter'](_0x2242cc=>'insert'==_0x2242cc['type']&&'$text'!=_0x2242cc['name']);for(const _0xebacf0 of _0x2a5650)this['_isRegisteredAttribute'](_0xebacf0['attributeKey'])&&_0x67bd17['push']({'key':_0xebacf0['attributeKey'],'newValue':_0xebacf0['attributeNewValue'],'oldValue':_0xebacf0['attributeOldValue'],'range':Ot(_0xebacf0['range'],_0x51c6ba['model'])});for(const _0x3e9ecf of _0x5e477b){if('rename'!=_0x3e9ecf['action']&&'refresh'!=_0x3e9ecf['action'])continue;const _0x3ee011=Gt(_0x3e9ecf['position']['nodeAfter'],_0x51c6ba['model']),_0x266bdd=_0x3e9ecf['before'];'rename'==_0x3e9ecf['action']&&_0x67bd17['push']({'key':m,'newValue':_0x3e9ecf['name'],'oldValue':_0x266bdd['name'],'range':_0x3ee011});for(const [_0x137a4a,_0x1c9722]of _0x266bdd['attributes']){if(!this['_isRegisteredAttribute'](_0x137a4a))continue;const _0x4add79=_0x3e9ecf['attributes']['get'](_0x137a4a);_0x1c9722!==_0x4add79&&_0x67bd17['push']({'key':_0x137a4a,'newValue':_0x4add79,'oldValue':_0x1c9722,'range':_0x3ee011});}for(const [_0x1649d4,_0x332501]of _0x3e9ecf['attributes'])this['_isRegisteredAttribute'](_0x1649d4)&&(_0x266bdd['attributes']['has'](_0x1649d4)||_0x67bd17['push']({'key':_0x1649d4,'newValue':_0x332501,'oldValue':null,'range':_0x3ee011}));}0x0!=_0x67bd17['length']&&_0x51c6ba['model']['enqueueChange'](_0x440d9b,_0x23fb3d=>{const _0x32c2ba=_0x31b5c7();for(const {range:_0x4a31ac,key:_0x44a7a5,oldValue:_0x553b2a,newValue:_0x55c72b}of _0x67bd17)this['markAttributeChange'](_0x4a31ac,_0x44a7a5,_0x553b2a,_0x55c72b,{'groupId':_0x32c2ba});this['_reduceExistingSuggestions'](_0x23fb3d,_0x67bd17);});},{'priority':'lowest'}),_0x51c6ba['model']['markers']['on']('update:suggestion',(_0x11ba3b,_0x3af429,_0x45a3e5)=>{if(null==_0x45a3e5){const {id:_0x334210}=this['_splitMarkerName'](_0x3af429['name']),_0x5b0597=this['_suggestions']['get'](_0x334210);_0x5b0597&&_0x5b0597['addMarkerName'](_0x3af429['name']);}}),_0x51c6ba['model']['document']['on']('change:data',()=>{const _0x31907b=Array['from'](_0x51c6ba['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31e6d9=>'suggestion'===this['_splitMarkerName'](_0x31e6d9['name'])['group']);if(0x0===_0x31907b['length'])return;_0x31907b['sort']((_0x5706e9,_0x3c4193)=>{const _0x3bb477=_0x5706e9['data']['oldRange'],_0x22d0c8=_0x3c4193['data']['oldRange'];return null===_0x3bb477&&null===_0x22d0c8?0x0:null===_0x3bb477&&null!==_0x22d0c8?-0x1:null!==_0x3bb477&&null===_0x22d0c8?0x1:_0x3bb477['start']['isBefore'](_0x22d0c8['start'])?-0x1:0x1;});const _0x273ae5=new Set(),_0x186faa=new Set();for(const {name:_0x35c3b2,data:_0x540859}of _0x31907b){const {id:_0x20f924}=this['_splitMarkerName'](_0x35c3b2);if(null===_0x540859['oldRange']){const _0x38d2ab=this['_handleNewSuggestionMarker'](_0x35c3b2);_0x186faa['add'](_0x38d2ab);}else{const _0x58d808=this['_suggestions']['get'](_0x20f924);null!==_0x540859['newRange']||_0x58d808['isInContent']?(_0x273ae5['add'](_0x58d808['head']),_0x186faa['add'](_0x58d808)):this['_removeSuggestion'](_0x58d808);}}_0x186faa['size']>0x0&&this['_refreshSuggestionsChain'](_0x186faa);for(const _0x352dba of _0x273ae5)this['fire']('suggestionChanged',_0x352dba);}),_0x51c6ba['model']['on']('applyOperation',(_0x3ae917,_0x5253a2)=>{const _0xa6e028=_0x5253a2[0x0];if(!this['_suggestions']['size'])return;if(!_0xa6e028['isDocumentOperation'])return;if(_0xa6e028['batch']['isUndo']||!_0xa6e028['batch']['isLocal'])return;let _0x1b7be1,_0x17a267;switch(_0xa6e028['type']){case'insert':_0x1b7be1=_0x51c6ba['model']['createPositionAt'](_0xa6e028['position']),_0x17a267=_0x1b7be1['getShiftedBy'](_0xa6e028['howMany']);break;case'split':_0x1b7be1=_0x51c6ba['model']['createPositionAt'](_0xa6e028['splitPosition']),_0x17a267=_0x51c6ba['model']['createPositionAt'](_0xa6e028['moveTargetPosition']);break;case'move':_0x1b7be1=_0x51c6ba['model']['createPositionAt'](_0xa6e028['targetPosition']),_0x17a267=_0x1b7be1['getShiftedBy'](_0xa6e028['howMany']);break;default:return;}const _0x41f9aa=_0x51c6ba['model']['createRange'](_0x1b7be1,_0x17a267);_0x51c6ba['model']['change'](()=>{for(const {suggestion:_0x5df8e1,meta:_0x1748f7}of this['_findSuggestions'](_0x41f9aa)){if(_0x5df8e1['isMultiRange'])continue;if('formatInline'==_0x5df8e1['type'])continue;const _0x341692=this['_getAttributeKey'](_0x5df8e1);if(_0x341692&&this['_isBlockAttribute'](_0x341692)&&'split'!=_0xa6e028['type'])continue;const _0x3880f5=_0x5df8e1['data']&&_0x5df8e1['data']['multipleBlocks'];('formatBlock'!=_0x5df8e1['type']||'split'==_0xa6e028['type']&&!_0x3880f5)&&(_0x1748f7['containsRangeInObject']||'insertion'==_0x5df8e1['type']&&_0x1748f7['isOwn']||_0x5df8e1['getFirstRange']()['containsRange'](_0x41f9aa)&&this['_breakSuggestionMarker'](_0x5df8e1,_0x1b7be1,_0x17a267));}});},{'priority':'lowest'}),_0x51c6ba['model']['on']('deleteContent',(_0x366d7a,_0x52604e)=>{const _0x5ed59e=_0x52604e[0x0],_0x49e92f=_0x52604e[0x1];if(_0x49e92f&&_0x49e92f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5ed59e['isCollapsed'])return;const _0x186999=_0x51c6ba['model']['schema'],{start:_0x49c6f8,end:_0x4323ed}=_0x5ed59e['getFirstRange'](),_0x35c1af=_0x49c6f8['nodeAfter']&&_0x186999['isLimit'](_0x49c6f8['nodeAfter'])?null:_0x186999['getNearestSelectionRange'](_0x49c6f8,'forward'),_0x58ce53=_0x4323ed['nodeBefore']&&_0x186999['isLimit'](_0x4323ed['nodeBefore'])?null:_0x186999['getNearestSelectionRange'](_0x4323ed,'backward'),_0x5c7555=_0x51c6ba['model']['createRange'](_0x35c1af?_0x35c1af['start']:_0x49c6f8,_0x58ce53?_0x58ce53['end']:_0x4323ed);_0x51c6ba['model']['change'](_0x32b699=>{this['markDeletion'](_0x5c7555);const _0x5c8c81=_0x51c6ba['model']['schema']['getNearestSelectionRange'](_0x5c7555['start']);_0x5ed59e['is']('documentSelection')?_0x32b699['setSelection'](_0x5c8c81):_0x5ed59e['setTo'](_0x5c8c81);}),_0x366d7a['stop']();},{'priority':_0x1c0189['normal']+0xa}),_0x51c6ba['model']['on']('insertContent',(_0x1f3cba,_0x341035)=>{const _0x353e64=_0x341035[_0x341035['length']-0x1];_0x353e64&&_0x353e64['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x51c6ba['model']['change'](()=>{let _0x12646a=_0x51c6ba['model']['insertContent'](_0x341035[0x0],_0x341035[0x1],_0x341035[0x2],{'forceDefaultExecution':!0x0});if(!_0x12646a)return;_0x1f3cba['return']=_0x12646a['clone']();const _0x44776a=_0x12646a['end']['nodeBefore'],_0x1bafdf=_0x51c6ba['model']['schema'];_0x44776a&&_0x1bafdf['isBlock'](_0x44776a)&&!_0x1bafdf['isObject'](_0x44776a)&&(_0x12646a=_0x51c6ba['model']['createRange'](_0x12646a['start'],_0x51c6ba['model']['createPositionAt'](_0x44776a,'end'))),this['markInsertion'](_0x12646a);}),_0x1f3cba['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x457ac7=new $(_0x51c6ba,this['_suggestions']);_0x51c6ba['commands']['add']('acceptSuggestion',_0x457ac7),this['enableCommand']('acceptSuggestion');const _0x73d317=new B(_0x51c6ba,this['_suggestions']);_0x51c6ba['commands']['add']('discardSuggestion',_0x73d317),this['enableCommand']('discardSuggestion'),_0x51c6ba['commands']['add']('acceptAllSuggestions',new x(_0x51c6ba,_0x457ac7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x51c6ba['commands']['add']('discardAllSuggestions',new x(_0x51c6ba,_0x73d317,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x51c6ba['commands']['add']('acceptSelectedSuggestions',new R(_0x51c6ba,_0x457ac7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x51c6ba['commands']['add']('discardSelectedSuggestions',new R(_0x51c6ba,_0x73d317,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x448102=_0x51c6ba['plugins']['get']('CommentsRepository');this['listenTo'](_0x448102,'addComment',(_0x2371e5,{threadId:_0x21dccf})=>{const _0x3152fc=this['_suggestions']['get'](_0x21dccf);_0x3152fc&&_0x3152fc['commentThread']&&0x1===_0x3152fc['commentThread']['length']&&this['_updateSuggestionData'](_0x21dccf,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x448102,'removeComment',(_0x3d797c,{threadId:_0x3115ab})=>{const _0x1a6ded=this['_suggestions']['get'](_0x3115ab);_0x1a6ded&&_0x1a6ded['commentThread']&&!_0x1a6ded['commentThread']['length']&&this['_updateSuggestionData'](_0x3115ab,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x233a02){if(this['_adapter'])throw new _0xa20965('track-changes-adapter-already-set',this);this['_adapter']=_0x233a02;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x7d43dd=!0x1,toJSON:_0x39e1f7=!0x1}={}){const _0x394176=[];for(const _0x495c4e of this['_suggestions']['values']())_0x7d43dd&&!_0x495c4e['isInContent']||_0x394176['push'](_0x495c4e);return _0x39e1f7?_0x394176['map'](_0x4befc9=>_0x4befc9['toJSON']()):_0x394176;}['getSuggestion'](_0x31baa8){const _0x4e58fe=this['_suggestions']['get'](_0x31baa8);if(!_0x4e58fe)throw new _0xa20965('track-changes-suggestion-not-found',this);return _0x4e58fe;}['hasSuggestion'](_0x2d7c3a){return this['_suggestions']['has'](_0x2d7c3a);}['addSuggestionData'](_0x3af57a){const {authorId:_0x222407,id:_0x4852f5,attributes:_0x5d1445}=_0x3af57a,[_0xf48a29,_0x51ba60]=_0x3af57a['type']['split'](':'),_0x20ee9a=this['_suggestions']['get'](_0x4852f5)||this['_createSuggestion'](_0xf48a29,_0x51ba60,_0x4852f5,_0x222407,_0x5d1445);if(this['_addThreadToSuggestion'](_0x20ee9a),this['_checkSuggestionCorrectness'](_0x20ee9a,_0xf48a29,_0x51ba60||null,_0x222407),_0x20ee9a['createdAt']=_0x3af57a['createdAt'],_0x20ee9a['_isDataLoaded']=!0x0,_0x5d1445&&_0x5d1445['@external']){const _0x314a57=_0x5d1445['@external'],_0x3dae27=this['_getExternalAuthor'](_0x314a57['authorName']);_0x20ee9a['authoredAt']=_0x314a57['createdAt'],_0x20ee9a['author']=_0x3dae27,_0x20ee9a['isExternal']=!0x0;}else _0x20ee9a['authoredAt']=_0x3af57a['createdAt'];switch(_0x3af57a['data']&&(_0x20ee9a['data']=_0x3af57a['data']),_0x3af57a['attributes']&&(_0x20ee9a['attributes']=_0x3af57a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x20ee9a['_saved']=!0x0),this['_suggestionState']['get'](_0x20ee9a)){case'notReady':this['_suggestionState']['set'](_0x20ee9a,'dataReady');break;case'markerReady':_0x20ee9a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x20ee9a])),this['_refreshSuggestionsChain'](new Set([_0x20ee9a])),this['_suggestionState']['set'](_0x20ee9a,'ready'),this['fire']('suggestionLoaded',_0x20ee9a)):this['_suggestionState']['set'](_0x20ee9a,'removed');}return _0x20ee9a;}['acceptSuggestion'](_0x3d7ad4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5da40c of _0x3d7ad4['getAllAdjacentSuggestions']())_0x5da40c['accept']();});});}['discardSuggestion'](_0x247a22){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2664f5 of _0x247a22['getAllAdjacentSuggestions']())_0x2664f5['discard']();});});}['enableCommand'](_0x4a1bc3,_0x4006b9){const _0x550f18=this['editor']['commands']['get'](_0x4a1bc3);if(!_0x550f18)throw new _0xa20965('track-changes-command-not-found',this,{'commandName':_0x4a1bc3});if(this['_enabledCommands']['has'](_0x550f18))throw new _0xa20965('track-changes-enable-command-twice',this,{'commandName':_0x4a1bc3});this['_enabledCommands']['add'](_0x550f18),_0x4006b9&&_0x550f18['on']('execute',(_0x78041b,_0x4ab16c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4ab16c['length']>0x0&&_0x4ab16c[_0x4ab16c['length']-0x1]&&_0x4ab16c[_0x4ab16c['length']-0x1]['forceDefaultExecution']?_0x4ab16c['pop']():(_0x78041b['return']=_0x4006b9((..._0x53b0cd)=>_0x550f18['execute'](..._0x53b0cd,{'forceDefaultExecution':!0x0}),..._0x4ab16c),_0x78041b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x58222e){let _0x611bf2,_0x264504;const _0x1ae812=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x611bf2=_0x58222e();}catch(_0x490bb8){_0x264504=_0x490bb8;}return _0x1ae812||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x264504&&_0xa20965['rethrowUnexpectedError'](_0x264504,this),_0x611bf2;}['markInsertion'](_0x4fc2c8,_0x268e4d=null,_0x187217={}){if(_0x4fc2c8['isCollapsed'])return null;const _0x433bb3=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x49ac17,meta:_0x38e0e3}of this['_findSuggestions'](_0x4fc2c8,'insertion'))if(_0x38e0e3['isOwn']){if(!_0x38e0e3['isNextTo']){if(_0x38e0e3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x49ac17,_0x187217))continue;return _0x49ac17;}if(Lt(_0x49ac17,_0x187217))return _0x49ac17;this['_breakSuggestionMarker'](_0x49ac17,_0x4fc2c8['start'],_0x4fc2c8['end']);break;}if(_0x268e4d==_0x49ac17['subType']&&Lt(_0x49ac17,_0x187217)){const _0x5bdbbd=_0x49ac17['getFirstRange']();return _0x5bdbbd['start']['isEqual'](_0x4fc2c8['end'])?this['_setSuggestionRange'](_0x49ac17,this['_model']['createRange'](_0x4fc2c8['start'],_0x5bdbbd['end'])):this['_setSuggestionRange'](_0x49ac17,this['_model']['createRange'](_0x5bdbbd['start'],_0x4fc2c8['end'])),_0x49ac17;}}const _0x3467b7=_0x31b5c7(),_0x425a65=_0x433bb3['id'],_0x3a47bf=_0x268e4d?'insertion:'+_0x268e4d:'insertion',_0x331e36=this['_setSuggestionData']({'id':_0x3467b7,'type':_0x3a47bf,'createdAt':new Date(),'authorId':_0x425a65,'attributes':_0x187217});return this['_addSuggestionMarker'](_0x3a47bf,_0x3467b7,_0x425a65,_0x4fc2c8),_0x331e36;}['markMultiRangeInsertion'](_0x4254e7,_0x2f4c4a='multi',_0x4b9cbc={}){const _0x20affe=this['editor']['plugins']['get']('Users')['me'],_0x9b0804=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f4c4a,'join');for(const _0x44385a of this['getSuggestions']())if(_0x44385a['author']['id']==_0x20affe['id']&&'insertion'==_0x44385a['type']&&_0x44385a['subType']==_0x2f4c4a&&Lt(_0x44385a,_0x4b9cbc)&&(_0x9b0804(_0x44385a['getRanges'](),_0x4254e7)||_0x9b0804(_0x4254e7,_0x44385a['getRanges']()))){for(const _0x384030 of _0x4254e7)_0x44385a['addRange'](_0x384030);return _0x44385a;}for(const {suggestion:_0x5a1ba2,meta:_0x23450a}of this['_findSuggestions'](_0x4254e7,'insertion')){if(!_0x23450a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x23450a['containsRangeInObject'])continue;if(!Lt(_0x5a1ba2,_0x4b9cbc))continue;let _0x234b3e=!0x0;for(const _0x2cae76 of _0x5a1ba2['getRanges']())for(const _0x3c164d of _0x4254e7)if(!_0x2cae76['containsRange'](_0x3c164d)){_0x234b3e=!0x1;break;}if(_0x234b3e)return _0x5a1ba2;}const _0x150248=_0x31b5c7(),_0x9ca8d0=_0x20affe['id'],_0x358e3d='insertion:'+_0x2f4c4a,_0x202360=this['_setSuggestionData']({'id':_0x150248,'type':_0x358e3d,'createdAt':new Date(),'authorId':_0x9ca8d0,'attributes':_0x4b9cbc});for(const _0x164dd9 of _0x4254e7)this['_addSuggestionMarker'](_0x358e3d,_0x150248,_0x9ca8d0,_0x164dd9,u['getMultiRangeId']());return _0x202360;}['markInlineFormat'](_0x246c3e,_0x4b2c5c,_0x2dd87a=null,_0x4d3650={}){if(_0x2dd87a=_0x2dd87a||Vt(_0x4b2c5c),_0x246c3e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x52527a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2dd87a,'accept');return this['forceDefaultExecution'](()=>_0x52527a([_0x246c3e],_0x4b2c5c,_0x4d3650)),null;}const _0x119faa=this['editor']['plugins']['get']('Users')['me'],_0x590cbf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2329a6,meta:_0x55d860}of this['_findSuggestions'](_0x246c3e,'insertion'))_0x55d860['isOwn']&&!_0x55d860['isInsideObject']&&_0x590cbf['push'](..._0x2329a6['getRanges']());}const _0x208caa=function(_0x40989b,_0x26cbd5){const _0x221b40=[];for(const _0x362e79 of _0x26cbd5){const _0x524c97=_0x40989b['getIntersection'](_0x362e79);_0x524c97&&_0x221b40['push'](_0x524c97);}return _0x221b40;}(_0x246c3e,_0x590cbf),_0x1a1934=function(_0x1564b0,_0x31c999){const _0x3b3475=[_0x1564b0];for(const _0x3140d5 of _0x31c999){let _0x1d432f=0x0;for(;_0x1d432f<_0x3b3475['length'];){const _0x50c039=_0x3b3475[_0x1d432f]['getDifference'](_0x3140d5);_0x3b3475['splice'](_0x1d432f,0x1,..._0x50c039),_0x1d432f+=_0x50c039['length'];}}return _0x3b3475;}(_0x246c3e,_0x590cbf);_0x208caa['length']&&this['_model']['change'](()=>{for(const _0x4027ff of _0x208caa){const _0x32892a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2dd87a,'accept');this['forceDefaultExecution'](()=>_0x32892a([_0x4027ff],_0x4b2c5c,_0x4d3650));}});for(const _0x36bef2 of _0x1a1934){let _0x7633c9=null,_0x376cfd=_0x36bef2['start'],_0xb43438=_0x36bef2['end'];for(const {suggestion:_0x12200a,meta:_0xa33739}of this['_findSuggestions'](_0x36bef2,'formatInline')){if(!_0xa33739['isOwn'])continue;if(_0x12200a['subType']!=_0x2dd87a)continue;if(!Lt(_0x12200a,_0x4d3650))continue;const _0xef9fc8=_0x12200a['getFirstRange']();if(_0xef9fc8['containsRange'](_0x36bef2,!0x0))return null;_0x376cfd=_0x376cfd['isBefore'](_0xef9fc8['start'])?_0x376cfd:_0xef9fc8['start'],_0xb43438=_0xb43438['isAfter'](_0xef9fc8['end'])?_0xb43438:_0xef9fc8['end'],_0x7633c9?_0xef9fc8['start']['isBefore'](_0x7633c9['getFirstRange']()['start'])?(_0x7633c9['removeMarkers'](),_0x7633c9=_0x12200a):_0x12200a['removeMarkers']():_0x7633c9=_0x12200a;}const _0xa81c51=this['_model']['createRange'](_0x376cfd,_0xb43438);if(_0x7633c9)this['_setSuggestionRange'](_0x7633c9,_0xa81c51);else{const _0x3205b8=_0x31b5c7(),_0x5c0bf1=_0x119faa['id'];this['_setSuggestionData']({'id':_0x3205b8,'type':'formatInline:'+_0x2dd87a,'data':_0x4b2c5c,'createdAt':new Date(),'authorId':_0x5c0bf1,'attributes':_0x4d3650}),this['_addSuggestionMarker']('formatInline:'+_0x2dd87a,_0x3205b8,_0x5c0bf1,_0xa81c51);}}return null;}['markBlockFormat'](_0x587273,_0x2d5047,_0x5405d5=[],_0xfe5473=null,_0x3e3e75={}){_0x2d5047['formatGroupId']||(_0x2d5047['formatGroupId']=_0x2d5047['commandName']),_0x2d5047['multipleBlocks']=_0x587273['is']('range'),_0xfe5473=_0xfe5473||Vt(_0x2d5047);const _0x3fb110=_0x5405d5['map'](_0x1c5ea0=>Gt(_0x1c5ea0,this['_model'])),_0x5ada9a=_0x587273['is']('range')?_0x587273:Gt(_0x587273,this['_model']);if('never'===this['_trackFormatChanges']){const _0x292826=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfe5473,'accept');return this['forceDefaultExecution'](()=>_0x292826([_0x5ada9a],_0x2d5047,_0x3e3e75)),null;}_0x3fb110['push'](_0x5ada9a);let _0x2635ad=!0x0;for(const _0x19e621 of _0x3fb110)if(!this['_rangeIsInLocalUserInsertion'](_0x19e621)){_0x2635ad=!0x1;break;}if(_0x2635ad&&'always'!==this['_trackFormatChanges']){const _0x3fce0f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfe5473,'accept');return this['forceDefaultExecution'](()=>_0x3fce0f([_0x5ada9a],_0x2d5047,_0x3e3e75)),null;}let _0x545c7a=null,_0x3c6205=_0x5ada9a['start'],_0x32eb71=_0x5ada9a['end'];for(const {suggestion:_0xe6b162,meta:_0x4e3000}of this['_findSuggestions'](_0x5ada9a,'formatBlock')){if(!_0x4e3000['isOwn'])continue;if(_0x4e3000['isNextTo']||_0x4e3000['containsRangeInObject']||_0x4e3000['isInsideObject'])continue;if(_0xe6b162['data']['formatGroupId']!=_0x2d5047['formatGroupId'])continue;if(!Lt(_0xe6b162,_0x3e3e75))continue;const _0x2af572=_0xe6b162['getFirstRange']();if(_0xe6b162['subType']==_0xfe5473){if(_0x2af572['containsRange'](_0x5ada9a,!0x0))return null;_0x3c6205=_0x3c6205['isBefore'](_0x2af572['start'])?_0x3c6205:_0x2af572['start'],_0x32eb71=_0x32eb71['isAfter'](_0x2af572['end'])?_0x32eb71:_0x2af572['end'],_0x545c7a?_0x2af572['start']['isBefore'](_0x545c7a['getFirstRange']()['start'])?(_0x545c7a['removeMarkers'](),_0x545c7a=_0xe6b162):_0xe6b162['removeMarkers']():_0x545c7a=_0xe6b162;}else{const _0x146fc5=_0x5ada9a['getIntersection'](_0x2af572);this['_cutOutSuggestionMarker'](_0xe6b162,_0x146fc5);}}const _0x3940b4=this['editor']['plugins']['get']('Users')['me'],_0xa77c80=_0x31b5c7(),_0x1df8e0=_0x3940b4['id'];if(_0x545c7a)return this['_setSuggestionRange'](_0x545c7a,this['_model']['createRange'](_0x3c6205,_0x32eb71)),_0x545c7a;{const _0x1c5ae3=this['_setSuggestionData']({'id':_0xa77c80,'type':'formatBlock:'+_0xfe5473,'data':_0x2d5047,'createdAt':new Date(),'authorId':_0x1df8e0,'attributes':_0x3e3e75});return this['_addSuggestionMarker']('formatBlock:'+_0xfe5473,_0xa77c80,_0x1df8e0,this['_model']['createRange'](_0x3c6205,_0x32eb71)),_0x1c5ae3;}}['markMultiRangeBlockFormat'](_0xbe3924,_0x295b6c,_0x190a2b=[],_0x3f6f4a=null,_0x33ea66={}){_0x295b6c['formatGroupId']||(_0x295b6c['formatGroupId']=_0x295b6c['commandName']);const _0x31bf30=_0xbe3924[0x0];_0x295b6c['multipleBlocks']=_0x31bf30['is']('range'),_0x3f6f4a=_0x3f6f4a||Vt(_0x295b6c);const _0x33374f=_0x190a2b['map'](_0x2a2f05=>Gt(_0x2a2f05,this['_model'])),_0x151796=_0x31bf30['is']('range')?_0xbe3924:_0xbe3924['map'](_0x48ae7a=>Gt(_0x48ae7a,this['_model']));if('never'===this['_trackFormatChanges']){const _0xcc7561=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f6f4a,'accept');return this['forceDefaultExecution'](()=>_0xcc7561(_0x151796,_0x295b6c,_0x33ea66)),null;}_0x33374f['push'](..._0x151796);let _0x3b69df=!0x0;for(const _0x31f2c8 of _0x33374f)if(!this['_rangeIsInLocalUserInsertion'](_0x31f2c8)){_0x3b69df=!0x1;break;}if(_0x3b69df&&'always'!==this['_trackFormatChanges']){const _0xcfb2b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f6f4a,'accept');return this['forceDefaultExecution'](()=>_0xcfb2b3(_0x151796,_0x295b6c,_0x33ea66)),null;}const _0x6bf683=this['editor']['plugins']['get']('Users')['me'];for(const _0x8ea273 of this['getSuggestions']()){if(_0x8ea273['author']['id']!=_0x6bf683['id'])continue;if('formatBlock'!=_0x8ea273['type']||_0x8ea273['data']['formatGroupId']!=_0x295b6c['formatGroupId'])continue;if(!Lt(_0x8ea273,_0x33ea66))continue;const _0x3f29c5=_0x8ea273['subType']==_0x3f6f4a;for(let _0x5502a1=0x0;_0x5502a1<_0x151796['length'];_0x5502a1++){const _0x3e37fb=_0x151796[_0x5502a1];for(const _0x3b9519 of _0x8ea273['getMarkers']()){const _0xca93b6=_0x3b9519['getRange']();if(_0x3e37fb['isEqual'](_0xca93b6)){_0x3f29c5?(_0x151796['splice'](_0x5502a1,0x1),_0x5502a1--):_0x8ea273['removeMarker'](_0x3b9519['name']);break;}}}}if(0x0==_0x151796['length'])return null;const _0x16233b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f6f4a,'join');for(const _0x20dd72 of this['getSuggestions']())if(_0x20dd72['author']['id']==_0x6bf683['id']&&'formatBlock'==_0x20dd72['type']&&_0x20dd72['data']['formatGroupId']==_0x295b6c['formatGroupId']&&_0x20dd72['subType']==_0x3f6f4a&&Lt(_0x20dd72,_0x33ea66)&&(_0x16233b(_0x20dd72['getRanges'](),_0x151796)||_0x16233b(_0x151796,_0x20dd72['getRanges']()))){for(const _0x4a5df0 of _0x151796)_0x20dd72['addRange'](_0x4a5df0);return _0x20dd72;}const _0x3ab7ea=_0x31b5c7(),_0x2dc0d8=_0x6bf683['id'],_0x50536c='formatBlock:'+_0x3f6f4a,_0x3f1c73=this['_setSuggestionData']({'id':_0x3ab7ea,'type':_0x50536c,'data':_0x295b6c,'createdAt':new Date(),'authorId':_0x2dc0d8,'attributes':_0x33ea66});for(const _0x5f2f96 of _0x151796)this['_addSuggestionMarker'](_0x50536c,_0x3ab7ea,_0x2dc0d8,_0x5f2f96,u['getMultiRangeId']());return _0x3f1c73;}['markDeletion'](_0x55f228,_0x3e9bd9=null,_0x8e0183={}){if(_0x55f228['isCollapsed'])return null;const _0x1e74aa=this['editor']['plugins']['get']('Users')['me'],_0x319aea=new _0x5c6df6(_0x55f228['start'],_0x55f228['end']);for(const {suggestion:_0x51cdf2,meta:_0x4cf48e}of this['_findSuggestions'](_0x319aea,'insertion'))if(_0x4cf48e['isOwn']&&!_0x4cf48e['isNextTo']){if(_0x51cdf2['isMultiRange']){const _0x372140=_0x51cdf2['getRanges']()['filter'](_0x534c7c=>'$graveyard'!=_0x534c7c['root']['rootName']);_0x372140['every'](_0x367f1c=>_0x319aea['containsRange'](_0x367f1c,!0x0))&&_0x51cdf2['discard']();if(_0x372140['some'](_0x49d11a=>_0x49d11a['containsRange'](_0x319aea,!0x0))){const _0x142596=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e9bd9,'accept');return this['forceDefaultExecution'](()=>_0x142596([_0x319aea],null,_0x8e0183)),null;}}else{const _0xa66cc1=_0x319aea['getIntersection'](_0x51cdf2['getFirstRange']());null!==_0xa66cc1&&_0x51cdf2['_onDiscard']([_0xa66cc1],null,_0x8e0183);}}if(_0x319aea['detach'](),_0x319aea['isCollapsed']||'$graveyard'==_0x319aea['root']['rootName'])return null;let _0x4accd9=null,_0x27fa03=_0x319aea['start'],_0x2045ba=_0x319aea['end'];const _0x216522=this['_findSuggestions'](_0x319aea,'deletion');for(const {suggestion:_0x539f2f,meta:_0x239ca0}of _0x216522){const _0x419b3b=this['_model']['createRange'](_0x27fa03,_0x2045ba);if(_0x239ca0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x239ca0['containsRangeInObject']&&!_0x239ca0['isInsideObject'])){if(_0x539f2f['isMultiRange']){if(!Lt(_0x539f2f,_0x8e0183))continue;let _0x522cbe=!0x0;for(const _0x5a4fda of _0x539f2f['getRanges']()){if(_0x5a4fda['containsRange'](_0x419b3b,!0x0))return _0x539f2f;_0x419b3b['containsRange'](_0x5a4fda)||(_0x522cbe=!0x1);}_0x522cbe&&_0x539f2f['discard']();}else{const _0x13cec4=_0x539f2f['getFirstRange']();if(_0x13cec4['containsRange'](_0x419b3b,!0x0))return _0x539f2f;if(!Lt(_0x539f2f,_0x8e0183)){_0x419b3b['containsRange'](_0x13cec4)?_0x539f2f['removeMarkers']():_0x13cec4['containsPosition'](_0x27fa03)?_0x27fa03=_0x13cec4['end']:_0x13cec4['containsPosition'](_0x2045ba)&&(_0x2045ba=_0x13cec4['start']);continue;}_0x27fa03=_0x27fa03['isBefore'](_0x13cec4['start'])?_0x27fa03:_0x13cec4['start'],_0x2045ba=_0x2045ba['isAfter'](_0x13cec4['end'])?_0x2045ba:_0x13cec4['end'],_0x8e0183=Object['assign']({},_0x539f2f['attributes']),_0x4accd9?_0x13cec4['start']['isBefore'](_0x4accd9['getFirstRange']()['start'])?(_0x4accd9['removeMarkers'](),_0x4accd9=_0x539f2f):_0x539f2f['removeMarkers']():_0x4accd9=_0x539f2f;}}}if(_0x4accd9)return this['_setSuggestionRange'](_0x4accd9,this['_model']['createRange'](_0x27fa03,_0x2045ba)),_0x4accd9;{const _0x4bfe28=_0x31b5c7(),_0x412791=this['_model']['createRange'](_0x27fa03,_0x2045ba),_0x30b420=_0x1e74aa['id'],_0x493914=_0x3e9bd9?'deletion:'+_0x3e9bd9:'deletion',_0x518b4f=this['_setSuggestionData']({'id':_0x4bfe28,'type':_0x493914,'createdAt':new Date(),'authorId':_0x30b420,'attributes':_0x8e0183});return this['_addSuggestionMarker'](_0x493914,_0x4bfe28,_0x30b420,_0x412791),_0x518b4f;}}['markMultiRangeDeletion'](_0x255abf,_0x670bcd='multi',_0x52cdfe={}){const _0x5d1332=this['editor']['plugins']['get']('Users')['me'],_0x1b488c=_0x255abf['map'](_0x259ba4=>new _0x5c6df6(_0x259ba4['start'],_0x259ba4['end'])),_0x4235f1=new Set();for(const {suggestion:_0x569b75,meta:_0x5191c7}of this['_findSuggestions'](_0x1b488c,'insertion'))_0x5191c7['isOwn']&&!_0x5191c7['isNextTo']&&_0x4235f1['add'](_0x569b75);for(const _0x2ba23a of _0x4235f1)if(_0x2ba23a['isMultiRange']){const _0x6e98e=_0x2ba23a['getRanges']();(!_0x2ba23a['attributes']||!_0x2ba23a['attributes']['skipNestingCheck'])&&(_0x6e98e['every'](_0x573f55=>_0x1b488c['some'](_0x1acaa2=>_0x1acaa2['containsRange'](_0x573f55,!0x0)))&&_0x2ba23a['discard']());if(_0x1b488c['every'](_0x183588=>_0x6e98e['some'](_0x1a7c36=>_0x1a7c36['containsRange'](_0x183588,!0x0)))){const _0x3e08d3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x670bcd,'accept');return this['forceDefaultExecution'](()=>_0x3e08d3(_0x255abf,null,_0x52cdfe)),null;}}else{const _0x4034d3=_0x2ba23a['getFirstRange']();_0x1b488c['some'](_0x2c6e83=>_0x2c6e83['containsRange'](_0x4034d3,!0x0))&&_0x2ba23a['discard']();if(_0x1b488c['every'](_0x12a602=>_0x4034d3['containsRange'](_0x12a602,!0x0))){const _0x1bb926=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x670bcd,'accept');return this['forceDefaultExecution'](()=>_0x1bb926(_0x1b488c,null,_0x52cdfe)),null;}}const _0x455495=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x670bcd,'join');let _0x56b86d=null;for(const _0x25fce2 of this['getSuggestions']())if(_0x25fce2['author']['id']==_0x5d1332['id']&&_0x25fce2['isInContent']&&'deletion'==_0x25fce2['type']&&_0x25fce2['subType']==_0x670bcd&&Lt(_0x25fce2,_0x52cdfe)&&(_0x455495(_0x25fce2['getRanges'](),_0x1b488c)||_0x455495(_0x1b488c,_0x25fce2['getRanges']()))){if(_0x56b86d){if(_0x25fce2['commentThread']&&_0x25fce2['commentThread']['length'])continue;for(const _0x54eb44 of _0x25fce2['getRanges']())_0x56b86d['isIntersectingWithRange'](_0x54eb44)||_0x56b86d['addRange'](_0x54eb44);_0x25fce2['removeMarkers']();}else{_0x56b86d=_0x25fce2;for(const _0x5d8f79 of _0x1b488c)_0x25fce2['isIntersectingWithRange'](_0x5d8f79)||_0x25fce2['addRange'](_0x5d8f79);}}if(_0x56b86d)return _0x56b86d;_0x4235f1['clear']();for(const {suggestion:_0x19ba84,meta:_0x131948}of this['_findSuggestions'](_0x1b488c,'deletion'))_0x131948['isOwn']&&(this['_mergeNestedSuggestions']||!_0x131948['containsRangeInObject']&&!_0x131948['isInsideObject'])&&Lt(_0x19ba84,_0x52cdfe)&&_0x4235f1['add'](_0x19ba84);for(const _0x38bc6b of _0x4235f1){const _0x1058d9=_0x38bc6b['getRanges']();if(!_0x52cdfe||!_0x52cdfe['skipNestingCheck']){if(_0x1b488c['every'](_0x19192a=>_0x1058d9['some'](_0x1be2b9=>_0x1be2b9['containsRange'](_0x19192a,!0x0))))return _0x38bc6b;}(!_0x38bc6b['attributes']||!_0x38bc6b['attributes']['skipNestingCheck'])&&(_0x1058d9['every'](_0x27237f=>_0x1b488c['some'](_0x40a837=>_0x40a837['containsRange'](_0x27237f,!0x0)))&&_0x38bc6b['discard']());}const _0x583324=_0x31b5c7(),_0x4fb22d=_0x5d1332['id'],_0x170935='deletion:'+_0x670bcd,_0x172fd3=this['_setSuggestionData']({'id':_0x583324,'type':_0x170935,'createdAt':new Date(),'authorId':_0x4fb22d,'attributes':_0x52cdfe});for(const _0x42ea9a of _0x1b488c)_0x42ea9a['detach'](),_0x42ea9a['isCollapsed']||'$graveyard'==_0x42ea9a['root']['rootName']||this['_addSuggestionMarker'](_0x170935,_0x583324,_0x4fb22d,_0x42ea9a,u['getMultiRangeId']());return _0x172fd3;}['markAttributeChange'](_0x360bc3,_0x1c6354,_0x1ad1ac,_0x4e1ff5,_0x2502a0){if(_0x360bc3['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x10ca23=this['editor']['plugins']['get']('Users')['me']['id'],_0x3c640a=Array['from'](this['_suggestions']['values']())['filter'](_0x5a3828=>'attribute'==_0x5a3828['type']&&_0x5a3828['data']['key']==_0x1c6354&&_0x5a3828['isIntersectingWithRange'](_0x360bc3));if('default'===this['_trackFormatChanges']){const _0x52180f=this['_findSuggestions'](_0x360bc3,'insertion')['filter'](({meta:_0x1b043f})=>_0x1b043f['isOwn']&&!_0x1b043f['isInsideObject']&&!_0x1b043f['isNextTo'])['map'](({suggestion:_0x491edd})=>_0x491edd);_0x3c640a['unshift'](..._0x52180f);}const _0x54170f=new Map([[_0x360bc3,_0x1ad1ac]]);for(const _0x31e3c3 of _0x3c640a){const _0x47de28='attribute'==_0x31e3c3['type']?_0x31e3c3['data']['oldValue']:void 0x0,_0x35dd10=_0x31e3c3['getFirstRange'](),_0x5eeecb=Array['from'](_0x54170f['keys']())['find'](_0x184bf3=>_0x184bf3['isIntersecting'](_0x35dd10));if(!_0x5eeecb)continue;const _0x23d55b=_0x5eeecb['getDifference'](_0x35dd10);this['_isBlockAttribute'](_0x1c6354)&&'insertion'==_0x31e3c3['type']&&0x0!=_0x23d55b['length']||(_0x54170f['delete'](_0x5eeecb),_0x23d55b['forEach'](_0x249e36=>{_0x54170f['set'](_0x249e36,_0x1ad1ac);}),'insertion'!=_0x31e3c3['type']&&_0x47de28!=_0x4e1ff5&&_0x54170f['set'](_0x5eeecb['getIntersection'](_0x35dd10),_0x47de28));}const _0x2c76d1=[];for(const [_0x1b270c,_0x20cbae]of _0x54170f){const _0x42061d=_0x31b5c7(),_0x21bb21={'key':_0x1c6354,'oldValue':_0x20cbae,'newValue':_0x4e1ff5};_0x1c6354['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':_0x1c6354});const _0x52f134=('attribute:'+(_0x1c6354+'|'+Vt({'newValue':_0x4e1ff5})))['substring'](0x0,0x3c),_0xd2a229=this['_setSuggestionData']({'id':_0x42061d,'type':_0x52f134,'data':_0x21bb21,'createdAt':new Date(),'authorId':_0x10ca23,'attributes':_0x2502a0});_0x2c76d1['push'](_0xd2a229),this['_addSuggestionMarker'](_0x52f134,_0x42061d,_0x10ca23,_0x1b270c);}return _0x2c76d1;}['enableDefaultAttributesIntegration'](_0xb657b7){this['enableCommand'](_0xb657b7,(_0x4a7c5a,..._0x15efb1)=>{this['_recordAttributeChanges'](()=>{_0x4a7c5a(..._0x15efb1);});});}['registerBlockAttribute'](_0xeb794f){this['_blockAttributeKeys']['add'](_0xeb794f);}['registerInlineAttribute'](_0x5eed3a){this['_inlineAttributeKeys']['add'](_0x5eed3a);}['_getAttributeKey'](_0x29a162){return'attribute'==_0x29a162['type']?_0x29a162['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xb79c84,_0x309326){const _0x2d43da=_0xb79c84['getFirstMarker']();this['_model']['change'](_0xed5b6e=>{_0xed5b6e['updateMarker'](_0x2d43da,{'range':_0x309326});});}['_addThreadToSuggestion'](_0x15a51d){const _0x56debb=_0x15a51d['id'],_0x3e83ee=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x56debb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3e83ee,'threadId':_0x56debb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5b1940=this['_commentsRepository']['getCommentThread'](_0x56debb);_0x5b1940['unbind']('isRemovable'),_0x5b1940['isRemovable']=!0x1,_0x15a51d['commentThread']=_0x5b1940;}['_checkSuggestionCorrectness'](_0x1d30c8,_0x438788,_0x3d62e1,_0x190595){if(_0x1d30c8['type']!=_0x438788||_0x1d30c8['subType']!=_0x3d62e1||_0x1d30c8['creator']['id']!=_0x190595)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa20965('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5ad2d3,_0x278d72){const _0x59b22c=_0x5ad2d3['getFirstRange']();if(_0x278d72['isEqual'](_0x59b22c))_0x5ad2d3['removeMarkers']();else{if(_0x59b22c['containsRange'](_0x278d72)){const _0x29f858=this['_model']['createPositionAt'](_0x278d72['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5ad2d3,this['_model']['createRange'](_0x59b22c['start'],_0x29f858));const _0x49081d=_0x31b5c7(),_0x4a882a=_0x5ad2d3['creator']['id'],_0x502ae5=_0x5ad2d3['type']+':'+_0x5ad2d3['subType'];this['_setSuggestionData']({'id':_0x49081d,'type':_0x502ae5,'createdAt':new Date(),'authorId':_0x4a882a,'data':_0x5ad2d3['data'],'attributes':_0x5ad2d3['attributes']});const _0x319a48=this['_model']['createPositionAt'](_0x278d72['end']['parent'],'after'),_0x3593c8=this['_model']['createRange'](_0x319a48,_0x59b22c['end']);this['_addSuggestionMarker'](_0x502ae5,_0x49081d,_0x4a882a,_0x3593c8);}else{if(_0x59b22c['containsPosition'](_0x278d72['start'])){const _0x248674=this['_model']['createPositionAt'](_0x278d72['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5ad2d3,this['_model']['createRange'](_0x59b22c['start'],_0x248674));}else{const _0x3530a9=this['_model']['createPositionAt'](_0x278d72['end']['parent'],'after');this['_setSuggestionRange'](_0x5ad2d3,this['_model']['createRange'](_0x3530a9,_0x59b22c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2e3fd5){for(const {suggestion:_0x1dced9,meta:_0x295b6a}of this['_findSuggestions'](_0x2e3fd5,'insertion')){if(!_0x295b6a['isOwn'])continue;const _0x40472a=_0x1dced9['getRanges']();for(const _0x1ae235 of _0x40472a)if(!_0x2e3fd5['getDifference'](_0x1ae235)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x270d47){const _0x5d1511=this['editor']['plugins']['get']('Users')['getUser'](_0x270d47);if(!_0x5d1511)throw new _0xa20965('track-changes-user-not-found',this);return _0x5d1511;}['_getExternalAuthor'](_0x529cc9){const _0x44163a=this['editor']['plugins']['get']('Users'),_0xbcd17=_0x2fabcd('external:'+_0x529cc9),_0x2a3449=_0x44163a['getUser'](_0xbcd17);return _0x2a3449||_0x44163a['addUser']({'id':_0xbcd17,'name':_0x529cc9});}['_createSuggestion'](_0x29002b,_0x3de4e3,_0xc660b1,_0x2ba857,_0x31a73c){const _0x806500=this['_getAuthorFromId'](_0x2ba857),_0x29a462=this['_suggestionFactory']['buildSuggestion'](_0x29002b,_0x3de4e3,_0xc660b1,_0x806500,_0x31a73c,_0xd5a381=>{this['_updateSuggestionData'](_0xc660b1,{'attributes':_0xd5a381});const _0x1c7272=this['getSuggestion'](_0xc660b1);this['_joinWithAdjacentSuggestions'](new Set([_0x1c7272])),this['_refreshSuggestionsChain'](new Set([_0x1c7272]));});return this['listenTo'](_0x29a462,'accept',()=>{this['_updateSuggestionData'](_0xc660b1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x29a462,'discard',()=>{this['_updateSuggestionData'](_0xc660b1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xc660b1,_0x29a462),this['_suggestionState']['set'](_0x29a462,'notReady'),_0x29a462;}['_splitMarkerName'](_0x1dd6be){const _0x11cdec=_0x1dd6be['split'](':');return{'group':_0x11cdec[0x0],'type':_0x11cdec[0x1],'subType':_0x11cdec['length']>=0x5?_0x11cdec[0x2]:null,'id':_0x11cdec['length']<0x5?_0x11cdec[0x2]:_0x11cdec[0x3],'authorId':_0x11cdec['length']<0x5?_0x11cdec[0x3]:_0x11cdec[0x4],'markerCount':0x6==_0x11cdec['length']?_0x11cdec[0x5]:null};}['_breakSuggestionMarker'](_0x5e00a8,_0x5cd628,_0xc0d486){const _0x5307e3=_0x5e00a8['getFirstRange'](),_0x37b9b2=_0x5307e3['start'],_0x4d0baf=_0x5307e3['end'];this['_setSuggestionRange'](_0x5e00a8,this['_model']['createRange'](_0x37b9b2,_0x5cd628));const _0x144854=_0x31b5c7(),_0x1a6e5d=_0x5e00a8['creator']['id'],_0x131481=_0x5e00a8['type']+(_0x5e00a8['subType']?':'+_0x5e00a8['subType']:'');this['_setSuggestionData']({'id':_0x144854,'type':_0x131481,'createdAt':new Date(),'authorId':_0x1a6e5d,'originalSuggestionId':_0x5e00a8['id'],'attributes':_0x5e00a8['attributes'],'data':_0x5e00a8['data']});const _0x33b2dc=this['_getAttributeKey'](_0x5e00a8);('formatBlock'==_0x5e00a8['type']||_0x33b2dc&&this['_isBlockAttribute'](_0x33b2dc))&&(_0xc0d486=this['_model']['createPositionBefore'](_0xc0d486['parent'])),this['_addSuggestionMarker'](_0x131481,_0x144854,_0x1a6e5d,this['_model']['createRange'](_0xc0d486,_0x4d0baf));}['_findSuggestions'](_0x1e2362,_0x1d9616=null){const _0x112332=[],_0x3511a1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1e2362)||(_0x1e2362=[_0x1e2362]);for(const _0x30f00e of this['getSuggestions']()){if(!_0x30f00e['isInContent'])continue;if(_0x1d9616&&_0x30f00e['type']!=_0x1d9616)continue;let _0x5bb6ed=!0x1;for(const _0x941981 of _0x30f00e['getRanges']()){for(const _0x4bc3ca of _0x1e2362){const _0x57f7f1=_0x4bc3ca['start']['isEqual'](_0x941981['end'])||_0x4bc3ca['end']['isEqual'](_0x941981['start']);if(_0x57f7f1||_0x4bc3ca['getIntersection'](_0x941981)){const _0x2361a5=_0x4bc3ca['containsRange'](_0x941981)&&Rt(this['_model']['schema'],_0x941981['start'],_0x4bc3ca),_0x404193=_0x941981['containsRange'](_0x4bc3ca)&&Rt(this['_model']['schema'],_0x4bc3ca['start'],_0x941981);_0x112332['push']({'suggestion':_0x30f00e,'meta':{'isOwn':_0x3511a1==_0x30f00e['author'],'isNextTo':_0x57f7f1,'isInsideObject':_0x2361a5,'containsRangeInObject':_0x404193}}),_0x5bb6ed=!0x0;break;}}if(_0x5bb6ed)break;}}return _0x112332;}['_addSuggestionMarker'](_0x9fb614,_0x11626f,_0x502ab8,_0xbbb18f,_0x2832f1){this['_model']['change'](_0x233189=>{let _0x3fb3fd='suggestion:'+_0x9fb614+':'+_0x11626f+':'+_0x502ab8;_0x2832f1&&(_0x3fb3fd=_0x3fb3fd+':'+_0x2832f1),_0x233189['addMarker'](_0x3fb3fd,{'range':_0xbbb18f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x45e844){const _0x3771e5=_0x45e844['previous'],_0x546e62=_0x45e844['next'];_0x45e844['previous']=null,_0x45e844['next']=null,null!=_0x3771e5&&_0x3771e5['next']==_0x45e844&&(_0x3771e5['next']=_0x546e62),null!=_0x546e62&&_0x546e62['previous']==_0x45e844&&(_0x546e62['previous']=_0x3771e5),'ready'==this['_suggestionState']['get'](_0x45e844)&&(this['_suggestionState']['set'](_0x45e844,'removed'),this['fire']('suggestionUnloaded',_0x45e844,_0x3771e5,_0x546e62));}['_setSuggestionData'](_0x434f8e){const _0x245a45=_0x434f8e['id'],_0x35188e=this['addSuggestionData'](_0x434f8e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1a2601=this['editor']['plugins']['get']('PendingActions'),_0x14a774=_0x35188e['hasComments'],_0x3a51a7=_0x35188e['subType']?_0x35188e['type']+':'+_0x35188e['subType']:_0x35188e['type'],_0x6b2bfa=this['editor']['locale'],_0x18f238=_0x1a2601['add'](o(_0x6b2bfa,'PENDING_ACTION_SUGGESTION')),_0x5a904e={'id':_0x245a45,'type':_0x3a51a7,'hasComments':_0x14a774,'data':_0x434f8e['data']||null,'originalSuggestionId':_0x434f8e['originalSuggestionId']||null,'attributes':_0x35188e['attributes']};this['_adapter']['addSuggestion'](_0x5a904e)['then'](_0x57a390=>{_0x35188e['_saved']=!0x0,_0x1a2601['remove'](_0x18f238),_0x57a390&&_0x57a390['createdAt']&&(this['_suggestions']['get'](_0x245a45)['createdAt']=_0x57a390['createdAt']);})['catch'](_0x673982=>{throw _0xa99789('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x35188e['discard']();}),_0x35188e['stopListening'](),this['_suggestions']['delete'](_0x35188e['id']),this['_suggestionState']['delete'](_0x35188e),_0x673982;});}return _0x35188e;}['_isBlockAttribute'](_0x2a36c0){return this['_blockAttributeKeys']['has'](_0x2a36c0);}['_updateSuggestionData'](_0x40a93e,_0x6c64a8){const _0x613f25=this['editor']['plugins']['get']('PendingActions'),_0x52920d=this['getSuggestion'](_0x40a93e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x52920d['_saved']){const _0x1ecce4=_0x613f25['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x40a93e,_0x6c64a8)['then'](()=>{_0x613f25['remove'](_0x1ecce4);});}else _0x52920d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x40a93e,_0x6c64a8);});}}['_getSuggestionData'](_0x17f4c0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa20965('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x17f4c0);}['_handleNewSuggestionMarker'](_0x269aa3){const {id:_0x74a989,type:_0x50d907,subType:_0x42710e,authorId:_0x407800}=this['_splitMarkerName'](_0x269aa3),_0x184e3f=this['_suggestions']['get'](_0x74a989)||this['_createSuggestion'](_0x50d907,_0x42710e,_0x74a989,_0x407800,{});switch(this['_checkSuggestionCorrectness'](_0x184e3f,_0x50d907,_0x42710e,_0x407800),this['_suggestionState']['get'](_0x184e3f)){case'notReady':this['_getSuggestionData'](_0x74a989)['then'](_0x3163b7=>{let _0x8dc8b9=Promise['resolve']();_0x3163b7['hasComments']&&(_0x8dc8b9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x74a989})),_0x8dc8b9['then'](()=>{this['addSuggestionData'](_0x3163b7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x184e3f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x74a989,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x184e3f,'ready'),this['fire']('suggestionLoaded',_0x184e3f);break;case'ready':this['fire']('suggestionChanged',_0x184e3f);}return _0x184e3f['addMarkerName'](_0x269aa3),_0x184e3f;}['_refreshSuggestionsChain'](_0x3f2a9c){const _0x38ee5a=Array['from'](_0x3f2a9c),_0x4dba07=_0x38ee5a['filter'](_0x463eeb=>'attribute'==_0x463eeb['type']);this['_refreshAttributeSuggestionsChain'](_0x4dba07);const _0x1a6845=_0x38ee5a['filter'](_0x22309b=>!_0x22309b['isMultiRange']&&'attribute'!=_0x22309b['type']),_0x21db65=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcbd6ac=>!_0xcbd6ac['isMultiRange']&&'attribute'!=_0xcbd6ac['type']),_0x334c1f=_0x21db65['filter'](_0x4b6487=>!_0x3f2a9c['has'](_0x4b6487)),_0x2dc006=new Map(_0x21db65['map'](_0x35faaa=>[_0x35faaa,this['_suggestionFactory']['getSuggestionCallback'](_0x35faaa['type'],_0x35faaa['subType'],'chain')])),_0x4de446=new Map(_0x21db65['map'](_0x3849d3=>[_0x3849d3,_0x3849d3['getFirstRange']()])),_0x38e9b6=new Set(),_0xe3f24f=new Set();for(let _0x2a2bf0=0x0;_0x2a2bf0<_0x1a6845['length'];_0x2a2bf0++)_0x58bd61(_0x1a6845[_0x2a2bf0],_0x1a6845,_0x2a2bf0+0x1);for(let _0x1d927f=0x0;_0x1d927f<_0x1a6845['length'];_0x1d927f++)_0x58bd61(_0x1a6845[_0x1d927f],_0x334c1f,0x0);const _0x398133=new Set();for(let _0x48c84c=0x0;_0x48c84c<_0x1a6845['length'];_0x48c84c++){const _0x4487a2=_0x1a6845[_0x48c84c];!_0xe3f24f['has'](_0x4487a2)&&_0x4487a2['previous']&&(_0x398133['add'](_0x4487a2['previous']),_0x4487a2['previous']['next']===_0x4487a2&&(_0x4487a2['previous']['next']=null),_0x4487a2['previous']=null),!_0x38e9b6['has'](_0x4487a2)&&_0x4487a2['next']&&(_0x398133['add'](_0x4487a2['next']),_0x4487a2['next']['previous']===_0x4487a2&&(_0x4487a2['next']['previous']=null),_0x4487a2['next']=null);}function _0x58bd61(_0x234b92,_0x383aa4,_0xdb55b3){for(let _0xda63ad=_0xdb55b3;_0xda63ad<_0x383aa4['length'];_0xda63ad++){const _0x47c486=_0xf5fb09(_0x234b92,_0x383aa4[_0xda63ad]);_0x47c486&&(_0x47c486[0x0]['next']=_0x47c486[0x1],_0x47c486[0x1]['previous']=_0x47c486[0x0],_0x38e9b6['add'](_0x47c486[0x0]),_0xe3f24f['add'](_0x47c486[0x1]));}}function _0xf5fb09(_0xb8fd06,_0x4899f1){if(_0xb8fd06['author']['id']!==_0x4899f1['author']['id'])return null;const _0x3210a7=_0x2dc006['get'](_0xb8fd06)(_0xb8fd06,_0x4899f1,_0x4de446['get'](_0xb8fd06),_0x4de446['get'](_0x4899f1));if(!_0x3210a7)return null;return _0x2dc006['get'](_0x4899f1)(_0xb8fd06,_0x4899f1,_0x4de446['get'](_0xb8fd06),_0x4de446['get'](_0x4899f1))?_0x3210a7[0x1]['commentThread']&&_0x3210a7[0x1]['commentThread']['length']?null:_0x3210a7:null;}_0x398133['size']&&this['_refreshSuggestionsChain'](_0x398133);}['_refreshAttributeSuggestionsChain'](_0x3cfea6){if(0x0==_0x3cfea6['length'])return;const _0x53dd75=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42119e=>'attribute'==_0x42119e['type']&&_0x42119e['_isDataLoaded']),_0x5b6f65=[],_0x18e9be=new Map();for(const _0x35c21a of _0x53dd75){const _0x11f09f=_0x2fabcd(_0x35c21a['attributes']);_0x18e9be['has'](_0x11f09f)||(_0x18e9be['set'](_0x11f09f,_0x5b6f65['length']),_0x5b6f65['push']([]));const _0xcbc435=_0x18e9be['get'](_0x11f09f);_0x5b6f65[_0xcbc435]['push'](_0x35c21a);}!(function(){_0x5b6f65['sort']((_0x2ef1a6,_0x34c330)=>{const _0x1081aa=_0x2ef1a6[0x0]['createdAt'],_0x2fb6da=_0x34c330[0x0]['createdAt'];return _0x1081aa==_0x2fb6da?_0x2ef1a6[0x0]['attributes']['groupId']<_0x34c330[0x0]['attributes']['groupId']?-0x1:0x1:_0x1081aa<_0x2fb6da?-0x1:0x1;});for(const _0x4a0767 of _0x5b6f65)_0x4a0767['sort']((_0x255426,_0x1969f5)=>_0x255426['id']<_0x1969f5['id']?-0x1:0x1);}());for(let _0x240989=0x0;_0x240989<_0x5b6f65['length'];_0x240989++){if(0x0==_0x5b6f65[_0x240989]['length'])continue;const _0xd96a68=[];for(let _0x5ea23d=_0x240989+0x1;_0x5ea23d<_0x5b6f65['length'];_0x5ea23d++)0x0!=_0x5b6f65[_0x5ea23d]['length']&&_0x25786b(_0x5b6f65[_0x240989],_0x5b6f65[_0x5ea23d])&&_0xd96a68['push'](_0x5ea23d);for(const _0x3bcbe8 of _0xd96a68)_0x5b6f65[_0x240989]=_0x5b6f65[_0x240989]['concat'](_0x5b6f65[_0x3bcbe8]),_0x5b6f65[_0x3bcbe8]=[];}for(const _0x55aaf5 of _0x5b6f65)for(let _0x3e43a6=0x0;_0x3e43a6<_0x55aaf5['length'];_0x3e43a6++)_0x55aaf5[_0x3e43a6]['next']=_0x55aaf5[_0x3e43a6+0x1]||null;for(const _0x292a45 of _0x5b6f65)for(let _0x5a99fd=0x0;_0x5a99fd<_0x292a45['length'];_0x5a99fd++)_0x292a45[_0x5a99fd]['previous']=_0x292a45[_0x5a99fd-0x1]||null;function _0x25786b(_0xea4edd,_0x430309){if(_0xea4edd[0x0]['attributes']['groupId']!==_0x430309[0x0]['attributes']['groupId']&&_0xea4edd[0x0]['author']!==_0x430309[0x0]['author'])return!0x1;if(!function(_0x44d2cf,_0x22accb){if(!_0x44d2cf['hasComments']&&!_0x22accb['hasComments'])return!0x0;if(_0x44d2cf['hasComments']&&_0x22accb['hasComments'])return!0x1;if(_0x44d2cf['hasComments']&&_0x22accb['createdAt']<_0x44d2cf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x22accb['hasComments']&&_0x44d2cf['createdAt']<_0x22accb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xea4edd[0x0],_0x430309[0x0]))return!0x1;const _0x53ef04=Bt(_0xea4edd[0x0]['attributes'],'groupId'),_0x162fc1=Bt(_0x430309[0x0]['attributes'],'groupId');if(!_0x51dc3c(_0x53ef04,_0x162fc1))return!0x1;return!!_0xea4edd['every'](_0x6840b8=>_0x430309['some'](_0x4a11df=>_0x6840b8['getFirstRange']()['isEqual'](_0x4a11df['getFirstRange']())))&&_0x430309['every'](_0x4e2f24=>_0xea4edd['some'](_0x57a7c7=>_0x4e2f24['getFirstRange']()['isEqual'](_0x57a7c7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5a903d){const _0x200a14=Array['from'](_0x5a903d),_0x5560a9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5689b8=_0x5560a9['filter'](_0x5a2357=>!_0x5a903d['has'](_0x5a2357)),_0x2b72b8=new Map(_0x200a14['map'](_0x38f550=>[_0x38f550,this['_suggestionFactory']['getSuggestionCallback'](_0x38f550['type'],_0x38f550['subType'],'join')])),_0x427283=new Map(_0x5560a9['map'](_0x27aad5=>[_0x27aad5,_0x27aad5['getRanges']()]));for(let _0x48bed6=0x0;_0x48bed6<_0x200a14['length'];_0x48bed6++){if(_0x2f661a(this,_0x200a14[_0x48bed6],_0x200a14,_0x48bed6+0x1))return!0x0;}for(let _0x36b923=0x0;_0x36b923<_0x200a14['length'];_0x36b923++){if(_0x2f661a(this,_0x200a14[_0x36b923],_0x5689b8,0x0))return!0x0;}return!0x1;function _0x2f661a(_0x2bc590,_0x12f095,_0x514ace,_0x6097ef){for(let _0x29bf5f=_0x6097ef;_0x29bf5f<_0x514ace['length'];_0x29bf5f++){const _0xde1c81=_0x514ace[_0x29bf5f];if(_0xde1c81['type']!==_0x12f095['type']||_0xde1c81['author']['id']!==_0x12f095['author']['id']||_0xde1c81['subType']!==_0x12f095['subType'])continue;if(!Pt(_0x12f095,_0xde1c81,['groupId']))continue;if('attribute'==_0x12f095['type']&&_0x12f095['data']['oldValue']!=_0xde1c81['data']['oldValue'])continue;if('attribute'==_0x12f095['type']&&_0x2bc590['_isBlockAttribute'](_0x12f095['data']['key']))continue;if('formatBlock'==_0x12f095['type']){const _0x7f6a91=_0x2bc590['editor']['model'],_0x46b162=_0x12f095['getContainedElement']();if(_0x46b162&&(_0x7f6a91['schema']['isObject'](_0x46b162)||_0x7f6a91['schema']['isLimit'](_0x46b162)))continue;}const _0x3e5405=_0x2b72b8['get'](_0x12f095),_0xb04b78=_0x427283['get'](_0x12f095),_0x4f373d=_0x427283['get'](_0xde1c81),_0x5c71b1=_0x12f095['commentThread']&&_0x12f095['commentThread']['length'],_0x202e16=_0xde1c81['commentThread']&&_0xde1c81['commentThread']['length'];if(!_0x5c71b1&&_0x3e5405(_0x4f373d,_0xb04b78))return _0x2bc590['_joinSuggestions'](_0xde1c81,_0x12f095),_0x427283['delete'](_0x12f095),!0x0;if(!_0x202e16&&_0x3e5405(_0xb04b78,_0x4f373d))return _0x2bc590['_joinSuggestions'](_0x12f095,_0xde1c81),_0x427283['delete'](_0xde1c81),!0x0;}return!0x1;}}['_joinSuggestions'](_0x51fb32,_0x46e9ea){if(_0x51fb32['isMultiRange']){for(const _0x5ca8a5 of _0x46e9ea['getRanges']())_0x51fb32['addRange'](_0x5ca8a5);}else{const _0x21ad38=_0x46e9ea['getFirstRange']()['end'];this['_setSuggestionRange'](_0x51fb32,this['_model']['createRange'](_0x51fb32['getFirstRange']()['start'],_0x21ad38));}_0x46e9ea['removeMarkers']();}['_getMarkerAnnouncementText'](_0x40e350,_0xc5c913){const _0x5584b4=_0x40e350['startsWith']('format')||_0x40e350['startsWith']('attribute')?'FORMATTING':_0x40e350['toUpperCase']();return o(this['editor']['locale'],_0xc5c913+'_'+_0x5584b4+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x3580ff=this['editor'];if(!_0x3580ff['ui'])return;const {ariaLiveAnnouncer:_0x5f6073}=_0x3580ff['ui'];_0x2d00c6(this['_model'],({left:_0x510399,entered:_0x60ce40})=>{for(const _0x3df0ec of _0x510399){const {group:_0x1eec8e,type:_0x5172eb}=this['_splitMarkerName'](_0x3df0ec['name']);if('suggestion'===_0x1eec8e){_0x5f6073['announce'](this['_getMarkerAnnouncementText'](_0x5172eb,'LEAVE'));break;}}for(const _0x2b1aad of _0x60ce40){const {group:_0x3eaa65,type:_0xd4fb9b}=this['_splitMarkerName'](_0x2b1aad['name']);if('suggestion'===_0x3eaa65){_0x5f6073['announce'](this['_getMarkerAnnouncementText'](_0xd4fb9b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5bed1b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x322411=this['editor'],_0x38bb75=_0x322411['model']['document']['differ']['getChanges']();if(0x0==_0x38bb75['length'])return!0x1;const _0x2097fe=[],_0x33666c=_0x38bb75['filter'](_0x370f42=>'attribute'==_0x370f42['type']),_0x550049=_0x38bb75['filter'](_0xf198df=>'insert'==_0xf198df['type']&&'$text'!=_0xf198df['name']),_0x3e67c0=_0x38bb75['filter'](_0x11d4f8=>'remove'==_0x11d4f8['type']&&'$text'!=_0x11d4f8['name']);for(const _0xf606a8 of _0x33666c)_0x2097fe['push']({'key':_0xf606a8['attributeKey'],'newValue':_0xf606a8['attributeNewValue'],'oldValue':_0xf606a8['attributeOldValue'],'range':Ot(_0xf606a8['range'],_0x322411['model'])});for(const _0xfb3bb8 of _0x550049){const _0x3cc646=_0x3e67c0['find'](_0x227b1b=>_0x227b1b['position']['isEqual'](_0xfb3bb8['position']));_0x3cc646&&_0x2097fe['push']({'key':m,'newValue':_0xfb3bb8['name'],'oldValue':_0x3cc646['name'],'range':_0x322411['model']['createRangeOn'](_0xfb3bb8['position']['nodeAfter'])});}return 0x0!=_0x2097fe['length']&&this['_reduceExistingSuggestions'](_0x5bed1b,_0x2097fe);}['_processAttributeSuggestions'](_0x9488aa){let _0x528a16=!0x1;const _0x2211d1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4f8e4b=>_0x4f8e4b['data']['newRange']&&_0x4f8e4b['name']['startsWith']('suggestion:attribute:'));for(const _0x315857 of _0x2211d1){const {subType:_0xcf5865,id:_0x23273b}=this['_splitMarkerName'](_0x315857['name']),_0x2f91ed=_0xcf5865['split']('|')[0x0];for(const _0x45ddd1 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x45ddd1['id']!=_0x23273b&&'attribute'==_0x45ddd1['type']&&_0x45ddd1['data']&&_0x45ddd1['data']['key']==_0x2f91ed&&_0x45ddd1['getFirstRange']()['isIntersecting'](_0x315857['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x45ddd1,_0x315857['data']['newRange'],_0x9488aa),_0x528a16=!0x0);}return _0x528a16;}['_recordAttributeChanges'](_0x116a95){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x116a95();}['_isRegisteredAttribute'](_0x195b5d){const _0x162f58=this['_isBlockAttribute'](_0x195b5d),_0x5afe21=this['_inlineAttributeKeys']['has'](_0x195b5d);return _0x162f58||_0x5afe21;}['_reduceExistingSuggestions'](_0x1e4ab5,_0x19ad63){if(0x0==_0x19ad63['length'])return!0x1;let _0x2b7afb=!0x1;for(const _0x1b1217 of _0x19ad63){const _0x508430=this['_findSuggestions'](_0x1b1217['range'],'attribute')['filter'](_0xb6023a=>!_0xb6023a['meta']['isNextTo'])['map'](_0x18a7f5=>_0x18a7f5['suggestion']),_0x13f5de=_0x2fabcd({'newValue':_0x1b1217['newValue']});_0x508430['filter'](_0x6f3fd0=>{const [_0x133d55,_0x531568]=_0x6f3fd0['subType']['split']('|');return _0x133d55==_0x1b1217['key']&&_0x531568!=_0x13f5de;})['forEach'](_0x510656=>{this['_reduceSuggestionAttributeRange'](_0x510656,_0x1b1217['range'],_0x1e4ab5),_0x2b7afb=!0x0;});}return _0x2b7afb;}['_reduceSuggestionAttributeRange'](_0x454626,_0x399b1f,_0x142ed0){const _0x146947=_0x454626['getFirstRange']()['getDifference'](_0x399b1f);0x0!==_0x146947['length']?0x1!==_0x146947['length']?this['_breakSuggestionMarker'](_0x454626,_0x399b1f['start'],_0x399b1f['end']):this['_setSuggestionRange'](_0x454626,_0x146947[0x0]):_0x142ed0['removeMarker'](_0x454626['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x261ae5){this['_editor']=_0x261ae5,this['_model']=_0x261ae5['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4a4cf9,_0x536b57,_0x32fb46,_0xc4a4fe,_0x15632a,_0x32ba56){return new u(this['_model'],{'type':_0x4a4cf9,'subType':_0x536b57,'id':_0x32fb46,'author':_0xc4a4fe,'creator':_0xc4a4fe,'attributes':_0x15632a,'onAttributesChange':_0x32ba56,'onAccept':(..._0x16f7b1)=>this['getSuggestionCallback'](_0x4a4cf9,_0x536b57,'accept')(..._0x16f7b1),'onDiscard':(..._0x468ff5)=>this['getSuggestionCallback'](_0x4a4cf9,_0x536b57,'discard')(..._0x468ff5)});}['registerCustomCallback'](_0x130f23,_0x31b74b,_0x4a4d75,_0x3ca44e){const _0x1fc6fa=_0x130f23+':'+_0x31b74b+':'+_0x4a4d75;this['_customCallbacks']['set'](_0x1fc6fa,_0x3ca44e);}['getSuggestionCallback'](_0x12619a,_0x40802a,_0x326c90){const _0x46424a=_0x12619a+':'+_0x40802a+':'+_0x326c90;return this['_customCallbacks']['get'](_0x46424a)||this['_defaultCallbacks']['get'](_0x12619a+':'+_0x326c90);}['_registerDefaultCallbacks'](){const _0x3d8c91=()=>!0x1,_0x1d730e=_0x4f8edc=>{_0x4f8edc['sort']((_0x3a19cc,_0x494166)=>_0x3a19cc['start']['isBefore'](_0x494166['start'])?0x1:-0x1),this['_model']['change'](_0x5e9e23=>{for(const _0x47fbfe of _0x4f8edc){let _0x32052b;_0x32052b=_0x47fbfe['end']['isAtEnd']&&_0x47fbfe['end']['parent']==_0x47fbfe['start']['nodeAfter']?_0x5e9e23['createSelection'](_0x47fbfe['start']['nodeAfter'],'on'):_0x5e9e23['createSelection'](_0x47fbfe),this['_model']['deleteContent'](_0x32052b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x509460=(_0x1ed31e,_0x275c8e)=>{_0x275c8e&&this['_model']['change'](_0x5532c3=>{const {commandName:_0x462383,commandParams:_0xb58709=[]}=_0x275c8e,_0x22f4f2=_0x1ed31e['map'](_0x5a9b8e=>(Tt(_0x5a9b8e)&&(_0x5a9b8e=this['_model']['createRange'](_0x5a9b8e['end'])),_0x5a9b8e))['filter'](_0x505a6e=>'$graveyard'!==_0x505a6e['root']['rootName']);if(_0x22f4f2['length']<0x1)return;const _0x2fad35=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3bc761=>_0x5c6df6['fromRange'](_0x3bc761));_0x5532c3['setSelection'](_0x22f4f2);for(const _0x5af031 of this['_editor']['commands']['commands']())_0x5af031['refresh']();_0xb58709['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x462383,..._0xb58709);const _0x18d9cd=_0x2fad35['filter'](_0x14dcbd=>'$graveyard'!=_0x14dcbd['root']['rootName']);_0x18d9cd['length']>0x0&&_0x5532c3['setSelection'](_0x18d9cd);for(const _0x46f330 of _0x2fad35)_0x46f330['detach']();});},_0x4ef9b6=(_0x470a34,_0x112e7e)=>0x1==_0x470a34['length']&&0x1==_0x112e7e['length']&&_0x470a34[0x0]['end']['isEqual'](_0x112e7e[0x0]['start']),_0x141746=(_0x54278c,_0x3f4a1f,_0x58c90f,_0x49b5b3)=>Ft(_0x54278c,_0x3f4a1f,_0x58c90f,_0x49b5b3,this['_model'])?[_0x54278c,_0x3f4a1f]:Ft(_0x3f4a1f,_0x54278c,_0x49b5b3,_0x58c90f,this['_model'])?[_0x3f4a1f,_0x54278c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3d8c91),this['_defaultCallbacks']['set']('insertion:discard',_0x1d730e),this['_defaultCallbacks']['set']('insertion:join',_0x4ef9b6),this['_defaultCallbacks']['set']('insertion:chain',_0x141746),this['_defaultCallbacks']['set']('deletion:accept',_0x1d730e),this['_defaultCallbacks']['set']('deletion:discard',_0x3d8c91),this['_defaultCallbacks']['set']('deletion:join',_0x4ef9b6),this['_defaultCallbacks']['set']('deletion:chain',_0x141746),this['_defaultCallbacks']['set']('formatInline:accept',_0x509460),this['_defaultCallbacks']['set']('formatInline:discard',_0x3d8c91),this['_defaultCallbacks']['set']('formatInline:join',_0x4ef9b6),this['_defaultCallbacks']['set']('formatInline:chain',_0x3d8c91),this['_defaultCallbacks']['set']('formatBlock:accept',_0x509460),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3d8c91),this['_defaultCallbacks']['set']('formatBlock:join',_0x4ef9b6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3d8c91),this['_defaultCallbacks']['set']('attribute:accept',_0x3d8c91),this['_defaultCallbacks']['set']('attribute:discard',(_0x5368df,_0xe0591)=>{if(!_0xe0591)return;const _0x34560c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1a1734=>{if(_0xe0591['key']==m)for(const _0x38470e of _0x5368df){const _0x4325c2=_0x38470e['start']['nodeAfter'],_0x1104e4=_0xe0591['oldValue'];_0x1a1734['rename'](_0x4325c2,_0x1104e4);}else{if(_0x34560c['_isBlockAttribute'](_0xe0591['key'])){for(const _0x406212 of _0x5368df)void 0x0!==_0xe0591['oldValue']?_0x1a1734['setAttribute'](_0xe0591['key'],_0xe0591['oldValue'],_0x406212['start']['nodeAfter']):_0x1a1734['removeAttribute'](_0xe0591['key'],_0x406212['start']['nodeAfter']);}else{for(const _0x582a40 of _0x5368df)_0xe0591['oldValue']?_0x1a1734['setAttribute'](_0xe0591['key'],_0xe0591['oldValue'],_0x582a40):_0x1a1734['removeAttribute'](_0xe0591['key'],_0x582a40);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4ef9b6);}}function Rt(_0x331919,_0xfcbad8,_0x1bf1f2){for(const _0x3b10c8 of _0xfcbad8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3b10c8['root']==_0x3b10c8)return!0x1;if(!_0x1bf1f2['containsItem'](_0x3b10c8))return!0x1;if(_0x331919['isObject'](_0x3b10c8)||_0x331919['isLimit'](_0x3b10c8))return!0x0;}return!0x1;}function Tt(_0x2eec76){return _0x2eec76['end']['parent']==_0x2eec76['start']['nodeAfter']&&_0x2eec76['end']['isAtStart'];}function Et(_0x43cdd8,_0x5cb892,_0x1fb425,_0x5c7dc0){const _0x3b2394=_0x3c980d=>!_0x3c980d['item']['is']('$textProxy')&&!_0x5c7dc0['isObject'](_0x3c980d['item']),_0x3530fe=_0x43cdd8['start']['getLastMatchingPosition'](_0x3b2394),_0xd569f9=_0x43cdd8['end']['getLastMatchingPosition'](_0x3b2394,{'direction':'backward'});return(!_0x43cdd8['start']['isEqual'](_0x3530fe)||!_0x43cdd8['end']['isEqual'](_0xd569f9))&&(_0x3530fe['isBefore'](_0xd569f9)?_0x1fb425['updateMarker'](_0x5cb892,{'range':_0x1fb425['createRange'](_0x3530fe,_0xd569f9)}):_0x1fb425['removeMarker'](_0x5cb892),!0x0);}function Vt(_0x2b1ce3){return _0x2fabcd(_0x2b1ce3);}function Ut(_0x411b73){const _0x19e6a9=_0x411b73['start']['nodeAfter'];return _0x19e6a9&&_0x19e6a9['is']('element');}function Ot(_0x5925b0,_0x132883){return null==_0x5925b0['end']['nodeBefore']&&_0x5925b0['end']['parent']==_0x5925b0['start']['nodeAfter']?Gt(_0x5925b0['start']['nodeAfter'],_0x132883):_0x5925b0;}function Gt(_0x160366,_0x674024){const _0x5ad9fb=_0x674024['schema']['isObject'](_0x160366)||_0x674024['schema']['isSelectable'](_0x160366);return _0x674024['createRange'](_0x674024['createPositionAt'](_0x160366,'before'),_0x5ad9fb?_0x674024['createPositionAfter'](_0x160366):_0x674024['createPositionAt'](_0x160366,'end'));}function Ft(_0x58b34d,_0x520650,_0x5091a4,_0x15fee9,_0xac4d78){if(!Pt(_0x58b34d,_0x520650))return!0x1;if(_0x5091a4['end']['isEqual'](_0x15fee9['start']))return!0x0;if(_0x58b34d['type']!=_0x520650['type'])return!0x1;if(!_0x5091a4['end']['isTouching'](_0x15fee9['start']))return!0x1;const _0x3d9c09=_0xac4d78['createRange'](_0x5091a4['end'],_0x15fee9['start'])['getWalker']();for(const _0x1b70d3 of _0x3d9c09)if(['elementStart','elementEnd']['includes'](_0x1b70d3['type'])&&_0xac4d78['schema']['isLimit'](_0x1b70d3['item']))return!0x1;return!0x0;}function Pt(_0x278454,_0xf94665,_0x5918e1=[]){return!(!_0x278454['_isDataLoaded']||!_0xf94665['_isDataLoaded'])&&_0x51dc3c(Bt(_0x278454['attributes'],_0x5918e1),Bt(_0xf94665['attributes'],_0x5918e1));}function Lt(_0x5a4218,_0x5d817b){const _0x47c3aa=Ht(_0x5a4218['attributes']),_0x3efd14=Ht(_0x5d817b);if(!_0x5a4218['_isDataLoaded'])return!0x1;for(const _0x15da8f of Object['keys'](_0x3efd14))if(!_0x51dc3c(_0x47c3aa[_0x15da8f],_0x3efd14[_0x15da8f]))return!0x1;return!0x0;}function Ht(_0x2dcb53){const _0x350bcf=Object['assign']({},_0x2dcb53);return delete _0x350bcf['skipNestingCheck'],delete _0x350bcf['tablePasteChainId'],_0x350bcf;}class oe extends/* #__PURE__ -- @preserve */
25
- _0xa1020c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x407077,_0x47bdf5,_0x2b8cb5,_0x3db0d8){super(),this['model']=_0x47bdf5,this['view']=_0x2b8cb5,this['commentThreadController']=_0x3db0d8,this['_editor']=_0x407077,this['_acceptCommand']=_0x407077['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x407077['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x100621,_0x1c2672)=>_0x100621||_0x1c2672),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x53a363=>_0x53a363&&this['_editor']['model']['canEditAt'](_0x47bdf5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x191146=>_0x191146&&this['_editor']['model']['canEditAt'](_0x47bdf5['getRanges']())),this['_pendingAction']=null,_0x2b8cb5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2b8cb5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2b8cb5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2b8cb5,'change:isDirty',()=>{_0x2b8cb5['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 _0x35f914=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35f914);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x2a9dfe{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x47895a,_0x508045,_0x51f7bd,_0x2ec272){super(_0x47895a),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x508045['authoredAt']),this['bind']('authoredAt')['to'](_0x508045),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x508045,this['_localUser']=_0x51f7bd,this['_config']=_0x2ec272,_0x2ec272['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x427a6c}=this['_config'];this['commentsListView']=new _0x427a6c(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',_0x1d82e7=>_0x1d82e7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1ecf17,_0x4e8549)=>_0x1ecf17||!!_0x4e8549);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5e7b5a}=this['_config'],_0x15ae1c=new _0x5e7b5a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2d903f=_0x15ae1c['commentInputView'];return _0x15ae1c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2d903f,'value',(_0x90b842,_0xffa68e,_0x295218)=>!!_0x295218||_0x90b842&&!_0xffa68e),_0x2d903f['on']('submit',(_0x22a5d2,_0x2589e4)=>{this['fire']('addComment',_0x2589e4),_0x2d903f['editor']['setData']('');}),_0x2d903f['on']('cancel',()=>this['focus']()),_0x2d903f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x15ae1c;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0xf508cd,_0x472397,_0x2fe91d,_0xdf1cb6){super(_0xf508cd,_0x472397,_0x2fe91d,_0xdf1cb6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x44b7b7=>_0x44b7b7&&_0x44b7b7[0x0]?_0x44b7b7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x40c61a,_0x564a6e)=>{let _0x34fea8='';for(const _0x4dd829 of _0x40c61a)_0x34fea8+='<p>'+ds(_0x4dd829['content'],_0x4dd829['color'])+'</p>';return _0x564a6e?_0x34fea8:_0x3b4d3c(_0x34fea8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0xf508cd,'Accept\x20suggestion'),_0x49b702['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0xf508cd,'Discard\x20suggestion'),_0x49b702['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x504157(_0xf508cd,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x9bb4cf=this['bindTemplate'],_0x38a902=[{'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']}},{'tag':'time','attributes':{'datetime':_0x9bb4cf['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x9bb4cf['to']('authoredAt',_0x4ee7fc=>this['_config']['formatDateTime'](_0x4ee7fc))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x38a902['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x33dea6={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x9bb4cf['if']('isActive','ck-suggestion-wrapper--active'),_0x9bb4cf['to']('type',_0x23a797=>'ck-suggestion-'+_0x23a797),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x38a902}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x33dea6['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x33dea6;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x287244,_0x4e647b,_0x50ac23)=>{this['_descriptionElement']['innerHTML']=_0x50ac23;});}['_createButton'](_0x447d9f,_0x381c2f,_0x2aeaeb,_0x1d6fb6,_0x4d4def){const _0x2268da=new _0x22ece9(this['locale']);return _0x2268da['set']({'label':_0x447d9f,'icon':_0x381c2f,'tooltip':!0x0,'tooltipPosition':_0x4d4def}),_0x2268da['extendTemplate']({'attributes':{'class':_0x2aeaeb}}),_0x2268da['on']('execute',()=>{this['fire'](_0x1d6fb6,this['_model']['id']);}),_0x2268da;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x46a863,_0x53a6cd){let _0x1c06cc='';return _0x1c06cc+=_0x46a863['split']('*')['map']((_0x5f03b3,_0x4f1d49)=>_0x4f1d49%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5f03b3)+'</span>':us(_0x5f03b3))['join'](''),_0x53a6cd&&(_0x1c06cc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x53a6cd['value']+'\x22\x20title=\x22'+_0x53a6cd['title']+'\x22></span>'),_0x1c06cc;}function us(_0x4f9361){const _0x48a659=document['createElement']('span');return _0x48a659['innerText']=_0x4f9361,_0x48a659['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x2e9f32{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x9070af,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1d2c71){super(_0x1d2c71),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2e49d9=this['editor']['config'];_0x2e49d9['define']('trackChanges.SuggestionThreadView',ne),_0x2e49d9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2e49d9['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5d295b,_0x398dc1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x27f051,_0xc1fc92]of this['_handleControllerBuffer']){const _0x581bf1=this['_suggestionToController']['has'](_0x27f051);_0x581bf1||_0xc1fc92?_0x581bf1&&_0xc1fc92&&this['_destroyController'](_0x27f051):this['_initializeController'](_0x27f051);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5d295b,_0x398dc1);}['init'](){const _0x518318=this['editor'],_0x5a340e=_0x518318['plugins']['get']('TrackChangesEditing'),_0x3cfda6=_0x518318['plugins']['get']('Annotations'),_0x49aa13=_0x518318['plugins']['get']('EditorAnnotations'),_0x5be367=_0x518318['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x49aa13['addSourceCollector'](()=>{const _0x47d551=[];for(const [_0x4c559f,_0x28cddc]of Array['from'](this['_suggestionToController'])){const _0x537041=_0x4c559f['getAllAdjacentSuggestions'](),_0x36fabc=[];for(const _0x17e0c5 of _0x537041){if(!_0x17e0c5['isInContent'])continue;if(_0x17e0c5['isMultiRange']){_0x36fabc['push'](..._0x17e0c5['getRanges']());continue;}const _0x2ad019=_0x17e0c5['getFirstRange']();if(_0x36fabc['length']>0x0){const _0x351a44=_0x36fabc[0x0]['getJoined'](_0x2ad019);if(_0x351a44){_0x36fabc[0x0]=_0x351a44;continue;}}_0x36fabc['push'](_0x2ad019);}_0x47d551['push']([_0x28cddc['view'],_0x36fabc]);}return _0x47d551;}),this['listenTo'](_0x5a340e,'suggestionLoaded',(_0xea7696,_0x5bd609)=>{this['listenTo'](_0x5bd609,'change:previous',(_0x4b6167,_0x411b5f,_0x256f24,_0x59de24)=>{_0x5bd609['isInContent']&&(null==_0x256f24?(this['_updateController'](_0x59de24['head']),this['_handleSuggestionControllerDelayed'](_0x5bd609,!0x1)):(this['_updateController'](_0x256f24['head']),null==_0x59de24&&this['_handleSuggestionControllerDelayed'](_0x5bd609,!0x0)));}),null!==_0x5bd609['previous']?this['_updateController'](_0x5bd609['head']):this['_handleSuggestionControllerDelayed'](_0x5bd609,!0x1);}),this['listenTo'](_0x5a340e,'suggestionUnloaded',(_0x301720,_0x3f0cac,_0x58d226)=>{this['stopListening'](_0x3f0cac,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3f0cac),this['_suggestionToController']['has'](_0x3f0cac)&&this['_destroyController'](_0x3f0cac),_0x58d226&&this['_updateController'](_0x58d226['head']);}),this['listenTo'](_0x5a340e,'suggestionChanged',(_0x4b21e4,_0xd00cc0)=>{this['_updateController'](_0xd00cc0);}),this['listenTo'](_0x3cfda6,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5be367,'addComment',(_0xdffbfd,{threadId:_0x52d1ed,isFromAdapter:_0x1f15df})=>{if(_0x1f15df||!_0x5a340e['hasSuggestion'](_0x52d1ed))return;const _0x270d3a=_0x5a340e['getSuggestion'](_0x52d1ed);this['_suggestionToController']['get'](_0x270d3a)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x12f365=this['editor']['plugins']['get']('Annotations'),_0x4c75e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f7f02=Array['from'](_0x12f365['activeAnnotations'],_0x17b0b4=>_0x17b0b4['innerView'])['filter'](_0x3a4d48=>this['_viewToController']['has'](_0x3a4d48)),_0x4a5f07=[];for(const _0x1e1ab0 of _0x4f7f02){const _0x207a96=this['_viewToController']['get'](_0x1e1ab0)['model']['getAllAdjacentSuggestions']();_0x4a5f07['push'](..._0x207a96['reduce']((_0x4aa029,_0x315189)=>[..._0x4aa029,..._0x315189['getMarkerNames']()],[]));}_0x4c75e5['activeMarkers']=_0x4a5f07;}['_addUIComponentsToFactory'](){const _0xb3af7d=this['editor'],_0x5ea263=_0xb3af7d['locale'],_0x11752a=o(_0x5ea263,'Track\x20changes'),_0x51e633=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x11752a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5ea263,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5ea263,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5ea263,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x5ea263,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x237990 of _0x51e633)if(ae(_0x237990)){const _0x5ac2ef=_0xb3af7d['commands']['get'](_0x237990['model']['commandName']);_0x237990['model']['bind']('isOn','isEnabled')['to'](_0x5ac2ef,'value','isEnabled');}_0xb3af7d['ui']['componentFactory']['add']('trackChanges',_0x43051e=>this['_createToolbarButton'](_0x43051e,_0x51e633,_0x11752a)),_0xb3af7d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2e84c9=>this['_createMenuBarMenu'](_0x2e84c9,_0x51e633,_0x11752a));}['_createToolbarButton'](_0x208e66,_0x2215a8,_0x557e7d){const _0xf57ae5=zt(_0x208e66,Zt),_0x3d80f5=this['editor']['commands']['get']('trackChanges');_0xf57ae5['buttonView']['set']({'tooltip':_0x557e7d,'label':_0x557e7d,'icon':ie}),_0xf57ae5['buttonView']['bind']('isOn')['to'](_0x3d80f5,'value'),_0xf57ae5['buttonView']['on']('execute',()=>{_0x3d80f5['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0xf57ae5,_0x2215a8,{'role':'menu'});const _0xba0f77=[];for(const _0x4dba52 of _0x2215a8)ae(_0x4dba52)&&_0xba0f77['push'](this['editor']['commands']['get'](_0x4dba52['model']['commandName']));const _0x2bfd32=_0xf57ae5['buttonView'];return _0x2bfd32['actionView']['unbind']('isEnabled'),_0x2bfd32['arrowView']['unbind']('isEnabled'),_0x2bfd32['actionView']['bind']('isEnabled')['to'](_0x3d80f5,'isEnabled'),_0x2bfd32['arrowView']['bind']('isEnabled')['toMany'](_0xba0f77,'isEnabled',(..._0x2b3e54)=>_0x2b3e54['some'](_0x60a56f=>_0x60a56f)),_0xf57ae5['on']('execute',_0xf8e04e=>{this['editor']['execute'](_0xf8e04e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xf57ae5;}['_createMenuBarMenu'](_0x139486,_0x52d973,_0x2ef78a){const _0x22ba23=new Kt(_0x139486),_0x4ce176=this['editor']['commands']['get']('trackChanges');_0x22ba23['buttonView']['set']({'label':_0x2ef78a,'icon':ie});const _0x1feb5a=new Qt(_0x139486);for(const _0x43f6fc of _0x52d973){if('separator'==_0x43f6fc['type']){_0x1feb5a['items']['add'](new Jt(_0x139486));continue;}const _0x5f1da5=new Xt(_0x139486,_0x22ba23),_0x2564c7=new Yt(_0x139486),_0x1b0ce9=_0x43f6fc['model'];_0x2564c7['bind'](...Object['keys'](_0x1b0ce9))['to'](_0x1b0ce9),_0x2564c7['delegate']('execute')['to'](_0x22ba23),_0x2564c7['on']('execute',()=>{this['editor']['execute'](_0x1b0ce9['commandName']),this['editor']['editing']['view']['focus']();}),_0x5f1da5['children']['add'](_0x2564c7),_0x1feb5a['items']['add'](_0x5f1da5);}return _0x22ba23['bind']('isEnabled')['to'](_0x4ce176,'isEnabled'),_0x22ba23['panelView']['children']['add'](_0x1feb5a),_0x22ba23;}['_initializeController'](_0x170f66){const _0x23a6d8=this['editor'],_0x2085fe=_0x23a6d8['config'],_0x107716=_0x23a6d8['plugins']['get']('Annotations'),_0x2efc2e=_0x23a6d8['plugins']['get']('CommentsRepository'),_0x528ea6=_0x23a6d8['plugins']['get']('EditorAnnotations'),_0x2b531e=_0x23a6d8['plugins']['get'](_0x9070af)['me'],_0x43d038=_0x2085fe['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x57bb59,CommentThreadInputView:_0x234368}=_0x23a6d8['plugins']['get']('CommentsUI');let _0x554041,_0x217235;this['_annotationViews']['has'](_0x170f66['id'])?(_0x217235=this['_annotationViews']['get'](_0x170f66['id']),_0x554041=_0x217235['mainView']):(_0x554041=new _0x43d038(_0x23a6d8['locale'],_0x170f66,_0x2b531e,{'disableComments':this['_disableComments'],'editorConfig':_0x2085fe['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2085fe['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2085fe['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2085fe['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2ef10f(_0x2085fe['get']('locale')),'CommentView':_0x2085fe['get']('comments')['CommentView'],'CommentsListView':_0x57bb59,'CommentThreadInputView':_0x234368}),_0x554041['acceptButton']['on']('execute',()=>{_0x23a6d8['editing']['view']['focus']();}),_0x554041['discardButton']['on']('execute',()=>{_0x23a6d8['editing']['view']['focus']();}),_0x217235=_0x107716['createAnnotationView'](this['editor']['locale'],_0x554041),_0x217235['bind']('isDirty')['to'](_0x554041,'isDirty'),_0x217235['bind']('length')['to'](_0x554041),_0x217235['bind']('type')['to'](_0x554041,'type',_0x3aa4c9=>'suggestion-'+_0x3aa4c9),this['_annotationViews']['set'](_0x170f66['id'],_0x217235));const _0x35bb7f=_0x2efc2e['createCommentThreadController'](_0x170f66['commentThread'],_0x554041),_0x512adb=new oe(_0x23a6d8,_0x170f66,_0x554041,_0x35bb7f),_0x2357f6=_0x170f66['getAllAdjacentSuggestions']()['filter'](_0x2d1a91=>_0x2d1a91['isInContent']);_0x554041['descriptionParts']=_0x23a6d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2357f6),this['_suggestionToController']['set'](_0x170f66,_0x512adb),this['_viewToController']['set'](_0x554041,_0x512adb);const _0xf87b22=_0x107716['createAnnotation']({'view':_0x217235,'target':()=>{const _0x5d6f58=[],_0x5e0ece=_0x170f66['getAllAdjacentSuggestions']()['filter'](_0x2560f1=>_0x2560f1['isInContent']);for(const _0x4a54f4 of _0x5e0ece)_0x5d6f58['push'](..._0x4a54f4['getMarkers']());return _0x2b2b5b(_0x23a6d8['editing'],_0x5d6f58);},'type':()=>'suggestion-'+_0x512adb['view']['type']});_0x2efc2e['_bindAnnotationToEditors'](_0x554041,_0xf87b22),_0x107716['add'](_0xf87b22),_0x528ea6['registerAnnotation'](_0xf87b22);}['_destroyController'](_0x490af9){const _0x3dd488=this['editor']['plugins']['get']('CommentsRepository'),_0x50c303=this['editor']['plugins']['get']('Annotations'),_0x3132e4=this['_suggestionToController']['get'](_0x490af9),_0x14d4e3=_0x3132e4['view'],_0x3432f7=_0x50c303['getByInnerView'](_0x14d4e3);_0x3dd488['_unbindEditors'](_0x14d4e3),_0x3432f7&&_0x50c303['remove'](_0x3432f7),this['_suggestionToController']['delete'](_0x490af9),this['_viewToController']['delete'](_0x14d4e3),_0x3132e4['destroy']();}['_updateController'](_0x197003){if(!_0x197003['isInContent']||!this['_suggestionToController']['has'](_0x197003))return;const _0xc483ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x478ad4=this['_suggestionToController']['get'](_0x197003),_0x579fbf=_0x197003['getAllAdjacentSuggestions']();_0x478ad4['view']['descriptionParts']=_0xc483ab['descriptionFactory']['getDescriptions'](_0x579fbf);}['destroy'](){for(const _0x3d01c7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3d01c7);for(const _0xdf3859 of this['_annotationViews']['values']())_0xdf3859['mainView']['destroy']();super['destroy']();}}function ae(_0x573e4a){return'model'in _0x573e4a;}class k extends _0x2e9f32{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x51f343){this['editor']['plugins']['get'](p)['adapter']=_0x51f343;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x20d8e0){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x20d8e0);}['getSuggestions']({skipNotAttached:_0xb16fac=!0x1,toJSON:_0x3c53a1=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xb16fac,'toJSON':_0x3c53a1});}['getSuggestion'](_0x2e37c5){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2e37c5);}}const T=['Pagination'];class P extends _0x2e9f32{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x580c84=this['editor'];if(_0x580c84['config']['define']('trackChangesData.editorCreator',_0x23e902=>{const _0x5742ee=_0x580c84['model']['document']['getRootNames']()['reduce']((_0x13e534,_0x32e380)=>(_0x13e534[_0x32e380]='',_0x13e534),{});return _0x580c84['constructor']['create'](_0x5742ee,_0x23e902);}),'function'!=typeof _0x580c84['config']['get']('trackChangesData')['editorCreator'])throw new _0xa20965('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b6f57){return N(this['editor'],!0x0,_0x5b6f57);}['getDataWithDiscardedSuggestions'](_0x369f68){return N(this['editor'],!0x1,_0x369f68);}}class D extends _0x2e9f32{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x25ee08){super(_0x25ee08),this['result']='end';}['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 v(_0x5e4693){return void 0x0!==_0x5e4693['getRootsAttributes'];}async function N(_0x4cde07,_0x50302e,_0x4d2ba5){const _0xb29fbb=_0x43b559(_0x4cde07,T);_0xb29fbb['plugins']['push'](p,D),_0xb29fbb['rootsAttributes']=v(_0x4cde07)?_0x4cde07['getRootsAttributes']():void 0x0;const _0x1fcc48=document['createDocumentFragment'](),_0x4eef5d=_0x4cde07['config']['get']('trackChangesData')['editorCreator'],_0x192cf6=await _0x4eef5d(_0xb29fbb,()=>function(_0x21a9d9){const _0xbeef3=document['createElement']('div');return _0x21a9d9['appendChild'](_0xbeef3),_0xbeef3;}(_0x1fcc48));!function(_0xb9dc92,_0x3e2348){const _0x57cda6=_0xb9dc92['model']['document']['getRootNames']()['reduce']((_0x107d78,_0x3ae507)=>(_0x107d78[_0x3ae507]=_0xb9dc92['data']['get']({'rootName':_0x3ae507}),_0x107d78),{}),_0x15c6ec=_0xb9dc92['plugins']['get']('Users')['users']['map'](_0x225aad=>({'id':_0x225aad['id'],'name':_0x225aad['name']})),_0x2754b5=_0xb9dc92['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x58cf3a=_0xb9dc92['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c6580=_0x3e2348['plugins']['get']('Users'),_0x23fb64=_0x3e2348['plugins']['get']('TrackChangesEditing'),_0x17b31f=_0x3e2348['plugins']['get']('CommentsRepository');for(const _0x403a8c of _0x15c6ec)_0x2c6580['getUser'](_0x403a8c['id'])||_0x2c6580['addUser'](_0x403a8c);_0x2c6580['me']||_0x2c6580['useAnonymousUser']();for(const _0x19b40b of _0x58cf3a)_0x17b31f['addCommentThread'](_0x19b40b);for(const _0x2956ef of _0x2754b5)_0x23fb64['addSuggestionData'](_0x2956ef);_0x3e2348['data']['set'](_0x57cda6);}(_0x4cde07,_0x192cf6),_0x192cf6['execute'](_0x50302e?'acceptAllSuggestions':'discardAllSuggestions');const _0x5d2f3b=v(_0x192cf6)?_0x192cf6['getFullData'](_0x4d2ba5):_0x192cf6['data']['get'](_0x4d2ba5);return await _0x192cf6['destroy'](),_0x5d2f3b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x5ed9bd,PendingActions as _0x8f02a5,icons as _0x40529a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x39a7b6,ObservableMixin as _0x4fcb90,uid as _0x51081b,insertToPriorityArray as _0x18dde6,priorities as _0x278b8c,logWarning as _0x7e7fb,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3b0c52,View as _0xa792ac,ButtonView as _0x3071f5,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5144de,hashObject as _0x434c54,surroundingMarkersDetector as _0x5aa8bc,trimHtml as _0x183dd9,UserView as _0x2bea37,getDateTimeFormatter as _0x26a677,getAllMarkersDomElementsSorted as _0x135c5c,sanitizeEditorConfig as _0x135372}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4552b8,LiveRange as _0x4022b5,LivePosition as _0x5b3ae2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x483a9d,toWidget as _0x3ff097}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x7c9ba0,set as _0xdfd286,isEqual as _0x554b56,unset as _0x4e3712,omit as Bt}from'lodash-es';import{Delete as _0x245170,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x190152,ShiftEnter as _0x433e09}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x4e133a,_0x24b4d6){super(_0x4e133a),this['_enabledCommands']=_0x24b4d6,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 _0x5bc736 of this['editor']['commands']['commands']())_0x5bc736['affectsData']&&!this['_enabledCommands']['has'](_0x5bc736)&&_0x5bc736['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x358f96 of this['editor']['commands']['commands']())_0x358f96['affectsData']&&!this['_enabledCommands']['has'](_0x358f96)&&_0x358f96['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x13c0d5,_0x12cca2){super(_0x13c0d5),this['_suggestions']=_0x12cca2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xe6727c){const _0x3f61a1=this['_suggestions']['get'](_0xe6727c);if(!_0x3f61a1)throw new _0x39a7b6('track-changes-accept-suggestion-not-found',this);const _0x2940c2=_0x3f61a1['getRanges']();this['editor']['model']['canEditAt'](_0x2940c2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3f61a1);}}class B extends ts{['_suggestions'];constructor(_0x763c2f,_0x536d92){super(_0x763c2f),this['_suggestions']=_0x536d92,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1426b2){const _0x3e6e79=this['_suggestions']['get'](_0x1426b2);if(!_0x3e6e79)throw new _0x39a7b6('track-changes-discard-suggestion-not-found',this);const _0x34610d=_0x3e6e79['getRanges']();this['editor']['model']['canEditAt'](_0x34610d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3e6e79);}}function ss(_0x3e4810){return _0x3e4810['sort']((_0x24dd7f,_0x272644)=>'deletion'==_0x24dd7f['type']&&'deletion'!=_0x272644['type']?-0x1:'deletion'!=_0x24dd7f['type']&&'deletion'==_0x272644['type']?0x1:0x0);}function to(_0x1a7212,_0x34ec56){let _0x1de75c,_0x1ab780=0x0;const _0x213294=[],_0x4c6a06=_0x34ec56['schema'];for(;_0x1ab780<_0x1a7212['length'];){const _0x72602b=_0x1a7212[_0x1ab780],_0x4f3534=_0x1a7212[_0x1ab780+0x1];_0x1de75c||(_0x1de75c=_0x34ec56['createPositionBefore'](_0x72602b)),co(_0x34ec56,_0x72602b,_0x4f3534)||(_0x213294['push'](_0x34ec56['createRange'](_0x1de75c,_0x4c6a06['isObject'](_0x72602b)?_0x34ec56['createPositionAfter'](_0x72602b):_0x34ec56['createPositionAt'](_0x72602b,'end'))),_0x1de75c=null),_0x1ab780++;}return _0x213294;}function co(_0x3bbcd7,_0x1eb3d1,_0x40f636){if(!_0x40f636)return!0x1;const _0x3e1437=_0x3bbcd7['createPositionAfter'](_0x1eb3d1),_0x32b587=_0x3bbcd7['createPositionBefore'](_0x40f636);return _0x3e1437['isTouching'](_0x32b587);}function rs(_0x2a77d5,_0x23673c,_0x2002b1){for(;_0x2002b1['length'];){const _0x3c2371=_0x2002b1['splice'](0x0,0x64);_0x2a77d5['change'](()=>{for(const _0x337ef4 of _0x3c2371)_0x337ef4['isInContent']&&_0x23673c['execute'](_0x337ef4['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3c3687,_0x1a3b3e,_0x44c0f2){super(_0x3c3687),this['_command']=_0x1a3b3e,this['_suggestions']=_0x44c0f2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1cedce=Array['from'](this['_suggestions']['values']())['some'](_0x31252f=>_0x31252f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1cedce;}['execute'](){const _0x28df8c=ss(Array['from'](this['_suggestions']['values']()));for(const _0xf59e4e of _0x28df8c){const _0x377452=_0xf59e4e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x377452))return;}rs(this['editor']['model'],this['_command'],_0x28df8c);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x19ef49,_0x3761de,_0xbf3b67){super(_0x19ef49),this['_command']=_0x3761de,this['_suggestions']=_0xbf3b67,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x235c25=this['editor']['model']['document']['selection'],_0x24f32d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1c0f9e,_0x36f434){const _0x1207ea=Array['from'](_0x1c0f9e['getRanges']()),_0x531584=new Set();for(const _0x216540 of _0x36f434)if(_0x216540['isInContent']){for(const _0x4681a8 of _0x1207ea)for(const _0x61b816 of _0x216540['getRanges']())(_0x4681a8['isIntersecting'](_0x61b816)||_0x1c0f9e['isCollapsed']&&!_0x216540['isMultiRange']&&_0x216540['next']&&_0x61b816['end']['isTouching'](_0x4681a8['start']))&&_0x531584['add'](_0x216540);}return _0x531584;}(_0x235c25,_0x24f32d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x281fff=ss(Array['from'](this['_selectedSuggestions']));for(const _0xdd7f3c of _0x281fff){const _0x563103=_0xdd7f3c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x563103))return;}rs(this['editor']['model'],this['_command'],_0x281fff);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x4fcb90(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x167270,_0x20ef95){super(),this['id']=_0x20ef95['id'],this['type']=_0x20ef95['type'],this['subType']=_0x20ef95['subType']||null,this['author']=_0x20ef95['author'],this['creator']=_0x20ef95['creator']||_0x20ef95['author'],this['isExternal']=Boolean(_0x20ef95['attributes']&&_0x20ef95['attributes']['@external']),this['data']=null,this['_model']=_0x167270,this['_onAccept']=_0x20ef95['onAccept'],this['_onDiscard']=_0x20ef95['onDiscard'],this['_onAttributesChange']=_0x20ef95['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x20ef95['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 _0x39fe18=this;for(;_0x39fe18['previous'];)_0x39fe18=_0x39fe18['previous'];return _0x39fe18;}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'](_0xa58f40){this['_markerNames']['add'](_0xa58f40);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x36fe87=>this['_model']['markers']['get'](_0x36fe87))['filter'](_0x333f4a=>_0x333f4a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x382643=>{for(const _0x416f53 of this['getMarkers']())_0x382643['removeMarker'](_0x416f53);}),this['_markerNames']['clear']();}['removeMarker'](_0x2ac1b6){this['_model']['change'](_0x374b68=>{_0x374b68['removeMarker'](_0x2ac1b6);}),this['_markerNames']['delete'](_0x2ac1b6);}['addRange'](_0x307f76){const _0x2bc618='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2bc618),this['_model']['change'](_0x3441cd=>{_0x3441cd['addMarker'](_0x2bc618,{'range':_0x307f76,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x103970){for(const _0x290c61 of this['getRanges']())if(_0x290c61['isIntersecting'](_0x103970))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x24e9e5=>_0x24e9e5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x242bab,_0x20376e)=>[..._0x242bab,..._0x20376e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x56ee0d=this['getRanges']();if(0x1!=_0x56ee0d['length'])return null;const _0x518ba4=_0x56ee0d[0x0],_0x359be7=_0x518ba4['start']['nodeAfter'],_0x15547f=_0x518ba4['end']['nodeBefore'];return _0x359be7 instanceof _0x4552b8?_0x359be7!=_0x15547f?null:_0x359be7: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 _0x187285=[];let _0x11ee0a=this['head'];for(;_0x11ee0a;)_0x187285['push'](_0x11ee0a),_0x11ee0a=_0x11ee0a['next'];return _0x187285;}['setAttribute'](_0x429ec5,_0x55e41f){const _0x866bfa=_0x7c9ba0(this['attributes']);_0xdfd286(_0x866bfa,_0x429ec5,_0x55e41f),_0x554b56(_0x866bfa,this['attributes'])||(this['attributes']=_0x866bfa,this['_onAttributesChange'](_0x866bfa));}['removeAttribute'](_0x327c28){const _0x4ee085=_0x7c9ba0(this['attributes']);_0x4e3712(_0x4ee085,_0x327c28),_0x554b56(_0x4ee085,this['attributes'])||(this['attributes']=_0x4ee085,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 _0x51081b()['substr'](0x1,0x5);}}function o(_0x1bf77b,_0xd35300,_0x38cb5c){const t=_0x1bf77b['t'];switch(_0xd35300){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'*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',_0x38cb5c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x38cb5c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x38cb5c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x38cb5c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x38cb5c);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',_0x38cb5c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x38cb5c);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x38cb5c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x38cb5c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x38cb5c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x38cb5c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x38cb5c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x38cb5c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x38cb5c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x38cb5c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x38cb5c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x38cb5c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x38cb5c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x38cb5c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x38cb5c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x38cb5c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x38cb5c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x38cb5c);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'},_0x38cb5c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x38cb5c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x38cb5c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x38cb5c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x38cb5c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x38cb5c);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'},_0x38cb5c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x38cb5c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x38cb5c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x38cb5c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x38cb5c);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'},_0x38cb5c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x38cb5c);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'},_0x38cb5c);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x38cb5c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x38cb5c);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'},_0x38cb5c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x38cb5c);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'},_0x38cb5c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x38cb5c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x38cb5c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x38cb5c);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x38cb5c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xd35300;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1da32d,_0x7d6608){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1da32d,this['_locale']=_0x7d6608;}['getDescriptions'](_0x3fbe10){const _0x42b6c8=[],_0x11002d=new Set(),_0x1979ae=new Set();for(let _0x5300bf=0x0;_0x5300bf<_0x3fbe10['length'];_0x5300bf++){const _0x3c4ce9=_0x3fbe10[_0x5300bf];if(!_0x3c4ce9['isInContent'])continue;const _0x1dd0df=this['_handleCustomCallbackDescription'](_0x3c4ce9);if(_0x1dd0df){if(null!=_0x3c4ce9['subType']){if(_0x11002d['has'](_0x3c4ce9['subType']))continue;_0x11002d['add'](_0x3c4ce9['subType']);}_0x42b6c8['push'](_0x1dd0df);}else{if('attribute'!=_0x3c4ce9['type'])'insertion'!=_0x3c4ce9['type']&&'deletion'!=_0x3c4ce9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x42b6c8,_0x3c4ce9,_0x3fbe10[_0x5300bf+0x1]);else{const _0x1530c9=_0x3c4ce9['data']['key'];if(_0x1979ae['has'](_0x1530c9))continue;_0x1979ae['add'](_0x3c4ce9['data']['key']),_0x1530c9==m?this['_handleRenameSuggestionDescription'](_0x42b6c8,_0x3c4ce9):this['_handleAttributeSuggestionDescription'](_0x42b6c8,_0x3c4ce9);}}}return this['_resolveDescriptionItems'](_0x42b6c8);}['registerDescriptionCallback'](_0x471045){this['_customCallbacks']['push'](_0x471045);}['registerElementLabel'](_0x539039,_0x101525,_0x3ea3b8=_0x278b8c['normal']){'function'==typeof _0x539039?_0x18dde6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x539039,'label':_0x101525,'priority':_0x3ea3b8}):this['_itemLabels']['set'](_0x539039,_0x101525);}['registerAttributeLabel'](_0x4849c8,_0x5a5e31){this['_attributeLabels']['set'](_0x4849c8,_0x5a5e31);}['getItemLabel'](_0x15d74c,_0x36fc17=0x1){let _0x28f9d4;for(const _0x37f971 of this['_itemLabelsCallbacks'])if(_0x37f971['matchingCallback'](_0x15d74c)){_0x28f9d4=_0x37f971['label'];break;}return _0x28f9d4||(_0x28f9d4=this['_itemLabels']['get'](_0x15d74c['name'])),_0x28f9d4?_0x28f9d4(_0x36fc17):0x1!==_0x36fc17?_0x36fc17+'\x20'+_0x15d74c['name']+'s':''+_0x15d74c['name'];}['_addDescriptionItems'](_0x10dedf,_0x2d54ff){const _0xb4b93e=_0x2d54ff['getFirstRange']()['getWalker'](),_0x1765c9='insertion'==_0x2d54ff['type']?'add':'remove';for(const _0xe8dbed of _0xb4b93e){const _0x1e8ef5=_0xe8dbed['item'],_0x30a2b4=_0x10dedf[_0x10dedf['length']-0x1];if(_0x1e8ef5['is']('$textProxy'))_0x30a2b4&&_0x30a2b4['type']['indexOf']('Container')>-0x1&&_0x10dedf['pop'](),_0x30a2b4&&'text'==_0x30a2b4['type']?_0x30a2b4[_0x1765c9]+=_0x1e8ef5['data']:_0x10dedf['push']({'type':'text','add':'add'==_0x1765c9?_0x1e8ef5['data']:'','remove':'remove'==_0x1765c9?_0x1e8ef5['data']:''});else{if(this['_schema']['isObject'](_0x1e8ef5)){const _0x5d65eb=_0x1e8ef5;if(_0x30a2b4&&_0x30a2b4['type']['indexOf']('Container')>-0x1&&_0x10dedf['pop'](),'elementEnd'==_0xe8dbed['type'])continue;_0x30a2b4&&_0x30a2b4['type']==_0x1765c9+'Object'&&_0x30a2b4['element']['name']==_0x5d65eb['name']?_0x30a2b4['quantity']++:_0x10dedf['push']({'type':_0x1765c9+'Object','element':_0x5d65eb,'quantity':0x1}),_0xb4b93e['skip'](_0x2027db=>!('elementEnd'==_0x2027db['type']&&_0x2027db['item']==_0x1e8ef5));}else{if(this['_schema']['checkChild'](_0x1e8ef5,'$text')||_0x1e8ef5['is']('element','softBreak')){const _0x52d0cf=_0x1e8ef5;if('add'==_0x1765c9&&'elementStart'==_0xe8dbed['type']||'remove'==_0x1765c9&&'elementEnd'==_0xe8dbed['type'])continue;if(_0x30a2b4&&-0x1==_0x30a2b4['type']['indexOf']('Container')){'text'==_0x30a2b4['type']&&(_0x30a2b4[_0x1765c9]+='\x0a');continue;}let _0x50b112;if(_0x50b112='add'==_0x1765c9?_0x52d0cf['nextSibling']&&!this['_schema']['isObject'](_0x52d0cf['nextSibling'])?_0x52d0cf['nextSibling']:null:_0x52d0cf['previousSibling']&&!this['_schema']['isObject'](_0x52d0cf['previousSibling'])?_0x52d0cf['previousSibling']:null,_0x52d0cf['isEmpty']||_0x50b112&&_0x50b112['isEmpty']){const _0x1c7a45=_0x50b112&&_0x50b112['isEmpty']?_0x50b112:_0x52d0cf;_0x30a2b4&&_0x30a2b4['type']==_0x1765c9+'EmptyContainer'&&_0x30a2b4['element']['name']==_0x1c7a45['name']?_0x30a2b4['quantity']++:_0x10dedf['push']({'type':_0x1765c9+'EmptyContainer','element':_0x1c7a45,'quantity':0x1});}else _0x10dedf['push']({'type':_0x1765c9+'Container','element':_0x52d0cf});}}}}}['_resolveDescriptionItems'](_0x4c4ffd){const _0x29071f=this['_locale'],_0x512975=[],_0x559d70=[],_0x5ca422=[];for(const _0x5405e1 of _0x4c4ffd)switch(_0x5405e1['type']){case'text':if(_0x5405e1['add']=_0x5405e1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5405e1['remove']=_0x5405e1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5405e1['add']&&''!=_0x5405e1['remove']){_0x512975['push']({'type':'replace','content':o(_0x29071f,'REPLACE_TEXT',['\x22'+_0x5405e1['remove']+'\x22','\x22'+_0x5405e1['add']+'\x22'])});continue;}if(null!=_0x5405e1['add']['match'](/^ +$/)){_0x512975['push']({'type':'insertion','content':o(_0x29071f,'*Insert:*\x20%0',o(_0x29071f,'ELEMENT_SPACE',_0x5405e1['add']['length']))});continue;}if(null!=_0x5405e1['remove']['match'](/^ +$/)){_0x512975['push']({'type':'deletion','content':o(_0x29071f,'*Remove:*\x20%0',o(_0x29071f,'ELEMENT_SPACE',_0x5405e1['remove']['length']))});continue;}if(''!=_0x5405e1['add']){_0x512975['push']({'type':'insertion','content':o(_0x29071f,'*Insert:*\x20%0','\x22'+_0x5405e1['add']+'\x22')});continue;}_0x512975['push']({'type':'deletion','content':o(_0x29071f,'*Remove:*\x20%0','\x22'+_0x5405e1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x512975['push']({'type':'insertion','content':o(_0x29071f,'*Insert:*\x20%0',this['getItemLabel'](_0x5405e1['element'],_0x5405e1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x512975['push']({'type':'deletion','content':o(_0x29071f,'*Remove:*\x20%0',this['getItemLabel'](_0x5405e1['element'],_0x5405e1['quantity']))});continue;case'addContainer':_0x512975['push']({'type':'insertion','content':o(_0x29071f,'*Split:*\x20%0',this['getItemLabel'](_0x5405e1['element'],_0x5405e1['quantity']))});continue;case'removeContainer':_0x512975['push']({'type':'deletion','content':o(_0x29071f,'*Merge:*\x20%0',this['getItemLabel'](_0x5405e1['element'],_0x5405e1['quantity']))});continue;case'addFormat':_0x559d70['push'](_0x5405e1['key']);continue;case'removeFormat':_0x5ca422['push'](_0x5405e1['key']);continue;default:_0x512975['push'](_0x5405e1);}if(_0x559d70['length']){const _0xe26e42=_0x559d70['map'](_0xf599cf=>this['_attributeLabels']['has'](_0xf599cf)?this['_attributeLabels']['get'](_0xf599cf):_0xf599cf)['join'](',\x20');_0x512975['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xe26e42)});}if(_0x5ca422['length']){const _0x14cb60=_0x5ca422['map'](_0x46e990=>this['_attributeLabels']['has'](_0x46e990)?this['_attributeLabels']['get'](_0x46e990):_0x46e990)['join'](',\x20');_0x512975['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x14cb60)});}return _0x512975;}['_handleCustomCallbackDescription'](_0x179159){for(const _0x253d68 of this['_customCallbacks']){const _0x1b9ba7=_0x253d68(_0x179159);if(_0x1b9ba7&&'type'in _0x1b9ba7)return _0x1b9ba7;}}['_handleAttributeSuggestionDescription'](_0x4a1862,_0x5705b9){const _0x58e696=_0x5705b9['data'],_0x3035b3=void 0x0===_0x58e696['newValue']?'removeFormat':'addFormat';_0x4a1862['push']({'type':_0x3035b3,'key':_0x58e696['key']});}['_handleRenameSuggestionDescription'](_0x30bc7c,_0x41d919){_0x30bc7c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x41d919['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x11750e,_0x26d3fa,_0x1d987f){if(this['_addDescriptionItems'](_0x11750e,_0x26d3fa),_0x1d987f&&_0x1d987f['getFirstRange']()&&!_0x26d3fa['getFirstRange']()['end']['isEqual'](_0x1d987f['getFirstRange']()['start'])){const _0x576aea=_0x11750e[_0x11750e['length']-0x1],_0x5ca355='insertion'==_0x26d3fa['type']?'add':'remove';_0x576aea&&'text'==_0x576aea['type']&&(_0x576aea[_0x5ca355]+='\x0a');}}}class E extends _0x5ed9bd{['afterInit'](){const _0x46abb7=this['editor'],_0x4510cd=_0x46abb7['plugins']['get']('TrackChangesEditing');_0x46abb7['commands']['get']('showAIAssistant')&&_0x4510cd['enableCommand']('showAIAssistant');}}class V extends _0x5ed9bd{['afterInit'](){const _0x29a494=this['editor'],_0x18592=_0x29a494['locale'];if(!_0x29a494['plugins']['has']('AlignmentEditing'))return;const _0x57be5a=_0x29a494['plugins']['get']('TrackChangesEditing');_0x57be5a['enableDefaultAttributesIntegration']('alignment'),_0x57be5a['registerBlockAttribute']('alignment'),_0x57be5a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x18592,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ea6ca=this['editor'],_0x501696=_0x4ea6ca['locale'];_0x4ea6ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222604=>{if('formatBlock'!=_0x222604['type'])return;const {data:_0x4e539a}=_0x222604;if(_0x4e539a&&'alignment'==_0x4e539a['commandName']){const _0x5b4863=_0x4e539a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x501696,'*Format:*\x20%0',function(_0x5acc7e){switch(_0x5acc7e){case'left':return o(_0x501696,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x501696,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x501696,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x501696,'FORMAT_JUSTIFY_TEXT');}}(_0x5b4863))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5ed9bd{['afterInit'](){const _0x254f29=this['editor'],_0x32be64=_0x254f29['plugins']['get']('TrackChangesEditing'),_0x2a3831=_0x254f29['locale'];for(const _0x2f2e67 of ti){if(!_0x254f29['plugins']['has'](_0x2f2e67))continue;const _0x2c9784=_0x2f2e67['slice'](0x0,-0x7)['toLowerCase'](),_0x122987='FORMAT_'+_0x2c9784['toUpperCase']();_0x32be64['enableDefaultAttributesIntegration'](_0x2c9784),_0x32be64['registerInlineAttribute'](_0x2c9784),_0x32be64['descriptionFactory']['registerAttributeLabel'](_0x2c9784,o(_0x2a3831,_0x122987));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b3bb1=this['editor'],_0x186c3e=_0x4b3bb1['locale'],_0x1f8320=_0x4b3bb1['plugins']['get']('TrackChangesEditing');function _0x4199c8(_0x4aa822,_0x46740c){_0x1f8320['descriptionFactory']['registerDescriptionCallback'](_0x1d3ed1=>{if('formatInline'!=_0x1d3ed1['type'])return;const {data:_0x494da8}=_0x1d3ed1;return _0x494da8&&_0x494da8['commandName']===_0x4aa822?_0x494da8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x186c3e,'*Format:*\x20%0',_0x46740c)}:{'type':'format','content':o(_0x186c3e,'*Remove\x20format:*\x20%0',_0x46740c)}:void 0x0;});}_0x4199c8('bold',o(_0x186c3e,'FORMAT_BOLD')),_0x4199c8('italic',o(_0x186c3e,'FORMAT_ITALIC')),_0x4199c8('underline',o(_0x186c3e,'FORMAT_UNDERLINE')),_0x4199c8('code',o(_0x186c3e,'FORMAT_CODE')),_0x4199c8('strikethrough',o(_0x186c3e,'FORMAT_STRIKETHROUGH')),_0x4199c8('subscript',o(_0x186c3e,'FORMAT_SUBSCRIPT')),_0x4199c8('superscript',o(_0x186c3e,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5ed9bd{['afterInit'](){const _0x42138b=this['editor'],_0x4e4cc1=_0x42138b['locale'];if(!_0x42138b['plugins']['has']('BlockQuoteEditing'))return;const _0x54d396=_0x42138b['plugins']['get']('TrackChangesEditing'),_0x56b183=this['editor']['commands']['get']('blockQuote');_0x54d396['enableCommand']('blockQuote',(_0xab408e,_0x8c55d1={})=>{const _0x558251=this['editor']['model']['document']['selection'],_0x53cd99=_0x8c55d1&&void 0x0!==_0x8c55d1['forceValue']?_0x8c55d1['forceValue']:!_0x56b183['value'];let _0xd18c58=[];if(_0x53cd99){const _0x1228f3=Array['from'](_0x558251['getSelectedBlocks']())['filter'](_0x5b264a=>oo(_0x5b264a)||function(_0x7f5f52,_0x22b62a){const _0x3ffead=_0x22b62a['checkChild'](_0x7f5f52['parent'],'blockQuote'),_0x5b3ebe=_0x22b62a['checkChild'](['$root','blockQuote'],_0x7f5f52);return _0x3ffead&&_0x5b3ebe;}(_0x5b264a,this['editor']['model']['schema']));_0xd18c58=to(_0x1228f3,_0x42138b['model']);}else{const _0x1bddcb=Array['from'](_0x558251['getSelectedBlocks']())['filter'](_0xccf05a=>oo(_0xccf05a));_0xd18c58=to(_0x1bddcb,_0x42138b['model']);}_0x42138b['model']['change'](()=>{for(const _0x593f40 of _0xd18c58)_0x54d396['markBlockFormat'](_0x593f40,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x53cd99}]});});}),_0x54d396['descriptionFactory']['registerDescriptionCallback'](_0x48788d=>{const {data:_0x52a8da}=_0x48788d;if(_0x52a8da&&'blockQuote'==_0x52a8da['commandName']){const _0x571e79=o(_0x4e4cc1,'ELEMENT_BLOCK_QUOTE');return _0x52a8da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e4cc1,'*Set\x20format:*\x20%0',_0x571e79)}:{'type':'format','content':o(_0x4e4cc1,'*Remove\x20format:*\x20%0',_0x571e79)};}});}}function oo(_0x2ea017){return'blockQuote'==_0x2ea017['parent']['name'];}class G extends _0x5ed9bd{['afterInit'](){const _0x1fe70d=this['editor'];_0x1fe70d['plugins']['has']('CaseChange')&&(_0x1fe70d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1fe70d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1fe70d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x5ed9bd{['afterInit'](){const _0xb2d646=this['editor'];_0xb2d646['commands']['get']('ckbox')&&_0xb2d646['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5ed9bd{['afterInit'](){const _0xb004c5=this['editor'];if(!_0xb004c5['plugins']['has']('CodeBlock'))return;const _0x48968f=_0xb004c5['plugins']['get']('TrackChangesEditing'),_0x505ff9=_0xb004c5['locale'],_0x205765=_0xb004c5['config']['get']('codeBlock')['languages'],_0xcf2528=_0xb004c5['commands']['get']('codeBlock');_0x48968f['enableCommand']('indentCodeBlock'),_0x48968f['enableCommand']('outdentCodeBlock'),_0x48968f['enableCommand']('codeBlock',(_0x158286,_0x5981e0={})=>{const _0x5588a6=_0xb004c5['model'],_0x2c5d2c=_0xb004c5['model']['document']['selection'],_0x46ccb3=_0x5981e0&&void 0x0!==_0x5981e0['forceValue']?_0x5981e0['forceValue']:!_0xcf2528['value'];let _0x303ab2;_0x5981e0['language']||(_0x5981e0['language']=_0x205765[0x0]['language']),_0x303ab2=_0x46ccb3?Array['from'](_0x2c5d2c['getSelectedBlocks']())['filter'](_0x5a6eae=>eo(_0x5a6eae)||function(_0xe1a8f7,_0xa22a81){if(_0xe1a8f7['is']('rootElement')||_0xa22a81['isLimit'](_0xe1a8f7))return!0x1;return _0xa22a81['checkChild'](_0xe1a8f7['parent'],'codeBlock');}(_0x5a6eae,_0x5588a6['schema'])):Array['from'](_0x2c5d2c['getSelectedBlocks']())['filter'](_0x189436=>eo(_0x189436));const _0x321680=to(_0x303ab2,_0x5588a6);_0x5588a6['change'](()=>{for(const _0x5c232c of _0x321680)_0x48968f['markBlockFormat'](_0x5c232c,{'commandName':'codeBlock','commandParams':[{..._0x5981e0,'forceValue':_0x46ccb3}],'formatGroupId':'blockName'});});}),(_0x48968f['descriptionFactory']['registerElementLabel']('codeBlock',_0x55ec34=>o(_0x505ff9,'ELEMENT_CODE_BLOCK',_0x55ec34)),_0x48968f['descriptionFactory']['registerDescriptionCallback'](_0x4cd3dd=>{if('formatBlock'!=_0x4cd3dd['type'])return;const _0x5a12af=_0x505ff9['t'],{data:_0x2b1ebc}=_0x4cd3dd;if(!_0x2b1ebc||'codeBlock'!=_0x2b1ebc['commandName'])return;const _0x2579be=_0x2b1ebc['commandParams'][0x0]['language'],_0x26ed90=_0x5a12af(_0x205765['find'](_0xd684b5=>_0xd684b5['language']===_0x2579be)['label'])['toLowerCase']();return _0x2b1ebc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x505ff9,'*Set\x20format:*\x20%0',o(_0x505ff9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x26ed90+')')}:{'type':'format','content':o(_0x505ff9,'*Remove\x20format:*\x20%0',o(_0x505ff9,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5aa6d4){return'codeBlock'==_0x5aa6d4['name'];}class H extends _0x5ed9bd{['afterInit'](){const _0x166374=this['editor'];if(!_0x166374['plugins']['has']('CommentsEditing'))return;_0x166374['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x13277f,_0xfbf612,_0x13ea4c){const _0x275f39=[];for(const _0x5d5867 of _0xfbf612['getItems']())_0x5d5867['hasAttribute'](_0x13277f)&&_0x275f39['push'](_0x13ea4c['createRangeOn'](_0x5d5867));return _0x275f39;}function _e(_0x3902d5,_0x44be8f,{showActiveMarker:_0x241fde=!0x0}={}){const _0x57c157=_0x3902d5['plugins']['get']('TrackChangesEditing');return(_0x2717f9,_0x5bd902,_0x2d46c9)=>{if(!_0x2d46c9['consumable']['test'](_0x5bd902['markerRange'],_0x2717f9['name']))return;const _0x29a6ad=_0x5bd902['markerRange']['getWalker'](),_0x1c9043=_0x5bd902['markerRange']['start'],_0x41069b=_0x3902d5['model']['schema'];let _0x52946e=null,_0x202028=null,_0x2825ef=!0x1,_0x461d69=!0x1;for(const _0xc21fdf of _0x29a6ad){const _0xc5e465=_0xc21fdf['item'];_0x2825ef=_0x2825ef||_0x41069b['isContent'](_0xc5e465);const _0x1024ae=_0x2d46c9['mapper']['toViewElement'](_0xc5e465);if(_0x1024ae&&_0x1024ae['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xc21fdf['type']&&(_0x41069b['isBlock'](_0xc5e465)&&!_0x41069b['isLimit'](_0xc5e465)&&(_0xc5e465['nextSibling']||_0x1c9043['isAtEnd']?_0x52946e&&_0x52946e['parent']==_0xc5e465||(_0x52946e=_0xc5e465,_0x5afd02(_0xc21fdf['previousPosition']),_0x461d69=!0x0):_0x202028=_0x202028||_0xc21fdf['previousPosition']));}function _0x5afd02(_0x5a30b2){const _0x81ca95=_0x2d46c9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x44be8f}),_0x1b6d22=_0x2d46c9['mapper']['toViewPosition'](_0x5a30b2);_0x241fde&&_0x57c157['activeMarkers']['includes'](_0x5bd902['markerName'])&&_0x2d46c9['writer']['addClass']('ck-suggestion-marker--active',_0x81ca95),_0x2d46c9['writer']['insert'](_0x1b6d22,_0x81ca95),_0x2d46c9['mapper']['bindElementToMarker'](_0x81ca95,_0x5bd902['markerName']);}_0x2825ef||_0x461d69||!_0x202028||_0x5afd02(_0x202028);};}class q extends _0x5ed9bd{static get['requires'](){return[_0x245170];}['init'](){const _0x91edc0=this['editor'],_0x3b0768=_0x91edc0['plugins']['get']('TrackChangesEditing');_0x3b0768['enableCommand']('delete');const _0x39a7ee=_0x91edc0['commands']['get']('deleteForward');_0x3b0768['enableCommand']('deleteForward',(_0x416a74,_0x998bcc={})=>{const _0x2ea95e=_0x91edc0['model']['createSelection'](_0x91edc0['model']['document']['selection']);_0x2ea95e['isCollapsed']&&_0x91edc0['model']['modifySelection'](_0x2ea95e,{'direction':'forward','unit':_0x998bcc['unit']});const _0x3a068d=_0x2ea95e['getFirstRange'](),_0x2c36e3=_0x4022b5['fromRange'](_0x3a068d);let _0x16dd85;_0x416a74(_0x998bcc),_0x16dd85='$graveyard'==_0x2c36e3['root']['rootName']?_0x91edc0['model']['createRange'](_0x3a068d['start']):_0x91edc0['model']['createRange'](_0x2c36e3['start'],_0x2c36e3['end']),_0x2c36e3['detach'](),_0x91edc0['model']['enqueueChange'](_0x39a7ee['buffer']['batch'],_0x320c99=>{_0x39a7ee['buffer']['lock'](),_0x320c99['setSelection'](_0x320c99['createRange'](_0x16dd85['end'])),_0x39a7ee['buffer']['unlock']();});}),_0x91edc0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x91edc0,'merge'),{'priority':'high'}),_0x91edc0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1d49dd,_0x14ca28,_0xc07dc1)=>{_0xc07dc1['options']['showSuggestionHighlights']&&_e(_0x91edc0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1d49dd,_0x14ca28,_0xc07dc1);},{'priority':'high'}),_0x91edc0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3c3dcc,_0x2c6889,_0x437025)=>{const _0x47e0eb=_0x437025['mapper']['markerNameToElements'](_0x2c6889['markerName']);if(_0x47e0eb){for(const _0x53e7d6 of _0x47e0eb)_0x53e7d6['is']('uiElement')&&(_0x437025['mapper']['unbindElementFromMarkerName'](_0x53e7d6,_0x2c6889['markerName']),_0x437025['writer']['remove'](_0x53e7d6));}},{'priority':'high'});}}class z extends _0x5ed9bd{['afterInit'](){const _0x97c4fe=this['editor'];if(!_0x97c4fe['plugins']['has']('ListEditing'))return;const _0x453a19=_0x97c4fe['locale'],_0x4ced95=_0x97c4fe['plugins']['get']('TrackChangesEditing'),_0x341bf9=_0x97c4fe['plugins']['has']('TodoListEditing'),_0x58b3a7=!!_0x97c4fe['config']['get']('list.multiBlock');function _0x23cb71(_0x4049be){return{'type':'format','content':''+o(_0x453a19,'*Set\x20format:*\x20%0',_0x4049be)};}function _0x317cff(_0x5187ae){return{'type':'format','content':''+o(_0x453a19,'*Remove\x20format:*\x20%0',_0x5187ae)};}_0x4ced95['enableDefaultAttributesIntegration']('numberedList'),_0x4ced95['enableDefaultAttributesIntegration']('bulletedList'),_0x4ced95['enableDefaultAttributesIntegration']('customNumberedList'),_0x4ced95['enableDefaultAttributesIntegration']('customBulletedList'),_0x4ced95['enableDefaultAttributesIntegration']('indentList'),_0x4ced95['enableDefaultAttributesIntegration']('outdentList'),_0x4ced95['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4ced95['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4ced95['registerBlockAttribute']('listItemId'),_0x4ced95['registerBlockAttribute']('listType'),_0x4ced95['registerBlockAttribute']('listIndent'),_0x58b3a7&&(_0x4ced95['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4ced95['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x341bf9&&(_0x4ced95['enableDefaultAttributesIntegration']('todoList'),_0x4ced95['enableDefaultAttributesIntegration']('checkTodoList'),_0x4ced95['registerBlockAttribute']('todoListChecked'),_0x4ced95['descriptionFactory']['registerDescriptionCallback'](_0x39940b=>{const {data:_0x823857}=_0x39940b;if(_0x823857&&'todoListChecked'==_0x823857['key'])return{'type':'format','content':_0x823857['newValue']?o(_0x453a19,'*Check\x20item*'):o(_0x453a19,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3079cb=>{if(_0x3079cb['batch']['isUndo'])return!0x1;let _0x40ffe4=!0x1;const _0x5acaa5=_0x4ced95['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46cc25=>'todoListChecked'===_0x4ced95['_getAttributeKey'](_0x46cc25));for(const _0x47bbe2 of _0x5acaa5){'todo'!=_0x47bbe2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4ced95['_findSuggestions'](_0x47bbe2['getFirstRange'](),'attribute')['find'](_0x369066=>'listType'===_0x4ced95['_getAttributeKey'](_0x369066['suggestion']))||(_0x3079cb['removeMarker'](_0x47bbe2['getFirstMarker']()),_0x40ffe4=!0x0));}return _0x40ffe4;})),_0x4ced95['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x453a19,'FORMAT_INDENT'));const _0x5eb27b={'type':'format','content':''};_0x4ced95['descriptionFactory']['registerDescriptionCallback'](_0x8f0042=>{const {data:_0x509ca3}=_0x8f0042;if(!_0x509ca3||'listType'!=_0x509ca3['key'])return;let _0x515f72=_0x8f0042['head'];for(;_0x515f72;){if(_0x515f72['data']&&(('listStyle'==_0x515f72['data']['key']||'listMarkerStyle'==_0x515f72['data']['key'])&&(_0x515f72['data']['newValue']&&'default'!=_0x515f72['data']['newValue']||'default'!=_0x515f72['data']['oldValue']&&!_0x509ca3['newValue'])||!_0x58b3a7&&_0x515f72['data']['key']==m))return _0x5eb27b;_0x515f72=_0x515f72['next'];}if(null==_0x509ca3['newValue'])switch(_0x509ca3['oldValue']){case'bulleted':return _0x317cff(o(_0x453a19,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x317cff(o(_0x453a19,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x317cff(o(_0x453a19,'ELEMENT_TODO_LIST'));}switch(_0x509ca3['newValue']){case'bulleted':return _0x23cb71(o(_0x453a19,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23cb71(o(_0x453a19,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23cb71(o(_0x453a19,'ELEMENT_TODO_LIST'));}}),_0x4ced95['descriptionFactory']['registerDescriptionCallback'](_0x18b7ee=>{const {data:_0x993a3e}=_0x18b7ee;if(_0x993a3e&&'listIndent'==_0x993a3e['key'])return null==_0x993a3e['newValue']||null==_0x993a3e['oldValue']&&0x0==_0x993a3e['newValue']?_0x5eb27b:void 0x0;}),_0x4ced95['descriptionFactory']['registerDescriptionCallback'](_0x4bc9e3=>{if('attribute'!=_0x4bc9e3['type'])return;const {data:_0x25ff67}=_0x4bc9e3;if(!_0x25ff67||'listItemId'!=_0x25ff67['key'])return;const _0x37cdb6=le(_0x4bc9e3);return'newValue'==_0x37cdb6?{'type':'format','content':o(_0x453a19,'*Merge:*\x20list\x20item')}:'oldValue'==_0x37cdb6?{'type':'format','content':o(_0x453a19,'*Split:*\x20list\x20item')}:_0x5eb27b;}),_0x97c4fe['model']['document']['registerPostFixer'](_0x59a43c=>this['listItemIdFixer'](_0x59a43c)),_0x97c4fe['model']['document']['registerPostFixer'](_0x119610=>this['noTrackChangesFixer'](_0x119610)),_0x97c4fe['model']['document']['registerPostFixer'](_0x31f536=>this['assureChains'](_0x31f536)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x36d0d7){if(_0x36d0d7['batch']['isUndo']||!_0x36d0d7['batch']['isLocal'])return!0x1;let _0x44f196=!0x1;const _0xa38e0b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3697ae=>_0x3697ae['data']&&'listItemId'==_0x3697ae['data']['key'])['filter'](_0x5427d5=>_0x5427d5['data']['newValue']&&_0x5427d5['data']['oldValue']);for(const _0x413593 of _0xa38e0b)le(_0x413593)||(_0x36d0d7['removeMarker'](_0x413593['getFirstMarker']()),_0x44f196=!0x0);return _0x44f196;}['noTrackChangesFixer'](_0xacdbc6){if(_0xacdbc6['batch']['isUndo']||!_0xacdbc6['batch']['isLocal'])return!0x1;const _0x1ec795=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1ec795['trackChangesCommand']['value'])return!0x1;let _0x2d0922=!0x1;const _0x2de029=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x165f0f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2d19ec=>'attribute'==_0x2d19ec['type'])['filter'](_0x3c3ba4=>_0x2de029['includes'](_0x3c3ba4['attributeKey']));if(0x0==_0x165f0f['length'])return _0x2d0922;for(const _0x1b20a1 of _0x165f0f){const _0x7b228f=_0x1ec795['_findSuggestions'](_0x1b20a1['range'],'attribute')['filter'](_0x58412b=>!_0x58412b['meta']['isNextTo'])['map'](_0x5ec932=>_0x5ec932['suggestion'])['filter'](_0x35fa41=>{const _0x1d373a=_0x1ec795['_getAttributeKey'](_0x35fa41);return _0x2de029['includes'](_0x1d373a);});if(_0x7b228f['length']){for(const _0x71ba7a of _0x7b228f)_0xacdbc6['removeMarker'](_0x71ba7a['getFirstMarker']());_0x2d0922=!0x0;}}return _0x2d0922;}['assureChains'](_0x4a43c0){if(_0x4a43c0['batch']['isUndo']||!_0x4a43c0['batch']['isLocal'])return!0x1;const _0x3918a3=this['editor']['plugins']['get']('TrackChangesEditing');let _0x114921=!0x1;const _0x58e644=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x141ebc of _0x3918a3['getSuggestions']({'skipNotAttached':!0x0})){const _0x16738d=_0x3918a3['_findSuggestions'](_0x141ebc['getFirstRange'](),'attribute')['map'](_0x1c85ba=>_0x1c85ba['suggestion'])['filter'](_0x57cb47=>_0x57cb47['data']&&_0x58e644['includes'](_0x57cb47['data']['key']));if(!_0x16738d['length'])continue;const _0x14a8a5=_0x16738d[0x0]['head']['attributes']['groupId'];if(!_0x16738d['every'](_0x5ac769=>_0x5ac769['attributes']['groupId']===_0x14a8a5)){for(const _0x442c57 of _0x16738d)_0x335b0b(_0x442c57,_0x14a8a5)&&(_0x114921=!0x0);}}return _0x114921;function _0x4341f7(_0x45f4ac,_0x342fbe){for(const _0x19d57f of _0x3918a3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x344128=>'attribute'==_0x344128['type']&&_0x344128['attributes']['groupId']==_0x45f4ac))_0x19d57f['setAttribute']('groupId',_0x342fbe);}function _0x335b0b(_0x5896ae,_0x4acd14){let _0x3a188a=_0x5896ae['head'],_0x4a8096=!0x1;for(;_0x3a188a;)_0x3a188a['attributes']['groupId']!=_0x4acd14&&(_0x4341f7(_0x3a188a['attributes']['groupId'],_0x4acd14),_0x3a188a['setAttribute']('groupId',_0x4acd14),_0x4a8096=!0x0),_0x3a188a=_0x3a188a['next'];return _0x4a8096;}}['_supportLegacySuggestions'](){const _0x5ad348=this['editor'],_0x33abcd=_0x5ad348['locale'],_0x5d3a81=_0x5ad348['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5d3a81['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3db6de,_0x19adac){const _0x56ca36=[];for(let _0x402802 of _0x3db6de)_0x402802['start']['nodeAfter']===_0x402802['end']['parent']&&(_0x402802=_0x5ad348['model']['createRange'](_0x5ad348['model']['createPositionAt'](_0x402802['start']['nodeAfter'],0x0))),_0x56ca36['push'](_0x402802);_0x5ad348['model']['change'](_0x1e92a6=>{const _0x5eb263=_0x5ad348['model']['document']['selection'],_0x5c4310=Array['from'](_0x5eb263['getRanges']())['map'](_0x2d0321=>_0x4022b5['fromRange'](_0x2d0321));_0x1e92a6['setSelection'](_0x56ca36),_0x5ad348['commands']['get'](_0x19adac['commandName'])['refresh'](),_0x19adac['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5ad348['execute'](_0x19adac['commandName'],..._0x19adac['commandParams']),_0x1e92a6['setSelection'](_0x5c4310);for(const _0x171f68 of _0x5c4310)_0x171f68['detach']();});}),_0x5d3a81['descriptionFactory']['registerElementLabel'](function(_0x368289){const _0x231613=!_0x5ad348['model']['schema']['isObject'](_0x368289),_0x5a886d=_0x368289['previousSibling'],_0x404357=_0x368289['nextSibling'],_0x5827e4=_0x368289['getAttribute']('listItemId'),_0x4c3ad3=!_0x5a886d||_0x5a886d['getAttribute']('listItemId')!==_0x5827e4,_0x65b4c9=!_0x404357||_0x404357['getAttribute']('listItemId')!==_0x5827e4;return _0x231613&&Boolean(_0x5827e4)&&_0x4c3ad3&&_0x65b4c9;},_0x15ae49=>o(_0x33abcd,'ELEMENT_LIST_ITEM',_0x15ae49));}['_registerLegacyDescription'](){const _0x1cc1f0=this['editor'],_0x208f66=_0x1cc1f0['locale'];function _0x55ff6(_0x25a11e){const _0x5c7404=_0x1cc1f0['commands']['get']('bulletedList')['value'],_0x2137cf=_0x1cc1f0['commands']['get']('numberedList')['value'];return'numberedList'===_0x25a11e?_0x5c7404:_0x2137cf;}_0x1cc1f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x82f4c6){if('formatBlock'!=_0x82f4c6['type'])return;const {data:_0x369822}=_0x82f4c6;if(!_0x369822)return;let _0xf4d3ac,_0xddef15,_0x277956,_0x1d5519;switch(_0x369822['commandName']){case'bulletedList':_0x277956=_0x369822['commandParams'][0x0]['forceValue'],_0x1d5519=_0x55ff6(_0x369822['commandName']),_0xf4d3ac=_0x277956?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d5519&&_0x1cc1f0['config']['get']('list.multiBlock')||(_0xf4d3ac='*Change\x20to:*\x20%0'),_0xddef15={'type':'format','content':o(_0x208f66,_0xf4d3ac,o(_0x208f66,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x277956=_0x369822['commandParams'][0x0]['forceValue'],_0x1d5519=_0x55ff6(_0x369822['commandName']),_0xf4d3ac=_0x277956?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1d5519&&_0x1cc1f0['config']['get']('list.multiBlock')||(_0xf4d3ac='*Change\x20to:*\x20%0'),_0xddef15={'type':'format','content':o(_0x208f66,_0xf4d3ac,o(_0x208f66,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xf4d3ac='*Indent:*\x20%0',_0xddef15={'type':'format','content':o(_0x208f66,_0xf4d3ac,o(_0x208f66,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xf4d3ac=function(_0x45e711){const _0x45d8ed=_0x45e711['getFirstRange']();let _0x2b5bff=_0x45d8ed['start']['nodeAfter'];for(;_0x2b5bff&&_0x45d8ed['containsItem'](_0x2b5bff);){if(_0x2b5bff['getAttribute']('listIndent')>0x0)return!0x1;_0x2b5bff=_0x2b5bff['nextSibling'];}return!0x0;}(_0x82f4c6)?o(_0x208f66,'*Format:*\x20remove\x20from\x20%0',o(_0x208f66,function(_0xb3a8cb){return'ELEMENT_'+_0xb3a8cb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x82f4c6))):o(_0x208f66,'*Outdent:*\x20%0',o(_0x208f66,'ELEMENT_LIST_ITEM')),_0xddef15={'type':'format','content':_0xf4d3ac};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x369822['multipleBlocks']&&(_0xf4d3ac='*Merge:*\x20%0',_0xddef15={'type':'deletion','content':o(_0x208f66,_0xf4d3ac,o(_0x208f66,'ELEMENT_LIST_ITEM'))});}return _0xddef15;});}}function le(_0x142e94){let _0x309f6a=_0x142e94['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x309f6a;){const _0x2e27ef=_0x309f6a['getAttribute']('listItemId');if(!_0x2e27ef)return!0x1;if(_0x2e27ef==_0x142e94['data']['newValue'])return'newValue';if(_0x2e27ef==_0x142e94['data']['oldValue'])return'oldValue';_0x309f6a=_0x309f6a['previousSibling'];}return!0x1;}class ue extends _0x5ed9bd{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1435ca=this['editor']['config']['get']('list.properties'),_0xbdce0e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1435ca['styles']&&(_0xbdce0e['enableDefaultAttributesIntegration']('listStyle'),_0xbdce0e['registerBlockAttribute']('listStyle')),_0x1435ca['reversed']&&(_0xbdce0e['enableDefaultAttributesIntegration']('listReversed'),_0xbdce0e['registerBlockAttribute']('listReversed')),_0x1435ca['startIndex']&&(_0xbdce0e['enableDefaultAttributesIntegration']('listStart'),_0xbdce0e['registerBlockAttribute']('listStart'));const _0x844044={'type':'format','content':''};_0xbdce0e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xd1ec83=this['editor']['locale'];_0xbdce0e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xd1ec83,'FORMAT_LIST_REVERSED')),_0xbdce0e['descriptionFactory']['registerDescriptionCallback'](_0x44cdb7=>{const {data:_0x41dc40}=_0x44cdb7;if(_0x41dc40&&'listReversed'==_0x41dc40['key'])return null==_0x41dc40['newValue']||0x0==_0x41dc40['newValue']&&null==_0x41dc40['oldValue']?_0x844044:void 0x0;}),_0xbdce0e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xd1ec83,'FORMAT_LIST_START')),_0xbdce0e['descriptionFactory']['registerDescriptionCallback'](_0x303f82=>{const {data:_0x54718a}=_0x303f82;if(_0x54718a&&'listStart'==_0x54718a['key'])return null==_0x54718a['newValue']||0x1==_0x54718a['newValue']&&null==_0x54718a['oldValue']?_0x844044:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x467984=>{if(_0x467984['batch']['isUndo'])return!0x1;let _0xdd8622=!0x1;const _0x39f3aa=_0xbdce0e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf707d3=>{const _0x5286cd=_0xbdce0e['_getAttributeKey'](_0xf707d3);return'listStart'==_0x5286cd||'listReversed'==_0x5286cd;});for(const _0x592cb5 of _0x39f3aa){const _0x165aa3=_0x592cb5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x165aa3||'customNumbered'==_0x165aa3)continue;_0xbdce0e['_findSuggestions'](_0x592cb5['getFirstRange'](),'attribute')['find'](_0x3242c8=>'listType'==_0xbdce0e['_getAttributeKey'](_0x3242c8['suggestion']))||(_0x467984['removeMarker'](_0x592cb5['getFirstMarker']()),_0xdd8622=!0x0);}return _0xdd8622;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x58de3b){const _0x3b4088=this['editor']['locale'],{data:_0x448dd6}=_0x58de3b,_0x1d42ad={'type':'format','content':''};if(!_0x448dd6||'listStyle'!=_0x448dd6['key'])return;if(!_0x448dd6['oldValue'])return'default'==_0x448dd6['newValue']?_0x1d42ad:{'type':'format','content':''+o(_0x3b4088,'*Set\x20format:*\x20%0',o(_0x3b4088,this['_getTranslationKeyForListStyle'](_0x448dd6['newValue'])))};if(!_0x448dd6['newValue']){if('default'==_0x448dd6['oldValue'])return _0x1d42ad;let _0x385a60=_0x58de3b['head'];for(;_0x385a60;){if(_0x385a60['data']&&'listType'==_0x385a60['data']['key']&&_0x385a60['data']['newValue'])return _0x1d42ad;_0x385a60=_0x385a60['next'];}return{'type':'format','content':''+o(_0x3b4088,'*Remove\x20format:*\x20%0',o(_0x3b4088,this['_getTranslationKeyForListStyle'](_0x448dd6['oldValue'])))};}if('default'!=_0x448dd6['newValue'])return{'type':'format','content':''+o(_0x3b4088,'*Set\x20format:*\x20%0',o(_0x3b4088,this['_getTranslationKeyForListStyle'](_0x448dd6['newValue'])))};let _0x55e483=_0x58de3b['head'];for(;_0x55e483;){if(_0x55e483['data']&&'listType'==_0x55e483['data']['key']&&_0x55e483['data']['newValue']&&_0x55e483['data']['oldValue'])return _0x1d42ad;_0x55e483=_0x55e483['next'];}return{'type':'format','content':o(_0x3b4088,'*Set\x20format:*\x20%0',o(_0x3b4088,'ELEMENT_'+_0x58de3b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x30135e=this['editor'],_0xeda7d9=_0x30135e['locale'];_0x30135e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x233a9f=>{if('formatBlock'!=_0x233a9f['type'])return;const {data:_0x5e1335}=_0x233a9f;if(!_0x5e1335)return;let _0xbe5639,_0x45890b;switch(_0x5e1335['commandName']){case'listStyle':_0xbe5639='*Change\x20to:*\x20%0',_0x45890b={'type':'format','content':o(_0xeda7d9,_0xbe5639,o(_0xeda7d9,this['_getTranslationKeyForListStyle'](_0x5e1335['commandParams'][0x0]['type'])))};break;case'listReversed':_0xbe5639=_0x5e1335['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45890b={'type':'format','content':o(_0xeda7d9,_0xbe5639)};break;case'listStart':_0xbe5639='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45890b={'type':'format','content':o(_0xeda7d9,_0xbe5639,_0x5e1335['commandParams'][0x0]['startIndex'])};}return _0x45890b;});}['_getTranslationKeyForListStyle'](_0x3281fe){return'ELEMENT_'+function(_0x188699){if(pe['includes'](_0x188699))return'bulleted';if(ye['includes'](_0x188699))return'numbered';return null;}(_0x3281fe)['toUpperCase']()+'_LIST_'+_0x3281fe['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5ed9bd{static get['requires'](){return[_0x190152];}['init'](){const _0x4deb31=this['editor'],_0x187e5f=_0x4deb31['plugins']['get']('TrackChangesEditing'),_0x2ac6e5=_0x4deb31['commands']['get']('enter');_0x187e5f['enableCommand']('enter',()=>{_0x4deb31['model']['change'](_0x4b6202=>{const _0x191b93=_0x4deb31['model']['document']['selection'],_0x478d3b=_0x191b93['getFirstPosition'](),_0x377b47=_0x4022b5['fromRange'](_0x191b93['getFirstRange']());if(_0x2ac6e5['enterBlock'](_0x4b6202)){const _0x216bcd=_0x4deb31['model']['createPositionAt'](_0x478d3b['parent']['nextSibling'],0x0),_0x597802=_0x4b6202['createRange'](_0x478d3b,_0x216bcd);_0x187e5f['markInsertion'](_0x597802);}else _0x4b6202['setSelection'](_0x4b6202['createRange'](_0x377b47['end']));_0x377b47['detach'](),_0x2ac6e5['fire']('afterExecute',{'writer':_0x4b6202});});}),_0x4deb31['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4deb31,'split'),{'priority':'high'}),_0x4deb31['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5b814f,_0x39d567,_0x311721)=>{const _0x30e7be=_0x311721['mapper']['markerNameToElements'](_0x39d567['markerName']);if(_0x30e7be){for(const _0x36115c of _0x30e7be)_0x36115c['hasClass']('ck-suggestion-marker-split')&&(_0x311721['mapper']['unbindElementFromMarkerName'](_0x36115c,_0x39d567['markerName']),_0x311721['writer']['remove'](_0x36115c));}},{'priority':'high'}),_0x4deb31['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x53a24a,_0x15d996,_0x3a23f7)=>{_0x3a23f7['options']['showSuggestionHighlights']&&_e(_0x4deb31,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x53a24a,_0x15d996,_0x3a23f7);},{'priority':'high'});}}class J extends _0x5ed9bd{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5c8f95=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c8f95['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5c8f95['enableCommand']('findNext'),_0x5c8f95['enableCommand']('findPrevious'),_0x5c8f95['enableCommand']('replace'),_0x5c8f95['enableCommand']('replaceAll');}['handleFindCommand'](_0x216837,_0x1bf9e0,_0x39340b={}){const _0xbbcfa6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x216837(_0x474fc5=>('string'==typeof _0x1bf9e0?_0xbbcfa6['findByTextCallback'](_0x1bf9e0,_0x39340b):_0x1bf9e0)(_0x474fc5)['filter'](_0x80a3fe=>!0x1===this['_isInDeletionRange'](_0x80a3fe,_0x474fc5['item'])),_0x39340b);}['_isInDeletionRange'](_0x568b52,_0x398e52){const _0x4df54e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x398e52,_0x568b52['start']),this['editor']['model']['createPositionAt'](_0x398e52,_0x568b52['end']));for(const _0x44b872 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4df54e['getIntersection'](_0x44b872['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x5ed9bd{['afterInit'](){const _0x3601c4=this['editor']['locale'],_0x332da7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x49bba9,commandName:_0x42857a}of ro)this['editor']['plugins']['has'](_0x49bba9)&&(_0x332da7['enableDefaultAttributesIntegration'](_0x42857a),_0x332da7['registerInlineAttribute'](_0x42857a));_0x3601c4['t'],_0x332da7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3601c4,'FORMAT_FONT_SIZE')),_0x332da7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3601c4,'FORMAT_FONT_FAMILY')),_0x332da7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3601c4,'FORMAT_FONT_COLOR')),_0x332da7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3601c4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17c301=this['editor'],_0x15cc41=_0x17c301['locale'];_0x17c301['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdc2054=>{const _0x427e5e=_0x15cc41['t'];if('formatInline'!=_0xdc2054['type'])return;const {data:_0x5e383a}=_0xdc2054;if(null!=_0x5e383a){if('fontSize'==_0x5e383a['commandName']){const _0x4d1c43=_0x5e383a['commandParams'][0x0]['value'];if(_0x4d1c43){const _0x1857e8=_0x427e5e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5f36c4=>_0x5f36c4['model']==_0x4d1c43)['title'])['toLowerCase']();return{'type':'format','content':o(_0x15cc41,'*Set\x20font\x20size:*\x20%0',_0x1857e8)};}return{'type':'format','content':o(_0x15cc41,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5e383a['commandName']){const _0xfb97a3=_0x5e383a['commandParams'][0x0]['value'];return _0xfb97a3?{'type':'format','content':o(_0x15cc41,'*Set\x20font\x20family:*\x20%0',_0xfb97a3)}:{'type':'format','content':o(_0x15cc41,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5e383a['commandName']){const _0x13f4a6=_0x5e383a['commandParams'][0x0]['value'];if(_0x13f4a6){const _0x5565e2=_0x3b0c52(this['editor']['config']['get']('fontColor.colors'))['find'](_0x7d5006=>_0x7d5006['model']==_0x13f4a6);let _0x3da1cb=_0x13f4a6,_0x374771='';return _0x5565e2&&(_0x3da1cb=_0x5565e2['label'],_0x374771=_0x427e5e(_0x3da1cb)['toLowerCase']()),{'type':'format','content':o(_0x15cc41,'*Set\x20font\x20color:*\x20%0',_0x374771)['trim'](),'color':{'value':_0x13f4a6,'title':_0x374771||_0x3da1cb}};}return{'type':'format','content':o(_0x15cc41,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5e383a['commandName']){const _0x4f597d=_0x5e383a['commandParams'][0x0]['value'];if(_0x4f597d){const _0x1cf4c2=_0x3b0c52(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1f916c=>_0x1f916c['model']==_0x4f597d);let _0xb981f1=_0x4f597d,_0x7e5677='';return _0x1cf4c2&&(_0xb981f1=_0x1cf4c2['label'],_0x7e5677=_0x427e5e(_0xb981f1)['toLowerCase']()),{'type':'format','content':o(_0x15cc41,'*Set\x20font\x20background\x20color:*\x20%0',_0x7e5677)['trim'](),'color':{'value':_0x4f597d,'title':_0x7e5677||_0xb981f1}};}return{'type':'format','content':o(_0x15cc41,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5ed9bd{['afterInit'](){const _0x4ed60b=this['editor'],_0x47e62c=_0x4ed60b['plugins']['get']('TrackChangesEditing'),_0x4ec7d3=_0x4ed60b['commands']['get']('copyFormat'),_0xcfd9ee=_0x4ed60b['commands']['get']('pasteFormat');_0x4ec7d3&&_0xcfd9ee&&(_0x47e62c['enableDefaultAttributesIntegration']('pasteFormat'),_0x47e62c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4d58e3=this['editor'],_0x44be2d=_0x4d58e3['locale'];_0x4d58e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e42eb=>{if('formatBlock'!=_0x1e42eb['type']&&'formatInline'!=_0x1e42eb['type'])return;const {data:_0x471fdb}=_0x1e42eb;if(_0x471fdb&&'pasteFormat'===_0x471fdb['commandName']){const _0x2371b9=[],_0x5ccb43=_0x471fdb['commandParams'][0x0];for(const [_0x359885,_0x71d6ca]of Object['entries'](_0x5ccb43))_0x2371b9['push'](so(_0x4d58e3,_0x359885,_0x71d6ca));return _0x2371b9['length']?{'type':'format','content':o(_0x44be2d,'*Set\x20format\x20to:*\x20%0',_0x2371b9['join'](',\x20'))}:{'type':'format','content':o(_0x44be2d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5d0e6e,_0x42e91c,_0x4a2d61){const _0xdc03d4=_0x5d0e6e['locale']['t'],_0x58a5f5=_0x42e91c['split'](/(?=[A-Z])/)['join']('\x20'),_0x4217da=_0xdc03d4(_0x58a5f5['charAt'](0x0)['toUpperCase']()+_0x58a5f5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4a2d61)return _0x4217da;if('fontColor'===_0x42e91c||'fontBackgroundColor'===_0x42e91c){const _0x24da6c=_0x3b0c52(_0x5d0e6e['config']['get']('fontColor.colors'))['find'](_0x1e2f69=>_0x1e2f69['model']==_0x4a2d61);return _0x4217da+'\x20('+(_0x24da6c?_0xdc03d4(_0x24da6c['label'])['toLowerCase']():_0x4a2d61)+')';}if('fontSize'===_0x42e91c&&isNaN(parseFloat(_0x4a2d61))){const _0x2ee443=_0x5d0e6e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5d0e6e['config']['get']('fontSize.options'))['find'](_0xf5ff37=>_0xf5ff37['model']==_0x4a2d61);return _0x4217da+'\x20('+(_0x2ee443?_0xdc03d4(_0x2ee443['title'])['toLowerCase']():_0x4a2d61)+')';}return _0x4217da+'\x20('+_0x4a2d61+')';}class Y extends _0x5ed9bd{['_headingOptions'];['afterInit'](){const _0x29438b=this['editor'];if(!_0x29438b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x29438b['config']['get']('heading.options');const _0x507ece=_0x29438b['locale'],_0x3b7661=_0x29438b['plugins']['get']('TrackChangesEditing');_0x3b7661['enableDefaultAttributesIntegration']('heading');for(const _0x4dafee of this['_headingOptions'])'paragraph'!=_0x4dafee['model']&&_0x3b7661['descriptionFactory']['registerElementLabel'](_0x4dafee['model'],_0x458461=>{const _0x5856e0=this['_getHeadingLevel'](_0x4dafee['model']);return null!==_0x5856e0?_0x4ac495(_0x458461,_0x5856e0):_0x3a7d23(_0x458461,_0x4dafee['title']);});function _0x4ac495(_0x5dbf07,_0x3c1d2b){return o(_0x507ece,'ELEMENT_HEADING',[_0x5dbf07,_0x3c1d2b]);}function _0x3a7d23(_0x4edc7f,_0x18c853){return o(_0x507ece,'ELEMENT_HEADING_CUSTOM',[_0x4edc7f,_0x18c853]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b9efb=this['editor'],_0x548211=_0x2b9efb['locale'];function _0x1b9162(_0x5898a7,_0x492bbb){return o(_0x548211,'ELEMENT_HEADING_CUSTOM',[_0x5898a7,_0x492bbb]);}_0x2b9efb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x583ff7=>{if('formatBlock'!=_0x583ff7['type'])return;const {data:_0x5ef4cf}=_0x583ff7;if(_0x5ef4cf&&'heading'==_0x5ef4cf['commandName']){const _0xb88290=_0x5ef4cf['commandParams'][0x0]['value'],_0x22b402=this['_getHeadingLevel'](_0xb88290);if(null!==_0x22b402)return{'type':'format','content':o(_0x548211,'*Change\x20to:*\x20%0',(_0x373aa5=0x1,_0x511eac=_0x22b402,o(_0x548211,'ELEMENT_HEADING',[_0x373aa5,_0x511eac])))};const _0x578fe9=this['_headingOptions']['find'](_0xb95f86=>_0xb95f86['model']===_0xb88290)['title'];return{'type':'format','content':o(_0x548211,'*Change\x20to:*\x20%0',_0x1b9162(0x1,_0x578fe9))};}var _0x373aa5,_0x511eac;});}['_getHeadingLevel'](_0x97ffd7){const _0x1fa82f=_0x97ffd7['match'](/^heading(\d+)/);if(_0x1fa82f)return _0x1fa82f[0x1];const _0x11e426=this['_headingOptions']?.['find'](_0x179efb=>_0x179efb['model']==_0x97ffd7);if(_0x11e426&&_0x11e426['view']){const _0x15f5ce=_0x11e426['view'],_0xcee981=(_0x15f5ce['name']??_0x15f5ce)['match'](/^h(\d+)/);if(_0xcee981)return _0xcee981[0x1];}return null;}}class Z extends _0x5ed9bd{['afterInit'](){const _0x62d2b2=this['editor'];if(!_0x62d2b2['plugins']['has']('HighlightEditing'))return;const _0x3648e3=_0x62d2b2['plugins']['get']('TrackChangesEditing'),_0x19edb4=_0x62d2b2['locale'];_0x3648e3['enableDefaultAttributesIntegration']('highlight'),_0x3648e3['registerInlineAttribute']('highlight'),_0x3648e3['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x19edb4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19880c=this['editor'],_0xbb78c0=_0x19880c['locale'];_0x19880c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xca124f=>{if('formatInline'!=_0xca124f['type'])return;const {data:_0x26a551}=_0xca124f;if(_0x26a551&&'highlight'==_0x26a551['commandName']){const _0x475353=_0xbb78c0['t'],_0xaf6ae5=_0x26a551['commandParams'][0x0]['value'];if(_0xaf6ae5){const _0x35c5a1=_0x19880c['config']['get']('highlight.options')['find'](_0x590cd7=>_0x590cd7['model']==_0xaf6ae5),_0x3201ef=_0x475353(_0x35c5a1['title'])['toLowerCase']();return{'type':'format','content':o(_0xbb78c0,'*Set\x20highlight:*\x20%0',_0x3201ef),'color':{'value':_0x35c5a1['color'],'title':_0x35c5a1['title']}};}return{'type':'format','content':o(_0xbb78c0,'*Remove\x20highlight*',o(_0xbb78c0,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5ed9bd{['afterInit'](){const _0x48ee9a=this['editor'];if(!_0x48ee9a['plugins']['has']('HorizontalLineEditing'))return;_0x48ee9a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4631d1=_0x48ee9a['plugins']['get']('TrackChangesEditing'),_0x10e5d7=_0x48ee9a['locale'];_0x4631d1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x36dc10=>o(_0x10e5d7,'ELEMENT_HORIZONTAL_LINE',_0x36dc10)),_0x48ee9a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2a175f,{writer:_0x9f5b42,options:_0x5cebd3})=>{if(!_0x5cebd3['showSuggestionHighlights'])return null;const _0x2794ab=_0x9f5b42['createContainerElement']('div'),_0x55c86d=_0x9f5b42['createEmptyElement']('hr');return _0x9f5b42['addClass']('ck-horizontal-line',_0x2794ab),_0x9f5b42['insert'](_0x9f5b42['createPositionAt'](_0x2794ab,0x0),_0x55c86d),_0x2794ab;},'converterPriority':'high'});}}class et extends _0x5ed9bd{['afterInit'](){const _0x57879f=this['editor'];if(!_0x57879f['plugins']['has']('HtmlEmbed'))return;const _0x273bfe=_0x57879f['plugins']['get']('TrackChangesEditing'),_0x4479d6=_0x57879f['locale'];_0x273bfe['descriptionFactory']['registerElementLabel']('rawHtml',_0x26d0f9=>o(_0x4479d6,'ELEMENT_HTML_EMBED',_0x26d0f9)),_0x273bfe['enableDefaultAttributesIntegration']('htmlEmbed'),_0x273bfe['registerBlockAttribute']('value'),_0x273bfe['descriptionFactory']['registerDescriptionCallback'](_0x417fd5=>{if('attribute'!=_0x417fd5['type'])return;const {data:_0x25d06d}=_0x417fd5;if(_0x25d06d&&'value'==_0x25d06d['key']&&_0x417fd5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x477ad8=o(_0x4479d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4479d6,'*Change\x20%0\x20content*',_0x477ad8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5689eb=this['editor'],_0x428b98=_0x5689eb['locale'];_0x5689eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x388dcc=>{if('formatBlock'!=_0x388dcc['type'])return;const {data:_0x2a26d1}=_0x388dcc;if(_0x2a26d1&&'htmlEmbed'==_0x2a26d1['commandName']){const _0xe7c44f=o(_0x428b98,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x428b98,'*Change\x20%0\x20content*',_0xe7c44f)};}});}}class it extends _0x5ed9bd{['afterInit'](){const _0x51ddd8=this['editor'];if(!_0x51ddd8['plugins']['has']('ImageEditing'))return;const _0x418593=_0x51ddd8['plugins']['get']('TrackChangesEditing'),_0x275730=_0x51ddd8['plugins']['get']('ImageUtils'),_0x1e6761=_0x51ddd8['locale'];_0x418593['enableCommand']('insertImage'),_0x418593['descriptionFactory']['registerElementLabel']('imageBlock',_0x4b7eac=>o(_0x1e6761,'ELEMENT_IMAGE',_0x4b7eac)),_0x418593['descriptionFactory']['registerElementLabel']('imageInline',_0x52083e=>o(_0x1e6761,'ELEMENT_INLINE_IMAGE',_0x52083e)),_0x418593['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1e6761,'ELEMENT_CAPTION')),_0x51ddd8['plugins']['has']('ImageUploadEditing')&&_0x418593['enableCommand']('uploadImage'),_0x51ddd8['plugins']['has']('ImageBlockEditing')&&_0x51ddd8['plugins']['has']('ImageInlineEditing')&&(_0x418593['enableCommand']('imageTypeInline',(_0x3d871b,_0x3d2014)=>{const _0x2886fc=_0x275730['getClosestSelectedImageElement'](_0x51ddd8['model']['document']['selection']);_0x51ddd8['model']['change'](()=>{_0x418593['markBlockFormat'](_0x2886fc,{'commandName':'imageTypeInline','commandParams':[_0x3d2014]},[],'convertBlockImageToInline');});}),_0x418593['enableCommand']('imageTypeBlock',(_0x13747e,_0x361042)=>{_0x51ddd8['model']['change'](_0x43c986=>{let _0xb57a7=_0x275730['getClosestSelectedImageElement'](_0x51ddd8['model']['document']['selection']),_0x2b2686=_0x43c986['createRangeOn'](_0xb57a7);const _0x289eb6=_0x5b3ae2['fromPosition'](_0x2b2686['start'],'toPrevious'),_0x4ec987=_0x5b3ae2['fromPosition'](_0x2b2686['end'],'toNext');_0x418593['forceDefaultExecution'](()=>_0x13747e(_0x361042)),_0xb57a7=_0x275730['getClosestSelectedImageElement'](_0x51ddd8['model']['document']['selection']),_0x2b2686=_0x43c986['createRangeOn'](_0xb57a7);const _0x57d8fe=_0x43c986['createRange'](_0x289eb6,_0x4ec987);_0x289eb6['detach'](),_0x4ec987['detach'](),_0x418593['markBlockFormat'](_0xb57a7,{'commandName':'imageTypeInline','commandParams':[_0x361042]},[],'convertInlineImageToBlock'),_0x57d8fe['start']['isBefore'](_0x2b2686['start'])&&_0x418593['markInsertion'](_0x43c986['createRange'](_0x57d8fe['start'],_0x2b2686['start']),'convertInlineImageToBlock'),_0x2b2686['end']['isBefore'](_0x57d8fe['end'])&&_0x418593['markInsertion'](_0x43c986['createRange'](_0x2b2686['end'],_0x57d8fe['end']),'convertInlineImageToBlock');});}),_0x418593['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x418593['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x418593['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x418593['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x418593['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x418593['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x135c33])=>{const _0x1beeb5=_0x418593['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x25b16d=_0x135c33['start'],_0x3adec6=_0x135c33['end'];const _0x1eb0de=_0x51ddd8['model']['schema']['getNearestSelectionRange'](_0x25b16d,'backward'),_0x5ec8d8=_0x51ddd8['model']['schema']['getNearestSelectionRange'](_0x3adec6,'forward');_0x1eb0de['isCollapsed']&&(_0x25b16d=_0x1eb0de['start']),_0x5ec8d8['isCollapsed']&&(_0x3adec6=_0x5ec8d8['end']),_0x1beeb5([_0x51ddd8['model']['createRange'](_0x25b16d,_0x3adec6)]);}),_0x418593['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4b6cc7),_0x418593['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4b6cc7)),_0x51ddd8['plugins']['has']('ImageCaptionEditing')&&(_0x418593['enableCommand']('toggleImageCaption',(_0x3f0a8d,_0x35c7a2)=>{const _0x183106=_0x51ddd8['plugins']['get']('ImageCaptionUtils');let _0x2aba03=_0x275730['getClosestSelectedImageElement'](_0x51ddd8['model']['document']['selection']),_0x215b8e=_0x183106['getCaptionFromImageModelElement'](_0x2aba03);_0x51ddd8['model']['change'](()=>{if(_0x215b8e)return void _0x418593['markDeletion'](_0x51ddd8['model']['createRangeOn'](_0x215b8e));const _0x379d1c=_0x275730['isBlockImage'](_0x2aba03);_0x3f0a8d(_0x35c7a2),_0x2aba03=_0x275730['getClosestSelectedImageElement'](_0x51ddd8['model']['document']['selection']),_0x215b8e=_0x183106['getCaptionFromImageModelElement'](_0x2aba03),_0x418593['markInsertion'](_0x51ddd8['model']['createRangeOn'](_0x215b8e),_0x379d1c?null:'imageCaption');});}),_0x418593['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4b6cc7));const _0x24d2c8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f0a8f(_0x4e5295,_0x3e96e9){const _0x5304aa=_0x24d2c8['findIndex'](({type:_0x12a0ab,subType:_0x5e1ab1})=>_0x4e5295['type']==_0x12a0ab&&_0x4e5295['subType']==_0x5e1ab1),_0x38afc3=_0x24d2c8['findIndex'](({type:_0x373de7,subType:_0x25e9b2})=>_0x3e96e9['type']==_0x373de7&&_0x3e96e9['subType']==_0x25e9b2);if(_0x5304aa<0x0||_0x38afc3<0x0)return!0x1;const _0x140f1e=_0x4e5295['getFirstRange'](),_0x4ee487=_0x3e96e9['getFirstRange']();if((0x0==_0x5304aa||0x1==_0x5304aa)&&0x2==_0x38afc3&&_0x140f1e['isIntersecting'](_0x4ee487))return!0x0;if(0x2==_0x5304aa&&0x3==_0x38afc3){const _0x5e5af2=_0x418593['_findSuggestions'](_0x140f1e,'insertion')['filter'](({suggestion:_0x306072,meta:_0x46e7d1})=>_0x46e7d1['isOwn']&&'convertInlineImageToBlock'==_0x306072['subType']);if(_0x5e5af2['length']>0x1&&_0x4ee487['end']['isEqual'](_0x140f1e['start']))return!0x0;if(0x1==_0x5e5af2['length']&&(_0x140f1e['start']['isEqual'](_0x4ee487['end'])||_0x140f1e['end']['isEqual'](_0x4ee487['start'])))return!0x0;}if(0x3==_0x5304aa&&0x3==_0x38afc3&&_0x140f1e['start']['isBefore'](_0x4ee487['start'])){const _0x72c8ed=_0x140f1e['end']['nodeAfter'],_0xdf74b1=_0x4ee487['start']['nodeBefore'];return _0x275730['isBlockImage'](_0x72c8ed)&&_0x72c8ed===_0xdf74b1;}return!0x1;}function _0x4b6cc7(_0x3c1bd8,_0x3e8d39){return _0x4f0a8f(_0x3c1bd8,_0x3e8d39)?[_0x3c1bd8,_0x3e8d39]:_0x4f0a8f(_0x3e8d39,_0x3c1bd8)?[_0x3e8d39,_0x3c1bd8]:null;}_0x51ddd8['plugins']['has']('ImageResize')&&(_0x418593['enableDefaultAttributesIntegration']('resizeImage'),_0x418593['registerBlockAttribute']('resizedWidth'),_0x418593['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1e6761,'FORMAT_IMAGE_SIZE'))),_0x51ddd8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x418593['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x418593['registerBlockAttribute']('alt')),_0x418593['descriptionFactory']['registerDescriptionCallback'](_0xafecfa=>{if(!!_0x24d2c8['find'](({type:_0x354ca6,subType:_0x2e2df1})=>_0xafecfa['type']==_0x354ca6&&_0xafecfa['subType']==_0x2e2df1))return _0xafecfa['previous']?{}:void 0x0;}),_0x418593['descriptionFactory']['registerDescriptionCallback'](_0x1142e4=>{if('insertion'==_0x1142e4['type']||'deletion'==_0x1142e4['type']){const _0x5868ae=_0x1142e4['getContainedElement']();if(_0x5868ae&&_0x5868ae['is']('element','caption'))return{'type':'insertion'==_0x1142e4['type']?'addObject':'removeObject','element':_0x5868ae,'quantity':0x1};}}),_0x418593['descriptionFactory']['registerDescriptionCallback'](_0x4da034=>'formatBlock'==_0x4da034['type']&&'convertInlineImageToBlock'==_0x4da034['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4da034['type']&&'convertBlockImageToInline'==_0x4da034['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x418593['descriptionFactory']['registerDescriptionCallback'](_0x307c54=>{if('attribute'!=_0x307c54['type'])return;const {data:_0x5c0718}=_0x307c54;if(!_0x5c0718||'alt'!=_0x5c0718['key'])return;const _0x4fe115=_0x5c0718['newValue'];return _0x4fe115?{'type':'format','content':o(_0x1e6761,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4fe115+'\x22')}:{'type':'format','content':o(_0x1e6761,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa15a2=this['editor'],_0x47e327=_0xa15a2['locale'];_0xa15a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6eb912=>{if('formatBlock'!=_0x6eb912['type']&&'formatInline'!=_0x6eb912['type'])return;const {data:_0x3a6b0f}=_0x6eb912;if(_0x3a6b0f){if('imageTextAlternative'==_0x3a6b0f['commandName']){const _0x56164f=_0x3a6b0f['commandParams'][0x0]['newValue'];return _0x56164f?{'type':'format','content':o(_0x47e327,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x56164f+'\x22')}:{'type':'format','content':o(_0x47e327,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3a6b0f['commandName']){const _0x389669=_0x3a6b0f['commandParams'][0x0]['width'];return _0x389669?{'type':'format','content':o(_0x47e327,'*Set\x20image\x20width:*\x20%0',_0x389669)}:{'type':'format','content':o(_0x47e327,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5ed9bd{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4021e1=this['editor']['locale'],_0x34d301=this['editor']['plugins']['get']('TrackChangesEditing');_0x34d301['enableDefaultAttributesIntegration']('replaceImageSource'),_0x34d301['registerBlockAttribute']('src'),_0x34d301['descriptionFactory']['registerDescriptionCallback'](_0x4a9228=>{if('attribute'!=_0x4a9228['type'])return;const {data:_0x25fd9c}=_0x4a9228;return _0x25fd9c&&'src'==_0x25fd9c['key']?_0x25fd9c['newValue']&&_0x25fd9c['oldValue']?{'type':'format','content':o(_0x4021e1,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x36fe71=this['editor']['plugins']['get']('TrackChangesEditing');_0x36fe71['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x36fe71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36fe71['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x36fe71['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa48872=this['editor'],_0xe2f0cd=_0xa48872['locale'];_0xa48872['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a1097=>{if('formatBlock'!=_0x1a1097['type']&&'formatInline'!=_0x1a1097['type'])return;const {data:_0x24598b}=_0x1a1097;if(!_0x24598b||'replaceImageSource'!=_0x24598b['commandName'])return;return{'type':'format','content':o(_0xe2f0cd,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5ed9bd{['afterInit'](){const _0x54641e=this['editor'];if(!_0x54641e['plugins']['has']('ImageStyleEditing'))return;const _0x3d7c93=_0x54641e['plugins']['get']('TrackChangesEditing'),_0x2c9ae8=_0x54641e['plugins']['get']('ImageUtils'),_0x3f575c={};_0x3d7c93['enableCommand']('imageStyle',(_0x5101cd,_0x55cfb3)=>{const _0x13a66a=_0x54641e['plugins']['get']('Users')['me'],_0x414bf7=_0x54641e['commands']['get']('imageStyle');let _0xec4e5b=_0x2c9ae8['getClosestSelectedImageElement'](_0x54641e['model']['document']['selection']),_0x2cfb83=_0x54641e['model']['createRangeOn'](_0xec4e5b),_0x1ac267=_0x414bf7['value'];if(_0x1ac267==_0x55cfb3['value'])return;const _0xcdd20c={'commandName':'imageStyle','commandParams':[_0x55cfb3],'formatGroupId':_0x51081b()};_0x54641e['model']['change'](()=>{if(_0x3d7c93['getSuggestions']()['filter'](_0x2bc6c8=>_0x2bc6c8['isInContent']&&_0x13a66a==_0x2bc6c8['author']&&('formatBlock'==_0x2bc6c8['type']||'formatInline'==_0x2bc6c8['type'])&&('imageStylePreApply'==_0x2bc6c8['subType']||'imageStylePostApply'==_0x2bc6c8['subType'])&&_0x2bc6c8['getFirstRange']()['isEqual'](_0x2cfb83))['forEach'](_0xe24f5=>_0x3d7c93['discardSuggestion'](_0xe24f5['head'])),_0xec4e5b=_0x2c9ae8['getClosestSelectedImageElement'](_0x54641e['model']['document']['selection']),_0x2cfb83=_0x54641e['model']['createRangeOn'](_0xec4e5b),_0x414bf7['refresh'](),_0x54641e['commands']['get']('imageTypeInline')['refresh'](),_0x54641e['commands']['get']('imageTypeBlock')['refresh'](),_0x1ac267=_0x414bf7['value'],_0x1ac267!=_0x55cfb3['value'])return _0x2c9ae8['isInlineImage'](_0xec4e5b)&&_0x414bf7['shouldConvertImageType'](_0x55cfb3['value'],_0xec4e5b)?(_0x5101cd({..._0x55cfb3,'setImageSizes':!0x1}),_0xec4e5b=_0x2c9ae8['getClosestSelectedImageElement'](_0x54641e['model']['document']['selection']),void _0x3d7c93['markBlockFormat'](_0xec4e5b,{..._0xcdd20c,'commandReversedParams':[{'value':_0x1ac267||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c9ae8['isBlockImage'](_0xec4e5b)?_0x3d7c93['markBlockFormat'](_0xec4e5b,_0xcdd20c,[],'imageStylePostApply'):_0x3d7c93['markInlineFormat'](_0x2cfb83,_0xcdd20c,'imageStylePostApply'));});});for(const _0x331d12 of _0x54641e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3f575c[_0x331d12['name']]=_0x331d12['title']['toLowerCase']();_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xe0461b])=>{_0x2c9ae8['setImageNaturalSizeAttributes'](_0xe0461b['getContainedElement']());}),_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x304b05,_0x4169b5)=>{_0x3d7c93['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x304b05,{'commandName':_0x4169b5['commandName'],'commandParams':_0x4169b5['commandReversedParams']});}),_0x3d7c93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x20995a,_0xaa8f63){if(_0x33e8b9(_0x20995a,_0xaa8f63))return[_0x20995a,_0xaa8f63];if(_0x33e8b9(_0xaa8f63,_0x20995a))return[_0xaa8f63,_0x20995a];return null;});const _0x5d3ff3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x33e8b9(_0x275723,_0x50ea40){const _0x12b014=_0x5d3ff3['findIndex'](({type:_0x55f393,subType:_0x448e0a})=>_0x275723['type']==_0x55f393&&_0x275723['subType']==_0x448e0a),_0x1c5812=_0x5d3ff3['findIndex'](({type:_0x2ae47c,subType:_0x4d0ed3})=>_0x50ea40['type']==_0x2ae47c&&_0x50ea40['subType']==_0x4d0ed3);if(_0x12b014<0x0||_0x1c5812<0x0)return!0x1;const _0x17eda6=_0x275723['getFirstRange'](),_0x5b03bc=_0x50ea40['getFirstRange']();if((0x0==_0x12b014||0x1==_0x12b014)&&0x2==_0x1c5812&&_0x17eda6['isIntersecting'](_0x5b03bc))return!0x0;if(0x2==_0x12b014&&0x3==_0x1c5812){const _0x4cc5d2=_0x3d7c93['_findSuggestions'](_0x17eda6,'insertion')['filter'](({suggestion:_0x1a4680,meta:_0x4789a0})=>_0x4789a0['isOwn']&&'convertInlineImageToBlock'==_0x1a4680['subType']);if(_0x4cc5d2['length']>0x1&&_0x5b03bc['end']['isEqual'](_0x17eda6['start']))return!0x0;if(0x1==_0x4cc5d2['length']&&(_0x17eda6['start']['isEqual'](_0x5b03bc['end'])||_0x17eda6['end']['isEqual'](_0x5b03bc['start'])))return!0x0;}if(0x3==_0x12b014&&0x3==_0x1c5812&&_0x17eda6['start']['isBefore'](_0x5b03bc['start'])){const _0x26379a=_0x17eda6['end']['nodeAfter'],_0x1effca=_0x5b03bc['start']['nodeBefore'];return _0x2c9ae8['isBlockImage'](_0x26379a)&&_0x26379a===_0x1effca;}return!0x1;}_0x54641e['model']['document']['registerPostFixer'](()=>{let _0x7b6285=!0x1;const _0x1eb5ff=Array['from'](_0x54641e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2302ed,data:_0x487b62}of _0x1eb5ff){const {group:_0x545718,type:_0x5418b6,subType:_0x4964f1,id:_0x33afb3}=_0x3d7c93['_splitMarkerName'](_0x2302ed);if('suggestion'==_0x545718&&_0x3d7c93['hasSuggestion'](_0x33afb3)){if('formatBlock'==_0x5418b6&&('imageStylePreApply'==_0x4964f1||'imageStylePostApply'==_0x4964f1)){const _0x538dfe=_0x3d7c93['getSuggestion'](_0x33afb3);if(_0x487b62['newRange']){const _0x1444bd=_0x538dfe['getFirstRange']()['getContainedElement']();if(_0x2c9ae8['isBlockImage'](_0x1444bd))continue;_0x3d7c93['discardSuggestion'](_0x538dfe),_0x7b6285=!0x0;}}if('insertion'==_0x5418b6&&'imageCaption'==_0x4964f1&&!_0x487b62['newRange']){const _0x1fe7f5=_0x3d7c93['getSuggestion'](_0x33afb3);_0x1fe7f5['next']&&_0x1fe7f5['next']['isInContent']&&(_0x3d7c93['discardSuggestion'](_0x1fe7f5['next']),_0x7b6285=!0x0);}}}return _0x7b6285;}),this['_registerLegacyDescription'](_0x3f575c);}['_registerLegacyDescription'](_0x5bd71b){const _0x29c6a7=this['editor'],_0x32c7c7=_0x29c6a7['locale'];_0x29c6a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x279f48=>{if('formatBlock'!=_0x279f48['type']&&'formatInline'!=_0x279f48['type'])return;const {data:_0x12f761}=_0x279f48;if(!_0x12f761||'imageStyle'!=_0x12f761['commandName'])return;const _0x4569f1=_0x12f761['commandParams'][0x0]['value'];return _0x3859e3('side'===_0x4569f1?o(_0x32c7c7,'FORMAT_SIDE_IMAGE'):_0x5bd71b[_0x4569f1]||_0x4569f1);function _0x3859e3(_0x4e9224){return{'type':'format','content':o(_0x32c7c7,'*Format:*\x20%0',_0x4e9224)};}});}}class ot extends _0x5ed9bd{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x48ab8a){super(_0x48ab8a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4d284b=this['editor'],_0x31dc68=_0x4d284b['commands']['get']('importWord'),_0x3236a7=_0x4d284b['commands']['get']('trackChanges');_0x31dc68&&(_0x31dc68['on']('execute',(_0x414ab6,[,_0x208530])=>{this['_trackChangesValueDuringImport']=_0x3236a7['value'],_0x208530['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x31dc68,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x31dc68,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3236a7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4d284b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x78704d,_0x1ed5a1){const {suggestions:_0x4721bb}=_0x1ed5a1,_0x325f81=this['editor']['commands']['get']('trackChanges'),_0x3a8737=_0x325f81['value'];this['_trackChangesValueDuringImport']!==_0x3a8737&&(_0x325f81['execute'](),this['_trackChangesExecuted']=!0x0),_0x4721bb&&_0x4721bb['forEach'](({id:_0x1c1595,type:_0x386d0d,author:_0x37422f,created_at:_0xd14f84})=>{const _0x175239={'id':_0x1c1595,'type':_0x386d0d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x37422f,'createdAt':_0xd14f84?new Date(_0xd14f84):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x175239);});}}class rt extends _0x5ed9bd{['afterInit'](){const _0x217a12=this['editor'],_0x1fa232=_0x217a12['plugins']['get']('TrackChangesEditing');if(_0x217a12['plugins']['has']('IndentEditing')&&(_0x1fa232['enableCommand']('indent'),_0x1fa232['enableCommand']('outdent')),_0x217a12['plugins']['has']('IndentBlock')){for(const _0x300b3e of['indentBlock','outdentBlock'])_0x1fa232['enableDefaultAttributesIntegration'](_0x300b3e);}const _0x27dc41=_0x217a12['locale'];_0x1fa232['registerBlockAttribute']('blockIndent'),_0x1fa232['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x27dc41,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12f561=this['editor'],_0x2f1ba6=_0x12f561['locale'],_0x301246=_0x12f561['plugins']['get']('TrackChangesEditing');_0x301246['descriptionFactory']['registerDescriptionCallback'](_0x30e315=>{if('formatBlock'!=_0x30e315['type'])return;const {data:_0x86c116}=_0x30e315;if(!_0x86c116)return;if('indentBlock'!=_0x86c116['commandName']&&'outdentBlock'!=_0x86c116['commandName'])return;const _0x6b05a8=_0x30e315['getItems']()[0x0],_0x4a43ea=_0x301246['descriptionFactory']['getItemLabel'](_0x6b05a8);return'indentBlock'==_0x86c116['commandName']?{'type':'format','content':o(_0x2f1ba6,'*Indent:*\x20%0',_0x4a43ea)}:'outdentBlock'==_0x86c116['commandName']?{'type':'format','content':o(_0x2f1ba6,'*Outdent:*\x20%0',_0x4a43ea)}:void 0x0;});}}class at extends _0x5ed9bd{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5ed9bd{['afterInit'](){const _0xa41fc7=this['editor'];if(!_0xa41fc7['plugins']['has']('LinkEditing'))return;const _0xaf13ed=_0xa41fc7['plugins']['get']('TrackChangesEditing'),_0x18d000=_0xa41fc7['commands']['get']('link');_0xaf13ed['enableDefaultAttributesIntegration']('link'),_0xaf13ed['enableDefaultAttributesIntegration']('unlink'),_0xaf13ed['registerInlineAttribute']('linkHref');for(const _0x5d209f of _0x18d000['manualDecorators'])_0xaf13ed['registerInlineAttribute'](_0x5d209f['id']),_0xaf13ed['descriptionFactory']['registerAttributeLabel'](_0x5d209f['id'],'link\x20('+_0x5d209f['label']['toLowerCase']()+')');_0xaf13ed['descriptionFactory']['registerDescriptionCallback'](_0x3feb3e=>{if('attribute'!=_0x3feb3e['type'])return;const {data:_0x36b287}=_0x3feb3e;if(!_0x36b287||'linkHref'!=_0x36b287['key'])return;const _0x2a92cf=_0x36b287['newValue'],_0x39029e=_0xa41fc7['locale'];return{'type':'format','content':null==_0x2a92cf?o(_0x39029e,'*Remove\x20link*'):o(_0x39029e,'*Set\x20link:*\x20%0','\x22'+_0x2a92cf+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7ac64d=this['editor'],_0x548737=_0x7ac64d['locale'];_0x7ac64d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa09f2f=>{if('formatInline'!=_0xa09f2f['type'])return;const {data:_0x1cbe22}=_0xa09f2f;if(_0x1cbe22){if('link'==_0x1cbe22['commandName']){const _0x404d17=_0x1cbe22['commandParams'][0x0];return{'type':'format','content':o(_0x548737,'*Set\x20link:*\x20%0','\x22'+_0x404d17+'\x22')};}return'unlink'==_0x1cbe22['commandName']?{'type':'format','content':o(_0x548737,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5ed9bd{['afterInit'](){const _0x129391=this['editor'],_0x28b92a=_0x129391['locale'];if(!_0x129391['plugins']['has']('LegacyListEditing'))return;const _0xb7229d=_0x129391['plugins']['get']('TrackChangesEditing'),_0x580aa9=_0x129391['plugins']['has']('LegacyTodoListEditing');function _0xf2c054(_0x23cda3){return()=>{const _0x27f94b=_0x129391['model']['document']['selection'],_0x22bc27=_0x129391['commands']['get'](_0x23cda3);if(_0x22bc27['value'])return void _0x129391['execute']('paragraph',{});const _0x331b62=_0x23cda3['slice'](0x0,-0x4),_0x19499b=function(_0x34f5ec,_0x1790f0,_0x511c43){let _0x1ff78d=Array['from'](_0x34f5ec)['filter'](_0xe8efcf=>function(_0x223f3a,_0x5f1858){return _0x5f1858['checkChild'](_0x223f3a['parent'],'listItem')&&!_0x5f1858['isObject'](_0x223f3a);}(_0xe8efcf,_0x511c43));_0x1ff78d=_0x1ff78d['filter'](_0x26e668=>!_0x26e668['is']('element','listItem')||_0x26e668['getAttribute']('listType')!=_0x1790f0);const _0x57ed37=new Set();for(const _0x4375fb of _0x1ff78d)_0x4375fb['is']('element','listItem')?_0x57ed37['add'](me(_0x4375fb)):_0x57ed37['add'](_0x4375fb);return Array['from'](_0x57ed37);}(_0x27f94b['getSelectedBlocks'](),_0x331b62,_0x129391['model']['schema']);_0x129391['model']['change'](()=>{for(const _0x2c5a61 of _0x19499b)_0xb7229d['markBlockFormat'](_0x2c5a61,{'commandName':_0x23cda3,'commandParams':[{'forceValue':!_0x22bc27['value']}],'formatGroupId':'blockName'},fe(_0x2c5a61));});};}function _0x1036e5(_0x55974e){return()=>{const _0x31469d=function(_0x998a6e){let _0x4ebc88=Array['from'](_0x998a6e);const _0x35eb94=_0x4ebc88['findIndex'](_0x2e0ea0=>'listItem'!=_0x2e0ea0['name']);return _0x35eb94>-0x1&&(_0x4ebc88=_0x4ebc88['slice'](0x0,_0x35eb94)),_0x4ebc88;}(_0x129391['model']['document']['selection']['getSelectedBlocks']()),_0x17a15b=_0x129391['model']['createRange'](_0x129391['model']['createPositionAt'](_0x31469d[0x0],'before'),_0x129391['model']['createPositionAt'](_0x31469d[_0x31469d['length']-0x1],'end'));_0x129391['model']['change'](()=>{_0xb7229d['markBlockFormat'](_0x17a15b,{'commandName':_0x55974e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x135a84){const _0x55b37c=new Set();for(const _0x1757b7 of _0x135a84){let _0x5780af=_0x1757b7['nextSibling'];for(;_0x5780af&&_0x5780af['getAttribute']('listIndent')>_0x1757b7['getAttribute']('listIndent');)_0x55b37c['add'](_0x5780af),_0x5780af=_0x5780af['nextSibling'];}return Array['from'](_0x55b37c);}(_0x31469d));});};}_0xb7229d['enableCommand']('numberedList',_0xf2c054('numberedList')),_0xb7229d['enableCommand']('bulletedList',_0xf2c054('bulletedList')),_0x580aa9&&_0xb7229d['enableCommand']('todoList',_0xf2c054('todoList')),_0xb7229d['enableCommand']('indentList',_0x1036e5('indentList')),_0xb7229d['enableCommand']('outdentList',_0x1036e5('outdentList')),_0x580aa9&&_0xb7229d['enableCommand']('checkTodoList',()=>{const _0x4cc3f6=_0x129391['commands']['get']('checkTodoList'),_0xe4e2bb=Array['from'](_0x4cc3f6['_selectedElements']);_0xe4e2bb['filter'](_0xa133d6=>_0xa133d6['getAttribute']('todoListChecked')!=_0x4cc3f6['value']),_0x129391['model']['change'](()=>{for(const _0x449487 of _0xe4e2bb)_0xb7229d['markBlockFormat'](_0x449487,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4cc3f6['value']}]});});}),_0xb7229d['descriptionFactory']['registerElementLabel']('listItem',_0x4c9ab0=>o(_0x28b92a,'ELEMENT_LIST_ITEM',_0x4c9ab0)),_0xb7229d['descriptionFactory']['registerDescriptionCallback'](_0x3c31c8=>{if('formatBlock'!=_0x3c31c8['type']&&'formatInline'!=_0x3c31c8['type'])return;const {data:_0x4b4600}=_0x3c31c8;if(_0x4b4600){if('numberedList'==_0x4b4600['commandName']||'bulletedList'==_0x4b4600['commandName']||'todoList'==_0x4b4600['commandName'])switch(_0x4b4600['commandName']['replace']('List','')){case'bulleted':return _0x3cec9a(o(_0x28b92a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3cec9a(o(_0x28b92a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3cec9a(o(_0x28b92a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4b4600['commandName'])return{'type':'format','content':o(_0x28b92a,'*Indent:*\x20%0',o(_0x28b92a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4b4600['commandName'])return{'type':'format','content':o(_0x28b92a,'*Outdent:*\x20%0',o(_0x28b92a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4b4600['commandName'])return _0x4b4600['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28b92a,'*Check\x20item*')}:{'type':'format','content':o(_0x28b92a,'*Uncheck\x20item*')};}function _0x3cec9a(_0x144d11){return{'type':'format','content':o(_0x28b92a,'*Change\x20to:*\x20%0',_0x144d11)};}});}}function me(_0x3f382f){const _0x76d29e=_0x3f382f['getAttribute']('listIndent');if(0x0==_0x76d29e)return _0x3f382f;let _0x1b2645=_0x3f382f;for(;_0x3f382f['previousSibling']&&_0x3f382f['previousSibling']['is']('element','listItem');){const _0x31ae0=_0x3f382f['previousSibling']['getAttribute']('listIndent');if(_0x31ae0==_0x76d29e)_0x1b2645=_0x3f382f['previousSibling'];else{if(_0x31ae0<_0x76d29e)break;}_0x3f382f=_0x3f382f['previousSibling'];}return _0x1b2645;}function fe(_0xd72fe3){const _0x3f29c8=[];if(_0xd72fe3['is']('element','listItem')&&_0xd72fe3['getAttribute']('listIndent')>0x0){let _0x47d23b=_0xd72fe3['nextSibling'];for(;_0x47d23b&&'listItem'==_0x47d23b['name']&&_0x47d23b['getAttribute']('listIndent')==_0xd72fe3['getAttribute']('listIndent');)_0x3f29c8['push'](_0x47d23b),_0x47d23b=_0x47d23b['nextSibling'];}return _0x3f29c8;}class K extends _0x5ed9bd{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3eb8fb=this['editor']['config']['get']('list.properties'),_0x13cfd2=this['editor']['plugins']['get']('TrackChangesEditing');_0x3eb8fb['styles']&&_0x13cfd2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3eb8fb['reversed']&&_0x13cfd2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3eb8fb['startIndex']&&_0x13cfd2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x13cfd2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x192d8e,_0x2ba8f0={}){const _0x430111=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8b0555=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x430111['markMultiRangeBlockFormat'](_0x8b0555,{'commandName':'listStyle','commandParams':[{'type':_0x2ba8f0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4e293b,_0x15167b={}){const _0x923c1d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e3dec=this['_getSuggestionBlocks'](_0x5660a9=>_0x5660a9['is']('element','listItem')&&'numbered'===_0x5660a9['getAttribute']('listType'));if(_0x2e3dec['length']<0x1)return;const _0x12259b=_0x2e3dec['map'](_0x1b1da2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b1da2,'before'),this['editor']['model']['createPositionAt'](_0x1b1da2,0x0)));this['editor']['model']['change'](()=>{_0x923c1d['markMultiRangeBlockFormat'](_0x12259b,{'commandName':'listReversed','commandParams':[{'reversed':_0x15167b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xdefd,_0x4fba26={}){const _0x73cbfd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f899b=this['_getSuggestionBlocks'](_0x1fffca=>_0x1fffca['is']('element','listItem')&&'numbered'===_0x1fffca['getAttribute']('listType'));if(_0x1f899b['length']<0x1)return;const _0x10d82c=_0x1f899b['map'](_0x4b48a4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b48a4,'before'),this['editor']['model']['createPositionAt'](_0x4b48a4,0x0)));this['editor']['model']['change'](()=>{_0x73cbfd['markMultiRangeBlockFormat'](_0x10d82c,{'commandName':'listStart','commandParams':[{'startIndex':_0x4fba26['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3bf66b){if('formatBlock'!=_0x3bf66b['type']&&'formatInline'!=_0x3bf66b['type'])return;const _0x3cad1c=this['editor']['locale'],{data:_0xa861c4}=_0x3bf66b;if(!_0xa861c4)return;let _0xe34c42,_0x3701f8;switch(_0xa861c4['commandName']){case'listStyle':_0xe34c42='*Change\x20to:*\x20%0',_0x3701f8={'type':'format','content':o(_0x3cad1c,_0xe34c42,o(_0x3cad1c,this['_getTranslationKeyForListStyle'](_0xa861c4['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe34c42=_0xa861c4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3701f8={'type':'format','content':o(_0x3cad1c,_0xe34c42)};break;case'listStart':_0xe34c42='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3701f8={'type':'format','content':o(_0x3cad1c,_0xe34c42,_0xa861c4['commandParams'][0x0]['startIndex'])};}return _0x3701f8;}['_getSuggestionBlocksForListStyle'](){const _0x549ce4=this['editor']['plugins']['get']('LegacyListUtils');let _0x158569=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x158569[0x0]?.['is']('element','listItem')&&_0x158569['unshift'](..._0x549ce4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x158569[_0x158569['length']-0x1]?.['is']('element','listItem')&&_0x158569['push'](..._0x549ce4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x158569=[...new Set(_0x158569)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x158569=_0x158569['filter'](_0x1641a7=>_0x1641a7['is']('element','listItem'))),_0x158569;}['_getSuggestionBlocks'](_0x12243c){const _0xe89b33=this['editor']['plugins']['get']('LegacyListUtils');let _0x19abdc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x12243c)['map'](_0x38ae92=>{const _0x1e5b76=this['editor']['model']['createPositionAt'](_0x38ae92,0x0);return[..._0xe89b33['getSiblingNodes'](_0x1e5b76,'backward'),..._0xe89b33['getSiblingNodes'](_0x1e5b76,'forward')];})['flat']();return _0x19abdc=[...new Set(_0x19abdc)],_0x19abdc;}['_getTranslationKeyForListStyle'](_0x3299f8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3299f8)||'default')['toUpperCase']()+'_LIST_'+_0x3299f8['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5ed9bd{['afterInit'](){const _0xd30a4c=this['editor'];if(!_0xd30a4c['plugins']['has']('MediaEmbedEditing'))return;const _0x508e67=_0xd30a4c['plugins']['get']('TrackChangesEditing'),_0x52b674=_0xd30a4c['locale'];_0x508e67['enableCommand']('mediaEmbed'),_0x508e67['descriptionFactory']['registerElementLabel']('media',_0x48f3cb=>o(_0x52b674,'ELEMENT_MEDIA',_0x48f3cb)),_0xd30a4c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4a1e96,{writer:_0x239c8d,options:_0x5e1695})=>{if(_0x5e1695['showSuggestionHighlights'])return _0x239c8d['createEmptyElement']('div');},'converterPriority':'high'}),_0xd30a4c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4f903a,_0x60da,_0x57269a)=>{_0x57269a['options']['showSuggestionHighlights']&&_0x4f903a['stop']();},{'priority':'high'});}}class gt extends _0x5ed9bd{['afterInit'](){const _0x55d9ca=this['editor'];_0x55d9ca['plugins']['has']('MentionEditing')&&_0x55d9ca['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5ed9bd{['afterInit'](){const _0x18b777=this['editor'],_0x9616b2=_0x18b777['plugins']['get']('TrackChangesEditing');_0x18b777['plugins']['has']('MultiLevelList')&&(_0x9616b2['enableDefaultAttributesIntegration']('multiLevelList'),_0x9616b2['registerBlockAttribute']('listMarkerStyle'),_0x9616b2['descriptionFactory']['registerDescriptionCallback'](_0x3695ae=>this['handleDescriptions'](_0x3695ae)));}['handleDescriptions'](_0x22c23d){const _0x30f440=this['editor']['locale'],{data:_0xe62e92}=_0x22c23d,_0x5913f0={'type':'format','content':''};if(_0xe62e92&&'listMarkerStyle'==_0xe62e92['key']){if(!_0xe62e92['oldValue'])return{'type':'format','content':o(_0x30f440,'*Set\x20format:*\x20%0',o(_0x30f440,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xe62e92['newValue']+')'};if(!_0xe62e92['newValue']){let _0x1483d7=_0x22c23d['head'];for(;_0x1483d7;){if(_0x1483d7['data']&&'listType'==_0x1483d7['data']['key']&&_0x1483d7['data']['newValue'])return _0x5913f0;_0x1483d7=_0x1483d7['next'];}return{'type':'format','content':o(_0x30f440,'*Remove\x20format:*\x20%0',o(_0x30f440,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xe62e92['oldValue']+')'};}}}}class mt extends _0x5ed9bd{['afterInit'](){const _0x8c3df8=this['editor'];if(!_0x8c3df8['plugins']['has']('PageBreakEditing'))return;_0x8c3df8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x16c4c3=_0x8c3df8['plugins']['get']('TrackChangesEditing'),_0x683c9d=_0x8c3df8['locale'];_0x16c4c3['descriptionFactory']['registerElementLabel']('pageBreak',_0x48e29a=>o(_0x683c9d,'ELEMENT_PAGE_BREAK',_0x48e29a));}}class dt extends _0x5ed9bd{['afterInit'](){const _0x57905f=this['editor'];if(!_0x57905f['plugins']['has']('Paragraph'))return;const _0x588c8a=_0x57905f['locale'],_0x89ac1f=_0x57905f['plugins']['get']('TrackChangesEditing');_0x89ac1f['descriptionFactory']['registerElementLabel']('paragraph',_0x27a49c=>o(_0x588c8a,'ELEMENT_PARAGRAPH',_0x27a49c)),_0x89ac1f['enableDefaultAttributesIntegration']('paragraph'),_0x89ac1f['enableCommand']('insertParagraph'),_0x57905f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x57905f),{'priority':'highest'}),_0x57905f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5ed916,_0x1022c7,_0x4c2f46)=>{_0x4c2f46['options']['showSuggestionHighlights']&&nr(_0x57905f,{'showActiveMarker':!0x1})(_0x5ed916,_0x1022c7,_0x4c2f46);},{'priority':'highest'});const _0x1f6391=_0x89ac1f['descriptionFactory'];_0x1f6391['registerDescriptionCallback'](_0x432277=>{if('insertion'!==_0x432277['type'])return;const {start:_0x3d63e2,end:_0x37a151}=_0x432277['getFirstRange']();if(!_0x3d63e2['isTouching'](_0x37a151)||!_0x3d63e2['nodeAfter'])return;const _0x40be08=_0x57905f['model']['schema'],_0x102457=_0x3d63e2['nodeAfter'];return _0x40be08['isBlock'](_0x102457)&&!_0x40be08['isLimit'](_0x102457)&&_0x40be08['checkChild'](_0x102457,'$text')?{'type':'insertion','content':o(_0x588c8a,'*Insert:*\x20%0',_0x1f6391['getItemLabel'](_0x102457,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ccaa8=this['editor'],_0x3bd786=_0x1ccaa8['locale'];_0x1ccaa8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50b6f6=>{if('formatBlock'!=_0x50b6f6['type'])return;const {data:_0x472578}=_0x50b6f6;return _0x472578&&'paragraph'==_0x472578['commandName']?{'type':'format','content':o(_0x3bd786,'*Change\x20to:*\x20%0',o(_0x3bd786,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x186edc,{showActiveMarker:_0x58496a=!0x0}={}){return(_0x275619,_0x5812f1,_0x491acc)=>{const _0x4f3791=_0x186edc['plugins']['get']('TrackChangesEditing'),_0x2ebe46=_0x5812f1['markerRange']['start'],_0x5d7123=_0x5812f1['markerRange']['end'],_0x3c010e=_0x186edc['model']['schema'];if(!_0x2ebe46['isTouching'](_0x5d7123)||!_0x2ebe46['nodeAfter'])return;const _0x33d562=_0x2ebe46['nodeAfter'];if(_0x3c010e['isBlock'](_0x33d562)&&!_0x3c010e['isLimit'](_0x33d562)&&_0x3c010e['checkChild'](_0x33d562,'$text')){if(!_0x491acc['consumable']['consume'](_0x5812f1['markerRange'],_0x275619['name']))return;const _0x23df6c=_0x491acc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5a46f8=_0x491acc['mapper']['toViewPosition'](_0x5d7123);_0x58496a&&_0x4f3791['activeMarkers']['includes'](_0x5812f1['markerName'])&&_0x491acc['writer']['addClass']('ck-suggestion-marker--active',_0x23df6c),_0x491acc['writer']['insert'](_0x5a46f8,_0x23df6c),_0x491acc['mapper']['bindElementToMarker'](_0x23df6c,_0x5812f1['markerName']);}};}class pt extends _0x5ed9bd{['afterInit'](){const _0x3b06da=this['editor'];if(!_0x3b06da['plugins']['has']('RemoveFormatEditing'))return;_0x3b06da['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37ca38=this['editor'];_0x37ca38['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59d043=>{if('formatBlock'!=_0x59d043['type']&&'formatInline'!=_0x59d043['type'])return;const {data:_0x5e5655}=_0x59d043;return _0x5e5655&&'removeFormat'==_0x5e5655['commandName']?{'type':'format','content':o(_0x37ca38['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5ed9bd{['afterInit'](){const _0x2bd98c=this['editor'];if(!_0x2bd98c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2deb48=_0x2bd98c['plugins']['get']('TrackChangesEditing');_0x2deb48['enableCommand']('goToPreviousRestrictedEditingException'),_0x2deb48['enableCommand']('goToNextRestrictedEditingException');const _0x91ab38=_0x2bd98c['plugins']['get']('RestrictedEditingModeEditing');_0x91ab38['enableCommand']('trackChanges'),_0x91ab38['enableCommand']('acceptSuggestion'),_0x91ab38['enableCommand']('discardSuggestion'),_0x91ab38['enableCommand']('acceptAllSuggestions'),_0x91ab38['enableCommand']('discardAllSuggestions'),_0x91ab38['enableCommand']('acceptSelectedSuggestions'),_0x91ab38['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5ed9bd{static get['requires'](){return[_0x433e09];}['init'](){const _0x3f1302=this['editor'],_0x5c35a0=_0x3f1302['plugins']['get']('TrackChangesEditing');_0x5c35a0['enableCommand']('shiftEnter'),_0x3f1302['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3f1302),{'priority':'high'}),_0x3f1302['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3f1302),{'priority':'high'}),_0x3f1302['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1532ae,_0x4ae75e,_0x205c00)=>{_0x205c00['options']['showSuggestionHighlights']&&de(_0x3f1302,{'showActiveMarker':!0x1})(_0x1532ae,_0x4ae75e,_0x205c00);}),_0x5c35a0['descriptionFactory']['registerElementLabel']('softBreak',_0x3a2d23=>o(_0x3f1302['locale'],'ELEMENT_LINE_BREAK',_0x3a2d23));}}function de(_0x239386,{showActiveMarker:_0x1401b5=!0x0}={}){return(_0x39b308,_0xb8d281,_0x2fd809)=>{const _0x43d2ee=_0x239386['plugins']['get']('TrackChangesEditing');if(!_0x2fd809['consumable']['test'](_0xb8d281['markerRange'],_0x39b308['name']))return;const _0x14ec8a=_0x239386['model'];for(const _0x2658d8 of _0xb8d281['markerRange']['getItems']()){if(!_0x2658d8['is']('element','softBreak'))continue;const _0x14bac1='deletion'==_0xb8d281['markerName']['split'](':')[0x1]?'merge':'split',_0x6935e1=_0x2fd809['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14bac1}),_0x49c473=_0x2fd809['mapper']['toViewPosition'](_0x14ec8a['createPositionBefore'](_0x2658d8));_0x1401b5&&_0x43d2ee['activeMarkers']['includes'](_0xb8d281['markerName'])&&_0x2fd809['writer']['addClass']('ck-suggestion-marker--active',_0x6935e1),_0x2fd809['writer']['insert'](_0x49c473,_0x6935e1),_0x2fd809['mapper']['bindElementToMarker'](_0x6935e1,_0xb8d281['markerName']);}};}class wt extends _0x5ed9bd{['afterInit'](){const _0x1d5808=this['editor'],_0x49d9ba=_0x1d5808['model'],_0x3ae29c=_0x1d5808['locale'];if(!_0x1d5808['plugins']['has']('StandardEditingModeEditing'))return;const _0x383173=_0x1d5808['plugins']['get']('TrackChangesEditing'),_0x545a5a='restrictedEditingException',_0x1d3bbc=_0x1d5808['commands']['get'](_0x545a5a);_0x383173['enableCommand'](_0x545a5a,(_0x3e50a2,_0x56f53b={})=>{const _0x371861=_0x49d9ba['document']['selection'];if(_0x371861['isCollapsed'])return void _0x3e50a2(_0x56f53b);const _0x1cd89a=void 0x0!==_0x56f53b['forceValue']?_0x56f53b['forceValue']:!_0x1d3bbc['value'];_0x49d9ba['change'](()=>{const _0x7e9dff=Array['from'](_0x371861['getRanges']());for(const _0xafd46e of _0x7e9dff){const _0x1e46f8=_0x1cd89a?[_0xafd46e]:io(_0x545a5a,_0xafd46e,_0x49d9ba);for(const _0x30d4eb of _0x1e46f8)_0x383173['markInlineFormat'](_0x30d4eb,{'commandName':_0x545a5a,'commandParams':[{'forceValue':_0x1cd89a}]});}});}),_0x383173['descriptionFactory']['registerDescriptionCallback'](_0x4e54ff=>{if('formatBlock'!=_0x4e54ff['type']&&'formatInline'!=_0x4e54ff['type'])return;const {data:_0x483d35}=_0x4e54ff;return _0x483d35&&_0x483d35['commandName']==_0x545a5a?_0x483d35['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ae29c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3ae29c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5ed9bd{['afterInit'](){const _0x943b74=this['editor'];if(!_0x943b74['plugins']['has']('Style')||!_0x943b74['plugins']['has']('DataSchema'))return;const _0x1f1d57=_0x943b74['plugins']['get']('TrackChangesEditing'),_0x3619c4=_0x943b74['locale'],_0x4c4d53=_0x943b74['config']['get']('style')||{},_0x3852bf=_0x943b74['plugins']['get']('GeneralHtmlSupport'),_0x572164=_0x943b74['plugins']['get']('StyleUtils')['normalizeConfig'](_0x943b74['plugins']['get']('DataSchema'),_0x4c4d53['definitions']);_0x1f1d57['enableDefaultAttributesIntegration']('style');const _0x538adc=new Set();for(const _0x2c9c80 of _0x572164['block']){const _0x6a94a3=_0x3852bf['getGhsAttributeNameForElement'](_0x2c9c80['element']);_0x538adc['add'](_0x6a94a3);}const _0x7e0bab=new Set();for(const _0x4bdb54 of _0x572164['inline']){const _0x4219e4=_0x3852bf['getGhsAttributeNameForElement'](_0x4bdb54['element']);_0x7e0bab['add'](_0x4219e4);for(const _0x7898dd of _0x4bdb54['ghsAttributes'])_0x7e0bab['add'](_0x7898dd);}for(const _0x221ab7 of _0x538adc)_0x1f1d57['registerBlockAttribute'](_0x221ab7),_0x1f1d57['descriptionFactory']['registerAttributeLabel'](_0x221ab7,o(_0x3619c4,'FORMAT_STYLE'));for(const _0x40c1dc of _0x7e0bab)_0x1f1d57['registerInlineAttribute'](_0x40c1dc),_0x1f1d57['descriptionFactory']['registerAttributeLabel'](_0x40c1dc,o(_0x3619c4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4066e3=this['editor'],_0x20ce46=_0x4066e3['locale'];_0x4066e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x361beb=>{if('formatBlock'!=_0x361beb['type']&&'formatInline'!=_0x361beb['type'])return;const {data:_0x33e06b}=_0x361beb;return _0x33e06b&&'style'===_0x33e06b['commandName']?_0x33e06b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20ce46,'*Set\x20format:*\x20%0',_0x33e06b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x20ce46,'*Remove\x20format:*\x20%0',_0x33e06b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5ed9bd{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x35e874){super(_0x35e874),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1abea8=this['editor'],_0xabaeea=_0x1abea8['model']['document']['selection'];if(!_0x1abea8['plugins']['has']('TableEditing'))return;const _0x7c903c=_0x1abea8['locale'],_0x35220c=_0x1abea8['plugins']['get']('TrackChangesEditing'),_0x17faac=_0x1abea8['plugins']['get']('TableUtils');_0x35220c['descriptionFactory']['registerElementLabel']('table',_0xc08623=>o(_0x7c903c,'ELEMENT_TABLE',_0xc08623)),this['_setupColumnsRowsFixing'](),_0x35220c['enableCommand']('insertTable'),_0x35220c['enableCommand']('selectTableRow'),_0x35220c['enableCommand']('selectTableColumn');for(const _0x375563 of['insertTableRowAbove','insertTableRowBelow']){const _0x197d50=_0x1abea8['commands']['get'](_0x375563);_0x35220c['enableCommand'](_0x375563,_0x3f8bb4=>{_0x1abea8['model']['change'](_0x5c7600=>{_0x3f8bb4();const _0x5e31b9='above'===_0x197d50['order'],_0xfdc241=_0x17faac['getSelectionAffectedTableCells'](_0xabaeea),_0x1a5030=_0x17faac['getRowIndexes'](_0xfdc241),_0xa7a533=_0x5e31b9?_0x1a5030['first']-0x1:_0x1a5030['last']+0x1,_0x466023=_0xfdc241[0x0]['findAncestor']('table'),_0x194070=_0x17faac['createTableWalker'](_0x466023,{'startRow':_0xa7a533,'endRow':_0xa7a533}),_0x3a682c=Array['from'](_0x194070)['map'](_0x2abe53=>_0x5c7600['createRangeOn'](_0x2abe53['cell']));_0x35220c['markMultiRangeInsertion'](_0x3a682c,'tableRow');});});}for(const _0x5ae247 of['insertTableColumnLeft','insertTableColumnRight']){const _0x112171=_0x1abea8['commands']['get'](_0x5ae247);_0x35220c['enableCommand'](_0x5ae247,_0x471614=>{_0x1abea8['model']['change'](_0x2d0f21=>{_0x471614();const _0x3bbcdc='left'===_0x112171['order'],_0x33487c=_0x17faac['getSelectionAffectedTableCells'](_0xabaeea),_0x50ed67=_0x17faac['getColumnIndexes'](_0x33487c),_0x22cdde=_0x3bbcdc?_0x50ed67['first']-0x1:_0x50ed67['last']+0x1,_0x209876=_0x33487c[0x0]['findAncestor']('table'),_0x11d018=_0x17faac['createTableWalker'](_0x209876,{'startRow':0x0,'column':_0x22cdde,'includeAllSlots':!0x1}),_0xecdfd1=Array['from'](_0x11d018)['map'](_0x146bca=>_0x2d0f21['createRangeOn'](_0x146bca['cell']));_0x35220c['markMultiRangeInsertion'](_0xecdfd1,'tableColumn');});});}for(const _0x286583 of['removeTableRow','removeTableColumn']){const _0x752493=_0x286583['substr'](0xb),_0x5dcfb0=_0x752493['toLowerCase'](),_0x44093a=_0x5dcfb0['substr'](0x0,0x3)+'span',_0x32f37a='table'+_0x752493,_0x2116eb='min'+_0x752493,_0x1d9f72='max'+_0x752493;_0x35220c['enableCommand'](_0x286583,()=>{_0x1abea8['model']['change'](_0x2563ab=>{const _0xc84a98=_0x17faac['getSelectionAffectedTableCells'](_0xabaeea),_0x328fe7=_0xc84a98[0x0]['findAncestor']('table');let _0x132f2a;if('removeTableRow'==_0x286583){const _0x42131e=_0x17faac['getRowIndexes'](_0xc84a98);_0x132f2a={'startRow':_0x42131e['first'],'endRow':_0x42131e['last'],'includeAllSlots':!0x0};}else{const _0xf3d1ef=_0x17faac['getColumnIndexes'](_0xc84a98);_0x132f2a={'startColumn':_0xf3d1ef['first'],'endColumn':_0xf3d1ef['last'],'includeAllSlots':!0x0};}const _0xabc06=_0x17faac['createTableWalker'](_0x328fe7,_0x132f2a),_0x371ffc=Array['from'](_0xabc06)['map'](({cell:_0x5e44b3})=>_0x5e44b3),_0x4ea140=Ee(_0x371ffc['filter'](_0x5f20eb=>_0x5f20eb['hasAttribute'](_0x44093a))),_0x374944=Ee(_0x371ffc['filter'](_0x2003ff=>!_0x2003ff['hasAttribute'](_0x44093a)))['map'](_0x4ca288=>_0x2563ab['createRangeOn'](_0x4ca288)),_0x500adc=_0x35220c['markMultiRangeDeletion'](_0x374944,_0x32f37a);if(_0x500adc&&('tableRow'==_0x500adc['subType']||'tableColumn'==_0x500adc['subType'])){const _0x2676ce=this['_getSuggestionCoords'](_0x500adc);for(const _0x48a667 of _0x4ea140){const _0xbad6de=_0x2563ab['createRangeOn'](_0x48a667),_0x468199=_0x17faac['getCellLocation'](_0x48a667),_0x134b54=_0x48a667['getAttribute'](_0x44093a)-0x1,_0x478e72=_0x2676ce[_0x2116eb],_0x56c56c=_0x2676ce[_0x1d9f72];_0x478e72<=_0x468199[_0x5dcfb0]&&_0x468199[_0x5dcfb0]+_0x134b54<=_0x56c56c&&_0x500adc['addRange'](_0xbad6de);}}});});}function _0x28bbd4(_0x14a34a){const _0x25000f=Array['from'](_0xabaeea['getRanges']())['map'](_0x32d723=>_0x4022b5['fromRange'](_0x32d723));_0x1abea8['model']['change'](_0x36d817=>{const _0x1721a4=_0x36d817['batch'];_0x14a34a=_0x14a34a['filter'](_0x23520b=>'$graveyard'!=_0x23520b['root']['rootName']),_0x36d817['setSelection'](_0x14a34a),_0x1abea8['commands']['get']('removeTableRow')['refresh'](),_0x1abea8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1abea8['model']['enqueueChange'](()=>{_0x1abea8['model']['enqueueChange'](_0x1721a4,_0x1d31e4=>{const _0x481f00=_0x25000f['filter'](_0x4b2a2f=>'$graveyard'!=_0x4b2a2f['root']['rootName']);_0x481f00['length']>0x0&&_0x1d31e4['setSelection'](_0x481f00);for(const _0x54828a of _0x25000f)_0x54828a['detach']();});});});}function _0x9cbced(_0x277bca){_0x1abea8['model']['change'](_0x2c56ef=>{const _0x5cab5b=Array['from'](_0xabaeea['getRanges']())['map'](_0xda000e=>_0x4022b5['fromRange'](_0xda000e)),_0x144bda=[];for(const _0x52078e of _0x277bca)for(const _0x4c7ae1 of _0x52078e['getItems']({'shallow':!0x0}))_0x144bda['push'](_0x4c7ae1);for(const _0x529e80 of _0x144bda)'$graveyard'!=_0x529e80['root']['rootName']&&(_0x2c56ef['setSelection'](_0x2c56ef['createPositionAt'](_0x529e80,0x0)),_0x1abea8['commands']['get']('removeTableColumn')['refresh'](),_0x1abea8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1543a6=_0x5cab5b['filter'](_0x475e60=>'$graveyard'!=_0x475e60['root']['rootName']);_0x1543a6['length']>0x0&&_0x2c56ef['setSelection'](_0x1543a6);for(const _0xd74d8e of _0x5cab5b)_0xd74d8e['detach']();});}function _0x5a1c6c(_0x24390b,_0x36f568){return _0x36f568['every'](_0x415894=>_0x24390b['some'](_0x4cc1e3=>_0x4cc1e3['end']['isEqual'](_0x415894['start'])||_0x415894['end']['isEqual'](_0x4cc1e3['start'])));}function _0x4b9e0b(_0x1ab219,_0x492c69){return!_0x1ab219['some'](_0x21d7a9=>_0x492c69['some'](_0x4856ea=>_0x21d7a9['isIntersecting'](_0x4856ea)))&&_0x1ab219['some'](_0x7a033c=>_0x492c69['some'](_0x3dd647=>_0x7a033c['end']['isTouching'](_0x3dd647['start'])));}_0x1abea8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x26a314,_0x1528d6,_0x3c8206)=>{if(!_0x3c8206['options']['showSuggestionHighlights'])return;const _0x1a3e33=_0x1528d6['item'];if(!_0x1a3e33)return;const _0xdf2a8e=_0x3c8206['mapper']['toViewElement'](_0x1a3e33);function _0x109107(_0x4fa5d1){return Array['isArray'](_0x4fa5d1)?_0x4fa5d1:[_0x4fa5d1];}_0xdf2a8e&&'tableCell'===_0x1a3e33['name']&&_0x483a9d(_0xdf2a8e,_0x3c8206['writer'],(_0x4d3c9c,_0x19794d,_0xa7e4ef)=>_0xa7e4ef['addClass'](_0x109107(_0x19794d['classes']),_0x4d3c9c),(_0x357128,_0xc93e82,_0x2fa409)=>_0x2fa409['removeClass'](_0x109107(_0xc93e82['classes']),_0x357128));},{'priority':'highest'}),_0x35220c['descriptionFactory']['registerDescriptionCallback'](_0xcbd214=>{if('insertion'!=_0xcbd214['type']&&'deletion'!=_0xcbd214['type'])return;const _0x4246da=_0xcbd214['getContainedElement']();if(null!=_0x4246da&&_0x4246da['is']('element','table')){if('insertion'==_0xcbd214['type']){const _0x36b238=_0xcbd214['getItems']()['filter'](_0x3cf267=>_0x3cf267['is']('$textProxy'))['map'](_0x5901c4=>_0x5901c4['data']);if(_0x36b238['length'])return{'type':'insertion','content':o(_0x7c903c,'*Insert:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36b238['join']('\x20')+'\x22'))};}if('deletion'==_0xcbd214['type']){const _0x160bcb=_0xcbd214['getItems']()['filter'](_0x18938d=>_0x18938d['is']('$textProxy'))['map'](_0x4e4fc6=>_0x4e4fc6['data']);if(_0x160bcb['length'])return{'type':'deletion','content':o(_0x7c903c,'*Remove:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x160bcb['join']('\x20')+'\x22'))};}}}),_0x35220c['descriptionFactory']['registerDescriptionCallback'](_0x479a86=>{if('tableRow'==_0x479a86['subType']){const _0x13f975=_0x479a86['getItems']()['filter'](_0x3c3b26=>_0x3c3b26['is']('$textProxy'))['map'](_0x589c30=>_0x589c30['data']),_0x58a527=this['_getSuggestionCoords'](_0x479a86),_0x576415=_0x58a527['maxRow']-_0x58a527['minRow']+0x1;if('insertion'==_0x479a86['type'])return _0x13f975['length']?{'type':'insertion','content':o(_0x7c903c,'*Insert:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x576415,'\x22'+_0x13f975['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x7c903c,'*Insert:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_ROW',_0x576415))};if('deletion'==_0x479a86['type'])return _0x13f975['length']?{'type':'deletion','content':o(_0x7c903c,'*Remove:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x576415,'\x22'+_0x13f975['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x7c903c,'*Remove:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_ROW',_0x576415))};}if('tableColumn'==_0x479a86['subType']){const _0x1b0c80=_0x479a86['getItems']()['filter'](_0x481111=>_0x481111['is']('$textProxy'))['map'](_0x1121aa=>_0x1121aa['data']),_0x381af3=this['_getSuggestionCoords'](_0x479a86),_0x555025=_0x381af3['maxColumn']-_0x381af3['minColumn']+0x1;if('insertion'==_0x479a86['type'])return _0x1b0c80['length']?{'type':'insertion','content':o(_0x7c903c,'*Insert:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x555025,'\x22'+_0x1b0c80['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x7c903c,'*Insert:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_COLUMN',_0x555025))};if('deletion'==_0x479a86['type'])return _0x1b0c80['length']?{'type':'deletion','content':o(_0x7c903c,'*Remove:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x555025,'\x22'+_0x1b0c80['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x7c903c,'*Remove:*\x20%0',o(_0x7c903c,'ELEMENT_TABLE_COLUMN',_0x555025))};}}),_0x35220c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x28bbd4),_0x35220c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x28bbd4),_0x35220c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x9cbced),_0x35220c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x9cbced),_0x35220c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5a1c6c),_0x35220c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5a1c6c),_0x35220c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4b9e0b),_0x35220c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4b9e0b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x34c0bb=this['editor'],_0x597100=_0x34c0bb['model']['document']['selection'];return(_0x1c91a0,_0x1c78c5)=>{_0x34c0bb['model']['change'](_0x25e609=>{const {commandName:_0x4d33da,commandParams:_0xc030bb}=_0x1c78c5;let _0x5e4fb2=_0x1c91a0[0x0]['end']['nodeBefore'];_0xc030bb&&_0xc030bb[0x0]&&!0x1===_0xc030bb[0x0]['forceValue']&&(_0x5e4fb2=_0x1c91a0[0x0]['start']['nodeAfter']);const _0x313959=_0x25e609['createRangeIn'](_0x5e4fb2);if('$graveyard'==_0x313959['root']['rootName'])return;const _0x3629fc=Array['from'](_0x597100['getRanges']())['map'](_0x42166e=>_0x4022b5['fromRange'](_0x42166e));_0x25e609['setSelection'](_0x313959),_0x34c0bb['commands']['get'](_0x4d33da)['refresh'](),_0xc030bb['push']({'forceDefaultExecution':!0x0}),_0x34c0bb['execute'](_0x4d33da,..._0xc030bb);const _0x3b0f46=_0x3629fc['filter'](_0x4ecedb=>'$graveyard'!=_0x4ecedb['root']['rootName']);_0x3b0f46['length']>0x0&&_0x25e609['setSelection'](_0x3b0f46);for(const _0x5a8a76 of _0x3629fc)_0x5a8a76['detach']();});};}['_getCoordsForCells'](_0xb82c9e){const _0x179ee5=this['editor']['plugins']['get']('TableUtils');let _0x19855a=Number['MAX_SAFE_INTEGER'],_0x12d662=Number['MIN_SAFE_INTEGER'],_0x1bcf6e=Number['MAX_SAFE_INTEGER'],_0x48faf9=Number['MIN_SAFE_INTEGER'];for(const _0xdee923 of _0xb82c9e){if('$graveyard'==_0xdee923['root']['rootName'])continue;const {row:_0x48b044,column:_0x207a24}=_0x179ee5['getCellLocation'](_0xdee923),_0x889187=_0xdee923['hasAttribute']('rowspan')?_0xdee923['getAttribute']('rowspan')-0x1:0x0,_0xa659c3=_0xdee923['hasAttribute']('colspan')?_0xdee923['getAttribute']('colspan')-0x1:0x0;_0x19855a=_0x48b044<_0x19855a?_0x48b044:_0x19855a,_0x12d662=_0x48b044+_0x889187>_0x12d662?_0x48b044+_0x889187:_0x12d662,_0x1bcf6e=_0x207a24<_0x1bcf6e?_0x207a24:_0x1bcf6e,_0x48faf9=_0x207a24+_0xa659c3>_0x48faf9?_0x207a24+_0xa659c3:_0x48faf9;}return{'minRow':_0x19855a,'maxRow':_0x12d662,'minColumn':_0x1bcf6e,'maxColumn':_0x48faf9};}['_setupColumnsRowsFixing'](){const _0x3a15ed=this['editor'],_0x9fe0c4=_0x3a15ed['plugins']['get']('TrackChangesEditing'),_0x33d55f=_0x3a15ed['plugins']['get']('TableUtils');_0x3a15ed['model']['document']['on']('change:data',()=>{const _0xc3cffd=Array['from'](_0x3a15ed['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e1833,data:_0x236dca}of _0xc3cffd){const {group:_0x494b2f,id:_0x56980a,subType:_0x2df591}=_0x9fe0c4['_splitMarkerName'](_0x4e1833);if('suggestion'!=_0x494b2f)continue;if(null!=_0x236dca['oldRange'])continue;const _0xca62fc=_0x9fe0c4['getSuggestion'](_0x56980a);this['_tablePostFixingSubtypes']['includes'](_0x2df591)&&this['_tableSuggestions']['add'](_0xca62fc);}},{'priority':'low'});const _0x968f87=(_0x47912e,_0xc86bef)=>{let _0x4771a1=!0x1;const _0x5f591d=_0xc86bef['createRangeOn'](_0x47912e),_0x5f0c93=_0x47912e['findAncestor']('table'),_0x17c79f=_0x33d55f['getCellLocation'](_0x47912e);for(const _0x534526 of this['_tableSuggestions']){const _0x47af0c=_0x534526['subType'],_0x4660dd=_0x47af0c['startsWith']('tablePaste'),_0xf7ca53=_0x47af0c['substr'](_0x4660dd?0xa:0x5),_0x34607d=_0xf7ca53['toLowerCase'](),_0x2691e9=_0x34607d['substr'](0x0,0x3)+'span',_0x385878='min'+_0xf7ca53,_0x565fe='max'+_0xf7ca53;if(!_0x534526['isInContent'])continue;if(_0x5f0c93!=_0x534526['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x534526['isIntersectingWithRange'](_0x5f591d))continue;const _0x1ff74e=_0x47912e['hasAttribute'](_0x2691e9)?_0x47912e['getAttribute'](_0x2691e9)-0x1:0x0,_0x127ea3=this['_getSuggestionCoords'](_0x534526),_0x2ce7cb=_0x127ea3[_0x385878],_0x1314b0=_0x127ea3[_0x565fe];_0x2ce7cb<=_0x17c79f[_0x34607d]&&_0x17c79f[_0x34607d]+_0x1ff74e<=_0x1314b0&&(_0x534526['addRange'](_0x5f591d),_0x4771a1=!0x0);}return _0x4771a1;};_0x3a15ed['model']['document']['registerPostFixer'](_0xe9806d=>{let _0x1c897e=!0x1;for(const _0x47adb2 of _0x3a15ed['model']['document']['differ']['getChanges']())if('insert'==_0x47adb2['type']){if('tableRow'==_0x47adb2['name']){for(const _0x1b77a4 of _0x47adb2['position']['nodeAfter']['getChildren']())_0x1c897e=_0x1c897e||_0x968f87(_0x1b77a4,_0xe9806d);}else'tableCell'==_0x47adb2['name']&&(_0x1c897e=_0x1c897e||_0x968f87(_0x47adb2['position']['nodeAfter'],_0xe9806d));}return _0x1c897e;});}['_getSuggestionCoords'](_0x48caf5){return this['_getCoordsForCells'](_0x48caf5['getRanges']()['map'](_0x470b5f=>_0x470b5f['start']['nodeAfter']));}}function Ee(_0x224747){return Array['from'](new Set(_0x224747)['values']());}class St extends _0x5ed9bd{static get['requires'](){return[jt];}['afterInit'](){const _0x232d68=this['editor'],_0xf0529=_0x232d68['model']['document']['selection'],_0x466b4f=_0x232d68['locale'];if(!_0x232d68['plugins']['has']('TableEditing'))return;const _0x402cc7=_0x232d68['plugins']['get']('TrackChangesEditing'),_0xa675e0=_0x232d68['plugins']['get']('TableUtils'),_0x5735ac=_0x232d68['plugins']['get'](jt);_0x5735ac['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x402cc7['enableCommand']('mergeTableCells',()=>{const _0x220905=_0xa675e0['getSelectionAffectedTableCells'](_0x232d68['model']['document']['selection']);_0x232d68['model']['change'](()=>{_0x402cc7['markMultiRangeBlockFormat'](_0x220905,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x232d68['commands']['get']('mergeTableCells')['on']('execute',(_0x14d392,_0x629d10)=>{_0x232d68['commands']['get']('trackChanges')['value']&&(_0x629d10['length']>0x0&&_0x629d10[_0x629d10['length']-0x1]&&_0x629d10[_0x629d10['length']-0x1]['forceDefaultExecution']||_0x402cc7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x14d392['stop']());},{'priority':'highest'});for(const _0x32288e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x487e8d=_0x232d68['commands']['get'](_0x32288e);_0x402cc7['enableCommand'](_0x32288e,()=>{const _0x5344cf=_0x232d68['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x49b82e=>_0x49b82e['is']('element','tableCell')),_0x7110bb=_0x487e8d['value'];_0x232d68['model']['change'](()=>{_0x402cc7['markMultiRangeBlockFormat']([_0x5344cf,_0x7110bb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x118f2c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x10ecef=_0x232d68['commands']['get'](_0x118f2c);_0x402cc7['enableCommand'](_0x118f2c,()=>{const _0x5cb43e=_0xa675e0['getSelectionAffectedTableCells'](_0x232d68['model']['document']['selection'])[0x0],_0x9cdee0=_0x5cb43e['findAncestor']('table'),{column:_0xd91a88,row:_0x565b61}=_0xa675e0['getCellLocation'](_0x5cb43e);let _0x3d52f3=[];if('horizontally'==_0x10ecef['direction']){const _0x3ff902=_0xa675e0['createTableWalker'](_0x9cdee0,{'startRow':_0x565b61,'endRow':_0x565b61,'includeAllSlots':!0x0});_0x3d52f3=Array['from'](_0x3ff902)['map'](_0x3659b1=>_0x3659b1['cell']);}else{const _0xec6aaa=_0xa675e0['createTableWalker'](_0x9cdee0,{'column':_0xd91a88,'includeAllSlots':!0x0});_0x3d52f3=Array['from'](_0xec6aaa)['map'](_0x17a4c1=>_0x17a4c1['cell']);}_0x232d68['model']['change'](_0x185535=>{_0x402cc7['markBlockFormat'](_0x185535['createRangeOn'](_0x5cb43e),{'commandName':_0x118f2c,'commandParams':[]},_0x3d52f3,_0x118f2c);});});}_0x402cc7['descriptionFactory']['registerDescriptionCallback'](_0x236c26=>{if('formatBlock'!=_0x236c26['type']&&'formatInline'!=_0x236c26['type'])return;const {data:_0x55b3c6}=_0x236c26;return _0x55b3c6&&'mergeTableCells'==_0x55b3c6['commandName']?{'type':'format','content':o(_0x466b4f,'*Merge\x20cells*')}:void 0x0;}),_0x402cc7['descriptionFactory']['registerDescriptionCallback'](_0x22a08e=>{if('formatBlock'!=_0x22a08e['type']&&'formatInline'!=_0x22a08e['type'])return;const {data:_0x577291}=_0x22a08e;return _0x577291?'splitTableCellVertically'==_0x577291['commandName']?{'type':'format','content':o(_0x466b4f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x577291['commandName']?{'type':'format','content':o(_0x466b4f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x367395=_0x5735ac['_acceptFormatSuggestionCallbackFactory']();for(const _0x4d205b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x402cc7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d205b,'accept',_0x367395);for(const _0x576c1e of['splitTableCellVertically','splitTableCellHorizontally'])_0x402cc7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x576c1e,'accept',_0x367395);_0x402cc7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x11907d=>{_0x232d68['model']['change'](_0x567589=>{const _0x2d74b7=Array['from'](_0xf0529['getRanges']())['map'](_0x37600d=>_0x4022b5['fromRange'](_0x37600d));_0x567589['setSelection'](_0x11907d),_0x232d68['commands']['get']('mergeTableCells')['refresh'](),_0x232d68['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x105616=_0x2d74b7['filter'](_0x1f0431=>'$graveyard'!=_0x1f0431['root']['rootName']);_0x105616['length']>0x0&&_0x567589['setSelection'](_0x105616);for(const _0x17215e of _0x2d74b7)_0x17215e['detach']();});});for(const _0x44f2ac of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xd9ef0b=_0x232d68['commands']['get'](_0x44f2ac);_0xd9ef0b['on']('set:isEnabled',(_0x5952b9,_0x2f0e9f,_0x2da1fd)=>{if(_0x2da1fd){const _0x581c04=_0x232d68['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1807e9=>_0x1807e9['is']('element','tableCell'));this['_areMergableCells'](_0xd9ef0b['value'],_0x581c04)||(_0x5952b9['return']=!0x1,_0x5952b9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a7054=this['editor']['commands']['get']('mergeTableCells'),_0xd49f6d=this['editor']['plugins']['get']('TableUtils');if(!_0x4a7054['isEnabled'])return!0x1;const _0x4f56d9=_0xd49f6d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3ab89a of _0x4f56d9)for(const _0x4eecb4 of _0x4f56d9)if(_0x3ab89a!=_0x4eecb4&&!this['_areMergableCells'](_0x3ab89a,_0x4eecb4))return!0x1;return!0x0;}['_areMergableCells'](_0x300850,_0xb0927e){const _0x283b4c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fd15d=this['editor']['model']['createRangeOn'](_0x300850),_0x2b1aa0=this['editor']['model']['createRangeOn'](_0xb0927e),_0x5a5ab5=new Set(),_0x3c0c4f=new Set();for(const _0xb9f4ff of _0x283b4c['getSuggestions']())if(('insertion'==_0xb9f4ff['type']||'deletion'==_0xb9f4ff['type']||'mergeTableCells'==_0xb9f4ff['subType'])&&_0xb9f4ff['isInContent']){for(const _0x49dcc8 of _0xb9f4ff['getRanges']())_0x49dcc8['containsRange'](_0x4fd15d,!0x0)&&_0x5a5ab5['add'](_0xb9f4ff['type']+':'+_0xb9f4ff['author']['id']),_0x49dcc8['containsRange'](_0x2b1aa0,!0x0)&&_0x3c0c4f['add'](_0xb9f4ff['type']+':'+_0xb9f4ff['author']['id']);}if(_0x5a5ab5['size']!=_0x3c0c4f['size'])return!0x1;for(const _0x1949c0 of _0x5a5ab5)if(!_0x3c0c4f['has'](_0x1949c0))return!0x1;return!0x0;}}class At extends _0x5ed9bd{static get['requires'](){return[jt];}['afterInit'](){const _0x26263d=this['editor'];if(!_0x26263d['plugins']['has']('TableEditing'))return;const _0x4e5d05=_0x26263d['locale'],_0x1630e9=_0x26263d['plugins']['get']('TrackChangesEditing');_0x1630e9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1630e9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1630e9['registerBlockAttribute']('headingRows'),_0x1630e9['registerBlockAttribute']('headingColumns'),_0x1630e9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4e5d05,'FORMAT_HEADER_ROW')),_0x1630e9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4e5d05,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x216402=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59e189=this['editor']['plugins']['get']('TableUtils'),_0x37339f=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x43efd0({showActiveMarker:_0x133e6d=!0x0,setDataAttribute:_0x423a7f=!0x0}={}){return(_0x22642b,_0x1bd6bd,_0x22a700)=>{const {type:_0x2e299e,id:_0x580bd2}=_0x216402['_splitMarkerName'](_0x1bd6bd['markerName']),_0x1ca44f=_0x216402['getSuggestion'](_0x580bd2),_0x2cf8c7=_0x1ca44f['data'];if('formatBlock'!=_0x1ca44f['type']||!_0x2cf8c7||'setTableColumnHeader'!=_0x2cf8c7['commandName'])return;if(_0x1bd6bd['item'])return void _0x22642b['stop']();if(!_0x22a700['consumable']['consume'](_0x1bd6bd['markerRange'],_0x22642b['name']))return;const _0x3f52a4=_0x1bd6bd['markerRange']['start']['nodeAfter'],_0x2bcacd=_0x1bd6bd['markerRange']['end']['nodeBefore'],_0xaf7974=_0x3f52a4['parent']['parent'],{column:_0x31b31e}=_0x59e189['getCellLocation'](_0x3f52a4),{column:_0x322824}=_0x59e189['getCellLocation'](_0x2bcacd);for(let _0x5d02cd=_0x31b31e;_0x5d02cd<=_0x322824;_0x5d02cd++){const _0xd746d=_0x59e189['createTableWalker'](_0xaf7974,{'column':_0x5d02cd,'includeAllSlots':!0x1});for(const _0x16b6ba of _0xd746d){const _0x44119a=_0x16b6ba['cell'],_0x59c6de=_0x22a700['mapper']['toViewElement'](_0x44119a);_0x22a700['writer']['addClass']('ck-suggestion-marker-'+_0x2e299e,_0x59c6de),_0x423a7f&&_0x22a700['writer']['setAttribute']('data-suggestion',_0x580bd2,_0x59c6de),_0x22a700['mapper']['bindElementToMarker'](_0x59c6de,_0x1bd6bd['markerName']),_0x133e6d&&(_0x216402['activeMarkers']['includes'](_0x1bd6bd['markerName'])?_0x22a700['writer']['addClass']('ck-suggestion-marker--active',_0x59c6de):_0x22a700['writer']['removeClass']('ck-suggestion-marker--active',_0x59c6de));}}};}_0x216402['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x37339f),_0x216402['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x37339f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x43efd0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x53af27,_0x524e7f,_0x980957)=>{_0x980957['options']['showSuggestionHighlights']&&_0x43efd0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x53af27,_0x524e7f,_0x980957);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a0fe1,_0x193a29,_0x13b20)=>{const {type:_0x593b2c,id:_0x32f03b}=_0x216402['_splitMarkerName'](_0x193a29['markerName']),_0x27fe58=_0x216402['getSuggestion'](_0x32f03b),_0x4812fa=_0x27fe58['data'];if('formatBlock'!=_0x27fe58['type']||!_0x4812fa||'setTableColumnHeader'!=_0x4812fa['commandName'])return;const _0x278b0e=_0x13b20['mapper']['markerNameToElements'](_0x193a29['markerName']);if(_0x278b0e){for(const _0x1ac81e of _0x278b0e)_0x13b20['writer']['removeClass']('ck-suggestion-marker-'+_0x593b2c,_0x1ac81e),_0x13b20['writer']['removeClass']('ck-suggestion-marker--active',_0x1ac81e),_0x13b20['writer']['removeAttribute']('data-suggestion',_0x1ac81e),_0x13b20['mapper']['unbindElementFromMarkerName'](_0x1ac81e,_0x193a29['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2039da=this['editor'],_0x4f3686=_0x2039da['locale'];function _0x55cc12(_0x5bfc55){return{'type':'format','content':o(_0x4f3686,'*Format:*\x20%0',_0x5bfc55)};}_0x2039da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7754e1=>{if('formatBlock'!=_0x7754e1['type'])return;const {data:_0x4abf7b}=_0x7754e1;if(_0x4abf7b){if('setTableRowHeader'==_0x4abf7b['commandName']){const _0x3564b7=_0x4abf7b['commandParams'][0x0]['forceValue'];return _0x55cc12(o(_0x4f3686,_0x3564b7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4abf7b['commandName']){const _0x41ad5b=_0x4abf7b['commandParams'][0x0]['forceValue'];return _0x55cc12(o(_0x4f3686,_0x41ad5b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x353e85=>[_0x353e85,null]));class It extends _0x5ed9bd{static get['requires'](){return[jt];}['afterInit'](){const _0x2350d7=this['editor'];if(!_0x2350d7['plugins']['has']('TableClipboard'))return;const _0x5b036a=_0x2350d7['plugins']['get']('TrackChangesEditing'),_0x1a6499=_0x2350d7['plugins']['get']('TableUtils'),_0x5b78f2=_0x2350d7['plugins']['get'](jt),_0xf5af39=_0x2350d7['plugins']['get']('TableClipboard');_0x5b78f2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2350d7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2350d7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x51abb8=null;_0x2350d7['model']['on']('insertContent',(_0x59d0bd,_0x150685)=>{const [_0x1655f9,_0x719e8d]=_0x150685,_0x170207=_0x150685[_0x150685['length']-0x1];_0x170207&&_0x170207['forceDefaultExecution']||_0x5b036a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x25f506,_0x35cf23,_0xbd2552,_0x11ce9d,_0x579b0f){if(_0x35cf23&&!_0x35cf23['is']('documentSelection'))return!0x1;const _0x224f7e=_0x579b0f['getTableIfOnlyTableInContent'](_0x25f506,_0xbd2552);if(!_0x224f7e||!he(_0x224f7e,void 0x0,_0x11ce9d))return!0x1;const _0x2f1919=_0x11ce9d['getSelectionAffectedTableCells'](_0xbd2552['document']['selection']);if(!_0x2f1919['length'])return!0x1;const _0x15b282=_0x2f1919[0x0]['findAncestor']('table'),_0x23bcb1=_0x11ce9d['getRowIndexes'](_0x2f1919),_0x5f9f68=_0x11ce9d['getColumnIndexes'](_0x2f1919),_0x3901fd={'startRow':_0x23bcb1['first'],'endRow':_0x23bcb1['last'],'startColumn':_0x5f9f68['first'],'endColumn':_0x5f9f68['last']};return 0x1==_0x2f1919['length']&&(_0x3901fd['endRow']+=_0x11ce9d['getRows'](_0x224f7e)-0x1,_0x3901fd['endColumn']+=_0x11ce9d['getColumns'](_0x224f7e)-0x1),he(_0x15b282,_0x3901fd,_0x11ce9d);}(_0x1655f9,_0x719e8d,_0x2350d7['model'],_0x1a6499,_0xf5af39)&&(_0x59d0bd['stop'](),_0x51abb8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2350d7['model']['change'](()=>{_0x2350d7['model']['insertContent'](_0x150685[0x0],_0x150685[0x1],_0x150685[0x2],{'forceDefaultExecution':!0x0});const _0x2d72be=_0x51081b(),{rowInsertionRanges:_0x57f751,columnInsertionRanges:_0x38a3f9,insertionRanges:_0x4843af,deletionRanges:_0xa8f743,cells:_0x15bb5c}=_0x51abb8;_0x57f751['length']&&_0x5b036a['markMultiRangeInsertion'](_0x57f751,'tablePasteRow',{'tablePasteChainId':_0x2d72be}),_0x38a3f9['length']&&_0x5b036a['markMultiRangeInsertion'](_0x38a3f9,'tablePasteColumn',{'tablePasteChainId':_0x2d72be}),_0x4843af['length']&&(_0x5b036a['markMultiRangeInsertion'](_0x4843af,'tablePaste',{'tablePasteChainId':_0x2d72be,'skipNestingCheck':!0x0}),_0x4843af['forEach'](_0x1de579=>_0x1de579['detach']?.())),_0xa8f743['length']&&(_0x5b036a['markMultiRangeDeletion'](_0xa8f743,'tablePaste',{'tablePasteChainId':_0x2d72be,'skipNestingCheck':!0x0}),_0xa8f743['forEach'](_0x2b91ce=>_0x2b91ce['detach']?.()));const _0x358aaa=_0x5b036a['markMultiRangeBlockFormat'](_0x15bb5c['map'](({element:_0x31acdf})=>_0x31acdf),{'formatGroupId':_0x51081b()},[],'tablePasteCell',{'tablePasteChainId':_0x2d72be});if(_0x358aaa){const _0x468857=_0x358aaa['getMarkers'](),_0x438a7e=[];for(const {element:_0x14047f,attributes:_0xa61340}of _0x15bb5c){if(!_0xa61340)continue;const _0x5aef36=_0x2350d7['model']['createRangeOn'](_0x14047f),_0x44329a=_0x468857['find'](_0x4b4947=>_0x4b4947['getRange']()['isEqual'](_0x5aef36));_0x44329a&&_0x438a7e['push']([_0x44329a['name'],_0xa61340]);}_0x438a7e['length']&&_0x358aaa['setAttribute']('markerAttributes',Object['fromEntries'](_0x438a7e));}_0x51abb8=null;}));},{'priority':_0x278b8c['high']+0xa}),_0x2350d7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x149195,_0x565e13)=>{const [_0x194649,_0x41daf0,,_0x814875]=_0x565e13;if(!_0x51abb8)return;_0x149195['stop']();const _0x1a3957=_0x194649['cell'],_0x3309ee=_0x41daf0,_0x2f8f45=Pe(_0x1a3957),_0x53cd3f=Pe(_0x3309ee);_0x149195['return']=_0x1a3957;let _0x5b4b89=null,_0x3baafd=null;if(_0x53cd3f||_0x2f8f45){if(_0x2f8f45&&!_0x53cd3f){_0x814875['remove'](_0x1a3957['getChild'](0x0));for(const _0x5ca63e of Array['from'](_0x3309ee['getChildren']()))_0x814875['insert'](_0x5ca63e,_0x1a3957,'end');const _0x1adac8=_0x51abb8['rowInsertionIndexes']['includes'](_0x194649['row']),_0x58dd37=_0x51abb8['columnInsertionIndexes']['includes'](_0x194649['column']);_0x1adac8||_0x58dd37||(_0x5b4b89=_0x4022b5['fromRange'](_0x814875['createRangeIn'](_0x1a3957)));}else _0x53cd3f&&!_0x2f8f45&&(_0x3baafd=_0x814875['createRangeIn'](_0x1a3957));}else{const _0xaf4535=_0x814875['createElement']('tableCellSuggestion'),_0x5427ef=_0x814875['createElement']('tableCellSuggestion');_0x814875['wrap'](_0x814875['createRangeIn'](_0x1a3957),_0x5427ef),_0x814875['insert'](_0xaf4535,_0x1a3957,0x0);for(const _0x1f5143 of Array['from'](_0x3309ee['getChildren']()))_0x814875['insert'](_0x1f5143,_0xaf4535,'end');_0x5b4b89=_0x4022b5['fromRange'](_0x814875['createRangeOn'](_0xaf4535)),_0x3baafd=_0x4022b5['fromRange'](_0x814875['createRangeOn'](_0x5427ef));}const _0x1d88b1=Array['from'](_0x3309ee['getAttributes']())['filter'](([_0x2cf2b2])=>ge['includes'](_0x2cf2b2));_0x51abb8['cells']['push']({'element':_0x1a3957,'attributes':_0x1d88b1['length']?Object['fromEntries'](_0x1d88b1):null}),_0x5b4b89&&_0x51abb8['insertionRanges']['push'](_0x5b4b89),_0x3baafd&&_0x51abb8['deletionRanges']['push'](_0x3baafd);},{'priority':'high'}),_0x1a6499['on']('insertColumns',(_0x5a1fab,_0x103393)=>{const [_0xb22bbf,_0x1078b1={}]=_0x103393;if(!_0x51abb8)return;const _0x80127=_0x1078b1['at']||0x0,_0x23c167=_0x1078b1['columns']||0x1;_0x51abb8['columnInsertionIndexes']=new Array(_0x23c167)['fill'](_0x80127)['map']((_0x13cdb2,_0xd9bb3d)=>_0x13cdb2+_0xd9bb3d);for(const {cell:_0x5b17f0}of _0x1a6499['createTableWalker'](_0xb22bbf,{'startColumn':_0x80127,'endColumn':_0x80127+_0x23c167-0x1}))_0x51abb8['columnInsertionRanges']['push'](_0x2350d7['model']['createRangeOn'](_0x5b17f0));},{'priority':'low'}),_0x1a6499['on']('insertRows',(_0x79b85,_0x36fb9d)=>{const [_0x19e126,_0x38263c={}]=_0x36fb9d;if(!_0x51abb8)return;const _0x4c5f0b=_0x38263c['at']||0x0,_0x252f9f=_0x38263c['rows']||0x1;_0x51abb8['rowInsertionIndexes']=new Array(_0x252f9f)['fill'](_0x4c5f0b)['map']((_0x11828a,_0x27f360)=>_0x11828a+_0x27f360);for(const {cell:_0x1309ed}of _0x1a6499['createTableWalker'](_0x19e126,{'startRow':_0x4c5f0b,'endRow':_0x4c5f0b+_0x252f9f-0x1}))_0x51abb8['rowInsertionRanges']['push'](_0x2350d7['model']['createRangeOn'](_0x1309ed));},{'priority':'low'}),_0x5b036a['descriptionFactory']['registerDescriptionCallback'](_0x53e351=>{if(_0x53e351['subType']&&_0x53e351['subType']['startsWith']('tablePaste'))return _0x53e351['previous']?{}:{'type':'insertion','content':o(_0x2350d7['locale'],'*Replace\x20table\x20cells*')};});const _0x7968db=()=>!0x1;for(const _0x21bb93 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5b036a['_suggestionFactory']['registerCustomCallback']('insertion',_0x21bb93,'join',_0x7968db),_0x5b036a['_suggestionFactory']['registerCustomCallback']('deletion',_0x21bb93,'join',_0x7968db),_0x5b036a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21bb93,'join',_0x7968db);_0x5b036a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x7968db),_0x5b036a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xcc61ac,_0x355d34,_0x369ee0)=>{const _0x3bae2d=_0xcc61ac['map'](_0x41819a=>_0x41819a['getContainedElement']())['filter'](_0x53b122=>_0x53b122),_0x2d1cae=new Map(_0x3bae2d['map'](_0xacff72=>[_0xacff72,null]));if(_0x51abb8){for(const {element:_0x152625,attributes:_0x52b0f6}of _0x51abb8['cells'])_0x52b0f6&&_0x2d1cae['set'](_0x152625,_0x52b0f6);}else{if(_0x369ee0&&_0x369ee0['markerAttributes'])for(const [_0x3b22fe,_0x53ed70]of Object['entries'](_0x369ee0['markerAttributes'])){const _0x3d5f97=_0x2350d7['model']['markers']['get'](_0x3b22fe),_0x1cf63b=_0x3d5f97?_0x3d5f97['getRange']()['getContainedElement']():null;_0x1cf63b&&_0x2d1cae['set'](_0x1cf63b,_0x53ed70);}}_0x2350d7['model']['change'](_0x13b624=>{for(const [_0x2e194c,_0x56737e]of _0x2d1cae)_0x13b624['setAttributes']({...Ce,..._0x56737e},_0x2e194c);});});const _0x405f97=(_0x10e3bc,_0x22286d)=>{_0x5b036a['_suggestionFactory']['registerCustomCallback'](_0x10e3bc,'tablePaste',_0x22286d,(_0x23a880,_0x3f0d58,_0x2776e3)=>{_0x2350d7['model']['change'](_0x25e716=>{const _0xcedb28=[];for(const _0x4ae1f1 of _0x23a880){const _0x3c5d15=_0x4ae1f1['start']['nodeAfter'];_0x3c5d15['is']('element','tableCellSuggestion')&&_0xcedb28['push'](_0x3c5d15);}_0x5b036a['_suggestionFactory']['getSuggestionCallback'](_0x10e3bc,null,_0x22286d)(_0x23a880,_0x3f0d58,_0x2776e3);for(const _0x4b0efb of _0xcedb28)'$graveyard'!=_0x4b0efb['root']['rootName']&&_0x25e716['unwrap'](_0x4b0efb);});});};_0x405f97('insertion','accept'),_0x405f97('insertion','discard'),_0x405f97('deletion','accept'),_0x405f97('deletion','discard'),_0x5b036a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xf8c8d5=>{const _0xb8223e=_0xf8c8d5['map'](_0x590957=>_0x590957['getContainedElement']()),_0x47acaa=_0xb8223e[0x0]['findAncestor']('table'),{minRow:_0x1208ca,maxRow:_0x338a2f}=_0x5b78f2['_getCoordsForCells'](_0xb8223e);_0x1a6499['removeRows'](_0x47acaa,{'at':_0x1208ca,'rows':_0x338a2f-_0x1208ca+0x1});}),_0x5b036a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x408e8b=>{const _0x285c69=_0x408e8b['map'](_0x17c16b=>_0x17c16b['getContainedElement']()),_0xa7f53f=_0x285c69[0x0]['findAncestor']('table'),{minColumn:_0x4ce6c9,maxColumn:_0x48b46c}=_0x5b78f2['_getCoordsForCells'](_0x285c69);_0x1a6499['removeColumns'](_0xa7f53f,{'at':_0x4ce6c9,'columns':_0x48b46c-_0x4ce6c9+0x1});});const _0x54df32=(_0x117ab0,_0x2bb2ca)=>{if(!_0x2bb2ca['subType']||!_0x2bb2ca['subType']['startsWith']('tablePaste'))return;const _0x44d6eb=_0x2bb2ca['attributes']['tablePasteChainId'],_0x5296d7=_0x5b036a['getSuggestions']()['filter'](_0x10dd6c=>_0x10dd6c['isInContent']&&_0x10dd6c['attributes']&&_0x10dd6c['attributes']['tablePasteChainId']==_0x44d6eb);_0x5296d7['length']&&_0x2bb2ca['getAllAdjacentSuggestions']()['length']!=_0x5296d7['length']&&_0x5296d7['reduce']((_0x4258ef,_0x535640)=>(_0x4258ef['next']=_0x535640,_0x535640['previous']=_0x4258ef,_0x535640));};function _0x13cefd(_0x37c46d,_0x19639d=!0x0){const {id:_0x37e8d7}=_0x5b036a['_splitMarkerName'](_0x37c46d['markerName']),_0x256b52=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3f60d5=_0x5b036a['activeMarkers']['includes'](_0x37c46d['markerName']);return _0x3f60d5&&_0x256b52['push']('ck-suggestion-marker--active'),{'classes':_0x256b52,'attributes':{'data-suggestion':_0x37e8d7},'priority':_0x3f60d5&&_0x19639d?0xbc2:0xbb8};}_0x5b036a['on']('suggestionLoaded',_0x54df32,{'priority':'high'}),_0x5b036a['on']('suggestionUnloaded',_0x54df32,{'priority':'high'}),_0x2350d7['model']['document']['registerPostFixer'](()=>{let _0x4261f7=!0x1;const _0x17a053=Array['from'](_0x2350d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1794a2,data:_0x21678e}of _0x17a053){const {group:_0x338545,type:_0x50fad7,id:_0x963b1e}=_0x5b036a['_splitMarkerName'](_0x1794a2);if('suggestion'!=_0x338545||'deletion'!=_0x50fad7||_0x21678e['oldRange'])continue;if(!_0x5b036a['hasSuggestion'](_0x963b1e))continue;const _0x50cc7c=_0x5b036a['getSuggestion'](_0x963b1e)['getRanges'](),_0x26deb5=_0x2350d7['plugins']['get']('Users')['me'];for(const _0x27acdd of _0x5b036a['getSuggestions']()){if(!_0x27acdd['isInContent']||_0x27acdd['author']!=_0x26deb5)continue;if('formatBlock'!=_0x27acdd['type']||'tablePasteCell'!=_0x27acdd['subType'])continue;if(_0x27acdd['getRanges']()['every'](_0x4ef6c3=>_0x50cc7c['some'](_0x391ecd=>_0x391ecd['containsRange'](_0x4ef6c3,!0x0)))){for(const _0x44fdb9 of _0x27acdd['getAllAdjacentSuggestions']())_0x44fdb9['isInContent']&&(_0x44fdb9['discard'](),_0x4261f7=!0x0);}}}return _0x4261f7;}),_0x2350d7['model']['document']['registerPostFixer'](_0x2d34e8=>{const _0x54c3d1=_0x2350d7['commands']['get']('redo');if(!_0x54c3d1||!_0x54c3d1['_createdBatches']['has'](_0x2d34e8['batch']))return!0x1;let _0x2d465a=!0x1;const _0x4ce000=_0x2350d7['plugins']['get']('Users')['me'],_0x562d4a=_0x2350d7['model']['document']['differ']['getChanges'](),_0xc921aa=Array['from'](_0x2350d7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x489351,data:_0x135797})=>{const {group:_0x4177da,subType:_0x2ba078,authorId:_0x23d22e}=_0x5b036a['_splitMarkerName'](_0x489351);return'suggestion'==_0x4177da&&'tablePaste'==_0x2ba078&&_0x23d22e==_0x4ce000['id']&&!_0x135797['oldRange'];});for(const _0x339029 of _0x562d4a){if('insert'!=_0x339029['type']||'tableCellSuggestion'!=_0x339029['name']||0x1!=_0x339029['length'])continue;const _0x41cc64=_0x2d34e8['createRange'](_0x339029['position'],_0x339029['position']['getShiftedBy'](0x1));if(!_0xc921aa['find'](({data:_0x46b56c})=>_0x46b56c['newRange']['isEqual'](_0x41cc64))){for(const {name:_0x5176e0,data:_0x5f0ec7}of _0xc921aa)if(_0x41cc64['containsRange'](_0x5f0ec7['newRange'])){_0x2d34e8['updateMarker'](_0x5176e0,{'range':_0x41cc64}),_0x2d465a=!0x0;break;}}}return _0x2d465a;}),_0x2350d7['model']['document']['registerPostFixer'](_0x444890=>{let _0x26a65f=!0x1;const _0xec26=_0x2350d7['plugins']['get']('Users')['me'],_0x468a80=_0x5b036a['getSuggestions']()['filter'](_0x53abdf=>_0x53abdf['isInContent']&&_0x53abdf['author']==_0xec26),_0x38f51b=new Set(),_0x354698=new Set();for(const _0x16d5f6 of _0x468a80)if('tablePaste'==_0x16d5f6['subType'])for(const _0x2005a5 of _0x16d5f6['getMarkers']()){const _0x302372=_0x2005a5['getRange']()['getContainedElement']();if(_0x302372){if(_0x302372['is']('element','tableCellSuggestion')&&Pe(_0x302372)){_0x16d5f6['removeMarker'](_0x2005a5['name']),_0x38f51b['add'](_0x302372),_0x26a65f=!0x0;const _0x149a9f=_0x302372['nextSibling'],_0x48d67f=_0x302372['previousSibling'],_0x34ddef=_0x149a9f&&_0x149a9f['is']('element','tableCellSuggestion'),_0x23b341=_0x48d67f&&_0x48d67f['is']('element','tableCellSuggestion');_0x34ddef&&!_0x38f51b['has'](_0x149a9f)&&_0x354698['add'](_0x149a9f),_0x23b341&&!_0x38f51b['has'](_0x48d67f)&&_0x354698['add'](_0x48d67f);}else _0x302372['is']('element','paragraph')&&_0x302372['isEmpty']&&(_0x16d5f6['removeMarker'](_0x2005a5['name']),_0x26a65f=!0x0);}}else{if('tablePasteCell'==_0x16d5f6['subType']){if(!_0x16d5f6['attributes']||!_0x16d5f6['attributes']['tablePasteChainId'])continue;const _0x14049e=_0x16d5f6['attributes']['markerAttributes'];if(_0x14049e&&Object['keys'](_0x14049e)['length'])continue;const _0x34e829=_0x16d5f6['attributes']['tablePasteChainId'];let _0x1ea259=!0x0,_0x20b6bc=!0x0;for(const _0x347142 of _0x468a80)if(_0x347142['subType']&&_0x347142['subType']['startsWith']('tablePaste')){if(!_0x347142['attributes']['tablePasteChainId']){_0x20b6bc=!0x1;break;}if(_0x347142['id']!=_0x16d5f6['id']&&_0x347142['attributes']['tablePasteChainId']==_0x34e829){_0x1ea259=!0x1;break;}}_0x20b6bc&&_0x1ea259&&(_0x16d5f6['removeMarkers'](),_0x26a65f=!0x0);}}for(const _0x32355d of _0x38f51b)_0x444890['remove'](_0x32355d);for(const _0x3d1123 of _0x354698)_0x444890['unwrap'](_0x3d1123);return _0x26a65f;}),_0x2350d7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x10ec3,_0x5afd16)=>_0x13cefd(_0x10ec3),'converterPriority':'high'}),_0x2350d7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x56681e,_0x13d4bf)=>_0x13d4bf['options']['showSuggestionHighlights']?_0x13cefd(_0x56681e,!0x1):null,'converterPriority':'high'});const _0x548bd8=_0x2350d7['editing']['view'];this['listenTo'](_0x548bd8['document'],'clipboardOutput',(_0x129a51,_0x146882)=>{const _0x2eee79=[];for(const _0x24e3c0 of _0x548bd8['createRangeIn'](_0x146882['content'])['getItems']())_0x24e3c0['is']('element','suggestion-td')&&_0x2eee79['push'](_0x24e3c0);_0x548bd8['change'](_0x252a6d=>{for(const _0x46936f of _0x2eee79)_0x252a6d['move'](_0x252a6d['createRangeIn'](_0x46936f),_0x252a6d['createPositionBefore'](_0x46936f)),_0x252a6d['remove'](_0x46936f);});});}}function Pe(_0x373a55){if(_0x373a55['isEmpty'])return!0x0;const _0x397364=_0x373a55['getChild'](0x0);return _0x397364['is']('element','paragraph')&&_0x397364['isEmpty'];}function he(_0x290b69,_0x112898={},_0x1614a4){for(const {isAnchor:_0x160594,cellHeight:_0x237b0c,cellWidth:_0xeaf8fd}of _0x1614a4['createTableWalker'](_0x290b69,{'includeAllSlots':!0x0,..._0x112898}))if(!_0x160594||0x1!=_0x237b0c||0x1!=_0xeaf8fd)return!0x1;return!0x0;}class vt extends _0x5ed9bd{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4a28d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a28d7['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4a28d7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4a28d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a28d7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4a28d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4a28d7['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x500755,_0xd6dbec){const _0xf17ddb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xaabcdf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3357bb=_0xd6dbec['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5561ba=_0xaabcdf['getColumnGroupElement'](_0x3357bb);let _0x536bfb=_0x5561ba?_0xaabcdf['getTableColumnsWidths'](_0x5561ba):null,_0x242548=_0x3357bb['getAttribute']('tableWidth')||null;const _0x56411b=_0xd6dbec['tableWidth']||_0x242548,_0xe3f4fc=_0xd6dbec['columnWidths']||_0x536bfb,_0x18c883=this['editor']['plugins']['get']('Users')['me'];for(const _0x512dea of _0xf17ddb['getSuggestions']()){const _0x136f60=_0x512dea['getContainedElement']();if('resizeTable'===_0x512dea['subType']&&_0x136f60===_0x3357bb){_0x512dea['author']!==_0x18c883&&_0x512dea['discard']();const _0x3966c4=_0x512dea['data']['commandParams'];_0x242548=_0x3966c4[0x0]['tableWidth'],_0x536bfb=_0x3966c4[0x0]['columnWidths'];break;}}_0x500755({'table':_0x3357bb,'tableWidth':_0x56411b,'columnWidths':_0xe3f4fc}),_0xf17ddb['markBlockFormat'](_0x3357bb,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x242548,'columnWidths':_0x536bfb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2f05f2){if('formatBlock'!=_0x2f05f2['type']&&'formatInline'!=_0x2f05f2['type'])return;const {data:_0x578fca}=_0x2f05f2;if(_0x578fca&&'resizeTable'===_0x578fca['formatGroupId']){const _0x51d3c8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x51d3c8)};}}}class Ct extends _0x5ed9bd{['afterInit'](){const _0x203aac=this['editor'];_0x203aac['plugins']['has']('Template')&&_0x203aac['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x5ed9bd{['afterInit'](){const _0x3a52fe=this['editor'];if(!_0x3a52fe['commands']['get']('insertTableOfContents'))return;_0x3a52fe['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x21b98b=_0x3a52fe['plugins']['get']('TrackChangesEditing'),_0x4b8858=_0x3a52fe['locale'];_0x21b98b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x18326e=>o(_0x4b8858,'ELEMENT_TABLE_OF_CONTENTS',_0x18326e));}}class Dt extends _0x5ed9bd{['afterInit'](){const _0x4a9a82=this['editor'];if(!_0x4a9a82['plugins']['has']('Title'))return;const _0x36628b=_0x4a9a82['plugins']['get']('TrackChangesEditing');_0x36628b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4a9a82['locale'],'ELEMENT_TITLE')),_0x4a9a82['model']['document']['registerPostFixer'](_0x22375f=>{let _0xaa25c=!0x1;const _0xadcd14=Array['from'](_0x4a9a82['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2da6c3,data:_0x3202a0}of _0xadcd14){const {group:_0x2d50d0}=_0x36628b['_splitMarkerName'](_0x2da6c3);if('suggestion'!==_0x2d50d0||!_0x3202a0['newRange'])continue;const _0x84961f=_0x3202a0['newRange'],_0x430e1c=_0x84961f['end']['nodeBefore'];if(!_0x430e1c||!_0x430e1c['is']('element','title-content'))continue;if(!_0x84961f['start']['isTouching'](_0x84961f['end']))continue;const _0x1a3293=_0x4a9a82['model']['schema']['getNearestSelectionRange'](_0x84961f['end'],'forward');if(_0x1a3293&&_0x1a3293['isCollapsed']){const _0x13d451=_0x22375f['createRange'](_0x84961f['start'],_0x1a3293['start']);_0x13d451['isEqual'](_0x84961f)||(_0x22375f['updateMarker'](_0x2da6c3,{'range':_0x13d451}),_0xaa25c=!0x0);}_0xaa25c||(_0x22375f['removeMarker'](_0x2da6c3),_0xaa25c=!0x0);}return _0xaa25c;});}}class Nt extends _0x5ed9bd{['afterInit'](){const _0x45ccb2=this['editor'],_0x3c354a=_0x45ccb2['plugins']['get']('TrackChangesEditing');_0x45ccb2['plugins']['has']('UndoEditing')&&(_0x3c354a['enableCommand']('undo'),_0x3c354a['enableCommand']('redo'));}}class Mt extends _0x5ed9bd{static get['requires'](){return[jt];}['afterInit'](){const _0x4bbb4b=this['editor'];if(!_0x4bbb4b['plugins']['has']('TableCaptionEditing'))return;_0x4bbb4b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5ed9bd{['tableProperties'];['tableCellProperties'];constructor(_0x577e63){super(_0x577e63),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';}['afterInit'](){const _0x479e0c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x9c0ebd of this['tableProperties'])_0x479e0c['enableCommand'](_0x9c0ebd,(_0x4aff9e,_0xf75af5)=>{const _0x18ede5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x9c0ebd,[_0x18ede5],this['tableProperties'],'tableProperties',_0x4aff9e,_0xf75af5);});_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x479e0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x90f57a,_0x19472d)=>this['handleDiscardAction'](this['tableProperties'],_0x90f57a,_0x19472d)),_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x153788 of this['tableCellProperties'])_0x479e0c['enableCommand'](_0x153788,(_0x24499b,_0x1d0875)=>{const _0x4452ad=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x153788,_0x4452ad,this['tableCellProperties'],'tableCellProperties',_0x24499b,_0x1d0875);});_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x479e0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x220a81,_0x554a74)=>this['handleDiscardAction'](this['tableCellProperties'],_0x220a81,_0x554a74)),_0x479e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x479e0c['descriptionFactory']['registerDescriptionCallback'](_0x10cb8b=>this['handleSuggestionDescription'](_0x10cb8b));}['_handlePropertyChange'](_0x31074c,_0x47450d,_0x4df482,_0x355ea0,_0x4a756d,_0x898aa7){const _0x3997be=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x898aa7['batch'],()=>{for(const _0x1cd996 of _0x47450d){if(this['_getSuggestion'](_0x1cd996,_0x355ea0))_0x4a756d(_0x898aa7);else{const _0x162a5e={};for(const _0x2b919c of _0x4df482){const _0x469936=_0x1cd996['getAttribute'](_0x2b919c);void 0x0!==_0x469936&&(_0x162a5e[_0x2b919c]=_0x469936);}_0x4a756d(_0x898aa7),_0x3997be['markBlockFormat'](_0x1cd996,{'commandParams':[_0x162a5e]},[],_0x355ea0);}}});}['handleDiscardAction'](_0x53fc59,_0x4230a5,_0x1bcd97){const _0x476213=_0x4230a5[0x0]['start']['nodeAfter'],_0x13c78b=_0x1bcd97['commandParams'][0x0];this['editor']['model']['change'](_0x445dcd=>{for(const _0x3bd81d of _0x53fc59)void 0x0!==_0x13c78b[_0x3bd81d]?_0x445dcd['setAttribute'](_0x3bd81d,_0x13c78b[_0x3bd81d],_0x476213):_0x445dcd['removeAttribute'](_0x3bd81d,_0x476213);});}['handleSuggestionDescription'](_0x236c76){if(_0x236c76['data'])switch(_0x236c76['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'](_0x145be7,_0xb3f9fb){const _0x55d38c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3caee of _0x55d38c['getSuggestions']({'skipNotAttached':!0x0})){const _0x11bb85=_0x3caee['getContainedElement']();if(_0x3caee['subType']===_0xb3f9fb&&_0x11bb85===_0x145be7)return _0x3caee;}return null;}}const m='$elementName';class p extends _0x5ed9bd{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5144de,_0x8f02a5,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x593bb7){function _0x28ffbe(_0x411d9a){return _0x411d9a['map'](_0x1003d3=>String['fromCharCode'](_0x1003d3))['join']('');}super(_0x593bb7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5be6e4,_0x590b30,_0x354f77,_0x20a41f)=>{this['_model']['change'](()=>{for(const _0x306660 of[..._0x20a41f,..._0x354f77])this['_model']['markers']['has'](_0x306660)&&_0x593bb7['editing']['reconvertMarker'](_0x306660);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x593bb7['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(),_0x593bb7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x593bb7['config']['get']('trackChanges.trackFormatChanges'),_0x593bb7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x593bb7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x593bb7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x28ffbe([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x28ffbe([0x34,0x30,0x34,0x38,0x31,0x34,0x32,0x30]);}['init'](){const _0x18c9e9=this['editor'],_0x2387e8=(_0x413c4a,_0x7b5aeb)=>{if('attribute'!=_0x413c4a)return'ck-suggestion-marker-'+_0x413c4a;const _0x5447fc=_0x7b5aeb['split']('|')[0x0];return this['_isBlockAttribute'](_0x5447fc)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x18c9e9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2e234a=>{const {id:_0xdef87a,type:_0x5d8a4e,subType:_0xaadafc}=this['_splitMarkerName'](_0x2e234a['markerName']),_0x5005dd=['ck-suggestion-marker',_0x2387e8(_0x5d8a4e,_0xaadafc)];let _0x5c4481=0xbb8;return this['activeMarkers']['includes'](_0x2e234a['markerName'])&&(_0x5005dd['push']('ck-suggestion-marker--active'),_0x5c4481=0xbc2),'deletion'==_0x5d8a4e&&(_0x5c4481+=0x5),{'classes':_0x5005dd,'attributes':{'data-suggestion':_0xdef87a},'priority':_0x5c4481};}}),_0x18c9e9['conversion']['for']('dataDowncast')['add'](_0x44a58d=>{_0x44a58d['on']('addMarker:suggestion',(_0x3a1f40,_0x5bb15d,_0x10b110)=>{if(!_0x10b110['options']['showSuggestionHighlights'])return;const _0x3f9adf=_0x5bb15d['item'];if(!_0x3f9adf)return;const _0x3eabb8=_0x10b110['mapper']['toViewElement'](_0x3f9adf);_0x18c9e9['model']['schema']['isObject'](_0x3f9adf)&&_0x3eabb8&&!_0x3eabb8['getCustomProperty']('widget')&&_0x3eabb8['is']('containerElement')&&_0x3ff097(_0x3eabb8,_0x10b110['writer']);},{'priority':'high'});}),_0x18c9e9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xe3286,_0x34140f)=>{if(!_0x34140f['options']['showSuggestionHighlights'])return null;const {type:_0x378163,subType:_0xe5f283}=this['_splitMarkerName'](_0xe3286['markerName']);return{'classes':['ck-suggestion-marker',_0x2387e8(_0x378163,_0xe5f283)],'priority':0xbb8};}});const _0x510a88=({showActiveMarkers:_0x43a1ed=!0x0,isAttributeSuggestion:_0x319f4a=!0x1}={})=>(_0x13b6a2,_0x2e98c4,_0x9ca957)=>{if(!_0x2e98c4['item'])return;const {id:_0x17a5e0}=this['_splitMarkerName'](_0x2e98c4['markerName']);if(_0x319f4a){const _0x21b004=this['_suggestions']['get'](_0x17a5e0),_0x36e354=this['_getAttributeKey'](_0x21b004);if(!this['_isBlockAttribute'](_0x36e354))return;}if(_0x2e98c4['item']['is']('selection'))return void _0x9ca957['consumable']['consume'](_0x2e98c4['item'],_0x13b6a2['name']);const _0x1a797a=_0x9ca957['mapper']['toViewElement'](_0x2e98c4['item']);if(_0x2e98c4['item']['is']('element')&&_0x18c9e9['model']['schema']['isBlock'](_0x2e98c4['item'])&&!_0x1a797a['getCustomProperty']('addHighlight')){_0x9ca957['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1a797a),_0x9ca957['writer']['setAttribute']('data-suggestion',_0x17a5e0,_0x1a797a),_0x9ca957['mapper']['bindElementToMarker'](_0x1a797a,_0x2e98c4['markerName']),_0x43a1ed&&(this['activeMarkers']['includes'](_0x2e98c4['markerName'])?_0x9ca957['writer']['addClass']('ck-suggestion-marker--active',_0x1a797a):_0x9ca957['writer']['removeClass']('ck-suggestion-marker--active',_0x1a797a));for(const _0x3a8821 of _0x18c9e9['model']['createRangeIn'](_0x2e98c4['item'])['getItems']())_0x9ca957['consumable']['consume'](_0x3a8821,_0x13b6a2['name']);_0x9ca957['consumable']['consume'](_0x2e98c4['item'],_0x13b6a2['name']);}};_0x18c9e9['conversion']['for']('dataDowncast')['add'](_0x363232=>{_0x363232['on']('addMarker:suggestion:formatBlock',(_0x8951f7,_0x5535c8,_0x5b5c73)=>{_0x5b5c73['options']['showSuggestionHighlights']&&_0x510a88({'showActiveMarkers':!0x1})(_0x8951f7,_0x5535c8,_0x5b5c73);},{'priority':'highest'});}),_0x18c9e9['conversion']['for']('dataDowncast')['add'](_0x1349e8=>{_0x1349e8['on']('addMarker:suggestion:attribute',(_0x56932f,_0x5b57ff,_0x55f79c)=>{_0x55f79c['options']['showSuggestionHighlights']&&_0x510a88({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x56932f,_0x5b57ff,_0x55f79c);},{'priority':'highest'});}),_0x18c9e9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5cc973,_0x1b2a46)=>_0x1b2a46['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5cc973['substr'](0xb)}}),_0x18c9e9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2772fc,{writer:_0x50b177})=>{let _0x3a436d='suggestion:'+_0x2772fc['getAttribute']('suggestion-type')+':'+_0x2772fc['getAttribute']('id');return _0x2772fc['getAttribute']('marker-count')&&(_0x3a436d+=':'+_0x2772fc['getAttribute']('marker-count')),_0x50b177['createElement']('$marker',{'data-name':_0x3a436d});}}),_0x18c9e9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x18c9e9['conversion']['for']('editingDowncast')['add'](_0x3c8da9=>{_0x3c8da9['on']('addMarker:suggestion:formatBlock',_0x510a88(),{'priority':'high'});}),_0x18c9e9['conversion']['for']('editingDowncast')['add'](_0x1f889f=>{_0x1f889f['on']('addMarker:suggestion:attribute',_0x510a88({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x18c9e9['conversion']['for']('editingDowncast')['add'](_0x2feece=>{_0x2feece['on']('removeMarker:suggestion:formatBlock',(_0x518a82,_0x3c308a,_0x2f65d2)=>{const _0x1008cb=_0x2f65d2['mapper']['markerNameToElements'](_0x3c308a['markerName']);if(_0x1008cb){for(const _0x1737ce of _0x1008cb)_0x1737ce['getCustomProperty']('addHighlight')||(_0x2f65d2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1737ce),_0x2f65d2['writer']['removeAttribute']('data-suggestion',_0x1737ce),_0x2f65d2['mapper']['unbindElementFromMarkerName'](_0x1737ce,_0x3c308a['markerName']));}},{'priority':'high'});}),_0x18c9e9['conversion']['for']('editingDowncast')['add'](_0x211ba0=>{_0x211ba0['on']('removeMarker:suggestion:attribute',(_0x1f7a8d,_0x45be53,_0x485672)=>{const _0x4975c3=_0x485672['mapper']['markerNameToElements'](_0x45be53['markerName']);if(!_0x4975c3)return;const {id:_0x14f0b9}=this['_splitMarkerName'](_0x45be53['markerName']),_0x2b8911=this['_suggestions']['get'](_0x14f0b9),_0x59d80e=this['_getAttributeKey'](_0x2b8911);if(this['_isBlockAttribute'](_0x59d80e)){for(const _0x3065b1 of _0x4975c3)_0x3065b1['getCustomProperty']('addHighlight')||(_0x485672['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3065b1),_0x485672['writer']['removeAttribute']('data-suggestion',_0x3065b1),_0x485672['mapper']['unbindElementFromMarkerName'](_0x3065b1,_0x45be53['markerName']));}},{'priority':'high'});}),_0x18c9e9['model']['document']['registerPostFixer'](_0x3556ff=>{let _0x1be67b=!0x1;const _0x1a9e22=Array['from'](_0x18c9e9['model']['document']['differ']['getChangedMarkers']()),_0x683531=new Set();for(const {name:_0x557a12,data:_0xd3f286}of _0x1a9e22){const {group:_0x41ef8a,type:_0x17b2b3,subType:_0x136076,id:_0xf90775}=this['_splitMarkerName'](_0x557a12);if('suggestion'!==_0x41ef8a)continue;const _0x2e5810=this['_suggestions']['get'](_0xf90775);if(null!=_0xd3f286['newRange']){'formatInline'==_0x17b2b3&&(_0x1be67b=_0x1be67b||Et(_0xd3f286['newRange'],_0x557a12,_0x3556ff,_0x18c9e9['model']['schema']));const _0x21bbe9='attribute'==_0x17b2b3&&this['_isBlockAttribute'](_0x136076['split']('|')[0x0]);if(_0xd3f286['newRange']['isCollapsed']||'$graveyard'==_0xd3f286['newRange']['root']['rootName']||'formatBlock'==_0x17b2b3&&!Ut(_0xd3f286['newRange'])||_0x21bbe9&&!Ut(_0xd3f286['newRange'])||'deletion'==_0x17b2b3&&!(!Tt(_0x3e2ab6=_0xd3f286['newRange'])&&!function(_0x1ce7ad){return _0x1ce7ad['start']['parent']==_0x1ce7ad['end']['nodeBefore']&&_0x1ce7ad['start']['isAtEnd'];}(_0x3e2ab6)))_0x3556ff['removeMarker'](_0x557a12),_0x1be67b=!0x0;else{if(!_0x2e5810||!_0x2e5810['isInContent'])continue;_0x683531['add'](_0x2e5810);}}}var _0x3e2ab6;return _0x683531['size']>0x0&&(_0x1be67b=!!this['_joinWithAdjacentSuggestions'](_0x683531)||_0x1be67b),_0x1be67b;}),_0x18c9e9['model']['document']['registerPostFixer'](_0x1f09ac=>{let _0x3858be=!0x1;for(const _0x88605a of _0x18c9e9['model']['document']['differ']['getChanges']())if('insert'==_0x88605a['type'])for(const _0x4a7349 of this['_suggestions']['values']()){if(_0x4a7349['isMultiRange']||!_0x4a7349['isInContent'])continue;const _0x2dbd87='formatBlock'==_0x4a7349['type'],_0x5280a7=this['_getAttributeKey'](_0x4a7349),_0x2e467c=_0x5280a7&&this['_isBlockAttribute'](_0x5280a7);if(!_0x2dbd87&&!_0x2e467c)continue;const _0x1764f1=_0x4a7349['getFirstRange']();if(_0x1764f1['start']['parent']!=_0x1764f1['end']['parent']&&!_0x1764f1['end']['isAtEnd']){const _0x1fbe1d=_0x18c9e9['model']['createPositionAt'](_0x1764f1['start']['nodeAfter'],'end'),_0x12d120=_0x18c9e9['model']['createRange'](_0x1764f1['start'],_0x1fbe1d);_0x1f09ac['updateMarker'](_0x4a7349['getFirstMarker'](),{'range':_0x12d120}),_0x3858be=!0x0;}}return _0x3858be;}),_0x18c9e9['model']['document']['registerPostFixer'](_0x107ed8=>this['_processAttributeChanges'](_0x107ed8)),_0x18c9e9['model']['document']['registerPostFixer'](_0x2d6afa=>!_0x2d6afa['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2d6afa)),_0x18c9e9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x18c9e9['model']['document']['on']('change:data',(_0x3411e9,_0xfe8541)=>{if(!_0xfe8541['isLocal']||_0xfe8541['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x37eb08=_0x18c9e9['model']['document']['differ']['getChanges']();if(0x0==_0x37eb08['length'])return;const _0x1d1da1=[],_0x50b6c1=_0x37eb08['filter'](_0x4292fa=>'attribute'==_0x4292fa['type']),_0x5df941=_0x37eb08['filter'](_0x14a795=>'insert'==_0x14a795['type']&&'$text'!=_0x14a795['name']);for(const _0x109c06 of _0x50b6c1)this['_isRegisteredAttribute'](_0x109c06['attributeKey'])&&_0x1d1da1['push']({'key':_0x109c06['attributeKey'],'newValue':_0x109c06['attributeNewValue'],'oldValue':_0x109c06['attributeOldValue'],'range':Ot(_0x109c06['range'],_0x18c9e9['model'])});for(const _0x4a6fb6 of _0x5df941){if('rename'!=_0x4a6fb6['action']&&'refresh'!=_0x4a6fb6['action'])continue;const _0xac835a=Gt(_0x4a6fb6['position']['nodeAfter'],_0x18c9e9['model']),_0x115db8=_0x4a6fb6['before'];'rename'==_0x4a6fb6['action']&&_0x1d1da1['push']({'key':m,'newValue':_0x4a6fb6['name'],'oldValue':_0x115db8['name'],'range':_0xac835a});for(const [_0x2450af,_0x2465d4]of _0x115db8['attributes']){if(!this['_isRegisteredAttribute'](_0x2450af))continue;const _0xfad643=_0x4a6fb6['attributes']['get'](_0x2450af);_0x2465d4!==_0xfad643&&_0x1d1da1['push']({'key':_0x2450af,'newValue':_0xfad643,'oldValue':_0x2465d4,'range':_0xac835a});}for(const [_0x3cc91f,_0x4001a7]of _0x4a6fb6['attributes'])this['_isRegisteredAttribute'](_0x3cc91f)&&(_0x115db8['attributes']['has'](_0x3cc91f)||_0x1d1da1['push']({'key':_0x3cc91f,'newValue':_0x4001a7,'oldValue':null,'range':_0xac835a}));}0x0!=_0x1d1da1['length']&&_0x18c9e9['model']['enqueueChange'](_0xfe8541,_0x1c4974=>{const _0x2cc5da=_0x51081b();for(const {range:_0x31e8a7,key:_0x4a3284,oldValue:_0x53e0bc,newValue:_0x305f00}of _0x1d1da1)this['markAttributeChange'](_0x31e8a7,_0x4a3284,_0x53e0bc,_0x305f00,{'groupId':_0x2cc5da});this['_reduceExistingSuggestions'](_0x1c4974,_0x1d1da1);});},{'priority':'lowest'}),_0x18c9e9['model']['markers']['on']('update:suggestion',(_0x449da3,_0xa7603e,_0x4a38a9)=>{if(null==_0x4a38a9){const {id:_0x40cd8e}=this['_splitMarkerName'](_0xa7603e['name']),_0x447184=this['_suggestions']['get'](_0x40cd8e);_0x447184&&_0x447184['addMarkerName'](_0xa7603e['name']);}}),_0x18c9e9['model']['document']['on']('change:data',()=>{const _0x2a2063=Array['from'](_0x18c9e9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x7e58dd=>'suggestion'===this['_splitMarkerName'](_0x7e58dd['name'])['group']);if(0x0===_0x2a2063['length'])return;_0x2a2063['sort']((_0x403900,_0x48711c)=>{const _0x3773ff=_0x403900['data']['oldRange'],_0x5905da=_0x48711c['data']['oldRange'];return null===_0x3773ff&&null===_0x5905da?0x0:null===_0x3773ff&&null!==_0x5905da?-0x1:null!==_0x3773ff&&null===_0x5905da?0x1:_0x3773ff['start']['isBefore'](_0x5905da['start'])?-0x1:0x1;});const _0x2ea57b=new Set(),_0xa1ca93=new Set();for(const {name:_0x5a48f8,data:_0x2dc8f1}of _0x2a2063){const {id:_0x24bd74}=this['_splitMarkerName'](_0x5a48f8);if(null===_0x2dc8f1['oldRange']){const _0xe2c3ce=this['_handleNewSuggestionMarker'](_0x5a48f8);_0xa1ca93['add'](_0xe2c3ce);}else{const _0x51d69f=this['_suggestions']['get'](_0x24bd74);null!==_0x2dc8f1['newRange']||_0x51d69f['isInContent']?(_0x2ea57b['add'](_0x51d69f['head']),_0xa1ca93['add'](_0x51d69f)):this['_removeSuggestion'](_0x51d69f);}}_0xa1ca93['size']>0x0&&this['_refreshSuggestionsChain'](_0xa1ca93);for(const _0x5f5b69 of _0x2ea57b)this['fire']('suggestionChanged',_0x5f5b69);}),_0x18c9e9['model']['on']('applyOperation',(_0x40cbe9,_0xfd9b51)=>{const _0x213a1e=_0xfd9b51[0x0];if(!this['_suggestions']['size'])return;if(!_0x213a1e['isDocumentOperation'])return;if(_0x213a1e['batch']['isUndo']||!_0x213a1e['batch']['isLocal'])return;let _0x4531ec,_0x4911c6;switch(_0x213a1e['type']){case'insert':_0x4531ec=_0x18c9e9['model']['createPositionAt'](_0x213a1e['position']),_0x4911c6=_0x4531ec['getShiftedBy'](_0x213a1e['howMany']);break;case'split':_0x4531ec=_0x18c9e9['model']['createPositionAt'](_0x213a1e['splitPosition']),_0x4911c6=_0x18c9e9['model']['createPositionAt'](_0x213a1e['moveTargetPosition']);break;case'move':_0x4531ec=_0x18c9e9['model']['createPositionAt'](_0x213a1e['targetPosition']),_0x4911c6=_0x4531ec['getShiftedBy'](_0x213a1e['howMany']);break;default:return;}const _0x472cb9=_0x18c9e9['model']['createRange'](_0x4531ec,_0x4911c6);_0x18c9e9['model']['change'](()=>{for(const {suggestion:_0x3f3545,meta:_0x3a4609}of this['_findSuggestions'](_0x472cb9)){if(_0x3f3545['isMultiRange'])continue;if('formatInline'==_0x3f3545['type'])continue;const _0x390b3b=this['_getAttributeKey'](_0x3f3545);if(_0x390b3b&&this['_isBlockAttribute'](_0x390b3b)&&'split'!=_0x213a1e['type'])continue;const _0x4d51f1=_0x3f3545['data']&&_0x3f3545['data']['multipleBlocks'];('formatBlock'!=_0x3f3545['type']||'split'==_0x213a1e['type']&&!_0x4d51f1)&&(_0x3a4609['containsRangeInObject']||'insertion'==_0x3f3545['type']&&_0x3a4609['isOwn']||_0x3f3545['getFirstRange']()['containsRange'](_0x472cb9)&&this['_breakSuggestionMarker'](_0x3f3545,_0x4531ec,_0x4911c6));}});},{'priority':'lowest'}),_0x18c9e9['model']['on']('deleteContent',(_0x243d38,_0x7f9f26)=>{const _0x15f7a9=_0x7f9f26[0x0],_0xc98348=_0x7f9f26[0x1];if(_0xc98348&&_0xc98348['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x15f7a9['isCollapsed'])return;const _0x516ca3=_0x18c9e9['model']['schema'],{start:_0x69d3ae,end:_0x1e04dd}=_0x15f7a9['getFirstRange'](),_0x1b090a=_0x69d3ae['nodeAfter']&&_0x516ca3['isLimit'](_0x69d3ae['nodeAfter'])?null:_0x516ca3['getNearestSelectionRange'](_0x69d3ae,'forward'),_0x30fc02=_0x1e04dd['nodeBefore']&&_0x516ca3['isLimit'](_0x1e04dd['nodeBefore'])?null:_0x516ca3['getNearestSelectionRange'](_0x1e04dd,'backward'),_0x593628=_0x18c9e9['model']['createRange'](_0x1b090a?_0x1b090a['start']:_0x69d3ae,_0x30fc02?_0x30fc02['end']:_0x1e04dd);_0x18c9e9['model']['change'](_0x2dbe1f=>{this['markDeletion'](_0x593628);const _0x5ccff8=_0x18c9e9['model']['schema']['getNearestSelectionRange'](_0x593628['start']);_0x15f7a9['is']('documentSelection')?_0x2dbe1f['setSelection'](_0x5ccff8):_0x15f7a9['setTo'](_0x5ccff8);}),_0x243d38['stop']();},{'priority':_0x278b8c['normal']+0xa}),_0x18c9e9['model']['on']('insertContent',(_0x5e02fb,_0x4c9d58)=>{const _0x1e8ef0=_0x4c9d58[_0x4c9d58['length']-0x1];_0x1e8ef0&&_0x1e8ef0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x18c9e9['model']['change'](()=>{let _0x2f59ea=_0x18c9e9['model']['insertContent'](_0x4c9d58[0x0],_0x4c9d58[0x1],_0x4c9d58[0x2],{'forceDefaultExecution':!0x0});if(!_0x2f59ea)return;_0x5e02fb['return']=_0x2f59ea['clone']();const _0x5fa56e=_0x2f59ea['end']['nodeBefore'],_0x5c2cea=_0x18c9e9['model']['schema'];_0x5fa56e&&_0x5c2cea['isBlock'](_0x5fa56e)&&!_0x5c2cea['isObject'](_0x5fa56e)&&(_0x2f59ea=_0x18c9e9['model']['createRange'](_0x2f59ea['start'],_0x18c9e9['model']['createPositionAt'](_0x5fa56e,'end'))),this['markInsertion'](_0x2f59ea);}),_0x5e02fb['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x22b4f0=new $(_0x18c9e9,this['_suggestions']);_0x18c9e9['commands']['add']('acceptSuggestion',_0x22b4f0),this['enableCommand']('acceptSuggestion');const _0x239744=new B(_0x18c9e9,this['_suggestions']);_0x18c9e9['commands']['add']('discardSuggestion',_0x239744),this['enableCommand']('discardSuggestion'),_0x18c9e9['commands']['add']('acceptAllSuggestions',new x(_0x18c9e9,_0x22b4f0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x18c9e9['commands']['add']('discardAllSuggestions',new x(_0x18c9e9,_0x239744,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x18c9e9['commands']['add']('acceptSelectedSuggestions',new R(_0x18c9e9,_0x22b4f0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x18c9e9['commands']['add']('discardSelectedSuggestions',new R(_0x18c9e9,_0x239744,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x22d237=_0x18c9e9['plugins']['get']('CommentsRepository');this['listenTo'](_0x22d237,'addComment',(_0x198f73,{threadId:_0x107993})=>{const _0x27c002=this['_suggestions']['get'](_0x107993);_0x27c002&&_0x27c002['commentThread']&&0x1===_0x27c002['commentThread']['length']&&this['_updateSuggestionData'](_0x107993,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x22d237,'removeComment',(_0x10127c,{threadId:_0x96d59d})=>{const _0x302534=this['_suggestions']['get'](_0x96d59d);_0x302534&&_0x302534['commentThread']&&!_0x302534['commentThread']['length']&&this['_updateSuggestionData'](_0x96d59d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x22f7af){if(this['_adapter'])throw new _0x39a7b6('track-changes-adapter-already-set',this);this['_adapter']=_0x22f7af;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x336836=!0x1,toJSON:_0x1871a4=!0x1}={}){const _0xfe2444=[];for(const _0x3c9a7f of this['_suggestions']['values']())_0x336836&&!_0x3c9a7f['isInContent']||_0xfe2444['push'](_0x3c9a7f);return _0x1871a4?_0xfe2444['map'](_0x34bce5=>_0x34bce5['toJSON']()):_0xfe2444;}['getSuggestion'](_0x5701b6){const _0x5d0649=this['_suggestions']['get'](_0x5701b6);if(!_0x5d0649)throw new _0x39a7b6('track-changes-suggestion-not-found',this);return _0x5d0649;}['hasSuggestion'](_0x3108ea){return this['_suggestions']['has'](_0x3108ea);}['addSuggestionData'](_0x63b2cf){const {authorId:_0x5a4d74,id:_0x51eb66,attributes:_0x20b3e1}=_0x63b2cf,[_0x37ac1b,_0xa494b6]=_0x63b2cf['type']['split'](':'),_0x4f6b39=this['_suggestions']['get'](_0x51eb66)||this['_createSuggestion'](_0x37ac1b,_0xa494b6,_0x51eb66,_0x5a4d74,_0x20b3e1);if(this['_addThreadToSuggestion'](_0x4f6b39),this['_checkSuggestionCorrectness'](_0x4f6b39,_0x37ac1b,_0xa494b6||null,_0x5a4d74),_0x4f6b39['createdAt']=_0x63b2cf['createdAt'],_0x4f6b39['_isDataLoaded']=!0x0,_0x20b3e1&&_0x20b3e1['@external']){const _0x36826a=_0x20b3e1['@external'],_0x21bbb7=this['_getExternalAuthor'](_0x36826a['authorName']);_0x4f6b39['authoredAt']=_0x36826a['createdAt'],_0x4f6b39['author']=_0x21bbb7,_0x4f6b39['isExternal']=!0x0;}else _0x4f6b39['authoredAt']=_0x63b2cf['createdAt'];switch(_0x63b2cf['data']&&(_0x4f6b39['data']=_0x63b2cf['data']),_0x63b2cf['attributes']&&(_0x4f6b39['attributes']=_0x63b2cf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4f6b39['_saved']=!0x0),this['_suggestionState']['get'](_0x4f6b39)){case'notReady':this['_suggestionState']['set'](_0x4f6b39,'dataReady');break;case'markerReady':_0x4f6b39['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4f6b39])),this['_refreshSuggestionsChain'](new Set([_0x4f6b39])),this['_suggestionState']['set'](_0x4f6b39,'ready'),this['fire']('suggestionLoaded',_0x4f6b39)):this['_suggestionState']['set'](_0x4f6b39,'removed');}return _0x4f6b39;}['acceptSuggestion'](_0x386f88){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f0385 of _0x386f88['getAllAdjacentSuggestions']())_0x4f0385['accept']();});});}['discardSuggestion'](_0x59b810){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x255774 of _0x59b810['getAllAdjacentSuggestions']())_0x255774['discard']();});});}['enableCommand'](_0x416df6,_0x4e8d7c){const _0x53887a=this['editor']['commands']['get'](_0x416df6);if(!_0x53887a)throw new _0x39a7b6('track-changes-command-not-found',this,{'commandName':_0x416df6});if(this['_enabledCommands']['has'](_0x53887a))throw new _0x39a7b6('track-changes-enable-command-twice',this,{'commandName':_0x416df6});this['_enabledCommands']['add'](_0x53887a),_0x4e8d7c&&_0x53887a['on']('execute',(_0x30ad8f,_0xdd1b46)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xdd1b46['length']>0x0&&_0xdd1b46[_0xdd1b46['length']-0x1]&&_0xdd1b46[_0xdd1b46['length']-0x1]['forceDefaultExecution']?_0xdd1b46['pop']():(_0x30ad8f['return']=_0x4e8d7c((..._0x9b1490)=>_0x53887a['execute'](..._0x9b1490,{'forceDefaultExecution':!0x0}),..._0xdd1b46),_0x30ad8f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4634a5){let _0x597635,_0x1d9eed;const _0x4ba00e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x597635=_0x4634a5();}catch(_0x4a5986){_0x1d9eed=_0x4a5986;}return _0x4ba00e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1d9eed&&_0x39a7b6['rethrowUnexpectedError'](_0x1d9eed,this),_0x597635;}['markInsertion'](_0x343eef,_0x269fe0=null,_0x3e1569={}){if(_0x343eef['isCollapsed'])return null;const _0x317285=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x547a5d,meta:_0x3505af}of this['_findSuggestions'](_0x343eef,'insertion'))if(_0x3505af['isOwn']){if(!_0x3505af['isNextTo']){if(_0x3505af['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x547a5d,_0x3e1569))continue;return _0x547a5d;}if(Lt(_0x547a5d,_0x3e1569))return _0x547a5d;this['_breakSuggestionMarker'](_0x547a5d,_0x343eef['start'],_0x343eef['end']);break;}if(_0x269fe0==_0x547a5d['subType']&&Lt(_0x547a5d,_0x3e1569)){const _0x4ff34a=_0x547a5d['getFirstRange']();return _0x4ff34a['start']['isEqual'](_0x343eef['end'])?this['_setSuggestionRange'](_0x547a5d,this['_model']['createRange'](_0x343eef['start'],_0x4ff34a['end'])):this['_setSuggestionRange'](_0x547a5d,this['_model']['createRange'](_0x4ff34a['start'],_0x343eef['end'])),_0x547a5d;}}const _0x579633=_0x51081b(),_0x4c2805=_0x317285['id'],_0xfd412c=_0x269fe0?'insertion:'+_0x269fe0:'insertion',_0x3b6311=this['_setSuggestionData']({'id':_0x579633,'type':_0xfd412c,'createdAt':new Date(),'authorId':_0x4c2805,'attributes':_0x3e1569});return this['_addSuggestionMarker'](_0xfd412c,_0x579633,_0x4c2805,_0x343eef),_0x3b6311;}['markMultiRangeInsertion'](_0x5ef537,_0x3848c5='multi',_0x533570={}){const _0x502008=this['editor']['plugins']['get']('Users')['me'],_0x431cf1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3848c5,'join');for(const _0x2b574d of this['getSuggestions']())if(_0x2b574d['author']['id']==_0x502008['id']&&'insertion'==_0x2b574d['type']&&_0x2b574d['subType']==_0x3848c5&&Lt(_0x2b574d,_0x533570)&&(_0x431cf1(_0x2b574d['getRanges'](),_0x5ef537)||_0x431cf1(_0x5ef537,_0x2b574d['getRanges']()))){for(const _0x26d796 of _0x5ef537)_0x2b574d['addRange'](_0x26d796);return _0x2b574d;}for(const {suggestion:_0x3ea146,meta:_0x4fc90a}of this['_findSuggestions'](_0x5ef537,'insertion')){if(!_0x4fc90a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4fc90a['containsRangeInObject'])continue;if(!Lt(_0x3ea146,_0x533570))continue;let _0x5c64e6=!0x0;for(const _0x334b37 of _0x3ea146['getRanges']())for(const _0x2805cc of _0x5ef537)if(!_0x334b37['containsRange'](_0x2805cc)){_0x5c64e6=!0x1;break;}if(_0x5c64e6)return _0x3ea146;}const _0x5092b5=_0x51081b(),_0x369b36=_0x502008['id'],_0x20580d='insertion:'+_0x3848c5,_0x2be507=this['_setSuggestionData']({'id':_0x5092b5,'type':_0x20580d,'createdAt':new Date(),'authorId':_0x369b36,'attributes':_0x533570});for(const _0x2594fd of _0x5ef537)this['_addSuggestionMarker'](_0x20580d,_0x5092b5,_0x369b36,_0x2594fd,u['getMultiRangeId']());return _0x2be507;}['markInlineFormat'](_0xbab80b,_0xb4ba40,_0x472c83=null,_0xdc98e={}){if(_0x472c83=_0x472c83||Vt(_0xb4ba40),_0xbab80b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x19c2da=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x472c83,'accept');return this['forceDefaultExecution'](()=>_0x19c2da([_0xbab80b],_0xb4ba40,_0xdc98e)),null;}const _0x322107=this['editor']['plugins']['get']('Users')['me'],_0x3b4f2f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5f4103,meta:_0x5ad006}of this['_findSuggestions'](_0xbab80b,'insertion'))_0x5ad006['isOwn']&&!_0x5ad006['isInsideObject']&&_0x3b4f2f['push'](..._0x5f4103['getRanges']());}const _0x20c94d=function(_0x2c0ca9,_0x1a30ed){const _0x26c9ba=[];for(const _0x30e67a of _0x1a30ed){const _0x1d42e0=_0x2c0ca9['getIntersection'](_0x30e67a);_0x1d42e0&&_0x26c9ba['push'](_0x1d42e0);}return _0x26c9ba;}(_0xbab80b,_0x3b4f2f),_0x2e24fc=function(_0x3df3c5,_0x46500a){const _0x23a014=[_0x3df3c5];for(const _0x4c31d1 of _0x46500a){let _0x4c5f10=0x0;for(;_0x4c5f10<_0x23a014['length'];){const _0x14a144=_0x23a014[_0x4c5f10]['getDifference'](_0x4c31d1);_0x23a014['splice'](_0x4c5f10,0x1,..._0x14a144),_0x4c5f10+=_0x14a144['length'];}}return _0x23a014;}(_0xbab80b,_0x3b4f2f);_0x20c94d['length']&&this['_model']['change'](()=>{for(const _0x1fabe2 of _0x20c94d){const _0x267c00=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x472c83,'accept');this['forceDefaultExecution'](()=>_0x267c00([_0x1fabe2],_0xb4ba40,_0xdc98e));}});for(const _0x3fb163 of _0x2e24fc){let _0x4dc895=null,_0x34048b=_0x3fb163['start'],_0x2add62=_0x3fb163['end'];for(const {suggestion:_0x5adb51,meta:_0x555fce}of this['_findSuggestions'](_0x3fb163,'formatInline')){if(!_0x555fce['isOwn'])continue;if(_0x5adb51['subType']!=_0x472c83)continue;if(!Lt(_0x5adb51,_0xdc98e))continue;const _0x34a93d=_0x5adb51['getFirstRange']();if(_0x34a93d['containsRange'](_0x3fb163,!0x0))return null;_0x34048b=_0x34048b['isBefore'](_0x34a93d['start'])?_0x34048b:_0x34a93d['start'],_0x2add62=_0x2add62['isAfter'](_0x34a93d['end'])?_0x2add62:_0x34a93d['end'],_0x4dc895?_0x34a93d['start']['isBefore'](_0x4dc895['getFirstRange']()['start'])?(_0x4dc895['removeMarkers'](),_0x4dc895=_0x5adb51):_0x5adb51['removeMarkers']():_0x4dc895=_0x5adb51;}const _0x4947b4=this['_model']['createRange'](_0x34048b,_0x2add62);if(_0x4dc895)this['_setSuggestionRange'](_0x4dc895,_0x4947b4);else{const _0x501db3=_0x51081b(),_0x311ac5=_0x322107['id'];this['_setSuggestionData']({'id':_0x501db3,'type':'formatInline:'+_0x472c83,'data':_0xb4ba40,'createdAt':new Date(),'authorId':_0x311ac5,'attributes':_0xdc98e}),this['_addSuggestionMarker']('formatInline:'+_0x472c83,_0x501db3,_0x311ac5,_0x4947b4);}}return null;}['markBlockFormat'](_0x9641de,_0x4f0cfc,_0x2451f3=[],_0x19b87d=null,_0x40ea42={}){_0x4f0cfc['formatGroupId']||(_0x4f0cfc['formatGroupId']=_0x4f0cfc['commandName']),_0x4f0cfc['multipleBlocks']=_0x9641de['is']('range'),_0x19b87d=_0x19b87d||Vt(_0x4f0cfc);const _0x48ffc2=_0x2451f3['map'](_0x48c831=>Gt(_0x48c831,this['_model'])),_0x15d7af=_0x9641de['is']('range')?_0x9641de:Gt(_0x9641de,this['_model']);if('never'===this['_trackFormatChanges']){const _0x186dfc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19b87d,'accept');return this['forceDefaultExecution'](()=>_0x186dfc([_0x15d7af],_0x4f0cfc,_0x40ea42)),null;}_0x48ffc2['push'](_0x15d7af);let _0x658e97=!0x0;for(const _0x38ca4e of _0x48ffc2)if(!this['_rangeIsInLocalUserInsertion'](_0x38ca4e)){_0x658e97=!0x1;break;}if(_0x658e97&&'always'!==this['_trackFormatChanges']){const _0x4c7883=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19b87d,'accept');return this['forceDefaultExecution'](()=>_0x4c7883([_0x15d7af],_0x4f0cfc,_0x40ea42)),null;}let _0x15471d=null,_0x5d5c2a=_0x15d7af['start'],_0x341f37=_0x15d7af['end'];for(const {suggestion:_0x109fb5,meta:_0x437051}of this['_findSuggestions'](_0x15d7af,'formatBlock')){if(!_0x437051['isOwn'])continue;if(_0x437051['isNextTo']||_0x437051['containsRangeInObject']||_0x437051['isInsideObject'])continue;if(_0x109fb5['data']['formatGroupId']!=_0x4f0cfc['formatGroupId'])continue;if(!Lt(_0x109fb5,_0x40ea42))continue;const _0x59bae9=_0x109fb5['getFirstRange']();if(_0x109fb5['subType']==_0x19b87d){if(_0x59bae9['containsRange'](_0x15d7af,!0x0))return null;_0x5d5c2a=_0x5d5c2a['isBefore'](_0x59bae9['start'])?_0x5d5c2a:_0x59bae9['start'],_0x341f37=_0x341f37['isAfter'](_0x59bae9['end'])?_0x341f37:_0x59bae9['end'],_0x15471d?_0x59bae9['start']['isBefore'](_0x15471d['getFirstRange']()['start'])?(_0x15471d['removeMarkers'](),_0x15471d=_0x109fb5):_0x109fb5['removeMarkers']():_0x15471d=_0x109fb5;}else{const _0x19ec1e=_0x15d7af['getIntersection'](_0x59bae9);this['_cutOutSuggestionMarker'](_0x109fb5,_0x19ec1e);}}const _0x3a8af7=this['editor']['plugins']['get']('Users')['me'],_0x443dfb=_0x51081b(),_0x3dba08=_0x3a8af7['id'];if(_0x15471d)return this['_setSuggestionRange'](_0x15471d,this['_model']['createRange'](_0x5d5c2a,_0x341f37)),_0x15471d;{const _0x3f509d=this['_setSuggestionData']({'id':_0x443dfb,'type':'formatBlock:'+_0x19b87d,'data':_0x4f0cfc,'createdAt':new Date(),'authorId':_0x3dba08,'attributes':_0x40ea42});return this['_addSuggestionMarker']('formatBlock:'+_0x19b87d,_0x443dfb,_0x3dba08,this['_model']['createRange'](_0x5d5c2a,_0x341f37)),_0x3f509d;}}['markMultiRangeBlockFormat'](_0xd89a0,_0x80bdb7,_0x5cdc8c=[],_0x2e39b7=null,_0x13ca0d={}){_0x80bdb7['formatGroupId']||(_0x80bdb7['formatGroupId']=_0x80bdb7['commandName']);const _0x5a65e3=_0xd89a0[0x0];_0x80bdb7['multipleBlocks']=_0x5a65e3['is']('range'),_0x2e39b7=_0x2e39b7||Vt(_0x80bdb7);const _0x150f6b=_0x5cdc8c['map'](_0x28b9a3=>Gt(_0x28b9a3,this['_model'])),_0x4c44c5=_0x5a65e3['is']('range')?_0xd89a0:_0xd89a0['map'](_0x3ee184=>Gt(_0x3ee184,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2850e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e39b7,'accept');return this['forceDefaultExecution'](()=>_0x2850e5(_0x4c44c5,_0x80bdb7,_0x13ca0d)),null;}_0x150f6b['push'](..._0x4c44c5);let _0x4c5b78=!0x0;for(const _0x40fa2e of _0x150f6b)if(!this['_rangeIsInLocalUserInsertion'](_0x40fa2e)){_0x4c5b78=!0x1;break;}if(_0x4c5b78&&'always'!==this['_trackFormatChanges']){const _0x49e5e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e39b7,'accept');return this['forceDefaultExecution'](()=>_0x49e5e7(_0x4c44c5,_0x80bdb7,_0x13ca0d)),null;}const _0x58df0c=this['editor']['plugins']['get']('Users')['me'];for(const _0x3fb43c of this['getSuggestions']()){if(_0x3fb43c['author']['id']!=_0x58df0c['id'])continue;if('formatBlock'!=_0x3fb43c['type']||_0x3fb43c['data']['formatGroupId']!=_0x80bdb7['formatGroupId'])continue;if(!Lt(_0x3fb43c,_0x13ca0d))continue;const _0x1e15fc=_0x3fb43c['subType']==_0x2e39b7;for(let _0x2c2007=0x0;_0x2c2007<_0x4c44c5['length'];_0x2c2007++){const _0x4e97b8=_0x4c44c5[_0x2c2007];for(const _0x3654f0 of _0x3fb43c['getMarkers']()){const _0x12d2ca=_0x3654f0['getRange']();if(_0x4e97b8['isEqual'](_0x12d2ca)){_0x1e15fc?(_0x4c44c5['splice'](_0x2c2007,0x1),_0x2c2007--):_0x3fb43c['removeMarker'](_0x3654f0['name']);break;}}}}if(0x0==_0x4c44c5['length'])return null;const _0x28c528=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e39b7,'join');for(const _0x4ee37f of this['getSuggestions']())if(_0x4ee37f['author']['id']==_0x58df0c['id']&&'formatBlock'==_0x4ee37f['type']&&_0x4ee37f['data']['formatGroupId']==_0x80bdb7['formatGroupId']&&_0x4ee37f['subType']==_0x2e39b7&&Lt(_0x4ee37f,_0x13ca0d)&&(_0x28c528(_0x4ee37f['getRanges'](),_0x4c44c5)||_0x28c528(_0x4c44c5,_0x4ee37f['getRanges']()))){for(const _0x90ce3d of _0x4c44c5)_0x4ee37f['addRange'](_0x90ce3d);return _0x4ee37f;}const _0x52acf6=_0x51081b(),_0x35c1e4=_0x58df0c['id'],_0x2b2cb8='formatBlock:'+_0x2e39b7,_0x20ab21=this['_setSuggestionData']({'id':_0x52acf6,'type':_0x2b2cb8,'data':_0x80bdb7,'createdAt':new Date(),'authorId':_0x35c1e4,'attributes':_0x13ca0d});for(const _0x4ad015 of _0x4c44c5)this['_addSuggestionMarker'](_0x2b2cb8,_0x52acf6,_0x35c1e4,_0x4ad015,u['getMultiRangeId']());return _0x20ab21;}['markDeletion'](_0x474528,_0x5ddb0f=null,_0x19c49e={}){if(_0x474528['isCollapsed'])return null;const _0x5d1305=this['editor']['plugins']['get']('Users')['me'],_0x434c83=new _0x4022b5(_0x474528['start'],_0x474528['end']);for(const {suggestion:_0x1cee2d,meta:_0x285b79}of this['_findSuggestions'](_0x434c83,'insertion'))if(_0x285b79['isOwn']&&!_0x285b79['isNextTo']){if(_0x1cee2d['isMultiRange']){const _0x151b6f=_0x1cee2d['getRanges']()['filter'](_0x35c5e1=>'$graveyard'!=_0x35c5e1['root']['rootName']);_0x151b6f['every'](_0xb0839e=>_0x434c83['containsRange'](_0xb0839e,!0x0))&&_0x1cee2d['discard']();if(_0x151b6f['some'](_0x3b0308=>_0x3b0308['containsRange'](_0x434c83,!0x0))){const _0x2fe157=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ddb0f,'accept');return this['forceDefaultExecution'](()=>_0x2fe157([_0x434c83],null,_0x19c49e)),null;}}else{const _0x378ab0=_0x434c83['getIntersection'](_0x1cee2d['getFirstRange']());null!==_0x378ab0&&_0x1cee2d['_onDiscard']([_0x378ab0],null,_0x19c49e);}}if(_0x434c83['detach'](),_0x434c83['isCollapsed']||'$graveyard'==_0x434c83['root']['rootName'])return null;let _0x31ce91=null,_0xc8f40a=_0x434c83['start'],_0x3793ac=_0x434c83['end'];const _0x228d44=this['_findSuggestions'](_0x434c83,'deletion');for(const {suggestion:_0x904c93,meta:_0x8f9e25}of _0x228d44){const _0x460275=this['_model']['createRange'](_0xc8f40a,_0x3793ac);if(_0x8f9e25['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8f9e25['containsRangeInObject']&&!_0x8f9e25['isInsideObject'])){if(_0x904c93['isMultiRange']){if(!Lt(_0x904c93,_0x19c49e))continue;let _0x2cd2c7=!0x0;for(const _0x442b33 of _0x904c93['getRanges']()){if(_0x442b33['containsRange'](_0x460275,!0x0))return _0x904c93;_0x460275['containsRange'](_0x442b33)||(_0x2cd2c7=!0x1);}_0x2cd2c7&&_0x904c93['discard']();}else{const _0x15e316=_0x904c93['getFirstRange']();if(_0x15e316['containsRange'](_0x460275,!0x0))return _0x904c93;if(!Lt(_0x904c93,_0x19c49e)){_0x460275['containsRange'](_0x15e316)?_0x904c93['removeMarkers']():_0x15e316['containsPosition'](_0xc8f40a)?_0xc8f40a=_0x15e316['end']:_0x15e316['containsPosition'](_0x3793ac)&&(_0x3793ac=_0x15e316['start']);continue;}_0xc8f40a=_0xc8f40a['isBefore'](_0x15e316['start'])?_0xc8f40a:_0x15e316['start'],_0x3793ac=_0x3793ac['isAfter'](_0x15e316['end'])?_0x3793ac:_0x15e316['end'],_0x19c49e=Object['assign']({},_0x904c93['attributes']),_0x31ce91?_0x15e316['start']['isBefore'](_0x31ce91['getFirstRange']()['start'])?(_0x31ce91['removeMarkers'](),_0x31ce91=_0x904c93):_0x904c93['removeMarkers']():_0x31ce91=_0x904c93;}}}if(_0x31ce91)return this['_setSuggestionRange'](_0x31ce91,this['_model']['createRange'](_0xc8f40a,_0x3793ac)),_0x31ce91;{const _0x58c538=_0x51081b(),_0x1c7728=this['_model']['createRange'](_0xc8f40a,_0x3793ac),_0x39d872=_0x5d1305['id'],_0x4d9fe5=_0x5ddb0f?'deletion:'+_0x5ddb0f:'deletion',_0x37a1bb=this['_setSuggestionData']({'id':_0x58c538,'type':_0x4d9fe5,'createdAt':new Date(),'authorId':_0x39d872,'attributes':_0x19c49e});return this['_addSuggestionMarker'](_0x4d9fe5,_0x58c538,_0x39d872,_0x1c7728),_0x37a1bb;}}['markMultiRangeDeletion'](_0x5557ba,_0x478407='multi',_0x2c736b={}){const _0x211311=this['editor']['plugins']['get']('Users')['me'],_0xa684ca=_0x5557ba['map'](_0x2b446d=>new _0x4022b5(_0x2b446d['start'],_0x2b446d['end'])),_0x5d8aea=new Set();for(const {suggestion:_0x240de1,meta:_0x4c5bc8}of this['_findSuggestions'](_0xa684ca,'insertion'))_0x4c5bc8['isOwn']&&!_0x4c5bc8['isNextTo']&&_0x5d8aea['add'](_0x240de1);for(const _0x65aa09 of _0x5d8aea)if(_0x65aa09['isMultiRange']){const _0x4e1dc3=_0x65aa09['getRanges']();(!_0x65aa09['attributes']||!_0x65aa09['attributes']['skipNestingCheck'])&&(_0x4e1dc3['every'](_0x1b1729=>_0xa684ca['some'](_0x1875f2=>_0x1875f2['containsRange'](_0x1b1729,!0x0)))&&_0x65aa09['discard']());if(_0xa684ca['every'](_0x56ffe7=>_0x4e1dc3['some'](_0xa65ab5=>_0xa65ab5['containsRange'](_0x56ffe7,!0x0)))){const _0x293a43=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x478407,'accept');return this['forceDefaultExecution'](()=>_0x293a43(_0x5557ba,null,_0x2c736b)),null;}}else{const _0x5139d3=_0x65aa09['getFirstRange']();_0xa684ca['some'](_0x357e40=>_0x357e40['containsRange'](_0x5139d3,!0x0))&&_0x65aa09['discard']();if(_0xa684ca['every'](_0x37d641=>_0x5139d3['containsRange'](_0x37d641,!0x0))){const _0x2765db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x478407,'accept');return this['forceDefaultExecution'](()=>_0x2765db(_0xa684ca,null,_0x2c736b)),null;}}const _0x333fe4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x478407,'join');let _0x23f002=null;for(const _0x511ee8 of this['getSuggestions']())if(_0x511ee8['author']['id']==_0x211311['id']&&_0x511ee8['isInContent']&&'deletion'==_0x511ee8['type']&&_0x511ee8['subType']==_0x478407&&Lt(_0x511ee8,_0x2c736b)&&(_0x333fe4(_0x511ee8['getRanges'](),_0xa684ca)||_0x333fe4(_0xa684ca,_0x511ee8['getRanges']()))){if(_0x23f002){if(_0x511ee8['commentThread']&&_0x511ee8['commentThread']['length'])continue;for(const _0x158eaf of _0x511ee8['getRanges']())_0x23f002['isIntersectingWithRange'](_0x158eaf)||_0x23f002['addRange'](_0x158eaf);_0x511ee8['removeMarkers']();}else{_0x23f002=_0x511ee8;for(const _0x329985 of _0xa684ca)_0x511ee8['isIntersectingWithRange'](_0x329985)||_0x511ee8['addRange'](_0x329985);}}if(_0x23f002)return _0x23f002;_0x5d8aea['clear']();for(const {suggestion:_0xea9552,meta:_0x1af56c}of this['_findSuggestions'](_0xa684ca,'deletion'))_0x1af56c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1af56c['containsRangeInObject']&&!_0x1af56c['isInsideObject'])&&Lt(_0xea9552,_0x2c736b)&&_0x5d8aea['add'](_0xea9552);for(const _0x3ae50e of _0x5d8aea){const _0x33a4e0=_0x3ae50e['getRanges']();if(!_0x2c736b||!_0x2c736b['skipNestingCheck']){if(_0xa684ca['every'](_0x560efb=>_0x33a4e0['some'](_0x1bb639=>_0x1bb639['containsRange'](_0x560efb,!0x0))))return _0x3ae50e;}(!_0x3ae50e['attributes']||!_0x3ae50e['attributes']['skipNestingCheck'])&&(_0x33a4e0['every'](_0x4dead8=>_0xa684ca['some'](_0x5672c3=>_0x5672c3['containsRange'](_0x4dead8,!0x0)))&&_0x3ae50e['discard']());}const _0x54f76e=_0x51081b(),_0xe7067a=_0x211311['id'],_0x518023='deletion:'+_0x478407,_0x5872d9=this['_setSuggestionData']({'id':_0x54f76e,'type':_0x518023,'createdAt':new Date(),'authorId':_0xe7067a,'attributes':_0x2c736b});for(const _0x32effc of _0xa684ca)_0x32effc['detach'](),_0x32effc['isCollapsed']||'$graveyard'==_0x32effc['root']['rootName']||this['_addSuggestionMarker'](_0x518023,_0x54f76e,_0xe7067a,_0x32effc,u['getMultiRangeId']());return _0x5872d9;}['markAttributeChange'](_0x250c1d,_0x165c8b,_0x84ecba,_0xf73b94,_0x4832e1){if(_0x250c1d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3cadc8=this['editor']['plugins']['get']('Users')['me']['id'],_0x405d42=Array['from'](this['_suggestions']['values']())['filter'](_0x31eac3=>'attribute'==_0x31eac3['type']&&_0x31eac3['data']['key']==_0x165c8b&&_0x31eac3['isIntersectingWithRange'](_0x250c1d));if('default'===this['_trackFormatChanges']){const _0x2bda82=this['_findSuggestions'](_0x250c1d,'insertion')['filter'](({meta:_0x1a3879})=>_0x1a3879['isOwn']&&!_0x1a3879['isInsideObject']&&!_0x1a3879['isNextTo'])['map'](({suggestion:_0xfb6d8})=>_0xfb6d8);_0x405d42['unshift'](..._0x2bda82);}const _0x271636=new Map([[_0x250c1d,_0x84ecba]]);for(const _0x5ed9d4 of _0x405d42){const _0x557824='attribute'==_0x5ed9d4['type']?_0x5ed9d4['data']['oldValue']:void 0x0,_0x4c8617=_0x5ed9d4['getFirstRange'](),_0xf6efe8=Array['from'](_0x271636['keys']())['find'](_0x2b78a5=>_0x2b78a5['isIntersecting'](_0x4c8617));if(!_0xf6efe8)continue;const _0x266188=_0xf6efe8['getDifference'](_0x4c8617);this['_isBlockAttribute'](_0x165c8b)&&'insertion'==_0x5ed9d4['type']&&0x0!=_0x266188['length']||(_0x271636['delete'](_0xf6efe8),_0x266188['forEach'](_0x104c5e=>{_0x271636['set'](_0x104c5e,_0x84ecba);}),'insertion'!=_0x5ed9d4['type']&&_0x557824!=_0xf73b94&&_0x271636['set'](_0xf6efe8['getIntersection'](_0x4c8617),_0x557824));}const _0x5d924b=[];for(const [_0x17cf58,_0x54bd9c]of _0x271636){const _0x49f63f=_0x51081b(),_0x5b1bed={'key':_0x165c8b,'oldValue':_0x54bd9c,'newValue':_0xf73b94};_0x165c8b['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':_0x165c8b});const _0x42c6e0=('attribute:'+(_0x165c8b+'|'+Vt({'newValue':_0xf73b94})))['substring'](0x0,0x3c),_0x493199=this['_setSuggestionData']({'id':_0x49f63f,'type':_0x42c6e0,'data':_0x5b1bed,'createdAt':new Date(),'authorId':_0x3cadc8,'attributes':_0x4832e1});_0x5d924b['push'](_0x493199),this['_addSuggestionMarker'](_0x42c6e0,_0x49f63f,_0x3cadc8,_0x17cf58);}return _0x5d924b;}['enableDefaultAttributesIntegration'](_0x314314){this['enableCommand'](_0x314314,(_0x4a90ab,..._0x272f9d)=>{this['_recordAttributeChanges'](()=>{_0x4a90ab(..._0x272f9d);});});}['registerBlockAttribute'](_0x5db855){this['_blockAttributeKeys']['add'](_0x5db855);}['registerInlineAttribute'](_0x18b049){this['_inlineAttributeKeys']['add'](_0x18b049);}['_getAttributeKey'](_0x2c6e6f){return'attribute'==_0x2c6e6f['type']?_0x2c6e6f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x46a175,_0x218bd8){const _0x354de6=_0x46a175['getFirstMarker']();this['_model']['change'](_0x2bb16b=>{_0x2bb16b['updateMarker'](_0x354de6,{'range':_0x218bd8});});}['_addThreadToSuggestion'](_0x322318){const _0x552325=_0x322318['id'],_0x40f325=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x552325)||this['_commentsRepository']['addCommentThread']({'channelId':_0x40f325,'threadId':_0x552325,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x25e58c=this['_commentsRepository']['getCommentThread'](_0x552325);_0x25e58c['unbind']('isRemovable'),_0x25e58c['isRemovable']=!0x1,_0x322318['commentThread']=_0x25e58c;}['_checkSuggestionCorrectness'](_0xe18b53,_0x558138,_0x1b6551,_0xaf2061){if(_0xe18b53['type']!=_0x558138||_0xe18b53['subType']!=_0x1b6551||_0xe18b53['creator']['id']!=_0xaf2061)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x39a7b6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4c0200,_0x426d67){const _0x3a1163=_0x4c0200['getFirstRange']();if(_0x426d67['isEqual'](_0x3a1163))_0x4c0200['removeMarkers']();else{if(_0x3a1163['containsRange'](_0x426d67)){const _0x329bb6=this['_model']['createPositionAt'](_0x426d67['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4c0200,this['_model']['createRange'](_0x3a1163['start'],_0x329bb6));const _0x28999e=_0x51081b(),_0x1a8951=_0x4c0200['creator']['id'],_0xcbd35d=_0x4c0200['type']+':'+_0x4c0200['subType'];this['_setSuggestionData']({'id':_0x28999e,'type':_0xcbd35d,'createdAt':new Date(),'authorId':_0x1a8951,'data':_0x4c0200['data'],'attributes':_0x4c0200['attributes']});const _0x35ff82=this['_model']['createPositionAt'](_0x426d67['end']['parent'],'after'),_0xf3b087=this['_model']['createRange'](_0x35ff82,_0x3a1163['end']);this['_addSuggestionMarker'](_0xcbd35d,_0x28999e,_0x1a8951,_0xf3b087);}else{if(_0x3a1163['containsPosition'](_0x426d67['start'])){const _0x191da1=this['_model']['createPositionAt'](_0x426d67['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4c0200,this['_model']['createRange'](_0x3a1163['start'],_0x191da1));}else{const _0x1ff1b0=this['_model']['createPositionAt'](_0x426d67['end']['parent'],'after');this['_setSuggestionRange'](_0x4c0200,this['_model']['createRange'](_0x1ff1b0,_0x3a1163['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x8cb2b7){for(const {suggestion:_0x213425,meta:_0x5b6d1b}of this['_findSuggestions'](_0x8cb2b7,'insertion')){if(!_0x5b6d1b['isOwn'])continue;const _0x3acd89=_0x213425['getRanges']();for(const _0x44adb9 of _0x3acd89)if(!_0x8cb2b7['getDifference'](_0x44adb9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4db092){const _0x2999e8=this['editor']['plugins']['get']('Users')['getUser'](_0x4db092);if(!_0x2999e8)throw new _0x39a7b6('track-changes-user-not-found',this);return _0x2999e8;}['_getExternalAuthor'](_0x2b408d){const _0x2182b9=this['editor']['plugins']['get']('Users'),_0x32ed4a=_0x434c54('external:'+_0x2b408d),_0x2b8ac7=_0x2182b9['getUser'](_0x32ed4a);return _0x2b8ac7||_0x2182b9['addUser']({'id':_0x32ed4a,'name':_0x2b408d});}['_createSuggestion'](_0x5f11c5,_0x508d67,_0x3d87d8,_0x2c8441,_0x30b893){const _0x4b751b=this['_getAuthorFromId'](_0x2c8441),_0x346b45=this['_suggestionFactory']['buildSuggestion'](_0x5f11c5,_0x508d67,_0x3d87d8,_0x4b751b,_0x30b893,_0x12e3e3=>{this['_updateSuggestionData'](_0x3d87d8,{'attributes':_0x12e3e3});const _0x350885=this['getSuggestion'](_0x3d87d8);this['_joinWithAdjacentSuggestions'](new Set([_0x350885])),this['_refreshSuggestionsChain'](new Set([_0x350885]));});return this['listenTo'](_0x346b45,'accept',()=>{this['_updateSuggestionData'](_0x3d87d8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x346b45,'discard',()=>{this['_updateSuggestionData'](_0x3d87d8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3d87d8,_0x346b45),this['_suggestionState']['set'](_0x346b45,'notReady'),_0x346b45;}['_splitMarkerName'](_0x18b621){const _0x3a57fc=_0x18b621['split'](':');return{'group':_0x3a57fc[0x0],'type':_0x3a57fc[0x1],'subType':_0x3a57fc['length']>=0x5?_0x3a57fc[0x2]:null,'id':_0x3a57fc['length']<0x5?_0x3a57fc[0x2]:_0x3a57fc[0x3],'authorId':_0x3a57fc['length']<0x5?_0x3a57fc[0x3]:_0x3a57fc[0x4],'markerCount':0x6==_0x3a57fc['length']?_0x3a57fc[0x5]:null};}['_breakSuggestionMarker'](_0x35a9e7,_0x15e12a,_0xadcd01){const _0x64be8e=_0x35a9e7['getFirstRange'](),_0x236834=_0x64be8e['start'],_0x4211da=_0x64be8e['end'];this['_setSuggestionRange'](_0x35a9e7,this['_model']['createRange'](_0x236834,_0x15e12a));const _0x14fee6=_0x51081b(),_0x3bfb61=_0x35a9e7['creator']['id'],_0x5e2657=_0x35a9e7['type']+(_0x35a9e7['subType']?':'+_0x35a9e7['subType']:'');this['_setSuggestionData']({'id':_0x14fee6,'type':_0x5e2657,'createdAt':new Date(),'authorId':_0x3bfb61,'originalSuggestionId':_0x35a9e7['id'],'attributes':_0x35a9e7['attributes'],'data':_0x35a9e7['data']});const _0x165d18=this['_getAttributeKey'](_0x35a9e7);('formatBlock'==_0x35a9e7['type']||_0x165d18&&this['_isBlockAttribute'](_0x165d18))&&(_0xadcd01=this['_model']['createPositionBefore'](_0xadcd01['parent'])),this['_addSuggestionMarker'](_0x5e2657,_0x14fee6,_0x3bfb61,this['_model']['createRange'](_0xadcd01,_0x4211da));}['_findSuggestions'](_0x4cb6a5,_0x23e3a7=null){const _0x49dd8a=[],_0xd50541=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4cb6a5)||(_0x4cb6a5=[_0x4cb6a5]);for(const _0x1a3cec of this['getSuggestions']()){if(!_0x1a3cec['isInContent'])continue;if(_0x23e3a7&&_0x1a3cec['type']!=_0x23e3a7)continue;let _0x2ae1ab=!0x1;for(const _0x411f0d of _0x1a3cec['getRanges']()){for(const _0x29210c of _0x4cb6a5){const _0x51a136=_0x29210c['start']['isEqual'](_0x411f0d['end'])||_0x29210c['end']['isEqual'](_0x411f0d['start']);if(_0x51a136||_0x29210c['getIntersection'](_0x411f0d)){const _0x3fcf20=_0x29210c['containsRange'](_0x411f0d)&&Rt(this['_model']['schema'],_0x411f0d['start'],_0x29210c),_0x1aea90=_0x411f0d['containsRange'](_0x29210c)&&Rt(this['_model']['schema'],_0x29210c['start'],_0x411f0d);_0x49dd8a['push']({'suggestion':_0x1a3cec,'meta':{'isOwn':_0xd50541==_0x1a3cec['author'],'isNextTo':_0x51a136,'isInsideObject':_0x3fcf20,'containsRangeInObject':_0x1aea90}}),_0x2ae1ab=!0x0;break;}}if(_0x2ae1ab)break;}}return _0x49dd8a;}['_addSuggestionMarker'](_0x381dab,_0x4bdbc4,_0xf6a7fa,_0x598830,_0x51ef5b){this['_model']['change'](_0x5a2a14=>{let _0x26c101='suggestion:'+_0x381dab+':'+_0x4bdbc4+':'+_0xf6a7fa;_0x51ef5b&&(_0x26c101=_0x26c101+':'+_0x51ef5b),_0x5a2a14['addMarker'](_0x26c101,{'range':_0x598830,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x98a11f){const _0x276cad=_0x98a11f['previous'],_0x2aa6a7=_0x98a11f['next'];_0x98a11f['previous']=null,_0x98a11f['next']=null,null!=_0x276cad&&_0x276cad['next']==_0x98a11f&&(_0x276cad['next']=_0x2aa6a7),null!=_0x2aa6a7&&_0x2aa6a7['previous']==_0x98a11f&&(_0x2aa6a7['previous']=_0x276cad),'ready'==this['_suggestionState']['get'](_0x98a11f)&&(this['_suggestionState']['set'](_0x98a11f,'removed'),this['fire']('suggestionUnloaded',_0x98a11f,_0x276cad,_0x2aa6a7));}['_setSuggestionData'](_0x29eb53){const _0x4f214d=_0x29eb53['id'],_0x55932c=this['addSuggestionData'](_0x29eb53);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x46fd8d=this['editor']['plugins']['get']('PendingActions'),_0x8c6576=_0x55932c['hasComments'],_0x4c69da=_0x55932c['subType']?_0x55932c['type']+':'+_0x55932c['subType']:_0x55932c['type'],_0x5af52b=this['editor']['locale'],_0x502429=_0x46fd8d['add'](o(_0x5af52b,'PENDING_ACTION_SUGGESTION')),_0x2aee9b={'id':_0x4f214d,'type':_0x4c69da,'hasComments':_0x8c6576,'data':_0x29eb53['data']||null,'originalSuggestionId':_0x29eb53['originalSuggestionId']||null,'attributes':_0x55932c['attributes']};this['_adapter']['addSuggestion'](_0x2aee9b)['then'](_0x1fea7d=>{_0x55932c['_saved']=!0x0,_0x46fd8d['remove'](_0x502429),_0x1fea7d&&_0x1fea7d['createdAt']&&(this['_suggestions']['get'](_0x4f214d)['createdAt']=_0x1fea7d['createdAt']);})['catch'](_0x2fae80=>{throw _0x7e7fb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x55932c['discard']();}),_0x55932c['stopListening'](),this['_suggestions']['delete'](_0x55932c['id']),this['_suggestionState']['delete'](_0x55932c),_0x2fae80;});}return _0x55932c;}['_isBlockAttribute'](_0x279e7d){return this['_blockAttributeKeys']['has'](_0x279e7d);}['_updateSuggestionData'](_0x4dbe2e,_0x1c7bec){const _0x47b530=this['editor']['plugins']['get']('PendingActions'),_0x379c23=this['getSuggestion'](_0x4dbe2e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x379c23['_saved']){const _0x36ed9d=_0x47b530['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4dbe2e,_0x1c7bec)['then'](()=>{_0x47b530['remove'](_0x36ed9d);});}else _0x379c23['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4dbe2e,_0x1c7bec);});}}['_getSuggestionData'](_0x9f9386){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x39a7b6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x9f9386);}['_handleNewSuggestionMarker'](_0x371e9c){const {id:_0x40ad30,type:_0x503d73,subType:_0x2fbf3b,authorId:_0x2c1730}=this['_splitMarkerName'](_0x371e9c),_0x4f2b79=this['_suggestions']['get'](_0x40ad30)||this['_createSuggestion'](_0x503d73,_0x2fbf3b,_0x40ad30,_0x2c1730,{});switch(this['_checkSuggestionCorrectness'](_0x4f2b79,_0x503d73,_0x2fbf3b,_0x2c1730),this['_suggestionState']['get'](_0x4f2b79)){case'notReady':this['_getSuggestionData'](_0x40ad30)['then'](_0x1de41e=>{let _0x5fbc7=Promise['resolve']();_0x1de41e['hasComments']&&(_0x5fbc7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x40ad30})),_0x5fbc7['then'](()=>{this['addSuggestionData'](_0x1de41e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4f2b79,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x40ad30,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4f2b79,'ready'),this['fire']('suggestionLoaded',_0x4f2b79);break;case'ready':this['fire']('suggestionChanged',_0x4f2b79);}return _0x4f2b79['addMarkerName'](_0x371e9c),_0x4f2b79;}['_refreshSuggestionsChain'](_0xb11927){const _0x5c4d67=Array['from'](_0xb11927),_0x5c729d=_0x5c4d67['filter'](_0x5abda6=>'attribute'==_0x5abda6['type']);this['_refreshAttributeSuggestionsChain'](_0x5c729d);const _0x241c0d=_0x5c4d67['filter'](_0x492301=>!_0x492301['isMultiRange']&&'attribute'!=_0x492301['type']),_0x3b4571=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dc650=>!_0x4dc650['isMultiRange']&&'attribute'!=_0x4dc650['type']),_0x1c89aa=_0x3b4571['filter'](_0xfb5a0d=>!_0xb11927['has'](_0xfb5a0d)),_0x3a3e01=new Map(_0x3b4571['map'](_0x4268a2=>[_0x4268a2,this['_suggestionFactory']['getSuggestionCallback'](_0x4268a2['type'],_0x4268a2['subType'],'chain')])),_0x371e23=new Map(_0x3b4571['map'](_0x5c74db=>[_0x5c74db,_0x5c74db['getFirstRange']()])),_0x5d05b1=new Set(),_0x47b510=new Set();for(let _0x4718f3=0x0;_0x4718f3<_0x241c0d['length'];_0x4718f3++)_0x4569e6(_0x241c0d[_0x4718f3],_0x241c0d,_0x4718f3+0x1);for(let _0x3a36c0=0x0;_0x3a36c0<_0x241c0d['length'];_0x3a36c0++)_0x4569e6(_0x241c0d[_0x3a36c0],_0x1c89aa,0x0);const _0x2e341a=new Set();for(let _0x41bd8c=0x0;_0x41bd8c<_0x241c0d['length'];_0x41bd8c++){const _0x4f8e7a=_0x241c0d[_0x41bd8c];!_0x47b510['has'](_0x4f8e7a)&&_0x4f8e7a['previous']&&(_0x2e341a['add'](_0x4f8e7a['previous']),_0x4f8e7a['previous']['next']===_0x4f8e7a&&(_0x4f8e7a['previous']['next']=null),_0x4f8e7a['previous']=null),!_0x5d05b1['has'](_0x4f8e7a)&&_0x4f8e7a['next']&&(_0x2e341a['add'](_0x4f8e7a['next']),_0x4f8e7a['next']['previous']===_0x4f8e7a&&(_0x4f8e7a['next']['previous']=null),_0x4f8e7a['next']=null);}function _0x4569e6(_0x29954e,_0x6cd9a2,_0x3b0210){for(let _0x428c99=_0x3b0210;_0x428c99<_0x6cd9a2['length'];_0x428c99++){const _0x5b1795=_0x3656ab(_0x29954e,_0x6cd9a2[_0x428c99]);_0x5b1795&&(_0x5b1795[0x0]['next']=_0x5b1795[0x1],_0x5b1795[0x1]['previous']=_0x5b1795[0x0],_0x5d05b1['add'](_0x5b1795[0x0]),_0x47b510['add'](_0x5b1795[0x1]));}}function _0x3656ab(_0x2acea6,_0x1c93f8){if(_0x2acea6['author']['id']!==_0x1c93f8['author']['id'])return null;const _0x225b5c=_0x3a3e01['get'](_0x2acea6)(_0x2acea6,_0x1c93f8,_0x371e23['get'](_0x2acea6),_0x371e23['get'](_0x1c93f8));if(!_0x225b5c)return null;return _0x3a3e01['get'](_0x1c93f8)(_0x2acea6,_0x1c93f8,_0x371e23['get'](_0x2acea6),_0x371e23['get'](_0x1c93f8))?_0x225b5c[0x1]['commentThread']&&_0x225b5c[0x1]['commentThread']['length']?null:_0x225b5c:null;}_0x2e341a['size']&&this['_refreshSuggestionsChain'](_0x2e341a);}['_refreshAttributeSuggestionsChain'](_0x4172f6){if(0x0==_0x4172f6['length'])return;const _0x467bc3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19bfc7=>'attribute'==_0x19bfc7['type']&&_0x19bfc7['_isDataLoaded']),_0x4b1299=[],_0x3500b1=new Map();for(const _0x41cf46 of _0x467bc3){const _0x17d3a7=_0x434c54(_0x41cf46['attributes']);_0x3500b1['has'](_0x17d3a7)||(_0x3500b1['set'](_0x17d3a7,_0x4b1299['length']),_0x4b1299['push']([]));const _0x422d3e=_0x3500b1['get'](_0x17d3a7);_0x4b1299[_0x422d3e]['push'](_0x41cf46);}!(function(){_0x4b1299['sort']((_0x132fc7,_0x37f8af)=>{const _0x23a142=_0x132fc7[0x0]['createdAt'],_0x100771=_0x37f8af[0x0]['createdAt'];return _0x23a142==_0x100771?_0x132fc7[0x0]['attributes']['groupId']<_0x37f8af[0x0]['attributes']['groupId']?-0x1:0x1:_0x23a142<_0x100771?-0x1:0x1;});for(const _0x3c3818 of _0x4b1299)_0x3c3818['sort']((_0xfbf79f,_0x4c8469)=>_0xfbf79f['id']<_0x4c8469['id']?-0x1:0x1);}());for(let _0x253cac=0x0;_0x253cac<_0x4b1299['length'];_0x253cac++){if(0x0==_0x4b1299[_0x253cac]['length'])continue;const _0x559ea2=[];for(let _0x4c0e15=_0x253cac+0x1;_0x4c0e15<_0x4b1299['length'];_0x4c0e15++)0x0!=_0x4b1299[_0x4c0e15]['length']&&_0x123056(_0x4b1299[_0x253cac],_0x4b1299[_0x4c0e15])&&_0x559ea2['push'](_0x4c0e15);for(const _0x5e9be8 of _0x559ea2)_0x4b1299[_0x253cac]=_0x4b1299[_0x253cac]['concat'](_0x4b1299[_0x5e9be8]),_0x4b1299[_0x5e9be8]=[];}for(const _0x27448a of _0x4b1299)for(let _0x2154ca=0x0;_0x2154ca<_0x27448a['length'];_0x2154ca++)_0x27448a[_0x2154ca]['next']=_0x27448a[_0x2154ca+0x1]||null;for(const _0x1d6d23 of _0x4b1299)for(let _0x292d37=0x0;_0x292d37<_0x1d6d23['length'];_0x292d37++)_0x1d6d23[_0x292d37]['previous']=_0x1d6d23[_0x292d37-0x1]||null;function _0x123056(_0x55169e,_0x36d552){if(_0x55169e[0x0]['attributes']['groupId']!==_0x36d552[0x0]['attributes']['groupId']&&_0x55169e[0x0]['author']!==_0x36d552[0x0]['author'])return!0x1;if(!function(_0x4f29ee,_0x4e3021){if(!_0x4f29ee['hasComments']&&!_0x4e3021['hasComments'])return!0x0;if(_0x4f29ee['hasComments']&&_0x4e3021['hasComments'])return!0x1;if(_0x4f29ee['hasComments']&&_0x4e3021['createdAt']<_0x4f29ee['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4e3021['hasComments']&&_0x4f29ee['createdAt']<_0x4e3021['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55169e[0x0],_0x36d552[0x0]))return!0x1;const _0x2abc97=Bt(_0x55169e[0x0]['attributes'],'groupId'),_0x250820=Bt(_0x36d552[0x0]['attributes'],'groupId');if(!_0x554b56(_0x2abc97,_0x250820))return!0x1;return!!_0x55169e['every'](_0x322a13=>_0x36d552['some'](_0x28246e=>_0x322a13['getFirstRange']()['isEqual'](_0x28246e['getFirstRange']())))&&_0x36d552['every'](_0x9f645c=>_0x55169e['some'](_0x4b4834=>_0x9f645c['getFirstRange']()['isEqual'](_0x4b4834['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3d0e72){const _0x2e151e=Array['from'](_0x3d0e72),_0x5c1444=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1f4940=_0x5c1444['filter'](_0x33293f=>!_0x3d0e72['has'](_0x33293f)),_0x14ddd2=new Map(_0x2e151e['map'](_0x4ae7bd=>[_0x4ae7bd,this['_suggestionFactory']['getSuggestionCallback'](_0x4ae7bd['type'],_0x4ae7bd['subType'],'join')])),_0x2cfce1=new Map(_0x5c1444['map'](_0x2dba59=>[_0x2dba59,_0x2dba59['getRanges']()]));for(let _0x1cf45a=0x0;_0x1cf45a<_0x2e151e['length'];_0x1cf45a++){if(_0x67f286(this,_0x2e151e[_0x1cf45a],_0x2e151e,_0x1cf45a+0x1))return!0x0;}for(let _0x4f70c5=0x0;_0x4f70c5<_0x2e151e['length'];_0x4f70c5++){if(_0x67f286(this,_0x2e151e[_0x4f70c5],_0x1f4940,0x0))return!0x0;}return!0x1;function _0x67f286(_0x3917c7,_0x1b6248,_0x5c26bd,_0x4f42ac){for(let _0x2d5278=_0x4f42ac;_0x2d5278<_0x5c26bd['length'];_0x2d5278++){const _0x46d7bf=_0x5c26bd[_0x2d5278];if(_0x46d7bf['type']!==_0x1b6248['type']||_0x46d7bf['author']['id']!==_0x1b6248['author']['id']||_0x46d7bf['subType']!==_0x1b6248['subType'])continue;if(!Pt(_0x1b6248,_0x46d7bf,['groupId']))continue;if('attribute'==_0x1b6248['type']&&_0x1b6248['data']['oldValue']!=_0x46d7bf['data']['oldValue'])continue;if('attribute'==_0x1b6248['type']&&_0x3917c7['_isBlockAttribute'](_0x1b6248['data']['key']))continue;if('formatBlock'==_0x1b6248['type']){const _0x2e2a43=_0x3917c7['editor']['model'],_0x32e3b2=_0x1b6248['getContainedElement']();if(_0x32e3b2&&(_0x2e2a43['schema']['isObject'](_0x32e3b2)||_0x2e2a43['schema']['isLimit'](_0x32e3b2)))continue;}const _0x26db58=_0x14ddd2['get'](_0x1b6248),_0x406fab=_0x2cfce1['get'](_0x1b6248),_0x4f6d69=_0x2cfce1['get'](_0x46d7bf),_0x253142=_0x1b6248['commentThread']&&_0x1b6248['commentThread']['length'],_0x89eb79=_0x46d7bf['commentThread']&&_0x46d7bf['commentThread']['length'];if(!_0x253142&&_0x26db58(_0x4f6d69,_0x406fab))return _0x3917c7['_joinSuggestions'](_0x46d7bf,_0x1b6248),_0x2cfce1['delete'](_0x1b6248),!0x0;if(!_0x89eb79&&_0x26db58(_0x406fab,_0x4f6d69))return _0x3917c7['_joinSuggestions'](_0x1b6248,_0x46d7bf),_0x2cfce1['delete'](_0x46d7bf),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2e53f8,_0x23fd14){if(_0x2e53f8['isMultiRange']){for(const _0x24882e of _0x23fd14['getRanges']())_0x2e53f8['addRange'](_0x24882e);}else{const _0x5cbad0=_0x23fd14['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2e53f8,this['_model']['createRange'](_0x2e53f8['getFirstRange']()['start'],_0x5cbad0));}_0x23fd14['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1baacf,_0x4b31a8){const _0x6c1faf=_0x1baacf['startsWith']('format')||_0x1baacf['startsWith']('attribute')?'FORMATTING':_0x1baacf['toUpperCase']();return o(this['editor']['locale'],_0x4b31a8+'_'+_0x6c1faf+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x3e8b28=this['editor'];if(!_0x3e8b28['ui'])return;const {ariaLiveAnnouncer:_0x429b80}=_0x3e8b28['ui'];_0x5aa8bc(this['_model'],({left:_0x293373,entered:_0x248c0b})=>{for(const _0x2068a3 of _0x293373){const {group:_0x437a8a,type:_0x28bd3d}=this['_splitMarkerName'](_0x2068a3['name']);if('suggestion'===_0x437a8a){_0x429b80['announce'](this['_getMarkerAnnouncementText'](_0x28bd3d,'LEAVE'));break;}}for(const _0x5694ac of _0x248c0b){const {group:_0x4daeb3,type:_0x20c642}=this['_splitMarkerName'](_0x5694ac['name']);if('suggestion'===_0x4daeb3){_0x429b80['announce'](this['_getMarkerAnnouncementText'](_0x20c642,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4808b1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x10ba6b=this['editor'],_0x553810=_0x10ba6b['model']['document']['differ']['getChanges']();if(0x0==_0x553810['length'])return!0x1;const _0x599b96=[],_0x4d2a95=_0x553810['filter'](_0x5c64bc=>'attribute'==_0x5c64bc['type']),_0x43f3bc=_0x553810['filter'](_0x501c9f=>'insert'==_0x501c9f['type']&&'$text'!=_0x501c9f['name']),_0x9dc635=_0x553810['filter'](_0x4e3e69=>'remove'==_0x4e3e69['type']&&'$text'!=_0x4e3e69['name']);for(const _0x3e8ac9 of _0x4d2a95)_0x599b96['push']({'key':_0x3e8ac9['attributeKey'],'newValue':_0x3e8ac9['attributeNewValue'],'oldValue':_0x3e8ac9['attributeOldValue'],'range':Ot(_0x3e8ac9['range'],_0x10ba6b['model'])});for(const _0x5946f4 of _0x43f3bc){const _0x299d91=_0x9dc635['find'](_0x11c903=>_0x11c903['position']['isEqual'](_0x5946f4['position']));_0x299d91&&_0x599b96['push']({'key':m,'newValue':_0x5946f4['name'],'oldValue':_0x299d91['name'],'range':_0x10ba6b['model']['createRangeOn'](_0x5946f4['position']['nodeAfter'])});}return 0x0!=_0x599b96['length']&&this['_reduceExistingSuggestions'](_0x4808b1,_0x599b96);}['_processAttributeSuggestions'](_0x23d140){let _0x1a3ad5=!0x1;const _0x5df04c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x50b3f7=>_0x50b3f7['data']['newRange']&&_0x50b3f7['name']['startsWith']('suggestion:attribute:'));for(const _0x2fde84 of _0x5df04c){const {subType:_0x435754,id:_0x53da88}=this['_splitMarkerName'](_0x2fde84['name']),_0x57774a=_0x435754['split']('|')[0x0];for(const _0x1124bd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1124bd['id']!=_0x53da88&&'attribute'==_0x1124bd['type']&&_0x1124bd['data']&&_0x1124bd['data']['key']==_0x57774a&&_0x1124bd['getFirstRange']()['isIntersecting'](_0x2fde84['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1124bd,_0x2fde84['data']['newRange'],_0x23d140),_0x1a3ad5=!0x0);}return _0x1a3ad5;}['_recordAttributeChanges'](_0x2673b3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2673b3();}['_isRegisteredAttribute'](_0x5ddfd0){const _0x400798=this['_isBlockAttribute'](_0x5ddfd0),_0x36db1b=this['_inlineAttributeKeys']['has'](_0x5ddfd0);return _0x400798||_0x36db1b;}['_reduceExistingSuggestions'](_0x4aaff6,_0x4031ac){if(0x0==_0x4031ac['length'])return!0x1;let _0x48e2ce=!0x1;for(const _0x19b6ec of _0x4031ac){const _0x898c9d=this['_findSuggestions'](_0x19b6ec['range'],'attribute')['filter'](_0x374881=>!_0x374881['meta']['isNextTo'])['map'](_0x1d06fc=>_0x1d06fc['suggestion']),_0x2906bf=_0x434c54({'newValue':_0x19b6ec['newValue']});_0x898c9d['filter'](_0x20f95c=>{const [_0x11fe71,_0x339334]=_0x20f95c['subType']['split']('|');return _0x11fe71==_0x19b6ec['key']&&_0x339334!=_0x2906bf;})['forEach'](_0x50b258=>{this['_reduceSuggestionAttributeRange'](_0x50b258,_0x19b6ec['range'],_0x4aaff6),_0x48e2ce=!0x0;});}return _0x48e2ce;}['_reduceSuggestionAttributeRange'](_0x3f9e70,_0x5e4bd7,_0x2970c4){const _0x28ad03=_0x3f9e70['getFirstRange']()['getDifference'](_0x5e4bd7);0x0!==_0x28ad03['length']?0x1!==_0x28ad03['length']?this['_breakSuggestionMarker'](_0x3f9e70,_0x5e4bd7['start'],_0x5e4bd7['end']):this['_setSuggestionRange'](_0x3f9e70,_0x28ad03[0x0]):_0x2970c4['removeMarker'](_0x3f9e70['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3fc1d9){this['_editor']=_0x3fc1d9,this['_model']=_0x3fc1d9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x10836d,_0x3f0ed4,_0x147cd3,_0x279b76,_0x21e129,_0x20ed22){return new u(this['_model'],{'type':_0x10836d,'subType':_0x3f0ed4,'id':_0x147cd3,'author':_0x279b76,'creator':_0x279b76,'attributes':_0x21e129,'onAttributesChange':_0x20ed22,'onAccept':(..._0x462be1)=>this['getSuggestionCallback'](_0x10836d,_0x3f0ed4,'accept')(..._0x462be1),'onDiscard':(..._0x1c8358)=>this['getSuggestionCallback'](_0x10836d,_0x3f0ed4,'discard')(..._0x1c8358)});}['registerCustomCallback'](_0x586072,_0x36ed4f,_0x4b38f5,_0x2067e8){const _0x1eff3f=_0x586072+':'+_0x36ed4f+':'+_0x4b38f5;this['_customCallbacks']['set'](_0x1eff3f,_0x2067e8);}['getSuggestionCallback'](_0x3e2884,_0x3d0fec,_0x1d4c4d){const _0x52aad9=_0x3e2884+':'+_0x3d0fec+':'+_0x1d4c4d;return this['_customCallbacks']['get'](_0x52aad9)||this['_defaultCallbacks']['get'](_0x3e2884+':'+_0x1d4c4d);}['_registerDefaultCallbacks'](){const _0x17ccaa=()=>!0x1,_0x288e9f=_0x2f3752=>{_0x2f3752['sort']((_0x2f40c9,_0x446a2f)=>_0x2f40c9['start']['isBefore'](_0x446a2f['start'])?0x1:-0x1),this['_model']['change'](_0x5236f0=>{for(const _0x50bcef of _0x2f3752){let _0x4ccff4;_0x4ccff4=_0x50bcef['end']['isAtEnd']&&_0x50bcef['end']['parent']==_0x50bcef['start']['nodeAfter']?_0x5236f0['createSelection'](_0x50bcef['start']['nodeAfter'],'on'):_0x5236f0['createSelection'](_0x50bcef),this['_model']['deleteContent'](_0x4ccff4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x309035=(_0x2bc5ed,_0x1eba7d)=>{_0x1eba7d&&this['_model']['change'](_0x5a694f=>{const {commandName:_0x4594f9,commandParams:_0x3f41c0=[]}=_0x1eba7d,_0x196e94=_0x2bc5ed['map'](_0x18e740=>(Tt(_0x18e740)&&(_0x18e740=this['_model']['createRange'](_0x18e740['end'])),_0x18e740))['filter'](_0x4cc45d=>'$graveyard'!==_0x4cc45d['root']['rootName']);if(_0x196e94['length']<0x1)return;const _0x4ea7d0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd2d959=>_0x4022b5['fromRange'](_0xd2d959));_0x5a694f['setSelection'](_0x196e94);for(const _0x39c5f2 of this['_editor']['commands']['commands']())_0x39c5f2['refresh']();_0x3f41c0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4594f9,..._0x3f41c0);const _0x509116=_0x4ea7d0['filter'](_0x267fbe=>'$graveyard'!=_0x267fbe['root']['rootName']);_0x509116['length']>0x0&&_0x5a694f['setSelection'](_0x509116);for(const _0x119960 of _0x4ea7d0)_0x119960['detach']();});},_0x331549=(_0x236129,_0x34cecc)=>0x1==_0x236129['length']&&0x1==_0x34cecc['length']&&_0x236129[0x0]['end']['isEqual'](_0x34cecc[0x0]['start']),_0x554b8b=(_0x2dbc7a,_0x5b5fe0,_0x279be1,_0x52dd68)=>Ft(_0x2dbc7a,_0x5b5fe0,_0x279be1,_0x52dd68,this['_model'])?[_0x2dbc7a,_0x5b5fe0]:Ft(_0x5b5fe0,_0x2dbc7a,_0x52dd68,_0x279be1,this['_model'])?[_0x5b5fe0,_0x2dbc7a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x17ccaa),this['_defaultCallbacks']['set']('insertion:discard',_0x288e9f),this['_defaultCallbacks']['set']('insertion:join',_0x331549),this['_defaultCallbacks']['set']('insertion:chain',_0x554b8b),this['_defaultCallbacks']['set']('deletion:accept',_0x288e9f),this['_defaultCallbacks']['set']('deletion:discard',_0x17ccaa),this['_defaultCallbacks']['set']('deletion:join',_0x331549),this['_defaultCallbacks']['set']('deletion:chain',_0x554b8b),this['_defaultCallbacks']['set']('formatInline:accept',_0x309035),this['_defaultCallbacks']['set']('formatInline:discard',_0x17ccaa),this['_defaultCallbacks']['set']('formatInline:join',_0x331549),this['_defaultCallbacks']['set']('formatInline:chain',_0x17ccaa),this['_defaultCallbacks']['set']('formatBlock:accept',_0x309035),this['_defaultCallbacks']['set']('formatBlock:discard',_0x17ccaa),this['_defaultCallbacks']['set']('formatBlock:join',_0x331549),this['_defaultCallbacks']['set']('formatBlock:chain',_0x17ccaa),this['_defaultCallbacks']['set']('attribute:accept',_0x17ccaa),this['_defaultCallbacks']['set']('attribute:discard',(_0x207388,_0x41868d)=>{if(!_0x41868d)return;const _0x587a0d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x8c163c=>{if(_0x41868d['key']==m)for(const _0x1a776c of _0x207388){const _0x407ac8=_0x1a776c['start']['nodeAfter'],_0x5ba99b=_0x41868d['oldValue'];_0x8c163c['rename'](_0x407ac8,_0x5ba99b);}else{if(_0x587a0d['_isBlockAttribute'](_0x41868d['key'])){for(const _0x48498d of _0x207388)void 0x0!==_0x41868d['oldValue']?_0x8c163c['setAttribute'](_0x41868d['key'],_0x41868d['oldValue'],_0x48498d['start']['nodeAfter']):_0x8c163c['removeAttribute'](_0x41868d['key'],_0x48498d['start']['nodeAfter']);}else{for(const _0x437de2 of _0x207388)_0x41868d['oldValue']?_0x8c163c['setAttribute'](_0x41868d['key'],_0x41868d['oldValue'],_0x437de2):_0x8c163c['removeAttribute'](_0x41868d['key'],_0x437de2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x331549);}}function Rt(_0x1ef177,_0x24ca9d,_0x774fe1){for(const _0x2851b1 of _0x24ca9d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2851b1['root']==_0x2851b1)return!0x1;if(!_0x774fe1['containsItem'](_0x2851b1))return!0x1;if(_0x1ef177['isObject'](_0x2851b1)||_0x1ef177['isLimit'](_0x2851b1))return!0x0;}return!0x1;}function Tt(_0x73926e){return _0x73926e['end']['parent']==_0x73926e['start']['nodeAfter']&&_0x73926e['end']['isAtStart'];}function Et(_0x18dff7,_0x317dca,_0x5f024b,_0x131b70){const _0x1734ef=_0x4e381d=>!_0x4e381d['item']['is']('$textProxy')&&!_0x131b70['isObject'](_0x4e381d['item']),_0x2efe02=_0x18dff7['start']['getLastMatchingPosition'](_0x1734ef),_0x16a92f=_0x18dff7['end']['getLastMatchingPosition'](_0x1734ef,{'direction':'backward'});return(!_0x18dff7['start']['isEqual'](_0x2efe02)||!_0x18dff7['end']['isEqual'](_0x16a92f))&&(_0x2efe02['isBefore'](_0x16a92f)?_0x5f024b['updateMarker'](_0x317dca,{'range':_0x5f024b['createRange'](_0x2efe02,_0x16a92f)}):_0x5f024b['removeMarker'](_0x317dca),!0x0);}function Vt(_0x52ae04){return _0x434c54(_0x52ae04);}function Ut(_0x16f212){const _0x49016a=_0x16f212['start']['nodeAfter'];return _0x49016a&&_0x49016a['is']('element');}function Ot(_0x4b9dec,_0x25b1b1){return null==_0x4b9dec['end']['nodeBefore']&&_0x4b9dec['end']['parent']==_0x4b9dec['start']['nodeAfter']?Gt(_0x4b9dec['start']['nodeAfter'],_0x25b1b1):_0x4b9dec;}function Gt(_0x2e9f45,_0x532961){const _0x2ad588=_0x532961['schema']['isObject'](_0x2e9f45)||_0x532961['schema']['isSelectable'](_0x2e9f45);return _0x532961['createRange'](_0x532961['createPositionAt'](_0x2e9f45,'before'),_0x2ad588?_0x532961['createPositionAfter'](_0x2e9f45):_0x532961['createPositionAt'](_0x2e9f45,'end'));}function Ft(_0x50bf4f,_0x42241f,_0x488d52,_0x412534,_0x2d21d9){if(!Pt(_0x50bf4f,_0x42241f))return!0x1;if(_0x488d52['end']['isEqual'](_0x412534['start']))return!0x0;if(_0x50bf4f['type']!=_0x42241f['type'])return!0x1;if(!_0x488d52['end']['isTouching'](_0x412534['start']))return!0x1;const _0x2e456d=_0x2d21d9['createRange'](_0x488d52['end'],_0x412534['start'])['getWalker']();for(const _0x15f5f8 of _0x2e456d)if(['elementStart','elementEnd']['includes'](_0x15f5f8['type'])&&_0x2d21d9['schema']['isLimit'](_0x15f5f8['item']))return!0x1;return!0x0;}function Pt(_0x32faa5,_0x3f84eb,_0x476f79=[]){return!(!_0x32faa5['_isDataLoaded']||!_0x3f84eb['_isDataLoaded'])&&_0x554b56(Bt(_0x32faa5['attributes'],_0x476f79),Bt(_0x3f84eb['attributes'],_0x476f79));}function Lt(_0x30e269,_0x459d43){const _0x7720dd=Ht(_0x30e269['attributes']),_0x278557=Ht(_0x459d43);if(!_0x30e269['_isDataLoaded'])return!0x1;for(const _0x3748b6 of Object['keys'](_0x278557))if(!_0x554b56(_0x7720dd[_0x3748b6],_0x278557[_0x3748b6]))return!0x1;return!0x0;}function Ht(_0x443e96){const _0x1996d3=Object['assign']({},_0x443e96);return delete _0x1996d3['skipNestingCheck'],delete _0x1996d3['tablePasteChainId'],_0x1996d3;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x4fcb90(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40d474,_0x6f0aec,_0x23a1e0,_0x1d0cdf){super(),this['model']=_0x6f0aec,this['view']=_0x23a1e0,this['commentThreadController']=_0x1d0cdf,this['_editor']=_0x40d474,this['_acceptCommand']=_0x40d474['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40d474['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5cc0b1,_0xe4c796)=>_0x5cc0b1||_0xe4c796),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x350e72=>_0x350e72&&this['_editor']['model']['canEditAt'](_0x6f0aec['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x9d24ff=>_0x9d24ff&&this['_editor']['model']['canEditAt'](_0x6f0aec['getRanges']())),this['_pendingAction']=null,_0x23a1e0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x23a1e0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x23a1e0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x23a1e0,'change:isDirty',()=>{_0x23a1e0['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 _0x2503bc=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2503bc);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xa792ac{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x4faa71,_0x3730d7,_0x1f234d,_0xc49077){super(_0x4faa71),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3730d7['authoredAt']),this['bind']('authoredAt')['to'](_0x3730d7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3730d7,this['_localUser']=_0x1f234d,this['_config']=_0xc49077,_0xc49077['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x144fbd}=this['_config'];this['commentsListView']=new _0x144fbd(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',_0x1b78ff=>_0x1b78ff+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x20c12b,_0x289ca7)=>_0x20c12b||!!_0x289ca7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x34b182}=this['_config'],_0x41f30c=new _0x34b182(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3e94b4=_0x41f30c['commentInputView'];return _0x41f30c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3e94b4,'value',(_0x22c158,_0x3bfcb3,_0x277937)=>!!_0x277937||_0x22c158&&!_0x3bfcb3),_0x3e94b4['on']('submit',(_0x53670d,_0x4e20ef)=>{this['fire']('addComment',_0x4e20ef),_0x3e94b4['editor']['setData']('');}),_0x3e94b4['on']('cancel',()=>this['focus']()),_0x3e94b4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x41f30c;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x1e2fb0,_0x4c65c1,_0x5e4597,_0x82bcc6){super(_0x1e2fb0,_0x4c65c1,_0x5e4597,_0x82bcc6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x40c4da=>_0x40c4da&&_0x40c4da[0x0]?_0x40c4da[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4c1f4f,_0x98da85)=>{let _0x22dbd6='';for(const _0x34bed8 of _0x4c1f4f)_0x22dbd6+='<p>'+ds(_0x34bed8['content'],_0x34bed8['color'])+'</p>';return _0x98da85?_0x22dbd6:_0x183dd9(_0x22dbd6,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x1e2fb0,'Accept\x20suggestion'),_0x40529a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x1e2fb0,'Discard\x20suggestion'),_0x40529a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2bea37(_0x1e2fb0,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x266e63=this['bindTemplate'],_0x424dbb=[{'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']}},{'tag':'time','attributes':{'datetime':_0x266e63['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x266e63['to']('authoredAt',_0x427757=>this['_config']['formatDateTime'](_0x427757))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x424dbb['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3706dd={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x266e63['if']('isActive','ck-suggestion-wrapper--active'),_0x266e63['to']('type',_0x3df60f=>'ck-suggestion-'+_0x3df60f),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x424dbb}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3706dd['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x3706dd;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1d937c,_0x4eccfa,_0x46454c)=>{this['_descriptionElement']['innerHTML']=_0x46454c;});}['_createButton'](_0x1a5347,_0x23c4a0,_0x277238,_0x2d2dc8,_0x1586b7){const _0x2537a1=new _0x3071f5(this['locale']);return _0x2537a1['set']({'label':_0x1a5347,'icon':_0x23c4a0,'tooltip':!0x0,'tooltipPosition':_0x1586b7}),_0x2537a1['extendTemplate']({'attributes':{'class':_0x277238}}),_0x2537a1['on']('execute',()=>{this['fire'](_0x2d2dc8,this['_model']['id']);}),_0x2537a1;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x3f8328,_0xdb6de7){let _0x5786cb='';return _0x5786cb+=_0x3f8328['split']('*')['map']((_0x7f008d,_0x194066)=>_0x194066%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x7f008d)+'</span>':us(_0x7f008d))['join'](''),_0xdb6de7&&(_0x5786cb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xdb6de7['value']+'\x22\x20title=\x22'+_0xdb6de7['title']+'\x22></span>'),_0x5786cb;}function us(_0x52f790){const _0x22be5d=document['createElement']('span');return _0x22be5d['innerText']=_0x52f790,_0x22be5d['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x5ed9bd{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5144de,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4a3d28){super(_0x4a3d28),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x36b02e=this['editor']['config'];_0x36b02e['define']('trackChanges.SuggestionThreadView',ne),_0x36b02e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x36b02e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x25e8ac,_0x2ccd91){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2c357b,_0x475ba8]of this['_handleControllerBuffer']){const _0xf6cb6e=this['_suggestionToController']['has'](_0x2c357b);_0xf6cb6e||_0x475ba8?_0xf6cb6e&&_0x475ba8&&this['_destroyController'](_0x2c357b):this['_initializeController'](_0x2c357b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x25e8ac,_0x2ccd91);}['init'](){const _0x21cbbc=this['editor'],_0x36ff40=_0x21cbbc['plugins']['get']('TrackChangesEditing'),_0x4cb9bc=_0x21cbbc['plugins']['get']('Annotations'),_0x369939=_0x21cbbc['plugins']['get']('EditorAnnotations'),_0x462249=_0x21cbbc['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x369939['addSourceCollector'](()=>{const _0xd3a7d5=[];for(const [_0x35a566,_0x2dd364]of Array['from'](this['_suggestionToController'])){const _0x23b3e0=_0x35a566['getAllAdjacentSuggestions'](),_0x3cc086=[];for(const _0x12b3c9 of _0x23b3e0){if(!_0x12b3c9['isInContent'])continue;if(_0x12b3c9['isMultiRange']){_0x3cc086['push'](..._0x12b3c9['getRanges']());continue;}const _0x28734c=_0x12b3c9['getFirstRange']();if(_0x3cc086['length']>0x0){const _0x2797de=_0x3cc086[0x0]['getJoined'](_0x28734c);if(_0x2797de){_0x3cc086[0x0]=_0x2797de;continue;}}_0x3cc086['push'](_0x28734c);}_0xd3a7d5['push']([_0x2dd364['view'],_0x3cc086]);}return _0xd3a7d5;}),this['listenTo'](_0x36ff40,'suggestionLoaded',(_0x50086,_0x412591)=>{this['listenTo'](_0x412591,'change:previous',(_0x398a0a,_0x210611,_0x24ff53,_0x1427f8)=>{_0x412591['isInContent']&&(null==_0x24ff53?(this['_updateController'](_0x1427f8['head']),this['_handleSuggestionControllerDelayed'](_0x412591,!0x1)):(this['_updateController'](_0x24ff53['head']),null==_0x1427f8&&this['_handleSuggestionControllerDelayed'](_0x412591,!0x0)));}),null!==_0x412591['previous']?this['_updateController'](_0x412591['head']):this['_handleSuggestionControllerDelayed'](_0x412591,!0x1);}),this['listenTo'](_0x36ff40,'suggestionUnloaded',(_0x20d0b9,_0x1916cd,_0x2c3dc8)=>{this['stopListening'](_0x1916cd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1916cd),this['_suggestionToController']['has'](_0x1916cd)&&this['_destroyController'](_0x1916cd),_0x2c3dc8&&this['_updateController'](_0x2c3dc8['head']);}),this['listenTo'](_0x36ff40,'suggestionChanged',(_0x190121,_0xe333c2)=>{this['_updateController'](_0xe333c2);}),this['listenTo'](_0x4cb9bc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x462249,'addComment',(_0x392ab7,{threadId:_0xc2e5e3,isFromAdapter:_0x45e212})=>{if(_0x45e212||!_0x36ff40['hasSuggestion'](_0xc2e5e3))return;const _0x1ffdac=_0x36ff40['getSuggestion'](_0xc2e5e3);this['_suggestionToController']['get'](_0x1ffdac)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x644489=this['editor']['plugins']['get']('Annotations'),_0x7e04ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18b0ee=Array['from'](_0x644489['activeAnnotations'],_0x31679f=>_0x31679f['innerView'])['filter'](_0x4e66de=>this['_viewToController']['has'](_0x4e66de)),_0x588a77=[];for(const _0x22cea0 of _0x18b0ee){const _0x5cf442=this['_viewToController']['get'](_0x22cea0)['model']['getAllAdjacentSuggestions']();_0x588a77['push'](..._0x5cf442['reduce']((_0x4229d6,_0x5e9551)=>[..._0x4229d6,..._0x5e9551['getMarkerNames']()],[]));}_0x7e04ed['activeMarkers']=_0x588a77;}['_addUIComponentsToFactory'](){const _0x6bdcfc=this['editor'],_0x1e5dc8=_0x6bdcfc['locale'],_0x5c1789=o(_0x1e5dc8,'Track\x20changes'),_0x47b3fc=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x5c1789,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1e5dc8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1e5dc8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1e5dc8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1e5dc8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x577786 of _0x47b3fc)if(ae(_0x577786)){const _0x16fc13=_0x6bdcfc['commands']['get'](_0x577786['model']['commandName']);_0x577786['model']['bind']('isOn','isEnabled')['to'](_0x16fc13,'value','isEnabled');}_0x6bdcfc['ui']['componentFactory']['add']('trackChanges',_0xd7beee=>this['_createToolbarButton'](_0xd7beee,_0x47b3fc,_0x5c1789)),_0x6bdcfc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x40662b=>this['_createMenuBarMenu'](_0x40662b,_0x47b3fc,_0x5c1789));}['_createToolbarButton'](_0x3f5a40,_0x15ad5b,_0x18cad5){const _0x154536=zt(_0x3f5a40,Zt),_0x32762c=this['editor']['commands']['get']('trackChanges');_0x154536['buttonView']['set']({'tooltip':_0x18cad5,'label':_0x18cad5,'icon':ie}),_0x154536['buttonView']['bind']('isOn')['to'](_0x32762c,'value'),_0x154536['buttonView']['on']('execute',()=>{_0x32762c['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x154536,_0x15ad5b,{'role':'menu'});const _0x2e2f64=[];for(const _0x3ffafc of _0x15ad5b)ae(_0x3ffafc)&&_0x2e2f64['push'](this['editor']['commands']['get'](_0x3ffafc['model']['commandName']));const _0x3c2920=_0x154536['buttonView'];return _0x3c2920['actionView']['unbind']('isEnabled'),_0x3c2920['arrowView']['unbind']('isEnabled'),_0x3c2920['actionView']['bind']('isEnabled')['to'](_0x32762c,'isEnabled'),_0x3c2920['arrowView']['bind']('isEnabled')['toMany'](_0x2e2f64,'isEnabled',(..._0x54a1de)=>_0x54a1de['some'](_0x2f042d=>_0x2f042d)),_0x154536['on']('execute',_0x35d77d=>{this['editor']['execute'](_0x35d77d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x154536;}['_createMenuBarMenu'](_0x23fb6f,_0x3f704e,_0x26c718){const _0x3e4a5b=new Kt(_0x23fb6f),_0x51f0b0=this['editor']['commands']['get']('trackChanges');_0x3e4a5b['buttonView']['set']({'label':_0x26c718,'icon':ie});const _0x14b4f2=new Qt(_0x23fb6f);for(const _0x3d7eb7 of _0x3f704e){if('separator'==_0x3d7eb7['type']){_0x14b4f2['items']['add'](new Jt(_0x23fb6f));continue;}const _0x39bd34=new Xt(_0x23fb6f,_0x3e4a5b),_0x3c7b76=new Yt(_0x23fb6f),_0x38fce4=_0x3d7eb7['model'];_0x3c7b76['bind'](...Object['keys'](_0x38fce4))['to'](_0x38fce4),_0x3c7b76['delegate']('execute')['to'](_0x3e4a5b),_0x3c7b76['on']('execute',()=>{this['editor']['execute'](_0x38fce4['commandName']),this['editor']['editing']['view']['focus']();}),_0x39bd34['children']['add'](_0x3c7b76),_0x14b4f2['items']['add'](_0x39bd34);}return _0x3e4a5b['bind']('isEnabled')['to'](_0x51f0b0,'isEnabled'),_0x3e4a5b['panelView']['children']['add'](_0x14b4f2),_0x3e4a5b;}['_initializeController'](_0x546617){const _0x1318b6=this['editor'],_0x439c9f=_0x1318b6['config'],_0x5d6cd4=_0x1318b6['plugins']['get']('Annotations'),_0x1cb27a=_0x1318b6['plugins']['get']('CommentsRepository'),_0x26293d=_0x1318b6['plugins']['get']('EditorAnnotations'),_0x30ec21=_0x1318b6['plugins']['get'](_0x5144de)['me'],_0x2d35ea=_0x439c9f['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4a1a26,CommentThreadInputView:_0x7bc82}=_0x1318b6['plugins']['get']('CommentsUI');let _0x2a5d9b,_0x5a04c9;this['_annotationViews']['has'](_0x546617['id'])?(_0x5a04c9=this['_annotationViews']['get'](_0x546617['id']),_0x2a5d9b=_0x5a04c9['mainView']):(_0x2a5d9b=new _0x2d35ea(_0x1318b6['locale'],_0x546617,_0x30ec21,{'disableComments':this['_disableComments'],'editorConfig':_0x439c9f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x439c9f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x439c9f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x439c9f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x26a677(_0x439c9f['get']('locale')),'CommentView':_0x439c9f['get']('comments')['CommentView'],'CommentsListView':_0x4a1a26,'CommentThreadInputView':_0x7bc82}),_0x2a5d9b['acceptButton']['on']('execute',()=>{_0x1318b6['editing']['view']['focus']();}),_0x2a5d9b['discardButton']['on']('execute',()=>{_0x1318b6['editing']['view']['focus']();}),_0x5a04c9=_0x5d6cd4['createAnnotationView'](this['editor']['locale'],_0x2a5d9b),_0x5a04c9['bind']('isDirty')['to'](_0x2a5d9b,'isDirty'),_0x5a04c9['bind']('length')['to'](_0x2a5d9b),_0x5a04c9['bind']('type')['to'](_0x2a5d9b,'type',_0x477a34=>'suggestion-'+_0x477a34),this['_annotationViews']['set'](_0x546617['id'],_0x5a04c9));const _0x2d94d6=_0x1cb27a['createCommentThreadController'](_0x546617['commentThread'],_0x2a5d9b),_0x355b24=new oe(_0x1318b6,_0x546617,_0x2a5d9b,_0x2d94d6),_0x4c53e6=_0x546617['getAllAdjacentSuggestions']()['filter'](_0x3a06b1=>_0x3a06b1['isInContent']);_0x2a5d9b['descriptionParts']=_0x1318b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c53e6),this['_suggestionToController']['set'](_0x546617,_0x355b24),this['_viewToController']['set'](_0x2a5d9b,_0x355b24);const _0x22706d=_0x5d6cd4['createAnnotation']({'view':_0x5a04c9,'target':()=>{const _0x41d198=[],_0x2d4d25=_0x546617['getAllAdjacentSuggestions']()['filter'](_0x3fd119=>_0x3fd119['isInContent']);for(const _0x213a49 of _0x2d4d25)_0x41d198['push'](..._0x213a49['getMarkers']());return _0x135c5c(_0x1318b6['editing'],_0x41d198);},'type':()=>'suggestion-'+_0x355b24['view']['type']});_0x1cb27a['_bindAnnotationToEditors'](_0x2a5d9b,_0x22706d),_0x5d6cd4['add'](_0x22706d),_0x26293d['registerAnnotation'](_0x22706d);}['_destroyController'](_0xbc8941){const _0x5619d5=this['editor']['plugins']['get']('CommentsRepository'),_0x170fae=this['editor']['plugins']['get']('Annotations'),_0x38c8d8=this['_suggestionToController']['get'](_0xbc8941),_0x4aaac7=_0x38c8d8['view'],_0x555009=_0x170fae['getByInnerView'](_0x4aaac7);_0x5619d5['_unbindEditors'](_0x4aaac7),_0x555009&&_0x170fae['remove'](_0x555009),this['_suggestionToController']['delete'](_0xbc8941),this['_viewToController']['delete'](_0x4aaac7),_0x38c8d8['destroy']();}['_updateController'](_0x27bf04){if(!_0x27bf04['isInContent']||!this['_suggestionToController']['has'](_0x27bf04))return;const _0x585876=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b443e=this['_suggestionToController']['get'](_0x27bf04),_0x555740=_0x27bf04['getAllAdjacentSuggestions']();_0x3b443e['view']['descriptionParts']=_0x585876['descriptionFactory']['getDescriptions'](_0x555740);}['destroy'](){for(const _0x2717c2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2717c2);for(const _0x44715c of this['_annotationViews']['values']())_0x44715c['mainView']['destroy']();super['destroy']();}}function ae(_0x4c70a7){return'model'in _0x4c70a7;}class k extends _0x5ed9bd{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5bf275){this['editor']['plugins']['get'](p)['adapter']=_0x5bf275;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3cb9ba){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3cb9ba);}['getSuggestions']({skipNotAttached:_0x723e93=!0x1,toJSON:_0x414910=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x723e93,'toJSON':_0x414910});}['getSuggestion'](_0x382854){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x382854);}}const T=['Pagination'];class P extends _0x5ed9bd{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x6082b5=this['editor'];if(_0x6082b5['config']['define']('trackChangesData.editorCreator',_0x42dc51=>{const _0x50b4ec=_0x6082b5['model']['document']['getRootNames']()['reduce']((_0x162ef7,_0x2ea572)=>(_0x162ef7[_0x2ea572]='',_0x162ef7),{});return _0x6082b5['constructor']['create'](_0x50b4ec,_0x42dc51);}),'function'!=typeof _0x6082b5['config']['get']('trackChangesData')['editorCreator'])throw new _0x39a7b6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3a4e54){return N(this['editor'],!0x0,_0x3a4e54);}['getDataWithDiscardedSuggestions'](_0x28782e){return N(this['editor'],!0x1,_0x28782e);}}class D extends _0x5ed9bd{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x56a1b1){super(_0x56a1b1),this['result']='end';}['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 v(_0x190825){return void 0x0!==_0x190825['getRootsAttributes'];}async function N(_0x398673,_0x1a6dcc,_0x8fcb6d){const _0x74d2e2=_0x135372(_0x398673,T);_0x74d2e2['plugins']['push'](p,D),_0x74d2e2['rootsAttributes']=v(_0x398673)?_0x398673['getRootsAttributes']():void 0x0;const _0x493361=document['createDocumentFragment'](),_0xaa0078=_0x398673['config']['get']('trackChangesData')['editorCreator'],_0x4010ab=await _0xaa0078(_0x74d2e2,()=>function(_0x33ffc5){const _0xf6f8a5=document['createElement']('div');return _0x33ffc5['appendChild'](_0xf6f8a5),_0xf6f8a5;}(_0x493361));!function(_0x52c17b,_0x232f77){const _0x36df17=_0x52c17b['model']['document']['getRootNames']()['reduce']((_0x361343,_0x24c944)=>(_0x361343[_0x24c944]=_0x52c17b['data']['get']({'rootName':_0x24c944}),_0x361343),{}),_0x1e5ccf=_0x52c17b['plugins']['get']('Users')['users']['map'](_0x2f965c=>({'id':_0x2f965c['id'],'name':_0x2f965c['name']})),_0x11e8f3=_0x52c17b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x53584e=_0x52c17b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26f832=_0x232f77['plugins']['get']('Users'),_0x2256b7=_0x232f77['plugins']['get']('TrackChangesEditing'),_0x58cf27=_0x232f77['plugins']['get']('CommentsRepository');for(const _0x36d196 of _0x1e5ccf)_0x26f832['getUser'](_0x36d196['id'])||_0x26f832['addUser'](_0x36d196);_0x26f832['me']||_0x26f832['useAnonymousUser']();for(const _0x4c9cea of _0x53584e)_0x58cf27['addCommentThread'](_0x4c9cea);for(const _0x173bd3 of _0x11e8f3)_0x2256b7['addSuggestionData'](_0x173bd3);_0x232f77['data']['set'](_0x36df17);}(_0x398673,_0x4010ab),_0x4010ab['execute'](_0x1a6dcc?'acceptAllSuggestions':'discardAllSuggestions');const _0x365fcd=v(_0x4010ab)?_0x4010ab['getFullData'](_0x8fcb6d):_0x4010ab['data']['get'](_0x8fcb6d);return await _0x4010ab['destroy'](),_0x365fcd;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};